import{existsSync as o,readFileSync as t}from"node:fs";import{isAbsolute as n,resolve as r}from"node:path";import f from"../../../../_virtual/index16.mjs";import{DEFAULT_IGNORE_FILENAME as e}from"../constants.mjs";function i({ignorePath:i,ignorePattern:a,cwd:s}){const d=f(),m=[i||[]].flat();0===m.length&&m.push(e);for(const f of m){const e=n(f)?f:r(s,f);if(!o(e))continue;const i=t(e,{encoding:"utf8",flag:"r"});d.add(i)}return a&&d.add(a),d}export{i as default};