function C(t,s){const c={type:1,children:[]};let u=0,d=c;const a=[],r=new S(t);for(;!r.eos();){let o=r.next();const i=o==="\\"&&g(r.peek(),s)!==0;if(i&&(o=r.next()),!i&&n(o,s)&&o===r.peek()){r.advance(),d.type===2&&(d=a.pop());const l=g(o,s);if(d.type===l||d.type===5&&l===6)d=a.pop();else{const h={type:l,children:[]};l===5&&(h.index=u,u++),d.children.push(h),a.push(d),d=h}}else if(o===`
`)d.type===2&&(d=a.pop()),d.children.push({type:8});else if(d.type!==2){const l={type:2,content:o};d.children.push(l),a.push(d),d=l}else d.content+=o}return d.type===2&&(d=a.pop()),a.length,c}
")?L.substr(0,L.length-2):L}function m(L,B){const W=`/${L}`,K=`\\${L}`,H=function(X,Z){return typeof X!="string"?null:Z?Z===L?B:null:X===L||X.endsWith(W)||X.endsWith(K)?B:null},Y=[L];return H.basenames=Y,H.patterns=[B],H.allBasenames=Y,H}function E(L,B){const W=O(L.slice(1,-1).split(",").map(Z=>_(Z,B)).filter(Z=>Z!==y),L),K=W.length;if(!K)return y;if(K===1)return W[0];const H=function(Z,se){for(let oe=0,G=W.length;oe<G;oe++)if(W[oe](Z,se))return L;return null},Y=W.find(Z=>!!Z.allBasenames);Y&&(H.allBasenames=Y.allBasenames);const X=W.reduce((Z,se)=>se.allPaths?Z.concat(se.allPaths):Z,[]);return X.length&&(H.allPaths=X),H}function I(L,B,W){const K=D.sep===D.posix.sep,H=K?L:L.replace(t,D.sep),Y=D.sep+H,X=D.posix.sep+L,Z=W?function(se,oe){return typeof se=="string"&&(se===H||se.endsWith(Y)||!K&&(se===L||se.endsWith(X)))?B:null}:function(se,oe){return typeof se=="string"&&(se===H||!K&&se===L)?B:null};return Z.allPaths=[(W?"