@jerryan/just-bash 3.11.0 → 3.11.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,16 @@
1
+ import{createRequire} from"node:module";const require=createRequire(import.meta.url);
2
+ import{a as Te}from"./chunk-TDD4NFYE.js";import{a as Z}from"./chunk-6P2DITXT.js";import{a as Se}from"./chunk-SGX4WOAM.js";import{a as ce}from"./chunk-L2UW7DWF.js";import{a as oe}from"./chunk-O5BHWBYH.js";import{b as he,c as me,d as ye}from"./chunk-57LGFT4S.js";import{d as be}from"./chunk-CM4T4GB4.js";import{l as ae,m as le}from"./chunk-TVCZIH6M.js";import{a as ie}from"./chunk-GN6CQ3J4.js";import{a as ge,b as we}from"./chunk-QAYAQNCG.js";function R(e,t){switch(e.type){case"name":{let n=e.pattern,s=n.match(/^\*(\.[a-zA-Z0-9]+)$/);if(s){let a=s[1],l=t.name;if(e.ignoreCase){if(!l.toLowerCase().endsWith(a.toLowerCase()))return{matches:!1,pruned:!1,printed:!1}}else if(!l.endsWith(a))return{matches:!1,pruned:!1,printed:!1};return{matches:!0,pruned:!1,printed:!1}}return{matches:Z(t.name,n,e.ignoreCase),pruned:!1,printed:!1}}case"path":{let n=e.pattern,s=t.relativePath,a=n.split("/");for(let d=0;d<a.length-1;d++){let r=a[d];if(r&&r!=="."&&r!==".."&&!r.includes("*")&&!r.includes("?")&&!r.includes("[")){let i=`/${r}/`;if(e.ignoreCase){if(!s.toLowerCase().includes(i.toLowerCase()))return{matches:!1,pruned:!1,printed:!1}}else if(!s.includes(i))return{matches:!1,pruned:!1,printed:!1}}}let l=n.match(/\*(\.[a-zA-Z0-9]+)$/);if(l){let d=l[1];if(e.ignoreCase){if(!s.toLowerCase().endsWith(d.toLowerCase()))return{matches:!1,pruned:!1,printed:!1}}else if(!s.endsWith(d))return{matches:!1,pruned:!1,printed:!1}}return{matches:Z(s,n,e.ignoreCase),pruned:!1,printed:!1}}case"regex":try{let n=e.ignoreCase?"i":"";return{matches:oe(e.pattern,n).test(t.relativePath),pruned:!1,printed:!1}}catch{return{matches:!1,pruned:!1,printed:!1}}case"type":return e.fileType==="f"?{matches:t.isFile,pruned:!1,printed:!1}:e.fileType==="d"?{matches:t.isDirectory,pruned:!1,printed:!1}:{matches:!1,pruned:!1,printed:!1};case"empty":return{matches:t.isEmpty,pruned:!1,printed:!1};case"mtime":{let s=(Date.now()-t.mtime)/(1e3*60*60*24),a;return e.comparison==="more"?a=s>e.days:e.comparison==="less"?a=s<e.days:a=Math.floor(s)===e.days,{matches:a,pruned:!1,printed:!1}}case"newer":{let n=t.newerRefTimes.get(e.refPath);return n===void 0?{matches:!1,pruned:!1,printed:!1}:{matches:t.mtime>n,pruned:!1,printed:!1}}case"size":{let n=e.value;switch(e.unit){case"c":n=e.value;break;case"k":n=e.value*1024;break;case"M":n=e.value*1024*1024;break;case"G":n=e.value*1024*1024*1024;break;case"b":n=e.value*512;break}let s;return e.comparison==="more"?s=t.size>n:e.comparison==="less"?s=t.size<n:e.unit==="b"?s=Math.ceil(t.size/512)===e.value:s=t.size===n,{matches:s,pruned:!1,printed:!1}}case"perm":{let n=t.mode&511,s=e.mode&511,a;return e.matchType==="exact"?a=n===s:e.matchType==="all"?a=(n&s)===s:a=(n&s)!==0,{matches:a,pruned:!1,printed:!1}}case"prune":return{matches:!0,pruned:!0,printed:!1};case"action":return{matches:!0,pruned:!1,printed:!1,actions:[e.action]};case"not":{let n=R(e.expr,t);return{matches:!n.matches,pruned:n.pruned,printed:!1,actions:n.actions}}case"and":{let n=R(e.left,t);if(!n.matches)return{matches:!1,pruned:n.pruned,printed:!1,actions:n.actions};let s=R(e.right,t);return{matches:s.matches,pruned:n.pruned||s.pruned,printed:n.printed||s.printed,actions:[...n.actions??[],...s.actions??[]]}}case"or":{let n=R(e.left,t);if(n.matches)return n;let s=R(e.right,t);return{matches:s.matches,pruned:n.pruned||s.pruned,printed:s.printed,actions:[...n.actions??[],...s.actions??[]]}}}}function _(e){if(!e)return!1;switch(e.type){case"name":case"path":case"regex":case"type":case"prune":return!1;case"action":return!1;case"empty":case"mtime":case"newer":case"size":case"perm":return!0;case"not":return _(e.expr);case"and":case"or":return _(e.left)||_(e.right)}}function j(e){if(!e)return!1;switch(e.type){case"empty":return!0;case"not":return j(e.expr);case"and":case"or":return j(e.left)||j(e.right);default:return!1}}function Ce(e){let t=[],n=s=>{s&&(s.type==="newer"?t.push(s.refPath):s.type==="not"?n(s.expr):(s.type==="and"||s.type==="or")&&(n(s.left),n(s.right)))};return n(e),t}function J(e){if(!e)return!0;switch(e.type){case"name":case"path":case"regex":case"type":case"prune":return!0;case"action":return!1;case"empty":case"mtime":case"newer":case"size":case"perm":return!1;case"not":return J(e.expr);case"and":case"or":return J(e.left)&&J(e.right)}}function B(e,t,n,s,a){switch(e.type){case"name":{let l=e.pattern,d=l.match(/^\*(\.[a-zA-Z0-9]+)$/);if(d){let r=d[1];if(e.ignoreCase){if(!t.toLowerCase().endsWith(r.toLowerCase()))return{matches:!1,pruned:!1,printed:!1}}else if(!t.endsWith(r))return{matches:!1,pruned:!1,printed:!1};return{matches:!0,pruned:!1,printed:!1}}return{matches:Z(t,l,e.ignoreCase),pruned:!1,printed:!1}}case"path":{let l=e.pattern,d=l.split("/");for(let i=0;i<d.length-1;i++){let o=d[i];if(o&&o!=="."&&o!==".."&&!o.includes("*")&&!o.includes("?")&&!o.includes("[")){let u=`/${o}/`;if(e.ignoreCase){if(!n.toLowerCase().includes(u.toLowerCase()))return{matches:!1,pruned:!1,printed:!1}}else if(!n.includes(u))return{matches:!1,pruned:!1,printed:!1}}}let r=l.match(/\*(\.[a-zA-Z0-9]+)$/);if(r){let i=r[1];if(e.ignoreCase){if(!n.toLowerCase().endsWith(i.toLowerCase()))return{matches:!1,pruned:!1,printed:!1}}else if(!n.endsWith(i))return{matches:!1,pruned:!1,printed:!1}}return{matches:Z(n,l,e.ignoreCase),pruned:!1,printed:!1}}case"regex":try{let l=e.ignoreCase?"i":"";return{matches:oe(e.pattern,l).test(n),pruned:!1,printed:!1}}catch{return{matches:!1,pruned:!1,printed:!1}}case"type":return e.fileType==="f"?{matches:s,pruned:!1,printed:!1}:e.fileType==="d"?{matches:a,pruned:!1,printed:!1}:{matches:!1,pruned:!1,printed:!1};case"prune":return{matches:!0,pruned:!0,printed:!1};case"action":return{matches:!0,pruned:!1,printed:!1,actions:[e.action]};case"not":{let l=B(e.expr,t,n,s,a);return{matches:!l.matches,pruned:l.pruned,printed:!1,actions:l.actions}}case"and":{let l=B(e.left,t,n,s,a);if(!l.matches)return{matches:!1,pruned:l.pruned,printed:!1,actions:l.actions};let d=B(e.right,t,n,s,a);return{matches:d.matches,pruned:l.pruned||d.pruned,printed:l.printed||d.printed,actions:[...l.actions??[],...d.actions??[]]}}case"or":{let l=B(e.left,t,n,s,a);if(l.matches)return l;let d=B(e.right,t,n,s,a);return{matches:d.matches,pruned:l.pruned||d.pruned,printed:d.printed,actions:[...l.actions??[],...d.actions??[]]}}default:return{matches:!1,pruned:!1,printed:!1}}}function U(e){if(!e)return!1;switch(e.type){case"prune":return!0;case"not":return U(e.expr);case"and":case"or":return U(e.left)||U(e.right);default:return!1}}function L(e){switch(e.type){case"name":case"path":case"regex":case"type":case"prune":return!0;case"action":return!1;case"empty":case"mtime":case"newer":case"size":case"perm":return!1;case"not":return L(e.expr);case"and":case"or":return L(e.left)&&L(e.right)}}function Ee(e,t){if(!e||!t.isDirectory)return{shouldPrune:!1};if(!L(e))return fe(e,t);let n={name:t.name,relativePath:t.relativePath,isFile:t.isFile,isDirectory:t.isDirectory,isEmpty:!1,mtime:0,size:0,mode:0,newerRefTimes:new Map};return{shouldPrune:R(e,n).pruned}}function fe(e,t){switch(e.type){case"or":{if(L(e.left)){let n={name:t.name,relativePath:t.relativePath,isFile:t.isFile,isDirectory:t.isDirectory,isEmpty:!1,mtime:0,size:0,mode:0,newerRefTimes:new Map};if(R(e.left,n).pruned)return{shouldPrune:!0}}return fe(e.right,t)}case"and":{if(L(e.left)&&L(e.right)){let n={name:t.name,relativePath:t.relativePath,isFile:t.isFile,isDirectory:t.isDirectory,isEmpty:!1,mtime:0,size:0,mode:0,newerRefTimes:new Map};return{shouldPrune:R(e,n).pruned}}if(L(e.left)){let n={name:t.name,relativePath:t.relativePath,isFile:t.isFile,isDirectory:t.isDirectory,isEmpty:!1,mtime:0,size:0,mode:0,newerRefTimes:new Map};return R(e.left,n).matches?fe(e.right,t):{shouldPrune:!1}}return{shouldPrune:!1}}case"not":return{shouldPrune:!1};default:return{shouldPrune:!1}}}function ve(e,t){let n=[],s=t,a=r=>({expr:null,pathIndex:s,error:`find: missing argument to \`${r}'
3
+ `}),l=(r,i)=>({expr:null,pathIndex:s,error:`find: invalid argument \`${i}' to \`${r}'
4
+ `});for(;s<e.length;){let r=e[s];if(r==="("||r==="\\("){n.push({type:"lparen"}),s++;continue}if(r===")"||r==="\\)"){n.push({type:"rparen"}),s++;continue}if(r==="-name"){if(s+1>=e.length)return a(r);n.push({type:"expr",expr:{type:"name",pattern:e[++s]}})}else if(r==="-iname"){if(s+1>=e.length)return a(r);n.push({type:"expr",expr:{type:"name",pattern:e[++s],ignoreCase:!0}})}else if(r==="-path"){if(s+1>=e.length)return a(r);n.push({type:"expr",expr:{type:"path",pattern:e[++s]}})}else if(r==="-ipath"){if(s+1>=e.length)return a(r);n.push({type:"expr",expr:{type:"path",pattern:e[++s],ignoreCase:!0}})}else if(r==="-regex"){if(s+1>=e.length)return a(r);n.push({type:"expr",expr:{type:"regex",pattern:e[++s]}})}else if(r==="-iregex"){if(s+1>=e.length)return a(r);n.push({type:"expr",expr:{type:"regex",pattern:e[++s],ignoreCase:!0}})}else if(r==="-type"){if(s+1>=e.length)return a(r);let i=e[++s];if(i==="f"||i==="d")n.push({type:"expr",expr:{type:"type",fileType:i}});else return{expr:null,pathIndex:s,error:`find: Unknown argument to -type: ${i}
5
+ `}}else if(r==="-empty")n.push({type:"expr",expr:{type:"empty"}});else if(r==="-mtime"){if(s+1>=e.length)return a(r);let i=e[++s],o="exact",u=i;if(i.startsWith("+")?(o="more",u=i.slice(1)):i.startsWith("-")&&(o="less",u=i.slice(1)),!/^\d+$/.test(u))return l(r,i);let N=Number(u);if(!Number.isSafeInteger(N))return l(r,i);n.push({type:"expr",expr:{type:"mtime",days:N,comparison:o}})}else if(r==="-newer"){if(s+1>=e.length)return a(r);let i=e[++s];n.push({type:"expr",expr:{type:"newer",refPath:i}})}else if(r==="-size"){if(s+1>=e.length)return a(r);let i=e[++s],o="exact",u=i;i.startsWith("+")?(o="more",u=i.slice(1)):i.startsWith("-")&&(o="less",u=i.slice(1));let N=u.match(/^(\d+)([ckMGb])?$/);if(!N)return l(r,i);let F=Number(N[1]);if(!Number.isSafeInteger(F))return l(r,i);let P=N[2]||"b",V=P==="G"?1024**3:P==="M"?1024**2:P==="k"?1024:P==="b"?512:1;if(!Number.isSafeInteger(F*V))return l(r,i);n.push({type:"expr",expr:{type:"size",value:F,unit:P,comparison:o}})}else if(r==="-perm"){if(s+1>=e.length)return a(r);let i=e[++s],o="exact",u=i;if(i.startsWith("-")?(o="all",u=i.slice(1)):i.startsWith("/")&&(o="any",u=i.slice(1)),!/^[0-7]{1,4}$/.test(u))return l(r,i);let N=Number.parseInt(u,8);n.push({type:"expr",expr:{type:"perm",mode:N,matchType:o}})}else if(r==="-prune")n.push({type:"expr",expr:{type:"prune"}});else if(r==="-not"||r==="!")n.push({type:"not"});else if(r==="-o"||r==="-or")n.push({type:"op",op:"or"});else if(r==="-a"||r==="-and")n.push({type:"op",op:"and"});else if(r==="-maxdepth"||r==="-mindepth"){if(s+1>=e.length)return a(r);s++}else if(r!=="-depth")if(r==="-exec"){let i=[];for(s++;s<e.length&&e[s]!==";"&&e[s]!=="+";)i.push(e[s]),s++;if(s>=e.length)return{expr:null,pathIndex:s,error:"find: missing argument to `-exec'\n"};if(i.length===0)return a("-exec");let o=e[s]==="+";if(o&&(i.at(-1)!=="{}"||i.filter(u=>u==="{}").length!==1))return l("-exec","+");n.push({type:"expr",expr:{type:"action",action:{type:"exec",command:i,batchMode:o}}})}else if(r==="-print")n.push({type:"expr",expr:{type:"action",action:{type:"print"}}});else if(r==="-print0")n.push({type:"expr",expr:{type:"action",action:{type:"print0"}}});else if(r==="-printf"){if(s+1>=e.length)return a(r);let i=e[++s];n.push({type:"expr",expr:{type:"action",action:{type:"printf",format:i}}})}else if(r==="-delete")n.push({type:"expr",expr:{type:"action",action:{type:"delete"}}});else return r.startsWith("-")?{expr:null,pathIndex:s,error:`find: unknown predicate '${r}'
6
+ `}:{expr:null,pathIndex:s,error:`find: paths must precede expression: \`${r}'
7
+ `};s++}if(n.length===0)return{expr:null,pathIndex:s};let d=Re(n);return d.error?{expr:null,pathIndex:s,error:d.error}:{expr:d.expr,pathIndex:s}}function Re(e){let t=0,n;function s(){let i=a();if(!i)return null;for(;t<e.length;){let o=e[t];if(o.type==="op"&&o.op==="or"){t++;let u=a();if(!u)return n="find: expected an expression after `-o'\n",null;i={type:"or",left:i,right:u}}else break}return i}function a(){let i=l();if(!i)return null;for(;t<e.length;){let o=e[t];if(o.type==="op"&&o.op==="and"){t++;let u=l();if(!u)return n="find: expected an expression after `-a'\n",null;i={type:"and",left:i,right:u}}else if(o.type==="expr"||o.type==="not"||o.type==="lparen"){let u=l();if(!u)return i;i={type:"and",left:i,right:u}}else break}return i}function l(){if(t<e.length&&e[t].type==="not"){t++;let i=l();return i?{type:"not",expr:i}:(n="find: expected an expression after `!'\n",null)}return d()}function d(){if(t>=e.length)return null;let i=e[t];if(i.type==="lparen"){t++;let o=s();return!o||t>=e.length||e[t].type!=="rparen"?(n="find: missing closing `)'\n",null):(t++,o)}return i.type==="expr"?(t++,i.expr):(i.type==="rparen",null)}let r=s();return!n&&t<e.length&&(n=e[t].type==="rparen"?"find: unexpected `)'\n":`find: invalid expression
8
+ `),!n&&r&&ee(r)&&(n="find: refusing to evaluate `-delete' under negation\n"),{expr:n?null:r,error:n}}function ee(e,t=!1){return e.type==="action"?t&&e.action.type==="delete":e.type==="not"?ee(e.expr,!t):e.type==="and"||e.type==="or"?ee(e.left,t)||ee(e.right,t):!1}var De=500;function Fe(){return{readdirCalls:0,readdirTime:0,statCalls:0,statTime:0,evalCalls:0,evalTime:0,nodeCount:0,batchCount:0,batchTime:0,earlyPrunes:0}}function ze(e,t,n){e({category:"find",name:"summary",durationMs:n,details:{readdirCalls:t.readdirCalls,readdirTimeMs:t.readdirTime,statCalls:t.statCalls,statTimeMs:t.statTime,evalCalls:t.evalCalls,evalTimeMs:t.evalTime,nodeCount:t.nodeCount,batchCount:t.batchCount,batchTimeMs:t.batchTime,earlyPrunes:t.earlyPrunes,otherTimeMs:n-t.readdirTime-t.statTime-t.evalTime-t.batchTime}})}var Ae={name:"find",summary:"search for files in a directory hierarchy",usage:"find [path...] [expression]",options:["-name PATTERN file name matches shell pattern PATTERN","-iname PATTERN like -name but case insensitive","-path PATTERN file path matches shell pattern PATTERN","-ipath PATTERN like -path but case insensitive","-regex PATTERN file path matches regular expression PATTERN","-iregex PATTERN like -regex but case insensitive","-type TYPE file is of type: f (regular file), d (directory)","-empty file is empty or directory is empty","-mtime N file's data was modified N*24 hours ago","-newer FILE file was modified more recently than FILE","-size N[ckMGb] file uses N units of space (c=bytes, k=KB, M=MB, G=GB, b=512B blocks)","-perm MODE file's permission bits are exactly MODE (octal)","-perm -MODE all permission bits MODE are set","-perm /MODE any permission bits MODE are set","-maxdepth LEVELS descend at most LEVELS directories","-mindepth LEVELS do not apply tests at levels less than LEVELS","-depth process directory contents before directory itself","-prune do not descend into this directory","-not, ! negate the following expression","-a, -and logical AND (default)","-o, -or logical OR","-exec CMD {} ; execute CMD on each file ({} is replaced by filename)","-exec CMD {} + execute CMD with multiple files at once","-print print the full file name (default action)","-print0 print the full file name followed by a null character","-printf FORMAT print FORMAT with directives: %f %h %p %P %s %d %m %M %t","-delete delete found files/directories"," --help display this help and exit"]},st={name:"find",async execute(e,t){if(we(e))return ge(Ae);let n=[],s=null,a=null,l=!1,d=e.length;for(let c=0;c<e.length;c++){let f=e[c];if(f.startsWith("-")||f==="("||f==="\\("||f===")"||f==="\\)"||f==="!"){d=c;break}n.push(f)}n.length===0&&n.push(".");for(let c=d;c<e.length;c++){let f=e[c];if(f==="-exec")for(c++;c<e.length&&e[c]!==";"&&e[c]!=="+";)c++;else if(f==="-maxdepth"||f==="-mindepth"){let p=e[c+1];if(p===void 0||!/^\d+$/.test(p))return{stdout:"",stderr:p===void 0?`find: missing argument to \`${f}'
9
+ `:`find: invalid argument \`${p}' to \`${f}'
10
+ `,exitCode:1};let D=Number(p);if(!Number.isSafeInteger(D))return{stdout:"",stderr:`find: invalid argument \`${p}' to \`${f}'
11
+ `,exitCode:1};f==="-maxdepth"?s=D:a=D,c++}else f==="-depth"&&(l=!0)}let{expr:r,error:i}=ve(e,d);if(i)return{stdout:"",stderr:i,exitCode:1};let o=te(r),u=o.length>0;o.some(c=>c.type==="delete")&&(l=!0);let N=[],F=0,P=t.executionScope?new Se(t.executionScope,"find"):void 0,V=[],ue=[],Q=0,O=new be({limits:t.limits,signal:t.signal,executionScope:t.executionScope,site:"find"}),G=c=>{if(P)P.append("stdout",c);else{let f=ie(c);if(f>t.limits.maxOutputSize-Q)throw new ae(`find: output size limit exceeded (${t.limits.maxOutputSize} bytes)`,"output_size");c&&V.push(c),Q+=f}},q=c=>{if(P)P.append("stderr",c);else{let f=ie(c);if(f>t.limits.maxOutputSize-Q)throw new ae(`find: output size limit exceeded (${t.limits.maxOutputSize} bytes)`,"output_size");c&&ue.push(c),Q+=f}},Me=Ce(r),ne=new Map;for(let c of Me){let f=t.fs.resolvePath(t.cwd,c);try{let p=await t.fs.stat(f);ne.set(c,p.mtime?.getTime()??Date.now())}catch{}}let Pe=o.some(c=>{if(c.type!=="printf")return!1;let f=c.format.replace(/%%/g,"");return/%[-+]?[0-9]*\.?[0-9]*(s|m|M|t|T)/.test(f)}),xe=_(r)||Pe,$e=j(r),pe=U(r),Ie=J(r),ke=typeof t.fs.readdirWithFileTypes=="function";for(let c of n){let z=function(h){let y={path:h.relativePath,name:h.name,size:h.stat?.size??0,mtime:h.stat?.mtime?.getTime()??Date.now(),mode:h.stat?.mode??420,isDirectory:h.isDirectory,depth:h.depth,startingPoint:c},C=h.unreadable===void 0?[]:[{action:{type:"diagnostic",message:`find: ${h.relativePath}: ${h.unreadable}
12
+ `},path:h.relativePath,printfData:y}],k=w=>l?[...C,...w]:[...w,...C];if(!(a===null||h.depth>=a))return C;let g=!0,m=[];if(r!==null){let w=Date.now(),S;if(Ie)S=B(r,h.name,h.relativePath,h.isFile,h.isDirectory);else{let b={name:h.name,relativePath:h.relativePath,isFile:h.isFile,isDirectory:h.isDirectory,isEmpty:h.isEmpty,mtime:h.stat?.mtime?.getTime()??Date.now(),size:h.stat?.size??0,mode:h.stat?.mode??420,newerRefTimes:ne};S=R(r,b)}g=S.matches,m=S.actions??[],p.evalCalls++,p.evalTime+=Date.now()-w}if(!u&&g&&(m=[{type:"print"}]),m.length===0)return C;O.checkpoint(m.length);let T=[];for(let w of m)T.push({action:w,path:h.relativePath,printfData:y});return k(T)};var Ge=z;c.length>1&&c.endsWith("/")&&(c=c.slice(0,-1));let f=t.fs.resolvePath(t.cwd,c);try{await t.fs.stat(f)}catch{q(`find: ${c}: No such file or directory
13
+ `),F=1;continue}let p=Fe(),D=Date.now();async function x(h){let{path:y,depth:C,typeInfo:k}=h;if(O.visit(C),p.nodeCount++,C>(s??t.limits.maxTraversalDepth))return null;let $,g,m;if(k&&!xe)$=k.isFile,g=k.isDirectory;else{try{let W=Date.now();m=await t.fs.lstat(y),p.statCalls++,p.statTime+=Date.now()-W}catch{return null}if(!m)return null;$=m.isFile,g=m.isDirectory}let T;y===f?T=c.split("/").pop()||c:T=y.split("/").pop()||"";let w=y===f?c:c==="."?`./${y.slice(f==="/"?f.length:f.length+1)}`:c+y.slice(f.length),S=[],b=null,E=null,I=!1;g&&pe&&!l&&(I=Ee(r,{name:T,relativePath:w,isFile:$,isDirectory:g}).shouldPrune,I&&p.earlyPrunes++);let H=!(C>=(s??t.limits.maxTraversalDepth))&&!I,K=(H||$e)&&!I,X;if(g&&K){let W=Date.now();try{ke&&t.fs.readdirWithFileTypes?b=await t.fs.readdirWithFileTypes(y):E=await t.fs.readdir(y)}catch(M){let A=Be(M);if(A===null)throw M;X=A,p.readdirCalls++,p.readdirTime+=Date.now()-W}if(b!==null){O.checkpoint(),O.discover(b.length),E=[];for(let M of b)E.push(M.name);if(p.readdirCalls++,p.readdirTime+=Date.now()-W,H)for(let M=0;M<b.length;M++){let A=b[M];S.push({path:y==="/"?`/${A.name}`:`${y}/${A.name}`,depth:C+1,typeInfo:{isFile:A.isFile,isDirectory:A.isDirectory},resultIndex:M})}}else if(E!==null&&(O.checkpoint(),O.discover(E.length),p.readdirCalls++,p.readdirTime+=Date.now()-W,H))for(let M=0;M<E.length;M++){let A=E[M];S.push({path:y==="/"?`/${A}`:`${y}/${A}`,depth:C+1,resultIndex:M})}}let Y=$?(m?.size??0)===0:E!==null&&E.length===0,re=I;if(!l&&r!==null&&!I&&pe){let W=Date.now(),M={name:T,relativePath:w,isFile:$,isDirectory:g,isEmpty:Y,mtime:m?.mtime?.getTime()??Date.now(),size:m?.size??0,mode:m?.mode??420,newerRefTimes:ne};re=R(r,M).pruned,p.evalCalls++,p.evalTime+=Date.now()-W}return{relativePath:w,name:T,isFile:$,isDirectory:g,isEmpty:Y,stat:m,depth:C,children:re?[]:S,pruned:re,unreadable:X}}async function Ne(){let h={effects:[]};if(l){let y=[],C=[{item:{path:f,depth:0,resultIndex:0},parentIndex:-1,childOrderInParent:0}],k=new Map,$=0;for(;$<C.length;){let g=Date.now(),m=Math.min(C.length,$+De),T=C.slice($,m);$=m;let w=await Promise.all(T.map(S=>x(S.item).catch(b=>{if(b instanceof le)return null;throw b})));p.batchCount++,p.batchTime+=Date.now()-g;for(let S=0;S<T.length;S++){let b=w[S],E=T[S];if(!b)continue;let I=y.length;if(E.parentIndex>=0){let v=k.get(E.parentIndex)||[];v.push(I),k.set(E.parentIndex,v)}y.push({node:b,parentIndex:E.parentIndex,childIndices:[]});for(let v=0;v<b.children.length;v++)C.push({item:b.children[v],parentIndex:I,childOrderInParent:v})}}for(let[g,m]of k)g>=0&&g<y.length&&(y[g].childIndices=m);if(y.length>0){let g=[{index:0,visited:!1}];for(;g.length>0;){O.checkpoint();let m=g.pop();if(!m)break;let T=y[m.index];if(T){if(m.visited){for(let w of z(T.node))h.effects.push(w);continue}g.push({index:m.index,visited:!0});for(let w=T.childIndices.length-1;w>=0;w--)g.push({index:T.childIndices[w],visited:!1})}}}}else{let y=new Map,C=0,k=[{item:{path:f,depth:0,resultIndex:0},orderIndex:C++}],$=new Map,g=0;for(;g<k.length;){let T=Date.now(),w=Math.min(k.length,g+De),S=k.slice(g,w);g=w;let b=await Promise.all(S.map(async({item:E,orderIndex:I})=>{try{let v=await x(E);return v?{node:v,orderIndex:I}:null}catch(v){if(v instanceof le)return null;throw v}}));p.batchCount++,p.batchTime+=Date.now()-T;for(let E of b){if(!E)continue;let{node:I,orderIndex:v}=E,H=z(I);if(H.length>0&&y.set(v,H),I.children.length>0){let K=[];for(let X of I.children){let Y=C++;K.push(Y),k.push({item:X,orderIndex:Y})}$.set(v,K)}}}let m=[0];for(;m.length>0;){O.checkpoint();let T=m.pop();if(T===void 0)break;let w=y.get(T);if(w)for(let b of w)h.effects.push(b);let S=$.get(T);if(S)for(let b=S.length-1;b>=0;b--)m.push(S[b])}}return h}let de=await Ne();for(let h of de.effects)N.push(h);if(t.trace){let h=Date.now()-D;ze(t.trace,p,h),t.trace({category:"find",name:"searchPath",durationMs:h,details:{path:c,resultsFound:de.effects.filter(y=>y.action.type!=="diagnostic").length}})}}let se=new Map;for(let c of N){let{action:f,path:p}=c;switch(f.type){case"diagnostic":q(f.message),F=1;break;case"print":G(`${p}
14
+ `);break;case"print0":G(`${p}\0`);break;case"printf":G(Oe(f.format,c.printfData));break;case"delete":{let D=t.fs.resolvePath(t.cwd,p);try{await t.fs.rm(D,{recursive:!1})}catch(x){let z=x instanceof Error?x.message:String(x);q(`find: cannot delete '${p}': ${z}
15
+ `),F=1}break}case"exec":{if(!t.exec)return{stdout:"",stderr:`find: -exec not supported in this context
16
+ `,exitCode:1};if(f.batchMode){let z=se.get(f)??[];z.push(p),se.set(f,z);break}let D=f.command.map(z=>z==="{}"?p:z),x=await t.exec(ce([D[0]]),{cwd:t.cwd,signal:t.signal,args:D.slice(1)});P?P.appendResult(x):(G(x.stdout),q(x.stderr)),x.exitCode!==0&&(F=x.exitCode);break}}}for(let[c,f]of se){if(c.type!=="exec"||!t.exec||f.length===0)continue;let p=[];for(let x of c.command)x==="{}"?p.push(...f):p.push(x);let D=await t.exec(ce([p[0]]),{cwd:t.cwd,signal:t.signal,args:p.slice(1)});P?P.appendResult(D):(G(D.stdout),q(D.stderr)),D.exitCode!==0&&(F=D.exitCode)}return P?.build(F)??{stdout:V.join(""),stderr:ue.join(""),exitCode:F}}};function te(e){return e?e.type==="action"?[e.action]:e.type==="not"?te(e.expr):e.type==="and"||e.type==="or"?[...te(e.left),...te(e.right)]:[]:[]}function Oe(e,t){let n=ye(e),s="",a=0;for(;a<n.length;)if(n[a]==="%"&&a+1<n.length){if(a++,n[a]==="%"){s+="%",a++;continue}let[l,d,r]=me(n,a);if(a+=r,a>=n.length){s+="%";break}let i=n[a],o;switch(i){case"f":o=t.name,a++;break;case"h":{let u=t.path.lastIndexOf("/");o=u>0?t.path.slice(0,u):".",a++;break}case"p":o=t.path,a++;break;case"P":{let u=t.startingPoint;t.path===u?o="":t.path.startsWith(`${u}/`)?o=t.path.slice(u.length+1):u==="."&&t.path.startsWith("./")?o=t.path.slice(2):o=t.path,a++;break}case"s":o=String(t.size),a++;break;case"d":o=String(t.depth),a++;break;case"m":o=(t.mode&511).toString(8),a++;break;case"M":o=Te(t.mode,t.isDirectory),a++;break;case"t":{let u=new Date(t.mtime);o=We(u),a++;break}case"T":{if(a+1<n.length){let u=n[a+1],N=new Date(t.mtime);o=He(N,u),a+=2}else o="%T",a++;break}default:s+=`%${l!==0||d!==-1?`${l}.${d}`:""}${i}`,a++;continue}s+=he(o,l,d)}else s+=n[a],a++;return s}function We(e){let t=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],n=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],s=t[e.getDay()],a=n[e.getMonth()],l=String(e.getDate()).padStart(2," "),d=String(e.getHours()).padStart(2,"0"),r=String(e.getMinutes()).padStart(2,"0"),i=String(e.getSeconds()).padStart(2,"0"),o=e.getFullYear();return`${s} ${a} ${l} ${d}:${r}:${i} ${o}`}var Le=new Map([["EACCES","Permission denied"],["EIO","Input/output error"],["ELOOP","Too many levels of symbolic links"],["ENAMETOOLONG","File name too long"],["ENOENT","No such file or directory"],["ENOTDIR","Not a directory"],["EPERM","Permission denied"]]);function Be(e){let t=typeof e=="object"&&e!==null&&"code"in e&&typeof e.code=="string"?e.code:e instanceof Error?/^(E[A-Z]+)\b/.exec(e.message)?.[1]:void 0;return t===void 0?null:Le.get(t)??null}function He(e,t){switch(t){case"@":return String(e.getTime()/1e3);case"Y":return String(e.getFullYear());case"m":return String(e.getMonth()+1).padStart(2,"0");case"d":return String(e.getDate()).padStart(2,"0");case"H":return String(e.getHours()).padStart(2,"0");case"M":return String(e.getMinutes()).padStart(2,"0");case"S":return String(e.getSeconds()).padStart(2,"0");case"T":return`${String(e.getHours()).padStart(2,"0")}:${String(e.getMinutes()).padStart(2,"0")}:${String(e.getSeconds()).padStart(2,"0")}`;case"F":return`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`;default:return`%T${t}`}}var rt={name:"find",flags:[{flag:"-name",type:"value",valueHint:"pattern"},{flag:"-iname",type:"value",valueHint:"pattern"},{flag:"-type",type:"value",valueHint:"string"},{flag:"-maxdepth",type:"value",valueHint:"number"},{flag:"-mindepth",type:"value",valueHint:"number"},{flag:"-empty",type:"boolean"},{flag:"-print",type:"boolean"},{flag:"-print0",type:"boolean"}],needsFiles:!0};export{st as a,rt as b};
@@ -1,2 +1,2 @@
1
1
  import{createRequire} from"node:module";const require=createRequire(import.meta.url);
2
- import{a,b}from"./chunk-L7NEGEOJ.js";import"./chunk-TDD4NFYE.js";import"./chunk-6P2DITXT.js";import"./chunk-SGX4WOAM.js";import"./chunk-L2UW7DWF.js";import"./chunk-O5BHWBYH.js";import"./chunk-57LGFT4S.js";import"./chunk-ZUEPJPYA.js";import"./chunk-CM4T4GB4.js";import"./chunk-BMBITA6Y.js";import"./chunk-TVCZIH6M.js";import"./chunk-GN6CQ3J4.js";import"./chunk-T5ZEIOJ3.js";import"./chunk-FOCWZZDE.js";import"./chunk-QAYAQNCG.js";import"./chunk-NCUTH6QL.js";export{a as findCommand,b as flagsForFuzzing};
2
+ import{a,b}from"./chunk-6X2Y5CA2.js";import"./chunk-TDD4NFYE.js";import"./chunk-6P2DITXT.js";import"./chunk-SGX4WOAM.js";import"./chunk-L2UW7DWF.js";import"./chunk-O5BHWBYH.js";import"./chunk-57LGFT4S.js";import"./chunk-ZUEPJPYA.js";import"./chunk-CM4T4GB4.js";import"./chunk-BMBITA6Y.js";import"./chunk-TVCZIH6M.js";import"./chunk-GN6CQ3J4.js";import"./chunk-T5ZEIOJ3.js";import"./chunk-FOCWZZDE.js";import"./chunk-QAYAQNCG.js";import"./chunk-NCUTH6QL.js";export{a as findCommand,b as flagsForFuzzing};
@@ -1,2 +1,2 @@
1
1
  import{createRequire} from"node:module";const require=createRequire(import.meta.url);
2
- import{b as yr}from"./chunk-4MZPEZTU.js";import{b as Ir}from"./chunk-WDY2TNMK.js";import{d as Mr,e as jr,f as Ar}from"./chunk-BZ2OMW2T.js";import{b as $r}from"./chunk-CORCIYJD.js";import"./chunk-WZQNMEQW.js";import{b as Sr}from"./chunk-5IB57TIJ.js";import{b as Tr}from"./chunk-BQTWRHZR.js";import"./chunk-7DVD6YCI.js";import"./chunk-6RK4AAB7.js";import{c as Br}from"./chunk-3LGQ6XEC.js";import"./chunk-IPKSYZ3R.js";import{b as wr}from"./chunk-OQ7C4FYO.js";import{b as xr}from"./chunk-HYQGYXGZ.js";import{b as kr}from"./chunk-NFW4YKDO.js";import{b as vr}from"./chunk-NXBUT5V2.js";import{b as qr}from"./chunk-ZIQS5QAW.js";import{b as Cr}from"./chunk-LI6PTSPD.js";import{b as br}from"./chunk-SBBYKIYU.js";import{b as tr}from"./chunk-Q4JSJ3KQ.js";import{b as lr}from"./chunk-KJBPGFZD.js";import{b as ur}from"./chunk-MJEJ7QEY.js";import"./chunk-SX2HC7SO.js";import{b as pr}from"./chunk-VWUMR4IC.js";import{b as er}from"./chunk-7II7XIVI.js";import{b as dr}from"./chunk-EQDVNHQS.js";import{b as cr}from"./chunk-ANCQ4SCV.js";import{b as hr}from"./chunk-FT6ODGOU.js";import"./chunk-2KNTH3KH.js";import{b as or}from"./chunk-QHDBQA5N.js";import{c as ar,d as sr}from"./chunk-HDRAUQK2.js";import{b as ir}from"./chunk-VCREDMWH.js";import{b as gr}from"./chunk-7EUWTCWK.js";import{c as mr,d as Fr}from"./chunk-EJFBIRMD.js";import{b as zr}from"./chunk-VQ6EUBJ3.js";import"./chunk-YUITEK6N.js";import{b as fr}from"./chunk-5LDRJ22P.js";import{b as nr}from"./chunk-2A4OZBCS.js";import{b as R}from"./chunk-L7NEGEOJ.js";import{b as U}from"./chunk-ZDPFA4L3.js";import{b as V}from"./chunk-FX4RBUYU.js";import{b as W}from"./chunk-7AISL3XV.js";import{b as X}from"./chunk-Y6UHNLT5.js";import{c as Y,d as Z}from"./chunk-A4R2GWRF.js";import{c as _,d as N}from"./chunk-FHC24QSK.js";import{b as rr}from"./chunk-UIJUTQPH.js";import{b as G}from"./chunk-Y62SXZKJ.js";import{b as H}from"./chunk-3WASQYTF.js";import{b as J}from"./chunk-2VWG4LDT.js";import{b as K}from"./chunk-7O2RDO2R.js";import{b as L}from"./chunk-AMXNXHXK.js";import{b as O}from"./chunk-67ODVGSB.js";import{b as P}from"./chunk-HRIJVWZS.js";import{b as Q}from"./chunk-LSLPJOYM.js";import{b as j}from"./chunk-ZT3WF5R7.js";import{b as A}from"./chunk-ROAWFE6V.js";import{b as $}from"./chunk-6WGIZV3E.js";import{b as S}from"./chunk-BLG7RWH4.js";import{b as T}from"./chunk-6HQQON3N.js";import{b as B}from"./chunk-H7UVJSZR.js";import{b as D}from"./chunk-LVDUF74R.js";import{b as E}from"./chunk-ASE6AYV3.js";import{b as w}from"./chunk-52W2IWA7.js";import{b as x}from"./chunk-QTL2XC4B.js";import"./chunk-N36I27VM.js";import{b as k}from"./chunk-44YCJWNC.js";import{b as v}from"./chunk-EZEO6MFE.js";import"./chunk-TDD4NFYE.js";import{d as q,e as C,f as b}from"./chunk-YZCPEJRE.js";import"./chunk-6P2DITXT.js";import{b as y}from"./chunk-4VU4IF3W.js";import"./chunk-UUIYAOD4.js";import"./chunk-URIKBXSE.js";import{b as I}from"./chunk-UVQC75LS.js";import{b as M}from"./chunk-RVBBGZ22.js";import{b as t}from"./chunk-FZRQOL3C.js";import{b as l}from"./chunk-37UJACD6.js";import{b as u}from"./chunk-VQEB6E2M.js";import{b as p}from"./chunk-74IR77AZ.js";import{b as e}from"./chunk-3CIDHL5V.js";import{b as d}from"./chunk-EZT6M2HG.js";import{b as c}from"./chunk-SHKOQWO4.js";import{b as h}from"./chunk-NFODJFHN.js";import"./chunk-5J4S2LP5.js";import"./chunk-SXQJYLP7.js";import"./chunk-XZ34OGNM.js";import"./chunk-SGX4WOAM.js";import"./chunk-L2UW7DWF.js";import"./chunk-DLL7UR66.js";import"./chunk-654CJKE3.js";import"./chunk-O5BHWBYH.js";import{b as i}from"./chunk-AGH5UJJI.js";import{b as g}from"./chunk-3ZY5QX3G.js";import"./chunk-YEYSCLSJ.js";import"./chunk-A3C4Z3Q3.js";import"./chunk-A6SU3BZX.js";import{b as m}from"./chunk-HP7HWZ2S.js";import"./chunk-ICLA3MUR.js";import"./chunk-57LGFT4S.js";import{b as F}from"./chunk-T7OAZEXT.js";import"./chunk-ZUEPJPYA.js";import"./chunk-STHBFACM.js";import{b as z}from"./chunk-XT7EK6BR.js";import{b as f}from"./chunk-N5L7E4EL.js";import"./chunk-RK2WBVP4.js";import{b as n}from"./chunk-NOX3PCUH.js";import"./chunk-CM4T4GB4.js";import"./chunk-BMBITA6Y.js";import"./chunk-TVCZIH6M.js";import"./chunk-GN6CQ3J4.js";import"./chunk-T5ZEIOJ3.js";import"./chunk-W5DWRFSU.js";import"./chunk-FOCWZZDE.js";import"./chunk-QIQMJJZ4.js";import"./chunk-QAYAQNCG.js";import"./chunk-NCUTH6QL.js";var Hr=[i,g,m,F,z,f,n,t,l,u,p,e,d,c,h,w,x,k,v,q,C,b,y,I,M,j,A,$,S,T,B,D,E,G,H,J,K,L,O,P,Q,R,U,V,W,X,Y,Z,_,N,rr,or,ar,sr,ir,gr,mr,Fr,zr,fr,nr,tr,lr,ur,pr,er,dr,cr,hr,wr,xr,kr,vr,qr,Cr,br,yr,Ir,Mr,jr,Ar,$r,Sr,Tr,Br];function Dr(){return Hr}var Er=new Map;for(let r of Dr())Er.set(r.name,new Set(r.flags.map(o=>o.flag)));function ta(r,o,Gr){let a=Er.get(o);if(!(!a||a.size===0))for(let s of Gr)a.has(s)&&r.hit(`cmd:flag:${o}:${s}`)}export{ta as emitFlagCoverage};
2
+ import{b as yr}from"./chunk-4MZPEZTU.js";import{b as Ir}from"./chunk-WDY2TNMK.js";import{d as Mr,e as jr,f as Ar}from"./chunk-BZ2OMW2T.js";import{b as $r}from"./chunk-CORCIYJD.js";import"./chunk-WZQNMEQW.js";import{b as Sr}from"./chunk-5IB57TIJ.js";import{b as Tr}from"./chunk-BQTWRHZR.js";import"./chunk-7DVD6YCI.js";import"./chunk-6RK4AAB7.js";import{c as Br}from"./chunk-3LGQ6XEC.js";import"./chunk-IPKSYZ3R.js";import{b as wr}from"./chunk-OQ7C4FYO.js";import{b as xr}from"./chunk-HYQGYXGZ.js";import{b as kr}from"./chunk-NFW4YKDO.js";import{b as vr}from"./chunk-NXBUT5V2.js";import{b as qr}from"./chunk-ZIQS5QAW.js";import{b as Cr}from"./chunk-LI6PTSPD.js";import{b as br}from"./chunk-SBBYKIYU.js";import{b as tr}from"./chunk-Q4JSJ3KQ.js";import{b as lr}from"./chunk-KJBPGFZD.js";import{b as ur}from"./chunk-MJEJ7QEY.js";import"./chunk-SX2HC7SO.js";import{b as pr}from"./chunk-VWUMR4IC.js";import{b as er}from"./chunk-7II7XIVI.js";import{b as dr}from"./chunk-EQDVNHQS.js";import{b as cr}from"./chunk-ANCQ4SCV.js";import{b as hr}from"./chunk-FT6ODGOU.js";import"./chunk-2KNTH3KH.js";import{b as or}from"./chunk-QHDBQA5N.js";import{c as ar,d as sr}from"./chunk-HDRAUQK2.js";import{b as ir}from"./chunk-VCREDMWH.js";import{b as gr}from"./chunk-7EUWTCWK.js";import{c as mr,d as Fr}from"./chunk-EJFBIRMD.js";import{b as zr}from"./chunk-VQ6EUBJ3.js";import"./chunk-YUITEK6N.js";import{b as fr}from"./chunk-5LDRJ22P.js";import{b as nr}from"./chunk-2A4OZBCS.js";import{b as R}from"./chunk-6X2Y5CA2.js";import{b as U}from"./chunk-ZDPFA4L3.js";import{b as V}from"./chunk-FX4RBUYU.js";import{b as W}from"./chunk-7AISL3XV.js";import{b as X}from"./chunk-Y6UHNLT5.js";import{c as Y,d as Z}from"./chunk-A4R2GWRF.js";import{c as _,d as N}from"./chunk-FHC24QSK.js";import{b as rr}from"./chunk-UIJUTQPH.js";import{b as G}from"./chunk-Y62SXZKJ.js";import{b as H}from"./chunk-3WASQYTF.js";import{b as J}from"./chunk-2VWG4LDT.js";import{b as K}from"./chunk-7O2RDO2R.js";import{b as L}from"./chunk-AMXNXHXK.js";import{b as O}from"./chunk-67ODVGSB.js";import{b as P}from"./chunk-HRIJVWZS.js";import{b as Q}from"./chunk-LSLPJOYM.js";import{b as j}from"./chunk-ZT3WF5R7.js";import{b as A}from"./chunk-ROAWFE6V.js";import{b as $}from"./chunk-6WGIZV3E.js";import{b as S}from"./chunk-BLG7RWH4.js";import{b as T}from"./chunk-6HQQON3N.js";import{b as B}from"./chunk-H7UVJSZR.js";import{b as D}from"./chunk-LVDUF74R.js";import{b as E}from"./chunk-ASE6AYV3.js";import{b as w}from"./chunk-52W2IWA7.js";import{b as x}from"./chunk-QTL2XC4B.js";import"./chunk-N36I27VM.js";import{b as k}from"./chunk-44YCJWNC.js";import{b as v}from"./chunk-EZEO6MFE.js";import"./chunk-TDD4NFYE.js";import{d as q,e as C,f as b}from"./chunk-YZCPEJRE.js";import"./chunk-6P2DITXT.js";import{b as y}from"./chunk-4VU4IF3W.js";import"./chunk-UUIYAOD4.js";import"./chunk-URIKBXSE.js";import{b as I}from"./chunk-UVQC75LS.js";import{b as M}from"./chunk-RVBBGZ22.js";import{b as t}from"./chunk-FZRQOL3C.js";import{b as l}from"./chunk-37UJACD6.js";import{b as u}from"./chunk-VQEB6E2M.js";import{b as p}from"./chunk-74IR77AZ.js";import{b as e}from"./chunk-3CIDHL5V.js";import{b as d}from"./chunk-EZT6M2HG.js";import{b as c}from"./chunk-SHKOQWO4.js";import{b as h}from"./chunk-NFODJFHN.js";import"./chunk-5J4S2LP5.js";import"./chunk-SXQJYLP7.js";import"./chunk-XZ34OGNM.js";import"./chunk-SGX4WOAM.js";import"./chunk-L2UW7DWF.js";import"./chunk-DLL7UR66.js";import"./chunk-654CJKE3.js";import"./chunk-O5BHWBYH.js";import{b as i}from"./chunk-AGH5UJJI.js";import{b as g}from"./chunk-3ZY5QX3G.js";import"./chunk-YEYSCLSJ.js";import"./chunk-A3C4Z3Q3.js";import"./chunk-A6SU3BZX.js";import{b as m}from"./chunk-HP7HWZ2S.js";import"./chunk-ICLA3MUR.js";import"./chunk-57LGFT4S.js";import{b as F}from"./chunk-T7OAZEXT.js";import"./chunk-ZUEPJPYA.js";import"./chunk-STHBFACM.js";import{b as z}from"./chunk-XT7EK6BR.js";import{b as f}from"./chunk-N5L7E4EL.js";import"./chunk-RK2WBVP4.js";import{b as n}from"./chunk-NOX3PCUH.js";import"./chunk-CM4T4GB4.js";import"./chunk-BMBITA6Y.js";import"./chunk-TVCZIH6M.js";import"./chunk-GN6CQ3J4.js";import"./chunk-T5ZEIOJ3.js";import"./chunk-W5DWRFSU.js";import"./chunk-FOCWZZDE.js";import"./chunk-QIQMJJZ4.js";import"./chunk-QAYAQNCG.js";import"./chunk-NCUTH6QL.js";var Hr=[i,g,m,F,z,f,n,t,l,u,p,e,d,c,h,w,x,k,v,q,C,b,y,I,M,j,A,$,S,T,B,D,E,G,H,J,K,L,O,P,Q,R,U,V,W,X,Y,Z,_,N,rr,or,ar,sr,ir,gr,mr,Fr,zr,fr,nr,tr,lr,ur,pr,er,dr,cr,hr,wr,xr,kr,vr,qr,Cr,br,yr,Ir,Mr,jr,Ar,$r,Sr,Tr,Br];function Dr(){return Hr}var Er=new Map;for(let r of Dr())Er.set(r.name,new Set(r.flags.map(o=>o.flag)));function ta(r,o,Gr){let a=Er.get(o);if(!(!a||a.size===0))for(let s of Gr)a.has(s)&&r.hit(`cmd:flag:${o}:${s}`)}export{ta as emitFlagCoverage};