module.exports=[2502,e=>{"use strict";var t=e.i(54799),c=e.i(22734),s=e.i(46786),a=e.i(14747);function i(e=process.cwd()){let s=null,r=(0,a.join)(e,"package.json");if((0,c.existsSync)(r))try{let e=JSON.parse((0,c.readFileSync)(r,"utf8"));e.name&&(s=e.name)}catch{}if(!s){let t=(0,a.join)(e,"pyproject.toml");if((0,c.existsSync)(t))try{let e=(0,c.readFileSync)(t,"utf8").match(/^\s*name\s*=\s*["']([^"']+)["']/m);e?.[1]&&(s=e[1])}catch{}}if(!s){let t=(0,a.join)(e,"setup.py");if((0,c.existsSync)(t))try{let e=(0,c.readFileSync)(t,"utf8").match(/name\s*=\s*["']([^"']+)["']/m);e?.[1]&&(s=e[1])}catch{}}if(!s){let t=(0,a.join)(e,"config","application.rb");if((0,c.existsSync)(t))try{let e=(0,c.readFileSync)(t,"utf8").match(/^\s*module\s+(\w+)/m);e?.[1]&&(s=e[1])}catch{}}if(!s){let t=(0,a.basename)(e);if(["www","app","src","frontend","backend","client","server","web"].includes(t.toLowerCase())){let c=(0,a.basename)((0,a.dirname)(e));s=`${c}-${t}`}else s=t}let n=(0,t.createHash)("sha256").update(e).digest("hex").substring(0,6);return(s=`${s}-${n}`).toLowerCase().replace(/[^a-zA-Z0-9-_]/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,"").substring(0,50)}function r(e=process.cwd()){return i(e).replace(/-[a-f0-9]{6}$/,"")}function n(e=process.cwd()){let t=i(e);return(0,a.join)((0,s.homedir)(),".d3k",t)}e.s(["getProjectDir",()=>n,"getProjectDisplayName",()=>r,"getProjectName",()=>i])}];

//# sourceMappingURL=src_utils_project-name_ts_1fab1dd5._.js.map