import{ar as o,rr as c}from"./cells-CCtxWKxf.js";import{t as n}from"./createLucideIcon-BvP5LBIs.js";import{i,n as p,r as d,t as m}from"./file-video-camera-Fa5c_iPb.js";import{t as s}from"./file-code-D9wtWSiR.js";import{t as f}from"./file-DVwc11C3.js";var u=n("folder-archive",[["circle",{cx:"15",cy:"19",r:"2",key:"u2pros"}],["path",{d:"M20.9 19.8A2 2 0 0 0 22 18V8a2 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 2h5.1",key:"1jj40k"}],["path",{d:"M15 11v-1",key:"cntcp"}],["path",{d:"M15 17v-2",key:"1279jj"}]]),r=n("folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);function h(a){let t=a.split(".").pop();if(t===void 0)return"unknown";switch(t.toLowerCase()){case"py":return"python";case"txt":case"md":case"qmd":return"text";case"png":case"jpg":case"jpeg":case"gif":return"image";case"csv":return"data";case"json":return"json";case"js":case"ts":case"tsx":case"html":case"css":case"toml":case"yaml":case"yml":case"wasm":return"code";case"mp3":case"m4a":case"m4v":case"ogg":case"wav":return"audio";case"mp4":case"webm":case"mkv":return"video";case"pdf":return"pdf";case"zip":case"tar":case"gz":return"zip";default:return"unknown"}}const $={directory:r,python:s,json:i,code:s,text:c,image:p,audio:d,video:m,pdf:s,zip:u,data:o,unknown:f};var e="    ";const w={directory:a=>`os.listdir("${a}")`,python:a=>`with open("${a}", "r") as _f:
${e}...
`,json:a=>`with open("${a}", "r") as _f:
${e}_data = json.load(_f)
`,code:a=>`with open("${a}", "r") as _f:
${e}...
`,text:a=>`with open("${a}", "r") as _f:
${e}...
`,image:a=>`mo.image("${a}")`,audio:a=>`mo.audio("${a}")`,video:a=>`mo.video("${a}")`,pdf:a=>`with open("${a}", "rb") as _f:
${e}...
`,zip:a=>`with open("${a}", "rb") as _f:
${e}...
`,data:a=>`with open("${a}", "r") as _f:
${e}...
`,unknown:a=>`with open("${a}", "r") as _f:
${e}...
`};export{r as i,w as n,h as r,$ as t};
