@p4code/cli 0.0.36 → 0.0.37
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/dist/bin.mjs +6 -1
- package/dist/client/assets/{DiffPanel-DKJ8ECjA.js → DiffPanel-xkGxJH4k.js} +2 -2
- package/dist/client/assets/{FilePreviewPanel-DrEwfDlH.js → FilePreviewPanel-CmJUrNYJ.js} +2 -2
- package/dist/client/assets/{PreviewPanel-DWT1ePi1.js → PreviewPanel-B5dlT-n2.js} +2 -2
- package/dist/client/assets/{fileCommentAnnotations-QSDzusB8.js → fileCommentAnnotations-BKadMjLJ.js} +2 -2
- package/dist/client/assets/{index-BSt_6F_c.js → index-qr_OWE66.js} +4 -4
- package/dist/client/index.html +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/angular-html-Dn2JJ2Y_.js","assets/textarea-DXib_Xm1.js","assets/html-Dt3tXh_z.js","assets/javascript-DiJKAFke.js","assets/css-CRhPNI6F.js","assets/angular-ts-CfLkL_Qp.js","assets/scss-Cretygi0.js","assets/apl-Nq83rcb_.js","assets/xml-DxBp18kS.js","assets/java-BLXUQQYh.js","assets/json-gUTUyRZz.js","assets/astro-C22T9xPx.js","assets/typescript-C5IEOQ6m.js","assets/postcss-BXeXVLqQ.js","assets/tsx-BJtA3e5Z.js","assets/blade-C7aj8ys7.js","assets/html-derivative-TpESoiPM.js","assets/sql-B0K1LVHb.js","assets/bsl-BkkzgIyY.js","assets/sdbl-bTVj8UrX.js","assets/c-B78J8iGD.js","assets/cairo-DLTphjLi.js","assets/python-gzcpVVnB.js","assets/cobol-D10SeNYA.js","assets/coffee-BUyJhjad.js","assets/cpp-zlCU7-6I.js","assets/regexp-DKHD1dmO.js","assets/glsl-DRUUV_Be.js","assets/crystal-CG-lEqhg.js","assets/shellscript-BPrVCDeM.js","assets/edge-52WSnWZZ.js","assets/elixir-CaxrvlWR.js","assets/elm-QQfqA1rG.js","assets/erb-CvNv7Ta7.js","assets/ruby-B98aeCnB.js","assets/haml-lWmR8dze.js","assets/graphql-ClTaGmSv.js","assets/jsx-F3GWMSo9.js","assets/lua-Bqaw27j0.js","assets/yaml-9uAtFnnP.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-CAf0DQlo.js","assets/glimmer-js-BPVGnBwE.js","assets/glimmer-ts-CWjtJvfg.js","assets/hack-DTqDgqPV.js","assets/handlebars-Dp-ofauA.js","assets/http-BEu07Auo.js","assets/hurl-DU511R-E.js","assets/csv-Dx-8-gkx.js","assets/hxml-B0Qn7Nwc.js","assets/haxe-OTjmBuCE.js","assets/jinja-BKaGjW1H.js","assets/jison-DPYmg9OL.js","assets/julia-CTCaGc-g.js","assets/r-DxEs307a.js","assets/just-DHux_iWu.js","assets/perl-BOXK2UJk.js","assets/latex-DzmPd-us.js","assets/tex-BFxdGP4G.js","assets/liquid-DSQKpxyq.js","assets/marko-BirRrpU-.js","assets/less-DVTAwKKz.js","assets/mdc-BB_7Feam.js","assets/nextflow-BJtWHP5T.js","assets/nextflow-groovy-DJMQeKeT.js","assets/nginx-Ci7NwAbe.js","assets/nim-WeOoYoOx.js","assets/php-C3Bn9LZO.js","assets/pug-CQq8LVyP.js","assets/qml-DzVdU6Jx.js","assets/razor-Ce_k_e9r.js","assets/csharp-oqKa8noW.js","assets/rst-C7fw_ixm.js","assets/cmake-Bj61d0ZC.js","assets/sas-CRTQo8Wq.js","assets/shaderlab-TOUzSsQk.js","assets/hlsl-Cvrh5tZx.js","assets/shellsession-C2VFGHL_.js","assets/soy-BAP9BOHb.js","assets/sparql-D_iOobhT.js","assets/turtle-ByJddavk.js","assets/stata-DAeEKyqD.js","assets/surrealql-BPL5A5s9.js","assets/svelte-DckgeUTd.js","assets/templ-VhXNalWP.js","assets/go-rLFTqkRN.js","assets/ts-tags-i1e_ZWDb.js","assets/twig-CbRorpB3.js","assets/vue-D7OIlbdJ.js","assets/vue-html-Bpyqvp3O.js","assets/vue-vine-Op6Z7dE7.js","assets/stylus-B6D30XZt.js","assets/xsl-DDyFMrZj.js","assets/PreviewPanel-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/angular-html-Dn2JJ2Y_.js","assets/textarea-DXib_Xm1.js","assets/html-Dt3tXh_z.js","assets/javascript-DiJKAFke.js","assets/css-CRhPNI6F.js","assets/angular-ts-CfLkL_Qp.js","assets/scss-Cretygi0.js","assets/apl-Nq83rcb_.js","assets/xml-DxBp18kS.js","assets/java-BLXUQQYh.js","assets/json-gUTUyRZz.js","assets/astro-C22T9xPx.js","assets/typescript-C5IEOQ6m.js","assets/postcss-BXeXVLqQ.js","assets/tsx-BJtA3e5Z.js","assets/blade-C7aj8ys7.js","assets/html-derivative-TpESoiPM.js","assets/sql-B0K1LVHb.js","assets/bsl-BkkzgIyY.js","assets/sdbl-bTVj8UrX.js","assets/c-B78J8iGD.js","assets/cairo-DLTphjLi.js","assets/python-gzcpVVnB.js","assets/cobol-D10SeNYA.js","assets/coffee-BUyJhjad.js","assets/cpp-zlCU7-6I.js","assets/regexp-DKHD1dmO.js","assets/glsl-DRUUV_Be.js","assets/crystal-CG-lEqhg.js","assets/shellscript-BPrVCDeM.js","assets/edge-52WSnWZZ.js","assets/elixir-CaxrvlWR.js","assets/elm-QQfqA1rG.js","assets/erb-CvNv7Ta7.js","assets/ruby-B98aeCnB.js","assets/haml-lWmR8dze.js","assets/graphql-ClTaGmSv.js","assets/jsx-F3GWMSo9.js","assets/lua-Bqaw27j0.js","assets/yaml-9uAtFnnP.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-CAf0DQlo.js","assets/glimmer-js-BPVGnBwE.js","assets/glimmer-ts-CWjtJvfg.js","assets/hack-DTqDgqPV.js","assets/handlebars-Dp-ofauA.js","assets/http-BEu07Auo.js","assets/hurl-DU511R-E.js","assets/csv-Dx-8-gkx.js","assets/hxml-B0Qn7Nwc.js","assets/haxe-OTjmBuCE.js","assets/jinja-BKaGjW1H.js","assets/jison-DPYmg9OL.js","assets/julia-CTCaGc-g.js","assets/r-DxEs307a.js","assets/just-DHux_iWu.js","assets/perl-BOXK2UJk.js","assets/latex-DzmPd-us.js","assets/tex-BFxdGP4G.js","assets/liquid-DSQKpxyq.js","assets/marko-BirRrpU-.js","assets/less-DVTAwKKz.js","assets/mdc-BB_7Feam.js","assets/nextflow-BJtWHP5T.js","assets/nextflow-groovy-DJMQeKeT.js","assets/nginx-Ci7NwAbe.js","assets/nim-WeOoYoOx.js","assets/php-C3Bn9LZO.js","assets/pug-CQq8LVyP.js","assets/qml-DzVdU6Jx.js","assets/razor-Ce_k_e9r.js","assets/csharp-oqKa8noW.js","assets/rst-C7fw_ixm.js","assets/cmake-Bj61d0ZC.js","assets/sas-CRTQo8Wq.js","assets/shaderlab-TOUzSsQk.js","assets/hlsl-Cvrh5tZx.js","assets/shellsession-C2VFGHL_.js","assets/soy-BAP9BOHb.js","assets/sparql-D_iOobhT.js","assets/turtle-ByJddavk.js","assets/stata-DAeEKyqD.js","assets/surrealql-BPL5A5s9.js","assets/svelte-DckgeUTd.js","assets/templ-VhXNalWP.js","assets/go-rLFTqkRN.js","assets/ts-tags-i1e_ZWDb.js","assets/twig-CbRorpB3.js","assets/vue-D7OIlbdJ.js","assets/vue-html-Bpyqvp3O.js","assets/vue-vine-Op6Z7dE7.js","assets/stylus-B6D30XZt.js","assets/xsl-DDyFMrZj.js","assets/PreviewPanel-B5dlT-n2.js","assets/arrow-right-AJ0Jl2nt.js","assets/DiffPanel-xkGxJH4k.js","assets/fileCommentAnnotations-BKadMjLJ.js","assets/FilePreviewPanel-CmJUrNYJ.js"])))=>i.map(i=>d[i]);
|
|
2
2
|
import{$ as e,$a as t,$c as n,$d as r,$f as i,$i as a,$l as o,$n as s,$o as c,$r as l,$s as u,$t as d,$u as f,A as p,Aa as m,Ac as h,Ad as g,Af as _,Ai as v,Al as y,An as b,Ao as x,Ar as S,As as C,At as w,Au as T,B as E,Ba as D,Bd as O,Bf as k,Bi as A,Bl as j,Bn as M,Bo as N,Br as P,Bs as F,Bt as I,Bu as L,C as R,Ca as z,Cc as B,Cd as V,Cf as H,Cl as U,Cn as W,Cr as G,Cs as ee,Ct as te,Cu as ne,D as K,Da as re,Dc as ie,Dd as ae,Df as oe,Di as se,Dl as ce,Dn as le,Do as ue,Dr as de,Ds as fe,Dt as pe,Du as me,E as he,Ea as ge,Ec as _e,Ed as ve,Ef as ye,Ei as be,El as xe,En as Se,Eo as Ce,Er as we,Es as Te,Et as Ee,Eu as De,F as Oe,Fa as ke,Fc as Ae,Fd as je,Ff as Me,Fi as Ne,Fl as Pe,Fn as Fe,Fo as Ie,Fr as Le,Fs as Re,Ft as ze,Fu as Be,G as Ve,Ga as He,Gc as Ue,Gd as We,Gf as Ge,Gi as Ke,Gl as qe,Gn as Je,Go as Ye,Gr as Xe,Gs as Ze,Gt as Qe,Gu as $e,H as et,Ha as tt,Hc as nt,Hd as rt,Hf as it,Hi as at,Hl as ot,Hn as st,Ho as ct,Hr as lt,Hs as ut,Ht as dt,Hu as ft,I as pt,Ia as mt,Ic as ht,Id as gt,If as _t,Ii as vt,Il as yt,In as bt,Io as xt,Ir as St,Is as Ct,It as q,Iu as wt,J as Tt,Ja as Et,Jc as Dt,Jd as Ot,Jf as kt,Ji as At,Jl as jt,Jn as Mt,Jo as Nt,Js as Pt,Jt as Ft,Ju as It,K as Lt,Ka as Rt,Kc as zt,Kd as Bt,Kf as Vt,Ki as Ht,Kl as Ut,Kn as Wt,Ko as Gt,Kr as Kt,Ks as qt,Kt as Jt,Ku as Yt,L as Xt,La as Zt,Ld as Qt,Lf as $t,Li as en,Ll as tn,Ln as nn,Lo as rn,Lr as an,Ls as on,Lt as sn,Lu as cn,M as ln,Ma as un,Mc as dn,Md as fn,Mf as pn,Mi as mn,Ml as hn,Mn as gn,Mo as _n,Mr as vn,Ms as yn,Mt as bn,Mu as xn,N as Sn,Na as Cn,Nc as wn,Nd as Tn,Nf as En,Ni as Dn,Nl as On,Nn as kn,No as An,Nr as jn,Ns as Mn,Nt as Nn,Nu as Pn,O as Fn,Oa as In,Oc as Ln,Od as Rn,Of as zn,Oi as Bn,Ol as Vn,On as Hn,Oo as Un,Or as Wn,Os as Gn,Ot as Kn,Ou as qn,P as Jn,Pa as Yn,Pc as Xn,Pd as Zn,Pf as Qn,Pi as $n,Pl as er,Pn as tr,Po as nr,Pr as rr,Ps as ir,Pt as ar,Pu as or,Q as sr,Qa as cr,Qc as lr,Qd as ur,Qf as dr,Qi as fr,Ql as pr,Qn as mr,Qo as hr,Qr as gr,Qs as _r,Qt as vr,Qu as yr,R as br,Ra as xr,Rc as Sr,Rd as Cr,Rf as wr,Ri as Tr,Rl as Er,Rn as Dr,Ro as Or,Rr as kr,Rs as Ar,Rt as jr,Ru as Mr,S as Nr,Sa as Pr,Sc as Fr,Sd as Ir,Sf as Lr,Si as Rr,Sl as zr,Sn as Br,Sr as Vr,Ss as Hr,St as Ur,Su as Wr,T as Gr,Ta as Kr,Tc as qr,Td as Jr,Tf as Yr,Ti as Xr,Tl as Zr,Tn as Qr,To as $r,Tr as ei,Ts as ti,Tt as ni,Tu as ri,U as ii,Ua as ai,Uc as oi,Ud as si,Uf as ci,Ui as li,Ul as ui,Un as di,Uo as fi,Ur as pi,Us as mi,Ut as hi,Uu as gi,V as _i,Va as vi,Vc as yi,Vd as bi,Vf as xi,Vi as Si,Vl as Ci,Vn as wi,Vo as Ti,Vr as Ei,Vs as Di,Vt as Oi,Vu as ki,W as Ai,Wa as ji,Wc as Mi,Wd as Ni,Wf as Pi,Wi as Fi,Wl as Ii,Wn as Li,Wo as Ri,Wr as zi,Ws as Bi,Wt as Vi,Wu as Hi,X as Ui,Xa as Wi,Xc as Gi,Xd as Ki,Xf as qi,Xi as Ji,Xl as Yi,Xn as Xi,Xo as Zi,Xr as Qi,Xs as $i,Xt as ea,Xu as ta,Y as na,Ya as ra,Yc as ia,Yd as aa,Yf as oa,Yi as sa,Yl as ca,Yn as la,Yo as ua,Ys as da,Yt as fa,Yu as pa,Z as ma,Za as ha,Zc as ga,Zd as _a,Zf as va,Zi as ya,Zl as ba,Zn as xa,Zo as Sa,Zr as Ca,Zs as wa,Zt as Ta,Zu as Ea,_ as Da,_a as Oa,_c as ka,_d as Aa,_f as ja,_i as Ma,_l as Na,_n as Pa,_o as Fa,_r as Ia,_s as La,_t as Ra,_u as za,a as Ba,aa as Va,ac as Ha,ad as Ua,af as Wa,ai as Ga,al as Ka,ao as qa,ap as Ja,ar as Ya,as as Xa,at as Za,au as Qa,ba as $a,bc as eo,bd as to,bf as no,bi as ro,bl as io,bn as ao,bo as oo,br as so,bs as co,bt as lo,bu as uo,c as fo,ca as po,cc as mo,cd as ho,cf as go,ci as _o,cl as vo,cn as yo,co as bo,cp as xo,cr as So,cs as Co,ct as wo,cu as To,d as Eo,da as Do,dc as Oo,dd as ko,df as Ao,di as jo,dl as Mo,dn as No,do as Po,dr as Fo,ds as Io,dt as Lo,du as Ro,ea as zo,ec as Bo,ed as Vo,ef as Ho,ei as Uo,el as Wo,eo as Go,ep as Ko,er as qo,es as Jo,et as Yo,eu as Xo,f as Zo,fa as Qo,fc as $o,fd as es,ff as ts,fi as ns,fl as rs,fn as is,fo as as,fr as os,fs as ss,ft as cs,fu as ls,g as us,ga as ds,gc as fs,gd as ps,gf as ms,gi as hs,gl as gs,gn as _s,go as vs,gr as ys,gs as bs,gt as xs,gu as Ss,h as Cs,ha as ws,hc as Ts,hd as Es,hf as Ds,hi as Os,hl as ks,hn as As,ho as js,hr as Ms,hs as Ns,ht as Ps,hu as Fs,i as Is,ia as Ls,ic as Rs,id as zs,if as Bs,ii as Vs,il as Hs,in as Us,io as Ws,ip as Gs,ir as Ks,is as qs,it as Js,iu as Ys,j as Xs,ja as Zs,jc as Qs,jd as $s,jf as ec,ji as tc,jl as nc,jn as rc,jo as ic,jr as ac,js as oc,jt as sc,ju as cc,k as lc,ka as uc,kc as dc,kd as fc,kf as pc,ki as mc,kl as hc,kn as gc,ko as _c,kr as vc,ks as yc,kt as bc,ku as xc,l as Sc,la as Cc,lc as wc,ld as Tc,lf as Ec,li as Dc,ll as Oc,ln as kc,lo as Ac,lp as jc,lr as Mc,ls as Nc,lt as Pc,lu as Fc,m as Ic,ma as Lc,mc as Rc,md as zc,mf as Bc,mi as Vc,ml as Hc,mn as Uc,mo as Wc,mr as Gc,ms as Kc,mt as qc,mu as Jc,n as Yc,na as Xc,nc as Zc,nd as Qc,nf as $c,ni as el,nl as tl,nn as nl,no as rl,np as il,nr as al,ns as ol,nt as sl,nu as cl,o as ll,oa as ul,oc as dl,od as fl,of as pl,oi as ml,ol as hl,on as gl,oo as _l,op as eee,or as vl,os as yl,ot as bl,ou as xl,p as Sl,pa as Cl,pc as wl,pd as Tl,pf as El,pi as Dl,pl as Ol,pn as kl,po as Al,pr as jl,ps as Ml,pt as Nl,pu as Pl,q as Fl,qa as Il,qc as Ll,qd as Rl,qf as zl,qi as Bl,ql as Vl,qn as Hl,qo as Ul,qs as Wl,qt as Gl,qu as Kl,r as ql,ra as Jl,rc as Yl,rd as Xl,rf as Zl,ri as Ql,rl as $l,rn as eu,ro as tu,rp as nu,rr as ru,rs as iu,rt as au,ru as ou,s as su,sa as cu,sc as lu,sd as uu,sf as du,si as fu,sl as pu,sn as mu,so as hu,sp as gu,sr as _u,ss as vu,st as yu,su as bu,t as xu,ta as Su,tc as Cu,td as wu,tf as Tu,ti as Eu,tl as Du,to as Ou,tp as ku,tr as Au,ts as ju,tt as Mu,tu as Nu,u as Pu,ua as Fu,uc as Iu,ud as Lu,uf as Ru,ui as zu,ul as Bu,un as Vu,up as Hu,ur as Uu,us as Wu,ut as Gu,uu as Ku,v as qu,va as Ju,vc as Yu,vd as Xu,vf as Zu,vi as Qu,vl as $u,vn as ed,vo as td,vr as nd,vs as rd,vt as id,vu as ad,w as od,wa as sd,wc as cd,wd as ld,wf as ud,wi as dd,wl as fd,wn as pd,wo as md,wr as hd,ws as gd,wt as _d,wu as vd,x as yd,xa as bd,xc as xd,xd as Sd,xf as Cd,xi as wd,xl as Td,xn as Ed,xo as Dd,xr as Od,xs as kd,xt as Ad,xu as jd,y as Md,ya as Nd,yc as Pd,yd as Fd,yf as Id,yi as Ld,yl as Rd,yn as zd,yo as Bd,yr as Vd,ys as Hd,yt as Ud,yu as Wd,z as Gd,za as Kd,zc as qd,zd as Jd,zf as Yd,zi as Xd,zl as Zd,zn as Qd,zo as $d,zr as ef,zs as tf,zt as nf,zu as rf}from"./textarea-DXib_Xm1.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 af=xo((e=>{var t=eee(),n=gu(),r=Ja();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 G(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)?Kd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Kd(t),e=qd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}z(V),B(V,e)}function ee(){z(V),z(H),z(U)}function te(e){e.memoizedState!==null&&B(W,e);var t=V.current,n=qd(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),np._currentValue=F)}var K,re;function ie(e){if(K===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);K=t&&t[1]||``,re=-1<e.stack.indexOf(`
|
|
3
3
|
at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
|
|
4
4
|
`+K+e+re}var ae=!1;function oe(e,t){if(!e||ae)return``;ae=!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,$f as i,$i as a,$l as o,$n as s,$o as c,$r
|
|
|
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{ae=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?ie(n):``}function se(e,t){switch(e.tag){case 26:case 27:case 5:return ie(e.type);case 16:return ie(`Lazy`);case 13:return e.child!==t&&t!==null?ie(`Suspense Fallback`):ie(`Suspense`);case 19:return ie(`SuspenseList`);case 0:case 15:return oe(e.type,!1);case 11:return oe(e.type.render,!1);case 1:return oe(e.type,!0);case 31:return ie(`Activity`);default:return``}}function ce(e){try{var t=``,n=null;do t+=se(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 le=Object.prototype.hasOwnProperty,ue=t.unstable_scheduleCallback,de=t.unstable_cancelCallback,fe=t.unstable_shouldYield,pe=t.unstable_requestPaint,me=t.unstable_now,he=t.unstable_getCurrentPriorityLevel,ge=t.unstable_ImmediatePriority,_e=t.unstable_UserBlockingPriority,ve=t.unstable_NormalPriority,ye=t.unstable_LowPriority,be=t.unstable_IdlePriority,xe=t.log,Se=t.unstable_setDisableYieldValue,Ce=null,we=null;function Te(e){if(typeof xe==`function`&&Se(e),we&&typeof we.setStrictMode==`function`)try{we.setStrictMode(Ce,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 Pe(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 Fe(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Ie(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 Le(){var e=Me;return Me<<=1,!(Me&62914560)&&(Me=4194304),e}function Re(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ze(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Be(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&&Ve(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function Ve(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 He(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 Ue(e,t){var n=t&-t;return n=n&42?1:We(n),(n&(e.suspendedLanes|t))===0?n:0}function We(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 Ge(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function Ke(){var e=P.p;return e===0?(e=window.event,e===void 0?32:vp(e.type)):e}function qe(e,t){var n=P.p;try{return P.p=e,t()}finally{P.p=n}}var Je=Math.random().toString(36).slice(2),Ye=`__reactFiber$`+Je,Xe=`__reactProps$`+Je,Ze=`__reactContainer$`+Je,Qe=`__reactEvents$`+Je,$e=`__reactListeners$`+Je,et=`__reactHandles$`+Je,tt=`__reactResources$`+Je,nt=`__reactMarker$`+Je;function rt(e){delete e[Ye],delete e[Xe],delete e[Qe],delete e[$e],delete e[et]}function it(e){var t=e[Ye];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ze]||n[Ye]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=hf(e);e!==null;){if(n=e[Ye])return n;e=hf(e)}return t}e=n,n=e.parentNode}return null}function at(e){if(e=e[Ye]||e[Ze]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function ot(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function st(e){var t=e[tt];return t||=e[tt]={hoistableStyles:new Map,hoistableScripts:new Map},t}function ct(e){e[nt]=!0}var lt=new Set,ut={};function dt(e,t){ft(e,t),ft(e+`Capture`,t)}function ft(e,t){for(ut[e]=t,e=0;e<t.length;e++)lt.add(t[e])}var pt=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]*$`),mt={},ht={};function gt(e){return le.call(ht,e)?!0:le.call(mt,e)?!1:pt.test(e)?ht[e]=!0:(mt[e]=!0,!1)}function _t(e,t,n){if(gt(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 vt(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 yt(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 bt(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function xt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function St(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 Ct(e){if(!e._valueTracker){var t=xt(e)?`checked`:`value`;e._valueTracker=St(e,t,``+e[t])}}function q(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=xt(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=``+bt(t)):e.value!==``+bt(t)&&(e.value=``+bt(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):kt(e,o,bt(n)):kt(e,o,bt(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=``+bt(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)){Ct(e);return}n=n==null?``:``+bt(n),t=t==null?n:``+bt(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),Ct(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=``+bt(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=``+bt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+bt(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=bt(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),Ct(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=at(e);if(t&&(e=t.stateNode)){var n=e[Xe]||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[Xe]||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&&q(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)&&(Su(),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[Xe]||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=Ad(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){Sd(e,0)}function Zn(e){if(q(ot(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(!le.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=Ad(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),dt(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=qf(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:ce(t)},ai.set(e,t),t):n}return{value:e,source:t,stack:ce(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[Ye]=e,t[Xe]=r,n){case`dialog`:Cd(`cancel`,t),Cd(`close`,t);break;case`iframe`:case`object`:case`embed`:Cd(`load`,t);break;case`video`:case`audio`:for(n=0;n<bd.length;n++)Cd(bd[n],t);break;case`source`:Cd(`error`,t);break;case`img`:case`image`:case`link`:Cd(`error`,t),Cd(`load`,t);break;case`details`:Cd(`toggle`,t);break;case`input`:Cd(`invalid`,t),Ot(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:Cd(`invalid`,t);break;case`textarea`:Cd(`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||Id(t.textContent,n)?(r.popover!=null&&(Cd(`beforetoggle`,t),Cd(`toggle`,t)),r.onScroll!=null&&Cd(`scroll`,t),r.onScrollEnd!=null&&Cd(`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`)||Jd(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=mf(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Si=mf(e)}else t===27?(t=Si,nf(e.type)?(e=pf,pf=null,Si=e):Si=t):Si=xi?ff(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=[np]:e.push(np))}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=md(),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=me(),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,He(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 Va=R(null),Ha=R(0);function Ua(e,t){e=Wl,B(Ha,e),B(Va,t),Wl=e|t.baseLanes}function Wa(){B(Ha,Wl),B(Va,Va.current)}function Ga(){Wl=Ha.current,z(Va),z(Ha)}var Ka=R(null),qa=null;function Ya(e){var t=e.alternate;B(eo,eo.current&1),B(Ka,e),qa===null&&(t===null||Va.current!==null||t.memoizedState!==null)&&(qa=e)}function Xa(e){B(eo,eo.current),B(Ka,e),qa===null&&(qa=e)}function Za(e){e.tag===22?(B(eo,eo.current),B(Ka,e),qa===null&&(qa=e)):Qa(e)}function Qa(){B(eo,eo.current),B(Ka,Ka.current)}function $a(e){z(Ka),qa===e&&(qa=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||lf(n)||uf(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&&_u(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=ff(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){Si=ff(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:Va.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(np)}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&&(_u(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&&(_u(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 _u(n,e,r),js(n,t,r),!0}return!1}function Os(e,t,n,r){if(r={lane:2,revertLane:md(),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&&_u(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,He(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&&(_u(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&&(_u(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&&(_u(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=Ka.current,n!==null){switch(n.tag){case 31:case 13:return qa===null?ku():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),Ju(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)),Ju(e,r,a)),!1}throw Error(i(435,n.tag))}return Ju(e,r,a),ku(),!1}if(Ci)return t=Ka.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),Cc(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,!wc(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?dr:n,n(o,r)&&e.ref===t.ref)return Cc(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,wc(e,i))e.flags&131072&&(Zs=!0);else return t.lanes=e.lanes,Cc(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?Wa():Ua(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),Wa(),Qa(t)):(la(t,a.cachePool),Ua(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),Wa(),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=cf(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=Ue(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,Gr(e,s),_u(r,e,s),Xs;ku(),t=oc(e,t,n)}else e=o.treeContext,Si=ff(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),Cc(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),Cc(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=Cc(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=cf(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 uf(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),uf(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=Ue(s,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,Gr(e,r),_u(s,e,r),Xs;lf(c)||ku(),t=yc(e,t,n)}else lf(c)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,Si=ff(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 Cc(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 wc(e,t){return(e.lanes&t)===0?(e=e.dependencies,!!(e!==null&&Hi(e))):!0}function Tc(e,t,n){switch(t.tag){case 3:G(t,t.stateNode.containerInfo),Li(t,Xi,e.memoizedState.cache),ji();break;case 27:case 5:te(t);break;case 4:G(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=Cc(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 Cc(e,t,n)}function Ec(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Zs=!0;else{if(!wc(e,n)&&!(t.flags&128))return Zs=!1,Tc(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(G(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=ff(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=Cc(e,t,n);break a}Qs(e,t,r,n)}t=t.child}return t;case 26:return cc(e,t),e===null?(n=Nf(t.type,null,t.pendingProps,null))?t.memoizedState=n:Ci||(n=t.type,e=t.pendingProps,r=Gd(U.current).createElement(n),r[Ye]=t,r[Xe]=e,zd(r,n,e),ct(r),t.stateNode=r):t.memoizedState=Nf(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return te(t),e===null&&Ci&&(r=t.stateNode=gf(t.type,t.pendingProps,U.current),xi=t,Ti=!0,a=Si,nf(t.type)?(pf=a,Si=ff(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=J(r,t.type,t.pendingProps,Ti),r===null?a=!1:(t.stateNode=r,xi=t,Si=ff(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,Jd(a,o)?r=null:s!==null&&Jd(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=go(e,t,yo,null,null,n),np._currentValue=a),cc(e,t),Qs(e,t,r,n),t.child;case 6:return e===null&&Ci&&((e=n=Si)&&(n=sf(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 G(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(Eu())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,!Jf(t))if(Eu())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:Le(),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),ee(),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=gf(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=Gd(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[Ye]=t,o[Xe]=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(zd(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[Ye]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Id(e.nodeValue,n)),e||Di(t,!0)}else e=Gd(e).createTextNode(r),e[Ye]=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[Ye]=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[Ye]=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 ee(),e===null&&Ed(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&&me()>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*me()-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=me(),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),Ga(),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),ee(),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 ee(),null;case 10:return Ri(t.type),null;case 22:case 23:return $a(t),Ga(),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),ee();break;case 26:case 27:case 5:ne(t);break;case 4:ee();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),Ga(),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){qu(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){qu(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){qu(t,t.return,e)}}function Rc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Ba(t,n)}catch(t){qu(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){qu(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){qu(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){qu(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){qu(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){qu(e,e.return,t)}}function Uc(e,t,n){try{var r=e.stateNode;Bd(r,e.type,n,t),r[Xe]=t}catch(t){qu(e,e.return,t)}}function Wc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&nf(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&&nf(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&&nf(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&&nf(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]);zd(t,r,n),t[Ye]=e,t[Xe]=n}catch(t){qu(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,Ud=dp,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(Wd={focusedElem:e,selectionRange:n},dp=!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){qu(n,n.return,e)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)of(e);else if(n===1)switch(e.nodeName){case`HEAD`:case`HTML`:case`BODY`:of(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){qu(n,n.return,e)}else{var i=Bs(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){qu(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){qu(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=Zu.bind(null,n),df(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&&rt(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(we&&typeof we.onCommitFiberUnmount==`function`)try{we.onCommitFiberUnmount(Ce,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;nf(n.type)&&(rl=n.stateNode,il=!1),al(e,t,n),_f(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){qu(n,t,e)}else try{rl.removeChild(n.stateNode)}catch(e){qu(n,t,e)}break;case 18:rl!==null&&(il?(e=rl,rf(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Lp(e)):rf(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{Lp(e)}catch(e){qu(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{Lp(e)}catch(e){qu(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=Qu.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(nf(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[nt]||o[Ye]||o.namespaceURI===`http://www.w3.org/2000/svg`||o.hasAttribute(`itemprop`))&&(o=a.createElement(r),a.head.insertBefore(o,a.querySelector(`head > title`))),zd(o,r,n),o[Ye]=e,ct(o),r=o;break a;case`link`:var s=Gf(`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),zd(o,r,n),a.head.appendChild(o);break;case`meta`:if(s=Gf(`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),zd(o,r,n),a.head.appendChild(o);break;default:throw Error(i(468,r))}o[Ye]=e,ct(o),r=o}e.stateNode=r}else Kf(a,e.type,e.stateNode);else e.stateNode=Bf(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?Kf(a,e.type,e.stateNode):Bf(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){qu(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){qu(e,e.return,t)}}break;case 3:if(Wf=null,a=fl,fl=bf(t.containerInfo),dl(t,e),fl=a,ml(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Lp(t.containerInfo)}catch(t){qu(e,e.return,t)}Zc&&(Zc=!1,hl(e));break;case 4:r=fl,fl=bf(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=me()),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){qu(l,l.return,e)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=a?``:l.memoizedProps}catch(e){qu(l,l.return,e)}}}else if(t.tag===18){if(n===null){l=t;try{var m=l.stateNode;a?af(m,!0):af(l.stateNode,!1)}catch(e){qu(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){qu(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:_f(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){qu(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){qu(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){qu(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&&Yf(n,fl,e.memoizedState,e.memoizedProps);break;case 5:El(e,t,n);break;case 3:case 4:var r=fl;fl=bf(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?Ke():md()}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=Ka.current,e!==null&&(e.flags|=32),Yl}function _u(e,t,n){(e===Il&&(zl===2||zl===9)||e.cancelPendingCommit!==null)&&(wu(e,0),xu(e,Rl,Yl,!1)),ze(e,n),(!(Fl&2)||e!==Il)&&(e===Il&&(!(Fl&2)&&(ql|=n),Gl===4&&xu(e,Rl,Yl,!1)),od(e))}function vu(e,t,n){if(Fl&6)throw Error(i(327));var r=!n&&(t&127)==0&&(t&e.expiredLanes)===0||Fe(e,t),a=r?Mu(e,t):Au(e,t,!0),o=r;do{if(a===0){Hl&&!r&&xu(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!bu(n)){a=Au(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&&(wu(c,s).flags|=256),s=Au(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){wu(e,0),xu(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:xu(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-me(),10<a)){if(xu(r,t,Yl,!Vl),Pe(r,0,!0)!==0)break a;cu=t,r.timeoutHandle=Zd(yu.bind(null,r,n,Ql,ru,$l,t,Yl,ql,Xl,Vl,o,`Throttled`,-0,0),a);break a}yu(r,n,Ql,ru,$l,t,Yl,ql,Xl,Vl,o,null,-0,0)}}break}while(1);od(e)}function yu(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-me():(a&4194048)===a?tu-me():0;if(m=Zf(d,m),m!==null){cu=a,e.cancelPendingCommit=m(zu.bind(null,e,t,a,n,r,i,o,s,c,u,d,null,f,p)),xu(e,a,o,!l);return}}zu(e,t,a,n,r,i,o,s,c)}function bu(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 xu(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&&Ve(e,n,t)}function Su(){return Fl&6?!0:(sd(0,!1),!1)}function Cu(){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 wu(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,Qd(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),cu=0,Cu(),Il=e,Ll=n=Qr(e.current,null),Rl=t,zl=0,Bl=null,Vl=!1,Hl=Fe(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 Tu(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 Eu(){var e=Ka.current;return e===null?!0:(Rl&4194048)===Rl?qa===null:(Rl&62914560)===Rl||Rl&536870912?e===qa:!1}function Du(){var e=N.H;return N.H=Ms,e===null?Ms:e}function Ou(){var e=N.A;return N.A=Nl,e}function ku(){Gl=4,Vl||(Rl&4194048)!==Rl&&Ka.current!==null||(Hl=!0),!(Kl&134217727)&&!(ql&134217727)||Il===null||xu(Il,Rl,Yl,!1)}function Au(e,t,n){var r=Fl;Fl|=2;var i=Du(),a=Ou();(Il!==e||Rl!==t)&&(ru=null,wu(e,t)),t=!1;var o=Gl;a:do try{if(zl!==0&&Ll!==null){var s=Ll,c=Bl;switch(zl){case 8:Cu(),o=6;break a;case 3:case 2:case 9:case 6:Ka.current===null&&(t=!0);var l=zl;if(zl=0,Bl=null,Iu(e,s,c,l),n&&Hl){o=0;break a}break;default:l=zl,zl=0,Bl=null,Iu(e,s,c,l)}}ju(),o=Gl;break}catch(t){Tu(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 ju(){for(;Ll!==null;)Pu(Ll)}function Mu(e,t){var n=Fl;Fl|=2;var r=Du(),a=Ou();Il!==e||Rl!==t?(ru=null,nu=me()+500,wu(e,t)):Hl=Fe(e,t);a:do try{if(zl!==0&&Ll!==null){t=Ll;var o=Bl;b:switch(zl){case 1:zl=0,Bl=null,Iu(e,t,o,1);break;case 2:case 9:if(ha(o)){zl=0,Bl=null,Fu(t);break}t=function(){zl!==2&&zl!==9||Il!==e||(zl=7),od(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,Fu(t)):(zl=0,Bl=null,Iu(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?Jf(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,Lu(u))}break b}}zl=0,Bl=null,Iu(e,t,o,5);break;case 6:zl=0,Bl=null,Iu(e,t,o,6);break;case 8:Cu(),Gl=6;break a;default:throw Error(i(462))}}Nu();break}catch(t){Tu(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 Nu(){for(;Ll!==null&&!fe();)Pu(Ll)}function Pu(e){var t=Ec(e.alternate,e,Wl);e.memoizedProps=e.pendingProps,t===null?Lu(e):Ll=t}function Fu(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?Lu(e):Ll=t}function Iu(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=Ka.current,r!==null&&r.tag===13&&(r.flags|=16384))),Ru(t,e)):Lu(t)}function Lu(e){var t=e;do{if(t.flags&32768){Ru(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 Ru(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 zu(e,t,n,r,a,o,s,c,l){e.cancelPendingCommit=null;do Wu();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,Be(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,$u(ve,function(){return Gu(),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,Bu(),Vu(),Hu()}}function Bu(){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=Wd,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}}dp=!!Ud,Wd=Ud=null}finally{Fl=i,P.p=r,N.T=n}}e.current=t,au=2}}function Vu(){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 Hu(){if(au===4||au===3){au=0,pe();var e=ou,t=su,n=cu,r=du;t.subtreeFlags&10256||t.flags&10256?au=5:(au=0,su=ou=null,Uu(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(iu=null),Ge(n),t=t.stateNode,we&&typeof we.onCommitFiberRoot==`function`)try{we.onCommitFiberRoot(Ce,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&&Wu(),od(e),i=e.pendingLanes,n&261930&&i&42?e===pu?fu++:(fu=0,pu=e):fu=0,sd(0,!1)}}function Uu(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Qi(t)))}function Wu(){return Bu(),Vu(),Hu(),Gu()}function Gu(){if(au!==5)return!1;var e=ou,t=lu;lu=0;var n=Ge(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,sd(0,!1),we&&typeof we.onPostCommitFiberRoot==`function`)try{we.onPostCommitFiberRoot(Ce,o)}catch{}return!0}finally{P.p=a,N.T=r,Uu(e,t)}}function Ku(e,t,n){t=oi(n,t),t=Ks(e.stateNode,t,2),e=Na(e,t,2),e!==null&&(ze(e,2),od(e))}function qu(e,t,n){if(e.tag===3)Ku(e,e,n);else for(;t!==null;){if(t.tag===3){Ku(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),ze(r,2),od(r));break}}t=t.return}}function Ju(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=Yu.bind(null,e,t,n),t.then(e,e))}function Yu(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>me()-eu?!(Fl&2)&&wu(e,0):Jl|=n,Xl===Rl&&(Xl=0)),od(e)}function Xu(e,t){t===0&&(t=Le()),e=Gr(e,t),e!==null&&(ze(e,t),od(e))}function Zu(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Xu(e,n)}function Qu(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),Xu(e,n)}function $u(e,t){return ue(e,t)}var ed=null,td=null,nd=!1,rd=!1,id=!1,ad=0;function od(e){e!==td&&e.next===null&&(td===null?ed=td=e:td=td.next=e),rd=!0,nd||(nd=!0,pd())}function sd(e,t){if(!id&&rd){id=!0;do for(var n=!1,r=ed;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,fd(r,a))}else a=Rl,a=Pe(r,r===Il?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||Fe(r,a)||(n=!0,fd(r,a));r=r.next}while(n);id=!1}}function cd(){ld()}function ld(){rd=nd=!1;var e=0;ad!==0&&Xd()&&(e=ad);for(var t=me(),n=null,r=ed;r!==null;){var i=r.next,a=ud(r,t);a===0?(r.next=null,n===null?ed=i:n.next=i,i===null&&(td=n)):(n=r,(e!==0||a&3)&&(rd=!0)),r=i}au!==0&&au!==5||sd(e,!1),ad!==0&&(ad=0)}function ud(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]=Ie(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=Il,n=Rl,n=Pe(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&&de(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||Fe(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&de(r),Ge(n)){case 2:case 8:n=_e;break;case 32:n=ve;break;case 268435456:n=be;break;default:n=ve}return r=dd.bind(null,e),n=ue(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&de(r),e.callbackPriority=2,e.callbackNode=null,2}function dd(e,t){if(au!==0&&au!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Wu()&&e.callbackNode!==n)return null;var r=Rl;return r=Pe(e,e===Il?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(vu(e,r,t),ud(e,me()),e.callbackNode!=null&&e.callbackNode===n?dd.bind(null,e):null)}function fd(e,t){if(Wu())return null;vu(e,t,!0)}function pd(){ef(function(){Fl&6?ue(ge,cd):ld()})}function md(){if(ad===0){var e=ta;e===0&&(e=Ae,Ae<<=1,!(Ae&261888)&&(Ae=256)),ad=e}return ad}function hd(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:Bt(``+e)}function gd(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 _d(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=hd((i[Xe]||null).action),o=r.submitter;o&&(t=(t=o[Xe]||null)?hd(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(ad!==0){var e=o?gd(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?gd(i,o):new FormData(i),vs(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var vd=0;vd<Ir.length;vd++){var yd=Ir[vd];Lr(yd.toLowerCase(),`on`+(yd[0].toUpperCase()+yd.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`),ft(`onMouseEnter`,[`mouseout`,`mouseover`]),ft(`onMouseLeave`,[`mouseout`,`mouseover`]),ft(`onPointerEnter`,[`pointerout`,`pointerover`]),ft(`onPointerLeave`,[`pointerout`,`pointerover`]),dt(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),dt(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),dt(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),dt(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),dt(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),dt(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var bd=`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(` `),xd=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(bd));function Sd(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 Cd(e,t){var n=t[Qe];n===void 0&&(n=t[Qe]=new Set);var r=e+`__bubble`;n.has(r)||(Dd(t,e,2,!1),n.add(r))}function wd(e,t,n){var r=0;t&&(r|=4),Dd(n,e,r,t)}var Td=`_reactListening`+Math.random().toString(36).slice(2);function Ed(e){if(!e[Td]){e[Td]=!0,lt.forEach(function(t){t!==`selectionchange`&&(xd.has(t)||wd(t,!1,e),wd(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Td]||(t[Td]=!0,wd(`selectionchange`,!1,t))}}function Dd(e,t,n,r){switch(vp(t)){case 2:var i=fp;break;case 8:i=pp;break;default:i=mp}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 Od(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=it(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(kd(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)&&(it(u)||u[Ze]))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?it(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:ot(l),h=u==null?c:ot(u),c=new d(g,m+`leave`,l,n,i),c.target=f,c.relatedTarget=h,g=null,it(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=jd,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&&Md(s,c,l,d,!1),u!==null&&f!==null&&Md(s,f,u,d,!0)}}a:{if(c=r?ot(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?ot(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=Ad(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=Ad(r,`onBeforeInput`),0<x.length&&(y=new xn(`onBeforeInput`,`beforeinput`,null,n,i),s.push({event:y,listeners:x}),y.data=b)),_d(s,e,r,n,i)}Sd(s,t)})}function kd(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ad(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(kd(e,i,a)),i=Yt(e,t),i!=null&&r.push(kd(e,i,a))),e.tag===3)return r;e=e.return}return[]}function jd(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Md(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(kd(n,l,c))):i||(l=Yt(n,a),l!=null&&o.push(kd(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Nd=/\r\n?/g,Pd=/\u0000|\uFFFD/g;function Fd(e){return(typeof e==`string`?e:``+e).replace(Nd,`
|
|
10
|
-
`).replace(Pd,``)}function Id(e,t){return t=Fd(t),Fd(e)===t}function Ld(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`:vt(e,`class`,r);break;case`tabIndex`:vt(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:vt(e,n,r);break;case`style`:It(e,r,o);break;case`data`:if(t!==`object`){vt(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`&&Ld(e,t,`name`,a.name,a,null),Ld(e,t,`formEncType`,a.formEncType,a,null),Ld(e,t,`formMethod`,a.formMethod,a,null),Ld(e,t,`formTarget`,a.formTarget,a,null)):(Ld(e,t,`encType`,a.encType,a,null),Ld(e,t,`method`,a.method,a,null),Ld(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&&Cd(`scroll`,e);break;case`onScrollEnd`:r!=null&&Cd(`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`:Cd(`beforetoggle`,e),Cd(`toggle`,e),_t(e,`popover`,r);break;case`xlinkActuate`:yt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:yt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:yt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:yt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:yt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:yt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:yt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:yt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:yt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:_t(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,_t(e,n,r))}}function Rd(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&&Cd(`scroll`,e);break;case`onScrollEnd`:r!=null&&Cd(`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(!ut.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[Xe]||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,``):_t(e,n,r)}}}function zd(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:Cd(`error`,e),Cd(`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:Ld(e,t,o,s,n,null)}}a&&Ld(e,t,`srcSet`,n.srcSet,n,null),r&&Ld(e,t,`src`,n.src,n,null);return;case`input`:Cd(`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:Ld(e,t,r,d,n,null)}}Ot(e,o,c,l,u,s,a,!1);return;case`select`:for(a in Cd(`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:Ld(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 Cd(`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:Ld(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:Ld(e,t,l,r,n,null)}return;case`dialog`:Cd(`beforetoggle`,e),Cd(`toggle`,e),Cd(`cancel`,e),Cd(`close`,e);break;case`iframe`:case`object`:Cd(`load`,e);break;case`video`:case`audio`:for(r=0;r<bd.length;r++)Cd(bd[r],e);break;case`image`:Cd(`error`,e),Cd(`load`,e);break;case`details`:Cd(`toggle`,e);break;case`embed`:case`source`:case`link`:Cd(`error`,e),Cd(`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:Ld(e,t,u,r,n,null)}return;default:if(Lt(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&Rd(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&Ld(e,t,c,r,n,null))}function Bd(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)||Ld(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&&Ld(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)||Ld(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&&Ld(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:Ld(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&&Ld(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:Ld(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:Ld(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)&&Ld(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:Ld(e,t,u,p,r,m)}return;default:if(Lt(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&Rd(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||Rd(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&Ld(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||Ld(e,t,f,p,r,m)}function Vd(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function Hd(){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&&Vd(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&&Vd(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 Ud=null,Wd=null;function Gd(e){return e.nodeType===9?e:e.ownerDocument}function Kd(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 qd(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 Jd(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 Yd=null;function Xd(){var e=window.event;return e&&e.type===`popstate`?e===Yd?!1:(Yd=e,!0):(Yd=null,!1)}var Zd=typeof setTimeout==`function`?setTimeout:void 0,Qd=typeof clearTimeout==`function`?clearTimeout:void 0,$d=typeof Promise==`function`?Promise:void 0,ef=typeof queueMicrotask==`function`?queueMicrotask:$d===void 0?Zd:function(e){return $d.resolve(null).then(e).catch(tf)};function tf(e){setTimeout(function(){throw e})}function nf(e){return e===`head`}function rf(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),Lp(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)_f(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,_f(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[nt]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&_f(e.ownerDocument.body);n=i}while(n);Lp(t)}function af(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 of(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`:of(n),rt(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function J(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[nt])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=ff(e.nextSibling),e===null)break}return null}function sf(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=ff(e.nextSibling),e===null))return null;return e}function cf(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=ff(e.nextSibling),e===null))return null;return e}function lf(e){return e.data===`$?`||e.data===`$~`}function uf(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function df(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 ff(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 pf=null;function mf(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return ff(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function hf(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 gf(e,t,n){switch(t=Gd(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 _f(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);rt(e)}var vf=new Map,yf=new Set;function bf(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var xf=P.d;P.d={f:Sf,r:Cf,D:Ef,C:Df,L:Of,m:kf,X:jf,S:Af,M:Mf};function Sf(){var e=xf.f(),t=Su();return e||t}function Cf(e){var t=at(e);t!==null&&t.tag===5&&t.type===`form`?bs(t):xf.r(e)}var wf=typeof document>`u`?null:document;function Tf(e,t,n){var r=wf;if(r&&typeof t==`string`&&t){var i=Et(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),yf.has(i)||(yf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),zd(t,`link`,e),ct(t),r.head.appendChild(t)))}}function Ef(e){xf.D(e),Tf(`dns-prefetch`,e,null)}function Df(e,t){xf.C(e,t),Tf(`preconnect`,e,t)}function Of(e,t,n){xf.L(e,t,n);var r=wf;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=Pf(e);break;case`script`:a=Rf(e)}vf.has(a)||(e=f({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),vf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Ff(a))||t===`script`&&r.querySelector(zf(a))||(t=r.createElement(`link`),zd(t,`link`,e),ct(t),r.head.appendChild(t)))}}function kf(e,t){xf.m(e,t);var n=wf;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=Rf(e)}if(!vf.has(a)&&(e=f({rel:`modulepreload`,href:e},t),vf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(zf(a)))return}r=n.createElement(`link`),zd(r,`link`,e),ct(r),n.head.appendChild(r)}}}function Af(e,t,n){xf.S(e,t,n);var r=wf;if(r&&e){var i=st(r).hoistableStyles,a=Pf(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Ff(a)))s.loading=5;else{e=f({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=vf.get(a))&&Hf(e,n);var c=o=r.createElement(`link`);ct(c),zd(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,Vf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function jf(e,t){xf.X(e,t);var n=wf;if(n&&e){var r=st(n).hoistableScripts,i=Rf(e),a=r.get(i);a||(a=n.querySelector(zf(i)),a||(e=f({src:e,async:!0},t),(t=vf.get(i))&&Uf(e,t),a=n.createElement(`script`),ct(a),zd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Mf(e,t){xf.M(e,t);var n=wf;if(n&&e){var r=st(n).hoistableScripts,i=Rf(e),a=r.get(i);a||(a=n.querySelector(zf(i)),a||(e=f({src:e,async:!0,type:`module`},t),(t=vf.get(i))&&Uf(e,t),a=n.createElement(`script`),ct(a),zd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Nf(e,t,n,r){var a=(a=U.current)?bf(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=Pf(n.href),n=st(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=Pf(n.href);var o=st(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(Ff(e)))&&!o._p&&(s.instance=o,s.state.loading=5),vf.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},vf.set(e,n),o||Lf(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=Rf(n),n=st(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 Pf(e){return`href="`+Et(e)+`"`}function Ff(e){return`link[rel="stylesheet"][`+e+`]`}function If(e){return f({},e,{"data-precedence":e.precedence,precedence:null})}function Lf(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}),zd(t,`link`,n),ct(t),e.head.appendChild(t))}function Rf(e){return`[src="`+Et(e)+`"]`}function zf(e){return`script[async]`+e}function Bf(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,ct(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`),ct(r),zd(r,`style`,a),Vf(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Pf(n.href);var o=e.querySelector(Ff(a));if(o)return t.state.loading|=4,t.instance=o,ct(o),o;r=If(n),(a=vf.get(a))&&Hf(r,a),o=(e.ownerDocument||e).createElement(`link`),ct(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),zd(o,`link`,r),t.state.loading|=4,Vf(o,n.precedence,e),t.instance=o;case`script`:return o=Rf(n.src),(a=e.querySelector(zf(o)))?(t.instance=a,ct(a),a):(r=n,(a=vf.get(o))&&(r=f({},n),Uf(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),ct(a),zd(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,Vf(r,n.precedence,e));return t.instance}function Vf(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 Hf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Uf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Wf=null;function Gf(e,t,n){if(Wf===null){var r=new Map,i=Wf=new Map;i.set(n,r)}else i=Wf,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[nt]||a[Ye]||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 Kf(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function qf(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 Jf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Yf(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=Pf(r.href),a=t.querySelector(Ff(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=Qf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,ct(a);return}a=t.ownerDocument||t,r=If(r),(i=vf.get(i))&&Hf(r,i),a=a.createElement(`link`),ct(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),zd(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=Qf.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var Xf=0;function Zf(e,t){return e.stylesheets&&e.count===0&&ep(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&ep(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&Xf===0&&(Xf=62500*Hd());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ep(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>Xf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Qf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ep(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var $f=null;function ep(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,$f=new Map,t.forEach(tp,e),$f=null,Qf.call(e))}function tp(e,t){if(!(t.state.loading&4)){var n=$f.get(e);if(n)var r=n.get(null);else{n=new Map,$f.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=Qf.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 np={$$typeof:b,Provider:null,Consumer:null,_currentValue:F,_currentValue2:F,_threadCount:0};function rp(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=Re(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Re(0),this.hiddenUpdates=Re(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 ip(e,t,n,r,i,a,o,s,c,l,u,d){return e=new rp(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 ap(e){return e?(e=Jr,e):Jr}function op(e,t,n,r,i,a){i=ap(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&&(_u(n,e,t),Pa(n,e,t))}function sp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function cp(e,t){sp(e,t),(e=e.alternate)&&sp(e,t)}function lp(e){if(e.tag===13||e.tag===31){var t=Gr(e,67108864);t!==null&&_u(t,e,67108864),cp(e,67108864)}}function up(e){if(e.tag===13||e.tag===31){var t=mu();t=We(t);var n=Gr(e,t);n!==null&&_u(n,e,t),cp(e,t)}}var dp=!0;function fp(e,t,n,r){var i=N.T;N.T=null;var a=P.p;try{P.p=2,mp(e,t,n,r)}finally{P.p=a,N.T=i}}function pp(e,t,n,r){var i=N.T;N.T=null;var a=P.p;try{P.p=8,mp(e,t,n,r)}finally{P.p=a,N.T=i}}function mp(e,t,n,r){if(dp){var i=hp(r);if(i===null)Od(e,t,r,gp,n),Dp(e,r);else if(kp(i,e,t,n,r))r.stopPropagation();else if(Dp(e,r),t&4&&-1<Ep.indexOf(e)){for(;i!==null;){var a=at(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}od(a),!(Fl&6)&&(nu=me()+500,sd(0,!1))}}break;case 31:case 13:s=Gr(a,2),s!==null&&_u(s,a,2),Su(),cp(a,2)}if(a=hp(r),a===null&&Od(e,t,r,gp,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Od(e,t,r,null,n)}}function hp(e){return e=Ut(e),_p(e)}var gp=null;function _p(e){if(gp=null,e=it(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 gp=e,null}function vp(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(he()){case ge:return 2;case _e:return 8;case ve:case ye:return 32;case be:return 268435456;default:return 32}default:return 32}}var yp=!1,bp=null,xp=null,Sp=null,Cp=new Map,wp=new Map,Tp=[],Ep=`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 Dp(e,t){switch(e){case`focusin`:case`focusout`:bp=null;break;case`dragenter`:case`dragleave`:xp=null;break;case`mouseover`:case`mouseout`:Sp=null;break;case`pointerover`:case`pointerout`:Cp.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:wp.delete(t.pointerId)}}function Op(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=at(t),t!==null&&lp(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function kp(e,t,n,r,i){switch(t){case`focusin`:return bp=Op(bp,e,t,n,r,i),!0;case`dragenter`:return xp=Op(xp,e,t,n,r,i),!0;case`mouseover`:return Sp=Op(Sp,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return Cp.set(a,Op(Cp.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,wp.set(a,Op(wp.get(a)||null,e,t,n,r,i)),!0}return!1}function Ap(e){var t=it(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,qe(e.priority,function(){up(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,qe(e.priority,function(){up(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 jp(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=hp(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=at(n),t!==null&&lp(t),e.blockedOn=n,!1;t.shift()}return!0}function Mp(e,t,n){jp(e)&&n.delete(t)}function Np(){yp=!1,bp!==null&&jp(bp)&&(bp=null),xp!==null&&jp(xp)&&(xp=null),Sp!==null&&jp(Sp)&&(Sp=null),Cp.forEach(Mp),wp.forEach(Mp)}function Pp(e,n){e.blockedOn===n&&(e.blockedOn=null,yp||(yp=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Np)))}var Fp=null;function Ip(e){Fp!==e&&(Fp=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Fp===e&&(Fp=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(_p(r||n)===null)continue;break}var a=at(n);a!==null&&(e.splice(t,3),t-=3,vs(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Lp(e){function t(t){return Pp(t,e)}bp!==null&&Pp(bp,e),xp!==null&&Pp(xp,e),Sp!==null&&Pp(Sp,e),Cp.forEach(t),wp.forEach(t);for(var n=0;n<Tp.length;n++){var r=Tp[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Tp.length&&(n=Tp[0],n.blockedOn===null);)Ap(n),n.blockedOn===null&&Tp.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[Xe]||null;if(typeof a==`function`)o||Ip(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[Xe]||null)s=o.formAction;else if(_p(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Ip(n)}}}function Rp(){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 zp(e){this._internalRoot=e}Bp.prototype.render=zp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;op(n,mu(),e,t,null,null)},Bp.prototype.unmount=zp.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;op(e.current,2,null,e,null,null),Su(),t[Ze]=null}};function Bp(e){this._internalRoot=e}Bp.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ke();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Tp.length&&t!==0&&t<Tp[n].priority;n++);Tp.splice(n,0,e),n===0&&Ap(e)}};var Vp=n.version;if(Vp!==`19.2.6`)throw Error(i(527,Vp,`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 Hp={bundleType:0,version:`19.2.6`,rendererPackageName:`react-dom`,currentDispatcherRef:N,reconcilerVersion:`19.2.6`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Up=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Up.isDisabled&&Up.supportsFiber)try{Ce=Up.inject(Hp),we=Up}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=ip(e,1,!1,null,null,n,r,null,o,s,c,Rp),e[Ze]=t.current,Ed(e),new zp(t)}})),of=xo(((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=af()})),J=Hu(gu(),1),sf=typeof window<`u`?J.useLayoutEffect:J.useEffect;function cf(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 lf(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 uf(e){let t=J.useRef(null);return J.useImperativeHandle(e,()=>t.current,[]),t}function df(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 ff=4,pf=5;function mf(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 hf(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=mf(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 gf(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=hf(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=yf(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=yf(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=bf(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=bf(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=bf(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=yf(n.fullPath??n.from);e.kind=pf,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=yf(n.fullPath??n.from);e.kind=ff,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)gf(e,t,r,s,i,a,o)}function _f(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 vf(e){if(e.pathless)for(let t of e.pathless)vf(t);if(e.static)for(let t of e.static.values())vf(t);if(e.staticInsensitive)for(let t of e.staticInsensitive.values())vf(t);if(e.dynamic?.length){e.dynamic.sort(_f);for(let t of e.dynamic)vf(t)}if(e.optional?.length){e.optional.sort(_f);for(let t of e.optional)vf(t)}if(e.wildcard?.length){e.wildcard.sort(_f);for(let t of e.wildcard)vf(t)}}function yf(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 bf(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 xf(e,t){let n=yf(`/`),r=new Uint16Array(6);for(let t of e)gf(!1,r,t,1,n,0);vf(n),t.masksTree=n,t.flatCache=df(1e3)}function Sf(e,t){e||=`/`;let n=t.flatCache.get(e);if(n)return n;let r=Df(e,t.masksTree);return t.flatCache.set(e,r),r}function Cf(e,t,n,r,i){e||=`/`,r||=`/`;let a=t?`case\0${e}`:e,o=i.singleCache.get(a);return o||(o=yf(`/`),gf(t,new Uint16Array(6),{from:e},1,o,0),i.singleCache.set(a,o)),Df(r,o,n)}function wf(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=Df(e,t.segmentTree,n)}catch(e){if(e instanceof URIError)a=null;else throw e}return a&&(a.branch=kf(a.route)),t.matchCache.set(r,a),a}function Tf(e){return e===`/`?e:e.replace(/\/{1,}$/,``)}function Ef(e,t=!1,n){let r=yf(e.fullPath),i=new Uint16Array(6),a={},o={},s=0;return gf(t,i,e,1,r,0,e=>{if(n?.(e,s),e.id in a&&Ge(),a[e.id]=e,s!==0&&e.path){let t=Tf(e.fullPath);(!o[t]||e.fullPath.endsWith(`/`))&&(o[t]=e)}s++}),vf(r),{processedTree:{segmentTree:r,singleCache:df(1e3),matchCache:df(1e3),flatCache:null,masksTree:null},routesById:a,routesByPath:o}}function Df(e,t,n=!1){let r=e.split(`/`),i=jf(e,r,t,n);if(!i)return null;let[a]=Of(e,r,i);return{route:i.node.route,rawParams:a}}function Of(e,t,n){let r=Af(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===ff)break;if(u.kind===pf){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 kf(e){let t=[e];for(;e.parentRoute;)e=e.parentRoute,t.push(e);return t.reverse(),t}function Af(e){let t=Array(e.depth+1);do t[e.depth]=e,e=e.parent;while(e);return t}function jf(e,t,n,r){if(e===`/`&&n.index)return{node:n.index,skipped:0};let i=!il(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&&!Ff(l,n))continue;if(i.parse){if(!Pf(e,t,n))continue;_=n.rawParams,g=n.extract}r&&i.route&&i.kind!==ff&&Ff(c,n)&&(c=n);let v=u===o;if(v&&(i.route&&(!a||i.kind===ff||i.kind===2)&&Ff(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&&(Pf(e,t,n)||(r=!1)),r){if(!m&&!h&&!d&&Nf(p,o))return n;Ff(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+Mf(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+Mf(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+Mf(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+Mf(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 Mf(e,t){return 2**(e-t-1)}function Nf(e,t){return e===2**(t-1)-1}function Pf(e,t,n){let r,i;try{[r,i]=Of(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 Ff(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===ff)>(e.node.kind===ff)||t.node.kind===ff==(e.node.kind===ff)&&t.depth>e.depth))):!0}function If(e){return Lf(e.filter(e=>e!==void 0).join(`/`))}function Lf(e){return e.replace(/\/{2,}/g,`/`)}function Rf(e){return e===`/`?e:e.replace(/^\/{1,}/,``)}function zf(e){let t=e.length;return t>1&&e[t-1]===`/`?e.replace(/\/{1,}$/,``):e}function Bf(e){return zf(Rf(e))}function Vf(e,t){return e?.endsWith(`/`)&&e!==`/`&&e!==`${t}/`?e.slice(0,-1):e}function Hf(e,t,n){return Vf(e,n)===Vf(t,n)}function Uf({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&&il(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&&(il(s)===``?n===`never`&&s.pop():n===`always`&&s.push(``));let c=Lf(s.join(`/`))||`/`;return o&&r&&r.set(o,c),c}function Wf(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 Gf(e,t,n){let r=t[e];return typeof r==`string`?e===`_splat`?/^[a-zA-Z0-9\-._~!/]*$/.test(r)?r:r.split(`/`).map(e=>qf(e,n)).join(`/`):qf(r,n):r}function Kf({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=hf(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=Gf(`_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=Gf(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=Gf(i,t,n)??``;l+=`/`+u+f+d;continue}}return e.endsWith(`/`)&&(l+=`/`),{usedParams:a,interpolatedPath:l||`/`,isMissingParams:i}}function qf(e,t){let n=encodeURIComponent(e);return t?.(n)??n}function Jf(e){return e?.isNotFound===!0}function Yf(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 Xf(e){return e?e===`false`?!1:e===`true`?!0:e*0==0&&+e+``===e?+e:e:``}function Zf(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]=Xf(r):Array.isArray(t)?t.push(Xf(r)):n[e]=[t,Xf(r)]}return n}var Qf=ep(JSON.parse),$f=tp(JSON.stringify,JSON.parse);function ep(e){return t=>{t[0]===`?`&&(t=t.substring(1));let n=Zf(t);for(let t in n){let r=n[t];if(typeof r==`string`)try{n[t]=e(r)}catch{}}return n}}function tp(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=Yf(e,r);return t?`?${t}`:``}}var np=`__root__`;function rp(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 ip(e){return e instanceof Response&&!!e.options}var ap=e=>{if(!e.rendered)return e.rendered=!0,e.onReady?.()},op=e=>e.stores.matchesId.get().some(t=>e.stores.matchStores.get(t)?.get()._forcePending),sp=(e,t)=>!!(e.preload&&!e.router.stores.matchStores.has(t)),cp=(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},lp=(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},up=(e,t,n)=>{if(!(!ip(n)&&!Jf(n)))throw ip(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:ip(n)?`redirected`:Jf(n)?`notFound`:r.status===`pending`?`success`:r.status,context:cp(e,t.index),isFetching:!1,error:n})),Jf(n)&&!n.routeId&&(n.routeId=t.routeId),t._nonReactive.loadPromise?.resolve()),ip(n)&&(e.rendered=!0,n.options._fromLocation=e.location,n.redirectHandled=!0,n=e.router.resolveRedirect(n)),n)},dp=(e,t)=>{let n=e.router.getMatch(t);return!!(!n||n._nonReactive.dehydrated)},fp=(e,t,n)=>{let r=cp(e,n);e.updateMatch(t,e=>({...e,context:r}))},pp=(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,up(e,e.router.getMatch(r),n);try{a.options.onError?.(n)}catch(t){n=t,up(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&&!ip(n)&&!Jf(n)&&(e.serialError??=n)},mp=(e,t,n,r)=>{if(r._nonReactive.pendingTimeout!==void 0)return;let i=n.options.pendingMs??e.router.options.defaultPendingMs;if(e.onReady&&!sp(e,t)&&(n.options.loader||n.options.beforeLoad||Tp(n))&&typeof i==`number`&&i!==1/0&&(n.options.pendingComponent??e.router.options?.defaultPendingComponent)){let t=setTimeout(()=>{ap(e)},i);r._nonReactive.pendingTimeout=t}},hp=(e,t,n)=>{let r=e.router.getMatch(t);if(!r._nonReactive.beforeLoadPromise&&!r._nonReactive.loaderPromise)return;mp(e,t,n,r);let i=()=>{let n=e.router.getMatch(t);n.preload&&(n.status===`redirected`||n.status===`notFound`)&&up(e,n,n.error)};return r._nonReactive.beforeLoadPromise?r._nonReactive.beforeLoadPromise.then(i):i()},gp=(e,t,n,r)=>{let i=e.router.getMatch(t),a=i._nonReactive.loadPromise;i._nonReactive.loadPromise=kt(()=>{a?.resolve(),a=void 0});let{paramsError:o,searchError:s}=i;o&&pp(e,n,o),s&&pp(e,n,s),mp(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=kt();let f={...cp(e,n,!1),...i.__routeContext},{search:p,params:m,cause:h}=i,g=sp(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}(ip(r)||Jf(r))&&(u(),pp(e,n,r)),e.router.batch(()=>{u(),e.updateMatch(t,e=>({...e,__beforeLoadContext:r})),d()})},y;try{if(y=r.options.beforeLoad(_),ku(y))return u(),y.catch(t=>{pp(e,n,t)}).then(v)}catch(t){u(),pp(e,n,t)}v(y)},_p=(e,t)=>{let{id:n,routeId:r}=e.matches[t],i=e.router.looseRoutesById[r],a=()=>s(),o=()=>gp(e,n,t,i),s=()=>{if(dp(e,n))return;let t=hp(e,n,i);return ku(t)?t.then(o):o()};return a()},vp=(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}))},yp=(e,t,n,r,i)=>{let a=t[r-1],{params:o,loaderDeps:s,abortController:c,cause:l}=e.router.getMatch(n),u=cp(e,r),d=sp(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}},bp=async(e,t,n,r,i)=>{try{let a=e.router.getMatch(n);try{wp(i);let o=i.options.loader,s=typeof o==`function`?o:o?.handler,c=s?.(yp(e,t,n,r,i)),l=!!s&&ku(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;up(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:cp(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:cp(e,r)}));return}let s=a._nonReactive.minPendingPromise;s&&await s,Jf(t)&&await i.options.notFoundComponent?.preload?.(),up(e,e.router.getMatch(n),t);try{i.options.onError?.(t)}catch(t){o=t,up(e,e.router.getMatch(n),t)}!ip(o)&&!Jf(o)&&await wp(i,[`errorComponent`]),e.updateMatch(n,t=>({...t,error:o,context:cp(e,r),status:`error`,isFetching:!1}))}}catch(t){let r=e.router.getMatch(n);r&&(r._nonReactive.loaderPromise=void 0),up(e,r,t)}},xp=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(yp(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 bp(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){ip(t)&&await e.router.navigate(t.options)}})()):g!==`success`||o?await bp(e,t,i,n,d):fp(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(dp(e,i)){if(!e.router.getMatch(i))return e.matches[n];fp(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=sp(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&&up(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=kt(),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 Sp(e){let t=e,n=[];op(t.router)&&ap(t);let r;for(let e=0;e<t.matches.length;e++){try{let n=_p(t,e);ku(n)&&await n}catch(e){if(ip(e))throw e;if(Jf(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?lp(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(xp(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(ip(e))throw e;Jf(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=lp(t,l);e===void 0&&Ge();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 wp(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 wp(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=vp(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=ap(t);if(ku(d)&&await d,l)throw l;if(t.serialError&&!t.preload&&!t.onReady)throw t.serialError;return t.matches}function Cp(e,t){let n=t.map(t=>e.options[t]?.preload?.()).filter(Boolean);if(n.length!==0)return Promise.all(n)}function wp(e,t=Ep){!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===Ep?(()=>{if(e._componentsPromise===void 0){let t=Cp(e,Ep);t?e._componentsPromise=t.then(()=>{e._componentsLoaded=!0,e._componentsPromise=void 0}):e._componentsLoaded=!0}return e._componentsPromise})():Cp(e,t);return e._lazyPromise?e._lazyPromise.then(n):n()}function Tp(e){for(let t of Ep)if(e.options[t]?.preload)return!0;return!1}var Ep=[`component`,`errorComponent`,`pendingComponent`,`notFoundComponent`];function Dp(e){return{input:({url:t})=>{for(let n of e)t=kp(n,t);return t},output:({url:t})=>{for(let n=e.length-1;n>=0;n--)t=Ap(e[n],t);return t}}}function Op(e){let t=Bf(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=If([`/`,t,e.pathname]),e)}}function kp(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 Ap(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 jp(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(()=>Mp(o,_.get())),x=r(()=>Mp(s,v.get())),S=r(()=>Mp(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=df(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){Np(e,o,_,n,i)}function j(e){Np(e,s,v,n,i)}function M(e){Np(e,c,y,n,i)}return k}function Mp(e,t){let n=[];for(let r of t){let t=e.get(r);t&&n.push(t.get())}return n}function Np(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)}zl(n.get(),a)||n.set(a)})}var Pp=`__TSR_index`,Fp=`popstate`,Ip=`beforeunload`;function Lp(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=Hp(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[Pp];i=Rp(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[Pp];i=Rp(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[Pp]!==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 Rp(e,t){t||={};let n=Up();return{...t,key:n,__TSR_key:n,[Pp]:e}}function zp(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??(()=>Hp(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){let e=Up();t.history.replaceState({[Pp]: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=Hp(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[Pp]-l.state[Pp],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=Lp({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(Ip,S,{capture:!0}),t.removeEventListener(Fp,x)},onBlocked:()=>{u&&l!==u&&(l=u)},getBlockers:a,setBlockers:o,notifyOnIndexChange:!1});return t.addEventListener(Ip,S,{capture:!0}),t.addEventListener(Fp,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 Bp(e){let t=e?.window??(typeof document<`u`?window:void 0);return zp({window:t,parseLocation:()=>{let e=t.location.hash.split(`#`).slice(1),n=e[0]??`/`,r=t.location.search,i=e.slice(1);return Hp(`${n}${r}${i.length===0?``:`#${i.join(`#`)}`}`,t.history.state)},createHref:e=>`${t.location.pathname}${t.location.search}#${e}`})}function Vp(e){let t=e.replace(/[\x00-\x1f\x7f]/g,``);return t.startsWith(`//`)&&(t=`/`+t.replace(/^\/+/,``)),t}function Hp(e,t){let n=Vp(e),r=n.indexOf(`#`),i=n.indexOf(`?`),a=Up();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||{[Pp]:0,key:a,__TSR_key:a}}}function Up(){return(Math.random()+1).toString(36).substring(7)}function Wp(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 Gp=new WeakMap,tee=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=Wf(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=zp()),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=df(1e3),e=this.buildRouteTree(),this.setRoutes(e)}if(!this.stores&&this.latestLocation){let e=this.getStoreConfig(this);this.batch=e.batch,this.stores=jp(ree(this.latestLocation),e),hee(this)}let a=!1,o=this.options.basepath??`/`,s=this.options.rewrite;if(r||n!==o||i!==s){this.basepath=o;let e=[],t=Bf(o);t&&t!==`/`&&e.push(Op({basepath:o})),s&&e.push(s),this.rewrite=e.length===0?void 0:e.length===1?e[0]:Dp(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=Ef(this.routeTree,this.options.caseSensitive,(e,t)=>{e.init({originalIndex:t})});return this.options.routeMasks&&xf(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:oa(e).path,external:!1,searchStr:o,search:nu(t?.search,i),hash:oa(r.slice(1)).path,state:Gs(t?.state,a)}}let o=new URL(i,this.origin),s=kp(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:oa(s.pathname).path,external:!!this.rewrite&&s.origin!==this.origin,searchStr:l,search:nu(t?.search,c),hash:oa(s.hash.slice(1)).path,state:Gs(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)=>Uf({base:e,to:t.includes(`//`)?Lf(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=>iee({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,r=this.matchRoutesLightweight(n);t.from;let a=t.unsafeRelative===`path`?n.pathname:t.from??r.fullPath,o=t.to?`${t.to}`:void 0,s=r.search,c=Object.assign(Object.create(null),r.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,dr(t.params,c)),f=this.routesByPath[zf(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&&i(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:oa(Kf({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,qp(t.options.validateSearch,{...e,...h}))}catch{}}),h=e}h=aee({search:h,dest:t,destRoutes:p,_includeValidateSearch:e._includeValidateSearch}),h=nu(s,h);let g=this.options.stringifySearch(h),_=t.hash===!0?n.hash:t.hash?dr(t.hash,n.hash):void 0,v=_?`#${_}`:``,y=t.state===!0?n.state:t.state?dr(t.state,n.state):{};y=Gs(n.state,y);let b=`${m}${g}${v}`,x,S,C=!1;if(this.rewrite){let e=new URL(b,this.origin),t=Ap(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=va(b),S=x;return{publicHref:S,href:x,pathname:m,search:h,searchStr:g,state:y,hash:_??``,external:C,unmaskOnReload:t.unmaskOnReload}},n=(n={},r)=>{let i=t(n),a=r?t(r):void 0;if(!a){let n=Object.create(null);if(this.options.routeMasks){let o=Sf(i.pathname,this.processedTree);if(o){Object.assign(n,o.rawParams);let{from:i,params:s,...c}=o.route,l=s===!1||s===null?Object.create(null):(s??!0)===!0?n:Object.assign(n,dr(s,n));r={from:e.from,...c,params:l},a=t(r)}}}return a&&(i.maskedLocation=a),i};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=qi(n.state,this.latestLocation.state);return e.forEach(e=>{delete n.state[e]}),t},a=zf(this.latestLocation.href)===zf(n.href),o=this.commitLocationPromise;if(this.commitLocationPromise=kt(()=>{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=Hp(a,{__TSR_index:e?t:t+1}),r=new URL(n.pathname,this.origin);o.to=kp(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(Ko(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?Gp.set(this.latestLocation,t):Gp.delete(this.latestLocation);let n=this.latestLocation,r=Wp(n,this.stores.resolvedLocation.get());this.stores.redirect.get()||this.emit({type:`onBeforeNavigate`,...r}),this.emit({type:`onBeforeLoad`,...r}),await Sp({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){ip(e)?(n=e,this.navigate({...n.options,replace:!0,ignoreBlocker:!0})):Jf(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(Wp(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&&Ko(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=wp,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 Sp({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(ip(e))return e.options.reloadDocument?void 0:await this.preloadRoute({...e.options,_fromLocation:t});Jf(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=Cf(r.pathname,t?.caseSensitive??!1,t?.fuzzy??!1,i.pathname,this.processedTree);return!a||e.params&&!qi(a.rawParams,e.params,{partial:!0})?!1:t?.includeSearch??!0?qi(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??$f,parseSearch:e.parseSearch??Qf,protocolAllowlist:e.protocolAllowlist??Vt}),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=kf(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[`**`]:zf(e.pathname))&&(this.options.notFoundRoute?a=[...a,this.options.notFoundRoute]:o=!0);let s=o?see(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=qp(r.options.validateSearch,{...n})??void 0;u={...n,...e},d={...i,...e},f=void 0}catch(e){let r=e;if(e instanceof Kp||(r=new Kp(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}=Kf({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{cee(r,b)}catch(e){if(x=Jf(e)||ip(e)?e:new nee(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:nu(y?y.search:v.search,u),_strictSearch:d};else{let e=r.options.loader||r.options.beforeLoad||r.lazyFn||Tp(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?nu(y.search,u):u,_strictSearch:d,searchError:void 0,status:e,isFetching:!1,error:void 0,paramsError:x,__routeContext:void 0,_nonReactive:{loadPromise:kt()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:S,loaderDeps:y?Gs(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?nu(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=il(t),i={...e.search};for(let e of t)try{Object.assign(i,qp(e.options.validateSearch,i))}catch{}let a=il(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{cee(n,e)}catch{}c=e}return{matchedRoutes:t,fullPath:r.fullPath,search:i,params:c}}},Kp=class extends Error{},nee=class extends Error{};function ree(e){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:`idle`,resolvedLocation:void 0,location:e,matches:[],statusCode:200}}function qp(e,t){if(e==null)return{};if(`~standard`in e){let n=e[`~standard`].validate(t);if(n instanceof Promise)throw new Kp(`Async validation not supported`);if(n.issues)throw new Kp(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 iee({pathname:e,routesById:t,processedTree:n}){let r=Object.create(null),i=zf(e),a,o=wf(i,n,!0);return o&&(a=o.route,Object.assign(r,o.rawParams)),{matchedRoutes:o?.branch||[t.__root__],routeParams:r,foundRoute:a}}function aee({search:e,dest:t,destRoutes:n,_includeValidateSearch:r}){return oee(n)(e,t,r??!1)}function oee(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,...qp(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:dr(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 see(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 np}function cee(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 lee(){try{return sessionStorage}catch{return}}var uee=`tsr-scroll-restoration-v1_3`,Jp=lee();function dee(){try{return JSON.parse(Jp?.getItem(`tsr-scroll-restoration-v1_3`)||`{}`)}catch{return{}}}function fee(){try{Jp?.setItem(uee,JSON.stringify(Yp))}catch{}}var Yp=dee(),Xp=`data-scroll-restoration-id`,pee=e=>e.state.__TSR_key||e.href;function mee(e){let t=e.getAttribute(Xp);if(t)return`[${Xp}="${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 Zp=!1,Qp=`window`;function $p(e){try{return typeof e==`function`?e():document.querySelector(e)}catch{}}function em(e){let t=[];for(let n of e){if(n===Qp)continue;let e=$p(n);e&&t.push(e)}return t}function hee(e,t){if((t??e.options.scrollRestoration)&&(e.isScrollRestoring=!0),e.isScrollRestorationSetup)return;e.isScrollRestorationSetup=!0,Zp=!1;let n=e.options.getScrollRestorationKey||pee,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(!(Zp||!e.isScrollRestoring))if(t.target===document)i(Qp,scrollX,scrollY);else{let e=t.target;i(e,e.scrollLeft,e.scrollTop)}},o=t=>{if(!e.isScrollRestoring)return;let n=Yp[t]||={};for(let[e,t]of r)e===Qp?n[Qp]=t:e.isConnected&&(n[mee(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())),fee()}),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=Yp[l];if(e){let t=Yp[c];for(let n in e){if(n===Qp){if(o)continue}else{let e=$p(n);if(!e||o&&a&&(s??=em(a),s.includes(e)))continue}t||=Yp[c]={},t[n]??=e[n]}}}Zp=!0;try{let n=t.toLocation.hash,r=t.toLocation.state.__hashScrollIntoViewOptions??!0,l=!1;if(o){let o=Gp.get(t.toLocation),u=n&&r&&(o===`PUSH`||o===`REPLACE`),d=e.isScrollRestoring?Yp[c]:void 0;if(d)for(let e in d){let{scrollX:t,scrollY:n}=d[e];if(e===Qp){if(u)continue;scrollTo({top:n,left:t,behavior:i}),l=!0}else{let r=$p(e);r&&(r.scrollLeft=t,r.scrollTop=n)}}if(!l&&!n){let e={top:0,left:0,behavior:i};if(scrollTo(e),a){s??=em(a);for(let t of s)t.scrollTo(e)}}}!l&&n&&r&&document.getElementById(n)?.scrollIntoView(r)}finally{Zp=!1}})}var gee=`Error preloading route! ☝️`,tm=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=np:this.parentRoute||Ge();let r=n?np:t?.path;r&&r!==`/`&&(r=Rf(r));let i=t?.id||r,a=n?np:If([this.parentRoute.id===`__root__`?``:this.parentRoute.id,i]);r===`__root__`&&(r=`/`),a!==`__root__`&&(a=If([`/`,a]));let o=a===`__root__`?`/`:If([this.parentRoute.fullPath,r]);this._path=r,this._id=a,this._fullPath=o,this._to=zf(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=>rp({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.`)}},_ee=class extends tm{constructor(e){super(e)}},Y=Pi();function nm(e){let t=e.errorComponent??rm;return(0,Y.jsx)(vee,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:n,reset:r})=>n?J.createElement(t,{error:n,reset:r}):e.children})}var vee=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 rm({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 yee({children:e,fallback:t=null}){return im()?(0,Y.jsx)(J.Fragment,{children:e}):(0,Y.jsx)(J.Fragment,{children:t})}function im(){return J.useSyncExternalStore(bee,()=>!0,()=>!1)}function bee(){return()=>{}}var am=(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))(am||{});function xee({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 See(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 om=[],sm=0,{link:cm,unlink:Cee,propagate:wee,checkDirty:lm,shallowPropagate:um}=xee({update(e){return e._update()},notify(e){om[fm++]=e,e.flags&=~am.Watching},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=am.Mutable|am.Dirty,gm(e))}}),dm=0,fm=0,pm,mm=0;function hm(e){try{++mm,e()}finally{--mm||_m()}}function gm(e){let t=e.depsTail,n=t===void 0?e.deps:t.nextDep;for(;n!==void 0;)n=Cee(n,e)}function _m(){if(!(mm>0)){for(;dm<fm;){let e=om[dm];om[dm++]=void 0,e.notify()}dm=0,fm=0}}function vm(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?am.None:am.Mutable,get(){return pm!==void 0&&cm(i,pm,sm),i._snapshot},subscribe(e){let t=See(e),n={current:!1},r=Tee(()=>{i.get(),n.current?t.next?.(i._snapshot):n.current=!0});return{unsubscribe:()=>{r.stop()}}},_update(e){let a=pm,o=t?.compare??Object.is;if(n)pm=i,++sm,i.depsTail=void 0;else if(e===void 0)return!1;n&&(i.flags=am.Mutable|am.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{pm=a,n&&(i.flags&=~am.RecursedCheck),gm(i)}}};return n?(i.flags=am.Mutable|am.Dirty,i.get=function(){let e=i.flags;if(e&am.Dirty||e&am.Pending&&lm(i.deps,i)){if(i._update()){let e=i.subs;e!==void 0&&um(e)}}else e&am.Pending&&(i.flags=e&~am.Pending);return pm!==void 0&&cm(i,pm,sm),i._snapshot}):i.set=function(e){if(i._update(e)){let e=i.subs;e!==void 0&&(wee(e),um(e),_m())}},i}function Tee(e){let t=()=>{let t=pm;pm=n,++sm,n.depsTail=void 0,n.flags=am.Watching|am.RecursedCheck;try{return e()}finally{pm=t,n.flags&=~am.RecursedCheck,gm(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:am.Watching|am.RecursedCheck,notify(){let e=this.flags;e&am.Dirty||e&am.Pending&&lm(this.deps,this)?t():this.flags=am.Watching},stop(){this.flags=am.None,this.depsTail=void 0,gm(this)}};return t(),n}function ym(e){return $t({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function bm(e){let{select:t,...n}=e;return $t({...n,select:e=>t?t(e.loaderDeps):e.loaderDeps})}function Eee(e){return $t({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function xm(e){let t=it();return J.useCallback(n=>t.navigate({...n,from:n.from??e?.from}),[e?.from,t])}function Dee(e){return $t({...e,select:t=>e.select?e.select(t.context):t.context})}var Sm=Hu(Ja(),1);function Oee(e,t){let n=it(),r=uf(t),{activeProps:i,inactiveProps:a,activeOptions:o,to:s,preload:c,preloadDelay:l,preloadIntentProximity:u,hashScrollIntoView:d,replace:f,startTransition:p,resetScroll:m,viewTransition:h,children:g,target:_,disabled:v,style:y,className:b,onClick:x,onBlur:S,onFocus:C,onMouseEnter:w,onMouseLeave:T,onTouchStart:E,ignoreBlocker:D,params:O,search:k,hash:A,state:j,mask:M,reloadDocument:N,unsafeRelative:P,from:F,_fromLocation:I,...L}=e,R=im(),z=J.useMemo(()=>e,[n,e.from,e._fromLocation,e.hash,e.to,e.search,e.params,e.state,e.mask,e.unsafeRelative]),B=wr(n.stores.location,e=>e,(e,t)=>e.href===t.href),V=J.useMemo(()=>{let e={_fromLocation:B,...z};return n.buildLocation(e)},[n,B,z]),H=V.maskedLocation?V.maskedLocation.publicHref:V.publicHref,U=V.maskedLocation?V.maskedLocation.external:V.external,W=J.useMemo(()=>Pee(H,U,n.history,v),[v,U,H,n.history]),G=J.useMemo(()=>{if(W?.external)return Ko(W.href,n.protocolAllowlist)?void 0:W.href;if(!Fee(s)&&!(typeof s!=`string`||s.indexOf(`:`)===-1))try{return new URL(s),Ko(s,n.protocolAllowlist)?void 0:s}catch{}},[s,W,n.protocolAllowlist]),ee=J.useMemo(()=>{if(G)return!1;if(o?.exact){if(!Hf(B.pathname,V.pathname,n.basepath))return!1}else{let e=Vf(B.pathname,n.basepath),t=Vf(V.pathname,n.basepath);if(!(e.startsWith(t)&&(e.length===t.length||e[t.length]===`/`)))return!1}return(o?.includeSearch??!0)&&!qi(B.search,V.search,{partial:!o?.exact,ignoreUndefined:!o?.explicitUndefined})?!1:o?.includeHash?R&&B.hash===V.hash:!0},[o?.exact,o?.explicitUndefined,o?.includeHash,o?.includeSearch,B,G,R,V.hash,V.pathname,V.search,n.basepath]),te=ee?dr(i,{})??kee:Cm,ne=ee?Cm:dr(a,{})??Cm,K=[b,te.className,ne.className].filter(Boolean).join(` `),re=(y||te.style||ne.style)&&{...y,...te.style,...ne.style},[ie,ae]=J.useState(!1),oe=J.useRef(!1),se=e.reloadDocument||G?!1:c??n.options.defaultPreload,ce=l??n.options.defaultPreloadDelay??0,le=J.useCallback(()=>{n.preloadRoute({...z,_builtLocation:V}).catch(e=>{console.warn(e),console.warn(gee)})},[n,z,V]);lf(r,J.useCallback(e=>{e?.isIntersecting&&le()},[le]),Nee,{disabled:!!v||se!==`viewport`}),J.useEffect(()=>{oe.current||!v&&se===`render`&&(le(),oe.current=!0)},[v,le,se]);let ue=e=>{let t=e.currentTarget.getAttribute(`target`),r=_===void 0?t:_;if(!v&&!Iee(e)&&!e.defaultPrevented&&(!r||r===`_self`)&&e.button===0){e.preventDefault(),(0,Sm.flushSync)(()=>{ae(!0)});let t=n.subscribe(`onResolved`,()=>{t(),ae(!1)});n.navigate({...z,replace:f,resetScroll:m,hashScrollIntoView:d,startTransition:p,viewTransition:h,ignoreBlocker:D})}};if(G)return{...L,ref:r,href:G,...g&&{children:g},..._&&{target:_},...v&&{disabled:v},...y&&{style:y},...b&&{className:b},...x&&{onClick:x},...S&&{onBlur:S},...C&&{onFocus:C},...w&&{onMouseEnter:w},...T&&{onMouseLeave:T},...E&&{onTouchStart:E}};let de=e=>{if(v||se!==`intent`)return;if(!ce){le();return}let t=e.currentTarget;if(wm.has(t))return;let n=setTimeout(()=>{wm.delete(t),le()},ce);wm.set(t,n)},fe=e=>{v||se!==`intent`||le()},pe=e=>{if(v||!se||!ce)return;let t=e.currentTarget,n=wm.get(t);n&&(clearTimeout(n),wm.delete(t))};return{...L,...te,...ne,href:W?.href,ref:r,onClick:Tm([x,ue]),onBlur:Tm([S,pe]),onFocus:Tm([C,de]),onMouseEnter:Tm([w,de]),onMouseLeave:Tm([T,pe]),onTouchStart:Tm([E,fe]),disabled:!!v,target:_,...re&&{style:re},...K&&{className:K},...v&&Aee,...ee&&jee,...R&&ie&&Mee}}var Cm={},kee={className:`active`},Aee={role:`link`,"aria-disabled":!0},jee={"data-status":`active`,"aria-current":`page`},Mee={"data-transitioning":`transitioning`},wm=new WeakMap,Nee={rootMargin:`100px`},Tm=e=>t=>{for(let n of e)if(n){if(t.defaultPrevented)return;n(t)}};function Pee(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 Em=J.forwardRef((e,t)=>{let{_asChild:n,...r}=e,{type:i,...a}=Oee(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 Iee(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}var Lee=class extends tm{constructor(e){super(e),this.useMatch=e=>$t({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>Dee({...e,from:this.id}),this.useSearch=e=>Eee({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>_t({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>bm({...e,from:this.id}),this.useLoaderData=e=>ym({...e,from:this.id}),this.useNavigate=()=>xm({from:this.fullPath}),this.Link=J.forwardRef((e,t)=>(0,Y.jsx)(Em,{ref:t,from:this.fullPath,...e}))}};function Ree(e){return new Lee(e)}var zee=class extends _ee{constructor(e){super(e),this.useMatch=e=>$t({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>Dee({...e,from:this.id}),this.useSearch=e=>Eee({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>_t({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>bm({...e,from:this.id}),this.useLoaderData=e=>ym({...e,from:this.id}),this.useNavigate=()=>xm({from:this.fullPath}),this.Link=J.forwardRef((e,t)=>(0,Y.jsx)(Em,{ref:t,from:this.fullPath,...e}))}};function Bee(e){return new zee(e)}function Dm(e){return new Vee(e,{silent:!0}).createRoute}var Vee=class{constructor(e,t){this.path=e,this.createRoute=e=>{let t=Ree(e);return t.isRoot=!1,t},this.silent=t?.silent}};function Hee(e){let t=it(),n=`not-found-${wr(t.stores.location,e=>e.pathname)}-${wr(t.stores.status,e=>e)}`;return(0,Y.jsx)(nm,{getResetKey:()=>n,onCatch:(t,n)=>{if(Jf(t))e.onCatch?.(t,n);else throw t},errorComponent:({error:t})=>{if(Jf(t))return e.fallback?.(t);throw t},children:e.children})}function Uee(){return(0,Y.jsx)(`p`,{children:`Not Found`})}function Om(e){return(0,Y.jsx)(Y.Fragment,{children:e.children})}function km(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)(Uee,{})}var Am=J.memo(function({matchId:e}){let t=it(),n=t.stores.matchStores.get(e);n||Ge();let r=wr(t.stores.loadedAt,e=>e),i=wr(n,e=>e);return(0,Y.jsx)(Wee,{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 Wee({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:Om,f=s?nm:Om,p=l?Hee:Om;return(0,Y.jsxs)(i.isRoot?i.options.shellComponent??Om:Om,{children:[(0,Y.jsx)(xi.Provider,{value:t,children:(0,Y.jsx)(d,{fallback:o,children:(0,Y.jsx)(f,{getResetKey:()=>n,errorComponent:s||rm,onCatch:(e,t)=>{if(Jf(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)(yee,{fallback:o,children:(0,Y.jsx)(jm,{matchId:t})}):(0,Y.jsx)(jm,{matchId:t})})})})}),r.parentRouteId===`__root__`?(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(Gee,{resetKey:n}),(e.options.scrollRestoration,null)]}):null]})}function Gee({resetKey:e}){let t=it(),n=J.useRef(void 0);return sf(()=>{let e=t.latestLocation.href;(n.current===void 0||n.current!==e)&&(t.emit({type:`onRendered`,...Wp(t.stores.location.get(),t.stores.resolvedLocation.get())}),n.current=e)},[t.latestLocation.state.__TSR_key,e,t]),null}var jm=J.memo(function({matchId:e}){let t=it(),n=(e,n)=>t.getMatch(e.id)?._nonReactive[n]??e._nonReactive[n],r=t.stores.matchStores.get(e);r||Ge();let i=wr(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)(Mm,{})},[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=kt();n._nonReactive.minPendingPromise=t,setTimeout(()=>{t.resolve(),n._nonReactive.minPendingPromise=void 0},e)}}throw n(i,`loadPromise`)}if(i.status===`notFound`)return Jf(i.error)||Ge(),km(t,o,i.error);if(i.status===`redirected`)throw ip(i.error)||Ge(),n(i,`loadPromise`);if(i.status===`error`)throw i.error;return c}),Mm=J.memo(function(){let e=it(),t=J.useContext(xi),n,r=!1,i;{let a=t?e.stores.matchStores.get(t):void 0;[n,r]=wr(a,e=>[e?.routeId,e?.globalNotFound??!1]),i=wr(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||Ge(),km(e,a,void 0);if(!i)return null;let s=(0,Y.jsx)(Am,{matchId:i});return n===`__root__`?(0,Y.jsx)(J.Suspense,{fallback:o,children:s}):s});function Kee(){let e=it(),t=J.useRef({router:e,mounted:!1}),[n,r]=J.useState(!1),i=wr(e.stores.isLoading,e=>e),a=wr(e.stores.hasPending,e=>e),o=cf(i),s=i||n||a,c=cf(s),l=i||a,u=cf(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 zf(e.latestLocation.publicHref)!==zf(n.publicHref)&&e.commitLocation({...n,replace:!0}),()=>{t()}},[e,e.history]),sf(()=>{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]),sf(()=>{o&&!i&&e.emit({type:`onLoad`,...Wp(e.stores.location.get(),e.stores.resolvedLocation.get())})},[o,e,i]),sf(()=>{u&&!l&&e.emit({type:`onBeforeRouteMount`,...Wp(e.stores.location.get(),e.stores.resolvedLocation.get())})},[l,u,e]),sf(()=>{if(c&&!s){let t=Wp(e.stores.location.get(),e.stores.resolvedLocation.get());e.emit({type:`onResolved`,...t}),hm(()=>{e.stores.status.set(`idle`),e.stores.resolvedLocation.set(e.stores.location.get())})}},[s,c,e]),null}function qee(){let e=it(),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?Om:J.Suspense,{fallback:n,children:[(0,Y.jsx)(Kee,{}),(0,Y.jsx)(Jee,{})]});return e.options.InnerWrap?(0,Y.jsx)(e.options.InnerWrap,{children:r}):r}function Jee(){let e=it(),t=wr(e.stores.firstId,e=>e),n=wr(e.stores.loadedAt,e=>e),r=t?(0,Y.jsx)(Am,{matchId:t}):null;return(0,Y.jsx)(xi.Provider,{value:t,children:e.options.disableGlobalCatchBoundary?r:(0,Y.jsx)(nm,{getResetKey:()=>n,errorComponent:rm,onCatch:void 0,children:r})})}var Yee=e=>({createMutableStore:vm,createReadonlyStore:vm,batch:hm}),Xee=e=>new Zee(e),Zee=class extends tee{constructor(e){super(e,Yee)}};function Qee({router:e,children:t,...n}){i(n)&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});let r=(0,Y.jsx)(ci.Provider,{value:e,children:t});return e.options.Wrap?(0,Y.jsx)(e.options.Wrap,{children:r}):r}function $ee({router:e,...t}){return(0,Y.jsx)(Qee,{router:e,...t,children:(0,Y.jsx)(qee,{})})}function Nm(e){let t=it(),n=(0,J.useRef)(void 0);return wr(t.stores.location,r=>{let i=e?.select?e.select(r):r;if(e?.structuralSharing??t.options.defaultStructuralSharing){let e=Gs(n.current,i);return n.current=e,e}return i})}function Pm(){return wr(it().stores.location,e=>e.state.__TSR_index!==0)}var ete=Hu(of(),1),Fm=typeof window<`u`&&(window.desktopBridge!==void 0||window.nativeApi!==void 0);function tte(e){return{_tag:`Value`,value:e}}function nte(e,t){return{_tag:`Record`,keys:e,value:t}}function rte(e,t){return{_tag:`Array`,length:e,value:t}}Tn(`SourceError`);var ite=Ru(`effect/ConfigProvider`,{defaultValue:()=>dte()}),ate={..._,toJSON(){return{_id:`ConfigProvider`}}},ote=e=>e;function ste(e,t){let n=Object.create(ate);return n.state=e,n.load=t,n}function cte(e,t){let n={_tag:`Source`,get:e,transform:t};return ste(n,e=>n.get(n.transform(e)))}function lte(e){return cte(e,ote)}function ute(e,t){return e===``&&!t?void 0:e}function dte(e){let t=e?.env??{APP_VERSION:`0.0.36`,BASE_URL:`/`,DEV:!1,MODE:`production`,PROD:!0,SSR:!1,TSS_INLINE_CSS_ENABLED:`false`,VITE_HOSTED_APP_CHANNEL:``,VITE_HOSTED_APP_URL:``,VITE_HTTP_URL:``,VITE_WS_URL:``},n=e?.preserveEmptyStrings===!0,r=fte(t);return lte(e=>Aa(mte(r,t,e,n)))}function fte(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 pte=/^(0|[1-9][0-9]*)$/;function mte(e,t,n,r){let i=n.map(String).join(`_`),a=ute(Object.hasOwn(t,i)?t[i]:void 0,r),o=hte(e,n),s=o?.children?Object.keys(o.children):[];return s.length===0?a===void 0?void 0:tte(a):s.every(e=>pte.test(e))?rte(Math.max(...s.map(e=>parseInt(e,10)))+1,a):nte(new Set(s),a)}function hte(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 Im=`~effect/Config`,gte=class{_tag=`ConfigError`;name=`ConfigError`;cause;constructor(e){this.cause=e}get message(){return this.cause.toString()}toString(){return`ConfigError(${this.message})`}},_te={...pc({label:`Config`,evaluate(e){return this.parse(e.getRef(ite))}}),[Im]:Im,toJSON(){return{_id:`Config`}}};function vte(e){let t=Object.create(_te);return t.parse=(t,n=[])=>e(t,n),t}var Lm=yr(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*Lm(e,[...t,i]);n!==void 0&&ec(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*Lm(e,[...t,i]));return r}}}),Rm=yr(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*Rm(r.type,t,[...n,e]);a!==void 0&&ec(i,e,a)}}if(e.indexSignatures.length>0&&r&&r._tag===`Record`)for(let a of e.indexSignatures){let e=jd(a.parameter);for(let o of r.keys)if(!Object.hasOwn(i,o)&&e(o)){let e=yield*Rm(a.type,t,[...n,o]);e!==void 0&&ec(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*Rm(a,t,[...n,r]))}return i}case`Union`:return yield*Lm(t,n);case`Suspend`:return yield*Rm(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 zm(e,t){let n=Wd(e),r=Wr(n),i=vd(n.ast),a=typeof t==`string`?[t]:t??[];return vte((e,t)=>{let n=[...t,...a];return Rm(i,e,n).pipe(ta(e=>r(e).pipe(Lu(e=>new ne(n.length>0?new T(n,e):e)))),Lu(e=>new gte(e)))})}var yte=(e,t,n)=>{let r=Xo(e,t);return xl([r,Nu.pipe(Ku(Xo(Nu,Nu),De(n)),Ku(r))])};function bte(e){return zm(Nu,e)}var X=Me(),Bm=`~effect/PartitionedSemaphore`,xte=e=>{let t=Math.max(0,e.permits);if(!Number.isFinite(t))return{[Bm]:Bm,capacity:t,available:Aa(t),take:()=>ld,release:()=>Aa(t),withPermits:()=>e=>e,withPermit:()=>e=>e,withPermitsIfAvailable:()=>e=>L(e)};let n=t,r=0,i=Pe(),a=i[Symbol.iterator](),o=e=>{for(;e>0;){if(r===0)return n=Math.min(t,n+e),n;let o=a.next();if(o.done&&(a=i[Symbol.iterator](),o=a.next(),o.done))return n;let s=o.value[1].values().next().value;s!==void 0&&(--s.permits,--r,s.permits===0&&s.resume(),--e)}return n},s=(e,a)=>a<=0?ld:ft(s=>{if(t<a){s(ko);return}if(n>=a){n-=a,s(ld);return}let c=a-n;n>0&&(n=0),r+=c;let l=ms(yt(i,e),()=>{let t=new Set;return Er(i,e,t),t}),u={permits:c,resume:()=>{d(),s(ld)}},d=()=>{l.delete(u),l.size===0&&tn(i,e)};return l.add(u),Fd(()=>{d(),r-=u.permits,o(a-u.permits)})}),c=(e,t)=>n=>{if(t<=0)return n;let r=s(e,t);return V(e=>pa(e(r),()=>Kl(e(n),Fd(()=>{o(t)}))))},l=e=>e<=0?!0:t<e||n<e?!1:(n-=e,!0);return{[Bm]:Bm,capacity:t,available:Fd(()=>n),take:s,release:e=>Fd(()=>o(e)),withPermits:c,withPermit:e=>c(e,1),withPermitsIfAvailable:e=>t=>e<=0?L(t):Xu(()=>l(e)?Kl(L(t),Fd(()=>{o(e)})):Aa(Lr()))}},Ste=/-nightly\.\d{8}\.\d+$/;function Cte(e){let t=e.trim().toLowerCase();return t===`nightly`||t===`dev`}function wte(e){return e.settingsHydrated?e.configuredByUser||e.enabled?e.enabled:Cte(e.stageLabel):!1}function Vm(e){return e.primaryServerVersion&&Ste.test(e.primaryServerVersion)?`Nightly`:e.fallbackStageLabel}function Tte(e){let t=Vm({primaryServerVersion:e.primaryServerVersion,fallbackStageLabel:e.fallbackStageLabel});return t===e.fallbackStageLabel?e.fallbackDisplayName:B({baseName:e.baseName,stageLabel:t})}function Ete(){return typeof window>`u`?null:window.desktopBridge?.getAppBranding?.()??null}var Hm=Ete(),Um=``,Wm=Um===`latest`||Um===`nightly`?Um:null,Gm=Wm===`nightly`?`Nightly`:Wm===`latest`?`Latest`:null,Km=Hm?.baseName??`P4Code`,qm=Hm?.stageLabel??Gm??`Latest`,Jm=Hm?.displayName??B({baseName:Km,stageLabel:qm}),Ym=`0.0.36`,Dte=Ul(`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`}]]),Xm=Ul(`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`}]]),Ote=Ul(`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`}]]),Zm=Ul(`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`}]]),Qm=Ul(`arrow-down`,[[`path`,{d:`M12 5v14`,key:`s699le`}],[`path`,{d:`m19 12-7 7-7-7`,key:`1idqje`}]]),$m=Ul(`arrow-left`,[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]),kte=Ul(`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`}]]),eh=Ul(`arrow-up`,[[`path`,{d:`m5 12 7-7 7 7`,key:`hav0vg`}],[`path`,{d:`M12 19V5`,key:`x0mq9r`}]]),th=Ul(`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`}]]),nh=Ul(`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=Ul(`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`}]]),rh=Ul(`chevron-left`,[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]),ih=Ul(`chevrons-down-up`,[[`path`,{d:`m7 20 5-5 5 5`,key:`13a0gw`}],[`path`,{d:`m7 4 5 5 5-5`,key:`1kwcof`}]]),ah=Ul(`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`}]]),oh=Ul(`chevrons-up-down`,[[`path`,{d:`m7 15 5 5 5-5`,key:`1hf1tw`}],[`path`,{d:`m7 9 5-5 5 5`,key:`sgt6xg`}]]),sh=Ul(`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`}]]),jte=Ul(`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`}]]),ch=Ul(`circle-check`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),Mte=Ul(`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`}]]),Nte=Ul(`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`}]]),Pte=Ul(`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`}]]),Fte=Ul(`clock`,[[`path`,{d:`M12 6v6l4 2`,key:`mmk7yg`}],[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]]),lh=Ul(`cloud-upload`,[[`path`,{d:`M12 13v8`,key:`1l5pq0`}],[`path`,{d:`M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242`,key:`1pljnt`}],[`path`,{d:`m8 17 4-4 4 4`,key:`1quai1`}]]),uh=Ul(`cloud`,[[`path`,{d:`M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z`,key:`p7xjir`}]]),Ite=Ul(`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`}]]),dh=Ul(`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`}]]),Lte=Ul(`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`}]]),fh=Ul(`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`}]]),ph=Ul(`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`}]]),mh=Ul(`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`}]]),hh=Ul(`external-link`,[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`M10 14 21 3`,key:`gplh6r`}],[`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`,key:`a6xqqp`}]]),Rte=Ul(`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`}]]),gh=Ul(`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`}]]),zte=Ul(`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`}]]),_h=Ul(`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`}]]),Bte=Ul(`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`}]]),vh=Ul(`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`}]]),yh=Ul(`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`}]]),bh=Ul(`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`}]]),xh=Ul(`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`}]]),Sh=Ul(`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`}]]),Vte=Ul(`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`}]]),Ch=Ul(`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`}]]),wh=Ul(`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`}]]),Hte=Ul(`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`}]]),Ute=Ul(`git-branch-plus`,[[`path`,{d:`M6 3v12`,key:`qpgusn`}],[`path`,{d:`M18 9a3 3 0 1 0 0-6 3 3 0 0 0 0 6z`,key:`1d02ji`}],[`path`,{d:`M6 21a3 3 0 1 0 0-6 3 3 0 0 0 0 6z`,key:`chk6ph`}],[`path`,{d:`M15 6a9 9 0 0 0-9 9`,key:`or332x`}],[`path`,{d:`M18 15v6`,key:`9wciyi`}],[`path`,{d:`M21 18h-6`,key:`139f0c`}]]),Th=Ul(`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`}]]),Eh=Ul(`git-commit-horizontal`,[[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}],[`line`,{x1:`3`,x2:`9`,y1:`12`,y2:`12`,key:`1dyftd`}],[`line`,{x1:`15`,x2:`21`,y1:`12`,y2:`12`,key:`oup4p8`}]]),Dh=Ul(`git-pull-request`,[[`circle`,{cx:`18`,cy:`18`,r:`3`,key:`1xkwt0`}],[`circle`,{cx:`6`,cy:`6`,r:`3`,key:`1lh9wr`}],[`path`,{d:`M13 6h3a2 2 0 0 1 2 2v7`,key:`1yeb86`}],[`line`,{x1:`6`,x2:`6`,y1:`9`,y2:`21`,key:`rroup`}]]),Oh=Ul(`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`}]]),Wte=Ul(`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`}]]),Gte=Ul(`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`}]]),kh=Ul(`info`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 16v-4`,key:`1dtifu`}],[`path`,{d:`M12 8h.01`,key:`e9boi3`}]]),Kte=Ul(`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`}]]),qte=Ul(`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`}]]),Jte=Ul(`link`,[[`path`,{d:`M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71`,key:`1cjeqo`}],[`path`,{d:`M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71`,key:`19qd67`}]]),Yte=Ul(`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`}]]),Ah=Ul(`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`}]]),jh=Ul(`loader-circle`,[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]]),Mh=Ul(`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`}]]),Xte=Ul(`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`}]]),Nh=Ul(`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`}]]),Ph=Ul(`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`}]]),Fh=Ul(`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`}]]),Ih=Ul(`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`}]]),Lh=Ul(`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`}]]),Rh=Ul(`minus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}]]),zh=Ul(`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`}]]),Bh=Ul(`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`}]]),Vh=Ul(`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`}]]),Zte=Ul(`palette`,[[`path`,{d:`M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z`,key:`e79jfc`}],[`circle`,{cx:`13.5`,cy:`6.5`,r:`.5`,fill:`currentColor`,key:`1okk4w`}],[`circle`,{cx:`17.5`,cy:`10.5`,r:`.5`,fill:`currentColor`,key:`f64h9f`}],[`circle`,{cx:`6.5`,cy:`12.5`,r:`.5`,fill:`currentColor`,key:`qy21gx`}],[`circle`,{cx:`8.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`fotxhn`}]]),Qte=Ul(`panel-bottom`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M3 15h18`,key:`5xshup`}]]),$te=Ul(`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`}]]),ene=Ul(`panel-left`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}]]),Hh=Ul(`panel-right`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M15 3v18`,key:`14nvp0`}]]),Uh=Ul(`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`}]]),tne=Ul(`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`}]]),Wh=Ul(`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`}]]),nne=Ul(`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`}]]),rne=Ul(`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`}]]),Gh=Ul(`plus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]),ine=Ul(`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`}]]),Kh=Ul(`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`}]]),qh=Ul(`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`}]]),Jh=Ul(`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`}]]),Yh=Ul(`search`,[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]),Xh=Ul(`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`}]]),ane=Ul(`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`}]]),Zh=Ul(`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`}]]),Qh=Ul(`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`}]]),$h=Ul(`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`}]]),eg=Ul(`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`}]]),tg=Ul(`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`}]]),ng=Ul(`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`}]]),rg=Ul(`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`}]]),ig=Ul(`terminal`,[[`path`,{d:`M12 19h8`,key:`baeox8`}],[`path`,{d:`m4 17 6-6-6-6`,key:`1yngyt`}]]),ag=Ul(`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`}]]),og=Ul(`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`}]]),sg=Ul(`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`}]]),cg=Ul(`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`}]]),one=Ul(`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`}]]),lg=Ul(`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 sne(){let[,e]=J.useState({});return J.useCallback(()=>{e({})},[])}var cne=(0,J.createContext)(null);function lne(){return(0,J.useContext)(cne)?.defaultOptions??{}}var une=Yd();function ug(e,t=e=>e,n={}){let r=n.equal??dne;return(0,une.useSyncExternalStoreWithSelector)(e.subscribe,()=>e.state,()=>e.state,t,r)}function dne(e,t){if(Object.is(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(let[n,r]of e)if(!t.has(n)||!Object.is(r,t.get(n)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();let n=dg(e);if(n.length!==dg(t).length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!Object.is(e[n[r]],t[n[r]]))return!1;return!0}function dg(e){return Object.keys(e).concat(Object.getOwnPropertySymbols(e))}function fne(e,t,n=()=>({})){let r={...lne().debouncer,...t},[i]=(0,J.useState)(()=>{let t=new yo(e,r);return t.Subscribe=function(e){let n=ug(t.store,e.selector);return typeof e.children==`function`?e.children(n):e.children},t});i.fn=e,i.setOptions(r),(0,J.useEffect)(()=>()=>{i.cancel()},[i]);let a=ug(i.store,n);return(0,J.useMemo)(()=>({...i,state:a}),[i,a])}function pne(e,t,n){let[r,i]=(0,J.useState)(e),a=fne(i,t,n);return[r,a.maybeExecute,a]}function mne(e,t,n){let[r,i,a]=pne(e,t,n);return(0,J.useEffect)(()=>{i(e)},[e,i]),[r,a]}var hne=`\x1Bb`,gne=`\x1Bf`,_ne=``,vne=``,yne=``,bne={BracketLeft:[`[`],BracketRight:[`]`],Digit0:[`0`],Digit1:[`1`],Digit2:[`2`],Digit3:[`3`],Digit4:[`4`],Digit5:[`5`],Digit6:[`6`],Digit7:[`7`],Digit8:[`8`],Digit9:[`9`]};function fg(e){let t=e.toLowerCase();return t===`esc`?`escape`:t}function xne(e){let t=new Set([fg(e.key)]),n=e.code?.match(/^Key([A-Z])$/)?.[1];n&&t.add(n.toLowerCase());let r=e.code?bne[e.code]:void 0;if(!r)return t;for(let e of r)t.add(e);return t}function pg(e,t,n=navigator.platform){let r=sn(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 Sne(e,t,n=navigator.platform){return pg(e,t,n)?xne(e).has(t.key):!1}function mg(e){return e?.platform??navigator.platform}function hg(e){return{terminalFocus:!1,terminalOpen:!1,previewFocus:!1,previewOpen:!1,...e?.context}}function gg(e,t){switch(e.type){case`identifier`:return e.name===`true`?!0:e.name===`false`?!1:!!t[e.name];case`not`:return!gg(e.node,t);case`and`:return gg(e.left,t)&&gg(e.right,t);case`or`:return gg(e.left,t)||gg(e.right,t)}}function _g(e,t){return e?gg(e,t):!0}function Cne(e,t=navigator.platform){let n=sn(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 vg(e,t,n){let r=mg(n),i=hg(n),a=new Set;for(let n=e.length-1;n>=0;--n){let o=e[n];if(!o||!_g(o.whenAst,i))continue;let s=Cne(o.shortcut,r);if(!a.has(s)&&(a.add(s),o.command===t))return o.shortcut}return null}function yg(e,t,n,r){return bg(e,t,r)===n}function bg(e,t,n){let r=mg(n),i=hg(n);for(let n=t.length-1;n>=0;--n){let a=t[n];if(a&&_g(a.whenAst,i)&&Sne(e,a.shortcut,r))return a.command}return null}function wne(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 xg(e,t=navigator.platform){let n=wne(e.key),r=sn(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 Sg(e,t,n){let r=typeof n==`string`?{platform:n}:n,i=mg(r),a=vg(e,t,r);return a?xg(a,i):null}function Cg(e){return eo[e]??null}function wg(e){let t=eo.indexOf(e);return t===-1?null:t}function Tg(e){return e===`thread.previous`?`previous`:e===`thread.next`?`next`:null}function Eg(e,t,n){let r=mg(n);for(let i of eo){let a=vg(t,i,n);if(a&&pg(e,a,r))return!0}return!1}function Tne(e){return Yu[e]??null}function Ene(e){let t=Yu.indexOf(e);return t===-1?null:t}function Dne(e,t,n){return yg(e,t,`terminal.toggle`,n)}function One(e,t,n){return yg(e,t,`terminal.split`,n)}function kne(e,t,n){return yg(e,t,`terminal.splitVertical`,n)}function Ane(e,t,n){return yg(e,t,`terminal.new`,n)}function jne(e,t,n){return yg(e,t,`terminal.close`,n)}function Mne(e,t,n){return yg(e,t,`diff.toggle`,n)}function Nne(e,t,n){return yg(e,t,`editor.openFavorite`,n)}function Pne(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:sn(t)&&n===`k`&&e.metaKey&&!e.ctrlKey&&!e.altKey&&!e.shiftKey}function Fne(e,t=navigator.platform){return e.type!==void 0&&e.type!==`keydown`||!sn(t)||fg(e.key)!==`backspace`?null:e.metaKey&&!e.ctrlKey&&!e.altKey&&!e.shiftKey?yne:null}function Ine(e,t=navigator.platform){if(e.type!==void 0&&e.type!==`keydown`||e.shiftKey)return null;let n=fg(e.key);if(n!==`arrowleft`&&n!==`arrowright`)return null;let r=n===`arrowleft`?hne:gne,i=n===`arrowleft`?_ne:vne;return sn(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 Lne=[/\bSocketCloseError\b/i,/\bSocketOpenError\b/i,/\bSocket is not connected\b/i,/Unable to connect to the P4 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 Rne(e){if(typeof e!=`string`)return!1;let t=e.trim();return t.length===0?!1:Lne.some(e=>e.test(t))}function zne(e){return Rne(e)?null:e??null}var Dg=`[CLIENT_SETTINGS]`,Og=new Set,kg=new Set,Ag=Iu,jg=!1,Mg=null,Ng=0;function Bne(){for(let e of Og)e()}function Vne(){for(let e of kg)e()}function Pg(){return Ag}function Fg(e){Ag=e,Bne()}function Hne(e){jg!==e&&(jg=e,Vne())}function Une(e){return Og.add(e),Ig(),()=>{Og.delete(e)}}function Wne(){return jg}function Gne(e){return kg.add(e),Ig(),()=>{kg.delete(e)}}async function Ig(){if(jg)return;if(Mg)return Mg;let e=Ng,t=(async()=>{try{let t=await Gr().persistence.getClientSettings();if(e!==Ng)return;t&&Fg({...Iu,...t})}catch(e){console.error(`${Dg} hydrate failed`,{operation:`hydrate`,...yn(e)})}finally{e===Ng&&Hne(!0)}})().finally(()=>{Mg===t&&(Mg=null)});return Mg=t,Mg}function Lg(e){Fg(e),Gr().persistence.setClientSettings(e).catch(e=>{console.error(`${Dg} persist failed`,{operation:`persist`,...yn(e)})})}var Kne=new Set(uo(fs.fields));function qne(e){let t={},n={};for(let[r,i]of Object.entries(e))Kne.has(r)?t[r]=i:n[r]=i;return{serverPatch:t,clientPatch:n}}function Jne(){return Pg()}function Rg(){return(0,J.useSyncExternalStore)(Gne,Wne,Yne)}function Yne(){return!1}function zg(){return(0,J.useSyncExternalStore)(Une,Pg,Xne)}function Xne(){return Iu}function Zne(e,t){return{...e,...t}}function Bg(e,t){let n=(0,X.c)(6),r=zg(),i;n[0]!==r||n[1]!==e?(i=Zne(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 Vg(e){let t=(0,X.c)(3),n=zg(),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 Qne(e){return e.settingsHydrated?e.mode:`none`}function Hg(){let e=(0,X.c)(3),t=Rg(),n=zg().environmentIdentificationMode,r;return e[0]!==n||e[1]!==t?(r=Qne({mode:n,settingsHydrated:t}),e[0]=n,e[1]=t,e[2]=r):r=e[2],r}function Ug(){let e=(0,X.c)(4),t=Rg(),n=zg(),r;return e[0]!==n.sidebarV2ConfiguredByUser||e[1]!==n.sidebarV2Enabled||e[2]!==t?(r=wte({enabled:n.sidebarV2Enabled,configuredByUser:n.sidebarV2ConfiguredByUser,settingsHydrated:t,stageLabel:qm}),e[0]=n.sidebarV2ConfiguredByUser,e[1]=n.sidebarV2Enabled,e[2]=t,e[3]=r):r=e[3],r}function $ne(e,t){let n=(0,X.c)(2),r;return n[0]===e?r=n[1]:(r=br.settingsValueAtom(e),n[0]=e,n[1]=r),Bg(Io(r)??$o,t)}function Wg(e){return Bg(Io(pt),e)}function ere(e){let t=(0,X.c)(3),n=qu(br.updateSettings,`server settings update`),r;return t[0]!==e||t[1]!==n?(r=t=>{let{serverPatch:r,clientPatch:i}=qne(t);Object.keys(r).length>0&&e&&n({environmentId:e,input:{patch:r}}),Object.keys(i).length>0&&Lg({...Pg(),...i})},t[0]=e,t[1]=n,t[2]=r):r=t[2],r}function Gg(){return ere(Nr()?.environmentId??null)}function Kg(){return tre}function tre(e){Lg({...Pg(),...e})}function qg(e){return/^[a-zA-Z]:([/\\]|$)/.test(e)}function Jg(e){return e.startsWith(`\\\\`)}function Yg(e){return Jg(e)||qg(e)}function Xg(e){return e===`.`||e===`..`||e.startsWith(`./`)||e.startsWith(`../`)||e.startsWith(`.\\`)||e.startsWith(`..\\`)}function nre(e){return e===`/`||e===`\\`||/^[a-zA-Z]:[/\\]?$/.test(e)}function rre(e){if(e.length===0||nre(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 Zg(e){return rre(e.trim())}function Qg(e){let t=Zg(e);return qg(t)||Jg(t)?t.replaceAll(`/`,`\\`).toLowerCase():t}function ire(e){return JSON.stringify([e.environmentId,e.cwd,e.relativePath])}function are(e){let t=Ml(),n=Ml(),r=Ct(e=>Ar(null).pipe(Di(`environment-data:projects:optimistic-file:${e}`))),i={mode:`serial`,key:({environmentId:e,input:t})=>JSON.stringify([e,t.projectId])};return{searchEntries:bs(e,{label:`environment-data:projects:search-entries`,tag:Bo.projectsSearchEntries,staleTimeMs:15e3}),listEntries:bs(e,{label:`environment-data:projects:list-entries`,tag:Bo.projectsListEntries,staleTimeMs:3e4,idleTtlMs:5*6e4}),readFile:bs(e,{label:`environment-data:projects:read-file`,tag:Bo.projectsReadFile,staleTimeMs:3e4,idleTtlMs:5*6e4}),optimisticFile:e=>r(ire(e)),create:Kc(e,{label:`environment-data:commands:project:create`,execute:e=>Nl(e),scheduler:t,concurrency:i}),update:Kc(e,{label:`environment-data:commands:project:update`,execute:e=>Ps(e),scheduler:t,concurrency:i}),delete:Kc(e,{label:`environment-data:commands:project:delete`,execute:e=>qc(e),scheduler:t,concurrency:i}),writeFile:Ns(e,{label:`environment-data:projects:write-file`,tag:Bo.projectsWriteFile,scheduler:n,concurrency:{mode:`serial`,key:({environmentId:e,input:t})=>JSON.stringify([e,t.cwd,t.relativePath])}})}}var ore=Object.freeze([]),sre=new Map;function cre(e){let t=Ct(t=>Ar(n=>n(e.snapshotAtom(t))?.projects??ore).pipe(Di(`environment-projects:${t}`))),n=Ct(e=>Ar(n=>{let r=n(t(e));return r.length===0?sre:new Map(r.map(e=>[e.id,e]))}).pipe(Di(`environment-project-index:${e}`))),r=Ct(e=>{let n=[];return Ar(r=>{let i=r(t(e)).map(t=>({environmentId:e,projectId:t.id}));return Ur(n,i)?n:(n=i,i)}).pipe(Di(`environment-project-refs:${e}`))}),i=Ct(e=>{let t=lo(e),r=null,i=null;return Ar(e=>{let a=e(n(t.environmentId)).get(t.projectId)??null;return a===r?i:(r=a,i=a===null?null:ze(t.environmentId,a),i)}).pipe(Di(`environment-project:${e}`))}),a=[],o=Ar(t=>{let n=[];for(let i of t(e.catalogValueAtom).entries.keys())n.push(...t(r(i)));return Ur(a,n)?a:(a=n,n)}).pipe(Di(`environment-project-refs`)),s=[];return{environmentProjectsAtom:t,environmentProjectIndexAtom:n,environmentProjectRefsAtom:r,projectRefsAtom:o,projectsAtom:Ar(e=>{let t=e(o).flatMap(t=>{let n=e(i(Ad(t)));return n===null?[]:[n]});return Ud(s,t)||(s=t),s}).pipe(Di(`environment-project-list`)),projectAtom:e=>i(Ad(e))}}var $g=e=>/^win(dows)?/i.test(e);function e_(e){return qg(e)||Jg(e)?`windows`:e.startsWith(`/`)?`unix`:null}function t_(e){let t=e_(e);return t===`windows`?`\\`:t===`unix`?`/`:e.includes(`\\`)?`\\`:`/`}function n_(e){return(e_(e)===`unix`?/\/$/:/[\\/]$/).test(e)}function r_(e,t){return e.split(t===`/`?/\/+/:/[\\/]+/).filter(Boolean)}function i_(e){return e_(e)===`unix`?e.lastIndexOf(`/`):Math.max(e.lastIndexOf(`/`),e.lastIndexOf(`\\`))}function a_(e){if(qg(e)){let t=`${e.slice(0,2)}\\`;return{root:t,separator:`\\`,segments:r_(e.slice(t.length),`\\`)}}if(Jg(e)){let[t,n,...r]=r_(e,`\\`);return!t||!n?null:{root:`\\\\${t}\\${n}\\`,separator:`\\`,segments:r}}return e.startsWith(`/`)?{root:`/`,separator:`/`,segments:r_(e.slice(1),`/`)}:null}function lre(e,t=``){let n=$g(t);return e.startsWith(`./`)||e.startsWith(`../`)||e.startsWith(`.\\`)||e.startsWith(`..\\`)||e.startsWith(`/`)||e.startsWith(`~/`)||n&&Yg(e)}function o_(e,t){return Yg(e)&&!$g(t)}function s_(e,t){let n=e.trim();if(!Xg(n)||!t)return Zg(n);let r=a_(Zg(t));if(!r)return Zg(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 Zg(a.length===0?r.root:`${r.root}${a}`)}function ure(e,t){let n=Qg(t);if(n.length!==0)return e.find(e=>{let t=e.workspaceRoot??e.cwd;return t?Qg(t)===n:!1})}function dre(e){let t=Zg(e),n=a_(t);return n?n.segments.findLast(Boolean)??t:t.split(/[/\\]/).findLast(Boolean)??t}function fre(e,t){let n=t_(e);return`${c_(e)}${t}${n}`}function pre(e){let t=i_(e);return e.slice(t+1)}function c_(e){if(n_(e))return e;let t=i_(e);return t<0?e:e.slice(0,t+1)}function mre(e){let t=e.trim();return t.length===0||n_(t)?t:`${t}${t_(t)}`}function l_(e){let t=Zg(e),n=a_(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=t_(e),i=i_(t);return i<0?null:i===2&&/^[a-zA-Z]:/.test(t)?`${t.slice(0,2)}${r}`:t.slice(0,i+1)}function hre(e){return n_(e)&&l_(e)!==null}var u_=ar(et),d_=sc(et),f_=Nn(d_.stateAtom);bn({catalogValueAtom:_i.catalogValueAtom,shellStateValueAtom:d_.stateValueAtom});var gre=Ar(e=>{let t=Pt(e(_i.catalogAtom));if(Id(t))return!1;for(let n of t.value.entries.keys()){if(no(e(d_.stateValueAtom(n)).snapshot))continue;let t=ms(Pt(e(_i.stateAtom(n))),()=>ir);if(Re(t)!==`disconnected`||t.phase===`backoff`&&t.desired&&t.attempt<=2)return!1}return!0}).pipe(Di(`web-all-environment-shells-bootstrapped`)),p_=are(et),m_=cre({catalogValueAtom:_i.catalogValueAtom,snapshotAtom:f_}),h_=cs(et),g_=wo(et),__=Gu(g_.stateAtom),v_=Pc({catalogValueAtom:_i.catalogValueAtom,snapshotAtom:f_}),_re=Ar(Wl(id)).pipe(Di(`web-environment-thread:empty`));function vre(e,t){let n=(0,X.c)(5),r;n[0]!==e||n[1]!==t?(r=e!==null&&t!==null?g_.stateAtom(e,t):_re,n[0]=e,n[1]=t,n[2]=r):r=n[2];let i=Io(r),a;return n[3]===i?a=n[4]:(a=ms(Pt(i),yre),n[3]=i,n[4]=a),a}function yre(){return id}var bre=Object.freeze([]),xre=Object.freeze([]),Sre=Object.freeze([]),Cre=Object.freeze([]),wre=Object.freeze([]),Tre=Ar(null).pipe(Di(`web-project:empty`));Ar(bre).pipe(Di(`web-project-refs:empty`));var Ere=Ar(xre).pipe(Di(`web-thread-refs:empty`)),Dre=Ar(null).pipe(Di(`web-thread-shell:empty`)),Ore=Ar(null).pipe(Di(`web-thread-detail:empty`)),kre=Ar(`empty`).pipe(Di(`web-thread-status:empty`));Ar(Sre).pipe(Di(`web-thread-messages:empty`)),Ar(Cre).pipe(Di(`web-thread-activities:empty`));var Are=Ar(wre).pipe(Di(`web-thread-proposed-plans:empty`));Ar(null).pipe(Di(`web-thread-session:empty`));var y_=Ar(null).pipe(on,Di(`web-active-environment-id`));function b_(){return Io(y_)}function x_(e){Tt.set(y_,e)}function S_(){return Io(v_.threadRefsAtom)}function jre(e){let t=(0,X.c)(2),n;return t[0]===e?n=t[1]:(n=e===null?Ere:v_.environmentThreadRefsAtom(e),t[0]=e,t[1]=n),Io(n)}function C_(){return Io(m_.projectsAtom)}function w_(){return Io(v_.threadShellsAtom)}function Mre(){return Io(gre)}function Nre(e){let t=(0,X.c)(2),n;return t[0]===e?n=t[1]:(n=v_.threadShellsForProjectRefsAtom(e),t[0]=e,t[1]=n),Io(n)}function T_(e){let t=(0,X.c)(2),n;return t[0]===e?n=t[1]:(n=e===null?Tre:m_.projectAtom(e),t[0]=e,t[1]=n),Io(n)}function E_(e){let t=(0,X.c)(2),n;return t[0]===e?n=t[1]:(n=e===null?Dre:v_.threadShellAtom(e),t[0]=e,t[1]=n),Io(n)}function Pre(e){let t=(0,X.c)(2),n;return t[0]===e?n=t[1]:(n=e===null?Ore:__.detailAtom(e),t[0]=e,t[1]=n),Io(n)}function Fre(e){let t=(0,X.c)(2),n;return t[0]===e?n=t[1]:(n=e===null?kre:__.statusAtom(e),t[0]=e,t[1]=n),Io(n)}function Ire(e,t){return e!==null&&(!t.waitForShell||t.shellExists)?e:null}function D_(e,t){let n=(0,X.c)(7),r=E_(e),i=r!==null,a=t?.waitForShell===!0,o;n[0]!==e||n[1]!==i||n[2]!==a?(o=Ire(e,{shellExists:i,waitForShell:a}),n[0]=e,n[1]=i,n[2]=a,n[3]=o):o=n[3];let s=Pre(o),c;return n[4]!==s||n[5]!==r?(c=Lo(s,r),n[4]=s,n[5]=r,n[6]=c):c=n[6],c}function Lre(e){let t=(0,X.c)(2),n;return t[0]===e?n=t[1]:(n=e===null?Are:__.proposedPlansAtom(e),t[0]=e,t[1]=n),Io(n)}function Rre(e){return Tt.get(m_.projectAtom(e))}function O_(e){return Tt.get(v_.threadShellAtom(e))}function zre(e){return Tt.get(Fn).get(e)?.environment.capabilities.threadSettlement===!0}function Bre(e){return Tt.get(Fn).get(e)?.environment.capabilities.threadSnooze===!0}function Vre(e){return Tt.get(v_.environmentThreadRefsAtom(e))}function Hre(e){return e.filter(e=>e.state.hasRunningSubprocess).map(e=>e.target.terminalId)}var k_=Object.freeze({buffer:``,status:`closed`,error:null,updatedAt:null,version:0}),Ure=Object.freeze({summary:null,buffer:``,status:`closed`,error:null,hasRunningSubprocess:!1,updatedAt:null,version:0}),Wre=512*1024,Gre=new TextEncoder,Kre=new TextDecoder;function qre(e,t){if(t<=0)return``;let n=Gre.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 Kre.decode(n.subarray(r))}function Jre(e,t){return{buffer:qre(e.history,t),status:e.status,error:null,updatedAt:e.updatedAt,version:1}}function Yre(e,t){return e===null?t:t===null||Date.parse(e)>=Date.parse(t)?e:t}function Xre(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:Yre(e?.updatedAt??null,t.updatedAt),version:t.version}}function Zre(e,t,n=Wre){switch(t.type){case`snapshot`:case`restarted`:return Jre(t.snapshot,n);case`output`:return{...e,buffer:qre(`${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 Qre(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 $re(e){let t=Ml(),n=Ml(),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:rd(e,{label:`environment-data:terminal:attach`,subscribe:e=>C(Bo.terminalAttach,e).pipe(hn(k_,Zre))}),events:La(e,{label:`environment-data:terminal:events`,tag:Bo.subscribeTerminalEvents}),metadata:rd(e,{label:`environment-data:terminal:metadata`,subscribe:e=>C(Bo.subscribeTerminalMetadata,{}).pipe(hn([],Qre))}),open:Ns(e,{label:`environment-data:terminal:open`,tag:Bo.terminalOpen,scheduler:t,concurrency:a}),write:Ns(e,{label:`environment-data:terminal:write`,tag:Bo.terminalWrite}),resize:Ns(e,{label:`environment-data:terminal:resize`,tag:Bo.terminalResize,scheduler:n,concurrency:{mode:`latest`,key:i}}),clear:Ns(e,{label:`environment-data:terminal:clear`,tag:Bo.terminalClear,scheduler:t,concurrency:a}),restart:Ns(e,{label:`environment-data:terminal:restart`,tag:Bo.terminalRestart,scheduler:t,concurrency:a}),close:Ns(e,{label:`environment-data:terminal:close`,tag:Bo.terminalClose,scheduler:t,concurrency:a})}}var A_=$re(et);function eie(e){let t=(0,X.c)(13),n;t[0]!==e.environmentId||t[1]!==e.terminal?(n=e.environmentId!==null&&e.terminal!==null?A_.attach({environmentId:e.environmentId,input:e.terminal}):null,t[0]=e.environmentId,t[1]=e.terminal,t[2]=n):n=t[2];let r=od(n),i;t[3]===e.environmentId?i=t[4]:(i=e.environmentId===null?null:A_.metadata({environmentId:e.environmentId,input:null}),t[3]=e.environmentId,t[4]=i);let a=od(i),o;bb0:{if(e.environmentId===null||e.terminal===null){o=Ure;break bb0}let n;t[5]!==r.data||t[6]!==e.terminal?.terminalId||t[7]!==e.terminal?.threadId||t[8]!==a.data?(n=Xre(a.data?.find(t=>t.threadId===e.terminal?.threadId&&t.terminalId===e.terminal?.terminalId)??null,r.data??k_),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 j_(e){let t=(0,X.c)(11),n;t[0]===e.environmentId?n=t[1]:(n=e.environmentId===null?null:A_.metadata({environmentId:e.environmentId,input:null}),t[0]=e.environmentId,t[1]=n);let r=od(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:Ii.make(t.threadId),terminalId:t.terminalId},state:Xre(t,k_)}),t[9]=e.environmentId,t[10]=a),n=(r.data??[]).filter(i).map(a).sort(tie),t[3]=e.environmentId,t[4]=e.threadId,t[5]=r.data,t[6]=n}else n=t[6];i=n}return i}function tie(e,t){return e.target.terminalId.localeCompare(t.target.terminalId,void 0,{numeric:!0})}function M_(e){let t=(0,X.c)(2),n=j_(e),r;return t[0]===n?r=t[1]:(r=Hre(n),t[0]=n,t[1]=r),r}var N_={shortLabel:`PR`,singular:`pull request`},nie={icon:`github`,providerName:`GitHub`,shortName:`PR`,longName:`pull request`,pluralLongName:`pull requests`,providerLongName:`GitHub pull request`,checkoutCommandExample:`gh pr checkout 123`,urlExample:`https://github.com/owner/repo/pull/42`},rie={icon:`gitlab`,providerName:`GitLab`,shortName:`MR`,longName:`merge request`,pluralLongName:`merge requests`,providerLongName:`GitLab merge request`,checkoutCommandExample:`glab mr checkout 123`,urlExample:`https://gitlab.com/group/project/-/merge_requests/42`},iie={icon:`azure-devops`,providerName:`Azure DevOps`,shortName:`PR`,longName:`pull request`,pluralLongName:`pull requests`,providerLongName:`Azure DevOps pull request`,checkoutCommandExample:`az repos pr checkout --id 123`,urlExample:`https://dev.azure.com/org/project/_git/repo/pullrequest/42`},aie={icon:`bitbucket`,providerName:`Bitbucket`,shortName:`PR`,longName:`pull request`,pluralLongName:`pull requests`,providerLongName:`Bitbucket pull request`,urlExample:`https://bitbucket.org/workspace/repo/pull-requests/42`},oie={icon:`change-request`,providerName:`source control`,shortName:`change request`,longName:`change request`,pluralLongName:`change requests`,providerLongName:`change request`,urlExample:`#42`};function P_(e){switch(e?.kind){case`github`:case void 0:return nie;case`gitlab`:return rie;case`azure-devops`:return iie;case`bitbucket`:return aie;case`unknown`:return oie}}function F_(e){if(!e)return N_;let t=P_(e);return{shortLabel:t.shortName,singular:t.longName}}var sie=`p4code`,cie=RegExp(`^${sie}\\/(?:[0-9a-f]{8}|[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12})$`);function lie(e){let t=e.indexOf(`/`);return t<=0||t===e.length-1?e:e.slice(t+1)}function uie(e){return`${sie}/${e(4).toLowerCase().replace(/[^0-9a-f]/g,``).slice(0,8)}`}function die(e){return cie.test(e.trim().toLowerCase())}var fie={hasUpstream:!1,aheadCount:0,behindCount:0,aheadOfDefaultCount:0,pr:null};function I_(e,t){return{...e,...t??fie}}function pie(e){return{hasUpstream:e.hasUpstream,aheadCount:e.aheadCount,behindCount:e.behindCount,...e.aheadOfDefaultCount===void 0?{}:{aheadOfDefaultCount:e.aheadOfDefaultCount},pr:e.pr}}function mie(e){return{isRepo:e.isRepo,...e.sourceControlProvider?{sourceControlProvider:e.sourceControlProvider}:{},hasPrimaryRemote:e.hasPrimaryRemote,isDefaultRef:e.isDefaultRef,refName:e.refName,hasWorkingTreeChanges:e.hasWorkingTreeChanges,workingTree:e.workingTree}}function hie(e,t){switch(t._tag){case`snapshot`:return I_(t.local,t.remote);case`localUpdated`:return I_(t.local,e?pie(e):null);case`remoteUpdated`:return I_(e===null?{isRepo:!0,hasPrimaryRemote:!1,isDefaultRef:!1,refName:null,hasWorkingTreeChanges:!1,workingTree:{files:[],insertions:0,deletions:0}}:mie(e),t.remote)}}var L_=Ml(),R_={mode:`serial`,key:({environmentId:e,input:t})=>JSON.stringify([e,t.cwd])},gie=Ct(e=>Ar({revision:0,persistedCacheReadable:!0}).pipe(on,Di(`environment-data:vcs:list-refs-state:${e}`))),_ie=xte({permits:1});function z_(e){return gie(e.environmentId)}function vie(e,t,n){e.update(z_(t),e=>({revision:e.revision+1,persistedCacheReadable:n??e.persistedCacheReadable}))}function yie(e,t){return _ie.withPermit(e)(t)}var B_=Ea(`VcsRefsState.invalidateCached`)(function*(e,t){let n=yield*Mn;yield*yie(t.environmentId,Qc(function*(){vie(e,t,yield*n.clearVcsRefs(t.environmentId).pipe(rf(!0),$e(e=>uu(`Could not remove invalidated cached Git refs.`).pipe(Mr({environmentId:t.environmentId,cwd:t.cwd,...yn(e)}),rf(!1)))))}))}),bie=ba([`refresh_status`,`run_change_request`,`pull`,`switch_ref`,`create_ref`,`create_worktree`,`init`,`publish_repository`,`prepare_pull_request_thread`]),V_=class extends ou()(`VcsActionUnavailableError`,{operation:bie,environmentId:pr(ot),cwd:pr(Nu)}){get message(){return`Source control operation '${this.operation.replaceAll(`_`,` `)}' is unavailable.`}},xie=class extends ou()(`VcsActionRemoteFailureError`,{actionId:Nu,transportActionId:Nu,action:Ha,environmentId:ot,cwd:Nu,phase:pr(Rs),remoteMessageLength:o}){get message(){let e=this.phase===null?`execution`:this.phase;return`Source control action '${this.action}' failed during ${e}.`}},Sie=class extends ou()(`VcsActionMissingTerminalEventError`,{actionId:Nu,transportActionId:Nu,action:Ha,environmentId:ot,cwd:Nu}){get message(){return`Source control action '${this.action}' ended without a terminal result.`}},Cie=class extends ou()(`VcsActionTargetKeyParseError`,{keyLength:o,cause:jt()}){get message(){return`Invalid source control action target key (${this.keyLength} characters).`}};xl([xie,Sie]);var H_=Object.freeze({isRunning:!1,operation:null,actionId:null,action:null,currentLabel:null,currentPhaseLabel:null,hookName:null,lastOutputLine:null,phaseStartedAtMs:null,hookStartedAtMs:null,error:null}),wie=()=>or(Pn()),Tie=0,Eie=ls(Ys([ot,Nu])),U_=Ct(e=>Ar(H_).pipe(on,Di(`vcs-action:${e}`))),Die=Ar(H_).pipe(on,Di(`vcs-action:null`));function W_(e){return e.environmentId===null||e.cwd===null?null:JSON.stringify([e.environmentId,e.cwd])}function Oie(e){try{let[t,n]=Eie(JSON.parse(e));return{environmentId:t,cwd:n}}catch(t){throw new Cie({keyLength:e.length,cause:t})}}function kie(e){let t=W_(e);return t===null?Die:U_(t)}function Aie(){return Tie+=1,`local-vcs-action:${Tie}`}function G_(e){let t=e.actionId??Aie(),n=wie();return{...H_,isRunning:!0,operation:e.operation,actionId:t,currentLabel:e.label,currentPhaseLabel:e.label,phaseStartedAtMs:n}}function K_(e,t,n){return{...H_,operation:e,actionId:t,error:n instanceof Error?n.message:`Source control action failed.`}}function jie(e,t){let n=JSON.stringify([e.environmentId,e.cwd]);return`${n.length}:${n}${t}`}function Mie(e,t,n,r){return r.actionId!==t||r.cwd!==e.cwd?null:{...r,actionId:n}}function Nie(e,t){return Xu(()=>{let n=null;return e.pipe(nc(e=>{let r=Mie(t.target,t.transportActionId,t.actionId,e);return r===null?ld:((r.kind===`action_finished`||r.kind===`action_failed`)&&(n=r),t.onProgress(r))}),pa(()=>n?.kind===`action_finished`?Aa(n.result):n?.kind===`action_failed`?It(new xie({actionId:t.actionId,transportActionId:t.transportActionId,action:n.action,environmentId:t.target.environmentId,cwd:t.target.cwd,phase:n.phase,remoteMessageLength:n.message.length})):It(new Sie({actionId:t.actionId,transportActionId:t.transportActionId,action:t.action,environmentId:t.target.environmentId,cwd:t.target.cwd}))))})}function Pie(e,t){if(e.actionId!==t.actionId)return e;let n=wie();switch(t.kind){case`action_started`:return{...e,isRunning:!0,actionId:t.actionId,action:t.action,operation:`run_change_request`,phaseStartedAtMs:n,hookStartedAtMs:null,hookName:null,lastOutputLine:null,error:null};case`phase_started`:return{...e,isRunning:!0,actionId:t.actionId,action:t.action,operation:`run_change_request`,currentLabel:t.label,currentPhaseLabel:t.label,phaseStartedAtMs:n,hookStartedAtMs:null,hookName:null,lastOutputLine:null,error:null};case`hook_started`:return{...e,isRunning:!0,actionId:t.actionId,action:t.action,operation:`run_change_request`,currentLabel:`Running ${t.hookName}...`,hookName:t.hookName,hookStartedAtMs:n,lastOutputLine:null,error:null};case`hook_output`:return{...e,isRunning:!0,actionId:t.actionId,action:t.action,operation:`run_change_request`,lastOutputLine:t.text,error:null};case`hook_finished`:return{...e,isRunning:!0,actionId:t.actionId,action:t.action,operation:`run_change_request`,currentLabel:e.currentPhaseLabel,hookName:null,hookStartedAtMs:null,lastOutputLine:null,error:null};case`action_finished`:return{...H_,actionId:t.actionId,action:t.action,operation:`run_change_request`};case`action_failed`:return{...H_,actionId:t.actionId,action:t.action,operation:`run_change_request`,error:t.message}}}function Fie(e){let t=new Map,n=n=>{let r=W_(n),i=r??JSON.stringify([`vcs-action-target:unavailable`,n.environmentId,n.cwd]),a=t.get(i);if(a!==void 0)return a;let o=r===null?null:Oie(r),s=r===null?Die:U_(r),c=Hd(e,{label:`vcs-action:run-stacked:${i}`,scheduler:L_,concurrency:{mode:`serial`,key:()=>i},execute:(e,t)=>{if(o===null)return It(new V_({operation:`run_change_request`,environmentId:n.environmentId,cwd:n.cwd}));let r=jie(o,e.actionId);t.set(s,G_({operation:`run_change_request`,label:`Running source control action`,actionId:e.actionId}));let i={actionId:r,cwd:o.cwd,action:e.action,...e.commitMessage?{commitMessage:e.commitMessage}:{},...e.featureBranch?{featureBranch:!0}:{},...e.filePaths?.length?{filePaths:[...e.filePaths]}:{}};return Nie(gd(o.environmentId,yc(Bo.gitRunStackedAction,i)),{target:o,transportActionId:r,actionId:e.actionId,action:e.action,onProgress:n=>Fd(()=>{let r=t.get(s);if(r.actionId===e.actionId&&(t.set(s,Pie(r,n)),e.onProgress!==void 0))try{e.onProgress(n)}catch{}})}).pipe(Kl(B_(t,o)),to(n=>Fd(()=>{let r=t.get(s);r.actionId===e.actionId&&r.isRunning&&t.set(s,K_(`run_change_request`,e.actionId,n))})))}});return t.set(i,c),c},r=(e,t,n)=>{let r=W_(t);if(r===null)return;let i=U_(r);e.set(i,n(e.get(i)))};return{stateAtom:kie,runStackedAction:e=>n(e),track:async(e,t,n,r)=>{let i=W_(t);if(i===null)return mi(je(new V_({operation:n.operation,environmentId:t.environmentId,cwd:t.cwd})));let a=U_(i),o=G_(n);e.set(a,o);let s=await r();return e.get(a).actionId===o.actionId&&(qt(s)||gt(s.cause)?e.set(a,H_):e.get(a).actionId===o.actionId&&e.set(a,K_(n.operation,o.actionId,Cr(s.cause)))),s},resetError:(e,t,n)=>{r(e,t,e=>!e.isRunning&&e.operation===n?H_:e)}}}var Iie=100,Lie=3e4,Rie=ae(`1 second`).pipe(fc(({duration:e})=>Aa(pl(e,du(30)))));function zie(e){return e.query===void 0&&e.cursor===void 0&&e.includeMatchingRemoteRefs===void 0&&e.refKind===void 0&&e.limit===Iie}var Bie=Ea(`CachedVcsRefsState.commitRefresh`)(function*(e,t,n){return yield*yie(n.environmentId,Qc(function*(){let r=z_({environmentId:n.environmentId}),i=e.get(r);if(i.revision!==n.expectedRevision)return!1;let a=i.persistedCacheReadable;return n.persist&&(a||=yield*t.clearVcsRefs(n.environmentId).pipe(rf(!0),$e(e=>uu(`Could not recover invalidated cached Git refs.`).pipe(Mr({environmentId:n.environmentId,cwd:n.cwd,...yn(e)}),rf(!1)))),yield*t.saveVcsRefs(n.environmentId,n.cwd,n.refs).pipe($e(e=>uu(`Could not persist cached Git refs.`).pipe(Mr({environmentId:n.environmentId,cwd:n.cwd,...yn(e)})))),a!==i.persistedCacheReadable&&e.update(r,e=>e.revision===n.expectedRevision?{...e,persistedCacheReadable:a}:e)),!0}))}),Vie=Ea(`CachedVcsRefsState.makeChanges`)(function*(e,t,n,r=!0){let i=yield*oc,a=yield*Mn,o=i.target.environmentId,s=zie(e),c=s&&r?yield*a.loadVcsRefs(o,e.cwd).pipe($e(t=>uu(`Could not load cached Git refs.`).pipe(Mr({environmentId:o,cwd:e.cwd,...yn(t)}),rf(Lr())))):Lr(),l=Ea(`CachedVcsRefsState.refresh`)(function*(){let r=yield*Gn(Bo.vcsListRefs,e).pipe(zc(oc,i)),c=a.saveVcsRefs(o,e.cwd,r).pipe($e(t=>uu(`Could not persist cached Git refs.`).pipe(Mr({environmentId:o,cwd:e.cwd,...yn(t)}))));return t===void 0||n===void 0?(s&&(yield*c),H(r)):(yield*Bie(n,a,{environmentId:o,cwd:e.cwd,refs:r,expectedRevision:t,persist:s}))?H(r):Lr()});return fd(ce(Aa(c)).pipe(xe(e=>Cd(e,{onNone:()=>$c,onSome:Zl}))),fd(ce(Xn(i.state)),wn(i.state)).pipe(Vn(e=>e.phase===`connected`?e.generation:null),U,On(t=>t===null?Zr:ce(l().pipe(to(t=>uu(`Could not refresh Git refs.`).pipe(Mr({environmentId:o,cwd:e.cwd,...yn(t)}))))).pipe(y(Rie),xe(e=>Cd(e,{onNone:()=>$c,onSome:Zl}))))))});function Hie(e,t,n,r){return kd(e,er(Qc(function*(){return yield*Vie(t,n,yield*ut,r)})))}function Uie(e){let t=Ct(t=>Ct(n=>{let r=JSON.parse(n);return e.atom(e=>{let n=e(z_({environmentId:t}));return Hie(t,r,n.revision,n.persistedCacheReadable)}).pipe(tf(Lie),Di(`environment-data:vcs:list-refs:${t}:${n}`))})),n=e=>t(e.environmentId)(JSON.stringify(e.input)),r=(e,t)=>B_(t,{environmentId:e.environmentId,cwd:e.input.cwd});return{listRefs:n,status:rd(e,{label:`environment-data:vcs:status`,subscribe:e=>C(Bo.subscribeVcsStatus,e).pipe(hc(()=>null,(e,t)=>{let n=hie(e,t);return[n,[n]]}))}),pull:Ns(e,{label:`environment-data:vcs:pull`,tag:Bo.vcsPull,scheduler:L_,concurrency:R_,onSettled:r}),refreshStatus:Ns(e,{label:`environment-data:vcs:refresh-status`,tag:Bo.vcsRefreshStatus,scheduler:L_,concurrency:R_,onSettled:r}),createWorktree:Ns(e,{label:`environment-data:vcs:create-worktree`,tag:Bo.vcsCreateWorktree,scheduler:L_,concurrency:R_,onSettled:r}),removeWorktree:Ns(e,{label:`environment-data:vcs:remove-worktree`,tag:Bo.vcsRemoveWorktree,scheduler:L_,concurrency:R_,onSettled:r}),createRef:Ns(e,{label:`environment-data:vcs:create-ref`,tag:Bo.vcsCreateRef,scheduler:L_,concurrency:R_,onSettled:r}),switchRef:Ns(e,{label:`environment-data:vcs:switch-ref`,tag:Bo.vcsSwitchRef,scheduler:L_,concurrency:R_,onSettled:r}),init:Ns(e,{label:`environment-data:vcs:init`,tag:Bo.vcsInit,scheduler:L_,concurrency:R_,onSettled:r})}}var q_=Uie(et),J_=Fie(et),Y_=`p4code:ui-state:v1`,X_=1,Z_=[`p4code:renderer-state:v8`,`p4code:renderer-state:v7`,`p4code:renderer-state:v6`,`p4code:renderer-state:v5`,`p4code:renderer-state:v4`,`p4code:renderer-state:v3`,`codething:renderer-state:v4`,`codething:renderer-state:v3`,`codething:renderer-state:v2`,`codething:renderer-state:v1`],Q_={projectExpandedById:{},projectOrder:[],threadLastVisitedAtById:{},threadChangedFilesExpandedById:{},defaultAdvertisedEndpointKey:null},Wie=`legacy-project-cwd:`,$_=`legacy-project-expansion-default`,ev=!1;function tv(e){return`${Wie}${Qg(e)}`}function nv(e){return Array.isArray(e)?[...new Set(e.filter(e=>typeof e==`string`&&e.length>0))]:[]}function Gie(e){return!e||typeof e!=`object`?{}:Object.fromEntries(Object.entries(e).filter(e=>e[0].length>0&&typeof e[1]==`boolean`))}function Kie(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 rv(e){return{projectExpandedById:e.projectExpandedById===void 0?(()=>{let t={},n=nv(e.collapsedProjectCwds),r=nv(e.expandedProjectCwds);for(let e of n)t[tv(e)]=!1;for(let e of r)t[tv(e)]=!0;return!Array.isArray(e.collapsedProjectCwds)&&r.length>0&&(t[$_]=!1),t})():Gie(e.projectExpandedById),projectOrder:e.projectOrder===void 0?nv(e.projectOrderCwds).map(tv):nv(e.projectOrder),threadLastVisitedAtById:Kie(e.threadLastVisitedAtById),threadChangedFilesExpandedById:e.threadChangedFilesExpansionVersion===X_?Jie(e.threadChangedFilesExpandedById):{},defaultAdvertisedEndpointKey:typeof e.defaultAdvertisedEndpointKey==`string`&&e.defaultAdvertisedEndpointKey.length>0?e.defaultAdvertisedEndpointKey:null}}function qie(){if(typeof window>`u`)return Q_;try{let e=window.localStorage.getItem(Y_);if(!e){for(let e of Z_){let t=window.localStorage.getItem(e);if(t)return rv(JSON.parse(t))}return Q_}return rv(JSON.parse(e))}catch{return Q_}}function Jie(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 Yie(e){if(!(typeof window>`u`))try{let t=Object.fromEntries(Object.entries(e.projectExpandedById).filter(([e])=>e!==$_));if(window.localStorage.setItem(Y_,JSON.stringify({projectExpandedById:t,projectOrder:e.projectOrder,threadLastVisitedAtById:e.threadLastVisitedAtById,defaultAdvertisedEndpointKey:e.defaultAdvertisedEndpointKey,threadChangedFilesExpansionVersion:X_,threadChangedFilesExpandedById:e.threadChangedFilesExpandedById})),!ev){ev=!0;for(let e of Z_)window.localStorage.removeItem(e)}}catch{}}var iv=new yo(Yie,{wait:500});function Xie(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 Zie(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 Qie(e,t,n,r){let i=e.threadChangedFilesExpandedById[t]??{};return i[n]===r?e:{...e,threadChangedFilesExpandedById:{...e.threadChangedFilesExpandedById,[t]:{...i,[n]:r}}}}function $ie(e,t){let n=t&&t.length>0?t:null;return e.defaultAdvertisedEndpointKey===n?e:{...e,defaultAdvertisedEndpointKey:n}}function av(e,t){for(let n of t){let t=e[n];if(t!==void 0)return t}return e[$_]??!0}function eae(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 tae(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 ov=is(e=>({...qie(),markThreadVisited:(t,n)=>e(e=>Xie(e,t,n)),markThreadUnread:(t,n)=>e(e=>Zie(e,t,n)),setThreadChangedFilesExpanded:(t,n,r)=>e(e=>Qie(e,t,n,r)),setDefaultAdvertisedEndpointKey:t=>e(e=>$ie(e,t)),setProjectExpanded:(t,n)=>e(e=>eae(e,t,n)),reorderProjects:(t,n,r)=>e(e=>tae(e,t,n,r))}));ov.subscribe(e=>iv.maybeExecute(e)),typeof window<`u`&&typeof window.addEventListener==`function`&&window.addEventListener(`beforeunload`,()=>{iv.flush()});var sv=e=>{let t=(0,X.c)(3),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,Y.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M8 0C3.58 0 0 3.58 0 8C0 11.54 2.29 14.53 5.47 15.59C5.87 15.66 6.02 15.42 6.02 15.21C6.02 15.02 6.01 14.39 6.01 13.72C4 14.09 3.48 13.23 3.32 12.78C3.23 12.55 2.84 11.84 2.5 11.65C2.22 11.5 1.82 11.13 2.49 11.12C3.12 11.11 3.57 11.7 3.72 11.94C4.44 13.15 5.59 12.81 6.05 12.6C6.12 12.08 6.33 11.73 6.56 11.53C4.78 11.33 2.92 10.64 2.92 7.58C2.92 6.71 3.23 5.99 3.74 5.43C3.66 5.23 3.38 4.41 3.82 3.31C3.82 3.31 4.49 3.1 6.02 4.13C6.66 3.95 7.34 3.86 8.02 3.86C8.7 3.86 9.38 3.95 10.02 4.13C11.55 3.09 12.22 3.31 12.22 3.31C12.66 4.41 12.38 5.23 12.3 5.43C12.81 5.99 13.12 6.7 13.12 7.58C13.12 10.65 11.25 11.33 9.47 11.53C9.76 11.78 10.01 12.26 10.01 13.01C10.01 14.08 10 14.94 10 15.21C10 15.42 10.15 15.67 10.55 15.59C13.71 14.53 16 11.53 16 8C16 3.58 12.42 0 8 0Z`,transform:`scale(64)`,fill:`currentColor`}),t[0]=n):n=t[0];let r;return t[1]===e?r=t[2]:(r=(0,Y.jsx)(`svg`,{...e,viewBox:`0 0 1024 1024`,fill:`none`,children:n}),t[1]=e,t[2]=r),r},nae=e=>{let t=(0,X.c)(3),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,Y.jsx)(`path`,{d:`M251.17 116.6 139.4 4.82a16.49 16.49 0 0 0-23.31 0l-23.21 23.2 29.44 29.45a19.57 19.57 0 0 1 24.8 24.96l28.37 28.38a19.61 19.61 0 1 1-11.75 11.06L137.28 95.4v69.64a19.62 19.62 0 1 1-16.13-.57V94.2a19.61 19.61 0 0 1-10.65-25.73L81.46 39.44 4.83 116.08a16.49 16.49 0 0 0 0 23.32L116.6 251.17a16.49 16.49 0 0 0 23.32 0l111.25-111.25a16.5 16.5 0 0 0 0-23.33`,fill:`#DE4C36`}),t[0]=n):n=t[0];let r;return t[1]===e?r=t[2]:(r=(0,Y.jsx)(`svg`,{...e,viewBox:`0 0 256 256`,children:n}),t[1]=e,t[2]=r),r},rae=e=>{let t=(0,X.c)(21),n=(0,J.useId)(),r;t[0]===n?r=t[1]:(r=n.replaceAll(`:`,``),t[0]=n,t[1]=r);let i=`${r}-jj-a`,a,o,s,c,l,u,d;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,Y.jsx)(`path`,{d:`M380.7 632.3s-14.3 56-50.3 55.5c-12.1-.2-29-10.9-47.1-26.8-34.2 82.7-98.5 239-108.5 268.6-8.9 26.5 13 52 38.2 56 36.4 5.7 49-18.1 49-18.1s13.6 40.7 37.6 39.7c29.9-1.2 34.6-33 34.6-33s11.4 23.8 26.8 23.2c38.4-1.4 41.7-102.9 43.8-135.6 3.8-57.5 6.3-135.4 7.8-190.1-9 6.7-16.5 10.7-21.3 9.9-16.1-2.7-10.6-49.3-10.6-49.3z`,fill:`#42acde`}),o=(0,Y.jsx)(`path`,{d:`M403.7 75.1c-89.7-.3-201.5 32.6-200.6 99.6 1.3 87.4 52.2 62.4 41.2 111.2-4.9 21.6-59.9 49.8-65.5 153.8 2.8.7 5.3 1 7.2 1.2 14.2.7 29.9-26.3 29.9-26.3s9.5 38 35 38 50.7-26.3 50.7-26.3 15 30.3 39.6 32c20 1.6 34-8 34-8s.8 15 14.6 14c13.9-1.2 37.6-27.8 37.6-27.8 16.5 30.3 31.9 21 54.7 5.1 0 0 6.2 26.6 36.8 23.7 6-.6 12.3-1 18.5-1.5l.9-11.6c2-58.8-20.4-129.8-50.4-183-21.7-38.7-52.5-83.4-49.6-107.3 3.5-28.3 46.7-28.4 46.7-28.4l-48.5-16 24-37a279.7 279.7 0 0 0-56.8-5.4Z`,fill:`#2f9fdf`}),s=(0,Y.jsx)(`path`,{d:`M215.9 414.6s-15.7 27-30 26.3c-1.8-.1-4.3-.5-7-1.2l-.3 3c-2.3 52 7.7 100.3 29.7 132 35.1 50.7 92.6 112.6 122 113 36.1.6 50.4-55.4 50.4-55.4s-5.5 46.6 10.6 49.3c16 2.6 62.4-46.7 87.9-79.5 15.8-20.5 52-82.3 58.2-138.3-6.2.4-12.4 1-18.5 1.5-30.6 3-36.8-23.7-36.8-23.7-22.8 16-38.2 25.2-54.7-5 0 0-23.7 26.5-37.6 27.6-13.8 1.1-14.6-13.8-14.6-13.8s-14 9.5-34 8c-24.5-1.8-39.6-32.1-39.6-32.1s-25.2 26.3-50.7 26.3c-25.5 0-35-38-35-38z`,fill:`#0e254f`}),c=(0,Y.jsx)(`path`,{d:`M309.5 418.5a1.5 1.5 0 0 0-.7 0c-.6.2-1.1.8-1.5 1.8a34.7 34.7 0 0 0 4 16.6c5.5 10.6 12.4 22 23.3 27.6 4 2 8.5 3.5 12.5 3.3a36 36 0 0 0 12.5-2.3c4-2 7.6-3.8 10.8-6.2 6-4.4 7.6-6.5 7.6-9.8 0-3.3-2.7-3.5-7.6-.5-5 3-14.6 6.1-18.8 6.1-11.2 0-21.2-8-33.1-26.4-4.3-6.6-7.1-9.9-9-10.2zm174 5c-1.2-.2-2.4.4-3.8 1.7-2.3 2.3-2.7 4-2.6 10.7.5 9 4.8 19.2 11.8 24.6 4.4 3.3 13.2 6 20.4 5.8 6.8-1.1 18.8-6.6 15.3-10.3-2-1.6-5 .7-9.9.7-10.6 0-15.3-3.4-19.6-9-3.8-5-5.4-8.7-7.2-16.8-1.1-4.6-2.6-7.1-4.4-7.4zm-67.5 2.2a1 1 0 0 0-.4 0c-.4.1-.7.4-1.2.9-2.4 2-2.5 5.1-.2 12.6a41.4 41.4 0 0 0 25.3 22c7.6 1.7 14.5.6 20.3-2.7 3.8-2.4 5.3-5 4.4-7.3-4.8-2.9-7.7-1-13.3-1A39.5 39.5 0 0 1 424 435c-4.8-5.9-7-9.3-8-9.4zm-199 .8c-1 .3-1.4 2.7-1 7.2.3 5.3 1.3 8.2 4 12 3 4.5 11.5 11 14.7 11.7 2.5 1 6.9 2.3 10.7 2.3 3.8 0 8-.6 11.2-1.3 3.2-.7 6.8-2 10.3-4l1.3-.7c4-2.1 8-5.1 10.9-7.9l1.4-1.2c6.3-5.4 9.9-10.7 9.9-14.6 0-2.4-5.3-.5-14 5-16 9.8-31.1 13.2-40.9 9l-2.2-1.3-8.8-7.7a32.9 32.9 0 0 1-3.6-4.8c-1.4-2.2-2.5-3.4-3.3-3.7a1 1 0 0 0-.5 0z`,fill:`#71beea`}),l=(0,Y.jsx)(`path`,{d:`M221.6 468.8c-.5 0-.8.1-1.1.4-.3.2-.5.6-.6 1.2a10 10 0 0 0 .6 5.1 55 55 0 0 0 28.3 28.9 42.4 42.4 0 0 0 16.4 2c6.1-.2 12.3-1.4 16.6-3.4a48.3 48.3 0 0 0 13.7-10.6c.9-1 1.3-2 1.3-2.3 0-.6 0-.9-.3-1-.3-.3-.7-.4-1.6-.4-1.8 0-4.9.8-9.7 2.3-6.2 1.9-12.7 3-18.5 3.1-7.8.2-10.2-.4-17-3.7-4.5-2.2-12-7.7-17.7-12.8a232 232 0 0 0-7.2-6.3 63 63 0 0 0-2.4-2 12 12 0 0 0-.7-.4h-.1zm214.8 13.6c-.2 0-.5.7-.7 1.8v4a32 32 0 0 0 2.7 9.9 38.5 38.5 0 0 0 49.1 19.3c5.2-2.3 10-6.4 13-10.5 1.4-2.1 2.5-4.3 3-6.2.5-1.9.4-3.6-.3-4.9-.4-.8-.9-1.4-1.3-1.7-.3-.3-.6-.3-1-.2-.9.2-2.3 1.4-4.3 3.8-5 6.2-12.8 9.5-22.6 9.4-6.2 0-11-1.1-16-4.4-5-3.2-10.4-8.6-18-17.3-.8-1-1.7-2-2.5-2.4l-1-.6c-.1 0-.2 0 0 0zm-33.6 4.2-.6.2-1.4.7a53.5 53.5 0 0 0-4 2.5c-8 5.5-15.6 8.3-23.9 8.4-8.3 0-17.2-2.7-28-8.2a42 42 0 0 0-7.3-3c-2-.5-3.1-.5-3.6-.2-.2.1-.3.3-.4.6 0 .3 0 .8.2 1.5.4 1.3 1.4 3.1 3.1 5.5 4 5.4 10.5 10.1 19.7 14 9.3 3.9 23.8 3.5 32.4-1a42 42 0 0 0 9.1-6.5c2.6-2.6 4.5-6.5 5.3-9.6.5-1.5.6-3 .4-3.8 0-.4-.2-.7-.4-.9-.1-.2-.3-.2-.6-.2zm-132.5 30.8c-.3 0-.4 0-.5.2l-.1.5c0 .5.4 1.7 1.2 3.1a87.3 87.3 0 0 0 13.5 16.2c17 15.6 34.6 20.7 49 14.4a33.3 33.3 0 0 0 19-23c.4-2 .1-3.1-.2-3.5-.2-.2-.5-.3-1-.3l-1.7.5a24 24 0 0 0-5.7 4.6c-7.7 8-14.6 12-23 11.4-8.3-.4-18-5.2-31.7-14.3-5.2-3.4-9.4-6-12.5-7.6a15.5 15.5 0 0 0-6.3-2.2zm109.4 0c-.2 0-.3 0-.5.2-.1 0-.3.3-.4.7a9 9 0 0 0 0 3.3c.4 2.9 1.6 6.7 3.5 10.3 11 20.5 29.4 30.5 46.8 25.7a37.3 37.3 0 0 0 15.6-10c4.4-4.6 7.4-9.9 7.4-13.8 0-1.3-.1-2.3-.4-2.7 0-.3-.2-.4-.3-.4h-.5c-.6 0-1.5.4-2.7 1.2a57 57 0 0 0-4.7 3.7c-9 7.7-16.9 11.2-25.1 10-8.2-1.3-16.7-7.1-27-17.7a159.8 159.8 0 0 0-10.6-9.8 9.8 9.8 0 0 0-.9-.6l-.2-.1zm-140.2 43.5c-1 0-1.6.2-1.8.5-.2.4-.3 1 0 2.1.8 2.2 3.1 5.6 7.1 9.6a78.2 78.2 0 0 0 27.4 17.9c9.7 3.8 16.7 4.1 23.4 1.1 5.5-2.5 8.4-6.1 8.4-10.4a4 4 0 0 0-.4-2c-.3-.4-.6-.6-1-.7-.9-.1-2.5.4-4.6 1.8-2.7 2-6.4 2.3-11.3 1.2-5-1.2-11.3-3.8-19.5-8-8-4-17.5-9-21.3-11-2.9-1.4-5-2-6.4-2.1zm160.1 2.8c-.6-.1-1.7.2-3.1 1-1.4 1-3.2 2.3-5.2 4.1a58 58 0 0 1-12.7 8.7c-5.9 2.7-8.6 3.2-18.3 3.2-12.6 0-17.2-1.6-29.9-11.2a21 21 0 0 0-6.4-3.8c-.5 0-.5 0-.7.2-.2.3-.3 1-.3 2 0 2.2 1.5 5.7 3.8 9.2 2.4 3.4 5.7 7 9.2 9.5 8.1 6 14.3 7.8 26.2 7.4a34 34 0 0 0 18.3-4.1 51 51 0 0 0 13.1-9.8c3.8-3.8 6.5-8 7-10.7.4-2 .4-3.5.2-4.5a2 2 0 0 0-.5-1 1 1 0 0 0-.7-.2zm-2 21.4c-.5 0-.6 0-.8.4-.2.4-.3 1.2-.3 2.4 0 3.2 1.7 7.3 4.4 11 2.7 4 6.3 7.4 10 9.5a35 35 0 0 0 21.3 4.8c11-.9 17.8-3.4 23.8-12.6 1.5-2.5 2-4.8 1.4-6.7-.2-.7-.4-1.1-.8-1.4-.3-.2-.6-.3-1.2-.3-1 0-2.6.7-4.7 2.1-6 4.3-12 6.1-19.9 6.2-8.8 0-16.3-3-26.2-11-3.6-2.8-6-4.3-7-4.4zM290 605.5c-.6.3-.9.5-1 1a9 9 0 0 0 .1 3.3c1.8 11 13 25 24.4 30.2 8.5 4 20 4 28.5 0 7.7-3.5 16-11.1 19-17.3a25 25 0 0 0 2.2-6.3c.1-.7.1-1.3 0-1.6 0-.4-.2-.6-.4-.7-.3-.2-1.3-.2-2.8.5-1.6.7-3.6 2-6 4-10 8.2-18.6 12.1-27 11.4-8.6-.7-16.9-6-26.4-15.9a82.6 82.6 0 0 0-7.6-7.1 10 10 0 0 0-2-1.4c-.5-.2-.8-.2-1-.1z`,fill:`#309fdf`}),u=(0,Y.jsx)(`path`,{d:`M290 125.7a61.4 61.4 0 0 0-19 2.3c-19.9 5.7-33.5 15.8-36.5 52.2-3 36.6-18 45.5-20.3 46.7 14.7 26.7 38 24.5 30.1 59-2.4 11-17.6 23.5-32.8 46.5 34-27 56.4-48 99.6-100.5 0 0 39-47.6 25.1-77a52 52 0 0 0-46.1-29.2z`,fill:`#e9f2f1`}),d=(0,Y.jsx)(`path`,{d:`M288.5 120.8c-8.1 0-16.7 1.4-25.6 5.3-22.5 9.9-25 20.3-29.1 37a96.8 96.8 0 0 0-1.4 24.6 178 178 0 0 0-16.5-31.6s-19 19.8-36.5 18.6c-22.9-1.7-34 2-44.8 9.8-25.4 18.5-21.2 43.8-21.2 43.8s17.6-1.8 40.5 1c20.3 2.7 37.4 4.3 61.3 2.6 8.5-.6 15.8-10 19.3-19 4.5-4 2.9-22 4.8-24.5 3-3.4 8-4.7 10.6-5.2 3.7-.7 4.3 1.5 4.7 2.8a31 31 0 0 0 60.5-3.2c1-4.4 9-5 15.9-4.5 7 0 .9 15.9-1.7 22.3-5.4 13.2-24.9 39-24.9 39l124.3-85s-45.8 22-61.5 20c-19.7-2.3-25.7-34.8-43.2-44-9.9-5.1-22-9.6-35.5-9.8zm1.4 9.4a48.2 48.2 0 0 1 40.6 23.5c3.7 7.1 6.2 17-.3 20.2-7.6 3.7-14.7.7-15.5-2.8a31 31 0 0 0-30.2-24.1 30 30 0 0 0-30.8 27.4c-.4 5.2-9.1 7.7-12.7 3.7-2.7-3 1.7-16.8 3.7-22 6.2-16.2 27.8-25.7 45.2-26zm5.6 27.8a5.5 5.5 0 1 1 0 11 5.5 5.5 0 0 1 0-11zm-22 29a5.5 5.5 0 1 1 0 11 5.5 5.5 0 0 1 0-11zm40 523.4c-2.6-1.8-15.1 23.5-20 59-6.8 49-8.3 63.2-14.2 96-6 32.7-12.6 66.3-13.4 73.7-.6 4.8-1.7 19-.6 20.1 3.2 3.3 14.7-31.7 16.8-42 2-10.3 7.7-40.7 14.2-86.9 6.4-46.1 8.5-69.6 13.1-91.5 4.7-22 6.7-26.6 4.2-28.4zm66.3-27c-4.1-1.3-10.5 24.6-13.1 37.8-5.6 28.6-6.2 64-8.4 87a1099 1099 0 0 1-12 87.4c-2.7 15-8 29.4-9.8 44.6-1 9-5.2 26-.2 27.3 5.2 1.5 15.4-36.5 20-55.7 8.1-32.9 10.7-65.6 14.2-99.3 3.3-30.7 4.6-62.8 6.5-93.6.7-18.5 5.1-34.5 2.8-35.6z`,fill:`#0e254f`}),t[2]=a,t[3]=o,t[4]=s,t[5]=c,t[6]=l,t[7]=u,t[8]=d):(a=t[2],o=t[3],s=t[4],c=t[5],l=t[6],u=t[7],d=t[8]);let f;t[9]===i?f=t[10]:(f=(0,Y.jsx)(`defs`,{children:(0,Y.jsxs)(`g`,{id:i,children:[a,o,s,c,l,u,d]})}),t[9]=i,t[10]=f);let p;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,Y.jsx)(`rect`,{width:`1024`,height:`1024`,rx:`270`,fill:`#a7bcd9`}),t[11]=p):p=t[11];let m=`#${i}`,h;t[12]===m?h=t[13]:(h=(0,Y.jsx)(`use`,{href:m,transform:`matrix(-1 0 0 1 1024 0)`}),t[12]=m,t[13]=h);let g=`#${i}`,_;t[14]===g?_=t[15]:(_=(0,Y.jsx)(`use`,{href:g}),t[14]=g,t[15]=_);let v;return t[16]!==e||t[17]!==h||t[18]!==_||t[19]!==f?(v=(0,Y.jsxs)(`svg`,{...e,viewBox:`0 0 1024 1024`,children:[f,p,h,_]}),t[16]=e,t[17]=h,t[18]=_,t[19]=f,t[20]=v):v=t[20],v},cv=e=>{let t=(0,X.c)(6),n,r,i,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,Y.jsx)(`path`,{d:`m31.46 12.78-.04-.12-4.35-11.35A1.14 1.14 0 0 0 25.94.6c-.24 0-.47.1-.66.24-.19.15-.33.36-.39.6l-2.94 9h-11.9l-2.94-9A1.14 1.14 0 0 0 6.07.58a1.15 1.15 0 0 0-1.14.72L.58 12.68l-.05.11a8.1 8.1 0 0 0 2.68 9.34l.02.01.04.03 6.63 4.97 3.28 2.48 2 1.52a1.35 1.35 0 0 0 1.62 0l2-1.52 3.28-2.48 6.67-5h.02a8.09 8.09 0 0 0 2.7-9.36Z`,fill:`#E24329`}),r=(0,Y.jsx)(`path`,{d:`m31.46 12.78-.04-.12a14.75 14.75 0 0 0-5.86 2.64l-9.55 7.24 6.09 4.6 6.67-5h.02a8.09 8.09 0 0 0 2.67-9.36Z`,fill:`#FC6D26`}),i=(0,Y.jsx)(`path`,{d:`m9.9 27.14 3.28 2.48 2 1.52a1.35 1.35 0 0 0 1.62 0l2-1.52 3.28-2.48-6.1-4.6-6.07 4.6Z`,fill:`#FCA326`}),a=(0,Y.jsx)(`path`,{d:`M6.44 15.3a14.71 14.71 0 0 0-5.86-2.63l-.05.12a8.1 8.1 0 0 0 2.68 9.34l.02.01.04.03 6.63 4.97 6.1-4.6-9.56-7.24Z`,fill:`#FC6D26`}),t[0]=n,t[1]=r,t[2]=i,t[3]=a):(n=t[0],r=t[1],i=t[2],a=t[3]);let o;return t[4]===e?o=t[5]:(o=(0,Y.jsxs)(`svg`,{...e,viewBox:`0 0 32 32`,fill:`none`,children:[n,r,i,a]}),t[4]=e,t[5]=o),o},lv=e=>{let t=(0,X.c)(34),n=(0,J.useId)(),r;t[0]===n?r=t[1]:(r=n.replaceAll(`:`,``),t[0]=n,t[1]=r);let i=r,a=`${i}-azure-a`,o=`${i}-azure-b`,s=`${i}-azure-c`,c,l;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,Y.jsx)(`stop`,{offset:`0`,stopColor:`#114a8b`}),l=(0,Y.jsx)(`stop`,{offset:`1`,stopColor:`#0669bc`}),t[2]=c,t[3]=l):(c=t[2],l=t[3]);let u;t[4]===a?u=t[5]:(u=(0,Y.jsxs)(`linearGradient`,{id:a,x1:`-1032.17`,x2:`-1059.21`,y1:`145.31`,y2:`65.43`,gradientTransform:`matrix(1 0 0 -1 1075 158)`,gradientUnits:`userSpaceOnUse`,children:[c,l]}),t[4]=a,t[5]=u);let d,f,p,m,h;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,Y.jsx)(`stop`,{offset:`0`,stopOpacity:`.3`}),f=(0,Y.jsx)(`stop`,{offset:`.07`,stopOpacity:`.2`}),p=(0,Y.jsx)(`stop`,{offset:`.32`,stopOpacity:`.1`}),m=(0,Y.jsx)(`stop`,{offset:`.62`,stopOpacity:`.05`}),h=(0,Y.jsx)(`stop`,{offset:`1`,stopOpacity:`0`}),t[6]=d,t[7]=f,t[8]=p,t[9]=m,t[10]=h):(d=t[6],f=t[7],p=t[8],m=t[9],h=t[10]);let g;t[11]===o?g=t[12]:(g=(0,Y.jsxs)(`linearGradient`,{id:o,x1:`-1023.73`,x2:`-1029.98`,y1:`108.08`,y2:`105.97`,gradientTransform:`matrix(1 0 0 -1 1075 158)`,gradientUnits:`userSpaceOnUse`,children:[d,f,p,m,h]}),t[11]=o,t[12]=g);let _,v;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(_=(0,Y.jsx)(`stop`,{offset:`0`,stopColor:`#3ccbf4`}),v=(0,Y.jsx)(`stop`,{offset:`1`,stopColor:`#2892df`}),t[13]=_,t[14]=v):(_=t[13],v=t[14]);let y;t[15]===s?y=t[16]:(y=(0,Y.jsxs)(`linearGradient`,{id:s,x1:`-1027.16`,x2:`-997.48`,y1:`147.64`,y2:`68.56`,gradientTransform:`matrix(1 0 0 -1 1075 158)`,gradientUnits:`userSpaceOnUse`,children:[_,v]}),t[15]=s,t[16]=y);let b;t[17]!==g||t[18]!==y||t[19]!==u?(b=(0,Y.jsxs)(`defs`,{children:[u,g,y]}),t[17]=g,t[18]=y,t[19]=u,t[20]=b):b=t[20];let x=`url(#${a})`,S;t[21]===x?S=t[22]:(S=(0,Y.jsx)(`path`,{fill:x,d:`M33.34 6.54h26.04l-27.03 80.1a4.15 4.15 0 0 1-3.94 2.81H8.15a4.14 4.14 0 0 1-3.93-5.47L29.4 9.38a4.15 4.15 0 0 1 3.94-2.83z`}),t[21]=x,t[22]=S);let C;t[23]===Symbol.for(`react.memo_cache_sentinel`)?(C=(0,Y.jsx)(`path`,{fill:`#0078d4`,d:`M71.17 60.26H29.88a1.91 1.91 0 0 0-1.3 3.31l26.53 24.76a4.17 4.17 0 0 0 2.85 1.13h23.38z`}),t[23]=C):C=t[23];let w=`url(#${o})`,T;t[24]===w?T=t[25]:(T=(0,Y.jsx)(`path`,{fill:w,d:`M33.34 6.54a4.12 4.12 0 0 0-3.95 2.88L4.25 83.92a4.14 4.14 0 0 0 3.91 5.54h20.79a4.44 4.44 0 0 0 3.4-2.9l5.02-14.78 17.91 16.7a4.24 4.24 0 0 0 2.67.97h23.29L71.02 60.26H41.24L59.47 6.55z`}),t[24]=w,t[25]=T);let E=`url(#${s})`,D;t[26]===E?D=t[27]:(D=(0,Y.jsx)(`path`,{fill:E,d:`M66.6 9.36a4.14 4.14 0 0 0-3.93-2.82H33.65a4.15 4.15 0 0 1 3.93 2.82l25.18 74.62a4.15 4.15 0 0 1-3.93 5.48h29.02a4.15 4.15 0 0 0 3.93-5.48z`}),t[26]=E,t[27]=D);let O;return t[28]!==e||t[29]!==b||t[30]!==S||t[31]!==T||t[32]!==D?(O=(0,Y.jsxs)(`svg`,{...e,viewBox:`0 0 96 96`,children:[b,S,C,T,D]}),t[28]=e,t[29]=b,t[30]=S,t[31]=T,t[32]=D,t[33]=O):O=t[33],O},uv=e=>{let t=(0,X.c)(14),n=(0,J.useId)(),r;t[0]===n?r=t[1]:(r=n.replaceAll(`:`,``),t[0]=n,t[1]=r);let i=`${r}-bitbucket-a`,a,o;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,Y.jsx)(`path`,{fill:`none`,d:`M989.97,1493.09h518.05l125.04-730.04H852.22L989.97,1493.09z`}),o=(0,Y.jsx)(`path`,{fill:`#2684FF`,d:`M88.92,14.4C45.02,13.83,8.97,48.96,8.41,92.86c-0.06,4.61,0.28,9.22,1.02,13.77l337.48,2048.72 c8.68,51.75,53.26,89.8,105.74,90.24h1619.03c39.38,0.5,73.19-27.9,79.49-66.78l337.49-2071.78c7.03-43.34-22.41-84.17-65.75-91.2 c-4.55-0.74-9.15-1.08-13.76-1.02L88.92,14.4z M1509.99,1495.09H993.24l-139.92-731h781.89L1509.99,1495.09z`}),t[2]=a,t[3]=o):(a=t[2],o=t[3]);let s,c;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,Y.jsx)(`stop`,{offset:`0.18`,stopColor:`#0052CC`}),c=(0,Y.jsx)(`stop`,{offset:`1`,stopColor:`#2684FF`}),t[4]=s,t[5]=c):(s=t[4],c=t[5]);let l;t[6]===i?l=t[7]:(l=(0,Y.jsxs)(`linearGradient`,{id:i,gradientUnits:`userSpaceOnUse`,x1:`945.1094`,y1:`1524.8389`,x2:`944.4923`,y2:`1524.1893`,gradientTransform:`matrix(1996.6343 0 0 -1480.3047 -1884485.625 2258195)`,children:[s,c]}),t[6]=i,t[7]=l);let u=`url(#${i})`,d;t[8]===u?d=t[9]:(d=(0,Y.jsx)(`path`,{fill:u,d:`M2379.27,763.06h-745.5l-125.12,730.42H992.31l-609.67,723.67c19.32,16.71,43.96,26,69.5,26.21h1618.13 c39.35,0.51,73.14-27.88,79.44-66.72L2379.27,763.06z`}),t[8]=u,t[9]=d);let f;return t[10]!==e||t[11]!==l||t[12]!==d?(f=(0,Y.jsxs)(`svg`,{...e,viewBox:`8.4 14.39 2481.29 2231.21`,children:[a,o,l,d]}),t[10]=e,t[11]=l,t[12]=d,t[13]=f):f=t[13],f},dv=e=>{let t=(0,X.c)(9),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=q(`fill-[#26251E] dark:fill-[#EDECEC]`,n),t[3]=n,t[4]=i);let a;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,Y.jsx)(`path`,{d:`M457.43,125.94L244.42,2.96c-6.84-3.95-15.28-3.95-22.12,0L9.3,125.94c-5.75,3.32-9.3,9.46-9.3,16.11v247.99c0,6.65,3.55,12.79,9.3,16.11l213.01,122.98c6.84,3.95,15.28,3.95,22.12,0l213.01-122.98c5.75-3.32,9.3-9.46,9.3-16.11v-247.99c0-6.65-3.55-12.79-9.3-16.11h-.01ZM444.05,151.99l-205.63,356.16c-1.39,2.4-5.06,1.42-5.06-1.36v-233.21c0-4.66-2.49-8.97-6.53-11.31L24.87,145.67c-2.4-1.39-1.42-5.06,1.36-5.06h411.26c5.84,0,9.49,6.33,6.57,11.39h-.01Z`}),t[5]=a):a=t[5];let o;return t[6]!==r||t[7]!==i?(o=(0,Y.jsx)(`svg`,{...r,viewBox:`0 0 466.73 532.09`,className:i,children:a}),t[6]=r,t[7]=i,t[8]=o):o=t[8],o},fv=e=>{let t=(0,X.c)(10),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=q(`fill-[#0F0F0F] dark:fill-[#F5F5F5]`,n),t[3]=n,t[4]=i);let a,o;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,Y.jsx)(`path`,{d:`M9.26905 15.284L17.2479 9.36086C17.6391 9.07047 18.1981 9.18374 18.3845 9.63478C19.3655 12.0135 18.9272 14.8721 16.9755 16.8349C15.0238 18.7976 12.3082 19.228 9.8261 18.2477L7.1146 19.5102C11.0037 22.1834 15.7263 21.5223 18.6774 18.5525C21.0182 16.1985 21.7432 12.9897 21.0653 10.0961L21.0714 10.1023C20.0884 5.85143 21.3131 4.15233 23.8218 0.677913C23.8812 0.595532 23.9406 0.513151 24 0.428711L20.6987 3.74866V3.73836L9.267 15.2861`}),o=(0,Y.jsx)(`path`,{d:`M7.62249 16.7237C4.83113 14.0422 5.3124 9.89222 7.69417 7.49905C9.45541 5.72786 12.341 5.00497 14.86 6.06768L17.5653 4.81138C17.0779 4.45714 16.4533 4.07613 15.7365 3.80839C12.4966 2.46764 8.6178 3.13492 5.98413 5.78141C3.45081 8.32904 2.65415 12.2463 4.02219 15.5889C5.04412 18.0871 3.36889 19.8541 1.68137 21.6377C1.08337 22.2699 0.483318 22.9022 0 23.5716L7.62045 16.7257`}),t[5]=a,t[6]=o):(a=t[5],o=t[6]);let s;return t[7]!==r||t[8]!==i?(s=(0,Y.jsxs)(`svg`,{...r,viewBox:`0 0 24 24`,fill:`none`,className:i,children:[a,o]}),t[7]=r,t[8]=i,t[9]=s):s=t[9],s},iae=e=>{let t=(0,X.c)(8),n,r,i,a,o,s;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,Y.jsx)(`rect`,{x:`1`,y:`4`,width:`3`,height:`14`}),r=(0,Y.jsx)(`rect`,{x:`4`,y:`18`,width:`18`,height:`3`}),i=(0,Y.jsx)(`rect`,{x:`4`,y:`4`,width:`18`,height:`3`}),a=(0,Y.jsx)(`rect`,{x:`19`,y:`7`,width:`3`,height:`11`}),o=(0,Y.jsx)(`path`,{d:`M11 10L13 12L11 14L9 12Z`}),s=(0,Y.jsx)(`path`,{d:`M16 10L18 12L16 14L14 12Z`}),t[0]=n,t[1]=r,t[2]=i,t[3]=a,t[4]=o,t[5]=s):(n=t[0],r=t[1],i=t[2],a=t[3],o=t[4],s=t[5]);let c;return t[6]===e?c=t[7]:(c=(0,Y.jsxs)(`svg`,{...e,viewBox:`0 0 24 24`,fill:`currentColor`,children:[n,r,i,a,o,s]}),t[6]=e,t[7]=c),c},aae=e=>{let t=(0,X.c)(6),n,r,i,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,Y.jsx)(`rect`,{width:`1200`,height:`1200`,rx:`260`,fill:`#9046FF`}),r=(0,Y.jsx)(`path`,{d:`M398.554 818.914C316.315 1001.03 491.477 1046.74 620.672 940.156C658.687 1059.66 801.052 970.473 852.234 877.795C964.787 673.567 919.318 465.357 907.64 422.374C827.637 129.443 427.623 128.946 358.8 423.865C342.651 475.544 342.402 534.18 333.458 595.051C328.986 625.86 325.507 645.488 313.83 677.785C306.873 696.424 297.68 712.819 282.773 740.645C259.915 783.881 269.604 867.113 387.87 823.883L399.051 818.914H398.554Z`,fill:`#fff`}),i=(0,Y.jsx)(`path`,{d:`M636.123 549.353C603.328 549.353 598.359 510.097 598.359 486.742C598.359 465.623 602.086 448.977 609.293 438.293C615.504 428.852 624.697 424.131 636.123 424.131C647.555 424.131 657.492 428.852 664.447 438.541C672.398 449.474 676.623 466.12 676.623 486.742C676.623 525.998 661.471 549.353 636.375 549.353H636.123Z`,fill:`#000`}),a=(0,Y.jsx)(`path`,{d:`M771.24 549.353C738.445 549.353 733.477 510.097 733.477 486.742C733.477 465.623 737.203 448.977 744.41 438.293C750.621 428.852 759.814 424.131 771.24 424.131C782.672 424.131 792.609 428.852 799.564 438.541C807.516 449.474 811.74 466.12 811.74 486.742C811.74 525.998 796.588 549.353 771.492 549.353H771.24Z`,fill:`#000`}),t[0]=n,t[1]=r,t[2]=i,t[3]=a):(n=t[0],r=t[1],i=t[2],a=t[3]);let o;return t[4]===e?o=t[5]:(o=(0,Y.jsxs)(`svg`,{...e,viewBox:`0 0 1200 1200`,fill:`none`,children:[n,r,i,a]}),t[4]=e,t[5]=o),o},oae=e=>{let t=(0,X.c)(49),n=(0,J.useId)(),r=`${n}-vscode-a`,i=`${n}-vscode-b`,a=`${n}-vscode-c`,o=`${n}-vscode-d`,s;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,Y.jsx)(`path`,{fill:`#fff`,fillRule:`evenodd`,d:`M70.912 99.317a6.223 6.223 0 0 0 4.96-.19l20.589-9.907A6.25 6.25 0 0 0 100 83.587V16.413a6.25 6.25 0 0 0-3.54-5.632L75.874.874a6.226 6.226 0 0 0-7.104 1.21L29.355 38.04 12.187 25.01a4.162 4.162 0 0 0-5.318.236l-5.506 5.009a4.168 4.168 0 0 0-.004 6.162L16.247 50 1.36 63.583a4.168 4.168 0 0 0 .004 6.162l5.506 5.01a4.162 4.162 0 0 0 5.318.236l17.168-13.032L68.77 97.917a6.217 6.217 0 0 0 2.143 1.4ZM75.015 27.3 45.11 50l29.906 22.701V27.3Z`,clipRule:`evenodd`}),t[0]=s):s=t[0];let c;t[1]===r?c=t[2]:(c=(0,Y.jsx)(`mask`,{id:r,width:`100`,height:`100`,x:`0`,y:`0`,maskUnits:`userSpaceOnUse`,children:s}),t[1]=r,t[2]=c);let l=`url(#${r})`,u;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,Y.jsx)(`path`,{fill:`#0065A9`,d:`M96.461 10.796 75.857.876a6.23 6.23 0 0 0-7.107 1.207l-67.451 61.5a4.167 4.167 0 0 0 .004 6.162l5.51 5.009a4.167 4.167 0 0 0 5.32.236l81.228-61.62c2.725-2.067 6.639-.124 6.639 3.297v-.24a6.25 6.25 0 0 0-3.539-5.63Z`}),t[3]=u):u=t[3];let d=`url(#${i})`,f;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(f=(0,Y.jsx)(`path`,{fill:`#007ACC`,d:`m96.461 89.204-20.604 9.92a6.229 6.229 0 0 1-7.107-1.207l-67.451-61.5a4.167 4.167 0 0 1 .004-6.162l5.51-5.009a4.167 4.167 0 0 1 5.32-.236l81.228 61.62c2.725 2.067 6.639.124 6.639-3.297v.24a6.25 6.25 0 0 1-3.539 5.63Z`}),t[4]=f):f=t[4];let p;t[5]===d?p=t[6]:(p=(0,Y.jsx)(`g`,{filter:d,children:f}),t[5]=d,t[6]=p);let m=`url(#${a})`,h;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,Y.jsx)(`path`,{fill:`#1F9CF0`,d:`M75.858 99.126a6.232 6.232 0 0 1-7.108-1.21c2.306 2.307 6.25.674 6.25-2.588V4.672c0-3.262-3.944-4.895-6.25-2.589a6.232 6.232 0 0 1 7.108-1.21l20.6 9.908A6.25 6.25 0 0 1 100 16.413v67.174a6.25 6.25 0 0 1-3.541 5.633l-20.601 9.906Z`}),t[7]=h):h=t[7];let g;t[8]===m?g=t[9]:(g=(0,Y.jsx)(`g`,{filter:m,children:h}),t[8]=m,t[9]=g);let _=`url(#${o})`,v;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(v={mixBlendMode:`overlay`},t[10]=v):v=t[10];let y;t[11]===_?y=t[12]:(y=(0,Y.jsx)(`path`,{fill:_,fillRule:`evenodd`,d:`M70.851 99.317a6.224 6.224 0 0 0 4.96-.19L96.4 89.22a6.25 6.25 0 0 0 3.54-5.633V16.413a6.25 6.25 0 0 0-3.54-5.632L75.812.874a6.226 6.226 0 0 0-7.104 1.21L29.294 38.04 12.126 25.01a4.162 4.162 0 0 0-5.317.236l-5.507 5.009a4.168 4.168 0 0 0-.004 6.162L16.186 50 1.298 63.583a4.168 4.168 0 0 0 .004 6.162l5.507 5.009a4.162 4.162 0 0 0 5.317.236L29.294 61.96l39.414 35.958a6.218 6.218 0 0 0 2.143 1.4ZM74.954 27.3 45.048 50l29.906 22.701V27.3Z`,clipRule:`evenodd`,opacity:`.25`,style:v}),t[11]=_,t[12]=y);let b;t[13]!==y||t[14]!==l||t[15]!==p||t[16]!==g?(b=(0,Y.jsxs)(`g`,{mask:l,children:[u,p,g,y]}),t[13]=y,t[14]=l,t[15]=p,t[16]=g,t[17]=b):b=t[17];let x,S,C,w,T,E,D;t[18]===Symbol.for(`react.memo_cache_sentinel`)?(x=(0,Y.jsx)(`feFlood`,{floodOpacity:`0`,result:`BackgroundImageFix`}),S=(0,Y.jsx)(`feColorMatrix`,{in:`SourceAlpha`,values:`0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0`}),C=(0,Y.jsx)(`feOffset`,{}),w=(0,Y.jsx)(`feGaussianBlur`,{stdDeviation:`4.167`}),T=(0,Y.jsx)(`feColorMatrix`,{values:`0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0`}),E=(0,Y.jsx)(`feBlend`,{in2:`BackgroundImageFix`,mode:`overlay`,result:`effect1_dropShadow`}),D=(0,Y.jsx)(`feBlend`,{in:`SourceGraphic`,in2:`effect1_dropShadow`,result:`shape`}),t[18]=x,t[19]=S,t[20]=C,t[21]=w,t[22]=T,t[23]=E,t[24]=D):(x=t[18],S=t[19],C=t[20],w=t[21],T=t[22],E=t[23],D=t[24]);let O;t[25]===i?O=t[26]:(O=(0,Y.jsxs)(`filter`,{id:i,width:`116.727`,height:`92.246`,x:`-8.394`,y:`15.829`,colorInterpolationFilters:`sRGB`,filterUnits:`userSpaceOnUse`,children:[x,S,C,w,T,E,D]}),t[25]=i,t[26]=O);let k,A,j,M,N,P,F;t[27]===Symbol.for(`react.memo_cache_sentinel`)?(k=(0,Y.jsx)(`feFlood`,{floodOpacity:`0`,result:`BackgroundImageFix`}),A=(0,Y.jsx)(`feColorMatrix`,{in:`SourceAlpha`,values:`0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0`}),j=(0,Y.jsx)(`feOffset`,{}),M=(0,Y.jsx)(`feGaussianBlur`,{stdDeviation:`4.167`}),N=(0,Y.jsx)(`feColorMatrix`,{values:`0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0`}),P=(0,Y.jsx)(`feBlend`,{in2:`BackgroundImageFix`,mode:`overlay`,result:`effect1_dropShadow`}),F=(0,Y.jsx)(`feBlend`,{in:`SourceGraphic`,in2:`effect1_dropShadow`,result:`shape`}),t[27]=k,t[28]=A,t[29]=j,t[30]=M,t[31]=N,t[32]=P,t[33]=F):(k=t[27],A=t[28],j=t[29],M=t[30],N=t[31],P=t[32],F=t[33]);let I;t[34]===a?I=t[35]:(I=(0,Y.jsxs)(`filter`,{id:a,width:`47.917`,height:`116.151`,x:`60.417`,y:`-8.076`,colorInterpolationFilters:`sRGB`,filterUnits:`userSpaceOnUse`,children:[k,A,j,M,N,P,F]}),t[34]=a,t[35]=I);let L,R;t[36]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,Y.jsx)(`stop`,{stopColor:`#fff`}),R=(0,Y.jsx)(`stop`,{offset:`1`,stopColor:`#fff`,stopOpacity:`0`}),t[36]=L,t[37]=R):(L=t[36],R=t[37]);let z;t[38]===o?z=t[39]:(z=(0,Y.jsxs)(`linearGradient`,{id:o,x1:`49.939`,x2:`49.939`,y1:`.258`,y2:`99.742`,gradientUnits:`userSpaceOnUse`,children:[L,R]}),t[38]=o,t[39]=z);let B;t[40]!==O||t[41]!==I||t[42]!==z?(B=(0,Y.jsxs)(`defs`,{children:[O,I,z]}),t[40]=O,t[41]=I,t[42]=z,t[43]=B):B=t[43];let V;return t[44]!==e||t[45]!==c||t[46]!==b||t[47]!==B?(V=(0,Y.jsxs)(`svg`,{...e,fill:`none`,viewBox:`0 0 100 100`,children:[c,b,B]}),t[44]=e,t[45]=c,t[46]=b,t[47]=B,t[48]=V):V=t[48],V},sae=e=>{let t=(0,X.c)(49),n=(0,J.useId)(),r=`${n}-vscode-insiders-a`,i=`${n}-vscode-insiders-b`,a=`${n}-vscode-insiders-c`,o=`${n}-vscode-insiders-d`,s;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,Y.jsx)(`path`,{fill:`#fff`,fillRule:`evenodd`,d:`M70.912 99.317a6.223 6.223 0 0 0 4.96-.19l20.589-9.907A6.25 6.25 0 0 0 100 83.587V16.413a6.25 6.25 0 0 0-3.54-5.632L75.874.874a6.226 6.226 0 0 0-7.104 1.21L29.355 38.04 12.187 25.01a4.162 4.162 0 0 0-5.318.236l-5.506 5.009a4.168 4.168 0 0 0-.004 6.162L16.247 50 1.36 63.583a4.168 4.168 0 0 0 .004 6.162l5.506 5.01a4.162 4.162 0 0 0 5.318.236l17.168-13.032L68.77 97.917a6.217 6.217 0 0 0 2.143 1.4ZM75.015 27.3 45.11 50l29.906 22.701V27.3Z`,clipRule:`evenodd`}),t[0]=s):s=t[0];let c;t[1]===r?c=t[2]:(c=(0,Y.jsx)(`mask`,{id:r,width:`100`,height:`100`,x:`0`,y:`0`,maskUnits:`userSpaceOnUse`,children:s}),t[1]=r,t[2]=c);let l=`url(#${r})`,u;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,Y.jsx)(`path`,{fill:`#009a7c`,d:`M96.461 10.796 75.857.876a6.23 6.23 0 0 0-7.107 1.207l-67.451 61.5a4.167 4.167 0 0 0 .004 6.162l5.51 5.009a4.167 4.167 0 0 0 5.32.236l81.228-61.62c2.725-2.067 6.639-.124 6.639 3.297v-.24a6.25 6.25 0 0 0-3.539-5.63Z`}),t[3]=u):u=t[3];let d=`url(#${i})`,f;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(f=(0,Y.jsx)(`path`,{fill:`#00b294`,d:`m96.461 89.204-20.604 9.92a6.229 6.229 0 0 1-7.107-1.207l-67.451-61.5a4.167 4.167 0 0 1 .004-6.162l5.51-5.009a4.167 4.167 0 0 1 5.32-.236l81.228 61.62c2.725 2.067 6.639.124 6.639-3.297v.24a6.25 6.25 0 0 1-3.539 5.63Z`}),t[4]=f):f=t[4];let p;t[5]===d?p=t[6]:(p=(0,Y.jsx)(`g`,{filter:d,children:f}),t[5]=d,t[6]=p);let m=`url(#${a})`,h;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,Y.jsx)(`path`,{fill:`#24bfa5`,d:`M75.858 99.126a6.232 6.232 0 0 1-7.108-1.21c2.306 2.307 6.25.674 6.25-2.588V4.672c0-3.262-3.944-4.895-6.25-2.589a6.232 6.232 0 0 1 7.108-1.21l20.6 9.908A6.25 6.25 0 0 1 100 16.413v67.174a6.25 6.25 0 0 1-3.541 5.633l-20.601 9.906Z`}),t[7]=h):h=t[7];let g;t[8]===m?g=t[9]:(g=(0,Y.jsx)(`g`,{filter:m,children:h}),t[8]=m,t[9]=g);let _=`url(#${o})`,v;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(v={mixBlendMode:`overlay`},t[10]=v):v=t[10];let y;t[11]===_?y=t[12]:(y=(0,Y.jsx)(`path`,{fill:_,fillRule:`evenodd`,d:`M70.851 99.317a6.224 6.224 0 0 0 4.96-.19L96.4 89.22a6.25 6.25 0 0 0 3.54-5.633V16.413a6.25 6.25 0 0 0-3.54-5.632L75.812.874a6.226 6.226 0 0 0-7.104 1.21L29.294 38.04 12.126 25.01a4.162 4.162 0 0 0-5.317.236l-5.507 5.009a4.168 4.168 0 0 0-.004 6.162L16.186 50 1.298 63.583a4.168 4.168 0 0 0 .004 6.162l5.507 5.009a4.162 4.162 0 0 0 5.317.236L29.294 61.96l39.414 35.958a6.218 6.218 0 0 0 2.143 1.4ZM74.954 27.3 45.048 50l29.906 22.701V27.3Z`,clipRule:`evenodd`,opacity:`.25`,style:v}),t[11]=_,t[12]=y);let b;t[13]!==y||t[14]!==l||t[15]!==p||t[16]!==g?(b=(0,Y.jsxs)(`g`,{mask:l,children:[u,p,g,y]}),t[13]=y,t[14]=l,t[15]=p,t[16]=g,t[17]=b):b=t[17];let x,S,C,w,T,E,D;t[18]===Symbol.for(`react.memo_cache_sentinel`)?(x=(0,Y.jsx)(`feFlood`,{floodOpacity:`0`,result:`BackgroundImageFix`}),S=(0,Y.jsx)(`feColorMatrix`,{in:`SourceAlpha`,values:`0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0`}),C=(0,Y.jsx)(`feOffset`,{}),w=(0,Y.jsx)(`feGaussianBlur`,{stdDeviation:`4.167`}),T=(0,Y.jsx)(`feColorMatrix`,{values:`0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0`}),E=(0,Y.jsx)(`feBlend`,{in2:`BackgroundImageFix`,mode:`overlay`,result:`effect1_dropShadow`}),D=(0,Y.jsx)(`feBlend`,{in:`SourceGraphic`,in2:`effect1_dropShadow`,result:`shape`}),t[18]=x,t[19]=S,t[20]=C,t[21]=w,t[22]=T,t[23]=E,t[24]=D):(x=t[18],S=t[19],C=t[20],w=t[21],T=t[22],E=t[23],D=t[24]);let O;t[25]===i?O=t[26]:(O=(0,Y.jsxs)(`filter`,{id:i,width:`116.727`,height:`92.246`,x:`-8.394`,y:`15.829`,colorInterpolationFilters:`sRGB`,filterUnits:`userSpaceOnUse`,children:[x,S,C,w,T,E,D]}),t[25]=i,t[26]=O);let k,A,j,M,N,P,F;t[27]===Symbol.for(`react.memo_cache_sentinel`)?(k=(0,Y.jsx)(`feFlood`,{floodOpacity:`0`,result:`BackgroundImageFix`}),A=(0,Y.jsx)(`feColorMatrix`,{in:`SourceAlpha`,values:`0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0`}),j=(0,Y.jsx)(`feOffset`,{}),M=(0,Y.jsx)(`feGaussianBlur`,{stdDeviation:`4.167`}),N=(0,Y.jsx)(`feColorMatrix`,{values:`0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0`}),P=(0,Y.jsx)(`feBlend`,{in2:`BackgroundImageFix`,mode:`overlay`,result:`effect1_dropShadow`}),F=(0,Y.jsx)(`feBlend`,{in:`SourceGraphic`,in2:`effect1_dropShadow`,result:`shape`}),t[27]=k,t[28]=A,t[29]=j,t[30]=M,t[31]=N,t[32]=P,t[33]=F):(k=t[27],A=t[28],j=t[29],M=t[30],N=t[31],P=t[32],F=t[33]);let I;t[34]===a?I=t[35]:(I=(0,Y.jsxs)(`filter`,{id:a,width:`47.917`,height:`116.151`,x:`60.417`,y:`-8.076`,colorInterpolationFilters:`sRGB`,filterUnits:`userSpaceOnUse`,children:[k,A,j,M,N,P,F]}),t[34]=a,t[35]=I);let L,R;t[36]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,Y.jsx)(`stop`,{stopColor:`#fff`}),R=(0,Y.jsx)(`stop`,{offset:`1`,stopColor:`#fff`,stopOpacity:`0`}),t[36]=L,t[37]=R):(L=t[36],R=t[37]);let z;t[38]===o?z=t[39]:(z=(0,Y.jsxs)(`linearGradient`,{id:o,x1:`49.939`,x2:`49.939`,y1:`.258`,y2:`99.742`,gradientUnits:`userSpaceOnUse`,children:[L,R]}),t[38]=o,t[39]=z);let B;t[40]!==O||t[41]!==I||t[42]!==z?(B=(0,Y.jsxs)(`defs`,{children:[O,I,z]}),t[40]=O,t[41]=I,t[42]=z,t[43]=B):B=t[43];let V;return t[44]!==e||t[45]!==c||t[46]!==b||t[47]!==B?(V=(0,Y.jsxs)(`svg`,{...e,fill:`none`,viewBox:`0 0 100 100`,children:[c,b,B]}),t[44]=e,t[45]=c,t[46]=b,t[47]=B,t[48]=V):V=t[48],V},cae=e=>{let t=(0,X.c)(10),n=`${(0,J.useId)()}-vscodium-gradient`,r,i;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,Y.jsx)(`stop`,{offset:`0`,stopColor:`#62A0EA`}),i=(0,Y.jsx)(`stop`,{offset:`1`,stopColor:`#1A5FB4`}),t[0]=r,t[1]=i):(r=t[0],i=t[1]);let a;t[2]===n?a=t[3]:(a=(0,Y.jsx)(`defs`,{children:(0,Y.jsxs)(`linearGradient`,{id:n,x1:`0`,x2:`100`,y1:`0`,y2:`100`,gradientUnits:`userSpaceOnUse`,children:[r,i]})}),t[2]=n,t[3]=a);let o=`url(#${n})`,s;t[4]===o?s=t[5]:(s=(0,Y.jsx)(`path`,{fill:o,d:`M48.26 2.274C45.406 4.105 44.583 7.898 46.422 10.742C56.531 26.397 58.917 38.205 57.882 48.553C53.698 68.369 44.603 72.389 36.655 72.389C28.895 72.389 30.973 59.618 36.806 55.88C40.288 53.706 44.748 52.293 48.171 52.293C51.563 52.293 54.313 49.552 54.313 46.17C54.313 42.787 51.563 40.046 48.171 40.046C44.173 40.046 40.251 40.886 36.59 42.316C37.338 38.787 37.614 34.973 36.647 30.919C35.179 24.763 30.953 18.883 23.615 13.183C22.33 12.183 20.7 11.734 19.083 11.934C17.466 12.134 15.995 12.966 14.994 14.248C12.912 16.918 13.394 20.766 16.072 22.843C22.05 27.486 24.024 30.923 24.699 33.752C25.374 36.581 24.831 39.616 23.475 43.786C21.742 49.406 19.73 54.423 18.848 59.234C18.414 61.602 18.377 64.179 18.265 66.238C13.96 62.042 12.275 56.502 12.275 48.407C12.274 45.025 9.524 42.283 6.133 42.284C2.744 42.287-0.002 45.027-0.003 48.407C-0.003 59.463 3.23 69.983 11.895 77.001C19.739 84.474 39.686 81.712 39.686 93.709C39.686 97.095 44.642 98.743 48.033 98.743C51.511 98.743 55.888 96.418 55.888 93.709C55.888 80.097 70.233 71.824 93.848 71.86C97.24 71.865 99.992 69.126 99.997 65.744C100.003 62.361 97.259 59.614 93.867 59.608C92.252 59.606 90.678 59.661 89.126 59.753C91.766 53.544 92.937 46.708 92.695 39.324C92.583 35.943 89.745 33.293 86.356 33.403C82.963 33.513 80.305 36.346 80.416 39.729C80.736 49.397 80.374 58.03 73.171 62.581C71.123 63.874 68.742 64.996 66.484 64.996C68.237 60.228 69.561 55.195 70.103 49.77C70.449 46.308 70.486 42.195 70.091 39C69.478 34.05 68.738 28.436 70.617 24.207C72.305 20.565 76.087 19.04 81.64 19.04C85.029 19.037 87.775 16.296 87.776 12.917C87.778 9.534 85.031 6.79 81.64 6.787C73.388 6.787 67.133 11.13 63.587 16.377C61.733 12.417 59.475 8.336 56.747 4.112C55.866 2.747 54.478 1.788 52.887 1.443C52.099 1.272 51.285 1.257 50.491 1.399C49.697 1.542 48.939 1.839 48.26 2.274z`}),t[4]=o,t[5]=s);let c;return t[6]!==e||t[7]!==a||t[8]!==s?(c=(0,Y.jsxs)(`svg`,{...e,viewBox:`0 0 100 100`,children:[a,s]}),t[6]=e,t[7]=a,t[8]=s,t[9]=c):c=t[9],c},lae=e=>{let t=(0,X.c)(10),n=`${(0,J.useId)()}-zed-logo-a`,r=`url(#${n})`,i;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,Y.jsx)(`path`,{fill:`currentColor`,fillRule:`evenodd`,d:`M9 6a3 3 0 0 0-3 3v66H0V9a9 9 0 0 1 9-9h80.379c4.009 0 6.016 4.847 3.182 7.682L43.055 57.187H57V51h6v7.688a4.5 4.5 0 0 1-4.5 4.5H37.055L26.743 73.5H73.5V36h6v37.5a6 6 0 0 1-6 6H20.743L10.243 90H87a3 3 0 0 0 3-3V21h6v66a9 9 0 0 1-9 9H6.621c-4.009 0-6.016-4.847-3.182-7.682L52.757 39H39v6h-6v-7.5a4.5 4.5 0 0 1 4.5-4.5h21.257l10.5-10.5H22.5V60h-6V22.5a6 6 0 0 1 6-6h52.757L85.757 6H9Z`,clipRule:`evenodd`}),t[0]=i):i=t[0];let a;t[1]===r?a=t[2]:(a=(0,Y.jsx)(`g`,{clipPath:r,children:i}),t[1]=r,t[2]=a);let o;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,Y.jsx)(`path`,{fill:`#fff`,d:`M0 0h96v96H0z`}),t[3]=o):o=t[3];let s;t[4]===n?s=t[5]:(s=(0,Y.jsx)(`defs`,{children:(0,Y.jsx)(`clipPath`,{id:n,children:o})}),t[4]=n,t[5]=s);let c;return t[6]!==e||t[7]!==a||t[8]!==s?(c=(0,Y.jsxs)(`svg`,{...e,fill:`none`,viewBox:`0 0 96 96`,children:[a,s]}),t[6]=e,t[7]=a,t[8]=s,t[9]=c):c=t[9],c},pv=e=>{let t=(0,X.c)(9),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=q(`fill-black dark:fill-white`,n),t[3]=n,t[4]=i);let a;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,Y.jsx)(`path`,{d:`M239.184 106.203a64.716 64.716 0 0 0-5.576-53.103C219.452 28.459 191 15.784 163.213 21.74A65.586 65.586 0 0 0 52.096 45.22a64.716 64.716 0 0 0-43.23 31.36c-14.31 24.602-11.061 55.634 8.033 76.74a64.665 64.665 0 0 0 5.525 53.102c14.174 24.65 42.644 37.324 70.446 31.36a64.72 64.72 0 0 0 48.754 21.744c28.481.025 53.714-18.361 62.414-45.481a64.767 64.767 0 0 0 43.229-31.36c14.137-24.558 10.875-55.423-8.083-76.483Zm-97.56 136.338a48.397 48.397 0 0 1-31.105-11.255l1.535-.87 51.67-29.825a8.595 8.595 0 0 0 4.247-7.367v-72.85l21.845 12.636c.218.111.37.32.409.563v60.367c-.056 26.818-21.783 48.545-48.601 48.601Zm-104.466-44.61a48.345 48.345 0 0 1-5.781-32.589l1.534.921 51.722 29.826a8.339 8.339 0 0 0 8.441 0l63.181-36.425v25.221a.87.87 0 0 1-.358.665l-52.335 30.184c-23.257 13.398-52.97 5.431-66.404-17.803ZM23.549 85.38a48.499 48.499 0 0 1 25.58-21.333v61.39a8.288 8.288 0 0 0 4.195 7.316l62.874 36.272-21.845 12.636a.819.819 0 0 1-.767 0L41.353 151.53c-23.211-13.454-31.171-43.144-17.804-66.405v.256Zm179.466 41.695-63.08-36.63L161.73 77.86a.819.819 0 0 1 .768 0l52.233 30.184a48.6 48.6 0 0 1-7.316 87.635v-61.391a8.544 8.544 0 0 0-4.4-7.213Zm21.742-32.69-1.535-.922-51.619-30.081a8.39 8.39 0 0 0-8.492 0L99.98 99.808V74.587a.716.716 0 0 1 .307-.665l52.233-30.133a48.652 48.652 0 0 1 72.236 50.391v.205ZM88.061 139.097l-21.845-12.585a.87.87 0 0 1-.41-.614V65.685a48.652 48.652 0 0 1 79.757-37.346l-1.535.87-51.67 29.825a8.595 8.595 0 0 0-4.246 7.367l-.051 72.697Zm11.868-25.58 28.138-16.217 28.188 16.218v32.434l-28.086 16.218-28.188-16.218-.052-32.434Z`}),t[5]=a):a=t[5];let o;return t[6]!==r||t[7]!==i?(o=(0,Y.jsx)(`svg`,{...r,preserveAspectRatio:`xMidYMid`,viewBox:`0 0 256 260`,className:i,children:a}),t[6]=r,t[7]=i,t[8]=o):o=t[8],o},mv=e=>{let t=(0,X.c)(9),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=q(`fill-[#d97757]`,n),t[3]=n,t[4]=i);let a;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,Y.jsx)(`path`,{d:`m50.228 170.321 50.357-28.257.843-2.463-.843-1.361h-2.462l-8.426-.518-28.775-.778-24.952-1.037-24.175-1.296-6.092-1.297L0 125.796l.583-3.759 5.12-3.434 7.324.648 16.202 1.101 24.304 1.685 17.629 1.037 26.118 2.722h4.148l.583-1.685-1.426-1.037-1.101-1.037-25.147-17.045-27.22-18.017-14.258-10.37-7.713-5.25-3.888-4.925-1.685-10.758 7-7.713 9.397.649 2.398.648 9.527 7.323 20.35 15.75L94.817 91.9l3.889 3.24 1.555-1.102.195-.777-1.75-2.917-14.453-26.118-15.425-26.572-6.87-11.018-1.814-6.61c-.648-2.723-1.102-4.991-1.102-7.778l7.972-10.823L71.42 0 82.05 1.426l4.472 3.888 6.61 15.101 10.694 23.786 16.591 32.34 4.861 9.592 2.592 8.879.973 2.722h1.685v-1.556l1.36-18.211 2.528-22.36 2.463-28.776.843-8.1 4.018-9.722 7.971-5.25 6.222 2.981 5.12 7.324-.713 4.73-3.046 19.768-5.962 30.98-3.889 20.739h2.268l2.593-2.593 10.499-13.934 17.628-22.036 7.778-8.749 9.073-9.657 5.833-4.601h11.018l8.1 12.055-3.628 12.443-11.342 14.388-9.398 12.184-13.48 18.147-8.426 14.518.778 1.166 2.01-.194 30.46-6.481 16.462-2.982 19.637-3.37 8.88 4.148.971 4.213-3.5 8.62-20.998 5.184-24.628 4.926-36.682 8.685-.454.324.519.648 16.526 1.555 7.065.389h17.304l32.21 2.398 8.426 5.574 5.055 6.805-.843 5.184-12.962 6.611-17.498-4.148-40.83-9.721-14-3.5h-1.944v1.167l11.666 11.406 21.387 19.314 26.767 24.887 1.36 6.157-3.434 4.86-3.63-.518-23.526-17.693-9.073-7.972-20.545-17.304h-1.36v1.814l4.73 6.935 25.017 37.59 1.296 11.536-1.814 3.76-6.481 2.268-7.13-1.297-14.647-20.544-15.1-23.138-12.185-20.739-1.49.843-7.194 77.448-3.37 3.953-7.778 2.981-6.48-4.925-3.436-7.972 3.435-15.749 4.148-20.544 3.37-16.333 3.046-20.285 1.815-6.74-.13-.454-1.49.194-15.295 20.999-23.267 31.433-18.406 19.702-4.407 1.75-7.648-3.954.713-7.064 4.277-6.286 25.47-32.405 15.36-20.092 9.917-11.6-.065-1.686h-.583L44.07 198.125l-12.055 1.555-5.185-4.86.648-7.972 2.463-2.593 20.35-13.999-.064.065Z`}),t[5]=a):a=t[5];let o;return t[6]!==r||t[7]!==i?(o=(0,Y.jsx)(`svg`,{...r,preserveAspectRatio:`xMidYMid`,viewBox:`0 0 256 257`,className:i,children:a}),t[6]=r,t[7]=i,t[8]=o):o=t[8],o},uae=e=>{let t=(0,X.c)(17),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,Y.jsx)(`mask`,{id:`gemini__a`,width:`296`,height:`298`,x:`0`,y:`0`,maskUnits:`userSpaceOnUse`,style:{maskType:`alpha`},children:(0,Y.jsx)(`path`,{fill:`#3186FF`,d:`M141.201 4.886c2.282-6.17 11.042-6.071 13.184.148l5.985 17.37a184.004 184.004 0 0 0 111.257 113.049l19.304 6.997c6.143 2.227 6.156 10.91.02 13.155l-19.35 7.082a184.001 184.001 0 0 0-109.495 109.385l-7.573 20.629c-2.241 6.105-10.869 6.121-13.133.025l-7.908-21.296a184 184 0 0 0-109.02-108.658l-19.698-7.239c-6.102-2.243-6.118-10.867-.025-13.132l20.083-7.467A183.998 183.998 0 0 0 133.291 26.28l7.91-21.394Z`})}),t[0]=n):n=t[0];let r;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,Y.jsx)(`g`,{filter:`url(#gemini__b)`,children:(0,Y.jsx)(`ellipse`,{cx:`163`,cy:`149`,fill:`#3689FF`,rx:`196`,ry:`159`})}),t[1]=r):r=t[1];let i;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,Y.jsx)(`g`,{filter:`url(#gemini__c)`,children:(0,Y.jsx)(`ellipse`,{cx:`33.5`,cy:`142.5`,fill:`#F6C013`,rx:`68.5`,ry:`72.5`})}),t[2]=i):i=t[2];let a;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,Y.jsx)(`g`,{filter:`url(#gemini__d)`,children:(0,Y.jsx)(`ellipse`,{cx:`19.5`,cy:`148.5`,fill:`#F6C013`,rx:`68.5`,ry:`72.5`})}),t[3]=a):a=t[3];let o;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,Y.jsx)(`g`,{filter:`url(#gemini__e)`,children:(0,Y.jsx)(`path`,{fill:`#FA4340`,d:`M194 10.5C172 82.5 65.5 134.333 22.5 135L144-66l50 76.5Z`})}),t[4]=o):o=t[4];let s;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,Y.jsx)(`g`,{filter:`url(#gemini__f)`,children:(0,Y.jsx)(`path`,{fill:`#FA4340`,d:`M190.5-12.5C168.5 59.5 62 111.333 19 112L140.5-89l50 76.5Z`})}),t[5]=s):s=t[5];let c;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,Y.jsx)(`g`,{filter:`url(#gemini__g)`,children:(0,Y.jsx)(`path`,{fill:`#14BB69`,d:`M194.5 279.5C172.5 207.5 66 155.667 23 155l121.5 201 50-76.5Z`})}),t[6]=c):c=t[6];let l;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,Y.jsxs)(`g`,{mask:`url(#gemini__a)`,children:[r,i,a,o,s,c,(0,Y.jsx)(`g`,{filter:`url(#gemini__h)`,children:(0,Y.jsx)(`path`,{fill:`#14BB69`,d:`M196.5 320.5C174.5 248.5 68 196.667 25 196l121.5 201 50-76.5Z`})})]}),t[7]=l):l=t[7];let u;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,Y.jsxs)(`filter`,{id:`gemini__b`,width:`464`,height:`390`,x:`-69`,y:`-46`,colorInterpolationFilters:`sRGB`,filterUnits:`userSpaceOnUse`,children:[(0,Y.jsx)(`feFlood`,{floodOpacity:`0`,result:`BackgroundImageFix`}),(0,Y.jsx)(`feBlend`,{in:`SourceGraphic`,in2:`BackgroundImageFix`,result:`shape`}),(0,Y.jsx)(`feGaussianBlur`,{result:`effect1_foregroundBlur_69_17998`,stdDeviation:`18`})]}),t[8]=u):u=t[8];let d;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,Y.jsxs)(`filter`,{id:`gemini__c`,width:`265`,height:`273`,x:`-99`,y:`6`,colorInterpolationFilters:`sRGB`,filterUnits:`userSpaceOnUse`,children:[(0,Y.jsx)(`feFlood`,{floodOpacity:`0`,result:`BackgroundImageFix`}),(0,Y.jsx)(`feBlend`,{in:`SourceGraphic`,in2:`BackgroundImageFix`,result:`shape`}),(0,Y.jsx)(`feGaussianBlur`,{result:`effect1_foregroundBlur_69_17998`,stdDeviation:`32`})]}),t[9]=d):d=t[9];let f;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(f=(0,Y.jsxs)(`filter`,{id:`gemini__d`,width:`265`,height:`273`,x:`-113`,y:`12`,colorInterpolationFilters:`sRGB`,filterUnits:`userSpaceOnUse`,children:[(0,Y.jsx)(`feFlood`,{floodOpacity:`0`,result:`BackgroundImageFix`}),(0,Y.jsx)(`feBlend`,{in:`SourceGraphic`,in2:`BackgroundImageFix`,result:`shape`}),(0,Y.jsx)(`feGaussianBlur`,{result:`effect1_foregroundBlur_69_17998`,stdDeviation:`32`})]}),t[10]=f):f=t[10];let p;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,Y.jsxs)(`filter`,{id:`gemini__e`,width:`299.5`,height:`329`,x:`-41.5`,y:`-130`,colorInterpolationFilters:`sRGB`,filterUnits:`userSpaceOnUse`,children:[(0,Y.jsx)(`feFlood`,{floodOpacity:`0`,result:`BackgroundImageFix`}),(0,Y.jsx)(`feBlend`,{in:`SourceGraphic`,in2:`BackgroundImageFix`,result:`shape`}),(0,Y.jsx)(`feGaussianBlur`,{result:`effect1_foregroundBlur_69_17998`,stdDeviation:`32`})]}),t[11]=p):p=t[11];let m;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,Y.jsxs)(`filter`,{id:`gemini__f`,width:`299.5`,height:`329`,x:`-45`,y:`-153`,colorInterpolationFilters:`sRGB`,filterUnits:`userSpaceOnUse`,children:[(0,Y.jsx)(`feFlood`,{floodOpacity:`0`,result:`BackgroundImageFix`}),(0,Y.jsx)(`feBlend`,{in:`SourceGraphic`,in2:`BackgroundImageFix`,result:`shape`}),(0,Y.jsx)(`feGaussianBlur`,{result:`effect1_foregroundBlur_69_17998`,stdDeviation:`32`})]}),t[12]=m):m=t[12];let h;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,Y.jsxs)(`filter`,{id:`gemini__g`,width:`299.5`,height:`329`,x:`-41`,y:`91`,colorInterpolationFilters:`sRGB`,filterUnits:`userSpaceOnUse`,children:[(0,Y.jsx)(`feFlood`,{floodOpacity:`0`,result:`BackgroundImageFix`}),(0,Y.jsx)(`feBlend`,{in:`SourceGraphic`,in2:`BackgroundImageFix`,result:`shape`}),(0,Y.jsx)(`feGaussianBlur`,{result:`effect1_foregroundBlur_69_17998`,stdDeviation:`32`})]}),t[13]=h):h=t[13];let g;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,Y.jsxs)(`defs`,{children:[u,d,f,p,m,h,(0,Y.jsxs)(`filter`,{id:`gemini__h`,width:`299.5`,height:`329`,x:`-39`,y:`132`,colorInterpolationFilters:`sRGB`,filterUnits:`userSpaceOnUse`,children:[(0,Y.jsx)(`feFlood`,{floodOpacity:`0`,result:`BackgroundImageFix`}),(0,Y.jsx)(`feBlend`,{in:`SourceGraphic`,in2:`BackgroundImageFix`,result:`shape`}),(0,Y.jsx)(`feGaussianBlur`,{result:`effect1_foregroundBlur_69_17998`,stdDeviation:`32`})]})]}),t[14]=g):g=t[14];let _;return t[15]===e?_=t[16]:(_=(0,Y.jsxs)(`svg`,{...e,viewBox:`0 0 296 298`,fill:`none`,children:[n,l,g]}),t[15]=e,t[16]=_),_},dae=`data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAgKADAAQAAAABAAAAgAAAAABIjgR3AAAjOElEQVR4Ae1dCYxkV3W9tfdW3T0z3bMvPcxge2zGy2BjY0MwxEAWEBACihSCEiMUSFCiRJEsRygIiIKySUlYAkmMQSxJQAKi4AQngDcMAe87nsF4xuPxrJ6ll+rqri3n3Pfv71e/f1XP4u7+Zdeb+XXvu+/9999/57z7lv+rOiVnF1ILnNYuvV3aAsW+JJIbbe6yXRpPWyh9XtFnCsZC+ePS42ysSCv7vEq2MbwQZbQp/rSTzrjhY0puVUacPc7mF7lQepj3TBqwVd44e9QWjbMCcbawYqeR7uftBH0hUOLSo7ZonPcdZ2tnb2qrhUBg5nZ5/DRfj57XLs0qFM1j9herjAMuavPjvs428eO+Hm2vdmltwWVBrUDx7S+U7lfcL9O3d7reCgzf/kLpflv5Zfr2lgAzUxwIUZvFo9I/v12an4+6BTvH4i8WGQeEb4vTzWaSbWF6VFo7md3i/jm+LRZkZogDwLeZfq4y7lpWZlNFX0SRKDh+3PRzlWwuK8Nvunm2uMZeyGbpvjwdnRXx8/nxqM44g+V3sc79nNfwuBXfZno76ae10tlClhbVGWfw0yXrbOFnXIObrZ1kmp++UJwX9PNbBcxmcZOt7JaeVNnU2F4lfbvpcZI2Hrx/01mMxam3Cv55fp6mc/2G9XU7wWxxkjbfbvGoZFmp3t6+wtDwim25XO6KdDp9JUyXpFKpMaT143gph6lGo7EX+D5Ur9d/XKlU7jl18sRT09OlGTQKQWQw8ONkNN3icZI2C1q2D6AlmIym+XHqCx4AOr127YZduXz+9wD2r1nBXblwC4AU36jMzn7m0KED94MYdZwRB34rGy+gAMdIplloGIhmMOmDTZufz3Rfpr08KQK/bv2mX0Rv/wLsL/UejiY4pzAFr/DbB5/b/70YIrQiBi9o5DDdl9Q1GIgWp6SNwZdRnfEm0C2+es26rXD3X0KPv4iFdMML0wLwCI9hWPitI4cPPo0SCW4U/GicF16QBATSwOUJpvsyqvvAm65y46axd2ez2c+yoG5YnBaoVqsfeHb/3q+hdJ8EPvi+zkq0JUEGGXyAeQIDbb7d4gY449T1gMfPbNq89eOZTOajsHXDIrYA2votg0PDxYmJU3fAK/BKhpNdNRpvmyeOACzACjGd0sAPgadNwd809knI63mlblj8FsDwesXg4NAmkOA7AQnsoj5uZjNpaRZXaQSwRF9S949YAqDnf6wLflObLkkEJNhZHBwaOHXqxO1neEEfY4kjgA+66bHgb9y05V2ZTPajZ1iBbvYXqAXoCQaKxafHx089EVOkAR2TNGdiJoLLYGCbbqBbHsbDY3T1mq39/cV7mLkblrcFpqYmrjh65PDTqAUngNHDJoE2OWRlzdYEPhMYokSweCix0M/09Q180WXvfi53CxALYuJhF2IV2FhFs1FnYDwkgBksky/NE4S9f926Da+H+7mQJ3XD8rcAsSAmqEmIEXRiaNj5eJquFbcMGvE+LJNJy4drpTP5fOEmL29XTUALEBNig6rMw8yzRWuaIrAMdpLJOBvzptesWbcLsru9yxZKVugPsFGcUDXD0iRra7rJpiHAbscSfWkeIJ0vFH7XMnZlslogwCbECrXzMTS9qdLM7AdmYrDMviT4Baz53+aydD+T1gLEhhihXkYCHz8f27Dq0YxMiJ4UxoeGVmwLz+wqiWyBAKMQsxg8We8wPc4DMJHBMoUkwUTjlS6p+5nUFggwmoddUF+zh9X3CWDAM9F0O4H50njYc0V4Zgcq3P2o46OGLZEaJHWN0xboHXhbTVUOMFK8kGD4MY9h2qTzncBoJovPk1gD7uTZnRb40IxAF3tExlaKbMexoS8txXRKGpW0jJdSsn+iIXvG6/JMqS4lsAFJTS3WKfccYDQPO9Tft6E13O35L4UygwU/c6ij8M2WoVMkX6ZaMSDyhleIvGmHyAUrUjKMOVJ2Ni2pckZSM+gskNXptJycEnnkeF1uOTQrdxyflcmqI0Kn3CvrGWAUYkaTdzALA20kQexbwUxk8E80vePW/688PyXXvzEluzaK5Kvo8eWUVMtpqYEEqfBISQpdfmUhLW8Yyco1xYLcdawin3m2JI+XKjqldk3SEZ/EyPDyJStvcQWfBvMATPBDXDxq8/MnSufdZdCx33x1Rt73K2lZ3ScAPYVx3kGOHTO4eOjcB1Md8XRa6rDVcGQyKbluVY9sL+Tlr56ZkNtOlbXlEnWT7StjQPu5ovgx3rA5ADPaSZbRj5vuF5hYneP3L12bk+vfnpMBbI7yBWv2d2AbAk/w08ioZIC0eAaZ+KpsA3JLb1o+snlI0s+IfK+zSGB4+TKKsc4DzANEwfRPpM5g0sUS+snJ3tVX5OXd7+iVNLZESrMOfPR1RwLchjp/EIBgZxR82OAB6DUaOEgMOAElwmg+LTduGJaT1RNy7+QMiJLQG2+ultWS0j+acyHGdmGwE6K6xa0QxhMbOOHbsiUr7/z1ouT681Kq56XcwCF5mZaCHmXIciovM6kcDidn03mppLNSSWWlClnFM5UqCFHDQbmukJM/Xjck6/IZfdie2AaYq5jh5ePKVD+uuu8B7CTLGI3PFZ9AjUu93t6U/Orbh2TFuh51++zCKdjTerDnu7Gfj8zoBbLqATAR0h7fgMRyEUcWJzVwkhsKnH7JQI/8zuig/PXBE7pnkMAmiFbJwDYco3G0ytwkMHqyH/dP9O2J0kmAS68akPMuK2IdD/et4IMAwT+6OhIACz/n+nFXdPMkQY6gA/A6QeeRwYGxRHXEuYmQAineivXknRNluWt8Ws9NVAM0V+a0MfMngVaEncy46SYtT6IkwR9elZVXv2mF1LJ5mZ1FdclvDOipOiiAQ8d93A5JwJsm+DkcJEAN4JIAuYAA9XQdZKirjSQQ6CREEUz5zZEheWhqRiYx3iS6UeKxi1YZg158YMZ5meOzJsN68dVDsnLzgExV09r76QGUAPQECrsjgXoAWIwAJEEVBCD4tQB46iRAo+kAERp1uXygD/sEffLfJyeT7AXisIvaFLgoAeIyxdmSgTpqwd4/uDInF75mlcxislcB4A0M5O4g3I4AKXiDNNIyONjrs3ARFdwZ3T8m+iBBzREgVQ+J0EjXQhI4L1CTApjzjlVDcvdEqZO8gI9XE55GABqbEvwzFkiLZF3aKL8Ysf2VwzK0gWM/Zu4NzNQBdkMPTPcgObNLKwE4B4D7BwlyJAF6fh5EqOHOqwC7FoBPT0Dw695Bb5DDikAaNXlF/4Dsgie4/dQEvEC7ZlvatohcrV3FmMZDN4Ii5zVF2xXSlHFZIuj9Pf1Z2X7ViHApNwv3X6uDADgaPAISsPenQAybB2SDeUAu8AIVEKFgHgBA16HX01UlgPMC9AQ8qlpmIZuRN64Ylh9OTIFwqESyQ1sMzQP4t9DqhFZ2/9wl1eto/LUvL8qKrcMyXc1JFSBXSQDwug5dSYA4pvUggPMCpAEHhixw483ncQBqDAHuqCkRHAEIOL2AAg8de8QoCxJe4NLikGztOSa7S9O6u7ikN77wxVphNc8eRwArfl5mS0iKTGM83nL5qNTzPTJbceBX61l4ARAARyMgAR2d8wIAHzYlAO4uhxvB86E58NH7awC6RtefIvjuUCJkKiiPcQ4vVRnExOHVg8NKgKS0R5t6tMSyFQH8E3y9zTWWNoljf3GkV1ZfOCLlWk4q6OnVOrxAQIAavQBJQA8AmYJMYS5AAnA+QA9AAjgSzPV+Hfc98EmCRprgo6kCEmD6CB9Sk1cNr5JvHjsqE7Va2wnU0rZM09V87Hw9zNSKAGGGxCrY9l19/grJrxqUchXbtyRBDRIkUA+AeA06vQAJICBAWsGn5CogpTByHoB+7SaAAJXjP72AAx5SQac3qbihBXEdXuAFNvUPy/a+otw3fiLJk8G2EHYsAdJYv63ZuQbuG+4f4FYANg/1AAC/Dt0Ogu/mAZj+2VwAm0M5EAH9G7DzIAkcAZzrB9AZEADAqwcg8KCMDiuYC9AL9KQysmt4RB6YONm2kZOc2JEEoPvvH+mToW2j6P05EAAPcvDgh16ARw06wVcPwGGAc4DAC3A1kCEJ1Im7/QDuBHIJqO4fE7xGPfAA9TnwG41ZLaeRQXnYccA+IbaHq3Lh0GoZPLhPxqscFjovdCQBgICs3DYimaEhmali8wegV2oggHqAvAJfBwlqsDd4EHydCHIe4OYA3AvgW0EcAgA9/mHvn74AXkAnfXDxbuxnr8ehwNMLgAiYRmLzGEdFRvtXyZb+IXn45FEQovMo0JEESOPB/Yod65z7x7iv4JMAetALYHsHh/MAJACmeuYBgk0h0EBXA5hK6BBQhwdo0AtwAqhDQUAAHSQIugOcPZ86iVDHTnoPHh/vGF6rBOi8/u+WwqdT7+RQG+4/P9wrA2NrZAYgzwJc5/4dAWoEHkedB7wAwacH4KErAbh/Lgk5kbNXwV3vhydg71ciYK2PiaA0uEagB8D50On6HREQB/iN2izeKMvJthUbpe/ZJ2W6lqhh4LQw6zgPAPxlYNMqyQyvxNqf7p9HQcf9qrp99nwHfl3dvyOAbnoCdM4BHAG4JMRzg+Af0MbmKPyBEgDPk7n8094PoINe38Ckj+6fPb8Bz6MS84SR4lq8dzgke8c7bxjoOAJwmB3cvh6Pffvx2JfLP/Z8EMCkjf1KAuf+dQ4AwNxKwBEAT/gBJjZ19B+SMBFs4GkfPYBgI0gwERQMBw24eDpK3QeAVD0FTxCSYFZ6erOyZXg9CHAE6afV8ZAvGaGzCIBOmuktSN/YRpnVnu+7/YKSga5fx35IrgTU/Sv4uFVMAFOcDBJ44FxXD6B9H2gEHoAJGOEFAOswAC/gRkrECToPkILunzo3m1KYMI6t2ip3P/soyuT5nRM6igBc/hXwQkZ2dI1UAvdfC3q/Ss/1O/CdB1D3H+wFcB3PIYAeAM/22PUDH8AIgceBLWEgizj2D9QDkARw/xwCeKAsmwPUmY5VwujKLfjmUVFOlk521GqgowjAXtq3Zb00eoYC188JXwETPjcHcJM/BzoJIOoBnBeg+0fXxUECuLcECD5dNocBGKHbEZBAz5kDX8tQz4Bmg1dREtTx2jG8Ss/AWlkztE5OlE6gxM4ZBjqKACnswPWMjeGpXw8mftjoUXdfQI80InD3j0tAgMNZu5KAOm5TPQAJwN7vXg6xl7roCbgSwBpANZIhRW+gPoJeACRQ4kDHqoC67gVwdQCPwKePPXgcvX5kuzx5MO4X23BaQkPnEADuPzuI173Xb5JKFT0eO4AhAXS8tzEfJODyLRj/2Tv1gZD2ZrcEZK/n+M9nAoSZcbAEn84D0Ko6wOUugQ4WWCJiqxD8oSfB0pBDATeLVLIZa7J69HzJ5/4X9eNP/XdG6BgCcPzPr10jqcFRqVYIPlw/x3yAz00ft9530sDXnq/AEzQCBgAD9083TcgZ1BNwCMA1aKpxIse5AIcMfIGE3x5SPXgjSL0Iy9U5AsrlnAAEGFgxJkMDq+XoiX3uHC092R8dQwBusxY2b4UnL0oNBAg3ehT8ZgLosi90+wSeBAhAJPAggev1BMeRwPV9bguTBG5QcJ4AVGH+gAicQGpZBF9JBRl4g1zfiIyMbJMjJ/YGpSYbfNaucwiQz0tu03Zd83Pp5cZ6fPdLXb0RwI374SPgoNcTKAcagAzBdw4f6ClKJEA9mAhS0CvUAiI4b0ALwFdvwIkk5gWBTk/AnUXBN41G1u6UzFN3gGQsMfmhMwgAl5xZsUrSqzbq2K87fOj5c+AHOsd7r+eHwIe91iNApI86uBwpnBfAAMF5ATwPHxo5SnDGQMJwiKAksbhjyIkldNiHR3dIT8+wlErH9VwYEx06hAB4c2f9mDR6V8H1Y4IXuH28C4bxNxj3FXjcDryDAR91/WHvByQc/wmhAW8a4/yauObQ1QBzOiJU9Qyk6fyAebhzSHJw/QAigKj5oY0yiLlAqXQMdpIi2aEzCIDlX3bzBWjuXl3iEXg73ESPM/1m8I0EoetX8AIXDj3AWK0+RJwFMPBbxkqRYFhwBKFl7p8NDcxJLyBYKeQL+ILKuovl0IH7/GITqyefAHDD6f5Byazd7nq/ru2dy2dv53rfPeq1nu9m+44A7KXsocFRLUl98oDUTu2TRukwVnPTSMPInu/HNdbg/YIxyQ6sx44vfkwIkOpQoDmcR1CvwDjZE8wPOECwDJKBqwyqw+suk2zu3zFcufKRIbGhIwiQWb0Zyz/sANL9KwFMBqCHbt8Dn0go8LDBHVf2fVdmf/4/Ujv+pNTLeIULT/GAmAOGYGZyku5ZKbnRi6Sw7ZelZ/PrJYPezMlcSAQU6eYDPM8NC+ol1GtwOODcoCE9q14ufYMbZPz5PYmfBySfAGj0zKYLsZ8ziNZHdZUABD44FHwAaBM9zsYJPiX28yv7bpXyg/8s1aOP4XyATrDV/yOPSscBptUnD8nMxHMy88ydUl53uQzs+qAUNrwaJLDJIUvGeQq+I4FG+WFlYh6Q7RuVIawGxo/t5gmJDmiNJAf0skK/ZDbu1Mne3AOe6JgPsJuWeojD/ZYf+EeZuu1GqR5+EOnondzF80GP3jrTmAePgmf33y0nv/tHMvXYVzAf4I4fZ/puZ0B/Swg6vUENE70q0qqQFayq9UcmMgUZ2vgqPEfCUJXwkGwPwPEfS78UHrU2agSGHsD1fL7dwzGXL3gQfKeTz4gD/Ol7/l7Kj3wJ+TFG65buGSIBItQxdEz86C8xV5iS4sXvAznYXJwkslvz0JkiJK8bvFkQEKxv7SVSwAOi6VP7wbnk9rPk1gxNypDefLFIYQU6MIAF+G6TB7oCTzL44ON28FZv+aGbHPjQ2/Z4d4nWn+z1mChO3vtpmXry6wq9rvkxJJAGulkEIlTpCZCXB3V+QzmDyeQAhgFUuHX5CUhJMAHQcPk+yWzehTZ0j3RtyacPeJQAbm8/7JEAYPZnt4AAn3c9X3vpObYyejQ9wAQ8ysyBu7FH4IAPhwNcg4+L+BN0KnVYABkyvTK4+Ro4H3qN5IbkEkDd/2ZJj5yHyRt7NhpSvQB7P6vtHbr8wncCj/1Upu/9lDRm8ZOf7cb6M8UDxKpPHZHxH/+tVDFJVBKAn+YF2Mf5+4LcKCIJKPkWQR8mknkMAzr/ONNrLlH+5BIADZDZgh8nh/t3z/Kdu3eun8MBScGDYzE8AUAv3/8ZqZ/aC/AX4bYwj6gcfkgmH/oXLC648xesDIC+9v7QA5hHwIOWwU0ysOEKeDBSJJlhEVrqhbhRNC9er0pvuRKF5TDRI/gEO+j90PXBTAA+CTD71C0yu/f7AB95Fi2kpPTkN2Vm/52BFwAJQk8ATpIEJARqp6+cYzVQ3Pp6zB35NxySGZJJAP4A05oLAvePHk7A6f6VBKwyx35K9n7M1sf3yczDX0DL4/WsxQycD8yckknsK9SmTzQNAdw65mHg61AAQy+GgcKKrag7B4zkhWQSAMut7PbXSipXDJd5oevn2I+ephsySoiazGCtXju+Z3FcfxQzeJjZg/fK9O5vcBHYTALGSYTAA/DXQ9J9a/AllmujpSQmnjwCoKek8I59evNV6PUEmwfdOt0+e3xw0P0DjNrh+2V2938E9iVqV8wBph77qlRPPqUk4DAQzglQBSOBeYSBl70Jr7PjjxQkcC6QPAKgATNbr5F0cQMaDJADfL6Fo2/lkASh7pZnZbj+xvTzIAOJsUQBk8zayb0gwZd1QqirAfZ8EkE9gEcCGHOrdkjfxiuRlrxhIFkEQOul+lZK9rzr0M85+QP4dPnB4UgQeAD0/uq+70kF+/aLMutfkEspKe/+T6kcuiccCugFQjLgfJ0QkhScDJ73Njx1xO/Wa+4FC1+yDMkiAJovs/VqyYxcoI/abdLn3uNnVekRnOtvTOHBzSNf0G1f2pc8wOPUy8dlCruOdSxBreeHQ4F5AlSMP2ZVWH8lJoTc1EqWF0gOAdj7e1dIbsdb0aHxPN5cv3kAAs+DYCPvzE+/LtUjjyK6mMu+BWjFCeH+H0j557do1ZQEBB71jHoCKQxKcce7sCTkuwbJCckhAHv/y16Hv02L/XO0Hl2/ewM36PVoVP7Tid/Rh2X28X8DEZa/N/E7gqWHb5bqqWcc6MAWHABH5zaKlBioas+ma6VnA/Y2+IwiISEZBGDvH1gjuZ3vxFyuJ5josWoBCSgJPr3B7ITMPPhP2Jo9BDIkoPqoQ/X53VJ65PPgI18QDQgAqZ6AHkF1PC0sFKW48734QxZ4tyEhc4EEtCDaAuNp7qK3Y+zfAfAR1aUfQWf1Ag9AAiDf7J5vyuy+26Avo+tHrZoC6lXGDuEs3jriKOWWgUYEDAdGAjChsOEa6cMbRzppaCpkeSKnSwDcwiIFuMMMXqLMXYTejy3fOfDRkmxN7fkEH2v+Iw/j7Z6bML3Gmz2JCnD3s5Mydf+n8b7hM24+gPqx0bT34x7c/ABeAN8hHLjkfZJd/N3B08LsdAmwOM1N148NkvwV79cdM53hc52vPd/r/XCzXOuX7/07qU88CzIsb7VjG4NDwdHHpXT/J/FC0XQwD3A5jQgqcc+Z4e1SvOyD2OnsRYbTwin2ki+EcRlbEjeOt27yl71Hshuvcl3FwNchwFw/qogeX37wc1LBa1qJcv1RBDgU7Pm2lB//ivZ4QsueT8n5gHoB1TEh3P5W6cOqYLnD8hEArZK74C2Sf8VvoMc71689X0lg4HMIwLzvp1/DrP9fobEpkxxQX5C1dP9nZWbvrXNDgZEgGAr08TCHgl2/L4XNr8NtcaBYnrA8BMANZ7HkK1z5IX3gw2erDnxKNKKN/Rj3K09/By95/EP4Dv/yNNMZXBVeoFE+IaUffUIqB38yRwIUQfpyo4gPi7g5lOoZkcGrP4xvPe9CwvIsDZeeAAR/6y9Iz2tv1HGfs6S5no/qeOBX998h0z/8BMb/48kc91vxAvOB2vh+mbzrz/ASyQO8QQ2OAEYEDgt4Wji0VYq/8DHJrca7j8vgCVoRgHW14OtmOzuJG8ysu0R6XnODpAfwsIfg63hv63y2FA5OqPZ9X0p3fQTv6h/U+NldcBnPIgmO75bJO/4Uzwvui/UEOifAR2blDim+9qOYHI690CTwsfP1sGFaEYAZYk8IzzxThS4PD3p6rvwDSQ+O6V6/gm+bPNrzWR38AOueb0npzg/jRY+EzvhP9965dMU3kSZvvwEPre7Qs6xRKTkc6EESjF4ifZe8H49CF+W7BHbZeTWPI0CrzK3s8wqNN+Bv7oxdK9m1l4cPetyIjx5P8PnjS3ioMvPA56T0g4/rS5iJXO7F31xrK0lw8mklwcwTX8VQj5+XQW72fpO2Y5gfuw77A9uQcM6TwlZYzbOj1duGeSe0zd0uES4xg+/dSQYPQ/QPLBjwcP/46RW+0VO+71P4/t6tGBr4Pn8cN9tdIMFpuJd66ahM/fAvpAqP0HvpBzAErlMS6JePrer5QcyLRkGAx3H/Zjxn2RZDIwAztctoaSXk40PtMw+gfO3oE9rLU1m86sU7xMy3Pn0MW6jfl5mHbpbaiacc8JhJv+gCSNColaX86FewYfSI9Fx8PX7z4BrsDQ+D6xgKsF9cPXQvCMLvE54T+YkRg2HmYs2fId5GAEuOOym0Yf26H1+NPt8yn5HETVV2fxvf1D2OYeAy3CR+5mViP276AQD/M7e9e243fkbVWZ7MIDb+V/l6+W03SHblyyWDt4VS+SJWOvgG83M/xtB3GHnOvgMQI+/eQuxa2aIEsHwhQ8wA2ajX649mMpmzIwALwKPTyl68xcPXtxk4EPJmCfyLHnx3y/rJe0VbVPFsg2Rwwdrh7MFnOcQIIgp8HJ56WfqauMya6KVpnlqter8lnLXEpCgEXL+te07u7qyrkYgT2Rb8wqkebJdzA5/35GFkuJpksq9r/HRa305qzJTL+J51NyS5BQKMQswWqqtPAJ7knxiNy/g41jPdkOgW8DBqh6Wl6XNX3lBoiOiWxvRGBQHfi/svGrsheS1AbIgRaqZ4BdKv6DycfQ8QzRgtROPTpdLNfsaunpwWCLAx3Fgx003OqywJwEQGyxQXD9OOHcPUVcTWmnpi9yMRLVAKsAmxQq18nZWcFzcPwAQ/xMX1ZKwz69PTpT/0M3f15W8BYkJsUJMoyFa5OEzDOYCfyTL6BTXpRw4fvAsXw5ZVNyShBYgFMUFdmnCKxFlVS6euwTwAI0y0YBmjUhlGpp06eeJDlrkrl7cFiIXX+6NewMfQKhpijd2H0AvYLgTlQke6XJ6e6O3t25/NZt9opXbl0rcA1v03HDt2+Ce4MoHna0WUcUeUCBo3AkTBRxlKDCMC49TpMcyWmpwc3zNQHCym0+lLmaEblrYFqtXqF5878MxNuGoUcCMCQWaaSVbQiECdP6rXBCptIcCBHmezPOmJiVP/VywOrQcJLmDGbliaFqjVat868Oy+P8fVCLABHiWCgW+gmwwrSQIQTAumG8BRyXxmM28gE+Onbh8YKPan05muJ7CWXERZrVa+SPAx7vvA+7r1+DgCsGZGhOCnN+ZAZWIrEliaEcDy0Y5t4lM/6untxZwgd50auh+L0gKYe9343IH9N6NwAm5Hq54fJQDrRPDDEB0CfFCjQFua2VmI6SonJyf2gJW39PT0vgrvDawKr9JVzrkF0K57Tp44/t7njx2xCZ8Put/7DXSTYW9HJZrAZ6UIHEnA4INp7p0yejC/ESdWB/iZ0dE11/T1D/wN8p7dG0Q4sRu0BUqlqck/OXr08N2ey/d7fivdJ4iRwaSRQkE3sH0CmG7gG1Es7hOAttg4iJBeuXJkJ4jwHrxI8uYuoKffApjk3Qrgv3z8+LFHALyBaT19Icn8zEOg7VwDvUkSWCMA1CYv4KcZ8CYN8DjwfRt1LQf7BXksGbdgeLgY84RLM5n0DvADXw7A34F5aYdp4HugVqs/gcndgxjjH56cGN+HJR5/9NB6rIFowBvAvozqdo6RoAn4oMnDl/EZJ1A8GHzwTTfw46RPCJ8A/rmmU/qHXc+XUZ3xVoFlLWdgw55O8POZ7kvqdhA86lEQfQK0AtzOMRktk3U1m/7dQEbYiJQM1qAWp406C2wXmMc/h/lJBjuXOm0++KbDHF7Xru/bqHdy8NvFdF9Sjx5sK9oofT1KAkuPymh5KEaD2Rnhj/DOC8wQDSzcAIymxcUtv12MoJrNQDfJ8w30qIwr28/fKn257HFt59fF0uOktRUl28ri1O2wNIu3kpbPyvClXx/1ADQwAxvfpNkoLTCNgZIXtsB49LCyLC/JQxvPo4weMKnNl9QtMH8nBt5/NJjNl9TjDrYX7Qa0r8fZ4sowm9WDcQaV7TwAG90y8wRe0LyAD4jpdiFKO9d0O5d2/0B0HvBWHtMYonFn7ZxPvw1Za4vHSdrsYJv5usUpfZ15fJvF7VxKBou7WPDpE4AZ/Mb241YIL0QSMFBnsHNMMi/zUFp+plGnjB4wzSuDNgYr08U699Paz+7A4r6kHnew3cxueivJfJZG3YKv0xbGDQzLSGmN7suozri5dep+vJXd8pm0azFueqCGdbB4K2nntkpfKnvYoAtc0M9nOmVUNxulD6gfb2W3c1mVqG42Sg0+GGajtIb1ZVS3cymjoFtanN3KtzwWp2SgPRribNE8SYwTgGjwbaYbUHFx2qJgW/5Wdl7T8pjuS+oaOAQwY7SBzeZLd0b8JytigPrSzvdtLMHipvuSOgPzvJgC28IPFvdlVGf8bA5exy/Lj1O3oBtBFolrcLPFSdp8u8WjkuX7Nj9uOiWDledi7jPO5qcnXTcg/Hr6NtMpo3pc3PKZZLmm+/nN7kvqFjRvtHGjcWY2WzvJND99oXhcub6Nuh+sbN/WCboBEq2rbzc9TtLm2xeK8zp+fj9O3YLlCUGzBMq4xvZtpvvydHS/bD+/XdtsFvfz+7ZO1MMG9yrv20xvJ/20VjqLt7Sobpf202PBZsaFwLD0c5Vx17IyrcIvNtkEAG7Oj5t+rpJtZmX47TfP9v9tVpxWeBtrbgAAAABJRU5ErkJggg==`,fae=e=>{let t=(0,X.c)(3),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,Y.jsx)(`image`,{href:dae,width:`128`,height:`128`}),t[0]=n):n=t[0];let r;return t[1]===e?r=t[2]:(r=(0,Y.jsx)(`svg`,{...e,viewBox:`0 0 128 128`,fill:`none`,children:n}),t[1]=e,t[2]=r),r},hv=e=>{let t=(0,X.c)(4),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,Y.jsxs)(`g`,{clipPath:`url(#opencode__clip0_1311_94969)`,children:[(0,Y.jsx)(`path`,{className:`dark:hidden`,d:`M24 32H8V16H24V32Z`,fill:`#CFCECD`}),(0,Y.jsx)(`path`,{className:`dark:hidden`,d:`M24 8H8V32H24V8ZM32 40H0V0H32V40Z`,fill:`#211E1E`}),(0,Y.jsx)(`path`,{className:`hidden dark:block`,d:`M24 32H8V16H24V32Z`,fill:`#4B4646`}),(0,Y.jsx)(`path`,{className:`hidden dark:block`,d:`M24 8H8V32H24V8ZM32 40H0V0H32V40Z`,fill:`#F1ECEC`})]}),t[0]=n):n=t[0];let r;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,Y.jsx)(`defs`,{children:(0,Y.jsx)(`clipPath`,{id:`opencode__clip0_1311_94969`,children:(0,Y.jsx)(`rect`,{width:`32`,height:`40`,fill:`white`})})}),t[1]=r):r=t[1];let i;return t[2]===e?i=t[3]:(i=(0,Y.jsxs)(`svg`,{...e,viewBox:`0 0 32 40`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:[n,r]}),t[2]=e,t[3]=i),i},pae=e=>{let t=(0,X.c)(9),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=q(`fill-black dark:fill-white`,n),t[3]=n,t[4]=i);let a;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,Y.jsx)(`path`,{d:`M205.3 31.4c14 14.8 20 35.2 22.5 63.6 6.6 0 12.8 1.5 17 7.2l7.8 10.6c2.2 3 3.4 6.6 3.4 10.4v28.7a12 12 0 0 1-4.8 9.5C215.9 187.2 172.3 208 128 208c-49 0-98.2-28.3-123.2-46.6a12 12 0 0 1-4.8-9.5v-28.7c0-3.8 1.2-7.4 3.4-10.5l7.8-10.5c4.2-5.7 10.4-7.2 17-7.2 2.5-28.4 8.4-48.8 22.5-63.6C77.3 3.2 112.6 0 127.6 0h.4c14.7 0 50.4 2.9 77.3 31.4ZM128 78.7c-3 0-6.5.2-10.3.6a27.1 27.1 0 0 1-6 12.1 45 45 0 0 1-32 13c-6.8 0-13.9-1.5-19.7-5.2-5.5 1.9-10.8 4.5-11.2 11-.5 12.2-.6 24.5-.6 36.8 0 6.1 0 12.3-.2 18.5 0 3.6 2.2 6.9 5.5 8.4C79.9 185.9 105 192 128 192s48-6 74.5-18.1a9.4 9.4 0 0 0 5.5-8.4c.3-18.4 0-37-.8-55.3-.4-6.6-5.7-9.1-11.2-11-5.8 3.7-13 5.1-19.7 5.1a45 45 0 0 1-32-12.9 27.1 27.1 0 0 1-6-12.1c-3.4-.4-6.9-.5-10.3-.6Zm-27 44c5.8 0 10.5 4.6 10.5 10.4v19.2a10.4 10.4 0 0 1-20.8 0V133c0-5.8 4.6-10.4 10.4-10.4Zm53.4 0c5.8 0 10.4 4.6 10.4 10.4v19.2a10.4 10.4 0 0 1-20.8 0V133c0-5.8 4.7-10.4 10.4-10.4Zm-73-94.4c-11.2 1.1-20.6 4.8-25.4 10-10.4 11.3-8.2 40.1-2.2 46.2A31.2 31.2 0 0 0 75 91.7c6.8 0 19.6-1.5 30.1-12.2 4.7-4.5 7.5-15.7 7.2-27-.3-9.1-2.9-16.7-6.7-19.9-4.2-3.6-13.6-5.2-24.2-4.3Zm69 4.3c-3.8 3.2-6.4 10.8-6.7 19.9-.3 11.3 2.5 22.5 7.2 27a41.7 41.7 0 0 0 30 12.2c8.9 0 17-2.9 21.3-7.2 6-6.1 8.2-34.9-2.2-46.3-4.8-5-14.2-8.8-25.4-9.9-10.6-1-20 .7-24.2 4.3ZM128 56c-2.6 0-5.6.2-9 .5.4 1.7.5 3.7.7 5.7 0 1.5 0 3-.2 4.5 3.2-.3 6-.3 8.5-.3 2.6 0 5.3 0 8.5.3-.2-1.6-.2-3-.2-4.5.2-2 .3-4 .7-5.7-3.4-.3-6.4-.5-9-.5Z`}),t[5]=a):a=t[5];let o;return t[6]!==r||t[7]!==i?(o=(0,Y.jsx)(`svg`,{...r,preserveAspectRatio:`xMidYMid`,viewBox:`0 0 256 208`,className:i,children:a}),t[6]=r,t[7]=i,t[8]=o):o=t[8],o},mae=e=>{let t=(0,X.c)(9),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=q(`fill-black dark:fill-white`,n),t[3]=n,t[4]=i);let a;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,Y.jsx)(`path`,{d:`M568.003 115.821L517.278 27.9661C507.183 10.4816 489.084 0.0227367 468.894 0.0227367C448.727 0.0227367 430.674 10.4361 420.556 27.8752L343.251 161.749H242.755C236.23 161.749 230.386 158.384 227.135 152.745C223.861 147.106 223.861 140.376 227.135 134.715L277.861 46.8603C281.112 41.2216 286.955 37.8338 293.481 37.8338C300.006 37.8338 305.827 41.1988 309.101 46.8603L312.125 52.0897C313.353 54.2042 315.604 55.5002 318.036 55.5002C320.469 55.5002 322.743 54.1815 323.948 52.067L337.385 28.5118C338.795 26.0335 338.522 22.9413 336.703 20.7586C325.699 7.57131 309.874 0 293.322 0C292.662 0 292.003 0 291.321 0.0454733C272.04 0.75031 254.76 11.1864 245.074 27.9434L200.215 105.657L155.81 29.1484C145.465 11.2092 126.594 0.0227367 106.608 0.0227367C105.949 0.0227367 105.289 0.0227367 104.607 0.06821C85.3265 0.773047 68.0467 11.2092 58.3608 27.9661L7.65806 115.821C-6.25678 139.899 -0.868187 168.82 21.05 187.759C29.8945 195.422 41.6039 199.628 54.0181 199.628H148.648C151.081 199.628 153.332 198.332 154.56 196.217L168.52 172.026C169.748 169.911 169.748 167.319 168.52 165.205C167.292 163.09 165.041 161.794 162.608 161.794H56.0417C49.5163 161.794 43.6729 158.429 40.4216 152.79C37.1475 147.152 37.1475 140.422 40.4216 134.76L91.1471 46.9057C94.3985 41.2671 100.242 37.8793 106.767 37.8793C113.293 37.8793 119.113 41.2443 122.387 46.9057L194.826 172.526C195.031 172.89 195.258 173.208 195.531 173.526C198.76 178.665 202.83 183.485 207.786 187.782C216.631 195.444 228.34 199.651 240.754 199.651H321.424L315.581 209.769C314.353 211.883 314.353 214.475 315.581 216.59C316.809 218.704 319.059 220 321.492 220H349.436C351.868 220 354.119 218.704 355.347 216.59L364.396 200.901L367.17 196.468C367.17 196.468 367.261 196.331 367.284 196.263L453.274 46.9285C456.525 41.2898 462.369 37.902 468.894 37.902C475.42 37.902 481.263 41.2671 484.514 46.9285L535.24 134.783C538.491 140.422 538.514 147.174 535.24 152.813C531.988 158.452 526.145 161.84 519.62 161.84H418.669C416.236 161.84 413.985 163.136 412.757 165.25L398.774 189.442C397.546 191.556 397.546 194.148 398.774 196.263C400.002 198.377 402.253 199.673 404.686 199.673H518.21C539.81 199.673 559.295 188.237 569.026 169.843C578.053 152.79 577.666 132.623 567.981 115.843L568.003 115.821Z`}),t[5]=a):a=t[5];let o;return t[6]!==r||t[7]!==i?(o=(0,Y.jsx)(`svg`,{...r,viewBox:`0 0 576 220`,fill:`none`,className:i,children:a}),t[6]=r,t[7]=i,t[8]=o):o=t[8],o},hae=e=>{let t=(0,X.c)(11),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=q(`fill-none`,n),t[3]=n,t[4]=i);let a,o,s;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,Y.jsx)(`rect`,{width:`800`,height:`800`,rx:`160`,fill:`#000`}),o=(0,Y.jsx)(`path`,{fill:`#fff`,fillRule:`evenodd`,d:`M165.29 165.29H517.36V400H400V517.36H282.65V634.72H165.29ZM282.65 282.65V400H400V282.65Z`}),s=(0,Y.jsx)(`path`,{fill:`#fff`,d:`M517.36 400H634.72V634.72H517.36Z`}),t[5]=a,t[6]=o,t[7]=s):(a=t[5],o=t[6],s=t[7]);let c;return t[8]!==r||t[9]!==i?(c=(0,Y.jsxs)(`svg`,{...r,viewBox:`0 0 800 800`,className:i,children:[a,o,s]}),t[8]=r,t[9]=i,t[10]=c):c=t[10],c};function gv(e){let t=P_(e);switch(t.icon){case`github`:return{providerName:e?.name||t.providerName,terminology:F_(e),Icon:sv};case`gitlab`:return{providerName:e?.name||t.providerName,terminology:F_(e),Icon:cv};case`azure-devops`:return{providerName:e?.name||t.providerName,terminology:F_(e),Icon:lv};case`bitbucket`:return{providerName:e?.name||t.providerName,terminology:F_(e),Icon:uv};case`change-request`:return{providerName:e?.name||t.providerName,terminology:F_(e),Icon:Dh}}}function _v(e){if(!e)return null;let t=Date.parse(e);return Number.isFinite(t)?t:null}function vv(...e){for(let t of e){let e=_v(t??void 0);if(e!==null)return e}return null}function gae(e){if(e.latestUserMessageAt){let t=_v(e.latestUserMessageAt);if(t!==null)return t}let t=null;for(let n of e.messages??[]){if(n.role!==`user`)continue;let e=_v(n.createdAt);e!==null&&(t=t===null?e:Math.max(t,e))}return t===null?vv(e.updatedAt,e.createdAt)??-1/0:t}function yv(e,t){return t===`created_at`?vv(e.createdAt,e.updatedAt)??-1/0:gae(e)}function bv(e,t){return Tu(e,zn(ye({timestamp:oe(ud),id:oe(Yr)}),e=>({timestamp:yv(e,t),id:e.id})))}function xv(e,t,n){return bv(e.filter(e=>e.projectId===t&&e.archivedAt===null),n)[0]??null}var _ae=[{value:nt.make(`codex`),label:`Codex`,available:!0},{value:nt.make(`claudeAgent`),label:`Claude`,available:!0},{value:nt.make(`opencode`),label:`OpenCode`,available:!0,pickerSidebarBadge:`new`},{value:nt.make(`cursor`),label:`Cursor`,available:!0,pickerSidebarBadge:`new`},{value:nt.make(`grok`),label:`Grok`,available:!0,pickerSidebarBadge:`new`}];function Sv(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&&xd(e.itemType)}function vae(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 Cv(e){if(e.tone===`error`)return!0;let t=e.toolLifecycleStatus;if(t===`failed`||t===`declined`)return!0;if(!Sv(e))return!1;let n=[];e.detail&&n.push(e.detail),e.command&&n.push(e.command);let r=n.join(`
|
|
10
|
+
`).replace(Pd,``)}function Id(e,t){return t=Fd(t),Fd(e)===t}function Ld(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`:vt(e,`class`,r);break;case`tabIndex`:vt(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:vt(e,n,r);break;case`style`:It(e,r,o);break;case`data`:if(t!==`object`){vt(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`&&Ld(e,t,`name`,a.name,a,null),Ld(e,t,`formEncType`,a.formEncType,a,null),Ld(e,t,`formMethod`,a.formMethod,a,null),Ld(e,t,`formTarget`,a.formTarget,a,null)):(Ld(e,t,`encType`,a.encType,a,null),Ld(e,t,`method`,a.method,a,null),Ld(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&&Cd(`scroll`,e);break;case`onScrollEnd`:r!=null&&Cd(`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`:Cd(`beforetoggle`,e),Cd(`toggle`,e),_t(e,`popover`,r);break;case`xlinkActuate`:yt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:yt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:yt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:yt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:yt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:yt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:yt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:yt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:yt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:_t(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,_t(e,n,r))}}function Rd(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&&Cd(`scroll`,e);break;case`onScrollEnd`:r!=null&&Cd(`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(!ut.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[Xe]||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,``):_t(e,n,r)}}}function zd(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:Cd(`error`,e),Cd(`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:Ld(e,t,o,s,n,null)}}a&&Ld(e,t,`srcSet`,n.srcSet,n,null),r&&Ld(e,t,`src`,n.src,n,null);return;case`input`:Cd(`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:Ld(e,t,r,d,n,null)}}Ot(e,o,c,l,u,s,a,!1);return;case`select`:for(a in Cd(`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:Ld(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 Cd(`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:Ld(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:Ld(e,t,l,r,n,null)}return;case`dialog`:Cd(`beforetoggle`,e),Cd(`toggle`,e),Cd(`cancel`,e),Cd(`close`,e);break;case`iframe`:case`object`:Cd(`load`,e);break;case`video`:case`audio`:for(r=0;r<bd.length;r++)Cd(bd[r],e);break;case`image`:Cd(`error`,e),Cd(`load`,e);break;case`details`:Cd(`toggle`,e);break;case`embed`:case`source`:case`link`:Cd(`error`,e),Cd(`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:Ld(e,t,u,r,n,null)}return;default:if(Lt(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&Rd(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&Ld(e,t,c,r,n,null))}function Bd(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)||Ld(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&&Ld(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)||Ld(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&&Ld(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:Ld(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&&Ld(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:Ld(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:Ld(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)&&Ld(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:Ld(e,t,u,p,r,m)}return;default:if(Lt(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&Rd(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||Rd(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&Ld(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||Ld(e,t,f,p,r,m)}function Vd(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function Hd(){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&&Vd(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&&Vd(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 Ud=null,Wd=null;function Gd(e){return e.nodeType===9?e:e.ownerDocument}function Kd(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 qd(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 Jd(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 Yd=null;function Xd(){var e=window.event;return e&&e.type===`popstate`?e===Yd?!1:(Yd=e,!0):(Yd=null,!1)}var Zd=typeof setTimeout==`function`?setTimeout:void 0,Qd=typeof clearTimeout==`function`?clearTimeout:void 0,$d=typeof Promise==`function`?Promise:void 0,ef=typeof queueMicrotask==`function`?queueMicrotask:$d===void 0?Zd:function(e){return $d.resolve(null).then(e).catch(tf)};function tf(e){setTimeout(function(){throw e})}function nf(e){return e===`head`}function rf(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),Lp(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)_f(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,_f(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[nt]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&_f(e.ownerDocument.body);n=i}while(n);Lp(t)}function af(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 of(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`:of(n),rt(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function J(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[nt])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=ff(e.nextSibling),e===null)break}return null}function sf(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=ff(e.nextSibling),e===null))return null;return e}function cf(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=ff(e.nextSibling),e===null))return null;return e}function lf(e){return e.data===`$?`||e.data===`$~`}function uf(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function df(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 ff(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 pf=null;function mf(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return ff(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function hf(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 gf(e,t,n){switch(t=Gd(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 _f(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);rt(e)}var vf=new Map,yf=new Set;function bf(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var xf=P.d;P.d={f:Sf,r:Cf,D:Ef,C:Df,L:Of,m:kf,X:jf,S:Af,M:Mf};function Sf(){var e=xf.f(),t=Su();return e||t}function Cf(e){var t=at(e);t!==null&&t.tag===5&&t.type===`form`?bs(t):xf.r(e)}var wf=typeof document>`u`?null:document;function Tf(e,t,n){var r=wf;if(r&&typeof t==`string`&&t){var i=Et(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),yf.has(i)||(yf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),zd(t,`link`,e),ct(t),r.head.appendChild(t)))}}function Ef(e){xf.D(e),Tf(`dns-prefetch`,e,null)}function Df(e,t){xf.C(e,t),Tf(`preconnect`,e,t)}function Of(e,t,n){xf.L(e,t,n);var r=wf;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=Pf(e);break;case`script`:a=Rf(e)}vf.has(a)||(e=f({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),vf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Ff(a))||t===`script`&&r.querySelector(zf(a))||(t=r.createElement(`link`),zd(t,`link`,e),ct(t),r.head.appendChild(t)))}}function kf(e,t){xf.m(e,t);var n=wf;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=Rf(e)}if(!vf.has(a)&&(e=f({rel:`modulepreload`,href:e},t),vf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(zf(a)))return}r=n.createElement(`link`),zd(r,`link`,e),ct(r),n.head.appendChild(r)}}}function Af(e,t,n){xf.S(e,t,n);var r=wf;if(r&&e){var i=st(r).hoistableStyles,a=Pf(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Ff(a)))s.loading=5;else{e=f({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=vf.get(a))&&Hf(e,n);var c=o=r.createElement(`link`);ct(c),zd(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,Vf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function jf(e,t){xf.X(e,t);var n=wf;if(n&&e){var r=st(n).hoistableScripts,i=Rf(e),a=r.get(i);a||(a=n.querySelector(zf(i)),a||(e=f({src:e,async:!0},t),(t=vf.get(i))&&Uf(e,t),a=n.createElement(`script`),ct(a),zd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Mf(e,t){xf.M(e,t);var n=wf;if(n&&e){var r=st(n).hoistableScripts,i=Rf(e),a=r.get(i);a||(a=n.querySelector(zf(i)),a||(e=f({src:e,async:!0,type:`module`},t),(t=vf.get(i))&&Uf(e,t),a=n.createElement(`script`),ct(a),zd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Nf(e,t,n,r){var a=(a=U.current)?bf(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=Pf(n.href),n=st(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=Pf(n.href);var o=st(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(Ff(e)))&&!o._p&&(s.instance=o,s.state.loading=5),vf.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},vf.set(e,n),o||Lf(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=Rf(n),n=st(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 Pf(e){return`href="`+Et(e)+`"`}function Ff(e){return`link[rel="stylesheet"][`+e+`]`}function If(e){return f({},e,{"data-precedence":e.precedence,precedence:null})}function Lf(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}),zd(t,`link`,n),ct(t),e.head.appendChild(t))}function Rf(e){return`[src="`+Et(e)+`"]`}function zf(e){return`script[async]`+e}function Bf(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,ct(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`),ct(r),zd(r,`style`,a),Vf(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Pf(n.href);var o=e.querySelector(Ff(a));if(o)return t.state.loading|=4,t.instance=o,ct(o),o;r=If(n),(a=vf.get(a))&&Hf(r,a),o=(e.ownerDocument||e).createElement(`link`),ct(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),zd(o,`link`,r),t.state.loading|=4,Vf(o,n.precedence,e),t.instance=o;case`script`:return o=Rf(n.src),(a=e.querySelector(zf(o)))?(t.instance=a,ct(a),a):(r=n,(a=vf.get(o))&&(r=f({},n),Uf(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),ct(a),zd(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,Vf(r,n.precedence,e));return t.instance}function Vf(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 Hf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Uf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Wf=null;function Gf(e,t,n){if(Wf===null){var r=new Map,i=Wf=new Map;i.set(n,r)}else i=Wf,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[nt]||a[Ye]||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 Kf(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function qf(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 Jf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Yf(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=Pf(r.href),a=t.querySelector(Ff(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=Qf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,ct(a);return}a=t.ownerDocument||t,r=If(r),(i=vf.get(i))&&Hf(r,i),a=a.createElement(`link`),ct(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),zd(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=Qf.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var Xf=0;function Zf(e,t){return e.stylesheets&&e.count===0&&ep(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&ep(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&Xf===0&&(Xf=62500*Hd());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ep(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>Xf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Qf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ep(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var $f=null;function ep(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,$f=new Map,t.forEach(tp,e),$f=null,Qf.call(e))}function tp(e,t){if(!(t.state.loading&4)){var n=$f.get(e);if(n)var r=n.get(null);else{n=new Map,$f.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=Qf.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 np={$$typeof:b,Provider:null,Consumer:null,_currentValue:F,_currentValue2:F,_threadCount:0};function rp(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=Re(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Re(0),this.hiddenUpdates=Re(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 ip(e,t,n,r,i,a,o,s,c,l,u,d){return e=new rp(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 ap(e){return e?(e=Jr,e):Jr}function op(e,t,n,r,i,a){i=ap(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&&(_u(n,e,t),Pa(n,e,t))}function sp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function cp(e,t){sp(e,t),(e=e.alternate)&&sp(e,t)}function lp(e){if(e.tag===13||e.tag===31){var t=Gr(e,67108864);t!==null&&_u(t,e,67108864),cp(e,67108864)}}function up(e){if(e.tag===13||e.tag===31){var t=mu();t=We(t);var n=Gr(e,t);n!==null&&_u(n,e,t),cp(e,t)}}var dp=!0;function fp(e,t,n,r){var i=N.T;N.T=null;var a=P.p;try{P.p=2,mp(e,t,n,r)}finally{P.p=a,N.T=i}}function pp(e,t,n,r){var i=N.T;N.T=null;var a=P.p;try{P.p=8,mp(e,t,n,r)}finally{P.p=a,N.T=i}}function mp(e,t,n,r){if(dp){var i=hp(r);if(i===null)Od(e,t,r,gp,n),Dp(e,r);else if(kp(i,e,t,n,r))r.stopPropagation();else if(Dp(e,r),t&4&&-1<Ep.indexOf(e)){for(;i!==null;){var a=at(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}od(a),!(Fl&6)&&(nu=me()+500,sd(0,!1))}}break;case 31:case 13:s=Gr(a,2),s!==null&&_u(s,a,2),Su(),cp(a,2)}if(a=hp(r),a===null&&Od(e,t,r,gp,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Od(e,t,r,null,n)}}function hp(e){return e=Ut(e),_p(e)}var gp=null;function _p(e){if(gp=null,e=it(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 gp=e,null}function vp(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(he()){case ge:return 2;case _e:return 8;case ve:case ye:return 32;case be:return 268435456;default:return 32}default:return 32}}var yp=!1,bp=null,xp=null,Sp=null,Cp=new Map,wp=new Map,Tp=[],Ep=`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 Dp(e,t){switch(e){case`focusin`:case`focusout`:bp=null;break;case`dragenter`:case`dragleave`:xp=null;break;case`mouseover`:case`mouseout`:Sp=null;break;case`pointerover`:case`pointerout`:Cp.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:wp.delete(t.pointerId)}}function Op(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=at(t),t!==null&&lp(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function kp(e,t,n,r,i){switch(t){case`focusin`:return bp=Op(bp,e,t,n,r,i),!0;case`dragenter`:return xp=Op(xp,e,t,n,r,i),!0;case`mouseover`:return Sp=Op(Sp,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return Cp.set(a,Op(Cp.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,wp.set(a,Op(wp.get(a)||null,e,t,n,r,i)),!0}return!1}function Ap(e){var t=it(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,qe(e.priority,function(){up(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,qe(e.priority,function(){up(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 jp(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=hp(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=at(n),t!==null&&lp(t),e.blockedOn=n,!1;t.shift()}return!0}function Mp(e,t,n){jp(e)&&n.delete(t)}function Np(){yp=!1,bp!==null&&jp(bp)&&(bp=null),xp!==null&&jp(xp)&&(xp=null),Sp!==null&&jp(Sp)&&(Sp=null),Cp.forEach(Mp),wp.forEach(Mp)}function Pp(e,n){e.blockedOn===n&&(e.blockedOn=null,yp||(yp=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Np)))}var Fp=null;function Ip(e){Fp!==e&&(Fp=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Fp===e&&(Fp=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(_p(r||n)===null)continue;break}var a=at(n);a!==null&&(e.splice(t,3),t-=3,vs(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Lp(e){function t(t){return Pp(t,e)}bp!==null&&Pp(bp,e),xp!==null&&Pp(xp,e),Sp!==null&&Pp(Sp,e),Cp.forEach(t),wp.forEach(t);for(var n=0;n<Tp.length;n++){var r=Tp[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Tp.length&&(n=Tp[0],n.blockedOn===null);)Ap(n),n.blockedOn===null&&Tp.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[Xe]||null;if(typeof a==`function`)o||Ip(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[Xe]||null)s=o.formAction;else if(_p(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Ip(n)}}}function Rp(){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 zp(e){this._internalRoot=e}Bp.prototype.render=zp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;op(n,mu(),e,t,null,null)},Bp.prototype.unmount=zp.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;op(e.current,2,null,e,null,null),Su(),t[Ze]=null}};function Bp(e){this._internalRoot=e}Bp.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ke();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Tp.length&&t!==0&&t<Tp[n].priority;n++);Tp.splice(n,0,e),n===0&&Ap(e)}};var Vp=n.version;if(Vp!==`19.2.6`)throw Error(i(527,Vp,`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 Hp={bundleType:0,version:`19.2.6`,rendererPackageName:`react-dom`,currentDispatcherRef:N,reconcilerVersion:`19.2.6`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Up=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Up.isDisabled&&Up.supportsFiber)try{Ce=Up.inject(Hp),we=Up}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=ip(e,1,!1,null,null,n,r,null,o,s,c,Rp),e[Ze]=t.current,Ed(e),new zp(t)}})),of=xo(((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=af()})),J=Hu(gu(),1),sf=typeof window<`u`?J.useLayoutEffect:J.useEffect;function cf(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 lf(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 uf(e){let t=J.useRef(null);return J.useImperativeHandle(e,()=>t.current,[]),t}function df(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 ff=4,pf=5;function mf(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 hf(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=mf(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 gf(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=hf(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=yf(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=yf(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=bf(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=bf(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=bf(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=yf(n.fullPath??n.from);e.kind=pf,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=yf(n.fullPath??n.from);e.kind=ff,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)gf(e,t,r,s,i,a,o)}function _f(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 vf(e){if(e.pathless)for(let t of e.pathless)vf(t);if(e.static)for(let t of e.static.values())vf(t);if(e.staticInsensitive)for(let t of e.staticInsensitive.values())vf(t);if(e.dynamic?.length){e.dynamic.sort(_f);for(let t of e.dynamic)vf(t)}if(e.optional?.length){e.optional.sort(_f);for(let t of e.optional)vf(t)}if(e.wildcard?.length){e.wildcard.sort(_f);for(let t of e.wildcard)vf(t)}}function yf(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 bf(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 xf(e,t){let n=yf(`/`),r=new Uint16Array(6);for(let t of e)gf(!1,r,t,1,n,0);vf(n),t.masksTree=n,t.flatCache=df(1e3)}function Sf(e,t){e||=`/`;let n=t.flatCache.get(e);if(n)return n;let r=Df(e,t.masksTree);return t.flatCache.set(e,r),r}function Cf(e,t,n,r,i){e||=`/`,r||=`/`;let a=t?`case\0${e}`:e,o=i.singleCache.get(a);return o||(o=yf(`/`),gf(t,new Uint16Array(6),{from:e},1,o,0),i.singleCache.set(a,o)),Df(r,o,n)}function wf(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=Df(e,t.segmentTree,n)}catch(e){if(e instanceof URIError)a=null;else throw e}return a&&(a.branch=kf(a.route)),t.matchCache.set(r,a),a}function Tf(e){return e===`/`?e:e.replace(/\/{1,}$/,``)}function Ef(e,t=!1,n){let r=yf(e.fullPath),i=new Uint16Array(6),a={},o={},s=0;return gf(t,i,e,1,r,0,e=>{if(n?.(e,s),e.id in a&&Ge(),a[e.id]=e,s!==0&&e.path){let t=Tf(e.fullPath);(!o[t]||e.fullPath.endsWith(`/`))&&(o[t]=e)}s++}),vf(r),{processedTree:{segmentTree:r,singleCache:df(1e3),matchCache:df(1e3),flatCache:null,masksTree:null},routesById:a,routesByPath:o}}function Df(e,t,n=!1){let r=e.split(`/`),i=jf(e,r,t,n);if(!i)return null;let[a]=Of(e,r,i);return{route:i.node.route,rawParams:a}}function Of(e,t,n){let r=Af(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===ff)break;if(u.kind===pf){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 kf(e){let t=[e];for(;e.parentRoute;)e=e.parentRoute,t.push(e);return t.reverse(),t}function Af(e){let t=Array(e.depth+1);do t[e.depth]=e,e=e.parent;while(e);return t}function jf(e,t,n,r){if(e===`/`&&n.index)return{node:n.index,skipped:0};let i=!il(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&&!Ff(l,n))continue;if(i.parse){if(!Pf(e,t,n))continue;_=n.rawParams,g=n.extract}r&&i.route&&i.kind!==ff&&Ff(c,n)&&(c=n);let v=u===o;if(v&&(i.route&&(!a||i.kind===ff||i.kind===2)&&Ff(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&&(Pf(e,t,n)||(r=!1)),r){if(!m&&!h&&!d&&Nf(p,o))return n;Ff(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+Mf(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+Mf(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+Mf(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+Mf(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 Mf(e,t){return 2**(e-t-1)}function Nf(e,t){return e===2**(t-1)-1}function Pf(e,t,n){let r,i;try{[r,i]=Of(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 Ff(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===ff)>(e.node.kind===ff)||t.node.kind===ff==(e.node.kind===ff)&&t.depth>e.depth))):!0}function If(e){return Lf(e.filter(e=>e!==void 0).join(`/`))}function Lf(e){return e.replace(/\/{2,}/g,`/`)}function Rf(e){return e===`/`?e:e.replace(/^\/{1,}/,``)}function zf(e){let t=e.length;return t>1&&e[t-1]===`/`?e.replace(/\/{1,}$/,``):e}function Bf(e){return zf(Rf(e))}function Vf(e,t){return e?.endsWith(`/`)&&e!==`/`&&e!==`${t}/`?e.slice(0,-1):e}function Hf(e,t,n){return Vf(e,n)===Vf(t,n)}function Uf({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&&il(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&&(il(s)===``?n===`never`&&s.pop():n===`always`&&s.push(``));let c=Lf(s.join(`/`))||`/`;return o&&r&&r.set(o,c),c}function Wf(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 Gf(e,t,n){let r=t[e];return typeof r==`string`?e===`_splat`?/^[a-zA-Z0-9\-._~!/]*$/.test(r)?r:r.split(`/`).map(e=>qf(e,n)).join(`/`):qf(r,n):r}function Kf({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=hf(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=Gf(`_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=Gf(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=Gf(i,t,n)??``;l+=`/`+u+f+d;continue}}return e.endsWith(`/`)&&(l+=`/`),{usedParams:a,interpolatedPath:l||`/`,isMissingParams:i}}function qf(e,t){let n=encodeURIComponent(e);return t?.(n)??n}function Jf(e){return e?.isNotFound===!0}function Yf(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 Xf(e){return e?e===`false`?!1:e===`true`?!0:e*0==0&&+e+``===e?+e:e:``}function Zf(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]=Xf(r):Array.isArray(t)?t.push(Xf(r)):n[e]=[t,Xf(r)]}return n}var Qf=ep(JSON.parse),$f=tp(JSON.stringify,JSON.parse);function ep(e){return t=>{t[0]===`?`&&(t=t.substring(1));let n=Zf(t);for(let t in n){let r=n[t];if(typeof r==`string`)try{n[t]=e(r)}catch{}}return n}}function tp(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=Yf(e,r);return t?`?${t}`:``}}var np=`__root__`;function rp(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 ip(e){return e instanceof Response&&!!e.options}var ap=e=>{if(!e.rendered)return e.rendered=!0,e.onReady?.()},op=e=>e.stores.matchesId.get().some(t=>e.stores.matchStores.get(t)?.get()._forcePending),sp=(e,t)=>!!(e.preload&&!e.router.stores.matchStores.has(t)),cp=(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},lp=(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},up=(e,t,n)=>{if(!(!ip(n)&&!Jf(n)))throw ip(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:ip(n)?`redirected`:Jf(n)?`notFound`:r.status===`pending`?`success`:r.status,context:cp(e,t.index),isFetching:!1,error:n})),Jf(n)&&!n.routeId&&(n.routeId=t.routeId),t._nonReactive.loadPromise?.resolve()),ip(n)&&(e.rendered=!0,n.options._fromLocation=e.location,n.redirectHandled=!0,n=e.router.resolveRedirect(n)),n)},dp=(e,t)=>{let n=e.router.getMatch(t);return!!(!n||n._nonReactive.dehydrated)},fp=(e,t,n)=>{let r=cp(e,n);e.updateMatch(t,e=>({...e,context:r}))},pp=(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,up(e,e.router.getMatch(r),n);try{a.options.onError?.(n)}catch(t){n=t,up(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&&!ip(n)&&!Jf(n)&&(e.serialError??=n)},mp=(e,t,n,r)=>{if(r._nonReactive.pendingTimeout!==void 0)return;let i=n.options.pendingMs??e.router.options.defaultPendingMs;if(e.onReady&&!sp(e,t)&&(n.options.loader||n.options.beforeLoad||Tp(n))&&typeof i==`number`&&i!==1/0&&(n.options.pendingComponent??e.router.options?.defaultPendingComponent)){let t=setTimeout(()=>{ap(e)},i);r._nonReactive.pendingTimeout=t}},hp=(e,t,n)=>{let r=e.router.getMatch(t);if(!r._nonReactive.beforeLoadPromise&&!r._nonReactive.loaderPromise)return;mp(e,t,n,r);let i=()=>{let n=e.router.getMatch(t);n.preload&&(n.status===`redirected`||n.status===`notFound`)&&up(e,n,n.error)};return r._nonReactive.beforeLoadPromise?r._nonReactive.beforeLoadPromise.then(i):i()},gp=(e,t,n,r)=>{let i=e.router.getMatch(t),a=i._nonReactive.loadPromise;i._nonReactive.loadPromise=kt(()=>{a?.resolve(),a=void 0});let{paramsError:o,searchError:s}=i;o&&pp(e,n,o),s&&pp(e,n,s),mp(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=kt();let f={...cp(e,n,!1),...i.__routeContext},{search:p,params:m,cause:h}=i,g=sp(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}(ip(r)||Jf(r))&&(u(),pp(e,n,r)),e.router.batch(()=>{u(),e.updateMatch(t,e=>({...e,__beforeLoadContext:r})),d()})},y;try{if(y=r.options.beforeLoad(_),ku(y))return u(),y.catch(t=>{pp(e,n,t)}).then(v)}catch(t){u(),pp(e,n,t)}v(y)},_p=(e,t)=>{let{id:n,routeId:r}=e.matches[t],i=e.router.looseRoutesById[r],a=()=>s(),o=()=>gp(e,n,t,i),s=()=>{if(dp(e,n))return;let t=hp(e,n,i);return ku(t)?t.then(o):o()};return a()},vp=(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}))},yp=(e,t,n,r,i)=>{let a=t[r-1],{params:o,loaderDeps:s,abortController:c,cause:l}=e.router.getMatch(n),u=cp(e,r),d=sp(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}},bp=async(e,t,n,r,i)=>{try{let a=e.router.getMatch(n);try{wp(i);let o=i.options.loader,s=typeof o==`function`?o:o?.handler,c=s?.(yp(e,t,n,r,i)),l=!!s&&ku(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;up(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:cp(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:cp(e,r)}));return}let s=a._nonReactive.minPendingPromise;s&&await s,Jf(t)&&await i.options.notFoundComponent?.preload?.(),up(e,e.router.getMatch(n),t);try{i.options.onError?.(t)}catch(t){o=t,up(e,e.router.getMatch(n),t)}!ip(o)&&!Jf(o)&&await wp(i,[`errorComponent`]),e.updateMatch(n,t=>({...t,error:o,context:cp(e,r),status:`error`,isFetching:!1}))}}catch(t){let r=e.router.getMatch(n);r&&(r._nonReactive.loaderPromise=void 0),up(e,r,t)}},xp=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(yp(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 bp(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){ip(t)&&await e.router.navigate(t.options)}})()):g!==`success`||o?await bp(e,t,i,n,d):fp(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(dp(e,i)){if(!e.router.getMatch(i))return e.matches[n];fp(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=sp(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&&up(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=kt(),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 Sp(e){let t=e,n=[];op(t.router)&&ap(t);let r;for(let e=0;e<t.matches.length;e++){try{let n=_p(t,e);ku(n)&&await n}catch(e){if(ip(e))throw e;if(Jf(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?lp(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(xp(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(ip(e))throw e;Jf(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=lp(t,l);e===void 0&&Ge();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 wp(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 wp(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=vp(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=ap(t);if(ku(d)&&await d,l)throw l;if(t.serialError&&!t.preload&&!t.onReady)throw t.serialError;return t.matches}function Cp(e,t){let n=t.map(t=>e.options[t]?.preload?.()).filter(Boolean);if(n.length!==0)return Promise.all(n)}function wp(e,t=Ep){!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===Ep?(()=>{if(e._componentsPromise===void 0){let t=Cp(e,Ep);t?e._componentsPromise=t.then(()=>{e._componentsLoaded=!0,e._componentsPromise=void 0}):e._componentsLoaded=!0}return e._componentsPromise})():Cp(e,t);return e._lazyPromise?e._lazyPromise.then(n):n()}function Tp(e){for(let t of Ep)if(e.options[t]?.preload)return!0;return!1}var Ep=[`component`,`errorComponent`,`pendingComponent`,`notFoundComponent`];function Dp(e){return{input:({url:t})=>{for(let n of e)t=kp(n,t);return t},output:({url:t})=>{for(let n=e.length-1;n>=0;n--)t=Ap(e[n],t);return t}}}function Op(e){let t=Bf(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=If([`/`,t,e.pathname]),e)}}function kp(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 Ap(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 jp(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(()=>Mp(o,_.get())),x=r(()=>Mp(s,v.get())),S=r(()=>Mp(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=df(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){Np(e,o,_,n,i)}function j(e){Np(e,s,v,n,i)}function M(e){Np(e,c,y,n,i)}return k}function Mp(e,t){let n=[];for(let r of t){let t=e.get(r);t&&n.push(t.get())}return n}function Np(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)}zl(n.get(),a)||n.set(a)})}var Pp=`__TSR_index`,Fp=`popstate`,Ip=`beforeunload`;function Lp(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=Hp(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[Pp];i=Rp(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[Pp];i=Rp(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[Pp]!==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 Rp(e,t){t||={};let n=Up();return{...t,key:n,__TSR_key:n,[Pp]:e}}function zp(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??(()=>Hp(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){let e=Up();t.history.replaceState({[Pp]: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=Hp(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[Pp]-l.state[Pp],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=Lp({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(Ip,S,{capture:!0}),t.removeEventListener(Fp,x)},onBlocked:()=>{u&&l!==u&&(l=u)},getBlockers:a,setBlockers:o,notifyOnIndexChange:!1});return t.addEventListener(Ip,S,{capture:!0}),t.addEventListener(Fp,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 Bp(e){let t=e?.window??(typeof document<`u`?window:void 0);return zp({window:t,parseLocation:()=>{let e=t.location.hash.split(`#`).slice(1),n=e[0]??`/`,r=t.location.search,i=e.slice(1);return Hp(`${n}${r}${i.length===0?``:`#${i.join(`#`)}`}`,t.history.state)},createHref:e=>`${t.location.pathname}${t.location.search}#${e}`})}function Vp(e){let t=e.replace(/[\x00-\x1f\x7f]/g,``);return t.startsWith(`//`)&&(t=`/`+t.replace(/^\/+/,``)),t}function Hp(e,t){let n=Vp(e),r=n.indexOf(`#`),i=n.indexOf(`?`),a=Up();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||{[Pp]:0,key:a,__TSR_key:a}}}function Up(){return(Math.random()+1).toString(36).substring(7)}function Wp(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 Gp=new WeakMap,tee=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=Wf(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=zp()),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=df(1e3),e=this.buildRouteTree(),this.setRoutes(e)}if(!this.stores&&this.latestLocation){let e=this.getStoreConfig(this);this.batch=e.batch,this.stores=jp(ree(this.latestLocation),e),hee(this)}let a=!1,o=this.options.basepath??`/`,s=this.options.rewrite;if(r||n!==o||i!==s){this.basepath=o;let e=[],t=Bf(o);t&&t!==`/`&&e.push(Op({basepath:o})),s&&e.push(s),this.rewrite=e.length===0?void 0:e.length===1?e[0]:Dp(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=Ef(this.routeTree,this.options.caseSensitive,(e,t)=>{e.init({originalIndex:t})});return this.options.routeMasks&&xf(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:oa(e).path,external:!1,searchStr:o,search:nu(t?.search,i),hash:oa(r.slice(1)).path,state:Gs(t?.state,a)}}let o=new URL(i,this.origin),s=kp(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:oa(s.pathname).path,external:!!this.rewrite&&s.origin!==this.origin,searchStr:l,search:nu(t?.search,c),hash:oa(s.hash.slice(1)).path,state:Gs(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)=>Uf({base:e,to:t.includes(`//`)?Lf(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=>iee({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,r=this.matchRoutesLightweight(n);t.from;let a=t.unsafeRelative===`path`?n.pathname:t.from??r.fullPath,o=t.to?`${t.to}`:void 0,s=r.search,c=Object.assign(Object.create(null),r.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,dr(t.params,c)),f=this.routesByPath[zf(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&&i(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:oa(Kf({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,qp(t.options.validateSearch,{...e,...h}))}catch{}}),h=e}h=aee({search:h,dest:t,destRoutes:p,_includeValidateSearch:e._includeValidateSearch}),h=nu(s,h);let g=this.options.stringifySearch(h),_=t.hash===!0?n.hash:t.hash?dr(t.hash,n.hash):void 0,v=_?`#${_}`:``,y=t.state===!0?n.state:t.state?dr(t.state,n.state):{};y=Gs(n.state,y);let b=`${m}${g}${v}`,x,S,C=!1;if(this.rewrite){let e=new URL(b,this.origin),t=Ap(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=va(b),S=x;return{publicHref:S,href:x,pathname:m,search:h,searchStr:g,state:y,hash:_??``,external:C,unmaskOnReload:t.unmaskOnReload}},n=(n={},r)=>{let i=t(n),a=r?t(r):void 0;if(!a){let n=Object.create(null);if(this.options.routeMasks){let o=Sf(i.pathname,this.processedTree);if(o){Object.assign(n,o.rawParams);let{from:i,params:s,...c}=o.route,l=s===!1||s===null?Object.create(null):(s??!0)===!0?n:Object.assign(n,dr(s,n));r={from:e.from,...c,params:l},a=t(r)}}}return a&&(i.maskedLocation=a),i};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=qi(n.state,this.latestLocation.state);return e.forEach(e=>{delete n.state[e]}),t},a=zf(this.latestLocation.href)===zf(n.href),o=this.commitLocationPromise;if(this.commitLocationPromise=kt(()=>{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=Hp(a,{__TSR_index:e?t:t+1}),r=new URL(n.pathname,this.origin);o.to=kp(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(Ko(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?Gp.set(this.latestLocation,t):Gp.delete(this.latestLocation);let n=this.latestLocation,r=Wp(n,this.stores.resolvedLocation.get());this.stores.redirect.get()||this.emit({type:`onBeforeNavigate`,...r}),this.emit({type:`onBeforeLoad`,...r}),await Sp({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){ip(e)?(n=e,this.navigate({...n.options,replace:!0,ignoreBlocker:!0})):Jf(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(Wp(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&&Ko(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=wp,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 Sp({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(ip(e))return e.options.reloadDocument?void 0:await this.preloadRoute({...e.options,_fromLocation:t});Jf(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=Cf(r.pathname,t?.caseSensitive??!1,t?.fuzzy??!1,i.pathname,this.processedTree);return!a||e.params&&!qi(a.rawParams,e.params,{partial:!0})?!1:t?.includeSearch??!0?qi(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??$f,parseSearch:e.parseSearch??Qf,protocolAllowlist:e.protocolAllowlist??Vt}),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=kf(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[`**`]:zf(e.pathname))&&(this.options.notFoundRoute?a=[...a,this.options.notFoundRoute]:o=!0);let s=o?see(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=qp(r.options.validateSearch,{...n})??void 0;u={...n,...e},d={...i,...e},f=void 0}catch(e){let r=e;if(e instanceof Kp||(r=new Kp(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}=Kf({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{cee(r,b)}catch(e){if(x=Jf(e)||ip(e)?e:new nee(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:nu(y?y.search:v.search,u),_strictSearch:d};else{let e=r.options.loader||r.options.beforeLoad||r.lazyFn||Tp(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?nu(y.search,u):u,_strictSearch:d,searchError:void 0,status:e,isFetching:!1,error:void 0,paramsError:x,__routeContext:void 0,_nonReactive:{loadPromise:kt()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:S,loaderDeps:y?Gs(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?nu(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=il(t),i={...e.search};for(let e of t)try{Object.assign(i,qp(e.options.validateSearch,i))}catch{}let a=il(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{cee(n,e)}catch{}c=e}return{matchedRoutes:t,fullPath:r.fullPath,search:i,params:c}}},Kp=class extends Error{},nee=class extends Error{};function ree(e){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:`idle`,resolvedLocation:void 0,location:e,matches:[],statusCode:200}}function qp(e,t){if(e==null)return{};if(`~standard`in e){let n=e[`~standard`].validate(t);if(n instanceof Promise)throw new Kp(`Async validation not supported`);if(n.issues)throw new Kp(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 iee({pathname:e,routesById:t,processedTree:n}){let r=Object.create(null),i=zf(e),a,o=wf(i,n,!0);return o&&(a=o.route,Object.assign(r,o.rawParams)),{matchedRoutes:o?.branch||[t.__root__],routeParams:r,foundRoute:a}}function aee({search:e,dest:t,destRoutes:n,_includeValidateSearch:r}){return oee(n)(e,t,r??!1)}function oee(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,...qp(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:dr(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 see(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 np}function cee(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 lee(){try{return sessionStorage}catch{return}}var uee=`tsr-scroll-restoration-v1_3`,Jp=lee();function dee(){try{return JSON.parse(Jp?.getItem(`tsr-scroll-restoration-v1_3`)||`{}`)}catch{return{}}}function fee(){try{Jp?.setItem(uee,JSON.stringify(Yp))}catch{}}var Yp=dee(),Xp=`data-scroll-restoration-id`,pee=e=>e.state.__TSR_key||e.href;function mee(e){let t=e.getAttribute(Xp);if(t)return`[${Xp}="${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 Zp=!1,Qp=`window`;function $p(e){try{return typeof e==`function`?e():document.querySelector(e)}catch{}}function em(e){let t=[];for(let n of e){if(n===Qp)continue;let e=$p(n);e&&t.push(e)}return t}function hee(e,t){if((t??e.options.scrollRestoration)&&(e.isScrollRestoring=!0),e.isScrollRestorationSetup)return;e.isScrollRestorationSetup=!0,Zp=!1;let n=e.options.getScrollRestorationKey||pee,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(!(Zp||!e.isScrollRestoring))if(t.target===document)i(Qp,scrollX,scrollY);else{let e=t.target;i(e,e.scrollLeft,e.scrollTop)}},o=t=>{if(!e.isScrollRestoring)return;let n=Yp[t]||={};for(let[e,t]of r)e===Qp?n[Qp]=t:e.isConnected&&(n[mee(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())),fee()}),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=Yp[l];if(e){let t=Yp[c];for(let n in e){if(n===Qp){if(o)continue}else{let e=$p(n);if(!e||o&&a&&(s??=em(a),s.includes(e)))continue}t||=Yp[c]={},t[n]??=e[n]}}}Zp=!0;try{let n=t.toLocation.hash,r=t.toLocation.state.__hashScrollIntoViewOptions??!0,l=!1;if(o){let o=Gp.get(t.toLocation),u=n&&r&&(o===`PUSH`||o===`REPLACE`),d=e.isScrollRestoring?Yp[c]:void 0;if(d)for(let e in d){let{scrollX:t,scrollY:n}=d[e];if(e===Qp){if(u)continue;scrollTo({top:n,left:t,behavior:i}),l=!0}else{let r=$p(e);r&&(r.scrollLeft=t,r.scrollTop=n)}}if(!l&&!n){let e={top:0,left:0,behavior:i};if(scrollTo(e),a){s??=em(a);for(let t of s)t.scrollTo(e)}}}!l&&n&&r&&document.getElementById(n)?.scrollIntoView(r)}finally{Zp=!1}})}var gee=`Error preloading route! ☝️`,tm=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=np:this.parentRoute||Ge();let r=n?np:t?.path;r&&r!==`/`&&(r=Rf(r));let i=t?.id||r,a=n?np:If([this.parentRoute.id===`__root__`?``:this.parentRoute.id,i]);r===`__root__`&&(r=`/`),a!==`__root__`&&(a=If([`/`,a]));let o=a===`__root__`?`/`:If([this.parentRoute.fullPath,r]);this._path=r,this._id=a,this._fullPath=o,this._to=zf(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=>rp({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.`)}},_ee=class extends tm{constructor(e){super(e)}},Y=Pi();function nm(e){let t=e.errorComponent??rm;return(0,Y.jsx)(vee,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:n,reset:r})=>n?J.createElement(t,{error:n,reset:r}):e.children})}var vee=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 rm({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 yee({children:e,fallback:t=null}){return im()?(0,Y.jsx)(J.Fragment,{children:e}):(0,Y.jsx)(J.Fragment,{children:t})}function im(){return J.useSyncExternalStore(bee,()=>!0,()=>!1)}function bee(){return()=>{}}var am=(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))(am||{});function xee({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 See(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 om=[],sm=0,{link:cm,unlink:Cee,propagate:wee,checkDirty:lm,shallowPropagate:um}=xee({update(e){return e._update()},notify(e){om[fm++]=e,e.flags&=~am.Watching},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=am.Mutable|am.Dirty,gm(e))}}),dm=0,fm=0,pm,mm=0;function hm(e){try{++mm,e()}finally{--mm||_m()}}function gm(e){let t=e.depsTail,n=t===void 0?e.deps:t.nextDep;for(;n!==void 0;)n=Cee(n,e)}function _m(){if(!(mm>0)){for(;dm<fm;){let e=om[dm];om[dm++]=void 0,e.notify()}dm=0,fm=0}}function vm(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?am.None:am.Mutable,get(){return pm!==void 0&&cm(i,pm,sm),i._snapshot},subscribe(e){let t=See(e),n={current:!1},r=Tee(()=>{i.get(),n.current?t.next?.(i._snapshot):n.current=!0});return{unsubscribe:()=>{r.stop()}}},_update(e){let a=pm,o=t?.compare??Object.is;if(n)pm=i,++sm,i.depsTail=void 0;else if(e===void 0)return!1;n&&(i.flags=am.Mutable|am.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{pm=a,n&&(i.flags&=~am.RecursedCheck),gm(i)}}};return n?(i.flags=am.Mutable|am.Dirty,i.get=function(){let e=i.flags;if(e&am.Dirty||e&am.Pending&&lm(i.deps,i)){if(i._update()){let e=i.subs;e!==void 0&&um(e)}}else e&am.Pending&&(i.flags=e&~am.Pending);return pm!==void 0&&cm(i,pm,sm),i._snapshot}):i.set=function(e){if(i._update(e)){let e=i.subs;e!==void 0&&(wee(e),um(e),_m())}},i}function Tee(e){let t=()=>{let t=pm;pm=n,++sm,n.depsTail=void 0,n.flags=am.Watching|am.RecursedCheck;try{return e()}finally{pm=t,n.flags&=~am.RecursedCheck,gm(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:am.Watching|am.RecursedCheck,notify(){let e=this.flags;e&am.Dirty||e&am.Pending&&lm(this.deps,this)?t():this.flags=am.Watching},stop(){this.flags=am.None,this.depsTail=void 0,gm(this)}};return t(),n}function ym(e){return $t({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function bm(e){let{select:t,...n}=e;return $t({...n,select:e=>t?t(e.loaderDeps):e.loaderDeps})}function Eee(e){return $t({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function xm(e){let t=it();return J.useCallback(n=>t.navigate({...n,from:n.from??e?.from}),[e?.from,t])}function Dee(e){return $t({...e,select:t=>e.select?e.select(t.context):t.context})}var Sm=Hu(Ja(),1);function Oee(e,t){let n=it(),r=uf(t),{activeProps:i,inactiveProps:a,activeOptions:o,to:s,preload:c,preloadDelay:l,preloadIntentProximity:u,hashScrollIntoView:d,replace:f,startTransition:p,resetScroll:m,viewTransition:h,children:g,target:_,disabled:v,style:y,className:b,onClick:x,onBlur:S,onFocus:C,onMouseEnter:w,onMouseLeave:T,onTouchStart:E,ignoreBlocker:D,params:O,search:k,hash:A,state:j,mask:M,reloadDocument:N,unsafeRelative:P,from:F,_fromLocation:I,...L}=e,R=im(),z=J.useMemo(()=>e,[n,e.from,e._fromLocation,e.hash,e.to,e.search,e.params,e.state,e.mask,e.unsafeRelative]),B=wr(n.stores.location,e=>e,(e,t)=>e.href===t.href),V=J.useMemo(()=>{let e={_fromLocation:B,...z};return n.buildLocation(e)},[n,B,z]),H=V.maskedLocation?V.maskedLocation.publicHref:V.publicHref,U=V.maskedLocation?V.maskedLocation.external:V.external,W=J.useMemo(()=>Pee(H,U,n.history,v),[v,U,H,n.history]),G=J.useMemo(()=>{if(W?.external)return Ko(W.href,n.protocolAllowlist)?void 0:W.href;if(!Fee(s)&&!(typeof s!=`string`||s.indexOf(`:`)===-1))try{return new URL(s),Ko(s,n.protocolAllowlist)?void 0:s}catch{}},[s,W,n.protocolAllowlist]),ee=J.useMemo(()=>{if(G)return!1;if(o?.exact){if(!Hf(B.pathname,V.pathname,n.basepath))return!1}else{let e=Vf(B.pathname,n.basepath),t=Vf(V.pathname,n.basepath);if(!(e.startsWith(t)&&(e.length===t.length||e[t.length]===`/`)))return!1}return(o?.includeSearch??!0)&&!qi(B.search,V.search,{partial:!o?.exact,ignoreUndefined:!o?.explicitUndefined})?!1:o?.includeHash?R&&B.hash===V.hash:!0},[o?.exact,o?.explicitUndefined,o?.includeHash,o?.includeSearch,B,G,R,V.hash,V.pathname,V.search,n.basepath]),te=ee?dr(i,{})??kee:Cm,ne=ee?Cm:dr(a,{})??Cm,K=[b,te.className,ne.className].filter(Boolean).join(` `),re=(y||te.style||ne.style)&&{...y,...te.style,...ne.style},[ie,ae]=J.useState(!1),oe=J.useRef(!1),se=e.reloadDocument||G?!1:c??n.options.defaultPreload,ce=l??n.options.defaultPreloadDelay??0,le=J.useCallback(()=>{n.preloadRoute({...z,_builtLocation:V}).catch(e=>{console.warn(e),console.warn(gee)})},[n,z,V]);lf(r,J.useCallback(e=>{e?.isIntersecting&&le()},[le]),Nee,{disabled:!!v||se!==`viewport`}),J.useEffect(()=>{oe.current||!v&&se===`render`&&(le(),oe.current=!0)},[v,le,se]);let ue=e=>{let t=e.currentTarget.getAttribute(`target`),r=_===void 0?t:_;if(!v&&!Iee(e)&&!e.defaultPrevented&&(!r||r===`_self`)&&e.button===0){e.preventDefault(),(0,Sm.flushSync)(()=>{ae(!0)});let t=n.subscribe(`onResolved`,()=>{t(),ae(!1)});n.navigate({...z,replace:f,resetScroll:m,hashScrollIntoView:d,startTransition:p,viewTransition:h,ignoreBlocker:D})}};if(G)return{...L,ref:r,href:G,...g&&{children:g},..._&&{target:_},...v&&{disabled:v},...y&&{style:y},...b&&{className:b},...x&&{onClick:x},...S&&{onBlur:S},...C&&{onFocus:C},...w&&{onMouseEnter:w},...T&&{onMouseLeave:T},...E&&{onTouchStart:E}};let de=e=>{if(v||se!==`intent`)return;if(!ce){le();return}let t=e.currentTarget;if(wm.has(t))return;let n=setTimeout(()=>{wm.delete(t),le()},ce);wm.set(t,n)},fe=e=>{v||se!==`intent`||le()},pe=e=>{if(v||!se||!ce)return;let t=e.currentTarget,n=wm.get(t);n&&(clearTimeout(n),wm.delete(t))};return{...L,...te,...ne,href:W?.href,ref:r,onClick:Tm([x,ue]),onBlur:Tm([S,pe]),onFocus:Tm([C,de]),onMouseEnter:Tm([w,de]),onMouseLeave:Tm([T,pe]),onTouchStart:Tm([E,fe]),disabled:!!v,target:_,...re&&{style:re},...K&&{className:K},...v&&Aee,...ee&&jee,...R&&ie&&Mee}}var Cm={},kee={className:`active`},Aee={role:`link`,"aria-disabled":!0},jee={"data-status":`active`,"aria-current":`page`},Mee={"data-transitioning":`transitioning`},wm=new WeakMap,Nee={rootMargin:`100px`},Tm=e=>t=>{for(let n of e)if(n){if(t.defaultPrevented)return;n(t)}};function Pee(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 Em=J.forwardRef((e,t)=>{let{_asChild:n,...r}=e,{type:i,...a}=Oee(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 Iee(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}var Lee=class extends tm{constructor(e){super(e),this.useMatch=e=>$t({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>Dee({...e,from:this.id}),this.useSearch=e=>Eee({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>_t({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>bm({...e,from:this.id}),this.useLoaderData=e=>ym({...e,from:this.id}),this.useNavigate=()=>xm({from:this.fullPath}),this.Link=J.forwardRef((e,t)=>(0,Y.jsx)(Em,{ref:t,from:this.fullPath,...e}))}};function Ree(e){return new Lee(e)}var zee=class extends _ee{constructor(e){super(e),this.useMatch=e=>$t({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>Dee({...e,from:this.id}),this.useSearch=e=>Eee({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>_t({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>bm({...e,from:this.id}),this.useLoaderData=e=>ym({...e,from:this.id}),this.useNavigate=()=>xm({from:this.fullPath}),this.Link=J.forwardRef((e,t)=>(0,Y.jsx)(Em,{ref:t,from:this.fullPath,...e}))}};function Bee(e){return new zee(e)}function Dm(e){return new Vee(e,{silent:!0}).createRoute}var Vee=class{constructor(e,t){this.path=e,this.createRoute=e=>{let t=Ree(e);return t.isRoot=!1,t},this.silent=t?.silent}};function Hee(e){let t=it(),n=`not-found-${wr(t.stores.location,e=>e.pathname)}-${wr(t.stores.status,e=>e)}`;return(0,Y.jsx)(nm,{getResetKey:()=>n,onCatch:(t,n)=>{if(Jf(t))e.onCatch?.(t,n);else throw t},errorComponent:({error:t})=>{if(Jf(t))return e.fallback?.(t);throw t},children:e.children})}function Uee(){return(0,Y.jsx)(`p`,{children:`Not Found`})}function Om(e){return(0,Y.jsx)(Y.Fragment,{children:e.children})}function km(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)(Uee,{})}var Am=J.memo(function({matchId:e}){let t=it(),n=t.stores.matchStores.get(e);n||Ge();let r=wr(t.stores.loadedAt,e=>e),i=wr(n,e=>e);return(0,Y.jsx)(Wee,{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 Wee({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:Om,f=s?nm:Om,p=l?Hee:Om;return(0,Y.jsxs)(i.isRoot?i.options.shellComponent??Om:Om,{children:[(0,Y.jsx)(xi.Provider,{value:t,children:(0,Y.jsx)(d,{fallback:o,children:(0,Y.jsx)(f,{getResetKey:()=>n,errorComponent:s||rm,onCatch:(e,t)=>{if(Jf(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)(yee,{fallback:o,children:(0,Y.jsx)(jm,{matchId:t})}):(0,Y.jsx)(jm,{matchId:t})})})})}),r.parentRouteId===`__root__`?(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(Gee,{resetKey:n}),(e.options.scrollRestoration,null)]}):null]})}function Gee({resetKey:e}){let t=it(),n=J.useRef(void 0);return sf(()=>{let e=t.latestLocation.href;(n.current===void 0||n.current!==e)&&(t.emit({type:`onRendered`,...Wp(t.stores.location.get(),t.stores.resolvedLocation.get())}),n.current=e)},[t.latestLocation.state.__TSR_key,e,t]),null}var jm=J.memo(function({matchId:e}){let t=it(),n=(e,n)=>t.getMatch(e.id)?._nonReactive[n]??e._nonReactive[n],r=t.stores.matchStores.get(e);r||Ge();let i=wr(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)(Mm,{})},[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=kt();n._nonReactive.minPendingPromise=t,setTimeout(()=>{t.resolve(),n._nonReactive.minPendingPromise=void 0},e)}}throw n(i,`loadPromise`)}if(i.status===`notFound`)return Jf(i.error)||Ge(),km(t,o,i.error);if(i.status===`redirected`)throw ip(i.error)||Ge(),n(i,`loadPromise`);if(i.status===`error`)throw i.error;return c}),Mm=J.memo(function(){let e=it(),t=J.useContext(xi),n,r=!1,i;{let a=t?e.stores.matchStores.get(t):void 0;[n,r]=wr(a,e=>[e?.routeId,e?.globalNotFound??!1]),i=wr(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||Ge(),km(e,a,void 0);if(!i)return null;let s=(0,Y.jsx)(Am,{matchId:i});return n===`__root__`?(0,Y.jsx)(J.Suspense,{fallback:o,children:s}):s});function Kee(){let e=it(),t=J.useRef({router:e,mounted:!1}),[n,r]=J.useState(!1),i=wr(e.stores.isLoading,e=>e),a=wr(e.stores.hasPending,e=>e),o=cf(i),s=i||n||a,c=cf(s),l=i||a,u=cf(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 zf(e.latestLocation.publicHref)!==zf(n.publicHref)&&e.commitLocation({...n,replace:!0}),()=>{t()}},[e,e.history]),sf(()=>{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]),sf(()=>{o&&!i&&e.emit({type:`onLoad`,...Wp(e.stores.location.get(),e.stores.resolvedLocation.get())})},[o,e,i]),sf(()=>{u&&!l&&e.emit({type:`onBeforeRouteMount`,...Wp(e.stores.location.get(),e.stores.resolvedLocation.get())})},[l,u,e]),sf(()=>{if(c&&!s){let t=Wp(e.stores.location.get(),e.stores.resolvedLocation.get());e.emit({type:`onResolved`,...t}),hm(()=>{e.stores.status.set(`idle`),e.stores.resolvedLocation.set(e.stores.location.get())})}},[s,c,e]),null}function qee(){let e=it(),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?Om:J.Suspense,{fallback:n,children:[(0,Y.jsx)(Kee,{}),(0,Y.jsx)(Jee,{})]});return e.options.InnerWrap?(0,Y.jsx)(e.options.InnerWrap,{children:r}):r}function Jee(){let e=it(),t=wr(e.stores.firstId,e=>e),n=wr(e.stores.loadedAt,e=>e),r=t?(0,Y.jsx)(Am,{matchId:t}):null;return(0,Y.jsx)(xi.Provider,{value:t,children:e.options.disableGlobalCatchBoundary?r:(0,Y.jsx)(nm,{getResetKey:()=>n,errorComponent:rm,onCatch:void 0,children:r})})}var Yee=e=>({createMutableStore:vm,createReadonlyStore:vm,batch:hm}),Xee=e=>new Zee(e),Zee=class extends tee{constructor(e){super(e,Yee)}};function Qee({router:e,children:t,...n}){i(n)&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});let r=(0,Y.jsx)(ci.Provider,{value:e,children:t});return e.options.Wrap?(0,Y.jsx)(e.options.Wrap,{children:r}):r}function $ee({router:e,...t}){return(0,Y.jsx)(Qee,{router:e,...t,children:(0,Y.jsx)(qee,{})})}function Nm(e){let t=it(),n=(0,J.useRef)(void 0);return wr(t.stores.location,r=>{let i=e?.select?e.select(r):r;if(e?.structuralSharing??t.options.defaultStructuralSharing){let e=Gs(n.current,i);return n.current=e,e}return i})}function Pm(){return wr(it().stores.location,e=>e.state.__TSR_index!==0)}var ete=Hu(of(),1),Fm=typeof window<`u`&&(window.desktopBridge!==void 0||window.nativeApi!==void 0);function tte(e){return{_tag:`Value`,value:e}}function nte(e,t){return{_tag:`Record`,keys:e,value:t}}function rte(e,t){return{_tag:`Array`,length:e,value:t}}Tn(`SourceError`);var ite=Ru(`effect/ConfigProvider`,{defaultValue:()=>dte()}),ate={..._,toJSON(){return{_id:`ConfigProvider`}}},ote=e=>e;function ste(e,t){let n=Object.create(ate);return n.state=e,n.load=t,n}function cte(e,t){let n={_tag:`Source`,get:e,transform:t};return ste(n,e=>n.get(n.transform(e)))}function lte(e){return cte(e,ote)}function ute(e,t){return e===``&&!t?void 0:e}function dte(e){let t=e?.env??{APP_VERSION:`0.0.37`,BASE_URL:`/`,DEV:!1,MODE:`production`,PROD:!0,SSR:!1,TSS_INLINE_CSS_ENABLED:`false`,VITE_HOSTED_APP_CHANNEL:``,VITE_HOSTED_APP_URL:``,VITE_HTTP_URL:``,VITE_WS_URL:``},n=e?.preserveEmptyStrings===!0,r=fte(t);return lte(e=>Aa(mte(r,t,e,n)))}function fte(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 pte=/^(0|[1-9][0-9]*)$/;function mte(e,t,n,r){let i=n.map(String).join(`_`),a=ute(Object.hasOwn(t,i)?t[i]:void 0,r),o=hte(e,n),s=o?.children?Object.keys(o.children):[];return s.length===0?a===void 0?void 0:tte(a):s.every(e=>pte.test(e))?rte(Math.max(...s.map(e=>parseInt(e,10)))+1,a):nte(new Set(s),a)}function hte(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 Im=`~effect/Config`,gte=class{_tag=`ConfigError`;name=`ConfigError`;cause;constructor(e){this.cause=e}get message(){return this.cause.toString()}toString(){return`ConfigError(${this.message})`}},_te={...pc({label:`Config`,evaluate(e){return this.parse(e.getRef(ite))}}),[Im]:Im,toJSON(){return{_id:`Config`}}};function vte(e){let t=Object.create(_te);return t.parse=(t,n=[])=>e(t,n),t}var Lm=yr(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*Lm(e,[...t,i]);n!==void 0&&ec(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*Lm(e,[...t,i]));return r}}}),Rm=yr(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*Rm(r.type,t,[...n,e]);a!==void 0&&ec(i,e,a)}}if(e.indexSignatures.length>0&&r&&r._tag===`Record`)for(let a of e.indexSignatures){let e=jd(a.parameter);for(let o of r.keys)if(!Object.hasOwn(i,o)&&e(o)){let e=yield*Rm(a.type,t,[...n,o]);e!==void 0&&ec(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*Rm(a,t,[...n,r]))}return i}case`Union`:return yield*Lm(t,n);case`Suspend`:return yield*Rm(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 zm(e,t){let n=Wd(e),r=Wr(n),i=vd(n.ast),a=typeof t==`string`?[t]:t??[];return vte((e,t)=>{let n=[...t,...a];return Rm(i,e,n).pipe(ta(e=>r(e).pipe(Lu(e=>new ne(n.length>0?new T(n,e):e)))),Lu(e=>new gte(e)))})}var yte=(e,t,n)=>{let r=Xo(e,t);return xl([r,Nu.pipe(Ku(Xo(Nu,Nu),De(n)),Ku(r))])};function bte(e){return zm(Nu,e)}var X=Me(),Bm=`~effect/PartitionedSemaphore`,xte=e=>{let t=Math.max(0,e.permits);if(!Number.isFinite(t))return{[Bm]:Bm,capacity:t,available:Aa(t),take:()=>ld,release:()=>Aa(t),withPermits:()=>e=>e,withPermit:()=>e=>e,withPermitsIfAvailable:()=>e=>L(e)};let n=t,r=0,i=Pe(),a=i[Symbol.iterator](),o=e=>{for(;e>0;){if(r===0)return n=Math.min(t,n+e),n;let o=a.next();if(o.done&&(a=i[Symbol.iterator](),o=a.next(),o.done))return n;let s=o.value[1].values().next().value;s!==void 0&&(--s.permits,--r,s.permits===0&&s.resume(),--e)}return n},s=(e,a)=>a<=0?ld:ft(s=>{if(t<a){s(ko);return}if(n>=a){n-=a,s(ld);return}let c=a-n;n>0&&(n=0),r+=c;let l=ms(yt(i,e),()=>{let t=new Set;return Er(i,e,t),t}),u={permits:c,resume:()=>{d(),s(ld)}},d=()=>{l.delete(u),l.size===0&&tn(i,e)};return l.add(u),Fd(()=>{d(),r-=u.permits,o(a-u.permits)})}),c=(e,t)=>n=>{if(t<=0)return n;let r=s(e,t);return V(e=>pa(e(r),()=>Kl(e(n),Fd(()=>{o(t)}))))},l=e=>e<=0?!0:t<e||n<e?!1:(n-=e,!0);return{[Bm]:Bm,capacity:t,available:Fd(()=>n),take:s,release:e=>Fd(()=>o(e)),withPermits:c,withPermit:e=>c(e,1),withPermitsIfAvailable:e=>t=>e<=0?L(t):Xu(()=>l(e)?Kl(L(t),Fd(()=>{o(e)})):Aa(Lr()))}},Ste=/-nightly\.\d{8}\.\d+$/;function Cte(e){let t=e.trim().toLowerCase();return t===`nightly`||t===`dev`}function wte(e){return e.settingsHydrated?e.configuredByUser||e.enabled?e.enabled:Cte(e.stageLabel):!1}function Vm(e){return e.primaryServerVersion&&Ste.test(e.primaryServerVersion)?`Nightly`:e.fallbackStageLabel}function Tte(e){let t=Vm({primaryServerVersion:e.primaryServerVersion,fallbackStageLabel:e.fallbackStageLabel});return t===e.fallbackStageLabel?e.fallbackDisplayName:B({baseName:e.baseName,stageLabel:t})}function Ete(){return typeof window>`u`?null:window.desktopBridge?.getAppBranding?.()??null}var Hm=Ete(),Um=``,Wm=Um===`latest`||Um===`nightly`?Um:null,Gm=Wm===`nightly`?`Nightly`:Wm===`latest`?`Latest`:null,Km=Hm?.baseName??`P4Code`,qm=Hm?.stageLabel??Gm??`Latest`,Jm=Hm?.displayName??B({baseName:Km,stageLabel:qm}),Ym=`0.0.37`,Dte=Ul(`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`}]]),Xm=Ul(`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`}]]),Ote=Ul(`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`}]]),Zm=Ul(`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`}]]),Qm=Ul(`arrow-down`,[[`path`,{d:`M12 5v14`,key:`s699le`}],[`path`,{d:`m19 12-7 7-7-7`,key:`1idqje`}]]),$m=Ul(`arrow-left`,[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]),kte=Ul(`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`}]]),eh=Ul(`arrow-up`,[[`path`,{d:`m5 12 7-7 7 7`,key:`hav0vg`}],[`path`,{d:`M12 19V5`,key:`x0mq9r`}]]),th=Ul(`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`}]]),nh=Ul(`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=Ul(`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`}]]),rh=Ul(`chevron-left`,[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]),ih=Ul(`chevrons-down-up`,[[`path`,{d:`m7 20 5-5 5 5`,key:`13a0gw`}],[`path`,{d:`m7 4 5 5 5-5`,key:`1kwcof`}]]),ah=Ul(`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`}]]),oh=Ul(`chevrons-up-down`,[[`path`,{d:`m7 15 5 5 5-5`,key:`1hf1tw`}],[`path`,{d:`m7 9 5-5 5 5`,key:`sgt6xg`}]]),sh=Ul(`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`}]]),jte=Ul(`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`}]]),ch=Ul(`circle-check`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),Mte=Ul(`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`}]]),Nte=Ul(`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`}]]),Pte=Ul(`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`}]]),Fte=Ul(`clock`,[[`path`,{d:`M12 6v6l4 2`,key:`mmk7yg`}],[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]]),lh=Ul(`cloud-upload`,[[`path`,{d:`M12 13v8`,key:`1l5pq0`}],[`path`,{d:`M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242`,key:`1pljnt`}],[`path`,{d:`m8 17 4-4 4 4`,key:`1quai1`}]]),uh=Ul(`cloud`,[[`path`,{d:`M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z`,key:`p7xjir`}]]),Ite=Ul(`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`}]]),dh=Ul(`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`}]]),Lte=Ul(`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`}]]),fh=Ul(`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`}]]),ph=Ul(`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`}]]),mh=Ul(`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`}]]),hh=Ul(`external-link`,[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`M10 14 21 3`,key:`gplh6r`}],[`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`,key:`a6xqqp`}]]),Rte=Ul(`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`}]]),gh=Ul(`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`}]]),zte=Ul(`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`}]]),_h=Ul(`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`}]]),Bte=Ul(`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`}]]),vh=Ul(`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`}]]),yh=Ul(`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`}]]),bh=Ul(`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`}]]),xh=Ul(`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`}]]),Sh=Ul(`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`}]]),Vte=Ul(`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`}]]),Ch=Ul(`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`}]]),wh=Ul(`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`}]]),Hte=Ul(`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`}]]),Ute=Ul(`git-branch-plus`,[[`path`,{d:`M6 3v12`,key:`qpgusn`}],[`path`,{d:`M18 9a3 3 0 1 0 0-6 3 3 0 0 0 0 6z`,key:`1d02ji`}],[`path`,{d:`M6 21a3 3 0 1 0 0-6 3 3 0 0 0 0 6z`,key:`chk6ph`}],[`path`,{d:`M15 6a9 9 0 0 0-9 9`,key:`or332x`}],[`path`,{d:`M18 15v6`,key:`9wciyi`}],[`path`,{d:`M21 18h-6`,key:`139f0c`}]]),Th=Ul(`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`}]]),Eh=Ul(`git-commit-horizontal`,[[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}],[`line`,{x1:`3`,x2:`9`,y1:`12`,y2:`12`,key:`1dyftd`}],[`line`,{x1:`15`,x2:`21`,y1:`12`,y2:`12`,key:`oup4p8`}]]),Dh=Ul(`git-pull-request`,[[`circle`,{cx:`18`,cy:`18`,r:`3`,key:`1xkwt0`}],[`circle`,{cx:`6`,cy:`6`,r:`3`,key:`1lh9wr`}],[`path`,{d:`M13 6h3a2 2 0 0 1 2 2v7`,key:`1yeb86`}],[`line`,{x1:`6`,x2:`6`,y1:`9`,y2:`21`,key:`rroup`}]]),Oh=Ul(`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`}]]),Wte=Ul(`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`}]]),Gte=Ul(`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`}]]),kh=Ul(`info`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 16v-4`,key:`1dtifu`}],[`path`,{d:`M12 8h.01`,key:`e9boi3`}]]),Kte=Ul(`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`}]]),qte=Ul(`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`}]]),Jte=Ul(`link`,[[`path`,{d:`M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71`,key:`1cjeqo`}],[`path`,{d:`M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71`,key:`19qd67`}]]),Yte=Ul(`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`}]]),Ah=Ul(`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`}]]),jh=Ul(`loader-circle`,[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]]),Mh=Ul(`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`}]]),Xte=Ul(`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`}]]),Nh=Ul(`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`}]]),Ph=Ul(`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`}]]),Fh=Ul(`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`}]]),Ih=Ul(`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`}]]),Lh=Ul(`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`}]]),Rh=Ul(`minus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}]]),zh=Ul(`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`}]]),Bh=Ul(`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`}]]),Vh=Ul(`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`}]]),Zte=Ul(`palette`,[[`path`,{d:`M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z`,key:`e79jfc`}],[`circle`,{cx:`13.5`,cy:`6.5`,r:`.5`,fill:`currentColor`,key:`1okk4w`}],[`circle`,{cx:`17.5`,cy:`10.5`,r:`.5`,fill:`currentColor`,key:`f64h9f`}],[`circle`,{cx:`6.5`,cy:`12.5`,r:`.5`,fill:`currentColor`,key:`qy21gx`}],[`circle`,{cx:`8.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`fotxhn`}]]),Qte=Ul(`panel-bottom`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M3 15h18`,key:`5xshup`}]]),$te=Ul(`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`}]]),ene=Ul(`panel-left`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}]]),Hh=Ul(`panel-right`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M15 3v18`,key:`14nvp0`}]]),Uh=Ul(`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`}]]),tne=Ul(`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`}]]),Wh=Ul(`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`}]]),nne=Ul(`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`}]]),rne=Ul(`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`}]]),Gh=Ul(`plus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]),ine=Ul(`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`}]]),Kh=Ul(`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`}]]),qh=Ul(`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`}]]),Jh=Ul(`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`}]]),Yh=Ul(`search`,[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]),Xh=Ul(`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`}]]),ane=Ul(`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`}]]),Zh=Ul(`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`}]]),Qh=Ul(`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`}]]),$h=Ul(`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`}]]),eg=Ul(`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`}]]),tg=Ul(`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`}]]),ng=Ul(`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`}]]),rg=Ul(`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`}]]),ig=Ul(`terminal`,[[`path`,{d:`M12 19h8`,key:`baeox8`}],[`path`,{d:`m4 17 6-6-6-6`,key:`1yngyt`}]]),ag=Ul(`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`}]]),og=Ul(`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`}]]),sg=Ul(`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`}]]),cg=Ul(`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`}]]),one=Ul(`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`}]]),lg=Ul(`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 sne(){let[,e]=J.useState({});return J.useCallback(()=>{e({})},[])}var cne=(0,J.createContext)(null);function lne(){return(0,J.useContext)(cne)?.defaultOptions??{}}var une=Yd();function ug(e,t=e=>e,n={}){let r=n.equal??dne;return(0,une.useSyncExternalStoreWithSelector)(e.subscribe,()=>e.state,()=>e.state,t,r)}function dne(e,t){if(Object.is(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(let[n,r]of e)if(!t.has(n)||!Object.is(r,t.get(n)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();let n=dg(e);if(n.length!==dg(t).length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!Object.is(e[n[r]],t[n[r]]))return!1;return!0}function dg(e){return Object.keys(e).concat(Object.getOwnPropertySymbols(e))}function fne(e,t,n=()=>({})){let r={...lne().debouncer,...t},[i]=(0,J.useState)(()=>{let t=new yo(e,r);return t.Subscribe=function(e){let n=ug(t.store,e.selector);return typeof e.children==`function`?e.children(n):e.children},t});i.fn=e,i.setOptions(r),(0,J.useEffect)(()=>()=>{i.cancel()},[i]);let a=ug(i.store,n);return(0,J.useMemo)(()=>({...i,state:a}),[i,a])}function pne(e,t,n){let[r,i]=(0,J.useState)(e),a=fne(i,t,n);return[r,a.maybeExecute,a]}function mne(e,t,n){let[r,i,a]=pne(e,t,n);return(0,J.useEffect)(()=>{i(e)},[e,i]),[r,a]}var hne=`\x1Bb`,gne=`\x1Bf`,_ne=``,vne=``,yne=``,bne={BracketLeft:[`[`],BracketRight:[`]`],Digit0:[`0`],Digit1:[`1`],Digit2:[`2`],Digit3:[`3`],Digit4:[`4`],Digit5:[`5`],Digit6:[`6`],Digit7:[`7`],Digit8:[`8`],Digit9:[`9`]};function fg(e){let t=e.toLowerCase();return t===`esc`?`escape`:t}function xne(e){let t=new Set([fg(e.key)]),n=e.code?.match(/^Key([A-Z])$/)?.[1];n&&t.add(n.toLowerCase());let r=e.code?bne[e.code]:void 0;if(!r)return t;for(let e of r)t.add(e);return t}function pg(e,t,n=navigator.platform){let r=sn(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 Sne(e,t,n=navigator.platform){return pg(e,t,n)?xne(e).has(t.key):!1}function mg(e){return e?.platform??navigator.platform}function hg(e){return{terminalFocus:!1,terminalOpen:!1,previewFocus:!1,previewOpen:!1,...e?.context}}function gg(e,t){switch(e.type){case`identifier`:return e.name===`true`?!0:e.name===`false`?!1:!!t[e.name];case`not`:return!gg(e.node,t);case`and`:return gg(e.left,t)&&gg(e.right,t);case`or`:return gg(e.left,t)||gg(e.right,t)}}function _g(e,t){return e?gg(e,t):!0}function Cne(e,t=navigator.platform){let n=sn(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 vg(e,t,n){let r=mg(n),i=hg(n),a=new Set;for(let n=e.length-1;n>=0;--n){let o=e[n];if(!o||!_g(o.whenAst,i))continue;let s=Cne(o.shortcut,r);if(!a.has(s)&&(a.add(s),o.command===t))return o.shortcut}return null}function yg(e,t,n,r){return bg(e,t,r)===n}function bg(e,t,n){let r=mg(n),i=hg(n);for(let n=t.length-1;n>=0;--n){let a=t[n];if(a&&_g(a.whenAst,i)&&Sne(e,a.shortcut,r))return a.command}return null}function wne(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 xg(e,t=navigator.platform){let n=wne(e.key),r=sn(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 Sg(e,t,n){let r=typeof n==`string`?{platform:n}:n,i=mg(r),a=vg(e,t,r);return a?xg(a,i):null}function Cg(e){return eo[e]??null}function wg(e){let t=eo.indexOf(e);return t===-1?null:t}function Tg(e){return e===`thread.previous`?`previous`:e===`thread.next`?`next`:null}function Eg(e,t,n){let r=mg(n);for(let i of eo){let a=vg(t,i,n);if(a&&pg(e,a,r))return!0}return!1}function Tne(e){return Yu[e]??null}function Ene(e){let t=Yu.indexOf(e);return t===-1?null:t}function Dne(e,t,n){return yg(e,t,`terminal.toggle`,n)}function One(e,t,n){return yg(e,t,`terminal.split`,n)}function kne(e,t,n){return yg(e,t,`terminal.splitVertical`,n)}function Ane(e,t,n){return yg(e,t,`terminal.new`,n)}function jne(e,t,n){return yg(e,t,`terminal.close`,n)}function Mne(e,t,n){return yg(e,t,`diff.toggle`,n)}function Nne(e,t,n){return yg(e,t,`editor.openFavorite`,n)}function Pne(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:sn(t)&&n===`k`&&e.metaKey&&!e.ctrlKey&&!e.altKey&&!e.shiftKey}function Fne(e,t=navigator.platform){return e.type!==void 0&&e.type!==`keydown`||!sn(t)||fg(e.key)!==`backspace`?null:e.metaKey&&!e.ctrlKey&&!e.altKey&&!e.shiftKey?yne:null}function Ine(e,t=navigator.platform){if(e.type!==void 0&&e.type!==`keydown`||e.shiftKey)return null;let n=fg(e.key);if(n!==`arrowleft`&&n!==`arrowright`)return null;let r=n===`arrowleft`?hne:gne,i=n===`arrowleft`?_ne:vne;return sn(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 Lne=[/\bSocketCloseError\b/i,/\bSocketOpenError\b/i,/\bSocket is not connected\b/i,/Unable to connect to the P4 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 Rne(e){if(typeof e!=`string`)return!1;let t=e.trim();return t.length===0?!1:Lne.some(e=>e.test(t))}function zne(e){return Rne(e)?null:e??null}var Dg=`[CLIENT_SETTINGS]`,Og=new Set,kg=new Set,Ag=Iu,jg=!1,Mg=null,Ng=0;function Bne(){for(let e of Og)e()}function Vne(){for(let e of kg)e()}function Pg(){return Ag}function Fg(e){Ag=e,Bne()}function Hne(e){jg!==e&&(jg=e,Vne())}function Une(e){return Og.add(e),Ig(),()=>{Og.delete(e)}}function Wne(){return jg}function Gne(e){return kg.add(e),Ig(),()=>{kg.delete(e)}}async function Ig(){if(jg)return;if(Mg)return Mg;let e=Ng,t=(async()=>{try{let t=await Gr().persistence.getClientSettings();if(e!==Ng)return;t&&Fg({...Iu,...t})}catch(e){console.error(`${Dg} hydrate failed`,{operation:`hydrate`,...yn(e)})}finally{e===Ng&&Hne(!0)}})().finally(()=>{Mg===t&&(Mg=null)});return Mg=t,Mg}function Lg(e){Fg(e),Gr().persistence.setClientSettings(e).catch(e=>{console.error(`${Dg} persist failed`,{operation:`persist`,...yn(e)})})}var Kne=new Set(uo(fs.fields));function qne(e){let t={},n={};for(let[r,i]of Object.entries(e))Kne.has(r)?t[r]=i:n[r]=i;return{serverPatch:t,clientPatch:n}}function Jne(){return Pg()}function Rg(){return(0,J.useSyncExternalStore)(Gne,Wne,Yne)}function Yne(){return!1}function zg(){return(0,J.useSyncExternalStore)(Une,Pg,Xne)}function Xne(){return Iu}function Zne(e,t){return{...e,...t}}function Bg(e,t){let n=(0,X.c)(6),r=zg(),i;n[0]!==r||n[1]!==e?(i=Zne(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 Vg(e){let t=(0,X.c)(3),n=zg(),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 Qne(e){return e.settingsHydrated?e.mode:`none`}function Hg(){let e=(0,X.c)(3),t=Rg(),n=zg().environmentIdentificationMode,r;return e[0]!==n||e[1]!==t?(r=Qne({mode:n,settingsHydrated:t}),e[0]=n,e[1]=t,e[2]=r):r=e[2],r}function Ug(){let e=(0,X.c)(4),t=Rg(),n=zg(),r;return e[0]!==n.sidebarV2ConfiguredByUser||e[1]!==n.sidebarV2Enabled||e[2]!==t?(r=wte({enabled:n.sidebarV2Enabled,configuredByUser:n.sidebarV2ConfiguredByUser,settingsHydrated:t,stageLabel:qm}),e[0]=n.sidebarV2ConfiguredByUser,e[1]=n.sidebarV2Enabled,e[2]=t,e[3]=r):r=e[3],r}function $ne(e,t){let n=(0,X.c)(2),r;return n[0]===e?r=n[1]:(r=br.settingsValueAtom(e),n[0]=e,n[1]=r),Bg(Io(r)??$o,t)}function Wg(e){return Bg(Io(pt),e)}function ere(e){let t=(0,X.c)(3),n=qu(br.updateSettings,`server settings update`),r;return t[0]!==e||t[1]!==n?(r=t=>{let{serverPatch:r,clientPatch:i}=qne(t);Object.keys(r).length>0&&e&&n({environmentId:e,input:{patch:r}}),Object.keys(i).length>0&&Lg({...Pg(),...i})},t[0]=e,t[1]=n,t[2]=r):r=t[2],r}function Gg(){return ere(Nr()?.environmentId??null)}function Kg(){return tre}function tre(e){Lg({...Pg(),...e})}function qg(e){return/^[a-zA-Z]:([/\\]|$)/.test(e)}function Jg(e){return e.startsWith(`\\\\`)}function Yg(e){return Jg(e)||qg(e)}function Xg(e){return e===`.`||e===`..`||e.startsWith(`./`)||e.startsWith(`../`)||e.startsWith(`.\\`)||e.startsWith(`..\\`)}function nre(e){return e===`/`||e===`\\`||/^[a-zA-Z]:[/\\]?$/.test(e)}function rre(e){if(e.length===0||nre(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 Zg(e){return rre(e.trim())}function Qg(e){let t=Zg(e);return qg(t)||Jg(t)?t.replaceAll(`/`,`\\`).toLowerCase():t}function ire(e){return JSON.stringify([e.environmentId,e.cwd,e.relativePath])}function are(e){let t=Ml(),n=Ml(),r=Ct(e=>Ar(null).pipe(Di(`environment-data:projects:optimistic-file:${e}`))),i={mode:`serial`,key:({environmentId:e,input:t})=>JSON.stringify([e,t.projectId])};return{searchEntries:bs(e,{label:`environment-data:projects:search-entries`,tag:Bo.projectsSearchEntries,staleTimeMs:15e3}),listEntries:bs(e,{label:`environment-data:projects:list-entries`,tag:Bo.projectsListEntries,staleTimeMs:3e4,idleTtlMs:5*6e4}),readFile:bs(e,{label:`environment-data:projects:read-file`,tag:Bo.projectsReadFile,staleTimeMs:3e4,idleTtlMs:5*6e4}),optimisticFile:e=>r(ire(e)),create:Kc(e,{label:`environment-data:commands:project:create`,execute:e=>Nl(e),scheduler:t,concurrency:i}),update:Kc(e,{label:`environment-data:commands:project:update`,execute:e=>Ps(e),scheduler:t,concurrency:i}),delete:Kc(e,{label:`environment-data:commands:project:delete`,execute:e=>qc(e),scheduler:t,concurrency:i}),writeFile:Ns(e,{label:`environment-data:projects:write-file`,tag:Bo.projectsWriteFile,scheduler:n,concurrency:{mode:`serial`,key:({environmentId:e,input:t})=>JSON.stringify([e,t.cwd,t.relativePath])}})}}var ore=Object.freeze([]),sre=new Map;function cre(e){let t=Ct(t=>Ar(n=>n(e.snapshotAtom(t))?.projects??ore).pipe(Di(`environment-projects:${t}`))),n=Ct(e=>Ar(n=>{let r=n(t(e));return r.length===0?sre:new Map(r.map(e=>[e.id,e]))}).pipe(Di(`environment-project-index:${e}`))),r=Ct(e=>{let n=[];return Ar(r=>{let i=r(t(e)).map(t=>({environmentId:e,projectId:t.id}));return Ur(n,i)?n:(n=i,i)}).pipe(Di(`environment-project-refs:${e}`))}),i=Ct(e=>{let t=lo(e),r=null,i=null;return Ar(e=>{let a=e(n(t.environmentId)).get(t.projectId)??null;return a===r?i:(r=a,i=a===null?null:ze(t.environmentId,a),i)}).pipe(Di(`environment-project:${e}`))}),a=[],o=Ar(t=>{let n=[];for(let i of t(e.catalogValueAtom).entries.keys())n.push(...t(r(i)));return Ur(a,n)?a:(a=n,n)}).pipe(Di(`environment-project-refs`)),s=[];return{environmentProjectsAtom:t,environmentProjectIndexAtom:n,environmentProjectRefsAtom:r,projectRefsAtom:o,projectsAtom:Ar(e=>{let t=e(o).flatMap(t=>{let n=e(i(Ad(t)));return n===null?[]:[n]});return Ud(s,t)||(s=t),s}).pipe(Di(`environment-project-list`)),projectAtom:e=>i(Ad(e))}}var $g=e=>/^win(dows)?/i.test(e);function e_(e){return qg(e)||Jg(e)?`windows`:e.startsWith(`/`)?`unix`:null}function t_(e){let t=e_(e);return t===`windows`?`\\`:t===`unix`?`/`:e.includes(`\\`)?`\\`:`/`}function n_(e){return(e_(e)===`unix`?/\/$/:/[\\/]$/).test(e)}function r_(e,t){return e.split(t===`/`?/\/+/:/[\\/]+/).filter(Boolean)}function i_(e){return e_(e)===`unix`?e.lastIndexOf(`/`):Math.max(e.lastIndexOf(`/`),e.lastIndexOf(`\\`))}function a_(e){if(qg(e)){let t=`${e.slice(0,2)}\\`;return{root:t,separator:`\\`,segments:r_(e.slice(t.length),`\\`)}}if(Jg(e)){let[t,n,...r]=r_(e,`\\`);return!t||!n?null:{root:`\\\\${t}\\${n}\\`,separator:`\\`,segments:r}}return e.startsWith(`/`)?{root:`/`,separator:`/`,segments:r_(e.slice(1),`/`)}:null}function lre(e,t=``){let n=$g(t);return e.startsWith(`./`)||e.startsWith(`../`)||e.startsWith(`.\\`)||e.startsWith(`..\\`)||e.startsWith(`/`)||e.startsWith(`~/`)||n&&Yg(e)}function o_(e,t){return Yg(e)&&!$g(t)}function s_(e,t){let n=e.trim();if(!Xg(n)||!t)return Zg(n);let r=a_(Zg(t));if(!r)return Zg(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 Zg(a.length===0?r.root:`${r.root}${a}`)}function ure(e,t){let n=Qg(t);if(n.length!==0)return e.find(e=>{let t=e.workspaceRoot??e.cwd;return t?Qg(t)===n:!1})}function dre(e){let t=Zg(e),n=a_(t);return n?n.segments.findLast(Boolean)??t:t.split(/[/\\]/).findLast(Boolean)??t}function fre(e,t){let n=t_(e);return`${c_(e)}${t}${n}`}function pre(e){let t=i_(e);return e.slice(t+1)}function c_(e){if(n_(e))return e;let t=i_(e);return t<0?e:e.slice(0,t+1)}function mre(e){let t=e.trim();return t.length===0||n_(t)?t:`${t}${t_(t)}`}function l_(e){let t=Zg(e),n=a_(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=t_(e),i=i_(t);return i<0?null:i===2&&/^[a-zA-Z]:/.test(t)?`${t.slice(0,2)}${r}`:t.slice(0,i+1)}function hre(e){return n_(e)&&l_(e)!==null}var u_=ar(et),d_=sc(et),f_=Nn(d_.stateAtom);bn({catalogValueAtom:_i.catalogValueAtom,shellStateValueAtom:d_.stateValueAtom});var gre=Ar(e=>{let t=Pt(e(_i.catalogAtom));if(Id(t))return!1;for(let n of t.value.entries.keys()){if(no(e(d_.stateValueAtom(n)).snapshot))continue;let t=ms(Pt(e(_i.stateAtom(n))),()=>ir);if(Re(t)!==`disconnected`||t.phase===`backoff`&&t.desired&&t.attempt<=2)return!1}return!0}).pipe(Di(`web-all-environment-shells-bootstrapped`)),p_=are(et),m_=cre({catalogValueAtom:_i.catalogValueAtom,snapshotAtom:f_}),h_=cs(et),g_=wo(et),__=Gu(g_.stateAtom),v_=Pc({catalogValueAtom:_i.catalogValueAtom,snapshotAtom:f_}),_re=Ar(Wl(id)).pipe(Di(`web-environment-thread:empty`));function vre(e,t){let n=(0,X.c)(5),r;n[0]!==e||n[1]!==t?(r=e!==null&&t!==null?g_.stateAtom(e,t):_re,n[0]=e,n[1]=t,n[2]=r):r=n[2];let i=Io(r),a;return n[3]===i?a=n[4]:(a=ms(Pt(i),yre),n[3]=i,n[4]=a),a}function yre(){return id}var bre=Object.freeze([]),xre=Object.freeze([]),Sre=Object.freeze([]),Cre=Object.freeze([]),wre=Object.freeze([]),Tre=Ar(null).pipe(Di(`web-project:empty`));Ar(bre).pipe(Di(`web-project-refs:empty`));var Ere=Ar(xre).pipe(Di(`web-thread-refs:empty`)),Dre=Ar(null).pipe(Di(`web-thread-shell:empty`)),Ore=Ar(null).pipe(Di(`web-thread-detail:empty`)),kre=Ar(`empty`).pipe(Di(`web-thread-status:empty`));Ar(Sre).pipe(Di(`web-thread-messages:empty`)),Ar(Cre).pipe(Di(`web-thread-activities:empty`));var Are=Ar(wre).pipe(Di(`web-thread-proposed-plans:empty`));Ar(null).pipe(Di(`web-thread-session:empty`));var y_=Ar(null).pipe(on,Di(`web-active-environment-id`));function b_(){return Io(y_)}function x_(e){Tt.set(y_,e)}function S_(){return Io(v_.threadRefsAtom)}function jre(e){let t=(0,X.c)(2),n;return t[0]===e?n=t[1]:(n=e===null?Ere:v_.environmentThreadRefsAtom(e),t[0]=e,t[1]=n),Io(n)}function C_(){return Io(m_.projectsAtom)}function w_(){return Io(v_.threadShellsAtom)}function Mre(){return Io(gre)}function Nre(e){let t=(0,X.c)(2),n;return t[0]===e?n=t[1]:(n=v_.threadShellsForProjectRefsAtom(e),t[0]=e,t[1]=n),Io(n)}function T_(e){let t=(0,X.c)(2),n;return t[0]===e?n=t[1]:(n=e===null?Tre:m_.projectAtom(e),t[0]=e,t[1]=n),Io(n)}function E_(e){let t=(0,X.c)(2),n;return t[0]===e?n=t[1]:(n=e===null?Dre:v_.threadShellAtom(e),t[0]=e,t[1]=n),Io(n)}function Pre(e){let t=(0,X.c)(2),n;return t[0]===e?n=t[1]:(n=e===null?Ore:__.detailAtom(e),t[0]=e,t[1]=n),Io(n)}function Fre(e){let t=(0,X.c)(2),n;return t[0]===e?n=t[1]:(n=e===null?kre:__.statusAtom(e),t[0]=e,t[1]=n),Io(n)}function Ire(e,t){return e!==null&&(!t.waitForShell||t.shellExists)?e:null}function D_(e,t){let n=(0,X.c)(7),r=E_(e),i=r!==null,a=t?.waitForShell===!0,o;n[0]!==e||n[1]!==i||n[2]!==a?(o=Ire(e,{shellExists:i,waitForShell:a}),n[0]=e,n[1]=i,n[2]=a,n[3]=o):o=n[3];let s=Pre(o),c;return n[4]!==s||n[5]!==r?(c=Lo(s,r),n[4]=s,n[5]=r,n[6]=c):c=n[6],c}function Lre(e){let t=(0,X.c)(2),n;return t[0]===e?n=t[1]:(n=e===null?Are:__.proposedPlansAtom(e),t[0]=e,t[1]=n),Io(n)}function Rre(e){return Tt.get(m_.projectAtom(e))}function O_(e){return Tt.get(v_.threadShellAtom(e))}function zre(e){return Tt.get(Fn).get(e)?.environment.capabilities.threadSettlement===!0}function Bre(e){return Tt.get(Fn).get(e)?.environment.capabilities.threadSnooze===!0}function Vre(e){return Tt.get(v_.environmentThreadRefsAtom(e))}function Hre(e){return e.filter(e=>e.state.hasRunningSubprocess).map(e=>e.target.terminalId)}var k_=Object.freeze({buffer:``,status:`closed`,error:null,updatedAt:null,version:0}),Ure=Object.freeze({summary:null,buffer:``,status:`closed`,error:null,hasRunningSubprocess:!1,updatedAt:null,version:0}),Wre=512*1024,Gre=new TextEncoder,Kre=new TextDecoder;function qre(e,t){if(t<=0)return``;let n=Gre.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 Kre.decode(n.subarray(r))}function Jre(e,t){return{buffer:qre(e.history,t),status:e.status,error:null,updatedAt:e.updatedAt,version:1}}function Yre(e,t){return e===null?t:t===null||Date.parse(e)>=Date.parse(t)?e:t}function Xre(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:Yre(e?.updatedAt??null,t.updatedAt),version:t.version}}function Zre(e,t,n=Wre){switch(t.type){case`snapshot`:case`restarted`:return Jre(t.snapshot,n);case`output`:return{...e,buffer:qre(`${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 Qre(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 $re(e){let t=Ml(),n=Ml(),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:rd(e,{label:`environment-data:terminal:attach`,subscribe:e=>C(Bo.terminalAttach,e).pipe(hn(k_,Zre))}),events:La(e,{label:`environment-data:terminal:events`,tag:Bo.subscribeTerminalEvents}),metadata:rd(e,{label:`environment-data:terminal:metadata`,subscribe:e=>C(Bo.subscribeTerminalMetadata,{}).pipe(hn([],Qre))}),open:Ns(e,{label:`environment-data:terminal:open`,tag:Bo.terminalOpen,scheduler:t,concurrency:a}),write:Ns(e,{label:`environment-data:terminal:write`,tag:Bo.terminalWrite}),resize:Ns(e,{label:`environment-data:terminal:resize`,tag:Bo.terminalResize,scheduler:n,concurrency:{mode:`latest`,key:i}}),clear:Ns(e,{label:`environment-data:terminal:clear`,tag:Bo.terminalClear,scheduler:t,concurrency:a}),restart:Ns(e,{label:`environment-data:terminal:restart`,tag:Bo.terminalRestart,scheduler:t,concurrency:a}),close:Ns(e,{label:`environment-data:terminal:close`,tag:Bo.terminalClose,scheduler:t,concurrency:a})}}var A_=$re(et);function eie(e){let t=(0,X.c)(13),n;t[0]!==e.environmentId||t[1]!==e.terminal?(n=e.environmentId!==null&&e.terminal!==null?A_.attach({environmentId:e.environmentId,input:e.terminal}):null,t[0]=e.environmentId,t[1]=e.terminal,t[2]=n):n=t[2];let r=od(n),i;t[3]===e.environmentId?i=t[4]:(i=e.environmentId===null?null:A_.metadata({environmentId:e.environmentId,input:null}),t[3]=e.environmentId,t[4]=i);let a=od(i),o;bb0:{if(e.environmentId===null||e.terminal===null){o=Ure;break bb0}let n;t[5]!==r.data||t[6]!==e.terminal?.terminalId||t[7]!==e.terminal?.threadId||t[8]!==a.data?(n=Xre(a.data?.find(t=>t.threadId===e.terminal?.threadId&&t.terminalId===e.terminal?.terminalId)??null,r.data??k_),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 j_(e){let t=(0,X.c)(11),n;t[0]===e.environmentId?n=t[1]:(n=e.environmentId===null?null:A_.metadata({environmentId:e.environmentId,input:null}),t[0]=e.environmentId,t[1]=n);let r=od(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:Ii.make(t.threadId),terminalId:t.terminalId},state:Xre(t,k_)}),t[9]=e.environmentId,t[10]=a),n=(r.data??[]).filter(i).map(a).sort(tie),t[3]=e.environmentId,t[4]=e.threadId,t[5]=r.data,t[6]=n}else n=t[6];i=n}return i}function tie(e,t){return e.target.terminalId.localeCompare(t.target.terminalId,void 0,{numeric:!0})}function M_(e){let t=(0,X.c)(2),n=j_(e),r;return t[0]===n?r=t[1]:(r=Hre(n),t[0]=n,t[1]=r),r}var N_={shortLabel:`PR`,singular:`pull request`},nie={icon:`github`,providerName:`GitHub`,shortName:`PR`,longName:`pull request`,pluralLongName:`pull requests`,providerLongName:`GitHub pull request`,checkoutCommandExample:`gh pr checkout 123`,urlExample:`https://github.com/owner/repo/pull/42`},rie={icon:`gitlab`,providerName:`GitLab`,shortName:`MR`,longName:`merge request`,pluralLongName:`merge requests`,providerLongName:`GitLab merge request`,checkoutCommandExample:`glab mr checkout 123`,urlExample:`https://gitlab.com/group/project/-/merge_requests/42`},iie={icon:`azure-devops`,providerName:`Azure DevOps`,shortName:`PR`,longName:`pull request`,pluralLongName:`pull requests`,providerLongName:`Azure DevOps pull request`,checkoutCommandExample:`az repos pr checkout --id 123`,urlExample:`https://dev.azure.com/org/project/_git/repo/pullrequest/42`},aie={icon:`bitbucket`,providerName:`Bitbucket`,shortName:`PR`,longName:`pull request`,pluralLongName:`pull requests`,providerLongName:`Bitbucket pull request`,urlExample:`https://bitbucket.org/workspace/repo/pull-requests/42`},oie={icon:`change-request`,providerName:`source control`,shortName:`change request`,longName:`change request`,pluralLongName:`change requests`,providerLongName:`change request`,urlExample:`#42`};function P_(e){switch(e?.kind){case`github`:case void 0:return nie;case`gitlab`:return rie;case`azure-devops`:return iie;case`bitbucket`:return aie;case`unknown`:return oie}}function F_(e){if(!e)return N_;let t=P_(e);return{shortLabel:t.shortName,singular:t.longName}}var sie=`p4code`,cie=RegExp(`^${sie}\\/(?:[0-9a-f]{8}|[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12})$`);function lie(e){let t=e.indexOf(`/`);return t<=0||t===e.length-1?e:e.slice(t+1)}function uie(e){return`${sie}/${e(4).toLowerCase().replace(/[^0-9a-f]/g,``).slice(0,8)}`}function die(e){return cie.test(e.trim().toLowerCase())}var fie={hasUpstream:!1,aheadCount:0,behindCount:0,aheadOfDefaultCount:0,pr:null};function I_(e,t){return{...e,...t??fie}}function pie(e){return{hasUpstream:e.hasUpstream,aheadCount:e.aheadCount,behindCount:e.behindCount,...e.aheadOfDefaultCount===void 0?{}:{aheadOfDefaultCount:e.aheadOfDefaultCount},pr:e.pr}}function mie(e){return{isRepo:e.isRepo,...e.sourceControlProvider?{sourceControlProvider:e.sourceControlProvider}:{},hasPrimaryRemote:e.hasPrimaryRemote,isDefaultRef:e.isDefaultRef,refName:e.refName,hasWorkingTreeChanges:e.hasWorkingTreeChanges,workingTree:e.workingTree}}function hie(e,t){switch(t._tag){case`snapshot`:return I_(t.local,t.remote);case`localUpdated`:return I_(t.local,e?pie(e):null);case`remoteUpdated`:return I_(e===null?{isRepo:!0,hasPrimaryRemote:!1,isDefaultRef:!1,refName:null,hasWorkingTreeChanges:!1,workingTree:{files:[],insertions:0,deletions:0}}:mie(e),t.remote)}}var L_=Ml(),R_={mode:`serial`,key:({environmentId:e,input:t})=>JSON.stringify([e,t.cwd])},gie=Ct(e=>Ar({revision:0,persistedCacheReadable:!0}).pipe(on,Di(`environment-data:vcs:list-refs-state:${e}`))),_ie=xte({permits:1});function z_(e){return gie(e.environmentId)}function vie(e,t,n){e.update(z_(t),e=>({revision:e.revision+1,persistedCacheReadable:n??e.persistedCacheReadable}))}function yie(e,t){return _ie.withPermit(e)(t)}var B_=Ea(`VcsRefsState.invalidateCached`)(function*(e,t){let n=yield*Mn;yield*yie(t.environmentId,Qc(function*(){vie(e,t,yield*n.clearVcsRefs(t.environmentId).pipe(rf(!0),$e(e=>uu(`Could not remove invalidated cached Git refs.`).pipe(Mr({environmentId:t.environmentId,cwd:t.cwd,...yn(e)}),rf(!1)))))}))}),bie=ba([`refresh_status`,`run_change_request`,`pull`,`switch_ref`,`create_ref`,`create_worktree`,`init`,`publish_repository`,`prepare_pull_request_thread`]),V_=class extends ou()(`VcsActionUnavailableError`,{operation:bie,environmentId:pr(ot),cwd:pr(Nu)}){get message(){return`Source control operation '${this.operation.replaceAll(`_`,` `)}' is unavailable.`}},xie=class extends ou()(`VcsActionRemoteFailureError`,{actionId:Nu,transportActionId:Nu,action:Ha,environmentId:ot,cwd:Nu,phase:pr(Rs),remoteMessageLength:o}){get message(){let e=this.phase===null?`execution`:this.phase;return`Source control action '${this.action}' failed during ${e}.`}},Sie=class extends ou()(`VcsActionMissingTerminalEventError`,{actionId:Nu,transportActionId:Nu,action:Ha,environmentId:ot,cwd:Nu}){get message(){return`Source control action '${this.action}' ended without a terminal result.`}},Cie=class extends ou()(`VcsActionTargetKeyParseError`,{keyLength:o,cause:jt()}){get message(){return`Invalid source control action target key (${this.keyLength} characters).`}};xl([xie,Sie]);var H_=Object.freeze({isRunning:!1,operation:null,actionId:null,action:null,currentLabel:null,currentPhaseLabel:null,hookName:null,lastOutputLine:null,phaseStartedAtMs:null,hookStartedAtMs:null,error:null}),wie=()=>or(Pn()),Tie=0,Eie=ls(Ys([ot,Nu])),U_=Ct(e=>Ar(H_).pipe(on,Di(`vcs-action:${e}`))),Die=Ar(H_).pipe(on,Di(`vcs-action:null`));function W_(e){return e.environmentId===null||e.cwd===null?null:JSON.stringify([e.environmentId,e.cwd])}function Oie(e){try{let[t,n]=Eie(JSON.parse(e));return{environmentId:t,cwd:n}}catch(t){throw new Cie({keyLength:e.length,cause:t})}}function kie(e){let t=W_(e);return t===null?Die:U_(t)}function Aie(){return Tie+=1,`local-vcs-action:${Tie}`}function G_(e){let t=e.actionId??Aie(),n=wie();return{...H_,isRunning:!0,operation:e.operation,actionId:t,currentLabel:e.label,currentPhaseLabel:e.label,phaseStartedAtMs:n}}function K_(e,t,n){return{...H_,operation:e,actionId:t,error:n instanceof Error?n.message:`Source control action failed.`}}function jie(e,t){let n=JSON.stringify([e.environmentId,e.cwd]);return`${n.length}:${n}${t}`}function Mie(e,t,n,r){return r.actionId!==t||r.cwd!==e.cwd?null:{...r,actionId:n}}function Nie(e,t){return Xu(()=>{let n=null;return e.pipe(nc(e=>{let r=Mie(t.target,t.transportActionId,t.actionId,e);return r===null?ld:((r.kind===`action_finished`||r.kind===`action_failed`)&&(n=r),t.onProgress(r))}),pa(()=>n?.kind===`action_finished`?Aa(n.result):n?.kind===`action_failed`?It(new xie({actionId:t.actionId,transportActionId:t.transportActionId,action:n.action,environmentId:t.target.environmentId,cwd:t.target.cwd,phase:n.phase,remoteMessageLength:n.message.length})):It(new Sie({actionId:t.actionId,transportActionId:t.transportActionId,action:t.action,environmentId:t.target.environmentId,cwd:t.target.cwd}))))})}function Pie(e,t){if(e.actionId!==t.actionId)return e;let n=wie();switch(t.kind){case`action_started`:return{...e,isRunning:!0,actionId:t.actionId,action:t.action,operation:`run_change_request`,phaseStartedAtMs:n,hookStartedAtMs:null,hookName:null,lastOutputLine:null,error:null};case`phase_started`:return{...e,isRunning:!0,actionId:t.actionId,action:t.action,operation:`run_change_request`,currentLabel:t.label,currentPhaseLabel:t.label,phaseStartedAtMs:n,hookStartedAtMs:null,hookName:null,lastOutputLine:null,error:null};case`hook_started`:return{...e,isRunning:!0,actionId:t.actionId,action:t.action,operation:`run_change_request`,currentLabel:`Running ${t.hookName}...`,hookName:t.hookName,hookStartedAtMs:n,lastOutputLine:null,error:null};case`hook_output`:return{...e,isRunning:!0,actionId:t.actionId,action:t.action,operation:`run_change_request`,lastOutputLine:t.text,error:null};case`hook_finished`:return{...e,isRunning:!0,actionId:t.actionId,action:t.action,operation:`run_change_request`,currentLabel:e.currentPhaseLabel,hookName:null,hookStartedAtMs:null,lastOutputLine:null,error:null};case`action_finished`:return{...H_,actionId:t.actionId,action:t.action,operation:`run_change_request`};case`action_failed`:return{...H_,actionId:t.actionId,action:t.action,operation:`run_change_request`,error:t.message}}}function Fie(e){let t=new Map,n=n=>{let r=W_(n),i=r??JSON.stringify([`vcs-action-target:unavailable`,n.environmentId,n.cwd]),a=t.get(i);if(a!==void 0)return a;let o=r===null?null:Oie(r),s=r===null?Die:U_(r),c=Hd(e,{label:`vcs-action:run-stacked:${i}`,scheduler:L_,concurrency:{mode:`serial`,key:()=>i},execute:(e,t)=>{if(o===null)return It(new V_({operation:`run_change_request`,environmentId:n.environmentId,cwd:n.cwd}));let r=jie(o,e.actionId);t.set(s,G_({operation:`run_change_request`,label:`Running source control action`,actionId:e.actionId}));let i={actionId:r,cwd:o.cwd,action:e.action,...e.commitMessage?{commitMessage:e.commitMessage}:{},...e.featureBranch?{featureBranch:!0}:{},...e.filePaths?.length?{filePaths:[...e.filePaths]}:{}};return Nie(gd(o.environmentId,yc(Bo.gitRunStackedAction,i)),{target:o,transportActionId:r,actionId:e.actionId,action:e.action,onProgress:n=>Fd(()=>{let r=t.get(s);if(r.actionId===e.actionId&&(t.set(s,Pie(r,n)),e.onProgress!==void 0))try{e.onProgress(n)}catch{}})}).pipe(Kl(B_(t,o)),to(n=>Fd(()=>{let r=t.get(s);r.actionId===e.actionId&&r.isRunning&&t.set(s,K_(`run_change_request`,e.actionId,n))})))}});return t.set(i,c),c},r=(e,t,n)=>{let r=W_(t);if(r===null)return;let i=U_(r);e.set(i,n(e.get(i)))};return{stateAtom:kie,runStackedAction:e=>n(e),track:async(e,t,n,r)=>{let i=W_(t);if(i===null)return mi(je(new V_({operation:n.operation,environmentId:t.environmentId,cwd:t.cwd})));let a=U_(i),o=G_(n);e.set(a,o);let s=await r();return e.get(a).actionId===o.actionId&&(qt(s)||gt(s.cause)?e.set(a,H_):e.get(a).actionId===o.actionId&&e.set(a,K_(n.operation,o.actionId,Cr(s.cause)))),s},resetError:(e,t,n)=>{r(e,t,e=>!e.isRunning&&e.operation===n?H_:e)}}}var Iie=100,Lie=3e4,Rie=ae(`1 second`).pipe(fc(({duration:e})=>Aa(pl(e,du(30)))));function zie(e){return e.query===void 0&&e.cursor===void 0&&e.includeMatchingRemoteRefs===void 0&&e.refKind===void 0&&e.limit===Iie}var Bie=Ea(`CachedVcsRefsState.commitRefresh`)(function*(e,t,n){return yield*yie(n.environmentId,Qc(function*(){let r=z_({environmentId:n.environmentId}),i=e.get(r);if(i.revision!==n.expectedRevision)return!1;let a=i.persistedCacheReadable;return n.persist&&(a||=yield*t.clearVcsRefs(n.environmentId).pipe(rf(!0),$e(e=>uu(`Could not recover invalidated cached Git refs.`).pipe(Mr({environmentId:n.environmentId,cwd:n.cwd,...yn(e)}),rf(!1)))),yield*t.saveVcsRefs(n.environmentId,n.cwd,n.refs).pipe($e(e=>uu(`Could not persist cached Git refs.`).pipe(Mr({environmentId:n.environmentId,cwd:n.cwd,...yn(e)})))),a!==i.persistedCacheReadable&&e.update(r,e=>e.revision===n.expectedRevision?{...e,persistedCacheReadable:a}:e)),!0}))}),Vie=Ea(`CachedVcsRefsState.makeChanges`)(function*(e,t,n,r=!0){let i=yield*oc,a=yield*Mn,o=i.target.environmentId,s=zie(e),c=s&&r?yield*a.loadVcsRefs(o,e.cwd).pipe($e(t=>uu(`Could not load cached Git refs.`).pipe(Mr({environmentId:o,cwd:e.cwd,...yn(t)}),rf(Lr())))):Lr(),l=Ea(`CachedVcsRefsState.refresh`)(function*(){let r=yield*Gn(Bo.vcsListRefs,e).pipe(zc(oc,i)),c=a.saveVcsRefs(o,e.cwd,r).pipe($e(t=>uu(`Could not persist cached Git refs.`).pipe(Mr({environmentId:o,cwd:e.cwd,...yn(t)}))));return t===void 0||n===void 0?(s&&(yield*c),H(r)):(yield*Bie(n,a,{environmentId:o,cwd:e.cwd,refs:r,expectedRevision:t,persist:s}))?H(r):Lr()});return fd(ce(Aa(c)).pipe(xe(e=>Cd(e,{onNone:()=>$c,onSome:Zl}))),fd(ce(Xn(i.state)),wn(i.state)).pipe(Vn(e=>e.phase===`connected`?e.generation:null),U,On(t=>t===null?Zr:ce(l().pipe(to(t=>uu(`Could not refresh Git refs.`).pipe(Mr({environmentId:o,cwd:e.cwd,...yn(t)}))))).pipe(y(Rie),xe(e=>Cd(e,{onNone:()=>$c,onSome:Zl}))))))});function Hie(e,t,n,r){return kd(e,er(Qc(function*(){return yield*Vie(t,n,yield*ut,r)})))}function Uie(e){let t=Ct(t=>Ct(n=>{let r=JSON.parse(n);return e.atom(e=>{let n=e(z_({environmentId:t}));return Hie(t,r,n.revision,n.persistedCacheReadable)}).pipe(tf(Lie),Di(`environment-data:vcs:list-refs:${t}:${n}`))})),n=e=>t(e.environmentId)(JSON.stringify(e.input)),r=(e,t)=>B_(t,{environmentId:e.environmentId,cwd:e.input.cwd});return{listRefs:n,status:rd(e,{label:`environment-data:vcs:status`,subscribe:e=>C(Bo.subscribeVcsStatus,e).pipe(hc(()=>null,(e,t)=>{let n=hie(e,t);return[n,[n]]}))}),pull:Ns(e,{label:`environment-data:vcs:pull`,tag:Bo.vcsPull,scheduler:L_,concurrency:R_,onSettled:r}),refreshStatus:Ns(e,{label:`environment-data:vcs:refresh-status`,tag:Bo.vcsRefreshStatus,scheduler:L_,concurrency:R_,onSettled:r}),createWorktree:Ns(e,{label:`environment-data:vcs:create-worktree`,tag:Bo.vcsCreateWorktree,scheduler:L_,concurrency:R_,onSettled:r}),removeWorktree:Ns(e,{label:`environment-data:vcs:remove-worktree`,tag:Bo.vcsRemoveWorktree,scheduler:L_,concurrency:R_,onSettled:r}),createRef:Ns(e,{label:`environment-data:vcs:create-ref`,tag:Bo.vcsCreateRef,scheduler:L_,concurrency:R_,onSettled:r}),switchRef:Ns(e,{label:`environment-data:vcs:switch-ref`,tag:Bo.vcsSwitchRef,scheduler:L_,concurrency:R_,onSettled:r}),init:Ns(e,{label:`environment-data:vcs:init`,tag:Bo.vcsInit,scheduler:L_,concurrency:R_,onSettled:r})}}var q_=Uie(et),J_=Fie(et),Y_=`p4code:ui-state:v1`,X_=1,Z_=[`p4code:renderer-state:v8`,`p4code:renderer-state:v7`,`p4code:renderer-state:v6`,`p4code:renderer-state:v5`,`p4code:renderer-state:v4`,`p4code:renderer-state:v3`,`codething:renderer-state:v4`,`codething:renderer-state:v3`,`codething:renderer-state:v2`,`codething:renderer-state:v1`],Q_={projectExpandedById:{},projectOrder:[],threadLastVisitedAtById:{},threadChangedFilesExpandedById:{},defaultAdvertisedEndpointKey:null},Wie=`legacy-project-cwd:`,$_=`legacy-project-expansion-default`,ev=!1;function tv(e){return`${Wie}${Qg(e)}`}function nv(e){return Array.isArray(e)?[...new Set(e.filter(e=>typeof e==`string`&&e.length>0))]:[]}function Gie(e){return!e||typeof e!=`object`?{}:Object.fromEntries(Object.entries(e).filter(e=>e[0].length>0&&typeof e[1]==`boolean`))}function Kie(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 rv(e){return{projectExpandedById:e.projectExpandedById===void 0?(()=>{let t={},n=nv(e.collapsedProjectCwds),r=nv(e.expandedProjectCwds);for(let e of n)t[tv(e)]=!1;for(let e of r)t[tv(e)]=!0;return!Array.isArray(e.collapsedProjectCwds)&&r.length>0&&(t[$_]=!1),t})():Gie(e.projectExpandedById),projectOrder:e.projectOrder===void 0?nv(e.projectOrderCwds).map(tv):nv(e.projectOrder),threadLastVisitedAtById:Kie(e.threadLastVisitedAtById),threadChangedFilesExpandedById:e.threadChangedFilesExpansionVersion===X_?Jie(e.threadChangedFilesExpandedById):{},defaultAdvertisedEndpointKey:typeof e.defaultAdvertisedEndpointKey==`string`&&e.defaultAdvertisedEndpointKey.length>0?e.defaultAdvertisedEndpointKey:null}}function qie(){if(typeof window>`u`)return Q_;try{let e=window.localStorage.getItem(Y_);if(!e){for(let e of Z_){let t=window.localStorage.getItem(e);if(t)return rv(JSON.parse(t))}return Q_}return rv(JSON.parse(e))}catch{return Q_}}function Jie(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 Yie(e){if(!(typeof window>`u`))try{let t=Object.fromEntries(Object.entries(e.projectExpandedById).filter(([e])=>e!==$_));if(window.localStorage.setItem(Y_,JSON.stringify({projectExpandedById:t,projectOrder:e.projectOrder,threadLastVisitedAtById:e.threadLastVisitedAtById,defaultAdvertisedEndpointKey:e.defaultAdvertisedEndpointKey,threadChangedFilesExpansionVersion:X_,threadChangedFilesExpandedById:e.threadChangedFilesExpandedById})),!ev){ev=!0;for(let e of Z_)window.localStorage.removeItem(e)}}catch{}}var iv=new yo(Yie,{wait:500});function Xie(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 Zie(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 Qie(e,t,n,r){let i=e.threadChangedFilesExpandedById[t]??{};return i[n]===r?e:{...e,threadChangedFilesExpandedById:{...e.threadChangedFilesExpandedById,[t]:{...i,[n]:r}}}}function $ie(e,t){let n=t&&t.length>0?t:null;return e.defaultAdvertisedEndpointKey===n?e:{...e,defaultAdvertisedEndpointKey:n}}function av(e,t){for(let n of t){let t=e[n];if(t!==void 0)return t}return e[$_]??!0}function eae(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 tae(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 ov=is(e=>({...qie(),markThreadVisited:(t,n)=>e(e=>Xie(e,t,n)),markThreadUnread:(t,n)=>e(e=>Zie(e,t,n)),setThreadChangedFilesExpanded:(t,n,r)=>e(e=>Qie(e,t,n,r)),setDefaultAdvertisedEndpointKey:t=>e(e=>$ie(e,t)),setProjectExpanded:(t,n)=>e(e=>eae(e,t,n)),reorderProjects:(t,n,r)=>e(e=>tae(e,t,n,r))}));ov.subscribe(e=>iv.maybeExecute(e)),typeof window<`u`&&typeof window.addEventListener==`function`&&window.addEventListener(`beforeunload`,()=>{iv.flush()});var sv=e=>{let t=(0,X.c)(3),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,Y.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M8 0C3.58 0 0 3.58 0 8C0 11.54 2.29 14.53 5.47 15.59C5.87 15.66 6.02 15.42 6.02 15.21C6.02 15.02 6.01 14.39 6.01 13.72C4 14.09 3.48 13.23 3.32 12.78C3.23 12.55 2.84 11.84 2.5 11.65C2.22 11.5 1.82 11.13 2.49 11.12C3.12 11.11 3.57 11.7 3.72 11.94C4.44 13.15 5.59 12.81 6.05 12.6C6.12 12.08 6.33 11.73 6.56 11.53C4.78 11.33 2.92 10.64 2.92 7.58C2.92 6.71 3.23 5.99 3.74 5.43C3.66 5.23 3.38 4.41 3.82 3.31C3.82 3.31 4.49 3.1 6.02 4.13C6.66 3.95 7.34 3.86 8.02 3.86C8.7 3.86 9.38 3.95 10.02 4.13C11.55 3.09 12.22 3.31 12.22 3.31C12.66 4.41 12.38 5.23 12.3 5.43C12.81 5.99 13.12 6.7 13.12 7.58C13.12 10.65 11.25 11.33 9.47 11.53C9.76 11.78 10.01 12.26 10.01 13.01C10.01 14.08 10 14.94 10 15.21C10 15.42 10.15 15.67 10.55 15.59C13.71 14.53 16 11.53 16 8C16 3.58 12.42 0 8 0Z`,transform:`scale(64)`,fill:`currentColor`}),t[0]=n):n=t[0];let r;return t[1]===e?r=t[2]:(r=(0,Y.jsx)(`svg`,{...e,viewBox:`0 0 1024 1024`,fill:`none`,children:n}),t[1]=e,t[2]=r),r},nae=e=>{let t=(0,X.c)(3),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,Y.jsx)(`path`,{d:`M251.17 116.6 139.4 4.82a16.49 16.49 0 0 0-23.31 0l-23.21 23.2 29.44 29.45a19.57 19.57 0 0 1 24.8 24.96l28.37 28.38a19.61 19.61 0 1 1-11.75 11.06L137.28 95.4v69.64a19.62 19.62 0 1 1-16.13-.57V94.2a19.61 19.61 0 0 1-10.65-25.73L81.46 39.44 4.83 116.08a16.49 16.49 0 0 0 0 23.32L116.6 251.17a16.49 16.49 0 0 0 23.32 0l111.25-111.25a16.5 16.5 0 0 0 0-23.33`,fill:`#DE4C36`}),t[0]=n):n=t[0];let r;return t[1]===e?r=t[2]:(r=(0,Y.jsx)(`svg`,{...e,viewBox:`0 0 256 256`,children:n}),t[1]=e,t[2]=r),r},rae=e=>{let t=(0,X.c)(21),n=(0,J.useId)(),r;t[0]===n?r=t[1]:(r=n.replaceAll(`:`,``),t[0]=n,t[1]=r);let i=`${r}-jj-a`,a,o,s,c,l,u,d;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,Y.jsx)(`path`,{d:`M380.7 632.3s-14.3 56-50.3 55.5c-12.1-.2-29-10.9-47.1-26.8-34.2 82.7-98.5 239-108.5 268.6-8.9 26.5 13 52 38.2 56 36.4 5.7 49-18.1 49-18.1s13.6 40.7 37.6 39.7c29.9-1.2 34.6-33 34.6-33s11.4 23.8 26.8 23.2c38.4-1.4 41.7-102.9 43.8-135.6 3.8-57.5 6.3-135.4 7.8-190.1-9 6.7-16.5 10.7-21.3 9.9-16.1-2.7-10.6-49.3-10.6-49.3z`,fill:`#42acde`}),o=(0,Y.jsx)(`path`,{d:`M403.7 75.1c-89.7-.3-201.5 32.6-200.6 99.6 1.3 87.4 52.2 62.4 41.2 111.2-4.9 21.6-59.9 49.8-65.5 153.8 2.8.7 5.3 1 7.2 1.2 14.2.7 29.9-26.3 29.9-26.3s9.5 38 35 38 50.7-26.3 50.7-26.3 15 30.3 39.6 32c20 1.6 34-8 34-8s.8 15 14.6 14c13.9-1.2 37.6-27.8 37.6-27.8 16.5 30.3 31.9 21 54.7 5.1 0 0 6.2 26.6 36.8 23.7 6-.6 12.3-1 18.5-1.5l.9-11.6c2-58.8-20.4-129.8-50.4-183-21.7-38.7-52.5-83.4-49.6-107.3 3.5-28.3 46.7-28.4 46.7-28.4l-48.5-16 24-37a279.7 279.7 0 0 0-56.8-5.4Z`,fill:`#2f9fdf`}),s=(0,Y.jsx)(`path`,{d:`M215.9 414.6s-15.7 27-30 26.3c-1.8-.1-4.3-.5-7-1.2l-.3 3c-2.3 52 7.7 100.3 29.7 132 35.1 50.7 92.6 112.6 122 113 36.1.6 50.4-55.4 50.4-55.4s-5.5 46.6 10.6 49.3c16 2.6 62.4-46.7 87.9-79.5 15.8-20.5 52-82.3 58.2-138.3-6.2.4-12.4 1-18.5 1.5-30.6 3-36.8-23.7-36.8-23.7-22.8 16-38.2 25.2-54.7-5 0 0-23.7 26.5-37.6 27.6-13.8 1.1-14.6-13.8-14.6-13.8s-14 9.5-34 8c-24.5-1.8-39.6-32.1-39.6-32.1s-25.2 26.3-50.7 26.3c-25.5 0-35-38-35-38z`,fill:`#0e254f`}),c=(0,Y.jsx)(`path`,{d:`M309.5 418.5a1.5 1.5 0 0 0-.7 0c-.6.2-1.1.8-1.5 1.8a34.7 34.7 0 0 0 4 16.6c5.5 10.6 12.4 22 23.3 27.6 4 2 8.5 3.5 12.5 3.3a36 36 0 0 0 12.5-2.3c4-2 7.6-3.8 10.8-6.2 6-4.4 7.6-6.5 7.6-9.8 0-3.3-2.7-3.5-7.6-.5-5 3-14.6 6.1-18.8 6.1-11.2 0-21.2-8-33.1-26.4-4.3-6.6-7.1-9.9-9-10.2zm174 5c-1.2-.2-2.4.4-3.8 1.7-2.3 2.3-2.7 4-2.6 10.7.5 9 4.8 19.2 11.8 24.6 4.4 3.3 13.2 6 20.4 5.8 6.8-1.1 18.8-6.6 15.3-10.3-2-1.6-5 .7-9.9.7-10.6 0-15.3-3.4-19.6-9-3.8-5-5.4-8.7-7.2-16.8-1.1-4.6-2.6-7.1-4.4-7.4zm-67.5 2.2a1 1 0 0 0-.4 0c-.4.1-.7.4-1.2.9-2.4 2-2.5 5.1-.2 12.6a41.4 41.4 0 0 0 25.3 22c7.6 1.7 14.5.6 20.3-2.7 3.8-2.4 5.3-5 4.4-7.3-4.8-2.9-7.7-1-13.3-1A39.5 39.5 0 0 1 424 435c-4.8-5.9-7-9.3-8-9.4zm-199 .8c-1 .3-1.4 2.7-1 7.2.3 5.3 1.3 8.2 4 12 3 4.5 11.5 11 14.7 11.7 2.5 1 6.9 2.3 10.7 2.3 3.8 0 8-.6 11.2-1.3 3.2-.7 6.8-2 10.3-4l1.3-.7c4-2.1 8-5.1 10.9-7.9l1.4-1.2c6.3-5.4 9.9-10.7 9.9-14.6 0-2.4-5.3-.5-14 5-16 9.8-31.1 13.2-40.9 9l-2.2-1.3-8.8-7.7a32.9 32.9 0 0 1-3.6-4.8c-1.4-2.2-2.5-3.4-3.3-3.7a1 1 0 0 0-.5 0z`,fill:`#71beea`}),l=(0,Y.jsx)(`path`,{d:`M221.6 468.8c-.5 0-.8.1-1.1.4-.3.2-.5.6-.6 1.2a10 10 0 0 0 .6 5.1 55 55 0 0 0 28.3 28.9 42.4 42.4 0 0 0 16.4 2c6.1-.2 12.3-1.4 16.6-3.4a48.3 48.3 0 0 0 13.7-10.6c.9-1 1.3-2 1.3-2.3 0-.6 0-.9-.3-1-.3-.3-.7-.4-1.6-.4-1.8 0-4.9.8-9.7 2.3-6.2 1.9-12.7 3-18.5 3.1-7.8.2-10.2-.4-17-3.7-4.5-2.2-12-7.7-17.7-12.8a232 232 0 0 0-7.2-6.3 63 63 0 0 0-2.4-2 12 12 0 0 0-.7-.4h-.1zm214.8 13.6c-.2 0-.5.7-.7 1.8v4a32 32 0 0 0 2.7 9.9 38.5 38.5 0 0 0 49.1 19.3c5.2-2.3 10-6.4 13-10.5 1.4-2.1 2.5-4.3 3-6.2.5-1.9.4-3.6-.3-4.9-.4-.8-.9-1.4-1.3-1.7-.3-.3-.6-.3-1-.2-.9.2-2.3 1.4-4.3 3.8-5 6.2-12.8 9.5-22.6 9.4-6.2 0-11-1.1-16-4.4-5-3.2-10.4-8.6-18-17.3-.8-1-1.7-2-2.5-2.4l-1-.6c-.1 0-.2 0 0 0zm-33.6 4.2-.6.2-1.4.7a53.5 53.5 0 0 0-4 2.5c-8 5.5-15.6 8.3-23.9 8.4-8.3 0-17.2-2.7-28-8.2a42 42 0 0 0-7.3-3c-2-.5-3.1-.5-3.6-.2-.2.1-.3.3-.4.6 0 .3 0 .8.2 1.5.4 1.3 1.4 3.1 3.1 5.5 4 5.4 10.5 10.1 19.7 14 9.3 3.9 23.8 3.5 32.4-1a42 42 0 0 0 9.1-6.5c2.6-2.6 4.5-6.5 5.3-9.6.5-1.5.6-3 .4-3.8 0-.4-.2-.7-.4-.9-.1-.2-.3-.2-.6-.2zm-132.5 30.8c-.3 0-.4 0-.5.2l-.1.5c0 .5.4 1.7 1.2 3.1a87.3 87.3 0 0 0 13.5 16.2c17 15.6 34.6 20.7 49 14.4a33.3 33.3 0 0 0 19-23c.4-2 .1-3.1-.2-3.5-.2-.2-.5-.3-1-.3l-1.7.5a24 24 0 0 0-5.7 4.6c-7.7 8-14.6 12-23 11.4-8.3-.4-18-5.2-31.7-14.3-5.2-3.4-9.4-6-12.5-7.6a15.5 15.5 0 0 0-6.3-2.2zm109.4 0c-.2 0-.3 0-.5.2-.1 0-.3.3-.4.7a9 9 0 0 0 0 3.3c.4 2.9 1.6 6.7 3.5 10.3 11 20.5 29.4 30.5 46.8 25.7a37.3 37.3 0 0 0 15.6-10c4.4-4.6 7.4-9.9 7.4-13.8 0-1.3-.1-2.3-.4-2.7 0-.3-.2-.4-.3-.4h-.5c-.6 0-1.5.4-2.7 1.2a57 57 0 0 0-4.7 3.7c-9 7.7-16.9 11.2-25.1 10-8.2-1.3-16.7-7.1-27-17.7a159.8 159.8 0 0 0-10.6-9.8 9.8 9.8 0 0 0-.9-.6l-.2-.1zm-140.2 43.5c-1 0-1.6.2-1.8.5-.2.4-.3 1 0 2.1.8 2.2 3.1 5.6 7.1 9.6a78.2 78.2 0 0 0 27.4 17.9c9.7 3.8 16.7 4.1 23.4 1.1 5.5-2.5 8.4-6.1 8.4-10.4a4 4 0 0 0-.4-2c-.3-.4-.6-.6-1-.7-.9-.1-2.5.4-4.6 1.8-2.7 2-6.4 2.3-11.3 1.2-5-1.2-11.3-3.8-19.5-8-8-4-17.5-9-21.3-11-2.9-1.4-5-2-6.4-2.1zm160.1 2.8c-.6-.1-1.7.2-3.1 1-1.4 1-3.2 2.3-5.2 4.1a58 58 0 0 1-12.7 8.7c-5.9 2.7-8.6 3.2-18.3 3.2-12.6 0-17.2-1.6-29.9-11.2a21 21 0 0 0-6.4-3.8c-.5 0-.5 0-.7.2-.2.3-.3 1-.3 2 0 2.2 1.5 5.7 3.8 9.2 2.4 3.4 5.7 7 9.2 9.5 8.1 6 14.3 7.8 26.2 7.4a34 34 0 0 0 18.3-4.1 51 51 0 0 0 13.1-9.8c3.8-3.8 6.5-8 7-10.7.4-2 .4-3.5.2-4.5a2 2 0 0 0-.5-1 1 1 0 0 0-.7-.2zm-2 21.4c-.5 0-.6 0-.8.4-.2.4-.3 1.2-.3 2.4 0 3.2 1.7 7.3 4.4 11 2.7 4 6.3 7.4 10 9.5a35 35 0 0 0 21.3 4.8c11-.9 17.8-3.4 23.8-12.6 1.5-2.5 2-4.8 1.4-6.7-.2-.7-.4-1.1-.8-1.4-.3-.2-.6-.3-1.2-.3-1 0-2.6.7-4.7 2.1-6 4.3-12 6.1-19.9 6.2-8.8 0-16.3-3-26.2-11-3.6-2.8-6-4.3-7-4.4zM290 605.5c-.6.3-.9.5-1 1a9 9 0 0 0 .1 3.3c1.8 11 13 25 24.4 30.2 8.5 4 20 4 28.5 0 7.7-3.5 16-11.1 19-17.3a25 25 0 0 0 2.2-6.3c.1-.7.1-1.3 0-1.6 0-.4-.2-.6-.4-.7-.3-.2-1.3-.2-2.8.5-1.6.7-3.6 2-6 4-10 8.2-18.6 12.1-27 11.4-8.6-.7-16.9-6-26.4-15.9a82.6 82.6 0 0 0-7.6-7.1 10 10 0 0 0-2-1.4c-.5-.2-.8-.2-1-.1z`,fill:`#309fdf`}),u=(0,Y.jsx)(`path`,{d:`M290 125.7a61.4 61.4 0 0 0-19 2.3c-19.9 5.7-33.5 15.8-36.5 52.2-3 36.6-18 45.5-20.3 46.7 14.7 26.7 38 24.5 30.1 59-2.4 11-17.6 23.5-32.8 46.5 34-27 56.4-48 99.6-100.5 0 0 39-47.6 25.1-77a52 52 0 0 0-46.1-29.2z`,fill:`#e9f2f1`}),d=(0,Y.jsx)(`path`,{d:`M288.5 120.8c-8.1 0-16.7 1.4-25.6 5.3-22.5 9.9-25 20.3-29.1 37a96.8 96.8 0 0 0-1.4 24.6 178 178 0 0 0-16.5-31.6s-19 19.8-36.5 18.6c-22.9-1.7-34 2-44.8 9.8-25.4 18.5-21.2 43.8-21.2 43.8s17.6-1.8 40.5 1c20.3 2.7 37.4 4.3 61.3 2.6 8.5-.6 15.8-10 19.3-19 4.5-4 2.9-22 4.8-24.5 3-3.4 8-4.7 10.6-5.2 3.7-.7 4.3 1.5 4.7 2.8a31 31 0 0 0 60.5-3.2c1-4.4 9-5 15.9-4.5 7 0 .9 15.9-1.7 22.3-5.4 13.2-24.9 39-24.9 39l124.3-85s-45.8 22-61.5 20c-19.7-2.3-25.7-34.8-43.2-44-9.9-5.1-22-9.6-35.5-9.8zm1.4 9.4a48.2 48.2 0 0 1 40.6 23.5c3.7 7.1 6.2 17-.3 20.2-7.6 3.7-14.7.7-15.5-2.8a31 31 0 0 0-30.2-24.1 30 30 0 0 0-30.8 27.4c-.4 5.2-9.1 7.7-12.7 3.7-2.7-3 1.7-16.8 3.7-22 6.2-16.2 27.8-25.7 45.2-26zm5.6 27.8a5.5 5.5 0 1 1 0 11 5.5 5.5 0 0 1 0-11zm-22 29a5.5 5.5 0 1 1 0 11 5.5 5.5 0 0 1 0-11zm40 523.4c-2.6-1.8-15.1 23.5-20 59-6.8 49-8.3 63.2-14.2 96-6 32.7-12.6 66.3-13.4 73.7-.6 4.8-1.7 19-.6 20.1 3.2 3.3 14.7-31.7 16.8-42 2-10.3 7.7-40.7 14.2-86.9 6.4-46.1 8.5-69.6 13.1-91.5 4.7-22 6.7-26.6 4.2-28.4zm66.3-27c-4.1-1.3-10.5 24.6-13.1 37.8-5.6 28.6-6.2 64-8.4 87a1099 1099 0 0 1-12 87.4c-2.7 15-8 29.4-9.8 44.6-1 9-5.2 26-.2 27.3 5.2 1.5 15.4-36.5 20-55.7 8.1-32.9 10.7-65.6 14.2-99.3 3.3-30.7 4.6-62.8 6.5-93.6.7-18.5 5.1-34.5 2.8-35.6z`,fill:`#0e254f`}),t[2]=a,t[3]=o,t[4]=s,t[5]=c,t[6]=l,t[7]=u,t[8]=d):(a=t[2],o=t[3],s=t[4],c=t[5],l=t[6],u=t[7],d=t[8]);let f;t[9]===i?f=t[10]:(f=(0,Y.jsx)(`defs`,{children:(0,Y.jsxs)(`g`,{id:i,children:[a,o,s,c,l,u,d]})}),t[9]=i,t[10]=f);let p;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,Y.jsx)(`rect`,{width:`1024`,height:`1024`,rx:`270`,fill:`#a7bcd9`}),t[11]=p):p=t[11];let m=`#${i}`,h;t[12]===m?h=t[13]:(h=(0,Y.jsx)(`use`,{href:m,transform:`matrix(-1 0 0 1 1024 0)`}),t[12]=m,t[13]=h);let g=`#${i}`,_;t[14]===g?_=t[15]:(_=(0,Y.jsx)(`use`,{href:g}),t[14]=g,t[15]=_);let v;return t[16]!==e||t[17]!==h||t[18]!==_||t[19]!==f?(v=(0,Y.jsxs)(`svg`,{...e,viewBox:`0 0 1024 1024`,children:[f,p,h,_]}),t[16]=e,t[17]=h,t[18]=_,t[19]=f,t[20]=v):v=t[20],v},cv=e=>{let t=(0,X.c)(6),n,r,i,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,Y.jsx)(`path`,{d:`m31.46 12.78-.04-.12-4.35-11.35A1.14 1.14 0 0 0 25.94.6c-.24 0-.47.1-.66.24-.19.15-.33.36-.39.6l-2.94 9h-11.9l-2.94-9A1.14 1.14 0 0 0 6.07.58a1.15 1.15 0 0 0-1.14.72L.58 12.68l-.05.11a8.1 8.1 0 0 0 2.68 9.34l.02.01.04.03 6.63 4.97 3.28 2.48 2 1.52a1.35 1.35 0 0 0 1.62 0l2-1.52 3.28-2.48 6.67-5h.02a8.09 8.09 0 0 0 2.7-9.36Z`,fill:`#E24329`}),r=(0,Y.jsx)(`path`,{d:`m31.46 12.78-.04-.12a14.75 14.75 0 0 0-5.86 2.64l-9.55 7.24 6.09 4.6 6.67-5h.02a8.09 8.09 0 0 0 2.67-9.36Z`,fill:`#FC6D26`}),i=(0,Y.jsx)(`path`,{d:`m9.9 27.14 3.28 2.48 2 1.52a1.35 1.35 0 0 0 1.62 0l2-1.52 3.28-2.48-6.1-4.6-6.07 4.6Z`,fill:`#FCA326`}),a=(0,Y.jsx)(`path`,{d:`M6.44 15.3a14.71 14.71 0 0 0-5.86-2.63l-.05.12a8.1 8.1 0 0 0 2.68 9.34l.02.01.04.03 6.63 4.97 6.1-4.6-9.56-7.24Z`,fill:`#FC6D26`}),t[0]=n,t[1]=r,t[2]=i,t[3]=a):(n=t[0],r=t[1],i=t[2],a=t[3]);let o;return t[4]===e?o=t[5]:(o=(0,Y.jsxs)(`svg`,{...e,viewBox:`0 0 32 32`,fill:`none`,children:[n,r,i,a]}),t[4]=e,t[5]=o),o},lv=e=>{let t=(0,X.c)(34),n=(0,J.useId)(),r;t[0]===n?r=t[1]:(r=n.replaceAll(`:`,``),t[0]=n,t[1]=r);let i=r,a=`${i}-azure-a`,o=`${i}-azure-b`,s=`${i}-azure-c`,c,l;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,Y.jsx)(`stop`,{offset:`0`,stopColor:`#114a8b`}),l=(0,Y.jsx)(`stop`,{offset:`1`,stopColor:`#0669bc`}),t[2]=c,t[3]=l):(c=t[2],l=t[3]);let u;t[4]===a?u=t[5]:(u=(0,Y.jsxs)(`linearGradient`,{id:a,x1:`-1032.17`,x2:`-1059.21`,y1:`145.31`,y2:`65.43`,gradientTransform:`matrix(1 0 0 -1 1075 158)`,gradientUnits:`userSpaceOnUse`,children:[c,l]}),t[4]=a,t[5]=u);let d,f,p,m,h;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,Y.jsx)(`stop`,{offset:`0`,stopOpacity:`.3`}),f=(0,Y.jsx)(`stop`,{offset:`.07`,stopOpacity:`.2`}),p=(0,Y.jsx)(`stop`,{offset:`.32`,stopOpacity:`.1`}),m=(0,Y.jsx)(`stop`,{offset:`.62`,stopOpacity:`.05`}),h=(0,Y.jsx)(`stop`,{offset:`1`,stopOpacity:`0`}),t[6]=d,t[7]=f,t[8]=p,t[9]=m,t[10]=h):(d=t[6],f=t[7],p=t[8],m=t[9],h=t[10]);let g;t[11]===o?g=t[12]:(g=(0,Y.jsxs)(`linearGradient`,{id:o,x1:`-1023.73`,x2:`-1029.98`,y1:`108.08`,y2:`105.97`,gradientTransform:`matrix(1 0 0 -1 1075 158)`,gradientUnits:`userSpaceOnUse`,children:[d,f,p,m,h]}),t[11]=o,t[12]=g);let _,v;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(_=(0,Y.jsx)(`stop`,{offset:`0`,stopColor:`#3ccbf4`}),v=(0,Y.jsx)(`stop`,{offset:`1`,stopColor:`#2892df`}),t[13]=_,t[14]=v):(_=t[13],v=t[14]);let y;t[15]===s?y=t[16]:(y=(0,Y.jsxs)(`linearGradient`,{id:s,x1:`-1027.16`,x2:`-997.48`,y1:`147.64`,y2:`68.56`,gradientTransform:`matrix(1 0 0 -1 1075 158)`,gradientUnits:`userSpaceOnUse`,children:[_,v]}),t[15]=s,t[16]=y);let b;t[17]!==g||t[18]!==y||t[19]!==u?(b=(0,Y.jsxs)(`defs`,{children:[u,g,y]}),t[17]=g,t[18]=y,t[19]=u,t[20]=b):b=t[20];let x=`url(#${a})`,S;t[21]===x?S=t[22]:(S=(0,Y.jsx)(`path`,{fill:x,d:`M33.34 6.54h26.04l-27.03 80.1a4.15 4.15 0 0 1-3.94 2.81H8.15a4.14 4.14 0 0 1-3.93-5.47L29.4 9.38a4.15 4.15 0 0 1 3.94-2.83z`}),t[21]=x,t[22]=S);let C;t[23]===Symbol.for(`react.memo_cache_sentinel`)?(C=(0,Y.jsx)(`path`,{fill:`#0078d4`,d:`M71.17 60.26H29.88a1.91 1.91 0 0 0-1.3 3.31l26.53 24.76a4.17 4.17 0 0 0 2.85 1.13h23.38z`}),t[23]=C):C=t[23];let w=`url(#${o})`,T;t[24]===w?T=t[25]:(T=(0,Y.jsx)(`path`,{fill:w,d:`M33.34 6.54a4.12 4.12 0 0 0-3.95 2.88L4.25 83.92a4.14 4.14 0 0 0 3.91 5.54h20.79a4.44 4.44 0 0 0 3.4-2.9l5.02-14.78 17.91 16.7a4.24 4.24 0 0 0 2.67.97h23.29L71.02 60.26H41.24L59.47 6.55z`}),t[24]=w,t[25]=T);let E=`url(#${s})`,D;t[26]===E?D=t[27]:(D=(0,Y.jsx)(`path`,{fill:E,d:`M66.6 9.36a4.14 4.14 0 0 0-3.93-2.82H33.65a4.15 4.15 0 0 1 3.93 2.82l25.18 74.62a4.15 4.15 0 0 1-3.93 5.48h29.02a4.15 4.15 0 0 0 3.93-5.48z`}),t[26]=E,t[27]=D);let O;return t[28]!==e||t[29]!==b||t[30]!==S||t[31]!==T||t[32]!==D?(O=(0,Y.jsxs)(`svg`,{...e,viewBox:`0 0 96 96`,children:[b,S,C,T,D]}),t[28]=e,t[29]=b,t[30]=S,t[31]=T,t[32]=D,t[33]=O):O=t[33],O},uv=e=>{let t=(0,X.c)(14),n=(0,J.useId)(),r;t[0]===n?r=t[1]:(r=n.replaceAll(`:`,``),t[0]=n,t[1]=r);let i=`${r}-bitbucket-a`,a,o;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,Y.jsx)(`path`,{fill:`none`,d:`M989.97,1493.09h518.05l125.04-730.04H852.22L989.97,1493.09z`}),o=(0,Y.jsx)(`path`,{fill:`#2684FF`,d:`M88.92,14.4C45.02,13.83,8.97,48.96,8.41,92.86c-0.06,4.61,0.28,9.22,1.02,13.77l337.48,2048.72 c8.68,51.75,53.26,89.8,105.74,90.24h1619.03c39.38,0.5,73.19-27.9,79.49-66.78l337.49-2071.78c7.03-43.34-22.41-84.17-65.75-91.2 c-4.55-0.74-9.15-1.08-13.76-1.02L88.92,14.4z M1509.99,1495.09H993.24l-139.92-731h781.89L1509.99,1495.09z`}),t[2]=a,t[3]=o):(a=t[2],o=t[3]);let s,c;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,Y.jsx)(`stop`,{offset:`0.18`,stopColor:`#0052CC`}),c=(0,Y.jsx)(`stop`,{offset:`1`,stopColor:`#2684FF`}),t[4]=s,t[5]=c):(s=t[4],c=t[5]);let l;t[6]===i?l=t[7]:(l=(0,Y.jsxs)(`linearGradient`,{id:i,gradientUnits:`userSpaceOnUse`,x1:`945.1094`,y1:`1524.8389`,x2:`944.4923`,y2:`1524.1893`,gradientTransform:`matrix(1996.6343 0 0 -1480.3047 -1884485.625 2258195)`,children:[s,c]}),t[6]=i,t[7]=l);let u=`url(#${i})`,d;t[8]===u?d=t[9]:(d=(0,Y.jsx)(`path`,{fill:u,d:`M2379.27,763.06h-745.5l-125.12,730.42H992.31l-609.67,723.67c19.32,16.71,43.96,26,69.5,26.21h1618.13 c39.35,0.51,73.14-27.88,79.44-66.72L2379.27,763.06z`}),t[8]=u,t[9]=d);let f;return t[10]!==e||t[11]!==l||t[12]!==d?(f=(0,Y.jsxs)(`svg`,{...e,viewBox:`8.4 14.39 2481.29 2231.21`,children:[a,o,l,d]}),t[10]=e,t[11]=l,t[12]=d,t[13]=f):f=t[13],f},dv=e=>{let t=(0,X.c)(9),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=q(`fill-[#26251E] dark:fill-[#EDECEC]`,n),t[3]=n,t[4]=i);let a;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,Y.jsx)(`path`,{d:`M457.43,125.94L244.42,2.96c-6.84-3.95-15.28-3.95-22.12,0L9.3,125.94c-5.75,3.32-9.3,9.46-9.3,16.11v247.99c0,6.65,3.55,12.79,9.3,16.11l213.01,122.98c6.84,3.95,15.28,3.95,22.12,0l213.01-122.98c5.75-3.32,9.3-9.46,9.3-16.11v-247.99c0-6.65-3.55-12.79-9.3-16.11h-.01ZM444.05,151.99l-205.63,356.16c-1.39,2.4-5.06,1.42-5.06-1.36v-233.21c0-4.66-2.49-8.97-6.53-11.31L24.87,145.67c-2.4-1.39-1.42-5.06,1.36-5.06h411.26c5.84,0,9.49,6.33,6.57,11.39h-.01Z`}),t[5]=a):a=t[5];let o;return t[6]!==r||t[7]!==i?(o=(0,Y.jsx)(`svg`,{...r,viewBox:`0 0 466.73 532.09`,className:i,children:a}),t[6]=r,t[7]=i,t[8]=o):o=t[8],o},fv=e=>{let t=(0,X.c)(10),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=q(`fill-[#0F0F0F] dark:fill-[#F5F5F5]`,n),t[3]=n,t[4]=i);let a,o;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,Y.jsx)(`path`,{d:`M9.26905 15.284L17.2479 9.36086C17.6391 9.07047 18.1981 9.18374 18.3845 9.63478C19.3655 12.0135 18.9272 14.8721 16.9755 16.8349C15.0238 18.7976 12.3082 19.228 9.8261 18.2477L7.1146 19.5102C11.0037 22.1834 15.7263 21.5223 18.6774 18.5525C21.0182 16.1985 21.7432 12.9897 21.0653 10.0961L21.0714 10.1023C20.0884 5.85143 21.3131 4.15233 23.8218 0.677913C23.8812 0.595532 23.9406 0.513151 24 0.428711L20.6987 3.74866V3.73836L9.267 15.2861`}),o=(0,Y.jsx)(`path`,{d:`M7.62249 16.7237C4.83113 14.0422 5.3124 9.89222 7.69417 7.49905C9.45541 5.72786 12.341 5.00497 14.86 6.06768L17.5653 4.81138C17.0779 4.45714 16.4533 4.07613 15.7365 3.80839C12.4966 2.46764 8.6178 3.13492 5.98413 5.78141C3.45081 8.32904 2.65415 12.2463 4.02219 15.5889C5.04412 18.0871 3.36889 19.8541 1.68137 21.6377C1.08337 22.2699 0.483318 22.9022 0 23.5716L7.62045 16.7257`}),t[5]=a,t[6]=o):(a=t[5],o=t[6]);let s;return t[7]!==r||t[8]!==i?(s=(0,Y.jsxs)(`svg`,{...r,viewBox:`0 0 24 24`,fill:`none`,className:i,children:[a,o]}),t[7]=r,t[8]=i,t[9]=s):s=t[9],s},iae=e=>{let t=(0,X.c)(8),n,r,i,a,o,s;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,Y.jsx)(`rect`,{x:`1`,y:`4`,width:`3`,height:`14`}),r=(0,Y.jsx)(`rect`,{x:`4`,y:`18`,width:`18`,height:`3`}),i=(0,Y.jsx)(`rect`,{x:`4`,y:`4`,width:`18`,height:`3`}),a=(0,Y.jsx)(`rect`,{x:`19`,y:`7`,width:`3`,height:`11`}),o=(0,Y.jsx)(`path`,{d:`M11 10L13 12L11 14L9 12Z`}),s=(0,Y.jsx)(`path`,{d:`M16 10L18 12L16 14L14 12Z`}),t[0]=n,t[1]=r,t[2]=i,t[3]=a,t[4]=o,t[5]=s):(n=t[0],r=t[1],i=t[2],a=t[3],o=t[4],s=t[5]);let c;return t[6]===e?c=t[7]:(c=(0,Y.jsxs)(`svg`,{...e,viewBox:`0 0 24 24`,fill:`currentColor`,children:[n,r,i,a,o,s]}),t[6]=e,t[7]=c),c},aae=e=>{let t=(0,X.c)(6),n,r,i,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,Y.jsx)(`rect`,{width:`1200`,height:`1200`,rx:`260`,fill:`#9046FF`}),r=(0,Y.jsx)(`path`,{d:`M398.554 818.914C316.315 1001.03 491.477 1046.74 620.672 940.156C658.687 1059.66 801.052 970.473 852.234 877.795C964.787 673.567 919.318 465.357 907.64 422.374C827.637 129.443 427.623 128.946 358.8 423.865C342.651 475.544 342.402 534.18 333.458 595.051C328.986 625.86 325.507 645.488 313.83 677.785C306.873 696.424 297.68 712.819 282.773 740.645C259.915 783.881 269.604 867.113 387.87 823.883L399.051 818.914H398.554Z`,fill:`#fff`}),i=(0,Y.jsx)(`path`,{d:`M636.123 549.353C603.328 549.353 598.359 510.097 598.359 486.742C598.359 465.623 602.086 448.977 609.293 438.293C615.504 428.852 624.697 424.131 636.123 424.131C647.555 424.131 657.492 428.852 664.447 438.541C672.398 449.474 676.623 466.12 676.623 486.742C676.623 525.998 661.471 549.353 636.375 549.353H636.123Z`,fill:`#000`}),a=(0,Y.jsx)(`path`,{d:`M771.24 549.353C738.445 549.353 733.477 510.097 733.477 486.742C733.477 465.623 737.203 448.977 744.41 438.293C750.621 428.852 759.814 424.131 771.24 424.131C782.672 424.131 792.609 428.852 799.564 438.541C807.516 449.474 811.74 466.12 811.74 486.742C811.74 525.998 796.588 549.353 771.492 549.353H771.24Z`,fill:`#000`}),t[0]=n,t[1]=r,t[2]=i,t[3]=a):(n=t[0],r=t[1],i=t[2],a=t[3]);let o;return t[4]===e?o=t[5]:(o=(0,Y.jsxs)(`svg`,{...e,viewBox:`0 0 1200 1200`,fill:`none`,children:[n,r,i,a]}),t[4]=e,t[5]=o),o},oae=e=>{let t=(0,X.c)(49),n=(0,J.useId)(),r=`${n}-vscode-a`,i=`${n}-vscode-b`,a=`${n}-vscode-c`,o=`${n}-vscode-d`,s;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,Y.jsx)(`path`,{fill:`#fff`,fillRule:`evenodd`,d:`M70.912 99.317a6.223 6.223 0 0 0 4.96-.19l20.589-9.907A6.25 6.25 0 0 0 100 83.587V16.413a6.25 6.25 0 0 0-3.54-5.632L75.874.874a6.226 6.226 0 0 0-7.104 1.21L29.355 38.04 12.187 25.01a4.162 4.162 0 0 0-5.318.236l-5.506 5.009a4.168 4.168 0 0 0-.004 6.162L16.247 50 1.36 63.583a4.168 4.168 0 0 0 .004 6.162l5.506 5.01a4.162 4.162 0 0 0 5.318.236l17.168-13.032L68.77 97.917a6.217 6.217 0 0 0 2.143 1.4ZM75.015 27.3 45.11 50l29.906 22.701V27.3Z`,clipRule:`evenodd`}),t[0]=s):s=t[0];let c;t[1]===r?c=t[2]:(c=(0,Y.jsx)(`mask`,{id:r,width:`100`,height:`100`,x:`0`,y:`0`,maskUnits:`userSpaceOnUse`,children:s}),t[1]=r,t[2]=c);let l=`url(#${r})`,u;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,Y.jsx)(`path`,{fill:`#0065A9`,d:`M96.461 10.796 75.857.876a6.23 6.23 0 0 0-7.107 1.207l-67.451 61.5a4.167 4.167 0 0 0 .004 6.162l5.51 5.009a4.167 4.167 0 0 0 5.32.236l81.228-61.62c2.725-2.067 6.639-.124 6.639 3.297v-.24a6.25 6.25 0 0 0-3.539-5.63Z`}),t[3]=u):u=t[3];let d=`url(#${i})`,f;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(f=(0,Y.jsx)(`path`,{fill:`#007ACC`,d:`m96.461 89.204-20.604 9.92a6.229 6.229 0 0 1-7.107-1.207l-67.451-61.5a4.167 4.167 0 0 1 .004-6.162l5.51-5.009a4.167 4.167 0 0 1 5.32-.236l81.228 61.62c2.725 2.067 6.639.124 6.639-3.297v.24a6.25 6.25 0 0 1-3.539 5.63Z`}),t[4]=f):f=t[4];let p;t[5]===d?p=t[6]:(p=(0,Y.jsx)(`g`,{filter:d,children:f}),t[5]=d,t[6]=p);let m=`url(#${a})`,h;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,Y.jsx)(`path`,{fill:`#1F9CF0`,d:`M75.858 99.126a6.232 6.232 0 0 1-7.108-1.21c2.306 2.307 6.25.674 6.25-2.588V4.672c0-3.262-3.944-4.895-6.25-2.589a6.232 6.232 0 0 1 7.108-1.21l20.6 9.908A6.25 6.25 0 0 1 100 16.413v67.174a6.25 6.25 0 0 1-3.541 5.633l-20.601 9.906Z`}),t[7]=h):h=t[7];let g;t[8]===m?g=t[9]:(g=(0,Y.jsx)(`g`,{filter:m,children:h}),t[8]=m,t[9]=g);let _=`url(#${o})`,v;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(v={mixBlendMode:`overlay`},t[10]=v):v=t[10];let y;t[11]===_?y=t[12]:(y=(0,Y.jsx)(`path`,{fill:_,fillRule:`evenodd`,d:`M70.851 99.317a6.224 6.224 0 0 0 4.96-.19L96.4 89.22a6.25 6.25 0 0 0 3.54-5.633V16.413a6.25 6.25 0 0 0-3.54-5.632L75.812.874a6.226 6.226 0 0 0-7.104 1.21L29.294 38.04 12.126 25.01a4.162 4.162 0 0 0-5.317.236l-5.507 5.009a4.168 4.168 0 0 0-.004 6.162L16.186 50 1.298 63.583a4.168 4.168 0 0 0 .004 6.162l5.507 5.009a4.162 4.162 0 0 0 5.317.236L29.294 61.96l39.414 35.958a6.218 6.218 0 0 0 2.143 1.4ZM74.954 27.3 45.048 50l29.906 22.701V27.3Z`,clipRule:`evenodd`,opacity:`.25`,style:v}),t[11]=_,t[12]=y);let b;t[13]!==y||t[14]!==l||t[15]!==p||t[16]!==g?(b=(0,Y.jsxs)(`g`,{mask:l,children:[u,p,g,y]}),t[13]=y,t[14]=l,t[15]=p,t[16]=g,t[17]=b):b=t[17];let x,S,C,w,T,E,D;t[18]===Symbol.for(`react.memo_cache_sentinel`)?(x=(0,Y.jsx)(`feFlood`,{floodOpacity:`0`,result:`BackgroundImageFix`}),S=(0,Y.jsx)(`feColorMatrix`,{in:`SourceAlpha`,values:`0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0`}),C=(0,Y.jsx)(`feOffset`,{}),w=(0,Y.jsx)(`feGaussianBlur`,{stdDeviation:`4.167`}),T=(0,Y.jsx)(`feColorMatrix`,{values:`0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0`}),E=(0,Y.jsx)(`feBlend`,{in2:`BackgroundImageFix`,mode:`overlay`,result:`effect1_dropShadow`}),D=(0,Y.jsx)(`feBlend`,{in:`SourceGraphic`,in2:`effect1_dropShadow`,result:`shape`}),t[18]=x,t[19]=S,t[20]=C,t[21]=w,t[22]=T,t[23]=E,t[24]=D):(x=t[18],S=t[19],C=t[20],w=t[21],T=t[22],E=t[23],D=t[24]);let O;t[25]===i?O=t[26]:(O=(0,Y.jsxs)(`filter`,{id:i,width:`116.727`,height:`92.246`,x:`-8.394`,y:`15.829`,colorInterpolationFilters:`sRGB`,filterUnits:`userSpaceOnUse`,children:[x,S,C,w,T,E,D]}),t[25]=i,t[26]=O);let k,A,j,M,N,P,F;t[27]===Symbol.for(`react.memo_cache_sentinel`)?(k=(0,Y.jsx)(`feFlood`,{floodOpacity:`0`,result:`BackgroundImageFix`}),A=(0,Y.jsx)(`feColorMatrix`,{in:`SourceAlpha`,values:`0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0`}),j=(0,Y.jsx)(`feOffset`,{}),M=(0,Y.jsx)(`feGaussianBlur`,{stdDeviation:`4.167`}),N=(0,Y.jsx)(`feColorMatrix`,{values:`0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0`}),P=(0,Y.jsx)(`feBlend`,{in2:`BackgroundImageFix`,mode:`overlay`,result:`effect1_dropShadow`}),F=(0,Y.jsx)(`feBlend`,{in:`SourceGraphic`,in2:`effect1_dropShadow`,result:`shape`}),t[27]=k,t[28]=A,t[29]=j,t[30]=M,t[31]=N,t[32]=P,t[33]=F):(k=t[27],A=t[28],j=t[29],M=t[30],N=t[31],P=t[32],F=t[33]);let I;t[34]===a?I=t[35]:(I=(0,Y.jsxs)(`filter`,{id:a,width:`47.917`,height:`116.151`,x:`60.417`,y:`-8.076`,colorInterpolationFilters:`sRGB`,filterUnits:`userSpaceOnUse`,children:[k,A,j,M,N,P,F]}),t[34]=a,t[35]=I);let L,R;t[36]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,Y.jsx)(`stop`,{stopColor:`#fff`}),R=(0,Y.jsx)(`stop`,{offset:`1`,stopColor:`#fff`,stopOpacity:`0`}),t[36]=L,t[37]=R):(L=t[36],R=t[37]);let z;t[38]===o?z=t[39]:(z=(0,Y.jsxs)(`linearGradient`,{id:o,x1:`49.939`,x2:`49.939`,y1:`.258`,y2:`99.742`,gradientUnits:`userSpaceOnUse`,children:[L,R]}),t[38]=o,t[39]=z);let B;t[40]!==O||t[41]!==I||t[42]!==z?(B=(0,Y.jsxs)(`defs`,{children:[O,I,z]}),t[40]=O,t[41]=I,t[42]=z,t[43]=B):B=t[43];let V;return t[44]!==e||t[45]!==c||t[46]!==b||t[47]!==B?(V=(0,Y.jsxs)(`svg`,{...e,fill:`none`,viewBox:`0 0 100 100`,children:[c,b,B]}),t[44]=e,t[45]=c,t[46]=b,t[47]=B,t[48]=V):V=t[48],V},sae=e=>{let t=(0,X.c)(49),n=(0,J.useId)(),r=`${n}-vscode-insiders-a`,i=`${n}-vscode-insiders-b`,a=`${n}-vscode-insiders-c`,o=`${n}-vscode-insiders-d`,s;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,Y.jsx)(`path`,{fill:`#fff`,fillRule:`evenodd`,d:`M70.912 99.317a6.223 6.223 0 0 0 4.96-.19l20.589-9.907A6.25 6.25 0 0 0 100 83.587V16.413a6.25 6.25 0 0 0-3.54-5.632L75.874.874a6.226 6.226 0 0 0-7.104 1.21L29.355 38.04 12.187 25.01a4.162 4.162 0 0 0-5.318.236l-5.506 5.009a4.168 4.168 0 0 0-.004 6.162L16.247 50 1.36 63.583a4.168 4.168 0 0 0 .004 6.162l5.506 5.01a4.162 4.162 0 0 0 5.318.236l17.168-13.032L68.77 97.917a6.217 6.217 0 0 0 2.143 1.4ZM75.015 27.3 45.11 50l29.906 22.701V27.3Z`,clipRule:`evenodd`}),t[0]=s):s=t[0];let c;t[1]===r?c=t[2]:(c=(0,Y.jsx)(`mask`,{id:r,width:`100`,height:`100`,x:`0`,y:`0`,maskUnits:`userSpaceOnUse`,children:s}),t[1]=r,t[2]=c);let l=`url(#${r})`,u;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,Y.jsx)(`path`,{fill:`#009a7c`,d:`M96.461 10.796 75.857.876a6.23 6.23 0 0 0-7.107 1.207l-67.451 61.5a4.167 4.167 0 0 0 .004 6.162l5.51 5.009a4.167 4.167 0 0 0 5.32.236l81.228-61.62c2.725-2.067 6.639-.124 6.639 3.297v-.24a6.25 6.25 0 0 0-3.539-5.63Z`}),t[3]=u):u=t[3];let d=`url(#${i})`,f;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(f=(0,Y.jsx)(`path`,{fill:`#00b294`,d:`m96.461 89.204-20.604 9.92a6.229 6.229 0 0 1-7.107-1.207l-67.451-61.5a4.167 4.167 0 0 1 .004-6.162l5.51-5.009a4.167 4.167 0 0 1 5.32-.236l81.228 61.62c2.725 2.067 6.639.124 6.639-3.297v.24a6.25 6.25 0 0 1-3.539 5.63Z`}),t[4]=f):f=t[4];let p;t[5]===d?p=t[6]:(p=(0,Y.jsx)(`g`,{filter:d,children:f}),t[5]=d,t[6]=p);let m=`url(#${a})`,h;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,Y.jsx)(`path`,{fill:`#24bfa5`,d:`M75.858 99.126a6.232 6.232 0 0 1-7.108-1.21c2.306 2.307 6.25.674 6.25-2.588V4.672c0-3.262-3.944-4.895-6.25-2.589a6.232 6.232 0 0 1 7.108-1.21l20.6 9.908A6.25 6.25 0 0 1 100 16.413v67.174a6.25 6.25 0 0 1-3.541 5.633l-20.601 9.906Z`}),t[7]=h):h=t[7];let g;t[8]===m?g=t[9]:(g=(0,Y.jsx)(`g`,{filter:m,children:h}),t[8]=m,t[9]=g);let _=`url(#${o})`,v;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(v={mixBlendMode:`overlay`},t[10]=v):v=t[10];let y;t[11]===_?y=t[12]:(y=(0,Y.jsx)(`path`,{fill:_,fillRule:`evenodd`,d:`M70.851 99.317a6.224 6.224 0 0 0 4.96-.19L96.4 89.22a6.25 6.25 0 0 0 3.54-5.633V16.413a6.25 6.25 0 0 0-3.54-5.632L75.812.874a6.226 6.226 0 0 0-7.104 1.21L29.294 38.04 12.126 25.01a4.162 4.162 0 0 0-5.317.236l-5.507 5.009a4.168 4.168 0 0 0-.004 6.162L16.186 50 1.298 63.583a4.168 4.168 0 0 0 .004 6.162l5.507 5.009a4.162 4.162 0 0 0 5.317.236L29.294 61.96l39.414 35.958a6.218 6.218 0 0 0 2.143 1.4ZM74.954 27.3 45.048 50l29.906 22.701V27.3Z`,clipRule:`evenodd`,opacity:`.25`,style:v}),t[11]=_,t[12]=y);let b;t[13]!==y||t[14]!==l||t[15]!==p||t[16]!==g?(b=(0,Y.jsxs)(`g`,{mask:l,children:[u,p,g,y]}),t[13]=y,t[14]=l,t[15]=p,t[16]=g,t[17]=b):b=t[17];let x,S,C,w,T,E,D;t[18]===Symbol.for(`react.memo_cache_sentinel`)?(x=(0,Y.jsx)(`feFlood`,{floodOpacity:`0`,result:`BackgroundImageFix`}),S=(0,Y.jsx)(`feColorMatrix`,{in:`SourceAlpha`,values:`0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0`}),C=(0,Y.jsx)(`feOffset`,{}),w=(0,Y.jsx)(`feGaussianBlur`,{stdDeviation:`4.167`}),T=(0,Y.jsx)(`feColorMatrix`,{values:`0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0`}),E=(0,Y.jsx)(`feBlend`,{in2:`BackgroundImageFix`,mode:`overlay`,result:`effect1_dropShadow`}),D=(0,Y.jsx)(`feBlend`,{in:`SourceGraphic`,in2:`effect1_dropShadow`,result:`shape`}),t[18]=x,t[19]=S,t[20]=C,t[21]=w,t[22]=T,t[23]=E,t[24]=D):(x=t[18],S=t[19],C=t[20],w=t[21],T=t[22],E=t[23],D=t[24]);let O;t[25]===i?O=t[26]:(O=(0,Y.jsxs)(`filter`,{id:i,width:`116.727`,height:`92.246`,x:`-8.394`,y:`15.829`,colorInterpolationFilters:`sRGB`,filterUnits:`userSpaceOnUse`,children:[x,S,C,w,T,E,D]}),t[25]=i,t[26]=O);let k,A,j,M,N,P,F;t[27]===Symbol.for(`react.memo_cache_sentinel`)?(k=(0,Y.jsx)(`feFlood`,{floodOpacity:`0`,result:`BackgroundImageFix`}),A=(0,Y.jsx)(`feColorMatrix`,{in:`SourceAlpha`,values:`0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0`}),j=(0,Y.jsx)(`feOffset`,{}),M=(0,Y.jsx)(`feGaussianBlur`,{stdDeviation:`4.167`}),N=(0,Y.jsx)(`feColorMatrix`,{values:`0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0`}),P=(0,Y.jsx)(`feBlend`,{in2:`BackgroundImageFix`,mode:`overlay`,result:`effect1_dropShadow`}),F=(0,Y.jsx)(`feBlend`,{in:`SourceGraphic`,in2:`effect1_dropShadow`,result:`shape`}),t[27]=k,t[28]=A,t[29]=j,t[30]=M,t[31]=N,t[32]=P,t[33]=F):(k=t[27],A=t[28],j=t[29],M=t[30],N=t[31],P=t[32],F=t[33]);let I;t[34]===a?I=t[35]:(I=(0,Y.jsxs)(`filter`,{id:a,width:`47.917`,height:`116.151`,x:`60.417`,y:`-8.076`,colorInterpolationFilters:`sRGB`,filterUnits:`userSpaceOnUse`,children:[k,A,j,M,N,P,F]}),t[34]=a,t[35]=I);let L,R;t[36]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,Y.jsx)(`stop`,{stopColor:`#fff`}),R=(0,Y.jsx)(`stop`,{offset:`1`,stopColor:`#fff`,stopOpacity:`0`}),t[36]=L,t[37]=R):(L=t[36],R=t[37]);let z;t[38]===o?z=t[39]:(z=(0,Y.jsxs)(`linearGradient`,{id:o,x1:`49.939`,x2:`49.939`,y1:`.258`,y2:`99.742`,gradientUnits:`userSpaceOnUse`,children:[L,R]}),t[38]=o,t[39]=z);let B;t[40]!==O||t[41]!==I||t[42]!==z?(B=(0,Y.jsxs)(`defs`,{children:[O,I,z]}),t[40]=O,t[41]=I,t[42]=z,t[43]=B):B=t[43];let V;return t[44]!==e||t[45]!==c||t[46]!==b||t[47]!==B?(V=(0,Y.jsxs)(`svg`,{...e,fill:`none`,viewBox:`0 0 100 100`,children:[c,b,B]}),t[44]=e,t[45]=c,t[46]=b,t[47]=B,t[48]=V):V=t[48],V},cae=e=>{let t=(0,X.c)(10),n=`${(0,J.useId)()}-vscodium-gradient`,r,i;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,Y.jsx)(`stop`,{offset:`0`,stopColor:`#62A0EA`}),i=(0,Y.jsx)(`stop`,{offset:`1`,stopColor:`#1A5FB4`}),t[0]=r,t[1]=i):(r=t[0],i=t[1]);let a;t[2]===n?a=t[3]:(a=(0,Y.jsx)(`defs`,{children:(0,Y.jsxs)(`linearGradient`,{id:n,x1:`0`,x2:`100`,y1:`0`,y2:`100`,gradientUnits:`userSpaceOnUse`,children:[r,i]})}),t[2]=n,t[3]=a);let o=`url(#${n})`,s;t[4]===o?s=t[5]:(s=(0,Y.jsx)(`path`,{fill:o,d:`M48.26 2.274C45.406 4.105 44.583 7.898 46.422 10.742C56.531 26.397 58.917 38.205 57.882 48.553C53.698 68.369 44.603 72.389 36.655 72.389C28.895 72.389 30.973 59.618 36.806 55.88C40.288 53.706 44.748 52.293 48.171 52.293C51.563 52.293 54.313 49.552 54.313 46.17C54.313 42.787 51.563 40.046 48.171 40.046C44.173 40.046 40.251 40.886 36.59 42.316C37.338 38.787 37.614 34.973 36.647 30.919C35.179 24.763 30.953 18.883 23.615 13.183C22.33 12.183 20.7 11.734 19.083 11.934C17.466 12.134 15.995 12.966 14.994 14.248C12.912 16.918 13.394 20.766 16.072 22.843C22.05 27.486 24.024 30.923 24.699 33.752C25.374 36.581 24.831 39.616 23.475 43.786C21.742 49.406 19.73 54.423 18.848 59.234C18.414 61.602 18.377 64.179 18.265 66.238C13.96 62.042 12.275 56.502 12.275 48.407C12.274 45.025 9.524 42.283 6.133 42.284C2.744 42.287-0.002 45.027-0.003 48.407C-0.003 59.463 3.23 69.983 11.895 77.001C19.739 84.474 39.686 81.712 39.686 93.709C39.686 97.095 44.642 98.743 48.033 98.743C51.511 98.743 55.888 96.418 55.888 93.709C55.888 80.097 70.233 71.824 93.848 71.86C97.24 71.865 99.992 69.126 99.997 65.744C100.003 62.361 97.259 59.614 93.867 59.608C92.252 59.606 90.678 59.661 89.126 59.753C91.766 53.544 92.937 46.708 92.695 39.324C92.583 35.943 89.745 33.293 86.356 33.403C82.963 33.513 80.305 36.346 80.416 39.729C80.736 49.397 80.374 58.03 73.171 62.581C71.123 63.874 68.742 64.996 66.484 64.996C68.237 60.228 69.561 55.195 70.103 49.77C70.449 46.308 70.486 42.195 70.091 39C69.478 34.05 68.738 28.436 70.617 24.207C72.305 20.565 76.087 19.04 81.64 19.04C85.029 19.037 87.775 16.296 87.776 12.917C87.778 9.534 85.031 6.79 81.64 6.787C73.388 6.787 67.133 11.13 63.587 16.377C61.733 12.417 59.475 8.336 56.747 4.112C55.866 2.747 54.478 1.788 52.887 1.443C52.099 1.272 51.285 1.257 50.491 1.399C49.697 1.542 48.939 1.839 48.26 2.274z`}),t[4]=o,t[5]=s);let c;return t[6]!==e||t[7]!==a||t[8]!==s?(c=(0,Y.jsxs)(`svg`,{...e,viewBox:`0 0 100 100`,children:[a,s]}),t[6]=e,t[7]=a,t[8]=s,t[9]=c):c=t[9],c},lae=e=>{let t=(0,X.c)(10),n=`${(0,J.useId)()}-zed-logo-a`,r=`url(#${n})`,i;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,Y.jsx)(`path`,{fill:`currentColor`,fillRule:`evenodd`,d:`M9 6a3 3 0 0 0-3 3v66H0V9a9 9 0 0 1 9-9h80.379c4.009 0 6.016 4.847 3.182 7.682L43.055 57.187H57V51h6v7.688a4.5 4.5 0 0 1-4.5 4.5H37.055L26.743 73.5H73.5V36h6v37.5a6 6 0 0 1-6 6H20.743L10.243 90H87a3 3 0 0 0 3-3V21h6v66a9 9 0 0 1-9 9H6.621c-4.009 0-6.016-4.847-3.182-7.682L52.757 39H39v6h-6v-7.5a4.5 4.5 0 0 1 4.5-4.5h21.257l10.5-10.5H22.5V60h-6V22.5a6 6 0 0 1 6-6h52.757L85.757 6H9Z`,clipRule:`evenodd`}),t[0]=i):i=t[0];let a;t[1]===r?a=t[2]:(a=(0,Y.jsx)(`g`,{clipPath:r,children:i}),t[1]=r,t[2]=a);let o;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,Y.jsx)(`path`,{fill:`#fff`,d:`M0 0h96v96H0z`}),t[3]=o):o=t[3];let s;t[4]===n?s=t[5]:(s=(0,Y.jsx)(`defs`,{children:(0,Y.jsx)(`clipPath`,{id:n,children:o})}),t[4]=n,t[5]=s);let c;return t[6]!==e||t[7]!==a||t[8]!==s?(c=(0,Y.jsxs)(`svg`,{...e,fill:`none`,viewBox:`0 0 96 96`,children:[a,s]}),t[6]=e,t[7]=a,t[8]=s,t[9]=c):c=t[9],c},pv=e=>{let t=(0,X.c)(9),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=q(`fill-black dark:fill-white`,n),t[3]=n,t[4]=i);let a;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,Y.jsx)(`path`,{d:`M239.184 106.203a64.716 64.716 0 0 0-5.576-53.103C219.452 28.459 191 15.784 163.213 21.74A65.586 65.586 0 0 0 52.096 45.22a64.716 64.716 0 0 0-43.23 31.36c-14.31 24.602-11.061 55.634 8.033 76.74a64.665 64.665 0 0 0 5.525 53.102c14.174 24.65 42.644 37.324 70.446 31.36a64.72 64.72 0 0 0 48.754 21.744c28.481.025 53.714-18.361 62.414-45.481a64.767 64.767 0 0 0 43.229-31.36c14.137-24.558 10.875-55.423-8.083-76.483Zm-97.56 136.338a48.397 48.397 0 0 1-31.105-11.255l1.535-.87 51.67-29.825a8.595 8.595 0 0 0 4.247-7.367v-72.85l21.845 12.636c.218.111.37.32.409.563v60.367c-.056 26.818-21.783 48.545-48.601 48.601Zm-104.466-44.61a48.345 48.345 0 0 1-5.781-32.589l1.534.921 51.722 29.826a8.339 8.339 0 0 0 8.441 0l63.181-36.425v25.221a.87.87 0 0 1-.358.665l-52.335 30.184c-23.257 13.398-52.97 5.431-66.404-17.803ZM23.549 85.38a48.499 48.499 0 0 1 25.58-21.333v61.39a8.288 8.288 0 0 0 4.195 7.316l62.874 36.272-21.845 12.636a.819.819 0 0 1-.767 0L41.353 151.53c-23.211-13.454-31.171-43.144-17.804-66.405v.256Zm179.466 41.695-63.08-36.63L161.73 77.86a.819.819 0 0 1 .768 0l52.233 30.184a48.6 48.6 0 0 1-7.316 87.635v-61.391a8.544 8.544 0 0 0-4.4-7.213Zm21.742-32.69-1.535-.922-51.619-30.081a8.39 8.39 0 0 0-8.492 0L99.98 99.808V74.587a.716.716 0 0 1 .307-.665l52.233-30.133a48.652 48.652 0 0 1 72.236 50.391v.205ZM88.061 139.097l-21.845-12.585a.87.87 0 0 1-.41-.614V65.685a48.652 48.652 0 0 1 79.757-37.346l-1.535.87-51.67 29.825a8.595 8.595 0 0 0-4.246 7.367l-.051 72.697Zm11.868-25.58 28.138-16.217 28.188 16.218v32.434l-28.086 16.218-28.188-16.218-.052-32.434Z`}),t[5]=a):a=t[5];let o;return t[6]!==r||t[7]!==i?(o=(0,Y.jsx)(`svg`,{...r,preserveAspectRatio:`xMidYMid`,viewBox:`0 0 256 260`,className:i,children:a}),t[6]=r,t[7]=i,t[8]=o):o=t[8],o},mv=e=>{let t=(0,X.c)(9),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=q(`fill-[#d97757]`,n),t[3]=n,t[4]=i);let a;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,Y.jsx)(`path`,{d:`m50.228 170.321 50.357-28.257.843-2.463-.843-1.361h-2.462l-8.426-.518-28.775-.778-24.952-1.037-24.175-1.296-6.092-1.297L0 125.796l.583-3.759 5.12-3.434 7.324.648 16.202 1.101 24.304 1.685 17.629 1.037 26.118 2.722h4.148l.583-1.685-1.426-1.037-1.101-1.037-25.147-17.045-27.22-18.017-14.258-10.37-7.713-5.25-3.888-4.925-1.685-10.758 7-7.713 9.397.649 2.398.648 9.527 7.323 20.35 15.75L94.817 91.9l3.889 3.24 1.555-1.102.195-.777-1.75-2.917-14.453-26.118-15.425-26.572-6.87-11.018-1.814-6.61c-.648-2.723-1.102-4.991-1.102-7.778l7.972-10.823L71.42 0 82.05 1.426l4.472 3.888 6.61 15.101 10.694 23.786 16.591 32.34 4.861 9.592 2.592 8.879.973 2.722h1.685v-1.556l1.36-18.211 2.528-22.36 2.463-28.776.843-8.1 4.018-9.722 7.971-5.25 6.222 2.981 5.12 7.324-.713 4.73-3.046 19.768-5.962 30.98-3.889 20.739h2.268l2.593-2.593 10.499-13.934 17.628-22.036 7.778-8.749 9.073-9.657 5.833-4.601h11.018l8.1 12.055-3.628 12.443-11.342 14.388-9.398 12.184-13.48 18.147-8.426 14.518.778 1.166 2.01-.194 30.46-6.481 16.462-2.982 19.637-3.37 8.88 4.148.971 4.213-3.5 8.62-20.998 5.184-24.628 4.926-36.682 8.685-.454.324.519.648 16.526 1.555 7.065.389h17.304l32.21 2.398 8.426 5.574 5.055 6.805-.843 5.184-12.962 6.611-17.498-4.148-40.83-9.721-14-3.5h-1.944v1.167l11.666 11.406 21.387 19.314 26.767 24.887 1.36 6.157-3.434 4.86-3.63-.518-23.526-17.693-9.073-7.972-20.545-17.304h-1.36v1.814l4.73 6.935 25.017 37.59 1.296 11.536-1.814 3.76-6.481 2.268-7.13-1.297-14.647-20.544-15.1-23.138-12.185-20.739-1.49.843-7.194 77.448-3.37 3.953-7.778 2.981-6.48-4.925-3.436-7.972 3.435-15.749 4.148-20.544 3.37-16.333 3.046-20.285 1.815-6.74-.13-.454-1.49.194-15.295 20.999-23.267 31.433-18.406 19.702-4.407 1.75-7.648-3.954.713-7.064 4.277-6.286 25.47-32.405 15.36-20.092 9.917-11.6-.065-1.686h-.583L44.07 198.125l-12.055 1.555-5.185-4.86.648-7.972 2.463-2.593 20.35-13.999-.064.065Z`}),t[5]=a):a=t[5];let o;return t[6]!==r||t[7]!==i?(o=(0,Y.jsx)(`svg`,{...r,preserveAspectRatio:`xMidYMid`,viewBox:`0 0 256 257`,className:i,children:a}),t[6]=r,t[7]=i,t[8]=o):o=t[8],o},uae=e=>{let t=(0,X.c)(17),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,Y.jsx)(`mask`,{id:`gemini__a`,width:`296`,height:`298`,x:`0`,y:`0`,maskUnits:`userSpaceOnUse`,style:{maskType:`alpha`},children:(0,Y.jsx)(`path`,{fill:`#3186FF`,d:`M141.201 4.886c2.282-6.17 11.042-6.071 13.184.148l5.985 17.37a184.004 184.004 0 0 0 111.257 113.049l19.304 6.997c6.143 2.227 6.156 10.91.02 13.155l-19.35 7.082a184.001 184.001 0 0 0-109.495 109.385l-7.573 20.629c-2.241 6.105-10.869 6.121-13.133.025l-7.908-21.296a184 184 0 0 0-109.02-108.658l-19.698-7.239c-6.102-2.243-6.118-10.867-.025-13.132l20.083-7.467A183.998 183.998 0 0 0 133.291 26.28l7.91-21.394Z`})}),t[0]=n):n=t[0];let r;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,Y.jsx)(`g`,{filter:`url(#gemini__b)`,children:(0,Y.jsx)(`ellipse`,{cx:`163`,cy:`149`,fill:`#3689FF`,rx:`196`,ry:`159`})}),t[1]=r):r=t[1];let i;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,Y.jsx)(`g`,{filter:`url(#gemini__c)`,children:(0,Y.jsx)(`ellipse`,{cx:`33.5`,cy:`142.5`,fill:`#F6C013`,rx:`68.5`,ry:`72.5`})}),t[2]=i):i=t[2];let a;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,Y.jsx)(`g`,{filter:`url(#gemini__d)`,children:(0,Y.jsx)(`ellipse`,{cx:`19.5`,cy:`148.5`,fill:`#F6C013`,rx:`68.5`,ry:`72.5`})}),t[3]=a):a=t[3];let o;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,Y.jsx)(`g`,{filter:`url(#gemini__e)`,children:(0,Y.jsx)(`path`,{fill:`#FA4340`,d:`M194 10.5C172 82.5 65.5 134.333 22.5 135L144-66l50 76.5Z`})}),t[4]=o):o=t[4];let s;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,Y.jsx)(`g`,{filter:`url(#gemini__f)`,children:(0,Y.jsx)(`path`,{fill:`#FA4340`,d:`M190.5-12.5C168.5 59.5 62 111.333 19 112L140.5-89l50 76.5Z`})}),t[5]=s):s=t[5];let c;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,Y.jsx)(`g`,{filter:`url(#gemini__g)`,children:(0,Y.jsx)(`path`,{fill:`#14BB69`,d:`M194.5 279.5C172.5 207.5 66 155.667 23 155l121.5 201 50-76.5Z`})}),t[6]=c):c=t[6];let l;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,Y.jsxs)(`g`,{mask:`url(#gemini__a)`,children:[r,i,a,o,s,c,(0,Y.jsx)(`g`,{filter:`url(#gemini__h)`,children:(0,Y.jsx)(`path`,{fill:`#14BB69`,d:`M196.5 320.5C174.5 248.5 68 196.667 25 196l121.5 201 50-76.5Z`})})]}),t[7]=l):l=t[7];let u;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,Y.jsxs)(`filter`,{id:`gemini__b`,width:`464`,height:`390`,x:`-69`,y:`-46`,colorInterpolationFilters:`sRGB`,filterUnits:`userSpaceOnUse`,children:[(0,Y.jsx)(`feFlood`,{floodOpacity:`0`,result:`BackgroundImageFix`}),(0,Y.jsx)(`feBlend`,{in:`SourceGraphic`,in2:`BackgroundImageFix`,result:`shape`}),(0,Y.jsx)(`feGaussianBlur`,{result:`effect1_foregroundBlur_69_17998`,stdDeviation:`18`})]}),t[8]=u):u=t[8];let d;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,Y.jsxs)(`filter`,{id:`gemini__c`,width:`265`,height:`273`,x:`-99`,y:`6`,colorInterpolationFilters:`sRGB`,filterUnits:`userSpaceOnUse`,children:[(0,Y.jsx)(`feFlood`,{floodOpacity:`0`,result:`BackgroundImageFix`}),(0,Y.jsx)(`feBlend`,{in:`SourceGraphic`,in2:`BackgroundImageFix`,result:`shape`}),(0,Y.jsx)(`feGaussianBlur`,{result:`effect1_foregroundBlur_69_17998`,stdDeviation:`32`})]}),t[9]=d):d=t[9];let f;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(f=(0,Y.jsxs)(`filter`,{id:`gemini__d`,width:`265`,height:`273`,x:`-113`,y:`12`,colorInterpolationFilters:`sRGB`,filterUnits:`userSpaceOnUse`,children:[(0,Y.jsx)(`feFlood`,{floodOpacity:`0`,result:`BackgroundImageFix`}),(0,Y.jsx)(`feBlend`,{in:`SourceGraphic`,in2:`BackgroundImageFix`,result:`shape`}),(0,Y.jsx)(`feGaussianBlur`,{result:`effect1_foregroundBlur_69_17998`,stdDeviation:`32`})]}),t[10]=f):f=t[10];let p;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,Y.jsxs)(`filter`,{id:`gemini__e`,width:`299.5`,height:`329`,x:`-41.5`,y:`-130`,colorInterpolationFilters:`sRGB`,filterUnits:`userSpaceOnUse`,children:[(0,Y.jsx)(`feFlood`,{floodOpacity:`0`,result:`BackgroundImageFix`}),(0,Y.jsx)(`feBlend`,{in:`SourceGraphic`,in2:`BackgroundImageFix`,result:`shape`}),(0,Y.jsx)(`feGaussianBlur`,{result:`effect1_foregroundBlur_69_17998`,stdDeviation:`32`})]}),t[11]=p):p=t[11];let m;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,Y.jsxs)(`filter`,{id:`gemini__f`,width:`299.5`,height:`329`,x:`-45`,y:`-153`,colorInterpolationFilters:`sRGB`,filterUnits:`userSpaceOnUse`,children:[(0,Y.jsx)(`feFlood`,{floodOpacity:`0`,result:`BackgroundImageFix`}),(0,Y.jsx)(`feBlend`,{in:`SourceGraphic`,in2:`BackgroundImageFix`,result:`shape`}),(0,Y.jsx)(`feGaussianBlur`,{result:`effect1_foregroundBlur_69_17998`,stdDeviation:`32`})]}),t[12]=m):m=t[12];let h;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,Y.jsxs)(`filter`,{id:`gemini__g`,width:`299.5`,height:`329`,x:`-41`,y:`91`,colorInterpolationFilters:`sRGB`,filterUnits:`userSpaceOnUse`,children:[(0,Y.jsx)(`feFlood`,{floodOpacity:`0`,result:`BackgroundImageFix`}),(0,Y.jsx)(`feBlend`,{in:`SourceGraphic`,in2:`BackgroundImageFix`,result:`shape`}),(0,Y.jsx)(`feGaussianBlur`,{result:`effect1_foregroundBlur_69_17998`,stdDeviation:`32`})]}),t[13]=h):h=t[13];let g;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,Y.jsxs)(`defs`,{children:[u,d,f,p,m,h,(0,Y.jsxs)(`filter`,{id:`gemini__h`,width:`299.5`,height:`329`,x:`-39`,y:`132`,colorInterpolationFilters:`sRGB`,filterUnits:`userSpaceOnUse`,children:[(0,Y.jsx)(`feFlood`,{floodOpacity:`0`,result:`BackgroundImageFix`}),(0,Y.jsx)(`feBlend`,{in:`SourceGraphic`,in2:`BackgroundImageFix`,result:`shape`}),(0,Y.jsx)(`feGaussianBlur`,{result:`effect1_foregroundBlur_69_17998`,stdDeviation:`32`})]})]}),t[14]=g):g=t[14];let _;return t[15]===e?_=t[16]:(_=(0,Y.jsxs)(`svg`,{...e,viewBox:`0 0 296 298`,fill:`none`,children:[n,l,g]}),t[15]=e,t[16]=_),_},dae=`data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAgKADAAQAAAABAAAAgAAAAABIjgR3AAAjOElEQVR4Ae1dCYxkV3W9tfdW3T0z3bMvPcxge2zGy2BjY0MwxEAWEBACihSCEiMUSFCiRJEsRygIiIKySUlYAkmMQSxJQAKi4AQngDcMAe87nsF4xuPxrJ6ll+rqri3n3Pfv71e/f1XP4u7+Zdeb+XXvu+/9999/57z7lv+rOiVnF1ILnNYuvV3aAsW+JJIbbe6yXRpPWyh9XtFnCsZC+ePS42ysSCv7vEq2MbwQZbQp/rSTzrjhY0puVUacPc7mF7lQepj3TBqwVd44e9QWjbMCcbawYqeR7uftBH0hUOLSo7ZonPcdZ2tnb2qrhUBg5nZ5/DRfj57XLs0qFM1j9herjAMuavPjvs428eO+Hm2vdmltwWVBrUDx7S+U7lfcL9O3d7reCgzf/kLpflv5Zfr2lgAzUxwIUZvFo9I/v12an4+6BTvH4i8WGQeEb4vTzWaSbWF6VFo7md3i/jm+LRZkZogDwLeZfq4y7lpWZlNFX0SRKDh+3PRzlWwuK8Nvunm2uMZeyGbpvjwdnRXx8/nxqM44g+V3sc79nNfwuBXfZno76ae10tlClhbVGWfw0yXrbOFnXIObrZ1kmp++UJwX9PNbBcxmcZOt7JaeVNnU2F4lfbvpcZI2Hrx/01mMxam3Cv55fp6mc/2G9XU7wWxxkjbfbvGoZFmp3t6+wtDwim25XO6KdDp9JUyXpFKpMaT143gph6lGo7EX+D5Ur9d/XKlU7jl18sRT09OlGTQKQWQw8ONkNN3icZI2C1q2D6AlmIym+XHqCx4AOr127YZduXz+9wD2r1nBXblwC4AU36jMzn7m0KED94MYdZwRB34rGy+gAMdIplloGIhmMOmDTZufz3Rfpr08KQK/bv2mX0Rv/wLsL/UejiY4pzAFr/DbB5/b/70YIrQiBi9o5DDdl9Q1GIgWp6SNwZdRnfEm0C2+es26rXD3X0KPv4iFdMML0wLwCI9hWPitI4cPPo0SCW4U/GicF16QBATSwOUJpvsyqvvAm65y46axd2ez2c+yoG5YnBaoVqsfeHb/3q+hdJ8EPvi+zkq0JUEGGXyAeQIDbb7d4gY449T1gMfPbNq89eOZTOajsHXDIrYA2votg0PDxYmJU3fAK/BKhpNdNRpvmyeOACzACjGd0sAPgadNwd809knI63mlblj8FsDwesXg4NAmkOA7AQnsoj5uZjNpaRZXaQSwRF9S949YAqDnf6wLflObLkkEJNhZHBwaOHXqxO1neEEfY4kjgA+66bHgb9y05V2ZTPajZ1iBbvYXqAXoCQaKxafHx089EVOkAR2TNGdiJoLLYGCbbqBbHsbDY3T1mq39/cV7mLkblrcFpqYmrjh65PDTqAUngNHDJoE2OWRlzdYEPhMYokSweCix0M/09Q180WXvfi53CxALYuJhF2IV2FhFs1FnYDwkgBksky/NE4S9f926Da+H+7mQJ3XD8rcAsSAmqEmIEXRiaNj5eJquFbcMGvE+LJNJy4drpTP5fOEmL29XTUALEBNig6rMw8yzRWuaIrAMdpLJOBvzptesWbcLsru9yxZKVugPsFGcUDXD0iRra7rJpiHAbscSfWkeIJ0vFH7XMnZlslogwCbECrXzMTS9qdLM7AdmYrDMviT4Baz53+aydD+T1gLEhhihXkYCHz8f27Dq0YxMiJ4UxoeGVmwLz+wqiWyBAKMQsxg8We8wPc4DMJHBMoUkwUTjlS6p+5nUFggwmoddUF+zh9X3CWDAM9F0O4H50njYc0V4Zgcq3P2o46OGLZEaJHWN0xboHXhbTVUOMFK8kGD4MY9h2qTzncBoJovPk1gD7uTZnRb40IxAF3tExlaKbMexoS8txXRKGpW0jJdSsn+iIXvG6/JMqS4lsAFJTS3WKfccYDQPO9Tft6E13O35L4UygwU/c6ij8M2WoVMkX6ZaMSDyhleIvGmHyAUrUjKMOVJ2Ni2pckZSM+gskNXptJycEnnkeF1uOTQrdxyflcmqI0Kn3CvrGWAUYkaTdzALA20kQexbwUxk8E80vePW/688PyXXvzEluzaK5Kvo8eWUVMtpqYEEqfBISQpdfmUhLW8Yyco1xYLcdawin3m2JI+XKjqldk3SEZ/EyPDyJStvcQWfBvMATPBDXDxq8/MnSufdZdCx33x1Rt73K2lZ3ScAPYVx3kGOHTO4eOjcB1Md8XRa6rDVcGQyKbluVY9sL+Tlr56ZkNtOlbXlEnWT7StjQPu5ovgx3rA5ADPaSZbRj5vuF5hYneP3L12bk+vfnpMBbI7yBWv2d2AbAk/w08ioZIC0eAaZ+KpsA3JLb1o+snlI0s+IfK+zSGB4+TKKsc4DzANEwfRPpM5g0sUS+snJ3tVX5OXd7+iVNLZESrMOfPR1RwLchjp/EIBgZxR82OAB6DUaOEgMOAElwmg+LTduGJaT1RNy7+QMiJLQG2+ultWS0j+acyHGdmGwE6K6xa0QxhMbOOHbsiUr7/z1ouT681Kq56XcwCF5mZaCHmXIciovM6kcDidn03mppLNSSWWlClnFM5UqCFHDQbmukJM/Xjck6/IZfdie2AaYq5jh5ePKVD+uuu8B7CTLGI3PFZ9AjUu93t6U/Orbh2TFuh51++zCKdjTerDnu7Gfj8zoBbLqATAR0h7fgMRyEUcWJzVwkhsKnH7JQI/8zuig/PXBE7pnkMAmiFbJwDYco3G0ytwkMHqyH/dP9O2J0kmAS68akPMuK2IdD/et4IMAwT+6OhIACz/n+nFXdPMkQY6gA/A6QeeRwYGxRHXEuYmQAineivXknRNluWt8Ws9NVAM0V+a0MfMngVaEncy46SYtT6IkwR9elZVXv2mF1LJ5mZ1FdclvDOipOiiAQ8d93A5JwJsm+DkcJEAN4JIAuYAA9XQdZKirjSQQ6CREEUz5zZEheWhqRiYx3iS6UeKxi1YZg158YMZ5meOzJsN68dVDsnLzgExV09r76QGUAPQECrsjgXoAWIwAJEEVBCD4tQB46iRAo+kAERp1uXygD/sEffLfJyeT7AXisIvaFLgoAeIyxdmSgTpqwd4/uDInF75mlcxislcB4A0M5O4g3I4AKXiDNNIyONjrs3ARFdwZ3T8m+iBBzREgVQ+J0EjXQhI4L1CTApjzjlVDcvdEqZO8gI9XE55GABqbEvwzFkiLZF3aKL8Ysf2VwzK0gWM/Zu4NzNQBdkMPTPcgObNLKwE4B4D7BwlyJAF6fh5EqOHOqwC7FoBPT0Dw695Bb5DDikAaNXlF/4Dsgie4/dQEvEC7ZlvatohcrV3FmMZDN4Ii5zVF2xXSlHFZIuj9Pf1Z2X7ViHApNwv3X6uDADgaPAISsPenQAybB2SDeUAu8AIVEKFgHgBA16HX01UlgPMC9AQ8qlpmIZuRN64Ylh9OTIFwqESyQ1sMzQP4t9DqhFZ2/9wl1eto/LUvL8qKrcMyXc1JFSBXSQDwug5dSYA4pvUggPMCpAEHhixw483ncQBqDAHuqCkRHAEIOL2AAg8de8QoCxJe4NLikGztOSa7S9O6u7ikN77wxVphNc8eRwArfl5mS0iKTGM83nL5qNTzPTJbceBX61l4ARAARyMgAR2d8wIAHzYlAO4uhxvB86E58NH7awC6RtefIvjuUCJkKiiPcQ4vVRnExOHVg8NKgKS0R5t6tMSyFQH8E3y9zTWWNoljf3GkV1ZfOCLlWk4q6OnVOrxAQIAavQBJQA8AmYJMYS5AAnA+QA9AAjgSzPV+Hfc98EmCRprgo6kCEmD6CB9Sk1cNr5JvHjsqE7Va2wnU0rZM09V87Hw9zNSKAGGGxCrY9l19/grJrxqUchXbtyRBDRIkUA+AeA06vQAJICBAWsGn5CogpTByHoB+7SaAAJXjP72AAx5SQac3qbihBXEdXuAFNvUPy/a+otw3fiLJk8G2EHYsAdJYv63ZuQbuG+4f4FYANg/1AAC/Dt0Ogu/mAZj+2VwAm0M5EAH9G7DzIAkcAZzrB9AZEADAqwcg8KCMDiuYC9AL9KQysmt4RB6YONm2kZOc2JEEoPvvH+mToW2j6P05EAAPcvDgh16ARw06wVcPwGGAc4DAC3A1kCEJ1Im7/QDuBHIJqO4fE7xGPfAA9TnwG41ZLaeRQXnYccA+IbaHq3Lh0GoZPLhPxqscFjovdCQBgICs3DYimaEhmali8wegV2oggHqAvAJfBwlqsDd4EHydCHIe4OYA3AvgW0EcAgA9/mHvn74AXkAnfXDxbuxnr8ehwNMLgAiYRmLzGEdFRvtXyZb+IXn45FEQovMo0JEESOPB/Yod65z7x7iv4JMAetALYHsHh/MAJACmeuYBgk0h0EBXA5hK6BBQhwdo0AtwAqhDQUAAHSQIugOcPZ86iVDHTnoPHh/vGF6rBOi8/u+WwqdT7+RQG+4/P9wrA2NrZAYgzwJc5/4dAWoEHkedB7wAwacH4KErAbh/Lgk5kbNXwV3vhydg71ciYK2PiaA0uEagB8D50On6HREQB/iN2izeKMvJthUbpe/ZJ2W6lqhh4LQw6zgPAPxlYNMqyQyvxNqf7p9HQcf9qrp99nwHfl3dvyOAbnoCdM4BHAG4JMRzg+Af0MbmKPyBEgDPk7n8094PoINe38Ckj+6fPb8Bz6MS84SR4lq8dzgke8c7bxjoOAJwmB3cvh6Pffvx2JfLP/Z8EMCkjf1KAuf+dQ4AwNxKwBEAT/gBJjZ19B+SMBFs4GkfPYBgI0gwERQMBw24eDpK3QeAVD0FTxCSYFZ6erOyZXg9CHAE6afV8ZAvGaGzCIBOmuktSN/YRpnVnu+7/YKSga5fx35IrgTU/Sv4uFVMAFOcDBJ44FxXD6B9H2gEHoAJGOEFAOswAC/gRkrECToPkILunzo3m1KYMI6t2ip3P/soyuT5nRM6igBc/hXwQkZ2dI1UAvdfC3q/Ss/1O/CdB1D3H+wFcB3PIYAeAM/22PUDH8AIgceBLWEgizj2D9QDkARw/xwCeKAsmwPUmY5VwujKLfjmUVFOlk521GqgowjAXtq3Zb00eoYC188JXwETPjcHcJM/BzoJIOoBnBeg+0fXxUECuLcECD5dNocBGKHbEZBAz5kDX8tQz4Bmg1dREtTx2jG8Ss/AWlkztE5OlE6gxM4ZBjqKACnswPWMjeGpXw8mftjoUXdfQI80InD3j0tAgMNZu5KAOm5TPQAJwN7vXg6xl7roCbgSwBpANZIhRW+gPoJeACRQ4kDHqoC67gVwdQCPwKePPXgcvX5kuzx5MO4X23BaQkPnEADuPzuI173Xb5JKFT0eO4AhAXS8tzEfJODyLRj/2Tv1gZD2ZrcEZK/n+M9nAoSZcbAEn84D0Ko6wOUugQ4WWCJiqxD8oSfB0pBDATeLVLIZa7J69HzJ5/4X9eNP/XdG6BgCcPzPr10jqcFRqVYIPlw/x3yAz00ft9530sDXnq/AEzQCBgAD9083TcgZ1BNwCMA1aKpxIse5AIcMfIGE3x5SPXgjSL0Iy9U5AsrlnAAEGFgxJkMDq+XoiX3uHC092R8dQwBusxY2b4UnL0oNBAg3ehT8ZgLosi90+wSeBAhAJPAggev1BMeRwPV9bguTBG5QcJ4AVGH+gAicQGpZBF9JBRl4g1zfiIyMbJMjJ/YGpSYbfNaucwiQz0tu03Zd83Pp5cZ6fPdLXb0RwI374SPgoNcTKAcagAzBdw4f6ClKJEA9mAhS0CvUAiI4b0ALwFdvwIkk5gWBTk/AnUXBN41G1u6UzFN3gGQsMfmhMwgAl5xZsUrSqzbq2K87fOj5c+AHOsd7r+eHwIe91iNApI86uBwpnBfAAMF5ATwPHxo5SnDGQMJwiKAksbhjyIkldNiHR3dIT8+wlErH9VwYEx06hAB4c2f9mDR6V8H1Y4IXuH28C4bxNxj3FXjcDryDAR91/WHvByQc/wmhAW8a4/yauObQ1QBzOiJU9Qyk6fyAebhzSHJw/QAigKj5oY0yiLlAqXQMdpIi2aEzCIDlX3bzBWjuXl3iEXg73ESPM/1m8I0EoetX8AIXDj3AWK0+RJwFMPBbxkqRYFhwBKFl7p8NDcxJLyBYKeQL+ILKuovl0IH7/GITqyefAHDD6f5Byazd7nq/ru2dy2dv53rfPeq1nu9m+44A7KXsocFRLUl98oDUTu2TRukwVnPTSMPInu/HNdbg/YIxyQ6sx44vfkwIkOpQoDmcR1CvwDjZE8wPOECwDJKBqwyqw+suk2zu3zFcufKRIbGhIwiQWb0Zyz/sANL9KwFMBqCHbt8Dn0go8LDBHVf2fVdmf/4/Ujv+pNTLeIULT/GAmAOGYGZyku5ZKbnRi6Sw7ZelZ/PrJYPezMlcSAQU6eYDPM8NC+ol1GtwOODcoCE9q14ufYMbZPz5PYmfBySfAGj0zKYLsZ8ziNZHdZUABD44FHwAaBM9zsYJPiX28yv7bpXyg/8s1aOP4XyATrDV/yOPSscBptUnD8nMxHMy88ydUl53uQzs+qAUNrwaJLDJIUvGeQq+I4FG+WFlYh6Q7RuVIawGxo/t5gmJDmiNJAf0skK/ZDbu1Mne3AOe6JgPsJuWeojD/ZYf+EeZuu1GqR5+EOnondzF80GP3jrTmAePgmf33y0nv/tHMvXYVzAf4I4fZ/puZ0B/Swg6vUENE70q0qqQFayq9UcmMgUZ2vgqPEfCUJXwkGwPwPEfS78UHrU2agSGHsD1fL7dwzGXL3gQfKeTz4gD/Ol7/l7Kj3wJ+TFG65buGSIBItQxdEz86C8xV5iS4sXvAznYXJwkslvz0JkiJK8bvFkQEKxv7SVSwAOi6VP7wbnk9rPk1gxNypDefLFIYQU6MIAF+G6TB7oCTzL44ON28FZv+aGbHPjQ2/Z4d4nWn+z1mChO3vtpmXry6wq9rvkxJJAGulkEIlTpCZCXB3V+QzmDyeQAhgFUuHX5CUhJMAHQcPk+yWzehTZ0j3RtyacPeJQAbm8/7JEAYPZnt4AAn3c9X3vpObYyejQ9wAQ8ysyBu7FH4IAPhwNcg4+L+BN0KnVYABkyvTK4+Ro4H3qN5IbkEkDd/2ZJj5yHyRt7NhpSvQB7P6vtHbr8wncCj/1Upu/9lDRm8ZOf7cb6M8UDxKpPHZHxH/+tVDFJVBKAn+YF2Mf5+4LcKCIJKPkWQR8mknkMAzr/ONNrLlH+5BIADZDZgh8nh/t3z/Kdu3eun8MBScGDYzE8AUAv3/8ZqZ/aC/AX4bYwj6gcfkgmH/oXLC648xesDIC+9v7QA5hHwIOWwU0ysOEKeDBSJJlhEVrqhbhRNC9er0pvuRKF5TDRI/gEO+j90PXBTAA+CTD71C0yu/f7AB95Fi2kpPTkN2Vm/52BFwAJQk8ATpIEJARqp6+cYzVQ3Pp6zB35NxySGZJJAP4A05oLAvePHk7A6f6VBKwyx35K9n7M1sf3yczDX0DL4/WsxQycD8yckknsK9SmTzQNAdw65mHg61AAQy+GgcKKrag7B4zkhWQSAMut7PbXSipXDJd5oevn2I+ephsySoiazGCtXju+Z3FcfxQzeJjZg/fK9O5vcBHYTALGSYTAA/DXQ9J9a/AllmujpSQmnjwCoKek8I59evNV6PUEmwfdOt0+e3xw0P0DjNrh+2V2938E9iVqV8wBph77qlRPPqUk4DAQzglQBSOBeYSBl70Jr7PjjxQkcC6QPAKgATNbr5F0cQMaDJADfL6Fo2/lkASh7pZnZbj+xvTzIAOJsUQBk8zayb0gwZd1QqirAfZ8EkE9gEcCGHOrdkjfxiuRlrxhIFkEQOul+lZK9rzr0M85+QP4dPnB4UgQeAD0/uq+70kF+/aLMutfkEspKe/+T6kcuiccCugFQjLgfJ0QkhScDJ73Njx1xO/Wa+4FC1+yDMkiAJovs/VqyYxcoI/abdLn3uNnVekRnOtvTOHBzSNf0G1f2pc8wOPUy8dlCruOdSxBreeHQ4F5AlSMP2ZVWH8lJoTc1EqWF0gOAdj7e1dIbsdb0aHxPN5cv3kAAs+DYCPvzE+/LtUjjyK6mMu+BWjFCeH+H0j557do1ZQEBB71jHoCKQxKcce7sCTkuwbJCckhAHv/y16Hv02L/XO0Hl2/ewM36PVoVP7Tid/Rh2X28X8DEZa/N/E7gqWHb5bqqWcc6MAWHABH5zaKlBioas+ma6VnA/Y2+IwiISEZBGDvH1gjuZ3vxFyuJ5josWoBCSgJPr3B7ITMPPhP2Jo9BDIkoPqoQ/X53VJ65PPgI18QDQgAqZ6AHkF1PC0sFKW48734QxZ4tyEhc4EEtCDaAuNp7qK3Y+zfAfAR1aUfQWf1Ag9AAiDf7J5vyuy+26Avo+tHrZoC6lXGDuEs3jriKOWWgUYEDAdGAjChsOEa6cMbRzppaCpkeSKnSwDcwiIFuMMMXqLMXYTejy3fOfDRkmxN7fkEH2v+Iw/j7Z6bML3Gmz2JCnD3s5Mydf+n8b7hM24+gPqx0bT34x7c/ABeAN8hHLjkfZJd/N3B08LsdAmwOM1N148NkvwV79cdM53hc52vPd/r/XCzXOuX7/07qU88CzIsb7VjG4NDwdHHpXT/J/FC0XQwD3A5jQgqcc+Z4e1SvOyD2OnsRYbTwin2ki+EcRlbEjeOt27yl71Hshuvcl3FwNchwFw/qogeX37wc1LBa1qJcv1RBDgU7Pm2lB//ivZ4QsueT8n5gHoB1TEh3P5W6cOqYLnD8hEArZK74C2Sf8VvoMc71689X0lg4HMIwLzvp1/DrP9fobEpkxxQX5C1dP9nZWbvrXNDgZEgGAr08TCHgl2/L4XNr8NtcaBYnrA8BMANZ7HkK1z5IX3gw2erDnxKNKKN/Rj3K09/By95/EP4Dv/yNNMZXBVeoFE+IaUffUIqB38yRwIUQfpyo4gPi7g5lOoZkcGrP4xvPe9CwvIsDZeeAAR/6y9Iz2tv1HGfs6S5no/qeOBX998h0z/8BMb/48kc91vxAvOB2vh+mbzrz/ASyQO8QQ2OAEYEDgt4Wji0VYq/8DHJrca7j8vgCVoRgHW14OtmOzuJG8ysu0R6XnODpAfwsIfg63hv63y2FA5OqPZ9X0p3fQTv6h/U+NldcBnPIgmO75bJO/4Uzwvui/UEOifAR2blDim+9qOYHI690CTwsfP1sGFaEYAZYk8IzzxThS4PD3p6rvwDSQ+O6V6/gm+bPNrzWR38AOueb0npzg/jRY+EzvhP9965dMU3kSZvvwEPre7Qs6xRKTkc6EESjF4ifZe8H49CF+W7BHbZeTWPI0CrzK3s8wqNN+Bv7oxdK9m1l4cPetyIjx5P8PnjS3ioMvPA56T0g4/rS5iJXO7F31xrK0lw8mklwcwTX8VQj5+XQW72fpO2Y5gfuw77A9uQcM6TwlZYzbOj1duGeSe0zd0uES4xg+/dSQYPQ/QPLBjwcP/46RW+0VO+71P4/t6tGBr4Pn8cN9tdIMFpuJd66ahM/fAvpAqP0HvpBzAErlMS6JePrer5QcyLRkGAx3H/Zjxn2RZDIwAztctoaSXk40PtMw+gfO3oE9rLU1m86sU7xMy3Pn0MW6jfl5mHbpbaiacc8JhJv+gCSNColaX86FewYfSI9Fx8PX7z4BrsDQ+D6xgKsF9cPXQvCMLvE54T+YkRg2HmYs2fId5GAEuOOym0Yf26H1+NPt8yn5HETVV2fxvf1D2OYeAy3CR+5mViP276AQD/M7e9e243fkbVWZ7MIDb+V/l6+W03SHblyyWDt4VS+SJWOvgG83M/xtB3GHnOvgMQI+/eQuxa2aIEsHwhQ8wA2ajX649mMpmzIwALwKPTyl68xcPXtxk4EPJmCfyLHnx3y/rJe0VbVPFsg2Rwwdrh7MFnOcQIIgp8HJ56WfqauMya6KVpnlqter8lnLXEpCgEXL+te07u7qyrkYgT2Rb8wqkebJdzA5/35GFkuJpksq9r/HRa305qzJTL+J51NyS5BQKMQswWqqtPAJ7knxiNy/g41jPdkOgW8DBqh6Wl6XNX3lBoiOiWxvRGBQHfi/svGrsheS1AbIgRaqZ4BdKv6DycfQ8QzRgtROPTpdLNfsaunpwWCLAx3Fgx003OqywJwEQGyxQXD9OOHcPUVcTWmnpi9yMRLVAKsAmxQq18nZWcFzcPwAQ/xMX1ZKwz69PTpT/0M3f15W8BYkJsUJMoyFa5OEzDOYCfyTL6BTXpRw4fvAsXw5ZVNyShBYgFMUFdmnCKxFlVS6euwTwAI0y0YBmjUhlGpp06eeJDlrkrl7cFiIXX+6NewMfQKhpijd2H0AvYLgTlQke6XJ6e6O3t25/NZt9opXbl0rcA1v03HDt2+Ce4MoHna0WUcUeUCBo3AkTBRxlKDCMC49TpMcyWmpwc3zNQHCym0+lLmaEblrYFqtXqF5878MxNuGoUcCMCQWaaSVbQiECdP6rXBCptIcCBHmezPOmJiVP/VywOrQcJLmDGbliaFqjVat868Oy+P8fVCLABHiWCgW+gmwwrSQIQTAumG8BRyXxmM28gE+Onbh8YKPan05muJ7CWXERZrVa+SPAx7vvA+7r1+DgCsGZGhOCnN+ZAZWIrEliaEcDy0Y5t4lM/6untxZwgd50auh+L0gKYe9343IH9N6NwAm5Hq54fJQDrRPDDEB0CfFCjQFua2VmI6SonJyf2gJW39PT0vgrvDawKr9JVzrkF0K57Tp44/t7njx2xCZ8Put/7DXSTYW9HJZrAZ6UIHEnA4INp7p0yejC/ESdWB/iZ0dE11/T1D/wN8p7dG0Q4sRu0BUqlqck/OXr08N2ey/d7fivdJ4iRwaSRQkE3sH0CmG7gG1Es7hOAttg4iJBeuXJkJ4jwHrxI8uYuoKffApjk3Qrgv3z8+LFHALyBaT19Icn8zEOg7VwDvUkSWCMA1CYv4KcZ8CYN8DjwfRt1LQf7BXksGbdgeLgY84RLM5n0DvADXw7A34F5aYdp4HugVqs/gcndgxjjH56cGN+HJR5/9NB6rIFowBvAvozqdo6RoAn4oMnDl/EZJ1A8GHzwTTfw46RPCJ8A/rmmU/qHXc+XUZ3xVoFlLWdgw55O8POZ7kvqdhA86lEQfQK0AtzOMRktk3U1m/7dQEbYiJQM1qAWp406C2wXmMc/h/lJBjuXOm0++KbDHF7Xru/bqHdy8NvFdF9Sjx5sK9oofT1KAkuPymh5KEaD2Rnhj/DOC8wQDSzcAIymxcUtv12MoJrNQDfJ8w30qIwr28/fKn257HFt59fF0uOktRUl28ri1O2wNIu3kpbPyvClXx/1ADQwAxvfpNkoLTCNgZIXtsB49LCyLC/JQxvPo4weMKnNl9QtMH8nBt5/NJjNl9TjDrYX7Qa0r8fZ4sowm9WDcQaV7TwAG90y8wRe0LyAD4jpdiFKO9d0O5d2/0B0HvBWHtMYonFn7ZxPvw1Za4vHSdrsYJv5usUpfZ15fJvF7VxKBou7WPDpE4AZ/Mb241YIL0QSMFBnsHNMMi/zUFp+plGnjB4wzSuDNgYr08U699Paz+7A4r6kHnew3cxueivJfJZG3YKv0xbGDQzLSGmN7suozri5dep+vJXd8pm0azFueqCGdbB4K2nntkpfKnvYoAtc0M9nOmVUNxulD6gfb2W3c1mVqG42Sg0+GGajtIb1ZVS3cymjoFtanN3KtzwWp2SgPRribNE8SYwTgGjwbaYbUHFx2qJgW/5Wdl7T8pjuS+oaOAQwY7SBzeZLd0b8JytigPrSzvdtLMHipvuSOgPzvJgC28IPFvdlVGf8bA5exy/Lj1O3oBtBFolrcLPFSdp8u8WjkuX7Nj9uOiWDledi7jPO5qcnXTcg/Hr6NtMpo3pc3PKZZLmm+/nN7kvqFjRvtHGjcWY2WzvJND99oXhcub6Nuh+sbN/WCboBEq2rbzc9TtLm2xeK8zp+fj9O3YLlCUGzBMq4xvZtpvvydHS/bD+/XdtsFvfz+7ZO1MMG9yrv20xvJ/20VjqLt7Sobpf202PBZsaFwLD0c5Vx17IyrcIvNtkEAG7Oj5t+rpJtZmX47TfP9v9tVpxWeBtrbgAAAABJRU5ErkJggg==`,fae=e=>{let t=(0,X.c)(3),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,Y.jsx)(`image`,{href:dae,width:`128`,height:`128`}),t[0]=n):n=t[0];let r;return t[1]===e?r=t[2]:(r=(0,Y.jsx)(`svg`,{...e,viewBox:`0 0 128 128`,fill:`none`,children:n}),t[1]=e,t[2]=r),r},hv=e=>{let t=(0,X.c)(4),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,Y.jsxs)(`g`,{clipPath:`url(#opencode__clip0_1311_94969)`,children:[(0,Y.jsx)(`path`,{className:`dark:hidden`,d:`M24 32H8V16H24V32Z`,fill:`#CFCECD`}),(0,Y.jsx)(`path`,{className:`dark:hidden`,d:`M24 8H8V32H24V8ZM32 40H0V0H32V40Z`,fill:`#211E1E`}),(0,Y.jsx)(`path`,{className:`hidden dark:block`,d:`M24 32H8V16H24V32Z`,fill:`#4B4646`}),(0,Y.jsx)(`path`,{className:`hidden dark:block`,d:`M24 8H8V32H24V8ZM32 40H0V0H32V40Z`,fill:`#F1ECEC`})]}),t[0]=n):n=t[0];let r;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,Y.jsx)(`defs`,{children:(0,Y.jsx)(`clipPath`,{id:`opencode__clip0_1311_94969`,children:(0,Y.jsx)(`rect`,{width:`32`,height:`40`,fill:`white`})})}),t[1]=r):r=t[1];let i;return t[2]===e?i=t[3]:(i=(0,Y.jsxs)(`svg`,{...e,viewBox:`0 0 32 40`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:[n,r]}),t[2]=e,t[3]=i),i},pae=e=>{let t=(0,X.c)(9),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=q(`fill-black dark:fill-white`,n),t[3]=n,t[4]=i);let a;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,Y.jsx)(`path`,{d:`M205.3 31.4c14 14.8 20 35.2 22.5 63.6 6.6 0 12.8 1.5 17 7.2l7.8 10.6c2.2 3 3.4 6.6 3.4 10.4v28.7a12 12 0 0 1-4.8 9.5C215.9 187.2 172.3 208 128 208c-49 0-98.2-28.3-123.2-46.6a12 12 0 0 1-4.8-9.5v-28.7c0-3.8 1.2-7.4 3.4-10.5l7.8-10.5c4.2-5.7 10.4-7.2 17-7.2 2.5-28.4 8.4-48.8 22.5-63.6C77.3 3.2 112.6 0 127.6 0h.4c14.7 0 50.4 2.9 77.3 31.4ZM128 78.7c-3 0-6.5.2-10.3.6a27.1 27.1 0 0 1-6 12.1 45 45 0 0 1-32 13c-6.8 0-13.9-1.5-19.7-5.2-5.5 1.9-10.8 4.5-11.2 11-.5 12.2-.6 24.5-.6 36.8 0 6.1 0 12.3-.2 18.5 0 3.6 2.2 6.9 5.5 8.4C79.9 185.9 105 192 128 192s48-6 74.5-18.1a9.4 9.4 0 0 0 5.5-8.4c.3-18.4 0-37-.8-55.3-.4-6.6-5.7-9.1-11.2-11-5.8 3.7-13 5.1-19.7 5.1a45 45 0 0 1-32-12.9 27.1 27.1 0 0 1-6-12.1c-3.4-.4-6.9-.5-10.3-.6Zm-27 44c5.8 0 10.5 4.6 10.5 10.4v19.2a10.4 10.4 0 0 1-20.8 0V133c0-5.8 4.6-10.4 10.4-10.4Zm53.4 0c5.8 0 10.4 4.6 10.4 10.4v19.2a10.4 10.4 0 0 1-20.8 0V133c0-5.8 4.7-10.4 10.4-10.4Zm-73-94.4c-11.2 1.1-20.6 4.8-25.4 10-10.4 11.3-8.2 40.1-2.2 46.2A31.2 31.2 0 0 0 75 91.7c6.8 0 19.6-1.5 30.1-12.2 4.7-4.5 7.5-15.7 7.2-27-.3-9.1-2.9-16.7-6.7-19.9-4.2-3.6-13.6-5.2-24.2-4.3Zm69 4.3c-3.8 3.2-6.4 10.8-6.7 19.9-.3 11.3 2.5 22.5 7.2 27a41.7 41.7 0 0 0 30 12.2c8.9 0 17-2.9 21.3-7.2 6-6.1 8.2-34.9-2.2-46.3-4.8-5-14.2-8.8-25.4-9.9-10.6-1-20 .7-24.2 4.3ZM128 56c-2.6 0-5.6.2-9 .5.4 1.7.5 3.7.7 5.7 0 1.5 0 3-.2 4.5 3.2-.3 6-.3 8.5-.3 2.6 0 5.3 0 8.5.3-.2-1.6-.2-3-.2-4.5.2-2 .3-4 .7-5.7-3.4-.3-6.4-.5-9-.5Z`}),t[5]=a):a=t[5];let o;return t[6]!==r||t[7]!==i?(o=(0,Y.jsx)(`svg`,{...r,preserveAspectRatio:`xMidYMid`,viewBox:`0 0 256 208`,className:i,children:a}),t[6]=r,t[7]=i,t[8]=o):o=t[8],o},mae=e=>{let t=(0,X.c)(9),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=q(`fill-black dark:fill-white`,n),t[3]=n,t[4]=i);let a;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,Y.jsx)(`path`,{d:`M568.003 115.821L517.278 27.9661C507.183 10.4816 489.084 0.0227367 468.894 0.0227367C448.727 0.0227367 430.674 10.4361 420.556 27.8752L343.251 161.749H242.755C236.23 161.749 230.386 158.384 227.135 152.745C223.861 147.106 223.861 140.376 227.135 134.715L277.861 46.8603C281.112 41.2216 286.955 37.8338 293.481 37.8338C300.006 37.8338 305.827 41.1988 309.101 46.8603L312.125 52.0897C313.353 54.2042 315.604 55.5002 318.036 55.5002C320.469 55.5002 322.743 54.1815 323.948 52.067L337.385 28.5118C338.795 26.0335 338.522 22.9413 336.703 20.7586C325.699 7.57131 309.874 0 293.322 0C292.662 0 292.003 0 291.321 0.0454733C272.04 0.75031 254.76 11.1864 245.074 27.9434L200.215 105.657L155.81 29.1484C145.465 11.2092 126.594 0.0227367 106.608 0.0227367C105.949 0.0227367 105.289 0.0227367 104.607 0.06821C85.3265 0.773047 68.0467 11.2092 58.3608 27.9661L7.65806 115.821C-6.25678 139.899 -0.868187 168.82 21.05 187.759C29.8945 195.422 41.6039 199.628 54.0181 199.628H148.648C151.081 199.628 153.332 198.332 154.56 196.217L168.52 172.026C169.748 169.911 169.748 167.319 168.52 165.205C167.292 163.09 165.041 161.794 162.608 161.794H56.0417C49.5163 161.794 43.6729 158.429 40.4216 152.79C37.1475 147.152 37.1475 140.422 40.4216 134.76L91.1471 46.9057C94.3985 41.2671 100.242 37.8793 106.767 37.8793C113.293 37.8793 119.113 41.2443 122.387 46.9057L194.826 172.526C195.031 172.89 195.258 173.208 195.531 173.526C198.76 178.665 202.83 183.485 207.786 187.782C216.631 195.444 228.34 199.651 240.754 199.651H321.424L315.581 209.769C314.353 211.883 314.353 214.475 315.581 216.59C316.809 218.704 319.059 220 321.492 220H349.436C351.868 220 354.119 218.704 355.347 216.59L364.396 200.901L367.17 196.468C367.17 196.468 367.261 196.331 367.284 196.263L453.274 46.9285C456.525 41.2898 462.369 37.902 468.894 37.902C475.42 37.902 481.263 41.2671 484.514 46.9285L535.24 134.783C538.491 140.422 538.514 147.174 535.24 152.813C531.988 158.452 526.145 161.84 519.62 161.84H418.669C416.236 161.84 413.985 163.136 412.757 165.25L398.774 189.442C397.546 191.556 397.546 194.148 398.774 196.263C400.002 198.377 402.253 199.673 404.686 199.673H518.21C539.81 199.673 559.295 188.237 569.026 169.843C578.053 152.79 577.666 132.623 567.981 115.843L568.003 115.821Z`}),t[5]=a):a=t[5];let o;return t[6]!==r||t[7]!==i?(o=(0,Y.jsx)(`svg`,{...r,viewBox:`0 0 576 220`,fill:`none`,className:i,children:a}),t[6]=r,t[7]=i,t[8]=o):o=t[8],o},hae=e=>{let t=(0,X.c)(11),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=q(`fill-none`,n),t[3]=n,t[4]=i);let a,o,s;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,Y.jsx)(`rect`,{width:`800`,height:`800`,rx:`160`,fill:`#000`}),o=(0,Y.jsx)(`path`,{fill:`#fff`,fillRule:`evenodd`,d:`M165.29 165.29H517.36V400H400V517.36H282.65V634.72H165.29ZM282.65 282.65V400H400V282.65Z`}),s=(0,Y.jsx)(`path`,{fill:`#fff`,d:`M517.36 400H634.72V634.72H517.36Z`}),t[5]=a,t[6]=o,t[7]=s):(a=t[5],o=t[6],s=t[7]);let c;return t[8]!==r||t[9]!==i?(c=(0,Y.jsxs)(`svg`,{...r,viewBox:`0 0 800 800`,className:i,children:[a,o,s]}),t[8]=r,t[9]=i,t[10]=c):c=t[10],c};function gv(e){let t=P_(e);switch(t.icon){case`github`:return{providerName:e?.name||t.providerName,terminology:F_(e),Icon:sv};case`gitlab`:return{providerName:e?.name||t.providerName,terminology:F_(e),Icon:cv};case`azure-devops`:return{providerName:e?.name||t.providerName,terminology:F_(e),Icon:lv};case`bitbucket`:return{providerName:e?.name||t.providerName,terminology:F_(e),Icon:uv};case`change-request`:return{providerName:e?.name||t.providerName,terminology:F_(e),Icon:Dh}}}function _v(e){if(!e)return null;let t=Date.parse(e);return Number.isFinite(t)?t:null}function vv(...e){for(let t of e){let e=_v(t??void 0);if(e!==null)return e}return null}function gae(e){if(e.latestUserMessageAt){let t=_v(e.latestUserMessageAt);if(t!==null)return t}let t=null;for(let n of e.messages??[]){if(n.role!==`user`)continue;let e=_v(n.createdAt);e!==null&&(t=t===null?e:Math.max(t,e))}return t===null?vv(e.updatedAt,e.createdAt)??-1/0:t}function yv(e,t){return t===`created_at`?vv(e.createdAt,e.updatedAt)??-1/0:gae(e)}function bv(e,t){return Tu(e,zn(ye({timestamp:oe(ud),id:oe(Yr)}),e=>({timestamp:yv(e,t),id:e.id})))}function xv(e,t,n){return bv(e.filter(e=>e.projectId===t&&e.archivedAt===null),n)[0]??null}var _ae=[{value:nt.make(`codex`),label:`Codex`,available:!0},{value:nt.make(`claudeAgent`),label:`Claude`,available:!0},{value:nt.make(`opencode`),label:`OpenCode`,available:!0,pickerSidebarBadge:`new`},{value:nt.make(`cursor`),label:`Cursor`,available:!0,pickerSidebarBadge:`new`},{value:nt.make(`grok`),label:`Grok`,available:!0,pickerSidebarBadge:`new`}];function Sv(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&&xd(e.itemType)}function vae(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 Cv(e){if(e.tone===`error`)return!0;let t=e.toolLifecycleStatus;if(t===`failed`||t===`declined`)return!0;if(!Sv(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:vae(r)}function wv(e){if(!Sv(e)||Cv(e)||e.tone===`thinking`)return!1;let t=e.toolLifecycleStatus;return!(t===`failed`||t===`declined`||t===`inProgress`||t===`stopped`)}function Tv(e){return!(!Sv(e)||Cv(e)||wv(e))}function yae(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 Ev(e,t){return!e?.startedAt||!e.completedAt?!1:t?t.status!==`running`:!0}function bae(e,t,n){let r=t?.status===`running`?t.activeTurnId:null;return r===null?Ev(e,t)?n:e?.startedAt??n:e?.turnId===r?e.startedAt??n:n}function Dv(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 Ov(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 xae(e){let t=new Map,n=[...e].toSorted(Uv);for(let e of n){let n=e.payload&&typeof e.payload==`object`?e.payload:null,r=n&&typeof n.requestId==`string`?Ci.make(n.requestId):null,i=n&&(n.requestKind===`command`||n.requestKind===`file-read`||n.requestKind===`file-change`)?n.requestKind:n?Dv(n.requestType):null,a=n&&typeof n.detail==`string`?n.detail:void 0;if(e.kind===`approval.requested`&&r&&i){t.set(r,{requestId:r,requestKind:i,createdAt:e.createdAt,...a?{detail:a}:{}});continue}if(e.kind===`approval.resolved`&&r){t.delete(r);continue}if(e.kind===`provider.approval.respond.failed`&&r&&Ov(a)){t.delete(r);continue}}return[...t.values()].toSorted((e,t)=>e.createdAt.localeCompare(t.createdAt))}function Sae(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 Cae(e){let t=new Map,n=[...e].toSorted(Uv);for(let e of n){let n=e.payload&&typeof e.payload==`object`?e.payload:null,r=n&&typeof n.requestId==`string`?Ci.make(n.requestId):null,i=n&&typeof n.detail==`string`?n.detail:void 0;if(e.kind===`user-input.requested`&&r){let i=Sae(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&&Ov(i)&&t.delete(r)}return[...t.values()].toSorted((e,t)=>e.createdAt.localeCompare(t.createdAt))}function wae(e,t){let n=[...e].toSorted(Uv).filter(e=>e.kind===`turn.plan.updated`),i=El([...t?r(n,e=>e.turnId===t):Lr(),Ho(n)]).pipe(ja);if(!i)return null;let a=i.payload&&typeof i.payload==`object`?i.payload:null,o=a?.plan;if(!Array.isArray(o))return null;let s=[];for(let e of o){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`;s.push({step:t.step,status:n})}return s.length===0?null:{createdAt:i.createdAt,turnId:i.turnId,...a&&`explanation`in a?{explanation:a.explanation}:{},steps:s}}function kv(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 jv(n)}let n=[...e].toSorted((e,t)=>e.updatedAt.localeCompare(t.updatedAt)||e.id.localeCompare(t.id)).at(-1);return n?jv(n):null}function Tae(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 jv(n)}}return kv(t,e.latestTurn?.turnId??null)}function Eae(e){return e!==null&&e.implementedAt===null}function Dae(e){let t=[...e].toSorted(Uv),n=[];for(let e of t)e.kind!==`tool.started`&&e.kind!==`task.started`&&e.kind!==`context-window.updated`&&e.summary!==`Checkpoint captured`&&(Oae(e)||n.push(Aae(e)));return jae(n).map(e=>{let{activityKind:t,collapseKey:n,...r}=e;return Object.assign(r,{sourceActivityKind:t})})}function Oae(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 kae(e){if(!e)return;let t=e.status;if(t===`inProgress`||t===`completed`||t===`failed`||t===`declined`||t===`stopped`)return t}function Aae(e){let t=e.payload&&typeof e.payload==`object`?e.payload:null,n=Kae(t),r=eoe(t),i=qae(t),a=e.kind===`task.progress`||e.kind===`task.completed`,o=a&&typeof t?.summary==`string`&&t.summary.length>0?t.summary:null,s=a&&!o&&typeof t?.detail==`string`&&t.detail.length>0?t.detail:null,c=o||s,l=a?!s&&t&&typeof t.detail==`string`&&t.detail.length>0?zv(t.detail).output:null:Qae(t,i??e.summary),u=a?null:Jae(t),d={id:e.id,createdAt:e.createdAt,turnId:e.turnId,label:c||e.summary,tone:e.kind===`task.progress`?`thinking`:e.tone===`approval`?`info`:e.tone,activityKind:e.kind},f=Bv(t),p=$ae(t);if(l&&(d.detail=l),n.command&&(d.command=n.command),n.rawCommand&&(d.rawCommand=n.rawCommand),r.length>0&&(d.changedFiles=r),i&&(d.toolTitle=i),f===`mcp_tool_call`){let e=Mv(t?.data);e?.item!==void 0&&(d.toolData=e.item)}f&&(d.itemType=f),p&&(d.requestKind=p),u&&(d.toolCallId=u);let m=kae(t);!m&&e.kind===`tool.completed`&&(m=`completed`),m&&(d.toolLifecycleStatus=m);let h=Fae(d);return h&&(d.collapseKey=h),d}function jae(e){let t=[];for(let n of e){let e=t.at(-1);if(e&&Mae(e,n)){t[t.length-1]=Nae(e,n);continue}t.push(n)}return t}function Mae(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&&Av(e.toolTitle??e.label)===Av(t.toolTitle??t.label)}function Nae(e,t){let n=Pae(e.changedFiles,t.changedFiles),r=t.detail??e.detail,i=t.command??e.command,a=t.rawCommand??e.rawCommand,o=t.toolTitle??e.toolTitle,s=t.itemType??e.itemType,c=t.requestKind??e.requestKind,l=t.collapseKey??e.collapseKey,u=t.toolCallId??e.toolCallId,d=t.toolLifecycleStatus??e.toolLifecycleStatus,f=t.toolData??e.toolData;return{...e,...t,...r?{detail:r}:{},...i?{command:i}:{},...a?{rawCommand:a}:{},...n.length>0?{changedFiles:n}:{},...o?{toolTitle:o}:{},...s?{itemType:s}:{},...c?{requestKind:c}:{},...l?{collapseKey:l}:{},...u?{toolCallId:u}:{},...d===void 0?{}:{toolLifecycleStatus:d},...f===void 0?{}:{toolData:f}}}function Pae(e,t){let n=[...e??[],...t??[]];return n.length===0?[]:[...new Set(n)]}function Fae(e){if(e.activityKind!==`tool.updated`&&e.activityKind!==`tool.completed`)return;if(e.toolCallId)return`tool:${e.toolCallId}`;let t=Av(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 Av(e){return e.replace(/\s+(?:complete|completed)\s*$/i,``).trim()}function jv(e){return{id:e.id,createdAt:e.createdAt,updatedAt:e.updatedAt,turnId:e.turnId,planMarkdown:e.planMarkdown,implementedAt:e.implementedAt,implementationThreadId:e.implementationThreadId}}function Mv(e){return e&&typeof e==`object`?e:null}function Nv(e){if(typeof e!=`string`)return null;let t=e.trim();return t.length>0?t:null}function Iae(e){return typeof e==`number`&&Number.isFinite(e)?e:null}function Pv(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 Lae(e){let t=Pv(e);if(t.length===0)return null;let n=t.replace(/\\/g,`/`).split(`/`).at(-1)?.trim()??``;return n.length>0?n.toLowerCase():null}function Rae(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 zae=[{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 Bae(e){return zae.find(t=>t.executables.includes(e))}function Vae(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=Pv(r);return i.length>0?i:null}function Hae(e){let t=Rae(e);if(!t||t.rest.length===0)return e;let n=Lae(t.executable);if(!n)return e;let r=Bae(n);return r?Vae(t.rest,r.wrapperFlagPattern)??e:e}function Uae(e){return/[\s"'`]/.test(e)?`"${e.replace(/"/g,`\\"`)}"`:e}function Fv(e){let t=Nv(e);if(t)return t;if(!Array.isArray(e))return null;let n=[];for(let t of e){let e=Nv(t);e!==null&&n.push(e)}return n.length===0?null:n.map(e=>Uae(e)).join(` `)}function Wae(e){let t=Fv(e);return t?Hae(t):null}function Gae(e,t){let n=Fv(e);return!n||t===null||n===t?null:n}function Kae(e){let t=Mv(e?.data),n=Mv(t?.item),r=Mv(n?.result),i=Mv(n?.input),a=Nv(e?.itemType),o=Nv(e?.detail),s=[n?.command,i?.command,r?.command,t?.command,a===`command_execution`&&o?zv(o).output:null];for(let e of s){let t=Wae(e);if(t)return{command:t,rawCommand:Gae(e,t)}}return{command:null,rawCommand:null}}function qae(e){return Nv(e?.title)}function Jae(e){return Nv(Mv(e?.data)?.toolCallId)}function Iv(e){return e.replace(/\s+/g,` `).trim()}function Yae(e,t=84){return e.length<=t?e:`${e.slice(0,t-1).trimEnd()}…`}function Lv(e){let t=Nv(e);return t?Av(Iv(t)).toLowerCase():null}function Rv(e){let t=[];for(let n of e.split(/\r?\n/u)){let e=Iv(n);e.length>0&&t.push(e)}let n=t.find(e=>e!=="```");return n?Yae(n):t.length>1?`${t.length.toLocaleString()} lines`:null}function Xae(e){let t=Mv(Mv(e?.data)?.rawOutput);if(!t)return null;let n=Iae(t.totalFiles);if(n!==null){let e=t.truncated===!0?`+`:``;return`${n.toLocaleString()} file${n===1?``:`s`}${e}`}let r=Nv(t.content);if(r)return Rv(r);let i=Nv(t.stdout);return i?Rv(i):null}function Zae(e,t){let n=Nv(Mv(e?.data)?.kind)?.toLowerCase(),r=Nv(e?.title??t)?.toLowerCase();return Bv(e)===`command_execution`||n===`execute`||r===`terminal`||r===`ran command`}function Qae(e,t){let n=Nv(e?.detail),r=n?zv(n).output:null,i=Lv(t),a=Lv(r);if(r&&i!==a)return r;if(Zae(e,t))return null;let o=Xae(e);return o&&Lv(o)!==i?o:null}function zv(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 Bv(e){if(typeof e?.itemType==`string`&&xd(e.itemType))return e.itemType}function $ae(e){return e?.requestKind===`command`||e?.requestKind===`file-read`||e?.requestKind===`file-change`?e.requestKind:Dv(e?.requestType)??void 0}function Vv(e,t,n){let r=Nv(n);!r||t.has(r)||(t.add(r),e.push(r))}function Hv(e,t,n,r){if(r>4||t.length>=12)return;if(Array.isArray(e)){for(let i of e)if(Hv(i,t,n,r+1),t.length>=12)return;return}let i=Mv(e);if(i){Vv(t,n,i.path),Vv(t,n,i.filePath),Vv(t,n,i.relativePath),Vv(t,n,i.filename),Vv(t,n,i.newPath),Vv(t,n,i.oldPath);for(let e of[`item`,`result`,`input`,`data`,`changes`,`files`,`edits`,`patch`,`patches`,`operations`])if(e in i&&(Hv(i[e],t,n,r+1),t.length>=12))return}}function eoe(e){let t=[],n=new Set;return Hv(Mv(e?.data),t,n,0),t}function Uv(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=Wv(e.kind)-Wv(t.kind);return r===0?e.id.localeCompare(t.id):r}function Wv(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 toe(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 noe(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 roe(e){return!e||e.status===`stopped`||e.status===`interrupted`||e.status===`error`?`disconnected`:e.status===`starting`?`connecting`:e.status===`running`?`running`:`ready`}var ioe=`[data-thread-item], [data-thread-selection-safe]`;async function aoe(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 ooe(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 Gv={"Pending Approval":5,"Awaiting Input":4,Working:3,Connecting:3,"Plan Ready":2,Completed:1};function soe(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 coe(){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=soe({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 Kv(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 loe(e){return e===null?!0:!e.closest(ioe)}function qv(e){return e>1}function Jv(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 uoe(e,t=10){return e.slice(0,Math.max(0,t))}function Yv(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 doe(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 foe(e){return e.button===2?!0:e.isMac&&e.button===0&&e.ctrlKey}function poe(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 moe(e){return e.hasPendingApprovals?`approval`:e.hasPendingUserInput?`input`:e.session?.status===`running`||e.session?.status===`starting`?`working`:e.session?.status===`error`?`failed`:`ready`}function Xv(e){let t=Date.parse(e);return Number.isNaN(t)?0:t}function Zv(...e){for(let t of e){if(t==null)continue;let e=Date.parse(t);if(!Number.isNaN(e))return e}return 0}function Qv(...e){for(let t of e)if(t!=null&&!Number.isNaN(Date.parse(t)))return t;return null}function hoe(e){return[...e].toSorted((e,t)=>Xv(t.createdAt)-Xv(e.createdAt)||e.id.localeCompare(t.id))}function $v(e){let t=Qv(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??Qv(e.updatedAt)}function goe(e){let t=e=>{let t=$v(e);return t===null?0:Date.parse(t)};return[...e].toSorted((e,n)=>t(n)-t(e)||e.id.localeCompare(n.id))}function _oe(e){let t=e.latestTurn;return t&&t.completedAt===null?Qv(t.startedAt,t.requestedAt,e.session?.updatedAt):Qv(e.session?.updatedAt)}function voe(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 ey(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`&&Ev(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}:Kv(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 ty(e){let t=null;for(let n of e)n!==null&&(t===null||Gv[n.label]>Gv[t.label])&&(t=n);return t}function yoe(e){let{deletedThreadId:t,deletedThreadIds:n,sortOrder:r,threads:i}=e,a=i.find(e=>e.id===t);return a?bv(i.filter(e=>e.projectId===a.projectId&&e.id!==t&&!n?.has(e.id)),r)[0]?.id??null:null}function ny(e,t,n){return t.length>0?t.reduce((e,t)=>Math.max(e,yv(t,n)),-1/0):n===`created_at`?_v(e.createdAt)??-1/0:_v(e.updatedAt??e.createdAt)??-1/0}function ry(e,t,n,r){return t===`manual`?[...e]:[...e].toSorted((e,i)=>{let a=ny(i,n(i),t),o=ny(e,n(e),t);return(a===o?0:a>o?1:-1)||r(e,i)})}function boe(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 ry(e,n,e=>r.get(e.id)??[],(e,t)=>e.title.localeCompare(t.title)||e.id.localeCompare(t.id))}function iy(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 ry(e,n,e=>i.get(e.projectKey)??[],(e,t)=>e.title.localeCompare(t.title)||e.projectKey.localeCompare(t.projectKey))}function xoe(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 ry(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 ay(e){return e?.trim()||null}function Soe(e,t){let n=e.find(e=>e.id===t);if(!n)return null;let r=ay(n.worktreePath);return r?e.some(e=>e.id===t?!1:ay(e.worktreePath)===r)?null:r:null}function oy(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 Coe(e){switch(e){case`open`:return`group-hover/v2-row:text-emerald-600 dark:group-hover/v2-row:text-emerald-300/90`;case`merged`:return`group-hover/v2-row:text-violet-600 dark:group-hover/v2-row:text-violet-300/90`;case`closed`:return`group-hover/v2-row:text-red-600 dark:group-hover/v2-row:text-red-300/90`}}function sy(e,t){function n(e){return e.charAt(0).toUpperCase()+e.slice(1)}function r(e,t){return`${t} #${e.number} - ${n(e.state)}`}if(!e)return null;let i=P_(t),a=r(e,i.shortName),o=`${a}: ${e.title}`;return e.state===`open`?{label:`${i.shortName} open`,colorClass:`text-emerald-600 dark:text-emerald-300/90`,tooltip:o,tooltipLead:a,tooltipTitle:e.title,url:e.url}:e.state===`closed`?{label:`${i.shortName} closed`,colorClass:`text-red-600 dark:text-red-300/90`,tooltip:o,tooltipLead:a,tooltipTitle:e.title,url:e.url}:e.state===`merged`?{label:`${i.shortName} merged`,colorClass:`text-violet-600 dark:text-violet-300/90`,tooltip:o,tooltipLead:a,tooltipTitle:e.title,url:e.url}:null}function cy(e){let t=(0,X.c)(2),{className:n}=e,r;return t[0]===n?r=t[1]:(r=(0,Y.jsx)(Dh,{className:n}),t[0]=n,t[1]=r),r}function ly(e){let t=(0,X.c)(8),{status:n}=e,r;t[0]===n.tooltipLead?r=t[1]:(r=(0,Y.jsx)(`span`,{className:`shrink-0 pr-2 font-medium`,children:n.tooltipLead}),t[0]=n.tooltipLead,t[1]=r);let i;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,Y.jsx)(`span`,{className:`min-h-4 shrink-0 border-border/70 border-l`,"aria-hidden":`true`}),t[2]=i):i=t[2];let a;t[3]===n.tooltipTitle?a=t[4]:(a=(0,Y.jsx)(`span`,{className:`min-w-0 truncate pl-2`,children:n.tooltipTitle}),t[3]=n.tooltipTitle,t[4]=a);let o;return t[5]!==r||t[6]!==a?(o=(0,Y.jsxs)(`span`,{className:`flex max-w-[min(34rem,calc(100vw-2rem))] items-stretch overflow-hidden whitespace-nowrap`,children:[r,i,a]}),t[5]=r,t[6]=a,t[7]=o):o=t[7],o}function uy(e){let{threadBranch:t,gitStatus:n}=e;return n===null||t===null||n.refName!==t?null:n.pr??null}function dy(e){return e.length===0?null:{label:`Terminal process running`,colorClass:`text-teal-600 dark:text-teal-300/90`,pulse:!0}}function woe(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=oy(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)(xh,{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)(us,{render:c,children:l}),t[7]=c,t[8]=u);let d;t[9]===o?d=t[10]:(d=(0,Y.jsx)(Ic,{side:`top`,children:o}),t[9]=o,t[10]=d);let f;return t[11]!==u||t[12]!==d?(f=(0,Y.jsxs)(Sl,{children:[u,d]}),t[11]=u,t[12]=d,t[13]=f):f=t[13],f}function fy(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)(us,{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)(Ic,{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)(Sl,{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)(us,{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)(Ic,{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)(Sl,{children:[l,u]}),t[26]=l,t[27]=u,t[28]=d):d=t[28],d}function Toe(e){let t=(0,X.c)(26),{thread:n}=e,r;t[0]!==n.environmentId||t[1]!==n.id?(r=wa(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[u(i)],t[3]=i,t[4]=a);let o=ov(a),s;t[5]!==n.environmentId||t[6]!==n.projectId?(s=$i(n.environmentId,n.projectId),t[5]=n.environmentId,t[6]=n.projectId,t[7]=s):s=t[7];let c=T_(s)?.workspaceRoot??null,l=n.worktreePath??c,d;t[8]!==l||t[9]!==n.branch||t[10]!==n.environmentId||t[11]!==n.worktreePath?(d=(n.branch!=null||n.worktreePath!==null)&&l!==null?q_.status({environmentId:n.environmentId,input:{cwd:l}}):null,t[8]=l,t[9]=n.branch,t[10]=n.environmentId,t[11]=n.worktreePath,t[12]=d):d=t[12];let f=od(d),p;t[13]!==f.data||t[14]!==n.branch?(p=sy(uy({threadBranch:n.branch,gitStatus:f.data}),f.data?.sourceControlProvider),t[13]=f.data,t[14]=n.branch,t[15]=p):p=t[15];let m=p,h;t[16]!==o||t[17]!==n?(h=ey({thread:{...n,lastVisitedAt:o}}),t[16]=o,t[17]=n,t[18]=h):h=t[18];let g=h;if(!m&&!g)return null;let _;t[19]===m?_=t[20]:(_=m?(0,Y.jsxs)(Sl,{children:[(0,Y.jsx)(us,{render:(0,Y.jsx)(`span`,{"aria-label":m.tooltip,className:`inline-flex items-center justify-center ${m.colorClass}`}),children:(0,Y.jsx)(cy,{className:`size-3`})}),(0,Y.jsx)(Ic,{side:`top`,children:(0,Y.jsx)(ly,{status:m})})]}):null,t[19]=m,t[20]=_);let v;t[21]===g?v=t[22]:(v=g?(0,Y.jsx)(fy,{status:g}):null,t[21]=g,t[22]=v);let y;return t[23]!==_||t[24]!==v?(y=(0,Y.jsxs)(`span`,{className:`inline-flex shrink-0 items-center gap-1.5`,children:[_,v]}),t[23]=_,t[24]=v,t[25]=y):y=t[25],y}function Eoe(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=M_(r),a=Md(n.environmentId),o=R(),s=o!==null&&n.environmentId!==o,c=a?.label??null,l=s?c??`Remote`:null,u;t[3]===i?u=t[4]:(u=dy(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)(Sl,{children:[(0,Y.jsx)(us,{render:(0,Y.jsx)(`span`,{role:`img`,"aria-label":d.label,className:`inline-flex items-center justify-center ${d.colorClass}`}),children:(0,Y.jsx)(ig,{className:`size-3 ${d.pulse?`animate-status-pulse`:``}`})}),(0,Y.jsx)(Ic,{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)(Sl,{children:[(0,Y.jsx)(us,{render:(0,Y.jsx)(`span`,{"aria-label":l??`Remote`,className:`inline-flex items-center justify-center`}),children:(0,Y.jsx)(uh,{className:`size-3 text-muted-foreground/60`})}),(0,Y.jsx)(Ic,{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 Doe=`project-favicon-missing`;function Ooe(e){if(!e)return!1;try{let t=new URL(e,`https://p4.invalid`).pathname;return t.slice(t.lastIndexOf(`/`)+1)===Doe}catch{return!1}}var koe=30*6e4,Aoe=5*6e4,py=60*6e4,joe=class extends ou()(`InvalidAssetCollectionKeyError`,{key:Nu,cause:jt()}){get message(){return`Invalid asset collection atom key: ${JSON.stringify(this.key)}.`}},Moe=ls(Ys([ot,Ut(Cu)]));function Noe(e){try{return Moe(JSON.parse(e))}catch(t){throw new joe({key:e,cause:t})}}function my(e,t){try{return new URL(t,e).toString()}catch{return null}}function Poe(e){let t=bs(e,{label:`environment-data:assets:create-url`,tag:Bo.assetsCreateUrl,staleTimeMs:Aoe,idleTtlMs:py,refreshIntervalMs:koe}),n=Ct(e=>{let[n,r]=Noe(e);return Ar(e=>r.map(r=>e(t({environmentId:n,input:{resource:r}})))).pipe(tf(py),Di(`environment-data:assets:create-urls:${e}`))});return{createUrl:t,createUrls:e=>n(JSON.stringify([e.environmentId,e.resources]))}}var hy=Poe(et);function gy(e,t){let n=(0,X.c)(10),r=E(e),i;n[0]!==e||n[1]!==t?(i=hy.createUrl({environmentId:e,input:{resource:t}}),n[0]=e,n[1]=t,n[2]=i):i=n[2];let a=Io(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=my(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 Foe(e,t){let n=gy(e,t);return n._tag===`Success`?n.url:null}function Ioe(e,t){let n=(0,X.c)(8),r=E(e),i;n[0]!==e||n[1]!==t?(i=hy.createUrls({environmentId:e,resources:t}),n[0]=e,n[1]=t,n[2]=i):i=n[2];let a=Io(i),o;return n[3]!==r._tag||n[4]!==r.value||n[5]!==t||n[6]!==a?(o=r._tag===`None`?t.map(Loe):a.map(e=>qt(e)?my(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 Loe(){return null}var _y=new Set;function vy(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=Foe(e.environmentId,n),i=e.fallbackIcon??wh;if(!r||Ooe(r)){let n;return t[2]!==i||t[3]!==e.className?(n=(0,Y.jsx)(yy,{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)(Roe,{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 yy(e){let t=(0,X.c)(5),{className:n,icon:r}=e,i;t[0]===n?i=t[1]:(i=q(`size-3.5 shrink-0 text-muted-foreground/50`,n),t[0]=n,t[1]=i);let a;return t[2]!==r||t[3]!==i?(a=(0,Y.jsx)(r,{className:i}),t[2]=r,t[3]=i,t[4]=a):a=t[4],a}function Roe(e){let t=(0,X.c)(19),{src:n,className:r,fallbackIcon:i}=e,a;t[0]===n?a=t[1]:(a=()=>_y.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)(yy,{className:r,icon:i}),t[2]=i,t[3]=r,t[4]=o,t[5]=c):c=t[5];let l=o!==`loaded`&&`hidden`,u;t[6]!==r||t[7]!==l?(u=q(`size-3.5 shrink-0 rounded-sm object-contain`,l,r),t[6]=r,t[7]=l,t[8]=u):u=t[8];let d;t[9]===n?d=t[10]:(d=()=>{_y.add(n),s(`loaded`)},t[9]=n,t[10]=d);let f;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(f=()=>s(`error`),t[11]=f):f=t[11];let p;t[12]!==n||t[13]!==u||t[14]!==d?(p=(0,Y.jsx)(`img`,{src:n,alt:``,className:u,onLoad:d,onError:f}),t[12]=n,t[13]=u,t[14]=d,t[15]=p):p=t[15];let m;return t[16]!==c||t[17]!==p?(m=(0,Y.jsxs)(Y.Fragment,{children:[c,p]}),t[16]=c,t[17]=p,t[18]=m):m=t[18],m}var by=new Set,xy=new WeakMap,Sy=new WeakMap,Cy=new WeakMap,wy=new WeakMap,Ty=new WeakMap,Ey=new WeakMap,Dy=new WeakMap,Oy=new WeakMap,ky=new WeakSet,Ay,jy=0,My=0,Ny=`__aa_tgt`,Py=`__aa_del`,Fy=`__aa_new`,Iy=e=>{let t=Hoe(e);t&&t.forEach(e=>Uoe(e))},zoe=e=>{e.forEach(e=>{e.target===Ay&&Boe(),xy.has(e.target)&&zy(e.target)})};function Ly(e){let t=e.getBoundingClientRect(),n=Ay?.clientWidth||0,r=Ay?.clientHeight||0;return t.bottom<0||t.top>r||t.right<0||t.left>n}function Ry(e){wy.get(e)?.disconnect();let t=xy.get(e),n=0;t||(t=Gy(e),xy.set(e,t));let{offsetWidth:r,offsetHeight:i}=Ay,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&&zy(e)},{root:Ay,threshold:1,rootMargin:a});o.observe(e),wy.set(e,o)}function zy(e,t=!0){clearTimeout(Oy.get(e));let n=qy(e),r=t?Qy(n)?500:n.duration:0;Oy.set(e,setTimeout(async()=>{let t=Cy.get(e);try{await t?.finished,xy.set(e,Gy(e)),Ry(e)}catch{}},r))}function Boe(){clearTimeout(Oy.get(Ay)),Oy.set(Ay,setTimeout(()=>{by.forEach(e=>Xy(e,e=>By(()=>zy(e))))},100))}function Voe(e){setTimeout(()=>{Ey.set(e,setInterval(()=>By(zy.bind(null,e)),2e3))},Math.round(2e3*Math.random()))}function By(e){typeof requestIdleCallback==`function`?requestIdleCallback(()=>e()):requestAnimationFrame(()=>e())}var Vy,Hy=typeof window<`u`&&`ResizeObserver`in window;Hy&&(Ay=document.documentElement,new MutationObserver(Iy),Vy=new ResizeObserver(zoe),window.addEventListener(`scroll`,()=>{My=window.scrollY,jy=window.scrollX}),Vy.observe(Ay));function Hoe(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(Uy(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(Py in r)return!1;Uy(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(Py in r)return!1;r instanceof Element&&(e.add(r),Uy(t.target,r),Sy.set(r,[t.previousSibling,t.nextSibling]))}}return e},new Set)}function Uy(e,t){!t&&!(Ny in e)?Object.defineProperty(e,Ny,{value:e}):t&&!(Ny in t)&&Object.defineProperty(t,Ny,{value:e})}function Uoe(e){var t;let n=e.isConnected,r=xy.has(e);n&&Sy.has(e)&&Sy.delete(e),Cy.get(e)?.playState!==`finished`&&((t=Cy.get(e))==null||t.cancel()),Fy in e?$y(e):r&&n?Goe(e):r&&!n?Koe(e):$y(e)}function Wy(e){return Number(e.replace(/[^0-9.\-]/g,``))}function Woe(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 Gy(e){let t=e.getBoundingClientRect(),{x:n,y:r}=Woe(e);return{top:t.top+r,left:t.left+n,width:t.width,height:t.height}}function Ky(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=Wy(s.paddingTop)+Wy(s.paddingBottom)+Wy(s.borderTopWidth)+Wy(s.borderBottomWidth),t=Wy(s.paddingLeft)+Wy(s.paddingRight)+Wy(s.borderRightWidth)+Wy(s.borderLeftWidth);r-=t,a-=t,i-=e,o-=e}return[r,a,i,o].map(Math.round)}function qy(e){return Ny in e&&Dy.has(e[Ny])?Dy.get(e[Ny]):{duration:250,easing:`ease-in-out`}}function Jy(e){if(Ny in e)return e[Ny]}function Yy(e){let t=Jy(e);return t?ky.has(t):!1}function Xy(e,...t){t.forEach(t=>t(e,Dy.has(e)));for(let n=0;n<e.children.length;n++){let r=e.children.item(n);r&&t.forEach(e=>e(r,Dy.has(r)))}}function Zy(e){return Array.isArray(e)?e:[e]}function Qy(e){return typeof e==`function`}function Goe(e){let t=xy.get(e),n=Gy(e);if(!Yy(e))return xy.set(e,n);if(Ly(e)){xy.set(e,n),Ry(e);return}let r;if(!t)return;let i=qy(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]=Ky(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]=Zy(i(e,`remain`,t,n));r=new Animation(a),r.play()}Cy.set(e,r),xy.set(e,n),r.addEventListener(`finish`,zy.bind(null,e,!1),{once:!0})}function $y(e){Fy in e&&delete e[Fy];let t=Gy(e);xy.set(e,t);let n=qy(e);if(!Yy(e))return;if(Ly(e)){Ry(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]=Zy(n(e,`add`,t));r=new Animation(i),r.play()}Cy.set(e,r),r.addEventListener(`finish`,zy.bind(null,e,!1),{once:!0})}function eb(e,t){var n;e.remove(),xy.delete(e),Sy.delete(e),Cy.delete(e),(n=wy.get(e))==null||n.disconnect(),setTimeout(()=>{if(Py in e&&delete e[Py],Object.defineProperty(e,Fy,{value:!0,configurable:!0}),t&&e instanceof HTMLElement)for(let n in t)e.style[n]=``},0)}function Koe(e){var t;if(!Sy.has(e)||!xy.has(e))return;let[n,r]=Sy.get(e);Object.defineProperty(e,Py,{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=Jy(e))==null||t.appendChild(e),!Yy(e))return eb(e);let[o,s,c,l]=Joe(e),u=qy(e),d=xy.get(e);(i!==jy||a!==My)&&qoe(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(!Qy(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]=Zy(u(e,`remove`,d));n?.styleReset!==!1&&(p=n?.styleReset||p,Object.assign(e.style,p)),f=new Animation(t),f.play()}Cy.set(e,f),f.addEventListener(`finish`,()=>eb(e,p),{once:!0})}function qoe(e,t,n,r){let i=jy-t,a=My-n,o=document.documentElement.style.scrollBehavior;if(getComputedStyle(Ay).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(!Qy(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 Joe(e){let t=xy.get(e),[n,,r]=Ky(e,t,Gy(e)),i=e.parentElement;for(;i&&(getComputedStyle(i).position===`static`||i instanceof HTMLBodyElement);)i=i.parentElement;i||=document.body;let a=getComputedStyle(i),o=!Cy.has(e)||Cy.get(e)?.playState===`finished`?Gy(i):xy.get(i);return[Math.round(t.top-o.top)-Wy(a.borderTopWidth),Math.round(t.left-o.left)-Wy(a.borderLeftWidth),n,r]}function tb(e,t={}){if(Hy&&Vy&&!(window.matchMedia(`(prefers-reduced-motion: reduce)`).matches&&!Qy(t)&&!t.disrespectUserMotionPreference)){ky.add(e),getComputedStyle(e).position===`static`&&Object.assign(e.style,{position:`relative`}),Xy(e,zy,Voe,e=>Vy?.observe(e)),Qy(t)?Dy.set(e,t):Dy.set(e,{duration:250,easing:`ease-in-out`,...t});let n=new MutationObserver(Iy);n.observe(e,{childList:!0}),Ty.set(e,n),by.add(e)}return Object.freeze({parent:e,enable:()=>{ky.add(e)},disable:()=>{ky.delete(e),Xy(e,e=>{let t=Cy.get(e);try{t?.cancel()}catch{}Cy.delete(e);let n=Oy.get(e);n&&clearTimeout(n),Oy.delete(e);let r=Ey.get(e);r&&clearInterval(r),Ey.delete(e)})},isEnabled:()=>ky.has(e),destroy:()=>{ky.delete(e),by.delete(e),Dy.delete(e),Ty.get(e)?.disconnect(),Ty.delete(e),Xy(e,e=>{Vy?.unobserve(e);let t=Cy.get(e);try{t?.cancel()}catch{}Cy.delete(e),wy.get(e)?.disconnect(),wy.delete(e);let n=Ey.get(e);n&&clearInterval(n),Ey.delete(e);let r=Oy.get(e);r&&clearTimeout(r),Oy.delete(e),xy.delete(e),Sy.delete(e)})}})}function Yoe(){var e=[...arguments];return(0,J.useMemo)(()=>t=>{e.forEach(e=>e(t))},e)}var nb=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function rb(e){let t=Object.prototype.toString.call(e);return t===`[object Window]`||t===`[object global]`}function ib(e){return`nodeType`in e}function ab(e){return e?rb(e)?e:ib(e)?e.ownerDocument?.defaultView??window:window:window}function ob(e){let{Document:t}=ab(e);return e instanceof t}function sb(e){return rb(e)?!1:e instanceof ab(e).HTMLElement}function cb(e){return e instanceof ab(e).SVGElement}function lb(e){return e?rb(e)?e.document:ib(e)?ob(e)?e:sb(e)||cb(e)?e.ownerDocument:document:document:document}var ub=nb?J.useLayoutEffect:J.useEffect;function db(e){let t=(0,J.useRef)(e);return ub(()=>{t.current=e}),(0,J.useCallback)(function(){var e=[...arguments];return t.current==null?void 0:t.current(...e)},[])}function Xoe(){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 fb(e,t){t===void 0&&(t=[e]);let n=(0,J.useRef)(e);return ub(()=>{n.current!==e&&(n.current=e)},t),n}function pb(e,t){let n=(0,J.useRef)();return(0,J.useMemo)(()=>{let t=e(n.current);return n.current=t,t},[...t])}function mb(e){let t=db(e),n=(0,J.useRef)(null);return[n,(0,J.useCallback)(e=>{e!==n.current&&t?.(e,n.current),n.current=e},[])]}function hb(e){let t=(0,J.useRef)();return(0,J.useEffect)(()=>{t.current=e},[e]),t.current}var gb={};function _b(e,t){return(0,J.useMemo)(()=>{if(t)return t;let n=gb[e]==null?0:gb[e]+1;return gb[e]=n,e+`-`+n},[e,t])}function vb(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 yb=vb(1),bb=vb(-1);function Zoe(e){return`clientX`in e&&`clientY`in e}function xb(e){if(!e)return!1;let{KeyboardEvent:t}=ab(e.target);return t&&e instanceof t}function Qoe(e){if(!e)return!1;let{TouchEvent:t}=ab(e.target);return t&&e instanceof t}function Sb(e){if(Qoe(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 Zoe(e)?{x:e.clientX,y:e.clientY}:null}var Cb=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[Cb.Translate.toString(e),Cb.Scale.toString(e)].join(` `)}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+` `+n+`ms `+r}}}),wb=`a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]`;function $oe(e){return e.matches(wb)?e:e.querySelector(wb)}var ese={display:`none`};function tse(e){let{id:t,value:n}=e;return J.createElement(`div`,{id:t,style:ese},n)}function nse(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 rse(){let[e,t]=(0,J.useState)(``);return{announce:(0,J.useCallback)(e=>{e!=null&&t(e)},[]),announcement:e}}var Tb=(0,J.createContext)(null);function ise(e){let t=(0,J.useContext)(Tb);(0,J.useEffect)(()=>{if(!t)throw Error(`useDndMonitor must be used within a children of <DndContext>`);return t(e)},[e,t])}function ase(){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 ose={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.
|
|
@@ -574,8 +574,8 @@ ${s.join(`
|
|
|
574
574
|
`).length>Rrt}var Hrt=(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&&Vrt(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:Brt,maskImage:Brt}:void 0,children:(0,Y.jsx)(Urt,{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)(rr,{type:`button`,size:`xs`,variant:`ghost`,"aria-expanded":n,"data-scroll-anchor-ignore":!0,onClick:()=>r(lit),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}),Urt=(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)(ZX,{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=Us(e.text);if(r.some(uit)){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)(ZX,{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)(Wrt,{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=$nt(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=Qnt(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)(Frt,{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)(Frt,{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)(ZX,{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)(ZX,{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 Wrt(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=wW(nl(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)(ZX,{text:eu(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)(PHe,{fileDiff:e,options:{collapsed:!1,diffStyle:`unified`,theme:bW(r.resolvedTheme)}},TW(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 Grt(e){let t=(0,J.useRef)({byId:new Map,result:[]});return(0,J.useMemo)(()=>{let n=Ynt(e,t.current);return t.current=n,n.result},[e])}function Krt(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 qrt(e){return Krt(e,new Date().toISOString())??`0s`}function Jrt(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)(nh,{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)(Gt,{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)(sh,{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)(gh,{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)(Oh,{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)(Wte,{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)(Fh,{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)($h,{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)(ig,{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)(lg,{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)(ct,{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)(Ti,{className:r,"aria-hidden":!0}),t[22]=r,t[23]=e),e}}}function Yrt(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 Xrt(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 Zrt(e){let t=e.rawCommand?.trim();return!t||!e.command||t===e.command.trim()?null:t}function Qrt(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=Zrt(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(`
|
|
575
575
|
`)),n.length>0?n.join(`
|
|
576
576
|
|
|
577
|
-
`):null}function $rt(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 Yrt(e.tone).iconName}function eit(e){let t=e.trim();return t.length===0?e:`${t.charAt(0).toUpperCase()}${t.slice(1)}`}function tit(e){return e.toolTitle?eit(l9(e.toolTitle)):eit(l9(e.label))}var nit=e=>e.stopPropagation(),rit=(0,J.memo)(function(e){let t=(0,X.c)(73),{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=Yrt(n.tone);h=n.sourceActivityKind===`runtime.warning`;let i;t[12]!==h||t[13]!==n?(i=h?`x`:$rt(n),t[12]=h,t[13]=n,t[14]=i):i=t[14],l=i,d=tit(n);let a=Xrt(n,r);f=a&&l9(a).toLowerCase()===l9(d).toLowerCase()?null:a,c=f?`${d} - ${f}`:d,u=Qrt(n,r),s=u!==null;let o;t[15]===n?o=t[16]:(o=Cv(n),t[15]=n,t[16]=o),m=o,p=m&&(n.sourceActivityKind===`runtime.error`||!Sv(n)),g=q(`flex size-5 shrink-0 items-center justify-center`,h||p?`text-destructive`:n.tone===`tool`||m?`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}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];let _=g,v=h?`font-medium text-warning`:p?`font-medium text-destructive`:`font-medium text-foreground/82`,y=!i.activeTurnInProgress,b;t[17]!==y||t[18]!==n?(b=!y&&Tv(n),t[17]=y,t[18]=n,t[19]=b):b=t[19];let x=b,S;t[20]!==y||t[21]!==n?(S=wv(n)||y&&Tv(n),t[20]=y,t[21]=n,t[22]=S):S=t[22];let C=S,w;t[23]!==s||t[24]!==c?(w=s?{role:`button`,tabIndex:0,"aria-label":c,onClick:()=>o(dit),onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),o(fit))}}:{},t[23]=s,t[24]=c,t[25]=w):w=t[25];let T=w,E=s&&`cursor-pointer hover:bg-accent/20 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring/70`,D;t[26]===E?D=t[27]:(D=q(`flex flex-col rounded-md px-0.5 py-0.5 transition-colors`,E),t[26]=E,t[27]=D);let O;t[28]===l?O=t[29]:(O=(0,Y.jsx)(Jrt,{name:l,className:`block size-3.5 shrink-0 stroke-[1.8] opacity-80`}),t[28]=l,t[29]=O);let k;t[30]!==_||t[31]!==O?(k=(0,Y.jsx)(`span`,{className:_,children:O}),t[30]=_,t[31]=O,t[32]=k):k=t[32];let A;t[33]===v?A=t[34]:(A=q(`min-w-0 shrink truncate`,v),t[33]=v,t[34]=A);let j;t[35]!==d||t[36]!==A?(j=(0,Y.jsx)(`span`,{className:A,children:d}),t[35]=d,t[36]=A,t[37]=j):j=t[37];let M;t[38]===f?M=t[39]:(M=f&&(0,Y.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-muted-foreground/55`,children:f}),t[38]=f,t[39]=M);let N;t[40]!==M||t[41]!==j?(N=(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:[j,M]})}),t[40]=M,t[41]=j,t[42]=N):N=t[42];let P=!s,F;t[43]!==s||t[44]!==a?(F=s?(0,Y.jsx)(Ye,{className:q(`size-3 shrink-0 opacity-70 transition-transform duration-200`,a&&`rotate-180`),"aria-hidden":!0}):null,t[43]=s,t[44]=a,t[45]=F):F=t[45];let I;t[46]!==P||t[47]!==F?(I=(0,Y.jsx)(`span`,{className:`flex size-4 shrink-0 items-center justify-center`,"aria-hidden":P,children:F}),t[46]=P,t[47]=F,t[48]=I):I=t[48];let L;t[49]!==m||t[50]!==x||t[51]!==C?(L=m?(0,Y.jsxs)(Sl,{children:[(0,Y.jsx)(us,{render:(0,Y.jsx)(`span`,{className:`flex size-4 items-center justify-center`,"aria-label":`Tool call failed`}),children:(0,Y.jsx)(ct,{className:`block size-3 shrink-0 text-destructive`,"aria-hidden":!0})}),(0,Y.jsx)(Ic,{children:`Failed`})]}):C?(0,Y.jsxs)(Sl,{children:[(0,Y.jsx)(us,{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)(Gt,{className:`block size-3 shrink-0 stroke-current`,stroke:`currentColor`,"aria-hidden":!0})})}),(0,Y.jsx)(Ic,{children:`Completed`})]}):x?(0,Y.jsxs)(Sl,{children:[(0,Y.jsx)(us,{render:(0,Y.jsx)(`span`,{className:`flex size-4 items-center justify-center`}),children:(0,Y.jsx)(Rh,{className:`block size-3 shrink-0 opacity-70`,"aria-hidden":!0})}),(0,Y.jsx)(Ic,{children:`Empty`})]}):null,t[49]=m,t[50]=x,t[51]=C,t[52]=L):L=t[52];let R;t[53]===L?R=t[54]:(R=(0,Y.jsx)(`span`,{className:`flex size-4 shrink-0 items-center justify-center`,children:L}),t[53]=L,t[54]=R);let z;t[55]!==I||t[56]!==R?(z=(0,Y.jsxs)(`div`,{className:`flex shrink-0 items-center gap-px text-muted-foreground/55`,children:[I,R]}),t[55]=I,t[56]=R,t[57]=z):z=t[57];let B;t[58]!==N||t[59]!==z?(B=(0,Y.jsxs)(`div`,{className:`flex min-w-0 flex-1 items-center gap-1.5`,children:[N,z]}),t[58]=N,t[59]=z,t[60]=B):B=t[60];let V;t[61]!==B||t[62]!==k?(V=(0,Y.jsxs)(`div`,{className:`flex select-none items-center gap-1.5 transition-[opacity,translate] duration-200`,children:[k,B]}),t[61]=B,t[62]=k,t[63]=V):V=t[63];let H;t[64]!==s||t[65]!==a||t[66]!==u?(H=a&&s&&u?(0,Y.jsx)(`div`,{className:`mt-1 ms-7 cursor-default border-s border-border/45 ps-3 pt-0.5`,onClick:nit,onPointerDown:nit,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:u})}):null,t[64]=s,t[65]=a,t[66]=u,t[67]=H):H=t[67];let U;return t[68]!==T||t[69]!==V||t[70]!==H||t[71]!==D?(U=(0,Y.jsxs)(`div`,{className:D,...T,children:[V,H]}),t[68]=T,t[69]=V,t[70]=H,t[71]=D,t[72]=U):U=t[72],U});function iit(){return new Map}function ait(e){return e.kind===`message`?e.message.id:null}function oit(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)(_rt,{row:t})})}function sit(e){return!Tv(e)}function cit(e){return Sv(e)}function lit(e){return!e}function uit(e){return e.kind===`review-comment`}function dit(e){return!e}function fit(e){return!e}function pit(e){return e?.sourceControlProvider?F_(e.sourceControlProvider):N_}function mit(e){let t=e.terminology??N_,n=e.featureBranch?[`Preparing feature ref...`]:[],r=e.pushTarget?`Pushing to ${e.pushTarget}...`:`Pushing...`,i=[`Preparing ${t.shortLabel}...`,`Generating ${t.shortLabel} content...`,`Creating ${t.singular}...`];if(e.action===`push`)return[r];if(e.action===`create_pr`)return e.shouldPushBeforePr?[r,...i]:i;let a=e.action===`commit`||e.hasWorkingTreeChanges?e.hasCustomCommitMessage?[`Committing...`]:[`Generating commit message...`,`Committing...`]:[];return e.action===`commit`?[...n,...a]:e.action===`commit_push`?[...n,...a,r]:[...n,...a,r,...i]}function hit(e,t,n=!0){if(!e)return[];let r=pit(e),i=e.refName!==null,a=e.hasWorkingTreeChanges,o=e.pr?.state===`open`,s=e.behindCount>0,c=(e.aheadOfDefaultCount??e.aheadCount)>0,l=n&&!e.hasUpstream,u=!t&&a,d=!t&&i&&!s&&e.aheadCount>0&&(e.hasUpstream||l),f=!t&&i&&!a&&!o&&c&&!s&&(e.hasUpstream||l),p=!t&&o,m={id:`commit`,label:`Commit`,disabled:!u,icon:`commit`,kind:`open_dialog`,dialogAction:`commit`};return n?[m,{id:`push`,label:`Push`,disabled:!d,icon:`push`,kind:`open_dialog`,dialogAction:`push`},o?{id:`pr`,label:`View ${r.shortLabel}`,disabled:!p,icon:`pr`,kind:`open_pr`}:{id:`pr`,label:`Create ${r.shortLabel}`,disabled:!f,icon:`pr`,kind:`open_dialog`,dialogAction:`create_pr`}]:[m]}function git(e,t,n=!1,r=!0){if(t)return{label:`Commit`,disabled:!0,kind:`show_hint`,hint:`Git action in progress.`};if(!e)return{label:`Commit`,disabled:!0,kind:`show_hint`,hint:`Git status is unavailable.`};let i=e.refName!==null,a=e.hasWorkingTreeChanges,o=e.pr?.state===`open`,s=e.aheadCount>0,c=(e.aheadOfDefaultCount??e.aheadCount)>0,l=e.behindCount>0,u=s&&l,d=pit(e);return i?a?!e.hasUpstream&&!r?{label:`Commit`,disabled:!1,kind:`run_action`,action:`commit`}:o||n?{label:`Commit & push`,disabled:!1,kind:`run_action`,action:`commit_push`}:{label:`Commit, push & ${d.shortLabel}`,disabled:!1,kind:`run_action`,action:`commit_push_pr`}:e.hasUpstream?u?{label:`Sync ref`,disabled:!0,kind:`show_hint`,hint:`Branch has diverged from upstream. Rebase/merge first.`}:l?{label:`Pull`,disabled:!1,kind:`run_pull`}:s?o||n?{label:`Push`,disabled:!1,kind:`run_action`,action:n?`commit_push`:`push`}:{label:`Push & create ${d.shortLabel}`,disabled:!1,kind:`run_action`,action:`create_pr`}:o&&e.hasUpstream?{label:`View ${d.shortLabel}`,disabled:!1,kind:`open_pr`}:c&&!n?{label:`Create ${d.shortLabel}`,disabled:!1,kind:`run_action`,action:`create_pr`}:{label:`Commit`,disabled:!0,kind:`show_hint`,hint:`Branch is up to date. No action needed.`}:r?s?o||n?{label:`Push`,disabled:!1,kind:`run_action`,action:n?`commit_push`:`push`}:{label:`Push & create ${d.shortLabel}`,disabled:!1,kind:`run_action`,action:`create_pr`}:o?{label:`View ${d.shortLabel}`,disabled:!1,kind:`open_pr`}:{label:`Push`,disabled:!0,kind:`show_hint`,hint:`No local commits to push.`}:o&&!s?{label:`View ${d.shortLabel}`,disabled:!1,kind:`open_pr`}:{label:`Publish repository`,disabled:!1,kind:`open_publish`}:{label:`Commit`,disabled:!0,kind:`show_hint`,hint:`Create and checkout a ref before pushing or opening a ${d.singular}.`}}function _it(e,t){return t?e===`push`||e===`create_pr`||e===`commit_push`||e===`commit_push_pr`:!1}function vit(e){let t=e.branchName,n=` on "${t}". You can continue on this ref or create a feature ref and run the same action there.`,r=e.terminology??N_;return e.action===`push`||e.action===`commit_push`?e.includesCommit?{title:`Commit & push to default ref?`,description:`This action will commit and push changes${n}`,continueLabel:`Commit & push to ${t}`}:{title:`Push to default ref?`,description:`This action will push local commits${n}`,continueLabel:`Push to ${t}`}:e.includesCommit?{title:`Commit, push & create ${r.shortLabel} from default ref?`,description:`This action will commit, push, and create a ${r.singular}${n}`,continueLabel:`Commit, push & create ${r.shortLabel}`}:{title:`Push & create ${r.shortLabel} from default ref?`,description:`This action will push local commits and create a ${r.singular}${n}`,continueLabel:`Push & create ${r.shortLabel}`}}function yit(e){return e.branch.status!==`created`||!e.branch.name?null:{branch:e.branch.name}}function bit(e,t){return{branch:e,expectedBranch:t}}function xit(e){return!e.gitStatus||e.gitStatus.refName===null&&e.threadBranch!==null||e.threadBranch===e.gitStatus.refName||e.threadBranch!==null&&e.gitStatus.refName!==null&&!die(e.threadBranch)&&die(e.gitStatus.refName)?null:{branch:e.gitStatus.refName}}var Sit=250;function Cit(e,t,n){t===null||n===null||e({environmentId:t,input:{cwd:n}})}var wit=[`runStackedAction`,`pull`,`publishRepository`],p9=[{value:`github`,label:`GitHub`,description:`github.com`,host:`github.com`,pathPlaceholder:`owner/repo`,Icon:sv},{value:`gitlab`,label:`GitLab`,description:`gitlab.com`,host:`gitlab.com`,pathPlaceholder:`group/project`,Icon:cv},{value:`bitbucket`,label:`Bitbucket`,description:`bitbucket.org`,host:`bitbucket.org`,pathPlaceholder:`workspace/repository`,Icon:uv},{value:`azure-devops`,label:`Azure DevOps`,description:`dev.azure.com`,host:`dev.azure.com`,pathPlaceholder:`project/repository`,Icon:lv}];function Tit(e){return p9.find(t=>t.value===e)??p9[0]}function Eit(e){return p9.some(t=>t.value===e)}function Dit(e){let t=e.sourceControlProviders.find(t=>t.kind===e.provider);return t?t.status===`available`?t.auth.status===`unauthenticated`?{ready:!1,hint:ja(t.auth.detail)??`${t.label} is not authenticated. Open Settings -> Source Control for setup guidance.`}:{ready:!0,hint:null}:{ready:!1,hint:t.installHint}:{ready:!1,hint:`Provider status unavailable. Open Settings -> Source Control and rescan.`}}function Oit(e){if(e===null)return;let t=Math.max(0,Math.floor((Date.now()-e)/1e3));return t<60?`Running for ${t}s`:`Running for ${Math.floor(t/60)}m ${t%60}s`}function kit(e){return e.lastOutputLine?e.lastOutputLine:Oit(e.hookStartedAtMs??e.phaseStartedAtMs)}function Ait({item:e,gitStatus:t,isBusy:n,hasPrimaryRemote:r}){if(!e.disabled)return null;if(n)return`Git action in progress.`;if(!t)return`Git status is unavailable.`;let i=t.refName!==null,a=t.hasWorkingTreeChanges,o=t.pr?.state===`open`,s=t.aheadCount>0,c=t.behindCount>0,l=gv(t.sourceControlProvider).terminology;return e.id===`commit`?a?`Commit is currently unavailable.`:`Worktree is clean. Make changes before committing.`:e.id===`push`?i?a?`Commit or stash local changes before pushing.`:c?`Branch is behind upstream. Pull/rebase before pushing.`:!t.hasUpstream&&!r?`Add an "origin" remote before pushing.`:s?`Push is currently unavailable.`:`No local commits to push.`:`Detached HEAD: checkout a refName before pushing.`:o?`View ${l.singular} is currently unavailable.`:i?a?`Commit local changes before creating a ${l.singular}.`:!t.hasUpstream&&!r?`Add an "origin" remote before creating a ${l.singular}.`:s?c?`Branch is behind upstream. Pull/rebase before creating a ${l.singular}.`:`Create ${l.singular} is currently unavailable.`:`No local commits to include in a ${l.singular}.`:`Detached HEAD: checkout a refName before creating a ${l.singular}.`}var jit=`Commit changes`,Mit=`Review and confirm your commit. Leave the message blank to auto-generate one.`;function Nit(e){let t=(0,X.c)(4),{icon:n,SourceControlIcon:r}=e;if(n===`commit`){let e;return t[0]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,Y.jsx)(Eh,{}),t[0]=e):e=t[0],e}if(n===`push`){let e;return t[1]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,Y.jsx)(lh,{}),t[1]=e):e=t[1],e}let i;return t[2]===r?i=t[3]:(i=(0,Y.jsx)(r,{}),t[2]=r,t[3]=i),i}function Pit(e){let t=(0,X.c)(10),{quickAction:n,SourceControlIcon:r}=e;if(n.kind===`open_pr`){let e;return t[0]===r?e=t[1]:(e=(0,Y.jsx)(r,{className:`size-3.5`}),t[0]=r,t[1]=e),e}if(n.kind===`open_publish`){let e;return t[2]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,Y.jsx)(lh,{className:`size-3.5`}),t[2]=e):e=t[2],e}if(n.kind===`run_pull`){let e;return t[3]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,Y.jsx)(kh,{className:`size-3.5`}),t[3]=e):e=t[3],e}if(n.kind===`run_action`){if(n.action===`commit`){let e;return t[4]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,Y.jsx)(Eh,{className:`size-3.5`}),t[4]=e):e=t[4],e}if(n.action===`push`||n.action===`commit_push`){let e;return t[5]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,Y.jsx)(lh,{className:`size-3.5`}),t[5]=e):e=t[5],e}let e;return t[6]===r?e=t[7]:(e=(0,Y.jsx)(r,{className:`size-3.5`}),t[6]=r,t[7]=e),e}if(n.label===`Commit`){let e;return t[8]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,Y.jsx)(Eh,{className:`size-3.5`}),t[8]=e):e=t[8],e}let i;return t[9]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,Y.jsx)(kh,{className:`size-3.5`}),t[9]=i):i=t[9],i}function Fit(e){let t=(0,X.c)(152),n=xm(),r;t[0]===e.environmentId?r=t[1]:(r=e.environmentId===null?null:XD.discovery({environmentId:e.environmentId,input:{}}),t[0]=e.environmentId,t[1]=r);let i=od(r),[a,o]=(0,J.useState)(null),[s,c]=(0,J.useState)(null),[l,u]=(0,J.useState)(`private`),[d,f]=(0,J.useState)(`origin`),[p,m]=(0,J.useState)(`ssh`),[h,g]=(0,J.useState)(0),[_,v]=(0,J.useState)(!1),[y,b]=(0,J.useState)(null),[x,S]=(0,J.useState)(null),C;t[2]!==e.environmentId||t[3]!==e.gitCwd?(C={environmentId:e.environmentId,cwd:e.gitCwd},t[2]=e.environmentId,t[3]=e.gitCwd,t[4]=C):C=t[4];let w=$tt(C),T;if(t[5]!==i.data?.sourceControlProviders){T={github:null,gitlab:null,bitbucket:null,"azure-devops":null};for(let e of i.data?.sourceControlProviders??[])Eit(e.kind)&&(T[e.kind]=ja(e.auth.account));t[5]=i.data?.sourceControlProviders,t[6]=T}else T=t[6];let E=T,D;t[7]===i.data?.sourceControlProviders?D=t[8]:(D=i.data?.sourceControlProviders??[],t[7]=i.data?.sourceControlProviders,t[8]=D);let O=D,k;t[9]===O?k=t[10]:(k=Object.fromEntries(p9.map(e=>[e.value,Dit({provider:e.value,sourceControlProviders:O})])),t[9]=O,t[10]=k);let A=k,j;t[11]===A?j=t[12]:(j=p9.some(e=>A[e.value].ready),t[11]=A,t[12]=j);let M=j,N;t[13]===A?N=t[14]:(N=p9.toSorted((e,t)=>{let n=A[e.value].ready;return n===A[t.value].ready?e.label.localeCompare(t.label):n?-1:1}),t[13]=A,t[14]=N);let P=N,F;t[15]!==A||t[16]!==P?(F=P.find(e=>A[e.value].ready)?.value,t[15]=A,t[16]=P,t[17]=F):F=t[17];let I=F,L=a!==null&&A[a].ready?a:I??a??`github`,R=A[L],z=E[L]?`${E[L]}/`:``,B=s??z,V;t[18]===L?V=t[19]:(V=Tit(L),t[18]=L,t[19]=V);let H=V,U=H.host,W=H.pathPlaceholder,G=H.label,ee;t[20]===Symbol.for(`react.memo_cache_sentinel`)?(ee=[`Provider`,`Repository`,`Summary`],t[20]=ee):ee=t[20];let te=ee,ne=x?.repository.nameWithOwner??null,K;t[21]!==G||t[22]!==ne?(K=[G,ne,null],t[21]=G,t[22]=ne,t[23]=K):K=t[23];let re=K,ie;bb0:{if(!R.ready){ie=!1;break bb0}if(w.isPending){ie=!1;break bb0}let e,n;if(t[24]!==B){let r=B.trim().split(`/`);e=r[0]?.trim()??``,n=r.slice(1).join(`/`).trim(),t[24]=B,t[25]=e,t[26]=n}else e=t[25],n=t[26];let r=n;ie=e.length>0&&r.length>0}let ae=ie,oe;t[27]!==ae||t[28]!==p||t[29]!==L||t[30]!==d||t[31]!==B||t[32]!==w||t[33]!==l?(oe=()=>{ae&&(b(null),(async()=>{let e=await w.run({provider:L,repository:B.trim(),visibility:l,remoteName:d.trim()||`origin`,protocol:p});if(e._tag===`Failure`){if(!Hr(e)){let t=fe(e);b(t instanceof Error?t.message:`An error occurred.`)}return}(0,Sm.flushSync)(()=>{S(e.value),g(2)})})())},t[27]=ae,t[28]=p,t[29]=L,t[30]=d,t[31]=B,t[32]=w,t[33]=l,t[34]=oe):oe=t[34];let se=oe,ce;t[35]===Symbol.for(`react.memo_cache_sentinel`)?(ce=()=>{f(`origin`),c(null),g(0),v(!1),b(null),S(null)},t[35]=ce):ce=t[35];let le=ce,ue;t[36]===e?ue=t[37]:(ue=t=>{e.onOpenChange(t),t||le()},t[36]=e,t[37]=ue);let de=ue,pe;t[38]!==de||t[39]!==n?(pe=()=>{de(!1),n({to:`/settings/source-control`})},t[38]=de,t[39]=n,t[40]=pe):pe=t[40];let me=pe,ge=e.open,_e,ve;t[41]===Symbol.for(`react.memo_cache_sentinel`)?(_e=(0,Y.jsx)(tT,{children:`Publish repository`}),ve=(0,Y.jsx)(nT,{children:`Pick where to host it, then point us at a repo to push to.`}),t[41]=_e,t[42]=ve):(_e=t[41],ve=t[42]);let ye;t[43]!==h||t[44]!==re?(ye=(0,Y.jsxs)($w,{className:`border-b border-border/70 bg-foreground/[0.025] dark:border-transparent dark:bg-transparent`,children:[_e,ve,(0,Y.jsx)(`div`,{className:`grid grid-cols-3 gap-2`,children:te.map((e,t)=>{let n=t<h,r=h!==2&&t<te.length-1&&t<=h;return(0,Y.jsxs)(`button`,{type:`button`,onClick:r?()=>g(t):void 0,disabled:!r,className:q(`grid min-w-0 grid-cols-[1rem_minmax(0,1fr)] gap-x-2 rounded-lg border px-3 py-2 text-left`,t===h?`border-primary bg-primary/10 ring-1 ring-primary/25 dark:border-transparent`:n?`border-border bg-background dark:border-transparent dark:bg-white/[0.05]`:`border-border bg-muted/40 dark:border-transparent dark:bg-white/[0.025]`,!r&&`cursor-default`),children:[(0,Y.jsx)(`span`,{"aria-hidden":!0,className:q(`row-span-2 mt-0.5 grid size-4 place-items-center rounded-full border`,n?`border-primary bg-primary text-primary-foreground`:t===h?`border-primary bg-background`:`border-muted-foreground/35 bg-background`),children:n?(0,Y.jsx)(Gt,{className:`size-3`}):null}),(0,Y.jsxs)(`span`,{className:`text-[10px] font-medium uppercase text-muted-foreground`,children:[`Step `,t+1]}),(0,Y.jsxs)(`span`,{className:`truncate text-xs font-semibold text-foreground`,children:[e,n&&re[t]?`: ${re[t]}`:``]})]},e)})})]}),t[43]=h,t[44]=re,t[45]=ye):ye=t[45];let be=h!==0&&`hidden`,xe;t[46]===be?xe=t[47]:(xe=q(`space-y-2`,be),t[46]=be,t[47]=xe);let Se;t[48]===Symbol.for(`react.memo_cache_sentinel`)?(Se=(0,Y.jsx)(`span`,{id:`publish-provider-cards-label`,className:`text-xs font-medium text-foreground`,children:`Provider`}),t[48]=Se):Se=t[48];let Ce;t[49]===Symbol.for(`react.memo_cache_sentinel`)?(Ce=e=>{o(e),c(null)},t[49]=Ce):Ce=t[49];let we;if(t[50]!==me||t[51]!==L||t[52]!==A||t[53]!==P){let e;t[55]!==me||t[56]!==L||t[57]!==A?(e=e=>{let t=A[e.value],n=L===e.value&&t.ready;return t.ready?(0,Y.jsxs)(mM,{value:e.value,className:q(`relative flex cursor-pointer items-center gap-3 rounded-lg border px-3 py-3 text-left outline-none transition-[background-color,border-color,box-shadow]`,`focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background`,n?`border-primary bg-background shadow-sm ring-2 ring-primary/35 dark:border-transparent dark:bg-primary/10 dark:shadow-none dark:ring-1 dark:ring-primary/30`:`border-border bg-background hover:border-foreground/20 hover:bg-muted/50 dark:border-transparent dark:bg-white/[0.035] dark:hover:bg-accent`),children:[(0,Y.jsx)(e.Icon,{className:`size-5 shrink-0`,"aria-hidden":!0}),(0,Y.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-sm font-medium text-foreground`,children:e.label})]},e.value):(0,Y.jsxs)(`div`,{className:`relative flex cursor-not-allowed items-center gap-3 rounded-lg border border-border bg-background px-3 py-3 text-left opacity-55 dark:border-transparent dark:bg-white/[0.035]`,children:[(0,Y.jsx)(e.Icon,{className:`size-5 shrink-0 text-muted-foreground`,"aria-hidden":!0}),(0,Y.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-sm font-medium text-foreground`,children:e.label}),(0,Y.jsxs)(Sl,{children:[(0,Y.jsx)(us,{render:(0,Y.jsx)(rr,{variant:`outline`,size:`xs`,className:`h-5 rounded-[.25rem] px-1.5 text-[10px] text-warning-foreground`,onClick:e=>{e.preventDefault(),e.stopPropagation(),me()},children:`Setup Required`})}),(0,Y.jsx)(Ic,{side:`top`,align:`end`,className:`max-w-72`,children:t.hint??`Open Settings -> Source Control to configure this provider.`})]})]},e.value)},t[55]=me,t[56]=L,t[57]=A,t[58]=e):e=t[58],we=P.map(e),t[50]=me,t[51]=L,t[52]=A,t[53]=P,t[54]=we}else we=t[54];let Te;t[59]!==L||t[60]!==we?(Te=(0,Y.jsx)(gM,{value:L,onValueChange:Ce,"aria-labelledby":`publish-provider-cards-label`,className:`grid grid-cols-2 gap-2.5`,children:we}),t[59]=L,t[60]=we,t[61]=Te):Te=t[61];let Ee;t[62]!==xe||t[63]!==Te?(Ee=(0,Y.jsxs)(`div`,{className:xe,children:[Se,Te]}),t[62]=xe,t[63]=Te,t[64]=Ee):Ee=t[64];let De=h!==1&&`hidden`,Oe;t[65]===De?Oe=t[66]:(Oe=q(`space-y-5`,De),t[65]=De,t[66]=Oe);let ke;t[67]===Symbol.for(`react.memo_cache_sentinel`)?(ke=(0,Y.jsx)(`label`,{htmlFor:`publish-repository-path`,className:`text-xs font-medium text-foreground`,children:`Repository`}),t[67]=ke):ke=t[67];let Ae;t[68]===H.Icon?Ae=t[69]:(Ae=(0,Y.jsx)(H.Icon,{className:`size-3.5`}),t[68]=H.Icon,t[69]=Ae);let je;t[70]!==U||t[71]!==Ae?(je=(0,Y.jsxs)(`span`,{className:`flex shrink-0 items-center gap-1.5 border-r border-input bg-muted/50 px-2.5 font-mono text-xs text-muted-foreground`,children:[Ae,U,`/`]}),t[70]=U,t[71]=Ae,t[72]=je):je=t[72];let Me;t[73]===Symbol.for(`react.memo_cache_sentinel`)?(Me=e=>{c(e.target.value)},t[73]=Me):Me=t[73];let Ne;t[74]===se?Ne=t[75]:(Ne=e=>{e.key===`Enter`&&(e.preventDefault(),se())},t[74]=se,t[75]=Ne);let Pe;t[76]!==W||t[77]!==B||t[78]!==w.isPending||t[79]!==Ne?(Pe=(0,Y.jsx)(`input`,{id:`publish-repository-path`,name:`publish-repository-path`,value:B,onChange:Me,onKeyDown:Ne,placeholder:W,disabled:w.isPending,className:`w-full bg-transparent px-3 py-2 font-mono text-sm placeholder:text-muted-foreground/60 focus:outline-none`}),t[76]=W,t[77]=B,t[78]=w.isPending,t[79]=Ne,t[80]=Pe):Pe=t[80];let Fe;t[81]!==je||t[82]!==Pe?(Fe=(0,Y.jsxs)(`div`,{className:`space-y-2`,children:[ke,(0,Y.jsxs)(`div`,{className:`flex items-stretch overflow-hidden rounded-md border border-input bg-background focus-within:outline-2 focus-within:-outline-offset-1 focus-within:outline-ring`,children:[je,Pe]})]}),t[81]=je,t[82]=Pe,t[83]=Fe):Fe=t[83];let Ie;t[84]===Symbol.for(`react.memo_cache_sentinel`)?(Ie=(0,Y.jsx)(`span`,{id:`publish-visibility-cards-label`,className:`text-xs font-medium text-foreground`,children:`Visibility`}),t[84]=Ie):Ie=t[84];let Le;t[85]===Symbol.for(`react.memo_cache_sentinel`)?(Le=e=>u(e),t[85]=Le):Le=t[85];let Re=w.isPending,ze;t[86]===Symbol.for(`react.memo_cache_sentinel`)?(ze={value:`private`,label:`Private`,description:`Only invited people`,Icon:Nh},t[86]=ze):ze=t[86];let Be;t[87]===Symbol.for(`react.memo_cache_sentinel`)?(Be=[ze,{value:`public`,label:`Public`,description:`Anyone on the web`,Icon:Oh}],t[87]=Be):Be=t[87];let Ve;t[88]===l?Ve=t[89]:(Ve=Be.map(e=>{let t=l===e.value;return(0,Y.jsxs)(mM,{value:e.value,className:q(`relative flex cursor-pointer items-center gap-3 rounded-lg border px-3 py-2.5 text-left outline-none transition-[background-color,border-color,box-shadow]`,`focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background`,t?`border-primary bg-background shadow-sm ring-2 ring-primary/35 dark:border-transparent dark:bg-primary/10 dark:shadow-none dark:ring-1 dark:ring-primary/30`:`border-border bg-background hover:border-foreground/20 hover:bg-muted/50 dark:border-transparent dark:bg-white/[0.035] dark:hover:bg-accent`),children:[(0,Y.jsx)(e.Icon,{className:`size-4 shrink-0 text-muted-foreground`,"aria-hidden":!0}),(0,Y.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[(0,Y.jsx)(`span`,{className:`block text-sm font-medium text-foreground`,children:e.label}),(0,Y.jsx)(`span`,{className:`block text-xs text-muted-foreground`,children:e.description})]})]},e.value)}),t[88]=l,t[89]=Ve);let He;t[90]!==w.isPending||t[91]!==l||t[92]!==Ve?(He=(0,Y.jsxs)(`div`,{className:`space-y-2`,children:[Ie,(0,Y.jsx)(gM,{value:l,onValueChange:Le,"aria-labelledby":`publish-visibility-cards-label`,disabled:Re,className:`grid grid-cols-2 gap-2.5`,children:Ve})]}),t[90]=w.isPending,t[91]=l,t[92]=Ve,t[93]=He):He=t[93];let Ue;t[94]===Symbol.for(`react.memo_cache_sentinel`)?(Ue=()=>v(Rit),t[94]=Ue):Ue=t[94];let We=_?``:`-rotate-90`,Ge;t[95]===We?Ge=t[96]:(Ge=q(`size-3.5 transition-transform`,We),t[95]=We,t[96]=Ge);let Ke;t[97]===Ge?Ke=t[98]:(Ke=(0,Y.jsx)(Ye,{className:Ge}),t[97]=Ge,t[98]=Ke);let qe;t[99]!==_||t[100]!==Ke?(qe=(0,Y.jsxs)(`button`,{type:`button`,onClick:Ue,"aria-expanded":_,className:`flex items-center gap-1 text-xs font-medium text-muted-foreground transition-colors hover:text-foreground`,children:[Ke,`Advanced`]}),t[99]=_,t[100]=Ke,t[101]=qe):qe=t[101];let Je;t[102]!==_||t[103]!==p||t[104]!==d||t[105]!==w.isPending?(Je=_?(0,Y.jsxs)(`div`,{className:`mt-3 grid gap-3 sm:grid-cols-2`,children:[(0,Y.jsxs)(`label`,{className:`space-y-1.5`,htmlFor:`publish-remote-name`,children:[(0,Y.jsx)(`span`,{className:`text-xs font-medium text-foreground`,children:`Remote`}),(0,Y.jsx)(LC,{id:`publish-remote-name`,value:d,onChange:e=>f(e.target.value),placeholder:`origin`,disabled:w.isPending})]}),(0,Y.jsxs)(`div`,{className:`space-y-1.5`,children:[(0,Y.jsx)(`span`,{id:`publish-protocol-label`,className:`text-xs font-medium text-foreground`,children:`Protocol`}),(0,Y.jsx)(gM,{value:p,onValueChange:e=>m(e),"aria-labelledby":`publish-protocol-label`,disabled:w.isPending,className:`grid grid-cols-2 gap-2`,children:[`ssh`,`https`].map(e=>{let t=p===e;return(0,Y.jsx)(mM,{value:e,className:q(`rounded-md border px-3 py-1.5 text-center text-sm font-medium outline-none transition`,`focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background`,t?`border-primary bg-background ring-2 ring-primary/35 text-foreground dark:border-transparent dark:bg-primary/10 dark:ring-1 dark:ring-primary/30`:`border-border bg-background text-muted-foreground hover:border-foreground/20 hover:text-foreground dark:border-transparent dark:bg-white/[0.035]`),children:e===`ssh`?`SSH`:`HTTPS`},e)})})]})]}):null,t[102]=_,t[103]=p,t[104]=d,t[105]=w.isPending,t[106]=Je):Je=t[106];let Xe;t[107]!==qe||t[108]!==Je?(Xe=(0,Y.jsxs)(`div`,{children:[qe,Je]}),t[107]=qe,t[108]=Je,t[109]=Xe):Xe=t[109];let Ze;t[110]!==G||t[111]!==w.isPending?(Ze=w.isPending?(0,Y.jsxs)(`div`,{role:`status`,"aria-live":`polite`,className:`flex items-center gap-2 rounded-md border border-input bg-muted/40 px-3 py-2 text-xs text-muted-foreground dark:border-transparent dark:bg-white/[0.035]`,children:[(0,Y.jsx)(mO,{className:`size-3.5`,"aria-hidden":!0}),`Publishing repository to `,G,`...`]}):null,t[110]=G,t[111]=w.isPending,t[112]=Ze):Ze=t[112];let Qe;t[113]!==y||t[114]!==w.isPending?(Qe=y&&!w.isPending?(0,Y.jsxs)(`div`,{role:`alert`,className:`rounded-md border border-destructive/40 bg-destructive/10 px-3 py-2 text-xs text-destructive`,children:[(0,Y.jsx)(`p`,{className:`font-medium`,children:`Publish failed`}),(0,Y.jsx)(`p`,{className:`mt-0.5 text-destructive/90`,children:y})]}):null,t[113]=y,t[114]=w.isPending,t[115]=Qe):Qe=t[115];let $e;t[116]!==Oe||t[117]!==Fe||t[118]!==He||t[119]!==Xe||t[120]!==Ze||t[121]!==Qe?($e=(0,Y.jsxs)(`div`,{className:Oe,children:[Fe,He,Xe,Ze,Qe]}),t[116]=Oe,t[117]=Fe,t[118]=He,t[119]=Xe,t[120]=Ze,t[121]=Qe,t[122]=$e):$e=t[122];let et=h!==2&&`hidden`,tt;t[123]===et?tt=t[124]:(tt=q(`space-y-4`,et),t[123]=et,t[124]=tt);let nt;t[125]!==H.Icon||t[126]!==G||t[127]!==x?(nt=x?(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsxs)(`div`,{className:`flex flex-col items-center gap-2 py-1 text-center`,children:[(0,Y.jsx)(`span`,{className:`grid size-8 place-items-center rounded-full bg-success/15 text-success`,children:(0,Y.jsx)(Gt,{className:`size-4`,"aria-hidden":!0})}),(0,Y.jsx)(`h3`,{className:`text-sm font-semibold text-foreground`,children:x.status===`pushed`?`Repository published`:`Repository created`}),(0,Y.jsx)(`p`,{className:`max-w-xs text-pretty text-xs text-muted-foreground`,children:x.status===`pushed`?`${x.branch} is now live on ${G}.`:`Remote "${x.remoteName}" is set up. Make a commit and push it to share your code.`})]}),(0,Y.jsxs)(`div`,{className:`flex items-center gap-2 rounded-lg border border-input bg-muted/40 px-3 py-2 dark:border-transparent dark:bg-white/[0.035]`,children:[(0,Y.jsx)(H.Icon,{className:`size-3.5 shrink-0 text-muted-foreground`}),(0,Y.jsx)(`span`,{className:`min-w-0 flex-1 truncate font-mono text-xs text-foreground`,children:x.repository.nameWithOwner})]}),(0,Y.jsxs)(rr,{variant:`outline`,size:`sm`,className:`w-full`,onClick:()=>{let e=he();e&&e.shell.openExternal(x.repository.url)},children:[(0,Y.jsx)(hh,{className:`size-3.5`,"aria-hidden":!0}),`Open on `,G]})]}):(0,Y.jsx)(`div`,{className:`rounded-md border border-input bg-background px-3 py-2 text-xs text-muted-foreground dark:border-transparent dark:bg-white/[0.035]`,children:`Publish result unavailable.`}),t[125]=H.Icon,t[126]=G,t[127]=x,t[128]=nt):nt=t[128];let rt;t[129]!==tt||t[130]!==nt?(rt=(0,Y.jsx)(`div`,{className:tt,children:nt}),t[129]=tt,t[130]=nt,t[131]=rt):rt=t[131];let it;t[132]!==Ee||t[133]!==$e||t[134]!==rt?(it=(0,Y.jsx)(rT,{className:`space-y-5 border-b border-border/70 bg-muted/20 px-6 py-5 dark:border-transparent dark:bg-transparent`,children:(0,Y.jsxs)(DM,{children:[Ee,$e,rt]})}),t[132]=Ee,t[133]=$e,t[134]=rt,t[135]=it):it=t[135];let at;t[136]!==ae||t[137]!==de||t[138]!==M||t[139]!==w.isPending||t[140]!==h||t[141]!==R.ready||t[142]!==se?(at=(0,Y.jsx)(eT,{className:`dark:border-transparent dark:bg-transparent`,children:h===2?(0,Y.jsx)(rr,{size:`sm`,onClick:()=>de(!1),children:`Done`}):(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(rr,{variant:`outline`,size:`sm`,disabled:w.isPending,onClick:()=>{if(h===0){de(!1);return}g(Lit)},children:h===0?`Cancel`:`Back`}),h<1?(0,Y.jsx)(rr,{size:`sm`,disabled:!M||!R.ready,onClick:()=>g(Iit),children:`Next`}):(0,Y.jsx)(rr,{size:`sm`,disabled:!ae,onClick:se,children:w.isPending?(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(mO,{className:`size-3.5`,"aria-hidden":!0}),`Publishing...`]}):`Publish`})]})}),t[136]=ae,t[137]=de,t[138]=M,t[139]=w.isPending,t[140]=h,t[141]=R.ready,t[142]=se,t[143]=at):at=t[143];let ot;t[144]!==ye||t[145]!==it||t[146]!==at?(ot=(0,Y.jsx)(Qw,{className:`max-w-xl overflow-hidden`,children:(0,Y.jsxs)(`div`,{className:`flex min-h-0 flex-col overflow-hidden border-foreground/10 bg-transparent`,children:[ye,it,at]})}),t[144]=ye,t[145]=it,t[146]=at,t[147]=ot):ot=t[147];let st;return t[148]!==de||t[149]!==e.open||t[150]!==ot?(st=(0,Y.jsx)(Xw,{open:ge,onOpenChange:de,children:ot}),t[148]=de,t[149]=e.open,t[150]=ot,t[151]=st):st=t[151],st}function Iit(e){return Math.min(1,e+1)}function Lit(e){return Math.max(0,e-1)}function Rit(e){return!e}function zit({gitCwd:e,activeThreadRef:t,draftId:n}){let r=qu(h_.updateMetadata,`thread branch metadata update`),i=t?.environmentId??null,a=xO(i,Io(br.configValueAtom(i))?.availableEditors??[]),o=(0,J.useMemo)(()=>t?{threadRef:t}:void 0,[t]),s=ea(e=>n?e.getDraftSession(n):t?e.getDraftThreadByRef(t):null),c=D_(t,{waitForShell:s!==null}),l=ea(e=>e.setDraftThreadContext),[u,d]=(0,J.useState)(!1),[f,p]=(0,J.useState)(``),[m,h]=(0,J.useState)(new Set),[g,_]=(0,J.useState)(!1),[v,y]=(0,J.useState)(!1),[b,x]=(0,J.useState)(null),S=(0,J.useRef)(null),C=(0,J.useMemo)(()=>({environmentId:i,cwd:e}),[i,e]),w,T=(0,J.useCallback)(()=>{let e=S.current;e&&uS.update(e.toastId,{type:`loading`,title:e.title,description:kit(e),timeout:0,data:e.toastData})},[]),E=(0,J.useCallback)(e=>{if(t){if(c){if(c.branch===e)return;r({environmentId:t.environmentId,input:{threadId:t.threadId,...bit(e,c.branch)}});return}!s||s.branch===e||l(n??t,{branch:e,worktreePath:s.worktreePath})}},[s,c,t,n,l,r]),D=(0,J.useCallback)(e=>{let t=yit(e);t&&E(t.branch)},[E]),O=od(i!==null&&e!==null?q_.status({environmentId:i,input:{cwd:e}}):null),k=qu(q_.refreshStatus,{reportFailure:!1}),{data:A,error:j}=O,M=(0,J.useMemo)(()=>gv(A?.sourceControlProvider),[A?.sourceControlProvider]),N=M.terminology,P=M.Icon,F=A?.isRepo??!0,I=A?.hasPrimaryRemote??!1,L=A,R=L?.workingTree.files??[],z=R.filter(e=>!m.has(e.path)),B=m.size===0,V=z.length===0,H=Xtt(C),U=Qtt(C),W=Ztt(C),G=Ytt(C,wit),ee=!c&&s?.envMode===`worktree`&&s.worktreePath===null;(0,J.useEffect)(()=>{if(G||ee||c)return;let e=xit({threadBranch:s?.branch??null,gitStatus:L});e&&E(e.branch)},[c,s?.branch,L,G,ee,E]);let te=(0,J.useMemo)(()=>L?.isDefaultRef??!1,[L?.isDefaultRef]),ne=(0,J.useMemo)(()=>hit(L,G,I),[L,I,G]),K=(0,J.useMemo)(()=>git(L,G,te,I),[L,I,te,G]),re=K.disabled?K.hint??`This action is currently unavailable.`:null,ie=b?vit({action:b.action,branchName:b.branchName,includesCommit:b.includesCommit,terminology:N}):null;(0,J.useEffect)(()=>{let e=window.setInterval(()=>{S.current&&T()},1e3);return()=>{window.clearInterval(e)}},[T]),(0,J.useEffect)(()=>{if(e===null)return;let t=null,n=()=>{t!==null&&window.clearTimeout(t),t=window.setTimeout(()=>{t=null,Cit(k,i,e)},Sit)},r=()=>{document.visibilityState===`visible`&&n()};return window.addEventListener(`focus`,n),document.addEventListener(`visibilitychange`,r),()=>{t!==null&&window.clearTimeout(t),window.removeEventListener(`focus`,n),document.removeEventListener(`visibilitychange`,r)}},[i,e,k]);let ae=(0,J.useCallback)(async()=>{let e=he();if(!e){uS.add({type:`error`,title:`Link opening is unavailable.`,data:o});return}let t=L?.pr?.state===`open`?L.pr.url:null;if(!t){uS.add({type:`error`,title:`No open pull request found.`,data:o});return}xS(e.shell,t).catch(e=>{console.error(e),uS.add(lS({type:`error`,title:`Unable to open pull request link`,description:e instanceof Error?e.message:`An error occurred.`,...o===void 0?{}:{data:o}}))})},[L,o]);w=(0,J.useEffectEvent)(async({action:t,commitMessage:n,onConfirmed:r,skipDefaultBranchPrompt:i=!1,statusOverride:a,featureBranch:s=!1,progressToastId:c,filePaths:l})=>{let u=a??L,d=u?.refName??null,f=s?!1:te,p=(t===`commit`||t===`commit_push`||t===`commit_push_pr`)&&(t===`commit`||!!u?.hasWorkingTreeChanges||s);if(!i&&_it(t,f)&&d){if(t!==`push`&&t!==`create_pr`&&t!==`commit_push`&&t!==`commit_push_pr`)return;x({action:t,branchName:d,includesCommit:p,...n?{commitMessage:n}:{},...r?{onConfirmed:r}:{},...l?{filePaths:l}:{}});return}r?.();let m=mit({action:t,hasCustomCommitMessage:!!n?.trim(),hasWorkingTreeChanges:!!u?.hasWorkingTreeChanges,featureBranch:s,terminology:N,shouldPushBeforePr:t===`create_pr`&&(!u?.hasUpstream||(u?.aheadCount??0)>0)}),h=o?{...o}:void 0,g=Vi(),_=c??uS.add({type:`loading`,title:m[0]??`Running git action...`,description:`Waiting for Git...`,timeout:0,data:h});S.current={toastId:_,toastData:h,actionId:g,title:m[0]??`Running git action...`,phaseStartedAtMs:null,hookStartedAtMs:null,hookName:null,lastOutputLine:null,currentPhaseLabel:m[0]??`Running git action...`},c&&uS.update(c,{type:`loading`,title:m[0]??`Running git action...`,description:`Waiting for Git...`,timeout:0,data:h});let v=t=>{let n=S.current;if(!n||e&&t.cwd!==e||n.actionId!==t.actionId)return;let r=Date.now();switch(t.kind){case`action_started`:n.phaseStartedAtMs=r,n.hookStartedAtMs=null,n.hookName=null,n.lastOutputLine=null;break;case`phase_started`:n.title=t.label,n.currentPhaseLabel=t.label,n.phaseStartedAtMs=r,n.hookStartedAtMs=null,n.hookName=null,n.lastOutputLine=null;break;case`hook_started`:n.title=`Running ${t.hookName}...`,n.hookName=t.hookName,n.hookStartedAtMs=r,n.lastOutputLine=null;break;case`hook_output`:n.lastOutputLine=t.text;break;case`hook_finished`:n.title=n.currentPhaseLabel??`Committing...`,n.hookName=null,n.hookStartedAtMs=null,n.lastOutputLine=null;break;case`action_finished`:return;case`action_failed`:return}T()},y=await U.run({actionId:g,action:t,...n?{commitMessage:n}:{},...s?{featureBranch:s}:{},...l?{filePaths:l}:{},onProgress:v});if(S.current=null,y._tag===`Failure`){if(Hr(y)){uS.close(_);return}let e=fe(y);uS.update(_,lS({type:`error`,title:`Action failed`,description:e instanceof Error?e.message:`An error occurred.`,...h===void 0?{}:{data:h}}));return}let b=y.value;D(b);let C=()=>{uS.close(_)},E=b.toast.cta,O=null;E.kind===`run_action`?O={children:E.label,onClick:()=>{C(),w({action:E.action.kind})}}:E.kind===`open_pr`&&(O={children:E.label,onClick:()=>{let e=he();e&&(C(),e.shell.openExternal(E.url))}});let k={...h,dismissAfterVisibleMs:1e4};O?uS.update(_,lS({type:`success`,title:b.toast.title,description:b.toast.description,timeout:0,actionProps:O,data:k})):uS.update(_,{type:`success`,title:b.toast.title,description:b.toast.description,timeout:0,data:k})});let oe=()=>{if(!b)return;let{action:e,commitMessage:t,onConfirmed:n,filePaths:r}=b;x(null),w({action:e,...t?{commitMessage:t}:{},...n?{onConfirmed:n}:{},...r?{filePaths:r}:{},skipDefaultBranchPrompt:!0})},se=()=>{if(!b)return;let{action:e,commitMessage:t,onConfirmed:n,filePaths:r}=b;x(null),w({action:e,...t?{commitMessage:t}:{},...n?{onConfirmed:n}:{},...r?{filePaths:r}:{},featureBranch:!0,skipDefaultBranchPrompt:!0})},ce=()=>{if(!u)return;let e=f.trim();d(!1),p(``),h(new Set),_(!1),w({action:`commit`,...e?{commitMessage:e}:{},...B?{}:{filePaths:z.map(e=>e.path)},featureBranch:!0,skipDefaultBranchPrompt:!0})},le=()=>{if(K.kind===`open_pr`){ae();return}if(K.kind===`open_publish`){y(!0);return}if(K.kind===`run_pull`){let e=uS.add({type:`loading`,title:`Pulling...`,timeout:0,data:o});(async()=>{let t=await W.run();if(t._tag===`Failure`){if(Hr(t)){uS.close(e);return}let n=fe(t);uS.update(e,lS({type:`error`,title:`Pull failed`,description:n instanceof Error?n.message:`An error occurred.`,...o===void 0?{}:{data:o}}));return}let n=t.value;uS.update(e,{type:`success`,title:n.status===`pulled`?`Pulled`:`Already up to date`,description:n.status===`pulled`?`Updated ${n.refName} from ${n.upstreamRef??`upstream`}`:`${n.refName} is already synchronized.`,data:o})})();return}if(K.kind===`show_hint`){uS.add({type:`info`,title:K.label,description:K.hint,data:o});return}K.action&&w({action:K.action})},ue=e=>{if(!e.disabled){if(e.kind===`open_pr`){ae();return}if(e.dialogAction===`push`){w({action:`push`});return}if(e.dialogAction===`create_pr`){w({action:`create_pr`});return}h(new Set),_(!1),d(!0)}},de=()=>{if(!u)return;let e=f.trim();d(!1),p(``),h(new Set),_(!1),w({action:`commit`,...e?{commitMessage:e}:{},...B?{}:{filePaths:z.map(e=>e.path)}})},pe=(0,J.useCallback)(t=>{if(!e){uS.add({type:`error`,title:`Editor opening is unavailable.`,data:o});return}let n=mX(t,e);(async()=>{let e=await a(n);if(e._tag===`Success`||Hr(e))return;let t=fe(e);uS.add(lS({type:`error`,title:`Unable to open file`,description:t instanceof Error?t.message:`An error occurred.`,...o===void 0?{}:{data:o}}))})()},[e,a,o]),me=F&&L!==null&&!I;return e?(0,Y.jsxs)(Y.Fragment,{children:[F?(0,Y.jsxs)(VP,{"aria-label":`Git actions`,className:`shrink-0`,children:[re?(0,Y.jsxs)(LD,{children:[(0,Y.jsxs)(RD,{openOnHover:!0,render:(0,Y.jsx)(rr,{"aria-disabled":`true`,className:`cursor-not-allowed rounded-e-none border-e-0 opacity-64 before:rounded-e-none`,size:`xs`,variant:`outline`}),children:[(0,Y.jsx)(Pit,{quickAction:K,SourceControlIcon:P}),(0,Y.jsx)(`span`,{className:`sr-only @3xl/header-actions:not-sr-only @3xl/header-actions:ml-0.5`,children:K.label})]}),(0,Y.jsx)(zD,{tooltipStyle:!0,side:`bottom`,align:`start`,children:re})]}):(0,Y.jsxs)(rr,{variant:`outline`,size:`xs`,disabled:G||K.disabled,onClick:le,children:[(0,Y.jsx)(Pit,{quickAction:K,SourceControlIcon:P}),(0,Y.jsx)(`span`,{className:`sr-only @3xl/header-actions:not-sr-only @3xl/header-actions:ml-0.5`,children:K.label})]}),(0,Y.jsx)(HP,{className:`hidden @3xl/header-actions:block`}),(0,Y.jsxs)(kr,{onOpenChange:t=>{t&&Cit(k,i,e)},children:[(0,Y.jsx)(Qi,{render:(0,Y.jsx)(rr,{"aria-label":`Git action options`,size:`icon-xs`,variant:`outline`}),disabled:G,children:(0,Y.jsx)(Ye,{"aria-hidden":`true`,className:`size-4`})}),(0,Y.jsxs)(lt,{align:`end`,className:`w-full`,children:[ne.map(e=>{let t=Ait({item:e,gitStatus:L,isBusy:G,hasPrimaryRemote:I});return e.disabled&&t?(0,Y.jsxs)(LD,{children:[(0,Y.jsx)(RD,{openOnHover:!0,nativeButton:!1,render:(0,Y.jsx)(`span`,{className:`block w-max cursor-not-allowed`}),children:(0,Y.jsxs)(Ei,{className:`w-full`,disabled:!0,children:[(0,Y.jsx)(Nit,{icon:e.icon,SourceControlIcon:P}),e.label]})}),(0,Y.jsx)(zD,{tooltipStyle:!0,side:`left`,align:`center`,children:t})]},`${e.id}-${e.label}`):(0,Y.jsxs)(Ei,{disabled:e.disabled,onClick:()=>{ue(e)},children:[(0,Y.jsx)(Nit,{icon:e.icon,SourceControlIcon:P}),e.label]},`${e.id}-${e.label}`)}),me?(0,Y.jsxs)(Ei,{disabled:G,onClick:()=>{y(!0)},children:[(0,Y.jsx)(lh,{}),`Publish repository...`]}):null,L?.refName===null&&(0,Y.jsx)(`p`,{className:`px-2 py-1.5 text-xs text-warning`,children:`Detached HEAD: create and checkout a refName to enable push and pull request actions.`}),L&&L.refName!==null&&!L.hasWorkingTreeChanges&&L.behindCount>0&&L.aheadCount===0&&(0,Y.jsx)(`p`,{className:`px-2 py-1.5 text-xs text-warning`,children:`Behind upstream. Pull/rebase first.`}),j&&(0,Y.jsx)(`p`,{className:`px-2 py-1.5 text-xs text-destructive`,children:j})]})]})]}):(0,Y.jsxs)(rr,{variant:`outline`,size:`xs`,disabled:H.isPending,onClick:()=>{(async()=>{let e=await H.run();if(e._tag===`Success`||Hr(e))return;let t=fe(e);uS.add(lS({type:`error`,title:`Git initialization failed`,description:t instanceof Error?t.message:`An error occurred.`,...o===void 0?{}:{data:o}}))})()},children:[(0,Y.jsx)(Ute,{className:`size-3.5`,"aria-hidden":!0}),(0,Y.jsx)(`span`,{className:`ml-0.5`,children:H.isPending?`Initializing...`:`Initialize Git`})]}),(0,Y.jsx)(Xw,{open:u,onOpenChange:e=>{e||(d(!1),p(``),h(new Set),_(!1))},children:(0,Y.jsxs)(Qw,{children:[(0,Y.jsxs)($w,{children:[(0,Y.jsx)(tT,{children:jit}),(0,Y.jsx)(nT,{children:Mit})]}),(0,Y.jsxs)(rT,{className:`space-y-4`,children:[(0,Y.jsxs)(`div`,{className:`space-y-3 rounded-xl bg-zinc-25 p-3 text-sm ring-1 ring-black/5 dark:bg-white/[0.035] dark:ring-white/5`,children:[(0,Y.jsxs)(`div`,{className:`grid grid-cols-[auto_1fr] items-center gap-x-2 gap-y-1`,children:[(0,Y.jsx)(`span`,{className:`text-muted-foreground`,children:`Branch`}),(0,Y.jsxs)(`span`,{className:`flex items-center justify-between gap-2`,children:[(0,Y.jsx)(`span`,{className:`font-medium`,children:L?.refName??`(detached HEAD)`}),te&&(0,Y.jsx)(`span`,{className:`text-right text-warning`,children:`Warning: default refName`})]})]}),(0,Y.jsxs)(`div`,{className:`space-y-1`,children:[(0,Y.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,Y.jsxs)(`div`,{className:`flex items-center gap-2`,children:[g&&R.length>0&&(0,Y.jsx)(FM,{checked:B,indeterminate:!B&&!V,onCheckedChange:()=>{h(B?new Set(R.map(e=>e.path)):new Set)}}),(0,Y.jsx)(`span`,{className:`text-muted-foreground`,children:`Files`}),!B&&!g&&(0,Y.jsxs)(`span`,{className:`text-muted-foreground`,children:[`(`,z.length,` of `,R.length,`)`]})]}),R.length>0&&(0,Y.jsx)(rr,{variant:`ghost`,size:`xs`,onClick:()=>_(e=>!e),children:g?`Done`:`Edit`})]}),!L||R.length===0?(0,Y.jsx)(`p`,{className:`font-medium`,children:`none`}):(0,Y.jsxs)(`div`,{className:`space-y-2`,children:[(0,Y.jsx)(JC,{className:`h-44 rounded-lg bg-card ring-1 ring-black/5 dark:bg-white/[0.025] dark:ring-white/5`,children:(0,Y.jsx)(`div`,{className:`space-y-1 p-1`,children:R.map(e=>{let t=m.has(e.path);return(0,Y.jsxs)(`div`,{className:`flex w-full items-center gap-2 rounded-md px-2 py-1 font-mono hover:bg-accent/50`,children:[g&&(0,Y.jsx)(FM,{checked:!m.has(e.path),onCheckedChange:()=>{h(t=>{let n=new Set(t);return n.has(e.path)?n.delete(e.path):n.add(e.path),n})}}),(0,Y.jsxs)(`button`,{type:`button`,className:`flex flex-1 items-center justify-between gap-3 text-left truncate`,onClick:()=>pe(e.path),children:[(0,Y.jsx)(`span`,{className:`truncate${t?` text-muted-foreground`:``}`,children:e.path}),(0,Y.jsx)(`span`,{className:`shrink-0`,children:t?(0,Y.jsx)(`span`,{className:`text-muted-foreground`,children:`Excluded`}):(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsxs)(`span`,{className:`text-success`,children:[`+`,e.insertions]}),(0,Y.jsx)(`span`,{className:`text-muted-foreground`,children:` / `}),(0,Y.jsxs)(`span`,{className:`text-destructive`,children:[`-`,e.deletions]})]})})]})]},e.path)})})}),(0,Y.jsxs)(`div`,{className:`flex justify-end font-mono`,children:[(0,Y.jsxs)(`span`,{className:`text-success`,children:[`+`,z.reduce((e,t)=>e+t.insertions,0)]}),(0,Y.jsx)(`span`,{className:`text-muted-foreground`,children:` / `}),(0,Y.jsxs)(`span`,{className:`text-destructive`,children:[`-`,z.reduce((e,t)=>e+t.deletions,0)]})]})]})]})]}),(0,Y.jsxs)(`div`,{className:`space-y-1`,children:[(0,Y.jsx)(`p`,{className:`text-sm font-medium`,children:`Commit message (optional)`}),(0,Y.jsx)(xu,{value:f,onChange:e=>p(e.target.value),placeholder:`Leave empty to auto-generate`,size:`sm`})]})]}),(0,Y.jsxs)(eT,{variant:`bare`,children:[(0,Y.jsx)(rr,{variant:`outline`,size:`sm`,onClick:()=>{d(!1),p(``),h(new Set),_(!1)},children:`Cancel`}),(0,Y.jsx)(rr,{variant:`outline`,size:`sm`,disabled:V,onClick:ce,children:`Commit on new refName`}),(0,Y.jsx)(rr,{size:`sm`,disabled:V,onClick:de,children:`Commit`})]})]})}),(0,Y.jsx)(Fit,{open:v,onOpenChange:y,environmentId:i,gitCwd:e}),(0,Y.jsx)(Xw,{open:b!==null,onOpenChange:e=>{e||x(null)},children:(0,Y.jsxs)(Qw,{className:`max-w-xl`,children:[(0,Y.jsxs)($w,{children:[(0,Y.jsx)(tT,{children:ie?.title??`Run action on default refName?`}),(0,Y.jsx)(nT,{children:ie?.description})]}),(0,Y.jsxs)(eT,{className:`dark:border-transparent dark:bg-transparent sm:flex-wrap sm:items-center`,children:[(0,Y.jsx)(rr,{className:`w-full sm:mr-auto sm:w-auto`,variant:`outline`,size:`sm`,onClick:()=>x(null),children:`Abort`}),(0,Y.jsx)(rr,{className:`min-h-8 w-full max-w-full whitespace-normal py-1.5 leading-snug sm:min-h-7 sm:w-auto`,variant:`outline`,size:`sm`,onClick:oe,children:ie?.continueLabel??`Continue`}),(0,Y.jsx)(rr,{className:`min-h-8 w-full max-w-full whitespace-normal py-1.5 leading-snug sm:min-h-7 sm:w-auto`,size:`sm`,onClick:se,children:`Checkout feature branch & continue`})]})]})})]}):null}var Bit=[{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 m9(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)(yh,{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)(Yte,{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)(lg,{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)(Wte,{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)(rne,{className:i}),t[10]=i,t[11]=a),a}var Vit=[];function Hit({scripts:e,fileScripts:t=Vit,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,F]=(0,J.useState)(!1),I=(0,J.useMemo)(()=>{if(r){let t=e.find(e=>e.id===r);if(t)return t}return h6e(e)},[r,e]),L=(0,J.useMemo)(()=>t.filter(t=>!e.some(e=>e.command===t.command||e.name.toLowerCase()===t.name.toLowerCase())),[t,e]),R=l!==null,z=`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`,B=e=>{if(e.key===`Tab`)return;if(e.preventDefault(),e.key===`Backspace`||e.key===`Delete`){E(``);return}let t=eP(e,navigator.platform);t&&E(t)},V=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??$0(n,e.map(e=>e.id)),a=X0({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(!Hr(s)){let e=fe(s);M(e instanceof Error?e.message:`Failed to save action.`)}return}m(!1),S(!1)},H=()=>{u(null),g(``),v(``),b(`play`),S(!1),w(!1),E(``),O(``),A(!1),M(null),m(!0)},U=e=>{f({scripts:!1,imports:!1}),u(e.id),g(e.name),v(e.command),b(e.icon),S(!1),w(e.runOnWorktreeCreate),E(d6e(n,Q0(e.id))??``),O(e.previewUrl??``),A(e.autoOpenPreview??!1),M(null),m(!0)},W=(0,J.useCallback)(()=>{l&&(F(!1),m(!1),s(l))},[l,s]),G=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`&&!Hr(n)){let e=fe(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=L.length>0&&(0,Y.jsxs)(Y.Fragment,{children:[I&&(0,Y.jsx)(Xe,{}),(0,Y.jsxs)(ef,{children:[(0,Y.jsx)(P,{children:`From p4.json`}),L.map(e=>(0,Y.jsxs)(Ei,{className:z,onClick:()=>void G(e),children:[(0,Y.jsx)(m9,{icon:e.icon??`play`,className:`size-4`}),(0,Y.jsx)(`span`,{className:`truncate`,children:e.name}),(0,Y.jsx)(Kt,{className:`ms-auto`,children:(0,Y.jsx)(fh,{className:`size-3.5`,"aria-label":`Import`})})]},`${e.name} ${e.command}`))]})]});return(0,Y.jsxs)(Y.Fragment,{children:[I?(0,Y.jsxs)(VP,{"aria-label":`Project scripts`,children:[(0,Y.jsxs)(Sl,{children:[(0,Y.jsxs)(us,{render:(0,Y.jsx)(rr,{size:`xs`,variant:`outline`,"aria-label":`Run ${I.name}`,onClick:()=>i(I)}),children:[(0,Y.jsx)(m9,{icon:I.icon}),(0,Y.jsx)(`span`,{className:`sr-only @3xl/header-actions:not-sr-only @3xl/header-actions:ml-0.5`,children:I.name})]}),(0,Y.jsxs)(Ic,{side:`top`,children:[`Run `,I.name]})]}),(0,Y.jsx)(HP,{className:`hidden @3xl/header-actions:block`}),(0,Y.jsxs)(kr,{highlightItemOnHover:!1,open:d.scripts,onOpenChange:e=>f({scripts:e,imports:!1}),children:[(0,Y.jsx)(Qi,{render:(0,Y.jsx)(rr,{size:`icon-xs`,variant:`outline`,"aria-label":`Script actions`}),children:(0,Y.jsx)(Ye,{className:`size-4`})}),(0,Y.jsxs)(lt,{align:`end`,children:[e.map(e=>{let t=Sg(n,Q0(e.id));return(0,Y.jsxs)(Ei,{className:`group ${z}`,onClick:()=>i(e),children:[(0,Y.jsx)(m9,{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)(Kt,{className:`ms-0 transition-opacity group-hover:opacity-0 group-focus-visible:opacity-0`,children:t}),(0,Y.jsx)(rr,{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(),U(e)},children:(0,Y.jsx)(Zh,{className:`size-3.5`})})]})]},e.id)}),ee,(0,Y.jsxs)(Ei,{className:z,onClick:H,children:[(0,Y.jsx)(Gh,{className:`size-4`}),`Add action`]})]})]})]}):L.length>0?(0,Y.jsxs)(kr,{highlightItemOnHover:!1,open:d.imports,onOpenChange:e=>f({scripts:!1,imports:e}),children:[(0,Y.jsxs)(Qi,{render:(0,Y.jsx)(rr,{size:`xs`,variant:`outline`,"aria-label":`Project actions`}),children:[(0,Y.jsx)(Gh,{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)(Ye,{className:`size-3.5`})]}),(0,Y.jsxs)(lt,{align:`end`,children:[ee,(0,Y.jsxs)(Ei,{className:z,onClick:H,children:[(0,Y.jsx)(Gh,{className:`size-4`}),`Add action`]})]})]}):(0,Y.jsxs)(Sl,{children:[(0,Y.jsxs)(us,{render:(0,Y.jsx)(rr,{size:`xs`,variant:`outline`,"aria-label":`Add action`,onClick:H}),children:[(0,Y.jsx)(Gh,{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)(Ic,{side:`top`,children:`Add action`})]}),(0,Y.jsx)(Xw,{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)(Qw,{children:[(0,Y.jsxs)($w,{children:[(0,Y.jsx)(tT,{children:R?`Edit Action`:`Add Action`}),(0,Y.jsx)(nT,{children:`Actions are project-scoped commands you can run from the top bar or keybindings.`})]}),(0,Y.jsx)(rT,{children:(0,Y.jsxs)(`form`,{id:c,className:`space-y-4`,onSubmit:V,children:[(0,Y.jsxs)(`div`,{className:`space-y-1.5`,children:[(0,Y.jsx)(NT,{htmlFor:`script-name`,children:`Name`}),(0,Y.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,Y.jsxs)(LD,{onOpenChange:S,open:x,children:[(0,Y.jsx)(RD,{render:(0,Y.jsx)(rr,{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)(m9,{icon:y,className:`size-4.5`})}),(0,Y.jsx)(zD,{align:`start`,children:(0,Y.jsx)(`div`,{className:`grid grid-cols-3 gap-2`,children:Bit.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)(m9,{icon:e.id,className:`size-4`}),(0,Y.jsx)(`span`,{children:e.label})]},e.id))})})]}),(0,Y.jsx)(LC,{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)(NT,{htmlFor:`script-keybinding`,children:`Keybinding`}),(0,Y.jsx)(LC,{id:`script-keybinding`,placeholder:`Press shortcut`,value:T,readOnly:!0,onKeyDown:B}),(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)(NT,{htmlFor:`script-command`,children:`Command`}),(0,Y.jsx)(xu,{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)(NT,{htmlFor:`script-preview-url`,children:`Preview URL (optional)`}),(0,Y.jsx)(LC,{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)(lM,{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)(lM,{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)(eT,{className:`dark:border-transparent dark:bg-transparent`,children:[R&&(0,Y.jsx)(rr,{type:`button`,variant:`destructive-outline`,className:`mr-auto`,onClick:()=>F(!0),children:`Delete`}),(0,Y.jsx)(rr,{type:`button`,variant:`outline`,onClick:()=>{m(!1)},children:`Cancel`}),(0,Y.jsx)(rr,{form:c,type:`submit`,children:R?`Save changes`:`Save action`})]})]})}),(0,Y.jsx)(OP,{open:N,onOpenChange:F,children:(0,Y.jsxs)(kP,{children:[(0,Y.jsxs)(AP,{children:[(0,Y.jsxs)(MP,{children:[`Delete action "`,h,`"?`]}),(0,Y.jsx)(NP,{children:`This action cannot be undone.`})]}),(0,Y.jsxs)(jP,{children:[(0,Y.jsx)(PP,{render:(0,Y.jsx)(rr,{variant:`outline`}),children:`Cancel`}),(0,Y.jsx)(rr,{variant:`destructive`,onClick:W,children:`Delete action`})]})]})})]})}var h9=(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},Uit=e=>{let t=(0,X.c)(23),[n,r]=h9(`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},Wit=e=>{let t=(0,X.c)(23),[n,r]=h9(`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},Git=e=>{let t=(0,X.c)(23),[n,r]=h9(`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},Kit=e=>{let t=(0,X.c)(23),[n,r]=h9(`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},qit=e=>{let t=(0,X.c)(23),[n,r]=h9(`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},Jit=e=>{let t=(0,X.c)(23),[n,r]=h9(`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},Yit=e=>{let t=(0,X.c)(23),[n,r]=h9(`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},Xit=e=>{let t=(0,X.c)(23),[n,r]=h9(`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},Zit=e=>{let t=(0,X.c)(23),[n,r]=h9(`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},Qit=e=>{let t=(0,X.c)(23),[n,r]=h9(`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},$it=e=>{let t=(0,X.c)(23),[n,r]=h9(`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},eat=e=>{let t=(0,X.c)(23),[n,r]=h9(`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},tat=(e,t)=>{let n=[{label:`Cursor`,Icon:dv,value:`cursor`,kind:`brand`},{label:`Trae`,Icon:iae,value:`trae`,kind:`brand`},{label:`Kiro`,Icon:aae,value:`kiro`,kind:`brand`},{label:`VS Code`,Icon:oae,value:`vscode`,kind:`brand`},{label:`VS Code Insiders`,Icon:sae,value:`vscode-insiders`,kind:`brand`},{label:`VSCodium`,Icon:cae,value:`vscodium`,kind:`brand`},{label:`Zed`,Icon:lae,value:`zed`,kind:`brand`},{label:`Antigravity`,Icon:fae,value:`antigravity`,kind:`brand`},{label:`IntelliJ IDEA`,Icon:Jit,value:`idea`,kind:`brand`},{label:`Aqua`,Icon:Uit,value:`aqua`,kind:`brand`},{label:`CLion`,Icon:Wit,value:`clion`,kind:`brand`},{label:`DataGrip`,Icon:Git,value:`datagrip`,kind:`brand`},{label:`DataSpell`,Icon:Kit,value:`dataspell`,kind:`brand`},{label:`GoLand`,Icon:qit,value:`goland`,kind:`brand`},{label:`PhpStorm`,Icon:Yit,value:`phpstorm`,kind:`brand`},{label:`PyCharm`,Icon:Xit,value:`pycharm`,kind:`brand`},{label:`Rider`,Icon:Zit,value:`rider`,kind:`brand`},{label:`RubyMine`,Icon:Qit,value:`rubymine`,kind:`brand`},{label:`RustRover`,Icon:$it,value:`rustrover`,kind:`brand`},{label:`WebStorm`,Icon:eat,value:`webstorm`,kind:`brand`},{label:sn(e)?`Finder`:jr(e)?`Explorer`:`Files`,Icon:bh,value:`file-manager`,kind:`generic`}],r=new Set(t);return n.filter(e=>r.has(e.value))};function nat(e){return q(e===`brand`?`text-foreground opacity-100`:`text-muted-foreground`)}var rat=(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=qu(u_.openInEditor,`open in editor`),[d,f]=sve(i),p;t[0]===i?p=t[1]:(p=tat(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=Sg(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=>{Nne(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=VP,C=rr,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`,nat(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)(HP,{...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)(rr,{"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)(Ye,{"aria-hidden":`true`,className:`size-4`}),t[34]=P):P=t[34];let F;t[35]===N?F=t[36]:(F=(0,Y.jsx)(Qi,{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)(Ei,{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)(Ei,{onClick:()=>_(r),children:[(0,Y.jsx)(n,{"aria-hidden":`true`,className:nat(i)}),t,r===d&&y&&(0,Y.jsx)(Kt,{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)(lt,{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)(kr,{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}),iat=MN(Zc),aat=``,oat=Ar(Ze(!1)).pipe(Di(`project-file-query:empty`));function g9(e,t,n){return p_.optimisticFile({environmentId:e,cwd:t,relativePath:n})}function sat(e,t){return p_.listEntries({environmentId:e,input:{cwd:t}})}function cat(e,t,n){return p_.readFile({environmentId:e,input:{cwd:t,relativePath:n??aat}})}function lat(e,t,n,r){Tt.set(g9(e,t,n),{confirmedAgainst:void 0,data:{relativePath:n,contents:r,byteLength:new TextEncoder().encode(r).byteLength,truncated:!1}})}function uat(e,t,n){return Tt.get(g9(e,t,n))?.data??null}function dat(e,t,n,r){let i=g9(e,t,n),a=Tt.get(i);if(a?.data.contents!==r)return!1;let o=cat(e,t,n),s={...a,confirmedAgainst:Tt.get(o)};return Tt.set(i,s),Tt.refresh(o),co(Tt,o,{reportDefect:!1,reportFailure:!1}).then(e=>{e._tag===`Success`&&Tt.get(i)===s&&Tt.set(i,null)}),!0}function fat(e){if(e._tag!==`Failure`)return null;let t=Cr(e.cause);return t instanceof Error?t.message:`Workspace query failed.`}function pat(e,t){let n=(0,X.c)(14),r;n[0]!==t||n[1]!==e?(r=sat(e,t),n[0]=t,n[1]=e,n[2]=r):r=n[2];let i=r,a=Io(i),o=Nc(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=ja(Pt(a)),n[5]=a,n[6]=l);let u;n[7]===a?u=n[8]:(u=fat(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 mat(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?cat(e,t,n):oat,i[0]=t,i[1]=a,i[2]=e,i[3]=n,i[4]=o):o=i[4];let s=o,c=Io(s),l=Nc(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=ja(Pt(c)),i[7]=c,i[8]=f);let p=f,m=n??aat,h;i[9]!==t||i[10]!==e||i[11]!==m?(h=g9(e,t,m),i[9]=t,i[10]=e,i[11]=m,i[12]=h):h=i[12];let g=Io(h),_=(n===null?null:g)?.data??p,v;i[13]===c?v=i[14]:(v=fat(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 hat=Fc(iat),_9=[];function gat(e,t){let n=(0,X.c)(3),r=mat(e,t??``,Yl,t!==null),i=r.data&&!r.data.truncated?r.data.contents:null,a;bb0:{if(i===null){a=_9;break bb0}let e,t;if(n[0]===i?(e=n[1],t=n[2]):(e=hat(i),t=Rl(e),n[0]=i,n[1]=e,n[2]=t),t){a=_9;break bb0}a=e.value.scripts??_9}return a}function _at(e){return!!e.activeProjectName&&e.primaryEnvironmentId!==null&&e.activeThreadEnvironmentId===e.primaryEnvironmentId}var vat=(0,J.memo)(function(e){let t=(0,X.c)(45),{activeThreadEnvironmentId:n,activeThreadId:r,draftId:i,activeThreadTitle:a,activeProjectName:o,activeProjectCwd:s,openInCwd:c,activeProjectScripts:l,preferredScriptId:u,keybindings:d,availableEditors:f,rightPanelOpen:p,gitCwd:m,onNewThreadInProject:h,onRunProjectScript:g,onAddProjectScript:_,onUpdateProjectScript:v,onDeleteProjectScript:y}=e,b=R(),x=gat(n,l?s:null),S;t[0]!==o||t[1]!==n||t[2]!==b?(S=_at({activeProjectName:o,activeThreadEnvironmentId:n,primaryEnvironmentId:b}),t[0]=o,t[1]=n,t[2]=b,t[3]=S):S=t[3];let C=S,w;t[4]!==s||t[5]!==o||t[6]!==n||t[7]!==h?(w=o?(0,Y.jsxs)(`span`,{className:`inline-flex shrink-0 items-center gap-2`,children:[(0,Y.jsxs)(Sl,{children:[(0,Y.jsxs)(us,{render:(0,Y.jsx)(`button`,{type:`button`,"aria-label":`New thread in ${o}`,onClick:h,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)(vy,{environmentId:n,cwd:s??``,className:`size-3.5`}),(0,Y.jsx)(`span`,{className:`max-w-40 truncate text-sm font-medium`,children:o})]}),(0,Y.jsxs)(Ic,{side:`top`,children:[`New thread in `,o]})]}),(0,Y.jsx)(`span`,{"aria-hidden":!0,className:`text-muted-foreground/40`,children:`/`})]}):null,t[4]=s,t[5]=o,t[6]=n,t[7]=h,t[8]=w):w=t[8];let T;t[9]===a?T=t[10]:(T=(0,Y.jsxs)(Sl,{children:[(0,Y.jsx)(us,{render:(0,Y.jsx)(`h2`,{"aria-label":a,className:`min-w-0 flex-1 truncate text-sm font-medium text-foreground`,children:a})}),(0,Y.jsx)(Ic,{side:`top`,children:a})]}),t[9]=a,t[10]=T);let E;t[11]!==w||t[12]!==T?(E=(0,Y.jsxs)(`div`,{className:`flex min-w-0 flex-1 items-center gap-2 overflow-hidden sm:gap-3`,children:[w,T]}),t[11]=w,t[12]=T,t[13]=E):E=t[13];let D=p?`pr-0`:`pr-16`,O;t[14]===D?O=t[15]:(O=q(`flex shrink-0 items-center justify-end gap-2 @3xl/header-actions:gap-3`,D),t[14]=D,t[15]=O);let k;t[16]!==l||t[17]!==x||t[18]!==d||t[19]!==_||t[20]!==y||t[21]!==g||t[22]!==v||t[23]!==u?(k=l&&(0,Y.jsx)(Hit,{scripts:l,fileScripts:x,keybindings:d,preferredScriptId:u,onRunScript:g,onAddScript:_,onUpdateScript:v,onDeleteScript:y}),t[16]=l,t[17]=x,t[18]=d,t[19]=_,t[20]=y,t[21]=g,t[22]=v,t[23]=u,t[24]=k):k=t[24];let A;t[25]!==n||t[26]!==f||t[27]!==d||t[28]!==c||t[29]!==C?(A=C&&(0,Y.jsx)(rat,{environmentId:n,keybindings:d,availableEditors:f,openInCwd:c}),t[25]=n,t[26]=f,t[27]=d,t[28]=c,t[29]=C,t[30]=A):A=t[30];let j;t[31]!==o||t[32]!==n||t[33]!==r||t[34]!==i||t[35]!==m?(j=o&&(0,Y.jsx)(zit,{gitCwd:m,activeThreadRef:wa(n,r),...i?{draftId:i}:{}}),t[31]=o,t[32]=n,t[33]=r,t[34]=i,t[35]=m,t[36]=j):j=t[36];let M;t[37]!==O||t[38]!==k||t[39]!==A||t[40]!==j?(M=(0,Y.jsxs)(`div`,{"data-chat-header-actions":!0,className:O,children:[k,A,j]}),t[37]=O,t[38]=k,t[39]=A,t[40]=j,t[41]=M):M=t[41];let N;return t[42]!==M||t[43]!==E?(N=(0,Y.jsxs)(`div`,{className:`@container/header-actions flex min-w-0 flex-1 items-center gap-2 sm:gap-3`,children:[E,M]}),t[42]=M,t[43]=E,t[44]=N):N=t[44],N}),yat=(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)(Qte,{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)(us,{render:(0,Y.jsx)(VN,{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)(Ic,{side:`bottom`,children:p}),t[5]=p,t[6]=m);let h;t[7]!==f||t[8]!==m?(h=(0,Y.jsxs)(Sl,{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)(Hh,{className:`size-3.5`}),t[10]=_):_=t[10];let v;t[11]!==l||t[12]!==o||t[13]!==g?(v=(0,Y.jsx)(us,{render:(0,Y.jsx)(VN,{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)(Ic,{side:`bottom`,children:y}),t[15]=y,t[16]=b);let x;t[17]!==b||t[18]!==v?(x=(0,Y.jsxs)(Sl,{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}),bat=(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)(Lh,{className:`size-3.5`}):(0,Y.jsx)(Ph,{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)(us,{render:(0,Y.jsx)(VN,{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)(Ic,{side:`bottom`,children:i}),t[7]=i,t[8]=s);let c;return t[9]!==o||t[10]!==s?(c=(0,Y.jsxs)(Sl,{children:[o,s]}),t[9]=o,t[10]=s,t[11]=c):c=t[11],c});function xat(){let e=(0,X.c)(2),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,Y.jsx)(`header`,{className:q(`border-b border-border px-3 transition-[padding-left] duration-200 ease-linear motion-reduce:transition-none sm:px-5`,Fm?`workspace-topbar drag-region`:`workspace-topbar`,gN),children:Fm?(0,Y.jsx)(`span`,{className:`text-xs text-muted-foreground/50 wco:pr-[var(--workspace-native-controls-inset)]`,children:`No active thread`}):(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[0]=t):t=e[0];let n;return e[1]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,Y.jsx)(Tw,{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:[t,(0,Y.jsx)(TN,{className:`flex-1`,children:(0,Y.jsx)(`div`,{className:`w-full max-w-lg px-8 py-12`,children:(0,Y.jsxs)(EN,{className:`max-w-none`,children:[(0,Y.jsx)(kN,{className:`text-foreground text-xl`,children:`Pick a thread to continue`}),(0,Y.jsx)(AN,{className:`mt-2 text-sm text-muted-foreground/78`,children:`Select an existing thread or create a new one to get started.`})]})})})]})}),e[1]=n):n=e[1],n}function Sat(e){return!e||e.status===`ready`||e.status===`disabled`?null:[e.instanceId,e.status,e.auth.status,e.message??``].join(`\0`)}function Cat(e,t){let n=Sat(e);return n!==null&&n!==t}var wat=(0,J.memo)(function(e){let t=(0,X.c)(21),{onDismiss:n,status:r}=e;if(!r||r.status===`ready`||r.status===`disabled`)return null;let i;t[0]!==r.displayName||t[1]!==r.driver?(i=r.displayName?.trim()||Nt(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)(kh,{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)(Sl,{children:[(0,Y.jsx)(us,{render:(0,Y.jsx)(`div`,{className:`line-clamp-3 text-muted-foreground`,children:c})}),(0,Y.jsx)(Ic,{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)(ct,{"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}),Tat=(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)(sh,{}),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)(Kw,{children:(0,Y.jsxs)(Sl,{children:[(0,Y.jsx)(us,{render:a,children:n}),(0,Y.jsx)(Ic,{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)(qw,{children:(0,Y.jsx)(rr,{variant:`ghost`,size:`icon-xs`,"aria-label":`Dismiss error`,onClick:r,children:(0,Y.jsx)(ct,{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)(Ww,{variant:`error`,children:[i,o,s]})}),t[6]=o,t[7]=s,t[8]=c):c=t[8],c}),v9=220,Eat={opacity:0,transform:`translate3d(0, 4rem, 0)`},Dat={opacity:0,transform:`translate3d(0, 7rem, 0)`},Oat={opacity:1,transform:`none`},kat={transition:`transform ${v9}ms ease-in, opacity ${v9}ms ease-in`};function Aat(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?.()},v9))},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-[22px]`,`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?Eat:Oat,x;t[24]===b?x=t[25]:(x={...kat,...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)(jat,{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:{...kat,...c===e.id?Dat:Oat},children:(0,Y.jsx)(jat,{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 jat(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 rounded-[22px]`,n.className),t[0]=n.className,t[1]=s);let c;t[2]===n.title?c=t[3]:(c=(0,Y.jsx)(Gw,{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)(Kw,{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)(qw,{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)(rr,{size:`icon-xs`,variant:`ghost`,"aria-label":n.dismissLabel??`Dismiss warning`,disabled:r,onClick:i,children:(0,Y.jsx)(ct,{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)(Ww,{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 Mat=`p4-draft-hero-transition`,Nat=`cubic-bezier(0.4, 0, 0.2, 1)`,Pat=`p4-mobile-composer`,Fat=`p4-mobile-draft-headline`,y9=null;async function Iat(){let e=y9;if(typeof document>`u`||typeof document.getAnimations!=`function`){await e;return}let t=document.getAnimations().filter(e=>e.id===Mat);await Promise.all([e,...t.map(async e=>{try{await e.finished}catch{}})])}async function Lat(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),y9=o;try{await e.finished}catch{await a()}}catch{await a()}finally{y9===o&&(y9=null),delete t.documentElement.dataset.mobileComposerRouteTransition}}function Rat(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)(fw,{side:`right`,showCloseButton:!1,keepMounted:!0,className:QAe,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)(Pde,{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 zat=`[User attached one or more images without additional text. Respond using the conversation context and the attached image(s).]`,Bat=[],Vat=[],Hat=[],Uat={};function Wat(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:Nat});r.id=Mat,o.current=r,r.finished.catch(Gat).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 Gat(){}var Kat=(0,J.lazy)(()=>K(()=>import(`./PreviewPanel-DWT1ePi1.js`).then(e=>({default:e.PreviewPanel})),__vite__mapDeps([102,1,103]))),qat=(0,J.lazy)(()=>K(()=>import(`./DiffPanel-DKJ8ECjA.js`),__vite__mapDeps([104,1,103,105]))),Jat=(0,J.lazy)(()=>K(()=>import(`./FilePreviewPanel-DrEwfDlH.js`),__vite__mapDeps([106,1,105]))),b9=new Set,Yat=[`input`,`textarea`,`select`,`[contenteditable="true"]`,`[contenteditable="plaintext-only"]`,`[role="textbox"]`].join(`,`),Xat=[`button`,`a[href]`,`summary`,`[role="button"]`,`[role="checkbox"]`,`[role="menuitem"]`,`[role="option"]`,`[role="radio"]`,`[role="switch"]`,`[role="tab"]`].join(`,`),Zat=[`[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 Qat(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 $at(e){return!(e.defaultPrevented||e.isComposing||e.metaKey||e.ctrlKey||e.altKey||e.key.length!==1||Qat(e,Yat)||Qat(e,Xat)||document.querySelector(Zat))}function x9(e){let t=iu(Sa(e.models,e.model,e.provider),e.effort);return c(e.text,t)}var eot=120,tot=30;function not(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(rot)?.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=H6e({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}:V6e(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 rot(e){return e.role===`user`}function iot(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 aot(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 oot=(0,J.memo)(function(e){let t=(0,X.c)(123),{threadRef:n,threadId:r,visible:i,launchContext:a,focusRequestId:o,splitShortcutLabel:s,splitVerticalShortcutLabel:c,newShortcutLabel:l,closeShortcutLabel:u,keybindings:d,onAddTerminalContext:f}=e,p=qu(A_.open,`terminal open`),m=qu(A_.write,`terminal write`),h=qu(A_.close,`terminal close`),g;t[0]===n?g=t[1]:(g=e=>e.getDraftThreadByRef(n),t[0]=n,t[1]=g);let _=ea(g),v=_!==null,y;t[2]===v?y=t[3]:(y={waitForShell:v},t[2]=v,t[3]=y);let b=D_(n,y),x;t[4]!==_||t[5]!==b?(x=b?$i(b.environmentId,b.projectId):_?$i(_.environmentId,_.projectId):null,t[4]=_,t[5]=b,t[6]=x):x=t[6];let S=T_(x),C;t[7]===n?C=t[8]:(C=e=>WS(e.terminalUiStateByThreadKey,n),t[7]=n,t[8]=C);let w=qS(C),T;t[9]!==r||t[10]!==n.environmentId?(T={environmentId:n.environmentId,threadId:r},t[9]=r,t[10]=n.environmentId,t[11]=T):T=t[11];let E=j_(T),D;t[12]===n?D=t[13]:(D=e=>Ba(e.byThreadKey,n).surfaces,t[12]=n,t[13]=D);let O=ll(D),k;t[14]===O?k=t[15]:(k=new Set(O.flatMap(dot)),t[14]=O,t[15]=k);let A=k,j;if(t[16]!==E||t[17]!==A){let e;t[19]===A?e=t[20]:(e=e=>!A.has(e.target.terminalId),t[19]=A,t[20]=e),j=E.filter(e),t[16]=E,t[17]=A,t[18]=j}else j=t[18];let M=j,N;if(t[21]!==M){N=new Map;for(let e of M)N.set(e.target.terminalId,TF(e.target.terminalId,e.state.summary));t[21]=M,t[22]=N}else N=t[22];let P=N,F;if(t[23]!==M||t[24]!==a||t[25]!==S){bb0:{let e=new Map;if(!S){F=e;break bb0}for(let t of M){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:SF({project:{cwd:S.workspaceRoot},worktreePath:r})})}F=e}t[23]=M,t[24]=a,t[25]=S,t[26]=F}else F=t[26];let I=F,L;t[27]===M?L=t[28]:(L=M.map(fot),t[27]=M,t[28]=L);let R=L,z=qS(pot),B=qS(mot),V=qS(hot),H=qS(got),U=qS(_ot),W=qS(vot),G=qS(yot),ee,te;t[29]!==G||t[30]!==R||t[31]!==w.terminalIds||t[32]!==n?(ee=()=>{iot(R,w.terminalIds)||aot(R,w.terminalIds)||G(n,R)},te=[G,R,w.terminalIds,n],t[29]=G,t[30]=R,t[31]=w.terminalIds,t[32]=n,t[33]=ee,t[34]=te):(ee=t[33],te=t[34]),(0,J.useEffect)(ee,te);let[ne,K]=(0,J.useState)(0),re=b?.worktreePath??_?.worktreePath??null,ie;bb1:{if(a!==null){ie=a.worktreePath;break bb1}ie=re}let ae=ie,oe;t[35]!==ae||t[36]!==a?.cwd||t[37]!==S?(oe=()=>a?.cwd??(S?xF({project:{cwd:S.workspaceRoot},worktreePath:ae}):null),t[35]=ae,t[36]=a?.cwd,t[37]=S,t[38]=oe):oe=t[38],a?.cwd;let se;t[39]===oe?se=t[40]:(se=oe(),t[39]=oe,t[40]=se);let ce=se,le;t[41]!==ae||t[42]!==S?(le=S?SF({project:{cwd:S.workspaceRoot},worktreePath:ae}):{},t[41]=ae,t[42]=S,t[43]=le):le=t[43];let ue=le,de;t[44]===i?de=t[45]:(de=()=>{i&&K(bot)},t[44]=i,t[45]=de);let fe=de,pe;t[46]!==z||t[47]!==n?(pe=e=>{z(n,e)},t[46]=z,t[47]=n,t[48]=pe):pe=t[48];let me=pe,he;t[49]!==fe||t[50]!==ce||t[51]!==ae||t[52]!==p||t[53]!==ue||t[54]!==R||t[55]!==B||t[56]!==r||t[57]!==n?(he=()=>{if(!ce)return;let e=EF(R);B(n,e),fe(),p({environmentId:n.environmentId,input:{threadId:r,terminalId:e,cwd:ce,...ae==null?{}:{worktreePath:ae},env:ue}})},t[49]=fe,t[50]=ce,t[51]=ae,t[52]=p,t[53]=ue,t[54]=R,t[55]=B,t[56]=r,t[57]=n,t[58]=he):he=t[58];let ge=he,_e;t[59]!==fe||t[60]!==ce||t[61]!==ae||t[62]!==p||t[63]!==ue||t[64]!==R||t[65]!==V||t[66]!==r||t[67]!==n?(_e=()=>{if(!ce)return;let e=EF(R);V(n,e),fe(),p({environmentId:n.environmentId,input:{threadId:r,terminalId:e,cwd:ce,...ae==null?{}:{worktreePath:ae},env:ue}})},t[59]=fe,t[60]=ce,t[61]=ae,t[62]=p,t[63]=ue,t[64]=R,t[65]=V,t[66]=r,t[67]=n,t[68]=_e):_e=t[68];let ve=_e,ye;t[69]!==fe||t[70]!==ce||t[71]!==ae||t[72]!==p||t[73]!==ue||t[74]!==R||t[75]!==H||t[76]!==r||t[77]!==n?(ye=()=>{if(!ce)return;let e=EF(R);H(n,e),fe(),p({environmentId:n.environmentId,input:{threadId:r,terminalId:e,cwd:ce,...ae==null?{}:{worktreePath:ae},env:ue}})},t[69]=fe,t[70]=ce,t[71]=ae,t[72]=p,t[73]=ue,t[74]=R,t[75]=H,t[76]=r,t[77]=n,t[78]=ye):ye=t[78];let be=ye,xe;t[79]!==fe||t[80]!==U||t[81]!==n?(xe=e=>{U(n,e),fe()},t[79]=fe,t[80]=U,t[81]=n,t[82]=xe):xe=t[82];let Se=xe,Ce;t[83]!==fe||t[84]!==h||t[85]!==W||t[86]!==r||t[87]!==n||t[88]!==m?(Ce=e=>{let t=()=>m({environmentId:n.environmentId,input:{threadId:r,terminalId:e,data:`exit
|
|
577
|
+
`):null}function $rt(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 Yrt(e.tone).iconName}function eit(e){let t=e.trim();return t.length===0?e:`${t.charAt(0).toUpperCase()}${t.slice(1)}`}function tit(e){return e.toolTitle?eit(l9(e.toolTitle)):eit(l9(e.label))}var nit=e=>e.stopPropagation(),rit=(0,J.memo)(function(e){let t=(0,X.c)(73),{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=Yrt(n.tone);h=n.sourceActivityKind===`runtime.warning`;let i;t[12]!==h||t[13]!==n?(i=h?`x`:$rt(n),t[12]=h,t[13]=n,t[14]=i):i=t[14],l=i,d=tit(n);let a=Xrt(n,r);f=a&&l9(a).toLowerCase()===l9(d).toLowerCase()?null:a,c=f?`${d} - ${f}`:d,u=Qrt(n,r),s=u!==null;let o;t[15]===n?o=t[16]:(o=Cv(n),t[15]=n,t[16]=o),m=o,p=m&&(n.sourceActivityKind===`runtime.error`||!Sv(n)),g=q(`flex size-5 shrink-0 items-center justify-center`,h||p?`text-destructive`:n.tone===`tool`||m?`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}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];let _=g,v=h?`font-medium text-warning`:p?`font-medium text-destructive`:`font-medium text-foreground/82`,y=!i.activeTurnInProgress,b;t[17]!==y||t[18]!==n?(b=!y&&Tv(n),t[17]=y,t[18]=n,t[19]=b):b=t[19];let x=b,S;t[20]!==y||t[21]!==n?(S=wv(n)||y&&Tv(n),t[20]=y,t[21]=n,t[22]=S):S=t[22];let C=S,w;t[23]!==s||t[24]!==c?(w=s?{role:`button`,tabIndex:0,"aria-label":c,onClick:()=>o(dit),onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),o(fit))}}:{},t[23]=s,t[24]=c,t[25]=w):w=t[25];let T=w,E=s&&`cursor-pointer hover:bg-accent/20 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring/70`,D;t[26]===E?D=t[27]:(D=q(`flex flex-col rounded-md px-0.5 py-0.5 transition-colors`,E),t[26]=E,t[27]=D);let O;t[28]===l?O=t[29]:(O=(0,Y.jsx)(Jrt,{name:l,className:`block size-3.5 shrink-0 stroke-[1.8] opacity-80`}),t[28]=l,t[29]=O);let k;t[30]!==_||t[31]!==O?(k=(0,Y.jsx)(`span`,{className:_,children:O}),t[30]=_,t[31]=O,t[32]=k):k=t[32];let A;t[33]===v?A=t[34]:(A=q(`min-w-0 shrink truncate`,v),t[33]=v,t[34]=A);let j;t[35]!==d||t[36]!==A?(j=(0,Y.jsx)(`span`,{className:A,children:d}),t[35]=d,t[36]=A,t[37]=j):j=t[37];let M;t[38]===f?M=t[39]:(M=f&&(0,Y.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-muted-foreground/55`,children:f}),t[38]=f,t[39]=M);let N;t[40]!==M||t[41]!==j?(N=(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:[j,M]})}),t[40]=M,t[41]=j,t[42]=N):N=t[42];let P=!s,F;t[43]!==s||t[44]!==a?(F=s?(0,Y.jsx)(Ye,{className:q(`size-3 shrink-0 opacity-70 transition-transform duration-200`,a&&`rotate-180`),"aria-hidden":!0}):null,t[43]=s,t[44]=a,t[45]=F):F=t[45];let I;t[46]!==P||t[47]!==F?(I=(0,Y.jsx)(`span`,{className:`flex size-4 shrink-0 items-center justify-center`,"aria-hidden":P,children:F}),t[46]=P,t[47]=F,t[48]=I):I=t[48];let L;t[49]!==m||t[50]!==x||t[51]!==C?(L=m?(0,Y.jsxs)(Sl,{children:[(0,Y.jsx)(us,{render:(0,Y.jsx)(`span`,{className:`flex size-4 items-center justify-center`,"aria-label":`Tool call failed`}),children:(0,Y.jsx)(ct,{className:`block size-3 shrink-0 text-destructive`,"aria-hidden":!0})}),(0,Y.jsx)(Ic,{children:`Failed`})]}):C?(0,Y.jsxs)(Sl,{children:[(0,Y.jsx)(us,{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)(Gt,{className:`block size-3 shrink-0 stroke-current`,stroke:`currentColor`,"aria-hidden":!0})})}),(0,Y.jsx)(Ic,{children:`Completed`})]}):x?(0,Y.jsxs)(Sl,{children:[(0,Y.jsx)(us,{render:(0,Y.jsx)(`span`,{className:`flex size-4 items-center justify-center`}),children:(0,Y.jsx)(Rh,{className:`block size-3 shrink-0 opacity-70`,"aria-hidden":!0})}),(0,Y.jsx)(Ic,{children:`Empty`})]}):null,t[49]=m,t[50]=x,t[51]=C,t[52]=L):L=t[52];let R;t[53]===L?R=t[54]:(R=(0,Y.jsx)(`span`,{className:`flex size-4 shrink-0 items-center justify-center`,children:L}),t[53]=L,t[54]=R);let z;t[55]!==I||t[56]!==R?(z=(0,Y.jsxs)(`div`,{className:`flex shrink-0 items-center gap-px text-muted-foreground/55`,children:[I,R]}),t[55]=I,t[56]=R,t[57]=z):z=t[57];let B;t[58]!==N||t[59]!==z?(B=(0,Y.jsxs)(`div`,{className:`flex min-w-0 flex-1 items-center gap-1.5`,children:[N,z]}),t[58]=N,t[59]=z,t[60]=B):B=t[60];let V;t[61]!==B||t[62]!==k?(V=(0,Y.jsxs)(`div`,{className:`flex select-none items-center gap-1.5 transition-[opacity,translate] duration-200`,children:[k,B]}),t[61]=B,t[62]=k,t[63]=V):V=t[63];let H;t[64]!==s||t[65]!==a||t[66]!==u?(H=a&&s&&u?(0,Y.jsx)(`div`,{className:`mt-1 ms-7 cursor-default border-s border-border/45 ps-3 pt-0.5`,onClick:nit,onPointerDown:nit,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:u})}):null,t[64]=s,t[65]=a,t[66]=u,t[67]=H):H=t[67];let U;return t[68]!==T||t[69]!==V||t[70]!==H||t[71]!==D?(U=(0,Y.jsxs)(`div`,{className:D,...T,children:[V,H]}),t[68]=T,t[69]=V,t[70]=H,t[71]=D,t[72]=U):U=t[72],U});function iit(){return new Map}function ait(e){return e.kind===`message`?e.message.id:null}function oit(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)(_rt,{row:t})})}function sit(e){return!Tv(e)}function cit(e){return Sv(e)}function lit(e){return!e}function uit(e){return e.kind===`review-comment`}function dit(e){return!e}function fit(e){return!e}function pit(e){return e?.sourceControlProvider?F_(e.sourceControlProvider):N_}function mit(e){let t=e.terminology??N_,n=e.featureBranch?[`Preparing feature ref...`]:[],r=e.pushTarget?`Pushing to ${e.pushTarget}...`:`Pushing...`,i=[`Preparing ${t.shortLabel}...`,`Generating ${t.shortLabel} content...`,`Creating ${t.singular}...`];if(e.action===`push`)return[r];if(e.action===`create_pr`)return e.shouldPushBeforePr?[r,...i]:i;let a=e.action===`commit`||e.hasWorkingTreeChanges?e.hasCustomCommitMessage?[`Committing...`]:[`Generating commit message...`,`Committing...`]:[];return e.action===`commit`?[...n,...a]:e.action===`commit_push`?[...n,...a,r]:[...n,...a,r,...i]}function hit(e,t,n=!0){if(!e)return[];let r=pit(e),i=e.refName!==null,a=e.hasWorkingTreeChanges,o=e.pr?.state===`open`,s=e.behindCount>0,c=(e.aheadOfDefaultCount??e.aheadCount)>0,l=n&&!e.hasUpstream,u=!t&&a,d=!t&&i&&!s&&e.aheadCount>0&&(e.hasUpstream||l),f=!t&&i&&!a&&!o&&c&&!s&&(e.hasUpstream||l),p=!t&&o,m={id:`commit`,label:`Commit`,disabled:!u,icon:`commit`,kind:`open_dialog`,dialogAction:`commit`};return n?[m,{id:`push`,label:`Push`,disabled:!d,icon:`push`,kind:`open_dialog`,dialogAction:`push`},o?{id:`pr`,label:`View ${r.shortLabel}`,disabled:!p,icon:`pr`,kind:`open_pr`}:{id:`pr`,label:`Create ${r.shortLabel}`,disabled:!f,icon:`pr`,kind:`open_dialog`,dialogAction:`create_pr`}]:[m]}function git(e,t,n=!1,r=!0){if(t)return{label:`Commit`,disabled:!0,kind:`show_hint`,hint:`Git action in progress.`};if(!e)return{label:`Commit`,disabled:!0,kind:`show_hint`,hint:`Git status is unavailable.`};let i=e.refName!==null,a=e.hasWorkingTreeChanges,o=e.pr?.state===`open`,s=e.aheadCount>0,c=(e.aheadOfDefaultCount??e.aheadCount)>0,l=e.behindCount>0,u=s&&l,d=pit(e);return i?a?!e.hasUpstream&&!r?{label:`Commit`,disabled:!1,kind:`run_action`,action:`commit`}:o||n?{label:`Commit & push`,disabled:!1,kind:`run_action`,action:`commit_push`}:{label:`Commit, push & ${d.shortLabel}`,disabled:!1,kind:`run_action`,action:`commit_push_pr`}:e.hasUpstream?u?{label:`Sync ref`,disabled:!0,kind:`show_hint`,hint:`Branch has diverged from upstream. Rebase/merge first.`}:l?{label:`Pull`,disabled:!1,kind:`run_pull`}:s?o||n?{label:`Push`,disabled:!1,kind:`run_action`,action:n?`commit_push`:`push`}:{label:`Push & create ${d.shortLabel}`,disabled:!1,kind:`run_action`,action:`create_pr`}:o&&e.hasUpstream?{label:`View ${d.shortLabel}`,disabled:!1,kind:`open_pr`}:c&&!n?{label:`Create ${d.shortLabel}`,disabled:!1,kind:`run_action`,action:`create_pr`}:{label:`Commit`,disabled:!0,kind:`show_hint`,hint:`Branch is up to date. No action needed.`}:r?s?o||n?{label:`Push`,disabled:!1,kind:`run_action`,action:n?`commit_push`:`push`}:{label:`Push & create ${d.shortLabel}`,disabled:!1,kind:`run_action`,action:`create_pr`}:o?{label:`View ${d.shortLabel}`,disabled:!1,kind:`open_pr`}:{label:`Push`,disabled:!0,kind:`show_hint`,hint:`No local commits to push.`}:o&&!s?{label:`View ${d.shortLabel}`,disabled:!1,kind:`open_pr`}:{label:`Publish repository`,disabled:!1,kind:`open_publish`}:{label:`Commit`,disabled:!0,kind:`show_hint`,hint:`Create and checkout a ref before pushing or opening a ${d.singular}.`}}function _it(e,t){return t?e===`push`||e===`create_pr`||e===`commit_push`||e===`commit_push_pr`:!1}function vit(e){let t=e.branchName,n=` on "${t}". You can continue on this ref or create a feature ref and run the same action there.`,r=e.terminology??N_;return e.action===`push`||e.action===`commit_push`?e.includesCommit?{title:`Commit & push to default ref?`,description:`This action will commit and push changes${n}`,continueLabel:`Commit & push to ${t}`}:{title:`Push to default ref?`,description:`This action will push local commits${n}`,continueLabel:`Push to ${t}`}:e.includesCommit?{title:`Commit, push & create ${r.shortLabel} from default ref?`,description:`This action will commit, push, and create a ${r.singular}${n}`,continueLabel:`Commit, push & create ${r.shortLabel}`}:{title:`Push & create ${r.shortLabel} from default ref?`,description:`This action will push local commits and create a ${r.singular}${n}`,continueLabel:`Push & create ${r.shortLabel}`}}function yit(e){return e.branch.status!==`created`||!e.branch.name?null:{branch:e.branch.name}}function bit(e,t){return{branch:e,expectedBranch:t}}function xit(e){return!e.gitStatus||e.gitStatus.refName===null&&e.threadBranch!==null||e.threadBranch===e.gitStatus.refName||e.threadBranch!==null&&e.gitStatus.refName!==null&&!die(e.threadBranch)&&die(e.gitStatus.refName)?null:{branch:e.gitStatus.refName}}var Sit=250;function Cit(e,t,n){t===null||n===null||e({environmentId:t,input:{cwd:n}})}var wit=[`runStackedAction`,`pull`,`publishRepository`],p9=[{value:`github`,label:`GitHub`,description:`github.com`,host:`github.com`,pathPlaceholder:`owner/repo`,Icon:sv},{value:`gitlab`,label:`GitLab`,description:`gitlab.com`,host:`gitlab.com`,pathPlaceholder:`group/project`,Icon:cv},{value:`bitbucket`,label:`Bitbucket`,description:`bitbucket.org`,host:`bitbucket.org`,pathPlaceholder:`workspace/repository`,Icon:uv},{value:`azure-devops`,label:`Azure DevOps`,description:`dev.azure.com`,host:`dev.azure.com`,pathPlaceholder:`project/repository`,Icon:lv}];function Tit(e){return p9.find(t=>t.value===e)??p9[0]}function Eit(e){return p9.some(t=>t.value===e)}function Dit(e){let t=e.sourceControlProviders.find(t=>t.kind===e.provider);return t?t.status===`available`?t.auth.status===`unauthenticated`?{ready:!1,hint:ja(t.auth.detail)??`${t.label} is not authenticated. Open Settings -> Source Control for setup guidance.`}:{ready:!0,hint:null}:{ready:!1,hint:t.installHint}:{ready:!1,hint:`Provider status unavailable. Open Settings -> Source Control and rescan.`}}function Oit(e){if(e===null)return;let t=Math.max(0,Math.floor((Date.now()-e)/1e3));return t<60?`Running for ${t}s`:`Running for ${Math.floor(t/60)}m ${t%60}s`}function kit(e){return e.lastOutputLine?e.lastOutputLine:Oit(e.hookStartedAtMs??e.phaseStartedAtMs)}function Ait({item:e,gitStatus:t,isBusy:n,hasPrimaryRemote:r}){if(!e.disabled)return null;if(n)return`Git action in progress.`;if(!t)return`Git status is unavailable.`;let i=t.refName!==null,a=t.hasWorkingTreeChanges,o=t.pr?.state===`open`,s=t.aheadCount>0,c=t.behindCount>0,l=gv(t.sourceControlProvider).terminology;return e.id===`commit`?a?`Commit is currently unavailable.`:`Worktree is clean. Make changes before committing.`:e.id===`push`?i?a?`Commit or stash local changes before pushing.`:c?`Branch is behind upstream. Pull/rebase before pushing.`:!t.hasUpstream&&!r?`Add an "origin" remote before pushing.`:s?`Push is currently unavailable.`:`No local commits to push.`:`Detached HEAD: checkout a refName before pushing.`:o?`View ${l.singular} is currently unavailable.`:i?a?`Commit local changes before creating a ${l.singular}.`:!t.hasUpstream&&!r?`Add an "origin" remote before creating a ${l.singular}.`:s?c?`Branch is behind upstream. Pull/rebase before creating a ${l.singular}.`:`Create ${l.singular} is currently unavailable.`:`No local commits to include in a ${l.singular}.`:`Detached HEAD: checkout a refName before creating a ${l.singular}.`}var jit=`Commit changes`,Mit=`Review and confirm your commit. Leave the message blank to auto-generate one.`;function Nit(e){let t=(0,X.c)(4),{icon:n,SourceControlIcon:r}=e;if(n===`commit`){let e;return t[0]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,Y.jsx)(Eh,{}),t[0]=e):e=t[0],e}if(n===`push`){let e;return t[1]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,Y.jsx)(lh,{}),t[1]=e):e=t[1],e}let i;return t[2]===r?i=t[3]:(i=(0,Y.jsx)(r,{}),t[2]=r,t[3]=i),i}function Pit(e){let t=(0,X.c)(10),{quickAction:n,SourceControlIcon:r}=e;if(n.kind===`open_pr`){let e;return t[0]===r?e=t[1]:(e=(0,Y.jsx)(r,{className:`size-3.5`}),t[0]=r,t[1]=e),e}if(n.kind===`open_publish`){let e;return t[2]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,Y.jsx)(lh,{className:`size-3.5`}),t[2]=e):e=t[2],e}if(n.kind===`run_pull`){let e;return t[3]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,Y.jsx)(kh,{className:`size-3.5`}),t[3]=e):e=t[3],e}if(n.kind===`run_action`){if(n.action===`commit`){let e;return t[4]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,Y.jsx)(Eh,{className:`size-3.5`}),t[4]=e):e=t[4],e}if(n.action===`push`||n.action===`commit_push`){let e;return t[5]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,Y.jsx)(lh,{className:`size-3.5`}),t[5]=e):e=t[5],e}let e;return t[6]===r?e=t[7]:(e=(0,Y.jsx)(r,{className:`size-3.5`}),t[6]=r,t[7]=e),e}if(n.label===`Commit`){let e;return t[8]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,Y.jsx)(Eh,{className:`size-3.5`}),t[8]=e):e=t[8],e}let i;return t[9]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,Y.jsx)(kh,{className:`size-3.5`}),t[9]=i):i=t[9],i}function Fit(e){let t=(0,X.c)(152),n=xm(),r;t[0]===e.environmentId?r=t[1]:(r=e.environmentId===null?null:XD.discovery({environmentId:e.environmentId,input:{}}),t[0]=e.environmentId,t[1]=r);let i=od(r),[a,o]=(0,J.useState)(null),[s,c]=(0,J.useState)(null),[l,u]=(0,J.useState)(`private`),[d,f]=(0,J.useState)(`origin`),[p,m]=(0,J.useState)(`ssh`),[h,g]=(0,J.useState)(0),[_,v]=(0,J.useState)(!1),[y,b]=(0,J.useState)(null),[x,S]=(0,J.useState)(null),C;t[2]!==e.environmentId||t[3]!==e.gitCwd?(C={environmentId:e.environmentId,cwd:e.gitCwd},t[2]=e.environmentId,t[3]=e.gitCwd,t[4]=C):C=t[4];let w=$tt(C),T;if(t[5]!==i.data?.sourceControlProviders){T={github:null,gitlab:null,bitbucket:null,"azure-devops":null};for(let e of i.data?.sourceControlProviders??[])Eit(e.kind)&&(T[e.kind]=ja(e.auth.account));t[5]=i.data?.sourceControlProviders,t[6]=T}else T=t[6];let E=T,D;t[7]===i.data?.sourceControlProviders?D=t[8]:(D=i.data?.sourceControlProviders??[],t[7]=i.data?.sourceControlProviders,t[8]=D);let O=D,k;t[9]===O?k=t[10]:(k=Object.fromEntries(p9.map(e=>[e.value,Dit({provider:e.value,sourceControlProviders:O})])),t[9]=O,t[10]=k);let A=k,j;t[11]===A?j=t[12]:(j=p9.some(e=>A[e.value].ready),t[11]=A,t[12]=j);let M=j,N;t[13]===A?N=t[14]:(N=p9.toSorted((e,t)=>{let n=A[e.value].ready;return n===A[t.value].ready?e.label.localeCompare(t.label):n?-1:1}),t[13]=A,t[14]=N);let P=N,F;t[15]!==A||t[16]!==P?(F=P.find(e=>A[e.value].ready)?.value,t[15]=A,t[16]=P,t[17]=F):F=t[17];let I=F,L=a!==null&&A[a].ready?a:I??a??`github`,R=A[L],z=E[L]?`${E[L]}/`:``,B=s??z,V;t[18]===L?V=t[19]:(V=Tit(L),t[18]=L,t[19]=V);let H=V,U=H.host,W=H.pathPlaceholder,G=H.label,ee;t[20]===Symbol.for(`react.memo_cache_sentinel`)?(ee=[`Provider`,`Repository`,`Summary`],t[20]=ee):ee=t[20];let te=ee,ne=x?.repository.nameWithOwner??null,K;t[21]!==G||t[22]!==ne?(K=[G,ne,null],t[21]=G,t[22]=ne,t[23]=K):K=t[23];let re=K,ie;bb0:{if(!R.ready){ie=!1;break bb0}if(w.isPending){ie=!1;break bb0}let e,n;if(t[24]!==B){let r=B.trim().split(`/`);e=r[0]?.trim()??``,n=r.slice(1).join(`/`).trim(),t[24]=B,t[25]=e,t[26]=n}else e=t[25],n=t[26];let r=n;ie=e.length>0&&r.length>0}let ae=ie,oe;t[27]!==ae||t[28]!==p||t[29]!==L||t[30]!==d||t[31]!==B||t[32]!==w||t[33]!==l?(oe=()=>{ae&&(b(null),(async()=>{let e=await w.run({provider:L,repository:B.trim(),visibility:l,remoteName:d.trim()||`origin`,protocol:p});if(e._tag===`Failure`){if(!Hr(e)){let t=fe(e);b(t instanceof Error?t.message:`An error occurred.`)}return}(0,Sm.flushSync)(()=>{S(e.value),g(2)})})())},t[27]=ae,t[28]=p,t[29]=L,t[30]=d,t[31]=B,t[32]=w,t[33]=l,t[34]=oe):oe=t[34];let se=oe,ce;t[35]===Symbol.for(`react.memo_cache_sentinel`)?(ce=()=>{f(`origin`),c(null),g(0),v(!1),b(null),S(null)},t[35]=ce):ce=t[35];let le=ce,ue;t[36]===e?ue=t[37]:(ue=t=>{e.onOpenChange(t),t||le()},t[36]=e,t[37]=ue);let de=ue,pe;t[38]!==de||t[39]!==n?(pe=()=>{de(!1),n({to:`/settings/source-control`})},t[38]=de,t[39]=n,t[40]=pe):pe=t[40];let me=pe,ge=e.open,_e,ve;t[41]===Symbol.for(`react.memo_cache_sentinel`)?(_e=(0,Y.jsx)(tT,{children:`Publish repository`}),ve=(0,Y.jsx)(nT,{children:`Pick where to host it, then point us at a repo to push to.`}),t[41]=_e,t[42]=ve):(_e=t[41],ve=t[42]);let ye;t[43]!==h||t[44]!==re?(ye=(0,Y.jsxs)($w,{className:`border-b border-border/70 bg-foreground/[0.025] dark:border-transparent dark:bg-transparent`,children:[_e,ve,(0,Y.jsx)(`div`,{className:`grid grid-cols-3 gap-2`,children:te.map((e,t)=>{let n=t<h,r=h!==2&&t<te.length-1&&t<=h;return(0,Y.jsxs)(`button`,{type:`button`,onClick:r?()=>g(t):void 0,disabled:!r,className:q(`grid min-w-0 grid-cols-[1rem_minmax(0,1fr)] gap-x-2 rounded-lg border px-3 py-2 text-left`,t===h?`border-primary bg-primary/10 ring-1 ring-primary/25 dark:border-transparent`:n?`border-border bg-background dark:border-transparent dark:bg-white/[0.05]`:`border-border bg-muted/40 dark:border-transparent dark:bg-white/[0.025]`,!r&&`cursor-default`),children:[(0,Y.jsx)(`span`,{"aria-hidden":!0,className:q(`row-span-2 mt-0.5 grid size-4 place-items-center rounded-full border`,n?`border-primary bg-primary text-primary-foreground`:t===h?`border-primary bg-background`:`border-muted-foreground/35 bg-background`),children:n?(0,Y.jsx)(Gt,{className:`size-3`}):null}),(0,Y.jsxs)(`span`,{className:`text-[10px] font-medium uppercase text-muted-foreground`,children:[`Step `,t+1]}),(0,Y.jsxs)(`span`,{className:`truncate text-xs font-semibold text-foreground`,children:[e,n&&re[t]?`: ${re[t]}`:``]})]},e)})})]}),t[43]=h,t[44]=re,t[45]=ye):ye=t[45];let be=h!==0&&`hidden`,xe;t[46]===be?xe=t[47]:(xe=q(`space-y-2`,be),t[46]=be,t[47]=xe);let Se;t[48]===Symbol.for(`react.memo_cache_sentinel`)?(Se=(0,Y.jsx)(`span`,{id:`publish-provider-cards-label`,className:`text-xs font-medium text-foreground`,children:`Provider`}),t[48]=Se):Se=t[48];let Ce;t[49]===Symbol.for(`react.memo_cache_sentinel`)?(Ce=e=>{o(e),c(null)},t[49]=Ce):Ce=t[49];let we;if(t[50]!==me||t[51]!==L||t[52]!==A||t[53]!==P){let e;t[55]!==me||t[56]!==L||t[57]!==A?(e=e=>{let t=A[e.value],n=L===e.value&&t.ready;return t.ready?(0,Y.jsxs)(mM,{value:e.value,className:q(`relative flex cursor-pointer items-center gap-3 rounded-lg border px-3 py-3 text-left outline-none transition-[background-color,border-color,box-shadow]`,`focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background`,n?`border-primary bg-background shadow-sm ring-2 ring-primary/35 dark:border-transparent dark:bg-primary/10 dark:shadow-none dark:ring-1 dark:ring-primary/30`:`border-border bg-background hover:border-foreground/20 hover:bg-muted/50 dark:border-transparent dark:bg-white/[0.035] dark:hover:bg-accent`),children:[(0,Y.jsx)(e.Icon,{className:`size-5 shrink-0`,"aria-hidden":!0}),(0,Y.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-sm font-medium text-foreground`,children:e.label})]},e.value):(0,Y.jsxs)(`div`,{className:`relative flex cursor-not-allowed items-center gap-3 rounded-lg border border-border bg-background px-3 py-3 text-left opacity-55 dark:border-transparent dark:bg-white/[0.035]`,children:[(0,Y.jsx)(e.Icon,{className:`size-5 shrink-0 text-muted-foreground`,"aria-hidden":!0}),(0,Y.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-sm font-medium text-foreground`,children:e.label}),(0,Y.jsxs)(Sl,{children:[(0,Y.jsx)(us,{render:(0,Y.jsx)(rr,{variant:`outline`,size:`xs`,className:`h-5 rounded-[.25rem] px-1.5 text-[10px] text-warning-foreground`,onClick:e=>{e.preventDefault(),e.stopPropagation(),me()},children:`Setup Required`})}),(0,Y.jsx)(Ic,{side:`top`,align:`end`,className:`max-w-72`,children:t.hint??`Open Settings -> Source Control to configure this provider.`})]})]},e.value)},t[55]=me,t[56]=L,t[57]=A,t[58]=e):e=t[58],we=P.map(e),t[50]=me,t[51]=L,t[52]=A,t[53]=P,t[54]=we}else we=t[54];let Te;t[59]!==L||t[60]!==we?(Te=(0,Y.jsx)(gM,{value:L,onValueChange:Ce,"aria-labelledby":`publish-provider-cards-label`,className:`grid grid-cols-2 gap-2.5`,children:we}),t[59]=L,t[60]=we,t[61]=Te):Te=t[61];let Ee;t[62]!==xe||t[63]!==Te?(Ee=(0,Y.jsxs)(`div`,{className:xe,children:[Se,Te]}),t[62]=xe,t[63]=Te,t[64]=Ee):Ee=t[64];let De=h!==1&&`hidden`,Oe;t[65]===De?Oe=t[66]:(Oe=q(`space-y-5`,De),t[65]=De,t[66]=Oe);let ke;t[67]===Symbol.for(`react.memo_cache_sentinel`)?(ke=(0,Y.jsx)(`label`,{htmlFor:`publish-repository-path`,className:`text-xs font-medium text-foreground`,children:`Repository`}),t[67]=ke):ke=t[67];let Ae;t[68]===H.Icon?Ae=t[69]:(Ae=(0,Y.jsx)(H.Icon,{className:`size-3.5`}),t[68]=H.Icon,t[69]=Ae);let je;t[70]!==U||t[71]!==Ae?(je=(0,Y.jsxs)(`span`,{className:`flex shrink-0 items-center gap-1.5 border-r border-input bg-muted/50 px-2.5 font-mono text-xs text-muted-foreground`,children:[Ae,U,`/`]}),t[70]=U,t[71]=Ae,t[72]=je):je=t[72];let Me;t[73]===Symbol.for(`react.memo_cache_sentinel`)?(Me=e=>{c(e.target.value)},t[73]=Me):Me=t[73];let Ne;t[74]===se?Ne=t[75]:(Ne=e=>{e.key===`Enter`&&(e.preventDefault(),se())},t[74]=se,t[75]=Ne);let Pe;t[76]!==W||t[77]!==B||t[78]!==w.isPending||t[79]!==Ne?(Pe=(0,Y.jsx)(`input`,{id:`publish-repository-path`,name:`publish-repository-path`,value:B,onChange:Me,onKeyDown:Ne,placeholder:W,disabled:w.isPending,className:`w-full bg-transparent px-3 py-2 font-mono text-sm placeholder:text-muted-foreground/60 focus:outline-none`}),t[76]=W,t[77]=B,t[78]=w.isPending,t[79]=Ne,t[80]=Pe):Pe=t[80];let Fe;t[81]!==je||t[82]!==Pe?(Fe=(0,Y.jsxs)(`div`,{className:`space-y-2`,children:[ke,(0,Y.jsxs)(`div`,{className:`flex items-stretch overflow-hidden rounded-md border border-input bg-background focus-within:outline-2 focus-within:-outline-offset-1 focus-within:outline-ring`,children:[je,Pe]})]}),t[81]=je,t[82]=Pe,t[83]=Fe):Fe=t[83];let Ie;t[84]===Symbol.for(`react.memo_cache_sentinel`)?(Ie=(0,Y.jsx)(`span`,{id:`publish-visibility-cards-label`,className:`text-xs font-medium text-foreground`,children:`Visibility`}),t[84]=Ie):Ie=t[84];let Le;t[85]===Symbol.for(`react.memo_cache_sentinel`)?(Le=e=>u(e),t[85]=Le):Le=t[85];let Re=w.isPending,ze;t[86]===Symbol.for(`react.memo_cache_sentinel`)?(ze={value:`private`,label:`Private`,description:`Only invited people`,Icon:Nh},t[86]=ze):ze=t[86];let Be;t[87]===Symbol.for(`react.memo_cache_sentinel`)?(Be=[ze,{value:`public`,label:`Public`,description:`Anyone on the web`,Icon:Oh}],t[87]=Be):Be=t[87];let Ve;t[88]===l?Ve=t[89]:(Ve=Be.map(e=>{let t=l===e.value;return(0,Y.jsxs)(mM,{value:e.value,className:q(`relative flex cursor-pointer items-center gap-3 rounded-lg border px-3 py-2.5 text-left outline-none transition-[background-color,border-color,box-shadow]`,`focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background`,t?`border-primary bg-background shadow-sm ring-2 ring-primary/35 dark:border-transparent dark:bg-primary/10 dark:shadow-none dark:ring-1 dark:ring-primary/30`:`border-border bg-background hover:border-foreground/20 hover:bg-muted/50 dark:border-transparent dark:bg-white/[0.035] dark:hover:bg-accent`),children:[(0,Y.jsx)(e.Icon,{className:`size-4 shrink-0 text-muted-foreground`,"aria-hidden":!0}),(0,Y.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[(0,Y.jsx)(`span`,{className:`block text-sm font-medium text-foreground`,children:e.label}),(0,Y.jsx)(`span`,{className:`block text-xs text-muted-foreground`,children:e.description})]})]},e.value)}),t[88]=l,t[89]=Ve);let He;t[90]!==w.isPending||t[91]!==l||t[92]!==Ve?(He=(0,Y.jsxs)(`div`,{className:`space-y-2`,children:[Ie,(0,Y.jsx)(gM,{value:l,onValueChange:Le,"aria-labelledby":`publish-visibility-cards-label`,disabled:Re,className:`grid grid-cols-2 gap-2.5`,children:Ve})]}),t[90]=w.isPending,t[91]=l,t[92]=Ve,t[93]=He):He=t[93];let Ue;t[94]===Symbol.for(`react.memo_cache_sentinel`)?(Ue=()=>v(Rit),t[94]=Ue):Ue=t[94];let We=_?``:`-rotate-90`,Ge;t[95]===We?Ge=t[96]:(Ge=q(`size-3.5 transition-transform`,We),t[95]=We,t[96]=Ge);let Ke;t[97]===Ge?Ke=t[98]:(Ke=(0,Y.jsx)(Ye,{className:Ge}),t[97]=Ge,t[98]=Ke);let qe;t[99]!==_||t[100]!==Ke?(qe=(0,Y.jsxs)(`button`,{type:`button`,onClick:Ue,"aria-expanded":_,className:`flex items-center gap-1 text-xs font-medium text-muted-foreground transition-colors hover:text-foreground`,children:[Ke,`Advanced`]}),t[99]=_,t[100]=Ke,t[101]=qe):qe=t[101];let Je;t[102]!==_||t[103]!==p||t[104]!==d||t[105]!==w.isPending?(Je=_?(0,Y.jsxs)(`div`,{className:`mt-3 grid gap-3 sm:grid-cols-2`,children:[(0,Y.jsxs)(`label`,{className:`space-y-1.5`,htmlFor:`publish-remote-name`,children:[(0,Y.jsx)(`span`,{className:`text-xs font-medium text-foreground`,children:`Remote`}),(0,Y.jsx)(LC,{id:`publish-remote-name`,value:d,onChange:e=>f(e.target.value),placeholder:`origin`,disabled:w.isPending})]}),(0,Y.jsxs)(`div`,{className:`space-y-1.5`,children:[(0,Y.jsx)(`span`,{id:`publish-protocol-label`,className:`text-xs font-medium text-foreground`,children:`Protocol`}),(0,Y.jsx)(gM,{value:p,onValueChange:e=>m(e),"aria-labelledby":`publish-protocol-label`,disabled:w.isPending,className:`grid grid-cols-2 gap-2`,children:[`ssh`,`https`].map(e=>{let t=p===e;return(0,Y.jsx)(mM,{value:e,className:q(`rounded-md border px-3 py-1.5 text-center text-sm font-medium outline-none transition`,`focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background`,t?`border-primary bg-background ring-2 ring-primary/35 text-foreground dark:border-transparent dark:bg-primary/10 dark:ring-1 dark:ring-primary/30`:`border-border bg-background text-muted-foreground hover:border-foreground/20 hover:text-foreground dark:border-transparent dark:bg-white/[0.035]`),children:e===`ssh`?`SSH`:`HTTPS`},e)})})]})]}):null,t[102]=_,t[103]=p,t[104]=d,t[105]=w.isPending,t[106]=Je):Je=t[106];let Xe;t[107]!==qe||t[108]!==Je?(Xe=(0,Y.jsxs)(`div`,{children:[qe,Je]}),t[107]=qe,t[108]=Je,t[109]=Xe):Xe=t[109];let Ze;t[110]!==G||t[111]!==w.isPending?(Ze=w.isPending?(0,Y.jsxs)(`div`,{role:`status`,"aria-live":`polite`,className:`flex items-center gap-2 rounded-md border border-input bg-muted/40 px-3 py-2 text-xs text-muted-foreground dark:border-transparent dark:bg-white/[0.035]`,children:[(0,Y.jsx)(mO,{className:`size-3.5`,"aria-hidden":!0}),`Publishing repository to `,G,`...`]}):null,t[110]=G,t[111]=w.isPending,t[112]=Ze):Ze=t[112];let Qe;t[113]!==y||t[114]!==w.isPending?(Qe=y&&!w.isPending?(0,Y.jsxs)(`div`,{role:`alert`,className:`rounded-md border border-destructive/40 bg-destructive/10 px-3 py-2 text-xs text-destructive`,children:[(0,Y.jsx)(`p`,{className:`font-medium`,children:`Publish failed`}),(0,Y.jsx)(`p`,{className:`mt-0.5 text-destructive/90`,children:y})]}):null,t[113]=y,t[114]=w.isPending,t[115]=Qe):Qe=t[115];let $e;t[116]!==Oe||t[117]!==Fe||t[118]!==He||t[119]!==Xe||t[120]!==Ze||t[121]!==Qe?($e=(0,Y.jsxs)(`div`,{className:Oe,children:[Fe,He,Xe,Ze,Qe]}),t[116]=Oe,t[117]=Fe,t[118]=He,t[119]=Xe,t[120]=Ze,t[121]=Qe,t[122]=$e):$e=t[122];let et=h!==2&&`hidden`,tt;t[123]===et?tt=t[124]:(tt=q(`space-y-4`,et),t[123]=et,t[124]=tt);let nt;t[125]!==H.Icon||t[126]!==G||t[127]!==x?(nt=x?(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsxs)(`div`,{className:`flex flex-col items-center gap-2 py-1 text-center`,children:[(0,Y.jsx)(`span`,{className:`grid size-8 place-items-center rounded-full bg-success/15 text-success`,children:(0,Y.jsx)(Gt,{className:`size-4`,"aria-hidden":!0})}),(0,Y.jsx)(`h3`,{className:`text-sm font-semibold text-foreground`,children:x.status===`pushed`?`Repository published`:`Repository created`}),(0,Y.jsx)(`p`,{className:`max-w-xs text-pretty text-xs text-muted-foreground`,children:x.status===`pushed`?`${x.branch} is now live on ${G}.`:`Remote "${x.remoteName}" is set up. Make a commit and push it to share your code.`})]}),(0,Y.jsxs)(`div`,{className:`flex items-center gap-2 rounded-lg border border-input bg-muted/40 px-3 py-2 dark:border-transparent dark:bg-white/[0.035]`,children:[(0,Y.jsx)(H.Icon,{className:`size-3.5 shrink-0 text-muted-foreground`}),(0,Y.jsx)(`span`,{className:`min-w-0 flex-1 truncate font-mono text-xs text-foreground`,children:x.repository.nameWithOwner})]}),(0,Y.jsxs)(rr,{variant:`outline`,size:`sm`,className:`w-full`,onClick:()=>{let e=he();e&&e.shell.openExternal(x.repository.url)},children:[(0,Y.jsx)(hh,{className:`size-3.5`,"aria-hidden":!0}),`Open on `,G]})]}):(0,Y.jsx)(`div`,{className:`rounded-md border border-input bg-background px-3 py-2 text-xs text-muted-foreground dark:border-transparent dark:bg-white/[0.035]`,children:`Publish result unavailable.`}),t[125]=H.Icon,t[126]=G,t[127]=x,t[128]=nt):nt=t[128];let rt;t[129]!==tt||t[130]!==nt?(rt=(0,Y.jsx)(`div`,{className:tt,children:nt}),t[129]=tt,t[130]=nt,t[131]=rt):rt=t[131];let it;t[132]!==Ee||t[133]!==$e||t[134]!==rt?(it=(0,Y.jsx)(rT,{className:`space-y-5 border-b border-border/70 bg-muted/20 px-6 py-5 dark:border-transparent dark:bg-transparent`,children:(0,Y.jsxs)(DM,{children:[Ee,$e,rt]})}),t[132]=Ee,t[133]=$e,t[134]=rt,t[135]=it):it=t[135];let at;t[136]!==ae||t[137]!==de||t[138]!==M||t[139]!==w.isPending||t[140]!==h||t[141]!==R.ready||t[142]!==se?(at=(0,Y.jsx)(eT,{className:`dark:border-transparent dark:bg-transparent`,children:h===2?(0,Y.jsx)(rr,{size:`sm`,onClick:()=>de(!1),children:`Done`}):(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(rr,{variant:`outline`,size:`sm`,disabled:w.isPending,onClick:()=>{if(h===0){de(!1);return}g(Lit)},children:h===0?`Cancel`:`Back`}),h<1?(0,Y.jsx)(rr,{size:`sm`,disabled:!M||!R.ready,onClick:()=>g(Iit),children:`Next`}):(0,Y.jsx)(rr,{size:`sm`,disabled:!ae,onClick:se,children:w.isPending?(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(mO,{className:`size-3.5`,"aria-hidden":!0}),`Publishing...`]}):`Publish`})]})}),t[136]=ae,t[137]=de,t[138]=M,t[139]=w.isPending,t[140]=h,t[141]=R.ready,t[142]=se,t[143]=at):at=t[143];let ot;t[144]!==ye||t[145]!==it||t[146]!==at?(ot=(0,Y.jsx)(Qw,{className:`max-w-xl overflow-hidden`,children:(0,Y.jsxs)(`div`,{className:`flex min-h-0 flex-col overflow-hidden border-foreground/10 bg-transparent`,children:[ye,it,at]})}),t[144]=ye,t[145]=it,t[146]=at,t[147]=ot):ot=t[147];let st;return t[148]!==de||t[149]!==e.open||t[150]!==ot?(st=(0,Y.jsx)(Xw,{open:ge,onOpenChange:de,children:ot}),t[148]=de,t[149]=e.open,t[150]=ot,t[151]=st):st=t[151],st}function Iit(e){return Math.min(1,e+1)}function Lit(e){return Math.max(0,e-1)}function Rit(e){return!e}function zit({gitCwd:e,activeThreadRef:t,draftId:n}){let r=qu(h_.updateMetadata,`thread branch metadata update`),i=t?.environmentId??null,a=xO(i,Io(br.configValueAtom(i))?.availableEditors??[]),o=(0,J.useMemo)(()=>t?{threadRef:t}:void 0,[t]),s=ea(e=>n?e.getDraftSession(n):t?e.getDraftThreadByRef(t):null),c=D_(t,{waitForShell:s!==null}),l=ea(e=>e.setDraftThreadContext),[u,d]=(0,J.useState)(!1),[f,p]=(0,J.useState)(``),[m,h]=(0,J.useState)(new Set),[g,_]=(0,J.useState)(!1),[v,y]=(0,J.useState)(!1),[b,x]=(0,J.useState)(null),S=(0,J.useRef)(null),C=(0,J.useMemo)(()=>({environmentId:i,cwd:e}),[i,e]),w,T=(0,J.useCallback)(()=>{let e=S.current;e&&uS.update(e.toastId,{type:`loading`,title:e.title,description:kit(e),timeout:0,data:e.toastData})},[]),E=(0,J.useCallback)(e=>{if(t){if(c){if(c.branch===e)return;r({environmentId:t.environmentId,input:{threadId:t.threadId,...bit(e,c.branch)}});return}!s||s.branch===e||l(n??t,{branch:e,worktreePath:s.worktreePath})}},[s,c,t,n,l,r]),D=(0,J.useCallback)(e=>{let t=yit(e);t&&E(t.branch)},[E]),O=od(i!==null&&e!==null?q_.status({environmentId:i,input:{cwd:e}}):null),k=qu(q_.refreshStatus,{reportFailure:!1}),{data:A,error:j}=O,M=(0,J.useMemo)(()=>gv(A?.sourceControlProvider),[A?.sourceControlProvider]),N=M.terminology,P=M.Icon,F=A?.isRepo??!0,I=A?.hasPrimaryRemote??!1,L=A,R=L?.workingTree.files??[],z=R.filter(e=>!m.has(e.path)),B=m.size===0,V=z.length===0,H=Xtt(C),U=Qtt(C),W=Ztt(C),G=Ytt(C,wit),ee=!c&&s?.envMode===`worktree`&&s.worktreePath===null;(0,J.useEffect)(()=>{if(G||ee||c)return;let e=xit({threadBranch:s?.branch??null,gitStatus:L});e&&E(e.branch)},[c,s?.branch,L,G,ee,E]);let te=(0,J.useMemo)(()=>L?.isDefaultRef??!1,[L?.isDefaultRef]),ne=(0,J.useMemo)(()=>hit(L,G,I),[L,I,G]),K=(0,J.useMemo)(()=>git(L,G,te,I),[L,I,te,G]),re=K.disabled?K.hint??`This action is currently unavailable.`:null,ie=b?vit({action:b.action,branchName:b.branchName,includesCommit:b.includesCommit,terminology:N}):null;(0,J.useEffect)(()=>{let e=window.setInterval(()=>{S.current&&T()},1e3);return()=>{window.clearInterval(e)}},[T]),(0,J.useEffect)(()=>{if(e===null)return;let t=null,n=()=>{t!==null&&window.clearTimeout(t),t=window.setTimeout(()=>{t=null,Cit(k,i,e)},Sit)},r=()=>{document.visibilityState===`visible`&&n()};return window.addEventListener(`focus`,n),document.addEventListener(`visibilitychange`,r),()=>{t!==null&&window.clearTimeout(t),window.removeEventListener(`focus`,n),document.removeEventListener(`visibilitychange`,r)}},[i,e,k]);let ae=(0,J.useCallback)(async()=>{let e=he();if(!e){uS.add({type:`error`,title:`Link opening is unavailable.`,data:o});return}let t=L?.pr?.state===`open`?L.pr.url:null;if(!t){uS.add({type:`error`,title:`No open pull request found.`,data:o});return}xS(e.shell,t).catch(e=>{console.error(e),uS.add(lS({type:`error`,title:`Unable to open pull request link`,description:e instanceof Error?e.message:`An error occurred.`,...o===void 0?{}:{data:o}}))})},[L,o]);w=(0,J.useEffectEvent)(async({action:t,commitMessage:n,onConfirmed:r,skipDefaultBranchPrompt:i=!1,statusOverride:a,featureBranch:s=!1,progressToastId:c,filePaths:l})=>{let u=a??L,d=u?.refName??null,f=s?!1:te,p=(t===`commit`||t===`commit_push`||t===`commit_push_pr`)&&(t===`commit`||!!u?.hasWorkingTreeChanges||s);if(!i&&_it(t,f)&&d){if(t!==`push`&&t!==`create_pr`&&t!==`commit_push`&&t!==`commit_push_pr`)return;x({action:t,branchName:d,includesCommit:p,...n?{commitMessage:n}:{},...r?{onConfirmed:r}:{},...l?{filePaths:l}:{}});return}r?.();let m=mit({action:t,hasCustomCommitMessage:!!n?.trim(),hasWorkingTreeChanges:!!u?.hasWorkingTreeChanges,featureBranch:s,terminology:N,shouldPushBeforePr:t===`create_pr`&&(!u?.hasUpstream||(u?.aheadCount??0)>0)}),h=o?{...o}:void 0,g=Vi(),_=c??uS.add({type:`loading`,title:m[0]??`Running git action...`,description:`Waiting for Git...`,timeout:0,data:h});S.current={toastId:_,toastData:h,actionId:g,title:m[0]??`Running git action...`,phaseStartedAtMs:null,hookStartedAtMs:null,hookName:null,lastOutputLine:null,currentPhaseLabel:m[0]??`Running git action...`},c&&uS.update(c,{type:`loading`,title:m[0]??`Running git action...`,description:`Waiting for Git...`,timeout:0,data:h});let v=t=>{let n=S.current;if(!n||e&&t.cwd!==e||n.actionId!==t.actionId)return;let r=Date.now();switch(t.kind){case`action_started`:n.phaseStartedAtMs=r,n.hookStartedAtMs=null,n.hookName=null,n.lastOutputLine=null;break;case`phase_started`:n.title=t.label,n.currentPhaseLabel=t.label,n.phaseStartedAtMs=r,n.hookStartedAtMs=null,n.hookName=null,n.lastOutputLine=null;break;case`hook_started`:n.title=`Running ${t.hookName}...`,n.hookName=t.hookName,n.hookStartedAtMs=r,n.lastOutputLine=null;break;case`hook_output`:n.lastOutputLine=t.text;break;case`hook_finished`:n.title=n.currentPhaseLabel??`Committing...`,n.hookName=null,n.hookStartedAtMs=null,n.lastOutputLine=null;break;case`action_finished`:return;case`action_failed`:return}T()},y=await U.run({actionId:g,action:t,...n?{commitMessage:n}:{},...s?{featureBranch:s}:{},...l?{filePaths:l}:{},onProgress:v});if(S.current=null,y._tag===`Failure`){if(Hr(y)){uS.close(_);return}let e=fe(y);uS.update(_,lS({type:`error`,title:`Action failed`,description:e instanceof Error?e.message:`An error occurred.`,...h===void 0?{}:{data:h}}));return}let b=y.value;D(b);let C=()=>{uS.close(_)},E=b.toast.cta,O=null;E.kind===`run_action`?O={children:E.label,onClick:()=>{C(),w({action:E.action.kind})}}:E.kind===`open_pr`&&(O={children:E.label,onClick:()=>{let e=he();e&&(C(),e.shell.openExternal(E.url))}});let k={...h,dismissAfterVisibleMs:1e4};O?uS.update(_,lS({type:`success`,title:b.toast.title,description:b.toast.description,timeout:0,actionProps:O,data:k})):uS.update(_,{type:`success`,title:b.toast.title,description:b.toast.description,timeout:0,data:k})});let oe=()=>{if(!b)return;let{action:e,commitMessage:t,onConfirmed:n,filePaths:r}=b;x(null),w({action:e,...t?{commitMessage:t}:{},...n?{onConfirmed:n}:{},...r?{filePaths:r}:{},skipDefaultBranchPrompt:!0})},se=()=>{if(!b)return;let{action:e,commitMessage:t,onConfirmed:n,filePaths:r}=b;x(null),w({action:e,...t?{commitMessage:t}:{},...n?{onConfirmed:n}:{},...r?{filePaths:r}:{},featureBranch:!0,skipDefaultBranchPrompt:!0})},ce=()=>{if(!u)return;let e=f.trim();d(!1),p(``),h(new Set),_(!1),w({action:`commit`,...e?{commitMessage:e}:{},...B?{}:{filePaths:z.map(e=>e.path)},featureBranch:!0,skipDefaultBranchPrompt:!0})},le=()=>{if(K.kind===`open_pr`){ae();return}if(K.kind===`open_publish`){y(!0);return}if(K.kind===`run_pull`){let e=uS.add({type:`loading`,title:`Pulling...`,timeout:0,data:o});(async()=>{let t=await W.run();if(t._tag===`Failure`){if(Hr(t)){uS.close(e);return}let n=fe(t);uS.update(e,lS({type:`error`,title:`Pull failed`,description:n instanceof Error?n.message:`An error occurred.`,...o===void 0?{}:{data:o}}));return}let n=t.value;uS.update(e,{type:`success`,title:n.status===`pulled`?`Pulled`:`Already up to date`,description:n.status===`pulled`?`Updated ${n.refName} from ${n.upstreamRef??`upstream`}`:`${n.refName} is already synchronized.`,data:o})})();return}if(K.kind===`show_hint`){uS.add({type:`info`,title:K.label,description:K.hint,data:o});return}K.action&&w({action:K.action})},ue=e=>{if(!e.disabled){if(e.kind===`open_pr`){ae();return}if(e.dialogAction===`push`){w({action:`push`});return}if(e.dialogAction===`create_pr`){w({action:`create_pr`});return}h(new Set),_(!1),d(!0)}},de=()=>{if(!u)return;let e=f.trim();d(!1),p(``),h(new Set),_(!1),w({action:`commit`,...e?{commitMessage:e}:{},...B?{}:{filePaths:z.map(e=>e.path)}})},pe=(0,J.useCallback)(t=>{if(!e){uS.add({type:`error`,title:`Editor opening is unavailable.`,data:o});return}let n=mX(t,e);(async()=>{let e=await a(n);if(e._tag===`Success`||Hr(e))return;let t=fe(e);uS.add(lS({type:`error`,title:`Unable to open file`,description:t instanceof Error?t.message:`An error occurred.`,...o===void 0?{}:{data:o}}))})()},[e,a,o]),me=F&&L!==null&&!I;return e?(0,Y.jsxs)(Y.Fragment,{children:[F?(0,Y.jsxs)(VP,{"aria-label":`Git actions`,className:`shrink-0`,children:[re?(0,Y.jsxs)(LD,{children:[(0,Y.jsxs)(RD,{openOnHover:!0,render:(0,Y.jsx)(rr,{"aria-disabled":`true`,className:`cursor-not-allowed rounded-e-none border-e-0 opacity-64 before:rounded-e-none`,size:`xs`,variant:`outline`}),children:[(0,Y.jsx)(Pit,{quickAction:K,SourceControlIcon:P}),(0,Y.jsx)(`span`,{className:`sr-only @3xl/header-actions:not-sr-only @3xl/header-actions:ml-0.5`,children:K.label})]}),(0,Y.jsx)(zD,{tooltipStyle:!0,side:`bottom`,align:`start`,children:re})]}):(0,Y.jsxs)(rr,{variant:`outline`,size:`xs`,disabled:G||K.disabled,onClick:le,children:[(0,Y.jsx)(Pit,{quickAction:K,SourceControlIcon:P}),(0,Y.jsx)(`span`,{className:`sr-only @3xl/header-actions:not-sr-only @3xl/header-actions:ml-0.5`,children:K.label})]}),(0,Y.jsx)(HP,{className:`hidden @3xl/header-actions:block`}),(0,Y.jsxs)(kr,{onOpenChange:t=>{t&&Cit(k,i,e)},children:[(0,Y.jsx)(Qi,{render:(0,Y.jsx)(rr,{"aria-label":`Git action options`,size:`icon-xs`,variant:`outline`}),disabled:G,children:(0,Y.jsx)(Ye,{"aria-hidden":`true`,className:`size-4`})}),(0,Y.jsxs)(lt,{align:`end`,className:`w-full`,children:[ne.map(e=>{let t=Ait({item:e,gitStatus:L,isBusy:G,hasPrimaryRemote:I});return e.disabled&&t?(0,Y.jsxs)(LD,{children:[(0,Y.jsx)(RD,{openOnHover:!0,nativeButton:!1,render:(0,Y.jsx)(`span`,{className:`block w-max cursor-not-allowed`}),children:(0,Y.jsxs)(Ei,{className:`w-full`,disabled:!0,children:[(0,Y.jsx)(Nit,{icon:e.icon,SourceControlIcon:P}),e.label]})}),(0,Y.jsx)(zD,{tooltipStyle:!0,side:`left`,align:`center`,children:t})]},`${e.id}-${e.label}`):(0,Y.jsxs)(Ei,{disabled:e.disabled,onClick:()=>{ue(e)},children:[(0,Y.jsx)(Nit,{icon:e.icon,SourceControlIcon:P}),e.label]},`${e.id}-${e.label}`)}),me?(0,Y.jsxs)(Ei,{disabled:G,onClick:()=>{y(!0)},children:[(0,Y.jsx)(lh,{}),`Publish repository...`]}):null,L?.refName===null&&(0,Y.jsx)(`p`,{className:`px-2 py-1.5 text-xs text-warning`,children:`Detached HEAD: create and checkout a refName to enable push and pull request actions.`}),L&&L.refName!==null&&!L.hasWorkingTreeChanges&&L.behindCount>0&&L.aheadCount===0&&(0,Y.jsx)(`p`,{className:`px-2 py-1.5 text-xs text-warning`,children:`Behind upstream. Pull/rebase first.`}),j&&(0,Y.jsx)(`p`,{className:`px-2 py-1.5 text-xs text-destructive`,children:j})]})]})]}):(0,Y.jsxs)(rr,{variant:`outline`,size:`xs`,disabled:H.isPending,onClick:()=>{(async()=>{let e=await H.run();if(e._tag===`Success`||Hr(e))return;let t=fe(e);uS.add(lS({type:`error`,title:`Git initialization failed`,description:t instanceof Error?t.message:`An error occurred.`,...o===void 0?{}:{data:o}}))})()},children:[(0,Y.jsx)(Ute,{className:`size-3.5`,"aria-hidden":!0}),(0,Y.jsx)(`span`,{className:`ml-0.5`,children:H.isPending?`Initializing...`:`Initialize Git`})]}),(0,Y.jsx)(Xw,{open:u,onOpenChange:e=>{e||(d(!1),p(``),h(new Set),_(!1))},children:(0,Y.jsxs)(Qw,{children:[(0,Y.jsxs)($w,{children:[(0,Y.jsx)(tT,{children:jit}),(0,Y.jsx)(nT,{children:Mit})]}),(0,Y.jsxs)(rT,{className:`space-y-4`,children:[(0,Y.jsxs)(`div`,{className:`space-y-3 rounded-xl bg-zinc-25 p-3 text-sm ring-1 ring-black/5 dark:bg-white/[0.035] dark:ring-white/5`,children:[(0,Y.jsxs)(`div`,{className:`grid grid-cols-[auto_1fr] items-center gap-x-2 gap-y-1`,children:[(0,Y.jsx)(`span`,{className:`text-muted-foreground`,children:`Branch`}),(0,Y.jsxs)(`span`,{className:`flex items-center justify-between gap-2`,children:[(0,Y.jsx)(`span`,{className:`font-medium`,children:L?.refName??`(detached HEAD)`}),te&&(0,Y.jsx)(`span`,{className:`text-right text-warning`,children:`Warning: default refName`})]})]}),(0,Y.jsxs)(`div`,{className:`space-y-1`,children:[(0,Y.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,Y.jsxs)(`div`,{className:`flex items-center gap-2`,children:[g&&R.length>0&&(0,Y.jsx)(FM,{checked:B,indeterminate:!B&&!V,onCheckedChange:()=>{h(B?new Set(R.map(e=>e.path)):new Set)}}),(0,Y.jsx)(`span`,{className:`text-muted-foreground`,children:`Files`}),!B&&!g&&(0,Y.jsxs)(`span`,{className:`text-muted-foreground`,children:[`(`,z.length,` of `,R.length,`)`]})]}),R.length>0&&(0,Y.jsx)(rr,{variant:`ghost`,size:`xs`,onClick:()=>_(e=>!e),children:g?`Done`:`Edit`})]}),!L||R.length===0?(0,Y.jsx)(`p`,{className:`font-medium`,children:`none`}):(0,Y.jsxs)(`div`,{className:`space-y-2`,children:[(0,Y.jsx)(JC,{className:`h-44 rounded-lg bg-card ring-1 ring-black/5 dark:bg-white/[0.025] dark:ring-white/5`,children:(0,Y.jsx)(`div`,{className:`space-y-1 p-1`,children:R.map(e=>{let t=m.has(e.path);return(0,Y.jsxs)(`div`,{className:`flex w-full items-center gap-2 rounded-md px-2 py-1 font-mono hover:bg-accent/50`,children:[g&&(0,Y.jsx)(FM,{checked:!m.has(e.path),onCheckedChange:()=>{h(t=>{let n=new Set(t);return n.has(e.path)?n.delete(e.path):n.add(e.path),n})}}),(0,Y.jsxs)(`button`,{type:`button`,className:`flex flex-1 items-center justify-between gap-3 text-left truncate`,onClick:()=>pe(e.path),children:[(0,Y.jsx)(`span`,{className:`truncate${t?` text-muted-foreground`:``}`,children:e.path}),(0,Y.jsx)(`span`,{className:`shrink-0`,children:t?(0,Y.jsx)(`span`,{className:`text-muted-foreground`,children:`Excluded`}):(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsxs)(`span`,{className:`text-success`,children:[`+`,e.insertions]}),(0,Y.jsx)(`span`,{className:`text-muted-foreground`,children:` / `}),(0,Y.jsxs)(`span`,{className:`text-destructive`,children:[`-`,e.deletions]})]})})]})]},e.path)})})}),(0,Y.jsxs)(`div`,{className:`flex justify-end font-mono`,children:[(0,Y.jsxs)(`span`,{className:`text-success`,children:[`+`,z.reduce((e,t)=>e+t.insertions,0)]}),(0,Y.jsx)(`span`,{className:`text-muted-foreground`,children:` / `}),(0,Y.jsxs)(`span`,{className:`text-destructive`,children:[`-`,z.reduce((e,t)=>e+t.deletions,0)]})]})]})]})]}),(0,Y.jsxs)(`div`,{className:`space-y-1`,children:[(0,Y.jsx)(`p`,{className:`text-sm font-medium`,children:`Commit message (optional)`}),(0,Y.jsx)(xu,{value:f,onChange:e=>p(e.target.value),placeholder:`Leave empty to auto-generate`,size:`sm`})]})]}),(0,Y.jsxs)(eT,{variant:`bare`,children:[(0,Y.jsx)(rr,{variant:`outline`,size:`sm`,onClick:()=>{d(!1),p(``),h(new Set),_(!1)},children:`Cancel`}),(0,Y.jsx)(rr,{variant:`outline`,size:`sm`,disabled:V,onClick:ce,children:`Commit on new refName`}),(0,Y.jsx)(rr,{size:`sm`,disabled:V,onClick:de,children:`Commit`})]})]})}),(0,Y.jsx)(Fit,{open:v,onOpenChange:y,environmentId:i,gitCwd:e}),(0,Y.jsx)(Xw,{open:b!==null,onOpenChange:e=>{e||x(null)},children:(0,Y.jsxs)(Qw,{className:`max-w-xl`,children:[(0,Y.jsxs)($w,{children:[(0,Y.jsx)(tT,{children:ie?.title??`Run action on default refName?`}),(0,Y.jsx)(nT,{children:ie?.description})]}),(0,Y.jsxs)(eT,{className:`dark:border-transparent dark:bg-transparent sm:flex-wrap sm:items-center`,children:[(0,Y.jsx)(rr,{className:`w-full sm:mr-auto sm:w-auto`,variant:`outline`,size:`sm`,onClick:()=>x(null),children:`Abort`}),(0,Y.jsx)(rr,{className:`min-h-8 w-full max-w-full whitespace-normal py-1.5 leading-snug sm:min-h-7 sm:w-auto`,variant:`outline`,size:`sm`,onClick:oe,children:ie?.continueLabel??`Continue`}),(0,Y.jsx)(rr,{className:`min-h-8 w-full max-w-full whitespace-normal py-1.5 leading-snug sm:min-h-7 sm:w-auto`,size:`sm`,onClick:se,children:`Checkout feature branch & continue`})]})]})})]}):null}var Bit=[{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 m9(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)(yh,{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)(Yte,{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)(lg,{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)(Wte,{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)(rne,{className:i}),t[10]=i,t[11]=a),a}var Vit=[];function Hit({scripts:e,fileScripts:t=Vit,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,F]=(0,J.useState)(!1),I=(0,J.useMemo)(()=>{if(r){let t=e.find(e=>e.id===r);if(t)return t}return h6e(e)},[r,e]),L=(0,J.useMemo)(()=>t.filter(t=>!e.some(e=>e.command===t.command||e.name.toLowerCase()===t.name.toLowerCase())),[t,e]),R=l!==null,z=`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`,B=e=>{if(e.key===`Tab`)return;if(e.preventDefault(),e.key===`Backspace`||e.key===`Delete`){E(``);return}let t=eP(e,navigator.platform);t&&E(t)},V=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??$0(n,e.map(e=>e.id)),a=X0({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(!Hr(s)){let e=fe(s);M(e instanceof Error?e.message:`Failed to save action.`)}return}m(!1),S(!1)},H=()=>{u(null),g(``),v(``),b(`play`),S(!1),w(!1),E(``),O(``),A(!1),M(null),m(!0)},U=e=>{f({scripts:!1,imports:!1}),u(e.id),g(e.name),v(e.command),b(e.icon),S(!1),w(e.runOnWorktreeCreate),E(d6e(n,Q0(e.id))??``),O(e.previewUrl??``),A(e.autoOpenPreview??!1),M(null),m(!0)},W=(0,J.useCallback)(()=>{l&&(F(!1),m(!1),s(l))},[l,s]),G=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`&&!Hr(n)){let e=fe(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=L.length>0&&(0,Y.jsxs)(Y.Fragment,{children:[I&&(0,Y.jsx)(Xe,{}),(0,Y.jsxs)(ef,{children:[(0,Y.jsx)(P,{children:`From p4.json`}),L.map(e=>(0,Y.jsxs)(Ei,{className:z,onClick:()=>void G(e),children:[(0,Y.jsx)(m9,{icon:e.icon??`play`,className:`size-4`}),(0,Y.jsx)(`span`,{className:`truncate`,children:e.name}),(0,Y.jsx)(Kt,{className:`ms-auto`,children:(0,Y.jsx)(fh,{className:`size-3.5`,"aria-label":`Import`})})]},`${e.name} ${e.command}`))]})]});return(0,Y.jsxs)(Y.Fragment,{children:[I?(0,Y.jsxs)(VP,{"aria-label":`Project scripts`,children:[(0,Y.jsxs)(Sl,{children:[(0,Y.jsxs)(us,{render:(0,Y.jsx)(rr,{size:`xs`,variant:`outline`,"aria-label":`Run ${I.name}`,onClick:()=>i(I)}),children:[(0,Y.jsx)(m9,{icon:I.icon}),(0,Y.jsx)(`span`,{className:`sr-only @3xl/header-actions:not-sr-only @3xl/header-actions:ml-0.5`,children:I.name})]}),(0,Y.jsxs)(Ic,{side:`top`,children:[`Run `,I.name]})]}),(0,Y.jsx)(HP,{className:`hidden @3xl/header-actions:block`}),(0,Y.jsxs)(kr,{highlightItemOnHover:!1,open:d.scripts,onOpenChange:e=>f({scripts:e,imports:!1}),children:[(0,Y.jsx)(Qi,{render:(0,Y.jsx)(rr,{size:`icon-xs`,variant:`outline`,"aria-label":`Script actions`}),children:(0,Y.jsx)(Ye,{className:`size-4`})}),(0,Y.jsxs)(lt,{align:`end`,children:[e.map(e=>{let t=Sg(n,Q0(e.id));return(0,Y.jsxs)(Ei,{className:`group ${z}`,onClick:()=>i(e),children:[(0,Y.jsx)(m9,{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)(Kt,{className:`ms-0 transition-opacity group-hover:opacity-0 group-focus-visible:opacity-0`,children:t}),(0,Y.jsx)(rr,{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(),U(e)},children:(0,Y.jsx)(Zh,{className:`size-3.5`})})]})]},e.id)}),ee,(0,Y.jsxs)(Ei,{className:z,onClick:H,children:[(0,Y.jsx)(Gh,{className:`size-4`}),`Add action`]})]})]})]}):L.length>0?(0,Y.jsxs)(kr,{highlightItemOnHover:!1,open:d.imports,onOpenChange:e=>f({scripts:!1,imports:e}),children:[(0,Y.jsxs)(Qi,{render:(0,Y.jsx)(rr,{size:`xs`,variant:`outline`,"aria-label":`Project actions`}),children:[(0,Y.jsx)(Gh,{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)(Ye,{className:`size-3.5`})]}),(0,Y.jsxs)(lt,{align:`end`,children:[ee,(0,Y.jsxs)(Ei,{className:z,onClick:H,children:[(0,Y.jsx)(Gh,{className:`size-4`}),`Add action`]})]})]}):(0,Y.jsxs)(Sl,{children:[(0,Y.jsxs)(us,{render:(0,Y.jsx)(rr,{size:`xs`,variant:`outline`,"aria-label":`Add action`,onClick:H}),children:[(0,Y.jsx)(Gh,{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)(Ic,{side:`top`,children:`Add action`})]}),(0,Y.jsx)(Xw,{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)(Qw,{children:[(0,Y.jsxs)($w,{children:[(0,Y.jsx)(tT,{children:R?`Edit Action`:`Add Action`}),(0,Y.jsx)(nT,{children:`Actions are project-scoped commands you can run from the top bar or keybindings.`})]}),(0,Y.jsx)(rT,{children:(0,Y.jsxs)(`form`,{id:c,className:`space-y-4`,onSubmit:V,children:[(0,Y.jsxs)(`div`,{className:`space-y-1.5`,children:[(0,Y.jsx)(NT,{htmlFor:`script-name`,children:`Name`}),(0,Y.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,Y.jsxs)(LD,{onOpenChange:S,open:x,children:[(0,Y.jsx)(RD,{render:(0,Y.jsx)(rr,{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)(m9,{icon:y,className:`size-4.5`})}),(0,Y.jsx)(zD,{align:`start`,children:(0,Y.jsx)(`div`,{className:`grid grid-cols-3 gap-2`,children:Bit.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)(m9,{icon:e.id,className:`size-4`}),(0,Y.jsx)(`span`,{children:e.label})]},e.id))})})]}),(0,Y.jsx)(LC,{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)(NT,{htmlFor:`script-keybinding`,children:`Keybinding`}),(0,Y.jsx)(LC,{id:`script-keybinding`,placeholder:`Press shortcut`,value:T,readOnly:!0,onKeyDown:B}),(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)(NT,{htmlFor:`script-command`,children:`Command`}),(0,Y.jsx)(xu,{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)(NT,{htmlFor:`script-preview-url`,children:`Preview URL (optional)`}),(0,Y.jsx)(LC,{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)(lM,{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)(lM,{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)(eT,{className:`dark:border-transparent dark:bg-transparent`,children:[R&&(0,Y.jsx)(rr,{type:`button`,variant:`destructive-outline`,className:`mr-auto`,onClick:()=>F(!0),children:`Delete`}),(0,Y.jsx)(rr,{type:`button`,variant:`outline`,onClick:()=>{m(!1)},children:`Cancel`}),(0,Y.jsx)(rr,{form:c,type:`submit`,children:R?`Save changes`:`Save action`})]})]})}),(0,Y.jsx)(OP,{open:N,onOpenChange:F,children:(0,Y.jsxs)(kP,{children:[(0,Y.jsxs)(AP,{children:[(0,Y.jsxs)(MP,{children:[`Delete action "`,h,`"?`]}),(0,Y.jsx)(NP,{children:`This action cannot be undone.`})]}),(0,Y.jsxs)(jP,{children:[(0,Y.jsx)(PP,{render:(0,Y.jsx)(rr,{variant:`outline`}),children:`Cancel`}),(0,Y.jsx)(rr,{variant:`destructive`,onClick:W,children:`Delete action`})]})]})})]})}var h9=(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},Uit=e=>{let t=(0,X.c)(23),[n,r]=h9(`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},Wit=e=>{let t=(0,X.c)(23),[n,r]=h9(`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},Git=e=>{let t=(0,X.c)(23),[n,r]=h9(`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},Kit=e=>{let t=(0,X.c)(23),[n,r]=h9(`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},qit=e=>{let t=(0,X.c)(23),[n,r]=h9(`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},Jit=e=>{let t=(0,X.c)(23),[n,r]=h9(`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},Yit=e=>{let t=(0,X.c)(23),[n,r]=h9(`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},Xit=e=>{let t=(0,X.c)(23),[n,r]=h9(`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},Zit=e=>{let t=(0,X.c)(23),[n,r]=h9(`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},Qit=e=>{let t=(0,X.c)(23),[n,r]=h9(`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},$it=e=>{let t=(0,X.c)(23),[n,r]=h9(`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},eat=e=>{let t=(0,X.c)(23),[n,r]=h9(`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},tat=(e,t)=>{let n=[{label:`Cursor`,Icon:dv,value:`cursor`,kind:`brand`},{label:`Trae`,Icon:iae,value:`trae`,kind:`brand`},{label:`Kiro`,Icon:aae,value:`kiro`,kind:`brand`},{label:`VS Code`,Icon:oae,value:`vscode`,kind:`brand`},{label:`VS Code Insiders`,Icon:sae,value:`vscode-insiders`,kind:`brand`},{label:`VSCodium`,Icon:cae,value:`vscodium`,kind:`brand`},{label:`Zed`,Icon:lae,value:`zed`,kind:`brand`},{label:`Antigravity`,Icon:fae,value:`antigravity`,kind:`brand`},{label:`IntelliJ IDEA`,Icon:Jit,value:`idea`,kind:`brand`},{label:`Aqua`,Icon:Uit,value:`aqua`,kind:`brand`},{label:`CLion`,Icon:Wit,value:`clion`,kind:`brand`},{label:`DataGrip`,Icon:Git,value:`datagrip`,kind:`brand`},{label:`DataSpell`,Icon:Kit,value:`dataspell`,kind:`brand`},{label:`GoLand`,Icon:qit,value:`goland`,kind:`brand`},{label:`PhpStorm`,Icon:Yit,value:`phpstorm`,kind:`brand`},{label:`PyCharm`,Icon:Xit,value:`pycharm`,kind:`brand`},{label:`Rider`,Icon:Zit,value:`rider`,kind:`brand`},{label:`RubyMine`,Icon:Qit,value:`rubymine`,kind:`brand`},{label:`RustRover`,Icon:$it,value:`rustrover`,kind:`brand`},{label:`WebStorm`,Icon:eat,value:`webstorm`,kind:`brand`},{label:sn(e)?`Finder`:jr(e)?`Explorer`:`Files`,Icon:bh,value:`file-manager`,kind:`generic`}],r=new Set(t);return n.filter(e=>r.has(e.value))};function nat(e){return q(e===`brand`?`text-foreground opacity-100`:`text-muted-foreground`)}var rat=(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=qu(u_.openInEditor,`open in editor`),[d,f]=sve(i),p;t[0]===i?p=t[1]:(p=tat(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=Sg(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=>{Nne(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=VP,C=rr,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`,nat(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)(HP,{...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)(rr,{"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)(Ye,{"aria-hidden":`true`,className:`size-4`}),t[34]=P):P=t[34];let F;t[35]===N?F=t[36]:(F=(0,Y.jsx)(Qi,{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)(Ei,{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)(Ei,{onClick:()=>_(r),children:[(0,Y.jsx)(n,{"aria-hidden":`true`,className:nat(i)}),t,r===d&&y&&(0,Y.jsx)(Kt,{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)(lt,{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)(kr,{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}),iat=MN(Zc),aat=``,oat=Ar(Ze(!1)).pipe(Di(`project-file-query:empty`));function g9(e,t,n){return p_.optimisticFile({environmentId:e,cwd:t,relativePath:n})}function sat(e,t){return p_.listEntries({environmentId:e,input:{cwd:t}})}function cat(e,t,n){return p_.readFile({environmentId:e,input:{cwd:t,relativePath:n??aat}})}function lat(e,t,n,r){Tt.set(g9(e,t,n),{confirmedAgainst:void 0,data:{relativePath:n,contents:r,byteLength:new TextEncoder().encode(r).byteLength,truncated:!1}})}function uat(e,t,n){return Tt.get(g9(e,t,n))?.data??null}function dat(e,t,n,r){let i=g9(e,t,n),a=Tt.get(i);if(a?.data.contents!==r)return!1;let o=cat(e,t,n),s={...a,confirmedAgainst:Tt.get(o)};return Tt.set(i,s),Tt.refresh(o),co(Tt,o,{reportDefect:!1,reportFailure:!1}).then(e=>{e._tag===`Success`&&Tt.get(i)===s&&Tt.set(i,null)}),!0}function fat(e){if(e._tag!==`Failure`)return null;let t=Cr(e.cause);return t instanceof Error?t.message:`Workspace query failed.`}function pat(e,t){let n=(0,X.c)(14),r;n[0]!==t||n[1]!==e?(r=sat(e,t),n[0]=t,n[1]=e,n[2]=r):r=n[2];let i=r,a=Io(i),o=Nc(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=ja(Pt(a)),n[5]=a,n[6]=l);let u;n[7]===a?u=n[8]:(u=fat(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 mat(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?cat(e,t,n):oat,i[0]=t,i[1]=a,i[2]=e,i[3]=n,i[4]=o):o=i[4];let s=o,c=Io(s),l=Nc(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=ja(Pt(c)),i[7]=c,i[8]=f);let p=f,m=n??aat,h;i[9]!==t||i[10]!==e||i[11]!==m?(h=g9(e,t,m),i[9]=t,i[10]=e,i[11]=m,i[12]=h):h=i[12];let g=Io(h),_=(n===null?null:g)?.data??p,v;i[13]===c?v=i[14]:(v=fat(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 hat=Fc(iat),_9=[];function gat(e,t){let n=(0,X.c)(3),r=mat(e,t??``,Yl,t!==null),i=r.data&&!r.data.truncated?r.data.contents:null,a;bb0:{if(i===null){a=_9;break bb0}let e,t;if(n[0]===i?(e=n[1],t=n[2]):(e=hat(i),t=Rl(e),n[0]=i,n[1]=e,n[2]=t),t){a=_9;break bb0}a=e.value.scripts??_9}return a}function _at(e){return!!e.activeProjectName&&e.primaryEnvironmentId!==null&&e.activeThreadEnvironmentId===e.primaryEnvironmentId}var vat=(0,J.memo)(function(e){let t=(0,X.c)(45),{activeThreadEnvironmentId:n,activeThreadId:r,draftId:i,activeThreadTitle:a,activeProjectName:o,activeProjectCwd:s,openInCwd:c,activeProjectScripts:l,preferredScriptId:u,keybindings:d,availableEditors:f,rightPanelOpen:p,gitCwd:m,onNewThreadInProject:h,onRunProjectScript:g,onAddProjectScript:_,onUpdateProjectScript:v,onDeleteProjectScript:y}=e,b=R(),x=gat(n,l?s:null),S;t[0]!==o||t[1]!==n||t[2]!==b?(S=_at({activeProjectName:o,activeThreadEnvironmentId:n,primaryEnvironmentId:b}),t[0]=o,t[1]=n,t[2]=b,t[3]=S):S=t[3];let C=S,w;t[4]!==s||t[5]!==o||t[6]!==n||t[7]!==h?(w=o?(0,Y.jsxs)(`span`,{className:`inline-flex shrink-0 items-center gap-2`,children:[(0,Y.jsxs)(Sl,{children:[(0,Y.jsxs)(us,{render:(0,Y.jsx)(`button`,{type:`button`,"aria-label":`New thread in ${o}`,onClick:h,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)(vy,{environmentId:n,cwd:s??``,className:`size-3.5`}),(0,Y.jsx)(`span`,{className:`max-w-40 truncate text-sm font-medium`,children:o})]}),(0,Y.jsxs)(Ic,{side:`top`,children:[`New thread in `,o]})]}),(0,Y.jsx)(`span`,{"aria-hidden":!0,className:`text-muted-foreground/40`,children:`/`})]}):null,t[4]=s,t[5]=o,t[6]=n,t[7]=h,t[8]=w):w=t[8];let T;t[9]===a?T=t[10]:(T=(0,Y.jsxs)(Sl,{children:[(0,Y.jsx)(us,{render:(0,Y.jsx)(`h2`,{"aria-label":a,className:`min-w-0 flex-1 truncate text-sm font-medium text-foreground`,children:a})}),(0,Y.jsx)(Ic,{side:`top`,children:a})]}),t[9]=a,t[10]=T);let E;t[11]!==w||t[12]!==T?(E=(0,Y.jsxs)(`div`,{className:`flex min-w-0 flex-1 items-center gap-2 overflow-hidden sm:gap-3`,children:[w,T]}),t[11]=w,t[12]=T,t[13]=E):E=t[13];let D=p?`pr-0`:`pr-16`,O;t[14]===D?O=t[15]:(O=q(`flex shrink-0 items-center justify-end gap-2 @3xl/header-actions:gap-3`,D),t[14]=D,t[15]=O);let k;t[16]!==l||t[17]!==x||t[18]!==d||t[19]!==_||t[20]!==y||t[21]!==g||t[22]!==v||t[23]!==u?(k=l&&(0,Y.jsx)(Hit,{scripts:l,fileScripts:x,keybindings:d,preferredScriptId:u,onRunScript:g,onAddScript:_,onUpdateScript:v,onDeleteScript:y}),t[16]=l,t[17]=x,t[18]=d,t[19]=_,t[20]=y,t[21]=g,t[22]=v,t[23]=u,t[24]=k):k=t[24];let A;t[25]!==n||t[26]!==f||t[27]!==d||t[28]!==c||t[29]!==C?(A=C&&(0,Y.jsx)(rat,{environmentId:n,keybindings:d,availableEditors:f,openInCwd:c}),t[25]=n,t[26]=f,t[27]=d,t[28]=c,t[29]=C,t[30]=A):A=t[30];let j;t[31]!==o||t[32]!==n||t[33]!==r||t[34]!==i||t[35]!==m?(j=o&&(0,Y.jsx)(zit,{gitCwd:m,activeThreadRef:wa(n,r),...i?{draftId:i}:{}}),t[31]=o,t[32]=n,t[33]=r,t[34]=i,t[35]=m,t[36]=j):j=t[36];let M;t[37]!==O||t[38]!==k||t[39]!==A||t[40]!==j?(M=(0,Y.jsxs)(`div`,{"data-chat-header-actions":!0,className:O,children:[k,A,j]}),t[37]=O,t[38]=k,t[39]=A,t[40]=j,t[41]=M):M=t[41];let N;return t[42]!==M||t[43]!==E?(N=(0,Y.jsxs)(`div`,{className:`@container/header-actions flex min-w-0 flex-1 items-center gap-2 sm:gap-3`,children:[E,M]}),t[42]=M,t[43]=E,t[44]=N):N=t[44],N}),yat=(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)(Qte,{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)(us,{render:(0,Y.jsx)(VN,{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)(Ic,{side:`bottom`,children:p}),t[5]=p,t[6]=m);let h;t[7]!==f||t[8]!==m?(h=(0,Y.jsxs)(Sl,{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)(Hh,{className:`size-3.5`}),t[10]=_):_=t[10];let v;t[11]!==l||t[12]!==o||t[13]!==g?(v=(0,Y.jsx)(us,{render:(0,Y.jsx)(VN,{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)(Ic,{side:`bottom`,children:y}),t[15]=y,t[16]=b);let x;t[17]!==b||t[18]!==v?(x=(0,Y.jsxs)(Sl,{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}),bat=(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)(Lh,{className:`size-3.5`}):(0,Y.jsx)(Ph,{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)(us,{render:(0,Y.jsx)(VN,{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)(Ic,{side:`bottom`,children:i}),t[7]=i,t[8]=s);let c;return t[9]!==o||t[10]!==s?(c=(0,Y.jsxs)(Sl,{children:[o,s]}),t[9]=o,t[10]=s,t[11]=c):c=t[11],c});function xat(){let e=(0,X.c)(2),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,Y.jsx)(`header`,{className:q(`border-b border-border px-3 transition-[padding-left] duration-200 ease-linear motion-reduce:transition-none sm:px-5`,Fm?`workspace-topbar drag-region`:`workspace-topbar`,gN),children:Fm?(0,Y.jsx)(`span`,{className:`text-xs text-muted-foreground/50 wco:pr-[var(--workspace-native-controls-inset)]`,children:`No active thread`}):(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[0]=t):t=e[0];let n;return e[1]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,Y.jsx)(Tw,{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:[t,(0,Y.jsx)(TN,{className:`flex-1`,children:(0,Y.jsx)(`div`,{className:`w-full max-w-lg px-8 py-12`,children:(0,Y.jsxs)(EN,{className:`max-w-none`,children:[(0,Y.jsx)(kN,{className:`text-foreground text-xl`,children:`Pick a thread to continue`}),(0,Y.jsx)(AN,{className:`mt-2 text-sm text-muted-foreground/78`,children:`Select an existing thread or create a new one to get started.`})]})})})]})}),e[1]=n):n=e[1],n}function Sat(e){return!e||e.status===`ready`||e.status===`disabled`?null:[e.instanceId,e.status,e.auth.status,e.message??``].join(`\0`)}function Cat(e,t){let n=Sat(e);return n!==null&&n!==t}var wat=(0,J.memo)(function(e){let t=(0,X.c)(21),{onDismiss:n,status:r}=e;if(!r||r.status===`ready`||r.status===`disabled`)return null;let i;t[0]!==r.displayName||t[1]!==r.driver?(i=r.displayName?.trim()||Nt(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)(kh,{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)(Sl,{children:[(0,Y.jsx)(us,{render:(0,Y.jsx)(`div`,{className:`line-clamp-3 text-muted-foreground`,children:c})}),(0,Y.jsx)(Ic,{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)(ct,{"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}),Tat=(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)(sh,{}),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)(Kw,{children:(0,Y.jsxs)(Sl,{children:[(0,Y.jsx)(us,{render:a,children:n}),(0,Y.jsx)(Ic,{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)(qw,{children:(0,Y.jsx)(rr,{variant:`ghost`,size:`icon-xs`,"aria-label":`Dismiss error`,onClick:r,children:(0,Y.jsx)(ct,{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)(Ww,{variant:`error`,children:[i,o,s]})}),t[6]=o,t[7]=s,t[8]=c):c=t[8],c}),v9=220,Eat={opacity:0,transform:`translate3d(0, 4rem, 0)`},Dat={opacity:0,transform:`translate3d(0, 7rem, 0)`},Oat={opacity:1,transform:`none`},kat={transition:`transform ${v9}ms ease-in, opacity ${v9}ms ease-in`};function Aat(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?.()},v9))},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-[22px]`,`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?Eat:Oat,x;t[24]===b?x=t[25]:(x={...kat,...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)(jat,{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:{...kat,...c===e.id?Dat:Oat},children:(0,Y.jsx)(jat,{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 jat(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 rounded-[22px]`,n.className),t[0]=n.className,t[1]=s);let c;t[2]===n.title?c=t[3]:(c=(0,Y.jsx)(Gw,{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)(Kw,{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)(qw,{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)(rr,{size:`icon-xs`,variant:`ghost`,"aria-label":n.dismissLabel??`Dismiss warning`,disabled:r,onClick:i,children:(0,Y.jsx)(ct,{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)(Ww,{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 Mat=`p4-draft-hero-transition`,Nat=`cubic-bezier(0.4, 0, 0.2, 1)`,Pat=`p4-mobile-composer`,Fat=`p4-mobile-draft-headline`,y9=null;async function Iat(){let e=y9;if(typeof document>`u`||typeof document.getAnimations!=`function`){await e;return}let t=document.getAnimations().filter(e=>e.id===Mat);await Promise.all([e,...t.map(async e=>{try{await e.finished}catch{}})])}async function Lat(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),y9=o;try{await e.finished}catch{await a()}}catch{await a()}finally{y9===o&&(y9=null),delete t.documentElement.dataset.mobileComposerRouteTransition}}function Rat(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)(fw,{side:`right`,showCloseButton:!1,keepMounted:!0,className:QAe,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)(Pde,{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 zat=`[User attached one or more images without additional text. Respond using the conversation context and the attached image(s).]`,Bat=[],Vat=[],Hat=[],Uat={};function Wat(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:Nat});r.id=Mat,o.current=r,r.finished.catch(Gat).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 Gat(){}var Kat=(0,J.lazy)(()=>K(()=>import(`./PreviewPanel-B5dlT-n2.js`).then(e=>({default:e.PreviewPanel})),__vite__mapDeps([102,1,103]))),qat=(0,J.lazy)(()=>K(()=>import(`./DiffPanel-xkGxJH4k.js`),__vite__mapDeps([104,1,103,105]))),Jat=(0,J.lazy)(()=>K(()=>import(`./FilePreviewPanel-CmJUrNYJ.js`),__vite__mapDeps([106,1,105]))),b9=new Set,Yat=[`input`,`textarea`,`select`,`[contenteditable="true"]`,`[contenteditable="plaintext-only"]`,`[role="textbox"]`].join(`,`),Xat=[`button`,`a[href]`,`summary`,`[role="button"]`,`[role="checkbox"]`,`[role="menuitem"]`,`[role="option"]`,`[role="radio"]`,`[role="switch"]`,`[role="tab"]`].join(`,`),Zat=[`[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 Qat(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 $at(e){return!(e.defaultPrevented||e.isComposing||e.metaKey||e.ctrlKey||e.altKey||e.key.length!==1||Qat(e,Yat)||Qat(e,Xat)||document.querySelector(Zat))}function x9(e){let t=iu(Sa(e.models,e.model,e.provider),e.effort);return c(e.text,t)}var eot=120,tot=30;function not(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(rot)?.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=H6e({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}:V6e(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 rot(e){return e.role===`user`}function iot(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 aot(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 oot=(0,J.memo)(function(e){let t=(0,X.c)(123),{threadRef:n,threadId:r,visible:i,launchContext:a,focusRequestId:o,splitShortcutLabel:s,splitVerticalShortcutLabel:c,newShortcutLabel:l,closeShortcutLabel:u,keybindings:d,onAddTerminalContext:f}=e,p=qu(A_.open,`terminal open`),m=qu(A_.write,`terminal write`),h=qu(A_.close,`terminal close`),g;t[0]===n?g=t[1]:(g=e=>e.getDraftThreadByRef(n),t[0]=n,t[1]=g);let _=ea(g),v=_!==null,y;t[2]===v?y=t[3]:(y={waitForShell:v},t[2]=v,t[3]=y);let b=D_(n,y),x;t[4]!==_||t[5]!==b?(x=b?$i(b.environmentId,b.projectId):_?$i(_.environmentId,_.projectId):null,t[4]=_,t[5]=b,t[6]=x):x=t[6];let S=T_(x),C;t[7]===n?C=t[8]:(C=e=>WS(e.terminalUiStateByThreadKey,n),t[7]=n,t[8]=C);let w=qS(C),T;t[9]!==r||t[10]!==n.environmentId?(T={environmentId:n.environmentId,threadId:r},t[9]=r,t[10]=n.environmentId,t[11]=T):T=t[11];let E=j_(T),D;t[12]===n?D=t[13]:(D=e=>Ba(e.byThreadKey,n).surfaces,t[12]=n,t[13]=D);let O=ll(D),k;t[14]===O?k=t[15]:(k=new Set(O.flatMap(dot)),t[14]=O,t[15]=k);let A=k,j;if(t[16]!==E||t[17]!==A){let e;t[19]===A?e=t[20]:(e=e=>!A.has(e.target.terminalId),t[19]=A,t[20]=e),j=E.filter(e),t[16]=E,t[17]=A,t[18]=j}else j=t[18];let M=j,N;if(t[21]!==M){N=new Map;for(let e of M)N.set(e.target.terminalId,TF(e.target.terminalId,e.state.summary));t[21]=M,t[22]=N}else N=t[22];let P=N,F;if(t[23]!==M||t[24]!==a||t[25]!==S){bb0:{let e=new Map;if(!S){F=e;break bb0}for(let t of M){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:SF({project:{cwd:S.workspaceRoot},worktreePath:r})})}F=e}t[23]=M,t[24]=a,t[25]=S,t[26]=F}else F=t[26];let I=F,L;t[27]===M?L=t[28]:(L=M.map(fot),t[27]=M,t[28]=L);let R=L,z=qS(pot),B=qS(mot),V=qS(hot),H=qS(got),U=qS(_ot),W=qS(vot),G=qS(yot),ee,te;t[29]!==G||t[30]!==R||t[31]!==w.terminalIds||t[32]!==n?(ee=()=>{iot(R,w.terminalIds)||aot(R,w.terminalIds)||G(n,R)},te=[G,R,w.terminalIds,n],t[29]=G,t[30]=R,t[31]=w.terminalIds,t[32]=n,t[33]=ee,t[34]=te):(ee=t[33],te=t[34]),(0,J.useEffect)(ee,te);let[ne,K]=(0,J.useState)(0),re=b?.worktreePath??_?.worktreePath??null,ie;bb1:{if(a!==null){ie=a.worktreePath;break bb1}ie=re}let ae=ie,oe;t[35]!==ae||t[36]!==a?.cwd||t[37]!==S?(oe=()=>a?.cwd??(S?xF({project:{cwd:S.workspaceRoot},worktreePath:ae}):null),t[35]=ae,t[36]=a?.cwd,t[37]=S,t[38]=oe):oe=t[38],a?.cwd;let se;t[39]===oe?se=t[40]:(se=oe(),t[39]=oe,t[40]=se);let ce=se,le;t[41]!==ae||t[42]!==S?(le=S?SF({project:{cwd:S.workspaceRoot},worktreePath:ae}):{},t[41]=ae,t[42]=S,t[43]=le):le=t[43];let ue=le,de;t[44]===i?de=t[45]:(de=()=>{i&&K(bot)},t[44]=i,t[45]=de);let fe=de,pe;t[46]!==z||t[47]!==n?(pe=e=>{z(n,e)},t[46]=z,t[47]=n,t[48]=pe):pe=t[48];let me=pe,he;t[49]!==fe||t[50]!==ce||t[51]!==ae||t[52]!==p||t[53]!==ue||t[54]!==R||t[55]!==B||t[56]!==r||t[57]!==n?(he=()=>{if(!ce)return;let e=EF(R);B(n,e),fe(),p({environmentId:n.environmentId,input:{threadId:r,terminalId:e,cwd:ce,...ae==null?{}:{worktreePath:ae},env:ue}})},t[49]=fe,t[50]=ce,t[51]=ae,t[52]=p,t[53]=ue,t[54]=R,t[55]=B,t[56]=r,t[57]=n,t[58]=he):he=t[58];let ge=he,_e;t[59]!==fe||t[60]!==ce||t[61]!==ae||t[62]!==p||t[63]!==ue||t[64]!==R||t[65]!==V||t[66]!==r||t[67]!==n?(_e=()=>{if(!ce)return;let e=EF(R);V(n,e),fe(),p({environmentId:n.environmentId,input:{threadId:r,terminalId:e,cwd:ce,...ae==null?{}:{worktreePath:ae},env:ue}})},t[59]=fe,t[60]=ce,t[61]=ae,t[62]=p,t[63]=ue,t[64]=R,t[65]=V,t[66]=r,t[67]=n,t[68]=_e):_e=t[68];let ve=_e,ye;t[69]!==fe||t[70]!==ce||t[71]!==ae||t[72]!==p||t[73]!==ue||t[74]!==R||t[75]!==H||t[76]!==r||t[77]!==n?(ye=()=>{if(!ce)return;let e=EF(R);H(n,e),fe(),p({environmentId:n.environmentId,input:{threadId:r,terminalId:e,cwd:ce,...ae==null?{}:{worktreePath:ae},env:ue}})},t[69]=fe,t[70]=ce,t[71]=ae,t[72]=p,t[73]=ue,t[74]=R,t[75]=H,t[76]=r,t[77]=n,t[78]=ye):ye=t[78];let be=ye,xe;t[79]!==fe||t[80]!==U||t[81]!==n?(xe=e=>{U(n,e),fe()},t[79]=fe,t[80]=U,t[81]=n,t[82]=xe):xe=t[82];let Se=xe,Ce;t[83]!==fe||t[84]!==h||t[85]!==W||t[86]!==r||t[87]!==n||t[88]!==m?(Ce=e=>{let t=()=>m({environmentId:n.environmentId,input:{threadId:r,terminalId:e,data:`exit
|
|
578
578
|
`}});(async()=>{let i=await h({environmentId:n.environmentId,input:{threadId:r,terminalId:e,deleteHistory:!0}});i._tag===`Failure`&&!Hr(i)&&await t()})(),W(n,e),fe()},t[83]=fe,t[84]=h,t[85]=W,t[86]=r,t[87]=n,t[88]=m,t[89]=Ce):Ce=t[89];let we=Ce,Te;t[90]!==f||t[91]!==i?(Te=e=>{i&&f(e)},t[90]=f,t[91]=i,t[92]=Te):Te=t[92];let Ee=Te;if(!S||!w.terminalOpen||!ce)return null;let De=i?void 0:`hidden`,Oe=o+ne+ +!!i,ke=i?s:void 0,Ae=i?c:void 0,je=i?l:void 0,Me=i?u:void 0,Ne;t[93]!==Se||t[94]!==we||t[95]!==be||t[96]!==ce||t[97]!==ae||t[98]!==Ee||t[99]!==d||t[100]!==ue||t[101]!==me||t[102]!==ge||t[103]!==ve||t[104]!==Oe||t[105]!==ke||t[106]!==Ae||t[107]!==je||t[108]!==Me||t[109]!==P||t[110]!==I||t[111]!==w.activeTerminalGroupId||t[112]!==w.activeTerminalId||t[113]!==w.terminalGroups||t[114]!==w.terminalHeight||t[115]!==w.terminalIds||t[116]!==r||t[117]!==n||t[118]!==i?(Ne=(0,Y.jsx)(Y0,{threadRef:n,threadId:r,cwd:ce,worktreePath:ae,runtimeEnv:ue,visible:i,height:w.terminalHeight,terminalIds:w.terminalIds,activeTerminalId:w.activeTerminalId,terminalGroups:w.terminalGroups,activeTerminalGroupId:w.activeTerminalGroupId,focusRequestId:Oe,onSplitTerminal:ge,onSplitTerminalVertical:ve,onNewTerminal:be,splitShortcutLabel:ke,splitVerticalShortcutLabel:Ae,newShortcutLabel:je,closeShortcutLabel:Me,keybindings:d,onActiveTerminalChange:Se,onCloseTerminal:we,onHeightChange:me,onAddTerminalContext:Ee,terminalLabelsById:P,terminalLaunchLocationsById:I}),t[93]=Se,t[94]=we,t[95]=be,t[96]=ce,t[97]=ae,t[98]=Ee,t[99]=d,t[100]=ue,t[101]=me,t[102]=ge,t[103]=ve,t[104]=Oe,t[105]=ke,t[106]=Ae,t[107]=je,t[108]=Me,t[109]=P,t[110]=I,t[111]=w.activeTerminalGroupId,t[112]=w.activeTerminalId,t[113]=w.terminalGroups,t[114]=w.terminalHeight,t[115]=w.terminalIds,t[116]=r,t[117]=n,t[118]=i,t[119]=Ne):Ne=t[119];let Pe;return t[120]!==De||t[121]!==Ne?(Pe=(0,Y.jsx)(`div`,{className:De,children:Ne}),t[120]=De,t[121]=Ne,t[122]=Pe):Pe=t[122],Pe}),sot=(0,J.memo)(function(e){let t=(0,X.c)(62),{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,_;t[0]===n?_=t[1]:(_=e=>e.getDraftThreadByRef(n),t[0]=n,t[1]=_);let v=ea(_),y=v!==null,b;t[2]===y?b=t[3]:(b={waitForShell:y},t[2]=y,t[3]=b);let x=D_(n,b),S;t[4]!==v||t[5]!==x?(S=x?$i(x.environmentId,x.projectId):v?$i(v.environmentId,v.projectId):null,t[4]=v,t[5]=x,t[6]=S):S=t[6];let C=T_(S),w;t[7]!==n.environmentId||t[8]!==n.threadId?(w={environmentId:n.environmentId,threadId:n.threadId},t[7]=n.environmentId,t[8]=n.threadId,t[9]=w):w=t[9];let T=j_(w),E=x?.worktreePath??v?.worktreePath??null,D;t[10]!==T||t[11]!==r.activeTerminalId?(D=T.find(e=>e.target.terminalId===r.activeTerminalId)?.state.summary??null,t[10]=T,t[11]=r.activeTerminalId,t[12]=D):D=t[12];let O=D,k=i?.worktreePath??O?.worktreePath??E;O?.cwd,i?.cwd;let A;t[13]!==O?.cwd||t[14]!==i?.cwd||t[15]!==C||t[16]!==k?(A=i?.cwd??O?.cwd??(C?xF({project:{cwd:C.workspaceRoot},worktreePath:k}):null),t[13]=O?.cwd,t[14]=i?.cwd,t[15]=C,t[16]=k,t[17]=A):A=t[17];let j=A,M;t[18]!==C||t[19]!==k?(M=C?SF({project:{cwd:C.workspaceRoot},worktreePath:k}):{},t[18]=C,t[19]=k,t[20]=M):M=t[20];let N=M,P;if(t[21]!==T||t[22]!==r.terminalIds){P=new Map;for(let e of r.terminalIds){let t=T.find(t=>t.target.terminalId===e)?.state.summary??null;P.set(e,TF(e,t))}t[21]=T,t[22]=r.terminalIds,t[23]=P}else P=t[23];let F=P,I;t[24]!==T||t[25]!==i?.cwd||t[26]!==i?.worktreePath||t[27]!==C||t[28]!==r.terminalIds||t[29]!==E?(I=()=>{let e=new Map;for(let t of r.terminalIds){let n=T.find(e=>e.target.terminalId===t)?.state.summary??null,r=i?.worktreePath??n?.worktreePath??E,a=i?.cwd??n?.cwd??(C?xF({project:{cwd:C.workspaceRoot},worktreePath:r}):null);!a||!C||e.set(t,{cwd:a,worktreePath:r,runtimeEnv:SF({project:{cwd:C.workspaceRoot},worktreePath:r})})}return e},t[24]=T,t[25]=i?.cwd,t[26]=i?.worktreePath,t[27]=C,t[28]=r.terminalIds,t[29]=E,t[30]=I):I=t[30],i?.cwd,i?.worktreePath;let L;t[31]===I?L=t[32]:(L=I(),t[31]=I,t[32]=L);let R=L;if(!C||!j)return null;let z;t[33]===r.splitDirection?z=t[34]:(z=r.splitDirection===`vertical`?{splitDirection:`vertical`}:{},t[33]=r.splitDirection,t[34]=z);let B;t[35]!==r.id||t[36]!==r.terminalIds||t[37]!==z?(B=[{id:r.id,terminalIds:r.terminalIds,...z}],t[35]=r.id,t[36]=r.terminalIds,t[37]=z,t[38]=B):B=t[38];let V;return t[39]!==g||t[40]!==j||t[41]!==a||t[42]!==o||t[43]!==h||t[44]!==d||t[45]!==s||t[46]!==f||t[47]!==u||t[48]!==c||t[49]!==l||t[50]!==N||t[51]!==p||t[52]!==m||t[53]!==r.activeTerminalId||t[54]!==r.id||t[55]!==r.terminalIds||t[56]!==B||t[57]!==F||t[58]!==R||t[59]!==n||t[60]!==k?(V=(0,Y.jsx)(Y0,{mode:`panel`,threadRef:n,threadId:n.threadId,cwd:j,worktreePath:k,runtimeEnv:N,height:0,terminalIds:r.terminalIds,activeTerminalId:r.activeTerminalId,terminalGroups:B,activeTerminalGroupId:r.id,focusRequestId:a,onSplitTerminal:c,onSplitTerminalVertical:l,onNewTerminal:u,splitShortcutLabel:p,splitVerticalShortcutLabel:m,newShortcutLabel:h,closeShortcutLabel:g,onActiveTerminalChange:d,onCloseTerminal:f,onHeightChange:xot,onAddTerminalContext:s,terminalLabelsById:F,terminalLaunchLocationsById:R,keybindings:o}),t[39]=g,t[40]=j,t[41]=a,t[42]=o,t[43]=h,t[44]=d,t[45]=s,t[46]=f,t[47]=u,t[48]=c,t[49]=l,t[50]=N,t[51]=p,t[52]=m,t[53]=r.activeTerminalId,t[54]=r.id,t[55]=r.terminalIds,t[56]=B,t[57]=F,t[58]=R,t[59]=n,t[60]=k,t[61]=V):V=t[61],V});function cot(e){return e instanceof Error?e.message:`An error occurred.`}function lot(e){let{environmentId:t,threadId:n,routeKind:r,onDiffPanelOpen:i,reserveTitleBarControlInset:a=!0,forceExpandedMobileComposer:o=!1}=e,s=r===`draft`?e.draftId:null,c=wC(),l=(0,J.useMemo)(()=>wa(t,n),[t,n]),f=(0,J.useMemo)(()=>u(l),[l]),p=qu(p_.update,{reportFailure:!1}),m=qu(br.upsertKeybinding,{reportFailure:!1}),h=qu(A_.open,`terminal open`),g=qu(A_.write,`terminal write`),_=qu(A_.close,`terminal close`),v=qu(h_.create,{reportFailure:!1}),y=qu(h_.delete,{reportFailure:!1}),b=qu(h_.updateMetadata,{reportFailure:!1}),x=qu(q_.switchRef,{reportFailure:!1}),S=qu(h_.setRuntimeMode,{reportFailure:!1}),C=qu(h_.setInteractionMode,{reportFailure:!1}),w=qu(h_.startTurn,{reportFailure:!1}),T=qu(h_.interruptTurn,{reportFailure:!1}),E=qu(h_.respondToApproval,{reportFailure:!1}),D=qu(h_.respondToUserInput,{reportFailure:!1}),O=qu(h_.revertCheckpoint,{reportFailure:!1}),k=qu(JS.open,{reportFailure:!1}),A=qu(JS.close,`preview close`),{environments:j}=yd(),M=Nr(),N=qu(_i.retryNow,{reportFailure:!1}),P=(0,J.useMemo)(()=>new Map(j.map(e=>[e.environmentId,e])),[j]),F=r===`server`?l:e.draftId,L=ea(e=>r===`server`?e.getDraftSessionByRef(l):s?e.getDraftSession(s):null),R=D_(l,{waitForShell:L!==null}),z=ov(e=>e.markThreadVisited),B=ov(e=>e.threadLastVisitedAtById[f]),V=$ne(t),H=Io(pt),U=ea(e=>e.setStickyModelSelection),W=V.timestampFormat,G=V.autoOpenPlanSidebar,te=xm(),{resolvedTheme:ne}=HO(),K=ea(e=>e.getComposerDraft(F)?.runtimeMode??null),re=ea(e=>e.getComposerDraft(F)?.interactionMode??null),ie=ea(e=>e.getComposerDraft(F)?.activeProvider??null),ae=ea(e=>e.setPrompt),oe=ea(e=>e.addImages),se=ea(e=>e.setTerminalContexts),ce=ea(e=>e.setElementContexts),le=ea(e=>e.setPreviewAnnotations),ue=ea(e=>e.setReviewComments),de=ea(e=>e.setModelSelection),pe=ea(e=>e.setRuntimeMode),me=ea(e=>e.setInteractionMode),ge=ea(e=>e.clearComposerContent),_e=ea(e=>e.setDraftThreadContext),ve=ea(e=>e.getDraftSessionByLogicalProjectKey),ye=ea(e=>e.getDraftSession),be=ea(e=>e.setLogicalProjectDraftThreadId),xe=(0,J.useRef)(``),Se=(0,J.useRef)([]),Ce=(0,J.useRef)([]),we=(0,J.useRef)([]),Ee=(0,J.useRef)(null),De=oO()??Ee,[Oe,ke]=(0,J.useState)(!1),[Ae,Me]=(0,J.useState)(null),[Ne,Pe]=(0,J.useState)([]),Fe=(0,J.useRef)(Ne);Fe.current=Ne;let[Ie,Le]=(0,J.useState)({}),[Re,ze]=(0,J.useState)({}),[Be,Ve]=(0,J.useState)(!1),[He,Ue]=(0,J.useState)(!1),[We,Ge]=(0,J.useState)(null),[Ke,qe]=(0,J.useState)([]),[Je,Xe]=(0,J.useState)([]),[Ze,Qe]=(0,J.useState)({}),[$e,et]=(0,J.useState)({}),tt=_w(ZAe),nt=(0,J.useRef)(null),rt=(0,J.useRef)(!1),[it,at]=(0,J.useState)(0),[ot,st]=(0,J.useState)(null),[ct,lt]=(0,J.useState)(null),[ut,ft]=(0,J.useState)({}),[mt,ht]=(0,J.useState)(null),[gt,_t]=(0,J.useState)(),[vt,yt]=(0,J.useState)({}),[bt,xt]=Co(w6e,{},T6e),St=(0,J.useRef)(null),[Ct,wt]=(0,J.useState)(null),[Tt,Et]=(0,J.useState)(0),Dt=(0,J.useRef)(!0),Ot=(0,J.useRef)({}),kt=(0,J.useRef)({}),At=(0,J.useRef)(!1),jt=(0,J.useRef)({});(0,J.useLayoutEffect)(()=>{if(!Ct)return;let e=()=>{let e=Math.ceil(Ct.getBoundingClientRect().height);e<=0||Et(t=>t===e?t:e)};if(e(),typeof ResizeObserver>`u`)return;let t=new ResizeObserver(e);return t.observe(Ct),()=>t.disconnect()},[Ct]);let Mt=qS(e=>WS(e.terminalUiStateByThreadKey,l)),Nt=qS(kc(e=>Object.entries(e.terminalUiStateByThreadKey).flatMap(([e,t])=>t.terminalOpen?[e]:[]))),Pt=qS(e=>e.setTerminalOpen),Ft=qS(e=>e.ensureTerminal),It=qS(e=>e.splitTerminal),Lt=qS(e=>e.splitTerminalVertical),Rt=qS(e=>e.newTerminal),zt=qS(e=>e.setActiveTerminal),Bt=qS(e=>e.closeTerminal),Vt=S_(),Ht=(0,J.useMemo)(()=>Vt.map(u),[Vt]),Ut=ea(e=>e.draftThreadsByThreadKey),Wt=(0,J.useMemo)(()=>Object.values(Ut).map(e=>u(wa(e.environmentId,e.threadId))),[Ut]),[Gt,Kt]=(0,J.useState)([]),qt=(0,J.useMemo)(()=>Gt.flatMap(e=>{let t=da(e);return t?[{key:e,threadRef:t}]:[]}),[Gt]),Jt=T_(L?$i(L.environmentId,L.projectId):null),Yt=R?null:(s?Ie[s]?.message:null)??null,Xt=Re[f]?.message??null;(0,J.useEffect)(()=>{if(!R||!s)return;let e=Ie[s];e!==void 0&&(Le(e=>{if(e[s]===void 0)return e;let t={...e};return delete t[s],t}),ze(t=>{let n=t[f];return n!==void 0&&(n.at>e.at||n.message===e.message)?t:{...t,[f]:e}}))},[s,Ie,f,R]);let Zt=(0,J.useMemo)(()=>L?O6e(n,L,Jt?.defaultModelSelection??Dr):void 0,[L,Jt?.defaultModelSelection,n]),Qt=R!==null,$t=Qt?R:Zt,en=Qt?Xt??R?.session?.lastError??null:Yt,tn=K??$t?.runtimeMode??`full-access`,nn=re??$t?.interactionMode??`default`,rn=!Qt&&Zt!==void 0,an=rn,on=$t?.id??null,sn=M_({environmentId:$t?.environmentId??null,threadId:on}),cn=j_({environmentId:$t?.environmentId??null,threadId:on}),un=(0,J.useMemo)(()=>on===null?[]:cn.filter(e=>e.target.threadId===on),[on,cn]),dn=(0,J.useMemo)(()=>un.map(e=>e.target.terminalId),[un]),fn=(0,J.useMemo)(()=>[...new Set([...dn,...Mt.terminalIds])],[dn,Mt.terminalIds]),pn=(0,J.useMemo)(()=>{let e=new Map;for(let t of un)e.set(t.target.terminalId,TF(t.target.terminalId,t.state.summary));return e},[un]),mn=(0,J.useMemo)(()=>$t?wa($t.environmentId,$t.id):null,[$t]),hn=mn?u(mn):null,[gn,_n]=(0,J.useState)({threadKey:hn,messageId:null});gn.threadKey!==hn&&_n({threadKey:hn,messageId:null});let vn=gn.messageId,yn=ll(e=>ql(e.byThreadKey,mn)),bn=yn===`diff`,xn=ll(e=>Ba(e.byThreadKey,mn)),Sn=ll(e=>Is(e.byThreadKey,mn)),Cn=Sn?.kind===`file`?Sn:null,wn=cC(mn),Tn=aI(e=>oI(e.byThreadKey,mn)),En=(0,J.useMemo)(()=>new Set(xn.surfaces.flatMap(e=>e.kind===`terminal`?e.terminalIds:[])),[xn.surfaces]),Dn=yn===`preview`&&pC(),On=xn.isOpen,An=On&&!tt,jn=An&&We===f,Mn=On&&!tt;(0,J.useEffect)(()=>{mn&&ll.getState().reconcileBrowserSurfaces(mn,Object.keys(wn.sessions))},[wn.sessions,mn]),(0,J.useEffect)(()=>{if(!mn||!Tn)return;let e=!!wn.sessions[Tn.tabId],t=Dn&&Sn?.kind===`preview`&&Sn.resourceId===Tn.tabId;(!e||t)&&aI.getState().close(mn)},[Tn,wn.sessions,Sn,mn,Dn]);let Nn=yn===`plan`,Pn=(0,J.useMemo)(()=>{let e=new Set([...Ht,...Wt]);return Nt.filter(t=>e.has(t))},[Wt,Nt,Ht]),Fn=$t?.latestTurn??null,In=(0,J.useMemo)(()=>{let e=Fn?.sourceProposedPlan?.threadId;return!$t||!e||e===$t.id?null:wa($t.environmentId,e)},[Fn?.sourceProposedPlan?.threadId,$t]),Ln=Lre(In),Rn=(0,J.useMemo)(()=>{if(!$t)return[];let e=[{id:$t.id,proposedPlans:$t.proposedPlans}];return In&&e.push({id:In.threadId,proposedPlans:Ln}),e},[$t,In,Ln]);(0,J.useEffect)(()=>{Kt(e=>{let t=A6e({currentThreadIds:e,openThreadIds:Pn,activeThreadId:hn,activeThreadTerminalOpen:!!(hn&&Mt.terminalOpen),maxHiddenThreadCount:10});return e.length===t.length&&e.every((e,n)=>e===t[n])?e:t})},[hn,Pn,Mt.terminalOpen]);let zn=Ev(Fn,$t?.session??null),Bn=$t?$i($t.environmentId,$t.projectId):null,Vn=T_(Bn),Un=(0,J.useCallback)(()=>{E6e(Bn,c)},[Bn,c]),Wn=od($t?d_.stateAtom($t.environmentId):null).data?.snapshot._tag===`Some`,Gn=Vn?`${Vn.environmentId}:${Vn.workspaceRoot}`:null,[Kn,qn]=(0,J.useState)(()=>new Map),Jn=Gn?Kn.get(Gn)??b9:b9,Yn=(0,J.useCallback)((e,t)=>{Gn&&qn(n=>{let r=n.get(Gn)??b9,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(Gn):o.set(Gn,a),o})},[Gn]),Xn=(0,J.useMemo)(()=>dje(Vn?.scripts),[Vn?.scripts]);(0,J.useEffect)(()=>{!mn||!Wn||ll.getState().reconcileFileSurfaces(mn,Vn!==null)},[Wn,Vn,mn]);let Zn=C_(),Qn=M?.environmentId??null,$n=$t==null?null:P.get($t.environmentId)??null,er=$n?.connection.phase??`available`,tr=$n!==null&&er!==`connected`,nr=$n?.label??null,ir=(0,J.useMemo)(()=>!tr||!nr||!$n?null:{environmentId:$n.environmentId,label:nr,connection:$n.connection},[$n,tr,nr]),ar=(0,J.useCallback)(async e=>{let t=await N(e);if(t._tag===`Failure`&&!Hr(t)){let e=fe(t);uS.add(lS({type:`error`,title:`Could not reconnect environment`,description:e instanceof Error?e.message:`Failed to reconnect.`}))}},[N]),or=_C(V),sr=(0,J.useMemo)(()=>{if(!Vn)return[];let e=xC(Vn,or),t=Zn.filter(t=>xC(t,or)===e),n=new Set,r=[];for(let e of t){if(n.has(e.environmentId))continue;n.add(e.environmentId);let t=e.environmentId===Qn,i=P.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},[Vn,Zn,or,Qn,P]),cr=sr.length>1,lr=(0,J.useCallback)(e=>{an&&st({initialReference:e??null,key:Date.now()})},[an]),ur=(0,J.useCallback)(()=>{st(null)},[]),dr=(0,J.useCallback)(async e=>{if(!Vn)throw Error(`No active project is available for this pull request.`);let t=$i(Vn.environmentId,Vn.id),n=xC(Vn,or),i=ve(n);if(i)return _e(i.draftId,e),be(n,t,i.draftId,{threadId:i.threadId,...e}),(r!==`draft`||s!==i.draftId)&&await te({to:`/draft/$draftId`,params:su(i.draftId)}),i.threadId;let a=r===`draft`&&s?ye(s):null;if(!Qt&&a?.logicalProjectKey===n&&s)return _e(s,e),be(n,t,s,{threadId:a.threadId,createdAt:a.createdAt,runtimeMode:a.runtimeMode,interactionMode:a.interactionMode,...e}),a.threadId;let o=nf(),c=dt();return be(n,t,o,{threadId:c,createdAt:new Date().toISOString(),runtimeMode:gc,interactionMode:Hn,...e}),await te({to:`/draft/$draftId`,params:su(o)}),c},[Vn,s,ye,ve,Qt,te,or,r,_e,be]),fr=(0,J.useCallback)(async e=>{await dr({branch:e.branch,worktreePath:e.worktreePath,envMode:e.worktreePath?`worktree`:`local`})},[dr]);(0,J.useEffect)(()=>{if(!R?.id)return;let e=Date.parse(R.updatedAt);if(Number.isNaN(e))return;let t=B?Date.parse(B):NaN;!Number.isNaN(t)&&t>=e||z(u(wa(R.environmentId,R.id)),R.updatedAt)},[B,z,R?.environmentId,R?.id,R?.updatedAt]);let pr=ie??null,mr=$t?.modelSelection.instanceId??Vn?.defaultModelSelection?.instanceId??null,gr=z6e({thread:$t,selectedProvider:pr,threadProvider:mr}),_r=$t?$n?.serverConfig??null:M?.serverConfig??null,vr=GP(_r),yr=vr&&$t?ake($t.environmentId,vr):null,[xr,Sr]=(0,J.useState)(null),Cr=yr===xr||ske(yr),wr=vr!==null&&yr!==null&&!Cr,Tr=j.length>1&&$t?`${P.get($t.environmentId)?.label??_r?.environment.label??$t.environmentId} server`:`server`,Er=vr&&$t?$t.environmentId:null,Or=KP(_r),kr=qP(_r),Ar=(0,J.useMemo)(()=>{let e=[];if(ir){let t=ir.connection,n=t.phase===`connecting`||t.phase===`reconnecting`;e.push({id:`environment-unavailable:${ir.environmentId}`,variant:t.phase===`error`?`error`:`warning`,icon:(0,Y.jsx)(one,{}),title:`${ir.label}: ${_d(t)}`,description:t.error??`Reconnect this environment before sending messages or running actions.`,actions:(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(rr,{size:`xs`,disabled:n,onClick:()=>void ar(ir.environmentId),children:n?`Reconnecting...`:`Reconnect`}),(0,Y.jsx)(rr,{size:`xs`,variant:`outline`,onClick:()=>void te({to:`/settings/connections`}),children:`Connections`})]})})}return wr&&vr&&yr&&Er&&e.push({id:`version-mismatch:${yr}`,variant:`warning`,icon:(0,Y.jsx)(sg,{}),title:`Client and server versions differ`,description:(0,Y.jsxs)(Y.Fragment,{children:[`Client `,vr.clientVersion,` is connected to `,Tr,` `,vr.serverVersion,`.`,` `,ike(Or,Tr,{serviceSupervised:kr})]}),actions:Or===`desktop-managed`?void 0:(0,Y.jsx)(nF,{environmentId:Er,serverLabel:Tr,selfUpdate:Or,serviceSupervised:kr,targetVersion:vr.clientVersion}),dismissLabel:`Dismiss version mismatch warning`,onDismiss:()=>{cke(yr),Sr(yr)}}),e},[ir,ar,te,Sr,wr,vr,yr,Er,Or,kr,Tr]),jr=_r?.providers??Vat,Mr=hr(jr,pr??mr),Pr=gr??Mr,Fr=roe($t?.session??null),Ir=$t?.activities??Bat,Lr=(0,J.useMemo)(()=>Dae(Ir),[Ir]),Rr=(0,J.useMemo)(()=>xae(Ir),[Ir]),zr=(0,J.useMemo)(()=>Cae(Ir),[Ir]),Vr=zr[0]??null,Ur=(0,J.useMemo)(()=>Vr?Ze[Vr.requestId]??Uat:Uat,[Vr,Ze]),Wr=Vr?$e[Vr.requestId]??0:0,Gr=(0,J.useMemo)(()=>Vr?qF(Vr.questions,Ur,Wr):null,[Ur,Wr,Vr]),Kr=(0,J.useMemo)(()=>Vr?KF(Vr.questions,Ur):null,[Ur,Vr]),qr=Vr?Je.includes(Vr.requestId):!1,Jr=(0,J.useMemo)(()=>zn?kv($t?.proposedPlans??[],Fn?.turnId??null):null,[Fn?.turnId,$t?.proposedPlans,zn]),Yr=(0,J.useMemo)(()=>Tae({threads:Rn,latestTurn:Fn,latestTurnSettled:zn,threadId:$t?.id??null}),[Fn,$t?.id,zn,Rn]),Xr=(0,J.useMemo)(()=>wae(Ir,Fn?.turnId??void 0),[Fn?.turnId,Ir]),Zr=Yr||nn===`plan`?`Plan`:`Tasks`,$r=zr.length===0&&nn===`plan`&&zn&&Eae(Jr),ei=Rr[0]??null,{beginLocalDispatch:ti,resetLocalDispatch:ni,localDispatchStartedAt:ri,isPreparingWorktree:ii,isSendBusy:ai}=not({activeThread:$t,activeLatestTurn:Fn,phase:Fr,activePendingApproval:ei?.requestId??null,activePendingUserInput:Vr?.requestId??null,threadError:en}),oi=Fr===`running`||ai||Be||He,si=bae(Fn,$t?.session??null,ri);(0,J.useEffect)(()=>{Ot.current=ut},[ut]);let ci=(0,J.useCallback)((e,t)=>{delete kt.current[e];let n=t??Ot.current[e]??[];ft(t=>{if(!(e in t))return t;let n={...t};return delete n[e],Ot.current=n,n});for(let e of n)t2(e)},[]),li=(0,J.useCallback)(()=>{kt.current={};for(let e of Object.values(Ot.current))for(let t of e)t2(t);Ot.current={},ft({})},[]);(0,J.useEffect)(()=>()=>{li();for(let e of Fe.current)n2(e)},[li]);let ui=(0,J.useCallback)((e,t)=>{if(t.length===0)return;let n=Ot.current[e]??[],r=new Set(t);for(let e of n)r.has(e)||t2(e);ft(n=>{let r={...n,[e]:t};return Ot.current=r,r})},[]),di=$t?.messages,fi=(0,J.useMemo)(()=>{let e=new Set;for(let t of di??[])for(let n of t.attachments??[])e.add(n.id);return[...e]},[di]),pi=Ioe(t,(0,J.useMemo)(()=>fi.map(e=>({_tag:`attachment`,attachmentId:e})),[fi])),gi=(0,J.useMemo)(()=>new Map(fi.flatMap((e,t)=>{let n=pi[t];return n?[[e,n]]:[]})),[fi,pi]),vi=(0,J.useMemo)(()=>di?di.map(e=>!e.attachments||e.attachments.length===0?e:{...e,attachments:e.attachments.map(e=>{let t=gi.get(e.id);return t?{...e,previewUrl:t}:e})}):[],[gi,di]);(0,J.useEffect)(()=>{if(typeof Image>`u`||vi.length===0)return;let e=[],t=new Map(vi.filter(e=>e.role===`user`).map(e=>[String(e.id),e]));for(let[n,r]of Object.entries(ut)){if(kt.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;kt.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||ci(n,r)}).catch(()=>{o||delete kt.current[n]}),e.push(()=>{o=!0,delete kt.current[n];for(let e of s)e.src=``})}return()=>{for(let t of e)t()}},[ut,ci,vi]);let yi=(0,J.useMemo)(()=>{let e=vi,t=Object.keys(ut).length===0?e:e.map(e=>{if(e.role!==`user`||!e.attachments||e.attachments.length===0)return e;let t=ut[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(Ne.length===0)return t;let n=new Set(t.map(e=>e.id)),r=Ne.filter(e=>!n.has(e.id));return r.length===0?t:[...t,...r]},[ut,vi,Ne]),bi=(0,J.useMemo)(()=>toe(yi,$t?.proposedPlans??[],Lr),[$t?.proposedPlans,yi,Lr]),[xi,Si]=(0,J.useState)(null),Ci=hn!==null&&xi===hn,wi=rn&&bi.length===0&&!oi&&!Ci,[Ti,Ei,Di]=Wat(wi),{turnDiffSummaries:Oi,inferredCheckpointTurnCountByTurnId:ki}=eI($t),Ai=(0,J.useMemo)(()=>{let e=new Map;for(let t of Oi)t.assistantMessageId&&e.set(t.assistantMessageId,t);return e},[Oi]),ji=(0,J.useMemo)(()=>{let e=new Map;for(let t=0;t<bi.length;t+=1){let n=bi[t];if(!(!n||n.kind!==`message`||n.message.role!==`user`))for(let r=t+1;r<bi.length;r+=1){let t=bi[r];if(!t||t.kind!==`message`)continue;if(t.message.role===`user`)break;let i=Ai.get(t.message.id);if(!i)continue;let a=i.checkpointTurnCount??ki[i.turnId];if(typeof a!=`number`)break;e.set(n.message.id,Math.max(0,a-1));break}}return e},[ki,bi,Ai]),Ni=Vn?xF({project:{cwd:Vn.workspaceRoot},worktreePath:$t?.worktreePath??null}):null,Pi=$t?.worktreePath??Ni,Fi=od(Pi===null?null:q_.status({environmentId:t,input:{cwd:Pi}})),Ii=Io(ln),Li=Io(lc),Ri=jr.find(e=>e.instanceId===pr)?.instanceId??null??$t?.session?.providerInstanceId??$t?.modelSelection.instanceId??Vn?.defaultModelSelection?.instanceId??null,zi=(0,J.useMemo)(()=>{if(Ri)return jr.find(e=>e.instanceId===Ri)??null;let e=Mi(Pr);return jr.find(t=>t.instanceId===e)??null},[Ri,jr,Pr]),Bi=Sat(zi),[Vi,Hi]=(0,J.useState)(null);(0,J.useEffect)(()=>{Bi===null&&Vi!==null&&Hi(null)},[Vi,Bi]);let Ui=Cat(zi,Vi)?zi:null,Wi=!!en||Ui!==null,Gi=Vn?.workspaceRoot??null,Ki=$t?.worktreePath??null,qi=Ki??Gi??void 0,Ji=ct?.threadId===on?ct:null,Yi=Fi.data?.isRepo??!0,Xi=Yi&&Vn!==null,Zi=Fi.data?.hasWorkingTreeChanges===!0?`unstaged`:`branch`,Qi=Fi.data?`resolved`:`pending`,ta=(0,J.useMemo)(()=>({context:{terminalFocus:!0,terminalOpen:!!Mt.terminalOpen}}),[Mt.terminalOpen]),na=(0,J.useMemo)(()=>Sg(Ii,`terminal.split`,ta),[Ii,ta]),ra=(0,J.useMemo)(()=>Sg(Ii,`terminal.splitVertical`,ta),[Ii,ta]),ia=(0,J.useMemo)(()=>Sg(Ii,`terminal.new`,ta),[Ii,ta]),aa=(0,J.useMemo)(()=>Sg(Ii,`terminal.close`,ta),[Ii,ta]),oa=(0,J.useCallback)(()=>{Qt&&(bn||i?.(),mn&&ll.getState().toggle(mn,`diff`))},[mn,bn,Qt,i]),sa=!!($t&&($t.messages.length>0||$t.session!==null&&$t.session.status!==`stopped`)),ca=(0,J.useCallback)(e=>{if(sa||!s)return;let t=sr.find(t=>t.environmentId===e);t&&_e(s,{projectRef:$i(t.environmentId,t.projectId)})},[s,sa,sr,_e]),la=((Mt.terminalGroups.find(e=>e.id===Mt.activeTerminalGroupId)??Mt.terminalGroups.find(e=>e.terminalIds.includes(Mt.activeTerminalId))??null)?.terminalIds.length??0)>=4,ua=(0,J.useCallback)((e,t)=>{if(!e)return;let n=zne(t),r={message:n,at:Date.now()};if(R&&e===l.threadId&&R.environmentId===l.environmentId&&R.id===e){ze(e=>(e[f]?.message??null)===n?e:{...e,[f]:r});return}let i=s??e;Le(e=>(e[i]?.message??null)===n?e:{...e,[i]:r})},[s,f,l,R]),fa=(0,J.useCallback)(()=>{De.current?.focusAtEnd()},[De]),pa=(0,J.useCallback)(()=>{window.requestAnimationFrame(()=>{fa()})},[fa]),ma=(0,J.useCallback)(e=>{De.current?.addTerminalContext(e)},[De]),ha=(0,J.useCallback)(e=>{mn&&Pt(mn,e)},[mn,Pt]),ga=(0,J.useCallback)(()=>{if(!mn)return;let e=!Mt.terminalOpen;if(e&&Mt.terminalIds.length===0){if(!on||!Vn)return;let e=Ni??Vn.workspaceRoot;if(!e)return;let n=EF([...fn,...En]);Ft(mn,n,{open:!0}),h({environmentId:t,input:{threadId:on,terminalId:n,cwd:e,...Ki==null?{}:{worktreePath:Ki},env:SF({project:{cwd:Vn.workspaceRoot},worktreePath:Ki})}});return}ha(e)},[fn,Vn,on,mn,Ki,t,Ni,h,En,ha,Ft,Mt.terminalIds.length,Mt.terminalOpen]),_a=(0,J.useCallback)((e=`horizontal`)=>{if(!mn||la||!on||!Vn)return;let n=Ni??Vn.workspaceRoot;if(!n)return;let r=EF(fn);e===`vertical`?Lt(mn,r):It(mn,r),at(e=>e+1),h({environmentId:t,input:{threadId:on,terminalId:r,cwd:n,...Ki==null?{}:{worktreePath:Ki},env:SF({project:{cwd:Vn.workspaceRoot},worktreePath:Ki})}})},[Vn,fn,on,mn,h,Ki,t,Ni,la,It,Lt]),va=(0,J.useCallback)(()=>{if(!mn||!on||!Vn)return;let e=Ni??Vn.workspaceRoot;if(!e)return;let n=EF(fn);Rt(mn,n),at(e=>e+1),h({environmentId:t,input:{threadId:on,terminalId:n,cwd:e,...Ki==null?{}:{worktreePath:Ki},env:SF({project:{cwd:Vn.workspaceRoot},worktreePath:Ki})}})},[Vn,fn,on,mn,h,Ki,t,Ni,Rt]),ya=(0,J.useCallback)(e=>{if(!on||!mn)return;let n=()=>g({environmentId:t,input:{threadId:on,terminalId:e,data:`exit
|
|
579
579
|
`}});(async()=>{let r=await _({environmentId:t,input:{threadId:on,terminalId:e,deleteHistory:!0}});r._tag===`Failure`&&!Hr(r)&&await n()})(),Bt(mn,e),at(e=>e+1)},[on,mn,_,t,Bt,g]),ba=(0,J.useCallback)(async(e,n)=>{if(!on||!Vn||!$t)return;n?.rememberAsLastInvoked!==!1&&xt(t=>t[Vn.id]===e.id?t:{...t,[Vn.id]:e.id});let r=n?.cwd??Ni??Vn.workspaceRoot,i=Mt.activeTerminalId||fn[0]||`term-1`,a=sn.includes(i),o=!!n?.preferNewTerminal||a,s=n?.worktreePath??$t.worktreePath??null;if(lt({threadId:on,cwd:r,worktreePath:s}),ha(!0),!mn)return;at(e=>e+1);let c=SF({project:{cwd:Vn.workspaceRoot},worktreePath:s,...n?.env?{extraEnv:n.env}:{}}),l=o?EF(fn):i,u=o?{threadId:on,terminalId:l,cwd:r,...s===null?{}:{worktreePath:s},env:c,cols:eot,rows:tot}:{threadId:on,terminalId:l,cwd:r,...s===null?{}:{worktreePath:s},env:c};o?Rt(mn,l):zt(mn,l);let d=await h({environmentId:t,input:u});if(d._tag===`Failure`){if(!Hr(d)){let t=fe(d);ua(on,t instanceof Error?t.message:`Failed to run script "${e.name}".`)}return}let f=await g({environmentId:t,input:{threadId:on,terminalId:l,data:`${e.command}\r`}});if(f._tag===`Failure`&&!Hr(f)){let t=fe(f);ua(on,t instanceof Error?t.message:`Failed to run script "${e.name}".`)}},[Vn,$t,on,mn,Ni,ha,ua,Rt,zt,xt,t,h,fn,sn,Mt.activeTerminalId,g]),xa=(0,J.useCallback)(async e=>{let n=ee(await p({environmentId:t,input:{projectId:e.projectId,scripts:e.nextScripts}}),()=>void 0);if(n._tag===`Failure`)return n;let r=X0({keybinding:e.keybinding,command:e.keybindingCommand});return Fm&&r?ee(await m({environmentId:t,input:r}),()=>void 0):n},[t,p,m]),Sa=(0,J.useCallback)(async e=>{if(!Vn)return Wl(void 0);let t=$0(e.name,Vn.scripts.map(e=>e.id)),n=Z0(t,e),r=e.runOnWorktreeCreate?[...Vn.scripts.map(e=>e.runOnWorktreeCreate?{...e,runOnWorktreeCreate:!1}:e),n]:[...Vn.scripts,n];return xa({projectId:Vn.id,projectCwd:Vn.workspaceRoot,previousScripts:Vn.scripts,nextScripts:r,keybinding:e.keybinding,keybindingCommand:Q0(t)})},[Vn,xa]),Ca=(0,J.useCallback)(async(e,t)=>{if(!Vn)return Wl(void 0);let n=Vn.scripts.find(t=>t.id===e);if(!n)return mi(je(Error(`Script not found.`)));let r=Z0(n.id,t),i=Vn.scripts.map(n=>n.id===e?r:t.runOnWorktreeCreate?{...n,runOnWorktreeCreate:!1}:n);return xa({projectId:Vn.id,projectCwd:Vn.workspaceRoot,previousScripts:Vn.scripts,nextScripts:i,keybinding:t.keybinding,keybindingCommand:Q0(e)})},[Vn,xa]),Ta=(0,J.useCallback)(async e=>{if(!Vn)return Wl(void 0);let t=Vn.scripts.filter(t=>t.id!==e),n=Vn.scripts.find(t=>t.id===e)?.name,r=await xa({projectId:Vn.id,projectCwd:Vn.workspaceRoot,previousScripts:Vn.scripts,nextScripts:t,keybinding:null,keybindingCommand:Q0(e)});if(r._tag===`Success`)uS.add({type:`success`,title:`Deleted action "${n??`Unknown`}"`});else if(!Hr(r)){let e=fe(r);uS.add(lS({type:`error`,title:`Could not delete action`,description:e instanceof Error?e.message:`An unexpected error occurred.`}))}return r},[Vn,xa]),Ea=(0,J.useCallback)(e=>{e!==tn&&(pe(F,e),rn&&_e(F,{runtimeMode:e}),pa())},[rn,tn,pa,F,pe,_e]),Da=(0,J.useCallback)(e=>{e!==nn&&(me(F,e),rn&&_e(F,{interactionMode:e}),pa())},[nn,rn,pa,F,me,_e]),Oa=(0,J.useCallback)(()=>{Da(nn===`plan`?`default`:`plan`)},[Da,nn]),ka=(0,J.useCallback)(()=>{nt.current=Xr?.turnId??Yr?.turnId??`__dismissed__`},[Xr?.turnId,Yr?.turnId]),Aa=(0,J.useCallback)(()=>{mn&&(Nn?ka():nt.current=null,ll.getState().toggle(mn,`plan`))},[mn,ka,Nn]),ja=(0,J.useCallback)(()=>{mn&&(Ge(null),ll.getState().close(mn),ka())},[mn,ka]),Ma=(0,J.useCallback)(()=>{mn&&$Ae({threadRef:mn,openPreview:k})},[mn,k]),Na=(0,J.useCallback)(()=>{!mn||!Qt||!Yi||(Nn&&ka(),ll.getState().open(mn,`diff`),i?.())},[mn,ka,Yi,Qt,i,Nn]),Fa=(0,J.useCallback)(()=>{!mn||!Vn||ll.getState().open(mn,`files`)},[Vn,mn]),Ia=(0,J.useCallback)(e=>{!mn||!Vn||ll.getState().openFile(mn,e)},[Vn,mn]),La=(0,J.useCallback)(()=>{if(!mn||!pC())return;if(Dn){ll.getState().close(mn);return}let e=wn.activeTabId;e?ll.getState().openBrowser(mn,e):Ma()},[wn.activeTabId,mn,Ma,Dn]),Ra=(0,J.useCallback)(()=>{mn&&(Ge(null),ll.getState().close(mn))},[mn]),za=(0,J.useCallback)(()=>{if(!mn||!on||!Vn)return;let e=Ni??Vn.workspaceRoot,t=EF([...fn,...En]);ll.getState().openTerminal(mn,t),at(e=>e+1),h({environmentId:mn.environmentId,input:{threadId:on,terminalId:t,cwd:e,...Ki==null?{}:{worktreePath:Ki},env:SF({project:{cwd:Vn.workspaceRoot},worktreePath:Ki})}})},[fn,Vn,on,mn,Ki,Ni,h,En]),Va=(0,J.useCallback)((e=`horizontal`)=>{if(!mn||!on||!Vn||Sn?.kind!==`terminal`||Sn.terminalIds.length>=4)return;let t=EF([...fn,...En]),n=Ni??Vn.workspaceRoot;ll.getState().splitTerminal(mn,Sn.id,t,e),at(e=>e+1),h({environmentId:mn.environmentId,input:{threadId:on,terminalId:t,cwd:n,...Ki==null?{}:{worktreePath:Ki},env:SF({project:{cwd:Vn.workspaceRoot},worktreePath:Ki})}})},[fn,Vn,Sn,on,mn,Ki,Ni,h,En]),Ha=(0,J.useCallback)(()=>{Va(`vertical`)},[Va]),Ua=(0,J.useCallback)(e=>{!mn||Sn?.kind!==`terminal`||(ll.getState().activateTerminal(mn,Sn.id,e),at(e=>e+1))},[Sn,mn]),Wa=(0,J.useCallback)(e=>{!mn||Sn?.kind!==`terminal`||(_({environmentId:mn.environmentId,input:{threadId:mn.threadId,terminalId:e,deleteHistory:!0}}),Bt(mn,e),ll.getState().closeTerminal(mn,Sn.id,e),at(e=>e+1))},[Sn,mn,_,Bt]),Ga=(0,J.useCallback)(e=>{mn&&(e.kind===`plan`?nt.current=null:Nn&&ka(),ll.getState().activateSurface(mn,e.id),e.kind===`preview`&&e.resourceId&&eue(mn,e.resourceId),e.kind===`terminal`&&at(e=>e+1),e.kind===`diff`&&!bn&&i?.())},[mn,bn,ka,i,Nn]),Ka=(0,J.useCallback)(()=>{if(mn){if(On){Nn?ja():Ra();return}ll.getState().toggleVisibility(mn)}},[mn,ja,Ra,Nn,On]),qa=(0,J.useCallback)(()=>{An&&Ge(e=>e===f?null:f)},[An,f]),Ja=(0,J.useCallback)(e=>{if(mn){e.some(e=>e.kind===`plan`)&&ka();for(let t of e)if(t.kind===`preview`&&t.resourceId&&eje({closePreview:A,snapshot:wn.sessions[t.resourceId]??null,tabId:t.resourceId,threadRef:mn}),t.kind===`terminal`)for(let e of t.terminalIds)Bt(mn,e),_({environmentId:mn.environmentId,input:{threadId:mn.threadId,terminalId:e,deleteHistory:!0}})}},[mn,wn.sessions,A,_,ka,Bt]),Ya=(0,J.useCallback)(()=>{if(!mn)return;let e=Is(ll.getState().byThreadKey,mn);e?.kind===`preview`&&e.resourceId&&eue(mn,e.resourceId)},[mn]),Xa=(0,J.useCallback)(e=>{mn&&(Ja([e]),ll.getState().closeSurface(mn,e.id),Ya())},[mn,Ja,Ya]),Za=(0,J.useCallback)(e=>{if(!mn)return;let t=xn.surfaces.filter(t=>t.id!==e.id);Ja(t),ll.getState().closeOtherSurfaces(mn,e.id),Ya()},[mn,Ja,xn.surfaces,Ya]),Qa=(0,J.useCallback)(e=>{if(!mn)return;let t=xn.surfaces.findIndex(t=>t.id===e.id);if(t<0)return;let n=xn.surfaces.slice(t+1);Ja(n),ll.getState().closeSurfacesToRight(mn,e.id),Ya()},[mn,Ja,xn.surfaces,Ya]),$a=(0,J.useCallback)(()=>{mn&&(Ja(xn.surfaces),ll.getState().closeAllSurfaces(mn))},[mn,Ja,xn.surfaces]),eo=(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)(()=>wN(e=>{e===`toggle-panel`&&La()}),[La]);let to=(0,J.useCallback)(async e=>{if(!R)return Wl(void 0);let n=Wl(void 0),r=D6e({currentModelSelection:R.modelSelection,...e.modelSelection?{nextModelSelection:e.modelSelection}:{},currentBranch:R.branch,...e.branch?{nextBranch:e.branch}:{}});return r&&(n=ee(await b({environmentId:t,input:{threadId:e.threadId,...r}}),()=>void 0),n._tag===`Failure`)||e.runtimeMode!==R.runtimeMode&&(n=ee(await S({environmentId:t,input:{threadId:e.threadId,runtimeMode:e.runtimeMode,createdAt:e.createdAt}}),()=>void 0),n._tag===`Failure`)||e.interactionMode!==R.interactionMode&&(n=ee(await C({environmentId:t,input:{threadId:e.threadId,interactionMode:e.interactionMode,createdAt:e.createdAt}}),()=>void 0)),n},[t,R,C,S,b]),no=(0,J.useRef)(new yo(()=>ke(!0),{wait:150})),ro=(0,J.useRef)(`following-end`),io=(0,J.useRef)(null),ao=(0,J.useRef)(null),oo=(0,J.useRef)(null),so=(0,J.useRef)(null),co=(0,J.useRef)(0),lo=(0,J.useRef)(0),uo=(0,J.useRef)(null),fo=(0,J.useRef)(null),po=(0,J.useCallback)(()=>{co.current+=1,ro.current=`free-scrolling`,lo.current=null,io.current=null,ao.current=null,oo.current=null,so.current=null,uo.current=null,fo.current!==null&&(cancelAnimationFrame(fo.current),fo.current=null)},[]),mo=(0,J.useRef)(po);(0,J.useEffect)(()=>{mo.current=po},[po]);let ho=(0,J.useCallback)(e=>{let t=e??St.current,n=so.current,r=t?.getState();return!t||!r||n===null?null:HAe({state:r,anchorIndex:n,composerOverlayHeight:Tt,anchorOffset:16})},[Tt]),go=(0,J.useCallback)(e=>{let t=e??St.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)-Tt-16)},[Tt]),_o=(0,J.useCallback)((e=!1)=>{Dt.current=!0,ro.current=`following-end`,lo.current=co.current,io.current=null,so.current=null,no.current.cancel(),ke(!1),St.current?.scrollToEnd?.({animated:e})},[]);(0,J.useEffect)(()=>{let e=null,t=requestAnimationFrame(()=>{let t=St.current?.getScrollableNode();if(!t)return;let n=()=>{mo.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?.()}},[$t?.id]);let vo=(0,J.useCallback)((e,t)=>{if(io.current===e&&(io.current=null),so.current=t,ao.current===e)return;ao.current=e,oo.current=null;let n=r=>{requestAnimationFrame(()=>{if(ao.current!==e)return;let i=St.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),ao.current!==e))return;let t=i.getState().scroll;i.scrollToOffset({offset:t,animated:!1}),oo.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))},[]),bo=(0,J.useCallback)(e=>{if(oo.current!==e||lo.current===co.current)return;let t=St.current?.getState().scroll;t!==void 0&&(uo.current===null&&(uo.current={messageId:e,offset:t,userScrollGeneration:co.current}),fo.current===null&&(fo.current=requestAnimationFrame(()=>{fo.current=null;let e=uo.current;if(uo.current=null,e&&oo.current===e.messageId&&e.userScrollGeneration===co.current){let t=St.current,n=t?.getState().scroll;typeof n==`number`&&Math.abs(n-e.offset)<=2&&t?.scrollToOffset({offset:e.offset,animated:!1})}})))},[]),xo=(0,J.useCallback)(e=>{if(!e&&lo.current===co.current){no.current.cancel(),ke(!1);return}Dt.current!==e&&(Dt.current=e,e?(ro.current=`following-end`,lo.current=co.current,no.current.cancel(),ke(!1)):(ro.current=`free-scrolling`,lo.current=null,no.current.maybeExecute()))},[]);(0,J.useEffect)(()=>{if(!$t?.id||lo.current!==co.current)return;let e=null,t=requestAnimationFrame(()=>{e=requestAnimationFrame(()=>{if(lo.current!==co.current||io.current!==null||ao.current!==null&&oo.current!==ao.current)return;let e=St.current;if(e){if(ro.current===`anchoring-new-turn`){let t=ho(e);if(!t||t.scrollDeltaToRevealEnd<=1)return;let n=e.getState().scroll+t.scrollDeltaToRevealEnd;e.scrollToOffset({offset:n,animated:!1});return}ro.current===`following-end`&&go(e)&&e.scrollToEnd?.({animated:!1})}})});return()=>{cancelAnimationFrame(t),e!==null&&cancelAnimationFrame(e)}},[$t?.id,bi,ho,go]),(0,J.useEffect)(()=>{st(null),Dt.current=!0,ro.current=`following-end`,lo.current=co.current,io.current=null,ao.current=null,oo.current=null,so.current=null,no.current.cancel(),ke(!1),rt.current&&(rt.current=!1,mn&&ll.getState().open(mn,`plan`)),nt.current=null},[$t?.id]),(0,J.useEffect)(()=>{if(!G||!Xr||Nn)return;let e=Fn?.turnId??null;if(e&&Xr.turnId!==e)return;let t=Xr.turnId??Yr?.turnId??`__dismissed__`;nt.current!==t&&mn&&ll.getState().open(mn,`plan`)},[Xr,Fn?.turnId,mn,G,Nn,Yr?.turnId]),(0,J.useEffect)(()=>{Ue(!1)},[$t?.id]),(0,J.useEffect)(()=>{if(!$t?.id||Mt.terminalOpen)return;let e=window.requestAnimationFrame(()=>{fa()});return()=>{window.cancelAnimationFrame(e)}},[$t?.id,fa,Mt.terminalOpen]),(0,J.useEffect)(()=>{if(!$t?.id||$t.messages.length===0)return;let e=new Set($t.messages.map(e=>e.id)),t=Ne.filter(t=>e.has(t.id));if(t.length===0)return;let n=window.setTimeout(()=>{Pe(t=>t.filter(t=>!e.has(t.id)))},0);for(let e of t){let t=M6e(e);if(t.length>0){ui(e.id,t);continue}n2(e)}return()=>{window.clearTimeout(n)}},[$t?.id,$t?.messages,ui,Ne]),(0,J.useEffect)(()=>{Pe(e=>{for(let t of e)n2(t);return[]}),ni(),Me(null)},[s,ni,n]);let So=(0,J.useCallback)(()=>{Me(null)},[]),wo=$t?.worktreePath??null,To=gD({activeWorktreePath:wo,hasServerThread:Qt,draftThreadEnvMode:rn?L?.envMode:void 0}),Eo=!!(Qt&&$t&&$t.messages.length===0&&$t.worktreePath===null&&!sa),Do=Eo?mt??L?.envMode??To:To,Oo=Eo&>!==void 0?gt:$t?.branch??null,ko=rn?L?.startFromOrigin??!1:Eo?vt[$t?.id??``]??H.newWorktreesStartFromOrigin:!1,Ao=N6e({requestedEnvMode:Do,isGitRepo:Yi}),jo=(0,J.useMemo)(()=>Qt?_D({effectiveEnvMode:Do,activeWorktreePath:wo,activeThreadBranch:Oo,currentGitBranch:Fi.data?.refName??null}):null,[Oo,wo,Do,Fi.data?.refName,Qt]),Mo=E_(Qt?mn:null),No=Vg(e=>e.sidebarAutoSettleAfterDays),Po=uy({threadBranch:$t?.branch??null,gitStatus:Fi.data??null}),Fo=_r?.environment.capabilities.threadSettlement===!0,Lo=_r?.environment.capabilities.threadSnooze===!0,Ro=qhe(),zo=Mo!==null&&Lo&&Aue(Mo,{now:new Date().toISOString()}),[Bo,Vo]=(0,J.useState)(0);(0,J.useEffect)(()=>{if(!zo)return;let e=Date.parse(Mo?.snoozedUntil??``);if(!Number.isFinite(e))return;let t=window.setTimeout(()=>Vo(e=>e+1),Math.min(Math.max(0,e-Date.now())+50,2147483647));return()=>window.clearTimeout(t)},[Mo?.snoozedUntil,zo,Bo]);let Ho=(0,J.useMemo)(()=>Mo===null||!Fo?!1:Mue(Mo,{now:`${Ro}:00.000Z`,autoSettleAfterDays:No,changeRequestState:Po?.state??null}),[Po?.state,Mo,No,Ro,Fo]),Uo=qu(h_.unsettle,{reportFailure:!1}),[Wo,Go]=(0,J.useState)(null),Ko=Wo!==null&&Wo===hn,qo=(0,J.useCallback)(async()=>{if(!mn)return;let e=u(mn);Go(e);try{let e=await Uo({environmentId:mn.environmentId,input:{threadId:mn.threadId,reason:`user`}});if(e._tag===`Failure`&&!Hr(e)){let t=fe(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)}},[mn,Uo]),Yo=qu(h_.unsnooze,{reportFailure:!1}),[Xo,Zo]=(0,J.useState)(null),Qo=Xo!==null&&Xo===hn,$o=(0,J.useCallback)(async()=>{if(!mn)return;let e=u(mn);Zo(e);try{let e=await Yo({environmentId:mn.environmentId,input:{threadId:mn.threadId,reason:`user`}});if(e._tag===`Failure`&&!Hr(e)){let t=fe(e);uS.add(lS({type:`error`,title:`Failed to wake thread`,description:t instanceof Error?t.message:`An error occurred.`}))}}finally{Zo(t=>t===e?null:t)}},[mn,Yo]),[es,ts]=(0,J.useState)(!1),[ns,rs]=(0,J.useState)(!1),[is,as]=(0,J.useState)(null),[,os]=(0,J.useState)(0),ss=ea(e=>{let t=e.getComposerDraft(F);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=F6e($t?.id??null,jo),ls=I6e({hasMismatch:jo!==null,isDismissed:R6e(cs),composerHasContent:ss,wasShownForCurrentMismatch:is!==null&&is===cs});(0,J.useEffect)(()=>{as(e=>ls?cs:e!==null&&e!==cs?null:e)},[cs,ls]);let ds=(0,J.useCallback)(async()=>{if(!Gi||!$t||!jo||es)return;ts(!0);let e=await x({environmentId:t,input:{cwd:Gi,refName:jo.threadBranch}});if(e._tag===`Failure`){ts(!1),Hr(e)||uS.add(lS({type:`error`,title:`Failed to switch checkout`,description:cot(fe(e))}));return}let n=e.value.refName??jo.threadBranch;if(n!==$t.branch){let e=await b({environmentId:t,input:{threadId:$t.id,branch:n,worktreePath:null}});if(e._tag===`Failure`){ts(!1),Hr(e)||uS.add(lS({type:`error`,title:`Checkout switched, but the thread could not be updated`,description:cot(fe(e))})),Fi.refresh();return}}Fi.refresh(),ts(!1),pa()},[Gi,$t,t,Fi,es,jo,pa,x,b]),fs=(0,J.useMemo)(()=>{if(!zo&&!Ho)return null;let e=zo;return{id:`thread-${e?`snoozed`:`settled`}:${$t?.id??`unknown`}`,variant:`info`,icon:e?(0,Y.jsx)(Xm,{}):(0,Y.jsx)(ch,{}),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)(rr,{size:`xs`,variant:`outline`,disabled:e?Qo:Ko,onClick:()=>void(e?$o():qo()),children:e?Qo?`Waking...`:`Wake now`:Ko?`Un-settling...`:`Un-settle`})}},[$t?.id,Ho,zo,$o,qo,Qo,Ko]),ps=(0,J.useCallback)(()=>{if(Fi.data?.hasWorkingTreeChanges){rs(!0);return}ds()},[Fi.data?.hasWorkingTreeChanges,ds]),ms=(0,J.useMemo)(()=>{let e=fs===null?[]:[fs];return!jo||!ls||!cs?[...Ar,...e]:[...Ar,{id:`branch-mismatch:${cs}`,variant:`info`,icon:(0,Y.jsx)(Th,{}),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)(Sl,{children:[(0,Y.jsx)(us,{render:(0,Y.jsx)(`code`,{className:`min-w-0 truncate font-medium text-foreground`,children:jo.threadBranch})}),(0,Y.jsxs)(Ic,{side:`top`,className:`max-w-80`,children:[`This thread last ran on `,jo.threadBranch,`. Sending will continue on `,jo.currentBranch,`.`]})]})]}),className:`dark:shadow-none`,actions:(0,Y.jsx)(rr,{size:`xs`,variant:`ghost`,disabled:es,onClick:ps,children:es?`Restoring...`:`Restore branch`}),dismissLabel:`Dismiss branch change notice`,onDismiss:()=>{L6e(cs),os(e=>e+1)}},...e]},[cs,ps,es,jo,fs,ls,Ar]);(0,J.useEffect)(()=>{ht(null),_t(void 0)},[$t?.id]),(0,J.useEffect)(()=>{Eo||(ht(null),_t(void 0))},[Eo]),(0,J.useEffect)(()=>{if(!on){lt(null);return}lt(e=>!e||e.threadId===on?e:null)},[on]),(0,J.useEffect)(()=>{!on||!Gi||lt(e=>!e||e.threadId!==on?e:xF({project:{cwd:Gi},worktreePath:Ki})===e.cwd&&(Ki??null)===e.worktreePath?null:e)},[Gi,on,Ki]),(0,J.useEffect)(()=>{Mt.terminalOpen||lt(e=>e?.threadId===on?null:e)},[on,Mt.terminalOpen]),(0,J.useEffect)(()=>{if(!hn)return;let e=jt.current[hn]??!1,t=!!Mt.terminalOpen;if(!e&&t){jt.current[hn]=t,at(e=>e+1);return}else if(e&&!t){jt.current[hn]=t;let e=window.requestAnimationFrame(()=>{fa()});return()=>{window.cancelAnimationFrame(e)}}jt.current[hn]=t},[hn,fa,Mt.terminalOpen]),(0,J.useEffect)(()=>{let e=e=>{if(!on||UT())return;let t=CS();if(e.defaultPrevented&&t===null)return;let n={terminalFocus:t!==null,terminalOpen:!!Mt.terminalOpen,modelPickerOpen:De.current?.isModelPickerOpen()??!1};if(!n.terminalFocus&&!n.modelPickerOpen&&$at(e)&&De.current?.insertTextAtEnd(e.key)){e.preventDefault(),e.stopPropagation();return}let r=bg(e,Ii,{context:n});if(!r)return;if(r===`terminal.toggle`){e.preventDefault(),e.stopPropagation(),ga();return}if(r===`rightPanel.toggle`){e.preventDefault(),e.stopPropagation(),Ka();return}if(r===`terminal.split`){if(e.preventDefault(),e.stopPropagation(),t===`right-panel`){Va();return}Mt.terminalOpen||ha(!0),_a();return}if(r===`terminal.splitVertical`){if(e.preventDefault(),e.stopPropagation(),t===`right-panel`){Va(`vertical`);return}Mt.terminalOpen||ha(!0),_a(`vertical`);return}if(r===`terminal.close`){if(e.preventDefault(),e.stopPropagation(),t===`right-panel`&&Sn?.kind===`terminal`){Wa(Sn.activeTerminalId);return}if(!Mt.terminalOpen)return;ya(Mt.activeTerminalId);return}if(r===`terminal.new`){if(e.preventDefault(),e.stopPropagation(),t===`right-panel`){za();return}Mt.terminalOpen||ha(!0),va();return}if(r===`diff.toggle`){e.preventDefault(),e.stopPropagation(),oa();return}if(r===`modelPicker.toggle`){e.preventDefault(),e.stopPropagation(),De.current?.toggleModelPicker();return}let i=m6e(r);if(!i||!Vn)return;let a=Vn.scripts.find(e=>e.id===i);a&&(e.preventDefault(),e.stopPropagation(),ba(a))};return window.addEventListener(`keydown`,e,!0),()=>window.removeEventListener(`keydown`,e,!0)},[Vn,Sn,za,Mt.terminalOpen,Mt.activeTerminalId,on,ya,Wa,va,ha,ba,_a,Va,Ii,oa,Ka,ga,De]);let hs=(0,J.useCallback)(async e=>{let n=he();if(!n||!$t||He)return;if(tr&&nr){ua($t.id,`Reconnect ${nr} before reverting checkpoints.`);return}if(Fr===`running`||ai||Be){ua($t.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(`
|
|
580
580
|
`)))return;Ue(!0),ua($t.id,null);let r=await O({environmentId:t,input:{threadId:$t.id,turnCount:e}});if(r._tag===`Failure`&&!Hr(r)){let e=fe(r);ua($t.id,e instanceof Error?e.message:`Failed to revert thread state.`)}Ue(!1)},[$t,tr,nr,t,Be,He,ai,Fr,O,ua]),gs=async e=>{if(e?.preventDefault(),!$t||ai||Be||tr||At.current)return;if(Gr){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:f,selectedPromptEffort:p,selectedModelSelection:m}=n,h=xe.current,{trimmedPrompt:g,sendableTerminalContexts:_,expiredTerminalContextCount:v,hasSendableContent:y}=i2({prompt:h,imageCount:r.length,terminalContexts:i,elementContextCount:a.length+o.length+s.length});if($r&&Jr){let e=YAe({draftText:g,planMarkdown:Jr.planMarkdown});xe.current=``,ge(F),De.current?.resetCursorState(),await Ts({text:e.text,interactionMode:e.interactionMode});return}let x=r.length===0&&_.length===0&&a.length===0&&o.length===0&&s.length===0?zAe(g):null;if(x){Da(x),xe.current=``,ge(F),De.current?.resetCursorState();return}if(!y){if(v>0){let e=a2(v,`empty`);uS.add(lS({type:`warning`,title:e.title,description:e.description}))}return}if(!Vn){uS.add(lS({type:`warning`,title:`Choose a project first`,description:`This draft no longer points to an available project.`}));return}let S=$t.id,C=!Qt||$t.messages.length===0,T=C&&Ao===`worktree`&&!$t.worktreePath?Oo:null;if(C&&Ao===`worktree`&&!$t.worktreePath&&!Oo){ua(S,`Select a base branch before sending in New worktree mode.`);return}if(At.current=!0,wi&&hn){let e,t=new Promise(t=>{e=t});Lat(()=>{(0,Sm.flushSync)(()=>{Di(),Si(hn)}),e?.()}).catch(()=>e?.()),await t}ti({preparingWorktree:!!T});let E=[...r],D=[..._],O=[...a],k=[...o],A=[...s],j=Br(kl(h,D),O),M=d(k.reduce((e,t)=>v6e(e,t),j),A),N=I(),P=new Date().toISOString(),L=x9({provider:c,model:l,models:f,effort:p,text:M||zat}),R=Promise.all(E.map(async e=>({type:`image`,name:e.name,mimeType:e.mimeType,sizeBytes:e.sizeBytes,dataUrl:await r2(e.file)}))),z=E.map(e=>({type:`image`,id:e.id,name:e.name,mimeType:e.mimeType,sizeBytes:e.sizeBytes,previewUrl:e.previewUrl}));if(Dt.current=!0,ro.current=`anchoring-new-turn`,lo.current=co.current,io.current=N,so.current=null,no.current.cancel(),ke(!1),_n({threadKey:u(wa($t.environmentId,S)),messageId:N}),Pe(e=>[...e,{id:N,role:`user`,text:L,...z.length>0?{attachments:z}:{},turnId:null,createdAt:P,updatedAt:P,streaming:!1}]),ua(S,null),v>0){let e=a2(v,`omitted`);uS.add(lS({type:`warning`,title:e.title,description:e.description}))}xe.current=``,ge(F),De.current?.resetCursorState();let B=null;if(E.length>0){let e=E[0];e&&(B=e.name)}let V=g;V||=B?`Image: ${B}`:D.length>0?Pa(D[0]):O.length>0?Qr(O[0]):`New thread`;let H=CF(V),U=Jo(m.instanceId,l||Vn.defaultModelSelection?.model||`gpt-5.6-sol`,m.options),W=null;if(C&&Qt){let e=await b({environmentId:t,input:{threadId:S,title:H}});e._tag===`Failure`&&(W=e)}if(W===null&&Qt){let e=await to({threadId:S,createdAt:P,...l?{modelSelection:m}:{},...jo?{branch:jo.currentBranch}:{},runtimeMode:tn,interactionMode:nn});e._tag===`Failure`&&(W=e)}let G=await Te(()=>R);W===null&&G._tag===`Failure`&&(W=G);let ee=!1;if(W===null&&G._tag===`Success`){let e=rn||T?{...rn?{createThread:{projectId:Vn.id,title:H,modelSelection:U,runtimeMode:tn,interactionMode:nn,branch:Oo,worktreePath:$t.worktreePath,createdAt:$t.createdAt}}:{},...T?{prepareWorktree:{projectCwd:Vn.workspaceRoot,baseBranch:T,branch:uie(hi),...ko?{startFromOrigin:!0}:{}},runSetupScript:!0}:{}}:void 0;ti({preparingWorktree:!1});let n=await w({environmentId:t,input:{threadId:S,message:{messageId:N,role:`user`,text:L,attachments:G.value},modelSelection:m,titleSeed:H,runtimeMode:tn,interactionMode:nn,...e?{bootstrap:e}:{},createdAt:P}});n._tag===`Failure`?W=n:ee=!0}if(W!==null){if(xe.current.length===0&&Se.current.length===0&&Ce.current.length===0&&we.current.length===0&&(ea.getState().getComposerDraft(F)?.previewAnnotations.length??0)===0&&(ea.getState().getComposerDraft(F)?.reviewComments.length??0)===0){Pe(e=>{let t=e.filter(e=>e.id===N);for(let e of t)n2(e);let n=e.filter(e=>e.id!==N);return n.length===e.length?e:n}),xe.current=h;let e=E.map(P6e);Se.current=e,Ce.current=D,we.current=O,ae(F,h),oe(F,e),se(F,D),ce(F,O),le(F,k),ue(F,A),De.current?.resetCursorState({cursor:VF(h,h.length),prompt:h,detectTrigger:!0})}if(!Hr(W)){let e=fe(W);ua(S,e instanceof Error?e.message:`Failed to send message.`)}}At.current=!1,ee||(Si(e=>e===hn?null:e),ni())},_s=async()=>{if(!$t)return;let e=await T({environmentId:t,input:k6e($t)});if(e._tag===`Failure`&&!Hr(e)){let t=fe(e);ua($t.id,t instanceof Error?t.message:`Failed to interrupt the current turn.`)}},vs=(0,J.useCallback)(async(e,n)=>{if(!on)return;qe(t=>t.includes(e)?t:[...t,e]);let r=await E({environmentId:t,input:{threadId:on,requestId:e,decision:n}});if(r._tag===`Failure`&&!Hr(r)){let e=fe(r);ua(on,e instanceof Error?e.message:`Failed to submit approval decision.`)}return qe(t=>t.filter(t=>t!==e)),r},[on,t,E,ua]),ys=(0,J.useCallback)(async(e,n)=>{if(!on)return;Xe(t=>t.includes(e)?t:[...t,e]);let r=await D({environmentId:t,input:{threadId:on,requestId:e,answers:n}});if(r._tag===`Failure`&&!Hr(r)){let e=fe(r);ua(on,e instanceof Error?e.message:`Failed to submit user input.`)}return Xe(t=>t.filter(t=>t!==e)),r},[on,t,D,ua]),bs=(0,J.useCallback)(e=>{Vr&&et(t=>({...t,[Vr.requestId]:e}))},[Vr]),xs=(0,J.useCallback)((e,t)=>{Vr&&(Qe(n=>{let r=(Gr?.activeQuestion?.id===e?Gr.activeQuestion:void 0)??Vr.questions.find(t=>t.id===e);return r?{...n,[Vr.requestId]:{...n[Vr.requestId],[e]:GAe(r,n[Vr.requestId]?.[e],t)}}:n}),xe.current=``,De.current?.resetCursorState({cursor:0}))},[Gr?.activeQuestion,Vr,De]),Ss=(0,J.useCallback)((e,t,n,r,i)=>{if(!Vr)return;xe.current=t,Qe(n=>({...n,[Vr.requestId]:{...n[Vr.requestId],[e]:WAe(n[Vr.requestId]?.[e],t)}}));let a=De.current?.readSnapshot();(a?.value!==t||a.cursor!==n||a.expandedCursor!==r)&&De.current?.focusAt(n)},[Vr,De]),Cs=(0,J.useCallback)(()=>{if(!(!Vr||!Gr)){if(Gr.isLastQuestion){Kr&&ys(Vr.requestId,Kr);return}bs(Gr.questionIndex+1)}},[Gr,Kr,Vr,ys,bs]),ws=(0,J.useCallback)(()=>{Gr&&bs(Math.max(Gr.questionIndex-1,0))},[Gr,bs]),Ts=(0,J.useCallback)(async({text:e,interactionMode:n})=>{if(!$t||!Qt||ai||Be||At.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,d=$t.id,f=I(),p=new Date().toISOString(),m=x9({provider:a,model:o,models:s,effort:c,text:r});At.current=!0,ti({preparingWorktree:!1}),ua(d,null),Dt.current=!0,ro.current=`anchoring-new-turn`,lo.current=co.current,io.current=f,so.current=null,no.current.cancel(),ke(!1),_n({threadKey:u(wa($t.environmentId,d)),messageId:f}),Pe(e=>[...e,{id:f,role:`user`,text:m,turnId:null,createdAt:p,updatedAt:p,streaming:!1}]);let h=await to({threadId:d,createdAt:p,modelSelection:l,...jo?{branch:jo.currentBranch}:{},runtimeMode:tn,interactionMode:n}),g=h._tag===`Failure`?h:null;if(g===null){me(wa($t.environmentId,d),n);let e=await w({environmentId:t,input:{threadId:d,message:{messageId:f,role:`user`,text:m,attachments:[]},modelSelection:l,titleSeed:$t.title,runtimeMode:tn,interactionMode:n,...n==="default"&&Jr?{sourceProposedPlan:{threadId:$t.id,planId:Jr.id}}:{},createdAt:p}});g=e._tag===`Failure`?e:null}if(g===null){n==="default"&&G&&(nt.current=null,mn&&ll.getState().open(mn,`plan`)),At.current=!1;return}if(Pe(e=>e.filter(e=>e.id!==f)),!Hr(g)){let e=fe(g);ua(d,e instanceof Error?e.message:`Failed to send plan follow-up.`)}At.current=!1,ni()},[$t,Jr,ti,Be,ai,Qt,jo,to,ni,tn,me,ua,w,G,t,De]),Es=(0,J.useCallback)(async()=>{if(!$t||!Vn||!Jr||!Qt||ai||Be||tr||At.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=dt(),l=Jr.planMarkdown,u=x9({provider:n,model:r,models:i,effort:a,text:XF(l)}),d=CF(XAe(l)),f=o;At.current=!0,ti({preparingWorktree:!1});let p=()=>{At.current=!1,ni()},m=await v({environmentId:t,input:{threadId:c,projectId:Vn.id,title:d,modelSelection:f,runtimeMode:tn,interactionMode:`default`,branch:Oo,worktreePath:$t.worktreePath,createdAt:s}}),h=m._tag===`Failure`?m:null;if(h===null){let e=await w({environmentId:t,input:{threadId:c,message:{messageId:I(),role:`user`,text:u,attachments:[]},modelSelection:o,titleSeed:d,runtimeMode:tn,interactionMode:`default`,sourceProposedPlan:{threadId:$t.id,planId:Jr.id},createdAt:s}});h=e._tag===`Failure`?e:null}if(h===null){let e=await Te(()=>B6e(wa($t.environmentId,c)));h=e._tag===`Failure`?e:null}if(h===null){rt.current=G;let e=await Te(()=>te({to:`/$environmentId/$threadId`,params:{environmentId:$t.environmentId,threadId:c}}));h=e._tag===`Failure`?e:null}if(h!==null){let e=await y({environmentId:t,input:{threadId:c}});if(e._tag===`Failure`&&!Hr(e)&&console.warn(`Failed to clean up implementation thread after start failure.`,fe(e)),!Hr(h)){let e=fe(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()},[Vn,Jr,Oo,$t,ti,tr,v,y,Be,ai,Qt,te,ni,tn,w,G,t,De]),Ds=(0,J.useCallback)((e,t)=>{if(!$t)return null;let n=c2({providers:jr,hasStartedSession:$t.session!==null,currentModelSelection:$t.modelSelection,currentProviderInstanceId:$t.session?.providerInstanceId??null,nextModelSelection:{instanceId:e,model:t}});return n?`${n.description} Start a new thread to use this model.`:null},[$t,jr]),Os=(0,J.useCallback)((e,t)=>{if(!$t)return;let n=jr.find(t=>t.instanceId===e),r=n?.driver??null;if(gr!==null&&r!==null&&r!==gr){pa();return}if(gr!==null&&$t.session?.providerInstanceId){let e=jr.find(e=>e.instanceId===$t.session?.providerInstanceId);if(e?.continuation?.groupKey&&n?.continuation?.groupKey&&e.continuation.groupKey!==n.continuation.groupKey){pa();return}}let i=kn(e,V,jr,t);if(!i){pa();return}let a={instanceId:e,model:i},o=c2({providers:jr,hasStartedSession:$t.session!==null,currentModelSelection:$t.modelSelection,currentProviderInstanceId:$t.session?.providerInstanceId??null,nextModelSelection:a});if(o){uS.add({type:`warning`,title:o.title,description:o.description}),pa();return}de(wa($t.environmentId,$t.id),a),U(a),pa()},[$t,gr,pa,de,U,jr,V]),ks=(0,J.useCallback)(e=>{if(Eo){ht(e),pa();return}rn&&_e(F,{envMode:e,startFromOrigin:SC({envMode:e,newWorktreesStartFromOrigin:H.newWorktreesStartFromOrigin}),...e===`worktree`&&L?.worktreePath?{worktreePath:null}:{}}),pa()},[Eo,F,L?.worktreePath,rn,H.newWorktreesStartFromOrigin,ht,pa,_e]),As=e=>{if(Eo&&$t){yt(t=>t[$t.id]===e?t:{...t,[$t.id]:e});return}rn&&_e(F,{startFromOrigin:e})},js=(0,J.useCallback)(e=>{Me(e)},[]),Ms=(0,J.useCallback)((e,t)=>{!Qt||!mn||(OF.getState().selectTurn(mn,e,t),ll.getState().open(mn,`diff`),i?.())},[mn,Qt,i]),Ns=(0,J.useRef)(ji);Ns.current=ji;let Ps=(0,J.useRef)(hs);Ps.current=hs;let Fs=(0,J.useCallback)(e=>{let t=Ns.current.get(e);typeof t==`number`&&Ps.current(t)},[]);if(!$t)return(0,Y.jsx)(xat,{});let Ls=(0,Y.jsx)(yat,{terminalAvailable:Vn!==null,terminalOpen:Mt.terminalOpen,terminalShortcutLabel:Sg(Ii,`terminal.toggle`),rightPanelAvailable:Vn!==null,rightPanelOpen:On,rightPanelShortcutLabel:Sg(Ii,`rightPanel.toggle`),onToggleTerminal:ga,onToggleRightPanel:Ka}),Rs=(0,Y.jsxs)(`div`,{className:`workspace-titlebar-controls z-50 gap-1 [-webkit-app-region:no-drag]`,children:[On&&!tt?(0,Y.jsx)(bat,{maximized:jn,onToggle:qa}):null,Ls]}),zs=mn?Sn?.kind===`preview`?(0,Y.jsx)(J.Suspense,{fallback:null,children:(0,Y.jsx)(Kat,{mode:`embedded`,threadRef:mn,tabId:Sn.resourceId,configuredUrls:Xn,visible:!0})}):Sn?.kind===`terminal`?(0,Y.jsx)(sot,{threadRef:mn,surface:Sn,launchContext:Ji??null,focusRequestId:it,keybindings:Ii,onAddTerminalContext:ma,onSplitTerminal:Va,onSplitTerminalVertical:Ha,onNewTerminal:za,onActiveTerminalChange:Ua,onCloseTerminal:Wa,splitShortcutLabel:na??void 0,splitVerticalShortcutLabel:ra??void 0,newShortcutLabel:ia??void 0,closeShortcutLabel:aa??void 0}):Sn?.kind===`diff`?(0,Y.jsx)(J.Suspense,{fallback:null,children:(0,Y.jsx)(qat,{mode:`embedded`,composerDraftTarget:F,initialGitScope:Zi},`${hn}:${Qi}`)}):Sn?.kind===`plan`?(0,Y.jsx)(c0e,{activePlan:Xr,activeProposedPlan:Yr,label:Zr,environmentId:t,threadRef:mn,markdownCwd:Ni??void 0,workspaceRoot:qi,timestampFormat:W,mode:`embedded`}):(Sn?.kind===`files`||Sn?.kind===`file`)&&Vn&&qi?(0,Y.jsx)(J.Suspense,{fallback:null,children:(0,Y.jsx)(Jat,{environmentId:Vn.environmentId,cwd:qi,projectName:Vn.title,threadRef:mn,composerDraftTarget:F,keybindings:Ii,availableEditors:Li,relativePath:Sn.kind===`file`?Sn.relativePath:null,revealLine:Cn?.revealLine??null,revealRequestId:Cn?.revealRequestId??0,onOpenFile:Ia,onPendingChange:Yn},`${Vn.environmentId}:${qi}`)}):null:null;return(0,Y.jsxs)(`div`,{className:`relative flex min-h-0 min-w-0 flex-1 overflow-hidden bg-background`,children:[On&&!tt?Rs:null,(0,Y.jsxs)(`div`,{className:q(`flex min-h-0 min-w-0 flex-col overflow-x-hidden`,jn?`w-0 flex-none`:`flex-1`),"data-chat-column-maximized-away":jn?`true`:`false`,children:[(0,Y.jsxs)(`header`,{"data-chat-header":!0,className:q(`bg-background transition-[padding-left] duration-200 ease-linear motion-reduce:transition-none`,Fm?q(`workspace-topbar drag-region relative px-3 sm:px-5`,a&&!Mn&&`wco:pr-[var(--workspace-native-controls-inset)]`):`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)]`,gN),children:[On?null:Rs,(0,Y.jsx)(vat,{activeThreadEnvironmentId:$t.environmentId,activeThreadId:$t.id,...r===`draft`&&s?{draftId:s}:{},activeThreadTitle:$t.title,activeProjectName:Vn?.title,activeProjectCwd:Vn?.workspaceRoot??null,openInCwd:Ni,activeProjectScripts:Vn?.scripts,preferredScriptId:Vn?bt[Vn.id]??null:null,keybindings:Ii,availableEditors:Li,rightPanelOpen:On,gitCwd:Ni,onNewThreadInProject:Un,onRunProjectScript:ba,onAddProjectScript:Sa,onUpdateProjectScript:Ca,onDeleteProjectScript:Ta})]}),(0,Y.jsx)(Tat,{error:en,onDismiss:()=>ua($t.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)(wat,{status:Ui,onDismiss:()=>Hi(Bi)})}),(0,Y.jsxs)(`div`,{className:`relative flex min-h-0 flex-1 flex-col`,children:[(0,Y.jsx)(irt,{isWorking:oi,activeTurnInProgress:oi||!zn,activeTurnStartedAt:si,listRef:St,timelineEntries:bi,latestTurn:Fn,runningTurnId:$t.session?.status===`running`?$t.session.activeTurnId:null,turnDiffSummaryByAssistantMessageId:Ai,activeThreadEnvironmentId:$t.environmentId,routeThreadKey:f,onOpenTurnDiff:Ms,revertTurnCountByUserMessageId:ji,onRevertUserMessage:Fs,isRevertingCheckpoint:He,onImageExpand:js,markdownCwd:Ni??void 0,resolvedTheme:ne,timestampFormat:W,workspaceRoot:qi,skills:zi?.skills??Hat,anchorMessageId:vn,onAnchorReady:vo,onAnchorSizeChanged:bo,contentInsetEndAdjustment:Tt,onIsAtEndChange:xo,onManualNavigation:po,hideEmptyPlaceholder:wi,topFadeEnabled:!Wi},$t.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:Tt+4},children:(0,Y.jsxs)(`button`,{type:`button`,"aria-label":`Scroll to end`,title:`Scroll to end`,onClick:()=>_o(!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)(Ye,{className:`size-3.5`}),`Scroll to end`]})})]}),(0,Y.jsx)(`div`,{ref:wt,"data-chat-composer-overlay":`true`,className:wi?`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:Ti,className:`chat-composer-horizontal-inset w-full`,children:(0,Y.jsxs)(`div`,{className:`pointer-events-auto relative z-10`,children:[wi?(0,Y.jsxs)(`div`,{className:`absolute inset-x-0 bottom-full z-0`,children:[(0,Y.jsx)(`div`,{className:`pb-8`,style:o?{viewTransitionName:Fat}:void 0,children:(0,Y.jsx)(Btt,{activeProjectRef:Bn,activeProjectTitle:Vn?.title??null})}),(0,Y.jsx)(Aat,{className:`relative z-0`,items:ms})]}):(0,Y.jsx)(Aat,{className:`relative z-0`,items:ms}),(0,Y.jsxs)(`div`,{className:`relative`,style:o?{viewTransitionName:Pat}:void 0,children:[(0,Y.jsxs)(`div`,{className:q(`chat-composer-glass-shell relative mx-auto w-full max-w-3xl`,Xi&&`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:Ei,className:`relative z-10`,children:(0,Y.jsx)(Rtt,{composerRef:De,composerDraftTarget:F,environmentId:t,routeKind:r,routeThreadRef:l,draftId:s,activeThreadId:on,activeThreadEnvironmentId:$t?.environmentId,activeThread:$t,isServerThread:Qt,isLocalDraftThread:rn,forceExpandedOnMobile:o&&wi,projectSelectionRequired:rn&&Vn===null,phase:Fr,isConnecting:Be,isSendBusy:ai,isPreparingWorktree:ii,environmentUnavailable:ir,activePendingApproval:ei,pendingApprovals:Rr,pendingUserInputs:zr,activePendingProgress:Gr,activePendingResolvedAnswers:Kr,activePendingIsResponding:qr,activePendingDraftAnswers:Ur,activePendingQuestionIndex:Wr,respondingRequestIds:Ke,showPlanFollowUpPrompt:$r,activeProposedPlan:Jr,activePlan:Xr,sidebarProposedPlan:Yr,planSidebarLabel:Zr,planSidebarOpen:Nn,runtimeMode:tn,interactionMode:nn,lockedProvider:gr,providerStatuses:jr,activeProjectDefaultModelSelection:Vn?.defaultModelSelection,activeThreadModelSelection:$t?.modelSelection,activeThreadActivities:$t?.activities,resolvedTheme:ne,settings:V,keybindings:Ii,terminalOpen:!!Mt.terminalOpen,gitCwd:Ni,promptRef:xe,composerImagesRef:Se,composerTerminalContextsRef:Ce,composerElementContextsRef:we,onSend:gs,onInterrupt:_s,onImplementPlanInNewThread:Es,onRespondToApproval:vs,onSelectActivePendingUserInputOption:xs,onAdvanceActivePendingUserInput:Cs,onPreviousActivePendingUserInputQuestion:ws,onChangeActivePendingUserInputCustomAnswer:Ss,onProviderModelSelect:Os,getModelDisabledReason:Ds,toggleInteractionMode:Oa,handleRuntimeModeChange:Ea,handleInteractionModeChange:Da,togglePlanSidebar:Aa,focusComposer:fa,scheduleComposerFocus:pa,setThreadError:ua,onExpandImage:js})})}),(0,Y.jsx)(`div`,{className:`min-h-0`,children:(0,Y.jsx)(`div`,{"data-terminal-open":Mt.terminalOpen?`true`:void 0,className:`relative z-0`,children:Xi&&(0,Y.jsx)(`div`,{className:`pointer-events-auto`,children:(0,Y.jsx)(hUe,{environmentId:$t.environmentId,threadId:$t.id,...r===`draft`&&s?{draftId:s}:{},onEnvModeChange:ks,startFromOrigin:ko,onStartFromOriginChange:As,...Eo?{effectiveEnvModeOverride:Do}:{},...Eo?{activeThreadBranchOverride:Oo,onActiveThreadBranchOverrideChange:_t}:{},envLocked:sa,onComposerFocusRequest:pa,...an?{onCheckoutPullRequestRequest:lr}:{},...cr?{onEnvironmentChange:ca}:{},availableEnvironments:sr})})})})]}),(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)]`})]})]})})}),mn&&Tn?(0,Y.jsx)(aje,{threadRef:mn,tabId:Tn.tabId,bottomInset:wi?0:Tt},`${hn}:${Tn.tabId}`):null,(0,Y.jsx)(OP,{open:ns,onOpenChange:rs,children:(0,Y.jsxs)(kP,{children:[(0,Y.jsxs)(AP,{children:[(0,Y.jsxs)(MP,{children:[`Switch to`,` `,(0,Y.jsx)(`code`,{className:`font-medium`,children:jo?.threadBranch??``}),`?`]}),(0,Y.jsx)(NP,{children:`You have uncommitted changes. They'll carry over to the other branch, or block the switch if they conflict.`})]}),(0,Y.jsxs)(jP,{children:[(0,Y.jsx)(PP,{render:(0,Y.jsx)(rr,{variant:`outline`}),children:`Cancel`}),(0,Y.jsx)(rr,{variant:`default`,onClick:()=>{rs(!1),ds()},children:`Switch branch`})]})]})}),ot?(0,Y.jsx)(rnt,{open:!0,environmentId:$t.environmentId,threadId:$t.id,cwd:Vn?.workspaceRoot??null,initialReference:ot.initialReference,onOpenChange:e=>{e||ur()},onPrepared:fr},ot.key):null]})}),qt.map(({key:e,threadRef:t})=>(0,Y.jsx)(oot,{threadRef:t,threadId:t.threadId,visible:e===hn&&Mt.terminalOpen,launchContext:e===hn?Ji??null:null,focusRequestId:e===hn?it:0,splitShortcutLabel:na??void 0,splitVerticalShortcutLabel:ra??void 0,newShortcutLabel:ia??void 0,closeShortcutLabel:aa??void 0,keybindings:Ii,onAddTerminalContext:ma},e))]}),!tt&&On&&mn?(0,Y.jsx)(jI,{mode:`inline`,maximized:jn,surfaces:xn.surfaces,activeSurfaceId:Sn?.id??null,pendingSurfaceIds:Jn,previewSessions:wn.sessions,terminalLabelsById:pn,onActivate:Ga,onCloseSurface:Xa,onCloseOtherSurfaces:Za,onCloseSurfacesToRight:Qa,onCloseAllSurfaces:$a,onCopyFilePath:eo,onAddBrowser:Ma,onAddTerminal:za,onAddDiff:Na,onAddFiles:Fa,browserAvailable:pC(),diffAvailable:Qt&&Yi,filesAvailable:Vn!==null,children:zs}):null,tt&&On&&mn?(0,Y.jsx)(Rat,{open:!0,onClose:Nn?ja:Ra,children:(0,Y.jsx)(jI,{mode:`sheet`,layoutControls:Ls,surfaces:xn.surfaces,activeSurfaceId:Sn?.id??null,pendingSurfaceIds:Jn,previewSessions:wn.sessions,terminalLabelsById:pn,onActivate:Ga,onCloseSurface:Xa,onCloseOtherSurfaces:Za,onCloseSurfacesToRight:Qa,onCloseAllSurfaces:$a,onCopyFilePath:eo,onAddBrowser:Ma,onAddTerminal:za,onAddDiff:Na,onAddFiles:Fa,browserAvailable:pC(),diffAvailable:Qt&&Yi,filesAvailable:Vn!==null,children:zs})}):null,Ae&&(0,Y.jsx)(Ktt,{preview:Ae,onClose:So},`${Ae.images[Ae.index]?.src??`image`}:${Ae.index}`)]})}function uot(e){let t=(0,X.c)(2),n;return t[0]===e?n=t[1]:(n=(0,Y.jsx)(DW,{children:(0,Y.jsx)(lot,{...e})}),t[0]=e,t[1]=n),n}function dot(e){return e.kind===`terminal`?e.terminalIds:[]}function fot(e){return e.target.terminalId}function pot(e){return e.setTerminalHeight}function mot(e){return e.splitTerminal}function hot(e){return e.splitTerminalVertical}function got(e){return e.newTerminal}function _ot(e){return e.setActiveTerminal}function vot(e){return e.closeTerminal}function yot(e){return e.reconcileTerminalIds}function bot(e){return e+1}function xot(){}function Sot(){let e=(0,X.c)(26),t=xm(),{draftId:n}=Cot.useParams(),r;e[0]===n?r=e[1]:(r=Qe.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=ea(a),s=S_(),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=s2(D_(u))?u:null,f;e[7]!==o?.promotedTo||e[8]!==l?(f=()=>{!l||o?.promotedTo||fa(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 Iat().then(()=>{e||t({to:`/$environmentId/$threadId`,params:fo(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)(Tw,{className:`h-svh min-h-0 overflow-hidden overscroll-y-none bg-background text-foreground md:h-dvh`,children:(0,Y.jsx)(uot,{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 Cot=Dm(`/_chat/draft/$draftId`)({component:Sot});function wot(){let e=(0,X.c)(32),t=xm(),n;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(n={select:Tot},e[0]=n):n=e[0];let r=Eot.useParams(n),i;e[1]===r?i=e[2]:(i=r===null?null:d_.stateAtom(r.environmentId),e[1]=r,e[2]=i);let a=od(i),o=E_(r),s=Pre(r),c=Fre(r),l=jre(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=ea(f),m;e[5]===r?m=e[6]:(m=e=>r?e.getDraftThreadByRef(r):null,e[5]=r,e[6]=m);let h=ea(m),g;e[7]===r?g=e[8]:(g=e=>r?e.hasDraftThreadsInEnvironment(r.environmentId):!1,e[7]=r,e[8]=g);let _=ea(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=Eo({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=s2(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||Gl(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)(Tw,{className:`h-svh min-h-0 overflow-hidden overscroll-y-none bg-background text-foreground md:h-dvh`,children:(0,Y.jsx)(uot,{environmentId:r.environmentId,threadId:r.threadId,routeKind:`server`})}),e[29]=r.environmentId,e[30]=r.threadId,e[31]=A):A=e[31],A}function Tot(e){return Pu(e)}var Eot=Dm(`/_chat/$environmentId/$threadId`)({component:wot}),S9=GEe.update({id:`/settings`,path:`/settings`,getParentRoute:()=>gk}),Dot=xN.update({id:`/pair`,path:`/pair`,getParentRoute:()=>gk}),C9=oDe.update({id:`/_chat`,getParentRoute:()=>gk}),Oot=jN.update({id:`/`,path:`/`,getParentRoute:()=>C9}),kot=HDe.update({id:`/source-control`,path:`/source-control`,getParentRoute:()=>S9}),Aot=WDe.update({id:`/providers`,path:`/providers`,getParentRoute:()=>S9}),jot=_Oe.update({id:`/keybindings`,path:`/keybindings`,getParentRoute:()=>S9}),Mot=yOe.update({id:`/general`,path:`/general`,getParentRoute:()=>S9}),Not=WOe.update({id:`/diagnostics`,path:`/diagnostics`,getParentRoute:()=>S9}),Pot=fAe.update({id:`/connections`,path:`/connections`,getParentRoute:()=>S9}),Fot=vAe.update({id:`/beta`,path:`/beta`,getParentRoute:()=>S9}),Iot=yAe.update({id:`/archived`,path:`/archived`,getParentRoute:()=>S9}),Lot=xAe.update({id:`/appearance`,path:`/appearance`,getParentRoute:()=>S9}),Rot=Cot.update({id:`/draft/$draftId`,path:`/draft/$draftId`,getParentRoute:()=>C9}),zot={ChatIndexRoute:Oot,ChatEnvironmentIdThreadIdRoute:Eot.update({id:`/$environmentId/$threadId`,path:`/$environmentId/$threadId`,getParentRoute:()=>C9}),ChatDraftDraftIdRoute:Rot},Bot=C9._addFileChildren(zot),Vot={SettingsAppearanceRoute:Lot,SettingsArchivedRoute:Iot,SettingsBetaRoute:Fot,SettingsConnectionsRoute:Pot,SettingsDiagnosticsRoute:Not,SettingsGeneralRoute:Mot,SettingsKeybindingsRoute:jot,SettingsProvidersRoute:Aot,SettingsSourceControlRoute:kot},Hot={ChatRoute:Bot,PairRoute:Dot,SettingsRoute:S9._addFileChildren(Vot)},Uot=gk._addFileChildren(Hot)._addFileTypes();function Wot(e){return Xee({routeTree:Uot,history:e,context:{}})}var Got=`wco`,Kot=`electron`,qot=`electron-windows`;function Jot(){return typeof navigator>`u`?null:navigator.windowControlsOverlay??null}function Yot(){if(typeof document>`u`)return()=>{};let e=Jot(),t=()=>{document.documentElement.classList.toggle(Got,e!==null&&e.visible)};return t(),e?(e.addEventListener(`geometrychange`,t),()=>{e.removeEventListener(`geometrychange`,t)}):()=>{}}function Xot(e){return jr(e)?[Kot,qot]:[Kot]}function Zot(e){if(typeof document>`u`)return()=>{};let t=Xot(e);return document.documentElement.classList.add(...t),()=>{document.documentElement.classList.remove(...t)}}var w9=(e,t,n)=>e.getPropertyValue(t).trim()||n;function Qot(){let e=document.documentElement,t=getComputedStyle(e);return{colorScheme:e.classList.contains(`dark`)?`dark`:`light`,radius:w9(t,`--radius`,`0.625rem`),background:w9(t,`--background`,`white`),foreground:w9(t,`--foreground`,`oklch(0.269 0 0)`),popover:w9(t,`--popover`,`white`),popoverForeground:w9(t,`--popover-foreground`,`oklch(0.269 0 0)`),primary:w9(t,`--primary`,`oklch(0.488 0.217 264)`),primaryForeground:w9(t,`--primary-foreground`,`white`),muted:w9(t,`--muted`,`rgb(0 0 0 / 4%)`),mutedForeground:w9(t,`--muted-foreground`,`oklch(0.556 0 0)`),accent:w9(t,`--accent`,`rgb(0 0 0 / 4%)`),accentForeground:w9(t,`--accent-foreground`,`oklch(0.269 0 0)`),border:w9(t,`--border`,`rgb(0 0 0 / 8%)`),input:w9(t,`--input`,`rgb(0 0 0 / 10%)`),ring:w9(t,`--ring`,`oklch(0.488 0.217 264)`),fontSans:w9(t,`--font-sans`,t.fontFamily||`system-ui, sans-serif`),fontMono:w9(t,`--font-mono`,`ui-monospace, monospace`)}}var T9=is()(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 $ot(e){let t=(0,X.c)(7),{threadRef:n,tabId:r,runtimeTabId:i}=e,a=T9(est),o=qu(JS.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(!(!sI||typeof window>`u`))return s.current=null,c.current=null,l.current=null,sI.onStateChange((e,t)=>{if(e!==i)return;tst(l.current,t.navStatus)&&a(i),l.current=t.navStatus,Zle(n,r,nst(t));let u=rst({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=[sI,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 est(e){return e.clear}function tst(e,t){return e?t.kind===`Loading`&&e.kind!==`Loading`?!0:t.kind===`Idle`||e.kind===`Idle`?!1:t.url!==e.url:!1}function nst(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 rst(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 E9=e=>e._tag===`fill`?`fill`:`${e._tag}:${e.width}:${e.height}:${e._tag===`preset`?e.presetId:``}`,D9=e=>Number.isFinite(e)&&e>0?e:1;function ist(e,t,n=1){if(e._tag!==`fill`)return e;let r=D9(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 O9(e){return{width:Math.max(1,e.width-20),height:Math.max(1,e.height-32-10)}}function k9(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=D9(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 ast(e,t,n=1){let r=k9(O9(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 ost=e=>Math.min(h,Math.max(240,e)),sst=e=>e!==void 0&&Number.isFinite(e)&&e>0;function cst(e,t,n){if(n===`width`){let n=Math.ceil(Math.max(240,240*t)),r=Math.floor(Math.min(h,h*t,Math.sqrt(dc*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(h,h/t,Math.sqrt(dc/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 A9(e,t,n=1,r=`southeast`,i){let a=D9(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(sst(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 cst(a===`width`?c:l,i,a)}let u=ost(Math.round(c)),d=ost(Math.round(l));return u*d<=8294400||(Math.abs(o)>=Math.abs(s)?u=Math.max(240,Math.floor(dc/d)):d=Math.max(240,Math.floor(dc/u))),{width:u,height:d}}var lst=(e,t,n)=>{let r=(e<n?(n+e)/2:e)+t;return r<=n?r*2-n:r},ust=(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 dst(e,t,n,r=1,i=`southeast`,a){let o=D9(r),s=e.width*o,c=e.height*o,l=i.includes(`east`)?lst(s,t.x,n.width):i.includes(`west`)?ust(s,t.x,n.width):s,u=i.includes(`south`)?lst(c,t.y,n.height):i.includes(`north`)?ust(c,t.y,n.height):c,d=l-s,f=u-c;return A9(e,{x:i.includes(`west`)?-d:d,y:i.includes(`north`)?-f:f},o,i,a)}function fst(e,t=1){let n=O9(e),r=D9(t);return A9({width:n.width/r,height:n.height/r},{x:0,y:0})}var pst={"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}},j9=Qs.map(e=>({id:e,...pst[e]}));function mst(e){if(e.mode===`fill`)return{_tag:`fill`};if(e.mode===`preset`&&e.preset!==void 0){let t=j9.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 hst(e,t,n,r){await n(e),r(t)}var M9=`responsive`,gst=[{value:M9,label:`Responsive`},...j9.map(e=>({value:e.id,label:e.label}))];function _st(){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 vst(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`&&j9.some(e=>e.id===n.presetId)?n.presetId:M9,m=Number(f.width),g=Number(f.height),_;t[4]!==g||t[5]!==m?(_=Number.isInteger(m)&&Number.isInteger(g)&&m>=240&&m<=3840&&g>=240&&g<=3840&&m*g<=8294400,t[4]=g,t[5]=m,t[6]=_):_=t[6];let v=_,y;t[7]!==i||t[8]!==a||t[9]!==o?(y=(e,t)=>{let n=t===void 0?i:t;c(!0),hst(e,n,o,a).then(()=>{c(!1),u(null)},()=>c(!1))},t[7]=i,t[8]=a,t[9]=o,t[10]=y):y=t[10];let b=y,x;t[11]!==b||t[12]!==g||t[13]!==v||t[14]!==m||t[15]!==n.height||t[16]!==n.width?(x=()=>{if(!v||m===n.width&&g===n.height){u(null);return}b({_tag:`freeform`,width:m,height:g})},t[11]=b,t[12]=g,t[13]=v,t[14]=m,t[15]=n.height,t[16]=n.width,t[17]=x):x=t[17];let S=x,C;t[18]!==i||t[19]!==n?(C=(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=A9(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]=C):C=t[20];let w=C,T;t[21]!==b||t[22]!==i||t[23]!==n._tag||t[24]!==n.height||t[25]!==n.width?(T=e=>{if(!e)return;if(e===M9){if(n._tag===`freeform`)return;b({_tag:`freeform`,width:n.width,height:n.height});return}let t=j9.find(t=>t.id===e);t&&b(mst({mode:`preset`,preset:t.id}),i===null?null:t.width/t.height)},t[21]=b,t[22]=i,t[23]=n._tag,t[24]=n.height,t[25]=n.width,t[26]=T):T=t[26];let E=T,D;t[27]!==b||t[28]!==i||t[29]!==g||t[30]!==v||t[31]!==m||t[32]!==n?(D=()=>{let e=v&&(m!==n.width||g!==n.height)?{_tag:`freeform`,width:m,height:g}:n;b({...e,width:e.height,height:e.width},i===null?null:1/i)},t[27]=b,t[28]=i,t[29]=g,t[30]=v,t[31]=m,t[32]=n,t[33]=D):D=t[33];let O=D,k;t[34]!==i||t[35]!==g||t[36]!==m||t[37]!==a?(k=()=>{a(i===null?m/g:null)},t[34]=i,t[35]=g,t[36]=m,t[37]=a,t[38]=k):k=t[38];let A=k,j;t[39]===r?j=t[40]:(j={width:r,height:32},t[39]=r,t[40]=j);let M;t[41]===S?M=t[42]:(M=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"]`)||S()},t[41]=S,t[42]=M);let N;t[43]===r?N=t[44]:(N=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]=N);let P=r>=440?`w-36`:`w-24`,F;t[45]===P?F=t[46]:(F=q(`shrink-0 justify-between px-1.5 font-medium`,P),t[45]=P,t[46]=F);let I;t[47]===Symbol.for(`react.memo_cache_sentinel`)?(I=(0,Y.jsx)(Mc,{}),t[47]=I):I=t[47];let L;t[48]===F?L=t[49]:(L=(0,Y.jsx)(So,{variant:`ghost`,size:`xs`,className:F,"aria-label":`Browser device preset`,children:I}),t[48]=F,t[49]=L);let R;t[50]===Symbol.for(`react.memo_cache_sentinel`)?(R=(0,Y.jsx)(vl,{value:M9,children:`Responsive`}),t[50]=R):R=t[50];let z;t[51]===Symbol.for(`react.memo_cache_sentinel`)?(z=(0,Y.jsxs)(_u,{align:`start`,alignItemWithTrigger:!1,className:`min-w-64`,children:[R,(0,Y.jsxs)(Ks,{children:[(0,Y.jsx)(Ya,{children:`Standard`}),j9.map(bst)]})]}),t[51]=z):z=t[51];let B;t[52]!==s||t[53]!==E||t[54]!==p||t[55]!==L?(B=(0,Y.jsxs)(ru,{modal:!1,value:p,onValueChange:E,items:gst,disabled:s,children:[L,z]}),t[52]=s,t[53]=E,t[54]=p,t[55]=L,t[56]=B):B=t[56];let V;t[57]===S?V=t[58]:(V=e=>{e.preventDefault(),S()},t[57]=S,t[58]=V);let H=f.width,U;t[59]!==n.height||t[60]!==n.width?(U=()=>u(e=>e??{width:String(n.width),height:String(n.height)}),t[59]=n.height,t[60]=n.width,t[61]=U):U=t[61];let W;t[62]===w?W=t[63]:(W=e=>w(`width`,e.target.value),t[62]=w,t[63]=W);let G=!v,ee=r>=360?`w-14`:`w-11`,te;t[64]===ee?te=t[65]:(te=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]=te);let ne;t[66]!==s||t[67]!==f.width||t[68]!==U||t[69]!==W||t[70]!==G||t[71]!==te?(ne=(0,Y.jsx)(LC,{nativeInput:!0,type:`number`,inputMode:`numeric`,size:`sm`,min:240,max:h,value:H,disabled:s,onFocus:U,onChange:W,"aria-label":`Viewport width`,"aria-invalid":G,className:te}),t[66]=s,t[67]=f.width,t[68]=U,t[69]=W,t[70]=G,t[71]=te,t[72]=ne):ne=t[72];let K;t[73]===Symbol.for(`react.memo_cache_sentinel`)?(K=(0,Y.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:`×`}),t[73]=K):K=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]===w?ae=t[78]:(ae=e=>w(`height`,e.target.value),t[77]=w,t[78]=ae);let oe=!v,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)(LC,{nativeInput:!0,type:`number`,inputMode:`numeric`,size:`sm`,min:240,max:h,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]!==V||t[89]!==ne||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:V,children:[ne,K,le]}),t[88]=V,t[89]=ne,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||!v,_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)(qte,{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]!==A?(be=(0,Y.jsx)(rr,{variant:`ghost`,size:`icon-xs`,type:`button`,"aria-label":de,"aria-pressed":fe,title:pe,className:he,disabled:ge,onPointerDown:yst,onClick:A,children:ye}),t[98]=de,t[99]=fe,t[100]=pe,t[101]=he,t[102]=ge,t[103]=ye,t[104]=A,t[105]=be):be=t[105];let xe;t[106]===Symbol.for(`react.memo_cache_sentinel`)?(xe=(0,Y.jsx)(_st,{}),t[106]=xe):xe=t[106];let Se;t[107]!==s||t[108]!==O?(Se=(0,Y.jsx)(rr,{variant:`ghost`,size:`icon-xs`,type:`button`,"aria-label":`Rotate viewport`,disabled:s,onClick:O,children:xe}),t[107]=s,t[108]=O,t[109]=Se):Se=t[109];let Ce;t[110]===b?Ce=t[111]:(Ce=()=>{b({_tag:`fill`},null)},t[110]=b,t[111]=Ce);let we;t[112]===Symbol.for(`react.memo_cache_sentinel`)?(we=(0,Y.jsx)(ct,{}),t[112]=we):we=t[112];let Te;t[113]!==s||t[114]!==Ce?(Te=(0,Y.jsx)(rr,{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]=Te):Te=t[115];let Ee;return t[116]!==M||t[117]!==N||t[118]!==B||t[119]!==ue||t[120]!==be||t[121]!==Se||t[122]!==Te||t[123]!==j?(Ee=(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:j,role:`toolbar`,"aria-label":`Browser device toolbar`,"data-browser-device-toolbar":!0,onBlur:M,children:[N,B,ue,be,Se,Te]}),t[116]=M,t[117]=N,t[118]=B,t[119]=ue,t[120]=be,t[121]=Se,t[122]=Te,t[123]=j,t[124]=Ee):Ee=t[124],Ee}function yst(e){return e.preventDefault()}function bst(e){return(0,Y.jsx)(vl,{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 xst=`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]`,Sst=`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 N9(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(xst,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(Sst,_,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 Cst(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)(N9,{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)(N9,{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)(N9,{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)(N9,{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)(N9,{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 wst=class extends ou()(`BrowserRecordingUnavailableError`,{tabId:Nu}){get message(){return`Browser recording is unavailable for tab ${this.tabId}.`}},Tst=class extends ou()(`BrowserRecordingConflictError`,{requestedTabId:Nu,activeTabId:Nu}){get message(){return`Cannot record tab ${this.requestedTabId} while tab ${this.activeTabId} is already being recorded.`}},Est=class extends ou()(`BrowserRecordingCanvasUnavailableError`,{tabId:Nu,width:o,height:o}){get message(){return`Browser recording canvas ${this.width}x${this.height} is unavailable for tab ${this.tabId}.`}},P9=class extends ou()(`BrowserRecordingOperationError`,{operation:ba([`initialize-media-recorder`,`subscribe-frames`,`start-media-recorder`,`start-screencast`,`stop-screencast`,`wait-first-frame`,`wait-startup`,`stop-media-recorder`,`save-artifact`,`cleanup`]),tabId:Nu,cause:jt()}){get message(){return`Browser recording operation ${this.operation} failed for tab ${this.tabId}.`}},Dst=Pl(P9),F9=Ar({tabIds:new Set}).pipe(on,Di(`preview:active-browser-recording-tabs`));function Ost(){return Io(F9).tabIds}var I9=new Map,L9=null,kst=5e3,Ast=5e3;function jst(e){return Array.from(I9.values()).flatMap(t=>t.threadRef?.environmentId===e.environmentId&&t.threadRef.threadId===e.threadId?[{runtimeTabId:t.tabId,serverTabId:t.serverTabId}]:[])}function Mst(e,t){return jst(e).find(e=>e.serverTabId===t)?.runtimeTabId??null}var Nst=()=>[`video/mp4;codecs=avc1.42E01E`,`video/webm;codecs=vp9`,`video/webm`].find(e=>MediaRecorder.isTypeSupported(e))??`video/webm`,Pst=e=>{let t=I9.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(I9.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}`},R9=async e=>{if(!e||e.state===`inactive`)return;let t=new Promise(t=>e.addEventListener(`stop`,()=>t(),{once:!0}));e.stop(),await t},z9=e=>{I9.get(e.tabId)===e&&(e.settleFirstFrameSize(`cancelled`),I9.delete(e.tabId),I9.size===0&&(L9?.(),L9=null),Tt.set(F9,{tabIds:new Set(I9.keys())}))},B9=async(e,t)=>{let n=[];try{await e.recording.stopScreencast(t.tabId)}catch(e){n.push(e)}try{await R9(t.recorder)}catch(e){n.push(e)}finally{z9(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]})},V9=(e,t=Error(`Browser recording startup was cancelled for tab ${e.tabId}.`))=>new P9({operation:`start-screencast`,tabId:e.tabId,cause:t}),Fst=e=>I9.get(e.tabId)===e&&e.lifecycle.phase===`starting`,Ist=async e=>{if(e.frameSizeEstablished)return!0;let t=null,n=await Promise.race([e.firstFrameSize,new Promise(e=>{t=setTimeout(()=>e(`timeout`),Ast)})]);return t!==null&&clearTimeout(t),n===`frame`},Lst=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}.`))},kst)})])}catch(t){throw new P9({operation:`wait-startup`,tabId:e.tabId,cause:t})}finally{t!==null&&clearTimeout(t)}},Rst=e=>Dst(e)&&e.operation===`wait-startup`;async function zst(e,t=null,n=e){let r=sI;if(!r)throw new wst({tabId:e});let i=I9.get(e);if(i){if(i.lifecycle.phase===`recording`)return i.startedAt;throw new Tst({requestedTabId:e,activeTabId:i.tabId})}let a=t===null?null:Mst(t,n);if(a!==null)throw new Tst({requestedTabId:e,activeTabId:a});let o=tI.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 Est({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`}};I9.set(e,h);try{try{L9??=r.recording.onFrame(Pst)}catch(t){throw z9(h),new P9({operation:`subscribe-frames`,tabId:e,cause:t})}try{await r.recording.startScreencast(e)}catch(t){throw Fst(h)?(z9(h),new P9({operation:`start-screencast`,tabId:e,cause:t})):V9(h,t)}let t=async()=>{if(I9.get(e)!==h){try{await r.recording.stopScreencast(e)}catch(t){throw V9(h,AggregateError([Error(`Browser recording startup was cancelled for tab ${e}.`),t],`Browser recording startup cancellation failed for tab ${e}.`,{cause:t}))}throw V9(h)}};await t();let n=await Ist(h);if(await t(),!n){let t=Error(`No valid recording frame arrived for tab ${e}.`),n=await B9(r,h);throw new P9({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=Nst(),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 B9(r,h);throw new P9({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 B9(r,h);throw new P9({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`}),Tt.set(F9,{tabIds:new Set(I9.keys())}),u}finally{f?.()}}var Bst=async(e,t)=>{let{tabId:n}=t,r;try{await Lst(t);try{await e.recording.stopScreencast(n)}catch(e){throw new P9({operation:`stop-screencast`,tabId:n,cause:e})}if(!t.recorder||!t.mimeType)r={_tag:`Success`,artifact:null};else{try{await R9(t.recorder)}catch(e){throw new P9({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 P9({operation:`save-artifact`,tabId:n,cause:e})}}}catch(e){r={_tag:`Failure`,error:e}}if(r._tag===`Failure`&&Rst(r.error))throw r.error;let i;try{await R9(t.recorder)}catch(e){i=new P9({operation:`stop-media-recorder`,tabId:n,cause:e})}finally{z9(t)}if(r._tag===`Failure`)throw i?new P9({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},Vst=async(e,t)=>{try{return await e.recording.stopScreencast(t.tabId).catch(()=>void 0),await R9(t.recorder).catch(()=>void 0),null}finally{z9(t)}};function H9(e){let t=sI,n=I9.get(e);if(!t||!n)return Promise.resolve(null);if(n.lifecycle.phase===`stopping`)return n.lifecycle.stopPromise;let r=Promise.resolve().then(()=>Bst(t,n)).catch(e=>{if(Rst(e)&&I9.get(n.tabId)===n){let e=n.startupSettled.then(()=>Vst(t,n));n.lifecycle={phase:`stopping`,stopPromise:e},e.catch(()=>void 0)}throw e});return n.lifecycle={phase:`stopping`,stopPromise:r},r}var U9=new Map,W9=new Map,Hst=(e,t)=>{let n=W9.get(e),r=n?n.catch(()=>void 0).then(t):Promise.resolve(t());return W9.set(e,r),r.finally(()=>{W9.get(e)===r&&W9.delete(e)}).catch(()=>void 0),r};function Ust(e){let t=U9.get(e)??{references:0,closeTimer:null,ready:Hst(e,()=>sI?.createTab(e))};return t.closeTimer!==null&&window.clearTimeout(t.closeTimer),t.references+=1,t.closeTimer=null,U9.set(e,t),{ready:t.ready,release:()=>{let t=U9.get(e);t&&(t.references=Math.max(0,t.references-1),!(t.references>0)&&(t.closeTimer=window.setTimeout(()=>{let t=U9.get(e);!t||t.references>0||(U9.delete(e),Hst(e,async()=>{await H9(e).catch(()=>null),await sI?.closeTab(e)}).catch(()=>void 0))},0)))}}}var Wst=-1e5;function Gst(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:Wst,top:Wst,width:r.width,height:r.height,zIndex:-1,pointerEvents:`none`,visibility:`visible`}}var Kst=5*6e4,qst=10*6e4,Jst=class extends ou()(`PreviewWebviewBridgeUnavailableError`,{environmentId:Nu}){get message(){return`Desktop preview configuration is unavailable for environment "${this.environmentId}".`}},Yst=class extends ou()(`PreviewWebviewConfigLoadError`,{environmentId:Nu,cause:jt()}){get message(){return`Failed to load desktop preview configuration for environment "${this.environmentId}".`}};xl([Jst,Yst]);var Xst=(e,t=sI)=>t===null?It(new Jst({environmentId:e})):Ir({try:()=>t.getPreviewConfig(e),catch:t=>new Yst({environmentId:e,cause:t})}),Zst=Ct(e=>Ar(Xst(e)).pipe(F({staleTime:Kst,revalidateOnMount:!0}),tf(qst),Di(`preview:webview-config:${e}`)));function Qst(e){let t=(0,X.c)(4),n;t[0]===e?n=t[1]:(n=Zst(e),t[0]=e,t[1]=n);let r=Io(n),i;return t[2]===r?i=t[3]:(i=ja(Pt(r)),t[2]=r,t[3]=i),i}var $st=15e3,ect=class extends Error{tabId;name=`BrowserViewportCommitTimeoutError`;constructor(e){super(`Timed out committing the browser viewport for tab ${e}`),this.tabId=e}},G9=new Map,K9=new Map,tct=(e,t)=>{let n=(K9.get(e)??Promise.resolve()).catch(()=>void 0).then(()=>({operation:Promise.resolve().then(t)})),r=n.then(({operation:e})=>e),i=r.then(()=>void 0);K9.set(e,i);let a=()=>{K9.get(e)===i&&K9.delete(e)};return i.then(a,a),{started:n,execution:r}};function q9(e,t){return tct(e,t).execution}var nct=(e,t)=>{let n,r=new Promise((t,r)=>{n=setTimeout(()=>r(new ect(e)),$st)});return Promise.race([t,r]).finally(()=>{n!==void 0&&clearTimeout(n)})};function rct(e,t){return G9.set(e,t),()=>{G9.get(e)===t&&G9.delete(e)}}function J9(e,t){let{started:n}=tct(e,()=>{let n=G9.get(e);return n?n(t):Promise.reject(Error(`No visible browser viewport handler for tab ${e}`))});return n.then(({operation:t})=>nct(e,t))}var ict=150;function act(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=E9(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?O9(i):i,y=a&&g._tag!==`fill`?ast(i,g,r):k9(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),J9(t,e)),[t]),x=()=>f(null),S=e=>{let n=++c.current,r=()=>{c.current===n&&x()};J9(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=A9(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}))},ict)},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}=dst({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 oct={attempts:0,windowStartedAt:null};function sct(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 cct(e){let{threadRef:t,tabId:n,runtimeTabId:r,initialUrl:i,viewport:a,zoomFactor:o}=e,s=Qst(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)(oct),[p,m]=(0,J.useState)(!1),h=tI(kc(e=>{let t=e.byTabId[r];return{content:t?.content??null,cornerRadius:t?.cornerRadius??0,fitSourceContent:t?.fitSourceContent??!1,fittedSourceContent:t?.fittedSourceContent??null,rect:tje(e.byTabId,r),visible:t?.visible??!1}}));$ot({threadRef:t,tabId:n,runtimeTabId:r}),(0,J.useEffect)(()=>{f.current=oct;let e=Ust(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=sI;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=sct(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}=act({tabId:r,viewport:a,zoomFactor:o,containerSize:M,deviceToolbarVisible:N,aspectRatio:O}),B=h.fitSourceContent&&C?ist(a,h.fittedSourceContent,w):null,V=B&&C?k9(C,B,w):z,H=(0,J.useCallback)(()=>{let e=u.current;e&&tI.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:{...Gst({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)(vst,{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":E9(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)(Cst,{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 lct(){let e=(0,X.c)(7),{resolvedTheme:t}=HO(),n=Jle(),r;e[0]===n?r=e[1]:(r=Object.entries(n).flatMap(mct),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)(pct,a);let o;if(e[4]===Symbol.for(`react.memo_cache_sentinel`)?(o=[],e[4]=o):o=e[4],(0,J.useEffect)(dct,o),!Fm)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(uct)}),e[5]=i,e[6]=s),s}function uct(e){let{threadRef:t,snapshot:n,runtimeTabId:r,zoomFactor:i}=e,a=n.navStatus._tag===`Idle`?null:n.navStatus.url;return(0,Y.jsx)(cct,{threadRef:t,tabId:n.tabId,runtimeTabId:r,initialUrl:a,viewport:n.viewport??Ln,zoomFactor:i},r)}function dct(){let e=window.desktopBridge?.preview;if(e)return e.onPointerEvent(fct)}function fct(e){T9.getState().apply(e)}function pct(){let e=window.desktopBridge?.preview;if(!e)return;let t=``,n=()=>{let n=Qot(),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 mct(e){let[t,n]=e,r=da(t);return r?Object.values(n.sessions).map(e=>({threadRef:r,snapshot:e,runtimeTabId:iI(r,n.serverEpoch,e.tabId),zoomFactor:n.desktopByTabId[e.tabId]?.zoomFactor??1})):[]}function hct(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 gct=class extends ou()(`PreviewAutomationOverlayTimeoutError`,{requestId:qe,environmentId:ot,threadId:Ii,timeoutMs:Yi}){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.`}},_ct=class extends ou()(`PreviewAutomationNavigationTimeoutError`,{requestId:qe,environmentId:ot,threadId:Ii,tabId:dn,readiness:ba([`domContentLoaded`,`load`]),timeoutMs:Yi}){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.`}},vct=class extends ou()(`PreviewAutomationViewportTimeoutError`,{requestId:qe,environmentId:ot,threadId:Ii,tabId:dn,timeoutMs:Yi}){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 ou()(`PreviewAutomationTargetUnavailableError`,{requestId:qe,operation:ie,environmentId:ot,threadId:Ii,tabId:pr(dn),bridgeAvailable:Vl}){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`}).`}},yct=class extends ou()(`PreviewAutomationRecordingNotActiveError`,{requestId:qe,environmentId:ot,threadId:Ii,tabId:pr(dn)}){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}.`}},bct=class extends ou()(`PreviewAutomationTargetNotEditableHostError`,{requestId:qe,operation:ie,environmentId:ot,threadId:Ii,tabId:pr(dn),selectorKind:Fs(ba([`focused-element`,`locator`,`selector`])),selectorLength:Fs(Yi.check(Jc(0)))}){get responseTag(){return`PreviewAutomationTargetNotEditableError`}get message(){return`Preview automation ${this.operation} request ${this.requestId} requires an editable target in tab ${this.tabId??`unassigned`}.`}},xct=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 ou()(`PreviewAutomationOperationError`,{requestId:qe,operation:ie,environmentId:ot,threadId:Ii,tabId:pr(dn),cause:jt()}){static fromCause(t){if(Sct(t.cause))return t.cause;let n=xct(t.cause);return n?new bct({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`}).`}},Sct=Pl(xl([gct,_ct,vct,Y9,yct,bct,X9]));function Cct(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 wct={_tag:`freeform`,width:1280,height:800};function Tct(e){return e.open??e.show??!0}function Ect(e,t){return e.url!==void 0||t.navStatus._tag!==`Idle`}function Dct(e,t){let n=t.viewport??Ln;return!e&&n._tag===`fill`?wct:null}function Z9(e,t,n,r){let i=lC(e);if(i.sessions[t]&&rje(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:!!sI})}async function Oct(e,t,n,r,i,a,o){let s=a??`load`;if(!sI||(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 sI.automation.evaluate(r,{expression:`document.readyState`});if(e===`interactive`||e===`complete`)return}else{let e=await sI.automation.status(r);if(e.available&&!e.loading)return}await new Promise(e=>window.setTimeout(e,50))}throw new _ct({requestId:t,environmentId:e.environmentId,threadId:e.threadId,tabId:n,readiness:s,timeoutMs:o})}function kct(e,t){return Cct(X9.fromCause({...t,cause:e}))}function Act(e){return Ar(t=>{t.mount(e.connectionAtom),t.mount(e.requestHandlerAtom);let n=!1,r=null,i=!1,a=null,o=0,s=n=>{if(!qt(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:kct(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);qt(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=qt(c)&&c.value.connectionId===r&&c.value.connectionId!==a;!n&&(o===0||e)&&s(c)})}).pipe(tf(0),Di(e.label))}function jct(){let e=globalThis.crypto.getRandomValues(new Uint8Array(16));return`preview-${Array.from(e,e=>e.toString(16).padStart(2,`0`)).join(``)}`}function Mct(e,t){return Object.keys(e.sessions).length===0||t===void 0||e.sessions[t]===void 0}function Nct(e,t){let n=t?e.sessions[t]??null:e.snapshot;return{tabId:n?.tabId??null,snapshot:n}}function Pct(e,t,n){return n?t===void 0?e.snapshot?.tabId??null:e.sessions[t]?.tabId??null:null}function Fct(e){let{setting:t,appliedSettingKey:n,declaredViewport:r,renderedViewport:i}=e;if(n!==E9(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 Ict(e,t,n,r,i){let a=E9(t);return i===r&&E9(n)===a&&E9(e)!==a}var Lct=500,Rct=async e=>{let t=Date.now()+Lct;for(;Date.now()<=t;){if(tI.getState().byTabId[e]?.visible)return;await new Promise(e=>window.setTimeout(e,16))}},zct=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]&&sI&&(await sI.automation.status(r)).available)return;await new Promise(e=>window.setTimeout(e,50))}throw new gct({requestId:t,environmentId:e.environmentId,threadId:e.threadId,timeoutMs:a})},Bct=e=>Array.from(document.querySelectorAll(`webview[data-preview-tab]`)).find(t=>t.getAttribute(`data-preview-tab`)===e)??null,Vct=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},Hct=async e=>{let t=Bct(e);return t?await Vct(t):null},Uct=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},Wct=async(e,t,n,r,i,a)=>{let o=Date.now()+i;for(;Date.now()<=o;){Z9(e,t,n,a);try{let e=Bct(n),t=e?.getAttribute(`data-preview-viewport-key`)??null,i=Uct(e),a=e?await Vct(e):null;if(a&&Fct({setting:r,appliedSettingKey:t,declaredViewport:i,renderedViewport:a}))return a}catch{}await new Promise(e=>window.setTimeout(e,50))}throw new vct({...a,tabId:t,timeoutMs:i})},Q9=async(e,t)=>{let n=lC(e),{snapshot:r,tabId:i}=Nct(n,t),a=i?iI(e,n.serverEpoch,i):null,o=a?tI.getState().byTabId[a]?.visible??!1:!1,s=r?r.viewport??Ln:void 0,c=a?await Hct(a).catch(()=>null):null,l={...s===void 0?{}:{viewportSetting:s},...c===null?{}:{viewport:c}};if(a&&i&&sI&&n.desktopByTabId[i])return{...await sI.automation.status(a),tabId:i,visible:o,...l};let u=r?.navStatus;return{available:!!sI?.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 fe(e)},Gct=e=>{throw e};function Kct(){let e=(0,X.c)(4),{environments:t}=yd();if(!Fm||!sI?.automation)return null;let n;e[0]===t?n=e[1]:(n=t.map(qct),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 qct(e){return(0,Y.jsx)(Jct,{environmentId:e.environmentId},e.environmentId)}function Jct(e){let{environmentId:t}=e,n=(0,J.useContext)(ss),[r]=(0,J.useState)(jct),i=(0,J.useMemo)(()=>({clientId:r,environmentId:t,supportedOperations:[..._e]}),[r,t]),a=JS.automationRequests({environmentId:t,input:i}),o=ZD(JS.list,{reportFailure:!1}),s=qu(JS.open,{reportFailure:!1}),c=qu(JS.resize,{reportFailure:!1}),l=qu(JS.respondToAutomation,`preview automation response`),u=qu(JS.focusAutomationHost,`preview automation host focus`),[d]=(0,J.useState)(()=>Ar(null)),f=Io(d),p=(0,J.useCallback)(async e=>{let r={environmentId:t,threadId:e.threadId},i=e.tabId??null;try{let a=lC(r);if(Mct(a,e.tabId)){let i={environmentId:t,input:{threadId:e.threadId}};n.refresh(JS.list(i));let s=await o(i);if(s._tag===`Failure`)return $9(s);Xle(r,s.value),a=lC(r)}i=e.tabId??a.snapshot?.tabId??null;let l={requestId:e.requestId,operation:e.operation,environmentId:t,threadId:e.threadId,tabId:i,bridgeAvailable:!!sI},u=async()=>{let t=sI,n=i;if(!t||!n)throw new Y9(l);let a=lC(r),o=iI(r,a.serverEpoch,n);return await zct(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?rC(t,{kind:`url`,url:n.url}).resolvedUrl:void 0,l=Pct(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;uC(r,a),l=a.tabId,u=a,i=l}let f=iI(r,lC(r).serverEpoch,l);if(u){let n=Dct(d,u);if(n){let i=await q9(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,dC(r,i.value)}}let p=Tct(n);return p&&aI.getState().open(r,l),u&&Ect(n,u)&&await zct(r,e.requestId,l,f,e.operation,e.timeoutMs),p&&await Rct(f),d&&o&&sI&&(Z9(r,l,f,e),await sI.navigate(f,o),await Oct(r,e.requestId,l,f,e.operation,`load`,e.timeoutMs)),await Q9(r,l)}case`navigate`:{let n=await u(),i=e.input,a=rC(t,i.target??{kind:`url`,url:i.url});return await n.bridge.navigate(n.runtimeTabId,a.resolvedUrl),await Oct(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=mst(i),o=await q9(n.runtimeTabId,async()=>{let i=Z9(r,n.tabId,n.runtimeTabId,e),o=i.sessions[n.tabId]?.viewport??Ln,s=await c({environmentId:t,input:{threadId:e.threadId,tabId:n.tabId,viewport:a}});return s._tag===`Failure`?$9(s):(dC(r,s.value),{previousSetting:o,serverEpoch:i.serverEpoch})}),s;try{s=await Wct(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 q9(n.runtimeTabId,async()=>{let i=lC(r),s=i.sessions[n.tabId]?.viewport??Ln;if(Ict(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`&&dC(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 zst(e.runtimeTabId,r,e.tabId);return{tabId:e.tabId,recording:!0,startedAt:t}}case`recordingStop`:{let n=jst(r),a=hct(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 H9(o):null;return!s||!a?Gct(new yct({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)(()=>Ar({handle:p})),h=Wu(m);return(0,J.useEffect)(()=>{h({handle:p})},[p,h]),Io((0,J.useMemo)(()=>Act({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 Yct(e){let t=(0,X.c)(6),{router:n}=e,r;t[0]===n?r=t[1]:(r=(0,Y.jsx)($ee,{router:n}),t[0]=n,t[1]=r);let i,a;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,Y.jsx)(Kct,{}),a=(0,Y.jsx)(lct,{}),t[2]=i,t[3]=a):(i=t[2],a=t[3]);let o;return t[4]===r?o=t[5]:(o=(0,Y.jsxs)(Fl,{children:[r,i,a]}),t[4]=r,t[5]=o),o}var Xct=Wot(Fm?Bp():zp());Fm&&(Zot(navigator.platform),Yot()),ete.createRoot(document.getElementById(`root`)).render((0,Y.jsx)(J.StrictMode,{children:(0,Y.jsx)(Yct,{router:Xct})}));export{aU as $,lC as $n,UI as $t,wW as A,ON as An,Fh as Ar,cBe as At,SU as B,Wj as Bn,vR as Bt,mX as C,eI as Cn,Jh as Cr,PV as Ct,CW as D,BN as Dn,Wh as Dr,uV as Dt,VHe as E,VN as En,Gh as Er,uBe as Et,dW as F,Vj as Fn,ph as Fr,eV as Ft,_U as G,ZD as Gn,qI as Gt,bU as H,HO as Hn,XI as Ht,THe as I,Kj as In,oh as Ir,eBe as It,dU as J,LC as Jn,rNe as Jt,mU as K,pw as Kn,tNe as Kt,uW as L,Hj as Ln,ih as Lr,$B as Lt,TW as M,wN as Mn,Oh as Mr,aV as Mt,MHe as N,hM as Nn,gh as Nr,nV as Nt,HHe as O,TN as On,Bh as Or,cV as Ot,gW as P,lM as Pn,hh as Pr,tV as Pt,oU as Q,pC as Qn,zI as Qt,oW as R,Gj as Rn,$m as Rr,Hz as Rt,PX as S,tI as Sn,Yh as Sr,NV as St,DW as T,OF as Tn,Kh as Tr,dV as Tt,yU as U,xO as Un,YI as Ut,xU as V,Uj as Vn,ZI as Vt,vU as W,oO as Wn,JI as Wt,cU as X,mC as Xn,GI as Xt,uU as Y,PC as Yn,iNe as Yt,sU as Z,Yle as Zn,aNe as Zt,U6e as _,sI as _n,D_ as _r,nVe as _t,H9 as a,II as an,Rle as ar,$H as at,ZX as b,iI as bn,og as br,TH as bt,T9 as c,MI as cn,XS as cr,zH as ct,lat as d,bI as dn,lS as dr,LH as dt,WI as en,Xle as er,iU as et,pat as f,vI as fn,aS as fr,IH as ft,l2 as g,uje as gn,T_ as gr,MH as gt,s9 as h,fI as hn,q_ as hr,NH as ht,zst as i,LI as in,zle as ir,eU as it,bW as j,kN as jn,jh as jr,oV as jt,zHe as k,AN as kn,Rh as kr,sBe as kt,dat as l,NI as ln,JS as lr,BH as lt,rat as m,kMe as mn,hy as mr,PH as mt,rct as n,PI as nn,dC as nr,nU as nt,Ost as o,BI as on,QS as or,QH as ot,mat as p,_I as pn,gy as pr,RH as pt,fU as q,JC as qn,RI as qt,Mst as r,KI as rn,cC as rr,tU as rt,fst as s,VI as sn,eC as sr,ZH as st,J9 as t,JMe as tn,fC as tr,rU as tt,uat as u,CI as un,uS as ur,FH as ut,e2 as v,oI as vn,p_ as vr,AH as vt,eUe as w,TAe as wn,qh as wr,OV as wt,jX as x,rI as xn,ag as xr,CH as xt,b6e as y,aI as yn,Vg as yr,EH as yt,CU as z,FCe as zn,Fm as zr,VL as zt};
|
|
581
|
-
//# sourceMappingURL=index-
|
|
581
|
+
//# sourceMappingURL=index-qr_OWE66.js.map
|