@maka/maka-cli 4.2.1 → 4.2.3

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.
Files changed (90) hide show
  1. package/dist/command.js +1 -1
  2. package/dist/commands/_index.js +1 -1
  3. package/dist/commands/aws/_index.js +1 -1
  4. package/dist/commands/aws/aws.command.js +1 -1
  5. package/dist/commands/aws/ci.sub.cmd.js +1 -1
  6. package/dist/commands/aws/ckp.sub.cmd.js +1 -1
  7. package/dist/commands/aws/csg.sub.cmd.js +1 -1
  8. package/dist/commands/aws/di.sub.cmd.js +1 -1
  9. package/dist/commands/aws/dks.sub.cmd.js +1 -1
  10. package/dist/commands/aws/rbi.sub.cmd.js +1 -1
  11. package/dist/commands/aws/sth.sub.cmd.js +1 -1
  12. package/dist/commands/aws/ti.sub.cmd.js +1 -1
  13. package/dist/commands/build/_index.js +1 -1
  14. package/dist/commands/build/build.js +1 -1
  15. package/dist/commands/build/docker.sub.cmd.js +1 -1
  16. package/dist/commands/create.js +1 -1
  17. package/dist/commands/debug.js +1 -1
  18. package/dist/commands/deploy.js +1 -1
  19. package/dist/commands/game/_index.js +1 -1
  20. package/dist/commands/game/battleship.sub.cmd.js +1 -1
  21. package/dist/commands/game/play.command.js +1 -1
  22. package/dist/commands/game/pong.sub.cmd.js +1 -1
  23. package/dist/commands/game/snake.sub.cmd.js +1 -1
  24. package/dist/commands/game/tetris.sub.cmd.js +1 -1
  25. package/dist/commands/generate.js +1 -1
  26. package/dist/commands/get/_index.js +1 -1
  27. package/dist/commands/get/get.command.js +1 -1
  28. package/dist/commands/get/global.sub.cmd.js +1 -1
  29. package/dist/commands/get/local.sub.cmd.js +1 -1
  30. package/dist/commands/help.js +1 -1
  31. package/dist/commands/install.js +1 -1
  32. package/dist/commands/jsdoc.js +1 -1
  33. package/dist/commands/login.js +1 -1
  34. package/dist/commands/logout.js +1 -1
  35. package/dist/commands/logs.js +1 -1
  36. package/dist/commands/maka.cmd.js +1 -1
  37. package/dist/commands/murder.js +1 -1
  38. package/dist/commands/proxy.js +1 -1
  39. package/dist/commands/reconfig.js +1 -1
  40. package/dist/commands/run.js +1 -1
  41. package/dist/commands/set/_index.js +1 -1
  42. package/dist/commands/set/global.sub.cmd.js +1 -1
  43. package/dist/commands/set/local.sub.cmd.js +1 -1
  44. package/dist/commands/set/set.command.js +1 -1
  45. package/dist/commands/ssh.js +1 -1
  46. package/dist/commands/ssl.js +1 -1
  47. package/dist/commands/test.js +1 -1
  48. package/dist/commands/version.js +1 -1
  49. package/dist/error.js +1 -1
  50. package/dist/generator.js +1 -1
  51. package/dist/generators/_index.js +1 -1
  52. package/dist/generators/api.js +1 -1
  53. package/dist/generators/collection.js +1 -1
  54. package/dist/generators/component.js +1 -1
  55. package/dist/generators/config.js +1 -1
  56. package/dist/generators/dbc.js +1 -1
  57. package/dist/generators/dockerfile.js +1 -1
  58. package/dist/generators/hook.js +1 -1
  59. package/dist/generators/kit.js +1 -1
  60. package/dist/generators/layout.js +1 -1
  61. package/dist/generators/maka.gen.js +1 -1
  62. package/dist/generators/methods.js +1 -1
  63. package/dist/generators/package.js +1 -1
  64. package/dist/generators/page.js +1 -1
  65. package/dist/generators/publish.js +1 -1
  66. package/dist/generators/route.js +1 -1
  67. package/dist/generators/scaffold.js +1 -1
  68. package/dist/generators/service.js +1 -1
  69. package/dist/generators/services/_index.js +1 -1
  70. package/dist/generators/services/translation.js +1 -1
  71. package/dist/maka.js +1 -1
  72. package/dist/tool.js +1 -1
  73. package/dist/tools/actions/actions.class.js +1 -1
  74. package/dist/tools/actions/actions.test.js +1 -1
  75. package/dist/tools/aws/aws.class.js +1 -1
  76. package/dist/tools/aws/aws.interfaces.js +1 -1
  77. package/dist/tools/docker/docker.class.js +1 -1
  78. package/dist/tools/docker/docker.interfaces.js +1 -1
  79. package/dist/tools/fsi/fsi.class.js +1 -1
  80. package/dist/tools/fsi/fsi.interfaces.js +1 -1
  81. package/dist/tools/https/https.class.js +1 -1
  82. package/dist/tools/https/https.interface.js +1 -1
  83. package/dist/tools/log/log.class.js +1 -1
  84. package/dist/tools/log/log.interfaces.js +1 -1
  85. package/dist/tools/spawn-async/spawn-async.class.js +1 -1
  86. package/dist/tools/spawn-async/spawn-async.interfaces.js +1 -1
  87. package/dist/tools/ssh/ssh.class.js +1 -1
  88. package/dist/tools/ssh/ssh.interfaces.js +1 -1
  89. package/dist/tools/ssl/ssl.class.js +1 -1
  90. package/package.json +1 -1
package/dist/command.js CHANGED
@@ -1 +1 @@
1
- const a0V=a0d;(function(a,b){const N=a0d,c=a();while(!![]){try{const d=-parseInt(N(0x1e4))/0x1+-parseInt(N(0x200))/0x2+-parseInt(N(0x1c4))/0x3*(parseInt(N(0x216))/0x4)+parseInt(N(0x21a))/0x5+parseInt(N(0x1e0))/0x6+-parseInt(N(0x1ed))/0x7+parseInt(N(0x20b))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0c,0xd17ee));const a0b=(function(){let a=!![];return function(b,c){const d=a?function(){const O=a0d;if(c){if(O(0x234)==='QAzPI')d[O(0x1c7)](e),f[O(0x23f)](0x0);else{const f=c['apply'](b,arguments);return c=null,f;}}}:function(){};return a=![],d;};}()),a0a=a0b(this,function(){const P=a0d;return a0a[P(0x235)]()[P(0x1f6)](P(0x248))['toString']()[P(0x1cc)](a0a)[P(0x1f6)]('(((.+)+)+)+$');});function a0c(){const ah=['_handler','then','Too\x20few\x20options','GZzOc','minOptsLength','AppData','8196188KPCPYc','No\x20aliases','tableList','done','keys','iIvbR','deploy','bright','PvITN','search','game','GLEsd','License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.','value','KNBDi','run','mustBeInMakaProject','OVNcy','Yavik','3220790egTjiW','minArgLength','woheP','vcNxb','DDenz','singleLicense','trialActive','VUnKb','invoke','UFPJD','qUAeD','31056880iygOKq','Name','Local','usage','nwpZf','keLSB','create','Avvbr','fsi','existsSync','validateMeteorInstall','4oCkypB','Commands:','ghTnI','help','4046770siQldA','There\x20is\x20no\x20Meteor\x20application\x20here','No\x20usage\x20provided.','kXTzv','PCYSf','assign','examples','mustHaveMeteorInstalled','maxArgLength','Please\x20run\x20\x22maka\x20install\x20meteor\x22','Alias','call','HIpbh','maxOptsLength','\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27','YrMCE','zCGnw','addCommand\x20requires\x20a\x20Command\x20instance','UqfLP','ycUam','To\x20use\x20these\x20pro\x20flags,\x20\x22','Missing\x20required\x20option:\x20','proFlags','Trial\x20License\x20Expires:\x20','Too\x20many\x20arguments','findCommand','IXmgi','toString','validateMakaProject','name','filter','next','runSubCommand','ZTNCy','validateParams','Command.create\x20requires\x20a\x20handler\x20function!','murder','exit','clfam','match','options','length','Command\x20not\x20found','description','function','forEach','(((.+)+)+)+$','KTDmy','homedir','eheFQ','AOnDh','Missing\x20required\x20options\x20','Too\x20many\x20options','To\x20use\x20this\x20command,\x20\x22','addCommand','HQhzR','NGkXv','NknAs','join','concat','roles','proCommands','push','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','split','svCmc','splice','TesGC','eQTWg','4072917PWYxZX','No\x20description\x20provided.','_commands','error','apply','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command','domainLicense','rNzYW','constructor','includes','sort','number','ixYlG','lBTYz','qOLoP','Command\x20requires\x20a\x20name','throw','Command\x20requires\x20a\x20handler\x20function','findProjectDirectory','Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','Invalid\x20options:\x20','HyPhl','VRzna','.meteor','WstzS','aliases','JfwZu','GynYJ','5895060LDYXJs','PxRnL','mivUE','parent','676962WiUZUq','notice','validateMakaSubscription'];a0c=function(){return ah;};return a0c();}a0a();var __awaiter=this&&this['__awaiter']||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){const Q=a0d;if(Q(0x1d9)!==Q(0x23b))g(f);else{d[Q(0x1c7)](Q(0x22f)+e);throw new f();}});}return new(c||(c=Promise))(function(f,g){const U=a0d;function h(k){const R=a0d;try{j(d[R(0x239)](k));}catch(l){g(l);}}function i(k){const S=a0d;try{S(0x212)===S(0x1fe)?c(d):j(d[S(0x1d4)](k));}catch(m){if(S(0x24c)!==S(0x24c)){const o=d[S(0x1c8)](m,arguments);return f=null,o;}else g(m);}}function j(k){const T=a0d;if(T(0x204)!==T(0x1da))k[T(0x1f0)]?f(k[T(0x1fa)]):e(k['value'])['then'](h,i);else{var m;if(!p)throw new E('Command.create\x20requires\x20some\x20options!');if(typeof r!==T(0x246))throw new F(T(0x23d));let n=new t(u,v);return w=x||y,z['assign'](n,{'parent':(m=A===null||B===void 0x0?void 0x0:C[T(0x242)])===null||m===void 0x0?void 0x0:m[T(0x237)]}),D[T(0x250)](n),n;}}j((d=d[U(0x1c8)](a,b||[]))['next']());});};import a0I from'path';import a0J from'os';import a0K from'fs';const homeDir=a0J[a0V(0x24a)]();import a0L from'cli-table';import a0M from'./commands/maka.cmd.js';import{Log}from'./tools/log/log.class.js';import{Tool}from'./tool.js';import{UsageError,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError}from'./error.js';let _prevCmd='';function a0d(a,b){const c=a0c();return a0d=function(d,e){d=d-0x1c2;let f=c[d];return f;},a0d(a,b);}export class Command extends Tool{constructor(a,b){const W=a0V;super();if(!a){if(W(0x1d0)==='wWvjh'){const e=this[W(0x236)]();if(!e)throw new c();}else throw new Error(W(0x1d7));}if(!a[W(0x237)]){if(W(0x202)===W(0x202))throw new Error(W(0x1d3));else return;}if(typeof b!=='function'){if(W(0x1f5)!==W(0x21d))throw new Error(W(0x1d5));else d(e[W(0x239)](f));}this[W(0x242)]=Object[W(0x21f)]({},a),this[W(0x237)]=this[W(0x242)][W(0x237)],this['_commands']=[],this[W(0x1e7)]=b['bind'](this);}static[a0V(0x211)](a,b,c){const X=a0V;var d;if(!a){if(X(0x22d)!==X(0x20a))throw new Error('Command.create\x20requires\x20some\x20options!');else{c[X(0x1c7)](X(0x232));throw new d();}}if(typeof b!==X(0x246)){if(X(0x25b)!=='tktIa')throw new Error(X(0x23d));else{d['error'](X(0x1d8)+e);throw new f();}}let e=new Command(a,b);return c=c||a0M,Object['assign'](e,{'parent':(d=c===null||c===void 0x0?void 0x0:c[X(0x242)])===null||d===void 0x0?void 0x0:d[X(0x237)]}),c[X(0x250)](e),e;}[a0V(0x241)](a){const Y=a0V;let b=[this['name']][Y(0x255)](this[Y(0x242)][Y(0x1dd)]||[]);return this['parent']&&b[Y(0x258)](this[Y(0x1e3)]),b[Y(0x1cd)](a);}['addCommand'](a){const Z=a0V;if(!(a instanceof Command))throw new Error(Z(0x22b));this['_commands'][Z(0x258)](a);}['validateMakaProject'](){const a0=a0V,a=this[a0(0x213)][a0(0x1d6)]();return a!==![]?!![]:![];}[a0V(0x215)](){const a1=a0V;let a=a0I[a1(0x254)](homeDir,a1(0x1db));const b=process['platform']==='win32';if(b){a=a0I[a1(0x254)](homeDir,a1(0x1ec),a1(0x20d),a1(0x1db));if(!a0K[a1(0x214)](a)){if(a1(0x229)!==a1(0x203))return![];else h['done']?i(j[a1(0x1fa)]):k(l[a1(0x1fa)])[a1(0x1e8)](m,n);}}else{if(a1(0x252)!==a1(0x1e1)){if(!a0K[a1(0x214)](a)){if(a1(0x24b)!==a1(0x24b))d(e[a1(0x1d4)](f));else return![];}}else throw new b(a1(0x22b));}return!![];}[a0V(0x1e6)](a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const a2=a0d;try{const c=this[a2(0x233)](a[0x0]);if(c){if('nwpZf'!==a2(0x20f))return this[a2(0x242)][a2(0x1dd)]||'No\x20aliases';else{const f=(c===null||c===void 0x0?void 0x0:c[a2(0x237)])||a[0x0],g=(c===null||c===void 0x0?void 0x0:c['parent'])||'',h=a[0x0],i=Object['keys'](b),j=yield this[a2(0x213)]['getPro']();!j&&(Log[a2(0x1c7)](a2(0x1f9)),process[a2(0x23f)](0x1));const k=(j===null||j===void 0x0?void 0x0:j['proCommands'][a2(0x1cd)](f))||(j===null||j===void 0x0?void 0x0:j[a2(0x257)][a2(0x1cd)](g)),l=!(j===null||j===void 0x0?void 0x0:j['roles'][a2(0x1cd)](a2(0x205)))&&!(j===null||j===void 0x0?void 0x0:j[a2(0x256)][a2(0x1cd)](a2(0x1ca)))&&!(j===null||j===void 0x0?void 0x0:j[a2(0x206)]);if(k&&l)throw a2(0x24f)+a[0x0]+a2(0x228);if(i['length']>0x0){if(a2(0x1dc)!==a2(0x1dc))throw new b();else{const n=j===null||j===void 0x0?void 0x0:j[a2(0x230)][a2(0x238)](o=>i[a2(0x1cd)](o));if(n&&n['length']>0x0&&l)throw a2(0x22e)+(n===null||n===void 0x0?void 0x0:n[a2(0x254)](',\x20'))+a2(0x228);}}if(h===a2(0x1f3)){const o=yield this['fsi']['getPro'](),p=o===null||o===void 0x0?void 0x0:o[a2(0x257)][a2(0x1cd)](a[0x0]+'\x20'+a[0x1]);if(p&&l)throw'To\x20use\x20this\x20command,\x20\x22'+a[0x0]+a2(0x228);}(j===null||j===void 0x0?void 0x0:j[a2(0x206)])&&Log[a2(0x1e5)]('Trial\x20License\x20Expires:\x20'+j['trialExpirationDate']['split']('T')[0x0]);}}}catch(q){throw q;}});}[a0V(0x23c)](a,b,c){const a3=a0V,{usage:d,requiredOpts:requiredOpts=[],description:e,examples:f}=c;let {validOpts:validOpts=[]}=c;const g=Object[a3(0x1f1)](b);if((requiredOpts===null||requiredOpts===void 0x0?void 0x0:requiredOpts[a3(0x243)])>0x0){if(a3(0x1ff)!==a3(0x1ff))return![];else{if(g[a3(0x243)]===0x0){Log[a3(0x1c7)](a3(0x24d)+requiredOpts[a3(0x254)](',\x20'));throw new UsageError();}requiredOpts['forEach'](i=>{const a4=a3;if(a4(0x1c2)!==a4(0x249)){if(!g[a4(0x1cd)](i)){Log['error'](a4(0x22f)+i);throw new UsageError();}}else throw new b(a4(0x1d5));});}}validOpts=validOpts[a3(0x255)](requiredOpts),(validOpts===null||validOpts===void 0x0?void 0x0:validOpts[a3(0x243)])>0x0&&(validOpts[a3(0x258)](a3(0x219)),g[a3(0x247)](i=>{const a5=a3;if(!validOpts[a5(0x1cd)](i)){if(a5(0x21e)===a5(0x21e)){Log[a5(0x1c7)](a5(0x1d8)+i);throw new UsageError();}else c[a5(0x1e5)](a5(0x231)+d['trialExpirationDate'][a5(0x25a)]('T')[0x0]);}}));}[a0V(0x1fc)](a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const a6=a0d;try{if('jgZst'!=='jgZst'){let d=[this[a6(0x237)]][a6(0x255)](this[a6(0x242)][a6(0x1dd)]||[]);return this[a6(0x1e3)]&&d['push'](this['parent']),d['includes'](b);}else{a=a||[],b=b||{};try{a6(0x1fb)!==a6(0x1fb)?b[a6(0x23f)](0x1):yield this[a6(0x1e6)](a,b);}catch(f){Log['error'](f),process[a6(0x23f)](0x0);}yield this[a6(0x208)](a,b);}}catch(g){process[a6(0x23f)](0x1);}});}['invoke'](a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const a7=a0d;if('rNzYW'===a7(0x1cb)){const {usage:usage='',description:description='',examples:examples=[]}=this[a7(0x242)];this[a7(0x23c)](a,b,this['options']);try{if(a7(0x1ea)!=='GZzOc')return c[a7(0x235)]()[a7(0x1f6)](a7(0x248))[a7(0x235)]()[a7(0x1cc)](d)[a7(0x1f6)]('(((.+)+)+)+$');else{if(this[a7(0x242)][a7(0x1fd)]){const d=this[a7(0x236)]();if(!d){if(a7(0x1f2)===a7(0x1f2))throw new MustBeInProjectError();else throw new b(a7(0x1d7));}}if(this[a7(0x242)][a7(0x221)]){const g=this['validateMeteorInstall']();if(!g){if('GeJmI'==='GeJmI')throw new NoMeteorFoundError();else f[a7(0x1c7)](a7(0x1c9)),g['usage'](h,i,j);}}if(typeof this[a7(0x242)]['minArgLength']==='number'){if(a7(0x218)!=='YIqor'){if(a[a7(0x243)]<this[a7(0x242)][a7(0x201)]){Log['error']('Too\x20few\x20arguments');throw new UsageError();}}else throw a7(0x24f)+b[0x0]+'\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27';}if(typeof this[a7(0x242)][a7(0x222)]===a7(0x1cf)){if(a[a7(0x243)]>=this['options'][a7(0x222)]){Log[a7(0x1c7)](a7(0x232));throw new UsageError();}}if(typeof this[a7(0x242)][a7(0x1eb)]===a7(0x1cf)){if('ykOOU'===a7(0x1d1))throw b;else{if(Object[a7(0x1f1)](b)['length']<this['options'][a7(0x1eb)]){if(a7(0x22c)!=='cXFat'){Log[a7(0x1c7)](a7(0x1e9));throw new UsageError();}else{c[a7(0x1c7)]('Too\x20few\x20options');throw new d();}}}}if(typeof this[a7(0x242)][a7(0x227)]===a7(0x1cf)){if('LMhEH'==='LMhEH'){if(Object[a7(0x1f1)](b)[a7(0x243)]>=this['options'][a7(0x227)]){if(a7(0x1f8)!==a7(0x22a)){Log[a7(0x1c7)](a7(0x24e));throw new UsageError();}else try{i(j[a7(0x1d4)](k));}catch(m){m(m);}}}else return this[a7(0x242)][a7(0x245)]||a7(0x1c5);}if((a[0x0]===_prevCmd||a[a7(0x243)]===0x0)&&b[a7(0x219)])throw new UsageError();_prevCmd=a[0x0],yield this[a7(0x1e7)][a7(0x225)](this,a,b);}}catch(n){if(a7(0x251)===a7(0x1de)){const p=this[a7(0x215)]();if(!p)throw new c();}else{if(n instanceof UsageError){if(a7(0x240)!==a7(0x240)){if(!c['existsSync'](d))return![];}else this[a7(0x1c6)][a7(0x243)]>0x0&&b[a7(0x219)]&&(a7(0x1c3)==='Eppin'?g[a7(0x237)]!==a7(0x23e)&&h[a7(0x237)]!==a7(0x1f7)&&m[a7(0x258)]([n[a7(0x237)],o[a7(0x1dd)](),p['description']()]):(Log[a7(0x1e5)](a7(0x217)),this[a7(0x1ef)](this[a7(0x1c6)]))),Log[a7(0x20e)](description,examples,usage);}else{if(n instanceof MustBeInProjectError)a7(0x1e2)!==a7(0x1e2)?(g[a7(0x1c7)](a7(0x259)),h['notice']('Please\x20run\x20\x22maka\x20install\x20meteor\x22'),i['usage'](j,k,l)):(Log[a7(0x1c7)]('You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command'),Log[a7(0x20e)](description,examples,usage));else{if(n instanceof NoMeteorFoundError)Log[a7(0x1c7)](a7(0x259)),Log[a7(0x1e5)](a7(0x223)),Log[a7(0x20e)](description,examples,usage);else{if(n instanceof NoMeteorAppFoundError)Log[a7(0x1c7)](a7(0x21b)),Log[a7(0x20e)](description,examples,usage);else{if(a7(0x253)!=='NknAs'){d[a7(0x1c7)](a7(0x24d)+n[a7(0x254)](',\x20'));throw new f();}else throw n;}}}}process[a7(0x23f)](0x1);}}}else{f=g[a7(0x254)](h,a7(0x1ec),a7(0x20d),a7(0x1db));if(!i[a7(0x214)](j))return![];}});}[a0V(0x1ef)](a){const a8=a0V,b=new a0L({});b[a8(0x258)]([a8(0x20c),a8(0x224),'Description']),a[a8(0x1ce)]()[a8(0x247)](c=>{const a9=a8;if(c['name']!==a9(0x23e)&&c[a9(0x237)]!==a9(0x1f7)){if(a9(0x1df)===a9(0x209))return this[a9(0x242)]['usage']||a9(0x21c);else b[a9(0x258)]([c[a9(0x237)],c[a9(0x1dd)](),c[a9(0x245)]()]);}}),Log[a8(0x1f4)](b[a8(0x235)]());}[a0V(0x233)](a){const aa=a0V;return this[aa(0x1c6)]['find'](b=>b[aa(0x241)](a));}['findSubCommand'](a){const ab=a0V;let b=a===null||a===void 0x0?void 0x0:a[ab(0x25a)](':');if(b)return a=b[0x0],this['findCommand'](a);else return;}[a0V(0x23a)](a,b,c){return __awaiter(this,void 0x0,void 0x0,function*(){const ac=a0d;try{let d=a[ac(0x25a)](':');a=d[0x0];let f=d[0x1];f&&b[ac(0x25c)](0x0,0x0,f);let g=this['findCommand'](a);if(g)ac(0x210)==='DcfrD'?(this['_commands']['length']>0x0&&g['help']&&(m[ac(0x1e5)](ac(0x217)),this[ac(0x1ef)](this[ac(0x1c6)])),i[ac(0x20e)](j,k,l)):yield g[ac(0x1fc)](b,c);else{if(ac(0x1d2)===ac(0x207))throw ac(0x244);else throw ac(0x244);}}catch(j){if(ac(0x226)!==ac(0x226))throw c[ac(0x1c7)](d);else throw Log[ac(0x1c7)](j);}});}['description'](){const ad=a0V;return this['options'][ad(0x245)]||ad(0x1c5);}[a0V(0x20e)](){const ae=a0V;return this['options']['usage']||ae(0x21c);}[a0V(0x220)](){const af=a0V;return this[af(0x242)][af(0x220)]||[];}['aliases'](){const ag=a0V;return this[ag(0x242)][ag(0x1dd)]||ag(0x1ee);}}
1
+ const a0Q=a0d;(function(a,b){const N=a0d,c=a();while(!![]){try{const d=-parseInt(N(0x1c8))/0x1*(parseInt(N(0x207))/0x2)+parseInt(N(0x1fd))/0x3+-parseInt(N(0x1b7))/0x4+parseInt(N(0x1e2))/0x5+-parseInt(N(0x20a))/0x6+-parseInt(N(0x1cc))/0x7*(parseInt(N(0x1af))/0x8)+parseInt(N(0x20b))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0c,0x3bdb3));function a0d(a,b){const c=a0c();return a0d=function(d,e){d=d-0x19b;let f=c[d];return f;},a0d(a,b);}const a0b=(function(){let a=!![];return function(b,c){const d=a?function(){const O=a0d;if(c){if(O(0x203)!==O(0x21f)){const e=c[O(0x209)](b,arguments);return c=null,e;}else{d[O(0x201)]('Missing\x20required\x20options\x20'+e[O(0x1d2)](',\x20'));throw new f();}}}:function(){};return a=![],d;};}()),a0a=a0b(this,function(){const P=a0d;return a0a[P(0x1ee)]()[P(0x1c1)](P(0x1dc))['toString']()[P(0x206)](a0a)['search'](P(0x1dc));});a0a();function a0c(){const ai=['sort','runSubCommand','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command','invoke','Name','kmqTf','DVayt','number','toString','validateParams','function','aliases','kSjwG','Trial\x20License\x20Expires:\x20','Missing\x20required\x20options\x20','bZIIh','There\x20is\x20no\x20Meteor\x20application\x20here','Command\x20requires\x20a\x20handler\x20function','No\x20description\x20provided.','Alias','roles','_handler','__awaiter','1230429kTqjUE','existsSync','Command.create\x20requires\x20some\x20options!','Commands:','error','To\x20use\x20this\x20command,\x20\x22','Mgrdj','addCommand','CVuMr','constructor','82WSmuiU','find','apply','2902476kBiJbG','10114272oWEwDF','Invalid\x20options:\x20','ltLcI','tableList','bind','bright','keys','value','notice','then','CULRf','maxOptsLength','includes','win32','assign','next','push','Too\x20few\x20options','_commands','BWFjt','bIakb','\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27','done','getPro','validateMakaSubscription','validateMeteorInstall','mustHaveMeteorInstalled','forEach','kWJuA','usage','homedir','AppData','rmtgM','minArgLength','Command\x20requires\x20a\x20name','UqjGk','findCommand','uVQjI','Command\x20not\x20found','fsi','findProjectDirectory','concat','PpVAM','create','16QeKMyX','findSubCommand','exit','split','pVumd','mIvXf','fJUJj','mustBeInMakaProject','147872VsxxuF','name','xGQNi','Too\x20few\x20arguments','minOptsLength','LTYiS','length','match','.meteor','Please\x20run\x20\x22maka\x20install\x20meteor\x22','search','TQyZe','Iruii','FTaKq','help','Description','trialActive','9153kagAty','options','Too\x20many\x20options','RzKzo','1686384AbDAeP','examples','proCommands','WsSut','yijRh','murder','join','game','validateMakaProject','parent','run','splice','maxArgLength','License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.','call','nQLNA','(((.+)+)+)+$','description','Missing\x20required\x20option:\x20','deploy','aSpDj','platform','445155XEKslD','singleLicense','addCommand\x20requires\x20a\x20Command\x20instance','SRgyU'];a0c=function(){return ai;};return a0c();}var __awaiter=this&&this[a0Q(0x1fc)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){const R=a0d;if(R(0x1c4)!=='FTaKq')throw new b(R(0x1f7));else g(f);});}return new(c||(c=Promise))(function(f,g){const V=a0d;function h(k){const S=a0d;if('OOguX'!=='OOguX'){c['error'](S(0x1ba));throw new d();}else try{j(d[S(0x21a)](k));}catch(m){g(m);}}function i(k){const T=a0d;if('LongE'==='LongE')try{j(d['throw'](k));}catch(l){if(T(0x205)===T(0x1f2))throw new b();else g(l);}else g[T(0x1b8)]!==T(0x1d1)&&h[T(0x1b8)]!==T(0x1d3)&&m['push']([n['name'],o['aliases'](),p[T(0x1dd)]()]);}function j(k){const U=a0d;U(0x1a8)===U(0x1a8)?k[U(0x221)]?f(k[U(0x212)]):e(k[U(0x212)])[U(0x214)](h,i):e[U(0x21b)]([f['name'],g[U(0x1f1)](),h['description']()]);}j((d=d[V(0x209)](a,b||[]))[V(0x21a)]());});};import a0I from'path';import a0J from'os';import a0K from'fs';const homeDir=a0J[a0Q(0x1a1)]();import a0L from'cli-table';import a0M from'./commands/maka.cmd.js';import{Log}from'./tools/log/log.class.js';import{Tool}from'./tool.js';import{UsageError,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError}from'./error.js';let _prevCmd='';export class Command extends Tool{constructor(a,b){const W=a0Q;super();if(!a){if(W(0x1ec)!=='GjYlj')throw new Error('Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object');else throw new b(W(0x1e4));}if(!a['name'])throw new Error(W(0x1a5));if(typeof b!=='function'){if('vCkBC'==='vCkBC')throw new Error(W(0x1f7));else throw new b();}this[W(0x1c9)]=Object[W(0x219)]({},a),this[W(0x1b8)]=this[W(0x1c9)][W(0x1b8)],this[W(0x21d)]=[],this[W(0x1fb)]=b[W(0x20f)](this);}static[a0Q(0x1ae)](a,b,c){const X=a0Q;var d;if(!a){if(X(0x1b9)!=='xGQNi'){d[X(0x201)](X(0x1de)+e);throw new f();}else throw new Error(X(0x1ff));}if(typeof b!==X(0x1f0)){if(X(0x1b3)!==X(0x1d0))throw new Error('Command.create\x20requires\x20a\x20handler\x20function!');else g['error']('Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly'),h[X(0x213)](X(0x1c0)),i[X(0x1a0)](j,k,l);}let e=new Command(a,b);return c=c||a0M,Object[X(0x219)](e,{'parent':(d=c===null||c===void 0x0?void 0x0:c[X(0x1c9)])===null||d===void 0x0?void 0x0:d[X(0x1b8)]}),c[X(0x204)](e),e;}[a0Q(0x1be)](a){const Y=a0Q;let b=[this[Y(0x1b8)]][Y(0x1ac)](this[Y(0x1c9)][Y(0x1f1)]||[]);if(this['parent']){if(Y(0x19f)!=='kWJuA')throw'Command\x20not\x20found';else b[Y(0x21b)](this[Y(0x1d5)]);}return b[Y(0x217)](a);}[a0Q(0x204)](a){const Z=a0Q;if(!(a instanceof Command)){if(Z(0x1c3)===Z(0x1c3))throw new Error(Z(0x1e4));else throw b;}this[Z(0x21d)][Z(0x21b)](a);}[a0Q(0x1d4)](){const a0=a0Q,a=this[a0(0x1aa)][a0(0x1ab)]();return a!==![]?!![]:![];}[a0Q(0x19c)](){const a1=a0Q;let a=a0I[a1(0x1d2)](homeDir,'.meteor');const b=process[a1(0x1e1)]===a1(0x218);if(b){a=a0I[a1(0x1d2)](homeDir,a1(0x1a2),'Local',a1(0x1bf));if(!a0K[a1(0x1fe)](a)){if(a1(0x1a6)!==a1(0x1e0))return![];else f['push'](a1(0x1c5)),g[a1(0x19e)](q=>{const a2=a1;if(!k['includes'](q)){n[a2(0x201)](a2(0x20c)+q);throw new o();}});}}else{if(a1(0x215)===a1(0x1eb))return this[a1(0x1c9)][a1(0x1dd)]||a1(0x1f8);else{if(!a0K[a1(0x1fe)](a))return![];}}return!![];}['validateMakaSubscription'](a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const a3=a0d;if('vcHuV'===a3(0x1bc)){c[a3(0x201)]('Too\x20many\x20options');throw new d();}else try{const d=this[a3(0x1a7)](a[0x0]);if(d){if(a3(0x1a3)===a3(0x1e5))d[a3(0x201)](e),f[a3(0x1b1)](0x0);else{const g=(d===null||d===void 0x0?void 0x0:d[a3(0x1b8)])||a[0x0],h=(d===null||d===void 0x0?void 0x0:d[a3(0x1d5)])||'',i=a[0x0],j=Object['keys'](b),k=yield this['fsi'][a3(0x222)]();!k&&(Log[a3(0x201)](a3(0x1d9)),process['exit'](0x1));const l=(k===null||k===void 0x0?void 0x0:k[a3(0x1ce)][a3(0x217)](g))||(k===null||k===void 0x0?void 0x0:k['proCommands'][a3(0x217)](h)),m=!(k===null||k===void 0x0?void 0x0:k[a3(0x1fa)][a3(0x217)](a3(0x1e3)))&&!(k===null||k===void 0x0?void 0x0:k[a3(0x1fa)][a3(0x217)]('domainLicense'))&&!(k===null||k===void 0x0?void 0x0:k[a3(0x1c7)]);if(l&&m){if('viAJS'!=='viAJS')return this[a3(0x1c9)][a3(0x1cd)]||[];else throw a3(0x202)+a[0x0]+'\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27';}if(j[a3(0x1bd)]>0x0){const o=k===null||k===void 0x0?void 0x0:k['proFlags']['filter'](p=>j[a3(0x217)](p));if(o&&o[a3(0x1bd)]>0x0&&m)throw'To\x20use\x20these\x20pro\x20flags,\x20\x22'+(o===null||o===void 0x0?void 0x0:o[a3(0x1d2)](',\x20'))+a3(0x220);}if(i===a3(0x1df)){const p=yield this[a3(0x1aa)]['getPro'](),q=p===null||p===void 0x0?void 0x0:p['proCommands'][a3(0x217)](a[0x0]+'\x20'+a[0x1]);if(q&&m)throw'To\x20use\x20this\x20command,\x20\x22'+a[0x0]+a3(0x220);}(k===null||k===void 0x0?void 0x0:k[a3(0x1c7)])&&Log[a3(0x213)](a3(0x1f3)+k['trialExpirationDate'][a3(0x1b2)]('T')[0x0]);}}}catch(r){throw r;}});}[a0Q(0x1ef)](a,b,c){const a4=a0Q,{usage:d,requiredOpts:requiredOpts=[],description:e,examples:f}=c;let {validOpts:validOpts=[]}=c;const g=Object[a4(0x211)](b);if((requiredOpts===null||requiredOpts===void 0x0?void 0x0:requiredOpts['length'])>0x0){if(g[a4(0x1bd)]===0x0){Log[a4(0x201)](a4(0x1f4)+requiredOpts['join'](',\x20'));throw new UsageError();}requiredOpts[a4(0x19e)](h=>{const a5=a4;if(!g[a5(0x217)](h)){Log[a5(0x201)](a5(0x1de)+h);throw new UsageError();}});}validOpts=validOpts['concat'](requiredOpts);if((validOpts===null||validOpts===void 0x0?void 0x0:validOpts[a4(0x1bd)])>0x0){if(a4(0x1b4)!==a4(0x1b5))validOpts['push'](a4(0x1c5)),g[a4(0x19e)](h=>{const a6=a4;if(!validOpts[a6(0x217)](h)){if(a6(0x1c2)===a6(0x20d))return![];else{Log[a6(0x201)](a6(0x20c)+h);throw new UsageError();}}});else try{i(j[a4(0x21a)](k));}catch(i){m(i);}}}[a0Q(0x1d6)](a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const a7=a0d;try{a=a||[],b=b||{};try{yield this[a7(0x19b)](a,b);}catch(c){if('GGGsN'!=='GGGsN'){if(!c[a7(0x1fe)](d))return![];}else Log['error'](c),process[a7(0x1b1)](0x0);}yield this['invoke'](a,b);}catch(f){process['exit'](0x1);}});}[a0Q(0x1e9)](a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const a8=a0d;if(a8(0x1f5)===a8(0x1f5)){const {usage:usage='',description:description='',examples:examples=[]}=this[a8(0x1c9)];this[a8(0x1ef)](a,b,this[a8(0x1c9)]);try{if(this[a8(0x1c9)][a8(0x1b6)]){const c=this[a8(0x1d4)]();if(!c)throw new MustBeInProjectError();}if(this[a8(0x1c9)][a8(0x19d)]){const d=this['validateMeteorInstall']();if(!d)throw new NoMeteorFoundError();}if(typeof this['options'][a8(0x1a4)]===a8(0x1ed)){if('HdOKR'!=='gaIkI'){if(a[a8(0x1bd)]<this[a8(0x1c9)]['minArgLength']){Log[a8(0x201)](a8(0x1ba));throw new UsageError();}}else b[a8(0x21b)](this[a8(0x1d5)]);}if(typeof this[a8(0x1c9)]['maxArgLength']===a8(0x1ed)){if('orekG'==='orekG'){if(a[a8(0x1bd)]>=this[a8(0x1c9)][a8(0x1d8)]){if('PpVAM'!==a8(0x1ad)){c[a8(0x201)](a8(0x21c));throw new d();}else{Log['error']('Too\x20many\x20arguments');throw new UsageError();}}}else{if(e){const i=i[a8(0x209)](j,arguments);return k=null,i;}}}if(typeof this[a8(0x1c9)][a8(0x1bb)]===a8(0x1ed)){if('wMfwQ'===a8(0x1cf))return this[a8(0x1c9)][a8(0x1a0)]||'No\x20usage\x20provided.';else{if(Object[a8(0x211)](b)['length']<this['options']['minOptsLength']){if(a8(0x1db)==='fjNXj')throw'To\x20use\x20this\x20command,\x20\x22'+b[0x0]+a8(0x220);else{Log['error'](a8(0x21c));throw new UsageError();}}}}if(typeof this[a8(0x1c9)]['maxOptsLength']===a8(0x1ed)){if(Object[a8(0x211)](b)[a8(0x1bd)]>=this[a8(0x1c9)][a8(0x216)]){Log[a8(0x201)](a8(0x1ca));throw new UsageError();}}if((a[0x0]===_prevCmd||a[a8(0x1bd)]===0x0)&&b['help'])throw new UsageError();_prevCmd=a[0x0],yield this[a8(0x1fb)][a8(0x1da)](this,a,b);}catch(k){if(k instanceof UsageError)this[a8(0x21d)][a8(0x1bd)]>0x0&&b['help']&&(Log[a8(0x213)](a8(0x200)),this[a8(0x20e)](this[a8(0x21d)])),Log[a8(0x1a0)](description,examples,usage);else{if(k instanceof MustBeInProjectError)'tqhhU'!==a8(0x21e)?(Log['error'](a8(0x1e8)),Log[a8(0x1a0)](description,examples,usage)):b['exit'](0x1);else{if(k instanceof NoMeteorFoundError)Log['error']('Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly'),Log[a8(0x213)](a8(0x1c0)),Log[a8(0x1a0)](description,examples,usage);else{if(k instanceof NoMeteorAppFoundError){if('RzKzo'!==a8(0x1cb))throw'To\x20use\x20these\x20pro\x20flags,\x20\x22'+(d===null||k===void 0x0?void 0x0:f[a8(0x1d2)](',\x20'))+a8(0x220);else Log['error'](a8(0x1f6)),Log[a8(0x1a0)](description,examples,usage);}else throw k;}}}process['exit'](0x1);}}else{if(d[a8(0x1bd)]<this[a8(0x1c9)]['minArgLength']){g['error'](a8(0x1ba));throw new h();}}});}['tableList'](a){const a9=a0Q,b=new a0L({});b['push']([a9(0x1ea),a9(0x1f9),a9(0x1c6)]),a[a9(0x1e6)]()[a9(0x19e)](c=>{const aa=a9;c[aa(0x1b8)]!=='murder'&&c[aa(0x1b8)]!==aa(0x1d3)&&b[aa(0x21b)]([c[aa(0x1b8)],c[aa(0x1f1)](),c[aa(0x1dd)]()]);}),Log[a9(0x210)](b[a9(0x1ee)]());}['findCommand'](a){const ab=a0Q;return this[ab(0x21d)][ab(0x208)](b=>b[ab(0x1be)](a));}[a0Q(0x1b0)](a){const ac=a0Q;let b=a===null||a===void 0x0?void 0x0:a[ac(0x1b2)](':');if(b)return a=b[0x0],this[ac(0x1a7)](a);else return;}[a0Q(0x1e7)](a,b,c){return __awaiter(this,void 0x0,void 0x0,function*(){const ad=a0d;try{let d=a[ad(0x1b2)](':');a=d[0x0];let f=d[0x1];f&&b[ad(0x1d7)](0x0,0x0,f);let g=this[ad(0x1a7)](a);if(g)yield g[ad(0x1d6)](b,c);else throw ad(0x1a9);}catch(h){throw Log[ad(0x201)](h);}});}[a0Q(0x1dd)](){const ae=a0Q;return this[ae(0x1c9)][ae(0x1dd)]||ae(0x1f8);}['usage'](){const af=a0Q;return this[af(0x1c9)]['usage']||'No\x20usage\x20provided.';}[a0Q(0x1cd)](){const ag=a0Q;return this[ag(0x1c9)]['examples']||[];}[a0Q(0x1f1)](){const ah=a0Q;return this[ah(0x1c9)][ah(0x1f1)]||'No\x20aliases';}}
@@ -1 +1 @@
1
- (function(a,b){var u=a1d,c=a();while(!![]){try{var d=-parseInt(u(0xa6))/0x1*(-parseInt(u(0xa7))/0x2)+-parseInt(u(0xa5))/0x3+parseInt(u(0xa8))/0x4+-parseInt(u(0xa1))/0x5+-parseInt(u(0x9e))/0x6*(parseInt(u(0xa3))/0x7)+-parseInt(u(0xa9))/0x8+-parseInt(u(0xa0))/0x9*(-parseInt(u(0xa2))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a1c,0x8cd18));var a1b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a1a=a1b(this,function(){var v=a1d;return a1a[v(0x9f)]()['search']('(((.+)+)+)+$')['toString']()['constructor'](a1a)[v(0xa4)](v(0x9d));});a1a();import'./aws/_index.js';import'./set/_index.js';function a1c(){var w=['35574fuSUbo','toString','3266793VKgGOi','2668565fkjAmq','50DDFAFj','1267cBraLd','search','313068bQBSQh','2425oOLrFs','202kWUNmB','4414324cHvWUE','7003048BLcvUt','(((.+)+)+)+$'];a1c=function(){return w;};return a1c();}import'./get/_index.js';import'./game/_index.js';import'./build/_index.js';import'./create.js';import'./debug.js';import'./deploy.js';function a1d(a,b){var c=a1c();return a1d=function(d,e){d=d-0x9d;var f=c[d];return f;},a1d(a,b);}import'./generate.js';import'./help.js';import'./install.js';import'./login.js';import'./logout.js';import'./logs.js';import'./maka.cmd.js';import'./reconfig.js';import'./run.js';import'./ssh.js';import'./ssl.js';import'./test.js';import'./version.js';import'./murder.js';import'./proxy.js';
1
+ (function(a,b){var u=a1d,c=a();while(!![]){try{var d=parseInt(u(0x1c2))/0x1*(-parseInt(u(0x1bd))/0x2)+-parseInt(u(0x1c4))/0x3+parseInt(u(0x1c3))/0x4*(parseInt(u(0x1bc))/0x5)+-parseInt(u(0x1bf))/0x6+parseInt(u(0x1c0))/0x7*(parseInt(u(0x1be))/0x8)+-parseInt(u(0x1c1))/0x9*(-parseInt(u(0x1c6))/0xa)+parseInt(u(0x1c7))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a1c,0x83f5f));function a1c(){var w=['search','11030PAkMjw','14ezjbnB','384xouzyw','3788058soTKll','10514aouvTN','27hHFjot','71252DkwpiB','628jYLEmP','56553wSunWN','toString','1384780JqhqZI','9411567sGEhYG','(((.+)+)+)+$','constructor'];a1c=function(){return w;};return a1c();}var a1b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a1a=a1b(this,function(){var v=a1d;return a1a[v(0x1c5)]()[v(0x1ca)](v(0x1c8))['toString']()[v(0x1c9)](a1a)[v(0x1ca)](v(0x1c8));});a1a();import'./aws/_index.js';import'./set/_index.js';import'./get/_index.js';import'./game/_index.js';import'./build/_index.js';import'./create.js';import'./debug.js';import'./deploy.js';import'./generate.js';import'./help.js';import'./install.js';import'./login.js';import'./logout.js';import'./logs.js';import'./maka.cmd.js';import'./reconfig.js';import'./run.js';import'./ssh.js';import'./ssl.js';import'./test.js';import'./version.js';import'./murder.js';function a1d(a,b){var c=a1c();return a1d=function(d,e){d=d-0x1bc;var f=c[d];return f;},a1d(a,b);}import'./proxy.js';
@@ -1 +1 @@
1
- (function(a,b){var u=a2d,c=a();while(!![]){try{var d=-parseInt(u(0x127))/0x1*(parseInt(u(0x129))/0x2)+-parseInt(u(0x12a))/0x3*(-parseInt(u(0x123))/0x4)+parseInt(u(0x11d))/0x5+parseInt(u(0x122))/0x6*(-parseInt(u(0x120))/0x7)+parseInt(u(0x11f))/0x8+parseInt(u(0x125))/0x9*(parseInt(u(0x121))/0xa)+parseInt(u(0x12b))/0xb*(-parseInt(u(0x126))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a2c,0x62f98));function a2c(){var w=['16087944uGRcez','1HyTkao','search','276382wXljEm','862815eCcEBG','11VInFQs','constructor','2264350TQcrir','(((.+)+)+)+$','3685456qLerIm','769181cpacvi','30wuyaha','6nAxZeL','8jRyKYJ','toString','1516122OxBXcI'];a2c=function(){return w;};return a2c();}var a2b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a2a=a2b(this,function(){var v=a2d;return a2a[v(0x124)]()[v(0x128)](v(0x11e))[v(0x124)]()[v(0x12c)](a2a)[v(0x128)](v(0x11e));});a2a();import'./aws.command.js';function a2d(a,b){var c=a2c();return a2d=function(d,e){d=d-0x11d;var f=c[d];return f;},a2d(a,b);}import'./ci.sub.cmd.js';import'./ckp.sub.cmd.js';import'./csg.sub.cmd.js';import'./di.sub.cmd.js';import'./dks.sub.cmd.js';import'./rbi.sub.cmd.js';import'./sth.sub.cmd.js';import'./ti.sub.cmd.js';
1
+ (function(a,b){var u=a2d,c=a();while(!![]){try{var d=parseInt(u(0xfe))/0x1*(-parseInt(u(0x101))/0x2)+-parseInt(u(0x108))/0x3+-parseInt(u(0x102))/0x4+-parseInt(u(0x109))/0x5*(-parseInt(u(0xfd))/0x6)+parseInt(u(0xff))/0x7+parseInt(u(0x100))/0x8+-parseInt(u(0x107))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a2c,0x94598));var a2b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a2a=a2b(this,function(){var v=a2d;return a2a['toString']()['search'](v(0x106))[v(0x105)]()[v(0x103)](a2a)[v(0x104)](v(0x106));});a2a();function a2c(){var w=['912852aNNQqv','constructor','search','toString','(((.+)+)+)+$','5163489CkvCzb','128637kammdV','195KnFuhP','177402jCkuht','827wTQLQf','7247457gUsiIk','2302520YDerty','2476eRKEmK'];a2c=function(){return w;};return a2c();}import'./aws.command.js';import'./ci.sub.cmd.js';import'./ckp.sub.cmd.js';import'./csg.sub.cmd.js';import'./di.sub.cmd.js';function a2d(a,b){var c=a2c();return a2d=function(d,e){d=d-0xfd;var f=c[d];return f;},a2d(a,b);}import'./dks.sub.cmd.js';import'./rbi.sub.cmd.js';import'./sth.sub.cmd.js';import'./ti.sub.cmd.js';
@@ -1 +1 @@
1
- const a3z=a3d;(function(a,b){const w=a3d,c=a();while(!![]){try{const d=-parseInt(w(0xd7))/0x1*(parseInt(w(0xdd))/0x2)+parseInt(w(0xe9))/0x3+-parseInt(w(0xec))/0x4+parseInt(w(0xdc))/0x5*(-parseInt(w(0xd3))/0x6)+-parseInt(w(0xda))/0x7*(parseInt(w(0xde))/0x8)+parseInt(w(0xd2))/0x9+parseInt(w(0xe3))/0xa*(parseInt(w(0xdf))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a3c,0xce579));const a3b=(function(){let a=!![];return function(b,c){const d=a?function(){const x=a3d;if(c){const e=c[x(0xe4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a3a=a3b(this,function(){const y=a3d;return a3a[y(0xeb)]()[y(0xdb)](y(0xd6))['toString']()['constructor'](a3a)['search'](y(0xd6));});a3a();function a3d(a,b){const c=a3c();return a3d=function(d,e){d=d-0xd1;let f=c[d];return f;},a3d(a,b);}var __awaiter=this&&this[a3z(0xd9)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){const A=a3d;A(0xe0)!==A(0xe7)?g(f):c(d);});}return new(c||(c=Promise))(function(f,g){const E=a3d;function h(k){const B=a3d;try{j(d[B(0xea)](k));}catch(l){g(l);}}function i(k){const C=a3d;try{j(d[C(0xd5)](k));}catch(l){'Lnmfi'==='Lnmfi'?g(l):h[C(0xe1)]?i(j['value']):k(l[C(0xd1)])[C(0xe6)](m,n);}}function j(k){const D=a3d;k['done']?f(k[D(0xd1)]):e(k[D(0xd1)])[D(0xe6)](h,i);}j((d=d[E(0xe4)](a,b||[]))['next']());});};import{Command}from'../../command.js';const AWSCommand=Command[a3z(0xed)]({'name':'aws','usage':'maka\x20aws\x20<command>','minArgLength':0x1,'description':a3z(0xd4),'examples':[a3z(0xd8),'maka\x20aws:di']},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const F=a3d;try{let c=a[0x0],d=this['findSubCommand'](c);d&&this[F(0xe2)](c,a,b);}catch(f){if('zKOQF'===F(0xe5))try{i(j[F(0xd5)](k));}catch(h){m(h);}else console['error'](f),process[F(0xe8)](0x0);}});});export default AWSCommand;function a3c(){const G=['then','hYbOd','exit','1080987JNEfdq','next','toString','29060sUbuFq','create','value','7562097XfWmMd','12dPeHKB','Create,\x20view,\x20terminate\x20EC2\x20instances,\x20assign\x20key-pairs,\x20and\x20set\x20host\x20IPs.','throw','(((.+)+)+)+$','36817shzSWf','maka\x20aws:describe-instance','__awaiter','2291422uRrIuB','search','1368595JrLKXC','86TDzmzQ','40UifbEY','11aeusRG','lofDq','done','runSubCommand','34191790eaRVzi','apply','CWQGm'];a3c=function(){return G;};return a3c();}
1
+ const a3E=a3d;(function(a,b){const w=a3d,c=a();while(!![]){try{const d=parseInt(w(0xd3))/0x1*(-parseInt(w(0xd4))/0x2)+parseInt(w(0xc6))/0x3*(parseInt(w(0xc4))/0x4)+parseInt(w(0xd0))/0x5*(-parseInt(w(0xde))/0x6)+parseInt(w(0xbc))/0x7+-parseInt(w(0xdd))/0x8*(parseInt(w(0xca))/0x9)+parseInt(w(0xd7))/0xa*(parseInt(w(0xdb))/0xb)+-parseInt(w(0xda))/0xc*(-parseInt(w(0xbb))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a3c,0x9b216));const a3b=(function(){let a=!![];return function(b,c){const d=a?function(){const x=a3d;if(c){if(x(0xc5)===x(0xcb))d(e[x(0xc9)](f));else{const f=c[x(0xc1)](b,arguments);return c=null,f;}}}:function(){};return a=![],d;};}()),a3a=a3b(this,function(){const y=a3d;return a3a['toString']()[y(0xbe)](y(0xcf))[y(0xe0)]()[y(0xce)](a3a)[y(0xbe)](y(0xcf));});a3a();var __awaiter=this&&this['__awaiter']||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){g(f);});}return new(c||(c=Promise))(function(f,g){const D=a3d;function h(k){const z=a3d;if(z(0xbd)===z(0xbd))try{j(d[z(0xc2)](k));}catch(l){g(l);}else c(d);}function i(k){const A=a3d;if(A(0xdc)==='gBDgQ')c(d);else try{if('eslkX'===A(0xd8))j(d[A(0xc9)](k));else try{let n=k[0x0],o=this[A(0xc0)](n);o&&this[A(0xc7)](n,n,o);}catch(p){r['error'](p),s[A(0xd2)](0x0);}}catch(n){if(A(0xd5)!==A(0xd5))try{i(j[A(0xc9)](k));}catch(p){m(p);}else g(n);}}function j(k){const B=a3d;if(B(0xcc)!==B(0xcc)){const n=g?function(){const C=B;if(n){const u=q[C(0xc1)](r,arguments);return s=null,u;}}:function(){};return l=![],n;}else k[B(0xc8)]?f(k[B(0xcd)]):e(k[B(0xcd)])[B(0xd6)](h,i);}j((d=d[D(0xc1)](a,b||[]))[D(0xc2)]());});};import{Command}from'../../command.js';function a3d(a,b){const c=a3c();return a3d=function(d,e){d=d-0xbb;let f=c[d];return f;},a3d(a,b);}const AWSCommand=Command[a3E(0xdf)]({'name':a3E(0xbf),'usage':'maka\x20aws\x20<command>','minArgLength':0x1,'description':a3E(0xd1),'examples':[a3E(0xe1),'maka\x20aws:di']},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const F=a3d;try{let c=a[0x0],d=this['findSubCommand'](c);d&&this['runSubCommand'](c,a,b);}catch(f){if(F(0xd9)==='VpKUg')console[F(0xc3)](f),process[F(0xd2)](0x0);else try{i(j[F(0xc2)](k));}catch(h){m(h);}}});});export default AWSCommand;function a3c(){const G=['pFwwP','search','aws','findSubCommand','apply','next','error','10232UKziWy','ocZSy','117eYXfnR','runSubCommand','done','throw','2115441YJaXoC','jROzO','omtdJ','value','constructor','(((.+)+)+)+$','3735845XiOLKU','Create,\x20view,\x20terminate\x20EC2\x20instances,\x20assign\x20key-pairs,\x20and\x20set\x20host\x20IPs.','exit','4wbdmUE','12786LhsOAy','PEmkS','then','9940AafnPy','eslkX','VpKUg','41916SzpwxS','6754VkClmZ','IgalE','8TYzOxA','6iGYPvK','create','toString','maka\x20aws:describe-instance','1638GArfGn','3451056SvTMOh'];a3c=function(){return G;};return a3c();}
@@ -1 +1 @@
1
- const a4ai=a4d;(function(a,b){const af=a4d,c=a();while(!![]){try{const d=-parseInt(af(0x18f))/0x1*(-parseInt(af(0x1ff))/0x2)+-parseInt(af(0x1bf))/0x3+-parseInt(af(0x185))/0x4*(-parseInt(af(0x19f))/0x5)+parseInt(af(0x1dc))/0x6*(-parseInt(af(0x202))/0x7)+parseInt(af(0x1e8))/0x8*(parseInt(af(0x191))/0x9)+parseInt(af(0x207))/0xa+-parseInt(af(0x1be))/0xb*(-parseInt(af(0x1c7))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0x52e6f));const a4b=(function(){let a=!![];return function(b,c){const d=a?function(){const ag=a4d;if('YCJDY'!==ag(0x1fe))h['id']===i(j)&&(o=p['sgId'],q[ag(0x182)](ag(0x1ce)+r+'\x0a'));else{if(c){const f=c[ag(0x1d1)](b,arguments);return c=null,f;}}}:function(){};return a=![],d;};}()),a4a=a4b(this,function(){const ah=a4d;return a4a[ah(0x1c8)]()[ah(0x1a4)](ah(0x198))['toString']()['constructor'](a4a)[ah(0x1a4)](ah(0x198));});a4a();function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0x182;let f=c[d];return f;},a4d(a,b);}var __awaiter=this&&this[a4ai(0x1e2)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){const aj=a4d;'dWVXw'===aj(0x1c1)?g(f):(f=[g,h][aj(0x1ed)](':'),i[aj(0x182)](aj(0x1ee)+j));});}return new(c||(c=Promise))(function(f,g){const am=a4d;function h(k){try{j(d['next'](k));}catch(l){g(l);}}function i(k){const ak=a4d;if(ak(0x1fc)===ak(0x18e))h(i)===j['id']&&(o=p[ak(0x1b0)],q[ak(0x182)](ak(0x1c2)+r));else try{'gREdf'!==ak(0x1b2)?c(d):j(d[ak(0x1e4)](k));}catch(n){ak(0x1e0)==='nxnWE'?g(n):f[ak(0x19d)]('ID:\x20'+g['id']+'\x20CIDR:\x20'+h[ak(0x1c0)]+ak(0x1b8)+i['az']+'\x20SUBNETID:\x20'+j[ak(0x1c5)]);}}function j(k){const al=a4d;al(0x18b)!=='aSiDV'?i['id']===j(k)&&(q=r[al(0x1cc)],s[al(0x182)](al(0x1de)+t+al(0x18c)+u[al(0x184)])):k[al(0x1d8)]?f(k['value']):e(k['value'])[al(0x1cf)](h,i);}j((d=d[am(0x1d1)](a,b||[]))['next']());});};function a4c(){const aB=['aSiDV','\x20:\x20','number','vScfb','1xYGxsB','Dubtn','477JHgkEZ','build\x20on\x20','No\x20instance\x20has\x20been\x20created.','split','\x22Web\x20App\x22','JZIOu','cider','(((.+)+)+)+$','Setting\x20Subnet\x20ID\x20to\x20','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','amazon','\x20DESCRIPTION:\x20','log','What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]','20ZoHBMM','YNrpF','lBIkI','Instace\x20Type:\x20','alias','search','value','\x20SG\x20NAME:\x20','dTIhP','Key-Pair:\x20','ask','string','hkLlX','Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file','pvvFI','Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?','ec2create','name','Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.','gREdf','forEach','\x20SUBNETID:\x20','tRuZB','aupBO','MPYRn','\x20AZONE:\x20','Subnet:\x20','pqJXe','DQDZr','push','\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22','55wqqPuR','1584666jMifep','cidr','dWVXw','Setting\x20the\x20key-pair\x20to:\x20','\x20CIDR:\x20','create-instance','subnetId','aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22','1421736DxaxRX','toString','MXcrz','aws\x20ec2\x20describe-security-groups\x20--query\x20\x22SecurityGroups[*].{Name:GroupName,ID:GroupId}\x22','Desc','amiId','next','Setting\x20SG\x20ID\x20to:\x20','then','**\x20Available\x20AMIs\x20**','apply','Name','exit','Instance\x20Count:\x20','aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values=','YpSth','*\x22\x20\x22Name=root-device-type,Values=ebs\x22\x20\x22Name=description,Values=*Ubuntu?\x20??.??\x20LTS?\x20amd64\x20bionic\x20image*\x22\x20--query\x20\x22Images[*].{Desc:Description,ID:ImageId,alias:ImageOwnerAlias}\x22','done','ABORTED!\x20No\x20instance\x20has\x20been\x20created!','yTZUp','Security\x20Group:\x20','1813074uiINmX','notice','Setting\x20AMI\x20ID\x20to\x20','FvZgS','nxnWE','Qzobv','__awaiter','ec2createSG','throw','DAUKF','You\x20must\x20have\x20a\x20key-pair.\x20\x20Please\x20run\x20\x22maka\x20aws\x20create-key-pair\x20--env\x20<env-name>\x22\x20to\x20generate\x20a\x20new\x20key','Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?','32392BUaOmz','jBdqR','fsi','parse','create','join','Setting\x20the\x20number\x20of\x20instances\x20to:\x20','YRWfN','sgId','sort','t3.micro','maka\x20aws:create-instance','ec2describeKeys','Security\x20Group\x20Name:\x20[','ID:\x20','NPRZz','help','getProjectConfig','1:1','PWIlZ','slaZv','**\x20Available\x20Security\x20Groups\x20**','YCJDY','1198564FpgXuF','confirm','**\x20Available\x20Subnets\x20**','14MOXEwK','Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','error','zrpkl','Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.','179220XVGzNi','subnet','success','date','desc','47956nDWVcg','chooseVPC','Open\x20port\x20443\x20for\x20SSL?','ALPLy','getTime','\x20SGID:\x20'];a4c=function(){return aB;};return a4c();}import a4C from'./aws.command.js';import{execSync}from'child_process';import{Actions}from'../../tools/actions/actions.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';Command[a4ai(0x1ec)]({'name':a4ai(0x1c4),'aliases':['ci'],'usage':a4ai(0x1f3),'description':'','mustBeInMakaProject':!![],'requiredOpts':['env'],'validOpts':[a4ai(0x1f8)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const an=a4d;try{if(an(0x1a1)===an(0x1a1)){const c=this[an(0x1ea)][an(0x1f9)](),d=new AWS(),{appName:f}=c,g=this[an(0x1ea)]['getConfigFromShorthand'](b['env']);let h=f+'-'+g,i=(yield Actions['ask']('EC2\x20Name:\x20['+h+']\x20'))||h,j='',k='',l='',m='',n='',o='',p='';const q=yield Actions[an(0x200)](an(0x1e7));let r='';q&&(r=yield d['createKeyPair']({'env':g}));try{if(an(0x1da)===an(0x1da)){Log[an(0x1dd)]('**\x20Available\x20key-pairs\x20**');let v=r?r:i,w=d[an(0x1f4)]({'suggestion':v}),x=(yield Actions[an(0x1a9)]('Please\x20choose\x20a\x20key\x20to\x20use:\x20'))||'-1';if(parseInt(x)<0x0){Log[an(0x204)](an(0x1e6)),Log['notice'](an(0x193));return;}w===null||w===void 0x0?void 0x0:w[an(0x1b3)](function(y){const ao=an;'MXcrz'===ao(0x1c9)?parseInt(x)===y['id']&&(j=y[ao(0x1b0)],Log[ao(0x182)](ao(0x1c2)+j)):c(d);});}else h[an(0x1d8)]?i(j[an(0x1a5)]):k(l[an(0x1a5)])[an(0x1cf)](m,n);}catch(z){an(0x190)===an(0x1b6)?k[an(0x1b0)]===l?u[an(0x1dd)]('ID:\x20'+v['id']+an(0x1a6)+w[an(0x1b0)]+an(0x18a)+x[an(0x1f0)]):y['log'](an(0x1f6)+z['id']+an(0x1a6)+A[an(0x1b0)]+'\x20SGID:\x20'+B['sgId']):Log[an(0x204)](z);}k=yield d[an(0x186)]();let s=yield Actions['confirm'](an(0x1ae)),t;if(s){let B=k===''?d[an(0x186)]():k,C=yield Actions[an(0x200)](an(0x187));t=(yield Actions['ask'](an(0x1f5)+i+']'))||i,d[an(0x1e3)]({'description':an(0x195),'name':t,'vpcId':B,'ssl':C});}t=i;try{Log['notice'](an(0x1fd));let D=execSync(an(0x1ca))[an(0x1c8)](),E=JSON['parse'](D),F=[];E[an(0x1b3)](function(H,I){const ap=an;ap(0x1fb)!==ap(0x1ef)?F[ap(0x1bc)]({'id':I,'name':H[ap(0x1d2)],'sgId':H['ID']}):(c[ap(0x182)]('Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.'),d['bright']('Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file'));}),F[an(0x1b3)](function(H){const aq=an;H[aq(0x1b0)]===t?aq(0x1df)!=='WgBdz'?Log[aq(0x1dd)](aq(0x1f6)+H['id']+aq(0x1a6)+H['name']+aq(0x18a)+H[aq(0x1f0)]):f['push']({'id':g,'cidr':h['cider'],'az':i['az'],'subnetId':j[aq(0x1c5)]}):console[aq(0x19d)]('ID:\x20'+H['id']+'\x20SG\x20NAME:\x20'+H[aq(0x1b0)]+aq(0x18a)+H['sgId']);});let G=(yield Actions[an(0x1a9)]('Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20'))||'0';F[an(0x1b3)](function(H){const ar=an;'uaPbB'===ar(0x1b5)?(e[ar(0x19d)](f),g[ar(0x204)](h)):H['id']===parseInt(G)&&(l=H[ar(0x1f0)],Log['success'](ar(0x1ce)+l+'\x0a'));});if(l==='')throw Log[an(0x204)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');}catch(H){Log['error'](H);}try{let I=0x7e6;Log[an(0x1dd)](an(0x1d0));let J=execSync('aws\x20ec2\x20describe-images\x20--filters\x20\x22Name=description,Values=*LTS*\x22\x20\x22Name=name,Values=*server*\x22\x20\x22Name=name,Values=*ubuntu*\x22\x20\x22Name=creation-date,Values=*'+I+an(0x1d7))[an(0x1c8)](),K=JSON['parse'](J),L=[],M=[];K[an(0x1b3)](function(O,P){const as=an;if(as(0x1a7)!==as(0x1a7))d[as(0x204)](e),f[as(0x1d3)](0x0);else{if(O[as(0x1a3)]===as(0x19b)){let R=O[as(0x1cb)]['split'](as(0x192))[0x1];L[as(0x1bc)]({'amiId':O['ID'],'desc':O['Desc'],'date':R});}}}),L[an(0x1f1)](function(O,P){const at=an;return new Date(P[at(0x183)])[at(0x189)]()-new Date(O[at(0x183)])[at(0x189)]();}),L[an(0x1b3)](function(O,P){const au=an;M['push']({'id':P,'amiId':O[au(0x1cc)],'desc':O[au(0x184)]});}),M[an(0x1b3)](function(O){const av=an;console[av(0x19d)](av(0x1f6)+O['id']+'\x20AMIID:\x20'+O[av(0x1cc)]+'\x20DESCRIPTION:\x20'+O[av(0x184)]);});let N=(yield Actions['ask']('Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20'))||'0';M[an(0x1b3)](function(O){const aw=an;aw(0x1ad)===aw(0x1ad)?O['id']===parseInt(N)&&(m=O[aw(0x1cc)],Log[aw(0x182)](aw(0x1de)+m+aw(0x18c)+O[aw(0x184)])):c[aw(0x204)](d);});if(m==='')throw Log[an(0x204)](an(0x19a));}catch(O){if(an(0x1e5)===an(0x1d6))throw b[an(0x204)](an(0x19a));else Log[an(0x204)](O);}try{if(an(0x1e1)===an(0x1b7))throw b[an(0x204)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');else{Log[an(0x1dd)](an(0x201));let R=execSync(an(0x1c6))['toString'](),S=JSON[an(0x1eb)](R),T=[];S[an(0x1b3)](function(V,W){const ax=an;T[ax(0x1bc)]({'id':W,'cidr':V[ax(0x197)],'az':V['az'],'subnetId':V[ax(0x1c5)]});}),T[an(0x1b3)](function(V){const ay=an;ay(0x205)==='zrpkl'?console[ay(0x19d)](ay(0x1f6)+V['id']+ay(0x1c3)+V[ay(0x1c0)]+ay(0x1b8)+V['az']+ay(0x1b4)+V[ay(0x1c5)]):e['log'](ay(0x1f6)+f['id']+'\x20AMIID:\x20'+g[ay(0x1cc)]+ay(0x19c)+h['desc']);});let U=(yield Actions[an(0x1a9)](an(0x203)))||'0';T['forEach'](function(V){const az=an;V['id']===parseInt(U)&&(o=V[az(0x1c5)],Log['success'](az(0x199)+o));});if(o==='')throw Log[an(0x204)](an(0x19a));}}catch(V){an(0x1e9)!==an(0x1f7)?Log['error'](V):b[an(0x1dd)](an(0x1d9));}let u=an(0x1fa);try{let X=(yield Actions['ask']('How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20'))||an(0x1fa),Y=X[an(0x194)](':')[0x0],Z=X[an(0x194)](':')[0x1];typeof parseInt(Y)===an(0x18d)&&typeof parseInt(Z)===an(0x18d)&&('tAfVi'===an(0x1ba)?(f=g[an(0x1cc)],h[an(0x182)](an(0x1de)+i+'\x20:\x20'+j[an(0x184)])):(u=[Y,Z][an(0x1ed)](':'),Log[an(0x182)](an(0x1ee)+u)));}catch(a1){Log[an(0x204)](a1);}try{if(an(0x188)!==an(0x188))try{i(j[an(0x1cd)](k));}catch(a3){m(a3);}else{let a3=(yield Actions['ask'](an(0x19e)))||an(0x1f2);typeof a3===an(0x1aa)&&(an(0x1bb)===an(0x1a0)?c[an(0x204)](d):n=a3);}}catch(a5){Log['error'](a5);}try{let a6=JSON[an(0x1eb)](execSync(an(0x1d5)+o+an(0x1bd))[an(0x1c8)]())[0x0][an(0x208)];Log['notice']('ImageID:'+m),Log[an(0x1dd)](an(0x1d4)+u),Log['notice'](an(0x1a2)+n),Log[an(0x1dd)](an(0x1a8)+j),Log[an(0x1dd)](an(0x1db)+l),Log[an(0x1dd)](an(0x1b9)+a6);let a7=yield Actions[an(0x200)](an(0x206));if(a7){if(an(0x1ab)!=='hkLlX')c[an(0x204)](d);else{let a9=d[an(0x1af)]({'imageId':m,'count':u,'type':n,'key':j,'sgIds':l,'subnet':o,'tags':'\x22ResourceType=instance,Tags=[{Key=created-by,Value=maka-cli},{Key=environment,Value='+g+'},\x20{Key=Name,Value='+i+'}]\x22'});a9&&(Log[an(0x182)](an(0x1b1)),Log['bright'](an(0x1ac)));}}else an(0x196)==='qyrfX'?h['id']===i(j)&&(o=p[an(0x1c5)],q[an(0x182)]('Setting\x20Subnet\x20ID\x20to\x20'+r)):Log[an(0x1dd)](an(0x1d9));}catch(ab){console[an(0x19d)](ab),Log[an(0x204)](ab);}}else{const ad=g?function(){const aA=an;if(ad){const ae=q[aA(0x1d1)](r,arguments);return s=null,ae;}}:function(){};return l=![],ad;}}catch(ad){console['error'](ad),process[an(0x1d3)](0x0);}});},a4C);
1
+ const a4ak=a4d;(function(a,b){const ag=a4d,c=a();while(!![]){try{const d=parseInt(ag(0x223))/0x1*(parseInt(ag(0x239))/0x2)+parseInt(ag(0x22e))/0x3+-parseInt(ag(0x1de))/0x4+parseInt(ag(0x1e4))/0x5*(-parseInt(ag(0x1ce))/0x6)+parseInt(ag(0x1e2))/0x7*(parseInt(ag(0x213))/0x8)+-parseInt(ag(0x1d0))/0x9+parseInt(ag(0x226))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0x27c7b));const a4b=(function(){let a=!![];return function(b,c){const ah=a4d;if(ah(0x21d)===ah(0x236))c=d;else{const e=a?function(){const ai=ah;if(c){const f=c[ai(0x228)](b,arguments);return c=null,f;}}:function(){};return a=![],e;}};}()),a4a=a4b(this,function(){const aj=a4d;return a4a['toString']()['search'](aj(0x201))[aj(0x1fb)]()[aj(0x1d7)](a4a)['search'](aj(0x201));});a4a();var __awaiter=this&&this[a4ak(0x1f0)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){g(f);});}return new(c||(c=Promise))(function(f,g){const ao=a4d;function h(k){const al=a4d;try{al(0x1f9)===al(0x22f)?c(d):j(d[al(0x204)](k));}catch(m){al(0x1c9)!==al(0x210)?g(m):c['error'](d);}}function i(k){const am=a4d;try{if(am(0x22a)===am(0x22a))j(d[am(0x22b)](k));else{if(e){const m=i[am(0x228)](j,arguments);return k=null,m;}}}catch(m){g(m);}}function j(k){const an=a4d;k[an(0x1ef)]?f(k[an(0x231)]):e(k[an(0x231)])['then'](h,i);}j((d=d['apply'](a,b||[]))[ao(0x204)]());});};function a4c(){const aC=['Subnet:\x20','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','(((.+)+)+)+$','**\x20Available\x20Security\x20Groups\x20**','Name','next','getProjectConfig','**\x20Available\x20Subnets\x20**','date','1:1','alias','QGCDE','dmdgw','cider','bnwsy','MSSjq','You\x20must\x20have\x20a\x20key-pair.\x20\x20Please\x20run\x20\x22maka\x20aws\x20create-key-pair\x20--env\x20<env-name>\x22\x20to\x20generate\x20a\x20new\x20key','SxFWX','Setting\x20Subnet\x20ID\x20to\x20','amazon','40DgLSEh','\x22Web\x20App\x22','lhMRQ','log','atkuo','qkBzR','},\x20{Key=Name,Value=','ask','aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22','name','syhUJ','confirm','create','parse','Security\x20Group:\x20','env','19GIyEWi','ROStB','\x20SUBNETID:\x20','1989280kNkmfD','ABORTED!\x20No\x20instance\x20has\x20been\x20created!','apply','Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','wMZGw','throw','Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?','Instace\x20Type:\x20','854565QkQepi','nyysP','\x22ResourceType=instance,Tags=[{Key=created-by,Value=maka-cli},{Key=environment,Value=','value','ZAmxn','createKeyPair','**\x20Available\x20key-pairs\x20**','number','lyvTc','success','Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?','1834jkmjFS','\x20SG\x20NAME:\x20','cQPHE','fsi','\x20SGID:\x20','join','Desc','notice','BfsJQ','ImageID:','Please\x20choose\x20a\x20key\x20to\x20use:\x20','}]\x22','forEach','Setting\x20SG\x20ID\x20to:\x20','\x20DESCRIPTION:\x20','Setting\x20the\x20number\x20of\x20instances\x20to:\x20','push','bFwmz','chooseVPC','split','QtwIz','t3.micro','4722OorFXX','\x20AMIID:\x20','1032174cLsPmh','odSBZ','pwtNg','ec2createSG','ID:\x20','desc','ArRDg','constructor','sbHBB','\x20:\x20','\x20CIDR:\x20','sort','Setting\x20the\x20key-pair\x20to:\x20','subnetId','1069968CTCbUc','amiId','Open\x20port\x20443\x20for\x20SSL?','aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values=','195895JYejSU','exit','610qUWJhz','aws\x20ec2\x20describe-security-groups\x20--query\x20\x22SecurityGroups[*].{Name:GroupName,ID:GroupId}\x22','string','cidr','Instance\x20Count:\x20','Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.','error','sgId','kAzQh','ec2create','create-instance','done','__awaiter','Security\x20Group\x20Name:\x20[','build\x20on\x20','QhvbB','*\x22\x20\x22Name=root-device-type,Values=ebs\x22\x20\x22Name=description,Values=*Ubuntu?\x20??.??\x20LTS?\x20amd64\x20bionic\x20image*\x22\x20--query\x20\x22Images[*].{Desc:Description,ID:ImageId,alias:ImageOwnerAlias}\x22','\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22','Setting\x20AMI\x20ID\x20to\x20','nuXgg','What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]','oOTFO','\x20AZONE:\x20','toString','VxNKl','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file'];a4c=function(){return aC;};return a4c();}import a4C from'./aws.command.js';import{execSync}from'child_process';function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0x1bc;let f=c[d];return f;},a4d(a,b);}import{Actions}from'../../tools/actions/actions.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';Command[a4ak(0x21f)]({'name':a4ak(0x1ee),'aliases':['ci'],'usage':'maka\x20aws:create-instance','description':'','mustBeInMakaProject':!![],'requiredOpts':['env'],'validOpts':['help']},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const ap=a4d;try{const c=this[ap(0x23c)][ap(0x205)](),d=new AWS(),{appName:f}=c,g=this[ap(0x23c)]['getConfigFromShorthand'](b[ap(0x222)]);let h=f+'-'+g,i=(yield Actions[ap(0x21a)]('EC2\x20Name:\x20['+h+']\x20'))||h,j='',k='',l='',m='',n='',o='',p='';const q=yield Actions[ap(0x21e)](ap(0x238));let r='';q&&('nylMz'!=='KjTpn'?r=yield d[ap(0x233)]({'env':g}):(e=f[ap(0x1dd)],g[ap(0x237)](ap(0x211)+h)));try{if(ap(0x217)!==ap(0x20d)){Log[ap(0x1bf)](ap(0x234));let w=r?r:i,x=d['ec2describeKeys']({'suggestion':w}),y=(yield Actions[ap(0x21a)](ap(0x1c2)))||'-1';if(parseInt(y)<0x0){if(ap(0x1ec)===ap(0x1fc))f=[g,h][ap(0x1bd)](':'),i[ap(0x237)](ap(0x1c7)+j);else{Log[ap(0x1ea)](ap(0x20f)),Log[ap(0x1bf)]('No\x20instance\x20has\x20been\x20created.');return;}}x===null||x===void 0x0?void 0x0:x[ap(0x1c4)](function(A){const aq=ap;if(parseInt(y)===A['id']){if(aq(0x1d1)!==aq(0x1d1)){if(f[aq(0x209)]===aq(0x212)){let C=k[aq(0x1be)][aq(0x1cb)](aq(0x1f2))[0x1];l[aq(0x1c8)]({'amiId':m['ID'],'desc':n[aq(0x1be)],'date':C});}}else j=A[aq(0x21c)],Log[aq(0x237)](aq(0x1dc)+j);}});}else e[ap(0x1bf)](ap(0x1d4)+f['id']+ap(0x23a)+g[ap(0x21c)]+ap(0x1bc)+h['sgId']);}catch(B){Log[ap(0x1ea)](B);}k=yield d[ap(0x1ca)]();let s=yield Actions[ap(0x21e)](ap(0x22c)),t;if(s){let C=k===''?d['chooseVPC']():k,D=yield Actions[ap(0x21e)](ap(0x1e0));t=(yield Actions[ap(0x21a)](ap(0x1f1)+i+']'))||i,d[ap(0x1d3)]({'description':ap(0x214),'name':t,'vpcId':C,'ssl':D});}t=i;try{if('itLWE'!=='Wjrty'){Log['notice'](ap(0x202));let E=execSync(ap(0x1e5))[ap(0x1fb)](),F=JSON[ap(0x220)](E),G=[];F[ap(0x1c4)](function(I,J){const ar=ap;ar(0x20e)!==ar(0x20a)?G[ar(0x1c8)]({'id':J,'name':I[ar(0x203)],'sgId':I['ID']}):(d[ar(0x1ea)](e),f[ar(0x1e3)](0x0));}),G[ap(0x1c4)](function(I){const as=ap;as(0x1d6)===as(0x20b)?f[as(0x1c8)]({'id':g,'cidr':h[as(0x20c)],'az':i['az'],'subnetId':j[as(0x1dd)]}):I[as(0x21c)]===t?Log[as(0x1bf)](as(0x1d4)+I['id']+as(0x23a)+I[as(0x21c)]+'\x20SGID:\x20'+I['sgId']):as(0x1d2)==='pwtNg'?console['log']('ID:\x20'+I['id']+'\x20SG\x20NAME:\x20'+I[as(0x21c)]+as(0x1bc)+I[as(0x1eb)]):e['push']({'id':f,'amiId':g[as(0x1df)],'desc':h[as(0x1d5)]});});let H=(yield Actions[ap(0x21a)]('Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20'))||'0';G[ap(0x1c4)](function(I){const at=ap;'cDRgY'!=='cDRgY'?h(i)===j['id']&&(o=p['name'],q[at(0x237)](at(0x1dc)+r)):I['id']===parseInt(H)&&(l=I[at(0x1eb)],Log[at(0x237)](at(0x1c5)+l+'\x0a'));});if(l==='')throw Log[ap(0x1ea)](ap(0x1fd));}else i['id']===j(k)&&(q=r[ap(0x1df)],s[ap(0x237)]('Setting\x20AMI\x20ID\x20to\x20'+t+ap(0x1d9)+u['desc']));}catch(J){Log[ap(0x1ea)](J);}try{let K=0x7e6;Log[ap(0x1bf)]('**\x20Available\x20AMIs\x20**');let L=execSync('aws\x20ec2\x20describe-images\x20--filters\x20\x22Name=description,Values=*LTS*\x22\x20\x22Name=name,Values=*server*\x22\x20\x22Name=name,Values=*ubuntu*\x22\x20\x22Name=creation-date,Values=*'+K+ap(0x1f4))[ap(0x1fb)](),M=JSON[ap(0x220)](L),N=[],O=[];M[ap(0x1c4)](function(Q,R){const au=ap;if('PtmnE'!==au(0x23b)){if(Q['alias']===au(0x212)){if(au(0x218)==='ExyWC')c[au(0x1ea)](d);else{let T=Q[au(0x1be)][au(0x1cb)](au(0x1f2))[0x1];N[au(0x1c8)]({'amiId':Q['ID'],'desc':Q[au(0x1be)],'date':T});}}}else c(d);}),N[ap(0x1db)](function(Q,R){const av=ap;if(av(0x224)!=='ROStB')throw R[av(0x1ea)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');else return new Date(R[av(0x207)])['getTime']()-new Date(Q[av(0x207)])['getTime']();}),N['forEach'](function(Q,R){const aw=ap;O['push']({'id':R,'amiId':Q[aw(0x1df)],'desc':Q[aw(0x1d5)]});}),O['forEach'](function(Q){const ax=ap;console['log']('ID:\x20'+Q['id']+ax(0x1cf)+Q['amiId']+ax(0x1c6)+Q['desc']);});let P=(yield Actions[ap(0x21a)](ap(0x200)))||'0';O[ap(0x1c4)](function(Q){const ay=ap;Q['id']===parseInt(P)&&('ZAmxn'!==ay(0x232)?(e=f[ay(0x1eb)],g['success']('Setting\x20SG\x20ID\x20to:\x20'+h+'\x0a')):(m=Q[ay(0x1df)],Log['success'](ay(0x1f6)+m+ay(0x1d9)+Q['desc'])));});if(m===''){if('lvQib'==='lvQib')throw Log['error'](ap(0x1fd));else h['id']===i(j)&&(o=p[ap(0x1dd)],q['success'](ap(0x211)+r));}}catch(R){Log[ap(0x1ea)](R);}try{Log['notice'](ap(0x206));let S=execSync(ap(0x21b))[ap(0x1fb)](),T=JSON['parse'](S),U=[];T[ap(0x1c4)](function(W,X){const az=ap;U[az(0x1c8)]({'id':X,'cidr':W['cider'],'az':W['az'],'subnetId':W[az(0x1dd)]});}),U['forEach'](function(W){const aA=ap;console[aA(0x216)](aA(0x1d4)+W['id']+aA(0x1da)+W[aA(0x1e7)]+aA(0x1fa)+W['az']+aA(0x225)+W['subnetId']);});let V=(yield Actions[ap(0x21a)](ap(0x229)))||'0';U['forEach'](function(W){const aB=ap;aB(0x1f7)!=='nuXgg'?f[aB(0x216)](aB(0x1d4)+g['id']+aB(0x1da)+h['cidr']+aB(0x1fa)+i['az']+'\x20SUBNETID:\x20'+j['subnetId']):W['id']===parseInt(V)&&(o=W[aB(0x1dd)],Log[aB(0x237)](aB(0x211)+o));});if(o===''){if(ap(0x1c0)!==ap(0x1c0))c[ap(0x1ea)](d);else throw Log[ap(0x1ea)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');}}catch(X){Log[ap(0x1ea)](X);}let u=ap(0x208);try{if('MfeKD'!=='BLPxX'){let Y=(yield Actions['ask']('How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20'))||'1:1',Z=Y['split'](':')[0x0],a0=Y['split'](':')[0x1];if(typeof parseInt(Z)===ap(0x235)&&typeof parseInt(a0)===ap(0x235)){if(ap(0x1d8)==='GgHdT')try{i(j[ap(0x22b)](k));}catch(a2){m(a2);}else u=[Z,a0][ap(0x1bd)](':'),Log[ap(0x237)](ap(0x1c7)+u);}}else d(e['next'](f));}catch(a3){Log[ap(0x1ea)](a3);}try{let a4=(yield Actions[ap(0x21a)](ap(0x1f8)))||ap(0x1cd);typeof a4===ap(0x1e6)&&(n=a4);}catch(a5){Log[ap(0x1ea)](a5);}try{let a6=JSON[ap(0x220)](execSync(ap(0x1e1)+o+ap(0x1f5))[ap(0x1fb)]())[0x0]['subnet'];Log[ap(0x1bf)](ap(0x1c1)+m),Log['notice'](ap(0x1e8)+u),Log[ap(0x1bf)](ap(0x22d)+n),Log[ap(0x1bf)]('Key-Pair:\x20'+j),Log[ap(0x1bf)](ap(0x221)+l),Log[ap(0x1bf)](ap(0x1ff)+a6);let a7=yield Actions[ap(0x21e)](ap(0x1e9));if(a7){if('lhMRQ'===ap(0x215)){let a8=d[ap(0x1ed)]({'imageId':m,'count':u,'type':n,'key':j,'sgIds':l,'subnet':o,'tags':ap(0x230)+g+ap(0x219)+i+ap(0x1c3)});if(a8){if(ap(0x1cc)===ap(0x1cc))Log[ap(0x237)]('Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.'),Log['bright'](ap(0x1fe));else throw b['error'](ap(0x1fd));}}else b['notice']('ABORTED!\x20No\x20instance\x20has\x20been\x20created!');}else Log['notice'](ap(0x227));}catch(ab){ap(0x1f3)===ap(0x1f3)?(console[ap(0x216)](ab),Log['error'](ab)):h[ap(0x1ef)]?i(j[ap(0x231)]):k(l[ap(0x231)])['then'](m,n);}}catch(ad){if('RictP'!=='JulJi')console['error'](ad),process[ap(0x1e3)](0x0);else try{i(j[ap(0x204)](k));}catch(af){m(af);}}});},a4C);
@@ -1 +1 @@
1
- const a5C=a5d;(function(a,b){const y=a5d,c=a();while(!![]){try{const d=-parseInt(y(0x1d9))/0x1*(-parseInt(y(0x1d6))/0x2)+parseInt(y(0x1d3))/0x3+-parseInt(y(0x1ec))/0x4*(parseInt(y(0x1e7))/0x5)+-parseInt(y(0x1d5))/0x6+parseInt(y(0x1d1))/0x7*(parseInt(y(0x1dd))/0x8)+parseInt(y(0x1ea))/0x9+parseInt(y(0x1e3))/0xa*(-parseInt(y(0x1df))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a5c,0xac426));const a5b=(function(){let a=!![];return function(b,c){const z=a5d;if('tlCKC'!==z(0x1e5))d[z(0x1eb)](e),f[z(0x1e4)](0x0);else{const e=a?function(){const A=z;if(c){if(A(0x1d8)===A(0x1d8)){const f=c['apply'](b,arguments);return c=null,f;}else d(e[A(0x1e9)](f));}}:function(){};return a=![],e;}};}()),a5a=a5b(this,function(){const B=a5d;return a5a[B(0x1dc)]()[B(0x1ef)](B(0x1d7))[B(0x1dc)]()[B(0x1da)](a5a)[B(0x1ef)](B(0x1d7));});function a5d(a,b){const c=a5c();return a5d=function(d,e){d=d-0x1d0;let f=c[d];return f;},a5d(a,b);}a5a();var __awaiter=this&&this[a5C(0x1d4)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){g(f);});}return new(c||(c=Promise))(function(f,g){const G=a5d;function h(k){try{j(d['next'](k));}catch(l){g(l);}}function i(k){const D=a5d;try{j(d['throw'](k));}catch(l){if('iwnHb'===D(0x1e8))g(l);else{const n=g?function(){const E=D;if(n){const u=q[E(0x1ed)](r,arguments);return s=null,u;}}:function(){};return l=![],n;}}}function j(k){const F=a5d;k[F(0x1db)]?f(k['value']):e(k['value'])['then'](h,i);}j((d=d[G(0x1ed)](a,b||[]))[G(0x1d0)]());});};function a5c(){const I=['29qnpCDy','constructor','done','toString','7565368vxzqRq','maka\x20aws\x20create-key-pair','14827285nFdmjn','createKeyPair','env','fsi','10CNYCQi','exit','tlCKC','create','2655MGKHyU','iwnHb','throw','4422780cNqGYA','error','8812easTYo','apply','ckp','search','next','7NIBovE','help','3681837BxqqkH','__awaiter','975354odVEDi','49758jYPWwA','(((.+)+)+)+$','qigww'];a5c=function(){return I;};return a5c();}import a5x from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';Command[a5C(0x1e6)]({'name':'create-key-pair','aliases':[a5C(0x1ee)],'usage':a5C(0x1de),'mustBeInMakaProject':!![],'requiredOpts':[a5C(0x1e1)],'validOpts':[a5C(0x1d2)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const H=a5d;try{const c=new AWS(),d=this[H(0x1e2)]['getConfigFromShorthand'](b['env']);c[H(0x1e0)]({'env':d});}catch(f){console[H(0x1eb)](f),process[H(0x1e4)](0x0);}});},a5x);
1
+ const a5E=a5d;(function(a,b){const A=a5d,c=a();while(!![]){try{const d=-parseInt(A(0x1e1))/0x1+-parseInt(A(0x1df))/0x2+-parseInt(A(0x1e3))/0x3+parseInt(A(0x1fb))/0x4+parseInt(A(0x1f2))/0x5*(-parseInt(A(0x1ee))/0x6)+parseInt(A(0x1ec))/0x7+parseInt(A(0x1dc))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a5c,0x64183));const a5b=(function(){let a=!![];return function(b,c){const d=a?function(){const B=a5d;if(B(0x1f6)==='fHFOH'){const f=g?function(){const C=B;if(f){const u=q[C(0x1e2)](r,arguments);return s=null,u;}}:function(){};return l=![],f;}else{if(c){const f=c[B(0x1e2)](b,arguments);return c=null,f;}}}:function(){};return a=![],d;};}()),a5a=a5b(this,function(){const D=a5d;return a5a[D(0x1e4)]()['search'](D(0x1d9))[D(0x1e4)]()[D(0x1db)](a5a)[D(0x1e5)]('(((.+)+)+)+$');});function a5d(a,b){const c=a5c();return a5d=function(d,e){d=d-0x1d7;let f=c[d];return f;},a5d(a,b);}function a5c(){const L=['446044Haynfn','createKeyPair','next','TMfET','ckp','(((.+)+)+)+$','ynilS','constructor','9842128IOIRlX','uODQL','maka\x20aws\x20create-key-pair','984192YavDOT','fsi','215016LovUpG','apply','1811148UqLmvL','toString','search','ZtLTE','then','done','getConfigFromShorthand','ADJCP','error','5494895NAPryx','value','2435682WSkgeZ','exit','create','kssRW','5UrXqWt','create-key-pair','env','throw','lXbxt','PNFfy','__awaiter','help','JciOi'];a5c=function(){return L;};return a5c();}a5a();var __awaiter=this&&this[a5E(0x1f8)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){g(f);});}return new(c||(c=Promise))(function(f,g){const J=a5d;function h(k){const F=a5d;if(F(0x1f7)!=='gRgUJ')try{j(d[F(0x1fd)](k));}catch(l){g(l);}else return c[F(0x1e4)]()[F(0x1e5)](F(0x1d9))[F(0x1e4)]()['constructor'](d)[F(0x1e5)](F(0x1d9));}function i(k){const G=a5d;try{G(0x1fa)!==G(0x1f1)?j(d[G(0x1f5)](k)):d(e[G(0x1fd)](f));}catch(m){G(0x1d7)===G(0x1e6)?c(d):g(m);}}function j(k){const H=a5d;if(H(0x1dd)!==H(0x1da))k[H(0x1e8)]?f(k[H(0x1ed)]):e(k[H(0x1ed)])[H(0x1e7)](h,i);else return f(this,void 0x0,void 0x0,function*(){const I=H;try{const x=new o(),y=this[I(0x1e0)][I(0x1e9)](p[I(0x1f4)]);x[I(0x1fc)]({'env':y});}catch(z){s[I(0x1eb)](z),t[I(0x1ef)](0x0);}});}j((d=d[J(0x1e2)](a,b||[]))['next']());});};import a5x from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';Command[a5E(0x1f0)]({'name':a5E(0x1f3),'aliases':[a5E(0x1d8)],'usage':a5E(0x1de),'mustBeInMakaProject':!![],'requiredOpts':[a5E(0x1f4)],'validOpts':[a5E(0x1f9)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const K=a5d;if(K(0x1ea)!==K(0x1ea))c(d);else try{const d=new AWS(),f=this[K(0x1e0)]['getConfigFromShorthand'](b[K(0x1f4)]);d['createKeyPair']({'env':f});}catch(g){console['error'](g),process[K(0x1ef)](0x0);}});},a5x);
@@ -1 +1 @@
1
- function a6c(){const E=['447960syHDGf','5TaRAMJ','getProjectConfig','1143196jKRivi','toString','throw','confirm','error','exit','done','-ssl','4956492UOwPKP','next','ayOEn','create','search','ask','maka\x20aws\x20terminate-instance','constructor','(((.+)+)+)+$','csg','bzPbi','oLVpz','__awaiter','537668lHcCEi','apply','name','value','922062ZNFdEk','Security\x20Group\x20Name:\x20[','ec2createSG','help','zCiJO','4881905tLYEWF','ssl','2308320pxdhLC'];a6c=function(){return E;};return a6c();}const a6y=a6d;function a6d(a,b){const c=a6c();return a6d=function(d,e){d=d-0x153;let f=c[d];return f;},a6d(a,b);}(function(a,b){const v=a6d,c=a();while(!![]){try{const d=-parseInt(v(0x174))/0x1+parseInt(v(0x153))/0x2+parseInt(v(0x16c))/0x3+-parseInt(v(0x168))/0x4*(parseInt(v(0x175))/0x5)+-parseInt(v(0x15b))/0x6+parseInt(v(0x171))/0x7+parseInt(v(0x173))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0x6f700));const a6b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a6d;if(w(0x166)===w(0x170))d(e[w(0x155)](f));else{if(c){if('RMlox'==='RMlox'){const f=c['apply'](b,arguments);return c=null,f;}else{const h=g?function(){if(h){const u=q['apply'](r,arguments);return s=null,u;}}:function(){};return l=![],h;}}}}:function(){};return a=![],d;};}()),a6a=a6b(this,function(){const x=a6d;return a6a[x(0x154)]()['search']('(((.+)+)+)+$')[x(0x154)]()[x(0x162)](a6a)[x(0x15f)](x(0x163));});a6a();var __awaiter=this&&this[a6y(0x167)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){g(f);});}return new(c||(c=Promise))(function(f,g){const C=a6d;function h(k){const z=a6d;try{j(d[z(0x15c)](k));}catch(l){g(l);}}function i(k){const A=a6d;if(A(0x15d)===A(0x15d))try{j(d['throw'](k));}catch(l){g(l);}else d(e[A(0x15c)](f));}function j(k){const B=a6d;k[B(0x159)]?f(k[B(0x16b)]):e(k['value'])['then'](h,i);}j((d=d[C(0x169)](a,b||[]))['next']());});};import a6u from'./aws.command.js';import{Command}from'../../command.js';import{Actions}from'../../tools/actions/actions.class.js';import{AWS}from'../../tools/aws/aws.class.js';Command[a6y(0x15e)]({'name':'create-security-group','aliases':[a6y(0x164)],'usage':a6y(0x161),'validOpts':[a6y(0x16f)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const D=a6d;try{const c=new AWS(),d=this['fsi'][D(0x176)](),{appName:f}=d;let g=yield c['chooseVPC'](),h=![];if(!b[D(0x172)]){if(D(0x165)!=='bzPbi')return f instanceof g?h:new i(function(m){m(k);});else h=yield Actions[D(0x156)]('Open\x20port\x20443\x20for\x20SSL?');}let i=h?D(0x15a):'',j=b[D(0x16a)]?b[D(0x16a)]:''+f+i,k=(yield Actions[D(0x160)](D(0x16d)+j+']'))||j;c[D(0x16e)]({'description':'\x22Web\x20App\x22','name':k,'vpcId':g,'ssl':h});}catch(m){console[D(0x157)](m),process[D(0x158)](0x0);}});},a6u);
1
+ const a6y=a6d;(function(a,b){const v=a6d,c=a();while(!![]){try{const d=-parseInt(v(0xb0))/0x1*(-parseInt(v(0xc0))/0x2)+-parseInt(v(0xa3))/0x3+parseInt(v(0xbf))/0x4*(parseInt(v(0xb5))/0x5)+parseInt(v(0xbb))/0x6+parseInt(v(0xc8))/0x7*(parseInt(v(0xca))/0x8)+parseInt(v(0xac))/0x9+-parseInt(v(0xa0))/0xa*(parseInt(v(0xa6))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0xb8e8c));const a6b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a6d;if('JYlSQ'==='eNydP')d(e[w(0xb8)](f));else{if(c){if(w(0xaa)==='KxhRZ'){const f=c['apply'](b,arguments);return c=null,f;}else{if(e){const h=i[w(0xa1)](j,arguments);return k=null,h;}}}}}:function(){};return a=![],d;};}()),a6a=a6b(this,function(){const x=a6d;return a6a[x(0xb3)]()[x(0xc6)](x(0xc1))[x(0xb3)]()[x(0xa8)](a6a)[x(0xc6)]('(((.+)+)+)+$');});function a6d(a,b){const c=a6c();return a6d=function(d,e){d=d-0xa0;let f=c[d];return f;},a6d(a,b);}a6a();var __awaiter=this&&this[a6y(0xc2)]||function(a,b,c,d){function e(f){const z=a6d;if(z(0xae)!==z(0xae))c(d);else return f instanceof c?f:new c(function(h){h(f);});}return new(c||(c=Promise))(function(f,g){const D=a6d;function h(k){const A=a6d;try{if(A(0xba)!=='jZcAx')j(d[A(0xc4)](k));else{const m=d[A(0xa1)](e,arguments);return f=null,m;}}catch(m){if(A(0xb9)!==A(0xbc))g(m);else try{i(j[A(0xb8)](k));}catch(o){m(o);}}}function i(k){const B=a6d;if(B(0xa4)!=='wmczY')d[B(0xa5)](e),f[B(0xaf)](0x0);else try{B(0xbe)!==B(0xbe)?d(e['next'](f)):j(d['throw'](k));}catch(n){g(n);}}function j(k){const C=a6d;C(0xb7)==='ZxlFo'?h['done']?i(j[C(0xa7)]):k(l[C(0xa7)])[C(0xb4)](m,n):k[C(0xc7)]?f(k[C(0xa7)]):e(k[C(0xa7)])[C(0xb4)](h,i);}j((d=d[D(0xa1)](a,b||[]))[D(0xc4)]());});};import a6u from'./aws.command.js';import{Command}from'../../command.js';import{Actions}from'../../tools/actions/actions.class.js';import{AWS}from'../../tools/aws/aws.class.js';Command[a6y(0xb2)]({'name':a6y(0xad),'aliases':[a6y(0xc5)],'usage':a6y(0xc9),'validOpts':['help']},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const E=a6d;try{const c=new AWS(),d=this['fsi']['getProjectConfig'](),{appName:f}=d;let g=yield c['chooseVPC'](),h=![];!b[E(0xc3)]&&(h=yield Actions[E(0xbd)]('Open\x20port\x20443\x20for\x20SSL?'));let i=h?E(0xa2):'',j=b[E(0xa9)]?b[E(0xa9)]:''+f+i,k=(yield Actions[E(0xb6)](E(0xb1)+j+']'))||j;c[E(0xab)]({'description':'\x22Web\x20App\x22','name':k,'vpcId':g,'ssl':h});}catch(l){console[E(0xa5)](l),process[E(0xaf)](0x0);}});},a6u);function a6c(){const F=['Security\x20Group\x20Name:\x20[','create','toString','then','520ARkKUO','ask','oDtJe','throw','sHHpC','kFCUX','5766876OFKIFx','BbbxL','confirm','AreKa','32896WFnhDF','1341874dWfzuD','(((.+)+)+)+$','__awaiter','ssl','next','csg','search','done','6003298SdAbmD','maka\x20aws\x20terminate-instance','8JIRIOy','479770IfArBy','apply','-ssl','2186370fToyvQ','wmczY','error','682MjgFjN','value','constructor','name','KxhRZ','ec2createSG','10041831vjaUUE','create-security-group','LLuuw','exit','1WDCPcc'];a6c=function(){return F;};return a6c();}
@@ -1 +1 @@
1
- var a7z=a7d;(function(a,b){var v=a7d,c=a();while(!![]){try{var d=parseInt(v(0x11b))/0x1*(-parseInt(v(0x110))/0x2)+-parseInt(v(0x10d))/0x3+parseInt(v(0x10e))/0x4+-parseInt(v(0x122))/0x5+-parseInt(v(0x113))/0x6+-parseInt(v(0x11e))/0x7+parseInt(v(0x10a))/0x8*(parseInt(v(0x115))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a7c,0x29206));function a7d(a,b){var c=a7c();return a7d=function(d,e){d=d-0x100;var f=c[d];return f;},a7d(a,b);}var a7b=(function(){var a=!![];return function(b,c){var w=a7d;if(w(0x106)===w(0x102))d(e[w(0x105)](f));else{var d=a?function(){var x=w;if(c){if(x(0x120)!==x(0x120))d(e[x(0x100)](f));else{var f=c[x(0x11a)](b,arguments);return c=null,f;}}}:function(){};return a=![],d;}};}()),a7a=a7b(this,function(){var y=a7d;return a7a['toString']()[y(0x119)](y(0x121))[y(0x117)]()['constructor'](a7a)[y(0x119)]('(((.+)+)+)+$');});a7a();var __awaiter=this&&this[a7z(0x11d)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){var A=a7d;A(0x116)!==A(0x116)?c(d):g(f);});}return new(c||(c=Promise))(function(f,g){var F=a7d;function h(k){var B=a7d;try{j(d[B(0x105)](k));}catch(l){if(B(0x107)===B(0x104))return l(this,void 0x0,void 0x0,function*(){var C=B;try{const s=new l();s[C(0x10f)]();}catch(t){o[C(0x10c)](t),p['exit'](0x0);}});else g(l);}}function i(k){var D=a7d;if('TMhWo'===D(0x114)){const m=new b();m['ec2describeInstances']();}else try{j(d[D(0x100)](k));}catch(m){g(m);}}function j(k){var E=a7d;k[E(0x103)]?f(k['value']):e(k['value'])[E(0x108)](h,i);}j((d=d[F(0x11a)](a,b||[]))['next']());});};function a7c(){var H=['1853901PXNTZJ','exit','PFbOS','(((.+)+)+)+$','45390tAcHyU','throw','describe-instances','RmNMj','done','QHpvR','next','azwwS','jCPla','then','jZLEj','4724968xYdqEG','cmjyc','error','320097aIyWbw','759712RwSCkz','ec2describeInstances','2XTfhqJ','ahDEa','help','313164DgKzzW','axyzn','9OdoqrW','VAICQ','toString','maka\x20aws\x20describe-instances','search','apply','179281zUdKGo','create','__awaiter'];a7c=function(){return H;};return a7c();}import a7u from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';Command[a7z(0x11c)]({'name':a7z(0x101),'aliases':['di'],'usage':a7z(0x118),'validOpts':[a7z(0x112)]},function(){return __awaiter(this,void 0x0,void 0x0,function*(){var G=a7d;if(G(0x109)===G(0x109))try{if(G(0x111)!==G(0x111))return f instanceof g?h:new i(function(m){m(k);});else{const b=new AWS();b[G(0x10f)]();}}catch(c){if(G(0x10b)!=='cmjyc')try{i(j[G(0x100)](k));}catch(f){m(f);}else console['error'](c),process[G(0x11f)](0x0);}else c(d);});},a7u);
1
+ var a7y=a7d;(function(a,b){var v=a7d,c=a();while(!![]){try{var d=parseInt(v(0xf0))/0x1*(parseInt(v(0xf6))/0x2)+parseInt(v(0xe7))/0x3*(-parseInt(v(0xfe))/0x4)+-parseInt(v(0xf9))/0x5*(parseInt(v(0xec))/0x6)+-parseInt(v(0x103))/0x7+parseInt(v(0xf1))/0x8+parseInt(v(0xf5))/0x9+-parseInt(v(0xea))/0xa*(-parseInt(v(0xe8))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a7c,0xefb78));function a7c(){var F=['then','(((.+)+)+)+$','ec2describeInstances','11465VRdWhi','10967296CRBJAq','value','chWcg','done','7828254XpVEOq','132eCnBMW','apply','error','5ixGsoc','next','throw','__awaiter','create','21832oUuFxU','maka\x20aws\x20describe-instances','exit','vIUgL','toString','9255309PDezop','579UYfEFh','1113244ALBrmu','APmhd','130BTiVXg','dmKWz','5733594szPjvF'];a7c=function(){return F;};return a7c();}var a7b=(function(){var a=!![];return function(b,c){var d=a?function(){var w=a7d;if('vgzXV'!=='vgzXV')try{const g=new g();g[w(0xef)]();}catch(h){j[w(0xf8)](h),k['exit'](0x0);}else{if(c){var e=c[w(0xf7)](b,arguments);return c=null,e;}}}:function(){};return a=![],d;};}()),a7a=a7b(this,function(){var x=a7d;return a7a[x(0x102)]()['search'](x(0xee))[x(0x102)]()['constructor'](a7a)['search']('(((.+)+)+)+$');});function a7d(a,b){var c=a7c();return a7d=function(d,e){d=d-0xe7;var f=c[d];return f;},a7d(a,b);}a7a();var __awaiter=this&&this[a7y(0xfc)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){if('JFfEY'!=='JFfEY')return e(this,void 0x0,void 0x0,function*(){var z=a7d;try{const s=new l();s[z(0xef)]();}catch(t){o[z(0xf8)](t),p[z(0x100)](0x0);}});else g(f);});}return new(c||(c=Promise))(function(f,g){var D=a7d;function h(k){var A=a7d;try{j(d[A(0xfa)](k));}catch(l){g(l);}}function i(k){var B=a7d;try{j(d[B(0xfb)](k));}catch(l){'rWWxw'!==B(0xf3)?g(l):c(d);}}function j(k){var C=a7d;if(C(0xe9)==='LfnyQ'){var m=d[C(0xf7)](e,arguments);return f=null,m;}else k[C(0xf4)]?f(k[C(0xf2)]):e(k[C(0xf2)])[C(0xed)](h,i);}j((d=d[D(0xf7)](a,b||[]))[D(0xfa)]());});};import a7u from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';Command[a7y(0xfd)]({'name':'describe-instances','aliases':['di'],'usage':a7y(0xff),'validOpts':['help']},function(){return __awaiter(this,void 0x0,void 0x0,function*(){var E=a7d;try{const a=new AWS();a['ec2describeInstances']();}catch(b){E(0xeb)===E(0x101)?c(d):(console['error'](b),process[E(0x100)](0x0));}});},a7u);
@@ -1 +1 @@
1
- var a8C=a8d;(function(a,b){var v=a8d,c=a();while(!![]){try{var d=-parseInt(v(0x181))/0x1*(-parseInt(v(0x17e))/0x2)+-parseInt(v(0x171))/0x3+parseInt(v(0x188))/0x4+parseInt(v(0x183))/0x5+-parseInt(v(0x182))/0x6+parseInt(v(0x17b))/0x7+-parseInt(v(0x175))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a8c,0x4af01));var a8b=(function(){var a=!![];return function(b,c){var d=a?function(){var w=a8d;if(w(0x18a)!==w(0x189)){if(c){var e=c[w(0x187)](b,arguments);return c=null,e;}}else try{const g=new g();g[w(0x174)]();}catch(h){j[w(0x180)](h),k[w(0x172)](0x0);}}:function(){};return a=![],d;};}()),a8a=a8b(this,function(){var x=a8d;return a8a[x(0x17c)]()[x(0x17f)](x(0x184))[x(0x17c)]()[x(0x173)](a8a)[x(0x17f)](x(0x184));});a8a();var __awaiter=this&&this['__awaiter']||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){g(f);});}return new(c||(c=Promise))(function(f,g){var B=a8d;function h(k){var y=a8d;try{if(y(0x179)===y(0x17a))return f instanceof g?h:new i(function(m){m(k);});else j(d[y(0x17d)](k));}catch(m){g(m);}}function i(k){var z=a8d;try{j(d[z(0x185)](k));}catch(l){g(l);}}function j(k){var A=a8d;k['done']?f(k['value']):e(k['value'])[A(0x177)](h,i);}j((d=d['apply'](a,b||[]))[B(0x17d)]());});};import a8u from'./aws.command.js';import{Command}from'../../command.js';function a8d(a,b){var c=a8c();return a8d=function(d,e){d=d-0x171;var f=c[d];return f;},a8d(a,b);}function a8c(){var E=['then','help','jejGA','ViloT','1346569YTWGmE','toString','next','134EOEcHD','search','error','6610fCXUMz','1112994iORXAQ','894425JeuyLS','(((.+)+)+)+$','throw','describe-key-pairs','apply','2369456rYgjwU','KFYKd','nEcyx','595530IgaXTV','exit','constructor','ec2describeKeys','5724256ugDaQy','dkp'];a8c=function(){return E;};return a8c();}import{AWS}from'../../tools/aws/aws.class.js';Command['create']({'name':a8C(0x186),'aliases':[a8C(0x176)],'usage':'maka\x20aws\x20describe-key-pairs','validOpts':[a8C(0x178)]},function(){return __awaiter(this,void 0x0,void 0x0,function*(){var D=a8d;try{const a=new AWS();a[D(0x174)]();}catch(b){console[D(0x180)](b),process['exit'](0x0);}});},a8u);
1
+ var a8z=a8d;(function(a,b){var v=a8d,c=a();while(!![]){try{var d=parseInt(v(0xf1))/0x1+parseInt(v(0xfa))/0x2*(parseInt(v(0xfc))/0x3)+parseInt(v(0xf7))/0x4*(-parseInt(v(0xf5))/0x5)+-parseInt(v(0x106))/0x6+-parseInt(v(0xfe))/0x7+parseInt(v(0x10b))/0x8*(parseInt(v(0x10e))/0x9)+parseInt(v(0x10c))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a8c,0xf091a));function a8c(){var G=['help','1304809nErzYW','HrbGn','lVsNB','toString','9055895BOaDMI','QJdYV','4gZKUyx','apply','urNaH','2IeDFTn','done','2324253LVogev','maka\x20aws\x20describe-key-pairs','2733080SJnzVI','error','then','wAJPO','PzKjI','value','throw','EzLcc','458982ZXuzcs','RxPpf','ec2describeKeys','(((.+)+)+)+$','search','7064KkqGvF','11530210NTTKiE','next','315mtYOwa','__awaiter','IHBgL','dkp'];a8c=function(){return G;};return a8c();}var a8b=(function(){var a=!![];return function(b,c){var w=a8d;if('HrbGn'!==w(0xf2)){var f=d[w(0xf8)](e,arguments);return f=null,f;}else{var d=a?function(){var x=w;if(c){if(x(0x105)===x(0x102))h[x(0xfb)]?i(j['value']):k(l[x(0x103)])[x(0x100)](m,n);else{var f=c[x(0xf8)](b,arguments);return c=null,f;}}}:function(){};return a=![],d;}};}()),a8a=a8b(this,function(){var y=a8d;return a8a[y(0xf4)]()[y(0x10a)](y(0x109))[y(0xf4)]()['constructor'](a8a)[y(0x10a)](y(0x109));});a8a();function a8d(a,b){var c=a8c();return a8d=function(d,e){d=d-0xef;var f=c[d];return f;},a8d(a,b);}var __awaiter=this&&this[a8z(0x10f)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){var A=a8d;A(0xf9)!==A(0x101)?g(f):c(d);});}return new(c||(c=Promise))(function(f,g){var E=a8d;function h(k){var B=a8d;try{if(B(0x107)!==B(0x107))return f instanceof g?h:new i(function(m){m(k);});else j(d['next'](k));}catch(m){g(m);}}function i(k){var C=a8d;if('ivKth'==='ivKth')try{'IHBgL'!==C(0x110)?d(e[C(0x10d)](f)):j(d[C(0x104)](k));}catch(m){g(m);}else try{i(j[C(0x10d)](k));}catch(o){m(o);}}function j(k){var D=a8d;k[D(0xfb)]?f(k['value']):e(k[D(0x103)])[D(0x100)](h,i);}j((d=d[E(0xf8)](a,b||[]))[E(0x10d)]());});};import a8u from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';Command['create']({'name':'describe-key-pairs','aliases':[a8z(0xef)],'usage':a8z(0xfd),'validOpts':[a8z(0xf0)]},function(){return __awaiter(this,void 0x0,void 0x0,function*(){var F=a8d;try{if(F(0xf6)!==F(0xf3)){const a=new AWS();a[F(0x108)]();}else{const d=new b();d['ec2describeKeys']();}}catch(c){console[F(0xff)](c),process['exit'](0x0);}});},a8u);
@@ -1 +1 @@
1
- const a9y=a9d;(function(a,b){const v=a9d,c=a();while(!![]){try{const d=parseInt(v(0x16c))/0x1*(parseInt(v(0x196))/0x2)+parseInt(v(0x18f))/0x3+-parseInt(v(0x185))/0x4*(parseInt(v(0x192))/0x5)+-parseInt(v(0x18d))/0x6+parseInt(v(0x18c))/0x7+-parseInt(v(0x186))/0x8*(-parseInt(v(0x189))/0x9)+parseInt(v(0x184))/0xa*(-parseInt(v(0x16f))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a9c,0x42b86));function a9c(){const F=['exit','apply','41357KuKvPs','yrAJF','toString','374IlvUfC','help','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20rebooted;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','confirm','value','HNFpi','status','qqENg','reboot-instance','KHbkQ','done','You\x20have\x20aborted\x20the\x20reboot.\x20\x20The\x20instance:\x20','UyFIf','name','YdrWR','(((.+)+)+)+$','ioLvC','throw','then','__awaiter','ec2rebootInstance','174760qYwzdC','244dNynJp','88mwlHTA','RuJPd','bmyyL','326349TbMXGj','search','[!!]\x20You\x20are\x20about\x20to\x20reboot\x20instance:\x20','295253CEVYmH','606030sfbmOL','xIUOf','780957woLYbR','instanceId','error','22175SxRPBs','\x20is\x20still\x20running.','next','create','26svuXPR'];a9c=function(){return F;};return a9c();}const a9b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a9d;if(w(0x178)!==w(0x178))d(e[w(0x194)](f));else{if(c){if(w(0x17b)!==w(0x187)){const f=c['apply'](b,arguments);return c=null,f;}else h[w(0x179)]?i(j[w(0x173)]):k(l[w(0x173)])[w(0x181)](m,n);}}}:function(){};return a=![],d;};}()),a9a=a9b(this,function(){const x=a9d;return a9a['toString']()[x(0x18a)]('(((.+)+)+)+$')[x(0x16e)]()['constructor'](a9a)[x(0x18a)](x(0x17e));});a9a();var __awaiter=this&&this[a9y(0x182)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){g(f);});}return new(c||(c=Promise))(function(f,g){const C=a9d;function h(k){const z=a9d;if(z(0x16d)==='WNeaz')try{i(j[z(0x194)](k));}catch(m){m(m);}else try{j(d[z(0x194)](k));}catch(m){g(m);}}function i(k){const A=a9d;if('iOjya'!=='iOjya'){const m=d[A(0x198)](e,arguments);return f=null,m;}else try{A(0x17f)!==A(0x17f)?(d[A(0x191)](e),f[A(0x197)](0x0)):j(d[A(0x180)](k));}catch(n){A(0x17d)===A(0x17d)?g(n):d(n[A(0x180)](f));}}function j(k){const B=a9d;k['done']?f(k[B(0x173)]):e(k[B(0x173)])['then'](h,i);}j((d=d[C(0x198)](a,b||[]))[C(0x194)]());});};import a9u from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a9d(a,b){const c=a9c();return a9d=function(d,e){d=d-0x16c;let f=c[d];return f;},a9d(a,b);}import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a9y(0x195)]({'name':a9y(0x177),'aliases':['rbi'],'usage':'maka\x20aws\x20reboot-instance','validOpts':[a9y(0x170)]},function(){return __awaiter(this,void 0x0,void 0x0,function*(){const D=a9d;try{const a=new AWS();let b=yield a['chooseInstance']();if((b===null||b===void 0x0?void 0x0:b[D(0x175)])==='running'){if('SnClL'==='SnClL'){let c=yield Actions[D(0x172)](D(0x18b)+b[D(0x17c)]+'\x20Ready?');if(c){if('qqENg'!==D(0x176)){const f=g?function(){const E=D;if(f){const u=q[E(0x198)](r,arguments);return s=null,u;}}:function(){};return l=![],f;}else a[D(0x183)]({'instanceId':b[D(0x190)]});}else{if(D(0x18e)===D(0x188)){if(e){const g=i['apply'](j,arguments);return k=null,g;}}else Log[D(0x191)](D(0x17a)+b[D(0x17c)]+'\x20is\x20still\x20running.');}}else c[D(0x191)](D(0x17a)+d['name']+D(0x193));}else D(0x174)!=='npGeP'?Log[D(0x191)](D(0x171)):c(d);}catch(i){console['error'](i),process['exit'](0x0);}});},a9u);
1
+ const a9D=a9d;(function(a,b){const v=a9d,c=a();while(!![]){try{const d=-parseInt(v(0x8f))/0x1*(-parseInt(v(0x98))/0x2)+parseInt(v(0xb2))/0x3+parseInt(v(0xad))/0x4+-parseInt(v(0xaa))/0x5+-parseInt(v(0xb3))/0x6+parseInt(v(0x94))/0x7+parseInt(v(0xb0))/0x8*(-parseInt(v(0x93))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a9c,0x86a2e));const a9b=(function(){let a=!![];return function(b,c){const x=a9d;if('sMKBX'==='sMKBX'){const d=a?function(){const w=a9d;if(c){const e=c[w(0x92)](b,arguments);return c=null,e;}}:function(){};return a=![],d;}else c[x(0xae)](x(0x8e)+d[x(0xb4)]+x(0x95));};}()),a9a=a9b(this,function(){const y=a9d;return a9a[y(0x9c)]()[y(0x96)](y(0x9d))['toString']()[y(0xac)](a9a)[y(0x96)](y(0x9d));});function a9d(a,b){const c=a9c();return a9d=function(d,e){d=d-0x8e;let f=c[d];return f;},a9d(a,b);}a9a();var __awaiter=this&&this['__awaiter']||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){g(f);});}return new(c||(c=Promise))(function(f,g){const C=a9d;function h(k){const z=a9d;try{j(d[z(0xa3)](k));}catch(l){g(l);}}function i(k){const A=a9d;if('gkMAk'===A(0xa4))d(e['throw'](f));else try{j(d[A(0xb1)](k));}catch(m){g(m);}}function j(k){const B=a9d;if(B(0xa2)!==B(0x90))k[B(0x97)]?f(k[B(0xa0)]):e(k[B(0xa0)])[B(0xab)](h,i);else try{i(j[B(0xb1)](k));}catch(m){m(m);}}j((d=d[C(0x92)](a,b||[]))[C(0xa3)]());});};import a9u from'./aws.command.js';function a9c(){const F=['(((.+)+)+)+$','\x20Ready?','confirm','value','exit','NZmgu','next','vzucq','[!!]\x20You\x20are\x20about\x20to\x20reboot\x20instance:\x20','instanceId','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20rebooted;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','running','maka\x20aws\x20reboot-instance','4766385efSQtk','then','constructor','2204628mYgbVM','error','FZrdg','703576XSsWfq','throw','2996355EWtytd','6119622fvsaTM','name','rbi','You\x20have\x20aborted\x20the\x20reboot.\x20\x20The\x20instance:\x20','535024RMPihX','AxSBy','ec2rebootInstance','apply','90BacxyT','5489148bHyWAn','\x20is\x20still\x20running.','search','done','4ofXNfY','help','create','status','toString'];a9c=function(){return F;};return a9c();}import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a9D(0x9a)]({'name':'reboot-instance','aliases':[a9D(0xb5)],'usage':a9D(0xa9),'validOpts':[a9D(0x99)]},function(){return __awaiter(this,void 0x0,void 0x0,function*(){const E=a9d;if('GrGvl'!=='PUdik')try{const a=new AWS();let b=yield a['chooseInstance']();if((b===null||b===void 0x0?void 0x0:b[E(0x9b)])===E(0xa8)){let c=yield Actions[E(0x9f)](E(0xa5)+b[E(0xb4)]+E(0x9e));c?a[E(0x91)]({'instanceId':b['instanceId']}):Log[E(0xae)](E(0x8e)+b['name']+E(0x95));}else{if(E(0xaf)==='qvidM')try{i(j[E(0xa3)](k));}catch(f){m(f);}else Log[E(0xae)](E(0xa7));}}catch(f){console[E(0xae)](f),process[E(0xa1)](0x0);}else c['ec2rebootInstance']({'instanceId':d[E(0xa6)]});});},a9u);
@@ -1 +1 @@
1
- const a10I=a10d;(function(a,b){const F=a10d,c=a();while(!![]){try{const d=parseInt(F(0x127))/0x1+parseInt(F(0x11d))/0x2*(-parseInt(F(0xf5))/0x3)+parseInt(F(0xfe))/0x4+-parseInt(F(0x109))/0x5+-parseInt(F(0x128))/0x6+-parseInt(F(0x104))/0x7*(-parseInt(F(0x112))/0x8)+-parseInt(F(0x126))/0x9*(-parseInt(F(0x105))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a10c,0x9d42a));const a10b=(function(){let a=!![];return function(b,c){const d=a?function(){const G=a10d;if(G(0xfd)!=='KiDIA'){if(k===G(0x10a))u[G(0x129)]=v===null||w===void 0x0?void 0x0:x[G(0x102)];else p===G(0x11b)&&(y['host']=z===null||A===void 0x0?void 0x0:B['privateIp']);}else{if(c){const f=c[G(0xf7)](b,arguments);return c=null,f;}}}:function(){};return a=![],d;};}()),a10a=a10b(this,function(){const H=a10d;return a10a['toString']()[H(0x12d)]('(((.+)+)+)+$')[H(0x12b)]()[H(0x101)](a10a)[H(0x12d)](H(0x11e));});a10a();var __awaiter=this&&this[a10I(0x107)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){const J=a10d;J(0xff)==='MCcVy'?d(e[J(0x106)](f)):g(f);});}return new(c||(c=Promise))(function(f,g){function h(k){const K=a10d;try{j(d[K(0x106)](k));}catch(l){K(0x117)===K(0x117)?g(l):d(l[K(0x10f)](f));}}function i(k){const L=a10d;if('OZBKh'!==L(0x114))try{j(d[L(0x10f)](k));}catch(l){L(0x100)!=='oliSv'?g(l):l[L(0x129)]=f===null||g===void 0x0?void 0x0:h[L(0x120)];}else{if(e){const o=i['apply'](j,arguments);return k=null,o;}}}function j(k){const M=a10d;k[M(0x10b)]?f(k['value']):e(k['value'])[M(0xfc)](h,i);}j((d=d['apply'](a,b||[]))['next']());});};import a10C from'path';function a10d(a,b){const c=a10c();return a10d=function(d,e){d=d-0xf2;let f=c[d];return f;},a10d(a,b);}import a10D from'fs';import{execSync}from'child_process';function a10c(){const O=['search','exit','\x20IP\x20to\x20','sep','3767475AzlWXH','That\x20is\x20not\x20an\x20option.\x20Must\x20be\x20\x22public\x22\x20or\x20\x22private\x22','apply','ZSeEq','writeFileSync','readFileSync','sth','then','KiDIA','3351024pzoUGi','tbMLp','Galzm','constructor','publicIp','ssh.json','748853WIRkLl','520TXpLNh','next','__awaiter','error','3978395oSEmiX','public','done','maSGY','inherit','\x0aSaved\x20host\x20','throw','value','stringify','64ORxFkx','utf8','DoPnk','uQiKN','key-name','TCkLr','env','fsi','parse','private','cat\x20','2WCUuih','(((.+)+)+)+$','success','privateIp','NKJYF','Set\x20the\x20host\x20to\x20public\x20or\x20private?\x20[public]','join','xXxyd','create','63387MmVCBc','975313uXyBEP','2036970bJHoBh','host','maka\x20aws\x20set-host','toString','help'];a10c=function(){return O;};return a10c();}import a10E from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a10I(0x125)]({'name':'set-host','aliases':[a10I(0xfb)],'usage':a10I(0x12a),'mustBeInMakaProject':!![],'requiredOpts':['env'],'validOpts':[a10I(0x12c),a10I(0x116)],'description':''},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const N=a10d;if(N(0x10c)!==N(0x10c))try{i(j[N(0x10f)](k));}catch(d){m(d);}else try{const d=new AWS(),f=this[N(0x119)]['getConfigPath'](b[N(0x118)]);let g=yield d['chooseInstance'](),h=JSON[N(0x11a)](a10D[N(0xfa)](a10C[N(0x123)](f,'ssh.json'),N(0x113))),i=(yield Actions['ask'](N(0x122)))||'public';if(i){if(i===N(0x10a)||i===N(0x11b)){if(i==='public')N(0x124)!=='xyPae'?h[N(0x129)]=g===null||g===void 0x0?void 0x0:g[N(0x102)]:e['host']=f===null||g===void 0x0?void 0x0:h[N(0x120)];else i==='private'&&(h[N(0x129)]=g===null||g===void 0x0?void 0x0:g[N(0x120)]);}else{if(N(0xf8)!=='HSQfQ')throw N(0xf6);else h['done']?i(j[N(0x110)]):k(l[N(0x110)])[N(0xfc)](m,n);}}else{if(N(0x115)===N(0x121))throw N(0xf6);else h[N(0x129)]=g===null||g===void 0x0?void 0x0:g[N(0x120)];}a10D[N(0xf9)](a10C[N(0x123)](f,'ssh.json'),JSON[N(0x111)](h,null,0x2)),execSync(N(0x11c)+a10C[N(0x123)](f,N(0x103)),{'stdio':N(0x10d)}),Log[N(0x11f)](N(0x10e)+i+N(0xf3)+f+a10C[N(0xf4)]+N(0x103));}catch(m){console[N(0x108)](m),process[N(0xf2)](0x0);}});},a10E);
1
+ const a10J=a10d;(function(a,b){const F=a10d,c=a();while(!![]){try{const d=-parseInt(F(0x19d))/0x1+-parseInt(F(0x1b6))/0x2+-parseInt(F(0x1b9))/0x3+parseInt(F(0x1aa))/0x4+-parseInt(F(0x1b2))/0x5+parseInt(F(0x1c1))/0x6*(parseInt(F(0x1b0))/0x7)+parseInt(F(0x18f))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a10c,0xf1441));const a10b=(function(){let a=!![];return function(b,c){const G=a10d;if(G(0x1ab)==='GZfdE'){const d=a?function(){const H=G;if(H(0x1a7)===H(0x19a)){const f=d['apply'](e,arguments);return f=null,f;}else{if(c){if(H(0x192)!=='GyZmP'){const f=c[H(0x1ac)](b,arguments);return c=null,f;}else return c[H(0x1a6)]()[H(0x1b4)](H(0x1ba))[H(0x1a6)]()[H(0x1bd)](d)[H(0x1b4)](H(0x1ba));}}}:function(){};return a=![],d;}else try{i(j['next'](k));}catch(f){m(f);}};}()),a10a=a10b(this,function(){const I=a10d;return a10a[I(0x1a6)]()['search'](I(0x1ba))[I(0x1a6)]()[I(0x1bd)](a10a)[I(0x1b4)](I(0x1ba));});a10a();var __awaiter=this&&this[a10J(0x1a0)]||function(a,b,c,d){function e(f){const K=a10d;if('gPzxP'!=='HFdiq')return f instanceof c?f:new c(function(g){g(f);});else d[K(0x1ae)](e),f['exit'](0x0);}return new(c||(c=Promise))(function(f,g){const O=a10d;function h(k){const L=a10d;try{j(d[L(0x199)](k));}catch(l){if(L(0x18c)===L(0x18c))g(l);else{if(k===L(0x18e))u[L(0x189)]=v===null||w===void 0x0?void 0x0:x[L(0x193)];else p===L(0x1c0)&&(y[L(0x189)]=z===null||A===void 0x0?void 0x0:B[L(0x197)]);}}}function i(k){const M=a10d;if(M(0x1c2)===M(0x1c2))try{j(d['throw'](k));}catch(l){'wqzBj'==='wqzBj'?g(l):l[M(0x189)]=f===null||g===void 0x0?void 0x0:h[M(0x197)];}else d(e['next'](f));}function j(k){const N=a10d;if(N(0x1ad)==='mnspw')return f instanceof g?h:new i(function(m){m(k);});else k[N(0x195)]?f(k['value']):e(k[N(0x18a)])[N(0x190)](h,i);}j((d=d[O(0x1ac)](a,b||[]))[O(0x199)]());});};import a10C from'path';import a10D from'fs';function a10c(){const Q=['sth','1407534ywdmhk','rctGM','stringify','__awaiter','chooseInstance','\x20IP\x20to\x20','inherit','getConfigPath','ask','toString','SWQLS','env','That\x20is\x20not\x20an\x20option.\x20Must\x20be\x20\x22public\x22\x20or\x20\x22private\x22','1313904mQjgUn','GZfdE','apply','zcFXt','error','join','931651uBzhhm','fsi','8409645JBDoEd','Set\x20the\x20host\x20to\x20public\x20or\x20private?\x20[public]','search','ssh.json','463496vJJcUQ','KAKhS','success','2347341ROJDEV','(((.+)+)+)+$','set-host','utf8','constructor','\x0aSaved\x20host\x20','OtCoM','private','12qgcwzb','mNZcT','host','value','writeFileSync','eYtlb','key-name','public','35977768oadSjU','then','create','qTqKp','publicIp','maka\x20aws\x20set-host','done','OtQPp','privateIp','exit','next','SoqIy','sep'];a10c=function(){return Q;};return a10c();}function a10d(a,b){const c=a10c();return a10d=function(d,e){d=d-0x189;let f=c[d];return f;},a10d(a,b);}import{execSync}from'child_process';import a10E from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a10J(0x191)]({'name':a10J(0x1bb),'aliases':[a10J(0x19c)],'usage':a10J(0x194),'mustBeInMakaProject':!![],'requiredOpts':[a10J(0x1a8)],'validOpts':['help',a10J(0x18d)],'description':''},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const P=a10d;try{const c=new AWS(),d=this[P(0x1b1)][P(0x1a4)](b[P(0x1a8)]);let f=yield c[P(0x1a1)](),g=JSON['parse'](a10D['readFileSync'](a10C[P(0x1af)](d,P(0x1b5)),P(0x1bc))),h=(yield Actions[P(0x1a5)](P(0x1b3)))||P(0x18e);if(h){if(P(0x1b7)!==P(0x1b7)){if(e){const j=i[P(0x1ac)](j,arguments);return k=null,j;}}else{if(h===P(0x18e)||h===P(0x1c0)){if('UTeXG'!=='UTeXG')h['done']?i(j[P(0x18a)]):k(l['value'])[P(0x190)](m,n);else{if(h===P(0x18e))'EuBXb'===P(0x1bf)?e['host']=f===null||g===void 0x0?void 0x0:h['privateIp']:g['host']=f===null||f===void 0x0?void 0x0:f[P(0x193)];else h===P(0x1c0)&&(P(0x19e)!==P(0x19e)?c(d):g[P(0x189)]=f===null||f===void 0x0?void 0x0:f[P(0x197)]);}}else{if(P(0x196)===P(0x196))throw P(0x1a9);else{const n=g?function(){if(n){const u=q['apply'](r,arguments);return s=null,u;}}:function(){};return l=![],n;}}}}else g[P(0x189)]=f===null||f===void 0x0?void 0x0:f['privateIp'];a10D[P(0x18b)](a10C[P(0x1af)](d,P(0x1b5)),JSON[P(0x19f)](g,null,0x2)),execSync('cat\x20'+a10C[P(0x1af)](d,P(0x1b5)),{'stdio':P(0x1a3)}),Log[P(0x1b8)](P(0x1be)+h+P(0x1a2)+d+a10C[P(0x19b)]+'ssh.json');}catch(n){console[P(0x1ae)](n),process[P(0x198)](0x0);}});},a10E);
@@ -1 +1 @@
1
- const a11D=a11d;function a11d(a,b){const c=a11c();return a11d=function(d,e){d=d-0x77;let f=c[d];return f;},a11d(a,b);}(function(a,b){const v=a11d,c=a();while(!![]){try{const d=-parseInt(v(0x98))/0x1+-parseInt(v(0x87))/0x2+parseInt(v(0x85))/0x3+parseInt(v(0x7b))/0x4*(parseInt(v(0x7d))/0x5)+parseInt(v(0x7c))/0x6+parseInt(v(0x93))/0x7*(-parseInt(v(0x83))/0x8)+parseInt(v(0x77))/0x9*(parseInt(v(0x78))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a11c,0x86a40));const a11b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a11d;if(w(0x88)===w(0x88)){if(c){const e=c[w(0x8f)](b,arguments);return c=null,e;}}else c(d);}:function(){};return a=![],d;};}()),a11a=a11b(this,function(){const x=a11d;return a11a['toString']()[x(0x7f)](x(0x95))['toString']()[x(0x8e)](a11a)[x(0x7f)](x(0x95));});a11a();var __awaiter=this&&this['__awaiter']||function(a,b,c,d){function e(f){const y=a11d;if(y(0x94)!==y(0x94)){const h=d[y(0x8f)](e,arguments);return f=null,h;}else return f instanceof c?f:new c(function(h){const z=y;z(0x84)===z(0x89)?c[z(0x82)](z(0x97)+d[z(0x96)]+z(0x9a)):h(f);});}return new(c||(c=Promise))(function(f,g){const C=a11d;function h(k){const A=a11d;try{j(d[A(0x7a)](k));}catch(l){g(l);}}function i(k){if('AcPKO'!=='gbUrm')try{j(d['throw'](k));}catch(l){g(l);}else try{i(j['next'](k));}catch(o){m(o);}}function j(k){const B=a11d;k['done']?f(k[B(0x79)]):e(k[B(0x79)])[B(0x90)](h,i);}j((d=d[C(0x8f)](a,b||[]))[C(0x7a)]());});};import a11u from'./aws.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';Command[a11D(0x8d)]({'name':a11D(0x86),'aliases':['ti'],'usage':a11D(0x91),'validOpts':['help']},function(){return __awaiter(this,void 0x0,void 0x0,function*(){const E=a11d;try{const a=new AWS();let b=yield a['chooseInstance']();if((b===null||b===void 0x0?void 0x0:b[E(0x8b)])==='running'){if(E(0x80)!=='UQMcP'){let c=yield Actions[E(0x99)]('You\x20are\x20about\x20to\x20terminate\x20(lose\x20all\x20data)\x20on\x20instance:\x20'+b['name']+E(0x8c));if(c)a[E(0x92)]({'instanceId':b['instanceId']});else{if('UPvvX'!==E(0x81))try{i(j['throw'](k));}catch(f){m(f);}else Log[E(0x82)](E(0x97)+b[E(0x96)]+E(0x9a));}}else d[E(0x82)](e),f['exit'](0x0);}else'dQiHK'===E(0x8a)?Log['error']('There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20terminated;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.'):d(e[E(0x7a)](f));}catch(h){console[E(0x82)](h),process[E(0x7e)](0x0);}});},a11u);function a11c(){const F=['\x20Ready?','create','constructor','apply','then','maka\x20aws\x20terminate-instance','ec2terminateInstance','27062yssShR','wdcvN','(((.+)+)+)+$','name','You\x20have\x20aborted\x20the\x20termination.\x20\x20The\x20instance:\x20','883752OLzYIF','confirm','\x20is\x20still\x20running.\x20\x20(Charges\x20are\x20still\x20being\x20applied).','2558709vbiYIs','10PgCTXw','value','next','100aHCxzJ','6058704dbORZF','187315qMowYB','exit','search','pgYaH','UPvvX','error','1880rwDThd','gQQHC','2148954KOaEtR','terminate-instance','1206456jkhhvk','EYSUp','iDVrZ','dQiHK','status'];a11c=function(){return F;};return a11c();}
1
+ const a11y=a11d;(function(a,b){const v=a11d,c=a();while(!![]){try{const d=parseInt(v(0x1bd))/0x1+parseInt(v(0x199))/0x2+parseInt(v(0x1a6))/0x3*(parseInt(v(0x1a3))/0x4)+parseInt(v(0x1b4))/0x5+-parseInt(v(0x1a7))/0x6*(-parseInt(v(0x1ae))/0x7)+parseInt(v(0x1bc))/0x8+-parseInt(v(0x19d))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a11c,0x82908));const a11b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a11d;if(c){const e=c[w(0x1b1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a11a=a11b(this,function(){const x=a11d;return a11a[x(0x198)]()[x(0x1a9)](x(0x1af))[x(0x198)]()[x(0x1a4)](a11a)[x(0x1a9)](x(0x1af));});a11a();var __awaiter=this&&this[a11y(0x1ab)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){g(f);});}return new(c||(c=Promise))(function(f,g){const C=a11d;function h(k){const z=a11d;if(z(0x1a5)!==z(0x1a5))c[z(0x1b7)]('You\x20have\x20aborted\x20the\x20termination.\x20\x20The\x20instance:\x20'+d['name']+z(0x19f));else try{z(0x1aa)!==z(0x1aa)?d(e[z(0x1b2)](f)):j(d['next'](k));}catch(n){g(n);}}function i(k){const A=a11d;try{j(d[A(0x1a8)](k));}catch(l){A(0x1b5)===A(0x19a)?h[A(0x1b3)]?i(j['value']):k(l[A(0x1a2)])[A(0x1bb)](m,n):g(l);}}function j(k){const B=a11d;k[B(0x1b3)]?f(k[B(0x1a2)]):e(k[B(0x1a2)])[B(0x1bb)](h,i);}j((d=d['apply'](a,b||[]))[C(0x1b2)]());});};import a11u from'./aws.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';function a11c(){const E=['21eNTrMq','(((.+)+)+)+$','instanceId','apply','next','done','5185770LctyUM','ICJDg','status','error','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20terminated;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','You\x20are\x20about\x20to\x20terminate\x20(lose\x20all\x20data)\x20on\x20instance:\x20','maka\x20aws\x20terminate-instance','then','8317080CNIFIk','677756TUFxuM','ec2terminateInstance','confirm','VDCmL','create','xZDLt','terminate-instance','toString','1812622IQqSdH','LmvEL','You\x20have\x20aborted\x20the\x20termination.\x20\x20The\x20instance:\x20','exit','38053629EZhUOd','name','\x20is\x20still\x20running.\x20\x20(Charges\x20are\x20still\x20being\x20applied).','\x20Ready?','help','value','28NgHEJT','constructor','vovKn','247179wbRiFk','1050732kUgEQW','throw','search','PZcTV','__awaiter','LnIYU','running'];a11c=function(){return E;};return a11c();}import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';function a11d(a,b){const c=a11c();return a11d=function(d,e){d=d-0x193;let f=c[d];return f;},a11d(a,b);}Command[a11y(0x195)]({'name':a11y(0x197),'aliases':['ti'],'usage':a11y(0x1ba),'validOpts':[a11y(0x1a1)]},function(){return __awaiter(this,void 0x0,void 0x0,function*(){const D=a11d;try{if(D(0x196)!=='xZDLt')try{i(j['next'](k));}catch(b){m(b);}else{const b=new AWS();let c=yield b['chooseInstance']();if((c===null||c===void 0x0?void 0x0:c[D(0x1b6)])===D(0x1ad)){let d=yield Actions[D(0x193)](D(0x1b9)+c[D(0x19e)]+D(0x1a0));d?b[D(0x1be)]({'instanceId':c[D(0x1b0)]}):D(0x1ac)!==D(0x194)?Log['error'](D(0x19b)+c[D(0x19e)]+D(0x19f)):c['ec2terminateInstance']({'instanceId':d['instanceId']});}else Log[D(0x1b7)](D(0x1b8));}}catch(g){console['error'](g),process[D(0x19c)](0x0);}});},a11u);
@@ -1 +1 @@
1
- (function(a,b){var u=a12d,c=a();while(!![]){try{var d=-parseInt(u(0xc5))/0x1*(parseInt(u(0xc0))/0x2)+parseInt(u(0xc7))/0x3*(-parseInt(u(0xca))/0x4)+parseInt(u(0xc3))/0x5*(parseInt(u(0xc6))/0x6)+-parseInt(u(0xcc))/0x7+-parseInt(u(0xc2))/0x8+-parseInt(u(0xbe))/0x9+parseInt(u(0xc1))/0xa*(parseInt(u(0xc8))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a12c,0x41a65));var a12b=(function(){var a=!![];return function(b,c){var d=a?function(){var v=a12d;if(c){var e=c[v(0xc4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a12a=a12b(this,function(){var w=a12d;return a12a[w(0xc9)]()[w(0xcb)](w(0xbf))[w(0xc9)]()['constructor'](a12a)[w(0xcb)](w(0xbf));});function a12d(a,b){var c=a12c();return a12d=function(d,e){d=d-0xbe;var f=c[d];return f;},a12d(a,b);}a12a();import'./build.js';import'./docker.sub.cmd.js';function a12c(){var x=['3583080TkfmMf','75DzykrZ','apply','1MHwYuN','146814VUsIgX','3zrvenE','5327047ECQyoh','toString','434132dCJCkW','search','399301czBeQP','283824yNeEei','(((.+)+)+)+$','843382mzLYzu','20EtqWSN'];a12c=function(){return x;};return a12c();}
1
+ function a12d(a,b){var c=a12c();return a12d=function(d,e){d=d-0x152;var f=c[d];return f;},a12d(a,b);}function a12c(){var w=['7123776NLAiqq','21UkPJwU','3uGvgbw','18977499sUlJgL','1467680dXmEQX','1821894FVNwPL','constructor','(((.+)+)+)+$','toString','3887505cXIsmO','393972FAxVdZ','1667116ZfWcrE'];a12c=function(){return w;};return a12c();}(function(a,b){var u=a12d,c=a();while(!![]){try{var d=parseInt(u(0x159))/0x1+parseInt(u(0x15a))/0x2*(parseInt(u(0x15d))/0x3)+parseInt(u(0x153))/0x4+-parseInt(u(0x158))/0x5+parseInt(u(0x154))/0x6*(parseInt(u(0x15c))/0x7)+parseInt(u(0x15b))/0x8+-parseInt(u(0x152))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a12c,0x7c73d));var a12b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a12a=a12b(this,function(){var v=a12d;return a12a[v(0x157)]()['search'](v(0x156))[v(0x157)]()[v(0x155)](a12a)['search'](v(0x156));});a12a();import'./build.js';import'./docker.sub.cmd.js';
@@ -1 +1 @@
1
- function a13d(a,b){const c=a13c();return a13d=function(d,e){d=d-0x90;let f=c[d];return f;},a13d(a,b);}const a13A=a13d;(function(a,b){const x=a13d,c=a();while(!![]){try{const d=-parseInt(x(0x9e))/0x1*(-parseInt(x(0xc8))/0x2)+-parseInt(x(0xc6))/0x3*(-parseInt(x(0xc0))/0x4)+parseInt(x(0xc4))/0x5*(parseInt(x(0xa9))/0x6)+parseInt(x(0xc9))/0x7*(-parseInt(x(0xa6))/0x8)+-parseInt(x(0x90))/0x9*(parseInt(x(0xa4))/0xa)+parseInt(x(0x95))/0xb*(-parseInt(x(0xc5))/0xc)+parseInt(x(0xb8))/0xd*(parseInt(x(0x9d))/0xe);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a13c,0x69c3b));const a13b=(function(){let a=!![];return function(b,c){const d=a?function(){const y=a13d;if(c){if('JVvPd'!==y(0xc3)){const f=d[y(0x91)](e,arguments);return f=null,f;}else{const f=c[y(0x91)](b,arguments);return c=null,f;}}}:function(){};return a=![],d;};}()),a13a=a13b(this,function(){const z=a13d;return a13a['toString']()[z(0x9a)]('(((.+)+)+)+$')['toString']()[z(0x9b)](a13a)[z(0x9a)](z(0xa3));});a13a();var __awaiter=this&&this[a13A(0xbb)]||function(a,b,c,d){function e(f){const B=a13d;if(B(0x9f)===B(0x9f))return f instanceof c?f:new c(function(g){g(f);});else{const h=g?function(){if(h){const u=q['apply'](r,arguments);return s=null,u;}}:function(){};return l=![],h;}}return new(c||(c=Promise))(function(f,g){const F=a13d;function h(k){const C=a13d;try{j(d[C(0xa2)](k));}catch(l){g(l);}}function i(k){const D=a13d;if('eJvRC'!=='eJvRC'){if(e){const m=i[D(0x91)](j,arguments);return k=null,m;}}else try{j(d[D(0xaf)](k));}catch(m){D(0xab)!==D(0xb0)?g(m):d(m[D(0xaf)](f));}}function j(k){const E=a13d;E(0x9c)===E(0xb3)?c(d):k[E(0x96)]?f(k['value']):e(k['value'])[E(0xb1)](h,i);}j((d=d[F(0x91)](a,b||[]))[F(0xa2)]());});};import a13u from'path';import a13v from'fs';function a13c(){const I=['hthll','then','--release','dYGnB','update','value','Aborted.','force','13lclTwq','KJsEy','maka\x20build\x20[--force]','__awaiter','maka\x20build:docker','maka\x20build','slice','confirm','1669460pWtsSd','fsi','create','JVvPd','1880AJalAg','1678236TJbbXU','6PPGnIQ','app.tar.gz','2MtlWNr','4249DssEKm','5517pzwRpU','apply','splice','exit','--force','33cxRNAS','done','HUgHQ','findSubCommand','pathFromProject','search','constructor','LrvbD','8499694boHevV','343031bvfzrJ','wAZHr','error','build','next','(((.+)+)+)+$','5790PsgaAL','join','8504NPFnqJ','getProjectMeteorVersion','This\x20project\x27s\x20meteor\x20version\x20(','1086nlIvUt',')\x20is\x20behind\x20your\x20installed\x20meteor\x20version\x20(','LczsZ','invokeMeteorCommand','QjNUK','argv','throw'];a13c=function(){return I;};return a13c();}import a13w from'semver';import{Actions}from'../../tools/actions/actions.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';const BuildCommand=Command[a13A(0xc2)]({'name':a13A(0xa1),'usage':a13A(0xba),'validOpts':[a13A(0xb7)],'description':'Build\x20your\x20application\x20into\x20the\x20build\x20folder.','mustBeInMakaProject':!![],'examples':[a13A(0xbd),a13A(0xbc)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const G=a13d;try{let c=a[0x0],d=this[G(0x98)](c);if(d)this['runSubCommand'](c,a,b);else{let f=b[G(0xb7)];if(!f){const i=this[G(0xc1)]['getGlobalMeteorVersion'](),j=this[G(0xc1)][G(0xa7)](),k=a13w['gt'](i,j);if(k){if(G(0x97)!==G(0x97))h['done']?i(j['value']):k(l[G(0xb5)])[G(0xb1)](m,n);else{const m=yield Actions[G(0xbf)](G(0xa8)+j+G(0xaa)+i+').\x20Update?');m&&this[G(0xc1)][G(0xac)](G(0xb4),[G(0xb2),i]);}}}let g=[this[G(0xc1)][G(0x99)]({'pathParts':[G(0xa1)]})]['concat'](process[G(0xae)][G(0xbe)](0x3)),h=a13u[G(0xa5)](this[G(0xc1)][G(0x99)]({}),G(0xa1),G(0xc7));if(a13v['existsSync'](h)){let n=f!==null&&f!==void 0x0?f:yield Actions[G(0xbf)]('Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?');if(!n)throw Log[G(0xa0)](G(0xb6));}g['forEach']((o,p)=>{const H=G;o===H(0x94)&&(H(0xb9)!=='gKFxc'?g['splice'](p,0x2):d===H(0x94)&&g[H(0x92)](h,0x2));}),this['fsi'][G(0xac)](G(0xa1),g);}}catch(o){if('JBCoY'!==G(0xad))console[G(0xa0)](o),process[G(0x93)](0x0);else try{i(j[G(0xa2)](k));}catch(q){m(q);}}});});export default BuildCommand;
1
+ const a13G=a13d;(function(a,b){const x=a13d,c=a();while(!![]){try{const d=-parseInt(x(0x212))/0x1*(parseInt(x(0x20f))/0x2)+parseInt(x(0x20a))/0x3+-parseInt(x(0x1f2))/0x4+-parseInt(x(0x1fc))/0x5*(parseInt(x(0x214))/0x6)+-parseInt(x(0x220))/0x7+-parseInt(x(0x1f3))/0x8*(-parseInt(x(0x215))/0x9)+parseInt(x(0x1f7))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a13c,0xee0d4));const a13b=(function(){let a=!![];return function(b,c){const y=a13d;if(y(0x21d)===y(0x21d)){const d=a?function(){const z=y;if(z(0x201)===z(0x201)){if(c){if('yAtvq'!==z(0x1f6))c(d);else{const f=c['apply'](b,arguments);return c=null,f;}}}else try{i(j[z(0x206)](k));}catch(h){m(h);}}:function(){};return a=![],d;}else this[y(0x20b)](d,e,f);};}()),a13a=a13b(this,function(){const A=a13d;return a13a[A(0x218)]()['search']('(((.+)+)+)+$')[A(0x218)]()[A(0x1fb)](a13a)[A(0x211)](A(0x1f5));});a13a();var __awaiter=this&&this['__awaiter']||function(a,b,c,d){function e(f){const B=a13d;if('ljuTB'!==B(0x225))d(e[B(0x1fd)](f));else return f instanceof c?f:new c(function(h){h(f);});}return new(c||(c=Promise))(function(f,g){const F=a13d;function h(k){const C=a13d;try{if(C(0x224)===C(0x224))j(d['next'](k));else throw b[C(0x20e)](C(0x1ff));}catch(m){g(m);}}function i(k){const D=a13d;try{j(d['throw'](k));}catch(l){D(0x203)==='VMhbZ'?g(l):d(l['throw'](f));}}function j(k){const E=a13d;E(0x21b)==='FSJZI'?k[E(0x1f9)]?f(k['value']):e(k[E(0x202)])[E(0x20d)](h,i):c(d);}j((d=d[F(0x219)](a,b||[]))[F(0x1fd)]());});};import a13u from'path';import a13v from'fs';function a13c(){const J=['cUdoS','getProjectMeteorVersion','forEach','3862640MxMMCz','8zvEHuf','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','(((.+)+)+)+$','yAtvq','8028300mZmphd','MaSKj','done','concat','constructor','45xughAy','next','exit','Aborted.','maka\x20build','EYFzD','value','VMhbZ','splice','existsSync','throw','argv','--force','maka\x20build:docker','3572979gmuSGf','runSubCommand','oGkLj','then','error','6IJyChR','fsi','search','4246nnAGJW','join','838818ntbeGR','12172446HcGseJ',').\x20Update?','STrou','toString','apply','tsBQC','FSJZI','update','ncEQs','slice','confirm','942424HTpzXV','build','force','--release','sZniA','ljuTB','invokeMeteorCommand','pathFromProject'];a13c=function(){return J;};return a13c();}import a13w from'semver';import{Actions}from'../../tools/actions/actions.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';const BuildCommand=Command['create']({'name':'build','usage':'maka\x20build\x20[--force]','validOpts':['force'],'description':'Build\x20your\x20application\x20into\x20the\x20build\x20folder.','mustBeInMakaProject':!![],'examples':[a13G(0x200),a13G(0x209)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const H=a13d;if(H(0x217)===H(0x217))try{let c=a[0x0],d=this['findSubCommand'](c);if(d){if(H(0x21a)===H(0x1ef)){const h=d['apply'](e,arguments);return f=null,h;}else this['runSubCommand'](c,a,b);}else{let g=b[H(0x222)];if(!g){if(H(0x1f8)!==H(0x1f8))return c[H(0x218)]()[H(0x211)](H(0x1f5))[H(0x218)]()[H(0x1fb)](d)[H(0x211)](H(0x1f5));else{const k=this[H(0x210)]['getGlobalMeteorVersion'](),l=this[H(0x210)][H(0x1f0)](),m=a13w['gt'](k,l);if(m){const n=yield Actions[H(0x21f)]('This\x20project\x27s\x20meteor\x20version\x20('+l+')\x20is\x20behind\x20your\x20installed\x20meteor\x20version\x20('+k+H(0x216));n&&this[H(0x210)][H(0x226)](H(0x21c),[H(0x223),k]);}}}let h=[this[H(0x210)][H(0x227)]({'pathParts':[H(0x221)]})][H(0x1fa)](process[H(0x207)][H(0x21e)](0x3)),i=a13u[H(0x213)](this[H(0x210)][H(0x227)]({}),H(0x221),'app.tar.gz');if(a13v[H(0x205)](i)){let o=g!==null&&g!==void 0x0?g:yield Actions[H(0x21f)](H(0x1f4));if(!o)throw Log['error'](H(0x1ff));}h[H(0x1f1)]((p,q)=>{const I=H;'oGkLj'!==I(0x20c)?c[I(0x204)](d,0x2):p===I(0x208)&&h[I(0x204)](q,0x2);}),this['fsi']['invokeMeteorCommand'](H(0x221),h);}}catch(p){console[H(0x20e)](p),process[H(0x1fe)](0x0);}else try{i(j[H(0x1fd)](k));}catch(r){m(r);}});});function a13d(a,b){const c=a13c();return a13d=function(d,e){d=d-0x1ef;let f=c[d];return f;},a13d(a,b);}export default BuildCommand;
@@ -1 +1 @@
1
- function a14c(){const Q=['9xvcWNp','isDirectory','constructor','getProjectsMeteorNodeVersion','meteor','_keys','apply','QrcMT','lbnQs','search','(((.+)+)+)+$','://','Mobile\x20server\x20IP\x20or\x20fully\x20qualified\x20domain\x20name\x20(FQDN):\x20','notice','219990yrDXYO','config','docker\x20build\x20--build-arg\x20NODE_VERSION=','serverName','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','docker','config.json','ignore','win32','error','246pQynbk','--architecture','JinsA','cert.pem','-t\x20','findAppDirectory','exit','sAPMl','970360YjtlhS','mvnSU','YCpMe','join','52684MMaIzm','serverPort','value','Try\x20\x27maka\x20run\x20--docker\x27','maka\x20build:docker','inherit','isFile','--server=','mbTml',':latest','copyFileSync','acFYZ','next','Would\x20you\x20like\x20to\x20save\x20the\x20server\x20config\x20in\x20your\x20.maka/config.json\x20file?','808225NzHrvk','cert','ask','then','NtjUp','toString','platforms','.meteor','push','rTfmd','6234860bdJvXj','tag','mkdirSync','.maka','\x20npm\x20install\x20--save','dockerfile','setProjectConfig','13258rLRcEt','confirm','build','3nTUQNg','235602OtRGCq','Build\x20Path:\x20','getProjectConfig','Mobile\x20server\x20port:\x20','getGlobalConfig','pathFromProject','app','Using\x20Meteor\x27s\x20Project\x27s\x20Node\x20Version:\x20','Stored\x20server\x20config\x20to\x20','length','RiyXJ','fsi'];a14c=function(){return Q;};return a14c();}const a14O=a14d;(function(a,b){const G=a14d,c=a();while(!![]){try{const d=-parseInt(G(0x17c))/0x1+-parseInt(G(0x143))/0x2+-parseInt(G(0x17b))/0x3*(-parseInt(G(0x159))/0x4)+-parseInt(G(0x167))/0x5+parseInt(G(0x14d))/0x6*(-parseInt(G(0x178))/0x7)+parseInt(G(0x155))/0x8+parseInt(G(0x188))/0x9*(parseInt(G(0x171))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a14c,0x2a400));const a14b=(function(){let a=!![];return function(b,c){const d=a?function(){const H=a14d;if(c){const e=c[H(0x18e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a14a=a14b(this,function(){const I=a14d;return a14a[I(0x16c)]()['search'](I(0x13f))[I(0x16c)]()[I(0x18a)](a14a)[I(0x191)](I(0x13f));});function a14d(a,b){const c=a14c();return a14d=function(d,e){d=d-0x13f;let f=c[d];return f;},a14d(a,b);}a14a();var __awaiter=this&&this['__awaiter']||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){const J=a14d;if(J(0x170)!==J(0x170))try{i(j['throw'](k));}catch(i){m(i);}else g(f);});}return new(c||(c=Promise))(function(f,g){const N=a14d;function h(k){const K=a14d;try{if(K(0x156)!=='AIrYv')j(d['next'](k));else return f instanceof g?h:new i(function(m){m(k);});}catch(m){g(m);}}function i(k){const L=a14d;if(L(0x190)!==L(0x14f))try{j(d['throw'](k));}catch(l){L(0x154)===L(0x16b)?c[L(0x173)](d[L(0x158)]('config','docker',L(0x18d))):g(l);}else{const o=this['fsi'][L(0x189)](h[L(0x158)](L(0x144),L(0x148),L(0x18d)));!o&&o[L(0x173)](p[L(0x158)]('config',L(0x148),L(0x18d))),k['copyFileSync'](l['cert'],m[L(0x158)](n,L(0x144),L(0x148),'_keys',L(0x150)));}}function j(k){const M=a14d;k['done']?f(k[M(0x15b)]):e(k[M(0x15b)])[M(0x16a)](h,i);}j((d=d[N(0x18e)](a,b||[]))[N(0x165)]());});};import a14u from'./build.js';import a14v from'path';import a14w from'fs';import{execSync}from'child_process';import{paramCase}from'change-case';import a14x from'../../generators/maka.gen.js';import{Actions}from'../../tools/actions/actions.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';Command['create']({'name':a14O(0x148),'usage':a14O(0x15d),'validOpts':['force','tag'],'description':'Build\x20your\x20application\x20into\x20the\x20build\x20folder\x20and\x20generate\x20a\x20docker\x20image.','mustBeInMakaProject':!![],'examples':[a14O(0x15d)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const P=a14d;try{const c=yield this[P(0x187)][P(0x180)](),d=yield this['fsi'][P(0x17e)]();let f=process['platform']===P(0x14b)?'meteor.bat':P(0x18c),g=this['fsi']['pathFromProject']({}),h=a14v[P(0x158)](g,'Dockerfile');if(!this[P(0x187)][P(0x15f)](h)){const r=a14x['findGenerator'](P(0x176));if(r){if(P(0x161)===P(0x186)){if(e){const t=i[P(0x18e)](j,arguments);return k=null,t;}}else yield r['invoke']([P(0x176)],{'cwd':g,'config':d});}}const i=this[P(0x187)]['checkConfigExists'](P(0x148));if(!i){if(P(0x164)==='acFYZ'){const t=a14x['findGenerator'](P(0x144));t&&(yield t['invoke']([P(0x148)],{'cwd':g,'config':d,'isDocker':!![]}));}else try{i(j[P(0x165)](k));}catch(v){m(v);}}if(this[P(0x187)]['isFile'](c[P(0x168)])){if(P(0x157)===P(0x157)){const v=this[P(0x187)][P(0x189)](a14v[P(0x158)](P(0x144),P(0x148),P(0x18d)));!v&&a14w[P(0x173)](a14v['join'](P(0x144),'docker',P(0x18d))),a14w[P(0x163)](c[P(0x168)],a14v[P(0x158)](g,P(0x144),P(0x148),P(0x18d),P(0x150)));}else f(g+'\x20npm\x20install\x20--save',{'cwd':this[P(0x187)][P(0x152)](),'stdio':P(0x14a)}),h(i+'\x20\x20'+j[P(0x158)]('\x20'),{'cwd':this[P(0x187)][P(0x152)](),'stdio':P(0x15e)});}let j=this[P(0x187)][P(0x181)]({}),k=this[P(0x187)][P(0x18b)](),l=P(0x151)+paramCase(d['appName'])+P(0x162);b[P(0x172)]&&(l=P(0x151)+b['tag']);let m=[P(0x17a),a14v[P(0x158)](this[P(0x187)]['findProjectDirectory'](),P(0x17a)),P(0x14e),'os.linux.x86_64'],n=this[P(0x187)]['readFileLines'](a14v[P(0x158)](this[P(0x187)][P(0x181)]({}),P(0x182),P(0x16e),P(0x16d))),o=n[P(0x185)]>0x2?!![]:![];if(o){if('NmVPR'==='NmVPR'){let x=d[P(0x146)]?d[P(0x146)]:yield Actions[P(0x169)](P(0x141)),y=d[P(0x15a)]?d['serverPort']:yield Actions[P(0x169)](P(0x17f));if(x[P(0x185)]==0x0||y[P(0x185)]==0x0)throw'Server\x20name\x20or\x20port\x20number\x20are\x20not\x20long\x20enough!';let z=y=='443'?'https':'http';m[P(0x16f)](P(0x160)+z+P(0x140)+x+':'+y);if(!d[P(0x146)]&&!d[P(0x15a)]){let A=yield Actions[P(0x179)](P(0x166));A&&(this[P(0x187)][P(0x177)](P(0x146),x),this['fsi'][P(0x177)](P(0x15a),y),Log['notice'](P(0x184)+a14v[P(0x158)](P(0x174),P(0x149))));}}else d(e['throw'](f));}let p=a14v[P(0x158)](this['fsi'][P(0x181)]({}),'build','app.tar.gz');if(a14w['existsSync'](p)){const C=yield Actions[P(0x179)](P(0x147));let D=C;if(D){if(P(0x18f)===P(0x18f))execSync(f+P(0x175),{'cwd':this['fsi'][P(0x152)](),'stdio':P(0x14a)}),execSync(f+'\x20\x20'+m[P(0x158)]('\x20'),{'cwd':this[P(0x187)]['findAppDirectory'](),'stdio':'inherit'});else return c[P(0x16c)]()[P(0x191)]('(((.+)+)+)+$')[P(0x16c)]()[P(0x18a)](d)[P(0x191)]('(((.+)+)+)+$');}}else execSync(f+P(0x175),{'cwd':this[P(0x187)][P(0x152)](),'stdio':'ignore'}),execSync(f+'\x20'+m[P(0x158)]('\x20'),{'cwd':this[P(0x187)][P(0x152)](),'stdio':P(0x15e)});Log[P(0x142)](P(0x183)+k),Log[P(0x142)]('Tagging\x20Docker\x20Image:\x20'+l),Log['notice'](P(0x17d)+j);const q=P(0x145)+k+'\x20'+l+'\x20'+j;execSync(q,{'stdio':P(0x15e)}),Log[P(0x142)](P(0x15c));}catch(F){console[P(0x14c)](F),process[P(0x153)](0x0);}});},a14u);
1
+ const a14M=a14d;(function(a,b){const J=a14d,c=a();while(!![]){try{const d=parseInt(J(0x19d))/0x1*(-parseInt(J(0x1ad))/0x2)+-parseInt(J(0x192))/0x3+-parseInt(J(0x1d8))/0x4*(-parseInt(J(0x189))/0x5)+-parseInt(J(0x185))/0x6+parseInt(J(0x198))/0x7+parseInt(J(0x195))/0x8*(-parseInt(J(0x18b))/0x9)+parseInt(J(0x1b1))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a14c,0xceaf2));const a14b=(function(){let a=!![];return function(b,c){const d=a?function(){const K=a14d;if(K(0x1b8)!==K(0x1b8))c='-t\x20'+d[K(0x1da)];else{if(c){const f=c[K(0x1cd)](b,arguments);return c=null,f;}}}:function(){};return a=![],d;};}()),a14a=a14b(this,function(){const L=a14d;return a14a[L(0x1b2)]()['search']('(((.+)+)+)+$')[L(0x1b2)]()[L(0x1a9)](a14a)[L(0x1ab)]('(((.+)+)+)+$');});a14a();var __awaiter=this&&this[a14M(0x1b3)]||function(a,b,c,d){function e(f){const N=a14d;if(N(0x1c8)!==N(0x188))return f instanceof c?f:new c(function(g){g(f);});else d(e[N(0x1df)](f));}return new(c||(c=Promise))(function(f,g){const R=a14d;function h(k){const O=a14d;try{j(d[O(0x1df)](k));}catch(l){g(l);}}function i(k){const P=a14d;try{j(d[P(0x1d1)](k));}catch(l){g(l);}}function j(k){const Q=a14d;k[Q(0x1d4)]?f(k['value']):e(k[Q(0x18e)])[Q(0x1ac)](h,i);}j((d=d[R(0x1cd)](a,b||[]))[R(0x1df)]());});};import a14u from'./build.js';import a14v from'path';import a14w from'fs';import{execSync}from'child_process';import{paramCase}from'change-case';import a14x from'../../generators/maka.gen.js';function a14d(a,b){const c=a14c();return a14d=function(d,e){d=d-0x183;let f=c[d];return f;},a14d(a,b);}import{Actions}from'../../tools/actions/actions.class.js';import{Command}from'../../command.js';function a14c(){const U=['3277848cAFZXg','invoke','dockerfile','qaLIY','3481745jKXPIp','ayvbH','1944IdGzRi','platforms','config','value','os.linux.x86_64','.maka','docker\x20build\x20--build-arg\x20NODE_VERSION=','3097497IgPQMp','getGlobalConfig','Server\x20name\x20or\x20port\x20number\x20are\x20not\x20long\x20enough!','44328HkXQUj','Mobile\x20server\x20IP\x20or\x20fully\x20qualified\x20domain\x20name\x20(FQDN):\x20','copyFileSync','2180010jsFAtH','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','GzNOZ','maka\x20build:docker','cert','221376zsyEaa','Stored\x20server\x20config\x20to\x20','meteor','exit','platform','Try\x20\x27maka\x20run\x20--docker\x27','MBbqk','docker','Tagging\x20Docker\x20Image:\x20','confirm','isDirectory','Using\x20Meteor\x27s\x20Project\x27s\x20Node\x20Version:\x20','constructor','create','search','then','10GwUFie','error','qfHeb','://','37213420ucSYBj','toString','__awaiter','ask','pathFromProject','push','MwSnY','UnjBL','getProjectConfig','mkdirSync','QsGUS','wSBfY','app','_keys','build','serverName','checkConfigExists','\x20npm\x20install\x20--save','config.json','setProjectConfig','-t\x20','fsi','Build\x20Path:\x20','VZkJC','meteor.bat','app.tar.gz','XzZIE','getProjectsMeteorNodeVersion','apply','cert.pem','ignore','findAppDirectory','throw','isFile','findGenerator','done','hsxiJ','force','notice','4lZYSNx','serverPort','tag','inherit','existsSync',':latest','Mobile\x20server\x20port:\x20','next','win32','length','hVVPY','join','--server=','443','frZmE','http','https'];a14c=function(){return U;};return a14c();}import{Log}from'../../tools/log/log.class.js';Command[a14M(0x1aa)]({'name':'docker','usage':a14M(0x19b),'validOpts':[a14M(0x1d6),a14M(0x1da)],'description':'Build\x20your\x20application\x20into\x20the\x20build\x20folder\x20and\x20generate\x20a\x20docker\x20image.','mustBeInMakaProject':!![],'examples':[a14M(0x19b)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const S=a14d;if(S(0x1bc)===S(0x1a3)){const d=this[S(0x1c6)][S(0x1a7)](h[S(0x1e3)]('config',S(0x1a4),S(0x1be)));!d&&o[S(0x1ba)](p['join'](S(0x18d),S(0x1a4),S(0x1be))),k[S(0x197)](l[S(0x19c)],m['join'](n,'config',S(0x1a4),'_keys',S(0x1ce)));}else try{if(S(0x1e6)==='zDRMs')f(g+S(0x1c2),{'cwd':this['fsi'][S(0x1d0)](),'stdio':S(0x1cf)}),h(i+'\x20\x20'+j[S(0x1e3)]('\x20'),{'cwd':this[S(0x1c6)][S(0x1d0)](),'stdio':S(0x1db)});else{const f=yield this[S(0x1c6)][S(0x193)](),g=yield this['fsi'][S(0x1b9)]();let h=process[S(0x1a1)]===S(0x1e0)?S(0x1c9):S(0x19f),i=this[S(0x1c6)][S(0x1b5)]({}),j=a14v['join'](i,'Dockerfile');if(!this[S(0x1c6)]['isFile'](j)){if('hsxiJ'!==S(0x1d5))try{i(j[S(0x1d1)](k));}catch(u){m(u);}else{const u=a14x['findGenerator'](S(0x187));u&&(yield u[S(0x186)]([S(0x187)],{'cwd':i,'config':g}));}}const k=this[S(0x1c6)][S(0x1c1)]('docker');if(!k){const v=a14x[S(0x1d3)](S(0x18d));v&&(yield v[S(0x186)](['docker'],{'cwd':i,'config':g,'isDocker':!![]}));}if(this[S(0x1c6)][S(0x1d2)](f['cert'])){const w=this[S(0x1c6)][S(0x1a7)](a14v[S(0x1e3)]('config',S(0x1a4),S(0x1be)));!w&&a14w[S(0x1ba)](a14v[S(0x1e3)]('config',S(0x1a4),S(0x1be))),a14w[S(0x197)](f[S(0x19c)],a14v[S(0x1e3)](i,S(0x18d),S(0x1a4),S(0x1be),'cert.pem'));}let l=this[S(0x1c6)]['pathFromProject']({}),m=this[S(0x1c6)][S(0x1cc)](),n=S(0x1c5)+paramCase(g['appName'])+S(0x1dd);b[S(0x1da)]&&(S(0x18a)===S(0x1cb)?(d[S(0x1ae)](e),f[S(0x1a0)](0x0)):n=S(0x1c5)+b['tag']);let o=['build',a14v[S(0x1e3)](this[S(0x1c6)]['findProjectDirectory'](),S(0x1bf)),'--architecture',S(0x18f)],p=this[S(0x1c6)]['readFileLines'](a14v[S(0x1e3)](this['fsi'][S(0x1b5)]({}),S(0x1bd),'.meteor',S(0x18c))),q=p['length']>0x2?!![]:![];if(q){if(S(0x1bb)===S(0x1bb)){let y=g[S(0x1c0)]?g['serverName']:yield Actions[S(0x1b4)](S(0x196)),z=g[S(0x1d9)]?g[S(0x1d9)]:yield Actions['ask'](S(0x1de));if(y[S(0x1e1)]==0x0||z[S(0x1e1)]==0x0)throw S(0x194);let A=z==S(0x1e5)?S(0x184):S(0x183);o[S(0x1b6)](S(0x1e4)+A+S(0x1b0)+y+':'+z);if(!g[S(0x1c0)]&&!g[S(0x1d9)]){if(S(0x1af)===S(0x1af)){let B=yield Actions[S(0x1a6)]('Would\x20you\x20like\x20to\x20save\x20the\x20server\x20config\x20in\x20your\x20.maka/config.json\x20file?');B&&(this['fsi'][S(0x1c4)](S(0x1c0),y),this[S(0x1c6)][S(0x1c4)](S(0x1d9),z),Log[S(0x1d7)](S(0x19e)+a14v[S(0x1e3)](S(0x190),S(0x1c3))));}else try{i(j['next'](k));}catch(D){m(D);}}}else{const E=g?function(){const T=S;if(E){const F=q[T(0x1cd)](r,arguments);return s=null,F;}}:function(){};return l=![],E;}}let r=a14v[S(0x1e3)](this[S(0x1c6)]['pathFromProject']({}),S(0x1bf),S(0x1ca));if(a14w[S(0x1dc)](r)){if(S(0x19a)!==S(0x1b7)){const E=yield Actions['confirm'](S(0x199));let F=E;F&&(execSync(h+S(0x1c2),{'cwd':this[S(0x1c6)][S(0x1d0)](),'stdio':S(0x1cf)}),execSync(h+'\x20\x20'+o[S(0x1e3)]('\x20'),{'cwd':this[S(0x1c6)][S(0x1d0)](),'stdio':S(0x1db)}));}else{if(e){const H=i[S(0x1cd)](j,arguments);return k=null,H;}}}else execSync(h+S(0x1c2),{'cwd':this[S(0x1c6)][S(0x1d0)](),'stdio':'ignore'}),execSync(h+'\x20'+o[S(0x1e3)]('\x20'),{'cwd':this[S(0x1c6)][S(0x1d0)](),'stdio':S(0x1db)});Log[S(0x1d7)](S(0x1a8)+m),Log[S(0x1d7)](S(0x1a5)+n),Log[S(0x1d7)](S(0x1c7)+l);const s=S(0x191)+m+'\x20'+n+'\x20'+l;execSync(s,{'stdio':S(0x1db)}),Log[S(0x1d7)](S(0x1a2));}}catch(H){S(0x1e2)!==S(0x1e2)?d(H['throw'](f)):(console[S(0x1ae)](H),process[S(0x1a0)](0x0));}});},a14u);