import { __exports as o } from "../../../../../../_virtual/index10.js";
import m from "../../../../../../_virtual/___vite-browser-external.js";
import { __require as y } from "./Explorer.js";
import { __require as S } from "./ExplorerSync.js";
import { __require as C } from "./loaders.js";
var l;
function L() {
  if (l)
    return o;
  l = 1, Object.defineProperty(o, "__esModule", {
    value: !0
  }), o.cosmiconfig = p, o.cosmiconfigSync = h, o.defaultLoaders = void 0;
  var t = f(m), d = y(), u = S(), n = C();
  function f(e) {
    return e && e.__esModule ? e : { default: e };
  }
  function p(e, a = {}) {
    const c = i(e, a), r = new d.Explorer(c);
    return {
      search: r.search.bind(r),
      load: r.load.bind(r),
      clearLoadCache: r.clearLoadCache.bind(r),
      clearSearchCache: r.clearSearchCache.bind(r),
      clearCaches: r.clearCaches.bind(r)
    };
  }
  function h(e, a = {}) {
    const c = i(e, a), r = new u.ExplorerSync(c);
    return {
      search: r.searchSync.bind(r),
      load: r.loadSync.bind(r),
      clearLoadCache: r.clearLoadCache.bind(r),
      clearSearchCache: r.clearSearchCache.bind(r),
      clearCaches: r.clearCaches.bind(r)
    };
  }
  const s = Object.freeze({
    ".js": n.loaders.loadJs,
    ".json": n.loaders.loadJson,
    ".yaml": n.loaders.loadYaml,
    ".yml": n.loaders.loadYaml,
    noExt: n.loaders.loadYaml
  });
  o.defaultLoaders = s;
  function i(e, a) {
    const c = {
      packageProp: e,
      searchPlaces: ["package.json", `.${e}rc`, `.${e}rc.json`, `.${e}rc.yaml`, `.${e}rc.yml`, `.${e}rc.js`, `${e}.config.js`],
      ignoreEmptySearchPlaces: !0,
      stopDir: t.default.homedir(),
      cache: !0,
      transform: _,
      loaders: s
    };
    return {
      ...c,
      ...a,
      loaders: {
        ...c.loaders,
        ...a.loaders
      }
    };
  }
  const _ = function(a) {
    return a;
  };
  return o;
}
export {
  L as __require
};
//# sourceMappingURL=index.js.map
