module.exports=[902157,(e,r,t)=>{r.exports=e.x("node:fs",()=>require("node:fs"))},750227,(e,r,t)=>{r.exports=e.x("node:path",()=>require("node:path"))},142125,e=>{"use strict";let r,t;var s=Object.getOwnPropertyNames;let o=(r={"src/runtime/node/safe-node-apis.js"(r,t){let{existsSync:s,writeFileSync:o,readFileSync:i,appendFileSync:n,mkdirSync:a,rmSync:p}=e.r(902157);t.exports={fs:{existsSync:s,writeFileSync:o,readFileSync:i,appendFileSync:n,mkdirSync:a,rmSync:p},path:e.r(750227),cwd:()=>process.cwd()}}},function(){return t||(0,r[s(r)[0]])((t={exports:{}}).exports,t),t.exports})();function i(e,r){if(!e)throw Error(`Clerk: ${r} is missing. This is an internal error. Please contact Clerk's support.`)}let n=()=>(i(o.fs,"fs"),o.fs),a=()=>(i(o.path,"path"),o.path),p=()=>(i(o.cwd,"cwd"),o.cwd);function d(){let{existsSync:e}=n(),r=a(),t=p();return!!e(r.join(t(),"src","app"))}function l(){let e=["ts","js"],r=(e,r,t)=>`Clerk: clerkMiddleware() was not run, your middleware file might be misplaced. Move your middleware file to ./${r}middleware.${e}. Currently located at ./${t}middleware.${e}`,{existsSync:t}=n(),s=a(),o=p(),i=s.join(o(),"src","app"),d=s.join(o(),"app"),l=(o,i,n)=>{for(let a of e)if(t(s.join(o,`middleware.${a}`)))return r(a,i,n)};return t(i)?l(i,"src/","src/app/")||l(o(),"src/",""):t(d)?l(d,"","app/"):void 0}e.s(["hasSrcAppDir",()=>d,"suggestMiddlewareLocation",()=>l],142125)}];

//# sourceMappingURL=%5Broot-of-the-server%5D__389c5233._.js.map