module.exports=[912714,(e,t,s)=>{t.exports=e.x("node:fs/promises",()=>require("node:fs/promises"))},844376,(e,t,s)=>{t.exports=e.x("node:module",()=>require("node:module"))},857764,(e,t,s)=>{t.exports=e.x("node:url",()=>require("node:url"))},621073,e=>{"use strict";var t=e.i(912714),s=e.i(844376),r=e.i(857764);let o={get url(){return`file://${e.P("packages/next-host/app/api/si-icon/siIconGet.ts")}`}},n=/^[a-z0-9-]+$/;async function i(e){let i,u,a=(e??"").replace(/\.svg$/i,"");if(!n.test(a))return new Response("Invalid icon slug",{status:400});let c=(0,s.createRequire)((0,r.fileURLToPath)(o.url));try{i=c.resolve(`simple-icons/icons/${a}.svg`)}catch{return new Response("Icon not found",{status:404})}try{u=await (0,t.readFile)(i,"utf8")}catch(e){if("ENOENT"===e.code)return new Response("Icon not found",{status:404});throw e}return new Response(u,{status:200,headers:{"content-type":"image/svg+xml; charset=utf-8","cache-control":"public, max-age=31536000, immutable"}})}e.s(["siIconGet",0,i])}];

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