import o from"node:fs";import n from"node:path";import{pathToFileURL as t,fileURLToPath as r}from"node:url";import{resolve as s}from"../../../@dual-bundle/import-meta-resolve/index.mjs";import e from"../../../../_virtual/index28.mjs";const i=["",".js",".json",`${n.sep}index.js`,`${n.sep}index.json`],f=["",".js",".json","/index.js","/index.json"];function m(n){return o.statSync(n,{throwIfNoEntry:!1})?.isFile()??!1}function u(o,u){if(n.isAbsolute(u)){for(const o of i){const n=u+o;if(m(n))return n}return}const d=t(n.resolve(o,"noop.js")).toString();for(const o of f)try{const n=r(s(u+o,d));if(m(n))return n}catch{}return e.silent(o,u)}export{u as default};