@marimo-team/frontend 0.16.0-dev96986 → 0.16.1
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/assets/{ConnectedDataExplorerComponent-CNLoZkWr.js → ConnectedDataExplorerComponent-2wVcyvDj.js} +1 -1
- package/dist/assets/{ImageComparisonComponent-SX7fDaTK.js → ImageComparisonComponent-D2j6i0hv.js} +1 -1
- package/dist/assets/{VegaLite-MJUW3b7C.js → VegaLite-BckFaf2D.js} +1 -1
- package/dist/assets/{_baseEach-9_logFrf.js → _baseEach-CvTX9w0Y.js} +1 -1
- package/dist/assets/_baseMap-CtlwA90f.js +1 -0
- package/dist/assets/{_baseUniq-C5LFcyNC.js → _baseUniq-BKktIGQ1.js} +1 -1
- package/dist/assets/{_createAggregator-ZRm2b6Zm.js → _createAggregator-C5CVY-0t.js} +1 -1
- package/dist/assets/{agent-panel-BBd11wNX.js → agent-panel-RGLNjkYe.js} +1 -1
- package/dist/assets/{any-language-editor-DwAaEQfS.js → any-language-editor-DjuXwGCA.js} +1 -1
- package/dist/assets/{architectureDiagram-W76B3OCA-BJmVXUoW.js → architectureDiagram-W76B3OCA-Dyj4ds_R.js} +1 -1
- package/dist/assets/{between-horizontal-start-KiwU-a3C.js → between-horizontal-start-Dt2aKpPf.js} +1 -1
- package/dist/assets/{blockDiagram-QIGZ2CNN-DzxZjE7B.js → blockDiagram-QIGZ2CNN-o-i7DDvN.js} +1 -1
- package/dist/assets/{c4Diagram-FPNF74CW-DjmldG_J.js → c4Diagram-FPNF74CW-DGHEwWrx.js} +1 -1
- package/dist/assets/channel-Co6iMgWq.js +1 -0
- package/dist/assets/{chat-panel-DgJZr0eS.js → chat-panel-9alr8FS4.js} +1 -1
- package/dist/assets/{chunk-4BX2VUAB-EUTQThiZ.js → chunk-4BX2VUAB-BJecb-Ri.js} +1 -1
- package/dist/assets/{chunk-55IACEB6-DZAiDJxy.js → chunk-55IACEB6-CAATkc4w.js} +1 -1
- package/dist/assets/{chunk-FMBD7UC4-Bd0Czs-J.js → chunk-FMBD7UC4-DPuNbQ-f.js} +1 -1
- package/dist/assets/{chunk-K7UQS3LO-DEKMIknX.js → chunk-K7UQS3LO-C8TWVLiH.js} +1 -1
- package/dist/assets/{chunk-QN33PNHL-E0jwHU_n.js → chunk-QN33PNHL-DiZZ09q4.js} +1 -1
- package/dist/assets/{chunk-QZHKN3VN-BzaIHJbq.js → chunk-QZHKN3VN-BIUM7usu.js} +1 -1
- package/dist/assets/{chunk-TVAH2DTR-CZFYvqnm.js → chunk-TVAH2DTR-vGTArPBG.js} +1 -1
- package/dist/assets/{chunk-TZMSLE5B-BNqnFjtv.js → chunk-TZMSLE5B-D2KRqp_x.js} +1 -1
- package/dist/assets/{circle-play-D3J_mYrF.js → circle-play-cjeNez0N.js} +1 -1
- package/dist/assets/classDiagram-KNZD7YFC-BbJ0rY3y.js +1 -0
- package/dist/assets/classDiagram-v2-RKCZMP56-BbJ0rY3y.js +1 -0
- package/dist/assets/{clear-button-ifzRuAR3.js → clear-button-C97JtAez.js} +1 -1
- package/dist/assets/clone-BMP0PsTa.js +1 -0
- package/dist/assets/{command-palette-D2fdVSET.js → command-palette-B93Pjcky.js} +1 -1
- package/dist/assets/{common-Ku-cF_2J.js → common-Du9rSOwD.js} +1 -1
- package/dist/assets/{compile-BgZlHW1c.js → compile-CZXqyOxa.js} +1 -1
- package/dist/assets/{cose-bilkent-S5V4N54A-CVM83SqK.js → cose-bilkent-S5V4N54A-CqUN5Y9b.js} +1 -1
- package/dist/assets/{dagre-5GWH7T2D-ouQPkxT3.js → dagre-5GWH7T2D-RJqTI9DM.js} +1 -1
- package/dist/assets/{data-grid-overlay-editor-B47j5GJJ.js → data-grid-overlay-editor-DZN0q1LV.js} +1 -1
- package/dist/assets/{datasources-panel-Bt41Zir-.js → datasources-panel-v7H3cR0p.js} +1 -1
- package/dist/assets/{dependency-graph-panel-CZC_B7pK.js → dependency-graph-panel-CEog_O7V.js} +1 -1
- package/dist/assets/{diagram-N5W7TBWH-CQ817ZdR.js → diagram-N5W7TBWH-D-l4zZ9d.js} +1 -1
- package/dist/assets/{diagram-QEK2KX5R-DOK_psUO.js → diagram-QEK2KX5R-CCOmBUt-.js} +1 -1
- package/dist/assets/{diagram-S2PKOQOG-CVljmOW8.js → diagram-S2PKOQOG-C_I_9jnZ.js} +1 -1
- package/dist/assets/{documentation-panel-C7yIvGg1.js → documentation-panel-C1BtMZ3M.js} +1 -1
- package/dist/assets/{edit-page-CyTMQV2u.js → edit-page-B-oevUZ9.js} +3 -3
- package/dist/assets/{ellipsis-vertical-C7FjlUsY.js → ellipsis-vertical-BEb-J8z6.js} +1 -1
- package/dist/assets/{empty-state-DIOGM_CU.js → empty-state-C99UyDE3.js} +1 -1
- package/dist/assets/{erDiagram-AWTI2OKA-DYu8cEdc.js → erDiagram-AWTI2OKA-BePOLi5M.js} +1 -1
- package/dist/assets/{error-panel-Ddb8RkFG.js → error-panel-Bs34jXFh.js} +1 -1
- package/dist/assets/{file-explorer-panel-Oy9DbyFP.js → file-explorer-panel-Ck6UL861.js} +1 -1
- package/dist/assets/{flowDiagram-PVAE7QVJ-CmvW5iTb.js → flowDiagram-PVAE7QVJ-BgjFu5l7.js} +1 -1
- package/dist/assets/{ganttDiagram-OWAHRB6G-BaKQlCaT.js → ganttDiagram-OWAHRB6G-YOPb3XSV.js} +1 -1
- package/dist/assets/{gitGraphDiagram-NY62KEGX-CWO24eP6.js → gitGraphDiagram-NY62KEGX-CGhqaDTy.js} +1 -1
- package/dist/assets/{glide-data-editor-CNDLEJ9a.js → glide-data-editor-9QUH6iso.js} +4 -4
- package/dist/assets/{graph-BZKTtxsc.js → graph-DQQFGrho.js} +1 -1
- package/dist/assets/{home-page-Bvwppn9N.js → home-page-DRKpPCrF.js} +1 -1
- package/dist/assets/{index-CZaurnA9.js → index-2252nrk6.js} +1 -1
- package/dist/assets/{index-BJVyzkx5.js → index-Aeo6WiK7.js} +1 -1
- package/dist/assets/{index-0XOUPdwT.js → index-B8jXZ12t.js} +1 -1
- package/dist/assets/{index-WXJFkQHg.js → index-BAbIIxHU.js} +1 -1
- package/dist/assets/{index-Brf2DwUM.js → index-BJNCMUmG.js} +1 -1
- package/dist/assets/{index-D-tZfElD.js → index-BW3k9Gss.js} +1 -1
- package/dist/assets/{index-DkntzpX4.js → index-BjgnbONl.js} +1 -1
- package/dist/assets/{index-BH7f3aiU.js → index-BprjMYH5.js} +1 -1
- package/dist/assets/{index-zrSUQXha.js → index-C1ez98sk.js} +1 -1
- package/dist/assets/{index-D3PqGupX.js → index-C2MD0vgD.js} +1 -1
- package/dist/assets/{index-PmY0x4Zd.js → index-C7CoaNFb.js} +124 -124
- package/dist/assets/{index-DZhOPkOB.js → index-CFKO7WXI.js} +1 -1
- package/dist/assets/{index-qE8lHQ-N.js → index-CUFv_thQ.js} +1 -1
- package/dist/assets/{index-CXrWwFX6.js → index-C_tkBKNO.js} +1 -1
- package/dist/assets/{index-B_d_JZGI.js → index-CfaDbEdi.js} +1 -1
- package/dist/assets/{index-BgXbBA39.js → index-ClzeQrN7.js} +1 -1
- package/dist/assets/{index-DCkzth56.js → index-DdnKZNxM.js} +1 -1
- package/dist/assets/{index-DFrGFNW1.js → index-G5QZppK2.js} +1 -1
- package/dist/assets/{index-DmgwT3sx.js → index-SGLNXrGP.js} +1 -1
- package/dist/assets/{index-CerjupfZ.js → index-aE43R74q.js} +1 -1
- package/dist/assets/infoDiagram-STP46IZ2-CJLOpSAf.js +2 -0
- package/dist/assets/{isEmpty-D1t7Gran.js → isEmpty-D-4c7sMv.js} +1 -1
- package/dist/assets/{journeyDiagram-BIP6EPQ6-D4Rp6H_h.js → journeyDiagram-BIP6EPQ6-C94u3Mv3.js} +1 -1
- package/dist/assets/{kanban-definition-6OIFK2YF-DFt9DftA.js → kanban-definition-6OIFK2YF-BEXYFzz7.js} +1 -1
- package/dist/assets/{layout-D8WXi2_g.js → layout-Bz2BJ2ru.js} +1 -1
- package/dist/assets/{linear-BwY8e5hA.js → linear-D8s7K76e.js} +1 -1
- package/dist/assets/{links-4B6ldZ5P.js → links-BpXlz1GG.js} +1 -1
- package/dist/assets/{logs-panel-Dxiyt7dO.js → logs-panel-DC7wpmPz.js} +1 -1
- package/dist/assets/{markdown-renderer-VDu-NBKB.js → markdown-renderer-DRdSWR9X.js} +3 -3
- package/dist/assets/{mermaid-B-O-Puyi.js → mermaid-Y3x4hmD0.js} +1 -1
- package/dist/assets/{mermaid.core-BFFCqfOn.js → mermaid.core-DzthE35Y.js} +4 -4
- package/dist/assets/{min-DtVSfYKl.js → min-BBO3-1Hg.js} +1 -1
- package/dist/assets/{mindmap-definition-Q6HEUPPD-kyvIY8Dg.js → mindmap-definition-Q6HEUPPD-DktvuLe1.js} +1 -1
- package/dist/assets/{number-overlay-editor-GjLB2UK4.js → number-overlay-editor-BEfwI1IT.js} +1 -1
- package/dist/assets/{outline-panel-CMJjOoN7.js → outline-panel-CdsnAy2w.js} +1 -1
- package/dist/assets/{packages-panel-nfXB-bKW.js → packages-panel-DiTA-d_D.js} +1 -1
- package/dist/assets/{pieDiagram-ADFJNKIX-D8JFQcWR.js → pieDiagram-ADFJNKIX-DQDNQ-de.js} +1 -1
- package/dist/assets/{quadrantDiagram-LMRXKWRM-Nf8GzxXG.js → quadrantDiagram-LMRXKWRM-0kgIXc2-.js} +1 -1
- package/dist/assets/{react-plotly-CnW9p7ZA.js → react-plotly-DJqqfM7c.js} +1 -1
- package/dist/assets/{requirementDiagram-4UW4RH46-CCUxF8BZ.js → requirementDiagram-4UW4RH46-B5rb0ypd.js} +1 -1
- package/dist/assets/{run-page-Bl4p3AbZ.js → run-page-CFmLrv1R.js} +1 -1
- package/dist/assets/{sankeyDiagram-GR3RE2ED-Sr8kDwP1.js → sankeyDiagram-GR3RE2ED-Dom7IlnF.js} +1 -1
- package/dist/assets/{scratchpad-panel-Ja1Mu-W3.js → scratchpad-panel-CuHWpHO8.js} +1 -1
- package/dist/assets/{secrets-panel-B-3fcSyP.js → secrets-panel-CfHc5YD0.js} +1 -1
- package/dist/assets/{sequenceDiagram-C3RYC4MD-CBJ152Q3.js → sequenceDiagram-C3RYC4MD-PNJWXQbw.js} +1 -1
- package/dist/assets/{slides-component-DGtsVP5o.js → slides-component-CJgaTRZ0.js} +1 -1
- package/dist/assets/{snippets-panel-ClNnwKBM.js → snippets-panel-B2EC1txM.js} +1 -1
- package/dist/assets/{sortBy-D47H6Vyl.js → sortBy-DZnlX29-.js} +1 -1
- package/dist/assets/{state-B_RCHTH5.js → state-CWict9RU.js} +1 -1
- package/dist/assets/{stateDiagram-KXAO66HF-BlBFSAZr.js → stateDiagram-KXAO66HF-BE58aJnr.js} +1 -1
- package/dist/assets/stateDiagram-v2-UMBNRL4Z-CdThjimL.js +1 -0
- package/dist/assets/{storage-BNcWOH3-.js → storage-DRaR04wR.js} +3 -3
- package/dist/assets/{terminal-CATzv5Hd.js → terminal-BX3Su5q7.js} +1 -1
- package/dist/assets/{time-CsYqILfB.js → time-hUzZfpNE.js} +1 -1
- package/dist/assets/{timeline-definition-XQNQX7LJ-CGrhjuAs.js → timeline-definition-XQNQX7LJ-CqQP9t51.js} +1 -1
- package/dist/assets/{tracing-DUbJtOyq.js → tracing-B10Q1n-L.js} +2 -2
- package/dist/assets/{tracing-panel-DmzqPUtc.js → tracing-panel-Du8WCnno.js} +2 -2
- package/dist/assets/{trash-rxdjLzkf.js → trash-B81GTiv6.js} +1 -1
- package/dist/assets/{tree-C2Ul1h1C.js → tree-6vW2ogkh.js} +1 -1
- package/dist/assets/{treemap-75Q7IDZK-N9hyUpyj.js → treemap-75Q7IDZK-CdwDwwsz.js} +1 -1
- package/dist/assets/{variable-panel-BbgupOdG.js → variable-panel-D5qgJI7k.js} +1 -1
- package/dist/assets/{vega-component-CR_MHOBT.js → vega-component-DJaJWMJM.js} +1 -1
- package/dist/assets/{xychartDiagram-6GGTOJPD-jdLZsMb2.js → xychartDiagram-6GGTOJPD-WFtXqaM9.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +1 -1
- package/src/core/ai/staged-cells.ts +34 -1
- package/src/core/cells/__tests__/add-missing-import.test.ts +67 -22
- package/src/core/cells/add-missing-import.ts +24 -7
- package/src/core/cells/cells.ts +26 -27
- package/dist/assets/_baseMap-NzEbKt5c.js +0 -1
- package/dist/assets/channel-DHcKBVM4.js +0 -1
- package/dist/assets/classDiagram-KNZD7YFC-D-xwLnlX.js +0 -1
- package/dist/assets/classDiagram-v2-RKCZMP56-D-xwLnlX.js +0 -1
- package/dist/assets/clone-CSxIll62.js +0 -1
- package/dist/assets/infoDiagram-STP46IZ2-CAuVVehw.js +0 -2
- package/dist/assets/stateDiagram-v2-UMBNRL4Z-DbA-iToo.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./terminal-
|
|
2
|
-
var Xw=Object.defineProperty;var ap=nt=>{throw TypeError(nt)};var Qw=(nt,We,gt)=>We in nt?Xw(nt,We,{enumerable:!0,configurable:!0,writable:!0,value:gt}):nt[We]=gt;var B=(nt,We,gt)=>Qw(nt,typeof We!="symbol"?We+"":We,gt),Zw=(nt,We,gt)=>We.has(nt)||ap("Cannot "+gt);var ip=(nt,We,gt)=>(Zw(nt,We,"read from private field"),gt?gt.call(nt):We.get(nt)),lp=(nt,We,gt)=>We.has(nt)?ap("Cannot add the same private member more than once"):We instanceof WeakSet?We.add(nt):We.set(nt,gt);import{c as de,k3 as oo,k4 as ek,k5 as Cl,k6 as tk,k7 as nk,k8 as cp,k9 as dp,ka as Gs,r as S,i9 as ok,bW as up,gR as hp,kb as rk,gN as sk,gQ as ak,d as me,gL as Nl,kc as ro,kd as Dt,ke as qs,kf as tt,v as Yt,j4 as Wt,eZ as $t,kg as Te,kh as So,p as Se,je as Sn,a as P,ax as qe,a0 as ze,j as i,aV as Xt,b1 as so,b0 as yr,b2 as vr,bQ as ao,a_ as ye,$ as Eo,bT as Hs,a$ as io,aI as Fn,a8 as mp,aB as pe,ay as Ct,g$ as Sl,cN as Js,ki as ik,cM as Ce,S as Ye,kj as lk,hP as Mt,kk as fp,kl as pp,km as El,kn as gp,L as He,c3 as bp,bl as _o,d1 as ck,W as xp,aA as Qt,ko as dk,c5 as Ks,kp as Ys,av as Bt,d5 as Be,d8 as Io,fU as $e,kq as fe,d6 as Me,kr as _l,ks as uk,kt as Il,ku as Ve,kv as yp,dw as Al,dt as Tl,gA as Dl,dh as Ml,dp as Ol,ef as Ao,i$ as Rl,cP as Bn,b as wr,X as Pn,iR as vp,iT as wp,iU as hk,iZ as mk,iV as kp,kw as jp,T as ue,hq as fk,d$ as zn,dZ as Un,e0 as Wn,dY as lo,f8 as En,kx as Cp,iX as Np,ky as pk,aZ as gk,aY as bk,kz as xk,iP as Sp,iQ as Ep,by as yk,di as _p,br as vk,jJ as wk,kA as kk,du as jk,gC as Ll,bI as Fl,dA as Bl,f0 as Ck,ei as Ot,hJ as Nk,ct as Pl,i0 as Nt,e9 as Sk,h0 as ht,hm as Ek,aW as zl,g0 as kr,kB as Xs,cp as _n,K as ie,hF as To,aw as Qs,kC as _k,kD as Ik,kE as Ip,aX as Ak,b3 as Ul,hD as Ap,dV as Zs,cO as St,dW as Tk,b4 as Dk,jp as Tp,a7 as Wl,kF as Mk,kG as $l,dI as Ok,e8 as Rk,hO as Dp,eb as Lk,kH as Fk,kI as Mp,jX as Bk,jV as Pk,jY as zk,jZ as Uk,kJ as Vl,f2 as Zt,kK as Wk,ba as Le,kL as ea,kM as Do,kN as Mo,cs as Gl,jk as st,kO as ql,cC as $k,bn as Vt,kP as Vk,kQ as Op,iI as Hl,cy as Rp,bU as Lp,bC as Jl,e6 as Gk,e7 as qk,kR as Hk,bm as Fp,an as Kl,bp as Bp,bM as Yl,al as ta,hQ as Xl,kS as Jk,g_ as Gt,kT as Pp,kU as jr,kV as zp,kW as na,kX as Up,kY as Wp,kZ as $p,g5 as Vp,cu as Gp,cK as qp,k_ as Kk,k$ as en,l0 as oa,l1 as Hp,M as Ql,l2 as Cr,l3 as Nr,bb as Jp,jS as Zl,l4 as Kp,l5 as ra,b8 as Yp,l6 as Xp,l7 as sa,aG as $n,fb as ec,hN as Qp,bF as Zp,l8 as Sr,l9 as Er,la as aa,lb as Vn,lc as e1,ld as In,le as Oo,lf as tc,lg as _r,lh as Ro,li as nc,lj as oc,lk as t1,ll as ia,lm as Yk,c4 as Ir,ln as Ar,lo as Xk,gZ as la,lp as Qk,lq as rc,lr as Zk,ls as e4,lt as ca,ec as Lo,h5 as t4,cJ as n1,lu as n4,jx as o1,fr as r1,lv as sc,i_ as s1,hC as a1,lw as i1,lx as da,ly as l1,lz as ua,lA as ac,lB as Fo,lC as Tr,lD as Dr,lE as o4,ju as ic,lF as lc,lG as ha,hl as r4,jv as s4,lH as a4,lI as i4,lJ as l4,lK as c4,x as d4,lL as u4,lM as h4,lN as m4,j7 as f4,lO as p4,lP as c1,t as v,lQ as g4,lR as b4,lS as x4,lT as y4,lU as v4,lV as w4,lW as k4,lX as j4,lY as C4,lZ as N4,l_ as S4,l$ as E4,m0 as _4,m1 as I4,m2 as A4,m3 as T4,m4 as D4,m5 as M4,m6 as O4,m7 as R4,m8 as L4,m9 as F4,ma as Mr,mb as B4,mc as P4,md as z4,me as U4,mf as W4,mg as $4,mh as V4,mi as G4,mj as cc,bt as dc,gz as d1,mk as u1,ml as q4,mm as H4,cV as J4,mn as K4,cW as Y4,cY as Or,mo as X4,mp as Q4,mq as Z4,mr as e3,ms as t3,mt as n3,mu as o3,mv as r3,mw as s3,mx as a3,cZ as i3,my as l3,mz as c3,mA as d3,mB as h1,h2 as u3,mC as h3,mD as m1,h6 as m3,mE as ma,mF as f3,mG as p3,mH as g3,mI as b3,a2 as uc,bj as hc,bD as Gn,mJ as Bo,mK as f1,cR as x3,dc as mc,bx as p1,mL as y3,mM as Rr,hr as fc,mN as co,mO as v3,hg as g1,aH as fa,mP as w3,mQ as k3,mR as j3,cv as C3,mS as b1,cx as N3,bo as S3,am as pc,mT as E3,mU as _3,mV as I3,mW as Lr,mX as Fr,hM as gc,mY as A3,jc as T3,ed as D3,a9 as mt,mZ as x1,m_ as M3,m$ as O3,n0 as bc,n1 as xc,n2 as R3,n3 as y1,n4 as v1,n5 as pa,j3 as L3,aR as w1,gT as F3,n6 as k1,gH as Je,n7 as Br,n8 as Po,n9 as B3,na as P3,nb as z3,nc as U3,dj as j1,nd as W3,u as C1,ds as $3,ne as V3,dG as G3,nf as q3,da as N1,dD as H3,dy as J3,dx as K3,ng as Y3,ee as X3,e5 as Q3,nh as Z3,ni as ej,nj as tj,fS as nj,nk as S1,nl as E1,nm as _1,nn as oj,cA as yc,no as I1,np as A1,bd as ga,nq as rj,nr as T1,ns as sj,nt as aj,nu as D1,aS as ba,nv as ij,eg as lj,nw as cj,V as dj,nx as M1,ny as uj,nz as hj,nA as mj,nB as Pr,nC as O1,hL as R1,j1 as xa,dC as L1,aD as F1,cQ as vc,hp as wc,nD as fj,hI as B1,nE as pj,nF as P1,fP as gj,fQ as bj,jP as xj,iS as yj,iW as kc,jQ as vj,nG as z1,co as wj,gg as kj,nH as jj,nI as Cj,nJ as Nj,a1 as ya,hs as Sj,nK as Ej,nL as _j,nM as U1,P as Ij,gE as W1,nN as Aj,ak as jc,nO as Tj,hH as Dj,nP as Mj,nQ as Oj,dR as Rj,nR as Lj,nS as Fj,nT as Bj,aP as Pj,nU as va,g1 as zj,dd as Uj,de as Wj,jd as $j,gy as wa,jA as Vj,nV as Gj,bP as qj,nW as Hj,nX as Jj,c2 as Kj,b5 as ka,nY as $1,nZ as V1,b7 as G1,b6 as Yj,gY as Xj,__tla as Qj}from"./index-PmY0x4Zd.js";import{B as ja,A as Zj,G as eC,o as tC,s as nC,k as oC,L as q1,a as H1,b as rC,M as sC,Y as aC,e as tn,c as zr,d as iC,S as lC,K as cC,f as dC,i as uC,h as J1,j as hC,l as mC,u as K1,P as Ur,m as Y1,n as fC,p as pC,q as gC,D as zo}from"./links-4B6ldZ5P.js";import{V as X1,S as bC,h as Q1,i as Z1,L as eg,j as tg,F as ng,I as Cc,M as xC,l as og,k as yC,f as Uo,E as Ca,m as rg,n as sg,N as ag,o as vC,p as Nc,g as ig,q as wC,s as kC,t as jC,v as CC,w as NC,u as SC,C as EC,R as lg,A as _C,a as IC,c as AC,P as TC,__tla as DC}from"./storage-BNcWOH3-.js";import{c as MC}from"./_createAggregator-ZRm2b6Zm.js";import{_ as cg,a as dg,i as OC,w as RC,L as ug,A as LC,C as hg,b as Sc,c as mg,__tla as FC}from"./loro_wasm_bg-C1ks32Vm.js";let fg,Na,Sa,Ec,Ea,_c,Ic,Ac,Tc,Dc,Mc,Oc,Rc,Lc,_a,Ia,Aa,Wo,pg,Ta,Fc,Bc,Pc,zc,Uc,gg,Wc,Da,BC=Promise.all([(()=>{try{return Qj}catch{}})(),(()=>{try{return DC}catch{}})(),(()=>{try{return FC}catch{}})()]).then(async()=>{var $s,sp;var nt=MC(function(t,e,n){t[n?0:1].push(e)},function(){return[[],[]]});let We,gt,Ma,$c,Vc,Wr,Oa,$r,Gc,Ra,qc,Hc,Jc,Kc,Yc,Xc,Qc,Zc,ed,td,nd,La,od,rd,sd,ad,id,ld,cd,Fa,dd,Ba,ud,Pa,hd,md,fd,pd,gd,bd,za,xd,yd,Et,_t;Fc=de("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]),Uc=de("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]),We=de("ban",[["path",{d:"M4.929 4.929 19.07 19.071",key:"196cmz"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]),gt=de("chevrons-down",[["path",{d:"m7 6 5 5 5-5",key:"1lc07p"}],["path",{d:"m7 13 5 5 5-5",key:"1d48rs"}]]),Ma=de("chevrons-up",[["path",{d:"m17 11-5-5-5 5",key:"e8nh98"}],["path",{d:"m17 18-5-5-5 5",key:"2avn1x"}]]),Na=de("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]),$c=de("circle-chevron-down",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 10-4 4-4-4",key:"894hmk"}]]),Vc=de("circle-chevron-right",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m10 8 4 4-4 4",key:"1wy4r4"}]]),Wr=de("circle-plus",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"M12 8v8",key:"napkw2"}]]),Oa=de("clipboard-copy",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2",key:"4jdomd"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v4",key:"3hqy98"}],["path",{d:"M21 14H11",key:"1bme5i"}],["path",{d:"m15 10-4 4 4 4",key:"5dvupr"}]]),Bc=de("clipboard-paste",[["path",{d:"M11 14h10",key:"1w8e9d"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v1.344",key:"1e62lh"}],["path",{d:"m17 18 4-4-4-4",key:"z2g111"}],["path",{d:"M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 1.793-1.113",key:"bjbb7m"}],["rect",{x:"8",y:"2",width:"8",height:"4",rx:"1",key:"ublpy"}]]),$r=de("cloud-download",[["path",{d:"M12 13v8l-4-4",key:"1f5nwf"}],["path",{d:"m12 21 4-4",key:"1lfcce"}],["path",{d:"M4.393 15.269A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.436 8.284",key:"ui1hmy"}]]),Gc=de("code",[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]]),Ra=de("command",[["path",{d:"M15 6v12a3 3 0 1 0 3-3H6a3 3 0 1 0 3 3V6a3 3 0 1 0-3 3h12a3 3 0 1 0-3-3",key:"11bfej"}]]),qc=de("diamond-plus",[["path",{d:"M12 8v8",key:"napkw2"}],["path",{d:"M2.7 10.3a2.41 2.41 0 0 0 0 3.41l7.59 7.59a2.41 2.41 0 0 0 3.41 0l7.59-7.59a2.41 2.41 0 0 0 0-3.41L13.7 2.71a2.41 2.41 0 0 0-3.41 0z",key:"1ey20j"}],["path",{d:"M8 12h8",key:"1wcyev"}]]),Hc=de("fast-forward",[["path",{d:"M12 6a2 2 0 0 1 3.414-1.414l6 6a2 2 0 0 1 0 2.828l-6 6A2 2 0 0 1 12 18z",key:"b19h5q"}],["path",{d:"M2 6a2 2 0 0 1 3.414-1.414l6 6a2 2 0 0 1 0 2.828l-6 6A2 2 0 0 1 2 18z",key:"h7h5ge"}]]),Jc=de("file-pen",[["path",{d:"M12.5 22H18a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v9.5",key:"1couwa"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M13.378 15.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z",key:"1y4qbx"}]]),Ec=de("file-plus-2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M3 15h6",key:"4e2qda"}],["path",{d:"M6 12v6",key:"1u72j0"}]]),Kc=de("files",[["path",{d:"M15 2a2 2 0 0 1 1.414.586l4 4A2 2 0 0 1 21 8v7a2 2 0 0 1-2 2h-8a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2z",key:"1vo8kb"}],["path",{d:"M15 2v4a2 2 0 0 0 2 2h4",key:"sud9ri"}],["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"}]]),Yc=de("folder-tree",[["path",{d:"M20 10a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-2.5a1 1 0 0 1-.8-.4l-.9-1.2A1 1 0 0 0 15 3h-2a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"hod4my"}],["path",{d:"M20 21a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1h-2.9a1 1 0 0 1-.88-.55l-.42-.85a1 1 0 0 0-.92-.6H13a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"w4yl2u"}],["path",{d:"M3 5a2 2 0 0 0 2 2h3",key:"f2jnh7"}],["path",{d:"M3 3v13a2 2 0 0 0 2 2h3",key:"k8epm1"}]]),Xc=de("grip-vertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]]),Qc=de("hard-drive-download",[["path",{d:"M12 2v8",key:"1q4o3n"}],["path",{d:"m16 6-4 4-4-4",key:"6wukr"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",key:"w68u3i"}],["path",{d:"M6 18h.01",key:"uhywen"}],["path",{d:"M10 18h.01",key:"h775k"}]]),Zc=de("hat-glasses",[["path",{d:"M14 18a2 2 0 0 0-4 0",key:"1v8fkw"}],["path",{d:"m19 11-2.11-6.657a2 2 0 0 0-2.752-1.148l-1.276.61A2 2 0 0 1 12 4H8.5a2 2 0 0 0-1.925 1.456L5 11",key:"1fkr7p"}],["path",{d:"M2 11h20",key:"3eubbj"}],["circle",{cx:"17",cy:"18",r:"3",key:"82mm0e"}],["circle",{cx:"7",cy:"18",r:"3",key:"lvkj7j"}]]),ed=de("house",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]]),td=de("key-round",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]),_c=de("key",[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]]),nd=de("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"}]]),La=de("layout-template",[["rect",{width:"18",height:"7",x:"3",y:"3",rx:"1",key:"f1a2em"}],["rect",{width:"9",height:"7",x:"3",y:"14",rx:"1",key:"jqznyg"}],["rect",{width:"5",height:"7",x:"16",y:"14",rx:"1",key:"q5h2i8"}]]),od=de("list",[["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 18h.01",key:"1tta3j"}],["path",{d:"M3 6h.01",key:"1rqtza"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 18h13",key:"1lx6n3"}],["path",{d:"M8 6h13",key:"ik3vkj"}]]),rd=de("map",[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]]),sd=de("memory-stick",[["path",{d:"M6 19v-3",key:"1nvgqn"}],["path",{d:"M10 19v-3",key:"iu8nkm"}],["path",{d:"M14 19v-3",key:"kcehxu"}],["path",{d:"M18 19v-3",key:"1vh91z"}],["path",{d:"M8 11V9",key:"63erz4"}],["path",{d:"M16 11V9",key:"fru6f3"}],["path",{d:"M12 11V9",key:"ha00sb"}],["path",{d:"M2 15h20",key:"16ne18"}],["path",{d:"M2 7a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v1.1a2 2 0 0 0 0 3.837V17a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-5.1a2 2 0 0 0 0-3.837Z",key:"lhddv3"}]]),ad=de("message-circle-question-mark",[["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"}],["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"}]]),id=de("microchip",[["path",{d:"M18 12h2",key:"quuxs7"}],["path",{d:"M18 16h2",key:"zsn3lv"}],["path",{d:"M18 20h2",key:"9x5y9y"}],["path",{d:"M18 4h2",key:"1luxfb"}],["path",{d:"M18 8h2",key:"nxqzg"}],["path",{d:"M4 12h2",key:"1ltxp0"}],["path",{d:"M4 16h2",key:"8a5zha"}],["path",{d:"M4 20h2",key:"27dk57"}],["path",{d:"M4 4h2",key:"10groj"}],["path",{d:"M4 8h2",key:"18vq6w"}],["path",{d:"M8 2a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2h-1.5c-.276 0-.494.227-.562.495a2 2 0 0 1-3.876 0C9.994 2.227 9.776 2 9.5 2z",key:"1681fp"}]]),Ic=de("network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]),ld=de("octagon-alert",[["path",{d:"M12 16h.01",key:"1drbdi"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M15.312 2a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586l-4.688-4.688A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2z",key:"1fd625"}]]),cd=de("package-check",[["path",{d:"m16 16 2 2 4-4",key:"gfu2re"}],["path",{d:"M21 10V8a2 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 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}]]),Fa=de("package-x",[["path",{d:"M21 10V8a2 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 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}],["path",{d:"m17 13 5 5m-5 0 5-5",key:"im3w4b"}]]),dd=de("panel-left",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]),Ba=de("presentation",[["path",{d:"M2 3h20",key:"91anmk"}],["path",{d:"M21 3v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V3",key:"2k9sn8"}],["path",{d:"m7 21 5-5 5 5",key:"bip4we"}]]),ud=de("regex",[["path",{d:"M17 3v10",key:"15fgeh"}],["path",{d:"m12.67 5.5 8.66 5",key:"1gpheq"}],["path",{d:"m12.67 10.5 8.66-5",key:"1dkfa6"}],["path",{d:"M9 17a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v2a2 2 0 0 0 2 2h2a2 2 0 0 0 2-2v-2z",key:"swwfx4"}]]),Tc=de("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"}]]),Ta=de("save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]),Pa=de("scissors",[["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M8.12 8.12 12 12",key:"1alkpv"}],["path",{d:"M20 4 8.12 15.88",key:"xgtan2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M14.8 14.8 20 20",key:"ptml3r"}]]),Dc=de("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"}]]),hd=de("share-2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]]),md=de("square-code",[["path",{d:"m10 9-3 3 3 3",key:"1oro0q"}],["path",{d:"m14 15 3-3-3-3",key:"bz13h7"}],["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",key:"h1oib"}]]),fd=de("square-dashed-bottom-code",[["path",{d:"M10 9.5 8 12l2 2.5",key:"3mjy60"}],["path",{d:"M14 21h1",key:"v9vybs"}],["path",{d:"m14 9.5 2 2.5-2 2.5",key:"1bir2l"}],["path",{d:"M5 21a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2",key:"as5y1o"}],["path",{d:"M9 21h1",key:"15o7lz"}]]),pd=de("square-m",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M8 16V8l4 4 4-4v8",key:"141u4e"}]]),gd=de("square-power",[["path",{d:"M12 7v4",key:"xawao1"}],["path",{d:"M7.998 9.003a5 5 0 1 0 8-.005",key:"1pek45"}],["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",key:"h1oib"}]]),Pc=de("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"}]]),bd=de("text-cursor-input",[["path",{d:"M12 20h-1a2 2 0 0 1-2-2 2 2 0 0 1-2 2H6",key:"1528k5"}],["path",{d:"M13 8h7a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-7",key:"13ksps"}],["path",{d:"M5 16H4a2 2 0 0 1-2-2v-4a2 2 0 0 1 2-2h1",key:"1n9rhb"}],["path",{d:"M6 4h1a2 2 0 0 1 2 2 2 2 0 0 1 2-2h1",key:"1mj8rg"}],["path",{d:"M9 6v12",key:"velyjx"}]]),Mc=de("text-search",[["path",{d:"M21 6H3",key:"1jwq7v"}],["path",{d:"M10 12H3",key:"1ulcyk"}],["path",{d:"M10 18H3",key:"13769t"}],["circle",{cx:"17",cy:"15",r:"3",key:"1upz2a"}],["path",{d:"m21 19-1.9-1.9",key:"dwi7p8"}]]),za=de("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"}]]),xd=de("users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]]),yd=de("whole-word",[["circle",{cx:"7",cy:"12",r:"3",key:"12clwm"}],["path",{d:"M10 9v6",key:"17i7lo"}],["circle",{cx:"17",cy:"12",r:"3",key:"gl7c2s"}],["path",{d:"M14 7v8",key:"dl84cr"}],["path",{d:"M22 17v1c0 .5-.5 1-1 1H3c-.5 0-1-.5-1-1v-1",key:"lt2kga"}]]),Rc=de("workflow",[["rect",{width:"8",height:"8",x:"3",y:"3",rx:"2",key:"by2w9f"}],["path",{d:"M7 11v4a2 2 0 0 0 2 2h4",key:"xkn7yn"}],["rect",{width:"8",height:"8",x:"13",y:"13",rx:"2",key:"1cgmvn"}]]),Et=de("zap-off",[["path",{d:"M10.513 4.856 13.12 2.17a.5.5 0 0 1 .86.46l-1.377 4.317",key:"193nxd"}],["path",{d:"M15.656 10H20a1 1 0 0 1 .78 1.63l-1.72 1.773",key:"27a7lr"}],["path",{d:"M16.273 16.273 10.88 21.83a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14H4a1 1 0 0 1-.78-1.63l4.507-4.643",key:"1e0qe9"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]),_t=de("zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]);function Vr(t,e){const n=+oo(t)-+oo(e);return n<0?-1:n>0?1:n}function bg(t,e){const n=oo(t,e==null?void 0:e.in);return+(function(o,r){const s=oo(o,r==null?void 0:r.in);return s.setHours(23,59,59,999),s})(n,e)==+(function(o,r){const s=oo(o,r==null?void 0:r.in),a=s.getMonth();return s.setFullYear(s.getFullYear(),a+1,0),s.setHours(23,59,59,999),s})(n,e)}function xg(t,e,n){const[o,r,s]=Cl(n==null?void 0:n.in,t,t,e),a=Vr(r,s),l=Math.abs((function(u,h,m){const[p,b]=Cl(m==null?void 0:m.in,u,h);return 12*(p.getFullYear()-b.getFullYear())+(p.getMonth()-b.getMonth())})(r,s));if(l<1)return 0;r.getMonth()===1&&r.getDate()>27&&r.setDate(30),r.setMonth(r.getMonth()-a*l);let c=Vr(r,s)===-a;bg(o)&&l===1&&Vr(o,s)===1&&(c=!1);const d=a*(l-+c);return d===0?0:d}function yg(t,e,n){const o=(function(r,s){return+oo(r)-+oo(s)})(t,e)/1e3;return(r=>{const s=(0,Math.trunc)(r);return s===0?0:s})(o)}function vg(t,e){return(function(n,o,r){const s=tk().locale??nk,a=Vr(n,o);if(isNaN(a))throw new RangeError("Invalid time value");const l=Object.assign({},r,{addSuffix:r==null?void 0:r.addSuffix,comparison:a}),[c,d]=Cl(r==null?void 0:r.in,...a>0?[o,n]:[n,o]),u=yg(d,c),h=(cp(d)-cp(c))/1e3,m=Math.round((u-h)/60);let p;if(m<2)return m===0?s.formatDistance("lessThanXMinutes",1,l):s.formatDistance("xMinutes",m,l);if(m<45)return s.formatDistance("xMinutes",m,l);if(m<90)return s.formatDistance("aboutXHours",1,l);if(m<dp){const b=Math.round(m/60);return s.formatDistance("aboutXHours",b,l)}if(m<2520)return s.formatDistance("xDays",1,l);if(m<Gs){const b=Math.round(m/dp);return s.formatDistance("xDays",b,l)}if(m<2*Gs)return p=Math.round(m/Gs),s.formatDistance("aboutXMonths",p,l);if(p=xg(d,c),p<12){const b=Math.round(m/Gs);return s.formatDistance("xMonths",b,l)}{const b=p%12,x=Math.trunc(p/12);return b<3?s.formatDistance("aboutXYears",x,l):b<9?s.formatDistance("overXYears",x,l):s.formatDistance("almostXYears",x+1,l)}})(t,(function(n){return ek(n,Date.now())})(t),e)}const wg=S.createContext({}),kg=S.forwardRef(function(t,e){[t,e]=sk(t,e,wg);let{toolbarProps:n}=(function(s,a){const{"aria-label":l,"aria-labelledby":c,orientation:d="horizontal"}=s;let[u,h]=S.useState(!1);ok(()=>{var f;h(!(!a.current||!(!((f=a.current.parentElement)===null||f===void 0)&&f.closest('[role="toolbar"]'))))});const{direction:m}=up(),p=m==="rtl"&&d==="horizontal";let b=rk(a);const x=S.useRef(null);return{toolbarProps:{...hp(s,{labelable:!0}),role:u?"group":"toolbar","aria-orientation":d,"aria-label":l,"aria-labelledby":l==null?c:void 0,onKeyDownCapture:u?void 0:f=>{if(f.currentTarget.contains(f.target)){if(d==="horizontal"&&f.key==="ArrowRight"||d==="vertical"&&f.key==="ArrowDown")p?b.focusPrevious():b.focusNext();else{if(!(d==="horizontal"&&f.key==="ArrowLeft"||d==="vertical"&&f.key==="ArrowUp"))return f.key==="Tab"?(f.stopPropagation(),x.current=document.activeElement,void(f.shiftKey?b.focusFirst():b.focusLast())):void 0;p?b.focusNext():b.focusPrevious()}f.stopPropagation(),f.preventDefault()}},onFocusCapture:u?void 0:f=>{var g,y;x.current&&!f.currentTarget.contains(f.relatedTarget)&&(!((g=a.current)===null||g===void 0)&&g.contains(f.target))&&((y=x.current)===null||y===void 0||y.focus(),x.current=null)},onBlurCapture:u?void 0:f=>{f.currentTarget.contains(f.relatedTarget)||x.current||(x.current=f.target)}}}})(t,e),o=ak({...t,values:{orientation:t.orientation||"horizontal"},defaultClassName:"react-aria-Toolbar"}),r=hp(t,{global:!0});return delete r.id,me.createElement("div",{...Nl(r,o,n),ref:e,slot:t.slot||void 0,"data-orientation":t.orientation||"horizontal"},o.children)}),Gr={showInput:"Mod-l",acceptEdit:"Mod-y",rejectEdit:"Mod-u"},$o=ro.define({combine:t=>qs(t,{onError:console.error,inputDebounceTime:300,keymaps:Gr},{onError:(e,n)=>e&&n,inputDebounceTime:(e,n)=>e&&n,keymaps:(e,n)=>e&&n})}),qn=tt.define(),Hn=Dt.define({create:()=>({show:!1,lineFrom:0,lineTo:0}),update(t,e){for(const n of e.effects)if(n.is(qn))return n.value;return t}}),Vo=tt.define(),Go=tt.define(),vd=Dt.define({create:()=>({shouldFocus:!1,inputValue:""}),update(t,e){let n=t;for(const o of e.effects)o.is(Vo)&&(n={...n,inputValue:o.value}),o.is(Go)&&(n={...n,shouldFocus:o.value});return n}}),qr=tt.define(),qo=Dt.define({create:()=>null,update(t,e){for(const n of e.effects)if(n.is(qr))return n.value;return t}}),uo=tt.define(),wd=Dt.define({create:()=>!1,update(t,e){for(const n of e.effects)if(n.is(uo))return n.value;return t}}),kd=t=>{const{state:e}=t,n=e.selection.main;if(n.empty)return!1;const o=e.doc,r=o.lineAt(n.from),s=o.lineAt(n.to);if(e.sliceDoc(r.from,s.to).trim().length<1)return!1;const a=Math.max(1,Math.min(r.number,o.lines)),l=Math.max(1,Math.min(s.number,o.lines));return t.dispatch({effects:[qn.of({show:!0,lineFrom:a,lineTo:l}),Go.of(!0),Vo.of("")],selection:Yt.cursor(r.from)}),!0},jd=t=>!!t.state.field(qo)&&(t.dispatch({effects:[qr.of(null),qn.of({show:!1,lineFrom:0,lineTo:0}),Go.of(!1),Vo.of(""),uo.of(!1)]}),!0),Cd=t=>{const e=t.state.field(qo);return!!e&&(t.dispatch({changes:{from:e.from,to:e.to,insert:e.oldCode},effects:[qr.of(null),qn.of({show:!1,lineFrom:0,lineTo:0}),Go.of(!1),Vo.of(""),uo.of(!1)]}),!0)},jg="\u2318",Cg="\u229E Win",Ng="Ctrl";function Ua(t){return t.replace("Mod",navigator.platform.startsWith("Mac")?jg:navigator.platform.startsWith("Win")?Cg:Ng).replace("-"," ").toUpperCase()}function bt(t,e){const n=document.createElement(t);return n.className=e,n}const Hr=Dt.define({create:()=>({suggestion:null}),update(t,e){const n=e.effects.find(o=>o.is(Jr));return e.docChanged||n||e.selection?n&&e.state.doc===n.value.doc?{suggestion:n.value.text}:{suggestion:null}:t}}),Jr=tt.define();class Sg extends So{constructor(n){super();B(this,"suggestion");this.suggestion=n}toDOM(){const n=document.createElement("span");return n.style.opacity="0.4",n.className="cm-inline-suggestion",n.textContent=this.suggestion,n.setAttribute("role","suggestion"),n.setAttribute("aria-label",`Suggestion: ${this.suggestion}`),n}get lineBreaks(){return this.suggestion.split(`
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./terminal-BX3Su5q7.js","./index-C7CoaNFb.js","./index-DadI618h.css","./state-CWict9RU.js","./links-BpXlz1GG.js","./links-5Ym3a_OV.css","./storage-DRaR04wR.js","./index-Aeo6WiK7.js","./index-CfaDbEdi.js","./index-BjgnbONl.js","./index-CUFv_thQ.js","./index-DdnKZNxM.js","./index-C_tkBKNO.js","./index-BJNCMUmG.js","./index-CFKO7WXI.js","./index-aE43R74q.js","./index-BAbIIxHU.js","./index-ClzeQrN7.js","./index-G5QZppK2.js","./index-C2MD0vgD.js","./apl-CXdQSnD-.js","./asciiarmor-D5V0T9Cu.js","./asn1-DWPaVWf6.js","./brainfuck-CtZaYBKt.js","./cobol-stawOqaz.js","./clike-BgBwzOhw.js","./clojure-DiuoqK-z.js","./css-ZjFoif2m.js","./cmake-DXn5xaP-.js","./coffeescript-BTDxI-eT.js","./commonlisp-vq6DHwts.js","./cypher-gJDei3ni.js","./python-DD-Q2bae.js","./crystal-CRzZ78HM.js","./d-BShv7fp-.js","./diff-UJJ5BM9S.js","./dtd-DI9Herc-.js","./dylan-DkEP81N9.js","./ecl-DPFc0Uaf.js","./eiffel-DR5c0IrL.js","./elm-DompmV0j.js","./erlang-BuqgqA5h.js","./factor-CFXhaUWb.js","./simple-mode-C3vEBAcb.js","./forth-POgR1ypr.js","./fortran-DL7KluxX.js","./mllike-3c2dg9RT.js","./gas-bV0CklSb.js","./gherkin-B6X1vGSW.js","./groovy-DnIzCrpZ.js","./haskell-CLQs6EAM.js","./haxe-D25e-2l-.js","./idl-pcmmZuaN.js","./javascript-BpzJj0-u.js","./jinja2-DhgKlfW7.js","./julia-DjdwvFuI.js","./livescript-HO6ttBFx.js","./lua-8DXOpKDz.js","./mirc-DkvFAiy5.js","./mathematica-IIbmv7SK.js","./modelica-DSrSSXCg.js","./mumps-zvxmGV4l.js","./mbox-z_N2Mo3d.js","./nsis-BvKfQ9lQ.js","./ntriples-BSwWqoLa.js","./octave-C4hdQ5Hf.js","./oz-qQq7irPq.js","./pascal-CafrKXZF.js","./perl-tdMlh9QA.js","./pig-CwGJVRC4.js","./powershell-D1ly3AHC.js","./properties-_nPj978X.js","./protobuf-B4y9do6W.js","./pug-BTvK5tSS.js","./puppet-Bc-yJKzi.js","./q-B0kTJ4cI.js","./r-BA4EbLKE.js","./rpm-DI_rRufH.js","./ruby-CR-u2WLS.js","./sas-Bqaci40L.js","./scheme-qjP0V5Ag.js","./shell-BLav31RL.js","./sieve-r025o_jW.js","./smalltalk-C7J3IyEP.js","./sparql-BRLJFz69.js","./stylus-Bdo_Aemu.js","./swift-B_XXVlXX.js","./verilog-B4LBqg_1.js","./tcl-B2fODqDH.js","./textile-BuVhTOzU.js","./toml-wcPdHu67.js","./troff-Ce85hlLp.js","./ttcn-BxnYHtq8.js","./ttcn-cfg-CKJxb-l2.js","./turtle-BkSuIpt-.js","./webidl-CGwyPRYs.js","./vb-BHgjm0DN.js","./vbscript-Dawdd5GZ.js","./velocity-BdD_26Jv.js","./vhdl-CWWH2SUo.js","./xquery-CVDBqZPY.js","./yacas-I8QjZlxf.js","./z80-D8p3gKXp.js","./mscgen-B2igx18G.js","./index-C1ez98sk.js","./trash-B81GTiv6.js","./storage-B3Gax9mZ.css","./_createAggregator-C5CVY-0t.js","./_baseEach-CvTX9w0Y.js","./loro_wasm_bg-C1ks32Vm.js","./terminal-B3isKKSk.css","./chat-panel-9alr8FS4.js","./empty-state-C99UyDE3.js","./markdown-renderer-DRdSWR9X.js","./katex-LV4FpwlL.js","./between-horizontal-start-Dt2aKpPf.js","./markdown-renderer-ClyzDMmG.css","./isEmpty-D-4c7sMv.js","./agent-panel-RGLNjkYe.js","./agent-panel-D92Mfy1i.css","./dependency-graph-panel-CEog_O7V.js","./transform-D9VCJYws.js","./timer-Bqd5yn_a.js","./zoom-COrs4lFh.js","./common-Du9rSOwD.js","./ellipsis-vertical-BEb-J8z6.js","./dependency-graph-panel-YfRlmuld.css","./datasources-panel-v7H3cR0p.js","./sortBy-DZnlX29-.js","./_baseMap-CtlwA90f.js","./documentation-panel-C1BtMZ3M.js","./error-panel-Bs34jXFh.js","./file-explorer-panel-Ck6UL861.js","./icon-32x32-DHZerVul.js","./tree-6vW2ogkh.js","./index-B8jXZ12t.js","./logs-panel-DC7wpmPz.js","./clear-button-C97JtAez.js","./outline-panel-CdsnAy2w.js","./outline-panel-CJw2eR3G.css","./packages-panel-DiTA-d_D.js","./scratchpad-panel-CuHWpHO8.js","./secrets-panel-CfHc5YD0.js","./snippets-panel-B2EC1txM.js","./snippets-panel-B4N-3dTw.css","./tracing-panel-Du8WCnno.js","./variable-panel-D5qgJI7k.js","./command-palette-B93Pjcky.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
var Xw=Object.defineProperty;var ap=nt=>{throw TypeError(nt)};var Qw=(nt,We,gt)=>We in nt?Xw(nt,We,{enumerable:!0,configurable:!0,writable:!0,value:gt}):nt[We]=gt;var B=(nt,We,gt)=>Qw(nt,typeof We!="symbol"?We+"":We,gt),Zw=(nt,We,gt)=>We.has(nt)||ap("Cannot "+gt);var ip=(nt,We,gt)=>(Zw(nt,We,"read from private field"),gt?gt.call(nt):We.get(nt)),lp=(nt,We,gt)=>We.has(nt)?ap("Cannot add the same private member more than once"):We instanceof WeakSet?We.add(nt):We.set(nt,gt);import{c as de,k3 as oo,k4 as ek,k5 as Cl,k6 as tk,k7 as nk,k8 as cp,k9 as dp,ka as Gs,r as S,i9 as ok,bW as up,gR as hp,kb as rk,gN as sk,gQ as ak,d as me,gL as Nl,kc as ro,kd as Dt,ke as qs,kf as tt,v as Yt,j4 as Wt,eZ as $t,kg as Te,kh as So,p as Se,je as Sn,a as P,ax as qe,a0 as ze,j as i,aV as Xt,b1 as so,b0 as yr,b2 as vr,bQ as ao,a_ as ye,$ as Eo,bT as Hs,a$ as io,aI as Fn,a8 as mp,aB as pe,ay as Ct,g$ as Sl,cN as Js,ki as ik,cM as Ce,S as Ye,kj as lk,hP as Mt,kk as fp,kl as pp,km as El,kn as gp,L as He,c3 as bp,bl as _o,d1 as ck,W as xp,aA as Qt,ko as dk,c5 as Ks,kp as Ys,av as Bt,d5 as Be,d8 as Io,fU as $e,kq as fe,d6 as Me,kr as _l,ks as uk,kt as Il,ku as Ve,kv as yp,dw as Al,dt as Tl,gA as Dl,dh as Ml,dp as Ol,ef as Ao,i$ as Rl,cP as Bn,b as wr,X as Pn,iR as vp,iT as wp,iU as hk,iZ as mk,iV as kp,kw as jp,T as ue,hq as fk,d$ as zn,dZ as Un,e0 as Wn,dY as lo,f8 as En,kx as Cp,iX as Np,ky as pk,aZ as gk,aY as bk,kz as xk,iP as Sp,iQ as Ep,by as yk,di as _p,br as vk,jJ as wk,kA as kk,du as jk,gC as Ll,bI as Fl,dA as Bl,f0 as Ck,ei as Ot,hJ as Nk,ct as Pl,i0 as Nt,e9 as Sk,h0 as ht,hm as Ek,aW as zl,g0 as kr,kB as Xs,cp as _n,K as ie,hF as To,aw as Qs,kC as _k,kD as Ik,kE as Ip,aX as Ak,b3 as Ul,hD as Ap,dV as Zs,cO as St,dW as Tk,b4 as Dk,jp as Tp,a7 as Wl,kF as Mk,kG as $l,dI as Ok,e8 as Rk,hO as Dp,eb as Lk,kH as Fk,kI as Mp,jX as Bk,jV as Pk,jY as zk,jZ as Uk,kJ as Vl,f2 as Zt,kK as Wk,ba as Le,kL as ea,kM as Do,kN as Mo,cs as Gl,jk as st,kO as ql,cC as $k,bn as Vt,kP as Vk,kQ as Op,iI as Hl,cy as Rp,bU as Lp,bC as Jl,e6 as Gk,e7 as qk,kR as Hk,bm as Fp,an as Kl,bp as Bp,bM as Yl,al as ta,hQ as Xl,kS as Jk,g_ as Gt,kT as Pp,kU as jr,kV as zp,kW as na,kX as Up,kY as Wp,kZ as $p,g5 as Vp,cu as Gp,cK as qp,k_ as Kk,k$ as en,l0 as oa,l1 as Hp,M as Ql,l2 as Cr,l3 as Nr,bb as Jp,jS as Zl,l4 as Kp,l5 as ra,b8 as Yp,l6 as Xp,l7 as sa,aG as $n,fb as ec,hN as Qp,bF as Zp,l8 as Sr,l9 as Er,la as aa,lb as Vn,lc as e1,ld as In,le as Oo,lf as tc,lg as _r,lh as Ro,li as nc,lj as oc,lk as t1,ll as ia,lm as Yk,c4 as Ir,ln as Ar,lo as Xk,gZ as la,lp as Qk,lq as rc,lr as Zk,ls as e4,lt as ca,ec as Lo,h5 as t4,cJ as n1,lu as n4,jx as o1,fr as r1,lv as sc,i_ as s1,hC as a1,lw as i1,lx as da,ly as l1,lz as ua,lA as ac,lB as Fo,lC as Tr,lD as Dr,lE as o4,ju as ic,lF as lc,lG as ha,hl as r4,jv as s4,lH as a4,lI as i4,lJ as l4,lK as c4,x as d4,lL as u4,lM as h4,lN as m4,j7 as f4,lO as p4,lP as c1,t as v,lQ as g4,lR as b4,lS as x4,lT as y4,lU as v4,lV as w4,lW as k4,lX as j4,lY as C4,lZ as N4,l_ as S4,l$ as E4,m0 as _4,m1 as I4,m2 as A4,m3 as T4,m4 as D4,m5 as M4,m6 as O4,m7 as R4,m8 as L4,m9 as F4,ma as Mr,mb as B4,mc as P4,md as z4,me as U4,mf as W4,mg as $4,mh as V4,mi as G4,mj as cc,bt as dc,gz as d1,mk as u1,ml as q4,mm as H4,cV as J4,mn as K4,cW as Y4,cY as Or,mo as X4,mp as Q4,mq as Z4,mr as e3,ms as t3,mt as n3,mu as o3,mv as r3,mw as s3,mx as a3,cZ as i3,my as l3,mz as c3,mA as d3,mB as h1,h2 as u3,mC as h3,mD as m1,h6 as m3,mE as ma,mF as f3,mG as p3,mH as g3,mI as b3,a2 as uc,bj as hc,bD as Gn,mJ as Bo,mK as f1,cR as x3,dc as mc,bx as p1,mL as y3,mM as Rr,hr as fc,mN as co,mO as v3,hg as g1,aH as fa,mP as w3,mQ as k3,mR as j3,cv as C3,mS as b1,cx as N3,bo as S3,am as pc,mT as E3,mU as _3,mV as I3,mW as Lr,mX as Fr,hM as gc,mY as A3,jc as T3,ed as D3,a9 as mt,mZ as x1,m_ as M3,m$ as O3,n0 as bc,n1 as xc,n2 as R3,n3 as y1,n4 as v1,n5 as pa,j3 as L3,aR as w1,gT as F3,n6 as k1,gH as Je,n7 as Br,n8 as Po,n9 as B3,na as P3,nb as z3,nc as U3,dj as j1,nd as W3,u as C1,ds as $3,ne as V3,dG as G3,nf as q3,da as N1,dD as H3,dy as J3,dx as K3,ng as Y3,ee as X3,e5 as Q3,nh as Z3,ni as ej,nj as tj,fS as nj,nk as S1,nl as E1,nm as _1,nn as oj,cA as yc,no as I1,np as A1,bd as ga,nq as rj,nr as T1,ns as sj,nt as aj,nu as D1,aS as ba,nv as ij,eg as lj,nw as cj,V as dj,nx as M1,ny as uj,nz as hj,nA as mj,nB as Pr,nC as O1,hL as R1,j1 as xa,dC as L1,aD as F1,cQ as vc,hp as wc,nD as fj,hI as B1,nE as pj,nF as P1,fP as gj,fQ as bj,jP as xj,iS as yj,iW as kc,jQ as vj,nG as z1,co as wj,gg as kj,nH as jj,nI as Cj,nJ as Nj,a1 as ya,hs as Sj,nK as Ej,nL as _j,nM as U1,P as Ij,gE as W1,nN as Aj,ak as jc,nO as Tj,hH as Dj,nP as Mj,nQ as Oj,dR as Rj,nR as Lj,nS as Fj,nT as Bj,aP as Pj,nU as va,g1 as zj,dd as Uj,de as Wj,jd as $j,gy as wa,jA as Vj,nV as Gj,bP as qj,nW as Hj,nX as Jj,c2 as Kj,b5 as ka,nY as $1,nZ as V1,b7 as G1,b6 as Yj,gY as Xj,__tla as Qj}from"./index-C7CoaNFb.js";import{B as ja,A as Zj,G as eC,o as tC,s as nC,k as oC,L as q1,a as H1,b as rC,M as sC,Y as aC,e as tn,c as zr,d as iC,S as lC,K as cC,f as dC,i as uC,h as J1,j as hC,l as mC,u as K1,P as Ur,m as Y1,n as fC,p as pC,q as gC,D as zo}from"./links-BpXlz1GG.js";import{V as X1,S as bC,h as Q1,i as Z1,L as eg,j as tg,F as ng,I as Cc,M as xC,l as og,k as yC,f as Uo,E as Ca,m as rg,n as sg,N as ag,o as vC,p as Nc,g as ig,q as wC,s as kC,t as jC,v as CC,w as NC,u as SC,C as EC,R as lg,A as _C,a as IC,c as AC,P as TC,__tla as DC}from"./storage-DRaR04wR.js";import{c as MC}from"./_createAggregator-C5CVY-0t.js";import{_ as cg,a as dg,i as OC,w as RC,L as ug,A as LC,C as hg,b as Sc,c as mg,__tla as FC}from"./loro_wasm_bg-C1ks32Vm.js";let fg,Na,Sa,Ec,Ea,_c,Ic,Ac,Tc,Dc,Mc,Oc,Rc,Lc,_a,Ia,Aa,Wo,pg,Ta,Fc,Bc,Pc,zc,Uc,gg,Wc,Da,BC=Promise.all([(()=>{try{return Qj}catch{}})(),(()=>{try{return DC}catch{}})(),(()=>{try{return FC}catch{}})()]).then(async()=>{var $s,sp;var nt=MC(function(t,e,n){t[n?0:1].push(e)},function(){return[[],[]]});let We,gt,Ma,$c,Vc,Wr,Oa,$r,Gc,Ra,qc,Hc,Jc,Kc,Yc,Xc,Qc,Zc,ed,td,nd,La,od,rd,sd,ad,id,ld,cd,Fa,dd,Ba,ud,Pa,hd,md,fd,pd,gd,bd,za,xd,yd,Et,_t;Fc=de("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]),Uc=de("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]),We=de("ban",[["path",{d:"M4.929 4.929 19.07 19.071",key:"196cmz"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]),gt=de("chevrons-down",[["path",{d:"m7 6 5 5 5-5",key:"1lc07p"}],["path",{d:"m7 13 5 5 5-5",key:"1d48rs"}]]),Ma=de("chevrons-up",[["path",{d:"m17 11-5-5-5 5",key:"e8nh98"}],["path",{d:"m17 18-5-5-5 5",key:"2avn1x"}]]),Na=de("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]),$c=de("circle-chevron-down",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 10-4 4-4-4",key:"894hmk"}]]),Vc=de("circle-chevron-right",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m10 8 4 4-4 4",key:"1wy4r4"}]]),Wr=de("circle-plus",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"M12 8v8",key:"napkw2"}]]),Oa=de("clipboard-copy",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2",key:"4jdomd"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v4",key:"3hqy98"}],["path",{d:"M21 14H11",key:"1bme5i"}],["path",{d:"m15 10-4 4 4 4",key:"5dvupr"}]]),Bc=de("clipboard-paste",[["path",{d:"M11 14h10",key:"1w8e9d"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v1.344",key:"1e62lh"}],["path",{d:"m17 18 4-4-4-4",key:"z2g111"}],["path",{d:"M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 1.793-1.113",key:"bjbb7m"}],["rect",{x:"8",y:"2",width:"8",height:"4",rx:"1",key:"ublpy"}]]),$r=de("cloud-download",[["path",{d:"M12 13v8l-4-4",key:"1f5nwf"}],["path",{d:"m12 21 4-4",key:"1lfcce"}],["path",{d:"M4.393 15.269A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.436 8.284",key:"ui1hmy"}]]),Gc=de("code",[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]]),Ra=de("command",[["path",{d:"M15 6v12a3 3 0 1 0 3-3H6a3 3 0 1 0 3 3V6a3 3 0 1 0-3 3h12a3 3 0 1 0-3-3",key:"11bfej"}]]),qc=de("diamond-plus",[["path",{d:"M12 8v8",key:"napkw2"}],["path",{d:"M2.7 10.3a2.41 2.41 0 0 0 0 3.41l7.59 7.59a2.41 2.41 0 0 0 3.41 0l7.59-7.59a2.41 2.41 0 0 0 0-3.41L13.7 2.71a2.41 2.41 0 0 0-3.41 0z",key:"1ey20j"}],["path",{d:"M8 12h8",key:"1wcyev"}]]),Hc=de("fast-forward",[["path",{d:"M12 6a2 2 0 0 1 3.414-1.414l6 6a2 2 0 0 1 0 2.828l-6 6A2 2 0 0 1 12 18z",key:"b19h5q"}],["path",{d:"M2 6a2 2 0 0 1 3.414-1.414l6 6a2 2 0 0 1 0 2.828l-6 6A2 2 0 0 1 2 18z",key:"h7h5ge"}]]),Jc=de("file-pen",[["path",{d:"M12.5 22H18a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v9.5",key:"1couwa"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M13.378 15.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z",key:"1y4qbx"}]]),Ec=de("file-plus-2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M3 15h6",key:"4e2qda"}],["path",{d:"M6 12v6",key:"1u72j0"}]]),Kc=de("files",[["path",{d:"M15 2a2 2 0 0 1 1.414.586l4 4A2 2 0 0 1 21 8v7a2 2 0 0 1-2 2h-8a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2z",key:"1vo8kb"}],["path",{d:"M15 2v4a2 2 0 0 0 2 2h4",key:"sud9ri"}],["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"}]]),Yc=de("folder-tree",[["path",{d:"M20 10a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-2.5a1 1 0 0 1-.8-.4l-.9-1.2A1 1 0 0 0 15 3h-2a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"hod4my"}],["path",{d:"M20 21a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1h-2.9a1 1 0 0 1-.88-.55l-.42-.85a1 1 0 0 0-.92-.6H13a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"w4yl2u"}],["path",{d:"M3 5a2 2 0 0 0 2 2h3",key:"f2jnh7"}],["path",{d:"M3 3v13a2 2 0 0 0 2 2h3",key:"k8epm1"}]]),Xc=de("grip-vertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]]),Qc=de("hard-drive-download",[["path",{d:"M12 2v8",key:"1q4o3n"}],["path",{d:"m16 6-4 4-4-4",key:"6wukr"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",key:"w68u3i"}],["path",{d:"M6 18h.01",key:"uhywen"}],["path",{d:"M10 18h.01",key:"h775k"}]]),Zc=de("hat-glasses",[["path",{d:"M14 18a2 2 0 0 0-4 0",key:"1v8fkw"}],["path",{d:"m19 11-2.11-6.657a2 2 0 0 0-2.752-1.148l-1.276.61A2 2 0 0 1 12 4H8.5a2 2 0 0 0-1.925 1.456L5 11",key:"1fkr7p"}],["path",{d:"M2 11h20",key:"3eubbj"}],["circle",{cx:"17",cy:"18",r:"3",key:"82mm0e"}],["circle",{cx:"7",cy:"18",r:"3",key:"lvkj7j"}]]),ed=de("house",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]]),td=de("key-round",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]),_c=de("key",[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]]),nd=de("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"}]]),La=de("layout-template",[["rect",{width:"18",height:"7",x:"3",y:"3",rx:"1",key:"f1a2em"}],["rect",{width:"9",height:"7",x:"3",y:"14",rx:"1",key:"jqznyg"}],["rect",{width:"5",height:"7",x:"16",y:"14",rx:"1",key:"q5h2i8"}]]),od=de("list",[["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 18h.01",key:"1tta3j"}],["path",{d:"M3 6h.01",key:"1rqtza"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 18h13",key:"1lx6n3"}],["path",{d:"M8 6h13",key:"ik3vkj"}]]),rd=de("map",[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]]),sd=de("memory-stick",[["path",{d:"M6 19v-3",key:"1nvgqn"}],["path",{d:"M10 19v-3",key:"iu8nkm"}],["path",{d:"M14 19v-3",key:"kcehxu"}],["path",{d:"M18 19v-3",key:"1vh91z"}],["path",{d:"M8 11V9",key:"63erz4"}],["path",{d:"M16 11V9",key:"fru6f3"}],["path",{d:"M12 11V9",key:"ha00sb"}],["path",{d:"M2 15h20",key:"16ne18"}],["path",{d:"M2 7a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v1.1a2 2 0 0 0 0 3.837V17a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-5.1a2 2 0 0 0 0-3.837Z",key:"lhddv3"}]]),ad=de("message-circle-question-mark",[["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"}],["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"}]]),id=de("microchip",[["path",{d:"M18 12h2",key:"quuxs7"}],["path",{d:"M18 16h2",key:"zsn3lv"}],["path",{d:"M18 20h2",key:"9x5y9y"}],["path",{d:"M18 4h2",key:"1luxfb"}],["path",{d:"M18 8h2",key:"nxqzg"}],["path",{d:"M4 12h2",key:"1ltxp0"}],["path",{d:"M4 16h2",key:"8a5zha"}],["path",{d:"M4 20h2",key:"27dk57"}],["path",{d:"M4 4h2",key:"10groj"}],["path",{d:"M4 8h2",key:"18vq6w"}],["path",{d:"M8 2a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2h-1.5c-.276 0-.494.227-.562.495a2 2 0 0 1-3.876 0C9.994 2.227 9.776 2 9.5 2z",key:"1681fp"}]]),Ic=de("network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]),ld=de("octagon-alert",[["path",{d:"M12 16h.01",key:"1drbdi"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M15.312 2a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586l-4.688-4.688A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2z",key:"1fd625"}]]),cd=de("package-check",[["path",{d:"m16 16 2 2 4-4",key:"gfu2re"}],["path",{d:"M21 10V8a2 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 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}]]),Fa=de("package-x",[["path",{d:"M21 10V8a2 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 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}],["path",{d:"m17 13 5 5m-5 0 5-5",key:"im3w4b"}]]),dd=de("panel-left",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]),Ba=de("presentation",[["path",{d:"M2 3h20",key:"91anmk"}],["path",{d:"M21 3v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V3",key:"2k9sn8"}],["path",{d:"m7 21 5-5 5 5",key:"bip4we"}]]),ud=de("regex",[["path",{d:"M17 3v10",key:"15fgeh"}],["path",{d:"m12.67 5.5 8.66 5",key:"1gpheq"}],["path",{d:"m12.67 10.5 8.66-5",key:"1dkfa6"}],["path",{d:"M9 17a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v2a2 2 0 0 0 2 2h2a2 2 0 0 0 2-2v-2z",key:"swwfx4"}]]),Tc=de("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"}]]),Ta=de("save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]),Pa=de("scissors",[["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M8.12 8.12 12 12",key:"1alkpv"}],["path",{d:"M20 4 8.12 15.88",key:"xgtan2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M14.8 14.8 20 20",key:"ptml3r"}]]),Dc=de("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"}]]),hd=de("share-2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]]),md=de("square-code",[["path",{d:"m10 9-3 3 3 3",key:"1oro0q"}],["path",{d:"m14 15 3-3-3-3",key:"bz13h7"}],["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",key:"h1oib"}]]),fd=de("square-dashed-bottom-code",[["path",{d:"M10 9.5 8 12l2 2.5",key:"3mjy60"}],["path",{d:"M14 21h1",key:"v9vybs"}],["path",{d:"m14 9.5 2 2.5-2 2.5",key:"1bir2l"}],["path",{d:"M5 21a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2",key:"as5y1o"}],["path",{d:"M9 21h1",key:"15o7lz"}]]),pd=de("square-m",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M8 16V8l4 4 4-4v8",key:"141u4e"}]]),gd=de("square-power",[["path",{d:"M12 7v4",key:"xawao1"}],["path",{d:"M7.998 9.003a5 5 0 1 0 8-.005",key:"1pek45"}],["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",key:"h1oib"}]]),Pc=de("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"}]]),bd=de("text-cursor-input",[["path",{d:"M12 20h-1a2 2 0 0 1-2-2 2 2 0 0 1-2 2H6",key:"1528k5"}],["path",{d:"M13 8h7a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-7",key:"13ksps"}],["path",{d:"M5 16H4a2 2 0 0 1-2-2v-4a2 2 0 0 1 2-2h1",key:"1n9rhb"}],["path",{d:"M6 4h1a2 2 0 0 1 2 2 2 2 0 0 1 2-2h1",key:"1mj8rg"}],["path",{d:"M9 6v12",key:"velyjx"}]]),Mc=de("text-search",[["path",{d:"M21 6H3",key:"1jwq7v"}],["path",{d:"M10 12H3",key:"1ulcyk"}],["path",{d:"M10 18H3",key:"13769t"}],["circle",{cx:"17",cy:"15",r:"3",key:"1upz2a"}],["path",{d:"m21 19-1.9-1.9",key:"dwi7p8"}]]),za=de("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"}]]),xd=de("users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]]),yd=de("whole-word",[["circle",{cx:"7",cy:"12",r:"3",key:"12clwm"}],["path",{d:"M10 9v6",key:"17i7lo"}],["circle",{cx:"17",cy:"12",r:"3",key:"gl7c2s"}],["path",{d:"M14 7v8",key:"dl84cr"}],["path",{d:"M22 17v1c0 .5-.5 1-1 1H3c-.5 0-1-.5-1-1v-1",key:"lt2kga"}]]),Rc=de("workflow",[["rect",{width:"8",height:"8",x:"3",y:"3",rx:"2",key:"by2w9f"}],["path",{d:"M7 11v4a2 2 0 0 0 2 2h4",key:"xkn7yn"}],["rect",{width:"8",height:"8",x:"13",y:"13",rx:"2",key:"1cgmvn"}]]),Et=de("zap-off",[["path",{d:"M10.513 4.856 13.12 2.17a.5.5 0 0 1 .86.46l-1.377 4.317",key:"193nxd"}],["path",{d:"M15.656 10H20a1 1 0 0 1 .78 1.63l-1.72 1.773",key:"27a7lr"}],["path",{d:"M16.273 16.273 10.88 21.83a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14H4a1 1 0 0 1-.78-1.63l4.507-4.643",key:"1e0qe9"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]),_t=de("zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]);function Vr(t,e){const n=+oo(t)-+oo(e);return n<0?-1:n>0?1:n}function bg(t,e){const n=oo(t,e==null?void 0:e.in);return+(function(o,r){const s=oo(o,r==null?void 0:r.in);return s.setHours(23,59,59,999),s})(n,e)==+(function(o,r){const s=oo(o,r==null?void 0:r.in),a=s.getMonth();return s.setFullYear(s.getFullYear(),a+1,0),s.setHours(23,59,59,999),s})(n,e)}function xg(t,e,n){const[o,r,s]=Cl(n==null?void 0:n.in,t,t,e),a=Vr(r,s),l=Math.abs((function(u,h,m){const[p,b]=Cl(m==null?void 0:m.in,u,h);return 12*(p.getFullYear()-b.getFullYear())+(p.getMonth()-b.getMonth())})(r,s));if(l<1)return 0;r.getMonth()===1&&r.getDate()>27&&r.setDate(30),r.setMonth(r.getMonth()-a*l);let c=Vr(r,s)===-a;bg(o)&&l===1&&Vr(o,s)===1&&(c=!1);const d=a*(l-+c);return d===0?0:d}function yg(t,e,n){const o=(function(r,s){return+oo(r)-+oo(s)})(t,e)/1e3;return(r=>{const s=(0,Math.trunc)(r);return s===0?0:s})(o)}function vg(t,e){return(function(n,o,r){const s=tk().locale??nk,a=Vr(n,o);if(isNaN(a))throw new RangeError("Invalid time value");const l=Object.assign({},r,{addSuffix:r==null?void 0:r.addSuffix,comparison:a}),[c,d]=Cl(r==null?void 0:r.in,...a>0?[o,n]:[n,o]),u=yg(d,c),h=(cp(d)-cp(c))/1e3,m=Math.round((u-h)/60);let p;if(m<2)return m===0?s.formatDistance("lessThanXMinutes",1,l):s.formatDistance("xMinutes",m,l);if(m<45)return s.formatDistance("xMinutes",m,l);if(m<90)return s.formatDistance("aboutXHours",1,l);if(m<dp){const b=Math.round(m/60);return s.formatDistance("aboutXHours",b,l)}if(m<2520)return s.formatDistance("xDays",1,l);if(m<Gs){const b=Math.round(m/dp);return s.formatDistance("xDays",b,l)}if(m<2*Gs)return p=Math.round(m/Gs),s.formatDistance("aboutXMonths",p,l);if(p=xg(d,c),p<12){const b=Math.round(m/Gs);return s.formatDistance("xMonths",b,l)}{const b=p%12,x=Math.trunc(p/12);return b<3?s.formatDistance("aboutXYears",x,l):b<9?s.formatDistance("overXYears",x,l):s.formatDistance("almostXYears",x+1,l)}})(t,(function(n){return ek(n,Date.now())})(t),e)}const wg=S.createContext({}),kg=S.forwardRef(function(t,e){[t,e]=sk(t,e,wg);let{toolbarProps:n}=(function(s,a){const{"aria-label":l,"aria-labelledby":c,orientation:d="horizontal"}=s;let[u,h]=S.useState(!1);ok(()=>{var f;h(!(!a.current||!(!((f=a.current.parentElement)===null||f===void 0)&&f.closest('[role="toolbar"]'))))});const{direction:m}=up(),p=m==="rtl"&&d==="horizontal";let b=rk(a);const x=S.useRef(null);return{toolbarProps:{...hp(s,{labelable:!0}),role:u?"group":"toolbar","aria-orientation":d,"aria-label":l,"aria-labelledby":l==null?c:void 0,onKeyDownCapture:u?void 0:f=>{if(f.currentTarget.contains(f.target)){if(d==="horizontal"&&f.key==="ArrowRight"||d==="vertical"&&f.key==="ArrowDown")p?b.focusPrevious():b.focusNext();else{if(!(d==="horizontal"&&f.key==="ArrowLeft"||d==="vertical"&&f.key==="ArrowUp"))return f.key==="Tab"?(f.stopPropagation(),x.current=document.activeElement,void(f.shiftKey?b.focusFirst():b.focusLast())):void 0;p?b.focusNext():b.focusPrevious()}f.stopPropagation(),f.preventDefault()}},onFocusCapture:u?void 0:f=>{var g,y;x.current&&!f.currentTarget.contains(f.relatedTarget)&&(!((g=a.current)===null||g===void 0)&&g.contains(f.target))&&((y=x.current)===null||y===void 0||y.focus(),x.current=null)},onBlurCapture:u?void 0:f=>{f.currentTarget.contains(f.relatedTarget)||x.current||(x.current=f.target)}}}})(t,e),o=ak({...t,values:{orientation:t.orientation||"horizontal"},defaultClassName:"react-aria-Toolbar"}),r=hp(t,{global:!0});return delete r.id,me.createElement("div",{...Nl(r,o,n),ref:e,slot:t.slot||void 0,"data-orientation":t.orientation||"horizontal"},o.children)}),Gr={showInput:"Mod-l",acceptEdit:"Mod-y",rejectEdit:"Mod-u"},$o=ro.define({combine:t=>qs(t,{onError:console.error,inputDebounceTime:300,keymaps:Gr},{onError:(e,n)=>e&&n,inputDebounceTime:(e,n)=>e&&n,keymaps:(e,n)=>e&&n})}),qn=tt.define(),Hn=Dt.define({create:()=>({show:!1,lineFrom:0,lineTo:0}),update(t,e){for(const n of e.effects)if(n.is(qn))return n.value;return t}}),Vo=tt.define(),Go=tt.define(),vd=Dt.define({create:()=>({shouldFocus:!1,inputValue:""}),update(t,e){let n=t;for(const o of e.effects)o.is(Vo)&&(n={...n,inputValue:o.value}),o.is(Go)&&(n={...n,shouldFocus:o.value});return n}}),qr=tt.define(),qo=Dt.define({create:()=>null,update(t,e){for(const n of e.effects)if(n.is(qr))return n.value;return t}}),uo=tt.define(),wd=Dt.define({create:()=>!1,update(t,e){for(const n of e.effects)if(n.is(uo))return n.value;return t}}),kd=t=>{const{state:e}=t,n=e.selection.main;if(n.empty)return!1;const o=e.doc,r=o.lineAt(n.from),s=o.lineAt(n.to);if(e.sliceDoc(r.from,s.to).trim().length<1)return!1;const a=Math.max(1,Math.min(r.number,o.lines)),l=Math.max(1,Math.min(s.number,o.lines));return t.dispatch({effects:[qn.of({show:!0,lineFrom:a,lineTo:l}),Go.of(!0),Vo.of("")],selection:Yt.cursor(r.from)}),!0},jd=t=>!!t.state.field(qo)&&(t.dispatch({effects:[qr.of(null),qn.of({show:!1,lineFrom:0,lineTo:0}),Go.of(!1),Vo.of(""),uo.of(!1)]}),!0),Cd=t=>{const e=t.state.field(qo);return!!e&&(t.dispatch({changes:{from:e.from,to:e.to,insert:e.oldCode},effects:[qr.of(null),qn.of({show:!1,lineFrom:0,lineTo:0}),Go.of(!1),Vo.of(""),uo.of(!1)]}),!0)},jg="\u2318",Cg="\u229E Win",Ng="Ctrl";function Ua(t){return t.replace("Mod",navigator.platform.startsWith("Mac")?jg:navigator.platform.startsWith("Win")?Cg:Ng).replace("-"," ").toUpperCase()}function bt(t,e){const n=document.createElement(t);return n.className=e,n}const Hr=Dt.define({create:()=>({suggestion:null}),update(t,e){const n=e.effects.find(o=>o.is(Jr));return e.docChanged||n||e.selection?n&&e.state.doc===n.value.doc?{suggestion:n.value.text}:{suggestion:null}:t}}),Jr=tt.define();class Sg extends So{constructor(n){super();B(this,"suggestion");this.suggestion=n}toDOM(){const n=document.createElement("span");return n.style.opacity="0.4",n.className="cm-inline-suggestion",n.textContent=this.suggestion,n.setAttribute("role","suggestion"),n.setAttribute("aria-label",`Suggestion: ${this.suggestion}`),n}get lineBreaks(){return this.suggestion.split(`
|
|
3
3
|
`).length-1}}class Eg{constructor(e){B(this,"cache",new Map);B(this,"timeout");this.timeout=e}get(e){const n=this.cache.get(e);return n?Date.now()-n.timestamp>this.timeout?(this.cache.delete(e),null):n.result:null}set(e,n){this.cache.set(e,{result:n,timestamp:Date.now()})}}const _g=(t,e)=>Wt.fromClass(class{constructor(){B(this,"abortController",null);B(this,"cache");this.cache=new Eg(e.cacheTimeout??1e3)}async update(n){var a,l,c,d,u;if(!n.docChanged||((l=(a=e.events)==null?void 0:a.beforeSuggestionFetch)==null?void 0:l.call(a,n.view))===!1)return;(c=this.abortController)==null||c.abort(),this.abortController=new AbortController;const o=n.state.doc,r=o.toString(),s=this.cache.get(r);if(s)n.view.dispatch({effects:Jr.of({text:s,doc:o})});else try{const h=await t(n.state,this.abortController.signal,n.view);if(this.abortController.signal.aborted||((u=(d=e.events)==null?void 0:d.shouldShowSuggestion)==null?void 0:u.call(d,n.view,h))===!1)return;this.cache.set(r,h),n.view.dispatch({effects:Jr.of({text:h,doc:o})})}catch(h){h instanceof Error&&h.name!=="AbortError"&&console.error("Suggestion fetch error:",h)}}destroy(){var n;(n=this.abortController)==null||n.abort()}}),Ig=Wt.fromClass(class{constructor(){B(this,"decorations");this.decorations=Te.none}update(t){var n;const e=(n=t.state.field(Hr))==null?void 0:n.suggestion;this.decorations=e?(function(o,r){const s=o.state.selection.main.head,a=[],l=Te.widget({widget:new Sg(r),side:1});return a.push(l.range(s)),Te.set(a)})(t.view,e):Te.none}},{decorations:t=>t.decorations}),Nd=t=>{var o,r,s;const e=(o=t.state.field(Hr))==null?void 0:o.suggestion;if(!e)return!1;const n=t.state.facet(Wa);return t.dispatch({effects:Jr.of({text:null,doc:t.state.doc})}),(s=(r=n.events)==null?void 0:r.onSuggestionRejected)==null||s.call(r,t,e),!0},Ag=$t.of([{key:"Tab",run:t=>{var l,c,d;const e=(l=t.state.field(Hr))==null?void 0:l.suggestion;if(!e)return!1;const n=t.state.facet(Wa);var o,r,s,a;return t.dispatch({...(o=t.state,r=e,s=t.state.selection.main.head,a=t.state.selection.main.head,{...o.changeByRange(u=>{if(u===o.selection.main)return{changes:{from:s,to:a,insert:r},range:Yt.cursor(s+r.length)};const h=a-s;return!u.empty||h&&o.sliceDoc(u.from-h,u.from)!==o.sliceDoc(s,a)?{range:u}:{changes:{from:u.from-h,to:u.from,insert:r},range:Yt.cursor(u.from-h+r.length)}}),userEvent:"input.complete"})}),(d=(c=n.events)==null?void 0:c.onSuggestionAccepted)==null||d.call(c,t,e),!0}},{key:"Escape",run:Nd}]),Wa=ro.define({combine:t=>t.at(-1)});function Sd(t){const{delay:e=500,includeKeymap:n=!0}=t,o=(function(r,s,a){let l=()=>{};return(...c)=>(l(),new Promise((d,u)=>{const h=setTimeout(()=>d(r(...c)),s);l=()=>{clearTimeout(h),a!==void 0&&u(a)}}))})(t.fetchFn,e);return[Hr,Wa.of(t),_g(o,t),Ig,n?Ag:[]]}const Tg=Se.baseTheme({".cm-ai-input-container":{display:"flex",flexDirection:"column",gap:"4px",width:"min(calc(100% + 7px), 500px)",padding:"5px 5px",margin:"0 -6px",backgroundColor:"light-dark(rgb(241, 243, 245), rgb(40, 40, 40))"},".cm-ai-input":{display:"block",width:"100%",padding:"3px 8px",border:"2px solid rgb(51, 154, 240)",borderRadius:"5px",fontSize:"12px"},".cm-ai-help-info-button":{fontSize:"10px",paddingLeft:"10px",height:"18px",color:"light-dark(rgb(109, 117, 125), rgb(170, 170, 170))",display:"block",marginRight:"auto"},".cm-ai-help-info-button:hover":{color:"light-dark(rgb(89, 97, 105), rgb(190, 190, 190))"},".cm-ai-generate-button":{background:"#0E639C",border:"none",padding:"2px 6px",color:"#ffffff",cursor:"pointer",font:"inherit",borderRadius:"4px","&:hover":{backgroundColor:"#1177bb"}},".cm-line.cm-ai-selection, .cm-line.cm-ai-selection.cm-active-line":{backgroundColor:"light-dark(color-mix(in srgb, rgb(223, 227, 232) 50%, transparent), color-mix(in srgb, rgb(50, 50, 50) 50%, transparent)) !important"},".cm-line:has(.cm-new-code-line)":{backgroundColor:"light-dark(color-mix(in srgb, rgb(183, 235, 143) 50%, transparent), color-mix(in srgb, rgb(40, 100, 40) 50%, transparent)) !important"},".cm-old-code-container":{backgroundColor:"light-dark(rgb(255, 205, 205), rgb(100, 40, 40))",position:"relative",display:"flex",paddingTop:"0",width:"100%",alignItems:"center"},".cm-code-button":{position:"absolute",right:"5px",top:"50%",transform:"translateY(-50%)",background:"none",border:"none",cursor:"pointer",fontSize:"16px"},".cm-floating-buttons":{fontFamily:"sans-serif",position:"absolute",top:"-20px",left:"5px",display:"flex"},".cm-floating-button":{fontFamily:"sans-serif",padding:"2px 5px",fontSize:"10px",cursor:"pointer",fontWeight:"700"},".cm-floating-accept":{backgroundColor:"light-dark(rgb(55, 125, 34), rgb(40, 80, 25))",borderTopLeftRadius:"5px",borderBottomLeftRadius:"5px",color:"white",filter:"brightness(90%)","&:hover":{filter:"brightness(100%)"}},".cm-floating-reject":{backgroundColor:"light-dark(rgb(220, 53, 69), rgb(180, 40, 50))",color:"white",borderTopRightRadius:"5px",borderBottomRightRadius:"5px",filter:"brightness(90%)","&:hover":{filter:"brightness(100%)"}},".hotkey":{display:"inline-block",padding:"0 4px",borderRadius:"3px",backgroundColor:"rgba(255, 255, 255, 0.1)",fontSize:"90%"},".cm-ai-loading-indicator":{fontStyle:"italic",fontSize:"10px",paddingLeft:"12px",color:"light-dark(rgb(109, 117, 125), rgb(170, 170, 170))",opacity:"0",transition:"opacity 0.3s ease-in-out","&::after":{content:'""',display:"inline-block",animation:"ellipsis-pulse 1.5s steps(4, end) infinite"},"&:not(:empty)":{opacity:"1"}},".cm-ai-input:disabled":{opacity:"0.5"},"@keyframes ellipsis-pulse":{"0%":{content:"'.'"},"25%":{content:"'..'"},"50%":{content:"'...'"},"75%":{content:"''"}},".cm-ai-loading-container":{display:"flex",alignItems:"center",padding:"0 8px"},".cm-ai-cancel-button":{padding:"2px 8px",fontSize:"10px",borderRadius:"4px",color:"light-dark(rgb(109, 117, 125), rgb(170, 170, 170))",cursor:"pointer","&:hover":{background:"light-dark(rgb(223, 227, 232), rgb(50, 50, 50))"}},".hidden":{display:"none"}});function Dg(t){var r,s;const e=t.state.facet($o),n={...Gr,...e.keymaps},o=bt("div","cm-ai-tooltip").appendChild(bt("div","cm-ai-tooltip-button"));return o.innerHTML=`<span>Edit <span class="hotkey">${Ua(n.showInput)}</span></span>`,(r=o.querySelector("span"))==null||r.addEventListener("mousedown",a=>{a.stopPropagation(),a.button===0&&a.preventDefault()}),(s=o.querySelector("span"))==null||s.addEventListener("click",a=>{a.preventDefault(),kd(t)}),o}const $a=ro.define({combine:t=>qs(t,{render:Dg,hideOnBlur:!1})}),Mg=Wt.fromClass((sp=class{constructor(t){B(this,"view");B(this,"suppress");B(this,"dom");B(this,"mousedown",()=>{this.suppress=!0});B(this,"mouseup",()=>{this.suppress=!1,this.display(this.view)});B(this,"scroll",()=>{this.display(this.view)});B(this,"windowScroll",()=>{this.display(this.view)});lp(this,$s,t=>{var n;const e=t.state.selection.ranges.find(o=>!o.empty);if(e&&!this.suppress){const o=t.coordsAtPos(e.from);if(!o)return;const r=t.dom.getBoundingClientRect(),s=(n=t.dom.parentElement)==null?void 0:n.getBoundingClientRect(),a=o.top>=r.top&&o.top<=r.bottom&&o.left>=r.left&&o.left<=r.right,l=!s||o.top>=s.top&&o.top<=s.bottom&&o.left>=s.left&&o.left<=s.right;if(!a||!l)return this.dom.style.display="none",void this.dom.setAttribute("aria-hidden","true");this.dom.style.display="flex",this.dom.setAttribute("aria-hidden","false");const c=this.dom.getBoundingClientRect(),d=r.width-c.width,u=Math.min(o.left,d);let h=o.top-c.height;h=s?Math.max(s.y,h):h,this.dom.style.left=`${u}px`,this.dom.style.top=`${h}px`,requestAnimationFrame(()=>{this.dom&&this.dom.setAttribute("aria-hidden","false")})}else this.dom.style.display="none",this.dom.setAttribute("aria-hidden","true")});this.view=t;const e=t.state.facet($a);this.suppress=!1,document.addEventListener("mousedown",this.mousedown),document.addEventListener("mouseup",this.mouseup),t.scrollDOM.addEventListener("scroll",this.scroll),window.addEventListener("scroll",this.windowScroll,!0);const n=e.render(t);t.dom.appendChild(n),this.dom=n}update(t){this.display(t.view)}docViewUpdate(t){this.display(t)}display(t){if(t.state.field(Hn).show)return void(this.dom.style.display="none");if(t.state.facet($a).hideOnBlur&&!t.hasFocus)return this.dom.style.display="none",void this.dom.setAttribute("aria-hidden","true");t.requestMeasure({read:ip(this,$s)})}destroy(){document.removeEventListener("mousedown",this.mousedown),document.removeEventListener("mouseup",this.mouseup),this.view.scrollDOM.removeEventListener("scroll",this.scroll),window.removeEventListener("scroll",this.windowScroll,!0),this.dom.remove()}},$s=new WeakMap,sp)),Og=Se.baseTheme({".cm-ai-tooltip-button":{userSelect:"none",fontFamily:"system-ui, -apple-system, sans-serif",position:"fixed",display:"flex",boxSizing:"border-box",padding:"2px 6px",borderRadius:"4px",fontSize:"12px",backgroundColor:"#0E639C",color:"#ffffff",border:"1px solid transparent",boxShadow:"0 2px 4px rgba(0,0,0,0.1)",zIndex:"999",transition:"opacity 0.5s","&[aria-hidden='true']":{opacity:"0"},"&[aria-hidden='false']":{opacity:"1"},"& > span":{pointerEvents:"auto",cursor:"pointer",display:"inline-block",padding:"2px"},"&:hover":{backgroundColor:"#1177bb"}}});class Rg extends So{constructor(n){super();B(this,"oldCode");this.oldCode=n}toDOM(n){const o=bt("div","cm-old-code-container");o.setAttribute("role","region"),o.setAttribute("aria-label","Previous code version");const r=bt("div","cm-old-code cm-line");r.textContent=this.oldCode;const s=bt("div","cm-floating-buttons"),a=n.state.facet($o),l={...Gr,...a.keymaps},c=bt("button","cm-floating-button cm-floating-accept");c.innerHTML=`<span class="hotkey">${Ua(l.acceptEdit)}</span> Accept`,c.setAttribute("aria-label","Accept changes"),c.addEventListener("click",u=>{u.preventDefault(),u.stopPropagation(),n.focus(),jd(n)});const d=bt("button","cm-floating-button cm-floating-reject");return d.innerHTML=`<span class="hotkey">${Ua(l.rejectEdit)}</span> Reject`,d.setAttribute("aria-label","Reject changes"),d.addEventListener("click",u=>{u.preventDefault(),u.stopPropagation(),n.focus(),Cd(n)}),s.append(c,d),o.append(r,s),o}updateDOM(n,o){return!0}}class Lg extends So{constructor(n){super();B(this,"complete");B(this,"abortController",null);B(this,"dom",null);B(this,"input",null);B(this,"loadingContainer",null);B(this,"helpInfo",null);B(this,"inputContainer",null);B(this,"form",null);B(this,"view",null);B(this,"onKeyDown",async n=>{n.key!=="Enter"||n.shiftKey?n.key==="Escape"&&this.onCancel():(n.preventDefault(),await this.handleSubmit())});B(this,"onCancel",()=>{this.cleanup();const n=this.view;n&&(n.dispatch({effects:[qn.of({show:!1,lineFrom:0,lineTo:0}),uo.of(!1)]}),n.focus())});B(this,"handleSubmit",async n=>{var x;const o=this.view;if(!o)return;const r=o.state.facet($o);n==null||n.stopPropagation();const s=o.state.field(Hn),{input:a}=this;if(!a)return;const l=a.value.trim();if(!s.show||!l)return;const c=o.state.doc.line(s.lineFrom),d=o.state.doc.line(s.lineTo),u=c.from,h=d.to,m=o.state.sliceDoc(u,h),p=o.state.sliceDoc(0,u),b=o.state.sliceDoc(h);this.abortController=new AbortController,o.dispatch({effects:uo.of(!0)}),this.toggleLoading(!0);try{const f=await this.complete({prompt:l,selection:m,codeBefore:p,codeAfter:b,editorView:o,signal:this.abortController.signal});if(!o.state.field(Hn).show)return;if(!f||typeof f!="string")throw new Error("Invalid completion result");o.dispatch({changes:{from:u,to:h,insert:f},effects:[qn.of({show:!1,lineFrom:0,lineTo:0}),qr.of({from:u,to:u+f.length,oldCode:m,newCode:f}),uo.of(!1)]})}catch(f){if(f instanceof DOMException&&f.name==="AbortError")return;(x=r.onError)==null||x.call(r,f)}finally{this.cleanup(),this.toggleLoading(!1),o.focus()}});this.complete=n}toDOM(n){if(this.dom)return this.dom;this.view=n;const o=n.state.field(vd),r=n.state.field(wd),s=bt("div","cm-ai-input-container");this.inputContainer=s,this.dom=s;const a=bt("form","cm-ai-input-form");this.form=a,a.setAttribute("role","search"),a.setAttribute("aria-label","AI editing instructions"),a.addEventListener("submit",f=>f.preventDefault());const l=bt("input","cm-ai-input");this.input=l,a.append(l),l.placeholder="Editing instructions...",l.setAttribute("aria-label","AI editing instructions"),l.setAttribute("autocomplete","off"),l.setAttribute("spellcheck","true"),l.value=o.inputValue;const c=bt("div","cm-ai-loading-container");this.loadingContainer=c;const d=bt("div","cm-ai-loading-indicator");d.setAttribute("role","status"),d.setAttribute("aria-live","polite"),d.textContent="Generating";const u=bt("button","cm-ai-cancel-button");u.textContent="Cancel",u.setAttribute("aria-label","Cancel code generation"),u.addEventListener("click",this.onCancel),c.append(u,d);const h=bt("div","cm-ai-help-info");this.helpInfo=h;const m=h.appendChild(document.createElement("button"));m.className="cm-ai-help-info-button",m.textContent="Esc to close",m.addEventListener("click",this.onCancel);const p=bt("button","cm-ai-generate-button");function b(f){h.replaceChildren(f?p:m)}p.textContent="\u23CE Generate",p.setAttribute("aria-label","Generate code"),p.addEventListener("click",this.handleSubmit),this.toggleLoading(r),o.shouldFocus&&requestAnimationFrame(()=>{l.value=o.inputValue,l.focus(),n.dispatch({effects:Go.of(!1)})}),b(l.value),l.addEventListener("input",function(){n.dispatch({effects:Vo.of(l.value)});const f=l.value.trim();f!==x&&(x=f,b(f))}),l.addEventListener("keydown",this.onKeyDown);let x="";return s}toggleLoading(n){var o;this.inputContainer&&this.form&&this.loadingContainer&&this.helpInfo&&((o=this.inputContainer)==null||o.replaceChildren(this.form,n?this.loadingContainer:this.helpInfo))}updateDOM(n,o){return this.dom=n,this.input=n.querySelector(".cm-ai-input"),!0}cleanup(){var n,o,r;(n=this.abortController)==null||n.abort(),this.abortController=null,(o=this.dom)==null||o.remove(),(r=this.input)==null||r.remove(),this.dom=null,this.input=null}destroy(){this.cleanup()}}function Fg(t){if(!t.prompt)throw new Error("prompt function is required");const e={...Gr,...t.keymaps};return[$o.of(t),Hn,vd,qo,wd,[Mg,Og],Tg,$t.of([{key:e.showInput,run:kd}]),Sn.highest([$t.of([{key:e.acceptEdit,run:jd},{key:e.rejectEdit,run:Cd}])]),Bg,Pg,zg,Ug]}const Bg=Se.updateListener.of(t=>{const e=t.state.field(Hn);if(!e.show||!t.docChanged)return;let{lineFrom:n,lineTo:o}=e,r=!1;t.changes.iterChanges((s,a,l,c)=>{const d=t.state.doc.lineAt(s).number;if(d<n){const u=t.state.doc.lineAt(c).number-t.state.doc.lineAt(l).number;n+=u,o+=u,r=!0}else if(d<=o){const u=t.state.doc.lineAt(c).number-t.state.doc.lineAt(l).number;o+=u,r=!0}}),r&&t.view.dispatch({effects:[qn.of({show:!0,lineFrom:n,lineTo:o})]})}),Pg=Se.decorations.of(t=>{const e=t.state.field(qo);return e?Te.set([Te.mark({class:"cm-new-code-line"}).range(e.from,e.to)]):Te.none}),zg=Se.decorations.compute([Hn],t=>{const e=t.field(Hn),n=t.facet($o),o=[];if(e.show){const r=e.lineFrom,s=e.lineTo;for(let a=r;a<=s;a++){const l=t.doc.line(a).from;o.push(Te.line({class:"cm-ai-selection"}).range(l)),a===r&&o.push(Te.widget({widget:new Lg(n.prompt),side:-1}).range(l))}}return Te.set(o)}),Ug=Dt.define({create:t=>Te.none,update(t,e){const n=e.state.field(qo);return n?Te.set([Te.widget({widget:new Rg(n.oldCode),block:!0}).range(n.from)]):Te.none},provide:t=>Se.decorations.from(t)}),Kr="https://static.marimo.app",Wg=t=>{const e=P.c(25),{onClose:n}=t,[o,r]=S.useState(""),{exportAsHTML:s}=qe(),a=`${o}-${Math.random().toString(36).slice(2,6)}`,l=`${Kr}/static/${a}`;let c,d,u,h,m,p,b,x,f,g,y;return e[0]!==s||e[1]!==n||e[2]!==a?(c=async w=>{w.preventDefault(),n();const j=await s({download:!1,includeCode:!0,files:X1.INSTANCE.filenames()}),C=ze({title:"Uploading static notebook...",description:"Please wait."});await fetch(`${Kr}/api/static`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({html:j,path:a})}).catch(()=>{C.dismiss(),ze({title:"Error uploading static page",description:i.jsxs("div",{children:["Please try again later. If the problem persists, please file a bug report on"," ",i.jsx("a",{href:Xt.issuesPage,target:"_blank",className:"underline",children:"GitHub"}),"."]})})}),C.dismiss(),ze({title:"Static page uploaded!",description:i.jsxs("div",{children:["The URL has been copied to your clipboard.",i.jsx("br",{}),"You can share it with anyone."]})})},e[0]=s,e[1]=n,e[2]=a,e[3]=c):c=e[3],e[4]===Symbol.for("react.memo_cache_sentinel")?(d=i.jsx(so,{children:"Share static notebook"}),e[4]=d):d=e[4],e[5]===Symbol.for("react.memo_cache_sentinel")?(u=i.jsxs(yr,{children:[d,i.jsxs(vr,{children:["You can publish a static, non-interactive version of this notebook to the public web. We will create a link for you that lives on"," ",i.jsx("a",{href:Kr,target:"_blank",children:Kr}),"."]})]}),e[5]=u):u=e[5],e[6]===Symbol.for("react.memo_cache_sentinel")?(h=w=>{const j=w.target.value.toLowerCase().replaceAll(/\s/g,"-").replaceAll(/[^\da-z-]/g,"");r(j)},e[6]=h):h=e[6],e[7]!==o?(m=i.jsx(ao,{"data-testid":"slug-input",id:"slug",autoFocus:!0,value:o,placeholder:"Notebook slug",onChange:h,required:!0,autoComplete:"off"}),e[7]=o,e[8]=m):m=e[8],e[9]!==l?(p=i.jsxs("div",{className:"font-semibold text-sm text-muted-foreground gap-2 flex flex-col",children:["Anyone will be able to access your notebook at this URL:",i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx($g,{text:l}),i.jsx("span",{className:"text-primary",children:l})]})]}),e[9]=l,e[10]=p):p=e[10],e[11]!==m||e[12]!==p?(b=i.jsxs("div",{className:"flex flex-col gap-6 py-4",children:[m,p]}),e[11]=m,e[12]=p,e[13]=b):b=e[13],e[14]!==n?(x=i.jsx(ye,{"data-testid":"cancel-share-static-notebook-button",variant:"secondary",onClick:n,children:"Cancel"}),e[14]=n,e[15]=x):x=e[15],e[16]!==l?(f=i.jsx(ye,{"data-testid":"share-static-notebook-button","aria-label":"Save",variant:"default",type:"submit",onClick:async()=>{await Eo(l)},children:"Create"}),e[16]=l,e[17]=f):f=e[17],e[18]!==x||e[19]!==f?(g=i.jsxs(Hs,{children:[x,f]}),e[18]=x,e[19]=f,e[20]=g):g=e[20],e[21]!==c||e[22]!==g||e[23]!==b?(y=i.jsx(io,{className:"w-fit",children:i.jsxs("form",{onSubmit:c,children:[u,b,g]})}),e[21]=c,e[22]=g,e[23]=b,e[24]=y):y=e[24],y},$g=t=>{const e=P.c(8),[n,o]=me.useState(!1);let r;e[0]!==t.text?(r=Fn.stopPropagation(async d=>{d.preventDefault(),await Eo(t.text),o(!0),setTimeout(()=>o(!1),2e3)}),e[0]=t.text,e[1]=r):r=e[1];const s=r;let a,l,c;return e[2]===Symbol.for("react.memo_cache_sentinel")?(a=i.jsx(mp,{size:14,strokeWidth:1.5}),e[2]=a):a=e[2],e[3]!==s?(l=i.jsx(ye,{"data-testid":"copy-static-notebook-url-button",onClick:s,size:"xs",variant:"secondary",children:a}),e[3]=s,e[4]=l):l=e[4],e[5]!==n||e[6]!==l?(c=i.jsx(pe,{content:"Copied!",open:n,children:l}),e[5]=n,e[6]=l,e[7]=c):c=e[7],c};function Ed(){const t=P.c(2),e=Ct(Sl);let n;return t[0]!==e?(n=()=>{const o=document.getElementsByClassName("output-area"),r=window.innerHeight||document.documentElement.clientHeight;let s=null;for(const a of Array.from(o)){const l=a.getBoundingClientRect();if(l.top>=0&&l.top<=r||l.bottom>=0&&l.bottom<=r){s=Js.parse(a.parentNode.id);break}}e(a=>({mode:ik(a.mode),cellAnchor:s})),requestAnimationFrame(()=>{var a;s!==null&&((a=document.getElementById(Js.create(s)))==null||a.scrollIntoView())})},t[0]=e,t[1]=n):n=t[1],n}function Va(t){const e=P.c(3),n=Ho();let o;return e[0]!==t||e[1]!==n?(o=()=>{t!==void 0&&n([t])},e[0]=t,e[1]=n,e[2]=o):o=e[2],Ce(o)}function _d(){const t=P.c(2),e=Ho();let n;return t[0]!==e?(n=()=>e(fp(Mt())),t[0]=e,t[1]=n):n=t[1],Ce(n)}function Ho(){const t=P.c(3),{prepareForRun:e}=Ye(),{sendRun:n}=qe();let o;return t[0]!==e||t[1]!==n?(o=async r=>{var c,d;if(r.length===0)return;const{cellHandles:s,cellData:a}=Mt(),l=[];for(const u of r){const h=s[u],m=(c=h==null?void 0:h.current)==null?void 0:c.editorView;let p;m?(pp(m)!=="markdown"&&El(m),p=gp(m)):p=((d=a[u])==null?void 0:d.code)||"",l.push(p),e({cellId:u})}await n({cellIds:r,codes:l}).catch(Vg)},t[0]=e,t[1]=n,t[2]=o):o=t[2],Ce(o)}function Vg(t){He.error(t)}let Yr;Yr=[{type:"files",Icon:Yc,tooltip:"View files",position:"sidebar"},{type:"variables",Icon:bp,tooltip:"Explore variables",position:"sidebar"},{type:"datasources",Icon:_o,tooltip:"Explore data sources",position:"sidebar"},{type:"dependencies",Icon:Ic,tooltip:"Explore dependencies",position:"sidebar"},{type:"packages",Icon:ja,tooltip:"Manage packages",position:"sidebar"},{type:"outline",Icon:Dc,tooltip:"View outline",position:"sidebar"},{type:"chat",Icon:ck,tooltip:"Chat with AI",position:"sidebar"},{type:"agents",Icon:Zc,tooltip:"Agents",position:"sidebar",hidden:!Ys("external_agents")},{type:"documentation",Icon:Mc,tooltip:"View live docs",position:"sidebar"},{type:"logs",Icon:xp,tooltip:"Notebook logs",position:"sidebar"},{type:"tracing",Icon:Zj,tooltip:"Tracing",position:"sidebar"},{type:"snippets",Icon:fd,tooltip:"Snippets",position:"sidebar"},{type:"secrets",Icon:td,tooltip:"Secrets",hidden:Qt(),position:"sidebar"},{type:"scratchpad",Icon:dk,tooltip:"Scratchpad",position:"sidebar"},{type:"errors",Icon:Ks,tooltip:"View errors",position:"footer"}],_a=Bt(!1);function Jn(){return Me().optional().describe(fe.of({label:"Password",inputType:"password",placeholder:"password",optionRegex:".*password.*"}))}function Id(){return Me().optional().describe(fe.of({label:"Token",inputType:"password",placeholder:"token",optionRegex:".*token.*"}))}function Xr(){return Me().optional().describe(fe.of({label:"Warehouse Name",placeholder:"warehouse",optionRegex:".*warehouse.*"}))}function Ad(){return Me().optional().describe(fe.of({label:"URI",optionRegex:".*uri.*"}))}function Kn(){return Me().nonempty().describe(fe.of({label:"Host",placeholder:"localhost",optionRegex:".*host.*"}))}function nn(){return Me().describe(fe.of({label:"Database",placeholder:"db name",optionRegex:".*database.*"}))}function Yn(){return Me().nonempty().describe(fe.of({label:"Username",placeholder:"username",optionRegex:".*username.*"}))}function Xn(t){const e=uk.string().describe(fe.of({label:"Port",inputType:"number",placeholder:t==null?void 0:t.toString()})).transform(Number).refine(n=>n>=0&&n<=65535,{message:"Port must be between 0 and 65535"});return t!==void 0?e.default(t.toString()):e}function Td(){return Io().default(!1).describe(fe.of({label:"Read Only"}))}const Dd=Be({type:$e("postgres"),host:Kn(),port:Xn(5432).optional(),database:nn(),username:Yn(),password:Jn(),ssl:Io().default(!1).describe(fe.of({label:"Use SSL"}))}).describe(fe.of({direction:"two-columns"})),Md=Be({type:$e("mysql"),host:Kn(),port:Xn(3306),database:nn(),username:Yn(),password:Jn(),ssl:Io().default(!1).describe(fe.of({label:"Use SSL"}))}).describe(fe.of({direction:"two-columns"})),Od=Be({type:$e("sqlite"),database:nn().describe(fe.of({label:"Database Path"}))}).describe(fe.of({direction:"two-columns"})),Rd=Be({type:$e("duckdb"),database:nn().describe(fe.of({label:"Database Path"})),read_only:Td()}).describe(fe.of({direction:"two-columns"})),Ld=Be({type:$e("motherduck"),database:nn().default("my_db").describe(fe.of({label:"Database Name"})),token:Id()}).describe(fe.of({direction:"two-columns"})),Fd=Be({type:$e("snowflake"),account:Me().nonempty().describe(fe.of({label:"Account",optionRegex:".*snowflake.*"})),warehouse:Me().optional().describe(fe.of({label:"Warehouse",optionRegex:".*snowflake.*"})),database:nn(),schema:Me().optional().describe(fe.of({label:"Schema",optionRegex:".*snowflake.*"})),username:Yn(),password:Jn(),role:Me().optional().describe(fe.of({label:"Role"}))}).describe(fe.of({direction:"two-columns"})),Bd=Be({type:$e("bigquery"),project:Me().nonempty().describe(fe.of({label:"Project ID",optionRegex:".*bigquery.*"})),dataset:Me().nonempty().describe(fe.of({label:"Dataset",optionRegex:".*bigquery.*"})),credentials_json:Me().describe(fe.of({label:"Credentials JSON",inputType:"textarea"}))}).describe(fe.of({direction:"two-columns"})),Pd=Be({type:$e("clickhouse_connect"),host:Kn(),port:Xn(8123).optional(),username:Yn(),password:Jn(),secure:Io().default(!1).describe(fe.of({label:"Use HTTPs"}))}).describe(fe.of({direction:"two-columns"})),zd=Be({type:$e("timeplus"),host:Kn().default("localhost"),port:Xn(8123).optional(),username:Yn().default("default"),password:Jn().default("")}).describe(fe.of({direction:"two-columns"})),Ud=Be({type:$e("chdb"),database:nn().describe(fe.of({label:"Database Path"})),read_only:Td()}).describe(fe.of({direction:"two-columns"})),Wd=Be({type:$e("trino"),host:Kn(),port:Xn(8080),database:nn(),schema:Me().describe(fe.of({label:"Schema",placeholder:"schema name",optionRegex:".*schema.*"})).optional(),username:Yn(),password:Jn(),async_support:Io().default(!1).describe(fe.of({label:"Async Support"}))}).describe(fe.of({direction:"two-columns"})),$d=Be({type:$e("iceberg"),name:Me().describe(fe.of({label:"Catalog Name"})),catalog:_l("type",[Be({type:$e("REST"),warehouse:Xr(),uri:Me().optional().describe(fe.of({label:"URI",placeholder:"https://",optionRegex:".*uri.*"})),token:Id()}),Be({type:$e("SQL"),warehouse:Xr(),uri:Me().optional().describe(fe.of({label:"URI",placeholder:"jdbc:iceberg://host:port/database",optionRegex:".*uri.*"}))}),Be({type:$e("Hive"),warehouse:Xr(),uri:Ad()}),Be({type:$e("Glue"),warehouse:Xr(),uri:Ad()}),Be({type:$e("DynamoDB"),"dynamodb.profile-name":Me().optional().describe(fe.of({label:"Profile Name"})),"dynamodb.region":Me().optional().describe(fe.of({label:"Region"})),"dynamodb.access-key-id":Me().optional().describe(fe.of({label:"Access Key ID"})),"dynamodb.secret-access-key":Me().optional().describe(fe.of({label:"Secret Access Key",inputType:"password"})),"dynamodb.session-token":Me().optional().describe(fe.of({label:"Session Token",inputType:"password"}))})]).default({type:"REST"}).describe(fe.of({special:"tabs"}))}),Vd=Be({type:$e("datafusion"),sessionContext:Io().optional().describe(fe.of({label:"Use Session Context"}))}),Gd=Be({type:$e("pyspark"),host:Kn().optional(),port:Xn().optional()}),qd=Be({type:$e("redshift"),host:Kn(),port:Xn(5439),connectionType:_l("type",[Be({type:$e("IAM credentials"),region:Me().describe(fe.of({label:"Region"})),aws_access_key_id:Me().nonempty().describe(fe.of({label:"AWS Access Key ID",inputType:"password",optionRegex:".*aws_access_key_id.*"})),aws_secret_access_key:Me().nonempty().describe(fe.of({label:"AWS Secret Access Key",inputType:"password",optionRegex:".*aws_secret_access_key.*"})),aws_session_token:Me().optional().describe(fe.of({label:"AWS Session Token",inputType:"password",optionRegex:".*aws_session_token.*"}))}),Be({type:$e("DB credentials"),user:Yn(),password:Jn()})]).default({type:"IAM credentials",aws_access_key_id:"",aws_secret_access_key:"",region:""}),database:nn()}).describe(fe.of({direction:"two-columns"})),Gg=_l("type",[Dd,Md,Od,Rd,Ld,Fd,Bd,Pd,zd,Ud,Wd,$d,Vd,Gd,qd]),Ga="env:";function Qr(t){return typeof t=="string"&&t.startsWith(Ga)}function qa(t){return`${Ga}${t}`}const Hd={sqlmodel:"SQLModel",sqlalchemy:"SQLAlchemy",duckdb:"DuckDB",clickhouse_connect:"ClickHouse Connect",chdb:"chDB",pyiceberg:"PyIceberg",ibis:"Ibis",motherduck:"MotherDuck",redshift:"Redshift"};class xt{constructor(e,n,o){this.connection=void 0,this.orm=void 0,this.secrets=void 0,this.connection=e,this.orm=n,this.secrets=o}get imports(){const e=new Set(this.generateImports());switch(this.orm){case"sqlalchemy":e.add("import sqlalchemy");break;case"sqlmodel":e.add("import sqlmodel");break;case"duckdb":e.add("import duckdb")}return e}}class qg{constructor(){this.secrets={}}get imports(){return Object.keys(this.secrets).length===0?new Set:new Set(["import os"])}print(e,n,o){if(e=`_${e}`,Qr(n)){const r=n.replace(Ga,""),s=o?`os.environ.get("${r}", "${o}")`:`os.environ.get("${r}")`;return this.secrets[e]=s,e}if(o!=null){const r=`os.environ.get("${n}", "${o}")`;return this.secrets[e]=r,e}return typeof n=="number"||typeof n=="number"?`${n}`:typeof n=="boolean"?ho(n):n?`"${n}"`:""}printInFString(e,n,o){if(n===void 0)return"";if(typeof n=="number")return`${n}`;if(typeof n=="boolean")return ho(n);const r=this.print(e,n,o);return r.startsWith('"')&&r.endsWith('"')?r.slice(1,-1):`{${r}}`}printPassword(e,n,o){const r=o?this.printInFString.bind(this):this.print.bind(this);return Qr(e)?r("password",e):r("password",n,e)}getSecrets(){return this.secrets}formatSecrets(){return Object.keys(this.secrets).length===0?"":Object.entries(this.secrets).map(([e,n])=>`${e} = ${n}`).join(`
|
|
4
4
|
`)}}class Hg extends xt{generateImports(){return[]}generateConnectionCode(){const e=this.connection.ssl?", connect_args={'sslmode': 'require'}":"",n=this.secrets.printPassword(this.connection.password,"POSTGRES_PASSWORD",!0),o=this.secrets.printInFString("username",this.connection.username),r=this.secrets.printInFString("host",this.connection.host),s=this.secrets.printInFString("port",this.connection.port),a=this.secrets.printInFString("database",this.connection.database);return Ve(`
|
|
5
5
|
DATABASE_URL = f"postgresql://${o}:${n}@${r}:${s}/${a}"
|
|
@@ -126,4 +126,4 @@ ${p.codeAfter}
|
|
|
126
126
|
hover/column:bg-[var(--slate-3)] dark:hover/column:bg-[var(--slate-5)]
|
|
127
127
|
hover/column:hover:bg-primary/60 dark:hover/column:hover:bg-primary/60`})}const Ev=t=>{const e=P.c(10),{width:n}=t,{banners:o}=jC(),{removeBanner:r}=CC();if(o.length===0)return null;const s=n==="columns"&&"sticky left-12 w-full max-w-[80vw]";let a,l,c;if(e[0]!==s?(a=ue("flex flex-col gap-4 mb-5 print:hidden",s),e[0]=s,e[1]=a):a=e[1],e[2]!==o||e[3]!==r){let d;e[5]!==r?(d=u=>i.jsxs(Lo,{kind:u.variant||"info",className:"flex flex-col rounded p-3",children:[i.jsxs("div",{className:"flex justify-between",children:[i.jsxs("span",{className:"font-bold text-lg flex items-center mb-2",children:[i.jsx(U1,{className:"w-5 h-5 inline-block mr-2"}),u.title]}),i.jsx(ye,{"data-testid":"remove-banner-button",variant:"text",size:"icon",onClick:()=>r(u.id),children:i.jsx(Vt,{className:"w-5 h-5"})})]}),i.jsxs("div",{className:"flex justify-between items-end",children:[i.jsx("span",{children:Ij({html:u.description})}),u.action==="restart"&&i.jsx(_v,{})]})]},u.id),e[5]=r,e[6]=d):d=e[6],l=o.map(d),e[2]=o,e[3]=r,e[4]=l}else l=e[4];return e[7]!==a||e[8]!==l?(c=i.jsx("div",{className:a,children:l}),e[7]=a,e[8]=l,e[9]=c):c=e[9],c},_v=()=>{const t=P.c(3),e=tu();let n,o;return t[0]===Symbol.for("react.memo_cache_sentinel")?(n=i.jsx(Tc,{className:"w-3 h-3 mr-2"}),t[0]=n):n=t[0],t[1]!==e?(o=i.jsxs(ye,{"data-testid":"restart-session-button",variant:"link",size:"xs",onClick:e,children:[n,"Restart"]}),t[1]=e,t[2]=o):o=t[2],o},Iv=Bt(t=>{const e=t(Gt);for(const n of e.cellIds.inOrderIds){const o=e.cellRuntime[n];if(o.status==="idle"&&o.consoleOutputs.some(r=>r.channel==="stdin"&&r.response===void 0))return!0}return!1}),Av=()=>{const t=P.c(3),e=Tv;if(!ie(Iv))return null;let n,o,r;if(t[0]===Symbol.for("react.memo_cache_sentinel")?(n=i.jsx("div",{className:"flex justify-between",children:i.jsx("span",{className:"font-bold text-lg flex items-center mb-1",children:"Program waiting for input"})}),t[0]=n):n=t[0],t[1]===Symbol.for("react.memo_cache_sentinel")?(o=i.jsx(s1,{className:"inline",children:"stdin"}),t[1]=o):o=t[1],t[2]===Symbol.for("react.memo_cache_sentinel")){const s=i.jsx("div",{className:"flex flex-col gap-4 mb-5 fixed top-5 left-1/2 transform -translate-x-1/2 z-200 opacity-95",children:i.jsxs(Lo,{kind:"info",className:"flex flex-col rounded py-2 px-4 animate-in slide-in-from-top w-fit",children:[n,i.jsx("div",{className:"flex flex-col gap-4 justify-between items-start text-muted-foreground text-base",children:i.jsx("div",{children:i.jsxs("p",{children:["The program is still running, but blocked on"," ",o,".",i.jsx(ye,{variant:"link",className:"h-auto font-normal",onClick:e,children:"Jump to the cell"})]})})})]})});r=i.jsx(ba,{milliseconds:2e3,children:s}),t[2]=r}else r=t[2];return r};function Tv(){const t=document.querySelector("[data-stdin-blocking]");t?(t.scrollIntoView({behavior:"smooth",block:"center"}),requestAnimationFrame(()=>{t.focus()})):He.error("No element with data-stdin-blocking found")}function Dv(){const t=setTimeout(Mv,100);return()=>clearTimeout(t)}function Mv(){requestAnimationFrame(Ov)}function Ov(){const t=(function(e){const n=e.match(/scrollTo=([^&]+)/),o=n==null?void 0:n[1];return o?decodeURIComponent(o.split("&")[0]):null})(window.location.hash);if(t)(function(e){var o,r;if(Yf)return;const n=document.querySelector(`[data-cell-name="${e}"]`);if(n){if(n.scrollIntoView({behavior:"smooth",block:"start"}),Yf=!0,n instanceof HTMLElement){n.focus();const{cellHandles:s}=Mt(),a=n.dataset.cellId;if(!a)return void He.error(`Missing cellId for cell with name ${e}`);const l=(r=(o=s[a])==null?void 0:o.current)==null?void 0:r.editorView;l&&l.focus()}}else He.warn(`Cannot focus cell with name ${e} because it was not found`),Kf()})(t);else try{Kf()}catch(e){const n=e;He.warn("Error focusing first editor",n)}}function Kf(){var o,r;const{cellIds:t,cellData:e,cellHandles:n}=Mt();for(const s of t.iterateTopLevelIds){const a=n[s];if(!((o=e[s])==null?void 0:o.config.hide_code)&&((r=a==null?void 0:a.current)!=null&&r.editorView))return void a.current.editorView.focus()}}let Yf=!1;const Rv=t=>{const e=P.c(8),n=ie(Aj),o=t.appConfig.width==="columns";let r,s,a;return e[0]!==t?(r=i.jsx(Lv,{...t}),e[0]=t,e[1]=r):r=e[1],e[2]!==n||e[3]!==r?(s=i.jsx(Gu,{id:"column-container",items:n,strategy:gx,children:r}),e[2]=n,e[3]=r,e[4]=s):s=e[4],e[5]!==o||e[6]!==s?(a=i.jsx(bv,{multiColumn:o,children:s}),e[5]=o,e[6]=s,e[7]=a):a=e[7],a},Lv=t=>{const e=P.c(28),{mode:n,userConfig:o,appConfig:r}=t,s=Ye(),{theme:a}=C1(),{toggleSidebarPanel:l}=kr();W1(Dv),st("global.focusTop",s.focusTopCell),st("global.focusBottom",s.focusBottomCell),st("global.toggleSidebar",l),st("global.foldCode",s.foldAll),st("global.unfoldCode",s.unfoldAll),st("global.formatAll",Pv),st("cell.hideCode",Bn.NOOP),st("cell.format",Bn.NOOP);const c=jc(),d=Tj(),u=c.getColumnIds(),h=s.scrollToTarget;let m,p;e[0]!==d||e[1]!==h?(m=()=>{d!==null&&h()},e[0]=d,e[1]=h,e[2]=m):m=e[2],e[3]!==c||e[4]!==d||e[5]!==h?(p=[c,d,h],e[3]=c,e[4]=d,e[5]=h,e[6]=p):p=e[6],S.useEffect(m,p);const b=NC;let x,f,g,y,w;e[7]===Symbol.for("react.memo_cache_sentinel")?(x=i.jsx(ev,{}),f=i.jsx(Nx,{}),g=i.jsx(Av,{}),y=i.jsx(vv,{}),e[7]=x,e[8]=f,e[9]=g,e[10]=y):(x=e[7],f=e[8],g=e[9],y=e[10]),e[11]!==r.width?(w=i.jsx(Ev,{width:r.width}),e[11]=r.width,e[12]=w):w=e[12];const j=r.width==="columns"&&"grid grid-flow-col auto-cols-min gap-6";let C;e[13]!==j?(C=ue(j),e[13]=j,e[14]=C):C=e[14];const N=u.map((I,A)=>i.jsx(Fv,{columnId:I,index:A,columnsLength:u.length,appConfig:r,mode:n,userConfig:o,theme:a},I));let k,E,_;return e[15]!==C||e[16]!==N?(k=i.jsx("div",{className:C,children:N}),e[15]=C,e[16]=N,e[17]=k):k=e[17],e[18]===Symbol.for("react.memo_cache_sentinel")?(E=i.jsx(Dj,{}),e[18]=E):E=e[18],e[19]!==b||e[20]!==r||e[21]!==w||e[22]!==k||e[23]!==x||e[24]!==f||e[25]!==g||e[26]!==y?(_=i.jsxs(b,{className:"pb-[40vh]",invisible:!1,appConfig:r,innerClassName:"pr-4",children:[x,f,g,y,w,k,E]}),e[19]=b,e[20]=r,e[21]=w,e[22]=k,e[23]=x,e[24]=f,e[25]=g,e[26]=y,e[27]=_):_=e[27],_},Fv=t=>{const e=P.c(54),{columnId:n,index:o,columnsLength:r,appConfig:s,mode:a,userConfig:l,theme:c}=t,d=jc();let u,h,m,p,b,x,f,g,y,w,j,C,N,k,E,_;if(e[0]!==s.width||e[1]!==d||e[2]!==n||e[3]!==r||e[4]!==o||e[5]!==a||e[6]!==c||e[7]!==l){const I=d.get(n);let A;Zt(I,`Expected column for: ${n}`),e[22]!==d?(A=d.hasOnlyOneId(),e[22]=d,e[23]=A):A=e[23];const O=A;let D;e[24]!==d.inOrderIds?(D=d.inOrderIds.includes(Pr),e[24]=d.inOrderIds,e[25]=D):D=e[25];const M=D;h=Jf,j=n,C=o,N=o>0,k=o<r-1,p=s.width,b=r>1;const R=s.width==="columns"&&"opacity-0 group-hover/column:opacity-100";let L;e[26]!==R?(L=ue(R),e[26]=R,e[27]=L):L=e[27],e[28]!==n||e[29]!==L?(x=i.jsx(Bv,{columnId:n,className:L}),e[28]=n,e[29]=L,e[30]=x):x=e[30],u=Gu,m=`column-${o+1}`,f=I.topLevelIds,g=bx,e[31]!==M||e[32]!==o||e[33]!==a||e[34]!==c||e[35]!==l?(y=o===0&&M&&i.jsx(Wf,{cellId:Pr,theme:c,showPlaceholder:!1,canDelete:!0,mode:a,userConfig:l,isCollapsed:!1,collapseCount:0,canMoveX:!1},Pr),e[31]=M,e[32]=o,e[33]=a,e[34]=c,e[35]=l,e[36]=y):y=e[36],w=I.topLevelIds.map(z=>z===Pr?null:i.jsx(Wf,{cellId:z,theme:c,showPlaceholder:O,canDelete:!O,mode:a,userConfig:l,isCollapsed:I.isCollapsed(z),collapseCount:I.getCount(z),canMoveX:s.width==="columns"},z)),e[0]=s.width,e[1]=d,e[2]=n,e[3]=r,e[4]=o,e[5]=a,e[6]=c,e[7]=l,e[8]=u,e[9]=h,e[10]=m,e[11]=p,e[12]=b,e[13]=x,e[14]=f,e[15]=g,e[16]=y,e[17]=w,e[18]=j,e[19]=C,e[20]=N,e[21]=k}else u=e[8],h=e[9],m=e[10],p=e[11],b=e[12],x=e[13],f=e[14],g=e[15],y=e[16],w=e[17],j=e[18],C=e[19],N=e[20],k=e[21];return e[37]!==u||e[38]!==m||e[39]!==f||e[40]!==g||e[41]!==y||e[42]!==w?(E=i.jsxs(u,{id:m,items:f,strategy:g,children:[y,w]}),e[37]=u,e[38]=m,e[39]=f,e[40]=g,e[41]=y,e[42]=w,e[43]=E):E=e[43],e[44]!==h||e[45]!==p||e[46]!==b||e[47]!==x||e[48]!==E||e[49]!==j||e[50]!==C||e[51]!==N||e[52]!==k?(_=i.jsx(h,{columnId:j,index:C,canMoveLeft:N,canMoveRight:k,width:p,canDelete:b,footer:x,children:E}),e[44]=h,e[45]=p,e[46]=b,e[47]=x,e[48]=E,e[49]=j,e[50]=C,e[51]=N,e[52]=k,e[53]=_):_=e[53],_},Bv=t=>{const e=P.c(17),{columnId:n,className:o}=t,{createNewCell:r}=Ye(),[s,a]=Mj(!1),l=ie(mc),c=ie(Hp);let d;e[0]===Symbol.for("react.memo_cache_sentinel")?(d=ue("mb-0 rounded-none sm:px-4 md:px-5 lg:px-8 tracking-wide no-wrap whitespace-nowrap","hover:bg-accent hover:text-accent-foreground font-semibold uppercase text-xs"),e[0]=d):d=e[0];const u=d;let h;e[1]!==l||e[2]!==n||e[3]!==r||e[4]!==s||e[5]!==a.toggle||e[6]!==c?(h=()=>s?i.jsx(Oj,{onClose:a.toggle}):i.jsxs(i.Fragment,{children:[i.jsxs(ye,{className:u,variant:"text",size:"sm",disabled:!c,onClick:()=>r({cellId:{type:"__end__",columnId:n},before:!1}),children:[i.jsx(md,{className:"mr-2 size-4 shrink-0"}),"Python"]}),i.jsxs(ye,{className:u,variant:"text",size:"sm",disabled:!c,onClick:()=>{Gn({autoInstantiate:!0,createNewCell:r}),r({cellId:{type:"__end__",columnId:n},before:!1,code:Bo.markdown.defaultCode,hideCode:!0})},children:[i.jsx(pd,{className:"mr-2 size-4 shrink-0"}),"Markdown"]}),i.jsxs(ye,{className:u,variant:"text",size:"sm",disabled:!c,onClick:()=>{Gn({autoInstantiate:!0,createNewCell:r}),r({cellId:{type:"__end__",columnId:n},before:!1,code:Bo.sql.defaultCode})},children:[i.jsx(_o,{className:"mr-2 size-4 shrink-0"}),"SQL"]}),i.jsx(pe,{content:l?null:i.jsx("span",{children:"Enable via settings under AI Assist"}),delayDuration:100,asChild:!1,children:i.jsxs(ye,{className:u,variant:"text",size:"sm",disabled:!l||!c,onClick:a.toggle,children:[i.jsx(Rr,{className:"mr-2 size-4 shrink-0"}),"Generate with AI"]})})]}),e[1]=l,e[2]=n,e[3]=r,e[4]=s,e[5]=a.toggle,e[6]=c,e[7]=h):h=e[7];const m=h,p=!s&&"w-fit",b=s&&"opacity-100 w-full max-w-4xl shadow-lg shadow-(color:--blue-3)";let x,f,g;return e[8]!==o||e[9]!==p||e[10]!==b?(x=ue("shadow-sm border border-border rounded transition-all duration-200 overflow-hidden divide-x divide-border flex",p,b,o),e[8]=o,e[9]=p,e[10]=b,e[11]=x):x=e[11],e[12]!==m?(f=m(),e[12]=m,e[13]=f):f=e[13],e[14]!==x||e[15]!==f?(g=i.jsx("div",{className:"flex justify-center mt-4 pt-6 pb-32 group gap-4 w-full print:hidden",children:i.jsx("div",{className:x,children:f})}),e[14]=x,e[15]=f,e[16]=g):g=e[16],g};function Pv(){$p()}const zv=Rj(t=>a1().syncCellIds(t),400),Uv=(t,e)=>{Le.get(To)||t.isEmpty()||e.isEmpty()||jr(t.inOrderIds,e.inOrderIds)||zv({cell_ids:t.inOrderIds})},Xf=t=>{const e=P.c(70),{userConfig:n,appConfig:o,hideControls:r}=t,s=r!==void 0&&r;Lj(ga,Uv);const{setCells:a,mergeAllColumns:l,collapseAllCells:c,expandAllCells:d}=Ye(),u=ie(Sl),h=ie(Fj),m=ie(Bj),p=zl(),b=Ct(ei),{sendComponentValues:x,sendInterrupt:f}=qe(),g=u.mode==="edit",y=u.mode==="present",w=ie(Pj);let j,C;e[0]!==x?(j=()=>(lg.INSTANCE.start(x),Wv),e[0]=x,e[1]=j):j=e[1],e[2]===Symbol.for("react.memo_cache_sentinel")?(C=[],e[2]=C):C=e[2],S.useEffect(j,C);const N=n.runtime.auto_instantiate;let k,E,_;e[3]!==a||e[4]!==b?(k=(te,_e)=>{a(te);const he=te.map($v),we=te.map(Vv),ke=te.map(Gv);b({names:he,codes:we,configs:ke,layout:_e})},e[3]=a,e[4]=b,e[5]=k):k=e[5],e[6]===Symbol.for("react.memo_cache_sentinel")?(E=w1(),e[6]=E):E=e[6],e[7]!==k||e[8]!==n.runtime.auto_instantiate?(_={autoInstantiate:N,setCells:k,sessionId:E},e[7]=k,e[8]=n.runtime.auto_instantiate,e[9]=_):_=e[9];const{connection:I}=SC(_);let A,O;e[10]!==o.app_title||e[11]!==p?(A=()=>{document.title=o.app_title||Ot.basename(p??"")||"Untitled Notebook"},O=[o.app_title,p],e[10]=o.app_title,e[11]=p,e[12]=A,e[13]=O):(A=e[12],O=e[13]),S.useEffect(A,O);const D=la(o.width);let M,R;e[14]!==o.width||e[15]!==l||e[16]!==D?(M=()=>{D==="columns"&&o.width!=="columns"&&l()},e[14]=o.width,e[15]=l,e[16]=D,e[17]=M):M=e[17],e[18]!==o.width||e[19]!==l||e[20]!==h||e[21]!==D?(R=[o.width,D,l,h],e[18]=o.width,e[19]=l,e[20]=h,e[21]=D,e[22]=R):R=e[22],S.useEffect(M,R);const L=(function(){const te=P.c(2),_e=Ho();let he;return te[0]!==_e?(he=()=>_e(lk(Mt())),te[0]=_e,te[1]=he):he=te[1],Ce(he)})(),z=_d(),T=Ed();let F,$,W,G,X,H,Y;e[23]!==L?(F=()=>{L()},e[23]=L,e[24]=F):F=e[24],st("global.runStale",F),e[25]!==f?($=()=>{f()},e[25]=f,e[26]=$):$=e[26],st("global.interrupt",$),e[27]!==T?(W=()=>{T()},e[27]=T,e[28]=W):W=e[28],st("global.hideCode",W),e[29]!==z?(G=()=>{z()},e[29]=z,e[30]=G):G=e[30],st("global.runAll",G),e[31]!==c?(X=()=>{c()},e[31]=c,e[32]=X):X=e[32],st("global.collapseAllSections",X),e[33]!==d?(H=()=>{d()},e[33]=d,e[34]=H):H=e[34],st("global.expandAllSections",H),e[35]!==o||e[36]!==n||e[37]!==u.mode?(Y=i.jsx(Rv,{mode:u.mode,userConfig:n,appConfig:o}),e[35]=o,e[36]=n,e[37]=u.mode,e[38]=Y):Y=e[38];const K=Y,V=o.width;let q,U,ne,Q,ee,oe,se,ae;return e[39]===Symbol.for("react.memo_cache_sentinel")?(q=ue("pt-4 sm:pt-12 pb-2 mb-4 print:hidden z-50","sticky left-0"),e[39]=q):q=e[39],e[40]!==p||e[41]!==g?(U=g&&i.jsx("div",{className:"flex items-center justify-center container",children:i.jsx(yb,{filename:p})}),e[40]=p,e[41]=g,e[42]=U):U=e[42],e[43]!==I||e[44]!==U?(ne=i.jsx(_C,{connection:I,className:q,children:U}),e[43]=I,e[44]=U,e[45]=ne):ne=e[45],e[46]!==o||e[47]!==K||e[48]!==m||e[49]!==u.mode?(Q=m&&i.jsx(EC,{appConfig:o,mode:u.mode,children:K}),e[46]=o,e[47]=K,e[48]=m,e[49]=u.mode,e[50]=Q):Q=e[50],e[51]!==o.width||e[52]!==I||e[53]!==w||e[54]!==ne||e[55]!==Q?(ee=i.jsxs(IC,{connection:I,isRunning:w,width:V,children:[ne,Q]}),e[51]=o.width,e[52]=I,e[53]=w,e[54]=ne,e[55]=Q,e[56]=ee):ee=e[56],e[57]===Symbol.for("react.memo_cache_sentinel")?(oe=i.jsx(Ab,{}),e[57]=oe):oe=e[57],e[58]!==o||e[59]!==I||e[60]!==s||e[61]!==y||e[62]!==w||e[63]!==L||e[64]!==f||e[65]!==T?(se=!s&&i.jsx(va,{children:i.jsx(fb,{presenting:y,onTogglePresenting:T,onInterrupt:f,onRun:L,connectionState:I.state,running:w,appConfig:o})}),e[58]=o,e[59]=I,e[60]=s,e[61]=y,e[62]=w,e[63]=L,e[64]=f,e[65]=T,e[66]=se):se=e[66],e[67]!==ee||e[68]!==se?(ae=i.jsxs(i.Fragment,{children:[ee,oe,se]}),e[67]=ee,e[68]=se,e[69]=ae):ae=e[69],ae};function Wv(){lg.INSTANCE.stop()}function $v(t){return t.name}function Vv(t){return t.code}function Gv(t){return t.config}const Qf=t=>ie(zj)[t.capability]?t.children:null,At=S.forwardRef((t,e)=>{const n=P.c(18);let o,r,s,a,l;n[0]!==t?({children:o,tooltip:l,selected:a,className:r,...s}=t,n[0]=t,n[1]=o,n[2]=r,n[3]=s,n[4]=a,n[5]=l):(o=n[1],r=n[2],s=n[3],a=n[4],l=n[5]);const c=!a&&"hover:bg-(--sage-3)",d=a&&"bg-(--sage-4)";let u,h;n[6]!==r||n[7]!==c||n[8]!==d?(u=ue("h-full flex items-center p-2 text-sm shadow-inset font-mono cursor-pointer rounded",c,d,r),n[6]=r,n[7]=c,n[8]=d,n[9]=u):u=n[9],n[10]!==o||n[11]!==e||n[12]!==s||n[13]!==u?(h=i.jsx("div",{ref:e,className:u,...s,children:o}),n[10]=o,n[11]=e,n[12]=s,n[13]=u,n[14]=h):h=n[14];const m=h;if(l){let p;return n[15]!==m||n[16]!==l?(p=i.jsx(pe,{content:l,side:"top",delayDuration:200,children:m}),n[15]=m,n[16]=l,n[17]=p):p=n[17],p}return m});At.displayName="FooterItem";const qv=()=>{var p,b;const t=P.c(17),e=ie(Uj),n=ie(mc),o=((p=e==null?void 0:e.models)==null?void 0:p.chat_model)||Wj,r=((b=e==null?void 0:e.models)==null?void 0:b.edit_model)||o,{handleClick:s}=K1();if(!n){let x,f,g;return t[0]!==s?(x=()=>s("ai"),t[0]=s,t[1]=x):x=t[1],t[2]===Symbol.for("react.memo_cache_sentinel")?(f=i.jsx(Rr,{className:"h-4 w-4 opacity-60"}),t[2]=f):f=t[2],t[3]!==x?(g=i.jsx(At,{tooltip:"Assist is disabled",selected:!1,onClick:x,"data-testid":"footer-ai-disabled",children:f}),t[3]=x,t[4]=g):g=t[4],g}let a,l,c,d,u,h,m;return t[5]===Symbol.for("react.memo_cache_sentinel")?(a=i.jsx("b",{children:"Chat model:"}),t[5]=a):a=t[5],t[6]===Symbol.for("react.memo_cache_sentinel")?(l=i.jsx("br",{}),c=i.jsx("b",{children:"Edit model:"}),t[6]=l,t[7]=c):(l=t[6],c=t[7]),t[8]!==o||t[9]!==r?(d=i.jsxs(i.Fragment,{children:[a," ",o,l,c," ",r]}),t[8]=o,t[9]=r,t[10]=d):d=t[10],t[11]!==s?(u=()=>s("ai"),t[11]=s,t[12]=u):u=t[12],t[13]===Symbol.for("react.memo_cache_sentinel")?(h=i.jsx(Rr,{className:"h-4 w-4"}),t[13]=h):h=t[13],t[14]!==d||t[15]!==u?(m=i.jsx(At,{tooltip:d,onClick:u,selected:!1,"data-testid":"footer-ai-enabled",children:h}),t[14]=d,t[15]=u,t[16]=m):m=t[16],m},Hv=()=>{const t=P.c(26),e=ie(Nt).state,n=j1();let o,r;t[0]!==e||t[1]!==n?(o=async()=>{if(e===ht.OPEN){if(Qt())return{isHealthy:!0,lastChecked:new Date,error:void 0};try{return{isHealthy:await n.isHealthy(),lastChecked:new Date,error:void 0}}catch(j){const C=j;return{isHealthy:!1,lastChecked:new Date,error:C instanceof Error?C.message:"Unknown error"}}}},r=[n,e],t[0]=e,t[1]=n,t[2]=o,t[3]=r):(o=t[2],r=t[3]);const{isFetching:s,error:a,data:l,refetch:c}=wr(o,r),d=e===ht.OPEN?3e4:null;let u,h;t[4]!==d?(u={delayMs:d,whenVisible:!0},t[4]=d,t[5]=u):u=t[5],zr(c,u),t[6]!==e||t[7]!==l||t[8]!==a?(h=()=>[Ll(e.toLowerCase()),l!=null&&l.lastChecked?l.isHealthy?"\u2713 Healthy":"\u2717 Unhealthy":"Health: Unknown",a?`Error: ${a}`:""].filter(Boolean).join(`
|
|
128
128
|
`),t[6]=e,t[7]=l,t[8]=a,t[9]=h):h=t[9];const m=h;let p;t[10]!==e||t[11]!==(l==null?void 0:l.isHealthy)||t[12]!==(l==null?void 0:l.lastChecked)||t[13]!==s?(p=()=>s||e===ht.CONNECTING?i.jsx(ya,{size:"small"}):e===ht.CLOSING?i.jsx(ya,{className:"text-destructive",size:"small"}):e===ht.OPEN?l!=null&&l.isHealthy?i.jsx(Na,{className:"w-4 h-4 text-(--green-9)"}):l!=null&&l.lastChecked?i.jsx(U1,{className:"w-4 h-4 text-(--yellow-9)"}):i.jsx(Na,{className:"w-4 h-4"}):i.jsx(Ur,{className:"w-4 h-4 text-red-500"}),t[10]=e,t[11]=l==null?void 0:l.isHealthy,t[12]=l==null?void 0:l.lastChecked,t[13]=s,t[14]=p):p=t[14];const b=p,x=m();let f,g,y,w;return t[15]!==e?(f=e===ht.OPEN&&i.jsx("div",{className:"mt-2 text-xs text-muted-foreground",children:"Click to refresh health status"}),t[15]=e,t[16]=f):f=t[16],t[17]!==x||t[18]!==f?(g=i.jsxs("div",{className:"text-sm whitespace-pre-line",children:[x,f]}),t[17]=x,t[18]=f,t[19]=g):g=t[19],t[20]!==b?(y=b(),t[20]=b,t[21]=y):y=t[21],t[22]!==c||t[23]!==g||t[24]!==y?(w=i.jsx(At,{tooltip:g,selected:!1,onClick:c,"data-testid":"footer-backend-status",children:y}),t[22]=c,t[23]=g,t[24]=y,t[25]=w):w=t[25],w},Jv=t=>{const e=P.c(3);let n,o;return e[0]===Symbol.for("react.memo_cache_sentinel")?(n=i.jsx("path",{d:"M205.28 31.36c14.096 14.88 20.016 35.2 22.512 63.68c6.626 0 12.805 1.47 16.976 7.152l7.792 10.56A17.55 17.55 0 0 1 256 123.2v28.688c-.008 3.704-1.843 7.315-4.832 9.504C215.885 187.222 172.35 208 128 208c-49.066 0-98.19-28.273-123.168-46.608c-2.989-2.189-4.825-5.8-4.832-9.504V123.2c0-3.776 1.2-7.424 3.424-10.464l7.792-10.544c4.173-5.657 10.38-7.152 16.992-7.152c2.496-28.48 8.4-48.8 22.512-63.68C77.331 3.165 112.567.06 127.552 0H128c14.72 0 50.4 2.88 77.28 31.36m-77.264 47.376c-3.04 0-6.544.176-10.272.544c-1.312 4.896-3.248 9.312-6.08 12.128c-11.2 11.2-24.704 12.928-31.936 12.928c-6.802 0-13.927-1.42-19.744-5.088c-5.502 1.808-10.786 4.415-11.136 10.912c-.586 12.28-.637 24.55-.688 36.824c-.026 6.16-.05 12.322-.144 18.488c.024 3.579 2.182 6.903 5.44 8.384C79.936 185.92 104.976 192 128.016 192c23.008 0 48.048-6.08 74.512-18.144c3.258-1.48 5.415-4.805 5.44-8.384c.317-18.418.062-36.912-.816-55.312h.016c-.342-6.534-5.648-9.098-11.168-10.912c-5.82 3.652-12.927 5.088-19.728 5.088c-7.232 0-20.72-1.728-31.936-12.928c-2.832-2.816-4.768-7.232-6.08-12.128a106 106 0 0 0-10.24-.544m-26.941 43.93c5.748 0 10.408 4.66 10.408 10.409v19.183c0 5.749-4.66 10.409-10.408 10.409s-10.408-4.66-10.408-10.409v-19.183c0-5.748 4.66-10.408 10.408-10.408m53.333 0c5.749 0 10.409 4.66 10.409 10.409v19.183c0 5.749-4.66 10.409-10.409 10.409c-5.748 0-10.408-4.66-10.408-10.409v-19.183c0-5.748 4.66-10.408 10.408-10.408M81.44 28.32c-11.2 1.12-20.64 4.8-25.44 9.92c-10.4 11.36-8.16 40.16-2.24 46.24c4.32 4.32 12.48 7.2 21.28 7.2c6.72 0 19.52-1.44 30.08-12.16c4.64-4.48 7.52-15.68 7.2-27.04c-.32-9.12-2.88-16.64-6.72-19.84c-4.16-3.68-13.6-5.28-24.16-4.32m68.96 4.32c-3.84 3.2-6.4 10.72-6.72 19.84c-.32 11.36 2.56 22.56 7.2 27.04c10.56 10.72 23.36 12.16 30.08 12.16c8.8 0 16.96-2.88 21.28-7.2c5.92-6.08 8.16-34.88-2.24-46.24c-4.8-5.12-14.24-8.8-25.44-9.92c-10.56-.96-20 .64-24.16 4.32M128 56c-2.56 0-5.6.16-8.96.48c.32 1.76.48 3.68.64 5.76c0 1.44 0 2.88-.16 4.48c3.2-.32 5.92-.32 8.48-.32s5.28 0 8.48.32c-.16-1.6-.16-3.04-.16-4.48c.16-2.08.32-4 .64-5.76c-3.36-.32-6.4-.48-8.96-.48"}),e[0]=n):n=e[0],e[1]!==t?(o=i.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1.24em",height:"1em",viewBox:"0 0 256 208",fill:"currentColor",...t,children:n}),e[1]=t,e[2]=o):o=e[2],o},Kv=Bt(t=>t($j).completion.copilot),Yv=()=>{const t=P.c(1);if(ie(Kv)==="github"){let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=i.jsx(Xv,{}),t[0]=e):e=t[0],e}return null},Zf=He.get("[copilot-status-bar]"),Xv=()=>{const t=ie(Y1),e=ie(fC)!==null,{handleClick:n}=K1(),o=()=>n("ai"),r=t?"Ready":"Not connected",s=Ct(Y1),a=Ct(pC);return W1(()=>{const l=J1();let c=!0;return(async()=>{try{if(await l.initializePromise.catch(u=>{throw Zf.error("Failed to initialize",u),l.close(),u}),!c)return;const d=await l.signedIn();if(!c)return;s(d),a(d?"signedIn":"signedOut")}catch(d){if(!c)return;Zf.warn("Connection failed",d),s(!1),a("connectionError"),ze({title:"GitHub Copilot Connection Error",description:"Failed to connect to GitHub Copilot. Check settings and try again.",variant:"danger",action:i.jsx(ye,{variant:"link",onClick:o,children:"Settings"})})}})(),()=>{c=!1}}),i.jsx(At,{tooltip:i.jsxs(i.Fragment,{children:[i.jsx("b",{children:"GitHub Copilot:"})," ",r]}),selected:!1,onClick:o,"data-testid":"footer-copilot-status",children:i.jsx("span",{children:e?i.jsx(ya,{className:"h-4 w-4"}):i.jsx(Jv,{className:ue("h-4 w-4",!t&&"opacity-60")})})})},Qv=()=>{const t=P.c(18),[e,n]=S.useState(0),o=ie(Nt),{getUsageStats:r}=qe();let s,a,l,c;t[0]===Symbol.for("react.memo_cache_sentinel")?(s=()=>n(nw),a={delayMs:1e4,whenVisible:!0},t[0]=s,t[1]=a):(s=t[0],a=t[1]),zr(s,a),t[2]!==o.state||t[3]!==r?(l=async()=>Qt()||o.state!==ht.OPEN?null:r(),t[2]=o.state,t[3]=r,t[4]=l):l=t[4],t[5]!==o.state||t[6]!==e?(c=[e,o.state],t[5]=o.state,t[6]=e,t[7]=c):c=t[7];const{data:d}=wr(l,c);let u,h,m,p;return t[8]!==d?(u=(d==null?void 0:d.gpu)&&d.gpu.length>0&&i.jsx(tw,{gpus:d.gpu}),t[8]=d,t[9]=u):u=t[9],t[10]!==d?(h=d&&i.jsx(Zv,{memory:d.memory,kernel:d.kernel,server:d.server}),t[10]=d,t[11]=h):h=t[11],t[12]!==d?(m=d&&i.jsx(ew,{cpu:d.cpu}),t[12]=d,t[13]=m):m=t[13],t[14]!==u||t[15]!==h||t[16]!==m?(p=i.jsxs("div",{className:"flex gap-2 items-center px-1",children:[u,h,m]}),t[14]=u,t[15]=h,t[16]=m,t[17]=p):p=t[17],p},Zv=t=>{const e=P.c(36),{memory:n,kernel:o,server:r}=t,{percent:s,total:a,available:l}=n;let c;e[0]!==s?(c=Math.round(s),e[0]=s,e[1]=c):c=e[1];const d=c;let u;e[2]===Symbol.for("react.memo_cache_sentinel")?(u={maximumFractionDigits:2},e[2]=u):u=e[2];const h=wa(u);let m;e[3]===Symbol.for("react.memo_cache_sentinel")?(m={maximumFractionDigits:0},e[3]=m):m=e[3];const p=wa(m);let b;e[4]!==h||e[5]!==p?(b=D=>D>1073741824?`${h.format(D/1073741824)} GB`:`${p.format(D/1048576)} MB`,e[4]=h,e[5]=p,e[6]=b):b=e[6];const x=b;let f;e[7]!==h?(f=D=>h.format(D/1073741824),e[7]=h,e[8]=f):f=e[8];const g=f;let y;e[9]===Symbol.for("react.memo_cache_sentinel")?(y=i.jsx("b",{children:"computer memory:"}),e[9]=y):y=e[9];const w=a-l;let j,C,N,k,E,_,I,A,O;return e[10]!==g||e[11]!==w?(j=g(w),e[10]=g,e[11]=w,e[12]=j):j=e[12],e[13]!==g||e[14]!==a?(C=g(a),e[13]=g,e[14]=a,e[15]=C):C=e[15],e[16]!==d||e[17]!==j||e[18]!==C?(N=i.jsxs("span",{children:[y," ",j," /"," ",C," GB (",d,"%)"]}),e[16]=d,e[17]=j,e[18]=C,e[19]=N):N=e[19],e[20]!==x||e[21]!==r?(k=(r==null?void 0:r.memory)&&i.jsxs("span",{children:[i.jsx("b",{children:"marimo server:"})," ",x(r.memory)]}),e[20]=x,e[21]=r,e[22]=k):k=e[22],e[23]!==x||e[24]!==o?(E=(o==null?void 0:o.memory)&&i.jsxs("span",{children:[i.jsx("b",{children:"kernel:"})," ",x(o.memory)]}),e[23]=x,e[24]=o,e[25]=E):E=e[25],e[26]!==N||e[27]!==k||e[28]!==E?(_=i.jsxs("div",{className:"flex flex-col gap-1",children:[N,k,E]}),e[26]=N,e[27]=k,e[28]=E,e[29]=_):_=e[29],e[30]===Symbol.for("react.memo_cache_sentinel")?(I=i.jsx(sd,{className:"w-4 h-4"}),e[30]=I):I=e[30],e[31]!==d?(A=i.jsxs("div",{className:"flex items-center gap-1","data-testid":"memory-usage-bar",children:[I,i.jsx(yl,{percent:d,colorClassName:"bg-primary"})]}),e[31]=d,e[32]=A):A=e[32],e[33]!==_||e[34]!==A?(O=i.jsx(pe,{delayDuration:200,content:_,children:A}),e[33]=_,e[34]=A,e[35]=O):O=e[35],O},ew=t=>{const e=P.c(11),{cpu:n}=t,{percent:o}=n;let r;e[0]!==o?(r=Math.round(o),e[0]=o,e[1]=r):r=e[1];const s=r;let a,l,c,d,u;return e[2]===Symbol.for("react.memo_cache_sentinel")?(a=i.jsx("b",{children:"CPU:"}),e[2]=a):a=e[2],e[3]!==s?(l=i.jsxs("span",{children:[a," ",s,"%"]}),e[3]=s,e[4]=l):l=e[4],e[5]===Symbol.for("react.memo_cache_sentinel")?(c=i.jsx(gC,{className:"w-4 h-4"}),e[5]=c):c=e[5],e[6]!==s?(d=i.jsxs("div",{className:"flex items-center gap-1","data-testid":"cpu-bar",children:[c,i.jsx(yl,{percent:s,colorClassName:"bg-primary"})]}),e[6]=s,e[7]=d):d=e[7],e[8]!==l||e[9]!==d?(u=i.jsx(pe,{delayDuration:200,content:l,children:d}),e[8]=l,e[9]=d,e[10]=u):u=e[10],u},tw=t=>{const e=P.c(20),{gpus:n}=t;let o;e[0]!==n?(o=Math.round(n.reduce(ow,0)/n.length),e[0]=n,e[1]=o):o=e[1];const r=o;let s;e[2]===Symbol.for("react.memo_cache_sentinel")?(s={maximumFractionDigits:2},e[2]=s):s=e[2];const a=wa(s);let l;e[3]===Symbol.for("react.memo_cache_sentinel")?(l={maximumFractionDigits:0},e[3]=l):l=e[3];const c=wa(l);let d;e[4]!==a||e[5]!==c?(d=f=>f>1073741824?`${a.format(f/1073741824)} GB`:`${c.format(f/1048576)} MB`,e[4]=a,e[5]=c,e[6]=d):d=e[6];const u=d;let h,m,p,b,x;if(e[7]!==u||e[8]!==n){let f;e[10]!==u?(f=g=>i.jsxs("span",{children:[i.jsxs("b",{children:["GPU ",g.index," (",g.name,"):"]})," ",u(g.memory.used)," / ",u(g.memory.total)," (",Math.round(g.memory.percent),"%)"]},g.index),e[10]=u,e[11]=f):f=e[11],h=n.map(f),e[7]=u,e[8]=n,e[9]=h}else h=e[9];return e[12]!==h?(m=i.jsx("div",{className:"flex flex-col gap-1",children:h}),e[12]=h,e[13]=m):m=e[13],e[14]===Symbol.for("react.memo_cache_sentinel")?(p=i.jsx(id,{className:"w-4 h-4"}),e[14]=p):p=e[14],e[15]!==r?(b=i.jsxs("div",{className:"flex items-center gap-1","data-testid":"gpu-bar",children:[p,i.jsx(yl,{percent:r,colorClassName:"bg-(--grass-9)"})]}),e[15]=r,e[16]=b):b=e[16],e[17]!==m||e[18]!==b?(x=i.jsx(pe,{delayDuration:200,content:m,children:b}),e[17]=m,e[18]=b,e[19]=x):x=e[19],x},yl=t=>{const e=P.c(7),{percent:n,colorClassName:o}=t;let r;e[0]!==o?(r=ue("h-full bg-primary",o),e[0]=o,e[1]=r):r=e[1];const s=`${n}%`;let a,l;return e[2]!==s?(a={width:s},e[2]=s,e[3]=a):a=e[3],e[4]!==r||e[5]!==a?(l=i.jsx("div",{className:"h-3 w-20 bg-(--slate-4) rounded-lg overflow-hidden border",children:i.jsx("div",{className:r,style:a})}),e[4]=r,e[5]=a,e[6]=l):l=e[6],l};function nw(t){return t+1}function ow(t,e){return t+e.memory.percent}const ep=Bt(!1);function vl(t,e,n=new Set){if(n.has(t))return new Set;n.add(t);const o=new Set;for(const r of e(t)){o.add(r);for(const s of vl(r,e,n))o.add(s)}return o}const rw=Bt(t=>{const e=t(ga),n=t(Jp);return(function(o,r){var l,c,d;const s=new Map;for(const u of o)s.set(u,{variables:new Set,parents:new Set,children:new Set});for(const u of Object.values(r))if(u.dataType!=="module")for(const h of u.declaredBy){(l=s.get(h))==null||l.variables.add(u.name);for(const m of u.usedBy)h!==m&&((c=s.get(m))==null||c.parents.add(h),(d=s.get(h))==null||d.children.add(m))}const a={};for(const[u,h]of s.entries())a[u]={parents:h.parents,children:h.children,variables:[...h.variables],ancestors:vl(u,m=>{var p;return((p=s.get(m))==null?void 0:p.parents)??new Set}),descendants:vl(u,m=>{var p;return((p=s.get(m))==null?void 0:p.children)??new Set})};return a})(e.inOrderIds,n)});function sw(t,e){return e?t.usedBy.includes(e.id)||t.declaredBy.includes(e.id)?!0:t.declaredBy.some(n=>e.graph.parents.has(n))?t.usedBy.some(n=>e.graph.parents.has(n)):!!t.declaredBy.some(n=>e.graph.children.has(n)):!1}const aw=()=>{const t=P.c(6),[e,n]=_n(ep);let o,r,s;return t[0]!==n?(o=()=>n(iw),t[0]=n,t[1]=o):o=t[1],t[2]===Symbol.for("react.memo_cache_sentinel")?(r=i.jsx(rd,{className:"h-4 w-4"}),t[2]=r):r=t[2],t[3]!==e||t[4]!==o?(s=i.jsx(At,{tooltip:"Toggle Minimap",selected:e,onClick:o,"data-testid":"footer-minimap",children:r}),t[3]=e,t[4]=o,t[5]=s):s=t[5],s};function iw(t){return!t}const lw=()=>{const t=P.c(13),e=ie(yo),[n,o]=_n(k1),[r,s]=S.useState(!1);if(!pa()||e==="disabled")return null;const a=e?"Real-time collaboration active":"Connecting to real-time collaboration";let l,c,d,u,h,m;return t[0]===Symbol.for("react.memo_cache_sentinel")?(l=i.jsx(xd,{className:"w-4 h-4"}),t[0]=l):l=t[0],t[1]!==a?(c=i.jsx(pc,{asChild:!0,children:i.jsx(At,{tooltip:a,selected:!1,"data-testid":"footer-rtc-status",children:l})}),t[1]=a,t[2]=c):c=t[2],t[3]===Symbol.for("react.memo_cache_sentinel")?(d=i.jsxs("div",{className:"space-y-2",children:[i.jsx("h4",{className:"font-medium leading-none",children:"Username"}),i.jsx("p",{className:"text-sm text-muted-foreground",children:"Set your username for real-time collaboration"})]}),t[3]=d):d=t[3],t[4]!==o?(u=p=>o(p.target.value),t[4]=o,t[5]=u):u=t[5],t[6]!==u||t[7]!==n?(h=i.jsx(Kl,{className:"w-80",children:i.jsxs("div",{className:"space-y-4",children:[d,i.jsx(ao,{value:n,autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",onChange:u,placeholder:"Enter your username"})]})}),t[6]=u,t[7]=n,t[8]=h):h=t[8],t[9]!==r||t[10]!==c||t[11]!==h?(m=i.jsxs(ta,{open:r,onOpenChange:s,children:[c,h]}),t[9]=r,t[10]=c,t[11]=h,t[12]=m):m=t[12],m},cw=t=>{const e=P.c(104),{className:n}=t,{saveUserConfig:o}=qe(),[r,s]=Vj(),a=Qs()[0],[l,c]=S.useState(!1);let d,u,h;e[0]===Symbol.for("react.memo_cache_sentinel")?(d=()=>{const ve=window.matchMedia("(min-width: 768px)"),be=()=>{ve.matches&&c(!1)};return ve.addEventListener("change",be),()=>ve.removeEventListener("change",be)},u=[],e[0]=d,e[1]=u):(d=e[0],u=e[1]),S.useEffect(d,u),e[2]!==a||e[3]!==o||e[4]!==s?(h=async ve=>{const be={...a,runtime:{...a.runtime,auto_instantiate:ve}};await o({config:be}).then(()=>s(be))},e[2]=a,e[3]=o,e[4]=s,e[5]=h):h=e[5];const m=h;let p;e[6]!==o||e[7]!==s||e[8]!==r?(p=async ve=>{const be={...r,runtime:{...r.runtime,on_cell_change:ve?"autorun":"lazy"}};await o({config:be}).then(()=>s(be))},e[6]=o,e[7]=s,e[8]=r,e[9]=p):p=e[9];const b=p;let x;e[10]!==o||e[11]!==s||e[12]!==r?(x=async ve=>{const be={...r,runtime:{...r.runtime,auto_reload:ve}};await o({config:be}).then(()=>s(be))},e[10]=o,e[11]=s,e[12]=r,e[13]=x):x=e[13];const f=x;let g;e[14]!==a.runtime.auto_instantiate||e[15]!==a.runtime.auto_reload||e[16]!==a.runtime.on_cell_change?(g=!a.runtime.auto_instantiate&&a.runtime.on_cell_change==="lazy"&&(Qt()||a.runtime.auto_reload!=="autorun"),e[14]=a.runtime.auto_instantiate,e[15]=a.runtime.auto_reload,e[16]=a.runtime.on_cell_change,e[17]=g):g=e[17];const y=g;let w;e[18]!==n?(w=ue("flex items-center",n),e[18]=n,e[19]=w):w=e[19];const j=a.runtime.auto_instantiate?"Disable autorun on startup":"Enable autorun on startup";let C,N,k;e[20]!==a.runtime.auto_instantiate||e[21]!==m?(C=()=>m(!a.runtime.auto_instantiate),e[20]=a.runtime.auto_instantiate,e[21]=m,e[22]=C):C=e[22],e[23]===Symbol.for("react.memo_cache_sentinel")?(N=i.jsx("span",{children:"on startup: "}),e[23]=N):N=e[23],e[24]!==a.runtime.auto_instantiate?(k=a.runtime.auto_instantiate?i.jsx(_t,{size:14}):i.jsx(Et,{size:14}),e[24]=a.runtime.auto_instantiate,e[25]=k):k=e[25];const E=a.runtime.auto_instantiate?"autorun":"lazy";let _,I,A,O;e[26]!==E?(_=i.jsx("span",{children:E}),e[26]=E,e[27]=_):_=e[27],e[28]!==k||e[29]!==_?(I=i.jsxs("div",{className:"font-prose text-sm flex items-center gap-1 whitespace-nowrap",children:[N,k,_]}),e[28]=k,e[29]=_,e[30]=I):I=e[30],e[31]!==I||e[32]!==j||e[33]!==C?(A=i.jsx(zo,{name:"runtime.auto_instantiate",children:i.jsx(At,{tooltip:j,selected:!1,onClick:C,"data-testid":"footer-autorun-startup",children:I})}),e[31]=I,e[32]=j,e[33]=C,e[34]=A):A=e[34],e[35]===Symbol.for("react.memo_cache_sentinel")?(O=i.jsx("div",{className:"border-r border-border h-6 mx-1"}),e[35]=O):O=e[35];const D=a.runtime.on_cell_change==="autorun"?"Disable autorun":"Enable autorun";let M,R,L,z,T,F,$,W,G,X,H,Y,K;e[36]!==a.runtime.on_cell_change||e[37]!==b?(M=()=>b(a.runtime.on_cell_change!=="autorun"),e[36]=a.runtime.on_cell_change,e[37]=b,e[38]=M):M=e[38],e[39]===Symbol.for("react.memo_cache_sentinel")?(R=i.jsx("span",{children:"on cell change: "}),e[39]=R):R=e[39],e[40]!==a.runtime.on_cell_change?(L=i.jsxs("div",{className:"font-prose text-sm flex items-center gap-1 whitespace-nowrap",children:[R,a.runtime.on_cell_change==="autorun"?i.jsx(_t,{size:14}):i.jsx(Et,{size:14}),i.jsx("span",{children:a.runtime.on_cell_change})]}),e[40]=a.runtime.on_cell_change,e[41]=L):L=e[41],e[42]!==D||e[43]!==M||e[44]!==L?(z=i.jsx(zo,{name:"runtime.on_cell_change",children:i.jsx(At,{tooltip:D,selected:!1,onClick:M,"data-testid":"footer-autorun-cell-change",children:L})}),e[42]=D,e[43]=M,e[44]=L,e[45]=z):z=e[45],e[46]!==a.runtime.auto_reload||e[47]!==f?(T=!Qt()&&i.jsxs(i.Fragment,{children:[i.jsx("div",{className:"border-r border-border h-6 mx-1"}),i.jsx(zo,{name:"runtime.auto_reload",children:i.jsx(At,{tooltip:null,selected:!1,"data-testid":"footer-module-reload",children:i.jsxs(zn,{children:[i.jsxs(Un,{className:"font-prose text-sm flex items-center gap-1 whitespace-nowrap",children:[i.jsx("span",{children:"on module change: "}),a.runtime.auto_reload==="off"&&i.jsx(Ur,{size:14}),a.runtime.auto_reload==="lazy"&&i.jsx(Et,{size:14}),a.runtime.auto_reload==="autorun"&&i.jsx(_t,{size:14}),i.jsx("span",{children:a.runtime.auto_reload}),i.jsx($n,{size:14})]}),i.jsx(Wn,{children:["off","lazy","autorun"].map(ve=>i.jsxs(lo,{onClick:()=>f(ve),children:[ve==="off"&&i.jsx(Ur,{size:14,className:"mr-2 text-muted-foreground"}),ve==="lazy"&&i.jsx(Et,{size:14,className:"mr-2 text-muted-foreground"}),ve==="autorun"&&i.jsx(_t,{size:14,className:"mr-2 text-muted-foreground"}),ve]},ve))})]})})})]}),e[46]=a.runtime.auto_reload,e[47]=f,e[48]=T):T=e[48],e[49]!==A||e[50]!==z||e[51]!==T?(F=i.jsxs("div",{className:"hidden md:flex md:items-center",children:[A,O,z,T]}),e[49]=A,e[50]=z,e[51]=T,e[52]=F):F=e[52],e[53]!==y?($=y?i.jsx(Et,{size:16,className:"text-muted-foreground"}):i.jsx(_t,{size:16,className:"text-amber-500"}),e[53]=y,e[54]=$):$=e[54],e[55]===Symbol.for("react.memo_cache_sentinel")?(W=i.jsx($n,{size:14}),e[55]=W):W=e[55],e[56]!==$?(G=i.jsx(Un,{asChild:!0,children:i.jsx(At,{tooltip:"Runtime reactivity",selected:!1,"data-testid":"footer-runtime-settings",children:i.jsxs("div",{className:"flex items-center gap-1",children:[$,W]})})}),e[56]=$,e[57]=G):G=e[57],e[58]===Symbol.for("react.memo_cache_sentinel")?(X=i.jsx(Cp,{children:"Runtime reactivity"}),H=i.jsx(En,{}),e[58]=X,e[59]=H):(X=e[58],H=e[59]),e[60]!==a.runtime.auto_instantiate?(Y=a.runtime.auto_instantiate?i.jsx(_t,{size:14,className:"text-amber-500"}):i.jsx(Et,{size:14,className:"text-muted-foreground"}),e[60]=a.runtime.auto_instantiate,e[61]=Y):Y=e[61],e[62]===Symbol.for("react.memo_cache_sentinel")?(K=i.jsx("div",{className:"text-sm font-medium",children:"On startup"}),e[62]=K):K=e[62];const V=a.runtime.auto_instantiate?"autorun":"lazy";let q,U,ne,Q,ee,oe,se,ae,te;e[63]!==V?(q=i.jsxs("div",{children:[K,i.jsx("div",{className:"text-xs text-muted-foreground",children:V})]}),e[63]=V,e[64]=q):q=e[64],e[65]!==Y||e[66]!==q?(U=i.jsxs("div",{className:"flex items-center space-x-2",children:[Y,q]}),e[65]=Y,e[66]=q,e[67]=U):U=e[67],e[68]!==a.runtime.auto_instantiate||e[69]!==m?(ne=i.jsx(fc,{checked:a.runtime.auto_instantiate,onCheckedChange:m,size:"sm"}),e[68]=a.runtime.auto_instantiate,e[69]=m,e[70]=ne):ne=e[70],e[71]!==U||e[72]!==ne?(Q=i.jsx(zo,{name:"runtime.auto_instantiate",children:i.jsxs("div",{className:"flex items-center justify-between px-2 py-2",children:[U,ne]})}),e[71]=U,e[72]=ne,e[73]=Q):Q=e[73],e[74]===Symbol.for("react.memo_cache_sentinel")?(ee=i.jsx(En,{}),e[74]=ee):ee=e[74],e[75]!==a.runtime.on_cell_change?(oe=a.runtime.on_cell_change==="autorun"?i.jsx(_t,{size:14,className:"text-amber-500"}):i.jsx(Et,{size:14,className:"text-muted-foreground"}),e[75]=a.runtime.on_cell_change,e[76]=oe):oe=e[76],e[77]===Symbol.for("react.memo_cache_sentinel")?(se=i.jsx("div",{className:"text-sm font-medium",children:"On cell change"}),e[77]=se):se=e[77],e[78]!==a.runtime.on_cell_change?(ae=i.jsxs("div",{children:[se,i.jsx("div",{className:"text-xs text-muted-foreground",children:a.runtime.on_cell_change})]}),e[78]=a.runtime.on_cell_change,e[79]=ae):ae=e[79],e[80]!==oe||e[81]!==ae?(te=i.jsxs("div",{className:"flex items-center space-x-2",children:[oe,ae]}),e[80]=oe,e[81]=ae,e[82]=te):te=e[82];const _e=a.runtime.on_cell_change==="autorun";let he,we,ke,ge,Ee,Oe;return e[83]!==b||e[84]!==_e?(he=i.jsx(fc,{checked:_e,onCheckedChange:b,size:"sm"}),e[83]=b,e[84]=_e,e[85]=he):he=e[85],e[86]!==te||e[87]!==he?(we=i.jsx(zo,{name:"runtime.on_cell_change",children:i.jsxs("div",{className:"flex items-center justify-between px-2 py-2",children:[te,he]})}),e[86]=te,e[87]=he,e[88]=we):we=e[88],e[89]!==a.runtime.auto_reload||e[90]!==f?(ke=!Qt()&&i.jsxs(i.Fragment,{children:[i.jsx(En,{}),i.jsx(zo,{name:"runtime.auto_reload",children:i.jsxs("div",{className:"px-2 py-1",children:[i.jsxs("div",{className:"flex items-center space-x-2 mb-2",children:[a.runtime.auto_reload==="off"&&i.jsx(Ur,{size:14,className:"text-muted-foreground"}),a.runtime.auto_reload==="lazy"&&i.jsx(Et,{size:14,className:"text-muted-foreground"}),a.runtime.auto_reload==="autorun"&&i.jsx(_t,{size:14,className:"text-amber-500"}),i.jsxs("div",{children:[i.jsx("div",{className:"text-sm font-medium",children:"On module change"}),i.jsx("div",{className:"text-xs text-muted-foreground",children:a.runtime.auto_reload})]})]}),i.jsx("div",{className:"space-y-1",children:["off","lazy","autorun"].map(ve=>i.jsxs("button",{onClick:()=>f(ve),className:ue("w-full flex items-center px-2 py-1 text-sm rounded hover:bg-accent",ve===a.runtime.auto_reload&&"bg-accent"),children:[ve==="off"&&i.jsx(Ur,{size:12,className:"mr-2"}),ve==="lazy"&&i.jsx(Et,{size:12,className:"mr-2"}),ve==="autorun"&&i.jsx(_t,{size:12,className:"mr-2"}),i.jsx("span",{className:"capitalize",children:ve}),ve===a.runtime.auto_reload&&i.jsx("span",{className:"ml-auto",children:"\u2713"})]},ve))})]})})]}),e[89]=a.runtime.auto_reload,e[90]=f,e[91]=ke):ke=e[91],e[92]!==Q||e[93]!==we||e[94]!==ke?(ge=i.jsxs(Wn,{align:"start",className:"w-64",children:[X,H,Q,ee,we,ke]}),e[92]=Q,e[93]=we,e[94]=ke,e[95]=ge):ge=e[95],e[96]!==l||e[97]!==G||e[98]!==ge?(Ee=i.jsx("div",{className:"flex md:hidden",children:i.jsxs(zn,{open:l,onOpenChange:c,children:[G,ge]})}),e[96]=l,e[97]=G,e[98]=ge,e[99]=Ee):Ee=e[99],e[100]!==F||e[101]!==Ee||e[102]!==w?(Oe=i.jsxs("div",{className:w,children:[F,Ee]}),e[100]=F,e[101]=Ee,e[102]=w,e[103]=Oe):Oe=e[103],Oe},dw=()=>{const t=P.c(24),{selectedPanel:e,isTerminalOpen:n}=Xs(),{toggleApplication:o,toggleTerminal:r}=kr(),s=ie(Gj),a=uw,l=Yr.find(hw);let c;Zt(l,"Error panel not found"),t[0]!==r?(c=()=>{r()},t[0]=r,t[1]=c):c=t[1],st("global.toggleTerminal",c);const d=At,u=l.tooltip,h=e===l.type,m=()=>o(l.type),p=a(l,s>0?"text-destructive":"");let b,x,f,g,y,w,j,C,N,k;return t[2]!==s?(b=i.jsx("span",{className:"ml-1 font-mono mt-0.5",children:s}),t[2]=s,t[3]=b):b=t[3],t[4]!==d||t[5]!==l||t[6]!==h||t[7]!==m||t[8]!==p||t[9]!==b?(x=i.jsxs(d,{tooltip:u,selected:h,onClick:m,"data-testid":"footer-errors",children:[p,b]}),t[4]=d,t[5]=l,t[6]=h,t[7]=m,t[8]=p,t[9]=b,t[10]=x):x=t[10],t[11]!==r?(f=()=>r(),t[11]=r,t[12]=f):f=t[12],t[13]===Symbol.for("react.memo_cache_sentinel")?(g=i.jsx(Pc,{className:"h-5 w-5"}),t[13]=g):g=t[13],t[14]!==n||t[15]!==f?(y=i.jsx(Qf,{capability:"terminal",children:i.jsx(At,{tooltip:"Open terminal",selected:n,onClick:f,"data-testid":"footer-terminal",children:g})}),t[14]=n,t[15]=f,t[16]=y):y=t[16],t[17]===Symbol.for("react.memo_cache_sentinel")?(w=i.jsx(cw,{}),j=i.jsx("div",{className:"mx-auto"}),t[17]=w,t[18]=j):(w=t[17],j=t[18]),t[19]===Symbol.for("react.memo_cache_sentinel")?(C=i.jsx(du,{children:i.jsx(pe,{content:i.jsx("div",{className:"w-[200px]",children:"Kiosk mode is enabled. This allows you to view the outputs of the cells without the ability to edit them."}),children:i.jsx("span",{className:"text-muted-foreground text-sm mr-4",children:"kiosk mode"})})}),t[19]=C):C=t[19],t[20]===Symbol.for("react.memo_cache_sentinel")?(N=i.jsxs("div",{className:"flex items-center shrink-0 min-w-0",children:[i.jsx(Qv,{}),i.jsx(aw,{}),i.jsx(qv,{}),i.jsx(Yv,{}),i.jsx(lw,{}),i.jsx(Hv,{})]}),t[20]=N):N=t[20],t[21]!==y||t[22]!==x?(k=i.jsxs("footer",{className:"h-10 py-2 bg-background flex items-center text-muted-foreground text-md px-1 border-t border-border select-none no-print text-sm shadow-[0_0_4px_1px_rgba(0,0,0,0.1)] z-50 print:hidden hide-on-fullscreen overflow-x-auto overflow-y-hidden scrollbar-thin",children:[x,y,w,j,C,N]}),t[21]=y,t[22]=x,t[23]=k):k=t[23],k};function uw(t,e){const{Icon:n}=t;return i.jsx(n,{className:ue("h-5 w-5",e)})}function hw(t){return t.type==="errors"}const mw=t=>{const e=P.c(6),{children:n}=t,{openModal:o,closeModal:r}=Pn();let s,a;return e[0]!==r||e[1]!==o?(s=()=>o(i.jsx(fw,{onClose:r})),e[0]=r,e[1]=o,e[2]=s):s=e[2],e[3]!==n||e[4]!==s?(a=i.jsx(qj,{onClick:s,children:n}),e[3]=n,e[4]=s,e[5]=a):a=e[5],a},fw=t=>{const e=P.c(9),{onClose:n}=t;let o,r,s,a,l,c,d;return e[0]!==n?(o=async u=>{u.preventDefault();const h=new FormData(u.target),m=h.get("rating"),p=h.get("message");fetch("https://marimo.io/api/feedback",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({rating:m,message:p})}),n(),ze({title:"Feedback sent!",description:"Thank you for your feedback!"})},e[0]=n,e[1]=o):o=e[1],e[2]===Symbol.for("react.memo_cache_sentinel")?(r=i.jsx(so,{children:"Send Feedback"}),e[2]=r):r=e[2],e[3]===Symbol.for("react.memo_cache_sentinel")?(s=i.jsx("p",{className:"my-2 prose dark:prose-invert",children:"We want to hear from you \u2014 from minor bug reports to wishlist features and everything in between. Here are some ways you can get in touch:"}),e[3]=s):s=e[3],e[4]===Symbol.for("react.memo_cache_sentinel")?(a=i.jsxs("li",{className:"my-0",children:["Take our"," ",i.jsx("a",{href:Xt.feedbackForm,target:"_blank",className:"underline",children:"two-minute survey."})]}),e[4]=a):a=e[4],e[5]===Symbol.for("react.memo_cache_sentinel")?(l=i.jsxs("li",{className:"my-0",children:["File a"," ",i.jsx("a",{href:Xt.issuesPage,target:"_blank",className:"underline",children:"GitHub issue."})]}),e[5]=l):l=e[5],e[6]===Symbol.for("react.memo_cache_sentinel")?(c=i.jsxs(yr,{children:[r,i.jsxs(vr,{children:[s,i.jsxs("ul",{className:"list-disc ml-8 my-2 prose dark:prose-invert",children:[a,l,i.jsxs("li",{className:"my-0",children:["Chat with us on"," ",i.jsx("a",{href:Xt.discordLink,target:"_blank",className:"underline",children:"Discord."})]})]}),i.jsx("p",{className:"my-2 prose dark:prose-invert",children:"We're excited you're here as we build the future of Python data tooling. Thanks for being part of our community!"})]})]}),e[6]=c):c=e[6],e[7]!==o?(d=i.jsx(io,{className:"w-fit",children:i.jsx("form",{onSubmit:o,children:c})}),e[7]=o,e[8]=d):d=e[8],d},pw=()=>{const t=P.c(10),{selectedPanel:e}=Xs(),{toggleApplication:n}=kr(),o=bw;let r,s,a,l,c,d;return t[0]!==e||t[1]!==n?(r="h-full pt-4 pb-1 px-1 flex flex-col items-start text-muted-foreground text-md select-none no-print text-sm z-50 dark:bg-background print:hidden hide-on-fullscreen",s=Yr.filter(xw).map(u=>i.jsx(tp,{tooltip:u.tooltip,selected:e===u.type,onClick:()=>n(u.type),children:o(u)},u.type)),t[0]=e,t[1]=n,t[2]=r,t[3]=s):(r=t[2],s=t[3]),t[4]===Symbol.for("react.memo_cache_sentinel")?(a=i.jsx(mw,{children:i.jsx(tp,{tooltip:"Send feedback!",selected:!1,children:i.jsx(ad,{className:"h-5 w-5"})})}),l=i.jsx("div",{className:"flex-1"}),c=i.jsx(gw,{}),t[4]=a,t[5]=l,t[6]=c):(a=t[4],l=t[5],c=t[6]),t[7]!==r||t[8]!==s?(d=i.jsxs("div",{className:r,children:[s,a,l,c]}),t[7]=r,t[8]=s,t[9]=d):d=t[9],d},gw=()=>{const t=P.c(7),e=ie(Hj);let n,o,r;return t[0]!==e?(n=e>0?i.jsxs("span",{children:[e," cell",e>1?"s":""," queued or running"]}):"No cells queued or running",t[0]=e,t[1]=n):n=t[1],t[2]!==e?(o=i.jsx("div",{className:"flex flex-col-reverse gap-px overflow-hidden",children:Array.from({length:e}).map(yw)}),t[2]=e,t[3]=o):o=t[3],t[4]!==n||t[5]!==o?(r=i.jsx(pe,{content:n,side:"right",delayDuration:200,children:o}),t[4]=n,t[5]=o,t[6]=r):r=t[6],r},tp=t=>{const e=P.c(17);let n,o,r,s,a;e[0]!==t?({children:n,tooltip:a,selected:s,className:o,...r}=t,e[0]=t,e[1]=n,e[2]=o,e[3]=r,e[4]=s,e[5]=a):(n=e[1],o=e[2],r=e[3],s=e[4],a=e[5]);const l=!s&&"hover:bg-(--sage-3)",c=s&&"bg-(--sage-4)";let d,u,h;return e[6]!==o||e[7]!==l||e[8]!==c?(d=ue("flex items-center p-2 text-sm mx-px shadow-inset font-mono cursor-pointer rounded",l,c,o),e[6]=o,e[7]=l,e[8]=c,e[9]=d):d=e[9],e[10]!==n||e[11]!==r||e[12]!==d?(u=i.jsx("button",{className:d,...r,children:n}),e[10]=n,e[11]=r,e[12]=d,e[13]=u):u=e[13],e[14]!==u||e[15]!==a?(h=i.jsx(pe,{content:a,side:"right",delayDuration:200,children:u}),e[14]=u,e[15]=a,e[16]=h):h=e[16],h};function bw(t,e){const{Icon:n}=t;return i.jsx(n,{className:ue("h-5 w-5",e)})}function xw(t){return!t.hidden&&t.position==="sidebar"}function yw(t,e){return i.jsx("div",{className:"shrink-0 h-1 w-2 bg-(--grass-6) border border-(--grass-7)"},e.toString())}const vw=t=>{const e=P.c(4),{isOpen:n,children:o}=t,[r,s]=me.useState(!1);let a,l;return e[0]!==r||e[1]!==n?(a=()=>{n&&!r&&s(!0)},l=[n,r],e[0]=r,e[1]=n,e[2]=a,e[3]=l):(a=e[2],l=e[3]),me.useEffect(a,l),r?o:null},ww=t=>{const e=P.c(38),n=ie(Jj),o=ie(rw),r=Ye(),s=_1(),a=t.cellId,l=o[t.cellId],c=Lr(t.cellId),d=c.code,u=Fr(t.cellId);let h,m,p,b,x,f,g,y,w,j;if(e[0]!==r||e[1]!==s||e[2]!==n.focusedCellId||e[3]!==o||e[4]!==t.cellId||e[5]!==l||e[6]!==c.code||e[7]!==u.errored){h={id:a,graph:l,code:d,hasError:u.errored},n.focusedCellId&&o[n.focusedCellId]&&(b={id:n.focusedCellId,graph:o[n.focusedCellId]}),p=(b==null?void 0:b.id)===h.id,m=op(h.graph)?1.5:3;const _=()=>{p?s.blurCell():(r.focusCell({cellId:h.id,where:"exact"}),s.focusCell({cellId:h.id}))};g=h.id;const I=p?"text-primary-foreground":"text-(--gray-8) hover:text-(--gray-9)";e[18]!==I?(y=ue("group bg-transparent text-left w-full flex relative justify-between items-center","border-none rounded cursor-pointer","h-[21px] pl-[51px] font-inherit",I),e[18]=I,e[19]=y):y=e[19],w=_,j=Ew;const A=p&&"bg-primary group-hover:bg-primary";let O;e[20]!==A?(O=ue("group-hover:bg-(--gray-2) flex h-full w-full px-0.5 items-center rounded",A),e[20]=A,e[21]=O):O=e[21],x=i.jsx("div",{className:O,children:i.jsx("div",{className:"truncate px-1 font-mono text-sm flex gap-1",title:h.code,children:h.graph.variables.length>0?i.jsx(Cw,{cell:h,selectedCell:b}):i.jsx("span",{className:"overflow-hidden text-ellipsis whitespace-nowrap max-w-full",children:(C=h.code,(C.split(`
|
|
129
|
-
`)[0].trim()||void 0)??i.jsx("span",{className:"italic",children:"empty"}))})})}),f=ue("absolute overflow-visible top-[10.5px] left-[calc(var(--spacing-extra-small,8px)+17px)] pointer-events-none",p?"z-30":"z-20",(function({cell:D,selectedCell:M}){return D.hasError?"text-destructive":!M&&!op(D.graph)?"text-foreground":(M==null?void 0:M.id)===D.id||M!=null&&M.graph.parents.has(D.id)||M!=null&&M.graph.children.has(D.id)?"text-primary":"text-(--gray-8)"})({cell:h,selectedCell:b})),e[0]=r,e[1]=s,e[2]=n.focusedCellId,e[3]=o,e[4]=t.cellId,e[5]=l,e[6]=c.code,e[7]=u.errored,e[8]=h,e[9]=m,e[10]=p,e[11]=b,e[12]=x,e[13]=f,e[14]=g,e[15]=y,e[16]=w,e[17]=j}else h=e[8],m=e[9],p=e[10],b=e[11],x=e[12],f=e[13],g=e[14],y=e[15],w=e[16],j=e[17];var C;let N,k,E;return e[22]!==h||e[23]!==m||e[24]!==p||e[25]!==t.cellPositions||e[26]!==b?(N=p?i.jsx(Nw,{cell:h,cellPositions:t.cellPositions,circleRadius:m}):i.jsx(Sw,{cell:h,selectedCell:b,circleRadius:m}),e[22]=h,e[23]=m,e[24]=p,e[25]=t.cellPositions,e[26]=b,e[27]=N):N=e[27],e[28]!==N||e[29]!==f?(k=i.jsx("svg",{className:f,width:"1",height:"1",children:N}),e[28]=N,e[29]=f,e[30]=k):k=e[30],e[31]!==x||e[32]!==k||e[33]!==g||e[34]!==y||e[35]!==w||e[36]!==j?(E=i.jsxs("button",{"data-node-id":g,className:y,onClick:w,onMouseDown:j,children:[x,k]}),e[31]=x,e[32]=k,e[33]=g,e[34]=y,e[35]=w,e[36]=j,e[37]=E):E=e[37],E},kw=t=>{const e=P.c(28),{open:n,setOpen:o}=t,r=jc();let s;e[0]!==r.inOrderIds?(s=Object.fromEntries(r.inOrderIds.map(_w)),e[0]=r.inOrderIds,e[1]=s):s=e[1];const a=s;let l;if(e[2]!==r){l=[];let w=0;for(const[j,C]of r.getColumns().entries())j>0&&l.push(w),w+=C.inOrderIds.length;e[2]=r,e[3]=l}else l=e[3];const c=n?"translate-x-0":"translate-x-[calc(100%+20px)]";let d,u,h,m,p,b,x,f,g,y;if(e[4]!==c?(d=ue("fixed top-14 right-5 z-50 bg-background/95 backdrop-blur-sm supports-backdrop-filter:bg-background/60 rounded-lg border shadow-lg w-64 flex flex-col max-h-[58vh]","motion-safe:transition-transform motion-safe:duration-200 motion-safe:ease-in-out",c),e[4]=c,e[5]=d):d=e[5],e[6]===Symbol.for("react.memo_cache_sentinel")?(u=i.jsx("span",{className:"text-sm font-semibold",children:"Minimap"}),e[6]=u):u=e[6],e[7]!==o?(h=()=>o(!1),e[7]=o,e[8]=h):h=e[8],e[9]===Symbol.for("react.memo_cache_sentinel")?(m=i.jsx(Vt,{className:"h-4 w-4"}),e[9]=m):m=e[9],e[10]!==h?(p=i.jsxs("div",{className:"flex items-center justify-between p-4 border-b",children:[u,i.jsx(ye,{variant:"ghost",size:"icon",className:"h-6 w-6",onClick:h,children:m})]}),e[10]=h,e[11]=p):p=e[11],e[12]!==r.inOrderIds||e[13]!==a||e[14]!==l){let w;e[16]!==a||e[17]!==l?(w=(j,C)=>{const N=l.includes(C);return i.jsxs(S.Fragment,{children:[N&&i.jsx("div",{className:"absolute left-5 w-[36px] h-px bg-(--gray-4) pointer-events-none","aria-hidden":"true"}),i.jsx(ww,{cellId:j,cellPositions:a})]},j)},e[16]=a,e[17]=l,e[18]=w):w=e[18],b=r.inOrderIds.map(w),e[12]=r.inOrderIds,e[13]=a,e[14]=l,e[15]=b}else b=e[15];return e[19]!==b?(x=i.jsx("div",{className:"py-3 pl-3 pr-4 relative min-h-full",children:b}),e[19]=b,e[20]=x):x=e[20],e[21]===Symbol.for("react.memo_cache_sentinel")?(f=i.jsx("div",{className:"h-0 overflow-hidden","aria-hidden":"true"}),e[21]=f):f=e[21],e[22]!==x?(g=i.jsxs("div",{className:"overflow-y-auto overflow-x-hidden flex-1 scrollbar-none",children:[x,f]}),e[22]=x,e[23]=g):g=e[23],e[24]!==g||e[25]!==d||e[26]!==p?(y=i.jsxs("div",{className:d,children:[p,g]}),e[24]=g,e[25]=d,e[26]=p,e[27]=y):y=e[27],y},jw=()=>{const t=P.c(5),[e,n]=_n(ep);let o,r;return t[0]!==n?(o=()=>n(Iw),t[0]=n,t[1]=o):o=t[1],st("global.toggleMinimap",o),t[2]!==e||t[3]!==n?(r=i.jsx(kw,{open:e,setOpen:n}),t[2]=e,t[3]=n,t[4]=r):r=t[4],r},Cw=t=>{const e=P.c(11),{cell:n,selectedCell:o}=t,r=Kj(),s=n.id===(o==null?void 0:o.id);let a,l;if(e[0]!==n.graph.variables||e[1]!==s||e[2]!==o||e[3]!==r){let c;e[5]!==s||e[6]!==o||e[7]!==r?(c=(d,u)=>{const h=r[d];return i.jsxs(S.Fragment,{children:[u>0&&", ",i.jsx("span",{className:ue({"font-bold":s,"text-foreground":o===void 0,"text-primary font-medium":!s&&sw(h,o)}),children:d})]},d)},e[5]=s,e[6]=o,e[7]=r,e[8]=c):c=e[8],a=n.graph.variables.map(c),e[0]=n.graph.variables,e[1]=s,e[2]=o,e[3]=r,e[4]=a}else a=e[4];return e[9]!==a?(l=i.jsx(i.Fragment,{children:a}),e[9]=a,e[10]=l):l=e[10],l},Nw=t=>{const e=P.c(12),{cell:n,cellPositions:o,circleRadius:r}=t;let s,a,l,c;if(e[0]!==n.graph.children||e[1]!==n.graph.parents||e[2]!==n.id||e[3]!==o){s=[];const d=o[n.id]??0,u=new Set;for(const h of n.graph.parents)n.graph.children.has(h)&&u.add(h);for(const h of u){const m=o[h];if(m!==void 0){const p=21*(m-d);s.push(i.jsx("path",{d:`M -3 0 H -7 v ${p} h 14 v ${-p} H 3`,fill:"none",strokeWidth:"2",stroke:"currentColor"},`${n.id}-cycle-${h}`))}}for(const h of n.graph.parents){if(u.has(h))continue;const m=o[h];if(m!==void 0){const p=21*(m-d);s.push(i.jsx("path",{d:`M -3 0 H -7 v ${p} h -4`,fill:"none",strokeWidth:"2",stroke:"currentColor"},`${n.id}-up-${h}`))}}for(const h of n.graph.children){if(u.has(h))continue;const m=o[h];if(m!==void 0){const p=21*(m-d);s.push(i.jsx("path",{d:`M 3 0 H 7 v ${p} h 4`,fill:"none",strokeWidth:"2",stroke:"currentColor"},`${n.id}-down-${h}`))}}e[0]=n.graph.children,e[1]=n.graph.parents,e[2]=n.id,e[3]=o,e[4]=s}else s=e[4];return e[5]!==r?(a=i.jsx("circle",{r,fill:"currentColor",className:"pointer-events-auto"}),e[5]=r,e[6]=a):a=e[6],e[7]!==s?(l=i.jsx("g",{className:"pen pointer-events-auto",children:s}),e[7]=s,e[8]=l):l=e[8],e[9]!==a||e[10]!==l?(c=i.jsxs("g",{transform:"translate(0, 0)",children:[a,l]}),e[9]=a,e[10]=l,e[11]=c):c=e[11],c};function Sw(t){const{cell:e,selectedCell:n,circleRadius:o}=t,r=e.graph.ancestors.size>0,s=e.graph.descendants.size>0;if(!n)return np({circleRadius:o,leftWisker:r,rightWisker:s});const a=n.graph.ancestors.has(e.id),l=n.graph.descendants.has(e.id);return np(a||l?{circleRadius:o,leftWisker:r,rightWisker:s,shift:a&&l?void 0:a?"left":"right"}:{circleRadius:o,leftWisker:!1,rightWisker:!1})}function np(t){const{circleRadius:e,leftWisker:n,rightWisker:o,shift:r}=t,s=r===void 0?0:r==="left"?-14:14;return i.jsxs("g",{transform:`translate(${s}, 0)`,children:[i.jsxs("g",{children:[n&&i.jsx("path",{d:"M 0 0 h -8",fill:"none",strokeWidth:"2",stroke:"currentColor"}),o&&i.jsx("path",{d:"M 0 0 h 8",fill:"none",strokeWidth:"2",stroke:"currentColor"})]}),i.jsx("circle",{r:e,fill:"currentColor",className:"pointer-events-auto"})]})}function op(t){return t.variables.length===0&&t.ancestors.size===0&&t.descendants.size===0}function Ew(t){return t.preventDefault()}function _w(t,e){return[t,e]}function Iw(t){return!t}const Aw=me.lazy(()=>mt(()=>import("./terminal-CATzv5Hd.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110]),import.meta.url)),Tw=me.lazy(()=>mt(()=>import("./chat-panel-DgJZr0eS.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([111,1,2,4,5,112,113,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,114,115,116,117,107,108,109]),import.meta.url)),Dw=me.lazy(()=>mt(()=>import("./agent-panel-BBd11wNX.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([118,1,2,113,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,114,115,116,4,5,112,3,107,108,109,119]),import.meta.url)),Mw=me.lazy(()=>mt(()=>import("./dependency-graph-panel-CZC_B7pK.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([120,1,2,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,121,122,123,124,125,4,5,107,108,109,126]),import.meta.url)),Ow=me.lazy(()=>mt(()=>import("./datasources-panel-Bt41Zir-.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([127,1,2,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,112,128,108,129,4,5,107,109]),import.meta.url)),Rw=me.lazy(()=>mt(()=>import("./documentation-panel-C7yIvGg1.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([130,1,2,112,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109]),import.meta.url)),Lw=me.lazy(()=>mt(()=>import("./error-panel-Ddb8RkFG.js"),__vite__mapDeps([131,1,2,112]),import.meta.url)),Fw=me.lazy(()=>mt(()=>import("./file-explorer-panel-Oy9DbyFP.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([132,1,2,4,5,133,134,135,125,115,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109]),import.meta.url)),Bw=me.lazy(()=>mt(()=>import("./logs-panel-Dxiyt7dO.js"),__vite__mapDeps([136,1,2,137,112]),import.meta.url)),Pw=me.lazy(()=>mt(()=>import("./outline-panel-CMJjOoN7.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([138,1,2,112,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,139]),import.meta.url)),zw=me.lazy(()=>mt(()=>import("./packages-panel-nfXB-bKW.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([140,1,2,4,5,112,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109]),import.meta.url)),Uw=me.lazy(()=>mt(()=>import("./scratchpad-panel-Ja1Mu-W3.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([141,1,2,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,115,4,5,107,108,109]),import.meta.url)),Ww=me.lazy(()=>mt(()=>import("./secrets-panel-B-3fcSyP.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([142,1,2,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,112,4,5,107,108,109]),import.meta.url)),$w=me.lazy(()=>mt(()=>import("./snippets-panel-ClNnwKBM.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([143,1,2,112,115,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,144]),import.meta.url)),Vw=me.lazy(()=>mt(()=>import("./tracing-panel-DmzqPUtc.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([145,1,2]),import.meta.url)),Gw=me.lazy(()=>mt(()=>import("./variable-panel-BbgupOdG.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([146,1,2,124,128,108,129,112,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,109]),import.meta.url)),qw=t=>{const e=P.c(127),{children:n}=t,{isSidebarOpen:o,isTerminalOpen:r,selectedPanel:s}=Xs(),{setIsSidebarOpen:a,setIsTerminalOpen:l}=kr(),c=me.useRef(null),d=me.useRef(null),u=S.useId(),h=S.useId();let m,p,b,x,f;e[0]!==o?(m=()=>{if(!c.current)return;const le=c.current.isCollapsed();o&&le&&c.current.expand(),o||le||c.current.collapse(),requestAnimationFrame(Jw)},p=[o],e[0]=o,e[1]=m,e[2]=p):(m=e[1],p=e[2]),S.useEffect(m,p),e[3]!==r?(b=()=>{if(!d.current)return;const le=d.current.isCollapsed();r&&le&&d.current.expand(),r||le||d.current.collapse(),requestAnimationFrame(Yw)},x=[r],e[3]=r,e[4]=b,e[5]=x):(b=e[4],x=e[5]),S.useEffect(b,x),e[6]!==n?(f=i.jsx(ka,{id:"app",className:"relative h-full",children:i.jsx(S.Suspense,{children:n})},"app"),e[6]=n,e[7]=f):f=e[7];const g=f,y=o?"resize-handle":"resize-handle-collapsed";let w,j;e[8]!==y?(w=ue("border-border no-print z-10",y,"vertical"),e[8]=y,e[9]=w):w=e[9],e[10]!==w?(j=i.jsx($1,{onDragging:V1,className:w}),e[10]=w,e[11]=j):j=e[11];const C=j,N=r?"resize-handle":"resize-handle-collapsed";let k,E;e[12]!==N?(k=ue("border-border no-print z-20",N,"horizontal"),e[12]=N,e[13]=k):k=e[13],e[14]!==k?(E=i.jsx($1,{onDragging:V1,className:k}),e[14]=k,e[15]=E):E=e[15];const _=E;let I,A,O,D,M,R,L,z,T,F,$,W,G,X,H,Y,K,V,q,U,ne,Q;e[16]!==s?(I=i.jsx("div",{className:"text-sm text-(--slate-11) uppercase tracking-wide font-semibold flex-1",children:s}),e[16]=s,e[17]=I):I=e[17],e[18]!==a?(A=()=>a(!1),e[18]=a,e[19]=A):A=e[19],e[20]===Symbol.for("react.memo_cache_sentinel")?(O=i.jsx(Vt,{className:"w-4 h-4"}),e[20]=O):O=e[20],e[21]!==A?(D=i.jsx(ye,{"data-testid":"close-helper-pane",className:"m-0",size:"xs",variant:"text",onClick:A,children:O}),e[21]=A,e[22]=D):D=e[22],e[23]!==I||e[24]!==D?(M=i.jsxs("div",{className:"p-3 border-b flex justify-between items-center",children:[I,D]}),e[23]=I,e[24]=D,e[25]=M):M=e[25],e[26]!==s?(R=s==="files"&&i.jsx(Fw,{}),e[26]=s,e[27]=R):R=e[27],e[28]!==s?(L=s==="errors"&&i.jsx(Lw,{}),e[28]=s,e[29]=L):L=e[29],e[30]!==s?(z=s==="variables"&&i.jsx(Gw,{}),e[30]=s,e[31]=z):z=e[31],e[32]!==s?(T=s==="dependencies"&&i.jsx(Mw,{}),e[32]=s,e[33]=T):T=e[33],e[34]!==s?(F=s==="packages"&&i.jsx(zw,{}),e[34]=s,e[35]=F):F=e[35],e[36]!==s?($=s==="outline"&&i.jsx(Pw,{}),e[36]=s,e[37]=$):$=e[37],e[38]!==s?(W=s==="datasources"&&i.jsx(Ow,{}),e[38]=s,e[39]=W):W=e[39],e[40]!==s?(G=s==="documentation"&&i.jsx(Rw,{}),e[40]=s,e[41]=G):G=e[41],e[42]!==s?(X=s==="snippets"&&i.jsx($w,{}),e[42]=s,e[43]=X):X=e[43],e[44]!==s?(H=s==="scratchpad"&&i.jsx(Uw,{}),e[44]=s,e[45]=H):H=e[45],e[46]!==s?(Y=s==="chat"&&i.jsx(Tw,{}),e[46]=s,e[47]=Y):Y=e[47],e[48]!==s?(K=s==="agents"&&i.jsx(Dw,{}),e[48]=s,e[49]=K):K=e[49],e[50]!==s?(V=s==="logs"&&i.jsx(Bw,{}),e[50]=s,e[51]=V):V=e[51],e[52]!==s?(q=s==="tracing"&&i.jsx(Vw,{}),e[52]=s,e[53]=q):q=e[53],e[54]!==s?(U=s==="secrets"&&i.jsx(Ww,{}),e[54]=s,e[55]=U):U=e[55],e[56]!==R||e[57]!==L||e[58]!==z||e[59]!==T||e[60]!==F||e[61]!==$||e[62]!==W||e[63]!==G||e[64]!==X||e[65]!==H||e[66]!==Y||e[67]!==K||e[68]!==V||e[69]!==q||e[70]!==U?(ne=i.jsx(S.Suspense,{children:i.jsxs(va,{children:[R,L,z,T,F,$,W,G,X,H,Y,K,V,q,U]})}),e[56]=R,e[57]=L,e[58]=z,e[59]=T,e[60]=F,e[61]=$,e[62]=W,e[63]=G,e[64]=X,e[65]=H,e[66]=Y,e[67]=K,e[68]=V,e[69]=q,e[70]=U,e[71]=ne):ne=e[71],e[72]!==M||e[73]!==ne?(Q=i.jsx(Yl,{children:i.jsxs("div",{className:"flex flex-col h-full flex-1 overflow-hidden mr-[-4px]",children:[M,ne]})}),e[72]=M,e[73]=ne,e[74]=Q):Q=e[74];const ee=Q,oe=`helper-${u}`,se=o&&"border-r border-l border-(--slate-7)";let ae,te,_e,he,we,ke;e[75]!==se?(ae=ue("dark:bg-(--slate-1) no-print print:hidden hide-on-fullscreen",se),e[75]=se,e[76]=ae):ae=e[76],e[77]===Symbol.for("react.memo_cache_sentinel")?(te=(le,je)=>{var Ne;je===0&&le===10&&((Ne=c.current)==null||Ne.resize(30))},e[77]=te):te=e[77],e[78]!==a?(_e=()=>a(!1),he=()=>a(!0),e[78]=a,e[79]=_e,e[80]=he):(_e=e[79],he=e[80]),e[81]!==ee||e[82]!==C?(we=i.jsxs("span",{className:"flex flex-row h-full",children:[ee," ",C]}),e[81]=ee,e[82]=C,e[83]=we):we=e[83],e[84]!==oe||e[85]!==ae||e[86]!==_e||e[87]!==he||e[88]!==we?(ke=i.jsx(ka,{ref:c,id:oe,"data-testid":"helper",collapsedSize:0,collapsible:!0,className:ae,minSize:10,defaultSize:0,maxSize:75,onResize:te,onCollapse:_e,onExpand:he,children:we},"helper"),e[84]=oe,e[85]=ae,e[86]=_e,e[87]=he,e[88]=we,e[89]=ke):ke=e[89];const ge=ke,Ee=`terminal-${h}`,Oe=r&&"border-(--slate-7)";let ve,be,et,rt,ct,dt,pt,ut,wt;e[90]!==Oe?(ve=ue("dark:bg-(--slate-1) no-print print:hidden hide-on-fullscreen",Oe),e[90]=Oe,e[91]=ve):ve=e[91],e[92]===Symbol.for("react.memo_cache_sentinel")?(be=(le,je)=>{var Ne;je===0&&le===10&&((Ne=d.current)==null||Ne.resize(30))},e[92]=be):be=e[92],e[93]!==l?(et=()=>l(!1),rt=()=>l(!0),e[93]=l,e[94]=et,e[95]=rt):(et=e[94],rt=e[95]),e[96]===Symbol.for("react.memo_cache_sentinel")?(ct=i.jsx("div",{}),e[96]=ct):ct=e[96],e[97]!==l?(dt=()=>l(!1),e[97]=l,e[98]=dt):dt=e[98],e[99]!==r||e[100]!==dt?(pt=i.jsx(S.Suspense,{fallback:ct,children:i.jsx(Aw,{visible:r,onClose:dt})}),e[99]=r,e[100]=dt,e[101]=pt):pt=e[101],e[102]!==r||e[103]!==pt?(ut=i.jsx(vw,{isOpen:r,children:pt}),e[102]=r,e[103]=pt,e[104]=ut):ut=e[104],e[105]!==Ee||e[106]!==ve||e[107]!==et||e[108]!==rt||e[109]!==ut||e[110]!==_?(wt=i.jsxs(ka,{ref:d,id:Ee,"data-testid":"terminal",collapsedSize:0,collapsible:!0,className:ve,minSize:10,defaultSize:0,maxSize:75,onResize:be,onCollapse:et,onExpand:rt,children:[_,ut]},"terminal"),e[105]=Ee,e[106]=ve,e[107]=et,e[108]=rt,e[109]=ut,e[110]=_,e[111]=wt):wt=e[111];const Lt=wt;let On,Jt,Ft,zt,to,Rn,No,re,ce;return e[112]===Symbol.for("react.memo_cache_sentinel")?(On=AC(),e[112]=On):On=e[112],e[113]===Symbol.for("react.memo_cache_sentinel")?(Jt=i.jsx(va,{children:i.jsx(pw,{})}),e[113]=Jt):Jt=e[113],e[114]!==Lt?(Ft=i.jsx(Qf,{capability:"terminal",children:Lt}),e[114]=Lt,e[115]=Ft):Ft=e[115],e[116]!==g||e[117]!==Ft?(zt=i.jsx(ka,{children:i.jsxs(G1,{autoSaveId:"marimo:chrome:v1:l1",direction:"vertical",children:[g,Ft]})}),e[116]=g,e[117]=Ft,e[118]=zt):zt=e[118],e[119]===Symbol.for("react.memo_cache_sentinel")?(to=i.jsx(Yj,{}),e[119]=to):to=e[119],e[120]!==ge||e[121]!==zt?(Rn=i.jsxs(G1,{autoSaveId:"marimo:chrome:v1:l2",direction:"horizontal",storage:On,children:[Jt,ge,zt,to]}),e[120]=ge,e[121]=zt,e[122]=Rn):Rn=e[122],e[123]===Symbol.for("react.memo_cache_sentinel")?(No=i.jsx(jw,{}),e[123]=No):No=e[123],e[124]===Symbol.for("react.memo_cache_sentinel")?(re=i.jsx(Yl,{children:i.jsx(va,{children:i.jsx(dw,{})})}),e[124]=re):re=e[124],e[125]!==Rn?(ce=i.jsxs(TC,{children:[Rn,No,re]}),e[125]=Rn,e[126]=ce):ce=e[126],ce};function Hw(){window.dispatchEvent(new Event("resize"))}function Jw(){requestAnimationFrame(Hw)}function Kw(){window.dispatchEvent(new Event("resize"))}function Yw(){requestAnimationFrame(Kw)}let wl,rp;wl=S.lazy(()=>mt(()=>import("./command-palette-D2fdVSET.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([147,1,2,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109]),import.meta.url)),rp=new URL(window.location.href).searchParams.get(Xj.showChrome)==="false",gg=Object.freeze(Object.defineProperty({__proto__:null,default:t=>{const e=P.c(10);if(rp){let s,a,l;return e[0]!==t?(s=i.jsx(Xf,{hideControls:!0,...t}),e[0]=t,e[1]=s):s=e[1],e[2]===Symbol.for("react.memo_cache_sentinel")?(a=i.jsx(wl,{}),e[2]=a):a=e[2],e[3]!==s?(l=i.jsxs(i.Fragment,{children:[s,a]}),e[3]=s,e[4]=l):l=e[4],l}let n,o,r;return e[5]!==t?(n=i.jsx(Xf,{...t}),e[5]=t,e[6]=n):n=e[6],e[7]===Symbol.for("react.memo_cache_sentinel")?(o=i.jsx(wl,{}),e[7]=o):o=e[7],e[8]!==n?(r=i.jsxs(qw,{children:[n,o]}),e[8]=n,e[9]=r):r=e[9],r}},Symbol.toStringTag,{value:"Module"}))});export{fg as A,Na as C,Sa as E,Ec as F,Ea as H,_c as K,Ic as N,Ac as P,Tc as R,Dc as S,Mc as T,Oc as W,BC as __tla,Rc as a,Lc as b,_a as c,Ia as d,Aa as e,Wo as f,pg as g,Ta as h,Fc as i,Bc as j,Pc as k,zc as l,Uc as m,gg as n,Wc as s,Da as u};
|
|
129
|
+
`)[0].trim()||void 0)??i.jsx("span",{className:"italic",children:"empty"}))})})}),f=ue("absolute overflow-visible top-[10.5px] left-[calc(var(--spacing-extra-small,8px)+17px)] pointer-events-none",p?"z-30":"z-20",(function({cell:D,selectedCell:M}){return D.hasError?"text-destructive":!M&&!op(D.graph)?"text-foreground":(M==null?void 0:M.id)===D.id||M!=null&&M.graph.parents.has(D.id)||M!=null&&M.graph.children.has(D.id)?"text-primary":"text-(--gray-8)"})({cell:h,selectedCell:b})),e[0]=r,e[1]=s,e[2]=n.focusedCellId,e[3]=o,e[4]=t.cellId,e[5]=l,e[6]=c.code,e[7]=u.errored,e[8]=h,e[9]=m,e[10]=p,e[11]=b,e[12]=x,e[13]=f,e[14]=g,e[15]=y,e[16]=w,e[17]=j}else h=e[8],m=e[9],p=e[10],b=e[11],x=e[12],f=e[13],g=e[14],y=e[15],w=e[16],j=e[17];var C;let N,k,E;return e[22]!==h||e[23]!==m||e[24]!==p||e[25]!==t.cellPositions||e[26]!==b?(N=p?i.jsx(Nw,{cell:h,cellPositions:t.cellPositions,circleRadius:m}):i.jsx(Sw,{cell:h,selectedCell:b,circleRadius:m}),e[22]=h,e[23]=m,e[24]=p,e[25]=t.cellPositions,e[26]=b,e[27]=N):N=e[27],e[28]!==N||e[29]!==f?(k=i.jsx("svg",{className:f,width:"1",height:"1",children:N}),e[28]=N,e[29]=f,e[30]=k):k=e[30],e[31]!==x||e[32]!==k||e[33]!==g||e[34]!==y||e[35]!==w||e[36]!==j?(E=i.jsxs("button",{"data-node-id":g,className:y,onClick:w,onMouseDown:j,children:[x,k]}),e[31]=x,e[32]=k,e[33]=g,e[34]=y,e[35]=w,e[36]=j,e[37]=E):E=e[37],E},kw=t=>{const e=P.c(28),{open:n,setOpen:o}=t,r=jc();let s;e[0]!==r.inOrderIds?(s=Object.fromEntries(r.inOrderIds.map(_w)),e[0]=r.inOrderIds,e[1]=s):s=e[1];const a=s;let l;if(e[2]!==r){l=[];let w=0;for(const[j,C]of r.getColumns().entries())j>0&&l.push(w),w+=C.inOrderIds.length;e[2]=r,e[3]=l}else l=e[3];const c=n?"translate-x-0":"translate-x-[calc(100%+20px)]";let d,u,h,m,p,b,x,f,g,y;if(e[4]!==c?(d=ue("fixed top-14 right-5 z-50 bg-background/95 backdrop-blur-sm supports-backdrop-filter:bg-background/60 rounded-lg border shadow-lg w-64 flex flex-col max-h-[58vh]","motion-safe:transition-transform motion-safe:duration-200 motion-safe:ease-in-out",c),e[4]=c,e[5]=d):d=e[5],e[6]===Symbol.for("react.memo_cache_sentinel")?(u=i.jsx("span",{className:"text-sm font-semibold",children:"Minimap"}),e[6]=u):u=e[6],e[7]!==o?(h=()=>o(!1),e[7]=o,e[8]=h):h=e[8],e[9]===Symbol.for("react.memo_cache_sentinel")?(m=i.jsx(Vt,{className:"h-4 w-4"}),e[9]=m):m=e[9],e[10]!==h?(p=i.jsxs("div",{className:"flex items-center justify-between p-4 border-b",children:[u,i.jsx(ye,{variant:"ghost",size:"icon",className:"h-6 w-6",onClick:h,children:m})]}),e[10]=h,e[11]=p):p=e[11],e[12]!==r.inOrderIds||e[13]!==a||e[14]!==l){let w;e[16]!==a||e[17]!==l?(w=(j,C)=>{const N=l.includes(C);return i.jsxs(S.Fragment,{children:[N&&i.jsx("div",{className:"absolute left-5 w-[36px] h-px bg-(--gray-4) pointer-events-none","aria-hidden":"true"}),i.jsx(ww,{cellId:j,cellPositions:a})]},j)},e[16]=a,e[17]=l,e[18]=w):w=e[18],b=r.inOrderIds.map(w),e[12]=r.inOrderIds,e[13]=a,e[14]=l,e[15]=b}else b=e[15];return e[19]!==b?(x=i.jsx("div",{className:"py-3 pl-3 pr-4 relative min-h-full",children:b}),e[19]=b,e[20]=x):x=e[20],e[21]===Symbol.for("react.memo_cache_sentinel")?(f=i.jsx("div",{className:"h-0 overflow-hidden","aria-hidden":"true"}),e[21]=f):f=e[21],e[22]!==x?(g=i.jsxs("div",{className:"overflow-y-auto overflow-x-hidden flex-1 scrollbar-none",children:[x,f]}),e[22]=x,e[23]=g):g=e[23],e[24]!==g||e[25]!==d||e[26]!==p?(y=i.jsxs("div",{className:d,children:[p,g]}),e[24]=g,e[25]=d,e[26]=p,e[27]=y):y=e[27],y},jw=()=>{const t=P.c(5),[e,n]=_n(ep);let o,r;return t[0]!==n?(o=()=>n(Iw),t[0]=n,t[1]=o):o=t[1],st("global.toggleMinimap",o),t[2]!==e||t[3]!==n?(r=i.jsx(kw,{open:e,setOpen:n}),t[2]=e,t[3]=n,t[4]=r):r=t[4],r},Cw=t=>{const e=P.c(11),{cell:n,selectedCell:o}=t,r=Kj(),s=n.id===(o==null?void 0:o.id);let a,l;if(e[0]!==n.graph.variables||e[1]!==s||e[2]!==o||e[3]!==r){let c;e[5]!==s||e[6]!==o||e[7]!==r?(c=(d,u)=>{const h=r[d];return i.jsxs(S.Fragment,{children:[u>0&&", ",i.jsx("span",{className:ue({"font-bold":s,"text-foreground":o===void 0,"text-primary font-medium":!s&&sw(h,o)}),children:d})]},d)},e[5]=s,e[6]=o,e[7]=r,e[8]=c):c=e[8],a=n.graph.variables.map(c),e[0]=n.graph.variables,e[1]=s,e[2]=o,e[3]=r,e[4]=a}else a=e[4];return e[9]!==a?(l=i.jsx(i.Fragment,{children:a}),e[9]=a,e[10]=l):l=e[10],l},Nw=t=>{const e=P.c(12),{cell:n,cellPositions:o,circleRadius:r}=t;let s,a,l,c;if(e[0]!==n.graph.children||e[1]!==n.graph.parents||e[2]!==n.id||e[3]!==o){s=[];const d=o[n.id]??0,u=new Set;for(const h of n.graph.parents)n.graph.children.has(h)&&u.add(h);for(const h of u){const m=o[h];if(m!==void 0){const p=21*(m-d);s.push(i.jsx("path",{d:`M -3 0 H -7 v ${p} h 14 v ${-p} H 3`,fill:"none",strokeWidth:"2",stroke:"currentColor"},`${n.id}-cycle-${h}`))}}for(const h of n.graph.parents){if(u.has(h))continue;const m=o[h];if(m!==void 0){const p=21*(m-d);s.push(i.jsx("path",{d:`M -3 0 H -7 v ${p} h -4`,fill:"none",strokeWidth:"2",stroke:"currentColor"},`${n.id}-up-${h}`))}}for(const h of n.graph.children){if(u.has(h))continue;const m=o[h];if(m!==void 0){const p=21*(m-d);s.push(i.jsx("path",{d:`M 3 0 H 7 v ${p} h 4`,fill:"none",strokeWidth:"2",stroke:"currentColor"},`${n.id}-down-${h}`))}}e[0]=n.graph.children,e[1]=n.graph.parents,e[2]=n.id,e[3]=o,e[4]=s}else s=e[4];return e[5]!==r?(a=i.jsx("circle",{r,fill:"currentColor",className:"pointer-events-auto"}),e[5]=r,e[6]=a):a=e[6],e[7]!==s?(l=i.jsx("g",{className:"pen pointer-events-auto",children:s}),e[7]=s,e[8]=l):l=e[8],e[9]!==a||e[10]!==l?(c=i.jsxs("g",{transform:"translate(0, 0)",children:[a,l]}),e[9]=a,e[10]=l,e[11]=c):c=e[11],c};function Sw(t){const{cell:e,selectedCell:n,circleRadius:o}=t,r=e.graph.ancestors.size>0,s=e.graph.descendants.size>0;if(!n)return np({circleRadius:o,leftWisker:r,rightWisker:s});const a=n.graph.ancestors.has(e.id),l=n.graph.descendants.has(e.id);return np(a||l?{circleRadius:o,leftWisker:r,rightWisker:s,shift:a&&l?void 0:a?"left":"right"}:{circleRadius:o,leftWisker:!1,rightWisker:!1})}function np(t){const{circleRadius:e,leftWisker:n,rightWisker:o,shift:r}=t,s=r===void 0?0:r==="left"?-14:14;return i.jsxs("g",{transform:`translate(${s}, 0)`,children:[i.jsxs("g",{children:[n&&i.jsx("path",{d:"M 0 0 h -8",fill:"none",strokeWidth:"2",stroke:"currentColor"}),o&&i.jsx("path",{d:"M 0 0 h 8",fill:"none",strokeWidth:"2",stroke:"currentColor"})]}),i.jsx("circle",{r:e,fill:"currentColor",className:"pointer-events-auto"})]})}function op(t){return t.variables.length===0&&t.ancestors.size===0&&t.descendants.size===0}function Ew(t){return t.preventDefault()}function _w(t,e){return[t,e]}function Iw(t){return!t}const Aw=me.lazy(()=>mt(()=>import("./terminal-BX3Su5q7.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110]),import.meta.url)),Tw=me.lazy(()=>mt(()=>import("./chat-panel-9alr8FS4.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([111,1,2,4,5,112,113,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,114,115,116,117,107,108,109]),import.meta.url)),Dw=me.lazy(()=>mt(()=>import("./agent-panel-RGLNjkYe.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([118,1,2,113,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,114,115,116,4,5,112,3,107,108,109,119]),import.meta.url)),Mw=me.lazy(()=>mt(()=>import("./dependency-graph-panel-CEog_O7V.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([120,1,2,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,121,122,123,124,125,4,5,107,108,109,126]),import.meta.url)),Ow=me.lazy(()=>mt(()=>import("./datasources-panel-v7H3cR0p.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([127,1,2,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,112,128,108,129,4,5,107,109]),import.meta.url)),Rw=me.lazy(()=>mt(()=>import("./documentation-panel-C1BtMZ3M.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([130,1,2,112,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109]),import.meta.url)),Lw=me.lazy(()=>mt(()=>import("./error-panel-Bs34jXFh.js"),__vite__mapDeps([131,1,2,112]),import.meta.url)),Fw=me.lazy(()=>mt(()=>import("./file-explorer-panel-Ck6UL861.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([132,1,2,4,5,133,134,135,125,115,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109]),import.meta.url)),Bw=me.lazy(()=>mt(()=>import("./logs-panel-DC7wpmPz.js"),__vite__mapDeps([136,1,2,137,112]),import.meta.url)),Pw=me.lazy(()=>mt(()=>import("./outline-panel-CdsnAy2w.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([138,1,2,112,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,139]),import.meta.url)),zw=me.lazy(()=>mt(()=>import("./packages-panel-DiTA-d_D.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([140,1,2,4,5,112,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109]),import.meta.url)),Uw=me.lazy(()=>mt(()=>import("./scratchpad-panel-CuHWpHO8.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([141,1,2,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,115,4,5,107,108,109]),import.meta.url)),Ww=me.lazy(()=>mt(()=>import("./secrets-panel-CfHc5YD0.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([142,1,2,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,112,4,5,107,108,109]),import.meta.url)),$w=me.lazy(()=>mt(()=>import("./snippets-panel-B2EC1txM.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([143,1,2,112,115,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,144]),import.meta.url)),Vw=me.lazy(()=>mt(()=>import("./tracing-panel-Du8WCnno.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([145,1,2]),import.meta.url)),Gw=me.lazy(()=>mt(()=>import("./variable-panel-D5qgJI7k.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([146,1,2,124,128,108,129,112,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,109]),import.meta.url)),qw=t=>{const e=P.c(127),{children:n}=t,{isSidebarOpen:o,isTerminalOpen:r,selectedPanel:s}=Xs(),{setIsSidebarOpen:a,setIsTerminalOpen:l}=kr(),c=me.useRef(null),d=me.useRef(null),u=S.useId(),h=S.useId();let m,p,b,x,f;e[0]!==o?(m=()=>{if(!c.current)return;const le=c.current.isCollapsed();o&&le&&c.current.expand(),o||le||c.current.collapse(),requestAnimationFrame(Jw)},p=[o],e[0]=o,e[1]=m,e[2]=p):(m=e[1],p=e[2]),S.useEffect(m,p),e[3]!==r?(b=()=>{if(!d.current)return;const le=d.current.isCollapsed();r&&le&&d.current.expand(),r||le||d.current.collapse(),requestAnimationFrame(Yw)},x=[r],e[3]=r,e[4]=b,e[5]=x):(b=e[4],x=e[5]),S.useEffect(b,x),e[6]!==n?(f=i.jsx(ka,{id:"app",className:"relative h-full",children:i.jsx(S.Suspense,{children:n})},"app"),e[6]=n,e[7]=f):f=e[7];const g=f,y=o?"resize-handle":"resize-handle-collapsed";let w,j;e[8]!==y?(w=ue("border-border no-print z-10",y,"vertical"),e[8]=y,e[9]=w):w=e[9],e[10]!==w?(j=i.jsx($1,{onDragging:V1,className:w}),e[10]=w,e[11]=j):j=e[11];const C=j,N=r?"resize-handle":"resize-handle-collapsed";let k,E;e[12]!==N?(k=ue("border-border no-print z-20",N,"horizontal"),e[12]=N,e[13]=k):k=e[13],e[14]!==k?(E=i.jsx($1,{onDragging:V1,className:k}),e[14]=k,e[15]=E):E=e[15];const _=E;let I,A,O,D,M,R,L,z,T,F,$,W,G,X,H,Y,K,V,q,U,ne,Q;e[16]!==s?(I=i.jsx("div",{className:"text-sm text-(--slate-11) uppercase tracking-wide font-semibold flex-1",children:s}),e[16]=s,e[17]=I):I=e[17],e[18]!==a?(A=()=>a(!1),e[18]=a,e[19]=A):A=e[19],e[20]===Symbol.for("react.memo_cache_sentinel")?(O=i.jsx(Vt,{className:"w-4 h-4"}),e[20]=O):O=e[20],e[21]!==A?(D=i.jsx(ye,{"data-testid":"close-helper-pane",className:"m-0",size:"xs",variant:"text",onClick:A,children:O}),e[21]=A,e[22]=D):D=e[22],e[23]!==I||e[24]!==D?(M=i.jsxs("div",{className:"p-3 border-b flex justify-between items-center",children:[I,D]}),e[23]=I,e[24]=D,e[25]=M):M=e[25],e[26]!==s?(R=s==="files"&&i.jsx(Fw,{}),e[26]=s,e[27]=R):R=e[27],e[28]!==s?(L=s==="errors"&&i.jsx(Lw,{}),e[28]=s,e[29]=L):L=e[29],e[30]!==s?(z=s==="variables"&&i.jsx(Gw,{}),e[30]=s,e[31]=z):z=e[31],e[32]!==s?(T=s==="dependencies"&&i.jsx(Mw,{}),e[32]=s,e[33]=T):T=e[33],e[34]!==s?(F=s==="packages"&&i.jsx(zw,{}),e[34]=s,e[35]=F):F=e[35],e[36]!==s?($=s==="outline"&&i.jsx(Pw,{}),e[36]=s,e[37]=$):$=e[37],e[38]!==s?(W=s==="datasources"&&i.jsx(Ow,{}),e[38]=s,e[39]=W):W=e[39],e[40]!==s?(G=s==="documentation"&&i.jsx(Rw,{}),e[40]=s,e[41]=G):G=e[41],e[42]!==s?(X=s==="snippets"&&i.jsx($w,{}),e[42]=s,e[43]=X):X=e[43],e[44]!==s?(H=s==="scratchpad"&&i.jsx(Uw,{}),e[44]=s,e[45]=H):H=e[45],e[46]!==s?(Y=s==="chat"&&i.jsx(Tw,{}),e[46]=s,e[47]=Y):Y=e[47],e[48]!==s?(K=s==="agents"&&i.jsx(Dw,{}),e[48]=s,e[49]=K):K=e[49],e[50]!==s?(V=s==="logs"&&i.jsx(Bw,{}),e[50]=s,e[51]=V):V=e[51],e[52]!==s?(q=s==="tracing"&&i.jsx(Vw,{}),e[52]=s,e[53]=q):q=e[53],e[54]!==s?(U=s==="secrets"&&i.jsx(Ww,{}),e[54]=s,e[55]=U):U=e[55],e[56]!==R||e[57]!==L||e[58]!==z||e[59]!==T||e[60]!==F||e[61]!==$||e[62]!==W||e[63]!==G||e[64]!==X||e[65]!==H||e[66]!==Y||e[67]!==K||e[68]!==V||e[69]!==q||e[70]!==U?(ne=i.jsx(S.Suspense,{children:i.jsxs(va,{children:[R,L,z,T,F,$,W,G,X,H,Y,K,V,q,U]})}),e[56]=R,e[57]=L,e[58]=z,e[59]=T,e[60]=F,e[61]=$,e[62]=W,e[63]=G,e[64]=X,e[65]=H,e[66]=Y,e[67]=K,e[68]=V,e[69]=q,e[70]=U,e[71]=ne):ne=e[71],e[72]!==M||e[73]!==ne?(Q=i.jsx(Yl,{children:i.jsxs("div",{className:"flex flex-col h-full flex-1 overflow-hidden mr-[-4px]",children:[M,ne]})}),e[72]=M,e[73]=ne,e[74]=Q):Q=e[74];const ee=Q,oe=`helper-${u}`,se=o&&"border-r border-l border-(--slate-7)";let ae,te,_e,he,we,ke;e[75]!==se?(ae=ue("dark:bg-(--slate-1) no-print print:hidden hide-on-fullscreen",se),e[75]=se,e[76]=ae):ae=e[76],e[77]===Symbol.for("react.memo_cache_sentinel")?(te=(le,je)=>{var Ne;je===0&&le===10&&((Ne=c.current)==null||Ne.resize(30))},e[77]=te):te=e[77],e[78]!==a?(_e=()=>a(!1),he=()=>a(!0),e[78]=a,e[79]=_e,e[80]=he):(_e=e[79],he=e[80]),e[81]!==ee||e[82]!==C?(we=i.jsxs("span",{className:"flex flex-row h-full",children:[ee," ",C]}),e[81]=ee,e[82]=C,e[83]=we):we=e[83],e[84]!==oe||e[85]!==ae||e[86]!==_e||e[87]!==he||e[88]!==we?(ke=i.jsx(ka,{ref:c,id:oe,"data-testid":"helper",collapsedSize:0,collapsible:!0,className:ae,minSize:10,defaultSize:0,maxSize:75,onResize:te,onCollapse:_e,onExpand:he,children:we},"helper"),e[84]=oe,e[85]=ae,e[86]=_e,e[87]=he,e[88]=we,e[89]=ke):ke=e[89];const ge=ke,Ee=`terminal-${h}`,Oe=r&&"border-(--slate-7)";let ve,be,et,rt,ct,dt,pt,ut,wt;e[90]!==Oe?(ve=ue("dark:bg-(--slate-1) no-print print:hidden hide-on-fullscreen",Oe),e[90]=Oe,e[91]=ve):ve=e[91],e[92]===Symbol.for("react.memo_cache_sentinel")?(be=(le,je)=>{var Ne;je===0&&le===10&&((Ne=d.current)==null||Ne.resize(30))},e[92]=be):be=e[92],e[93]!==l?(et=()=>l(!1),rt=()=>l(!0),e[93]=l,e[94]=et,e[95]=rt):(et=e[94],rt=e[95]),e[96]===Symbol.for("react.memo_cache_sentinel")?(ct=i.jsx("div",{}),e[96]=ct):ct=e[96],e[97]!==l?(dt=()=>l(!1),e[97]=l,e[98]=dt):dt=e[98],e[99]!==r||e[100]!==dt?(pt=i.jsx(S.Suspense,{fallback:ct,children:i.jsx(Aw,{visible:r,onClose:dt})}),e[99]=r,e[100]=dt,e[101]=pt):pt=e[101],e[102]!==r||e[103]!==pt?(ut=i.jsx(vw,{isOpen:r,children:pt}),e[102]=r,e[103]=pt,e[104]=ut):ut=e[104],e[105]!==Ee||e[106]!==ve||e[107]!==et||e[108]!==rt||e[109]!==ut||e[110]!==_?(wt=i.jsxs(ka,{ref:d,id:Ee,"data-testid":"terminal",collapsedSize:0,collapsible:!0,className:ve,minSize:10,defaultSize:0,maxSize:75,onResize:be,onCollapse:et,onExpand:rt,children:[_,ut]},"terminal"),e[105]=Ee,e[106]=ve,e[107]=et,e[108]=rt,e[109]=ut,e[110]=_,e[111]=wt):wt=e[111];const Lt=wt;let On,Jt,Ft,zt,to,Rn,No,re,ce;return e[112]===Symbol.for("react.memo_cache_sentinel")?(On=AC(),e[112]=On):On=e[112],e[113]===Symbol.for("react.memo_cache_sentinel")?(Jt=i.jsx(va,{children:i.jsx(pw,{})}),e[113]=Jt):Jt=e[113],e[114]!==Lt?(Ft=i.jsx(Qf,{capability:"terminal",children:Lt}),e[114]=Lt,e[115]=Ft):Ft=e[115],e[116]!==g||e[117]!==Ft?(zt=i.jsx(ka,{children:i.jsxs(G1,{autoSaveId:"marimo:chrome:v1:l1",direction:"vertical",children:[g,Ft]})}),e[116]=g,e[117]=Ft,e[118]=zt):zt=e[118],e[119]===Symbol.for("react.memo_cache_sentinel")?(to=i.jsx(Yj,{}),e[119]=to):to=e[119],e[120]!==ge||e[121]!==zt?(Rn=i.jsxs(G1,{autoSaveId:"marimo:chrome:v1:l2",direction:"horizontal",storage:On,children:[Jt,ge,zt,to]}),e[120]=ge,e[121]=zt,e[122]=Rn):Rn=e[122],e[123]===Symbol.for("react.memo_cache_sentinel")?(No=i.jsx(jw,{}),e[123]=No):No=e[123],e[124]===Symbol.for("react.memo_cache_sentinel")?(re=i.jsx(Yl,{children:i.jsx(va,{children:i.jsx(dw,{})})}),e[124]=re):re=e[124],e[125]!==Rn?(ce=i.jsxs(TC,{children:[Rn,No,re]}),e[125]=Rn,e[126]=ce):ce=e[126],ce};function Hw(){window.dispatchEvent(new Event("resize"))}function Jw(){requestAnimationFrame(Hw)}function Kw(){window.dispatchEvent(new Event("resize"))}function Yw(){requestAnimationFrame(Kw)}let wl,rp;wl=S.lazy(()=>mt(()=>import("./command-palette-B93Pjcky.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([147,1,2,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109]),import.meta.url)),rp=new URL(window.location.href).searchParams.get(Xj.showChrome)==="false",gg=Object.freeze(Object.defineProperty({__proto__:null,default:t=>{const e=P.c(10);if(rp){let s,a,l;return e[0]!==t?(s=i.jsx(Xf,{hideControls:!0,...t}),e[0]=t,e[1]=s):s=e[1],e[2]===Symbol.for("react.memo_cache_sentinel")?(a=i.jsx(wl,{}),e[2]=a):a=e[2],e[3]!==s?(l=i.jsxs(i.Fragment,{children:[s,a]}),e[3]=s,e[4]=l):l=e[4],l}let n,o,r;return e[5]!==t?(n=i.jsx(Xf,{...t}),e[5]=t,e[6]=n):n=e[6],e[7]===Symbol.for("react.memo_cache_sentinel")?(o=i.jsx(wl,{}),e[7]=o):o=e[7],e[8]!==n?(r=i.jsxs(qw,{children:[n,o]}),e[8]=n,e[9]=r):r=e[9],r}},Symbol.toStringTag,{value:"Module"}))});export{fg as A,Na as C,Sa as E,Ec as F,Ea as H,_c as K,Ic as N,Ac as P,Tc as R,Dc as S,Mc as T,Oc as W,BC as __tla,Rc as a,Lc as b,_a as c,Ia as d,Aa as e,Wo as f,pg as g,Ta as h,Fc as i,Bc as j,Pc as k,zc as l,Uc as m,gg as n,Wc as s,Da as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as f,d as j,j as l}from"./index-
|
|
1
|
+
import{a as f,d as j,j as l}from"./index-C7CoaNFb.js";const p=d=>{const e=f.c(15),{title:i,description:x,icon:r,action:o}=d;let s,t,a,c,n,m;return e[0]!==r?(s=r&&j.cloneElement(r,{className:"text-accent-foreground"}),e[0]=r,e[1]=s):s=e[1],e[2]!==i?(t=l.jsx("span",{className:"mt-1 text-accent-foreground",children:i}),e[2]=i,e[3]=t):t=e[3],e[4]!==s||e[5]!==t?(a=l.jsxs("div",{className:"flex flex-row gap-2 items-center",children:[s,t]}),e[4]=s,e[5]=t,e[6]=a):a=e[6],e[7]!==x?(c=l.jsx("span",{className:"text-muted-foreground text-sm",children:x}),e[7]=x,e[8]=c):c=e[8],e[9]!==o?(n=o&&l.jsx("div",{className:"mt-2",children:o}),e[9]=o,e[10]=n):n=e[10],e[11]!==a||e[12]!==c||e[13]!==n?(m=l.jsxs("div",{className:"mx-6 my-6 flex flex-col gap-2",children:[a,c,n]}),e[11]=a,e[12]=c,e[13]=n,e[14]=m):m=e[14],m};export{p as P};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var D;import{g as It}from"./chunk-55IACEB6-
|
|
1
|
+
var D;import{g as It}from"./chunk-55IACEB6-CAATkc4w.js";import{s as Ct}from"./chunk-QN33PNHL-DiZZ09q4.js";import{_ as h,b as xt,a as Dt,s as $t,g as vt,q as wt,t as Lt,c as V,l as x,z as Mt,y as Bt,B as Ft,D as Yt,p as Pt,r as zt,u as Gt}from"./mermaid.core-DzthE35Y.js";import{s as Kt}from"./transform-D9VCJYws.js";import{c as Zt}from"./channel-Co6iMgWq.js";import"./index-C7CoaNFb.js";import"./step-BwsUM5iJ.js";import"./isEmpty-D-4c7sMv.js";import"./timer-Bqd5yn_a.js";var lt=(function(){var s=h(function(a,u,o,n){for(o=o||{},n=a.length;n--;o[a[n]]=u);return o},"o"),i=[6,8,10,22,24,26,28,33,34,35,36,37,40,43,44,50],l=[1,10],y=[1,11],c=[1,12],r=[1,13],_=[1,20],g=[1,21],E=[1,22],$=[1,23],v=[1,24],N=[1,19],w=[1,25],Z=[1,26],L=[1,18],tt=[1,33],et=[1,34],st=[1,35],it=[1,36],nt=[1,37],ht=[6,8,10,13,15,17,20,21,22,24,26,28,33,34,35,36,37,40,43,44,50,63,64,65,66,67],O=[1,42],T=[1,43],M=[1,52],B=[40,50,68,69],F=[1,63],Y=[1,61],S=[1,58],P=[1,62],z=[1,64],U=[6,8,10,13,17,22,24,26,28,33,34,35,36,37,40,41,42,43,44,48,49,50,63,64,65,66,67],yt=[63,64,65,66,67],ut=[1,81],dt=[1,80],pt=[1,78],_t=[1,79],gt=[6,10,42,47],I=[6,10,13,41,42,47,48,49],j=[1,89],W=[1,88],Q=[1,87],G=[19,56],mt=[1,98],ft=[1,97],at=[19,56,58,60],rt={trace:h(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,COLON:13,role:14,STYLE_SEPARATOR:15,idList:16,BLOCK_START:17,attributes:18,BLOCK_STOP:19,SQS:20,SQE:21,title:22,title_value:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,direction:29,classDefStatement:30,classStatement:31,styleStatement:32,direction_tb:33,direction_bt:34,direction_rl:35,direction_lr:36,CLASSDEF:37,stylesOpt:38,separator:39,UNICODE_TEXT:40,STYLE_TEXT:41,COMMA:42,CLASS:43,STYLE:44,style:45,styleComponent:46,SEMI:47,NUM:48,BRKT:49,ENTITY_NAME:50,attribute:51,attributeType:52,attributeName:53,attributeKeyTypeList:54,attributeComment:55,ATTRIBUTE_WORD:56,attributeKeyType:57,",":58,ATTRIBUTE_KEY:59,COMMENT:60,cardinality:61,relType:62,ZERO_OR_ONE:63,ZERO_OR_MORE:64,ONE_OR_MORE:65,ONLY_ONE:66,MD_PARENT:67,NON_IDENTIFYING:68,IDENTIFYING:69,WORD:70,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:"COLON",15:"STYLE_SEPARATOR",17:"BLOCK_START",19:"BLOCK_STOP",20:"SQS",21:"SQE",22:"title",23:"title_value",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"direction_tb",34:"direction_bt",35:"direction_rl",36:"direction_lr",37:"CLASSDEF",40:"UNICODE_TEXT",41:"STYLE_TEXT",42:"COMMA",43:"CLASS",44:"STYLE",47:"SEMI",48:"NUM",49:"BRKT",50:"ENTITY_NAME",56:"ATTRIBUTE_WORD",58:",",59:"ATTRIBUTE_KEY",60:"COMMENT",63:"ZERO_OR_ONE",64:"ZERO_OR_MORE",65:"ONE_OR_MORE",66:"ONLY_ONE",67:"MD_PARENT",68:"NON_IDENTIFYING",69:"IDENTIFYING",70:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,9],[9,7],[9,7],[9,4],[9,6],[9,3],[9,5],[9,1],[9,3],[9,7],[9,9],[9,6],[9,8],[9,4],[9,6],[9,2],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[9,1],[29,1],[29,1],[29,1],[29,1],[30,4],[16,1],[16,1],[16,3],[16,3],[31,3],[32,4],[38,1],[38,3],[45,1],[45,2],[39,1],[39,1],[39,1],[46,1],[46,1],[46,1],[46,1],[11,1],[11,1],[18,1],[18,2],[51,2],[51,3],[51,3],[51,4],[52,1],[53,1],[54,1],[54,3],[57,1],[55,1],[12,3],[61,1],[61,1],[61,1],[61,1],[61,1],[62,1],[62,1],[14,1],[14,1],[14,1]],performAction:h(function(a,u,o,n,d,t,K){var e=t.length-1;switch(d){case 1:break;case 2:case 6:case 7:this.$=[];break;case 3:t[e-1].push(t[e]),this.$=t[e-1];break;case 4:case 5:case 55:case 78:case 62:case 63:case 66:this.$=t[e];break;case 8:n.addEntity(t[e-4]),n.addEntity(t[e-2]),n.addRelationship(t[e-4],t[e],t[e-2],t[e-3]);break;case 9:n.addEntity(t[e-8]),n.addEntity(t[e-4]),n.addRelationship(t[e-8],t[e],t[e-4],t[e-5]),n.setClass([t[e-8]],t[e-6]),n.setClass([t[e-4]],t[e-2]);break;case 10:n.addEntity(t[e-6]),n.addEntity(t[e-2]),n.addRelationship(t[e-6],t[e],t[e-2],t[e-3]),n.setClass([t[e-6]],t[e-4]);break;case 11:n.addEntity(t[e-6]),n.addEntity(t[e-4]),n.addRelationship(t[e-6],t[e],t[e-4],t[e-5]),n.setClass([t[e-4]],t[e-2]);break;case 12:n.addEntity(t[e-3]),n.addAttributes(t[e-3],t[e-1]);break;case 13:n.addEntity(t[e-5]),n.addAttributes(t[e-5],t[e-1]),n.setClass([t[e-5]],t[e-3]);break;case 14:n.addEntity(t[e-2]);break;case 15:n.addEntity(t[e-4]),n.setClass([t[e-4]],t[e-2]);break;case 16:n.addEntity(t[e]);break;case 17:n.addEntity(t[e-2]),n.setClass([t[e-2]],t[e]);break;case 18:n.addEntity(t[e-6],t[e-4]),n.addAttributes(t[e-6],t[e-1]);break;case 19:n.addEntity(t[e-8],t[e-6]),n.addAttributes(t[e-8],t[e-1]),n.setClass([t[e-8]],t[e-3]);break;case 20:n.addEntity(t[e-5],t[e-3]);break;case 21:n.addEntity(t[e-7],t[e-5]),n.setClass([t[e-7]],t[e-2]);break;case 22:n.addEntity(t[e-3],t[e-1]);break;case 23:n.addEntity(t[e-5],t[e-3]),n.setClass([t[e-5]],t[e]);break;case 24:case 25:this.$=t[e].trim(),n.setAccTitle(this.$);break;case 26:case 27:this.$=t[e].trim(),n.setAccDescription(this.$);break;case 32:n.setDirection("TB");break;case 33:n.setDirection("BT");break;case 34:n.setDirection("RL");break;case 35:n.setDirection("LR");break;case 36:this.$=t[e-3],n.addClass(t[e-2],t[e-1]);break;case 37:case 38:case 56:case 64:case 43:this.$=[t[e]];break;case 39:case 40:this.$=t[e-2].concat([t[e]]);break;case 41:this.$=t[e-2],n.setClass(t[e-1],t[e]);break;case 42:this.$=t[e-3],n.addCssStyles(t[e-2],t[e-1]);break;case 44:case 65:t[e-2].push(t[e]),this.$=t[e-2];break;case 46:this.$=t[e-1]+t[e];break;case 54:case 76:case 77:case 67:this.$=t[e].replace(/"/g,"");break;case 57:t[e].push(t[e-1]),this.$=t[e];break;case 58:this.$={type:t[e-1],name:t[e]};break;case 59:this.$={type:t[e-2],name:t[e-1],keys:t[e]};break;case 60:this.$={type:t[e-2],name:t[e-1],comment:t[e]};break;case 61:this.$={type:t[e-3],name:t[e-2],keys:t[e-1],comment:t[e]};break;case 68:this.$={cardA:t[e],relType:t[e-1],cardB:t[e-2]};break;case 69:this.$=n.Cardinality.ZERO_OR_ONE;break;case 70:this.$=n.Cardinality.ZERO_OR_MORE;break;case 71:this.$=n.Cardinality.ONE_OR_MORE;break;case 72:this.$=n.Cardinality.ONLY_ONE;break;case 73:this.$=n.Cardinality.MD_PARENT;break;case 74:this.$=n.Identification.NON_IDENTIFYING;break;case 75:this.$=n.Identification.IDENTIFYING}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},s(i,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,22:l,24:y,26:c,28:r,29:14,30:15,31:16,32:17,33:_,34:g,35:E,36:$,37:v,40:N,43:w,44:Z,50:L},s(i,[2,7],{1:[2,1]}),s(i,[2,3]),{9:27,11:9,22:l,24:y,26:c,28:r,29:14,30:15,31:16,32:17,33:_,34:g,35:E,36:$,37:v,40:N,43:w,44:Z,50:L},s(i,[2,5]),s(i,[2,6]),s(i,[2,16],{12:28,61:32,15:[1,29],17:[1,30],20:[1,31],63:tt,64:et,65:st,66:it,67:nt}),{23:[1,38]},{25:[1,39]},{27:[1,40]},s(i,[2,27]),s(i,[2,28]),s(i,[2,29]),s(i,[2,30]),s(i,[2,31]),s(ht,[2,54]),s(ht,[2,55]),s(i,[2,32]),s(i,[2,33]),s(i,[2,34]),s(i,[2,35]),{16:41,40:O,41:T},{16:44,40:O,41:T},{16:45,40:O,41:T},s(i,[2,4]),{11:46,40:N,50:L},{16:47,40:O,41:T},{18:48,19:[1,49],51:50,52:51,56:M},{11:53,40:N,50:L},{62:54,68:[1,55],69:[1,56]},s(B,[2,69]),s(B,[2,70]),s(B,[2,71]),s(B,[2,72]),s(B,[2,73]),s(i,[2,24]),s(i,[2,25]),s(i,[2,26]),{13:F,38:57,41:Y,42:S,45:59,46:60,48:P,49:z},s(U,[2,37]),s(U,[2,38]),{16:65,40:O,41:T,42:S},{13:F,38:66,41:Y,42:S,45:59,46:60,48:P,49:z},{13:[1,67],15:[1,68]},s(i,[2,17],{61:32,12:69,17:[1,70],42:S,63:tt,64:et,65:st,66:it,67:nt}),{19:[1,71]},s(i,[2,14]),{18:72,19:[2,56],51:50,52:51,56:M},{53:73,56:[1,74]},{56:[2,62]},{21:[1,75]},{61:76,63:tt,64:et,65:st,66:it,67:nt},s(yt,[2,74]),s(yt,[2,75]),{6:ut,10:dt,39:77,42:pt,47:_t},{40:[1,82],41:[1,83]},s(gt,[2,43],{46:84,13:F,41:Y,48:P,49:z}),s(I,[2,45]),s(I,[2,50]),s(I,[2,51]),s(I,[2,52]),s(I,[2,53]),s(i,[2,41],{42:S}),{6:ut,10:dt,39:85,42:pt,47:_t},{14:86,40:j,50:W,70:Q},{16:90,40:O,41:T},{11:91,40:N,50:L},{18:92,19:[1,93],51:50,52:51,56:M},s(i,[2,12]),{19:[2,57]},s(G,[2,58],{54:94,55:95,57:96,59:mt,60:ft}),s([19,56,59,60],[2,63]),s(i,[2,22],{15:[1,100],17:[1,99]}),s([40,50],[2,68]),s(i,[2,36]),{13:F,41:Y,45:101,46:60,48:P,49:z},s(i,[2,47]),s(i,[2,48]),s(i,[2,49]),s(U,[2,39]),s(U,[2,40]),s(I,[2,46]),s(i,[2,42]),s(i,[2,8]),s(i,[2,76]),s(i,[2,77]),s(i,[2,78]),{13:[1,102],42:S},{13:[1,104],15:[1,103]},{19:[1,105]},s(i,[2,15]),s(G,[2,59],{55:106,58:[1,107],60:ft}),s(G,[2,60]),s(at,[2,64]),s(G,[2,67]),s(at,[2,66]),{18:108,19:[1,109],51:50,52:51,56:M},{16:110,40:O,41:T},s(gt,[2,44],{46:84,13:F,41:Y,48:P,49:z}),{14:111,40:j,50:W,70:Q},{16:112,40:O,41:T},{14:113,40:j,50:W,70:Q},s(i,[2,13]),s(G,[2,61]),{57:114,59:mt},{19:[1,115]},s(i,[2,20]),s(i,[2,23],{17:[1,116],42:S}),s(i,[2,11]),{13:[1,117],42:S},s(i,[2,10]),s(at,[2,65]),s(i,[2,18]),{18:118,19:[1,119],51:50,52:51,56:M},{14:120,40:j,50:W,70:Q},{19:[1,121]},s(i,[2,21]),s(i,[2,9]),s(i,[2,19])],defaultActions:{52:[2,62],72:[2,57]},parseError:h(function(a,u){if(!u.recoverable){var o=new Error(a);throw o.hash=u,o}this.trace(a)},"parseError"),parse:h(function(a){var u=this,o=[0],n=[],d=[null],t=[],K=this.table,e="",q=0,bt=0,Rt=t.slice.call(arguments,1),p=Object.create(this.lexer),R={yy:{}};for(var ct in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ct)&&(R.yy[ct]=this.yy[ct]);p.setInput(a,R.yy),R.yy.lexer=p,R.yy.parser=this,p.yylloc===void 0&&(p.yylloc={});var ot=p.yylloc;t.push(ot);var At=p.options&&p.options.ranges;function Et(){var b;return typeof(b=n.pop()||p.lex()||1)!="number"&&(b instanceof Array&&(b=(n=b).pop()),b=u.symbols_[b]||b),b}typeof R.yy.parseError=="function"?this.parseError=R.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,h(function(b){o.length=o.length-2*b,d.length=d.length-b,t.length=t.length-b},"popStack"),h(Et,"lex");for(var m,A,f,kt,H,k,Ot,J,C={};;){if(A=o[o.length-1],this.defaultActions[A]?f=this.defaultActions[A]:(m==null&&(m=Et()),f=K[A]&&K[A][m]),f===void 0||!f.length||!f[0]){var Tt="";for(H in J=[],K[A])this.terminals_[H]&&H>2&&J.push("'"+this.terminals_[H]+"'");Tt=p.showPosition?"Parse error on line "+(q+1)+`:
|
|
2
2
|
`+p.showPosition()+`
|
|
3
3
|
Expecting `+J.join(", ")+", got '"+(this.terminals_[m]||m)+"'":"Parse error on line "+(q+1)+": Unexpected "+(m==1?"end of input":"'"+(this.terminals_[m]||m)+"'"),this.parseError(Tt,{text:p.match,token:this.terminals_[m]||m,line:p.yylineno,loc:ot,expected:J})}if(f[0]instanceof Array&&f.length>1)throw new Error("Parse Error: multiple actions possible at state: "+A+", token: "+m);switch(f[0]){case 1:o.push(m),d.push(p.yytext),t.push(p.yylloc),o.push(f[1]),m=null,bt=p.yyleng,e=p.yytext,q=p.yylineno,ot=p.yylloc;break;case 2:if(k=this.productions_[f[1]][1],C.$=d[d.length-k],C._$={first_line:t[t.length-(k||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(k||1)].first_column,last_column:t[t.length-1].last_column},At&&(C._$.range=[t[t.length-(k||1)].range[0],t[t.length-1].range[1]]),(kt=this.performAction.apply(C,[e,bt,q,R.yy,f[1],d,t].concat(Rt)))!==void 0)return kt;k&&(o=o.slice(0,-1*k*2),d=d.slice(0,-1*k),t=t.slice(0,-1*k)),o.push(this.productions_[f[1]][0]),d.push(C.$),t.push(C._$),Ot=K[o[o.length-2]][o[o.length-1]],o.push(Ot);break;case 3:return!0}}return!0},"parse")},Nt=(function(){return{EOF:1,parseError:h(function(a,u){if(!this.yy.parser)throw new Error(a);this.yy.parser.parseError(a,u)},"parseError"),setInput:h(function(a,u){return this.yy=u||this.yy||{},this._input=a,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:h(function(){var a=this._input[0];return this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a,a.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),a},"input"),unput:h(function(a){var u=a.length,o=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-u),this.offset-=u;var n=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),o.length-1&&(this.yylineno-=o.length-1);var d=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:o?(o.length===n.length?this.yylloc.first_column:0)+n[n.length-o.length].length-o[0].length:this.yylloc.first_column-u},this.options.ranges&&(this.yylloc.range=[d[0],d[0]+this.yyleng-u]),this.yyleng=this.yytext.length,this},"unput"),more:h(function(){return this._more=!0,this},"more"),reject:h(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:h(function(a){this.unput(this.match.slice(a))},"less"),pastInput:h(function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:h(function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:h(function(){var a=this.pastInput(),u=new Array(a.length+1).join("-");return a+this.upcomingInput()+`
|