var y=Object.defineProperty,w=Object.defineProperties;var v=Object.getOwnPropertyDescriptors;var d=Object.getOwnPropertySymbols;var S=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable;var l=(i,t,e)=>t in i?y(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,u=(i,t)=>{for(var e in t||(t={}))S.call(t,e)&&l(i,e,t[e]);if(d)for(var e of d(t))b.call(t,e)&&l(i,e,t[e]);return i},g=(i,t)=>w(i,v(t));var h=(i,t,e)=>new Promise((c,o)=>{var s=r=>{try{n(e.next(r))}catch(a){o(a)}},p=r=>{try{n(e.throw(r))}catch(a){o(a)}},n=r=>r.done?c(r.value):Promise.resolve(r.value).then(s,p);n((e=e.apply(i,t)).next())});var j={name:"autojump",description:"A faster way to navigate your filesystem",options:[{name:["-h","--help"],description:"Show the help message and exit"},{name:["-a","--add"],description:"Add path",args:{name:"directory",template:["folders"]}},{name:["-i","--increase"],description:"Increase current directory weight",args:{name:"weight",isOptional:!0}},{name:["-d","--decrease"],description:"Decrease current directory weight",args:{name:"weight",isOptional:!0}},{name:"--complete",description:"Used for tab completion"},{name:"--purge",description:"Remove non-existent paths from database"},{name:["-s","--stat"],description:"Show database entries and their key weights"},{name:["-v","--version"],description:"Show version information"}]},f=j;var x=g(u({name:"j"},f),{args:{name:"directory",description:"Directory to jump to",isVariadic:!0,generators:{custom:(i,t,e)=>h(void 0,null,function*(){let{stdout:c}=yield t({command:"cat",args:[`${e.environmentVariables.HOME}/Library/autojump/autojump.txt`]}),o=c.split(`
`).map(n=>{let[r,a]=n.split("	");return{weight:Number(r),dir:a}}),s=i.slice(1,i.length-1);return o.filter(({dir:n})=>s.every(r=>n.includes(r))).map(({weight:n,dir:r})=>{let a=r.split("/"),m=a[a.length-1];if(!s.includes(m))return{name:m,description:r,priority:75+n}})})}}}),F=x;export{F as default};
