@profoundlogic/codermake 1.3.0 → 1.4.0

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(_0x4ae2ed,_0xd04041){const _0x38444f=_0x1859,_0x4dd4e8=_0x4ae2ed();while(!![]){try{const _0x1baf1a=parseInt(_0x38444f(0x1e6))/0x1+parseInt(_0x38444f(0x1b8))/0x2+parseInt(_0x38444f(0x1cf))/0x3*(-parseInt(_0x38444f(0x1db))/0x4)+-parseInt(_0x38444f(0x1d8))/0x5+parseInt(_0x38444f(0x1d2))/0x6*(parseInt(_0x38444f(0x1e1))/0x7)+-parseInt(_0x38444f(0x1bb))/0x8+parseInt(_0x38444f(0x1f7))/0x9;if(_0x1baf1a===_0xd04041)break;else _0x4dd4e8['push'](_0x4dd4e8['shift']());}catch(_0x540cf2){_0x4dd4e8['push'](_0x4dd4e8['shift']());}}}(_0x5b7e,0xc2ac9));import{readFileSync,writeFileSync,mkdirSync,copyFileSync,readdirSync}from'fs';import{dirname,join}from'path';import{randomUUID}from'crypto';export function detectFormat(_0x2ba443){const _0x11686d=_0x1859,_0x5cb58e={};_0x5cb58e[_0x11686d(0x1cb)]=_0x11686d(0x1ee);const _0x2cb122=_0x5cb58e;if(/^\*\*free$/i[_0x11686d(0x1c6)](_0x2ba443['trimEnd']()))return _0x11686d(0x1f3);return _0x2cb122[_0x11686d(0x1cb)];}export function extractDirective(_0x5396f2,_0x30e952){const _0x56e6ca=_0x1859,_0x5f2a63={};_0x5f2a63[_0x56e6ca(0x1e8)]=function(_0x3dfa99,_0x3ff79d){return _0x3dfa99===_0x3ff79d;},_0x5f2a63[_0x56e6ca(0x1be)]='free',_0x5f2a63[_0x56e6ca(0x1ed)]=function(_0x31177d,_0x330fd6){return _0x31177d+_0x330fd6;},_0x5f2a63[_0x56e6ca(0x1d9)]=function(_0x5d953d,_0x2079b6){return _0x5d953d+_0x2079b6;},_0x5f2a63[_0x56e6ca(0x1e5)]=function(_0x1d6fab,_0x372dce){return _0x1d6fab+_0x372dce;};const _0x517f18=_0x5f2a63;let _0x422bac,_0x474dd1;if(_0x517f18[_0x56e6ca(0x1e8)](_0x30e952,_0x517f18[_0x56e6ca(0x1be)])){const _0x479f42=_0x5396f2['match'](/^\s*\/(copy|include) (\S)/i);if(!_0x479f42)return null;const _0x2640e9=_0x5396f2[_0x56e6ca(0x1ef)]();if(_0x2640e9['startsWith']('//'))return null;_0x422bac=_0x479f42[0x1][_0x56e6ca(0x1dd)](),_0x474dd1=_0x5396f2[_0x56e6ca(0x1f6)](_0x517f18[_0x56e6ca(0x1ed)](_0x479f42[_0x56e6ca(0x1dc)],_0x479f42[0x0][_0x56e6ca(0x1b6)])-0x1);}else{if(_0x5396f2['length']<0x7)return null;if(_0x5396f2[0x6]!=='/')return null;const _0x13afb0=_0x5396f2['substring'](0x7),_0x592981=_0x13afb0[_0x56e6ca(0x1b3)](/^(copy|include) (\S)/i);if(!_0x592981)return null;_0x422bac=_0x592981[0x1][_0x56e6ca(0x1dd)](),_0x474dd1=_0x13afb0['substring'](_0x592981[0x0]['length']-0x1);}let _0x1ba664;if(_0x474dd1[_0x56e6ca(0x1c4)]('\x27')){const _0x31a520=_0x474dd1[_0x56e6ca(0x1c7)]('\x27',0x1);_0x1ba664=_0x31a520===-0x1?_0x474dd1[_0x56e6ca(0x1c8)]():_0x474dd1[_0x56e6ca(0x1f6)](0x0,_0x517f18[_0x56e6ca(0x1d9)](_0x31a520,0x1));}else{if(_0x474dd1[_0x56e6ca(0x1c4)]('\x22')){const _0x727df=_0x474dd1[_0x56e6ca(0x1c7)]('\x22',0x1);_0x1ba664=_0x727df===-0x1?_0x474dd1['trim']():_0x474dd1[_0x56e6ca(0x1f6)](0x0,_0x517f18['NDoQg'](_0x727df,0x1));}else _0x1ba664=_0x474dd1['split'](/\s/)[0x0];}const _0x1908d4={};return _0x1908d4[_0x56e6ca(0x1eb)]=_0x422bac,_0x1908d4[_0x56e6ca(0x1e9)]=_0x1ba664,_0x1908d4;}export function classifyDirectiveOperand(_0x401835){const _0x1e7047=_0x1859,_0x1b45b0={};_0x1b45b0['qIrmD']='ifs',_0x1b45b0['hqFEa']='member';const _0x367a13=_0x1b45b0;if(_0x401835['startsWith']('\x27')||_0x401835[_0x1e7047(0x1c4)]('\x22')){const _0x3b327f={};return _0x3b327f[_0x1e7047(0x1d6)]=_0x367a13[_0x1e7047(0x1c0)],_0x3b327f;}if(_0x401835[_0x1e7047(0x1e7)](',')){const _0x213aed=_0x401835[_0x1e7047(0x1c7)](','),_0xe0fe64=_0x401835[_0x1e7047(0x1f6)](0x0,_0x213aed),_0x2c96aa=_0x401835[_0x1e7047(0x1f6)](_0x213aed+0x1),_0x209574=_0xe0fe64[_0x1e7047(0x1c7)]('/');if(_0x209574!==-0x1)return{'type':_0x1e7047(0x1c2),'library':_0xe0fe64[_0x1e7047(0x1f6)](0x0,_0x209574),'fileName':_0xe0fe64[_0x1e7047(0x1f6)](_0x209574+0x1),'memberName':_0x2c96aa};const _0x50f7d8={};return _0x50f7d8['type']=_0x1e7047(0x1c2),_0x50f7d8[_0x1e7047(0x1b2)]=null,_0x50f7d8[_0x1e7047(0x1f1)]=_0xe0fe64,_0x50f7d8[_0x1e7047(0x1b5)]=_0x2c96aa,_0x50f7d8;}if(_0x401835[_0x1e7047(0x1e7)]('/')){const _0x2b6297={};return _0x2b6297['type']=_0x1e7047(0x1bf),_0x2b6297;}if(/\.rpgle$/i[_0x1e7047(0x1c6)](_0x401835)||/\.sqlrpgle$/i[_0x1e7047(0x1c6)](_0x401835)){const _0x49f37f={};return _0x49f37f[_0x1e7047(0x1d6)]=_0x1e7047(0x1bf),_0x49f37f;}const _0x1ca98a={};return _0x1ca98a[_0x1e7047(0x1d6)]=_0x367a13[_0x1e7047(0x1d5)],_0x1ca98a[_0x1e7047(0x1b2)]=null,_0x1ca98a[_0x1e7047(0x1f1)]=null,_0x1ca98a[_0x1e7047(0x1b5)]=_0x401835,_0x1ca98a;}function findFileInsensitive(_0x20421a,_0x4db9cc){const _0x375bf4=_0x1859;let _0xa1c34f;try{_0xa1c34f=readdirSync(_0x20421a);}catch{return null;}if(_0xa1c34f[_0x375bf4(0x1e7)](_0x4db9cc))return _0x4db9cc;const _0x4438b2=_0x4db9cc['toLowerCase']();return _0xa1c34f[_0x375bf4(0x1bc)](_0x5147a6=>_0x5147a6[_0x375bf4(0x1dd)]()===_0x4438b2)||null;}function findDirInsensitive(_0x445a3a,_0x39bf98){const _0x32588e=_0x1859,_0x23b8b8={'YyMpQ':function(_0x132095,_0x59049e){return _0x132095(_0x59049e);}};let _0x29f2b8;try{_0x29f2b8=_0x23b8b8[_0x32588e(0x1d7)](readdirSync,_0x445a3a);}catch{return null;}if(_0x29f2b8[_0x32588e(0x1e7)](_0x39bf98))return _0x39bf98;const _0x1168c6=_0x39bf98['toLowerCase']();return _0x29f2b8[_0x32588e(0x1bc)](_0x557f93=>_0x557f93[_0x32588e(0x1dd)]()===_0x1168c6)||null;}export function resolveSourceMember(_0x4c2075,_0x1e952d){const _0x82617b=_0x1859,_0x5c0762={'CATYK':_0x82617b(0x1cc),'SIbtb':function(_0x56f7f7,_0x428d9d){return _0x56f7f7+_0x428d9d;},'ffxPa':function(_0x5859ea,_0x9daeb5,_0x17e818){return _0x5859ea(_0x9daeb5,_0x17e818);}},{library:_0x47f6de,fileName:_0x55fd76,memberName:_0x4d4adf}=_0x4c2075;let _0x2e9f2e;if(_0x55fd76===null)_0x2e9f2e='qrpglesrc';else _0x47f6de!==null?_0x2e9f2e=_0x47f6de+'/'+_0x55fd76:_0x2e9f2e=_0x55fd76;const _0x5ed232=_0x2e9f2e[_0x82617b(0x1e3)]('/');let _0x11d2b6=_0x1e952d;const _0xd6379=[];for(const _0x6c4665 of _0x5ed232){const _0x580130=findDirInsensitive(_0x11d2b6,_0x6c4665);if(!_0x580130)throw new Error(_0x82617b(0x1b9)+_0x2e9f2e+_0x82617b(0x1f5)+_0x6c4665+_0x82617b(0x1df)+_0x11d2b6+'\x27)');_0xd6379['push'](_0x580130),_0x11d2b6=join(_0x11d2b6,_0x580130);}const _0x10d8ec=_0xd6379[_0x82617b(0x1d4)]('/'),_0x44a3e4=[_0x5c0762[_0x82617b(0x1da)],_0x82617b(0x1ca)];for(const _0x233ef1 of _0x44a3e4){const _0x3d7e47=_0x5c0762[_0x82617b(0x1ec)](_0x4d4adf,_0x233ef1),_0x19af51=findFileInsensitive(_0x5c0762[_0x82617b(0x1f4)](join,_0x1e952d,_0x10d8ec),_0x3d7e47);if(_0x19af51)return _0x10d8ec+'/'+_0x19af51;}throw new Error(_0x82617b(0x1c9)+_0x4d4adf+_0x82617b(0x1f0)+_0x10d8ec+_0x82617b(0x1de));}export function preprocessFileContent(_0x48b7d5,_0x426bbc){const _0xdf87a2=_0x1859,_0x50e4d0={'lEFUD':function(_0xed549a,_0x5d0f36){return _0xed549a(_0x5d0f36);},'ZnPyF':function(_0x1c0ef4,_0x1530de){return _0x1c0ef4===_0x1530de;},'JmOWP':function(_0x48f128,_0x41ff62){return _0x48f128+_0x41ff62;}},_0xa97476=_0x48b7d5[_0xdf87a2(0x1e3)]('\x0a'),_0x91db74={};_0x91db74[_0xdf87a2(0x1ea)]=_0x48b7d5,_0x91db74['modified']=![];if(_0xa97476[_0xdf87a2(0x1b6)]===0x0)return _0x91db74;const _0x1ca200=_0x50e4d0[_0xdf87a2(0x1d1)](detectFormat,_0xa97476[0x0]);let _0xad7dea=![];const _0x25fbca=[];for(let _0x2b2189=0x0;_0x2b2189<_0xa97476['length'];_0x2b2189++){const _0x2e49a7=_0xa97476[_0x2b2189],_0x297cd2=extractDirective(_0x2e49a7,_0x1ca200);if(!_0x297cd2){_0x25fbca[_0xdf87a2(0x1cd)](_0x2e49a7);continue;}const _0x2b5847=classifyDirectiveOperand(_0x297cd2[_0xdf87a2(0x1e9)]);if(_0x2b5847[_0xdf87a2(0x1d6)]===_0xdf87a2(0x1bf)){_0x25fbca[_0xdf87a2(0x1cd)](_0x2e49a7);continue;}let _0x57ec45;try{_0x57ec45=resolveSourceMember(_0x2b5847,_0x426bbc);}catch(_0x36d4bc){const _0x5e198d=_0x2b2189+0x1;throw new Error(_0x36d4bc[_0xdf87a2(0x1b7)]+'\x0a'+('\x20\x20File:\x20line\x20'+_0x5e198d+'\x0a')+(_0xdf87a2(0x1ce)+_0x2e49a7[_0xdf87a2(0x1ef)]()));}let _0x134904;if(_0x50e4d0['ZnPyF'](_0x1ca200,'free')){const _0x1af541=_0x2e49a7[_0xdf87a2(0x1b3)](/^(\s*\/)(copy|include) /i),_0xde37ca=_0x1af541[0x1],_0x2674f2=_0x1af541[0x2],_0x2d22fe=_0x2e49a7[_0xdf87a2(0x1f6)](_0x1af541[0x0]['length']+_0x297cd2['operand'][_0xdf87a2(0x1b6)]);_0x134904=''+_0xde37ca+_0x2674f2+'\x20'+_0x57ec45+_0x2d22fe;}else{const _0x5c9aa1=_0x2e49a7[_0xdf87a2(0x1f6)](0x0,0x6),_0x370934=_0x2e49a7[_0xdf87a2(0x1f6)](0x7)[_0xdf87a2(0x1b3)](/^(copy|include) /i),_0x11071f=_0x370934[0x1],_0x393754=0x7+_0x370934[0x0][_0xdf87a2(0x1b6)],_0x56752e=_0x2e49a7[_0xdf87a2(0x1f6)](_0x50e4d0['JmOWP'](_0x393754,_0x297cd2['operand'][_0xdf87a2(0x1b6)]));_0x134904=_0x5c9aa1+'/'+_0x11071f+'\x20'+_0x57ec45+_0x56752e;}_0x25fbca[_0xdf87a2(0x1cd)](_0x134904),_0xad7dea=!![];}return{'content':_0x25fbca['join']('\x0a'),'modified':_0xad7dea};}export function preprocessFile(_0x18e30f,_0x31a0b7){const _0x13d2a5=_0x1859,_0x4a6757={'YnALR':function(_0x21ca49,_0x59ae80,_0x20018c){return _0x21ca49(_0x59ae80,_0x20018c);},'UmPpY':_0x13d2a5(0x1b4),'QDJvF':function(_0x54a17f,_0x29a15a,_0x171bda){return _0x54a17f(_0x29a15a,_0x171bda);}};if(!/\.(rpgle|sqlrpgle)$/i['test'](_0x18e30f)){const _0x16ef94={};return _0x16ef94[_0x13d2a5(0x1bd)]=![],_0x16ef94;}const _0x285920=_0x4a6757[_0x13d2a5(0x1d3)](readFileSync,_0x18e30f,_0x4a6757[_0x13d2a5(0x1f2)]);try{return _0x4a6757[_0x13d2a5(0x1e2)](preprocessFileContent,_0x285920,_0x31a0b7);}catch(_0x2cbc10){const _0xc9c791=_0x2cbc10['message'][_0x13d2a5(0x1e0)](/^(.*\n {2})File: /,_0x13d2a5(0x1c1)+_0x18e30f+',\x20');throw new Error(_0xc9c791);}}export function preprocessFiles(_0x51f1d8,_0x2575ee,_0x247f48){const _0x3a93ad=_0x1859,_0x1351ea={'nMxoa':function(_0x42d9e8,_0x3782d7,_0x31db7e){return _0x42d9e8(_0x3782d7,_0x31db7e);},'mLNCc':function(_0x9f2a10){return _0x9f2a10();},'tRllj':function(_0x57a330,_0x543314){return _0x57a330<_0x543314;},'aifGX':function(_0x6588c7,_0x248de6,_0x3fbeaa){return _0x6588c7(_0x248de6,_0x3fbeaa);},'FSTNV':function(_0x5bb92f,_0x15712b){return _0x5bb92f(_0x15712b);}},_0x21df10=[];let _0x261b0f=![];for(const _0x42cb2f of _0x51f1d8){const _0x56a4ba=_0x1351ea['nMxoa'](join,_0x2575ee,_0x42cb2f),_0x9a1d06=preprocessFile(_0x56a4ba,_0x2575ee),_0x5ecc9a={'filePath':_0x42cb2f,..._0x9a1d06};_0x21df10['push'](_0x5ecc9a);if(_0x9a1d06['modified'])_0x261b0f=!![];}if(!_0x261b0f){const _0x44a3df={};return _0x44a3df[_0x3a93ad(0x1e4)]=![],_0x44a3df[_0x3a93ad(0x1d0)]='.',_0x44a3df;}const _0x341845=_0x247f48+'-'+_0x1351ea['mLNCc'](randomUUID);for(let _0x2a356d=0x0;_0x1351ea[_0x3a93ad(0x1c3)](_0x2a356d,_0x51f1d8[_0x3a93ad(0x1b6)]);_0x2a356d++){const _0x219c1a=_0x51f1d8[_0x2a356d],_0x20f605=_0x21df10[_0x2a356d],_0x6f6c8c=_0x1351ea['aifGX'](join,_0x341845,_0x219c1a),_0x4f7df3={};_0x4f7df3[_0x3a93ad(0x1c5)]=!![],mkdirSync(_0x1351ea['FSTNV'](dirname,_0x6f6c8c),_0x4f7df3),_0x20f605['modified']?writeFileSync(_0x6f6c8c,_0x20f605[_0x3a93ad(0x1ea)]):_0x1351ea[_0x3a93ad(0x1ba)](copyFileSync,_0x1351ea[_0x3a93ad(0x1ba)](join,_0x2575ee,_0x219c1a),_0x6f6c8c);}const _0x354646={};return _0x354646[_0x3a93ad(0x1e4)]=!![],_0x354646['sourceRoot']=_0x341845,_0x354646;}function _0x1859(_0x1bd11a,_0x17f025){_0x1bd11a=_0x1bd11a-0x1b2;const _0x5b7e93=_0x5b7e();let _0x1859c2=_0x5b7e93[_0x1bd11a];if(_0x1859['Owvvrl']===undefined){var _0x5f1686=function(_0x2619ba){const _0x453413='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x42d7ef='',_0x473ee5='';for(let _0x59d3b0=0x0,_0x54a20c,_0x11b943,_0x4fe0b2=0x0;_0x11b943=_0x2619ba['charAt'](_0x4fe0b2++);~_0x11b943&&(_0x54a20c=_0x59d3b0%0x4?_0x54a20c*0x40+_0x11b943:_0x11b943,_0x59d3b0++%0x4)?_0x42d7ef+=String['fromCharCode'](0xff&_0x54a20c>>(-0x2*_0x59d3b0&0x6)):0x0){_0x11b943=_0x453413['indexOf'](_0x11b943);}for(let _0x5ee373=0x0,_0x25cea7=_0x42d7ef['length'];_0x5ee373<_0x25cea7;_0x5ee373++){_0x473ee5+='%'+('00'+_0x42d7ef['charCodeAt'](_0x5ee373)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x473ee5);};_0x1859['sbdPLe']=_0x5f1686,_0x1859['ynZLJn']={},_0x1859['Owvvrl']=!![];}const _0x38b9ca=_0x5b7e93[0x0],_0x54ea7c=_0x1bd11a+_0x38b9ca,_0x3b59be=_0x1859['ynZLJn'][_0x54ea7c];return!_0x3b59be?(_0x1859c2=_0x1859['sbdPLe'](_0x1859c2),_0x1859['ynZLJn'][_0x54ea7c]=_0x1859c2):_0x1859c2=_0x3b59be,_0x1859c2;}function _0x5b7e(){const _0x27630d=['vw1qCfK','zNjLzq','zMz4uge','icHSB29RAw5NigzVCIaN','C3vIC3rYAw5N','ndiWntK0m1LSrvrhDq','BgLICMfYEq','Bwf0y2G','DxrMoa','BwvTyMvYtMfTzq','BgvUz3rO','BwvZC2fNzq','mtm3mJaWzvLZzxbn','rgLYzwn0B3j5ig5VDcbMB3vUzdOG','ywLMr1G','nZG0mZyWmgvPEMnNDq','zMLUza','Bw9KAwzPzwq','wKjRCeG','AwzZ','CuLYBuq','jdfgAwXLoIa','BwvTyMvY','DfjSBgO','C3rHCNrZv2L0Aa','CMvJDxjZAxzL','DgvZDa','Aw5KzxHpzG','DhjPBq','u291CMnLig1LBwjLCIbUB3qGzM91BMq6ia','lNnXBhjWz2XL','rwfsywK','lNjWz2XL','ChvZAa','icbeAxjLy3rPDMu6ia','mJCZmg94Dfbbwq','C291CMnLuM9VDa','Bevgvuq','mJq4otu4u0rLsxrw','ww5btfi','AM9PBG','Ahfgrwe','DhLWzq','wxLnCfe','mZCWmZi1EezLAfLk','wwrfvLi','q0fuwuS','mtyZnKvSDvLbsq','Aw5KzxG','Dg9mB3DLCKnHC2u','lYaODhjPzwqGlNjWz2XLlcaUC3fSCNbNBguP','jYbPBIaN','CMvWBgfJzq','nZb0rvvkt2y','uurkDKy','C3bSAxq','BMvLzgvK','tKrVuwC','mti3mZiZm0LhBfzsDq','Aw5JBhvKzxm','y25Zuw8','B3bLCMfUza','y29UDgvUDa','A2v5D29Yza','u0LIDgi','z1bpA2y','zML4zwq','DhjPBvn0yxj0','igLUia','zMLSzu5HBwu'];_0x5b7e=function(){return _0x27630d;};return _0x5b7e();}
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;}
package/dist/lib/ssh.js CHANGED
@@ -1 +1 @@
1
- (function(_0x2b71ef,_0x413acf){const _0x4e681d=_0x2868,_0x1db576=_0x2b71ef();while(!![]){try{const _0x54b9dd=-parseInt(_0x4e681d(0x182))/0x1+parseInt(_0x4e681d(0x192))/0x2+parseInt(_0x4e681d(0x17c))/0x3+parseInt(_0x4e681d(0x18a))/0x4+parseInt(_0x4e681d(0x191))/0x5+-parseInt(_0x4e681d(0x18e))/0x6*(-parseInt(_0x4e681d(0x176))/0x7)+-parseInt(_0x4e681d(0x175))/0x8;if(_0x54b9dd===_0x413acf)break;else _0x1db576['push'](_0x1db576['shift']());}catch(_0x2ec084){_0x1db576['push'](_0x1db576['shift']());}}}(_0x319e,0x983b6));import{spawn}from'child_process';import{readdirSync}from'fs';async function waitForSSHSocket(_0x8a3411,_0x2e5f30,_0x20d668=0x3a98){const _0x5317ed={'qVTbF':function(_0x2d011c,_0x1f603a){return _0x2d011c!==_0x1f603a;},'SCAwl':function(_0x10f811,_0xada373){return _0x10f811(_0xada373);},'kdzOo':function(_0x4a371e){return _0x4a371e();},'hhkhm':function(_0x1f0eb5,_0x3be408){return _0x1f0eb5>=_0x3be408;},'uANdt':'exit'};return new Promise((_0xe10915,_0x931db6)=>{const _0x1b6fe2=_0x2868;let _0x156fa3=![],_0x29cb5c=null;_0x2e5f30['on'](_0x5317ed[_0x1b6fe2(0x180)],_0x2edeef=>{const _0x165446=_0x1b6fe2;_0x29cb5c=_0x2edeef,!_0x156fa3&&_0x5317ed[_0x165446(0x194)](_0x2edeef,0x0)&&(_0x156fa3=!![],_0x931db6(new Error('SSH\x20master\x20exited\x20with\x20code\x20'+_0x2edeef)));});const _0x498e3f=Date[_0x1b6fe2(0x17a)](),_0x562add=()=>{const _0x3e72f5=_0x1b6fe2;if(_0x156fa3)return;const _0x17a877=_0x5317ed['SCAwl'](readdirSync,_0x8a3411);if(_0x17a877[_0x3e72f5(0x193)](_0xef2841=>_0xef2841['startsWith'](_0x3e72f5(0x179)))){_0x156fa3=!![],_0x5317ed['kdzOo'](_0xe10915);return;}if(_0x5317ed[_0x3e72f5(0x187)](Date[_0x3e72f5(0x17a)]()-_0x498e3f,_0x20d668)){_0x156fa3=!![];const _0x5b041e=_0x29cb5c!==null?'\x20(process\x20exited\x20with\x20code\x20'+_0x29cb5c+')':'';_0x5317ed[_0x3e72f5(0x17f)](_0x931db6,new Error(_0x3e72f5(0x186)+_0x20d668+'ms'+_0x5b041e));return;}setTimeout(_0x562add,0x64);};_0x562add();});}function _0x2868(_0x4cf512,_0x423961){_0x4cf512=_0x4cf512-0x174;const _0x319e5b=_0x319e();let _0x28689f=_0x319e5b[_0x4cf512];if(_0x2868['Auttmd']===undefined){var _0x2a7ca6=function(_0xd8d7d4){const _0x223cc0='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4c8406='',_0x244280='';for(let _0x54a8a5=0x0,_0x10c651,_0x802f2b,_0x147bbf=0x0;_0x802f2b=_0xd8d7d4['charAt'](_0x147bbf++);~_0x802f2b&&(_0x10c651=_0x54a8a5%0x4?_0x10c651*0x40+_0x802f2b:_0x802f2b,_0x54a8a5++%0x4)?_0x4c8406+=String['fromCharCode'](0xff&_0x10c651>>(-0x2*_0x54a8a5&0x6)):0x0){_0x802f2b=_0x223cc0['indexOf'](_0x802f2b);}for(let _0x21f266=0x0,_0x64c9ad=_0x4c8406['length'];_0x21f266<_0x64c9ad;_0x21f266++){_0x244280+='%'+('00'+_0x4c8406['charCodeAt'](_0x21f266)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x244280);};_0x2868['hvdoVE']=_0x2a7ca6,_0x2868['nUifwA']={},_0x2868['Auttmd']=!![];}const _0x3094c2=_0x319e5b[0x0],_0x353958=_0x4cf512+_0x3094c2,_0xbc8d68=_0x2868['nUifwA'][_0x353958];return!_0xbc8d68?(_0x28689f=_0x2868['hvdoVE'](_0x28689f),_0x2868['nUifwA'][_0x353958]=_0x28689f):_0x28689f=_0xbc8d68,_0x28689f;}function _0x319e(){const _0x1bf9dd=['q29UDhjVBe1HC3rLCJ15zxm','u0nbD2W','Dufozhq','ifntscbTyxn0zxiGzxn0ywjSAxnOzwq','mtiZnZm5n2X2whPArW','l3nZAc0LqW','w3nZAf0','C3nO','u1niig1HC3rLCIbKAwqGBM90ihn0yxj0ihDPDgHPBIa','AgHRAg0','ChvZAa','q29UDhjVBfbHDgG9','mti5mJG0oevItxzkta','u3rYAwn0sg9ZDeTLEunOzwnRAw5Npw5V','tgPgB24','Dw5Yzwy','mtuXmJa3ofPOwvnLBG','Bg9N','CwrJrvq','ntCYnZmXnwHsrxHWyW','mtq4odiWohjxreXUAW','C29Tzq','CvzuyKy','A3bRzw0','oti0ntmYmgz6qxfhzW','mJflzezdrLO','t3blrwS','u2vYDMvYqwXPDMvdB3vUDe1HEd0Z','C3nOlq','BM93','rxDfsuu','mtqZmZu4qKfOEe13','DxP5tfm'];_0x319e=function(){return _0x1bf9dd;};return _0x319e();}export async function establishSSHMaster(_0x5c55f6,_0x1472d9={}){const _0x14dea5=_0x2868,_0x15f8da={'kpkem':_0x14dea5(0x17e),'OpKEk':_0x14dea5(0x18b),'ELvVb':'PasswordAuthentication=no','uzyLS':_0x14dea5(0x178),'EwEIE':function(_0x597697,_0x5f2b00,_0x4cf16d,_0x277318){return _0x597697(_0x5f2b00,_0x4cf16d,_0x277318);},'qdcET':_0x14dea5(0x185),'LjFon':'ignore'},{host:_0x2091ec,user:_0xa49460,sshKey:_0x4eaa4c,debug:debug=![],debugPrefix:debugPrefix=_0x14dea5(0x184)}=_0x1472d9;if(!_0x2091ec||!_0xa49460)return;const _0x4b4785=readdirSync(_0x5c55f6);if(_0x4b4785[_0x14dea5(0x193)](_0x4c4f27=>_0x4c4f27['startsWith'](_0x14dea5(0x179)))){if(debug)console[_0x14dea5(0x18f)](debugPrefix+'\x20SSH\x20master\x20already\x20exists,\x20reusing');return;}if(debug)console[_0x14dea5(0x18f)](debugPrefix+'\x20Pre-establishing\x20SSH\x20master\x20connection...');const _0x57a4f1=['-o',_0x15f8da[_0x14dea5(0x174)],'-o',_0x14dea5(0x189)+_0x5c55f6+_0x14dea5(0x183),'-o','ControlPersist=10m','-o',_0x15f8da[_0x14dea5(0x177)],'-o',_0x15f8da['ELvVb'],'-o','ServerAliveInterval=60','-o',_0x15f8da[_0x14dea5(0x17d)],'-N','-f'];_0x4eaa4c&&_0x57a4f1[_0x14dea5(0x188)]('-i',_0x4eaa4c);_0x57a4f1[_0x14dea5(0x188)](_0xa49460+'@'+_0x2091ec);const _0x5c4eaa=_0x15f8da[_0x14dea5(0x17b)](spawn,_0x15f8da[_0x14dea5(0x190)],_0x57a4f1,{'detached':!![],'stdio':_0x15f8da[_0x14dea5(0x18c)]});_0x5c4eaa[_0x14dea5(0x18d)](),await waitForSSHSocket(_0x5c55f6,_0x5c4eaa,0x3a98);if(debug)console['log'](debugPrefix+_0x14dea5(0x181));}
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 +1 @@
1
- (function(_0x29497b,_0x4db117){const _0x36bf53=_0x451e,_0x858e45=_0x29497b();while(!![]){try{const _0x1b6410=parseInt(_0x36bf53(0x1ea))/0x1+-parseInt(_0x36bf53(0x1ec))/0x2+-parseInt(_0x36bf53(0x1e1))/0x3+-parseInt(_0x36bf53(0x1f1))/0x4*(parseInt(_0x36bf53(0x1de))/0x5)+-parseInt(_0x36bf53(0x1e3))/0x6*(parseInt(_0x36bf53(0x1e8))/0x7)+-parseInt(_0x36bf53(0x1ed))/0x8+parseInt(_0x36bf53(0x1f3))/0x9*(parseInt(_0x36bf53(0x1eb))/0xa);if(_0x1b6410===_0x4db117)break;else _0x858e45['push'](_0x858e45['shift']());}catch(_0x1555e6){_0x858e45['push'](_0x858e45['shift']());}}}(_0xd1bc,0x81ed3));function _0x451e(_0x21eaf7,_0x449a55){_0x21eaf7=_0x21eaf7-0x1de;const _0xd1bc09=_0xd1bc();let _0x451e0b=_0xd1bc09[_0x21eaf7];if(_0x451e['AuxfSG']===undefined){var _0x1fbabd=function(_0xfd6c3){const _0x38171b='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x35097d='',_0x6e3274='';for(let _0x283352=0x0,_0x314687,_0x27a247,_0x5b3bcd=0x0;_0x27a247=_0xfd6c3['charAt'](_0x5b3bcd++);~_0x27a247&&(_0x314687=_0x283352%0x4?_0x314687*0x40+_0x27a247:_0x27a247,_0x283352++%0x4)?_0x35097d+=String['fromCharCode'](0xff&_0x314687>>(-0x2*_0x283352&0x6)):0x0){_0x27a247=_0x38171b['indexOf'](_0x27a247);}for(let _0x261a2a=0x0,_0x537cb3=_0x35097d['length'];_0x261a2a<_0x537cb3;_0x261a2a++){_0x6e3274+='%'+('00'+_0x35097d['charCodeAt'](_0x261a2a)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x6e3274);};_0x451e['bKrkeU']=_0x1fbabd,_0x451e['IEIyHN']={},_0x451e['AuxfSG']=!![];}const _0x1c6e35=_0xd1bc09[0x0],_0x90f606=_0x21eaf7+_0x1c6e35,_0xd75410=_0x451e['IEIyHN'][_0x90f606];return!_0xd75410?(_0x451e0b=_0x451e['bKrkeU'](_0x451e0b),_0x451e['IEIyHN'][_0x90f606]=_0x451e0b):_0x451e0b=_0xd75410,_0x451e0b;}import{writeFileSync,mkdirSync,existsSync}from'fs';import{join}from'path';import{randomUUID}from'crypto';function _0xd1bc(){const _0x57ee0b=['Dg1WrgLY','z2Pnvwq','mtC1nJCZngDWAen2rG','AM9PBG','nM1MrKroza','CNvSzxmUBwS','CNvSzxngAwXL','BwfWCgLUz0zPBgu','DgfYz2v0CY5TAW','nduZodu2ou9ZyuPwDG','txrbt1i','ndm3otDsExzbzfy','mtmWmZm0me9TyLPjsa','mtC0nJa3oePsC2D5CG','mZq2mdy4mgLyCwrbDa','EK5NtfC','y20T','DxrMoa','nZi0v0PlAhbZ','u01XEM4','mJm0wxnhwvLY','vhHQDuu','C3rYAw5NAwz5','tMfuEuy','CMvWBgfJzq','uNfruxm','EK9qwxK','otK2nwXLDxPtvG'];_0xd1bc=function(){return _0x57ee0b;};return _0xd1bc();}import{tmpdir}from'os';function ensureDir(_0x163eed){const _0x14f869=_0x451e,_0x687dc={'zOPYy':function(_0x367771,_0x1df2e7,_0x252468){return _0x367771(_0x1df2e7,_0x252468);}};if(!existsSync(_0x163eed)){const _0x114440={};_0x114440['recursive']=!![],_0x687dc[_0x14f869(0x1f9)](mkdirSync,_0x163eed,_0x114440);}}export function writeRules(_0x2788f3,_0x30843f,_0xb55a76={},_0x559333=null){const _0x1ab85f=_0x451e,_0x227775={'zNgLW':function(_0x4b2273){return _0x4b2273();},'gjMUd':function(_0x57ae46,_0x229117,_0x5dfb84){return _0x57ae46(_0x229117,_0x5dfb84);},'SMqzn':_0x1ab85f(0x1e7),'RqQQs':function(_0xb43339,_0xff7949){return _0xb43339+_0xff7949;},'NaTyF':function(_0x566ecc,_0x55a342,_0x30a45a,_0x7dc14d){return _0x566ecc(_0x55a342,_0x30a45a,_0x7dc14d);},'MtAOR':_0x1ab85f(0x1f0),'TxjuE':function(_0x2f242c,_0x11220e,_0x336f03,_0x4f8be3){return _0x2f242c(_0x11220e,_0x336f03,_0x4f8be3);}};if(!_0x559333){const _0x3b9d2a=_0x227775[_0x1ab85f(0x1ee)](randomUUID)[_0x1ab85f(0x1f7)](/-/g,'');_0x559333=join(tmpdir(),_0x1ab85f(0x1ef)+_0x3b9d2a);}ensureDir(_0x559333);const _0x2778bd=_0x227775['gjMUd'](join,_0x559333,_0x1ab85f(0x1e4)),_0x4f7803=join(_0x559333,_0x227775[_0x1ab85f(0x1f2)]),_0x12a7d1=_0x227775[_0x1ab85f(0x1e0)](join,_0x559333,'target-mapping.json'),_0x280138=_0x227775[_0x1ab85f(0x1f8)](_0x2788f3[_0x1ab85f(0x1e2)]('\x0a'),'\x0a');_0x227775[_0x1ab85f(0x1f6)](writeFileSync,_0x2778bd,_0x280138,_0x227775[_0x1ab85f(0x1e9)]);const _0x5af2af='TARGETS\x20:=\x20'+_0x30843f['join']('\x20')+'\x0a';_0x227775['NaTyF'](writeFileSync,_0x4f7803,_0x5af2af,_0x227775['MtAOR']);const _0x189649=JSON[_0x1ab85f(0x1f5)](_0xb55a76,null,0x2);_0x227775[_0x1ab85f(0x1f4)](writeFileSync,_0x12a7d1,_0x189649,'utf8');const _0x6f5527={};return _0x6f5527[_0x1ab85f(0x1e5)]=_0x2778bd,_0x6f5527['targetsFile']=_0x4f7803,_0x6f5527[_0x1ab85f(0x1e6)]=_0x12a7d1,_0x6f5527[_0x1ab85f(0x1df)]=_0x559333,_0x6f5527;}
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;}
@@ -39,3 +39,11 @@ endef
39
39
  define RPG_CLEANUP_SOURCES
40
40
  if [ "$$RPG_SRC_ROOT" != "." ]; then rm -rf "$$RPG_SRC_ROOT"; fi
41
41
  endef
42
+
43
+ ######
44
+ # Binding parameter generation from prerequisites.
45
+ # Expands to CL parameters when matching prerequisites exist, empty otherwise.
46
+ # Used by BUILD_MODULE_TO_PGM (CRTPGM) and BUILD_MODULE_TO_SRVPGM (CRTSRVPGM).
47
+ ######
48
+ BNDSRVPGM_PARM = $(if $(filter %.srvpgm,$^),bndsrvpgm($(foreach s,$(filter %.srvpgm,$^),$(basename $(notdir $(s))))),)
49
+ BNDDIR_PARM = $(if $(filter %.bnddir,$^ $|),bnddir($(foreach d,$(filter %.bnddir,$^ $|),$(basename $(notdir $(d))))),)
@@ -143,14 +143,14 @@ endef
143
143
  define BUILD_MODULE_TO_PGM
144
144
  $(call SETUP_LOG,$(notdir $@))
145
145
  $(SET_LIBL)
146
- system "crtpgm pgm($(LIBRARY)/$(basename $(@F))) module($(foreach m,$(filter %.module,$^),$(basename $(notdir $(m)))))"
146
+ system "crtpgm pgm($(LIBRARY)/$(basename $(@F))) module($(foreach m,$(filter %.module,$^),$(basename $(notdir $(m))))) $(BNDSRVPGM_PARM) $(BNDDIR_PARM)"
147
147
  endef
148
148
 
149
149
  # Build service program from modules
150
150
  define BUILD_MODULE_TO_SRVPGM
151
151
  $(call SETUP_LOG,$(notdir $@))
152
152
  $(SET_LIBL)
153
- system "crtsrvpgm srvpgm($(LIBRARY)/$(basename $(@F))) module($(foreach m,$(filter %.module,$^),$(basename $(notdir $(m))))) export(*srcfile) srcstmf('$(filter %.exports,$^)')"
153
+ system "crtsrvpgm srvpgm($(LIBRARY)/$(basename $(@F))) module($(foreach m,$(filter %.module,$^),$(basename $(notdir $(m))))) export(*srcfile) srcstmf('$(filter %.exports %.bnd,$^)') $(BNDSRVPGM_PARM) $(BNDDIR_PARM)"
154
154
  endef
155
155
 
156
156
  # Build display file
@@ -235,7 +235,7 @@ define BUILD_MODULE_TO_PGM
235
235
  $(call SETUP_LOG,$(notdir $@))
236
236
  $(SSH) $(QSHELL) <<'EOF'
237
237
  $(SET_LIBL)
238
- system "crtpgm pgm($(LIBRARY)/$(basename $(@F))) module($(foreach m,$(filter %.module,$^),$(basename $(notdir $(m)))))"
238
+ system "crtpgm pgm($(LIBRARY)/$(basename $(@F))) module($(foreach m,$(filter %.module,$^),$(basename $(notdir $(m))))) $(BNDSRVPGM_PARM) $(BNDDIR_PARM)"
239
239
  EOF
240
240
  touch '$@'
241
241
  endef
@@ -243,7 +243,7 @@ endef
243
243
  # Build service program from modules
244
244
  define BUILD_MODULE_TO_SRVPGM
245
245
  $(call SETUP_LOG,$(notdir $@))
246
- $(call REMOTE_BUILD,$(filter-out build/%,$^),system "crtsrvpgm srvpgm($(LIBRARY)/$(basename $(@F))) module($(foreach m,$(filter %.module,$^),$(basename $(notdir $(m))))) export(*srcfile) srcstmf('$(filter %.exports,$^)')")
246
+ $(call REMOTE_BUILD,$(filter-out build/%,$^),system "crtsrvpgm srvpgm($(LIBRARY)/$(basename $(@F))) module($(foreach m,$(filter %.module,$^),$(basename $(notdir $(m))))) export(*srcfile) srcstmf('$(filter %.exports %.bnd,$^)') $(BNDSRVPGM_PARM) $(BNDDIR_PARM)")
247
247
  touch '$@'
248
248
  endef
249
249
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@profoundlogic/codermake",
3
- "version": "1.3.0",
3
+ "version": "1.4.0",
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",
@@ -103,11 +103,19 @@ mymod.module: mymod.rpgle
103
103
  # Link modules into a program
104
104
  mypgm.pgm: mod1.module mod2.module
105
105
 
106
+ # Link with automatic BNDSRVPGM parameter
107
+ calc.pgm: calc.module utils.srvpgm
108
+
109
+ # Link with automatic BNDDIR parameter (order-only prereq)
110
+ calcd.pgm: calcd.module | app.bnddir
111
+
106
112
  # Create a service program from modules + export list
107
113
  mysrvpgm.srvpgm: mymod.module mymod.exports
108
114
  ```
109
115
 
110
- The `.exports` file is a text file listing exported procedure symbols:
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.
117
+
118
+ The `.exports` (or `.bnd`) file is a text file listing exported procedure symbols:
111
119
 
112
120
  ```
113
121
  STRPGMEXP PGMLVL(*CURRENT) SIGNATURE(*GEN)
@@ -129,7 +137,7 @@ ENDPGMEXP
129
137
  | `.clp` / `.cl` | `.pgm` | Program (*PGM) | `CRTCLPGM` |
130
138
  | `.proc.sql` | `.pgm` | SQL Procedure (*PGM) | `RUNSQLSTM` |
131
139
  | `.module` (1+) | `.pgm` | Program (*PGM) | `CRTPGM` |
132
- | `.module` + `.exports` | `.srvpgm` | Service Program (*SRVPGM) | `CRTSRVPGM` |
140
+ | `.module` + `.exports` or `.bnd` | `.srvpgm` | Service Program (*SRVPGM) | `CRTSRVPGM` |
133
141
  | `.dspf` | `.file` | Display File (*FILE) | `CRTDSPF` |
134
142
  | `.json` (RDF) | `.file` | Display File (*FILE) | `CRTDSPF` |
135
143
  | `.pf` | `.file` | Physical File (*FILE) | `CRTPF` |
@@ -56,14 +56,18 @@ getcount.pgm: getcount.proc.sql
56
56
 
57
57
  ### Program from modules
58
58
 
59
- Links one or more compiled modules into a program. All prerequisites must be `.module` targets.
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.
60
60
 
61
61
  ```makefile
62
62
  mypgm.pgm: mod1.module mod2.module
63
+ calc.pgm: calc.module utils.srvpgm
64
+ calcd.pgm: calcd.module | app.bnddir
63
65
  ```
64
66
 
65
67
  **CL command:** `CRTPGM PGM(LIB/MYPGM) MODULE(LIB/MOD1 LIB/MOD2)`
66
68
 
69
+ When `.srvpgm` prerequisites are present, `BNDSRVPGM(name ...)` is appended. When `.bnddir` prerequisites are present (normal or order-only), `BNDDIR(name ...)` is appended.
70
+
67
71
  ## Modules (.module)
68
72
 
69
73
  Modules are intermediate compile units that are linked into programs or service programs.
@@ -94,7 +98,7 @@ mymod.module: mymod.clle
94
98
 
95
99
  ## Service programs (.srvpgm)
96
100
 
97
- A service program is created from one or more modules plus an export list (`.exports` file). The export list defines which procedures are visible to callers.
101
+ A service program is created from one or more modules plus an export list (`.exports` or `.bnd` file). The export list defines which procedures are visible to callers.
98
102
 
99
103
  ```makefile
100
104
  mymod.module: mymod.rpgle
@@ -103,9 +107,17 @@ mysrvpgm.srvpgm: mymod.module mysrvpgm.exports
103
107
 
104
108
  **CL command:** `CRTSRVPGM SRVPGM(LIB/MYSRVPGM) MODULE(LIB/MYMOD) EXPORT(*SRCFILE) SRCSTMF('src/mysrvpgm.exports')`
105
109
 
106
- ### .exports file format
110
+ Service programs can also depend on other service programs or binding directories for automatic binding:
111
+
112
+ ```makefile
113
+ mysrvpgm.srvpgm: mymod.module mysrvpgm.exports dep.srvpgm
114
+ ```
115
+
116
+ This appends `BNDSRVPGM(DEP)` to the CRTSRVPGM command. `.bnddir` prerequisites (normal or order-only) append `BNDDIR(name)`.
117
+
118
+ ### .exports / .bnd file format
107
119
 
108
- The exports file is a plain text file with the following structure:
120
+ The exports file (using either `.exports` or `.bnd` extension) is a plain text file with the following structure:
109
121
 
110
122
  ```
111
123
  STRPGMEXP PGMLVL(*CURRENT) SIGNATURE(*GEN)