import{__require as r}from"../is-glob/index.mjs";import e from"../../_virtual/_node_path.mjs";import i from"../../_virtual/_node_os.mjs";var s,t;function a(){if(t)return s;t=1;var a=r(),o=e.posix.dirname,n="win32"===i.platform(),l=/\\/g,m=/[\{\[].*[\}\]]$/,p=/(^|[^\\])([\{\[]|\([^\)]+$)/,f=/\\([\!\*\?\|\[\]\(\)\{\}])/g;return s=function(r,e){Object.assign({flipBackslashes:!0},e).flipBackslashes&&n&&r.indexOf("/")<0&&(r=r.replace(l,"/")),m.test(r)&&(r+="/"),r+="a";do{r=o(r)}while(a(r)||p.test(r));return r.replace(f,"$1")}}export{a as __require};