import{__require as t}from"./managers/tasks.mjs";import{__require as r}from"./providers/async.mjs";import{__require as n}from"./providers/stream.mjs";import{__require as e}from"./providers/sync.mjs";import{__require as a}from"./settings.mjs";import{__require as o}from"./utils/index.mjs";var s,i;function c(){if(i)return s;i=1;const c=t(),u=r(),f=n(),m=e(),p=a(),P=o();async function h(t,r){g(t);const n=y(t,u.default,r),e=await Promise.all(n);return P.array.flatten(e)}function y(t,r,n){const e=[].concat(t),a=new p.default(n),o=c.generate(e,a),s=new r(a);return o.map(s.read,s)}function g(t){if(![].concat(t).every(t=>P.string.isString(t)&&!P.string.isEmpty(t)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}return function(t){function r(t,r){g(t);const n=y(t,m.default,r);return P.array.flatten(n)}function n(t,r){g(t);const n=y(t,f.default,r);return P.stream.merge(n)}var e,a;t.glob=t,t.globSync=r,t.globStream=n,t.async=t,t.sync=r,t.stream=n,t.generateTasks=function(t,r){g(t);const n=[].concat(t),e=new p.default(r);return c.generate(n,e)},t.isDynamicPattern=function(t,r){g(t);const n=new p.default(r);return P.pattern.isDynamicPattern(t,n)},t.escapePath=function(t){return g(t),P.path.escape(t)},t.convertPathToPattern=function(t){return g(t),P.path.convertPathToPattern(t)},(e=t.posix||(t.posix={})).escapePath=function(t){return g(t),P.path.escapePosixPath(t)},e.convertPathToPattern=function(t){return g(t),P.path.convertPosixPathToPattern(t)},(a=t.win32||(t.win32={})).escapePath=function(t){return g(t),P.path.escapeWindowsPath(t)},a.convertPathToPattern=function(t){return g(t),P.path.convertWindowsPathToPattern(t)}}(h||(h={})),s=h}export{c as __require};