@maka/maka-cli 4.5.52 → 4.6.2

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 (136) hide show
  1. package/bundle/obf/package.json +1 -1
  2. package/bundle/obf/src/command.js +1 -1
  3. package/bundle/obf/src/commands/_index.js +1 -1
  4. package/bundle/obf/src/commands/ai.js +1 -1
  5. package/bundle/obf/src/commands/aws/_index.js +1 -1
  6. package/bundle/obf/src/commands/aws/aws.command.js +1 -1
  7. package/bundle/obf/src/commands/aws/chz.sub.cmd.js +1 -1
  8. package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
  9. package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
  10. package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
  11. package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
  12. package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
  13. package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
  14. package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
  15. package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
  16. package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
  17. package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
  18. package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
  19. package/bundle/obf/src/commands/build/_index.js +1 -1
  20. package/bundle/obf/src/commands/build/build.js +1 -1
  21. package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
  22. package/bundle/obf/src/commands/create.js +1 -1
  23. package/bundle/obf/src/commands/debug.js +1 -1
  24. package/bundle/obf/src/commands/deploy.js +1 -1
  25. package/bundle/obf/src/commands/game/_index.js +1 -1
  26. package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
  27. package/bundle/obf/src/commands/game/play.command.js +1 -1
  28. package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
  29. package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
  30. package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
  31. package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
  32. package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
  33. package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
  34. package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
  35. package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
  36. package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
  37. package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
  38. package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
  39. package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
  40. package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
  41. package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
  42. package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
  43. package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
  44. package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
  45. package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
  46. package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
  47. package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
  48. package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
  49. package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
  50. package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
  51. package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
  52. package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
  53. package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
  54. package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
  55. package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
  56. package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
  57. package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
  58. package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
  59. package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
  60. package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
  61. package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
  62. package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
  63. package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
  64. package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
  65. package/bundle/obf/src/commands/generate.js +1 -1
  66. package/bundle/obf/src/commands/get/_index.js +1 -1
  67. package/bundle/obf/src/commands/get/get.command.js +1 -1
  68. package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
  69. package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
  70. package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
  71. package/bundle/obf/src/commands/help.js +1 -1
  72. package/bundle/obf/src/commands/install.js +1 -0
  73. package/bundle/obf/src/commands/jsdoc.js +1 -1
  74. package/bundle/obf/src/commands/lint.js +1 -1
  75. package/bundle/obf/src/commands/login.js +1 -1
  76. package/bundle/obf/src/commands/logout.js +1 -1
  77. package/bundle/obf/src/commands/logs.js +1 -1
  78. package/bundle/obf/src/commands/maka.cmd.js +1 -1
  79. package/bundle/obf/src/commands/murder.js +1 -1
  80. package/bundle/obf/src/commands/proxy.js +1 -1
  81. package/bundle/obf/src/commands/reconfig.js +1 -1
  82. package/bundle/obf/src/commands/run/_index.js +1 -1
  83. package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
  84. package/bundle/obf/src/commands/run/run.command.js +1 -1
  85. package/bundle/obf/src/commands/set/_index.js +1 -1
  86. package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
  87. package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
  88. package/bundle/obf/src/commands/set/set.command.js +1 -1
  89. package/bundle/obf/src/commands/ssh.js +1 -1
  90. package/bundle/obf/src/commands/ssl.js +1 -1
  91. package/bundle/obf/src/commands/test.js +1 -1
  92. package/bundle/obf/src/commands/version.js +1 -1
  93. package/bundle/obf/src/error.js +1 -1
  94. package/bundle/obf/src/exec.js +1 -1
  95. package/bundle/obf/src/generator.js +1 -1
  96. package/bundle/obf/src/generators/_index.js +1 -1
  97. package/bundle/obf/src/generators/api.js +1 -1
  98. package/bundle/obf/src/generators/collection.js +1 -1
  99. package/bundle/obf/src/generators/component.js +1 -1
  100. package/bundle/obf/src/generators/config.js +1 -1
  101. package/bundle/obf/src/generators/dbc.js +1 -1
  102. package/bundle/obf/src/generators/dockerfile.js +1 -1
  103. package/bundle/obf/src/generators/hook.js +1 -1
  104. package/bundle/obf/src/generators/kit.js +1 -1
  105. package/bundle/obf/src/generators/layout.js +1 -1
  106. package/bundle/obf/src/generators/maka.gen.js +1 -1
  107. package/bundle/obf/src/generators/methods.js +1 -1
  108. package/bundle/obf/src/generators/package.js +1 -1
  109. package/bundle/obf/src/generators/page.js +1 -1
  110. package/bundle/obf/src/generators/publish.js +1 -1
  111. package/bundle/obf/src/generators/route.js +1 -1
  112. package/bundle/obf/src/generators/service.js +1 -1
  113. package/bundle/obf/src/generators/services/_index.js +1 -1
  114. package/bundle/obf/src/generators/services/openssl.js +1 -1
  115. package/bundle/obf/src/generators/services/translation.js +1 -1
  116. package/bundle/obf/src/maka.js +1 -1
  117. package/bundle/obf/src/tool.js +1 -1
  118. package/bundle/obf/src/tools/actions/actions.class.js +1 -1
  119. package/bundle/obf/src/tools/aws/aws.class.js +1 -1
  120. package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
  121. package/bundle/obf/src/tools/docker/docker.class.js +1 -1
  122. package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
  123. package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
  124. package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
  125. package/bundle/obf/src/tools/https/https.class.js +1 -1
  126. package/bundle/obf/src/tools/https/https.interface.js +1 -1
  127. package/bundle/obf/src/tools/https/progress.class.js +1 -0
  128. package/bundle/obf/src/tools/log/log.class.js +1 -1
  129. package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
  130. package/bundle/obf/src/tools/options/options.class.js +1 -1
  131. package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
  132. package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
  133. package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
  134. package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
  135. package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
  136. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@maka/maka-cli",
3
3
  "//": "NOTE: don't forget to update version.ts and fsi.class.ts",
4
- "version": "4.5.52",
4
+ "version": "4.6.2",
5
5
  "type": "module",
6
6
  "summary": "A command line tool for scaffolding Meteor 2.x applications using either React.",
7
7
  "description": "A command line tool for scaffolding Meteor 2.x applications using React.",
@@ -1 +1 @@
1
- const a0s=a0d;(function(a,b){const p=a0d,c=a();while(!![]){try{const d=parseInt(p(0x10b))/0x1*(parseInt(p(0xcd))/0x2)+parseInt(p(0xfe))/0x3+-parseInt(p(0xe5))/0x4+parseInt(p(0x112))/0x5*(-parseInt(p(0xf3))/0x6)+parseInt(p(0xd8))/0x7*(parseInt(p(0xdc))/0x8)+parseInt(p(0x11d))/0x9+parseInt(p(0xdd))/0xa*(-parseInt(p(0xfa))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0c,0xac574));function a0c(){const E=['validateMakaSubscription','2371506lfmtso','number','splice','addCommand\x20requires\x20a\x20Command\x20instance','exit','Too\x20many\x20arguments','proFlags','Sub-Commands:','header','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','(((.+)+)+)+$','keys','Command\x20not\x20found','177WyVmwz','maxArgLength','Too\x20many\x20options','getPro','find','To\x20use\x20this\x20command,\x20\x22','apply','115mtcRIP','Command\x20requires\x20a\x20name','validateParams','forEach','Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','Too\x20few\x20arguments','findSubCommand','Use\x20--help\x20for\x20any\x20sub-command\x20for\x20details','toString','mustBeInMakaProject','DARK','5743908gESrfN','\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27','name','run','Alias','push','usage','pallet','maxOptsLength','assign','function','disableAuthCheck','match','play','domainLicense','4828WDyuyS','LIGHT','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command','light','generate','findCommand','Command.create\x20requires\x20a\x20handler\x20function!','search','error','mustHaveMeteorInstalled','To\x20use\x20these\x20pro\x20flags,\x20\x22','56707UgDWrt','split','notice','proCommands','32hFbnhN','6216200SzBfkP','help','call','minOptsLength','Too\x20few\x20options','Please\x20run\x20\x22maka\x20install\x20meteor\x22','roles','_handler','1475180JCrmAH','murder','includes','options','Command\x20requires\x20a\x20handler\x20function','validateMakaProject','Command.create\x20requires\x20some\x20options!','join','tableList','sort','invoke','validateMeteorInstall','_commands','filter','50106fQdTTL','bind','length','Name','minArgLength','fsi','setColorMode','11YoXOpH','create','runSubCommand'];a0c=function(){return E;};return a0c();}const a0b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a0d;if(c){const e=c[q(0x111)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a0a=a0b(this,function(){const r=a0d;return a0a[r(0x11a)]()['search'](r(0x108))[r(0x11a)]()['constructor'](a0a)[r(0xd4)]('(((.+)+)+)+$');});a0a();import a0e from'cli-table';import a0f from'./commands/maka.cmd.js';import{Log,ColorMode}from'./tools/log/log.class.js';import{Tool}from'./tool.js';function a0d(a,b){const c=a0c();return a0d=function(d,e){d=d-0xcc;let f=c[d];return f;},a0d(a,b);}import{UsageError,UsageErrorWithSubs,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError}from'./error.js';let _prevCmd='';export class Command extends Tool{[a0s(0xe8)];[a0s(0xf1)];constructor(a,b){const t=a0s;super();if(!a)throw new Error(t(0x116));if(!a['name'])throw new Error(t(0x113));if(typeof b!==t(0x127))throw new Error(t(0xe9));this['options']=Object[t(0x126)]({},a),this[t(0x11f)]=this[t(0xe8)][t(0x11f)],this[t(0xf1)]=[],this['_handler']=b[t(0xf4)](this);}static[a0s(0xfb)](a,b,c){const u=a0s;if(!a)throw new Error(u(0xeb));if(typeof b!=='function')throw new Error(u(0xd3));const d=new Command(a,b);return c=c||a0f,Object[u(0x126)](d,{'parent':c?.[u(0xe8)]?.[u(0x11f)]}),c['addCommand'](d),d;}['addCommand'](a){const v=a0s;if(!(a instanceof Command))throw new Error(v(0x101));this['_commands']['push'](a);}async[a0s(0xfd)](a,b){const w=a0s,c=this['findCommand'](a[0x0]);if(c){const d=c?.[w(0x11f)]||a[0x0],e=c?.['parent']||'',f=c?.['options'];if(f[w(0x128)])return;const g=a[0x0],h=Object[w(0x109)](b),i=await this[w(0xf8)][w(0x10e)]();!i&&(Log[w(0xd5)]('License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.'),process[w(0x102)](0x1));const j=i?.[w(0xdb)][w(0xe7)](d)||i?.[w(0xdb)]['includes'](e),k=i?.[w(0xe3)][w(0xe7)]('singleLicense')||i?.[w(0xe3)][w(0xe7)](w(0xcc)),l=!k;if(j&&l)throw w(0x110)+a[0x0]+w(0x11e);if(h[w(0xf5)]>0x0){const m=i?.[w(0x104)][w(0xf2)](n=>h[w(0xe7)](n));if(m&&m[w(0xf5)]>0x0&&l)throw w(0xd7)+m?.[w(0xec)](',\x20')+'\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27';}if(g==='deploy'){const n=await this['fsi'][w(0x10e)](),o=n?.[w(0xdb)][w(0xe7)](a[0x0]+'\x20'+a[0x1]);if(o&&l)throw'To\x20use\x20this\x20command,\x20\x22'+a[0x0]+'\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27';}}}async[a0s(0x120)](a,b){const x=a0s;try{a=a||[],b=b||{};try{const c=await this[x(0xf8)]['getGlobalConfig'](),d=c[x(0x124)]===x(0xd0)?ColorMode[x(0xce)]:ColorMode[x(0x11c)];Log[x(0xf9)](d),await this[x(0xfd)](a,b);}catch(f){Log[x(0xd5)](f),process[x(0x102)](0x0);}await this[x(0xef)](a,b);}catch(g){process[x(0x102)](0x1);}}async[a0s(0xef)](a,b){const y=a0s,{usage:usage='',description:description='',shortDesc:c,examples:examples=[],isRoot:isRoot=![],requiredOpts:requiredOpts=[],validOpts:d}=this['options'];try{if(this[y(0xe8)]['name']!==y(0xd1)){if(!isRoot){const f=(a[0x0]===_prevCmd||a[y(0xf5)]===0x0)&&this[y(0xf1)]['length']>=0x0;if(f&&b[y(0xde)]){if(this[y(0xf1)][y(0xf5)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!b[y(0xde)]){if(this['options'][y(0x11b)]){const g=this[y(0xea)]();if(!g)throw new MustBeInProjectError();}if(this[y(0xe8)][y(0xd6)]){const h=this[y(0xf0)]();if(!h)throw new NoMeteorFoundError();}if(typeof this[y(0xe8)][y(0xf7)]===y(0xff)){if(a[y(0xf5)]<this[y(0xe8)]['minArgLength']){Log['error'](y(0x117));throw new UsageError();}}if(typeof this[y(0xe8)][y(0x10c)]===y(0xff)){if(a[y(0xf5)]>=this[y(0xe8)][y(0x10c)]){Log[y(0xd5)](y(0x103));throw new UsageError();}}if(typeof this[y(0xe8)][y(0xe0)]===y(0xff)){if(Object[y(0x109)](b)[y(0xf5)]<this[y(0xe8)][y(0xe0)]){Log['error'](y(0xe1));throw new UsageError();}}if(typeof this['options'][y(0x125)]==='number'){if(Object[y(0x109)](b)[y(0xf5)]>=this[y(0xe8)]['maxOptsLength']){Log['error'](y(0x10d));throw new UsageError();}}}}b=await this[y(0x114)](a,b,this[y(0xe8)]),_prevCmd=a[0x0];}await this[y(0xe4)][y(0xdf)](this,a,b);}catch(i){Log[y(0x123)](description,examples,usage,c,requiredOpts,d);if(i instanceof UsageErrorWithSubs)Log['notice'](y(0x105)),this['tableList'](this[y(0xf1)]),Log[y(0x106)](y(0x119));else{if(i instanceof MustBeInProjectError)Log[y(0xd5)](y(0xcf));else{if(i instanceof NoMeteorFoundError)Log[y(0xd5)](y(0x107)),Log[y(0xda)](y(0xe2));else{if(i instanceof NoMeteorAppFoundError)Log[y(0xd5)]('There\x20is\x20no\x20Meteor\x20application\x20here');else throw i;}}}process[y(0x102)](0x1);}}[a0s(0xed)](a){const z=a0s,b=new a0e({});b[z(0x122)]([z(0xf6),z(0x121),'Description']),a[z(0xee)]()[z(0x115)](c=>{const A=z;c['name']!==A(0xe6)&&c[A(0x11f)]!==A(0x12a)&&b[A(0x122)]([c[A(0x11f)],c['aliases'](),c['shortDesc']()]);}),Log['bright'](b[z(0x11a)]());}['findCommand'](a){const B=a0s;return this[B(0xf1)][B(0x10f)](b=>b[B(0x129)](a));}[a0s(0x118)](a){const C=a0s,b=a?.[C(0xd9)](':');if(b)return a=b[0x0],this['findCommand'](a);else return;}async[a0s(0xfc)](a,b,c){const D=a0s;try{const d=a[D(0xd9)](':');a=d[0x0];const f=d[0x1];f&&b[D(0x100)](0x0,0x0,f);const g=this[D(0xd2)](a);if(g)await g['run'](b,c);else throw D(0x10a);}catch(h){throw Log[D(0xd5)](h);}}}
1
+ const a0s=a0d;(function(a,b){const p=a0d,c=a();while(!![]){try{const d=-parseInt(p(0x11f))/0x1+parseInt(p(0x11e))/0x2+parseInt(p(0x115))/0x3+-parseInt(p(0x11a))/0x4*(-parseInt(p(0x103))/0x5)+-parseInt(p(0x106))/0x6*(-parseInt(p(0x104))/0x7)+-parseInt(p(0xfc))/0x8+-parseInt(p(0x100))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0c,0x4eee0));const a0b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a0d;if(c){const e=c[q(0x119)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a0a=a0b(this,function(){const r=a0d;return a0a[r(0x129)]()['search'](r(0xfd))[r(0x129)]()[r(0x130)](a0a)['search']('(((.+)+)+)+$');});a0a();import a0e from'cli-table';import a0f from'./commands/maka.cmd.js';import{Log,ColorMode}from'./tools/log/log.class.js';import{Tool}from'./tool.js';import{UsageError,UsageErrorWithSubs,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError}from'./error.js';function a0c(){const E=['getPro','proCommands','Too\x20many\x20arguments','Too\x20few\x20arguments','light','proFlags','options','play','keys','fsi','4280560uaQUmR','(((.+)+)+)+$','Please\x20run\x20\x22maka\x20install\x20meteor\x22','exit','7428042YgycrQ','addCommand\x20requires\x20a\x20Command\x20instance','Command.create\x20requires\x20a\x20handler\x20function!','1606575sJxzPU','7FRROdq','create','3439068ZZLfUe','assign','\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27','addCommand','tableList','Too\x20many\x20options','call','notice','maxOptsLength','name','help','maxArgLength','setColorMode','findSubCommand','run','1351878jPuDiW','validateMakaProject','function','Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','apply','4VeRWfy','findCommand','roles','aliases','775274aGKSgW','49052TSddbK','_commands','minOptsLength','LIGHT','Use\x20--help\x20for\x20any\x20sub-command\x20for\x20details','License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.','Alias','number','validateMakaSubscription','find','toString','Too\x20few\x20options','includes','error','DARK','push','split','constructor','_handler','deploy','runSubCommand','header','length','Sub-Commands:','pallet','To\x20use\x20this\x20command,\x20\x22','shortDesc','mustHaveMeteorInstalled','mustBeInMakaProject','generate','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','Command.create\x20requires\x20some\x20options!','There\x20is\x20no\x20Meteor\x20application\x20here'];a0c=function(){return E;};return a0c();}function a0d(a,b){const c=a0c();return a0d=function(d,e){d=d-0xeb;let f=c[d];return f;},a0d(a,b);}let _prevCmd='';export class Command extends Tool{[a0s(0xf8)];['_commands'];constructor(a,b){const t=a0s;super();if(!a)throw new Error(t(0x118));if(!a['name'])throw new Error('Command\x20requires\x20a\x20name');if(typeof b!==t(0x117))throw new Error('Command\x20requires\x20a\x20handler\x20function');this[t(0xf8)]=Object[t(0x107)]({},a),this[t(0x10f)]=this[t(0xf8)]['name'],this['_commands']=[],this[t(0x131)]=b['bind'](this);}static[a0s(0x105)](a,b,c){const u=a0s;if(!a)throw new Error(u(0xf0));if(typeof b!=='function')throw new Error(u(0x102));const d=new Command(a,b);return c=c||a0f,Object[u(0x107)](d,{'parent':c?.[u(0xf8)]?.[u(0x10f)]}),c[u(0x109)](d),d;}[a0s(0x109)](a){const v=a0s;if(!(a instanceof Command))throw new Error(v(0x101));this[v(0x120)][v(0x12e)](a);}async[a0s(0x127)](a,b){const w=a0s,c=this[w(0x11b)](a[0x0]);if(c){const d=c?.[w(0x10f)]||a[0x0],e=c?.['parent']||'',f=c?.[w(0xf8)];if(f['disableAuthCheck'])return;const g=a[0x0],h=Object[w(0xfa)](b),i=await this[w(0xfb)][w(0xf2)]();!i&&(Log[w(0x12c)](w(0x124)),process['exit'](0x1));const j=i?.[w(0xf3)]['includes'](d)||i?.[w(0xf3)][w(0x12b)](e),k=i?.[w(0x11c)][w(0x12b)]('singleLicense')||i?.[w(0x11c)][w(0x12b)]('domainLicense'),l=!k;if(j&&l)throw w(0x138)+a[0x0]+w(0x108);if(h[w(0x135)]>0x0){const m=i?.[w(0xf7)]['filter'](n=>h[w(0x12b)](n));if(m&&m['length']>0x0&&l)throw'To\x20use\x20these\x20pro\x20flags,\x20\x22'+m?.['join'](',\x20')+w(0x108);}if(g===w(0x132)){const n=await this[w(0xfb)]['getPro'](),o=n?.['proCommands'][w(0x12b)](a[0x0]+'\x20'+a[0x1]);if(o&&l)throw w(0x138)+a[0x0]+w(0x108);}}}async['run'](a,b){const x=a0s;try{a=a||[],b=b||{};try{const c=await this[x(0xfb)]['getGlobalConfig'](),d=c[x(0x137)]===x(0xf6)?ColorMode[x(0x122)]:ColorMode[x(0x12d)];Log[x(0x112)](d),await this['validateMakaSubscription'](a,b);}catch(f){Log[x(0x12c)](f),process[x(0xff)](0x0);}await this['invoke'](a,b);}catch(g){process[x(0xff)](0x1);}}async['invoke'](a,b){const y=a0s,{usage:usage='',description:description='',shortDesc:c,examples:examples=[],isRoot:isRoot=![],requiredOpts:requiredOpts=[],validOpts:d}=this[y(0xf8)];try{if(this['options'][y(0x10f)]!==y(0xee)){if(!isRoot){const f=(a[0x0]===_prevCmd||a['length']===0x0)&&this[y(0x120)][y(0x135)]>=0x0;if(f&&b[y(0x110)]){if(this[y(0x120)][y(0x135)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!b[y(0x110)]){if(this[y(0xf8)][y(0xed)]){const g=this[y(0x116)]();if(!g)throw new MustBeInProjectError();}if(this['options'][y(0xec)]){const h=this['validateMeteorInstall']();if(!h)throw new NoMeteorFoundError();}if(typeof this[y(0xf8)]['minArgLength']===y(0x126)){if(a[y(0x135)]<this[y(0xf8)]['minArgLength']){Log['error'](y(0xf5));throw new UsageError();}}if(typeof this['options'][y(0x111)]==='number'){if(a[y(0x135)]>=this[y(0xf8)][y(0x111)]){Log[y(0x12c)](y(0xf4));throw new UsageError();}}if(typeof this[y(0xf8)]['minOptsLength']===y(0x126)){if(Object[y(0xfa)](b)[y(0x135)]<this[y(0xf8)][y(0x121)]){Log[y(0x12c)](y(0x12a));throw new UsageError();}}if(typeof this[y(0xf8)][y(0x10e)]===y(0x126)){if(Object[y(0xfa)](b)[y(0x135)]>=this[y(0xf8)][y(0x10e)]){Log[y(0x12c)](y(0x10b));throw new UsageError();}}}}b=await this['validateParams'](a,b,this[y(0xf8)]),_prevCmd=a[0x0];}await this['_handler'][y(0x10c)](this,a,b);}catch(i){Log['usage'](description,examples,usage,c,requiredOpts,d);if(i instanceof UsageErrorWithSubs)Log[y(0x10d)](y(0x136)),this[y(0x10a)](this['_commands']),Log[y(0x134)](y(0x123));else{if(i instanceof MustBeInProjectError)Log[y(0x12c)]('You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command');else{if(i instanceof NoMeteorFoundError)Log[y(0x12c)](y(0xef)),Log['notice'](y(0xfe));else{if(i instanceof NoMeteorAppFoundError)Log[y(0x12c)](y(0xf1));else throw i;}}}process[y(0xff)](0x1);}}['tableList'](a){const z=a0s,b=new a0e({});b[z(0x12e)](['Name',z(0x125),'Description']),a['sort']()['forEach'](c=>{const A=z;c[A(0x10f)]!=='murder'&&c[A(0x10f)]!==A(0xf9)&&b[A(0x12e)]([c[A(0x10f)],c[A(0x11d)](),c[A(0xeb)]()]);}),Log['bright'](b[z(0x129)]());}['findCommand'](a){const B=a0s;return this['_commands'][B(0x128)](b=>b['match'](a));}[a0s(0x113)](a){const C=a0s,b=a?.[C(0x12f)](':');if(b)return a=b[0x0],this[C(0x11b)](a);else return;}async[a0s(0x133)](a,b,c){const D=a0s;try{const d=a['split'](':');a=d[0x0];const f=d[0x1];f&&b['splice'](0x0,0x0,f);const g=this[D(0x11b)](a);if(g)await g[D(0x114)](b,c);else throw'Command\x20not\x20found';}catch(h){throw Log[D(0x12c)](h);}}}
@@ -1 +1 @@
1
- (function(a,b){var f=a1d,c=a();while(!![]){try{var d=-parseInt(f(0x12b))/0x1+parseInt(f(0x132))/0x2*(parseInt(f(0x126))/0x3)+-parseInt(f(0x127))/0x4*(parseInt(f(0x12a))/0x5)+parseInt(f(0x12c))/0x6*(parseInt(f(0x128))/0x7)+parseInt(f(0x12d))/0x8+-parseInt(f(0x130))/0x9+parseInt(f(0x12e))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a1c,0xb913a));var a1b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a1d;if(c){var e=c[g(0x12f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a1a=a1b(this,function(){var h=a1d;return a1a[h(0x131)]()['search'](h(0x125))[h(0x131)]()['constructor'](a1a)[h(0x129)]('(((.+)+)+)+$');});a1a();import'./aws/_index.js';import'./set/_index.js';import'./get/_index.js';import'./game/_index.js';import'./build/_index.js';import'./run/_index.js';import'./create.js';import'./debug.js';import'./deploy.js';import'./generate.js';import'./help.js';import'./login.js';import'./logout.js';import'./logs.js';import'./maka.cmd.js';import'./reconfig.js';import'./ssh.js';function a1c(){var i=['1134990kzAvyb','toString','219782EirkMp','(((.+)+)+)+$','3GcrBrZ','5545132aIAczq','7wzdQeb','search','5CGVaBm','184042OqSOBV','4452990qZFKFI','5416552dQHiJJ','9253840aJTIiK','apply'];a1c=function(){return i;};return a1c();}import'./ssl.js';import'./test.js';import'./version.js';function a1d(a,b){var c=a1c();return a1d=function(d,e){d=d-0x125;var f=c[d];return f;},a1d(a,b);}import'./murder.js';import'./proxy.js';import'./lint.js';import'./ai.js';
1
+ (function(a,b){var f=a1d,c=a();while(!![]){try{var d=parseInt(f(0xd8))/0x1+parseInt(f(0xdc))/0x2+parseInt(f(0xda))/0x3*(parseInt(f(0xdb))/0x4)+parseInt(f(0xe3))/0x5*(parseInt(f(0xd9))/0x6)+-parseInt(f(0xdd))/0x7+-parseInt(f(0xe2))/0x8+-parseInt(f(0xe1))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a1c,0xccd26));var a1b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a1d;if(c){var e=c[g(0xde)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a1a=a1b(this,function(){var h=a1d;return a1a[h(0xdf)]()['search'](h(0xe4))[h(0xdf)]()['constructor'](a1a)[h(0xe0)](h(0xe4));});a1a();import'./aws/_index.js';import'./set/_index.js';import'./get/_index.js';import'./game/_index.js';import'./build/_index.js';import'./run/_index.js';import'./create.js';import'./debug.js';function a1d(a,b){var c=a1c();return a1d=function(d,e){d=d-0xd8;var f=c[d];return f;},a1d(a,b);}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';function a1c(){var i=['224766WpHQen','78typClO','15edjFOq','169804qeweoe','2076686hPFJOb','1910174bXpYni','apply','toString','search','3697110tmvORw','3149928RGoHRl','169615zTARpW','(((.+)+)+)+$'];a1c=function(){return i;};return a1c();}import'./reconfig.js';import'./ssh.js';import'./ssl.js';import'./test.js';import'./version.js';import'./murder.js';import'./proxy.js';import'./lint.js';import'./ai.js';
@@ -1 +1 @@
1
- const a2m=a2d;(function(a,b){const h=a2d,c=a();while(!![]){try{const d=parseInt(h(0x88))/0x1+parseInt(h(0x98))/0x2+-parseInt(h(0x91))/0x3+parseInt(h(0x7b))/0x4*(-parseInt(h(0x7d))/0x5)+parseInt(h(0x97))/0x6+-parseInt(h(0x87))/0x7+parseInt(h(0x95))/0x8*(-parseInt(h(0x83))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a2c,0x320db));const a2b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a2d;if(c){const e=c[i(0x77)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a2a=a2b(this,function(){const j=a2d;return a2a['toString']()['search']('(((.+)+)+)+$')[j(0x82)]()[j(0x90)](a2a)[j(0x80)](j(0x99));});a2a();import{Command}from'../command.js';import{HTTPS}from'../tools/https/https.class.js';import{Log}from'../tools/log/log.class.js';function a2d(a,b){const c=a2c();return a2d=function(d,e){d=d-0x71;let f=c[d];return f;},a2d(a,b);}import a2e from'readline';const startChat=async({openApiKey:a,caCertPath:b})=>{const k=a2d,c=a2e['createInterface']({'input':process['stdin'],'output':process[k(0x75)]});c['question'](k(0x85),async d=>{const l=k;if(d[l(0x8f)]()===l(0x7a)){c[l(0x8a)]();return;}try{const e=await HTTPS[l(0x78)]({'prompt':d,'openApiKey':a,'certPath':b}),f=JSON[l(0x79)](e['data']);if(f[l(0x8c)])throw new Error(f[l(0x8c)][l(0x94)]);console[l(0x93)]('GPT:\x20'+f?.[l(0x9a)][0x0]?.[l(0x8d)][l(0x7f)]());}catch(g){Log[l(0x8c)](g),process[l(0x7a)](0x1);}startChat({'openApiKey':a,'caCertPath':b});});};function a2c(){const o=['CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20','isFile','ChatGPT\x20style\x20AI\x20interface','stdout','CA\x20Cert\x20is\x20configured\x20in\x20~/.maka/global-config.json,\x20but\x20cert\x20file\x20cannot\x20be\x20located\x20','apply','askGPT','parse','exit','1312ysIEbA','fsi','460jbqgst','notice','trim','search','cacert','toString','387ZQrbJm','openapikey','You:\x20','Type\x20\x27exit\x27\x20to\x20end\x20the\x20chat.','917420rRCcOy','207757FDhaNS','Using\x20CA\x20Cert\x20','close','Using\x20OpenAI\x20Key\x20','error','text','OpenAI\x20Key\x20is\x20not\x20configured\x20in\x20~/.maka/global-config.json','toLowerCase','constructor','153846gtPQfk','cert','log','message','26416tkwjFR','openai','728148bPsRMe','460816LreozO','(((.+)+)+)+$','choices','getGlobalConfig'];a2c=function(){return o;};return a2c();}Command['create']({'name':'ai','description':a2m(0x74),'validOpts':[a2m(0x81),a2m(0x84)],'shortDesc':a2m(0x74)},async function(a,b){const n=a2m;try{let c='';b[n(0x81)]&&(this[n(0x7c)][n(0x73)](b['cacert'])?(c=b[n(0x81)],Log[n(0x7e)](n(0x89)+c)):Log['error'](n(0x72)+c));const d=await this[n(0x7c)][n(0x71)]();if(d[n(0x92)]){if(this['fsi'][n(0x73)](d[n(0x92)]))c=d[n(0x92)];else throw Log[n(0x8c)](n(0x76)+c);}let f='';if(b[n(0x84)])f=b[n(0x84)],Log[n(0x7e)](n(0x8b)+f);else{if(d[n(0x96)])f=d[n(0x96)];else throw Log['error'](n(0x8e));}console['log'](n(0x86)),startChat({'caCertPath':c,'openApiKey':f});}catch(g){g&&console[n(0x8c)](g),process[n(0x7a)](0x1);}});
1
+ const a2l=a2d;function a2c(){const n=['fsi','OpenAI\x20Key\x20is\x20not\x20configured\x20in\x20~/.maka/global-config.json','text','askGPT','openapikey','CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20','toString','stdout','6ROBJhE','cert','stdin','cacert','isFile','message','create','113277sjvPkf','(((.+)+)+)+$','Type\x20\x27exit\x27\x20to\x20end\x20the\x20chat.','16YnuJEA','constructor','error','getGlobalConfig','openai','close','14959290WqfCrJ','225IJrslp','log','10641316JEiZYx','1462360rrGHpj','GPT:\x20','120HVEipr','notice','1395526gwgpqw','329043DSYcCq','exit','parse','You:\x20','ChatGPT\x20style\x20AI\x20interface','CA\x20Cert\x20is\x20configured\x20in\x20~/.maka/global-config.json,\x20but\x20cert\x20file\x20cannot\x20be\x20located\x20','data','2wQxgoV','search','createInterface'];a2c=function(){return n;};return a2c();}(function(a,b){const h=a2d,c=a();while(!![]){try{const d=-parseInt(h(0x200))/0x1+-parseInt(h(0x207))/0x2*(-parseInt(h(0x1ee))/0x3)+parseInt(h(0x1f1))/0x4*(parseInt(h(0x1fb))/0x5)+-parseInt(h(0x1e7))/0x6*(-parseInt(h(0x1fa))/0x7)+-parseInt(h(0x1fd))/0x8*(parseInt(h(0x1f8))/0x9)+-parseInt(h(0x1f7))/0xa+-parseInt(h(0x1ff))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a2c,0xbd5c6));const a2b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a2a=a2b(this,function(){const i=a2d;return a2a[i(0x210)]()['search'](i(0x1ef))[i(0x210)]()[i(0x1f2)](a2a)[i(0x208)]('(((.+)+)+)+$');});a2a();import{Command}from'../command.js';import{HTTPS}from'../tools/https/https.class.js';import{Log}from'../tools/log/log.class.js';import a2e from'readline';const startChat=async({openApiKey:a,caCertPath:b})=>{const j=a2d,c=a2e[j(0x209)]({'input':process[j(0x1e9)],'output':process[j(0x1e6)]});c['question'](j(0x203),async d=>{const k=j;if(d['toLowerCase']()===k(0x201)){c[k(0x1f6)]();return;}try{const e=await HTTPS[k(0x20d)]({'prompt':d,'openApiKey':a,'certPath':b}),f=JSON[k(0x202)](e[k(0x206)]);if(f['error'])throw new Error(f['error'][k(0x1ec)]);console[k(0x1f9)](k(0x1fc)+f?.['choices'][0x0]?.[k(0x20c)]['trim']());}catch(g){Log[k(0x1f3)](g),process[k(0x201)](0x1);}startChat({'openApiKey':a,'caCertPath':b});});};function a2d(a,b){const c=a2c();return a2d=function(d,e){d=d-0x1e6;let f=c[d];return f;},a2d(a,b);}Command[a2l(0x1ed)]({'name':'ai','description':a2l(0x204),'validOpts':[a2l(0x1ea),a2l(0x20e)],'shortDesc':a2l(0x204)},async function(a,b){const m=a2l;try{let c='';b['cacert']&&(this['fsi'][m(0x1eb)](b['cacert'])?(c=b[m(0x1ea)],Log[m(0x1fe)]('Using\x20CA\x20Cert\x20'+c)):Log[m(0x1f3)](m(0x20f)+c));const d=await this[m(0x20a)][m(0x1f4)]();if(d[m(0x1e8)]){if(this[m(0x20a)]['isFile'](d[m(0x1e8)]))c=d[m(0x1e8)];else throw Log['error'](m(0x205)+c);}let f='';if(b[m(0x20e)])f=b[m(0x20e)],Log[m(0x1fe)]('Using\x20OpenAI\x20Key\x20'+f);else{if(d[m(0x1f5)])f=d[m(0x1f5)];else throw Log[m(0x1f3)](m(0x20b));}console[m(0x1f9)](m(0x1f0)),startChat({'caCertPath':c,'openApiKey':f});}catch(g){g&&console['error'](g),process[m(0x201)](0x1);}});
@@ -1 +1 @@
1
- (function(a,b){var f=a3d,c=a();while(!![]){try{var d=parseInt(f(0x97))/0x1+-parseInt(f(0x8f))/0x2*(-parseInt(f(0x8b))/0x3)+-parseInt(f(0x94))/0x4*(-parseInt(f(0x8e))/0x5)+-parseInt(f(0x96))/0x6*(parseInt(f(0x92))/0x7)+-parseInt(f(0x95))/0x8+-parseInt(f(0x91))/0x9+parseInt(f(0x8c))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a3c,0x6f9f7));var a3b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a3d;if(c){var e=c[g(0x90)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a3a=a3b(this,function(){var h=a3d;return a3a[h(0x93)]()[h(0x98)](h(0x8d))[h(0x93)]()['constructor'](a3a)[h(0x98)](h(0x8d));});a3a();import'./aws.command.js';import'./ci.sub.cmd.js';import'./ckp.sub.cmd.js';import'./csg.sub.cmd.js';import'./di.sub.cmd.js';import'./dkp.sub.cmd.js';function a3c(){var i=['732ChipDP','693159VFdWLF','search','82107ldrJsb','4138190NcunIy','(((.+)+)+)+$','5bAXIFP','20sPiDtE','apply','719424VaZull','37548YryYCv','toString','2725316WnBpZl','6963568WXQbHs'];a3c=function(){return i;};return a3c();}import'./rbi.sub.cmd.js';function a3d(a,b){var c=a3c();return a3d=function(d,e){d=d-0x8b;var f=c[d];return f;},a3d(a,b);}import'./sth.sub.cmd.js';import'./ti.sub.cmd.js';import'./dsg.sub.cmd.js';import'./rkp.sub.cmd.js';import'./chz.sub.cmd.js';import'./rdn.sub.cmd.js';
1
+ (function(a,b){var f=a3d,c=a();while(!![]){try{var d=parseInt(f(0x1c6))/0x1+parseInt(f(0x1cb))/0x2+parseInt(f(0x1cc))/0x3*(-parseInt(f(0x1c5))/0x4)+-parseInt(f(0x1c7))/0x5+parseInt(f(0x1c8))/0x6+parseInt(f(0x1ca))/0x7+-parseInt(f(0x1c3))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a3c,0xa0636));var a3b=(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;};}()),a3a=a3b(this,function(){var g=a3d;return a3a['toString']()['search'](g(0x1c9))[g(0x1c4)]()['constructor'](a3a)['search']('(((.+)+)+)+$');});a3a();import'./aws.command.js';import'./ci.sub.cmd.js';import'./ckp.sub.cmd.js';import'./csg.sub.cmd.js';function a3d(a,b){var c=a3c();return a3d=function(d,e){d=d-0x1c3;var f=c[d];return f;},a3d(a,b);}import'./di.sub.cmd.js';import'./dkp.sub.cmd.js';function a3c(){var h=['4656701rrkGoJ','2522522yCtUby','1583259USfAZP','9105568QyUCFe','toString','4kdQiDL','255275SdeOto','2922325XlUHUP','4353510hDeLjP','(((.+)+)+)+$'];a3c=function(){return h;};return a3c();}import'./rbi.sub.cmd.js';import'./sth.sub.cmd.js';import'./ti.sub.cmd.js';import'./dsg.sub.cmd.js';import'./rkp.sub.cmd.js';import'./chz.sub.cmd.js';import'./rdn.sub.cmd.js';
@@ -1 +1 @@
1
- const a4h=a4d;function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0x120;let f=c[d];return f;},a4d(a,b);}(function(a,b){const f=a4d,c=a();while(!![]){try{const d=-parseInt(f(0x12e))/0x1*(parseInt(f(0x135))/0x2)+-parseInt(f(0x134))/0x3+parseInt(f(0x120))/0x4*(parseInt(f(0x124))/0x5)+-parseInt(f(0x133))/0x6*(parseInt(f(0x123))/0x7)+parseInt(f(0x12b))/0x8*(-parseInt(f(0x125))/0x9)+-parseInt(f(0x12c))/0xa+parseInt(f(0x12d))/0xb*(parseInt(f(0x12f))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0x9d4b2));function a4c(){const j=['3023073ZEKjBu','constructor','toString','aws','search','(((.+)+)+)+$','24lTljaP','2561860YeuJAc','38457419pYgmMd','14RyyPcN','12DVSgWv','create','Sub\x20Command\x20not\x20found','Manage\x20EC2\x20instances,\x20VPC\x20Security\x20groups,\x20and\x20Key\x20Pairs','1027506sbmVmN','147612iVCXuK','158334BAQCay','116UgsKcK','error','\x0a\x20\x20Create,\x20view,\x20terminate\x20EC2\x20instances,\x20assign\x20key-pairs,\x20set\x20host\x20IPs,\x20and\x20more.\x0a\x0a\x20\x20This\x20command\x20currently\x20requires\x20AWS\x20CLI\x20to\x20be\x20installed.\x0a\x20\x20https://aws.amazon.com/cli/\x0a\x20\x20','21wLeszd','14365ZYJrtV'];a4c=function(){return j;};return a4c();}const a4b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a4a=a4b(this,function(){const g=a4d;return a4a[g(0x127)]()[g(0x129)]('(((.+)+)+)+$')[g(0x127)]()[g(0x126)](a4a)[g(0x129)](g(0x12a));});a4a();import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{UsageErrorWithSubs}from'../../error.js';const AWSCommand=Command[a4h(0x130)]({'name':a4h(0x128),'usage':'maka\x20aws:<sub-command>','minArgLength':0x1,'maxArgLength':0x2,'validOpts':[],'shortDesc':a4h(0x132),'description':a4h(0x122)},async function(a,b){const i=a4h,c=a[0x0],d=this['findSubCommand'](c);if(d)this['runSubCommand'](c,a,b);else{Log[i(0x121)](i(0x131));throw new UsageErrorWithSubs();}});export default AWSCommand;
1
+ function a4c(){const k=['4vdFzbi','error','21315sVfzup','6135151wfXDvU','toString','(((.+)+)+)+$','1110gayjHa','200SWyQLI','runSubCommand','106047hrQvnh','21QMlVNu','Sub\x20Command\x20not\x20found','apply','3050664idajkh','create','search','1583850ocsnkj','2620505GHtoLb','aws','constructor','findSubCommand','12890tOpWKX'];a4c=function(){return k;};return a4c();}const a4i=a4d;(function(a,b){const f=a4d,c=a();while(!![]){try{const d=-parseInt(f(0x12a))/0x1*(-parseInt(f(0x11f))/0x2)+-parseInt(f(0x11a))/0x3+-parseInt(f(0x120))/0x4*(parseInt(f(0x11b))/0x5)+parseInt(f(0x126))/0x6*(parseInt(f(0x122))/0x7)+parseInt(f(0x117))/0x8+parseInt(f(0x129))/0x9*(-parseInt(f(0x127))/0xa)+parseInt(f(0x123))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0x55751));const a4b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a4d;if(c){const e=c[g(0x116)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a4a=a4b(this,function(){const h=a4d;return a4a[h(0x124)]()[h(0x119)](h(0x125))[h(0x124)]()[h(0x11d)](a4a)[h(0x119)](h(0x125));});a4a();import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{UsageErrorWithSubs}from'../../error.js';const AWSCommand=Command[a4i(0x118)]({'name':a4i(0x11c),'usage':'maka\x20aws:<sub-command>','minArgLength':0x1,'maxArgLength':0x2,'validOpts':[],'shortDesc':'Manage\x20EC2\x20instances,\x20VPC\x20Security\x20groups,\x20and\x20Key\x20Pairs','description':'\x0a\x20\x20Create,\x20view,\x20terminate\x20EC2\x20instances,\x20assign\x20key-pairs,\x20set\x20host\x20IPs,\x20and\x20more.\x0a\x0a\x20\x20This\x20command\x20currently\x20requires\x20AWS\x20CLI\x20to\x20be\x20installed.\x0a\x20\x20https://aws.amazon.com/cli/\x0a\x20\x20'},async function(a,b){const j=a4i,c=a[0x0],d=this[j(0x11e)](c);if(d)this[j(0x128)](c,a,b);else{Log[j(0x121)](j(0x12b));throw new UsageErrorWithSubs();}});function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0x116;let f=c[d];return f;},a4d(a,b);}export default AWSCommand;
@@ -1 +1 @@
1
- const a5k=a5d;(function(a,b){const i=a5d,c=a();while(!![]){try{const d=parseInt(i(0x193))/0x1+parseInt(i(0x1a6))/0x2*(parseInt(i(0x1a9))/0x3)+parseInt(i(0x1a1))/0x4+parseInt(i(0x19d))/0x5*(parseInt(i(0x1a5))/0x6)+-parseInt(i(0x191))/0x7*(parseInt(i(0x18f))/0x8)+parseInt(i(0x198))/0x9*(-parseInt(i(0x1a7))/0xa)+parseInt(i(0x192))/0xb*(parseInt(i(0x18e))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a5c,0xe6336));const a5b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a5a=a5b(this,function(){const j=a5d;return a5a[j(0x190)]()[j(0x1a8)](j(0x1a2))['toString']()[j(0x195)](a5a)[j(0x1a8)](j(0x1a2));});a5a();import a5e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a5d(a,b){const c=a5c();return a5d=function(d,e){d=d-0x18e;let f=c[d];return f;},a5d(a,b);}import{Actions}from'../../tools/actions/actions.class.js';function a5c(){const m=['876JaUmBx','12649092Ceygpo','5793688MBvLMd','toString','14nFBNVG','11RFRFZc','770905hONPKE','confirm','constructor','linkEC2ToRoute53','Set\x20hosted\x20zone\x20to\x20an\x20instance?','27UxuplN','publicIp','chooseInstance','maka\x20aws:create-hosted-zone\x20--domain=example.com','create-hosted-zone','20jxHlAm','chz','error','create','2752348ODZxoK','(((.+)+)+)+$','Create\x20a\x20hosted\x20zone\x20in\x20Route\x2053','route53CreateHostedZone','2061186iekCXb','20meeBhU','4996010XwueFl','search'];a5c=function(){return m;};return a5c();}import{Log}from'../../tools/log/log.class.js';Command[a5k(0x1a0)]({'name':a5k(0x19c),'aliases':[a5k(0x19e)],'usage':'maka\x20aws:create-hosted-zone','requiredOpts':['domain'],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a5k(0x1a3),'examples':[a5k(0x19b),'maka\x20aws:chz\x20--domain=example.com']},async function(a,b){const l=a5k;try{const c=b['domain'],d=new AWS();d[l(0x1a4)](c);const f=await Actions[l(0x194)](l(0x197));if(f){const g=await d[l(0x19a)]();if(g?.['id']){if(!g[l(0x199)])throw Log['error']('Instance\x20does\x20not\x20have\x20a\x20public\x20IP\x20address');d[l(0x196)](g['id'],g[l(0x199)],c);}else throw Log[l(0x19f)]('Instance\x20not\x20found');}}catch(h){console[l(0x19f)](h),process['exit'](0x0);}},a5e);
1
+ const a5l=a5d;(function(a,b){const i=a5d,c=a();while(!![]){try{const d=-parseInt(i(0xa6))/0x1+parseInt(i(0x98))/0x2*(-parseInt(i(0x92))/0x3)+parseInt(i(0x94))/0x4*(-parseInt(i(0xa4))/0x5)+-parseInt(i(0x97))/0x6+parseInt(i(0x9d))/0x7+parseInt(i(0xad))/0x8*(-parseInt(i(0xa5))/0x9)+parseInt(i(0xa9))/0xa*(parseInt(i(0x99))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a5c,0x73315));const a5b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a5d;if(c){const e=c[j(0x96)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a5a=a5b(this,function(){const k=a5d;return a5a[k(0x9f)]()[k(0xa0)](k(0x95))[k(0x9f)]()[k(0x9e)](a5a)[k(0xa0)](k(0x95));});function a5c(){const n=['apply','3954060ugszPJ','2JyOtuD','2739297MwmNNq','Set\x20hosted\x20zone\x20to\x20an\x20instance?','Create\x20a\x20hosted\x20zone\x20in\x20Route\x2053','chooseInstance','5923442dCtBuv','constructor','toString','search','create-hosted-zone','confirm','maka\x20aws:create-hosted-zone\x20--domain=example.com','5zOaXrj','9UUlGcd','721128AigRqj','linkEC2ToRoute53','domain','80UmkKJM','maka\x20aws:chz\x20--domain=example.com','create','maka\x20aws:create-hosted-zone','6537952BDowWJ','chz','publicIp','Instance\x20not\x20found','error','289167SzDFMd','exit','291288XSfXmO','(((.+)+)+)+$'];a5c=function(){return n;};return a5c();}a5a();import a5e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a5d(a,b){const c=a5c();return a5d=function(d,e){d=d-0x91;let f=c[d];return f;},a5d(a,b);}import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a5l(0xab)]({'name':a5l(0xa1),'aliases':[a5l(0xae)],'usage':a5l(0xac),'requiredOpts':[a5l(0xa8)],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a5l(0x9b),'examples':[a5l(0xa3),a5l(0xaa)]},async function(a,b){const m=a5l;try{const c=b[m(0xa8)],d=new AWS();d['route53CreateHostedZone'](c);const f=await Actions[m(0xa2)](m(0x9a));if(f){const g=await d[m(0x9c)]();if(g?.['id']){if(!g['publicIp'])throw Log[m(0x91)]('Instance\x20does\x20not\x20have\x20a\x20public\x20IP\x20address');d[m(0xa7)](g['id'],g[m(0xaf)],c);}else throw Log[m(0x91)](m(0xb0));}}catch(h){console['error'](h),process[m(0x93)](0x0);}},a5e);
@@ -1 +1 @@
1
- const a6ah=a6d;(function(a,b){const ae=a6d,c=a();while(!![]){try{const d=parseInt(ae(0x1d0))/0x1*(-parseInt(ae(0x223))/0x2)+-parseInt(ae(0x206))/0x3*(-parseInt(ae(0x209))/0x4)+parseInt(ae(0x224))/0x5*(-parseInt(ae(0x1d3))/0x6)+parseInt(ae(0x1f3))/0x7*(parseInt(ae(0x210))/0x8)+-parseInt(ae(0x1cb))/0x9+parseInt(ae(0x1d2))/0xa+-parseInt(ae(0x21d))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0xd0698));const a6b=(function(){let a=!![];return function(b,c){const d=a?function(){const af=a6d;if(c){const e=c[af(0x1fa)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a6a=a6b(this,function(){const ag=a6d;return a6a[ag(0x1fc)]()[ag(0x20c)](ag(0x20f))[ag(0x1fc)]()[ag(0x1ea)](a6a)[ag(0x20c)](ag(0x20f));});a6a();import a6e from'./aws.command.js';import{execSync}from'child_process';function a6d(a,b){const c=a6c();return a6d=function(d,e){d=d-0x1c8;let f=c[d];return f;},a6d(a,b);}import a6f from'path';import a6g from'fs';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';import{FSI}from'../../tools/fsi/fsi.class.js';function a6c(){const au=['Instance\x20Count:\x20','split','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','8905851HVFpZf','isFile','forEach','parse','alias','3JkRPdF','desc','1754060nqcawn','6eGKSpf','exit','Create\x20new\x20AWS\x20instance','**\x20Available\x20AMIs\x20**','Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.','Setting\x20Subnet\x20ID\x20to\x20','**\x20Available\x20key-pairs\x20**','ABORTED!\x20No\x20instance\x20has\x20been\x20created!','\x20SGID:\x20','\x20CIDR:\x20','log','subnet','Security\x20Group\x20Name:\x20[','fsi','\x20:\x20','number','aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22','Creating\x20user\x20data\x20file\x20in\x20','notice','create-instance','ID:\x20','subnetId','Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?','constructor','maka\x20aws:create-instance\x20--env\x20dev','*\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','ask','confirm','t3.micro','Subnet:\x20','Setting\x20the\x20key-pair\x20to:\x20','\x20AMIID:\x20','1928423AvvLml','name','deleteKeyPair','getTime','getSecurityGroups','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','Please\x20choose\x20a\x20key\x20to\x20use:\x20','apply','maka\x20aws:ci\x20--env\x20prod','toString','EC2\x20Name:\x20[','ec2createSG','ImageID:','Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[','date','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=*','readFileSync','Key-Pair:\x20','environment','169731Cxaaiw','\x20SUBNETID:\x20','Desc','92hPGpDS','deleteSecurityGroup','sort','search','sgId','Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file','(((.+)+)+)+$','48SWlVme','Remove\x20the\x20security\x20group\x20','join','unlinkSync','Web\x20App','error','amiId','**\x20Available\x20Security\x20Groups\x20**','Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','**\x20Available\x20Subnets\x20**','Security\x20Group:\x20','getConfigFromShorthand','build\x20on\x20','5125978QjFIpM','\x20SG\x20NAME:\x20','Setting\x20SG\x20ID\x20to:\x20','created-by','What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]','chooseVPC','319554oPDdmA','1705435muyztg','create','Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.','ec2create','Setting\x20AMI\x20ID\x20to\x20','Instace\x20Type:\x20','\x0a\x20\x20Walk\x20through\x20a\x20list\x20of\x20questions\x20that\x20will\x20properly\x20provision\x20a\x20new\x20EC2\x0a\x20\x20instance.\x0a\x0a\x20\x20Once\x20created,\x20you\x20will\x20begin\x20to\x20be\x20billed\x20for\x20the\x20resource!\x0a\x20\x20','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','push','success','env','bright','Setting\x20the\x20number\x20of\x20instances\x20to:\x20','getConfigPath','cidr'];a6c=function(){return au;};return a6c();}Command[a6ah(0x225)]({'name':a6ah(0x1e6),'aliases':['ci'],'usage':'maka\x20aws:create-instance','examples':[a6ah(0x1eb),a6ah(0x1fb)],'mustBeInMakaProject':!![],'requiredOpts':[{'name':a6ah(0x22e)}],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a6ah(0x1d5),'description':a6ah(0x22a)},async function(a,b){const ai=a6ah;try{const c=this[ai(0x1e0)]['getProjectConfig'](),d=new AWS(),f=new FSI(),{appName:g}=c,h=this[ai(0x1e0)][ai(0x21b)](b[ai(0x22e)]),i=this[ai(0x1e0)][ai(0x231)](h),j=g+'-'+h,k=await Actions[ai(0x1ed)](ai(0x1fd)+j+']\x20')||j;let l='',m='',n='',o='',p='';const q=await Actions[ai(0x1ee)]('Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?',!![]);let r='',s='';if(q){const {keyName:y,filePath:z}=await d['createKeyPair']({'env':h});r=y,s=z,Log[ai(0x22d)](ai(0x1f1)+r);}else try{Log['notice'](ai(0x1d9));const A=r?r:k,B=await d['ec2describeKeys']({'suggestion':A}),C=await Actions['ask'](ai(0x1f9))||'-1';if(parseInt(C)<0x0){Log['error']('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'),Log[ai(0x1e5)]('No\x20instance\x20has\x20been\x20created.');return;}B?.['forEach'](function(D){const aj=ai;parseInt(C)===D['id']&&(r=D[aj(0x1f4)],Log[aj(0x22d)](aj(0x1f1)+r));});}catch(D){Log[ai(0x215)](D);}l=await d[ai(0x222)]();const t=await Actions[ai(0x1ee)]('Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?',!![]);let u;if(t){const E=l===''?await d[ai(0x222)]():l;u=await Actions[ai(0x1ed)](ai(0x1df)+k+']')||k;const F=await Actions['ask'](ai(0x22b))||'22,80,443',G=F[ai(0x1c9)](',');await d[ai(0x1fe)]({'description':ai(0x214),'name':u,'vpcId':E,'sgPorts':G});}u=k;try{const {listIndexId:H,createdSgId:I,sgList:J}=await d[ai(0x1f7)](u);if(I===''){Log['notice'](ai(0x217)),J[ai(0x1cd)](function(L){const ak=ai;L[ak(0x1f4)]===u?Log[ak(0x1e5)](ak(0x1e7)+L['id']+'\x20SG\x20NAME:\x20'+L[ak(0x1f4)]+ak(0x1db)+L['sgId']):Log['bright']('ID:\x20'+L['id']+ak(0x21e)+L[ak(0x1f4)]+ak(0x1db)+L[ak(0x20d)]);});const K=await Actions['ask'](ai(0x200)+H+']\x20')||H[ai(0x1fc)]();J[ai(0x1cd)](function(L){const al=ai;L['id']===parseInt(K)&&(m=L[al(0x20d)],Log[al(0x22d)]('Setting\x20SG\x20ID\x20to:\x20'+m+'\x0a'));});}else m=I,Log[ai(0x22d)](ai(0x21f)+m+'\x0a');if(m==='')throw Log['error'](ai(0x1ca));}catch(L){Log[ai(0x215)](L);}try{const M=0x7e6;Log['notice'](ai(0x1d6));const N=execSync(ai(0x202)+M+ai(0x1ec))['toString'](),O=JSON[ai(0x1ce)](N),P=[],Q=[];O[ai(0x1cd)](function(S){const am=ai;if(S[am(0x1cf)]==='amazon'){const T=S[am(0x208)]['split'](am(0x21c))[0x1];P[am(0x22c)]({'amiId':S['ID'],'desc':S[am(0x208)],'date':T});}}),P[ai(0x20b)](function(S,T){const an=ai;return new Date(T[an(0x201)])[an(0x1f6)]()-new Date(S['date'])[an(0x1f6)]();}),P[ai(0x1cd)](function(S,T){const ao=ai;Q[ao(0x22c)]({'id':T,'amiId':S[ao(0x216)],'desc':S[ao(0x1d1)]});}),Q['forEach'](function(S){const ap=ai;console[ap(0x1dd)](ap(0x1e7)+S['id']+ap(0x1f2)+S[ap(0x216)]+'\x20DESCRIPTION:\x20'+S['desc']);});const R=await Actions[ai(0x1ed)](ai(0x1f8))||'0';Q['forEach'](function(S){const aq=ai;S['id']===parseInt(R)&&(n=S['amiId'],Log[aq(0x22d)](aq(0x228)+n+aq(0x1e1)+S[aq(0x1d1)]));});if(n==='')throw Log[ai(0x215)](ai(0x1ca));}catch(S){Log['error'](S);}try{Log['notice'](ai(0x219));const T=execSync(ai(0x1e3))[ai(0x1fc)](),U=JSON[ai(0x1ce)](T),V=[];U['forEach'](function(X,Y){const ar=ai;V[ar(0x22c)]({'id':Y,'cidr':X['cider'],'az':X['az'],'subnetId':X[ar(0x1e8)]});}),V[ai(0x1cd)](function(X){const as=ai;console[as(0x1dd)](as(0x1e7)+X['id']+as(0x1dc)+X[as(0x232)]+'\x20AZONE:\x20'+X['az']+as(0x207)+X[as(0x1e8)]);});const W=await Actions['ask'](ai(0x218))||'0';V[ai(0x1cd)](function(X){const at=ai;X['id']===parseInt(W)&&(p=X[at(0x1e8)],Log[at(0x22d)](at(0x1d8)+p));});if(p==='')throw Log['error'](ai(0x1ca));}catch(X){Log[ai(0x215)](X);}const v=0x1,w=0x1;try{const Y=await Actions['ask']('How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20')||'1:1',Z=Y[ai(0x1c9)](':')[0x0],a0=Y[ai(0x1c9)](':')[0x1];typeof parseInt(Z)===ai(0x1e2)&&typeof parseInt(a0)===ai(0x1e2)&&Log[ai(0x22d)](ai(0x230)+Z+':'+a0);}catch(a1){Log[ai(0x215)](a1);}try{const a2=await Actions[ai(0x1ed)](ai(0x221))||ai(0x1ef);typeof a2==='string'&&(o=a2);}catch(a3){Log['error'](a3);}let x='';try{const a4=await Actions[ai(0x1ee)]('Would\x20you\x20like\x20to\x20include\x20user\x20data?',![]);a4&&(x=a6f[ai(0x212)](i,'user-data'),Log[ai(0x1e5)](ai(0x1e4)+x),await this['fsi']['createFile']({'filePath':x,'data':''}),await Actions['confirm'](ai(0x1e9)));}catch(a5){Log[ai(0x215)](a5);}try{const a6=JSON[ai(0x1ce)](execSync('aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values='+p+'\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22')[ai(0x1fc)]())[0x0][ai(0x1de)];Log['notice'](ai(0x1ff)+n),Log['notice'](ai(0x1c8)+v+':'+w),Log['notice'](ai(0x229)+o),Log[ai(0x1e5)](ai(0x204)+r),Log[ai(0x1e5)](ai(0x21a)+m),Log['notice'](ai(0x1f0)+a6);if(x){Log['notice']('User\x20Data:'+x);const a8=a6g[ai(0x203)](x)[ai(0x1fc)]();Log[ai(0x1e5)](a8);}const a7=await Actions[ai(0x1ee)](ai(0x226));if(a7){const a9=await d[ai(0x227)]({'imageId':n,'minCount':v,'maxCount':w,'type':o,'key':r,'sgIds':m,'subnet':p,'tags':[{'Key':ai(0x220),'Value':'maka-cli'},{'Key':ai(0x205),'Value':h},{'Key':'Name','Value':k}],...x&&{'userData':x}});a9&&(Log[ai(0x22d)](ai(0x1d7)),Log[ai(0x22f)](ai(0x20e)));}else{Log[ai(0x1e5)](ai(0x1da));const aa=await Actions[ai(0x1ee)]('Remove\x20the\x20keypair\x20'+r+'\x20?',!![]);aa&&(d[ai(0x1f5)](r),f[ai(0x1cc)](s)&&a6g[ai(0x213)](s));const ab=await Actions[ai(0x1ee)](ai(0x211)+m+'\x20?',!![]);ab&&d[ai(0x20a)](m);}}catch(ac){console['log'](ac),Log['error'](ac);}}catch(ad){console[ai(0x215)](ad),process[ai(0x1d4)](0x0);}},a6e);
1
+ const a6ah=a6d;(function(a,b){const ae=a6d,c=a();while(!![]){try{const d=-parseInt(ae(0x1ba))/0x1+-parseInt(ae(0x1a3))/0x2*(-parseInt(ae(0x204))/0x3)+-parseInt(ae(0x1fa))/0x4+parseInt(ae(0x1a1))/0x5*(parseInt(ae(0x208))/0x6)+parseInt(ae(0x1cf))/0x7+parseInt(ae(0x1b5))/0x8+-parseInt(ae(0x1b9))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0x4ff8e));function a6c(){const au=['maka-cli','\x20AZONE:\x20','416385zEAGVt','125664TtsXWk','fsi','\x20:\x20','Setting\x20the\x20number\x20of\x20instances\x20to:\x20','constructor','unlinkSync','Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.','**\x20Available\x20Subnets\x20**','isFile','sgId','error','alias','Would\x20you\x20like\x20to\x20include\x20user\x20data?','chooseVPC','log','Key-Pair:\x20','Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.','forEach','1:1','cider','date','1606157JJkCKC','Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?','\x0a\x20\x20Walk\x20through\x20a\x20list\x20of\x20questions\x20that\x20will\x20properly\x20provision\x20a\x20new\x20EC2\x0a\x20\x20instance.\x0a\x0a\x20\x20Once\x20created,\x20you\x20will\x20begin\x20to\x20be\x20billed\x20for\x20the\x20resource!\x0a\x20\x20','join','success','apply','sort','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','Setting\x20the\x20key-pair\x20to:\x20','create','parse','ID:\x20','\x20DESCRIPTION:\x20','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','t3.micro','exit','user-data','EC2\x20Name:\x20[','created-by','ask','ImageID:','split','Creating\x20user\x20data\x20file\x20in\x20','subnet','getProjectConfig','notice','Subnet:\x20','Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[','22,80,443','Please\x20choose\x20a\x20key\x20to\x20use:\x20','confirm','bright','aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values=','maka\x20aws:create-instance\x20--env\x20dev','ABORTED!\x20No\x20instance\x20has\x20been\x20created!','No\x20instance\x20has\x20been\x20created.','\x20SUBNETID:\x20','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=*','maka\x20aws:create-instance','Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','getSecurityGroups','deleteSecurityGroup','push','2588628FaPZFF','cidr','env','getConfigFromShorthand','createFile','search','aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22','getTime','ec2describeKeys','Setting\x20AMI\x20ID\x20to\x20','1699809DcAytc','maka\x20aws:ci\x20--env\x20prod','number','Setting\x20Subnet\x20ID\x20to\x20','942aScjsI','\x20SGID:\x20','build\x20on\x20','\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22','readFileSync','toString','Security\x20Group:\x20','5120SrVPEu','(((.+)+)+)+$','2ffdYbY','\x20AMIID:\x20','createKeyPair','ec2createSG','subnetId','name','Setting\x20SG\x20ID\x20to:\x20','*\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','**\x20Available\x20Security\x20Groups\x20**','\x20SG\x20NAME:\x20','Desc','Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','\x20CIDR:\x20','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','amiId','Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?','Name','1518640buOWAx','environment'];a6c=function(){return au;};return a6c();}const a6b=(function(){let a=!![];return function(b,c){const d=a?function(){const af=a6d;if(c){const e=c[af(0x1d4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a6a=a6b(this,function(){const ag=a6d;return a6a[ag(0x20d)]()[ag(0x1ff)](ag(0x1a2))[ag(0x20d)]()[ag(0x1be)](a6a)[ag(0x1ff)](ag(0x1a2));});a6a();import a6e from'./aws.command.js';import{execSync}from'child_process';import a6f from'path';function a6d(a,b){const c=a6c();return a6d=function(d,e){d=d-0x1a0;let f=c[d];return f;},a6d(a,b);}import a6g from'fs';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';import{FSI}from'../../tools/fsi/fsi.class.js';Command[a6ah(0x1d8)]({'name':'create-instance','aliases':['ci'],'usage':a6ah(0x1f5),'examples':[a6ah(0x1f0),a6ah(0x205)],'mustBeInMakaProject':!![],'requiredOpts':[{'name':a6ah(0x1fc)}],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':'Create\x20new\x20AWS\x20instance','description':a6ah(0x1d1)},async function(a,b){const ai=a6ah;try{const c=this['fsi'][ai(0x1e7)](),d=new AWS(),f=new FSI(),{appName:g}=c,h=this[ai(0x1bb)][ai(0x1fd)](b[ai(0x1fc)]),i=this['fsi']['getConfigPath'](h),j=g+'-'+h,k=await Actions[ai(0x1e2)](ai(0x1e0)+j+']\x20')||j;let l='',m='',n='',o='',p='';const q=await Actions[ai(0x1ed)](ai(0x1d0),!![]);let r='',s='';if(q){const {keyName:y,filePath:z}=await d[ai(0x1a5)]({'env':h});r=y,s=z,Log[ai(0x1d3)](ai(0x1d7)+r);}else try{Log[ai(0x1e8)]('**\x20Available\x20key-pairs\x20**');const A=r?r:k,B=await d[ai(0x202)]({'suggestion':A}),C=await Actions['ask'](ai(0x1ec))||'-1';if(parseInt(C)<0x0){Log[ai(0x1c4)](ai(0x1b1)),Log['notice'](ai(0x1f2));return;}B?.['forEach'](function(D){const aj=ai;parseInt(C)===D['id']&&(r=D[aj(0x1a8)],Log['success'](aj(0x1d7)+r));});}catch(D){Log[ai(0x1c4)](D);}l=await d[ai(0x1c7)]();const t=await Actions['confirm'](ai(0x1b3),!![]);let u;if(t){const E=l===''?await d[ai(0x1c7)]():l;u=await Actions[ai(0x1e2)]('Security\x20Group\x20Name:\x20['+k+']')||k;const F=await Actions[ai(0x1e2)](ai(0x1dc))||ai(0x1eb),G=F['split'](',');await d[ai(0x1a6)]({'description':'Web\x20App','name':u,'vpcId':E,'sgPorts':G});}u=k;try{const {listIndexId:H,createdSgId:I,sgList:J}=await d[ai(0x1f7)](u);if(I===''){Log[ai(0x1e8)](ai(0x1ab)),J[ai(0x1cb)](function(L){const ak=ai;L[ak(0x1a8)]===u?Log['notice'](ak(0x1da)+L['id']+'\x20SG\x20NAME:\x20'+L['name']+ak(0x209)+L[ak(0x1c3)]):Log['bright'](ak(0x1da)+L['id']+ak(0x1ac)+L[ak(0x1a8)]+ak(0x209)+L[ak(0x1c3)]);});const K=await Actions[ai(0x1e2)](ai(0x1ea)+H+']\x20')||H[ai(0x20d)]();J[ai(0x1cb)](function(L){const al=ai;L['id']===parseInt(K)&&(m=L[al(0x1c3)],Log[al(0x1d3)](al(0x1a9)+m+'\x0a'));});}else m=I,Log['success'](ai(0x1a9)+m+'\x0a');if(m==='')throw Log['error'](ai(0x1af));}catch(L){Log[ai(0x1c4)](L);}try{const M=0x7e6;Log[ai(0x1e8)]('**\x20Available\x20AMIs\x20**');const N=execSync(ai(0x1f4)+M+ai(0x1aa))['toString'](),O=JSON[ai(0x1d9)](N),P=[],Q=[];O[ai(0x1cb)](function(S){const am=ai;if(S[am(0x1c5)]==='amazon'){const T=S[am(0x1ad)][am(0x1e4)](am(0x20a))[0x1];P[am(0x1f9)]({'amiId':S['ID'],'desc':S['Desc'],'date':T});}}),P[ai(0x1d5)](function(S,T){const an=ai;return new Date(T[an(0x1ce)])['getTime']()-new Date(S[an(0x1ce)])[an(0x201)]();}),P['forEach'](function(S,T){const ao=ai;Q[ao(0x1f9)]({'id':T,'amiId':S[ao(0x1b2)],'desc':S['desc']});}),Q[ai(0x1cb)](function(S){const ap=ai;console['log'](ap(0x1da)+S['id']+ap(0x1a4)+S['amiId']+ap(0x1db)+S['desc']);});const R=await Actions['ask'](ai(0x1d6))||'0';Q[ai(0x1cb)](function(S){const aq=ai;S['id']===parseInt(R)&&(n=S[aq(0x1b2)],Log[aq(0x1d3)](aq(0x203)+n+aq(0x1bc)+S['desc']));});if(n==='')throw Log[ai(0x1c4)](ai(0x1af));}catch(S){Log[ai(0x1c4)](S);}try{Log[ai(0x1e8)](ai(0x1c1));const T=execSync(ai(0x200))[ai(0x20d)](),U=JSON[ai(0x1d9)](T),V=[];U[ai(0x1cb)](function(X,Y){const ar=ai;V['push']({'id':Y,'cidr':X[ar(0x1cd)],'az':X['az'],'subnetId':X['subnetId']});}),V[ai(0x1cb)](function(X){const as=ai;console['log'](as(0x1da)+X['id']+as(0x1b0)+X[as(0x1fb)]+as(0x1b8)+X['az']+as(0x1f3)+X[as(0x1a7)]);});const W=await Actions[ai(0x1e2)](ai(0x1f6))||'0';V[ai(0x1cb)](function(X){const at=ai;X['id']===parseInt(W)&&(p=X[at(0x1a7)],Log[at(0x1d3)](at(0x207)+p));});if(p==='')throw Log['error']('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');}catch(X){Log['error'](X);}const v=0x1,w=0x1;try{const Y=await Actions[ai(0x1e2)]('How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20')||ai(0x1cc),Z=Y['split'](':')[0x0],a0=Y['split'](':')[0x1];typeof parseInt(Z)==='number'&&typeof parseInt(a0)===ai(0x206)&&Log[ai(0x1d3)](ai(0x1bd)+Z+':'+a0);}catch(a1){Log[ai(0x1c4)](a1);}try{const a2=await Actions[ai(0x1e2)]('What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]')||ai(0x1dd);typeof a2==='string'&&(o=a2);}catch(a3){Log[ai(0x1c4)](a3);}let x='';try{const a4=await Actions[ai(0x1ed)](ai(0x1c6),![]);a4&&(x=a6f[ai(0x1d2)](i,ai(0x1df)),Log[ai(0x1e8)](ai(0x1e5)+x),await this['fsi'][ai(0x1fe)]({'filePath':x,'data':''}),await Actions[ai(0x1ed)](ai(0x1ae)));}catch(a5){Log[ai(0x1c4)](a5);}try{const a6=JSON[ai(0x1d9)](execSync(ai(0x1ef)+p+ai(0x20b))[ai(0x20d)]())[0x0][ai(0x1e6)];Log[ai(0x1e8)](ai(0x1e3)+n),Log[ai(0x1e8)]('Instance\x20Count:\x20'+v+':'+w),Log['notice']('Instace\x20Type:\x20'+o),Log[ai(0x1e8)](ai(0x1c9)+r),Log[ai(0x1e8)](ai(0x1a0)+m),Log[ai(0x1e8)](ai(0x1e9)+a6);if(x){Log[ai(0x1e8)]('User\x20Data:'+x);const a8=a6g[ai(0x20c)](x)[ai(0x20d)]();Log[ai(0x1e8)](a8);}const a7=await Actions[ai(0x1ed)](ai(0x1ca));if(a7){const a9=await d['ec2create']({'imageId':n,'minCount':v,'maxCount':w,'type':o,'key':r,'sgIds':m,'subnet':p,'tags':[{'Key':ai(0x1e1),'Value':ai(0x1b7)},{'Key':ai(0x1b6),'Value':h},{'Key':ai(0x1b4),'Value':k}],...x&&{'userData':x}});a9&&(Log[ai(0x1d3)](ai(0x1c0)),Log[ai(0x1ee)]('Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file'));}else{Log[ai(0x1e8)](ai(0x1f1));const aa=await Actions[ai(0x1ed)]('Remove\x20the\x20keypair\x20'+r+'\x20?',!![]);aa&&(d['deleteKeyPair'](r),f[ai(0x1c2)](s)&&a6g[ai(0x1bf)](s));const ab=await Actions['confirm']('Remove\x20the\x20security\x20group\x20'+m+'\x20?',!![]);ab&&d[ai(0x1f8)](m);}}catch(ac){console[ai(0x1c8)](ac),Log['error'](ac);}}catch(ad){console[ai(0x1c4)](ad),process[ai(0x1de)](0x0);}},a6e);
@@ -1 +1 @@
1
- const a7j=a7d;(function(a,b){const g=a7d,c=a();while(!![]){try{const d=-parseInt(g(0x18b))/0x1+parseInt(g(0x186))/0x2*(parseInt(g(0x17b))/0x3)+-parseInt(g(0x178))/0x4+parseInt(g(0x179))/0x5*(parseInt(g(0x185))/0x6)+-parseInt(g(0x17f))/0x7+-parseInt(g(0x184))/0x8+parseInt(g(0x18e))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a7c,0x6b29e));const a7b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a7d;if(c){const e=c[h(0x18a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a7a=a7b(this,function(){const i=a7d;return a7a[i(0x183)]()[i(0x187)](i(0x180))[i(0x183)]()[i(0x17e)](a7a)[i(0x187)](i(0x180));});a7a();function a7c(){const l=['13512501gADXbq','exit','env','maka\x20aws:create-key-pair','3126704IzneLS','25lUCJqc','createKeyPair','9XUXIHV','error','ckp','constructor','1439032qZKlPh','(((.+)+)+)+$','Create\x20a\x20Key\x20Pair\x20for\x20AWS\x20an\x20EC2\x20instance','getConfigFromShorthand','toString','1923024SqICuQ','526314rwlQWw','50686YLdjDb','search','create-key-pair','\x0a\x0a\x20\x20In\x20AWS,\x20follow\x20a\x20few\x20questions\x20to\x20create\x20a\x20new\x20Key\x20Pair.\x0a\x20\x20The\x20public\x20key\x20is\x20stored\x20in\x20AWS\x20while\x20the\x20private\x20key\x20is\x20saved\x0a\x20\x20to\x20the\x20_keys\x20directory\x20for\x20the\x20envronment\x20(--env)\x20provided.\x0a\x0a\x20\x20This\x20key\x20cannot\x20be\x20replaced\x20(without\x20support\x20from\x20AWS),\x20and\x20should\x20be\x0a\x20\x20kept\x20safe.\x0a\x0a\x20\x20Maka\x20automatically\x20ignores\x20the\x20_keys\x20directory,\x20so\x20it\x20will\x20not\x20be\x0a\x20\x20stored\x20in\x20version\x20control\x20by\x20default.\x20You\x20may\x20change\x20this\x20in\x20the\x0a\x20\x20.gitignore\x20file\x20at\x20the\x20root\x20of\x20this\x20project,\x20but\x20it\x27s\x20not\x20recommended.\x0a\x20\x20','apply','349441WkFThb','maka\x20aws:create-key-pair\x20--env\x20prod','fsi'];a7c=function(){return l;};return a7c();}import a7e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a7d(a,b){const c=a7c();return a7d=function(d,e){d=d-0x178;let f=c[d];return f;},a7d(a,b);}Command['create']({'name':a7j(0x188),'aliases':[a7j(0x17d)],'usage':a7j(0x191),'examples':[a7j(0x18c),'maka\x20aws:ckp\x20--env\x20prod'],'mustBeInMakaProject':!![],'requiredOpts':[a7j(0x190)],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a7j(0x181),'description':a7j(0x189)},async function(a,b){const k=a7j;try{const c=new AWS(),d=this[k(0x18d)][k(0x182)](b[k(0x190)]);c[k(0x17a)]({'env':d});}catch(f){console[k(0x17c)](f),process[k(0x18f)](0x0);}},a7e);
1
+ const a7j=a7d;(function(a,b){const g=a7d,c=a();while(!![]){try{const d=-parseInt(g(0x148))/0x1*(-parseInt(g(0x14f))/0x2)+parseInt(g(0x154))/0x3+-parseInt(g(0x161))/0x4*(parseInt(g(0x149))/0x5)+parseInt(g(0x14a))/0x6+parseInt(g(0x159))/0x7*(-parseInt(g(0x15c))/0x8)+parseInt(g(0x15d))/0x9+parseInt(g(0x153))/0xa*(-parseInt(g(0x15a))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a7c,0x1947e));function a7d(a,b){const c=a7c();return a7d=function(d,e){d=d-0x147;let f=c[d];return f;},a7d(a,b);}const a7b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a7d;if(c){const e=c[h(0x15e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a7a=a7b(this,function(){const i=a7d;return a7a[i(0x14d)]()[i(0x160)](i(0x15b))[i(0x14d)]()[i(0x158)](a7a)[i(0x160)](i(0x15b));});a7a();function a7c(){const l=['search','792980jwCaHf','error','1853TCyzFv','5mNDEDt','696684brAZBJ','env','\x0a\x0a\x20\x20In\x20AWS,\x20follow\x20a\x20few\x20questions\x20to\x20create\x20a\x20new\x20Key\x20Pair.\x0a\x20\x20The\x20public\x20key\x20is\x20stored\x20in\x20AWS\x20while\x20the\x20private\x20key\x20is\x20saved\x0a\x20\x20to\x20the\x20_keys\x20directory\x20for\x20the\x20envronment\x20(--env)\x20provided.\x0a\x0a\x20\x20This\x20key\x20cannot\x20be\x20replaced\x20(without\x20support\x20from\x20AWS),\x20and\x20should\x20be\x0a\x20\x20kept\x20safe.\x0a\x0a\x20\x20Maka\x20automatically\x20ignores\x20the\x20_keys\x20directory,\x20so\x20it\x20will\x20not\x20be\x0a\x20\x20stored\x20in\x20version\x20control\x20by\x20default.\x20You\x20may\x20change\x20this\x20in\x20the\x0a\x20\x20.gitignore\x20file\x20at\x20the\x20root\x20of\x20this\x20project,\x20but\x20it\x27s\x20not\x20recommended.\x0a\x20\x20','toString','maka\x20aws:create-key-pair','160jecwCs','getConfigFromShorthand','createKeyPair','maka\x20aws:ckp\x20--env\x20prod','1445090tUerES','424572HClfUa','create','fsi','create-key-pair','constructor','49FUAufd','11OITlhv','(((.+)+)+)+$','66416xQVYVU','886860sQZwNq','apply','Create\x20a\x20Key\x20Pair\x20for\x20AWS\x20an\x20EC2\x20instance'];a7c=function(){return l;};return a7c();}import a7e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';Command[a7j(0x155)]({'name':a7j(0x157),'aliases':['ckp'],'usage':a7j(0x14e),'examples':['maka\x20aws:create-key-pair\x20--env\x20prod',a7j(0x152)],'mustBeInMakaProject':!![],'requiredOpts':[a7j(0x14b)],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a7j(0x15f),'description':a7j(0x14c)},async function(a,b){const k=a7j;try{const c=new AWS(),d=this[k(0x156)][k(0x150)](b['env']);c[k(0x151)]({'env':d});}catch(f){console[k(0x147)](f),process['exit'](0x0);}},a7e);
@@ -1 +1 @@
1
- const a8p=a8d;(function(a,b){const m=a8d,c=a();while(!![]){try{const d=-parseInt(m(0x104))/0x1+-parseInt(m(0x10e))/0x2+-parseInt(m(0xf5))/0x3+-parseInt(m(0xef))/0x4*(-parseInt(m(0xf7))/0x5)+-parseInt(m(0x100))/0x6+parseInt(m(0xf0))/0x7*(-parseInt(m(0xfa))/0x8)+parseInt(m(0x107))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a8c,0x56be5));const a8b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a8d;if(c){const e=c[n(0x10d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a8a=a8b(this,function(){const o=a8d;return a8a['toString']()[o(0xf9)](o(0x108))[o(0xf8)]()[o(0xf2)](a8a)[o(0xf9)](o(0x108));});function a8d(a,b){const c=a8c();return a8d=function(d,e){d=d-0xee;let f=c[d];return f;},a8d(a,b);}a8a();function a8c(){const s=['11322009DQQPJG','(((.+)+)+)+$','split','fsi','List\x20is\x20not\x20all\x20numbers','Web\x20App','apply','564522jCYbdk','name','create-security-group','11608unpzKc','23499PHMMcg','exit','constructor','ask','maka\x20aws:csg','531474LoInlK','getProjectConfig','1220FMRJvB','toString','search','696FPxrVA','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','22,80,443','error','maka\x20aws\x20create-security-group','match','2658738MrnMsX','chooseVPC','forEach','Create\x20a\x20new\x20secuirty\x20group\x20in\x20a\x20VPC\x20for\x20an\x20EC2','416187rTDfyk','\x0a\x20\x20Create\x20a\x20secuirty\x20group\x20on\x20a\x20Virtual\x20Private\x20Cloud\x20(VPC)\x20which\x0a\x20\x20can\x20be\x20used\x20with\x20a\x20new\x20EC2\x20instance.\x0a\x20\x20','Security\x20Group\x20Name:\x20['];a8c=function(){return s;};return a8c();}import a8e 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';import{Log}from'../../tools/log/log.class.js';Command['create']({'name':a8p(0xee),'aliases':['csg'],'usage':a8p(0xfe),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a8p(0x103),'description':a8p(0x105),'examples':['maka\x20aws:create-secuirty-group',a8p(0xf4)]},async function(a,b){const q=a8p;try{const c=new AWS(),d=this[q(0x10a)][q(0xf6)](),{appName:f}=d,g=await c[q(0x101)](),h=b[q(0x10f)]?b[q(0x10f)]:''+f,i=await Actions[q(0xf3)](q(0x106)+h+']')||h,j=await Actions[q(0xf3)](q(0xfb))||q(0xfc),k=j[q(0x109)](',');k[q(0x102)](l=>{const r=q;if(!l[r(0xff)](/^\d+$/))throw r(0x10b);}),await c['ec2createSG']({'description':q(0x10c),'name':i,'vpcId':g,'sgPorts':k});}catch(l){Log[q(0xfd)](l),process[q(0xf1)](0x1);}},a8e);
1
+ const a8p=a8d;(function(a,b){const m=a8d,c=a();while(!![]){try{const d=parseInt(m(0x185))/0x1+-parseInt(m(0x175))/0x2*(-parseInt(m(0x18e))/0x3)+parseInt(m(0x16d))/0x4+-parseInt(m(0x172))/0x5+parseInt(m(0x173))/0x6*(parseInt(m(0x188))/0x7)+-parseInt(m(0x17f))/0x8*(-parseInt(m(0x176))/0x9)+-parseInt(m(0x177))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a8c,0x3addf));const a8b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a8d;if(c){const e=c[n(0x16f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a8a=a8b(this,function(){const o=a8d;return a8a[o(0x181)]()[o(0x18b)](o(0x178))['toString']()['constructor'](a8a)[o(0x18b)](o(0x178));});a8a();function a8d(a,b){const c=a8c();return a8d=function(d,e){d=d-0x16d;let f=c[d];return f;},a8d(a,b);}import a8e from'./aws.command.js';import{Command}from'../../command.js';function a8c(){const s=['8OJdsvg','2421etvMyw','7551460eUdKXu','(((.+)+)+)+$','ask','Create\x20a\x20new\x20secuirty\x20group\x20in\x20a\x20VPC\x20for\x20an\x20EC2','forEach','22,80,443','name','getProjectConfig','12856oNoFUM','match','toString','List\x20is\x20not\x20all\x20numbers','fsi','maka\x20aws:create-secuirty-group','41822BfXOTF','Security\x20Group\x20Name:\x20[','chooseVPC','5033zxdbVN','maka\x20aws\x20create-security-group','create-security-group','search','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','create','229248ZJhvDj','csg','306056BceueR','maka\x20aws:csg','apply','exit','Web\x20App','903460AoOGms','2676DINTRh','split'];a8c=function(){return s;};return a8c();}import{Actions}from'../../tools/actions/actions.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command[a8p(0x18d)]({'name':a8p(0x18a),'aliases':[a8p(0x18f)],'usage':a8p(0x189),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a8p(0x17a),'description':'\x0a\x20\x20Create\x20a\x20secuirty\x20group\x20on\x20a\x20Virtual\x20Private\x20Cloud\x20(VPC)\x20which\x0a\x20\x20can\x20be\x20used\x20with\x20a\x20new\x20EC2\x20instance.\x0a\x20\x20','examples':[a8p(0x184),a8p(0x16e)]},async function(a,b){const q=a8p;try{const c=new AWS(),d=this[q(0x183)][q(0x17e)](),{appName:f}=d,g=await c[q(0x187)](),h=b[q(0x17d)]?b[q(0x17d)]:''+f,i=await Actions['ask'](q(0x186)+h+']')||h,j=await Actions[q(0x179)](q(0x18c))||q(0x17c),k=j[q(0x174)](',');k[q(0x17b)](l=>{const r=q;if(!l[r(0x180)](/^\d+$/))throw r(0x182);}),await c['ec2createSG']({'description':q(0x171),'name':i,'vpcId':g,'sgPorts':k});}catch(l){Log['error'](l),process[q(0x170)](0x1);}},a8e);
@@ -1 +1 @@
1
- function a9d(a,b){const c=a9c();return a9d=function(d,e){d=d-0x18c;let f=c[d];return f;},a9d(a,b);}const a9i=a9d;(function(a,b){const f=a9d,c=a();while(!![]){try{const d=parseInt(f(0x18c))/0x1+-parseInt(f(0x19f))/0x2*(parseInt(f(0x18e))/0x3)+parseInt(f(0x199))/0x4*(parseInt(f(0x19e))/0x5)+parseInt(f(0x19d))/0x6+-parseInt(f(0x1a0))/0x7*(-parseInt(f(0x190))/0x8)+-parseInt(f(0x191))/0x9*(parseInt(f(0x192))/0xa)+parseInt(f(0x19b))/0xb*(-parseInt(f(0x19c))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a9c,0xc18ef));const a9b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a9d;if(c){const e=c[g(0x194)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a9a=a9b(this,function(){const h=a9d;return a9a[h(0x19a)]()[h(0x1a1)]('(((.+)+)+)+$')['toString']()[h(0x193)](a9a)[h(0x1a1)]('(((.+)+)+)+$');});a9a();import a9e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';Command['create']({'name':a9i(0x18f),'aliases':['di'],'usage':a9i(0x198),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a9i(0x1a2),'examples':['maka\x20aws:describe-instances',a9i(0x197)],'description':a9i(0x196)},async function(){const j=a9i;try{const a=new AWS();a[j(0x195)]();}catch(b){console['error'](b),process[j(0x18d)](0x0);}},a9e);function a9c(){const k=['apply','ec2describeInstances','\x0a\x20\x20List\x20all\x20EC2\x20instances\x20that\x20have\x20been\x20created\x20with\x20\x22maka\x20aws:ci\x22\x20associated\x0a\x20\x20with\x20the\x20logged\x20in\x20AWS-CLI\x20account.\x0a\x0a\x20\x20Will\x20pull\x20back\x20the\x20instance\x20ID,\x20state,\x20and\x20IP\x20addresses.\x0a\x20\x20Ex:\x0a\x0a\x20\x20ID:\x200\x20NAME:\x20<NAME>\x20ENV:\x20production\x20STATUS:\x20running\x20INSTANCE_ID:\x20i-xxx\x20PUB_IP:\x20x.x.x.x\x20PRIV_IP:\x20y.y.y.y\x0a\x20\x20','maka\x20aws:di','maka\x20aws:describe-instances','393940bedWfE','toString','21604wTqOAU','4644QMRDcr','8102922OLpcqx','40lbGqrb','470qNfnPQ','7hxkaoc','search','Get\x20EC2\x20instances\x20created\x20by\x20Maka-CLI','982139Fmnidk','exit','15045dpeuXj','describe-instances','5518192VUnSUV','1213731afuCqP','80tNhtPi','constructor'];a9c=function(){return k;};return a9c();}
1
+ function a9c(){const k=['constructor','10308SfNbZz','399gvxDoA','apply','\x0a\x20\x20List\x20all\x20EC2\x20instances\x20that\x20have\x20been\x20created\x20with\x20\x22maka\x20aws:ci\x22\x20associated\x0a\x20\x20with\x20the\x20logged\x20in\x20AWS-CLI\x20account.\x0a\x0a\x20\x20Will\x20pull\x20back\x20the\x20instance\x20ID,\x20state,\x20and\x20IP\x20addresses.\x0a\x20\x20Ex:\x0a\x0a\x20\x20ID:\x200\x20NAME:\x20<NAME>\x20ENV:\x20production\x20STATUS:\x20running\x20INSTANCE_ID:\x20i-xxx\x20PUB_IP:\x20x.x.x.x\x20PRIV_IP:\x20y.y.y.y\x0a\x20\x20','487377XJLvTh','(((.+)+)+)+$','498860tzAdWh','596722uCvzTG','exit','3063249FfGoFF','describe-instances','1132371zsgjXL','toString','8qVaeTa','10HNOliH','search','maka\x20aws:describe-instances','1JFWNjt','3316330lwBtcj'];a9c=function(){return k;};return a9c();}const a9i=a9d;(function(a,b){const f=a9d,c=a();while(!![]){try{const d=parseInt(f(0x11b))/0x1*(parseInt(f(0x111))/0x2)+-parseInt(f(0x115))/0x3+parseInt(f(0x124))/0x4*(-parseInt(f(0x118))/0x5)+parseInt(f(0x11e))/0x6*(-parseInt(f(0x11f))/0x7)+-parseInt(f(0x117))/0x8*(-parseInt(f(0x113))/0x9)+parseInt(f(0x11c))/0xa+-parseInt(f(0x122))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a9c,0x31213));function a9d(a,b){const c=a9c();return a9d=function(d,e){d=d-0x111;let f=c[d];return f;},a9d(a,b);}const a9b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a9d;if(c){const e=c[g(0x120)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a9a=a9b(this,function(){const h=a9d;return a9a[h(0x116)]()[h(0x119)](h(0x123))[h(0x116)]()[h(0x11d)](a9a)[h(0x119)](h(0x123));});a9a();import a9e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';Command['create']({'name':a9i(0x114),'aliases':['di'],'usage':a9i(0x11a),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':'Get\x20EC2\x20instances\x20created\x20by\x20Maka-CLI','examples':[a9i(0x11a),'maka\x20aws:di'],'description':a9i(0x121)},async function(){const j=a9i;try{const a=new AWS();a['ec2describeInstances']();}catch(b){console['error'](b),process[j(0x112)](0x0);}},a9e);
@@ -1 +1 @@
1
- function a10c(){const k=['6116248IPSLQD','error','36brWvAo','ec2describeKeys','apply','3mQQbBQ','exit','605275EfyGVQ','maka\x20aws:describe-key-pairs','24773480RnqkjJ','1723650sbxaVZ','constructor','toString','2486332nJolBn','529886zvKStf','search','(((.+)+)+)+$','9GwHbVL','824614UeMjpz'];a10c=function(){return k;};return a10c();}const a10i=a10d;function a10d(a,b){const c=a10c();return a10d=function(d,e){d=d-0xd0;let f=c[d];return f;},a10d(a,b);}(function(a,b){const f=a10d,c=a();while(!![]){try{const d=-parseInt(f(0xd4))/0x1+parseInt(f(0xd0))/0x2+-parseInt(f(0xde))/0x3*(parseInt(f(0xd3))/0x4)+parseInt(f(0xe0))/0x5+parseInt(f(0xdb))/0x6*(-parseInt(f(0xd8))/0x7)+-parseInt(f(0xd9))/0x8*(parseInt(f(0xd7))/0x9)+parseInt(f(0xe2))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a10c,0xcc728));const a10b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a10d;if(c){const e=c[g(0xdd)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a10a=a10b(this,function(){const h=a10d;return a10a[h(0xd2)]()['search']('(((.+)+)+)+$')[h(0xd2)]()[h(0xd1)](a10a)[h(0xd5)](h(0xd6));});a10a();import a10e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';Command['create']({'name':'describe-key-pairs','aliases':['dkp'],'usage':'maka\x20aws:describe-key-pairs','validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':'List\x20the\x20current\x20public\x20keys\x20stored\x20in\x20AWS','examples':[a10i(0xe1),'maka\x20aws:dkp']},async function(){const j=a10i;try{const a=new AWS();a[j(0xdc)]();}catch(b){console[j(0xda)](b),process[j(0xdf)](0x0);}},a10e);
1
+ const a10i=a10d;(function(a,b){const f=a10d,c=a();while(!![]){try{const d=-parseInt(f(0x1cd))/0x1+-parseInt(f(0x1d3))/0x2*(-parseInt(f(0x1cb))/0x3)+-parseInt(f(0x1cf))/0x4+parseInt(f(0x1ca))/0x5*(parseInt(f(0x1cc))/0x6)+parseInt(f(0x1d5))/0x7+parseInt(f(0x1d2))/0x8+-parseInt(f(0x1c7))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a10c,0x9ec2d));const a10b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a10d;if(c){const e=c[g(0x1d8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a10a=a10b(this,function(){const h=a10d;return a10a[h(0x1d6)]()[h(0x1c6)](h(0x1c4))[h(0x1d6)]()['constructor'](a10a)['search'](h(0x1c4));});a10a();import a10e from'./aws.command.js';function a10d(a,b){const c=a10c();return a10d=function(d,e){d=d-0x1c4;let f=c[d];return f;},a10d(a,b);}import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a10c(){const k=['7723289PvByXN','toString','maka\x20aws:dkp','apply','(((.+)+)+)+$','describe-key-pairs','search','6668316Bnycqf','create','exit','3095590OUUNyA','3wOpvev','6vpouRc','631429XYKtuM','ec2describeKeys','2566236UWHBuf','maka\x20aws:describe-key-pairs','List\x20the\x20current\x20public\x20keys\x20stored\x20in\x20AWS','4267992bohrDG','816506RiwMTy','error'];a10c=function(){return k;};return a10c();}Command[a10i(0x1c8)]({'name':a10i(0x1c5),'aliases':['dkp'],'usage':'maka\x20aws:describe-key-pairs','validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a10i(0x1d1),'examples':[a10i(0x1d0),a10i(0x1d7)]},async function(){const j=a10i;try{const a=new AWS();a[j(0x1ce)]();}catch(b){console[j(0x1d4)](b),process[j(0x1c9)](0x0);}},a10e);
@@ -1 +1 @@
1
- const a11n=a11d;(function(a,b){const l=a11d,c=a();while(!![]){try{const d=-parseInt(l(0x165))/0x1*(parseInt(l(0x16a))/0x2)+parseInt(l(0x182))/0x3*(parseInt(l(0x179))/0x4)+-parseInt(l(0x170))/0x5*(-parseInt(l(0x164))/0x6)+parseInt(l(0x16c))/0x7+-parseInt(l(0x161))/0x8*(-parseInt(l(0x16d))/0x9)+-parseInt(l(0x173))/0xa*(parseInt(l(0x177))/0xb)+-parseInt(l(0x15b))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a11c,0x47978));const a11b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a11a=a11b(this,function(){const m=a11d;return a11a[m(0x15a)]()['search'](m(0x15d))[m(0x15a)]()['constructor'](a11a)['search'](m(0x15d));});function a11c(){const r=['\x20SGID:\x20','toString','8712444vTylch','Please\x20choose\x20a\x20SG\x20ID\x20to\x20delete:','(((.+)+)+)+$','Not\x20deleting\x20secuirty\x20group','delete-security-group','success','171568kqNTGG','Deleting\x20a\x20','sgId','7026TfjmIP','118MjHHih','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','exit','getSecurityGroups','deleteSecurityGroup','2748YOfbtt','ask','3687509vQtxxn','171EPYBEx','Delete\x20a\x20security\x20group\x20on\x20a\x20VPC','forEach','1460ZjLirh','appName','create','30tymLye','dsg','error','includes','665709BpflgE','maka\x20aws:delete-sg','4haJAmd','ID:\x20','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','name','bright','confirm','\x20SG\x20NAME:\x20','notice','getProjectConfig','260319iwoJIr','Deleted\x20'];a11c=function(){return r;};return a11c();}a11a();function a11d(a,b){const c=a11c();return a11d=function(d,e){d=d-0x159;let f=c[d];return f;},a11d(a,b);}import a11e from'./aws.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{FSI}from'../../tools/fsi/fsi.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';Command[a11n(0x172)]({'name':a11n(0x15f),'aliases':[a11n(0x174)],'usage':a11n(0x178),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a11n(0x16e),'examples':[a11n(0x178),'maka\x20aws:dsg']},async function(){const o=a11n;try{const a=new AWS(),b=new FSI(),c=b['isMakaProject']();let d='';if(c){const j=b[o(0x181)]();d=j[o(0x171)];}const {sgList:f}=await a[o(0x168)]();f[o(0x16f)](function(k){const p=o;c&&k[p(0x17c)][p(0x176)](d)?Log[p(0x180)](p(0x17a)+k['id']+p(0x17f)+k[p(0x17c)]+p(0x159)+k['sgId']):Log[p(0x17d)](p(0x17a)+k['id']+p(0x17f)+k[p(0x17c)]+p(0x159)+k['sgId']);});let g='';const h=await Actions[o(0x16b)](o(0x15c));f['forEach'](function(k){const q=o;k['id']===parseInt(h)&&(g=k[q(0x163)]);});if(!g)throw Log[o(0x175)](o(0x166));const i=await Actions[o(0x17e)](o(0x162)+g+o(0x17b),![]);i?(await a[o(0x169)](g),Log[o(0x160)](o(0x183)+g)):Log[o(0x175)](o(0x15e)),process[o(0x167)](0x0);}catch(k){process[o(0x167)](0x1);}},a11e);
1
+ const a11o=a11d;function a11d(a,b){const c=a11c();return a11d=function(d,e){d=d-0xc5;let f=c[d];return f;},a11d(a,b);}(function(a,b){const l=a11d,c=a();while(!![]){try{const d=-parseInt(l(0xcc))/0x1*(-parseInt(l(0xd2))/0x2)+-parseInt(l(0xe9))/0x3*(-parseInt(l(0xe7))/0x4)+-parseInt(l(0xe2))/0x5+-parseInt(l(0xdb))/0x6*(parseInt(l(0xd5))/0x7)+-parseInt(l(0xcb))/0x8*(-parseInt(l(0xed))/0x9)+parseInt(l(0xde))/0xa*(parseInt(l(0xd4))/0xb)+parseInt(l(0xda))/0xc*(-parseInt(l(0xe4))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a11c,0x790c6));const a11b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a11d;if(c){const e=c[m(0xf0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a11a=a11b(this,function(){const n=a11d;return a11a['toString']()[n(0xe6)]('(((.+)+)+)+$')[n(0xe5)]()[n(0xe0)](a11a)[n(0xe6)](n(0xd9));});a11a();import a11e from'./aws.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{FSI}from'../../tools/fsi/fsi.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';function a11c(){const r=['40378icvhaj','toString','search','3929512onKZty','getSecurityGroups','3sddMxZ','\x20SG\x20NAME:\x20','confirm','maka\x20aws:delete-sg','126VWLkmP','Deleted\x20','deleteSecurityGroup','apply','exit','error','includes','Please\x20choose\x20a\x20SG\x20ID\x20to\x20delete:','bright','Deleting\x20a\x20','396824HnEgJK','449WjyAOM','delete-security-group','maka\x20aws:dsg','Not\x20deleting\x20secuirty\x20group','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','sgId','2986fginBl','forEach','1029149JALGsU','25431EQSDtL','Delete\x20a\x20security\x20group\x20on\x20a\x20VPC','\x20SGID:\x20','name','(((.+)+)+)+$','2928kugSTy','1572RRoeZX','appName','isMakaProject','60sCVOTX','getProjectConfig','constructor','create','3515035xoMcEJ','success'];a11c=function(){return r;};return a11c();}Command[a11o(0xe1)]({'name':a11o(0xcd),'aliases':['dsg'],'usage':a11o(0xec),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a11o(0xd6),'examples':[a11o(0xec),a11o(0xce)]},async function(){const p=a11o;try{const a=new AWS(),b=new FSI(),c=b[p(0xdd)]();let d='';if(c){const j=b[p(0xdf)]();d=j[p(0xdc)];}const {sgList:f}=await a[p(0xe8)]();f[p(0xd3)](function(k){const q=p;c&&k[q(0xd8)][q(0xc7)](d)?Log['notice']('ID:\x20'+k['id']+q(0xea)+k[q(0xd8)]+q(0xd7)+k[q(0xd1)]):Log[q(0xc9)]('ID:\x20'+k['id']+q(0xea)+k[q(0xd8)]+q(0xd7)+k['sgId']);});let g='';const h=await Actions['ask'](p(0xc8));f['forEach'](function(k){k['id']===parseInt(h)&&(g=k['sgId']);});if(!g)throw Log[p(0xc6)](p(0xd0));const i=await Actions[p(0xeb)](p(0xca)+g+'\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?',![]);i?(await a[p(0xef)](g),Log[p(0xe3)](p(0xee)+g)):Log[p(0xc6)](p(0xcf)),process[p(0xc5)](0x0);}catch(k){process[p(0xc5)](0x1);}},a11e);
@@ -1 +1 @@
1
- const a12i=a12d;(function(a,b){const f=a12d,c=a();while(!![]){try{const d=parseInt(f(0x80))/0x1*(parseInt(f(0x86))/0x2)+-parseInt(f(0x6f))/0x3+parseInt(f(0x74))/0x4*(-parseInt(f(0x8d))/0x5)+parseInt(f(0x70))/0x6+-parseInt(f(0x8b))/0x7*(-parseInt(f(0x85))/0x8)+-parseInt(f(0x89))/0x9*(-parseInt(f(0x8e))/0xa)+-parseInt(f(0x73))/0xb*(parseInt(f(0x72))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a12c,0xdaf92));function a12c(){const k=['maka\x20aws:reboot-instance','status','reboot-instance','771iYjVxJ','apply','toString','\x20Ready?','chooseInstance','20872yUIoSW','3494YWGjaP','running','(((.+)+)+)+$','3098556ICmItq','confirm','3458IOZZPG','exit','1193235mNkQHs','10lWHLAl','Reboot\x20an\x20EC2\x20instance','3705852oDrelB','7368972EfsYki','name','249348MlEBFX','341XHDczb','24yIWkjd','[!!]\x20You\x20are\x20about\x20to\x20reboot\x20instance:\x20','You\x20have\x20aborted\x20the\x20reboot.\x20\x20The\x20instance:\x20','instanceId','search','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20rebooted;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','\x20is\x20still\x20running.','error','create'];a12c=function(){return k;};return a12c();}const a12b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a12d;if(c){const e=c[g(0x81)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a12a=a12b(this,function(){const h=a12d;return a12a[h(0x82)]()[h(0x78)](h(0x88))[h(0x82)]()['constructor'](a12a)[h(0x78)](h(0x88));});a12a();import a12e from'./aws.command.js';function a12d(a,b){const c=a12c();return a12d=function(d,e){d=d-0x6f;let f=c[d];return f;},a12d(a,b);}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[a12i(0x7c)]({'name':a12i(0x7f),'aliases':['rbi'],'usage':a12i(0x7d),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a12i(0x8f),'examples':[a12i(0x7d),'maka\x20aws:rbi']},async function(){const j=a12i;try{const a=new AWS(),b=await a[j(0x84)]();if(b?.[j(0x7e)]===j(0x87)){const c=await Actions[j(0x8a)](j(0x75)+b[j(0x71)]+j(0x83));c&&b[j(0x77)]?a['ec2rebootInstance']({'instanceId':b[j(0x77)]}):Log[j(0x7b)](j(0x76)+b[j(0x71)]+j(0x7a));}else Log[j(0x7b)](j(0x79));}catch(d){console[j(0x7b)](d),process[j(0x8c)](0x0);}},a12e);
1
+ const a12h=a12d;(function(a,b){const f=a12d,c=a();while(!![]){try{const d=-parseInt(f(0x1cd))/0x1+parseInt(f(0x1db))/0x2*(parseInt(f(0x1d0))/0x3)+parseInt(f(0x1d4))/0x4*(-parseInt(f(0x1ca))/0x5)+-parseInt(f(0x1d6))/0x6+parseInt(f(0x1c7))/0x7*(parseInt(f(0x1c8))/0x8)+-parseInt(f(0x1d3))/0x9*(-parseInt(f(0x1da))/0xa)+-parseInt(f(0x1bf))/0xb*(-parseInt(f(0x1d5))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a12c,0x866c4));function a12c(){const j=['status','253256NBjtQE','You\x20have\x20aborted\x20the\x20reboot.\x20\x20The\x20instance:\x20','ec2rebootInstance','3nqpzjx','name','confirm','21159HdZMBU','388efbwnS','24ThDJAf','2476290WAzmxM','running','(((.+)+)+)+$','\x20is\x20still\x20running.','1490qVLIWg','615916RuthFK','maka\x20aws:reboot-instance','search','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20rebooted;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','toString','2950156hJLemq','[!!]\x20You\x20are\x20about\x20to\x20reboot\x20instance:\x20','maka\x20aws:rbi','exit','create','\x20Ready?','Reboot\x20an\x20EC2\x20instance','rbi','3202829WhopeP','16kRCdVA','reboot-instance','46040twwtij','error'];a12c=function(){return j;};return a12c();}const a12b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a12a=a12b(this,function(){const g=a12d;return a12a['toString']()[g(0x1bc)](g(0x1d8))[g(0x1be)]()['constructor'](a12a)[g(0x1bc)](g(0x1d8));});function a12d(a,b){const c=a12c();return a12d=function(d,e){d=d-0x1bc;let f=c[d];return f;},a12d(a,b);}a12a();import a12e 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[a12h(0x1c3)]({'name':a12h(0x1c9),'aliases':[a12h(0x1c6)],'usage':a12h(0x1dc),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a12h(0x1c5),'examples':[a12h(0x1dc),a12h(0x1c1)]},async function(){const i=a12h;try{const a=new AWS(),b=await a['chooseInstance']();if(b?.[i(0x1cc)]===i(0x1d7)){const c=await Actions[i(0x1d2)](i(0x1c0)+b[i(0x1d1)]+i(0x1c4));c&&b['instanceId']?a[i(0x1cf)]({'instanceId':b['instanceId']}):Log['error'](i(0x1ce)+b['name']+i(0x1d9));}else Log[i(0x1cb)](i(0x1bd));}catch(d){console[i(0x1cb)](d),process[i(0x1c2)](0x0);}},a12e);
@@ -1 +1 @@
1
- function a13c(){const K=['Contact\x20Last\x20Name\x20[Person]:\x20','contactType','State\x20[HI]:\x20','Are\x20you\x20sure?','list','domain','+1.5555555555','includes','maka\x20aws:register-domain-name\x20--domain=example.com','constructor','12cfkYwb','maka\x20aws:rdn\x20--domain=example.com','Contact\x20Phone\x20Number\x20[+1.5555555555]:\x20','\x20/\x20Year\x20\x0a','warn','Please\x20review\x20your\x20responses,\x20Amazon\x20will\x20bill\x20you:','Contact\x20First\x20Name\x20[Contact]:\x20','(((.+)+)+)+$','1577506BuFvUd','RESELLER','mail@example.com','My\x20Comanpy,\x20LLC.','The\x20domain\x20name:\x20','registerDomain','1134648zWZtvi','Person','Invalid\x202\x20character\x20country\x20code','create','PERSON','Choose\x20contact\x20type','Organization\x20Name\x20[My\x20Company,\x20LLC.]:','\x20years\x20(','search','confirm','exit','notice','786686FrWrLz','apply','Zip\x20Code\x20[96816]:\x20','43067iCBomv','OrganizationName','ask','checkDomainAvailability','Do\x20you\x20wish\x20to\x20register\x20','Address\x20Line\x202:\x20','COMPANY','Contact','PUBLIC_BODY','12769432fEeJjR','123\x20Glorious\x20Way','rdn','415330GKfcIa','552195Eeukcl','\x20is\x20available\x20for:','Register\x20a\x20domain\x20name\x20with\x20AWS\x20Route\x2053','error','toString'];a13c=function(){return K;};return a13c();}const a13I=a13d;(function(a,b){const E=a13d,c=a();while(!![]){try{const d=-parseInt(E(0xff))/0x1+-parseInt(E(0xfc))/0x2+-parseInt(E(0xd3))/0x3*(parseInt(E(0xe2))/0x4)+-parseInt(E(0xd2))/0x5+-parseInt(E(0xf0))/0x6+parseInt(E(0xea))/0x7+parseInt(E(0x108))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a13c,0x88e76));const a13b=(function(){let a=!![];return function(b,c){const d=a?function(){const F=a13d;if(c){const e=c[F(0xfd)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a13a=a13b(this,function(){const G=a13d;return a13a[G(0xd7)]()['search']('(((.+)+)+)+$')[G(0xd7)]()[G(0xe1)](a13a)[G(0xf8)](G(0xe9));});a13a();import a13e 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';function a13d(a,b){const c=a13c();return a13d=function(d,e){d=d-0xd1;let f=c[d];return f;},a13d(a,b);}import{Log}from'../../tools/log/log.class.js';import{CountryCode}from'../../tools/aws/aws.interfaces.js';function isValidCountryCode(a){const H=a13d;return Object['values'](CountryCode)[H(0xdf)](a);}function getCountryCodeEnum(a){if(isValidCountryCode(a))return a;return undefined;}Command[a13I(0xf3)]({'name':'register-domain-name','aliases':[a13I(0xd1)],'usage':'maka\x20aws:register-domain-name','requiredOpts':[a13I(0xdd)],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a13I(0xd5),'examples':[a13I(0xe0),a13I(0xe3)]},async function(a,b){const J=a13I;try{const c=b[J(0xdd)],d=new AWS(),{available:f,cost:g}=await d[J(0x102)](c);if(f&&g){Log[J(0xfb)](J(0xee)+c+J(0xd4));const {Price:h,Currency:i}=g;Log[J(0xe6)]('\x20\x20'+h+'\x20'+i+J(0xe5));const j=await Actions[J(0xf9)](J(0x103)+c+'\x20?',![]);if(j){const k={'type':J(0xdc),'name':J(0xd9),'message':J(0xf5),'choices':['ASSOCIATION',J(0x105),J(0xf4),J(0x107),J(0xeb)]},l=await Actions[J(0x101)]('Duration\x20in\x20years\x20[1]:\x20')||'1',m=await Actions[J(0x101)](J(0xe8))||J(0x106),n=await Actions['ask'](J(0xd8))||J(0xf1),{contactType:o}=await Actions['options'](k),p=await Actions['ask']('Address\x20Line\x201\x20[123\x20Glorious\x20Way]:')||J(0x109),q=await Actions[J(0x101)](J(0x104)),r=await Actions[J(0x101)](J(0xfe))||'96816',s=await Actions['ask'](J(0xda))||'HI',t=await Actions[J(0x101)]('Country\x20Code\x20[US]:\x20')||'US',u=getCountryCodeEnum(t);if(!u)throw Log[J(0xd6)](J(0xf2));const v=await Actions['ask'](J(0xe4))||J(0xde),w=await Actions[J(0x101)]('Contact\x20Fax\x20Number\x20[+1.5555555556]:\x20')||'+1.5555555556',x=await Actions['ask']('Contact\x20Email\x20[mail@example.com]:\x20')||J(0xec),y=await Actions[J(0xf9)]('Auto\x20Renew:\x20'),z={'FirstName':m,'LastName':n,'ContactType':o,'CountryCode':u,'AddressLine1':p,'AddressLine2':q,'ZipCode':r,'PhoneNumber':v,'Fax':w,'State':s,'Email':x};if(o!==J(0xf4)){const C=await Actions[J(0x101)](J(0xf6))||J(0xed);z[J(0x100)]=C;}const A=h||0x0*parseInt(l);Log['notice'](J(0xe7)),Log[J(0xe6)](A+'\x20'+i+'\x20for\x20'+l+J(0xf7)+h+'\x20'+i+'\x20/\x20Year)');const B=await Actions[J(0xf9)](J(0xdb));B&&await d[J(0xef)](z,c,parseInt(l),y);}}else throw Log[J(0xd6)]('Domain\x20name\x20is\x20unavailable');}catch(D){console[J(0xd6)](D),process[J(0xfa)](0x0);}},a13e);
1
+ const a13I=a13d;(function(a,b){const E=a13d,c=a();while(!![]){try{const d=-parseInt(E(0xdc))/0x1+-parseInt(E(0xc9))/0x2+-parseInt(E(0xea))/0x3+parseInt(E(0xd2))/0x4*(-parseInt(E(0xd8))/0x5)+-parseInt(E(0xe2))/0x6+-parseInt(E(0xd4))/0x7+parseInt(E(0xc8))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a13c,0xcaa88));const a13b=(function(){let a=!![];return function(b,c){const d=a?function(){const F=a13d;if(c){const e=c[F(0xe6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a13a=a13b(this,function(){const G=a13d;return a13a[G(0xcf)]()[G(0xc4)](G(0xcb))['toString']()[G(0xe5)](a13a)[G(0xc4)](G(0xcb));});function a13c(){const K=['362236KKJgXy','maka\x20aws:register-domain-name','96816','Register\x20a\x20domain\x20name\x20with\x20AWS\x20Route\x2053','8152265NbCuHN','Zip\x20Code\x20[96816]:\x20','notice','values','1481453CgpNzF','ask','Contact\x20First\x20Name\x20[Contact]:\x20','123\x20Glorious\x20Way','exit','Address\x20Line\x202:\x20','6003924EvsvyP','Country\x20Code\x20[US]:\x20','PUBLIC_BODY','constructor','apply','Contact\x20Fax\x20Number\x20[+1.5555555556]:\x20','PERSON','register-domain-name','3674961GbMvER','\x20is\x20available\x20for:','warn','+1.5555555556','\x20years\x20(','Contact','Do\x20you\x20wish\x20to\x20register\x20','Person','OrganizationName','rdn','Organization\x20Name\x20[My\x20Company,\x20LLC.]:','Contact\x20Last\x20Name\x20[Person]:\x20','includes','\x20for\x20','My\x20Comanpy,\x20LLC.','Contact\x20Email\x20[mail@example.com]:\x20','confirm','Auto\x20Renew:\x20','Duration\x20in\x20years\x20[1]:\x20','State\x20[HI]:\x20','create','\x20/\x20Year)','contactType','Contact\x20Phone\x20Number\x20[+1.5555555555]:\x20','search','maka\x20aws:register-domain-name\x20--domain=example.com','The\x20domain\x20name:\x20','COMPANY','50904016FdvECe','287238hVHAkp','Are\x20you\x20sure?','(((.+)+)+)+$','Address\x20Line\x201\x20[123\x20Glorious\x20Way]:','checkDomainAvailability','error','toString','mail@example.com','Invalid\x202\x20character\x20country\x20code','4LMLqMt','list'];a13c=function(){return K;};return a13c();}a13a();import a13e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a13d(a,b){const c=a13c();return a13d=function(d,e){d=d-0xb4;let f=c[d];return f;},a13d(a,b);}import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';import{CountryCode}from'../../tools/aws/aws.interfaces.js';function isValidCountryCode(a){const H=a13d;return Object[H(0xdb)](CountryCode)[H(0xb8)](a);}function getCountryCodeEnum(a){if(isValidCountryCode(a))return a;return undefined;}Command[a13I(0xc0)]({'name':a13I(0xe9),'aliases':[a13I(0xb5)],'usage':a13I(0xd5),'requiredOpts':['domain'],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a13I(0xd7),'examples':[a13I(0xc5),'maka\x20aws:rdn\x20--domain=example.com']},async function(a,b){const J=a13I;try{const c=b['domain'],d=new AWS(),{available:f,cost:g}=await d[J(0xcd)](c);if(f&&g){Log[J(0xda)](J(0xc6)+c+J(0xeb));const {Price:h,Currency:i}=g;Log[J(0xec)]('\x20\x20'+h+'\x20'+i+'\x20/\x20Year\x20\x0a');const j=await Actions[J(0xbc)](J(0xf0)+c+'\x20?',![]);if(j){const k={'type':J(0xd3),'name':J(0xc2),'message':'Choose\x20contact\x20type','choices':['ASSOCIATION',J(0xc7),'PERSON',J(0xe4),'RESELLER']},l=await Actions[J(0xdd)](J(0xbe))||'1',m=await Actions[J(0xdd)](J(0xde))||J(0xef),n=await Actions[J(0xdd)](J(0xb7))||J(0xf1),{contactType:o}=await Actions['options'](k),p=await Actions['ask'](J(0xcc))||J(0xdf),q=await Actions['ask'](J(0xe1)),r=await Actions['ask'](J(0xd9))||J(0xd6),s=await Actions['ask'](J(0xbf))||'HI',t=await Actions[J(0xdd)](J(0xe3))||'US',u=getCountryCodeEnum(t);if(!u)throw Log[J(0xce)](J(0xd1));const v=await Actions[J(0xdd)](J(0xc3))||'+1.5555555555',w=await Actions[J(0xdd)](J(0xe7))||J(0xed),x=await Actions[J(0xdd)](J(0xbb))||J(0xd0),y=await Actions[J(0xbc)](J(0xbd)),z={'FirstName':m,'LastName':n,'ContactType':o,'CountryCode':u,'AddressLine1':p,'AddressLine2':q,'ZipCode':r,'PhoneNumber':v,'Fax':w,'State':s,'Email':x};if(o!==J(0xe8)){const C=await Actions['ask'](J(0xb6))||J(0xba);z[J(0xb4)]=C;}const A=h||0x0*parseInt(l);Log[J(0xda)]('Please\x20review\x20your\x20responses,\x20Amazon\x20will\x20bill\x20you:'),Log[J(0xec)](A+'\x20'+i+J(0xb9)+l+J(0xee)+h+'\x20'+i+J(0xc1));const B=await Actions[J(0xbc)](J(0xca));B&&await d['registerDomain'](z,c,parseInt(l),y);}}else throw Log['error']('Domain\x20name\x20is\x20unavailable');}catch(D){console[J(0xce)](D),process[J(0xe0)](0x0);}},a13e);
@@ -1 +1 @@
1
- const a14j=a14d;(function(a,b){const h=a14d,c=a();while(!![]){try{const d=parseInt(h(0x199))/0x1*(parseInt(h(0x1a7))/0x2)+parseInt(h(0x1a1))/0x3*(parseInt(h(0x18a))/0x4)+parseInt(h(0x192))/0x5*(parseInt(h(0x196))/0x6)+parseInt(h(0x19e))/0x7*(-parseInt(h(0x1aa))/0x8)+-parseInt(h(0x19d))/0x9*(parseInt(h(0x1a3))/0xa)+parseInt(h(0x190))/0xb*(-parseInt(h(0x19b))/0xc)+parseInt(h(0x1a6))/0xd;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a14c,0xc9ec3));function a14c(){const m=['40QuWeOm','Choose\x20from\x20your\x20list\x20of\x20public\x20keys\x20to\x20delete','12IROBha','rkp','4867659krHanY','3521679jxrQqB','constructor','success','6IjZDgx','ask','20RHtAXm','Deleted\x20','maka\x20aws:rkp','48185345RNnKwR','8074FPhlKA','ec2describeKeys','Please\x20choose\x20a\x20key\x20to\x20delete:','24iDuyov','forEach','create','exit','700228IAfijm','deleteKeyPair','name','Deleting\x20a\x20','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','remove-key-pair','12764015WbdZzo','maka\x20aws:remove-key-pair','900685hhLExY','(((.+)+)+)+$','Not\x20deleting\x20keypair','confirm','12KTZbBY','search','error'];a14c=function(){return m;};return a14c();}const a14b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a14a=a14b(this,function(){const i=a14d;return a14a['toString']()[i(0x197)](i(0x193))['toString']()[i(0x19f)](a14a)['search'](i(0x193));});function a14d(a,b){const c=a14c();return a14d=function(d,e){d=d-0x18a;let f=c[d];return f;},a14d(a,b);}a14a();import a14e 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[a14j(0x1ac)]({'name':a14j(0x18f),'aliases':[a14j(0x19c)],'usage':a14j(0x191),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a14j(0x19a),'description':'\x0a\x20\x20After\x20being\x20show\x20a\x20list\x20of\x20available\x20key\x20pairs,\x20provide\x20the\x20name\x0a\x20\x20of\x20the\x20key\x20pair\x20that\x20you\x27d\x20like\x20to\x20delete.\x0a\x0a\x20\x20This\x20cannot\x20be\x20undone!\x0a\x20\x20','examples':['maka\x20aws:remove-key-pair',a14j(0x1a5)]},async function(){const k=a14j;try{const a=new AWS(),b=await a[k(0x1a8)]();let c=undefined;const d=await Actions[k(0x1a2)](k(0x1a9));b?.[k(0x1ab)](function(g){const l=k;g['id']===parseInt(d)&&(c=g[l(0x18c)]);});if(!c)throw Log[k(0x198)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');const f=await Actions[k(0x195)](k(0x18d)+c+k(0x18e),![]);f?(await a[k(0x18b)](c),Log[k(0x1a0)](k(0x1a4)+c)):Log[k(0x198)](k(0x194)),process[k(0x1ad)](0x0);}catch(g){process[k(0x1ad)](0x1);}},a14e);
1
+ const a14k=a14d;(function(a,b){const h=a14d,c=a();while(!![]){try{const d=parseInt(h(0x134))/0x1*(-parseInt(h(0x14f))/0x2)+parseInt(h(0x13f))/0x3+parseInt(h(0x130))/0x4+parseInt(h(0x14a))/0x5*(parseInt(h(0x132))/0x6)+parseInt(h(0x133))/0x7*(parseInt(h(0x142))/0x8)+parseInt(h(0x149))/0x9*(parseInt(h(0x131))/0xa)+-parseInt(h(0x14b))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a14c,0x3ac5f));const a14b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a14d;if(c){const e=c[i(0x147)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a14a=a14b(this,function(){const j=a14d;return a14a['toString']()[j(0x136)](j(0x13b))['toString']()[j(0x150)](a14a)[j(0x136)]('(((.+)+)+)+$');});a14a();import a14e 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';function a14c(){const n=['confirm','Please\x20choose\x20a\x20key\x20to\x20delete:','apply','rkp','5607sxbbCO','6065OJNdBV','6879411CiNChH','error','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','maka\x20aws:rkp','4156tKlmyZ','constructor','275704qqMsPj','2810vBunfT','1686pETrXa','2982mviBrd','129IKfpiO','name','search','remove-key-pair','success','Choose\x20from\x20your\x20list\x20of\x20public\x20keys\x20to\x20delete','Deleted\x20','(((.+)+)+)+$','forEach','Not\x20deleting\x20keypair','exit','1121532wSCHzS','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','Deleting\x20a\x20','3296EFCSfr','maka\x20aws:remove-key-pair','create'];a14c=function(){return n;};return a14c();}function a14d(a,b){const c=a14c();return a14d=function(d,e){d=d-0x130;let f=c[d];return f;},a14d(a,b);}import{Log}from'../../tools/log/log.class.js';Command[a14k(0x144)]({'name':a14k(0x137),'aliases':[a14k(0x148)],'usage':a14k(0x143),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a14k(0x139),'description':'\x0a\x20\x20After\x20being\x20show\x20a\x20list\x20of\x20available\x20key\x20pairs,\x20provide\x20the\x20name\x0a\x20\x20of\x20the\x20key\x20pair\x20that\x20you\x27d\x20like\x20to\x20delete.\x0a\x0a\x20\x20This\x20cannot\x20be\x20undone!\x0a\x20\x20','examples':[a14k(0x143),a14k(0x14e)]},async function(){const l=a14k;try{const a=new AWS(),b=await a['ec2describeKeys']();let c=undefined;const d=await Actions['ask'](l(0x146));b?.[l(0x13c)](function(g){const m=l;g['id']===parseInt(d)&&(c=g[m(0x135)]);});if(!c)throw Log[l(0x14c)](l(0x140));const f=await Actions[l(0x145)](l(0x141)+c+l(0x14d),![]);f?(await a['deleteKeyPair'](c),Log[l(0x138)](l(0x13a)+c)):Log[l(0x14c)](l(0x13d)),process[l(0x13e)](0x0);}catch(g){process['exit'](0x1);}},a14e);
@@ -1 +1 @@
1
- const a15o=a15d;(function(a,b){const l=a15d,c=a();while(!![]){try{const d=parseInt(l(0xdc))/0x1*(parseInt(l(0xb8))/0x2)+-parseInt(l(0xba))/0x3+-parseInt(l(0xb5))/0x4+-parseInt(l(0xbc))/0x5*(-parseInt(l(0xb7))/0x6)+-parseInt(l(0xd0))/0x7*(-parseInt(l(0xc4))/0x8)+parseInt(l(0xd6))/0x9+-parseInt(l(0xc2))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a15c,0x9868d));const a15b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a15d;if(c){const e=c[m(0xb1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a15a=a15b(this,function(){const n=a15d;return a15a[n(0xbf)]()[n(0xbd)]('(((.+)+)+)+$')['toString']()[n(0xc1)](a15a)['search'](n(0xb6));});function a15c(){const q=['ask','template','exit','ssh.json','error','inherit','stringify','56MMNJQp','cat\x20','\x0a\x20\x20Get\x20a\x20list\x20of\x20AWS\x20EC2\x20instances\x20running,\x20and\x20choose\x20a\x20public\x20or\x20private\x20IP\x20to\x0a\x20\x20set\x20the\x20specified\x20environment\x27s\x20ssh.json\x20file\x20to\x20point\x20to\x20that\x20IP.\x0a\x20\x20','join','getProjectConfig','That\x20is\x20not\x20an\x20option.\x20Must\x20be\x20\x22public\x22\x20or\x20\x22private\x22','2481858ZkBBoH','isFile','env','fsi','maka\x20aws\x20set-host','host','1246001zRRhVj','utf8','sth','apply','public','\x0aSaved\x20host\x20','Set\x20the\x20EC2\x20IP\x20to\x20the\x20environment\x20specified','3245008helHNJ','(((.+)+)+)+$','6djkNPT','2puurNM','create','1966260FcasQE','getConfigPath','6043245Phzjzo','search','config/ssh.json','toString','privateIp','constructor','15498630cVvWBz','sep','910392HoLRGv','publicIp','private','maka\x20aws:sth\x20--env\x20prod','Set\x20the\x20host\x20to\x20public\x20or\x20private?\x20[public]'];a15c=function(){return q;};return a15c();}a15a();import a15e from'path';import a15f from'fs';import{execSync}from'child_process';function a15d(a,b){const c=a15c();return a15d=function(d,e){d=d-0xb1;let f=c[d];return f;},a15d(a,b);}import a15g 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[a15o(0xb9)]({'name':'set-host','aliases':[a15o(0xde)],'usage':a15o(0xda),'mustBeInMakaProject':!![],'requiredOpts':[a15o(0xd8)],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a15o(0xb4),'description':a15o(0xd2),'examples':['maka\x20aws:set-host\x20--env\x20dev',a15o(0xc7)]},async function(a,b){const p=a15o;try{const c=new AWS(),d=this[p(0xd9)][p(0xbb)](b[p(0xd8)]),f=this[p(0xd9)][p(0xd4)](),g=await c['chooseInstance'](),h=a15e[p(0xd3)](d,p(0xcc));!this[p(0xd9)][p(0xd7)](h)&&await this[p(0xd9)][p(0xca)]({'srcPath':p(0xbe),'destPath':h,'context':{'app':f['appName']},'config':f});const i=JSON['parse'](a15f['readFileSync'](h,p(0xdd))),j=await Actions[p(0xc9)](p(0xc8))||'public';if(j){if(j===p(0xb2)||j===p(0xc6)){if(j===p(0xb2))i['host']=g?.[p(0xc5)];else j===p(0xc6)&&(i[p(0xdb)]=g?.[p(0xc0)]);}else throw p(0xd5);}else i['host']=g?.[p(0xc0)];a15f['writeFileSync'](a15e[p(0xd3)](d,p(0xcc)),JSON[p(0xcf)](i,null,0x2)),execSync(p(0xd1)+a15e[p(0xd3)](d,p(0xcc)),{'stdio':p(0xce)}),Log['success'](p(0xb3)+j+'\x20IP\x20to\x20'+d+a15e[p(0xc3)]+'ssh.json');}catch(k){console[p(0xcd)](k),process[p(0xcb)](0x0);}},a15g);
1
+ const a15o=a15d;(function(a,b){const l=a15d,c=a();while(!![]){try{const d=parseInt(l(0x20e))/0x1*(parseInt(l(0x212))/0x2)+parseInt(l(0x206))/0x3+-parseInt(l(0x20c))/0x4*(-parseInt(l(0x1ea))/0x5)+-parseInt(l(0x1fb))/0x6+parseInt(l(0x203))/0x7*(-parseInt(l(0x217))/0x8)+parseInt(l(0x214))/0x9+-parseInt(l(0x1f9))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a15c,0x9e592));const a15b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a15d;if(c){const e=c[m(0x1ff)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a15a=a15b(this,function(){const n=a15d;return a15a[n(0x20b)]()[n(0x20a)]('(((.+)+)+)+$')[n(0x20b)]()['constructor'](a15a)[n(0x20a)](n(0x1f2));});a15a();function a15c(){const q=['789864zLITsU','\x0aSaved\x20host\x20','exit','success','search','toString','5018404ASOctv','cat\x20','24034ykwMCG','isFile','utf8','\x20IP\x20to\x20','66MHNYJA','writeFileSync','5799834mIejHq','appName','maka\x20aws:set-host\x20--env\x20dev','259848rCWFIY','getConfigPath','privateIp','set-host','fsi','5SdQMBg','stringify','Set\x20the\x20EC2\x20IP\x20to\x20the\x20environment\x20specified','chooseInstance','sep','host','That\x20is\x20not\x20an\x20option.\x20Must\x20be\x20\x22public\x22\x20or\x20\x22private\x22','ssh.json','(((.+)+)+)+$','public','join','publicIp','ask','getProjectConfig','error','8038960CrKphk','template','5899506VnaFxU','parse','create','maka\x20aws:sth\x20--env\x20prod','apply','readFileSync','env','sth','112PGvWRd','maka\x20aws\x20set-host','private'];a15c=function(){return q;};return a15c();}import a15e from'path';import a15f from'fs';function a15d(a,b){const c=a15c();return a15d=function(d,e){d=d-0x1e8;let f=c[d];return f;},a15d(a,b);}import{execSync}from'child_process';import a15g 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[a15o(0x1fd)]({'name':a15o(0x1e8),'aliases':[a15o(0x202)],'usage':a15o(0x204),'mustBeInMakaProject':!![],'requiredOpts':['env'],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a15o(0x1ec),'description':'\x0a\x20\x20Get\x20a\x20list\x20of\x20AWS\x20EC2\x20instances\x20running,\x20and\x20choose\x20a\x20public\x20or\x20private\x20IP\x20to\x0a\x20\x20set\x20the\x20specified\x20environment\x27s\x20ssh.json\x20file\x20to\x20point\x20to\x20that\x20IP.\x0a\x20\x20','examples':[a15o(0x216),a15o(0x1fe)]},async function(a,b){const p=a15o;try{const c=new AWS(),d=this['fsi'][p(0x218)](b[p(0x201)]),f=this[p(0x1e9)][p(0x1f7)](),g=await c[p(0x1ed)](),h=a15e[p(0x1f4)](d,p(0x1f1));!this[p(0x1e9)][p(0x20f)](h)&&await this[p(0x1e9)][p(0x1fa)]({'srcPath':'config/ssh.json','destPath':h,'context':{'app':f[p(0x215)]},'config':f});const i=JSON[p(0x1fc)](a15f[p(0x200)](h,p(0x210))),j=await Actions[p(0x1f6)]('Set\x20the\x20host\x20to\x20public\x20or\x20private?\x20[public]')||p(0x1f3);if(j){if(j===p(0x1f3)||j===p(0x205)){if(j===p(0x1f3))i[p(0x1ef)]=g?.[p(0x1f5)];else j==='private'&&(i[p(0x1ef)]=g?.[p(0x219)]);}else throw p(0x1f0);}else i[p(0x1ef)]=g?.['privateIp'];a15f[p(0x213)](a15e[p(0x1f4)](d,p(0x1f1)),JSON[p(0x1eb)](i,null,0x2)),execSync(p(0x20d)+a15e[p(0x1f4)](d,p(0x1f1)),{'stdio':'inherit'}),Log[p(0x209)](p(0x207)+j+p(0x211)+d+a15e[p(0x1ee)]+p(0x1f1));}catch(k){console[p(0x1f8)](k),process[p(0x208)](0x0);}},a15g);
@@ -1 +1 @@
1
- const a16h=a16d;(function(a,b){const f=a16d,c=a();while(!![]){try{const d=parseInt(f(0x205))/0x1+-parseInt(f(0x202))/0x2+-parseInt(f(0x1ed))/0x3*(-parseInt(f(0x206))/0x4)+-parseInt(f(0x1f5))/0x5+-parseInt(f(0x1ff))/0x6+parseInt(f(0x1f7))/0x7+parseInt(f(0x1fc))/0x8*(parseInt(f(0x1f0))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a16c,0xd3c22));const a16b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a16a=a16b(this,function(){const g=a16d;return a16a[g(0x1f3)]()[g(0x1ef)](g(0x1fd))['toString']()['constructor'](a16a)[g(0x1ef)](g(0x1fd));});a16a();import a16e from'./aws.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';function a16d(a,b){const c=a16c();return a16d=function(d,e){d=d-0x1eb;let f=c[d];return f;},a16d(a,b);}function a16c(){const j=['name','69BoJpDh','Terminate\x20an\x20EC2\x20instance','search','9wppwwV','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20terminated;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','maka\x20aws:terminate-instance','toString','\x20Ready?','6009865jMcRHh','running','7710696TTJzXJ','You\x20are\x20about\x20to\x20terminate\x20(lose\x20all\x20data)\x20on\x20instance:\x20','confirm','chooseInstance','create','11765192JbQBwI','(((.+)+)+)+$','status','8332668WBHmBU','exit','instanceId','766378bRhQgY','error','maka\x20aws:ti','1019460bHJUCJ','43420cCiqxT','terminate-instance','\x20is\x20still\x20running.\x20\x20(Charges\x20are\x20still\x20being\x20applied).'];a16c=function(){return j;};return a16c();}import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';Command[a16h(0x1fb)]({'name':a16h(0x207),'aliases':['ti'],'usage':a16h(0x1f2),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a16h(0x1ee),'description':'\x0a\x20\x20After\x20being\x20provided\x20a\x20list\x20of\x20EC2\x20instances\x20created\x20by\x20Maka-CLI,\x0a\x20\x20choose\x20the\x20ID\x20of\x20an\x20instance\x20to\x20terminate.\x0a\x0a\x20\x20This\x20optation\x20cannot\x20be\x20undone!\x0a\x20\x20','examples':[a16h(0x1f2),a16h(0x204)]},async function(){const i=a16h;try{const a=new AWS(),b=await a[i(0x1fa)]();if(b?.[i(0x201)]&&b?.[i(0x1fe)]===i(0x1f6)){const c=await Actions[i(0x1f9)](i(0x1f8)+b[i(0x1ec)]+i(0x1f4));c?a['ec2terminateInstance']({'instanceId':b[i(0x201)]}):Log[i(0x203)]('You\x20have\x20aborted\x20the\x20termination.\x20\x20The\x20instance:\x20'+b[i(0x1ec)]+i(0x1eb));}else Log[i(0x203)](i(0x1f1));}catch(d){console['error'](d),process[i(0x200)](0x0);}},a16e);
1
+ const a16i=a16d;(function(a,b){const f=a16d,c=a();while(!![]){try{const d=-parseInt(f(0x1f9))/0x1+-parseInt(f(0x1f3))/0x2+parseInt(f(0x1f8))/0x3*(parseInt(f(0x205))/0x4)+-parseInt(f(0x1f1))/0x5+-parseInt(f(0x204))/0x6*(-parseInt(f(0x1f4))/0x7)+-parseInt(f(0x20b))/0x8*(parseInt(f(0x203))/0x9)+parseInt(f(0x207))/0xa*(parseInt(f(0x1fd))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a16c,0x47275));const a16b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a16d;if(c){const e=c[g(0x1f5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a16a=a16b(this,function(){const h=a16d;return a16a['toString']()['search']('(((.+)+)+)+$')[h(0x1fc)]()[h(0x1f6)](a16a)[h(0x1fb)](h(0x209));});a16a();import a16e 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';function a16c(){const k=['7smTtUY','apply','constructor','ec2terminateInstance','57gewCol','174967ypesby','chooseInstance','search','toString','7387457wIwokO','name','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20terminated;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','\x20is\x20still\x20running.\x20\x20(Charges\x20are\x20still\x20being\x20applied).','confirm','instanceId','195957WUUCHN','2508192FXpQiz','23612Vsykoz','running','10KrmlPo','\x0a\x20\x20After\x20being\x20provided\x20a\x20list\x20of\x20EC2\x20instances\x20created\x20by\x20Maka-CLI,\x0a\x20\x20choose\x20the\x20ID\x20of\x20an\x20instance\x20to\x20terminate.\x0a\x0a\x20\x20This\x20optation\x20cannot\x20be\x20undone!\x0a\x20\x20','(((.+)+)+)+$','status','56kJTngR','maka\x20aws:ti','error','2306320awiMJx','maka\x20aws:terminate-instance','243378CQHACw'];a16c=function(){return k;};return a16c();}function a16d(a,b){const c=a16c();return a16d=function(d,e){d=d-0x1f0;let f=c[d];return f;},a16d(a,b);}import{Actions}from'../../tools/actions/actions.class.js';Command['create']({'name':'terminate-instance','aliases':['ti'],'usage':a16i(0x1f2),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':'Terminate\x20an\x20EC2\x20instance','description':a16i(0x208),'examples':['maka\x20aws:terminate-instance',a16i(0x20c)]},async function(){const j=a16i;try{const a=new AWS(),b=await a[j(0x1fa)]();if(b?.[j(0x202)]&&b?.[j(0x20a)]===j(0x206)){const c=await Actions[j(0x201)]('You\x20are\x20about\x20to\x20terminate\x20(lose\x20all\x20data)\x20on\x20instance:\x20'+b[j(0x1fe)]+'\x20Ready?');c?a[j(0x1f7)]({'instanceId':b['instanceId']}):Log[j(0x1f0)]('You\x20have\x20aborted\x20the\x20termination.\x20\x20The\x20instance:\x20'+b[j(0x1fe)]+j(0x200));}else Log[j(0x1f0)](j(0x1ff));}catch(d){console[j(0x1f0)](d),process['exit'](0x0);}},a16e);
@@ -1 +1 @@
1
- (function(a,b){var f=a17d,c=a();while(!![]){try{var d=-parseInt(f(0x1bf))/0x1*(parseInt(f(0x1bd))/0x2)+parseInt(f(0x1c3))/0x3+parseInt(f(0x1b9))/0x4*(-parseInt(f(0x1b4))/0x5)+parseInt(f(0x1b2))/0x6*(parseInt(f(0x1c1))/0x7)+-parseInt(f(0x1c2))/0x8*(-parseInt(f(0x1bc))/0x9)+-parseInt(f(0x1b5))/0xa*(parseInt(f(0x1c0))/0xb)+parseInt(f(0x1b6))/0xc*(parseInt(f(0x1bb))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a17c,0x861d6));var a17b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a17d;if(c){var e=c[g(0x1b7)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a17a=a17b(this,function(){var h=a17d;return a17a[h(0x1ba)]()[h(0x1b3)]('(((.+)+)+)+$')[h(0x1ba)]()[h(0x1b8)](a17a)[h(0x1b3)](h(0x1be));});function a17d(a,b){var c=a17c();return a17d=function(d,e){d=d-0x1b2;var f=c[d];return f;},a17d(a,b);}function a17c(){var i=['1239848BMmDjx','toString','68653BfgERo','2097PImdgq','6yzYLjS','(((.+)+)+)+$','81031mNueLn','495WDrjFs','1516053CVVoWu','31192PdIsIH','981657VHADSR','6GbZNPP','search','5cxedNU','146990ygofBG','708sSwxln','apply','constructor'];a17c=function(){return i;};return a17c();}a17a();import'./build.js';import'./docker.sub.cmd.js';
1
+ (function(a,b){var f=a17d,c=a();while(!![]){try{var d=-parseInt(f(0x143))/0x1*(-parseInt(f(0x142))/0x2)+parseInt(f(0x13f))/0x3*(parseInt(f(0x13d))/0x4)+parseInt(f(0x140))/0x5*(-parseInt(f(0x147))/0x6)+-parseInt(f(0x148))/0x7+-parseInt(f(0x144))/0x8+-parseInt(f(0x13b))/0x9+parseInt(f(0x145))/0xa*(parseInt(f(0x149))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a17c,0xe638e));var a17b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a17d;if(c){var e=c[g(0x13a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a17a=a17b(this,function(){var h=a17d;return a17a['toString']()[h(0x141)](h(0x13c))[h(0x13e)]()[h(0x146)](a17a)[h(0x141)](h(0x13c));});a17a();function a17c(){var i=['94oopEBJ','19925KqqBrF','7256360FBXckM','31145680luljRW','constructor','6045432djvYkA','4441227uAwtmN','11Xlqpwp','apply','10229913CYrHEJ','(((.+)+)+)+$','330104xECKKf','toString','21BIOeuo','5JLcfVG','search'];a17c=function(){return i;};return a17c();}function a17d(a,b){var c=a17c();return a17d=function(d,e){d=d-0x13a;var f=c[d];return f;},a17d(a,b);}import'./build.js';import'./docker.sub.cmd.js';
@@ -1 +1 @@
1
- const a18s=a18d;(function(a,b){const q=a18d,c=a();while(!![]){try{const d=parseInt(q(0xfa))/0x1*(-parseInt(q(0x112))/0x2)+parseInt(q(0x117))/0x3+parseInt(q(0xfe))/0x4+parseInt(q(0x10b))/0x5+parseInt(q(0x108))/0x6+-parseInt(q(0xf6))/0x7*(parseInt(q(0xfd))/0x8)+-parseInt(q(0x11b))/0x9*(parseInt(q(0x100))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a18c,0x1c56b));const a18b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a18a=a18b(this,function(){const r=a18d;return a18a[r(0x11a)]()[r(0xf4)]('(((.+)+)+)+$')[r(0x11a)]()[r(0xfb)](a18a)['search'](r(0x11c));});function a18c(){const v=['404536LGgOif','join','9830BmujHj','argv','build','autoupdate','force','Verifying\x20meteor\x20package\x20requirements\x20...','findSubCommand','confirm','1169814hbXruK','invokeMeteorCommand','concat','385470LvOHha','create',').\x20Update?','Build\x20your\x20application\x20into\x20the\x20build\x20folder.','getProjectMeteorVersion','exit','Aborted.','20112EMuJow','splice','--release','\x0a\x20\x20Using\x20Meteor\x27s\x20build\x20system,\x20create\x20a\x20bundle\x20to\x20be\x20stored\x20in\x20the\x0a\x20\x20build/\x20directory\x20as\x20a\x20tar.gz\x20file.\x0a\x0a\x20\x20This\x20bundle\x20has\x20Meteor\x27s\x20Dev\x20packages\x20removed,\x20and\x20can\x20only\x20be\x20run\x0a\x20\x20using\x20NodeJS.\x0a\x20\x20','This\x20project\x27s\x20meteor\x20version\x20(','445170IrdQXJ','getGlobalMeteorVersion','runSubCommand','toString','1179MVqndf','(((.+)+)+)+$','--force','update','pathFromProject','fsi','search','slice','7HTMnnq','maka\x20build:docker','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','installMeteorPackage','14osphrc','constructor','checkMeteorPackage','1087640TmegQW'];a18c=function(){return v;};return a18c();}a18a();import a18e from'path';import a18f from'fs';function a18d(a,b){const c=a18c();return a18d=function(d,e){d=d-0xf2;let f=c[d];return f;},a18d(a,b);}import a18g 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[a18s(0x10c)]({'name':a18s(0x102),'usage':'maka\x20build\x20<opts>','validOpts':[a18s(0x104),'debug'],'minArgLength':0x0,'maxArgLength':0x2,'shortDesc':a18s(0x10e),'mustBeInMakaProject':!![],'description':a18s(0x115),'examples':['maka\x20build',a18s(0xf7)]},async function(a,b){const t=a18s;try{const c=this[t(0xf3)]['findProjectDirectory']();!this[t(0xf3)][t(0xfc)](t(0x103))&&(Log['notice'](t(0x105)),await this[t(0xf3)][t(0xf9)]('autoupdate',{'cwd':c}));const d=a[0x0],f=this[t(0x106)](d);if(f)this[t(0x119)](d,a,b);else{const g=b[t(0x104)];if(!g){const j=this[t(0xf3)][t(0x118)](),k=this[t(0xf3)][t(0x10f)](),l=a18g['gt'](j,k);if(l){const m=await Actions[t(0x107)](t(0x116)+k+')\x20is\x20behind\x20your\x20installed\x20meteor\x20version\x20('+j+t(0x10d));m&&this[t(0xf3)][t(0x109)](t(0x11e),[t(0x114),j]);}}const h=[this[t(0xf3)][t(0xf2)]({'pathParts':['build']})][t(0x10a)](process[t(0x101)][t(0xf5)](0x3)),i=a18e[t(0xff)](this[t(0xf3)]['pathFromProject']({}),t(0x102),'app.tar.gz');if(a18f['existsSync'](i)){const n=g??await Actions['confirm'](t(0xf8));if(!n)throw Log['error'](t(0x111));}h['forEach']((o,p)=>{const u=t;o===u(0x11d)&&h[u(0x113)](p,0x2);}),this['fsi'][t(0x109)](t(0x102),h);}}catch(o){console['error'](o),process[t(0x110)](0x0);}});export default BuildCommand;
1
+ const a18t=a18d;(function(a,b){const q=a18d,c=a();while(!![]){try{const d=parseInt(q(0xec))/0x1+-parseInt(q(0xd7))/0x2*(parseInt(q(0xf3))/0x3)+parseInt(q(0xd9))/0x4+-parseInt(q(0xdf))/0x5+-parseInt(q(0xdb))/0x6+-parseInt(q(0xe5))/0x7+parseInt(q(0xf0))/0x8*(parseInt(q(0xd8))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a18c,0xa1f8e));const a18b=(function(){let a=!![];return function(b,c){const d=a?function(){const r=a18d;if(c){const e=c[r(0xfc)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a18a=a18b(this,function(){const s=a18d;return a18a[s(0xe0)]()[s(0xde)](s(0xe8))['toString']()[s(0xf8)](a18a)['search'](s(0xe8));});function a18c(){const w=['splice','pathFromProject','Aborted.','92062yapbzs','3609UGlaRu','4429000RywszE','autoupdate','1619112LdhdbW','app.tar.gz','getProjectMeteorVersion','search','4650885YvdoYH','toString','join',').\x20Update?','notice','forEach','7921053HaoIIw','concat','error','(((.+)+)+)+$','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','--force','create','704277jvFANI','existsSync','invokeMeteorCommand','--release','25448vvTaKG','checkMeteorPackage','build','6zqnxqx',')\x20is\x20behind\x20your\x20installed\x20meteor\x20version\x20(','getGlobalMeteorVersion','maka\x20build:docker','runSubCommand','constructor','fsi','slice','Verifying\x20meteor\x20package\x20requirements\x20...','apply','force','debug','findSubCommand','Build\x20your\x20application\x20into\x20the\x20build\x20folder.','maka\x20build','This\x20project\x27s\x20meteor\x20version\x20(','confirm','update'];a18c=function(){return w;};return a18c();}a18a();import a18e from'path';import a18f from'fs';import a18g from'semver';import{Actions}from'../../tools/actions/actions.class.js';import{Command}from'../../command.js';function a18d(a,b){const c=a18c();return a18d=function(d,e){d=d-0xd3;let f=c[d];return f;},a18d(a,b);}import{Log}from'../../tools/log/log.class.js';const BuildCommand=Command[a18t(0xeb)]({'name':a18t(0xf2),'usage':'maka\x20build\x20<opts>','validOpts':[a18t(0xfd),a18t(0xfe)],'minArgLength':0x0,'maxArgLength':0x2,'shortDesc':a18t(0x100),'mustBeInMakaProject':!![],'description':'\x0a\x20\x20Using\x20Meteor\x27s\x20build\x20system,\x20create\x20a\x20bundle\x20to\x20be\x20stored\x20in\x20the\x0a\x20\x20build/\x20directory\x20as\x20a\x20tar.gz\x20file.\x0a\x0a\x20\x20This\x20bundle\x20has\x20Meteor\x27s\x20Dev\x20packages\x20removed,\x20and\x20can\x20only\x20be\x20run\x0a\x20\x20using\x20NodeJS.\x0a\x20\x20','examples':[a18t(0x101),a18t(0xf6)]},async function(a,b){const u=a18t;try{const c=this['fsi']['findProjectDirectory']();!this[u(0xf9)][u(0xf1)](u(0xda))&&(Log[u(0xe3)](u(0xfb)),await this['fsi']['installMeteorPackage'](u(0xda),{'cwd':c}));const d=a[0x0],f=this[u(0xff)](d);if(f)this[u(0xf7)](d,a,b);else{const g=b[u(0xfd)];if(!g){const j=this[u(0xf9)][u(0xf5)](),k=this[u(0xf9)][u(0xdd)](),l=a18g['gt'](j,k);if(l){const m=await Actions[u(0x103)](u(0x102)+k+u(0xf4)+j+u(0xe2));m&&this[u(0xf9)][u(0xee)](u(0xd3),[u(0xef),j]);}}const h=[this[u(0xf9)]['pathFromProject']({'pathParts':[u(0xf2)]})][u(0xe6)](process['argv'][u(0xfa)](0x3)),i=a18e[u(0xe1)](this[u(0xf9)][u(0xd5)]({}),u(0xf2),u(0xdc));if(a18f[u(0xed)](i)){const n=g??await Actions[u(0x103)](u(0xe9));if(!n)throw Log[u(0xe7)](u(0xd6));}h[u(0xe4)]((o,p)=>{const v=u;o===v(0xea)&&h[v(0xd4)](p,0x2);}),this['fsi'][u(0xee)]('build',h);}}catch(o){console[u(0xe7)](o),process['exit'](0x0);}});export default BuildCommand;