@profoundlogic/codermake 1.4.0 → 1.4.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.
@@ -1 +1 @@
1
- (function(_0x358ebb,_0x4715d0){const _0x4af8ba=_0x5107,_0x38f3e7=_0x358ebb();while(!![]){try{const _0x116d16=parseInt(_0x4af8ba(0x15a))/0x1*(-parseInt(_0x4af8ba(0x129))/0x2)+parseInt(_0x4af8ba(0x158))/0x3*(-parseInt(_0x4af8ba(0x172))/0x4)+parseInt(_0x4af8ba(0x12b))/0x5*(parseInt(_0x4af8ba(0x132))/0x6)+parseInt(_0x4af8ba(0x141))/0x7+parseInt(_0x4af8ba(0x164))/0x8*(parseInt(_0x4af8ba(0x16e))/0x9)+-parseInt(_0x4af8ba(0x16d))/0xa*(parseInt(_0x4af8ba(0x136))/0xb)+parseInt(_0x4af8ba(0x173))/0xc*(parseInt(_0x4af8ba(0x138))/0xd);if(_0x116d16===_0x4715d0)break;else _0x38f3e7['push'](_0x38f3e7['shift']());}catch(_0x273748){_0x38f3e7['push'](_0x38f3e7['shift']());}}}(_0x2569,0xd2382));import{readFileSync,writeFileSync,mkdirSync,copyFileSync,readdirSync}from'fs';import{dirname,join}from'path';import{randomUUID}from'crypto';export function detectFormat(_0x5d8fc4){const _0x338e56=_0x5107,_0x436a90={};_0x436a90['FOJzA']=_0x338e56(0x170);const _0x281633=_0x436a90;if(/^\*\*free$/i[_0x338e56(0x160)](_0x5d8fc4[_0x338e56(0x159)]()))return _0x281633['FOJzA'];return _0x338e56(0x14d);}function _0x2569(){const _0x320481=['BgLICMfYEq','ALbgy1C','t3Ply1q','zML4zwq','CxjWz2XLC3jJ','y09zz2i','sLnWBwy','zMLUza','EwLHALq','lNjWz2XL','B3bLCMfUza','ufHbse4','Aw5KzxG','ChvZAa','mtu2otaZm0L2z0jmrG','DhjPBuvUza','muHKEK5cBG','DhjPBvn0yxj0','u291CMnLig1LBwjLCIbUB3qGzM91BMq6ia','ue93AwO','DhjPBq','DxrMoa','DgvZDa','CMvWBgfJzq','Aw5KzxHpzG','EuvrsNy','nJC1nti5nNjVtw9AsG','C3vIC3rYAw5N','yuPNDee','icbeAxjLy3rPDMu6ia','AM9PBG','AwzZ','lNnXBhjWz2XL','Dg9mB3DLCKnHC2u','Ce1At0i','mZGZmfrNDvfJra','ouHKsMvdsq','z2DIqvO','zNjLzq','lYaODhjPzwqGlNjWz2XLlcaUC3fSCNbNBguP','ngTdr3jTvG','ote2nJaWofvqz2PYsa','EwXXs0K','zMLSzu5HBwu','mJGWmdiWmKXiAeznuW','jdfgAwXLoIa','nJK3nJyWtKLpwe1P','BwvTyMvYtMfTzq','Bw9KAwzPzwq','CMvJDxjZAxzL','y29UDgvUDa','DxPSrK8','zwHYtLm','nJbqww14sLC','rgLYzwn0B3j5ig5VDcbMB3vUzdOG','wLfkzMS','Bwf0y2G','mZe4nZHMtKHdB3C','AMX5ufm','mJznAfDKqKm','BwvTyMvY','BMvLzgvK','zffIqNi','DhLWzq','C3bSAxq','s0fJrvK','C3rHCNrZv2L0Aa','ENj0z3i','odG2oti4yuLKyNvA','t0H2Dgy','ywT0q2u','BwvZC2fNzq','icHSB29RAw5NigzVCIaN','BgvUz3rO','A2v5D29Yza','Aw5JBhvKzxm','wNvhr3e'];_0x2569=function(){return _0x320481;};return _0x2569();}function _0x5107(_0xa6bb64,_0x51b194){_0xa6bb64=_0xa6bb64-0x127;const _0x2569e7=_0x2569();let _0x5107c6=_0x2569e7[_0xa6bb64];if(_0x5107['yYyPiJ']===undefined){var _0x34fe5c=function(_0x2bb1d7){const _0x3499d8='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5be421='',_0x51c6f2='';for(let _0x1d00dd=0x0,_0x1e1972,_0x17222e,_0x3d8e10=0x0;_0x17222e=_0x2bb1d7['charAt'](_0x3d8e10++);~_0x17222e&&(_0x1e1972=_0x1d00dd%0x4?_0x1e1972*0x40+_0x17222e:_0x17222e,_0x1d00dd++%0x4)?_0x5be421+=String['fromCharCode'](0xff&_0x1e1972>>(-0x2*_0x1d00dd&0x6)):0x0){_0x17222e=_0x3499d8['indexOf'](_0x17222e);}for(let _0x108410=0x0,_0x54d0e6=_0x5be421['length'];_0x108410<_0x54d0e6;_0x108410++){_0x51c6f2+='%'+('00'+_0x5be421['charCodeAt'](_0x108410)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x51c6f2);};_0x5107['LqJlql']=_0x34fe5c,_0x5107['DuOfxe']={},_0x5107['yYyPiJ']=!![];}const _0x4a143f=_0x2569e7[0x0],_0x3fbff0=_0xa6bb64+_0x4a143f,_0x51d7be=_0x5107['DuOfxe'][_0x3fbff0];return!_0x51d7be?(_0x5107c6=_0x5107['LqJlql'](_0x5107c6),_0x5107['DuOfxe'][_0x3fbff0]=_0x5107c6):_0x5107c6=_0x51d7be,_0x5107c6;}export function extractDirective(_0x5e5e1b,_0x41b4ce){const _0x381ff1=_0x5107,_0x1fddc1={};_0x1fddc1[_0x381ff1(0x14c)]=function(_0x13729e,_0x24b7d4){return _0x13729e===_0x24b7d4;},_0x1fddc1[_0x381ff1(0x142)]=function(_0x169ff1,_0x30844b){return _0x169ff1-_0x30844b;},_0x1fddc1['zrtgr']=function(_0x431db5,_0x4df3aa){return _0x431db5+_0x4df3aa;},_0x1fddc1[_0x381ff1(0x13e)]=function(_0x1f9117,_0x2c199b){return _0x1f9117!==_0x2c199b;},_0x1fddc1['ggbAZ']=function(_0xaf19ad,_0x5f0c50){return _0xaf19ad-_0x5f0c50;},_0x1fddc1[_0x381ff1(0x143)]=function(_0x1f5b41,_0x5b5c81){return _0x1f5b41===_0x5b5c81;};const _0x5b8eb3=_0x1fddc1;let _0x45ec8b,_0x23f5d9;if(_0x5b8eb3['OzKcT'](_0x41b4ce,_0x381ff1(0x170))){const _0x5d3794=_0x5e5e1b[_0x381ff1(0x135)](/^\s*\/(copy|include) (\S)/i);if(!_0x5d3794)return null;const _0x53cd6a=_0x5e5e1b['trimStart']();if(_0x53cd6a[_0x381ff1(0x13f)]('//'))return null;_0x45ec8b=_0x5d3794[0x1]['toLowerCase'](),_0x23f5d9=_0x5e5e1b[_0x381ff1(0x165)](_0x5b8eb3[_0x381ff1(0x142)](_0x5b8eb3[_0x381ff1(0x140)](_0x5d3794[_0x381ff1(0x156)],_0x5d3794[0x0]['length']),0x1));}else{if(_0x5e5e1b['length']<0x7)return null;if(_0x5b8eb3[_0x381ff1(0x13e)](_0x5e5e1b[0x6],'/'))return null;const _0x494870=_0x5e5e1b[_0x381ff1(0x165)](0x7),_0x5e35a8=_0x494870['match'](/^(copy|include) (\S)/i);if(!_0x5e35a8)return null;_0x45ec8b=_0x5e35a8[0x1][_0x381ff1(0x16b)](),_0x23f5d9=_0x494870[_0x381ff1(0x165)](_0x5b8eb3[_0x381ff1(0x16f)](_0x5e35a8[0x0][_0x381ff1(0x146)],0x1));}let _0x4afada;if(_0x23f5d9[_0x381ff1(0x13f)]('\x27')){const _0x23f976=_0x23f5d9[_0x381ff1(0x162)]('\x27',0x1);_0x4afada=_0x5b8eb3[_0x381ff1(0x143)](_0x23f976,-0x1)?_0x23f5d9[_0x381ff1(0x15e)]():_0x23f5d9[_0x381ff1(0x165)](0x0,_0x23f976+0x1);}else{if(_0x23f5d9[_0x381ff1(0x13f)]('\x22')){const _0xe56fa9=_0x23f5d9[_0x381ff1(0x162)]('\x22',0x1);_0x4afada=_0xe56fa9===-0x1?_0x23f5d9[_0x381ff1(0x15e)]():_0x23f5d9[_0x381ff1(0x165)](0x0,_0xe56fa9+0x1);}else _0x4afada=_0x23f5d9['split'](/\s/)[0x0];}const _0x4c1a51={};return _0x4c1a51[_0x381ff1(0x147)]=_0x45ec8b,_0x4c1a51[_0x381ff1(0x154)]=_0x4afada,_0x4c1a51;}export function classifyDirectiveOperand(_0x31c936){const _0x5720e2=_0x5107,_0x31c822={};_0x31c822['cOYgb']=function(_0x4395e6,_0xa171c2){return _0x4395e6+_0xa171c2;},_0x31c822['uzlFO']=_0x5720e2(0x169);const _0x36d1a5=_0x31c822;if(_0x31c936[_0x5720e2(0x13f)]('\x27')||_0x31c936[_0x5720e2(0x13f)]('\x22')){const _0x1606d6={};return _0x1606d6[_0x5720e2(0x13c)]=_0x5720e2(0x169),_0x1606d6;}if(_0x31c936[_0x5720e2(0x148)](',')){const _0x5b3d25=_0x31c936[_0x5720e2(0x162)](','),_0x223e5c=_0x31c936['substring'](0x0,_0x5b3d25),_0x4f6c6a=_0x31c936[_0x5720e2(0x165)](_0x5b3d25+0x1),_0x41375a=_0x223e5c['indexOf']('/');if(_0x41375a!==-0x1){const _0x57299e=_0x223e5c[_0x5720e2(0x165)](0x0,_0x41375a),_0x5d8f86=/^\*libl$/i[_0x5720e2(0x160)](_0x57299e)?null:_0x57299e;return{'type':'member','library':_0x5d8f86,'fileName':_0x223e5c[_0x5720e2(0x165)](_0x36d1a5[_0x5720e2(0x14f)](_0x41375a,0x1)),'memberName':_0x4f6c6a};}const _0x3522d7={};return _0x3522d7[_0x5720e2(0x13c)]=_0x5720e2(0x139),_0x3522d7[_0x5720e2(0x14a)]=null,_0x3522d7[_0x5720e2(0x128)]=_0x223e5c,_0x3522d7[_0x5720e2(0x12c)]=_0x4f6c6a,_0x3522d7;}if(_0x31c936['includes']('/')){const _0x5a796e={};return _0x5a796e[_0x5720e2(0x13c)]=_0x36d1a5[_0x5720e2(0x130)],_0x5a796e;}if(/\.rpgle$/i[_0x5720e2(0x160)](_0x31c936)||/\.sqlrpgle$/i[_0x5720e2(0x160)](_0x31c936)){const _0x58eb82={};return _0x58eb82['type']=_0x5720e2(0x169),_0x58eb82;}const _0x311986={};return _0x311986['type']='member',_0x311986[_0x5720e2(0x14a)]=null,_0x311986[_0x5720e2(0x128)]=null,_0x311986['memberName']=_0x31c936,_0x311986;}function findFileInsensitive(_0x3d018d,_0x22a4bd){const _0x288a29=_0x5107,_0x582aef={'jPFcW':function(_0xc56d29,_0x1d8b86){return _0xc56d29(_0x1d8b86);}};let _0x15ddac;try{_0x15ddac=_0x582aef[_0x288a29(0x14b)](readdirSync,_0x3d018d);}catch{return null;}if(_0x15ddac['includes'](_0x22a4bd))return _0x22a4bd;const _0x3bf2d4=_0x22a4bd[_0x288a29(0x16b)]();return _0x15ddac[_0x288a29(0x151)](_0x1d2465=>_0x1d2465['toLowerCase']()===_0x3bf2d4)||null;}function findDirInsensitive(_0x392b27,_0x307424){const _0x4a508d=_0x5107,_0x109e3a={'JSpmf':function(_0x1944c3,_0x31e44e){return _0x1944c3(_0x31e44e);}};let _0x55111e;try{_0x55111e=_0x109e3a[_0x4a508d(0x150)](readdirSync,_0x392b27);}catch{return null;}if(_0x55111e[_0x4a508d(0x148)](_0x307424))return _0x307424;const _0x1f9ff9=_0x307424['toLowerCase']();return _0x55111e[_0x4a508d(0x151)](_0x1fad50=>_0x1fad50[_0x4a508d(0x16b)]()===_0x1f9ff9)||null;}export function resolveSourceMember(_0x295d37,_0x38d591){const _0x511ffd=_0x5107,_0x419f58={'pMZOB':function(_0x4c41ad,_0x538b05){return _0x4c41ad!==_0x538b05;},'POwij':function(_0x5cd7e6,_0xc2ed83,_0x1b28dc){return _0x5cd7e6(_0xc2ed83,_0x1b28dc);},'jlyPS':function(_0x37618d,_0x4c00be,_0x1f5646){return _0x37618d(_0x4c00be,_0x1f5646);},'ehrNS':_0x511ffd(0x153),'aJgtA':function(_0x39f56d,_0x97d79b){return _0x39f56d+_0x97d79b;}},{library:_0xdaa223,fileName:_0x17b877,memberName:_0x2ef68c}=_0x295d37;let _0x4e02a5;if(_0x17b877===null)_0x4e02a5=_0x511ffd(0x14e);else _0x419f58[_0x511ffd(0x16c)](_0xdaa223,null)?_0x4e02a5=_0xdaa223+'/'+_0x17b877:_0x4e02a5=_0x17b877;const _0x2dafe4=_0x4e02a5['split']('/');let _0x590adf=_0x38d591;const _0x1d66c4=[];for(const _0x56255a of _0x2dafe4){const _0x2fce4b=_0x419f58[_0x511ffd(0x15d)](findDirInsensitive,_0x590adf,_0x56255a);if(!_0x2fce4b)throw new Error(_0x511ffd(0x133)+_0x4e02a5+_0x511ffd(0x145)+_0x56255a+'\x27\x20in\x20\x27'+_0x590adf+'\x27)');_0x1d66c4[_0x511ffd(0x157)](_0x2fce4b),_0x590adf=_0x419f58[_0x511ffd(0x137)](join,_0x590adf,_0x2fce4b);}const _0x33e40a=_0x1d66c4['join']('/'),_0x1f2080=[_0x419f58[_0x511ffd(0x131)],_0x511ffd(0x16a)];for(const _0x1b83d5 of _0x1f2080){const _0x18ae71=_0x419f58[_0x511ffd(0x166)](_0x2ef68c,_0x1b83d5),_0x457641=findFileInsensitive(join(_0x38d591,_0x33e40a),_0x18ae71);if(_0x457641)return _0x33e40a+'/'+_0x457641;}throw new Error(_0x511ffd(0x15c)+_0x2ef68c+'\x20in\x20'+_0x33e40a+_0x511ffd(0x171));}export function preprocessFileContent(_0x1be37c,_0x17dcf0){const _0x1288b2=_0x5107,_0x2060fb={'kAwye':function(_0x477084,_0xfbc042,_0x1b8c32){return _0x477084(_0xfbc042,_0x1b8c32);},'ylqKI':function(_0x2318e6,_0x5bc310){return _0x2318e6===_0x5bc310;},'yEQJv':function(_0x2d1737,_0x18e256,_0x3e2828){return _0x2d1737(_0x18e256,_0x3e2828);},'ZQJfk':function(_0x51239a,_0x34fee6){return _0x51239a+_0x34fee6;},'PXAHN':function(_0x4d5f64,_0x127d1b){return _0x4d5f64===_0x127d1b;}},_0x453e1c=_0x1be37c[_0x1288b2(0x13d)]('\x0a'),_0x532e94={};_0x532e94['content']=_0x1be37c,_0x532e94[_0x1288b2(0x12d)]=![];if(_0x453e1c[_0x1288b2(0x146)]===0x0)return _0x532e94;const _0xb52114=detectFormat(_0x453e1c[0x0]);let _0x38e0ad=![];const _0x51664b=[];for(let _0x44f652=0x0;_0x44f652<_0x453e1c['length'];_0x44f652++){const _0x1c4805=_0x453e1c[_0x44f652],_0x536910=_0x2060fb['kAwye'](extractDirective,_0x1c4805,_0xb52114);if(!_0x536910){_0x51664b[_0x1288b2(0x157)](_0x1c4805);continue;}const _0xac5dd4=classifyDirectiveOperand(_0x536910[_0x1288b2(0x154)]);if(_0x2060fb[_0x1288b2(0x127)](_0xac5dd4['type'],_0x1288b2(0x169))){_0x51664b[_0x1288b2(0x157)](_0x1c4805);continue;}let _0x13b75b;try{_0x13b75b=_0x2060fb[_0x1288b2(0x163)](resolveSourceMember,_0xac5dd4,_0x17dcf0);}catch(_0x5ea09a){const _0x3dd840=_0x2060fb[_0x1288b2(0x134)](_0x44f652,0x1);throw new Error(_0x2060fb['ZQJfk'](_0x5ea09a['message']+'\x0a','\x20\x20File:\x20line\x20'+_0x3dd840+'\x0a')+(_0x1288b2(0x167)+_0x1c4805[_0x1288b2(0x15b)]()));}let _0x56fc0a;if(_0x2060fb[_0x1288b2(0x155)](_0xb52114,_0x1288b2(0x170))){const _0x474f6f=_0x1c4805[_0x1288b2(0x135)](/^(\s*\/)(copy|include) /i),_0x399bd9=_0x474f6f[0x1],_0x43624d=_0x474f6f[0x2],_0x4220c3=_0x1c4805[_0x1288b2(0x165)](_0x2060fb[_0x1288b2(0x134)](_0x474f6f[0x0][_0x1288b2(0x146)],_0x536910[_0x1288b2(0x154)]['length']));_0x56fc0a=''+_0x399bd9+_0x43624d+'\x20'+_0x13b75b+_0x4220c3;}else{const _0x65425d=_0x1c4805[_0x1288b2(0x165)](0x0,0x6),_0x32072c=_0x1c4805['substring'](0x7)[_0x1288b2(0x135)](/^(copy|include) /i),_0x5a0a3e=_0x32072c[0x1],_0x1604e6=0x7+_0x32072c[0x0][_0x1288b2(0x146)],_0x26895d=_0x1c4805[_0x1288b2(0x165)](_0x1604e6+_0x536910['operand'][_0x1288b2(0x146)]);_0x56fc0a=_0x65425d+'/'+_0x5a0a3e+'\x20'+_0x13b75b+_0x26895d;}_0x51664b[_0x1288b2(0x157)](_0x56fc0a),_0x38e0ad=!![];}return{'content':_0x51664b[_0x1288b2(0x168)]('\x0a'),'modified':_0x38e0ad};}export function preprocessFile(_0x1aee3f,_0x10461f){const _0x5c3b1f=_0x5107,_0x432a25={'DLaVx':function(_0x29d638,_0x178b01,_0x303611){return _0x29d638(_0x178b01,_0x303611);}};if(!/\.(rpgle|sqlrpgle)$/i[_0x5c3b1f(0x160)](_0x1aee3f)){const _0x4ae50e={};return _0x4ae50e[_0x5c3b1f(0x12d)]=![],_0x4ae50e;}const _0x1d161c=_0x432a25['DLaVx'](readFileSync,_0x1aee3f,_0x5c3b1f(0x15f));try{return preprocessFileContent(_0x1d161c,_0x10461f);}catch(_0x291e8b){const _0x108ec6=_0x291e8b[_0x5c3b1f(0x144)][_0x5c3b1f(0x161)](/^(.*\n {2})File: /,_0x5c3b1f(0x12a)+_0x1aee3f+',\x20');throw new Error(_0x108ec6);}}export function preprocessFiles(_0xc2869b,_0x1c2f9c,_0x4d572d){const _0x61fff=_0x5107,_0x1f3c53={'ZuGGq':function(_0x194cb0,_0x4b2472,_0x4e3206){return _0x194cb0(_0x4b2472,_0x4e3206);},'yiajT':function(_0x4b39e5){return _0x4b39e5();},'dQbBr':function(_0x1eb222,_0x15b90c,_0x2f22f3){return _0x1eb222(_0x15b90c,_0x2f22f3);},'uKeSS':function(_0x5c0e4b,_0x3f8c8c){return _0x5c0e4b(_0x3f8c8c);}},_0x5bf827=[];let _0x37d1da=![];for(const _0x16b6b0 of _0xc2869b){const _0x335b7a=_0x1f3c53[_0x61fff(0x149)](join,_0x1c2f9c,_0x16b6b0),_0x2a3c7b=preprocessFile(_0x335b7a,_0x1c2f9c),_0x47b94e={'filePath':_0x16b6b0,..._0x2a3c7b};_0x5bf827[_0x61fff(0x157)](_0x47b94e);if(_0x2a3c7b[_0x61fff(0x12d)])_0x37d1da=!![];}if(!_0x37d1da){const _0x1ba1e4={};return _0x1ba1e4['needed']=![],_0x1ba1e4['sourceRoot']='.',_0x1ba1e4;}const _0x5b2d6f=_0x4d572d+'-'+_0x1f3c53[_0x61fff(0x152)](randomUUID);for(let _0x502719=0x0;_0x502719<_0xc2869b[_0x61fff(0x146)];_0x502719++){const _0xc7419d=_0xc2869b[_0x502719],_0x304946=_0x5bf827[_0x502719],_0x3c4002=_0x1f3c53[_0x61fff(0x13b)](join,_0x5b2d6f,_0xc7419d),_0x2fc1c2={};_0x2fc1c2[_0x61fff(0x12e)]=!![],_0x1f3c53[_0x61fff(0x149)](mkdirSync,_0x1f3c53['uKeSS'](dirname,_0x3c4002),_0x2fc1c2),_0x304946[_0x61fff(0x12d)]?writeFileSync(_0x3c4002,_0x304946[_0x61fff(0x12f)]):_0x1f3c53[_0x61fff(0x149)](copyFileSync,join(_0x1c2f9c,_0xc7419d),_0x3c4002);}const _0x392f47={};return _0x392f47[_0x61fff(0x13a)]=!![],_0x392f47['sourceRoot']=_0x5b2d6f,_0x392f47;}
1
+ (function(_0x586783,_0x527fec){const _0xa08ebe=_0x470a,_0x439ca0=_0x586783();while(!![]){try{const _0x18ca21=parseInt(_0xa08ebe(0xaf))/0x1*(parseInt(_0xa08ebe(0x9b))/0x2)+-parseInt(_0xa08ebe(0x97))/0x3*(-parseInt(_0xa08ebe(0x7d))/0x4)+parseInt(_0xa08ebe(0xb5))/0x5*(-parseInt(_0xa08ebe(0xb6))/0x6)+parseInt(_0xa08ebe(0xa3))/0x7+parseInt(_0xa08ebe(0x8a))/0x8+parseInt(_0xa08ebe(0x8c))/0x9+-parseInt(_0xa08ebe(0x77))/0xa*(parseInt(_0xa08ebe(0x81))/0xb);if(_0x18ca21===_0x527fec)break;else _0x439ca0['push'](_0x439ca0['shift']());}catch(_0x4db8c5){_0x439ca0['push'](_0x439ca0['shift']());}}}(_0xbd47,0x89a40));import{readFileSync,writeFileSync,mkdirSync,copyFileSync,readdirSync}from'fs';import{dirname,join}from'path';import{randomUUID}from'crypto';export function detectFormat(_0x22b577){const _0x3a8a00=_0x470a;if(/^\*\*free$/i[_0x3a8a00(0x9f)](_0x22b577[_0x3a8a00(0x85)]()))return _0x3a8a00(0x99);return _0x3a8a00(0xb4);}export function extractDirective(_0x333324,_0x331196){const _0x1cdf73=_0x470a,_0x576a29={};_0x576a29['AwpWp']=function(_0xe1ffa,_0x52976a){return _0xe1ffa<_0x52976a;},_0x576a29[_0x1cdf73(0xab)]=function(_0x27221e,_0x54ff0b){return _0x27221e-_0x54ff0b;},_0x576a29[_0x1cdf73(0xa6)]=function(_0x23df91,_0x5394c2){return _0x23df91===_0x5394c2;},_0x576a29['jLKWX']=function(_0x1e2d52,_0x15c909){return _0x1e2d52===_0x15c909;};const _0xdb9175=_0x576a29;let _0x2a0bae,_0x3612cc;if(_0x331196===_0x1cdf73(0x99)){const _0x7225d4=_0x333324[_0x1cdf73(0xad)](/^\s*\/(copy|include) (\S)/i);if(!_0x7225d4)return null;const _0xd9d903=_0x333324[_0x1cdf73(0x87)]();if(_0xd9d903['startsWith']('//'))return null;_0x2a0bae=_0x7225d4[0x1]['toLowerCase'](),_0x3612cc=_0x333324[_0x1cdf73(0x91)](_0x7225d4[_0x1cdf73(0xa2)]+_0x7225d4[0x0][_0x1cdf73(0xb9)]-0x1);}else{if(_0xdb9175[_0x1cdf73(0xac)](_0x333324['length'],0x7))return null;if(_0x333324[0x6]!=='/')return null;const _0xd51e41=_0x333324[_0x1cdf73(0x91)](0x7),_0x44ed65=_0xd51e41[_0x1cdf73(0xad)](/^(copy|include) (\S)/i);if(!_0x44ed65)return null;_0x2a0bae=_0x44ed65[0x1][_0x1cdf73(0x98)](),_0x3612cc=_0xd51e41['substring'](_0xdb9175[_0x1cdf73(0xab)](_0x44ed65[0x0][_0x1cdf73(0xb9)],0x1));}let _0xe042a4;if(_0x3612cc['startsWith']('\x27')){const _0x455a95=_0x3612cc[_0x1cdf73(0x9a)]('\x27',0x1);_0xe042a4=_0xdb9175[_0x1cdf73(0xa6)](_0x455a95,-0x1)?_0x3612cc['trim']():_0x3612cc['substring'](0x0,_0x455a95+0x1);}else{if(_0x3612cc[_0x1cdf73(0x8d)]('\x22')){const _0x5d9451=_0x3612cc['indexOf']('\x22',0x1);_0xe042a4=_0xdb9175[_0x1cdf73(0x75)](_0x5d9451,-0x1)?_0x3612cc['trim']():_0x3612cc[_0x1cdf73(0x91)](0x0,_0x5d9451+0x1);}else _0xe042a4=_0x3612cc[_0x1cdf73(0xa9)](/\s/)[0x0];}const _0x72683e={};return _0x72683e['keyword']=_0x2a0bae,_0x72683e[_0x1cdf73(0x79)]=_0xe042a4,_0x72683e;}export function classifyDirectiveOperand(_0xb724e9){const _0x1c7991=_0x470a,_0x36c902={};_0x36c902['PBPJV']=function(_0x4fce4a,_0x3cacb0){return _0x4fce4a!==_0x3cacb0;},_0x36c902[_0x1c7991(0xa1)]=_0x1c7991(0x7f),_0x36c902[_0x1c7991(0xb8)]=_0x1c7991(0xae);const _0x529eb8=_0x36c902;if(_0xb724e9['startsWith']('\x27')||_0xb724e9[_0x1c7991(0x8d)]('\x22')){const _0x557edd={};return _0x557edd['type']='ifs',_0x557edd;}if(_0xb724e9['includes'](',')){const _0x50ba0c=_0xb724e9[_0x1c7991(0x9a)](','),_0x530e4a=_0xb724e9[_0x1c7991(0x91)](0x0,_0x50ba0c),_0x440e22=_0xb724e9[_0x1c7991(0x91)](_0x50ba0c+0x1),_0x3f3982=_0x530e4a[_0x1c7991(0x9a)]('/');if(_0x529eb8[_0x1c7991(0xa7)](_0x3f3982,-0x1)){const _0xb25685=_0x530e4a[_0x1c7991(0x91)](0x0,_0x3f3982),_0x1352a6=/^\*libl$/i['test'](_0xb25685)?null:_0xb25685;return{'type':_0x529eb8[_0x1c7991(0xa1)],'library':_0x1352a6,'fileName':_0x530e4a[_0x1c7991(0x91)](_0x3f3982+0x1),'memberName':_0x440e22};}const _0x23b4d4={};return _0x23b4d4['type']=_0x1c7991(0x7f),_0x23b4d4[_0x1c7991(0x92)]=null,_0x23b4d4[_0x1c7991(0x8f)]=_0x530e4a,_0x23b4d4[_0x1c7991(0x84)]=_0x440e22,_0x23b4d4;}if(_0xb724e9['includes']('/')){const _0x21e5ee={};return _0x21e5ee[_0x1c7991(0xa0)]=_0x529eb8[_0x1c7991(0xb8)],_0x21e5ee;}if(/\.rpgle$/i[_0x1c7991(0x9f)](_0xb724e9)||/\.sqlrpgle$/i['test'](_0xb724e9)){const _0x1f0083={};return _0x1f0083[_0x1c7991(0xa0)]=_0x1c7991(0xae),_0x1f0083;}const _0x30d509={};return _0x30d509[_0x1c7991(0xa0)]=_0x1c7991(0x7f),_0x30d509[_0x1c7991(0x92)]=null,_0x30d509[_0x1c7991(0x8f)]=null,_0x30d509['memberName']=_0xb724e9,_0x30d509;}function findFileInsensitive(_0x48c5ac,_0x5c70e1){const _0x4e4d01=_0x470a;let _0x10549b;try{_0x10549b=readdirSync(_0x48c5ac);}catch{return null;}if(_0x10549b['includes'](_0x5c70e1))return _0x5c70e1;const _0x4a36d4=_0x5c70e1[_0x4e4d01(0x98)]();return _0x10549b[_0x4e4d01(0x8e)](_0x5b4f87=>_0x5b4f87[_0x4e4d01(0x98)]()===_0x4a36d4)||null;}function findDirInsensitive(_0x273136,_0x1f46c9){const _0x49f4e9=_0x470a,_0x195127={'rhNoD':function(_0x2d1f04,_0x524dad){return _0x2d1f04(_0x524dad);}};let _0x2bf6cb;try{_0x2bf6cb=_0x195127[_0x49f4e9(0x7e)](readdirSync,_0x273136);}catch{return null;}if(_0x2bf6cb[_0x49f4e9(0x83)](_0x1f46c9))return _0x1f46c9;const _0x3718d2=_0x1f46c9[_0x49f4e9(0x98)]();return _0x2bf6cb[_0x49f4e9(0x8e)](_0x3f01c6=>_0x3f01c6[_0x49f4e9(0x98)]()===_0x3718d2)||null;}export function resolveSourceMember(_0x1fc3d9,_0x3feb2e){const _0x327a41=_0x470a,_0x213c75={'epSAb':_0x327a41(0x88),'UYxNh':function(_0x483341,_0x315417,_0x32cf4a){return _0x483341(_0x315417,_0x32cf4a);},'GGfSE':'.rpgle','PUEcK':_0x327a41(0x95),'VtZWu':function(_0x2c820c,_0x617cd2){return _0x2c820c+_0x617cd2;}},{library:_0x58d304,fileName:_0x554bda,memberName:_0x2f1336}=_0x1fc3d9;let _0x477048;if(_0x554bda===null)_0x477048=_0x213c75[_0x327a41(0xb1)];else _0x58d304!==null?_0x477048=_0x58d304+'/'+_0x554bda:_0x477048=_0x554bda;const _0x3447e3=_0x477048[_0x327a41(0xa9)]('/');let _0x484054=_0x3feb2e;const _0x3745a6=[];for(const _0x4d6a16 of _0x3447e3){const _0x2d349f=findDirInsensitive(_0x484054,_0x4d6a16);if(!_0x2d349f)throw new Error(_0x327a41(0xb0)+_0x477048+_0x327a41(0x93)+_0x4d6a16+_0x327a41(0x82)+_0x484054+'\x27)');_0x3745a6[_0x327a41(0x78)](_0x2d349f),_0x484054=_0x213c75[_0x327a41(0x80)](join,_0x484054,_0x2d349f);}const _0x27fb4e=_0x3745a6[_0x327a41(0x9e)]('/'),_0x4a643b=[_0x213c75['GGfSE'],_0x213c75[_0x327a41(0x9c)]];for(const _0xd1c272 of _0x4a643b){const _0x5acb8d=_0x213c75[_0x327a41(0x89)](_0x2f1336,_0xd1c272),_0x46260d=_0x213c75[_0x327a41(0x80)](findFileInsensitive,join(_0x3feb2e,_0x27fb4e),_0x5acb8d);if(_0x46260d)return _0x27fb4e+'/'+_0x46260d;}throw new Error(_0x327a41(0x7a)+_0x2f1336+_0x327a41(0x94)+_0x27fb4e+'/\x20(tried\x20.rpgle,\x20.sqlrpgle)');}export function preprocessFileContent(_0x76d85d,_0x441f15){const _0x50440f=_0x470a,_0x57d688={'kQwdP':function(_0x2c843a,_0x2f49f5){return _0x2c843a(_0x2f49f5);},'rUjSa':function(_0xc6ed1,_0xa39ac8,_0x27e288){return _0xc6ed1(_0xa39ac8,_0x27e288);},'gScPa':function(_0x5d8ed1,_0x46b3e2){return _0x5d8ed1===_0x46b3e2;},'WWhjA':_0x50440f(0xae),'JTPIG':function(_0x1bf130,_0x4c3cdc){return _0x1bf130+_0x4c3cdc;},'IhhNU':_0x50440f(0x99),'oKwKk':function(_0x1f332d,_0x263e07){return _0x1f332d+_0x263e07;}},_0x5eef50=_0x76d85d[_0x50440f(0xa9)]('\x0a'),_0x30ba26={};_0x30ba26[_0x50440f(0x72)]=_0x76d85d,_0x30ba26[_0x50440f(0x90)]=![];if(_0x5eef50[_0x50440f(0xb9)]===0x0)return _0x30ba26;const _0x53acb7=_0x57d688[_0x50440f(0xaa)](detectFormat,_0x5eef50[0x0]);let _0x39eb4a=![];const _0xfd8723=[];for(let _0x3ee427=0x0;_0x3ee427<_0x5eef50['length'];_0x3ee427++){const _0x3141aa=_0x5eef50[_0x3ee427],_0x4ee649=_0x57d688[_0x50440f(0x7c)](extractDirective,_0x3141aa,_0x53acb7);if(!_0x4ee649){_0xfd8723[_0x50440f(0x78)](_0x3141aa);continue;}const _0x791da1=classifyDirectiveOperand(_0x4ee649[_0x50440f(0x79)]);if(_0x57d688[_0x50440f(0x76)](_0x791da1[_0x50440f(0xa0)],_0x57d688[_0x50440f(0xb2)])){_0xfd8723['push'](_0x3141aa);continue;}let _0x4e157a;try{_0x4e157a=resolveSourceMember(_0x791da1,_0x441f15);}catch(_0x5b7855){const _0xaab838=_0x3ee427+0x1;throw new Error(_0x57d688['JTPIG'](_0x5b7855[_0x50440f(0xb7)]+'\x0a'+(_0x50440f(0x86)+_0xaab838+'\x0a'),_0x50440f(0xa5)+_0x3141aa[_0x50440f(0x87)]()));}let _0x483478;if(_0x57d688[_0x50440f(0x76)](_0x53acb7,_0x57d688[_0x50440f(0xa4)])){const _0x40f6b1=_0x3141aa[_0x50440f(0xad)](/^(\s*\/)(copy|include) /i),_0x5aeede=_0x40f6b1[0x1],_0xaf1ec6=_0x40f6b1[0x2],_0x38bf81=_0x3141aa[_0x50440f(0x91)](_0x57d688[_0x50440f(0x9d)](_0x40f6b1[0x0]['length'],_0x4ee649[_0x50440f(0x79)]['length']));_0x483478=''+_0x5aeede+_0xaf1ec6+'\x20'+_0x4e157a+_0x38bf81;}else{const _0x13768a=_0x3141aa[_0x50440f(0x91)](0x0,0x6),_0x30e3b4=_0x3141aa[_0x50440f(0x91)](0x7)['match'](/^(copy|include) /i),_0x39c874=_0x30e3b4[0x1],_0x1e20ea=0x7+_0x30e3b4[0x0][_0x50440f(0xb9)],_0x2c243a=_0x3141aa['substring'](_0x1e20ea+_0x4ee649[_0x50440f(0x79)][_0x50440f(0xb9)]);_0x483478=_0x13768a+'/'+_0x39c874+'\x20'+_0x4e157a+_0x2c243a;}_0xfd8723['push'](_0x483478),_0x39eb4a=!![];}return{'content':_0xfd8723['join']('\x0a'),'modified':_0x39eb4a};}function _0x470a(_0x44d37e,_0x2da141){_0x44d37e=_0x44d37e-0x72;const _0xbd478f=_0xbd47();let _0x470a1b=_0xbd478f[_0x44d37e];if(_0x470a['eMEdEG']===undefined){var _0x3e101f=function(_0x244dd8){const _0x210d86='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5b33fb='',_0x1c48d8='';for(let _0x30d5fd=0x0,_0x2d1546,_0x95abea,_0x40bb2e=0x0;_0x95abea=_0x244dd8['charAt'](_0x40bb2e++);~_0x95abea&&(_0x2d1546=_0x30d5fd%0x4?_0x2d1546*0x40+_0x95abea:_0x95abea,_0x30d5fd++%0x4)?_0x5b33fb+=String['fromCharCode'](0xff&_0x2d1546>>(-0x2*_0x30d5fd&0x6)):0x0){_0x95abea=_0x210d86['indexOf'](_0x95abea);}for(let _0x493458=0x0,_0x58da4a=_0x5b33fb['length'];_0x493458<_0x58da4a;_0x493458++){_0x1c48d8+='%'+('00'+_0x5b33fb['charCodeAt'](_0x493458)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1c48d8);};_0x470a['XcBgpd']=_0x3e101f,_0x470a['FxPyqv']={},_0x470a['eMEdEG']=!![];}const _0x372471=_0xbd478f[0x0],_0xf0ce54=_0x44d37e+_0x372471,_0x550467=_0x470a['FxPyqv'][_0xf0ce54];return!_0x550467?(_0x470a1b=_0x470a['XcBgpd'](_0x470a1b),_0x470a['FxPyqv'][_0xf0ce54]=_0x470a1b):_0x470a1b=_0x550467,_0x470a1b;}function _0xbd47(){const _0x5c1819=['BgLICMfYEq','icHSB29RAw5NigzVCIaN','igLUia','lNnXBhjWz2XL','BMvLzgvK','m3vpzuTMDW','Dg9mB3DLCKnHC2u','zNjLzq','Aw5KzxHpzG','mZyYs0DtwLr4','ufvfy0S','B0T3s2S','AM9PBG','DgvZDa','DhLWzq','qxL3uxi','Aw5KzxG','nJCYntGXn1bNz0HAqG','swHOtLu','icbeAxjLy3rPDMu6ia','sgXMyNm','uejqsLy','Ee9LC1K','C3bSAxq','A1f3zfa','svjYCgO','qxDWv3a','Bwf0y2G','AwzZ','mJu2nePHwxrcwq','rgLYzwn0B3j5ig5VDcbMB3vUzdOG','zxbtqwi','v1DOAKe','EePesgi','zML4zwq','mtG1AurRA2j1','mtq1mtiYruX6BfnZ','BwvZC2fNzq','v0LYwvy','BgvUz3rO','y29UDgvUDa','t0PVt0S','qMnwqwO','AKXlv1G','z1nJuge','mZbvqxPftgG','ChvZAa','B3bLCMfUza','u291CMnLig1LBwjLCIbUB3qGzM91BMq6ia','C291CMnLuM9VDa','CLvQu2e','mZGZmdmYnhDhqu1qyW','CMHoB0q','BwvTyMvY','vvL4tMG','nJy2nZe2nKvQv09eEq','jYbPBIaN','Aw5JBhvKzxm','BwvTyMvYtMfTzq','DhjPBuvUza','icbgAwXLoIbSAw5Lia','DhjPBvn0yxj0','CxjWz2XLC3jJ','vNrAv3u','mtu0mJK2ohr5Cfb1yW','jdfgAwXLoIa','nJmXndGXnfDOy1LlBq','C3rHCNrZv2L0Aa','zMLUza','zMLSzu5HBwu','Bw9KAwzPzwq','C3vIC3rYAw5N'];_0xbd47=function(){return _0x5c1819;};return _0xbd47();}export function preprocessFile(_0x477e89,_0x509a97){const _0x479bea=_0x470a;if(!/\.(rpgle|sqlrpgle)$/i[_0x479bea(0x9f)](_0x477e89)){const _0x44606a={};return _0x44606a[_0x479bea(0x90)]=![],_0x44606a;}const _0x2e055c=readFileSync(_0x477e89,'utf8');try{return preprocessFileContent(_0x2e055c,_0x509a97);}catch(_0x537e91){const _0x189c81=_0x537e91[_0x479bea(0xb7)]['replace'](/^(.*\n {2})File: /,_0x479bea(0x8b)+_0x477e89+',\x20');throw new Error(_0x189c81);}}export function preprocessFiles(_0x20719b,_0x100ff8,_0x4f04bd){const _0x56147f=_0x470a,_0xbd1a44={'OJoOK':function(_0x525b4d,_0x280502,_0x15c55b){return _0x525b4d(_0x280502,_0x15c55b);},'xOesY':function(_0xab9f69){return _0xab9f69();},'BcVAj':function(_0x2fc1f7,_0x15801d){return _0x2fc1f7<_0x15801d;},'xJDHb':function(_0x205345,_0x3d8261,_0x518453){return _0x205345(_0x3d8261,_0x518453);}},_0x1409d4=[];let _0x5d8257=![];for(const _0x3aa8eb of _0x20719b){const _0x2f42e1=_0xbd1a44[_0x56147f(0x73)](join,_0x100ff8,_0x3aa8eb),_0x5071f1=_0xbd1a44[_0x56147f(0x73)](preprocessFile,_0x2f42e1,_0x100ff8),_0x15c947={'filePath':_0x3aa8eb,..._0x5071f1};_0x1409d4[_0x56147f(0x78)](_0x15c947);if(_0x5071f1['modified'])_0x5d8257=!![];}if(!_0x5d8257){const _0x5d0f96={};return _0x5d0f96[_0x56147f(0x96)]=![],_0x5d0f96[_0x56147f(0x7b)]='.',_0x5d0f96;}const _0x41421f=_0x4f04bd+'-'+_0xbd1a44[_0x56147f(0xa8)](randomUUID);for(let _0x459350=0x0;_0xbd1a44[_0x56147f(0x74)](_0x459350,_0x20719b[_0x56147f(0xb9)]);_0x459350++){const _0x321ad9=_0x20719b[_0x459350],_0xad59f8=_0x1409d4[_0x459350],_0x2e0748=_0xbd1a44[_0x56147f(0x73)](join,_0x41421f,_0x321ad9),_0x5648c9={};_0x5648c9['recursive']=!![],mkdirSync(dirname(_0x2e0748),_0x5648c9),_0xad59f8['modified']?writeFileSync(_0x2e0748,_0xad59f8[_0x56147f(0x72)]):_0xbd1a44[_0x56147f(0xb3)](copyFileSync,join(_0x100ff8,_0x321ad9),_0x2e0748);}const _0x1c578f={};return _0x1c578f[_0x56147f(0x96)]=!![],_0x1c578f[_0x56147f(0x7b)]=_0x41421f,_0x1c578f;}
package/dist/lib/ssh.js CHANGED
@@ -1 +1 @@
1
- (function(_0x55d0b3,_0x3c0c86){const _0x4431a9=_0x59c1,_0x230194=_0x55d0b3();while(!![]){try{const _0x125c06=parseInt(_0x4431a9(0x172))/0x1+-parseInt(_0x4431a9(0x169))/0x2+parseInt(_0x4431a9(0x173))/0x3*(-parseInt(_0x4431a9(0x175))/0x4)+parseInt(_0x4431a9(0x170))/0x5+parseInt(_0x4431a9(0x160))/0x6*(-parseInt(_0x4431a9(0x17a))/0x7)+parseInt(_0x4431a9(0x176))/0x8*(-parseInt(_0x4431a9(0x162))/0x9)+-parseInt(_0x4431a9(0x179))/0xa*(-parseInt(_0x4431a9(0x174))/0xb);if(_0x125c06===_0x3c0c86)break;else _0x230194['push'](_0x230194['shift']());}catch(_0x190b7e){_0x230194['push'](_0x230194['shift']());}}}(_0x314f,0x6ce0b));import{spawn}from'child_process';function _0x59c1(_0x3e07cf,_0xb64b38){_0x3e07cf=_0x3e07cf-0x155;const _0x314f33=_0x314f();let _0x59c136=_0x314f33[_0x3e07cf];if(_0x59c1['vxfrbT']===undefined){var _0x5166ba=function(_0x2c8698){const _0xc0bb4='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x582f99='',_0x291eee='';for(let _0x41c21=0x0,_0x6ac4da,_0x38ce2d,_0x51316f=0x0;_0x38ce2d=_0x2c8698['charAt'](_0x51316f++);~_0x38ce2d&&(_0x6ac4da=_0x41c21%0x4?_0x6ac4da*0x40+_0x38ce2d:_0x38ce2d,_0x41c21++%0x4)?_0x582f99+=String['fromCharCode'](0xff&_0x6ac4da>>(-0x2*_0x41c21&0x6)):0x0){_0x38ce2d=_0xc0bb4['indexOf'](_0x38ce2d);}for(let _0x343fd0=0x0,_0x58b60a=_0x582f99['length'];_0x343fd0<_0x58b60a;_0x343fd0++){_0x291eee+='%'+('00'+_0x582f99['charCodeAt'](_0x343fd0)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x291eee);};_0x59c1['kzIimL']=_0x5166ba,_0x59c1['crBzZC']={},_0x59c1['vxfrbT']=!![];}const _0x4ceea3=_0x314f33[0x0],_0x1d4208=_0x3e07cf+_0x4ceea3,_0x272ef8=_0x59c1['crBzZC'][_0x1d4208];return!_0x272ef8?(_0x59c136=_0x59c1['kzIimL'](_0x59c136),_0x59c1['crBzZC'][_0x1d4208]=_0x59c136):_0x59c136=_0x272ef8,_0x59c136;}import{readdirSync}from'fs';async function waitForSSHSocket(_0x489f13,_0x301e99,_0x4a9100=0x3a98){const _0x32ad6e={'vxVDG':function(_0x4a8d09,_0x105f93){return _0x4a8d09>=_0x105f93;},'pSQBL':function(_0x4e7f0a,_0x197176){return _0x4e7f0a(_0x197176);}};return new Promise((_0x81ad0f,_0x29fea9)=>{const _0x2cad3=_0x59c1,_0xba3d19={'IOmuP':function(_0x4af4e7,_0x248ef1){return _0x4af4e7(_0x248ef1);},'kUOdF':function(_0x2ffc85,_0x1a535b){const _0x42ba2a=_0x59c1;return _0x32ad6e[_0x42ba2a(0x180)](_0x2ffc85,_0x1a535b);},'TiVYu':function(_0x233671,_0x24970e){return _0x233671-_0x24970e;},'wJzEY':function(_0xa554f1,_0x2c6d45){const _0x5b1226=_0x59c1;return _0x32ad6e[_0x5b1226(0x182)](_0xa554f1,_0x2c6d45);}};let _0x3ef65c=![],_0x2d4e6e=null;_0x301e99['on'](_0x2cad3(0x165),_0x8d06df=>{const _0x566b02=_0x2cad3;_0x2d4e6e=_0x8d06df,!_0x3ef65c&&_0x8d06df!==0x0&&(_0x3ef65c=!![],_0xba3d19[_0x566b02(0x17d)](_0x29fea9,new Error(_0x566b02(0x163)+_0x8d06df)));});const _0x16fb3e=Date[_0x2cad3(0x168)](),_0x36c644=()=>{const _0x4abbb0=_0x2cad3;if(_0x3ef65c)return;const _0x2daeff=_0xba3d19['IOmuP'](readdirSync,_0x489f13);if(_0x2daeff[_0x4abbb0(0x16d)](_0x4b65a4=>_0x4b65a4[_0x4abbb0(0x16a)](_0x4abbb0(0x15b)))){_0x3ef65c=!![],_0x81ad0f();return;}if(_0xba3d19['kUOdF'](_0xba3d19[_0x4abbb0(0x164)](Date[_0x4abbb0(0x168)](),_0x16fb3e),_0x4a9100)){_0x3ef65c=!![];const _0x57464c=_0x2d4e6e!==null?_0x4abbb0(0x16e)+_0x2d4e6e+')':'';_0xba3d19[_0x4abbb0(0x158)](_0x29fea9,new Error(_0x4abbb0(0x181)+_0x4a9100+'ms'+_0x57464c));return;}setTimeout(_0x36c644,0x64);};_0x36c644();});}export async function establishSSHMaster(_0x266b71,_0x496fd3={}){const _0x8ccfe=_0x59c1,_0x43b669={'paCjQ':_0x8ccfe(0x167),'fEBmz':function(_0x2e66ce,_0x161593){return _0x2e66ce(_0x161593);},'WjVdE':_0x8ccfe(0x15d),'cFqnx':_0x8ccfe(0x161),'dKCtD':_0x8ccfe(0x16b),'lazMI':_0x8ccfe(0x15a),'baWnF':'ServerAliveInterval=60','eNRvZ':'ServerAliveCountMax=3','MiOWZ':function(_0x2ee622,_0x55aa17,_0x4eb825,_0x536ca3){return _0x2ee622(_0x55aa17,_0x4eb825,_0x536ca3);},'BUsEQ':_0x8ccfe(0x15e),'sYVeh':function(_0x316e21,_0x3db497,_0x1160f8,_0x319981){return _0x316e21(_0x3db497,_0x1160f8,_0x319981);}},{host:_0x2ba1b6,user:_0x240601,sshKey:_0x4c6d83,debug:debug=![],debugPrefix:debugPrefix=_0x43b669[_0x8ccfe(0x16c)]}=_0x496fd3;if(!_0x2ba1b6||!_0x240601)return;const _0x267177=_0x43b669[_0x8ccfe(0x17e)](readdirSync,_0x266b71);if(_0x267177['some'](_0x26a024=>_0x26a024[_0x8ccfe(0x16a)](_0x8ccfe(0x15b)))){if(debug)console[_0x8ccfe(0x15c)](debugPrefix+_0x8ccfe(0x17b));return;}if(debug)console[_0x8ccfe(0x15c)](debugPrefix+_0x8ccfe(0x171));const _0x458346=['-o',_0x43b669[_0x8ccfe(0x17c)],'-o',_0x8ccfe(0x166)+_0x266b71+'/ssh-%C','-o',_0x43b669[_0x8ccfe(0x177)],'-o',_0x43b669[_0x8ccfe(0x178)],'-o',_0x43b669['lazMI'],'-o',_0x43b669[_0x8ccfe(0x157)],'-o',_0x43b669[_0x8ccfe(0x17f)],'-N','-f'];_0x4c6d83&&_0x458346[_0x8ccfe(0x156)]('-i',_0x4c6d83);_0x458346['push'](_0x240601+'@'+_0x2ba1b6);const _0x4fec67=_0x43b669['MiOWZ'](spawn,_0x8ccfe(0x159),_0x458346,{'detached':!![],'stdio':_0x43b669[_0x8ccfe(0x15f)]});_0x4fec67[_0x8ccfe(0x155)](),await _0x43b669[_0x8ccfe(0x16f)](waitForSSHSocket,_0x266b71,_0x4fec67,0x3a98);if(debug)console[_0x8ccfe(0x15c)](debugPrefix+'\x20SSH\x20master\x20established');}function _0x314f(){const _0x42cabc=['C3rHCNrZv2L0Aa','u3rYAwn0sg9ZDeTLEunOzwnRAw5Npw5V','CgfdALe','C29Tzq','icHWCM9JzxnZigv4AxrLzcb3AxrOignVzguG','C1LwzwG','nJa4mZyWzNPRsNHO','ifbYzs1LC3rHyMXPC2HPBMCGu1niig1HC3rLCIbJB25Uzwn0Aw9UlI4U','nJy3nZyZBurVDMPL','otuXtfDIt3Hh','nZDHDfrkAgu','mZaYofLYthfYzG','ndbRBvD4rgK','y0zXBNG','zeTdDeq','mJi1nZKXmeTNqMjgva','mJe3ze9pyw1L','ifntscbTyxn0zxiGywXYzwfKEsbLEgLZDhmSihjLDxnPBMC','v2Pwzeu','su9TDva','zKvcBxO','zu5sDLO','DNHwreC','u1niig1HC3rLCIbKAwqGBM90ihn0yxj0ihDPDgHPBIa','CfnrqKW','Dw5Yzwy','ChvZAa','yMfxBKy','D0P6rvK','C3nO','ugfZC3DVCMrbDxrOzw50AwnHDgLVBJ1UBW','C3nOlq','Bg9N','q29UDhjVBe1HC3rLCJ15zxm','AwDUB3jL','qLvZrve','mtuXmZyYDvL6v1Pe','q29UDhjVBfbLCNnPC3q9mtbT','mtyWmtu0mvHQDLDHqG','u1niig1HC3rLCIbLEgL0zwqGD2L0AcbJB2rLia','vgLwwxu','zxHPDa','q29UDhjVBfbHDgG9','w3nZAf0','BM93','mJq1mtznDMXYt3O'];_0x314f=function(){return _0x42cabc;};return _0x314f();}
1
+ (function(_0x2ee688,_0x5d144a){const _0x828d10=_0x49ce,_0x30aa59=_0x2ee688();while(!![]){try{const _0x49f32c=parseInt(_0x828d10(0x134))/0x1*(-parseInt(_0x828d10(0x149))/0x2)+-parseInt(_0x828d10(0x136))/0x3*(-parseInt(_0x828d10(0x13b))/0x4)+-parseInt(_0x828d10(0x14c))/0x5+-parseInt(_0x828d10(0x150))/0x6*(-parseInt(_0x828d10(0x156))/0x7)+parseInt(_0x828d10(0x13c))/0x8+parseInt(_0x828d10(0x135))/0x9+-parseInt(_0x828d10(0x131))/0xa;if(_0x49f32c===_0x5d144a)break;else _0x30aa59['push'](_0x30aa59['shift']());}catch(_0x57c3e0){_0x30aa59['push'](_0x30aa59['shift']());}}}(_0x4d70,0x18d5e));function _0x49ce(_0x219a8a,_0x332681){_0x219a8a=_0x219a8a-0x12d;const _0x4d707d=_0x4d70();let _0x49ce5d=_0x4d707d[_0x219a8a];if(_0x49ce['TITuoh']===undefined){var _0x1a486f=function(_0x1c8fe7){const _0x3e9026='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2a8611='',_0x1923fc='';for(let _0x1669d0=0x0,_0x39debd,_0x9c81e9,_0x1035f8=0x0;_0x9c81e9=_0x1c8fe7['charAt'](_0x1035f8++);~_0x9c81e9&&(_0x39debd=_0x1669d0%0x4?_0x39debd*0x40+_0x9c81e9:_0x9c81e9,_0x1669d0++%0x4)?_0x2a8611+=String['fromCharCode'](0xff&_0x39debd>>(-0x2*_0x1669d0&0x6)):0x0){_0x9c81e9=_0x3e9026['indexOf'](_0x9c81e9);}for(let _0x1bbc3a=0x0,_0x5a8e81=_0x2a8611['length'];_0x1bbc3a<_0x5a8e81;_0x1bbc3a++){_0x1923fc+='%'+('00'+_0x2a8611['charCodeAt'](_0x1bbc3a)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1923fc);};_0x49ce['NhNKLO']=_0x1a486f,_0x49ce['yCBTKv']={},_0x49ce['TITuoh']=!![];}const _0x4bc37b=_0x4d707d[0x0],_0x8b225d=_0x219a8a+_0x4bc37b,_0x384893=_0x49ce['yCBTKv'][_0x8b225d];return!_0x384893?(_0x49ce5d=_0x49ce['NhNKLO'](_0x49ce5d),_0x49ce['yCBTKv'][_0x8b225d]=_0x49ce5d):_0x49ce5d=_0x384893,_0x49ce5d;}function _0x4d70(){const _0x373ac2=['nhbcDfbYAG','ifbYzs1LC3rHyMXPC2HPBMCGu1niig1HC3rLCIbJB25Uzwn0Aw9UlI4U','BM93','otqZmteWtujYD0Dr','ugfZC3DVCMrbDxrOzw50AwnHDgLVBJ1UBW','zxHPDa','BxfMzKm','mtjOEg9fwve','wuLKCuK','q29UDhjVBfbHDgG9','C3rHCNrZv2L0Aa','ifntscbTyxn0zxiGywXYzwfKEsbLEgLZDhmSihjLDxnPBMC','u1niig1HC3rLCIbKAwqGBM90ihn0yxj0ihDPDgHPBIa','mtuZmJC5CxretLnL','AwDUB3jL','ChvZAa','CgT5D0G','l3nZAc0LqW','mte3mZy2me5tDLPQta','C29Tzq','C3nO','mJqZmMnPAMLVrq','mta2nJK2oe1eEKrXtW','mtm4mZG3qNfpAKnZ','icHWCM9JzxnZigv4AxrLzcb3AxrOignVzguG','wfDZzLO','Dw5Yzwy','ifntscbTyxn0zxiGzxn0ywjSAxnOzwq','mtj5vg1VtvK','odK0nZyWz2XXtvfT','Bg9N','u1niig1HC3rLCIbLEgL0zwqGD2L0AcbJB2rLia','C3nOlq','wwfqDxe','tfLnuvu','CevzqwS','y1HOCwy','s2DnyKS','r0nyCLu','w3nZAf0','rvfPB0e','u3rYAwn0sg9ZDeTLEunOzwnRAw5Npw5V'];_0x4d70=function(){return _0x373ac2;};return _0x4d70();}import{spawn}from'child_process';import{readdirSync}from'fs';async function waitForSSHSocket(_0x40375d,_0xf71487,_0x57a7c5=0x3a98){const _0x35be00={'XWsfZ':function(_0x466d4e,_0x2e9d47){return _0x466d4e>=_0x2e9d47;},'LYMQU':function(_0x5d5c3f){return _0x5d5c3f();}};return new Promise((_0x34df07,_0x5e8926)=>{const _0x2524c2=_0x49ce,_0x417f50={'pEYAk':function(_0x1dddf6,_0x30853f){return _0x1dddf6!==_0x30853f;},'YIdqI':function(_0x91d318,_0x39709f){return _0x91d318(_0x39709f);},'GCXrU':function(_0x3833af,_0x2bcd49){return _0x3833af(_0x2bcd49);},'pkywH':function(_0x3370aa,_0x190614){const _0x275ebf=_0x49ce;return _0x35be00[_0x275ebf(0x138)](_0x3370aa,_0x190614);},'YaPuq':function(_0x170812,_0x456734){return _0x170812-_0x456734;},'HfQIw':function(_0x3e76e8,_0x170a9e){return _0x3e76e8!==_0x170a9e;}};let _0x57a1af=![],_0x2b2e51=null;_0xf71487['on'](_0x2524c2(0x14e),_0x1a5211=>{const _0x846169=_0x2524c2;_0x2b2e51=_0x1a5211,!_0x57a1af&&_0x417f50[_0x846169(0x142)](_0x1a5211,0x0)&&(_0x57a1af=!![],_0x417f50['YIdqI'](_0x5e8926,new Error(_0x846169(0x13e)+_0x1a5211)));});const _0x15589d=Date['now'](),_0x53e51d=()=>{const _0x14b8b1=_0x2524c2;if(_0x57a1af)return;const _0x2ed2ce=_0x417f50[_0x14b8b1(0x145)](readdirSync,_0x40375d);if(_0x2ed2ce[_0x14b8b1(0x132)](_0x4b4665=>_0x4b4665['startsWith']('ssh-'))){_0x57a1af=!![],_0x34df07();return;}if(_0x417f50[_0x14b8b1(0x12f)](_0x417f50[_0x14b8b1(0x140)](Date[_0x14b8b1(0x14b)](),_0x15589d),_0x57a7c5)){_0x57a1af=!![];const _0x164cb2=_0x417f50['HfQIw'](_0x2b2e51,null)?_0x14b8b1(0x137)+_0x2b2e51+')':'';_0x417f50[_0x14b8b1(0x151)](_0x5e8926,new Error(_0x14b8b1(0x155)+_0x57a7c5+'ms'+_0x164cb2));return;}setTimeout(_0x53e51d,0x64);};_0x35be00[_0x2524c2(0x141)](_0x53e51d);});}export async function establishSSHMaster(_0x51bee6,_0x16dc12={}){const _0x5526fd=_0x49ce,_0x3a2795={'cXhqf':_0x5526fd(0x146),'EQioA':_0x5526fd(0x14d),'EyIkV':'ServerAliveInterval=60','nUEMJ':'ServerAliveCountMax=3','mqffC':function(_0xf9e407,_0x2cd41c,_0x195d32,_0x319383){return _0xf9e407(_0x2cd41c,_0x195d32,_0x319383);},'KgMbK':_0x5526fd(0x133),'AylpG':_0x5526fd(0x12d)},{host:_0x4247a6,user:_0x2f7e44,sshKey:_0x4ec102,debug:debug=![],debugPrefix:debugPrefix=_0x3a2795[_0x5526fd(0x143)]}=_0x16dc12;if(!_0x4247a6||!_0x2f7e44)return;const _0x43ac9d=readdirSync(_0x51bee6);if(_0x43ac9d[_0x5526fd(0x132)](_0x358f26=>_0x358f26[_0x5526fd(0x153)](_0x5526fd(0x13f)))){if(debug)console[_0x5526fd(0x13d)](debugPrefix+_0x5526fd(0x154));return;}if(debug)console['log'](debugPrefix+_0x5526fd(0x14a));const _0x31b049=['-o','ControlMaster=yes','-o',_0x5526fd(0x152)+_0x51bee6+_0x5526fd(0x130),'-o','ControlPersist=10m','-o',_0x5526fd(0x148),'-o',_0x3a2795[_0x5526fd(0x147)],'-o',_0x3a2795['EyIkV'],'-o',_0x3a2795['nUEMJ'],'-N','-f'];_0x4ec102&&_0x31b049[_0x5526fd(0x12e)]('-i',_0x4ec102);_0x31b049[_0x5526fd(0x12e)](_0x2f7e44+'@'+_0x4247a6);const _0x53546f=_0x3a2795[_0x5526fd(0x14f)](spawn,_0x3a2795[_0x5526fd(0x144)],_0x31b049,{'detached':!![],'stdio':_0x3a2795['AylpG']});_0x53546f[_0x5526fd(0x139)](),await waitForSSHSocket(_0x51bee6,_0x53546f,0x3a98);if(debug)console[_0x5526fd(0x13d)](debugPrefix+_0x5526fd(0x13a));}
@@ -1 +1 @@
1
- function _0x4e84(_0x19fed9,_0x34d56d){_0x19fed9=_0x19fed9-0x95;const _0x33f616=_0x33f6();let _0x4e8457=_0x33f616[_0x19fed9];if(_0x4e84['CGLyPS']===undefined){var _0x4b8273=function(_0x182200){const _0x591225='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3d4e6f='',_0x5bb5b8='';for(let _0x312e14=0x0,_0x93566c,_0x59b508,_0x3d4a43=0x0;_0x59b508=_0x182200['charAt'](_0x3d4a43++);~_0x59b508&&(_0x93566c=_0x312e14%0x4?_0x93566c*0x40+_0x59b508:_0x59b508,_0x312e14++%0x4)?_0x3d4e6f+=String['fromCharCode'](0xff&_0x93566c>>(-0x2*_0x312e14&0x6)):0x0){_0x59b508=_0x591225['indexOf'](_0x59b508);}for(let _0x536602=0x0,_0x32a256=_0x3d4e6f['length'];_0x536602<_0x32a256;_0x536602++){_0x5bb5b8+='%'+('00'+_0x3d4e6f['charCodeAt'](_0x536602)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5bb5b8);};_0x4e84['sHdAfs']=_0x4b8273,_0x4e84['Gtxrio']={},_0x4e84['CGLyPS']=!![];}const _0x5648dc=_0x33f616[0x0],_0x45f5c1=_0x19fed9+_0x5648dc,_0x338a6e=_0x4e84['Gtxrio'][_0x45f5c1];return!_0x338a6e?(_0x4e8457=_0x4e84['sHdAfs'](_0x4e8457),_0x4e84['Gtxrio'][_0x45f5c1]=_0x4e8457):_0x4e8457=_0x338a6e,_0x4e8457;}(function(_0x2a1f0b,_0x28c53c){const _0xc133e7=_0x4e84,_0x4792f0=_0x2a1f0b();while(!![]){try{const _0x56b0ec=parseInt(_0xc133e7(0x9d))/0x1+-parseInt(_0xc133e7(0x9b))/0x2*(parseInt(_0xc133e7(0xa2))/0x3)+-parseInt(_0xc133e7(0xa5))/0x4+-parseInt(_0xc133e7(0x96))/0x5+-parseInt(_0xc133e7(0x9e))/0x6+-parseInt(_0xc133e7(0xa8))/0x7*(-parseInt(_0xc133e7(0x97))/0x8)+parseInt(_0xc133e7(0xa3))/0x9;if(_0x56b0ec===_0x28c53c)break;else _0x4792f0['push'](_0x4792f0['shift']());}catch(_0x2f2b4e){_0x4792f0['push'](_0x4792f0['shift']());}}}(_0x33f6,0x4cf4c));function _0x33f6(){const _0x11334b=['odiZnty5q3fRs0Lq','ntG4nte1ngnnvevKwa','C3rYAw5NAwz5','mJa5ntKZmMrVu3jrvG','Dg1WrgLY','DgfYz2v0CY5TAW','nde4odfhwgX3vwO','CNvSzxmUBwS','AM9PBG','CMvJDxjZAxzL','nJKWmJGWq1LRuxDO','nZm2zw1SELPl','DgfYz2v0C0zPBgu','vefsr0vuuYa6psa','zLHLqKS','mMfys0PIDa','vfzbDgK','ntG5nJuWrfvkBMTS','mZi1mZmWoezcwfPksq','vfLrv3e','CMvWBgfJzq','DxrMoa'];_0x33f6=function(){return _0x11334b;};return _0x33f6();}import{writeFileSync,mkdirSync,existsSync}from'fs';import{join}from'path';import{randomUUID}from'crypto';import{tmpdir}from'os';function ensureDir(_0x34baf3){const _0x424384=_0x4e84;if(!existsSync(_0x34baf3)){const _0xf9cea2={};_0xf9cea2[_0x424384(0x95)]=!![],mkdirSync(_0x34baf3,_0xf9cea2);}}export function writeRules(_0x456f81,_0x43fa80,_0xd23f86={},_0x3ecc89=null){const _0x27203e=_0x4e84,_0x4550d9={'NJQpg':function(_0x40d39f,_0x273eb9){return _0x40d39f(_0x273eb9);},'TVAti':'target-mapping.json','KMEtw':function(_0x1796c8,_0x2fb15c){return _0x1796c8+_0x2fb15c;},'fXeBK':function(_0x379351,_0x4cadd2,_0x151225,_0x12b78d){return _0x379351(_0x4cadd2,_0x151225,_0x12b78d);},'TYQWq':'utf8'};if(!_0x3ecc89){const _0x44b024=randomUUID()[_0x27203e(0xa0)](/-/g,'');_0x3ecc89=join(tmpdir(),'cm-'+_0x44b024);}_0x4550d9['NJQpg'](ensureDir,_0x3ecc89);const _0xe21245=join(_0x3ecc89,_0x27203e(0xa9)),_0xe62848=join(_0x3ecc89,_0x27203e(0xa7)),_0x41ec1c=join(_0x3ecc89,_0x4550d9[_0x27203e(0x9c)]),_0x446c50=_0x4550d9['KMEtw'](_0x456f81[_0x27203e(0xaa)]('\x0a'),'\x0a');_0x4550d9[_0x27203e(0x9a)](writeFileSync,_0xe21245,_0x446c50,_0x27203e(0xa1));const _0x568e23=_0x27203e(0x99)+_0x43fa80[_0x27203e(0xaa)]('\x20')+'\x0a';_0x4550d9[_0x27203e(0x9a)](writeFileSync,_0xe62848,_0x568e23,_0x4550d9[_0x27203e(0x9f)]);const _0x4f7d73=JSON[_0x27203e(0xa4)](_0xd23f86,null,0x2);writeFileSync(_0x41ec1c,_0x4f7d73,_0x4550d9[_0x27203e(0x9f)]);const _0x452469={};return _0x452469['rulesFile']=_0xe21245,_0x452469[_0x27203e(0x98)]=_0xe62848,_0x452469['mappingFile']=_0x41ec1c,_0x452469[_0x27203e(0xa6)]=_0x3ecc89,_0x452469;}
1
+ (function(_0x4174ae,_0x1fbd79){const _0x1b2633=_0x2cb8,_0x2f3a30=_0x4174ae();while(!![]){try{const _0x484754=-parseInt(_0x1b2633(0x13a))/0x1+-parseInt(_0x1b2633(0x136))/0x2*(parseInt(_0x1b2633(0x13c))/0x3)+-parseInt(_0x1b2633(0x135))/0x4+-parseInt(_0x1b2633(0x140))/0x5+parseInt(_0x1b2633(0x13f))/0x6*(-parseInt(_0x1b2633(0x12e))/0x7)+parseInt(_0x1b2633(0x132))/0x8*(parseInt(_0x1b2633(0x13d))/0x9)+parseInt(_0x1b2633(0x131))/0xa*(parseInt(_0x1b2633(0x142))/0xb);if(_0x484754===_0x1fbd79)break;else _0x2f3a30['push'](_0x2f3a30['shift']());}catch(_0x34675e){_0x2f3a30['push'](_0x2f3a30['shift']());}}}(_0x573d,0x24a68));import{writeFileSync,mkdirSync,existsSync}from'fs';import{join}from'path';function _0x2cb8(_0x2c27d3,_0x5b8c5f){_0x2c27d3=_0x2c27d3-0x12c;const _0x573d8b=_0x573d();let _0x2cb8ac=_0x573d8b[_0x2c27d3];if(_0x2cb8['rCwYeb']===undefined){var _0x23c1a0=function(_0x349272){const _0x31c284='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1e85b1='',_0x395d60='';for(let _0xcb7104=0x0,_0x34e8ab,_0x20ab4b,_0x242cea=0x0;_0x20ab4b=_0x349272['charAt'](_0x242cea++);~_0x20ab4b&&(_0x34e8ab=_0xcb7104%0x4?_0x34e8ab*0x40+_0x20ab4b:_0x20ab4b,_0xcb7104++%0x4)?_0x1e85b1+=String['fromCharCode'](0xff&_0x34e8ab>>(-0x2*_0xcb7104&0x6)):0x0){_0x20ab4b=_0x31c284['indexOf'](_0x20ab4b);}for(let _0x5ec79e=0x0,_0x18cd95=_0x1e85b1['length'];_0x5ec79e<_0x18cd95;_0x5ec79e++){_0x395d60+='%'+('00'+_0x1e85b1['charCodeAt'](_0x5ec79e)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x395d60);};_0x2cb8['QrHfwY']=_0x23c1a0,_0x2cb8['fCClyp']={},_0x2cb8['rCwYeb']=!![];}const _0x37ac0b=_0x573d8b[0x0],_0xbe426b=_0x2c27d3+_0x37ac0b,_0x2068b9=_0x2cb8['fCClyp'][_0xbe426b];return!_0x2068b9?(_0x2cb8ac=_0x2cb8['QrHfwY'](_0x2cb8ac),_0x2cb8['fCClyp'][_0xbe426b]=_0x2cb8ac):_0x2cb8ac=_0x2068b9,_0x2cb8ac;}import{randomUUID}from'crypto';import{tmpdir}from'os';function ensureDir(_0x5e1aa2){const _0x2a4bce=_0x2cb8,_0x59d5c8={'lQNZt':function(_0x41ecb6,_0x2a2e73){return _0x41ecb6(_0x2a2e73);}};if(!_0x59d5c8[_0x2a4bce(0x143)](existsSync,_0x5e1aa2)){const _0x2a1b6e={};_0x2a1b6e[_0x2a4bce(0x13e)]=!![],mkdirSync(_0x5e1aa2,_0x2a1b6e);}}export function writeRules(_0x31d8f4,_0x4e2612,_0x3f063e={},_0x206605=null){const _0xd705b1=_0x2cb8,_0x107fd0={'JYZtJ':function(_0xa545dd){return _0xa545dd();},'cRxDU':function(_0x45ac84,_0x545d37,_0x32a441){return _0x45ac84(_0x545d37,_0x32a441);},'jRtEH':_0xd705b1(0x146),'RBKrT':'targets.mk','uDUPd':function(_0x514700,_0x537493){return _0x514700+_0x537493;},'LvKBk':function(_0xf0731a,_0x128f71,_0x355045,_0x385603){return _0xf0731a(_0x128f71,_0x355045,_0x385603);},'mLYld':_0xd705b1(0x12f)};if(!_0x206605){const _0x1f583a=_0x107fd0[_0xd705b1(0x137)](randomUUID)[_0xd705b1(0x141)](/-/g,'');_0x206605=join(_0x107fd0[_0xd705b1(0x137)](tmpdir),_0xd705b1(0x134)+_0x1f583a);}ensureDir(_0x206605);const _0x1e8da0=_0x107fd0[_0xd705b1(0x138)](join,_0x206605,_0x107fd0[_0xd705b1(0x133)]),_0x3ccaf5=join(_0x206605,_0x107fd0[_0xd705b1(0x12d)]),_0x5ca133=_0x107fd0[_0xd705b1(0x138)](join,_0x206605,_0xd705b1(0x144)),_0x12f2da=_0x107fd0[_0xd705b1(0x130)](_0x31d8f4[_0xd705b1(0x12c)]('\x0a'),'\x0a');_0x107fd0[_0xd705b1(0x147)](writeFileSync,_0x1e8da0,_0x12f2da,_0x107fd0[_0xd705b1(0x145)]);const _0x472ad2='TARGETS\x20:=\x20'+_0x4e2612[_0xd705b1(0x12c)]('\x20')+'\x0a';_0x107fd0[_0xd705b1(0x147)](writeFileSync,_0x3ccaf5,_0x472ad2,_0xd705b1(0x12f));const _0x32dbde=JSON[_0xd705b1(0x13b)](_0x3f063e,null,0x2);_0x107fd0[_0xd705b1(0x147)](writeFileSync,_0x5ca133,_0x32dbde,_0xd705b1(0x12f));const _0x13b216={};return _0x13b216['rulesFile']=_0x1e8da0,_0x13b216['targetsFile']=_0x3ccaf5,_0x13b216[_0xd705b1(0x139)]=_0x5ca133,_0x13b216['tmpDir']=_0x206605,_0x13b216;}function _0x573d(){const _0x2e7d27=['BwfWCgLUz0zPBgu','mJGZmtC5qMDwwKjK','C3rYAw5NAwz5','m3rUt1v1ra','ndm2ntLbvMrZAgy','CMvJDxjZAxzL','nKzrr21dvG','mZG1nJGWy0nNBwT6','CMvWBgfJzq','nduXtKPwDKnl','BffowNq','DgfYz2v0lw1HChbPBMCUANnVBG','BuXzBgq','CNvSzxmUBwS','thzlqMS','AM9PBG','uKjlCLq','mJa1nJaXourKve1vBW','DxrMoa','Durvugq','mJiXntCWuvftsvjc','mJK2A1voq1zJ','ALj0ruG','y20T','mteYntG2ogHhChHlDW','ndyXme54A3rNEq','sLLADeO','y1j4rfu'];_0x573d=function(){return _0x2e7d27;};return _0x573d();}
@@ -45,5 +45,5 @@ endef
45
45
  # Expands to CL parameters when matching prerequisites exist, empty otherwise.
46
46
  # Used by BUILD_MODULE_TO_PGM (CRTPGM) and BUILD_MODULE_TO_SRVPGM (CRTSRVPGM).
47
47
  ######
48
- BNDSRVPGM_PARM = $(if $(filter %.srvpgm,$^),bndsrvpgm($(foreach s,$(filter %.srvpgm,$^),$(basename $(notdir $(s))))),)
48
+ BNDSRVPGM_PARM = $(if $(filter %.srvpgm,$^ $|),bndsrvpgm($(foreach s,$(filter %.srvpgm,$^ $|),$(basename $(notdir $(s))))),)
49
49
  BNDDIR_PARM = $(if $(filter %.bnddir,$^ $|),bnddir($(foreach d,$(filter %.bnddir,$^ $|),$(basename $(notdir $(d))))),)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@profoundlogic/codermake",
3
- "version": "1.4.0",
3
+ "version": "1.4.1",
4
4
  "description": "Make wrapper framework for IBM i development that simplifies build rules",
5
5
  "main": "dist/bin/index.js",
6
6
  "type": "module",
@@ -106,14 +106,14 @@ mypgm.pgm: mod1.module mod2.module
106
106
  # Link with automatic BNDSRVPGM parameter
107
107
  calc.pgm: calc.module utils.srvpgm
108
108
 
109
- # Link with automatic BNDDIR parameter (order-only prereq)
109
+ # Link with automatic BNDDIR parameter
110
110
  calcd.pgm: calcd.module | app.bnddir
111
111
 
112
112
  # Create a service program from modules + export list
113
113
  mysrvpgm.srvpgm: mymod.module mymod.exports
114
114
  ```
115
115
 
116
- When `.srvpgm` or `.bnddir` appear as prerequisites on `.pgm` or `.srvpgm` targets built via CRTPGM/CRTSRVPGM, the corresponding `BNDSRVPGM()` and `BNDDIR()` parameters are automatically added to the compile command.
116
+ When `.srvpgm` or `.bnddir` appear as prerequisites (normal or order-only) on `.pgm` or `.srvpgm` targets built via CRTPGM/CRTSRVPGM, the corresponding `BNDSRVPGM()` and `BNDDIR()` parameters are automatically added to the command. This only applies to module-based targets — for source-based programs (e.g., CRTBNDRPG), `.srvpgm` and `.bnddir` prerequisites are build-ordering dependencies only.
117
117
 
118
118
  The `.exports` (or `.bnd`) file is a text file listing exported procedure symbols:
119
119
 
@@ -56,7 +56,7 @@ getcount.pgm: getcount.proc.sql
56
56
 
57
57
  ### Program from modules
58
58
 
59
- Links one or more compiled modules into a program. Prerequisites include `.module` targets, and optionally `.srvpgm` (normal) and `.bnddir` (order-only) for automatic binding.
59
+ Links one or more compiled modules into a program. Prerequisites include `.module` targets, and optionally `.srvpgm` and `.bnddir` (normal or order-only) for automatic binding.
60
60
 
61
61
  ```makefile
62
62
  mypgm.pgm: mod1.module mod2.module