@p4code/cli 0.1.21 → 0.1.22
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 +229 -37
- package/dist/client/assets/{DiffPanel-2Gqo7b0N.js → DiffPanel-Cdf69_RS.js} +2 -2
- package/dist/client/assets/{FilePreviewPanel-Po3D7bHa.js → FilePreviewPanel-CkKXCbcG.js} +2 -2
- package/dist/client/assets/{PreviewPanel-ebSBxbsf.js → PreviewPanel-BtqdQqtN.js} +2 -2
- package/dist/client/assets/{angular-html-BhHAxMde.js → angular-html-BPHFZwgm.js} +2 -2
- package/dist/client/assets/{angular-ts-CxZFyQM4.js → angular-ts-CXoIeuGh.js} +2 -2
- package/dist/client/assets/{apl-D8rOr4fH.js → apl-C6oPUNZZ.js} +2 -2
- package/dist/client/assets/arrow-right-7YX6fLbL.js +2 -0
- package/dist/client/assets/{astro-DYSYdOU9.js → astro-Bq_n5uKv.js} +2 -2
- package/dist/client/assets/{blade-DaHnYPa_.js → blade-DYe65h_C.js} +2 -2
- package/dist/client/assets/{c-oRWOBveW.js → c-BsDji_bt.js} +2 -2
- package/dist/client/assets/{cobol-Djebq6RA.js → cobol-CoC31Rpg.js} +2 -2
- package/dist/client/assets/{coffee-CKhxS88r.js → coffee-DU1_O9cH.js} +2 -2
- package/dist/client/assets/{cpp-BjVgWq1h.js → cpp-D5_eYHZr.js} +2 -2
- package/dist/client/assets/{crystal-DXzIaEKx.js → crystal-3iIyvfhL.js} +2 -2
- package/dist/client/assets/{css-7AulbBAq.js → css-B4bpFXEv.js} +2 -2
- package/dist/client/assets/{edge-B3VgcX6t.js → edge--YoYp8s_.js} +2 -2
- package/dist/client/assets/{elixir-DGUU7Wwf.js → elixir-CZ1wqlQn.js} +2 -2
- package/dist/client/assets/{elm-B9tr8qBJ.js → elm-DKdyYY92.js} +2 -2
- package/dist/client/assets/{erb-BgSl2c_f.js → erb-PeUqy_9N.js} +2 -2
- package/dist/client/assets/{fileCommentAnnotations-C06ZwrTh.js → fileCommentAnnotations-BTb-0nj3.js} +2 -2
- package/dist/client/assets/{git-rebase-CJMhrhmS.js → git-rebase-1Z5OxWid.js} +2 -2
- package/dist/client/assets/{glimmer-js-Dzf5VMSx.js → glimmer-js-Br0y4u5b.js} +2 -2
- package/dist/client/assets/{glimmer-ts-CHD8gl5-.js → glimmer-ts-Oh0AMNJv.js} +2 -2
- package/dist/client/assets/{glsl-CDpKClnF.js → glsl-DI6kM2gF.js} +2 -2
- package/dist/client/assets/{graphql-DX6Ul3G5.js → graphql-VCSJCQkl.js} +2 -2
- package/dist/client/assets/{hack-NU-7p0gC.js → hack-4xJQMtbZ.js} +2 -2
- package/dist/client/assets/{haml-Cf7Y-ZgP.js → haml-Bc0kPVkr.js} +2 -2
- package/dist/client/assets/{handlebars-BOvzNDfr.js → handlebars-Znb8TzWA.js} +2 -2
- package/dist/client/assets/{html-CokKN6Uo.js → html-_Zw71zQT.js} +2 -2
- package/dist/client/assets/{html-derivative-CcTOncd6.js → html-derivative-D6Fn1mLE.js} +2 -2
- package/dist/client/assets/{http-CGr88I6S.js → http-CSdnm1Wh.js} +2 -2
- package/dist/client/assets/{hurl-BfdIF20D.js → hurl-DKOuNoWT.js} +2 -2
- package/dist/client/assets/{index-BwGqPoA8.js → index-CeztlSXj.js} +13 -7
- package/dist/client/assets/{java-DjcrYPKU.js → java-Czo4Dn1f.js} +2 -2
- package/dist/client/assets/{javascript-C1msiELJ.js → javascript-fyReKHSS.js} +2 -2
- package/dist/client/assets/{jinja-BP-z74Sl.js → jinja-CvJhR5Z5.js} +2 -2
- package/dist/client/assets/{jison-DTU_ib6_.js → jison-DSlj1sEU.js} +2 -2
- package/dist/client/assets/{json-n2oR8huX.js → json-fCB7n2pX.js} +2 -2
- package/dist/client/assets/{jsx-DLc8ZGPF.js → jsx-C1OJlXdb.js} +2 -2
- package/dist/client/assets/{julia-BFtTfktg.js → julia-CmLSMgqX.js} +2 -2
- package/dist/client/assets/{just-CBZfmiGm.js → just-D9KdTXpD.js} +2 -2
- package/dist/client/assets/{latex-B9jcgQKp.js → latex-BZoE-Z3X.js} +2 -2
- package/dist/client/assets/{liquid-D-PCb97a.js → liquid-DW5UrT3Q.js} +2 -2
- package/dist/client/assets/{lua-CeAbwjz7.js → lua-DMAjig-8.js} +2 -2
- package/dist/client/assets/{marko-D2oCpzm8.js → marko-EN2dMS-t.js} +2 -2
- package/dist/client/assets/{mdc-BN4ff7dr.js → mdc-DV5R0Zdp.js} +2 -2
- package/dist/client/assets/{nginx-TigpgX3q.js → nginx-BhF2pPjp.js} +2 -2
- package/dist/client/assets/{nim-BbkIxZP5.js → nim-Ck0oR8VY.js} +2 -2
- package/dist/client/assets/{perl-Dq3UNlmA.js → perl-B4V1RSOt.js} +2 -2
- package/dist/client/assets/{php-CDBbIDUr.js → php-BvwSzqRH.js} +2 -2
- package/dist/client/assets/{pug-X1om8_0C.js → pug-DB3guzOM.js} +2 -2
- package/dist/client/assets/{qml-C_aweCjl.js → qml-CohVRZGq.js} +2 -2
- package/dist/client/assets/{r-BH02pZo7.js → r-Doi-hRR2.js} +2 -2
- package/dist/client/assets/{razor-DFd9duVt.js → razor-CtBV-RZa.js} +2 -2
- package/dist/client/assets/{regexp-BYgWQcZZ.js → regexp-DgF6jh6T.js} +2 -2
- package/dist/client/assets/{rst-DS4ajG1_.js → rst-1GlNPFb8.js} +2 -2
- package/dist/client/assets/{ruby-rrP3E-yX.js → ruby-C_Jg-W0j.js} +2 -2
- package/dist/client/assets/{sas-qOp3AbMp.js → sas-IRPqQRQC.js} +2 -2
- package/dist/client/assets/{scss-BePdknOf.js → scss-BPKDbfld.js} +2 -2
- package/dist/client/assets/{shellscript-Di7DOIUv.js → shellscript-D5KbVhsx.js} +2 -2
- package/dist/client/assets/{shellsession-DS-qEJoT.js → shellsession-bEniUyPe.js} +2 -2
- package/dist/client/assets/{soy-CT_pCK5o.js → soy-D0Pcy9LW.js} +2 -2
- package/dist/client/assets/{sql-CVynNG6j.js → sql-DF2TL966.js} +2 -2
- package/dist/client/assets/{stata-B2fKxQHN.js → stata-BLI2BTCU.js} +2 -2
- package/dist/client/assets/{surrealql-BOcosx9e.js → surrealql-BjtO5tmi.js} +2 -2
- package/dist/client/assets/{svelte-BQBQ3ysY.js → svelte-IyvKNOcX.js} +2 -2
- package/dist/client/assets/{templ-cinsfbYE.js → templ-qRJlnfHP.js} +2 -2
- package/dist/client/assets/{tex-PiJ0CI8J.js → tex-CgYv5ALc.js} +2 -2
- package/dist/client/assets/{textarea-DV6gvhvo.js → textarea-B03Qe3NX.js} +2 -2
- package/dist/client/assets/{ts-tags-jRjqE2jk.js → ts-tags-YasuuPCT.js} +2 -2
- package/dist/client/assets/{tsx-DqzTbomV.js → tsx-BF7eypTR.js} +2 -2
- package/dist/client/assets/{twig-5U1Vd9zl.js → twig-BF-FIMTp.js} +2 -2
- package/dist/client/assets/{typescript-DmYNCX8k.js → typescript-CtOBCMI7.js} +2 -2
- package/dist/client/assets/{vue-BOE7yHne.js → vue-BTbCYZab.js} +2 -2
- package/dist/client/assets/{vue-html-roHe5KnN.js → vue-html-1KQNz6IV.js} +2 -2
- package/dist/client/assets/{vue-vine-YC-R0SEx.js → vue-vine-BVHOJ5oI.js} +2 -2
- package/dist/client/assets/{xml-B-QQaugn.js → xml-CftlzqvG.js} +2 -2
- package/dist/client/assets/{xsl-CyPKxPW7.js → xsl-DoQ9dHRM.js} +2 -2
- package/dist/client/assets/{yaml-Bq2pe1E4.js → yaml-DMUX1MAF.js} +2 -2
- package/dist/client/index.html +2 -2
- package/package.json +1 -1
- package/dist/client/assets/arrow-right-Dseaz2v4.js +0 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/angular-html-
|
|
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,$u as d,A as f,Aa as p,Ac as m,Ad as h,Af as g,Al as _,An as v,Ao as y,Ap as b,Ar as x,As as S,At as C,Au as w,B as T,Ba as E,Bc 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,Ci as U,Cl as W,Cn as ee,Co as G,Cp as te,Cr as ne,Cs as re,Ct as ie,Cu as ae,D as oe,Da as se,Dc as ce,Dd as le,Df as ue,Di as de,Dl as fe,Dn as pe,Do as me,Dp as he,Dr as ge,Ds as _e,Dt as ve,Du as ye,E as be,Ea as xe,Ec as Se,Ed as Ce,Ef as we,Ei as Te,El as Ee,En as De,Eo as Oe,Ep as ke,Er as Ae,Es as je,Et as Me,Eu as Ne,F as Pe,Fa as Fe,Fc as Ie,Fd as Le,Ff as Re,Fi as ze,Fl as Be,Fn as Ve,Fo as He,Fr as Ue,Fs as We,Ft as K,Fu as Ge,G as Ke,Ga as qe,Gc as Je,Gd as Ye,Gf as Xe,Gi as Ze,Gl as Qe,Gn as $e,Go as et,Gr as tt,Gs as nt,Gt as rt,Gu as it,H as at,Ha as ot,Hc as st,Hd as ct,Hf as lt,Hi as ut,Hl as dt,Hn as ft,Ho as pt,Hr as mt,Hs as ht,Ht as gt,Hu as _t,I as vt,Ia as yt,Ic as bt,Id as xt,If as St,Ii as Ct,Il as wt,In as Tt,Io as Et,Ir as Dt,Is as Ot,It as kt,Iu as At,J as jt,Ja as Mt,Jc as Nt,Jd as Pt,Jf as Ft,Ji as It,Jl as Lt,Jn as Rt,Jo as zt,Js as Bt,Jt as Vt,Ju as Ht,K as Ut,Ka as Wt,Kc as Gt,Kd as Kt,Kf as qt,Ki as Jt,Kl as Yt,Kn as Xt,Ko as Zt,Kr as Qt,Ks as $t,Kt as en,Ku as tn,L as nn,La as rn,Lc as an,Ld as on,Lf as sn,Li as cn,Ll as ln,Ln as un,Lo as dn,Lr as fn,Ls as pn,Lt as mn,Lu as hn,M as gn,Ma as _n,Mc as vn,Md as yn,Mf as bn,Mi as xn,Ml as Sn,Mn as Cn,Mr as wn,Ms as Tn,Mt as En,Mu as Dn,N as On,Na as kn,Nc as An,Nd as jn,Nf as Mn,Ni as Nn,Nl as Pn,Nn as Fn,No as In,Nr as Ln,Ns as Rn,Nt as zn,Nu as Bn,O as q,Oa as Vn,Oc as Hn,Od as Un,Of as Wn,Oi as Gn,Ol as Kn,On as qn,Oo as Jn,Op as Yn,Or as Xn,Os as Zn,Ot as Qn,Ou as $n,P as er,Pa as tr,Pc as nr,Pd as rr,Pf as ir,Pi as ar,Pl as or,Pn as sr,Po as cr,Pr as lr,Ps as ur,Pt as dr,Pu as fr,Q as pr,Qa as mr,Qc as hr,Qd as gr,Qf as _r,Qi as vr,Ql as yr,Qn as br,Qo as xr,Qr as Sr,Qs as Cr,Qt as wr,Qu as Tr,R as Er,Ra as Dr,Rc as Or,Rd as kr,Rf as Ar,Ri as jr,Rl as Mr,Rn as Nr,Ro as Pr,Rr as Fr,Rs as Ir,Rt as Lr,Ru as Rr,S as zr,Sa as Br,Sc as Vr,Sd as Hr,Sf as Ur,Si as Wr,Sl as Gr,Sn as Kr,So as qr,Sp as Jr,Sr as Yr,Ss as Xr,St as Zr,Su as Qr,T as $r,Ta as ei,Tc as ti,Td as ni,Tf as ri,Ti as ii,Tl as ai,Tn as oi,To as si,Tp as ci,Tr as li,Ts as ui,Tt as di,Tu as fi,U as pi,Ua as mi,Uc as hi,Ud as gi,Uf as _i,Ui as vi,Ul as yi,Un as bi,Uo as xi,Ur as Si,Us as Ci,Ut as wi,Uu as Ti,V as Ei,Va as Di,Vc as Oi,Vd as ki,Vf as Ai,Vi as ji,Vl as Mi,Vn as Ni,Vo as Pi,Vr as Fi,Vs as Ii,Vt as Li,Vu as Ri,W as zi,Wa as Bi,Wc as Vi,Wd as Hi,Wf as Ui,Wi,Wl as Gi,Wn as Ki,Wo as qi,Wr as Ji,Ws as Yi,Wt as Xi,Wu as Zi,X as Qi,Xa as $i,Xc as ea,Xd as ta,Xf as na,Xi as ra,Xl as ia,Xn as aa,Xo as oa,Xr as sa,Xs as ca,Xt as la,Xu as ua,Y as da,Ya as fa,Yc as pa,Yd as ma,Yf as ha,Yi as ga,Yl as _a,Yn as va,Yo as ya,Ys as ba,Yt as xa,Yu as Sa,Z as Ca,Za as wa,Zc as Ta,Zd as Ea,Zf as Da,Zi as Oa,Zl as ka,Zn as Aa,Zo as ja,Zr as Ma,Zs as Na,Zt as Pa,Zu as Fa,_ as Ia,_a as La,_c as Ra,_d as za,_f as Ba,_i as Va,_l as Ha,_n as Ua,_o as Wa,_p as Ga,_r as Ka,_s as qa,_t as Ja,_u as Ya,a as Xa,aa as Za,ac as Qa,ad as $a,af as eo,ai as to,an as no,ao as ro,ap as io,ar as ao,as as oo,at as so,au as co,b as lo,ba as uo,bc as fo,bd as po,bf as mo,bi as ho,bl as go,bn as _o,bo as vo,bp as yo,br as bo,bs as xo,bt as So,bu as Co,c as wo,ca as To,cc as Eo,cd as Do,cf as Oo,ci as ko,cl as Ao,cn as jo,co as Mo,cp as No,cr as Po,cs as Fo,ct as Io,cu as Lo,d as Ro,da as zo,dc as Bo,dd as Vo,df as Ho,di as Uo,dl as Wo,dn as Go,do as Ko,dp as qo,dr as Jo,ds as Yo,dt as Xo,du as Zo,ea as Qo,ec as $o,ed as es,ef as ts,ei as ns,el as rs,eo as is,ep as as,er as os,es as ss,et as cs,eu as ls,f as us,fa as ds,fc as fs,fd as ps,ff as ms,fi as hs,fl as gs,fn as _s,fo as vs,fp as ys,fr as bs,fs as xs,ft as Ss,fu as Cs,g as ws,ga as Ts,gc as Es,gd as Ds,gf as Os,gi as ks,gl as As,gn as js,go as Ms,gp as Ns,gr as Ps,gs as Fs,gt as Is,gu as Ls,h as Rs,ha as zs,hc as Bs,hd as Vs,hf as Hs,hi as Us,hl as Ws,hn as Gs,ho as Ks,hp as qs,hr as Js,hs as Ys,ht as Xs,hu as Zs,i as Qs,ia as $s,ic as ec,id as tc,if as nc,ii as rc,il as ic,io as ac,ip as oc,ir as sc,is as cc,it as lc,iu as uc,j as dc,ja as fc,jc as pc,jd as mc,jf as hc,ji as gc,jl as _c,jn as vc,jr as yc,js as bc,jt as xc,ju as Sc,k as Cc,ka as wc,kc as Tc,kd as Ec,kf as Dc,ki as Oc,kl as kc,kn as Ac,ko as jc,kp as Mc,kr as Nc,ks as Pc,kt as Fc,ku as Ic,l as Lc,la as Rc,lc as zc,ld as Bc,lf as Vc,li as Hc,ll as Uc,ln as Wc,lo as Gc,lp as Kc,lr as qc,ls as Jc,lt as Yc,lu as Xc,m as Zc,ma as Qc,mc as $c,md as el,mf as tl,mi as nl,ml as rl,mn as il,mo as al,mp as ol,mr as sl,ms as cl,mt as ll,mu as ul,n as eee,na as dl,nc as fl,nd as pl,nf as ml,ni as hl,nl as gl,nn as _l,no as vl,np as yl,nr as bl,ns as xl,nt as Sl,nu as Cl,o as wl,oa as Tl,oc as El,od as Dl,of as Ol,oi as kl,ol as Al,on as jl,oo as Ml,op as Nl,or as Pl,os as Fl,ot as Il,ou as Ll,p as Rl,pa as zl,pc as Bl,pd as Vl,pf as Hl,pi as Ul,pl as Wl,pn as Gl,po as Kl,pp as ql,pr as Jl,ps as Yl,pt as Xl,pu as Zl,q as Ql,qa as $l,qc as eu,qd as tu,qf as nu,qi as ru,ql as iu,qn as au,qo as ou,qs as su,qt as cu,qu as lu,r as uu,ra as du,rc as fu,rd as pu,rf as mu,ri as hu,rl as gu,rn as _u,ro as vu,rp as yu,rr as bu,rs as xu,rt as Su,ru as Cu,s as wu,sa as Tu,sc as Eu,sd as Du,sf as Ou,si as ku,sl as Au,sn as ju,so as Mu,sp as Nu,sr as Pu,ss as Fu,st as Iu,su as Lu,t as Ru,ta as zu,tc as Bu,td as Vu,tf as Hu,ti as Uu,tn as Wu,to as Gu,tp as Ku,tr as qu,ts as Ju,tt as Yu,tu as Xu,u as Zu,ua as Qu,uc as $u,ud as ed,uf as td,ui as nd,ul as rd,un as id,uo as ad,up as od,ur as sd,us as tee,ut as cd,uu as ld,v as ud,va as dd,vc as fd,vd as pd,vf as md,vi as hd,vl as gd,vn as _d,vo as vd,vp as yd,vr as bd,vs as xd,vt as Sd,vu as Cd,w as wd,wa as Td,wc as Ed,wd as Dd,wf as Od,wi as kd,wl as Ad,wn as jd,wo as Md,wp as Nd,wr as Pd,ws as Fd,wt as Id,wu as Ld,xa as Rd,xc as zd,xd as Bd,xf as Vd,xi as Hd,xl as Ud,xn as Wd,xo as Gd,xp as Kd,xr as qd,xs as Jd,xt as Yd,xu as Xd,y as Zd,ya as Qd,yc as $d,yd as nee,yf as ef,yi as tf,yl as nf,yn as rf,yp as af,yr as of,ys as sf,yt as cf,yu as lf,z as uf,za as df,zc as ff,zd as pf,zf as mf,zi as hf,zl as gf,zn as _f,zo as vf,zr as yf,zs as bf,zt as xf,zu as Sf}from"./textarea-DV6gvhvo.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 Cf=Yn((e=>{var t=ke(),n=he(),r=ci();function i(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function a(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function s(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function c(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function l(e){if(o(e)!==e)throw Error(i(188))}function u(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var s=a.alternate;if(s===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return l(a),e;if(s===r)return l(a),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=s;else{for(var c=!1,u=a.child;u;){if(u===n){c=!0,n=a,r=s;break}if(u===r){c=!0,r=a,n=s;break}u=u.sibling}if(!c){for(u=s.child;u;){if(u===n){c=!0,n=s,r=a;break}if(u===r){c=!0,r=s,n=a;break}u=u.sibling}if(!c)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function d(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=d(e),t!==null)return t;e=e.sibling}return null}var f=Object.assign,p=Symbol.for(`react.element`),m=Symbol.for(`react.transitional.element`),h=Symbol.for(`react.portal`),g=Symbol.for(`react.fragment`),_=Symbol.for(`react.strict_mode`),v=Symbol.for(`react.profiler`),y=Symbol.for(`react.consumer`),b=Symbol.for(`react.context`),x=Symbol.for(`react.forward_ref`),S=Symbol.for(`react.suspense`),C=Symbol.for(`react.suspense_list`),w=Symbol.for(`react.memo`),T=Symbol.for(`react.lazy`),E=Symbol.for(`react.activity`),D=Symbol.for(`react.memo_cache_sentinel`),O=Symbol.iterator;function k(e){return typeof e!=`object`||!e?null:(e=O&&e[O]||e[`@@iterator`],typeof e==`function`?e:null)}var A=Symbol.for(`react.client.reference`);function j(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===A?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case g:return`Fragment`;case v:return`Profiler`;case _:return`StrictMode`;case S:return`Suspense`;case C:return`SuspenseList`;case E:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case h:return`Portal`;case b:return e.displayName||`Context`;case y:return(e._context.displayName||`Context`)+`.Consumer`;case x:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case w:return t=e.displayName||null,t===null?j(e.type)||`Memo`:t;case T:t=e._payload,e=e._init;try{return j(e(t))}catch{}}return null}var M=Array.isArray,N=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,P=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F={pending:!1,data:null,method:null,action:null},I=[],L=-1;function R(e){return{current:e}}function z(e){0>L||(e.current=I[L],I[L]=null,L--)}function B(e,t){L++,I[L]=e.current,e.current=t}var V=R(null),H=R(null),U=R(null),W=R(null);function ee(e,t){switch(B(U,t),B(H,e),B(V,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Gd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Gd(t),e=Kd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}z(V),B(V,e)}function G(){z(V),z(H),z(U)}function te(e){e.memoizedState!==null&&B(W,e);var t=V.current,n=Kd(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),ep._currentValue=F)}var re,ie;function ae(e){if(re===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);re=t&&t[1]||``,ie=-1<e.stack.indexOf(`
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/angular-html-BPHFZwgm.js","assets/textarea-B03Qe3NX.js","assets/html-_Zw71zQT.js","assets/javascript-fyReKHSS.js","assets/css-B4bpFXEv.js","assets/angular-ts-CXoIeuGh.js","assets/scss-BPKDbfld.js","assets/apl-C6oPUNZZ.js","assets/xml-CftlzqvG.js","assets/java-Czo4Dn1f.js","assets/json-fCB7n2pX.js","assets/astro-Bq_n5uKv.js","assets/typescript-CtOBCMI7.js","assets/postcss-BXeXVLqQ.js","assets/tsx-BF7eypTR.js","assets/blade-DYe65h_C.js","assets/html-derivative-D6Fn1mLE.js","assets/sql-DF2TL966.js","assets/bsl-BkkzgIyY.js","assets/sdbl-bTVj8UrX.js","assets/c-BsDji_bt.js","assets/cairo-DLTphjLi.js","assets/python-gzcpVVnB.js","assets/cobol-CoC31Rpg.js","assets/coffee-DU1_O9cH.js","assets/cpp-D5_eYHZr.js","assets/regexp-DgF6jh6T.js","assets/glsl-DI6kM2gF.js","assets/crystal-3iIyvfhL.js","assets/shellscript-D5KbVhsx.js","assets/edge--YoYp8s_.js","assets/elixir-CZ1wqlQn.js","assets/elm-DKdyYY92.js","assets/erb-PeUqy_9N.js","assets/ruby-C_Jg-W0j.js","assets/haml-Bc0kPVkr.js","assets/graphql-VCSJCQkl.js","assets/jsx-C1OJlXdb.js","assets/lua-DMAjig-8.js","assets/yaml-DMUX1MAF.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-1Z5OxWid.js","assets/glimmer-js-Br0y4u5b.js","assets/glimmer-ts-Oh0AMNJv.js","assets/hack-4xJQMtbZ.js","assets/handlebars-Znb8TzWA.js","assets/http-CSdnm1Wh.js","assets/hurl-DKOuNoWT.js","assets/csv-Dx-8-gkx.js","assets/hxml-B0Qn7Nwc.js","assets/haxe-OTjmBuCE.js","assets/jinja-CvJhR5Z5.js","assets/jison-DSlj1sEU.js","assets/julia-CmLSMgqX.js","assets/r-Doi-hRR2.js","assets/just-D9KdTXpD.js","assets/perl-B4V1RSOt.js","assets/latex-BZoE-Z3X.js","assets/tex-CgYv5ALc.js","assets/liquid-DW5UrT3Q.js","assets/marko-EN2dMS-t.js","assets/less-DVTAwKKz.js","assets/mdc-DV5R0Zdp.js","assets/nextflow-BJtWHP5T.js","assets/nextflow-groovy-DJMQeKeT.js","assets/nginx-BhF2pPjp.js","assets/nim-Ck0oR8VY.js","assets/php-BvwSzqRH.js","assets/pug-DB3guzOM.js","assets/qml-CohVRZGq.js","assets/razor-CtBV-RZa.js","assets/csharp-oqKa8noW.js","assets/rst-1GlNPFb8.js","assets/cmake-Bj61d0ZC.js","assets/sas-IRPqQRQC.js","assets/shaderlab-TOUzSsQk.js","assets/hlsl-Cvrh5tZx.js","assets/shellsession-bEniUyPe.js","assets/soy-D0Pcy9LW.js","assets/sparql-D_iOobhT.js","assets/turtle-ByJddavk.js","assets/stata-BLI2BTCU.js","assets/surrealql-BjtO5tmi.js","assets/svelte-IyvKNOcX.js","assets/templ-qRJlnfHP.js","assets/go-rLFTqkRN.js","assets/ts-tags-YasuuPCT.js","assets/twig-BF-FIMTp.js","assets/vue-BTbCYZab.js","assets/vue-html-1KQNz6IV.js","assets/vue-vine-BVHOJ5oI.js","assets/stylus-B6D30XZt.js","assets/xsl-DoQ9dHRM.js","assets/PreviewPanel-BtqdQqtN.js","assets/arrow-right-7YX6fLbL.js","assets/DiffPanel-Cdf69_RS.js","assets/fileCommentAnnotations-BTb-0nj3.js","assets/FilePreviewPanel-CkKXCbcG.js"])))=>i.map(i=>d[i]);
|
|
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,$u as d,A as f,Aa as p,Ac as m,Ad as h,Af as g,Al as _,An as v,Ao as y,Ap as b,Ar as x,As as S,At as C,Au as w,B as T,Ba as E,Bc 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,Ci as U,Cl as W,Cn as ee,Co as G,Cp as te,Cr as ne,Cs as re,Ct as ie,Cu as ae,D as oe,Da as se,Dc as ce,Dd as le,Df as ue,Di as de,Dl as fe,Dn as pe,Do as me,Dp as he,Dr as ge,Ds as _e,Dt as ve,Du as ye,E as be,Ea as xe,Ec as Se,Ed as Ce,Ef as we,Ei as Te,El as Ee,En as De,Eo as Oe,Ep as ke,Er as Ae,Es as je,Et as Me,Eu as Ne,F as Pe,Fa as Fe,Fc as Ie,Fd as Le,Ff as Re,Fi as ze,Fl as Be,Fn as Ve,Fo as He,Fr as Ue,Fs as We,Ft as K,Fu as Ge,G as Ke,Ga as qe,Gc as Je,Gd as Ye,Gf as Xe,Gi as Ze,Gl as Qe,Gn as $e,Go as et,Gr as tt,Gs as nt,Gt as rt,Gu as it,H as at,Ha as ot,Hc as st,Hd as ct,Hf as lt,Hi as ut,Hl as dt,Hn as ft,Ho as pt,Hr as mt,Hs as ht,Ht as gt,Hu as _t,I as vt,Ia as yt,Ic as bt,Id as xt,If as St,Ii as Ct,Il as wt,In as Tt,Io as Et,Ir as Dt,Is as Ot,It as kt,Iu as At,J as jt,Ja as Mt,Jc as Nt,Jd as Pt,Jf as Ft,Ji as It,Jl as Lt,Jn as Rt,Jo as zt,Js as Bt,Jt as Vt,Ju as Ht,K as Ut,Ka as Wt,Kc as Gt,Kd as Kt,Kf as qt,Ki as Jt,Kl as Yt,Kn as Xt,Ko as Zt,Kr as Qt,Ks as $t,Kt as en,Ku as tn,L as nn,La as rn,Lc as an,Ld as on,Lf as sn,Li as cn,Ll as ln,Ln as un,Lo as dn,Lr as fn,Ls as pn,Lt as mn,Lu as hn,M as gn,Ma as _n,Mc as vn,Md as yn,Mf as bn,Mi as xn,Ml as Sn,Mn as Cn,Mr as wn,Ms as Tn,Mt as En,Mu as Dn,N as On,Na as kn,Nc as An,Nd as jn,Nf as Mn,Ni as Nn,Nl as Pn,Nn as Fn,No as In,Nr as Ln,Ns as Rn,Nt as zn,Nu as Bn,O as q,Oa as Vn,Oc as Hn,Od as Un,Of as Wn,Oi as Gn,Ol as Kn,On as qn,Oo as Jn,Op as Yn,Or as Xn,Os as Zn,Ot as Qn,Ou as $n,P as er,Pa as tr,Pc as nr,Pd as rr,Pf as ir,Pi as ar,Pl as or,Pn as sr,Po as cr,Pr as lr,Ps as ur,Pt as dr,Pu as fr,Q as pr,Qa as mr,Qc as hr,Qd as gr,Qf as _r,Qi as vr,Ql as yr,Qn as br,Qo as xr,Qr as Sr,Qs as Cr,Qt as wr,Qu as Tr,R as Er,Ra as Dr,Rc as Or,Rd as kr,Rf as Ar,Ri as jr,Rl as Mr,Rn as Nr,Ro as Pr,Rr as Fr,Rs as Ir,Rt as Lr,Ru as Rr,S as zr,Sa as Br,Sc as Vr,Sd as Hr,Sf as Ur,Si as Wr,Sl as Gr,Sn as Kr,So as qr,Sp as Jr,Sr as Yr,Ss as Xr,St as Zr,Su as Qr,T as $r,Ta as ei,Tc as ti,Td as ni,Tf as ri,Ti as ii,Tl as ai,Tn as oi,To as si,Tp as ci,Tr as li,Ts as ui,Tt as di,Tu as fi,U as pi,Ua as mi,Uc as hi,Ud as gi,Uf as _i,Ui as vi,Ul as yi,Un as bi,Uo as xi,Ur as Si,Us as Ci,Ut as wi,Uu as Ti,V as Ei,Va as Di,Vc as Oi,Vd as ki,Vf as Ai,Vi as ji,Vl as Mi,Vn as Ni,Vo as Pi,Vr as Fi,Vs as Ii,Vt as Li,Vu as Ri,W as zi,Wa as Bi,Wc as Vi,Wd as Hi,Wf as Ui,Wi,Wl as Gi,Wn as Ki,Wo as qi,Wr as Ji,Ws as Yi,Wt as Xi,Wu as Zi,X as Qi,Xa as $i,Xc as ea,Xd as ta,Xf as na,Xi as ra,Xl as ia,Xn as aa,Xo as oa,Xr as sa,Xs as ca,Xt as la,Xu as ua,Y as da,Ya as fa,Yc as pa,Yd as ma,Yf as ha,Yi as ga,Yl as _a,Yn as va,Yo as ya,Ys as ba,Yt as xa,Yu as Sa,Z as Ca,Za as wa,Zc as Ta,Zd as Ea,Zf as Da,Zi as Oa,Zl as ka,Zn as Aa,Zo as ja,Zr as Ma,Zs as Na,Zt as Pa,Zu as Fa,_ as Ia,_a as La,_c as Ra,_d as za,_f as Ba,_i as Va,_l as Ha,_n as Ua,_o as Wa,_p as Ga,_r as Ka,_s as qa,_t as Ja,_u as Ya,a as Xa,aa as Za,ac as Qa,ad as $a,af as eo,ai as to,an as no,ao as ro,ap as io,ar as ao,as as oo,at as so,au as co,b as lo,ba as uo,bc as fo,bd as po,bf as mo,bi as ho,bl as go,bn as _o,bo as vo,bp as yo,br as bo,bs as xo,bt as So,bu as Co,c as wo,ca as To,cc as Eo,cd as Do,cf as Oo,ci as ko,cl as Ao,cn as jo,co as Mo,cp as No,cr as Po,cs as Fo,ct as Io,cu as Lo,d as Ro,da as zo,dc as Bo,dd as Vo,df as Ho,di as Uo,dl as Wo,dn as Go,do as Ko,dp as qo,dr as Jo,ds as Yo,dt as Xo,du as Zo,ea as Qo,ec as $o,ed as es,ef as ts,ei as ns,el as rs,eo as is,ep as as,er as os,es as ss,et as cs,eu as ls,f as us,fa as ds,fc as fs,fd as ps,ff as ms,fi as hs,fl as gs,fn as _s,fo as vs,fp as ys,fr as bs,fs as xs,ft as Ss,fu as Cs,g as ws,ga as Ts,gc as Es,gd as Ds,gf as Os,gi as ks,gl as As,gn as js,go as Ms,gp as Ns,gr as Ps,gs as Fs,gt as Is,gu as Ls,h as Rs,ha as zs,hc as Bs,hd as Vs,hf as Hs,hi as Us,hl as Ws,hn as Gs,ho as Ks,hp as qs,hr as Js,hs as Ys,ht as Xs,hu as Zs,i as Qs,ia as $s,ic as ec,id as tc,if as nc,ii as rc,il as ic,io as ac,ip as oc,ir as sc,is as cc,it as lc,iu as uc,j as dc,ja as fc,jc as pc,jd as mc,jf as hc,ji as gc,jl as _c,jn as vc,jr as yc,js as bc,jt as xc,ju as Sc,k as Cc,ka as wc,kc as Tc,kd as Ec,kf as Dc,ki as Oc,kl as kc,kn as Ac,ko as jc,kp as Mc,kr as Nc,ks as Pc,kt as Fc,ku as Ic,l as Lc,la as Rc,lc as zc,ld as Bc,lf as Vc,li as Hc,ll as Uc,ln as Wc,lo as Gc,lp as Kc,lr as qc,ls as Jc,lt as Yc,lu as Xc,m as Zc,ma as Qc,mc as $c,md as el,mf as tl,mi as nl,ml as rl,mn as il,mo as al,mp as ol,mr as sl,ms as cl,mt as ll,mu as ul,n as eee,na as dl,nc as fl,nd as pl,nf as ml,ni as hl,nl as gl,nn as _l,no as vl,np as yl,nr as bl,ns as xl,nt as Sl,nu as Cl,o as wl,oa as Tl,oc as El,od as Dl,of as Ol,oi as kl,ol as Al,on as jl,oo as Ml,op as Nl,or as Pl,os as Fl,ot as Il,ou as Ll,p as Rl,pa as zl,pc as Bl,pd as Vl,pf as Hl,pi as Ul,pl as Wl,pn as Gl,po as Kl,pp as ql,pr as Jl,ps as Yl,pt as Xl,pu as Zl,q as Ql,qa as $l,qc as eu,qd as tu,qf as nu,qi as ru,ql as iu,qn as au,qo as ou,qs as su,qt as cu,qu as lu,r as uu,ra as du,rc as fu,rd as pu,rf as mu,ri as hu,rl as gu,rn as _u,ro as vu,rp as yu,rr as bu,rs as xu,rt as Su,ru as Cu,s as wu,sa as Tu,sc as Eu,sd as Du,sf as Ou,si as ku,sl as Au,sn as ju,so as Mu,sp as Nu,sr as Pu,ss as Fu,st as Iu,su as Lu,t as Ru,ta as zu,tc as Bu,td as Vu,tf as Hu,ti as Uu,tn as Wu,to as Gu,tp as Ku,tr as qu,ts as Ju,tt as Yu,tu as Xu,u as Zu,ua as Qu,uc as $u,ud as ed,uf as td,ui as nd,ul as rd,un as id,uo as ad,up as od,ur as sd,us as tee,ut as cd,uu as ld,v as ud,va as dd,vc as fd,vd as pd,vf as md,vi as hd,vl as gd,vn as _d,vo as vd,vp as yd,vr as bd,vs as xd,vt as Sd,vu as Cd,w as wd,wa as Td,wc as Ed,wd as Dd,wf as Od,wi as kd,wl as Ad,wn as jd,wo as Md,wp as Nd,wr as Pd,ws as Fd,wt as Id,wu as Ld,xa as Rd,xc as zd,xd as Bd,xf as Vd,xi as Hd,xl as Ud,xn as Wd,xo as Gd,xp as Kd,xr as qd,xs as Jd,xt as Yd,xu as Xd,y as Zd,ya as Qd,yc as $d,yd as nee,yf as ef,yi as tf,yl as nf,yn as rf,yp as af,yr as of,ys as sf,yt as cf,yu as lf,z as uf,za as df,zc as ff,zd as pf,zf as mf,zi as hf,zl as gf,zn as _f,zo as vf,zr as yf,zs as bf,zt as xf,zu as Sf}from"./textarea-B03Qe3NX.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 Cf=Yn((e=>{var t=ke(),n=he(),r=ci();function i(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function a(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function s(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function c(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function l(e){if(o(e)!==e)throw Error(i(188))}function u(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var s=a.alternate;if(s===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return l(a),e;if(s===r)return l(a),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=s;else{for(var c=!1,u=a.child;u;){if(u===n){c=!0,n=a,r=s;break}if(u===r){c=!0,r=a,n=s;break}u=u.sibling}if(!c){for(u=s.child;u;){if(u===n){c=!0,n=s,r=a;break}if(u===r){c=!0,r=s,n=a;break}u=u.sibling}if(!c)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function d(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=d(e),t!==null)return t;e=e.sibling}return null}var f=Object.assign,p=Symbol.for(`react.element`),m=Symbol.for(`react.transitional.element`),h=Symbol.for(`react.portal`),g=Symbol.for(`react.fragment`),_=Symbol.for(`react.strict_mode`),v=Symbol.for(`react.profiler`),y=Symbol.for(`react.consumer`),b=Symbol.for(`react.context`),x=Symbol.for(`react.forward_ref`),S=Symbol.for(`react.suspense`),C=Symbol.for(`react.suspense_list`),w=Symbol.for(`react.memo`),T=Symbol.for(`react.lazy`),E=Symbol.for(`react.activity`),D=Symbol.for(`react.memo_cache_sentinel`),O=Symbol.iterator;function k(e){return typeof e!=`object`||!e?null:(e=O&&e[O]||e[`@@iterator`],typeof e==`function`?e:null)}var A=Symbol.for(`react.client.reference`);function j(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===A?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case g:return`Fragment`;case v:return`Profiler`;case _:return`StrictMode`;case S:return`Suspense`;case C:return`SuspenseList`;case E:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case h:return`Portal`;case b:return e.displayName||`Context`;case y:return(e._context.displayName||`Context`)+`.Consumer`;case x:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case w:return t=e.displayName||null,t===null?j(e.type)||`Memo`:t;case T:t=e._payload,e=e._init;try{return j(e(t))}catch{}}return null}var M=Array.isArray,N=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,P=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F={pending:!1,data:null,method:null,action:null},I=[],L=-1;function R(e){return{current:e}}function z(e){0>L||(e.current=I[L],I[L]=null,L--)}function B(e,t){L++,I[L]=e.current,e.current=t}var V=R(null),H=R(null),U=R(null),W=R(null);function ee(e,t){switch(B(U,t),B(H,e),B(V,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Gd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Gd(t),e=Kd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}z(V),B(V,e)}function G(){z(V),z(H),z(U)}function te(e){e.memoizedState!==null&&B(W,e);var t=V.current,n=Kd(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),ep._currentValue=F)}var re,ie;function ae(e){if(re===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);re=t&&t[1]||``,ie=-1<e.stack.indexOf(`
|
|
3
3
|
at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
|
|
4
4
|
`+re+e+ie}var oe=!1;function se(e,t){if(!e||oe)return``;oe=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
|
|
5
5
|
`),l=s.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{oe=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?ae(n):``}function ce(e,t){switch(e.tag){case 26:case 27:case 5:return ae(e.type);case 16:return ae(`Lazy`);case 13:return e.child!==t&&t!==null?ae(`Suspense Fallback`):ae(`Suspense`);case 19:return ae(`SuspenseList`);case 0:case 15:return se(e.type,!1);case 11:return se(e.type.render,!1);case 1:return se(e.type,!0);case 31:return ae(`Activity`);default:return``}}function le(e){try{var t=``,n=null;do t+=ce(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
|
|
8
8
|
Error generating stack: `+e.message+`
|
|
9
9
|
`+e.stack}}var ue=Object.prototype.hasOwnProperty,de=t.unstable_scheduleCallback,fe=t.unstable_cancelCallback,pe=t.unstable_shouldYield,me=t.unstable_requestPaint,ge=t.unstable_now,_e=t.unstable_getCurrentPriorityLevel,ve=t.unstable_ImmediatePriority,ye=t.unstable_UserBlockingPriority,be=t.unstable_NormalPriority,xe=t.unstable_LowPriority,Se=t.unstable_IdlePriority,Ce=t.log,we=t.unstable_setDisableYieldValue,Te=null,Ee=null;function De(e){if(typeof Ce==`function`&&we(e),Ee&&typeof Ee.setStrictMode==`function`)try{Ee.setStrictMode(Te,e)}catch{}}var Oe=Math.clz32?Math.clz32:Me,Ae=Math.log,je=Math.LN2;function Me(e){return e>>>=0,e===0?32:31-(Ae(e)/je|0)|0}var Ne=256,Pe=262144,Fe=4194304;function Ie(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 Le(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=Ie(n))):i=Ie(o):i=Ie(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=Ie(n))):i=Ie(o)):i=Ie(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 Re(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function ze(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 Be(){var e=Fe;return Fe<<=1,!(Fe&62914560)&&(Fe=4194304),e}function Ve(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function He(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ue(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-Oe(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&&We(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function We(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Oe(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function K(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Oe(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function Ge(e,t){var n=t&-t;return n=n&42?1:Ke(n),(n&(e.suspendedLanes|t))===0?n:0}function Ke(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 qe(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function Je(){var e=P.p;return e===0?(e=window.event,e===void 0?32:gp(e.type)):e}function Ye(e,t){var n=P.p;try{return P.p=e,t()}finally{P.p=n}}var Xe=Math.random().toString(36).slice(2),Ze=`__reactFiber$`+Xe,Qe=`__reactProps$`+Xe,$e=`__reactContainer$`+Xe,et=`__reactEvents$`+Xe,tt=`__reactListeners$`+Xe,nt=`__reactHandles$`+Xe,rt=`__reactResources$`+Xe,it=`__reactMarker$`+Xe;function at(e){delete e[Ze],delete e[Qe],delete e[et],delete e[tt],delete e[nt]}function ot(e){var t=e[Ze];if(t)return t;for(var n=e.parentNode;n;){if(t=n[$e]||n[Ze]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=mf(e);e!==null;){if(n=e[Ze])return n;e=mf(e)}return t}e=n,n=e.parentNode}return null}function st(e){if(e=e[Ze]||e[$e]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function ct(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function lt(e){var t=e[rt];return t||=e[rt]={hoistableStyles:new Map,hoistableScripts:new Map},t}function ut(e){e[it]=!0}var dt=new Set,ft={};function pt(e,t){mt(e,t),mt(e+`Capture`,t)}function mt(e,t){for(ft[e]=t,e=0;e<t.length;e++)dt.add(t[e])}var ht=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]*$`),gt={},_t={};function vt(e){return ue.call(_t,e)?!0:ue.call(gt,e)?!1:ht.test(e)?_t[e]=!0:(gt[e]=!0,!1)}function yt(e,t,n){if(vt(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 bt(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 xt(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 St(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function Ct(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function wt(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 Tt(e){if(!e._valueTracker){var t=Ct(e)?`checked`:`value`;e._valueTracker=wt(e,t,``+e[t])}}function Et(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=Ct(e)?e.checked?`true`:`false`:e.value),e=r,e===n?!1:(t.setValue(e),!0)}function Dt(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 Ot=/[\n"\\]/g;function kt(e){return e.replace(Ot,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function At(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=``+St(t)):e.value!==``+St(t)&&(e.value=``+St(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):Mt(e,o,St(n)):Mt(e,o,St(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=``+St(s):e.removeAttribute(`name`)}function jt(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)){Tt(e);return}n=n==null?``:``+St(n),t=t==null?n:``+St(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),Tt(e)}function Mt(e,t,n){t===`number`&&Dt(e.ownerDocument)===e||e.defaultValue===``+n||(e.defaultValue=``+n)}function Nt(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=``+St(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 Pt(e,t,n){if(t!=null&&(t=``+St(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+St(n)}function Ft(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=St(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),Tt(e)}function It(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Lt=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 Rt(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||Lt.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function zt(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&&Rt(e,a,r)}else for(var o in t)t.hasOwnProperty(o)&&Rt(e,o,t[o])}function Bt(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 Vt=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`]]),Ht=/^[\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 Ut(e){return Ht.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function Wt(){}var Gt=null;function Kt(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var qt=null,Jt=null;function Yt(e){var t=st(e);if(t&&(e=t.stateNode)){var n=e[Qe]||null;a:switch(e=t.stateNode,t.type){case`input`:if(At(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="`+kt(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[Qe]||null;if(!a)throw Error(i(90));At(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&&Et(r)}break a;case`textarea`:Pt(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&Nt(e,!!n.multiple,t,!1)}}}var Xt=!1;function Zt(e,t,n){if(Xt)return e(t,n);Xt=!0;try{return e(t)}finally{if(Xt=!1,(qt!==null||Jt!==null)&&(Su(),qt&&(t=qt,e=Jt,Jt=qt=null,Yt(t),e)))for(t=0;t<e.length;t++)Yt(e[t])}}function Qt(e,t){var n=e.stateNode;if(n===null)return null;var r=n[Qe]||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 $t=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),en=!1;if($t)try{var tn={};Object.defineProperty(tn,"passive",{get:function(){en=!0}}),window.addEventListener(`test`,tn,tn),window.removeEventListener(`test`,tn,tn)}catch{en=!1}var nn=null,rn=null,an=null;function on(){if(an)return an;var e,t=rn,n=t.length,r,i=`value`in nn?nn.value:nn.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 an=i.slice(e,1<r?1-r:void 0)}function sn(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 cn(){return!0}function ln(){return!1}function un(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)?cn:ln,this.isPropagationStopped=ln,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=cn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=cn)},persist:function(){},isPersistent:cn}),t}var dn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},fn=un(dn),pn=f({},dn,{view:0,detail:0}),mn=un(pn),hn,gn,_n,vn=f({},pn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:kn,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!==_n&&(_n&&e.type===`mousemove`?(hn=e.screenX-_n.screenX,gn=e.screenY-_n.screenY):gn=hn=0,_n=e),hn)},movementY:function(e){return`movementY`in e?e.movementY:gn}}),yn=un(vn),bn=un(f({},vn,{dataTransfer:0})),xn=un(f({},pn,{relatedTarget:0})),Sn=un(f({},dn,{animationName:0,elapsedTime:0,pseudoElement:0})),Cn=un(f({},dn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),wn=un(f({},dn,{data:0})),Tn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},En={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`},Dn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function On(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Dn[e])?!!t[e]:!1}function kn(){return On}var An=un(f({},pn,{key:function(e){if(e.key){var t=Tn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=sn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?En[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:kn,charCode:function(e){return e.type===`keypress`?sn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?sn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),jn=un(f({},vn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Mn=un(f({},pn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:kn})),Nn=un(f({},dn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Pn=un(f({},vn,{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})),Fn=un(f({},dn,{newState:0,oldState:0})),In=[9,13,27,32],Ln=$t&&`CompositionEvent`in window,Rn=null;$t&&`documentMode`in document&&(Rn=document.documentMode);var zn=$t&&`TextEvent`in window&&!Rn,Bn=$t&&(!Ln||Rn&&8<Rn&&11>=Rn),q=` `,Vn=!1;function Hn(e,t){switch(e){case`keyup`:return In.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function Un(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var Wn=!1;function Gn(e,t){switch(e){case`compositionend`:return Un(t);case`keypress`:return t.which===32?(Vn=!0,q):null;case`textInput`:return e=t.data,e===q&&Vn?null:e;default:return null}}function Kn(e,t){if(Wn)return e===`compositionend`||!Ln&&Hn(e,t)?(e=on(),an=rn=nn=null,Wn=!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 Bn&&t.locale!==`ko`?null:t.data;default:return null}}var qn={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 Jn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!qn[e.type]:t===`textarea`}function Yn(e,t,n,r){qt?Jt?Jt.push(r):Jt=[r]:qt=r,t=kd(t,`onChange`),0<t.length&&(n=new fn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var Xn=null,Zn=null;function Qn(e){xd(e,0)}function $n(e){if(Et(ct(e)))return e}function er(e,t){if(e===`change`)return t}var tr=!1;if($t){var nr;if($t){var rr=`oninput`in document;if(!rr){var ir=document.createElement(`div`);ir.setAttribute(`oninput`,`return;`),rr=typeof ir.oninput==`function`}nr=rr}else nr=!1;tr=nr&&(!document.documentMode||9<document.documentMode)}function ar(){Xn&&(Xn.detachEvent(`onpropertychange`,or),Zn=Xn=null)}function or(e){if(e.propertyName===`value`&&$n(Zn)){var t=[];Yn(t,Zn,e,Kt(e)),Zt(Qn,t)}}function sr(e,t,n){e===`focusin`?(ar(),Xn=t,Zn=n,Xn.attachEvent(`onpropertychange`,or)):e===`focusout`&&ar()}function cr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return $n(Zn)}function lr(e,t){if(e===`click`)return $n(t)}function ur(e,t){if(e===`input`||e===`change`)return $n(t)}function dr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var fr=typeof Object.is==`function`?Object.is:dr;function pr(e,t){if(fr(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!ue.call(t,i)||!fr(e[i],t[i]))return!1}return!0}function mr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function hr(e,t){var n=mr(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=mr(n)}}function gr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?gr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function _r(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Dt(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=Dt(e.document)}return t}function vr(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 yr=$t&&`documentMode`in document&&11>=document.documentMode,br=null,xr=null,Sr=null,Cr=!1;function wr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Cr||br==null||br!==Dt(r)||(r=br,`selectionStart`in r&&vr(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}),Sr&&pr(Sr,r)||(Sr=r,r=kd(xr,`onSelect`),0<r.length&&(t=new fn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=br)))}function Tr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Er={animationend:Tr(`Animation`,`AnimationEnd`),animationiteration:Tr(`Animation`,`AnimationIteration`),animationstart:Tr(`Animation`,`AnimationStart`),transitionrun:Tr(`Transition`,`TransitionRun`),transitionstart:Tr(`Transition`,`TransitionStart`),transitioncancel:Tr(`Transition`,`TransitionCancel`),transitionend:Tr(`Transition`,`TransitionEnd`)},Dr={},Or={};$t&&(Or=document.createElement(`div`).style,`AnimationEvent`in window||(delete Er.animationend.animation,delete Er.animationiteration.animation,delete Er.animationstart.animation),`TransitionEvent`in window||delete Er.transitionend.transition);function kr(e){if(Dr[e])return Dr[e];if(!Er[e])return e;var t=Er[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Or)return Dr[e]=t[n];return e}var Ar=kr(`animationend`),jr=kr(`animationiteration`),Mr=kr(`animationstart`),Nr=kr(`transitionrun`),Pr=kr(`transitionstart`),Fr=kr(`transitioncancel`),Ir=kr(`transitionend`),Lr=new Map,Rr=`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(` `);Rr.push(`scrollEnd`);function zr(e,t){Lr.set(e,t),pt(t,[e])}var Br=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)},Vr=[],Hr=0,Ur=0;function Wr(){for(var e=Hr,t=Ur=Hr=0;t<e;){var n=Vr[t];Vr[t++]=null;var r=Vr[t];Vr[t++]=null;var i=Vr[t];Vr[t++]=null;var a=Vr[t];if(Vr[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&&Jr(n,i,a)}}function Gr(e,t,n,r){Vr[Hr++]=e,Vr[Hr++]=t,Vr[Hr++]=n,Vr[Hr++]=r,Ur|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function Kr(e,t,n,r){return Gr(e,t,n,r),Yr(e)}function qr(e,t){return Gr(e,null,null,t),Yr(e)}function Jr(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-Oe(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function Yr(e){if(50<pu)throw pu=0,mu=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Xr={};function Zr(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 Qr(e,t,n,r){return new Zr(e,t,n,r)}function $r(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ei(e,t){var n=e.alternate;return n===null?(n=Qr(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 ti(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 ni(e,t,n,r,a,o){var s=0;if(r=e,typeof e==`function`)$r(e)&&(s=1);else if(typeof e==`string`)s=Gf(e,n,V.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(e){case E:return e=Qr(31,n,t,a),e.elementType=E,e.lanes=o,e;case g:return ri(n.children,a,o,t);case _:s=8,a|=24;break;case v:return e=Qr(12,n,t,a|2),e.elementType=v,e.lanes=o,e;case S:return e=Qr(13,n,t,a),e.elementType=S,e.lanes=o,e;case C:return e=Qr(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=Qr(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function ri(e,t,n,r){return e=Qr(7,e,r,t),e.lanes=n,e}function ii(e,t,n){return e=Qr(6,e,null,t),e.lanes=n,e}function ai(e){var t=Qr(18,null,null,0);return t.stateNode=e,t}function oi(e,t,n){return t=Qr(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var si=new WeakMap;function li(e,t){if(typeof e==`object`&&e){var n=si.get(e);return n===void 0?(t={value:e,source:t,stack:le(t)},si.set(e,t),t):n}return{value:e,source:t,stack:le(t)}}var ui=[],di=0,fi=null,pi=0,mi=[],hi=0,gi=null,_i=1,vi=``;function yi(e,t){ui[di++]=pi,ui[di++]=fi,fi=e,pi=t}function bi(e,t,n){mi[hi++]=_i,mi[hi++]=vi,mi[hi++]=gi,gi=e;var r=_i;e=vi;var i=32-Oe(r)-1;r&=~(1<<i),n+=1;var a=32-Oe(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,_i=1<<32-Oe(t)+i|n<<i|r,vi=a+e}else _i=1<<a|n<<i|r,vi=e}function xi(e){e.return!==null&&(yi(e,1),bi(e,1,0))}function Si(e){for(;e===fi;)fi=ui[--di],ui[di]=null,pi=ui[--di],ui[di]=null;for(;e===gi;)gi=mi[--hi],mi[hi]=null,vi=mi[--hi],mi[hi]=null,_i=mi[--hi],mi[hi]=null}function Ci(e,t){mi[hi++]=_i,mi[hi++]=vi,mi[hi++]=gi,_i=t.id,vi=t.overflow,gi=e}var wi=null,Ti=null,Ei=!1,Di=null,Oi=!1,ki=Error(i(519));function Ai(e){throw Ii(li(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),ki}function ji(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[Ze]=e,t[Qe]=r,n){case`dialog`:Sd(`cancel`,t),Sd(`close`,t);break;case`iframe`:case`object`:case`embed`:Sd(`load`,t);break;case`video`:case`audio`:for(n=0;n<yd.length;n++)Sd(yd[n],t);break;case`source`:Sd(`error`,t);break;case`img`:case`image`:case`link`:Sd(`error`,t),Sd(`load`,t);break;case`details`:Sd(`toggle`,t);break;case`input`:Sd(`invalid`,t),jt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:Sd(`invalid`,t);break;case`textarea`:Sd(`invalid`,t),Ft(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||Fd(t.textContent,n)?(r.popover!=null&&(Sd(`beforetoggle`,t),Sd(`toggle`,t)),r.onScroll!=null&&Sd(`scroll`,t),r.onScrollEnd!=null&&Sd(`scrollend`,t),r.onClick!=null&&(t.onclick=Wt),t=!0):t=!1,t||Ai(e,!0)}function Mi(e){for(wi=e.return;wi;)switch(wi.tag){case 5:case 31:case 13:Oi=!1;return;case 27:case 3:Oi=!0;return;default:wi=wi.return}}function Ni(e){if(e!==wi)return!1;if(!Ei)return Mi(e),Ei=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!==`form`&&n!==`button`)||qd(e.type,e.memoizedProps)),n=!n),n&&Ti&&Ai(e),Mi(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Ti=pf(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Ti=pf(e)}else t===27?(t=Ti,ef(e.type)?(e=ff,ff=null,Ti=e):Ti=t):Ti=wi?df(e.stateNode.nextSibling):null;return!0}function Pi(){Ti=wi=null,Ei=!1}function Fi(){var e=Di;return e!==null&&($l===null?$l=e:$l.push.apply($l,e),Di=null),e}function Ii(e){Di===null?Di=[e]:Di.push(e)}var Li=R(null),Ri=null,zi=null;function Bi(e,t,n){B(Li,t._currentValue),t._currentValue=n}function Vi(e){e._currentValue=Li.current,z(Li)}function Hi(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 Ui(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),Hi(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),Hi(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 Wi(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;fr(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=[ep]:e.push(ep))}a=a.return}e!==null&&Ui(t,e,n,r),t.flags|=262144}function Gi(e){for(e=e.firstContext;e!==null;){if(!fr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ki(e){Ri=e,zi=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function qi(e){return Yi(Ri,e)}function Ji(e,t){return Ri===null&&Ki(e),Yi(e,t)}function Yi(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},zi===null){if(e===null)throw Error(i(308));zi=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else zi=zi.next=t;return n}var Xi=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()})}},Zi=t.unstable_scheduleCallback,Qi=t.unstable_NormalPriority,$i={$$typeof:b,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ea(){return{controller:new Xi,data:new Map,refCount:0}}function ta(e){e.refCount--,e.refCount===0&&Zi(Qi,function(){e.controller.abort()})}var na=null,ra=0,ia=0,aa=null;function oa(e,t){if(na===null){var n=na=[];ra=0,ia=pd(),aa={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return ra++,t.then(sa,sa),t}function sa(){if(--ra===0&&na!==null){aa!==null&&(aa.status=`fulfilled`);var e=na;na=null,ia=0,aa=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function ca(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 la=N.S;N.S=function(e,t){nu=ge(),typeof t==`object`&&t&&typeof t.then==`function`&&oa(e,t),la!==null&&la(e,t)};var ua=R(null);function da(){var e=ua.current;return e===null?Ll.pooledCache:e}function fa(e,t){t===null?B(ua,ua.current):B(ua,t.pool)}function pa(){var e=da();return e===null?null:{parent:$i._currentValue,pool:e}}var ma=Error(i(460)),ha=Error(i(474)),ga=Error(i(542)),_a={then:function(){}};function va(e){return e=e.status,e===`fulfilled`||e===`rejected`}function ya(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Wt,Wt),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Ca(e),e;default:if(typeof t.status==`string`)t.then(Wt,Wt);else{if(e=Ll,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,Ca(e),e}throw xa=t,ma}}function ba(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(xa=e,ma):e}}var xa=null;function Sa(){if(xa===null)throw Error(i(459));var e=xa;return xa=null,e}function Ca(e){if(e===ma||e===ga)throw Error(i(483))}var wa=null,Ta=0;function Ea(e){var t=Ta;return Ta+=1,wa===null&&(wa=[]),ya(wa,e,t)}function Da(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function Oa(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 ka(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=ei(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=ii(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&&ba(i)===t.type)?(t=a(t,n.props),Da(t,n),t.return=e,t):(t=ni(n.type,n.key,n.props,null,e.mode,r),Da(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=oi(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=ri(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=ii(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case m:return n=ni(t.type,t.key,t.props,null,e.mode,n),Da(n,t),n.return=e,n;case h:return t=oi(t,e.mode,n),t.return=e,t;case T:return t=ba(t),f(e,t,n)}if(M(t)||k(t))return t=ri(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,Ea(t),n);if(t.$$typeof===b)return f(e,Ji(e,t),n);Oa(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=ba(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,Ea(n),r);if(n.$$typeof===b)return p(e,t,Ji(e,n),r);Oa(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=ba(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,Ea(r),i);if(r.$$typeof===b)return _(e,t,n,Ji(t,r),i);Oa(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),Ei&&yi(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 Ei&&yi(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)}),Ei&&yi(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),Ei&&yi(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 Ei&&yi(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)}),Ei&&yi(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&&ba(l)===r.type){n(e,r.sibling),c=a(r,o.props),Da(c,o),c.return=e,e=c;break a}n(e,r);break}else t(e,r);r=r.sibling}o.type===g?(c=ri(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=ni(o.type,o.key,o.props,null,e.mode,c),Da(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=oi(o,e.mode,c),c.return=e,e=c}return s(e);case T:return o=ba(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,Ea(o),c);if(o.$$typeof===b)return x(e,r,Ji(e,o),c);Oa(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=ii(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{Ta=0;var i=x(e,t,n,r);return wa=null,i}catch(t){if(t===ma||t===ga)throw t;var a=Qr(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var Aa=ka(!0),ja=ka(!1),Ma=!1;function Na(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Pa(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 Fa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ia(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Il&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=Yr(e),Jr(e,null,n),t}return Gr(e,r,t,n),Yr(e)}function La(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,K(e,n)}}function Ra(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 za=!1;function Ba(){if(za){var e=aa;if(e!==null)throw e}}function Va(e,t,n,r){za=!1;var i=e.updateQueue;Ma=!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?(zl&p)===p:(r&p)===p){p!==0&&p===ia&&(za=!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:Ma=!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),ql|=o,e.lanes=o,e.memoizedState=d}}function Ha(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function Ua(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Ha(n[e],t)}var Wa=R(null),Ga=R(0);function Ka(e,t){e=Gl,B(Ga,e),B(Wa,t),Gl=e|t.baseLanes}function qa(){B(Ga,Gl),B(Wa,Wa.current)}function Ja(){Gl=Ga.current,z(Wa),z(Ga)}var Ya=R(null),Xa=null;function Za(e){var t=e.alternate;B(no,no.current&1),B(Ya,e),Xa===null&&(t===null||Wa.current!==null||t.memoizedState!==null)&&(Xa=e)}function Qa(e){B(no,no.current),B(Ya,e),Xa===null&&(Xa=e)}function $a(e){e.tag===22?(B(no,no.current),B(Ya,e),Xa===null&&(Xa=e)):eo(e)}function eo(){B(no,no.current),B(Ya,Ya.current)}function to(e){z(Ya),Xa===e&&(Xa=null),z(no)}var no=R(0);function ro(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||cf(n)||lf(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 io=0,ao=null,oo=null,so=null,co=!1,lo=!1,uo=!1,fo=0,po=0,mo=null,ho=0;function go(){throw Error(i(321))}function _o(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!fr(e[n],t[n]))return!1;return!0}function vo(e,t,n,r,i,a){return io=a,ao=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,N.H=e===null||e.memoizedState===null?Fs:Is,uo=!1,a=n(r,i),uo=!1,lo&&(a=bo(t,n,r,i)),yo(e),a}function yo(e){N.H=Ps;var t=oo!==null&&oo.next!==null;if(io=0,so=oo=ao=null,co=!1,po=0,mo=null,t)throw Error(i(300));e===null||$s||(e=e.dependencies,e!==null&&Gi(e)&&($s=!0))}function bo(e,t,n,r){ao=e;var a=0;do{if(lo&&(mo=null),po=0,lo=!1,25<=a)throw Error(i(301));if(a+=1,so=oo=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=Ls,o=t(n,r)}while(lo);return o}function xo(){var e=N.H,t=e.useState()[0];return t=typeof t.then==`function`?Oo(t):t,e=e.useState()[0],(oo===null?null:oo.memoizedState)!==e&&(ao.flags|=1024),t}function So(){var e=fo!==0;return fo=0,e}function Co(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function wo(e){if(co){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}co=!1}io=0,so=oo=ao=null,lo=!1,po=fo=0,mo=null}function To(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return so===null?ao.memoizedState=so=e:so=so.next=e,so}function Eo(){if(oo===null){var e=ao.alternate;e=e===null?null:e.memoizedState}else e=oo.next;var t=so===null?ao.memoizedState:so.next;if(t!==null)so=t,oo=e;else{if(e===null)throw ao.alternate===null?Error(i(467)):Error(i(310));oo=e,e={memoizedState:oo.memoizedState,baseState:oo.baseState,baseQueue:oo.baseQueue,queue:oo.queue,next:null},so===null?ao.memoizedState=so=e:so=so.next=e}return so}function Do(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Oo(e){var t=po;return po+=1,mo===null&&(mo=[]),e=ya(mo,e,t),t=ao,(so===null?t.memoizedState:so.next)===null&&(t=t.alternate,N.H=t===null||t.memoizedState===null?Fs:Is),e}function ko(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return Oo(e);if(e.$$typeof===b)return qi(e)}throw Error(i(438,String(e)))}function Ao(e){var t=null,n=ao.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=ao.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=Do(),ao.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 jo(e,t){return typeof t==`function`?t(e):t}function Mo(e){return No(Eo(),oo,e)}function No(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?(io&f)===f:(zl&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===ia&&(d=!0);else if((io&p)===p){u=u.next,p===ia&&(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,ao.lanes|=p,ql|=p;f=u.action,uo&&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,ao.lanes|=f,ql|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!fr(o,e.memoizedState)&&($s=!0,d&&(n=aa,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 Po(e){var t=Eo(),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);fr(o,t.memoizedState)||($s=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Fo(e,t,n){var r=ao,a=Eo(),o=Ei;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!fr((oo||a).memoizedState,n);if(s&&(a.memoizedState=n,$s=!0),a=a.queue,os(Ro.bind(null,r,a,e),[e]),a.getSnapshot!==t||s||so!==null&&so.memoizedState.tag&1){if(r.flags|=2048,ts(9,{destroy:void 0},Lo.bind(null,r,a,n,t),null),Ll===null)throw Error(i(349));o||io&127||Io(r,t,n)}return n}function Io(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ao.updateQueue,t===null?(t=Do(),ao.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Lo(e,t,n,r){t.value=n,t.getSnapshot=r,zo(t)&&Bo(e)}function Ro(e,t,n){return n(function(){zo(t)&&Bo(e)})}function zo(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!fr(e,n)}catch{return!0}}function Bo(e){var t=qr(e,2);t!==null&&_u(t,e,2)}function Vo(e){var t=To();if(typeof e==`function`){var n=e;if(e=n(),uo){De(!0);try{n()}finally{De(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:jo,lastRenderedState:e},t}function Ho(e,t,n,r){return e.baseState=n,No(e,oo,typeof r==`function`?r:jo)}function Uo(e,t,n,r,a){if(js(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,Wo(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Wo(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),Go(e,t,s)}catch(n){qo(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),N.T=a}}else try{a=n(i,r),Go(e,t,a)}catch(n){qo(e,t,n)}}function Go(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){Ko(e,t,n)},function(n){return qo(e,t,n)}):Ko(e,t,n)}function Ko(e,t,n){t.status=`fulfilled`,t.value=n,Jo(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Wo(e,n)))}function qo(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,Jo(t),t=t.next;while(t!==r)}e.action=null}function Jo(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Yo(e,t){return t}function Xo(e,t){if(Ei){var n=Ll.formState;if(n!==null){a:{var r=ao;if(Ei){if(Ti){b:{for(var i=Ti,a=Oi;i.nodeType!==8;){if(!a){i=null;break b}if(i=df(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){Ti=df(i.nextSibling),r=i.data===`F!`;break a}}Ai(r)}r=!1}r&&(t=n[0])}}return n=To(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Yo,lastRenderedState:t},n.queue=r,n=Os.bind(null,ao,r),r.dispatch=n,r=Vo(!1),a=As.bind(null,ao,!1,r.queue),r=To(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Uo.bind(null,ao,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function Zo(e){return Qo(Eo(),oo,e)}function Qo(e,t,n){if(t=No(e,t,Yo)[0],e=Mo(jo)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=Oo(t)}catch(e){throw e===ma?ga:e}else r=t;t=Eo();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(ao.flags|=2048,ts(9,{destroy:void 0},$o.bind(null,i,n),null)),[r,a,e]}function $o(e,t){e.action=t}function es(e){var t=Eo(),n=oo;if(n!==null)return Qo(t,n,e);Eo(),t=t.memoizedState,n=Eo();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function ts(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=ao.updateQueue,t===null&&(t=Do(),ao.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 ns(){return Eo().memoizedState}function rs(e,t,n,r){var i=To();ao.flags|=e,i.memoizedState=ts(1|t,{destroy:void 0},n,r===void 0?null:r)}function is(e,t,n,r){var i=Eo();r=r===void 0?null:r;var a=i.memoizedState.inst;oo!==null&&r!==null&&_o(r,oo.memoizedState.deps)?i.memoizedState=ts(t,a,n,r):(ao.flags|=e,i.memoizedState=ts(1|t,a,n,r))}function as(e,t){rs(8390656,8,e,t)}function os(e,t){is(2048,8,e,t)}function ss(e){ao.flags|=4;var t=ao.updateQueue;if(t===null)t=Do(),ao.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function cs(e){var t=Eo().memoizedState;return ss({ref:t,nextImpl:e}),function(){if(Il&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function ls(e,t){return is(4,2,e,t)}function us(e,t){return is(4,4,e,t)}function ds(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 fs(e,t,n){n=n==null?null:n.concat([e]),is(4,4,ds.bind(null,t,e),n)}function ps(){}function ms(e,t){var n=Eo();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&_o(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function hs(e,t){var n=Eo();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&_o(t,r[1]))return r[0];if(r=e(),uo){De(!0);try{e()}finally{De(!1)}}return n.memoizedState=[r,t],r}function gs(e,t,n){return n===void 0||io&1073741824&&!(zl&261930)?e.memoizedState=t:(e.memoizedState=n,e=gu(),ao.lanes|=e,ql|=e,n)}function _s(e,t,n,r){return fr(n,t)?n:Wa.current===null?!(io&42)||io&1073741824&&!(zl&261930)?($s=!0,e.memoizedState=n):(e=gu(),ao.lanes|=e,ql|=e,t):(e=gs(e,n,r),fr(e,t)||($s=!0),e)}function vs(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,As(e,!1,t,n);try{var c=i(),l=N.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?ks(e,t,ca(c,r),hu(e)):ks(e,t,r,hu(e))}catch(n){ks(e,t,{then:function(){},status:`rejected`,reason:n},hu())}finally{P.p=a,o!==null&&s.types!==null&&(o.types=s.types),N.T=o}}function ys(){}function bs(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=xs(e).queue;vs(e,a,t,F,n===null?ys:function(){return Ss(e),n(r)})}function xs(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:jo,lastRenderedState:F},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:jo,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Ss(e){var t=xs(e);t.next===null&&(t=e.alternate.memoizedState),ks(e,t.next.queue,{},hu())}function Cs(){return qi(ep)}function ws(){return Eo().memoizedState}function Ts(){return Eo().memoizedState}function Es(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=hu();e=Fa(n);var r=Ia(t,e,n);r!==null&&(_u(r,t,n),La(r,t,n)),t={cache:ea()},e.payload=t;return}t=t.return}}function Ds(e,t,n){var r=hu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},js(e)?Ms(t,n):(n=Kr(e,t,n,r),n!==null&&(_u(n,e,r),Ns(n,t,r)))}function Os(e,t,n){ks(e,t,n,hu())}function ks(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(js(e))Ms(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,fr(s,o))return Gr(e,t,i,0),Ll===null&&Wr(),!1}catch{}if(n=Kr(e,t,i,r),n!==null)return _u(n,e,r),Ns(n,t,r),!0}return!1}function As(e,t,n,r){if(r={lane:2,revertLane:pd(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},js(e)){if(t)throw Error(i(479))}else t=Kr(e,n,r,2),t!==null&&_u(t,e,2)}function js(e){var t=e.alternate;return e===ao||t!==null&&t===ao}function Ms(e,t){lo=co=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ns(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,K(e,n)}}var Ps={readContext:qi,use:ko,useCallback:go,useContext:go,useEffect:go,useImperativeHandle:go,useLayoutEffect:go,useInsertionEffect:go,useMemo:go,useReducer:go,useRef:go,useState:go,useDebugValue:go,useDeferredValue:go,useTransition:go,useSyncExternalStore:go,useId:go,useHostTransitionStatus:go,useFormState:go,useActionState:go,useOptimistic:go,useMemoCache:go,useCacheRefresh:go};Ps.useEffectEvent=go;var Fs={readContext:qi,use:ko,useCallback:function(e,t){return To().memoizedState=[e,t===void 0?null:t],e},useContext:qi,useEffect:as,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),rs(4194308,4,ds.bind(null,t,e),n)},useLayoutEffect:function(e,t){return rs(4194308,4,e,t)},useInsertionEffect:function(e,t){rs(4,2,e,t)},useMemo:function(e,t){var n=To();t=t===void 0?null:t;var r=e();if(uo){De(!0);try{e()}finally{De(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=To();if(n!==void 0){var i=n(t);if(uo){De(!0);try{n(t)}finally{De(!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=Ds.bind(null,ao,e),[r.memoizedState,e]},useRef:function(e){var t=To();return e={current:e},t.memoizedState=e},useState:function(e){e=Vo(e);var t=e.queue,n=Os.bind(null,ao,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:ps,useDeferredValue:function(e,t){return gs(To(),e,t)},useTransition:function(){var e=Vo(!1);return e=vs.bind(null,ao,e.queue,!0,!1),To().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=ao,a=To();if(Ei){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),Ll===null)throw Error(i(349));zl&127||Io(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,as(Ro.bind(null,r,o,e),[e]),r.flags|=2048,ts(9,{destroy:void 0},Lo.bind(null,r,o,n,t),null),n},useId:function(){var e=To(),t=Ll.identifierPrefix;if(Ei){var n=vi,r=_i;n=(r&~(1<<32-Oe(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=fo++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=ho++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:Cs,useFormState:Xo,useActionState:Xo,useOptimistic:function(e){var t=To();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=As.bind(null,ao,!0,n),n.dispatch=t,[e,t]},useMemoCache:Ao,useCacheRefresh:function(){return To().memoizedState=Es.bind(null,ao)},useEffectEvent:function(e){var t=To(),n={impl:e};return t.memoizedState=n,function(){if(Il&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},Is={readContext:qi,use:ko,useCallback:ms,useContext:qi,useEffect:os,useImperativeHandle:fs,useInsertionEffect:ls,useLayoutEffect:us,useMemo:hs,useReducer:Mo,useRef:ns,useState:function(){return Mo(jo)},useDebugValue:ps,useDeferredValue:function(e,t){return _s(Eo(),oo.memoizedState,e,t)},useTransition:function(){var e=Mo(jo)[0],t=Eo().memoizedState;return[typeof e==`boolean`?e:Oo(e),t]},useSyncExternalStore:Fo,useId:ws,useHostTransitionStatus:Cs,useFormState:Zo,useActionState:Zo,useOptimistic:function(e,t){return Ho(Eo(),oo,e,t)},useMemoCache:Ao,useCacheRefresh:Ts};Is.useEffectEvent=cs;var Ls={readContext:qi,use:ko,useCallback:ms,useContext:qi,useEffect:os,useImperativeHandle:fs,useInsertionEffect:ls,useLayoutEffect:us,useMemo:hs,useReducer:Po,useRef:ns,useState:function(){return Po(jo)},useDebugValue:ps,useDeferredValue:function(e,t){var n=Eo();return oo===null?gs(n,e,t):_s(n,oo.memoizedState,e,t)},useTransition:function(){var e=Po(jo)[0],t=Eo().memoizedState;return[typeof e==`boolean`?e:Oo(e),t]},useSyncExternalStore:Fo,useId:ws,useHostTransitionStatus:Cs,useFormState:es,useActionState:es,useOptimistic:function(e,t){var n=Eo();return oo===null?(n.baseState=e,[e,n.queue.dispatch]):Ho(n,oo,e,t)},useMemoCache:Ao,useCacheRefresh:Ts};Ls.useEffectEvent=cs;function Rs(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 zs={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=hu(),i=Fa(r);i.payload=t,n!=null&&(i.callback=n),t=Ia(e,i,r),t!==null&&(_u(t,e,r),La(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=hu(),i=Fa(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Ia(e,i,r),t!==null&&(_u(t,e,r),La(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=hu(),r=Fa(n);r.tag=2,t!=null&&(r.callback=t),t=Ia(e,r,n),t!==null&&(_u(t,e,n),La(t,e,n))}};function Bs(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?!pr(n,r)||!pr(i,a):!0}function Vs(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&&zs.enqueueReplaceState(t,t.state,null)}function Hs(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 Us(e){Br(e)}function Ws(e){console.error(e)}function Gs(e){Br(e)}function Ks(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function qs(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 Js(e,t,n){return n=Fa(n),n.tag=3,n.payload={element:null},n.callback=function(){Ks(e,t)},n}function Ys(e){return e=Fa(e),e.tag=3,e}function Xs(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(){qs(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){qs(t,n,r),typeof i!=`function`&&(au===null?au=new Set([this]):au.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function Zs(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&Wi(t,n,a,!0),n=Ya.current,n!==null){switch(n.tag){case 31:case 13:return Xa===null?ku():n.alternate===null&&Kl===0&&(Kl=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===_a?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===_a?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(Ei)return t=Ya.current,t===null?(r!==ki&&(t=Error(i(423),{cause:r}),Ii(li(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=li(r,n),a=Js(e.stateNode,r,a),Ra(e,a),Kl!==4&&(Kl=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==ki&&(e=Error(i(422),{cause:r}),Ii(li(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=li(o,n),Ql===null?Ql=[o]:Ql.push(o),Kl!==4&&(Kl=2),t===null)return!0;r=li(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=Js(n.stateNode,r,e),Ra(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`&&(au===null||!au.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=Ys(a),Xs(a,e,n,r),Ra(n,a),!1}n=n.return}while(n!==null);return!1}var Qs=Error(i(461)),$s=!1;function ec(e,t,n,r){t.child=e===null?ja(t,null,n,r):Aa(t,e.child,n,r)}function tc(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 Ki(t),r=vo(e,t,n,o,a,i),s=So(),e!==null&&!$s?(Co(e,t,i),Tc(e,t,i)):(Ei&&s&&xi(t),t.flags|=1,ec(e,t,r,i),t.child)}function nc(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!$r(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,rc(e,t,a,r,i)):(e=ni(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!Ec(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?pr:n,n(o,r)&&e.ref===t.ref)return Tc(e,t,i)}return t.flags|=1,e=ei(a,r),e.ref=t.ref,e.return=t,t.child=e}function rc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(pr(a,r)&&e.ref===t.ref)if($s=!1,t.pendingProps=r=a,Ec(e,i))e.flags&131072&&($s=!0);else return t.lanes=e.lanes,Tc(e,t,i)}return dc(e,t,n,r,i)}function ic(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 oc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&fa(t,a===null?null:a.cachePool),a===null?qa():Ka(t,a),$a(t);else return r=t.lanes=536870912,oc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&fa(t,null),qa(),eo(t)):(fa(t,a.cachePool),Ka(t,a),eo(t),t.memoizedState=null);return ec(e,t,i,n),t.child}function ac(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function oc(e,t,n,r,i){var a=da();return a=a===null?null:{parent:$i._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&fa(t,null),qa(),$a(t),e!==null&&Wi(e,t,r,!0),t.childLanes=i,null}function sc(e,t){return t=bc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function cc(e,t,n){return Aa(t,e.child,null,n),e=sc(t,t.pendingProps),e.flags|=2,to(t),t.memoizedState=null,e}function lc(e,t,n){var r=t.pendingProps,a=(t.flags&128)!=0;if(t.flags&=-129,e===null){if(Ei){if(r.mode===`hidden`)return e=sc(t,r),t.lanes=536870912,ac(null,e);if(Qa(t),(e=Ti)?(e=sf(e,Oi),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:gi===null?null:{id:_i,overflow:vi},retryLane:536870912,hydrationErrors:null},n=ai(e),n.return=t,t.child=n,wi=t,Ti=null)):e=null,e===null)throw Ai(t);return t.lanes=536870912,null}return sc(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(Qa(t),a)if(t.flags&256)t.flags&=-257,t=cc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558));else if($s||Wi(e,t,n,!1),a=(n&e.childLanes)!==0,$s||a){if(r=Ll,r!==null&&(s=Ge(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,qr(e,s),_u(r,e,s),Qs;ku(),t=cc(e,t,n)}else e=o.treeContext,Ti=df(s.nextSibling),wi=t,Ei=!0,Di=null,Oi=!1,e!==null&&Ci(t,e),t=sc(t,r),t.flags|=4096;return t}return e=ei(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function uc(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 dc(e,t,n,r,i){return Ki(t),n=vo(e,t,n,r,void 0,i),r=So(),e!==null&&!$s?(Co(e,t,i),Tc(e,t,i)):(Ei&&r&&xi(t),t.flags|=1,ec(e,t,n,i),t.child)}function fc(e,t,n,r,i,a){return Ki(t),t.updateQueue=null,n=bo(t,r,n,i),yo(e),r=So(),e!==null&&!$s?(Co(e,t,a),Tc(e,t,a)):(Ei&&r&&xi(t),t.flags|=1,ec(e,t,n,a),t.child)}function pc(e,t,n,r,i){if(Ki(t),t.stateNode===null){var a=Xr,o=n.contextType;typeof o==`object`&&o&&(a=qi(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=zs,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},Na(t),o=n.contextType,a.context=typeof o==`object`&&o?qi(o):Xr,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(Rs(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&&zs.enqueueReplaceState(a,a.state,null),Va(t,r,a,i),Ba(),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=Hs(n,s);a.props=c;var l=a.context,u=n.contextType;o=Xr,typeof u==`object`&&u&&(o=qi(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)&&Vs(t,a,r,o),Ma=!1;var f=t.memoizedState;a.state=f,Va(t,r,a,i),Ba(),l=t.memoizedState,s||f!==l||Ma?(typeof d==`function`&&(Rs(t,n,d,r),l=t.memoizedState),(c=Ma||Bs(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,Pa(e,t),o=t.memoizedProps,u=Hs(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=Xr,typeof l==`object`&&l&&(c=qi(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)&&Vs(t,a,r,c),Ma=!1,f=t.memoizedState,a.state=f,Va(t,r,a,i),Ba();var p=t.memoizedState;o!==d||f!==p||Ma||e!==null&&e.dependencies!==null&&Gi(e.dependencies)?(typeof s==`function`&&(Rs(t,n,s,r),p=t.memoizedState),(u=Ma||Bs(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&Gi(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,uc(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=Aa(t,e.child,null,i),t.child=Aa(t,null,n,i)):ec(e,t,n,i),t.memoizedState=a.state,e=t.child):e=Tc(e,t,i),e}function mc(e,t,n,r){return Pi(),t.flags|=256,ec(e,t,n,r),t.child}var hc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function gc(e){return{baseLanes:e,cachePool:pa()}}function _c(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=Xl),e}function vc(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:(no.current&2)!=0),s&&(a=!0,t.flags&=-129),s=(t.flags&32)!=0,t.flags&=-33,e===null){if(Ei){if(a?Za(t):eo(t),(e=Ti)?(e=sf(e,Oi),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:gi===null?null:{id:_i,overflow:vi},retryLane:536870912,hydrationErrors:null},n=ai(e),n.return=t,t.child=n,wi=t,Ti=null)):e=null,e===null)throw Ai(t);return lf(e)?t.lanes=32:t.lanes=536870912,null}var c=r.children;return r=r.fallback,a?(eo(t),a=t.mode,c=bc({mode:`hidden`,children:c},a),r=ri(r,a,n,null),c.return=t,r.return=t,c.sibling=r,t.child=c,r=t.child,r.memoizedState=gc(n),r.childLanes=_c(e,s,n),t.memoizedState=hc,ac(null,r)):(Za(t),yc(t,c))}var l=e.memoizedState;if(l!==null&&(c=l.dehydrated,c!==null)){if(o)t.flags&256?(Za(t),t.flags&=-257,t=xc(e,t,n)):t.memoizedState===null?(eo(t),c=r.fallback,a=t.mode,r=bc({mode:`visible`,children:r.children},a),c=ri(c,a,n,null),c.flags|=2,r.return=t,c.return=t,r.sibling=c,t.child=r,Aa(t,e.child,null,n),r=t.child,r.memoizedState=gc(n),r.childLanes=_c(e,s,n),t.memoizedState=hc,t=ac(null,r)):(eo(t),t.child=e.child,t.flags|=128,t=null);else if(Za(t),lf(c)){if(s=c.nextSibling&&c.nextSibling.dataset,s)var u=s.dgst;s=u,r=Error(i(419)),r.stack=``,r.digest=s,Ii({value:r,source:null,stack:null}),t=xc(e,t,n)}else if($s||Wi(e,t,n,!1),s=(n&e.childLanes)!==0,$s||s){if(s=Ll,s!==null&&(r=Ge(s,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,qr(e,r),_u(s,e,r),Qs;cf(c)||ku(),t=xc(e,t,n)}else cf(c)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,Ti=df(c.nextSibling),wi=t,Ei=!0,Di=null,Oi=!1,e!==null&&Ci(t,e),t=yc(t,r.children),t.flags|=4096);return t}return a?(eo(t),c=r.fallback,a=t.mode,l=e.child,u=l.sibling,r=ei(l,{mode:`hidden`,children:r.children}),r.subtreeFlags=l.subtreeFlags&65011712,u===null?(c=ri(c,a,n,null),c.flags|=2):c=ei(u,c),c.return=t,r.return=t,r.sibling=c,t.child=r,ac(null,r),r=t.child,c=e.child.memoizedState,c===null?c=gc(n):(a=c.cachePool,a===null?a=pa():(l=$i._currentValue,a=a.parent===l?a:{parent:l,pool:l}),c={baseLanes:c.baseLanes|n,cachePool:a}),r.memoizedState=c,r.childLanes=_c(e,s,n),t.memoizedState=hc,ac(e.child,r)):(Za(t),n=e.child,e=n.sibling,n=ei(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 yc(e,t){return t=bc({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function bc(e,t){return e=Qr(22,e,null,t),e.lanes=0,e}function xc(e,t,n){return Aa(t,e.child,null,n),e=yc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Sc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Hi(e.return,t,n)}function Cc(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 wc(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=no.current,s=(o&2)!=0;if(s?(o=o&1|2,t.flags|=128):o&=1,B(no,o),ec(e,t,r,n),r=Ei?pi:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Sc(e,n,t);else if(e.tag===19)Sc(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&&ro(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Cc(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&&ro(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Cc(t,!0,n,null,a,r);break;case`together`:Cc(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function Tc(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ql|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Wi(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=ei(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ei(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Ec(e,t){return(e.lanes&t)===0?(e=e.dependencies,!!(e!==null&&Gi(e))):!0}function Dc(e,t,n){switch(t.tag){case 3:ee(t,t.stateNode.containerInfo),Bi(t,$i,e.memoizedState.cache),Pi();break;case 27:case 5:te(t);break;case 4:ee(t,t.stateNode.containerInfo);break;case 10:Bi(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Qa(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(Za(t),e=Tc(e,t,n),e===null?null:e.sibling):vc(e,t,n):(Za(t),t.flags|=128,null);Za(t);break;case 19:var i=(e.flags&128)!=0;if(r=(n&t.childLanes)!==0,r||=(Wi(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return wc(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),B(no,no.current),r)break;return null;case 22:return t.lanes=0,ic(e,t,n,t.pendingProps);case 24:Bi(t,$i,e.memoizedState.cache)}return Tc(e,t,n)}function Oc(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)$s=!0;else{if(!Ec(e,n)&&!(t.flags&128))return $s=!1,Dc(e,t,n);$s=!!(e.flags&131072)}else $s=!1,Ei&&t.flags&1048576&&bi(t,pi,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=ba(t.elementType),t.type=e,typeof e==`function`)$r(e)?(r=Hs(e,r),t.tag=1,t=pc(null,t,e,r,n)):(t.tag=0,t=dc(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===x){t.tag=11,t=tc(null,t,e,r,n);break a}else if(a===w){t.tag=14,t=nc(null,t,e,r,n);break a}}throw t=j(e)||e,Error(i(306,t,``))}}return t;case 0:return dc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=Hs(r,t.pendingProps),pc(e,t,r,a,n);case 3:a:{if(ee(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,Pa(e,t),Va(t,r,null,n);var s=t.memoizedState;if(r=s.cache,Bi(t,$i,r),r!==o.cache&&Ui(t,[$i],n,!0),Ba(),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=mc(e,t,r,n);break a}else if(r!==a){a=li(Error(i(424)),t),Ii(a),t=mc(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(Ti=df(e.firstChild),wi=t,Ei=!0,Di=null,Oi=!0,n=ja(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Pi(),r===a){t=Tc(e,t,n);break a}ec(e,t,r,n)}t=t.child}return t;case 26:return uc(e,t),e===null?(n=jf(t.type,null,t.pendingProps,null))?t.memoizedState=n:Ei||(n=t.type,e=t.pendingProps,r=Wd(U.current).createElement(n),r[Ze]=t,r[Qe]=e,Rd(r,n,e),ut(r),t.stateNode=r):t.memoizedState=jf(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return te(t),e===null&&Ei&&(r=t.stateNode=hf(t.type,t.pendingProps,U.current),wi=t,Oi=!0,a=Ti,ef(t.type)?(ff=a,Ti=df(r.firstChild)):Ti=a),ec(e,t,t.pendingProps.children,n),uc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ei&&((a=r=Ti)&&(r=af(r,t.type,t.pendingProps,Oi),r===null?a=!1:(t.stateNode=r,wi=t,Ti=df(r.firstChild),Oi=!1,a=!0)),a||Ai(t)),te(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,qd(a,o)?r=null:s!==null&&qd(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=vo(e,t,xo,null,null,n),ep._currentValue=a),uc(e,t),ec(e,t,r,n),t.child;case 6:return e===null&&Ei&&((e=n=Ti)&&(n=of(n,t.pendingProps,Oi),n===null?e=!1:(t.stateNode=n,wi=t,Ti=null,e=!0)),e||Ai(t)),null;case 13:return vc(e,t,n);case 4:return ee(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Aa(t,null,r,n):ec(e,t,r,n),t.child;case 11:return tc(e,t,t.type,t.pendingProps,n);case 7:return ec(e,t,t.pendingProps,n),t.child;case 8:return ec(e,t,t.pendingProps.children,n),t.child;case 12:return ec(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,Bi(t,t.type,r.value),ec(e,t,r.children,n),t.child;case 9:return a=t.type._context,r=t.pendingProps.children,Ki(t),a=qi(a),r=r(a),t.flags|=1,ec(e,t,r,n),t.child;case 14:return nc(e,t,t.type,t.pendingProps,n);case 15:return rc(e,t,t.type,t.pendingProps,n);case 19:return wc(e,t,n);case 31:return lc(e,t,n);case 22:return ic(e,t,n,t.pendingProps);case 24:return Ki(t),r=qi($i),e===null?(a=da(),a===null&&(a=Ll,o=ea(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},Na(t),Bi(t,$i,a)):((e.lanes&n)!==0&&(Pa(e,t),Va(t,null,null,n),Ba()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,Bi(t,$i,r),r!==a.cache&&Ui(t,[$i],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),Bi(t,$i,r))),ec(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function kc(e){e.flags|=4}function Ac(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 xa=_a,ha}else e.flags&=-16777217}function jc(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Kf(t))if(Eu())e.flags|=8192;else throw xa=_a,ha}function Mc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:Be(),e.lanes|=t,Zl|=t)}function Nc(e,t){if(!Ei)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 Pc(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 Fc(e,t,n){var r=t.pendingProps;switch(Si(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Pc(t),null;case 1:return Pc(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Vi($i),G(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Ni(t)?kc(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Fi())),Pc(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(kc(t),o===null?(Pc(t),Ac(t,a,null,r,n)):(Pc(t),jc(t,o))):o?o===e.memoizedState?(Pc(t),t.flags&=-16777217):(kc(t),Pc(t),jc(t,o)):(e=e.memoizedProps,e!==r&&kc(t),Pc(t),Ac(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&&kc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Pc(t),null}e=V.current,Ni(t)?ji(t,e):(e=hf(a,r,n),t.stateNode=e,kc(t))}return Pc(t),null;case 5:if(ne(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&kc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Pc(t),null}if(o=V.current,Ni(t))ji(t,o);else{var s=Wd(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[Ze]=t,o[Qe]=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(Rd(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&&kc(t)}}return Pc(t),Ac(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&kc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=U.current,Ni(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=wi,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[Ze]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Fd(e.nodeValue,n)),e||Ai(t,!0)}else e=Wd(e).createTextNode(r),e[Ze]=t,t.stateNode=e}return Pc(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Ni(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[Ze]=t}else Pi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Pc(t),e=!1}else n=Fi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(to(t),t):(to(t),null);if(t.flags&128)throw Error(i(558))}return Pc(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Ni(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[Ze]=t}else Pi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Pc(t),a=!1}else a=Fi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(to(t),t):(to(t),null)}return to(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),Mc(t,t.updateQueue),Pc(t),null);case 4:return G(),e===null&&Td(t.stateNode.containerInfo),Pc(t),null;case 10:return Vi(t.type),Pc(t),null;case 19:if(z(no),r=t.memoizedState,r===null)return Pc(t),null;if(a=(t.flags&128)!=0,o=r.rendering,o===null)if(a)Nc(r,!1);else{if(Kl!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=ro(e),o!==null){for(t.flags|=128,Nc(r,!1),e=o.updateQueue,t.updateQueue=e,Mc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)ti(n,e),n=n.sibling;return B(no,no.current&1|2),Ei&&yi(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&ge()>ru&&(t.flags|=128,a=!0,Nc(r,!1),t.lanes=4194304)}else{if(!a)if(e=ro(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,Mc(t,e),Nc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!Ei)return Pc(t),null}else 2*ge()-r.renderingStartTime>ru&&n!==536870912&&(t.flags|=128,a=!0,Nc(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?(Pc(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=ge(),e.sibling=null,n=no.current,B(no,a?n&1|2:n&1),Ei&&yi(t,r.treeForkCount),e);case 22:case 23:return to(t),Ja(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Pc(t),t.subtreeFlags&6&&(t.flags|=8192)):Pc(t),n=t.updateQueue,n!==null&&Mc(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(ua),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Vi($i),Pc(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function Ic(e,t){switch(Si(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Vi($i),G(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ne(t),null;case 31:if(t.memoizedState!==null){if(to(t),t.alternate===null)throw Error(i(340));Pi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(to(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));Pi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return z(no),null;case 4:return G(),null;case 10:return Vi(t.type),null;case 22:case 23:return to(t),Ja(),e!==null&&z(ua),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Vi($i),null;case 25:return null;default:return null}}function Lc(e,t){switch(Si(t),t.tag){case 3:Vi($i),G();break;case 26:case 27:case 5:ne(t);break;case 4:G();break;case 31:t.memoizedState!==null&&to(t);break;case 13:to(t);break;case 19:z(no);break;case 10:Vi(t.type);break;case 22:case 23:to(t),Ja(),e!==null&&z(ua);break;case 24:Vi($i)}}function Rc(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 zc(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 Bc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Ua(t,n)}catch(t){qu(e,e.return,t)}}}function Vc(e,t,n){n.props=Hs(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){qu(e,t,n)}}function Hc(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 Uc(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 Wc(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 Gc(e,t,n){try{var r=e.stateNode;zd(r,e.type,n,t),r[Qe]=t}catch(t){qu(e,e.return,t)}}function Kc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ef(e.type)||e.tag===4}function qc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Kc(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&&ef(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 Jc(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=Wt));else if(r!==4&&(r===27&&ef(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Jc(e,t,n),e=e.sibling;e!==null;)Jc(e,t,n),e=e.sibling}function Yc(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&&ef(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Yc(e,t,n),e=e.sibling;e!==null;)Yc(e,t,n),e=e.sibling}function Xc(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Rd(t,r,n),t[Ze]=e,t[Qe]=n}catch(t){qu(e,e.return,t)}}var Zc=!1,Qc=!1,$c=!1,el=typeof WeakSet==`function`?WeakSet:Set,tl=null;function nl(e,t){if(e=e.containerInfo,Hd=lp,e=_r(e),vr(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(Ud={focusedElem:e,selectionRange:n},lp=!1,tl=t;tl!==null;)if(t=tl,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,tl=e;else for(;tl!==null;){switch(t=tl,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=Hs(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)rf(e);else if(n===1)switch(e.nodeName){case`HEAD`:case`HTML`:case`BODY`:rf(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,tl=e;break}tl=t.return}}function rl(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:_l(e,n),r&4&&Rc(5,n);break;case 1:if(_l(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){qu(n,n.return,e)}else{var i=Hs(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){qu(n,n.return,e)}}r&64&&Bc(n),r&512&&Hc(n,n.return);break;case 3:if(_l(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{Ua(e,t)}catch(e){qu(n,n.return,e)}}break;case 27:t===null&&r&4&&Xc(n);case 26:case 5:_l(e,n),t===null&&r&4&&Wc(n),r&512&&Hc(n,n.return);break;case 12:_l(e,n);break;case 31:_l(e,n),r&4&&ll(e,n);break;case 13:_l(e,n),r&4&&ul(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Zu.bind(null,n),uf(e,n))));break;case 22:if(r=n.memoizedState!==null||Zc,!r){t=t!==null&&t.memoizedState!==null||Qc,i=Zc;var a=Qc;Zc=r,(Qc=t)&&!a?yl(e,n,(n.subtreeFlags&8772)!=0):_l(e,n),Zc=i,Qc=a}break;case 30:break;default:_l(e,n)}}function il(e){var t=e.alternate;t!==null&&(e.alternate=null,il(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&at(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 al=null,ol=!1;function sl(e,t,n){for(n=n.child;n!==null;)cl(e,t,n),n=n.sibling}function cl(e,t,n){if(Ee&&typeof Ee.onCommitFiberUnmount==`function`)try{Ee.onCommitFiberUnmount(Te,n)}catch{}switch(n.tag){case 26:Qc||Uc(n,t),sl(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Qc||Uc(n,t);var r=al,i=ol;ef(n.type)&&(al=n.stateNode,ol=!1),sl(e,t,n),gf(n.stateNode),al=r,ol=i;break;case 5:Qc||Uc(n,t);case 6:if(r=al,i=ol,al=null,sl(e,t,n),al=r,ol=i,al!==null)if(ol)try{(al.nodeType===9?al.body:al.nodeName===`HTML`?al.ownerDocument.body:al).removeChild(n.stateNode)}catch(e){qu(n,t,e)}else try{al.removeChild(n.stateNode)}catch(e){qu(n,t,e)}break;case 18:al!==null&&(ol?(e=al,tf(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Fp(e)):tf(al,n.stateNode));break;case 4:r=al,i=ol,al=n.stateNode.containerInfo,ol=!0,sl(e,t,n),al=r,ol=i;break;case 0:case 11:case 14:case 15:zc(2,n,t),Qc||zc(4,n,t),sl(e,t,n);break;case 1:Qc||(Uc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&Vc(n,t,r)),sl(e,t,n);break;case 21:sl(e,t,n);break;case 22:Qc=(r=Qc)||n.memoizedState!==null,sl(e,t,n),Qc=r;break;default:sl(e,t,n)}}function ll(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Fp(e)}catch(e){qu(t,t.return,e)}}}function ul(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Fp(e)}catch(e){qu(t,t.return,e)}}function eee(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new el),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new el),t;default:throw Error(i(435,e.tag))}}function dl(e,t){var n=eee(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=Qu.bind(null,e,t);t.then(r,r)}})}function fl(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(ef(c.type)){al=c.stateNode,ol=!1;break a}break;case 5:al=c.stateNode,ol=!1;break a;case 3:case 4:al=c.stateNode.containerInfo,ol=!0;break a}c=c.return}if(al===null)throw Error(i(160));cl(o,s,a),al=null,ol=!1,o=a.alternate,o!==null&&(o.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)ml(t,e),t=t.sibling}var pl=null;function ml(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:fl(t,e),hl(e),r&4&&(zc(3,e,e.return),Rc(3,e),zc(5,e,e.return));break;case 1:fl(t,e),hl(e),r&512&&(Qc||n===null||Uc(n,n.return)),r&64&&Zc&&(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=pl;if(fl(t,e),hl(e),r&512&&(Qc||n===null||Uc(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[it]||o[Ze]||o.namespaceURI===`http://www.w3.org/2000/svg`||o.hasAttribute(`itemprop`))&&(o=a.createElement(r),a.head.insertBefore(o,a.querySelector(`head > title`))),Rd(o,r,n),o[Ze]=e,ut(o),r=o;break a;case`link`:var s=Uf(`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),Rd(o,r,n),a.head.appendChild(o);break;case`meta`:if(s=Uf(`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),Rd(o,r,n),a.head.appendChild(o);break;default:throw Error(i(468,r))}o[Ze]=e,ut(o),r=o}e.stateNode=r}else Wf(a,e.type,e.stateNode);else e.stateNode=Rf(a,r,e.memoizedProps);else o===r?r===null&&e.stateNode!==null&&Gc(e,e.memoizedProps,n.memoizedProps):(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,r===null?Wf(a,e.type,e.stateNode):Rf(a,r,e.memoizedProps))}break;case 27:fl(t,e),hl(e),r&512&&(Qc||n===null||Uc(n,n.return)),n!==null&&r&4&&Gc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(fl(t,e),hl(e),r&512&&(Qc||n===null||Uc(n,n.return)),e.flags&32){a=e.stateNode;try{It(a,``)}catch(t){qu(e,e.return,t)}}r&4&&e.stateNode!=null&&(a=e.memoizedProps,Gc(e,a,n===null?a:n.memoizedProps)),r&1024&&($c=!0);break;case 6:if(fl(t,e),hl(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(Hf=null,a=pl,pl=yf(t.containerInfo),fl(t,e),pl=a,hl(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Fp(t.containerInfo)}catch(t){qu(e,e.return,t)}$c&&($c=!1,gl(e));break;case 4:r=pl,pl=yf(e.stateNode.containerInfo),fl(t,e),hl(e),pl=r;break;case 12:fl(t,e),hl(e);break;case 31:fl(t,e),hl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,dl(e,r)));break;case 13:fl(t,e),hl(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(tu=ge()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,dl(e,r)));break;case 22:a=e.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,u=Zc,d=Qc;if(Zc=u||a,Qc=d||l,fl(t,e),Qc=d,Zc=u,hl(e),r&8192)a:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(n===null||l||Zc||Qc||vl(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?nf(m,!0):nf(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,dl(e,n))));break;case 19:fl(t,e),hl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,dl(e,r)));break;case 30:break;case 21:break;default:fl(t,e),hl(e)}}function hl(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Kc(r)){n=r;break}r=r.return}if(n==null)throw Error(i(160));switch(n.tag){case 27:var a=n.stateNode;Yc(e,qc(e),a);break;case 5:var o=n.stateNode;n.flags&32&&(It(o,``),n.flags&=-33),Yc(e,qc(e),o);break;case 3:case 4:var s=n.stateNode.containerInfo;Jc(e,qc(e),s);break;default:throw Error(i(161))}}catch(t){qu(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function gl(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;gl(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function _l(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)rl(e,t.alternate,t),t=t.sibling}function vl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:zc(4,t,t.return),vl(t);break;case 1:Uc(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount==`function`&&Vc(t,t.return,n),vl(t);break;case 27:gf(t.stateNode);case 26:case 5:Uc(t,t.return),vl(t);break;case 22:t.memoizedState===null&&vl(t);break;case 30:vl(t);break;default:vl(t)}e=e.sibling}}function yl(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:yl(i,a,n),Rc(4,a);break;case 1:if(yl(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++)Ha(c[i],s)}catch(e){qu(r,r.return,e)}}n&&o&64&&Bc(a),Hc(a,a.return);break;case 27:Xc(a);case 26:case 5:yl(i,a,n),n&&r===null&&o&4&&Wc(a),Hc(a,a.return);break;case 12:yl(i,a,n);break;case 31:yl(i,a,n),n&&o&4&&ll(i,a);break;case 13:yl(i,a,n),n&&o&4&&ul(i,a);break;case 22:a.memoizedState===null&&yl(i,a,n),Hc(a,a.return);break;case 30:break;default:yl(i,a,n)}t=t.sibling}}function bl(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&&ta(n))}function xl(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ta(e))}function Sl(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Cl(e,t,n,r),t=t.sibling}function Cl(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:Sl(e,t,n,r),i&2048&&Rc(9,t);break;case 1:Sl(e,t,n,r);break;case 3:Sl(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&&ta(e)));break;case 12:if(i&2048){Sl(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 Sl(e,t,n,r);break;case 31:Sl(e,t,n,r);break;case 13:Sl(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,o=t.alternate,t.memoizedState===null?a._visibility&2?Sl(e,t,n,r):(a._visibility|=2,wl(e,t,n,r,(t.subtreeFlags&10256)!=0||!1)):a._visibility&2?Sl(e,t,n,r):Tl(e,t),i&2048&&bl(o,t);break;case 24:Sl(e,t,n,r),i&2048&&xl(t.alternate,t);break;default:Sl(e,t,n,r)}}function wl(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:wl(a,o,s,c,i),Rc(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,wl(a,o,s,c,i)):u._visibility&2?wl(a,o,s,c,i):Tl(a,o),i&&l&2048&&bl(o.alternate,o);break;case 24:wl(a,o,s,c,i),i&&l&2048&&xl(o.alternate,o);break;default:wl(a,o,s,c,i)}t=t.sibling}}function Tl(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:Tl(n,r),i&2048&&bl(r.alternate,r);break;case 24:Tl(n,r),i&2048&&xl(r.alternate,r);break;default:Tl(n,r)}t=t.sibling}}var El=8192;function Dl(e,t,n){if(e.subtreeFlags&El)for(e=e.child;e!==null;)Ol(e,t,n),e=e.sibling}function Ol(e,t,n){switch(e.tag){case 26:Dl(e,t,n),e.flags&El&&e.memoizedState!==null&&qf(n,pl,e.memoizedState,e.memoizedProps);break;case 5:Dl(e,t,n);break;case 3:case 4:var r=pl;pl=yf(e.stateNode.containerInfo),Dl(e,t,n),pl=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=El,El=16777216,Dl(e,t,n),El=r):Dl(e,t,n));break;default:Dl(e,t,n)}}function kl(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 Al(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];tl=r,Nl(r,e)}kl(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)jl(e),e=e.sibling}function jl(e){switch(e.tag){case 0:case 11:case 15:Al(e),e.flags&2048&&zc(9,e,e.return);break;case 3:Al(e);break;case 12:Al(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Ml(e)):Al(e);break;default:Al(e)}}function Ml(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];tl=r,Nl(r,e)}kl(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:zc(8,t,t.return),Ml(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Ml(t));break;default:Ml(t)}e=e.sibling}}function Nl(e,t){for(;tl!==null;){var n=tl;switch(n.tag){case 0:case 11:case 15:zc(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:ta(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,tl=r;else a:for(n=e;tl!==null;){r=tl;var i=r.sibling,a=r.return;if(il(r),r===n){tl=null;break a}if(i!==null){i.return=a,tl=i;break a}tl=a}}}var Pl={getCacheForType:function(e){var t=qi($i),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return qi($i).controller.signal}},Fl=typeof WeakMap==`function`?WeakMap:Map,Il=0,Ll=null,Rl=null,zl=0,Bl=0,Vl=null,Hl=!1,Ul=!1,Wl=!1,Gl=0,Kl=0,ql=0,Jl=0,Yl=0,Xl=0,Zl=0,Ql=null,$l=null,eu=!1,tu=0,nu=0,ru=1/0,iu=null,au=null,ou=0,su=null,cu=null,lu=0,uu=0,du=null,fu=null,pu=0,mu=null;function hu(){return Il&2&&zl!==0?zl&-zl:N.T===null?Je():pd()}function gu(){if(Xl===0)if(!(zl&536870912)||Ei){var e=Pe;Pe<<=1,!(Pe&3932160)&&(Pe=262144),Xl=e}else Xl=536870912;return e=Ya.current,e!==null&&(e.flags|=32),Xl}function _u(e,t,n){(e===Ll&&(Bl===2||Bl===9)||e.cancelPendingCommit!==null)&&(wu(e,0),xu(e,zl,Xl,!1)),He(e,n),(!(Il&2)||e!==Ll)&&(e===Ll&&(!(Il&2)&&(Jl|=n),Kl===4&&xu(e,zl,Xl,!1)),od(e))}function vu(e,t,n){if(Il&6)throw Error(i(327));var r=!n&&(t&127)==0&&(t&e.expiredLanes)===0||Re(e,t),a=r?Mu(e,t):Au(e,t,!0),o=r;do{if(a===0){Ul&&!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=Ql;var l=c.current.memoizedState.isDehydrated;if(l&&(wu(c,s).flags|=256),s=Au(c,s,!1),s!==2){if(Wl&&!l){c.errorRecoveryDisabledLanes|=o,Jl|=o,a=4;break a}o=$l,$l=a,o!==null&&($l===null?$l=o:$l.push.apply($l,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,Xl,!Hl);break a;case 2:$l=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=tu+300-ge(),10<a)){if(xu(r,t,Xl,!Hl),Le(r,0,!0)!==0)break a;lu=t,r.timeoutHandle=Xd(yu.bind(null,r,n,$l,iu,eu,t,Xl,Jl,Zl,Hl,o,`Throttled`,-0,0),a);break a}yu(r,n,$l,iu,eu,t,Xl,Jl,Zl,Hl,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:Wt},Ol(t,a,d);var m=(a&62914560)===a?tu-ge():(a&4194048)===a?nu-ge():0;if(m=Yf(d,m),m!==null){lu=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(!fr(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&=~Yl,t&=~Jl,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-Oe(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&We(e,n,t)}function Su(){return Il&6?!0:(sd(0,!1),!1)}function Cu(){if(Rl!==null){if(Bl===0)var e=Rl.return;else e=Rl,zi=Ri=null,wo(e),wa=null,Ta=0,e=Rl;for(;e!==null;)Lc(e.alternate,e),e=e.return;Rl=null}}function wu(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,Zd(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),lu=0,Cu(),Ll=e,Rl=n=ei(e.current,null),zl=t,Bl=0,Vl=null,Hl=!1,Ul=Re(e,t),Wl=!1,Zl=Xl=Yl=Jl=ql=Kl=0,$l=Ql=null,eu=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-Oe(r),a=1<<i;t|=e[i],r&=~a}return Gl=t,Wr(),n}function Tu(e,t){ao=null,N.H=Ps,t===ma||t===ga?(t=Sa(),Bl=3):t===ha?(t=Sa(),Bl=4):Bl=t===Qs?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,Vl=t,Rl===null&&(Kl=1,Ks(e,li(t,e.current)))}function Eu(){var e=Ya.current;return e===null?!0:(zl&4194048)===zl?Xa===null:(zl&62914560)===zl||zl&536870912?e===Xa:!1}function Du(){var e=N.H;return N.H=Ps,e===null?Ps:e}function Ou(){var e=N.A;return N.A=Pl,e}function ku(){Kl=4,Hl||(zl&4194048)!==zl&&Ya.current!==null||(Ul=!0),!(ql&134217727)&&!(Jl&134217727)||Ll===null||xu(Ll,zl,Xl,!1)}function Au(e,t,n){var r=Il;Il|=2;var i=Du(),a=Ou();(Ll!==e||zl!==t)&&(iu=null,wu(e,t)),t=!1;var o=Kl;a:do try{if(Bl!==0&&Rl!==null){var s=Rl,c=Vl;switch(Bl){case 8:Cu(),o=6;break a;case 3:case 2:case 9:case 6:Ya.current===null&&(t=!0);var l=Bl;if(Bl=0,Vl=null,Iu(e,s,c,l),n&&Ul){o=0;break a}break;default:l=Bl,Bl=0,Vl=null,Iu(e,s,c,l)}}ju(),o=Kl;break}catch(t){Tu(e,t)}while(1);return t&&e.shellSuspendCounter++,zi=Ri=null,Il=r,N.H=i,N.A=a,Rl===null&&(Ll=null,zl=0,Wr()),o}function ju(){for(;Rl!==null;)Pu(Rl)}function Mu(e,t){var n=Il;Il|=2;var r=Du(),a=Ou();Ll!==e||zl!==t?(iu=null,ru=ge()+500,wu(e,t)):Ul=Re(e,t);a:do try{if(Bl!==0&&Rl!==null){t=Rl;var o=Vl;b:switch(Bl){case 1:Bl=0,Vl=null,Iu(e,t,o,1);break;case 2:case 9:if(va(o)){Bl=0,Vl=null,Fu(t);break}t=function(){Bl!==2&&Bl!==9||Ll!==e||(Bl=7),od(e)},o.then(t,t);break a;case 3:Bl=7;break a;case 4:Bl=5;break a;case 7:va(o)?(Bl=0,Vl=null,Fu(t)):(Bl=0,Vl=null,Iu(e,t,o,7));break;case 5:var s=null;switch(Rl.tag){case 26:s=Rl.memoizedState;case 5:case 27:var c=Rl;if(s?Kf(s):c.stateNode.complete){Bl=0,Vl=null;var l=c.sibling;if(l!==null)Rl=l;else{var u=c.return;u===null?Rl=null:(Rl=u,Lu(u))}break b}}Bl=0,Vl=null,Iu(e,t,o,5);break;case 6:Bl=0,Vl=null,Iu(e,t,o,6);break;case 8:Cu(),Kl=6;break a;default:throw Error(i(462))}}Nu();break}catch(t){Tu(e,t)}while(1);return zi=Ri=null,N.H=r,N.A=a,Il=n,Rl===null?(Ll=null,zl=0,Wr(),Kl):0}function Nu(){for(;Rl!==null&&!pe();)Pu(Rl)}function Pu(e){var t=Oc(e.alternate,e,Gl);e.memoizedProps=e.pendingProps,t===null?Lu(e):Rl=t}function Fu(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=fc(n,t,t.pendingProps,t.type,void 0,zl);break;case 11:t=fc(n,t,t.pendingProps,t.type.render,t.ref,zl);break;case 5:wo(t);default:Lc(n,t),t=Rl=ti(t,Gl),t=Oc(n,t,Gl)}e.memoizedProps=e.pendingProps,t===null?Lu(e):Rl=t}function Iu(e,t,n,r){zi=Ri=null,wo(t),wa=null,Ta=0;var i=t.return;try{if(Zs(e,i,t,n,zl)){Kl=1,Ks(e,li(n,e.current)),Rl=null;return}}catch(t){if(i!==null)throw Rl=i,t;Kl=1,Ks(e,li(n,e.current)),Rl=null;return}t.flags&32768?(Ei||r===1?e=!0:Ul||zl&536870912?e=!1:(Hl=e=!0,(r===2||r===9||r===3||r===6)&&(r=Ya.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,Hl);return}e=t.return;var n=Fc(t.alternate,t,Gl);if(n!==null){Rl=n;return}if(t=t.sibling,t!==null){Rl=t;return}Rl=t=e}while(t!==null);Kl===0&&(Kl=5)}function Ru(e,t){do{var n=Ic(e.alternate,e);if(n!==null){n.flags&=32767,Rl=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Rl=e;return}Rl=e=n}while(e!==null);Kl=6,Rl=null}function zu(e,t,n,r,a,o,s,c,l){e.cancelPendingCommit=null;do Wu();while(ou!==0);if(Il&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(o=t.lanes|t.childLanes,o|=Ur,Ue(e,n,o,s,c,l),e===Ll&&(Rl=Ll=null,zl=0),cu=t,su=e,lu=n,uu=o,du=a,fu=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,$u(be,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=Il,Il|=4;try{nl(e,t,n)}finally{Il=s,P.p=a,N.T=r}}ou=1,Bu(),Vu(),Hu()}}function Bu(){if(ou===1){ou=0;var e=su,t=cu,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=Il;Il|=4;try{ml(t,e);var a=Ud,o=_r(e.containerInfo),s=a.focusedElem,c=a.selectionRange;if(o!==s&&s&&s.ownerDocument&&gr(s.ownerDocument.documentElement,s)){if(c!==null&&vr(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 _=hr(s,h),v=hr(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}}lp=!!Hd,Ud=Hd=null}finally{Il=i,P.p=r,N.T=n}}e.current=t,ou=2}}function Vu(){if(ou===2){ou=0;var e=su,t=cu,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=Il;Il|=4;try{rl(e,t.alternate,t)}finally{Il=i,P.p=r,N.T=n}}ou=3}}function Hu(){if(ou===4||ou===3){ou=0,me();var e=su,t=cu,n=lu,r=fu;t.subtreeFlags&10256||t.flags&10256?ou=5:(ou=0,cu=su=null,Uu(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(au=null),qe(n),t=t.stateNode,Ee&&typeof Ee.onCommitFiberRoot==`function`)try{Ee.onCommitFiberRoot(Te,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}}lu&3&&Wu(),od(e),i=e.pendingLanes,n&261930&&i&42?e===mu?pu++:(pu=0,mu=e):pu=0,sd(0,!1)}}function Uu(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ta(t)))}function Wu(){return Bu(),Vu(),Hu(),Gu()}function Gu(){if(ou!==5)return!1;var e=su,t=uu;uu=0;var n=qe(lu),r=N.T,a=P.p;try{P.p=32>n?32:n,N.T=null,n=du,du=null;var o=su,s=lu;if(ou=0,cu=su=null,lu=0,Il&6)throw Error(i(331));var c=Il;if(Il|=4,jl(o.current),Cl(o,o.current,s,n),Il=c,sd(0,!1),Ee&&typeof Ee.onPostCommitFiberRoot==`function`)try{Ee.onPostCommitFiberRoot(Te,o)}catch{}return!0}finally{P.p=a,N.T=r,Uu(e,t)}}function Ku(e,t,n){t=li(n,t),t=Js(e.stateNode,t,2),e=Ia(e,t,2),e!==null&&(He(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`&&(au===null||!au.has(r))){e=li(n,e),n=Ys(2),r=Ia(t,n,2),r!==null&&(Xs(n,r,t,e),He(r,2),od(r));break}}t=t.return}}function Ju(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Fl;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)||(Wl=!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,Ll===e&&(zl&n)===n&&(Kl===4||Kl===3&&(zl&62914560)===zl&&300>ge()-tu?!(Il&2)&&wu(e,0):Yl|=n,Zl===zl&&(Zl=0)),od(e)}function Xu(e,t){t===0&&(t=Be()),e=qr(e,t),e!==null&&(He(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 de(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,fd())}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-Oe(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,dd(r,a))}else a=zl,a=Le(r,r===Ll?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||Re(r,a)||(n=!0,dd(r,a));r=r.next}while(n);id=!1}}function tee(){cd()}function cd(){rd=nd=!1;var e=0;ad!==0&&Yd()&&(e=ad);for(var t=ge(),n=null,r=ed;r!==null;){var i=r.next,a=ld(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}ou!==0&&ou!==5||sd(e,!1),ad!==0&&(ad=0)}function ld(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-Oe(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=ze(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=Ll,n=zl,n=Le(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(Bl===2||Bl===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&fe(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||Re(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&fe(r),qe(n)){case 2:case 8:n=ye;break;case 32:n=be;break;case 268435456:n=Se;break;default:n=be}return r=ud.bind(null,e),n=de(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&fe(r),e.callbackPriority=2,e.callbackNode=null,2}function ud(e,t){if(ou!==0&&ou!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Wu()&&e.callbackNode!==n)return null;var r=zl;return r=Le(e,e===Ll?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(vu(e,r,t),ld(e,ge()),e.callbackNode!=null&&e.callbackNode===n?ud.bind(null,e):null)}function dd(e,t){if(Wu())return null;vu(e,t,!0)}function fd(){$d(function(){Il&6?de(ve,tee):cd()})}function pd(){if(ad===0){var e=ia;e===0&&(e=Ne,Ne<<=1,!(Ne&261888)&&(Ne=256)),ad=e}return ad}function md(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:Ut(``+e)}function hd(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 gd(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=md((i[Qe]||null).action),o=r.submitter;o&&(t=(t=o[Qe]||null)?md(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new fn(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(ad!==0){var e=o?hd(i,o):new FormData(i);bs(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=o?hd(i,o):new FormData(i),bs(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var _d=0;_d<Rr.length;_d++){var vd=Rr[_d];zr(vd.toLowerCase(),`on`+(vd[0].toUpperCase()+vd.slice(1)))}zr(Ar,`onAnimationEnd`),zr(jr,`onAnimationIteration`),zr(Mr,`onAnimationStart`),zr(`dblclick`,`onDoubleClick`),zr(`focusin`,`onFocus`),zr(`focusout`,`onBlur`),zr(Nr,`onTransitionRun`),zr(Pr,`onTransitionStart`),zr(Fr,`onTransitionCancel`),zr(Ir,`onTransitionEnd`),mt(`onMouseEnter`,[`mouseout`,`mouseover`]),mt(`onMouseLeave`,[`mouseout`,`mouseover`]),mt(`onPointerEnter`,[`pointerout`,`pointerover`]),mt(`onPointerLeave`,[`pointerout`,`pointerover`]),pt(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),pt(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),pt(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),pt(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),pt(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),pt(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var yd=`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(` `),bd=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(yd));function xd(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){Br(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){Br(e)}i.currentTarget=null,a=c}}}}function Sd(e,t){var n=t[et];n===void 0&&(n=t[et]=new Set);var r=e+`__bubble`;n.has(r)||(Ed(t,e,2,!1),n.add(r))}function Cd(e,t,n){var r=0;t&&(r|=4),Ed(n,e,r,t)}var wd=`_reactListening`+Math.random().toString(36).slice(2);function Td(e){if(!e[wd]){e[wd]=!0,dt.forEach(function(t){t!==`selectionchange`&&(bd.has(t)||Cd(t,!1,e),Cd(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[wd]||(t[wd]=!0,Cd(`selectionchange`,!1,t))}}function Ed(e,t,n,r){switch(gp(t)){case 2:var i=up;break;case 8:i=dp;break;default:i=fp}n=i.bind(null,t,n,e),i=void 0,!en||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 Dd(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=ot(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}Zt(function(){var r=a,i=Kt(n),s=[];a:{var c=Lr.get(e);if(c!==void 0){var l=fn,u=e;switch(e){case`keypress`:if(sn(n)===0)break a;case`keydown`:case`keyup`:l=An;break;case`focusin`:u=`focus`,l=xn;break;case`focusout`:u=`blur`,l=xn;break;case`beforeblur`:case`afterblur`:l=xn;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=yn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=bn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=Mn;break;case Ar:case jr:case Mr:l=Sn;break;case Ir:l=Nn;break;case`scroll`:case`scrollend`:l=mn;break;case`wheel`:l=Pn;break;case`copy`:case`cut`:case`paste`:l=Cn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=jn;break;case`toggle`:case`beforetoggle`:l=Fn}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=Qt(m,p),g!=null&&d.push(Od(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!==Gt&&(u=n.relatedTarget||n.fromElement)&&(ot(u)||u[$e]))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?ot(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=yn,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=jn,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=l==null?c:ct(l),h=u==null?c:ct(u),c=new d(g,m+`leave`,l,n,i),c.target=f,c.relatedTarget=h,g=null,ot(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=Ad,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&&jd(s,c,l,d,!1),u!==null&&f!==null&&jd(s,f,u,d,!0)}}a:{if(c=r?ct(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var v=er;else if(Jn(c))if(tr)v=ur;else{v=cr;var y=sr}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&Bt(r.elementType)&&(v=er):v=lr;if(v&&=v(e,r)){Yn(s,v,n,i);break a}y&&y(e,c,r),e===`focusout`&&r&&c.type===`number`&&r.memoizedProps.value!=null&&Mt(c,`number`,c.value)}switch(y=r?ct(r):window,e){case`focusin`:(Jn(y)||y.contentEditable===`true`)&&(br=y,xr=r,Sr=null);break;case`focusout`:Sr=xr=br=null;break;case`mousedown`:Cr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Cr=!1,wr(s,n,i);break;case`selectionchange`:if(yr)break;case`keydown`:case`keyup`:wr(s,n,i)}var b;if(Ln)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 Wn?Hn(e,n)&&(x=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(x=`onCompositionStart`);x&&(Bn&&n.locale!==`ko`&&(Wn||x!==`onCompositionStart`?x===`onCompositionEnd`&&Wn&&(b=on()):(nn=i,rn=`value`in nn?nn.value:nn.textContent,Wn=!0)),y=kd(r,x),0<y.length&&(x=new wn(x,e,null,n,i),s.push({event:x,listeners:y}),b?x.data=b:(b=Un(n),b!==null&&(x.data=b)))),(b=zn?Gn(e,n):Kn(e,n))&&(x=kd(r,`onBeforeInput`),0<x.length&&(y=new wn(`onBeforeInput`,`beforeinput`,null,n,i),s.push({event:y,listeners:x}),y.data=b)),gd(s,e,r,n,i)}xd(s,t)})}function Od(e,t,n){return{instance:e,listener:t,currentTarget:n}}function kd(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=Qt(e,n),i!=null&&r.unshift(Od(e,i,a)),i=Qt(e,t),i!=null&&r.push(Od(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Ad(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function jd(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=Qt(n,a),l!=null&&o.unshift(Od(n,l,c))):i||(l=Qt(n,a),l!=null&&o.push(Od(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Md=/\r\n?/g,Nd=/\u0000|\uFFFD/g;function Pd(e){return(typeof e==`string`?e:``+e).replace(Md,`
|
|
10
|
-
`).replace(Nd,``)}function Fd(e,t){return t=Pd(t),Pd(e)===t}function Id(e,t,n,r,a,o){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||It(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&It(e,``+r);break;case`className`:bt(e,`class`,r);break;case`tabIndex`:bt(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:bt(e,n,r);break;case`style`:zt(e,r,o);break;case`data`:if(t!==`object`){bt(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=Ut(``+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`&&Id(e,t,`name`,a.name,a,null),Id(e,t,`formEncType`,a.formEncType,a,null),Id(e,t,`formMethod`,a.formMethod,a,null),Id(e,t,`formTarget`,a.formTarget,a,null)):(Id(e,t,`encType`,a.encType,a,null),Id(e,t,`method`,a.method,a,null),Id(e,t,`target`,a.target,a,null)));if(r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=Ut(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=Wt);break;case`onScroll`:r!=null&&Sd(`scroll`,e);break;case`onScrollEnd`:r!=null&&Sd(`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=Ut(``+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`:Sd(`beforetoggle`,e),Sd(`toggle`,e),yt(e,`popover`,r);break;case`xlinkActuate`:xt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:xt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:xt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:xt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:xt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:xt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:xt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:xt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:xt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:yt(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=Vt.get(n)||n,yt(e,n,r))}}function Ld(e,t,n,r,a,o){switch(n){case`style`:zt(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`?It(e,r):(typeof r==`number`||typeof r==`bigint`)&&It(e,``+r);break;case`onScroll`:r!=null&&Sd(`scroll`,e);break;case`onScrollEnd`:r!=null&&Sd(`scrollend`,e);break;case`onClick`:r!=null&&(e.onclick=Wt);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(!ft.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[Qe]||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,``):yt(e,n,r)}}}function Rd(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:Sd(`error`,e),Sd(`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:Id(e,t,o,s,n,null)}}a&&Id(e,t,`srcSet`,n.srcSet,n,null),r&&Id(e,t,`src`,n.src,n,null);return;case`input`:Sd(`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:Id(e,t,r,d,n,null)}}jt(e,o,c,l,u,s,a,!1);return;case`select`:for(a in Sd(`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:Id(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&Nt(e,!!r,n,!0):Nt(e,!!r,t,!1);return;case`textarea`:for(s in Sd(`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:Id(e,t,s,c,n,null)}Ft(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:Id(e,t,l,r,n,null)}return;case`dialog`:Sd(`beforetoggle`,e),Sd(`toggle`,e),Sd(`cancel`,e),Sd(`close`,e);break;case`iframe`:case`object`:Sd(`load`,e);break;case`video`:case`audio`:for(r=0;r<yd.length;r++)Sd(yd[r],e);break;case`image`:Sd(`error`,e),Sd(`load`,e);break;case`details`:Sd(`toggle`,e);break;case`embed`:case`source`:case`link`:Sd(`error`,e),Sd(`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:Id(e,t,u,r,n,null)}return;default:if(Bt(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&Ld(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&Id(e,t,c,r,n,null))}function zd(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)||Id(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&&Id(e,t,p,m,r,f)}}At(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)||Id(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&&Id(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?Nt(e,!!n,n?[]:``,!1):Nt(e,!!n,t,!0)):Nt(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:Id(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&&Id(e,t,s,a,r,o)}Pt(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:Id(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:Id(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)&&Id(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:Id(e,t,u,p,r,m)}return;default:if(Bt(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&Ld(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||Ld(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&Id(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||Id(e,t,f,p,r,m)}function Bd(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function Vd(){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&&Bd(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&&Bd(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 Hd=null,Ud=null;function Wd(e){return e.nodeType===9?e:e.ownerDocument}function Gd(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 Kd(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 qd(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 Jd=null;function Yd(){var e=window.event;return e&&e.type===`popstate`?e===Jd?!1:(Jd=e,!0):(Jd=null,!1)}var Xd=typeof setTimeout==`function`?setTimeout:void 0,Zd=typeof clearTimeout==`function`?clearTimeout:void 0,Qd=typeof Promise==`function`?Promise:void 0,$d=typeof queueMicrotask==`function`?queueMicrotask:Qd===void 0?Xd:function(e){return Qd.resolve(null).then(e).catch(nee)};function nee(e){setTimeout(function(){throw e})}function ef(e){return e===`head`}function tf(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),Fp(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)gf(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,gf(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[it]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&gf(e.ownerDocument.body);n=i}while(n);Fp(t)}function nf(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 rf(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`:rf(n),at(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function af(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[it])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=df(e.nextSibling),e===null)break}return null}function of(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=df(e.nextSibling),e===null))return null;return e}function sf(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=df(e.nextSibling),e===null))return null;return e}function cf(e){return e.data===`$?`||e.data===`$~`}function lf(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function uf(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 df(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 ff=null;function pf(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return df(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function mf(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 hf(e,t,n){switch(t=Wd(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 gf(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);at(e)}var _f=new Map,vf=new Set;function yf(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var bf=P.d;P.d={f:xf,r:Sf,D:J,C:Tf,L:Ef,m:Df,X:kf,S:Of,M:Af};function xf(){var e=bf.f(),t=Su();return e||t}function Sf(e){var t=st(e);t!==null&&t.tag===5&&t.type===`form`?Ss(t):bf.r(e)}var Cf=typeof document>`u`?null:document;function wf(e,t,n){var r=Cf;if(r&&typeof t==`string`&&t){var i=kt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),vf.has(i)||(vf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Rd(t,`link`,e),ut(t),r.head.appendChild(t)))}}function J(e){bf.D(e),wf(`dns-prefetch`,e,null)}function Tf(e,t){bf.C(e,t),wf(`preconnect`,e,t)}function Ef(e,t,n){bf.L(e,t,n);var r=Cf;if(r&&e&&t){var i=`link[rel="preload"][as="`+kt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+kt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+kt(n.imageSizes)+`"]`)):i+=`[href="`+kt(e)+`"]`;var a=i;switch(t){case`style`:a=Mf(e);break;case`script`:a=If(e)}_f.has(a)||(e=f({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),_f.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Nf(a))||t===`script`&&r.querySelector(Lf(a))||(t=r.createElement(`link`),Rd(t,`link`,e),ut(t),r.head.appendChild(t)))}}function Df(e,t){bf.m(e,t);var n=Cf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+kt(r)+`"][href="`+kt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=If(e)}if(!_f.has(a)&&(e=f({rel:`modulepreload`,href:e},t),_f.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Lf(a)))return}r=n.createElement(`link`),Rd(r,`link`,e),ut(r),n.head.appendChild(r)}}}function Of(e,t,n){bf.S(e,t,n);var r=Cf;if(r&&e){var i=lt(r).hoistableStyles,a=Mf(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Nf(a)))s.loading=5;else{e=f({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=_f.get(a))&&Bf(e,n);var c=o=r.createElement(`link`);ut(c),Rd(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,zf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function kf(e,t){bf.X(e,t);var n=Cf;if(n&&e){var r=lt(n).hoistableScripts,i=If(e),a=r.get(i);a||(a=n.querySelector(Lf(i)),a||(e=f({src:e,async:!0},t),(t=_f.get(i))&&Vf(e,t),a=n.createElement(`script`),ut(a),Rd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Af(e,t){bf.M(e,t);var n=Cf;if(n&&e){var r=lt(n).hoistableScripts,i=If(e),a=r.get(i);a||(a=n.querySelector(Lf(i)),a||(e=f({src:e,async:!0,type:`module`},t),(t=_f.get(i))&&Vf(e,t),a=n.createElement(`script`),ut(a),Rd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function jf(e,t,n,r){var a=(a=U.current)?yf(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=Mf(n.href),n=lt(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=Mf(n.href);var o=lt(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(Nf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),_f.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},_f.set(e,n),o||Ff(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=If(n),n=lt(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 Mf(e){return`href="`+kt(e)+`"`}function Nf(e){return`link[rel="stylesheet"][`+e+`]`}function Pf(e){return f({},e,{"data-precedence":e.precedence,precedence:null})}function Ff(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}),Rd(t,`link`,n),ut(t),e.head.appendChild(t))}function If(e){return`[src="`+kt(e)+`"]`}function Lf(e){return`script[async]`+e}function Rf(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+kt(n.href)+`"]`);if(r)return t.instance=r,ut(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`),ut(r),Rd(r,`style`,a),zf(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Mf(n.href);var o=e.querySelector(Nf(a));if(o)return t.state.loading|=4,t.instance=o,ut(o),o;r=Pf(n),(a=_f.get(a))&&Bf(r,a),o=(e.ownerDocument||e).createElement(`link`),ut(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Rd(o,`link`,r),t.state.loading|=4,zf(o,n.precedence,e),t.instance=o;case`script`:return o=If(n.src),(a=e.querySelector(Lf(o)))?(t.instance=a,ut(a),a):(r=n,(a=_f.get(o))&&(r=f({},n),Vf(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),ut(a),Rd(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,zf(r,n.precedence,e));return t.instance}function zf(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 Bf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Vf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Hf=null;function Uf(e,t,n){if(Hf===null){var r=new Map,i=Hf=new Map;i.set(n,r)}else i=Hf,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[it]||a[Ze]||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 Wf(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Gf(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 Kf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function qf(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=Mf(r.href),a=t.querySelector(Nf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=Xf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,ut(a);return}a=t.ownerDocument||t,r=Pf(r),(i=_f.get(i))&&Bf(r,i),a=a.createElement(`link`),ut(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Rd(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=Xf.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var Jf=0;function Yf(e,t){return e.stylesheets&&e.count===0&&Qf(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&Qf(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&Jf===0&&(Jf=62500*Vd());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Qf(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>Jf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Xf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Qf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Zf=null;function Qf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Zf=new Map,t.forEach($f,e),Zf=null,Xf.call(e))}function $f(e,t){if(!(t.state.loading&4)){var n=Zf.get(e);if(n)var r=n.get(null);else{n=new Map,Zf.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=Xf.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 ep={$$typeof:b,Provider:null,Consumer:null,_currentValue:F,_currentValue2:F,_threadCount:0};function tp(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=Ve(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ve(0),this.hiddenUpdates=Ve(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 np(e,t,n,r,i,a,o,s,c,l,u,d){return e=new tp(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=Qr(3,null,null,t),e.current=a,a.stateNode=e,t=ea(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},Na(a),e}function rp(e){return e?(e=Xr,e):Xr}function ip(e,t,n,r,i,a){i=rp(i),r.context===null?r.context=i:r.pendingContext=i,r=Fa(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=Ia(e,r,t),n!==null&&(_u(n,e,t),La(n,e,t))}function ap(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function op(e,t){ap(e,t),(e=e.alternate)&&ap(e,t)}function sp(e){if(e.tag===13||e.tag===31){var t=qr(e,67108864);t!==null&&_u(t,e,67108864),op(e,67108864)}}function cp(e){if(e.tag===13||e.tag===31){var t=hu();t=Ke(t);var n=qr(e,t);n!==null&&_u(n,e,t),op(e,t)}}var lp=!0;function up(e,t,n,r){var i=N.T;N.T=null;var a=P.p;try{P.p=2,fp(e,t,n,r)}finally{P.p=a,N.T=i}}function dp(e,t,n,r){var i=N.T;N.T=null;var a=P.p;try{P.p=8,fp(e,t,n,r)}finally{P.p=a,N.T=i}}function fp(e,t,n,r){if(lp){var i=pp(r);if(i===null)Dd(e,t,r,mp,n),Tp(e,r);else if(Dp(i,e,t,n,r))r.stopPropagation();else if(Tp(e,r),t&4&&-1<wp.indexOf(e)){for(;i!==null;){var a=st(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=Ie(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-Oe(o);s.entanglements[1]|=c,o&=~c}od(a),!(Il&6)&&(ru=ge()+500,sd(0,!1))}}break;case 31:case 13:s=qr(a,2),s!==null&&_u(s,a,2),Su(),op(a,2)}if(a=pp(r),a===null&&Dd(e,t,r,mp,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Dd(e,t,r,null,n)}}function pp(e){return e=Kt(e),hp(e)}var mp=null;function hp(e){if(mp=null,e=ot(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 mp=e,null}function gp(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(_e()){case ve:return 2;case ye:return 8;case be:case xe:return 32;case Se:return 268435456;default:return 32}default:return 32}}var _p=!1,vp=null,yp=null,bp=null,xp=new Map,Sp=new Map,Cp=[],wp=`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 Tp(e,t){switch(e){case`focusin`:case`focusout`:vp=null;break;case`dragenter`:case`dragleave`:yp=null;break;case`mouseover`:case`mouseout`:bp=null;break;case`pointerover`:case`pointerout`:xp.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:Sp.delete(t.pointerId)}}function Ep(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=st(t),t!==null&&sp(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Dp(e,t,n,r,i){switch(t){case`focusin`:return vp=Ep(vp,e,t,n,r,i),!0;case`dragenter`:return yp=Ep(yp,e,t,n,r,i),!0;case`mouseover`:return bp=Ep(bp,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return xp.set(a,Ep(xp.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,Sp.set(a,Ep(Sp.get(a)||null,e,t,n,r,i)),!0}return!1}function Op(e){var t=ot(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,Ye(e.priority,function(){cp(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,Ye(e.priority,function(){cp(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 kp(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=pp(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Gt=r,n.target.dispatchEvent(r),Gt=null}else return t=st(n),t!==null&&sp(t),e.blockedOn=n,!1;t.shift()}return!0}function Ap(e,t,n){kp(e)&&n.delete(t)}function jp(){_p=!1,vp!==null&&kp(vp)&&(vp=null),yp!==null&&kp(yp)&&(yp=null),bp!==null&&kp(bp)&&(bp=null),xp.forEach(Ap),Sp.forEach(Ap)}function Mp(e,n){e.blockedOn===n&&(e.blockedOn=null,_p||(_p=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,jp)))}var Np=null;function Pp(e){Np!==e&&(Np=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Np===e&&(Np=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(hp(r||n)===null)continue;break}var a=st(n);a!==null&&(e.splice(t,3),t-=3,bs(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Fp(e){function t(t){return Mp(t,e)}vp!==null&&Mp(vp,e),yp!==null&&Mp(yp,e),bp!==null&&Mp(bp,e),xp.forEach(t),Sp.forEach(t);for(var n=0;n<Cp.length;n++){var r=Cp[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Cp.length&&(n=Cp[0],n.blockedOn===null);)Op(n),n.blockedOn===null&&Cp.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[Qe]||null;if(typeof a==`function`)o||Pp(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[Qe]||null)s=o.formAction;else if(hp(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Pp(n)}}}function ree(){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 Ip(e){this._internalRoot=e}Lp.prototype.render=Ip.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;ip(n,hu(),e,t,null,null)},Lp.prototype.unmount=Ip.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ip(e.current,2,null,e,null,null),Su(),t[$e]=null}};function Lp(e){this._internalRoot=e}Lp.prototype.unstable_scheduleHydration=function(e){if(e){var t=Je();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Cp.length&&t!==0&&t<Cp[n].priority;n++);Cp.splice(n,0,e),n===0&&Op(e)}};var Rp=n.version;if(Rp!==`19.2.6`)throw Error(i(527,Rp,`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 zp={bundleType:0,version:`19.2.6`,rendererPackageName:`react-dom`,currentDispatcherRef:N,reconcilerVersion:`19.2.6`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Bp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Bp.isDisabled&&Bp.supportsFiber)try{Te=Bp.inject(zp),Ee=Bp}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=Us,s=Ws,c=Gs;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=np(e,1,!1,null,null,n,r,null,o,s,c,ree),e[$e]=t.current,Td(e),new Ip(t)}})),wf=Yn(((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=Cf()})),J=b(he(),1),Tf=typeof window<`u`?J.useLayoutEffect:J.useEffect;function Ef(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 Df(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 Of(e){let t=J.useRef(null);return J.useImperativeHandle(e,()=>t.current,[]),t}function kf(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 Af=4,jf=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 Nf(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 Pf(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=Nf(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=Lf(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=Lf(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=Rf(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=Rf(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=Rf(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=Lf(n.fullPath??n.from);e.kind=jf,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=Lf(n.fullPath??n.from);e.kind=Af,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)Pf(e,t,r,s,i,a,o)}function Ff(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 If(e){if(e.pathless)for(let t of e.pathless)If(t);if(e.static)for(let t of e.static.values())If(t);if(e.staticInsensitive)for(let t of e.staticInsensitive.values())If(t);if(e.dynamic?.length){e.dynamic.sort(Ff);for(let t of e.dynamic)If(t)}if(e.optional?.length){e.optional.sort(Ff);for(let t of e.optional)If(t)}if(e.wildcard?.length){e.wildcard.sort(Ff);for(let t of e.wildcard)If(t)}}function Lf(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 Rf(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 zf(e,t){let n=Lf(`/`),r=new Uint16Array(6);for(let t of e)Pf(!1,r,t,1,n,0);If(n),t.masksTree=n,t.flatCache=kf(1e3)}function Bf(e,t){e||=`/`;let n=t.flatCache.get(e);if(n)return n;let r=Gf(e,t.masksTree);return t.flatCache.set(e,r),r}function Vf(e,t,n,r,i){e||=`/`,r||=`/`;let a=t?`case\0${e}`:e,o=i.singleCache.get(a);return o||(o=Lf(`/`),Pf(t,new Uint16Array(6),{from:e},1,o,0),i.singleCache.set(a,o)),Gf(r,o,n)}function Hf(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=Gf(e,t.segmentTree,n)}catch(e){if(e instanceof URIError)a=null;else throw e}return a&&(a.branch=qf(a.route)),t.matchCache.set(r,a),a}function Uf(e){return e===`/`?e:e.replace(/\/{1,}$/,``)}function Wf(e,t=!1,n){let r=Lf(e.fullPath),i=new Uint16Array(6),a={},o={},s=0;return Pf(t,i,e,1,r,0,e=>{if(n?.(e,s),e.id in a&&qo(),a[e.id]=e,s!==0&&e.path){let t=Uf(e.fullPath);(!o[t]||e.fullPath.endsWith(`/`))&&(o[t]=e)}s++}),If(r),{processedTree:{segmentTree:r,singleCache:kf(1e3),matchCache:kf(1e3),flatCache:null,masksTree:null},routesById:a,routesByPath:o}}function Gf(e,t,n=!1){let r=e.split(`/`),i=Yf(e,r,t,n);if(!i)return null;let[a]=Kf(e,r,i);return{route:i.node.route,rawParams:a}}function Kf(e,t,n){let r=Jf(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===Af)break;if(u.kind===jf){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 qf(e){let t=[e];for(;e.parentRoute;)e=e.parentRoute,t.push(e);return t.reverse(),t}function Jf(e){let t=Array(e.depth+1);do t[e.depth]=e,e=e.parent;while(e);return t}function Yf(e,t,n,r){if(e===`/`&&n.index)return{node:n.index,skipped:0};let i=!Jr(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&&!$f(l,n))continue;if(i.parse){if(!Qf(e,t,n))continue;_=n.rawParams,g=n.extract}r&&i.route&&i.kind!==Af&&$f(c,n)&&(c=n);let v=u===o;if(v&&(i.route&&(!a||i.kind===Af||i.kind===2)&&$f(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&&(Qf(e,t,n)||(r=!1)),r){if(!m&&!h&&!d&&Zf(p,o))return n;$f(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+Xf(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+Xf(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+Xf(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+Xf(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 Xf(e,t){return 2**(e-t-1)}function Zf(e,t){return e===2**(t-1)-1}function Qf(e,t,n){let r,i;try{[r,i]=Kf(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 $f(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===Af)>(e.node.kind===Af)||t.node.kind===Af==(e.node.kind===Af)&&t.depth>e.depth))):!0}function ep(e){return tp(e.filter(e=>e!==void 0).join(`/`))}function tp(e){return e.replace(/\/{2,}/g,`/`)}function np(e){return e===`/`?e:e.replace(/^\/{1,}/,``)}function rp(e){let t=e.length;return t>1&&e[t-1]===`/`?e.replace(/\/{1,}$/,``):e}function ip(e){return rp(np(e))}function ap(e,t){return e?.endsWith(`/`)&&e!==`/`&&e!==`${t}/`?e.slice(0,-1):e}function op(e,t,n){return ap(e,n)===ap(t,n)}function sp({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&&Jr(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&&(Jr(s)===``?n===`never`&&s.pop():n===`always`&&s.push(``));let c=tp(s.join(`/`))||`/`;return o&&r&&r.set(o,c),c}function cp(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 lp(e,t,n){let r=t[e];return typeof r==`string`?e===`_splat`?/^[a-zA-Z0-9\-._~!/]*$/.test(r)?r:r.split(`/`).map(e=>dp(e,n)).join(`/`):dp(r,n):r}function up({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=Nf(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=lp(`_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=lp(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=lp(i,t,n)??``;l+=`/`+u+f+d;continue}}return e.endsWith(`/`)&&(l+=`/`),{usedParams:a,interpolatedPath:l||`/`,isMissingParams:i}}function dp(e,t){let n=encodeURIComponent(e);return t?.(n)??n}function fp(e){return e?.isNotFound===!0}function pp(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 mp(e){return e?e===`false`?!1:e===`true`?!0:e*0==0&&+e+``===e?+e:e:``}function hp(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]=mp(r):Array.isArray(t)?t.push(mp(r)):n[e]=[t,mp(r)]}return n}var gp=vp(JSON.parse),_p=yp(JSON.stringify,JSON.parse);function vp(e){return t=>{t[0]===`?`&&(t=t.substring(1));let n=hp(t);for(let t in n){let r=n[t];if(typeof r==`string`)try{n[t]=e(r)}catch{}}return n}}function yp(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=pp(e,r);return t?`?${t}`:``}}var bp=`__root__`;function xp(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 Sp(e){return e instanceof Response&&!!e.options}var Cp=e=>{if(!e.rendered)return e.rendered=!0,e.onReady?.()},wp=e=>e.stores.matchesId.get().some(t=>e.stores.matchStores.get(t)?.get()._forcePending),Tp=(e,t)=>!!(e.preload&&!e.router.stores.matchStores.has(t)),Ep=(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},Dp=(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},Op=(e,t,n)=>{if(!(!Sp(n)&&!fp(n)))throw Sp(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:Sp(n)?`redirected`:fp(n)?`notFound`:r.status===`pending`?`success`:r.status,context:Ep(e,t.index),isFetching:!1,error:n})),fp(n)&&!n.routeId&&(n.routeId=t.routeId),t._nonReactive.loadPromise?.resolve()),Sp(n)&&(e.rendered=!0,n.options._fromLocation=e.location,n.redirectHandled=!0,n=e.router.resolveRedirect(n)),n)},kp=(e,t)=>{let n=e.router.getMatch(t);return!!(!n||n._nonReactive.dehydrated)},Ap=(e,t,n)=>{let r=Ep(e,n);e.updateMatch(t,e=>({...e,context:r}))},jp=(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,Op(e,e.router.getMatch(r),n);try{a.options.onError?.(n)}catch(t){n=t,Op(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&&!Sp(n)&&!fp(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&&!Tp(e,t)&&(n.options.loader||n.options.beforeLoad||Hp(n))&&typeof i==`number`&&i!==1/0&&(n.options.pendingComponent??e.router.options?.defaultPendingComponent)){let t=setTimeout(()=>{Cp(e)},i);r._nonReactive.pendingTimeout=t}},Np=(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`)&&Op(e,n,n.error)};return r._nonReactive.beforeLoadPromise?r._nonReactive.beforeLoadPromise.then(i):i()},Pp=(e,t,n,r)=>{let i=e.router.getMatch(t),a=i._nonReactive.loadPromise;i._nonReactive.loadPromise=ol(()=>{a?.resolve(),a=void 0});let{paramsError:o,searchError:s}=i;o&&jp(e,n,o),s&&jp(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=ol();let f={...Ep(e,n,!1),...i.__routeContext},{search:p,params:m,cause:h}=i,g=Tp(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}(Sp(r)||fp(r))&&(u(),jp(e,n,r)),e.router.batch(()=>{u(),e.updateMatch(t,e=>({...e,__beforeLoadContext:r})),d()})},y;try{if(y=r.options.beforeLoad(_),Kd(y))return u(),y.catch(t=>{jp(e,n,t)}).then(v)}catch(t){u(),jp(e,n,t)}v(y)},Fp=(e,t)=>{let{id:n,routeId:r}=e.matches[t],i=e.router.looseRoutesById[r],a=()=>s(),o=()=>Pp(e,n,t,i),s=()=>{if(kp(e,n))return;let t=Np(e,n,i);return Kd(t)?t.then(o):o()};return a()},ree=(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}))},Ip=(e,t,n,r,i)=>{let a=t[r-1],{params:o,loaderDeps:s,abortController:c,cause:l}=e.router.getMatch(n),u=Ep(e,r),d=Tp(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}},Lp=async(e,t,n,r,i)=>{try{let a=e.router.getMatch(n);try{Vp(i);let o=i.options.loader,s=typeof o==`function`?o:o?.handler,c=s?.(Ip(e,t,n,r,i)),l=!!s&&Kd(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;Op(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:Ep(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:Ep(e,r)}));return}let s=a._nonReactive.minPendingPromise;s&&await s,fp(t)&&await i.options.notFoundComponent?.preload?.(),Op(e,e.router.getMatch(n),t);try{i.options.onError?.(t)}catch(t){o=t,Op(e,e.router.getMatch(n),t)}!Sp(o)&&!fp(o)&&await Vp(i,[`errorComponent`]),e.updateMatch(n,t=>({...t,error:o,context:Ep(e,r),status:`error`,isFetching:!1}))}}catch(t){let r=e.router.getMatch(n);r&&(r._nonReactive.loaderPromise=void 0),Op(e,r,t)}},Rp=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(Ip(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 Lp(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){Sp(t)&&await e.router.navigate(t.options)}})()):g!==`success`||o?await Lp(e,t,i,n,d):Ap(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(kp(e,i)){if(!e.router.getMatch(i))return e.matches[n];Ap(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=Tp(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&&Op(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=ol(),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 zp(e){let t=e,n=[];wp(t.router)&&Cp(t);let r;for(let e=0;e<t.matches.length;e++){try{let n=Fp(t,e);Kd(n)&&await n}catch(e){if(Sp(e))throw e;if(fp(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?Dp(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(Rp(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(Sp(e))throw e;fp(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=Dp(t,l);e===void 0&&qo();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 Vp(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 Vp(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=ree(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=Cp(t);if(Kd(d)&&await d,l)throw l;if(t.serialError&&!t.preload&&!t.onReady)throw t.serialError;return t.matches}function Bp(e,t){let n=t.map(t=>e.options[t]?.preload?.()).filter(Boolean);if(n.length!==0)return Promise.all(n)}function Vp(e,t=Up){!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===Up?(()=>{if(e._componentsPromise===void 0){let t=Bp(e,Up);t?e._componentsPromise=t.then(()=>{e._componentsLoaded=!0,e._componentsPromise=void 0}):e._componentsLoaded=!0}return e._componentsPromise})():Bp(e,t);return e._lazyPromise?e._lazyPromise.then(n):n()}function Hp(e){for(let t of Up)if(e.options[t]?.preload)return!0;return!1}var Up=[`component`,`errorComponent`,`pendingComponent`,`notFoundComponent`];function iee(e){return{input:({url:t})=>{for(let n of e)t=Wp(n,t);return t},output:({url:t})=>{for(let n=e.length-1;n>=0;n--)t=Gp(e[n],t);return t}}}function aee(e){let t=ip(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=ep([`/`,t,e.pathname]),e)}}function Wp(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 Gp(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 oee(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(()=>Kp(o,_.get())),x=r(()=>Kp(s,v.get())),S=r(()=>Kp(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=kf(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){qp(e,o,_,n,i)}function j(e){qp(e,s,v,n,i)}function M(e){qp(e,c,y,n,i)}return k}function Kp(e,t){let n=[];for(let r of t){let t=e.get(r);t&&n.push(t.get())}return n}function qp(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)}ql(n.get(),a)||n.set(a)})}var Jp=`__TSR_index`,Yp=`popstate`,Xp=`beforeunload`;function see(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=$p(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[Jp];i=Zp(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[Jp];i=Zp(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[Jp]!==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 Zp(e,t){t||={};let n=em();return{...t,key:n,__TSR_key:n,[Jp]:e}}function Qp(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??(()=>$p(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){let e=em();t.history.replaceState({[Jp]: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=$p(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[Jp]-l.state[Jp],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=see({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(Xp,S,{capture:!0}),t.removeEventListener(Yp,x)},onBlocked:()=>{u&&l!==u&&(l=u)},getBlockers:a,setBlockers:o,notifyOnIndexChange:!1});return t.addEventListener(Xp,S,{capture:!0}),t.addEventListener(Yp,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 cee(e){let t=e?.window??(typeof document<`u`?window:void 0);return Qp({window:t,parseLocation:()=>{let e=t.location.hash.split(`#`).slice(1),n=e[0]??`/`,r=t.location.search,i=e.slice(1);return $p(`${n}${r}${i.length===0?``:`#${i.join(`#`)}`}`,t.history.state)},createHref:e=>`${t.location.pathname}${t.location.search}#${e}`})}function lee(e){let t=e.replace(/[\x00-\x1f\x7f]/g,``);return t.startsWith(`//`)&&(t=`/`+t.replace(/^\/+/,``)),t}function $p(e,t){let n=lee(e),r=n.indexOf(`#`),i=n.indexOf(`?`),a=em();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||{[Jp]:0,key:a,__TSR_key:a}}}function em(){return(Math.random()+1).toString(36).substring(7)}function tm(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 nm=new WeakMap,uee=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=cp(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=Qp()),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=kf(1e3),e=this.buildRouteTree(),this.setRoutes(e)}if(!this.stores&&this.latestLocation){let e=this.getStoreConfig(this);this.batch=e.batch,this.stores=oee(fee(this.latestLocation),e),Cee(this)}let a=!1,o=this.options.basepath??`/`,s=this.options.rewrite;if(r||n!==o||i!==s){this.basepath=o;let e=[],t=ip(o);t&&t!==`/`&&e.push(aee({basepath:o})),s&&e.push(s),this.rewrite=e.length===0?void 0:e.length===1?e[0]:iee(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=Wf(this.routeTree,this.options.caseSensitive,(e,t)=>{e.init({originalIndex:t})});return this.options.routeMasks&&zf(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:qs(e).path,external:!1,searchStr:o,search:te(t?.search,i),hash:qs(r.slice(1)).path,state:Nd(t?.state,a)}}let o=new URL(i,this.origin),s=Wp(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:qs(s.pathname).path,external:!!this.rewrite&&s.origin!==this.origin,searchStr:l,search:te(t?.search,c),hash:qs(s.hash.slice(1)).path,state:Nd(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)=>sp({base:e,to:t.includes(`//`)?tp(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=>pee({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 i=t.unsafeRelative===`path`?n.pathname:t.from??r.fullPath,a=t.to?`${t.to}`:void 0,o=r.search,s=Object.assign(Object.create(null),r.params),c=a?.charCodeAt(0)===47?`/`:this.resolvePathWithBase(i,`.`),l=a?this.resolvePathWithBase(c,a):c,u=t.params===!1||t.params===null?Object.create(null):(t.params??!0)===!0?s:Object.assign(s,yd(t.params,s)),d=this.routesByPath[rp(l)],f;if(d)f=this.getRouteBranch(d);else if(l.includes(`$`))f=[];else{let e=this.getMatchedRoutes(l);f=e.matchedRoutes,this.options.notFoundRoute&&(!e.foundRoute||e.foundRoute.path!==`/`&&e.routeParams[`**`])&&(f=[...f,this.options.notFoundRoute])}if(f.length&&af(u))for(let e of f){let t=e.options.params?.stringify??e.options.stringifyParams;if(t)try{Object.assign(u,t(u))}catch{}}let p=e.leaveParams?l:qs(up({path:l,params:u,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path,m=o;if(e._includeValidateSearch&&this.options.search?.strict){let e={};f.forEach(t=>{if(t.options.validateSearch)try{Object.assign(e,im(t.options.validateSearch,{...e,...m}))}catch{}}),m=e}m=mee({search:m,dest:t,destRoutes:f,_includeValidateSearch:e._includeValidateSearch}),m=te(o,m);let h=this.options.stringifySearch(m),g=t.hash===!0?n.hash:t.hash?yd(t.hash,n.hash):void 0,_=g?`#${g}`:``,v=t.state===!0?n.state:t.state?yd(t.state,n.state):{};v=Nd(n.state,v);let y=`${p}${h}${_}`,b,x,S=!1;if(this.rewrite){let e=new URL(y,this.origin),t=Gp(this.rewrite,e);b=e.href.replace(e.origin,``),t.origin===this.origin?x=t.pathname+t.search+t.hash:(x=t.href,S=!0)}else b=Ga(y),x=b;return{publicHref:x,href:b,pathname:p,search:m,searchStr:h,state:v,hash:g??``,external:S,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=Bf(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,yd(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=Ns(n.state,this.latestLocation.state);return e.forEach(e=>{delete n.state[e]}),t},a=rp(this.latestLocation.href)===rp(n.href),o=this.commitLocationPromise;if(this.commitLocationPromise=ol(()=>{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=$p(a,{__TSR_index:e?t:t+1}),r=new URL(n.pathname,this.origin);o.to=Wp(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(yo(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?nm.set(this.latestLocation,t):nm.delete(this.latestLocation);let n=this.latestLocation,r=tm(n,this.stores.resolvedLocation.get());this.stores.redirect.get()||this.emit({type:`onBeforeNavigate`,...r}),this.emit({type:`onBeforeLoad`,...r}),await zp({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){Sp(e)?(n=e,this.navigate({...n.options,replace:!0,ignoreBlocker:!0})):fp(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(tm(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&&yo(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=Vp,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 zp({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(Sp(e))return e.options.reloadDocument?void 0:await this.preloadRoute({...e.options,_fromLocation:t});fp(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=Vf(r.pathname,t?.caseSensitive??!1,t?.fuzzy??!1,i.pathname,this.processedTree);return!a||e.params&&!Ns(a.rawParams,e.params,{partial:!0})?!1:t?.includeSearch??!0?Ns(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??_p,parseSearch:e.parseSearch??gp,protocolAllowlist:e.protocolAllowlist??ys}),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=qf(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[`**`]:rp(e.pathname))&&(this.options.notFoundRoute?a=[...a,this.options.notFoundRoute]:o=!0);let s=o?gee(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=im(r.options.validateSearch,{...n})??void 0;u={...n,...e},d={...i,...e},f=void 0}catch(e){let r=e;if(e instanceof rm||(r=new rm(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}=up({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{am(r,b)}catch(e){if(x=fp(e)||Sp(e)?e:new dee(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:te(y?y.search:v.search,u),_strictSearch:d};else{let e=r.options.loader||r.options.beforeLoad||r.lazyFn||Hp(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?te(y.search,u):u,_strictSearch:d,searchError:void 0,status:e,isFetching:!1,error:void 0,paramsError:x,__routeContext:void 0,_nonReactive:{loadPromise:ol()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:S,loaderDeps:y?Nd(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?te(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=Jr(t),i={...e.search};for(let e of t)try{Object.assign(i,im(e.options.validateSearch,i))}catch{}let a=Jr(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{am(n,e)}catch{}c=e}return{matchedRoutes:t,fullPath:r.fullPath,search:i,params:c}}},rm=class extends Error{},dee=class extends Error{};function fee(e){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:`idle`,resolvedLocation:void 0,location:e,matches:[],statusCode:200}}function im(e,t){if(e==null)return{};if(`~standard`in e){let n=e[`~standard`].validate(t);if(n instanceof Promise)throw new rm(`Async validation not supported`);if(n.issues)throw new rm(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 pee({pathname:e,routesById:t,processedTree:n}){let r=Object.create(null),i=rp(e),a,o=Hf(i,n,!0);return o&&(a=o.route,Object.assign(r,o.rawParams)),{matchedRoutes:o?.branch||[t.__root__],routeParams:r,foundRoute:a}}function mee({search:e,dest:t,destRoutes:n,_includeValidateSearch:r}){return hee(n)(e,t,r??!1)}function hee(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,...im(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:yd(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 gee(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 bp}function am(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 _ee(){try{return sessionStorage}catch{return}}var vee=`tsr-scroll-restoration-v1_3`,om=_ee();function yee(){try{return JSON.parse(om?.getItem(`tsr-scroll-restoration-v1_3`)||`{}`)}catch{return{}}}function bee(){try{om?.setItem(vee,JSON.stringify(sm))}catch{}}var sm=yee(),cm=`data-scroll-restoration-id`,xee=e=>e.state.__TSR_key||e.href;function See(e){let t=e.getAttribute(cm);if(t)return`[${cm}="${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 lm=!1,um=`window`;function dm(e){try{return typeof e==`function`?e():document.querySelector(e)}catch{}}function fm(e){let t=[];for(let n of e){if(n===um)continue;let e=dm(n);e&&t.push(e)}return t}function Cee(e,t){if((t??e.options.scrollRestoration)&&(e.isScrollRestoring=!0),e.isScrollRestorationSetup)return;e.isScrollRestorationSetup=!0,lm=!1;let n=e.options.getScrollRestorationKey||xee,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(!(lm||!e.isScrollRestoring))if(t.target===document)i(um,scrollX,scrollY);else{let e=t.target;i(e,e.scrollLeft,e.scrollTop)}},o=t=>{if(!e.isScrollRestoring)return;let n=sm[t]||={};for(let[e,t]of r)e===um?n[um]=t:e.isConnected&&(n[See(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())),bee()}),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=sm[l];if(e){let t=sm[c];for(let n in e){if(n===um){if(o)continue}else{let e=dm(n);if(!e||o&&a&&(s??=fm(a),s.includes(e)))continue}t||=sm[c]={},t[n]??=e[n]}}}lm=!0;try{let n=t.toLocation.hash,r=t.toLocation.state.__hashScrollIntoViewOptions??!0,l=!1;if(o){let o=nm.get(t.toLocation),u=n&&r&&(o===`PUSH`||o===`REPLACE`),d=e.isScrollRestoring?sm[c]:void 0;if(d)for(let e in d){let{scrollX:t,scrollY:n}=d[e];if(e===um){if(u)continue;scrollTo({top:n,left:t,behavior:i}),l=!0}else{let r=dm(e);r&&(r.scrollLeft=t,r.scrollTop=n)}}if(!l&&!n){let e={top:0,left:0,behavior:i};if(scrollTo(e),a){s??=fm(a);for(let t of s)t.scrollTo(e)}}}!l&&n&&r&&document.getElementById(n)?.scrollIntoView(r)}finally{lm=!1}})}var wee=`Error preloading route! ☝️`,pm=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=bp:this.parentRoute||qo();let r=n?bp:t?.path;r&&r!==`/`&&(r=np(r));let i=t?.id||r,a=n?bp:ep([this.parentRoute.id===`__root__`?``:this.parentRoute.id,i]);r===`__root__`&&(r=`/`),a!==`__root__`&&(a=ep([`/`,a]));let o=a===`__root__`?`/`:ep([this.parentRoute.fullPath,r]);this._path=r,this._id=a,this._fullPath=o,this._to=rp(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=>xp({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.`)}},Tee=class extends pm{constructor(e){super(e)}},Y=od();function mm(e){let t=e.errorComponent??hm;return(0,Y.jsx)(Eee,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:n,reset:r})=>n?J.createElement(t,{error:n,reset:r}):e.children})}var Eee=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 hm({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 Dee({children:e,fallback:t=null}){return gm()?(0,Y.jsx)(J.Fragment,{children:e}):(0,Y.jsx)(J.Fragment,{children:t})}function gm(){return J.useSyncExternalStore(Oee,()=>!0,()=>!1)}function Oee(){return()=>{}}var _m=(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))(_m||{});function kee({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 Aee(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 vm=[],ym=0,{link:bm,unlink:jee,propagate:Mee,checkDirty:xm,shallowPropagate:Sm}=kee({update(e){return e._update()},notify(e){vm[wm++]=e,e.flags&=~_m.Watching},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=_m.Mutable|_m.Dirty,Om(e))}}),Cm=0,wm=0,Tm,Em=0;function Dm(e){try{++Em,e()}finally{--Em||km()}}function Om(e){let t=e.depsTail,n=t===void 0?e.deps:t.nextDep;for(;n!==void 0;)n=jee(n,e)}function km(){if(!(Em>0)){for(;Cm<wm;){let e=vm[Cm];vm[Cm++]=void 0,e.notify()}Cm=0,wm=0}}function Am(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?_m.None:_m.Mutable,get(){return Tm!==void 0&&bm(i,Tm,ym),i._snapshot},subscribe(e){let t=Aee(e),n={current:!1},r=Nee(()=>{i.get(),n.current?t.next?.(i._snapshot):n.current=!0});return{unsubscribe:()=>{r.stop()}}},_update(e){let a=Tm,o=t?.compare??Object.is;if(n)Tm=i,++ym,i.depsTail=void 0;else if(e===void 0)return!1;n&&(i.flags=_m.Mutable|_m.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{Tm=a,n&&(i.flags&=~_m.RecursedCheck),Om(i)}}};return n?(i.flags=_m.Mutable|_m.Dirty,i.get=function(){let e=i.flags;if(e&_m.Dirty||e&_m.Pending&&xm(i.deps,i)){if(i._update()){let e=i.subs;e!==void 0&&Sm(e)}}else e&_m.Pending&&(i.flags=e&~_m.Pending);return Tm!==void 0&&bm(i,Tm,ym),i._snapshot}):i.set=function(e){if(i._update(e)){let e=i.subs;e!==void 0&&(Mee(e),Sm(e),km())}},i}function Nee(e){let t=()=>{let t=Tm;Tm=n,++ym,n.depsTail=void 0,n.flags=_m.Watching|_m.RecursedCheck;try{return e()}finally{Tm=t,n.flags&=~_m.RecursedCheck,Om(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:_m.Watching|_m.RecursedCheck,notify(){let e=this.flags;e&_m.Dirty||e&_m.Pending&&xm(this.deps,this)?t():this.flags=_m.Watching},stop(){this.flags=_m.None,this.depsTail=void 0,Om(this)}};return t(),n}function jm(e){return yu({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function Mm(e){let{select:t,...n}=e;return yu({...n,select:e=>t?t(e.loaderDeps):e.loaderDeps})}function Nm(e){return yu({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function Pm(e){let t=No();return J.useCallback(n=>t.navigate({...n,from:n.from??e?.from}),[e?.from,t])}function Fm(e){return yu({...e,select:t=>e.select?e.select(t.context):t.context})}var Im=b(ci(),1);function Pee(e,t){let n=No(),r=Of(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=gm(),z=J.useMemo(()=>e,[n,e.from,e._fromLocation,e.hash,e.to,e.search,e.params,e.state,e.mask,e.unsafeRelative]),B=oc(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(()=>Bee(H,U,n.history,v),[v,U,H,n.history]),ee=J.useMemo(()=>{if(W?.external)return yo(W.href,n.protocolAllowlist)?void 0:W.href;if(!Vee(s)&&!(typeof s!=`string`||s.indexOf(`:`)===-1))try{return new URL(s),yo(s,n.protocolAllowlist)?void 0:s}catch{}},[s,W,n.protocolAllowlist]),G=J.useMemo(()=>{if(ee)return!1;if(o?.exact){if(!op(B.pathname,V.pathname,n.basepath))return!1}else{let e=ap(B.pathname,n.basepath),t=ap(V.pathname,n.basepath);if(!(e.startsWith(t)&&(e.length===t.length||e[t.length]===`/`)))return!1}return(o?.includeSearch??!0)&&!Ns(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,ee,R,V.hash,V.pathname,V.search,n.basepath]),te=G?yd(i,{})??Fee:Lm,ne=G?Lm:yd(a,{})??Lm,re=[b,te.className,ne.className].filter(Boolean).join(` `),ie=(y||te.style||ne.style)&&{...y,...te.style,...ne.style},[ae,oe]=J.useState(!1),se=J.useRef(!1),ce=e.reloadDocument||ee?!1:c??n.options.defaultPreload,le=l??n.options.defaultPreloadDelay??0,ue=J.useCallback(()=>{n.preloadRoute({...z,_builtLocation:V}).catch(e=>{console.warn(e),console.warn(wee)})},[n,z,V]);Df(r,J.useCallback(e=>{e?.isIntersecting&&ue()},[ue]),zee,{disabled:!!v||ce!==`viewport`}),J.useEffect(()=>{se.current||!v&&ce===`render`&&(ue(),se.current=!0)},[v,ue,ce]);let de=e=>{let t=e.currentTarget.getAttribute(`target`),r=_===void 0?t:_;if(!v&&!Hee(e)&&!e.defaultPrevented&&(!r||r===`_self`)&&e.button===0){e.preventDefault(),(0,Im.flushSync)(()=>{oe(!0)});let t=n.subscribe(`onResolved`,()=>{t(),oe(!1)});n.navigate({...z,replace:f,resetScroll:m,hashScrollIntoView:d,startTransition:p,viewTransition:h,ignoreBlocker:D})}};if(ee)return{...L,ref:r,href:ee,...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 fe=e=>{if(v||ce!==`intent`)return;if(!le){ue();return}let t=e.currentTarget;if(Rm.has(t))return;let n=setTimeout(()=>{Rm.delete(t),ue()},le);Rm.set(t,n)},pe=e=>{v||ce!==`intent`||ue()},me=e=>{if(v||!ce||!le)return;let t=e.currentTarget,n=Rm.get(t);n&&(clearTimeout(n),Rm.delete(t))};return{...L,...te,...ne,href:W?.href,ref:r,onClick:zm([x,de]),onBlur:zm([S,me]),onFocus:zm([C,fe]),onMouseEnter:zm([w,fe]),onMouseLeave:zm([T,me]),onTouchStart:zm([E,pe]),disabled:!!v,target:_,...ie&&{style:ie},...re&&{className:re},...v&&Iee,...G&&Lee,...R&&ae&&Ree}}var Lm={},Fee={className:`active`},Iee={role:`link`,"aria-disabled":!0},Lee={"data-status":`active`,"aria-current":`page`},Ree={"data-transitioning":`transitioning`},Rm=new WeakMap,zee={rootMargin:`100px`},zm=e=>t=>{for(let n of e)if(n){if(t.defaultPrevented)return;n(t)}};function Bee(e,t,n,r){if(!r)return t?{href:e,external:!0}:{href:n.createHref(e)||`/`,external:!1}}function Vee(e){if(typeof e!=`string`)return!1;let t=e.charCodeAt(0);return t===47?e.charCodeAt(1)!==47:t===46}var Bm=J.forwardRef((e,t)=>{let{_asChild:n,...r}=e,{type:i,...a}=Pee(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 Hee(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}var Uee=class extends pm{constructor(e){super(e),this.useMatch=e=>yu({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>Fm({...e,from:this.id}),this.useSearch=e=>Nm({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>yl({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>Mm({...e,from:this.id}),this.useLoaderData=e=>jm({...e,from:this.id}),this.useNavigate=()=>Pm({from:this.fullPath}),this.Link=J.forwardRef((e,t)=>(0,Y.jsx)(Bm,{ref:t,from:this.fullPath,...e}))}};function Wee(e){return new Uee(e)}var Gee=class extends Tee{constructor(e){super(e),this.useMatch=e=>yu({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>Fm({...e,from:this.id}),this.useSearch=e=>Nm({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>yl({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>Mm({...e,from:this.id}),this.useLoaderData=e=>jm({...e,from:this.id}),this.useNavigate=()=>Pm({from:this.fullPath}),this.Link=J.forwardRef((e,t)=>(0,Y.jsx)(Bm,{ref:t,from:this.fullPath,...e}))}};function Kee(e){return new Gee(e)}function Vm(e){return new qee(e,{silent:!0}).createRoute}var qee=class{constructor(e,t){this.path=e,this.createRoute=e=>{let t=Wee(e);return t.isRoot=!1,t},this.silent=t?.silent}};function Jee(e){let t=No(),n=`not-found-${oc(t.stores.location,e=>e.pathname)}-${oc(t.stores.status,e=>e)}`;return(0,Y.jsx)(mm,{getResetKey:()=>n,onCatch:(t,n)=>{if(fp(t))e.onCatch?.(t,n);else throw t},errorComponent:({error:t})=>{if(fp(t))return e.fallback?.(t);throw t},children:e.children})}function Yee(){return(0,Y.jsx)(`p`,{children:`Not Found`})}function Hm(e){return(0,Y.jsx)(Y.Fragment,{children:e.children})}function Xee(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)(Yee,{})}var Zee=J.memo(function({matchId:e}){let t=No(),n=t.stores.matchStores.get(e);n||qo();let r=oc(t.stores.loadedAt,e=>e),i=oc(n,e=>e);return(0,Y.jsx)(Qee,{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 Qee({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:Hm,f=s?mm:Hm,p=l?Jee:Hm;return(0,Y.jsxs)(i.isRoot?i.options.shellComponent??Hm:Hm,{children:[(0,Y.jsx)(Nu.Provider,{value:t,children:(0,Y.jsx)(d,{fallback:o,children:(0,Y.jsx)(f,{getResetKey:()=>n,errorComponent:s||hm,onCatch:(e,t)=>{if(fp(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)(Dee,{fallback:o,children:(0,Y.jsx)(ete,{matchId:t})}):(0,Y.jsx)(ete,{matchId:t})})})})}),r.parentRouteId===`__root__`?(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)($ee,{resetKey:n}),(e.options.scrollRestoration,null)]}):null]})}function $ee({resetKey:e}){let t=No(),n=J.useRef(void 0);return Tf(()=>{let e=t.latestLocation.href;(n.current===void 0||n.current!==e)&&(t.emit({type:`onRendered`,...tm(t.stores.location.get(),t.stores.resolvedLocation.get())}),n.current=e)},[t.latestLocation.state.__TSR_key,e,t]),null}var ete=J.memo(function({matchId:e}){let t=No(),n=(e,n)=>t.getMatch(e.id)?._nonReactive[n]??e._nonReactive[n],r=t.stores.matchStores.get(e);r||qo();let i=oc(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)(Um,{})},[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=ol();n._nonReactive.minPendingPromise=t,setTimeout(()=>{t.resolve(),n._nonReactive.minPendingPromise=void 0},e)}}throw n(i,`loadPromise`)}if(i.status===`notFound`)return fp(i.error)||qo(),Xee(t,o,i.error);if(i.status===`redirected`)throw Sp(i.error)||qo(),n(i,`loadPromise`);if(i.status===`error`)throw i.error;return c}),Um=J.memo(function(){let e=No(),t=J.useContext(Nu),n,r=!1,i;{let a=t?e.stores.matchStores.get(t):void 0;[n,r]=oc(a,e=>[e?.routeId,e?.globalNotFound??!1]),i=oc(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||qo(),Xee(e,a,void 0);if(!i)return null;let s=(0,Y.jsx)(Zee,{matchId:i});return n===`__root__`?(0,Y.jsx)(J.Suspense,{fallback:o,children:s}):s});function tte(){let e=No(),t=J.useRef({router:e,mounted:!1}),[n,r]=J.useState(!1),i=oc(e.stores.isLoading,e=>e),a=oc(e.stores.hasPending,e=>e),o=Ef(i),s=i||n||a,c=Ef(s),l=i||a,u=Ef(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 rp(e.latestLocation.publicHref)!==rp(n.publicHref)&&e.commitLocation({...n,replace:!0}),()=>{t()}},[e,e.history]),Tf(()=>{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]),Tf(()=>{o&&!i&&e.emit({type:`onLoad`,...tm(e.stores.location.get(),e.stores.resolvedLocation.get())})},[o,e,i]),Tf(()=>{u&&!l&&e.emit({type:`onBeforeRouteMount`,...tm(e.stores.location.get(),e.stores.resolvedLocation.get())})},[l,u,e]),Tf(()=>{if(c&&!s){let t=tm(e.stores.location.get(),e.stores.resolvedLocation.get());e.emit({type:`onResolved`,...t}),Dm(()=>{e.stores.status.set(`idle`),e.stores.resolvedLocation.set(e.stores.location.get())})}},[s,c,e]),null}function nte(){let e=No(),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?Hm:J.Suspense,{fallback:n,children:[(0,Y.jsx)(tte,{}),(0,Y.jsx)(rte,{})]});return e.options.InnerWrap?(0,Y.jsx)(e.options.InnerWrap,{children:r}):r}function rte(){let e=No(),t=oc(e.stores.firstId,e=>e),n=oc(e.stores.loadedAt,e=>e),r=t?(0,Y.jsx)(Zee,{matchId:t}):null;return(0,Y.jsx)(Nu.Provider,{value:t,children:e.options.disableGlobalCatchBoundary?r:(0,Y.jsx)(mm,{getResetKey:()=>n,errorComponent:hm,onCatch:void 0,children:r})})}var ite=e=>({createMutableStore:Am,createReadonlyStore:Am,batch:Dm}),ate=e=>new ote(e),ote=class extends uee{constructor(e){super(e,ite)}};function ste({router:e,children:t,...n}){af(n)&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});let r=(0,Y.jsx)(Kc.Provider,{value:e,children:t});return e.options.Wrap?(0,Y.jsx)(e.options.Wrap,{children:r}):r}function cte({router:e,...t}){return(0,Y.jsx)(ste,{router:e,...t,children:(0,Y.jsx)(nte,{})})}function Wm(e){let t=No(),n=(0,J.useRef)(void 0);return oc(t.stores.location,r=>{let i=e?.select?e.select(r):r;if(e?.structuralSharing??t.options.defaultStructuralSharing){let e=Nd(n.current,i);return n.current=e,e}return i})}function lte(){return oc(No().stores.location,e=>e.state.__TSR_index!==0)}var ute=b(wf(),1),Gm=typeof window<`u`&&(window.desktopBridge!==void 0||window.nativeApi!==void 0);function dte(e){return{_tag:`Value`,value:e}}function fte(e,t){return{_tag:`Record`,keys:e,value:t}}function pte(e,t){return{_tag:`Array`,length:e,value:t}}r(`SourceError`);var mte=g(`effect/ConfigProvider`,{defaultValue:()=>xte()}),hte={...na,toJSON(){return{_id:`ConfigProvider`}}},gte=e=>e;function _te(e,t){let n=Object.create(hte);return n.state=e,n.load=t,n}function vte(e,t){let n={_tag:`Source`,get:e,transform:t};return _te(n,e=>n.get(n.transform(e)))}function yte(e){return vte(e,gte)}function bte(e,t){return e===``&&!t?void 0:e}function xte(e){let t=e?.env??{APP_VERSION:`0.1.21`,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=Ste(t);return yte(e=>on(wte(r,t,e,n)))}function Ste(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 Cte=/^(0|[1-9][0-9]*)$/;function wte(e,t,n,r){let i=n.map(String).join(`_`),a=bte(Object.hasOwn(t,i)?t[i]:void 0,r),o=Tte(e,n),s=o?.children?Object.keys(o.children):[];return s.length===0?a===void 0?void 0:dte(a):s.every(e=>Cte.test(e))?pte(Math.max(...s.map(e=>parseInt(e,10)))+1,a):fte(new Set(s),a)}function Tte(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 Km=`~effect/Config`,Ete=class{_tag=`ConfigError`;name=`ConfigError`;cause;constructor(e){this.cause=e}get message(){return this.cause.toString()}toString(){return`ConfigError(${this.message})`}},Dte={...ha({label:`Config`,evaluate(e){return this.parse(e.getRef(mte))}}),[Km]:Km,toJSON(){return{_id:`Config`}}};function Ote(e){let t=Object.create(Dte);return t.parse=(t,n=[])=>e(t,n),t}var qm=pd(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*qm(e,[...t,i]);n!==void 0&&Da(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*qm(e,[...t,i]));return r}}}),Jm=pd(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*Jm(r.type,t,[...n,e]);a!==void 0&&Da(i,e,a)}}if(e.indexSignatures.length>0&&r&&r._tag===`Record`)for(let a of e.indexSignatures){let e=Ri(a.parameter);for(let o of r.keys)if(!Object.hasOwn(i,o)&&e(o)){let e=yield*Jm(a.type,t,[...n,o]);e!==void 0&&Da(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*Jm(a,t,[...n,r]))}return i}case`Union`:return yield*qm(t,n);case`Suspend`:return yield*Jm(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 Ym(e,t){let n=Sf(e),r=_t(n),i=Zi(n.ast),a=typeof t==`string`?[t]:t??[];return Ote((e,t)=>{let n=[...t,...a];return Jm(i,e,n).pipe(Ds(e=>r(e).pipe(h(e=>new Ti(n.length>0?new ua(n,e):e)))),h(e=>new Ete(e)))})}var kte=(e,t,n)=>{let r=lf(e,t);return fi([r,Co.pipe(Ic(lf(Co,Co),tn(n)),Ic(r))])};function Ate(e){return Ym(Co,e)}var X=Ku(),Xm=`~effect/PartitionedSemaphore`,jte=e=>{let t=Math.max(0,e.permits);if(!Number.isFinite(t))return{[Xm]:Xm,capacity:t,available:on(t),take:()=>Hi,release:()=>on(t),withPermits:()=>e=>e,withPermit:()=>e=>e,withPermitsIfAvailable:()=>e=>Dl(e)};let n=t,r=0,i=ls(),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?Hi:Do(s=>{if(t<a){s(mc);return}if(n>=a){n-=a,s(Hi);return}let c=a-n;n>0&&(n=0),r+=c;let l=St(Xu(i,e),()=>{let t=new Set;return Cu(i,e,t),t}),u={permits:c,resume:()=>{d(),s(Hi)}},d=()=>{l.delete(u),l.size===0&&Cl(i,e)};return l.add(u),pf(()=>{d(),r-=u.permits,o(a-u.permits)})}),c=(e,t)=>n=>{if(t<=0)return n;let r=s(e,t);return gi(e=>Vs(e(r),()=>Vl(e(n),pf(()=>{o(t)}))))},l=e=>e<=0?!0:t<e||n<e?!1:(n-=e,!0);return{[Xm]:Xm,capacity:t,available:pf(()=>n),take:s,release:e=>pf(()=>o(e)),withPermits:c,withPermit:e=>c(e,1),withPermitsIfAvailable:e=>t=>e<=0?Dl(t):kr(()=>l(e)?Vl(Dl(t),pf(()=>{o(e)})):on(lt()))}},Mte=/-nightly\.\d{8}\.\d+$/;function Zm(e){return e.primaryServerVersion&&Mte.test(e.primaryServerVersion)?`Nightly`:e.fallbackStageLabel}function Nte(e){let t=Zm({primaryServerVersion:e.primaryServerVersion,fallbackStageLabel:e.fallbackStageLabel});return t===e.fallbackStageLabel?e.fallbackDisplayName:Oi({baseName:e.baseName,stageLabel:t})}function Pte(){return typeof window>`u`?null:window.desktopBridge?.getAppBranding?.()??null}var Qm=Pte(),$m=``,eh=$m===`latest`?$m:null,Fte=eh===`latest`?`Latest`:null,th=Qm?.baseName??`P4Code`,nh=Qm?.stageLabel??Fte??`Latest`,rh=Qm?.displayName??Oi({baseName:th,stageLabel:nh}),ih=`0.1.21`,Ite=Fl(`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`}]]),Lte=Fl(`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`}]]),ah=Fl(`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`}]]),oh=Fl(`arrow-down`,[[`path`,{d:`M12 5v14`,key:`s699le`}],[`path`,{d:`m19 12-7 7-7-7`,key:`1idqje`}]]),sh=Fl(`arrow-left`,[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]),Rte=Fl(`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`}]]),ch=Fl(`arrow-up`,[[`path`,{d:`m5 12 7-7 7 7`,key:`hav0vg`}],[`path`,{d:`M12 19V5`,key:`x0mq9r`}]]),lh=Fl(`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`}]]),uh=Fl(`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`}]]),zte=Fl(`box`,[[`path`,{d:`M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z`,key:`hh9hay`}],[`path`,{d:`m3.3 7 8.7 5 8.7-5`,key:`g66t2b`}],[`path`,{d:`M12 22V12`,key:`d0xqtd`}]]),Bte=Fl(`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`}]]),dh=Fl(`chevron-left`,[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]),fh=Fl(`chevrons-down-up`,[[`path`,{d:`m7 20 5-5 5 5`,key:`13a0gw`}],[`path`,{d:`m7 4 5 5 5-5`,key:`1kwcof`}]]),ph=Fl(`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`}]]),mh=Fl(`chevrons-up-down`,[[`path`,{d:`m7 15 5 5 5-5`,key:`1hf1tw`}],[`path`,{d:`m7 9 5-5 5 5`,key:`sgt6xg`}]]),hh=Fl(`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`}]]),Vte=Fl(`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`}]]),gh=Fl(`circle-check`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),Hte=Fl(`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`}]]),Ute=Fl(`circle-question-mark`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3`,key:`1u773s`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]),Wte=Fl(`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`}]]),Gte=Fl(`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`}]]),_h=Fl(`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`}]]),vh=Fl(`cloud`,[[`path`,{d:`M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z`,key:`p7xjir`}]]),Kte=Fl(`columns-3`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}],[`path`,{d:`M15 3v18`,key:`14nvp0`}]]),qte=Fl(`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`}]]),yh=Fl(`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`}]]),Jte=Fl(`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`}]]),bh=Fl(`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`}]]),xh=Fl(`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`}]]),Sh=Fl(`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`}]]),Ch=Fl(`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`}]]),wh=Fl(`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`}]]),Th=Fl(`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`}]]),Yte=Fl(`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`}]]),Eh=Fl(`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`}]]),Xte=Fl(`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`}]]),Dh=Fl(`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`}]]),Oh=Fl(`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`}]]),kh=Fl(`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`}]]),Ah=Fl(`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`}]]),jh=Fl(`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`}]]),Zte=Fl(`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`}]]),Mh=Fl(`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`}]]),Nh=Fl(`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`}]]),Qte=Fl(`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`}]]),$te=Fl(`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`}]]),Ph=Fl(`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`}]]),Fh=Fl(`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`}]]),Ih=Fl(`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`}]]),Lh=Fl(`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`}]]),Rh=Fl(`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`}]]),zh=Fl(`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`}]]),ene=Fl(`image`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`,key:`1xmnt7`}]]),Bh=Fl(`info`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 16v-4`,key:`1dtifu`}],[`path`,{d:`M12 8h.01`,key:`e9boi3`}]]),tne=Fl(`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`}]]),Vh=Fl(`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`}]]),Hh=Fl(`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`}]]),Uh=Fl(`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`}]]),nne=Fl(`list-filter`,[[`path`,{d:`M2 5h20`,key:`1fs1ex`}],[`path`,{d:`M6 12h12`,key:`8npq4p`}],[`path`,{d:`M9 19h6`,key:`456am0`}]]),Wh=Fl(`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`}]]),Gh=Fl(`list-tree`,[[`path`,{d:`M8 5h13`,key:`1pao27`}],[`path`,{d:`M13 12h8`,key:`h98zly`}],[`path`,{d:`M13 19h8`,key:`c3s6r1`}],[`path`,{d:`M3 10a2 2 0 0 0 2 2h3`,key:`1npucw`}],[`path`,{d:`M3 5v12a2 2 0 0 0 2 2h3`,key:`x1gjn2`}]]),rne=Fl(`list`,[[`path`,{d:`M3 5h.01`,key:`18ugdj`}],[`path`,{d:`M3 12h.01`,key:`nlz23k`}],[`path`,{d:`M3 19h.01`,key:`noohij`}],[`path`,{d:`M8 5h13`,key:`1pao27`}],[`path`,{d:`M8 12h13`,key:`1za7za`}],[`path`,{d:`M8 19h13`,key:`m83p4d`}]]),Kh=Fl(`loader-circle`,[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]]),qh=Fl(`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`}]]),ine=Fl(`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`}]]),Jh=Fl(`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`}]]),Yh=Fl(`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`}]]),Xh=Fl(`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`}]]),ane=Fl(`message-square-text`,[[`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`}],[`path`,{d:`M7 11h10`,key:`1twpyw`}],[`path`,{d:`M7 15h6`,key:`d9of3u`}],[`path`,{d:`M7 7h8`,key:`af5zfr`}]]),one=Fl(`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`}]]),Zh=Fl(`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`}]]),Qh=Fl(`minus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}]]),sne=Fl(`minimize`,[[`path`,{d:`M8 3v3a2 2 0 0 1-2 2H3`,key:`hohbtr`}],[`path`,{d:`M21 8h-3a2 2 0 0 1-2-2V3`,key:`5jw1f3`}],[`path`,{d:`M3 16h3a2 2 0 0 1 2 2v3`,key:`198tvr`}],[`path`,{d:`M16 21v-3a2 2 0 0 1 2-2h3`,key:`ph8mxp`}]]),$h=Fl(`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`}]]),eg=Fl(`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`}]]),tg=Fl(`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`}]]),cne=Fl(`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`}]]),lne=Fl(`panel-bottom`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M3 15h18`,key:`5xshup`}]]),une=Fl(`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`}]]),dne=Fl(`panel-left`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}]]),ng=Fl(`panel-right`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M15 3v18`,key:`14nvp0`}]]),rg=Fl(`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`}]]),fne=Fl(`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`}]]),ig=Fl(`pencil`,[[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}],[`path`,{d:`m15 5 4 4`,key:`1mk7zo`}]]),ag=Fl(`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`}]]),pne=Fl(`pin`,[[`path`,{d:`M12 17v5`,key:`bb1du9`}],[`path`,{d:`M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z`,key:`1nkz8b`}]]),mne=Fl(`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`}]]),og=Fl(`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`}]]),sg=Fl(`plus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]),hne=Fl(`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`}]]),cg=Fl(`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`}]]),lg=Fl(`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`}]]),ug=Fl(`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`}]]),gne=Fl(`scroll-text`,[[`path`,{d:`M15 12h-5`,key:`r7krc0`}],[`path`,{d:`M15 8h-5`,key:`1khuty`}],[`path`,{d:`M19 17V5a2 2 0 0 0-2-2H4`,key:`zz82l3`}],[`path`,{d:`M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3`,key:`1ph1d7`}]]),dg=Fl(`search`,[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]),_ne=Fl(`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`}]]),vne=Fl(`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`}]]),fg=Fl(`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`}]]),yne=Fl(`signal-high`,[[`path`,{d:`M2 20h.01`,key:`4haj6o`}],[`path`,{d:`M7 20v-4`,key:`j294jx`}],[`path`,{d:`M12 20v-8`,key:`i3yub9`}],[`path`,{d:`M17 20V8`,key:`1tkaf5`}]]),pg=Fl(`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`}]]),mg=Fl(`square-kanban`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M8 7v7`,key:`1x2jlm`}],[`path`,{d:`M12 7v4`,key:`xawao1`}],[`path`,{d:`M16 7v9`,key:`1hp2iy`}]]),hg=Fl(`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`}]]),gg=Fl(`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`}]]),_g=Fl(`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`}]]),vg=Fl(`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`}]]),yg=Fl(`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`}]]),bne=Fl(`tag`,[[`path`,{d:`M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z`,key:`vktsd0`}],[`circle`,{cx:`7.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`kqv944`}]]),bg=Fl(`terminal`,[[`path`,{d:`M12 19h8`,key:`baeox8`}],[`path`,{d:`m4 17 6-6-6-6`,key:`1yngyt`}]]),xg=Fl(`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`}]]),Sg=Fl(`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`}]]),Cg=Fl(`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`}]]),wg=Fl(`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`}]]),xne=Fl(`user`,[[`path`,{d:`M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2`,key:`975kel`}],[`circle`,{cx:`12`,cy:`7`,r:`4`,key:`17ys0d`}]]),Sne=Fl(`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`}]]),Tg=Fl(`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 Cne(){let[,e]=J.useState({});return J.useCallback(()=>{e({})},[])}var wne=(0,J.createContext)(null);function Tne(){return(0,J.useContext)(wne)?.defaultOptions??{}}var Ene=io();function Eg(e,t=e=>e,n={}){let r=n.equal??Dne;return(0,Ene.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 One(e,t,n=()=>({})){let r={...Tne().debouncer,...t},[i]=(0,J.useState)(()=>{let t=new ju(e,r);return t.Subscribe=function(e){let n=Eg(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=Eg(i.store,n);return(0,J.useMemo)(()=>({...i,state:a}),[i,a])}function kne(e,t,n){let[r,i]=(0,J.useState)(e),a=One(i,t,n);return[r,a.maybeExecute,a]}function Ane(e,t,n){let[r,i,a]=kne(e,t,n);return(0,J.useEffect)(()=>{i(e)},[e,i]),[r,a]}var jne=`\x1Bb`,Mne=`\x1Bf`,Nne=``,Pne=``,Fne=``,Ine={BracketLeft:[`[`],BracketRight:[`]`],Digit0:[`0`],Digit1:[`1`],Digit2:[`2`],Digit3:[`3`],Digit4:[`4`],Digit5:[`5`],Digit6:[`6`],Digit7:[`7`],Digit8:[`8`],Digit9:[`9`]};function Og(e){let t=e.toLowerCase();return t===`esc`?`escape`:t}function Lne(e){let t=new Set([Og(e.key)]),n=e.code?.match(/^Key([A-Z])$/)?.[1];n&&t.add(n.toLowerCase());let r=e.code?Ine[e.code]:void 0;if(!r)return t;for(let e of r)t.add(e);return t}function kg(e,t,n=navigator.platform){let r=kt(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 Rne(e,t,n=navigator.platform){return kg(e,t,n)?Lne(e).has(t.key):!1}function Ag(e){return e?.platform??navigator.platform}function jg(e){return{terminalFocus:!1,terminalOpen:!1,previewFocus:!1,previewOpen:!1,...e?.context}}function Mg(e,t){switch(e.type){case`identifier`:return e.name===`true`?!0:e.name===`false`?!1:!!t[e.name];case`not`:return!Mg(e.node,t);case`and`:return Mg(e.left,t)&&Mg(e.right,t);case`or`:return Mg(e.left,t)||Mg(e.right,t)}}function Ng(e,t){return e?Mg(e,t):!0}function zne(e,t=navigator.platform){let n=kt(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 Pg(e,t,n){let r=Ag(n),i=jg(n),a=new Set;for(let n=e.length-1;n>=0;--n){let o=e[n];if(!o||!Ng(o.whenAst,i))continue;let s=zne(o.shortcut,r);if(!a.has(s)&&(a.add(s),o.command===t))return o.shortcut}return null}function Fg(e,t,n,r){return Ig(e,t,r)===n}function Ig(e,t,n){let r=Ag(n),i=jg(n);for(let n=t.length-1;n>=0;--n){let a=t[n];if(a&&Ng(a.whenAst,i)&&Rne(e,a.shortcut,r))return a.command}return null}function Bne(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 Lg(e,t=navigator.platform){let n=Bne(e.key),r=kt(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 Rg(e,t,n){let r=typeof n==`string`?{platform:n}:n,i=Ag(r),a=Pg(e,t,r);return a?Lg(a,i):null}function Vne(e){return an[e]??null}function zg(e){let t=an.indexOf(e);return t===-1?null:t}function Hne(e){return e===`thread.previous`?`previous`:e===`thread.next`?`next`:null}function Une(e,t,n){let r=Ag(n);for(let i of an){let a=Pg(t,i,n);if(a&&kg(e,a,r))return!0}return!1}function Wne(e){return Ie[e]??null}function Gne(e){let t=Ie.indexOf(e);return t===-1?null:t}function Kne(e,t,n){return Fg(e,t,`terminal.toggle`,n)}function qne(e,t,n){return Fg(e,t,`terminal.split`,n)}function Jne(e,t,n){return Fg(e,t,`terminal.splitVertical`,n)}function Yne(e,t,n){return Fg(e,t,`terminal.new`,n)}function Xne(e,t,n){return Fg(e,t,`terminal.close`,n)}function Zne(e,t,n){return Fg(e,t,`diff.toggle`,n)}function Qne(e,t,n){return Fg(e,t,`editor.openFavorite`,n)}function $ne(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:kt(t)&&n===`k`&&e.metaKey&&!e.ctrlKey&&!e.altKey&&!e.shiftKey}function ere(e,t=navigator.platform){return e.type!==void 0&&e.type!==`keydown`||!kt(t)||Og(e.key)!==`backspace`?null:e.metaKey&&!e.ctrlKey&&!e.altKey&&!e.shiftKey?Fne:null}function tre(e,t=navigator.platform){if(e.type!==void 0&&e.type!==`keydown`||e.shiftKey)return null;let n=Og(e.key);if(n!==`arrowleft`&&n!==`arrowright`)return null;let r=n===`arrowleft`?jne:Mne,i=n===`arrowleft`?Nne:Pne;return kt(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 nre=[/\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 rre(e){if(typeof e!=`string`)return!1;let t=e.trim();return t.length===0?!1:nre.some(e=>e.test(t))}function ire(e){return rre(e)?null:e??null}var Bg=`[CLIENT_SETTINGS]`,Vg=new Set,Hg=new Set,Ug=Se,Wg=!1,Gg=null,Kg=0;function are(){for(let e of Vg)e()}function ore(){for(let e of Hg)e()}function qg(){return Ug}function Jg(e){Ug=e,are()}function sre(e){Wg!==e&&(Wg=e,ore())}function cre(e){return Vg.add(e),Yg(),()=>{Vg.delete(e)}}function lre(){return Wg}function ure(e){return Hg.add(e),Yg(),()=>{Hg.delete(e)}}async function Yg(){if(Wg)return;if(Gg)return Gg;let e=Kg,t=(async()=>{try{let t=await be().persistence.getClientSettings();if(e!==Kg)return;t&&Jg({...Se,...t})}catch(e){console.error(`${Bg} hydrate failed`,{operation:`hydrate`,...nt(e)})}finally{e===Kg&&sre(!0)}})().finally(()=>{Gg===t&&(Gg=null)});return Gg=t,Gg}function Xg(e){Jg(e),be().persistence.setClientSettings(e).catch(e=>{console.error(`${Bg} persist failed`,{operation:`persist`,...nt(e)})})}var dre=new Set(L(An.fields));function fre(e){let t={},n={};for(let[r,i]of Object.entries(e))dre.has(r)?t[r]=i:n[r]=i;return{serverPatch:t,clientPatch:n}}function pre(){return qg()}function mre(){return(0,J.useSyncExternalStore)(ure,lre,hre)}function hre(){return!1}function Zg(){return(0,J.useSyncExternalStore)(cre,qg,gre)}function gre(){return Se}function _re(e,t){return{...e,...t}}function Qg(e,t){let n=(0,X.c)(6),r=Zg(),i;n[0]!==r||n[1]!==e?(i=_re(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 $g(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 vre(e){return e.settingsHydrated?e.mode:`none`}function e_(){let e=(0,X.c)(3),t=mre(),n=Zg().environmentIdentificationMode,r;return e[0]!==n||e[1]!==t?(r=vre({mode:n,settingsHydrated:t}),e[0]=n,e[1]=t,e[2]=r):r=e[2],r}function t_(e,t){let n=(0,X.c)(2),r;return n[0]===e?r=n[1]:(r=uf.settingsValueAtom(e),n[0]=e,n[1]=r),Qg(Fd(r)??Hn,t)}function n_(e){return Qg(Fd(nn),e)}function yre(e){let t=(0,X.c)(3),n=Zd(uf.updateSettings,`server settings update`),r;return t[0]!==e||t[1]!==n?(r=t=>{let{serverPatch:r,clientPatch:i}=fre(t);Object.keys(r).length>0&&e&&n({environmentId:e,input:{patch:r}}),Object.keys(i).length>0&&Xg({...qg(),...i})},t[0]=e,t[1]=n,t[2]=r):r=t[2],r}function r_(){return yre(R()?.environmentId??null)}function i_(){return bre}function bre(e){Xg({...qg(),...e})}function a_(e){return/^[a-zA-Z]:([/\\]|$)/.test(e)}function o_(e){return e.startsWith(`\\\\`)}function xre(e){return o_(e)||a_(e)}function s_(e){return e===`.`||e===`..`||e.startsWith(`./`)||e.startsWith(`../`)||e.startsWith(`.\\`)||e.startsWith(`..\\`)}function Sre(e){return e===`/`||e===`\\`||/^[a-zA-Z]:[/\\]?$/.test(e)}function Cre(e){if(e.length===0||Sre(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 c_(e){return Cre(e.trim())}function l_(e){let t=c_(e);return a_(t)||o_(t)?t.replaceAll(`/`,`\\`).toLowerCase():t}function wre(e){return JSON.stringify([e.environmentId,e.cwd,e.relativePath])}function Tre(e){let t=je(),n=je(),r=ba(e=>Na(null).pipe($o(`environment-data:projects:optimistic-file:${e}`))),i={mode:`serial`,key:({environmentId:e,input:t})=>JSON.stringify([e,t.projectId])};return{searchEntries:Pc(e,{label:`environment-data:projects:search-entries`,tag:Bl.projectsSearchEntries,staleTimeMs:15e3}),listEntries:Pc(e,{label:`environment-data:projects:list-entries`,tag:Bl.projectsListEntries,staleTimeMs:3e4,idleTtlMs:5*6e4}),readFile:Pc(e,{label:`environment-data:projects:read-file`,tag:Bl.projectsReadFile,staleTimeMs:3e4,idleTtlMs:5*6e4}),optimisticFile:e=>r(wre(e)),create:_e(e,{label:`environment-data:commands:project:create`,execute:e=>Ss(e),scheduler:t,concurrency:i}),update:_e(e,{label:`environment-data:commands:project:update`,execute:e=>ll(e),scheduler:t,concurrency:i}),delete:_e(e,{label:`environment-data:commands:project:delete`,execute:e=>Xl(e),scheduler:t,concurrency:i}),writeFile:Zn(e,{label:`environment-data:projects:write-file`,tag:Bl.projectsWriteFile,scheduler:n,concurrency:{mode:`serial`,key:({environmentId:e,input:t})=>JSON.stringify([e,t.cwd,t.relativePath])}})}}var Ere=Object.freeze([]),Dre=new Map;function Ore(e){let t=ba(t=>Na(n=>n(e.snapshotAtom(t))?.projects??Ere).pipe($o(`environment-projects:${t}`))),n=ba(e=>Na(n=>{let r=n(t(e));return r.length===0?Dre:new Map(r.map(e=>[e.id,e]))}).pipe($o(`environment-project-index:${e}`))),r=ba(e=>{let n=[];return Na(r=>{let i=r(t(e)).map(t=>({environmentId:e,projectId:t.id}));return Yd(n,i)?n:(n=i,i)}).pipe($o(`environment-project-refs:${e}`))}),i=ba(e=>{let t=cf(e),r=null,i=null;return Na(e=>{let a=e(n(t.environmentId)).get(t.projectId)??null;return a===r?i:(r=a,i=a===null?null:dr(t.environmentId,a),i)}).pipe($o(`environment-project:${e}`))}),a=[],o=Na(t=>{let n=[];for(let i of t(e.catalogValueAtom).entries.keys())n.push(...t(r(i)));return Yd(a,n)?a:(a=n,n)}).pipe($o(`environment-project-refs`)),s=[];return{environmentProjectsAtom:t,environmentProjectIndexAtom:n,environmentProjectRefsAtom:r,projectRefsAtom:o,projectsAtom:Na(e=>{let t=e(o).flatMap(t=>{let n=e(i(So(t)));return n===null?[]:[n]});return Sd(s,t)||(s=t),s}).pipe($o(`environment-project-list`)),projectAtom:e=>i(So(e))}}var kre=e=>/^win(dows)?/i.test(e);function u_(e){return a_(e)||o_(e)?`windows`:e.startsWith(`/`)?`unix`:null}function d_(e){let t=u_(e);return t===`windows`?`\\`:t===`unix`?`/`:e.includes(`\\`)?`\\`:`/`}function f_(e){return(u_(e)===`unix`?/\/$/:/[\\/]$/).test(e)}function p_(e,t){return e.split(t===`/`?/\/+/:/[\\/]+/).filter(Boolean)}function m_(e){return u_(e)===`unix`?e.lastIndexOf(`/`):Math.max(e.lastIndexOf(`/`),e.lastIndexOf(`\\`))}function h_(e){if(a_(e)){let t=`${e.slice(0,2)}\\`;return{root:t,separator:`\\`,segments:p_(e.slice(t.length),`\\`)}}if(o_(e)){let[t,n,...r]=p_(e,`\\`);return!t||!n?null:{root:`\\\\${t}\\${n}\\`,separator:`\\`,segments:r}}return e.startsWith(`/`)?{root:`/`,separator:`/`,segments:p_(e.slice(1),`/`)}:null}function Are(e,t=``){let n=kre(t);return e.startsWith(`./`)||e.startsWith(`../`)||e.startsWith(`.\\`)||e.startsWith(`..\\`)||e.startsWith(`/`)||e.startsWith(`~/`)||n&&xre(e)}function jre(e,t){return xre(e)&&!kre(t)}function g_(e,t){let n=e.trim();if(!s_(n)||!t)return c_(n);let r=h_(c_(t));if(!r)return c_(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 c_(a.length===0?r.root:`${r.root}${a}`)}function Mre(e,t){let n=l_(t);if(n.length!==0)return e.find(e=>{let t=e.workspaceRoot??e.cwd;return t?l_(t)===n:!1})}function Nre(e){let t=c_(e),n=h_(t);return n?n.segments.findLast(Boolean)??t:t.split(/[/\\]/).findLast(Boolean)??t}function Pre(e,t){let n=d_(e);return`${__(e)}${t}${n}`}function Fre(e){let t=m_(e);return e.slice(t+1)}function __(e){if(f_(e))return e;let t=m_(e);return t<0?e:e.slice(0,t+1)}function Ire(e){let t=e.trim();return t.length===0||f_(t)?t:`${t}${d_(t)}`}function Lre(e){let t=c_(e),n=h_(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=d_(e),i=m_(t);return i<0?null:i===2&&/^[a-zA-Z]:/.test(t)?`${t.slice(0,2)}${r}`:t.slice(0,i+1)}function Rre(e){return f_(e)&&Lre(e)!==null}var v_=zn(pi),y_=C(pi),zre=En(y_.stateAtom);xc({catalogValueAtom:at.catalogValueAtom,shellStateValueAtom:y_.stateValueAtom});var Bre=Na(e=>{let t=Eu(e(at.catalogAtom));if(mf(t))return!1;for(let n of t.value.entries.keys()){if(k(e(y_.stateValueAtom(n)).snapshot))continue;let t=St(Eu(e(at.stateAtom(n))),()=>su);if(Bt(t)!==`disconnected`||t.phase===`backoff`&&t.desired&&t.attempt<=2)return!1}return!0}).pipe($o(`web-all-environment-shells-bootstrapped`)),b_=Tre(pi),x_=Ore({catalogValueAtom:at.catalogValueAtom,snapshotAtom:zre}),S_=Xo(pi),Vre=Iu(pi),C_=Yc(Vre.stateAtom),w_=Io({catalogValueAtom:at.catalogValueAtom,snapshotAtom:zre}),Hre=Na(El(Ja)).pipe($o(`web-environment-thread:empty`));function Ure(e,t){let n=(0,X.c)(5),r;n[0]!==e||n[1]!==t?(r=e!==null&&t!==null?Vre.stateAtom(e,t):Hre,n[0]=e,n[1]=t,n[2]=r):r=n[2];let i=Fd(r),a;return n[3]===i?a=n[4]:(a=St(Eu(i),Wre),n[3]=i,n[4]=a),a}function Wre(){return Ja}var Gre=Object.freeze([]),Kre=Object.freeze([]),qre=Object.freeze([]),Jre=Object.freeze([]),Yre=Object.freeze([]),Xre=Na(null).pipe($o(`web-project:empty`));Na(Gre).pipe($o(`web-project-refs:empty`));var Zre=Na(Kre).pipe($o(`web-thread-refs:empty`)),Qre=Na(null).pipe($o(`web-thread-shell:empty`)),$re=Na(null).pipe($o(`web-thread-detail:empty`)),eie=Na(`empty`).pipe($o(`web-thread-status:empty`));Na(qre).pipe($o(`web-thread-messages:empty`)),Na(Jre).pipe($o(`web-thread-activities:empty`));var tie=Na(Yre).pipe($o(`web-thread-proposed-plans:empty`));Na(null).pipe($o(`web-thread-session:empty`));var nie=Na(null).pipe(ca,$o(`web-active-environment-id`));function rie(){return Fd(nie)}function T_(e){jt.set(nie,e)}function iie(){return Fd(w_.threadRefsAtom)}function aie(e){let t=(0,X.c)(2),n;return t[0]===e?n=t[1]:(n=e===null?Zre:w_.environmentThreadRefsAtom(e),t[0]=e,t[1]=n),Fd(n)}function E_(){return Fd(x_.projectsAtom)}function D_(){return Fd(w_.threadShellsAtom)}function oie(){return Fd(Bre)}function sie(e){let t=(0,X.c)(2),n;return t[0]===e?n=t[1]:(n=w_.threadShellsForProjectRefsAtom(e),t[0]=e,t[1]=n),Fd(n)}function O_(e){let t=(0,X.c)(2),n;return t[0]===e?n=t[1]:(n=e===null?Xre:x_.projectAtom(e),t[0]=e,t[1]=n),Fd(n)}function k_(e){let t=(0,X.c)(2),n;return t[0]===e?n=t[1]:(n=e===null?Qre:w_.threadShellAtom(e),t[0]=e,t[1]=n),Fd(n)}function cie(e){let t=(0,X.c)(2),n;return t[0]===e?n=t[1]:(n=e===null?$re:C_.detailAtom(e),t[0]=e,t[1]=n),Fd(n)}function lie(e){let t=(0,X.c)(2),n;return t[0]===e?n=t[1]:(n=e===null?eie:C_.statusAtom(e),t[0]=e,t[1]=n),Fd(n)}function uie(e,t){return e!==null&&(!t.waitForShell||t.shellExists)?e:null}function A_(e,t){let n=(0,X.c)(7),r=k_(e),i=r!==null,a=t?.waitForShell===!0,o;n[0]!==e||n[1]!==i||n[2]!==a?(o=uie(e,{shellExists:i,waitForShell:a}),n[0]=e,n[1]=i,n[2]=a,n[3]=o):o=n[3];let s=cie(o),c;return n[4]!==s||n[5]!==r?(c=cd(s,r),n[4]=s,n[5]=r,n[6]=c):c=n[6],c}function die(e){let t=(0,X.c)(2),n;return t[0]===e?n=t[1]:(n=e===null?tie:C_.proposedPlansAtom(e),t[0]=e,t[1]=n),Fd(n)}function fie(e){return jt.get(x_.projectAtom(e))}function j_(e){return jt.get(w_.threadShellAtom(e))}function pie(e){return jt.get(Cc).get(e)?.environment.capabilities.threadSettlement===!0}function mie(e){return jt.get(Cc).get(e)?.environment.capabilities.threadSnooze===!0}function hie(e){return jt.get(w_.environmentThreadRefsAtom(e))}function gie(e){return e.filter(e=>e.state.hasRunningSubprocess).map(e=>e.target.terminalId)}var M_=Object.freeze({buffer:``,status:`closed`,error:null,updatedAt:null,version:0}),_ie=Object.freeze({summary:null,buffer:``,status:`closed`,error:null,hasRunningSubprocess:!1,updatedAt:null,version:0}),vie=512*1024,yie=new TextEncoder,bie=new TextDecoder;function N_(e,t){if(t<=0)return``;let n=yie.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 bie.decode(n.subarray(r))}function xie(e,t){return{buffer:N_(e.history,t),status:e.status,error:null,updatedAt:e.updatedAt,version:1}}function Sie(e,t){return e===null?t:t===null||Date.parse(e)>=Date.parse(t)?e:t}function P_(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:Sie(e?.updatedAt??null,t.updatedAt),version:t.version}}function Cie(e,t,n=vie){switch(t.type){case`snapshot`:case`restarted`:return xie(t.snapshot,n);case`output`:return{...e,buffer:N_(`${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 wie(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 Tie(e){let t=je(),n=je(),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:bc(e,{label:`environment-data:terminal:attach`,subscribe:e=>Ci(Bl.terminalAttach,e).pipe(ka(M_,Cie))}),events:S(e,{label:`environment-data:terminal:events`,tag:Bl.subscribeTerminalEvents}),metadata:bc(e,{label:`environment-data:terminal:metadata`,subscribe:e=>Ci(Bl.subscribeTerminalMetadata,{}).pipe(ka([],wie))}),open:Zn(e,{label:`environment-data:terminal:open`,tag:Bl.terminalOpen,scheduler:t,concurrency:a}),write:Zn(e,{label:`environment-data:terminal:write`,tag:Bl.terminalWrite}),resize:Zn(e,{label:`environment-data:terminal:resize`,tag:Bl.terminalResize,scheduler:n,concurrency:{mode:`latest`,key:i}}),clear:Zn(e,{label:`environment-data:terminal:clear`,tag:Bl.terminalClear,scheduler:t,concurrency:a}),restart:Zn(e,{label:`environment-data:terminal:restart`,tag:Bl.terminalRestart,scheduler:t,concurrency:a}),close:Zn(e,{label:`environment-data:terminal:close`,tag:Bl.terminalClose,scheduler:t,concurrency:a})}}var F_=Tie(pi);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?F_.attach({environmentId:e.environmentId,input:e.terminal}):null,t[0]=e.environmentId,t[1]=e.terminal,t[2]=n):n=t[2];let r=$r(n),i;t[3]===e.environmentId?i=t[4]:(i=e.environmentId===null?null:F_.metadata({environmentId:e.environmentId,input:null}),t[3]=e.environmentId,t[4]=i);let a=$r(i),o;bb0:{if(e.environmentId===null||e.terminal===null){o=_ie;break bb0}let n;t[5]!==r.data||t[6]!==e.terminal?.terminalId||t[7]!==e.terminal?.threadId||t[8]!==a.data?(n=P_(a.data?.find(t=>t.threadId===e.terminal?.threadId&&t.terminalId===e.terminal?.terminalId)??null,r.data??M_),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 I_(e){let t=(0,X.c)(11),n;t[0]===e.environmentId?n=t[1]:(n=e.environmentId===null?null:F_.metadata({environmentId:e.environmentId,input:null}),t[0]=e.environmentId,t[1]=n);let r=$r(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:Xc.make(t.threadId),terminalId:t.terminalId},state:P_(t,M_)}),t[9]=e.environmentId,t[10]=a),n=(r.data??[]).filter(i).map(a).sort(Die),t[3]=e.environmentId,t[4]=e.threadId,t[5]=r.data,t[6]=n}else n=t[6];i=n}return i}function Die(e,t){return e.target.terminalId.localeCompare(t.target.terminalId,void 0,{numeric:!0})}function L_(e){let t=(0,X.c)(2),n=I_(e),r;return t[0]===n?r=t[1]:(r=gie(n),t[0]=n,t[1]=r),r}var R_={shortLabel:`PR`,singular:`pull request`},Oie={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`},kie={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`},Aie={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`},jie={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`},Mie={icon:`change-request`,providerName:`source control`,shortName:`change request`,longName:`change request`,pluralLongName:`change requests`,providerLongName:`change request`,urlExample:`#42`};function z_(e){switch(e?.kind){case`github`:case void 0:return Oie;case`gitlab`:return kie;case`azure-devops`:return Aie;case`bitbucket`:return jie;case`unknown`:return Mie}}function B_(e){if(!e)return R_;let t=z_(e);return{shortLabel:t.shortName,singular:t.longName}}var V_=`p4code`,Nie=RegExp(`^${V_}\\/(?:[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 Pie(e){let t=e.indexOf(`/`);return t<=0||t===e.length-1?e:e.slice(t+1)}function Fie(e){return`${V_}/${e(4).toLowerCase().replace(/[^0-9a-f]/g,``).slice(0,8)}`}function H_(e){return Nie.test(e.trim().toLowerCase())}var Iie={hasUpstream:!1,aheadCount:0,behindCount:0,aheadOfDefaultCount:0,pr:null};function U_(e,t){return{...e,...t??Iie}}function Lie(e){return{hasUpstream:e.hasUpstream,aheadCount:e.aheadCount,behindCount:e.behindCount,...e.aheadOfDefaultCount===void 0?{}:{aheadOfDefaultCount:e.aheadOfDefaultCount},pr:e.pr}}function Rie(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 zie(e,t){switch(t._tag){case`snapshot`:return U_(t.local,t.remote);case`localUpdated`:return U_(t.local,e?Lie(e):null);case`remoteUpdated`:return U_(e===null?{isRepo:!0,hasPrimaryRemote:!1,isDefaultRef:!1,refName:null,hasWorkingTreeChanges:!1,workingTree:{files:[],insertions:0,deletions:0}}:Rie(e),t.remote)}}var W_=je(),G_={mode:`serial`,key:({environmentId:e,input:t})=>JSON.stringify([e,t.cwd])},Bie=ba(e=>Na({revision:0,persistedCacheReadable:!0}).pipe(ca,$o(`environment-data:vcs:list-refs-state:${e}`))),Vie=jte({permits:1});function K_(e){return Bie(e.environmentId)}function Hie(e,t,n){e.update(K_(t),e=>({revision:e.revision+1,persistedCacheReadable:n??e.persistedCacheReadable}))}function q_(e,t){return Vie.withPermit(e)(t)}var J_=za(`VcsRefsState.invalidateCached`)(function*(e,t){let n=yield*$t;yield*q_(t.environmentId,Hr(function*(){Hie(e,t,yield*n.clearVcsRefs(t.environmentId).pipe($a(!0),Vo(e=>le(`Could not remove invalidated cached Git refs.`).pipe(tc({environmentId:t.environmentId,cwd:t.cwd,...nt(e)}),$a(!1)))))}))}),Uie=Ls([`refresh_status`,`run_change_request`,`pull`,`switch_ref`,`create_ref`,`create_worktree`,`init`,`publish_repository`,`prepare_pull_request_thread`]),Y_=class extends Qr()(`VcsActionUnavailableError`,{operation:Uie,environmentId:Ya(Lu),cwd:Ya(Co)}){get message(){return`Source control operation '${this.operation.replaceAll(`_`,` `)}' is unavailable.`}},X_=class extends Qr()(`VcsActionRemoteFailureError`,{actionId:Co,transportActionId:Co,action:zd,environmentId:Lu,cwd:Co,phase:Ya(fo),remoteMessageLength:Cd}){get message(){let e=this.phase===null?`execution`:this.phase;return`Source control action '${this.action}' failed during ${e}.`}},Z_=class extends Qr()(`VcsActionMissingTerminalEventError`,{actionId:Co,transportActionId:Co,action:zd,environmentId:Lu,cwd:Co}){get message(){return`Source control action '${this.action}' ended without a terminal result.`}},Wie=class extends Qr()(`VcsActionTargetKeyParseError`,{keyLength:Cd,cause:Zl()}){get message(){return`Invalid source control action target key (${this.keyLength} characters).`}};fi([X_,Z_]);var Q_=Object.freeze({isRunning:!1,operation:null,actionId:null,action:null,currentLabel:null,currentPhaseLabel:null,hookName:null,lastOutputLine:null,phaseStartedAtMs:null,hookStartedAtMs:null,error:null}),$_=()=>es(d()),ev=0,Gie=Dn(ae([Lu,Co])),tv=ba(e=>Na(Q_).pipe(ca,$o(`vcs-action:${e}`))),nv=Na(Q_).pipe(ca,$o(`vcs-action:null`));function rv(e){return e.environmentId===null||e.cwd===null?null:JSON.stringify([e.environmentId,e.cwd])}function Kie(e){try{let[t,n]=Gie(JSON.parse(e));return{environmentId:t,cwd:n}}catch(t){throw new Wie({keyLength:e.length,cause:t})}}function qie(e){let t=rv(e);return t===null?nv:tv(t)}function Jie(){return ev+=1,`local-vcs-action:${ev}`}function iv(e){let t=e.actionId??Jie(),n=$_();return{...Q_,isRunning:!0,operation:e.operation,actionId:t,currentLabel:e.label,currentPhaseLabel:e.label,phaseStartedAtMs:n}}function av(e,t,n){return{...Q_,operation:e,actionId:t,error:n instanceof Error?n.message:`Source control action failed.`}}function Yie(e,t){let n=JSON.stringify([e.environmentId,e.cwd]);return`${n.length}:${n}${t}`}function Xie(e,t,n,r){return r.actionId!==t||r.cwd!==e.cwd?null:{...r,actionId:n}}function Zie(e,t){return kr(()=>{let n=null;return e.pipe(ia(e=>{let r=Xie(t.target,t.transportActionId,t.actionId,e);return r===null?Hi:((r.kind===`action_finished`||r.kind===`action_failed`)&&(n=r),t.onProgress(r))}),Vs(()=>n?.kind===`action_finished`?on(n.result):n?.kind===`action_failed`?el(new X_({actionId:t.actionId,transportActionId:t.transportActionId,action:n.action,environmentId:t.target.environmentId,cwd:t.target.cwd,phase:n.phase,remoteMessageLength:n.message.length})):el(new Z_({actionId:t.actionId,transportActionId:t.transportActionId,action:t.action,environmentId:t.target.environmentId,cwd:t.target.cwd}))))})}function Qie(e,t){if(e.actionId!==t.actionId)return e;let n=$_();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{...Q_,actionId:t.actionId,action:t.action,operation:`run_change_request`};case`action_failed`:return{...Q_,actionId:t.actionId,action:t.action,operation:`run_change_request`,error:t.message}}}function $ie(e){let t=new Map,n=n=>{let r=rv(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:Kie(r),s=r===null?nv:tv(r),c=Tn(e,{label:`vcs-action:run-stacked:${i}`,scheduler:W_,concurrency:{mode:`serial`,key:()=>i},execute:(e,t)=>{if(o===null)return el(new Y_({operation:`run_change_request`,environmentId:n.environmentId,cwd:n.cwd}));let r=Yie(o,e.actionId);t.set(s,iv({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 Zie(pn(o.environmentId,ht(Bl.gitRunStackedAction,i)),{target:o,transportActionId:r,actionId:e.actionId,action:e.action,onProgress:n=>pf(()=>{let r=t.get(s);if(r.actionId===e.actionId&&(t.set(s,Qie(r,n)),e.onProgress!==void 0))try{e.onProgress(n)}catch{}})}).pipe(Vl(J_(t,o)),O(n=>pf(()=>{let r=t.get(s);r.actionId===e.actionId&&r.isRunning&&t.set(s,av(`run_change_request`,e.actionId,n))})))}});return t.set(i,c),c},r=(e,t,n)=>{let r=rv(t);if(r===null)return;let i=tv(r);e.set(i,n(e.get(i)))};return{stateAtom:qie,runStackedAction:e=>n(e),track:async(e,t,n,r)=>{let i=rv(t);if(i===null)return fl(Hu(new Y_({operation:n.operation,environmentId:t.environmentId,cwd:t.cwd})));let a=tv(i),o=iv(n);e.set(a,o);let s=await r();return e.get(a).actionId===o.actionId&&(Qa(s)||ml(s.cause)?e.set(a,Q_):e.get(a).actionId===o.actionId&&e.set(a,av(n.operation,o.actionId,nc(s.cause)))),s},resetError:(e,t,n)=>{r(e,t,e=>!e.isRunning&&e.operation===n?Q_:e)}}}var eae=100,tae=3e4,nae=tu(`1 second`).pipe(ma(({duration:e})=>on(we(e,ue(30)))));function rae(e){return e.query===void 0&&e.cursor===void 0&&e.includeMatchingRemoteRefs===void 0&&e.refKind===void 0&&e.limit===eae}var iae=za(`CachedVcsRefsState.commitRefresh`)(function*(e,t,n){return yield*q_(n.environmentId,Hr(function*(){let r=K_({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($a(!0),Vo(e=>le(`Could not recover invalidated cached Git refs.`).pipe(tc({environmentId:n.environmentId,cwd:n.cwd,...nt(e)}),$a(!1)))),yield*t.saveVcsRefs(n.environmentId,n.cwd,n.refs).pipe(Vo(e=>le(`Could not persist cached Git refs.`).pipe(tc({environmentId:n.environmentId,cwd:n.cwd,...nt(e)})))),a!==i.persistedCacheReadable&&e.update(r,e=>e.revision===n.expectedRevision?{...e,persistedCacheReadable:a}:e)),!0}))}),aae=za(`CachedVcsRefsState.makeChanges`)(function*(e,t,n,r=!0){let i=yield*Yi,a=yield*$t,o=i.target.environmentId,s=rae(e),c=s&&r?yield*a.loadVcsRefs(o,e.cwd).pipe(Vo(t=>le(`Could not load cached Git refs.`).pipe(tc({environmentId:o,cwd:e.cwd,...nt(t)}),$a(lt())))):lt(),l=za(`CachedVcsRefsState.refresh`)(function*(){let r=yield*Ii(Bl.vcsListRefs,e).pipe(rr(Yi,i)),c=a.saveVcsRefs(o,e.cwd,r).pipe(Vo(t=>le(`Could not persist cached Git refs.`).pipe(tc({environmentId:o,cwd:e.cwd,...nt(t)}))));return t===void 0||n===void 0?(s&&(yield*c),_i(r)):(yield*iae(n,a,{environmentId:o,cwd:e.cwd,refs:r,expectedRevision:t,persist:s}))?_i(r):lt()});return yi(Yt(on(c)).pipe(Qe(e=>Ai(e,{onNone:()=>Ur,onSome:H}))),yi(Yt(hr(i.state)),Ta(i.state)).pipe(iu(e=>e.phase===`connected`?e.generation:null),dt,yr(t=>t===null?Gi:Yt(l().pipe(O(t=>le(`Could not refresh Git refs.`).pipe(tc({environmentId:o,cwd:e.cwd,...nt(t)}))))).pipe(_a(nae),Qe(e=>Ai(e,{onNone:()=>Ur,onSome:H}))))))});function oae(e,t,n,r){return ur(e,o(Hr(function*(){return yield*aae(t,n,yield*Bu,r)})))}function sae(e){let t=ba(t=>ba(n=>{let r=JSON.parse(n);return e.atom(e=>{let n=e(K_({environmentId:t}));return oae(t,r,n.revision,n.persistedCacheReadable)}).pipe(Cr(tae),$o(`environment-data:vcs:list-refs:${t}:${n}`))})),n=e=>t(e.environmentId)(JSON.stringify(e.input)),r=(e,t)=>J_(t,{environmentId:e.environmentId,cwd:e.input.cwd});return{listRefs:n,status:bc(e,{label:`environment-data:vcs:status`,subscribe:e=>Ci(Bl.subscribeVcsStatus,e).pipe(Lt(()=>null,(e,t)=>{let n=zie(e,t);return[n,[n]]}))}),pull:Zn(e,{label:`environment-data:vcs:pull`,tag:Bl.vcsPull,scheduler:W_,concurrency:G_,onSettled:r}),refreshStatus:Zn(e,{label:`environment-data:vcs:refresh-status`,tag:Bl.vcsRefreshStatus,scheduler:W_,concurrency:G_,onSettled:r}),createWorktree:Zn(e,{label:`environment-data:vcs:create-worktree`,tag:Bl.vcsCreateWorktree,scheduler:W_,concurrency:G_,onSettled:r}),removeWorktree:Zn(e,{label:`environment-data:vcs:remove-worktree`,tag:Bl.vcsRemoveWorktree,scheduler:W_,concurrency:G_,onSettled:r}),createRef:Zn(e,{label:`environment-data:vcs:create-ref`,tag:Bl.vcsCreateRef,scheduler:W_,concurrency:G_,onSettled:r}),switchRef:Zn(e,{label:`environment-data:vcs:switch-ref`,tag:Bl.vcsSwitchRef,scheduler:W_,concurrency:G_,onSettled:r}),init:Zn(e,{label:`environment-data:vcs:init`,tag:Bl.vcsInit,scheduler:W_,concurrency:G_,onSettled:r})}}var ov=sae(pi),sv=$ie(pi),cv=`p4code:ui-state:v1`,lv=1,uv=[`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`],dv={projectExpandedById:{},projectOrder:[],pinnedProjectKeys:[],hiddenProjectKeys:[],pinnedThreadKeys:[],threadLastVisitedAtById:{},threadChangedFilesExpandedById:{},defaultAdvertisedEndpointKey:null},cae=`legacy-project-cwd:`,fv=`legacy-project-expansion-default`,pv=!1;function mv(e){return`${cae}${l_(e)}`}function hv(e){return Array.isArray(e)?[...new Set(e.filter(e=>typeof e==`string`&&e.length>0))]:[]}function lae(e){return!e||typeof e!=`object`?{}:Object.fromEntries(Object.entries(e).filter(e=>e[0].length>0&&typeof e[1]==`boolean`))}function uae(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 gv(e){return{projectExpandedById:e.projectExpandedById===void 0?(()=>{let t={},n=hv(e.collapsedProjectCwds),r=hv(e.expandedProjectCwds);for(let e of n)t[mv(e)]=!1;for(let e of r)t[mv(e)]=!0;return!Array.isArray(e.collapsedProjectCwds)&&r.length>0&&(t[fv]=!1),t})():lae(e.projectExpandedById),projectOrder:e.projectOrder===void 0?hv(e.projectOrderCwds).map(mv):hv(e.projectOrder),pinnedProjectKeys:hv(e.pinnedProjectKeys),hiddenProjectKeys:hv(e.hiddenProjectKeys),pinnedThreadKeys:hv(e.pinnedThreadKeys),threadLastVisitedAtById:uae(e.threadLastVisitedAtById),threadChangedFilesExpandedById:e.threadChangedFilesExpansionVersion===lv?fae(e.threadChangedFilesExpandedById):{},defaultAdvertisedEndpointKey:typeof e.defaultAdvertisedEndpointKey==`string`&&e.defaultAdvertisedEndpointKey.length>0?e.defaultAdvertisedEndpointKey:null}}function dae(){if(typeof window>`u`)return dv;try{let e=window.localStorage.getItem(cv);if(!e){for(let e of uv){let t=window.localStorage.getItem(e);if(t)return gv(JSON.parse(t))}return dv}return gv(JSON.parse(e))}catch{return dv}}function fae(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 pae(e){if(!(typeof window>`u`))try{let t=Object.fromEntries(Object.entries(e.projectExpandedById).filter(([e])=>e!==fv));if(window.localStorage.setItem(cv,JSON.stringify({projectExpandedById:t,projectOrder:e.projectOrder,pinnedProjectKeys:e.pinnedProjectKeys,hiddenProjectKeys:e.hiddenProjectKeys,pinnedThreadKeys:e.pinnedThreadKeys,threadLastVisitedAtById:e.threadLastVisitedAtById,defaultAdvertisedEndpointKey:e.defaultAdvertisedEndpointKey,threadChangedFilesExpansionVersion:lv,threadChangedFilesExpandedById:e.threadChangedFilesExpandedById})),!pv){pv=!0;for(let e of uv)window.localStorage.removeItem(e)}}catch{}}var _v=new ju(pae,{wait:500});function mae(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 hae(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 gae(e,t,n,r){let i=e.threadChangedFilesExpandedById[t]??{};return i[n]===r?e:{...e,threadChangedFilesExpandedById:{...e.threadChangedFilesExpandedById,[t]:{...i,[n]:r}}}}function _ae(e,t){let n=t&&t.length>0?t:null;return e.defaultAdvertisedEndpointKey===n?e:{...e,defaultAdvertisedEndpointKey:n}}function vv(e,t){for(let n of t){let t=e[n];if(t!==void 0)return t}return e[fv]??!0}function vae(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 yv(e,t,n){return e.includes(t)===n?null:n?[...e,t]:e.filter(e=>e!==t)}function yae(e,t,n){let r=yv(e.pinnedProjectKeys,t,n),i=n?yv(e.hiddenProjectKeys,t,!1):null;return r===null&&i===null?e:{...e,pinnedProjectKeys:r??e.pinnedProjectKeys,hiddenProjectKeys:i??e.hiddenProjectKeys}}function bae(e,t,n){let r=yv(e.hiddenProjectKeys,t,n),i=n?yv(e.pinnedProjectKeys,t,!1):null;return r===null&&i===null?e:{...e,hiddenProjectKeys:r??e.hiddenProjectKeys,pinnedProjectKeys:i??e.pinnedProjectKeys}}function xae(e,t,n){let r=yv(e.pinnedThreadKeys,t,n);return r===null?e:{...e,pinnedThreadKeys:r}}function Sae(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 bv=Go(e=>({...dae(),markThreadVisited:(t,n)=>e(e=>mae(e,t,n)),markThreadUnread:(t,n)=>e(e=>hae(e,t,n)),setThreadChangedFilesExpanded:(t,n,r)=>e(e=>gae(e,t,n,r)),setDefaultAdvertisedEndpointKey:t=>e(e=>_ae(e,t)),setProjectExpanded:(t,n)=>e(e=>vae(e,t,n)),setProjectPinned:(t,n)=>e(e=>yae(e,t,n)),setProjectHidden:(t,n)=>e(e=>bae(e,t,n)),setThreadPinned:(t,n)=>e(e=>xae(e,t,n)),reorderProjects:(t,n,r)=>e(e=>Sae(e,t,n,r))}));bv.subscribe(e=>_v.maybeExecute(e)),typeof window<`u`&&typeof window.addEventListener==`function`&&window.addEventListener(`beforeunload`,()=>{_v.flush()});var xv=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},Cae=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},wae=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},Sv=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},Cv=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},wv=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},Tv=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=K(`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},Ev=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=K(`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},Tae=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},Eae=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},Dae=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},Oae=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},kae=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},Aae=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},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=K(`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},Ov=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=K(`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},jae=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]=_),_},Mae=`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==`,Nae=e=>{let t=(0,X.c)(3),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,Y.jsx)(`image`,{href:Mae,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},kv=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},Av=e=>{let t=(0,X.c)(7),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,Y.jsxs)(`linearGradient`,{id:`muse__a`,x1:`13.878%`,x2:`89.144%`,y1:`55.934%`,y2:`58.694%`,children:[(0,Y.jsx)(`stop`,{offset:`0%`,stopColor:`#0064E1`}),(0,Y.jsx)(`stop`,{offset:`40%`,stopColor:`#0064E1`}),(0,Y.jsx)(`stop`,{offset:`83%`,stopColor:`#0073EE`}),(0,Y.jsx)(`stop`,{offset:`100%`,stopColor:`#0082FB`})]}),t[0]=n):n=t[0];let r,i,a,o;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,Y.jsxs)(`defs`,{children:[n,(0,Y.jsxs)(`linearGradient`,{id:`muse__b`,x1:`54.315%`,x2:`54.315%`,y1:`82.782%`,y2:`39.307%`,children:[(0,Y.jsx)(`stop`,{offset:`0%`,stopColor:`#0082FB`}),(0,Y.jsx)(`stop`,{offset:`100%`,stopColor:`#0064E0`})]})]}),i=(0,Y.jsx)(`path`,{fill:`#0081FB`,d:`M27.651 112.136c0 9.775 2.146 17.28 4.95 21.82 3.677 5.947 9.16 8.466 14.751 8.466 7.211 0 13.808-1.79 26.52-19.372 10.185-14.092 22.186-33.874 30.26-46.275l13.675-21.01c9.499-14.591 20.493-30.811 33.1-41.806C161.196 4.985 172.298 0 183.47 0c18.758 0 36.625 10.87 50.3 31.257C248.735 53.584 256 81.707 256 110.729c0 17.253-3.4 29.93-9.187 39.946-5.591 9.686-16.488 19.363-34.818 19.363v-27.616c15.695 0 19.612-14.422 19.612-30.927 0-23.52-5.484-49.623-17.564-68.273-8.574-13.23-19.684-21.313-31.907-21.313-13.22 0-23.859 9.97-35.815 27.75-6.356 9.445-12.882 20.956-20.208 33.944l-8.066 14.289c-16.203 28.728-20.307 35.271-28.408 46.07-14.2 18.91-26.324 26.076-42.287 26.076-18.935 0-30.91-8.2-38.325-20.556C2.973 139.413 0 126.202 0 111.148l27.651.988Z`}),a=(0,Y.jsx)(`path`,{fill:`url(#muse__a)`,d:`M21.802 33.206C34.48 13.666 52.774 0 73.757 0 85.91 0 97.99 3.597 110.605 13.897c13.798 11.261 28.505 29.805 46.853 60.368l6.58 10.967c15.881 26.459 24.917 40.07 30.205 46.49 6.802 8.243 11.565 10.7 17.752 10.7 15.695 0 19.612-14.422 19.612-30.927l24.393-.766c0 17.253-3.4 29.93-9.187 39.946-5.591 9.686-16.488 19.363-34.818 19.363-11.395 0-21.49-2.475-32.654-13.007-8.582-8.083-18.615-22.443-26.334-35.352l-22.96-38.352C118.528 64.08 107.96 49.73 101.845 43.23c-6.578-6.988-15.036-15.428-28.532-15.428-10.923 0-20.2 7.666-27.963 19.39L21.802 33.206Z`}),o=(0,Y.jsx)(`path`,{fill:`url(#muse__b)`,d:`M73.312 27.802c-10.923 0-20.2 7.666-27.963 19.39-10.976 16.568-17.698 41.245-17.698 64.944 0 9.775 2.146 17.28 4.95 21.82L9.027 149.482C2.973 139.413 0 126.202 0 111.148 0 83.772 7.514 55.24 21.802 33.206 34.48 13.666 52.774 0 73.757 0l-.445 27.802Z`}),t[1]=r,t[2]=i,t[3]=a,t[4]=o):(r=t[1],i=t[2],a=t[3],o=t[4]);let s;return t[5]===e?s=t[6]:(s=(0,Y.jsxs)(`svg`,{...e,viewBox:`0 0 256 171`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:[r,i,a,o]}),t[5]=e,t[6]=s),s},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=K(`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},Fae=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=K(`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},Iae=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=K(`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 jv(e){let t=z_(e);switch(t.icon){case`github`:return{providerName:e?.name||t.providerName,terminology:B_(e),Icon:xv};case`gitlab`:return{providerName:e?.name||t.providerName,terminology:B_(e),Icon:Sv};case`azure-devops`:return{providerName:e?.name||t.providerName,terminology:B_(e),Icon:Cv};case`bitbucket`:return{providerName:e?.name||t.providerName,terminology:B_(e),Icon:wv};case`change-request`:return{providerName:e?.name||t.providerName,terminology:B_(e),Icon:Ih}}}function Mv(e){if(!e)return null;let t=Date.parse(e);return Number.isFinite(t)?t:null}function Nv(...e){for(let t of e){let e=Mv(t??void 0);if(e!==null)return e}return null}function Lae(e){if(e.latestUserMessageAt){let t=Mv(e.latestUserMessageAt);if(t!==null)return t}let t=null;for(let n of e.messages??[]){if(n.role!==`user`)continue;let e=Mv(n.createdAt);e!==null&&(t=t===null?e:Math.max(t,e))}return t===null?Nv(e.updatedAt,e.createdAt)??-1/0:t}function Pv(e,t){return t===`created_at`?Nv(e.createdAt,e.updatedAt)??-1/0:Lae(e)}function Fv(e,t){return Vd(e,Ft(qt({timestamp:nu(Ui),id:nu(Xe)}),e=>({timestamp:Pv(e,t),id:e.id})))}function Iv(e,t,n){return Fv(e.filter(e=>e.projectId===t&&e.archivedAt===null),n)[0]??null}var Lv={file_read:`File read`,file_search:`File search`,file_change:`File change`,command:`Command run`,version_control:`Version control`,build_test:`Build or test`,mcp_tool:`MCP tool call`,subagent:`Subagent task`,web_search:`Web search`,web_fetch:`Web fetch`,task_plan:`Task or plan`,image_view:`Image view`,tool:`Tool call`},Rae=new Set(Object.keys(Lv)),zae=new Set([`read`,`readfile`,`read_file`,`view`,`viewfile`,`view_file`,`notebookread`,`notebook_read`,`openfile`,`open_file`]),Bae=new Set([`grep`,`glob`,`search`,`filesearch`,`file_search`,`codebasesearch`,`codebase_search`,`listdir`,`list_dir`,`list_directory`,`ls`]),Vae=new Set([`edit`,`write`,`multiedit`,`multi_edit`,`notebookedit`,`notebook_edit`,`applypatch`,`apply_patch`,`patch`,`createfile`,`create_file`,`strreplace`,`str_replace`,`deletefile`,`delete_file`]),Hae=new Set([`bash`,`shell`,`terminal`,`exec`,`execute`,`execcommand`,`exec_command`,`runcommand`,`run_command`,`local_shell`]),Uae=new Set([`task`,`agent`,`subagent`,`sub_agent`]),Wae=new Set([`webfetch`,`web_fetch`,`fetch`,`fetchurl`,`fetch_url`,`browse`,`openurl`,`open_url`]),Gae=new Set([`todowrite`,`todo_write`,`todoread`,`todo_read`,`exitplanmode`,`exit_plan_mode`,`updateplan`,`update_plan`,`task_create`,`task_update`,`task_list`,`task_get`,`task_current`,`task_propose`,`taskcreate`,`taskupdate`,`tasklist`,`taskget`]),Kae=new Set([`cd`,`echo`,`printf`,`pwd`,`true`,`false`,`time`]),qae=new Set([`cat`,`head`,`tail`,`less`,`more`,`bat`,`nl`,`jq`,`wc`]),Jae=new Set([`grep`,`egrep`,`fgrep`,`rg`,`ag`,`ack`,`find`,`fd`,`ls`,`tree`,`which`]),Yae=new Set([`git`,`gh`,`jj`,`hg`,`svn`,`glab`]),Xae=new Set(`pnpm.npm.npx.yarn.bun.bunx.vitest.jest.vp.tsc.tsgo.eslint.oxlint.biome.prettier.ruff.pytest.make.cargo.gradle.mvn.xcodebuild.swift.pip.uv.poetry`.split(`.`)),Zae=new Set([`curl`,`wget`,`http`,`httpie`]),Qae=/\|\||&&|;|\||\n/u,$ae=/^[A-Za-z_][A-Za-z0-9_]*=\S*\s+/u,eoe=/\d?>>?\s*(?<target>[^\s|;&]+)/gu,toe=new Set([`/dev/null`,`&1`,`&2`]);function noe(e){return Lv[e]}function roe(e){let t=e?.command??e?.cmd;if(typeof t!=`string`)return;let n=t.trim();return n.length>0?n:void 0}function ioe(e){for(let t of e.matchAll(eoe)){let e=t.groups?.target;if(e&&!toe.has(e))return!0}return!1}function aoe(e){if(ioe(e))return`command`;let t=e.trim().replace($ae,``).split(/\s+/u)[0]?.replace(/^.*\//u,``).toLowerCase();if(!(!t||Kae.has(t)))return qae.has(t)?`file_read`:Jae.has(t)?`file_search`:Yae.has(t)?`version_control`:Xae.has(t)?`build_test`:Zae.has(t)?`web_fetch`:`command`}function ooe(e){let t=new Set(e.split(Qae).map(aoe).filter(e=>e!==void 0));if(t.size===0||t.has(`command`))return`command`;let[n]=t;return t.size===1&&n?n:[...t].every(e=>e===`file_read`||e===`file_search`)?`file_search`:`command`}function soe(e){let t=e.toolName.trim().toLowerCase();if(t.startsWith(`mcp__`)||t.includes(`mcp`))return`mcp_tool`;if(Gae.has(t))return`task_plan`;if(Wae.has(t))return`web_fetch`;if(Uae.has(t)||t.includes(`agent`))return`subagent`;if(zae.has(t))return`file_read`;if(Bae.has(t))return`file_search`;if(Vae.has(t))return`file_change`;if(Hae.has(t)||t.includes(`bash`)||t.includes(`shell`)||t.includes(`terminal`)||t.includes(`command`)){let t=roe(e.toolInput);return t?ooe(t):`command`}return t.includes(`websearch`)||t.includes(`web_search`)?`web_search`:t.includes(`webfetch`)||t.includes(`web_fetch`)?`web_fetch`:t.includes(`todo`)||t.includes(`plan`)?`task_plan`:t.includes(`edit`)||t.includes(`write`)||t.includes(`patch`)||t.includes(`replace`)||t.includes(`create`)||t.includes(`delete`)?`file_change`:t.includes(`read`)||t.includes(`view`)?`file_read`:t.includes(`grep`)||t.includes(`glob`)?`file_search`:t.includes(`image`)?`image_view`:`tool`}function Rv(e){return typeof e==`object`&&e&&!Array.isArray(e)?e:void 0}function coe(e){return typeof e==`string`&&Rae.has(e)?e:void 0}function loe(e){let t=Rv(e);return coe(t?.toolCategory)??uoe(t)}function uoe(e){let t=Rv(e),n=t?.toolName;if(!(typeof n!=`string`||n.trim().length===0))return soe({toolName:n,toolInput:Rv(t?.input)})}var doe=[{value:Au.make(`codex`),label:`Codex`,available:!0},{value:Au.make(`claudeAgent`),label:`Claude`,available:!0},{value:Au.make(`opencode`),label:`OpenCode`,available:!0,pickerSidebarBadge:`new`},{value:Au.make(`cursor`),label:`Cursor`,available:!0,pickerSidebarBadge:`new`},{value:Au.make(`grok`),label:`Grok`,available:!0,pickerSidebarBadge:`new`},{value:Au.make(`muse`),label:`Muse Code`,available:!0,pickerSidebarBadge:`new`}];function zv(e){return e.subagent!==void 0}function foe(e){let t=e.subagent;if(t)return t.status===`running`?t.updates.at(-1)?.text:t.resultSummary}function Bv(e){return e.tone===`tool`||e.tone===`error`||e.command!==void 0&&e.command.trim().length>0||e.requestKind!==void 0?!0:e.itemType!==void 0&&ff(e.itemType)}function poe(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 Vv(e){if(e.tone===`error`)return!0;let t=e.toolLifecycleStatus;if(t===`failed`||t===`declined`)return!0;if(!Bv(e))return!1;let n=[];e.detail&&n.push(e.detail),e.command&&n.push(e.command);let r=n.join(`
|
|
10
|
+
`).replace(Nd,``)}function Fd(e,t){return t=Pd(t),Pd(e)===t}function Id(e,t,n,r,a,o){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||It(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&It(e,``+r);break;case`className`:bt(e,`class`,r);break;case`tabIndex`:bt(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:bt(e,n,r);break;case`style`:zt(e,r,o);break;case`data`:if(t!==`object`){bt(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=Ut(``+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`&&Id(e,t,`name`,a.name,a,null),Id(e,t,`formEncType`,a.formEncType,a,null),Id(e,t,`formMethod`,a.formMethod,a,null),Id(e,t,`formTarget`,a.formTarget,a,null)):(Id(e,t,`encType`,a.encType,a,null),Id(e,t,`method`,a.method,a,null),Id(e,t,`target`,a.target,a,null)));if(r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=Ut(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=Wt);break;case`onScroll`:r!=null&&Sd(`scroll`,e);break;case`onScrollEnd`:r!=null&&Sd(`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=Ut(``+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`:Sd(`beforetoggle`,e),Sd(`toggle`,e),yt(e,`popover`,r);break;case`xlinkActuate`:xt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:xt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:xt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:xt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:xt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:xt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:xt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:xt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:xt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:yt(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=Vt.get(n)||n,yt(e,n,r))}}function Ld(e,t,n,r,a,o){switch(n){case`style`:zt(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`?It(e,r):(typeof r==`number`||typeof r==`bigint`)&&It(e,``+r);break;case`onScroll`:r!=null&&Sd(`scroll`,e);break;case`onScrollEnd`:r!=null&&Sd(`scrollend`,e);break;case`onClick`:r!=null&&(e.onclick=Wt);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(!ft.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[Qe]||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,``):yt(e,n,r)}}}function Rd(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:Sd(`error`,e),Sd(`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:Id(e,t,o,s,n,null)}}a&&Id(e,t,`srcSet`,n.srcSet,n,null),r&&Id(e,t,`src`,n.src,n,null);return;case`input`:Sd(`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:Id(e,t,r,d,n,null)}}jt(e,o,c,l,u,s,a,!1);return;case`select`:for(a in Sd(`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:Id(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&Nt(e,!!r,n,!0):Nt(e,!!r,t,!1);return;case`textarea`:for(s in Sd(`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:Id(e,t,s,c,n,null)}Ft(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:Id(e,t,l,r,n,null)}return;case`dialog`:Sd(`beforetoggle`,e),Sd(`toggle`,e),Sd(`cancel`,e),Sd(`close`,e);break;case`iframe`:case`object`:Sd(`load`,e);break;case`video`:case`audio`:for(r=0;r<yd.length;r++)Sd(yd[r],e);break;case`image`:Sd(`error`,e),Sd(`load`,e);break;case`details`:Sd(`toggle`,e);break;case`embed`:case`source`:case`link`:Sd(`error`,e),Sd(`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:Id(e,t,u,r,n,null)}return;default:if(Bt(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&Ld(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&Id(e,t,c,r,n,null))}function zd(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)||Id(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&&Id(e,t,p,m,r,f)}}At(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)||Id(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&&Id(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?Nt(e,!!n,n?[]:``,!1):Nt(e,!!n,t,!0)):Nt(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:Id(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&&Id(e,t,s,a,r,o)}Pt(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:Id(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:Id(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)&&Id(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:Id(e,t,u,p,r,m)}return;default:if(Bt(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&Ld(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||Ld(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&Id(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||Id(e,t,f,p,r,m)}function Bd(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function Vd(){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&&Bd(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&&Bd(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 Hd=null,Ud=null;function Wd(e){return e.nodeType===9?e:e.ownerDocument}function Gd(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 Kd(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 qd(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 Jd=null;function Yd(){var e=window.event;return e&&e.type===`popstate`?e===Jd?!1:(Jd=e,!0):(Jd=null,!1)}var Xd=typeof setTimeout==`function`?setTimeout:void 0,Zd=typeof clearTimeout==`function`?clearTimeout:void 0,Qd=typeof Promise==`function`?Promise:void 0,$d=typeof queueMicrotask==`function`?queueMicrotask:Qd===void 0?Xd:function(e){return Qd.resolve(null).then(e).catch(nee)};function nee(e){setTimeout(function(){throw e})}function ef(e){return e===`head`}function tf(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),Fp(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)gf(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,gf(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[it]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&gf(e.ownerDocument.body);n=i}while(n);Fp(t)}function nf(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 rf(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`:rf(n),at(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function af(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[it])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=df(e.nextSibling),e===null)break}return null}function of(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=df(e.nextSibling),e===null))return null;return e}function sf(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=df(e.nextSibling),e===null))return null;return e}function cf(e){return e.data===`$?`||e.data===`$~`}function lf(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function uf(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 df(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 ff=null;function pf(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return df(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function mf(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 hf(e,t,n){switch(t=Wd(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 gf(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);at(e)}var _f=new Map,vf=new Set;function yf(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var bf=P.d;P.d={f:xf,r:Sf,D:J,C:Tf,L:Ef,m:Df,X:kf,S:Of,M:Af};function xf(){var e=bf.f(),t=Su();return e||t}function Sf(e){var t=st(e);t!==null&&t.tag===5&&t.type===`form`?Ss(t):bf.r(e)}var Cf=typeof document>`u`?null:document;function wf(e,t,n){var r=Cf;if(r&&typeof t==`string`&&t){var i=kt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),vf.has(i)||(vf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Rd(t,`link`,e),ut(t),r.head.appendChild(t)))}}function J(e){bf.D(e),wf(`dns-prefetch`,e,null)}function Tf(e,t){bf.C(e,t),wf(`preconnect`,e,t)}function Ef(e,t,n){bf.L(e,t,n);var r=Cf;if(r&&e&&t){var i=`link[rel="preload"][as="`+kt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+kt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+kt(n.imageSizes)+`"]`)):i+=`[href="`+kt(e)+`"]`;var a=i;switch(t){case`style`:a=Mf(e);break;case`script`:a=If(e)}_f.has(a)||(e=f({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),_f.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Nf(a))||t===`script`&&r.querySelector(Lf(a))||(t=r.createElement(`link`),Rd(t,`link`,e),ut(t),r.head.appendChild(t)))}}function Df(e,t){bf.m(e,t);var n=Cf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+kt(r)+`"][href="`+kt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=If(e)}if(!_f.has(a)&&(e=f({rel:`modulepreload`,href:e},t),_f.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Lf(a)))return}r=n.createElement(`link`),Rd(r,`link`,e),ut(r),n.head.appendChild(r)}}}function Of(e,t,n){bf.S(e,t,n);var r=Cf;if(r&&e){var i=lt(r).hoistableStyles,a=Mf(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Nf(a)))s.loading=5;else{e=f({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=_f.get(a))&&Bf(e,n);var c=o=r.createElement(`link`);ut(c),Rd(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,zf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function kf(e,t){bf.X(e,t);var n=Cf;if(n&&e){var r=lt(n).hoistableScripts,i=If(e),a=r.get(i);a||(a=n.querySelector(Lf(i)),a||(e=f({src:e,async:!0},t),(t=_f.get(i))&&Vf(e,t),a=n.createElement(`script`),ut(a),Rd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Af(e,t){bf.M(e,t);var n=Cf;if(n&&e){var r=lt(n).hoistableScripts,i=If(e),a=r.get(i);a||(a=n.querySelector(Lf(i)),a||(e=f({src:e,async:!0,type:`module`},t),(t=_f.get(i))&&Vf(e,t),a=n.createElement(`script`),ut(a),Rd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function jf(e,t,n,r){var a=(a=U.current)?yf(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=Mf(n.href),n=lt(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=Mf(n.href);var o=lt(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(Nf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),_f.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},_f.set(e,n),o||Ff(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=If(n),n=lt(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 Mf(e){return`href="`+kt(e)+`"`}function Nf(e){return`link[rel="stylesheet"][`+e+`]`}function Pf(e){return f({},e,{"data-precedence":e.precedence,precedence:null})}function Ff(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}),Rd(t,`link`,n),ut(t),e.head.appendChild(t))}function If(e){return`[src="`+kt(e)+`"]`}function Lf(e){return`script[async]`+e}function Rf(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+kt(n.href)+`"]`);if(r)return t.instance=r,ut(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`),ut(r),Rd(r,`style`,a),zf(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Mf(n.href);var o=e.querySelector(Nf(a));if(o)return t.state.loading|=4,t.instance=o,ut(o),o;r=Pf(n),(a=_f.get(a))&&Bf(r,a),o=(e.ownerDocument||e).createElement(`link`),ut(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Rd(o,`link`,r),t.state.loading|=4,zf(o,n.precedence,e),t.instance=o;case`script`:return o=If(n.src),(a=e.querySelector(Lf(o)))?(t.instance=a,ut(a),a):(r=n,(a=_f.get(o))&&(r=f({},n),Vf(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),ut(a),Rd(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,zf(r,n.precedence,e));return t.instance}function zf(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 Bf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Vf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Hf=null;function Uf(e,t,n){if(Hf===null){var r=new Map,i=Hf=new Map;i.set(n,r)}else i=Hf,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[it]||a[Ze]||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 Wf(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Gf(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 Kf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function qf(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=Mf(r.href),a=t.querySelector(Nf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=Xf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,ut(a);return}a=t.ownerDocument||t,r=Pf(r),(i=_f.get(i))&&Bf(r,i),a=a.createElement(`link`),ut(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Rd(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=Xf.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var Jf=0;function Yf(e,t){return e.stylesheets&&e.count===0&&Qf(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&Qf(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&Jf===0&&(Jf=62500*Vd());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Qf(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>Jf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Xf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Qf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Zf=null;function Qf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Zf=new Map,t.forEach($f,e),Zf=null,Xf.call(e))}function $f(e,t){if(!(t.state.loading&4)){var n=Zf.get(e);if(n)var r=n.get(null);else{n=new Map,Zf.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=Xf.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 ep={$$typeof:b,Provider:null,Consumer:null,_currentValue:F,_currentValue2:F,_threadCount:0};function tp(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=Ve(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ve(0),this.hiddenUpdates=Ve(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 np(e,t,n,r,i,a,o,s,c,l,u,d){return e=new tp(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=Qr(3,null,null,t),e.current=a,a.stateNode=e,t=ea(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},Na(a),e}function rp(e){return e?(e=Xr,e):Xr}function ip(e,t,n,r,i,a){i=rp(i),r.context===null?r.context=i:r.pendingContext=i,r=Fa(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=Ia(e,r,t),n!==null&&(_u(n,e,t),La(n,e,t))}function ap(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function op(e,t){ap(e,t),(e=e.alternate)&&ap(e,t)}function sp(e){if(e.tag===13||e.tag===31){var t=qr(e,67108864);t!==null&&_u(t,e,67108864),op(e,67108864)}}function cp(e){if(e.tag===13||e.tag===31){var t=hu();t=Ke(t);var n=qr(e,t);n!==null&&_u(n,e,t),op(e,t)}}var lp=!0;function up(e,t,n,r){var i=N.T;N.T=null;var a=P.p;try{P.p=2,fp(e,t,n,r)}finally{P.p=a,N.T=i}}function dp(e,t,n,r){var i=N.T;N.T=null;var a=P.p;try{P.p=8,fp(e,t,n,r)}finally{P.p=a,N.T=i}}function fp(e,t,n,r){if(lp){var i=pp(r);if(i===null)Dd(e,t,r,mp,n),Tp(e,r);else if(Dp(i,e,t,n,r))r.stopPropagation();else if(Tp(e,r),t&4&&-1<wp.indexOf(e)){for(;i!==null;){var a=st(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=Ie(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-Oe(o);s.entanglements[1]|=c,o&=~c}od(a),!(Il&6)&&(ru=ge()+500,sd(0,!1))}}break;case 31:case 13:s=qr(a,2),s!==null&&_u(s,a,2),Su(),op(a,2)}if(a=pp(r),a===null&&Dd(e,t,r,mp,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Dd(e,t,r,null,n)}}function pp(e){return e=Kt(e),hp(e)}var mp=null;function hp(e){if(mp=null,e=ot(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 mp=e,null}function gp(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(_e()){case ve:return 2;case ye:return 8;case be:case xe:return 32;case Se:return 268435456;default:return 32}default:return 32}}var _p=!1,vp=null,yp=null,bp=null,xp=new Map,Sp=new Map,Cp=[],wp=`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 Tp(e,t){switch(e){case`focusin`:case`focusout`:vp=null;break;case`dragenter`:case`dragleave`:yp=null;break;case`mouseover`:case`mouseout`:bp=null;break;case`pointerover`:case`pointerout`:xp.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:Sp.delete(t.pointerId)}}function Ep(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=st(t),t!==null&&sp(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Dp(e,t,n,r,i){switch(t){case`focusin`:return vp=Ep(vp,e,t,n,r,i),!0;case`dragenter`:return yp=Ep(yp,e,t,n,r,i),!0;case`mouseover`:return bp=Ep(bp,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return xp.set(a,Ep(xp.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,Sp.set(a,Ep(Sp.get(a)||null,e,t,n,r,i)),!0}return!1}function Op(e){var t=ot(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,Ye(e.priority,function(){cp(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,Ye(e.priority,function(){cp(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 kp(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=pp(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Gt=r,n.target.dispatchEvent(r),Gt=null}else return t=st(n),t!==null&&sp(t),e.blockedOn=n,!1;t.shift()}return!0}function Ap(e,t,n){kp(e)&&n.delete(t)}function jp(){_p=!1,vp!==null&&kp(vp)&&(vp=null),yp!==null&&kp(yp)&&(yp=null),bp!==null&&kp(bp)&&(bp=null),xp.forEach(Ap),Sp.forEach(Ap)}function Mp(e,n){e.blockedOn===n&&(e.blockedOn=null,_p||(_p=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,jp)))}var Np=null;function Pp(e){Np!==e&&(Np=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Np===e&&(Np=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(hp(r||n)===null)continue;break}var a=st(n);a!==null&&(e.splice(t,3),t-=3,bs(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Fp(e){function t(t){return Mp(t,e)}vp!==null&&Mp(vp,e),yp!==null&&Mp(yp,e),bp!==null&&Mp(bp,e),xp.forEach(t),Sp.forEach(t);for(var n=0;n<Cp.length;n++){var r=Cp[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Cp.length&&(n=Cp[0],n.blockedOn===null);)Op(n),n.blockedOn===null&&Cp.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[Qe]||null;if(typeof a==`function`)o||Pp(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[Qe]||null)s=o.formAction;else if(hp(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Pp(n)}}}function ree(){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 Ip(e){this._internalRoot=e}Lp.prototype.render=Ip.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;ip(n,hu(),e,t,null,null)},Lp.prototype.unmount=Ip.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ip(e.current,2,null,e,null,null),Su(),t[$e]=null}};function Lp(e){this._internalRoot=e}Lp.prototype.unstable_scheduleHydration=function(e){if(e){var t=Je();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Cp.length&&t!==0&&t<Cp[n].priority;n++);Cp.splice(n,0,e),n===0&&Op(e)}};var Rp=n.version;if(Rp!==`19.2.6`)throw Error(i(527,Rp,`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 zp={bundleType:0,version:`19.2.6`,rendererPackageName:`react-dom`,currentDispatcherRef:N,reconcilerVersion:`19.2.6`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Bp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Bp.isDisabled&&Bp.supportsFiber)try{Te=Bp.inject(zp),Ee=Bp}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=Us,s=Ws,c=Gs;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=np(e,1,!1,null,null,n,r,null,o,s,c,ree),e[$e]=t.current,Td(e),new Ip(t)}})),wf=Yn(((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=Cf()})),J=b(he(),1),Tf=typeof window<`u`?J.useLayoutEffect:J.useEffect;function Ef(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 Df(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 Of(e){let t=J.useRef(null);return J.useImperativeHandle(e,()=>t.current,[]),t}function kf(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 Af=4,jf=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 Nf(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 Pf(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=Nf(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=Lf(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=Lf(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=Rf(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=Rf(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=Rf(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=Lf(n.fullPath??n.from);e.kind=jf,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=Lf(n.fullPath??n.from);e.kind=Af,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)Pf(e,t,r,s,i,a,o)}function Ff(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 If(e){if(e.pathless)for(let t of e.pathless)If(t);if(e.static)for(let t of e.static.values())If(t);if(e.staticInsensitive)for(let t of e.staticInsensitive.values())If(t);if(e.dynamic?.length){e.dynamic.sort(Ff);for(let t of e.dynamic)If(t)}if(e.optional?.length){e.optional.sort(Ff);for(let t of e.optional)If(t)}if(e.wildcard?.length){e.wildcard.sort(Ff);for(let t of e.wildcard)If(t)}}function Lf(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 Rf(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 zf(e,t){let n=Lf(`/`),r=new Uint16Array(6);for(let t of e)Pf(!1,r,t,1,n,0);If(n),t.masksTree=n,t.flatCache=kf(1e3)}function Bf(e,t){e||=`/`;let n=t.flatCache.get(e);if(n)return n;let r=Gf(e,t.masksTree);return t.flatCache.set(e,r),r}function Vf(e,t,n,r,i){e||=`/`,r||=`/`;let a=t?`case\0${e}`:e,o=i.singleCache.get(a);return o||(o=Lf(`/`),Pf(t,new Uint16Array(6),{from:e},1,o,0),i.singleCache.set(a,o)),Gf(r,o,n)}function Hf(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=Gf(e,t.segmentTree,n)}catch(e){if(e instanceof URIError)a=null;else throw e}return a&&(a.branch=qf(a.route)),t.matchCache.set(r,a),a}function Uf(e){return e===`/`?e:e.replace(/\/{1,}$/,``)}function Wf(e,t=!1,n){let r=Lf(e.fullPath),i=new Uint16Array(6),a={},o={},s=0;return Pf(t,i,e,1,r,0,e=>{if(n?.(e,s),e.id in a&&qo(),a[e.id]=e,s!==0&&e.path){let t=Uf(e.fullPath);(!o[t]||e.fullPath.endsWith(`/`))&&(o[t]=e)}s++}),If(r),{processedTree:{segmentTree:r,singleCache:kf(1e3),matchCache:kf(1e3),flatCache:null,masksTree:null},routesById:a,routesByPath:o}}function Gf(e,t,n=!1){let r=e.split(`/`),i=Yf(e,r,t,n);if(!i)return null;let[a]=Kf(e,r,i);return{route:i.node.route,rawParams:a}}function Kf(e,t,n){let r=Jf(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===Af)break;if(u.kind===jf){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 qf(e){let t=[e];for(;e.parentRoute;)e=e.parentRoute,t.push(e);return t.reverse(),t}function Jf(e){let t=Array(e.depth+1);do t[e.depth]=e,e=e.parent;while(e);return t}function Yf(e,t,n,r){if(e===`/`&&n.index)return{node:n.index,skipped:0};let i=!Jr(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&&!$f(l,n))continue;if(i.parse){if(!Qf(e,t,n))continue;_=n.rawParams,g=n.extract}r&&i.route&&i.kind!==Af&&$f(c,n)&&(c=n);let v=u===o;if(v&&(i.route&&(!a||i.kind===Af||i.kind===2)&&$f(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&&(Qf(e,t,n)||(r=!1)),r){if(!m&&!h&&!d&&Zf(p,o))return n;$f(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+Xf(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+Xf(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+Xf(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+Xf(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 Xf(e,t){return 2**(e-t-1)}function Zf(e,t){return e===2**(t-1)-1}function Qf(e,t,n){let r,i;try{[r,i]=Kf(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 $f(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===Af)>(e.node.kind===Af)||t.node.kind===Af==(e.node.kind===Af)&&t.depth>e.depth))):!0}function ep(e){return tp(e.filter(e=>e!==void 0).join(`/`))}function tp(e){return e.replace(/\/{2,}/g,`/`)}function np(e){return e===`/`?e:e.replace(/^\/{1,}/,``)}function rp(e){let t=e.length;return t>1&&e[t-1]===`/`?e.replace(/\/{1,}$/,``):e}function ip(e){return rp(np(e))}function ap(e,t){return e?.endsWith(`/`)&&e!==`/`&&e!==`${t}/`?e.slice(0,-1):e}function op(e,t,n){return ap(e,n)===ap(t,n)}function sp({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&&Jr(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&&(Jr(s)===``?n===`never`&&s.pop():n===`always`&&s.push(``));let c=tp(s.join(`/`))||`/`;return o&&r&&r.set(o,c),c}function cp(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 lp(e,t,n){let r=t[e];return typeof r==`string`?e===`_splat`?/^[a-zA-Z0-9\-._~!/]*$/.test(r)?r:r.split(`/`).map(e=>dp(e,n)).join(`/`):dp(r,n):r}function up({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=Nf(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=lp(`_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=lp(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=lp(i,t,n)??``;l+=`/`+u+f+d;continue}}return e.endsWith(`/`)&&(l+=`/`),{usedParams:a,interpolatedPath:l||`/`,isMissingParams:i}}function dp(e,t){let n=encodeURIComponent(e);return t?.(n)??n}function fp(e){return e?.isNotFound===!0}function pp(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 mp(e){return e?e===`false`?!1:e===`true`?!0:e*0==0&&+e+``===e?+e:e:``}function hp(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]=mp(r):Array.isArray(t)?t.push(mp(r)):n[e]=[t,mp(r)]}return n}var gp=vp(JSON.parse),_p=yp(JSON.stringify,JSON.parse);function vp(e){return t=>{t[0]===`?`&&(t=t.substring(1));let n=hp(t);for(let t in n){let r=n[t];if(typeof r==`string`)try{n[t]=e(r)}catch{}}return n}}function yp(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=pp(e,r);return t?`?${t}`:``}}var bp=`__root__`;function xp(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 Sp(e){return e instanceof Response&&!!e.options}var Cp=e=>{if(!e.rendered)return e.rendered=!0,e.onReady?.()},wp=e=>e.stores.matchesId.get().some(t=>e.stores.matchStores.get(t)?.get()._forcePending),Tp=(e,t)=>!!(e.preload&&!e.router.stores.matchStores.has(t)),Ep=(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},Dp=(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},Op=(e,t,n)=>{if(!(!Sp(n)&&!fp(n)))throw Sp(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:Sp(n)?`redirected`:fp(n)?`notFound`:r.status===`pending`?`success`:r.status,context:Ep(e,t.index),isFetching:!1,error:n})),fp(n)&&!n.routeId&&(n.routeId=t.routeId),t._nonReactive.loadPromise?.resolve()),Sp(n)&&(e.rendered=!0,n.options._fromLocation=e.location,n.redirectHandled=!0,n=e.router.resolveRedirect(n)),n)},kp=(e,t)=>{let n=e.router.getMatch(t);return!!(!n||n._nonReactive.dehydrated)},Ap=(e,t,n)=>{let r=Ep(e,n);e.updateMatch(t,e=>({...e,context:r}))},jp=(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,Op(e,e.router.getMatch(r),n);try{a.options.onError?.(n)}catch(t){n=t,Op(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&&!Sp(n)&&!fp(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&&!Tp(e,t)&&(n.options.loader||n.options.beforeLoad||Hp(n))&&typeof i==`number`&&i!==1/0&&(n.options.pendingComponent??e.router.options?.defaultPendingComponent)){let t=setTimeout(()=>{Cp(e)},i);r._nonReactive.pendingTimeout=t}},Np=(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`)&&Op(e,n,n.error)};return r._nonReactive.beforeLoadPromise?r._nonReactive.beforeLoadPromise.then(i):i()},Pp=(e,t,n,r)=>{let i=e.router.getMatch(t),a=i._nonReactive.loadPromise;i._nonReactive.loadPromise=ol(()=>{a?.resolve(),a=void 0});let{paramsError:o,searchError:s}=i;o&&jp(e,n,o),s&&jp(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=ol();let f={...Ep(e,n,!1),...i.__routeContext},{search:p,params:m,cause:h}=i,g=Tp(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}(Sp(r)||fp(r))&&(u(),jp(e,n,r)),e.router.batch(()=>{u(),e.updateMatch(t,e=>({...e,__beforeLoadContext:r})),d()})},y;try{if(y=r.options.beforeLoad(_),Kd(y))return u(),y.catch(t=>{jp(e,n,t)}).then(v)}catch(t){u(),jp(e,n,t)}v(y)},Fp=(e,t)=>{let{id:n,routeId:r}=e.matches[t],i=e.router.looseRoutesById[r],a=()=>s(),o=()=>Pp(e,n,t,i),s=()=>{if(kp(e,n))return;let t=Np(e,n,i);return Kd(t)?t.then(o):o()};return a()},ree=(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}))},Ip=(e,t,n,r,i)=>{let a=t[r-1],{params:o,loaderDeps:s,abortController:c,cause:l}=e.router.getMatch(n),u=Ep(e,r),d=Tp(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}},Lp=async(e,t,n,r,i)=>{try{let a=e.router.getMatch(n);try{Vp(i);let o=i.options.loader,s=typeof o==`function`?o:o?.handler,c=s?.(Ip(e,t,n,r,i)),l=!!s&&Kd(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;Op(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:Ep(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:Ep(e,r)}));return}let s=a._nonReactive.minPendingPromise;s&&await s,fp(t)&&await i.options.notFoundComponent?.preload?.(),Op(e,e.router.getMatch(n),t);try{i.options.onError?.(t)}catch(t){o=t,Op(e,e.router.getMatch(n),t)}!Sp(o)&&!fp(o)&&await Vp(i,[`errorComponent`]),e.updateMatch(n,t=>({...t,error:o,context:Ep(e,r),status:`error`,isFetching:!1}))}}catch(t){let r=e.router.getMatch(n);r&&(r._nonReactive.loaderPromise=void 0),Op(e,r,t)}},Rp=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(Ip(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 Lp(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){Sp(t)&&await e.router.navigate(t.options)}})()):g!==`success`||o?await Lp(e,t,i,n,d):Ap(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(kp(e,i)){if(!e.router.getMatch(i))return e.matches[n];Ap(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=Tp(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&&Op(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=ol(),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 zp(e){let t=e,n=[];wp(t.router)&&Cp(t);let r;for(let e=0;e<t.matches.length;e++){try{let n=Fp(t,e);Kd(n)&&await n}catch(e){if(Sp(e))throw e;if(fp(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?Dp(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(Rp(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(Sp(e))throw e;fp(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=Dp(t,l);e===void 0&&qo();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 Vp(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 Vp(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=ree(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=Cp(t);if(Kd(d)&&await d,l)throw l;if(t.serialError&&!t.preload&&!t.onReady)throw t.serialError;return t.matches}function Bp(e,t){let n=t.map(t=>e.options[t]?.preload?.()).filter(Boolean);if(n.length!==0)return Promise.all(n)}function Vp(e,t=Up){!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===Up?(()=>{if(e._componentsPromise===void 0){let t=Bp(e,Up);t?e._componentsPromise=t.then(()=>{e._componentsLoaded=!0,e._componentsPromise=void 0}):e._componentsLoaded=!0}return e._componentsPromise})():Bp(e,t);return e._lazyPromise?e._lazyPromise.then(n):n()}function Hp(e){for(let t of Up)if(e.options[t]?.preload)return!0;return!1}var Up=[`component`,`errorComponent`,`pendingComponent`,`notFoundComponent`];function iee(e){return{input:({url:t})=>{for(let n of e)t=Wp(n,t);return t},output:({url:t})=>{for(let n=e.length-1;n>=0;n--)t=Gp(e[n],t);return t}}}function aee(e){let t=ip(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=ep([`/`,t,e.pathname]),e)}}function Wp(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 Gp(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 oee(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(()=>Kp(o,_.get())),x=r(()=>Kp(s,v.get())),S=r(()=>Kp(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=kf(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){qp(e,o,_,n,i)}function j(e){qp(e,s,v,n,i)}function M(e){qp(e,c,y,n,i)}return k}function Kp(e,t){let n=[];for(let r of t){let t=e.get(r);t&&n.push(t.get())}return n}function qp(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)}ql(n.get(),a)||n.set(a)})}var Jp=`__TSR_index`,Yp=`popstate`,Xp=`beforeunload`;function see(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=$p(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[Jp];i=Zp(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[Jp];i=Zp(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[Jp]!==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 Zp(e,t){t||={};let n=em();return{...t,key:n,__TSR_key:n,[Jp]:e}}function Qp(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??(()=>$p(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){let e=em();t.history.replaceState({[Jp]: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=$p(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[Jp]-l.state[Jp],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=see({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(Xp,S,{capture:!0}),t.removeEventListener(Yp,x)},onBlocked:()=>{u&&l!==u&&(l=u)},getBlockers:a,setBlockers:o,notifyOnIndexChange:!1});return t.addEventListener(Xp,S,{capture:!0}),t.addEventListener(Yp,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 cee(e){let t=e?.window??(typeof document<`u`?window:void 0);return Qp({window:t,parseLocation:()=>{let e=t.location.hash.split(`#`).slice(1),n=e[0]??`/`,r=t.location.search,i=e.slice(1);return $p(`${n}${r}${i.length===0?``:`#${i.join(`#`)}`}`,t.history.state)},createHref:e=>`${t.location.pathname}${t.location.search}#${e}`})}function lee(e){let t=e.replace(/[\x00-\x1f\x7f]/g,``);return t.startsWith(`//`)&&(t=`/`+t.replace(/^\/+/,``)),t}function $p(e,t){let n=lee(e),r=n.indexOf(`#`),i=n.indexOf(`?`),a=em();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||{[Jp]:0,key:a,__TSR_key:a}}}function em(){return(Math.random()+1).toString(36).substring(7)}function tm(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 nm=new WeakMap,uee=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=cp(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=Qp()),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=kf(1e3),e=this.buildRouteTree(),this.setRoutes(e)}if(!this.stores&&this.latestLocation){let e=this.getStoreConfig(this);this.batch=e.batch,this.stores=oee(fee(this.latestLocation),e),Cee(this)}let a=!1,o=this.options.basepath??`/`,s=this.options.rewrite;if(r||n!==o||i!==s){this.basepath=o;let e=[],t=ip(o);t&&t!==`/`&&e.push(aee({basepath:o})),s&&e.push(s),this.rewrite=e.length===0?void 0:e.length===1?e[0]:iee(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=Wf(this.routeTree,this.options.caseSensitive,(e,t)=>{e.init({originalIndex:t})});return this.options.routeMasks&&zf(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:qs(e).path,external:!1,searchStr:o,search:te(t?.search,i),hash:qs(r.slice(1)).path,state:Nd(t?.state,a)}}let o=new URL(i,this.origin),s=Wp(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:qs(s.pathname).path,external:!!this.rewrite&&s.origin!==this.origin,searchStr:l,search:te(t?.search,c),hash:qs(s.hash.slice(1)).path,state:Nd(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)=>sp({base:e,to:t.includes(`//`)?tp(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=>pee({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 i=t.unsafeRelative===`path`?n.pathname:t.from??r.fullPath,a=t.to?`${t.to}`:void 0,o=r.search,s=Object.assign(Object.create(null),r.params),c=a?.charCodeAt(0)===47?`/`:this.resolvePathWithBase(i,`.`),l=a?this.resolvePathWithBase(c,a):c,u=t.params===!1||t.params===null?Object.create(null):(t.params??!0)===!0?s:Object.assign(s,yd(t.params,s)),d=this.routesByPath[rp(l)],f;if(d)f=this.getRouteBranch(d);else if(l.includes(`$`))f=[];else{let e=this.getMatchedRoutes(l);f=e.matchedRoutes,this.options.notFoundRoute&&(!e.foundRoute||e.foundRoute.path!==`/`&&e.routeParams[`**`])&&(f=[...f,this.options.notFoundRoute])}if(f.length&&af(u))for(let e of f){let t=e.options.params?.stringify??e.options.stringifyParams;if(t)try{Object.assign(u,t(u))}catch{}}let p=e.leaveParams?l:qs(up({path:l,params:u,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path,m=o;if(e._includeValidateSearch&&this.options.search?.strict){let e={};f.forEach(t=>{if(t.options.validateSearch)try{Object.assign(e,im(t.options.validateSearch,{...e,...m}))}catch{}}),m=e}m=mee({search:m,dest:t,destRoutes:f,_includeValidateSearch:e._includeValidateSearch}),m=te(o,m);let h=this.options.stringifySearch(m),g=t.hash===!0?n.hash:t.hash?yd(t.hash,n.hash):void 0,_=g?`#${g}`:``,v=t.state===!0?n.state:t.state?yd(t.state,n.state):{};v=Nd(n.state,v);let y=`${p}${h}${_}`,b,x,S=!1;if(this.rewrite){let e=new URL(y,this.origin),t=Gp(this.rewrite,e);b=e.href.replace(e.origin,``),t.origin===this.origin?x=t.pathname+t.search+t.hash:(x=t.href,S=!0)}else b=Ga(y),x=b;return{publicHref:x,href:b,pathname:p,search:m,searchStr:h,state:v,hash:g??``,external:S,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=Bf(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,yd(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=Ns(n.state,this.latestLocation.state);return e.forEach(e=>{delete n.state[e]}),t},a=rp(this.latestLocation.href)===rp(n.href),o=this.commitLocationPromise;if(this.commitLocationPromise=ol(()=>{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=$p(a,{__TSR_index:e?t:t+1}),r=new URL(n.pathname,this.origin);o.to=Wp(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(yo(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?nm.set(this.latestLocation,t):nm.delete(this.latestLocation);let n=this.latestLocation,r=tm(n,this.stores.resolvedLocation.get());this.stores.redirect.get()||this.emit({type:`onBeforeNavigate`,...r}),this.emit({type:`onBeforeLoad`,...r}),await zp({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){Sp(e)?(n=e,this.navigate({...n.options,replace:!0,ignoreBlocker:!0})):fp(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(tm(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&&yo(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=Vp,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 zp({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(Sp(e))return e.options.reloadDocument?void 0:await this.preloadRoute({...e.options,_fromLocation:t});fp(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=Vf(r.pathname,t?.caseSensitive??!1,t?.fuzzy??!1,i.pathname,this.processedTree);return!a||e.params&&!Ns(a.rawParams,e.params,{partial:!0})?!1:t?.includeSearch??!0?Ns(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??_p,parseSearch:e.parseSearch??gp,protocolAllowlist:e.protocolAllowlist??ys}),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=qf(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[`**`]:rp(e.pathname))&&(this.options.notFoundRoute?a=[...a,this.options.notFoundRoute]:o=!0);let s=o?gee(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=im(r.options.validateSearch,{...n})??void 0;u={...n,...e},d={...i,...e},f=void 0}catch(e){let r=e;if(e instanceof rm||(r=new rm(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}=up({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{am(r,b)}catch(e){if(x=fp(e)||Sp(e)?e:new dee(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:te(y?y.search:v.search,u),_strictSearch:d};else{let e=r.options.loader||r.options.beforeLoad||r.lazyFn||Hp(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?te(y.search,u):u,_strictSearch:d,searchError:void 0,status:e,isFetching:!1,error:void 0,paramsError:x,__routeContext:void 0,_nonReactive:{loadPromise:ol()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:S,loaderDeps:y?Nd(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?te(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=Jr(t),i={...e.search};for(let e of t)try{Object.assign(i,im(e.options.validateSearch,i))}catch{}let a=Jr(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{am(n,e)}catch{}c=e}return{matchedRoutes:t,fullPath:r.fullPath,search:i,params:c}}},rm=class extends Error{},dee=class extends Error{};function fee(e){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:`idle`,resolvedLocation:void 0,location:e,matches:[],statusCode:200}}function im(e,t){if(e==null)return{};if(`~standard`in e){let n=e[`~standard`].validate(t);if(n instanceof Promise)throw new rm(`Async validation not supported`);if(n.issues)throw new rm(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 pee({pathname:e,routesById:t,processedTree:n}){let r=Object.create(null),i=rp(e),a,o=Hf(i,n,!0);return o&&(a=o.route,Object.assign(r,o.rawParams)),{matchedRoutes:o?.branch||[t.__root__],routeParams:r,foundRoute:a}}function mee({search:e,dest:t,destRoutes:n,_includeValidateSearch:r}){return hee(n)(e,t,r??!1)}function hee(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,...im(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:yd(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 gee(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 bp}function am(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 _ee(){try{return sessionStorage}catch{return}}var vee=`tsr-scroll-restoration-v1_3`,om=_ee();function yee(){try{return JSON.parse(om?.getItem(`tsr-scroll-restoration-v1_3`)||`{}`)}catch{return{}}}function bee(){try{om?.setItem(vee,JSON.stringify(sm))}catch{}}var sm=yee(),cm=`data-scroll-restoration-id`,xee=e=>e.state.__TSR_key||e.href;function See(e){let t=e.getAttribute(cm);if(t)return`[${cm}="${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 lm=!1,um=`window`;function dm(e){try{return typeof e==`function`?e():document.querySelector(e)}catch{}}function fm(e){let t=[];for(let n of e){if(n===um)continue;let e=dm(n);e&&t.push(e)}return t}function Cee(e,t){if((t??e.options.scrollRestoration)&&(e.isScrollRestoring=!0),e.isScrollRestorationSetup)return;e.isScrollRestorationSetup=!0,lm=!1;let n=e.options.getScrollRestorationKey||xee,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(!(lm||!e.isScrollRestoring))if(t.target===document)i(um,scrollX,scrollY);else{let e=t.target;i(e,e.scrollLeft,e.scrollTop)}},o=t=>{if(!e.isScrollRestoring)return;let n=sm[t]||={};for(let[e,t]of r)e===um?n[um]=t:e.isConnected&&(n[See(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())),bee()}),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=sm[l];if(e){let t=sm[c];for(let n in e){if(n===um){if(o)continue}else{let e=dm(n);if(!e||o&&a&&(s??=fm(a),s.includes(e)))continue}t||=sm[c]={},t[n]??=e[n]}}}lm=!0;try{let n=t.toLocation.hash,r=t.toLocation.state.__hashScrollIntoViewOptions??!0,l=!1;if(o){let o=nm.get(t.toLocation),u=n&&r&&(o===`PUSH`||o===`REPLACE`),d=e.isScrollRestoring?sm[c]:void 0;if(d)for(let e in d){let{scrollX:t,scrollY:n}=d[e];if(e===um){if(u)continue;scrollTo({top:n,left:t,behavior:i}),l=!0}else{let r=dm(e);r&&(r.scrollLeft=t,r.scrollTop=n)}}if(!l&&!n){let e={top:0,left:0,behavior:i};if(scrollTo(e),a){s??=fm(a);for(let t of s)t.scrollTo(e)}}}!l&&n&&r&&document.getElementById(n)?.scrollIntoView(r)}finally{lm=!1}})}var wee=`Error preloading route! ☝️`,pm=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=bp:this.parentRoute||qo();let r=n?bp:t?.path;r&&r!==`/`&&(r=np(r));let i=t?.id||r,a=n?bp:ep([this.parentRoute.id===`__root__`?``:this.parentRoute.id,i]);r===`__root__`&&(r=`/`),a!==`__root__`&&(a=ep([`/`,a]));let o=a===`__root__`?`/`:ep([this.parentRoute.fullPath,r]);this._path=r,this._id=a,this._fullPath=o,this._to=rp(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=>xp({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.`)}},Tee=class extends pm{constructor(e){super(e)}},Y=od();function mm(e){let t=e.errorComponent??hm;return(0,Y.jsx)(Eee,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:n,reset:r})=>n?J.createElement(t,{error:n,reset:r}):e.children})}var Eee=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 hm({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 Dee({children:e,fallback:t=null}){return gm()?(0,Y.jsx)(J.Fragment,{children:e}):(0,Y.jsx)(J.Fragment,{children:t})}function gm(){return J.useSyncExternalStore(Oee,()=>!0,()=>!1)}function Oee(){return()=>{}}var _m=(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))(_m||{});function kee({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 Aee(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 vm=[],ym=0,{link:bm,unlink:jee,propagate:Mee,checkDirty:xm,shallowPropagate:Sm}=kee({update(e){return e._update()},notify(e){vm[wm++]=e,e.flags&=~_m.Watching},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=_m.Mutable|_m.Dirty,Om(e))}}),Cm=0,wm=0,Tm,Em=0;function Dm(e){try{++Em,e()}finally{--Em||km()}}function Om(e){let t=e.depsTail,n=t===void 0?e.deps:t.nextDep;for(;n!==void 0;)n=jee(n,e)}function km(){if(!(Em>0)){for(;Cm<wm;){let e=vm[Cm];vm[Cm++]=void 0,e.notify()}Cm=0,wm=0}}function Am(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?_m.None:_m.Mutable,get(){return Tm!==void 0&&bm(i,Tm,ym),i._snapshot},subscribe(e){let t=Aee(e),n={current:!1},r=Nee(()=>{i.get(),n.current?t.next?.(i._snapshot):n.current=!0});return{unsubscribe:()=>{r.stop()}}},_update(e){let a=Tm,o=t?.compare??Object.is;if(n)Tm=i,++ym,i.depsTail=void 0;else if(e===void 0)return!1;n&&(i.flags=_m.Mutable|_m.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{Tm=a,n&&(i.flags&=~_m.RecursedCheck),Om(i)}}};return n?(i.flags=_m.Mutable|_m.Dirty,i.get=function(){let e=i.flags;if(e&_m.Dirty||e&_m.Pending&&xm(i.deps,i)){if(i._update()){let e=i.subs;e!==void 0&&Sm(e)}}else e&_m.Pending&&(i.flags=e&~_m.Pending);return Tm!==void 0&&bm(i,Tm,ym),i._snapshot}):i.set=function(e){if(i._update(e)){let e=i.subs;e!==void 0&&(Mee(e),Sm(e),km())}},i}function Nee(e){let t=()=>{let t=Tm;Tm=n,++ym,n.depsTail=void 0,n.flags=_m.Watching|_m.RecursedCheck;try{return e()}finally{Tm=t,n.flags&=~_m.RecursedCheck,Om(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:_m.Watching|_m.RecursedCheck,notify(){let e=this.flags;e&_m.Dirty||e&_m.Pending&&xm(this.deps,this)?t():this.flags=_m.Watching},stop(){this.flags=_m.None,this.depsTail=void 0,Om(this)}};return t(),n}function jm(e){return yu({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function Mm(e){let{select:t,...n}=e;return yu({...n,select:e=>t?t(e.loaderDeps):e.loaderDeps})}function Nm(e){return yu({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function Pm(e){let t=No();return J.useCallback(n=>t.navigate({...n,from:n.from??e?.from}),[e?.from,t])}function Fm(e){return yu({...e,select:t=>e.select?e.select(t.context):t.context})}var Im=b(ci(),1);function Pee(e,t){let n=No(),r=Of(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=gm(),z=J.useMemo(()=>e,[n,e.from,e._fromLocation,e.hash,e.to,e.search,e.params,e.state,e.mask,e.unsafeRelative]),B=oc(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(()=>Bee(H,U,n.history,v),[v,U,H,n.history]),ee=J.useMemo(()=>{if(W?.external)return yo(W.href,n.protocolAllowlist)?void 0:W.href;if(!Vee(s)&&!(typeof s!=`string`||s.indexOf(`:`)===-1))try{return new URL(s),yo(s,n.protocolAllowlist)?void 0:s}catch{}},[s,W,n.protocolAllowlist]),G=J.useMemo(()=>{if(ee)return!1;if(o?.exact){if(!op(B.pathname,V.pathname,n.basepath))return!1}else{let e=ap(B.pathname,n.basepath),t=ap(V.pathname,n.basepath);if(!(e.startsWith(t)&&(e.length===t.length||e[t.length]===`/`)))return!1}return(o?.includeSearch??!0)&&!Ns(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,ee,R,V.hash,V.pathname,V.search,n.basepath]),te=G?yd(i,{})??Fee:Lm,ne=G?Lm:yd(a,{})??Lm,re=[b,te.className,ne.className].filter(Boolean).join(` `),ie=(y||te.style||ne.style)&&{...y,...te.style,...ne.style},[ae,oe]=J.useState(!1),se=J.useRef(!1),ce=e.reloadDocument||ee?!1:c??n.options.defaultPreload,le=l??n.options.defaultPreloadDelay??0,ue=J.useCallback(()=>{n.preloadRoute({...z,_builtLocation:V}).catch(e=>{console.warn(e),console.warn(wee)})},[n,z,V]);Df(r,J.useCallback(e=>{e?.isIntersecting&&ue()},[ue]),zee,{disabled:!!v||ce!==`viewport`}),J.useEffect(()=>{se.current||!v&&ce===`render`&&(ue(),se.current=!0)},[v,ue,ce]);let de=e=>{let t=e.currentTarget.getAttribute(`target`),r=_===void 0?t:_;if(!v&&!Hee(e)&&!e.defaultPrevented&&(!r||r===`_self`)&&e.button===0){e.preventDefault(),(0,Im.flushSync)(()=>{oe(!0)});let t=n.subscribe(`onResolved`,()=>{t(),oe(!1)});n.navigate({...z,replace:f,resetScroll:m,hashScrollIntoView:d,startTransition:p,viewTransition:h,ignoreBlocker:D})}};if(ee)return{...L,ref:r,href:ee,...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 fe=e=>{if(v||ce!==`intent`)return;if(!le){ue();return}let t=e.currentTarget;if(Rm.has(t))return;let n=setTimeout(()=>{Rm.delete(t),ue()},le);Rm.set(t,n)},pe=e=>{v||ce!==`intent`||ue()},me=e=>{if(v||!ce||!le)return;let t=e.currentTarget,n=Rm.get(t);n&&(clearTimeout(n),Rm.delete(t))};return{...L,...te,...ne,href:W?.href,ref:r,onClick:zm([x,de]),onBlur:zm([S,me]),onFocus:zm([C,fe]),onMouseEnter:zm([w,fe]),onMouseLeave:zm([T,me]),onTouchStart:zm([E,pe]),disabled:!!v,target:_,...ie&&{style:ie},...re&&{className:re},...v&&Iee,...G&&Lee,...R&&ae&&Ree}}var Lm={},Fee={className:`active`},Iee={role:`link`,"aria-disabled":!0},Lee={"data-status":`active`,"aria-current":`page`},Ree={"data-transitioning":`transitioning`},Rm=new WeakMap,zee={rootMargin:`100px`},zm=e=>t=>{for(let n of e)if(n){if(t.defaultPrevented)return;n(t)}};function Bee(e,t,n,r){if(!r)return t?{href:e,external:!0}:{href:n.createHref(e)||`/`,external:!1}}function Vee(e){if(typeof e!=`string`)return!1;let t=e.charCodeAt(0);return t===47?e.charCodeAt(1)!==47:t===46}var Bm=J.forwardRef((e,t)=>{let{_asChild:n,...r}=e,{type:i,...a}=Pee(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 Hee(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}var Uee=class extends pm{constructor(e){super(e),this.useMatch=e=>yu({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>Fm({...e,from:this.id}),this.useSearch=e=>Nm({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>yl({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>Mm({...e,from:this.id}),this.useLoaderData=e=>jm({...e,from:this.id}),this.useNavigate=()=>Pm({from:this.fullPath}),this.Link=J.forwardRef((e,t)=>(0,Y.jsx)(Bm,{ref:t,from:this.fullPath,...e}))}};function Wee(e){return new Uee(e)}var Gee=class extends Tee{constructor(e){super(e),this.useMatch=e=>yu({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>Fm({...e,from:this.id}),this.useSearch=e=>Nm({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>yl({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>Mm({...e,from:this.id}),this.useLoaderData=e=>jm({...e,from:this.id}),this.useNavigate=()=>Pm({from:this.fullPath}),this.Link=J.forwardRef((e,t)=>(0,Y.jsx)(Bm,{ref:t,from:this.fullPath,...e}))}};function Kee(e){return new Gee(e)}function Vm(e){return new qee(e,{silent:!0}).createRoute}var qee=class{constructor(e,t){this.path=e,this.createRoute=e=>{let t=Wee(e);return t.isRoot=!1,t},this.silent=t?.silent}};function Jee(e){let t=No(),n=`not-found-${oc(t.stores.location,e=>e.pathname)}-${oc(t.stores.status,e=>e)}`;return(0,Y.jsx)(mm,{getResetKey:()=>n,onCatch:(t,n)=>{if(fp(t))e.onCatch?.(t,n);else throw t},errorComponent:({error:t})=>{if(fp(t))return e.fallback?.(t);throw t},children:e.children})}function Yee(){return(0,Y.jsx)(`p`,{children:`Not Found`})}function Hm(e){return(0,Y.jsx)(Y.Fragment,{children:e.children})}function Xee(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)(Yee,{})}var Zee=J.memo(function({matchId:e}){let t=No(),n=t.stores.matchStores.get(e);n||qo();let r=oc(t.stores.loadedAt,e=>e),i=oc(n,e=>e);return(0,Y.jsx)(Qee,{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 Qee({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:Hm,f=s?mm:Hm,p=l?Jee:Hm;return(0,Y.jsxs)(i.isRoot?i.options.shellComponent??Hm:Hm,{children:[(0,Y.jsx)(Nu.Provider,{value:t,children:(0,Y.jsx)(d,{fallback:o,children:(0,Y.jsx)(f,{getResetKey:()=>n,errorComponent:s||hm,onCatch:(e,t)=>{if(fp(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)(Dee,{fallback:o,children:(0,Y.jsx)(ete,{matchId:t})}):(0,Y.jsx)(ete,{matchId:t})})})})}),r.parentRouteId===`__root__`?(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)($ee,{resetKey:n}),(e.options.scrollRestoration,null)]}):null]})}function $ee({resetKey:e}){let t=No(),n=J.useRef(void 0);return Tf(()=>{let e=t.latestLocation.href;(n.current===void 0||n.current!==e)&&(t.emit({type:`onRendered`,...tm(t.stores.location.get(),t.stores.resolvedLocation.get())}),n.current=e)},[t.latestLocation.state.__TSR_key,e,t]),null}var ete=J.memo(function({matchId:e}){let t=No(),n=(e,n)=>t.getMatch(e.id)?._nonReactive[n]??e._nonReactive[n],r=t.stores.matchStores.get(e);r||qo();let i=oc(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)(Um,{})},[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=ol();n._nonReactive.minPendingPromise=t,setTimeout(()=>{t.resolve(),n._nonReactive.minPendingPromise=void 0},e)}}throw n(i,`loadPromise`)}if(i.status===`notFound`)return fp(i.error)||qo(),Xee(t,o,i.error);if(i.status===`redirected`)throw Sp(i.error)||qo(),n(i,`loadPromise`);if(i.status===`error`)throw i.error;return c}),Um=J.memo(function(){let e=No(),t=J.useContext(Nu),n,r=!1,i;{let a=t?e.stores.matchStores.get(t):void 0;[n,r]=oc(a,e=>[e?.routeId,e?.globalNotFound??!1]),i=oc(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||qo(),Xee(e,a,void 0);if(!i)return null;let s=(0,Y.jsx)(Zee,{matchId:i});return n===`__root__`?(0,Y.jsx)(J.Suspense,{fallback:o,children:s}):s});function tte(){let e=No(),t=J.useRef({router:e,mounted:!1}),[n,r]=J.useState(!1),i=oc(e.stores.isLoading,e=>e),a=oc(e.stores.hasPending,e=>e),o=Ef(i),s=i||n||a,c=Ef(s),l=i||a,u=Ef(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 rp(e.latestLocation.publicHref)!==rp(n.publicHref)&&e.commitLocation({...n,replace:!0}),()=>{t()}},[e,e.history]),Tf(()=>{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]),Tf(()=>{o&&!i&&e.emit({type:`onLoad`,...tm(e.stores.location.get(),e.stores.resolvedLocation.get())})},[o,e,i]),Tf(()=>{u&&!l&&e.emit({type:`onBeforeRouteMount`,...tm(e.stores.location.get(),e.stores.resolvedLocation.get())})},[l,u,e]),Tf(()=>{if(c&&!s){let t=tm(e.stores.location.get(),e.stores.resolvedLocation.get());e.emit({type:`onResolved`,...t}),Dm(()=>{e.stores.status.set(`idle`),e.stores.resolvedLocation.set(e.stores.location.get())})}},[s,c,e]),null}function nte(){let e=No(),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?Hm:J.Suspense,{fallback:n,children:[(0,Y.jsx)(tte,{}),(0,Y.jsx)(rte,{})]});return e.options.InnerWrap?(0,Y.jsx)(e.options.InnerWrap,{children:r}):r}function rte(){let e=No(),t=oc(e.stores.firstId,e=>e),n=oc(e.stores.loadedAt,e=>e),r=t?(0,Y.jsx)(Zee,{matchId:t}):null;return(0,Y.jsx)(Nu.Provider,{value:t,children:e.options.disableGlobalCatchBoundary?r:(0,Y.jsx)(mm,{getResetKey:()=>n,errorComponent:hm,onCatch:void 0,children:r})})}var ite=e=>({createMutableStore:Am,createReadonlyStore:Am,batch:Dm}),ate=e=>new ote(e),ote=class extends uee{constructor(e){super(e,ite)}};function ste({router:e,children:t,...n}){af(n)&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});let r=(0,Y.jsx)(Kc.Provider,{value:e,children:t});return e.options.Wrap?(0,Y.jsx)(e.options.Wrap,{children:r}):r}function cte({router:e,...t}){return(0,Y.jsx)(ste,{router:e,...t,children:(0,Y.jsx)(nte,{})})}function Wm(e){let t=No(),n=(0,J.useRef)(void 0);return oc(t.stores.location,r=>{let i=e?.select?e.select(r):r;if(e?.structuralSharing??t.options.defaultStructuralSharing){let e=Nd(n.current,i);return n.current=e,e}return i})}function lte(){return oc(No().stores.location,e=>e.state.__TSR_index!==0)}var ute=b(wf(),1),Gm=typeof window<`u`&&(window.desktopBridge!==void 0||window.nativeApi!==void 0);function dte(e){return{_tag:`Value`,value:e}}function fte(e,t){return{_tag:`Record`,keys:e,value:t}}function pte(e,t){return{_tag:`Array`,length:e,value:t}}r(`SourceError`);var mte=g(`effect/ConfigProvider`,{defaultValue:()=>xte()}),hte={...na,toJSON(){return{_id:`ConfigProvider`}}},gte=e=>e;function _te(e,t){let n=Object.create(hte);return n.state=e,n.load=t,n}function vte(e,t){let n={_tag:`Source`,get:e,transform:t};return _te(n,e=>n.get(n.transform(e)))}function yte(e){return vte(e,gte)}function bte(e,t){return e===``&&!t?void 0:e}function xte(e){let t=e?.env??{APP_VERSION:`0.1.22`,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=Ste(t);return yte(e=>on(wte(r,t,e,n)))}function Ste(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 Cte=/^(0|[1-9][0-9]*)$/;function wte(e,t,n,r){let i=n.map(String).join(`_`),a=bte(Object.hasOwn(t,i)?t[i]:void 0,r),o=Tte(e,n),s=o?.children?Object.keys(o.children):[];return s.length===0?a===void 0?void 0:dte(a):s.every(e=>Cte.test(e))?pte(Math.max(...s.map(e=>parseInt(e,10)))+1,a):fte(new Set(s),a)}function Tte(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 Km=`~effect/Config`,Ete=class{_tag=`ConfigError`;name=`ConfigError`;cause;constructor(e){this.cause=e}get message(){return this.cause.toString()}toString(){return`ConfigError(${this.message})`}},Dte={...ha({label:`Config`,evaluate(e){return this.parse(e.getRef(mte))}}),[Km]:Km,toJSON(){return{_id:`Config`}}};function Ote(e){let t=Object.create(Dte);return t.parse=(t,n=[])=>e(t,n),t}var qm=pd(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*qm(e,[...t,i]);n!==void 0&&Da(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*qm(e,[...t,i]));return r}}}),Jm=pd(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*Jm(r.type,t,[...n,e]);a!==void 0&&Da(i,e,a)}}if(e.indexSignatures.length>0&&r&&r._tag===`Record`)for(let a of e.indexSignatures){let e=Ri(a.parameter);for(let o of r.keys)if(!Object.hasOwn(i,o)&&e(o)){let e=yield*Jm(a.type,t,[...n,o]);e!==void 0&&Da(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*Jm(a,t,[...n,r]))}return i}case`Union`:return yield*qm(t,n);case`Suspend`:return yield*Jm(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 Ym(e,t){let n=Sf(e),r=_t(n),i=Zi(n.ast),a=typeof t==`string`?[t]:t??[];return Ote((e,t)=>{let n=[...t,...a];return Jm(i,e,n).pipe(Ds(e=>r(e).pipe(h(e=>new Ti(n.length>0?new ua(n,e):e)))),h(e=>new Ete(e)))})}var kte=(e,t,n)=>{let r=lf(e,t);return fi([r,Co.pipe(Ic(lf(Co,Co),tn(n)),Ic(r))])};function Ate(e){return Ym(Co,e)}var X=Ku(),Xm=`~effect/PartitionedSemaphore`,jte=e=>{let t=Math.max(0,e.permits);if(!Number.isFinite(t))return{[Xm]:Xm,capacity:t,available:on(t),take:()=>Hi,release:()=>on(t),withPermits:()=>e=>e,withPermit:()=>e=>e,withPermitsIfAvailable:()=>e=>Dl(e)};let n=t,r=0,i=ls(),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?Hi:Do(s=>{if(t<a){s(mc);return}if(n>=a){n-=a,s(Hi);return}let c=a-n;n>0&&(n=0),r+=c;let l=St(Xu(i,e),()=>{let t=new Set;return Cu(i,e,t),t}),u={permits:c,resume:()=>{d(),s(Hi)}},d=()=>{l.delete(u),l.size===0&&Cl(i,e)};return l.add(u),pf(()=>{d(),r-=u.permits,o(a-u.permits)})}),c=(e,t)=>n=>{if(t<=0)return n;let r=s(e,t);return gi(e=>Vs(e(r),()=>Vl(e(n),pf(()=>{o(t)}))))},l=e=>e<=0?!0:t<e||n<e?!1:(n-=e,!0);return{[Xm]:Xm,capacity:t,available:pf(()=>n),take:s,release:e=>pf(()=>o(e)),withPermits:c,withPermit:e=>c(e,1),withPermitsIfAvailable:e=>t=>e<=0?Dl(t):kr(()=>l(e)?Vl(Dl(t),pf(()=>{o(e)})):on(lt()))}},Mte=/-nightly\.\d{8}\.\d+$/;function Zm(e){return e.primaryServerVersion&&Mte.test(e.primaryServerVersion)?`Nightly`:e.fallbackStageLabel}function Nte(e){let t=Zm({primaryServerVersion:e.primaryServerVersion,fallbackStageLabel:e.fallbackStageLabel});return t===e.fallbackStageLabel?e.fallbackDisplayName:Oi({baseName:e.baseName,stageLabel:t})}function Pte(){return typeof window>`u`?null:window.desktopBridge?.getAppBranding?.()??null}var Qm=Pte(),$m=``,eh=$m===`latest`?$m:null,Fte=eh===`latest`?`Latest`:null,th=Qm?.baseName??`P4Code`,nh=Qm?.stageLabel??Fte??`Latest`,rh=Qm?.displayName??Oi({baseName:th,stageLabel:nh}),ih=`0.1.22`,Ite=Fl(`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`}]]),Lte=Fl(`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`}]]),ah=Fl(`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`}]]),oh=Fl(`arrow-down`,[[`path`,{d:`M12 5v14`,key:`s699le`}],[`path`,{d:`m19 12-7 7-7-7`,key:`1idqje`}]]),sh=Fl(`arrow-left`,[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]),Rte=Fl(`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`}]]),ch=Fl(`arrow-up`,[[`path`,{d:`m5 12 7-7 7 7`,key:`hav0vg`}],[`path`,{d:`M12 19V5`,key:`x0mq9r`}]]),lh=Fl(`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`}]]),uh=Fl(`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`}]]),zte=Fl(`box`,[[`path`,{d:`M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z`,key:`hh9hay`}],[`path`,{d:`m3.3 7 8.7 5 8.7-5`,key:`g66t2b`}],[`path`,{d:`M12 22V12`,key:`d0xqtd`}]]),Bte=Fl(`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`}]]),dh=Fl(`chevron-left`,[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]),fh=Fl(`chevrons-down-up`,[[`path`,{d:`m7 20 5-5 5 5`,key:`13a0gw`}],[`path`,{d:`m7 4 5 5 5-5`,key:`1kwcof`}]]),ph=Fl(`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`}]]),mh=Fl(`chevrons-up-down`,[[`path`,{d:`m7 15 5 5 5-5`,key:`1hf1tw`}],[`path`,{d:`m7 9 5-5 5 5`,key:`sgt6xg`}]]),hh=Fl(`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`}]]),Vte=Fl(`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`}]]),gh=Fl(`circle-check`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),Hte=Fl(`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`}]]),Ute=Fl(`circle-question-mark`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3`,key:`1u773s`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]),Wte=Fl(`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`}]]),Gte=Fl(`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`}]]),_h=Fl(`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`}]]),vh=Fl(`cloud`,[[`path`,{d:`M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z`,key:`p7xjir`}]]),Kte=Fl(`columns-3`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}],[`path`,{d:`M15 3v18`,key:`14nvp0`}]]),qte=Fl(`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`}]]),yh=Fl(`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`}]]),Jte=Fl(`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`}]]),bh=Fl(`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`}]]),xh=Fl(`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`}]]),Sh=Fl(`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`}]]),Ch=Fl(`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`}]]),wh=Fl(`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`}]]),Th=Fl(`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`}]]),Yte=Fl(`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`}]]),Eh=Fl(`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`}]]),Xte=Fl(`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`}]]),Dh=Fl(`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`}]]),Oh=Fl(`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`}]]),kh=Fl(`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`}]]),Ah=Fl(`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`}]]),jh=Fl(`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`}]]),Zte=Fl(`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`}]]),Mh=Fl(`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`}]]),Nh=Fl(`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`}]]),Qte=Fl(`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`}]]),$te=Fl(`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`}]]),Ph=Fl(`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`}]]),Fh=Fl(`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`}]]),Ih=Fl(`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`}]]),Lh=Fl(`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`}]]),Rh=Fl(`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`}]]),zh=Fl(`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`}]]),ene=Fl(`image`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`,key:`1xmnt7`}]]),Bh=Fl(`info`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 16v-4`,key:`1dtifu`}],[`path`,{d:`M12 8h.01`,key:`e9boi3`}]]),tne=Fl(`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`}]]),Vh=Fl(`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`}]]),Hh=Fl(`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`}]]),Uh=Fl(`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`}]]),nne=Fl(`list-filter`,[[`path`,{d:`M2 5h20`,key:`1fs1ex`}],[`path`,{d:`M6 12h12`,key:`8npq4p`}],[`path`,{d:`M9 19h6`,key:`456am0`}]]),Wh=Fl(`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`}]]),Gh=Fl(`list-tree`,[[`path`,{d:`M8 5h13`,key:`1pao27`}],[`path`,{d:`M13 12h8`,key:`h98zly`}],[`path`,{d:`M13 19h8`,key:`c3s6r1`}],[`path`,{d:`M3 10a2 2 0 0 0 2 2h3`,key:`1npucw`}],[`path`,{d:`M3 5v12a2 2 0 0 0 2 2h3`,key:`x1gjn2`}]]),rne=Fl(`list`,[[`path`,{d:`M3 5h.01`,key:`18ugdj`}],[`path`,{d:`M3 12h.01`,key:`nlz23k`}],[`path`,{d:`M3 19h.01`,key:`noohij`}],[`path`,{d:`M8 5h13`,key:`1pao27`}],[`path`,{d:`M8 12h13`,key:`1za7za`}],[`path`,{d:`M8 19h13`,key:`m83p4d`}]]),Kh=Fl(`loader-circle`,[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]]),qh=Fl(`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`}]]),ine=Fl(`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`}]]),Jh=Fl(`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`}]]),Yh=Fl(`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`}]]),Xh=Fl(`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`}]]),ane=Fl(`message-square-text`,[[`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`}],[`path`,{d:`M7 11h10`,key:`1twpyw`}],[`path`,{d:`M7 15h6`,key:`d9of3u`}],[`path`,{d:`M7 7h8`,key:`af5zfr`}]]),one=Fl(`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`}]]),Zh=Fl(`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`}]]),Qh=Fl(`minus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}]]),sne=Fl(`minimize`,[[`path`,{d:`M8 3v3a2 2 0 0 1-2 2H3`,key:`hohbtr`}],[`path`,{d:`M21 8h-3a2 2 0 0 1-2-2V3`,key:`5jw1f3`}],[`path`,{d:`M3 16h3a2 2 0 0 1 2 2v3`,key:`198tvr`}],[`path`,{d:`M16 21v-3a2 2 0 0 1 2-2h3`,key:`ph8mxp`}]]),$h=Fl(`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`}]]),eg=Fl(`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`}]]),tg=Fl(`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`}]]),cne=Fl(`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`}]]),lne=Fl(`panel-bottom`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M3 15h18`,key:`5xshup`}]]),une=Fl(`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`}]]),dne=Fl(`panel-left`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}]]),ng=Fl(`panel-right`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M15 3v18`,key:`14nvp0`}]]),rg=Fl(`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`}]]),fne=Fl(`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`}]]),ig=Fl(`pencil`,[[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}],[`path`,{d:`m15 5 4 4`,key:`1mk7zo`}]]),ag=Fl(`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`}]]),pne=Fl(`pin`,[[`path`,{d:`M12 17v5`,key:`bb1du9`}],[`path`,{d:`M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z`,key:`1nkz8b`}]]),mne=Fl(`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`}]]),og=Fl(`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`}]]),sg=Fl(`plus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]),hne=Fl(`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`}]]),cg=Fl(`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`}]]),lg=Fl(`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`}]]),ug=Fl(`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`}]]),gne=Fl(`scroll-text`,[[`path`,{d:`M15 12h-5`,key:`r7krc0`}],[`path`,{d:`M15 8h-5`,key:`1khuty`}],[`path`,{d:`M19 17V5a2 2 0 0 0-2-2H4`,key:`zz82l3`}],[`path`,{d:`M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3`,key:`1ph1d7`}]]),dg=Fl(`search`,[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]),_ne=Fl(`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`}]]),vne=Fl(`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`}]]),fg=Fl(`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`}]]),yne=Fl(`signal-high`,[[`path`,{d:`M2 20h.01`,key:`4haj6o`}],[`path`,{d:`M7 20v-4`,key:`j294jx`}],[`path`,{d:`M12 20v-8`,key:`i3yub9`}],[`path`,{d:`M17 20V8`,key:`1tkaf5`}]]),pg=Fl(`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`}]]),mg=Fl(`square-kanban`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M8 7v7`,key:`1x2jlm`}],[`path`,{d:`M12 7v4`,key:`xawao1`}],[`path`,{d:`M16 7v9`,key:`1hp2iy`}]]),hg=Fl(`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`}]]),gg=Fl(`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`}]]),_g=Fl(`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`}]]),vg=Fl(`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`}]]),yg=Fl(`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`}]]),bne=Fl(`tag`,[[`path`,{d:`M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z`,key:`vktsd0`}],[`circle`,{cx:`7.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`kqv944`}]]),bg=Fl(`terminal`,[[`path`,{d:`M12 19h8`,key:`baeox8`}],[`path`,{d:`m4 17 6-6-6-6`,key:`1yngyt`}]]),xg=Fl(`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`}]]),Sg=Fl(`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`}]]),Cg=Fl(`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`}]]),wg=Fl(`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`}]]),xne=Fl(`user`,[[`path`,{d:`M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2`,key:`975kel`}],[`circle`,{cx:`12`,cy:`7`,r:`4`,key:`17ys0d`}]]),Sne=Fl(`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`}]]),Tg=Fl(`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 Cne(){let[,e]=J.useState({});return J.useCallback(()=>{e({})},[])}var wne=(0,J.createContext)(null);function Tne(){return(0,J.useContext)(wne)?.defaultOptions??{}}var Ene=io();function Eg(e,t=e=>e,n={}){let r=n.equal??Dne;return(0,Ene.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 One(e,t,n=()=>({})){let r={...Tne().debouncer,...t},[i]=(0,J.useState)(()=>{let t=new ju(e,r);return t.Subscribe=function(e){let n=Eg(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=Eg(i.store,n);return(0,J.useMemo)(()=>({...i,state:a}),[i,a])}function kne(e,t,n){let[r,i]=(0,J.useState)(e),a=One(i,t,n);return[r,a.maybeExecute,a]}function Ane(e,t,n){let[r,i,a]=kne(e,t,n);return(0,J.useEffect)(()=>{i(e)},[e,i]),[r,a]}var jne=`\x1Bb`,Mne=`\x1Bf`,Nne=``,Pne=``,Fne=``,Ine={BracketLeft:[`[`],BracketRight:[`]`],Digit0:[`0`],Digit1:[`1`],Digit2:[`2`],Digit3:[`3`],Digit4:[`4`],Digit5:[`5`],Digit6:[`6`],Digit7:[`7`],Digit8:[`8`],Digit9:[`9`]};function Og(e){let t=e.toLowerCase();return t===`esc`?`escape`:t}function Lne(e){let t=new Set([Og(e.key)]),n=e.code?.match(/^Key([A-Z])$/)?.[1];n&&t.add(n.toLowerCase());let r=e.code?Ine[e.code]:void 0;if(!r)return t;for(let e of r)t.add(e);return t}function kg(e,t,n=navigator.platform){let r=kt(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 Rne(e,t,n=navigator.platform){return kg(e,t,n)?Lne(e).has(t.key):!1}function Ag(e){return e?.platform??navigator.platform}function jg(e){return{terminalFocus:!1,terminalOpen:!1,previewFocus:!1,previewOpen:!1,...e?.context}}function Mg(e,t){switch(e.type){case`identifier`:return e.name===`true`?!0:e.name===`false`?!1:!!t[e.name];case`not`:return!Mg(e.node,t);case`and`:return Mg(e.left,t)&&Mg(e.right,t);case`or`:return Mg(e.left,t)||Mg(e.right,t)}}function Ng(e,t){return e?Mg(e,t):!0}function zne(e,t=navigator.platform){let n=kt(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 Pg(e,t,n){let r=Ag(n),i=jg(n),a=new Set;for(let n=e.length-1;n>=0;--n){let o=e[n];if(!o||!Ng(o.whenAst,i))continue;let s=zne(o.shortcut,r);if(!a.has(s)&&(a.add(s),o.command===t))return o.shortcut}return null}function Fg(e,t,n,r){return Ig(e,t,r)===n}function Ig(e,t,n){let r=Ag(n),i=jg(n);for(let n=t.length-1;n>=0;--n){let a=t[n];if(a&&Ng(a.whenAst,i)&&Rne(e,a.shortcut,r))return a.command}return null}function Bne(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 Lg(e,t=navigator.platform){let n=Bne(e.key),r=kt(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 Rg(e,t,n){let r=typeof n==`string`?{platform:n}:n,i=Ag(r),a=Pg(e,t,r);return a?Lg(a,i):null}function Vne(e){return an[e]??null}function zg(e){let t=an.indexOf(e);return t===-1?null:t}function Hne(e){return e===`thread.previous`?`previous`:e===`thread.next`?`next`:null}function Une(e,t,n){let r=Ag(n);for(let i of an){let a=Pg(t,i,n);if(a&&kg(e,a,r))return!0}return!1}function Wne(e){return Ie[e]??null}function Gne(e){let t=Ie.indexOf(e);return t===-1?null:t}function Kne(e,t,n){return Fg(e,t,`terminal.toggle`,n)}function qne(e,t,n){return Fg(e,t,`terminal.split`,n)}function Jne(e,t,n){return Fg(e,t,`terminal.splitVertical`,n)}function Yne(e,t,n){return Fg(e,t,`terminal.new`,n)}function Xne(e,t,n){return Fg(e,t,`terminal.close`,n)}function Zne(e,t,n){return Fg(e,t,`diff.toggle`,n)}function Qne(e,t,n){return Fg(e,t,`editor.openFavorite`,n)}function $ne(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:kt(t)&&n===`k`&&e.metaKey&&!e.ctrlKey&&!e.altKey&&!e.shiftKey}function ere(e,t=navigator.platform){return e.type!==void 0&&e.type!==`keydown`||!kt(t)||Og(e.key)!==`backspace`?null:e.metaKey&&!e.ctrlKey&&!e.altKey&&!e.shiftKey?Fne:null}function tre(e,t=navigator.platform){if(e.type!==void 0&&e.type!==`keydown`||e.shiftKey)return null;let n=Og(e.key);if(n!==`arrowleft`&&n!==`arrowright`)return null;let r=n===`arrowleft`?jne:Mne,i=n===`arrowleft`?Nne:Pne;return kt(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 nre=[/\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 rre(e){if(typeof e!=`string`)return!1;let t=e.trim();return t.length===0?!1:nre.some(e=>e.test(t))}function ire(e){return rre(e)?null:e??null}var Bg=`[CLIENT_SETTINGS]`,Vg=new Set,Hg=new Set,Ug=Se,Wg=!1,Gg=null,Kg=0;function are(){for(let e of Vg)e()}function ore(){for(let e of Hg)e()}function qg(){return Ug}function Jg(e){Ug=e,are()}function sre(e){Wg!==e&&(Wg=e,ore())}function cre(e){return Vg.add(e),Yg(),()=>{Vg.delete(e)}}function lre(){return Wg}function ure(e){return Hg.add(e),Yg(),()=>{Hg.delete(e)}}async function Yg(){if(Wg)return;if(Gg)return Gg;let e=Kg,t=(async()=>{try{let t=await be().persistence.getClientSettings();if(e!==Kg)return;t&&Jg({...Se,...t})}catch(e){console.error(`${Bg} hydrate failed`,{operation:`hydrate`,...nt(e)})}finally{e===Kg&&sre(!0)}})().finally(()=>{Gg===t&&(Gg=null)});return Gg=t,Gg}function Xg(e){Jg(e),be().persistence.setClientSettings(e).catch(e=>{console.error(`${Bg} persist failed`,{operation:`persist`,...nt(e)})})}var dre=new Set(L(An.fields));function fre(e){let t={},n={};for(let[r,i]of Object.entries(e))dre.has(r)?t[r]=i:n[r]=i;return{serverPatch:t,clientPatch:n}}function pre(){return qg()}function mre(){return(0,J.useSyncExternalStore)(ure,lre,hre)}function hre(){return!1}function Zg(){return(0,J.useSyncExternalStore)(cre,qg,gre)}function gre(){return Se}function _re(e,t){return{...e,...t}}function Qg(e,t){let n=(0,X.c)(6),r=Zg(),i;n[0]!==r||n[1]!==e?(i=_re(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 $g(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 vre(e){return e.settingsHydrated?e.mode:`none`}function e_(){let e=(0,X.c)(3),t=mre(),n=Zg().environmentIdentificationMode,r;return e[0]!==n||e[1]!==t?(r=vre({mode:n,settingsHydrated:t}),e[0]=n,e[1]=t,e[2]=r):r=e[2],r}function t_(e,t){let n=(0,X.c)(2),r;return n[0]===e?r=n[1]:(r=uf.settingsValueAtom(e),n[0]=e,n[1]=r),Qg(Fd(r)??Hn,t)}function n_(e){return Qg(Fd(nn),e)}function yre(e){let t=(0,X.c)(3),n=Zd(uf.updateSettings,`server settings update`),r;return t[0]!==e||t[1]!==n?(r=t=>{let{serverPatch:r,clientPatch:i}=fre(t);Object.keys(r).length>0&&e&&n({environmentId:e,input:{patch:r}}),Object.keys(i).length>0&&Xg({...qg(),...i})},t[0]=e,t[1]=n,t[2]=r):r=t[2],r}function r_(){return yre(R()?.environmentId??null)}function i_(){return bre}function bre(e){Xg({...qg(),...e})}function a_(e){return/^[a-zA-Z]:([/\\]|$)/.test(e)}function o_(e){return e.startsWith(`\\\\`)}function xre(e){return o_(e)||a_(e)}function s_(e){return e===`.`||e===`..`||e.startsWith(`./`)||e.startsWith(`../`)||e.startsWith(`.\\`)||e.startsWith(`..\\`)}function Sre(e){return e===`/`||e===`\\`||/^[a-zA-Z]:[/\\]?$/.test(e)}function Cre(e){if(e.length===0||Sre(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 c_(e){return Cre(e.trim())}function l_(e){let t=c_(e);return a_(t)||o_(t)?t.replaceAll(`/`,`\\`).toLowerCase():t}function wre(e){return JSON.stringify([e.environmentId,e.cwd,e.relativePath])}function Tre(e){let t=je(),n=je(),r=ba(e=>Na(null).pipe($o(`environment-data:projects:optimistic-file:${e}`))),i={mode:`serial`,key:({environmentId:e,input:t})=>JSON.stringify([e,t.projectId])};return{searchEntries:Pc(e,{label:`environment-data:projects:search-entries`,tag:Bl.projectsSearchEntries,staleTimeMs:15e3}),listEntries:Pc(e,{label:`environment-data:projects:list-entries`,tag:Bl.projectsListEntries,staleTimeMs:3e4,idleTtlMs:5*6e4}),readFile:Pc(e,{label:`environment-data:projects:read-file`,tag:Bl.projectsReadFile,staleTimeMs:3e4,idleTtlMs:5*6e4}),optimisticFile:e=>r(wre(e)),create:_e(e,{label:`environment-data:commands:project:create`,execute:e=>Ss(e),scheduler:t,concurrency:i}),update:_e(e,{label:`environment-data:commands:project:update`,execute:e=>ll(e),scheduler:t,concurrency:i}),delete:_e(e,{label:`environment-data:commands:project:delete`,execute:e=>Xl(e),scheduler:t,concurrency:i}),writeFile:Zn(e,{label:`environment-data:projects:write-file`,tag:Bl.projectsWriteFile,scheduler:n,concurrency:{mode:`serial`,key:({environmentId:e,input:t})=>JSON.stringify([e,t.cwd,t.relativePath])}})}}var Ere=Object.freeze([]),Dre=new Map;function Ore(e){let t=ba(t=>Na(n=>n(e.snapshotAtom(t))?.projects??Ere).pipe($o(`environment-projects:${t}`))),n=ba(e=>Na(n=>{let r=n(t(e));return r.length===0?Dre:new Map(r.map(e=>[e.id,e]))}).pipe($o(`environment-project-index:${e}`))),r=ba(e=>{let n=[];return Na(r=>{let i=r(t(e)).map(t=>({environmentId:e,projectId:t.id}));return Yd(n,i)?n:(n=i,i)}).pipe($o(`environment-project-refs:${e}`))}),i=ba(e=>{let t=cf(e),r=null,i=null;return Na(e=>{let a=e(n(t.environmentId)).get(t.projectId)??null;return a===r?i:(r=a,i=a===null?null:dr(t.environmentId,a),i)}).pipe($o(`environment-project:${e}`))}),a=[],o=Na(t=>{let n=[];for(let i of t(e.catalogValueAtom).entries.keys())n.push(...t(r(i)));return Yd(a,n)?a:(a=n,n)}).pipe($o(`environment-project-refs`)),s=[];return{environmentProjectsAtom:t,environmentProjectIndexAtom:n,environmentProjectRefsAtom:r,projectRefsAtom:o,projectsAtom:Na(e=>{let t=e(o).flatMap(t=>{let n=e(i(So(t)));return n===null?[]:[n]});return Sd(s,t)||(s=t),s}).pipe($o(`environment-project-list`)),projectAtom:e=>i(So(e))}}var kre=e=>/^win(dows)?/i.test(e);function u_(e){return a_(e)||o_(e)?`windows`:e.startsWith(`/`)?`unix`:null}function d_(e){let t=u_(e);return t===`windows`?`\\`:t===`unix`?`/`:e.includes(`\\`)?`\\`:`/`}function f_(e){return(u_(e)===`unix`?/\/$/:/[\\/]$/).test(e)}function p_(e,t){return e.split(t===`/`?/\/+/:/[\\/]+/).filter(Boolean)}function m_(e){return u_(e)===`unix`?e.lastIndexOf(`/`):Math.max(e.lastIndexOf(`/`),e.lastIndexOf(`\\`))}function h_(e){if(a_(e)){let t=`${e.slice(0,2)}\\`;return{root:t,separator:`\\`,segments:p_(e.slice(t.length),`\\`)}}if(o_(e)){let[t,n,...r]=p_(e,`\\`);return!t||!n?null:{root:`\\\\${t}\\${n}\\`,separator:`\\`,segments:r}}return e.startsWith(`/`)?{root:`/`,separator:`/`,segments:p_(e.slice(1),`/`)}:null}function Are(e,t=``){let n=kre(t);return e.startsWith(`./`)||e.startsWith(`../`)||e.startsWith(`.\\`)||e.startsWith(`..\\`)||e.startsWith(`/`)||e.startsWith(`~/`)||n&&xre(e)}function jre(e,t){return xre(e)&&!kre(t)}function g_(e,t){let n=e.trim();if(!s_(n)||!t)return c_(n);let r=h_(c_(t));if(!r)return c_(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 c_(a.length===0?r.root:`${r.root}${a}`)}function Mre(e,t){let n=l_(t);if(n.length!==0)return e.find(e=>{let t=e.workspaceRoot??e.cwd;return t?l_(t)===n:!1})}function Nre(e){let t=c_(e),n=h_(t);return n?n.segments.findLast(Boolean)??t:t.split(/[/\\]/).findLast(Boolean)??t}function Pre(e,t){let n=d_(e);return`${__(e)}${t}${n}`}function Fre(e){let t=m_(e);return e.slice(t+1)}function __(e){if(f_(e))return e;let t=m_(e);return t<0?e:e.slice(0,t+1)}function Ire(e){let t=e.trim();return t.length===0||f_(t)?t:`${t}${d_(t)}`}function Lre(e){let t=c_(e),n=h_(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=d_(e),i=m_(t);return i<0?null:i===2&&/^[a-zA-Z]:/.test(t)?`${t.slice(0,2)}${r}`:t.slice(0,i+1)}function Rre(e){return f_(e)&&Lre(e)!==null}var v_=zn(pi),y_=C(pi),zre=En(y_.stateAtom);xc({catalogValueAtom:at.catalogValueAtom,shellStateValueAtom:y_.stateValueAtom});var Bre=Na(e=>{let t=Eu(e(at.catalogAtom));if(mf(t))return!1;for(let n of t.value.entries.keys()){if(k(e(y_.stateValueAtom(n)).snapshot))continue;let t=St(Eu(e(at.stateAtom(n))),()=>su);if(Bt(t)!==`disconnected`||t.phase===`backoff`&&t.desired&&t.attempt<=2)return!1}return!0}).pipe($o(`web-all-environment-shells-bootstrapped`)),b_=Tre(pi),x_=Ore({catalogValueAtom:at.catalogValueAtom,snapshotAtom:zre}),S_=Xo(pi),Vre=Iu(pi),C_=Yc(Vre.stateAtom),w_=Io({catalogValueAtom:at.catalogValueAtom,snapshotAtom:zre}),Hre=Na(El(Ja)).pipe($o(`web-environment-thread:empty`));function Ure(e,t){let n=(0,X.c)(5),r;n[0]!==e||n[1]!==t?(r=e!==null&&t!==null?Vre.stateAtom(e,t):Hre,n[0]=e,n[1]=t,n[2]=r):r=n[2];let i=Fd(r),a;return n[3]===i?a=n[4]:(a=St(Eu(i),Wre),n[3]=i,n[4]=a),a}function Wre(){return Ja}var Gre=Object.freeze([]),Kre=Object.freeze([]),qre=Object.freeze([]),Jre=Object.freeze([]),Yre=Object.freeze([]),Xre=Na(null).pipe($o(`web-project:empty`));Na(Gre).pipe($o(`web-project-refs:empty`));var Zre=Na(Kre).pipe($o(`web-thread-refs:empty`)),Qre=Na(null).pipe($o(`web-thread-shell:empty`)),$re=Na(null).pipe($o(`web-thread-detail:empty`)),eie=Na(`empty`).pipe($o(`web-thread-status:empty`));Na(qre).pipe($o(`web-thread-messages:empty`)),Na(Jre).pipe($o(`web-thread-activities:empty`));var tie=Na(Yre).pipe($o(`web-thread-proposed-plans:empty`));Na(null).pipe($o(`web-thread-session:empty`));var nie=Na(null).pipe(ca,$o(`web-active-environment-id`));function rie(){return Fd(nie)}function T_(e){jt.set(nie,e)}function iie(){return Fd(w_.threadRefsAtom)}function aie(e){let t=(0,X.c)(2),n;return t[0]===e?n=t[1]:(n=e===null?Zre:w_.environmentThreadRefsAtom(e),t[0]=e,t[1]=n),Fd(n)}function E_(){return Fd(x_.projectsAtom)}function D_(){return Fd(w_.threadShellsAtom)}function oie(){return Fd(Bre)}function sie(e){let t=(0,X.c)(2),n;return t[0]===e?n=t[1]:(n=w_.threadShellsForProjectRefsAtom(e),t[0]=e,t[1]=n),Fd(n)}function O_(e){let t=(0,X.c)(2),n;return t[0]===e?n=t[1]:(n=e===null?Xre:x_.projectAtom(e),t[0]=e,t[1]=n),Fd(n)}function k_(e){let t=(0,X.c)(2),n;return t[0]===e?n=t[1]:(n=e===null?Qre:w_.threadShellAtom(e),t[0]=e,t[1]=n),Fd(n)}function cie(e){let t=(0,X.c)(2),n;return t[0]===e?n=t[1]:(n=e===null?$re:C_.detailAtom(e),t[0]=e,t[1]=n),Fd(n)}function lie(e){let t=(0,X.c)(2),n;return t[0]===e?n=t[1]:(n=e===null?eie:C_.statusAtom(e),t[0]=e,t[1]=n),Fd(n)}function uie(e,t){return e!==null&&(!t.waitForShell||t.shellExists)?e:null}function A_(e,t){let n=(0,X.c)(7),r=k_(e),i=r!==null,a=t?.waitForShell===!0,o;n[0]!==e||n[1]!==i||n[2]!==a?(o=uie(e,{shellExists:i,waitForShell:a}),n[0]=e,n[1]=i,n[2]=a,n[3]=o):o=n[3];let s=cie(o),c;return n[4]!==s||n[5]!==r?(c=cd(s,r),n[4]=s,n[5]=r,n[6]=c):c=n[6],c}function die(e){let t=(0,X.c)(2),n;return t[0]===e?n=t[1]:(n=e===null?tie:C_.proposedPlansAtom(e),t[0]=e,t[1]=n),Fd(n)}function fie(e){return jt.get(x_.projectAtom(e))}function j_(e){return jt.get(w_.threadShellAtom(e))}function pie(e){return jt.get(Cc).get(e)?.environment.capabilities.threadSettlement===!0}function mie(e){return jt.get(Cc).get(e)?.environment.capabilities.threadSnooze===!0}function hie(e){return jt.get(w_.environmentThreadRefsAtom(e))}function gie(e){return e.filter(e=>e.state.hasRunningSubprocess).map(e=>e.target.terminalId)}var M_=Object.freeze({buffer:``,status:`closed`,error:null,updatedAt:null,version:0}),_ie=Object.freeze({summary:null,buffer:``,status:`closed`,error:null,hasRunningSubprocess:!1,updatedAt:null,version:0}),vie=512*1024,yie=new TextEncoder,bie=new TextDecoder;function N_(e,t){if(t<=0)return``;let n=yie.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 bie.decode(n.subarray(r))}function xie(e,t){return{buffer:N_(e.history,t),status:e.status,error:null,updatedAt:e.updatedAt,version:1}}function Sie(e,t){return e===null?t:t===null||Date.parse(e)>=Date.parse(t)?e:t}function P_(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:Sie(e?.updatedAt??null,t.updatedAt),version:t.version}}function Cie(e,t,n=vie){switch(t.type){case`snapshot`:case`restarted`:return xie(t.snapshot,n);case`output`:return{...e,buffer:N_(`${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 wie(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 Tie(e){let t=je(),n=je(),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:bc(e,{label:`environment-data:terminal:attach`,subscribe:e=>Ci(Bl.terminalAttach,e).pipe(ka(M_,Cie))}),events:S(e,{label:`environment-data:terminal:events`,tag:Bl.subscribeTerminalEvents}),metadata:bc(e,{label:`environment-data:terminal:metadata`,subscribe:e=>Ci(Bl.subscribeTerminalMetadata,{}).pipe(ka([],wie))}),open:Zn(e,{label:`environment-data:terminal:open`,tag:Bl.terminalOpen,scheduler:t,concurrency:a}),write:Zn(e,{label:`environment-data:terminal:write`,tag:Bl.terminalWrite}),resize:Zn(e,{label:`environment-data:terminal:resize`,tag:Bl.terminalResize,scheduler:n,concurrency:{mode:`latest`,key:i}}),clear:Zn(e,{label:`environment-data:terminal:clear`,tag:Bl.terminalClear,scheduler:t,concurrency:a}),restart:Zn(e,{label:`environment-data:terminal:restart`,tag:Bl.terminalRestart,scheduler:t,concurrency:a}),close:Zn(e,{label:`environment-data:terminal:close`,tag:Bl.terminalClose,scheduler:t,concurrency:a})}}var F_=Tie(pi);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?F_.attach({environmentId:e.environmentId,input:e.terminal}):null,t[0]=e.environmentId,t[1]=e.terminal,t[2]=n):n=t[2];let r=$r(n),i;t[3]===e.environmentId?i=t[4]:(i=e.environmentId===null?null:F_.metadata({environmentId:e.environmentId,input:null}),t[3]=e.environmentId,t[4]=i);let a=$r(i),o;bb0:{if(e.environmentId===null||e.terminal===null){o=_ie;break bb0}let n;t[5]!==r.data||t[6]!==e.terminal?.terminalId||t[7]!==e.terminal?.threadId||t[8]!==a.data?(n=P_(a.data?.find(t=>t.threadId===e.terminal?.threadId&&t.terminalId===e.terminal?.terminalId)??null,r.data??M_),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 I_(e){let t=(0,X.c)(11),n;t[0]===e.environmentId?n=t[1]:(n=e.environmentId===null?null:F_.metadata({environmentId:e.environmentId,input:null}),t[0]=e.environmentId,t[1]=n);let r=$r(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:Xc.make(t.threadId),terminalId:t.terminalId},state:P_(t,M_)}),t[9]=e.environmentId,t[10]=a),n=(r.data??[]).filter(i).map(a).sort(Die),t[3]=e.environmentId,t[4]=e.threadId,t[5]=r.data,t[6]=n}else n=t[6];i=n}return i}function Die(e,t){return e.target.terminalId.localeCompare(t.target.terminalId,void 0,{numeric:!0})}function L_(e){let t=(0,X.c)(2),n=I_(e),r;return t[0]===n?r=t[1]:(r=gie(n),t[0]=n,t[1]=r),r}var R_={shortLabel:`PR`,singular:`pull request`},Oie={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`},kie={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`},Aie={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`},jie={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`},Mie={icon:`change-request`,providerName:`source control`,shortName:`change request`,longName:`change request`,pluralLongName:`change requests`,providerLongName:`change request`,urlExample:`#42`};function z_(e){switch(e?.kind){case`github`:case void 0:return Oie;case`gitlab`:return kie;case`azure-devops`:return Aie;case`bitbucket`:return jie;case`unknown`:return Mie}}function B_(e){if(!e)return R_;let t=z_(e);return{shortLabel:t.shortName,singular:t.longName}}var V_=`p4code`,Nie=RegExp(`^${V_}\\/(?:[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 Pie(e){let t=e.indexOf(`/`);return t<=0||t===e.length-1?e:e.slice(t+1)}function Fie(e){return`${V_}/${e(4).toLowerCase().replace(/[^0-9a-f]/g,``).slice(0,8)}`}function H_(e){return Nie.test(e.trim().toLowerCase())}var Iie={hasUpstream:!1,aheadCount:0,behindCount:0,aheadOfDefaultCount:0,pr:null};function U_(e,t){return{...e,...t??Iie}}function Lie(e){return{hasUpstream:e.hasUpstream,aheadCount:e.aheadCount,behindCount:e.behindCount,...e.aheadOfDefaultCount===void 0?{}:{aheadOfDefaultCount:e.aheadOfDefaultCount},pr:e.pr}}function Rie(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 zie(e,t){switch(t._tag){case`snapshot`:return U_(t.local,t.remote);case`localUpdated`:return U_(t.local,e?Lie(e):null);case`remoteUpdated`:return U_(e===null?{isRepo:!0,hasPrimaryRemote:!1,isDefaultRef:!1,refName:null,hasWorkingTreeChanges:!1,workingTree:{files:[],insertions:0,deletions:0}}:Rie(e),t.remote)}}var W_=je(),G_={mode:`serial`,key:({environmentId:e,input:t})=>JSON.stringify([e,t.cwd])},Bie=ba(e=>Na({revision:0,persistedCacheReadable:!0}).pipe(ca,$o(`environment-data:vcs:list-refs-state:${e}`))),Vie=jte({permits:1});function K_(e){return Bie(e.environmentId)}function Hie(e,t,n){e.update(K_(t),e=>({revision:e.revision+1,persistedCacheReadable:n??e.persistedCacheReadable}))}function q_(e,t){return Vie.withPermit(e)(t)}var J_=za(`VcsRefsState.invalidateCached`)(function*(e,t){let n=yield*$t;yield*q_(t.environmentId,Hr(function*(){Hie(e,t,yield*n.clearVcsRefs(t.environmentId).pipe($a(!0),Vo(e=>le(`Could not remove invalidated cached Git refs.`).pipe(tc({environmentId:t.environmentId,cwd:t.cwd,...nt(e)}),$a(!1)))))}))}),Uie=Ls([`refresh_status`,`run_change_request`,`pull`,`switch_ref`,`create_ref`,`create_worktree`,`init`,`publish_repository`,`prepare_pull_request_thread`]),Y_=class extends Qr()(`VcsActionUnavailableError`,{operation:Uie,environmentId:Ya(Lu),cwd:Ya(Co)}){get message(){return`Source control operation '${this.operation.replaceAll(`_`,` `)}' is unavailable.`}},X_=class extends Qr()(`VcsActionRemoteFailureError`,{actionId:Co,transportActionId:Co,action:zd,environmentId:Lu,cwd:Co,phase:Ya(fo),remoteMessageLength:Cd}){get message(){let e=this.phase===null?`execution`:this.phase;return`Source control action '${this.action}' failed during ${e}.`}},Z_=class extends Qr()(`VcsActionMissingTerminalEventError`,{actionId:Co,transportActionId:Co,action:zd,environmentId:Lu,cwd:Co}){get message(){return`Source control action '${this.action}' ended without a terminal result.`}},Wie=class extends Qr()(`VcsActionTargetKeyParseError`,{keyLength:Cd,cause:Zl()}){get message(){return`Invalid source control action target key (${this.keyLength} characters).`}};fi([X_,Z_]);var Q_=Object.freeze({isRunning:!1,operation:null,actionId:null,action:null,currentLabel:null,currentPhaseLabel:null,hookName:null,lastOutputLine:null,phaseStartedAtMs:null,hookStartedAtMs:null,error:null}),$_=()=>es(d()),ev=0,Gie=Dn(ae([Lu,Co])),tv=ba(e=>Na(Q_).pipe(ca,$o(`vcs-action:${e}`))),nv=Na(Q_).pipe(ca,$o(`vcs-action:null`));function rv(e){return e.environmentId===null||e.cwd===null?null:JSON.stringify([e.environmentId,e.cwd])}function Kie(e){try{let[t,n]=Gie(JSON.parse(e));return{environmentId:t,cwd:n}}catch(t){throw new Wie({keyLength:e.length,cause:t})}}function qie(e){let t=rv(e);return t===null?nv:tv(t)}function Jie(){return ev+=1,`local-vcs-action:${ev}`}function iv(e){let t=e.actionId??Jie(),n=$_();return{...Q_,isRunning:!0,operation:e.operation,actionId:t,currentLabel:e.label,currentPhaseLabel:e.label,phaseStartedAtMs:n}}function av(e,t,n){return{...Q_,operation:e,actionId:t,error:n instanceof Error?n.message:`Source control action failed.`}}function Yie(e,t){let n=JSON.stringify([e.environmentId,e.cwd]);return`${n.length}:${n}${t}`}function Xie(e,t,n,r){return r.actionId!==t||r.cwd!==e.cwd?null:{...r,actionId:n}}function Zie(e,t){return kr(()=>{let n=null;return e.pipe(ia(e=>{let r=Xie(t.target,t.transportActionId,t.actionId,e);return r===null?Hi:((r.kind===`action_finished`||r.kind===`action_failed`)&&(n=r),t.onProgress(r))}),Vs(()=>n?.kind===`action_finished`?on(n.result):n?.kind===`action_failed`?el(new X_({actionId:t.actionId,transportActionId:t.transportActionId,action:n.action,environmentId:t.target.environmentId,cwd:t.target.cwd,phase:n.phase,remoteMessageLength:n.message.length})):el(new Z_({actionId:t.actionId,transportActionId:t.transportActionId,action:t.action,environmentId:t.target.environmentId,cwd:t.target.cwd}))))})}function Qie(e,t){if(e.actionId!==t.actionId)return e;let n=$_();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{...Q_,actionId:t.actionId,action:t.action,operation:`run_change_request`};case`action_failed`:return{...Q_,actionId:t.actionId,action:t.action,operation:`run_change_request`,error:t.message}}}function $ie(e){let t=new Map,n=n=>{let r=rv(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:Kie(r),s=r===null?nv:tv(r),c=Tn(e,{label:`vcs-action:run-stacked:${i}`,scheduler:W_,concurrency:{mode:`serial`,key:()=>i},execute:(e,t)=>{if(o===null)return el(new Y_({operation:`run_change_request`,environmentId:n.environmentId,cwd:n.cwd}));let r=Yie(o,e.actionId);t.set(s,iv({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 Zie(pn(o.environmentId,ht(Bl.gitRunStackedAction,i)),{target:o,transportActionId:r,actionId:e.actionId,action:e.action,onProgress:n=>pf(()=>{let r=t.get(s);if(r.actionId===e.actionId&&(t.set(s,Qie(r,n)),e.onProgress!==void 0))try{e.onProgress(n)}catch{}})}).pipe(Vl(J_(t,o)),O(n=>pf(()=>{let r=t.get(s);r.actionId===e.actionId&&r.isRunning&&t.set(s,av(`run_change_request`,e.actionId,n))})))}});return t.set(i,c),c},r=(e,t,n)=>{let r=rv(t);if(r===null)return;let i=tv(r);e.set(i,n(e.get(i)))};return{stateAtom:qie,runStackedAction:e=>n(e),track:async(e,t,n,r)=>{let i=rv(t);if(i===null)return fl(Hu(new Y_({operation:n.operation,environmentId:t.environmentId,cwd:t.cwd})));let a=tv(i),o=iv(n);e.set(a,o);let s=await r();return e.get(a).actionId===o.actionId&&(Qa(s)||ml(s.cause)?e.set(a,Q_):e.get(a).actionId===o.actionId&&e.set(a,av(n.operation,o.actionId,nc(s.cause)))),s},resetError:(e,t,n)=>{r(e,t,e=>!e.isRunning&&e.operation===n?Q_:e)}}}var eae=100,tae=3e4,nae=tu(`1 second`).pipe(ma(({duration:e})=>on(we(e,ue(30)))));function rae(e){return e.query===void 0&&e.cursor===void 0&&e.includeMatchingRemoteRefs===void 0&&e.refKind===void 0&&e.limit===eae}var iae=za(`CachedVcsRefsState.commitRefresh`)(function*(e,t,n){return yield*q_(n.environmentId,Hr(function*(){let r=K_({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($a(!0),Vo(e=>le(`Could not recover invalidated cached Git refs.`).pipe(tc({environmentId:n.environmentId,cwd:n.cwd,...nt(e)}),$a(!1)))),yield*t.saveVcsRefs(n.environmentId,n.cwd,n.refs).pipe(Vo(e=>le(`Could not persist cached Git refs.`).pipe(tc({environmentId:n.environmentId,cwd:n.cwd,...nt(e)})))),a!==i.persistedCacheReadable&&e.update(r,e=>e.revision===n.expectedRevision?{...e,persistedCacheReadable:a}:e)),!0}))}),aae=za(`CachedVcsRefsState.makeChanges`)(function*(e,t,n,r=!0){let i=yield*Yi,a=yield*$t,o=i.target.environmentId,s=rae(e),c=s&&r?yield*a.loadVcsRefs(o,e.cwd).pipe(Vo(t=>le(`Could not load cached Git refs.`).pipe(tc({environmentId:o,cwd:e.cwd,...nt(t)}),$a(lt())))):lt(),l=za(`CachedVcsRefsState.refresh`)(function*(){let r=yield*Ii(Bl.vcsListRefs,e).pipe(rr(Yi,i)),c=a.saveVcsRefs(o,e.cwd,r).pipe(Vo(t=>le(`Could not persist cached Git refs.`).pipe(tc({environmentId:o,cwd:e.cwd,...nt(t)}))));return t===void 0||n===void 0?(s&&(yield*c),_i(r)):(yield*iae(n,a,{environmentId:o,cwd:e.cwd,refs:r,expectedRevision:t,persist:s}))?_i(r):lt()});return yi(Yt(on(c)).pipe(Qe(e=>Ai(e,{onNone:()=>Ur,onSome:H}))),yi(Yt(hr(i.state)),Ta(i.state)).pipe(iu(e=>e.phase===`connected`?e.generation:null),dt,yr(t=>t===null?Gi:Yt(l().pipe(O(t=>le(`Could not refresh Git refs.`).pipe(tc({environmentId:o,cwd:e.cwd,...nt(t)}))))).pipe(_a(nae),Qe(e=>Ai(e,{onNone:()=>Ur,onSome:H}))))))});function oae(e,t,n,r){return ur(e,o(Hr(function*(){return yield*aae(t,n,yield*Bu,r)})))}function sae(e){let t=ba(t=>ba(n=>{let r=JSON.parse(n);return e.atom(e=>{let n=e(K_({environmentId:t}));return oae(t,r,n.revision,n.persistedCacheReadable)}).pipe(Cr(tae),$o(`environment-data:vcs:list-refs:${t}:${n}`))})),n=e=>t(e.environmentId)(JSON.stringify(e.input)),r=(e,t)=>J_(t,{environmentId:e.environmentId,cwd:e.input.cwd});return{listRefs:n,status:bc(e,{label:`environment-data:vcs:status`,subscribe:e=>Ci(Bl.subscribeVcsStatus,e).pipe(Lt(()=>null,(e,t)=>{let n=zie(e,t);return[n,[n]]}))}),pull:Zn(e,{label:`environment-data:vcs:pull`,tag:Bl.vcsPull,scheduler:W_,concurrency:G_,onSettled:r}),refreshStatus:Zn(e,{label:`environment-data:vcs:refresh-status`,tag:Bl.vcsRefreshStatus,scheduler:W_,concurrency:G_,onSettled:r}),createWorktree:Zn(e,{label:`environment-data:vcs:create-worktree`,tag:Bl.vcsCreateWorktree,scheduler:W_,concurrency:G_,onSettled:r}),removeWorktree:Zn(e,{label:`environment-data:vcs:remove-worktree`,tag:Bl.vcsRemoveWorktree,scheduler:W_,concurrency:G_,onSettled:r}),createRef:Zn(e,{label:`environment-data:vcs:create-ref`,tag:Bl.vcsCreateRef,scheduler:W_,concurrency:G_,onSettled:r}),switchRef:Zn(e,{label:`environment-data:vcs:switch-ref`,tag:Bl.vcsSwitchRef,scheduler:W_,concurrency:G_,onSettled:r}),init:Zn(e,{label:`environment-data:vcs:init`,tag:Bl.vcsInit,scheduler:W_,concurrency:G_,onSettled:r})}}var ov=sae(pi),sv=$ie(pi),cv=`p4code:ui-state:v1`,lv=1,uv=[`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`],dv={projectExpandedById:{},projectOrder:[],pinnedProjectKeys:[],hiddenProjectKeys:[],pinnedThreadKeys:[],threadLastVisitedAtById:{},threadChangedFilesExpandedById:{},defaultAdvertisedEndpointKey:null},cae=`legacy-project-cwd:`,fv=`legacy-project-expansion-default`,pv=!1;function mv(e){return`${cae}${l_(e)}`}function hv(e){return Array.isArray(e)?[...new Set(e.filter(e=>typeof e==`string`&&e.length>0))]:[]}function lae(e){return!e||typeof e!=`object`?{}:Object.fromEntries(Object.entries(e).filter(e=>e[0].length>0&&typeof e[1]==`boolean`))}function uae(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 gv(e){return{projectExpandedById:e.projectExpandedById===void 0?(()=>{let t={},n=hv(e.collapsedProjectCwds),r=hv(e.expandedProjectCwds);for(let e of n)t[mv(e)]=!1;for(let e of r)t[mv(e)]=!0;return!Array.isArray(e.collapsedProjectCwds)&&r.length>0&&(t[fv]=!1),t})():lae(e.projectExpandedById),projectOrder:e.projectOrder===void 0?hv(e.projectOrderCwds).map(mv):hv(e.projectOrder),pinnedProjectKeys:hv(e.pinnedProjectKeys),hiddenProjectKeys:hv(e.hiddenProjectKeys),pinnedThreadKeys:hv(e.pinnedThreadKeys),threadLastVisitedAtById:uae(e.threadLastVisitedAtById),threadChangedFilesExpandedById:e.threadChangedFilesExpansionVersion===lv?fae(e.threadChangedFilesExpandedById):{},defaultAdvertisedEndpointKey:typeof e.defaultAdvertisedEndpointKey==`string`&&e.defaultAdvertisedEndpointKey.length>0?e.defaultAdvertisedEndpointKey:null}}function dae(){if(typeof window>`u`)return dv;try{let e=window.localStorage.getItem(cv);if(!e){for(let e of uv){let t=window.localStorage.getItem(e);if(t)return gv(JSON.parse(t))}return dv}return gv(JSON.parse(e))}catch{return dv}}function fae(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 pae(e){if(!(typeof window>`u`))try{let t=Object.fromEntries(Object.entries(e.projectExpandedById).filter(([e])=>e!==fv));if(window.localStorage.setItem(cv,JSON.stringify({projectExpandedById:t,projectOrder:e.projectOrder,pinnedProjectKeys:e.pinnedProjectKeys,hiddenProjectKeys:e.hiddenProjectKeys,pinnedThreadKeys:e.pinnedThreadKeys,threadLastVisitedAtById:e.threadLastVisitedAtById,defaultAdvertisedEndpointKey:e.defaultAdvertisedEndpointKey,threadChangedFilesExpansionVersion:lv,threadChangedFilesExpandedById:e.threadChangedFilesExpandedById})),!pv){pv=!0;for(let e of uv)window.localStorage.removeItem(e)}}catch{}}var _v=new ju(pae,{wait:500});function mae(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 hae(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 gae(e,t,n,r){let i=e.threadChangedFilesExpandedById[t]??{};return i[n]===r?e:{...e,threadChangedFilesExpandedById:{...e.threadChangedFilesExpandedById,[t]:{...i,[n]:r}}}}function _ae(e,t){let n=t&&t.length>0?t:null;return e.defaultAdvertisedEndpointKey===n?e:{...e,defaultAdvertisedEndpointKey:n}}function vv(e,t){for(let n of t){let t=e[n];if(t!==void 0)return t}return e[fv]??!0}function vae(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 yv(e,t,n){return e.includes(t)===n?null:n?[...e,t]:e.filter(e=>e!==t)}function yae(e,t,n){let r=yv(e.pinnedProjectKeys,t,n),i=n?yv(e.hiddenProjectKeys,t,!1):null;return r===null&&i===null?e:{...e,pinnedProjectKeys:r??e.pinnedProjectKeys,hiddenProjectKeys:i??e.hiddenProjectKeys}}function bae(e,t,n){let r=yv(e.hiddenProjectKeys,t,n),i=n?yv(e.pinnedProjectKeys,t,!1):null;return r===null&&i===null?e:{...e,hiddenProjectKeys:r??e.hiddenProjectKeys,pinnedProjectKeys:i??e.pinnedProjectKeys}}function xae(e,t,n){let r=yv(e.pinnedThreadKeys,t,n);return r===null?e:{...e,pinnedThreadKeys:r}}function Sae(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 bv=Go(e=>({...dae(),markThreadVisited:(t,n)=>e(e=>mae(e,t,n)),markThreadUnread:(t,n)=>e(e=>hae(e,t,n)),setThreadChangedFilesExpanded:(t,n,r)=>e(e=>gae(e,t,n,r)),setDefaultAdvertisedEndpointKey:t=>e(e=>_ae(e,t)),setProjectExpanded:(t,n)=>e(e=>vae(e,t,n)),setProjectPinned:(t,n)=>e(e=>yae(e,t,n)),setProjectHidden:(t,n)=>e(e=>bae(e,t,n)),setThreadPinned:(t,n)=>e(e=>xae(e,t,n)),reorderProjects:(t,n,r)=>e(e=>Sae(e,t,n,r))}));bv.subscribe(e=>_v.maybeExecute(e)),typeof window<`u`&&typeof window.addEventListener==`function`&&window.addEventListener(`beforeunload`,()=>{_v.flush()});var xv=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},Cae=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},wae=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},Sv=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},Cv=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},wv=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},Tv=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=K(`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},Ev=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=K(`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},Tae=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},Eae=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},Dae=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},Oae=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},kae=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},Aae=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},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=K(`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},Ov=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=K(`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},jae=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]=_),_},Mae=`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==`,Nae=e=>{let t=(0,X.c)(3),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,Y.jsx)(`image`,{href:Mae,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},kv=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},Av=e=>{let t=(0,X.c)(7),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,Y.jsxs)(`linearGradient`,{id:`muse__a`,x1:`13.878%`,x2:`89.144%`,y1:`55.934%`,y2:`58.694%`,children:[(0,Y.jsx)(`stop`,{offset:`0%`,stopColor:`#0064E1`}),(0,Y.jsx)(`stop`,{offset:`40%`,stopColor:`#0064E1`}),(0,Y.jsx)(`stop`,{offset:`83%`,stopColor:`#0073EE`}),(0,Y.jsx)(`stop`,{offset:`100%`,stopColor:`#0082FB`})]}),t[0]=n):n=t[0];let r,i,a,o;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,Y.jsxs)(`defs`,{children:[n,(0,Y.jsxs)(`linearGradient`,{id:`muse__b`,x1:`54.315%`,x2:`54.315%`,y1:`82.782%`,y2:`39.307%`,children:[(0,Y.jsx)(`stop`,{offset:`0%`,stopColor:`#0082FB`}),(0,Y.jsx)(`stop`,{offset:`100%`,stopColor:`#0064E0`})]})]}),i=(0,Y.jsx)(`path`,{fill:`#0081FB`,d:`M27.651 112.136c0 9.775 2.146 17.28 4.95 21.82 3.677 5.947 9.16 8.466 14.751 8.466 7.211 0 13.808-1.79 26.52-19.372 10.185-14.092 22.186-33.874 30.26-46.275l13.675-21.01c9.499-14.591 20.493-30.811 33.1-41.806C161.196 4.985 172.298 0 183.47 0c18.758 0 36.625 10.87 50.3 31.257C248.735 53.584 256 81.707 256 110.729c0 17.253-3.4 29.93-9.187 39.946-5.591 9.686-16.488 19.363-34.818 19.363v-27.616c15.695 0 19.612-14.422 19.612-30.927 0-23.52-5.484-49.623-17.564-68.273-8.574-13.23-19.684-21.313-31.907-21.313-13.22 0-23.859 9.97-35.815 27.75-6.356 9.445-12.882 20.956-20.208 33.944l-8.066 14.289c-16.203 28.728-20.307 35.271-28.408 46.07-14.2 18.91-26.324 26.076-42.287 26.076-18.935 0-30.91-8.2-38.325-20.556C2.973 139.413 0 126.202 0 111.148l27.651.988Z`}),a=(0,Y.jsx)(`path`,{fill:`url(#muse__a)`,d:`M21.802 33.206C34.48 13.666 52.774 0 73.757 0 85.91 0 97.99 3.597 110.605 13.897c13.798 11.261 28.505 29.805 46.853 60.368l6.58 10.967c15.881 26.459 24.917 40.07 30.205 46.49 6.802 8.243 11.565 10.7 17.752 10.7 15.695 0 19.612-14.422 19.612-30.927l24.393-.766c0 17.253-3.4 29.93-9.187 39.946-5.591 9.686-16.488 19.363-34.818 19.363-11.395 0-21.49-2.475-32.654-13.007-8.582-8.083-18.615-22.443-26.334-35.352l-22.96-38.352C118.528 64.08 107.96 49.73 101.845 43.23c-6.578-6.988-15.036-15.428-28.532-15.428-10.923 0-20.2 7.666-27.963 19.39L21.802 33.206Z`}),o=(0,Y.jsx)(`path`,{fill:`url(#muse__b)`,d:`M73.312 27.802c-10.923 0-20.2 7.666-27.963 19.39-10.976 16.568-17.698 41.245-17.698 64.944 0 9.775 2.146 17.28 4.95 21.82L9.027 149.482C2.973 139.413 0 126.202 0 111.148 0 83.772 7.514 55.24 21.802 33.206 34.48 13.666 52.774 0 73.757 0l-.445 27.802Z`}),t[1]=r,t[2]=i,t[3]=a,t[4]=o):(r=t[1],i=t[2],a=t[3],o=t[4]);let s;return t[5]===e?s=t[6]:(s=(0,Y.jsxs)(`svg`,{...e,viewBox:`0 0 256 171`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:[r,i,a,o]}),t[5]=e,t[6]=s),s},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=K(`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},Fae=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=K(`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},Iae=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=K(`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 jv(e){let t=z_(e);switch(t.icon){case`github`:return{providerName:e?.name||t.providerName,terminology:B_(e),Icon:xv};case`gitlab`:return{providerName:e?.name||t.providerName,terminology:B_(e),Icon:Sv};case`azure-devops`:return{providerName:e?.name||t.providerName,terminology:B_(e),Icon:Cv};case`bitbucket`:return{providerName:e?.name||t.providerName,terminology:B_(e),Icon:wv};case`change-request`:return{providerName:e?.name||t.providerName,terminology:B_(e),Icon:Ih}}}function Mv(e){if(!e)return null;let t=Date.parse(e);return Number.isFinite(t)?t:null}function Nv(...e){for(let t of e){let e=Mv(t??void 0);if(e!==null)return e}return null}function Lae(e){if(e.latestUserMessageAt){let t=Mv(e.latestUserMessageAt);if(t!==null)return t}let t=null;for(let n of e.messages??[]){if(n.role!==`user`)continue;let e=Mv(n.createdAt);e!==null&&(t=t===null?e:Math.max(t,e))}return t===null?Nv(e.updatedAt,e.createdAt)??-1/0:t}function Pv(e,t){return t===`created_at`?Nv(e.createdAt,e.updatedAt)??-1/0:Lae(e)}function Fv(e,t){return Vd(e,Ft(qt({timestamp:nu(Ui),id:nu(Xe)}),e=>({timestamp:Pv(e,t),id:e.id})))}function Iv(e,t,n){return Fv(e.filter(e=>e.projectId===t&&e.archivedAt===null),n)[0]??null}var Lv={file_read:`File read`,file_search:`File search`,file_change:`File change`,command:`Command run`,version_control:`Version control`,build_test:`Build or test`,mcp_tool:`MCP tool call`,subagent:`Subagent task`,web_search:`Web search`,web_fetch:`Web fetch`,task_plan:`Task or plan`,image_view:`Image view`,tool:`Tool call`},Rae=new Set(Object.keys(Lv)),zae=new Set([`read`,`readfile`,`read_file`,`view`,`viewfile`,`view_file`,`notebookread`,`notebook_read`,`openfile`,`open_file`]),Bae=new Set([`grep`,`glob`,`search`,`filesearch`,`file_search`,`codebasesearch`,`codebase_search`,`listdir`,`list_dir`,`list_directory`,`ls`]),Vae=new Set([`edit`,`write`,`multiedit`,`multi_edit`,`notebookedit`,`notebook_edit`,`applypatch`,`apply_patch`,`patch`,`createfile`,`create_file`,`strreplace`,`str_replace`,`deletefile`,`delete_file`]),Hae=new Set([`bash`,`shell`,`terminal`,`exec`,`execute`,`execcommand`,`exec_command`,`runcommand`,`run_command`,`local_shell`]),Uae=new Set([`task`,`agent`,`subagent`,`sub_agent`]),Wae=new Set([`webfetch`,`web_fetch`,`fetch`,`fetchurl`,`fetch_url`,`browse`,`openurl`,`open_url`]),Gae=new Set([`todowrite`,`todo_write`,`todoread`,`todo_read`,`exitplanmode`,`exit_plan_mode`,`updateplan`,`update_plan`,`task_create`,`task_update`,`task_list`,`task_get`,`task_current`,`task_propose`,`ticket_resolve`,`taskcreate`,`taskupdate`,`tasklist`,`taskget`]),Kae=new Set([`cd`,`echo`,`printf`,`pwd`,`true`,`false`,`time`]),qae=new Set([`cat`,`head`,`tail`,`less`,`more`,`bat`,`nl`,`jq`,`wc`]),Jae=new Set([`grep`,`egrep`,`fgrep`,`rg`,`ag`,`ack`,`find`,`fd`,`ls`,`tree`,`which`]),Yae=new Set([`git`,`gh`,`jj`,`hg`,`svn`,`glab`]),Xae=new Set(`pnpm.npm.npx.yarn.bun.bunx.vitest.jest.vp.tsc.tsgo.eslint.oxlint.biome.prettier.ruff.pytest.make.cargo.gradle.mvn.xcodebuild.swift.pip.uv.poetry`.split(`.`)),Zae=new Set([`curl`,`wget`,`http`,`httpie`]),Qae=/\|\||&&|;|\||\n/u,$ae=/^[A-Za-z_][A-Za-z0-9_]*=\S*\s+/u,eoe=/\d?>>?\s*(?<target>[^\s|;&]+)/gu,toe=new Set([`/dev/null`,`&1`,`&2`]);function noe(e){return Lv[e]}function roe(e){let t=e?.command??e?.cmd;if(typeof t!=`string`)return;let n=t.trim();return n.length>0?n:void 0}function ioe(e){for(let t of e.matchAll(eoe)){let e=t.groups?.target;if(e&&!toe.has(e))return!0}return!1}function aoe(e){if(ioe(e))return`command`;let t=e.trim().replace($ae,``).split(/\s+/u)[0]?.replace(/^.*\//u,``).toLowerCase();if(!(!t||Kae.has(t)))return qae.has(t)?`file_read`:Jae.has(t)?`file_search`:Yae.has(t)?`version_control`:Xae.has(t)?`build_test`:Zae.has(t)?`web_fetch`:`command`}function ooe(e){let t=new Set(e.split(Qae).map(aoe).filter(e=>e!==void 0));if(t.size===0||t.has(`command`))return`command`;let[n]=t;return t.size===1&&n?n:[...t].every(e=>e===`file_read`||e===`file_search`)?`file_search`:`command`}function soe(e){let t=e.toolName.trim().toLowerCase();if(t.startsWith(`mcp__`)||t.includes(`mcp`))return`mcp_tool`;if(Gae.has(t))return`task_plan`;if(Wae.has(t))return`web_fetch`;if(Uae.has(t)||t.includes(`agent`))return`subagent`;if(zae.has(t))return`file_read`;if(Bae.has(t))return`file_search`;if(Vae.has(t))return`file_change`;if(Hae.has(t)||t.includes(`bash`)||t.includes(`shell`)||t.includes(`terminal`)||t.includes(`command`)){let t=roe(e.toolInput);return t?ooe(t):`command`}return t.includes(`websearch`)||t.includes(`web_search`)?`web_search`:t.includes(`webfetch`)||t.includes(`web_fetch`)?`web_fetch`:t.includes(`todo`)||t.includes(`plan`)?`task_plan`:t.includes(`edit`)||t.includes(`write`)||t.includes(`patch`)||t.includes(`replace`)||t.includes(`create`)||t.includes(`delete`)?`file_change`:t.includes(`read`)||t.includes(`view`)?`file_read`:t.includes(`grep`)||t.includes(`glob`)?`file_search`:t.includes(`image`)?`image_view`:`tool`}function Rv(e){return typeof e==`object`&&e&&!Array.isArray(e)?e:void 0}function coe(e){return typeof e==`string`&&Rae.has(e)?e:void 0}function loe(e){let t=Rv(e);return coe(t?.toolCategory)??uoe(t)}function uoe(e){let t=Rv(e),n=t?.toolName;if(!(typeof n!=`string`||n.trim().length===0))return soe({toolName:n,toolInput:Rv(t?.input)})}var doe=[{value:Au.make(`codex`),label:`Codex`,available:!0},{value:Au.make(`claudeAgent`),label:`Claude`,available:!0},{value:Au.make(`opencode`),label:`OpenCode`,available:!0,pickerSidebarBadge:`new`},{value:Au.make(`cursor`),label:`Cursor`,available:!0,pickerSidebarBadge:`new`},{value:Au.make(`grok`),label:`Grok`,available:!0,pickerSidebarBadge:`new`},{value:Au.make(`muse`),label:`Muse Code`,available:!0,pickerSidebarBadge:`new`}];function zv(e){return e.subagent!==void 0}function foe(e){let t=e.subagent;if(t)return t.status===`running`?t.updates.at(-1)?.text:t.resultSummary}function Bv(e){return e.tone===`tool`||e.tone===`error`||e.command!==void 0&&e.command.trim().length>0||e.requestKind!==void 0?!0:e.itemType!==void 0&&ff(e.itemType)}function poe(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 Vv(e){if(e.tone===`error`)return!0;let t=e.toolLifecycleStatus;if(t===`failed`||t===`declined`)return!0;if(!Bv(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:poe(r)}function Hv(e){if(!Bv(e)||Vv(e))return!1;let t=e.toolLifecycleStatus;return!(t===`failed`||t===`declined`||t===`inProgress`||t===`stopped`)}function Uv(e){return Bv(e)&&e.toolLifecycleStatus===`inProgress`}function Wv(e){return!(!Bv(e)||Vv(e)||Hv(e))}function Gv(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 Kv(e,t){return!e?.startedAt||!e.completedAt?!1:t?t.status!==`running`:!0}function moe(e,t,n){let r=t?.status===`running`?t.activeTurnId:null;return r===null?Kv(e,t)?n:e?.startedAt??n:e?.turnId===r?e.startedAt??n:n}function qv(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 Jv(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 Yv(e){let t=new Map,n=[...e].toSorted(xy);for(let e of n){let n=e.payload&&typeof e.payload==`object`?e.payload:null,r=n&&typeof n.requestId==`string`?Ll.make(n.requestId):null,i=n&&(n.requestKind===`command`||n.requestKind===`file-read`||n.requestKind===`file-change`)?n.requestKind:n?qv(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&&Jv(a)){t.delete(r);continue}}return[...t.values()].toSorted((e,t)=>e.createdAt.localeCompare(t.createdAt))}function Xv(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 hoe(e){let t=e?.answers;if(!t||typeof t!=`object`||Array.isArray(t))return{};let n={};for(let[e,r]of Object.entries(t)){let t=(Array.isArray(r)?r:[r]).filter(e=>typeof e==`string`).map(e=>e.trim()).filter(e=>e.length>0);t.length>0&&(n[e]=t)}return n}function Zv(e){let t=new Map,n=[];for(let r of[...e].toSorted(xy)){let e=r.payload&&typeof r.payload==`object`?r.payload:null,i=e&&typeof e.requestId==`string`?Ll.make(e.requestId):null;if(!i)continue;if(r.kind===`user-input.requested`){let n=Xv(e);n&&t.set(i,{createdAt:r.createdAt,questions:n});continue}if(r.kind!==`user-input.resolved`)continue;let a=t.get(i);a&&(t.delete(i),n.push({id:`user-input:${i}`,createdAt:a.createdAt,requestId:i,questions:a.questions,answers:hoe(e),answeredAt:r.createdAt}))}return n}function Qv(e){let t=new Map,n=[...e].toSorted(xy);for(let e of n){let n=e.payload&&typeof e.payload==`object`?e.payload:null,r=n&&typeof n.requestId==`string`?Ll.make(n.requestId):null,i=n&&typeof n.detail==`string`?n.detail:void 0;if(e.kind===`user-input.requested`&&r){let i=Xv(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&&Jv(i)&&t.delete(r)}return[...t.values()].toSorted((e,t)=>e.createdAt.localeCompare(t.createdAt))}function goe(e,t){let n=[...e].toSorted(xy).filter(e=>e.kind===`turn.plan.updated`),r=Mn([...t?ef(n,e=>e.turnId===t):lt(),mo(n)]).pipe(sn);if(!r)return null;let i=r.payload&&typeof r.payload==`object`?r.payload:null,a=i?.plan;if(!Array.isArray(a))return null;let o=[];for(let e of a){if(!e||typeof e!=`object`)continue;let t=e;if(typeof t.step!=`string`)continue;let n=t.status===`completed`||t.status===`inProgress`?t.status:`pending`;o.push({step:t.step,status:n})}return o.length===0?null:{createdAt:r.createdAt,turnId:r.turnId,...i&&`explanation`in i?{explanation:i.explanation}:{},steps:o}}function $v(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 cy(n)}let n=[...e].toSorted((e,t)=>e.updatedAt.localeCompare(t.updatedAt)||e.id.localeCompare(t.id)).at(-1);return n?cy(n):null}function _oe(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 cy(n)}}return $v(t,e.latestTurn?.turnId??null)}function voe(e){return e!==null&&e.implementedAt===null}function ey(e){let t=[...e].toSorted(xy),n=Coe(t),r=new Set,i=[];for(let e of t)if(e.kind!==`tool.started`&&e.kind!==`context-window.updated`&&e.kind!==`user-input.requested`&&e.kind!==`user-input.resolved`&&e.summary!==`Checkpoint captured`&&!Ooe(e)){if(ty(e)){let t=ny(e);if(!n.has(t)){if(e.kind===`task.started`)continue;i.push(yoe(e));continue}if(r.has(t))continue;r.add(t),i.push(Toe(e,t));continue}i.push(iy(e))}return Doe(Aoe(i),n).map(e=>{let{activityKind:t,collapseKey:n,subagentRunKey:r,...i}=e;return Object.assign(i,{sourceActivityKind:t})})}function ty(e){return e.kind===`task.started`||e.kind===`task.progress`||e.kind===`task.completed`}function yoe(e){let t=iy(e),n=ly(e.payload),r=uy(n?.summary),i=uy(n?.detail),a=r??i;return a===null?t:(t.label=a,r===null&&delete t.detail,t)}function ny(e){let t=uy(ly(e.payload)?.taskId);return t===null?`activity:${e.id}`:`task:${t}`}function boe(e){let t=ly(e);if(!t)return{};let n=dy(t.total_tokens),r=dy(t.tool_uses),i=dy(t.duration_ms);return{...n===null?{}:{totalTokens:n},...r===null?{}:{toolUseCount:r},...i===null?{}:{durationMs:i}}}var xoe=`subagent`;function Soe(e){return e.subagentType===null?e.taskType===null||e.taskType===xoe:!0}function Coe(e){let t=new Map;for(let n of e){if(!ty(n))continue;let e=ly(n.payload),r=ny(n),i=t.get(r);i||(i={runKey:r,taskId:uy(e?.taskId)??r,startedAt:n.createdAt,label:null,subagentType:null,taskType:null,toolUseId:null,updates:[],status:`running`,completedAt:null,resultSummary:null,usage:{}},t.set(r,i)),i.toolUseId??=uy(e?.toolUseId),i.subagentType??=uy(e?.subagentType),i.taskType??=uy(e?.taskType);let a=boe(e?.usage);if(Object.keys(a).length>0&&(i.usage=a),n.kind===`task.started`){i.label??=uy(e?.detail);continue}if(n.kind===`task.progress`){i.label??=uy(e?.title)??uy(e?.summary);let t=uy(e?.summary)??uy(e?.detail)??uy(e?.title)??n.summary,r=uy(e?.lastToolName);i.updates.push({id:n.id,createdAt:n.createdAt,text:t,...r===null?{}:{lastToolName:r}});continue}i.label??=uy(e?.title)??uy(e?.detail),i.status=woe(e?.status),i.completedAt=n.createdAt,i.resultSummary=uy(e?.summary)??uy(e?.detail)}for(let[e,n]of t)Soe(n)||t.delete(e);return t}function woe(e){return e===`failed`||e===`stopped`?e:`completed`}function Toe(e,t){return{id:e.id,createdAt:e.createdAt,turnId:e.turnId,label:e.summary,tone:`tool`,toolCategory:`subagent`,activityKind:e.kind,subagentRunKey:t}}var Eoe={running:`inProgress`,completed:`completed`,failed:`failed`,stopped:`stopped`};function Doe(e,t){if(t.size===0)return[...e];let n=new Map;for(let e of t.values())e.toolUseId!==null&&n.set(e.toolUseId,e);let r=new Set;for(let t of e){let e=t.toolCallId?n.get(t.toolCallId):void 0;e&&r.add(e.runKey)}let i=[];for(let a of e){if(a.subagentRunKey!==void 0){if(r.has(a.subagentRunKey))continue;let e=t.get(a.subagentRunKey);i.push(e?ry(a,e):a);continue}let e=a.toolCallId?n.get(a.toolCallId):void 0;i.push(e?ry(a,e):a)}return i}function ry(e,t){let n=t.resultSummary??e.detail??null,r={taskId:t.taskId,status:t.status,startedAt:t.startedAt,...t.completedAt===null?{}:{completedAt:t.completedAt},...t.subagentType===null?{}:{subagentType:t.subagentType},updates:t.updates,...n===null?{}:{resultSummary:n},...t.usage};return{...e,label:t.label??e.label,tone:t.status===`failed`?`error`:e.tone,toolCategory:`subagent`,toolLifecycleStatus:Eoe[t.status],subagent:r}}function Ooe(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 koe(e){if(!e)return;let t=e.status;if(t===`inProgress`||t===`completed`||t===`failed`||t===`declined`||t===`stopped`)return t}function iy(e){let t=e.payload&&typeof e.payload==`object`?e.payload:null,n=Woe(t),r=Qoe(t),i=Goe(t),a=Xoe(t,i??e.summary),o=Koe(t),s={id:e.id,createdAt:e.createdAt,turnId:e.turnId,label:e.summary,tone:e.tone===`approval`?`info`:e.tone,activityKind:e.kind},c=vy(t),l=Zoe(t);if(a&&(s.detail=a),n.command&&(s.command=n.command),n.rawCommand&&(s.rawCommand=n.rawCommand),r.length>0&&(s.changedFiles=r),i&&(s.toolTitle=i),c===`mcp_tool_call`){let e=ly(t?.data);e?.item!==void 0&&(s.toolData=e.item)}c&&(s.itemType=c);let u=loe(ly(t?.data));u&&(s.toolCategory=u),l&&(s.requestKind=l),o&&(s.toolCallId=o);let d=koe(t);!d&&e.kind===`tool.completed`&&(d=`completed`),d&&(s.toolLifecycleStatus=d),e.kind===`code.published`&&typeof t?.url==`string`&&(s.externalUrl=t.url);let f=Poe(s);return f&&(s.collapseKey=f),s}function Aoe(e){let t=[],n=new Map;for(let r of e){let e=joe(t,n,r);if(e!==void 0){let i=t[e],a=Moe(i,r);t[e]=a,ay(n,a,e);continue}t.push(r),ay(n,r,t.length-1)}return t}function joe(e,t,n){let r=n.collapseKey===void 0?void 0:t.get(n.collapseKey),i=r===void 0?void 0:e[r];if(r!==void 0&&i&&oy(i,n))return r;let a=e.length-1,o=e.at(-1);if(o&&oy(o,n))return a}function ay(e,t,n){if(t.collapseKey!==void 0){if(t.activityKind===`tool.updated`){e.set(t.collapseKey,n);return}e.delete(t.collapseKey)}}function oy(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&&sy(e.toolTitle??e.label)===sy(t.toolTitle??t.label)}function Moe(e,t){let n=Noe(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.toolCategory??e.toolCategory,l=t.requestKind??e.requestKind,u=t.collapseKey??e.collapseKey,d=t.toolCallId??e.toolCallId,f=t.toolLifecycleStatus??e.toolLifecycleStatus,p=t.toolData??e.toolData;return{...e,...t,...r?{detail:r}:{},...i?{command:i}:{},...a?{rawCommand:a}:{},...n.length>0?{changedFiles:n}:{},...o?{toolTitle:o}:{},...s?{itemType:s}:{},...c?{toolCategory:c}:{},...l?{requestKind:l}:{},...u?{collapseKey:u}:{},...d?{toolCallId:d}:{},...f===void 0?{}:{toolLifecycleStatus:f},...p===void 0?{}:{toolData:p}}}function Noe(e,t){let n=[...e??[],...t??[]];return n.length===0?[]:[...new Set(n)]}function Poe(e){if(e.activityKind!==`tool.updated`&&e.activityKind!==`tool.completed`)return;if(e.toolCallId)return`tool:${e.toolCallId}`;let t=sy(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 sy(e){return e.replace(/\s+(?:complete|completed)\s*$/i,``).trim()}function cy(e){return{id:e.id,createdAt:e.createdAt,updatedAt:e.updatedAt,turnId:e.turnId,planMarkdown:e.planMarkdown,implementedAt:e.implementedAt,implementationThreadId:e.implementationThreadId}}function ly(e){return e&&typeof e==`object`?e:null}function uy(e){if(typeof e!=`string`)return null;let t=e.trim();return t.length>0?t:null}function dy(e){return typeof e==`number`&&Number.isFinite(e)?e:null}function fy(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 Foe(e){let t=fy(e);if(t.length===0)return null;let n=t.replace(/\\/g,`/`).split(`/`).at(-1)?.trim()??``;return n.length>0?n.toLowerCase():null}function Ioe(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 Loe=[{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 Roe(e){return Loe.find(t=>t.executables.includes(e))}function zoe(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=fy(r);return i.length>0?i:null}function Boe(e){let t=Ioe(e);if(!t||t.rest.length===0)return e;let n=Foe(t.executable);if(!n)return e;let r=Roe(n);return r?zoe(t.rest,r.wrapperFlagPattern)??e:e}function Voe(e){return/[\s"'`]/.test(e)?`"${e.replace(/"/g,`\\"`)}"`:e}function py(e){let t=uy(e);if(t)return t;if(!Array.isArray(e))return null;let n=[];for(let t of e){let e=uy(t);e!==null&&n.push(e)}return n.length===0?null:n.map(e=>Voe(e)).join(` `)}function Hoe(e){let t=py(e);return t?Boe(t):null}function Uoe(e,t){let n=py(e);return!n||t===null||n===t?null:n}function Woe(e){let t=ly(e?.data),n=ly(t?.item),r=ly(n?.result),i=ly(n?.input),a=uy(e?.itemType),o=uy(e?.detail),s=[n?.command,i?.command,r?.command,t?.command,ly(t?.input)?.command,a===`command_execution`&&o?_y(o).output:null];for(let e of s){let t=Hoe(e);if(t)return{command:t,rawCommand:Uoe(e,t)}}return{command:null,rawCommand:null}}function Goe(e){return uy(e?.title)}function Koe(e){return uy(ly(e?.data)?.toolCallId)}function my(e){return e.replace(/\s+/g,` `).trim()}function qoe(e,t=84){return e.length<=t?e:`${e.slice(0,t-1).trimEnd()}…`}function hy(e){let t=uy(e);return t?sy(my(t)).toLowerCase():null}function gy(e){let t=[];for(let n of e.split(/\r?\n/u)){let e=my(n);e.length>0&&t.push(e)}let n=t.find(e=>e!=="```");return n?qoe(n):t.length>1?`${t.length.toLocaleString()} lines`:null}function Joe(e){let t=ly(ly(e?.data)?.rawOutput);if(!t)return null;let n=dy(t.totalFiles);if(n!==null){let e=t.truncated===!0?`+`:``;return`${n.toLocaleString()} file${n===1?``:`s`}${e}`}let r=uy(t.content);if(r)return gy(r);let i=uy(t.stdout);return i?gy(i):null}function Yoe(e,t){let n=uy(ly(e?.data)?.kind)?.toLowerCase(),r=uy(e?.title??t)?.toLowerCase();return vy(e)===`command_execution`||n===`execute`||r===`terminal`||r===`ran command`}function Xoe(e,t){let n=uy(e?.detail),r=n?_y(n).output:null,i=hy(t),a=hy(r);if(r&&i!==a)return r;if(Yoe(e,t))return null;let o=Joe(e);return o&&hy(o)!==i?o:null}function _y(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 vy(e){if(typeof e?.itemType==`string`&&ff(e.itemType))return e.itemType}function Zoe(e){return e?.requestKind===`command`||e?.requestKind===`file-read`||e?.requestKind===`file-change`?e.requestKind:qv(e?.requestType)??void 0}function yy(e,t,n){let r=uy(n);!r||t.has(r)||(t.add(r),e.push(r))}function by(e,t,n,r){if(r>4||t.length>=12)return;if(Array.isArray(e)){for(let i of e)if(by(i,t,n,r+1),t.length>=12)return;return}let i=ly(e);if(i){yy(t,n,i.path),yy(t,n,i.filePath),yy(t,n,i.relativePath),yy(t,n,i.filename),yy(t,n,i.newPath),yy(t,n,i.oldPath);for(let e of[`item`,`result`,`input`,`data`,`changes`,`files`,`edits`,`patch`,`patches`,`operations`])if(e in i&&(by(i[e],t,n,r+1),t.length>=12))return}}function Qoe(e){let t=[],n=new Set;return by(ly(e?.data),t,n,0),t}function xy(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=Sy(e.kind)-Sy(t.kind);return r===0?e.id.localeCompare(t.id):r}function Sy(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 Cy(e,t,n,r=[],i=[]){let a=e.map(e=>({id:e.id,kind:`message`,createdAt:e.createdAt,message:e})),o=t.map(e=>({id:e.id,kind:`proposed-plan`,createdAt:e.createdAt,proposedPlan:e})),s=n.map(e=>({id:e.id,kind:`work`,createdAt:e.createdAt,entry:e})),c=r.map(e=>({id:e.id,kind:`user-input`,createdAt:e.createdAt,exchange:e})),l=i.map(e=>({id:e.id,kind:`task-proposal`,createdAt:e.createdAt,proposal:e.proposal}));return[...a,...o,...s,...c,...l].toSorted((e,t)=>e.createdAt.localeCompare(t.createdAt))}function $oe(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 wy(e){return!e||e.status===`stopped`||e.status===`interrupted`||e.status===`error`?`disconnected`:e.status===`starting`?`connecting`:e.status===`running`?`running`:`ready`}var ese=`[data-thread-item], [data-thread-selection-safe]`;async function tse(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 nse(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 Ty={"Pending Approval":5,"Awaiting Input":4,Working:3,Connecting:3,"Plan Ready":2,Completed:1};function rse(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 ise(){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=rse({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 ase(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 ose(e){return e===null?!0:!e.closest(ese)}function sse(e){return e>1}function Ey(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 cse(e,t=10){return e.slice(0,Math.max(0,t))}function lse(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 use(e){return e.button===2?!0:e.isMac&&e.button===0&&e.ctrlKey}function dse(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?K(t,`bg-sidebar-row-active text-sidebar-foreground font-medium hover:bg-sidebar-row-active hover:text-sidebar-foreground`):e.isSelected?K(t,`bg-sidebar-row-selected text-sidebar-foreground hover:bg-sidebar-row-active hover:text-sidebar-foreground`):e.isActive?K(t,`bg-sidebar-row-active text-sidebar-foreground font-medium hover:bg-sidebar-row-active hover:text-sidebar-foreground`):K(t,`text-sidebar-muted-foreground/80 hover:bg-sidebar-row-hover hover:text-sidebar-foreground`)}function Dy(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`&&Kv(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}:ase(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 Oy(e){let t=null;for(let n of e)n!==null&&(t===null||Ty[n.label]>Ty[t.label])&&(t=n);return t}function fse(e,t){let n=new Set(t.pinnedProjectKeys),r=new Set(t.hiddenProjectKeys),i=[],a=[],o=[];for(let t of e)n.has(t.projectKey)?i.push(t):r.has(t.projectKey)?o.push(t):a.push(t);return{pinned:i,regular:a,hidden:o}}function ky(e,t){let n=e.filter(t);return n.length===0?[...e]:[...n,...e.filter(e=>!t(e))]}function Ay(e){let{activeThreadId:t,isThreadListExpanded:n,previewLimit:r,threads:i}=e,a=i.length>r;if(!a||n)return{hasHiddenThreads:a,hiddenThreads:[],visibleThreads:[...i]};let o=i.slice(0,r);if(!t||o.some(e=>e.id===t))return{hasHiddenThreads:!0,hiddenThreads:i.slice(r),visibleThreads:o};let s=i.find(e=>e.id===t);if(!s)return{hasHiddenThreads:!0,hiddenThreads:i.slice(r),visibleThreads:o};let c=new Set([...o,s].map(e=>e.id));return{hasHiddenThreads:!0,hiddenThreads:i.filter(e=>!c.has(e.id)),visibleThreads:i.filter(e=>c.has(e.id))}}function pse(e){let{deletedThreadId:t,deletedThreadIds:n,sortOrder:r,threads:i}=e,a=i.find(e=>e.id===t);return a?Fv(i.filter(e=>e.projectId===a.projectId&&e.id!==t&&!n?.has(e.id)),r)[0]?.id??null:null}function jy(e,t,n){return t.length>0?t.reduce((e,t)=>Math.max(e,Pv(t,n)),-1/0):n===`created_at`?Mv(e.createdAt)??-1/0:Mv(e.updatedAt??e.createdAt)??-1/0}function My(e,t,n,r){return t===`manual`?[...e]:[...e].toSorted((e,i)=>{let a=jy(i,n(i),t),o=jy(e,n(e),t);return(a===o?0:a>o?1:-1)||r(e,i)})}function mse(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 My(e,n,e=>r.get(e.id)??[],(e,t)=>e.title.localeCompare(t.title)||e.id.localeCompare(t.id))}function Ny(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 My(e,n,e=>i.get(e.projectKey)??[],(e,t)=>e.title.localeCompare(t.title)||e.projectKey.localeCompare(t.projectKey))}function hse(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 My(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 Py(e){return e?.trim()||null}function gse(e,t){let n=e.find(e=>e.id===t);if(!n)return null;let r=Py(n.worktreePath);return r?e.some(e=>e.id===t?!1:Py(e.worktreePath)===r)?null:r:null}function Fy(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 Iy(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=z_(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 Ly(e){let t=(0,X.c)(2),{className:n}=e,r;return t[0]===n?r=t[1]:(r=(0,Y.jsx)(Ih,{className:n}),t[0]=n,t[1]=r),r}function Ry(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 zy(e){let{threadBranch:t,gitStatus:n}=e;return n===null||t===null||n.refName!==t?null:n.pr??null}function By(e){return e.length===0?null:{label:`Terminal process running`,colorClass:`text-teal-600 dark:text-teal-300/90`,pulse:!0}}function _se(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=Fy(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)(Ah,{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)(Ia,{render:c,children:l}),t[7]=c,t[8]=u);let d;t[9]===o?d=t[10]:(d=(0,Y.jsx)(Rs,{side:`top`,children:o}),t[9]=o,t[10]=d);let f;return t[11]!==u||t[12]!==d?(f=(0,Y.jsxs)(Zc,{children:[u,d]}),t[11]=u,t[12]=d,t[13]=f):f=t[13],f}function Vy(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)(Ia,{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)(Rs,{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)(Zc,{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)(Ia,{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)(Rs,{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)(Zc,{children:[l,u]}),t[26]=l,t[27]=u,t[28]=d):d=t[28],d}function vse(e){let t=(0,X.c)(26),{thread:n}=e,r;t[0]!==n.environmentId||t[1]!==n.id?(r=$u(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[fs(i)],t[3]=i,t[4]=a);let o=bv(a),s;t[5]!==n.environmentId||t[6]!==n.projectId?(s=zc(n.environmentId,n.projectId),t[5]=n.environmentId,t[6]=n.projectId,t[7]=s):s=t[7];let c=O_(s)?.workspaceRoot??null,l=n.worktreePath??c,u;t[8]!==l||t[9]!==n.branch||t[10]!==n.environmentId||t[11]!==n.worktreePath?(u=(n.branch!=null||n.worktreePath!==null)&&l!==null?ov.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]=u):u=t[12];let d=$r(u),f;t[13]!==d.data||t[14]!==n.branch?(f=Iy(zy({threadBranch:n.branch,gitStatus:d.data}),d.data?.sourceControlProvider),t[13]=d.data,t[14]=n.branch,t[15]=f):f=t[15];let p=f,m;t[16]!==o||t[17]!==n?(m=Dy({thread:{...n,lastVisitedAt:o}}),t[16]=o,t[17]=n,t[18]=m):m=t[18];let h=m;if(!p&&!h)return null;let g;t[19]===p?g=t[20]:(g=p?(0,Y.jsxs)(Zc,{children:[(0,Y.jsx)(Ia,{render:(0,Y.jsx)(`span`,{"aria-label":p.tooltip,className:`inline-flex items-center justify-center ${p.colorClass}`}),children:(0,Y.jsx)(Ly,{className:`size-3`})}),(0,Y.jsx)(Rs,{side:`top`,children:(0,Y.jsx)(Ry,{status:p})})]}):null,t[19]=p,t[20]=g);let _;t[21]===h?_=t[22]:(_=h?(0,Y.jsx)(Vy,{status:h}):null,t[21]=h,t[22]=_);let v;return t[23]!==g||t[24]!==_?(v=(0,Y.jsxs)(`span`,{className:`inline-flex shrink-0 items-center gap-1.5`,children:[g,_]}),t[23]=g,t[24]=_,t[25]=v):v=t[25],v}function yse(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=L_(r),a=lo(n.environmentId),o=wd(),s=o!==null&&n.environmentId!==o,c=a?.label??null,l=s?c??`Remote`:null,u;t[3]===i?u=t[4]:(u=By(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)(Zc,{children:[(0,Y.jsx)(Ia,{render:(0,Y.jsx)(`span`,{role:`img`,"aria-label":d.label,className:`inline-flex items-center justify-center ${d.colorClass}`}),children:(0,Y.jsx)(bg,{className:`size-3 ${d.pulse?`animate-status-pulse`:``}`})}),(0,Y.jsx)(Rs,{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)(Zc,{children:[(0,Y.jsx)(Ia,{render:(0,Y.jsx)(`span`,{"aria-label":l??`Remote`,className:`inline-flex items-center justify-center`}),children:(0,Y.jsx)(vh,{className:`size-3 text-muted-foreground/60`})}),(0,Y.jsx)(Rs,{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 bse=`project-favicon-missing`;function xse(e){if(!e)return!1;try{let t=new URL(e,`https://p4.invalid`).pathname;return t.slice(t.lastIndexOf(`/`)+1)===bse}catch{return!1}}var Sse=30*6e4,Cse=5*6e4,Hy=60*6e4,wse=class extends Qr()(`InvalidAssetCollectionKeyError`,{key:Co,cause:Zl()}){get message(){return`Invalid asset collection atom key: ${JSON.stringify(this.key)}.`}},Tse=Dn(ae([Lu,Zo($c)]));function Ese(e){try{return Tse(JSON.parse(e))}catch(t){throw new wse({key:e,cause:t})}}function Uy(e,t){try{return new URL(t,e).toString()}catch{return null}}function Dse(e){let t=Pc(e,{label:`environment-data:assets:create-url`,tag:Bl.assetsCreateUrl,staleTimeMs:Cse,idleTtlMs:Hy,refreshIntervalMs:Sse}),n=ba(e=>{let[n,r]=Ese(e);return Na(e=>r.map(r=>e(t({environmentId:n,input:{resource:r}})))).pipe(Cr(Hy),$o(`environment-data:assets:create-urls:${e}`))});return{createUrl:t,createUrls:e=>n(JSON.stringify([e.environmentId,e.resources]))}}var Wy=Dse(pi);function Gy(e,t){let n=(0,X.c)(10),r=Ei(e),i;n[0]!==e||n[1]!==t?(i=Wy.createUrl({environmentId:e,input:{resource:t}}),n[0]=e,n[1]=t,n[2]=i):i=n[2];let a=Fd(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=Uy(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 Ose(e,t){let n=Gy(e,t);return n._tag===`Success`?n.url:null}function kse(e,t){let n=(0,X.c)(8),r=Ei(e),i;n[0]!==e||n[1]!==t?(i=Wy.createUrls({environmentId:e,resources:t}),n[0]=e,n[1]=t,n[2]=i):i=n[2];let a=Fd(i),o;return n[3]!==r._tag||n[4]!==r.value||n[5]!==t||n[6]!==a?(o=r._tag===`None`?t.map(Ase):a.map(e=>Qa(e)?Uy(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 Ase(){return null}var Ky=new Set;function qy(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=Ose(e.environmentId,n),i=e.fallbackIcon??Nh;if(!r||xse(r)){let n;return t[2]!==i||t[3]!==e.className?(n=(0,Y.jsx)(Jy,{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)(jse,{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 Jy(e){let t=(0,X.c)(5),{className:n,icon:r}=e,i;t[0]===n?i=t[1]:(i=K(`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 jse(e){let t=(0,X.c)(19),{src:n,className:r,fallbackIcon:i}=e,a;t[0]===n?a=t[1]:(a=()=>Ky.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)(Jy,{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=K(`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=()=>{Ky.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 Yy=new Set,Xy=new WeakMap,Zy=new WeakMap,Qy=new WeakMap,$y=new WeakMap,eb=new WeakMap,tb=new WeakMap,nb=new WeakMap,rb=new WeakMap,ib=new WeakSet,ab,ob=0,sb=0,cb=`__aa_tgt`,lb=`__aa_del`,ub=`__aa_new`,db=e=>{let t=Fse(e);t&&t.forEach(e=>Ise(e))},Mse=e=>{e.forEach(e=>{e.target===ab&&Nse(),Xy.has(e.target)&&mb(e.target)})};function fb(e){let t=e.getBoundingClientRect(),n=ab?.clientWidth||0,r=ab?.clientHeight||0;return t.bottom<0||t.top>r||t.right<0||t.left>n}function pb(e){$y.get(e)?.disconnect();let t=Xy.get(e),n=0;t||(t=bb(e),Xy.set(e,t));let{offsetWidth:r,offsetHeight:i}=ab,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&&mb(e)},{root:ab,threshold:1,rootMargin:a});o.observe(e),$y.set(e,o)}function mb(e,t=!0){clearTimeout(rb.get(e));let n=Sb(e),r=t?Db(n)?500:n.duration:0;rb.set(e,setTimeout(async()=>{let t=Qy.get(e);try{await t?.finished,Xy.set(e,bb(e)),pb(e)}catch{}},r))}function Nse(){clearTimeout(rb.get(ab)),rb.set(ab,setTimeout(()=>{Yy.forEach(e=>Tb(e,e=>hb(()=>mb(e))))},100))}function Pse(e){setTimeout(()=>{tb.set(e,setInterval(()=>hb(mb.bind(null,e)),2e3))},Math.round(2e3*Math.random()))}function hb(e){typeof requestIdleCallback==`function`?requestIdleCallback(()=>e()):requestAnimationFrame(()=>e())}var gb,_b=typeof window<`u`&&`ResizeObserver`in window;_b&&(ab=document.documentElement,new MutationObserver(db),gb=new ResizeObserver(Mse),window.addEventListener(`scroll`,()=>{sb=window.scrollY,ob=window.scrollX}),gb.observe(ab));function Fse(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(vb(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(lb in r)return!1;vb(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(lb in r)return!1;r instanceof Element&&(e.add(r),vb(t.target,r),Zy.set(r,[t.previousSibling,t.nextSibling]))}}return e},new Set)}function vb(e,t){!t&&!(cb in e)?Object.defineProperty(e,cb,{value:e}):t&&!(cb in t)&&Object.defineProperty(t,cb,{value:e})}function Ise(e){var t;let n=e.isConnected,r=Xy.has(e);n&&Zy.has(e)&&Zy.delete(e),Qy.get(e)?.playState!==`finished`&&((t=Qy.get(e))==null||t.cancel()),ub in e?Ob(e):r&&n?Rse(e):r&&!n?zse(e):Ob(e)}function yb(e){return Number(e.replace(/[^0-9.\-]/g,``))}function Lse(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 bb(e){let t=e.getBoundingClientRect(),{x:n,y:r}=Lse(e);return{top:t.top+r,left:t.left+n,width:t.width,height:t.height}}function xb(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=yb(s.paddingTop)+yb(s.paddingBottom)+yb(s.borderTopWidth)+yb(s.borderBottomWidth),t=yb(s.paddingLeft)+yb(s.paddingRight)+yb(s.borderRightWidth)+yb(s.borderLeftWidth);r-=t,a-=t,i-=e,o-=e}return[r,a,i,o].map(Math.round)}function Sb(e){return cb in e&&nb.has(e[cb])?nb.get(e[cb]):{duration:250,easing:`ease-in-out`}}function Cb(e){if(cb in e)return e[cb]}function wb(e){let t=Cb(e);return t?ib.has(t):!1}function Tb(e,...t){t.forEach(t=>t(e,nb.has(e)));for(let n=0;n<e.children.length;n++){let r=e.children.item(n);r&&t.forEach(e=>e(r,nb.has(r)))}}function Eb(e){return Array.isArray(e)?e:[e]}function Db(e){return typeof e==`function`}function Rse(e){let t=Xy.get(e),n=bb(e);if(!wb(e))return Xy.set(e,n);if(fb(e)){Xy.set(e,n),pb(e);return}let r;if(!t)return;let i=Sb(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]=xb(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]=Eb(i(e,`remain`,t,n));r=new Animation(a),r.play()}Qy.set(e,r),Xy.set(e,n),r.addEventListener(`finish`,mb.bind(null,e,!1),{once:!0})}function Ob(e){ub in e&&delete e[ub];let t=bb(e);Xy.set(e,t);let n=Sb(e);if(!wb(e))return;if(fb(e)){pb(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]=Eb(n(e,`add`,t));r=new Animation(i),r.play()}Qy.set(e,r),r.addEventListener(`finish`,mb.bind(null,e,!1),{once:!0})}function kb(e,t){var n;e.remove(),Xy.delete(e),Zy.delete(e),Qy.delete(e),(n=$y.get(e))==null||n.disconnect(),setTimeout(()=>{if(lb in e&&delete e[lb],Object.defineProperty(e,ub,{value:!0,configurable:!0}),t&&e instanceof HTMLElement)for(let n in t)e.style[n]=``},0)}function zse(e){var t;if(!Zy.has(e)||!Xy.has(e))return;let[n,r]=Zy.get(e);Object.defineProperty(e,lb,{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=Cb(e))==null||t.appendChild(e),!wb(e))return kb(e);let[o,s,c,l]=Vse(e),u=Sb(e),d=Xy.get(e);(i!==ob||a!==sb)&&Bse(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(!Db(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]=Eb(u(e,`remove`,d));n?.styleReset!==!1&&(p=n?.styleReset||p,Object.assign(e.style,p)),f=new Animation(t),f.play()}Qy.set(e,f),f.addEventListener(`finish`,()=>kb(e,p),{once:!0})}function Bse(e,t,n,r){let i=ob-t,a=sb-n,o=document.documentElement.style.scrollBehavior;if(getComputedStyle(ab).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(!Db(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 Vse(e){let t=Xy.get(e),[n,,r]=xb(e,t,bb(e)),i=e.parentElement;for(;i&&(getComputedStyle(i).position===`static`||i instanceof HTMLBodyElement);)i=i.parentElement;i||=document.body;let a=getComputedStyle(i),o=!Qy.has(e)||Qy.get(e)?.playState===`finished`?bb(i):Xy.get(i);return[Math.round(t.top-o.top)-yb(a.borderTopWidth),Math.round(t.left-o.left)-yb(a.borderLeftWidth),n,r]}function Ab(e,t={}){if(_b&&gb&&!(window.matchMedia(`(prefers-reduced-motion: reduce)`).matches&&!Db(t)&&!t.disrespectUserMotionPreference)){ib.add(e),getComputedStyle(e).position===`static`&&Object.assign(e.style,{position:`relative`}),Tb(e,mb,Pse,e=>gb?.observe(e)),Db(t)?nb.set(e,t):nb.set(e,{duration:250,easing:`ease-in-out`,...t});let n=new MutationObserver(db);n.observe(e,{childList:!0}),eb.set(e,n),Yy.add(e)}return Object.freeze({parent:e,enable:()=>{ib.add(e)},disable:()=>{ib.delete(e),Tb(e,e=>{let t=Qy.get(e);try{t?.cancel()}catch{}Qy.delete(e);let n=rb.get(e);n&&clearTimeout(n),rb.delete(e);let r=tb.get(e);r&&clearInterval(r),tb.delete(e)})},isEnabled:()=>ib.has(e),destroy:()=>{ib.delete(e),Yy.delete(e),nb.delete(e),eb.get(e)?.disconnect(),eb.delete(e),Tb(e,e=>{gb?.unobserve(e);let t=Qy.get(e);try{t?.cancel()}catch{}Qy.delete(e),$y.get(e)?.disconnect(),$y.delete(e);let n=tb.get(e);n&&clearInterval(n),tb.delete(e);let r=rb.get(e);r&&clearTimeout(r),rb.delete(e),Xy.delete(e),Zy.delete(e)})}})}function Hse(){var e=[...arguments];return(0,J.useMemo)(()=>t=>{e.forEach(e=>e(t))},e)}var jb=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function Mb(e){let t=Object.prototype.toString.call(e);return t===`[object Window]`||t===`[object global]`}function Nb(e){return`nodeType`in e}function Pb(e){return e?Mb(e)?e:Nb(e)?e.ownerDocument?.defaultView??window:window:window}function Fb(e){let{Document:t}=Pb(e);return e instanceof t}function Ib(e){return Mb(e)?!1:e instanceof Pb(e).HTMLElement}function Lb(e){return e instanceof Pb(e).SVGElement}function Rb(e){return e?Mb(e)?e.document:Nb(e)?Fb(e)?e:Ib(e)||Lb(e)?e.ownerDocument:document:document:document}var zb=jb?J.useLayoutEffect:J.useEffect;function Bb(e){let t=(0,J.useRef)(e);return zb(()=>{t.current=e}),(0,J.useCallback)(function(){var e=[...arguments];return t.current==null?void 0:t.current(...e)},[])}function Use(){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 Vb(e,t){t===void 0&&(t=[e]);let n=(0,J.useRef)(e);return zb(()=>{n.current!==e&&(n.current=e)},t),n}function Hb(e,t){let n=(0,J.useRef)();return(0,J.useMemo)(()=>{let t=e(n.current);return n.current=t,t},[...t])}function Ub(e){let t=Bb(e),n=(0,J.useRef)(null);return[n,(0,J.useCallback)(e=>{e!==n.current&&t?.(e,n.current),n.current=e},[])]}function Wb(e){let t=(0,J.useRef)();return(0,J.useEffect)(()=>{t.current=e},[e]),t.current}var Gb={};function Kb(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 qb(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 Jb=qb(1),Yb=qb(-1);function Wse(e){return`clientX`in e&&`clientY`in e}function Xb(e){if(!e)return!1;let{KeyboardEvent:t}=Pb(e.target);return t&&e instanceof t}function Gse(e){if(!e)return!1;let{TouchEvent:t}=Pb(e.target);return t&&e instanceof t}function Zb(e){if(Gse(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 Wse(e)?{x:e.clientX,y:e.clientY}:null}var Qb=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[Qb.Translate.toString(e),Qb.Scale.toString(e)].join(` `)}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+` `+n+`ms `+r}}}),$b=`a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]`;function Kse(e){return e.matches($b)?e:e.querySelector($b)}var qse={display:`none`};function Jse(e){let{id:t,value:n}=e;return J.createElement(`div`,{id:t,style:qse},n)}function Yse(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 Xse(){let[e,t]=(0,J.useState)(``);return{announce:(0,J.useCallback)(e=>{e!=null&&t(e)},[]),announcement:e}}var ex=(0,J.createContext)(null);function Zse(e){let t=(0,J.useContext)(ex);(0,J.useEffect)(()=>{if(!t)throw Error(`useDndMonitor must be used within a children of <DndContext>`);return t(e)},[e,t])}function Qse(){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 $se={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.
|
|
@@ -313,7 +313,7 @@ This file is generated by p4code from its \`scoping\` prompt; edits here are ove
|
|
|
313
313
|
\f\r &>`.split(``),`\0
|
|
314
314
|
\f\r "&'<=>\``.split(``)],[`\0
|
|
315
315
|
\f\r "&'<=>\``.split(``),`\0
|
|
316
|
-
\f\r "&'<=>\``.split(``)]],single:[[`&'`.split(``),`"&'\``.split(``)],[`\0&'`.split(``),`\0"&'\``.split(``)]],double:[[`"&`.split(``),`"&'\``.split(``)],[`\0"&`.split(``),`\0"&'\``.split(``)]]};function ELe(e,t,n,r){let i=r.schema,a=i.space===`svg`?!1:r.settings.omitOptionalTags,o=i.space===`svg`?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase()),s=[],c;i.space===`html`&&e.tagName===`svg`&&(r.schema=PW);let l=DLe(r,e.properties),u=r.all(i.space===`html`&&e.tagName===`template`?e.content:e);return r.schema=i,u&&(o=!1),(l||!a||!bLe(e,t,n))&&(s.push(`<`,e.tagName,l?` `+l:``),o&&(i.space===`svg`||r.settings.closeSelfClosing)&&(c=l.charAt(l.length-1),(!r.settings.tightSelfClosing||c===`/`||c&&c!==`"`&&c!==`'`)&&s.push(` `),s.push(`/`)),s.push(`>`)),s.push(u),!o&&(!a||!eG(e,t,n))&&s.push(`</`+e.tagName+`>`),s.join(``)}function DLe(e,t){let n=[],r=-1,i;if(t){for(i in t)if(t[i]!==null&&t[i]!==void 0){let r=OLe(e,i,t[i]);r&&n.push(r)}}for(;++r<n.length;){let t=e.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;r!==n.length-1&&t!==`"`&&t!==`'`&&(n[r]+=` `)}return n.join(``)}function OLe(e,t,n){let r=MW(e.schema,t),i=e.settings.allowParseErrors&&e.schema.space===`html`?0:1,a=+!e.settings.allowDangerousCharacters,o=e.quote,s;if(r.overloadedBoolean&&(n===r.attribute||n===``)?n=!0:(r.boolean||r.overloadedBoolean)&&(typeof n!=`string`||n===r.attribute||n===``)&&(n=!!n),n==null||n===!1||typeof n==`number`&&Number.isNaN(n))return``;let c=HW(r.attribute,Object.assign({},e.settings.characterReferences,{subset:iG.name[i][a]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?GW:qW)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?c:(e.settings.preferUnquoted&&(s=HW(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:iG.unquoted[i][a]}))),s!==n&&(e.settings.quoteSmart&&UW(n,o)>UW(n,e.alternative)&&(o=e.alternative),s=o+HW(n,Object.assign({},e.settings.characterReferences,{subset:(o===`'`?iG.single:iG.double)[i][a],attribute:!0}))+o),c+(s&&`=`+s))}var kLe=[`<`,`&`];function aG(e,t,n,r){return n&&n.type===`element`&&(n.tagName===`script`||n.tagName===`style`)?e.value:HW(e.value,Object.assign({},r.settings.characterReferences,{subset:kLe}))}function ALe(e,t,n,r){return r.settings.allowDangerousHtml?e.value:aG(e,t,n,r)}function jLe(e,t,n,r){return r.all(e)}var MLe=IW(`type`,{invalid:NLe,unknown:PLe,handlers:{comment:rLe,doctype:iLe,element:ELe,raw:ALe,root:jLe,text:aG}});function NLe(e){throw Error("Expected node, not `"+e+"`")}function PLe(e){throw Error("Cannot compile unknown node `"+e.type+"`")}var FLe={},ILe={},LLe=[];function oG(e,t){let n=t||FLe,r=n.quote||`"`,i=r===`"`?`'`:`"`;if(r!==`"`&&r!==`'`)throw Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:RLe,all:zLe,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||sW,characterReferences:n.characterReferences||ILe,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space===`svg`?PW:NW,quote:r,alternative:i}.one(Array.isArray(e)?{type:`root`,children:e}:e,void 0,void 0)}function RLe(e,t,n){return MLe(e,t,n,this)}function zLe(e){let t=[],n=e&&e.children||LLe,r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join(``)}var sG=class{hoveredLine;hoveredToken;pre;gutterUtilityLine;gutterUtilityContainer;gutterUtilityButton;gutterUtilitySlot;interactiveLinesAttr=!1;interactiveLineNumbersAttr=!1;hasPointerListeners=!1;hasDocumentPointerListeners=!1;selectedRange=null;proposedSelectedRange;renderedSelectionRange;selectionAnchor;queuedSelectionRender;pointerSession={mode:`idle`};constructor(e,t){this.mode=e,this.options=t}setOptions(e){this.options=e}cleanUp(){this.pre?.removeEventListener(`click`,this.handlePointerClick),this.pre?.removeEventListener(`pointerdown`,this.handlePointerDown),this.pre?.removeEventListener(`pointermove`,this.handlePointerMove),this.pre?.removeEventListener(`pointerleave`,this.handlePointerLeave),this.pre?.removeAttribute(`data-interactive-lines`),this.pre?.removeAttribute(`data-interactive-line-numbers`),this.pre=void 0,this.gutterUtilityContainer?.remove(),this.gutterUtilityLine=void 0,this.gutterUtilityContainer=void 0,this.gutterUtilityButton=void 0,this.gutterUtilitySlot=void 0,this.clearHoveredLine(),this.clearHoveredToken(),this.detachDocumentPointerListeners(),this.clearPointerSession(),this.queuedSelectionRender!=null&&(cancelAnimationFrame(this.queuedSelectionRender),this.queuedSelectionRender=void 0),this.interactiveLinesAttr=!1,this.interactiveLineNumbersAttr=!1,this.hasPointerListeners=!1}setup(e){this.setSelectionDirty();let{usesCustomGutterUtility:t=!1,enableGutterUtility:n=!1}=this.options;this.pre!==e&&(this.cleanUp(),this.pre=e),n?this.ensureGutterUtilityNode(t):this.gutterUtilityContainer!=null&&(this.gutterUtilityContainer.remove(),this.gutterUtilityLine=void 0,this.gutterUtilityContainer=void 0,this.gutterUtilityButton=void 0,this.gutterUtilitySlot=void 0,this.pointerSession.mode===`gutterSelecting`&&(this.clearPointerSession(),this.detachDocumentPointerListeners())),this.syncPointerListeners(e),this.updateInteractiveLineAttributes(),this.renderSelection(),this.placeUtility()}setSelectionDirty(){this.renderedSelectionRange=void 0}isSelectionDirty(){return this.renderedSelectionRange===null}setSelection(e,t){let n=!(e===this.selectedRange||QU(e??void 0,this.selectedRange??void 0));!this.isSelectionDirty()&&!n||(this.proposedSelectedRange=void 0,this.selectedRange=e,this.renderSelection(),this.placeUtility(),n&&t?.notify!==!1&&this.notifySelectionCommitted())}getSelection(){return this.selectedRange}getHoveredLine=()=>{let e=this.gutterUtilityLine??this.hoveredLine;if(e!=null){if(this.mode===`diff`&&e.type===`diff-line`)return{lineNumber:e.lineNumber,side:e.annotationSide};if(this.mode===`file`&&e.type===`line`)return{lineNumber:e.lineNumber}}};handlePointerClick=e=>{let{onHunkExpand:t,onLineClick:n,onLineNumberClick:r,onTokenClick:i,onMergeConflictActionClick:a}=this.options;t==null&&n==null&&r==null&&a==null&&i==null||this.options.onGutterUtilityClick!=null&&_G(e.composedPath())||(vG(this.options.__debugPointerEvents,`click`,`FileDiff.DEBUG.handlePointerClick:`,e),this.handlePointerEvent({eventType:`click`,event:e}))};handlePointerMove=e=>{if(e.pointerType!==`mouse`)return;let{lineHoverHighlight:t=`disabled`,onLineEnter:n,onLineLeave:r,onTokenEnter:i,onTokenLeave:a,enableGutterUtility:o=!1}=this.options;t===`disabled`&&!o&&n==null&&r==null&&i==null&&a==null||(vG(this.options.__debugPointerEvents,`move`,`FileDiff.DEBUG.handlePointerMove:`,e),this.handlePointerEvent({eventType:`move`,event:e}))};handlePointerLeave=e=>{let{__debugPointerEvents:t}=this.options;if(vG(t,`move`,`FileDiff.DEBUG.handlePointerLeave: no event`),this.hoveredLine==null&&this.hoveredToken==null){vG(t,`move`,`FileDiff.DEBUG.handlePointerLeave: returned early, no hovered line or token`);return}this.hoveredToken!=null&&(this.options.onTokenLeave?.(this.hoveredToken,e),this.clearHoveredToken()),this.hoveredLine!=null&&(this.options.onLineLeave?.({...this.hoveredLine,event:e}),this.clearHoveredLine()),this.placeUtility()};handlePointerEvent({eventType:e,event:t}){let{__debugPointerEvents:n}=this.options,r=t.composedPath();vG(n,e,`FileDiff.DEBUG.handlePointerEvent:`,{eventType:e,composedPath:r});let i=this.resolvePointerTarget(r);vG(n,e,`FileDiff.DEBUG.handlePointerEvent: resolvePointerTarget result:`,i);let{onLineClick:a,onLineNumberClick:o,onLineEnter:s,onLineLeave:c,onTokenClick:l,onTokenEnter:u,onTokenLeave:d,onHunkExpand:f,onMergeConflictActionClick:p}=this.options;switch(e){case`move`:{let e=dG(i)&&this.hoveredLine?.lineElement===i.lineElement;uG(i)&&this.hoveredToken?.tokenElement===i.tokenElement||(this.hoveredToken!=null&&(d?.(this.hoveredToken,t),this.clearHoveredToken()),uG(i)&&(this.setHoveredToken(this.toTokenEventBaseProps(i)),u?.(this.hoveredToken,t))),e||(this.hoveredLine!=null&&(c?.({...this.hoveredLine,event:t}),this.clearHoveredLine()),dG(i)?(this.setHoveredLine(this.toEventBaseProps(i)),this.placeUtility(),s?.({...this.hoveredLine,event:t})):this.placeUtility());break}case`click`:{if(i==null)break;if(HLe(i)&&p!=null){p(i);break}if(VLe(i)&&f!=null){f(i.hunkIndex,i.all||t.shiftKey?`both`:i.direction,i.all||t.shiftKey?1/0:void 0);break}if(!dG(i))break;uG(i)&&l!=null&&l(this.toTokenEventBaseProps(i),t);let e=this.toEventBaseProps(i);o!=null&&i.numberColumn?o({...e,event:t}):a?.({...e,event:t});break}}}syncPointerListeners(e){let{__debugPointerEvents:t,lineHoverHighlight:n=`disabled`,onLineClick:r,onLineNumberClick:i,onLineEnter:a,onLineLeave:o,onTokenClick:s,onTokenEnter:c,onTokenLeave:l,onHunkExpand:u,onMergeConflictActionClick:d,enableGutterUtility:f=!1,enableLineSelection:p=!1,onGutterUtilityClick:m}=this.options,h=m!=null,g=n!==`disabled`||r!=null||i!=null||a!=null||o!=null||s!=null||c!=null||l!=null||u!=null||d!=null||f||p||h;g&&!this.hasPointerListeners?(e.addEventListener(`click`,this.handlePointerClick),e.addEventListener(`pointerdown`,this.handlePointerDown),e.addEventListener(`pointermove`,this.handlePointerMove),e.addEventListener(`pointerleave`,this.handlePointerLeave),this.hasPointerListeners=!0,vG(t,`click`,`FileDiff.DEBUG.attachEventListeners: Attaching click events for:`,(()=>{let e=[];return(t===`both`||t===`click`)&&(r!=null&&e.push(`onLineClick`),i!=null&&e.push(`onLineNumberClick`),u!=null&&e.push(`expandable hunk separators`),d!=null&&e.push(`merge conflict actions`)),e})()),vG(t,`move`,`FileDiff.DEBUG.attachEventListeners: Attaching pointer move event`),vG(t,`move`,`FileDiff.DEBUG.attachEventListeners: Attaching pointer leave event`)):!g&&this.hasPointerListeners&&(e.removeEventListener(`click`,this.handlePointerClick),e.removeEventListener(`pointerdown`,this.handlePointerDown),e.removeEventListener(`pointermove`,this.handlePointerMove),e.removeEventListener(`pointerleave`,this.handlePointerLeave),this.hasPointerListeners=!1);let _=this.pointerSession.mode===`selecting`||this.pointerSession.mode===`pendingSingleLineUnselect`,v=this.pointerSession.mode===`gutterSelecting`;(!p&&_||!h&&v)&&(this.clearPointerSession(),this.detachDocumentPointerListeners(),this.selectionAnchor=void 0,this.clearPendingSingleLineState())}updateInteractiveLineAttributes(){if(this.pre==null)return;let{onLineClick:e,onLineNumberClick:t,enableLineSelection:n=!1}=this.options,r=e!=null,i=t!=null||n;r&&!this.interactiveLinesAttr?(this.pre.setAttribute(`data-interactive-lines`,``),this.interactiveLinesAttr=!0):!r&&this.interactiveLinesAttr&&(this.pre.removeAttribute(`data-interactive-lines`),this.interactiveLinesAttr=!1),i&&!this.interactiveLineNumbersAttr?(this.pre.setAttribute(`data-interactive-line-numbers`,``),this.interactiveLineNumbersAttr=!0):!i&&this.interactiveLineNumbersAttr&&(this.pre.removeAttribute(`data-interactive-line-numbers`),this.interactiveLineNumbersAttr=!1)}handlePointerDown=e=>{if(e.pointerType===`mouse`&&e.button!==0||this.pre==null||this.pointerSession.mode!==`idle`)return;let t=e.composedPath();_G(t)&&this.options.onGutterUtilityClick!=null?this.startGutterSelectionFromPointerDown(e):(e.pointerType!==`mouse`&&this.revealUtilityFromGutterPath(t),this.startLineSelectionFromPointerDown(e))};startLineSelectionFromPointerDown(e){let{enableLineSelection:t=!1}=this.options;if(!t)return;let n=this.resolveSelectionInfo(e,{source:`event-path`,requireNumberColumn:!0});if(n==null)return;let{pre:r}=this;if(r==null)return;e.preventDefault();let{lineNumber:i,eventSide:a,lineIndex:o}=n;if(e.shiftKey&&this.selectedRange!=null){let t=this.getIndexesFromSelection(this.selectedRange,r.getAttribute(`data-diff-type`)===`split`);if(t==null)return;let n=t.start<=t.end?o>=t.start:o<=t.end;this.selectionAnchor={lineNumber:n?this.selectedRange.start:this.selectedRange.end,side:n?this.selectedRange.side:this.selectedRange.endSide??this.selectedRange.side},this.updateSelection(i,a,!1),this.notifySelectionStart(this.getCurrentSelectionRange()),this.pointerSession={mode:`selecting`,pointerId:e.pointerId},this.attachDocumentPointerListeners();return}if(this.selectedRange?.start===i&&this.selectedRange?.end===i){let t={lineNumber:i,side:a};this.selectionAnchor=t,this.pointerSession={mode:`pendingSingleLineUnselect`,pointerId:e.pointerId,anchor:t,pending:t},this.attachDocumentPointerListeners();return}this.options.controlledSelection===!0?this.proposedSelectedRange=null:this.selectedRange=null,this.placeUtility(),this.selectionAnchor={lineNumber:i,side:a},this.updateSelection(i,a,!1),this.notifySelectionStart(this.getCurrentSelectionRange()),this.pointerSession={mode:`selecting`,pointerId:e.pointerId},this.attachDocumentPointerListeners()}startGutterSelectionFromPointerDown(e){let{enableLineSelection:t=!1,onGutterUtilityClick:n}=this.options;if(n==null)return;let r=this.currentSelectionEnds(),i=r?.bottom??this.resolveSelectionPoint(e,{source:`event-path`,excludeUtility:!1}),a=r?.top??i;i==null||a==null||(e.preventDefault(),e.stopPropagation(),this.pointerSession={mode:`gutterSelecting`,pointerId:e.pointerId,anchor:a,current:i},t&&(this.selectionAnchor={lineNumber:a.lineNumber,side:a.side},this.updateSelection(i.lineNumber,i.side,!1),this.notifySelectionStart(this.getCurrentSelectionRange())),this.attachDocumentPointerListeners())}handleDocumentPointerMove=e=>{let{enableLineSelection:t=!1}=this.options;switch(this.pointerSession.mode){case`idle`:return;case`gutterSelecting`:{if(e.pointerId!==this.pointerSession.pointerId)return;e.preventDefault();let n=this.resolveSelectionPoint(e,{source:`coordinates-first`});if(n==null)return;this.pointerSession.current=n,t===!0&&this.updateSelection(n.lineNumber,n.side);return}case`selecting`:{if(e.pointerId!==this.pointerSession.pointerId)return;e.preventDefault();let t=this.resolveSelectionInfo(e,{source:`coordinates-first`,requireNumberColumn:!1});if(t==null||this.selectionAnchor==null)return;this.updateSelection(t.lineNumber,t.eventSide);return}case`pendingSingleLineUnselect`:{if(e.pointerId!==this.pointerSession.pointerId)return;e.preventDefault();let t=this.resolveSelectionInfo(e,{source:`coordinates-first`,requireNumberColumn:!1});if(t==null||this.selectionAnchor==null)return;let n={lineNumber:t.lineNumber,side:t.eventSide};if(kIe(this.pointerSession.pending,n))return;this.updateSelection(t.lineNumber,t.eventSide,!1),this.notifySelectionStart(this.getCurrentSelectionRange()),this.notifySelectionChangeDelta(),this.pointerSession={mode:`selecting`,pointerId:e.pointerId};return}}};handleDocumentPointerUp=e=>{let{enableLineSelection:t=!1,onGutterUtilityClick:n}=this.options;switch(this.pointerSession.mode){case`idle`:return;case`gutterSelecting`:{if(e.pointerId!==this.pointerSession.pointerId)return;e.preventDefault();let r=this.resolveSelectionPoint(e,{source:`coordinates-first`});r!=null&&(this.pointerSession.current=r,t&&this.updateSelection(r.lineNumber,r.side)),n?.(this.buildSelectedLineRange(this.pointerSession.anchor,this.pointerSession.current)),this.selectionAnchor=void 0,t&&(this.notifySelectionEnd(this.getCurrentSelectionRange()),this.notifySelectionCommitted(),this.clearProposedSelection()),this.clearPointerSession(),this.detachDocumentPointerListeners();return}case`pendingSingleLineUnselect`:if(e.pointerId!==this.pointerSession.pointerId)return;e.preventDefault(),this.updateSelection(null,void 0,!1),this.selectionAnchor=void 0,this.clearPendingSingleLineState(),this.detachDocumentPointerListeners(),this.notifySelectionEnd(this.getCurrentSelectionRange()),this.notifySelectionCommitted(),this.clearProposedSelection();return;case`selecting`:if(e.pointerId!==this.pointerSession.pointerId)return;e.preventDefault(),this.selectionAnchor=void 0,this.detachDocumentPointerListeners(),this.clearPointerSession(),this.notifySelectionEnd(this.getCurrentSelectionRange()),this.notifySelectionCommitted(),this.clearProposedSelection()}};handleDocumentPointerCancel=e=>{switch(this.pointerSession.mode){case`idle`:return;case`gutterSelecting`:case`selecting`:case`pendingSingleLineUnselect`:if(`pointerId`in this.pointerSession&&e.pointerId!==this.pointerSession.pointerId)return;this.selectionAnchor=void 0,this.clearProposedSelection(),this.clearPendingSingleLineState(),this.clearPointerSession(),this.detachDocumentPointerListeners()}};clearHoveredLine(){this.hoveredLine!=null&&(this.hoveredLine.lineElement.removeAttribute(`data-hovered`),this.hoveredLine.numberElement.removeAttribute(`data-hovered`),this.hoveredLine=void 0)}setHoveredLine(e){let{lineHoverHighlight:t=`disabled`}=this.options;this.hoveredLine!=null&&this.clearHoveredLine(),this.hoveredLine=e,t!==`disabled`&&((t===`both`||t===`line`)&&this.hoveredLine.lineElement.setAttribute(`data-hovered`,``),(t===`both`||t===`number`)&&this.hoveredLine.numberElement.setAttribute(`data-hovered`,``))}clearHoveredToken(){this.hoveredToken!=null&&(this.hoveredToken=void 0)}setHoveredToken(e){this.hoveredToken!=null&&this.clearHoveredToken(),this.hoveredToken=e}ensureGutterUtilityNode(e){if(this.gutterUtilityContainer??(this.gutterUtilityContainer=document.createElement(`div`),this.gutterUtilityContainer.setAttribute(`data-gutter-utility-slot`,``)),e)this.gutterUtilityButton!=null&&(this.gutterUtilityButton.remove(),this.gutterUtilityButton=void 0),this.gutterUtilitySlot??(this.gutterUtilitySlot=document.createElement(`slot`),this.gutterUtilitySlot.name=`gutter-utility-slot`),this.gutterUtilitySlot.parentNode!==this.gutterUtilityContainer&&this.gutterUtilityContainer.replaceChildren(this.gutterUtilitySlot);else{if(this.gutterUtilitySlot?.remove(),this.gutterUtilitySlot=void 0,this.gutterUtilityButton==null){let e=document.createElement(`div`);e.innerHTML=oG(OIe());let t=e.firstElementChild;if(!(t instanceof HTMLButtonElement))throw Error(`InteractionManager.ensureGutterUtilityNode: Node element should be a button`);t.remove(),this.gutterUtilityButton=t}this.gutterUtilityButton.parentNode!==this.gutterUtilityContainer&&this.gutterUtilityContainer.replaceChildren(this.gutterUtilityButton)}}revealUtilityFromGutterPath(e){if(this.placeUtilityFromSelection())return;let t=this.resolvePointerTarget(e);lG(t)&&t.numberColumn&&this.showUtilityOnLine(this.toEventBaseProps(t))}placeUtility(){if(!this.placeUtilityFromSelection()){if(this.hoveredLine!=null){this.showUtilityOnLine(this.hoveredLine);return}this.hideUtility()}}placeUtilityFromSelection(){let e=this.currentSelectionEnds();if(e==null)return!1;let t=this.targetForSelectionPoint(e.bottom);return t==null?this.hideUtility():this.showUtilityOnLine(this.toEventBaseProps(t)),!0}showUtilityOnLine(e){this.gutterUtilityContainer!=null&&(this.gutterUtilityLine=e,e.numberElement.appendChild(this.gutterUtilityContainer))}hideUtility(){this.gutterUtilityContainer?.remove(),this.gutterUtilityLine=void 0}currentSelectionEnds(){let e=this.getCurrentSelectionRange();return e==null?void 0:this.selectionEnds(e)}selectionEnds(e){let t={lineNumber:e.start,side:e.side},n={lineNumber:e.end,side:e.endSide??e.side},r=this.selectionPointRowIndex(t),i=this.selectionPointRowIndex(n);if(!(r==null||i==null))return r>i?{top:n,bottom:t}:{top:t,bottom:n}}selectionPointRowIndex(e){let t=this.getLineIndex(e.lineNumber,e.side);if(t!=null)return this.isSplitDiff()?t[1]:t[0]}targetForSelectionPoint(e){if(this.pre==null)return;let t=this.getLineIndex(e.lineNumber,e.side);if(t==null)return;let n=this.mode===`diff`?`${t[0]},${t[1]}`:`${t[0]}`,r=this.pre.querySelectorAll(`[data-column-number="${e.lineNumber}"][data-line-index="${n}"]`);for(let t of r){if(!(t instanceof HTMLElement))continue;let n=this.resolvePointerTarget(pG(t));if(lG(n)&&!(this.mode===`diff`&&e.side!=null&&n.side!==e.side))return n}}attachDocumentPointerListeners(){this.hasDocumentPointerListeners||=(document.addEventListener(`pointermove`,this.handleDocumentPointerMove),document.addEventListener(`pointerup`,this.handleDocumentPointerUp),document.addEventListener(`pointercancel`,this.handleDocumentPointerCancel),!0)}detachDocumentPointerListeners(){this.hasDocumentPointerListeners&&=(document.removeEventListener(`pointermove`,this.handleDocumentPointerMove),document.removeEventListener(`pointerup`,this.handleDocumentPointerUp),document.removeEventListener(`pointercancel`,this.handleDocumentPointerCancel),!1)}clearPointerSession(){this.pointerSession={mode:`idle`}}clearPendingSingleLineState(){this.pointerSession.mode===`pendingSingleLineUnselect`&&(this.pointerSession={mode:`idle`})}selectionInfoFromPath(e,t){let n=this.resolvePointerTarget(e);if(lG(n)&&!(t&&!n.numberColumn)&&n.splitLineIndex!=null)return{lineIndex:n.splitLineIndex,lineNumber:n.lineNumber,eventSide:this.mode===`diff`?n.side:void 0}}resolveSelectionInfo(e,t){let n=this.resolveSelectionPath(e,t);return n==null?void 0:this.selectionInfoFromPath(n,t.requireNumberColumn)}selectionPointFromPath(e){let t=this.resolvePointerTarget(e);if(lG(t))return{lineNumber:t.lineNumber,side:this.mode===`diff`?t.side:void 0}}resolveSelectionPoint(e,t){let n=this.resolveSelectionPath(e,t);return n==null?void 0:this.selectionPointFromPath(n)}resolveSelectionPath(e,t){let n=t.excludeUtility!==!1;switch(t.source){case`event-path`:return this.pathFromEventPath(e.composedPath(),n);case`coordinates-first`:{let t=this.pathFromCoordinates(e,n);return t===void 0?this.pathFromEventPath(e.composedPath(),n):t??void 0}}}pathFromCoordinates(e,t){let n=this.hitTest(e);if(n!==void 0)return n===null?null:this.pathFromElement(n,t)??null}pathFromEventPath(e,t){if(!(t&&_G(e))){for(let n of e)if(n instanceof Element)return this.pathFromElement(n,t)}}pathFromElement(e,t){let n=pG(e);if(t&&_G(n))return;let r=WLe(e);return r==null?this.pathFromAnnotationSlot(e):pG(r)}pathFromAnnotationSlot(e){let t=KLe(GLe(e));if(t==null)return;let n=this.targetForSelectionPoint(t);return n==null?void 0:pG(n.lineElement)}hitTest(e){if(!Number.isFinite(e.clientX)||!Number.isFinite(e.clientY))return;let t=this.pre?.getRootNode(),n=mG(t)?t:mG(document)?document:void 0;if(n!=null)return n.elementFromPoint(e.clientX,e.clientY)}getLineIndex(e,t){let{getLineIndex:n}=this.options;return n==null?[e-1,e-1]:n(e,t)}getCurrentSelectionRange(){return this.proposedSelectedRange===void 0?this.selectedRange:this.proposedSelectedRange}clearProposedSelection(){this.proposedSelectedRange=void 0}updateSelection(e,t,n=!0){let r=this.getCurrentSelectionRange(),i;if(e==null)i=null;else{let n=this.selectionAnchor?.side??t,r=this.selectionAnchor?.lineNumber??e;i=this.buildSelectionRange(r,e,n,t)}QU(r??void 0,i??void 0)||(this.options.controlledSelection===!0?this.proposedSelectedRange=i:(this.selectedRange=i,this.queuedSelectionRender??=requestAnimationFrame(this.renderSelection)),this.placeUtility(),n&&this.notifySelectionChangeDelta())}getIndexesFromSelection(e,t){if(this.pre==null)return;let n=this.getLineIndex(e.start,e.side),r=this.getLineIndex(e.end,e.endSide??e.side);return n!=null&&r!=null?{start:t?n[1]:n[0],end:t?r[1]:r[0]}:void 0}renderSelection=()=>{if(this.queuedSelectionRender!=null&&(cancelAnimationFrame(this.queuedSelectionRender),this.queuedSelectionRender=void 0),this.pre==null||this.renderedSelectionRange===this.selectedRange)return;let e=this.pre.querySelectorAll(`[data-selected-line]`);for(let t of e)t.removeAttribute(`data-selected-line`);if(this.renderedSelectionRange=this.selectedRange,this.selectedRange==null)return;let{children:t}=this.pre;if(t.length===0)return;if(t.length>2)throw console.error(t),Error(`InteractionManager.renderSelection: Somehow there are more than 2 code elements...`);let n=this.pre.getAttribute(`data-diff-type`)===`split`,r=this.getIndexesFromSelection(this.selectedRange,n);if(r==null)throw console.error({rowRange:r,selectedRange:this.selectedRange}),Error(`InteractionManager.renderSelection: No valid rowRange`);let i=r.start===r.end,a=Math.min(r.start,r.end),o=Math.max(r.start,r.end);for(let e of t){let[t,r]=e.children,s=r.children.length;if(s!==t.children.length)throw Error(`InteractionManager.renderSelection: gutter and content children dont match, something is wrong`);for(let e=0;e<s;e++){let s=r.children[e],c=t.children[e];if(!(s instanceof HTMLElement)||!(c instanceof HTMLElement))continue;let l=this.parseLineIndex(s,n);if((l??0)>o)break;if(l==null||l<a)continue;let u=i?`single`:l===a?`first`:l===o?`last`:``;s.setAttribute(`data-selected-line`,u),c.setAttribute(`data-selected-line`,u),c.nextSibling instanceof HTMLElement&&s.nextSibling instanceof HTMLElement&&(s.nextSibling.hasAttribute(`data-line-annotation`)||s.nextSibling.hasAttribute(`data-merge-conflict-actions`))&&(i?(u=`last`,s.setAttribute(`data-selected-line`,`first`)):l===a?u=``:l===o&&s.setAttribute(`data-selected-line`,``),s.nextSibling.setAttribute(`data-selected-line`,u),c.nextSibling.setAttribute(`data-selected-line`,u))}}};notifySelectionCommitted(){this.options.onLineSelected?.(this.getCurrentSelectionRange()??null)}notifySelectionChangeDelta(){this.options.onLineSelectionChange?.(this.getCurrentSelectionRange()??null)}notifySelectionStart(e){this.options.onLineSelectionStart?.(e)}notifySelectionEnd(e){this.options.onLineSelectionEnd?.(e)}toEventBaseProps(e){return this.mode===`file`?{type:`line`,lineElement:e.lineElement,lineNumber:e.lineNumber,numberColumn:e.numberColumn,numberElement:e.numberElement}:{type:`diff-line`,annotationSide:e.side,lineType:e.lineType,lineElement:e.lineElement,numberElement:e.numberElement,lineNumber:e.lineNumber,numberColumn:e.numberColumn}}toTokenEventBaseProps({lineCharEnd:e,lineCharStart:t,lineNumber:n,side:r,tokenElement:i,tokenText:a}){return this.mode===`file`?{type:`token`,lineCharEnd:e,lineCharStart:t,lineNumber:n,tokenElement:i,tokenText:a}:{type:`token`,lineCharEnd:e,lineCharStart:t,lineNumber:n,side:r,tokenElement:i,tokenText:a}}buildSelectedLineRange(e,t){return this.buildSelectionRange(e.lineNumber,t.lineNumber,e.side,t.side)}buildSelectionRange(e,t,n,r){return{start:e,end:t,...n==null?{}:{side:n},...n!==r&&r!=null?{endSide:r}:{}}}resolvePointerTarget(e){let t=!1,n,r,i,a,o,s,c,l,u,d;for(let f of e){if(!(f instanceof HTMLElement))continue;if(d==null&&f.hasAttribute(`data-merge-conflict-action`)){let e=f.getAttribute(`data-merge-conflict-action`)??void 0,t=f.getAttribute(`data-merge-conflict-conflict-index`)??void 0,n=t==null?NaN:Number.parseInt(t,10);ULe(e)&&Number.isFinite(n)&&(d={kind:`merge-conflict-action`,resolution:e,conflictIndex:n})}if(s==null&&f.hasAttribute(`data-char`)){s=f;let e=f.getAttribute(`data-char`);if(e!=null){let t=Number.parseInt(e,10);if(!Number.isNaN(t)){let e=f.textContent??``,n=t+e.length;(e.trim()!==``||this.options.enableTokenInteractionsOnWhitespace===!0)&&(c={tokenElement:s,lineCharStart:t,lineCharEnd:n,tokenText:e});continue}}}let e=o==null?f.getAttribute(`data-column-number`)??void 0:void 0;if(e!=null){o=f,u=Number.parseInt(e,10),t=!0,n=gG(f),a=f.getAttribute(`data-line-index`)??void 0;continue}let p=i==null?f.getAttribute(`data-line`)??void 0:void 0;if(p!=null){i=f,u=Number.parseInt(p,10),n=gG(f),a=f.getAttribute(`data-line-index`)??void 0;continue}if(l==null&&(f.hasAttribute(`data-expand-button`)||f.hasAttribute(`data-unmodified-lines`))){l={hunkIndex:void 0,direction:f.hasAttribute(`data-expand-up`)?`up`:f.hasAttribute(`data-expand-down`)?`down`:`both`,all:f.hasAttribute(`data-expand-all-button`)};continue}let m=l==null?void 0:f.getAttribute(`data-expand-index`)??void 0;if(l!=null&&m!=null){let e=Number.parseInt(m,10);Number.isNaN(e)||(l.hunkIndex=e);continue}if(r==null&&f.hasAttribute(`data-code`)){r=f;break}}if(d!=null)return d;if(l?.hunkIndex!=null)return{type:`line-info`,hunkIndex:l.hunkIndex,direction:l.direction,all:l.all};if(i??=a==null?void 0:fG(r,`[data-line][data-line-index="${a}"]`),o??=a==null?void 0:fG(r,`[data-column-number][data-line-index="${a}"]`),r==null||i==null||o==null||n==null||u==null||Number.isNaN(u))return;let f=this.parseLineIndex(i,this.isSplitDiff());return c==null?this.mode===`file`?{kind:`line`,lineType:n,lineElement:i,lineNumber:u,numberColumn:t,numberElement:o,side:void 0,splitLineIndex:f}:{kind:`line`,lineType:n,lineElement:i,lineNumber:u,numberColumn:t,numberElement:o,side:hG(n,r),splitLineIndex:f}:this.mode===`file`?{kind:`token`,lineType:n,lineElement:i,lineNumber:u,numberColumn:t,numberElement:o,side:void 0,splitLineIndex:f,...c}:{kind:`token`,lineType:n,lineElement:i,lineNumber:u,numberColumn:t,numberElement:o,side:hG(n,r),splitLineIndex:f,...c}}isSplitDiff(){return this.pre?.getAttribute(`data-diff-type`)===`split`}parseLineIndex(e,t){let n=(e.getAttribute(`data-line-index`)??``).split(`,`).map(e=>Number.parseInt(e,10)).filter(e=>!Number.isNaN(e));if(t&&n.length===2)return n[1];if(!t)return n[0]}};function cG({enableTokenInteractionsOnWhitespace:e,enableGutterUtility:t,lineHoverHighlight:n,onGutterUtilityClick:r,onLineClick:i,onLineEnter:a,onLineLeave:o,onLineNumberClick:s,onTokenClick:c,onTokenEnter:l,onTokenLeave:u,renderGutterUtility:d,__debugPointerEvents:f,enableLineSelection:p,controlledSelection:m,onLineSelected:h,onLineSelectionStart:g,onLineSelectionChange:_,onLineSelectionEnd:v},y,b,x){return{enableTokenInteractionsOnWhitespace:e,enableGutterUtility:BLe({enableGutterUtility:t,renderGutterUtility:d,onGutterUtilityClick:r}),usesCustomGutterUtility:d!=null,lineHoverHighlight:n,onGutterUtilityClick:r,onHunkExpand:y,onMergeConflictActionClick:x,onLineClick:i,onLineEnter:a,onLineLeave:o,onLineNumberClick:s,onTokenClick:c,onTokenEnter:l,onTokenLeave:u,__debugPointerEvents:f,enableLineSelection:p,controlledSelection:m,onLineSelected:h,onLineSelectionStart:g,onLineSelectionChange:_,onLineSelectionEnd:v,getLineIndex:b}}function BLe({enableGutterUtility:e,renderGutterUtility:t,onGutterUtilityClick:n}){if(n!=null&&t!=null)throw Error(`Cannot use both 'onGutterUtilityClick' and 'renderGutterUtility'. Use only one gutter utility API.`);return e??!1}function lG(e){return e!=null&&`kind`in e&&e.kind===`line`}function uG(e){return e!=null&&`kind`in e&&e.kind===`token`}function dG(e){return lG(e)||uG(e)}function VLe(e){return`type`in e&&e.type===`line-info`}function HLe(e){return`kind`in e&&e.kind===`merge-conflict-action`}function ULe(e){return e===`current`||e===`incoming`||e===`both`}function fG(e,t){let n=e?.querySelector(t);return n instanceof HTMLElement?n:void 0}function pG(e){let t=[],n=e;for(;n!=null;)t.push(n),n=n.parentNode;return t}function WLe(e){let t=e.closest(`[data-line], [data-column-number]`);if(t instanceof HTMLElement)return t;let n=e.closest(`[data-line-annotation], [data-gutter-buffer="annotation"]`);if(!(n instanceof HTMLElement))return;let r=n.previousElementSibling;return r instanceof HTMLElement&&(r.hasAttribute(`data-line`)||r.hasAttribute(`data-column-number`))?r:void 0}function GLe(e){let t=e.closest(`[slot^="annotation-"]`);if(t instanceof HTMLElement)return t.getAttribute(`slot`)??void 0;if(e instanceof HTMLElement){let t=e.getAttribute(`name`)??void 0;return t!=null&&t.startsWith(`annotation-`)?t:void 0}}function KLe(e){if(e==null)return;let t=/^annotation-(?:(additions|deletions)-)?(\d+)$/.exec(e);if(t==null)return;let n=Number.parseInt(t[2],10);if(!(!Number.isFinite(n)||n<=0))return{lineNumber:n,side:t[1]}}function mG(e){return e!=null&&typeof e.elementFromPoint==`function`}function hG(e,t){switch(e){case`change-deletion`:return`deletions`;case`change-addition`:return`additions`;default:return t.hasAttribute(`data-deletions`)?`deletions`:`additions`}}function gG(e){let t=e.getAttribute(`data-line-type`);if(t!=null)switch(t){case`change-deletion`:case`change-addition`:case`context`:case`context-expanded`:return t;default:return}}function _G(e){for(let t of e)if(t instanceof HTMLElement&&(t.hasAttribute(`data-utility-button`)||t.hasAttribute(`data-gutter-utility-slot`)||t.getAttribute(`slot`)===`gutter-utility-slot`||t.getAttribute(`name`)===`gutter-utility-slot`))return!0;return!1}function vG(e=`none`,t,...n){switch(e){case`none`:return;case`both`:break;case`click`:if(t!==`click`)return;break;case`move`:if(t!==`move`)return;break}console.log(...n)}var yG=class e{static resizeObserver;static managersByElement=new Map;static getResizeObserver(){let t=e.resizeObserver??new ResizeObserver(e.handleSharedResizeEntries);return e.resizeObserver=t,t}static handleSharedResizeEntries(t){let n=new Map;for(let r of t){let t=e.managersByElement.get(r.target);if(t==null)continue;let i=n.get(t);i==null?n.set(t,[r]):i.push(r)}for(let[e,t]of n)e.handleResizeEntries(t)}observedNodes=new Map;setup(e,t){let n=new Set,r=0,i=new Map(this.observedNodes);this.observedNodes.clear();for(let t of e.children){if(r===2)break;let e=(()=>{if(t instanceof HTMLElement&&t.tagName===`CODE`)return t})();if(e==null)continue;r++;let n=i.get(e);if(n!=null&&n.type!==`code`)throw Error(`ResizeManager.setup: somehow a code node is being used for an annotation, should be impossible`);let a=e.firstElementChild;a instanceof HTMLElement||(a=null),n==null?(n={type:`code`,codeElement:e,numberElement:a,codeWidth:`auto`,numberWidth:0},this.observedNodes.set(e,n),this.observe(e),a!=null&&(this.observedNodes.set(a,n),this.observe(a))):(this.observedNodes.set(e,n),i.delete(e),n.numberElement===a?n.numberElement==null?n.numberWidth=0:(i.delete(n.numberElement),this.observedNodes.set(n.numberElement,n)):(n.numberElement!=null&&(this.unobserve(n.numberElement),i.delete(n.numberElement)),a!=null&&(this.observe(a),i.delete(a),this.observedNodes.set(a,n)),n.numberElement=a,n.numberWidth=0))}if(r>1&&!t){let t=e.querySelectorAll(`[data-line-annotation*=","]`),r=new Map;for(let e of t){if(!(e instanceof HTMLElement))continue;let t=e.getAttribute(`data-line-annotation`)??``;if(!/^-?\d+,-?\d+$/.test(t)){console.error(`DiffFileRenderer.setupResizeObserver: Invalid element or annotation`,{lineAnnotation:t,element:e});continue}let n=r.get(t);n??(n=[],r.set(t,n)),n.push(e)}for(let[e,t]of r){if(t.length!==2){console.error(`DiffFileRenderer.setupResizeObserver: Bad Pair`,e,t);continue}let[r,a]=t,o=r.firstElementChild,s=a.firstElementChild;if(!(r instanceof HTMLElement)||!(a instanceof HTMLElement)||!(o instanceof HTMLElement)||!(s instanceof HTMLElement))continue;let c=i.get(o);if(c!=null){this.observedNodes.set(o,c),this.observedNodes.set(s,c),i.delete(o),i.delete(s);continue}let l=o.getBoundingClientRect().height,u=s.getBoundingClientRect().height;c={type:`annotations`,column1:{container:r,child:o,childHeight:l},column2:{container:a,child:s,childHeight:u},currentHeight:`auto`},n.add({child1:o,child2:s,item:c,newHeight:Math.max(l,u)})}for(let e of n)this.applyNewHeight(e.item,e.newHeight),this.observedNodes.set(e.child1,e.item),this.observedNodes.set(e.child2,e.item),this.observe(e.child1),this.observe(e.child2);n.clear()}for(let[e,t]of i)this.unobserve(e),t.type===`code`?YLe(t):XLe(t);i.clear()}cleanUp(){for(let e of this.observedNodes.keys())this.unobserve(e);this.observedNodes.clear()}observe(t){let{managersByElement:n}=e,r=n.get(t);if(r!==this){if(r!=null&&r!==this)throw Error(`ResizeManager.observe: element is already owned by another ResizeManager`);n.set(t,this),e.getResizeObserver().observe(t)}}unobserve(t){let{managersByElement:n,resizeObserver:r}=e,i=n.get(t);if(i!=null){if(i!==this)throw Error(`ResizeManager.unobserve: element is owned by another ResizeManager`);n.delete(t),r?.unobserve(t),r!=null&&n.size===0&&(r.disconnect(),e.resizeObserver=void 0)}}handleResizeEntries(e){let t=new Map,n=new Set;for(let r of e){let{target:e,borderBoxSize:i,contentBoxSize:a}=r;if(!(e instanceof HTMLElement)){console.error(`ResizeManager.handleResizeEntries: Invalid element for ResizeObserver`,r);continue}let o=this.observedNodes.get(e);if(o==null){console.error(`ResizeManager.handleResizeEntries: Not a valid observed node`,r);continue}if(o.type===`annotations`){let t=(()=>{if(e===o.column1.child)return o.column1;if(e===o.column2.child)return o.column2})();if(t==null){console.error(`ResizeManager.handleResizeEntries: Couldn't find a column for`,{item:o,target:e});continue}t.childHeight=i[0].blockSize,n.add(o)}else if(o.type===`code`){let n=t.get(o)??{},r=a[0].inlineSize;e===o.codeElement?n.codeInlineSize=r:e===o.numberElement&&(n.numberInlineSize=r),t.set(o,n)}}this.applyAnnotationUpdates(n),n.clear(),this.applyColumnUpdates(t),t.clear()}applyAnnotationUpdates(e){for(let t of e)this.applyNewHeight(t,Math.max(t.column1.childHeight,t.column2.childHeight))}applyColumnUpdates=e=>{for(let[t,n]of e){let e=n.codeInlineSize==null?t.codeWidth:qLe(n.codeInlineSize),r=n.numberInlineSize==null?t.numberWidth:JLe(n.numberInlineSize),i=e!==t.codeWidth,a=r!==t.numberWidth;if(!(!i&&!a)&&(t.codeWidth=e,t.numberWidth=r,i&&t.codeElement.style.setProperty(`--diffs-column-width`,`${typeof e==`number`?`${e}px`:`auto`}`),a&&t.codeElement.style.setProperty(`--diffs-column-number-width`,`${r===0?`auto`:`${r}px`}`),i||a&&e!==`auto`)){let n=typeof e==`number`?Math.max(e-r,0):0;t.codeElement.style.setProperty(`--diffs-column-content-width`,`${n>0?`${n}px`:`auto`}`)}}};applyNewHeight(e,t){t!==e.currentHeight&&(e.currentHeight=Math.max(t,0),e.column1.container.style.setProperty(`--diffs-annotation-min-height`,`${e.currentHeight}px`),e.column2.container.style.setProperty(`--diffs-annotation-min-height`,`${e.currentHeight}px`))}};function qLe(e){let t=Math.max(Math.floor(e),0);return t===0?`auto`:t}function JLe(e){return Math.max(Math.ceil(e),0)}function YLe(e){e.codeElement.isConnected&&(e.codeElement.style.removeProperty(`--diffs-column-content-width`),e.codeElement.style.removeProperty(`--diffs-column-number-width`),e.codeElement.style.removeProperty(`--diffs-column-width`))}function XLe(e){e.column1.container.isConnected&&e.column1.container.style.removeProperty(`--diffs-annotation-min-height`),e.column2.container.isConnected&&e.column2.container.style.removeProperty(`--diffs-annotation-min-height`)}var bG=new Map,xG=new Map,ZLe=new Map,SG=new Set;function CG(e){for(let t of Array.isArray(e)?e:[e])if(!(t===`text`||t===`ansi`)&&!SG.has(t))return!1;return!0}function wG(e,t){e=Array.isArray(e)?e:[e];for(let n of e){if(SG.has(n.name))continue;let e=bG.get(n.name);e??(e=n,bG.set(n.name,e)),SG.add(e.name),t.loadLanguageSync(e.data)}}function TG(){return typeof WorkerGlobalScope<`u`&&typeof self<`u`&&self instanceof WorkerGlobalScope}var EG=Object.defineProperty,QLe=Object.getOwnPropertyDescriptor,$Le=Object.getOwnPropertyNames,eRe=Object.prototype.hasOwnProperty,tRe=(e,t)=>{let n={};for(var r in e)EG(n,r,{get:e[r],enumerable:!0});return t||EG(n,Symbol.toStringTag,{value:`Module`}),n},DG=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=$Le(t),a=0,o=i.length,s;a<o;a++)s=i[a],!eRe.call(e,s)&&s!==n&&EG(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=QLe(t,s))||r.enumerable});return e},nRe=(e,t,n)=>(DG(e,t,`default`),n&&DG(n,t,`default`)),OG=[{id:`abap`,name:`ABAP`,import:(()=>q(()=>import(`./abap-CLvhMVsD.js`),[]))},{id:`actionscript-3`,name:`ActionScript`,import:(()=>q(()=>import(`./actionscript-3--17pq3dv.js`),[]))},{id:`ada`,name:`Ada`,import:(()=>q(()=>import(`./ada-C5qYipkI.js`),[]))},{id:`angular-html`,name:`Angular HTML`,import:(()=>q(()=>import(`./angular-html-BhHAxMde.js`).then(e=>e.n),__vite__mapDeps([0,1,2,3,4])))},{id:`angular-ts`,name:`Angular TypeScript`,import:(()=>q(()=>import(`./angular-ts-CxZFyQM4.js`),__vite__mapDeps([5,0,1,2,3,4,6])))},{id:`apache`,name:`Apache Conf`,import:(()=>q(()=>import(`./apache-U0d_L8uA.js`),[]))},{id:`apex`,name:`Apex`,import:(()=>q(()=>import(`./apex-VAyPSnFM.js`),[]))},{id:`apl`,name:`APL`,import:(()=>q(()=>import(`./apl-D8rOr4fH.js`),__vite__mapDeps([7,3,1,4,2,8,9,10])))},{id:`applescript`,name:`AppleScript`,import:(()=>q(()=>import(`./applescript-CCn79oCD.js`),[]))},{id:`ara`,name:`Ara`,import:(()=>q(()=>import(`./ara-4CJ0cIlV.js`),[]))},{id:`asciidoc`,name:`AsciiDoc`,aliases:[`adoc`],import:(()=>q(()=>import(`./asciidoc-DE70LPWp.js`),[]))},{id:`asm`,name:`Assembly`,import:(()=>q(()=>import(`./asm-Cmm7eHzH.js`),[]))},{id:`astro`,name:`Astro`,import:(()=>q(()=>import(`./astro-DYSYdOU9.js`),__vite__mapDeps([11,3,1,4,10,12,13,14])))},{id:`awk`,name:`AWK`,import:(()=>q(()=>import(`./awk-BWXHIvNe.js`),[]))},{id:`ballerina`,name:`Ballerina`,import:(()=>q(()=>import(`./ballerina-B7ZEbQpA.js`),[]))},{id:`bat`,name:`Batch File`,aliases:[`batch`],import:(()=>q(()=>import(`./bat-Bo4NYOV-.js`),[]))},{id:`beancount`,name:`Beancount`,import:(()=>q(()=>import(`./beancount-D-usSTwE.js`),[]))},{id:`berry`,name:`Berry`,aliases:[`be`],import:(()=>q(()=>import(`./berry-DKpUyyne.js`),[]))},{id:`bibtex`,name:`BibTeX`,import:(()=>q(()=>import(`./bibtex-Ci_nEsc7.js`),[]))},{id:`bicep`,name:`Bicep`,import:(()=>q(()=>import(`./bicep-CUHmPFLl.js`),[]))},{id:`bird2`,name:`BIRD2 Configuration`,aliases:[`bird`],import:(()=>q(()=>import(`./bird2-C6vDhewU.js`),[]))},{id:`blade`,name:`Blade`,import:(()=>q(()=>import(`./blade-DaHnYPa_.js`),__vite__mapDeps([15,3,1,4,2,8,9,10,16,17])))},{id:`bsl`,name:`1C (Enterprise)`,aliases:[`1c`],import:(()=>q(()=>import(`./bsl-BkkzgIyY.js`),__vite__mapDeps([18,19])))},{id:`c`,name:`C`,import:(()=>q(()=>import(`./c-oRWOBveW.js`).then(e=>e.n),__vite__mapDeps([20,1])))},{id:`c3`,name:`C3`,import:(()=>q(()=>import(`./c3-BFHwR3_K.js`),[]))},{id:`cadence`,name:`Cadence`,aliases:[`cdc`],import:(()=>q(()=>import(`./cadence-CQ2zXKGN.js`),[]))},{id:`cairo`,name:`Cairo`,import:(()=>q(()=>import(`./cairo-DLTphjLi.js`),__vite__mapDeps([21,22])))},{id:`clarity`,name:`Clarity`,import:(()=>q(()=>import(`./clarity-SemFz856.js`),[]))},{id:`clojure`,name:`Clojure`,aliases:[`clj`],import:(()=>q(()=>import(`./clojure-DqKBuwfJ.js`),[]))},{id:`cmake`,name:`CMake`,import:(()=>q(()=>import(`./cmake-Bj61d0ZC.js`),[]))},{id:`cobol`,name:`COBOL`,import:(()=>q(()=>import(`./cobol-Djebq6RA.js`),__vite__mapDeps([23,2,1,3,4,9])))},{id:`codeowners`,name:`CODEOWNERS`,import:(()=>q(()=>import(`./codeowners-C8r90Shi.js`),[]))},{id:`codeql`,name:`CodeQL`,aliases:[`ql`],import:(()=>q(()=>import(`./codeql-oeQT6MSM.js`),[]))},{id:`coffee`,name:`CoffeeScript`,aliases:[`coffeescript`],import:(()=>q(()=>import(`./coffee-CKhxS88r.js`),__vite__mapDeps([24,3,1])))},{id:`common-lisp`,name:`Common Lisp`,aliases:[`lisp`],import:(()=>q(()=>import(`./common-lisp-Cv5bFMCO.js`),[]))},{id:`coq`,name:`Coq`,import:(()=>q(()=>import(`./coq-BrsZFFmf.js`),[]))},{id:`cpp`,name:`C++`,aliases:[`c++`],import:(()=>q(()=>import(`./cpp-BjVgWq1h.js`).then(e=>e.n),__vite__mapDeps([25,1,17,26,27,20])))},{id:`crystal`,name:`Crystal`,import:(()=>q(()=>import(`./crystal-DXzIaEKx.js`),__vite__mapDeps([28,3,1,4,2,17,20,29])))},{id:`csharp`,name:`C#`,aliases:[`c#`,`cs`],import:(()=>q(()=>import(`./csharp-oqKa8noW.js`),[]))},{id:`css`,name:`CSS`,import:(()=>q(()=>import(`./css-7AulbBAq.js`).then(e=>e.n),__vite__mapDeps([4,1])))},{id:`csv`,name:`CSV`,import:(()=>q(()=>import(`./csv-Dx-8-gkx.js`),[]))},{id:`cue`,name:`CUE`,import:(()=>q(()=>import(`./cue-CE9AQfxI.js`),[]))},{id:`cypher`,name:`Cypher`,aliases:[`cql`],import:(()=>q(()=>import(`./cypher-ClKdZ_lG.js`),[]))},{id:`d`,name:`D`,import:(()=>q(()=>import(`./d-qD-0Kul2.js`),[]))},{id:`dart`,name:`Dart`,import:(()=>q(()=>import(`./dart-CnvKMtbv.js`),[]))},{id:`dax`,name:`DAX`,import:(()=>q(()=>import(`./dax-BkyTk9wS.js`),[]))},{id:`desktop`,name:`Desktop`,import:(()=>q(()=>import(`./desktop-Dlh5hvp9.js`),[]))},{id:`diff`,name:`Diff`,import:(()=>q(()=>import(`./diff-woXpYk--.js`),[]))},{id:`docker`,name:`Dockerfile`,aliases:[`dockerfile`],import:(()=>q(()=>import(`./docker-IyjqRm3v.js`),[]))},{id:`dotenv`,name:`dotEnv`,import:(()=>q(()=>import(`./dotenv-_5a1GRtc.js`),[]))},{id:`dream-maker`,name:`Dream Maker`,import:(()=>q(()=>import(`./dream-maker-DW3nJb8Q.js`),[]))},{id:`edge`,name:`Edge`,import:(()=>q(()=>import(`./edge-B3VgcX6t.js`),__vite__mapDeps([30,2,1,3,4,12,16])))},{id:`elixir`,name:`Elixir`,import:(()=>q(()=>import(`./elixir-DGUU7Wwf.js`),__vite__mapDeps([31,2,1,3,4])))},{id:`elm`,name:`Elm`,import:(()=>q(()=>import(`./elm-B9tr8qBJ.js`),__vite__mapDeps([32,27,1,20])))},{id:`emacs-lisp`,name:`Emacs Lisp`,aliases:[`elisp`],import:(()=>q(()=>import(`./emacs-lisp-B4R74twV.js`),[]))},{id:`erb`,name:`ERB`,import:(()=>q(()=>import(`./erb-BgSl2c_f.js`),__vite__mapDeps([33,2,1,3,4,34,8,9,17,20,25,26,27,29,35,36,12,14,37,38,39])))},{id:`erlang`,name:`Erlang`,aliases:[`erl`],import:(()=>q(()=>import(`./erlang-Cphh6RMH.js`),__vite__mapDeps([40,41])))},{id:`fennel`,name:`Fennel`,import:(()=>q(()=>import(`./fennel-DQxkIbk2.js`),[]))},{id:`fish`,name:`Fish`,import:(()=>q(()=>import(`./fish-BJitypiv.js`),[]))},{id:`fluent`,name:`Fluent`,aliases:[`ftl`],import:(()=>q(()=>import(`./fluent-C03EYrpw.js`),[]))},{id:`fortran-fixed-form`,name:`Fortran (Fixed Form)`,aliases:[`f`,`for`,`f77`],import:(()=>q(()=>import(`./fortran-fixed-form-DEKoE2YW.js`),__vite__mapDeps([42,43])))},{id:`fortran-free-form`,name:`Fortran (Free Form)`,aliases:[`f90`,`f95`,`f03`,`f08`,`f18`],import:(()=>q(()=>import(`./fortran-free-form-CYNrtFtB.js`),[]))},{id:`fsharp`,name:`F#`,aliases:[`f#`,`fs`],import:(()=>q(()=>import(`./fsharp-D13ZGOAj.js`),__vite__mapDeps([44,41])))},{id:`gdresource`,name:`GDResource`,aliases:[`tscn`,`tres`],import:(()=>q(()=>import(`./gdresource-C0sCabJj.js`),__vite__mapDeps([45,46,47])))},{id:`gdscript`,name:`GDScript`,aliases:[`gd`],import:(()=>q(()=>import(`./gdscript-Cp2uCuqX.js`),[]))},{id:`gdshader`,name:`GDShader`,import:(()=>q(()=>import(`./gdshader-CBce3t8t.js`),[]))},{id:`genie`,name:`Genie`,import:(()=>q(()=>import(`./genie-CV2tkWYe.js`),[]))},{id:`gherkin`,name:`Gherkin`,import:(()=>q(()=>import(`./gherkin-DExj1W_8.js`),[]))},{id:`git-commit`,name:`Git Commit Message`,import:(()=>q(()=>import(`./git-commit-BSykSTBG.js`),__vite__mapDeps([48,49])))},{id:`git-rebase`,name:`Git Rebase Message`,import:(()=>q(()=>import(`./git-rebase-CJMhrhmS.js`),__vite__mapDeps([50,29,1])))},{id:`gleam`,name:`Gleam`,import:(()=>q(()=>import(`./gleam-CSRkHgEL.js`),[]))},{id:`glimmer-js`,name:`Glimmer JS`,aliases:[`gjs`],import:(()=>q(()=>import(`./glimmer-js-Dzf5VMSx.js`),__vite__mapDeps([51,3,1,4,2,12])))},{id:`glimmer-ts`,name:`Glimmer TS`,aliases:[`gts`],import:(()=>q(()=>import(`./glimmer-ts-CHD8gl5-.js`),__vite__mapDeps([52,3,1,4,2,12])))},{id:`glsl`,name:`GLSL`,import:(()=>q(()=>import(`./glsl-CDpKClnF.js`).then(e=>e.n),__vite__mapDeps([27,1,20])))},{id:`gn`,name:`GN`,import:(()=>q(()=>import(`./gn-ilITqXS6.js`),[]))},{id:`gnuplot`,name:`Gnuplot`,import:(()=>q(()=>import(`./gnuplot-7GGW24-e.js`),[]))},{id:`go`,name:`Go`,import:(()=>q(()=>import(`./go-rLFTqkRN.js`),[]))},{id:`graphql`,name:`GraphQL`,aliases:[`gql`],import:(()=>q(()=>import(`./graphql-DX6Ul3G5.js`).then(e=>e.n),__vite__mapDeps([36,1,3,12,14,37])))},{id:`groovy`,name:`Groovy`,import:(()=>q(()=>import(`./groovy-CacY0gHj.js`),[]))},{id:`hack`,name:`Hack`,import:(()=>q(()=>import(`./hack-NU-7p0gC.js`),__vite__mapDeps([53,2,1,3,4,17])))},{id:`haml`,name:`Ruby Haml`,import:(()=>q(()=>import(`./haml-Cf7Y-ZgP.js`).then(e=>e.n),__vite__mapDeps([35,1,3,4])))},{id:`handlebars`,name:`Handlebars`,aliases:[`hbs`],import:(()=>q(()=>import(`./handlebars-BOvzNDfr.js`),__vite__mapDeps([54,3,1,4,2,39])))},{id:`haskell`,name:`Haskell`,aliases:[`hs`],import:(()=>q(()=>import(`./haskell-D8IpX4py.js`),[]))},{id:`haxe`,name:`Haxe`,import:(()=>q(()=>import(`./haxe-OTjmBuCE.js`),[]))},{id:`hcl`,name:`HashiCorp HCL`,import:(()=>q(()=>import(`./hcl-Dh228itO.js`),[]))},{id:`hjson`,name:`Hjson`,import:(()=>q(()=>import(`./hjson-CxZEssPk.js`),[]))},{id:`hlsl`,name:`HLSL`,import:(()=>q(()=>import(`./hlsl-Cvrh5tZx.js`),[]))},{id:`html`,name:`HTML`,import:(()=>q(()=>import(`./html-CokKN6Uo.js`).then(e=>e.n),__vite__mapDeps([2,1,3,4])))},{id:`html-derivative`,name:`HTML (Derivative)`,import:(()=>q(()=>import(`./html-derivative-CcTOncd6.js`),__vite__mapDeps([16,2,1,3,4])))},{id:`http`,name:`HTTP`,import:(()=>q(()=>import(`./http-CGr88I6S.js`),__vite__mapDeps([55,8,1,9,10,29,36,3,12,14,37])))},{id:`hurl`,name:`Hurl`,import:(()=>q(()=>import(`./hurl-BfdIF20D.js`),__vite__mapDeps([56,8,1,9,57,36,3,12,14,37])))},{id:`hxml`,name:`HXML`,import:(()=>q(()=>import(`./hxml-B0Qn7Nwc.js`),__vite__mapDeps([58,59])))},{id:`hy`,name:`Hy`,import:(()=>q(()=>import(`./hy-CZbG8q4J.js`),[]))},{id:`imba`,name:`Imba`,import:(()=>q(()=>import(`./imba-DsUTQ-LC.js`),[]))},{id:`ini`,name:`INI`,aliases:[`properties`],import:(()=>q(()=>import(`./ini-B5eOa1yu.js`),[]))},{id:`java`,name:`Java`,import:(()=>q(()=>import(`./java-DjcrYPKU.js`).then(e=>e.n),__vite__mapDeps([9,1])))},{id:`javascript`,name:`JavaScript`,aliases:[`js`,`cjs`,`mjs`],import:(()=>q(()=>import(`./javascript-C1msiELJ.js`).then(e=>e.n),__vite__mapDeps([3,1])))},{id:`jinja`,name:`Jinja`,import:(()=>q(()=>import(`./jinja-BP-z74Sl.js`),__vite__mapDeps([60,2,1,3,4])))},{id:`jison`,name:`Jison`,import:(()=>q(()=>import(`./jison-DTU_ib6_.js`),__vite__mapDeps([61,3,1])))},{id:`json`,name:`JSON`,import:(()=>q(()=>import(`./json-n2oR8huX.js`).then(e=>e.n),__vite__mapDeps([10,1])))},{id:`json5`,name:`JSON5`,import:(()=>q(()=>import(`./json5-BR5RXkoi.js`),[]))},{id:`jsonc`,name:`JSON with Comments`,import:(()=>q(()=>import(`./jsonc-CYpm1nAK.js`),[]))},{id:`jsonl`,name:`JSON Lines`,import:(()=>q(()=>import(`./jsonl-CmCQp5Yx.js`),[]))},{id:`jsonnet`,name:`Jsonnet`,import:(()=>q(()=>import(`./jsonnet-CJTPZ8u_.js`),[]))},{id:`jssm`,name:`JSSM`,aliases:[`fsl`],import:(()=>q(()=>import(`./jssm-DXw9l8Rf.js`),[]))},{id:`jsx`,name:`JSX`,import:(()=>q(()=>import(`./jsx-DLc8ZGPF.js`).then(e=>e.n),__vite__mapDeps([37,1])))},{id:`julia`,name:`Julia`,aliases:[`jl`],import:(()=>q(()=>import(`./julia-BFtTfktg.js`),__vite__mapDeps([62,3,1,17,22,25,26,27,20,63])))},{id:`just`,name:`Just`,import:(()=>q(()=>import(`./just-CBZfmiGm.js`),__vite__mapDeps([64,3,1,12,22,29,34,4,2,8,9,17,20,25,26,27,35,36,14,37,38,39,65])))},{id:`kdl`,name:`KDL`,import:(()=>q(()=>import(`./kdl-CsD5j6eV.js`),[]))},{id:`kotlin`,name:`Kotlin`,aliases:[`kt`,`kts`],import:(()=>q(()=>import(`./kotlin-DhhofPvG.js`),[]))},{id:`kusto`,name:`Kusto`,aliases:[`kql`],import:(()=>q(()=>import(`./kusto-C7mF5XQf.js`),[]))},{id:`latex`,name:`LaTeX`,import:(()=>q(()=>import(`./latex-B9jcgQKp.js`),__vite__mapDeps([66,67,63,1])))},{id:`lean`,name:`Lean 4`,aliases:[`lean4`],import:(()=>q(()=>import(`./lean-CewbzKMR.js`),[]))},{id:`less`,name:`Less`,import:(()=>q(()=>import(`./less-DVTAwKKz.js`),[]))},{id:`liquid`,name:`Liquid`,import:(()=>q(()=>import(`./liquid-D-PCb97a.js`),__vite__mapDeps([68,3,1,4,2,10])))},{id:`llvm`,name:`LLVM IR`,import:(()=>q(()=>import(`./llvm-Cm23YOpf.js`),[]))},{id:`log`,name:`Log file`,import:(()=>q(()=>import(`./log-BNLmms1o.js`),[]))},{id:`logo`,name:`Logo`,import:(()=>q(()=>import(`./logo-Cluzi2Zq.js`),[]))},{id:`lua`,name:`Lua`,import:(()=>q(()=>import(`./lua-CeAbwjz7.js`).then(e=>e.n),__vite__mapDeps([38,1,20])))},{id:`luau`,name:`Luau`,import:(()=>q(()=>import(`./luau-FMPmPwt6.js`),[]))},{id:`make`,name:`Makefile`,aliases:[`makefile`],import:(()=>q(()=>import(`./make-Dixweg8N.js`),[]))},{id:`markdown`,name:`Markdown`,aliases:[`md`],import:(()=>q(()=>import(`./markdown-BYOwaDjH.js`),[]))},{id:`marko`,name:`Marko`,import:(()=>q(()=>import(`./marko-D2oCpzm8.js`),__vite__mapDeps([69,4,1,6,12,70])))},{id:`matlab`,name:`MATLAB`,import:(()=>q(()=>import(`./matlab-D7qyCx1q.js`),[]))},{id:`mdc`,name:`MDC`,import:(()=>q(()=>import(`./mdc-BN4ff7dr.js`),__vite__mapDeps([71,16,2,1,3,4,39,41])))},{id:`mdx`,name:`MDX`,import:(()=>q(()=>import(`./mdx-DQZ5AkYe.js`),[]))},{id:`mermaid`,name:`Mermaid`,aliases:[`mmd`],import:(()=>q(()=>import(`./mermaid-Bk4SNUv9.js`),[]))},{id:`mipsasm`,name:`MIPS Assembly`,aliases:[`mips`],import:(()=>q(()=>import(`./mipsasm-BMqwQI7S.js`),[]))},{id:`mojo`,name:`Mojo`,import:(()=>q(()=>import(`./mojo-BgCJLMeH.js`),[]))},{id:`moonbit`,name:`MoonBit`,aliases:[`mbt`,`mbti`],import:(()=>q(()=>import(`./moonbit-CaWjb8XO.js`),[]))},{id:`move`,name:`Move`,import:(()=>q(()=>import(`./move-B1IS1UjX.js`),[]))},{id:`narrat`,name:`Narrat Language`,aliases:[`nar`],import:(()=>q(()=>import(`./narrat-_X_XdTYD.js`),[]))},{id:`nextflow`,name:`Nextflow`,aliases:[`nf`],import:(()=>q(()=>import(`./nextflow-BJtWHP5T.js`),__vite__mapDeps([72,73])))},{id:`nextflow-groovy`,name:`Nextflow Groovy`,import:(()=>q(()=>import(`./nextflow-groovy-DJMQeKeT.js`),[]))},{id:`nginx`,name:`Nginx`,import:(()=>q(()=>import(`./nginx-TigpgX3q.js`),__vite__mapDeps([74,38,1,20])))},{id:`nim`,name:`Nim`,import:(()=>q(()=>import(`./nim-BbkIxZP5.js`),__vite__mapDeps([75,3,1,4,2,8,9,20,27,41])))},{id:`nix`,name:`Nix`,import:(()=>q(()=>import(`./nix-IvuFDN5E.js`),[]))},{id:`nushell`,name:`nushell`,aliases:[`nu`],import:(()=>q(()=>import(`./nushell-DcLAeLz5.js`),[]))},{id:`objective-c`,name:`Objective-C`,aliases:[`objc`],import:(()=>q(()=>import(`./objective-c-D1A_Heim.js`),[]))},{id:`objective-cpp`,name:`Objective-C++`,import:(()=>q(()=>import(`./objective-cpp-BsSzOQcm.js`),[]))},{id:`ocaml`,name:`OCaml`,import:(()=>q(()=>import(`./ocaml-O90oeIOV.js`),[]))},{id:`odin`,name:`Odin`,import:(()=>q(()=>import(`./odin-B1RWQWA5.js`),[]))},{id:`openscad`,name:`OpenSCAD`,aliases:[`scad`],import:(()=>q(()=>import(`./openscad-BUDT5pXO.js`),[]))},{id:`pascal`,name:`Pascal`,import:(()=>q(()=>import(`./pascal-4ZHwLPI5.js`),[]))},{id:`perl`,name:`Perl`,import:(()=>q(()=>import(`./perl-Dq3UNlmA.js`),__vite__mapDeps([65,3,1,4,2,8,9,17])))},{id:`php`,name:`PHP`,import:(()=>q(()=>import(`./php-CDBbIDUr.js`),__vite__mapDeps([76,3,1,4,2,8,9,10,17])))},{id:`pkl`,name:`Pkl`,import:(()=>q(()=>import(`./pkl-ot-7Btpt.js`),[]))},{id:`plsql`,name:`PL/SQL`,import:(()=>q(()=>import(`./plsql-DGHpHOYJ.js`),[]))},{id:`po`,name:`Gettext PO`,aliases:[`pot`,`potx`],import:(()=>q(()=>import(`./po-BiJDBrnU.js`),[]))},{id:`polar`,name:`Polar`,import:(()=>q(()=>import(`./polar-C7UOKdEL.js`),[]))},{id:`postcss`,name:`PostCSS`,import:(()=>q(()=>import(`./postcss-BXeXVLqQ.js`),[]))},{id:`powerquery`,name:`PowerQuery`,import:(()=>q(()=>import(`./powerquery-DNMTfnFr.js`),[]))},{id:`powershell`,name:`PowerShell`,aliases:[`ps`,`ps1`],import:(()=>q(()=>import(`./powershell-DshXNtvi.js`),[]))},{id:`prisma`,name:`Prisma`,import:(()=>q(()=>import(`./prisma-BsRQq5mF.js`),[]))},{id:`prolog`,name:`Prolog`,import:(()=>q(()=>import(`./prolog-iXnhIJG7.js`),[]))},{id:`proto`,name:`Protocol Buffer 3`,aliases:[`protobuf`],import:(()=>q(()=>import(`./proto-DB4EqR-F.js`),[]))},{id:`pug`,name:`Pug`,aliases:[`jade`],import:(()=>q(()=>import(`./pug-X1om8_0C.js`),__vite__mapDeps([77,3,1,4,2])))},{id:`puppet`,name:`Puppet`,import:(()=>q(()=>import(`./puppet-CDv2pdJW.js`),[]))},{id:`purescript`,name:`PureScript`,import:(()=>q(()=>import(`./purescript-9MfHhQsQ.js`),[]))},{id:`python`,name:`Python`,aliases:[`py`],import:(()=>q(()=>import(`./python-gzcpVVnB.js`),[]))},{id:`qml`,name:`QML`,import:(()=>q(()=>import(`./qml-C_aweCjl.js`),__vite__mapDeps([78,3,1])))},{id:`qmldir`,name:`QML Directory`,import:(()=>q(()=>import(`./qmldir-DCQb3MpD.js`),[]))},{id:`qss`,name:`Qt Style Sheets`,import:(()=>q(()=>import(`./qss-Fe1Jh2GI.js`),[]))},{id:`r`,name:`R`,import:(()=>q(()=>import(`./r-BH02pZo7.js`).then(e=>e.n),__vite__mapDeps([63,1])))},{id:`racket`,name:`Racket`,import:(()=>q(()=>import(`./racket-DcIDlBhZ.js`),[]))},{id:`raku`,name:`Raku`,aliases:[`perl6`],import:(()=>q(()=>import(`./raku-B3gFvitq.js`),[]))},{id:`razor`,name:`ASP.NET Razor`,import:(()=>q(()=>import(`./razor-DFd9duVt.js`),__vite__mapDeps([79,2,1,3,4,80])))},{id:`reg`,name:`Windows Registry Script`,import:(()=>q(()=>import(`./reg-CRGYupPL.js`),[]))},{id:`regexp`,name:`RegExp`,aliases:[`regex`],import:(()=>q(()=>import(`./regexp-BYgWQcZZ.js`).then(e=>e.n),__vite__mapDeps([26,1])))},{id:`rel`,name:`Rel`,import:(()=>q(()=>import(`./rel-BtDbiS_P.js`),[]))},{id:`riscv`,name:`RISC-V`,import:(()=>q(()=>import(`./riscv-Ckw8ddFX.js`),[]))},{id:`ron`,name:`RON`,import:(()=>q(()=>import(`./ron-VUp2lXgN.js`),[]))},{id:`rosmsg`,name:`ROS Interface`,import:(()=>q(()=>import(`./rosmsg-CAekHB0j.js`),[]))},{id:`rst`,name:`reStructuredText`,import:(()=>q(()=>import(`./rst-DS4ajG1_.js`),__vite__mapDeps([81,3,1,16,2,4,22,82,25,17,26,27,20,29,39,34,8,9,35,36,12,14,37,38])))},{id:`ruby`,name:`Ruby`,aliases:[`rb`],import:(()=>q(()=>import(`./ruby-rrP3E-yX.js`),__vite__mapDeps([34,3,1,4,2,8,9,17,20,25,26,27,29,35,36,12,14,37,38,39])))},{id:`rust`,name:`Rust`,aliases:[`rs`],import:(()=>q(()=>import(`./rust-Cfkwpbl8.js`),[]))},{id:`sas`,name:`SAS`,import:(()=>q(()=>import(`./sas-qOp3AbMp.js`),__vite__mapDeps([83,17,1])))},{id:`sass`,name:`Sass`,import:(()=>q(()=>import(`./sass-DXrisJhu.js`),[]))},{id:`scala`,name:`Scala`,import:(()=>q(()=>import(`./scala-DKOlJaKm.js`),[]))},{id:`scheme`,name:`Scheme`,import:(()=>q(()=>import(`./scheme-DQCgrYNe.js`),[]))},{id:`scss`,name:`SCSS`,import:(()=>q(()=>import(`./scss-BePdknOf.js`).then(e=>e.n),__vite__mapDeps([6,1,4])))},{id:`sdbl`,name:`1C (Query)`,aliases:[`1c-query`],import:(()=>q(()=>import(`./sdbl-bTVj8UrX.js`),[]))},{id:`shaderlab`,name:`ShaderLab`,aliases:[`shader`],import:(()=>q(()=>import(`./shaderlab-TOUzSsQk.js`),__vite__mapDeps([84,85])))},{id:`shellscript`,name:`Shell`,aliases:[`bash`,`sh`,`shell`,`zsh`],import:(()=>q(()=>import(`./shellscript-Di7DOIUv.js`).then(e=>e.n),__vite__mapDeps([29,1])))},{id:`shellsession`,name:`Shell Session`,aliases:[`console`],import:(()=>q(()=>import(`./shellsession-DS-qEJoT.js`),__vite__mapDeps([86,29,1])))},{id:`smalltalk`,name:`Smalltalk`,import:(()=>q(()=>import(`./smalltalk-B16xEiuN.js`),[]))},{id:`solidity`,name:`Solidity`,import:(()=>q(()=>import(`./solidity-CKzVLygQ.js`),[]))},{id:`soy`,name:`Closure Templates`,aliases:[`closure-templates`],import:(()=>q(()=>import(`./soy-CT_pCK5o.js`),__vite__mapDeps([87,2,1,3,4])))},{id:`sparql`,name:`SPARQL`,import:(()=>q(()=>import(`./sparql-D_iOobhT.js`),__vite__mapDeps([88,89])))},{id:`splunk`,name:`Splunk Query Language`,aliases:[`spl`],import:(()=>q(()=>import(`./splunk-BC2Px7Mm.js`),[]))},{id:`sql`,name:`SQL`,import:(()=>q(()=>import(`./sql-CVynNG6j.js`).then(e=>e.n),__vite__mapDeps([17,1])))},{id:`ssh-config`,name:`SSH Config`,import:(()=>q(()=>import(`./ssh-config-BgfXC-Er.js`),[]))},{id:`stata`,name:`Stata`,import:(()=>q(()=>import(`./stata-B2fKxQHN.js`),__vite__mapDeps([90,17,1])))},{id:`stylus`,name:`Stylus`,aliases:[`styl`],import:(()=>q(()=>import(`./stylus-B6D30XZt.js`),[]))},{id:`surrealql`,name:`SurrealQL`,aliases:[`surql`],import:(()=>q(()=>import(`./surrealql-BOcosx9e.js`),__vite__mapDeps([91,3,1])))},{id:`svelte`,name:`Svelte`,import:(()=>q(()=>import(`./svelte-BQBQ3ysY.js`),__vite__mapDeps([92,3,1,4,12,13])))},{id:`swift`,name:`Swift`,import:(()=>q(()=>import(`./swift-DonLKvLd.js`),[]))},{id:`system-verilog`,name:`SystemVerilog`,import:(()=>q(()=>import(`./system-verilog-DJ5XKQeo.js`),[]))},{id:`systemd`,name:`Systemd Units`,import:(()=>q(()=>import(`./systemd-BxMlprV5.js`),[]))},{id:`talonscript`,name:`TalonScript`,aliases:[`talon`],import:(()=>q(()=>import(`./talonscript-CohzipZa.js`),[]))},{id:`tasl`,name:`Tasl`,import:(()=>q(()=>import(`./tasl-DMoTqEGO.js`),[]))},{id:`tcl`,name:`Tcl`,import:(()=>q(()=>import(`./tcl-CZd0xW_V.js`),[]))},{id:`templ`,name:`Templ`,import:(()=>q(()=>import(`./templ-cinsfbYE.js`),__vite__mapDeps([93,3,1,4,94])))},{id:`terraform`,name:`Terraform`,aliases:[`tf`,`tfvars`],import:(()=>q(()=>import(`./terraform-DswuEJGm.js`),[]))},{id:`tex`,name:`TeX`,import:(()=>q(()=>import(`./tex-PiJ0CI8J.js`),__vite__mapDeps([67,63,1])))},{id:`toml`,name:`TOML`,import:(()=>q(()=>import(`./toml-CcmNWLt0.js`),[]))},{id:`ts-tags`,name:`TypeScript with Tags`,aliases:[`lit`],import:(()=>q(()=>import(`./ts-tags-jRjqE2jk.js`),__vite__mapDeps([95,3,1,4,2,8,9,12,17,27,20])))},{id:`tsv`,name:`TSV`,import:(()=>q(()=>import(`./tsv-sltzmVWM.js`),[]))},{id:`tsx`,name:`TSX`,import:(()=>q(()=>import(`./tsx-DqzTbomV.js`).then(e=>e.n),__vite__mapDeps([14,1])))},{id:`turtle`,name:`Turtle`,import:(()=>q(()=>import(`./turtle-ByJddavk.js`),[]))},{id:`twig`,name:`Twig`,import:(()=>q(()=>import(`./twig-5U1Vd9zl.js`),__vite__mapDeps([96,3,1,4,6,22,34,2,8,9,17,20,25,26,27,29,35,36,12,14,37,38,39,76,10])))},{id:`typescript`,name:`TypeScript`,aliases:[`ts`,`cts`,`mts`],import:(()=>q(()=>import(`./typescript-DmYNCX8k.js`).then(e=>e.n),__vite__mapDeps([12,1])))},{id:`typespec`,name:`TypeSpec`,aliases:[`tsp`],import:(()=>q(()=>import(`./typespec-BRdr0IET.js`),[]))},{id:`typst`,name:`Typst`,aliases:[`typ`],import:(()=>q(()=>import(`./typst-DI99ib-x.js`),[]))},{id:`v`,name:`V`,import:(()=>q(()=>import(`./v-DETTlOr0.js`),[]))},{id:`vala`,name:`Vala`,import:(()=>q(()=>import(`./vala-zf12oZj6.js`),[]))},{id:`vb`,name:`Visual Basic`,aliases:[`cmd`],import:(()=>q(()=>import(`./vb-Djn5o6TS.js`),[]))},{id:`verilog`,name:`Verilog`,import:(()=>q(()=>import(`./verilog-CiiDBU1e.js`),[]))},{id:`vhdl`,name:`VHDL`,import:(()=>q(()=>import(`./vhdl-BroJfC0k.js`),[]))},{id:`viml`,name:`Vim Script`,aliases:[`vim`,`vimscript`],import:(()=>q(()=>import(`./viml-DvXPmvsu.js`),[]))},{id:`vue`,name:`Vue`,import:(()=>q(()=>import(`./vue-BOE7yHne.js`),__vite__mapDeps([97,3,1,4,2,10,12,16])))},{id:`vue-html`,name:`Vue HTML`,import:(()=>q(()=>import(`./vue-html-roHe5KnN.js`),__vite__mapDeps([98,3,1])))},{id:`vue-vine`,name:`Vue Vine`,import:(()=>q(()=>import(`./vue-vine-YC-R0SEx.js`),__vite__mapDeps([99,3,1,4,6,13,70,100])))},{id:`vyper`,name:`Vyper`,aliases:[`vy`],import:(()=>q(()=>import(`./vyper-CgoNMtux.js`),[]))},{id:`wasm`,name:`WebAssembly`,import:(()=>q(()=>import(`./wasm-ByWQv1Qj.js`),[]))},{id:`wenyan`,name:`Wenyan`,aliases:[`文言`],import:(()=>q(()=>import(`./wenyan-C8pVoKbM.js`),[]))},{id:`wgsl`,name:`WGSL`,import:(()=>q(()=>import(`./wgsl-BsKzXJz4.js`),[]))},{id:`wikitext`,name:`Wikitext`,aliases:[`mediawiki`,`wiki`],import:(()=>q(()=>import(`./wikitext-ClFFjSW2.js`),[]))},{id:`wit`,name:`WebAssembly Interface Types`,import:(()=>q(()=>import(`./wit-DdvCle-K.js`),[]))},{id:`wolfram`,name:`Wolfram`,aliases:[`wl`],import:(()=>q(()=>import(`./wolfram-DLL8P-h_.js`),[]))},{id:`xml`,name:`XML`,import:(()=>q(()=>import(`./xml-B-QQaugn.js`).then(e=>e.n),__vite__mapDeps([8,1,9])))},{id:`xsl`,name:`XSL`,import:(()=>q(()=>import(`./xsl-CyPKxPW7.js`),__vite__mapDeps([101,8,1,9])))},{id:`yaml`,name:`YAML`,aliases:[`yml`],import:(()=>q(()=>import(`./yaml-Bq2pe1E4.js`).then(e=>e.n),__vite__mapDeps([39,1])))},{id:`zenscript`,name:`ZenScript`,import:(()=>q(()=>import(`./zenscript-BnlCZFoB.js`),[]))},{id:`zig`,name:`Zig`,import:(()=>q(()=>import(`./zig-CMLA9XwU.js`),[]))}],rRe=Object.fromEntries(OG.map(e=>[e.id,e.import])),iRe=Object.fromEntries(OG.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),kG={...rRe,...iRe},aRe=Object.fromEntries([{id:`andromeeda`,displayName:`Andromeeda`,type:`dark`,import:(()=>q(()=>import(`./andromeeda-WkhI09AS.js`),[]))},{id:`aurora-x`,displayName:`Aurora X`,type:`dark`,import:(()=>q(()=>import(`./aurora-x-C7CFqhAd.js`),[]))},{id:`ayu-dark`,displayName:`Ayu Dark`,type:`dark`,import:(()=>q(()=>import(`./ayu-dark-CRu61w6_.js`),[]))},{id:`ayu-light`,displayName:`Ayu Light`,type:`light`,import:(()=>q(()=>import(`./ayu-light-Dn6O_aYR.js`),[]))},{id:`ayu-mirage`,displayName:`Ayu Mirage`,type:`dark`,import:(()=>q(()=>import(`./ayu-mirage-CTjYAbs-.js`),[]))},{id:`catppuccin-frappe`,displayName:`Catppuccin Frappé`,type:`dark`,import:(()=>q(()=>import(`./catppuccin-frappe-DFlFW5gh.js`),[]))},{id:`catppuccin-latte`,displayName:`Catppuccin Latte`,type:`light`,import:(()=>q(()=>import(`./catppuccin-latte-CpxdcXpJ.js`),[]))},{id:`catppuccin-macchiato`,displayName:`Catppuccin Macchiato`,type:`dark`,import:(()=>q(()=>import(`./catppuccin-macchiato-DIdIQ04K.js`),[]))},{id:`catppuccin-mocha`,displayName:`Catppuccin Mocha`,type:`dark`,import:(()=>q(()=>import(`./catppuccin-mocha-Co3Xjl64.js`),[]))},{id:`dark-plus`,displayName:`Dark Plus`,type:`dark`,import:(()=>q(()=>import(`./dark-plus-GAt2ZgX8.js`),[]))},{id:`dracula`,displayName:`Dracula Theme`,type:`dark`,import:(()=>q(()=>import(`./dracula-C2uKkzgK.js`),[]))},{id:`dracula-soft`,displayName:`Dracula Theme Soft`,type:`dark`,import:(()=>q(()=>import(`./dracula-soft-D1bVjxWZ.js`),[]))},{id:`everforest-dark`,displayName:`Everforest Dark`,type:`dark`,import:(()=>q(()=>import(`./everforest-dark-D-DlICQR.js`),[]))},{id:`everforest-light`,displayName:`Everforest Light`,type:`light`,import:(()=>q(()=>import(`./everforest-light-CeVdGHYG.js`),[]))},{id:`github-dark`,displayName:`GitHub Dark`,type:`dark`,import:(()=>q(()=>import(`./github-dark-DwbbXv51.js`),[]))},{id:`github-dark-default`,displayName:`GitHub Dark Default`,type:`dark`,import:(()=>q(()=>import(`./github-dark-default-CxjRwzl6.js`),[]))},{id:`github-dark-dimmed`,displayName:`GitHub Dark Dimmed`,type:`dark`,import:(()=>q(()=>import(`./github-dark-dimmed-Cr1oaoul.js`),[]))},{id:`github-dark-high-contrast`,displayName:`GitHub Dark High Contrast`,type:`dark`,import:(()=>q(()=>import(`./github-dark-high-contrast-B4qJZLZa.js`),[]))},{id:`github-light`,displayName:`GitHub Light`,type:`light`,import:(()=>q(()=>import(`./github-light-CsVXhIlR.js`),[]))},{id:`github-light-default`,displayName:`GitHub Light Default`,type:`light`,import:(()=>q(()=>import(`./github-light-default-DB_IwZa6.js`),[]))},{id:`github-light-high-contrast`,displayName:`GitHub Light High Contrast`,type:`light`,import:(()=>q(()=>import(`./github-light-high-contrast-DLgVeSB-.js`),[]))},{id:`gruvbox-dark-hard`,displayName:`Gruvbox Dark Hard`,type:`dark`,import:(()=>q(()=>import(`./gruvbox-dark-hard-DXm60lX3.js`),[]))},{id:`gruvbox-dark-medium`,displayName:`Gruvbox Dark Medium`,type:`dark`,import:(()=>q(()=>import(`./gruvbox-dark-medium-GE2thSmD.js`),[]))},{id:`gruvbox-dark-soft`,displayName:`Gruvbox Dark Soft`,type:`dark`,import:(()=>q(()=>import(`./gruvbox-dark-soft-04Cj-4VZ.js`),[]))},{id:`gruvbox-light-hard`,displayName:`Gruvbox Light Hard`,type:`light`,import:(()=>q(()=>import(`./gruvbox-light-hard-K6wSn29D.js`),[]))},{id:`gruvbox-light-medium`,displayName:`Gruvbox Light Medium`,type:`light`,import:(()=>q(()=>import(`./gruvbox-light-medium-CVy3aSlc.js`),[]))},{id:`gruvbox-light-soft`,displayName:`Gruvbox Light Soft`,type:`light`,import:(()=>q(()=>import(`./gruvbox-light-soft-DNgJjaY0.js`),[]))},{id:`horizon`,displayName:`Horizon`,type:`dark`,import:(()=>q(()=>import(`./horizon-0-RkHfro.js`),[]))},{id:`horizon-bright`,displayName:`Horizon Bright`,type:`light`,import:(()=>q(()=>import(`./horizon-bright-BgL2X9oq.js`),[]))},{id:`houston`,displayName:`Houston`,type:`dark`,import:(()=>q(()=>import(`./houston-KyjWKfuY.js`),[]))},{id:`kanagawa-dragon`,displayName:`Kanagawa Dragon`,type:`dark`,import:(()=>q(()=>import(`./kanagawa-dragon-7TqgsUPC.js`),[]))},{id:`kanagawa-lotus`,displayName:`Kanagawa Lotus`,type:`light`,import:(()=>q(()=>import(`./kanagawa-lotus-CqxMQulh.js`),[]))},{id:`kanagawa-wave`,displayName:`Kanagawa Wave`,type:`dark`,import:(()=>q(()=>import(`./kanagawa-wave-D8CNn6T_.js`),[]))},{id:`laserwave`,displayName:`LaserWave`,type:`dark`,import:(()=>q(()=>import(`./laserwave-CQkdhozh.js`),[]))},{id:`light-plus`,displayName:`Light Plus`,type:`light`,import:(()=>q(()=>import(`./light-plus-CNQ8_7Y0.js`),[]))},{id:`material-theme`,displayName:`Material Theme`,type:`dark`,import:(()=>q(()=>import(`./material-theme-CAtLaHa3.js`),[]))},{id:`material-theme-darker`,displayName:`Material Theme Darker`,type:`dark`,import:(()=>q(()=>import(`./material-theme-darker-k-s5Bc6K.js`),[]))},{id:`material-theme-lighter`,displayName:`Material Theme Lighter`,type:`light`,import:(()=>q(()=>import(`./material-theme-lighter-CD6a-c4d.js`),[]))},{id:`material-theme-ocean`,displayName:`Material Theme Ocean`,type:`dark`,import:(()=>q(()=>import(`./material-theme-ocean-B3mraInd.js`),[]))},{id:`material-theme-palenight`,displayName:`Material Theme Palenight`,type:`dark`,import:(()=>q(()=>import(`./material-theme-palenight-DEhAARHw.js`),[]))},{id:`min-dark`,displayName:`Min Dark`,type:`dark`,import:(()=>q(()=>import(`./min-dark-BFqTAwCr.js`),[]))},{id:`min-light`,displayName:`Min Light`,type:`light`,import:(()=>q(()=>import(`./min-light-O7UdaaxX.js`),[]))},{id:`monokai`,displayName:`Monokai`,type:`dark`,import:(()=>q(()=>import(`./monokai-C0p7Qecz.js`),[]))},{id:`night-owl`,displayName:`Night Owl`,type:`dark`,import:(()=>q(()=>import(`./night-owl-BsnCLAKc.js`),[]))},{id:`night-owl-light`,displayName:`Night Owl Light`,type:`light`,import:(()=>q(()=>import(`./night-owl-light-BODRhcTU.js`),[]))},{id:`nord`,displayName:`Nord`,type:`dark`,import:(()=>q(()=>import(`./nord-Cd-F4txO.js`),[]))},{id:`one-dark-pro`,displayName:`One Dark Pro`,type:`dark`,import:(()=>q(()=>import(`./one-dark-pro-DUS_IGRK.js`),[]))},{id:`one-light`,displayName:`One Light`,type:`light`,import:(()=>q(()=>import(`./one-light-CVUd7yD5.js`),[]))},{id:`plastic`,displayName:`Plastic`,type:`dark`,import:(()=>q(()=>import(`./plastic-CF8VZTnn.js`),[]))},{id:`poimandres`,displayName:`Poimandres`,type:`dark`,import:(()=>q(()=>import(`./poimandres-BX2TyY6j.js`),[]))},{id:`red`,displayName:`Red`,type:`dark`,import:(()=>q(()=>import(`./red-7ga_dcKu.js`),[]))},{id:`rose-pine`,displayName:`Rosé Pine`,type:`dark`,import:(()=>q(()=>import(`./rose-pine-rh6ipraJ.js`),[]))},{id:`rose-pine-dawn`,displayName:`Rosé Pine Dawn`,type:`light`,import:(()=>q(()=>import(`./rose-pine-dawn-DSuRaP6u.js`),[]))},{id:`rose-pine-moon`,displayName:`Rosé Pine Moon`,type:`dark`,import:(()=>q(()=>import(`./rose-pine-moon-DdHjCvFQ.js`),[]))},{id:`slack-dark`,displayName:`Slack Dark`,type:`dark`,import:(()=>q(()=>import(`./slack-dark-DYvUXyrP.js`),[]))},{id:`slack-ochin`,displayName:`Slack Ochin`,type:`light`,import:(()=>q(()=>import(`./slack-ochin-bqtMVDfH.js`),[]))},{id:`snazzy-light`,displayName:`Snazzy Light`,type:`light`,import:(()=>q(()=>import(`./snazzy-light-D8dzFmq5.js`),[]))},{id:`solarized-dark`,displayName:`Solarized Dark`,type:`dark`,import:(()=>q(()=>import(`./solarized-dark-BQwPDzxK.js`),[]))},{id:`solarized-light`,displayName:`Solarized Light`,type:`light`,import:(()=>q(()=>import(`./solarized-light-BLaijb3X.js`),[]))},{id:`synthwave-84`,displayName:`Synthwave '84`,type:`dark`,import:(()=>q(()=>import(`./synthwave-84-CIknw8y7.js`),[]))},{id:`tokyo-night`,displayName:`Tokyo Night`,type:`dark`,import:(()=>q(()=>import(`./tokyo-night-iIspnLcq.js`),[]))},{id:`vesper`,displayName:`Vesper`,type:`dark`,import:(()=>q(()=>import(`./vesper-BIFK_oDq.js`),[]))},{id:`vitesse-black`,displayName:`Vitesse Black`,type:`dark`,import:(()=>q(()=>import(`./vitesse-black-D082JcaE.js`),[]))},{id:`vitesse-dark`,displayName:`Vitesse Dark`,type:`dark`,import:(()=>q(()=>import(`./vitesse-dark-z-nr_5O8.js`),[]))},{id:`vitesse-light`,displayName:`Vitesse Light`,type:`light`,import:(()=>q(()=>import(`./vitesse-light-ojz42ZLy.js`),[]))}].map(e=>[e.id,e.import])),oRe=Mc({createOnigurumaEngine:()=>BG,getDefaultWasmLoader:()=>CRe,loadWasm:()=>LG,setDefaultWasmLoader:()=>SRe}),AG=class extends Error{constructor(e){super(e),this.name=`ShikiError`}};function sRe(){return 2147483648}function cRe(){return typeof performance<`u`?performance.now():Date.now()}var lRe=(e,t)=>e+(t-e%t)%t;async function uRe(e){let t,n,r={};function i(e){n=e,r.HEAPU8=new Uint8Array(e),r.HEAPU32=new Uint32Array(e)}function a(e,t,n){r.HEAPU8.copyWithin(e,t,t+n)}function o(e){try{return t.grow(e-n.byteLength+65535>>>16),i(t.buffer),1}catch{}}function s(e){let t=r.HEAPU8.length;e>>>=0;let n=sRe();if(e>n)return!1;for(let r=1;r<=4;r*=2){let i=t*(1+.2/r);if(i=Math.min(i,e+100663296),o(Math.min(n,lRe(Math.max(e,i),65536))))return!0}return!1}let c=typeof TextDecoder<`u`?new TextDecoder(`utf8`):void 0;function l(e,t,n=1024){let r=t+n,i=t;for(;e[i]&&!(i>=r);)++i;if(i-t>16&&e.buffer&&c)return c.decode(e.subarray(t,i));let a=``;for(;t<i;){let n=e[t++];if(!(n&128)){a+=String.fromCharCode(n);continue}let r=e[t++]&63;if((n&224)==192){a+=String.fromCharCode((n&31)<<6|r);continue}let i=e[t++]&63;if(n=(n&240)==224?(n&15)<<12|r<<6|i:(n&7)<<18|r<<12|i<<6|e[t++]&63,n<65536)a+=String.fromCharCode(n);else{let e=n-65536;a+=String.fromCharCode(55296|e>>10,56320|e&1023)}}return a}function u(e,t){return e?l(r.HEAPU8,e,t):``}let d={emscripten_get_now:cRe,emscripten_memcpy_big:a,emscripten_resize_heap:s,fd_write:()=>0};async function f(){let n=await e({env:d,wasi_snapshot_preview1:d});t=n.memory,i(t.buffer),Object.assign(r,n),r.UTF8ToString=u}return await f(),r}var dRe=Object.defineProperty,fRe=(e,t,n)=>t in e?dRe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,jG=(e,t,n)=>fRe(e,typeof t==`symbol`?t:t+``,n),MG=null;function pRe(e){throw new AG(e.UTF8ToString(e.getLastOnigError()))}var NG=class e{constructor(t){jG(this,`utf16Length`),jG(this,`utf8Length`),jG(this,`utf16Value`),jG(this,`utf8Value`),jG(this,`utf16OffsetToUtf8`),jG(this,`utf8OffsetToUtf16`);let n=t.length,r=e._utf8ByteLength(t),i=r!==n,a=i?new Uint32Array(n+1):null;i&&(a[n]=r);let o=i?new Uint32Array(r+1):null;i&&(o[r]=n);let s=new Uint8Array(r),c=0;for(let e=0;e<n;e++){let r=t.charCodeAt(e),l=r,u=!1;if(r>=55296&&r<=56319&&e+1<n){let n=t.charCodeAt(e+1);n>=56320&&n<=57343&&(l=(r-55296<<10)+65536|n-56320,u=!0)}i&&(a[e]=c,u&&(a[e+1]=c),l<=127?o[c+0]=e:l<=2047?(o[c+0]=e,o[c+1]=e):l<=65535?(o[c+0]=e,o[c+1]=e,o[c+2]=e):(o[c+0]=e,o[c+1]=e,o[c+2]=e,o[c+3]=e)),l<=127?s[c++]=l:l<=2047?(s[c++]=192|(l&1984)>>>6,s[c++]=128|(l&63)>>>0):l<=65535?(s[c++]=224|(l&61440)>>>12,s[c++]=128|(l&4032)>>>6,s[c++]=128|(l&63)>>>0):(s[c++]=240|(l&1835008)>>>18,s[c++]=128|(l&258048)>>>12,s[c++]=128|(l&4032)>>>6,s[c++]=128|(l&63)>>>0),u&&e++}this.utf16Length=n,this.utf8Length=r,this.utf16Value=t,this.utf8Value=s,this.utf16OffsetToUtf8=a,this.utf8OffsetToUtf16=o}static _utf8ByteLength(e){let t=0;for(let n=0,r=e.length;n<r;n++){let i=e.charCodeAt(n),a=i,o=!1;if(i>=55296&&i<=56319&&n+1<r){let t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(a=(i-55296<<10)+65536|t-56320,o=!0)}a<=127?t+=1:a<=2047?t+=2:a<=65535?t+=3:t+=4,o&&n++}return t}createString(e){let t=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}},PG=class e{constructor(t){if(jG(this,`id`,++e.LAST_ID),jG(this,`_onigBinding`),jG(this,`content`),jG(this,`utf16Length`),jG(this,`utf8Length`),jG(this,`utf16OffsetToUtf8`),jG(this,`utf8OffsetToUtf16`),jG(this,`ptr`),!MG)throw new AG(`Must invoke loadWasm first.`);this._onigBinding=MG,this.content=t;let n=new NG(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!e._sharedPtrInUse?(e._sharedPtr||=MG.omalloc(1e4),e._sharedPtrInUse=!0,MG.HEAPU8.set(n.utf8Value,e._sharedPtr),this.ptr=e._sharedPtr):this.ptr=n.createString(MG)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===e._sharedPtr?e._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};jG(PG,`LAST_ID`,0),jG(PG,`_sharedPtr`,0),jG(PG,`_sharedPtrInUse`,!1);var FG=PG,mRe=class{constructor(e){if(jG(this,`_onigBinding`),jG(this,`_ptr`),!MG)throw new AG(`Must invoke loadWasm first.`);let t=[],n=[];for(let r=0,i=e.length;r<i;r++){let i=new NG(e[r]);t[r]=i.createString(MG),n[r]=i.utf8Length}let r=MG.omalloc(4*e.length);MG.HEAPU32.set(t,r/4);let i=MG.omalloc(4*e.length);MG.HEAPU32.set(n,i/4);let a=MG.createOnigScanner(r,i,e.length);for(let n=0,r=e.length;n<r;n++)MG.ofree(t[n]);MG.ofree(i),MG.ofree(r),a===0&&pRe(MG),this._onigBinding=MG,this._ptr=a}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,t,n){let r=0;if(typeof n==`number`&&(r=n),typeof e==`string`){e=new FG(e);let n=this._findNextMatchSync(e,t,!1,r);return e.dispose(),n}return this._findNextMatchSync(e,t,!1,r)}_findNextMatchSync(e,t,n,r){let i=this._onigBinding,a=i.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),r);if(a===0)return null;let o=i.HEAPU32,s=a/4,c=o[s++],l=o[s++],u=[];for(let t=0;t<l;t++){let n=e.convertUtf8OffsetToUtf16(o[s++]),r=e.convertUtf8OffsetToUtf16(o[s++]);u[t]={start:n,end:r,length:r-n}}return{index:c,captureIndices:u}}};function hRe(e){return typeof e.instantiator==`function`}function gRe(e){return typeof e.default==`function`}function _Re(e){return e.data!==void 0}function vRe(e){return typeof Response<`u`&&e instanceof Response}function yRe(e){return typeof ArrayBuffer<`u`&&(e instanceof ArrayBuffer||ArrayBuffer.isView(e))||typeof Buffer<`u`&&Buffer.isBuffer?.(e)||typeof SharedArrayBuffer<`u`&&e instanceof SharedArrayBuffer||typeof Uint32Array<`u`&&e instanceof Uint32Array}var IG;function LG(e){if(IG)return IG;async function t(){MG=await uRe(async t=>{let n=e;return n=await n,typeof n==`function`&&(n=await n(t)),typeof n==`function`&&(n=await n(t)),hRe(n)?n=await n.instantiator(t):gRe(n)?n=await n.default(t):(_Re(n)&&(n=n.data),vRe(n)?n=typeof WebAssembly.instantiateStreaming==`function`?await bRe(n)(t):await xRe(n)(t):yRe(n)||n instanceof WebAssembly.Module?n=await RG(n)(t):`default`in n&&n.default instanceof WebAssembly.Module&&(n=await RG(n.default)(t))),`instance`in n&&(n=n.instance),`exports`in n&&(n=n.exports),n})}return IG=t(),IG}function RG(e){return t=>WebAssembly.instantiate(e,t)}function bRe(e){return t=>WebAssembly.instantiateStreaming(e,t)}function xRe(e){return async t=>{let n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}var zG;function SRe(e){zG=e}function CRe(){return zG}async function BG(e){return e&&await LG(e),{createScanner(e){return new mRe(e.map(e=>typeof e==`string`?e:e.source))},createString(e){return new FG(e)}}}var VG=tRe({});nRe(VG,oRe);var HG=class extends Error{constructor(e){super(e),this.name=`ShikiError`}};function wRe(e){return UG(e)}function UG(e){return Array.isArray(e)?TRe(e):e instanceof RegExp?e:typeof e==`object`?ERe(e):e}function TRe(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=UG(e[n]);return t}function ERe(e){let t={};for(let n in e)t[n]=UG(e[n]);return t}function WG(e,...t){return t.forEach(t=>{for(let n in t)e[n]=t[n]}),e}function GG(e){let t=~e.lastIndexOf(`/`)||~e.lastIndexOf(`\\`);return t===0?e:~t===e.length-1?GG(e.substring(0,e.length-1)):e.substr(~t+1)}var KG=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,qG=class{static hasCaptures(e){return e===null?!1:(KG.lastIndex=0,KG.test(e))}static replaceCaptures(e,t,n){return e.replace(KG,(e,r,i,a)=>{let o=n[parseInt(r||i,10)];if(o){let e=t.substring(o.start,o.end);for(;e[0]===`.`;)e=e.substring(1);switch(a){case`downcase`:return e.toLowerCase();case`upcase`:return e.toUpperCase();default:return e}}else return e})}};function JG(e,t){return e<t?-1:+(e>t)}function YG(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,r=t.length;if(n===r){for(let r=0;r<n;r++){let n=JG(e[r],t[r]);if(n!==0)return n}return 0}return n-r}function XG(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function ZG(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,`\\$&`)}var QG=class{constructor(e){this.fn=e}cache=new Map;get(e){if(this.cache.has(e))return this.cache.get(e);let t=this.fn(e);return this.cache.set(e,t),t}},$G=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(kRe(e),t)}static createFromParsedTheme(e,t){return jRe(e,t)}_cachedMatchRoot=new QG(e=>this._root.match(e));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;let t=e.scopeName,n=this._cachedMatchRoot.get(t).find(t=>DRe(e.parent,t.parentScopes));return n?new tK(n.fontStyle,n.foreground,n.background):null}},eK=class e{constructor(e,t){this.parent=e,this.scopeName=t}static push(t,n){for(let r of n)t=new e(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new e(n,t[r]);return n}push(t){return new e(this,t)}getSegments(){let e=this,t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(` `)}extends(e){return this===e?!0:this.parent===null?!1:this.parent.extends(e)}getExtensionIfDefined(e){let t=[],n=this;for(;n&&n!==e;)t.push(n.scopeName),n=n.parent;return n===e?t.reverse():void 0}};function DRe(e,t){if(t.length===0)return!0;for(let n=0;n<t.length;n++){let r=t[n],i=!1;if(r===`>`){if(n===t.length-1)return!1;r=t[++n],i=!0}for(;e&&!ORe(e.scopeName,r);){if(i)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function ORe(e,t){return t===e||e.startsWith(t)&&e[t.length]===`.`}var tK=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function kRe(e){if(!e||!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let e=0,i=t.length;e<i;e++){let i=t[e];if(!i.settings)continue;let a;if(typeof i.scope==`string`){let e=i.scope;e=e.replace(/^[,]+/,``),e=e.replace(/[,]+$/,``),a=e.split(`,`)}else a=Array.isArray(i.scope)?i.scope:[``];let o=-1;if(typeof i.settings.fontStyle==`string`){o=0;let e=i.settings.fontStyle.split(` `);for(let t=0,n=e.length;t<n;t++)switch(e[t]){case`italic`:o|=1;break;case`bold`:o|=2;break;case`underline`:o|=4;break;case`strikethrough`:o|=8;break}}let s=null;typeof i.settings.foreground==`string`&&XG(i.settings.foreground)&&(s=i.settings.foreground);let c=null;typeof i.settings.background==`string`&&XG(i.settings.background)&&(c=i.settings.background);for(let t=0,i=a.length;t<i;t++){let i=a[t].trim().split(` `),l=i[i.length-1],u=null;i.length>1&&(u=i.slice(0,i.length-1),u.reverse()),n[r++]=new ARe(l,u,e,o,s,c)}}return n}var ARe=class{constructor(e,t,n,r,i,a){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=r,this.foreground=i,this.background=a}},nK=(e=>(e[e.NotSet=-1]=`NotSet`,e[e.None=0]=`None`,e[e.Italic=1]=`Italic`,e[e.Bold=2]=`Bold`,e[e.Underline=4]=`Underline`,e[e.Strikethrough=8]=`Strikethrough`,e))(nK||{});function jRe(e,t){e.sort((e,t)=>{let n=JG(e.scope,t.scope);return n!==0||(n=YG(e.parentScopes,t.parentScopes),n!==0)?n:e.index-t.index});let n=0,r=`#000000`,i=`#ffffff`;for(;e.length>=1&&e[0].scope===``;){let t=e.shift();t.fontStyle!==-1&&(n=t.fontStyle),t.foreground!==null&&(r=t.foreground),t.background!==null&&(i=t.background)}let a=new MRe(t),o=new tK(n,a.getId(r),a.getId(i)),s=new PRe(new rK(0,null,-1,0,0),[]);for(let t=0,n=e.length;t<n;t++){let n=e[t];s.insert(0,n.scope,n.parentScopes,n.fontStyle,a.getId(n.foreground),a.getId(n.background))}return new $G(a,o,s)}var MRe=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(e===null)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},NRe=Object.freeze([]),rK=class e{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(e,t,n,r,i){this.scopeDepth=e,this.parentScopes=t||NRe,this.fontStyle=n,this.foreground=r,this.background=i}clone(){return new e(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=e[n].clone();return t}acceptOverwrite(e,t,n,r){this.scopeDepth>e?console.log(`how did this happen?`):this.scopeDepth=e,t!==-1&&(this.fontStyle=t),n!==0&&(this.foreground=n),r!==0&&(this.background=r)}},PRe=class e{constructor(e,t=[],n={}){this._mainRule=e,this._children=n,this._rulesWithParentScopes=t}_rulesWithParentScopes;static _cmpBySpecificity(e,t){if(e.scopeDepth!==t.scopeDepth)return t.scopeDepth-e.scopeDepth;let n=0,r=0;for(;e.parentScopes[n]===`>`&&n++,t.parentScopes[r]===`>`&&r++,!(n>=e.parentScopes.length||r>=t.parentScopes.length);){let i=t.parentScopes[r].length-e.parentScopes[n].length;if(i!==0)return i;n++,r++}return t.parentScopes.length-e.parentScopes.length}match(t){if(t!==``){let e=t.indexOf(`.`),n,r;if(e===-1?(n=t,r=``):(n=t.substring(0,e),r=t.substring(e+1)),this._children.hasOwnProperty(n))return this._children[n].match(r)}let n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(e._cmpBySpecificity),n}insert(t,n,r,i,a,o){if(n===``){this._doInsertHere(t,r,i,a,o);return}let s=n.indexOf(`.`),c,l;s===-1?(c=n,l=``):(c=n.substring(0,s),l=n.substring(s+1));let u;this._children.hasOwnProperty(c)?u=this._children[c]:(u=new e(this._mainRule.clone(),rK.cloneArr(this._rulesWithParentScopes)),this._children[c]=u),u.insert(t+1,l,r,i,a,o)}_doInsertHere(e,t,n,r,i){if(t===null){this._mainRule.acceptOverwrite(e,n,r,i);return}for(let a=0,o=this._rulesWithParentScopes.length;a<o;a++){let o=this._rulesWithParentScopes[a];if(YG(o.parentScopes,t)===0){o.acceptOverwrite(e,n,r,i);return}}n===-1&&(n=this._mainRule.fontStyle),r===0&&(r=this._mainRule.foreground),i===0&&(i=this._mainRule.background),this._rulesWithParentScopes.push(new rK(e,t,n,r,i))}},iK=class e{static toBinaryStr(e){return e.toString(2).padStart(32,`0`)}static print(t){let n=e.getLanguageId(t),r=e.getTokenType(t),i=e.getFontStyle(t),a=e.getForeground(t),o=e.getBackground(t);console.log({languageId:n,tokenType:r,fontStyle:i,foreground:a,background:o})}static getLanguageId(e){return(e&255)>>>0}static getTokenType(e){return(e&768)>>>8}static containsBalancedBrackets(e){return(e&1024)!=0}static getFontStyle(e){return(e&30720)>>>11}static getForeground(e){return(e&16744448)>>>15}static getBackground(e){return(e&4278190080)>>>24}static set(t,n,r,i,a,o,s){let c=e.getLanguageId(t),l=e.getTokenType(t),u=+!!e.containsBalancedBrackets(t),d=e.getFontStyle(t),f=e.getForeground(t),p=e.getBackground(t);return n!==0&&(c=n),r!==8&&(l=IRe(r)),i!==null&&(u=+!!i),a!==-1&&(d=a),o!==0&&(f=o),s!==0&&(p=s),(c<<0|l<<8|u<<10|d<<11|f<<15|p<<24)>>>0}};function FRe(e){return e}function IRe(e){return e}function aK(e,t){let n=[],r=LRe(e),i=r.next();for(;i!==null;){let e=0;if(i.length===2&&i.charAt(1)===`:`){switch(i.charAt(0)){case`R`:e=1;break;case`L`:e=-1;break;default:console.log(`Unknown priority ${i} in scope selector`)}i=r.next()}let t=o();if(n.push({matcher:t,priority:e}),i!==`,`)break;i=r.next()}return n;function a(){if(i===`-`){i=r.next();let e=a();return t=>!!e&&!e(t)}if(i===`(`){i=r.next();let e=s();return i===`)`&&(i=r.next()),e}if(oK(i)){let e=[];do e.push(i),i=r.next();while(oK(i));return n=>t(e,n)}return null}function o(){let e=[],t=a();for(;t;)e.push(t),t=a();return t=>e.every(e=>e(t))}function s(){let e=[],t=o();for(;t&&(e.push(t),i===`|`||i===`,`);){do i=r.next();while(i===`|`||i===`,`);t=o()}return t=>e.some(e=>e(t))}}function oK(e){return!!e&&!!e.match(/[\w\.:]+/)}function LRe(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;let r=n[0];return n=t.exec(e),r}}}function sK(e){typeof e.dispose==`function`&&e.dispose()}var cK=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},RRe=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},zRe=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(e){let t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},BRe=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new cK(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){let e=this.Q;this.Q=[];let t=new zRe;for(let n of e)VRe(n,this.initialScopeName,this.repo,t);for(let e of t.references)if(e instanceof cK){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName)||this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}};function VRe(e,t,n,r){let i=n.lookup(e.scopeName);if(!i){if(e.scopeName===t)throw Error(`No grammar provided for <${t}>`);return}let a=n.lookup(t);e instanceof cK?uK({baseGrammar:a,selfGrammar:i},r):lK(e.ruleName,{baseGrammar:a,selfGrammar:i,repository:i.repository},r);let o=n.injections(e.scopeName);if(o)for(let e of o)r.add(new cK(e))}function lK(e,t,n){if(t.repository&&t.repository[e]){let r=t.repository[e];dK([r],t,n)}}function uK(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&dK(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&dK(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function dK(e,t,n){for(let r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);let e=r.repository?WG({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&dK(r.patterns,{...t,repository:e},n);let i=r.include;if(!i)continue;let a=fK(i);switch(a.kind){case 0:uK({...t,selfGrammar:t.baseGrammar},n);break;case 1:uK(t,n);break;case 2:lK(a.ruleName,{...t,repository:e},n);break;case 3:case 4:let r=a.scopeName===t.selfGrammar.scopeName?t.selfGrammar:a.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(r){let i={baseGrammar:t.baseGrammar,selfGrammar:r,repository:e};a.kind===4?lK(a.ruleName,i,n):uK(i,n)}else a.kind===4?n.add(new RRe(a.scopeName,a.ruleName)):n.add(new cK(a.scopeName));break}}}var HRe=class{kind=0},URe=class{kind=1},WRe=class{constructor(e){this.ruleName=e}kind=2},GRe=class{constructor(e){this.scopeName=e}kind=3},KRe=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function fK(e){if(e===`$base`)return new HRe;if(e===`$self`)return new URe;let t=e.indexOf(`#`);return t===-1?new GRe(e):t===0?new WRe(e.substring(1)):new KRe(e.substring(0,t),e.substring(t+1))}var qRe=/\\(\d+)/,pK=/\\(\d+)/g,JRe=-1,mK=-2;function hK(e){return e}function gK(e){return e}var _K=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,n,r){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=qG.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=qG.hasCaptures(this._contentName)}get debugName(){let e=this.$location?`${GG(this.$location.filename)}:${this.$location.line}`:`unknown`;return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return!this._nameIsCapturing||this._name===null||e===null||t===null?this._name:qG.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:qG.replaceCaptures(this._contentName,e,t)}},YRe=class extends _K{retokenizeCapturedWithRuleId;constructor(e,t,n,r,i){super(e,t,n,r),this.retokenizeCapturedWithRuleId=i}dispose(){}collectPatterns(e,t){throw Error(`Not supported!`)}compile(e,t){throw Error(`Not supported!`)}compileAG(e,t,n,r){throw Error(`Not supported!`)}},XRe=class extends _K{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,null),this._match=new SK(r,this.id),this.captures=i,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new CK,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},vK=class extends _K{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,r),this.patterns=i.patterns,this.hasMissingPatterns=i.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null)}collectPatterns(e,t){for(let n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new CK,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},yK=class extends _K{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,i,a,o,s,c,l){super(e,t,n,r),this._begin=new SK(i,this.id),this.beginCaptures=a,this._end=new SK(o||``,-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=s,this.applyEndPatternLast=c||!1,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,r)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new CK;for(let t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},bK=class extends _K{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,n,r,i,a,o,s,c){super(e,t,n,r),this._begin=new SK(i,this.id),this.beginCaptures=a,this.whileCaptures=s,this._while=new SK(o,mK),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null),this._cachedCompiledWhilePatterns&&=(this._cachedCompiledWhilePatterns.dispose(),null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new CK;for(let t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,r){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,r)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new CK,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||``),this._cachedCompiledWhilePatterns}},xK=class e{static createCaptureRule(e,t,n,r,i){return e.registerRule(e=>new YRe(t,e,n,r,i))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(i=>{if(t.id=i,t.match)return new XRe(t.$vscodeTextmateLocation,t.id,t.name,t.match,e._compileCaptures(t.captures,n,r));if(t.begin===void 0){t.repository&&(r=WG({},r,t.repository));let i=t.patterns;return i===void 0&&t.include&&(i=[{include:t.include}]),new vK(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,e._compilePatterns(i,n,r))}return t.while?new bK(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,e._compileCaptures(t.whileCaptures||t.captures,n,r),e._compilePatterns(t.patterns,n,r)):new yK(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,e._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,e._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let i=[];if(t){let a=0;for(let e in t){if(e===`$vscodeTextmateLocation`)continue;let t=parseInt(e,10);t>a&&(a=t)}for(let e=0;e<=a;e++)i[e]=null;for(let a in t){if(a===`$vscodeTextmateLocation`)continue;let o=parseInt(a,10),s=0;t[a].patterns&&(s=e.getCompiledRuleId(t[a],n,r)),i[o]=e.createCaptureRule(n,t[a].$vscodeTextmateLocation,t[a].name,t[a].contentName,s)}}return i}static _compilePatterns(t,n,r){let i=[];if(t)for(let a=0,o=t.length;a<o;a++){let o=t[a],s=-1;if(o.include){let t=fK(o.include);switch(t.kind){case 0:case 1:s=e.getCompiledRuleId(r[o.include],n,r);break;case 2:let i=r[t.ruleName];i&&(s=e.getCompiledRuleId(i,n,r));break;case 3:case 4:let a=t.scopeName,c=t.kind===4?t.ruleName:null,l=n.getExternalGrammar(a,r);if(l)if(c){let t=l.repository[c];t&&(s=e.getCompiledRuleId(t,n,l.repository))}else s=e.getCompiledRuleId(l.repository.$self,n,l.repository);break}}else s=e.getCompiledRuleId(o,n,r);if(s!==-1){let e=n.getRule(s),t=!1;if((e instanceof vK||e instanceof yK||e instanceof bK)&&e.hasMissingPatterns&&e.patterns.length===0&&(t=!0),t)continue;i.push(s)}}return{patterns:i,hasMissingPatterns:(t?t.length:0)!==i.length}}},SK=class e{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(e,t){if(e&&typeof e==`string`){let t=e.length,n=0,r=[],i=!1;for(let a=0;a<t;a++)if(e.charAt(a)===`\\`&&a+1<t){let t=e.charAt(a+1);t===`z`?(r.push(e.substring(n,a)),r.push(`$(?!\\n)(?<!\\n)`),n=a+2):(t===`A`||t===`G`)&&(i=!0),a++}this.hasAnchor=i,n===0?this.source=e:(r.push(e.substring(n,t)),this.source=r.join(``))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,typeof this.source==`string`?this.hasBackReferences=qRe.test(this.source):this.hasBackReferences=!1}clone(){return new e(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){if(typeof this.source!=`string`)throw Error(`This method should only be called if the source is a string`);let n=t.map(t=>e.substring(t.start,t.end));return pK.lastIndex=0,this.source.replace(pK,(e,t)=>ZG(n[parseInt(t,10)]||``))}_buildAnchorCache(){if(typeof this.source!=`string`)throw Error(`This method should only be called if the source is a string`);let e=[],t=[],n=[],r=[],i,a,o,s;for(i=0,a=this.source.length;i<a;i++)o=this.source.charAt(i),e[i]=o,t[i]=o,n[i]=o,r[i]=o,o===`\\`&&i+1<a&&(s=this.source.charAt(i+1),s===`A`?(e[i+1]=``,t[i+1]=``,n[i+1]=`A`,r[i+1]=`A`):s===`G`?(e[i+1]=``,t[i+1]=`G`,n[i+1]=``,r[i+1]=`G`):(e[i+1]=s,t[i+1]=s,n[i+1]=s,r[i+1]=s),i++);return{A0_G0:e.join(``),A0_G1:t.join(``),A1_G0:n.join(``),A1_G1:r.join(``)}}resolveAnchors(e,t){return!this.hasAnchor||!this._anchorCache||typeof this.source!=`string`?this.source:e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},CK=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&=(this._cached.dispose(),null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(e=>e.source);this._cached=new wK(e,t,this._items.map(e=>e.ruleId))}return this._cached}compileAG(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,n){return new wK(e,this._items.map(e=>e.resolveAnchors(t,n)),this._items.map(e=>e.ruleId))}},wK=class{constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}scanner;dispose(){typeof this.scanner.dispose==`function`&&this.scanner.dispose()}toString(){let e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push(` - `+this.rules[t]+`: `+this.regExps[t]);return e.join(`
|
|
316
|
+
\f\r "&'<=>\``.split(``)]],single:[[`&'`.split(``),`"&'\``.split(``)],[`\0&'`.split(``),`\0"&'\``.split(``)]],double:[[`"&`.split(``),`"&'\``.split(``)],[`\0"&`.split(``),`\0"&'\``.split(``)]]};function ELe(e,t,n,r){let i=r.schema,a=i.space===`svg`?!1:r.settings.omitOptionalTags,o=i.space===`svg`?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase()),s=[],c;i.space===`html`&&e.tagName===`svg`&&(r.schema=PW);let l=DLe(r,e.properties),u=r.all(i.space===`html`&&e.tagName===`template`?e.content:e);return r.schema=i,u&&(o=!1),(l||!a||!bLe(e,t,n))&&(s.push(`<`,e.tagName,l?` `+l:``),o&&(i.space===`svg`||r.settings.closeSelfClosing)&&(c=l.charAt(l.length-1),(!r.settings.tightSelfClosing||c===`/`||c&&c!==`"`&&c!==`'`)&&s.push(` `),s.push(`/`)),s.push(`>`)),s.push(u),!o&&(!a||!eG(e,t,n))&&s.push(`</`+e.tagName+`>`),s.join(``)}function DLe(e,t){let n=[],r=-1,i;if(t){for(i in t)if(t[i]!==null&&t[i]!==void 0){let r=OLe(e,i,t[i]);r&&n.push(r)}}for(;++r<n.length;){let t=e.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;r!==n.length-1&&t!==`"`&&t!==`'`&&(n[r]+=` `)}return n.join(``)}function OLe(e,t,n){let r=MW(e.schema,t),i=e.settings.allowParseErrors&&e.schema.space===`html`?0:1,a=+!e.settings.allowDangerousCharacters,o=e.quote,s;if(r.overloadedBoolean&&(n===r.attribute||n===``)?n=!0:(r.boolean||r.overloadedBoolean)&&(typeof n!=`string`||n===r.attribute||n===``)&&(n=!!n),n==null||n===!1||typeof n==`number`&&Number.isNaN(n))return``;let c=HW(r.attribute,Object.assign({},e.settings.characterReferences,{subset:iG.name[i][a]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?GW:qW)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?c:(e.settings.preferUnquoted&&(s=HW(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:iG.unquoted[i][a]}))),s!==n&&(e.settings.quoteSmart&&UW(n,o)>UW(n,e.alternative)&&(o=e.alternative),s=o+HW(n,Object.assign({},e.settings.characterReferences,{subset:(o===`'`?iG.single:iG.double)[i][a],attribute:!0}))+o),c+(s&&`=`+s))}var kLe=[`<`,`&`];function aG(e,t,n,r){return n&&n.type===`element`&&(n.tagName===`script`||n.tagName===`style`)?e.value:HW(e.value,Object.assign({},r.settings.characterReferences,{subset:kLe}))}function ALe(e,t,n,r){return r.settings.allowDangerousHtml?e.value:aG(e,t,n,r)}function jLe(e,t,n,r){return r.all(e)}var MLe=IW(`type`,{invalid:NLe,unknown:PLe,handlers:{comment:rLe,doctype:iLe,element:ELe,raw:ALe,root:jLe,text:aG}});function NLe(e){throw Error("Expected node, not `"+e+"`")}function PLe(e){throw Error("Cannot compile unknown node `"+e.type+"`")}var FLe={},ILe={},LLe=[];function oG(e,t){let n=t||FLe,r=n.quote||`"`,i=r===`"`?`'`:`"`;if(r!==`"`&&r!==`'`)throw Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:RLe,all:zLe,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||sW,characterReferences:n.characterReferences||ILe,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space===`svg`?PW:NW,quote:r,alternative:i}.one(Array.isArray(e)?{type:`root`,children:e}:e,void 0,void 0)}function RLe(e,t,n){return MLe(e,t,n,this)}function zLe(e){let t=[],n=e&&e.children||LLe,r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join(``)}var sG=class{hoveredLine;hoveredToken;pre;gutterUtilityLine;gutterUtilityContainer;gutterUtilityButton;gutterUtilitySlot;interactiveLinesAttr=!1;interactiveLineNumbersAttr=!1;hasPointerListeners=!1;hasDocumentPointerListeners=!1;selectedRange=null;proposedSelectedRange;renderedSelectionRange;selectionAnchor;queuedSelectionRender;pointerSession={mode:`idle`};constructor(e,t){this.mode=e,this.options=t}setOptions(e){this.options=e}cleanUp(){this.pre?.removeEventListener(`click`,this.handlePointerClick),this.pre?.removeEventListener(`pointerdown`,this.handlePointerDown),this.pre?.removeEventListener(`pointermove`,this.handlePointerMove),this.pre?.removeEventListener(`pointerleave`,this.handlePointerLeave),this.pre?.removeAttribute(`data-interactive-lines`),this.pre?.removeAttribute(`data-interactive-line-numbers`),this.pre=void 0,this.gutterUtilityContainer?.remove(),this.gutterUtilityLine=void 0,this.gutterUtilityContainer=void 0,this.gutterUtilityButton=void 0,this.gutterUtilitySlot=void 0,this.clearHoveredLine(),this.clearHoveredToken(),this.detachDocumentPointerListeners(),this.clearPointerSession(),this.queuedSelectionRender!=null&&(cancelAnimationFrame(this.queuedSelectionRender),this.queuedSelectionRender=void 0),this.interactiveLinesAttr=!1,this.interactiveLineNumbersAttr=!1,this.hasPointerListeners=!1}setup(e){this.setSelectionDirty();let{usesCustomGutterUtility:t=!1,enableGutterUtility:n=!1}=this.options;this.pre!==e&&(this.cleanUp(),this.pre=e),n?this.ensureGutterUtilityNode(t):this.gutterUtilityContainer!=null&&(this.gutterUtilityContainer.remove(),this.gutterUtilityLine=void 0,this.gutterUtilityContainer=void 0,this.gutterUtilityButton=void 0,this.gutterUtilitySlot=void 0,this.pointerSession.mode===`gutterSelecting`&&(this.clearPointerSession(),this.detachDocumentPointerListeners())),this.syncPointerListeners(e),this.updateInteractiveLineAttributes(),this.renderSelection(),this.placeUtility()}setSelectionDirty(){this.renderedSelectionRange=void 0}isSelectionDirty(){return this.renderedSelectionRange===null}setSelection(e,t){let n=!(e===this.selectedRange||QU(e??void 0,this.selectedRange??void 0));!this.isSelectionDirty()&&!n||(this.proposedSelectedRange=void 0,this.selectedRange=e,this.renderSelection(),this.placeUtility(),n&&t?.notify!==!1&&this.notifySelectionCommitted())}getSelection(){return this.selectedRange}getHoveredLine=()=>{let e=this.gutterUtilityLine??this.hoveredLine;if(e!=null){if(this.mode===`diff`&&e.type===`diff-line`)return{lineNumber:e.lineNumber,side:e.annotationSide};if(this.mode===`file`&&e.type===`line`)return{lineNumber:e.lineNumber}}};handlePointerClick=e=>{let{onHunkExpand:t,onLineClick:n,onLineNumberClick:r,onTokenClick:i,onMergeConflictActionClick:a}=this.options;t==null&&n==null&&r==null&&a==null&&i==null||this.options.onGutterUtilityClick!=null&&_G(e.composedPath())||(vG(this.options.__debugPointerEvents,`click`,`FileDiff.DEBUG.handlePointerClick:`,e),this.handlePointerEvent({eventType:`click`,event:e}))};handlePointerMove=e=>{if(e.pointerType!==`mouse`)return;let{lineHoverHighlight:t=`disabled`,onLineEnter:n,onLineLeave:r,onTokenEnter:i,onTokenLeave:a,enableGutterUtility:o=!1}=this.options;t===`disabled`&&!o&&n==null&&r==null&&i==null&&a==null||(vG(this.options.__debugPointerEvents,`move`,`FileDiff.DEBUG.handlePointerMove:`,e),this.handlePointerEvent({eventType:`move`,event:e}))};handlePointerLeave=e=>{let{__debugPointerEvents:t}=this.options;if(vG(t,`move`,`FileDiff.DEBUG.handlePointerLeave: no event`),this.hoveredLine==null&&this.hoveredToken==null){vG(t,`move`,`FileDiff.DEBUG.handlePointerLeave: returned early, no hovered line or token`);return}this.hoveredToken!=null&&(this.options.onTokenLeave?.(this.hoveredToken,e),this.clearHoveredToken()),this.hoveredLine!=null&&(this.options.onLineLeave?.({...this.hoveredLine,event:e}),this.clearHoveredLine()),this.placeUtility()};handlePointerEvent({eventType:e,event:t}){let{__debugPointerEvents:n}=this.options,r=t.composedPath();vG(n,e,`FileDiff.DEBUG.handlePointerEvent:`,{eventType:e,composedPath:r});let i=this.resolvePointerTarget(r);vG(n,e,`FileDiff.DEBUG.handlePointerEvent: resolvePointerTarget result:`,i);let{onLineClick:a,onLineNumberClick:o,onLineEnter:s,onLineLeave:c,onTokenClick:l,onTokenEnter:u,onTokenLeave:d,onHunkExpand:f,onMergeConflictActionClick:p}=this.options;switch(e){case`move`:{let e=dG(i)&&this.hoveredLine?.lineElement===i.lineElement;uG(i)&&this.hoveredToken?.tokenElement===i.tokenElement||(this.hoveredToken!=null&&(d?.(this.hoveredToken,t),this.clearHoveredToken()),uG(i)&&(this.setHoveredToken(this.toTokenEventBaseProps(i)),u?.(this.hoveredToken,t))),e||(this.hoveredLine!=null&&(c?.({...this.hoveredLine,event:t}),this.clearHoveredLine()),dG(i)?(this.setHoveredLine(this.toEventBaseProps(i)),this.placeUtility(),s?.({...this.hoveredLine,event:t})):this.placeUtility());break}case`click`:{if(i==null)break;if(HLe(i)&&p!=null){p(i);break}if(VLe(i)&&f!=null){f(i.hunkIndex,i.all||t.shiftKey?`both`:i.direction,i.all||t.shiftKey?1/0:void 0);break}if(!dG(i))break;uG(i)&&l!=null&&l(this.toTokenEventBaseProps(i),t);let e=this.toEventBaseProps(i);o!=null&&i.numberColumn?o({...e,event:t}):a?.({...e,event:t});break}}}syncPointerListeners(e){let{__debugPointerEvents:t,lineHoverHighlight:n=`disabled`,onLineClick:r,onLineNumberClick:i,onLineEnter:a,onLineLeave:o,onTokenClick:s,onTokenEnter:c,onTokenLeave:l,onHunkExpand:u,onMergeConflictActionClick:d,enableGutterUtility:f=!1,enableLineSelection:p=!1,onGutterUtilityClick:m}=this.options,h=m!=null,g=n!==`disabled`||r!=null||i!=null||a!=null||o!=null||s!=null||c!=null||l!=null||u!=null||d!=null||f||p||h;g&&!this.hasPointerListeners?(e.addEventListener(`click`,this.handlePointerClick),e.addEventListener(`pointerdown`,this.handlePointerDown),e.addEventListener(`pointermove`,this.handlePointerMove),e.addEventListener(`pointerleave`,this.handlePointerLeave),this.hasPointerListeners=!0,vG(t,`click`,`FileDiff.DEBUG.attachEventListeners: Attaching click events for:`,(()=>{let e=[];return(t===`both`||t===`click`)&&(r!=null&&e.push(`onLineClick`),i!=null&&e.push(`onLineNumberClick`),u!=null&&e.push(`expandable hunk separators`),d!=null&&e.push(`merge conflict actions`)),e})()),vG(t,`move`,`FileDiff.DEBUG.attachEventListeners: Attaching pointer move event`),vG(t,`move`,`FileDiff.DEBUG.attachEventListeners: Attaching pointer leave event`)):!g&&this.hasPointerListeners&&(e.removeEventListener(`click`,this.handlePointerClick),e.removeEventListener(`pointerdown`,this.handlePointerDown),e.removeEventListener(`pointermove`,this.handlePointerMove),e.removeEventListener(`pointerleave`,this.handlePointerLeave),this.hasPointerListeners=!1);let _=this.pointerSession.mode===`selecting`||this.pointerSession.mode===`pendingSingleLineUnselect`,v=this.pointerSession.mode===`gutterSelecting`;(!p&&_||!h&&v)&&(this.clearPointerSession(),this.detachDocumentPointerListeners(),this.selectionAnchor=void 0,this.clearPendingSingleLineState())}updateInteractiveLineAttributes(){if(this.pre==null)return;let{onLineClick:e,onLineNumberClick:t,enableLineSelection:n=!1}=this.options,r=e!=null,i=t!=null||n;r&&!this.interactiveLinesAttr?(this.pre.setAttribute(`data-interactive-lines`,``),this.interactiveLinesAttr=!0):!r&&this.interactiveLinesAttr&&(this.pre.removeAttribute(`data-interactive-lines`),this.interactiveLinesAttr=!1),i&&!this.interactiveLineNumbersAttr?(this.pre.setAttribute(`data-interactive-line-numbers`,``),this.interactiveLineNumbersAttr=!0):!i&&this.interactiveLineNumbersAttr&&(this.pre.removeAttribute(`data-interactive-line-numbers`),this.interactiveLineNumbersAttr=!1)}handlePointerDown=e=>{if(e.pointerType===`mouse`&&e.button!==0||this.pre==null||this.pointerSession.mode!==`idle`)return;let t=e.composedPath();_G(t)&&this.options.onGutterUtilityClick!=null?this.startGutterSelectionFromPointerDown(e):(e.pointerType!==`mouse`&&this.revealUtilityFromGutterPath(t),this.startLineSelectionFromPointerDown(e))};startLineSelectionFromPointerDown(e){let{enableLineSelection:t=!1}=this.options;if(!t)return;let n=this.resolveSelectionInfo(e,{source:`event-path`,requireNumberColumn:!0});if(n==null)return;let{pre:r}=this;if(r==null)return;e.preventDefault();let{lineNumber:i,eventSide:a,lineIndex:o}=n;if(e.shiftKey&&this.selectedRange!=null){let t=this.getIndexesFromSelection(this.selectedRange,r.getAttribute(`data-diff-type`)===`split`);if(t==null)return;let n=t.start<=t.end?o>=t.start:o<=t.end;this.selectionAnchor={lineNumber:n?this.selectedRange.start:this.selectedRange.end,side:n?this.selectedRange.side:this.selectedRange.endSide??this.selectedRange.side},this.updateSelection(i,a,!1),this.notifySelectionStart(this.getCurrentSelectionRange()),this.pointerSession={mode:`selecting`,pointerId:e.pointerId},this.attachDocumentPointerListeners();return}if(this.selectedRange?.start===i&&this.selectedRange?.end===i){let t={lineNumber:i,side:a};this.selectionAnchor=t,this.pointerSession={mode:`pendingSingleLineUnselect`,pointerId:e.pointerId,anchor:t,pending:t},this.attachDocumentPointerListeners();return}this.options.controlledSelection===!0?this.proposedSelectedRange=null:this.selectedRange=null,this.placeUtility(),this.selectionAnchor={lineNumber:i,side:a},this.updateSelection(i,a,!1),this.notifySelectionStart(this.getCurrentSelectionRange()),this.pointerSession={mode:`selecting`,pointerId:e.pointerId},this.attachDocumentPointerListeners()}startGutterSelectionFromPointerDown(e){let{enableLineSelection:t=!1,onGutterUtilityClick:n}=this.options;if(n==null)return;let r=this.currentSelectionEnds(),i=r?.bottom??this.resolveSelectionPoint(e,{source:`event-path`,excludeUtility:!1}),a=r?.top??i;i==null||a==null||(e.preventDefault(),e.stopPropagation(),this.pointerSession={mode:`gutterSelecting`,pointerId:e.pointerId,anchor:a,current:i},t&&(this.selectionAnchor={lineNumber:a.lineNumber,side:a.side},this.updateSelection(i.lineNumber,i.side,!1),this.notifySelectionStart(this.getCurrentSelectionRange())),this.attachDocumentPointerListeners())}handleDocumentPointerMove=e=>{let{enableLineSelection:t=!1}=this.options;switch(this.pointerSession.mode){case`idle`:return;case`gutterSelecting`:{if(e.pointerId!==this.pointerSession.pointerId)return;e.preventDefault();let n=this.resolveSelectionPoint(e,{source:`coordinates-first`});if(n==null)return;this.pointerSession.current=n,t===!0&&this.updateSelection(n.lineNumber,n.side);return}case`selecting`:{if(e.pointerId!==this.pointerSession.pointerId)return;e.preventDefault();let t=this.resolveSelectionInfo(e,{source:`coordinates-first`,requireNumberColumn:!1});if(t==null||this.selectionAnchor==null)return;this.updateSelection(t.lineNumber,t.eventSide);return}case`pendingSingleLineUnselect`:{if(e.pointerId!==this.pointerSession.pointerId)return;e.preventDefault();let t=this.resolveSelectionInfo(e,{source:`coordinates-first`,requireNumberColumn:!1});if(t==null||this.selectionAnchor==null)return;let n={lineNumber:t.lineNumber,side:t.eventSide};if(kIe(this.pointerSession.pending,n))return;this.updateSelection(t.lineNumber,t.eventSide,!1),this.notifySelectionStart(this.getCurrentSelectionRange()),this.notifySelectionChangeDelta(),this.pointerSession={mode:`selecting`,pointerId:e.pointerId};return}}};handleDocumentPointerUp=e=>{let{enableLineSelection:t=!1,onGutterUtilityClick:n}=this.options;switch(this.pointerSession.mode){case`idle`:return;case`gutterSelecting`:{if(e.pointerId!==this.pointerSession.pointerId)return;e.preventDefault();let r=this.resolveSelectionPoint(e,{source:`coordinates-first`});r!=null&&(this.pointerSession.current=r,t&&this.updateSelection(r.lineNumber,r.side)),n?.(this.buildSelectedLineRange(this.pointerSession.anchor,this.pointerSession.current)),this.selectionAnchor=void 0,t&&(this.notifySelectionEnd(this.getCurrentSelectionRange()),this.notifySelectionCommitted(),this.clearProposedSelection()),this.clearPointerSession(),this.detachDocumentPointerListeners();return}case`pendingSingleLineUnselect`:if(e.pointerId!==this.pointerSession.pointerId)return;e.preventDefault(),this.updateSelection(null,void 0,!1),this.selectionAnchor=void 0,this.clearPendingSingleLineState(),this.detachDocumentPointerListeners(),this.notifySelectionEnd(this.getCurrentSelectionRange()),this.notifySelectionCommitted(),this.clearProposedSelection();return;case`selecting`:if(e.pointerId!==this.pointerSession.pointerId)return;e.preventDefault(),this.selectionAnchor=void 0,this.detachDocumentPointerListeners(),this.clearPointerSession(),this.notifySelectionEnd(this.getCurrentSelectionRange()),this.notifySelectionCommitted(),this.clearProposedSelection()}};handleDocumentPointerCancel=e=>{switch(this.pointerSession.mode){case`idle`:return;case`gutterSelecting`:case`selecting`:case`pendingSingleLineUnselect`:if(`pointerId`in this.pointerSession&&e.pointerId!==this.pointerSession.pointerId)return;this.selectionAnchor=void 0,this.clearProposedSelection(),this.clearPendingSingleLineState(),this.clearPointerSession(),this.detachDocumentPointerListeners()}};clearHoveredLine(){this.hoveredLine!=null&&(this.hoveredLine.lineElement.removeAttribute(`data-hovered`),this.hoveredLine.numberElement.removeAttribute(`data-hovered`),this.hoveredLine=void 0)}setHoveredLine(e){let{lineHoverHighlight:t=`disabled`}=this.options;this.hoveredLine!=null&&this.clearHoveredLine(),this.hoveredLine=e,t!==`disabled`&&((t===`both`||t===`line`)&&this.hoveredLine.lineElement.setAttribute(`data-hovered`,``),(t===`both`||t===`number`)&&this.hoveredLine.numberElement.setAttribute(`data-hovered`,``))}clearHoveredToken(){this.hoveredToken!=null&&(this.hoveredToken=void 0)}setHoveredToken(e){this.hoveredToken!=null&&this.clearHoveredToken(),this.hoveredToken=e}ensureGutterUtilityNode(e){if(this.gutterUtilityContainer??(this.gutterUtilityContainer=document.createElement(`div`),this.gutterUtilityContainer.setAttribute(`data-gutter-utility-slot`,``)),e)this.gutterUtilityButton!=null&&(this.gutterUtilityButton.remove(),this.gutterUtilityButton=void 0),this.gutterUtilitySlot??(this.gutterUtilitySlot=document.createElement(`slot`),this.gutterUtilitySlot.name=`gutter-utility-slot`),this.gutterUtilitySlot.parentNode!==this.gutterUtilityContainer&&this.gutterUtilityContainer.replaceChildren(this.gutterUtilitySlot);else{if(this.gutterUtilitySlot?.remove(),this.gutterUtilitySlot=void 0,this.gutterUtilityButton==null){let e=document.createElement(`div`);e.innerHTML=oG(OIe());let t=e.firstElementChild;if(!(t instanceof HTMLButtonElement))throw Error(`InteractionManager.ensureGutterUtilityNode: Node element should be a button`);t.remove(),this.gutterUtilityButton=t}this.gutterUtilityButton.parentNode!==this.gutterUtilityContainer&&this.gutterUtilityContainer.replaceChildren(this.gutterUtilityButton)}}revealUtilityFromGutterPath(e){if(this.placeUtilityFromSelection())return;let t=this.resolvePointerTarget(e);lG(t)&&t.numberColumn&&this.showUtilityOnLine(this.toEventBaseProps(t))}placeUtility(){if(!this.placeUtilityFromSelection()){if(this.hoveredLine!=null){this.showUtilityOnLine(this.hoveredLine);return}this.hideUtility()}}placeUtilityFromSelection(){let e=this.currentSelectionEnds();if(e==null)return!1;let t=this.targetForSelectionPoint(e.bottom);return t==null?this.hideUtility():this.showUtilityOnLine(this.toEventBaseProps(t)),!0}showUtilityOnLine(e){this.gutterUtilityContainer!=null&&(this.gutterUtilityLine=e,e.numberElement.appendChild(this.gutterUtilityContainer))}hideUtility(){this.gutterUtilityContainer?.remove(),this.gutterUtilityLine=void 0}currentSelectionEnds(){let e=this.getCurrentSelectionRange();return e==null?void 0:this.selectionEnds(e)}selectionEnds(e){let t={lineNumber:e.start,side:e.side},n={lineNumber:e.end,side:e.endSide??e.side},r=this.selectionPointRowIndex(t),i=this.selectionPointRowIndex(n);if(!(r==null||i==null))return r>i?{top:n,bottom:t}:{top:t,bottom:n}}selectionPointRowIndex(e){let t=this.getLineIndex(e.lineNumber,e.side);if(t!=null)return this.isSplitDiff()?t[1]:t[0]}targetForSelectionPoint(e){if(this.pre==null)return;let t=this.getLineIndex(e.lineNumber,e.side);if(t==null)return;let n=this.mode===`diff`?`${t[0]},${t[1]}`:`${t[0]}`,r=this.pre.querySelectorAll(`[data-column-number="${e.lineNumber}"][data-line-index="${n}"]`);for(let t of r){if(!(t instanceof HTMLElement))continue;let n=this.resolvePointerTarget(pG(t));if(lG(n)&&!(this.mode===`diff`&&e.side!=null&&n.side!==e.side))return n}}attachDocumentPointerListeners(){this.hasDocumentPointerListeners||=(document.addEventListener(`pointermove`,this.handleDocumentPointerMove),document.addEventListener(`pointerup`,this.handleDocumentPointerUp),document.addEventListener(`pointercancel`,this.handleDocumentPointerCancel),!0)}detachDocumentPointerListeners(){this.hasDocumentPointerListeners&&=(document.removeEventListener(`pointermove`,this.handleDocumentPointerMove),document.removeEventListener(`pointerup`,this.handleDocumentPointerUp),document.removeEventListener(`pointercancel`,this.handleDocumentPointerCancel),!1)}clearPointerSession(){this.pointerSession={mode:`idle`}}clearPendingSingleLineState(){this.pointerSession.mode===`pendingSingleLineUnselect`&&(this.pointerSession={mode:`idle`})}selectionInfoFromPath(e,t){let n=this.resolvePointerTarget(e);if(lG(n)&&!(t&&!n.numberColumn)&&n.splitLineIndex!=null)return{lineIndex:n.splitLineIndex,lineNumber:n.lineNumber,eventSide:this.mode===`diff`?n.side:void 0}}resolveSelectionInfo(e,t){let n=this.resolveSelectionPath(e,t);return n==null?void 0:this.selectionInfoFromPath(n,t.requireNumberColumn)}selectionPointFromPath(e){let t=this.resolvePointerTarget(e);if(lG(t))return{lineNumber:t.lineNumber,side:this.mode===`diff`?t.side:void 0}}resolveSelectionPoint(e,t){let n=this.resolveSelectionPath(e,t);return n==null?void 0:this.selectionPointFromPath(n)}resolveSelectionPath(e,t){let n=t.excludeUtility!==!1;switch(t.source){case`event-path`:return this.pathFromEventPath(e.composedPath(),n);case`coordinates-first`:{let t=this.pathFromCoordinates(e,n);return t===void 0?this.pathFromEventPath(e.composedPath(),n):t??void 0}}}pathFromCoordinates(e,t){let n=this.hitTest(e);if(n!==void 0)return n===null?null:this.pathFromElement(n,t)??null}pathFromEventPath(e,t){if(!(t&&_G(e))){for(let n of e)if(n instanceof Element)return this.pathFromElement(n,t)}}pathFromElement(e,t){let n=pG(e);if(t&&_G(n))return;let r=WLe(e);return r==null?this.pathFromAnnotationSlot(e):pG(r)}pathFromAnnotationSlot(e){let t=KLe(GLe(e));if(t==null)return;let n=this.targetForSelectionPoint(t);return n==null?void 0:pG(n.lineElement)}hitTest(e){if(!Number.isFinite(e.clientX)||!Number.isFinite(e.clientY))return;let t=this.pre?.getRootNode(),n=mG(t)?t:mG(document)?document:void 0;if(n!=null)return n.elementFromPoint(e.clientX,e.clientY)}getLineIndex(e,t){let{getLineIndex:n}=this.options;return n==null?[e-1,e-1]:n(e,t)}getCurrentSelectionRange(){return this.proposedSelectedRange===void 0?this.selectedRange:this.proposedSelectedRange}clearProposedSelection(){this.proposedSelectedRange=void 0}updateSelection(e,t,n=!0){let r=this.getCurrentSelectionRange(),i;if(e==null)i=null;else{let n=this.selectionAnchor?.side??t,r=this.selectionAnchor?.lineNumber??e;i=this.buildSelectionRange(r,e,n,t)}QU(r??void 0,i??void 0)||(this.options.controlledSelection===!0?this.proposedSelectedRange=i:(this.selectedRange=i,this.queuedSelectionRender??=requestAnimationFrame(this.renderSelection)),this.placeUtility(),n&&this.notifySelectionChangeDelta())}getIndexesFromSelection(e,t){if(this.pre==null)return;let n=this.getLineIndex(e.start,e.side),r=this.getLineIndex(e.end,e.endSide??e.side);return n!=null&&r!=null?{start:t?n[1]:n[0],end:t?r[1]:r[0]}:void 0}renderSelection=()=>{if(this.queuedSelectionRender!=null&&(cancelAnimationFrame(this.queuedSelectionRender),this.queuedSelectionRender=void 0),this.pre==null||this.renderedSelectionRange===this.selectedRange)return;let e=this.pre.querySelectorAll(`[data-selected-line]`);for(let t of e)t.removeAttribute(`data-selected-line`);if(this.renderedSelectionRange=this.selectedRange,this.selectedRange==null)return;let{children:t}=this.pre;if(t.length===0)return;if(t.length>2)throw console.error(t),Error(`InteractionManager.renderSelection: Somehow there are more than 2 code elements...`);let n=this.pre.getAttribute(`data-diff-type`)===`split`,r=this.getIndexesFromSelection(this.selectedRange,n);if(r==null)throw console.error({rowRange:r,selectedRange:this.selectedRange}),Error(`InteractionManager.renderSelection: No valid rowRange`);let i=r.start===r.end,a=Math.min(r.start,r.end),o=Math.max(r.start,r.end);for(let e of t){let[t,r]=e.children,s=r.children.length;if(s!==t.children.length)throw Error(`InteractionManager.renderSelection: gutter and content children dont match, something is wrong`);for(let e=0;e<s;e++){let s=r.children[e],c=t.children[e];if(!(s instanceof HTMLElement)||!(c instanceof HTMLElement))continue;let l=this.parseLineIndex(s,n);if((l??0)>o)break;if(l==null||l<a)continue;let u=i?`single`:l===a?`first`:l===o?`last`:``;s.setAttribute(`data-selected-line`,u),c.setAttribute(`data-selected-line`,u),c.nextSibling instanceof HTMLElement&&s.nextSibling instanceof HTMLElement&&(s.nextSibling.hasAttribute(`data-line-annotation`)||s.nextSibling.hasAttribute(`data-merge-conflict-actions`))&&(i?(u=`last`,s.setAttribute(`data-selected-line`,`first`)):l===a?u=``:l===o&&s.setAttribute(`data-selected-line`,``),s.nextSibling.setAttribute(`data-selected-line`,u),c.nextSibling.setAttribute(`data-selected-line`,u))}}};notifySelectionCommitted(){this.options.onLineSelected?.(this.getCurrentSelectionRange()??null)}notifySelectionChangeDelta(){this.options.onLineSelectionChange?.(this.getCurrentSelectionRange()??null)}notifySelectionStart(e){this.options.onLineSelectionStart?.(e)}notifySelectionEnd(e){this.options.onLineSelectionEnd?.(e)}toEventBaseProps(e){return this.mode===`file`?{type:`line`,lineElement:e.lineElement,lineNumber:e.lineNumber,numberColumn:e.numberColumn,numberElement:e.numberElement}:{type:`diff-line`,annotationSide:e.side,lineType:e.lineType,lineElement:e.lineElement,numberElement:e.numberElement,lineNumber:e.lineNumber,numberColumn:e.numberColumn}}toTokenEventBaseProps({lineCharEnd:e,lineCharStart:t,lineNumber:n,side:r,tokenElement:i,tokenText:a}){return this.mode===`file`?{type:`token`,lineCharEnd:e,lineCharStart:t,lineNumber:n,tokenElement:i,tokenText:a}:{type:`token`,lineCharEnd:e,lineCharStart:t,lineNumber:n,side:r,tokenElement:i,tokenText:a}}buildSelectedLineRange(e,t){return this.buildSelectionRange(e.lineNumber,t.lineNumber,e.side,t.side)}buildSelectionRange(e,t,n,r){return{start:e,end:t,...n==null?{}:{side:n},...n!==r&&r!=null?{endSide:r}:{}}}resolvePointerTarget(e){let t=!1,n,r,i,a,o,s,c,l,u,d;for(let f of e){if(!(f instanceof HTMLElement))continue;if(d==null&&f.hasAttribute(`data-merge-conflict-action`)){let e=f.getAttribute(`data-merge-conflict-action`)??void 0,t=f.getAttribute(`data-merge-conflict-conflict-index`)??void 0,n=t==null?NaN:Number.parseInt(t,10);ULe(e)&&Number.isFinite(n)&&(d={kind:`merge-conflict-action`,resolution:e,conflictIndex:n})}if(s==null&&f.hasAttribute(`data-char`)){s=f;let e=f.getAttribute(`data-char`);if(e!=null){let t=Number.parseInt(e,10);if(!Number.isNaN(t)){let e=f.textContent??``,n=t+e.length;(e.trim()!==``||this.options.enableTokenInteractionsOnWhitespace===!0)&&(c={tokenElement:s,lineCharStart:t,lineCharEnd:n,tokenText:e});continue}}}let e=o==null?f.getAttribute(`data-column-number`)??void 0:void 0;if(e!=null){o=f,u=Number.parseInt(e,10),t=!0,n=gG(f),a=f.getAttribute(`data-line-index`)??void 0;continue}let p=i==null?f.getAttribute(`data-line`)??void 0:void 0;if(p!=null){i=f,u=Number.parseInt(p,10),n=gG(f),a=f.getAttribute(`data-line-index`)??void 0;continue}if(l==null&&(f.hasAttribute(`data-expand-button`)||f.hasAttribute(`data-unmodified-lines`))){l={hunkIndex:void 0,direction:f.hasAttribute(`data-expand-up`)?`up`:f.hasAttribute(`data-expand-down`)?`down`:`both`,all:f.hasAttribute(`data-expand-all-button`)};continue}let m=l==null?void 0:f.getAttribute(`data-expand-index`)??void 0;if(l!=null&&m!=null){let e=Number.parseInt(m,10);Number.isNaN(e)||(l.hunkIndex=e);continue}if(r==null&&f.hasAttribute(`data-code`)){r=f;break}}if(d!=null)return d;if(l?.hunkIndex!=null)return{type:`line-info`,hunkIndex:l.hunkIndex,direction:l.direction,all:l.all};if(i??=a==null?void 0:fG(r,`[data-line][data-line-index="${a}"]`),o??=a==null?void 0:fG(r,`[data-column-number][data-line-index="${a}"]`),r==null||i==null||o==null||n==null||u==null||Number.isNaN(u))return;let f=this.parseLineIndex(i,this.isSplitDiff());return c==null?this.mode===`file`?{kind:`line`,lineType:n,lineElement:i,lineNumber:u,numberColumn:t,numberElement:o,side:void 0,splitLineIndex:f}:{kind:`line`,lineType:n,lineElement:i,lineNumber:u,numberColumn:t,numberElement:o,side:hG(n,r),splitLineIndex:f}:this.mode===`file`?{kind:`token`,lineType:n,lineElement:i,lineNumber:u,numberColumn:t,numberElement:o,side:void 0,splitLineIndex:f,...c}:{kind:`token`,lineType:n,lineElement:i,lineNumber:u,numberColumn:t,numberElement:o,side:hG(n,r),splitLineIndex:f,...c}}isSplitDiff(){return this.pre?.getAttribute(`data-diff-type`)===`split`}parseLineIndex(e,t){let n=(e.getAttribute(`data-line-index`)??``).split(`,`).map(e=>Number.parseInt(e,10)).filter(e=>!Number.isNaN(e));if(t&&n.length===2)return n[1];if(!t)return n[0]}};function cG({enableTokenInteractionsOnWhitespace:e,enableGutterUtility:t,lineHoverHighlight:n,onGutterUtilityClick:r,onLineClick:i,onLineEnter:a,onLineLeave:o,onLineNumberClick:s,onTokenClick:c,onTokenEnter:l,onTokenLeave:u,renderGutterUtility:d,__debugPointerEvents:f,enableLineSelection:p,controlledSelection:m,onLineSelected:h,onLineSelectionStart:g,onLineSelectionChange:_,onLineSelectionEnd:v},y,b,x){return{enableTokenInteractionsOnWhitespace:e,enableGutterUtility:BLe({enableGutterUtility:t,renderGutterUtility:d,onGutterUtilityClick:r}),usesCustomGutterUtility:d!=null,lineHoverHighlight:n,onGutterUtilityClick:r,onHunkExpand:y,onMergeConflictActionClick:x,onLineClick:i,onLineEnter:a,onLineLeave:o,onLineNumberClick:s,onTokenClick:c,onTokenEnter:l,onTokenLeave:u,__debugPointerEvents:f,enableLineSelection:p,controlledSelection:m,onLineSelected:h,onLineSelectionStart:g,onLineSelectionChange:_,onLineSelectionEnd:v,getLineIndex:b}}function BLe({enableGutterUtility:e,renderGutterUtility:t,onGutterUtilityClick:n}){if(n!=null&&t!=null)throw Error(`Cannot use both 'onGutterUtilityClick' and 'renderGutterUtility'. Use only one gutter utility API.`);return e??!1}function lG(e){return e!=null&&`kind`in e&&e.kind===`line`}function uG(e){return e!=null&&`kind`in e&&e.kind===`token`}function dG(e){return lG(e)||uG(e)}function VLe(e){return`type`in e&&e.type===`line-info`}function HLe(e){return`kind`in e&&e.kind===`merge-conflict-action`}function ULe(e){return e===`current`||e===`incoming`||e===`both`}function fG(e,t){let n=e?.querySelector(t);return n instanceof HTMLElement?n:void 0}function pG(e){let t=[],n=e;for(;n!=null;)t.push(n),n=n.parentNode;return t}function WLe(e){let t=e.closest(`[data-line], [data-column-number]`);if(t instanceof HTMLElement)return t;let n=e.closest(`[data-line-annotation], [data-gutter-buffer="annotation"]`);if(!(n instanceof HTMLElement))return;let r=n.previousElementSibling;return r instanceof HTMLElement&&(r.hasAttribute(`data-line`)||r.hasAttribute(`data-column-number`))?r:void 0}function GLe(e){let t=e.closest(`[slot^="annotation-"]`);if(t instanceof HTMLElement)return t.getAttribute(`slot`)??void 0;if(e instanceof HTMLElement){let t=e.getAttribute(`name`)??void 0;return t!=null&&t.startsWith(`annotation-`)?t:void 0}}function KLe(e){if(e==null)return;let t=/^annotation-(?:(additions|deletions)-)?(\d+)$/.exec(e);if(t==null)return;let n=Number.parseInt(t[2],10);if(!(!Number.isFinite(n)||n<=0))return{lineNumber:n,side:t[1]}}function mG(e){return e!=null&&typeof e.elementFromPoint==`function`}function hG(e,t){switch(e){case`change-deletion`:return`deletions`;case`change-addition`:return`additions`;default:return t.hasAttribute(`data-deletions`)?`deletions`:`additions`}}function gG(e){let t=e.getAttribute(`data-line-type`);if(t!=null)switch(t){case`change-deletion`:case`change-addition`:case`context`:case`context-expanded`:return t;default:return}}function _G(e){for(let t of e)if(t instanceof HTMLElement&&(t.hasAttribute(`data-utility-button`)||t.hasAttribute(`data-gutter-utility-slot`)||t.getAttribute(`slot`)===`gutter-utility-slot`||t.getAttribute(`name`)===`gutter-utility-slot`))return!0;return!1}function vG(e=`none`,t,...n){switch(e){case`none`:return;case`both`:break;case`click`:if(t!==`click`)return;break;case`move`:if(t!==`move`)return;break}console.log(...n)}var yG=class e{static resizeObserver;static managersByElement=new Map;static getResizeObserver(){let t=e.resizeObserver??new ResizeObserver(e.handleSharedResizeEntries);return e.resizeObserver=t,t}static handleSharedResizeEntries(t){let n=new Map;for(let r of t){let t=e.managersByElement.get(r.target);if(t==null)continue;let i=n.get(t);i==null?n.set(t,[r]):i.push(r)}for(let[e,t]of n)e.handleResizeEntries(t)}observedNodes=new Map;setup(e,t){let n=new Set,r=0,i=new Map(this.observedNodes);this.observedNodes.clear();for(let t of e.children){if(r===2)break;let e=(()=>{if(t instanceof HTMLElement&&t.tagName===`CODE`)return t})();if(e==null)continue;r++;let n=i.get(e);if(n!=null&&n.type!==`code`)throw Error(`ResizeManager.setup: somehow a code node is being used for an annotation, should be impossible`);let a=e.firstElementChild;a instanceof HTMLElement||(a=null),n==null?(n={type:`code`,codeElement:e,numberElement:a,codeWidth:`auto`,numberWidth:0},this.observedNodes.set(e,n),this.observe(e),a!=null&&(this.observedNodes.set(a,n),this.observe(a))):(this.observedNodes.set(e,n),i.delete(e),n.numberElement===a?n.numberElement==null?n.numberWidth=0:(i.delete(n.numberElement),this.observedNodes.set(n.numberElement,n)):(n.numberElement!=null&&(this.unobserve(n.numberElement),i.delete(n.numberElement)),a!=null&&(this.observe(a),i.delete(a),this.observedNodes.set(a,n)),n.numberElement=a,n.numberWidth=0))}if(r>1&&!t){let t=e.querySelectorAll(`[data-line-annotation*=","]`),r=new Map;for(let e of t){if(!(e instanceof HTMLElement))continue;let t=e.getAttribute(`data-line-annotation`)??``;if(!/^-?\d+,-?\d+$/.test(t)){console.error(`DiffFileRenderer.setupResizeObserver: Invalid element or annotation`,{lineAnnotation:t,element:e});continue}let n=r.get(t);n??(n=[],r.set(t,n)),n.push(e)}for(let[e,t]of r){if(t.length!==2){console.error(`DiffFileRenderer.setupResizeObserver: Bad Pair`,e,t);continue}let[r,a]=t,o=r.firstElementChild,s=a.firstElementChild;if(!(r instanceof HTMLElement)||!(a instanceof HTMLElement)||!(o instanceof HTMLElement)||!(s instanceof HTMLElement))continue;let c=i.get(o);if(c!=null){this.observedNodes.set(o,c),this.observedNodes.set(s,c),i.delete(o),i.delete(s);continue}let l=o.getBoundingClientRect().height,u=s.getBoundingClientRect().height;c={type:`annotations`,column1:{container:r,child:o,childHeight:l},column2:{container:a,child:s,childHeight:u},currentHeight:`auto`},n.add({child1:o,child2:s,item:c,newHeight:Math.max(l,u)})}for(let e of n)this.applyNewHeight(e.item,e.newHeight),this.observedNodes.set(e.child1,e.item),this.observedNodes.set(e.child2,e.item),this.observe(e.child1),this.observe(e.child2);n.clear()}for(let[e,t]of i)this.unobserve(e),t.type===`code`?YLe(t):XLe(t);i.clear()}cleanUp(){for(let e of this.observedNodes.keys())this.unobserve(e);this.observedNodes.clear()}observe(t){let{managersByElement:n}=e,r=n.get(t);if(r!==this){if(r!=null&&r!==this)throw Error(`ResizeManager.observe: element is already owned by another ResizeManager`);n.set(t,this),e.getResizeObserver().observe(t)}}unobserve(t){let{managersByElement:n,resizeObserver:r}=e,i=n.get(t);if(i!=null){if(i!==this)throw Error(`ResizeManager.unobserve: element is owned by another ResizeManager`);n.delete(t),r?.unobserve(t),r!=null&&n.size===0&&(r.disconnect(),e.resizeObserver=void 0)}}handleResizeEntries(e){let t=new Map,n=new Set;for(let r of e){let{target:e,borderBoxSize:i,contentBoxSize:a}=r;if(!(e instanceof HTMLElement)){console.error(`ResizeManager.handleResizeEntries: Invalid element for ResizeObserver`,r);continue}let o=this.observedNodes.get(e);if(o==null){console.error(`ResizeManager.handleResizeEntries: Not a valid observed node`,r);continue}if(o.type===`annotations`){let t=(()=>{if(e===o.column1.child)return o.column1;if(e===o.column2.child)return o.column2})();if(t==null){console.error(`ResizeManager.handleResizeEntries: Couldn't find a column for`,{item:o,target:e});continue}t.childHeight=i[0].blockSize,n.add(o)}else if(o.type===`code`){let n=t.get(o)??{},r=a[0].inlineSize;e===o.codeElement?n.codeInlineSize=r:e===o.numberElement&&(n.numberInlineSize=r),t.set(o,n)}}this.applyAnnotationUpdates(n),n.clear(),this.applyColumnUpdates(t),t.clear()}applyAnnotationUpdates(e){for(let t of e)this.applyNewHeight(t,Math.max(t.column1.childHeight,t.column2.childHeight))}applyColumnUpdates=e=>{for(let[t,n]of e){let e=n.codeInlineSize==null?t.codeWidth:qLe(n.codeInlineSize),r=n.numberInlineSize==null?t.numberWidth:JLe(n.numberInlineSize),i=e!==t.codeWidth,a=r!==t.numberWidth;if(!(!i&&!a)&&(t.codeWidth=e,t.numberWidth=r,i&&t.codeElement.style.setProperty(`--diffs-column-width`,`${typeof e==`number`?`${e}px`:`auto`}`),a&&t.codeElement.style.setProperty(`--diffs-column-number-width`,`${r===0?`auto`:`${r}px`}`),i||a&&e!==`auto`)){let n=typeof e==`number`?Math.max(e-r,0):0;t.codeElement.style.setProperty(`--diffs-column-content-width`,`${n>0?`${n}px`:`auto`}`)}}};applyNewHeight(e,t){t!==e.currentHeight&&(e.currentHeight=Math.max(t,0),e.column1.container.style.setProperty(`--diffs-annotation-min-height`,`${e.currentHeight}px`),e.column2.container.style.setProperty(`--diffs-annotation-min-height`,`${e.currentHeight}px`))}};function qLe(e){let t=Math.max(Math.floor(e),0);return t===0?`auto`:t}function JLe(e){return Math.max(Math.ceil(e),0)}function YLe(e){e.codeElement.isConnected&&(e.codeElement.style.removeProperty(`--diffs-column-content-width`),e.codeElement.style.removeProperty(`--diffs-column-number-width`),e.codeElement.style.removeProperty(`--diffs-column-width`))}function XLe(e){e.column1.container.isConnected&&e.column1.container.style.removeProperty(`--diffs-annotation-min-height`),e.column2.container.isConnected&&e.column2.container.style.removeProperty(`--diffs-annotation-min-height`)}var bG=new Map,xG=new Map,ZLe=new Map,SG=new Set;function CG(e){for(let t of Array.isArray(e)?e:[e])if(!(t===`text`||t===`ansi`)&&!SG.has(t))return!1;return!0}function wG(e,t){e=Array.isArray(e)?e:[e];for(let n of e){if(SG.has(n.name))continue;let e=bG.get(n.name);e??(e=n,bG.set(n.name,e)),SG.add(e.name),t.loadLanguageSync(e.data)}}function TG(){return typeof WorkerGlobalScope<`u`&&typeof self<`u`&&self instanceof WorkerGlobalScope}var EG=Object.defineProperty,QLe=Object.getOwnPropertyDescriptor,$Le=Object.getOwnPropertyNames,eRe=Object.prototype.hasOwnProperty,tRe=(e,t)=>{let n={};for(var r in e)EG(n,r,{get:e[r],enumerable:!0});return t||EG(n,Symbol.toStringTag,{value:`Module`}),n},DG=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=$Le(t),a=0,o=i.length,s;a<o;a++)s=i[a],!eRe.call(e,s)&&s!==n&&EG(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=QLe(t,s))||r.enumerable});return e},nRe=(e,t,n)=>(DG(e,t,`default`),n&&DG(n,t,`default`)),OG=[{id:`abap`,name:`ABAP`,import:(()=>q(()=>import(`./abap-CLvhMVsD.js`),[]))},{id:`actionscript-3`,name:`ActionScript`,import:(()=>q(()=>import(`./actionscript-3--17pq3dv.js`),[]))},{id:`ada`,name:`Ada`,import:(()=>q(()=>import(`./ada-C5qYipkI.js`),[]))},{id:`angular-html`,name:`Angular HTML`,import:(()=>q(()=>import(`./angular-html-BPHFZwgm.js`).then(e=>e.n),__vite__mapDeps([0,1,2,3,4])))},{id:`angular-ts`,name:`Angular TypeScript`,import:(()=>q(()=>import(`./angular-ts-CXoIeuGh.js`),__vite__mapDeps([5,0,1,2,3,4,6])))},{id:`apache`,name:`Apache Conf`,import:(()=>q(()=>import(`./apache-U0d_L8uA.js`),[]))},{id:`apex`,name:`Apex`,import:(()=>q(()=>import(`./apex-VAyPSnFM.js`),[]))},{id:`apl`,name:`APL`,import:(()=>q(()=>import(`./apl-C6oPUNZZ.js`),__vite__mapDeps([7,3,1,4,2,8,9,10])))},{id:`applescript`,name:`AppleScript`,import:(()=>q(()=>import(`./applescript-CCn79oCD.js`),[]))},{id:`ara`,name:`Ara`,import:(()=>q(()=>import(`./ara-4CJ0cIlV.js`),[]))},{id:`asciidoc`,name:`AsciiDoc`,aliases:[`adoc`],import:(()=>q(()=>import(`./asciidoc-DE70LPWp.js`),[]))},{id:`asm`,name:`Assembly`,import:(()=>q(()=>import(`./asm-Cmm7eHzH.js`),[]))},{id:`astro`,name:`Astro`,import:(()=>q(()=>import(`./astro-Bq_n5uKv.js`),__vite__mapDeps([11,3,1,4,10,12,13,14])))},{id:`awk`,name:`AWK`,import:(()=>q(()=>import(`./awk-BWXHIvNe.js`),[]))},{id:`ballerina`,name:`Ballerina`,import:(()=>q(()=>import(`./ballerina-B7ZEbQpA.js`),[]))},{id:`bat`,name:`Batch File`,aliases:[`batch`],import:(()=>q(()=>import(`./bat-Bo4NYOV-.js`),[]))},{id:`beancount`,name:`Beancount`,import:(()=>q(()=>import(`./beancount-D-usSTwE.js`),[]))},{id:`berry`,name:`Berry`,aliases:[`be`],import:(()=>q(()=>import(`./berry-DKpUyyne.js`),[]))},{id:`bibtex`,name:`BibTeX`,import:(()=>q(()=>import(`./bibtex-Ci_nEsc7.js`),[]))},{id:`bicep`,name:`Bicep`,import:(()=>q(()=>import(`./bicep-CUHmPFLl.js`),[]))},{id:`bird2`,name:`BIRD2 Configuration`,aliases:[`bird`],import:(()=>q(()=>import(`./bird2-C6vDhewU.js`),[]))},{id:`blade`,name:`Blade`,import:(()=>q(()=>import(`./blade-DYe65h_C.js`),__vite__mapDeps([15,3,1,4,2,8,9,10,16,17])))},{id:`bsl`,name:`1C (Enterprise)`,aliases:[`1c`],import:(()=>q(()=>import(`./bsl-BkkzgIyY.js`),__vite__mapDeps([18,19])))},{id:`c`,name:`C`,import:(()=>q(()=>import(`./c-BsDji_bt.js`).then(e=>e.n),__vite__mapDeps([20,1])))},{id:`c3`,name:`C3`,import:(()=>q(()=>import(`./c3-BFHwR3_K.js`),[]))},{id:`cadence`,name:`Cadence`,aliases:[`cdc`],import:(()=>q(()=>import(`./cadence-CQ2zXKGN.js`),[]))},{id:`cairo`,name:`Cairo`,import:(()=>q(()=>import(`./cairo-DLTphjLi.js`),__vite__mapDeps([21,22])))},{id:`clarity`,name:`Clarity`,import:(()=>q(()=>import(`./clarity-SemFz856.js`),[]))},{id:`clojure`,name:`Clojure`,aliases:[`clj`],import:(()=>q(()=>import(`./clojure-DqKBuwfJ.js`),[]))},{id:`cmake`,name:`CMake`,import:(()=>q(()=>import(`./cmake-Bj61d0ZC.js`),[]))},{id:`cobol`,name:`COBOL`,import:(()=>q(()=>import(`./cobol-CoC31Rpg.js`),__vite__mapDeps([23,2,1,3,4,9])))},{id:`codeowners`,name:`CODEOWNERS`,import:(()=>q(()=>import(`./codeowners-C8r90Shi.js`),[]))},{id:`codeql`,name:`CodeQL`,aliases:[`ql`],import:(()=>q(()=>import(`./codeql-oeQT6MSM.js`),[]))},{id:`coffee`,name:`CoffeeScript`,aliases:[`coffeescript`],import:(()=>q(()=>import(`./coffee-DU1_O9cH.js`),__vite__mapDeps([24,3,1])))},{id:`common-lisp`,name:`Common Lisp`,aliases:[`lisp`],import:(()=>q(()=>import(`./common-lisp-Cv5bFMCO.js`),[]))},{id:`coq`,name:`Coq`,import:(()=>q(()=>import(`./coq-BrsZFFmf.js`),[]))},{id:`cpp`,name:`C++`,aliases:[`c++`],import:(()=>q(()=>import(`./cpp-D5_eYHZr.js`).then(e=>e.n),__vite__mapDeps([25,1,17,26,27,20])))},{id:`crystal`,name:`Crystal`,import:(()=>q(()=>import(`./crystal-3iIyvfhL.js`),__vite__mapDeps([28,3,1,4,2,17,20,29])))},{id:`csharp`,name:`C#`,aliases:[`c#`,`cs`],import:(()=>q(()=>import(`./csharp-oqKa8noW.js`),[]))},{id:`css`,name:`CSS`,import:(()=>q(()=>import(`./css-B4bpFXEv.js`).then(e=>e.n),__vite__mapDeps([4,1])))},{id:`csv`,name:`CSV`,import:(()=>q(()=>import(`./csv-Dx-8-gkx.js`),[]))},{id:`cue`,name:`CUE`,import:(()=>q(()=>import(`./cue-CE9AQfxI.js`),[]))},{id:`cypher`,name:`Cypher`,aliases:[`cql`],import:(()=>q(()=>import(`./cypher-ClKdZ_lG.js`),[]))},{id:`d`,name:`D`,import:(()=>q(()=>import(`./d-qD-0Kul2.js`),[]))},{id:`dart`,name:`Dart`,import:(()=>q(()=>import(`./dart-CnvKMtbv.js`),[]))},{id:`dax`,name:`DAX`,import:(()=>q(()=>import(`./dax-BkyTk9wS.js`),[]))},{id:`desktop`,name:`Desktop`,import:(()=>q(()=>import(`./desktop-Dlh5hvp9.js`),[]))},{id:`diff`,name:`Diff`,import:(()=>q(()=>import(`./diff-woXpYk--.js`),[]))},{id:`docker`,name:`Dockerfile`,aliases:[`dockerfile`],import:(()=>q(()=>import(`./docker-IyjqRm3v.js`),[]))},{id:`dotenv`,name:`dotEnv`,import:(()=>q(()=>import(`./dotenv-_5a1GRtc.js`),[]))},{id:`dream-maker`,name:`Dream Maker`,import:(()=>q(()=>import(`./dream-maker-DW3nJb8Q.js`),[]))},{id:`edge`,name:`Edge`,import:(()=>q(()=>import(`./edge--YoYp8s_.js`),__vite__mapDeps([30,2,1,3,4,12,16])))},{id:`elixir`,name:`Elixir`,import:(()=>q(()=>import(`./elixir-CZ1wqlQn.js`),__vite__mapDeps([31,2,1,3,4])))},{id:`elm`,name:`Elm`,import:(()=>q(()=>import(`./elm-DKdyYY92.js`),__vite__mapDeps([32,27,1,20])))},{id:`emacs-lisp`,name:`Emacs Lisp`,aliases:[`elisp`],import:(()=>q(()=>import(`./emacs-lisp-B4R74twV.js`),[]))},{id:`erb`,name:`ERB`,import:(()=>q(()=>import(`./erb-PeUqy_9N.js`),__vite__mapDeps([33,2,1,3,4,34,8,9,17,20,25,26,27,29,35,36,12,14,37,38,39])))},{id:`erlang`,name:`Erlang`,aliases:[`erl`],import:(()=>q(()=>import(`./erlang-Cphh6RMH.js`),__vite__mapDeps([40,41])))},{id:`fennel`,name:`Fennel`,import:(()=>q(()=>import(`./fennel-DQxkIbk2.js`),[]))},{id:`fish`,name:`Fish`,import:(()=>q(()=>import(`./fish-BJitypiv.js`),[]))},{id:`fluent`,name:`Fluent`,aliases:[`ftl`],import:(()=>q(()=>import(`./fluent-C03EYrpw.js`),[]))},{id:`fortran-fixed-form`,name:`Fortran (Fixed Form)`,aliases:[`f`,`for`,`f77`],import:(()=>q(()=>import(`./fortran-fixed-form-DEKoE2YW.js`),__vite__mapDeps([42,43])))},{id:`fortran-free-form`,name:`Fortran (Free Form)`,aliases:[`f90`,`f95`,`f03`,`f08`,`f18`],import:(()=>q(()=>import(`./fortran-free-form-CYNrtFtB.js`),[]))},{id:`fsharp`,name:`F#`,aliases:[`f#`,`fs`],import:(()=>q(()=>import(`./fsharp-D13ZGOAj.js`),__vite__mapDeps([44,41])))},{id:`gdresource`,name:`GDResource`,aliases:[`tscn`,`tres`],import:(()=>q(()=>import(`./gdresource-C0sCabJj.js`),__vite__mapDeps([45,46,47])))},{id:`gdscript`,name:`GDScript`,aliases:[`gd`],import:(()=>q(()=>import(`./gdscript-Cp2uCuqX.js`),[]))},{id:`gdshader`,name:`GDShader`,import:(()=>q(()=>import(`./gdshader-CBce3t8t.js`),[]))},{id:`genie`,name:`Genie`,import:(()=>q(()=>import(`./genie-CV2tkWYe.js`),[]))},{id:`gherkin`,name:`Gherkin`,import:(()=>q(()=>import(`./gherkin-DExj1W_8.js`),[]))},{id:`git-commit`,name:`Git Commit Message`,import:(()=>q(()=>import(`./git-commit-BSykSTBG.js`),__vite__mapDeps([48,49])))},{id:`git-rebase`,name:`Git Rebase Message`,import:(()=>q(()=>import(`./git-rebase-1Z5OxWid.js`),__vite__mapDeps([50,29,1])))},{id:`gleam`,name:`Gleam`,import:(()=>q(()=>import(`./gleam-CSRkHgEL.js`),[]))},{id:`glimmer-js`,name:`Glimmer JS`,aliases:[`gjs`],import:(()=>q(()=>import(`./glimmer-js-Br0y4u5b.js`),__vite__mapDeps([51,3,1,4,2,12])))},{id:`glimmer-ts`,name:`Glimmer TS`,aliases:[`gts`],import:(()=>q(()=>import(`./glimmer-ts-Oh0AMNJv.js`),__vite__mapDeps([52,3,1,4,2,12])))},{id:`glsl`,name:`GLSL`,import:(()=>q(()=>import(`./glsl-DI6kM2gF.js`).then(e=>e.n),__vite__mapDeps([27,1,20])))},{id:`gn`,name:`GN`,import:(()=>q(()=>import(`./gn-ilITqXS6.js`),[]))},{id:`gnuplot`,name:`Gnuplot`,import:(()=>q(()=>import(`./gnuplot-7GGW24-e.js`),[]))},{id:`go`,name:`Go`,import:(()=>q(()=>import(`./go-rLFTqkRN.js`),[]))},{id:`graphql`,name:`GraphQL`,aliases:[`gql`],import:(()=>q(()=>import(`./graphql-VCSJCQkl.js`).then(e=>e.n),__vite__mapDeps([36,1,3,12,14,37])))},{id:`groovy`,name:`Groovy`,import:(()=>q(()=>import(`./groovy-CacY0gHj.js`),[]))},{id:`hack`,name:`Hack`,import:(()=>q(()=>import(`./hack-4xJQMtbZ.js`),__vite__mapDeps([53,2,1,3,4,17])))},{id:`haml`,name:`Ruby Haml`,import:(()=>q(()=>import(`./haml-Bc0kPVkr.js`).then(e=>e.n),__vite__mapDeps([35,1,3,4])))},{id:`handlebars`,name:`Handlebars`,aliases:[`hbs`],import:(()=>q(()=>import(`./handlebars-Znb8TzWA.js`),__vite__mapDeps([54,3,1,4,2,39])))},{id:`haskell`,name:`Haskell`,aliases:[`hs`],import:(()=>q(()=>import(`./haskell-D8IpX4py.js`),[]))},{id:`haxe`,name:`Haxe`,import:(()=>q(()=>import(`./haxe-OTjmBuCE.js`),[]))},{id:`hcl`,name:`HashiCorp HCL`,import:(()=>q(()=>import(`./hcl-Dh228itO.js`),[]))},{id:`hjson`,name:`Hjson`,import:(()=>q(()=>import(`./hjson-CxZEssPk.js`),[]))},{id:`hlsl`,name:`HLSL`,import:(()=>q(()=>import(`./hlsl-Cvrh5tZx.js`),[]))},{id:`html`,name:`HTML`,import:(()=>q(()=>import(`./html-_Zw71zQT.js`).then(e=>e.n),__vite__mapDeps([2,1,3,4])))},{id:`html-derivative`,name:`HTML (Derivative)`,import:(()=>q(()=>import(`./html-derivative-D6Fn1mLE.js`),__vite__mapDeps([16,2,1,3,4])))},{id:`http`,name:`HTTP`,import:(()=>q(()=>import(`./http-CSdnm1Wh.js`),__vite__mapDeps([55,8,1,9,10,29,36,3,12,14,37])))},{id:`hurl`,name:`Hurl`,import:(()=>q(()=>import(`./hurl-DKOuNoWT.js`),__vite__mapDeps([56,8,1,9,57,36,3,12,14,37])))},{id:`hxml`,name:`HXML`,import:(()=>q(()=>import(`./hxml-B0Qn7Nwc.js`),__vite__mapDeps([58,59])))},{id:`hy`,name:`Hy`,import:(()=>q(()=>import(`./hy-CZbG8q4J.js`),[]))},{id:`imba`,name:`Imba`,import:(()=>q(()=>import(`./imba-DsUTQ-LC.js`),[]))},{id:`ini`,name:`INI`,aliases:[`properties`],import:(()=>q(()=>import(`./ini-B5eOa1yu.js`),[]))},{id:`java`,name:`Java`,import:(()=>q(()=>import(`./java-Czo4Dn1f.js`).then(e=>e.n),__vite__mapDeps([9,1])))},{id:`javascript`,name:`JavaScript`,aliases:[`js`,`cjs`,`mjs`],import:(()=>q(()=>import(`./javascript-fyReKHSS.js`).then(e=>e.n),__vite__mapDeps([3,1])))},{id:`jinja`,name:`Jinja`,import:(()=>q(()=>import(`./jinja-CvJhR5Z5.js`),__vite__mapDeps([60,2,1,3,4])))},{id:`jison`,name:`Jison`,import:(()=>q(()=>import(`./jison-DSlj1sEU.js`),__vite__mapDeps([61,3,1])))},{id:`json`,name:`JSON`,import:(()=>q(()=>import(`./json-fCB7n2pX.js`).then(e=>e.n),__vite__mapDeps([10,1])))},{id:`json5`,name:`JSON5`,import:(()=>q(()=>import(`./json5-BR5RXkoi.js`),[]))},{id:`jsonc`,name:`JSON with Comments`,import:(()=>q(()=>import(`./jsonc-CYpm1nAK.js`),[]))},{id:`jsonl`,name:`JSON Lines`,import:(()=>q(()=>import(`./jsonl-CmCQp5Yx.js`),[]))},{id:`jsonnet`,name:`Jsonnet`,import:(()=>q(()=>import(`./jsonnet-CJTPZ8u_.js`),[]))},{id:`jssm`,name:`JSSM`,aliases:[`fsl`],import:(()=>q(()=>import(`./jssm-DXw9l8Rf.js`),[]))},{id:`jsx`,name:`JSX`,import:(()=>q(()=>import(`./jsx-C1OJlXdb.js`).then(e=>e.n),__vite__mapDeps([37,1])))},{id:`julia`,name:`Julia`,aliases:[`jl`],import:(()=>q(()=>import(`./julia-CmLSMgqX.js`),__vite__mapDeps([62,3,1,17,22,25,26,27,20,63])))},{id:`just`,name:`Just`,import:(()=>q(()=>import(`./just-D9KdTXpD.js`),__vite__mapDeps([64,3,1,12,22,29,34,4,2,8,9,17,20,25,26,27,35,36,14,37,38,39,65])))},{id:`kdl`,name:`KDL`,import:(()=>q(()=>import(`./kdl-CsD5j6eV.js`),[]))},{id:`kotlin`,name:`Kotlin`,aliases:[`kt`,`kts`],import:(()=>q(()=>import(`./kotlin-DhhofPvG.js`),[]))},{id:`kusto`,name:`Kusto`,aliases:[`kql`],import:(()=>q(()=>import(`./kusto-C7mF5XQf.js`),[]))},{id:`latex`,name:`LaTeX`,import:(()=>q(()=>import(`./latex-BZoE-Z3X.js`),__vite__mapDeps([66,67,63,1])))},{id:`lean`,name:`Lean 4`,aliases:[`lean4`],import:(()=>q(()=>import(`./lean-CewbzKMR.js`),[]))},{id:`less`,name:`Less`,import:(()=>q(()=>import(`./less-DVTAwKKz.js`),[]))},{id:`liquid`,name:`Liquid`,import:(()=>q(()=>import(`./liquid-DW5UrT3Q.js`),__vite__mapDeps([68,3,1,4,2,10])))},{id:`llvm`,name:`LLVM IR`,import:(()=>q(()=>import(`./llvm-Cm23YOpf.js`),[]))},{id:`log`,name:`Log file`,import:(()=>q(()=>import(`./log-BNLmms1o.js`),[]))},{id:`logo`,name:`Logo`,import:(()=>q(()=>import(`./logo-Cluzi2Zq.js`),[]))},{id:`lua`,name:`Lua`,import:(()=>q(()=>import(`./lua-DMAjig-8.js`).then(e=>e.n),__vite__mapDeps([38,1,20])))},{id:`luau`,name:`Luau`,import:(()=>q(()=>import(`./luau-FMPmPwt6.js`),[]))},{id:`make`,name:`Makefile`,aliases:[`makefile`],import:(()=>q(()=>import(`./make-Dixweg8N.js`),[]))},{id:`markdown`,name:`Markdown`,aliases:[`md`],import:(()=>q(()=>import(`./markdown-BYOwaDjH.js`),[]))},{id:`marko`,name:`Marko`,import:(()=>q(()=>import(`./marko-EN2dMS-t.js`),__vite__mapDeps([69,4,1,6,12,70])))},{id:`matlab`,name:`MATLAB`,import:(()=>q(()=>import(`./matlab-D7qyCx1q.js`),[]))},{id:`mdc`,name:`MDC`,import:(()=>q(()=>import(`./mdc-DV5R0Zdp.js`),__vite__mapDeps([71,16,2,1,3,4,39,41])))},{id:`mdx`,name:`MDX`,import:(()=>q(()=>import(`./mdx-DQZ5AkYe.js`),[]))},{id:`mermaid`,name:`Mermaid`,aliases:[`mmd`],import:(()=>q(()=>import(`./mermaid-Bk4SNUv9.js`),[]))},{id:`mipsasm`,name:`MIPS Assembly`,aliases:[`mips`],import:(()=>q(()=>import(`./mipsasm-BMqwQI7S.js`),[]))},{id:`mojo`,name:`Mojo`,import:(()=>q(()=>import(`./mojo-BgCJLMeH.js`),[]))},{id:`moonbit`,name:`MoonBit`,aliases:[`mbt`,`mbti`],import:(()=>q(()=>import(`./moonbit-CaWjb8XO.js`),[]))},{id:`move`,name:`Move`,import:(()=>q(()=>import(`./move-B1IS1UjX.js`),[]))},{id:`narrat`,name:`Narrat Language`,aliases:[`nar`],import:(()=>q(()=>import(`./narrat-_X_XdTYD.js`),[]))},{id:`nextflow`,name:`Nextflow`,aliases:[`nf`],import:(()=>q(()=>import(`./nextflow-BJtWHP5T.js`),__vite__mapDeps([72,73])))},{id:`nextflow-groovy`,name:`Nextflow Groovy`,import:(()=>q(()=>import(`./nextflow-groovy-DJMQeKeT.js`),[]))},{id:`nginx`,name:`Nginx`,import:(()=>q(()=>import(`./nginx-BhF2pPjp.js`),__vite__mapDeps([74,38,1,20])))},{id:`nim`,name:`Nim`,import:(()=>q(()=>import(`./nim-Ck0oR8VY.js`),__vite__mapDeps([75,3,1,4,2,8,9,20,27,41])))},{id:`nix`,name:`Nix`,import:(()=>q(()=>import(`./nix-IvuFDN5E.js`),[]))},{id:`nushell`,name:`nushell`,aliases:[`nu`],import:(()=>q(()=>import(`./nushell-DcLAeLz5.js`),[]))},{id:`objective-c`,name:`Objective-C`,aliases:[`objc`],import:(()=>q(()=>import(`./objective-c-D1A_Heim.js`),[]))},{id:`objective-cpp`,name:`Objective-C++`,import:(()=>q(()=>import(`./objective-cpp-BsSzOQcm.js`),[]))},{id:`ocaml`,name:`OCaml`,import:(()=>q(()=>import(`./ocaml-O90oeIOV.js`),[]))},{id:`odin`,name:`Odin`,import:(()=>q(()=>import(`./odin-B1RWQWA5.js`),[]))},{id:`openscad`,name:`OpenSCAD`,aliases:[`scad`],import:(()=>q(()=>import(`./openscad-BUDT5pXO.js`),[]))},{id:`pascal`,name:`Pascal`,import:(()=>q(()=>import(`./pascal-4ZHwLPI5.js`),[]))},{id:`perl`,name:`Perl`,import:(()=>q(()=>import(`./perl-B4V1RSOt.js`),__vite__mapDeps([65,3,1,4,2,8,9,17])))},{id:`php`,name:`PHP`,import:(()=>q(()=>import(`./php-BvwSzqRH.js`),__vite__mapDeps([76,3,1,4,2,8,9,10,17])))},{id:`pkl`,name:`Pkl`,import:(()=>q(()=>import(`./pkl-ot-7Btpt.js`),[]))},{id:`plsql`,name:`PL/SQL`,import:(()=>q(()=>import(`./plsql-DGHpHOYJ.js`),[]))},{id:`po`,name:`Gettext PO`,aliases:[`pot`,`potx`],import:(()=>q(()=>import(`./po-BiJDBrnU.js`),[]))},{id:`polar`,name:`Polar`,import:(()=>q(()=>import(`./polar-C7UOKdEL.js`),[]))},{id:`postcss`,name:`PostCSS`,import:(()=>q(()=>import(`./postcss-BXeXVLqQ.js`),[]))},{id:`powerquery`,name:`PowerQuery`,import:(()=>q(()=>import(`./powerquery-DNMTfnFr.js`),[]))},{id:`powershell`,name:`PowerShell`,aliases:[`ps`,`ps1`],import:(()=>q(()=>import(`./powershell-DshXNtvi.js`),[]))},{id:`prisma`,name:`Prisma`,import:(()=>q(()=>import(`./prisma-BsRQq5mF.js`),[]))},{id:`prolog`,name:`Prolog`,import:(()=>q(()=>import(`./prolog-iXnhIJG7.js`),[]))},{id:`proto`,name:`Protocol Buffer 3`,aliases:[`protobuf`],import:(()=>q(()=>import(`./proto-DB4EqR-F.js`),[]))},{id:`pug`,name:`Pug`,aliases:[`jade`],import:(()=>q(()=>import(`./pug-DB3guzOM.js`),__vite__mapDeps([77,3,1,4,2])))},{id:`puppet`,name:`Puppet`,import:(()=>q(()=>import(`./puppet-CDv2pdJW.js`),[]))},{id:`purescript`,name:`PureScript`,import:(()=>q(()=>import(`./purescript-9MfHhQsQ.js`),[]))},{id:`python`,name:`Python`,aliases:[`py`],import:(()=>q(()=>import(`./python-gzcpVVnB.js`),[]))},{id:`qml`,name:`QML`,import:(()=>q(()=>import(`./qml-CohVRZGq.js`),__vite__mapDeps([78,3,1])))},{id:`qmldir`,name:`QML Directory`,import:(()=>q(()=>import(`./qmldir-DCQb3MpD.js`),[]))},{id:`qss`,name:`Qt Style Sheets`,import:(()=>q(()=>import(`./qss-Fe1Jh2GI.js`),[]))},{id:`r`,name:`R`,import:(()=>q(()=>import(`./r-Doi-hRR2.js`).then(e=>e.n),__vite__mapDeps([63,1])))},{id:`racket`,name:`Racket`,import:(()=>q(()=>import(`./racket-DcIDlBhZ.js`),[]))},{id:`raku`,name:`Raku`,aliases:[`perl6`],import:(()=>q(()=>import(`./raku-B3gFvitq.js`),[]))},{id:`razor`,name:`ASP.NET Razor`,import:(()=>q(()=>import(`./razor-CtBV-RZa.js`),__vite__mapDeps([79,2,1,3,4,80])))},{id:`reg`,name:`Windows Registry Script`,import:(()=>q(()=>import(`./reg-CRGYupPL.js`),[]))},{id:`regexp`,name:`RegExp`,aliases:[`regex`],import:(()=>q(()=>import(`./regexp-DgF6jh6T.js`).then(e=>e.n),__vite__mapDeps([26,1])))},{id:`rel`,name:`Rel`,import:(()=>q(()=>import(`./rel-BtDbiS_P.js`),[]))},{id:`riscv`,name:`RISC-V`,import:(()=>q(()=>import(`./riscv-Ckw8ddFX.js`),[]))},{id:`ron`,name:`RON`,import:(()=>q(()=>import(`./ron-VUp2lXgN.js`),[]))},{id:`rosmsg`,name:`ROS Interface`,import:(()=>q(()=>import(`./rosmsg-CAekHB0j.js`),[]))},{id:`rst`,name:`reStructuredText`,import:(()=>q(()=>import(`./rst-1GlNPFb8.js`),__vite__mapDeps([81,3,1,16,2,4,22,82,25,17,26,27,20,29,39,34,8,9,35,36,12,14,37,38])))},{id:`ruby`,name:`Ruby`,aliases:[`rb`],import:(()=>q(()=>import(`./ruby-C_Jg-W0j.js`),__vite__mapDeps([34,3,1,4,2,8,9,17,20,25,26,27,29,35,36,12,14,37,38,39])))},{id:`rust`,name:`Rust`,aliases:[`rs`],import:(()=>q(()=>import(`./rust-Cfkwpbl8.js`),[]))},{id:`sas`,name:`SAS`,import:(()=>q(()=>import(`./sas-IRPqQRQC.js`),__vite__mapDeps([83,17,1])))},{id:`sass`,name:`Sass`,import:(()=>q(()=>import(`./sass-DXrisJhu.js`),[]))},{id:`scala`,name:`Scala`,import:(()=>q(()=>import(`./scala-DKOlJaKm.js`),[]))},{id:`scheme`,name:`Scheme`,import:(()=>q(()=>import(`./scheme-DQCgrYNe.js`),[]))},{id:`scss`,name:`SCSS`,import:(()=>q(()=>import(`./scss-BPKDbfld.js`).then(e=>e.n),__vite__mapDeps([6,1,4])))},{id:`sdbl`,name:`1C (Query)`,aliases:[`1c-query`],import:(()=>q(()=>import(`./sdbl-bTVj8UrX.js`),[]))},{id:`shaderlab`,name:`ShaderLab`,aliases:[`shader`],import:(()=>q(()=>import(`./shaderlab-TOUzSsQk.js`),__vite__mapDeps([84,85])))},{id:`shellscript`,name:`Shell`,aliases:[`bash`,`sh`,`shell`,`zsh`],import:(()=>q(()=>import(`./shellscript-D5KbVhsx.js`).then(e=>e.n),__vite__mapDeps([29,1])))},{id:`shellsession`,name:`Shell Session`,aliases:[`console`],import:(()=>q(()=>import(`./shellsession-bEniUyPe.js`),__vite__mapDeps([86,29,1])))},{id:`smalltalk`,name:`Smalltalk`,import:(()=>q(()=>import(`./smalltalk-B16xEiuN.js`),[]))},{id:`solidity`,name:`Solidity`,import:(()=>q(()=>import(`./solidity-CKzVLygQ.js`),[]))},{id:`soy`,name:`Closure Templates`,aliases:[`closure-templates`],import:(()=>q(()=>import(`./soy-D0Pcy9LW.js`),__vite__mapDeps([87,2,1,3,4])))},{id:`sparql`,name:`SPARQL`,import:(()=>q(()=>import(`./sparql-D_iOobhT.js`),__vite__mapDeps([88,89])))},{id:`splunk`,name:`Splunk Query Language`,aliases:[`spl`],import:(()=>q(()=>import(`./splunk-BC2Px7Mm.js`),[]))},{id:`sql`,name:`SQL`,import:(()=>q(()=>import(`./sql-DF2TL966.js`).then(e=>e.n),__vite__mapDeps([17,1])))},{id:`ssh-config`,name:`SSH Config`,import:(()=>q(()=>import(`./ssh-config-BgfXC-Er.js`),[]))},{id:`stata`,name:`Stata`,import:(()=>q(()=>import(`./stata-BLI2BTCU.js`),__vite__mapDeps([90,17,1])))},{id:`stylus`,name:`Stylus`,aliases:[`styl`],import:(()=>q(()=>import(`./stylus-B6D30XZt.js`),[]))},{id:`surrealql`,name:`SurrealQL`,aliases:[`surql`],import:(()=>q(()=>import(`./surrealql-BjtO5tmi.js`),__vite__mapDeps([91,3,1])))},{id:`svelte`,name:`Svelte`,import:(()=>q(()=>import(`./svelte-IyvKNOcX.js`),__vite__mapDeps([92,3,1,4,12,13])))},{id:`swift`,name:`Swift`,import:(()=>q(()=>import(`./swift-DonLKvLd.js`),[]))},{id:`system-verilog`,name:`SystemVerilog`,import:(()=>q(()=>import(`./system-verilog-DJ5XKQeo.js`),[]))},{id:`systemd`,name:`Systemd Units`,import:(()=>q(()=>import(`./systemd-BxMlprV5.js`),[]))},{id:`talonscript`,name:`TalonScript`,aliases:[`talon`],import:(()=>q(()=>import(`./talonscript-CohzipZa.js`),[]))},{id:`tasl`,name:`Tasl`,import:(()=>q(()=>import(`./tasl-DMoTqEGO.js`),[]))},{id:`tcl`,name:`Tcl`,import:(()=>q(()=>import(`./tcl-CZd0xW_V.js`),[]))},{id:`templ`,name:`Templ`,import:(()=>q(()=>import(`./templ-qRJlnfHP.js`),__vite__mapDeps([93,3,1,4,94])))},{id:`terraform`,name:`Terraform`,aliases:[`tf`,`tfvars`],import:(()=>q(()=>import(`./terraform-DswuEJGm.js`),[]))},{id:`tex`,name:`TeX`,import:(()=>q(()=>import(`./tex-CgYv5ALc.js`),__vite__mapDeps([67,63,1])))},{id:`toml`,name:`TOML`,import:(()=>q(()=>import(`./toml-CcmNWLt0.js`),[]))},{id:`ts-tags`,name:`TypeScript with Tags`,aliases:[`lit`],import:(()=>q(()=>import(`./ts-tags-YasuuPCT.js`),__vite__mapDeps([95,3,1,4,2,8,9,12,17,27,20])))},{id:`tsv`,name:`TSV`,import:(()=>q(()=>import(`./tsv-sltzmVWM.js`),[]))},{id:`tsx`,name:`TSX`,import:(()=>q(()=>import(`./tsx-BF7eypTR.js`).then(e=>e.n),__vite__mapDeps([14,1])))},{id:`turtle`,name:`Turtle`,import:(()=>q(()=>import(`./turtle-ByJddavk.js`),[]))},{id:`twig`,name:`Twig`,import:(()=>q(()=>import(`./twig-BF-FIMTp.js`),__vite__mapDeps([96,3,1,4,6,22,34,2,8,9,17,20,25,26,27,29,35,36,12,14,37,38,39,76,10])))},{id:`typescript`,name:`TypeScript`,aliases:[`ts`,`cts`,`mts`],import:(()=>q(()=>import(`./typescript-CtOBCMI7.js`).then(e=>e.n),__vite__mapDeps([12,1])))},{id:`typespec`,name:`TypeSpec`,aliases:[`tsp`],import:(()=>q(()=>import(`./typespec-BRdr0IET.js`),[]))},{id:`typst`,name:`Typst`,aliases:[`typ`],import:(()=>q(()=>import(`./typst-DI99ib-x.js`),[]))},{id:`v`,name:`V`,import:(()=>q(()=>import(`./v-DETTlOr0.js`),[]))},{id:`vala`,name:`Vala`,import:(()=>q(()=>import(`./vala-zf12oZj6.js`),[]))},{id:`vb`,name:`Visual Basic`,aliases:[`cmd`],import:(()=>q(()=>import(`./vb-Djn5o6TS.js`),[]))},{id:`verilog`,name:`Verilog`,import:(()=>q(()=>import(`./verilog-CiiDBU1e.js`),[]))},{id:`vhdl`,name:`VHDL`,import:(()=>q(()=>import(`./vhdl-BroJfC0k.js`),[]))},{id:`viml`,name:`Vim Script`,aliases:[`vim`,`vimscript`],import:(()=>q(()=>import(`./viml-DvXPmvsu.js`),[]))},{id:`vue`,name:`Vue`,import:(()=>q(()=>import(`./vue-BTbCYZab.js`),__vite__mapDeps([97,3,1,4,2,10,12,16])))},{id:`vue-html`,name:`Vue HTML`,import:(()=>q(()=>import(`./vue-html-1KQNz6IV.js`),__vite__mapDeps([98,3,1])))},{id:`vue-vine`,name:`Vue Vine`,import:(()=>q(()=>import(`./vue-vine-BVHOJ5oI.js`),__vite__mapDeps([99,3,1,4,6,13,70,100])))},{id:`vyper`,name:`Vyper`,aliases:[`vy`],import:(()=>q(()=>import(`./vyper-CgoNMtux.js`),[]))},{id:`wasm`,name:`WebAssembly`,import:(()=>q(()=>import(`./wasm-ByWQv1Qj.js`),[]))},{id:`wenyan`,name:`Wenyan`,aliases:[`文言`],import:(()=>q(()=>import(`./wenyan-C8pVoKbM.js`),[]))},{id:`wgsl`,name:`WGSL`,import:(()=>q(()=>import(`./wgsl-BsKzXJz4.js`),[]))},{id:`wikitext`,name:`Wikitext`,aliases:[`mediawiki`,`wiki`],import:(()=>q(()=>import(`./wikitext-ClFFjSW2.js`),[]))},{id:`wit`,name:`WebAssembly Interface Types`,import:(()=>q(()=>import(`./wit-DdvCle-K.js`),[]))},{id:`wolfram`,name:`Wolfram`,aliases:[`wl`],import:(()=>q(()=>import(`./wolfram-DLL8P-h_.js`),[]))},{id:`xml`,name:`XML`,import:(()=>q(()=>import(`./xml-CftlzqvG.js`).then(e=>e.n),__vite__mapDeps([8,1,9])))},{id:`xsl`,name:`XSL`,import:(()=>q(()=>import(`./xsl-DoQ9dHRM.js`),__vite__mapDeps([101,8,1,9])))},{id:`yaml`,name:`YAML`,aliases:[`yml`],import:(()=>q(()=>import(`./yaml-DMUX1MAF.js`).then(e=>e.n),__vite__mapDeps([39,1])))},{id:`zenscript`,name:`ZenScript`,import:(()=>q(()=>import(`./zenscript-BnlCZFoB.js`),[]))},{id:`zig`,name:`Zig`,import:(()=>q(()=>import(`./zig-CMLA9XwU.js`),[]))}],rRe=Object.fromEntries(OG.map(e=>[e.id,e.import])),iRe=Object.fromEntries(OG.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),kG={...rRe,...iRe},aRe=Object.fromEntries([{id:`andromeeda`,displayName:`Andromeeda`,type:`dark`,import:(()=>q(()=>import(`./andromeeda-WkhI09AS.js`),[]))},{id:`aurora-x`,displayName:`Aurora X`,type:`dark`,import:(()=>q(()=>import(`./aurora-x-C7CFqhAd.js`),[]))},{id:`ayu-dark`,displayName:`Ayu Dark`,type:`dark`,import:(()=>q(()=>import(`./ayu-dark-CRu61w6_.js`),[]))},{id:`ayu-light`,displayName:`Ayu Light`,type:`light`,import:(()=>q(()=>import(`./ayu-light-Dn6O_aYR.js`),[]))},{id:`ayu-mirage`,displayName:`Ayu Mirage`,type:`dark`,import:(()=>q(()=>import(`./ayu-mirage-CTjYAbs-.js`),[]))},{id:`catppuccin-frappe`,displayName:`Catppuccin Frappé`,type:`dark`,import:(()=>q(()=>import(`./catppuccin-frappe-DFlFW5gh.js`),[]))},{id:`catppuccin-latte`,displayName:`Catppuccin Latte`,type:`light`,import:(()=>q(()=>import(`./catppuccin-latte-CpxdcXpJ.js`),[]))},{id:`catppuccin-macchiato`,displayName:`Catppuccin Macchiato`,type:`dark`,import:(()=>q(()=>import(`./catppuccin-macchiato-DIdIQ04K.js`),[]))},{id:`catppuccin-mocha`,displayName:`Catppuccin Mocha`,type:`dark`,import:(()=>q(()=>import(`./catppuccin-mocha-Co3Xjl64.js`),[]))},{id:`dark-plus`,displayName:`Dark Plus`,type:`dark`,import:(()=>q(()=>import(`./dark-plus-GAt2ZgX8.js`),[]))},{id:`dracula`,displayName:`Dracula Theme`,type:`dark`,import:(()=>q(()=>import(`./dracula-C2uKkzgK.js`),[]))},{id:`dracula-soft`,displayName:`Dracula Theme Soft`,type:`dark`,import:(()=>q(()=>import(`./dracula-soft-D1bVjxWZ.js`),[]))},{id:`everforest-dark`,displayName:`Everforest Dark`,type:`dark`,import:(()=>q(()=>import(`./everforest-dark-D-DlICQR.js`),[]))},{id:`everforest-light`,displayName:`Everforest Light`,type:`light`,import:(()=>q(()=>import(`./everforest-light-CeVdGHYG.js`),[]))},{id:`github-dark`,displayName:`GitHub Dark`,type:`dark`,import:(()=>q(()=>import(`./github-dark-DwbbXv51.js`),[]))},{id:`github-dark-default`,displayName:`GitHub Dark Default`,type:`dark`,import:(()=>q(()=>import(`./github-dark-default-CxjRwzl6.js`),[]))},{id:`github-dark-dimmed`,displayName:`GitHub Dark Dimmed`,type:`dark`,import:(()=>q(()=>import(`./github-dark-dimmed-Cr1oaoul.js`),[]))},{id:`github-dark-high-contrast`,displayName:`GitHub Dark High Contrast`,type:`dark`,import:(()=>q(()=>import(`./github-dark-high-contrast-B4qJZLZa.js`),[]))},{id:`github-light`,displayName:`GitHub Light`,type:`light`,import:(()=>q(()=>import(`./github-light-CsVXhIlR.js`),[]))},{id:`github-light-default`,displayName:`GitHub Light Default`,type:`light`,import:(()=>q(()=>import(`./github-light-default-DB_IwZa6.js`),[]))},{id:`github-light-high-contrast`,displayName:`GitHub Light High Contrast`,type:`light`,import:(()=>q(()=>import(`./github-light-high-contrast-DLgVeSB-.js`),[]))},{id:`gruvbox-dark-hard`,displayName:`Gruvbox Dark Hard`,type:`dark`,import:(()=>q(()=>import(`./gruvbox-dark-hard-DXm60lX3.js`),[]))},{id:`gruvbox-dark-medium`,displayName:`Gruvbox Dark Medium`,type:`dark`,import:(()=>q(()=>import(`./gruvbox-dark-medium-GE2thSmD.js`),[]))},{id:`gruvbox-dark-soft`,displayName:`Gruvbox Dark Soft`,type:`dark`,import:(()=>q(()=>import(`./gruvbox-dark-soft-04Cj-4VZ.js`),[]))},{id:`gruvbox-light-hard`,displayName:`Gruvbox Light Hard`,type:`light`,import:(()=>q(()=>import(`./gruvbox-light-hard-K6wSn29D.js`),[]))},{id:`gruvbox-light-medium`,displayName:`Gruvbox Light Medium`,type:`light`,import:(()=>q(()=>import(`./gruvbox-light-medium-CVy3aSlc.js`),[]))},{id:`gruvbox-light-soft`,displayName:`Gruvbox Light Soft`,type:`light`,import:(()=>q(()=>import(`./gruvbox-light-soft-DNgJjaY0.js`),[]))},{id:`horizon`,displayName:`Horizon`,type:`dark`,import:(()=>q(()=>import(`./horizon-0-RkHfro.js`),[]))},{id:`horizon-bright`,displayName:`Horizon Bright`,type:`light`,import:(()=>q(()=>import(`./horizon-bright-BgL2X9oq.js`),[]))},{id:`houston`,displayName:`Houston`,type:`dark`,import:(()=>q(()=>import(`./houston-KyjWKfuY.js`),[]))},{id:`kanagawa-dragon`,displayName:`Kanagawa Dragon`,type:`dark`,import:(()=>q(()=>import(`./kanagawa-dragon-7TqgsUPC.js`),[]))},{id:`kanagawa-lotus`,displayName:`Kanagawa Lotus`,type:`light`,import:(()=>q(()=>import(`./kanagawa-lotus-CqxMQulh.js`),[]))},{id:`kanagawa-wave`,displayName:`Kanagawa Wave`,type:`dark`,import:(()=>q(()=>import(`./kanagawa-wave-D8CNn6T_.js`),[]))},{id:`laserwave`,displayName:`LaserWave`,type:`dark`,import:(()=>q(()=>import(`./laserwave-CQkdhozh.js`),[]))},{id:`light-plus`,displayName:`Light Plus`,type:`light`,import:(()=>q(()=>import(`./light-plus-CNQ8_7Y0.js`),[]))},{id:`material-theme`,displayName:`Material Theme`,type:`dark`,import:(()=>q(()=>import(`./material-theme-CAtLaHa3.js`),[]))},{id:`material-theme-darker`,displayName:`Material Theme Darker`,type:`dark`,import:(()=>q(()=>import(`./material-theme-darker-k-s5Bc6K.js`),[]))},{id:`material-theme-lighter`,displayName:`Material Theme Lighter`,type:`light`,import:(()=>q(()=>import(`./material-theme-lighter-CD6a-c4d.js`),[]))},{id:`material-theme-ocean`,displayName:`Material Theme Ocean`,type:`dark`,import:(()=>q(()=>import(`./material-theme-ocean-B3mraInd.js`),[]))},{id:`material-theme-palenight`,displayName:`Material Theme Palenight`,type:`dark`,import:(()=>q(()=>import(`./material-theme-palenight-DEhAARHw.js`),[]))},{id:`min-dark`,displayName:`Min Dark`,type:`dark`,import:(()=>q(()=>import(`./min-dark-BFqTAwCr.js`),[]))},{id:`min-light`,displayName:`Min Light`,type:`light`,import:(()=>q(()=>import(`./min-light-O7UdaaxX.js`),[]))},{id:`monokai`,displayName:`Monokai`,type:`dark`,import:(()=>q(()=>import(`./monokai-C0p7Qecz.js`),[]))},{id:`night-owl`,displayName:`Night Owl`,type:`dark`,import:(()=>q(()=>import(`./night-owl-BsnCLAKc.js`),[]))},{id:`night-owl-light`,displayName:`Night Owl Light`,type:`light`,import:(()=>q(()=>import(`./night-owl-light-BODRhcTU.js`),[]))},{id:`nord`,displayName:`Nord`,type:`dark`,import:(()=>q(()=>import(`./nord-Cd-F4txO.js`),[]))},{id:`one-dark-pro`,displayName:`One Dark Pro`,type:`dark`,import:(()=>q(()=>import(`./one-dark-pro-DUS_IGRK.js`),[]))},{id:`one-light`,displayName:`One Light`,type:`light`,import:(()=>q(()=>import(`./one-light-CVUd7yD5.js`),[]))},{id:`plastic`,displayName:`Plastic`,type:`dark`,import:(()=>q(()=>import(`./plastic-CF8VZTnn.js`),[]))},{id:`poimandres`,displayName:`Poimandres`,type:`dark`,import:(()=>q(()=>import(`./poimandres-BX2TyY6j.js`),[]))},{id:`red`,displayName:`Red`,type:`dark`,import:(()=>q(()=>import(`./red-7ga_dcKu.js`),[]))},{id:`rose-pine`,displayName:`Rosé Pine`,type:`dark`,import:(()=>q(()=>import(`./rose-pine-rh6ipraJ.js`),[]))},{id:`rose-pine-dawn`,displayName:`Rosé Pine Dawn`,type:`light`,import:(()=>q(()=>import(`./rose-pine-dawn-DSuRaP6u.js`),[]))},{id:`rose-pine-moon`,displayName:`Rosé Pine Moon`,type:`dark`,import:(()=>q(()=>import(`./rose-pine-moon-DdHjCvFQ.js`),[]))},{id:`slack-dark`,displayName:`Slack Dark`,type:`dark`,import:(()=>q(()=>import(`./slack-dark-DYvUXyrP.js`),[]))},{id:`slack-ochin`,displayName:`Slack Ochin`,type:`light`,import:(()=>q(()=>import(`./slack-ochin-bqtMVDfH.js`),[]))},{id:`snazzy-light`,displayName:`Snazzy Light`,type:`light`,import:(()=>q(()=>import(`./snazzy-light-D8dzFmq5.js`),[]))},{id:`solarized-dark`,displayName:`Solarized Dark`,type:`dark`,import:(()=>q(()=>import(`./solarized-dark-BQwPDzxK.js`),[]))},{id:`solarized-light`,displayName:`Solarized Light`,type:`light`,import:(()=>q(()=>import(`./solarized-light-BLaijb3X.js`),[]))},{id:`synthwave-84`,displayName:`Synthwave '84`,type:`dark`,import:(()=>q(()=>import(`./synthwave-84-CIknw8y7.js`),[]))},{id:`tokyo-night`,displayName:`Tokyo Night`,type:`dark`,import:(()=>q(()=>import(`./tokyo-night-iIspnLcq.js`),[]))},{id:`vesper`,displayName:`Vesper`,type:`dark`,import:(()=>q(()=>import(`./vesper-BIFK_oDq.js`),[]))},{id:`vitesse-black`,displayName:`Vitesse Black`,type:`dark`,import:(()=>q(()=>import(`./vitesse-black-D082JcaE.js`),[]))},{id:`vitesse-dark`,displayName:`Vitesse Dark`,type:`dark`,import:(()=>q(()=>import(`./vitesse-dark-z-nr_5O8.js`),[]))},{id:`vitesse-light`,displayName:`Vitesse Light`,type:`light`,import:(()=>q(()=>import(`./vitesse-light-ojz42ZLy.js`),[]))}].map(e=>[e.id,e.import])),oRe=Mc({createOnigurumaEngine:()=>BG,getDefaultWasmLoader:()=>CRe,loadWasm:()=>LG,setDefaultWasmLoader:()=>SRe}),AG=class extends Error{constructor(e){super(e),this.name=`ShikiError`}};function sRe(){return 2147483648}function cRe(){return typeof performance<`u`?performance.now():Date.now()}var lRe=(e,t)=>e+(t-e%t)%t;async function uRe(e){let t,n,r={};function i(e){n=e,r.HEAPU8=new Uint8Array(e),r.HEAPU32=new Uint32Array(e)}function a(e,t,n){r.HEAPU8.copyWithin(e,t,t+n)}function o(e){try{return t.grow(e-n.byteLength+65535>>>16),i(t.buffer),1}catch{}}function s(e){let t=r.HEAPU8.length;e>>>=0;let n=sRe();if(e>n)return!1;for(let r=1;r<=4;r*=2){let i=t*(1+.2/r);if(i=Math.min(i,e+100663296),o(Math.min(n,lRe(Math.max(e,i),65536))))return!0}return!1}let c=typeof TextDecoder<`u`?new TextDecoder(`utf8`):void 0;function l(e,t,n=1024){let r=t+n,i=t;for(;e[i]&&!(i>=r);)++i;if(i-t>16&&e.buffer&&c)return c.decode(e.subarray(t,i));let a=``;for(;t<i;){let n=e[t++];if(!(n&128)){a+=String.fromCharCode(n);continue}let r=e[t++]&63;if((n&224)==192){a+=String.fromCharCode((n&31)<<6|r);continue}let i=e[t++]&63;if(n=(n&240)==224?(n&15)<<12|r<<6|i:(n&7)<<18|r<<12|i<<6|e[t++]&63,n<65536)a+=String.fromCharCode(n);else{let e=n-65536;a+=String.fromCharCode(55296|e>>10,56320|e&1023)}}return a}function u(e,t){return e?l(r.HEAPU8,e,t):``}let d={emscripten_get_now:cRe,emscripten_memcpy_big:a,emscripten_resize_heap:s,fd_write:()=>0};async function f(){let n=await e({env:d,wasi_snapshot_preview1:d});t=n.memory,i(t.buffer),Object.assign(r,n),r.UTF8ToString=u}return await f(),r}var dRe=Object.defineProperty,fRe=(e,t,n)=>t in e?dRe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,jG=(e,t,n)=>fRe(e,typeof t==`symbol`?t:t+``,n),MG=null;function pRe(e){throw new AG(e.UTF8ToString(e.getLastOnigError()))}var NG=class e{constructor(t){jG(this,`utf16Length`),jG(this,`utf8Length`),jG(this,`utf16Value`),jG(this,`utf8Value`),jG(this,`utf16OffsetToUtf8`),jG(this,`utf8OffsetToUtf16`);let n=t.length,r=e._utf8ByteLength(t),i=r!==n,a=i?new Uint32Array(n+1):null;i&&(a[n]=r);let o=i?new Uint32Array(r+1):null;i&&(o[r]=n);let s=new Uint8Array(r),c=0;for(let e=0;e<n;e++){let r=t.charCodeAt(e),l=r,u=!1;if(r>=55296&&r<=56319&&e+1<n){let n=t.charCodeAt(e+1);n>=56320&&n<=57343&&(l=(r-55296<<10)+65536|n-56320,u=!0)}i&&(a[e]=c,u&&(a[e+1]=c),l<=127?o[c+0]=e:l<=2047?(o[c+0]=e,o[c+1]=e):l<=65535?(o[c+0]=e,o[c+1]=e,o[c+2]=e):(o[c+0]=e,o[c+1]=e,o[c+2]=e,o[c+3]=e)),l<=127?s[c++]=l:l<=2047?(s[c++]=192|(l&1984)>>>6,s[c++]=128|(l&63)>>>0):l<=65535?(s[c++]=224|(l&61440)>>>12,s[c++]=128|(l&4032)>>>6,s[c++]=128|(l&63)>>>0):(s[c++]=240|(l&1835008)>>>18,s[c++]=128|(l&258048)>>>12,s[c++]=128|(l&4032)>>>6,s[c++]=128|(l&63)>>>0),u&&e++}this.utf16Length=n,this.utf8Length=r,this.utf16Value=t,this.utf8Value=s,this.utf16OffsetToUtf8=a,this.utf8OffsetToUtf16=o}static _utf8ByteLength(e){let t=0;for(let n=0,r=e.length;n<r;n++){let i=e.charCodeAt(n),a=i,o=!1;if(i>=55296&&i<=56319&&n+1<r){let t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(a=(i-55296<<10)+65536|t-56320,o=!0)}a<=127?t+=1:a<=2047?t+=2:a<=65535?t+=3:t+=4,o&&n++}return t}createString(e){let t=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}},PG=class e{constructor(t){if(jG(this,`id`,++e.LAST_ID),jG(this,`_onigBinding`),jG(this,`content`),jG(this,`utf16Length`),jG(this,`utf8Length`),jG(this,`utf16OffsetToUtf8`),jG(this,`utf8OffsetToUtf16`),jG(this,`ptr`),!MG)throw new AG(`Must invoke loadWasm first.`);this._onigBinding=MG,this.content=t;let n=new NG(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!e._sharedPtrInUse?(e._sharedPtr||=MG.omalloc(1e4),e._sharedPtrInUse=!0,MG.HEAPU8.set(n.utf8Value,e._sharedPtr),this.ptr=e._sharedPtr):this.ptr=n.createString(MG)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===e._sharedPtr?e._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};jG(PG,`LAST_ID`,0),jG(PG,`_sharedPtr`,0),jG(PG,`_sharedPtrInUse`,!1);var FG=PG,mRe=class{constructor(e){if(jG(this,`_onigBinding`),jG(this,`_ptr`),!MG)throw new AG(`Must invoke loadWasm first.`);let t=[],n=[];for(let r=0,i=e.length;r<i;r++){let i=new NG(e[r]);t[r]=i.createString(MG),n[r]=i.utf8Length}let r=MG.omalloc(4*e.length);MG.HEAPU32.set(t,r/4);let i=MG.omalloc(4*e.length);MG.HEAPU32.set(n,i/4);let a=MG.createOnigScanner(r,i,e.length);for(let n=0,r=e.length;n<r;n++)MG.ofree(t[n]);MG.ofree(i),MG.ofree(r),a===0&&pRe(MG),this._onigBinding=MG,this._ptr=a}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,t,n){let r=0;if(typeof n==`number`&&(r=n),typeof e==`string`){e=new FG(e);let n=this._findNextMatchSync(e,t,!1,r);return e.dispose(),n}return this._findNextMatchSync(e,t,!1,r)}_findNextMatchSync(e,t,n,r){let i=this._onigBinding,a=i.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),r);if(a===0)return null;let o=i.HEAPU32,s=a/4,c=o[s++],l=o[s++],u=[];for(let t=0;t<l;t++){let n=e.convertUtf8OffsetToUtf16(o[s++]),r=e.convertUtf8OffsetToUtf16(o[s++]);u[t]={start:n,end:r,length:r-n}}return{index:c,captureIndices:u}}};function hRe(e){return typeof e.instantiator==`function`}function gRe(e){return typeof e.default==`function`}function _Re(e){return e.data!==void 0}function vRe(e){return typeof Response<`u`&&e instanceof Response}function yRe(e){return typeof ArrayBuffer<`u`&&(e instanceof ArrayBuffer||ArrayBuffer.isView(e))||typeof Buffer<`u`&&Buffer.isBuffer?.(e)||typeof SharedArrayBuffer<`u`&&e instanceof SharedArrayBuffer||typeof Uint32Array<`u`&&e instanceof Uint32Array}var IG;function LG(e){if(IG)return IG;async function t(){MG=await uRe(async t=>{let n=e;return n=await n,typeof n==`function`&&(n=await n(t)),typeof n==`function`&&(n=await n(t)),hRe(n)?n=await n.instantiator(t):gRe(n)?n=await n.default(t):(_Re(n)&&(n=n.data),vRe(n)?n=typeof WebAssembly.instantiateStreaming==`function`?await bRe(n)(t):await xRe(n)(t):yRe(n)||n instanceof WebAssembly.Module?n=await RG(n)(t):`default`in n&&n.default instanceof WebAssembly.Module&&(n=await RG(n.default)(t))),`instance`in n&&(n=n.instance),`exports`in n&&(n=n.exports),n})}return IG=t(),IG}function RG(e){return t=>WebAssembly.instantiate(e,t)}function bRe(e){return t=>WebAssembly.instantiateStreaming(e,t)}function xRe(e){return async t=>{let n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}var zG;function SRe(e){zG=e}function CRe(){return zG}async function BG(e){return e&&await LG(e),{createScanner(e){return new mRe(e.map(e=>typeof e==`string`?e:e.source))},createString(e){return new FG(e)}}}var VG=tRe({});nRe(VG,oRe);var HG=class extends Error{constructor(e){super(e),this.name=`ShikiError`}};function wRe(e){return UG(e)}function UG(e){return Array.isArray(e)?TRe(e):e instanceof RegExp?e:typeof e==`object`?ERe(e):e}function TRe(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=UG(e[n]);return t}function ERe(e){let t={};for(let n in e)t[n]=UG(e[n]);return t}function WG(e,...t){return t.forEach(t=>{for(let n in t)e[n]=t[n]}),e}function GG(e){let t=~e.lastIndexOf(`/`)||~e.lastIndexOf(`\\`);return t===0?e:~t===e.length-1?GG(e.substring(0,e.length-1)):e.substr(~t+1)}var KG=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,qG=class{static hasCaptures(e){return e===null?!1:(KG.lastIndex=0,KG.test(e))}static replaceCaptures(e,t,n){return e.replace(KG,(e,r,i,a)=>{let o=n[parseInt(r||i,10)];if(o){let e=t.substring(o.start,o.end);for(;e[0]===`.`;)e=e.substring(1);switch(a){case`downcase`:return e.toLowerCase();case`upcase`:return e.toUpperCase();default:return e}}else return e})}};function JG(e,t){return e<t?-1:+(e>t)}function YG(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,r=t.length;if(n===r){for(let r=0;r<n;r++){let n=JG(e[r],t[r]);if(n!==0)return n}return 0}return n-r}function XG(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function ZG(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,`\\$&`)}var QG=class{constructor(e){this.fn=e}cache=new Map;get(e){if(this.cache.has(e))return this.cache.get(e);let t=this.fn(e);return this.cache.set(e,t),t}},$G=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(kRe(e),t)}static createFromParsedTheme(e,t){return jRe(e,t)}_cachedMatchRoot=new QG(e=>this._root.match(e));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;let t=e.scopeName,n=this._cachedMatchRoot.get(t).find(t=>DRe(e.parent,t.parentScopes));return n?new tK(n.fontStyle,n.foreground,n.background):null}},eK=class e{constructor(e,t){this.parent=e,this.scopeName=t}static push(t,n){for(let r of n)t=new e(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new e(n,t[r]);return n}push(t){return new e(this,t)}getSegments(){let e=this,t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(` `)}extends(e){return this===e?!0:this.parent===null?!1:this.parent.extends(e)}getExtensionIfDefined(e){let t=[],n=this;for(;n&&n!==e;)t.push(n.scopeName),n=n.parent;return n===e?t.reverse():void 0}};function DRe(e,t){if(t.length===0)return!0;for(let n=0;n<t.length;n++){let r=t[n],i=!1;if(r===`>`){if(n===t.length-1)return!1;r=t[++n],i=!0}for(;e&&!ORe(e.scopeName,r);){if(i)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function ORe(e,t){return t===e||e.startsWith(t)&&e[t.length]===`.`}var tK=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function kRe(e){if(!e||!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let e=0,i=t.length;e<i;e++){let i=t[e];if(!i.settings)continue;let a;if(typeof i.scope==`string`){let e=i.scope;e=e.replace(/^[,]+/,``),e=e.replace(/[,]+$/,``),a=e.split(`,`)}else a=Array.isArray(i.scope)?i.scope:[``];let o=-1;if(typeof i.settings.fontStyle==`string`){o=0;let e=i.settings.fontStyle.split(` `);for(let t=0,n=e.length;t<n;t++)switch(e[t]){case`italic`:o|=1;break;case`bold`:o|=2;break;case`underline`:o|=4;break;case`strikethrough`:o|=8;break}}let s=null;typeof i.settings.foreground==`string`&&XG(i.settings.foreground)&&(s=i.settings.foreground);let c=null;typeof i.settings.background==`string`&&XG(i.settings.background)&&(c=i.settings.background);for(let t=0,i=a.length;t<i;t++){let i=a[t].trim().split(` `),l=i[i.length-1],u=null;i.length>1&&(u=i.slice(0,i.length-1),u.reverse()),n[r++]=new ARe(l,u,e,o,s,c)}}return n}var ARe=class{constructor(e,t,n,r,i,a){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=r,this.foreground=i,this.background=a}},nK=(e=>(e[e.NotSet=-1]=`NotSet`,e[e.None=0]=`None`,e[e.Italic=1]=`Italic`,e[e.Bold=2]=`Bold`,e[e.Underline=4]=`Underline`,e[e.Strikethrough=8]=`Strikethrough`,e))(nK||{});function jRe(e,t){e.sort((e,t)=>{let n=JG(e.scope,t.scope);return n!==0||(n=YG(e.parentScopes,t.parentScopes),n!==0)?n:e.index-t.index});let n=0,r=`#000000`,i=`#ffffff`;for(;e.length>=1&&e[0].scope===``;){let t=e.shift();t.fontStyle!==-1&&(n=t.fontStyle),t.foreground!==null&&(r=t.foreground),t.background!==null&&(i=t.background)}let a=new MRe(t),o=new tK(n,a.getId(r),a.getId(i)),s=new PRe(new rK(0,null,-1,0,0),[]);for(let t=0,n=e.length;t<n;t++){let n=e[t];s.insert(0,n.scope,n.parentScopes,n.fontStyle,a.getId(n.foreground),a.getId(n.background))}return new $G(a,o,s)}var MRe=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(e===null)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},NRe=Object.freeze([]),rK=class e{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(e,t,n,r,i){this.scopeDepth=e,this.parentScopes=t||NRe,this.fontStyle=n,this.foreground=r,this.background=i}clone(){return new e(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=e[n].clone();return t}acceptOverwrite(e,t,n,r){this.scopeDepth>e?console.log(`how did this happen?`):this.scopeDepth=e,t!==-1&&(this.fontStyle=t),n!==0&&(this.foreground=n),r!==0&&(this.background=r)}},PRe=class e{constructor(e,t=[],n={}){this._mainRule=e,this._children=n,this._rulesWithParentScopes=t}_rulesWithParentScopes;static _cmpBySpecificity(e,t){if(e.scopeDepth!==t.scopeDepth)return t.scopeDepth-e.scopeDepth;let n=0,r=0;for(;e.parentScopes[n]===`>`&&n++,t.parentScopes[r]===`>`&&r++,!(n>=e.parentScopes.length||r>=t.parentScopes.length);){let i=t.parentScopes[r].length-e.parentScopes[n].length;if(i!==0)return i;n++,r++}return t.parentScopes.length-e.parentScopes.length}match(t){if(t!==``){let e=t.indexOf(`.`),n,r;if(e===-1?(n=t,r=``):(n=t.substring(0,e),r=t.substring(e+1)),this._children.hasOwnProperty(n))return this._children[n].match(r)}let n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(e._cmpBySpecificity),n}insert(t,n,r,i,a,o){if(n===``){this._doInsertHere(t,r,i,a,o);return}let s=n.indexOf(`.`),c,l;s===-1?(c=n,l=``):(c=n.substring(0,s),l=n.substring(s+1));let u;this._children.hasOwnProperty(c)?u=this._children[c]:(u=new e(this._mainRule.clone(),rK.cloneArr(this._rulesWithParentScopes)),this._children[c]=u),u.insert(t+1,l,r,i,a,o)}_doInsertHere(e,t,n,r,i){if(t===null){this._mainRule.acceptOverwrite(e,n,r,i);return}for(let a=0,o=this._rulesWithParentScopes.length;a<o;a++){let o=this._rulesWithParentScopes[a];if(YG(o.parentScopes,t)===0){o.acceptOverwrite(e,n,r,i);return}}n===-1&&(n=this._mainRule.fontStyle),r===0&&(r=this._mainRule.foreground),i===0&&(i=this._mainRule.background),this._rulesWithParentScopes.push(new rK(e,t,n,r,i))}},iK=class e{static toBinaryStr(e){return e.toString(2).padStart(32,`0`)}static print(t){let n=e.getLanguageId(t),r=e.getTokenType(t),i=e.getFontStyle(t),a=e.getForeground(t),o=e.getBackground(t);console.log({languageId:n,tokenType:r,fontStyle:i,foreground:a,background:o})}static getLanguageId(e){return(e&255)>>>0}static getTokenType(e){return(e&768)>>>8}static containsBalancedBrackets(e){return(e&1024)!=0}static getFontStyle(e){return(e&30720)>>>11}static getForeground(e){return(e&16744448)>>>15}static getBackground(e){return(e&4278190080)>>>24}static set(t,n,r,i,a,o,s){let c=e.getLanguageId(t),l=e.getTokenType(t),u=+!!e.containsBalancedBrackets(t),d=e.getFontStyle(t),f=e.getForeground(t),p=e.getBackground(t);return n!==0&&(c=n),r!==8&&(l=IRe(r)),i!==null&&(u=+!!i),a!==-1&&(d=a),o!==0&&(f=o),s!==0&&(p=s),(c<<0|l<<8|u<<10|d<<11|f<<15|p<<24)>>>0}};function FRe(e){return e}function IRe(e){return e}function aK(e,t){let n=[],r=LRe(e),i=r.next();for(;i!==null;){let e=0;if(i.length===2&&i.charAt(1)===`:`){switch(i.charAt(0)){case`R`:e=1;break;case`L`:e=-1;break;default:console.log(`Unknown priority ${i} in scope selector`)}i=r.next()}let t=o();if(n.push({matcher:t,priority:e}),i!==`,`)break;i=r.next()}return n;function a(){if(i===`-`){i=r.next();let e=a();return t=>!!e&&!e(t)}if(i===`(`){i=r.next();let e=s();return i===`)`&&(i=r.next()),e}if(oK(i)){let e=[];do e.push(i),i=r.next();while(oK(i));return n=>t(e,n)}return null}function o(){let e=[],t=a();for(;t;)e.push(t),t=a();return t=>e.every(e=>e(t))}function s(){let e=[],t=o();for(;t&&(e.push(t),i===`|`||i===`,`);){do i=r.next();while(i===`|`||i===`,`);t=o()}return t=>e.some(e=>e(t))}}function oK(e){return!!e&&!!e.match(/[\w\.:]+/)}function LRe(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;let r=n[0];return n=t.exec(e),r}}}function sK(e){typeof e.dispose==`function`&&e.dispose()}var cK=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},RRe=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},zRe=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(e){let t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},BRe=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new cK(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){let e=this.Q;this.Q=[];let t=new zRe;for(let n of e)VRe(n,this.initialScopeName,this.repo,t);for(let e of t.references)if(e instanceof cK){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName)||this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}};function VRe(e,t,n,r){let i=n.lookup(e.scopeName);if(!i){if(e.scopeName===t)throw Error(`No grammar provided for <${t}>`);return}let a=n.lookup(t);e instanceof cK?uK({baseGrammar:a,selfGrammar:i},r):lK(e.ruleName,{baseGrammar:a,selfGrammar:i,repository:i.repository},r);let o=n.injections(e.scopeName);if(o)for(let e of o)r.add(new cK(e))}function lK(e,t,n){if(t.repository&&t.repository[e]){let r=t.repository[e];dK([r],t,n)}}function uK(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&dK(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&dK(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function dK(e,t,n){for(let r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);let e=r.repository?WG({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&dK(r.patterns,{...t,repository:e},n);let i=r.include;if(!i)continue;let a=fK(i);switch(a.kind){case 0:uK({...t,selfGrammar:t.baseGrammar},n);break;case 1:uK(t,n);break;case 2:lK(a.ruleName,{...t,repository:e},n);break;case 3:case 4:let r=a.scopeName===t.selfGrammar.scopeName?t.selfGrammar:a.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(r){let i={baseGrammar:t.baseGrammar,selfGrammar:r,repository:e};a.kind===4?lK(a.ruleName,i,n):uK(i,n)}else a.kind===4?n.add(new RRe(a.scopeName,a.ruleName)):n.add(new cK(a.scopeName));break}}}var HRe=class{kind=0},URe=class{kind=1},WRe=class{constructor(e){this.ruleName=e}kind=2},GRe=class{constructor(e){this.scopeName=e}kind=3},KRe=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function fK(e){if(e===`$base`)return new HRe;if(e===`$self`)return new URe;let t=e.indexOf(`#`);return t===-1?new GRe(e):t===0?new WRe(e.substring(1)):new KRe(e.substring(0,t),e.substring(t+1))}var qRe=/\\(\d+)/,pK=/\\(\d+)/g,JRe=-1,mK=-2;function hK(e){return e}function gK(e){return e}var _K=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,n,r){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=qG.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=qG.hasCaptures(this._contentName)}get debugName(){let e=this.$location?`${GG(this.$location.filename)}:${this.$location.line}`:`unknown`;return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return!this._nameIsCapturing||this._name===null||e===null||t===null?this._name:qG.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:qG.replaceCaptures(this._contentName,e,t)}},YRe=class extends _K{retokenizeCapturedWithRuleId;constructor(e,t,n,r,i){super(e,t,n,r),this.retokenizeCapturedWithRuleId=i}dispose(){}collectPatterns(e,t){throw Error(`Not supported!`)}compile(e,t){throw Error(`Not supported!`)}compileAG(e,t,n,r){throw Error(`Not supported!`)}},XRe=class extends _K{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,null),this._match=new SK(r,this.id),this.captures=i,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new CK,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},vK=class extends _K{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,r),this.patterns=i.patterns,this.hasMissingPatterns=i.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null)}collectPatterns(e,t){for(let n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new CK,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},yK=class extends _K{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,i,a,o,s,c,l){super(e,t,n,r),this._begin=new SK(i,this.id),this.beginCaptures=a,this._end=new SK(o||``,-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=s,this.applyEndPatternLast=c||!1,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,r)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new CK;for(let t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},bK=class extends _K{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,n,r,i,a,o,s,c){super(e,t,n,r),this._begin=new SK(i,this.id),this.beginCaptures=a,this.whileCaptures=s,this._while=new SK(o,mK),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null),this._cachedCompiledWhilePatterns&&=(this._cachedCompiledWhilePatterns.dispose(),null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new CK;for(let t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,r){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,r)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new CK,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||``),this._cachedCompiledWhilePatterns}},xK=class e{static createCaptureRule(e,t,n,r,i){return e.registerRule(e=>new YRe(t,e,n,r,i))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(i=>{if(t.id=i,t.match)return new XRe(t.$vscodeTextmateLocation,t.id,t.name,t.match,e._compileCaptures(t.captures,n,r));if(t.begin===void 0){t.repository&&(r=WG({},r,t.repository));let i=t.patterns;return i===void 0&&t.include&&(i=[{include:t.include}]),new vK(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,e._compilePatterns(i,n,r))}return t.while?new bK(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,e._compileCaptures(t.whileCaptures||t.captures,n,r),e._compilePatterns(t.patterns,n,r)):new yK(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,e._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,e._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let i=[];if(t){let a=0;for(let e in t){if(e===`$vscodeTextmateLocation`)continue;let t=parseInt(e,10);t>a&&(a=t)}for(let e=0;e<=a;e++)i[e]=null;for(let a in t){if(a===`$vscodeTextmateLocation`)continue;let o=parseInt(a,10),s=0;t[a].patterns&&(s=e.getCompiledRuleId(t[a],n,r)),i[o]=e.createCaptureRule(n,t[a].$vscodeTextmateLocation,t[a].name,t[a].contentName,s)}}return i}static _compilePatterns(t,n,r){let i=[];if(t)for(let a=0,o=t.length;a<o;a++){let o=t[a],s=-1;if(o.include){let t=fK(o.include);switch(t.kind){case 0:case 1:s=e.getCompiledRuleId(r[o.include],n,r);break;case 2:let i=r[t.ruleName];i&&(s=e.getCompiledRuleId(i,n,r));break;case 3:case 4:let a=t.scopeName,c=t.kind===4?t.ruleName:null,l=n.getExternalGrammar(a,r);if(l)if(c){let t=l.repository[c];t&&(s=e.getCompiledRuleId(t,n,l.repository))}else s=e.getCompiledRuleId(l.repository.$self,n,l.repository);break}}else s=e.getCompiledRuleId(o,n,r);if(s!==-1){let e=n.getRule(s),t=!1;if((e instanceof vK||e instanceof yK||e instanceof bK)&&e.hasMissingPatterns&&e.patterns.length===0&&(t=!0),t)continue;i.push(s)}}return{patterns:i,hasMissingPatterns:(t?t.length:0)!==i.length}}},SK=class e{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(e,t){if(e&&typeof e==`string`){let t=e.length,n=0,r=[],i=!1;for(let a=0;a<t;a++)if(e.charAt(a)===`\\`&&a+1<t){let t=e.charAt(a+1);t===`z`?(r.push(e.substring(n,a)),r.push(`$(?!\\n)(?<!\\n)`),n=a+2):(t===`A`||t===`G`)&&(i=!0),a++}this.hasAnchor=i,n===0?this.source=e:(r.push(e.substring(n,t)),this.source=r.join(``))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,typeof this.source==`string`?this.hasBackReferences=qRe.test(this.source):this.hasBackReferences=!1}clone(){return new e(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){if(typeof this.source!=`string`)throw Error(`This method should only be called if the source is a string`);let n=t.map(t=>e.substring(t.start,t.end));return pK.lastIndex=0,this.source.replace(pK,(e,t)=>ZG(n[parseInt(t,10)]||``))}_buildAnchorCache(){if(typeof this.source!=`string`)throw Error(`This method should only be called if the source is a string`);let e=[],t=[],n=[],r=[],i,a,o,s;for(i=0,a=this.source.length;i<a;i++)o=this.source.charAt(i),e[i]=o,t[i]=o,n[i]=o,r[i]=o,o===`\\`&&i+1<a&&(s=this.source.charAt(i+1),s===`A`?(e[i+1]=``,t[i+1]=``,n[i+1]=`A`,r[i+1]=`A`):s===`G`?(e[i+1]=``,t[i+1]=`G`,n[i+1]=``,r[i+1]=`G`):(e[i+1]=s,t[i+1]=s,n[i+1]=s,r[i+1]=s),i++);return{A0_G0:e.join(``),A0_G1:t.join(``),A1_G0:n.join(``),A1_G1:r.join(``)}}resolveAnchors(e,t){return!this.hasAnchor||!this._anchorCache||typeof this.source!=`string`?this.source:e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},CK=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&=(this._cached.dispose(),null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(e=>e.source);this._cached=new wK(e,t,this._items.map(e=>e.ruleId))}return this._cached}compileAG(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,n){return new wK(e,this._items.map(e=>e.resolveAnchors(t,n)),this._items.map(e=>e.ruleId))}},wK=class{constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}scanner;dispose(){typeof this.scanner.dispose==`function`&&this.scanner.dispose()}toString(){let e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push(` - `+this.rules[t]+`: `+this.regExps[t]);return e.join(`
|
|
317
317
|
`)}findNextMatchSync(e,t,n){let r=this.scanner.findNextMatchSync(e,t,n);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}},TK=class{constructor(e,t){this.languageId=e,this.tokenType=t}},ZRe=class e{_defaultAttributes;_embeddedLanguagesMatcher;constructor(e,t){this._defaultAttributes=new TK(e,8),this._embeddedLanguagesMatcher=new QRe(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?e._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new TK(0,0);_getBasicScopeAttributes=new QG(e=>new TK(this._scopeToLanguage(e),this._toStandardTokenType(e)));_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(t){let n=t.match(e.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[1]){case`comment`:return 1;case`string`:return 2;case`regex`:return 3;case`meta.embedded`:return 0}throw Error(`Unexpected match for standard token type!`)}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},QRe=class{values;scopesRegExp;constructor(e){if(e.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);let t=e.map(([e,t])=>ZG(e));t.sort(),t.reverse(),this.scopesRegExp=RegExp(`^((${t.join(`)|(`)}))($|\\.)`,``)}}match(e){if(!this.scopesRegExp)return;let t=e.match(this.scopesRegExp);if(t)return this.values.get(t[1])}};typeof process<`u`&&{}.VSCODE_TEXTMATE_DEBUG;var EK=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function DK(e,t,n,r,i,a,o,s){let c=t.content.length,l=!1,u=-1;if(o){let o=$Re(e,t,n,r,i,a);i=o.stack,r=o.linePos,n=o.isFirstLine,u=o.anchorPosition}let d=Date.now();for(;!l;){if(s!==0&&Date.now()-d>s)return new EK(i,!0);f()}return new EK(i,!1);function f(){let o=eze(e,t,n,r,i,u);if(!o){a.produce(i,c),l=!0;return}let s=o.captureIndices,d=o.matchedRuleId,f=s&&s.length>0?s[0].end>r:!1;if(d===JRe){let o=i.getRule(e);a.produce(i,s[0].start),i=i.withContentNameScopesList(i.nameScopesList),kK(e,t,n,i,a,o.endCaptures,s),a.produce(i,s[0].end);let d=i;if(i=i.parent,u=d.getAnchorPos(),!f&&d.getEnterPos()===r){i=d,a.produce(i,c),l=!0;return}}else{let o=e.getRule(d);a.produce(i,s[0].start);let p=i,m=o.getName(t.content,s),h=i.contentNameScopesList.pushAttributed(m,e);if(i=i.push(d,r,u,s[0].end===c,null,h,h),o instanceof yK){let r=o;kK(e,t,n,i,a,r.beginCaptures,s),a.produce(i,s[0].end),u=s[0].end;let d=r.getContentName(t.content,s),m=h.pushAttributed(d,e);if(i=i.withContentNameScopesList(m),r.endHasBackReferences&&(i=i.withEndRule(r.getEndWithResolvedBackReferences(t.content,s))),!f&&p.hasSameRuleAs(i)){i=i.pop(),a.produce(i,c),l=!0;return}}else if(o instanceof bK){let r=o;kK(e,t,n,i,a,r.beginCaptures,s),a.produce(i,s[0].end),u=s[0].end;let d=r.getContentName(t.content,s),m=h.pushAttributed(d,e);if(i=i.withContentNameScopesList(m),r.whileHasBackReferences&&(i=i.withEndRule(r.getWhileWithResolvedBackReferences(t.content,s))),!f&&p.hasSameRuleAs(i)){i=i.pop(),a.produce(i,c),l=!0;return}}else if(kK(e,t,n,i,a,o.captures,s),a.produce(i,s[0].end),i=i.pop(),!f){i=i.safePop(),a.produce(i,c),l=!0;return}}s[0].end>r&&(r=s[0].end,n=!1)}}function $Re(e,t,n,r,i,a){let o=i.beginRuleCapturedEOL?0:-1,s=[];for(let t=i;t;t=t.pop()){let n=t.getRule(e);n instanceof bK&&s.push({rule:n,stack:t})}for(let c=s.pop();c;c=s.pop()){let{ruleScanner:s,findOptions:l}=rze(c.rule,e,c.stack.endRule,n,r===o),u=s.findNextMatchSync(t,r,l);if(u){if(u.ruleId!==mK){i=c.stack.pop();break}u.captureIndices&&u.captureIndices.length&&(a.produce(c.stack,u.captureIndices[0].start),kK(e,t,n,c.stack,a,c.rule.whileCaptures,u.captureIndices),a.produce(c.stack,u.captureIndices[0].end),o=u.captureIndices[0].end,u.captureIndices[0].end>r&&(r=u.captureIndices[0].end,n=!1))}else{i=c.stack.pop();break}}return{stack:i,linePos:r,anchorPosition:o,isFirstLine:n}}function eze(e,t,n,r,i,a){let o=tze(e,t,n,r,i,a),s=e.getInjections();if(s.length===0)return o;let c=nze(s,e,t,n,r,i,a);if(!c)return o;if(!o)return c;let l=o.captureIndices[0].start,u=c.captureIndices[0].start;return u<l||c.priorityMatch&&u===l?c:o}function tze(e,t,n,r,i,a){let{ruleScanner:o,findOptions:s}=OK(i.getRule(e),e,i.endRule,n,r===a),c=o.findNextMatchSync(t,r,s);return c?{captureIndices:c.captureIndices,matchedRuleId:c.ruleId}:null}function nze(e,t,n,r,i,a,o){let s=Number.MAX_VALUE,c=null,l,u=0,d=a.contentNameScopesList.getScopeNames();for(let a=0,f=e.length;a<f;a++){let f=e[a];if(!f.matcher(d))continue;let{ruleScanner:p,findOptions:m}=OK(t.getRule(f.ruleId),t,null,r,i===o),h=p.findNextMatchSync(n,i,m);if(!h)continue;let g=h.captureIndices[0].start;if(!(g>=s)&&(s=g,c=h.captureIndices,l=h.ruleId,u=f.priority,s===i))break}return c?{priorityMatch:u===-1,captureIndices:c,matchedRuleId:l}:null}function OK(e,t,n,r,i){return{ruleScanner:e.compileAG(t,n,r,i),findOptions:0}}function rze(e,t,n,r,i){return{ruleScanner:e.compileWhileAG(t,n,r,i),findOptions:0}}function kK(e,t,n,r,i,a,o){if(a.length===0)return;let s=t.content,c=Math.min(a.length,o.length),l=[],u=o[0].end;for(let t=0;t<c;t++){let c=a[t];if(c===null)continue;let d=o[t];if(d.length===0)continue;if(d.start>u)break;for(;l.length>0&&l[l.length-1].endPos<=d.start;)i.produceFromScopes(l[l.length-1].scopes,l[l.length-1].endPos),l.pop();if(l.length>0?i.produceFromScopes(l[l.length-1].scopes,d.start):i.produce(r,d.start),c.retokenizeCapturedWithRuleId){let t=c.getName(s,o),a=r.contentNameScopesList.pushAttributed(t,e),l=c.getContentName(s,o),u=a.pushAttributed(l,e),f=r.push(c.retokenizeCapturedWithRuleId,d.start,-1,!1,null,a,u),p=e.createOnigString(s.substring(0,d.end));DK(e,p,n&&d.start===0,d.start,f,i,!1,0),sK(p);continue}let f=c.getName(s,o);if(f!==null){let t=(l.length>0?l[l.length-1].scopes:r.contentNameScopesList).pushAttributed(f,e);l.push(new ize(t,d.end))}}for(;l.length>0;)i.produceFromScopes(l[l.length-1].scopes,l[l.length-1].endPos),l.pop()}var ize=class{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}};function aze(e,t,n,r,i,a,o,s){return new sze(e,t,n,r,i,a,o,s)}function AK(e,t,n,r,i){let a=aK(t,jK),o=xK.getCompiledRuleId(n,r,i.repository);for(let n of a)e.push({debugSelector:t,matcher:n.matcher,ruleId:o,grammar:i,priority:n.priority})}function jK(e,t){if(t.length<e.length)return!1;let n=0;return e.every(e=>{for(let r=n;r<t.length;r++)if(oze(t[r],e))return n=r+1,!0;return!1})}function oze(e,t){if(!e)return!1;if(e===t)return!0;let n=t.length;return e.length>n&&e.substr(0,n)===t&&e[n]===`.`}var sze=class{constructor(e,t,n,r,i,a,o,s){if(this._rootScopeName=e,this.balancedBracketSelectors=a,this._onigLib=s,this._basicScopeAttributesProvider=new ZRe(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=o,this._grammar=MK(t,null),this._injections=null,this._tokenTypeMatchers=[],i)for(let e of Object.keys(i)){let t=aK(e,jK);for(let n of t)this._tokenTypeMatchers.push({matcher:n.matcher,type:i[e]})}}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(let e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){let e={lookup:e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e),injections:e=>this._grammarRepository.injections(e)},t=[],n=this._rootScopeName,r=e.lookup(n);if(r){let e=r.injections;if(e)for(let n in e)AK(t,n,e[n],this,r);let i=this._grammarRepository.injections(n);i&&i.forEach(e=>{let n=this.getExternalGrammar(e);if(n){let e=n.injectionSelector;e&&AK(t,e,n,this,n)}})}return t.sort((e,t)=>e.priority-t.priority),t}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(e){let t=++this._lastRuleId,n=e(hK(t));return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[gK(e)]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){let n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=MK(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,n=0){let r=this._tokenize(e,t,!1,n);return{tokens:r.lineTokens.getResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}tokenizeLine2(e,t,n=0){let r=this._tokenize(e,t,!0,n);return{tokens:r.lineTokens.getBinaryResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}_tokenize(e,t,n,r){this._rootId===-1&&(this._rootId=xK.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let i;if(!t||t===PK.NULL){i=!0;let e=this._basicScopeAttributesProvider.getDefaultAttributes(),n=this.themeProvider.getDefaults(),r=iK.set(0,e.languageId,e.tokenType,null,n.fontStyle,n.foregroundId,n.backgroundId),a=this.getRule(this._rootId).getName(null,null),o;o=a?NK.createRootAndLookUpScopeName(a,r,this):NK.createRoot(`unknown`,r),t=new PK(null,this._rootId,-1,-1,!1,null,o,o)}else i=!1,t.reset();e+=`
|
|
318
318
|
`;let a=this.createOnigString(e),o=a.content.length,s=new lze(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),c=DK(this,a,i,0,t,s,!0,r);return sK(a),{lineLength:o,lineTokens:s,ruleStack:c.stack,stoppedEarly:c.stoppedEarly}}};function MK(e,t){return e=wRe(e),e.repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}var NK=class e{constructor(e,t,n){this.parent=e,this.scopePath=t,this.tokenAttributes=n}static fromExtension(t,n){let r=t,i=t?.scopePath??null;for(let t of n)i=eK.push(i,t.scopeNames),r=new e(r,i,t.encodedTokenAttributes);return r}static createRoot(t,n){return new e(null,new eK(null,t),n)}static createRootAndLookUpScopeName(t,n,r){let i=r.getMetadataForScope(t),a=new eK(null,t),o=r.themeProvider.themeMatch(a),s=e.mergeAttributes(n,i,o);return new e(null,a,s)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(` `)}equals(t){return e.equals(this,t)}static equals(e,t){do{if(e===t||!e&&!t)return!0;if(!e||!t||e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}while(!0)}static mergeAttributes(e,t,n){let r=-1,i=0,a=0;return n!==null&&(r=n.fontStyle,i=n.foregroundId,a=n.backgroundId),iK.set(e,t.languageId,t.tokenType,null,r,i,a)}pushAttributed(t,n){if(t===null)return this;if(t.indexOf(` `)===-1)return e._pushAttributed(this,t,n);let r=t.split(/ /g),i=this;for(let t of r)i=e._pushAttributed(i,t,n);return i}static _pushAttributed(t,n,r){let i=r.getMetadataForScope(n),a=t.scopePath.push(n),o=r.themeProvider.themeMatch(a),s=e.mergeAttributes(t.tokenAttributes,i,o);return new e(t,a,s)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){let t=[],n=this;for(;n&&n!==e;)t.push({encodedTokenAttributes:n.tokenAttributes,scopeNames:n.scopePath.getExtensionIfDefined(n.parent?.scopePath??null)}),n=n.parent;return n===e?t.reverse():void 0}},PK=class e{constructor(e,t,n,r,i,a,o,s){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=i,this.endRule=a,this.nameScopesList=o,this.contentNameScopesList=s,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=r}_stackElementBrand=void 0;static NULL=new e(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return t===null?!1:e._equals(this,t)}static _equals(e,t){return e===t?!0:this._structuralEquals(e,t)?NK.equals(e.contentNameScopesList,t.contentNameScopesList):!1}static _structuralEquals(e,t){do{if(e===t||!e&&!t)return!0;if(!e||!t||e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}while(!0)}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){e._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,i,a,o,s){return new e(this,t,n,r,i,a,o,s)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){let e=[];return this._writeString(e,0),`[`+e.join(`,`)+`]`}_writeString(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(t){return this.endRule===t?this:new e(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}toStateStackFrame(){return{ruleId:gK(this.ruleId),beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(t,n){let r=NK.fromExtension(t?.nameScopesList??null,n.nameScopesList);return new e(t,hK(n.ruleId),n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,NK.fromExtension(r,n.contentNameScopesList))}},cze=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(e=>e===`*`?(this.allowAny=!0,[]):aK(e,jK).map(e=>e.matcher)),this.unbalancedBracketScopes=t.flatMap(e=>aK(e,jK).map(e=>e.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(e){for(let t of this.unbalancedBracketScopes)if(t(e))return!1;for(let t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}},lze=class{constructor(e,t,n,r){this.balancedBracketSelectors=r,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let n=e?.tokenAttributes??0,r=!1;if(this.balancedBracketSelectors?.matchesAlways&&(r=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){let t=e?.getScopeNames()??[];for(let e of this._tokenTypeOverrides)e.matcher(t)&&(n=iK.set(n,0,FRe(e.type),null,-1,0,0));this.balancedBracketSelectors&&(r=this.balancedBracketSelectors.match(t))}if(r&&(n=iK.set(n,0,8,r,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===n){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(n),this._lastTokenEndIndex=t;return}let n=e?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:n}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);let n=new Uint32Array(this._binaryTokens.length);for(let e=0,t=this._binaryTokens.length;e<t;e++)n[e]=this._binaryTokens[e];return n}},uze=class{constructor(e,t){this._onigLib=t,this._theme=e}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(let e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,t,n,r,i){if(!this._grammars.has(e)){let a=this._rawGrammars.get(e);if(!a)return null;this._grammars.set(e,aze(e,a,t,n,r,i,this,this._onigLib))}return this._grammars.get(e)}},dze=class{_options;_syncRegistry;_ensureGrammarCache;constructor(e){this._options=e,this._syncRegistry=new uze($G.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme($G.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,n){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:n})}loadGrammarWithConfiguration(e,t,n){return this._loadGrammar(e,t,n.embeddedLanguages,n.tokenTypes,new cze(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,t,n,r,i){let a=new BRe(this._syncRegistry,e);for(;a.Q.length>0;)a.Q.map(e=>this._loadSingleGrammar(e.scopeName)),a.processQueue();return this._grammarForScopeName(e,t,n,r,i)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){let t=this._options.loadGrammar(e);if(t){let n=typeof this._options.getInjections==`function`?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,n)}}addGrammar(e,t=[],n=0,r=null){return this._syncRegistry.addGrammar(e,t),this._grammarForScopeName(e.scopeName,n,r)}_grammarForScopeName(e,t=0,n=null,r=null,i=null){return this._syncRegistry.grammarForScopeName(e,t,n,r,i)}},FK=PK.NULL;function IK(e,t){let n=typeof e==`string`?{}:{...e.colorReplacements},r=typeof e==`string`?e:e.name;for(let[e,i]of Object.entries(t?.colorReplacements||{}))typeof i==`string`?n[e]=i:e===r&&Object.assign(n,i);return n}function LK(e,t){return e&&(t?.[e?.toLowerCase()]||e)}function fze(e){return Array.isArray(e)?e:[e]}async function RK(e){return Promise.resolve(typeof e==`function`?e():e).then(e=>e.default||e)}function zK(e){return!e||[`plaintext`,`txt`,`text`,`plain`].includes(e)}function BK(e){return e===`ansi`||zK(e)}function VK(e){return e===`none`}function HK(e){return VK(e)}var pze=/(\r?\n)/g;function UK(e,t=!1){if(e.length===0)return[[``,0]];let n=e.split(pze),r=0,i=[];for(let e=0;e<n.length;e+=2){let a=t?n[e]+(n[e+1]||``):n[e];i.push([a,r]),r+=n[e].length,r+=n[e+1]?.length||0}return i}var WK={light:`#333333`,dark:`#bbbbbb`},GK={light:`#fffffe`,dark:`#1e1e1e`},KK=`__shiki_resolved`;function qK(e){if(e?.[KK])return e;let t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||=`dark`,t.colorReplacements={...t.colorReplacements},t.settings||=[];let{bg:n,fg:r}=t;if(!n||!r){let e=t.settings?t.settings.find(e=>!e.name&&!e.scope):void 0;e?.settings?.foreground&&(r=e.settings.foreground),e?.settings?.background&&(n=e.settings.background),!r&&t?.colors?.[`editor.foreground`]&&(r=t.colors[`editor.foreground`]),!n&&t?.colors?.[`editor.background`]&&(n=t.colors[`editor.background`]),r||=t.type===`light`?WK.light:WK.dark,n||=t.type===`light`?GK.light:GK.dark,t.fg=r,t.bg=n}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let i=0,a=new Map;function o(e){if(a.has(e))return a.get(e);i+=1;let n=`#${i.toString(16).padStart(8,`0`).toLowerCase()}`;return t.colorReplacements?.[`#${n}`]?o(e):(a.set(e,n),n)}t.settings=t.settings.map(e=>{let n=e.settings?.foreground&&!e.settings.foreground.startsWith(`#`),r=e.settings?.background&&!e.settings.background.startsWith(`#`);if(!n&&!r)return e;let i={...e,settings:{...e.settings}};if(n){let n=o(e.settings.foreground);t.colorReplacements[n]=e.settings.foreground,i.settings.foreground=n}if(r){let n=o(e.settings.background);t.colorReplacements[n]=e.settings.background,i.settings.background=n}return i});for(let e of Object.keys(t.colors||{}))if((e===`editor.foreground`||e===`editor.background`||e.startsWith(`terminal.ansi`))&&!t.colors[e]?.startsWith(`#`)){let n=o(t.colors[e]);t.colorReplacements[n]=t.colors[e],t.colors[e]=n}return Object.defineProperty(t,KK,{enumerable:!1,writable:!1,value:!0}),t}async function JK(e){return[...new Set((await Promise.all(e.filter(e=>!BK(e)).map(async e=>await RK(e).then(e=>Array.isArray(e)?e:[e])))).flat())]}async function YK(e){return(await Promise.all(e.map(async e=>HK(e)?null:qK(await RK(e))))).filter(e=>!!e)}function XK(e,t){if(!t)return e;if(t[e]){let n=new Set([e]);for(;t[e];){if(e=t[e],n.has(e))throw new HG(`Circular alias \`${[...n].join(` -> `)} -> ${e}\``);n.add(e)}}return e}var mze=class extends dze{_resolver;_themes;_langs;_alias;_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;constructor(e,t,n,r={}){super(e),this._resolver=e,this._themes=t,this._langs=n,this._alias=r,this._themes.map(e=>this.loadTheme(e)),this.loadLanguages(this._langs)}getTheme(e){return typeof e==`string`?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){let t=qK(e);return t.name&&(this._resolvedThemes.set(t.name,t),this._loadedThemesCache=null),t}getLoadedThemes(){return this._loadedThemesCache||=[...this._resolvedThemes.keys()],this._loadedThemesCache}setTheme(e){let t=this._textmateThemeCache.get(e);t||(t=$G.createFromRawTheme(e),this._textmateThemeCache.set(e,t)),this._syncRegistry.setTheme(t)}getGrammar(e){return e=XK(e,this._alias),this._resolvedGrammars.get(e)}loadLanguage(e){if(this.getGrammar(e.name))return;let t=new Set([...this._langMap.values()].filter(t=>t.embeddedLangsLazy?.includes(e.name)));this._resolver.addLanguage(e);let n={balancedBracketSelectors:e.balancedBracketSelectors||[`*`],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);let r=this.loadGrammarWithConfiguration(e.scopeName,1,n);if(r.name=e.name,this._resolvedGrammars.set(e.name,r),e.aliases&&e.aliases.forEach(t=>{this._alias[t]=e.name}),this._loadedLanguagesCache=null,t.size)for(let e of t)this._resolvedGrammars.delete(e.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(e.scopeName),this._syncRegistry?._grammars?.delete(e.scopeName),this.loadLanguage(this._langMap.get(e.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(e){for(let t of e)this.resolveEmbeddedLanguages(t);let t=[...this._langGraph.entries()],n=t.filter(([e,t])=>!t);if(n.length){let e=t.filter(([e,t])=>t?(t.embeddedLanguages||t.embeddedLangs)?.some(e=>n.map(([e])=>e).includes(e)):!1).filter(e=>!n.includes(e));throw new HG(`Missing languages ${n.map(([e])=>`\`${e}\``).join(`, `)}, required by ${e.map(([e])=>`\`${e}\``).join(`, `)}`)}for(let[e,n]of t)this._resolver.addLanguage(n);for(let[e,n]of t)this.loadLanguage(n)}getLoadedLanguages(){return this._loadedLanguagesCache||=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])],this._loadedLanguagesCache}resolveEmbeddedLanguages(e){this._langMap.set(e.name,e),this._langGraph.set(e.name,e);let t=e.embeddedLanguages??e.embeddedLangs;if(t)for(let e of t)this._langGraph.set(e,this._langMap.get(e))}},hze=class{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(e,t){this._onigLib={createOnigScanner:t=>e.createScanner(t),createOnigString:t=>e.createString(t)},t.forEach(e=>this.addLanguage(e))}get onigLib(){return this._onigLib}getLangRegistration(e){return this._langs.get(e)}loadGrammar(e){return this._scopeToLang.get(e)}addLanguage(e){this._langs.set(e.name,e),e.aliases&&e.aliases.forEach(t=>{this._langs.set(t,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(t=>{this._injections.get(t)||this._injections.set(t,[]),this._injections.get(t).push(e.scopeName)})}getInjections(e){let t=e.split(`.`),n=[];for(let e=1;e<=t.length;e++){let r=t.slice(0,e).join(`.`);n=[...n,...this._injections.get(r)||[]]}return n}},ZK=0;function gze(e){ZK+=1,e.warnings!==!1&&ZK>=10&&ZK%10==0&&console.warn(`[Shiki] ${ZK} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let t=!1;if(!e.engine)throw new HG("`engine` option is required for synchronous mode");let n=(e.langs||[]).flat(1),r=(e.themes||[]).flat(1).map(qK),i=new mze(new hze(e.engine,n),r,n,e.langAlias),a;function o(t){return XK(t,e.langAlias)}function s(e){g();let t=i.getGrammar(typeof e==`string`?e:e.name);if(!t)throw new HG(`Language \`${e}\` not found, you may need to load it first`);return t}function c(e){if(e===`none`)return{bg:``,fg:``,name:`none`,settings:[],type:`dark`};g();let t=i.getTheme(e);if(!t)throw new HG(`Theme \`${e}\` not found, you may need to load it first`);return t}function l(e){g();let t=c(e);return a!==e&&(i.setTheme(t),a=e),{theme:t,colorMap:i.getColorMap()}}function u(){return g(),i.getLoadedThemes()}function d(){return g(),i.getLoadedLanguages()}function f(...e){g(),i.loadLanguages(e.flat(1))}async function p(...e){return f(await JK(e))}function m(...e){g();for(let t of e.flat(1))i.loadTheme(t)}async function h(...e){return g(),m(await YK(e))}function g(){if(t)throw new HG(`Shiki instance has been disposed`)}function _(){t||(t=!0,i.dispose(),--ZK)}return{setTheme:l,getTheme:c,getLanguage:s,getLoadedThemes:u,getLoadedLanguages:d,resolveLangAlias:o,loadLanguage:p,loadLanguageSync:f,loadTheme:h,loadThemeSync:m,dispose:_,[Symbol.dispose]:_}}async function _ze(e){e.engine||console.warn("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");let[t,n,r]=await Promise.all([YK(e.themes||[]),JK(e.langs||[]),e.engine]);return gze({...e,themes:t,langs:n,engine:r})}var QK=new WeakMap;function $K(e,t){QK.set(e,t)}function eq(e){return QK.get(e)}var tq=class e{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(t,n){return new e(Object.fromEntries(fze(n).map(e=>[e,FK])),t)}constructor(...e){if(e.length===2){let[t,n]=e;this.lang=n,this._stacks=t}else{let[t,n,r]=e;this.lang=n,this._stacks={[r]:t}}}getInternalStack(e=this.theme){return this._stacks[e]}getScopes(e=this.theme){return vze(this._stacks[e])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}};function vze(e){let t=[],n=new Set;function r(e){if(n.has(e))return;n.add(e);let i=e?.nameScopesList?.scopeName;i&&t.push(i),e.parent&&r(e.parent)}return r(e),t}function yze(e,t){if(!(e instanceof tq))throw new HG(`Invalid grammar state`);return e.getInternalStack(t)}var bze=/,/,xze=/ /;function nq(e,t,n={}){let{theme:r=e.getLoadedThemes()[0]}=n;if(zK(e.resolveLangAlias(n.lang||`text`))||VK(r))return UK(t).map(e=>[{content:e[0],offset:e[1]}]);let{theme:i,colorMap:a}=e.setTheme(r),o=e.getLanguage(n.lang||`text`);if(n.grammarState){if(n.grammarState.lang!==o.name)throw new HG(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${o.name}"`);if(!n.grammarState.themes.includes(i.name))throw new HG(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${i.name}"`)}return Cze(t,o,i,a,n)}function Sze(...e){if(e.length===2)return eq(e[1]);let[t,n,r={}]=e,{lang:i=`text`,theme:a=t.getLoadedThemes()[0]}=r;if(zK(i)||VK(a))throw new HG(`Plain language does not have grammar state`);if(i===`ansi`)throw new HG(`ANSI language does not have grammar state`);let{theme:o,colorMap:s}=t.setTheme(a),c=t.getLanguage(i);return new tq(rq(n,c,o,s,r).stateStack,c.name,o.name)}function Cze(e,t,n,r,i){let a=rq(e,t,n,r,i),o=new tq(a.stateStack,t.name,n.name);return $K(a.tokens,o),a.tokens}function rq(e,t,n,r,i){let a=IK(n,i),{tokenizeMaxLineLength:o=0,tokenizeTimeLimit:s=500}=i,c=UK(e),l=i.grammarState?yze(i.grammarState,n.name)??FK:i.grammarContextCode==null?FK:rq(i.grammarContextCode,t,n,r,{...i,grammarState:void 0,grammarContextCode:void 0}).stateStack,u=[],d=[];for(let e=0,f=c.length;e<f;e++){let[f,p]=c[e];if(f===``){u=[],d.push([]);continue}if(o>0&&f.length>=o){u=[],d.push([{content:f,offset:p,color:``,fontStyle:0}]);continue}let m,h,g;i.includeExplanation&&(m=t.tokenizeLine(f,l,s),h=m.tokens,g=0);let _=t.tokenizeLine2(f,l,s),v=_.tokens.length/2;for(let e=0;e<v;e++){let t=_.tokens[2*e],o=e+1<v?_.tokens[2*e+2]:f.length;if(t===o)continue;let s=_.tokens[2*e+1],c=LK(r[iK.getForeground(s)],a),l=iK.getFontStyle(s),d={content:f.substring(t,o),offset:p+t,color:c,fontStyle:l};if(i.includeExplanation){let e=[];if(i.includeExplanation!==`scopeName`)for(let t of n.settings){let n;switch(typeof t.scope){case`string`:n=t.scope.split(bze).map(e=>e.trim());break;case`object`:n=t.scope;break;default:continue}e.push({settings:t,selectors:n.map(e=>e.split(xze))})}d.explanation=[];let r=0;for(;t+r<o;){let t=h[g],n=f.substring(t.startIndex,t.endIndex);r+=n.length,d.explanation.push({content:n,scopes:i.includeExplanation===`scopeName`?wze(t.scopes):Tze(e,t.scopes)}),g+=1}}u.push(d)}d.push(u),u=[],l=_.ruleStack}return{tokens:d,stateStack:l}}function wze(e){return e.map(e=>({scopeName:e}))}function Tze(e,t){let n=[];for(let r=0,i=t.length;r<i;r++){let i=t[r];n[r]={scopeName:i,themeMatches:Dze(e,i,t.slice(0,r))}}return n}function iq(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]===`.`}function Eze(e,t,n){if(!iq(e.at(-1),t))return!1;let r=e.length-2,i=n.length-1;for(;r>=0&&i>=0;)iq(e[r],n[i])&&--r,--i;return r===-1}function Dze(e,t,n){let r=[];for(let{selectors:i,settings:a}of e)for(let e of i)if(Eze(e,t,n)){r.push(a);break}return r}function aq(e,t,n,r=nq){let i=Object.entries(n.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})),a=i.map(i=>{let a=r(e,t,{...n,theme:i.theme});return{tokens:a,state:eq(a),theme:typeof i.theme==`string`?i.theme:i.theme.name}}),o=Oze(...a.map(e=>e.tokens)),s=o[0].map((e,t)=>e.map((e,r)=>{let a={content:e.content,variants:{},offset:e.offset};return`includeExplanation`in n&&n.includeExplanation&&(a.explanation=e.explanation),o.forEach((e,n)=>{let{content:o,explanation:s,offset:c,...l}=e[t][r];a.variants[i[n].color]=l}),a})),c=a[0].state?new tq(Object.fromEntries(a.map(e=>[e.theme,e.state?.getInternalStack(e.theme)])),a[0].state.lang):void 0;return c&&$K(s,c),s}function Oze(...e){let t=e.map(()=>[]),n=e.length;for(let r=0;r<e[0].length;r++){let i=e.map(e=>e[r]),a=t.map(()=>[]);t.forEach((e,t)=>e.push(a[t]));let o=i.map(()=>0),s=i.map(e=>e[0]);for(;s.every(e=>e);){let e=Math.min(...s.map(e=>e.content.length));for(let t=0;t<n;t++){let n=s[t];n.content.length===e?(a[t].push(n),o[t]+=1,s[t]=i[t][o[t]]):(a[t].push({...n,content:n.content.slice(0,e)}),s[t]={...n,content:n.content.slice(e),offset:n.offset+e})}}}return t}var oq=/\s+/g;function sq(e,t){if(!t)return e;e.properties||={},e.properties.class||=[],typeof e.properties.class==`string`&&(e.properties.class=e.properties.class.split(oq)),Array.isArray(e.properties.class)||(e.properties.class=[]);let n=Array.isArray(t)?t:t.split(oq);for(let t of n)t&&!e.properties.class.includes(t)&&e.properties.class.push(t);return e}var kze=/:?lang=["']([^"']+)["']/g,Aze=/(?:```|~~~)([\w-]+)/g,jze=/\\begin\{([\w-]+)\}/g,Mze=/<script\s+(?:type|lang)=["']([^"']+)["']/gi;function Nze(e){let t=UK(e,!0).map(([e])=>e);function n(n){if(n===e.length)return{line:t.length-1,character:t.at(-1).length};let r=n,i=0;for(let e of t){if(r<e.length)break;r-=e.length,i++}return{line:i,character:r}}function r(e,n){let r=0;for(let n=0;n<e;n++)r+=t[n].length;return r+=n,r}return{lines:t,indexToPos:n,posToIndex:r}}function Pze(e,t,n){let r=new Set;for(let t of e.matchAll(kze)){let e=t[1].toLowerCase().trim();e&&r.add(e)}for(let t of e.matchAll(Aze)){let e=t[1].toLowerCase().trim();e&&r.add(e)}for(let t of e.matchAll(jze)){let e=t[1].toLowerCase().trim();e&&r.add(e)}for(let t of e.matchAll(Mze)){let e=t[1].toLowerCase().trim(),n=e.includes(`/`)?e.split(`/`).pop():e;n&&r.add(n)}if(!n)return[...r];let i=n.getBundledLanguages();return[...r].filter(e=>e&&i[e])}var Fze=[`color`,`background-color`];function Ize(e,t){let n=0,r=[];for(let i of t)i>n&&r.push({...e,content:e.content.slice(n,i),offset:e.offset+n}),n=i;return n<e.content.length&&r.push({...e,content:e.content.slice(n),offset:e.offset+n}),r}function Lze(e,t){let n=[...t instanceof Set?t:new Set(t)].sort((e,t)=>e-t);return n.length?e.map(e=>e.flatMap(e=>{let t=n.filter(t=>e.offset<t&&t<e.offset+e.content.length).map(t=>t-e.offset).sort((e,t)=>e-t);return t.length?Ize(e,t):e})):e}function Rze(e,t,n,r,i=`css-vars`){let a={content:e.content,explanation:e.explanation,offset:e.offset},o=t.map(t=>cq(e.variants[t])),s=new Set(o.flatMap(e=>Object.keys(e))),c={},l=(e,r)=>{let i=r===`color`?``:r===`background-color`?`-bg`:`-${r}`;return n+t[e]+(r===`color`?``:i)};return o.forEach((e,n)=>{for(let a of s){let s=e[a]||`inherit`;if(n===0&&r&&Fze.includes(a))if(r===`light-dark()`&&o.length>1){let e=t.findIndex(e=>e===`light`),r=t.findIndex(e=>e===`dark`);if(e===-1||r===-1)throw new HG('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');c[a]=`light-dark(${o[e][a]||`inherit`}, ${o[r][a]||`inherit`})`,i===`css-vars`&&(c[l(n,a)]=s)}else c[a]=s;else i===`css-vars`&&(c[l(n,a)]=s)}}),a.htmlStyle=c,a}function cq(e){let t={};if(e.color&&(t.color=e.color),e.bgColor&&(t[`background-color`]=e.bgColor),e.fontStyle){e.fontStyle&nK.Italic&&(t[`font-style`]=`italic`),e.fontStyle&nK.Bold&&(t[`font-weight`]=`bold`);let n=[];e.fontStyle&nK.Underline&&n.push(`underline`),e.fontStyle&nK.Strikethrough&&n.push(`line-through`),n.length&&(t[`text-decoration`]=n.join(` `))}return t}function lq(e){return typeof e==`string`?e:Object.entries(e).map(([e,t])=>`${e}:${t}`).join(`;`)}function zze(){let e=new WeakMap;function t(t){if(!e.has(t.meta)){let n=Nze(t.source);function r(e){if(typeof e==`number`){if(e<0||e>t.source.length)throw new HG(`Invalid decoration offset: ${e}. Code length: ${t.source.length}`);return{...n.indexToPos(e),offset:e}}else{let t=n.lines[e.line];if(t===void 0)throw new HG(`Invalid decoration position ${JSON.stringify(e)}. Lines length: ${n.lines.length}`);let r=e.character;if(r<0&&(r=t.length+r),r<0||r>t.length)throw new HG(`Invalid decoration position ${JSON.stringify(e)}. Line ${e.line} length: ${t.length}`);return{...e,character:r,offset:n.posToIndex(e.line,r)}}}let i=(t.options.decorations||[]).map(e=>({...e,start:r(e.start),end:r(e.end)}));Bze(i),e.set(t.meta,{decorations:i,converter:n,source:t.source})}return e.get(t.meta)}return{name:`shiki:decorations`,tokens(e){if(this.options.decorations?.length)return Lze(e,t(this).decorations.flatMap(e=>[e.start.offset,e.end.offset]))},code(e){if(!this.options.decorations?.length)return;let n=t(this),r=[...e.children].filter(e=>e.type===`element`&&e.tagName===`span`);if(r.length!==n.converter.lines.length)throw new HG(`Number of lines in code element (${r.length}) does not match the number of lines in the source (${n.converter.lines.length}). Failed to apply decorations.`);function i(e,t,n,i){let a=r[e],s=``,c=-1,l=-1;if(t===0&&(c=0),n===0&&(l=0),n===1/0&&(l=a.children.length),c===-1||l===-1)for(let e=0;e<a.children.length;e++)s+=uq(a.children[e]),c===-1&&s.length===t&&(c=e+1),l===-1&&s.length===n&&(l=e+1);if(c===-1)throw new HG(`Failed to find start index for decoration ${JSON.stringify(i.start)}`);if(l===-1)throw new HG(`Failed to find end index for decoration ${JSON.stringify(i.end)}`);let u=a.children.slice(c,l);if(!i.alwaysWrap&&u.length===a.children.length)o(a,i,`line`);else if(!i.alwaysWrap&&u.length===1&&u[0].type===`element`)o(u[0],i,`token`);else{let e={type:`element`,tagName:`span`,properties:{},children:u};o(e,i,`wrapper`),a.children.splice(c,u.length,e)}}function a(e,t){r[e]=o(r[e],t,`line`)}function o(e,t,n){let r=t.properties||{},i=t.transform||(e=>e);return e.tagName=t.tagName||`span`,e.properties={...e.properties,...r,class:e.properties.class},t.properties?.class&&sq(e,t.properties.class),e=i(e,n)||e,e}let s=[],c=n.decorations.sort((e,t)=>t.start.offset-e.start.offset||e.end.offset-t.end.offset);for(let e of c){let{start:t,end:n}=e;if(t.line===n.line)i(t.line,t.character,n.character,e);else if(t.line<n.line){i(t.line,t.character,1/0,e);for(let r=t.line+1;r<n.line;r++)s.unshift(()=>a(r,e));i(n.line,0,n.character,e)}}s.forEach(e=>e())}}}function Bze(e){for(let t=0;t<e.length;t++){let n=e[t];if(n.start.offset>n.end.offset)throw new HG(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let r=t+1;r<e.length;r++){let t=e[r],i=n.start.offset<=t.start.offset&&t.start.offset<n.end.offset,a=n.start.offset<t.end.offset&&t.end.offset<=n.end.offset,o=t.start.offset<=n.start.offset&&n.start.offset<t.end.offset,s=t.start.offset<n.end.offset&&n.end.offset<=t.end.offset;if(i||a||o||s){if(i&&a||o&&s||o&&n.start.offset===n.end.offset||a&&t.start.offset===t.end.offset)continue;throw new HG(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(t.start)} intersect.`)}}}}function uq(e){return e.type===`text`?e.value:e.type===`element`?e.children.map(uq).join(``):``}var Vze=[zze()];function dq(e){let t=Hze(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...Vze]}function Hze(e){let t=[],n=[],r=[];for(let i of e)switch(i.enforce){case`pre`:t.push(i);break;case`post`:n.push(i);break;default:r.push(i)}return{pre:t,post:n,normal:r}}var fq=[`black`,`red`,`green`,`yellow`,`blue`,`magenta`,`cyan`,`white`,`brightBlack`,`brightRed`,`brightGreen`,`brightYellow`,`brightBlue`,`brightMagenta`,`brightCyan`,`brightWhite`],pq={1:`bold`,2:`dim`,3:`italic`,4:`underline`,7:`reverse`,8:`hidden`,9:`strikethrough`};function Uze(e,t){let n=e.indexOf(`\x1B`,t);if(n!==-1&&e[n+1]===`[`){let t=e.indexOf(`m`,n);if(t!==-1)return{sequence:e.substring(n+2,t).split(`;`),startPosition:n,position:t+1}}return{position:e.length}}function mq(e){let t=e.shift();if(t===`2`){let t=e.splice(0,3).map(e=>Number.parseInt(e));return t.length!==3||t.some(e=>Number.isNaN(e))?void 0:{type:`rgb`,rgb:t}}else if(t===`5`){let t=e.shift();if(t)return{type:`table`,index:Number(t)}}}function Wze(e){let t=[];for(;e.length>0;){let n=e.shift();if(!n)continue;let r=Number.parseInt(n);if(!Number.isNaN(r))if(r===0)t.push({type:`resetAll`});else if(r<=9)pq[r]&&t.push({type:`setDecoration`,value:pq[r]});else if(r<=29){let e=pq[r-20];e&&(t.push({type:`resetDecoration`,value:e}),e===`dim`&&t.push({type:`resetDecoration`,value:`bold`}))}else if(r<=37)t.push({type:`setForegroundColor`,value:{type:`named`,name:fq[r-30]}});else if(r===38){let n=mq(e);n&&t.push({type:`setForegroundColor`,value:n})}else if(r===39)t.push({type:`resetForegroundColor`});else if(r<=47)t.push({type:`setBackgroundColor`,value:{type:`named`,name:fq[r-40]}});else if(r===48){let n=mq(e);n&&t.push({type:`setBackgroundColor`,value:n})}else r===49?t.push({type:`resetBackgroundColor`}):r===53?t.push({type:`setDecoration`,value:`overline`}):r===55?t.push({type:`resetDecoration`,value:`overline`}):r>=90&&r<=97?t.push({type:`setForegroundColor`,value:{type:`named`,name:fq[r-90+8]}}):r>=100&&r<=107&&t.push({type:`setBackgroundColor`,value:{type:`named`,name:fq[r-100+8]}})}return t}function Gze(){let e=null,t=null,n=new Set;return{parse(r){let i=[],a=0;do{let o=Uze(r,a),s=o.sequence?r.substring(a,o.startPosition):r.substring(a);if(s.length>0&&i.push({value:s,foreground:e,background:t,decorations:new Set(n)}),o.sequence){let r=Wze(o.sequence);for(let i of r)i.type===`resetAll`?(e=null,t=null,n.clear()):i.type===`resetForegroundColor`?e=null:i.type===`resetBackgroundColor`?t=null:i.type===`resetDecoration`&&n.delete(i.value);for(let i of r)i.type===`setForegroundColor`?e=i.value:i.type===`setBackgroundColor`?t=i.value:i.type===`setDecoration`&&n.add(i.value)}a=o.position}while(a<r.length);return i}}}var Kze={black:`#000000`,red:`#bb0000`,green:`#00bb00`,yellow:`#bbbb00`,blue:`#0000bb`,magenta:`#ff00ff`,cyan:`#00bbbb`,white:`#eeeeee`,brightBlack:`#555555`,brightRed:`#ff5555`,brightGreen:`#00ff00`,brightYellow:`#ffff55`,brightBlue:`#5555ff`,brightMagenta:`#ff55ff`,brightCyan:`#55ffff`,brightWhite:`#ffffff`};function qze(e=Kze){function t(t){return e[t]}function n(e){return`#${e.map(e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,`0`)).join(``)}`}let r;function i(){if(r)return r;r=[];for(let e=0;e<fq.length;e++)r.push(t(fq[e]));let e=[0,95,135,175,215,255];for(let t=0;t<6;t++)for(let i=0;i<6;i++)for(let a=0;a<6;a++)r.push(n([e[t],e[i],e[a]]));let i=8;for(let e=0;e<24;e++,i+=10)r.push(n([i,i,i]));return r}function a(e){return i()[e]}function o(e){switch(e.type){case`named`:return t(e.name);case`rgb`:return n(e.rgb);case`table`:return a(e.index)}}return{value:o}}var Jze=/#([0-9a-f]{3,8})/i,Yze=/var\((--[\w-]+-ansi-[\w-]+)\)/,Xze={black:`#000000`,red:`#cd3131`,green:`#0DBC79`,yellow:`#E5E510`,blue:`#2472C8`,magenta:`#BC3FBC`,cyan:`#11A8CD`,white:`#E5E5E5`,brightBlack:`#666666`,brightRed:`#F14C4C`,brightGreen:`#23D18B`,brightYellow:`#F5F543`,brightBlue:`#3B8EEA`,brightMagenta:`#D670D6`,brightCyan:`#29B8DB`,brightWhite:`#FFFFFF`};function Zze(e,t,n){let r=IK(e,n),i=UK(t),a=qze(Object.fromEntries(fq.map(t=>{let n=`terminal.ansi${t[0].toUpperCase()}${t.substring(1)}`;return[t,e.colors?.[n]||Xze[t]]}))),o=Gze();return i.map(t=>o.parse(t[0]).map(n=>{let i,o;n.decorations.has(`reverse`)?(i=n.background?a.value(n.background):e.bg,o=n.foreground?a.value(n.foreground):e.fg):(i=n.foreground?a.value(n.foreground):e.fg,o=n.background?a.value(n.background):void 0),i=LK(i,r),o=LK(o,r),n.decorations.has(`dim`)&&(i=Qze(i));let s=nK.None;return n.decorations.has(`bold`)&&(s|=nK.Bold),n.decorations.has(`italic`)&&(s|=nK.Italic),n.decorations.has(`underline`)&&(s|=nK.Underline),n.decorations.has(`strikethrough`)&&(s|=nK.Strikethrough),{content:n.value,offset:t[1],color:i,bgColor:o,fontStyle:s}}))}function Qze(e){let t=e.match(Jze);if(t){let e=t[1];if(e.length===8){let t=Math.round(Number.parseInt(e.slice(6,8),16)/2).toString(16).padStart(2,`0`);return`#${e.slice(0,6)}${t}`}else if(e.length===6)return`#${e}80`;else if(e.length===4){let t=e[0],n=e[1],r=e[2],i=e[3];return`#${t}${t}${n}${n}${r}${r}${Math.round(Number.parseInt(`${i}${i}`,16)/2).toString(16).padStart(2,`0`)}`}else if(e.length===3){let t=e[0],n=e[1],r=e[2];return`#${t}${t}${n}${n}${r}${r}80`}}let n=e.match(Yze);return n?`var(${n[1]}-dim)`:e}function hq(e,t,n={}){let r=e.resolveLangAlias(n.lang||`text`),{theme:i=e.getLoadedThemes()[0]}=n;if(!zK(r)&&!VK(i)&&r===`ansi`){let{theme:r}=e.setTheme(i);return Zze(r,t,n)}return nq(e,t,n)}function gq(e,t,n){let r,i,a,o,s,c;if(`themes`in n){let{defaultColor:l=`light`,cssVariablePrefix:u=`--shiki-`,colorsRendering:d=`css-vars`}=n,f=Object.entries(n.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})).sort((e,t)=>e.color===l?-1:+(t.color===l));if(f.length===0)throw new HG("`themes` option must not be empty");let p=aq(e,t,n,hq);if(c=eq(p),l&&l!==`light-dark()`&&!f.some(e=>e.color===l))throw new HG(`\`themes\` option must contain the defaultColor key \`${l}\``);let m=f.map(t=>e.getTheme(t.theme)),h=f.map(e=>e.color);a=p.map(e=>e.map(e=>Rze(e,h,u,l,d))),c&&$K(a,c);let g=f.map(e=>IK(e.theme,n));i=_q(f,m,g,u,l,`fg`,d),r=_q(f,m,g,u,l,`bg`,d),o=`shiki-themes ${m.map(e=>e.name).join(` `)}`,s=l?void 0:[i,r].join(`;`)}else if(`theme`in n){let s=IK(n.theme,n);a=hq(e,t,n);let l=e.getTheme(n.theme);r=LK(l.bg,s),i=LK(l.fg,s),o=l.name,c=eq(a)}else throw new HG("Invalid options, either `theme` or `themes` must be provided");return{tokens:a,fg:i,bg:r,themeName:o,rootStyle:s,grammarState:c}}function _q(e,t,n,r,i,a,o){return e.map((s,c)=>{let l=LK(t[c][a],n[c])||`inherit`,u=`${r+s.color}${a===`bg`?`-bg`:``}:${l}`;if(c===0&&i){if(i===`light-dark()`&&e.length>1){let r=e.findIndex(e=>e.color===`light`),i=e.findIndex(e=>e.color===`dark`);if(r===-1||i===-1)throw new HG('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');return`light-dark(${LK(t[r][a],n[r])||`inherit`}, ${LK(t[i][a],n[i])||`inherit`});${u}`}return l}return o===`css-vars`?u:null}).filter(e=>!!e).join(`;`)}var vq=/^\s+$/,$ze=/^(\s*)(.*?)(\s*)$/;function yq(e,t,n,r={meta:{},options:n,codeToHast:(t,n)=>yq(e,t,n),codeToTokens:(t,n)=>gq(e,t,n)}){let i=t;for(let e of dq(n))i=e.preprocess?.call(r,i,n)||i;let{tokens:a,fg:o,bg:s,themeName:c,rootStyle:l,grammarState:u}=gq(e,i,n),{mergeWhitespaces:d=!0,mergeSameStyleTokens:f=!1}=n;d===!0?a=tBe(a):d===`never`&&(a=nBe(a)),f&&(a=rBe(a));let p={...r,get source(){return i}};for(let e of dq(n))a=e.tokens?.call(p,a)||a;return eBe(a,{...n,fg:o,bg:s,themeName:c,rootStyle:n.rootStyle===!1?!1:n.rootStyle??l},p,u)}function eBe(e,t,n,r=eq(e)){let i=dq(t),a=[],o={type:`root`,children:[]},{structure:s=`classic`,tabindex:c=`0`}=t,l={class:`shiki ${t.themeName||``}`};t.rootStyle!==!1&&(t.rootStyle==null?l.style=`background-color:${t.bg};color:${t.fg}`:l.style=t.rootStyle),c!==!1&&c!=null&&(l.tabindex=c.toString());for(let[e,n]of Object.entries(t.meta||{}))e.startsWith(`_`)||(l[e]=n);let u={type:`element`,tagName:`pre`,properties:l,children:[],data:t.data},d={type:`element`,tagName:`code`,properties:{},children:a},f=[],p={...n,structure:s,addClassToHast:sq,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return o},get pre(){return u},get code(){return d},get lines(){return f}};if(e.forEach((e,t)=>{t&&(s===`inline`?o.children.push({type:`element`,tagName:`br`,properties:{},children:[]}):s===`classic`&&a.push({type:`text`,value:`
|
|
319
319
|
`}));let n={type:`element`,tagName:`span`,properties:{class:`line`},children:[]},r=0;for(let a of e){let e={type:`element`,tagName:`span`,properties:{...a.htmlAttrs},children:[{type:`text`,value:a.content}]},c=lq(a.htmlStyle||cq(a));c&&(e.properties.style=c);for(let o of i)e=o?.span?.call(p,e,t+1,r,n,a)||e;s===`inline`?o.children.push(e):s===`classic`&&n.children.push(e),r+=a.content.length}if(s===`classic`){for(let e of i)n=e?.line?.call(p,n,t+1)||n;f.push(n),a.push(n)}else s===`inline`&&f.push(n)}),s===`classic`){for(let e of i)d=e?.code?.call(p,d)||d;u.children.push(d);for(let e of i)u=e?.pre?.call(p,u)||u;o.children.push(u)}else if(s===`inline`){let e=[],t={type:`element`,tagName:`span`,properties:{class:`line`},children:[]};for(let n of o.children)n.type===`element`&&n.tagName===`br`?(e.push(t),t={type:`element`,tagName:`span`,properties:{class:`line`},children:[]}):(n.type===`element`||n.type===`text`)&&t.children.push(n);e.push(t);let n={type:`element`,tagName:`code`,properties:{},children:e};for(let e of i)n=e?.code?.call(p,n)||n;o.children=[];for(let e=0;e<n.children.length;e++){e>0&&o.children.push({type:`element`,tagName:`br`,properties:{},children:[]});let t=n.children[e];t.type===`element`&&o.children.push(...t.children)}}let m=o;for(let e of i)m=e?.root?.call(p,m)||m;return r&&$K(m,r),m}function tBe(e){return e.map(e=>{let t=[],n=``,r;return e.forEach((i,a)=>{let o=!(i.fontStyle&&(i.fontStyle&nK.Underline||i.fontStyle&nK.Strikethrough));o&&vq.test(i.content)&&e[a+1]?(r===void 0&&(r=i.offset),n+=i.content):n?(o?t.push({...i,offset:r,content:n+i.content}):t.push({content:n,offset:r},i),r=void 0,n=``):t.push(i)}),t})}function nBe(e){return e.map(e=>e.flatMap(e=>{if(vq.test(e.content))return e;let t=e.content.match($ze);if(!t)return e;let[,n,r,i]=t;if(!n&&!i)return e;let a=[{...e,offset:e.offset+n.length,content:r}];return n&&a.unshift({content:n,offset:e.offset}),i&&a.push({content:i,offset:e.offset+n.length+r.length}),a}))}function rBe(e){return e.map(e=>{let t=[];for(let n of e){if(t.length===0){t.push({...n});continue}let e=t.at(-1),r=lq(e.htmlStyle||cq(e)),i=lq(n.htmlStyle||cq(n)),a=e.fontStyle&&(e.fontStyle&nK.Underline||e.fontStyle&nK.Strikethrough),o=n.fontStyle&&(n.fontStyle&nK.Underline||n.fontStyle&nK.Strikethrough);!a&&!o&&r===i?e.content+=n.content:t.push({...n})}return t})}var iBe=oG;function aBe(e,t,n){let r={meta:{},options:n,codeToHast:(t,n)=>yq(e,t,n),codeToTokens:(t,n)=>gq(e,t,n)},i=iBe(yq(e,t,n,r));for(let e of dq(n))i=e.postprocess?.call(r,i,n)||i;return i}async function oBe(e){let t=await _ze(e);return{getLastGrammarState:(...e)=>Sze(t,...e),codeToTokensBase:(e,n)=>hq(t,e,n),codeToTokensWithThemes:(e,n)=>aq(t,e,n),codeToTokens:(e,n)=>gq(t,e,n),codeToHast:(e,n)=>yq(t,e,n),codeToHtml:(e,n)=>aBe(t,e,n),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}function sBe(e){let t=e.langs,n=e.themes,r=e.engine;async function i(e){function i(n){if(typeof n==`string`){if(n=e.langAlias?.[n]||n,BK(n))return[];let r=t[n];if(!r)throw new HG(`Language \`${n}\` is not included in this bundle. You may want to load it from external source.`);return r}return n}function a(e){if(HK(e))return`none`;if(typeof e==`string`){let t=n[e];if(!t)throw new HG(`Theme \`${e}\` is not included in this bundle. You may want to load it from external source.`);return t}return e}let o=(e.themes??[]).map(e=>a(e)),s=(e.langs??[]).map(e=>i(e)),c=await oBe({engine:e.engine??r(),...e,themes:o,langs:s});return{...c,loadLanguage(...e){return c.loadLanguage(...e.map(i))},loadTheme(...e){return c.loadTheme(...e.map(a))},getBundledLanguages(){return t},getBundledThemes(){return n}}}return i}function cBe(e){let t;async function n(n={}){if(t){let e=await t;return await Promise.all([e.loadTheme(...n.themes||[]),e.loadLanguage(...n.langs||[])]),e}else{t=e({...n,themes:[],langs:[]});let r=await t;return await Promise.all([r.loadTheme(...n.themes||[]),r.loadLanguage(...n.langs||[])]),r}}return n}function lBe(e,t){let n=cBe(e);async function r(e,r){let i=await n({langs:[r.lang],themes:`theme`in r?[r.theme]:Object.values(r.themes)}),a=await t?.guessEmbeddedLanguages?.(e,r.lang,i);return a&&await i.loadLanguage(...a),i}return{getSingletonHighlighter(e){return n(e)},async codeToHtml(e,t){return(await r(e,t)).codeToHtml(e,t)},async codeToHast(e,t){return(await r(e,t)).codeToHast(e,t)},async codeToTokens(e,t){return(await r(e,t)).codeToTokens(e,t)},async codeToTokensBase(e,t){return(await r(e,t)).codeToTokensBase(e,t)},async codeToTokensWithThemes(e,t){return(await r(e,t)).codeToTokensWithThemes(e,t)},async getLastGrammarState(e,t){return(await n({langs:[t.lang],themes:[t.theme]})).getLastGrammarState(e,t)}}}var bq=sBe({langs:kG,themes:aRe,engine:()=>(0,VG.createOnigurumaEngine)(q(()=>import(`./wasm-BnjxR4X6.js`),[]))}),{codeToHtml:uBe,codeToHast:dBe,codeToTokens:fBe,codeToTokensBase:pBe,codeToTokensWithThemes:mBe,getSingletonHighlighter:hBe,getLastGrammarState:gBe}=lBe(bq,{guessEmbeddedLanguages:Pze}),xq=4294967295,_Be=class{patterns;options;regexps;constructor(e,t={}){this.patterns=e,this.options=t;let{forgiving:n=!1,cache:r,regexConstructor:i}=t;if(!i)throw Error("Option `regexConstructor` is not provided");this.regexps=e.map(e=>{if(typeof e!=`string`)return e;let t=r?.get(e);if(t){if(t instanceof RegExp)return t;if(n)return null;throw t}try{let t=i(e);return r?.set(e,t),t}catch(t){if(r?.set(e,t),n)return null;throw t}})}findNextMatchSync(e,t,n){let r=typeof e==`string`?e:e.content,i=[];function a(e,t,n=0){return{index:e,captureIndices:t.indices.map(e=>e==null?{start:xq,end:xq,length:0}:{start:e[0]+n,end:e[1]+n,length:e[1]-e[0]})}}for(let e=0;e<this.regexps.length;e++){let n=this.regexps[e];if(n)try{n.lastIndex=t;let o=n.exec(r);if(!o)continue;if(o.index===t)return a(e,o,0);i.push([e,o,0])}catch(e){if(this.options.forgiving)continue;throw e}}if(i.length){let e=Math.min(...i.map(e=>e[1].index));for(let[t,n,r]of i)if(n.index===e)return a(t,n,r)}return null}};function Sq(e){if([...e].length!==1)throw Error(`Expected "${e}" to be a single code point`);return e.codePointAt(0)}function vBe(e,t,n){return e.has(t)||e.set(t,n),e.get(t)}var Cq=new Set([`alnum`,`alpha`,`ascii`,`blank`,`cntrl`,`digit`,`graph`,`lower`,`print`,`punct`,`space`,`upper`,`word`,`xdigit`]),wq=String.raw;function Tq(e,t){if(e==null)throw Error(t??`Value expected`);return e}var Eq=wq`\[\^?`,Dq=`c.? | C(?:-.?)?|${wq`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${wq`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${wq`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${wq`o\{[^\}]*\}?`}|${wq`\d{1,3}`}`,Oq=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,kq=new RegExp(wq`
|
|
@@ -614,6 +614,12 @@ section here; \`pnpm release:npm\` refuses to publish a version that has none.
|
|
|
614
614
|
|
|
615
615
|
Releases before 0.1.0 predate the p4code rebrand and are only in git history.
|
|
616
616
|
|
|
617
|
+
## 0.1.22 - 2026-08-08
|
|
618
|
+
|
|
619
|
+
- The MCP servers you register in Settings now reach every provider, not only Claude. A thread on Codex, Cursor, Grok or OpenCode gets the same Linear, Figma or in-house server the Claude threads already had, resolved per session so a server added in the panel is there on your next thread rather than after a restart.
|
|
620
|
+
- Codex cannot send custom headers or speak SSE, so a server that needs either is left out and said so in the log, rather than handed over as a server that fails on every call. Muse takes no MCP servers at all, p4code's own included.
|
|
621
|
+
- Agents can read a tracker ticket on any provider. Given \`MOBILE-12241\`, an agent asks p4code, which reads the ticket through the Linear server you already signed in to and answers with its identifier, canonical URL, title and description, ready to file onto the board as a task that links back to it.
|
|
622
|
+
|
|
617
623
|
## 0.1.21 - 2026-08-08
|
|
618
624
|
|
|
619
625
|
- A task on the board has a URL. Opening a card puts it in the address bar, so a task survives a reload, answers the back button, and can be pasted into a new tab or into a report as a real link. The context menu copies that link beside the id it already copied.
|
|
@@ -753,7 +759,7 @@ Releases before 0.1.0 predate the p4code rebrand and are only in git history.
|
|
|
753
759
|
|
|
754
760
|
- First release under the p4code name.
|
|
755
761
|
- In-progress tool rows stay visible while a turn runs.
|
|
756
|
-
`);function I7e(){let e=(0,X.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,Y.jsx)(xN,{children:(0,Y.jsx)(gN,{title:`Changelog`,children:F7e.length===0?(0,Y.jsx)(`p`,{className:`px-3 text-[13px] text-muted-foreground/80 sm:px-4`,children:`This build shipped without a changelog.`}):(0,Y.jsx)(`div`,{className:`space-y-8`,children:F7e.map(L7e)})})}),e[0]=t):t=e[0],t}function L7e(e){return(0,Y.jsxs)(`article`,{className:`px-3 sm:px-4`,children:[(0,Y.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,Y.jsx)(`h3`,{className:`text-sm font-medium tracking-[-0.005em] text-foreground`,children:e.version}),e.version===`0.1.
|
|
762
|
+
`);function I7e(){let e=(0,X.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,Y.jsx)(xN,{children:(0,Y.jsx)(gN,{title:`Changelog`,children:F7e.length===0?(0,Y.jsx)(`p`,{className:`px-3 text-[13px] text-muted-foreground/80 sm:px-4`,children:`This build shipped without a changelog.`}):(0,Y.jsx)(`div`,{className:`space-y-8`,children:F7e.map(L7e)})})}),e[0]=t):t=e[0],t}function L7e(e){return(0,Y.jsxs)(`article`,{className:`px-3 sm:px-4`,children:[(0,Y.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,Y.jsx)(`h3`,{className:`text-sm font-medium tracking-[-0.005em] text-foreground`,children:e.version}),e.version===`0.1.22`?(0,Y.jsx)(Dt,{size:`sm`,variant:`secondary`,children:`Current`}):null,e.date?(0,Y.jsx)(`span`,{className:`text-xs text-muted-foreground/60`,children:e.date}):null]}),(0,Y.jsx)(`div`,{className:`pt-1 text-[13px] leading-[1.45] text-muted-foreground/80`,children:(0,Y.jsx)(v4,{text:e.body,cwd:void 0})})]},e.version)}var R7e=Vm(`/settings/changelog`)({component:I7e}),z7e=Vm(`/settings/archived`)({component:CDe});function B7e(){let e=(0,X.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,Y.jsx)(cDe,{}),e[0]=t):t=e[0],t}var V7e=Vm(`/settings/appearance`)({component:B7e}),z3=`planning`,H7e=`Split a scoped task on the board into ordered subtasks a fresh agent can execute.`,U7e=`How to work:
|
|
757
763
|
|
|
758
764
|
- Do not modify any files. You are deciding what the work is and in what order, not doing it.
|
|
759
765
|
- Read before you split. Open the files the task names, follow what they call, and check whether the task's assumptions still hold — a plan built on a stale reading of the code is worse than no plan.
|
|
@@ -840,8 +846,8 @@ ${s.join(`
|
|
|
840
846
|
`)),n.length>0?n.join(`
|
|
841
847
|
|
|
842
848
|
`):null}var fdt={file_read:`eye`,file_search:`search`,file_change:`square-pen`,command:`terminal`,version_control:`git-branch`,build_test:`flask-conical`,mcp_tool:`wrench`,subagent:`bot`,web_search:`globe`,web_fetch:`download`,task_plan:`list-checks`,image_view:`image`,tool:`hammer`};function pdt(e){if(e.sourceActivityKind===`user-input.requested`||e.sourceActivityKind===`user-input.resolved`)return`message-circle`;if(e.sourceActivityKind===`runtime.warning`)return`circle-alert`;if(e.sourceActivityKind===`provider.turn.interrupted`)return`x`;if(e.sourceActivityKind===`code.published`)return`git-branch`;let t=e.toolCategory?fdt[e.toolCategory]:void 0;if(t)return t;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 sdt(e.tone).iconName}function l9(e){let t=e.trim();return t.length===0?e:`${t.charAt(0).toUpperCase()}${t.slice(1)}`}function mdt(e){return e.toolCategory?noe(e.toolCategory):e.toolTitle?l9(i9(e.toolTitle)):l9(i9(e.label))}var u9=e=>e.stopPropagation(),hdt=(0,J.memo)(function(e){let t=(0,X.c)(90),{workEntry:n,workspaceRoot:r}=e,i=(0,J.use)(s9),[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=sdt(n.tone);g=n.sourceActivityKind===`runtime.warning`;let i;t[13]===n?i=t[14]:(i=pdt(n),t[13]=n,t[14]=i),u=i,f=mdt(n);let a=cdt(n,r);p=a&&i9(a).toLowerCase()===i9(f).toLowerCase()?null:a,l=p?`${f} - ${p}`:f,d=ddt(n,r),s=d!==null;let o;t[15]!==l||t[16]!==d||t[17]!==n.command||t[18]!==n.rawCommand?(o=n.rawCommand?.trim()||n.command?.trim()||d||l,t[15]=l,t[16]=d,t[17]=n.command,t[18]=n.rawCommand,t[19]=o):o=t[19],c=o;let v;t[20]===n?v=t[21]:(v=Vv(n),t[20]=n,t[21]=v),h=v,m=h&&(n.sourceActivityKind===`runtime.error`||!Bv(n)),_=K(`flex size-5 shrink-0 items-center justify-center`,g||m?`text-destructive`:n.tone===`tool`||h?`text-muted-foreground/65`:e.className),t[0]=n,t[1]=r,t[2]=s,t[3]=c,t[4]=l,t[5]=u,t[6]=d,t[7]=f,t[8]=p,t[9]=m,t[10]=h,t[11]=g,t[12]=_}else s=t[2],c=t[3],l=t[4],u=t[5],d=t[6],f=t[7],p=t[8],m=t[9],h=t[10],g=t[11],_=t[12];let v=_,y=g?`font-medium text-warning`:m?`font-medium text-destructive`:`font-medium text-foreground/82`,b=!i.activeTurnInProgress,x;t[22]!==b||t[23]!==n?(x=!b&&Uv(n),t[22]=b,t[23]=n,t[24]=x):x=t[24];let S=x,C;t[25]!==S||t[26]!==b||t[27]!==n?(C=!b&&!S&&Wv(n),t[25]=S,t[26]=b,t[27]=n,t[28]=C):C=t[28];let w=C,T;t[29]!==b||t[30]!==n?(T=Hv(n)||b&&Wv(n),t[29]=b,t[30]=n,t[31]=T):T=t[31];let E=T,D;t[32]!==s||t[33]!==l?(D=s?{role:`button`,tabIndex:0,"aria-label":l,onClick:()=>o(Adt),onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),o(jdt))}}:{},t[32]=s,t[33]=l,t[34]=D):D=t[34];let O=D,k=s&&`cursor-pointer hover:bg-accent/20 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring/70`,A;t[35]===k?A=t[36]:(A=K(`group/work-row flex flex-col rounded-md px-0.5 py-0.5 transition-colors`,k),t[35]=k,t[36]=A);let j=s||void 0,M;t[37]===u?M=t[38]:(M=(0,Y.jsx)(odt,{name:u,className:`block size-3.5 shrink-0 stroke-[1.8] opacity-80`}),t[37]=u,t[38]=M);let N;t[39]!==v||t[40]!==M?(N=(0,Y.jsx)(`span`,{className:v,children:M}),t[39]=v,t[40]=M,t[41]=N):N=t[41];let P;t[42]===y?P=t[43]:(P=K(`min-w-0 shrink truncate`,y),t[42]=y,t[43]=P);let F;t[44]!==f||t[45]!==P?(F=(0,Y.jsx)(`span`,{className:P,children:f}),t[44]=f,t[45]=P,t[46]=F):F=t[46];let I;t[47]===p?I=t[48]:(I=p&&(0,Y.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-muted-foreground/55`,children:p}),t[47]=p,t[48]=I);let L;t[49]!==F||t[50]!==I?(L=(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:[F,I]})}),t[49]=F,t[50]=I,t[51]=L):L=t[51];let R;t[52]===n.externalUrl?R=t[53]:(R=n.externalUrl?(0,Y.jsx)(`span`,{className:`flex size-4 shrink-0 items-center justify-center`,onClick:u9,onPointerDown:u9,children:(0,Y.jsxs)(Zc,{children:[(0,Y.jsx)(Ia,{render:(0,Y.jsx)(lr,{size:`icon-xs`,variant:`ghost`,className:`size-4`,"aria-label":`Open link`,onClick:()=>{let e=n.externalUrl;e&&oe()?.shell.openExternal(e)}}),children:(0,Y.jsx)(Ch,{className:`block size-3 shrink-0`,"aria-hidden":!0})}),(0,Y.jsx)(Rs,{children:`Open in browser`})]})}):null,t[52]=n.externalUrl,t[53]=R);let z;t[54]===c?z=t[55]:(z=(0,Y.jsx)(`span`,{className:`flex size-4 shrink-0 items-center justify-center`,onClick:u9,onPointerDown:u9,children:(0,Y.jsx)(r9,{text:c,size:`icon-xs`,variant:`ghost`,label:`Copy command`,className:`size-4 opacity-0 transition-opacity group-hover/work-row:opacity-100 group-focus-within/work-row:opacity-100 focus-visible:opacity-100`})}),t[54]=c,t[55]=z);let B=!s,V;t[56]!==s||t[57]!==a?(V=s?(0,Y.jsx)(cc,{className:K(`size-3 shrink-0 opacity-70 transition-transform duration-200`,a&&`rotate-180`),"aria-hidden":!0}):null,t[56]=s,t[57]=a,t[58]=V):V=t[58];let H;t[59]!==B||t[60]!==V?(H=(0,Y.jsx)(`span`,{className:`flex size-4 shrink-0 items-center justify-center`,"aria-hidden":B,children:V}),t[59]=B,t[60]=V,t[61]=H):H=t[61];let U;t[62]!==h||t[63]!==S||t[64]!==w||t[65]!==E?(U=h?(0,Y.jsxs)(Zc,{children:[(0,Y.jsx)(Ia,{render:(0,Y.jsx)(`span`,{className:`flex size-4 items-center justify-center`,"aria-label":`Tool call failed`}),children:(0,Y.jsx)(Ju,{className:`block size-3 shrink-0 text-destructive`,"aria-hidden":!0})}),(0,Y.jsx)(Rs,{children:`Failed`})]}):E?(0,Y.jsxs)(Zc,{children:[(0,Y.jsx)(Ia,{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)(oo,{className:`block size-3 shrink-0 stroke-current`,stroke:`currentColor`,"aria-hidden":!0})})}),(0,Y.jsx)(Rs,{children:`Completed`})]}):S?(0,Y.jsxs)(Zc,{children:[(0,Y.jsx)(Ia,{render:(0,Y.jsx)(`span`,{className:`flex size-4 items-center justify-center`}),children:(0,Y.jsx)(Kh,{className:`block size-3 shrink-0 animate-spin opacity-70`,"aria-hidden":!0})}),(0,Y.jsx)(Rs,{children:`Running`})]}):w?(0,Y.jsxs)(Zc,{children:[(0,Y.jsx)(Ia,{render:(0,Y.jsx)(`span`,{className:`flex size-4 items-center justify-center`}),children:(0,Y.jsx)(Qh,{className:`block size-3 shrink-0 opacity-70`,"aria-hidden":!0})}),(0,Y.jsx)(Rs,{children:`Empty`})]}):null,t[62]=h,t[63]=S,t[64]=w,t[65]=E,t[66]=U):U=t[66];let W;t[67]===U?W=t[68]:(W=(0,Y.jsx)(`span`,{className:`flex size-4 shrink-0 items-center justify-center`,children:U}),t[67]=U,t[68]=W);let ee;t[69]!==R||t[70]!==z||t[71]!==H||t[72]!==W?(ee=(0,Y.jsxs)(`div`,{className:`flex shrink-0 items-center gap-px text-muted-foreground/55`,children:[R,z,H,W]}),t[69]=R,t[70]=z,t[71]=H,t[72]=W,t[73]=ee):ee=t[73];let G;t[74]!==L||t[75]!==ee?(G=(0,Y.jsxs)(`div`,{className:`flex min-w-0 flex-1 items-center gap-1.5`,children:[L,ee]}),t[74]=L,t[75]=ee,t[76]=G):G=t[76];let te;t[77]!==G||t[78]!==j||t[79]!==N?(te=(0,Y.jsxs)(`div`,{className:`flex select-none items-center gap-1.5 transition-[opacity,translate] duration-200`,"data-scroll-anchor-ignore":j,children:[N,G]}),t[77]=G,t[78]=j,t[79]=N,t[80]=te):te=t[80];let ne;t[81]!==s||t[82]!==a||t[83]!==d?(ne=a&&s&&d?(0,Y.jsx)(`div`,{className:`mt-1 ms-7 cursor-default border-s border-border/45 ps-3 pt-0.5`,onClick:u9,onPointerDown:u9,children:(0,Y.jsx)(`pre`,{className:`max-h-64 cursor-text overflow-auto whitespace-pre-wrap break-words font-mono text-[11px] leading-relaxed text-muted-foreground select-text`,children:d})}):null,t[81]=s,t[82]=a,t[83]=d,t[84]=ne):ne=t[84];let re;return t[85]!==O||t[86]!==te||t[87]!==ne||t[88]!==A?(re=(0,Y.jsxs)(`div`,{className:A,...O,children:[te,ne]}),t[85]=O,t[86]=te,t[87]=ne,t[88]=A,t[89]=re):re=t[89],re}),gdt=1e3;function _dt(e){let t=(0,X.c)(14),{startedAt:n,completedAt:r,durationMs:i,running:a}=e,o=(0,J.useRef)(null),s;t[0]!==r||t[1]!==i||t[2]!==n?(s=i===void 0?r?adt(n,r)??`0s`:null:Gv(i),t[0]=r,t[1]=i,t[2]=n,t[3]=s):s=t[3];let c=s,l;t[4]!==a||t[5]!==c||t[6]!==n?(l=a?c9(n):c,t[4]=a,t[5]=c,t[6]=n,t[7]=l):l=t[7];let u=l,d,f;if(t[8]!==a||t[9]!==n?(d=()=>{if(!a)return;let e=()=>{o.current&&(o.current.textContent=c9(n))};e();let t=setInterval(e,gdt);return()=>clearInterval(t)},f=[a,n],t[8]=a,t[9]=n,t[10]=d,t[11]=f):(d=t[10],f=t[11]),(0,J.useEffect)(d,f),u===null)return null;let p;return t[12]===u?p=t[13]:(p=(0,Y.jsx)(`span`,{ref:o,className:`shrink-0 pe-1 text-[11px] text-muted-foreground/55 tabular-nums`,children:u}),t[12]=u,t[13]=p),p}function vdt(e){return e.lastToolName?`${e.text} (${e.lastToolName})`:e.text}var ydt=/[-_\s]+/;function bdt(e){let t=(e??``).split(ydt).filter(e=>e.length>0).map(l9);return t.length>0?t.join(` `):`Subagent`}function xdt(e){let t=[];if(e.toolUseCount!==void 0){let n=e.toolUseCount===1?`tool call`:`tool calls`;t.push(`${e.toolUseCount.toLocaleString()} ${n}`)}return e.totalTokens!==void 0&&t.push(`${e.totalTokens.toLocaleString()} tokens`),t.length>0?t.join(` - `):null}var Sdt=(0,J.memo)(function(e){let t=(0,X.c)(67),{workEntry:n,subagent:r}=e,i=(0,J.use)(o9),a=(0,J.use)(s9),[o,s]=(0,J.useState)(!1),c=rut({entry:n,unsettledTurnId:a.unsettledTurnId,activeTurnInProgress:a.activeTurnInProgress}),l=r.status===`running`&&!c?`stopped`:r.status,u;t[0]===r.subagentType?u=t[1]:(u=bdt(r.subagentType),t[0]=r.subagentType,t[1]=u);let d=u,f=r.resultSummary??n.detail,p=n.label.trim().length>0?n.label:null,m;t[2]===r?m=t[3]:(m=xdt(r),t[2]=r,t[3]=m);let h=m,g=r.updates.length>0||f!==void 0||h!==null,_;t[4]!==f||t[5]!==r.updates||t[6]!==n.label?(_=[...r.updates.map(vdt),...f?[f]:[]].join(`
|
|
843
|
-
`)||n.label,t[4]=f,t[5]=r.updates,t[6]=n.label,t[7]=_):_=t[7];let v=_,y;t[8]!==g||t[9]!==d||t[10]!==p?(y=g?{role:`button`,tabIndex:0,"aria-label":p?`${d} - ${p}`:d,onClick:()=>s(Mdt),onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),s(Ndt))}}:{},t[8]=g,t[9]=d,t[10]=p,t[11]=y):y=t[11];let b=y,x=g&&`cursor-pointer hover:bg-accent/20 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring/70`,S;t[12]===x?S=t[13]:(S=K(`group/work-row flex flex-col rounded-md px-0.5 py-0.5 transition-colors`,x),t[12]=x,t[13]=S);let C=l===`failed`?`text-destructive`:`text-muted-foreground/65`,w;t[14]===C?w=t[15]:(w=K(`flex size-5 shrink-0 items-center justify-center`,C),t[14]=C,t[15]=w);let T;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(T=(0,Y.jsx)(odt,{name:`bot`,className:`block size-3.5 shrink-0 stroke-[1.8] opacity-80`}),t[16]=T):T=t[16];let E;t[17]===w?E=t[18]:(E=(0,Y.jsx)(`span`,{className:w,children:T}),t[17]=w,t[18]=E);let D=l===`failed`?`text-destructive`:`text-foreground/82`,O;t[19]===D?O=t[20]:(O=K(`min-w-0 shrink truncate font-medium`,D),t[19]=D,t[20]=O);let k;t[21]!==d||t[22]!==O?(k=(0,Y.jsx)(`span`,{className:O,children:d}),t[21]=d,t[22]=O,t[23]=k):k=t[23];let A;t[24]===p?A=t[25]:(A=p&&(0,Y.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-muted-foreground/55`,children:p}),t[24]=p,t[25]=A);let j;t[26]!==k||t[27]!==A?(j=(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:[k,A]})}),t[26]=k,t[27]=A,t[28]=j):j=t[28];let M=l===`running`,N;t[29]!==r.completedAt||t[30]!==r.durationMs||t[31]!==r.startedAt||t[32]!==M?(N=(0,Y.jsx)(_dt,{startedAt:r.startedAt,completedAt:r.completedAt,durationMs:r.durationMs,running:M}),t[29]=r.completedAt,t[30]=r.durationMs,t[31]=r.startedAt,t[32]=M,t[33]=N):N=t[33];let P;t[34]===v?P=t[35]:(P=(0,Y.jsx)(`span`,{className:`flex size-4 shrink-0 items-center justify-center`,onClick:u9,onPointerDown:u9,children:(0,Y.jsx)(r9,{text:v,size:`icon-xs`,variant:`ghost`,label:`Copy subagent activity`,className:`size-4 opacity-0 transition-opacity group-hover/work-row:opacity-100 group-focus-within/work-row:opacity-100 focus-visible:opacity-100`})}),t[34]=v,t[35]=P);let F=!g,I;t[36]!==g||t[37]!==o?(I=g?(0,Y.jsx)(cc,{className:K(`size-3 shrink-0 opacity-70 transition-transform duration-200`,o&&`rotate-180`),"aria-hidden":!0}):null,t[36]=g,t[37]=o,t[38]=I):I=t[38];let L;t[39]!==F||t[40]!==I?(L=(0,Y.jsx)(`span`,{className:`flex size-4 shrink-0 items-center justify-center`,"aria-hidden":F,children:I}),t[39]=F,t[40]=I,t[41]=L):L=t[41];let R;t[42]===l?R=t[43]:(R=(0,Y.jsx)(`span`,{className:`flex size-4 shrink-0 items-center justify-center`,children:l===`failed`?(0,Y.jsxs)(Zc,{children:[(0,Y.jsx)(Ia,{render:(0,Y.jsx)(`span`,{className:`flex size-4 items-center justify-center`,"aria-label":`Subagent failed`}),children:(0,Y.jsx)(Ju,{className:`block size-3 shrink-0 text-destructive`,"aria-hidden":!0})}),(0,Y.jsx)(Rs,{children:`Failed`})]}):l===`completed`?(0,Y.jsxs)(Zc,{children:[(0,Y.jsx)(Ia,{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)(oo,{className:`block size-3 shrink-0 stroke-current`,stroke:`currentColor`,"aria-hidden":!0})})}),(0,Y.jsx)(Rs,{children:`Completed`})]}):l===`running`?(0,Y.jsxs)(Zc,{children:[(0,Y.jsx)(Ia,{render:(0,Y.jsx)(`span`,{className:`flex size-4 items-center justify-center`}),children:(0,Y.jsx)(Kh,{className:`block size-3 shrink-0 animate-spin opacity-70`,"aria-hidden":!0})}),(0,Y.jsx)(Rs,{children:`Running`})]}):(0,Y.jsxs)(Zc,{children:[(0,Y.jsx)(Ia,{render:(0,Y.jsx)(`span`,{className:`flex size-4 items-center justify-center`}),children:(0,Y.jsx)(Qh,{className:`block size-3 shrink-0 opacity-70`,"aria-hidden":!0})}),(0,Y.jsx)(Rs,{children:`Stopped`})]})}),t[42]=l,t[43]=R);let z;t[44]!==N||t[45]!==P||t[46]!==L||t[47]!==R?(z=(0,Y.jsxs)(`div`,{className:`flex shrink-0 items-center gap-px text-muted-foreground/55`,children:[N,P,L,R]}),t[44]=N,t[45]=P,t[46]=L,t[47]=R,t[48]=z):z=t[48];let B;t[49]!==j||t[50]!==z?(B=(0,Y.jsxs)(`div`,{className:`flex min-w-0 flex-1 items-center gap-1.5`,children:[j,z]}),t[49]=j,t[50]=z,t[51]=B):B=t[51];let V;t[52]!==B||t[53]!==E?(V=(0,Y.jsxs)(`div`,{className:`flex select-none items-center gap-1.5 transition-[opacity,translate] duration-200`,children:[E,B]}),t[52]=B,t[53]=E,t[54]=V):V=t[54];let H;t[55]!==g||t[56]!==i||t[57]!==o||t[58]!==f||t[59]!==r.updates||t[60]!==h?(H=o&&g?(0,Y.jsx)(`div`,{className:`mt-1 ms-7 cursor-default border-s border-border/45 ps-3 pt-0.5`,onClick:u9,onPointerDown:u9,children:(0,Y.jsxs)(`div`,{className:`max-h-64 cursor-text space-y-1 overflow-auto text-[11px] leading-relaxed text-muted-foreground select-text`,children:[r.updates.map(e=>(0,Y.jsxs)(`p`,{className:`flex items-baseline gap-1.5`,children:[(0,Y.jsx)(`span`,{className:`shrink-0 text-muted-foreground/45 tabular-nums`,children:Uw(e.createdAt,i.timestampFormat)}),(0,Y.jsx)(`span`,{className:`min-w-0 whitespace-pre-wrap break-words`,children:vdt(e)})]},e.id)),f?(0,Y.jsxs)(`div`,{className:`pt-1`,children:[(0,Y.jsx)(`p`,{className:`font-medium text-muted-foreground/70`,children:`Result`}),(0,Y.jsx)(v4,{text:f,cwd:i.workspaceRoot,threadRef:i.threadRef??void 0,className:`text-[11px] text-muted-foreground`})]}):null,h?(0,Y.jsx)(`p`,{className:`pt-1 text-muted-foreground/55 tabular-nums`,children:h}):null]})}):null,t[55]=g,t[56]=i,t[57]=o,t[58]=f,t[59]=r.updates,t[60]=h,t[61]=H):H=t[61];let U;return t[62]!==b||t[63]!==V||t[64]!==H||t[65]!==S?(U=(0,Y.jsxs)(`div`,{className:S,...b,children:[V,H]}),t[62]=b,t[63]=V,t[64]=H,t[65]=S,t[66]=U):U=t[66],U});function Cdt(){return new Map}function wdt(e){return e.kind===`message`?e.message.id:null}function Tdt(e){let{item:t}=e;return(0,Y.jsx)(`div`,{className:`mx-auto w-full min-w-0 max-w-4xl overflow-x-clip`,"data-timeline-root":`true`,children:(0,Y.jsx)(Dut,{row:t})})}function Edt(e){return!Wv(e)||Uv(e)||zv(e)}function Ddt(e){return Bv(e)}function Odt(e){return!e}function kdt(e){return e.kind===`review-comment`}function Adt(e){return!e}function jdt(e){return!e}function Mdt(e){return!e}function Ndt(e){return!e}function Pdt(e){return e?.sourceControlProvider?B_(e.sourceControlProvider):R_}function Fdt(e){let t=e.terminology??R_,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 Idt(e,t,n=!0){if(!e)return[];let r=Pdt(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 Ldt(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=Pdt(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 Rdt(e,t){return t?e===`push`||e===`create_pr`||e===`commit_push`||e===`commit_push_pr`:!1}function zdt(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??R_;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 Bdt(e){return e.branch.status!==`created`||!e.branch.name?null:{branch:e.branch.name}}function Vdt(e,t){return{branch:e,expectedBranch:t}}function Hdt(e){return!e.gitStatus||e.gitStatus.refName===null&&e.threadBranch!==null||e.threadBranch===e.gitStatus.refName||e.threadBranch!==null&&e.gitStatus.refName!==null&&!H_(e.threadBranch)&&H_(e.gitStatus.refName)?null:{branch:e.gitStatus.refName}}var Udt=250;function Wdt(e,t,n){t===null||n===null||e({environmentId:t,input:{cwd:n}})}var Gdt=[`runStackedAction`,`pull`,`publishRepository`],d9=[{value:`github`,label:`GitHub`,description:`github.com`,host:`github.com`,pathPlaceholder:`owner/repo`,Icon:xv},{value:`gitlab`,label:`GitLab`,description:`gitlab.com`,host:`gitlab.com`,pathPlaceholder:`group/project`,Icon:Sv},{value:`bitbucket`,label:`Bitbucket`,description:`bitbucket.org`,host:`bitbucket.org`,pathPlaceholder:`workspace/repository`,Icon:wv},{value:`azure-devops`,label:`Azure DevOps`,description:`dev.azure.com`,host:`dev.azure.com`,pathPlaceholder:`project/repository`,Icon:Cv}];function Kdt(e){return d9.find(t=>t.value===e)??d9[0]}function qdt(e){return d9.some(t=>t.value===e)}function Jdt(e){let t=e.sourceControlProviders.find(t=>t.kind===e.provider);return t?t.status===`available`?t.auth.status===`unauthenticated`?{ready:!1,hint:sn(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 Ydt(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 Xdt(e){return e.lastOutputLine?e.lastOutputLine:Ydt(e.hookStartedAtMs??e.phaseStartedAtMs)}function Zdt({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=jv(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 Qdt=`Commit changes`,$dt=`Review and confirm your commit. Leave the message blank to auto-generate one.`;function eft(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)(Fh,{}),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)(_h,{}),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 tft(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)(_h,{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)(Bh,{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)(Fh,{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)(_h,{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)(Fh,{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)(Bh,{className:`size-3.5`}),t[9]=i):i=t[9],i}function nft(e){let t=(0,X.c)(152),n=Pm(),r;t[0]===e.environmentId?r=t[1]:(r=e.environmentId===null?null:dD.discovery({environmentId:e.environmentId,input:{}}),t[0]=e.environmentId,t[1]=r);let i=$r(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=ilt(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??[])qdt(e.kind)&&(T[e.kind]=sn(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(d9.map(e=>[e.value,Jdt({provider:e.value,sourceControlProviders:O})])),t[9]=O,t[10]=k);let A=k,j;t[11]===A?j=t[12]:(j=d9.some(e=>A[e.value].ready),t[11]=A,t[12]=j);let M=j,N;t[13]===A?N=t[14]:(N=d9.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,I;t[15]!==A||t[16]!==P?(I=P.find(e=>A[e.value].ready)?.value,t[15]=A,t[16]=P,t[17]=I):I=t[17];let L=I,R=a!==null&&A[a].ready?a:L??a??`github`,z=A[R],B=E[R]?`${E[R]}/`:``,V=s??B,H;t[18]===R?H=t[19]:(H=Kdt(R),t[18]=R,t[19]=H);let U=H,W=U.host,ee=U.pathPlaceholder,G=U.label,te;t[20]===Symbol.for(`react.memo_cache_sentinel`)?(te=[`Provider`,`Repository`,`Summary`],t[20]=te):te=t[20];let ne=te,re=x?.repository.nameWithOwner??null,ie;t[21]!==G||t[22]!==re?(ie=[G,re,null],t[21]=G,t[22]=re,t[23]=ie):ie=t[23];let ae=ie,se;bb0:{if(!z.ready){se=!1;break bb0}if(w.isPending){se=!1;break bb0}let e,n;if(t[24]!==V){let r=V.trim().split(`/`);e=r[0]?.trim()??``,n=r.slice(1).join(`/`).trim(),t[24]=V,t[25]=e,t[26]=n}else e=t[25],n=t[26];let r=n;se=e.length>0&&r.length>0}let ce=se,le;t[27]!==ce||t[28]!==p||t[29]!==R||t[30]!==d||t[31]!==V||t[32]!==w||t[33]!==l?(le=()=>{ce&&(b(null),(async()=>{let e=await w.run({provider:R,repository:V.trim(),visibility:l,remoteName:d.trim()||`origin`,protocol:p});if(e._tag===`Failure`){if(!We(e)){let t=F(e);b(t instanceof Error?t.message:`An error occurred.`)}return}(0,Im.flushSync)(()=>{S(e.value),g(2)})})())},t[27]=ce,t[28]=p,t[29]=R,t[30]=d,t[31]=V,t[32]=w,t[33]=l,t[34]=le):le=t[34];let ue=le,de;t[35]===Symbol.for(`react.memo_cache_sentinel`)?(de=()=>{f(`origin`),c(null),g(0),v(!1),b(null),S(null)},t[35]=de):de=t[35];let fe=de,pe;t[36]===e?pe=t[37]:(pe=t=>{e.onOpenChange(t),t||fe()},t[36]=e,t[37]=pe);let me=pe,he;t[38]!==me||t[39]!==n?(he=()=>{me(!1),n({to:`/settings/source-control`})},t[38]=me,t[39]=n,t[40]=he):he=t[40];let ge=he,_e=e.open,ve,ye;t[41]===Symbol.for(`react.memo_cache_sentinel`)?(ve=(0,Y.jsx)(mE,{children:`Publish repository`}),ye=(0,Y.jsx)(hE,{children:`Pick where to host it, then point us at a repo to push to.`}),t[41]=ve,t[42]=ye):(ve=t[41],ye=t[42]);let be;t[43]!==h||t[44]!==ae?(be=(0,Y.jsxs)(fE,{className:`border-b border-border/70 bg-foreground/[0.025] dark:border-transparent dark:bg-transparent`,children:[ve,ye,(0,Y.jsx)(`div`,{className:`grid grid-cols-3 gap-2`,children:ne.map((e,t)=>{let n=t<h,r=h!==2&&t<ne.length-1&&t<=h;return(0,Y.jsxs)(`button`,{type:`button`,onClick:r?()=>g(t):void 0,disabled:!r,className:K(`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:K(`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)(oo,{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&&ae[t]?`: ${ae[t]}`:``]})]},e)})})]}),t[43]=h,t[44]=ae,t[45]=be):be=t[45];let xe=h!==0&&`hidden`,Se;t[46]===xe?Se=t[47]:(Se=K(`space-y-2`,xe),t[46]=xe,t[47]=Se);let Ce;t[48]===Symbol.for(`react.memo_cache_sentinel`)?(Ce=(0,Y.jsx)(`span`,{id:`publish-provider-cards-label`,className:`text-xs font-medium text-foreground`,children:`Provider`}),t[48]=Ce):Ce=t[48];let we;t[49]===Symbol.for(`react.memo_cache_sentinel`)?(we=e=>{o(e),c(null)},t[49]=we):we=t[49];let Te;if(t[50]!==ge||t[51]!==R||t[52]!==A||t[53]!==P){let e;t[55]!==ge||t[56]!==R||t[57]!==A?(e=e=>{let t=A[e.value],n=R===e.value&&t.ready;return t.ready?(0,Y.jsxs)(CM,{value:e.value,className:K(`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)(Zc,{children:[(0,Y.jsx)(Ia,{render:(0,Y.jsx)(lr,{variant:`outline`,size:`xs`,className:`h-5 rounded-[.25rem] px-1.5 text-[10px] text-warning-foreground`,onClick:e=>{e.preventDefault(),e.stopPropagation(),ge()},children:`Setup Required`})}),(0,Y.jsx)(Rs,{side:`top`,align:`end`,className:`max-w-72`,children:t.hint??`Open Settings -> Source Control to configure this provider.`})]})]},e.value)},t[55]=ge,t[56]=R,t[57]=A,t[58]=e):e=t[58],Te=P.map(e),t[50]=ge,t[51]=R,t[52]=A,t[53]=P,t[54]=Te}else Te=t[54];let Ee;t[59]!==R||t[60]!==Te?(Ee=(0,Y.jsx)(TM,{value:R,onValueChange:we,"aria-labelledby":`publish-provider-cards-label`,className:`grid grid-cols-2 gap-2.5`,children:Te}),t[59]=R,t[60]=Te,t[61]=Ee):Ee=t[61];let De;t[62]!==Se||t[63]!==Ee?(De=(0,Y.jsxs)(`div`,{className:Se,children:[Ce,Ee]}),t[62]=Se,t[63]=Ee,t[64]=De):De=t[64];let Oe=h!==1&&`hidden`,ke;t[65]===Oe?ke=t[66]:(ke=K(`space-y-5`,Oe),t[65]=Oe,t[66]=ke);let Ae;t[67]===Symbol.for(`react.memo_cache_sentinel`)?(Ae=(0,Y.jsx)(`label`,{htmlFor:`publish-repository-path`,className:`text-xs font-medium text-foreground`,children:`Repository`}),t[67]=Ae):Ae=t[67];let je;t[68]===U.Icon?je=t[69]:(je=(0,Y.jsx)(U.Icon,{className:`size-3.5`}),t[68]=U.Icon,t[69]=je);let Me;t[70]!==W||t[71]!==je?(Me=(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:[je,W,`/`]}),t[70]=W,t[71]=je,t[72]=Me):Me=t[72];let Ne;t[73]===Symbol.for(`react.memo_cache_sentinel`)?(Ne=e=>{c(e.target.value)},t[73]=Ne):Ne=t[73];let Pe;t[74]===ue?Pe=t[75]:(Pe=e=>{e.key===`Enter`&&(e.preventDefault(),ue())},t[74]=ue,t[75]=Pe);let Fe;t[76]!==ee||t[77]!==V||t[78]!==w.isPending||t[79]!==Pe?(Fe=(0,Y.jsx)(`input`,{id:`publish-repository-path`,name:`publish-repository-path`,value:V,onChange:Ne,onKeyDown:Pe,placeholder:ee,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]=ee,t[77]=V,t[78]=w.isPending,t[79]=Pe,t[80]=Fe):Fe=t[80];let Ie;t[81]!==Me||t[82]!==Fe?(Ie=(0,Y.jsxs)(`div`,{className:`space-y-2`,children:[Ae,(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:[Me,Fe]})]}),t[81]=Me,t[82]=Fe,t[83]=Ie):Ie=t[83];let Le;t[84]===Symbol.for(`react.memo_cache_sentinel`)?(Le=(0,Y.jsx)(`span`,{id:`publish-visibility-cards-label`,className:`text-xs font-medium text-foreground`,children:`Visibility`}),t[84]=Le):Le=t[84];let Re;t[85]===Symbol.for(`react.memo_cache_sentinel`)?(Re=e=>u(e),t[85]=Re):Re=t[85];let ze=w.isPending,Be;t[86]===Symbol.for(`react.memo_cache_sentinel`)?(Be={value:`private`,label:`Private`,description:`Only invited people`,Icon:Jh},t[86]=Be):Be=t[86];let Ve;t[87]===Symbol.for(`react.memo_cache_sentinel`)?(Ve=[Be,{value:`public`,label:`Public`,description:`Anyone on the web`,Icon:Lh}],t[87]=Ve):Ve=t[87];let He;t[88]===l?He=t[89]:(He=Ve.map(e=>{let t=l===e.value;return(0,Y.jsxs)(CM,{value:e.value,className:K(`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]=He);let Ue;t[90]!==w.isPending||t[91]!==l||t[92]!==He?(Ue=(0,Y.jsxs)(`div`,{className:`space-y-2`,children:[Le,(0,Y.jsx)(TM,{value:l,onValueChange:Re,"aria-labelledby":`publish-visibility-cards-label`,disabled:ze,className:`grid grid-cols-2 gap-2.5`,children:He})]}),t[90]=w.isPending,t[91]=l,t[92]=He,t[93]=Ue):Ue=t[93];let Ge;t[94]===Symbol.for(`react.memo_cache_sentinel`)?(Ge=()=>v(aft),t[94]=Ge):Ge=t[94];let Ke=_?``:`-rotate-90`,qe;t[95]===Ke?qe=t[96]:(qe=K(`size-3.5 transition-transform`,Ke),t[95]=Ke,t[96]=qe);let Je;t[97]===qe?Je=t[98]:(Je=(0,Y.jsx)(cc,{className:qe}),t[97]=qe,t[98]=Je);let Ye;t[99]!==_||t[100]!==Je?(Ye=(0,Y.jsxs)(`button`,{type:`button`,onClick:Ge,"aria-expanded":_,className:`flex items-center gap-1 text-xs font-medium text-muted-foreground transition-colors hover:text-foreground`,children:[Je,`Advanced`]}),t[99]=_,t[100]=Je,t[101]=Ye):Ye=t[101];let Xe;t[102]!==_||t[103]!==p||t[104]!==d||t[105]!==w.isPending?(Xe=_?(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)(Yw,{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)(TM,{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)(CM,{value:e,className:K(`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]=Xe):Xe=t[106];let Ze;t[107]!==Ye||t[108]!==Xe?(Ze=(0,Y.jsxs)(`div`,{children:[Ye,Xe]}),t[107]=Ye,t[108]=Xe,t[109]=Ze):Ze=t[109];let Qe;t[110]!==G||t[111]!==w.isPending?(Qe=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)(kD,{className:`size-3.5`,"aria-hidden":!0}),`Publishing repository to `,G,`...`]}):null,t[110]=G,t[111]=w.isPending,t[112]=Qe):Qe=t[112];let $e;t[113]!==y||t[114]!==w.isPending?($e=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]=$e):$e=t[115];let et;t[116]!==ke||t[117]!==Ie||t[118]!==Ue||t[119]!==Ze||t[120]!==Qe||t[121]!==$e?(et=(0,Y.jsxs)(`div`,{className:ke,children:[Ie,Ue,Ze,Qe,$e]}),t[116]=ke,t[117]=Ie,t[118]=Ue,t[119]=Ze,t[120]=Qe,t[121]=$e,t[122]=et):et=t[122];let tt=h!==2&&`hidden`,nt;t[123]===tt?nt=t[124]:(nt=K(`space-y-4`,tt),t[123]=tt,t[124]=nt);let rt;t[125]!==U.Icon||t[126]!==G||t[127]!==x?(rt=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)(oo,{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)(U.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)(lr,{variant:`outline`,size:`sm`,className:`w-full`,onClick:()=>{let e=oe();e&&e.shell.openExternal(x.repository.url)},children:[(0,Y.jsx)(Ch,{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]=U.Icon,t[126]=G,t[127]=x,t[128]=rt):rt=t[128];let it;t[129]!==nt||t[130]!==rt?(it=(0,Y.jsx)(`div`,{className:nt,children:rt}),t[129]=nt,t[130]=rt,t[131]=it):it=t[131];let at;t[132]!==De||t[133]!==et||t[134]!==it?(at=(0,Y.jsx)(gE,{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)(IM,{children:[De,et,it]})}),t[132]=De,t[133]=et,t[134]=it,t[135]=at):at=t[135];let ot;t[136]!==ce||t[137]!==me||t[138]!==M||t[139]!==w.isPending||t[140]!==h||t[141]!==z.ready||t[142]!==ue?(ot=(0,Y.jsx)(pE,{className:`dark:border-transparent dark:bg-transparent`,children:h===2?(0,Y.jsx)(lr,{size:`sm`,onClick:()=>me(!1),children:`Done`}):(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(lr,{variant:`outline`,size:`sm`,disabled:w.isPending,onClick:()=>{if(h===0){me(!1);return}g(ift)},children:h===0?`Cancel`:`Back`}),h<1?(0,Y.jsx)(lr,{size:`sm`,disabled:!M||!z.ready,onClick:()=>g(rft),children:`Next`}):(0,Y.jsx)(lr,{size:`sm`,disabled:!ce,onClick:ue,children:w.isPending?(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(kD,{className:`size-3.5`,"aria-hidden":!0}),`Publishing...`]}):`Publish`})]})}),t[136]=ce,t[137]=me,t[138]=M,t[139]=w.isPending,t[140]=h,t[141]=z.ready,t[142]=ue,t[143]=ot):ot=t[143];let st;t[144]!==be||t[145]!==at||t[146]!==ot?(st=(0,Y.jsx)(dE,{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:[be,at,ot]})}),t[144]=be,t[145]=at,t[146]=ot,t[147]=st):st=t[147];let ct;return t[148]!==me||t[149]!==e.open||t[150]!==st?(ct=(0,Y.jsx)(lE,{open:_e,onOpenChange:me,children:st}),t[148]=me,t[149]=e.open,t[150]=st,t[151]=ct):ct=t[151],ct}function rft(e){return Math.min(1,e+1)}function ift(e){return Math.max(0,e-1)}function aft(e){return!e}function oft({gitCwd:e,activeThreadRef:t,draftId:n}){let r=Zd(S_.updateMetadata,`thread branch metadata update`),i=t?.environmentId??null,a=BD(i,Fd(uf.configValueAtom(i))?.availableEditors??[]),o=(0,J.useMemo)(()=>t?{threadRef:t}:void 0,[t]),s=xa(e=>n?e.getDraftSession(n):t?e.getDraftThreadByRef(t):null),c=A_(t,{waitForShell:s!==null}),l=xa(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&&eC.update(e.toastId,{type:`loading`,title:e.title,description:Xdt(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,...Vdt(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=Bdt(e);t&&E(t.branch)},[E]),O=$r(i!==null&&e!==null?ov.status({environmentId:i,input:{cwd:e}}):null),k=Zd(ov.refreshStatus,{reportFailure:!1}),{data:A,error:j}=O,M=(0,J.useMemo)(()=>jv(A?.sourceControlProvider),[A?.sourceControlProvider]),N=M.terminology,P=M.Icon,I=A?.isRepo??!0,L=A?.hasPrimaryRemote??!1,R=A,z=R?.workingTree.files??[],B=z.filter(e=>!m.has(e.path)),V=m.size===0,H=B.length===0,U=tlt(C),W=rlt(C),ee=nlt(C),G=elt(C,Gdt),te=!c&&s?.envMode===`worktree`&&s.worktreePath===null;(0,J.useEffect)(()=>{if(G||te||c)return;let e=Hdt({threadBranch:s?.branch??null,gitStatus:R});e&&E(e.branch)},[c,s?.branch,R,G,te,E]);let ne=(0,J.useMemo)(()=>R?.isDefaultRef??!1,[R?.isDefaultRef]),re=(0,J.useMemo)(()=>Idt(R,G,L),[R,L,G]),ie=(0,J.useMemo)(()=>Ldt(R,G,ne,L),[R,L,ne,G]),ae=ie.disabled?ie.hint??`This action is currently unavailable.`:null,se=b?zdt({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,Wdt(k,i,e)},Udt)},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 ce=(0,J.useCallback)(async()=>{let e=oe();if(!e){eC.add({type:`error`,title:`Link opening is unavailable.`,data:o});return}let t=R?.pr?.state===`open`?R.pr.url:null;if(!t){eC.add({type:`error`,title:`No open pull request found.`,data:o});return}dC(e.shell,t).catch(e=>{console.error(e),eC.add($S({type:`error`,title:`Unable to open pull request link`,description:e instanceof Error?e.message:`An error occurred.`,...o===void 0?{}:{data:o}}))})},[R,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??R,d=u?.refName??null,f=s?!1:ne,p=(t===`commit`||t===`commit_push`||t===`commit_push_pr`)&&(t===`commit`||!!u?.hasWorkingTreeChanges||s);if(!i&&Rdt(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=Fdt({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=wi(),_=c??eC.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&&eC.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 W.run({actionId:g,action:t,...n?{commitMessage:n}:{},...s?{featureBranch:s}:{},...l?{filePaths:l}:{},onProgress:v});if(S.current=null,y._tag===`Failure`){if(We(y)){eC.close(_);return}let e=F(y);eC.update(_,$S({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=()=>{eC.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=oe();e&&(C(),e.shell.openExternal(E.url))}});let k={...h,dismissAfterVisibleMs:1e4};O?eC.update(_,$S({type:`success`,title:b.toast.title,description:b.toast.description,timeout:0,actionProps:O,data:k})):eC.update(_,{type:`success`,title:b.toast.title,description:b.toast.description,timeout:0,data:k})});let le=()=>{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})},ue=()=>{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})},de=()=>{if(!u)return;let e=f.trim();d(!1),p(``),h(new Set),_(!1),w({action:`commit`,...e?{commitMessage:e}:{},...V?{}:{filePaths:B.map(e=>e.path)},featureBranch:!0,skipDefaultBranchPrompt:!0})},fe=()=>{if(ie.kind===`open_pr`){ce();return}if(ie.kind===`open_publish`){y(!0);return}if(ie.kind===`run_pull`){let e=eC.add({type:`loading`,title:`Pulling...`,timeout:0,data:o});(async()=>{let t=await ee.run();if(t._tag===`Failure`){if(We(t)){eC.close(e);return}let n=F(t);eC.update(e,$S({type:`error`,title:`Pull failed`,description:n instanceof Error?n.message:`An error occurred.`,...o===void 0?{}:{data:o}}));return}let n=t.value;eC.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(ie.kind===`show_hint`){eC.add({type:`info`,title:ie.label,description:ie.hint,data:o});return}ie.action&&w({action:ie.action})},pe=e=>{if(!e.disabled){if(e.kind===`open_pr`){ce();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)}},me=()=>{if(!u)return;let e=f.trim();d(!1),p(``),h(new Set),_(!1),w({action:`commit`,...e?{commitMessage:e}:{},...V?{}:{filePaths:B.map(e=>e.path)}})},he=(0,J.useCallback)(t=>{if(!e){eC.add({type:`error`,title:`Editor opening is unavailable.`,data:o});return}let n=i4(t,e);(async()=>{let e=await a(n);if(e._tag===`Success`||We(e))return;let t=F(e);eC.add($S({type:`error`,title:`Unable to open file`,description:t instanceof Error?t.message:`An error occurred.`,...o===void 0?{}:{data:o}}))})()},[e,a,o]),ge=I&&R!==null&&!L;return e?(0,Y.jsxs)(Y.Fragment,{children:[I?(0,Y.jsxs)(b3,{"aria-label":`Git actions`,className:`shrink-0`,children:[ae?(0,Y.jsxs)(UO,{children:[(0,Y.jsxs)(WO,{openOnHover:!0,render:(0,Y.jsx)(lr,{"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)(tft,{quickAction:ie,SourceControlIcon:P}),(0,Y.jsx)(`span`,{className:`sr-only @3xl/header-actions:not-sr-only @3xl/header-actions:ml-0.5`,children:ie.label})]}),(0,Y.jsx)(GO,{tooltipStyle:!0,side:`bottom`,align:`start`,children:ae})]}):(0,Y.jsxs)(lr,{variant:`outline`,size:`xs`,disabled:G||ie.disabled,onClick:fe,children:[(0,Y.jsx)(tft,{quickAction:ie,SourceControlIcon:P}),(0,Y.jsx)(`span`,{className:`sr-only @3xl/header-actions:not-sr-only @3xl/header-actions:ml-0.5`,children:ie.label})]}),(0,Y.jsx)(x3,{className:`hidden @3xl/header-actions:block`}),(0,Y.jsxs)(Fr,{onOpenChange:t=>{t&&Wdt(k,i,e)},children:[(0,Y.jsx)(sa,{render:(0,Y.jsx)(lr,{"aria-label":`Git action options`,size:`icon-xs`,variant:`outline`}),disabled:G,children:(0,Y.jsx)(cc,{"aria-hidden":`true`,className:`size-4`})}),(0,Y.jsxs)(mt,{align:`end`,className:`w-full`,children:[re.map(e=>{let t=Zdt({item:e,gitStatus:R,isBusy:G,hasPrimaryRemote:L});return e.disabled&&t?(0,Y.jsxs)(UO,{children:[(0,Y.jsx)(WO,{openOnHover:!0,nativeButton:!1,render:(0,Y.jsx)(`span`,{className:`block w-max cursor-not-allowed`}),children:(0,Y.jsxs)(Fi,{className:`w-full`,disabled:!0,children:[(0,Y.jsx)(eft,{icon:e.icon,SourceControlIcon:P}),e.label]})}),(0,Y.jsx)(GO,{tooltipStyle:!0,side:`left`,align:`center`,children:t})]},`${e.id}-${e.label}`):(0,Y.jsxs)(Fi,{disabled:e.disabled,onClick:()=>{pe(e)},children:[(0,Y.jsx)(eft,{icon:e.icon,SourceControlIcon:P}),e.label]},`${e.id}-${e.label}`)}),ge?(0,Y.jsxs)(Fi,{disabled:G,onClick:()=>{y(!0)},children:[(0,Y.jsx)(_h,{}),`Publish repository...`]}):null,R?.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.`}),R&&R.refName!==null&&!R.hasWorkingTreeChanges&&R.behindCount>0&&R.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)(lr,{variant:`outline`,size:`xs`,disabled:U.isPending,onClick:()=>{(async()=>{let e=await U.run();if(e._tag===`Success`||We(e))return;let t=F(e);eC.add($S({type:`error`,title:`Git initialization failed`,description:t instanceof Error?t.message:`An error occurred.`,...o===void 0?{}:{data:o}}))})()},children:[(0,Y.jsx)($te,{className:`size-3.5`,"aria-hidden":!0}),(0,Y.jsx)(`span`,{className:`ml-0.5`,children:U.isPending?`Initializing...`:`Initialize Git`})]}),(0,Y.jsx)(lE,{open:u,onOpenChange:e=>{e||(d(!1),p(``),h(new Set),_(!1))},children:(0,Y.jsxs)(dE,{children:[(0,Y.jsxs)(fE,{children:[(0,Y.jsx)(mE,{children:Qdt}),(0,Y.jsx)(hE,{children:$dt})]}),(0,Y.jsxs)(gE,{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:R?.refName??`(detached HEAD)`}),ne&&(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&&z.length>0&&(0,Y.jsx)(WM,{checked:V,indeterminate:!V&&!H,onCheckedChange:()=>{h(V?new Set(z.map(e=>e.path)):new Set)}}),(0,Y.jsx)(`span`,{className:`text-muted-foreground`,children:`Files`}),!V&&!g&&(0,Y.jsxs)(`span`,{className:`text-muted-foreground`,children:[`(`,B.length,` of `,z.length,`)`]})]}),z.length>0&&(0,Y.jsx)(lr,{variant:`ghost`,size:`xs`,onClick:()=>_(e=>!e),children:g?`Done`:`Edit`})]}),!R||z.length===0?(0,Y.jsx)(`p`,{className:`font-medium`,children:`none`}):(0,Y.jsxs)(`div`,{className:`space-y-2`,children:[(0,Y.jsx)(sT,{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:z.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)(WM,{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:()=>he(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:[`+`,B.reduce((e,t)=>e+t.insertions,0)]}),(0,Y.jsx)(`span`,{className:`text-muted-foreground`,children:` / `}),(0,Y.jsxs)(`span`,{className:`text-destructive`,children:[`-`,B.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)(Ru,{value:f,onChange:e=>p(e.target.value),placeholder:`Leave empty to auto-generate`,size:`sm`})]})]}),(0,Y.jsxs)(pE,{variant:`bare`,children:[(0,Y.jsx)(lr,{variant:`outline`,size:`sm`,onClick:()=>{d(!1),p(``),h(new Set),_(!1)},children:`Cancel`}),(0,Y.jsx)(lr,{variant:`outline`,size:`sm`,disabled:H,onClick:de,children:`Commit on new refName`}),(0,Y.jsx)(lr,{size:`sm`,disabled:H,onClick:me,children:`Commit`})]})]})}),(0,Y.jsx)(nft,{open:v,onOpenChange:y,environmentId:i,gitCwd:e}),(0,Y.jsx)(lE,{open:b!==null,onOpenChange:e=>{e||x(null)},children:(0,Y.jsxs)(dE,{className:`max-w-xl`,children:[(0,Y.jsxs)(fE,{children:[(0,Y.jsx)(mE,{children:se?.title??`Run action on default refName?`}),(0,Y.jsx)(hE,{children:se?.description})]}),(0,Y.jsxs)(pE,{className:`dark:border-transparent dark:bg-transparent sm:flex-wrap sm:items-center`,children:[(0,Y.jsx)(lr,{className:`w-full sm:mr-auto sm:w-auto`,variant:`outline`,size:`sm`,onClick:()=>x(null),children:`Abort`}),(0,Y.jsx)(lr,{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:le,children:se?.continueLabel??`Continue`}),(0,Y.jsx)(lr,{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:ue,children:`Checkout feature branch & continue`})]})]})})]}):null}var sft=[{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 f9(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)(Oh,{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)(Uh,{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)(Tg,{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)(Rh,{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)(Bte,{className:i}),t[8]=i,t[9]=e),e}let a;return t[10]===i?a=t[11]:(a=(0,Y.jsx)(og,{className:i}),t[10]=i,t[11]=a),a}var cft=[];function lft({scripts:e,fileScripts:t=cft,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,I]=(0,J.useState)(!1),L=(0,J.useMemo)(()=>{if(r){let t=e.find(e=>e.id===r);if(t)return t}return Pct(e)},[r,e]),R=(0,J.useMemo)(()=>t.filter(t=>!e.some(e=>e.command===t.command||e.name.toLowerCase()===t.name.toLowerCase())),[t,e]),z=l!==null,B=`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`,V=e=>{if(e.key===`Tab`)return;if(e.preventDefault(),e.key===`Backspace`||e.key===`Delete`){E(``);return}let t=V4(e,navigator.platform);t&&E(t)},H=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??Nct(n,e.map(e=>e.id)),a=Dct({keybinding:T,command:K7(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(!We(s)){let e=F(s);M(e instanceof Error?e.message:`Failed to save action.`)}return}m(!1),S(!1)},U=()=>{u(null),g(``),v(``),b(`play`),S(!1),w(!1),E(``),O(``),A(!1),M(null),m(!0)},W=e=>{f({scripts:!1,imports:!1}),u(e.id),g(e.name),v(e.command),b(e.icon),S(!1),w(e.runOnWorktreeCreate),E(Oct(n,K7(e.id))??``),O(e.previewUrl??``),A(e.autoOpenPreview??!1),M(null),m(!0)},ee=(0,J.useCallback)(()=>{l&&(I(!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`&&!We(n)){let e=F(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)}},te=R.length>0&&(0,Y.jsxs)(Y.Fragment,{children:[L&&(0,Y.jsx)(tt,{}),(0,Y.jsxs)(yf,{children:[(0,Y.jsx)(P,{children:`From p4.json`}),R.map(e=>(0,Y.jsxs)(Fi,{className:B,onClick:()=>void G(e),children:[(0,Y.jsx)(f9,{icon:e.icon??`play`,className:`size-4`}),(0,Y.jsx)(`span`,{className:`truncate`,children:e.name}),(0,Y.jsx)(Qt,{className:`ms-auto`,children:(0,Y.jsx)(bh,{className:`size-3.5`,"aria-label":`Import`})})]},`${e.name} ${e.command}`))]})]});return(0,Y.jsxs)(Y.Fragment,{children:[L?(0,Y.jsxs)(b3,{"aria-label":`Project scripts`,children:[(0,Y.jsxs)(Zc,{children:[(0,Y.jsxs)(Ia,{render:(0,Y.jsx)(lr,{size:`xs`,variant:`outline`,"aria-label":`Run ${L.name}`,onClick:()=>i(L)}),children:[(0,Y.jsx)(f9,{icon:L.icon}),(0,Y.jsx)(`span`,{className:`sr-only @3xl/header-actions:not-sr-only @3xl/header-actions:ml-0.5`,children:L.name})]}),(0,Y.jsxs)(Rs,{side:`top`,children:[`Run `,L.name]})]}),(0,Y.jsx)(x3,{className:`hidden @3xl/header-actions:block`}),(0,Y.jsxs)(Fr,{highlightItemOnHover:!1,open:d.scripts,onOpenChange:e=>f({scripts:e,imports:!1}),children:[(0,Y.jsx)(sa,{render:(0,Y.jsx)(lr,{size:`icon-xs`,variant:`outline`,"aria-label":`Script actions`}),children:(0,Y.jsx)(cc,{className:`size-4`})}),(0,Y.jsxs)(mt,{align:`end`,children:[e.map(e=>{let t=Rg(n,K7(e.id));return(0,Y.jsxs)(Fi,{className:`group ${B}`,onClick:()=>i(e),children:[(0,Y.jsx)(f9,{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)(Qt,{className:`ms-0 transition-opacity group-hover:opacity-0 group-focus-visible:opacity-0`,children:t}),(0,Y.jsx)(lr,{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(),W(e)},children:(0,Y.jsx)(fg,{className:`size-3.5`})})]})]},e.id)}),te,(0,Y.jsxs)(Fi,{className:B,onClick:U,children:[(0,Y.jsx)(sg,{className:`size-4`}),`Add action`]})]})]})]}):R.length>0?(0,Y.jsxs)(Fr,{highlightItemOnHover:!1,open:d.imports,onOpenChange:e=>f({scripts:!1,imports:e}),children:[(0,Y.jsxs)(sa,{render:(0,Y.jsx)(lr,{size:`xs`,variant:`outline`,"aria-label":`Project actions`}),children:[(0,Y.jsx)(sg,{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)(cc,{className:`size-3.5`})]}),(0,Y.jsxs)(mt,{align:`end`,children:[te,(0,Y.jsxs)(Fi,{className:B,onClick:U,children:[(0,Y.jsx)(sg,{className:`size-4`}),`Add action`]})]})]}):(0,Y.jsxs)(Zc,{children:[(0,Y.jsxs)(Ia,{render:(0,Y.jsx)(lr,{size:`xs`,variant:`outline`,"aria-label":`Add action`,onClick:U}),children:[(0,Y.jsx)(sg,{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)(Rs,{side:`top`,children:`Add action`})]}),(0,Y.jsx)(lE,{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)(dE,{children:[(0,Y.jsxs)(fE,{children:[(0,Y.jsx)(mE,{children:z?`Edit Action`:`Add Action`}),(0,Y.jsx)(hE,{children:`Actions are project-scoped commands you can run from the top bar or keybindings.`})]}),(0,Y.jsx)(gE,{children:(0,Y.jsxs)(`form`,{id:c,className:`space-y-4`,onSubmit:H,children:[(0,Y.jsxs)(`div`,{className:`space-y-1.5`,children:[(0,Y.jsx)(ME,{htmlFor:`script-name`,children:`Name`}),(0,Y.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,Y.jsxs)(UO,{onOpenChange:S,open:x,children:[(0,Y.jsx)(WO,{render:(0,Y.jsx)(lr,{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)(f9,{icon:y,className:`size-4.5`})}),(0,Y.jsx)(GO,{align:`start`,children:(0,Y.jsx)(`div`,{className:`grid grid-cols-3 gap-2`,children:sft.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)(f9,{icon:e.id,className:`size-4`}),(0,Y.jsx)(`span`,{children:e.label})]},e.id))})})]}),(0,Y.jsx)(Yw,{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)(ME,{htmlFor:`script-keybinding`,children:`Keybinding`}),(0,Y.jsx)(Yw,{id:`script-keybinding`,placeholder:`Press shortcut`,value:T,readOnly:!0,onKeyDown:V}),(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)(ME,{htmlFor:`script-command`,children:`Command`}),(0,Y.jsx)(Ru,{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)(ME,{htmlFor:`script-preview-url`,children:`Preview URL (optional)`}),(0,Y.jsx)(Yw,{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)(vM,{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)(vM,{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)(pE,{className:`dark:border-transparent dark:bg-transparent`,children:[z&&(0,Y.jsx)(lr,{type:`button`,variant:`destructive-outline`,className:`mr-auto`,onClick:()=>I(!0),children:`Delete`}),(0,Y.jsx)(lr,{type:`button`,variant:`outline`,onClick:()=>{m(!1)},children:`Cancel`}),(0,Y.jsx)(lr,{form:c,type:`submit`,children:z?`Save changes`:`Save action`})]})]})}),(0,Y.jsx)(c3,{open:N,onOpenChange:I,children:(0,Y.jsxs)(l3,{children:[(0,Y.jsxs)(u3,{children:[(0,Y.jsxs)(f3,{children:[`Delete action "`,h,`"?`]}),(0,Y.jsx)(p3,{children:`This action cannot be undone.`})]}),(0,Y.jsxs)(d3,{children:[(0,Y.jsx)(m3,{render:(0,Y.jsx)(lr,{variant:`outline`}),children:`Cancel`}),(0,Y.jsx)(lr,{variant:`destructive`,onClick:ee,children:`Delete action`})]})]})})]})}function uft(e,t){if(t===null)return null;let n=e.find(e=>e.threadId===t);return n===void 0?null:{label:n.externalRef?.identifier??n.readableId??`Task`,taskId:n.taskId}}function dft(e){let t=(0,X.c)(17),{environmentId:n,threadId:r}=e,i;t[0]===n?i=t[1]:(i=rU.board({environmentId:n,input:null}),t[0]=n,t[1]=i);let a=$r(i),o;t[2]===a.data?o=t[3]:(o=a.data??[],t[2]=a.data,t[3]=o);let s=o,c;t[4]!==s||t[5]!==r?(c=uft(s,r),t[4]=s,t[5]=r,t[6]=c):c=t[6];let l=c;if(l===null)return null;let u=`Open task ${l.label}`,d;t[7]!==n||t[8]!==r?(d=()=>wu.getState().open($u(n,r),`task`),t[7]=n,t[8]=r,t[9]=d):d=t[9];let f;t[10]!==l.label||t[11]!==u||t[12]!==d?(f=(0,Y.jsx)(Ia,{render:(0,Y.jsx)(`button`,{type:`button`,"aria-label":u,onClick:d,className:`inline-flex h-6 shrink-0 cursor-pointer items-center rounded-md border border-border bg-background px-1.5 text-[11px] text-muted-foreground tabular-nums transition-colors hover:bg-accent hover:text-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring`,children:l.label})}),t[10]=l.label,t[11]=u,t[12]=d,t[13]=f):f=t[13];let p;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,Y.jsx)(Rs,{side:`bottom`,children:`Open this thread’s task`}),t[14]=p):p=t[14];let m;return t[15]===f?m=t[16]:(m=(0,Y.jsxs)(Zc,{children:[f,p]}),t[15]=f,t[16]=m),m}var p9=(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},fft=e=>{let t=(0,X.c)(23),[n,r]=p9(`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},pft=e=>{let t=(0,X.c)(23),[n,r]=p9(`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},mft=e=>{let t=(0,X.c)(23),[n,r]=p9(`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},hft=e=>{let t=(0,X.c)(23),[n,r]=p9(`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},gft=e=>{let t=(0,X.c)(23),[n,r]=p9(`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},_ft=e=>{let t=(0,X.c)(23),[n,r]=p9(`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},vft=e=>{let t=(0,X.c)(23),[n,r]=p9(`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},yft=e=>{let t=(0,X.c)(23),[n,r]=p9(`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},bft=e=>{let t=(0,X.c)(23),[n,r]=p9(`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},xft=e=>{let t=(0,X.c)(23),[n,r]=p9(`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},Sft=e=>{let t=(0,X.c)(23),[n,r]=p9(`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},Cft=e=>{let t=(0,X.c)(23),[n,r]=p9(`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},wft=(e,t)=>{let n=[{label:`Cursor`,Icon:Tv,value:`cursor`,kind:`brand`},{label:`Trae`,Icon:Tae,value:`trae`,kind:`brand`},{label:`Kiro`,Icon:Eae,value:`kiro`,kind:`brand`},{label:`VS Code`,Icon:Dae,value:`vscode`,kind:`brand`},{label:`VS Code Insiders`,Icon:Oae,value:`vscode-insiders`,kind:`brand`},{label:`VSCodium`,Icon:kae,value:`vscodium`,kind:`brand`},{label:`Zed`,Icon:Aae,value:`zed`,kind:`brand`},{label:`Antigravity`,Icon:Nae,value:`antigravity`,kind:`brand`},{label:`IntelliJ IDEA`,Icon:_ft,value:`idea`,kind:`brand`},{label:`Aqua`,Icon:fft,value:`aqua`,kind:`brand`},{label:`CLion`,Icon:pft,value:`clion`,kind:`brand`},{label:`DataGrip`,Icon:mft,value:`datagrip`,kind:`brand`},{label:`DataSpell`,Icon:hft,value:`dataspell`,kind:`brand`},{label:`GoLand`,Icon:gft,value:`goland`,kind:`brand`},{label:`PhpStorm`,Icon:vft,value:`phpstorm`,kind:`brand`},{label:`PyCharm`,Icon:yft,value:`pycharm`,kind:`brand`},{label:`Rider`,Icon:bft,value:`rider`,kind:`brand`},{label:`RubyMine`,Icon:xft,value:`rubymine`,kind:`brand`},{label:`RustRover`,Icon:Sft,value:`rustrover`,kind:`brand`},{label:`WebStorm`,Icon:Cft,value:`webstorm`,kind:`brand`},{label:kt(e)?`Finder`:mn(e)?`Explorer`:`Files`,Icon:kh,value:`file-manager`,kind:`generic`}],r=new Set(t);return n.filter(e=>r.has(e.value))};function Tft(e){return K(e===`brand`?`text-foreground opacity-100`:`text-muted-foreground`)}var Eft=(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=Zd(v_.openInEditor,`open in editor`),[d,f]=uye(i),p;t[0]===i?p=t[1]:(p=wft(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=Rg(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=>{Qne(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=b3,C=lr,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:K(`size-3.5`,Tft(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)(x3,{...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)(lr,{"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)(cc,{"aria-hidden":`true`,className:`size-4`}),t[34]=P):P=t[34];let F;t[35]===N?F=t[36]:(F=(0,Y.jsx)(sa,{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)(Fi,{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)(Fi,{onClick:()=>_(r),children:[(0,Y.jsx)(n,{"aria-hidden":`true`,className:Tft(i)}),t,r===d&&y&&(0,Y.jsx)(Qt,{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)(mt,{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)(Fr,{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}),Dft=d6e(Es),Oft=``,kft=Na(ec(!1)).pipe($o(`project-file-query:empty`));function m9(e,t,n){return b_.optimisticFile({environmentId:e,cwd:t,relativePath:n})}function Aft(e,t){return b_.listEntries({environmentId:e,input:{cwd:t}})}function jft(e,t,n){return b_.readFile({environmentId:e,input:{cwd:t,relativePath:n??Oft}})}function Mft(e,t,n,r){jt.set(m9(e,t,n),{confirmedAgainst:void 0,data:{relativePath:n,contents:r,byteLength:new TextEncoder().encode(r).byteLength,truncated:!1}})}function Nft(e,t,n){return jt.get(m9(e,t,n))?.data??null}function Pft(e,t,n,r){let i=m9(e,t,n),a=jt.get(i);if(a?.data.contents!==r)return!1;let o=jft(e,t,n),s={...a,confirmedAgainst:jt.get(o)};return jt.set(i,s),jt.refresh(o),Rn(jt,o,{reportDefect:!1,reportFailure:!1}).then(e=>{e._tag===`Success`&&jt.get(i)===s&&jt.set(i,null)}),!0}function Fft(e){if(e._tag!==`Failure`)return null;let t=nc(e.cause);return t instanceof Error?t.message:`Workspace query failed.`}function Ift(e,t){let n=(0,X.c)(14),r;n[0]!==t||n[1]!==e?(r=Aft(e,t),n[0]=t,n[1]=e,n[2]=r):r=n[2];let i=r,a=Fd(i),o=Xr(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=sn(Eu(a)),n[5]=a,n[6]=l);let u;n[7]===a?u=n[8]:(u=Fft(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 Lft(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?jft(e,t,n):kft,i[0]=t,i[1]=a,i[2]=e,i[3]=n,i[4]=o):o=i[4];let s=o,c=Fd(s),l=Xr(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=sn(Eu(c)),i[7]=c,i[8]=f);let p=f,m=n??Oft,h;i[9]!==t||i[10]!==e||i[11]!==m?(h=m9(e,t,m),i[9]=t,i[10]=e,i[11]=m,i[12]=h):h=i[12];let g=Fd(h),_=(n===null?null:g)?.data??p,v;i[13]===c?v=i[14]:(v=Fft(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 Rft=$n(Dft),h9=[];function zft(e,t){let n=(0,X.c)(3),r=Lft(e,t??``,Ra,t!==null),i=r.data&&!r.data.truncated?r.data.contents:null,a;bb0:{if(i===null){a=h9;break bb0}let e,t;if(n[0]===i?(e=n[1],t=n[2]):(e=Rft(i),t=Hl(e),n[0]=i,n[1]=e,n[2]=t),t){a=h9;break bb0}a=e.value.scripts??h9}return a}function Bft(e){return!!e.activeProjectName&&e.primaryEnvironmentId!==null&&e.activeThreadEnvironmentId===e.primaryEnvironmentId}var Vft=(0,J.memo)(function(e){let t=(0,X.c)(49),{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=wd(),x=zft(n,l?s:null),S;t[0]!==o||t[1]!==n||t[2]!==b?(S=Bft({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)(Zc,{children:[(0,Y.jsxs)(Ia,{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)(qy,{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)(Rs,{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]!==n||t[10]!==r?(T=(0,Y.jsx)(dft,{environmentId:n,threadId:r}),t[9]=n,t[10]=r,t[11]=T):T=t[11];let E;t[12]===a?E=t[13]:(E=(0,Y.jsxs)(Zc,{children:[(0,Y.jsx)(Ia,{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)(Rs,{side:`top`,children:a})]}),t[12]=a,t[13]=E);let D;t[14]!==w||t[15]!==T||t[16]!==E?(D=(0,Y.jsxs)(`div`,{className:`flex min-w-0 flex-1 items-center gap-2 overflow-hidden sm:gap-3`,children:[w,T,E]}),t[14]=w,t[15]=T,t[16]=E,t[17]=D):D=t[17];let O=p?`pr-0`:`pr-16`,k;t[18]===O?k=t[19]:(k=K(`flex shrink-0 items-center justify-end gap-2 @3xl/header-actions:gap-3`,O),t[18]=O,t[19]=k);let A;t[20]!==l||t[21]!==x||t[22]!==d||t[23]!==_||t[24]!==y||t[25]!==g||t[26]!==v||t[27]!==u?(A=l&&(0,Y.jsx)(lft,{scripts:l,fileScripts:x,keybindings:d,preferredScriptId:u,onRunScript:g,onAddScript:_,onUpdateScript:v,onDeleteScript:y}),t[20]=l,t[21]=x,t[22]=d,t[23]=_,t[24]=y,t[25]=g,t[26]=v,t[27]=u,t[28]=A):A=t[28];let j;t[29]!==n||t[30]!==f||t[31]!==d||t[32]!==c||t[33]!==C?(j=C&&(0,Y.jsx)(Eft,{environmentId:n,keybindings:d,availableEditors:f,openInCwd:c}),t[29]=n,t[30]=f,t[31]=d,t[32]=c,t[33]=C,t[34]=j):j=t[34];let M;t[35]!==o||t[36]!==n||t[37]!==r||t[38]!==i||t[39]!==m?(M=o&&(0,Y.jsx)(oft,{gitCwd:m,activeThreadRef:$u(n,r),...i?{draftId:i}:{}}),t[35]=o,t[36]=n,t[37]=r,t[38]=i,t[39]=m,t[40]=M):M=t[40];let N;t[41]!==M||t[42]!==k||t[43]!==A||t[44]!==j?(N=(0,Y.jsxs)(`div`,{"data-chat-header-actions":!0,className:k,children:[A,j,M]}),t[41]=M,t[42]=k,t[43]=A,t[44]=j,t[45]=N):N=t[45];let P;return t[46]!==N||t[47]!==D?(P=(0,Y.jsxs)(`div`,{className:`@container/header-actions flex min-w-0 flex-1 items-center gap-2 sm:gap-3`,children:[D,N]}),t[46]=N,t[47]=D,t[48]=P):P=t[48],P}),Hft=(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)(lne,{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)(Ia,{render:(0,Y.jsx)(M4,{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)(Rs,{side:`bottom`,children:p}),t[5]=p,t[6]=m);let h;t[7]!==f||t[8]!==m?(h=(0,Y.jsxs)(Zc,{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)(ng,{className:`size-3.5`}),t[10]=_):_=t[10];let v;t[11]!==l||t[12]!==o||t[13]!==g?(v=(0,Y.jsx)(Ia,{render:(0,Y.jsx)(M4,{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)(Rs,{side:`bottom`,children:y}),t[15]=y,t[16]=b);let x;t[17]!==b||t[18]!==v?(x=(0,Y.jsxs)(Zc,{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}),Uft=(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)(Zh,{className:`size-3.5`}):(0,Y.jsx)(Yh,{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)(Ia,{render:(0,Y.jsx)(M4,{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)(Rs,{side:`bottom`,children:i}),t[7]=i,t[8]=s);let c;return t[9]!==o||t[10]!==s?(c=(0,Y.jsxs)(Zc,{children:[o,s]}),t[9]=o,t[10]=s,t[11]=c):c=t[11],c});function Wft(e){let t=(0,X.c)(44),{environmentId:n,threadId:r,threadRef:i}=e,a;t[0]===n?a=t[1]:(a=rU.board({environmentId:n,input:null}),t[0]=n,t[1]=a);let o=$r(a),s=E_(),c=Zd(rU.updateTask),l=Zd(rU.deleteTask),u=Zd(rU.startTaskThread),d=Pm(),f;t[2]===o.data?f=t[3]:(f=o.data??[],t[2]=o.data,t[3]=f);let p=f,m;t[4]!==p||t[5]!==r?(m=p.find(e=>e.threadId===r)??null,t[4]=p,t[5]=r,t[6]=m):m=t[6];let h=m,g;if(t[7]!==s||t[8]!==n){let e;t[10]===n?e=t[11]:(e=e=>e.environmentId===n,t[10]=n,t[11]=e),g=s.filter(e),t[7]=s,t[8]=n,t[9]=g}else g=t[9];let _=g,v;t[12]===p?v=t[13]:(v=S9e(p),t[12]=p,t[13]=v);let y=v,b;t[14]===i?b=t[15]:(b=()=>wu.getState().closeSurface(i,uu),t[14]=i,t[15]=b);let x=b,S;t[16]!==n||t[17]!==d?(S=e=>{d({to:`/$environmentId/$threadId`,params:Lc($u(n,e))})},t[16]=n,t[17]=d,t[18]=S):S=t[18];let C=S;if(h===null){let e;return t[19]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,Y.jsx)(LN,{children:(0,Y.jsxs)(RN,{children:[(0,Y.jsx)(VN,{children:`No task linked`}),(0,Y.jsx)(HN,{children:`This thread is not working a task on the board. Start one from a task to link them.`})]})}),t[19]=e):e=t[19],e}let w;t[20]!==n||t[21]!==h.taskId||t[22]!==c?(w=e=>{c({environmentId:n,input:{taskId:h.taskId,...e}})},t[20]=n,t[21]=h.taskId,t[22]=c,t[23]=w):w=t[23];let T;t[24]!==n||t[25]!==C||t[26]!==u||t[27]!==h.taskId||t[28]!==c?(T=e=>{(async()=>{if((await c({environmentId:n,input:{taskId:h.taskId,...e}}))._tag===`Failure`)return;let t=await u({environmentId:n,input:{taskId:h.taskId}});t._tag!==`Failure`&&C(t.value.threadId)})()},t[24]=n,t[25]=C,t[26]=u,t[27]=h.taskId,t[28]=c,t[29]=T):T=t[29];let E;t[30]!==x||t[31]!==l||t[32]!==n||t[33]!==h.taskId?(E=()=>{x(),l({environmentId:n,input:{taskId:h.taskId}})},t[30]=x,t[31]=l,t[32]=n,t[33]=h.taskId,t[34]=E):E=t[34];let D;return t[35]!==x||t[36]!==y||t[37]!==C||t[38]!==_||t[39]!==E||t[40]!==w||t[41]!==T||t[42]!==h?(D=(0,Y.jsx)(eet,{task:h,projects:_,boardLabels:y,showScope:!1,onClose:x,onScope:Gft,onOpenThread:C,onSave:w,onStart:T,onDelete:E},h.taskId),t[35]=x,t[36]=y,t[37]=C,t[38]=_,t[39]=E,t[40]=w,t[41]=T,t[42]=h,t[43]=D):D=t[43],D}function Gft(){}function Kft(){let e=(0,X.c)(2),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,Y.jsx)(`header`,{className:K(`border-b border-border px-3 transition-[padding-left] duration-200 ease-linear motion-reduce:transition-none sm:px-5`,Gm?`workspace-topbar drag-region`:`workspace-topbar`,ON),children:Gm?(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)(HT,{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)(LN,{className:`flex-1`,children:(0,Y.jsx)(`div`,{className:`w-full max-w-lg px-8 py-12`,children:(0,Y.jsxs)(RN,{className:`max-w-none`,children:[(0,Y.jsx)(VN,{className:`text-foreground text-xl`,children:`Pick a thread to continue`}),(0,Y.jsx)(HN,{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 qft(e){return!e||e.status===`ready`||e.status===`disabled`?null:[e.instanceId,e.status,e.auth.status,e.message??``].join(`\0`)}function Jft(e,t){let n=qft(e);return n!==null&&n!==t}var Yft=(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()||Fu(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=K(`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)(Bh,{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)(Zc,{children:[(0,Y.jsx)(Ia,{render:(0,Y.jsx)(`div`,{className:`line-clamp-3 text-muted-foreground`,children:c})}),(0,Y.jsx)(Rs,{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)(Ju,{"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}),Xft=(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)(hh,{}),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)(aE,{children:(0,Y.jsxs)(Zc,{children:[(0,Y.jsx)(Ia,{render:a,children:n}),(0,Y.jsx)(Rs,{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)(oE,{children:(0,Y.jsx)(lr,{variant:`ghost`,size:`icon-xs`,"aria-label":`Dismiss error`,onClick:r,children:(0,Y.jsx)(Ju,{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)(rE,{variant:`error`,children:[i,o,s]})}),t[6]=o,t[7]=s,t[8]=c):c=t[8],c}),g9=220,Zft={opacity:0,transform:`translate3d(0, 4rem, 0)`},Qft={opacity:0,transform:`translate3d(0, 7rem, 0)`},$ft={opacity:1,transform:`none`},ept={transition:`transform ${g9}ms ease-in, opacity ${g9}ms ease-in`};function tpt(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?.()},g9))},t[14]=c,t[15]=l);let u=l;t[16]===n?g=t[17]:(g=K(`group/banner-stack mx-auto mb-2 max-w-4xl`,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=K(`relative flex flex-col-reverse`,_),t[18]=_,t[19]=f),t[20]===s?p=t[21]:(p=s?(0,Y.jsx)(`div`,{className:K(`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=K(`relative z-10`,v),t[22]=v,t[23]=y);let b=c===d.id?Zft:$ft,x;t[24]===b?x=t[25]:(x={...ept,...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)(npt,{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:K(`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:K(`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:K(c===e.id?`pointer-events-none`:null),style:{...ept,...c===e.id?Qft:$ft},children:(0,Y.jsx)(npt,{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 npt(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=K(`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)(iE,{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)(aE,{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)(oE,{className:K(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)(lr,{size:`icon-xs`,variant:`ghost`,"aria-label":n.dismissLabel??`Dismiss warning`,disabled:r,onClick:i,children:(0,Y.jsx)(Ju,{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)(rE,{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 rpt=`p4-draft-hero-transition`,ipt=`cubic-bezier(0.4, 0, 0.2, 1)`,apt=`p4-mobile-composer`,opt=`p4-mobile-draft-headline`,_9=null;async function spt(){let e=_9;if(typeof document>`u`||typeof document.getAnimations!=`function`){await e;return}let t=document.getAnimations().filter(e=>e.id===rpt);await Promise.all([e,...t.map(async e=>{try{await e.finished}catch{}})])}async function cpt(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),_9=o;try{await e.finished}catch{await a()}}catch{await a()}finally{_9===o&&(_9=null),delete t.documentElement.dataset.mobileComposerRouteTransition}}function lpt(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)(DT,{side:`right`,showCloseButton:!1,keepMounted:!0,className:ltt,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)(ET,{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 upt=`[User attached one or more images without additional text. Respond using the conversation context and the attached image(s).]`,dpt=[],fpt=[],ppt=[],mpt={};function hpt(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:ipt});r.id=rpt,o.current=r,r.finished.catch(gpt).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 gpt(){}var _pt=(0,J.lazy)(()=>q(()=>import(`./PreviewPanel-ebSBxbsf.js`).then(e=>({default:e.PreviewPanel})),__vite__mapDeps([102,1,103]))),vpt=(0,J.lazy)(()=>q(()=>import(`./DiffPanel-2Gqo7b0N.js`),__vite__mapDeps([104,1,103,105]))),ypt=(0,J.lazy)(()=>q(()=>import(`./FilePreviewPanel-Po3D7bHa.js`),__vite__mapDeps([106,1,105]))),v9=new Set,bpt=[`input`,`textarea`,`select`,`[contenteditable="true"]`,`[contenteditable="plaintext-only"]`,`[role="textbox"]`].join(`,`),xpt=[`button`,`a[href]`,`summary`,`[role="button"]`,`[role="checkbox"]`,`[role="menuitem"]`,`[role="option"]`,`[role="radio"]`,`[role="switch"]`,`[role="tab"]`].join(`,`),Spt=[`[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 y9(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 Cpt(e){return!(e.defaultPrevented||e.isComposing||e.metaKey||e.ctrlKey||e.altKey||e.key.length!==1||y9(e,bpt)||y9(e,xpt)||document.querySelector(Spt))}function b9(e){let t=Fs(tee(e.models,e.model,e.provider),e.effort);return xs(e.text,t)}var wpt=120,Tpt=30;function Ept(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(Dpt)?.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=GOe({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}:WOe(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 Dpt(e){return e.role===`user`}function Opt(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 kpt(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 Apt=(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=Zd(F_.open,`terminal open`),m=Zd(F_.write,`terminal write`),h=Zd(F_.close,`terminal close`),g;t[0]===n?g=t[1]:(g=e=>e.getDraftThreadByRef(n),t[0]=n,t[1]=g);let _=xa(g),v=_!==null,y;t[2]===v?y=t[3]:(y={waitForShell:v},t[2]=v,t[3]=y);let b=A_(n,y),x;t[4]!==_||t[5]!==b?(x=b?zc(b.environmentId,b.projectId):_?zc(_.environmentId,_.projectId):null,t[4]=_,t[5]=b,t[6]=x):x=t[6];let S=O_(x),C;t[7]===n?C=t[8]:(C=e=>PC(e.terminalUiStateByThreadKey,n),t[7]=n,t[8]=C);let w=LC(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=I_(T),D;t[12]===n?D=t[13]:(D=e=>wl(e.byThreadKey,n).surfaces,t[12]=n,t[13]=D);let O=wu(D),k;t[14]===O?k=t[15]:(k=new Set(O.flatMap(Fpt)),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,f6(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:u6({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(Ipt),t[27]=M,t[28]=L);let R=L,z=LC(Lpt),B=LC(Rpt),V=LC(zpt),H=LC(Bpt),U=LC(Vpt),W=LC(Hpt),ee=LC(Upt),G,te;t[29]!==ee||t[30]!==R||t[31]!==w.terminalIds||t[32]!==n?(G=()=>{Opt(R,w.terminalIds)||kpt(R,w.terminalIds)||ee(n,R)},te=[ee,R,w.terminalIds,n],t[29]=ee,t[30]=R,t[31]=w.terminalIds,t[32]=n,t[33]=G,t[34]=te):(G=t[33],te=t[34]),(0,J.useEffect)(G,te);let[ne,re]=(0,J.useState)(0),ie=b?.worktreePath??_?.worktreePath??null,ae;bb1:{if(a!==null){ae=a.worktreePath;break bb1}ae=ie}let oe=ae,se;t[35]!==oe||t[36]!==a?.cwd||t[37]!==S?(se=()=>a?.cwd??(S?l6({project:{cwd:S.workspaceRoot},worktreePath:oe}):null),t[35]=oe,t[36]=a?.cwd,t[37]=S,t[38]=se):se=t[38],a?.cwd;let ce;t[39]===se?ce=t[40]:(ce=se(),t[39]=se,t[40]=ce);let le=ce,ue;t[41]!==oe||t[42]!==S?(ue=S?u6({project:{cwd:S.workspaceRoot},worktreePath:oe}):{},t[41]=oe,t[42]=S,t[43]=ue):ue=t[43];let de=ue,fe;t[44]===i?fe=t[45]:(fe=()=>{i&&re(Wpt)},t[44]=i,t[45]=fe);let pe=fe,me;t[46]!==z||t[47]!==n?(me=e=>{z(n,e)},t[46]=z,t[47]=n,t[48]=me):me=t[48];let he=me,ge;t[49]!==pe||t[50]!==le||t[51]!==oe||t[52]!==p||t[53]!==de||t[54]!==R||t[55]!==B||t[56]!==r||t[57]!==n?(ge=()=>{if(!le)return;let e=p6(R);B(n,e),pe(),p({environmentId:n.environmentId,input:{threadId:r,terminalId:e,cwd:le,...oe==null?{}:{worktreePath:oe},env:de}})},t[49]=pe,t[50]=le,t[51]=oe,t[52]=p,t[53]=de,t[54]=R,t[55]=B,t[56]=r,t[57]=n,t[58]=ge):ge=t[58];let _e=ge,ve;t[59]!==pe||t[60]!==le||t[61]!==oe||t[62]!==p||t[63]!==de||t[64]!==R||t[65]!==V||t[66]!==r||t[67]!==n?(ve=()=>{if(!le)return;let e=p6(R);V(n,e),pe(),p({environmentId:n.environmentId,input:{threadId:r,terminalId:e,cwd:le,...oe==null?{}:{worktreePath:oe},env:de}})},t[59]=pe,t[60]=le,t[61]=oe,t[62]=p,t[63]=de,t[64]=R,t[65]=V,t[66]=r,t[67]=n,t[68]=ve):ve=t[68];let ye=ve,be;t[69]!==pe||t[70]!==le||t[71]!==oe||t[72]!==p||t[73]!==de||t[74]!==R||t[75]!==H||t[76]!==r||t[77]!==n?(be=()=>{if(!le)return;let e=p6(R);H(n,e),pe(),p({environmentId:n.environmentId,input:{threadId:r,terminalId:e,cwd:le,...oe==null?{}:{worktreePath:oe},env:de}})},t[69]=pe,t[70]=le,t[71]=oe,t[72]=p,t[73]=de,t[74]=R,t[75]=H,t[76]=r,t[77]=n,t[78]=be):be=t[78];let xe=be,Se;t[79]!==pe||t[80]!==U||t[81]!==n?(Se=e=>{U(n,e),pe()},t[79]=pe,t[80]=U,t[81]=n,t[82]=Se):Se=t[82];let Ce=Se,we;t[83]!==pe||t[84]!==h||t[85]!==W||t[86]!==r||t[87]!==n||t[88]!==m?(we=e=>{let t=()=>m({environmentId:n.environmentId,input:{threadId:r,terminalId:e,data:`exit
|
|
849
|
+
`)||n.label,t[4]=f,t[5]=r.updates,t[6]=n.label,t[7]=_):_=t[7];let v=_,y;t[8]!==g||t[9]!==d||t[10]!==p?(y=g?{role:`button`,tabIndex:0,"aria-label":p?`${d} - ${p}`:d,onClick:()=>s(Mdt),onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),s(Ndt))}}:{},t[8]=g,t[9]=d,t[10]=p,t[11]=y):y=t[11];let b=y,x=g&&`cursor-pointer hover:bg-accent/20 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring/70`,S;t[12]===x?S=t[13]:(S=K(`group/work-row flex flex-col rounded-md px-0.5 py-0.5 transition-colors`,x),t[12]=x,t[13]=S);let C=l===`failed`?`text-destructive`:`text-muted-foreground/65`,w;t[14]===C?w=t[15]:(w=K(`flex size-5 shrink-0 items-center justify-center`,C),t[14]=C,t[15]=w);let T;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(T=(0,Y.jsx)(odt,{name:`bot`,className:`block size-3.5 shrink-0 stroke-[1.8] opacity-80`}),t[16]=T):T=t[16];let E;t[17]===w?E=t[18]:(E=(0,Y.jsx)(`span`,{className:w,children:T}),t[17]=w,t[18]=E);let D=l===`failed`?`text-destructive`:`text-foreground/82`,O;t[19]===D?O=t[20]:(O=K(`min-w-0 shrink truncate font-medium`,D),t[19]=D,t[20]=O);let k;t[21]!==d||t[22]!==O?(k=(0,Y.jsx)(`span`,{className:O,children:d}),t[21]=d,t[22]=O,t[23]=k):k=t[23];let A;t[24]===p?A=t[25]:(A=p&&(0,Y.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-muted-foreground/55`,children:p}),t[24]=p,t[25]=A);let j;t[26]!==k||t[27]!==A?(j=(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:[k,A]})}),t[26]=k,t[27]=A,t[28]=j):j=t[28];let M=l===`running`,N;t[29]!==r.completedAt||t[30]!==r.durationMs||t[31]!==r.startedAt||t[32]!==M?(N=(0,Y.jsx)(_dt,{startedAt:r.startedAt,completedAt:r.completedAt,durationMs:r.durationMs,running:M}),t[29]=r.completedAt,t[30]=r.durationMs,t[31]=r.startedAt,t[32]=M,t[33]=N):N=t[33];let P;t[34]===v?P=t[35]:(P=(0,Y.jsx)(`span`,{className:`flex size-4 shrink-0 items-center justify-center`,onClick:u9,onPointerDown:u9,children:(0,Y.jsx)(r9,{text:v,size:`icon-xs`,variant:`ghost`,label:`Copy subagent activity`,className:`size-4 opacity-0 transition-opacity group-hover/work-row:opacity-100 group-focus-within/work-row:opacity-100 focus-visible:opacity-100`})}),t[34]=v,t[35]=P);let F=!g,I;t[36]!==g||t[37]!==o?(I=g?(0,Y.jsx)(cc,{className:K(`size-3 shrink-0 opacity-70 transition-transform duration-200`,o&&`rotate-180`),"aria-hidden":!0}):null,t[36]=g,t[37]=o,t[38]=I):I=t[38];let L;t[39]!==F||t[40]!==I?(L=(0,Y.jsx)(`span`,{className:`flex size-4 shrink-0 items-center justify-center`,"aria-hidden":F,children:I}),t[39]=F,t[40]=I,t[41]=L):L=t[41];let R;t[42]===l?R=t[43]:(R=(0,Y.jsx)(`span`,{className:`flex size-4 shrink-0 items-center justify-center`,children:l===`failed`?(0,Y.jsxs)(Zc,{children:[(0,Y.jsx)(Ia,{render:(0,Y.jsx)(`span`,{className:`flex size-4 items-center justify-center`,"aria-label":`Subagent failed`}),children:(0,Y.jsx)(Ju,{className:`block size-3 shrink-0 text-destructive`,"aria-hidden":!0})}),(0,Y.jsx)(Rs,{children:`Failed`})]}):l===`completed`?(0,Y.jsxs)(Zc,{children:[(0,Y.jsx)(Ia,{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)(oo,{className:`block size-3 shrink-0 stroke-current`,stroke:`currentColor`,"aria-hidden":!0})})}),(0,Y.jsx)(Rs,{children:`Completed`})]}):l===`running`?(0,Y.jsxs)(Zc,{children:[(0,Y.jsx)(Ia,{render:(0,Y.jsx)(`span`,{className:`flex size-4 items-center justify-center`}),children:(0,Y.jsx)(Kh,{className:`block size-3 shrink-0 animate-spin opacity-70`,"aria-hidden":!0})}),(0,Y.jsx)(Rs,{children:`Running`})]}):(0,Y.jsxs)(Zc,{children:[(0,Y.jsx)(Ia,{render:(0,Y.jsx)(`span`,{className:`flex size-4 items-center justify-center`}),children:(0,Y.jsx)(Qh,{className:`block size-3 shrink-0 opacity-70`,"aria-hidden":!0})}),(0,Y.jsx)(Rs,{children:`Stopped`})]})}),t[42]=l,t[43]=R);let z;t[44]!==N||t[45]!==P||t[46]!==L||t[47]!==R?(z=(0,Y.jsxs)(`div`,{className:`flex shrink-0 items-center gap-px text-muted-foreground/55`,children:[N,P,L,R]}),t[44]=N,t[45]=P,t[46]=L,t[47]=R,t[48]=z):z=t[48];let B;t[49]!==j||t[50]!==z?(B=(0,Y.jsxs)(`div`,{className:`flex min-w-0 flex-1 items-center gap-1.5`,children:[j,z]}),t[49]=j,t[50]=z,t[51]=B):B=t[51];let V;t[52]!==B||t[53]!==E?(V=(0,Y.jsxs)(`div`,{className:`flex select-none items-center gap-1.5 transition-[opacity,translate] duration-200`,children:[E,B]}),t[52]=B,t[53]=E,t[54]=V):V=t[54];let H;t[55]!==g||t[56]!==i||t[57]!==o||t[58]!==f||t[59]!==r.updates||t[60]!==h?(H=o&&g?(0,Y.jsx)(`div`,{className:`mt-1 ms-7 cursor-default border-s border-border/45 ps-3 pt-0.5`,onClick:u9,onPointerDown:u9,children:(0,Y.jsxs)(`div`,{className:`max-h-64 cursor-text space-y-1 overflow-auto text-[11px] leading-relaxed text-muted-foreground select-text`,children:[r.updates.map(e=>(0,Y.jsxs)(`p`,{className:`flex items-baseline gap-1.5`,children:[(0,Y.jsx)(`span`,{className:`shrink-0 text-muted-foreground/45 tabular-nums`,children:Uw(e.createdAt,i.timestampFormat)}),(0,Y.jsx)(`span`,{className:`min-w-0 whitespace-pre-wrap break-words`,children:vdt(e)})]},e.id)),f?(0,Y.jsxs)(`div`,{className:`pt-1`,children:[(0,Y.jsx)(`p`,{className:`font-medium text-muted-foreground/70`,children:`Result`}),(0,Y.jsx)(v4,{text:f,cwd:i.workspaceRoot,threadRef:i.threadRef??void 0,className:`text-[11px] text-muted-foreground`})]}):null,h?(0,Y.jsx)(`p`,{className:`pt-1 text-muted-foreground/55 tabular-nums`,children:h}):null]})}):null,t[55]=g,t[56]=i,t[57]=o,t[58]=f,t[59]=r.updates,t[60]=h,t[61]=H):H=t[61];let U;return t[62]!==b||t[63]!==V||t[64]!==H||t[65]!==S?(U=(0,Y.jsxs)(`div`,{className:S,...b,children:[V,H]}),t[62]=b,t[63]=V,t[64]=H,t[65]=S,t[66]=U):U=t[66],U});function Cdt(){return new Map}function wdt(e){return e.kind===`message`?e.message.id:null}function Tdt(e){let{item:t}=e;return(0,Y.jsx)(`div`,{className:`mx-auto w-full min-w-0 max-w-4xl overflow-x-clip`,"data-timeline-root":`true`,children:(0,Y.jsx)(Dut,{row:t})})}function Edt(e){return!Wv(e)||Uv(e)||zv(e)}function Ddt(e){return Bv(e)}function Odt(e){return!e}function kdt(e){return e.kind===`review-comment`}function Adt(e){return!e}function jdt(e){return!e}function Mdt(e){return!e}function Ndt(e){return!e}function Pdt(e){return e?.sourceControlProvider?B_(e.sourceControlProvider):R_}function Fdt(e){let t=e.terminology??R_,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 Idt(e,t,n=!0){if(!e)return[];let r=Pdt(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 Ldt(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=Pdt(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 Rdt(e,t){return t?e===`push`||e===`create_pr`||e===`commit_push`||e===`commit_push_pr`:!1}function zdt(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??R_;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 Bdt(e){return e.branch.status!==`created`||!e.branch.name?null:{branch:e.branch.name}}function Vdt(e,t){return{branch:e,expectedBranch:t}}function Hdt(e){return!e.gitStatus||e.gitStatus.refName===null&&e.threadBranch!==null||e.threadBranch===e.gitStatus.refName||e.threadBranch!==null&&e.gitStatus.refName!==null&&!H_(e.threadBranch)&&H_(e.gitStatus.refName)?null:{branch:e.gitStatus.refName}}var Udt=250;function Wdt(e,t,n){t===null||n===null||e({environmentId:t,input:{cwd:n}})}var Gdt=[`runStackedAction`,`pull`,`publishRepository`],d9=[{value:`github`,label:`GitHub`,description:`github.com`,host:`github.com`,pathPlaceholder:`owner/repo`,Icon:xv},{value:`gitlab`,label:`GitLab`,description:`gitlab.com`,host:`gitlab.com`,pathPlaceholder:`group/project`,Icon:Sv},{value:`bitbucket`,label:`Bitbucket`,description:`bitbucket.org`,host:`bitbucket.org`,pathPlaceholder:`workspace/repository`,Icon:wv},{value:`azure-devops`,label:`Azure DevOps`,description:`dev.azure.com`,host:`dev.azure.com`,pathPlaceholder:`project/repository`,Icon:Cv}];function Kdt(e){return d9.find(t=>t.value===e)??d9[0]}function qdt(e){return d9.some(t=>t.value===e)}function Jdt(e){let t=e.sourceControlProviders.find(t=>t.kind===e.provider);return t?t.status===`available`?t.auth.status===`unauthenticated`?{ready:!1,hint:sn(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 Ydt(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 Xdt(e){return e.lastOutputLine?e.lastOutputLine:Ydt(e.hookStartedAtMs??e.phaseStartedAtMs)}function Zdt({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=jv(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 Qdt=`Commit changes`,$dt=`Review and confirm your commit. Leave the message blank to auto-generate one.`;function eft(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)(Fh,{}),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)(_h,{}),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 tft(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)(_h,{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)(Bh,{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)(Fh,{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)(_h,{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)(Fh,{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)(Bh,{className:`size-3.5`}),t[9]=i):i=t[9],i}function nft(e){let t=(0,X.c)(152),n=Pm(),r;t[0]===e.environmentId?r=t[1]:(r=e.environmentId===null?null:dD.discovery({environmentId:e.environmentId,input:{}}),t[0]=e.environmentId,t[1]=r);let i=$r(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=ilt(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??[])qdt(e.kind)&&(T[e.kind]=sn(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(d9.map(e=>[e.value,Jdt({provider:e.value,sourceControlProviders:O})])),t[9]=O,t[10]=k);let A=k,j;t[11]===A?j=t[12]:(j=d9.some(e=>A[e.value].ready),t[11]=A,t[12]=j);let M=j,N;t[13]===A?N=t[14]:(N=d9.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,I;t[15]!==A||t[16]!==P?(I=P.find(e=>A[e.value].ready)?.value,t[15]=A,t[16]=P,t[17]=I):I=t[17];let L=I,R=a!==null&&A[a].ready?a:L??a??`github`,z=A[R],B=E[R]?`${E[R]}/`:``,V=s??B,H;t[18]===R?H=t[19]:(H=Kdt(R),t[18]=R,t[19]=H);let U=H,W=U.host,ee=U.pathPlaceholder,G=U.label,te;t[20]===Symbol.for(`react.memo_cache_sentinel`)?(te=[`Provider`,`Repository`,`Summary`],t[20]=te):te=t[20];let ne=te,re=x?.repository.nameWithOwner??null,ie;t[21]!==G||t[22]!==re?(ie=[G,re,null],t[21]=G,t[22]=re,t[23]=ie):ie=t[23];let ae=ie,se;bb0:{if(!z.ready){se=!1;break bb0}if(w.isPending){se=!1;break bb0}let e,n;if(t[24]!==V){let r=V.trim().split(`/`);e=r[0]?.trim()??``,n=r.slice(1).join(`/`).trim(),t[24]=V,t[25]=e,t[26]=n}else e=t[25],n=t[26];let r=n;se=e.length>0&&r.length>0}let ce=se,le;t[27]!==ce||t[28]!==p||t[29]!==R||t[30]!==d||t[31]!==V||t[32]!==w||t[33]!==l?(le=()=>{ce&&(b(null),(async()=>{let e=await w.run({provider:R,repository:V.trim(),visibility:l,remoteName:d.trim()||`origin`,protocol:p});if(e._tag===`Failure`){if(!We(e)){let t=F(e);b(t instanceof Error?t.message:`An error occurred.`)}return}(0,Im.flushSync)(()=>{S(e.value),g(2)})})())},t[27]=ce,t[28]=p,t[29]=R,t[30]=d,t[31]=V,t[32]=w,t[33]=l,t[34]=le):le=t[34];let ue=le,de;t[35]===Symbol.for(`react.memo_cache_sentinel`)?(de=()=>{f(`origin`),c(null),g(0),v(!1),b(null),S(null)},t[35]=de):de=t[35];let fe=de,pe;t[36]===e?pe=t[37]:(pe=t=>{e.onOpenChange(t),t||fe()},t[36]=e,t[37]=pe);let me=pe,he;t[38]!==me||t[39]!==n?(he=()=>{me(!1),n({to:`/settings/source-control`})},t[38]=me,t[39]=n,t[40]=he):he=t[40];let ge=he,_e=e.open,ve,ye;t[41]===Symbol.for(`react.memo_cache_sentinel`)?(ve=(0,Y.jsx)(mE,{children:`Publish repository`}),ye=(0,Y.jsx)(hE,{children:`Pick where to host it, then point us at a repo to push to.`}),t[41]=ve,t[42]=ye):(ve=t[41],ye=t[42]);let be;t[43]!==h||t[44]!==ae?(be=(0,Y.jsxs)(fE,{className:`border-b border-border/70 bg-foreground/[0.025] dark:border-transparent dark:bg-transparent`,children:[ve,ye,(0,Y.jsx)(`div`,{className:`grid grid-cols-3 gap-2`,children:ne.map((e,t)=>{let n=t<h,r=h!==2&&t<ne.length-1&&t<=h;return(0,Y.jsxs)(`button`,{type:`button`,onClick:r?()=>g(t):void 0,disabled:!r,className:K(`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:K(`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)(oo,{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&&ae[t]?`: ${ae[t]}`:``]})]},e)})})]}),t[43]=h,t[44]=ae,t[45]=be):be=t[45];let xe=h!==0&&`hidden`,Se;t[46]===xe?Se=t[47]:(Se=K(`space-y-2`,xe),t[46]=xe,t[47]=Se);let Ce;t[48]===Symbol.for(`react.memo_cache_sentinel`)?(Ce=(0,Y.jsx)(`span`,{id:`publish-provider-cards-label`,className:`text-xs font-medium text-foreground`,children:`Provider`}),t[48]=Ce):Ce=t[48];let we;t[49]===Symbol.for(`react.memo_cache_sentinel`)?(we=e=>{o(e),c(null)},t[49]=we):we=t[49];let Te;if(t[50]!==ge||t[51]!==R||t[52]!==A||t[53]!==P){let e;t[55]!==ge||t[56]!==R||t[57]!==A?(e=e=>{let t=A[e.value],n=R===e.value&&t.ready;return t.ready?(0,Y.jsxs)(CM,{value:e.value,className:K(`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)(Zc,{children:[(0,Y.jsx)(Ia,{render:(0,Y.jsx)(lr,{variant:`outline`,size:`xs`,className:`h-5 rounded-[.25rem] px-1.5 text-[10px] text-warning-foreground`,onClick:e=>{e.preventDefault(),e.stopPropagation(),ge()},children:`Setup Required`})}),(0,Y.jsx)(Rs,{side:`top`,align:`end`,className:`max-w-72`,children:t.hint??`Open Settings -> Source Control to configure this provider.`})]})]},e.value)},t[55]=ge,t[56]=R,t[57]=A,t[58]=e):e=t[58],Te=P.map(e),t[50]=ge,t[51]=R,t[52]=A,t[53]=P,t[54]=Te}else Te=t[54];let Ee;t[59]!==R||t[60]!==Te?(Ee=(0,Y.jsx)(TM,{value:R,onValueChange:we,"aria-labelledby":`publish-provider-cards-label`,className:`grid grid-cols-2 gap-2.5`,children:Te}),t[59]=R,t[60]=Te,t[61]=Ee):Ee=t[61];let De;t[62]!==Se||t[63]!==Ee?(De=(0,Y.jsxs)(`div`,{className:Se,children:[Ce,Ee]}),t[62]=Se,t[63]=Ee,t[64]=De):De=t[64];let Oe=h!==1&&`hidden`,ke;t[65]===Oe?ke=t[66]:(ke=K(`space-y-5`,Oe),t[65]=Oe,t[66]=ke);let Ae;t[67]===Symbol.for(`react.memo_cache_sentinel`)?(Ae=(0,Y.jsx)(`label`,{htmlFor:`publish-repository-path`,className:`text-xs font-medium text-foreground`,children:`Repository`}),t[67]=Ae):Ae=t[67];let je;t[68]===U.Icon?je=t[69]:(je=(0,Y.jsx)(U.Icon,{className:`size-3.5`}),t[68]=U.Icon,t[69]=je);let Me;t[70]!==W||t[71]!==je?(Me=(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:[je,W,`/`]}),t[70]=W,t[71]=je,t[72]=Me):Me=t[72];let Ne;t[73]===Symbol.for(`react.memo_cache_sentinel`)?(Ne=e=>{c(e.target.value)},t[73]=Ne):Ne=t[73];let Pe;t[74]===ue?Pe=t[75]:(Pe=e=>{e.key===`Enter`&&(e.preventDefault(),ue())},t[74]=ue,t[75]=Pe);let Fe;t[76]!==ee||t[77]!==V||t[78]!==w.isPending||t[79]!==Pe?(Fe=(0,Y.jsx)(`input`,{id:`publish-repository-path`,name:`publish-repository-path`,value:V,onChange:Ne,onKeyDown:Pe,placeholder:ee,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]=ee,t[77]=V,t[78]=w.isPending,t[79]=Pe,t[80]=Fe):Fe=t[80];let Ie;t[81]!==Me||t[82]!==Fe?(Ie=(0,Y.jsxs)(`div`,{className:`space-y-2`,children:[Ae,(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:[Me,Fe]})]}),t[81]=Me,t[82]=Fe,t[83]=Ie):Ie=t[83];let Le;t[84]===Symbol.for(`react.memo_cache_sentinel`)?(Le=(0,Y.jsx)(`span`,{id:`publish-visibility-cards-label`,className:`text-xs font-medium text-foreground`,children:`Visibility`}),t[84]=Le):Le=t[84];let Re;t[85]===Symbol.for(`react.memo_cache_sentinel`)?(Re=e=>u(e),t[85]=Re):Re=t[85];let ze=w.isPending,Be;t[86]===Symbol.for(`react.memo_cache_sentinel`)?(Be={value:`private`,label:`Private`,description:`Only invited people`,Icon:Jh},t[86]=Be):Be=t[86];let Ve;t[87]===Symbol.for(`react.memo_cache_sentinel`)?(Ve=[Be,{value:`public`,label:`Public`,description:`Anyone on the web`,Icon:Lh}],t[87]=Ve):Ve=t[87];let He;t[88]===l?He=t[89]:(He=Ve.map(e=>{let t=l===e.value;return(0,Y.jsxs)(CM,{value:e.value,className:K(`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]=He);let Ue;t[90]!==w.isPending||t[91]!==l||t[92]!==He?(Ue=(0,Y.jsxs)(`div`,{className:`space-y-2`,children:[Le,(0,Y.jsx)(TM,{value:l,onValueChange:Re,"aria-labelledby":`publish-visibility-cards-label`,disabled:ze,className:`grid grid-cols-2 gap-2.5`,children:He})]}),t[90]=w.isPending,t[91]=l,t[92]=He,t[93]=Ue):Ue=t[93];let Ge;t[94]===Symbol.for(`react.memo_cache_sentinel`)?(Ge=()=>v(aft),t[94]=Ge):Ge=t[94];let Ke=_?``:`-rotate-90`,qe;t[95]===Ke?qe=t[96]:(qe=K(`size-3.5 transition-transform`,Ke),t[95]=Ke,t[96]=qe);let Je;t[97]===qe?Je=t[98]:(Je=(0,Y.jsx)(cc,{className:qe}),t[97]=qe,t[98]=Je);let Ye;t[99]!==_||t[100]!==Je?(Ye=(0,Y.jsxs)(`button`,{type:`button`,onClick:Ge,"aria-expanded":_,className:`flex items-center gap-1 text-xs font-medium text-muted-foreground transition-colors hover:text-foreground`,children:[Je,`Advanced`]}),t[99]=_,t[100]=Je,t[101]=Ye):Ye=t[101];let Xe;t[102]!==_||t[103]!==p||t[104]!==d||t[105]!==w.isPending?(Xe=_?(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)(Yw,{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)(TM,{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)(CM,{value:e,className:K(`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]=Xe):Xe=t[106];let Ze;t[107]!==Ye||t[108]!==Xe?(Ze=(0,Y.jsxs)(`div`,{children:[Ye,Xe]}),t[107]=Ye,t[108]=Xe,t[109]=Ze):Ze=t[109];let Qe;t[110]!==G||t[111]!==w.isPending?(Qe=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)(kD,{className:`size-3.5`,"aria-hidden":!0}),`Publishing repository to `,G,`...`]}):null,t[110]=G,t[111]=w.isPending,t[112]=Qe):Qe=t[112];let $e;t[113]!==y||t[114]!==w.isPending?($e=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]=$e):$e=t[115];let et;t[116]!==ke||t[117]!==Ie||t[118]!==Ue||t[119]!==Ze||t[120]!==Qe||t[121]!==$e?(et=(0,Y.jsxs)(`div`,{className:ke,children:[Ie,Ue,Ze,Qe,$e]}),t[116]=ke,t[117]=Ie,t[118]=Ue,t[119]=Ze,t[120]=Qe,t[121]=$e,t[122]=et):et=t[122];let tt=h!==2&&`hidden`,nt;t[123]===tt?nt=t[124]:(nt=K(`space-y-4`,tt),t[123]=tt,t[124]=nt);let rt;t[125]!==U.Icon||t[126]!==G||t[127]!==x?(rt=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)(oo,{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)(U.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)(lr,{variant:`outline`,size:`sm`,className:`w-full`,onClick:()=>{let e=oe();e&&e.shell.openExternal(x.repository.url)},children:[(0,Y.jsx)(Ch,{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]=U.Icon,t[126]=G,t[127]=x,t[128]=rt):rt=t[128];let it;t[129]!==nt||t[130]!==rt?(it=(0,Y.jsx)(`div`,{className:nt,children:rt}),t[129]=nt,t[130]=rt,t[131]=it):it=t[131];let at;t[132]!==De||t[133]!==et||t[134]!==it?(at=(0,Y.jsx)(gE,{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)(IM,{children:[De,et,it]})}),t[132]=De,t[133]=et,t[134]=it,t[135]=at):at=t[135];let ot;t[136]!==ce||t[137]!==me||t[138]!==M||t[139]!==w.isPending||t[140]!==h||t[141]!==z.ready||t[142]!==ue?(ot=(0,Y.jsx)(pE,{className:`dark:border-transparent dark:bg-transparent`,children:h===2?(0,Y.jsx)(lr,{size:`sm`,onClick:()=>me(!1),children:`Done`}):(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(lr,{variant:`outline`,size:`sm`,disabled:w.isPending,onClick:()=>{if(h===0){me(!1);return}g(ift)},children:h===0?`Cancel`:`Back`}),h<1?(0,Y.jsx)(lr,{size:`sm`,disabled:!M||!z.ready,onClick:()=>g(rft),children:`Next`}):(0,Y.jsx)(lr,{size:`sm`,disabled:!ce,onClick:ue,children:w.isPending?(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(kD,{className:`size-3.5`,"aria-hidden":!0}),`Publishing...`]}):`Publish`})]})}),t[136]=ce,t[137]=me,t[138]=M,t[139]=w.isPending,t[140]=h,t[141]=z.ready,t[142]=ue,t[143]=ot):ot=t[143];let st;t[144]!==be||t[145]!==at||t[146]!==ot?(st=(0,Y.jsx)(dE,{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:[be,at,ot]})}),t[144]=be,t[145]=at,t[146]=ot,t[147]=st):st=t[147];let ct;return t[148]!==me||t[149]!==e.open||t[150]!==st?(ct=(0,Y.jsx)(lE,{open:_e,onOpenChange:me,children:st}),t[148]=me,t[149]=e.open,t[150]=st,t[151]=ct):ct=t[151],ct}function rft(e){return Math.min(1,e+1)}function ift(e){return Math.max(0,e-1)}function aft(e){return!e}function oft({gitCwd:e,activeThreadRef:t,draftId:n}){let r=Zd(S_.updateMetadata,`thread branch metadata update`),i=t?.environmentId??null,a=BD(i,Fd(uf.configValueAtom(i))?.availableEditors??[]),o=(0,J.useMemo)(()=>t?{threadRef:t}:void 0,[t]),s=xa(e=>n?e.getDraftSession(n):t?e.getDraftThreadByRef(t):null),c=A_(t,{waitForShell:s!==null}),l=xa(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&&eC.update(e.toastId,{type:`loading`,title:e.title,description:Xdt(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,...Vdt(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=Bdt(e);t&&E(t.branch)},[E]),O=$r(i!==null&&e!==null?ov.status({environmentId:i,input:{cwd:e}}):null),k=Zd(ov.refreshStatus,{reportFailure:!1}),{data:A,error:j}=O,M=(0,J.useMemo)(()=>jv(A?.sourceControlProvider),[A?.sourceControlProvider]),N=M.terminology,P=M.Icon,I=A?.isRepo??!0,L=A?.hasPrimaryRemote??!1,R=A,z=R?.workingTree.files??[],B=z.filter(e=>!m.has(e.path)),V=m.size===0,H=B.length===0,U=tlt(C),W=rlt(C),ee=nlt(C),G=elt(C,Gdt),te=!c&&s?.envMode===`worktree`&&s.worktreePath===null;(0,J.useEffect)(()=>{if(G||te||c)return;let e=Hdt({threadBranch:s?.branch??null,gitStatus:R});e&&E(e.branch)},[c,s?.branch,R,G,te,E]);let ne=(0,J.useMemo)(()=>R?.isDefaultRef??!1,[R?.isDefaultRef]),re=(0,J.useMemo)(()=>Idt(R,G,L),[R,L,G]),ie=(0,J.useMemo)(()=>Ldt(R,G,ne,L),[R,L,ne,G]),ae=ie.disabled?ie.hint??`This action is currently unavailable.`:null,se=b?zdt({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,Wdt(k,i,e)},Udt)},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 ce=(0,J.useCallback)(async()=>{let e=oe();if(!e){eC.add({type:`error`,title:`Link opening is unavailable.`,data:o});return}let t=R?.pr?.state===`open`?R.pr.url:null;if(!t){eC.add({type:`error`,title:`No open pull request found.`,data:o});return}dC(e.shell,t).catch(e=>{console.error(e),eC.add($S({type:`error`,title:`Unable to open pull request link`,description:e instanceof Error?e.message:`An error occurred.`,...o===void 0?{}:{data:o}}))})},[R,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??R,d=u?.refName??null,f=s?!1:ne,p=(t===`commit`||t===`commit_push`||t===`commit_push_pr`)&&(t===`commit`||!!u?.hasWorkingTreeChanges||s);if(!i&&Rdt(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=Fdt({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=wi(),_=c??eC.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&&eC.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 W.run({actionId:g,action:t,...n?{commitMessage:n}:{},...s?{featureBranch:s}:{},...l?{filePaths:l}:{},onProgress:v});if(S.current=null,y._tag===`Failure`){if(We(y)){eC.close(_);return}let e=F(y);eC.update(_,$S({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=()=>{eC.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=oe();e&&(C(),e.shell.openExternal(E.url))}});let k={...h,dismissAfterVisibleMs:1e4};O?eC.update(_,$S({type:`success`,title:b.toast.title,description:b.toast.description,timeout:0,actionProps:O,data:k})):eC.update(_,{type:`success`,title:b.toast.title,description:b.toast.description,timeout:0,data:k})});let le=()=>{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})},ue=()=>{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})},de=()=>{if(!u)return;let e=f.trim();d(!1),p(``),h(new Set),_(!1),w({action:`commit`,...e?{commitMessage:e}:{},...V?{}:{filePaths:B.map(e=>e.path)},featureBranch:!0,skipDefaultBranchPrompt:!0})},fe=()=>{if(ie.kind===`open_pr`){ce();return}if(ie.kind===`open_publish`){y(!0);return}if(ie.kind===`run_pull`){let e=eC.add({type:`loading`,title:`Pulling...`,timeout:0,data:o});(async()=>{let t=await ee.run();if(t._tag===`Failure`){if(We(t)){eC.close(e);return}let n=F(t);eC.update(e,$S({type:`error`,title:`Pull failed`,description:n instanceof Error?n.message:`An error occurred.`,...o===void 0?{}:{data:o}}));return}let n=t.value;eC.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(ie.kind===`show_hint`){eC.add({type:`info`,title:ie.label,description:ie.hint,data:o});return}ie.action&&w({action:ie.action})},pe=e=>{if(!e.disabled){if(e.kind===`open_pr`){ce();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)}},me=()=>{if(!u)return;let e=f.trim();d(!1),p(``),h(new Set),_(!1),w({action:`commit`,...e?{commitMessage:e}:{},...V?{}:{filePaths:B.map(e=>e.path)}})},he=(0,J.useCallback)(t=>{if(!e){eC.add({type:`error`,title:`Editor opening is unavailable.`,data:o});return}let n=i4(t,e);(async()=>{let e=await a(n);if(e._tag===`Success`||We(e))return;let t=F(e);eC.add($S({type:`error`,title:`Unable to open file`,description:t instanceof Error?t.message:`An error occurred.`,...o===void 0?{}:{data:o}}))})()},[e,a,o]),ge=I&&R!==null&&!L;return e?(0,Y.jsxs)(Y.Fragment,{children:[I?(0,Y.jsxs)(b3,{"aria-label":`Git actions`,className:`shrink-0`,children:[ae?(0,Y.jsxs)(UO,{children:[(0,Y.jsxs)(WO,{openOnHover:!0,render:(0,Y.jsx)(lr,{"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)(tft,{quickAction:ie,SourceControlIcon:P}),(0,Y.jsx)(`span`,{className:`sr-only @3xl/header-actions:not-sr-only @3xl/header-actions:ml-0.5`,children:ie.label})]}),(0,Y.jsx)(GO,{tooltipStyle:!0,side:`bottom`,align:`start`,children:ae})]}):(0,Y.jsxs)(lr,{variant:`outline`,size:`xs`,disabled:G||ie.disabled,onClick:fe,children:[(0,Y.jsx)(tft,{quickAction:ie,SourceControlIcon:P}),(0,Y.jsx)(`span`,{className:`sr-only @3xl/header-actions:not-sr-only @3xl/header-actions:ml-0.5`,children:ie.label})]}),(0,Y.jsx)(x3,{className:`hidden @3xl/header-actions:block`}),(0,Y.jsxs)(Fr,{onOpenChange:t=>{t&&Wdt(k,i,e)},children:[(0,Y.jsx)(sa,{render:(0,Y.jsx)(lr,{"aria-label":`Git action options`,size:`icon-xs`,variant:`outline`}),disabled:G,children:(0,Y.jsx)(cc,{"aria-hidden":`true`,className:`size-4`})}),(0,Y.jsxs)(mt,{align:`end`,className:`w-full`,children:[re.map(e=>{let t=Zdt({item:e,gitStatus:R,isBusy:G,hasPrimaryRemote:L});return e.disabled&&t?(0,Y.jsxs)(UO,{children:[(0,Y.jsx)(WO,{openOnHover:!0,nativeButton:!1,render:(0,Y.jsx)(`span`,{className:`block w-max cursor-not-allowed`}),children:(0,Y.jsxs)(Fi,{className:`w-full`,disabled:!0,children:[(0,Y.jsx)(eft,{icon:e.icon,SourceControlIcon:P}),e.label]})}),(0,Y.jsx)(GO,{tooltipStyle:!0,side:`left`,align:`center`,children:t})]},`${e.id}-${e.label}`):(0,Y.jsxs)(Fi,{disabled:e.disabled,onClick:()=>{pe(e)},children:[(0,Y.jsx)(eft,{icon:e.icon,SourceControlIcon:P}),e.label]},`${e.id}-${e.label}`)}),ge?(0,Y.jsxs)(Fi,{disabled:G,onClick:()=>{y(!0)},children:[(0,Y.jsx)(_h,{}),`Publish repository...`]}):null,R?.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.`}),R&&R.refName!==null&&!R.hasWorkingTreeChanges&&R.behindCount>0&&R.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)(lr,{variant:`outline`,size:`xs`,disabled:U.isPending,onClick:()=>{(async()=>{let e=await U.run();if(e._tag===`Success`||We(e))return;let t=F(e);eC.add($S({type:`error`,title:`Git initialization failed`,description:t instanceof Error?t.message:`An error occurred.`,...o===void 0?{}:{data:o}}))})()},children:[(0,Y.jsx)($te,{className:`size-3.5`,"aria-hidden":!0}),(0,Y.jsx)(`span`,{className:`ml-0.5`,children:U.isPending?`Initializing...`:`Initialize Git`})]}),(0,Y.jsx)(lE,{open:u,onOpenChange:e=>{e||(d(!1),p(``),h(new Set),_(!1))},children:(0,Y.jsxs)(dE,{children:[(0,Y.jsxs)(fE,{children:[(0,Y.jsx)(mE,{children:Qdt}),(0,Y.jsx)(hE,{children:$dt})]}),(0,Y.jsxs)(gE,{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:R?.refName??`(detached HEAD)`}),ne&&(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&&z.length>0&&(0,Y.jsx)(WM,{checked:V,indeterminate:!V&&!H,onCheckedChange:()=>{h(V?new Set(z.map(e=>e.path)):new Set)}}),(0,Y.jsx)(`span`,{className:`text-muted-foreground`,children:`Files`}),!V&&!g&&(0,Y.jsxs)(`span`,{className:`text-muted-foreground`,children:[`(`,B.length,` of `,z.length,`)`]})]}),z.length>0&&(0,Y.jsx)(lr,{variant:`ghost`,size:`xs`,onClick:()=>_(e=>!e),children:g?`Done`:`Edit`})]}),!R||z.length===0?(0,Y.jsx)(`p`,{className:`font-medium`,children:`none`}):(0,Y.jsxs)(`div`,{className:`space-y-2`,children:[(0,Y.jsx)(sT,{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:z.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)(WM,{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:()=>he(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:[`+`,B.reduce((e,t)=>e+t.insertions,0)]}),(0,Y.jsx)(`span`,{className:`text-muted-foreground`,children:` / `}),(0,Y.jsxs)(`span`,{className:`text-destructive`,children:[`-`,B.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)(Ru,{value:f,onChange:e=>p(e.target.value),placeholder:`Leave empty to auto-generate`,size:`sm`})]})]}),(0,Y.jsxs)(pE,{variant:`bare`,children:[(0,Y.jsx)(lr,{variant:`outline`,size:`sm`,onClick:()=>{d(!1),p(``),h(new Set),_(!1)},children:`Cancel`}),(0,Y.jsx)(lr,{variant:`outline`,size:`sm`,disabled:H,onClick:de,children:`Commit on new refName`}),(0,Y.jsx)(lr,{size:`sm`,disabled:H,onClick:me,children:`Commit`})]})]})}),(0,Y.jsx)(nft,{open:v,onOpenChange:y,environmentId:i,gitCwd:e}),(0,Y.jsx)(lE,{open:b!==null,onOpenChange:e=>{e||x(null)},children:(0,Y.jsxs)(dE,{className:`max-w-xl`,children:[(0,Y.jsxs)(fE,{children:[(0,Y.jsx)(mE,{children:se?.title??`Run action on default refName?`}),(0,Y.jsx)(hE,{children:se?.description})]}),(0,Y.jsxs)(pE,{className:`dark:border-transparent dark:bg-transparent sm:flex-wrap sm:items-center`,children:[(0,Y.jsx)(lr,{className:`w-full sm:mr-auto sm:w-auto`,variant:`outline`,size:`sm`,onClick:()=>x(null),children:`Abort`}),(0,Y.jsx)(lr,{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:le,children:se?.continueLabel??`Continue`}),(0,Y.jsx)(lr,{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:ue,children:`Checkout feature branch & continue`})]})]})})]}):null}var sft=[{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 f9(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)(Oh,{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)(Uh,{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)(Tg,{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)(Rh,{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)(Bte,{className:i}),t[8]=i,t[9]=e),e}let a;return t[10]===i?a=t[11]:(a=(0,Y.jsx)(og,{className:i}),t[10]=i,t[11]=a),a}var cft=[];function lft({scripts:e,fileScripts:t=cft,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,I]=(0,J.useState)(!1),L=(0,J.useMemo)(()=>{if(r){let t=e.find(e=>e.id===r);if(t)return t}return Pct(e)},[r,e]),R=(0,J.useMemo)(()=>t.filter(t=>!e.some(e=>e.command===t.command||e.name.toLowerCase()===t.name.toLowerCase())),[t,e]),z=l!==null,B=`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`,V=e=>{if(e.key===`Tab`)return;if(e.preventDefault(),e.key===`Backspace`||e.key===`Delete`){E(``);return}let t=V4(e,navigator.platform);t&&E(t)},H=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??Nct(n,e.map(e=>e.id)),a=Dct({keybinding:T,command:K7(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(!We(s)){let e=F(s);M(e instanceof Error?e.message:`Failed to save action.`)}return}m(!1),S(!1)},U=()=>{u(null),g(``),v(``),b(`play`),S(!1),w(!1),E(``),O(``),A(!1),M(null),m(!0)},W=e=>{f({scripts:!1,imports:!1}),u(e.id),g(e.name),v(e.command),b(e.icon),S(!1),w(e.runOnWorktreeCreate),E(Oct(n,K7(e.id))??``),O(e.previewUrl??``),A(e.autoOpenPreview??!1),M(null),m(!0)},ee=(0,J.useCallback)(()=>{l&&(I(!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`&&!We(n)){let e=F(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)}},te=R.length>0&&(0,Y.jsxs)(Y.Fragment,{children:[L&&(0,Y.jsx)(tt,{}),(0,Y.jsxs)(yf,{children:[(0,Y.jsx)(P,{children:`From p4.json`}),R.map(e=>(0,Y.jsxs)(Fi,{className:B,onClick:()=>void G(e),children:[(0,Y.jsx)(f9,{icon:e.icon??`play`,className:`size-4`}),(0,Y.jsx)(`span`,{className:`truncate`,children:e.name}),(0,Y.jsx)(Qt,{className:`ms-auto`,children:(0,Y.jsx)(bh,{className:`size-3.5`,"aria-label":`Import`})})]},`${e.name} ${e.command}`))]})]});return(0,Y.jsxs)(Y.Fragment,{children:[L?(0,Y.jsxs)(b3,{"aria-label":`Project scripts`,children:[(0,Y.jsxs)(Zc,{children:[(0,Y.jsxs)(Ia,{render:(0,Y.jsx)(lr,{size:`xs`,variant:`outline`,"aria-label":`Run ${L.name}`,onClick:()=>i(L)}),children:[(0,Y.jsx)(f9,{icon:L.icon}),(0,Y.jsx)(`span`,{className:`sr-only @3xl/header-actions:not-sr-only @3xl/header-actions:ml-0.5`,children:L.name})]}),(0,Y.jsxs)(Rs,{side:`top`,children:[`Run `,L.name]})]}),(0,Y.jsx)(x3,{className:`hidden @3xl/header-actions:block`}),(0,Y.jsxs)(Fr,{highlightItemOnHover:!1,open:d.scripts,onOpenChange:e=>f({scripts:e,imports:!1}),children:[(0,Y.jsx)(sa,{render:(0,Y.jsx)(lr,{size:`icon-xs`,variant:`outline`,"aria-label":`Script actions`}),children:(0,Y.jsx)(cc,{className:`size-4`})}),(0,Y.jsxs)(mt,{align:`end`,children:[e.map(e=>{let t=Rg(n,K7(e.id));return(0,Y.jsxs)(Fi,{className:`group ${B}`,onClick:()=>i(e),children:[(0,Y.jsx)(f9,{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)(Qt,{className:`ms-0 transition-opacity group-hover:opacity-0 group-focus-visible:opacity-0`,children:t}),(0,Y.jsx)(lr,{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(),W(e)},children:(0,Y.jsx)(fg,{className:`size-3.5`})})]})]},e.id)}),te,(0,Y.jsxs)(Fi,{className:B,onClick:U,children:[(0,Y.jsx)(sg,{className:`size-4`}),`Add action`]})]})]})]}):R.length>0?(0,Y.jsxs)(Fr,{highlightItemOnHover:!1,open:d.imports,onOpenChange:e=>f({scripts:!1,imports:e}),children:[(0,Y.jsxs)(sa,{render:(0,Y.jsx)(lr,{size:`xs`,variant:`outline`,"aria-label":`Project actions`}),children:[(0,Y.jsx)(sg,{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)(cc,{className:`size-3.5`})]}),(0,Y.jsxs)(mt,{align:`end`,children:[te,(0,Y.jsxs)(Fi,{className:B,onClick:U,children:[(0,Y.jsx)(sg,{className:`size-4`}),`Add action`]})]})]}):(0,Y.jsxs)(Zc,{children:[(0,Y.jsxs)(Ia,{render:(0,Y.jsx)(lr,{size:`xs`,variant:`outline`,"aria-label":`Add action`,onClick:U}),children:[(0,Y.jsx)(sg,{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)(Rs,{side:`top`,children:`Add action`})]}),(0,Y.jsx)(lE,{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)(dE,{children:[(0,Y.jsxs)(fE,{children:[(0,Y.jsx)(mE,{children:z?`Edit Action`:`Add Action`}),(0,Y.jsx)(hE,{children:`Actions are project-scoped commands you can run from the top bar or keybindings.`})]}),(0,Y.jsx)(gE,{children:(0,Y.jsxs)(`form`,{id:c,className:`space-y-4`,onSubmit:H,children:[(0,Y.jsxs)(`div`,{className:`space-y-1.5`,children:[(0,Y.jsx)(ME,{htmlFor:`script-name`,children:`Name`}),(0,Y.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,Y.jsxs)(UO,{onOpenChange:S,open:x,children:[(0,Y.jsx)(WO,{render:(0,Y.jsx)(lr,{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)(f9,{icon:y,className:`size-4.5`})}),(0,Y.jsx)(GO,{align:`start`,children:(0,Y.jsx)(`div`,{className:`grid grid-cols-3 gap-2`,children:sft.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)(f9,{icon:e.id,className:`size-4`}),(0,Y.jsx)(`span`,{children:e.label})]},e.id))})})]}),(0,Y.jsx)(Yw,{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)(ME,{htmlFor:`script-keybinding`,children:`Keybinding`}),(0,Y.jsx)(Yw,{id:`script-keybinding`,placeholder:`Press shortcut`,value:T,readOnly:!0,onKeyDown:V}),(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)(ME,{htmlFor:`script-command`,children:`Command`}),(0,Y.jsx)(Ru,{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)(ME,{htmlFor:`script-preview-url`,children:`Preview URL (optional)`}),(0,Y.jsx)(Yw,{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)(vM,{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)(vM,{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)(pE,{className:`dark:border-transparent dark:bg-transparent`,children:[z&&(0,Y.jsx)(lr,{type:`button`,variant:`destructive-outline`,className:`mr-auto`,onClick:()=>I(!0),children:`Delete`}),(0,Y.jsx)(lr,{type:`button`,variant:`outline`,onClick:()=>{m(!1)},children:`Cancel`}),(0,Y.jsx)(lr,{form:c,type:`submit`,children:z?`Save changes`:`Save action`})]})]})}),(0,Y.jsx)(c3,{open:N,onOpenChange:I,children:(0,Y.jsxs)(l3,{children:[(0,Y.jsxs)(u3,{children:[(0,Y.jsxs)(f3,{children:[`Delete action "`,h,`"?`]}),(0,Y.jsx)(p3,{children:`This action cannot be undone.`})]}),(0,Y.jsxs)(d3,{children:[(0,Y.jsx)(m3,{render:(0,Y.jsx)(lr,{variant:`outline`}),children:`Cancel`}),(0,Y.jsx)(lr,{variant:`destructive`,onClick:ee,children:`Delete action`})]})]})})]})}function uft(e,t){if(t===null)return null;let n=e.find(e=>e.threadId===t);return n===void 0?null:{label:n.externalRef?.identifier??n.readableId??`Task`,taskId:n.taskId}}function dft(e){let t=(0,X.c)(17),{environmentId:n,threadId:r}=e,i;t[0]===n?i=t[1]:(i=rU.board({environmentId:n,input:null}),t[0]=n,t[1]=i);let a=$r(i),o;t[2]===a.data?o=t[3]:(o=a.data??[],t[2]=a.data,t[3]=o);let s=o,c;t[4]!==s||t[5]!==r?(c=uft(s,r),t[4]=s,t[5]=r,t[6]=c):c=t[6];let l=c;if(l===null)return null;let u=`Open task ${l.label}`,d;t[7]!==n||t[8]!==r?(d=()=>wu.getState().open($u(n,r),`task`),t[7]=n,t[8]=r,t[9]=d):d=t[9];let f;t[10]!==l.label||t[11]!==u||t[12]!==d?(f=(0,Y.jsx)(Ia,{render:(0,Y.jsx)(`button`,{type:`button`,"aria-label":u,onClick:d,className:`inline-flex h-6 shrink-0 cursor-pointer items-center rounded-md border border-border bg-background px-1.5 text-[11px] text-muted-foreground tabular-nums transition-colors hover:bg-accent hover:text-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring`,children:l.label})}),t[10]=l.label,t[11]=u,t[12]=d,t[13]=f):f=t[13];let p;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,Y.jsx)(Rs,{side:`bottom`,children:`Open this thread’s task`}),t[14]=p):p=t[14];let m;return t[15]===f?m=t[16]:(m=(0,Y.jsxs)(Zc,{children:[f,p]}),t[15]=f,t[16]=m),m}var p9=(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},fft=e=>{let t=(0,X.c)(23),[n,r]=p9(`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},pft=e=>{let t=(0,X.c)(23),[n,r]=p9(`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},mft=e=>{let t=(0,X.c)(23),[n,r]=p9(`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},hft=e=>{let t=(0,X.c)(23),[n,r]=p9(`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},gft=e=>{let t=(0,X.c)(23),[n,r]=p9(`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},_ft=e=>{let t=(0,X.c)(23),[n,r]=p9(`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},vft=e=>{let t=(0,X.c)(23),[n,r]=p9(`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},yft=e=>{let t=(0,X.c)(23),[n,r]=p9(`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},bft=e=>{let t=(0,X.c)(23),[n,r]=p9(`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},xft=e=>{let t=(0,X.c)(23),[n,r]=p9(`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},Sft=e=>{let t=(0,X.c)(23),[n,r]=p9(`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},Cft=e=>{let t=(0,X.c)(23),[n,r]=p9(`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},wft=(e,t)=>{let n=[{label:`Cursor`,Icon:Tv,value:`cursor`,kind:`brand`},{label:`Trae`,Icon:Tae,value:`trae`,kind:`brand`},{label:`Kiro`,Icon:Eae,value:`kiro`,kind:`brand`},{label:`VS Code`,Icon:Dae,value:`vscode`,kind:`brand`},{label:`VS Code Insiders`,Icon:Oae,value:`vscode-insiders`,kind:`brand`},{label:`VSCodium`,Icon:kae,value:`vscodium`,kind:`brand`},{label:`Zed`,Icon:Aae,value:`zed`,kind:`brand`},{label:`Antigravity`,Icon:Nae,value:`antigravity`,kind:`brand`},{label:`IntelliJ IDEA`,Icon:_ft,value:`idea`,kind:`brand`},{label:`Aqua`,Icon:fft,value:`aqua`,kind:`brand`},{label:`CLion`,Icon:pft,value:`clion`,kind:`brand`},{label:`DataGrip`,Icon:mft,value:`datagrip`,kind:`brand`},{label:`DataSpell`,Icon:hft,value:`dataspell`,kind:`brand`},{label:`GoLand`,Icon:gft,value:`goland`,kind:`brand`},{label:`PhpStorm`,Icon:vft,value:`phpstorm`,kind:`brand`},{label:`PyCharm`,Icon:yft,value:`pycharm`,kind:`brand`},{label:`Rider`,Icon:bft,value:`rider`,kind:`brand`},{label:`RubyMine`,Icon:xft,value:`rubymine`,kind:`brand`},{label:`RustRover`,Icon:Sft,value:`rustrover`,kind:`brand`},{label:`WebStorm`,Icon:Cft,value:`webstorm`,kind:`brand`},{label:kt(e)?`Finder`:mn(e)?`Explorer`:`Files`,Icon:kh,value:`file-manager`,kind:`generic`}],r=new Set(t);return n.filter(e=>r.has(e.value))};function Tft(e){return K(e===`brand`?`text-foreground opacity-100`:`text-muted-foreground`)}var Eft=(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=Zd(v_.openInEditor,`open in editor`),[d,f]=uye(i),p;t[0]===i?p=t[1]:(p=wft(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=Rg(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=>{Qne(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=b3,C=lr,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:K(`size-3.5`,Tft(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)(x3,{...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)(lr,{"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)(cc,{"aria-hidden":`true`,className:`size-4`}),t[34]=P):P=t[34];let F;t[35]===N?F=t[36]:(F=(0,Y.jsx)(sa,{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)(Fi,{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)(Fi,{onClick:()=>_(r),children:[(0,Y.jsx)(n,{"aria-hidden":`true`,className:Tft(i)}),t,r===d&&y&&(0,Y.jsx)(Qt,{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)(mt,{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)(Fr,{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}),Dft=d6e(Es),Oft=``,kft=Na(ec(!1)).pipe($o(`project-file-query:empty`));function m9(e,t,n){return b_.optimisticFile({environmentId:e,cwd:t,relativePath:n})}function Aft(e,t){return b_.listEntries({environmentId:e,input:{cwd:t}})}function jft(e,t,n){return b_.readFile({environmentId:e,input:{cwd:t,relativePath:n??Oft}})}function Mft(e,t,n,r){jt.set(m9(e,t,n),{confirmedAgainst:void 0,data:{relativePath:n,contents:r,byteLength:new TextEncoder().encode(r).byteLength,truncated:!1}})}function Nft(e,t,n){return jt.get(m9(e,t,n))?.data??null}function Pft(e,t,n,r){let i=m9(e,t,n),a=jt.get(i);if(a?.data.contents!==r)return!1;let o=jft(e,t,n),s={...a,confirmedAgainst:jt.get(o)};return jt.set(i,s),jt.refresh(o),Rn(jt,o,{reportDefect:!1,reportFailure:!1}).then(e=>{e._tag===`Success`&&jt.get(i)===s&&jt.set(i,null)}),!0}function Fft(e){if(e._tag!==`Failure`)return null;let t=nc(e.cause);return t instanceof Error?t.message:`Workspace query failed.`}function Ift(e,t){let n=(0,X.c)(14),r;n[0]!==t||n[1]!==e?(r=Aft(e,t),n[0]=t,n[1]=e,n[2]=r):r=n[2];let i=r,a=Fd(i),o=Xr(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=sn(Eu(a)),n[5]=a,n[6]=l);let u;n[7]===a?u=n[8]:(u=Fft(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 Lft(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?jft(e,t,n):kft,i[0]=t,i[1]=a,i[2]=e,i[3]=n,i[4]=o):o=i[4];let s=o,c=Fd(s),l=Xr(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=sn(Eu(c)),i[7]=c,i[8]=f);let p=f,m=n??Oft,h;i[9]!==t||i[10]!==e||i[11]!==m?(h=m9(e,t,m),i[9]=t,i[10]=e,i[11]=m,i[12]=h):h=i[12];let g=Fd(h),_=(n===null?null:g)?.data??p,v;i[13]===c?v=i[14]:(v=Fft(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 Rft=$n(Dft),h9=[];function zft(e,t){let n=(0,X.c)(3),r=Lft(e,t??``,Ra,t!==null),i=r.data&&!r.data.truncated?r.data.contents:null,a;bb0:{if(i===null){a=h9;break bb0}let e,t;if(n[0]===i?(e=n[1],t=n[2]):(e=Rft(i),t=Hl(e),n[0]=i,n[1]=e,n[2]=t),t){a=h9;break bb0}a=e.value.scripts??h9}return a}function Bft(e){return!!e.activeProjectName&&e.primaryEnvironmentId!==null&&e.activeThreadEnvironmentId===e.primaryEnvironmentId}var Vft=(0,J.memo)(function(e){let t=(0,X.c)(49),{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=wd(),x=zft(n,l?s:null),S;t[0]!==o||t[1]!==n||t[2]!==b?(S=Bft({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)(Zc,{children:[(0,Y.jsxs)(Ia,{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)(qy,{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)(Rs,{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]!==n||t[10]!==r?(T=(0,Y.jsx)(dft,{environmentId:n,threadId:r}),t[9]=n,t[10]=r,t[11]=T):T=t[11];let E;t[12]===a?E=t[13]:(E=(0,Y.jsxs)(Zc,{children:[(0,Y.jsx)(Ia,{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)(Rs,{side:`top`,children:a})]}),t[12]=a,t[13]=E);let D;t[14]!==w||t[15]!==T||t[16]!==E?(D=(0,Y.jsxs)(`div`,{className:`flex min-w-0 flex-1 items-center gap-2 overflow-hidden sm:gap-3`,children:[w,T,E]}),t[14]=w,t[15]=T,t[16]=E,t[17]=D):D=t[17];let O=p?`pr-0`:`pr-16`,k;t[18]===O?k=t[19]:(k=K(`flex shrink-0 items-center justify-end gap-2 @3xl/header-actions:gap-3`,O),t[18]=O,t[19]=k);let A;t[20]!==l||t[21]!==x||t[22]!==d||t[23]!==_||t[24]!==y||t[25]!==g||t[26]!==v||t[27]!==u?(A=l&&(0,Y.jsx)(lft,{scripts:l,fileScripts:x,keybindings:d,preferredScriptId:u,onRunScript:g,onAddScript:_,onUpdateScript:v,onDeleteScript:y}),t[20]=l,t[21]=x,t[22]=d,t[23]=_,t[24]=y,t[25]=g,t[26]=v,t[27]=u,t[28]=A):A=t[28];let j;t[29]!==n||t[30]!==f||t[31]!==d||t[32]!==c||t[33]!==C?(j=C&&(0,Y.jsx)(Eft,{environmentId:n,keybindings:d,availableEditors:f,openInCwd:c}),t[29]=n,t[30]=f,t[31]=d,t[32]=c,t[33]=C,t[34]=j):j=t[34];let M;t[35]!==o||t[36]!==n||t[37]!==r||t[38]!==i||t[39]!==m?(M=o&&(0,Y.jsx)(oft,{gitCwd:m,activeThreadRef:$u(n,r),...i?{draftId:i}:{}}),t[35]=o,t[36]=n,t[37]=r,t[38]=i,t[39]=m,t[40]=M):M=t[40];let N;t[41]!==M||t[42]!==k||t[43]!==A||t[44]!==j?(N=(0,Y.jsxs)(`div`,{"data-chat-header-actions":!0,className:k,children:[A,j,M]}),t[41]=M,t[42]=k,t[43]=A,t[44]=j,t[45]=N):N=t[45];let P;return t[46]!==N||t[47]!==D?(P=(0,Y.jsxs)(`div`,{className:`@container/header-actions flex min-w-0 flex-1 items-center gap-2 sm:gap-3`,children:[D,N]}),t[46]=N,t[47]=D,t[48]=P):P=t[48],P}),Hft=(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)(lne,{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)(Ia,{render:(0,Y.jsx)(M4,{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)(Rs,{side:`bottom`,children:p}),t[5]=p,t[6]=m);let h;t[7]!==f||t[8]!==m?(h=(0,Y.jsxs)(Zc,{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)(ng,{className:`size-3.5`}),t[10]=_):_=t[10];let v;t[11]!==l||t[12]!==o||t[13]!==g?(v=(0,Y.jsx)(Ia,{render:(0,Y.jsx)(M4,{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)(Rs,{side:`bottom`,children:y}),t[15]=y,t[16]=b);let x;t[17]!==b||t[18]!==v?(x=(0,Y.jsxs)(Zc,{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}),Uft=(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)(Zh,{className:`size-3.5`}):(0,Y.jsx)(Yh,{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)(Ia,{render:(0,Y.jsx)(M4,{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)(Rs,{side:`bottom`,children:i}),t[7]=i,t[8]=s);let c;return t[9]!==o||t[10]!==s?(c=(0,Y.jsxs)(Zc,{children:[o,s]}),t[9]=o,t[10]=s,t[11]=c):c=t[11],c});function Wft(e){let t=(0,X.c)(44),{environmentId:n,threadId:r,threadRef:i}=e,a;t[0]===n?a=t[1]:(a=rU.board({environmentId:n,input:null}),t[0]=n,t[1]=a);let o=$r(a),s=E_(),c=Zd(rU.updateTask),l=Zd(rU.deleteTask),u=Zd(rU.startTaskThread),d=Pm(),f;t[2]===o.data?f=t[3]:(f=o.data??[],t[2]=o.data,t[3]=f);let p=f,m;t[4]!==p||t[5]!==r?(m=p.find(e=>e.threadId===r)??null,t[4]=p,t[5]=r,t[6]=m):m=t[6];let h=m,g;if(t[7]!==s||t[8]!==n){let e;t[10]===n?e=t[11]:(e=e=>e.environmentId===n,t[10]=n,t[11]=e),g=s.filter(e),t[7]=s,t[8]=n,t[9]=g}else g=t[9];let _=g,v;t[12]===p?v=t[13]:(v=S9e(p),t[12]=p,t[13]=v);let y=v,b;t[14]===i?b=t[15]:(b=()=>wu.getState().closeSurface(i,uu),t[14]=i,t[15]=b);let x=b,S;t[16]!==n||t[17]!==d?(S=e=>{d({to:`/$environmentId/$threadId`,params:Lc($u(n,e))})},t[16]=n,t[17]=d,t[18]=S):S=t[18];let C=S;if(h===null){let e;return t[19]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,Y.jsx)(LN,{children:(0,Y.jsxs)(RN,{children:[(0,Y.jsx)(VN,{children:`No task linked`}),(0,Y.jsx)(HN,{children:`This thread is not working a task on the board. Start one from a task to link them.`})]})}),t[19]=e):e=t[19],e}let w;t[20]!==n||t[21]!==h.taskId||t[22]!==c?(w=e=>{c({environmentId:n,input:{taskId:h.taskId,...e}})},t[20]=n,t[21]=h.taskId,t[22]=c,t[23]=w):w=t[23];let T;t[24]!==n||t[25]!==C||t[26]!==u||t[27]!==h.taskId||t[28]!==c?(T=e=>{(async()=>{if((await c({environmentId:n,input:{taskId:h.taskId,...e}}))._tag===`Failure`)return;let t=await u({environmentId:n,input:{taskId:h.taskId}});t._tag!==`Failure`&&C(t.value.threadId)})()},t[24]=n,t[25]=C,t[26]=u,t[27]=h.taskId,t[28]=c,t[29]=T):T=t[29];let E;t[30]!==x||t[31]!==l||t[32]!==n||t[33]!==h.taskId?(E=()=>{x(),l({environmentId:n,input:{taskId:h.taskId}})},t[30]=x,t[31]=l,t[32]=n,t[33]=h.taskId,t[34]=E):E=t[34];let D;return t[35]!==x||t[36]!==y||t[37]!==C||t[38]!==_||t[39]!==E||t[40]!==w||t[41]!==T||t[42]!==h?(D=(0,Y.jsx)(eet,{task:h,projects:_,boardLabels:y,showScope:!1,onClose:x,onScope:Gft,onOpenThread:C,onSave:w,onStart:T,onDelete:E},h.taskId),t[35]=x,t[36]=y,t[37]=C,t[38]=_,t[39]=E,t[40]=w,t[41]=T,t[42]=h,t[43]=D):D=t[43],D}function Gft(){}function Kft(){let e=(0,X.c)(2),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,Y.jsx)(`header`,{className:K(`border-b border-border px-3 transition-[padding-left] duration-200 ease-linear motion-reduce:transition-none sm:px-5`,Gm?`workspace-topbar drag-region`:`workspace-topbar`,ON),children:Gm?(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)(HT,{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)(LN,{className:`flex-1`,children:(0,Y.jsx)(`div`,{className:`w-full max-w-lg px-8 py-12`,children:(0,Y.jsxs)(RN,{className:`max-w-none`,children:[(0,Y.jsx)(VN,{className:`text-foreground text-xl`,children:`Pick a thread to continue`}),(0,Y.jsx)(HN,{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 qft(e){return!e||e.status===`ready`||e.status===`disabled`?null:[e.instanceId,e.status,e.auth.status,e.message??``].join(`\0`)}function Jft(e,t){let n=qft(e);return n!==null&&n!==t}var Yft=(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()||Fu(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=K(`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)(Bh,{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)(Zc,{children:[(0,Y.jsx)(Ia,{render:(0,Y.jsx)(`div`,{className:`line-clamp-3 text-muted-foreground`,children:c})}),(0,Y.jsx)(Rs,{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)(Ju,{"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}),Xft=(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)(hh,{}),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)(aE,{children:(0,Y.jsxs)(Zc,{children:[(0,Y.jsx)(Ia,{render:a,children:n}),(0,Y.jsx)(Rs,{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)(oE,{children:(0,Y.jsx)(lr,{variant:`ghost`,size:`icon-xs`,"aria-label":`Dismiss error`,onClick:r,children:(0,Y.jsx)(Ju,{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)(rE,{variant:`error`,children:[i,o,s]})}),t[6]=o,t[7]=s,t[8]=c):c=t[8],c}),g9=220,Zft={opacity:0,transform:`translate3d(0, 4rem, 0)`},Qft={opacity:0,transform:`translate3d(0, 7rem, 0)`},$ft={opacity:1,transform:`none`},ept={transition:`transform ${g9}ms ease-in, opacity ${g9}ms ease-in`};function tpt(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?.()},g9))},t[14]=c,t[15]=l);let u=l;t[16]===n?g=t[17]:(g=K(`group/banner-stack mx-auto mb-2 max-w-4xl`,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=K(`relative flex flex-col-reverse`,_),t[18]=_,t[19]=f),t[20]===s?p=t[21]:(p=s?(0,Y.jsx)(`div`,{className:K(`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=K(`relative z-10`,v),t[22]=v,t[23]=y);let b=c===d.id?Zft:$ft,x;t[24]===b?x=t[25]:(x={...ept,...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)(npt,{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:K(`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:K(`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:K(c===e.id?`pointer-events-none`:null),style:{...ept,...c===e.id?Qft:$ft},children:(0,Y.jsx)(npt,{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 npt(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=K(`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)(iE,{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)(aE,{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)(oE,{className:K(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)(lr,{size:`icon-xs`,variant:`ghost`,"aria-label":n.dismissLabel??`Dismiss warning`,disabled:r,onClick:i,children:(0,Y.jsx)(Ju,{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)(rE,{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 rpt=`p4-draft-hero-transition`,ipt=`cubic-bezier(0.4, 0, 0.2, 1)`,apt=`p4-mobile-composer`,opt=`p4-mobile-draft-headline`,_9=null;async function spt(){let e=_9;if(typeof document>`u`||typeof document.getAnimations!=`function`){await e;return}let t=document.getAnimations().filter(e=>e.id===rpt);await Promise.all([e,...t.map(async e=>{try{await e.finished}catch{}})])}async function cpt(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),_9=o;try{await e.finished}catch{await a()}}catch{await a()}finally{_9===o&&(_9=null),delete t.documentElement.dataset.mobileComposerRouteTransition}}function lpt(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)(DT,{side:`right`,showCloseButton:!1,keepMounted:!0,className:ltt,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)(ET,{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 upt=`[User attached one or more images without additional text. Respond using the conversation context and the attached image(s).]`,dpt=[],fpt=[],ppt=[],mpt={};function hpt(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:ipt});r.id=rpt,o.current=r,r.finished.catch(gpt).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 gpt(){}var _pt=(0,J.lazy)(()=>q(()=>import(`./PreviewPanel-BtqdQqtN.js`).then(e=>({default:e.PreviewPanel})),__vite__mapDeps([102,1,103]))),vpt=(0,J.lazy)(()=>q(()=>import(`./DiffPanel-Cdf69_RS.js`),__vite__mapDeps([104,1,103,105]))),ypt=(0,J.lazy)(()=>q(()=>import(`./FilePreviewPanel-CkKXCbcG.js`),__vite__mapDeps([106,1,105]))),v9=new Set,bpt=[`input`,`textarea`,`select`,`[contenteditable="true"]`,`[contenteditable="plaintext-only"]`,`[role="textbox"]`].join(`,`),xpt=[`button`,`a[href]`,`summary`,`[role="button"]`,`[role="checkbox"]`,`[role="menuitem"]`,`[role="option"]`,`[role="radio"]`,`[role="switch"]`,`[role="tab"]`].join(`,`),Spt=[`[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 y9(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 Cpt(e){return!(e.defaultPrevented||e.isComposing||e.metaKey||e.ctrlKey||e.altKey||e.key.length!==1||y9(e,bpt)||y9(e,xpt)||document.querySelector(Spt))}function b9(e){let t=Fs(tee(e.models,e.model,e.provider),e.effort);return xs(e.text,t)}var wpt=120,Tpt=30;function Ept(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(Dpt)?.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=GOe({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}:WOe(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 Dpt(e){return e.role===`user`}function Opt(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 kpt(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 Apt=(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=Zd(F_.open,`terminal open`),m=Zd(F_.write,`terminal write`),h=Zd(F_.close,`terminal close`),g;t[0]===n?g=t[1]:(g=e=>e.getDraftThreadByRef(n),t[0]=n,t[1]=g);let _=xa(g),v=_!==null,y;t[2]===v?y=t[3]:(y={waitForShell:v},t[2]=v,t[3]=y);let b=A_(n,y),x;t[4]!==_||t[5]!==b?(x=b?zc(b.environmentId,b.projectId):_?zc(_.environmentId,_.projectId):null,t[4]=_,t[5]=b,t[6]=x):x=t[6];let S=O_(x),C;t[7]===n?C=t[8]:(C=e=>PC(e.terminalUiStateByThreadKey,n),t[7]=n,t[8]=C);let w=LC(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=I_(T),D;t[12]===n?D=t[13]:(D=e=>wl(e.byThreadKey,n).surfaces,t[12]=n,t[13]=D);let O=wu(D),k;t[14]===O?k=t[15]:(k=new Set(O.flatMap(Fpt)),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,f6(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:u6({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(Ipt),t[27]=M,t[28]=L);let R=L,z=LC(Lpt),B=LC(Rpt),V=LC(zpt),H=LC(Bpt),U=LC(Vpt),W=LC(Hpt),ee=LC(Upt),G,te;t[29]!==ee||t[30]!==R||t[31]!==w.terminalIds||t[32]!==n?(G=()=>{Opt(R,w.terminalIds)||kpt(R,w.terminalIds)||ee(n,R)},te=[ee,R,w.terminalIds,n],t[29]=ee,t[30]=R,t[31]=w.terminalIds,t[32]=n,t[33]=G,t[34]=te):(G=t[33],te=t[34]),(0,J.useEffect)(G,te);let[ne,re]=(0,J.useState)(0),ie=b?.worktreePath??_?.worktreePath??null,ae;bb1:{if(a!==null){ae=a.worktreePath;break bb1}ae=ie}let oe=ae,se;t[35]!==oe||t[36]!==a?.cwd||t[37]!==S?(se=()=>a?.cwd??(S?l6({project:{cwd:S.workspaceRoot},worktreePath:oe}):null),t[35]=oe,t[36]=a?.cwd,t[37]=S,t[38]=se):se=t[38],a?.cwd;let ce;t[39]===se?ce=t[40]:(ce=se(),t[39]=se,t[40]=ce);let le=ce,ue;t[41]!==oe||t[42]!==S?(ue=S?u6({project:{cwd:S.workspaceRoot},worktreePath:oe}):{},t[41]=oe,t[42]=S,t[43]=ue):ue=t[43];let de=ue,fe;t[44]===i?fe=t[45]:(fe=()=>{i&&re(Wpt)},t[44]=i,t[45]=fe);let pe=fe,me;t[46]!==z||t[47]!==n?(me=e=>{z(n,e)},t[46]=z,t[47]=n,t[48]=me):me=t[48];let he=me,ge;t[49]!==pe||t[50]!==le||t[51]!==oe||t[52]!==p||t[53]!==de||t[54]!==R||t[55]!==B||t[56]!==r||t[57]!==n?(ge=()=>{if(!le)return;let e=p6(R);B(n,e),pe(),p({environmentId:n.environmentId,input:{threadId:r,terminalId:e,cwd:le,...oe==null?{}:{worktreePath:oe},env:de}})},t[49]=pe,t[50]=le,t[51]=oe,t[52]=p,t[53]=de,t[54]=R,t[55]=B,t[56]=r,t[57]=n,t[58]=ge):ge=t[58];let _e=ge,ve;t[59]!==pe||t[60]!==le||t[61]!==oe||t[62]!==p||t[63]!==de||t[64]!==R||t[65]!==V||t[66]!==r||t[67]!==n?(ve=()=>{if(!le)return;let e=p6(R);V(n,e),pe(),p({environmentId:n.environmentId,input:{threadId:r,terminalId:e,cwd:le,...oe==null?{}:{worktreePath:oe},env:de}})},t[59]=pe,t[60]=le,t[61]=oe,t[62]=p,t[63]=de,t[64]=R,t[65]=V,t[66]=r,t[67]=n,t[68]=ve):ve=t[68];let ye=ve,be;t[69]!==pe||t[70]!==le||t[71]!==oe||t[72]!==p||t[73]!==de||t[74]!==R||t[75]!==H||t[76]!==r||t[77]!==n?(be=()=>{if(!le)return;let e=p6(R);H(n,e),pe(),p({environmentId:n.environmentId,input:{threadId:r,terminalId:e,cwd:le,...oe==null?{}:{worktreePath:oe},env:de}})},t[69]=pe,t[70]=le,t[71]=oe,t[72]=p,t[73]=de,t[74]=R,t[75]=H,t[76]=r,t[77]=n,t[78]=be):be=t[78];let xe=be,Se;t[79]!==pe||t[80]!==U||t[81]!==n?(Se=e=>{U(n,e),pe()},t[79]=pe,t[80]=U,t[81]=n,t[82]=Se):Se=t[82];let Ce=Se,we;t[83]!==pe||t[84]!==h||t[85]!==W||t[86]!==r||t[87]!==n||t[88]!==m?(we=e=>{let t=()=>m({environmentId:n.environmentId,input:{threadId:r,terminalId:e,data:`exit
|
|
844
850
|
`}});(async()=>{let i=await h({environmentId:n.environmentId,input:{threadId:r,terminalId:e,deleteHistory:!0}});i._tag===`Failure`&&!We(i)&&await t()})(),W(n,e),pe()},t[83]=pe,t[84]=h,t[85]=W,t[86]=r,t[87]=n,t[88]=m,t[89]=we):we=t[89];let Te=we,Ee;t[90]!==f||t[91]!==i?(Ee=e=>{i&&f(e)},t[90]=f,t[91]=i,t[92]=Ee):Ee=t[92];let De=Ee;if(!S||!w.terminalOpen||!le)return null;let Oe=i?void 0:`hidden`,ke=o+ne+ +!!i,Ae=i?s:void 0,je=i?c:void 0,Me=i?l:void 0,Ne=i?u:void 0,Pe;t[93]!==Ce||t[94]!==Te||t[95]!==xe||t[96]!==le||t[97]!==oe||t[98]!==De||t[99]!==d||t[100]!==de||t[101]!==he||t[102]!==_e||t[103]!==ye||t[104]!==ke||t[105]!==Ae||t[106]!==je||t[107]!==Me||t[108]!==Ne||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?(Pe=(0,Y.jsx)(vct,{threadRef:n,threadId:r,cwd:le,worktreePath:oe,runtimeEnv:de,visible:i,height:w.terminalHeight,terminalIds:w.terminalIds,activeTerminalId:w.activeTerminalId,terminalGroups:w.terminalGroups,activeTerminalGroupId:w.activeTerminalGroupId,focusRequestId:ke,onSplitTerminal:_e,onSplitTerminalVertical:ye,onNewTerminal:xe,splitShortcutLabel:Ae,splitVerticalShortcutLabel:je,newShortcutLabel:Me,closeShortcutLabel:Ne,keybindings:d,onActiveTerminalChange:Ce,onCloseTerminal:Te,onHeightChange:he,onAddTerminalContext:De,terminalLabelsById:P,terminalLaunchLocationsById:I}),t[93]=Ce,t[94]=Te,t[95]=xe,t[96]=le,t[97]=oe,t[98]=De,t[99]=d,t[100]=de,t[101]=he,t[102]=_e,t[103]=ye,t[104]=ke,t[105]=Ae,t[106]=je,t[107]=Me,t[108]=Ne,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]=Pe):Pe=t[119];let Fe;return t[120]!==Oe||t[121]!==Pe?(Fe=(0,Y.jsx)(`div`,{className:Oe,children:Pe}),t[120]=Oe,t[121]=Pe,t[122]=Fe):Fe=t[122],Fe}),jpt=(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=xa(_),y=v!==null,b;t[2]===y?b=t[3]:(b={waitForShell:y},t[2]=y,t[3]=b);let x=A_(n,b),S;t[4]!==v||t[5]!==x?(S=x?zc(x.environmentId,x.projectId):v?zc(v.environmentId,v.projectId):null,t[4]=v,t[5]=x,t[6]=S):S=t[6];let C=O_(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=I_(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?l6({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?u6({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,f6(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?l6({project:{cwd:C.workspaceRoot},worktreePath:r}):null);!a||!C||e.set(t,{cwd:a,worktreePath:r,runtimeEnv:u6({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)(vct,{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:Gpt,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 Mpt(e){return e instanceof Error?e.message:`An error occurred.`}function Npt(e){let{environmentId:t,threadId:n,routeKind:r,onDiffPanelOpen:i,reserveTitleBarControlInset:a=!0,forceExpandedMobileComposer:o=!1}=e,s=r===`draft`?e.draftId:null,c=Ow(),l=(0,J.useMemo)(()=>$u(t,n),[t,n]),u=(0,J.useMemo)(()=>fs(l),[l]),d=Zd(b_.update,{reportFailure:!1}),p=Zd(uf.upsertKeybinding,{reportFailure:!1}),m=Zd(F_.open,`terminal open`),h=Zd(F_.write,`terminal write`),g=Zd(F_.close,`terminal close`),_=Zd(S_.create,{reportFailure:!1}),v=Zd(S_.delete,{reportFailure:!1}),y=Zd(S_.updateMetadata,{reportFailure:!1}),b=Zd(ov.switchRef,{reportFailure:!1}),x=Zd(S_.setRuntimeMode,{reportFailure:!1}),S=Zd(S_.setInteractionMode,{reportFailure:!1}),C=Zd(S_.setCompressMode,{reportFailure:!1}),w=Zd(S_.setUnpromptedSubagents,{reportFailure:!1}),T=Zd(S_.startTurn,{reportFailure:!1}),E=Zd(S_.interruptTurn,{reportFailure:!1}),D=Zd(S_.respondToApproval,{reportFailure:!1}),O=Zd(S_.respondToUserInput,{reportFailure:!1}),k=Zd(S_.revertCheckpoint,{reportFailure:!1}),A=Zd(RC.open,{reportFailure:!1}),j=Zd(RC.close,`preview close`),{environments:M}=zr(),N=R(),P=Zd(at.retryNow,{reportFailure:!1}),I=(0,J.useMemo)(()=>new Map(M.map(e=>[e.environmentId,e])),[M]),L=r===`server`?l:e.draftId,z=xa(e=>r===`server`?e.getDraftSessionByRef(l):s?e.getDraftSession(s):null),B=A_(l,{waitForShell:z!==null}),V=bv(e=>e.markThreadVisited),H=bv(e=>e.threadLastVisitedAtById[u]),U=t_(t),W=Fd(nn),ee=xa(e=>e.setStickyModelSelection),G=U.timestampFormat,te=U.autoOpenPlanSidebar,ne=U.enableUnpromptedSubagents,re=Pm(),{resolvedTheme:ae}=sO(),se=xa(e=>e.getComposerDraft(L)?.runtimeMode??null),ce=xa(e=>e.getComposerDraft(L)?.interactionMode??null),le=xa(e=>e.getComposerDraft(L)?.compressMode??null),ue=xa(e=>e.getComposerDraft(L)?.unpromptedSubagents??null),de=xa(e=>e.getComposerDraft(L)?.activeProvider??null),fe=xa(e=>e.setPrompt),pe=xa(e=>e.addImages),me=xa(e=>e.setTerminalContexts),he=xa(e=>e.setElementContexts),ge=xa(e=>e.setPreviewAnnotations),_e=xa(e=>e.setReviewComments),ve=xa(e=>e.setModelSelection),ye=xa(e=>e.setRuntimeMode),be=xa(e=>e.setInteractionMode),xe=xa(e=>e.setCompressMode),Se=xa(e=>e.setUnpromptedSubagents),Ce=xa(e=>e.clearComposerContent),we=xa(e=>e.setDraftThreadContext),Te=xa(e=>e.getDraftSessionByLogicalProjectKey),Ee=xa(e=>e.getDraftSession),De=xa(e=>e.setLogicalProjectDraftThreadId),Oe=(0,J.useRef)(``),ke=(0,J.useRef)([]),Ae=(0,J.useRef)([]),je=(0,J.useRef)([]),Me=(0,J.useRef)(null),Ne=xD()??Me,[Pe,Fe]=(0,J.useState)(!1),[Ie,Le]=(0,J.useState)(null),[Re,ze]=(0,J.useState)([]),Be=(0,J.useRef)(Re);Be.current=Re;let[Ve,He]=(0,J.useState)({}),[Ue,Ge]=(0,J.useState)({}),[Ke,qe]=(0,J.useState)(!1),[Je,Ye]=(0,J.useState)(!1),[Xe,Ze]=(0,J.useState)(null),[Qe,$e]=(0,J.useState)([]),[et,tt]=(0,J.useState)([]),[nt,rt]=(0,J.useState)({}),[it,ot]=(0,J.useState)({}),st=PT(ctt),ct=(0,J.useRef)(null),lt=(0,J.useRef)(!1),[ut,dt]=(0,J.useState)(0),[ft,pt]=(0,J.useState)(null),[mt,ht]=(0,J.useState)(null),[_t,vt]=(0,J.useState)({}),[yt,bt]=(0,J.useState)(null),[xt,St]=(0,J.useState)(),[Ct,wt]=(0,J.useState)({}),[Tt,Et]=Jd(DOe,{},OOe),Dt=(0,J.useRef)(null),[kt,At]=(0,J.useState)(null),[jt,Mt]=(0,J.useState)(0),Nt=(0,J.useRef)(!0),Pt=(0,J.useRef)({}),Ft=(0,J.useRef)({}),It=(0,J.useRef)(!1),Lt=(0,J.useRef)({});(0,J.useLayoutEffect)(()=>{if(!kt)return;let e=()=>{let e=Math.ceil(kt.getBoundingClientRect().height);e<=0||Mt(t=>t===e?t:e)};if(e(),typeof ResizeObserver>`u`)return;let t=new ResizeObserver(e);return t.observe(kt),()=>t.disconnect()},[kt]);let Rt=LC(e=>PC(e.terminalUiStateByThreadKey,l)),zt=LC(jo(e=>Object.entries(e.terminalUiStateByThreadKey).flatMap(([e,t])=>t.terminalOpen?[e]:[]))),Bt=LC(e=>e.setTerminalOpen),Vt=LC(e=>e.ensureTerminal),Ht=LC(e=>e.splitTerminal),Ut=LC(e=>e.splitTerminalVertical),Wt=LC(e=>e.newTerminal),Gt=LC(e=>e.setActiveTerminal),Kt=LC(e=>e.closeTerminal),qt=iie(),Jt=(0,J.useMemo)(()=>qt.map(fs),[qt]),Yt=xa(e=>e.draftThreadsByThreadKey),Xt=(0,J.useMemo)(()=>Object.values(Yt).map(e=>fs($u(e.environmentId,e.threadId))),[Yt]),[Zt,Qt]=(0,J.useState)([]),$t=(0,J.useMemo)(()=>Zt.flatMap(e=>{let t=Eo(e);return t?[{key:e,threadRef:t}]:[]}),[Zt]),en=O_(z?zc(z.environmentId,z.projectId):null),tn=B?null:(s?Ve[s]?.message:null)??null,rn=Ue[u]?.message??null;(0,J.useEffect)(()=>{if(!B||!s)return;let e=Ve[s];e!==void 0&&(He(e=>{if(e[s]===void 0)return e;let t={...e};return delete t[s],t}),Ge(t=>{let n=t[u];return n!==void 0&&(n.at>e.at||n.message===e.message)?t:{...t,[u]:e}}))},[s,Ve,u,B]);let an=(0,J.useMemo)(()=>z?jOe(n,z,en?.defaultModelSelection??Nr):void 0,[z,en?.defaultModelSelection,n]),on=B!==null,sn=on?B:an,cn=on?rn??B?.session?.lastError??null:tn,ln=se??sn?.runtimeMode??`full-access`,un=ce??sn?.interactionMode??`default`,dn=le??B?.compressMode??`full`,fn=ue??B?.unpromptedSubagents??ne,pn=!on&&an!==void 0,mn=pn,hn=sn?.id??null,gn=L_({environmentId:sn?.environmentId??null,threadId:hn}),_n=I_({environmentId:sn?.environmentId??null,threadId:hn}),vn=(0,J.useMemo)(()=>hn===null?[]:_n.filter(e=>e.target.threadId===hn),[hn,_n]),yn=(0,J.useMemo)(()=>vn.map(e=>e.target.terminalId),[vn]),bn=(0,J.useMemo)(()=>[...new Set([...yn,...Rt.terminalIds])],[yn,Rt.terminalIds]),xn=(0,J.useMemo)(()=>{let e=new Map;for(let t of vn)e.set(t.target.terminalId,f6(t.target.terminalId,t.state.summary));return e},[vn]),Sn=(0,J.useMemo)(()=>sn?$u(sn.environmentId,sn.id):null,[sn]),Cn=Sn?fs(Sn):null,[wn,Tn]=(0,J.useState)({threadKey:Cn,messageId:null});wn.threadKey!==Cn&&Tn({threadKey:Cn,messageId:null});let En=wn.messageId,Dn=wu(e=>Qs(e.byThreadKey,Sn)),kn=Dn===`diff`,An=wu(e=>wl(e.byThreadKey,Sn)),jn=wu(e=>Xa(e.byThreadKey,Sn)),Mn=jn?.kind===`file`?jn:null,Nn=ow(Sn),Pn=g6(e=>_6(e.byThreadKey,Sn)),In=(0,J.useMemo)(()=>new Set(An.surfaces.flatMap(e=>e.kind===`terminal`?e.terminalIds:[])),[An.surfaces]),Ln=Dn===`preview`&&pw(),Rn=An.isOpen,zn=Rn&&!st,Bn=zn&&Xe===u,q=Rn&&!st;(0,J.useEffect)(()=>{Sn&&wu.getState().reconcileBrowserSurfaces(Sn,Object.keys(Nn.sessions))},[Nn.sessions,Sn]),(0,J.useEffect)(()=>{if(!Sn||!Pn)return;let e=!!Nn.sessions[Pn.tabId],t=Ln&&jn?.kind===`preview`&&jn.resourceId===Pn.tabId;(!e||t)&&g6.getState().close(Sn)},[Pn,Nn.sessions,jn,Sn,Ln]);let Vn=Dn===`plan`,Hn=(0,J.useMemo)(()=>{let e=new Set([...Jt,...Xt]);return zt.filter(t=>e.has(t))},[Xt,zt,Jt]),Un=sn?.latestTurn??null,Wn=(0,J.useMemo)(()=>{let e=Un?.sourceProposedPlan?.threadId;return!sn||!e||e===sn.id?null:$u(sn.environmentId,e)},[Un?.sourceProposedPlan?.threadId,sn]),Gn=die(Wn),Kn=(0,J.useMemo)(()=>{if(!sn)return[];let e=[{id:sn.id,proposedPlans:sn.proposedPlans}];return Wn&&e.push({id:Wn.threadId,proposedPlans:Gn}),e},[sn,Wn,Gn]);(0,J.useEffect)(()=>{Qt(e=>{let t=NOe({currentThreadIds:e,openThreadIds:Hn,activeThreadId:Cn,activeThreadTerminalOpen:!!(Cn&&Rt.terminalOpen),maxHiddenThreadCount:10});return e.length===t.length&&e.every((e,n)=>e===t[n])?e:t})},[Cn,Hn,Rt.terminalOpen]);let Jn=Kv(Un,sn?.session??null),Yn=sn?zc(sn.environmentId,sn.projectId):null,Xn=O_(Yn),Zn=(0,J.useCallback)(()=>{kOe(Yn,c)},[Yn,c]),Qn=$r(sn?y_.stateAtom(sn.environmentId):null).data?.snapshot._tag===`Some`,$n=Xn?`${Xn.environmentId}:${Xn.workspaceRoot}`:null,[er,tr]=(0,J.useState)(()=>new Map),nr=$n?er.get($n)??v9:v9,rr=(0,J.useCallback)((e,t)=>{$n&&tr(n=>{let r=n.get($n)??v9,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($n):o.set($n,a),o})},[$n]),ir=(0,J.useMemo)(()=>Ett(Xn?.scripts),[Xn?.scripts]);(0,J.useEffect)(()=>{!Sn||!Qn||wu.getState().reconcileFileSurfaces(Sn,Xn!==null)},[Qn,Xn,Sn]);let ar=E_(),or=N?.environmentId??null,sr=sn==null?null:I.get(sn.environmentId)??null,cr=sr?.connection.phase??`available`,ur=sr!==null&&cr!==`connected`,dr=sr?.label??null,fr=(0,J.useMemo)(()=>!ur||!dr||!sr?null:{environmentId:sr.environmentId,label:dr,connection:sr.connection},[sr,ur,dr]),pr=(0,J.useCallback)(async e=>{let t=await P(e);if(t._tag===`Failure`&&!We(t)){let e=F(t);eC.add($S({type:`error`,title:`Could not reconnect environment`,description:e instanceof Error?e.message:`Failed to reconnect.`}))}},[P]),mr=vw(U),hr=(0,J.useMemo)(()=>{if(!Xn)return[];let e=ww(Xn,mr),t=ar.filter(t=>ww(t,mr)===e),n=new Set,r=[];for(let e of t){if(n.has(e.environmentId))continue;n.add(e.environmentId);let t=e.environmentId===or,i=I.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},[Xn,ar,mr,or,I]),gr=hr.length>1,_r=(0,J.useCallback)(e=>{mn&&pt({initialReference:e??null,key:Date.now()})},[mn]),vr=(0,J.useCallback)(()=>{pt(null)},[]),yr=(0,J.useCallback)(async e=>{if(!Xn)throw Error(`No active project is available for this pull request.`);let t=zc(Xn.environmentId,Xn.id),n=ww(Xn,mr),i=Te(n);if(i)return we(i.draftId,e),De(n,t,i.draftId,{threadId:i.threadId,...e}),(r!==`draft`||s!==i.draftId)&&await re({to:`/draft/$draftId`,params:wo(i.draftId)}),i.threadId;let a=r===`draft`&&s?Ee(s):null;if(!on&&a?.logicalProjectKey===n&&s)return we(s,e),De(n,t,s,{threadId:a.threadId,createdAt:a.createdAt,runtimeMode:a.runtimeMode,interactionMode:a.interactionMode,...e}),a.threadId;let o=Lr(),c=Li();return De(n,t,o,{threadId:c,createdAt:new Date().toISOString(),runtimeMode:Ac,interactionMode:qn,...e}),await re({to:`/draft/$draftId`,params:wo(o)}),c},[Xn,s,Ee,Te,on,re,mr,r,we,De]),br=(0,J.useCallback)(async e=>{await yr({branch:e.branch,worktreePath:e.worktreePath,envMode:e.worktreePath?`worktree`:`local`})},[yr]);(0,J.useEffect)(()=>{if(!B?.id)return;let e=Date.parse(B.updatedAt);if(Number.isNaN(e))return;let t=H?Date.parse(H):NaN;!Number.isNaN(t)&&t>=e||V(fs($u(B.environmentId,B.id)),B.updatedAt)},[H,V,B?.environmentId,B?.id,B?.updatedAt]);let xr=de??null,Sr=sn?.modelSelection.instanceId??Xn?.defaultModelSelection?.instanceId??null,Cr=HOe({thread:sn,selectedProvider:xr,threadProvider:Sr}),Tr=sn?sr?.serverConfig??null:N?.serverConfig??null,Er=S3(Tr),Dr=Er&&sn?S5e(sn.environmentId,Er):null,[Or,kr]=(0,J.useState)(null),Ar=Dr===Or||T5e(Dr),jr=Er!==null&&Dr!==null&&!Ar,Mr=M.length>1&&sn?`${I.get(sn.environmentId)?.label??Tr?.environment.label??sn.environmentId} server`:`server`,Pr=Er&&sn?sn.environmentId:null,Fr=C3(Tr),Ir=w3(Tr),Rr=(0,J.useMemo)(()=>{let e=[];if(fr){let t=fr.connection,n=t.phase===`connecting`||t.phase===`reconnecting`;e.push({id:`environment-unavailable:${fr.environmentId}`,variant:t.phase===`error`?`error`:`warning`,icon:(0,Y.jsx)(Sne,{}),title:`${fr.label}: ${ie(t)}`,description:t.error??`Reconnect this environment before sending messages or running actions.`,actions:(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(lr,{size:`xs`,disabled:n,onClick:()=>void pr(fr.environmentId),children:n?`Reconnecting...`:`Reconnect`}),(0,Y.jsx)(lr,{size:`xs`,variant:`outline`,onClick:()=>void re({to:`/settings/connections`}),children:`Connections`})]})})}return jr&&Er&&Dr&&Pr&&e.push({id:`version-mismatch:${Dr}`,variant:`warning`,icon:(0,Y.jsx)(Cg,{}),title:`Client and server versions differ`,description:(0,Y.jsxs)(Y.Fragment,{children:[`Client `,Er.clientVersion,` is connected to `,Mr,` `,Er.serverVersion,`.`,` `,x5e(Fr,Mr,{serviceSupervised:Ir})]}),actions:Fr===`desktop-managed`?void 0:(0,Y.jsx)(D3,{environmentId:Pr,serverLabel:Mr,selfUpdate:Fr,serviceSupervised:Ir,targetVersion:Er.clientVersion}),dismissLabel:`Dismiss version mismatch warning`,onDismiss:()=>{E5e(Dr),kr(Dr)}}),e},[fr,pr,re,kr,jr,Er,Dr,Pr,Fr,Ir,Mr]),Br=Tr?.providers??fpt,Vr=Yo(Br,xr??Sr),Hr=Cr??Vr,Ur=wy(sn?.session??null),Wr=sn?.activities??dpt,Gr=(0,J.useMemo)(()=>ey(Wr),[Wr]),Kr=(0,J.useMemo)(()=>Yv(Wr),[Wr]),qr=(0,J.useMemo)(()=>Zv(Wr),[Wr]),Jr=(0,J.useMemo)(()=>Qv(Wr),[Wr]),Yr=Jr[0]??null,Xr=(0,J.useMemo)(()=>Yr?nt[Yr.requestId]??mpt:mpt,[Yr,nt]),Zr=Yr?it[Yr.requestId]??0:0,Qr=(0,J.useMemo)(()=>Yr?$H(Yr.questions,Xr,Zr):null,[Xr,Zr,Yr]),ei=(0,J.useMemo)(()=>Yr?QH(Yr.questions,Xr):null,[Xr,Yr]),ti=Yr?et.includes(Yr.requestId):!1,ni=(0,J.useMemo)(()=>Jn?$v(sn?.proposedPlans??[],Un?.turnId??null):null,[Un?.turnId,sn?.proposedPlans,Jn]),ri=(0,J.useMemo)(()=>_oe({threads:Kn,latestTurn:Un,latestTurnSettled:Jn,threadId:sn?.id??null}),[Un,sn?.id,Jn,Kn]),ii=(0,J.useMemo)(()=>goe(Wr,Un?.turnId??void 0),[Un?.turnId,Wr]),ai=ri||un===`plan`?`Plan`:`Tasks`,oi=Jr.length===0&&un===`plan`&&Jn&&voe(ni),si=Kr[0]??null,{beginLocalDispatch:ci,resetLocalDispatch:li,localDispatchStartedAt:ui,isPreparingWorktree:di,isSendBusy:fi}=Ept({activeThread:sn,activeLatestTurn:Un,phase:Ur,activePendingApproval:si?.requestId??null,activePendingUserInput:Yr?.requestId??null,threadError:cn}),pi=Ur===`running`||fi||Ke||Je,mi=moe(Un,sn?.session??null,ui);(0,J.useEffect)(()=>{Pt.current=_t},[_t]);let hi=(0,J.useCallback)((e,t)=>{delete Ft.current[e];let n=t??Pt.current[e]??[];vt(t=>{if(!(e in t))return t;let n={...t};return delete n[e],Pt.current=n,n});for(let e of n)fP(e)},[]),gi=(0,J.useCallback)(()=>{Ft.current={};for(let e of Object.values(Pt.current))for(let t of e)fP(t);Pt.current={},vt({})},[]);(0,J.useEffect)(()=>()=>{gi();for(let e of Be.current)pP(e)},[gi]);let _i=(0,J.useCallback)((e,t)=>{if(t.length===0)return;let n=Pt.current[e]??[],r=new Set(t);for(let e of n)r.has(e)||fP(e);vt(n=>{let r={...n,[e]:t};return Pt.current=r,r})},[]),vi=sn?.messages,yi=(0,J.useMemo)(()=>{let e=new Set;for(let t of vi??[])for(let n of t.attachments??[])e.add(n.id);return[...e]},[vi]),bi=kse(t,(0,J.useMemo)(()=>yi.map(e=>({_tag:`attachment`,attachmentId:e})),[yi])),xi=(0,J.useMemo)(()=>new Map(yi.flatMap((e,t)=>{let n=bi[t];return n?[[e,n]]:[]})),[yi,bi]),Si=(0,J.useMemo)(()=>vi?vi.map(e=>!e.attachments||e.attachments.length===0?e:{...e,attachments:e.attachments.map(e=>{let t=xi.get(e.id);return t?{...e,previewUrl:t}:e})}):[],[xi,vi]);(0,J.useEffect)(()=>{if(typeof Image>`u`||Si.length===0)return;let e=[],t=new Map(Si.filter(e=>e.role===`user`).map(e=>[String(e.id),e]));for(let[n,r]of Object.entries(_t)){if(Ft.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;Ft.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||hi(n,r)}).catch(()=>{o||delete Ft.current[n]}),e.push(()=>{o=!0,delete Ft.current[n];for(let e of s)e.src=``})}return()=>{for(let t of e)t()}},[_t,hi,Si]);let Ci=(0,J.useMemo)(()=>{let e=Si,t=Object.keys(_t).length===0?e:e.map(e=>{if(e.role!==`user`||!e.attachments||e.attachments.length===0)return e;let t=_t[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(Re.length===0)return t;let n=new Set(t.map(e=>e.id)),r=Re.filter(e=>!n.has(e.id));return r.length===0?t:[...t,...r]},[_t,Si,Re]),wi=(0,J.useMemo)(()=>{let e=t3e(Wr);return e===null?[]:[e]},[Wr]),Ti=(0,J.useMemo)(()=>Cy(Ci,sn?.proposedPlans??[],Gr,qr,wi),[sn?.proposedPlans,wi,Ci,qr,Gr]),[Ei,Di]=(0,J.useState)(null),Oi=Cn!==null&&Ei===Cn,ki=pn&&Ti.length===0&&!pi&&!Oi,[Ai,ji,Mi]=hpt(ki),{turnDiffSummaries:Ni,inferredCheckpointTurnCountByTurnId:Pi}=stt(sn),Fi=(0,J.useMemo)(()=>{let e=new Map;for(let t of Ni)t.assistantMessageId&&e.set(t.assistantMessageId,t);return e},[Ni]),Ii=(0,J.useMemo)(()=>{let e=new Map;for(let t=0;t<Ti.length;t+=1){let n=Ti[t];if(!(!n||n.kind!==`message`||n.message.role!==`user`))for(let r=t+1;r<Ti.length;r+=1){let t=Ti[r];if(!t||t.kind!==`message`)continue;if(t.message.role===`user`)break;let i=Fi.get(t.message.id);if(!i)continue;let a=i.checkpointTurnCount??Pi[i.turnId];if(typeof a!=`number`)break;e.set(n.message.id,Math.max(0,a-1));break}}return e},[Pi,Ti,Fi]),Ri=Xn?l6({project:{cwd:Xn.workspaceRoot},worktreePath:sn?.worktreePath??null}):null,zi=sn?.worktreePath??Ri,Bi=$r(zi===null?null:ov.status({environmentId:t,input:{cwd:zi}})),Vi=Fd(On),Hi=Fd(f),Ui=Br.find(e=>e.instanceId===xr)?.instanceId??null??sn?.session?.providerInstanceId??sn?.modelSelection.instanceId??Xn?.defaultModelSelection?.instanceId??null,Wi=(0,J.useMemo)(()=>{if(Ui)return Br.find(e=>e.instanceId===Ui)??null;let e=Uc(Hr);return Br.find(t=>t.instanceId===e)??null},[Ui,Br,Hr]),Gi=qft(Wi),[Ki,qi]=(0,J.useState)(null);(0,J.useEffect)(()=>{Gi===null&&Ki!==null&&qi(null)},[Ki,Gi]);let Ji=Jft(Wi,Ki)?Wi:null,Yi=!!cn||Ji!==null,Xi=Xn?.workspaceRoot??null,Zi=sn?.worktreePath??null,Qi=Zi??Xi??void 0,$i=mt?.threadId===hn?mt:null,ea=Bi.data?.isRepo??!0,ta=ea&&Xn!==null,na=Bi.data?.hasWorkingTreeChanges===!0?`unstaged`:`branch`,ra=Bi.data?`resolved`:`pending`,ia=(0,J.useMemo)(()=>({context:{terminalFocus:!0,terminalOpen:!!Rt.terminalOpen}}),[Rt.terminalOpen]),aa=(0,J.useMemo)(()=>Rg(Vi,`terminal.split`,ia),[Vi,ia]),oa=(0,J.useMemo)(()=>Rg(Vi,`terminal.splitVertical`,ia),[Vi,ia]),sa=(0,J.useMemo)(()=>Rg(Vi,`terminal.new`,ia),[Vi,ia]),ca=(0,J.useMemo)(()=>Rg(Vi,`terminal.close`,ia),[Vi,ia]),la=(0,J.useCallback)(()=>{on&&(kn||i?.(),Sn&&wu.getState().toggle(Sn,`diff`))},[Sn,kn,on,i]),ua=!!(sn&&(sn.messages.length>0||sn.session!==null&&sn.session.status!==`stopped`)),da=(0,J.useCallback)(e=>{if(ua||!s)return;let t=hr.find(t=>t.environmentId===e);t&&we(s,{projectRef:zc(t.environmentId,t.projectId)})},[s,ua,hr,we]),fa=((Rt.terminalGroups.find(e=>e.id===Rt.activeTerminalGroupId)??Rt.terminalGroups.find(e=>e.terminalIds.includes(Rt.activeTerminalId))??null)?.terminalIds.length??0)>=4,pa=(0,J.useCallback)((e,t)=>{if(!e)return;let n=ire(t),r={message:n,at:Date.now()};if(B&&e===l.threadId&&B.environmentId===l.environmentId&&B.id===e){Ge(e=>(e[u]?.message??null)===n?e:{...e,[u]:r});return}let i=s??e;He(e=>(e[i]?.message??null)===n?e:{...e,[i]:r})},[s,u,l,B]),ma=(0,J.useCallback)(()=>{Ne.current?.focusAtEnd()},[Ne]),ha=(0,J.useCallback)(()=>{window.requestAnimationFrame(()=>{ma()})},[ma]),ga=(0,J.useCallback)(e=>{Ne.current?.addTerminalContext(e)},[Ne]),_a=(0,J.useCallback)(e=>{Sn&&Bt(Sn,e)},[Sn,Bt]),va=(0,J.useCallback)(()=>{if(!Sn)return;let e=!Rt.terminalOpen;if(e&&Rt.terminalIds.length===0){if(!hn||!Xn)return;let e=Ri??Xn.workspaceRoot;if(!e)return;let n=p6([...bn,...In]);Vt(Sn,n,{open:!0}),m({environmentId:t,input:{threadId:hn,terminalId:n,cwd:e,...Zi==null?{}:{worktreePath:Zi},env:u6({project:{cwd:Xn.workspaceRoot},worktreePath:Zi})}});return}_a(e)},[bn,Xn,hn,Sn,Zi,t,Ri,m,In,_a,Vt,Rt.terminalIds.length,Rt.terminalOpen]),ya=(0,J.useCallback)((e=`horizontal`)=>{if(!Sn||fa||!hn||!Xn)return;let n=Ri??Xn.workspaceRoot;if(!n)return;let r=p6(bn);e===`vertical`?Ut(Sn,r):Ht(Sn,r),dt(e=>e+1),m({environmentId:t,input:{threadId:hn,terminalId:r,cwd:n,...Zi==null?{}:{worktreePath:Zi},env:u6({project:{cwd:Xn.workspaceRoot},worktreePath:Zi})}})},[Xn,bn,hn,Sn,m,Zi,t,Ri,fa,Ht,Ut]),ba=(0,J.useCallback)(()=>{if(!Sn||!hn||!Xn)return;let e=Ri??Xn.workspaceRoot;if(!e)return;let n=p6(bn);Wt(Sn,n),dt(e=>e+1),m({environmentId:t,input:{threadId:hn,terminalId:n,cwd:e,...Zi==null?{}:{worktreePath:Zi},env:u6({project:{cwd:Xn.workspaceRoot},worktreePath:Zi})}})},[Xn,bn,hn,Sn,m,Zi,t,Ri,Wt]),Sa=(0,J.useCallback)(e=>{if(!hn||!Sn)return;let n=()=>h({environmentId:t,input:{threadId:hn,terminalId:e,data:`exit
|
|
845
851
|
`}});(async()=>{let r=await g({environmentId:t,input:{threadId:hn,terminalId:e,deleteHistory:!0}});r._tag===`Failure`&&!We(r)&&await n()})(),Kt(Sn,e),dt(e=>e+1)},[hn,Sn,g,t,Kt,h]),Ca=(0,J.useCallback)(async(e,n)=>{if(!hn||!Xn||!sn)return;n?.rememberAsLastInvoked!==!1&&Et(t=>t[Xn.id]===e.id?t:{...t,[Xn.id]:e.id});let r=n?.cwd??Ri??Xn.workspaceRoot,i=Rt.activeTerminalId||bn[0]||`term-1`,a=gn.includes(i),o=!!n?.preferNewTerminal||a,s=n?.worktreePath??sn.worktreePath??null;if(ht({threadId:hn,cwd:r,worktreePath:s}),_a(!0),!Sn)return;dt(e=>e+1);let c=u6({project:{cwd:Xn.workspaceRoot},worktreePath:s,...n?.env?{extraEnv:n.env}:{}}),l=o?p6(bn):i,u=o?{threadId:hn,terminalId:l,cwd:r,...s===null?{}:{worktreePath:s},env:c,cols:wpt,rows:Tpt}:{threadId:hn,terminalId:l,cwd:r,...s===null?{}:{worktreePath:s},env:c};o?Wt(Sn,l):Gt(Sn,l);let d=await m({environmentId:t,input:u});if(d._tag===`Failure`){if(!We(d)){let t=F(d);pa(hn,t instanceof Error?t.message:`Failed to run script "${e.name}".`)}return}let f=await h({environmentId:t,input:{threadId:hn,terminalId:l,data:`${e.command}\r`}});if(f._tag===`Failure`&&!We(f)){let t=F(f);pa(hn,t instanceof Error?t.message:`Failed to run script "${e.name}".`)}},[Xn,sn,hn,Sn,Ri,_a,pa,Wt,Gt,Et,t,m,bn,gn,Rt.activeTerminalId,h]),wa=(0,J.useCallback)(async e=>{let n=Ot(await d({environmentId:t,input:{projectId:e.projectId,scripts:e.nextScripts}}),()=>void 0);if(n._tag===`Failure`)return n;let r=Dct({keybinding:e.keybinding,command:e.keybindingCommand});return Gm&&r?Ot(await p({environmentId:t,input:r}),()=>void 0):n},[t,d,p]),Ta=(0,J.useCallback)(async e=>{if(!Xn)return El(void 0);let t=Nct(e.name,Xn.scripts.map(e=>e.id)),n=Act(t,e),r=e.runOnWorktreeCreate?[...Xn.scripts.map(e=>e.runOnWorktreeCreate?{...e,runOnWorktreeCreate:!1}:e),n]:[...Xn.scripts,n];return wa({projectId:Xn.id,projectCwd:Xn.workspaceRoot,previousScripts:Xn.scripts,nextScripts:r,keybinding:e.keybinding,keybindingCommand:K7(t)})},[Xn,wa]),Ea=(0,J.useCallback)(async(e,t)=>{if(!Xn)return El(void 0);let n=Xn.scripts.find(t=>t.id===e);if(!n)return fl(Hu(Error(`Script not found.`)));let r=Act(n.id,t),i=Xn.scripts.map(n=>n.id===e?r:t.runOnWorktreeCreate?{...n,runOnWorktreeCreate:!1}:n);return wa({projectId:Xn.id,projectCwd:Xn.workspaceRoot,previousScripts:Xn.scripts,nextScripts:i,keybinding:t.keybinding,keybindingCommand:K7(e)})},[Xn,wa]),Da=(0,J.useCallback)(async e=>{if(!Xn)return El(void 0);let t=Xn.scripts.filter(t=>t.id!==e),n=Xn.scripts.find(t=>t.id===e)?.name,r=await wa({projectId:Xn.id,projectCwd:Xn.workspaceRoot,previousScripts:Xn.scripts,nextScripts:t,keybinding:null,keybindingCommand:K7(e)});if(r._tag===`Success`)eC.add({type:`success`,title:`Deleted action "${n??`Unknown`}"`});else if(!We(r)){let e=F(r);eC.add($S({type:`error`,title:`Could not delete action`,description:e instanceof Error?e.message:`An unexpected error occurred.`}))}return r},[Xn,wa]),Oa=(0,J.useCallback)(e=>{e!==ln&&(ye(L,e),pn&&we(L,{runtimeMode:e}),ha())},[pn,ln,ha,L,ye,we]),ka=(0,J.useCallback)(e=>{e!==un&&(be(L,e),pn&&we(L,{interactionMode:e}),ha())},[un,pn,ha,L,be,we]),Aa=(0,J.useCallback)(()=>{ka(un===`plan`?`default`:`plan`)},[ka,un]),ja=(0,J.useCallback)(e=>{e!==dn&&(xe(L,e),ha())},[dn,ha,L,xe]),Ma=(0,J.useCallback)(e=>{e!==fn&&(Se(L,e),ha())},[fn,ha,L,Se]),Na=(0,J.useCallback)(()=>{ct.current=ii?.turnId??ri?.turnId??`__dismissed__`},[ii?.turnId,ri?.turnId]),Pa=(0,J.useCallback)(()=>{Sn&&(Vn?Na():ct.current=null,wu.getState().toggle(Sn,`plan`))},[Sn,Na,Vn]),Fa=(0,J.useCallback)(()=>{Sn&&(Ze(null),wu.getState().close(Sn),Na())},[Sn,Na]),La=(0,J.useCallback)(()=>{Sn&&utt({threadRef:Sn,openPreview:A})},[Sn,A]),Ra=(0,J.useCallback)(()=>{!Sn||!on||!ea||(Vn&&Na(),wu.getState().open(Sn,`diff`),i?.())},[Sn,Na,ea,on,i,Vn]),za=(0,J.useCallback)(()=>{!Sn||!Xn||wu.getState().open(Sn,`files`)},[Xn,Sn]),Ba=(0,J.useCallback)(e=>{!Sn||!Xn||wu.getState().openFile(Sn,e)},[Xn,Sn]),Va=(0,J.useCallback)(()=>{if(!Sn||!pw())return;if(Ln){wu.getState().close(Sn);return}let e=Nn.activeTabId;e?wu.getState().openBrowser(Sn,e):La()},[Nn.activeTabId,Sn,La,Ln]),Ha=(0,J.useCallback)(()=>{Sn&&(Ze(null),wu.getState().close(Sn))},[Sn]),Ua=(0,J.useCallback)(()=>{if(!Sn||!hn||!Xn)return;let e=Ri??Xn.workspaceRoot,t=p6([...bn,...In]);wu.getState().openTerminal(Sn,t),dt(e=>e+1),m({environmentId:Sn.environmentId,input:{threadId:hn,terminalId:t,cwd:e,...Zi==null?{}:{worktreePath:Zi},env:u6({project:{cwd:Xn.workspaceRoot},worktreePath:Zi})}})},[bn,Xn,hn,Sn,Zi,Ri,m,In]),Wa=(0,J.useCallback)((e=`horizontal`)=>{if(!Sn||!hn||!Xn||jn?.kind!==`terminal`||jn.terminalIds.length>=4)return;let t=p6([...bn,...In]),n=Ri??Xn.workspaceRoot;wu.getState().splitTerminal(Sn,jn.id,t,e),dt(e=>e+1),m({environmentId:Sn.environmentId,input:{threadId:hn,terminalId:t,cwd:n,...Zi==null?{}:{worktreePath:Zi},env:u6({project:{cwd:Xn.workspaceRoot},worktreePath:Zi})}})},[bn,Xn,jn,hn,Sn,Zi,Ri,m,In]),Ga=(0,J.useCallback)(()=>{Wa(`vertical`)},[Wa]),Ka=(0,J.useCallback)(e=>{!Sn||jn?.kind!==`terminal`||(wu.getState().activateTerminal(Sn,jn.id,e),dt(e=>e+1))},[jn,Sn]),qa=(0,J.useCallback)(e=>{!Sn||jn?.kind!==`terminal`||(g({environmentId:Sn.environmentId,input:{threadId:Sn.threadId,terminalId:e,deleteHistory:!0}}),Kt(Sn,e),wu.getState().closeTerminal(Sn,jn.id,e),dt(e=>e+1))},[jn,Sn,g,Kt]),Ja=(0,J.useCallback)(e=>{Sn&&(e.kind===`plan`?ct.current=null:Vn&&Na(),wu.getState().activateSurface(Sn,e.id),e.kind===`preview`&&e.resourceId&&dw(Sn,e.resourceId),e.kind===`terminal`&&dt(e=>e+1),e.kind===`diff`&&!kn&&i?.())},[Sn,kn,Na,i,Vn]),Ya=(0,J.useCallback)(()=>{if(Sn){if(Rn){Vn?Fa():Ha();return}wu.getState().toggleVisibility(Sn)}},[Sn,Fa,Ha,Vn,Rn]),Za=(0,J.useCallback)(()=>{zn&&Ze(e=>e===u?null:u)},[zn,u]),Qa=(0,J.useCallback)(e=>{if(Sn){e.some(e=>e.kind===`plan`)&&Na();for(let t of e)if(t.kind===`preview`&&t.resourceId&&dtt({closePreview:j,snapshot:Nn.sessions[t.resourceId]??null,tabId:t.resourceId,threadRef:Sn}),t.kind===`terminal`)for(let e of t.terminalIds)Kt(Sn,e),g({environmentId:Sn.environmentId,input:{threadId:Sn.threadId,terminalId:e,deleteHistory:!0}})}},[Sn,Nn.sessions,j,g,Na,Kt]),$a=(0,J.useCallback)(()=>{if(!Sn)return;let e=Xa(wu.getState().byThreadKey,Sn);e?.kind===`preview`&&e.resourceId&&dw(Sn,e.resourceId)},[Sn]),eo=(0,J.useCallback)(e=>{Sn&&(Qa([e]),wu.getState().closeSurface(Sn,e.id),$a())},[Sn,Qa,$a]),to=(0,J.useCallback)(e=>{if(!Sn)return;let t=An.surfaces.filter(t=>t.id!==e.id);Qa(t),wu.getState().closeOtherSurfaces(Sn,e.id),$a()},[Sn,Qa,An.surfaces,$a]),no=(0,J.useCallback)(e=>{if(!Sn)return;let t=An.surfaces.findIndex(t=>t.id===e.id);if(t<0)return;let n=An.surfaces.slice(t+1);Qa(n),wu.getState().closeSurfacesToRight(Sn,e.id),$a()},[Sn,Qa,An.surfaces,$a]),ro=(0,J.useCallback)(()=>{Sn&&(Qa(An.surfaces),wu.getState().closeAllSurfaces(Sn))},[Sn,Qa,An.surfaces]),io=(0,J.useCallback)(e=>{i6(e,`Path copied`,`Failed to copy path`)},[]);(0,J.useEffect)(()=>IN(e=>{e===`toggle-panel`&&Va()}),[Va]);let ao=(0,J.useCallback)(async e=>{if(!B)return El(void 0);let n=El(void 0),r=AOe({currentModelSelection:B.modelSelection,...e.modelSelection?{nextModelSelection:e.modelSelection}:{},currentBranch:B.branch,...e.branch?{nextBranch:e.branch}:{}});return r&&(n=Ot(await y({environmentId:t,input:{threadId:e.threadId,...r}}),()=>void 0),n._tag===`Failure`)||e.runtimeMode!==B.runtimeMode&&(n=Ot(await x({environmentId:t,input:{threadId:e.threadId,runtimeMode:e.runtimeMode,createdAt:e.createdAt}}),()=>void 0),n._tag===`Failure`)||e.interactionMode!==B.interactionMode&&(n=Ot(await S({environmentId:t,input:{threadId:e.threadId,interactionMode:e.interactionMode,createdAt:e.createdAt}}),()=>void 0),n._tag===`Failure`)||e.compressMode!==B.compressMode&&(n=Ot(await C({environmentId:t,input:{threadId:e.threadId,compressMode:e.compressMode,createdAt:e.createdAt}}),()=>void 0),n._tag===`Failure`)||e.unpromptedSubagents!==B.unpromptedSubagents&&(n=Ot(await w({environmentId:t,input:{threadId:e.threadId,unpromptedSubagents:e.unpromptedSubagents,createdAt:e.createdAt}}),()=>void 0)),n},[t,B,C,w,S,x,y]),oo=(0,J.useRef)(new ju(()=>Fe(!0),{wait:150})),so=(0,J.useRef)(`following-end`),[co,lo]=(0,J.useState)(!0),uo=(0,J.useCallback)(e=>{so.current=e,lo(e===`following-end`)},[]),fo=(0,J.useRef)(null),po=(0,J.useRef)(null),mo=(0,J.useRef)(null),ho=(0,J.useRef)(null),go=(0,J.useRef)(0),_o=(0,J.useRef)(0),vo=(0,J.useRef)(null),yo=(0,J.useRef)(null),bo=(0,J.useCallback)(()=>{go.current+=1,uo(`free-scrolling`),_o.current=null,fo.current=null,po.current=null,mo.current=null,ho.current=null,vo.current=null,yo.current!==null&&(cancelAnimationFrame(yo.current),yo.current=null)},[uo]),xo=(0,J.useRef)(bo);(0,J.useEffect)(()=>{xo.current=bo},[bo]);let So=(0,J.useCallback)(e=>{let t=e??Dt.current,n=ho.current,r=t?.getState();return!t||!r||n===null?null:ott({state:r,anchorIndex:n,composerOverlayHeight:jt,anchorOffset:16})},[jt]),Co=(0,J.useCallback)(e=>{let t=e??Dt.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)-jt-16)},[jt]),To=(0,J.useCallback)((e=!1)=>{Nt.current=!0,uo(`following-end`),_o.current=go.current,fo.current=null,ho.current=null,oo.current.cancel(),Fe(!1),Dt.current?.scrollToEnd?.({animated:e})},[uo]);(0,J.useEffect)(()=>{let e=null,t=requestAnimationFrame(()=>{let t=Dt.current?.getScrollableNode();if(!t)return;let n=()=>{xo.current()};t.addEventListener(`wheel`,n,{passive:!0}),t.addEventListener(`touchmove`,n,{passive:!0});let r=e=>{y9(e,`[data-scroll-anchor-ignore]`)||n()};t.addEventListener(`pointerdown`,r,{passive:!0});let i=e=>{let t=e.target,r=t?.isContentEditable===!0||t?.tagName===`INPUT`||t?.tagName===`TEXTAREA`||t?.tagName===`SELECT`;itt({key:e.key,targetIsEditable:r,altKey:e.altKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,defaultPrevented:e.defaultPrevented,targetIsScrollAnchorIgnored:y9(e,`[data-scroll-anchor-ignore]`)})&&n()};document.addEventListener(`keydown`,i,{passive:!0}),e=()=>{t.removeEventListener(`wheel`,n),t.removeEventListener(`touchmove`,n),t.removeEventListener(`pointerdown`,r),document.removeEventListener(`keydown`,i)}});return()=>{cancelAnimationFrame(t),e?.()}},[sn?.id]);let Do=(0,J.useCallback)((e,t)=>{if(fo.current===e&&(fo.current=null),ho.current=t,po.current===e)return;po.current=e,mo.current=null;let n=r=>{requestAnimationFrame(()=>{if(po.current!==e)return;let i=Dt.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),po.current!==e))return;let t=i.getState().scroll;i.scrollToOffset({offset:t,animated:!1}),mo.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))},[]),Oo=(0,J.useCallback)(e=>{if(mo.current!==e||_o.current===go.current)return;let t=Dt.current?.getState().scroll;t!==void 0&&(vo.current===null&&(vo.current={messageId:e,offset:t,userScrollGeneration:go.current}),yo.current===null&&(yo.current=requestAnimationFrame(()=>{yo.current=null;let e=vo.current;if(vo.current=null,e&&mo.current===e.messageId&&e.userScrollGeneration===go.current){let t=Dt.current,n=t?.getState().scroll;typeof n==`number`&&Math.abs(n-e.offset)<=2&&t?.scrollToOffset({offset:e.offset,animated:!1})}})))},[]),ko=(0,J.useCallback)(e=>{if(!e&&_o.current===go.current){oo.current.cancel(),Fe(!1);return}Nt.current!==e&&(Nt.current=e,e?(uo(`following-end`),_o.current=go.current,oo.current.cancel(),Fe(!1)):(uo(`free-scrolling`),_o.current=null,oo.current.maybeExecute()))},[uo]);(0,J.useEffect)(()=>{if(!sn?.id||_o.current!==go.current)return;let e=null,t=requestAnimationFrame(()=>{e=requestAnimationFrame(()=>{if(_o.current!==go.current||fo.current!==null||po.current!==null&&mo.current!==po.current)return;let e=Dt.current;if(e){if(so.current===`anchoring-new-turn`){let t=So(e);if(!t||t.scrollDeltaToRevealEnd<=1)return;let n=e.getState().scroll+t.scrollDeltaToRevealEnd;e.scrollToOffset({offset:n,animated:!1});return}so.current===`following-end`&&Co(e)&&e.scrollToEnd?.({animated:!1})}})});return()=>{cancelAnimationFrame(t),e!==null&&cancelAnimationFrame(e)}},[sn?.id,Ti,So,Co]),(0,J.useEffect)(()=>{pt(null),Nt.current=!0,uo(`following-end`),_o.current=go.current,fo.current=null,po.current=null,mo.current=null,ho.current=null,oo.current.cancel(),Fe(!1),lt.current&&(lt.current=!1,Sn&&wu.getState().open(Sn,`plan`)),ct.current=null},[sn?.id]),(0,J.useEffect)(()=>{if(!te||!ii||Vn)return;let e=Un?.turnId??null;if(e&&ii.turnId!==e)return;let t=ii.turnId??ri?.turnId??`__dismissed__`;ct.current!==t&&Sn&&wu.getState().open(Sn,`plan`)},[ii,Un?.turnId,Sn,te,Vn,ri?.turnId]),(0,J.useEffect)(()=>{Ye(!1)},[sn?.id]),(0,J.useEffect)(()=>{if(!sn?.id||Rt.terminalOpen)return;let e=window.requestAnimationFrame(()=>{ma()});return()=>{window.cancelAnimationFrame(e)}},[sn?.id,ma,Rt.terminalOpen]),(0,J.useEffect)(()=>{if(!sn?.id||sn.messages.length===0)return;let e=new Set(sn.messages.map(e=>e.id)),t=Re.filter(t=>e.has(t.id));if(t.length===0)return;let n=window.setTimeout(()=>{ze(t=>t.filter(t=>!e.has(t.id)))},0);for(let e of t){let t=FOe(e);if(t.length>0){_i(e.id,t);continue}pP(e)}return()=>{window.clearTimeout(n)}},[sn?.id,sn?.messages,_i,Re]),(0,J.useEffect)(()=>{ze(e=>{for(let t of e)pP(t);return[]}),li(),Le(null)},[s,li,n]);let Ao=(0,J.useCallback)(()=>{Le(null)},[]),Mo=sn?.worktreePath??null,No=yD({activeWorktreePath:Mo,hasServerThread:on,draftThreadEnvMode:pn?z?.envMode:void 0}),Po=!!(on&&sn&&sn.messages.length===0&&sn.worktreePath===null&&!ua),Fo=Po?yt??z?.envMode??No:No,Io=Po&&xt!==void 0?xt:sn?.branch??null,Lo=pn?z?.startFromOrigin??!1:Po?Ct[sn?.id??``]??W.newWorktreesStartFromOrigin:!1,Ro=IOe({requestedEnvMode:Fo,isGitRepo:ea}),zo=(0,J.useMemo)(()=>on?uve({effectiveEnvMode:Fo,activeWorktreePath:Mo,activeThreadBranch:Io,currentGitBranch:Bi.data?.refName??null}):null,[Io,Mo,Fo,Bi.data?.refName,on]),Bo=k_(on?Sn:null),Vo=$g(e=>e.sidebarAutoSettleAfterDays),Ho=zy({threadBranch:sn?.branch??null,gitStatus:Bi.data??null}),Uo=Tr?.environment.capabilities.threadSettlement===!0,Wo=Tr?.environment.capabilities.threadSnooze===!0,Go=zct(),Ko=Bo!==null&&Wo&&sde(Bo,{now:new Date().toISOString()}),[qo,Jo]=(0,J.useState)(0);(0,J.useEffect)(()=>{if(!Ko)return;let e=Date.parse(Bo?.snoozedUntil??``);if(!Number.isFinite(e))return;let t=window.setTimeout(()=>Jo(e=>e+1),Math.min(Math.max(0,e-Date.now())+50,2147483647));return()=>window.clearTimeout(t)},[Bo?.snoozedUntil,Ko,qo]);let Xo=(0,J.useMemo)(()=>Bo===null||!Uo?!1:cde(Bo,{now:`${Go}:00.000Z`,autoSettleAfterDays:Vo,changeRequestState:Ho?.state??null}),[Ho?.state,Bo,Vo,Go,Uo]),Zo=Zd(S_.unsettle,{reportFailure:!1}),[Qo,$o]=(0,J.useState)(null),es=Qo!==null&&Qo===Cn,ts=(0,J.useCallback)(async()=>{if(!Sn)return;let e=fs(Sn);$o(e);try{let e=await Zo({environmentId:Sn.environmentId,input:{threadId:Sn.threadId,reason:`user`}});if(e._tag===`Failure`&&!We(e)){let t=F(e);eC.add($S({type:`error`,title:`Failed to un-settle thread`,description:t instanceof Error?t.message:`An error occurred.`}))}}finally{$o(t=>t===e?null:t)}},[Sn,Zo]),ns=Zd(S_.unsnooze,{reportFailure:!1}),[rs,is]=(0,J.useState)(null),as=rs!==null&&rs===Cn,os=(0,J.useCallback)(async()=>{if(!Sn)return;let e=fs(Sn);is(e);try{let e=await ns({environmentId:Sn.environmentId,input:{threadId:Sn.threadId,reason:`user`}});if(e._tag===`Failure`&&!We(e)){let t=F(e);eC.add($S({type:`error`,title:`Failed to wake thread`,description:t instanceof Error?t.message:`An error occurred.`}))}}finally{is(t=>t===e?null:t)}},[Sn,ns]),[ss,cs]=(0,J.useState)(!1),[ls,us]=(0,J.useState)(!1),[ds,ps]=(0,J.useState)(null),[,ms]=(0,J.useState)(0),hs=xa(e=>{let t=e.getComposerDraft(L);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))}),gs=ROe(sn?.id??null,zo),vs=zOe({hasMismatch:zo!==null,isDismissed:VOe(gs),composerHasContent:hs,wasShownForCurrentMismatch:ds!==null&&ds===gs});(0,J.useEffect)(()=>{ps(e=>vs?gs:e!==null&&e!==gs?null:e)},[gs,vs]);let ys=(0,J.useCallback)(async()=>{if(!Xi||!sn||!zo||ss)return;cs(!0);let e=await b({environmentId:t,input:{cwd:Xi,refName:zo.threadBranch}});if(e._tag===`Failure`){cs(!1),We(e)||eC.add($S({type:`error`,title:`Failed to switch checkout`,description:Mpt(F(e))}));return}let n=e.value.refName??zo.threadBranch;if(n!==sn.branch){let e=await y({environmentId:t,input:{threadId:sn.id,branch:n,worktreePath:null}});if(e._tag===`Failure`){cs(!1),We(e)||eC.add($S({type:`error`,title:`Checkout switched, but the thread could not be updated`,description:Mpt(F(e))})),Bi.refresh();return}}Bi.refresh(),cs(!1),ha()},[Xi,sn,t,Bi,ss,zo,ha,b,y]),bs=(0,J.useMemo)(()=>{if(!Ko&&!Xo)return null;let e=Ko;return{id:`thread-${e?`snoozed`:`settled`}:${sn?.id??`unknown`}`,variant:`info`,icon:e?(0,Y.jsx)(Ite,{}):(0,Y.jsx)(gh,{}),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)(lr,{size:`xs`,variant:`outline`,disabled:e?as:es,onClick:()=>void(e?os():ts()),children:e?as?`Waking...`:`Wake now`:es?`Un-settling...`:`Un-settle`})}},[sn?.id,Xo,Ko,os,ts,as,es]),xs=(0,J.useCallback)(()=>{if(Bi.data?.hasWorkingTreeChanges){us(!0);return}ys()},[Bi.data?.hasWorkingTreeChanges,ys]),Ss=(0,J.useMemo)(()=>{let e=bs===null?[]:[bs];return!zo||!vs||!gs?[...Rr,...e]:[...Rr,{id:`branch-mismatch:${gs}`,variant:`info`,icon:(0,Y.jsx)(Ph,{}),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)(Zc,{children:[(0,Y.jsx)(Ia,{render:(0,Y.jsx)(`code`,{className:`min-w-0 truncate font-medium text-foreground`,children:zo.threadBranch})}),(0,Y.jsxs)(Rs,{side:`top`,className:`max-w-80`,children:[`This thread last ran on `,zo.threadBranch,`. Sending will continue on `,zo.currentBranch,`.`]})]})]}),className:`dark:shadow-none`,actions:(0,Y.jsx)(lr,{size:`xs`,variant:`ghost`,disabled:ss,onClick:xs,children:ss?`Restoring...`:`Restore branch`}),dismissLabel:`Dismiss branch change notice`,onDismiss:()=>{BOe(gs),ms(e=>e+1)}},...e]},[gs,xs,ss,zo,bs,vs,Rr]);(0,J.useEffect)(()=>{bt(null),St(void 0)},[sn?.id]),(0,J.useEffect)(()=>{Po||(bt(null),St(void 0))},[Po]),(0,J.useEffect)(()=>{if(!hn){ht(null);return}ht(e=>!e||e.threadId===hn?e:null)},[hn]),(0,J.useEffect)(()=>{!hn||!Xi||ht(e=>!e||e.threadId!==hn?e:l6({project:{cwd:Xi},worktreePath:Zi})===e.cwd&&(Zi??null)===e.worktreePath?null:e)},[Xi,hn,Zi]),(0,J.useEffect)(()=>{Rt.terminalOpen||ht(e=>e?.threadId===hn?null:e)},[hn,Rt.terminalOpen]),(0,J.useEffect)(()=>{if(!Cn)return;let e=Lt.current[Cn]??!1,t=!!Rt.terminalOpen;if(!e&&t){Lt.current[Cn]=t,dt(e=>e+1);return}else if(e&&!t){Lt.current[Cn]=t;let e=window.requestAnimationFrame(()=>{ma()});return()=>{window.cancelAnimationFrame(e)}}Lt.current[Cn]=t},[Cn,ma,Rt.terminalOpen]),(0,J.useEffect)(()=>{let e=e=>{if(!hn||IE())return;let t=pC();if(e.defaultPrevented&&t===null)return;let n={terminalFocus:t!==null,terminalOpen:!!Rt.terminalOpen,modelPickerOpen:Ne.current?.isModelPickerOpen()??!1};if(!n.terminalFocus&&!n.modelPickerOpen&&Cpt(e)&&Ne.current?.insertTextAtEnd(e.key)){e.preventDefault(),e.stopPropagation();return}let r=Ig(e,Vi,{context:n});if(!r)return;if(r===`terminal.toggle`){e.preventDefault(),e.stopPropagation(),va();return}if(r===`rightPanel.toggle`){e.preventDefault(),e.stopPropagation(),Ya();return}if(r===`terminal.split`){if(e.preventDefault(),e.stopPropagation(),t===`right-panel`){Wa();return}Rt.terminalOpen||_a(!0),ya();return}if(r===`terminal.splitVertical`){if(e.preventDefault(),e.stopPropagation(),t===`right-panel`){Wa(`vertical`);return}Rt.terminalOpen||_a(!0),ya(`vertical`);return}if(r===`terminal.close`){if(e.preventDefault(),e.stopPropagation(),t===`right-panel`&&jn?.kind===`terminal`){qa(jn.activeTerminalId);return}if(!Rt.terminalOpen)return;Sa(Rt.activeTerminalId);return}if(r===`terminal.new`){if(e.preventDefault(),e.stopPropagation(),t===`right-panel`){Ua();return}Rt.terminalOpen||_a(!0),ba();return}if(r===`diff.toggle`){e.preventDefault(),e.stopPropagation(),la();return}if(r===`modelPicker.toggle`){e.preventDefault(),e.stopPropagation(),Ne.current?.toggleModelPicker();return}let i=Mct(r);if(!i||!Xn)return;let a=Xn.scripts.find(e=>e.id===i);a&&(e.preventDefault(),e.stopPropagation(),Ca(a))};return window.addEventListener(`keydown`,e,!0),()=>window.removeEventListener(`keydown`,e,!0)},[Xn,jn,Ua,Rt.terminalOpen,Rt.activeTerminalId,hn,Sa,qa,ba,_a,Ca,ya,Wa,Vi,la,Ya,va,Ne]);let Cs=(0,J.useCallback)(async e=>{let n=oe();if(!n||!sn||Je)return;if(ur&&dr){pa(sn.id,`Reconnect ${dr} before reverting checkpoints.`);return}if(Ur===`running`||fi||Ke){pa(sn.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(`
|
|
846
852
|
`)))return;Ye(!0),pa(sn.id,null);let r=await k({environmentId:t,input:{threadId:sn.id,turnCount:e}});if(r._tag===`Failure`&&!We(r)){let e=F(r);pa(sn.id,e instanceof Error?e.message:`Failed to revert thread state.`)}Ye(!1)},[sn,ur,dr,t,Ke,Je,fi,Ur,k,pa]),ws=async e=>{if(e?.preventDefault(),!sn||fi||Ke||ur||It.current)return;if(Qr){Ms();return}let n=Ne.current?.getSendContext();if(!n?.providerAvailable)return;let{images:r,terminalContexts:i,elementContexts:a,previewAnnotations:o,reviewComments:s,selectedProvider:c,selectedModel:l,selectedProviderModels:u,selectedPromptEffort:d,selectedModelSelection:f}=n,p=Oe.current,{trimmedPrompt:m,sendableTerminalContexts:h,expiredTerminalContextCount:g,hasSendableContent:_}=hP({prompt:p,imageCount:r.length,terminalContexts:i,elementContextCount:a.length+o.length+s.length});if(oi&&ni){let e=YFe({draftText:m,planMarkdown:ni.planMarkdown});Oe.current=``,Ce(L),Ne.current?.resetCursorState(),await Ps({text:e.text,interactionMode:e.interactionMode});return}let v=r.length===0&&h.length===0&&a.length===0&&o.length===0&&s.length===0?TOe(m):null;if(v){ka(v),Oe.current=``,Ce(L),Ne.current?.resetCursorState();return}if(!_){if(g>0){let e=gP(g,`empty`);eC.add($S({type:`warning`,title:e.title,description:e.description}))}return}if(!Xn){eC.add($S({type:`warning`,title:`Choose a project first`,description:`This draft no longer points to an available project.`}));return}let b=sn.id,x=!on||sn.messages.length===0,S=x&&Ro===`worktree`&&!sn.worktreePath?Io:null;if(x&&Ro===`worktree`&&!sn.worktreePath&&!Io){pa(b,`Select a base branch before sending in New worktree mode.`);return}if(It.current=!0,ki&&Cn){let e,t=new Promise(t=>{e=t});cpt(()=>{(0,Im.flushSync)(()=>{Mi(),Di(Cn)}),e?.()}).catch(()=>e?.()),await t}ci({preparingWorktree:!!S});let C=[...r],w=[...h],E=[...a],D=[...o],O=[...s],k=Wd(_s(p,w),E),A=wr(D.reduce((e,t)=>Hct(e,t),k),O),j=xf(),M=new Date().toISOString(),N=b9({provider:c,model:l,models:u,effort:d,text:A||upt}),P=Promise.all(C.map(async e=>({type:`image`,name:e.name,mimeType:e.mimeType,sizeBytes:e.sizeBytes,dataUrl:await mP(e.file)}))),I=C.map(e=>({type:`image`,id:e.id,name:e.name,mimeType:e.mimeType,sizeBytes:e.sizeBytes,previewUrl:e.previewUrl}));if(Nt.current=!0,uo(`anchoring-new-turn`),_o.current=go.current,fo.current=j,ho.current=null,oo.current.cancel(),Fe(!1),Tn({threadKey:fs($u(sn.environmentId,b)),messageId:j}),ze(e=>[...e,{id:j,role:`user`,text:N,...I.length>0?{attachments:I}:{},turnId:null,createdAt:M,updatedAt:M,streaming:!1}]),pa(b,null),g>0){let e=gP(g,`omitted`);eC.add($S({type:`warning`,title:e.title,description:e.description}))}Oe.current=``,Ce(L),Ne.current?.resetCursorState();let R=null;if(C.length>0){let e=C[0];e&&(R=e.name)}let z=m;z||=R?`Image: ${R}`:w.length>0?js(w[0]):E.length>0?jd(E[0]):`New thread`;let B=Xet(z),V=Yl(f.instanceId,l||Xn.defaultModelSelection?.model||`gpt-5.6-sol`,f.options),H=null;if(x&&on){let e=await y({environmentId:t,input:{threadId:b,title:B}});e._tag===`Failure`&&(H=e)}if(H===null&&on){let e=await ao({threadId:b,createdAt:M,...l?{modelSelection:f}:{},...zo?{branch:zo.currentBranch}:{},runtimeMode:ln,interactionMode:un,compressMode:dn,unpromptedSubagents:fn});e._tag===`Failure`&&(H=e)}let U=await bf(()=>P);H===null&&U._tag===`Failure`&&(H=U);let W=!1;if(H===null&&U._tag===`Success`){let e=pn||S?{...pn?{createThread:{projectId:Xn.id,title:B,modelSelection:V,runtimeMode:ln,interactionMode:un,compressMode:dn,unpromptedSubagents:fn,branch:Io,worktreePath:sn.worktreePath,createdAt:sn.createdAt}}:{},...S?{prepareWorktree:{projectCwd:Xn.workspaceRoot,baseBranch:S,branch:Fie(gt),...Lo?{startFromOrigin:!0}:{}},runSetupScript:!0}:{}}:void 0;ci({preparingWorktree:!1});let n=await T({environmentId:t,input:{threadId:b,message:{messageId:j,role:`user`,text:N,attachments:U.value},modelSelection:f,titleSeed:B,runtimeMode:ln,interactionMode:un,compressMode:dn,unpromptedSubagents:fn,...e?{bootstrap:e}:{},createdAt:M}});n._tag===`Failure`?H=n:W=!0}if(H!==null){if(Oe.current.length===0&&ke.current.length===0&&Ae.current.length===0&&je.current.length===0&&(xa.getState().getComposerDraft(L)?.previewAnnotations.length??0)===0&&(xa.getState().getComposerDraft(L)?.reviewComments.length??0)===0){ze(e=>{let t=e.filter(e=>e.id===j);for(let e of t)pP(e);let n=e.filter(e=>e.id!==j);return n.length===e.length?e:n}),Oe.current=p;let e=C.map(LOe);ke.current=e,Ae.current=w,je.current=E,fe(L,p),pe(L,e),me(L,w),he(L,E),ge(L,D),_e(L,O),Ne.current?.resetCursorState({cursor:cP(p,p.length),prompt:p,detectTrigger:!0})}if(!We(H)){let e=F(H);pa(b,e instanceof Error?e.message:`Failed to send message.`)}}It.current=!1,W||(Di(e=>e===Cn?null:e),li())},Ts=async()=>{if(!sn)return;let e=await E({environmentId:t,input:MOe(sn)});if(e._tag===`Failure`&&!We(e)){let t=F(e);pa(sn.id,t instanceof Error?t.message:`Failed to interrupt the current turn.`)}},Es=(0,J.useCallback)(async(e,n)=>{if(!hn)return;$e(t=>t.includes(e)?t:[...t,e]);let r=await D({environmentId:t,input:{threadId:hn,requestId:e,decision:n}});if(r._tag===`Failure`&&!We(r)){let e=F(r);pa(hn,e instanceof Error?e.message:`Failed to submit approval decision.`)}return $e(t=>t.filter(t=>t!==e)),r},[hn,t,D,pa]),Ds=(0,J.useCallback)(async(e,n)=>{if(!hn)return;tt(t=>t.includes(e)?t:[...t,e]);let r=await O({environmentId:t,input:{threadId:hn,requestId:e,answers:n}});if(r._tag===`Failure`&&!We(r)){let e=F(r);pa(hn,e instanceof Error?e.message:`Failed to submit user input.`)}return tt(t=>t.filter(t=>t!==e)),r},[hn,t,O,pa]),Os=(0,J.useCallback)(e=>{Yr&&ot(t=>({...t,[Yr.requestId]:e}))},[Yr]),ks=(0,J.useCallback)((e,t)=>{Yr&&(rt(n=>{let r=(Qr?.activeQuestion?.id===e?Qr.activeQuestion:void 0)??Yr.questions.find(t=>t.id===e);return r?{...n,[Yr.requestId]:{...n[Yr.requestId],[e]:VPe(r,n[Yr.requestId]?.[e],t)}}:n}),Oe.current=``,Ne.current?.resetCursorState({cursor:0}))},[Qr?.activeQuestion,Yr,Ne]),As=(0,J.useCallback)((e,t,n,r,i)=>{if(!Yr)return;Oe.current=t,rt(n=>({...n,[Yr.requestId]:{...n[Yr.requestId],[e]:BPe(n[Yr.requestId]?.[e],t)}}));let a=Ne.current?.readSnapshot();(a?.value!==t||a.cursor!==n||a.expandedCursor!==r)&&Ne.current?.focusAt(n)},[Yr,Ne]),Ms=(0,J.useCallback)(()=>{if(!(!Yr||!Qr)){if(Qr.isLastQuestion){ei&&Ds(Yr.requestId,ei);return}Os(Qr.questionIndex+1)}},[Qr,ei,Yr,Ds,Os]),Ns=(0,J.useCallback)(()=>{Qr&&Os(Math.max(Qr.questionIndex-1,0))},[Qr,Os]),Ps=(0,J.useCallback)(async({text:e,interactionMode:n})=>{if(!sn||!on||fi||Ke||It.current)return;let r=e.trim();if(!r)return;let i=Ne.current?.getSendContext();if(!i?.providerAvailable)return;let{selectedProvider:a,selectedModel:o,selectedProviderModels:s,selectedPromptEffort:c,selectedModelSelection:l}=i,u=sn.id,d=xf(),f=new Date().toISOString(),p=b9({provider:a,model:o,models:s,effort:c,text:r});It.current=!0,ci({preparingWorktree:!1}),pa(u,null),Nt.current=!0,uo(`anchoring-new-turn`),_o.current=go.current,fo.current=d,ho.current=null,oo.current.cancel(),Fe(!1),Tn({threadKey:fs($u(sn.environmentId,u)),messageId:d}),ze(e=>[...e,{id:d,role:`user`,text:p,turnId:null,createdAt:f,updatedAt:f,streaming:!1}]);let m=await ao({threadId:u,createdAt:f,modelSelection:l,...zo?{branch:zo.currentBranch}:{},runtimeMode:ln,interactionMode:n,compressMode:dn,unpromptedSubagents:fn}),h=m._tag===`Failure`?m:null;if(h===null){be($u(sn.environmentId,u),n);let e=await T({environmentId:t,input:{threadId:u,message:{messageId:d,role:`user`,text:p,attachments:[]},modelSelection:l,titleSeed:sn.title,runtimeMode:ln,interactionMode:n,compressMode:dn,unpromptedSubagents:fn,...n==="default"&&ni?{sourceProposedPlan:{threadId:sn.id,planId:ni.id}}:{},createdAt:f}});h=e._tag===`Failure`?e:null}if(h===null){n==="default"&&te&&(ct.current=null,Sn&&wu.getState().open(Sn,`plan`)),It.current=!1;return}if(ze(e=>e.filter(e=>e.id!==d)),!We(h)){let e=F(h);pa(u,e instanceof Error?e.message:`Failed to send plan follow-up.`)}It.current=!1,li()},[sn,ni,ci,Ke,fi,on,zo,ao,li,ln,be,pa,T,te,t,Ne]),Fs=(0,J.useCallback)(async()=>{if(!sn||!Xn||!ni||!on||fi||Ke||ur||It.current)return;let e=Ne.current?.getSendContext();if(!e?.providerAvailable)return;let{selectedProvider:n,selectedModel:r,selectedProviderModels:i,selectedPromptEffort:a,selectedModelSelection:o}=e,s=new Date().toISOString(),c=Li(),l=ni.planMarkdown,u=b9({provider:n,model:r,models:i,effort:a,text:yU(l)}),d=Xet(XFe(l)),f=o;It.current=!0,ci({preparingWorktree:!1});let p=()=>{It.current=!1,li()},m=await _({environmentId:t,input:{threadId:c,projectId:Xn.id,title:d,modelSelection:f,runtimeMode:ln,interactionMode:`default`,compressMode:dn,unpromptedSubagents:fn,branch:Io,worktreePath:sn.worktreePath,createdAt:s}}),h=m._tag===`Failure`?m:null;if(h===null){let e=await T({environmentId:t,input:{threadId:c,message:{messageId:xf(),role:`user`,text:u,attachments:[]},modelSelection:o,titleSeed:d,runtimeMode:ln,interactionMode:`default`,compressMode:dn,unpromptedSubagents:fn,sourceProposedPlan:{threadId:sn.id,planId:ni.id},createdAt:s}});h=e._tag===`Failure`?e:null}if(h===null){let e=await bf(()=>UOe($u(sn.environmentId,c)));h=e._tag===`Failure`?e:null}if(h===null){lt.current=te;let e=await bf(()=>re({to:`/$environmentId/$threadId`,params:{environmentId:sn.environmentId,threadId:c}}));h=e._tag===`Failure`?e:null}if(h!==null){let e=await v({environmentId:t,input:{threadId:c}});if(e._tag===`Failure`&&!We(e)&&console.warn(`Failed to clean up implementation thread after start failure.`,F(e)),!We(h)){let e=F(h);eC.add($S({type:`error`,title:`Could not start implementation thread`,description:e instanceof Error?e.message:`An error occurred while creating the new thread.`}))}}p()},[Xn,ni,Io,sn,ci,ur,_,v,Ke,fi,on,re,li,ln,T,te,t,Ne]),Is=(0,J.useCallback)((e,t)=>{if(!sn)return null;let n=yP({providers:Br,hasStartedSession:sn.session!==null,currentModelSelection:sn.modelSelection,currentProviderInstanceId:sn.session?.providerInstanceId??null,nextModelSelection:{instanceId:e,model:t}});return n?`${n.description} Start a new thread to use this model.`:null},[sn,Br]),Ls=(0,J.useCallback)((e,t)=>{if(!sn)return;let n=Br.find(t=>t.instanceId===e),r=n?.driver??null;if(Cr!==null&&r!==null&&r!==Cr){ha();return}if(Cr!==null&&sn.session?.providerInstanceId){let e=Br.find(e=>e.instanceId===sn.session?.providerInstanceId);if(e?.continuation?.groupKey&&n?.continuation?.groupKey&&e.continuation.groupKey!==n.continuation.groupKey){ha();return}}let i=Fn(e,U,Br,t);if(!i){ha();return}let a={instanceId:e,model:i},o=yP({providers:Br,hasStartedSession:sn.session!==null,currentModelSelection:sn.modelSelection,currentProviderInstanceId:sn.session?.providerInstanceId??null,nextModelSelection:a});if(o){eC.add({type:`warning`,title:o.title,description:o.description}),ha();return}ve($u(sn.environmentId,sn.id),a),ee(a),ha()},[sn,Cr,ha,ve,ee,Br,U]),zs=(0,J.useCallback)(e=>{if(Po){bt(e),ha();return}pn&&we(L,{envMode:e,startFromOrigin:Tw({envMode:e,newWorktreesStartFromOrigin:W.newWorktreesStartFromOrigin}),...e===`worktree`&&z?.worktreePath?{worktreePath:null}:{}}),ha()},[Po,L,z?.worktreePath,pn,W.newWorktreesStartFromOrigin,bt,ha,we]),Bs=e=>{if(Po&&sn){wt(t=>t[sn.id]===e?t:{...t,[sn.id]:e});return}pn&&we(L,{startFromOrigin:e})},Vs=(0,J.useCallback)(e=>{Le(e)},[]),Hs=(0,J.useCallback)((e,t)=>{!on||!Sn||(ett.getState().selectTurn(Sn,e,t),wu.getState().open(Sn,`diff`),i?.())},[Sn,on,i]),Us=(0,J.useRef)(Ii);Us.current=Ii;let Ws=(0,J.useRef)(Cs);Ws.current=Cs;let Gs=(0,J.useCallback)(e=>{let t=Us.current.get(e);typeof t==`number`&&Ws.current(t)},[]);if(!sn)return(0,Y.jsx)(Kft,{});let Ks=(0,Y.jsx)(Hft,{terminalAvailable:Xn!==null,terminalOpen:Rt.terminalOpen,terminalShortcutLabel:Rg(Vi,`terminal.toggle`),rightPanelAvailable:Xn!==null,rightPanelOpen:Rn,rightPanelShortcutLabel:Rg(Vi,`rightPanel.toggle`),onToggleTerminal:va,onToggleRightPanel:Ya}),qs=(0,Y.jsxs)(`div`,{className:`workspace-titlebar-controls z-50 gap-1 [-webkit-app-region:no-drag]`,children:[Rn&&!st?(0,Y.jsx)(Uft,{maximized:Bn,onToggle:Za}):null,Ks]}),Js=Sn?jn?.kind===`preview`?(0,Y.jsx)(J.Suspense,{fallback:null,children:(0,Y.jsx)(_pt,{mode:`embedded`,threadRef:Sn,tabId:jn.resourceId,configuredUrls:ir,visible:!0})}):jn?.kind===`terminal`?(0,Y.jsx)(jpt,{threadRef:Sn,surface:jn,launchContext:$i??null,focusRequestId:ut,keybindings:Vi,onAddTerminalContext:ga,onSplitTerminal:Wa,onSplitTerminalVertical:Ga,onNewTerminal:Ua,onActiveTerminalChange:Ka,onCloseTerminal:qa,splitShortcutLabel:aa??void 0,splitVerticalShortcutLabel:oa??void 0,newShortcutLabel:sa??void 0,closeShortcutLabel:ca??void 0}):jn?.kind===`diff`?(0,Y.jsx)(J.Suspense,{fallback:null,children:(0,Y.jsx)(vpt,{mode:`embedded`,composerDraftTarget:L,initialGitScope:na},`${Cn}:${ra}`)}):jn?.kind===`plan`?(0,Y.jsx)(znt,{activePlan:ii,activeProposedPlan:ri,label:ai,environmentId:t,threadRef:Sn,markdownCwd:Ri??void 0,workspaceRoot:Qi,timestampFormat:G,mode:`embedded`}):jn?.kind===`task`?(0,Y.jsx)(Wft,{environmentId:Sn.environmentId,threadId:Sn.threadId,threadRef:Sn}):(jn?.kind===`files`||jn?.kind===`file`)&&Xn&&Qi?(0,Y.jsx)(J.Suspense,{fallback:null,children:(0,Y.jsx)(ypt,{environmentId:Xn.environmentId,cwd:Qi,projectName:Xn.title,threadRef:Sn,composerDraftTarget:L,keybindings:Vi,availableEditors:Hi,relativePath:jn.kind===`file`?jn.relativePath:null,revealLine:Mn?.revealLine??null,revealRequestId:Mn?.revealRequestId??0,onOpenFile:Ba,onPendingChange:rr},`${Xn.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:[Rn&&!st?qs:null,(0,Y.jsxs)(`div`,{className:K(`flex min-h-0 min-w-0 flex-col overflow-x-hidden`,Bn?`w-0 flex-none`:`flex-1`),"data-chat-column-maximized-away":Bn?`true`:`false`,children:[(0,Y.jsxs)(`header`,{"data-chat-header":!0,className:K(`bg-background transition-[padding-left] duration-200 ease-linear motion-reduce:transition-none`,Gm?K(`workspace-topbar drag-region relative px-3 sm:px-5`,a&&!q&&`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)]`,ON),children:[Rn?null:qs,(0,Y.jsx)(Vft,{activeThreadEnvironmentId:sn.environmentId,activeThreadId:sn.id,...r===`draft`&&s?{draftId:s}:{},activeThreadTitle:sn.title,activeProjectName:Xn?.title,activeProjectCwd:Xn?.workspaceRoot??null,openInCwd:Ri,activeProjectScripts:Xn?.scripts,preferredScriptId:Xn?Tt[Xn.id]??null:null,keybindings:Vi,availableEditors:Hi,rightPanelOpen:Rn,gitCwd:Ri,onNewThreadInProject:Zn,onRunProjectScript:Ca,onAddProjectScript:Ta,onUpdateProjectScript:Ea,onDeleteProjectScript:Da})]}),(0,Y.jsx)(Xft,{error:cn,onDismiss:()=>pa(sn.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)(Yft,{status:Ji,onDismiss:()=>qi(Gi)})}),(0,Y.jsxs)(`div`,{className:`relative flex min-h-0 flex-1 flex-col`,children:[(0,Y.jsx)(mut,{isWorking:pi,activeTurnInProgress:pi||!Jn,activeTurnStartedAt:mi,listRef:Dt,timelineEntries:Ti,latestTurn:Un,runningTurnId:sn.session?.status===`running`?sn.session.activeTurnId:null,turnDiffSummaryByAssistantMessageId:Fi,activeThreadEnvironmentId:sn.environmentId,routeThreadKey:u,onOpenTurnDiff:Hs,revertTurnCountByUserMessageId:Ii,onRevertUserMessage:Gs,isRevertingCheckpoint:Je,onImageExpand:Vs,markdownCwd:Ri??void 0,resolvedTheme:ae,timestampFormat:G,workspaceRoot:Qi,skills:Wi?.skills??ppt,anchorMessageId:En,onAnchorReady:Do,onAnchorSizeChanged:Oo,contentInsetEndAdjustment:jt,followsEnd:co,onIsAtEndChange:ko,onManualNavigation:bo,hideEmptyPlaceholder:ki,topFadeEnabled:!Yi},sn.id),Pe&&(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:jt+4},children:(0,Y.jsxs)(`button`,{type:`button`,"aria-label":`Scroll to end`,title:`Scroll to end`,onClick:()=>To(!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)(cc,{className:`size-3.5`}),`Scroll to end`]})})]}),(0,Y.jsx)(`div`,{ref:At,"data-chat-composer-overlay":`true`,className:ki?`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:Ai,className:`chat-composer-horizontal-inset w-full`,children:(0,Y.jsxs)(`div`,{className:`pointer-events-auto relative z-10`,children:[ki?(0,Y.jsxs)(`div`,{className:`absolute inset-x-0 bottom-full z-0`,children:[(0,Y.jsx)(`div`,{className:`pb-8`,style:o?{viewTransitionName:opt}:void 0,children:(0,Y.jsx)(Gct,{activeProjectRef:Yn,activeProjectTitle:Xn?.title??null})}),(0,Y.jsx)(tpt,{className:`relative z-0`,items:Ss})]}):(0,Y.jsx)(tpt,{className:`relative z-0`,items:Ss}),(0,Y.jsxs)(`div`,{className:`relative`,style:o?{viewTransitionName:apt}:void 0,children:[(0,Y.jsxs)(`div`,{className:K(`chat-composer-glass-shell relative mx-auto w-full max-w-4xl`,ta&&`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:ji,className:`relative z-10`,children:(0,Y.jsx)(EU,{composerRef:Ne,composerDraftTarget:L,environmentId:t,routeKind:r,routeThreadRef:l,draftId:s,activeThreadId:hn,activeThreadEnvironmentId:sn?.environmentId,activeThread:sn,isServerThread:on,isLocalDraftThread:pn,forceExpandedOnMobile:o&&ki,projectSelectionRequired:pn&&Xn===null,phase:Ur,isConnecting:Ke,isSendBusy:fi,isPreparingWorktree:di,environmentUnavailable:fr,activePendingApproval:si,pendingApprovals:Kr,pendingUserInputs:Jr,activePendingProgress:Qr,activePendingResolvedAnswers:ei,activePendingIsResponding:ti,activePendingDraftAnswers:Xr,activePendingQuestionIndex:Zr,respondingRequestIds:Qe,showPlanFollowUpPrompt:oi,activeProposedPlan:ni,activePlan:ii,sidebarProposedPlan:ri,planSidebarLabel:ai,planSidebarOpen:Vn,runtimeMode:ln,interactionMode:un,compressMode:dn,unpromptedSubagents:fn,lockedProvider:Cr,providerStatuses:Br,activeProjectDefaultModelSelection:Xn?.defaultModelSelection,activeThreadModelSelection:sn?.modelSelection,activeThreadActivities:sn?.activities,resolvedTheme:ae,settings:U,keybindings:Vi,terminalOpen:!!Rt.terminalOpen,gitCwd:Ri,promptRef:Oe,composerImagesRef:ke,composerTerminalContextsRef:Ae,composerElementContextsRef:je,onSend:ws,onInterrupt:Ts,onImplementPlanInNewThread:Fs,onRespondToApproval:Es,onSelectActivePendingUserInputOption:ks,onAdvanceActivePendingUserInput:Ms,onPreviousActivePendingUserInputQuestion:Ns,onChangeActivePendingUserInputCustomAnswer:As,onProviderModelSelect:Ls,getModelDisabledReason:Is,toggleInteractionMode:Aa,handleRuntimeModeChange:Oa,handleInteractionModeChange:ka,handleCompressModeChange:ja,handleUnpromptedSubagentsChange:Ma,togglePlanSidebar:Pa,focusComposer:ma,scheduleComposerFocus:ha,setThreadError:pa,onExpandImage:Vs})})}),(0,Y.jsx)(`div`,{className:`min-h-0`,children:(0,Y.jsx)(`div`,{"data-terminal-open":Rt.terminalOpen?`true`:void 0,className:`relative z-0`,children:ta&&(0,Y.jsx)(`div`,{className:`pointer-events-auto`,children:(0,Y.jsx)(Int,{environmentId:sn.environmentId,threadId:sn.id,...r===`draft`&&s?{draftId:s}:{},onEnvModeChange:zs,startFromOrigin:Lo,onStartFromOriginChange:Bs,...Po?{effectiveEnvModeOverride:Fo}:{},...Po?{activeThreadBranchOverride:Io,onActiveThreadBranchOverrideChange:St}:{},envLocked:ua,onComposerFocusRequest:ha,...mn?{onCheckoutPullRequestRequest:_r}:{},...gr?{onEnvironmentChange:da}:{},availableEnvironments:hr})})})})]}),(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)]`})]})]})})}),Sn&&Pn?(0,Y.jsx)(btt,{threadRef:Sn,tabId:Pn.tabId,bottomInset:ki?0:jt},`${Cn}:${Pn.tabId}`):null,(0,Y.jsx)(c3,{open:ls,onOpenChange:us,children:(0,Y.jsxs)(l3,{children:[(0,Y.jsxs)(u3,{children:[(0,Y.jsxs)(f3,{children:[`Switch to`,` `,(0,Y.jsx)(`code`,{className:`font-medium`,children:zo?.threadBranch??``}),`?`]}),(0,Y.jsx)(p3,{children:`You have uncommitted changes. They'll carry over to the other branch, or block the switch if they conflict.`})]}),(0,Y.jsxs)(d3,{children:[(0,Y.jsx)(m3,{render:(0,Y.jsx)(lr,{variant:`outline`}),children:`Cancel`}),(0,Y.jsx)(lr,{variant:`default`,onClick:()=>{us(!1),ys()},children:`Switch branch`})]})]})}),ft?(0,Y.jsx)(clt,{open:!0,environmentId:sn.environmentId,threadId:sn.id,cwd:Xn?.workspaceRoot??null,initialReference:ft.initialReference,onOpenChange:e=>{e||vr()},onPrepared:br},ft.key):null]})}),$t.map(({key:e,threadRef:t})=>(0,Y.jsx)(Apt,{threadRef:t,threadId:t.threadId,visible:e===Cn&&Rt.terminalOpen,launchContext:e===Cn?$i??null:null,focusRequestId:e===Cn?ut:0,splitShortcutLabel:aa??void 0,splitVerticalShortcutLabel:oa??void 0,newShortcutLabel:sa??void 0,closeShortcutLabel:ca??void 0,keybindings:Vi,onAddTerminalContext:ga},e))]}),!st&&Rn&&Sn?(0,Y.jsx)(Ktt,{mode:`inline`,maximized:Bn,surfaces:An.surfaces,activeSurfaceId:jn?.id??null,pendingSurfaceIds:nr,previewSessions:Nn.sessions,terminalLabelsById:xn,onActivate:Ja,onCloseSurface:eo,onCloseOtherSurfaces:to,onCloseSurfacesToRight:no,onCloseAllSurfaces:ro,onCopyFilePath:io,onAddBrowser:La,onAddTerminal:Ua,onAddDiff:Ra,onAddFiles:za,browserAvailable:pw(),diffAvailable:on&&ea,filesAvailable:Xn!==null,children:Js}):null,st&&Rn&&Sn?(0,Y.jsx)(lpt,{open:!0,onClose:Vn?Fa:Ha,children:(0,Y.jsx)(Ktt,{mode:`sheet`,layoutControls:Ks,surfaces:An.surfaces,activeSurfaceId:jn?.id??null,pendingSurfaceIds:nr,previewSessions:Nn.sessions,terminalLabelsById:xn,onActivate:Ja,onCloseSurface:eo,onCloseOtherSurfaces:to,onCloseSurfacesToRight:no,onCloseAllSurfaces:ro,onCopyFilePath:io,onAddBrowser:La,onAddTerminal:Ua,onAddDiff:Ra,onAddFiles:za,browserAvailable:pw(),diffAvailable:on&&ea,filesAvailable:Xn!==null,children:Js})}):null,Ie&&(0,Y.jsx)(Zct,{preview:Ie,onClose:Ao},`${Ie.images[Ie.index]?.src??`image`}:${Ie.index}`)]})}function Ppt(e){let t=(0,X.c)(2),n;return t[0]===e?n=t[1]:(n=(0,Y.jsx)(bnt,{children:(0,Y.jsx)(Npt,{...e})}),t[0]=e,t[1]=n),n}function Fpt(e){return e.kind===`terminal`?e.terminalIds:[]}function Ipt(e){return e.target.terminalId}function Lpt(e){return e.setTerminalHeight}function Rpt(e){return e.splitTerminal}function zpt(e){return e.splitTerminalVertical}function Bpt(e){return e.newTerminal}function Vpt(e){return e.setActiveTerminal}function Hpt(e){return e.closeTerminal}function Upt(e){return e.reconcileTerminalIds}function Wpt(e){return e+1}function Gpt(){}function Kpt(){let e=(0,X.c)(26),t=Pm(),{draftId:n}=qpt.useParams(),r;e[0]===n?r=e[1]:(r=Xi.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=xa(a),s=iie(),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=vP(A_(u))?u:null,f;e[7]!==o?.promotedTo||e[8]!==l?(f=()=>{!l||o?.promotedTo||Vt(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 spt().then(()=>{e||t({to:`/$environmentId/$threadId`,params:Lc(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)(HT,{className:`h-svh min-h-0 overflow-hidden overscroll-y-none bg-background text-foreground md:h-dvh`,children:(0,Y.jsx)(Ppt,{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 qpt=Vm(`/_chat/draft/$draftId`)({component:Kpt}),Jpt=3e3;function Ypt(){let e=(0,X.c)(32),t=Pm(),n;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(n={select:Xpt},e[0]=n):n=e[0];let r=Zpt.useParams(n),i;e[1]===r?i=e[2]:(i=r===null?null:y_.stateAtom(r.environmentId),e[1]=r,e[2]=i);let a=$r(i),o=k_(r),s=cie(r),c=lie(r),l=aie(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=xa(f),m;e[5]===r?m=e[6]:(m=e=>r?e.getDraftThreadByRef(r):null,e[5]=r,e[6]=m);let h=xa(m),g;e[7]===r?g=e[8]:(g=e=>r?e.hasDraftThreadsInEnvironment(r.environmentId):!1,e[7]=r,e[8]=g);let _=xa(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=us({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=vP(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=()=>{if(!(!r||!u)&&S===`missing`&&T){let e=window.setTimeout(()=>{t({to:`/`,replace:!0})},Jpt);return()=>window.clearTimeout(e)}},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||en(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)(HT,{className:`h-svh min-h-0 overflow-hidden overscroll-y-none bg-background text-foreground md:h-dvh`,children:(0,Y.jsx)(Ppt,{environmentId:r.environmentId,threadId:r.threadId,routeKind:`server`})}),e[29]=r.environmentId,e[30]=r.threadId,e[31]=A):A=e[31],A}function Xpt(e){return Ro(e)}var Zpt=Vm(`/_chat/$environmentId/$threadId`)({component:Ypt}),x9=jDe.update({id:`/settings`,path:`/settings`,getParentRoute:()=>FO}),Qpt=NN.update({id:`/pair`,path:`/pair`,getParentRoute:()=>FO}),S9=GDe.update({id:`/_chat`,getParentRoute:()=>FO}),$pt=UN.update({id:`/`,path:`/`,getParentRoute:()=>S9}),emt=c6e.update({id:`/sync`,path:`/sync`,getParentRoute:()=>x9}),tmt=B6e.update({id:`/source-control`,path:`/source-control`,getParentRoute:()=>x9}),nmt=H6e.update({id:`/providers`,path:`/providers`,getParentRoute:()=>x9}),rmt=T8e.update({id:`/keybindings`,path:`/keybindings`,getParentRoute:()=>x9}),imt=D8e.update({id:`/general`,path:`/general`,getParentRoute:()=>x9}),amt=t5e.update({id:`/diagnostics`,path:`/diagnostics`,getParentRoute:()=>x9}),omt=j7e.update({id:`/connections`,path:`/connections`,getParentRoute:()=>x9}),smt=R7e.update({id:`/changelog`,path:`/changelog`,getParentRoute:()=>x9}),cmt=z7e.update({id:`/archived`,path:`/archived`,getParentRoute:()=>x9}),lmt=V7e.update({id:`/appearance`,path:`/appearance`,getParentRoute:()=>x9}),umt=c6.update({id:`/tasks/{-$taskRef}`,path:`/tasks/{-$taskRef}`,getParentRoute:()=>S9}),dmt=qpt.update({id:`/draft/$draftId`,path:`/draft/$draftId`,getParentRoute:()=>S9}),fmt={ChatIndexRoute:$pt,ChatEnvironmentIdThreadIdRoute:Zpt.update({id:`/$environmentId/$threadId`,path:`/$environmentId/$threadId`,getParentRoute:()=>S9}),ChatDraftDraftIdRoute:dmt,ChatTasksChar123TaskRefChar125Route:umt},pmt=S9._addFileChildren(fmt),mmt={SettingsAppearanceRoute:lmt,SettingsArchivedRoute:cmt,SettingsChangelogRoute:smt,SettingsConnectionsRoute:omt,SettingsDiagnosticsRoute:amt,SettingsGeneralRoute:imt,SettingsKeybindingsRoute:rmt,SettingsProvidersRoute:nmt,SettingsSourceControlRoute:tmt,SettingsSyncRoute:emt},hmt={ChatRoute:pmt,PairRoute:Qpt,SettingsRoute:x9._addFileChildren(mmt)},gmt=FO._addFileChildren(hmt)._addFileTypes();function _mt(e){return ate({routeTree:gmt,history:e,context:{}})}var vmt=`wco`,ymt=`electron`,bmt=`electron-windows`;function xmt(){return typeof navigator>`u`?null:navigator.windowControlsOverlay??null}function Smt(){if(typeof document>`u`)return()=>{};let e=xmt(),t=()=>{document.documentElement.classList.toggle(vmt,e!==null&&e.visible)};return t(),e?(e.addEventListener(`geometrychange`,t),()=>{e.removeEventListener(`geometrychange`,t)}):()=>{}}function Cmt(e){return mn(e)?[ymt,bmt]:[ymt]}function wmt(e){if(typeof document>`u`)return()=>{};let t=Cmt(e);return document.documentElement.classList.add(...t),()=>{document.documentElement.classList.remove(...t)}}var C9=(e,t,n)=>e.getPropertyValue(t).trim()||n;function Tmt(){let e=document.documentElement,t=getComputedStyle(e);return{colorScheme:e.classList.contains(`dark`)?`dark`:`light`,radius:C9(t,`--radius`,`0.625rem`),background:C9(t,`--background`,`white`),foreground:C9(t,`--foreground`,`oklch(0.269 0 0)`),popover:C9(t,`--popover`,`white`),popoverForeground:C9(t,`--popover-foreground`,`oklch(0.269 0 0)`),primary:C9(t,`--primary`,`oklch(0.488 0.217 264)`),primaryForeground:C9(t,`--primary-foreground`,`white`),muted:C9(t,`--muted`,`rgb(0 0 0 / 4%)`),mutedForeground:C9(t,`--muted-foreground`,`oklch(0.556 0 0)`),accent:C9(t,`--accent`,`rgb(0 0 0 / 4%)`),accentForeground:C9(t,`--accent-foreground`,`oklch(0.269 0 0)`),border:C9(t,`--border`,`rgb(0 0 0 / 8%)`),input:C9(t,`--input`,`rgb(0 0 0 / 10%)`),ring:C9(t,`--ring`,`oklch(0.488 0.217 264)`),fontSans:C9(t,`--font-sans`,t.fontFamily||`system-ui, sans-serif`),fontMono:C9(t,`--font-mono`,`ui-monospace, monospace`)}}var w9=Go()(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 Emt(e){let t=(0,X.c)(7),{threadRef:n,tabId:r,runtimeTabId:i}=e,a=w9(Dmt),o=Zd(RC.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(!(!v6||typeof window>`u`))return s.current=null,c.current=null,l.current=null,v6.onStateChange((e,t)=>{if(e!==i)return;Omt(l.current,t.navStatus)&&a(i),l.current=t.navStatus,Nue(n,r,kmt(t));let u=Amt({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=[v6,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 Dmt(e){return e.clear}function Omt(e,t){return e?t.kind===`Loading`&&e.kind!==`Loading`?!0:t.kind===`Idle`||e.kind===`Idle`?!1:t.url!==e.url:!1}function kmt(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 Amt(e){let{threadId:t,tabId:n,state:r,lastReportedUrl:i,lastReportedKind:a}=e,o=r.navStatus;if(o.kind===`Idle`||o.kind!==`LoadFailed`&&o.kind===a&&o.url===i)return null;let s={threadId:t,tabId:n,canGoBack:r.canGoBack,canGoForward:r.canGoForward};return o.kind===`LoadFailed`?{input:{...s,navStatus:{_tag:`LoadFailed`,url:o.url,title:o.title,code:o.code,description:o.description}},lastReportedUrl:o.url,lastReportedKind:`LoadFailed`}:{input:{...s,navStatus:{_tag:o.kind,url:o.url,title:o.title}},lastReportedUrl:o.url,lastReportedKind:o.kind}}var T9=e=>e._tag===`fill`?`fill`:`${e._tag}:${e.width}:${e.height}:${e._tag===`preset`?e.presetId:``}`,E9=e=>Number.isFinite(e)&&e>0?e:1;function jmt(e,t,n=1){if(e._tag!==`fill`)return e;let r=E9(n);return t?{_tag:`freeform`,width:Math.max(1,Math.round(t.width/t.scale/r)),height:Math.max(1,Math.round(t.height/t.scale/r))}:{_tag:`freeform`,width:1280,height:800}}function D9(e){return{width:Math.max(1,e.width-20),height:Math.max(1,e.height-32-10)}}function O9(e,t,n=1){let r=Math.max(1,Math.round(e.width)),i=Math.max(1,Math.round(e.height));if(t._tag===`fill`)return{canvasWidth:r,canvasHeight:i,viewportX:0,viewportY:0,viewportWidth:r,viewportHeight:i,viewportScale:1,fillsPanel:!0};let a=E9(n),o=t.width*a,s=t.height*a,c=Math.min(1,r/o,i/s),l=o*c,u=s*c;return{canvasWidth:r,canvasHeight:i,viewportX:Math.max(0,Math.round((r-l)/2)),viewportY:Math.max(0,Math.round((i-u)/2)),viewportWidth:l,viewportHeight:u,viewportScale:c,fillsPanel:!1}}function Mmt(e,t,n=1){let r=O9(D9(e),t,n);return{...r,canvasWidth:Math.max(1,Math.round(e.width)),canvasHeight:Math.max(1,Math.round(e.height)),viewportX:r.viewportX+10,viewportY:r.viewportY+32}}var Nmt=e=>Math.min(Nt,Math.max(240,e)),Pmt=e=>e!==void 0&&Number.isFinite(e)&&e>0;function Fmt(e,t,n){if(n===`width`){let n=Math.ceil(Math.max(240,240*t)),r=Math.floor(Math.min(Nt,Nt*t,Math.sqrt(eu*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(Nt,Nt/t,Math.sqrt(eu/t))),a=Math.min(i,Math.max(r,Math.round(e))),o=Math.round(a*t);for(;o*a>8294400&&a>r;)--a,o=Math.round(a*t);return{width:o,height:a}}function k9(e,t,n=1,r=`southeast`,i){let a=E9(n),o=r.includes(`east`)?t.x:r.includes(`west`)?-t.x:0,s=r.includes(`south`)?t.y:r.includes(`north`)?-t.y:0,c=e.width+o/a,l=e.height+s/a;if(Pmt(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 Fmt(a===`width`?c:l,i,a)}let u=Nmt(Math.round(c)),d=Nmt(Math.round(l));return u*d<=8294400||(Math.abs(o)>=Math.abs(s)?u=Math.max(240,Math.floor(eu/d)):d=Math.max(240,Math.floor(eu/u))),{width:u,height:d}}var Imt=(e,t,n)=>{let r=(e<n?(n+e)/2:e)+t;return r<=n?r*2-n:r},Lmt=(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 Rmt(e,t,n,r=1,i=`southeast`,a){let o=E9(r),s=e.width*o,c=e.height*o,l=i.includes(`east`)?Imt(s,t.x,n.width):i.includes(`west`)?Lmt(s,t.x,n.width):s,u=i.includes(`south`)?Imt(c,t.y,n.height):i.includes(`north`)?Lmt(c,t.y,n.height):c,d=l-s,f=u-c;return k9(e,{x:i.includes(`west`)?-d:d,y:i.includes(`north`)?-f:f},o,i,a)}function zmt(e,t=1){let n=D9(e),r=E9(t);return k9({width:n.width/r,height:n.height/r},{x:0,y:0})}var Bmt={"iphone-se":{label:`iPhone SE`,category:`Phone`,detail:`375 × 667`,width:375,height:667},"iphone-xr":{label:`iPhone XR`,category:`Phone`,detail:`414 × 896`,width:414,height:896},"iphone-12-pro":{label:`iPhone 12 Pro`,category:`Phone`,detail:`390 × 844`,width:390,height:844},"iphone-14-pro-max":{label:`iPhone 14 Pro Max`,category:`Phone`,detail:`430 × 932`,width:430,height:932},"pixel-7":{label:`Pixel 7`,category:`Phone`,detail:`412 × 915`,width:412,height:915},"samsung-galaxy-s8-plus":{label:`Samsung Galaxy S8+`,category:`Phone`,detail:`360 × 740`,width:360,height:740},"samsung-galaxy-s20-ultra":{label:`Samsung Galaxy S20 Ultra`,category:`Phone`,detail:`412 × 915`,width:412,height:915},"ipad-mini":{label:`iPad Mini`,category:`Tablet`,detail:`768 × 1024`,width:768,height:1024},"ipad-air":{label:`iPad Air`,category:`Tablet`,detail:`820 × 1180`,width:820,height:1180},"ipad-pro":{label:`iPad Pro`,category:`Tablet`,detail:`1024 × 1366`,width:1024,height:1366},"surface-pro-7":{label:`Surface Pro 7`,category:`Tablet`,detail:`912 × 1368`,width:912,height:1368},"surface-duo":{label:`Surface Duo`,category:`Phone`,detail:`540 × 720`,width:540,height:720},"galaxy-z-fold-5":{label:`Galaxy Z Fold 5`,category:`Phone`,detail:`344 × 882`,width:344,height:882},"asus-zenbook-fold":{label:`Asus Zenbook Fold`,category:`Tablet`,detail:`853 × 1280`,width:853,height:1280},"samsung-galaxy-a51-71":{label:`Samsung Galaxy A51/71`,category:`Phone`,detail:`412 × 914`,width:412,height:914},"nest-hub":{label:`Nest Hub`,category:`Tablet`,detail:`1024 × 600`,width:1024,height:600},"nest-hub-max":{label:`Nest Hub Max`,category:`Tablet`,detail:`1280 × 800`,width:1280,height:800}},A9=pa.map(e=>({id:e,...Bmt[e]}));function Vmt(e){if(e.mode===`fill`)return{_tag:`fill`};if(e.mode===`preset`&&e.preset!==void 0){let t=A9.find(t=>t.id===e.preset);if(!t)throw Error(`Unknown preview viewport preset: ${e.preset}`);let n=e.orientation===`landscape`,r=e.orientation===`portrait`,i=t.height>=t.width,a=n&&i||r&&!i;return{_tag:`preset`,width:a?t.height:t.width,height:a?t.width:t.height,presetId:t.id}}if(e.width===void 0||e.height===void 0)throw Error(`Custom preview viewport requires width and height`);return{_tag:`freeform`,width:e.width,height:e.height}}async function Hmt(e,t,n,r){await n(e),r(t)}var j9=`responsive`,Umt=[{value:j9,label:`Responsive`},...A9.map(e=>({value:e.id,label:e.label}))];function Wmt(){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 Gmt(e){let t=(0,X.c)(125),{setting:n,width:r,aspectRatio:i,onAspectRatioChange:a,onChange:o}=e,[s,c]=(0,J.useState)(!1),[l,u]=(0,J.useState)(null),d;t[0]!==l||t[1]!==n.height||t[2]!==n.width?(d=l??{width:String(n.width),height:String(n.height)},t[0]=l,t[1]=n.height,t[2]=n.width,t[3]=d):d=t[3];let f=d,p=n._tag===`preset`&&A9.some(e=>e.id===n.presetId)?n.presetId:j9,m=Number(f.width),h=Number(f.height),g;t[4]!==h||t[5]!==m?(g=Number.isInteger(m)&&Number.isInteger(h)&&m>=240&&m<=3840&&h>=240&&h<=3840&&m*h<=8294400,t[4]=h,t[5]=m,t[6]=g):g=t[6];let _=g,v;t[7]!==i||t[8]!==a||t[9]!==o?(v=(e,t)=>{let n=t===void 0?i:t;c(!0),Hmt(e,n,o,a).then(()=>{c(!1),u(null)},()=>c(!1))},t[7]=i,t[8]=a,t[9]=o,t[10]=v):v=t[10];let y=v,b;t[11]!==y||t[12]!==h||t[13]!==_||t[14]!==m||t[15]!==n.height||t[16]!==n.width?(b=()=>{if(!_||m===n.width&&h===n.height){u(null);return}y({_tag:`freeform`,width:m,height:h})},t[11]=y,t[12]=h,t[13]=_,t[14]=m,t[15]=n.height,t[16]=n.width,t[17]=b):b=t[17];let x=b,S;t[18]!==i||t[19]!==n?(S=(e,t)=>{u(r=>{let a={width:e===`width`?t:r?.width??String(n.width),height:e===`height`?t:r?.height??String(n.height)},o=Number(t);if(i===null||!Number.isInteger(o)||o<240||o>3840)return a;let s=k9(n,e===`width`?{x:o-n.width,y:0}:{x:0,y:o-n.height},1,e===`width`?`east`:`south`,i);return{width:String(s.width),height:String(s.height)}})},t[18]=i,t[19]=n,t[20]=S):S=t[20];let C=S,w;t[21]!==y||t[22]!==i||t[23]!==n._tag||t[24]!==n.height||t[25]!==n.width?(w=e=>{if(!e)return;if(e===j9){if(n._tag===`freeform`)return;y({_tag:`freeform`,width:n.width,height:n.height});return}let t=A9.find(t=>t.id===e);t&&y(Vmt({mode:`preset`,preset:t.id}),i===null?null:t.width/t.height)},t[21]=y,t[22]=i,t[23]=n._tag,t[24]=n.height,t[25]=n.width,t[26]=w):w=t[26];let T=w,E;t[27]!==y||t[28]!==i||t[29]!==h||t[30]!==_||t[31]!==m||t[32]!==n?(E=()=>{let e=_&&(m!==n.width||h!==n.height)?{_tag:`freeform`,width:m,height:h}:n;y({...e,width:e.height,height:e.width},i===null?null:1/i)},t[27]=y,t[28]=i,t[29]=h,t[30]=_,t[31]=m,t[32]=n,t[33]=E):E=t[33];let D=E,O;t[34]!==i||t[35]!==h||t[36]!==m||t[37]!==a?(O=()=>{a(i===null?m/h:null)},t[34]=i,t[35]=h,t[36]=m,t[37]=a,t[38]=O):O=t[38];let k=O,A;t[39]===r?A=t[40]:(A={width:r,height:32},t[39]=r,t[40]=A);let j;t[41]===x?j=t[42]:(j=e=>{let t=e.relatedTarget;if(t instanceof Node&&e.currentTarget.contains(t))return;let n=e.target;t instanceof HTMLElement&&t.closest(`[data-slot="select-positioner"]`)||n instanceof HTMLElement&&n.closest(`[data-slot="select-positioner"]`)||x()},t[41]=x,t[42]=j);let M;t[43]===r?M=t[44]:(M=r>=560?(0,Y.jsx)(`span`,{className:`mr-0.5 shrink-0 text-[11px] font-medium text-muted-foreground`,children:`Dimensions`}):null,t[43]=r,t[44]=M);let N=r>=440?`w-36`:`w-24`,P;t[45]===N?P=t[46]:(P=K(`shrink-0 justify-between px-1.5 font-medium`,N),t[45]=N,t[46]=P);let F;t[47]===Symbol.for(`react.memo_cache_sentinel`)?(F=(0,Y.jsx)(qc,{}),t[47]=F):F=t[47];let I;t[48]===P?I=t[49]:(I=(0,Y.jsx)(Po,{variant:`ghost`,size:`xs`,className:P,"aria-label":`Browser device preset`,children:F}),t[48]=P,t[49]=I);let L;t[50]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,Y.jsx)(Pl,{value:j9,children:`Responsive`}),t[50]=L):L=t[50];let R;t[51]===Symbol.for(`react.memo_cache_sentinel`)?(R=(0,Y.jsxs)(Pu,{align:`start`,alignItemWithTrigger:!1,className:`min-w-64`,children:[L,(0,Y.jsxs)(sc,{children:[(0,Y.jsx)(ao,{children:`Standard`}),A9.map(qmt)]})]}),t[51]=R):R=t[51];let z;t[52]!==s||t[53]!==T||t[54]!==p||t[55]!==I?(z=(0,Y.jsxs)(bu,{modal:!1,value:p,onValueChange:T,items:Umt,disabled:s,children:[I,R]}),t[52]=s,t[53]=T,t[54]=p,t[55]=I,t[56]=z):z=t[56];let B;t[57]===x?B=t[58]:(B=e=>{e.preventDefault(),x()},t[57]=x,t[58]=B);let V=f.width,H;t[59]!==n.height||t[60]!==n.width?(H=()=>u(e=>e??{width:String(n.width),height:String(n.height)}),t[59]=n.height,t[60]=n.width,t[61]=H):H=t[61];let U;t[62]===C?U=t[63]:(U=e=>C(`width`,e.target.value),t[62]=C,t[63]=U);let W=!_,ee=r>=360?`w-14`:`w-11`,G;t[64]===ee?G=t[65]:(G=K(`h-6 rounded-md text-center tabular-nums [&_[data-slot=input]]:h-full [&_[data-slot=input]]:px-1 [&_[data-slot=input]]:text-xs [&_[data-slot=input]]:leading-none [&_[data-slot=input]::-webkit-inner-spin-button]:appearance-none [&_[data-slot=input]]:[appearance:textfield]`,ee),t[64]=ee,t[65]=G);let te;t[66]!==s||t[67]!==f.width||t[68]!==H||t[69]!==U||t[70]!==W||t[71]!==G?(te=(0,Y.jsx)(Yw,{nativeInput:!0,type:`number`,inputMode:`numeric`,size:`sm`,min:240,max:Nt,value:V,disabled:s,onFocus:H,onChange:U,"aria-label":`Viewport width`,"aria-invalid":W,className:G}),t[66]=s,t[67]=f.width,t[68]=H,t[69]=U,t[70]=W,t[71]=G,t[72]=te):te=t[72];let ne;t[73]===Symbol.for(`react.memo_cache_sentinel`)?(ne=(0,Y.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:`×`}),t[73]=ne):ne=t[73];let re=f.height,ie;t[74]!==n.height||t[75]!==n.width?(ie=()=>u(e=>e??{width:String(n.width),height:String(n.height)}),t[74]=n.height,t[75]=n.width,t[76]=ie):ie=t[76];let ae;t[77]===C?ae=t[78]:(ae=e=>C(`height`,e.target.value),t[77]=C,t[78]=ae);let oe=!_,se=r>=360?`w-14`:`w-11`,ce;t[79]===se?ce=t[80]:(ce=K(`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)(Yw,{nativeInput:!0,type:`number`,inputMode:`numeric`,size:`sm`,min:240,max:Nt,value:re,disabled:s,onFocus:ie,onChange:ae,"aria-label":`Viewport height`,"aria-invalid":oe,className:ce}),t[81]=s,t[82]=f.height,t[83]=ie,t[84]=ae,t[85]=oe,t[86]=ce,t[87]=le):le=t[87];let ue;t[88]!==B||t[89]!==te||t[90]!==le?(ue=(0,Y.jsxs)(`form`,{className:`m-0 flex min-w-0 shrink-0 items-center gap-0.5 border-0 p-0`,"aria-label":`Viewport dimensions`,onSubmit:B,children:[te,ne,le]}),t[88]=B,t[89]=te,t[90]=le,t[91]=ue):ue=t[91];let de=i===null?`Lock viewport aspect ratio`:`Unlock viewport aspect ratio`,fe=i!==null,pe=i===null?`Lock aspect ratio`:`Unlock aspect ratio`,me=i!==null&&`bg-accent text-foreground`,he;t[92]===me?he=t[93]:(he=K(me),t[92]=me,t[93]=he);let ge=s||!_,_e=i!==null&&`text-foreground`,ve;t[94]===_e?ve=t[95]:(ve=K(_e),t[94]=_e,t[95]=ve);let ye;t[96]===ve?ye=t[97]:(ye=(0,Y.jsx)(Vh,{className:ve}),t[96]=ve,t[97]=ye);let be;t[98]!==de||t[99]!==fe||t[100]!==pe||t[101]!==he||t[102]!==ge||t[103]!==ye||t[104]!==k?(be=(0,Y.jsx)(lr,{variant:`ghost`,size:`icon-xs`,type:`button`,"aria-label":de,"aria-pressed":fe,title:pe,className:he,disabled:ge,onPointerDown:Kmt,onClick:k,children:ye}),t[98]=de,t[99]=fe,t[100]=pe,t[101]=he,t[102]=ge,t[103]=ye,t[104]=k,t[105]=be):be=t[105];let xe;t[106]===Symbol.for(`react.memo_cache_sentinel`)?(xe=(0,Y.jsx)(Wmt,{}),t[106]=xe):xe=t[106];let Se;t[107]!==s||t[108]!==D?(Se=(0,Y.jsx)(lr,{variant:`ghost`,size:`icon-xs`,type:`button`,"aria-label":`Rotate viewport`,disabled:s,onClick:D,children:xe}),t[107]=s,t[108]=D,t[109]=Se):Se=t[109];let Ce;t[110]===y?Ce=t[111]:(Ce=()=>{y({_tag:`fill`},null)},t[110]=y,t[111]=Ce);let we;t[112]===Symbol.for(`react.memo_cache_sentinel`)?(we=(0,Y.jsx)(Ju,{}),t[112]=we):we=t[112];let Te;t[113]!==s||t[114]!==Ce?(Te=(0,Y.jsx)(lr,{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]!==j||t[117]!==M||t[118]!==z||t[119]!==ue||t[120]!==be||t[121]!==Se||t[122]!==Te||t[123]!==A?(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:A,role:`toolbar`,"aria-label":`Browser device toolbar`,"data-browser-device-toolbar":!0,onBlur:j,children:[M,z,ue,be,Se,Te]}),t[116]=j,t[117]=M,t[118]=z,t[119]=ue,t[120]=be,t[121]=Se,t[122]=Te,t[123]=A,t[124]=Ee):Ee=t[124],Ee}function Kmt(e){return e.preventDefault()}function qmt(e){return(0,Y.jsx)(Pl,{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 Jmt=`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]`,Ymt=`pointer-events-none absolute left-1/2 top-1/2 flex -translate-x-1/2 -translate-y-1/2 items-center justify-center text-muted-foreground/55 transition-colors duration-150 group-hover:text-foreground/85 group-focus-visible:text-foreground group-active:text-foreground`;function M9(e){let t=(0,X.c)(27),{direction:n,label:r,kind:i,cursorClassName:a,style:o,active:s,mirrorCorner:c,onPointerDown:l,onKeyDown:u}=e,d=c===void 0?!1:c,f=`${r}. Use arrow keys to resize.`,p=i===`corner`&&`z-30`,m;t[0]!==a||t[1]!==p?(m=K(Jmt,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=K(Ymt,_,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:K(`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 Xmt(e){let t=(0,X.c)(53),{layout:n,activeDirection:r,onPointerDown:i,onKeyDown:a}=e,o=n.viewportX,s=n.viewportY,c=o+n.viewportWidth,l=s+n.viewportHeight,u;t[0]!==r||t[1]!==a||t[2]!==i?(u={activeDirection:r,onPointerDown:i,onKeyDown:a},t[0]=r,t[1]=a,t[2]=i,t[3]=u):u=t[3];let d=u,f=o-10,p;t[4]!==n.viewportHeight||t[5]!==f||t[6]!==s?(p={left:f,top:s,width:10,height:n.viewportHeight},t[4]=n.viewportHeight,t[5]=f,t[6]=s,t[7]=p):p=t[7];let m=d.activeDirection===`west`,h;t[8]!==d.onKeyDown||t[9]!==d.onPointerDown||t[10]!==p||t[11]!==m?(h=(0,Y.jsx)(M9,{direction:`west`,label:`Resize browser viewport from left edge`,kind:`vertical`,cursorClassName:`cursor-ew-resize`,style:p,active:m,onPointerDown:d.onPointerDown,onKeyDown:d.onKeyDown}),t[8]=d.onKeyDown,t[9]=d.onPointerDown,t[10]=p,t[11]=m,t[12]=h):h=t[12];let g;t[13]!==n.viewportHeight||t[14]!==c||t[15]!==s?(g={left:c,top:s,width:10,height:n.viewportHeight},t[13]=n.viewportHeight,t[14]=c,t[15]=s,t[16]=g):g=t[16];let _=d.activeDirection===`east`,v;t[17]!==d.onKeyDown||t[18]!==d.onPointerDown||t[19]!==g||t[20]!==_?(v=(0,Y.jsx)(M9,{direction:`east`,label:`Resize browser viewport from right edge`,kind:`vertical`,cursorClassName:`cursor-ew-resize`,style:g,active:_,onPointerDown:d.onPointerDown,onKeyDown:d.onKeyDown}),t[17]=d.onKeyDown,t[18]=d.onPointerDown,t[19]=g,t[20]=_,t[21]=v):v=t[21];let y;t[22]!==l||t[23]!==n.viewportWidth||t[24]!==o?(y={left:o,top:l,width:n.viewportWidth,height:10},t[22]=l,t[23]=n.viewportWidth,t[24]=o,t[25]=y):y=t[25];let b=d.activeDirection===`south`,x;t[26]!==d.onKeyDown||t[27]!==d.onPointerDown||t[28]!==b||t[29]!==y?(x=(0,Y.jsx)(M9,{direction:`south`,label:`Resize browser viewport from bottom edge`,kind:`horizontal`,cursorClassName:`cursor-ns-resize`,style:y,active:b,onPointerDown:d.onPointerDown,onKeyDown:d.onKeyDown}),t[26]=d.onKeyDown,t[27]=d.onPointerDown,t[28]=b,t[29]=y,t[30]=x):x=t[30];let S=o-10,C;t[31]!==l||t[32]!==S?(C={left:S,top:l,width:10,height:10},t[31]=l,t[32]=S,t[33]=C):C=t[33];let w=d.activeDirection===`southwest`,T;t[34]!==d.onKeyDown||t[35]!==d.onPointerDown||t[36]!==C||t[37]!==w?(T=(0,Y.jsx)(M9,{direction:`southwest`,label:`Resize browser viewport from bottom-left corner`,kind:`corner`,cursorClassName:`cursor-nesw-resize`,style:C,active:w,mirrorCorner:!0,onPointerDown:d.onPointerDown,onKeyDown:d.onKeyDown}),t[34]=d.onKeyDown,t[35]=d.onPointerDown,t[36]=C,t[37]=w,t[38]=T):T=t[38];let E;t[39]!==l||t[40]!==c?(E={left:c,top:l,width:10,height:10},t[39]=l,t[40]=c,t[41]=E):E=t[41];let D=d.activeDirection===`southeast`,O;t[42]!==d.onKeyDown||t[43]!==d.onPointerDown||t[44]!==E||t[45]!==D?(O=(0,Y.jsx)(M9,{direction:`southeast`,label:`Resize browser viewport from bottom-right corner`,kind:`corner`,cursorClassName:`cursor-nwse-resize`,style:E,active:D,onPointerDown:d.onPointerDown,onKeyDown:d.onKeyDown}),t[42]=d.onKeyDown,t[43]=d.onPointerDown,t[44]=E,t[45]=D,t[46]=O):O=t[46];let k;return t[47]!==x||t[48]!==T||t[49]!==O||t[50]!==h||t[51]!==v?(k=(0,Y.jsxs)(Y.Fragment,{children:[h,v,x,T,O]}),t[47]=x,t[48]=T,t[49]=O,t[50]=h,t[51]=v,t[52]=k):k=t[52],k}var Zmt=class extends Qr()(`BrowserRecordingUnavailableError`,{tabId:Co}){get message(){return`Browser recording is unavailable for tab ${this.tabId}.`}},Qmt=class extends Qr()(`BrowserRecordingConflictError`,{requestedTabId:Co,activeTabId:Co}){get message(){return`Cannot record tab ${this.requestedTabId} while tab ${this.activeTabId} is already being recorded.`}},$mt=class extends Qr()(`BrowserRecordingCanvasUnavailableError`,{tabId:Co,width:Cd,height:Cd}){get message(){return`Browser recording canvas ${this.width}x${this.height} is unavailable for tab ${this.tabId}.`}},N9=class extends Qr()(`BrowserRecordingOperationError`,{operation:Ls([`initialize-media-recorder`,`subscribe-frames`,`start-media-recorder`,`start-screencast`,`stop-screencast`,`wait-first-frame`,`wait-startup`,`stop-media-recorder`,`save-artifact`,`cleanup`]),tabId:Co,cause:Zl()}){get message(){return`Browser recording operation ${this.operation} failed for tab ${this.tabId}.`}},eht=Bn(N9),P9=Na({tabIds:new Set}).pipe(ca,$o(`preview:active-browser-recording-tabs`));function tht(){return Fd(P9).tabIds}var F9=new Map,I9=null,nht=5e3,rht=5e3;function iht(e){return Array.from(F9.values()).flatMap(t=>t.threadRef?.environmentId===e.environmentId&&t.threadRef.threadId===e.threadId?[{runtimeTabId:t.tabId,serverTabId:t.serverTabId}]:[])}function aht(e,t){return iht(e).find(e=>e.serverTabId===t)?.runtimeTabId??null}var oht=()=>[`video/mp4;codecs=avc1.42E01E`,`video/webm;codecs=vp9`,`video/webm`].find(e=>MediaRecorder.isTypeSupported(e))??`video/webm`,sht=e=>{let t=F9.get(e.tabId);if(!t||!Number.isFinite(e.width)||!Number.isFinite(e.height)||e.width<=0||e.height<=0)return;let n=Math.max(1,Math.round(e.width)),r=Math.max(1,Math.round(e.height));t.frameSizeEstablished||(t.canvas.width=n,t.canvas.height=r,t.frameSizeEstablished=!0,t.settleFirstFrameSize(`frame`));let i=++t.frameSequence,a=new Image;a.addEventListener(`load`,()=>{if(F9.get(e.tabId)!==t||i<=t.lastDrawnFrameSequence)return;t.lastDrawnFrameSequence=i;let o=Math.min(t.canvas.width/n,t.canvas.height/r),s=n*o,c=r*o,l=(t.canvas.width-s)/2,u=(t.canvas.height-c)/2;t.context.fillStyle=`#000000`,t.context.fillRect(0,0,t.canvas.width,t.canvas.height),t.context.drawImage(a,l,u,s,c)},{once:!0}),a.src=`data:image/jpeg;base64,${e.data}`},L9=async e=>{if(!e||e.state===`inactive`)return;let t=new Promise(t=>e.addEventListener(`stop`,()=>t(),{once:!0}));e.stop(),await t},R9=e=>{F9.get(e.tabId)===e&&(e.settleFirstFrameSize(`cancelled`),F9.delete(e.tabId),F9.size===0&&(I9?.(),I9=null),jt.set(P9,{tabIds:new Set(F9.keys())}))},z9=async(e,t)=>{let n=[];try{await e.recording.stopScreencast(t.tabId)}catch(e){n.push(e)}try{await L9(t.recorder)}catch(e){n.push(e)}finally{R9(t)}if(n.length!==0)return n.length===1?n[0]:AggregateError(n,`Browser recording startup cleanup failed for tab ${t.tabId}.`,{cause:n[0]})},B9=(e,t=Error(`Browser recording startup was cancelled for tab ${e.tabId}.`))=>new N9({operation:`start-screencast`,tabId:e.tabId,cause:t}),cht=e=>F9.get(e.tabId)===e&&e.lifecycle.phase===`starting`,lht=async e=>{if(e.frameSizeEstablished)return!0;let t=null,n=await Promise.race([e.firstFrameSize,new Promise(e=>{t=setTimeout(()=>e(`timeout`),rht)})]);return t!==null&&clearTimeout(t),n===`frame`},uht=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}.`))},nht)})])}catch(t){throw new N9({operation:`wait-startup`,tabId:e.tabId,cause:t})}finally{t!==null&&clearTimeout(t)}},dht=e=>eht(e)&&e.operation===`wait-startup`;async function fht(e,t=null,n=e){let r=v6;if(!r)throw new Zmt({tabId:e});let i=F9.get(e);if(i){if(i.lifecycle.phase===`recording`)return i.startedAt;throw new Qmt({requestedTabId:e,activeTabId:i.tabId})}let a=t===null?null:aht(t,n);if(a!==null)throw new Qmt({requestedTabId:e,activeTabId:a});let o=m6.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 $mt({tabId:e,width:c.width,height:c.height});let u=new Date().toISOString(),d=[],f,p=new Promise(e=>{f=e}),m,h={tabId:e,serverTabId:n,threadRef:t,canvas:c,context:l,chunks:d,startedAt:u,startupSettled:p,firstFrameSize:new Promise(e=>{m=e}),settleFirstFrameSize:e=>m?.(e),recorder:null,mimeType:null,frameSizeEstablished:!1,frameSequence:0,lastDrawnFrameSequence:0,lifecycle:{phase:`starting`}};F9.set(e,h);try{try{I9??=r.recording.onFrame(sht)}catch(t){throw R9(h),new N9({operation:`subscribe-frames`,tabId:e,cause:t})}try{await r.recording.startScreencast(e)}catch(t){throw cht(h)?(R9(h),new N9({operation:`start-screencast`,tabId:e,cause:t})):B9(h,t)}let t=async()=>{if(F9.get(e)!==h){try{await r.recording.stopScreencast(e)}catch(t){throw B9(h,AggregateError([Error(`Browser recording startup was cancelled for tab ${e}.`),t],`Browser recording startup cancellation failed for tab ${e}.`,{cause:t}))}throw B9(h)}};await t();let n=await lht(h);if(await t(),!n){let t=Error(`No valid recording frame arrived for tab ${e}.`),n=await z9(r,h);throw new N9({operation:`wait-first-frame`,tabId:e,cause:n===void 0?t:AggregateError([t,n],`Browser recording frame wait and cleanup failed for tab ${e}.`,{cause:t})})}let i,a;try{i=oht(),a=new MediaRecorder(c.captureStream(12),{mimeType:i,videoBitsPerSecond:4e6}),h.mimeType=i,h.recorder=a,a.addEventListener(`dataavailable`,e=>{e.data.size>0&&d.push(e.data)})}catch(t){let n=await z9(r,h);throw new N9({operation:`initialize-media-recorder`,tabId:e,cause:n===void 0?t:AggregateError([t,n],`Browser recording initialization and cleanup failed for tab ${e}.`,{cause:t})})}try{a.start(1e3)}catch(t){let n=await z9(r,h);throw new N9({operation:`start-media-recorder`,tabId:e,cause:n===void 0?t:AggregateError([t,n],`Browser media recorder start and cleanup failed for tab ${e}.`,{cause:t})})}return h.lifecycle.phase===`starting`&&(h.lifecycle={phase:`recording`}),jt.set(P9,{tabIds:new Set(F9.keys())}),u}finally{f?.()}}var pht=async(e,t)=>{let{tabId:n}=t,r;try{await uht(t);try{await e.recording.stopScreencast(n)}catch(e){throw new N9({operation:`stop-screencast`,tabId:n,cause:e})}if(!t.recorder||!t.mimeType)r={_tag:`Success`,artifact:null};else{try{await L9(t.recorder)}catch(e){throw new N9({operation:`stop-media-recorder`,tabId:n,cause:e})}try{let i=new Blob(t.chunks,{type:t.mimeType});r={_tag:`Success`,artifact:await e.recording.save(n,t.mimeType,new Uint8Array(await i.arrayBuffer()))}}catch(e){throw new N9({operation:`save-artifact`,tabId:n,cause:e})}}}catch(e){r={_tag:`Failure`,error:e}}if(r._tag===`Failure`&&dht(r.error))throw r.error;let i;try{await L9(t.recorder)}catch(e){i=new N9({operation:`stop-media-recorder`,tabId:n,cause:e})}finally{R9(t)}if(r._tag===`Failure`)throw i?new N9({operation:`cleanup`,tabId:n,cause:AggregateError([r.error,i],`Browser recording stop and cleanup failed for tab ${n}.`,{cause:r.error})}):r.error;if(i)throw i;return r.artifact},mht=async(e,t)=>{try{return await e.recording.stopScreencast(t.tabId).catch(()=>void 0),await L9(t.recorder).catch(()=>void 0),null}finally{R9(t)}};function V9(e){let t=v6,n=F9.get(e);if(!t||!n)return Promise.resolve(null);if(n.lifecycle.phase===`stopping`)return n.lifecycle.stopPromise;let r=Promise.resolve().then(()=>pht(t,n)).catch(e=>{if(dht(e)&&F9.get(n.tabId)===n){let e=n.startupSettled.then(()=>mht(t,n));n.lifecycle={phase:`stopping`,stopPromise:e},e.catch(()=>void 0)}throw e});return n.lifecycle={phase:`stopping`,stopPromise:r},r}var H9=new Map,U9=new Map,hht=(e,t)=>{let n=U9.get(e),r=n?n.catch(()=>void 0).then(t):Promise.resolve(t());return U9.set(e,r),r.finally(()=>{U9.get(e)===r&&U9.delete(e)}).catch(()=>void 0),r};function ght(e){let t=H9.get(e)??{references:0,closeTimer:null,ready:hht(e,()=>v6?.createTab(e))};return t.closeTimer!==null&&window.clearTimeout(t.closeTimer),t.references+=1,t.closeTimer=null,H9.set(e,t),{ready:t.ready,release:()=>{let t=H9.get(e);t&&(t.references=Math.max(0,t.references-1),!(t.references>0)&&(t.closeTimer=window.setTimeout(()=>{let t=H9.get(e);!t||t.references>0||(H9.delete(e),hht(e,async()=>{await V9(e).catch(()=>null),await v6?.closeTab(e)}).catch(()=>void 0))},0)))}}}var _ht=-1e5;function vht(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:_ht,top:_ht,width:r.width,height:r.height,zIndex:-1,pointerEvents:`none`,visibility:`visible`}}var yht=5*6e4,bht=10*6e4,xht=class extends Qr()(`PreviewWebviewBridgeUnavailableError`,{environmentId:Co}){get message(){return`Desktop preview configuration is unavailable for environment "${this.environmentId}".`}},Sht=class extends Qr()(`PreviewWebviewConfigLoadError`,{environmentId:Co,cause:Zl()}){get message(){return`Failed to load desktop preview configuration for environment "${this.environmentId}".`}};fi([xht,Sht]);var Cht=(e,t=v6)=>t===null?el(new xht({environmentId:e})):ct({try:()=>t.getPreviewConfig(e),catch:t=>new Sht({environmentId:e,cause:t})}),wht=ba(e=>Na(Cht(e)).pipe(u({staleTime:yht,revalidateOnMount:!0}),Cr(bht),$o(`preview:webview-config:${e}`)));function Tht(e){let t=(0,X.c)(4),n;t[0]===e?n=t[1]:(n=wht(e),t[0]=e,t[1]=n);let r=Fd(n),i;return t[2]===r?i=t[3]:(i=sn(Eu(r)),t[2]=r,t[3]=i),i}var Eht=15e3,Dht=class extends Error{tabId;name=`BrowserViewportCommitTimeoutError`;constructor(e){super(`Timed out committing the browser viewport for tab ${e}`),this.tabId=e}},W9=new Map,G9=new Map,Oht=(e,t)=>{let n=(G9.get(e)??Promise.resolve()).catch(()=>void 0).then(()=>({operation:Promise.resolve().then(t)})),r=n.then(({operation:e})=>e),i=r.then(()=>void 0);G9.set(e,i);let a=()=>{G9.get(e)===i&&G9.delete(e)};return i.then(a,a),{started:n,execution:r}};function K9(e,t){return Oht(e,t).execution}var kht=(e,t)=>{let n,r=new Promise((t,r)=>{n=setTimeout(()=>r(new Dht(e)),Eht)});return Promise.race([t,r]).finally(()=>{n!==void 0&&clearTimeout(n)})};function Aht(e,t){return W9.set(e,t),()=>{W9.get(e)===t&&W9.delete(e)}}function q9(e,t){let{started:n}=Oht(e,()=>{let n=W9.get(e);return n?n(t):Promise.reject(Error(`No visible browser viewport handler for tab ${e}`))});return n.then(({operation:t})=>kht(e,t))}var jht=150;function Mht(e){let{tabId:t,viewport:n,zoomFactor:r,containerSize:i,deviceToolbarVisible:a,aspectRatio:o}=e,s=(0,J.useRef)(null),c=(0,J.useRef)(0),l=(0,J.useRef)(null),u=(0,J.useRef)(null),[d,f]=(0,J.useState)(null),p=T9(n),m=(0,J.useRef)(p);m.current=p;let h=d?.sourceKey===p?d:null,g=h?{_tag:`freeform`,width:h.width,height:h.height}:n,_=Number.isFinite(r)&&r>0?r:1,v=a?D9(i):i,y=a&&g._tag!==`fill`?Mmt(i,g,r):O9(i,g,r);(0,J.useEffect)(()=>()=>{c.current+=1,s.current?.(),l.current!==null&&clearTimeout(l.current),l.current=null,u.current=null},[]),(0,J.useEffect)(()=>{let e=u.current;!e||e.sourceKey===p||(l.current!==null&&(clearTimeout(l.current),l.current=null),u.current=null)},[p]);let b=(0,J.useCallback)(e=>(c.current+=1,s.current?.(),l.current!==null&&(clearTimeout(l.current),l.current=null),u.current=null,f(null),q9(t,e)),[t]),x=()=>f(null),S=e=>{let n=++c.current,r=()=>{c.current===n&&x()};q9(t,e).then(r,r)};return{activeDrag:h,commitViewportChange:b,effectiveViewport:g,handleResizeKeyDown:(e,t)=>{if(g._tag===`fill`)return;let n=e.includes(`east`)||e.includes(`west`),i=e.includes(`north`)||e.includes(`south`),a=(t.shiftKey?50:10)*_,s=t.key===`ArrowLeft`&&n?{x:-a,y:0}:t.key===`ArrowRight`&&n?{x:a,y:0}:t.key===`ArrowUp`&&i?{x:0,y:-a}:t.key===`ArrowDown`&&i?{x:0,y:a}:null;if(!s)return;t.preventDefault(),t.stopPropagation();let c=u.current,d=c?.sourceKey===p?c:g,h=k9(d,s,r,e,o??void 0);if(h.width===d.width&&h.height===d.height)return;let v={sourceKey:p,...h,direction:e};u.current=v,f(v),l.current!==null&&clearTimeout(l.current),l.current=setTimeout(()=>{l.current=null;let e=u.current;!e||e.sourceKey!==m.current||(u.current=null,S({_tag:`freeform`,width:e.width,height:e.height}))},jht)},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}=Rmt({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 Nht={attempts:0,windowStartedAt:null};function Pht(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 Fht(e){let{threadRef:t,tabId:n,runtimeTabId:r,initialUrl:i,viewport:a,zoomFactor:o}=e,s=Tht(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)(Nht),[p,m]=(0,J.useState)(!1),h=m6(jo(e=>{let t=e.byTabId[r];return{content:t?.content??null,cornerRadius:t?.cornerRadius??0,fitSourceContent:t?.fitSourceContent??!1,fittedSourceContent:t?.fittedSourceContent??null,rect:ftt(e.byTabId,r),visible:t?.visible??!1}}));Emt({threadRef:t,tabId:n,runtimeTabId:r}),(0,J.useEffect)(()=>{f.current=Nht;let e=ght(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=v6;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=Pht(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}=Mht({tabId:r,viewport:a,zoomFactor:o,containerSize:M,deviceToolbarVisible:N,aspectRatio:O}),B=h.fitSourceContent&&C?jmt(a,h.fittedSourceContent,w):null,V=B&&C?O9(C,B,w):z,H=(0,J.useCallback)(()=>{let e=u.current;e&&m6.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:{...vht({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)(Gmt,{setting:I,width:Math.max(1,Math.round(M.width)),aspectRatio:O,onAspectRatioChange:k,onChange:F}):null,(0,Y.jsx)(`webview`,{ref:x,src:g===0?c:v,partition:s.partition,webpreferences:s.webPreferences,...s.preloadUrl?{preload:s.preloadUrl}:{},"data-preview-tab":r,"data-preview-server-tab":n,"data-preview-viewport-mode":I._tag,"data-preview-viewport-key":T9(I),"data-preview-css-width":B?B.width:I._tag===`fill`?Math.max(1,Math.round(V.viewportWidth/w)):I.width,"data-preview-css-height":B?B.height:I._tag===`fill`?Math.max(1,Math.round(V.viewportHeight/w)):I.height,"aria-hidden":S?void 0:!0,className:K(`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)(Xmt,{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 Iht(){let e=(0,X.c)(7),{resolvedTheme:t}=sO(),n=jue(),r;e[0]===n?r=e[1]:(r=Object.entries(n).flatMap(Vht),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)(Bht,a);let o;if(e[4]===Symbol.for(`react.memo_cache_sentinel`)?(o=[],e[4]=o):o=e[4],(0,J.useEffect)(Rht,o),!Gm)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(Lht)}),e[5]=i,e[6]=s),s}function Lht(e){let{threadRef:t,snapshot:n,runtimeTabId:r,zoomFactor:i}=e,a=n.navStatus._tag===`Idle`?null:n.navStatus.url;return(0,Y.jsx)(Fht,{threadRef:t,tabId:n.tabId,runtimeTabId:r,initialUrl:a,viewport:n.viewport??Gt,zoomFactor:i},r)}function Rht(){let e=window.desktopBridge?.preview;if(e)return e.onPointerEvent(zht)}function zht(e){w9.getState().apply(e)}function Bht(){let e=window.desktopBridge?.preview;if(!e)return;let t=``,n=()=>{let n=Tmt(),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 Vht(e){let[t,n]=e,r=Eo(t);return r?Object.values(n.sessions).map(e=>({threadRef:r,snapshot:e,runtimeTabId:h6(r,n.serverEpoch,e.tabId),zoomFactor:n.desktopByTabId[e.tabId]?.zoomFactor??1})):[]}function Hht(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 Uht=class extends Qr()(`PreviewAutomationOverlayTimeoutError`,{requestId:ld,environmentId:Lu,threadId:Xc,timeoutMs:Zs}){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.`}},Wht=class extends Qr()(`PreviewAutomationNavigationTimeoutError`,{requestId:ld,environmentId:Lu,threadId:Xc,tabId:ea,readiness:Ls([`domContentLoaded`,`load`]),timeoutMs:Zs}){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.`}},Ght=class extends Qr()(`PreviewAutomationViewportTimeoutError`,{requestId:ld,environmentId:Lu,threadId:Xc,tabId:ea,timeoutMs:Zs}){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.`}},J9=class extends Qr()(`PreviewAutomationTargetUnavailableError`,{requestId:ld,operation:Je,environmentId:Lu,threadId:Xc,tabId:Ya(ea),bridgeAvailable:Cs}){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`}).`}},Kht=class extends Qr()(`PreviewAutomationRecordingNotActiveError`,{requestId:ld,environmentId:Lu,threadId:Xc,tabId:Ya(ea)}){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}.`}},qht=class extends Qr()(`PreviewAutomationTargetNotEditableHostError`,{requestId:ld,operation:Je,environmentId:Lu,threadId:Xc,tabId:Ya(ea),selectorKind:Ge(Ls([`focused-element`,`locator`,`selector`])),selectorLength:Ge(Zs.check(fr(0)))}){get responseTag(){return`PreviewAutomationTargetNotEditableError`}get message(){return`Preview automation ${this.operation} request ${this.requestId} requires an editable target in tab ${this.tabId??`unassigned`}.`}},Jht=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}}},Y9=class e extends Qr()(`PreviewAutomationOperationError`,{requestId:ld,operation:Je,environmentId:Lu,threadId:Xc,tabId:Ya(ea),cause:Zl()}){static fromCause(t){if(Yht(t.cause))return t.cause;let n=Jht(t.cause);return n?new qht({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`}).`}},Yht=Bn(fi([Uht,Wht,Ght,J9,Kht,qht,Y9]));function Xht(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 Zht={_tag:`freeform`,width:1280,height:800};function Qht(e){return e.open??e.show??!0}function $ht(e,t){return e.url!==void 0||t.navStatus._tag!==`Idle`}function egt(e,t){let n=t.viewport??Gt;return!e&&n._tag===`fill`?Zht:null}function X9(e,t,n,r){let i=sw(e);if(i.sessions[t]&>t(e,i.serverEpoch,t,n))return i;throw new J9({requestId:r.requestId,operation:r.operation,environmentId:e.environmentId,threadId:e.threadId,tabId:t,bridgeAvailable:!!v6})}async function tgt(e,t,n,r,i,a,o){let s=a??`load`;if(!v6||(X9(e,n,r,{operation:i,requestId:t}),s===`none`))return;let c=Date.now()+o;for(;Date.now()<=c;){if(X9(e,n,r,{operation:i,requestId:t}),s===`domContentLoaded`){let e=await v6.automation.evaluate(r,{expression:`document.readyState`});if(e===`interactive`||e===`complete`)return}else{let e=await v6.automation.status(r);if(e.available&&!e.loading)return}await new Promise(e=>window.setTimeout(e,50))}throw new Wht({requestId:t,environmentId:e.environmentId,threadId:e.threadId,tabId:n,readiness:s,timeoutMs:o})}function ngt(e,t){return Xht(Y9.fromCause({...t,cause:e}))}function rgt(e){return Na(t=>{t.mount(e.connectionAtom),t.mount(e.requestHandlerAtom);let n=!1,r=null,i=!1,a=null,o=0,s=n=>{if(!Qa(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:ngt(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);Qa(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=Qa(c)&&c.value.connectionId===r&&c.value.connectionId!==a;!n&&(o===0||e)&&s(c)})}).pipe(Cr(0),$o(e.label))}function igt(){let e=globalThis.crypto.getRandomValues(new Uint8Array(16));return`preview-${Array.from(e,e=>e.toString(16).padStart(2,`0`)).join(``)}`}function agt(e,t){return Object.keys(e.sessions).length===0||t===void 0||e.sessions[t]===void 0}function ogt(e,t){let n=t?e.sessions[t]??null:e.snapshot;return{tabId:n?.tabId??null,snapshot:n}}function sgt(e,t,n){return n?t===void 0?e.snapshot?.tabId??null:e.sessions[t]?.tabId??null:null}function cgt(e){let{setting:t,appliedSettingKey:n,declaredViewport:r,renderedViewport:i}=e;if(n!==T9(t)||r===null||i===null)return!1;let a=t._tag===`fill`?r:{width:t.width,height:t.height};return t._tag!==`fill`&&(r.width!==a.width||r.height!==a.height)?!1:Math.abs(i.width-a.width)<=1&&Math.abs(i.height-a.height)<=1}function lgt(e,t,n,r,i){let a=T9(t);return i===r&&T9(n)===a&&T9(e)!==a}var ugt=500,dgt=async e=>{let t=Date.now()+ugt;for(;Date.now()<=t;){if(m6.getState().byTabId[e]?.visible)return;await new Promise(e=>window.setTimeout(e,16))}},fgt=async(e,t,n,r,i,a)=>{let o=Date.now()+a;for(;Date.now()<=o;){if(X9(e,n,r,{operation:i,requestId:t}).desktopByTabId[n]&&v6&&(await v6.automation.status(r)).available)return;await new Promise(e=>window.setTimeout(e,50))}throw new Uht({requestId:t,environmentId:e.environmentId,threadId:e.threadId,timeoutMs:a})},pgt=e=>Array.from(document.querySelectorAll(`webview[data-preview-tab]`)).find(t=>t.getAttribute(`data-preview-tab`)===e)??null,Z9=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},mgt=async e=>{let t=pgt(e);return t?await Z9(t):null},hgt=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},ggt=async(e,t,n,r,i,a)=>{let o=Date.now()+i;for(;Date.now()<=o;){X9(e,t,n,a);try{let e=pgt(n),t=e?.getAttribute(`data-preview-viewport-key`)??null,i=hgt(e),a=e?await Z9(e):null;if(a&&cgt({setting:r,appliedSettingKey:t,declaredViewport:i,renderedViewport:a}))return a}catch{}await new Promise(e=>window.setTimeout(e,50))}throw new Ght({...a,tabId:t,timeoutMs:i})},Q9=async(e,t)=>{let n=sw(e),{snapshot:r,tabId:i}=ogt(n,t),a=i?h6(e,n.serverEpoch,i):null,o=a?m6.getState().byTabId[a]?.visible??!1:!1,s=r?r.viewport??Gt:void 0,c=a?await mgt(a).catch(()=>null):null,l={...s===void 0?{}:{viewportSetting:s},...c===null?{}:{viewport:c}};if(a&&i&&v6&&n.desktopByTabId[i])return{...await v6.automation.status(a),tabId:i,visible:o,...l};let u=r?.navStatus;return{available:!!v6?.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 F(e)},_gt=e=>{throw e};function vgt(){let e=(0,X.c)(4),{environments:t}=zr();if(!Gm||!v6?.automation)return null;let n;e[0]===t?n=e[1]:(n=t.map(ygt),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 ygt(e){return(0,Y.jsx)(bgt,{environmentId:e.environmentId},e.environmentId)}function bgt(e){let{environmentId:t}=e,n=(0,J.useContext)(ui),[r]=(0,J.useState)(igt),i=(0,J.useMemo)(()=>({clientId:r,environmentId:t,supportedOperations:[...Vi]}),[r,t]),a=RC.automationRequests({environmentId:t,input:i}),o=fD(RC.list,{reportFailure:!1}),s=Zd(RC.open,{reportFailure:!1}),c=Zd(RC.resize,{reportFailure:!1}),l=Zd(RC.respondToAutomation,`preview automation response`),u=Zd(RC.focusAutomationHost,`preview automation host focus`),[d]=(0,J.useState)(()=>Na(null)),f=Fd(d),p=(0,J.useCallback)(async e=>{let r={environmentId:t,threadId:e.threadId},i=e.tabId??null;try{let a=sw(r);if(agt(a,e.tabId)){let i={environmentId:t,input:{threadId:e.threadId}};n.refresh(RC.list(i));let s=await o(i);if(s._tag===`Failure`)return $9(s);uw(r,s.value),a=sw(r)}i=e.tabId??a.snapshot?.tabId??null;let l={requestId:e.requestId,operation:e.operation,environmentId:t,threadId:e.threadId,tabId:i,bridgeAvailable:!!v6},u=async()=>{let t=v6,n=i;if(!t||!n)throw new J9(l);let a=sw(r),o=h6(r,a.serverEpoch,n);return await fgt(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?XC(t,{kind:`url`,url:n.url}).resolvedUrl:void 0,l=sgt(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;cw(r,a),l=a.tabId,u=a,i=l}let f=h6(r,sw(r).serverEpoch,l);if(u){let n=egt(d,u);if(n){let i=await K9(f,async()=>(X9(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,lw(r,i.value)}}let p=Qht(n);return p&&g6.getState().open(r,l),u&&$ht(n,u)&&await fgt(r,e.requestId,l,f,e.operation,e.timeoutMs),p&&await dgt(f),d&&o&&v6&&(X9(r,l,f,e),await v6.navigate(f,o),await tgt(r,e.requestId,l,f,e.operation,`load`,e.timeoutMs)),await Q9(r,l)}case`navigate`:{let n=await u(),i=e.input,a=XC(t,i.target??{kind:`url`,url:i.url});return await n.bridge.navigate(n.runtimeTabId,a.resolvedUrl),await tgt(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=Vmt(i),o=await K9(n.runtimeTabId,async()=>{let i=X9(r,n.tabId,n.runtimeTabId,e),o=i.sessions[n.tabId]?.viewport??Gt,s=await c({environmentId:t,input:{threadId:e.threadId,tabId:n.tabId,viewport:a}});return s._tag===`Failure`?$9(s):(lw(r,s.value),{previousSetting:o,serverEpoch:i.serverEpoch})}),s;try{s=await ggt(r,n.tabId,n.runtimeTabId,a,i.timeoutMs??e.timeoutMs,{requestId:e.requestId,operation:e.operation,environmentId:t,threadId:e.threadId})}catch(i){throw await K9(n.runtimeTabId,async()=>{let i=sw(r),s=i.sessions[n.tabId]?.viewport??Gt;if(lgt(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`&&lw(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 fht(e.runtimeTabId,r,e.tabId);return{tabId:e.tabId,recording:!0,startedAt:t}}case`recordingStop`:{let n=iht(r),a=Hht(new Set(n.map(e=>e.serverTabId)),i,e.tabIdExplicit?e.tabId:void 0);i=a??i;let o=n.find(e=>e.serverTabId===a)?.runtimeTabId??null,s=o?await V9(o):null;return!s||!a?_gt(new Kht({requestId:e.requestId,environmentId:t,threadId:e.threadId,tabId:i})):{...s,tabId:a}}}}catch(n){throw Y9.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)(()=>Na({handle:p})),h=re(m);return(0,J.useEffect)(()=>{h({handle:p})},[p,h]),Fd((0,J.useMemo)(()=>rgt({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 xgt(e){let t=(0,X.c)(6),{router:n}=e,r;t[0]===n?r=t[1]:(r=(0,Y.jsx)(cte,{router:n}),t[0]=n,t[1]=r);let i,a;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,Y.jsx)(vgt,{}),a=(0,Y.jsx)(Iht,{}),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)(Ql,{children:[r,i,a]}),t[4]=r,t[5]=o),o}var Sgt=_mt(Gm?cee():Qp());Gm&&(wmt(navigator.platform),Smt()),ute.createRoot(document.getElementById(`root`)).render((0,Y.jsx)(J.StrictMode,{children:(0,Y.jsx)(xgt,{router:Sgt})}));export{PX as $,sw as $n,YU as $t,v6 as A,BN as An,Xh as Ar,jY as At,U6e as B,Zj as Bn,CG as Bt,O6 as C,BNe as Cn,ug as Cr,aX as Ct,S6 as D,YN as Dn,ag as Dr,IY as Dt,Jtt as E,KOe as En,sg as Er,zY as Et,m6 as F,Jj as Fn,xh as Fr,EY as Ft,K1e as G,fD as Gn,oW as Gt,R2e as H,sO as Hn,sG as Ht,stt as I,$j as In,mh as Ir,TY as It,H1e as J,Yw as Jn,nW as Jt,Z2 as K,AT as Kn,aW as Kt,ttt as L,Yj as Ln,fh as Lr,wY as Lt,g6 as M,IN as Mn,Lh as Mr,kY as Mt,h6 as N,wM as Nn,Th as Nr,OY as Nt,Ltt as O,LN as On,eg as Or,NY as Ot,htt as P,vM as Pn,Ch as Pr,DY as Pt,XZ as Q,pw as Qn,XU as Qt,ett as R,Qj as Rn,sh as Rr,iK as Rt,lnt as S,rH as Sn,dg as Sr,sX as St,Xtt as T,bP as Tn,cg as Tr,BY as Tt,B2e as U,BD as Un,cG as Ut,v4 as V,Xj as Vn,yG as Vt,i4 as W,xD as Wn,oG as Wt,X2 as X,mw as Xn,$U as Xt,W1e as Y,Uw as Yn,eW as Yt,G1e as Z,Mue as Zn,QU as Zt,bnt as _,LU as _n,A_ as _r,fX as _t,V9 as a,SIe as an,ZC as ar,OX as at,unt as b,oH as bn,Sg as br,lX as bt,w9 as c,wIe as cn,BC as cr,TX as ct,Mft as d,VU as dn,$S as dr,yX as dt,JU as en,uw as er,FX as et,Ift as f,pIe as fn,YS as fr,vX as ft,Wct as g,NU as gn,O_ as gr,pX as gt,t9 as h,PU as hn,ov as hr,mX as ht,fht as i,FU as in,Eue as ir,kX as it,_6 as j,VN as jn,Kh as jr,AY as jt,Ttt as k,HN as kn,Qh as kr,MY as kt,Pft as l,IU as ln,RC as lr,SX as lt,Eft as m,UU as mn,Wy as mr,hX as mt,Aht as n,KU as nn,lw as nr,jX as nt,tht as o,CIe as on,HC as or,DX as ot,Lft as p,jU as pn,Gy as pr,gX as pt,q1e as q,sT as qn,iW as qt,aht as r,bIe as rn,ow as rr,AX as rt,zmt as s,HU as sn,WC as sr,EX as st,q9 as t,EIe as tn,fw as tr,MX as tt,Nft as u,BU as un,eC as ur,bX as ut,fnt as v,RU as vn,b_ as vr,cX as vt,Qtt as w,Dke as wn,lg as wr,oX as wt,cnt as x,iH as xn,xg as xr,dX as xt,pnt as y,lH as yn,$g as yr,uX as yt,M4 as z,Swe as zn,Gm as zr,FK as zt};
|
|
847
|
-
//# sourceMappingURL=index-
|
|
853
|
+
//# sourceMappingURL=index-CeztlSXj.js.map
|