@marimo-team/frontend 0.13.16-dev90 → 0.13.16-dev92
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-C3CKxT6t.js → ConnectedDataExplorerComponent-BVRYJBIm.js} +1 -1
- package/dist/assets/{ImageComparisonComponent-BZlAF50H.js → ImageComparisonComponent-lzlqsieb.js} +1 -1
- package/dist/assets/{VegaLite-DfkQWvBG.js → VegaLite-DQmm7W6P.js} +1 -1
- package/dist/assets/{_baseEach-DzHotN8J.js → _baseEach-BFwhIXHb.js} +1 -1
- package/dist/assets/_baseMap-BEsULbjA.js +1 -0
- package/dist/assets/{_baseUniq-D75DS3Ds.js → _baseUniq-BGdcwr2p.js} +1 -1
- package/dist/assets/{_createAggregator-v0xXyec9.js → _createAggregator-94ZOpgBV.js} +1 -1
- package/dist/assets/{any-language-editor-BpIA5mlk.js → any-language-editor-pgy8lIp4.js} +1 -1
- package/dist/assets/{architectureDiagram-IEHRJDOE-CNg-9_Pb.js → architectureDiagram-IEHRJDOE-BthNdh0m.js} +1 -1
- package/dist/assets/{blockDiagram-JOT3LUYC-DppnEFHq.js → blockDiagram-JOT3LUYC-B2Pn9bVy.js} +1 -1
- package/dist/assets/{c4Diagram-VJAJSXHY-n75lmDjc.js → c4Diagram-VJAJSXHY-Btoxy5DO.js} +1 -1
- package/dist/assets/channel-szhGxnks.js +1 -0
- package/dist/assets/{chunk-4BMEZGHF-lb7YXXe0.js → chunk-4BMEZGHF-BGDlm2bh.js} +1 -1
- package/dist/assets/{chunk-A2AXSNBT-DDxoTDWD.js → chunk-A2AXSNBT-DYB-VaMm.js} +1 -1
- package/dist/assets/{chunk-AEK57VVT-Bh8F5ayU.js → chunk-AEK57VVT-rBpDct3-.js} +1 -1
- package/dist/assets/{chunk-D6G4REZN-BfQeYkhO.js → chunk-D6G4REZN-CDG7ta7M.js} +1 -1
- package/dist/assets/{chunk-RZ5BOZE2-BZwI6C6y.js → chunk-RZ5BOZE2-xsU-XeUb.js} +1 -1
- package/dist/assets/{chunk-XZIHB7SX-DdG_eQO0.js → chunk-XZIHB7SX-C4BaDVJU.js} +1 -1
- package/dist/assets/{circle-play-IIOxbHbs.js → circle-play-Dz1W_E0R.js} +1 -1
- package/dist/assets/classDiagram-GIVACNV2-CSnokHQq.js +1 -0
- package/dist/assets/classDiagram-v2-COTLJTTW-CSnokHQq.js +1 -0
- package/dist/assets/clone-DcvBn-4R.js +1 -0
- package/dist/assets/{compile-SVhOiGI-.js → compile-DUWz9pu8.js} +1 -1
- package/dist/assets/{dagre-OKDRZEBW--IMSrJA_.js → dagre-OKDRZEBW-B-5Wc2cX.js} +1 -1
- package/dist/assets/{data-editor-kwjiY7X7.js → data-editor-CtA2vSKy.js} +1 -1
- package/dist/assets/{diagram-SSKATNLV-Cnr8C1O5.js → diagram-SSKATNLV-Cw26EUbf.js} +1 -1
- package/dist/assets/{diagram-VNBRO52H-DCeYYGVg.js → diagram-VNBRO52H-Bh-mvOAI.js} +1 -1
- package/dist/assets/{edit-page-279SafwO.js → edit-page-CBE6hVRD.js} +3 -3
- package/dist/assets/{erDiagram-Q7BY3M3F-E0yZU_Zz.js → erDiagram-Q7BY3M3F-CNGgIShN.js} +1 -1
- package/dist/assets/{flowDiagram-4HSFHLVR-kOITMwbA.js → flowDiagram-4HSFHLVR-BgNnNfLa.js} +1 -1
- package/dist/assets/{ganttDiagram-APWFNJXF-ChJ35wfz.js → ganttDiagram-APWFNJXF-DH0wDqig.js} +1 -1
- package/dist/assets/{gitGraphDiagram-7IBYFJ6S-CORbDxsH.js → gitGraphDiagram-7IBYFJ6S-D7QkLpvP.js} +1 -1
- package/dist/assets/{graph-BzMFdAXl.js → graph-CqDQO4__.js} +1 -1
- package/dist/assets/{home-page-QE8fJ1ea.js → home-page-NFkU9U7c.js} +1 -1
- package/dist/assets/{index-yyt2wDx3.js → index-7yPgKTzA.js} +1 -1
- package/dist/assets/{index-BdOMCMaH.js → index-B9YRoRDw.js} +1 -1
- package/dist/assets/{index-BpG-a9yZ.js → index-B9ev0lFv.js} +1 -1
- package/dist/assets/{index-DUO33Ccf.js → index-BEV7EN2P.js} +1 -1
- package/dist/assets/{index-BclPIgZK.js → index-BLpyrJhm.js} +1 -1
- package/dist/assets/{index-CdwZ_wam.js → index-BRb8H5lu.js} +1 -1
- package/dist/assets/{index-BOdyUYuq.js → index-BYFT-7U8.js} +1 -1
- package/dist/assets/{index-Bymg9Ew9.js → index-CB4dOtj8.js} +1 -1
- package/dist/assets/{index-C18Duh0G.js → index-CRibqT7u.js} +1 -1
- package/dist/assets/{index-Bi9V20Bf.js → index-CgxFL2cr.js} +15 -15
- package/dist/assets/{index-nnrjBvvA.js → index-D2hGsDFI.js} +1 -1
- package/dist/assets/{index-DF1UPHmY.js → index-DE-6BPBD.js} +1 -1
- package/dist/assets/{index-Cth-8_OG.js → index-DFOqQfA5.js} +1 -1
- package/dist/assets/{index-fJM4QWMb.js → index-Dze_2Wiz.js} +1 -1
- package/dist/assets/{index-Ik1fQ4cm.js → index-ILxz4Vf6.js} +1 -1
- package/dist/assets/{index-BgzSBz7I.js → index-e_zth6yw.js} +1 -1
- package/dist/assets/{index-Bv3LYsZz.js → index-lR0zWE2c.js} +1 -1
- package/dist/assets/{index-BLMsi-qh.js → index-nGm80mNn.js} +1 -1
- package/dist/assets/{index-CXBBjseR.js → index-tAg0vEkQ.js} +1 -1
- package/dist/assets/infoDiagram-PH2N3AL5-BRukU5cZ.js +2 -0
- package/dist/assets/{journeyDiagram-U35MCT3I-BXVMls38.js → journeyDiagram-U35MCT3I-BEwDP5Sv.js} +1 -1
- package/dist/assets/{kanban-definition-NDS4AKOZ-BUmC6f8r.js → kanban-definition-NDS4AKOZ-CU0C-piC.js} +1 -1
- package/dist/assets/{layout-DrTqbUYQ.js → layout-CaXvgP1v.js} +1 -1
- package/dist/assets/{linear-mzwEN9hD.js → linear-DAHL7y9L.js} +1 -1
- package/dist/assets/{mermaid-CKfOVvWF.js → mermaid-CnGHUklx.js} +4 -4
- package/dist/assets/{min-DBW9KW1Z.js → min-DG2XegQC.js} +1 -1
- package/dist/assets/{mindmap-definition-ALO5MXBD-BoPbBW1v.js → mindmap-definition-ALO5MXBD-B9iaQYIm.js} +1 -1
- package/dist/assets/{panels-DhdIOflk.js → panels-CDs1ZUWp.js} +3 -3
- package/dist/assets/{pieDiagram-IB7DONF6-D6GuyEBk.js → pieDiagram-IB7DONF6-CvwbrU2p.js} +1 -1
- package/dist/assets/{quadrantDiagram-7GDLP6J5-DaiUOwY1.js → quadrantDiagram-7GDLP6J5-BFV87EPz.js} +1 -1
- package/dist/assets/{radar-MK3ICKWK-D8BeBA1g.js → radar-MK3ICKWK-BvpzFTZd.js} +1 -1
- package/dist/assets/{react-plotly-BjkR0iXC.js → react-plotly-CbplJOUI.js} +1 -1
- package/dist/assets/{requirementDiagram-KVF5MWMF-Bwm7iwTo.js → requirementDiagram-KVF5MWMF-BpLs2NI5.js} +1 -1
- package/dist/assets/{run-page-CVEDU39O.js → run-page-Dd-L-6kM.js} +1 -1
- package/dist/assets/{sankeyDiagram-QLVOVGJD-BJoJL8lj.js → sankeyDiagram-QLVOVGJD-CeCfpWIj.js} +1 -1
- package/dist/assets/{sequenceDiagram-X6HHIX6F-s-9u-nqn.js → sequenceDiagram-X6HHIX6F-BNy5wL6h.js} +1 -1
- package/dist/assets/{slides-component-DxAToToM.js → slides-component-D4036R-A.js} +1 -1
- package/dist/assets/{sortBy-BNIMnJFM.js → sortBy-mrUipeUT.js} +1 -1
- package/dist/assets/{stateDiagram-DGXRK772-cWgIiegQ.js → stateDiagram-DGXRK772-oKvWv6OV.js} +1 -1
- package/dist/assets/stateDiagram-v2-YXO3MK2T-eBefW6pi.js +1 -0
- package/dist/assets/{terminal-DlWVobFm.js → terminal-BJd9v3PH.js} +1 -1
- package/dist/assets/{time-CiNi82XJ.js → time-CB0do-Ir.js} +1 -1
- package/dist/assets/{timeline-definition-BDJGKUSR-BYTrwjsh.js → timeline-definition-BDJGKUSR-DI4tN8OK.js} +1 -1
- package/dist/assets/{tracing-_5kKZm2z.js → tracing-CY-0CYWT.js} +2 -2
- package/dist/assets/{tree-CLKx-N1b.js → tree-XU0wwiB1.js} +1 -1
- package/dist/assets/{vega-component-igFAz5Km.js → vega-component-DCravt3R.js} +1 -1
- package/dist/assets/{xychartDiagram-VJFVF3MP-CslidRSs.js → xychartDiagram-VJFVF3MP-CgkGrrdl.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +1 -1
- package/dist/assets/_baseMap-Cbk2tiUN.js +0 -1
- package/dist/assets/channel-DHCLBugm.js +0 -1
- package/dist/assets/classDiagram-GIVACNV2-EsvkHLSn.js +0 -1
- package/dist/assets/classDiagram-v2-COTLJTTW-EsvkHLSn.js +0 -1
- package/dist/assets/clone-Dg5NZ4FD.js +0 -1
- package/dist/assets/infoDiagram-PH2N3AL5-Dn9owXzQ.js +0 -2
- package/dist/assets/stateDiagram-v2-YXO3MK2T-DqIFIeDL.js +0 -1
@@ -1,4 +1,4 @@
|
|
1
|
-
import{p as k}from"./chunk-4BMEZGHF-
|
1
|
+
import{p as k}from"./chunk-4BMEZGHF-BGDlm2bh.js";import{_ as l,s as O,g as S,q as I,p as E,a as F,b as z,I as P,y as R,E as v,F as w,G as D,l as G,L as B}from"./mermaid-CnGHUklx.js";import{p as _}from"./radar-MK3ICKWK-BvpzFTZd.js";import"./index-CgxFL2cr.js";import"./transform-C4Tsj3kK.js";import"./timer-BI-lUAZ7.js";import"./step-BwsUM5iJ.js";import"./_baseEach-BFwhIXHb.js";import"./_baseUniq-BGdcwr2p.js";import"./min-DG2XegQC.js";import"./_baseMap-BEsULbjA.js";import"./clone-DcvBn-4R.js";import"./_createAggregator-94ZOpgBV.js";var u={showLegend:!0,ticks:5,max:null,min:0,graticule:"circle"},b={axes:[],curves:[],options:u},m=structuredClone(b),j=D.radar,V=l(()=>v({...j,...w().radar}),"getConfig"),C=l(()=>m.axes,"getAxes"),W=l(()=>m.curves,"getCurves"),q=l(()=>m.options,"getOptions"),H=l(e=>{m.axes=e.map(t=>({name:t.name,label:t.label??t.name}))},"setAxes"),Z=l(e=>{m.curves=e.map(t=>({name:t.name,label:t.label??t.name,entries:J(t.entries)}))},"setCurves"),J=l(e=>{if(e[0].axis==null)return e.map(a=>a.value);const t=C();if(t.length===0)throw new Error("Axes must be populated before curves for reference entries");return t.map(a=>{const r=e.find(n=>{var s;return((s=n.axis)==null?void 0:s.$refText)===a.name});if(r===void 0)throw new Error("Missing entry for axis "+a.label);return r.value})},"computeCurveEntries"),$={getAxes:C,getCurves:W,getOptions:q,setAxes:H,setCurves:Z,setOptions:l(e=>{var a,r,n,s,o;const t=e.reduce((i,c)=>(i[c.name]=c,i),{});m.options={showLegend:((a=t.showLegend)==null?void 0:a.value)??u.showLegend,ticks:((r=t.ticks)==null?void 0:r.value)??u.ticks,max:((n=t.max)==null?void 0:n.value)??u.max,min:((s=t.min)==null?void 0:s.value)??u.min,graticule:((o=t.graticule)==null?void 0:o.value)??u.graticule}},"setOptions"),getConfig:V,clear:l(()=>{R(),m=structuredClone(b)},"clear"),setAccTitle:z,getAccTitle:F,setDiagramTitle:E,getDiagramTitle:I,getAccDescription:S,setAccDescription:O},K=l(e=>{k(e,$);const{axes:t,curves:a,options:r}=e;$.setAxes(t),$.setCurves(a),$.setOptions(r)},"populate"),N={parse:l(async e=>{const t=await _("radar",e);G.debug(t),K(t)},"parse")},Q=l((e,t,a,r)=>{const n=r.db,s=n.getAxes(),o=n.getCurves(),i=n.getOptions(),c=n.getConfig(),g=n.getDiagramTitle(),p=P(t),d=U(p,c),h=i.max??Math.max(...o.map(f=>Math.max(...f.entries))),y=i.min,x=Math.min(c.width,c.height)/2;X(d,s,x,i.ticks,i.graticule),Y(d,s,x,c),M(d,s,o,y,h,i.graticule,c),A(d,o,i.showLegend,c),d.append("text").attr("class","radarTitle").text(g).attr("x",0).attr("y",-c.height/2-c.marginTop)},"draw"),U=l((e,t)=>{const a=t.width+t.marginLeft+t.marginRight,r=t.height+t.marginTop+t.marginBottom,n=t.marginLeft+t.width/2,s=t.marginTop+t.height/2;return e.attr("viewbox",`0 0 ${a} ${r}`).attr("width",a).attr("height",r),e.append("g").attr("transform",`translate(${n}, ${s})`)},"drawFrame"),X=l((e,t,a,r,n)=>{if(n==="circle")for(let s=0;s<r;s++){const o=a*(s+1)/r;e.append("circle").attr("r",o).attr("class","radarGraticule")}else if(n==="polygon"){const s=t.length;for(let o=0;o<r;o++){const i=a*(o+1)/r,c=t.map((g,p)=>{const d=2*p*Math.PI/s-Math.PI/2;return`${i*Math.cos(d)},${i*Math.sin(d)}`}).join(" ");e.append("polygon").attr("points",c).attr("class","radarGraticule")}}},"drawGraticule"),Y=l((e,t,a,r)=>{const n=t.length;for(let s=0;s<n;s++){const o=t[s].label,i=2*s*Math.PI/n-Math.PI/2;e.append("line").attr("x1",0).attr("y1",0).attr("x2",a*r.axisScaleFactor*Math.cos(i)).attr("y2",a*r.axisScaleFactor*Math.sin(i)).attr("class","radarAxisLine"),e.append("text").text(o).attr("x",a*r.axisLabelFactor*Math.cos(i)).attr("y",a*r.axisLabelFactor*Math.sin(i)).attr("class","radarAxisLabel")}},"drawAxes");function M(e,t,a,r,n,s,o){const i=t.length,c=Math.min(o.width,o.height)/2;a.forEach((g,p)=>{if(g.entries.length!==i)return;const d=g.entries.map((h,y)=>{const x=2*Math.PI*y/i-Math.PI/2,f=L(h,r,n,c);return{x:f*Math.cos(x),y:f*Math.sin(x)}});s==="circle"?e.append("path").attr("d",T(d,o.curveTension)).attr("class",`radarCurve-${p}`):s==="polygon"&&e.append("polygon").attr("points",d.map(h=>`${h.x},${h.y}`).join(" ")).attr("class",`radarCurve-${p}`)})}function L(e,t,a,r){return r*(Math.min(Math.max(e,t),a)-t)/(a-t)}function T(e,t){const a=e.length;let r=`M${e[0].x},${e[0].y}`;for(let n=0;n<a;n++){const s=e[(n-1+a)%a],o=e[n],i=e[(n+1)%a],c=e[(n+2)%a],g={x:o.x+(i.x-s.x)*t,y:o.y+(i.y-s.y)*t},p={x:i.x-(c.x-o.x)*t,y:i.y-(c.y-o.y)*t};r+=` C${g.x},${g.y} ${p.x},${p.y} ${i.x},${i.y}`}return`${r} Z`}function A(e,t,a,r){if(!a)return;const n=3*(r.width/2+r.marginRight)/4,s=3*-(r.height/2+r.marginTop)/4;t.forEach((o,i)=>{const c=e.append("g").attr("transform",`translate(${n}, ${s+20*i})`);c.append("rect").attr("width",12).attr("height",12).attr("class",`radarLegendBox-${i}`),c.append("text").attr("x",16).attr("y",0).attr("class","radarLegendText").text(o.label)})}l(M,"drawCurves"),l(L,"relativeRadius"),l(T,"closedRoundCurve"),l(A,"drawLegend");var tt={draw:Q},at=l((e,t)=>{let a="";for(let r=0;r<e.THEME_COLOR_LIMIT;r++){const n=e[`cScale${r}`];a+=`
|
2
2
|
.radarCurve-${r} {
|
3
3
|
color: ${n};
|
4
4
|
fill: ${n};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import{p as B}from"./chunk-4BMEZGHF-
|
1
|
+
import{p as B}from"./chunk-4BMEZGHF-BGDlm2bh.js";import{_ as l,s as F,g as P,q as W,p as S,a as z,b as T,E as x,I as v,d as D,y as E,F as A,G as R,l as $}from"./mermaid-CnGHUklx.js";import{p as Y}from"./radar-MK3ICKWK-BvpzFTZd.js";import"./index-CgxFL2cr.js";import"./transform-C4Tsj3kK.js";import"./timer-BI-lUAZ7.js";import"./step-BwsUM5iJ.js";import"./_baseEach-BFwhIXHb.js";import"./_baseUniq-BGdcwr2p.js";import"./min-DG2XegQC.js";import"./_baseMap-BEsULbjA.js";import"./clone-DcvBn-4R.js";import"./_createAggregator-94ZOpgBV.js";var w={packet:[]},u=structuredClone(w),H=R.packet,I=l(()=>{const t=x({...H,...A().packet});return t.showBits&&(t.paddingY+=10),t},"getConfig"),L=l(()=>u.packet,"getPacket"),m={pushWord:l(t=>{t.length>0&&u.packet.push(t)},"pushWord"),getPacket:L,getConfig:I,clear:l(()=>{E(),u=structuredClone(w)},"clear"),setAccTitle:T,getAccTitle:z,setDiagramTitle:S,getDiagramTitle:W,getAccDescription:P,setAccDescription:F},j=l(t=>{B(t,m);let e=-1,o=[],i=1;const{bitsPerRow:s}=m.getConfig();for(let{start:a,end:r,label:p}of t.blocks){if(r&&r<a)throw new Error(`Packet block ${a} - ${r} is invalid. End must be greater than start.`);if(a!==e+1)throw new Error(`Packet block ${a} - ${r??a} is not contiguous. It should start from ${e+1}.`);for(e=r??a,$.debug(`Packet block ${a} - ${e} with label ${p}`);o.length<=s+1&&m.getPacket().length<1e4;){const[h,c]=q({start:a,end:r,label:p},i,s);if(o.push(h),h.end+1===i*s&&(m.pushWord(o),o=[],i++),!c)break;({start:a,end:r,label:p}=c)}}m.pushWord(o)},"populate"),q=l((t,e,o)=>{if(t.end===void 0&&(t.end=t.start),t.start>t.end)throw new Error(`Block start ${t.start} is greater than block end ${t.end}.`);return t.end+1<=e*o?[t,void 0]:[{start:t.start,end:e*o-1,label:t.label},{start:e*o,end:t.end,label:t.label}]},"getNextFittingBlock"),G={parse:l(async t=>{const e=await Y("packet",t);$.debug(e),j(e)},"parse")},M=l((t,e,o,i)=>{const s=i.db,a=s.getConfig(),{rowHeight:r,paddingY:p,bitWidth:h,bitsPerRow:c}=a,f=s.getPacket(),n=s.getDiagramTitle(),k=r+p,d=k*(f.length+1)-(n?0:r),b=h*c+2,g=v(e);g.attr("viewbox",`0 0 ${b} ${d}`),D(g,d,b,a.useMaxWidth);for(const[y,C]of f.entries())N(g,C,y,a);g.append("text").text(n).attr("x",b/2).attr("y",d-k/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),N=l((t,e,o,{rowHeight:i,paddingX:s,paddingY:a,bitWidth:r,bitsPerRow:p,showBits:h})=>{const c=t.append("g"),f=o*(i+a)+a;for(const n of e){const k=n.start%p*r+1,d=(n.end-n.start+1)*r-s;if(c.append("rect").attr("x",k).attr("y",f).attr("width",d).attr("height",i).attr("class","packetBlock"),c.append("text").attr("x",k+d/2).attr("y",f+i/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(n.label),!h)continue;const b=n.end===n.start,g=f-2;c.append("text").attr("x",k+(b?d/2:0)).attr("y",g).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",b?"middle":"start").text(n.start),b||c.append("text").attr("x",k+d).attr("y",g).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(n.end)}},"drawWord"),X={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},_={parser:G,db:m,renderer:{draw:M},styles:l(({packet:t}={})=>{const e=x(X,t);return`
|
2
2
|
.packetByte {
|
3
3
|
font-size: ${e.byteFontSize};
|
4
4
|
}
|
@@ -1,5 +1,5 @@
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./tracing-
|
2
|
-
var qF=Object.defineProperty;var I3=Bt=>{throw TypeError(Bt)};var GF=(Bt,It,gn)=>It in Bt?qF(Bt,It,{enumerable:!0,configurable:!0,writable:!0,value:gn}):Bt[It]=gn;var ee=(Bt,It,gn)=>GF(Bt,typeof It!="symbol"?It+"":It,gn),YF=(Bt,It,gn)=>It.has(Bt)||I3("Cannot "+gn);var A3=(Bt,It,gn)=>(YF(Bt,It,"read from private field"),gn?gn.call(Bt):It.get(Bt)),T3=(Bt,It,gn)=>It.has(Bt)?I3("Cannot add the same private member more than once"):It instanceof WeakSet?It.add(Bt):It.set(Bt,gn);import{u as Fe,Q as A,i9 as JF,ia as KF,ib as M3,ic as XF,id as ZF,ie as QF,R as K,ig as ez,ih as Rr,ii as tz,ij as om,ik as O3,il as nz,im as oz,io as D3,ip as lc,c as X,as as Hn,iq as rm,j as h,dv as sm,dw as R3,dx as rz,dz as im,dB as am,f9 as cc,ir as lm,dt as cm,du as dm,dy as um,is as sz,it as P3,ej as L3,bp as tt,a8 as Ft,iu as iz,dX as po,iv as F3,iw as z3,ix as hm,iy as B3,iz as az,L as Zt,_ as Qt,aF as U3,cE as fm,W as Pe,iA as lz,ek as lt,iB as V3,eo as dc,iC as cz,ao as ct,iD as uc,Z as qe,a_ as $n,a0 as en,iE as hc,iF as Os,e7 as Ds,iG as dz,iH as na,iI as uz,eh as hz,iJ as H3,iK as $3,dP as fz,a7 as mm,iL as lr,iM as Pr,aJ as fc,aL as cr,iN as mz,iO as mc,iP as W3,a5 as oa,eG as q3,a6 as pc,iQ as pz,an as xn,iR as pm,iS as Lr,aj as dr,ak as Rs,al as ur,bg as Fr,U as Fo,e8 as Ps,go as G3,fQ as Ls,gr as gz,b2 as fn,iT as _z,iU as bz,fO as gm,aI as gc,iV as _m,iW as yz,iX as Y3,iY as bm,iZ as xz,i_ as wz,i$ as go,j0 as J3,fU as ym,j1 as ra,j2 as _c,e2 as vz,ae as to,am as Fs,be as hr,j3 as sa,bt as Wn,ap as zs,a4 as Le,f6 as mn,b7 as K3,er as mt,j4 as kz,eT as Sz,dC as bc,j5 as yc,aN as xm,j6 as Cz,eq as wm,ee as Bs,j7 as Nz,j8 as vm,bj as En,j9 as jz,dV as Ae,ja as Ke,jb as km,jc as Ct,jd as X3,je as Ez,fv as Sm,aE as In,aT as qn,gb as Z3,gc as Q3,gd as Iz,gh as Az,ge as e4,V as Oe,dO as Tz,aG as Us,aR as Vs,aH as Hs,aO as sn,ei as zo,jf as Mz,gf as t4,jg as Oz,g6 as n4,g8 as o4,jh as $s,ji as r4,jj as Dz,jk as Rz,ai as Pz,ah as Lz,ed as ia,af as Cm,jl as aa,jm as xc,jn as Fz,jo as zz,jp as s4,jq as pn,fT as i4,dQ as wc,ba as Bz,jr as Uz,ar as Nm,aK as Vz,js as Hz,gs as a4,b6 as vc,jt as jm,aq as la,e3 as l4,ju as $z,ag as Wz,jv as c4,jw as qz,jx as Gz,jy as Yz,jz as Jz,jA as Kz,jB as Xz,dr as Bo,jC as kc,jD as Ws,o as Uo,n as st,fy as An,jE as Tn,jF as ut,jG as qs,jH as zt,fP as Gt,jI as Em,dU as no,jJ as Zz,jK as Qz,b4 as d4,b5 as u4,jL as h4,jM as eB,gv as Gs,jN as Sc,b1 as Cc,gu as zr,jO as f4,jP as ca,el as Im,jQ as tB,jR as nB,jS as oB,jT as rB,jU as m4,jV as sB,jW as p4,jX as g4,jY as iB,jZ as _4,j_ as b4,em as Nc,j$ as aB,bq as lB,k0 as cB,fx as Gn,k1 as dB,k2 as uB,k3 as Ys,k4 as jc,k5 as Js,fI as Vo,k6 as Am,k7 as da,k8 as ua,k9 as ha,ka as hB,fo as Ec,kb as Ic,kc as y4,kd as Ac,eS as fB,fp as mB,r as pB,ke as gB,kf as _B,kg as x4,t as D,kh as bB,ki as yB,kj as Tm,f$ as fa,kk as w4,fB as xB,ft as v4,co as k4,kl as S4,km as fr,kn as wB,ko as vB,kp as kB,kq as SB,kr as CB,ks as NB,kt as jB,ku as EB,kv as IB,kw as AB,kx as TB,ky as MB,kz as OB,kA as DB,kB as RB,kC as PB,kD as LB,kE as FB,kF as zB,kG as BB,kH as UB,kI as VB,kJ as HB,kK as $B,kL as WB,kM as qB,kN as C4,kO as GB,kP as YB,kQ as JB,kR as N4,kS as KB,kT as XB,kU as j4,kV as ZB,kW as Ks,kX as Yn,kY as QB,kZ as eU,k_ as tU,k$ as nU,l0 as oU,l1 as rU,l2 as sU,l3 as iU,l4 as aU,l5 as lU,l6 as mr,l7 as cU,l8 as dU,l9 as uU,la as hU,es as fU,lb as mU,lc as E4,ew as pU,ld as Tc,le as gU,lf as _U,lg as bU,lh as yU,X as pr,li as Mc,ev as xU,lj as Mm,lk as Oc,ll as ma,lm as pa,ln as Dc,lo as gr,lp as I4,lq as Ho,lr as Xs,ls as Om,lt as ga,lu as Zs,lv as Dm,lw as Rm,lx as A4,ly as Rc,lz as wU,S as _a,lA as ba,lB as vU,eR as Pc,lC as kU,lD as Pm,lE as SU,lF as CU,lG as Lc,lH as NU,lI as jU,lJ as T4,lK as Lm,gt as Qs,lL as EU,lM as IU,lN as AU,lO as TU,fG as MU,bd as OU,gw as Et,lP as ya,lQ as ei,lR as DU,lS as RU,lT as Fm,lU as PU,cn as zm,lV as LU,b3 as M4,lW as FU,lX as zU,lY as Fc,lZ as O4,eL as Bm,bf as D4,$ as Um,l_ as R4,l$ as BU,m0 as UU,m1 as Vm,m2 as Hm,m3 as VU,m4 as P4,m5 as L4,m6 as xa,fs as HU,ab as F4,e5 as $U,m7 as z4,m8 as WU,m9 as qU,ma as B4,mb as GU,mc as YU,md as U4,me as V4,mf as JU,bh as H4,mg as KU,mh as $m,ec as XU,mi as $o,dM as $4,mj as W4,eg as q4,fi as Wm,mk as qm,ml as G4,bv as Gm,dN as zc,mm as Y4,mn as ZU,mo as QU,mp as eV,bc as Bc,mq as J4,fb as Ym,mr as K4,ms as tV,mt as X4,mu as nV,g7 as oV,g9 as rV,gg as Jm,gj as sV,mv as iV,mw as Z4,mx as Km,my as aV,mz as lV,mA as cV,a$ as Jn,mB as dV,mC as uV,mD as hV,mE as fV,mF as mV,mG as pV,a9 as gV,mH as Uc,aa as _V,mI as Q4,mJ as bV,f7 as yV,mK as eS,fm as xV,dE as wV,mL as vV,mM as tS,mN as kV,eQ as SV,mO as CV,mP as NV,e6 as jV,mQ as EV,mR as IV,a2 as Vc,mS as AV,a3 as _r,dH as nS,mT as Xm,mU as TV,ep as oS,mV as MV,mW as rS,mX as OV,mY as DV,mZ as RV,m_ as PV,m$ as LV,n0 as FV,n1 as sS,g2 as Zm,g0 as Qm,fX as ti,g1 as Br,n2 as iS,g3 as ep,fY as Ur,dY as zV,n3 as tp,n4 as BV,a1 as UV,n5 as VV,fH as aS,E as ni,n6 as HV,n7 as $V,n8 as WV,n9 as qV,na as wa,nb as GV,nc as YV,nd as JV,ne as KV,nf as XV,ng as lS,nh as ZV,fw as QV,ni as eH,nj as tH,nk as nH,nl as oH,gi as rH,nm as sH,nn as cS,no as iH,np as aH,nq as dS,nr as uS,ns as hS,f5 as fS,nt as lH,nu as cH,nv as mS,nw as pS,nx as Hc,ny as gS,nz as dH,nA as _S,nB as uH,nC as hH,nD as bS,nE as fH,nF as mH,nG as pH,C as yS,nH as gH,nI as _H,nJ as bH,nK as br,nL as xS,dW as yH,fZ as xH,nM as wS,f_ as vS,nN as wH,nO as oi,nP as vH,nQ as $c,nR as kH,nS as SH,y as kS,nT as CH,dk as NH,nU as jH,nV as EH,nW as IH,nX as AH,nY as TH,eY as MH,b0 as OH,aZ as DH,at as Wc,nZ as SS,n_ as CS,av as NS,au as RH,ea as PH,__tla as LH}from"./index-Bi9V20Bf.js";import{G as FH,L as jS,g as zH,b as va,A as BH,s as UH,k as VH,B as ES,a as HH,M as $H,Y as WH,c as wn,u as ka,C as qH,S as GH,K as YH,d as JH,i as KH,e as IS,f as XH,h as ZH,j as QH,l as Sa,P as np,m as AS,n as e$,o as t$,p as op,T as n$}from"./tree-CLKx-N1b.js";import{d as TS,e as MS,L as OS,f as ri,I as rp,g as o$,h as DS,N as RS,V as PS,S as LS,F as FS,i as zS,M as r$,l as BS,j as s$,E as US,k as i$,m as sp,n as a$,o as l$,p as c$,q as d$,s as u$,t as h$,v as f$,w as m$,x as p$,a as g$,C as _$,R as VS,b as b$,A as y$,y as x$,z as w$,O as v$,T as k$,B as S$,D as C$,c as N$,P as j$,__tla as E$}from"./panels-DhdIOflk.js";import{c as I$}from"./_createAggregator-v0xXyec9.js";import{s as oo,i as yr,T as ip,a as ap}from"./transform-C4Tsj3kK.js";import{g as HS}from"./timer-BI-lUAZ7.js";import{i as A$}from"./zoom-COrs4lFh.js";import{s as Ca}from"./sortBy-BNIMnJFM.js";let lp,qc,Mn,Gc,$S,Na,cp,T$=Promise.all([(()=>{try{return LH}catch{}})(),(()=>{try{return E$}catch{}})()]).then(async()=>{var sc,E3;var Bt=I$(function(t,e,n){t[n?0:1].push(e)},function(){return[[],[]]});let It,gn,dp,Yc,si,ii,up,hp,fp,mp,ja,Jc,pp,Ea,gp,Kc,_p,bp,Xc,yp,xp,wp,Ia,vp,Zc,kp,Sp,Cp,Np,jp,Ep,Qc,Ip,ed,Ap,Tp,Mp,Op,Dp,Aa,Rp,Pp,td,Lp,Fp,zp,nd,Bp,Up,Vp,Ta,od,rd,Hp,$p,Wp,qp,Gp,Yp,Jp,Kp,Xp,sd,id,Zp,Qp,eg,Ma,xr,wr;It=Fe("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]),gn=Fe("arrow-right-from-line",[["path",{d:"M3 5v14",key:"1nt18q"}],["path",{d:"M21 12H7",key:"13ipq5"}],["path",{d:"m15 18 6-6-6-6",key:"6tx3qv"}]]),dp=Fe("arrow-right-to-line",[["path",{d:"M17 12H3",key:"8awo09"}],["path",{d:"m11 18 6-6-6-6",key:"8c2y43"}],["path",{d:"M21 5v14",key:"nzette"}]]),Yc=Fe("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]),si=Fe("ban",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m4.9 4.9 14.2 14.2",key:"1m5liu"}]]),ii=Fe("between-horizontal-start",[["rect",{width:"13",height:"7",x:"8",y:"3",rx:"1",key:"pkso9a"}],["path",{d:"m2 9 3 3-3 3",key:"1agib5"}],["rect",{width:"13",height:"7",x:"8",y:"14",rx:"1",key:"1q5fc1"}]]),up=Fe("chevrons-down",[["path",{d:"m7 6 5 5 5-5",key:"1lc07p"}],["path",{d:"m7 13 5 5 5-5",key:"1d48rs"}]]),hp=Fe("chevrons-up",[["path",{d:"m17 11-5-5-5 5",key:"e8nh98"}],["path",{d:"m17 18-5-5-5 5",key:"2avn1x"}]]),Gc=Fe("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]),fp=Fe("circle-chevron-down",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 10-4 4-4-4",key:"894hmk"}]]),mp=Fe("circle-chevron-right",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m10 8 4 4-4 4",key:"1wy4r4"}]]),ja=Fe("circle-plus",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"M12 8v8",key:"napkw2"}]]),Jc=Fe("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"}]]),pp=Fe("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"}]]),Ea=Fe("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"}]]),gp=Fe("code",[["polyline",{points:"16 18 22 12 16 6",key:"z7tu5w"}],["polyline",{points:"8 6 2 12 8 18",key:"1eg1df"}]]),Kc=Fe("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"}]]),_p=Fe("copy-minus",[["line",{x1:"12",x2:"18",y1:"15",y2:"15",key:"1nscbv"}],["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]),bp=Fe("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"}]]),Xc=Fe("ellipsis-vertical",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]]),yp=Fe("eraser",[["path",{d:"m7 21-4.3-4.3c-1-1-1-2.5 0-3.4l9.6-9.6c1-1 2.5-1 3.4 0l5.6 5.6c1 1 1 2.5 0 3.4L13 21",key:"182aya"}],["path",{d:"M22 21H7",key:"t4ddhn"}],["path",{d:"m5 11 9 9",key:"1mo9qw"}]]),xp=Fe("fast-forward",[["polygon",{points:"13 19 22 12 13 5 13 19",key:"587y9g"}],["polygon",{points:"2 19 11 12 2 5 2 19",key:"3pweh0"}]]),wp=Fe("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"}]]),Ia=Fe("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"}]]),vp=Fe("files",[["path",{d:"M20 7h-3a2 2 0 0 1-2-2V2",key:"x099mo"}],["path",{d:"M9 18a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h7l4 4v10a2 2 0 0 1-2 2Z",key:"18t6ie"}],["path",{d:"M3 7.6v12.8A1.6 1.6 0 0 0 4.6 22h9.8",key:"1nja0z"}]]),Zc=Fe("folder-plus",[["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"M9 13h6",key:"1uhe8q"}],["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]),kp=Fe("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"}]]),Sp=Fe("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"}]]),Cp=Fe("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"}]]),Np=Fe("history",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]]),jp=Fe("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"}]]),Ep=Fe("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"}]]),Qc=Fe("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"}]]),Ip=Fe("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"}]]),ed=Fe("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"}]]),Ap=Fe("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"}]]),Tp=Fe("map-pin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]),Mp=Fe("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"}]]),Op=Fe("message-circle-question",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}],["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"}]]),Dp=Fe("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"}]]),Aa=Fe("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"}]]),Rp=Fe("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"}]]),Pp=Fe("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"}]]),td=Fe("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"}]]),Lp=Fe("panel-left",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]),Fp=Fe("party-popper",[["path",{d:"M5.8 11.3 2 22l10.7-3.79",key:"gwxi1d"}],["path",{d:"M4 3h.01",key:"1vcuye"}],["path",{d:"M22 8h.01",key:"1mrtc2"}],["path",{d:"M15 2h.01",key:"1cjtqr"}],["path",{d:"M22 20h.01",key:"1mrys2"}],["path",{d:"m22 2-2.24.75a2.9 2.9 0 0 0-1.96 3.12c.1.86-.57 1.63-1.45 1.63h-.38c-.86 0-1.6.6-1.76 1.44L14 10",key:"hbicv8"}],["path",{d:"m22 13-.82-.33c-.86-.34-1.82.2-1.98 1.11c-.11.7-.72 1.22-1.43 1.22H17",key:"1i94pl"}],["path",{d:"m11 2 .33.82c.34.86-.2 1.82-1.11 1.98C9.52 4.9 9 5.52 9 6.23V7",key:"1cofks"}],["path",{d:"M11 13c1.93 1.93 2.83 4.17 2 5-.83.83-3.07-.07-5-2-1.93-1.93-2.83-4.17-2-5 .83-.83 3.07.07 5 2Z",key:"4kbmks"}]]),zp=Fe("pen-line",[["path",{d:"M12 20h9",key:"t2du7b"}],["path",{d:"M16.376 3.622a1 1 0 0 1 3.002 3.002L7.368 18.635a2 2 0 0 1-.855.506l-2.872.838a.5.5 0 0 1-.62-.62l.838-2.872a2 2 0 0 1 .506-.854z",key:"1ykcvy"}]]),nd=Fe("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"}]]),Bp=Fe("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"}]]),Up=Fe("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"}]]),Vp=Fe("rows-3",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M21 9H3",key:"1338ky"}],["path",{d:"M21 15H3",key:"9uk58r"}]]),Ta=Fe("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"}]]),od=Fe("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"}]]),rd=Fe("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"}]]),Hp=Fe("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"}]]),$p=Fe("square-code",[["path",{d:"M10 9.5 8 12l2 2.5",key:"3mjy60"}],["path",{d:"m14 9.5 2 2.5-2 2.5",key:"1bir2l"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]),Wp=Fe("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"}]]),qp=Fe("square-equal",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M7 10h10",key:"1101jm"}],["path",{d:"M7 14h10",key:"1mhdw3"}]]),Gp=Fe("square-m",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M8 16V8l4 4 4-4v8",key:"141u4e"}]]),Yp=Fe("square-play",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"m9 8 6 4-6 4Z",key:"f1r3lt"}]]),Jp=Fe("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"}]]),Kp=Fe("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"}]]),Xp=Fe("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"}]]),sd=Fe("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"}]]),id=Fe("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"}]]),Zp=Fe("users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]),Qp=Fe("view",[["path",{d:"M21 17v2a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-2",key:"mrq65r"}],["path",{d:"M21 7V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v2",key:"be3xqs"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["path",{d:"M18.944 12.33a1 1 0 0 0 0-.66 7.5 7.5 0 0 0-13.888 0 1 1 0 0 0 0 .66 7.5 7.5 0 0 0 13.888 0",key:"11ak4c"}]]),eg=Fe("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"}]]),Ma=Fe("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"}]]),xr=Fe("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"}]]),wr=Fe("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"}]]);const WS=A.createContext({}),qS=A.forwardRef(function(t,e){[t,e]=ZF(t,e,WS);let{toolbarProps:n}=function(s,i){const{"aria-label":a,"aria-labelledby":l,orientation:c="horizontal"}=s;let[d,u]=A.useState(!1);JF(()=>{var p;u(!(!i.current||!(!((p=i.current.parentElement)===null||p===void 0)&&p.closest('[role="toolbar"]'))))});const{direction:f}=KF(),m=f==="rtl"&&c==="horizontal";let _=XF(i);const g=A.useRef(null);return{toolbarProps:{...M3(s,{labelable:!0}),role:d?"group":"toolbar","aria-orientation":c,"aria-label":a,"aria-labelledby":a==null?l:void 0,onKeyDownCapture:d?void 0:p=>{if(p.currentTarget.contains(p.target)){if(c==="horizontal"&&p.key==="ArrowRight"||c==="vertical"&&p.key==="ArrowDown")m?_.focusPrevious():_.focusNext();else{if(!(c==="horizontal"&&p.key==="ArrowLeft"||c==="vertical"&&p.key==="ArrowUp"))return p.key==="Tab"?(p.stopPropagation(),g.current=document.activeElement,void(p.shiftKey?_.focusFirst():_.focusLast())):void 0;m?_.focusNext():_.focusPrevious()}p.stopPropagation(),p.preventDefault()}},onFocusCapture:d?void 0:p=>{var b,x;g.current&&!p.currentTarget.contains(p.relatedTarget)&&(!((b=i.current)===null||b===void 0)&&b.contains(p.target))&&((x=g.current)===null||x===void 0||x.focus(),g.current=null)},onBlurCapture:d?void 0:p=>{p.currentTarget.contains(p.relatedTarget)||g.current||(g.current=p.target)}}}}(t,e),o=QF({...t,values:{orientation:t.orientation||"horizontal"},defaultClassName:"react-aria-Toolbar"}),r=M3(t);return delete r.id,K.createElement("div",{...ez(n,r),...o,ref:e,slot:t.slot||void 0,"data-orientation":t.orientation||"horizontal"},o.children)});function Oa(t,e){const n=+Rr(t)-+Rr(e);return n<0?-1:n>0?1:n}function GS(t,e){const n=Rr(t,e==null?void 0:e.in);return+function(o,r){const s=Rr(o,r==null?void 0:r.in);return s.setHours(23,59,59,999),s}(n,e)==+function(o,r){const s=Rr(o,r==null?void 0:r.in),i=s.getMonth();return s.setFullYear(s.getFullYear(),i+1,0),s.setHours(23,59,59,999),s}(n,e)}function YS(t,e,n){const[o,r,s]=om(n==null?void 0:n.in,t,t,e),i=Oa(r,s),a=Math.abs(function(d,u,f){const[m,_]=om(f==null?void 0:f.in,d,u);return 12*(m.getFullYear()-_.getFullYear())+(m.getMonth()-_.getMonth())}(r,s));if(a<1)return 0;r.getMonth()===1&&r.getDate()>27&&r.setDate(30),r.setMonth(r.getMonth()-i*a);let l=Oa(r,s)===-i;GS(o)&&a===1&&Oa(o,s)===1&&(l=!1);const c=i*(a-+l);return c===0?0:c}function JS(t,e,n){const o=function(r,s){return+Rr(r)-+Rr(s)}(t,e)/1e3;return(r=>{const s=(0,Math.trunc)(r);return s===0?0:s})(o)}function KS(t,e){return function(n,o,r){const s=nz(),i=(r==null?void 0:r.locale)??s.locale??oz,a=Oa(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]=om(r==null?void 0:r.in,...a>0?[o,n]:[n,o]),u=JS(d,c),f=(O3(d)-O3(c))/1e3,m=Math.round((u-f)/60);let _;if(m<2)return m===0?i.formatDistance("lessThanXMinutes",1,l):i.formatDistance("xMinutes",m,l);if(m<45)return i.formatDistance("xMinutes",m,l);if(m<90)return i.formatDistance("aboutXHours",1,l);if(m<D3){const g=Math.round(m/60);return i.formatDistance("aboutXHours",g,l)}if(m<2520)return i.formatDistance("xDays",1,l);if(m<lc){const g=Math.round(m/D3);return i.formatDistance("xDays",g,l)}if(m<2*lc)return _=Math.round(m/lc),i.formatDistance("aboutXMonths",_,l);if(_=YS(d,c),_<12){const g=Math.round(m/lc);return i.formatDistance("xMonths",g,l)}{const g=_%12,p=Math.trunc(_/12);return g<3?i.formatDistance("aboutXYears",p,l):g<9?i.formatDistance("overXYears",p,l):i.formatDistance("almostXYears",p+1,l)}}(t,function(n){return tz(n,Date.now())}(t),e)}const XS=()=>{const t=X.c(7),{selectedLayout:e}=TS(),{setLayoutView:n}=MS();if(Hn()&&!rm("wasm_layouts"))return null;let o,r,s,i;return t[0]!==n?(o=a=>n(a),t[0]=n,t[1]=o):o=t[1],t[2]===Symbol.for("react.memo_cache_sentinel")?(r=h.jsx(cm,{className:"min-w-[110px] border-border bg-background","data-testid":"layout-select",children:h.jsx(dm,{placeholder:"Select a view"})}),t[2]=r):r=t[2],t[3]===Symbol.for("react.memo_cache_sentinel")?(s=h.jsx(sm,{children:h.jsxs(R3,{children:[h.jsx(rz,{children:"View as"}),OS.map(QS)]})}),t[3]=s):s=t[3],t[4]!==e||t[5]!==o?(i=h.jsxs(um,{"data-testid":"layout-select",value:e,onValueChange:o,children:[r,s]}),t[4]=e,t[5]=o,t[6]=i):i=t[6],i};function ZS(t){const e=tg(t);return h.jsx(e,{className:"h-4 w-4"})}function tg(t){switch(t){case"vertical":return Ap;case"grid":return FH;case"slides":return nd;default:return cc(t),lm}}function ng(t){return am(t)}function QS(t){return h.jsx(im,{value:t,children:h.jsxs("div",{className:"flex items-center gap-1.5 leading-5",children:[ZS(t),h.jsx("span",{children:ng(t)})]})},t)}function eC(){const t=X.c(7);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=[],t[0]=e):e=t[0];const[n,o]=function(i,a){const l=X.c(11);let c;l[0]!==a?(c=new sz(a),l[0]=a,l[1]=c):c=l[1];const d=c;let u;l[2]!==i||l[3]!==d?(u=()=>d.get(i),l[2]=i,l[3]=d,l[4]=u):u=l[4];const[f,m]=A.useState(u);let _;l[5]!==i||l[6]!==d?(_=b=>{m(b),d.set(i,b)},l[5]=i,l[6]=d,l[7]=_):_=l[7];const g=_;let p;return l[8]!==g||l[9]!==f?(p=[f,g],l[8]=g,l[9]=f,l[10]=p):p=l[10],p}("marimo:commands",e);let r,s;return t[1]!==n||t[2]!==o?(r=i=>{const a=(l=[i,...n],[...new Set(l)]);var l;o(a.slice(0,3))},t[1]=n,t[2]=o,t[3]=r):r=t[3],t[4]!==n||t[5]!==r?(s={recentCommands:n,addRecentCommand:r},t[4]=n,t[5]=r,t[6]=s):s=t[6],s}function og(t){return t.dropdown!==void 0}function Da(t,e=""){return t.flatMap(n=>n.label?og(n)?Da(n.dropdown,`${e+n.label} > `):{...n,label:e+n.label}:[])}const ai=t=>{const e=X.c(8),{children:n,layerTop:o}=t,r=o!==void 0&&o;let s;e[0]!==n?(s=K.Children.toArray(n),e[0]=n,e[1]=s):s=e[1];const[i,a]=s,l=`second-icon absolute ${r?"top-[-2px] left-[-2px]":"bottom-[-2px] right-[-2px]"} rounded-full`;let c,d;return e[2]!==a||e[3]!==l?(c=h.jsx("div",{className:l,children:a}),e[2]=a,e[3]=l,e[4]=c):c=e[4],e[5]!==i||e[6]!==c?(d=h.jsxs("div",{className:"multi-icon relative w-fit",children:[i,c]}),e[5]=i,e[6]=c,e[7]=d):d=e[7],d};function ad(t){const e=X.c(3),n=ld();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],tt(o)}function rg(){const t=X.c(2),e=ld();let n;return t[0]!==e?(n=()=>e(F3(po())),t[0]=e,t[1]=n):n=t[1],tt(n)}function ld(){const t=X.c(2),{prepareForRun:e}=Ft();let n;return t[0]!==e?(n=async o=>{var a;if(o.length===0)return;const{cellHandles:r,cellData:s}=po(),i=[];for(const l of o){const c=r[l],d=(a=c.current)==null?void 0:a.editorView;let u;d?(z3(d)!=="markdown"&&hm(d),u=B3(d)):u=s[l].code,i.push(u),e({cellId:l})}await az({cellIds:o,codes:i}).catch(tC)},t[0]=e,t[1]=n):n=t[1],tt(n)}function tC(t){Zt.error(t)}const Ra=Qt(null),nC=Qt(!1),cd=U3("marimo:ai:chatState:v2",{chats:[],activeChatId:null}),oC=Qt(t=>{const e=t(cd);return e.chats.find(n=>n.id===e.activeChatId)},(t,e,n)=>{e(cd,o=>({...o,activeChatId:n}))}),dd=t=>{const e=X.c(7);let n,o;e[0]!==t?(n=a=>{var l;(a.ctrlKey||a.metaKey)&&a.key==="z"&&(a.preventDefault(),a.stopPropagation(),(l=t.onClick)==null||l.call(t,a))},e[0]=t,e[1]=n):n=e[1],e[2]===Symbol.for("react.memo_cache_sentinel")?(o={capture:!0},e[2]=o):o=e[2],fm(window,"keydown",n,o);const r=t.children??"Undo";let s,i;return e[3]===Symbol.for("react.memo_cache_sentinel")?(s=h.jsx(lz,{className:"ml-2",shortcut:"cmd-z"}),e[3]=s):s=e[3],e[4]!==r||e[5]!==t?(i=h.jsxs(Pe,{"data-testid":"undo-button",size:"sm",variant:"outline",...t,children:[r," ",s]}),e[4]=r,e[5]=t,e[6]=i):i=e[6],i};function ud(){const t=X.c(3),{deleteCell:e,undoDeleteCell:n}=Ft();let o;return t[0]!==e||t[1]!==n?(o=r=>{var l;if(lt.get(V3))return;const{cellId:s}=r,i=lt.get(dc),a=(((l=i.cellData[s])==null?void 0:l.code)??"").trim()==="";if(e({cellId:s}),cz({cellId:s}).catch(()=>{n()}),!a){const{dismiss:c}=ct({title:"Cell deleted",description:"You can bring it back by clicking undo or through the command palette.",action:h.jsx(dd,{"data-testid":"undo-delete-button",onClick:()=>{n(),d()}})}),d=c}},t[0]=e,t[1]=n,t[2]=o):o=t[2],tt(o)}function sg(){const t=X.c(3),{splitCell:e,undoSplitCell:n}=Ft();let o;return t[0]!==e||t[1]!==n?(o=r=>{const s=uc(r.cellId);if(!s)return;const i=B3(s);e(r);const{dismiss:a}=ct({title:"Cell split",action:h.jsx(dd,{"data-testid":"undo-split-button",size:"sm",variant:"outline",onClick:()=>{n({...r,snapshot:i}),l()},children:"Undo"})}),l=a},t[0]=e,t[1]=n,t[2]=o):o=t[2],tt(o)}function hd(t){const e=X.c(49),{cell:n}=t,{createNewCell:o,updateCellConfig:r,updateCellName:s,moveCell:i,sendToTop:a,sendToBottom:l,addColumnBreakpoint:c,clearCellOutput:d}=Ft(),u=sg(),f=ad(n==null?void 0:n.cellId),m=!qe(V3),_=ud(),{openModal:g}=$n(),p=en(Ra),b=qe(hc),x=qe(Os),y=qe(Ds),v=qe(dz);if(!n||y){let N;return e[0]===Symbol.for("react.memo_cache_sentinel")?(N=[],e[0]=N):N=e[0],N}const{cellId:S,config:k,getEditorView:E,name:j,hasOutput:I,hasConsoleOutput:T,status:M}=n;let L;e[1]!==S||e[2]!==k.disabled||e[3]!==r?(L=async()=>{const N={disabled:!k.disabled};await Lr({configs:{[S]:N}}),r({cellId:S,config:N})},e[1]=S,e[2]=k.disabled,e[3]=r,e[4]=L):L=e[4];const B=L;let O;e[5]!==S||e[6]!==k.hide_code||e[7]!==E||e[8]!==r?(O=async()=>{const N={hide_code:!k.hide_code};await Lr({configs:{[S]:N}}),r({cellId:S,config:N});const $=E();$&&(N.hide_code?$.contentDOM.blur():$.focus())},e[5]=S,e[6]=k.hide_code,e[7]=E,e[8]=r,e[9]=O):O=e[9];const z=O;let F,V,R,C,H;return e[10]===Symbol.for("react.memo_cache_sentinel")?(F=h.jsx(Xp,{size:13,strokeWidth:1.5}),e[10]=F):F=e[10],e[11]!==S||e[12]!==j||e[13]!==g||e[14]!==s?(V=()=>{g(h.jsxs(dr,{children:[h.jsx(Rs,{children:h.jsx(ur,{children:"Rename cell"})}),h.jsxs("div",{className:"flex items-center justify-between",children:[h.jsx(Fr,{htmlFor:"cell-name",children:"Cell name"}),h.jsx(RS,{placeholder:"cell name",value:j,onKeyDown:N=>{N.key==="Enter"&&(N.preventDefault(),N.stopPropagation(),g(null))},onChange:N=>s({cellId:S,name:N})})]})]}))},e[11]=S,e[12]=j,e[13]=g,e[14]=s,e[15]=V):V=e[15],e[16]!==S||e[17]!==s?(R=N=>s({cellId:S,name:N}),e[16]=S,e[17]=s,e[18]=R):R=e[18],e[19]!==j||e[20]!==R?(C=h.jsx(RS,{placeholder:"cell name",value:j,onChange:R}),e[19]=j,e[20]=R,e[21]=C):C=e[21],e[22]!==c||e[23]!==b||e[24]!==v||e[25]!==x||e[26]!==m||e[27]!==S||e[28]!==d||e[29]!==k.disabled||e[30]!==k.hide_code||e[31]!==o||e[32]!==_||e[33]!==E||e[34]!==T||e[35]!==I||e[36]!==i||e[37]!==j||e[38]!==f||e[39]!==l||e[40]!==a||e[41]!==p||e[42]!==u||e[43]!==M||e[44]!==V||e[45]!==C||e[46]!==B||e[47]!==z?(H=[[{icon:F,label:"Name",disableClick:!0,handle:aC,handleHeadless:V,rightElement:C},{icon:h.jsx(ri,{size:13,strokeWidth:1.5}),label:"Run cell",hotkey:"cell.run",hidden:M==="running"||M==="queued"||M==="disabled-transitively"||k.disabled,handle:()=>f()},{icon:h.jsx(na,{size:13,strokeWidth:1.5}),label:"AI completion",hidden:!b,handle:()=>{p(N=>(N==null?void 0:N.cellId)===S?null:{cellId:S})},hotkey:"cell.aiCompletion"},{icon:h.jsx(od,{size:13,strokeWidth:1.5}),label:"Split cell",hotkey:"cell.splitCell",handle:()=>u({cellId:S})},{icon:h.jsx(rp,{size:13,strokeWidth:1.5}),label:"Export output as PNG",hidden:!I,handle:()=>function(N){const $=document.getElementById(P3.create(N));$&&($.classList.add("printing-output"),L3($,"result.png").finally(()=>{$.classList.remove("printing-output")}))}(S)},{icon:h.jsx(hz,{size:13,strokeWidth:1.5}),label:"Format cell",hotkey:"cell.format",handle:()=>{const N=E();N&&uz({[S]:N})}},{icon:k.hide_code?h.jsx(H3,{size:13,strokeWidth:1.5}):h.jsx($3,{size:13,strokeWidth:1.5}),label:k.hide_code?"Show code":"Hide code",handle:z,hotkey:"cell.hideCode"},{icon:k.disabled?h.jsx(xr,{size:13,strokeWidth:1.5}):h.jsx(wr,{size:13,strokeWidth:1.5}),label:"Reactive execution",rightElement:h.jsx(fz,{"data-testid":"cell-disable-switch",checked:!k.disabled,size:"sm",onCheckedChange:B}),handle:B},{icon:h.jsx(mm,{size:13,strokeWidth:1.5}),label:"Clear output",hidden:!(I||T),handle:()=>{d({cellId:S})}}],[{icon:h.jsx(fc,{}),label:"Convert to Markdown",hotkey:"cell.viewAsMarkdown",handle:()=>{const N=E();N&&(lr(x,o),Pr(N,"markdown",{keepCodeAsIs:!1}))}},{icon:h.jsx(cr,{size:13,strokeWidth:1.5}),label:"Convert to SQL",handle:()=>{const N=E();N&&(lr(x,o),Pr(N,"sql",{keepCodeAsIs:!1}))}},{icon:h.jsx(mc,{}),label:"Toggle as Python",handle:()=>{const N=E();N&&(lr(x,o),mz(N,"python",{force:!0}))}}],[{icon:h.jsxs(ai,{children:[h.jsx(ja,{size:13,strokeWidth:1.5}),h.jsx(W3,{size:8,strokeWidth:2})]}),label:"Create cell above",hotkey:"cell.createAbove",handle:()=>o({cellId:S,before:!0})},{icon:h.jsxs(ai,{children:[h.jsx(ja,{size:13,strokeWidth:1.5}),h.jsx(oa,{size:8,strokeWidth:2})]}),label:"Create cell below",hotkey:"cell.createBelow",handle:()=>o({cellId:S,before:!1})},{icon:h.jsx(W3,{size:13,strokeWidth:1.5}),label:"Move cell up",hotkey:"cell.moveUp",handle:()=>i({cellId:S,before:!0})},{icon:h.jsx(oa,{size:13,strokeWidth:1.5}),label:"Move cell down",hotkey:"cell.moveDown",handle:()=>i({cellId:S,before:!1})},{icon:h.jsx(q3,{size:13,strokeWidth:1.5}),label:"Move cell left",hotkey:"cell.moveLeft",handle:()=>i({cellId:S,direction:"left"}),hidden:v!=="columns"},{icon:h.jsx(pc,{size:13,strokeWidth:1.5}),label:"Move cell right",hotkey:"cell.moveRight",handle:()=>i({cellId:S,direction:"right"}),hidden:v!=="columns"},{icon:h.jsx(hp,{size:13,strokeWidth:1.5}),label:"Send to top",hotkey:"cell.sendToTop",handle:()=>a({cellId:S})},{icon:h.jsx(up,{size:13,strokeWidth:1.5}),label:"Send to bottom",hotkey:"cell.sendToBottom",handle:()=>l({cellId:S})},{icon:h.jsx(pz,{size:13,strokeWidth:1.5}),label:"Break into new column",hotkey:"cell.addColumnBreakpoint",hidden:v!=="columns",handle:()=>c({cellId:S})}],[{icon:h.jsx(jS,{size:13,strokeWidth:1.5}),label:"Copy link to cell",disabled:!DS(j),tooltip:DS(j)?void 0:"Only named cells can be linked to",handle:async()=>{await xn(o$(j)),ct({description:"Link copied to clipboard"})}}],[{label:"Delete",hidden:!m,variant:"danger",icon:h.jsx(pm,{size:13,strokeWidth:1.5}),handle:()=>{_({cellId:S})}}]].map(sC).filter(rC),e[22]=c,e[23]=b,e[24]=v,e[25]=x,e[26]=m,e[27]=S,e[28]=d,e[29]=k.disabled,e[30]=k.hide_code,e[31]=o,e[32]=_,e[33]=E,e[34]=T,e[35]=I,e[36]=i,e[37]=j,e[38]=f,e[39]=l,e[40]=a,e[41]=p,e[42]=u,e[43]=M,e[44]=V,e[45]=C,e[46]=B,e[47]=z,e[48]=H):H=e[48],H}function rC(t){return t.length>0}function sC(t){return t.filter(iC)}function iC(t){return!t.hidden}function aC(t){t==null||t.stopPropagation(),t==null||t.preventDefault()}function lC(t){return!t.hidden}const fd=Qt(!1),ig=()=>{const t=X.c(37),[e,n]=fn(fd),o=_z(),r=qe(bz),s=qe(gm);let i;t[0]!==r?(i={cell:r},t[0]=r,t[1]=i):i=t[1];let a=hd(i).flat();a=Da(a);const l=function(){const R=X.c(45),{theme:C}=Fo(),[H,N]=Ps(),[$,Y]=G3();let Z;R[0]!==N?(Z=async ce=>{await Ls({config:ce}).then(()=>{N(ce)})},R[0]=N,R[1]=Z):Z=R[1];const q=Z;let re;R[2]!==Y?(re=async ce=>{await gz({config:ce}).then(()=>{Y(ce)})},R[2]=Y,R[3]=re):re=R[3];const ne=re;let oe;if(R[4]!==$||R[5]!==H||R[6]!==ne||R[7]!==q||R[8]!==C){let ce,me,de;R[10]!==$?(ce=We=>We!==$.width,R[10]=$,R[11]=ce):ce=R[11],R[12]!==$||R[13]!==ne?(me=We=>({label:`App config > Set width=${We}`,handle:()=>{ne({...$,width:We})}}),R[12]=$,R[13]=ne,R[14]=me):me=R[14],R[15]!==H||R[16]!==q||R[17]!==C?(de={label:"Config > Toggle dark mode",handle:()=>{q({...H,display:{...H.display,theme:C==="dark"?"light":"dark"}})}},R[15]=H,R[16]=q,R[17]=C,R[18]=de):de=R[18];const ge=H.keymap.preset==="vim";let ie,we;R[19]!==H||R[20]!==q?(ie=()=>{q({...H,keymap:{...H.keymap,preset:"vim"}})},R[19]=H,R[20]=q,R[21]=ie):ie=R[21],R[22]!==ge||R[23]!==ie?(we={label:"Config > Switch keymap to VIM",hidden:ge,handle:ie},R[22]=ge,R[23]=ie,R[24]=we):we=R[24];const ve=H.keymap.preset==="default";let ae,Se,pe;R[25]!==H||R[26]!==q?(ae=()=>{q({...H,keymap:{...H.keymap,preset:"default"}})},R[25]=H,R[26]=q,R[27]=ae):ae=R[27],R[28]!==ae||R[29]!==ve?(Se={label:"Config > Switch keymap to default (current: VIM)",hidden:ve,handle:ae},R[28]=ae,R[29]=ve,R[30]=Se):Se=R[30],R[31]!==H||R[32]!==q?(pe=()=>{q({...H,completion:{...H.completion,copilot:!1}})},R[31]=H,R[32]=q,R[33]=pe):pe=R[33];const Te=H.completion.copilot!=="github";let Re,$e;R[34]!==pe||R[35]!==Te?(Re={label:"Config > Disable GitHub Copilot",handle:pe,hidden:Te},R[34]=pe,R[35]=Te,R[36]=Re):Re=R[36],R[37]!==H||R[38]!==q?($e=()=>{q({...H,completion:{...H.completion,copilot:"github"}})},R[37]=H,R[38]=q,R[39]=$e):$e=R[39];const ze=H.completion.copilot==="github";let Ce;R[40]!==$e||R[41]!==ze?(Ce={label:"Config > Enable GitHub Copilot",handle:$e,hidden:ze},R[40]=$e,R[41]=ze,R[42]=Ce):Ce=R[42],oe=[...zH().filter(ce).map(me),de,we,Se,Re,Ce],R[4]=$,R[5]=H,R[6]=ne,R[7]=q,R[8]=C,R[9]=oe}else oe=R[9];const G=oe;let Q;return R[43]!==G?(Q=G.filter(lC),R[43]=G,R[44]=Q):Q=R[44],Q}();let c=Rg();c=[...Da(c),...Da(l)];const d=c.filter(cC),u=gc.keyBy(d,dC),{recentCommands:f,addRecentCommand:m}=eC();let _;t[2]!==f?(_=new Set(f),t[2]=f,t[3]=_):_=t[3];const g=_;let p,b;t[4]!==s||t[5]!==n?(p=R=>{wz(s.getHotkey("global.commandPalette").key)(R)&&(R.preventDefault(),n(uC))},t[4]=s,t[5]=n,t[6]=p):p=t[6],fm(document,"keydown",p),t[7]!==m||t[8]!==s||t[9]!==o||t[10]!==n?(b=(R,C)=>{const H=o[R];if(!H)return null;const N=s.getHotkey(R);return h.jsxs(go,{disabled:C.disabled,onSelect:()=>{m(R),n(!1),requestAnimationFrame(()=>{H()})},value:N.name,children:[h.jsxs("span",{children:[N.name,C.tooltip&&h.jsx("span",{className:"ml-2",children:C.tooltip})]}),h.jsx(J3,{children:h.jsx(ym,{shortcut:N.key})})]},R)},t[7]=m,t[8]=s,t[9]=o,t[10]=n,t[11]=b):b=t[11];const x=b;let y;t[12]!==m||t[13]!==s||t[14]!==n?(y=(R,C,H,N)=>{const $=H===void 0?{}:H;return h.jsxs(go,{disabled:$.disabled,onSelect:()=>{m(R),n(!1),requestAnimationFrame(()=>{C()})},value:R,children:[h.jsxs("span",{children:[R,$.tooltip&&h.jsxs("span",{className:"ml-2",children:["(",$.tooltip,")"]})]}),N&&h.jsx(J3,{children:h.jsx(ym,{shortcut:s.getHotkey(N).key})})]},R)},t[12]=m,t[13]=s,t[14]=n,t[15]=y):y=t[15];const v=y,S=xz;let k;t[16]===Symbol.for("react.memo_cache_sentinel")?(k=h.jsx(ra,{placeholder:"Type to search..."}),t[16]=k):k=t[16];const E=bm;let j;t[17]===Symbol.for("react.memo_cache_sentinel")?(j=h.jsx(_c,{children:"No results found."}),t[17]=j):j=t[17];const I=f.length>0&&h.jsxs(h.Fragment,{children:[h.jsx(_m,{heading:"Recently Used",children:f.map(R=>{const C=u[R];return yz(R)?x(R,{disabled:C==null?void 0:C.disabled,tooltip:C==null?void 0:C.tooltip}):C&&!og(C)?v(C.label,C.handleHeadless||C.handle,{disabled:C.disabled,tooltip:C.tooltip}):null})}),h.jsx(Y3,{})]}),T=_m,M=s.iterate().map(R=>{if(g.has(R))return null;const C=u[R];return x(R,{disabled:C==null?void 0:C.disabled,tooltip:C==null?void 0:C.tooltip})}),L=d.map(R=>g.has(R.label)?null:v(R.label,R.handleHeadless||R.handle,{disabled:R.disabled,tooltip:R.tooltip}));let B;t[18]!==g||t[19]!==v?(B=R=>g.has(R.label)?null:v(`Cell > ${R.label}`,R.handleHeadless||R.handle,{disabled:R.disabled,tooltip:R.tooltip}),t[18]=g,t[19]=v,t[20]=B):B=t[20];const O=a.map(B);let z,F,V;return t[21]!==T||t[22]!==L||t[23]!==O||t[24]!==M?(z=h.jsxs(T,{heading:"Commands",children:[M,L,O]}),t[21]=T,t[22]=L,t[23]=O,t[24]=M,t[25]=z):z=t[25],t[26]!==E||t[27]!==z||t[28]!==j||t[29]!==I?(F=h.jsxs(E,{children:[j,I,z]}),t[26]=E,t[27]=z,t[28]=j,t[29]=I,t[30]=F):F=t[30],t[31]!==S||t[32]!==e||t[33]!==n||t[34]!==F||t[35]!==k?(V=h.jsxs(S,{open:e,onOpenChange:n,children:[k,F]}),t[31]=S,t[32]=e,t[33]=n,t[34]=F,t[35]=k,t[36]=V):V=t[36],V};function cC(t){return!t.hotkey}function dC(t){return t.label}function uC(t){return!t}const Pa="https://static.marimo.app",hC=t=>{const e=X.c(24),{onClose:n}=t,[o,r]=A.useState("");let s;s=Math.random().toString(36).slice(2,6);const i=`${o}-${s}`,a=`${Pa}/static/${i}`;let l,c,d,u,f,m,_,g,p,b,x;return e[0]!==n||e[1]!==i?(l=async y=>{y.preventDefault(),n();const v=await vz({download:!1,includeCode:!0,files:PS.INSTANCE.filenames()}),S=ct({title:"Uploading static notebook...",description:"Please wait."});await fetch(`${Pa}/api/static`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({html:v,path:i})}).catch(()=>{S.dismiss(),ct({title:"Error uploading static page",description:h.jsxs("div",{children:["Please try again later. If the problem persists, please file a bug report on"," ",h.jsx("a",{href:to.issuesPage,target:"_blank",className:"underline",children:"GitHub"}),"."]})})}),S.dismiss(),ct({title:"Static page uploaded!",description:h.jsxs("div",{children:["The URL has been copied to your clipboard.",h.jsx("br",{}),"You can share it with anyone."]})})},e[0]=n,e[1]=i,e[2]=l):l=e[2],e[3]===Symbol.for("react.memo_cache_sentinel")?(c=h.jsx(ur,{children:"Share static notebook"}),e[3]=c):c=e[3],e[4]===Symbol.for("react.memo_cache_sentinel")?(d=h.jsxs(Rs,{children:[c,h.jsxs(Fs,{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"," ",h.jsx("a",{href:Pa,target:"_blank",children:Pa}),"."]})]}),e[4]=d):d=e[4],e[5]===Symbol.for("react.memo_cache_sentinel")?(u=y=>{const v=y.target.value.toLowerCase().replaceAll(/\s/g,"-").replaceAll(/[^\da-z-]/g,"");r(v)},e[5]=u):u=e[5],e[6]!==o?(f=h.jsx(hr,{"data-testid":"slug-input",id:"slug",autoFocus:!0,value:o,placeholder:"Notebook slug",onChange:u,required:!0,autoComplete:"off"}),e[6]=o,e[7]=f):f=e[7],e[8]!==a?(m=h.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:",h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx(fC,{text:a}),h.jsx("span",{className:"text-primary",children:a})]})]}),e[8]=a,e[9]=m):m=e[9],e[10]!==f||e[11]!==m?(_=h.jsxs("div",{className:"flex flex-col gap-6 py-4",children:[f,m]}),e[10]=f,e[11]=m,e[12]=_):_=e[12],e[13]!==n?(g=h.jsx(Pe,{"data-testid":"cancel-share-static-notebook-button",variant:"secondary",onClick:n,children:"Cancel"}),e[13]=n,e[14]=g):g=e[14],e[15]!==a?(p=h.jsx(Pe,{"data-testid":"share-static-notebook-button","aria-label":"Save",variant:"default",type:"submit",onClick:async()=>{await xn(a)},children:"Create"}),e[15]=a,e[16]=p):p=e[16],e[17]!==p||e[18]!==g?(b=h.jsxs(sa,{children:[g,p]}),e[17]=p,e[18]=g,e[19]=b):b=e[19],e[20]!==b||e[21]!==l||e[22]!==_?(x=h.jsx(dr,{className:"w-fit",children:h.jsxs("form",{onSubmit:l,children:[d,_,b]})}),e[20]=b,e[21]=l,e[22]=_,e[23]=x):x=e[23],x},fC=t=>{const e=X.c(8),[n,o]=K.useState(!1);let r;e[0]!==t.text?(r=Wn.stopPropagation(async c=>{c.preventDefault(),await xn(t.text),o(!0),setTimeout(()=>o(!1),2e3)}),e[0]=t.text,e[1]=r):r=e[1];const s=r;let i,a,l;return e[2]===Symbol.for("react.memo_cache_sentinel")?(i=h.jsx(zs,{size:14,strokeWidth:1.5}),e[2]=i):i=e[2],e[3]!==s?(a=h.jsx(Pe,{"data-testid":"copy-static-notebook-url-button",onClick:s,size:"xs",variant:"secondary",children:i}),e[3]=s,e[4]=a):a=e[4],e[5]!==n||e[6]!==a?(l=h.jsx(Le,{content:"Copied!",open:n,children:a}),e[5]=n,e[6]=a,e[7]=l):l=e[7],l};function ag(){const t=X.c(3),{openConfirm:e}=$n(),n=en(mn);let o;return t[0]!==e||t[1]!==n?(o=()=>{e({title:"Restart Kernel",description:"This will restart the Python kernel. You'll lose all data that's in memory. You will also lose any unsaved changes, so make sure to save your work before restarting.",variant:"destructive",confirmAction:h.jsx(K3,{onClick:async()=>{n({state:mt.CLOSING}),await kz(),Sz()},"aria-label":"Confirm Restart",children:"Restart"})})},t[0]=e,t[1]=n,t[2]=o):o=t[2],o}const md=[{type:"files",Icon:kp,tooltip:"View files",position:"sidebar"},{type:"variables",Icon:bc,tooltip:"Explore variables",position:"sidebar"},{type:"datasources",Icon:cr,tooltip:"Explore data sources",position:"sidebar"},{type:"dependencies",Icon:Aa,tooltip:"Explore dependencies",position:"sidebar"},{type:"packages",Icon:va,tooltip:"Manage packages",position:"sidebar"},{type:"outline",Icon:rd,tooltip:"View outline",position:"sidebar"},{type:"chat",Icon:yc,tooltip:"Chat with AI",position:"sidebar"},{type:"documentation",Icon:sd,tooltip:"View live docs",position:"sidebar"},{type:"logs",Icon:xm,tooltip:"Notebook logs",position:"sidebar"},{type:"tracing",Icon:BH,tooltip:"Tracing",position:"sidebar"},{type:"snippets",Icon:Wp,tooltip:"Snippets",position:"sidebar"},{type:"secrets",Icon:Ep,tooltip:"Secrets",hidden:Hn(),position:"sidebar"},{type:"scratchpad",Icon:Cz,tooltip:"Scratchpad",position:"sidebar"},{type:"errors",Icon:mm,tooltip:"View errors",position:"footer"}];function lg(){const t=X.c(2),e=en(wm);let n;return t[0]!==e?(n=()=>{const o=document.getElementsByClassName("output-area"),r=window.innerHeight||document.documentElement.clientHeight;let s;s=null;for(const i of Array.from(o)){const a=i.getBoundingClientRect();if(a.top>=0&&a.top<=r||a.bottom>=0&&a.bottom<=r){s=Bs.parse(i.parentNode.id);break}}e(i=>({mode:Nz(i.mode),cellAnchor:s})),requestAnimationFrame(()=>{var i;s!==null&&((i=document.getElementById(Bs.create(s)))==null||i.scrollIntoView())})},t[0]=e,t[1]=n):n=t[1],n}function vr(){return Ae.string().optional().describe(Ke.of({label:"Password",inputType:"password",placeholder:"password",optionRegex:".*password.*"}))}function cg(){return Ae.string().optional().describe(Ke.of({label:"Token",inputType:"password",placeholder:"token",optionRegex:".*token.*"}))}function La(){return Ae.string().optional().describe(Ke.of({label:"Warehouse Name",placeholder:"warehouse",optionRegex:".*warehouse.*"}))}function dg(){return Ae.string().optional().describe(Ke.of({label:"URI",optionRegex:".*uri.*"}))}function kr(){return Ae.string().nonempty().describe(Ke.of({label:"Host",placeholder:"localhost",optionRegex:".*host.*"}))}function _o(){return Ae.string().describe(Ke.of({label:"Database",placeholder:"db name",optionRegex:".*database.*"}))}function Sr(){return Ae.string().nonempty().describe(Ke.of({label:"Username",placeholder:"username",optionRegex:".*username.*"}))}function Cr(t){const e=Ae.coerce.string().describe(Ke.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 ug(){return Ae.boolean().default(!1).describe(Ke.of({label:"Read Only"}))}const hg=Ae.object({type:Ae.literal("postgres"),host:kr(),port:Cr(5432).optional(),database:_o(),username:Sr(),password:vr(),ssl:Ae.boolean().default(!1).describe(Ke.of({label:"Use SSL"}))}).describe(Ke.of({direction:"two-columns"})),fg=Ae.object({type:Ae.literal("mysql"),host:kr(),port:Cr(3306),database:_o(),username:Sr(),password:vr(),ssl:Ae.boolean().default(!1).describe(Ke.of({label:"Use SSL"}))}).describe(Ke.of({direction:"two-columns"})),mg=Ae.object({type:Ae.literal("sqlite"),database:_o().describe(Ke.of({label:"Database Path"}))}).describe(Ke.of({direction:"two-columns"})),pg=Ae.object({type:Ae.literal("duckdb"),database:_o().describe(Ke.of({label:"Database Path"})),read_only:ug()}).describe(Ke.of({direction:"two-columns"})),gg=Ae.object({type:Ae.literal("motherduck"),database:_o().default("my_db").describe(Ke.of({label:"Database Name"})),token:cg()}).describe(Ke.of({direction:"two-columns"})),_g=Ae.object({type:Ae.literal("snowflake"),account:Ae.string().nonempty().describe(Ke.of({label:"Account",optionRegex:".*snowflake.*"})),warehouse:Ae.string().optional().describe(Ke.of({label:"Warehouse",optionRegex:".*snowflake.*"})),database:_o(),schema:Ae.string().optional().describe(Ke.of({label:"Schema",optionRegex:".*snowflake.*"})),username:Sr(),password:vr(),role:Ae.string().optional().describe(Ke.of({label:"Role"}))}).describe(Ke.of({direction:"two-columns"})),bg=Ae.object({type:Ae.literal("bigquery"),project:Ae.string().nonempty().describe(Ke.of({label:"Project ID",optionRegex:".*bigquery.*"})),dataset:Ae.string().nonempty().describe(Ke.of({label:"Dataset",optionRegex:".*bigquery.*"})),credentials_json:Ae.string().describe(Ke.of({label:"Credentials JSON",inputType:"textarea"}))}).describe(Ke.of({direction:"two-columns"})),yg=Ae.object({type:Ae.literal("clickhouse_connect"),host:kr(),port:Cr(8123).optional(),username:Sr(),password:vr(),secure:Ae.boolean().default(!1).describe(Ke.of({label:"Use HTTPs"}))}).describe(Ke.of({direction:"two-columns"})),xg=Ae.object({type:Ae.literal("timeplus"),host:kr().default("localhost"),port:Cr(8123).optional(),username:Sr().default("default"),password:vr().default("")}).describe(Ke.of({direction:"two-columns"})),wg=Ae.object({type:Ae.literal("chdb"),database:_o().describe(Ke.of({label:"Database Path"})),read_only:ug()}).describe(Ke.of({direction:"two-columns"})),vg=Ae.object({type:Ae.literal("trino"),host:kr(),port:Cr(8080),database:_o(),schema:Ae.string().describe(Ke.of({label:"Schema",placeholder:"schema name",optionRegex:".*schema.*"})).optional(),username:Sr(),password:vr(),async_support:Ae.boolean().default(!1).describe(Ke.of({label:"Async Support"}))}).describe(Ke.of({direction:"two-columns"})),kg=Ae.object({type:Ae.literal("iceberg"),name:Ae.string().describe(Ke.of({label:"Catalog Name"})),catalog:Ae.discriminatedUnion("type",[Ae.object({type:Ae.literal("REST"),warehouse:La(),uri:Ae.string().optional().describe(Ke.of({label:"URI",placeholder:"https://",optionRegex:".*uri.*"})),token:cg()}),Ae.object({type:Ae.literal("SQL"),warehouse:La(),uri:Ae.string().optional().describe(Ke.of({label:"URI",placeholder:"jdbc:iceberg://host:port/database",optionRegex:".*uri.*"}))}),Ae.object({type:Ae.literal("Hive"),warehouse:La(),uri:dg()}),Ae.object({type:Ae.literal("Glue"),warehouse:La(),uri:dg()}),Ae.object({type:Ae.literal("DynamoDB"),"dynamodb.profile-name":Ae.string().optional().describe(Ke.of({label:"Profile Name"})),"dynamodb.region":Ae.string().optional().describe(Ke.of({label:"Region"})),"dynamodb.access-key-id":Ae.string().optional().describe(Ke.of({label:"Access Key ID"})),"dynamodb.secret-access-key":Ae.string().optional().describe(Ke.of({label:"Secret Access Key",inputType:"password"})),"dynamodb.session-token":Ae.string().optional().describe(Ke.of({label:"Session Token",inputType:"password"}))})]).default({type:"REST"}).describe(Ke.of({special:"tabs"}))}),Sg=Ae.object({type:Ae.literal("datafusion"),sessionContext:Ae.boolean().optional().describe(Ke.of({label:"Use Session Context"}))}),Cg=Ae.object({type:Ae.literal("pyspark"),host:kr().optional(),port:Cr().optional()}),Ng=Ae.object({type:Ae.literal("redshift"),host:kr(),port:Cr(5439),connectionType:Ae.discriminatedUnion("type",[Ae.object({type:Ae.literal("IAM credentials"),region:Ae.string().describe(Ke.of({label:"Region"})),aws_access_key_id:Ae.string().nonempty().describe(Ke.of({label:"AWS Access Key ID",inputType:"password",optionRegex:".*aws_access_key_id.*"})),aws_secret_access_key:Ae.string().nonempty().describe(Ke.of({label:"AWS Secret Access Key",inputType:"password",optionRegex:".*aws_secret_access_key.*"})),aws_session_token:Ae.string().optional().describe(Ke.of({label:"AWS Session Token",inputType:"password",optionRegex:".*aws_session_token.*"}))}),Ae.object({type:Ae.literal("DB credentials"),user:Sr(),password:vr()})]).default({type:"IAM credentials",aws_access_key_id:"",aws_secret_access_key:"",region:""}),database:_o()}).describe(Ke.of({direction:"two-columns"})),mC=Ae.discriminatedUnion("type",[hg,fg,mg,pg,gg,_g,bg,yg,xg,wg,vg,kg,Sg,Cg,Ng]),pd="env:";function Fa(t){return typeof t=="string"&&t.startsWith(pd)}function gd(t){return`${pd}${t}`}const jg={sqlmodel:"SQLModel",sqlalchemy:"SQLAlchemy",duckdb:"DuckDB",clickhouse_connect:"ClickHouse Connect",chdb:"chDB",pyiceberg:"PyIceberg",ibis:"Ibis",motherduck:"MotherDuck",redshift:"Redshift"};class an{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 pC{constructor(){this.secrets={}}get imports(){return Object.keys(this.secrets).length===0?new Set:new Set(["import os"])}print(e,n,o){if(e=(r=>`_${r}`)(e),Fa(n)){const r=n.replace(pd,""),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"?Vr(n):n?`"${n}"`:""}printInFString(e,n,o){if(n===void 0)return"";if(typeof n=="number")return`${n}`;if(typeof n=="boolean")return Vr(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 Fa(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(`
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./tracing-CY-0CYWT.js","./index-CgxFL2cr.js","./index-BH3Eb9nz.css","./compile-DUWz9pu8.js","./time-CB0do-Ir.js","./timer-BI-lUAZ7.js","./linear-DAHL7y9L.js","./init-DLRA0X12.js","./range-CtcPcB_L.js","./zoom-COrs4lFh.js","./ordinal-DDUp3AbE.js","./colors-bszWmPJw.js","./arc-Cuwikxov.js","./step-BwsUM5iJ.js","./panels-CDs1ZUWp.js","./index-B9ev0lFv.js","./index-B9YRoRDw.js","./index-Dze_2Wiz.js","./index-e_zth6yw.js","./index-7yPgKTzA.js","./index-BLpyrJhm.js","./index-BEV7EN2P.js","./index-nGm80mNn.js","./index-BYFT-7U8.js","./index-tAg0vEkQ.js","./index-DE-6BPBD.js","./index-CRibqT7u.js","./index-DFOqQfA5.js","./apl-CXdQSnD-.js","./asciiarmor-D5V0T9Cu.js","./asterisk-B46aRdXb.js","./brainfuck-CtZaYBKt.js","./clike-BgBwzOhw.js","./cmake-DXn5xaP-.js","./cobol-stawOqaz.js","./coffeescript-BTDxI-eT.js","./commonlisp-vq6DHwts.js","./crystal-CRzZ78HM.js","./cypher-gJDei3ni.js","./d-BShv7fp-.js","./diff-UJJ5BM9S.js","./dockerfile-knGOOxt4.js","./simple-mode-C3vEBAcb.js","./dtd-DI9Herc-.js","./dylan-CHJ5qNM_.js","./ebnf-B-Df8AvO.js","./ecl-DPFc0Uaf.js","./eiffel-DR5c0IrL.js","./elm-D7xaZ7Da.js","./erlang-BuqgqA5h.js","./factor-CFXhaUWb.js","./fcl-CVaBTCzQ.js","./forth-Dri_5nFc.js","./fortran-DL7KluxX.js","./gas-5kEe4nk0.js","./gherkin-B6X1vGSW.js","./groovy-DnIzCrpZ.js","./haskell-CmdsSjFB.js","./haxe-D25e-2l-.js","./http-BKJkqRj4.js","./idl-pcmmZuaN.js","./jinja2-DhgKlfW7.js","./julia-DjdwvFuI.js","./livescript-HO6ttBFx.js","./lua-8DXOpKDz.js","./mathematica-IIbmv7SK.js","./mbox-z_N2Mo3d.js","./mirc-DkvFAiy5.js","./modelica-DSrSSXCg.js","./mscgen-B2igx18G.js","./mumps-zvxmGV4l.js","./nginx-B4hAVlXN.js","./nsis-BvKfQ9lQ.js","./ntriples-FFvkTduk.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","./puppet-Bc-yJKzi.js","./q-B0kTJ4cI.js","./r-BA4EbLKE.js","./ruby-CR-u2WLS.js","./sas-Bqaci40L.js","./scheme-qjP0V5Ag.js","./shell-BLav31RL.js","./sieve-r025o_jW.js","./smalltalk-C7J3IyEP.js","./solr-78MBEUkU.js","./sparql-BRLJFz69.js","./spreadsheet-CGlWr0eM.js","./stylus-OdhglgkO.js","./swift-B_XXVlXX.js","./tcl-B2fODqDH.js","./textile-BuVhTOzU.js","./tiddlywiki-BgR6AEZu.js","./tiki-CI-ztowC.js","./toml-BQXy8elZ.js","./troff-Ce85hlLp.js","./ttcn-BxnYHtq8.js","./turtle-BkSuIpt-.js","./vb-BHgjm0DN.js","./vbscript-Dawdd5GZ.js","./velocity-BdD_26Jv.js","./verilog-B4LBqg_1.js","./vhdl-CWWH2SUo.js","./webidl-CGwyPRYs.js","./xquery-CVDBqZPY.js","./yacas-I8QjZlxf.js","./z80-D8p3gKXp.js","./panels-DcAzAz16.css","./tree-XU0wwiB1.js","./index-D2hGsDFI.js","./tree-C1rhMrxo.css","./circle-play-Dz1W_E0R.js","./_createAggregator-94ZOpgBV.js","./_baseEach-BFwhIXHb.js","./transform-C4Tsj3kK.js","./sortBy-mrUipeUT.js","./_baseMap-BEsULbjA.js","./terminal-BJd9v3PH.js","./terminal-WqMRJt5Z.css"])))=>i.map(i=>d[i]);
|
2
|
+
var qF=Object.defineProperty;var I3=Bt=>{throw TypeError(Bt)};var GF=(Bt,It,gn)=>It in Bt?qF(Bt,It,{enumerable:!0,configurable:!0,writable:!0,value:gn}):Bt[It]=gn;var ee=(Bt,It,gn)=>GF(Bt,typeof It!="symbol"?It+"":It,gn),YF=(Bt,It,gn)=>It.has(Bt)||I3("Cannot "+gn);var A3=(Bt,It,gn)=>(YF(Bt,It,"read from private field"),gn?gn.call(Bt):It.get(Bt)),T3=(Bt,It,gn)=>It.has(Bt)?I3("Cannot add the same private member more than once"):It instanceof WeakSet?It.add(Bt):It.set(Bt,gn);import{u as Fe,Q as A,i9 as JF,ia as KF,ib as M3,ic as XF,id as ZF,ie as QF,R as K,ig as ez,ih as Rr,ii as tz,ij as om,ik as O3,il as nz,im as oz,io as D3,ip as lc,c as X,as as Hn,iq as rm,j as h,dv as sm,dw as R3,dx as rz,dz as im,dB as am,f9 as cc,ir as lm,dt as cm,du as dm,dy as um,is as sz,it as P3,ej as L3,bp as tt,a8 as Ft,iu as iz,dX as po,iv as F3,iw as z3,ix as hm,iy as B3,iz as az,L as Zt,_ as Qt,aF as U3,cE as fm,W as Pe,iA as lz,ek as lt,iB as V3,eo as dc,iC as cz,ao as ct,iD as uc,Z as qe,a_ as $n,a0 as en,iE as hc,iF as Os,e7 as Ds,iG as dz,iH as na,iI as uz,eh as hz,iJ as H3,iK as $3,dP as fz,a7 as mm,iL as lr,iM as Pr,aJ as fc,aL as cr,iN as mz,iO as mc,iP as W3,a5 as oa,eG as q3,a6 as pc,iQ as pz,an as xn,iR as pm,iS as Lr,aj as dr,ak as Rs,al as ur,bg as Fr,U as Fo,e8 as Ps,go as G3,fQ as Ls,gr as gz,b2 as fn,iT as _z,iU as bz,fO as gm,aI as gc,iV as _m,iW as yz,iX as Y3,iY as bm,iZ as xz,i_ as wz,i$ as go,j0 as J3,fU as ym,j1 as ra,j2 as _c,e2 as vz,ae as to,am as Fs,be as hr,j3 as sa,bt as Wn,ap as zs,a4 as Le,f6 as mn,b7 as K3,er as mt,j4 as kz,eT as Sz,dC as bc,j5 as yc,aN as xm,j6 as Cz,eq as wm,ee as Bs,j7 as Nz,j8 as vm,bj as En,j9 as jz,dV as Ae,ja as Ke,jb as km,jc as Ct,jd as X3,je as Ez,fv as Sm,aE as In,aT as qn,gb as Z3,gc as Q3,gd as Iz,gh as Az,ge as e4,V as Oe,dO as Tz,aG as Us,aR as Vs,aH as Hs,aO as sn,ei as zo,jf as Mz,gf as t4,jg as Oz,g6 as n4,g8 as o4,jh as $s,ji as r4,jj as Dz,jk as Rz,ai as Pz,ah as Lz,ed as ia,af as Cm,jl as aa,jm as xc,jn as Fz,jo as zz,jp as s4,jq as pn,fT as i4,dQ as wc,ba as Bz,jr as Uz,ar as Nm,aK as Vz,js as Hz,gs as a4,b6 as vc,jt as jm,aq as la,e3 as l4,ju as $z,ag as Wz,jv as c4,jw as qz,jx as Gz,jy as Yz,jz as Jz,jA as Kz,jB as Xz,dr as Bo,jC as kc,jD as Ws,o as Uo,n as st,fy as An,jE as Tn,jF as ut,jG as qs,jH as zt,fP as Gt,jI as Em,dU as no,jJ as Zz,jK as Qz,b4 as d4,b5 as u4,jL as h4,jM as eB,gv as Gs,jN as Sc,b1 as Cc,gu as zr,jO as f4,jP as ca,el as Im,jQ as tB,jR as nB,jS as oB,jT as rB,jU as m4,jV as sB,jW as p4,jX as g4,jY as iB,jZ as _4,j_ as b4,em as Nc,j$ as aB,bq as lB,k0 as cB,fx as Gn,k1 as dB,k2 as uB,k3 as Ys,k4 as jc,k5 as Js,fI as Vo,k6 as Am,k7 as da,k8 as ua,k9 as ha,ka as hB,fo as Ec,kb as Ic,kc as y4,kd as Ac,eS as fB,fp as mB,r as pB,ke as gB,kf as _B,kg as x4,t as D,kh as bB,ki as yB,kj as Tm,f$ as fa,kk as w4,fB as xB,ft as v4,co as k4,kl as S4,km as fr,kn as wB,ko as vB,kp as kB,kq as SB,kr as CB,ks as NB,kt as jB,ku as EB,kv as IB,kw as AB,kx as TB,ky as MB,kz as OB,kA as DB,kB as RB,kC as PB,kD as LB,kE as FB,kF as zB,kG as BB,kH as UB,kI as VB,kJ as HB,kK as $B,kL as WB,kM as qB,kN as C4,kO as GB,kP as YB,kQ as JB,kR as N4,kS as KB,kT as XB,kU as j4,kV as ZB,kW as Ks,kX as Yn,kY as QB,kZ as eU,k_ as tU,k$ as nU,l0 as oU,l1 as rU,l2 as sU,l3 as iU,l4 as aU,l5 as lU,l6 as mr,l7 as cU,l8 as dU,l9 as uU,la as hU,es as fU,lb as mU,lc as E4,ew as pU,ld as Tc,le as gU,lf as _U,lg as bU,lh as yU,X as pr,li as Mc,ev as xU,lj as Mm,lk as Oc,ll as ma,lm as pa,ln as Dc,lo as gr,lp as I4,lq as Ho,lr as Xs,ls as Om,lt as ga,lu as Zs,lv as Dm,lw as Rm,lx as A4,ly as Rc,lz as wU,S as _a,lA as ba,lB as vU,eR as Pc,lC as kU,lD as Pm,lE as SU,lF as CU,lG as Lc,lH as NU,lI as jU,lJ as T4,lK as Lm,gt as Qs,lL as EU,lM as IU,lN as AU,lO as TU,fG as MU,bd as OU,gw as Et,lP as ya,lQ as ei,lR as DU,lS as RU,lT as Fm,lU as PU,cn as zm,lV as LU,b3 as M4,lW as FU,lX as zU,lY as Fc,lZ as O4,eL as Bm,bf as D4,$ as Um,l_ as R4,l$ as BU,m0 as UU,m1 as Vm,m2 as Hm,m3 as VU,m4 as P4,m5 as L4,m6 as xa,fs as HU,ab as F4,e5 as $U,m7 as z4,m8 as WU,m9 as qU,ma as B4,mb as GU,mc as YU,md as U4,me as V4,mf as JU,bh as H4,mg as KU,mh as $m,ec as XU,mi as $o,dM as $4,mj as W4,eg as q4,fi as Wm,mk as qm,ml as G4,bv as Gm,dN as zc,mm as Y4,mn as ZU,mo as QU,mp as eV,bc as Bc,mq as J4,fb as Ym,mr as K4,ms as tV,mt as X4,mu as nV,g7 as oV,g9 as rV,gg as Jm,gj as sV,mv as iV,mw as Z4,mx as Km,my as aV,mz as lV,mA as cV,a$ as Jn,mB as dV,mC as uV,mD as hV,mE as fV,mF as mV,mG as pV,a9 as gV,mH as Uc,aa as _V,mI as Q4,mJ as bV,f7 as yV,mK as eS,fm as xV,dE as wV,mL as vV,mM as tS,mN as kV,eQ as SV,mO as CV,mP as NV,e6 as jV,mQ as EV,mR as IV,a2 as Vc,mS as AV,a3 as _r,dH as nS,mT as Xm,mU as TV,ep as oS,mV as MV,mW as rS,mX as OV,mY as DV,mZ as RV,m_ as PV,m$ as LV,n0 as FV,n1 as sS,g2 as Zm,g0 as Qm,fX as ti,g1 as Br,n2 as iS,g3 as ep,fY as Ur,dY as zV,n3 as tp,n4 as BV,a1 as UV,n5 as VV,fH as aS,E as ni,n6 as HV,n7 as $V,n8 as WV,n9 as qV,na as wa,nb as GV,nc as YV,nd as JV,ne as KV,nf as XV,ng as lS,nh as ZV,fw as QV,ni as eH,nj as tH,nk as nH,nl as oH,gi as rH,nm as sH,nn as cS,no as iH,np as aH,nq as dS,nr as uS,ns as hS,f5 as fS,nt as lH,nu as cH,nv as mS,nw as pS,nx as Hc,ny as gS,nz as dH,nA as _S,nB as uH,nC as hH,nD as bS,nE as fH,nF as mH,nG as pH,C as yS,nH as gH,nI as _H,nJ as bH,nK as br,nL as xS,dW as yH,fZ as xH,nM as wS,f_ as vS,nN as wH,nO as oi,nP as vH,nQ as $c,nR as kH,nS as SH,y as kS,nT as CH,dk as NH,nU as jH,nV as EH,nW as IH,nX as AH,nY as TH,eY as MH,b0 as OH,aZ as DH,at as Wc,nZ as SS,n_ as CS,av as NS,au as RH,ea as PH,__tla as LH}from"./index-CgxFL2cr.js";import{G as FH,L as jS,g as zH,b as va,A as BH,s as UH,k as VH,B as ES,a as HH,M as $H,Y as WH,c as wn,u as ka,C as qH,S as GH,K as YH,d as JH,i as KH,e as IS,f as XH,h as ZH,j as QH,l as Sa,P as np,m as AS,n as e$,o as t$,p as op,T as n$}from"./tree-XU0wwiB1.js";import{d as TS,e as MS,L as OS,f as ri,I as rp,g as o$,h as DS,N as RS,V as PS,S as LS,F as FS,i as zS,M as r$,l as BS,j as s$,E as US,k as i$,m as sp,n as a$,o as l$,p as c$,q as d$,s as u$,t as h$,v as f$,w as m$,x as p$,a as g$,C as _$,R as VS,b as b$,A as y$,y as x$,z as w$,O as v$,T as k$,B as S$,D as C$,c as N$,P as j$,__tla as E$}from"./panels-CDs1ZUWp.js";import{c as I$}from"./_createAggregator-94ZOpgBV.js";import{s as oo,i as yr,T as ip,a as ap}from"./transform-C4Tsj3kK.js";import{g as HS}from"./timer-BI-lUAZ7.js";import{i as A$}from"./zoom-COrs4lFh.js";import{s as Ca}from"./sortBy-mrUipeUT.js";let lp,qc,Mn,Gc,$S,Na,cp,T$=Promise.all([(()=>{try{return LH}catch{}})(),(()=>{try{return E$}catch{}})()]).then(async()=>{var sc,E3;var Bt=I$(function(t,e,n){t[n?0:1].push(e)},function(){return[[],[]]});let It,gn,dp,Yc,si,ii,up,hp,fp,mp,ja,Jc,pp,Ea,gp,Kc,_p,bp,Xc,yp,xp,wp,Ia,vp,Zc,kp,Sp,Cp,Np,jp,Ep,Qc,Ip,ed,Ap,Tp,Mp,Op,Dp,Aa,Rp,Pp,td,Lp,Fp,zp,nd,Bp,Up,Vp,Ta,od,rd,Hp,$p,Wp,qp,Gp,Yp,Jp,Kp,Xp,sd,id,Zp,Qp,eg,Ma,xr,wr;It=Fe("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]),gn=Fe("arrow-right-from-line",[["path",{d:"M3 5v14",key:"1nt18q"}],["path",{d:"M21 12H7",key:"13ipq5"}],["path",{d:"m15 18 6-6-6-6",key:"6tx3qv"}]]),dp=Fe("arrow-right-to-line",[["path",{d:"M17 12H3",key:"8awo09"}],["path",{d:"m11 18 6-6-6-6",key:"8c2y43"}],["path",{d:"M21 5v14",key:"nzette"}]]),Yc=Fe("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]),si=Fe("ban",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m4.9 4.9 14.2 14.2",key:"1m5liu"}]]),ii=Fe("between-horizontal-start",[["rect",{width:"13",height:"7",x:"8",y:"3",rx:"1",key:"pkso9a"}],["path",{d:"m2 9 3 3-3 3",key:"1agib5"}],["rect",{width:"13",height:"7",x:"8",y:"14",rx:"1",key:"1q5fc1"}]]),up=Fe("chevrons-down",[["path",{d:"m7 6 5 5 5-5",key:"1lc07p"}],["path",{d:"m7 13 5 5 5-5",key:"1d48rs"}]]),hp=Fe("chevrons-up",[["path",{d:"m17 11-5-5-5 5",key:"e8nh98"}],["path",{d:"m17 18-5-5-5 5",key:"2avn1x"}]]),Gc=Fe("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]),fp=Fe("circle-chevron-down",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 10-4 4-4-4",key:"894hmk"}]]),mp=Fe("circle-chevron-right",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m10 8 4 4-4 4",key:"1wy4r4"}]]),ja=Fe("circle-plus",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"M12 8v8",key:"napkw2"}]]),Jc=Fe("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"}]]),pp=Fe("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"}]]),Ea=Fe("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"}]]),gp=Fe("code",[["polyline",{points:"16 18 22 12 16 6",key:"z7tu5w"}],["polyline",{points:"8 6 2 12 8 18",key:"1eg1df"}]]),Kc=Fe("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"}]]),_p=Fe("copy-minus",[["line",{x1:"12",x2:"18",y1:"15",y2:"15",key:"1nscbv"}],["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]),bp=Fe("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"}]]),Xc=Fe("ellipsis-vertical",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]]),yp=Fe("eraser",[["path",{d:"m7 21-4.3-4.3c-1-1-1-2.5 0-3.4l9.6-9.6c1-1 2.5-1 3.4 0l5.6 5.6c1 1 1 2.5 0 3.4L13 21",key:"182aya"}],["path",{d:"M22 21H7",key:"t4ddhn"}],["path",{d:"m5 11 9 9",key:"1mo9qw"}]]),xp=Fe("fast-forward",[["polygon",{points:"13 19 22 12 13 5 13 19",key:"587y9g"}],["polygon",{points:"2 19 11 12 2 5 2 19",key:"3pweh0"}]]),wp=Fe("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"}]]),Ia=Fe("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"}]]),vp=Fe("files",[["path",{d:"M20 7h-3a2 2 0 0 1-2-2V2",key:"x099mo"}],["path",{d:"M9 18a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h7l4 4v10a2 2 0 0 1-2 2Z",key:"18t6ie"}],["path",{d:"M3 7.6v12.8A1.6 1.6 0 0 0 4.6 22h9.8",key:"1nja0z"}]]),Zc=Fe("folder-plus",[["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"M9 13h6",key:"1uhe8q"}],["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]),kp=Fe("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"}]]),Sp=Fe("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"}]]),Cp=Fe("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"}]]),Np=Fe("history",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]]),jp=Fe("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"}]]),Ep=Fe("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"}]]),Qc=Fe("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"}]]),Ip=Fe("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"}]]),ed=Fe("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"}]]),Ap=Fe("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"}]]),Tp=Fe("map-pin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]),Mp=Fe("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"}]]),Op=Fe("message-circle-question",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}],["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"}]]),Dp=Fe("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"}]]),Aa=Fe("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"}]]),Rp=Fe("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"}]]),Pp=Fe("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"}]]),td=Fe("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"}]]),Lp=Fe("panel-left",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]),Fp=Fe("party-popper",[["path",{d:"M5.8 11.3 2 22l10.7-3.79",key:"gwxi1d"}],["path",{d:"M4 3h.01",key:"1vcuye"}],["path",{d:"M22 8h.01",key:"1mrtc2"}],["path",{d:"M15 2h.01",key:"1cjtqr"}],["path",{d:"M22 20h.01",key:"1mrys2"}],["path",{d:"m22 2-2.24.75a2.9 2.9 0 0 0-1.96 3.12c.1.86-.57 1.63-1.45 1.63h-.38c-.86 0-1.6.6-1.76 1.44L14 10",key:"hbicv8"}],["path",{d:"m22 13-.82-.33c-.86-.34-1.82.2-1.98 1.11c-.11.7-.72 1.22-1.43 1.22H17",key:"1i94pl"}],["path",{d:"m11 2 .33.82c.34.86-.2 1.82-1.11 1.98C9.52 4.9 9 5.52 9 6.23V7",key:"1cofks"}],["path",{d:"M11 13c1.93 1.93 2.83 4.17 2 5-.83.83-3.07-.07-5-2-1.93-1.93-2.83-4.17-2-5 .83-.83 3.07.07 5 2Z",key:"4kbmks"}]]),zp=Fe("pen-line",[["path",{d:"M12 20h9",key:"t2du7b"}],["path",{d:"M16.376 3.622a1 1 0 0 1 3.002 3.002L7.368 18.635a2 2 0 0 1-.855.506l-2.872.838a.5.5 0 0 1-.62-.62l.838-2.872a2 2 0 0 1 .506-.854z",key:"1ykcvy"}]]),nd=Fe("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"}]]),Bp=Fe("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"}]]),Up=Fe("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"}]]),Vp=Fe("rows-3",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M21 9H3",key:"1338ky"}],["path",{d:"M21 15H3",key:"9uk58r"}]]),Ta=Fe("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"}]]),od=Fe("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"}]]),rd=Fe("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"}]]),Hp=Fe("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"}]]),$p=Fe("square-code",[["path",{d:"M10 9.5 8 12l2 2.5",key:"3mjy60"}],["path",{d:"m14 9.5 2 2.5-2 2.5",key:"1bir2l"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]),Wp=Fe("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"}]]),qp=Fe("square-equal",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M7 10h10",key:"1101jm"}],["path",{d:"M7 14h10",key:"1mhdw3"}]]),Gp=Fe("square-m",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M8 16V8l4 4 4-4v8",key:"141u4e"}]]),Yp=Fe("square-play",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"m9 8 6 4-6 4Z",key:"f1r3lt"}]]),Jp=Fe("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"}]]),Kp=Fe("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"}]]),Xp=Fe("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"}]]),sd=Fe("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"}]]),id=Fe("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"}]]),Zp=Fe("users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]),Qp=Fe("view",[["path",{d:"M21 17v2a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-2",key:"mrq65r"}],["path",{d:"M21 7V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v2",key:"be3xqs"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["path",{d:"M18.944 12.33a1 1 0 0 0 0-.66 7.5 7.5 0 0 0-13.888 0 1 1 0 0 0 0 .66 7.5 7.5 0 0 0 13.888 0",key:"11ak4c"}]]),eg=Fe("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"}]]),Ma=Fe("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"}]]),xr=Fe("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"}]]),wr=Fe("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"}]]);const WS=A.createContext({}),qS=A.forwardRef(function(t,e){[t,e]=ZF(t,e,WS);let{toolbarProps:n}=function(s,i){const{"aria-label":a,"aria-labelledby":l,orientation:c="horizontal"}=s;let[d,u]=A.useState(!1);JF(()=>{var p;u(!(!i.current||!(!((p=i.current.parentElement)===null||p===void 0)&&p.closest('[role="toolbar"]'))))});const{direction:f}=KF(),m=f==="rtl"&&c==="horizontal";let _=XF(i);const g=A.useRef(null);return{toolbarProps:{...M3(s,{labelable:!0}),role:d?"group":"toolbar","aria-orientation":c,"aria-label":a,"aria-labelledby":a==null?l:void 0,onKeyDownCapture:d?void 0:p=>{if(p.currentTarget.contains(p.target)){if(c==="horizontal"&&p.key==="ArrowRight"||c==="vertical"&&p.key==="ArrowDown")m?_.focusPrevious():_.focusNext();else{if(!(c==="horizontal"&&p.key==="ArrowLeft"||c==="vertical"&&p.key==="ArrowUp"))return p.key==="Tab"?(p.stopPropagation(),g.current=document.activeElement,void(p.shiftKey?_.focusFirst():_.focusLast())):void 0;m?_.focusNext():_.focusPrevious()}p.stopPropagation(),p.preventDefault()}},onFocusCapture:d?void 0:p=>{var b,x;g.current&&!p.currentTarget.contains(p.relatedTarget)&&(!((b=i.current)===null||b===void 0)&&b.contains(p.target))&&((x=g.current)===null||x===void 0||x.focus(),g.current=null)},onBlurCapture:d?void 0:p=>{p.currentTarget.contains(p.relatedTarget)||g.current||(g.current=p.target)}}}}(t,e),o=QF({...t,values:{orientation:t.orientation||"horizontal"},defaultClassName:"react-aria-Toolbar"}),r=M3(t);return delete r.id,K.createElement("div",{...ez(n,r),...o,ref:e,slot:t.slot||void 0,"data-orientation":t.orientation||"horizontal"},o.children)});function Oa(t,e){const n=+Rr(t)-+Rr(e);return n<0?-1:n>0?1:n}function GS(t,e){const n=Rr(t,e==null?void 0:e.in);return+function(o,r){const s=Rr(o,r==null?void 0:r.in);return s.setHours(23,59,59,999),s}(n,e)==+function(o,r){const s=Rr(o,r==null?void 0:r.in),i=s.getMonth();return s.setFullYear(s.getFullYear(),i+1,0),s.setHours(23,59,59,999),s}(n,e)}function YS(t,e,n){const[o,r,s]=om(n==null?void 0:n.in,t,t,e),i=Oa(r,s),a=Math.abs(function(d,u,f){const[m,_]=om(f==null?void 0:f.in,d,u);return 12*(m.getFullYear()-_.getFullYear())+(m.getMonth()-_.getMonth())}(r,s));if(a<1)return 0;r.getMonth()===1&&r.getDate()>27&&r.setDate(30),r.setMonth(r.getMonth()-i*a);let l=Oa(r,s)===-i;GS(o)&&a===1&&Oa(o,s)===1&&(l=!1);const c=i*(a-+l);return c===0?0:c}function JS(t,e,n){const o=function(r,s){return+Rr(r)-+Rr(s)}(t,e)/1e3;return(r=>{const s=(0,Math.trunc)(r);return s===0?0:s})(o)}function KS(t,e){return function(n,o,r){const s=nz(),i=(r==null?void 0:r.locale)??s.locale??oz,a=Oa(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]=om(r==null?void 0:r.in,...a>0?[o,n]:[n,o]),u=JS(d,c),f=(O3(d)-O3(c))/1e3,m=Math.round((u-f)/60);let _;if(m<2)return m===0?i.formatDistance("lessThanXMinutes",1,l):i.formatDistance("xMinutes",m,l);if(m<45)return i.formatDistance("xMinutes",m,l);if(m<90)return i.formatDistance("aboutXHours",1,l);if(m<D3){const g=Math.round(m/60);return i.formatDistance("aboutXHours",g,l)}if(m<2520)return i.formatDistance("xDays",1,l);if(m<lc){const g=Math.round(m/D3);return i.formatDistance("xDays",g,l)}if(m<2*lc)return _=Math.round(m/lc),i.formatDistance("aboutXMonths",_,l);if(_=YS(d,c),_<12){const g=Math.round(m/lc);return i.formatDistance("xMonths",g,l)}{const g=_%12,p=Math.trunc(_/12);return g<3?i.formatDistance("aboutXYears",p,l):g<9?i.formatDistance("overXYears",p,l):i.formatDistance("almostXYears",p+1,l)}}(t,function(n){return tz(n,Date.now())}(t),e)}const XS=()=>{const t=X.c(7),{selectedLayout:e}=TS(),{setLayoutView:n}=MS();if(Hn()&&!rm("wasm_layouts"))return null;let o,r,s,i;return t[0]!==n?(o=a=>n(a),t[0]=n,t[1]=o):o=t[1],t[2]===Symbol.for("react.memo_cache_sentinel")?(r=h.jsx(cm,{className:"min-w-[110px] border-border bg-background","data-testid":"layout-select",children:h.jsx(dm,{placeholder:"Select a view"})}),t[2]=r):r=t[2],t[3]===Symbol.for("react.memo_cache_sentinel")?(s=h.jsx(sm,{children:h.jsxs(R3,{children:[h.jsx(rz,{children:"View as"}),OS.map(QS)]})}),t[3]=s):s=t[3],t[4]!==e||t[5]!==o?(i=h.jsxs(um,{"data-testid":"layout-select",value:e,onValueChange:o,children:[r,s]}),t[4]=e,t[5]=o,t[6]=i):i=t[6],i};function ZS(t){const e=tg(t);return h.jsx(e,{className:"h-4 w-4"})}function tg(t){switch(t){case"vertical":return Ap;case"grid":return FH;case"slides":return nd;default:return cc(t),lm}}function ng(t){return am(t)}function QS(t){return h.jsx(im,{value:t,children:h.jsxs("div",{className:"flex items-center gap-1.5 leading-5",children:[ZS(t),h.jsx("span",{children:ng(t)})]})},t)}function eC(){const t=X.c(7);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=[],t[0]=e):e=t[0];const[n,o]=function(i,a){const l=X.c(11);let c;l[0]!==a?(c=new sz(a),l[0]=a,l[1]=c):c=l[1];const d=c;let u;l[2]!==i||l[3]!==d?(u=()=>d.get(i),l[2]=i,l[3]=d,l[4]=u):u=l[4];const[f,m]=A.useState(u);let _;l[5]!==i||l[6]!==d?(_=b=>{m(b),d.set(i,b)},l[5]=i,l[6]=d,l[7]=_):_=l[7];const g=_;let p;return l[8]!==g||l[9]!==f?(p=[f,g],l[8]=g,l[9]=f,l[10]=p):p=l[10],p}("marimo:commands",e);let r,s;return t[1]!==n||t[2]!==o?(r=i=>{const a=(l=[i,...n],[...new Set(l)]);var l;o(a.slice(0,3))},t[1]=n,t[2]=o,t[3]=r):r=t[3],t[4]!==n||t[5]!==r?(s={recentCommands:n,addRecentCommand:r},t[4]=n,t[5]=r,t[6]=s):s=t[6],s}function og(t){return t.dropdown!==void 0}function Da(t,e=""){return t.flatMap(n=>n.label?og(n)?Da(n.dropdown,`${e+n.label} > `):{...n,label:e+n.label}:[])}const ai=t=>{const e=X.c(8),{children:n,layerTop:o}=t,r=o!==void 0&&o;let s;e[0]!==n?(s=K.Children.toArray(n),e[0]=n,e[1]=s):s=e[1];const[i,a]=s,l=`second-icon absolute ${r?"top-[-2px] left-[-2px]":"bottom-[-2px] right-[-2px]"} rounded-full`;let c,d;return e[2]!==a||e[3]!==l?(c=h.jsx("div",{className:l,children:a}),e[2]=a,e[3]=l,e[4]=c):c=e[4],e[5]!==i||e[6]!==c?(d=h.jsxs("div",{className:"multi-icon relative w-fit",children:[i,c]}),e[5]=i,e[6]=c,e[7]=d):d=e[7],d};function ad(t){const e=X.c(3),n=ld();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],tt(o)}function rg(){const t=X.c(2),e=ld();let n;return t[0]!==e?(n=()=>e(F3(po())),t[0]=e,t[1]=n):n=t[1],tt(n)}function ld(){const t=X.c(2),{prepareForRun:e}=Ft();let n;return t[0]!==e?(n=async o=>{var a;if(o.length===0)return;const{cellHandles:r,cellData:s}=po(),i=[];for(const l of o){const c=r[l],d=(a=c.current)==null?void 0:a.editorView;let u;d?(z3(d)!=="markdown"&&hm(d),u=B3(d)):u=s[l].code,i.push(u),e({cellId:l})}await az({cellIds:o,codes:i}).catch(tC)},t[0]=e,t[1]=n):n=t[1],tt(n)}function tC(t){Zt.error(t)}const Ra=Qt(null),nC=Qt(!1),cd=U3("marimo:ai:chatState:v2",{chats:[],activeChatId:null}),oC=Qt(t=>{const e=t(cd);return e.chats.find(n=>n.id===e.activeChatId)},(t,e,n)=>{e(cd,o=>({...o,activeChatId:n}))}),dd=t=>{const e=X.c(7);let n,o;e[0]!==t?(n=a=>{var l;(a.ctrlKey||a.metaKey)&&a.key==="z"&&(a.preventDefault(),a.stopPropagation(),(l=t.onClick)==null||l.call(t,a))},e[0]=t,e[1]=n):n=e[1],e[2]===Symbol.for("react.memo_cache_sentinel")?(o={capture:!0},e[2]=o):o=e[2],fm(window,"keydown",n,o);const r=t.children??"Undo";let s,i;return e[3]===Symbol.for("react.memo_cache_sentinel")?(s=h.jsx(lz,{className:"ml-2",shortcut:"cmd-z"}),e[3]=s):s=e[3],e[4]!==r||e[5]!==t?(i=h.jsxs(Pe,{"data-testid":"undo-button",size:"sm",variant:"outline",...t,children:[r," ",s]}),e[4]=r,e[5]=t,e[6]=i):i=e[6],i};function ud(){const t=X.c(3),{deleteCell:e,undoDeleteCell:n}=Ft();let o;return t[0]!==e||t[1]!==n?(o=r=>{var l;if(lt.get(V3))return;const{cellId:s}=r,i=lt.get(dc),a=(((l=i.cellData[s])==null?void 0:l.code)??"").trim()==="";if(e({cellId:s}),cz({cellId:s}).catch(()=>{n()}),!a){const{dismiss:c}=ct({title:"Cell deleted",description:"You can bring it back by clicking undo or through the command palette.",action:h.jsx(dd,{"data-testid":"undo-delete-button",onClick:()=>{n(),d()}})}),d=c}},t[0]=e,t[1]=n,t[2]=o):o=t[2],tt(o)}function sg(){const t=X.c(3),{splitCell:e,undoSplitCell:n}=Ft();let o;return t[0]!==e||t[1]!==n?(o=r=>{const s=uc(r.cellId);if(!s)return;const i=B3(s);e(r);const{dismiss:a}=ct({title:"Cell split",action:h.jsx(dd,{"data-testid":"undo-split-button",size:"sm",variant:"outline",onClick:()=>{n({...r,snapshot:i}),l()},children:"Undo"})}),l=a},t[0]=e,t[1]=n,t[2]=o):o=t[2],tt(o)}function hd(t){const e=X.c(49),{cell:n}=t,{createNewCell:o,updateCellConfig:r,updateCellName:s,moveCell:i,sendToTop:a,sendToBottom:l,addColumnBreakpoint:c,clearCellOutput:d}=Ft(),u=sg(),f=ad(n==null?void 0:n.cellId),m=!qe(V3),_=ud(),{openModal:g}=$n(),p=en(Ra),b=qe(hc),x=qe(Os),y=qe(Ds),v=qe(dz);if(!n||y){let N;return e[0]===Symbol.for("react.memo_cache_sentinel")?(N=[],e[0]=N):N=e[0],N}const{cellId:S,config:k,getEditorView:E,name:j,hasOutput:I,hasConsoleOutput:T,status:M}=n;let L;e[1]!==S||e[2]!==k.disabled||e[3]!==r?(L=async()=>{const N={disabled:!k.disabled};await Lr({configs:{[S]:N}}),r({cellId:S,config:N})},e[1]=S,e[2]=k.disabled,e[3]=r,e[4]=L):L=e[4];const B=L;let O;e[5]!==S||e[6]!==k.hide_code||e[7]!==E||e[8]!==r?(O=async()=>{const N={hide_code:!k.hide_code};await Lr({configs:{[S]:N}}),r({cellId:S,config:N});const $=E();$&&(N.hide_code?$.contentDOM.blur():$.focus())},e[5]=S,e[6]=k.hide_code,e[7]=E,e[8]=r,e[9]=O):O=e[9];const z=O;let F,V,R,C,H;return e[10]===Symbol.for("react.memo_cache_sentinel")?(F=h.jsx(Xp,{size:13,strokeWidth:1.5}),e[10]=F):F=e[10],e[11]!==S||e[12]!==j||e[13]!==g||e[14]!==s?(V=()=>{g(h.jsxs(dr,{children:[h.jsx(Rs,{children:h.jsx(ur,{children:"Rename cell"})}),h.jsxs("div",{className:"flex items-center justify-between",children:[h.jsx(Fr,{htmlFor:"cell-name",children:"Cell name"}),h.jsx(RS,{placeholder:"cell name",value:j,onKeyDown:N=>{N.key==="Enter"&&(N.preventDefault(),N.stopPropagation(),g(null))},onChange:N=>s({cellId:S,name:N})})]})]}))},e[11]=S,e[12]=j,e[13]=g,e[14]=s,e[15]=V):V=e[15],e[16]!==S||e[17]!==s?(R=N=>s({cellId:S,name:N}),e[16]=S,e[17]=s,e[18]=R):R=e[18],e[19]!==j||e[20]!==R?(C=h.jsx(RS,{placeholder:"cell name",value:j,onChange:R}),e[19]=j,e[20]=R,e[21]=C):C=e[21],e[22]!==c||e[23]!==b||e[24]!==v||e[25]!==x||e[26]!==m||e[27]!==S||e[28]!==d||e[29]!==k.disabled||e[30]!==k.hide_code||e[31]!==o||e[32]!==_||e[33]!==E||e[34]!==T||e[35]!==I||e[36]!==i||e[37]!==j||e[38]!==f||e[39]!==l||e[40]!==a||e[41]!==p||e[42]!==u||e[43]!==M||e[44]!==V||e[45]!==C||e[46]!==B||e[47]!==z?(H=[[{icon:F,label:"Name",disableClick:!0,handle:aC,handleHeadless:V,rightElement:C},{icon:h.jsx(ri,{size:13,strokeWidth:1.5}),label:"Run cell",hotkey:"cell.run",hidden:M==="running"||M==="queued"||M==="disabled-transitively"||k.disabled,handle:()=>f()},{icon:h.jsx(na,{size:13,strokeWidth:1.5}),label:"AI completion",hidden:!b,handle:()=>{p(N=>(N==null?void 0:N.cellId)===S?null:{cellId:S})},hotkey:"cell.aiCompletion"},{icon:h.jsx(od,{size:13,strokeWidth:1.5}),label:"Split cell",hotkey:"cell.splitCell",handle:()=>u({cellId:S})},{icon:h.jsx(rp,{size:13,strokeWidth:1.5}),label:"Export output as PNG",hidden:!I,handle:()=>function(N){const $=document.getElementById(P3.create(N));$&&($.classList.add("printing-output"),L3($,"result.png").finally(()=>{$.classList.remove("printing-output")}))}(S)},{icon:h.jsx(hz,{size:13,strokeWidth:1.5}),label:"Format cell",hotkey:"cell.format",handle:()=>{const N=E();N&&uz({[S]:N})}},{icon:k.hide_code?h.jsx(H3,{size:13,strokeWidth:1.5}):h.jsx($3,{size:13,strokeWidth:1.5}),label:k.hide_code?"Show code":"Hide code",handle:z,hotkey:"cell.hideCode"},{icon:k.disabled?h.jsx(xr,{size:13,strokeWidth:1.5}):h.jsx(wr,{size:13,strokeWidth:1.5}),label:"Reactive execution",rightElement:h.jsx(fz,{"data-testid":"cell-disable-switch",checked:!k.disabled,size:"sm",onCheckedChange:B}),handle:B},{icon:h.jsx(mm,{size:13,strokeWidth:1.5}),label:"Clear output",hidden:!(I||T),handle:()=>{d({cellId:S})}}],[{icon:h.jsx(fc,{}),label:"Convert to Markdown",hotkey:"cell.viewAsMarkdown",handle:()=>{const N=E();N&&(lr(x,o),Pr(N,"markdown",{keepCodeAsIs:!1}))}},{icon:h.jsx(cr,{size:13,strokeWidth:1.5}),label:"Convert to SQL",handle:()=>{const N=E();N&&(lr(x,o),Pr(N,"sql",{keepCodeAsIs:!1}))}},{icon:h.jsx(mc,{}),label:"Toggle as Python",handle:()=>{const N=E();N&&(lr(x,o),mz(N,"python",{force:!0}))}}],[{icon:h.jsxs(ai,{children:[h.jsx(ja,{size:13,strokeWidth:1.5}),h.jsx(W3,{size:8,strokeWidth:2})]}),label:"Create cell above",hotkey:"cell.createAbove",handle:()=>o({cellId:S,before:!0})},{icon:h.jsxs(ai,{children:[h.jsx(ja,{size:13,strokeWidth:1.5}),h.jsx(oa,{size:8,strokeWidth:2})]}),label:"Create cell below",hotkey:"cell.createBelow",handle:()=>o({cellId:S,before:!1})},{icon:h.jsx(W3,{size:13,strokeWidth:1.5}),label:"Move cell up",hotkey:"cell.moveUp",handle:()=>i({cellId:S,before:!0})},{icon:h.jsx(oa,{size:13,strokeWidth:1.5}),label:"Move cell down",hotkey:"cell.moveDown",handle:()=>i({cellId:S,before:!1})},{icon:h.jsx(q3,{size:13,strokeWidth:1.5}),label:"Move cell left",hotkey:"cell.moveLeft",handle:()=>i({cellId:S,direction:"left"}),hidden:v!=="columns"},{icon:h.jsx(pc,{size:13,strokeWidth:1.5}),label:"Move cell right",hotkey:"cell.moveRight",handle:()=>i({cellId:S,direction:"right"}),hidden:v!=="columns"},{icon:h.jsx(hp,{size:13,strokeWidth:1.5}),label:"Send to top",hotkey:"cell.sendToTop",handle:()=>a({cellId:S})},{icon:h.jsx(up,{size:13,strokeWidth:1.5}),label:"Send to bottom",hotkey:"cell.sendToBottom",handle:()=>l({cellId:S})},{icon:h.jsx(pz,{size:13,strokeWidth:1.5}),label:"Break into new column",hotkey:"cell.addColumnBreakpoint",hidden:v!=="columns",handle:()=>c({cellId:S})}],[{icon:h.jsx(jS,{size:13,strokeWidth:1.5}),label:"Copy link to cell",disabled:!DS(j),tooltip:DS(j)?void 0:"Only named cells can be linked to",handle:async()=>{await xn(o$(j)),ct({description:"Link copied to clipboard"})}}],[{label:"Delete",hidden:!m,variant:"danger",icon:h.jsx(pm,{size:13,strokeWidth:1.5}),handle:()=>{_({cellId:S})}}]].map(sC).filter(rC),e[22]=c,e[23]=b,e[24]=v,e[25]=x,e[26]=m,e[27]=S,e[28]=d,e[29]=k.disabled,e[30]=k.hide_code,e[31]=o,e[32]=_,e[33]=E,e[34]=T,e[35]=I,e[36]=i,e[37]=j,e[38]=f,e[39]=l,e[40]=a,e[41]=p,e[42]=u,e[43]=M,e[44]=V,e[45]=C,e[46]=B,e[47]=z,e[48]=H):H=e[48],H}function rC(t){return t.length>0}function sC(t){return t.filter(iC)}function iC(t){return!t.hidden}function aC(t){t==null||t.stopPropagation(),t==null||t.preventDefault()}function lC(t){return!t.hidden}const fd=Qt(!1),ig=()=>{const t=X.c(37),[e,n]=fn(fd),o=_z(),r=qe(bz),s=qe(gm);let i;t[0]!==r?(i={cell:r},t[0]=r,t[1]=i):i=t[1];let a=hd(i).flat();a=Da(a);const l=function(){const R=X.c(45),{theme:C}=Fo(),[H,N]=Ps(),[$,Y]=G3();let Z;R[0]!==N?(Z=async ce=>{await Ls({config:ce}).then(()=>{N(ce)})},R[0]=N,R[1]=Z):Z=R[1];const q=Z;let re;R[2]!==Y?(re=async ce=>{await gz({config:ce}).then(()=>{Y(ce)})},R[2]=Y,R[3]=re):re=R[3];const ne=re;let oe;if(R[4]!==$||R[5]!==H||R[6]!==ne||R[7]!==q||R[8]!==C){let ce,me,de;R[10]!==$?(ce=We=>We!==$.width,R[10]=$,R[11]=ce):ce=R[11],R[12]!==$||R[13]!==ne?(me=We=>({label:`App config > Set width=${We}`,handle:()=>{ne({...$,width:We})}}),R[12]=$,R[13]=ne,R[14]=me):me=R[14],R[15]!==H||R[16]!==q||R[17]!==C?(de={label:"Config > Toggle dark mode",handle:()=>{q({...H,display:{...H.display,theme:C==="dark"?"light":"dark"}})}},R[15]=H,R[16]=q,R[17]=C,R[18]=de):de=R[18];const ge=H.keymap.preset==="vim";let ie,we;R[19]!==H||R[20]!==q?(ie=()=>{q({...H,keymap:{...H.keymap,preset:"vim"}})},R[19]=H,R[20]=q,R[21]=ie):ie=R[21],R[22]!==ge||R[23]!==ie?(we={label:"Config > Switch keymap to VIM",hidden:ge,handle:ie},R[22]=ge,R[23]=ie,R[24]=we):we=R[24];const ve=H.keymap.preset==="default";let ae,Se,pe;R[25]!==H||R[26]!==q?(ae=()=>{q({...H,keymap:{...H.keymap,preset:"default"}})},R[25]=H,R[26]=q,R[27]=ae):ae=R[27],R[28]!==ae||R[29]!==ve?(Se={label:"Config > Switch keymap to default (current: VIM)",hidden:ve,handle:ae},R[28]=ae,R[29]=ve,R[30]=Se):Se=R[30],R[31]!==H||R[32]!==q?(pe=()=>{q({...H,completion:{...H.completion,copilot:!1}})},R[31]=H,R[32]=q,R[33]=pe):pe=R[33];const Te=H.completion.copilot!=="github";let Re,$e;R[34]!==pe||R[35]!==Te?(Re={label:"Config > Disable GitHub Copilot",handle:pe,hidden:Te},R[34]=pe,R[35]=Te,R[36]=Re):Re=R[36],R[37]!==H||R[38]!==q?($e=()=>{q({...H,completion:{...H.completion,copilot:"github"}})},R[37]=H,R[38]=q,R[39]=$e):$e=R[39];const ze=H.completion.copilot==="github";let Ce;R[40]!==$e||R[41]!==ze?(Ce={label:"Config > Enable GitHub Copilot",handle:$e,hidden:ze},R[40]=$e,R[41]=ze,R[42]=Ce):Ce=R[42],oe=[...zH().filter(ce).map(me),de,we,Se,Re,Ce],R[4]=$,R[5]=H,R[6]=ne,R[7]=q,R[8]=C,R[9]=oe}else oe=R[9];const G=oe;let Q;return R[43]!==G?(Q=G.filter(lC),R[43]=G,R[44]=Q):Q=R[44],Q}();let c=Rg();c=[...Da(c),...Da(l)];const d=c.filter(cC),u=gc.keyBy(d,dC),{recentCommands:f,addRecentCommand:m}=eC();let _;t[2]!==f?(_=new Set(f),t[2]=f,t[3]=_):_=t[3];const g=_;let p,b;t[4]!==s||t[5]!==n?(p=R=>{wz(s.getHotkey("global.commandPalette").key)(R)&&(R.preventDefault(),n(uC))},t[4]=s,t[5]=n,t[6]=p):p=t[6],fm(document,"keydown",p),t[7]!==m||t[8]!==s||t[9]!==o||t[10]!==n?(b=(R,C)=>{const H=o[R];if(!H)return null;const N=s.getHotkey(R);return h.jsxs(go,{disabled:C.disabled,onSelect:()=>{m(R),n(!1),requestAnimationFrame(()=>{H()})},value:N.name,children:[h.jsxs("span",{children:[N.name,C.tooltip&&h.jsx("span",{className:"ml-2",children:C.tooltip})]}),h.jsx(J3,{children:h.jsx(ym,{shortcut:N.key})})]},R)},t[7]=m,t[8]=s,t[9]=o,t[10]=n,t[11]=b):b=t[11];const x=b;let y;t[12]!==m||t[13]!==s||t[14]!==n?(y=(R,C,H,N)=>{const $=H===void 0?{}:H;return h.jsxs(go,{disabled:$.disabled,onSelect:()=>{m(R),n(!1),requestAnimationFrame(()=>{C()})},value:R,children:[h.jsxs("span",{children:[R,$.tooltip&&h.jsxs("span",{className:"ml-2",children:["(",$.tooltip,")"]})]}),N&&h.jsx(J3,{children:h.jsx(ym,{shortcut:s.getHotkey(N).key})})]},R)},t[12]=m,t[13]=s,t[14]=n,t[15]=y):y=t[15];const v=y,S=xz;let k;t[16]===Symbol.for("react.memo_cache_sentinel")?(k=h.jsx(ra,{placeholder:"Type to search..."}),t[16]=k):k=t[16];const E=bm;let j;t[17]===Symbol.for("react.memo_cache_sentinel")?(j=h.jsx(_c,{children:"No results found."}),t[17]=j):j=t[17];const I=f.length>0&&h.jsxs(h.Fragment,{children:[h.jsx(_m,{heading:"Recently Used",children:f.map(R=>{const C=u[R];return yz(R)?x(R,{disabled:C==null?void 0:C.disabled,tooltip:C==null?void 0:C.tooltip}):C&&!og(C)?v(C.label,C.handleHeadless||C.handle,{disabled:C.disabled,tooltip:C.tooltip}):null})}),h.jsx(Y3,{})]}),T=_m,M=s.iterate().map(R=>{if(g.has(R))return null;const C=u[R];return x(R,{disabled:C==null?void 0:C.disabled,tooltip:C==null?void 0:C.tooltip})}),L=d.map(R=>g.has(R.label)?null:v(R.label,R.handleHeadless||R.handle,{disabled:R.disabled,tooltip:R.tooltip}));let B;t[18]!==g||t[19]!==v?(B=R=>g.has(R.label)?null:v(`Cell > ${R.label}`,R.handleHeadless||R.handle,{disabled:R.disabled,tooltip:R.tooltip}),t[18]=g,t[19]=v,t[20]=B):B=t[20];const O=a.map(B);let z,F,V;return t[21]!==T||t[22]!==L||t[23]!==O||t[24]!==M?(z=h.jsxs(T,{heading:"Commands",children:[M,L,O]}),t[21]=T,t[22]=L,t[23]=O,t[24]=M,t[25]=z):z=t[25],t[26]!==E||t[27]!==z||t[28]!==j||t[29]!==I?(F=h.jsxs(E,{children:[j,I,z]}),t[26]=E,t[27]=z,t[28]=j,t[29]=I,t[30]=F):F=t[30],t[31]!==S||t[32]!==e||t[33]!==n||t[34]!==F||t[35]!==k?(V=h.jsxs(S,{open:e,onOpenChange:n,children:[k,F]}),t[31]=S,t[32]=e,t[33]=n,t[34]=F,t[35]=k,t[36]=V):V=t[36],V};function cC(t){return!t.hotkey}function dC(t){return t.label}function uC(t){return!t}const Pa="https://static.marimo.app",hC=t=>{const e=X.c(24),{onClose:n}=t,[o,r]=A.useState("");let s;s=Math.random().toString(36).slice(2,6);const i=`${o}-${s}`,a=`${Pa}/static/${i}`;let l,c,d,u,f,m,_,g,p,b,x;return e[0]!==n||e[1]!==i?(l=async y=>{y.preventDefault(),n();const v=await vz({download:!1,includeCode:!0,files:PS.INSTANCE.filenames()}),S=ct({title:"Uploading static notebook...",description:"Please wait."});await fetch(`${Pa}/api/static`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({html:v,path:i})}).catch(()=>{S.dismiss(),ct({title:"Error uploading static page",description:h.jsxs("div",{children:["Please try again later. If the problem persists, please file a bug report on"," ",h.jsx("a",{href:to.issuesPage,target:"_blank",className:"underline",children:"GitHub"}),"."]})})}),S.dismiss(),ct({title:"Static page uploaded!",description:h.jsxs("div",{children:["The URL has been copied to your clipboard.",h.jsx("br",{}),"You can share it with anyone."]})})},e[0]=n,e[1]=i,e[2]=l):l=e[2],e[3]===Symbol.for("react.memo_cache_sentinel")?(c=h.jsx(ur,{children:"Share static notebook"}),e[3]=c):c=e[3],e[4]===Symbol.for("react.memo_cache_sentinel")?(d=h.jsxs(Rs,{children:[c,h.jsxs(Fs,{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"," ",h.jsx("a",{href:Pa,target:"_blank",children:Pa}),"."]})]}),e[4]=d):d=e[4],e[5]===Symbol.for("react.memo_cache_sentinel")?(u=y=>{const v=y.target.value.toLowerCase().replaceAll(/\s/g,"-").replaceAll(/[^\da-z-]/g,"");r(v)},e[5]=u):u=e[5],e[6]!==o?(f=h.jsx(hr,{"data-testid":"slug-input",id:"slug",autoFocus:!0,value:o,placeholder:"Notebook slug",onChange:u,required:!0,autoComplete:"off"}),e[6]=o,e[7]=f):f=e[7],e[8]!==a?(m=h.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:",h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx(fC,{text:a}),h.jsx("span",{className:"text-primary",children:a})]})]}),e[8]=a,e[9]=m):m=e[9],e[10]!==f||e[11]!==m?(_=h.jsxs("div",{className:"flex flex-col gap-6 py-4",children:[f,m]}),e[10]=f,e[11]=m,e[12]=_):_=e[12],e[13]!==n?(g=h.jsx(Pe,{"data-testid":"cancel-share-static-notebook-button",variant:"secondary",onClick:n,children:"Cancel"}),e[13]=n,e[14]=g):g=e[14],e[15]!==a?(p=h.jsx(Pe,{"data-testid":"share-static-notebook-button","aria-label":"Save",variant:"default",type:"submit",onClick:async()=>{await xn(a)},children:"Create"}),e[15]=a,e[16]=p):p=e[16],e[17]!==p||e[18]!==g?(b=h.jsxs(sa,{children:[g,p]}),e[17]=p,e[18]=g,e[19]=b):b=e[19],e[20]!==b||e[21]!==l||e[22]!==_?(x=h.jsx(dr,{className:"w-fit",children:h.jsxs("form",{onSubmit:l,children:[d,_,b]})}),e[20]=b,e[21]=l,e[22]=_,e[23]=x):x=e[23],x},fC=t=>{const e=X.c(8),[n,o]=K.useState(!1);let r;e[0]!==t.text?(r=Wn.stopPropagation(async c=>{c.preventDefault(),await xn(t.text),o(!0),setTimeout(()=>o(!1),2e3)}),e[0]=t.text,e[1]=r):r=e[1];const s=r;let i,a,l;return e[2]===Symbol.for("react.memo_cache_sentinel")?(i=h.jsx(zs,{size:14,strokeWidth:1.5}),e[2]=i):i=e[2],e[3]!==s?(a=h.jsx(Pe,{"data-testid":"copy-static-notebook-url-button",onClick:s,size:"xs",variant:"secondary",children:i}),e[3]=s,e[4]=a):a=e[4],e[5]!==n||e[6]!==a?(l=h.jsx(Le,{content:"Copied!",open:n,children:a}),e[5]=n,e[6]=a,e[7]=l):l=e[7],l};function ag(){const t=X.c(3),{openConfirm:e}=$n(),n=en(mn);let o;return t[0]!==e||t[1]!==n?(o=()=>{e({title:"Restart Kernel",description:"This will restart the Python kernel. You'll lose all data that's in memory. You will also lose any unsaved changes, so make sure to save your work before restarting.",variant:"destructive",confirmAction:h.jsx(K3,{onClick:async()=>{n({state:mt.CLOSING}),await kz(),Sz()},"aria-label":"Confirm Restart",children:"Restart"})})},t[0]=e,t[1]=n,t[2]=o):o=t[2],o}const md=[{type:"files",Icon:kp,tooltip:"View files",position:"sidebar"},{type:"variables",Icon:bc,tooltip:"Explore variables",position:"sidebar"},{type:"datasources",Icon:cr,tooltip:"Explore data sources",position:"sidebar"},{type:"dependencies",Icon:Aa,tooltip:"Explore dependencies",position:"sidebar"},{type:"packages",Icon:va,tooltip:"Manage packages",position:"sidebar"},{type:"outline",Icon:rd,tooltip:"View outline",position:"sidebar"},{type:"chat",Icon:yc,tooltip:"Chat with AI",position:"sidebar"},{type:"documentation",Icon:sd,tooltip:"View live docs",position:"sidebar"},{type:"logs",Icon:xm,tooltip:"Notebook logs",position:"sidebar"},{type:"tracing",Icon:BH,tooltip:"Tracing",position:"sidebar"},{type:"snippets",Icon:Wp,tooltip:"Snippets",position:"sidebar"},{type:"secrets",Icon:Ep,tooltip:"Secrets",hidden:Hn(),position:"sidebar"},{type:"scratchpad",Icon:Cz,tooltip:"Scratchpad",position:"sidebar"},{type:"errors",Icon:mm,tooltip:"View errors",position:"footer"}];function lg(){const t=X.c(2),e=en(wm);let n;return t[0]!==e?(n=()=>{const o=document.getElementsByClassName("output-area"),r=window.innerHeight||document.documentElement.clientHeight;let s;s=null;for(const i of Array.from(o)){const a=i.getBoundingClientRect();if(a.top>=0&&a.top<=r||a.bottom>=0&&a.bottom<=r){s=Bs.parse(i.parentNode.id);break}}e(i=>({mode:Nz(i.mode),cellAnchor:s})),requestAnimationFrame(()=>{var i;s!==null&&((i=document.getElementById(Bs.create(s)))==null||i.scrollIntoView())})},t[0]=e,t[1]=n):n=t[1],n}function vr(){return Ae.string().optional().describe(Ke.of({label:"Password",inputType:"password",placeholder:"password",optionRegex:".*password.*"}))}function cg(){return Ae.string().optional().describe(Ke.of({label:"Token",inputType:"password",placeholder:"token",optionRegex:".*token.*"}))}function La(){return Ae.string().optional().describe(Ke.of({label:"Warehouse Name",placeholder:"warehouse",optionRegex:".*warehouse.*"}))}function dg(){return Ae.string().optional().describe(Ke.of({label:"URI",optionRegex:".*uri.*"}))}function kr(){return Ae.string().nonempty().describe(Ke.of({label:"Host",placeholder:"localhost",optionRegex:".*host.*"}))}function _o(){return Ae.string().describe(Ke.of({label:"Database",placeholder:"db name",optionRegex:".*database.*"}))}function Sr(){return Ae.string().nonempty().describe(Ke.of({label:"Username",placeholder:"username",optionRegex:".*username.*"}))}function Cr(t){const e=Ae.coerce.string().describe(Ke.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 ug(){return Ae.boolean().default(!1).describe(Ke.of({label:"Read Only"}))}const hg=Ae.object({type:Ae.literal("postgres"),host:kr(),port:Cr(5432).optional(),database:_o(),username:Sr(),password:vr(),ssl:Ae.boolean().default(!1).describe(Ke.of({label:"Use SSL"}))}).describe(Ke.of({direction:"two-columns"})),fg=Ae.object({type:Ae.literal("mysql"),host:kr(),port:Cr(3306),database:_o(),username:Sr(),password:vr(),ssl:Ae.boolean().default(!1).describe(Ke.of({label:"Use SSL"}))}).describe(Ke.of({direction:"two-columns"})),mg=Ae.object({type:Ae.literal("sqlite"),database:_o().describe(Ke.of({label:"Database Path"}))}).describe(Ke.of({direction:"two-columns"})),pg=Ae.object({type:Ae.literal("duckdb"),database:_o().describe(Ke.of({label:"Database Path"})),read_only:ug()}).describe(Ke.of({direction:"two-columns"})),gg=Ae.object({type:Ae.literal("motherduck"),database:_o().default("my_db").describe(Ke.of({label:"Database Name"})),token:cg()}).describe(Ke.of({direction:"two-columns"})),_g=Ae.object({type:Ae.literal("snowflake"),account:Ae.string().nonempty().describe(Ke.of({label:"Account",optionRegex:".*snowflake.*"})),warehouse:Ae.string().optional().describe(Ke.of({label:"Warehouse",optionRegex:".*snowflake.*"})),database:_o(),schema:Ae.string().optional().describe(Ke.of({label:"Schema",optionRegex:".*snowflake.*"})),username:Sr(),password:vr(),role:Ae.string().optional().describe(Ke.of({label:"Role"}))}).describe(Ke.of({direction:"two-columns"})),bg=Ae.object({type:Ae.literal("bigquery"),project:Ae.string().nonempty().describe(Ke.of({label:"Project ID",optionRegex:".*bigquery.*"})),dataset:Ae.string().nonempty().describe(Ke.of({label:"Dataset",optionRegex:".*bigquery.*"})),credentials_json:Ae.string().describe(Ke.of({label:"Credentials JSON",inputType:"textarea"}))}).describe(Ke.of({direction:"two-columns"})),yg=Ae.object({type:Ae.literal("clickhouse_connect"),host:kr(),port:Cr(8123).optional(),username:Sr(),password:vr(),secure:Ae.boolean().default(!1).describe(Ke.of({label:"Use HTTPs"}))}).describe(Ke.of({direction:"two-columns"})),xg=Ae.object({type:Ae.literal("timeplus"),host:kr().default("localhost"),port:Cr(8123).optional(),username:Sr().default("default"),password:vr().default("")}).describe(Ke.of({direction:"two-columns"})),wg=Ae.object({type:Ae.literal("chdb"),database:_o().describe(Ke.of({label:"Database Path"})),read_only:ug()}).describe(Ke.of({direction:"two-columns"})),vg=Ae.object({type:Ae.literal("trino"),host:kr(),port:Cr(8080),database:_o(),schema:Ae.string().describe(Ke.of({label:"Schema",placeholder:"schema name",optionRegex:".*schema.*"})).optional(),username:Sr(),password:vr(),async_support:Ae.boolean().default(!1).describe(Ke.of({label:"Async Support"}))}).describe(Ke.of({direction:"two-columns"})),kg=Ae.object({type:Ae.literal("iceberg"),name:Ae.string().describe(Ke.of({label:"Catalog Name"})),catalog:Ae.discriminatedUnion("type",[Ae.object({type:Ae.literal("REST"),warehouse:La(),uri:Ae.string().optional().describe(Ke.of({label:"URI",placeholder:"https://",optionRegex:".*uri.*"})),token:cg()}),Ae.object({type:Ae.literal("SQL"),warehouse:La(),uri:Ae.string().optional().describe(Ke.of({label:"URI",placeholder:"jdbc:iceberg://host:port/database",optionRegex:".*uri.*"}))}),Ae.object({type:Ae.literal("Hive"),warehouse:La(),uri:dg()}),Ae.object({type:Ae.literal("Glue"),warehouse:La(),uri:dg()}),Ae.object({type:Ae.literal("DynamoDB"),"dynamodb.profile-name":Ae.string().optional().describe(Ke.of({label:"Profile Name"})),"dynamodb.region":Ae.string().optional().describe(Ke.of({label:"Region"})),"dynamodb.access-key-id":Ae.string().optional().describe(Ke.of({label:"Access Key ID"})),"dynamodb.secret-access-key":Ae.string().optional().describe(Ke.of({label:"Secret Access Key",inputType:"password"})),"dynamodb.session-token":Ae.string().optional().describe(Ke.of({label:"Session Token",inputType:"password"}))})]).default({type:"REST"}).describe(Ke.of({special:"tabs"}))}),Sg=Ae.object({type:Ae.literal("datafusion"),sessionContext:Ae.boolean().optional().describe(Ke.of({label:"Use Session Context"}))}),Cg=Ae.object({type:Ae.literal("pyspark"),host:kr().optional(),port:Cr().optional()}),Ng=Ae.object({type:Ae.literal("redshift"),host:kr(),port:Cr(5439),connectionType:Ae.discriminatedUnion("type",[Ae.object({type:Ae.literal("IAM credentials"),region:Ae.string().describe(Ke.of({label:"Region"})),aws_access_key_id:Ae.string().nonempty().describe(Ke.of({label:"AWS Access Key ID",inputType:"password",optionRegex:".*aws_access_key_id.*"})),aws_secret_access_key:Ae.string().nonempty().describe(Ke.of({label:"AWS Secret Access Key",inputType:"password",optionRegex:".*aws_secret_access_key.*"})),aws_session_token:Ae.string().optional().describe(Ke.of({label:"AWS Session Token",inputType:"password",optionRegex:".*aws_session_token.*"}))}),Ae.object({type:Ae.literal("DB credentials"),user:Sr(),password:vr()})]).default({type:"IAM credentials",aws_access_key_id:"",aws_secret_access_key:"",region:""}),database:_o()}).describe(Ke.of({direction:"two-columns"})),mC=Ae.discriminatedUnion("type",[hg,fg,mg,pg,gg,_g,bg,yg,xg,wg,vg,kg,Sg,Cg,Ng]),pd="env:";function Fa(t){return typeof t=="string"&&t.startsWith(pd)}function gd(t){return`${pd}${t}`}const jg={sqlmodel:"SQLModel",sqlalchemy:"SQLAlchemy",duckdb:"DuckDB",clickhouse_connect:"ClickHouse Connect",chdb:"chDB",pyiceberg:"PyIceberg",ibis:"Ibis",motherduck:"MotherDuck",redshift:"Redshift"};class an{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 pC{constructor(){this.secrets={}}get imports(){return Object.keys(this.secrets).length===0?new Set:new Set(["import os"])}print(e,n,o){if(e=(r=>`_${r}`)(e),Fa(n)){const r=n.replace(pd,""),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"?Vr(n):n?`"${n}"`:""}printInFString(e,n,o){if(n===void 0)return"";if(typeof n=="number")return`${n}`;if(typeof n=="boolean")return Vr(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 Fa(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(`
|
3
3
|
`)}}class gC extends an{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),i=this.secrets.printInFString("database",this.connection.database);return Ct(`
|
4
4
|
DATABASE_URL = f"postgresql://${o}:${n}@${r}:${s}/${i}"
|
5
5
|
engine = ${this.orm}.create_engine(DATABASE_URL${e})
|
@@ -141,4 +141,4 @@ ${t.stack}`:o}function io(t,e){return t>>>=0,es().subarray(t/1,t/1+e)}function K
|
|
141
141
|
subprocess.run("${T}")`}:{language:"python",code:`_${I} = """
|
142
142
|
${T}
|
143
143
|
"""`}:{language:"python",code:T}}(o,l);o==="sql"&&lr(a,s,i),s({code:j.code,before:!1,cellId:i??"__end__"})},e[3]=a,e[4]=s,e[5]=o,e[6]=i,e[7]=l,e[8]=f):f=e[8];const m=f;let _;e[9]!==l?(_=async()=>{await xn(l)},e[9]=l,e[10]=_):_=e[10];const g=_,p=r==="dark"?"dark":"light",b=o&&pF.has(o)?o:void 0;let x,y,v,S,k,E;return e[11]!==p||e[12]!==b||e[13]!==l?(x=h.jsx(wa,{theme:p,language:b,className:"cm border rounded overflow-hidden",extensions:mF,value:l,onChange:c}),e[11]=p,e[12]=b,e[13]=l,e[14]=x):x=e[14],e[15]!==g?(y=h.jsx(_F,{size:"xs",variant:"outline",onClick:g,children:"Copy"}),e[15]=g,e[16]=y):y=e[16],e[17]===Symbol.for("react.memo_cache_sentinel")?(v=h.jsx(ii,{className:"ml-2 h-4 w-4"}),e[17]=v):v=e[17],e[18]!==m?(S=h.jsxs(Pe,{size:"xs",variant:"outline",onClick:m,children:["Add to Notebook",v]}),e[18]=m,e[19]=S):S=e[19],e[20]!==S||e[21]!==y?(k=h.jsxs("div",{className:"flex justify-end mt-2 space-x-2",children:[y,S]}),e[20]=S,e[21]=y,e[22]=k):k=e[22],e[23]!==k||e[24]!==x?(E=h.jsxs("div",{className:"relative",children:[x,k]}),e[23]=k,e[24]=x,e[25]=E):E=e[25],E},_F=t=>{const e=X.c(12);let n,o;e[0]!==t?({onClick:n,...o}=t,e[0]=t,e[1]=n,e[2]=o):(n=e[1],o=e[2]);const[r,s]=A.useState(!1);let i,a,l;e[3]!==r?(i=()=>{r&&setTimeout(()=>s(!1),1e3)},a=[r],e[3]=r,e[4]=i,e[5]=a):(i=e[4],a=e[5]),A.useEffect(i,a),e[6]!==n?(l=u=>{n==null||n(u),s(!0)},e[6]=n,e[7]=l):l=e[7];const c=r?"Copied":"Copy";let d;return e[8]!==o||e[9]!==l||e[10]!==c?(d=h.jsx(Pe,{...o,onClick:l,children:c}),e[8]=o,e[9]=l,e[10]=c,e[11]=d):d=e[11],d},bF={code:({children:t,className:e})=>{const n=e==null?void 0:e.replace("language-","");return n&&typeof t=="string"?h.jsxs("div",{children:[h.jsx("div",{className:"text-xs text-muted-foreground pl-1",children:n}),h.jsx(gF,{code:t.trim(),language:n})]}):h.jsx("code",{className:e,children:t})}},S3=A.memo(t=>{const e=X.c(2),{content:n}=t;let o;return e[0]!==n?(o=h.jsx(hF,{components:bF,className:"prose dark:prose-invert max-w-none prose-pre:pl-0",children:n}),e[0]=n,e[1]=o):o=e[1],o},(t,e)=>t.content===e.content);S3.displayName="MemoizedMarkdownBlock";const Zf=A.memo(({content:t})=>{const e=A.useMemo(()=>{return n=t,NH.lexer(n).map(o=>o.raw);var n},[t]);return h.jsx(h.Fragment,{children:e.map((n,o)=>h.jsx(S3,{content:n},`markdown-block-${o}`))})});Zf.displayName="MarkdownRenderer";const Qf=(t,e,n,o,r)=>e?{...t,chats:t.chats.map(s=>s.id===e?{...s,messages:[...s.messages,{role:n,content:o,timestamp:Date.now(),parts:r}],updatedAt:Date.now()}:s)}:(Zt.warn("No active chat"),t),yF=t=>{const e=X.c(13),{reasoning:n,index:o,isStreaming:r}=t,s=o===void 0?0:o,i=r!==void 0&&r,a=i?"reasoning":void 0;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=h.jsx(yc,{className:"h-3 w-3"}),e[0]=l):l=e[0];const c=i?"Thinking":"View reasoning";let d,u,f,m;return e[1]!==n.length||e[2]!==c?(d=h.jsx(jH,{className:"text-xs text-muted-foreground hover:bg-muted/50 px-2 py-1 h-auto rounded-sm [&[data-state=open]>svg]:rotate-180",children:h.jsxs("span",{className:"flex items-center gap-2",children:[l,c," (",n.length," ","chars)"]})}),e[1]=n.length,e[2]=c,e[3]=d):d=e[3],e[4]!==n?(u=h.jsx(EH,{className:"pb-2 px-2",children:h.jsx("div",{className:"bg-muted/30 border border-muted/50 rounded-md p-3 italic text-muted-foreground/90 relative",children:h.jsx("div",{className:"pr-6",children:h.jsx(Zf,{content:n})})})}),e[4]=n,e[5]=u):u=e[5],e[6]!==d||e[7]!==u?(f=h.jsxs(IH,{value:"reasoning",className:"border-0",children:[d,u]}),e[6]=d,e[7]=u,e[8]=f):f=e[8],e[9]!==s||e[10]!==a||e[11]!==f?(m=h.jsx(AH,{type:"single",collapsible:!0,className:"w-full mb-2",value:a,children:f},s),e[9]=s,e[10]=a,e[11]=f,e[12]=m):m=e[12],m},xF=t=>{var y;const e=X.c(27),{onNewChat:n,activeChatId:o,setActiveChat:r,chats:s}=t,i=qe(eS),{handleClick:a}=Sa(),l=((y=i==null?void 0:i.open_ai)==null?void 0:y.model)||"gpt-4-turbo";let c,d,u,f,m,_,g,p,b,x;if(e[0]===Symbol.for("react.memo_cache_sentinel")?(c=h.jsx(pr,{className:"h-4 w-4"}),e[0]=c):c=e[0],e[1]!==n?(d=h.jsx(Le,{content:"New chat",children:h.jsx(Pe,{variant:"text",size:"icon",onClick:n,children:c})}),e[1]=n,e[2]=d):d=e[2],e[3]!==a?(u=()=>a("ai"),e[3]=a,e[4]=u):u=e[4],e[5]!==l||e[6]!==u?(f=h.jsx(Pe,{variant:"text",size:"xs",className:"hover:bg-foreground/10 py-2",onClick:u,children:l}),e[5]=l,e[6]=u,e[7]=f):f=e[7],e[8]!==d||e[9]!==f?(m=h.jsxs("div",{className:"flex items-center gap-2",children:[d,f]}),e[8]=d,e[9]=f,e[10]=m):m=e[10],e[11]===Symbol.for("react.memo_cache_sentinel")?(_=h.jsx(Le,{content:"Previous chats",children:h.jsx(Qs,{asChild:!0,children:h.jsx(Pe,{variant:"text",size:"icon",children:h.jsx(OH,{className:"h-4 w-4"})})})}),e[11]=_):_=e[11],e[12]!==s.length?(g=s.length===0&&h.jsx(Mn,{title:"No chats yet",description:"Start a new chat to get started",icon:h.jsx(yc,{})}),e[12]=s.length,e[13]=g):g=e[13],e[14]!==o||e[15]!==s||e[16]!==r){let v;e[18]!==o||e[19]!==r?(v=S=>h.jsxs("div",{className:Oe("p-3 rounded-md cursor-pointer hover:bg-accent",S.id===o&&"bg-accent"),onClick:()=>{r(S.id)},children:[h.jsx("div",{className:"font-medium",children:S.title}),h.jsx("div",{className:"text-sm text-muted-foreground",children:DH(S.updatedAt)})]},S.id),e[18]=o,e[19]=r,e[20]=v):v=e[20],p=s.map(v),e[14]=o,e[15]=s,e[16]=r,e[17]=p}else p=e[17];return e[21]!==g||e[22]!==p?(b=h.jsxs(zr,{children:[_,h.jsx(Gs,{className:"w-[520px] p-0",align:"start",side:"right",children:h.jsx(dk,{className:"h-[500px] p-4",children:h.jsxs("div",{className:"space-y-4",children:[g,p]})})})]}),e[21]=g,e[22]=p,e[23]=b):b=e[23],e[24]!==m||e[25]!==b?(x=h.jsxs("div",{className:"flex border-b px-2 py-1 justify-between flex-shrink-0 items-center",children:[m,b]}),e[24]=m,e[25]=b,e[26]=x):x=e[26],x},C3=A.memo(t=>{var f;const e=X.c(15),{message:n,index:o,theme:r,onEdit:s,isStreamingReasoning:i,totalMessages:a}=t,l=n.role==="user"?"justify-end":"justify-start";let c,d,u;return e[0]!==l?(c=Oe("flex group relative",l),e[0]=l,e[1]=c):c=e[1],e[2]!==o||e[3]!==i||e[4]!==n.content||e[5]!==n.id||e[6]!==n.parts||e[7]!==n.role||e[8]!==s||e[9]!==r||e[10]!==a?(d=n.role==="user"?h.jsx("div",{className:"w-[95%] bg-background border p-1 rounded-sm",children:h.jsx(Fc,{value:n.content,theme:r,placeholder:"Type your message...",onChange:kF,onSubmit:(m,_)=>{_.trim()&&s(o,_)},onClose:SF},n.id)}):h.jsxs("div",{className:"w-[95%]",children:[h.jsx("div",{className:"absolute right-1 top-1 opacity-0 group-hover:opacity-100 transition-opacity",children:h.jsx(yS,{className:"h-3 w-3",value:n.content})}),(f=n.parts)==null?void 0:f.map((m,_)=>{switch(m.type){case"text":return h.jsx(Zf,{content:m.text});case"reasoning":return h.jsx(yF,{reasoning:m.reasoning,index:_,isStreaming:o===a-1&&i});default:return null}})]}),e[2]=o,e[3]=i,e[4]=n.content,e[5]=n.id,e[6]=n.parts,e[7]=n.role,e[8]=s,e[9]=r,e[10]=a,e[11]=d):d=e[11],e[12]!==c||e[13]!==d?(u=h.jsx("div",{className:c,children:d}),e[12]=c,e[13]=d,e[14]=u):u=e[14],u});C3.displayName="ChatMessage";const N3=A.memo(t=>{var c,d;const e=X.c(8),{input:n,setInput:o,onSubmit:r,theme:s,inputRef:i}=t;let a,l;return e[0]!==((c=i.current)==null?void 0:c.editor)?(a=()=>{var u,f;return(f=(u=i.current)==null?void 0:u.editor)==null?void 0:f.blur()},e[0]=(d=i.current)==null?void 0:d.editor,e[1]=a):a=e[1],e[2]!==n||e[3]!==r||e[4]!==o||e[5]!==a||e[6]!==s?(l=h.jsx("div",{className:"px-2 py-3 border-t relative flex-shrink-0 min-h-[80px]",children:h.jsx(Fc,{value:n,onChange:o,onSubmit:r,onClose:a,theme:s,placeholder:"Type your message..."})}),e[2]=n,e[3]=r,e[4]=o,e[5]=a,e[6]=s,e[7]=l):l=e[7],l});N3.displayName="ChatInput";const wF=()=>{const t=X.c(6),e=qe(hc),{handleClick:n}=Sa();if(!e){let r,s,i;return t[0]!==n?(r=h.jsx(Pe,{variant:"outline",size:"sm",onClick:()=>n("ai"),children:"Edit AI settings"}),t[0]=n,t[1]=r):r=t[1],t[2]===Symbol.for("react.memo_cache_sentinel")?(s=h.jsx(yc,{}),t[2]=s):s=t[2],t[3]!==r?(i=h.jsx(Mn,{title:"Chat with AI",description:"AI is currently disabled. Add your API key to enable.",action:r,icon:s}),t[3]=r,t[4]=i):i=t[4],i}let o;return t[5]===Symbol.for("react.memo_cache_sentinel")?(o=h.jsx(vF,{}),t[5]=o):o=t[5],o},vF=()=>{const t=X.c(88),[e,n]=fn(cd),[o,r]=fn(oC),[s,i]=A.useState(""),a=A.useRef(null),l=A.useRef(null),c=A.useRef(null),d=A.useRef(null),{theme:u}=Fo(),f=zm(),m=o==null?void 0:o.id;let _,g,p,b,x,y;t[0]!==o?(g=o?o.messages.map(CF):[],t[0]=o,t[1]=g):g=t[1],_=g,t[2]!==f?(p=f.getAiURL("chat").toString(),t[2]=f,t[3]=p):p=t[3],t[4]!==f?(b=f.headers(),t[4]=f,t[5]=b):b=t[5],t[6]!==n?(x=ze=>{n(Ce=>Qf(Ce,Ce.activeChatId,"assistant",ze.content,ze.parts))},t[6]=n,t[7]=x):x=t[7],t[8]!==m||t[9]!==_||t[10]!==p||t[11]!==b||t[12]!==x?(y={id:m,initialMessages:_,keepLastMessageOnError:!0,experimental_throttle:100,api:p,headers:b,experimental_prepareRequestBody:jF,onFinish:x,onError:EF,onResponse:IF},t[8]=m,t[9]=_,t[10]=p,t[11]=b,t[12]=x,t[13]=y):y=t[13];const{messages:v,input:S,setInput:k,setMessages:E,append:j,handleSubmit:I,error:T,status:M,reload:L,stop:B}=TH(y),O=M==="submitted"||M==="streaming",z=AF,F=O&&v.length>0&&z(v);let V,R,C;t[14]===Symbol.for("react.memo_cache_sentinel")?(V=()=>{requestAnimationFrame(()=>{if(c.current){const ze=c.current;ze.scrollTop=ze.scrollHeight}})},t[14]=V):V=t[14],t[15]!==e.activeChatId?(R=[e.activeChatId],t[15]=e.activeChatId,t[16]=R):R=t[16],A.useEffect(V,R),t[17]!==j||t[18]!==n||t[19]!==k?(C=ze=>{const Ce={id:MH(),title:`${ze.slice(0,30)}...`,messages:[{role:"user",content:ze,timestamp:Date.now()}],createdAt:Date.now(),updatedAt:Date.now()};n(We=>({chats:[...We.chats,Ce],activeChatId:Ce.id})),k(""),j({role:"user",content:ze})},t[17]=j,t[18]=n,t[19]=k,t[20]=C):C=t[20];const H=C;let N;t[21]!==r||t[22]!==k?(N=()=>{r(null),k(""),i("")},t[21]=r,t[22]=k,t[23]=N):N=t[23];const $=N;let Y;t[24]!==j||t[25]!==e.activeChatId||t[26]!==n||t[27]!==E?(Y=(ze,Ce)=>{E(We=>We.slice(0,ze)),e.activeChatId&&n(We=>({...We,chats:We.chats.map(Ze=>Ze.id===e.activeChatId?{...Ze,messages:Ze.messages.slice(0,ze),updatedAt:Date.now()}:Ze)})),j({role:"user",content:Ce}),e.activeChatId&&n(We=>Qf(We,e.activeChatId,"user",Ce))},t[24]=j,t[25]=e.activeChatId,t[26]=n,t[27]=E,t[28]=Y):Y=t[28];const Z=Y;let q;t[29]!==e.activeChatId||t[30]!==I||t[31]!==n?(q=(ze,Ce)=>{Ce.trim()&&(I(ze),e.activeChatId&&n(We=>Qf(We,e.activeChatId,"user",Ce)))},t[29]=e.activeChatId,t[30]=I,t[31]=n,t[32]=q):q=t[32];const re=q;let ne;t[33]!==L?(ne=()=>{L()},t[33]=L,t[34]=ne):ne=t[34];const oe=ne;let G;t[35]!==H||t[36]!==s?(G=()=>{s.trim()&&H(s.trim())},t[35]=H,t[36]=s,t[37]=G):G=t[37];const Q=G;let ce;t[38]===Symbol.for("react.memo_cache_sentinel")?(ce=()=>{var ze,Ce;return(Ce=(ze=a.current)==null?void 0:ze.editor)==null?void 0:Ce.blur()},t[38]=ce):ce=t[38];const me=ce,de=o==null?void 0:o.id;let ge,ie,we,ve,ae,Se,pe,Te,Re,$e;if(t[39]!==e.chats||t[40]!==$||t[41]!==r||t[42]!==de?(ge=h.jsx(qm,{children:h.jsx(xF,{onNewChat:$,activeChatId:de,setActiveChat:r,chats:e.chats})}),t[39]=e.chats,t[40]=$,t[41]=r,t[42]=de,t[43]=ge):ge=t[43],t[44]!==Q||t[45]!==v||t[46]!==s||t[47]!==u?(ie=(!v||v.length===0)&&h.jsx("div",{className:"flex rounded-md border px-1 bg-background",children:h.jsx(Fc,{value:s,placeholder:"Ask anything, @ to include context about tables or dataframes",theme:u,onClose:me,onChange:i,onSubmit:Q},"new-thread-input")}),t[44]=Q,t[45]=v,t[46]=s,t[47]=u,t[48]=ie):ie=t[48],t[49]!==e||t[50]!==Z||t[51]!==F||t[52]!==v||t[53]!==n||t[54]!==u){let ze;t[56]!==e||t[57]!==Z||t[58]!==F||t[59]!==v.length||t[60]!==n||t[61]!==u?(ze=(Ce,We)=>h.jsx(C3,{message:Ce,index:We,theme:u,onEdit:Z,setChatState:n,chatState:e,isStreamingReasoning:F,totalMessages:v.length},We),t[56]=e,t[57]=Z,t[58]=F,t[59]=v.length,t[60]=n,t[61]=u,t[62]=ze):ze=t[62],we=v.map(ze),t[49]=e,t[50]=Z,t[51]=F,t[52]=v,t[53]=n,t[54]=u,t[55]=we}else we=t[55];return t[63]!==O?(ve=O&&h.jsx("div",{className:"flex justify-center py-4",children:h.jsx(Bm,{className:"h-4 w-4 animate-spin"})}),t[63]=O,t[64]=ve):ve=t[64],t[65]!==T||t[66]!==oe?(ae=T&&h.jsxs("div",{className:"flex items-center justify-center space-x-2 mb-4",children:[h.jsx(ni,{error:T}),h.jsx(Pe,{variant:"outline",size:"sm",onClick:oe,children:"Retry"})]}),t[65]=T,t[66]=oe,t[67]=ae):ae=t[67],t[68]===Symbol.for("react.memo_cache_sentinel")?(Se=h.jsx("div",{ref:d}),t[68]=Se):Se=t[68],t[69]!==ie||t[70]!==we||t[71]!==ve||t[72]!==ae?(pe=h.jsxs("div",{className:"flex-1 px-3 bg-[var(--slate-1)] gap-4 py-3 flex flex-col overflow-y-auto",ref:c,children:[ie,we,ve,ae,Se]}),t[69]=ie,t[70]=we,t[71]=ve,t[72]=ae,t[73]=pe):pe=t[73],t[74]!==O||t[75]!==B?(Te=O&&h.jsx("div",{className:"w-full flex justify-center items-center z-20 border-t",children:h.jsx(Pe,{variant:"linkDestructive",size:"sm",onClick:B,children:"Stop"})}),t[74]=O,t[75]=B,t[76]=Te):Te=t[76],t[77]!==re||t[78]!==S||t[79]!==v||t[80]!==k||t[81]!==u?(Re=v&&v.length>0&&h.jsx(N3,{input:S,setInput:k,onSubmit:re,theme:u,inputRef:l}),t[77]=re,t[78]=S,t[79]=v,t[80]=k,t[81]=u,t[82]=Re):Re=t[82],t[83]!==ge||t[84]!==pe||t[85]!==Te||t[86]!==Re?($e=h.jsxs("div",{className:"flex flex-col h-[calc(100%-53px)]",children:[ge,pe,Te,Re]}),t[83]=ge,t[84]=pe,t[85]=Te,t[86]=Re,t[87]=$e):$e=t[87],$e};function kF(){}function SF(){}function CF(t){const{role:e,content:n,timestamp:o,parts:r}=t;return{role:e,content:n,id:o.toString(),parts:r}}function NF(t){return t.content}function jF(t){return{...t,...O4({input:t.messages.map(NF).join(`
|
144
|
-
`)}),includeOtherCode:Ec("")}}function EF(t){Zt.error("An error occurred:",t)}function IF(t){Zt.debug("Received HTTP response from server:",t)}function AF(t){if(t.length===0)return!1;const e=t.at(-1);if(!e||e.role!=="assistant"||!e.parts)return!1;const n=e.parts;return n.length===0?!1:n[n.length-1].type==="reasoning"}const TF=K.lazy(()=>Um(()=>import("./tracing-_5kKZm2z.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,111,112,113,114,115,116,117,118,119,120,121,122]),import.meta.url).then(t=>({default:t.Tracing}))),MF=()=>{const t=X.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=h.jsx(K.Suspense,{fallback:h.jsx(OF,{}),children:h.jsx(TF,{})}),t[0]=e):e=t[0],e},OF=()=>{const t=X.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=h.jsx("div",{className:"flex flex-col items-center justify-center h-full",children:h.jsx(Jn,{})}),t[0]=e):e=t[0],e},DF=()=>{const t=X.c(23),{openModal:e,closeModal:n}=$n();let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o=[],t[0]=o):o=t[0];const{data:r,isPending:s,error:i,refetch:a}=qn(PF,o);if(s){let b;return t[1]===Symbol.for("react.memo_cache_sentinel")?(b=h.jsx(Jn,{size:"medium",centered:!0}),t[1]=b):b=t[1],b}if(i){let b;return t[2]!==i?(b=h.jsx(ni,{error:i}),t[2]=i,t[3]=b):b=t[3],b}let l;t[4]!==r?(l=r.filter(LF).map(FF),t[4]=r,t[5]=l):l=t[5];const c=l;if(r.length===0){let b;return t[6]===Symbol.for("react.memo_cache_sentinel")?(b=h.jsx(Mn,{title:"No environment variables",description:"No environment variables are available in this notebook.",icon:h.jsx(Qc,{})}),t[6]=b):b=t[6],b}let d,u,f,m,_,g,p;return t[7]!==n||t[8]!==e||t[9]!==c||t[10]!==a?(d=()=>e(h.jsx(Ig,{providerNames:c,onSuccess:()=>{a(),n()},onClose:n})),t[7]=n,t[8]=e,t[9]=c,t[10]=a,t[11]=d):d=t[11],t[12]===Symbol.for("react.memo_cache_sentinel")?(u=h.jsx(pr,{className:"h-4 w-4"}),t[12]=u):u=t[12],t[13]!==d?(f=h.jsx("div",{className:"flex justify-end h-8 border-b",children:h.jsx("button",{type:"button",className:"float-right border-l px-2 m-0 h-full hover:bg-accent hover:text-accent-foreground",onClick:d,children:u})}),t[13]=d,t[14]=f):f=t[14],t[15]===Symbol.for("react.memo_cache_sentinel")?(m=h.jsx(Qm,{children:h.jsxs(ti,{children:[h.jsx(Br,{children:"Environment Variable"}),h.jsx(Br,{children:"Source"}),h.jsx(Br,{})]})}),t[15]=m):m=t[15],t[16]!==r?(_=r.map(zF),t[16]=r,t[17]=_):_=t[17],t[18]!==_?(g=h.jsxs(Zm,{className:"overflow-auto flex-1 mb-16",children:[m,h.jsx(ep,{children:_})]}),t[18]=_,t[19]=g):g=t[19],t[20]!==f||t[21]!==g?(p=h.jsxs("div",{className:"flex flex-col h-full",children:[f,g]}),t[20]=f,t[21]=g,t[22]=p):p=t[22],p},RF=t=>{const e=X.c(9),{className:n,ariaLabel:o,onCopy:r}=t,[s,i]=K.useState(!1);let a;e[0]!==r?(a=()=>{r(),i(!0),setTimeout(()=>i(!1),1e3)},e[0]=r,e[1]=a):a=e[1];const l=a;let c,d;return e[2]!==s?(c=s?h.jsx(wc,{className:"w-3 h-3 text-green-700 rounded"}):h.jsx(zs,{className:"w-3 h-3 hover:bg-muted rounded"}),e[2]=s,e[3]=c):c=e[3],e[4]!==o||e[5]!==n||e[6]!==l||e[7]!==c?(d=h.jsx("button",{type:"button",className:n,onClick:l,"aria-label":o,children:c}),e[4]=o,e[5]=n,e[6]=l,e[7]=c,e[8]=d):d=e[8],d};async function PF(){return Eg((await LS.request({})).secrets)}function LF(t){return t.provider!=="env"}function FF(t){return t.name}function zF(t){return t.keys.map(e=>h.jsxs(ti,{className:"group",children:[h.jsx(Ur,{children:e}),h.jsx(Ur,{children:t.provider!=="env"&&h.jsx(nS,{variant:"outline",className:"select-none",children:t.name})}),h.jsx(Ur,{children:h.jsx(RF,{ariaLabel:`Copy ${e}`,onCopy:async()=>{await xn(`os.environ["${e}"]`),ct({title:"Copied to clipboard",description:`os.environ["${e}"] has been copied to your clipboard.`})},className:Oe("float-right px-2 h-full text-xs text-muted-foreground hover:text-foreground","invisible group-hover:visible")})})]},`${t.name}-${e}`))}const BF=K.lazy(()=>Um(()=>import("./terminal-DlWVobFm.js"),__vite__mapDeps([123,1,2,124]),import.meta.url)),UF=t=>{const e=X.c(121),{children:n}=t,{isSidebarOpen:o,isTerminalOpen:r,selectedPanel:s}=xc(),{setIsSidebarOpen:i,setIsTerminalOpen:a}=aa(),l=K.useRef(null),c=K.useRef(null);let d,u,f,m,_;e[0]!==o?(d=()=>{if(!l.current)return;const ye=l.current.isCollapsed();o&&ye&&l.current.expand(),o||ye||l.current.collapse(),requestAnimationFrame(HF)},u=[o],e[0]=o,e[1]=d,e[2]=u):(d=e[1],u=e[2]),A.useEffect(d,u),e[3]!==r?(f=()=>{if(!c.current)return;const ye=c.current.isCollapsed();r&&ye&&c.current.expand(),r||ye||c.current.collapse(),requestAnimationFrame(WF)},m=[r],e[3]=r,e[4]=f,e[5]=m):(f=e[4],m=e[5]),A.useEffect(f,m),e[6]!==n?(_=h.jsx(Wc,{id:"app",className:"relative h-full",children:h.jsx(A.Suspense,{children:n})},"app"),e[6]=n,e[7]=_):_=e[7];const g=_,p=o?"resize-handle":"resize-handle-collapsed";let b,x;e[8]!==p?(b=Oe("border-border no-print z-10",p,"vertical"),e[8]=p,e[9]=b):b=e[9],e[10]!==b?(x=h.jsx(SS,{onDragging:CS,className:b}),e[10]=b,e[11]=x):x=e[11];const y=x,v=r?"resize-handle":"resize-handle-collapsed";let S,k;e[12]!==v?(S=Oe("border-border no-print z-20",v,"horizontal"),e[12]=v,e[13]=S):S=e[13],e[14]!==S?(k=h.jsx(SS,{onDragging:CS,className:S}),e[14]=S,e[15]=k):k=e[15];const E=k;let j,I,T,M,L,B,O,z,F,V,R,C,H,N,$,Y,Z,q,re,ne,oe;e[16]!==s?(j=h.jsx("div",{className:"text-sm text-[var(--slate-11)] uppercase tracking-wide font-semibold flex-1",children:s}),e[16]=s,e[17]=j):j=e[17],e[18]!==i?(I=()=>i(!1),e[18]=i,e[19]=I):I=e[19],e[20]===Symbol.for("react.memo_cache_sentinel")?(T=h.jsx(no,{className:"w-4 h-4"}),e[20]=T):T=e[20],e[21]!==I?(M=h.jsx(Pe,{"data-testid":"close-helper-pane",className:"m-0",size:"xs",variant:"text",onClick:I,children:T}),e[21]=I,e[22]=M):M=e[22],e[23]!==j||e[24]!==M?(L=h.jsxs("div",{className:"p-3 border-b flex justify-between items-center",children:[j,M]}),e[23]=j,e[24]=M,e[25]=L):L=e[25],e[26]!==s?(B=s==="files"&&h.jsx(IR,{}),e[26]=s,e[27]=B):B=e[27],e[28]!==s?(O=s==="errors"&&h.jsx(Hx,{}),e[28]=s,e[29]=O):O=e[29],e[30]!==s?(z=s==="variables"&&h.jsx(P2,{}),e[30]=s,e[31]=z):z=e[31],e[32]!==s?(F=s==="dependencies"&&h.jsx(nR,{}),e[32]=s,e[33]=F):F=e[33],e[34]!==s?(V=s==="packages"&&h.jsx(nP,{}),e[34]=s,e[35]=V):V=e[35],e[36]!==s?(R=s==="outline"&&h.jsx(IO,{}),e[36]=s,e[37]=R):R=e[37],e[38]!==s?(C=s==="datasources"&&h.jsx(JR,{}),e[38]=s,e[39]=C):C=e[39],e[40]!==s?(H=s==="documentation"&&h.jsx(aR,{}),e[40]=s,e[41]=H):H=e[41],e[42]!==s?(N=s==="snippets"&&h.jsx(DR,{}),e[42]=s,e[43]=N):N=e[43],e[44]!==s?($=s==="scratchpad"&&h.jsx(tP,{}),e[44]=s,e[45]=$):$=e[45],e[46]!==s?(Y=s==="chat"&&h.jsx(wF,{}),e[46]=s,e[47]=Y):Y=e[47],e[48]!==s?(Z=s==="logs"&&h.jsx(L2,{}),e[48]=s,e[49]=Z):Z=e[49],e[50]!==s?(q=s==="tracing"&&h.jsx(MF,{}),e[50]=s,e[51]=q):q=e[51],e[52]!==s?(re=s==="secrets"&&h.jsx(DF,{}),e[52]=s,e[53]=re):re=e[53],e[54]!==B||e[55]!==O||e[56]!==z||e[57]!==F||e[58]!==V||e[59]!==R||e[60]!==C||e[61]!==H||e[62]!==N||e[63]!==$||e[64]!==Y||e[65]!==Z||e[66]!==q||e[67]!==re?(ne=h.jsx(A.Suspense,{children:h.jsxs(Uc,{children:[B,O,z,F,V,R,C,H,N,$,Y,Z,q,re]})}),e[54]=B,e[55]=O,e[56]=z,e[57]=F,e[58]=V,e[59]=R,e[60]=C,e[61]=H,e[62]=N,e[63]=$,e[64]=Y,e[65]=Z,e[66]=q,e[67]=re,e[68]=ne):ne=e[68],e[69]!==L||e[70]!==ne?(oe=h.jsx(Cc,{children:h.jsxs("div",{className:"flex flex-col h-full flex-1 overflow-hidden mr-[-4px]",children:[L,ne]})}),e[69]=L,e[70]=ne,e[71]=oe):oe=e[71];const G=oe,Q=o&&"border-r border-l border-[var(--slate-7)]";let ce,me,de,ge,ie,we;e[72]!==Q?(ce=Oe("dark:bg-[var(--slate-1)] no-print print:hidden hide-on-fullscreen",Q),e[72]=Q,e[73]=ce):ce=e[73],e[74]===Symbol.for("react.memo_cache_sentinel")?(me=(ye,Ne)=>{var Be;Ne===0&&ye===10&&((Be=l.current)==null||Be.resize(30))},e[74]=me):me=e[74],e[75]!==i?(de=()=>i(!1),ge=()=>i(!0),e[75]=i,e[76]=de,e[77]=ge):(de=e[76],ge=e[77]),e[78]!==G||e[79]!==y?(ie=h.jsxs("span",{className:"flex flex-row h-full",children:[G," ",y]}),e[78]=G,e[79]=y,e[80]=ie):ie=e[80],e[81]!==ce||e[82]!==de||e[83]!==ge||e[84]!==ie?(we=h.jsx(Wc,{ref:l,id:"helper",collapsedSize:0,collapsible:!0,className:ce,minSize:10,defaultSize:0,maxSize:75,onResize:me,onCollapse:de,onExpand:ge,children:ie},"helper"),e[81]=ce,e[82]=de,e[83]=ge,e[84]=ie,e[85]=we):we=e[85];const ve=we,ae=r&&"border-[var(--slate-7)]";let Se,pe,Te,Re,$e,ze,Ce,We,Ze;e[86]!==ae?(Se=Oe("dark:bg-[var(--slate-1)] no-print print:hidden hide-on-fullscreen",ae),e[86]=ae,e[87]=Se):Se=e[87],e[88]===Symbol.for("react.memo_cache_sentinel")?(pe=(ye,Ne)=>{var Be;Ne===0&&ye===10&&((Be=c.current)==null||Be.resize(30))},e[88]=pe):pe=e[88],e[89]!==a?(Te=()=>a(!1),Re=()=>a(!0),e[89]=a,e[90]=Te,e[91]=Re):(Te=e[90],Re=e[91]),e[92]===Symbol.for("react.memo_cache_sentinel")?($e=h.jsx("div",{}),e[92]=$e):$e=e[92],e[93]!==a?(ze=()=>a(!1),e[93]=a,e[94]=ze):ze=e[94],e[95]!==r||e[96]!==ze?(Ce=h.jsx(A.Suspense,{fallback:$e,children:h.jsx(BF,{visible:r,onClose:ze})}),e[95]=r,e[96]=ze,e[97]=Ce):Ce=e[97],e[98]!==r||e[99]!==Ce?(We=h.jsx(KR,{isOpen:r,children:Ce}),e[98]=r,e[99]=Ce,e[100]=We):We=e[100],e[101]!==Se||e[102]!==Te||e[103]!==Re||e[104]!==We||e[105]!==E?(Ze=h.jsxs(Wc,{ref:c,id:"terminal",collapsedSize:0,collapsible:!0,className:Se,minSize:10,defaultSize:0,maxSize:75,onResize:pe,onCollapse:Te,onExpand:Re,children:[E,We]},"terminal"),e[101]=Se,e[102]=Te,e[103]=Re,e[104]=We,e[105]=E,e[106]=Ze):Ze=e[106];const at=Ze;let te,je,Me,Ue,J,he,_e,ue;return e[107]===Symbol.for("react.memo_cache_sentinel")?(te=N$(),e[107]=te):te=e[107],e[108]===Symbol.for("react.memo_cache_sentinel")?(je=h.jsx(Uc,{children:h.jsx(kO,{})}),e[108]=je):je=e[108],e[109]!==at?(Me=h.jsx(Bx,{capability:"terminal",children:at}),e[109]=at,e[110]=Me):Me=e[110],e[111]!==g||e[112]!==Me?(Ue=h.jsx(Wc,{children:h.jsxs(NS,{autoSaveId:"marimo:chrome:v1:l1",direction:"vertical",children:[g,Me]})}),e[111]=g,e[112]=Me,e[113]=Ue):Ue=e[113],e[114]===Symbol.for("react.memo_cache_sentinel")?(J=h.jsx(RH,{}),e[114]=J):J=e[114],e[115]!==ve||e[116]!==Ue?(he=h.jsxs(NS,{autoSaveId:"marimo:chrome:v1:l2",direction:"horizontal",storage:te,children:[je,ve,Ue,J]}),e[115]=ve,e[116]=Ue,e[117]=he):he=e[117],e[118]===Symbol.for("react.memo_cache_sentinel")?(_e=h.jsx(Cc,{children:h.jsx(Uc,{children:h.jsx(bO,{})})}),e[118]=_e):_e=e[118],e[119]!==he?(ue=h.jsxs(j$,{children:[he,_e]}),e[119]=he,e[120]=ue):ue=e[120],ue};function VF(){window.dispatchEvent(new Event("resize"))}function HF(){requestAnimationFrame(VF)}function $F(){window.dispatchEvent(new Event("resize"))}function WF(){requestAnimationFrame($F)}let j3;j3=new URL(window.location.href).searchParams.get(PH.showChrome)==="false",$S=Object.freeze(Object.defineProperty({__proto__:null,default:t=>{const e=X.c(10);if(j3){let s,i,a;return e[0]!==t?(s=h.jsx(zx,{hideControls:!0,...t}),e[0]=t,e[1]=s):s=e[1],e[2]===Symbol.for("react.memo_cache_sentinel")?(i=h.jsx(ig,{}),e[2]=i):i=e[2],e[3]!==s?(a=h.jsxs(h.Fragment,{children:[s,i]}),e[3]=s,e[4]=a):a=e[4],a}let n,o,r;return e[5]!==t?(n=h.jsx(zx,{...t}),e[5]=t,e[6]=n):n=e[6],e[7]===Symbol.for("react.memo_cache_sentinel")?(o=h.jsx(ig,{}),e[7]=o):o=e[7],e[8]!==n?(r=h.jsxs(UF,{children:[n,o]}),e[8]=n,e[9]=r):r=e[9],r}},Symbol.toStringTag,{value:"Module"}))});export{lp as C,qc as E,Mn as P,T$ as __tla,Gc as a,$S as e,Na as f,cp as u};
|
144
|
+
`)}),includeOtherCode:Ec("")}}function EF(t){Zt.error("An error occurred:",t)}function IF(t){Zt.debug("Received HTTP response from server:",t)}function AF(t){if(t.length===0)return!1;const e=t.at(-1);if(!e||e.role!=="assistant"||!e.parts)return!1;const n=e.parts;return n.length===0?!1:n[n.length-1].type==="reasoning"}const TF=K.lazy(()=>Um(()=>import("./tracing-CY-0CYWT.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,111,112,113,114,115,116,117,118,119,120,121,122]),import.meta.url).then(t=>({default:t.Tracing}))),MF=()=>{const t=X.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=h.jsx(K.Suspense,{fallback:h.jsx(OF,{}),children:h.jsx(TF,{})}),t[0]=e):e=t[0],e},OF=()=>{const t=X.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=h.jsx("div",{className:"flex flex-col items-center justify-center h-full",children:h.jsx(Jn,{})}),t[0]=e):e=t[0],e},DF=()=>{const t=X.c(23),{openModal:e,closeModal:n}=$n();let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o=[],t[0]=o):o=t[0];const{data:r,isPending:s,error:i,refetch:a}=qn(PF,o);if(s){let b;return t[1]===Symbol.for("react.memo_cache_sentinel")?(b=h.jsx(Jn,{size:"medium",centered:!0}),t[1]=b):b=t[1],b}if(i){let b;return t[2]!==i?(b=h.jsx(ni,{error:i}),t[2]=i,t[3]=b):b=t[3],b}let l;t[4]!==r?(l=r.filter(LF).map(FF),t[4]=r,t[5]=l):l=t[5];const c=l;if(r.length===0){let b;return t[6]===Symbol.for("react.memo_cache_sentinel")?(b=h.jsx(Mn,{title:"No environment variables",description:"No environment variables are available in this notebook.",icon:h.jsx(Qc,{})}),t[6]=b):b=t[6],b}let d,u,f,m,_,g,p;return t[7]!==n||t[8]!==e||t[9]!==c||t[10]!==a?(d=()=>e(h.jsx(Ig,{providerNames:c,onSuccess:()=>{a(),n()},onClose:n})),t[7]=n,t[8]=e,t[9]=c,t[10]=a,t[11]=d):d=t[11],t[12]===Symbol.for("react.memo_cache_sentinel")?(u=h.jsx(pr,{className:"h-4 w-4"}),t[12]=u):u=t[12],t[13]!==d?(f=h.jsx("div",{className:"flex justify-end h-8 border-b",children:h.jsx("button",{type:"button",className:"float-right border-l px-2 m-0 h-full hover:bg-accent hover:text-accent-foreground",onClick:d,children:u})}),t[13]=d,t[14]=f):f=t[14],t[15]===Symbol.for("react.memo_cache_sentinel")?(m=h.jsx(Qm,{children:h.jsxs(ti,{children:[h.jsx(Br,{children:"Environment Variable"}),h.jsx(Br,{children:"Source"}),h.jsx(Br,{})]})}),t[15]=m):m=t[15],t[16]!==r?(_=r.map(zF),t[16]=r,t[17]=_):_=t[17],t[18]!==_?(g=h.jsxs(Zm,{className:"overflow-auto flex-1 mb-16",children:[m,h.jsx(ep,{children:_})]}),t[18]=_,t[19]=g):g=t[19],t[20]!==f||t[21]!==g?(p=h.jsxs("div",{className:"flex flex-col h-full",children:[f,g]}),t[20]=f,t[21]=g,t[22]=p):p=t[22],p},RF=t=>{const e=X.c(9),{className:n,ariaLabel:o,onCopy:r}=t,[s,i]=K.useState(!1);let a;e[0]!==r?(a=()=>{r(),i(!0),setTimeout(()=>i(!1),1e3)},e[0]=r,e[1]=a):a=e[1];const l=a;let c,d;return e[2]!==s?(c=s?h.jsx(wc,{className:"w-3 h-3 text-green-700 rounded"}):h.jsx(zs,{className:"w-3 h-3 hover:bg-muted rounded"}),e[2]=s,e[3]=c):c=e[3],e[4]!==o||e[5]!==n||e[6]!==l||e[7]!==c?(d=h.jsx("button",{type:"button",className:n,onClick:l,"aria-label":o,children:c}),e[4]=o,e[5]=n,e[6]=l,e[7]=c,e[8]=d):d=e[8],d};async function PF(){return Eg((await LS.request({})).secrets)}function LF(t){return t.provider!=="env"}function FF(t){return t.name}function zF(t){return t.keys.map(e=>h.jsxs(ti,{className:"group",children:[h.jsx(Ur,{children:e}),h.jsx(Ur,{children:t.provider!=="env"&&h.jsx(nS,{variant:"outline",className:"select-none",children:t.name})}),h.jsx(Ur,{children:h.jsx(RF,{ariaLabel:`Copy ${e}`,onCopy:async()=>{await xn(`os.environ["${e}"]`),ct({title:"Copied to clipboard",description:`os.environ["${e}"] has been copied to your clipboard.`})},className:Oe("float-right px-2 h-full text-xs text-muted-foreground hover:text-foreground","invisible group-hover:visible")})})]},`${t.name}-${e}`))}const BF=K.lazy(()=>Um(()=>import("./terminal-BJd9v3PH.js"),__vite__mapDeps([123,1,2,124]),import.meta.url)),UF=t=>{const e=X.c(121),{children:n}=t,{isSidebarOpen:o,isTerminalOpen:r,selectedPanel:s}=xc(),{setIsSidebarOpen:i,setIsTerminalOpen:a}=aa(),l=K.useRef(null),c=K.useRef(null);let d,u,f,m,_;e[0]!==o?(d=()=>{if(!l.current)return;const ye=l.current.isCollapsed();o&&ye&&l.current.expand(),o||ye||l.current.collapse(),requestAnimationFrame(HF)},u=[o],e[0]=o,e[1]=d,e[2]=u):(d=e[1],u=e[2]),A.useEffect(d,u),e[3]!==r?(f=()=>{if(!c.current)return;const ye=c.current.isCollapsed();r&&ye&&c.current.expand(),r||ye||c.current.collapse(),requestAnimationFrame(WF)},m=[r],e[3]=r,e[4]=f,e[5]=m):(f=e[4],m=e[5]),A.useEffect(f,m),e[6]!==n?(_=h.jsx(Wc,{id:"app",className:"relative h-full",children:h.jsx(A.Suspense,{children:n})},"app"),e[6]=n,e[7]=_):_=e[7];const g=_,p=o?"resize-handle":"resize-handle-collapsed";let b,x;e[8]!==p?(b=Oe("border-border no-print z-10",p,"vertical"),e[8]=p,e[9]=b):b=e[9],e[10]!==b?(x=h.jsx(SS,{onDragging:CS,className:b}),e[10]=b,e[11]=x):x=e[11];const y=x,v=r?"resize-handle":"resize-handle-collapsed";let S,k;e[12]!==v?(S=Oe("border-border no-print z-20",v,"horizontal"),e[12]=v,e[13]=S):S=e[13],e[14]!==S?(k=h.jsx(SS,{onDragging:CS,className:S}),e[14]=S,e[15]=k):k=e[15];const E=k;let j,I,T,M,L,B,O,z,F,V,R,C,H,N,$,Y,Z,q,re,ne,oe;e[16]!==s?(j=h.jsx("div",{className:"text-sm text-[var(--slate-11)] uppercase tracking-wide font-semibold flex-1",children:s}),e[16]=s,e[17]=j):j=e[17],e[18]!==i?(I=()=>i(!1),e[18]=i,e[19]=I):I=e[19],e[20]===Symbol.for("react.memo_cache_sentinel")?(T=h.jsx(no,{className:"w-4 h-4"}),e[20]=T):T=e[20],e[21]!==I?(M=h.jsx(Pe,{"data-testid":"close-helper-pane",className:"m-0",size:"xs",variant:"text",onClick:I,children:T}),e[21]=I,e[22]=M):M=e[22],e[23]!==j||e[24]!==M?(L=h.jsxs("div",{className:"p-3 border-b flex justify-between items-center",children:[j,M]}),e[23]=j,e[24]=M,e[25]=L):L=e[25],e[26]!==s?(B=s==="files"&&h.jsx(IR,{}),e[26]=s,e[27]=B):B=e[27],e[28]!==s?(O=s==="errors"&&h.jsx(Hx,{}),e[28]=s,e[29]=O):O=e[29],e[30]!==s?(z=s==="variables"&&h.jsx(P2,{}),e[30]=s,e[31]=z):z=e[31],e[32]!==s?(F=s==="dependencies"&&h.jsx(nR,{}),e[32]=s,e[33]=F):F=e[33],e[34]!==s?(V=s==="packages"&&h.jsx(nP,{}),e[34]=s,e[35]=V):V=e[35],e[36]!==s?(R=s==="outline"&&h.jsx(IO,{}),e[36]=s,e[37]=R):R=e[37],e[38]!==s?(C=s==="datasources"&&h.jsx(JR,{}),e[38]=s,e[39]=C):C=e[39],e[40]!==s?(H=s==="documentation"&&h.jsx(aR,{}),e[40]=s,e[41]=H):H=e[41],e[42]!==s?(N=s==="snippets"&&h.jsx(DR,{}),e[42]=s,e[43]=N):N=e[43],e[44]!==s?($=s==="scratchpad"&&h.jsx(tP,{}),e[44]=s,e[45]=$):$=e[45],e[46]!==s?(Y=s==="chat"&&h.jsx(wF,{}),e[46]=s,e[47]=Y):Y=e[47],e[48]!==s?(Z=s==="logs"&&h.jsx(L2,{}),e[48]=s,e[49]=Z):Z=e[49],e[50]!==s?(q=s==="tracing"&&h.jsx(MF,{}),e[50]=s,e[51]=q):q=e[51],e[52]!==s?(re=s==="secrets"&&h.jsx(DF,{}),e[52]=s,e[53]=re):re=e[53],e[54]!==B||e[55]!==O||e[56]!==z||e[57]!==F||e[58]!==V||e[59]!==R||e[60]!==C||e[61]!==H||e[62]!==N||e[63]!==$||e[64]!==Y||e[65]!==Z||e[66]!==q||e[67]!==re?(ne=h.jsx(A.Suspense,{children:h.jsxs(Uc,{children:[B,O,z,F,V,R,C,H,N,$,Y,Z,q,re]})}),e[54]=B,e[55]=O,e[56]=z,e[57]=F,e[58]=V,e[59]=R,e[60]=C,e[61]=H,e[62]=N,e[63]=$,e[64]=Y,e[65]=Z,e[66]=q,e[67]=re,e[68]=ne):ne=e[68],e[69]!==L||e[70]!==ne?(oe=h.jsx(Cc,{children:h.jsxs("div",{className:"flex flex-col h-full flex-1 overflow-hidden mr-[-4px]",children:[L,ne]})}),e[69]=L,e[70]=ne,e[71]=oe):oe=e[71];const G=oe,Q=o&&"border-r border-l border-[var(--slate-7)]";let ce,me,de,ge,ie,we;e[72]!==Q?(ce=Oe("dark:bg-[var(--slate-1)] no-print print:hidden hide-on-fullscreen",Q),e[72]=Q,e[73]=ce):ce=e[73],e[74]===Symbol.for("react.memo_cache_sentinel")?(me=(ye,Ne)=>{var Be;Ne===0&&ye===10&&((Be=l.current)==null||Be.resize(30))},e[74]=me):me=e[74],e[75]!==i?(de=()=>i(!1),ge=()=>i(!0),e[75]=i,e[76]=de,e[77]=ge):(de=e[76],ge=e[77]),e[78]!==G||e[79]!==y?(ie=h.jsxs("span",{className:"flex flex-row h-full",children:[G," ",y]}),e[78]=G,e[79]=y,e[80]=ie):ie=e[80],e[81]!==ce||e[82]!==de||e[83]!==ge||e[84]!==ie?(we=h.jsx(Wc,{ref:l,id:"helper",collapsedSize:0,collapsible:!0,className:ce,minSize:10,defaultSize:0,maxSize:75,onResize:me,onCollapse:de,onExpand:ge,children:ie},"helper"),e[81]=ce,e[82]=de,e[83]=ge,e[84]=ie,e[85]=we):we=e[85];const ve=we,ae=r&&"border-[var(--slate-7)]";let Se,pe,Te,Re,$e,ze,Ce,We,Ze;e[86]!==ae?(Se=Oe("dark:bg-[var(--slate-1)] no-print print:hidden hide-on-fullscreen",ae),e[86]=ae,e[87]=Se):Se=e[87],e[88]===Symbol.for("react.memo_cache_sentinel")?(pe=(ye,Ne)=>{var Be;Ne===0&&ye===10&&((Be=c.current)==null||Be.resize(30))},e[88]=pe):pe=e[88],e[89]!==a?(Te=()=>a(!1),Re=()=>a(!0),e[89]=a,e[90]=Te,e[91]=Re):(Te=e[90],Re=e[91]),e[92]===Symbol.for("react.memo_cache_sentinel")?($e=h.jsx("div",{}),e[92]=$e):$e=e[92],e[93]!==a?(ze=()=>a(!1),e[93]=a,e[94]=ze):ze=e[94],e[95]!==r||e[96]!==ze?(Ce=h.jsx(A.Suspense,{fallback:$e,children:h.jsx(BF,{visible:r,onClose:ze})}),e[95]=r,e[96]=ze,e[97]=Ce):Ce=e[97],e[98]!==r||e[99]!==Ce?(We=h.jsx(KR,{isOpen:r,children:Ce}),e[98]=r,e[99]=Ce,e[100]=We):We=e[100],e[101]!==Se||e[102]!==Te||e[103]!==Re||e[104]!==We||e[105]!==E?(Ze=h.jsxs(Wc,{ref:c,id:"terminal",collapsedSize:0,collapsible:!0,className:Se,minSize:10,defaultSize:0,maxSize:75,onResize:pe,onCollapse:Te,onExpand:Re,children:[E,We]},"terminal"),e[101]=Se,e[102]=Te,e[103]=Re,e[104]=We,e[105]=E,e[106]=Ze):Ze=e[106];const at=Ze;let te,je,Me,Ue,J,he,_e,ue;return e[107]===Symbol.for("react.memo_cache_sentinel")?(te=N$(),e[107]=te):te=e[107],e[108]===Symbol.for("react.memo_cache_sentinel")?(je=h.jsx(Uc,{children:h.jsx(kO,{})}),e[108]=je):je=e[108],e[109]!==at?(Me=h.jsx(Bx,{capability:"terminal",children:at}),e[109]=at,e[110]=Me):Me=e[110],e[111]!==g||e[112]!==Me?(Ue=h.jsx(Wc,{children:h.jsxs(NS,{autoSaveId:"marimo:chrome:v1:l1",direction:"vertical",children:[g,Me]})}),e[111]=g,e[112]=Me,e[113]=Ue):Ue=e[113],e[114]===Symbol.for("react.memo_cache_sentinel")?(J=h.jsx(RH,{}),e[114]=J):J=e[114],e[115]!==ve||e[116]!==Ue?(he=h.jsxs(NS,{autoSaveId:"marimo:chrome:v1:l2",direction:"horizontal",storage:te,children:[je,ve,Ue,J]}),e[115]=ve,e[116]=Ue,e[117]=he):he=e[117],e[118]===Symbol.for("react.memo_cache_sentinel")?(_e=h.jsx(Cc,{children:h.jsx(Uc,{children:h.jsx(bO,{})})}),e[118]=_e):_e=e[118],e[119]!==he?(ue=h.jsxs(j$,{children:[he,_e]}),e[119]=he,e[120]=ue):ue=e[120],ue};function VF(){window.dispatchEvent(new Event("resize"))}function HF(){requestAnimationFrame(VF)}function $F(){window.dispatchEvent(new Event("resize"))}function WF(){requestAnimationFrame($F)}let j3;j3=new URL(window.location.href).searchParams.get(PH.showChrome)==="false",$S=Object.freeze(Object.defineProperty({__proto__:null,default:t=>{const e=X.c(10);if(j3){let s,i,a;return e[0]!==t?(s=h.jsx(zx,{hideControls:!0,...t}),e[0]=t,e[1]=s):s=e[1],e[2]===Symbol.for("react.memo_cache_sentinel")?(i=h.jsx(ig,{}),e[2]=i):i=e[2],e[3]!==s?(a=h.jsxs(h.Fragment,{children:[s,i]}),e[3]=s,e[4]=a):a=e[4],a}let n,o,r;return e[5]!==t?(n=h.jsx(zx,{...t}),e[5]=t,e[6]=n):n=e[6],e[7]===Symbol.for("react.memo_cache_sentinel")?(o=h.jsx(ig,{}),e[7]=o):o=e[7],e[8]!==n?(r=h.jsxs(UF,{children:[n,o]}),e[8]=n,e[9]=r):r=e[9],r}},Symbol.toStringTag,{value:"Module"}))});export{lp as C,qc as E,Mn as P,T$ as __tla,Gc as a,$S as e,Na as f,cp as u};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
var D;import{g as It,s as Ct}from"./chunk-RZ5BOZE2-
|
1
|
+
var D;import{g as It,s as Ct}from"./chunk-RZ5BOZE2-xsU-XeUb.js";import{_ as h,b as xt,a as Dt,s as $t,g as vt,p as wt,q as Lt,c as V,l as x,y as Mt,x as Bt,A as Ft,B as Yt,o as Pt,r as zt,u as Gt}from"./mermaid-CnGHUklx.js";import{s as Kt}from"./transform-C4Tsj3kK.js";import{c as Zt}from"./channel-szhGxnks.js";import"./index-CgxFL2cr.js";import"./step-BwsUM5iJ.js";import"./timer-BI-lUAZ7.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()+`
|