@maka/maka-cli 4.12.19 → 4.12.20

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 (158) 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/cecr.sub.cmd.js +1 -1
  8. package/bundle/obf/src/commands/aws/chz.sub.cmd.js +1 -1
  9. package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
  10. package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
  11. package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
  12. package/bundle/obf/src/commands/aws/decr.sub.cmd.js +1 -1
  13. package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
  14. package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
  15. package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
  16. package/bundle/obf/src/commands/aws/lecr.sub.cmd.js +1 -1
  17. package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
  18. package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
  19. package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
  20. package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
  21. package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
  22. package/bundle/obf/src/commands/build/_index.js +1 -1
  23. package/bundle/obf/src/commands/build/build.js +1 -1
  24. package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
  25. package/bundle/obf/src/commands/create.js +1 -1
  26. package/bundle/obf/src/commands/debug.js +1 -1
  27. package/bundle/obf/src/commands/deploy/_index.js +1 -1
  28. package/bundle/obf/src/commands/deploy/deploy.command.js +1 -1
  29. package/bundle/obf/src/commands/deploy/galaxy.sub.cmd.js +1 -1
  30. package/bundle/obf/src/commands/deploy/ubuntu.sub.cmd.js +1 -1
  31. package/bundle/obf/src/commands/game/_index.js +1 -1
  32. package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
  33. package/bundle/obf/src/commands/game/play.command.js +1 -1
  34. package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
  35. package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
  36. package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
  37. package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
  38. package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
  39. package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
  40. package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
  41. package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
  42. package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
  43. package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
  44. package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
  45. package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
  46. package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
  47. package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
  48. package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
  49. package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
  50. package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
  51. package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
  52. package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
  53. package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
  54. package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
  55. package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
  56. package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
  57. package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
  58. package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
  59. package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
  60. package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
  61. package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
  62. package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
  63. package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
  64. package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
  65. package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
  66. package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
  67. package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
  68. package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
  69. package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
  70. package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
  71. package/bundle/obf/src/commands/generate.js +1 -1
  72. package/bundle/obf/src/commands/get/_index.js +1 -1
  73. package/bundle/obf/src/commands/get/get.command.js +1 -1
  74. package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
  75. package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
  76. package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
  77. package/bundle/obf/src/commands/help.js +1 -1
  78. package/bundle/obf/src/commands/install.js +1 -1
  79. package/bundle/obf/src/commands/jsdoc.js +1 -1
  80. package/bundle/obf/src/commands/lint.js +1 -1
  81. package/bundle/obf/src/commands/login.js +1 -1
  82. package/bundle/obf/src/commands/logout.js +1 -1
  83. package/bundle/obf/src/commands/logs.js +1 -1
  84. package/bundle/obf/src/commands/maka.cmd.js +1 -1
  85. package/bundle/obf/src/commands/murder.js +1 -1
  86. package/bundle/obf/src/commands/patreon.js +1 -1
  87. package/bundle/obf/src/commands/profile.js +1 -1
  88. package/bundle/obf/src/commands/proxy.js +1 -1
  89. package/bundle/obf/src/commands/reconfig.js +1 -1
  90. package/bundle/obf/src/commands/register.js +1 -1
  91. package/bundle/obf/src/commands/run/_index.js +1 -1
  92. package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
  93. package/bundle/obf/src/commands/run/run.command.js +1 -1
  94. package/bundle/obf/src/commands/set/_index.js +1 -1
  95. package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
  96. package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
  97. package/bundle/obf/src/commands/set/set.command.js +1 -1
  98. package/bundle/obf/src/commands/ssh.js +1 -1
  99. package/bundle/obf/src/commands/ssl.js +1 -1
  100. package/bundle/obf/src/commands/test.js +1 -1
  101. package/bundle/obf/src/commands/undo.js +1 -1
  102. package/bundle/obf/src/commands/version.js +1 -1
  103. package/bundle/obf/src/error.js +1 -1
  104. package/bundle/obf/src/exec.js +1 -1
  105. package/bundle/obf/src/generator.js +1 -1
  106. package/bundle/obf/src/generators/_index.js +1 -1
  107. package/bundle/obf/src/generators/api.js +1 -1
  108. package/bundle/obf/src/generators/collection.js +1 -1
  109. package/bundle/obf/src/generators/component.js +1 -1
  110. package/bundle/obf/src/generators/config.js +1 -1
  111. package/bundle/obf/src/generators/dbc.js +1 -1
  112. package/bundle/obf/src/generators/dockerfile.js +1 -1
  113. package/bundle/obf/src/generators/hook.js +1 -1
  114. package/bundle/obf/src/generators/kits/_index.js +1 -1
  115. package/bundle/obf/src/generators/kits/auth/_index.js +1 -1
  116. package/bundle/obf/src/generators/kits/auth/auth.generator.js +1 -1
  117. package/bundle/obf/src/generators/kits/auth/basic-meteor.auth.gen.js +1 -1
  118. package/bundle/obf/src/generators/kits/auth/provider.auth.gen.js +1 -1
  119. package/bundle/obf/src/generators/kits/esri/_index.js +1 -1
  120. package/bundle/obf/src/generators/kits/esri/esri.generator.js +1 -1
  121. package/bundle/obf/src/generators/kits/esri/map.esri.gen.js +1 -1
  122. package/bundle/obf/src/generators/kits/kit.js +1 -1
  123. package/bundle/obf/src/generators/kits/mui/_index.js +1 -1
  124. package/bundle/obf/src/generators/kits/mui/auth.mui.gen.js +1 -1
  125. package/bundle/obf/src/generators/kits/mui/frame.mui.gen.js +1 -1
  126. package/bundle/obf/src/generators/kits/mui/mui.generator.js +1 -1
  127. package/bundle/obf/src/generators/layout.js +1 -1
  128. package/bundle/obf/src/generators/maka.gen.js +1 -1
  129. package/bundle/obf/src/generators/methods.js +1 -1
  130. package/bundle/obf/src/generators/package.js +1 -1
  131. package/bundle/obf/src/generators/page.js +1 -1
  132. package/bundle/obf/src/generators/publish.js +1 -1
  133. package/bundle/obf/src/generators/route.js +1 -1
  134. package/bundle/obf/src/generators/service.js +1 -1
  135. package/bundle/obf/src/generators/services/_index.js +1 -1
  136. package/bundle/obf/src/generators/services/openssl.js +1 -1
  137. package/bundle/obf/src/generators/services/translation.js +1 -1
  138. package/bundle/obf/src/maka.js +1 -1
  139. package/bundle/obf/src/tool.js +1 -1
  140. package/bundle/obf/src/tools/actions/actions.class.js +1 -1
  141. package/bundle/obf/src/tools/aws/aws.class.js +1 -1
  142. package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
  143. package/bundle/obf/src/tools/docker/docker.class.js +1 -1
  144. package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
  145. package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
  146. package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
  147. package/bundle/obf/src/tools/https/https.class.js +1 -1
  148. package/bundle/obf/src/tools/https/https.interface.js +1 -1
  149. package/bundle/obf/src/tools/log/log.class.js +1 -1
  150. package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
  151. package/bundle/obf/src/tools/options/options.class.js +1 -1
  152. package/bundle/obf/src/tools/progress/progress.class.js +1 -1
  153. package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
  154. package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
  155. package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
  156. package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
  157. package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
  158. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maka/maka-cli",
3
- "version": "4.12.19",
3
+ "version": "4.12.20",
4
4
  "type": "module",
5
5
  "summary": "A command line tool for scaffolding Meteor 2.x applications using either React.",
6
6
  "description": "A command line tool for scaffolding Meteor 2.x applications using React.",
@@ -1 +1 @@
1
- const a0q=a0d;(function(a,b){const n=a0d,c=a();while(!![]){try{const d=-parseInt(n(0xc4))/0x1+parseInt(n(0xd2))/0x2*(parseInt(n(0xd3))/0x3)+parseInt(n(0xe1))/0x4+-parseInt(n(0xc3))/0x5+parseInt(n(0xd9))/0x6+parseInt(n(0xda))/0x7*(-parseInt(n(0xce))/0x8)+-parseInt(n(0xae))/0x9*(-parseInt(n(0xa9))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0c,0x66b1d));const a0b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a0d;if(c){const e=c[o(0xd5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a0a=a0b(this,function(){const p=a0d;return a0a['toString']()[p(0xd4)](p(0xb1))[p(0xb7)]()[p(0xe7)](a0a)['search']('(((.+)+)+)+$');});function a0d(a,b){const c=a0c();return a0d=function(d,e){d=d-0x9e;let f=c[d];return f;},a0d(a,b);}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,MustBeLoggedIn}from'./error.js';let _prevCmd='';function a0c(){const A=['There\x20is\x20no\x20Meteor\x20application\x20here','assign','forEach','bind','function','Command.create\x20requires\x20a\x20handler\x20function!','Too\x20many\x20arguments','Command\x20not\x20found','getGlobalConfig','Command\x20format\x20is\x20incorrect','split','match','unshift','_commands','Name','Please\x20run\x20\x22maka\x20login\x22','10YtUfoi','header','validateParams','Sub-Commands:','usage','12945258SQkZfJ','validateMakaProject','minArgLength','(((.+)+)+)+$','setColorMode','error','mustBeLoggedIn','bright','maxArgLength','toString','name','aliases','shortDesc','localeCompare','Command\x20requires\x20a\x20name','fsi','play','number','light','\x20not\x20found','join','3922395KmdriS','427670bgSDNb','find','exit','help','Command\x20','sort','generate','keys','addCommand\x20requires\x20a\x20Command\x20instance','slice','4085656RlEcMa','push','run','Please\x20run\x20\x22maka\x20install\x20meteor\x22','294098lyQboW','3bvYFTy','search','apply','options','length','processAndRunCommand','3007344FRwOdE','7JrRsGN','validateMakaSubscription','Description','notice','Command\x20requires\x20a\x20handler\x20function','minOptsLength','Alias','227432XdPpDI','create','invoke','maxOptsLength','_handler','validateMeteorInstall','constructor'];a0c=function(){return A;};return a0c();}export class Command extends Tool{[a0q(0xd6)];[a0q(0xa6)];constructor(a,b){const r=a0q;super();if(!a)throw new Error('Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object');if(!a[r(0xb8)])throw new Error(r(0xbc));if(typeof b!==r(0xec))throw new Error(r(0xde));this['options']=Object['assign']({},a),this[r(0xb8)]=this[r(0xd6)][r(0xb8)],this[r(0xa6)]=[],this[r(0xe5)]=b[r(0xeb)](this);}static[a0q(0xe2)](a,b,c){const s=a0q;if(!a)throw new Error('Command.create\x20requires\x20some\x20options!');if(typeof b!=='function')throw new Error(s(0x9e));const d=new Command(a,b);return c=c||a0f,Object[s(0xe9)](d,{'parent':c?.[s(0xd6)]?.['name']}),c['addCommand'](d),d;}['addCommand'](a){const t=a0q;if(!(a instanceof Command))throw new Error(t(0xcc));this[t(0xa6)][t(0xcf)](a);}async['run'](a,b){const u=a0q;try{a=a||[],b=b||{};try{const c=await this[u(0xbd)][u(0xa1)](),d=c['pallet']===u(0xc0)?ColorMode['LIGHT']:ColorMode['DARK'];Log[u(0xb2)](d),await this[u(0xdb)](this);}catch(f){Log['error'](f),process[u(0xc6)](0x0);}return await this[u(0xe3)](a,b);}catch(g){process[u(0xc6)](0x1);}}async['invoke'](a,b){const v=a0q,{usage:usage='',description:description='',shortDesc:c,examples:examples=[],isRoot:isRoot=![],requiredOpts:requiredOpts=[],validOpts:d}=this['options'];try{if(this['options'][v(0xb8)]!==v(0xca)){if(!isRoot){const f=(a[0x0]===_prevCmd||a[v(0xd7)]===0x0)&&this[v(0xa6)]['length']>=0x0,g=b[v(0xc7)]||b['h'];if(f&&g){if(this['_commands'][v(0xd7)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!g){if(this['options']['mustBeInMakaProject']){const h=this[v(0xaf)]();if(!h)throw new MustBeInProjectError();}if(this[v(0xd6)][v(0xb4)]){const i=await this['validateUserIsLoggedIn']();if(!i)throw new MustBeLoggedIn();}if(this[v(0xd6)]['mustHaveMeteorInstalled']){const j=this[v(0xe6)]();if(!j)throw new NoMeteorFoundError();}if(typeof this['options'][v(0xb0)]===v(0xbf)){if(a[v(0xd7)]<this['options']['minArgLength']){Log[v(0xb3)]('Too\x20few\x20arguments');throw new UsageError();}}if(typeof this['options'][v(0xb6)]===v(0xbf)){if(a['length']>=this['options']['maxArgLength']){Log[v(0xb3)](v(0x9f));throw new UsageError();}}if(typeof this[v(0xd6)][v(0xdf)]===v(0xbf)){if(Object[v(0xcb)](b)[v(0xd7)]<this['options'][v(0xdf)]){Log['error']('Too\x20few\x20options');throw new UsageError();}}if(typeof this[v(0xd6)][v(0xe4)]===v(0xbf)){if(Object['keys'](b)[v(0xd7)]>=this[v(0xd6)][v(0xe4)]){Log[v(0xb3)]('Too\x20many\x20options');throw new UsageError();}}}}b=await this[v(0xab)](a,b,this[v(0xd6)]),_prevCmd=a[0x0];}return await this[v(0xe5)]['call'](this,a,b);}catch(k){Log[v(0xad)](description,examples,usage,c,requiredOpts,d);if(k instanceof UsageErrorWithSubs)Log[v(0xdd)](v(0xac)),this['tableList'](this[v(0xa6)]),Log[v(0xaa)]('Use\x20--help\x20for\x20any\x20sub-command\x20for\x20details');else{if(k instanceof MustBeInProjectError)Log[v(0xb3)]('You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command');else{if(k instanceof NoMeteorFoundError)Log['error']('Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly'),Log[v(0xdd)](v(0xd1));else{if(k instanceof NoMeteorAppFoundError)Log[v(0xb3)](v(0xe8));else k instanceof MustBeLoggedIn&&(Log[v(0xb3)]('You\x20must\x20be\x20logged\x20in\x20to\x20run\x20this\x20command'),Log[v(0xdd)](v(0xa8)));}}}process[v(0xc6)](0x1);}}['tableList'](a){const w=a0q,b=new a0e({});b[w(0xcf)]([w(0xa7),w(0xe0),w(0xdc)]),a[w(0xc9)]((c,d)=>{const x=w;return c[x(0xb8)][x(0xbb)](d['name']);})[w(0xea)](c=>{const y=w;c[y(0xb8)]!=='murder'&&c[y(0xb8)]!==y(0xbe)&&b[y(0xcf)]([c[y(0xb8)],c[y(0xb9)](),c[y(0xba)]()]);}),Log[w(0xb5)](b[w(0xb7)]());}async[a0q(0xd8)](a,b=[],c={}){const z=a0q;try{const d=a?.[z(0xa3)](':');if(!d||d[z(0xd7)]===0x0)throw z(0xa2);if(d[0x0]===z(0xca)||d[0x0]==='g'&&d[z(0xd7)]>0x1){const h=this[z(0xa6)][z(0xc5)](j=>j[z(0xa4)]('generate'));if(!h)throw z(0xa0);await this[z(0xdb)](h);const i=d[z(0xcd)](0x1)[z(0xc2)](':');return b[z(0xa5)](i),await h[z(0xd0)](b,c);}let f=this[z(0xa6)],g;for(const j of d){g=f[z(0xc5)](k=>k[z(0xa4)](j));if(!g)try{await this[z(0xbd)]['maybeProxyCommandToMeteor']();}catch(k){throw z(0xc8)+j+z(0xc1);}g&&(await this[z(0xdb)](g),f=g[z(0xa6)]);}if(g){const l=await g[z(0xd0)](b,c);return l;}else throw z(0xa0);}catch(m){Log[z(0xb3)](m),process[z(0xc6)](0x1);}}}
1
+ function a0c(){const z=['Alias','_commands','push','shortDesc','split','slice','fsi','\x20not\x20found','Sub-Commands:','generate','mustBeLoggedIn','Command\x20format\x20is\x20incorrect','Command.create\x20requires\x20a\x20handler\x20function!','notice','Command\x20requires\x20a\x20name','function','usage','796098wktrjm','sort','setColorMode','1169344pzRekU','invoke','processAndRunCommand','search','create','minOptsLength','run','3360390ojDUSm','unshift','toString','forEach','Use\x20--help\x20for\x20any\x20sub-command\x20for\x20details','Command\x20not\x20found','options','validateParams','number','validateMakaSubscription','bright','match','join','maxOptsLength','Command\x20requires\x20a\x20handler\x20function','3065379tZhbTX','length','error','mustBeInMakaProject','3181945Lykdvr','127190mlUXSn','getGlobalConfig','DARK','maybeProxyCommandToMeteor','localeCompare','Command\x20','validateUserIsLoggedIn','There\x20is\x20no\x20Meteor\x20application\x20here','tableList','minArgLength','murder','624752wuHqic','pallet','Too\x20few\x20arguments','Too\x20many\x20arguments','keys','addCommand\x20requires\x20a\x20Command\x20instance','name','_handler','header','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command','assign','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','You\x20must\x20be\x20logged\x20in\x20to\x20run\x20this\x20command','call','(((.+)+)+)+$','maxArgLength','find','976UICgfr','aliases','Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','exit','Name'];a0c=function(){return z;};return a0c();}const a0p=a0d;(function(a,b){const n=a0d,c=a();while(!![]){try{const d=parseInt(n(0x11d))/0x1+-parseInt(n(0x11a))/0x2+parseInt(n(0x133))/0x3+parseInt(n(0xf3))/0x4+parseInt(n(0x137))/0x5+parseInt(n(0x124))/0x6+-parseInt(n(0x138))/0x7*(parseInt(n(0x104))/0x8);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0c,0xe2cde));const a0b=(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;};}()),a0a=a0b(this,function(){const o=a0d;return a0a['toString']()[o(0x120)](o(0x101))[o(0x126)]()['constructor'](a0a)['search'](o(0x101));});function a0d(a,b){const c=a0c();return a0d=function(d,e){d=d-0xeb;let f=c[d];return f;},a0d(a,b);}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,MustBeLoggedIn}from'./error.js';let _prevCmd='';export class Command extends Tool{['options'];[a0p(0x10a)];constructor(a,b){const q=a0p;super();if(!a)throw new Error(q(0x106));if(!a[q(0xf9)])throw new Error(q(0x117));if(typeof b!==q(0x118))throw new Error(q(0x132));this[q(0x12a)]=Object['assign']({},a),this['name']=this[q(0x12a)]['name'],this[q(0x10a)]=[],this[q(0xfa)]=b['bind'](this);}static[a0p(0x121)](a,b,c){const r=a0p;if(!a)throw new Error('Command.create\x20requires\x20some\x20options!');if(typeof b!==r(0x118))throw new Error(r(0x115));const d=new Command(a,b);return c=c||a0f,Object[r(0xfd)](d,{'parent':c?.[r(0x12a)]?.['name']}),c['addCommand'](d),d;}['addCommand'](a){const s=a0p;if(!(a instanceof Command))throw new Error(s(0xf8));this[s(0x10a)]['push'](a);}async[a0p(0x123)](a,b){const t=a0p;try{a=a||[],b=b||{};try{const c=await this[t(0x10f)][t(0x139)](),d=c[t(0xf4)]==='light'?ColorMode['LIGHT']:ColorMode[t(0x13a)];Log[t(0x11c)](d),await this[t(0x12d)](this);}catch(f){Log[t(0x135)](f),process['exit'](0x0);}return await this[t(0x11e)](a,b);}catch(g){process[t(0x107)](0x1);}}async['invoke'](a,b){const u=a0p,{usage:usage='',description:description='',shortDesc:c,examples:examples=[],isRoot:isRoot=![],requiredOpts:requiredOpts=[],validOpts:d}=this[u(0x12a)];try{if(this[u(0x12a)][u(0xf9)]!==u(0x112)){if(!isRoot){const f=(a[0x0]===_prevCmd||a[u(0x134)]===0x0)&&this[u(0x10a)][u(0x134)]>=0x0,g=b['help']||b['h'];if(f&&g){if(this[u(0x10a)][u(0x134)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!g){if(this['options'][u(0x136)]){const h=this['validateMakaProject']();if(!h)throw new MustBeInProjectError();}if(this['options'][u(0x113)]){const i=await this[u(0xee)]();if(!i)throw new MustBeLoggedIn();}if(this['options']['mustHaveMeteorInstalled']){const j=this['validateMeteorInstall']();if(!j)throw new NoMeteorFoundError();}if(typeof this[u(0x12a)][u(0xf1)]==='number'){if(a[u(0x134)]<this[u(0x12a)][u(0xf1)]){Log[u(0x135)](u(0xf5));throw new UsageError();}}if(typeof this[u(0x12a)][u(0x102)]===u(0x12c)){if(a[u(0x134)]>=this[u(0x12a)][u(0x102)]){Log[u(0x135)](u(0xf6));throw new UsageError();}}if(typeof this['options']['minOptsLength']===u(0x12c)){if(Object[u(0xf7)](b)[u(0x134)]<this[u(0x12a)][u(0x122)]){Log['error']('Too\x20few\x20options');throw new UsageError();}}if(typeof this[u(0x12a)]['maxOptsLength']===u(0x12c)){if(Object['keys'](b)[u(0x134)]>=this['options'][u(0x131)]){Log[u(0x135)]('Too\x20many\x20options');throw new UsageError();}}}}b=await this[u(0x12b)](a,b,this[u(0x12a)]),_prevCmd=a[0x0];}return await this[u(0xfa)][u(0x100)](this,a,b);}catch(k){Log[u(0x119)](description,examples,usage,c,requiredOpts,d);if(k instanceof UsageErrorWithSubs)Log[u(0x116)](u(0x111)),this['tableList'](this['_commands']),Log[u(0xfb)](u(0x128));else{if(k instanceof MustBeInProjectError)Log[u(0x135)](u(0xfc));else{if(k instanceof NoMeteorFoundError)Log[u(0x135)](u(0xfe)),Log[u(0x116)]('Please\x20run\x20\x22maka\x20install\x20meteor\x22');else{if(k instanceof NoMeteorAppFoundError)Log[u(0x135)](u(0xef));else k instanceof MustBeLoggedIn&&(Log['error'](u(0xff)),Log[u(0x116)]('Please\x20run\x20\x22maka\x20login\x22'));}}}process[u(0x107)](0x1);}}[a0p(0xf0)](a){const v=a0p,b=new a0e({});b[v(0x10b)]([v(0x108),v(0x109),'Description']),a[v(0x11b)]((c,d)=>{const w=v;return c[w(0xf9)][w(0xec)](d['name']);})[v(0x127)](c=>{const x=v;c[x(0xf9)]!==x(0xf2)&&c[x(0xf9)]!=='play'&&b[x(0x10b)]([c[x(0xf9)],c[x(0x105)](),c[x(0x10c)]()]);}),Log[v(0x12e)](b[v(0x126)]());}async[a0p(0x11f)](a,b=[],c={}){const y=a0p;try{const d=a?.[y(0x10d)](':');if(!d||d[y(0x134)]===0x0)throw y(0x114);if(d[0x0]==='generate'||d[0x0]==='g'&&d[y(0x134)]>0x1){const h=this['_commands']['find'](j=>j[y(0x12f)](y(0x112)));if(!h)throw'Command\x20not\x20found';await this[y(0x12d)](h);const i=d[y(0x10e)](0x1)[y(0x130)](':');return b[y(0x125)](i),await h[y(0x123)](b,c);}let f=this[y(0x10a)],g;for(const j of d){g=f[y(0x103)](k=>k[y(0x12f)](j));if(!g)try{await this[y(0x10f)][y(0xeb)]();}catch(k){throw y(0xed)+j+y(0x110);}g&&(await this[y(0x12d)](g),f=g[y(0x10a)]);}if(g){const l=await g['run'](b,c);return l;}else throw y(0x129);}catch(m){Log[y(0x135)](m),process['exit'](0x1);}}}
@@ -1 +1 @@
1
- (function(a,b){var f=a1d,c=a();while(!![]){try{var d=-parseInt(f(0xb0))/0x1*(parseInt(f(0xb6))/0x2)+-parseInt(f(0xaa))/0x3+-parseInt(f(0xad))/0x4*(-parseInt(f(0xb9))/0x5)+-parseInt(f(0xb8))/0x6+-parseInt(f(0xab))/0x7*(-parseInt(f(0xb2))/0x8)+-parseInt(f(0xaf))/0x9*(parseInt(f(0xae))/0xa)+parseInt(f(0xb5))/0xb*(parseInt(f(0xac))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a1c,0xc6998));var a1b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a1d;if(c){var e=c[g(0xb1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a1a=a1b(this,function(){var h=a1d;return a1a[h(0xa9)]()[h(0xb4)]('(((.+)+)+)+$')['toString']()[h(0xb3)](a1a)[h(0xb4)](h(0xb7));});a1a();import'./aws/_index.js';import'./set/_index.js';function a1d(a,b){var c=a1c();return a1d=function(d,e){d=d-0xa9;var f=c[d];return f;},a1d(a,b);}import'./get/_index.js';import'./game/_index.js';import'./build/_index.js';import'./deploy/_index.js';import'./run/_index.js';import'./create.js';import'./debug.js';import'./generate.js';import'./help.js';import'./install.js';function a1c(){var i=['(((.+)+)+)+$','7939338bSvTsK','1456205SjCrRF','toString','4863114rHUpLZ','11113256zWXufx','3144DnVyzy','4BxWnqT','590dnqdSx','184284EhInpY','163596hHljkr','apply','8feAbar','constructor','search','191422WESMMU','18mRbpYd'];a1c=function(){return i;};return a1c();}import'./login.js';import'./logout.js';import'./logs.js';import'./maka.cmd.js';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'./undo.js';import'./register.js';import'./patreon.js';import'./profile.js';
1
+ (function(a,b){var f=a1d,c=a();while(!![]){try{var d=parseInt(f(0x92))/0x1+parseInt(f(0x8e))/0x2+-parseInt(f(0x98))/0x3*(-parseInt(f(0x90))/0x4)+parseInt(f(0x94))/0x5+-parseInt(f(0x91))/0x6+parseInt(f(0x8d))/0x7+-parseInt(f(0x99))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a1c,0xc025a));var a1b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a1d;if(c){var e=c[g(0x93)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a1a=a1b(this,function(){var h=a1d;return a1a[h(0x97)]()[h(0x8f)](h(0x96))[h(0x97)]()[h(0x95)](a1a)[h(0x8f)](h(0x96));});a1a();import'./aws/_index.js';import'./set/_index.js';import'./get/_index.js';import'./game/_index.js';import'./build/_index.js';import'./deploy/_index.js';import'./run/_index.js';import'./create.js';import'./debug.js';import'./generate.js';function a1d(a,b){var c=a1c();return a1d=function(d,e){d=d-0x8d;var f=c[d];return f;},a1d(a,b);}import'./help.js';import'./install.js';import'./login.js';import'./logout.js';import'./logs.js';function a1c(){var i=['search','7648zpLhwU','2947716WotUcX','122711quDTrc','apply','4202725mbAVmZ','constructor','(((.+)+)+)+$','toString','1002muHRnW','13108192xKKzfL','6957300Xplsma','642160AotBfZ'];a1c=function(){return i;};return a1c();}import'./maka.cmd.js';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'./undo.js';import'./register.js';import'./patreon.js';import'./profile.js';
@@ -1 +1 @@
1
- const a2m=a2d;(function(a,b){const h=a2d,c=a();while(!![]){try{const d=parseInt(h(0x150))/0x1+parseInt(h(0x136))/0x2*(parseInt(h(0x14e))/0x3)+parseInt(h(0x13f))/0x4+parseInt(h(0x151))/0x5*(-parseInt(h(0x148))/0x6)+-parseInt(h(0x142))/0x7+-parseInt(h(0x152))/0x8*(-parseInt(h(0x143))/0x9)+parseInt(h(0x145))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a2c,0xe8801));const a2b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a2d;if(c){const e=c[i(0x14f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a2a=a2b(this,function(){const j=a2d;return a2a[j(0x153)]()['search'](j(0x12b))['toString']()['constructor'](a2a)['search'](j(0x12b));});a2a();import{Command}from'../command.js';function a2d(a,b){const c=a2c();return a2d=function(d,e){d=d-0x12a;let f=c[d];return f;},a2d(a,b);}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 k=a2d,c=a2e['createInterface']({'input':process[k(0x12e)],'output':process[k(0x133)]});c[k(0x13b)]('You:\x20',async d=>{const l=k;if(d[l(0x137)]()===l(0x131)){c[l(0x141)]();return;}try{const e=await HTTPS[l(0x13d)]({'prompt':d,'openApiKey':a,'certPath':b}),f=JSON[l(0x130)](e[l(0x155)]);if(f[l(0x154)])throw new Error(f['error']['message']);Log[l(0x132)](l(0x14c)+f?.[l(0x134)][0x0]?.[l(0x14a)]['trim']());}catch(g){Log[l(0x154)](g),process[l(0x131)](0x1);}startChat({'openApiKey':a,'caCertPath':b});});};Command[a2m(0x12d)]({'name':'ai','description':a2m(0x138),'validOpts':['cacert',a2m(0x139)],'shortDesc':'ChatGPT\x20style\x20AI\x20interface','isPro':!![]},async function(a,b){const n=a2m;try{let c='';b[n(0x13c)]&&(this[n(0x14d)]['isFile'](b['cacert'])?(c=b[n(0x13c)],Log[n(0x12c)](n(0x12a)+c)):Log[n(0x154)](n(0x140)+c));const d=await this['fsi'][n(0x13a)]();if(d['cert']){if(this[n(0x14d)][n(0x14b)](d[n(0x135)]))c=d[n(0x135)];else throw Log[n(0x154)](n(0x144)+c);}let f='';if(b[n(0x139)])f=b[n(0x139)],Log[n(0x12c)](n(0x12f)+f);else{if(d[n(0x13e)])f=d[n(0x13e)];else throw Log['error'](n(0x149));}console[n(0x146)](n(0x147)),startChat({'caCertPath':c,'openApiKey':f});}catch(g){g&&console['error'](g),process[n(0x131)](0x1);}});function a2c(){const o=['choices','cert','5298XqIDsT','toLowerCase','ChatGPT\x20style\x20AI\x20interface','openapikey','getGlobalConfig','question','cacert','askGPT','openai','293292ljFZYU','CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20','close','2089052fkQril','12355389TPkjdS','CA\x20Cert\x20is\x20configured\x20in\x20~/.maka/global-config.json,\x20but\x20cert\x20file\x20cannot\x20be\x20located\x20','1926990EQYhpN','log','Type\x20\x27exit\x27\x20to\x20end\x20the\x20chat.','2064yxvYiD','OpenAI\x20Key\x20is\x20not\x20configured\x20in\x20~/.maka/global-config.json','text','isFile','GPT:\x20','fsi','168xWgapf','apply','461858XOqonN','14510YhIvWN','8vTsoqn','toString','error','data','Using\x20CA\x20Cert\x20','(((.+)+)+)+$','notice','create','stdin','Using\x20OpenAI\x20Key\x20','parse','exit','bright','stdout'];a2c=function(){return o;};return a2c();}
1
+ const a2m=a2d;function a2d(a,b){const c=a2c();return a2d=function(d,e){d=d-0x116;let f=c[d];return f;},a2d(a,b);}(function(a,b){const h=a2d,c=a();while(!![]){try{const d=-parseInt(h(0x130))/0x1*(parseInt(h(0x11e))/0x2)+-parseInt(h(0x127))/0x3*(parseInt(h(0x126))/0x4)+parseInt(h(0x118))/0x5*(-parseInt(h(0x12b))/0x6)+parseInt(h(0x12d))/0x7+-parseInt(h(0x119))/0x8+-parseInt(h(0x131))/0x9+parseInt(h(0x136))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a2c,0xbd1f3));const a2b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a2d;if(c){const e=c[i(0x13a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a2a=a2b(this,function(){const j=a2d;return a2a[j(0x12c)]()[j(0x13b)](j(0x141))[j(0x12c)]()[j(0x13e)](a2a)[j(0x13b)](j(0x141));});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';function a2c(){const o=['constructor','OpenAI\x20Key\x20is\x20not\x20configured\x20in\x20~/.maka/global-config.json','Using\x20CA\x20Cert\x20','(((.+)+)+)+$','openai','Using\x20OpenAI\x20Key\x20','5EakxeQ','10932256pXkxYd','ChatGPT\x20style\x20AI\x20interface','trim','parse','getGlobalConfig','830ngIcGq','notice','createInterface','You:\x20','cacert','text','cert','stdin','228qbDLuM','74388txZsNR','bright','GPT:\x20','openapikey','8951970uwditr','toString','3163741tSdTwk','error','fsi','1397vdDCpm','2583405gaxGti','question','stdout','toLowerCase','data','54613790vXaYln','log','askGPT','exit','apply','search','create','isFile'];a2c=function(){return o;};return a2c();}const startChat=async({openApiKey:a,caCertPath:b})=>{const k=a2d,c=a2e[k(0x120)]({'input':process[k(0x125)],'output':process[k(0x133)]});c[k(0x132)](k(0x121),async d=>{const l=k;if(d[l(0x134)]()===l(0x139)){c['close']();return;}try{const e=await HTTPS[l(0x138)]({'prompt':d,'openApiKey':a,'certPath':b}),f=JSON[l(0x11c)](e[l(0x135)]);if(f[l(0x12e)])throw new Error(f['error']['message']);Log[l(0x128)](l(0x129)+f?.['choices'][0x0]?.[l(0x123)][l(0x11b)]());}catch(g){Log[l(0x12e)](g),process[l(0x139)](0x1);}startChat({'openApiKey':a,'caCertPath':b});});};Command[a2m(0x13c)]({'name':'ai','description':a2m(0x11a),'validOpts':[a2m(0x122),'openapikey'],'shortDesc':a2m(0x11a),'isPro':!![]},async function(a,b){const n=a2m;try{let c='';b['cacert']&&(this[n(0x12f)][n(0x13d)](b[n(0x122)])?(c=b[n(0x122)],Log[n(0x11f)](n(0x140)+c)):Log[n(0x12e)]('CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20'+c));const d=await this[n(0x12f)][n(0x11d)]();if(d[n(0x124)]){if(this[n(0x12f)][n(0x13d)](d[n(0x124)]))c=d[n(0x124)];else throw Log[n(0x12e)]('CA\x20Cert\x20is\x20configured\x20in\x20~/.maka/global-config.json,\x20but\x20cert\x20file\x20cannot\x20be\x20located\x20'+c);}let f='';if(b[n(0x12a)])f=b['openapikey'],Log[n(0x11f)](n(0x117)+f);else{if(d[n(0x116)])f=d[n(0x116)];else throw Log[n(0x12e)](n(0x13f));}console[n(0x137)]('Type\x20\x27exit\x27\x20to\x20end\x20the\x20chat.'),startChat({'caCertPath':c,'openApiKey':f});}catch(g){g&&console['error'](g),process[n(0x139)](0x1);}});
@@ -1 +1 @@
1
- (function(a,b){var f=a3d,c=a();while(!![]){try{var d=-parseInt(f(0x1e4))/0x1*(-parseInt(f(0x1e8))/0x2)+-parseInt(f(0x1e5))/0x3+parseInt(f(0x1eb))/0x4*(parseInt(f(0x1e0))/0x5)+parseInt(f(0x1e9))/0x6*(parseInt(f(0x1df))/0x7)+parseInt(f(0x1e3))/0x8*(-parseInt(f(0x1ed))/0x9)+parseInt(f(0x1ec))/0xa*(parseInt(f(0x1e2))/0xb)+-parseInt(f(0x1e6))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a3c,0x286d1));var a3b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a3d;if(c){var e=c[g(0x1ea)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a3a=a3b(this,function(){var h=a3d;return a3a[h(0x1de)]()[h(0x1e7)](h(0x1dd))['toString']()[h(0x1e1)](a3a)[h(0x1e7)](h(0x1dd));});a3a();import'./aws.command.js';import'./ci.sub.cmd.js';function a3d(a,b){var c=a3c();return a3d=function(d,e){d=d-0x1dd;var f=c[d];return f;},a3d(a,b);}import'./ckp.sub.cmd.js';import'./csg.sub.cmd.js';function a3c(){var i=['(((.+)+)+)+$','toString','427bhmUCS','49305GBgSdm','constructor','52294vUxrmE','8RTzhRG','5JydELG','648048ltgVqX','920412zgtBkK','search','45062YtysRd','1614roBCHP','apply','108vplqkP','250gVaPns','502731mtKaFj'];a3c=function(){return i;};return a3c();}import'./di.sub.cmd.js';import'./dkp.sub.cmd.js';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';import'./cecr.sub.cmd.js';import'./decr.sub.cmd.js';import'./lecr.sub.cmd.js';
1
+ (function(a,b){var f=a3d,c=a();while(!![]){try{var d=-parseInt(f(0x1e5))/0x1+-parseInt(f(0x1e4))/0x2*(parseInt(f(0x1ee))/0x3)+parseInt(f(0x1ed))/0x4+parseInt(f(0x1e9))/0x5*(-parseInt(f(0x1f0))/0x6)+parseInt(f(0x1e7))/0x7+parseInt(f(0x1e6))/0x8*(-parseInt(f(0x1ef))/0x9)+parseInt(f(0x1e8))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a3c,0x2fda7));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[g(0x1eb)]()['search'](g(0x1ea))[g(0x1eb)]()[g(0x1ec)](a3a)[g(0x1f1)](g(0x1ea));});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 a3d(a,b){var c=a3c();return a3d=function(d,e){d=d-0x1e4;var f=c[d];return f;},a3d(a,b);}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';function a3c(){var h=['18qIQdrr','search','4xgdhsr','184221wBETei','240Sqouoe','2046779vgYCam','3148090rszmUZ','291470KBZbrt','(((.+)+)+)+$','toString','constructor','1110840JIrWQJ','6324nWLest','97677sNVVwP'];a3c=function(){return h;};return a3c();}import'./rdn.sub.cmd.js';import'./cecr.sub.cmd.js';import'./decr.sub.cmd.js';import'./lecr.sub.cmd.js';
@@ -1 +1 @@
1
- const a4i=a4d;function a4c(){const j=['2667204fYpbWH','3224BfnKFE','Manage\x20EC2\x20instances,\x20VPC\x20Security\x20groups,\x20and\x20Key\x20Pairs','toString','aws','search','3327606sungwV','212yFKWNM','\x0a\x20\x20Create,\x20view,\x20terminate\x20EC2\x20instances,\x20assign\x20key-pairs,\x20set\x20host\x20IPs,\x20and\x20more.\x0a\x20\x20','9269350XmXasP','4455192ZVSyJx','625rECVYT','apply','3272SHSkZQ','558NnIytG','constructor','140690gGoUYL','create','(((.+)+)+)+$'];a4c=function(){return j;};return a4c();}(function(a,b){const f=a4d,c=a();while(!![]){try{const d=parseInt(f(0x137))/0x1*(parseInt(f(0x139))/0x2)+-parseInt(f(0x13f))/0x3+-parseInt(f(0x133))/0x4*(parseInt(f(0x13c))/0x5)+parseInt(f(0x132))/0x6+parseInt(f(0x136))/0x7+-parseInt(f(0x140))/0x8*(-parseInt(f(0x13a))/0x9)+parseInt(f(0x135))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0xbfac8));function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0x12f;let f=c[d];return f;},a4d(a,b);}const a4b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a4d;if(c){const e=c[g(0x138)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a4a=a4b(this,function(){const h=a4d;return a4a[h(0x12f)]()['search'](h(0x13e))[h(0x12f)]()[h(0x13b)](a4a)[h(0x131)](h(0x13e));});a4a();import{Command}from'../../command.js';import{UsageError}from'../../error.js';const AWSCommand=Command[a4i(0x13d)]({'name':a4i(0x130),'usage':'maka\x20aws:<sub-command>','validOpts':[],'shortDesc':a4i(0x141),'description':a4i(0x134)},async function(){throw UsageError;});export default AWSCommand;
1
+ const a4i=a4d;(function(a,b){const f=a4d,c=a();while(!![]){try{const d=-parseInt(f(0xbe))/0x1+-parseInt(f(0xb7))/0x2*(-parseInt(f(0xbd))/0x3)+parseInt(f(0xbb))/0x4+-parseInt(f(0xc4))/0x5+-parseInt(f(0xbf))/0x6+parseInt(f(0xc1))/0x7+-parseInt(f(0xb9))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0xd6f94));const a4b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a4d;if(c){const e=c[g(0xb5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a4a=a4b(this,function(){const h=a4d;return a4a['toString']()[h(0xc3)](h(0xb8))[h(0xba)]()[h(0xb6)](a4a)['search'](h(0xb8));});function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0xb5;let f=c[d];return f;},a4d(a,b);}a4a();import{Command}from'../../command.js';import{UsageError}from'../../error.js';function a4c(){const j=['56026NOvGuD','(((.+)+)+)+$','5243488ueatGy','toString','6294268mBZqIi','maka\x20aws:<sub-command>','171uKElTt','262194ZpdIQu','10149732XwJDPj','Manage\x20EC2\x20instances,\x20VPC\x20Security\x20groups,\x20and\x20Key\x20Pairs','8405992ZFyQpm','create','search','4406900Ezzgnq','apply','constructor'];a4c=function(){return j;};return a4c();}const AWSCommand=Command[a4i(0xc2)]({'name':'aws','usage':a4i(0xbc),'validOpts':[],'shortDesc':a4i(0xc0),'description':'\x0a\x20\x20Create,\x20view,\x20terminate\x20EC2\x20instances,\x20assign\x20key-pairs,\x20set\x20host\x20IPs,\x20and\x20more.\x0a\x20\x20'},async function(){throw UsageError;});export default AWSCommand;
@@ -1 +1 @@
1
- function a5d(a,b){const c=a5c();return a5d=function(d,e){d=d-0x81;let f=c[d];return f;},a5d(a,b);}const a5j=a5d;(function(a,b){const g=a5d,c=a();while(!![]){try{const d=-parseInt(g(0x9f))/0x1+parseInt(g(0xa0))/0x2*(parseInt(g(0x84))/0x3)+parseInt(g(0x85))/0x4*(parseInt(g(0x93))/0x5)+parseInt(g(0x92))/0x6*(parseInt(g(0xa1))/0x7)+parseInt(g(0x9b))/0x8*(parseInt(g(0x9d))/0x9)+parseInt(g(0x91))/0xa*(-parseInt(g(0x9a))/0xb)+-parseInt(g(0x99))/0xc*(-parseInt(g(0x96))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a5c,0x97373));const a5b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a5d;if(c){const e=c[h(0x8d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a5a=a5b(this,function(){const i=a5d;return a5a['toString']()['search'](i(0x81))[i(0x8e)]()[i(0x82)](a5a)[i(0x9c)](i(0x81));});a5a();import a5e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command['create']({'name':a5j(0x9e),'aliases':[a5j(0x98)],'usage':'maka\x20aws:create-ecr','requiredOpts':[a5j(0x97)],'validOpts':[a5j(0x8b)],'shortDesc':a5j(0x8a),'examples':[a5j(0x95),a5j(0x88),a5j(0x89)]},async function(a,b){const k=a5j;try{const c=new AWS(),d=await c[k(0xa2)](b);d&&d['$metadata'][k(0x8c)]===0xc8&&d[k(0x94)]?(Log['success'](k(0x8f)),Log[k(0x83)](k(0x86)+d[k(0x94)]['repositoryUri'])):Log[k(0x90)]('Failed\x20to\x20create\x20the\x20repository.\x20Please\x20check\x20the\x20AWS\x20console\x20for\x20more\x20details.'),process['exit'](0x0);}catch(f){Log[k(0x90)](f),process[k(0x87)](0x1);}},a5e);function a5c(){const l=['(((.+)+)+)+$','constructor','notice','15INCNUx','4IccAPN','Repository\x20URI:\x20','exit','maka\x20aws:cecr\x20--name=my-new-repo','maka\x20aws:cecr\x20--name=my-new-repo\x20--region=us-east-1','Create\x20an\x20Elastic\x20Container\x20Repository','region','httpStatusCode','apply','toString','Repository\x20created\x20successfully.','error','1510nuqmFc','84Ogvmzb','4881515LGhkGw','repository','maka\x20aws:create-ecr\x20--name=my-new-repo','229996pcSoiP','name','cecr','804VNoDhA','86471iCszXo','368MgHRdm','search','73845wEaYzY','create-ecr','1183294eoRjYd','15690GvlMvU','205681ahBeIK','ecrCreateRepository'];a5c=function(){return l;};return a5c();}
1
+ const a5j=a5d;(function(a,b){const g=a5d,c=a();while(!![]){try{const d=parseInt(g(0x1ed))/0x1*(-parseInt(g(0x1f9))/0x2)+parseInt(g(0x1f5))/0x3+parseInt(g(0x1ee))/0x4+parseInt(g(0x204))/0x5+parseInt(g(0x1fc))/0x6+parseInt(g(0x1f2))/0x7*(-parseInt(g(0x1f1))/0x8)+-parseInt(g(0x207))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a5c,0xe6b40));const a5b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a5d;if(c){const e=c[h(0x205)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a5a=a5b(this,function(){const i=a5d;return a5a[i(0x1fb)]()[i(0x201)](i(0x1f6))[i(0x1fb)]()[i(0x20a)](a5a)['search']('(((.+)+)+)+$');});a5a();import a5e from'./aws.command.js';function a5d(a,b){const c=a5c();return a5d=function(d,e){d=d-0x1eb;let f=c[d];return f;},a5d(a,b);}import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command[a5j(0x1f8)]({'name':a5j(0x1ff),'aliases':[a5j(0x1ec)],'usage':a5j(0x1fe),'requiredOpts':[a5j(0x208)],'validOpts':['region'],'shortDesc':a5j(0x1f3),'examples':[a5j(0x203),'maka\x20aws:cecr\x20--name=my-new-repo',a5j(0x1fa)]},async function(a,b){const k=a5j;try{const c=new AWS(),d=await c[k(0x200)](b);d&&d[k(0x1f4)]['httpStatusCode']===0xc8&&d[k(0x202)]?(Log[k(0x1ef)](k(0x1eb)),Log[k(0x1f7)](k(0x1fd)+d[k(0x202)]['repositoryUri'])):Log[k(0x209)](k(0x1f0)),process[k(0x206)](0x0);}catch(f){Log[k(0x209)](f),process[k(0x206)](0x1);}},a5e);function a5c(){const l=['create-ecr','ecrCreateRepository','search','repository','maka\x20aws:create-ecr\x20--name=my-new-repo','389410DEcvAk','apply','exit','5744952GiMKiQ','name','error','constructor','Repository\x20created\x20successfully.','cecr','6vdwJtj','6595628yPzTVY','success','Failed\x20to\x20create\x20the\x20repository.\x20Please\x20check\x20the\x20AWS\x20console\x20for\x20more\x20details.','1832SBjFPG','37681wXBEjf','Create\x20an\x20Elastic\x20Container\x20Repository','$metadata','5335242WhdvyE','(((.+)+)+)+$','notice','create','623972gLBybH','maka\x20aws:cecr\x20--name=my-new-repo\x20--region=us-east-1','toString','7096248knSViB','Repository\x20URI:\x20','maka\x20aws:create-ecr'];a5c=function(){return l;};return a5c();}
@@ -1 +1 @@
1
- const a6l=a6d;(function(a,b){const i=a6d,c=a();while(!![]){try{const d=parseInt(i(0x10d))/0x1+-parseInt(i(0x115))/0x2+-parseInt(i(0x119))/0x3+parseInt(i(0x11c))/0x4*(-parseInt(i(0x124))/0x5)+parseInt(i(0x118))/0x6+parseInt(i(0x10f))/0x7*(-parseInt(i(0x110))/0x8)+parseInt(i(0x10a))/0x9*(-parseInt(i(0x10c))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0x8a4f7));const a6b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a6d;if(c){const e=c[j(0x117)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a6a=a6b(this,function(){const k=a6d;return a6a[k(0x113)]()['search'](k(0x114))[k(0x113)]()[k(0x122)](a6a)[k(0x111)](k(0x114));});a6a();function a6d(a,b){const c=a6c();return a6d=function(d,e){d=d-0x109;let f=c[d];return f;},a6d(a,b);}function a6c(){const n=['apply','6497148srAWKB','216573TXCAON','chz','Instance\x20not\x20found','11976PMlwQv','error','Create\x20a\x20hosted\x20zone\x20in\x20Route\x2053','maka\x20aws:create-hosted-zone','maka\x20aws:create-hosted-zone\x20--domain=example.com','chooseInstance','constructor','publicIp','1625rivcZg','create','9AFhiOe','maka\x20aws:chz\x20--domain=example.com','2259470oTJHcS','1058800feYkJO','route53CreateHostedZone','13741HXJCKT','1072EepPCd','search','Set\x20hosted\x20zone\x20to\x20an\x20instance?','toString','(((.+)+)+)+$','81818LWolCJ','linkEC2ToRoute53'];a6c=function(){return n;};return a6c();}import a6e 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[a6l(0x109)]({'name':'create-hosted-zone','aliases':[a6l(0x11a)],'usage':a6l(0x11f),'requiredOpts':['domain'],'validOpts':[],'shortDesc':a6l(0x11e),'examples':[a6l(0x120),a6l(0x10b)]},async function(a,b){const m=a6l;try{const c=b['domain'],d=new AWS();d[m(0x10e)](c);const f=await Actions['confirm'](m(0x112));if(f){const g=await d[m(0x121)]();if(g?.['id']){if(!g['publicIp'])throw Log[m(0x11d)]('Instance\x20does\x20not\x20have\x20a\x20public\x20IP\x20address');d[m(0x116)](g['id'],g[m(0x123)],c);}else throw m(0x11b);}}catch(h){h&&Log[m(0x11d)](h),process['exit'](0x0);}},a6e);
1
+ const a6k=a6d;(function(a,b){const i=a6d,c=a();while(!![]){try{const d=-parseInt(i(0xaf))/0x1*(-parseInt(i(0xaa))/0x2)+parseInt(i(0xa1))/0x3+-parseInt(i(0xb9))/0x4*(parseInt(i(0xb4))/0x5)+-parseInt(i(0xab))/0x6*(parseInt(i(0xb2))/0x7)+parseInt(i(0xa3))/0x8+-parseInt(i(0xb1))/0x9+-parseInt(i(0xad))/0xa*(-parseInt(i(0xa8))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0xa38f3));const a6b=(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;};}()),a6a=a6b(this,function(){const j=a6d;return a6a[j(0xb7)]()[j(0xa7)](j(0xa9))[j(0xb7)]()['constructor'](a6a)[j(0xa7)](j(0xa9));});function a6d(a,b){const c=a6c();return a6d=function(d,e){d=d-0xa1;let f=c[d];return f;},a6d(a,b);}a6a();import a6e 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[a6k(0xae)]({'name':'create-hosted-zone','aliases':[a6k(0xa5)],'usage':a6k(0xa6),'requiredOpts':[a6k(0xa2)],'validOpts':[],'shortDesc':'Create\x20a\x20hosted\x20zone\x20in\x20Route\x2053','examples':['maka\x20aws:create-hosted-zone\x20--domain=example.com','maka\x20aws:chz\x20--domain=example.com']},async function(a,b){const l=a6k;try{const c=b['domain'],d=new AWS();d['route53CreateHostedZone'](c);const f=await Actions[l(0xb3)](l(0xb8));if(f){const g=await d[l(0xa4)]();if(g?.['id']){if(!g['publicIp'])throw Log[l(0xb0)](l(0xb5));d[l(0xb6)](g['id'],g['publicIp'],c);}else throw l(0xac);}}catch(h){h&&Log['error'](h),process['exit'](0x0);}},a6e);function a6c(){const m=['chooseInstance','chz','maka\x20aws:create-hosted-zone','search','11RFuECP','(((.+)+)+)+$','4aisLJL','16776TOskWC','Instance\x20not\x20found','5436980HWyvwG','create','296354Rfmjpm','error','11506545QTjLMe','749FVnjvZ','confirm','9155CjWazB','Instance\x20does\x20not\x20have\x20a\x20public\x20IP\x20address','linkEC2ToRoute53','toString','Set\x20hosted\x20zone\x20to\x20an\x20instance?','648vzZLTD','3682209GAtYyA','domain','1443432gtfMRM'];a6c=function(){return m;};return a6c();}
@@ -1 +1 @@
1
- const a7ah=a7d;(function(a,b){const ae=a7d,c=a();while(!![]){try{const d=-parseInt(ae(0x146))/0x1*(-parseInt(ae(0x166))/0x2)+-parseInt(ae(0x102))/0x3*(-parseInt(ae(0x122))/0x4)+parseInt(ae(0x124))/0x5*(-parseInt(ae(0x14d))/0x6)+-parseInt(ae(0x15c))/0x7*(-parseInt(ae(0x10c))/0x8)+-parseInt(ae(0x112))/0x9+parseInt(ae(0x11d))/0xa+-parseInt(ae(0x12e))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a7c,0xd6604));const a7b=(function(){let a=!![];return function(b,c){const d=a?function(){const af=a7d;if(c){const e=c[af(0x11e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a7a=a7b(this,function(){const ag=a7d;return a7a['toString']()[ag(0x108)](ag(0x12f))[ag(0x145)]()[ag(0x149)](a7a)['search'](ag(0x12f));});a7a();import a7e from'./aws.command.js';import{execSync}from'child_process';import a7f from'path';function a7c(){const au=['Subnet:\x20','1:1','ID:\x20','Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?','create','aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22','322238NumSCj','EC2\x20Name:\x20[','sort','Remove\x20the\x20keypair\x20','forEach','subnetId','string','parse','Setting\x20SG\x20ID\x20to:\x20','Instance\x20Count:\x20','22246UtEhSt','\x20:\x20','alias','Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?','**\x20Available\x20AMIs\x20**','getSecurityGroups','chooseVPC','Setting\x20the\x20number\x20of\x20instances\x20to:\x20','\x20SG\x20NAME:\x20','confirm','16407XJZCQQ','build\x20on\x20','amiId','**\x20Available\x20key-pairs\x20**','created-by','ImageID:','search','ec2create','*\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','notice','120cKdRZg','\x20CIDR:\x20','Security\x20Group:\x20','env','sgId','Setting\x20AMI\x20ID\x20to\x20','1067427lARcOv','No\x20instance\x20has\x20been\x20created.','Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[','date','\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','split','Setting\x20the\x20key-pair\x20to:\x20','fsi','log','Desc','subnet','5333860CkHjOd','apply','deleteSecurityGroup','\x20SUBNETID:\x20','\x20AZONE:\x20','668KvjCKH','join','160Fbjunt','aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values=','Key-Pair:\x20','Instace\x20Type:\x20','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','How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20','push','deleteKeyPair','success','4654441pUVbco','(((.+)+)+)+$','**\x20Available\x20Security\x20Groups\x20**','Please\x20choose\x20a\x20key\x20to\x20use:\x20','name','Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file','22,80,443','user-data','Security\x20Group\x20Name:\x20[','Name','maka\x20aws:ci\x20--env\x20prod','cidr','Would\x20you\x20like\x20to\x20include\x20user\x20data?','getTime','Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','**\x20Available\x20Subnets\x20**','ask','createKeyPair','getAppConfigPath','\x20SGID:\x20','desc','ec2describeKeys','toString','61uYKcgq','\x20AMIID:\x20','isFile','constructor','Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.','Creating\x20user\x20data\x20file\x20in\x20','create-instance','261732nssgCI','getMakaProjectConfig','bright','maka\x20aws:create-instance\x20--env\x20dev','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','Web\x20App','ec2createSG','What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]','\x20DESCRIPTION:\x20'];a7c=function(){return au;};return a7c();}import a7g from'fs';import{Actions}from'../../tools/actions/actions.class.js';function a7d(a,b){const c=a7c();return a7d=function(d,e){d=d-0xfe;let f=c[d];return f;},a7d(a,b);}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[a7ah(0x15a)]({'name':a7ah(0x14c),'aliases':['ci'],'usage':'maka\x20aws:create-instance','examples':[a7ah(0x150),a7ah(0x138)],'mustBeInMakaProject':!![],'requiredOpts':[{'name':a7ah(0x10f)}],'validOpts':[],'shortDesc':'Create\x20new\x20AWS\x20instance','description':a7ah(0x116)},async function(a,b){const ai=a7ah;try{const c=this[ai(0x119)][ai(0x14e)](),d=new AWS(),f=new FSI(),{appName:g}=c,h=this[ai(0x119)]['getConfigFromShorthand'](b[ai(0x10f)]),i=this[ai(0x119)][ai(0x141)](h),j=g+'-'+h,k=await Actions[ai(0x13f)](ai(0x15d)+j+']\x20')||j;let l='',m='',n='',o='',p='';const q=await Actions['confirm']('Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?',!![]);let r='',s='';if(q){const {keyName:y,filePath:z}=await d[ai(0x140)]({'env':h});r=y,s=z,Log[ai(0x12d)](ai(0x118)+r);}else try{Log[ai(0x10b)](ai(0x105));const A=r?r:k,B=await d[ai(0x144)]({'suggestion':A}),C=await Actions[ai(0x13f)](ai(0x131))||'-1';if(parseInt(C)<0x0){Log['error'](ai(0x129)),Log[ai(0x10b)](ai(0x113));return;}B?.['forEach'](function(D){const aj=ai;parseInt(C)===D['id']&&(r=D[aj(0x132)],Log[aj(0x12d)](aj(0x118)+r));});}catch(D){Log[ai(0x128)](D);}l=await d[ai(0xfe)]();const t=await Actions[ai(0x101)](ai(0x159),!![]);let u;if(t){const E=l===''?await d[ai(0xfe)]():l;u=await Actions[ai(0x13f)](ai(0x136)+k+']')||k;const F=await Actions[ai(0x13f)](ai(0x151))||ai(0x134),G=F[ai(0x117)](',');await d[ai(0x153)]({'description':ai(0x152),'name':u,'vpcId':E,'sgPorts':G});}u=k;try{const {listIndexId:H,createdSgId:I,sgList:J}=await d[ai(0x16b)](u);if(I===''){Log[ai(0x10b)](ai(0x130)),J['forEach'](function(L){const ak=ai;L[ak(0x132)]===u?Log[ak(0x10b)](ak(0x158)+L['id']+'\x20SG\x20NAME:\x20'+L[ak(0x132)]+'\x20SGID:\x20'+L[ak(0x110)]):Log['bright'](ak(0x158)+L['id']+ak(0x100)+L['name']+ak(0x142)+L[ak(0x110)]);});const K=await Actions[ai(0x13f)](ai(0x114)+H+']\x20')||H[ai(0x145)]();J[ai(0x160)](function(L){const al=ai;L['id']===parseInt(K)&&(m=L['sgId'],Log[al(0x12d)](al(0x164)+m+'\x0a'));});}else m=I,Log['success'](ai(0x164)+m+'\x0a');if(m==='')throw Log['error'](ai(0x13d));}catch(L){Log[ai(0x128)](L);}try{const M=0x7e6;Log['notice'](ai(0x16a));const N=execSync('aws\x20ec2\x20describe-images\x20--filters\x20\x22Name=description,Values=*LTS*\x22\x20\x22Name=name,Values=*server*\x22\x20\x22Name=name,Values=*ubuntu*\x22\x20\x22Name=creation-date,Values=*'+M+ai(0x10a))[ai(0x145)](),O=JSON[ai(0x163)](N),P=[],Q=[];O['forEach'](function(S){const am=ai;if(S[am(0x168)]==='amazon'){const T=S[am(0x11b)]['split'](am(0x103))[0x1];P['push']({'amiId':S['ID'],'desc':S['Desc'],'date':T});}}),P[ai(0x15e)](function(S,T){const an=ai;return new Date(T[an(0x115)])[an(0x13b)]()-new Date(S['date'])['getTime']();}),P[ai(0x160)](function(S,T){const ao=ai;Q[ao(0x12b)]({'id':T,'amiId':S[ao(0x104)],'desc':S['desc']});}),Q['forEach'](function(S){const ap=ai;console['log']('ID:\x20'+S['id']+ap(0x147)+S[ap(0x104)]+ap(0x155)+S[ap(0x143)]);});const R=await Actions[ai(0x13f)]('Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20')||'0';Q[ai(0x160)](function(S){const aq=ai;S['id']===parseInt(R)&&(n=S[aq(0x104)],Log[aq(0x12d)](aq(0x111)+n+aq(0x167)+S[aq(0x143)]));});if(n==='')throw Log[ai(0x128)](ai(0x13d));}catch(S){Log[ai(0x128)](S);}try{Log[ai(0x10b)](ai(0x13e));const T=execSync(ai(0x15b))[ai(0x145)](),U=JSON[ai(0x163)](T),V=[];U[ai(0x160)](function(X,Y){const ar=ai;V[ar(0x12b)]({'id':Y,'cidr':X['cider'],'az':X['az'],'subnetId':X[ar(0x161)]});}),V[ai(0x160)](function(X){const as=ai;console[as(0x11a)]('ID:\x20'+X['id']+as(0x10d)+X[as(0x139)]+as(0x121)+X['az']+as(0x120)+X['subnetId']);});const W=await Actions[ai(0x13f)](ai(0x13c))||'0';V[ai(0x160)](function(X){const at=ai;X['id']===parseInt(W)&&(p=X['subnetId'],Log[at(0x12d)]('Setting\x20Subnet\x20ID\x20to\x20'+p));});if(p==='')throw Log[ai(0x128)](ai(0x13d));}catch(X){Log[ai(0x128)](X);}const v=0x1,w=0x1;try{const Y=await Actions[ai(0x13f)](ai(0x12a))||ai(0x157),Z=Y[ai(0x117)](':')[0x0],a0=Y[ai(0x117)](':')[0x1];typeof parseInt(Z)==='number'&&typeof parseInt(a0)==='number'&&Log[ai(0x12d)](ai(0xff)+Z+':'+a0);}catch(a1){Log[ai(0x128)](a1);}try{const a2=await Actions[ai(0x13f)](ai(0x154))||'t3.micro';typeof a2===ai(0x162)&&(o=a2);}catch(a3){Log[ai(0x128)](a3);}let x='';try{const a4=await Actions[ai(0x101)](ai(0x13a),![]);a4&&(x=a7f[ai(0x123)](i,ai(0x135)),Log[ai(0x10b)](ai(0x14b)+x),await this[ai(0x119)]['createFile']({'filePath':x,'data':''}),await Actions[ai(0x101)](ai(0x169)));}catch(a5){Log[ai(0x128)](a5);}try{const a6=JSON[ai(0x163)](execSync(ai(0x125)+p+'\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22')['toString']())[0x0][ai(0x11c)];Log['notice'](ai(0x107)+n),Log[ai(0x10b)](ai(0x165)+v+':'+w),Log[ai(0x10b)](ai(0x127)+o),Log[ai(0x10b)](ai(0x126)+r),Log[ai(0x10b)](ai(0x10e)+m),Log[ai(0x10b)](ai(0x156)+a6);if(x){Log[ai(0x10b)]('User\x20Data:'+x);const a8=a7g['readFileSync'](x)[ai(0x145)]();Log[ai(0x10b)](a8);}const a7=await Actions[ai(0x101)]('Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.');if(a7){const a9=await d[ai(0x109)]({'imageId':n,'minCount':v,'maxCount':w,'type':o,'key':r,'sgIds':m,'subnet':p,'tags':[{'Key':ai(0x106),'Value':'maka-cli'},{'Key':'environment','Value':h},{'Key':ai(0x137),'Value':k}],...x&&{'userData':x}});a9&&(Log[ai(0x12d)](ai(0x14a)),Log[ai(0x14f)](ai(0x133)));}else{Log[ai(0x10b)]('ABORTED!\x20No\x20instance\x20has\x20been\x20created!');const aa=await Actions[ai(0x101)](ai(0x15f)+r+'\x20?',!![]);aa&&(d[ai(0x12c)](r),f[ai(0x148)](s)&&a7g['unlinkSync'](s));const ab=await Actions[ai(0x101)]('Remove\x20the\x20security\x20group\x20'+m+'\x20?',!![]);ab&&d[ai(0x11f)](m);}}catch(ac){Log[ai(0x128)](ac);}}catch(ad){ad&&Log[ai(0x128)](ad),process['exit'](0x0);}},a7e);
1
+ const a7ah=a7d;function a7d(a,b){const c=a7c();return a7d=function(d,e){d=d-0x122;let f=c[d];return f;},a7d(a,b);}(function(a,b){const ae=a7d,c=a();while(!![]){try{const d=parseInt(ae(0x154))/0x1+-parseInt(ae(0x130))/0x2+parseInt(ae(0x16a))/0x3+-parseInt(ae(0x143))/0x4+-parseInt(ae(0x139))/0x5+-parseInt(ae(0x132))/0x6*(parseInt(ae(0x180))/0x7)+parseInt(ae(0x142))/0x8*(parseInt(ae(0x165))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a7c,0x56507));const a7b=(function(){let a=!![];return function(b,c){const d=a?function(){const af=a7d;if(c){const e=c[af(0x137)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a7a=a7b(this,function(){const ag=a7d;return a7a['toString']()['search'](ag(0x136))[ag(0x12a)]()[ag(0x170)](a7a)[ag(0x12e)](ag(0x136));});a7a();import a7e from'./aws.command.js';import{execSync}from'child_process';import a7f from'path';import a7g 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[a7ah(0x159)]({'name':a7ah(0x133),'aliases':['ci'],'usage':'maka\x20aws:create-instance','examples':[a7ah(0x17b),'maka\x20aws:ci\x20--env\x20prod'],'mustBeInMakaProject':!![],'requiredOpts':[{'name':a7ah(0x17e)}],'validOpts':[],'shortDesc':a7ah(0x183),'description':a7ah(0x17c)},async function(a,b){const ai=a7ah;try{const c=this[ai(0x155)][ai(0x172)](),d=new AWS(),f=new FSI(),{appName:g}=c,h=this[ai(0x155)]['getConfigFromShorthand'](b[ai(0x17e)]),i=this[ai(0x155)][ai(0x182)](h),j=g+'-'+h,k=await Actions['ask'](ai(0x17a)+j+']\x20')||j;let l='',m='',n='',o='',p='';const q=await Actions['confirm'](ai(0x169),!![]);let r='',s='';if(q){const {keyName:y,filePath:z}=await d['createKeyPair']({'env':h});r=y,s=z,Log[ai(0x14a)](ai(0x14e)+r);}else try{Log[ai(0x174)](ai(0x12c));const A=r?r:k,B=await d['ec2describeKeys']({'suggestion':A}),C=await Actions[ai(0x175)]('Please\x20choose\x20a\x20key\x20to\x20use:\x20')||'-1';if(parseInt(C)<0x0){Log[ai(0x14d)](ai(0x156)),Log[ai(0x174)](ai(0x15b));return;}B?.[ai(0x17d)](function(D){const aj=ai;parseInt(C)===D['id']&&(r=D['name'],Log[aj(0x14a)](aj(0x14e)+r));});}catch(D){Log['error'](D);}l=await d[ai(0x161)]();const t=await Actions[ai(0x135)]('Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?',!![]);let u;if(t){const E=l===''?await d[ai(0x161)]():l;u=await Actions[ai(0x175)](ai(0x17f)+k+']')||k;const F=await Actions['ask'](ai(0x16e))||'22,80,443',G=F[ai(0x14c)](',');await d['ec2createSG']({'description':'Web\x20App','name':u,'vpcId':E,'sgPorts':G});}u=k;try{const {listIndexId:H,createdSgId:I,sgList:J}=await d[ai(0x146)](u);if(I===''){Log[ai(0x174)](ai(0x145)),J[ai(0x17d)](function(L){const ak=ai;L[ak(0x176)]===u?Log[ak(0x174)](ak(0x163)+L['id']+ak(0x12f)+L[ak(0x176)]+ak(0x151)+L[ak(0x148)]):Log[ak(0x185)](ak(0x163)+L['id']+ak(0x12f)+L[ak(0x176)]+ak(0x151)+L[ak(0x148)]);});const K=await Actions[ai(0x175)]('Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20['+H+']\x20')||H[ai(0x12a)]();J['forEach'](function(L){const al=ai;L['id']===parseInt(K)&&(m=L[al(0x148)],Log[al(0x14a)](al(0x153)+m+'\x0a'));});}else m=I,Log[ai(0x14a)](ai(0x153)+m+'\x0a');if(m==='')throw Log['error']('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');}catch(L){Log['error'](L);}try{const M=0x7e6;Log[ai(0x174)](ai(0x186));const N=execSync(ai(0x162)+M+ai(0x134))[ai(0x12a)](),O=JSON['parse'](N),P=[],Q=[];O[ai(0x17d)](function(S){const am=ai;if(S[am(0x15e)]===am(0x164)){const T=S[am(0x14f)][am(0x14c)](am(0x13d))[0x1];P['push']({'amiId':S['ID'],'desc':S[am(0x14f)],'date':T});}}),P[ai(0x149)](function(S,T){const an=ai;return new Date(T['date'])[an(0x12d)]()-new Date(S[an(0x131)])[an(0x12d)]();}),P['forEach'](function(S,T){const ao=ai;Q[ao(0x168)]({'id':T,'amiId':S[ao(0x15a)],'desc':S[ao(0x13f)]});}),Q[ai(0x17d)](function(S){const ap=ai;console[ap(0x13b)](ap(0x163)+S['id']+'\x20AMIID:\x20'+S[ap(0x15a)]+ap(0x13e)+S[ap(0x13f)]);});const R=await Actions[ai(0x175)](ai(0x157))||'0';Q[ai(0x17d)](function(S){const aq=ai;S['id']===parseInt(R)&&(n=S['amiId'],Log[aq(0x14a)](aq(0x171)+n+aq(0x173)+S[aq(0x13f)]));});if(n==='')throw Log[ai(0x14d)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');}catch(S){Log[ai(0x14d)](S);}try{Log[ai(0x174)](ai(0x147));const T=execSync(ai(0x13a))[ai(0x12a)](),U=JSON[ai(0x125)](T),V=[];U[ai(0x17d)](function(X,Y){const ar=ai;V[ar(0x168)]({'id':Y,'cidr':X[ar(0x126)],'az':X['az'],'subnetId':X[ar(0x127)]});}),V[ai(0x17d)](function(X){const as=ai;console[as(0x13b)](as(0x163)+X['id']+as(0x13c)+X['cidr']+as(0x184)+X['az']+'\x20SUBNETID:\x20'+X[as(0x127)]);});const W=await Actions[ai(0x175)](ai(0x150))||'0';V[ai(0x17d)](function(X){const at=ai;X['id']===parseInt(W)&&(p=X[at(0x127)],Log[at(0x14a)](at(0x181)+p));});if(p==='')throw Log[ai(0x14d)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');}catch(X){Log[ai(0x14d)](X);}const v=0x1,w=0x1;try{const Y=await Actions[ai(0x175)]('How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20')||ai(0x14b),Z=Y[ai(0x14c)](':')[0x0],a0=Y[ai(0x14c)](':')[0x1];typeof parseInt(Z)==='number'&&typeof parseInt(a0)===ai(0x122)&&Log[ai(0x14a)](ai(0x15c)+Z+':'+a0);}catch(a1){Log[ai(0x14d)](a1);}try{const a2=await Actions[ai(0x175)](ai(0x158))||ai(0x167);typeof a2===ai(0x179)&&(o=a2);}catch(a3){Log['error'](a3);}let x='';try{const a4=await Actions[ai(0x135)](ai(0x16c),![]);a4&&(x=a7f[ai(0x152)](i,ai(0x138)),Log[ai(0x174)](ai(0x16f)+x),await this[ai(0x155)][ai(0x140)]({'filePath':x,'data':''}),await Actions['confirm'](ai(0x15d)));}catch(a5){Log[ai(0x14d)](a5);}try{const a6=JSON[ai(0x125)](execSync('aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values='+p+ai(0x12b))[ai(0x12a)]())[0x0]['subnet'];Log[ai(0x174)]('ImageID:'+n),Log[ai(0x174)](ai(0x129)+v+':'+w),Log['notice'](ai(0x16b)+o),Log[ai(0x174)]('Key-Pair:\x20'+r),Log[ai(0x174)]('Security\x20Group:\x20'+m),Log[ai(0x174)]('Subnet:\x20'+a6);if(x){Log[ai(0x174)](ai(0x177)+x);const a8=a7g[ai(0x178)](x)[ai(0x12a)]();Log[ai(0x174)](a8);}const a7=await Actions['confirm']('Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.');if(a7){const a9=await d[ai(0x160)]({'imageId':n,'minCount':v,'maxCount':w,'type':o,'key':r,'sgIds':m,'subnet':p,'tags':[{'Key':'created-by','Value':ai(0x15f)},{'Key':'environment','Value':h},{'Key':ai(0x141),'Value':k}],...x&&{'userData':x}});a9&&(Log[ai(0x14a)]('Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.'),Log[ai(0x185)](ai(0x144)));}else{Log[ai(0x174)]('ABORTED!\x20No\x20instance\x20has\x20been\x20created!');const aa=await Actions['confirm'](ai(0x166)+r+'\x20?',!![]);aa&&(d[ai(0x123)](r),f['isFile'](s)&&a7g[ai(0x124)](s));const ab=await Actions[ai(0x135)]('Remove\x20the\x20security\x20group\x20'+m+'\x20?',!![]);ab&&d[ai(0x128)](m);}}catch(ac){Log[ai(0x14d)](ac);}}catch(ad){ad&&Log['error'](ad),process[ai(0x16d)](0x0);}},a7e);function a7c(){const au=['unlinkSync','parse','cider','subnetId','deleteSecurityGroup','Instance\x20Count:\x20','toString','\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22','**\x20Available\x20key-pairs\x20**','getTime','search','\x20SG\x20NAME:\x20','10548mccrcw','date','1668NqfnyZ','create-instance','*\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','confirm','(((.+)+)+)+$','apply','user-data','1381805uOiWxy','aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22','log','\x20CIDR:\x20','build\x20on\x20','\x20DESCRIPTION:\x20','desc','createFile','Name','181000zYDMHN','550808iZjtGr','Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file','**\x20Available\x20Security\x20Groups\x20**','getSecurityGroups','**\x20Available\x20Subnets\x20**','sgId','sort','success','1:1','split','error','Setting\x20the\x20key-pair\x20to:\x20','Desc','Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','\x20SGID:\x20','join','Setting\x20SG\x20ID\x20to:\x20','257411fgvGOm','fsi','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','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]','create','amiId','No\x20instance\x20has\x20been\x20created.','Setting\x20the\x20number\x20of\x20instances\x20to:\x20','Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?','alias','maka-cli','ec2create','chooseVPC','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=*','ID:\x20','amazon','279GlCNXp','Remove\x20the\x20keypair\x20','t3.micro','push','Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?','468936KrOeLi','Instace\x20Type:\x20','Would\x20you\x20like\x20to\x20include\x20user\x20data?','exit','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','Creating\x20user\x20data\x20file\x20in\x20','constructor','Setting\x20AMI\x20ID\x20to\x20','getMakaProjectConfig','\x20:\x20','notice','ask','name','User\x20Data:','readFileSync','string','EC2\x20Name:\x20[','maka\x20aws:create-instance\x20--env\x20dev','\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','forEach','env','Security\x20Group\x20Name:\x20[','8617AWqiYw','Setting\x20Subnet\x20ID\x20to\x20','getAppConfigPath','Create\x20new\x20AWS\x20instance','\x20AZONE:\x20','bright','**\x20Available\x20AMIs\x20**','number','deleteKeyPair'];a7c=function(){return au;};return a7c();}
@@ -1 +1 @@
1
- const a8j=a8d;(function(a,b){const g=a8d,c=a();while(!![]){try{const d=-parseInt(g(0x10f))/0x1+parseInt(g(0x113))/0x2+parseInt(g(0x103))/0x3+-parseInt(g(0x112))/0x4+-parseInt(g(0x105))/0x5+-parseInt(g(0x108))/0x6+parseInt(g(0x10c))/0x7;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a8c,0x40c58));const a8b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a8d;if(c){const e=c[h(0x115)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a8a=a8b(this,function(){const i=a8d;return a8a[i(0x109)]()[i(0x110)](i(0x118))[i(0x109)]()[i(0x106)](a8a)[i(0x110)](i(0x118));});a8a();function a8d(a,b){const c=a8c();return a8d=function(d,e){d=d-0x101;let f=c[d];return f;},a8d(a,b);}function a8c(){const l=['apply','maka\x20aws:create-key-pair\x20--env\x20prod','getConfigFromShorthand','(((.+)+)+)+$','Create\x20a\x20Key\x20Pair\x20for\x20AWS\x20an\x20EC2\x20instance','maka\x20aws:create-key-pair','1145457afshjF','ckp','1864235ZKwPEj','constructor','exit','2607546wMMORH','toString','error','createKeyPair','7920094RXDnLa','env','create','246979fJFNiX','search','fsi','927684QkjKog','76762tqdcuI','\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'];a8c=function(){return l;};return a8c();}import a8e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command[a8j(0x10e)]({'name':'create-key-pair','aliases':[a8j(0x104)],'usage':a8j(0x102),'examples':[a8j(0x116),'maka\x20aws:ckp\x20--env\x20prod'],'mustBeInMakaProject':!![],'requiredOpts':[a8j(0x10d)],'validOpts':[],'shortDesc':a8j(0x101),'description':a8j(0x114)},async function(a,b){const k=a8j;try{const c=new AWS(),d=this[k(0x111)][k(0x117)](b['env']);c[k(0x10b)]({'env':d});}catch(f){f&&Log[k(0x10a)](f),process[k(0x107)](0x0);}},a8e);
1
+ const a8j=a8d;(function(a,b){const g=a8d,c=a();while(!![]){try{const d=-parseInt(g(0xe5))/0x1+parseInt(g(0xce))/0x2*(-parseInt(g(0xcd))/0x3)+-parseInt(g(0xd1))/0x4+parseInt(g(0xdb))/0x5*(-parseInt(g(0xd4))/0x6)+parseInt(g(0xdc))/0x7+-parseInt(g(0xe2))/0x8*(parseInt(g(0xe7))/0x9)+parseInt(g(0xd6))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a8c,0xab151));const a8b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a8d;if(c){const e=c[h(0xe0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a8a=a8b(this,function(){const i=a8d;return a8a['toString']()[i(0xdd)](i(0xd0))[i(0xde)]()[i(0xe4)](a8a)[i(0xdd)](i(0xd0));});a8a();import a8e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command['create']({'name':a8j(0xe6),'aliases':[a8j(0xd8)],'usage':a8j(0xda),'examples':[a8j(0xcf),'maka\x20aws:ckp\x20--env\x20prod'],'mustBeInMakaProject':!![],'requiredOpts':['env'],'validOpts':[],'shortDesc':a8j(0xdf),'description':a8j(0xe1)},async function(a,b){const k=a8j;try{const c=new AWS(),d=this[k(0xd3)][k(0xe3)](b[k(0xd9)]);c[k(0xd2)]({'env':d});}catch(f){f&&Log[k(0xd7)](f),process[k(0xd5)](0x0);}},a8e);function a8d(a,b){const c=a8c();return a8d=function(d,e){d=d-0xcd;let f=c[d];return f;},a8d(a,b);}function a8c(){const l=['env','maka\x20aws:create-key-pair','891675CXmnym','1506792pthSdD','search','toString','Create\x20a\x20Key\x20Pair\x20for\x20AWS\x20an\x20EC2\x20instance','apply','\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','1904GQMCLO','getConfigFromShorthand','constructor','1204498IsyZgJ','create-key-pair','50589EOvNTz','192561UxfXdk','2FxQWmT','maka\x20aws:create-key-pair\x20--env\x20prod','(((.+)+)+)+$','2927732gPLuzL','createKeyPair','fsi','18fpGLHA','exit','43589180zWQiHI','error','ckp'];a8c=function(){return l;};return a8c();}
@@ -1 +1 @@
1
- function a9d(a,b){const c=a9c();return a9d=function(d,e){d=d-0xa6;let f=c[d];return f;},a9d(a,b);}const a9p=a9d;(function(a,b){const m=a9d,c=a();while(!![]){try{const d=parseInt(m(0xb0))/0x1*(parseInt(m(0xb3))/0x2)+-parseInt(m(0xb6))/0x3*(-parseInt(m(0xb2))/0x4)+parseInt(m(0xc4))/0x5*(-parseInt(m(0xb9))/0x6)+-parseInt(m(0xb5))/0x7*(parseInt(m(0xc1))/0x8)+parseInt(m(0xc5))/0x9*(parseInt(m(0xa8))/0xa)+parseInt(m(0xab))/0xb+-parseInt(m(0xae))/0xc*(parseInt(m(0xbb))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a9c,0xdd8c3));const a9b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a9d;if(c){const e=c[n(0xb8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a9a=a9b(this,function(){const o=a9d;return a9a[o(0xac)]()[o(0xb4)]('(((.+)+)+)+$')['toString']()['constructor'](a9a)[o(0xb4)](o(0xbc));});a9a();import a9e from'./aws.command.js';import{Command}from'../../command.js';import{Actions}from'../../tools/actions/actions.class.js';function a9c(){const s=['chooseVPC','Security\x20Group\x20Name:\x20[','16952aiUbpg','forEach','getMakaProjectConfig','15DQHxWo','9Gbmspx','List\x20is\x20not\x20all\x20numbers','name','csg','error','9848590nWUSSM','Web\x20App','\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','3429074VAJVJw','toString','22,80,443','420516wTyZAw','match','14ptzSjS','ask','4DfOaAR','223378UqnZzS','search','1897dXQJiR','1787649lBybCT','maka\x20aws:create-secuirty-group','apply','3458226JaGuuO','fsi','91KUcYpT','(((.+)+)+)+$','ec2createSG','Create\x20a\x20new\x20secuirty\x20group\x20in\x20a\x20VPC\x20for\x20an\x20EC2'];a9c=function(){return s;};return a9c();}import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command['create']({'name':'create-security-group','aliases':[a9p(0xa6)],'usage':'maka\x20aws\x20create-security-group','validOpts':[],'shortDesc':a9p(0xbe),'description':a9p(0xaa),'examples':[a9p(0xb7),'maka\x20aws:csg']},async function(a,b){const q=a9p;try{const c=new AWS(),d=this[q(0xba)][q(0xc3)](),{appName:f}=d,g=await c[q(0xbf)](),h=b['name']?b[q(0xc7)]:''+f,i=await Actions[q(0xb1)](q(0xc0)+h+']')||h,j=await Actions[q(0xb1)]('Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20')||q(0xad),k=j['split'](',');k[q(0xc2)](l=>{const r=q;if(!l[r(0xaf)](/^\d+$/))throw r(0xc6);}),await c[q(0xbd)]({'description':q(0xa9),'name':i,'vpcId':g,'sgPorts':k});}catch(l){l&&Log[q(0xa7)](l),process['exit'](0x1);}},a9e);
1
+ function a9c(){const s=['search','\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','List\x20is\x20not\x20all\x20numbers','error','name','apply','ask','Security\x20Group\x20Name:\x20[','getMakaProjectConfig','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','match','3727eFZilz','8KjGYZs','fsi','forEach','2392224rxLdxk','create','(((.+)+)+)+$','5074741NSbWzT','Create\x20a\x20new\x20secuirty\x20group\x20in\x20a\x20VPC\x20for\x20an\x20EC2','985BonVpa','maka\x20aws:csg','22,80,443','chooseVPC','3361422mmwmSv','19827840ozYlUF','constructor','ec2createSG','4103793CuMiVJ','28IHnpIY','6054dZjxUC'];a9c=function(){return s;};return a9c();}const a9p=a9d;(function(a,b){const m=a9d,c=a();while(!![]){try{const d=-parseInt(m(0xfb))/0x1*(-parseInt(m(0x10d))/0x2)+parseInt(m(0x108))/0x3+parseInt(m(0xff))/0x4+-parseInt(m(0x104))/0x5*(parseInt(m(0x10e))/0x6)+parseInt(m(0x102))/0x7+-parseInt(m(0xfc))/0x8*(-parseInt(m(0x10c))/0x9)+-parseInt(m(0x109))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a9c,0xbc02b));const a9b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a9d;if(c){const e=c[n(0xf5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a9a=a9b(this,function(){const o=a9d;return a9a['toString']()[o(0x10f)](o(0x101))['toString']()[o(0x10a)](a9a)[o(0x10f)](o(0x101));});a9a();import a9e from'./aws.command.js';function a9d(a,b){const c=a9c();return a9d=function(d,e){d=d-0xf3;let f=c[d];return f;},a9d(a,b);}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[a9p(0x100)]({'name':'create-security-group','aliases':['csg'],'usage':'maka\x20aws\x20create-security-group','validOpts':[],'shortDesc':a9p(0x103),'description':a9p(0x110),'examples':['maka\x20aws:create-secuirty-group',a9p(0x105)]},async function(a,b){const q=a9p;try{const c=new AWS(),d=this[q(0xfd)][q(0xf8)](),{appName:f}=d,g=await c[q(0x107)](),h=b[q(0xf4)]?b[q(0xf4)]:''+f,i=await Actions[q(0xf6)](q(0xf7)+h+']')||h,j=await Actions[q(0xf6)](q(0xf9))||q(0x106),k=j['split'](',');k[q(0xfe)](l=>{const r=q;if(!l[r(0xfa)](/^\d+$/))throw r(0x111);}),await c[q(0x10b)]({'description':'Web\x20App','name':i,'vpcId':g,'sgPorts':k});}catch(l){l&&Log[q(0xf3)](l),process['exit'](0x1);}},a9e);
@@ -1 +1 @@
1
- const a10h=a10d;(function(a,b){const f=a10d,c=a();while(!![]){try{const d=-parseInt(f(0x109))/0x1*(-parseInt(f(0xfc))/0x2)+parseInt(f(0x10c))/0x3+-parseInt(f(0x100))/0x4*(-parseInt(f(0x112))/0x5)+-parseInt(f(0x101))/0x6+-parseInt(f(0x10b))/0x7*(-parseInt(f(0x106))/0x8)+parseInt(f(0xf7))/0x9*(parseInt(f(0x10f))/0xa)+parseInt(f(0x104))/0xb*(-parseInt(f(0xfe))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a10c,0x7c2be));const a10b=(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;};}()),a10a=a10b(this,function(){const g=a10d;return a10a['toString']()[g(0x110)](g(0x10e))[g(0x111)]()[g(0x10d)](a10a)[g(0x110)]('(((.+)+)+)+$');});a10a();function a10c(){const j=['25430ZITuXG','search','toString','145880vjPPgp','189IDfjMn','decr','\x20in\x20region\x20','exit','error','2808arzoan','Repository\x20','11727996ldRltg','maka\x20aws:delete-ecr\x20--name=my-old-repo\x20--region=us-east-1','68DySSvj','412464OKsraU','name','maka\x20aws:decr\x20--name=my-old-repo\x20--region=us-east-1','22qxaDUl','ecrDeleteRepository','16kbqdOR','maka\x20aws:delete-ecr\x20--name\x20<name>\x20--region\x20<region>','region','341DXXhvp','\x20deleted\x20successfully\x20in\x20region\x20','2801526wYNnBx','2110263WjWNSm','constructor','(((.+)+)+)+$'];a10c=function(){return j;};return a10c();}import a10e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a10d(a,b){const c=a10c();return a10d=function(d,e){d=d-0xf7;let f=c[d];return f;},a10d(a,b);}import{Log}from'../../tools/log/log.class.js';Command['create']({'name':'delete-ecr','aliases':[a10h(0xf8)],'usage':a10h(0x107),'requiredOpts':[a10h(0x102),a10h(0x108)],'validOpts':[],'shortDesc':'Delete\x20an\x20Elastic\x20Container\x20Repository','examples':[a10h(0xff),a10h(0x103)]},async function(a,b){const i=a10h;try{const c=new AWS();await c[i(0x105)]({'repoName':b['name'],'region':b[i(0x108)]}),Log['success'](i(0xfd)+b[i(0x102)]+i(0x10a)+b[i(0x108)]+'.'),process[i(0xfa)](0x0);}catch(d){Log[i(0xfb)]('Failed\x20to\x20delete\x20the\x20repository:\x20'+b[i(0x102)]+i(0xf9)+b['region']+'.\x20Error:\x20'+d),process['exit'](0x1);}},a10e);
1
+ const a10i=a10d;(function(a,b){const f=a10d,c=a();while(!![]){try{const d=parseInt(f(0x10c))/0x1+-parseInt(f(0xf5))/0x2+parseInt(f(0x106))/0x3+parseInt(f(0xff))/0x4*(parseInt(f(0xfb))/0x5)+parseInt(f(0x10e))/0x6+parseInt(f(0xf8))/0x7+parseInt(f(0x10b))/0x8*(-parseInt(f(0x105))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a10c,0x4b5e5));const a10b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a10d;if(c){const e=c[g(0x109)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a10a=a10b(this,function(){const h=a10d;return a10a['toString']()[h(0x100)](h(0x108))[h(0xf9)]()[h(0x110)](a10a)[h(0x100)](h(0x108));});a10a();import a10e from'./aws.command.js';import{Command}from'../../command.js';function a10c(){const k=['Delete\x20an\x20Elastic\x20Container\x20Repository','constructor','Repository\x20','81428RMgPLo','error','region','3899077ROImVi','toString','\x20in\x20region\x20','169645KQTopp','name','decr','ecrDeleteRepository','48HjPyYK','search','maka\x20aws:delete-ecr\x20--name\x20<name>\x20--region\x20<region>','maka\x20aws:decr\x20--name=my-old-repo\x20--region=us-east-1','create','Failed\x20to\x20delete\x20the\x20repository:\x20','558XoTDwA','1526529jisjWg','exit','(((.+)+)+)+$','apply','maka\x20aws:delete-ecr\x20--name=my-old-repo\x20--region=us-east-1','213152BfoimZ','207308svaEgJ','\x20deleted\x20successfully\x20in\x20region\x20','1926246cZivbg'];a10c=function(){return k;};return a10c();}function a10d(a,b){const c=a10c();return a10d=function(d,e){d=d-0xf5;let f=c[d];return f;},a10d(a,b);}import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command[a10i(0x103)]({'name':'delete-ecr','aliases':[a10i(0xfd)],'usage':a10i(0x101),'requiredOpts':[a10i(0xfc),a10i(0xf7)],'validOpts':[],'shortDesc':a10i(0x10f),'examples':[a10i(0x10a),a10i(0x102)]},async function(a,b){const j=a10i;try{const c=new AWS();await c[j(0xfe)]({'repoName':b['name'],'region':b[j(0xf7)]}),Log['success'](j(0x111)+b['name']+j(0x10d)+b[j(0xf7)]+'.'),process['exit'](0x0);}catch(d){Log[j(0xf6)](j(0x104)+b[j(0xfc)]+j(0xfa)+b['region']+'.\x20Error:\x20'+d),process[j(0x107)](0x1);}},a10e);
@@ -1 +1 @@
1
- const a11i=a11d;function a11d(a,b){const c=a11c();return a11d=function(d,e){d=d-0x161;let f=c[d];return f;},a11d(a,b);}(function(a,b){const f=a11d,c=a();while(!![]){try{const d=-parseInt(f(0x170))/0x1*(parseInt(f(0x16e))/0x2)+parseInt(f(0x172))/0x3*(-parseInt(f(0x162))/0x4)+parseInt(f(0x167))/0x5+-parseInt(f(0x16c))/0x6+parseInt(f(0x16d))/0x7*(-parseInt(f(0x166))/0x8)+-parseInt(f(0x161))/0x9*(parseInt(f(0x16b))/0xa)+-parseInt(f(0x165))/0xb*(-parseInt(f(0x168))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a11c,0x53303));const a11b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a11d;if(c){const e=c[g(0x177)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a11a=a11b(this,function(){const h=a11d;return a11a['toString']()[h(0x164)](h(0x173))['toString']()[h(0x16f)](a11a)[h(0x164)](h(0x173));});a11a();import a11e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command['create']({'name':a11i(0x174),'aliases':['di'],'usage':a11i(0x171),'validOpts':[],'shortDesc':a11i(0x16a),'examples':['maka\x20aws:describe-instances',a11i(0x175)],'description':'\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'},async function(){const j=a11i;try{const a=new AWS();a[j(0x176)]();}catch(b){b&&Log[j(0x163)](b),process[j(0x169)](0x1);}},a11e);function a11c(){const k=['18CsXtDY','743240DfqoXc','error','search','11847OabRee','112RYZmtv','531005IQEpQM','25848yOuqns','exit','Get\x20EC2\x20instances\x20created\x20by\x20Maka-CLI','3108130kGmoYD','944016jyTdDj','111517sJjCVO','350596FxEfDC','constructor','3ircXIV','maka\x20aws:describe-instances','9inCMgb','(((.+)+)+)+$','describe-instances','maka\x20aws:di','ec2describeInstances','apply'];a11c=function(){return k;};return a11c();}
1
+ function a11d(a,b){const c=a11c();return a11d=function(d,e){d=d-0x184;let f=c[d];return f;},a11d(a,b);}const a11i=a11d;(function(a,b){const f=a11d,c=a();while(!![]){try{const d=-parseInt(f(0x18b))/0x1+parseInt(f(0x18c))/0x2*(parseInt(f(0x185))/0x3)+-parseInt(f(0x193))/0x4+-parseInt(f(0x18a))/0x5+-parseInt(f(0x18f))/0x6+parseInt(f(0x18e))/0x7+parseInt(f(0x196))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a11c,0x210e2));const a11b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a11d;if(c){const e=c[g(0x188)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a11a=a11b(this,function(){const h=a11d;return a11a[h(0x187)]()[h(0x195)](h(0x184))[h(0x187)]()[h(0x18d)](a11a)[h(0x195)]('(((.+)+)+)+$');});a11a();function a11c(){const k=['maka\x20aws:describe-instances','949464JXSCXi','Get\x20EC2\x20instances\x20created\x20by\x20Maka-CLI','search','3490640PZllck','maka\x20aws:di','ec2describeInstances','(((.+)+)+)+$','30708DVrRsN','create','toString','apply','exit','249355MVloks','214775MovSfV','42IHEkbq','constructor','1721356tzfwWl','1558728RdBrwc','describe-instances','\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'];a11c=function(){return k;};return a11c();}import a11e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command[a11i(0x186)]({'name':a11i(0x190),'aliases':['di'],'usage':a11i(0x192),'validOpts':[],'shortDesc':a11i(0x194),'examples':['maka\x20aws:describe-instances',a11i(0x197)],'description':a11i(0x191)},async function(){const j=a11i;try{const a=new AWS();a[j(0x198)]();}catch(b){b&&Log['error'](b),process[j(0x189)](0x1);}},a11e);
@@ -1 +1 @@
1
- const a12h=a12d;(function(a,b){const f=a12d,c=a();while(!![]){try{const d=-parseInt(f(0x7d))/0x1*(parseInt(f(0x8c))/0x2)+parseInt(f(0x80))/0x3+-parseInt(f(0x8e))/0x4*(parseInt(f(0x89))/0x5)+parseInt(f(0x85))/0x6*(-parseInt(f(0x84))/0x7)+parseInt(f(0x87))/0x8+-parseInt(f(0x8f))/0x9*(parseInt(f(0x8b))/0xa)+parseInt(f(0x8d))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a12c,0x3a81c));function a12c(){const j=['2543694RbXKGR','dkp','3168128zZXZzo','constructor','231410uzjmcv','maka\x20aws:dkp','470EMEPBH','56EMEPqL','9657956zwWuFm','36cfkABs','36jqYOBg','search','describe-key-pairs','8836IXKOGa','toString','maka\x20aws:describe-key-pairs','161145zSUTEU','create','(((.+)+)+)+$','exit','7XqmZxd'];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[g(0x7e)]()[g(0x90)](g(0x82))['toString']()[g(0x88)](a12a)['search']('(((.+)+)+)+$');});function a12d(a,b){const c=a12c();return a12d=function(d,e){d=d-0x7d;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{Log}from'../../tools/log/log.class.js';Command[a12h(0x81)]({'name':a12h(0x91),'aliases':[a12h(0x86)],'usage':a12h(0x7f),'validOpts':[],'shortDesc':'List\x20the\x20current\x20public\x20keys\x20stored\x20in\x20AWS','examples':['maka\x20aws:describe-key-pairs',a12h(0x8a)]},async function(){const i=a12h;try{const a=new AWS();a['ec2describeKeys']();}catch(b){b&&Log['error'](b),process[i(0x83)](0x0);}},a12e);
1
+ const a12i=a12d;function a12c(){const k=['25868WWdTUN','maka\x20aws:describe-key-pairs','147NQFHAa','48286NfNcNB','9541973KHAjBb','dkp','exit','apply','maka\x20aws:dkp','2514UPktGw','create','6495160uOEiyq','2155Letmqn','24wxdITU','ec2describeKeys','10177030jIrOOj','toString','10371168syXDtW','describe-key-pairs','(((.+)+)+)+$','11BxQdLk','List\x20the\x20current\x20public\x20keys\x20stored\x20in\x20AWS','error'];a12c=function(){return k;};return a12c();}(function(a,b){const f=a12d,c=a();while(!![]){try{const d=-parseInt(f(0x1e2))/0x1*(-parseInt(f(0x1ec))/0x2)+parseInt(f(0x1e1))/0x3*(parseInt(f(0x1df))/0x4)+parseInt(f(0x1eb))/0x5*(-parseInt(f(0x1e8))/0x6)+parseInt(f(0x1e3))/0x7+parseInt(f(0x1ea))/0x8+-parseInt(f(0x1f0))/0x9+parseInt(f(0x1ee))/0xa*(-parseInt(f(0x1dc))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a12c,0xaff41));const a12b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a12d;if(c){const e=c[g(0x1e6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a12a=a12b(this,function(){const h=a12d;return a12a[h(0x1ef)]()['search']('(((.+)+)+)+$')['toString']()['constructor'](a12a)['search'](h(0x1db));});function a12d(a,b){const c=a12c();return a12d=function(d,e){d=d-0x1da;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{Log}from'../../tools/log/log.class.js';Command[a12i(0x1e9)]({'name':a12i(0x1da),'aliases':[a12i(0x1e4)],'usage':a12i(0x1e0),'validOpts':[],'shortDesc':a12i(0x1dd),'examples':['maka\x20aws:describe-key-pairs',a12i(0x1e7)]},async function(){const j=a12i;try{const a=new AWS();a[j(0x1ed)]();}catch(b){b&&Log[j(0x1de)](b),process[j(0x1e5)](0x0);}},a12e);
@@ -1 +1 @@
1
- const a13n=a13d;(function(a,b){const l=a13d,c=a();while(!![]){try{const d=parseInt(l(0x1af))/0x1+parseInt(l(0x1c2))/0x2+parseInt(l(0x1a8))/0x3+-parseInt(l(0x1c0))/0x4+-parseInt(l(0x1b5))/0x5*(parseInt(l(0x1c4))/0x6)+-parseInt(l(0x1b0))/0x7*(parseInt(l(0x1ba))/0x8)+parseInt(l(0x1ab))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a13c,0x524d5));function a13d(a,b){const c=a13c();return a13d=function(d,e){d=d-0x1a2;let f=c[d];return f;},a13d(a,b);}const a13b=(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;};}()),a13a=a13b(this,function(){const m=a13d;return a13a[m(0x1a2)]()[m(0x1b3)](m(0x1a6))[m(0x1a2)]()[m(0x1be)](a13a)[m(0x1b3)](m(0x1a6));});a13a();import a13e from'./aws.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';function a13c(){const r=['200pyXWVs','maka\x20aws:dsg','bright','Not\x20deleting\x20secuirty\x20group','\x20SGID:\x20','446480gjUeyi','error','\x20SG\x20NAME:\x20','deleteSecurityGroup','constructor','exit','1414808AuczWl','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','364744vdTdFd','Please\x20choose\x20a\x20SG\x20ID\x20to\x20delete:','4368HHVfnp','maka\x20aws:delete-sg','toString','appName','confirm','notice','(((.+)+)+)+$','ask','596955WfTboa','Delete\x20a\x20security\x20group\x20on\x20a\x20VPC','ID:\x20','3990150YUsFfp','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','isMakaProject','create','230084aKFqcT','42DhYgaJ','sgId','name','search','getMakaProjectConfig'];a13c=function(){return r;};return a13c();}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[a13n(0x1ae)]({'name':'delete-security-group','aliases':['dsg'],'usage':a13n(0x1c5),'validOpts':[],'shortDesc':a13n(0x1a9),'examples':['maka\x20aws:delete-sg',a13n(0x1b6)]},async function(){const o=a13n;try{const a=new AWS(),b=new FSI(),c=b[o(0x1ad)]();let d='';if(c){const j=b[o(0x1b4)]();d=j[o(0x1a3)];}const {sgList:f}=await a['getSecurityGroups']();f['forEach'](function(k){const p=o;c&&k[p(0x1b2)]['includes'](d)?Log[p(0x1a5)](p(0x1aa)+k['id']+'\x20SG\x20NAME:\x20'+k[p(0x1b2)]+p(0x1b9)+k[p(0x1b1)]):Log[p(0x1b7)](p(0x1aa)+k['id']+p(0x1bc)+k[p(0x1b2)]+'\x20SGID:\x20'+k['sgId']);});let g='';const h=await Actions[o(0x1a7)](o(0x1c3));f['forEach'](function(k){const q=o;k['id']===parseInt(h)&&(g=k[q(0x1b1)]);});if(!g)throw Log[o(0x1bb)](o(0x1ac));const i=await Actions[o(0x1a4)]('Deleting\x20a\x20'+g+o(0x1c1),![]);i?(await a[o(0x1bd)](g),Log['success']('Deleted\x20'+g)):Log[o(0x1bb)](o(0x1b8)),process[o(0x1bf)](0x0);}catch(k){k&&Log['error'](k),process[o(0x1bf)](0x1);}},a13e);
1
+ const a13o=a13d;(function(a,b){const l=a13d,c=a();while(!![]){try{const d=-parseInt(l(0x16f))/0x1*(parseInt(l(0x156))/0x2)+parseInt(l(0x14b))/0x3*(-parseInt(l(0x152))/0x4)+-parseInt(l(0x151))/0x5+-parseInt(l(0x154))/0x6+parseInt(l(0x169))/0x7*(-parseInt(l(0x15a))/0x8)+-parseInt(l(0x167))/0x9*(-parseInt(l(0x157))/0xa)+parseInt(l(0x14a))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a13c,0xb9a33));const a13b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a13d;if(c){const e=c[m(0x14c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a13a=a13b(this,function(){const n=a13d;return a13a[n(0x168)]()['search'](n(0x171))[n(0x168)]()[n(0x166)](a13a)[n(0x153)](n(0x171));});a13a();function a13c(){const s=['appName','notice','error','deleteSecurityGroup','maka\x20aws:delete-sg','9CMExnt','dsg','(((.+)+)+)+$','Please\x20choose\x20a\x20SG\x20ID\x20to\x20delete:','40789177CUIrVW','129yylJrn','apply','ID:\x20','getMakaProjectConfig','forEach','maka\x20aws:dsg','2580930yudyOD','44780JQANzo','search','7070322qxPdbW','confirm','284446wucIGs','4660bCcIUq','getSecurityGroups','includes','40OdpheE','create','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','\x20SGID:\x20','sgId','Deleting\x20a\x20','exit','isMakaProject','delete-security-group','Delete\x20a\x20security\x20group\x20on\x20a\x20VPC','name','constructor','15291KtibhP','toString','396907RPhPUj'];a13c=function(){return s;};return a13c();}import a13e 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';function a13d(a,b){const c=a13c();return a13d=function(d,e){d=d-0x149;let f=c[d];return f;},a13d(a,b);}import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';Command[a13o(0x15b)]({'name':a13o(0x163),'aliases':[a13o(0x170)],'usage':a13o(0x16e),'validOpts':[],'shortDesc':a13o(0x164),'examples':[a13o(0x16e),a13o(0x150)]},async function(){const p=a13o;try{const a=new AWS(),b=new FSI(),c=b[p(0x162)]();let d='';if(c){const j=b[p(0x14e)]();d=j[p(0x16a)];}const {sgList:f}=await a[p(0x158)]();f[p(0x14f)](function(k){const q=p;c&&k[q(0x165)][q(0x159)](d)?Log[q(0x16b)](q(0x14d)+k['id']+'\x20SG\x20NAME:\x20'+k[q(0x165)]+q(0x15e)+k[q(0x15f)]):Log['bright'](q(0x14d)+k['id']+'\x20SG\x20NAME:\x20'+k[q(0x165)]+q(0x15e)+k[q(0x15f)]);});let g='';const h=await Actions['ask'](p(0x149));f[p(0x14f)](function(k){const r=p;k['id']===parseInt(h)&&(g=k[r(0x15f)]);});if(!g)throw Log[p(0x16c)](p(0x15c));const i=await Actions[p(0x155)](p(0x160)+g+p(0x15d),![]);i?(await a[p(0x16d)](g),Log['success']('Deleted\x20'+g)):Log['error']('Not\x20deleting\x20secuirty\x20group'),process[p(0x161)](0x0);}catch(k){k&&Log[p(0x16c)](k),process['exit'](0x1);}},a13e);
@@ -1 +1 @@
1
- const a14i=a14d;(function(a,b){const f=a14d,c=a();while(!![]){try{const d=-parseInt(f(0x138))/0x1*(parseInt(f(0x142))/0x2)+parseInt(f(0x13a))/0x3*(-parseInt(f(0x136))/0x4)+-parseInt(f(0x13f))/0x5*(parseInt(f(0x132))/0x6)+parseInt(f(0x141))/0x7+-parseInt(f(0x130))/0x8*(-parseInt(f(0x12d))/0x9)+-parseInt(f(0x12b))/0xa*(-parseInt(f(0x12c))/0xb)+parseInt(f(0x143))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a14c,0x1a105));const a14b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a14d;if(c){const e=c[g(0x135)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a14a=a14b(this,function(){const h=a14d;return a14a[h(0x134)]()['search']('(((.+)+)+)+$')[h(0x134)]()[h(0x137)](a14a)[h(0x13d)]('(((.+)+)+)+$');});function a14d(a,b){const c=a14c();return a14d=function(d,e){d=d-0x12b;let f=c[d];return f;},a14d(a,b);}a14a();function a14c(){const k=['90GQgGIY','List\x20Elastic\x20Container\x20Repositories\x20across\x20regions','exit','92200PkpfgO','success','135678vltVBe','regions','toString','apply','160ENjSaT','constructor','822Bjodne','create','9354MmrmrK','error','lecr','search','maka\x20aws:list-ecr\x20[--regions=<region1,region2,...>]','45wpuoYX','list-ecr','20783UyEjYN','138nRNlHU','4130496kAjsXn','10EKtYVM','322135xYPFkg'];a14c=function(){return k;};return a14c();}import a14e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command[a14i(0x139)]({'name':a14i(0x140),'aliases':[a14i(0x13c)],'usage':a14i(0x13e),'requiredOpts':[],'validOpts':[a14i(0x133)],'shortDesc':a14i(0x12e),'examples':['maka\x20aws:list-ecr','maka\x20aws:lecr\x20--regions=us-east-1,eu-west-1','maka\x20aws:lecr\x20--regions=all']},async function(a,b){const j=a14i;try{const c=new AWS();await c['listAllEcrRepositories'](b['regions']),Log[j(0x131)]('Completed\x20listing\x20ECR\x20repositories.'),process[j(0x12f)](0x0);}catch(d){Log[j(0x13b)]('An\x20error\x20occurred\x20while\x20listing\x20ECR\x20repositories:\x20'+d),process[j(0x12f)](0x1);}},a14e);
1
+ const a14i=a14d;(function(a,b){const f=a14d,c=a();while(!![]){try{const d=-parseInt(f(0x188))/0x1+-parseInt(f(0x189))/0x2+parseInt(f(0x17d))/0x3+-parseInt(f(0x17b))/0x4+-parseInt(f(0x187))/0x5+-parseInt(f(0x17c))/0x6+-parseInt(f(0x18b))/0x7*(-parseInt(f(0x179))/0x8);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a14c,0xb1ab2));const a14b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a14d;if(c){const e=c[g(0x18a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a14a=a14b(this,function(){const h=a14d;return a14a[h(0x18c)]()[h(0x17a)]('(((.+)+)+)+$')[h(0x18c)]()[h(0x180)](a14a)[h(0x17a)](h(0x18e));});a14a();import a14e from'./aws.command.js';function a14d(a,b){const c=a14c();return a14d=function(d,e){d=d-0x178;let f=c[d];return f;},a14d(a,b);}import{Command}from'../../command.js';function a14c(){const k=['apply','14XgoUFK','toString','maka\x20aws:list-ecr','(((.+)+)+)+$','regions','21976816XWAvWm','search','4375548EhtehH','7130460ihuErA','264339PnIxSw','success','List\x20Elastic\x20Container\x20Repositories\x20across\x20regions','constructor','create','An\x20error\x20occurred\x20while\x20listing\x20ECR\x20repositories:\x20','listAllEcrRepositories','list-ecr','exit','maka\x20aws:lecr\x20--regions=all','1044315YzYaak','923654QkOhsU','2879546okpFuG'];a14c=function(){return k;};return a14c();}import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command[a14i(0x181)]({'name':a14i(0x184),'aliases':['lecr'],'usage':'maka\x20aws:list-ecr\x20[--regions=<region1,region2,...>]','requiredOpts':[],'validOpts':[a14i(0x178)],'shortDesc':a14i(0x17f),'examples':[a14i(0x18d),'maka\x20aws:lecr\x20--regions=us-east-1,eu-west-1',a14i(0x186)]},async function(a,b){const j=a14i;try{const c=new AWS();await c[j(0x183)](b[j(0x178)]),Log[j(0x17e)]('Completed\x20listing\x20ECR\x20repositories.'),process[j(0x185)](0x0);}catch(d){Log['error'](j(0x182)+d),process[j(0x185)](0x1);}},a14e);
@@ -1 +1 @@
1
- function a15d(a,b){const c=a15c();return a15d=function(d,e){d=d-0x1c1;let f=c[d];return f;},a15d(a,b);}const a15i=a15d;(function(a,b){const f=a15d,c=a();while(!![]){try{const d=-parseInt(f(0x1dd))/0x1*(-parseInt(f(0x1e2))/0x2)+-parseInt(f(0x1ca))/0x3+-parseInt(f(0x1cc))/0x4*(parseInt(f(0x1cf))/0x5)+parseInt(f(0x1ce))/0x6+-parseInt(f(0x1c6))/0x7*(parseInt(f(0x1d8))/0x8)+parseInt(f(0x1c3))/0x9*(-parseInt(f(0x1d6))/0xa)+-parseInt(f(0x1c1))/0xb*(-parseInt(f(0x1e1))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a15c,0xd4b02));const a15b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a15d;if(c){const e=c[g(0x1d9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a15a=a15b(this,function(){const h=a15d;return a15a['toString']()[h(0x1d5)](h(0x1c7))['toString']()[h(0x1da)](a15a)[h(0x1d5)](h(0x1c7));});a15a();import a15e 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[a15i(0x1cb)]({'name':a15i(0x1d4),'aliases':[a15i(0x1d7)],'usage':'maka\x20aws:reboot-instance','validOpts':[],'shortDesc':a15i(0x1c4),'examples':[a15i(0x1c5),a15i(0x1e0)]},async function(){const j=a15i;try{const a=new AWS(),b=await a[j(0x1cd)]();if(b?.[j(0x1d3)]===j(0x1c9)){const c=await Actions[j(0x1d1)]('[!!]\x20You\x20are\x20about\x20to\x20reboot\x20instance:\x20'+b['name']+j(0x1d0));c&&b['instanceId']?a[j(0x1c2)]({'instanceId':b[j(0x1de)]}):Log[j(0x1dc)](j(0x1db)+b[j(0x1c8)]+j(0x1d2));}else Log[j(0x1dc)]('There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20rebooted;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.');}catch(d){d&&Log[j(0x1dc)](d),process[j(0x1df)](0x1);}},a15e);function a15c(){const k=['chooseInstance','2721912trOVmv','10iorXWH','\x20Ready?','confirm','\x20is\x20still\x20running.','status','reboot-instance','search','10kZEESx','rbi','16auLFQv','apply','constructor','You\x20have\x20aborted\x20the\x20reboot.\x20\x20The\x20instance:\x20','error','44yJJWfI','instanceId','exit','maka\x20aws:rbi','4141140vqNZLc','62630vliHjf','55QGJJtp','ec2rebootInstance','2603241AmMJWU','Reboot\x20an\x20EC2\x20instance','maka\x20aws:reboot-instance','2220932VtmKNg','(((.+)+)+)+$','name','running','1349034ZEeMGm','create','2624676ohJkff'];a15c=function(){return k;};return a15c();}
1
+ const a15i=a15d;(function(a,b){const f=a15d,c=a();while(!![]){try{const d=-parseInt(f(0x1f7))/0x1+-parseInt(f(0x1fc))/0x2*(-parseInt(f(0x1fb))/0x3)+-parseInt(f(0x208))/0x4+-parseInt(f(0x200))/0x5*(parseInt(f(0x210))/0x6)+parseInt(f(0x20a))/0x7+-parseInt(f(0x1fa))/0x8+parseInt(f(0x1f9))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a15c,0x55215));const a15b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a15d;if(c){const e=c[g(0x1f8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a15a=a15b(this,function(){const h=a15d;return a15a[h(0x20e)]()[h(0x20c)](h(0x202))[h(0x20e)]()[h(0x1f6)](a15a)['search'](h(0x202));});a15a();import a15e from'./aws.command.js';import{Command}from'../../command.js';function a15c(){const k=['status','chooseInstance','running','1635010qtRuXO','You\x20have\x20aborted\x20the\x20reboot.\x20\x20The\x20instance:\x20','(((.+)+)+)+$','\x20Ready?','maka\x20aws:reboot-instance','exit','Reboot\x20an\x20EC2\x20instance','instanceId','857852YArNRi','ec2rebootInstance','3959935OlJAeq','maka\x20aws:rbi','search','create','toString','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20rebooted;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','6Xzxwcy','name','error','\x20is\x20still\x20running.','constructor','56047DDBZha','apply','5399748ZmxveG','2822360ExLhaK','7017CFLLbg','114VFwHlS'];a15c=function(){return k;};return a15c();}function a15d(a,b){const c=a15c();return a15d=function(d,e){d=d-0x1f3;let f=c[d];return f;},a15d(a,b);}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[a15i(0x20d)]({'name':'reboot-instance','aliases':['rbi'],'usage':a15i(0x204),'validOpts':[],'shortDesc':a15i(0x206),'examples':['maka\x20aws:reboot-instance',a15i(0x20b)]},async function(){const j=a15i;try{const a=new AWS(),b=await a[j(0x1fe)]();if(b?.[j(0x1fd)]===j(0x1ff)){const c=await Actions['confirm']('[!!]\x20You\x20are\x20about\x20to\x20reboot\x20instance:\x20'+b[j(0x1f3)]+j(0x203));c&&b[j(0x207)]?a[j(0x209)]({'instanceId':b[j(0x207)]}):Log[j(0x1f4)](j(0x201)+b[j(0x1f3)]+j(0x1f5));}else Log[j(0x1f4)](j(0x20f));}catch(d){d&&Log['error'](d),process[j(0x205)](0x1);}},a15e);
@@ -1 +1 @@
1
- const a16I=a16d;function a16d(a,b){const c=a16c();return a16d=function(d,e){d=d-0xb8;let f=c[d];return f;},a16d(a,b);}(function(a,b){const E=a16d,c=a();while(!![]){try{const d=parseInt(E(0xc7))/0x1+parseInt(E(0xb8))/0x2*(-parseInt(E(0xdf))/0x3)+parseInt(E(0xc6))/0x4+-parseInt(E(0xbc))/0x5*(parseInt(E(0xc4))/0x6)+parseInt(E(0xc0))/0x7+parseInt(E(0xe2))/0x8*(parseInt(E(0xcb))/0x9)+-parseInt(E(0xba))/0xa*(-parseInt(E(0xd2))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a16c,0x94beb));const a16b=(function(){let a=!![];return function(b,c){const d=a?function(){const F=a16d;if(c){const e=c[F(0xd9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a16a=a16b(this,function(){const G=a16d;return a16a[G(0xbb)]()[G(0xbe)](G(0xe1))[G(0xbb)]()[G(0xcf)](a16a)[G(0xbe)]('(((.+)+)+)+$');});a16a();import a16e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a16c(){const K=['Register\x20a\x20domain\x20name\x20with\x20AWS\x20Route\x2053','PUBLIC_BODY','error','Contact\x20Email\x20[mail@example.com]:\x20','domain','123\x20Glorious\x20Way','PERSON','Address\x20Line\x201\x20[123\x20Glorious\x20Way]:','warn','+1.5555555555','22526rqgJqO','\x20is\x20available\x20for:','20wmPufx','toString','5vJOMak','Domain\x20name\x20is\x20unavailable','search','Contact\x20First\x20Name\x20[Contact]:\x20','2833810DzVSAA','Contact\x20Fax\x20Number\x20[+1.5555555556]:\x20','My\x20Comanpy,\x20LLC.','Person','1413264DrtcgF','rdn','123056zyVyIj','47788ZMXtPm','values','State\x20[HI]:\x20','confirm','18cMXlPq','Do\x20you\x20wish\x20to\x20register\x20','\x20years\x20(','ask','constructor','Contact\x20Phone\x20Number\x20[+1.5555555555]:\x20','Contact','3187624KMZahi','Contact\x20Last\x20Name\x20[Person]:\x20','OrganizationName','Address\x20Line\x202:\x20','\x20/\x20Year\x20\x0a','checkDomainAvailability','\x20for\x20','apply','Duration\x20in\x20years\x20[1]:\x20','Are\x20you\x20sure?','contactType','Zip\x20Code\x20[96816]:\x20','COMPANY','93fpPUCb','Invalid\x202\x20character\x20country\x20code','(((.+)+)+)+$','524024GiFSIL','Organization\x20Name\x20[My\x20Company,\x20LLC.]:','create','Choose\x20contact\x20type','\x20/\x20Year)','registerDomain'];a16c=function(){return K;};return a16c();}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=a16d;return Object[H(0xc8)](CountryCode)['includes'](a);}function getCountryCodeEnum(a){if(isValidCountryCode(a))return a;return undefined;}Command[a16I(0xe4)]({'name':'register-domain-name','aliases':[a16I(0xc5)],'usage':'maka\x20aws:register-domain-name','requiredOpts':['domain'],'validOpts':[],'shortDesc':a16I(0xe8),'examples':['maka\x20aws:register-domain-name\x20--domain=example.com','maka\x20aws:rdn\x20--domain=example.com']},async function(a,b){const J=a16I;try{const c=b[J(0xec)],d=new AWS(),{available:f,cost:g}=await d[J(0xd7)](c);if(f&&g){Log['notice']('The\x20domain\x20name:\x20'+c+J(0xb9));const {Price:h,Currency:i}=g;Log['warn']('\x20\x20'+h+'\x20'+i+J(0xd6));const j=await Actions[J(0xca)](J(0xcc)+c+'\x20?',![]);if(j){const k={'type':'list','name':J(0xdc),'message':J(0xe5),'choices':['ASSOCIATION',J(0xde),J(0xee),J(0xe9),'RESELLER']},l=await Actions[J(0xce)](J(0xda))||'1',m=await Actions[J(0xce)](J(0xbf))||J(0xd1),n=await Actions[J(0xce)](J(0xd3))||J(0xc3),{contactType:o}=await Actions['options'](k),p=await Actions[J(0xce)](J(0xef))||J(0xed),q=await Actions[J(0xce)](J(0xd5)),r=await Actions[J(0xce)](J(0xdd))||'96816',s=await Actions[J(0xce)](J(0xc9))||'HI',t=await Actions[J(0xce)]('Country\x20Code\x20[US]:\x20')||'US',u=getCountryCodeEnum(t);if(!u)throw Log[J(0xea)](J(0xe0));const v=await Actions['ask'](J(0xd0))||J(0xf1),w=await Actions[J(0xce)](J(0xc1))||'+1.5555555556',x=await Actions['ask'](J(0xeb))||'mail@example.com',y=await Actions[J(0xca)]('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(0xee)){const C=await Actions[J(0xce)](J(0xe3))||J(0xc2);z[J(0xd4)]=C;}const A=h||0x0*parseInt(l);Log['notice']('Please\x20review\x20your\x20responses,\x20Amazon\x20will\x20bill\x20you:'),Log[J(0xf0)](A+'\x20'+i+J(0xd8)+l+J(0xcd)+h+'\x20'+i+J(0xe6));const B=await Actions[J(0xca)](J(0xdb));B&&await d[J(0xe7)](z,c,parseInt(l),y);}}else throw J(0xbd);}catch(D){D&&Log[J(0xea)](D),process['exit'](0x0);}},a16e);
1
+ const a16I=a16d;(function(a,b){const E=a16d,c=a();while(!![]){try{const d=parseInt(E(0x1a6))/0x1+-parseInt(E(0x1b2))/0x2*(-parseInt(E(0x1a8))/0x3)+-parseInt(E(0x1b6))/0x4+parseInt(E(0x1a2))/0x5+parseInt(E(0x1bb))/0x6*(parseInt(E(0x19e))/0x7)+-parseInt(E(0x181))/0x8*(-parseInt(E(0x198))/0x9)+-parseInt(E(0x190))/0xa*(parseInt(E(0x1a5))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a16c,0x30f2d));const a16b=(function(){let a=!![];return function(b,c){const d=a?function(){const F=a16d;if(c){const e=c[F(0x182)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a16a=a16b(this,function(){const G=a16d;return a16a[G(0x199)]()[G(0x191)]('(((.+)+)+)+$')['toString']()[G(0x1b8)](a16a)[G(0x191)](G(0x18f));});a16a();import a16e from'./aws.command.js';import{Command}from'../../command.js';function a16d(a,b){const c=a16c();return a16d=function(d,e){d=d-0x17e;let f=c[d];return f;},a16d(a,b);}import{AWS}from'../../tools/aws/aws.class.js';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=a16d;return Object[H(0x1ba)](CountryCode)[H(0x17f)](a);}function getCountryCodeEnum(a){if(isValidCountryCode(a))return a;return undefined;}Command[a16I(0x1b3)]({'name':a16I(0x1b1),'aliases':[a16I(0x1ad)],'usage':a16I(0x1b4),'requiredOpts':[a16I(0x19f)],'validOpts':[],'shortDesc':a16I(0x194),'examples':['maka\x20aws:register-domain-name\x20--domain=example.com',a16I(0x1b0)]},async function(a,b){const J=a16I;try{const c=b[J(0x19f)],d=new AWS(),{available:f,cost:g}=await d['checkDomainAvailability'](c);if(f&&g){Log['notice']('The\x20domain\x20name:\x20'+c+J(0x18e));const {Price:h,Currency:i}=g;Log[J(0x188)]('\x20\x20'+h+'\x20'+i+'\x20/\x20Year\x20\x0a');const j=await Actions[J(0x186)](J(0x1a7)+c+'\x20?',![]);if(j){const k={'type':J(0x19a),'name':'contactType','message':J(0x184),'choices':['ASSOCIATION',J(0x1b9),J(0x187),J(0x17e),J(0x1a3)]},l=await Actions[J(0x1ab)](J(0x18a))||'1',m=await Actions[J(0x1ab)]('Contact\x20First\x20Name\x20[Contact]:\x20')||'Contact',n=await Actions[J(0x1ab)]('Contact\x20Last\x20Name\x20[Person]:\x20')||J(0x18b),{contactType:o}=await Actions['options'](k),p=await Actions['ask'](J(0x1a4))||J(0x196),q=await Actions[J(0x1ab)]('Address\x20Line\x202:\x20'),r=await Actions['ask'](J(0x1a0))||J(0x19c),s=await Actions[J(0x1ab)](J(0x1b7))||'HI',t=await Actions[J(0x1ab)](J(0x189))||'US',u=getCountryCodeEnum(t);if(!u)throw Log['error'](J(0x195));const v=await Actions[J(0x1ab)](J(0x18d))||J(0x18c),w=await Actions[J(0x1ab)]('Contact\x20Fax\x20Number\x20[+1.5555555556]:\x20')||J(0x180),x=await Actions[J(0x1ab)]('Contact\x20Email\x20[mail@example.com]:\x20')||J(0x1b5),y=await Actions[J(0x186)](J(0x185)),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(0x187)){const C=await Actions['ask'](J(0x1ac))||J(0x193);z[J(0x1aa)]=C;}const A=h||0x0*parseInt(l);Log[J(0x1af)](J(0x1a1)),Log[J(0x188)](A+'\x20'+i+J(0x197)+l+J(0x183)+h+'\x20'+i+J(0x192));const B=await Actions[J(0x186)](J(0x1a9));B&&await d[J(0x19b)](z,c,parseInt(l),y);}}else throw J(0x19d);}catch(D){D&&Log['error'](D),process[J(0x1ae)](0x0);}},a16e);function a16c(){const K=['apply','\x20years\x20(','Choose\x20contact\x20type','Auto\x20Renew:\x20','confirm','PERSON','warn','Country\x20Code\x20[US]:\x20','Duration\x20in\x20years\x20[1]:\x20','Person','+1.5555555555','Contact\x20Phone\x20Number\x20[+1.5555555555]:\x20','\x20is\x20available\x20for:','(((.+)+)+)+$','1070nlswWY','search','\x20/\x20Year)','My\x20Comanpy,\x20LLC.','Register\x20a\x20domain\x20name\x20with\x20AWS\x20Route\x2053','Invalid\x202\x20character\x20country\x20code','123\x20Glorious\x20Way','\x20for\x20','63ZeHHmf','toString','list','registerDomain','96816','Domain\x20name\x20is\x20unavailable','25837OMlqhr','domain','Zip\x20Code\x20[96816]:\x20','Please\x20review\x20your\x20responses,\x20Amazon\x20will\x20bill\x20you:','961265ZJVgnT','RESELLER','Address\x20Line\x201\x20[123\x20Glorious\x20Way]:','111694fBalpr','200878kCbkMC','Do\x20you\x20wish\x20to\x20register\x20','21LxxLtE','Are\x20you\x20sure?','OrganizationName','ask','Organization\x20Name\x20[My\x20Company,\x20LLC.]:','rdn','exit','notice','maka\x20aws:rdn\x20--domain=example.com','register-domain-name','49826ERApmj','create','maka\x20aws:register-domain-name','mail@example.com','130040oFGEfQ','State\x20[HI]:\x20','constructor','COMPANY','values','582xdCwvr','PUBLIC_BODY','includes','+1.5555555556','450208oNEVkU'];a16c=function(){return K;};return a16c();}
@@ -1 +1 @@
1
- const a17k=a17d;(function(a,b){const h=a17d,c=a();while(!![]){try{const d=parseInt(h(0x84))/0x1+parseInt(h(0x70))/0x2+-parseInt(h(0x8c))/0x3*(parseInt(h(0x7b))/0x4)+-parseInt(h(0x78))/0x5+-parseInt(h(0x74))/0x6+-parseInt(h(0x72))/0x7*(-parseInt(h(0x76))/0x8)+parseInt(h(0x79))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a17c,0x533c3));const a17b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a17d;if(c){const e=c[i(0x7d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a17a=a17b(this,function(){const j=a17d;return a17a['toString']()['search'](j(0x75))[j(0x7a)]()['constructor'](a17a)[j(0x7f)](j(0x75));});function a17c(){const m=['confirm','Choose\x20from\x20your\x20list\x20of\x20public\x20keys\x20to\x20delete','Deleting\x20a\x20','success','6McejZJ','\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','Not\x20deleting\x20keypair','84060dwNwst','exit','329fVkcuW','error','453972XyTRJJ','(((.+)+)+)+$','35368xNmjUZ','remove-key-pair','714210xLglMU','4891338qwcbye','toString','1329208mIBjgB','deleteKeyPair','apply','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','search','create','ec2describeKeys','forEach','maka\x20aws:remove-key-pair','430740xPuhCy','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','Please\x20choose\x20a\x20key\x20to\x20delete:','rkp'];a17c=function(){return m;};return a17c();}function a17d(a,b){const c=a17c();return a17d=function(d,e){d=d-0x6f;let f=c[d];return f;},a17d(a,b);}a17a();import a17e 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[a17k(0x80)]({'name':a17k(0x77),'aliases':[a17k(0x87)],'usage':a17k(0x83),'validOpts':[],'shortDesc':a17k(0x89),'description':a17k(0x8d),'examples':[a17k(0x83),'maka\x20aws:rkp']},async function(){const l=a17k;try{const a=new AWS(),b=await a[l(0x81)]();let c=undefined;const d=await Actions['ask'](l(0x86));b?.[l(0x82)](function(g){g['id']===parseInt(d)&&(c=g['name']);});if(!c)throw Log[l(0x73)](l(0x85));const f=await Actions[l(0x88)](l(0x8a)+c+l(0x7e),![]);f?(await a[l(0x7c)](c),Log[l(0x8b)]('Deleted\x20'+c)):Log[l(0x73)](l(0x6f)),process[l(0x71)](0x0);}catch(g){g&&Log[l(0x73)](g),process[l(0x71)](0x1);}},a17e);
1
+ const a17k=a17d;(function(a,b){const h=a17d,c=a();while(!![]){try{const d=parseInt(h(0x17c))/0x1*(-parseInt(h(0x173))/0x2)+parseInt(h(0x172))/0x3*(-parseInt(h(0x177))/0x4)+parseInt(h(0x16a))/0x5*(-parseInt(h(0x180))/0x6)+parseInt(h(0x16d))/0x7*(parseInt(h(0x17f))/0x8)+-parseInt(h(0x184))/0x9+-parseInt(h(0x17d))/0xa+parseInt(h(0x17a))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a17c,0x274d9));const a17b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a17d;if(c){const e=c[i(0x181)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a17a=a17b(this,function(){const j=a17d;return a17a[j(0x178)]()[j(0x170)]('(((.+)+)+)+$')[j(0x178)]()[j(0x166)](a17a)['search']('(((.+)+)+)+$');});a17a();import a17e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a17d(a,b){const c=a17c();return a17d=function(d,e){d=d-0x166;let f=c[d];return f;},a17d(a,b);}import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a17k(0x16e)]({'name':a17k(0x171),'aliases':['rkp'],'usage':a17k(0x174),'validOpts':[],'shortDesc':a17k(0x169),'description':a17k(0x16f),'examples':['maka\x20aws:remove-key-pair',a17k(0x183)]},async function(){const l=a17k;try{const a=new AWS(),b=await a['ec2describeKeys']();let c=undefined;const d=await Actions['ask'](l(0x17e));b?.[l(0x179)](function(g){const m=l;g['id']===parseInt(d)&&(c=g[m(0x185)]);});if(!c)throw Log[l(0x176)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');const f=await Actions[l(0x17b)](l(0x175)+c+l(0x16c),![]);f?(await a['deleteKeyPair'](c),Log[l(0x167)](l(0x168)+c)):Log[l(0x176)](l(0x182)),process[l(0x16b)](0x0);}catch(g){g&&Log['error'](g),process['exit'](0x1);}},a17e);function a17c(){const n=['Deleting\x20a\x20','error','127708jkrTiE','toString','forEach','7534604tNLXsb','confirm','188rrBJkA','735670OueEdo','Please\x20choose\x20a\x20key\x20to\x20delete:','1155208RuNLBj','6URjpsp','apply','Not\x20deleting\x20keypair','maka\x20aws:rkp','809856agRQUe','name','constructor','success','Deleted\x20','Choose\x20from\x20your\x20list\x20of\x20public\x20keys\x20to\x20delete','274610XLatoK','exit','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','7GstFdd','create','\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','search','remove-key-pair','15FVlixx','3088eJwpVg','maka\x20aws:remove-key-pair'];a17c=function(){return n;};return a17c();}
@@ -1 +1 @@
1
- function a18c(){const q=['2zdHOCA','428102cIekoc','ssh.json','7128054cTXzPE','43860znwdPR','maka\x20aws\x20set-host','\x20IP\x20to\x20','Set\x20the\x20host\x20to\x20public\x20or\x20private?\x20[public]','3888888HNcxsU','template','21178548ebbMeD','error','(((.+)+)+)+$','config/ssh.json','inherit','\x0aSaved\x20host\x20','That\x20is\x20not\x20an\x20option.\x20Must\x20be\x20\x22public\x22\x20or\x20\x22private\x22','join','privateIp','constructor','publicIp','sth','toString','set-host','appName','writeFileSync','chooseInstance','fsi','isFile','10agTCBC','ask','1573kWBPxt','private','8TTcAtB','89736UjCoYC','cat\x20','apply','exit','getAppConfigPath','sep','search','readFileSync','679KZWRIV','public','host','13mmMfbv','2719608fyfVyO'];a18c=function(){return q;};return a18c();}const a18o=a18d;(function(a,b){const l=a18d,c=a();while(!![]){try{const d=-parseInt(l(0x1c0))/0x1*(-parseInt(l(0x1c1))/0x2)+-parseInt(l(0x1c8))/0x3+parseInt(l(0x1ee))/0x4*(-parseInt(l(0x1dd))/0x5)+-parseInt(l(0x1e2))/0x6*(-parseInt(l(0x1ea))/0x7)+parseInt(l(0x1e1))/0x8*(-parseInt(l(0x1c3))/0x9)+parseInt(l(0x1c4))/0xa*(parseInt(l(0x1df))/0xb)+parseInt(l(0x1ca))/0xc*(parseInt(l(0x1ed))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a18c,0xc8e15));const a18b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a18d;if(c){const e=c[m(0x1e4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a18a=a18b(this,function(){const n=a18d;return a18a[n(0x1d6)]()[n(0x1e8)](n(0x1cc))[n(0x1d6)]()[n(0x1d3)](a18a)[n(0x1e8)]('(((.+)+)+)+$');});a18a();import a18e from'path';import a18f from'fs';function a18d(a,b){const c=a18c();return a18d=function(d,e){d=d-0x1c0;let f=c[d];return f;},a18d(a,b);}import{execSync}from'child_process';import a18g 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['create']({'name':a18o(0x1d7),'aliases':[a18o(0x1d5)],'usage':a18o(0x1c5),'mustBeInMakaProject':!![],'requiredOpts':['env'],'validOpts':[],'shortDesc':'Set\x20the\x20EC2\x20IP\x20to\x20the\x20environment\x20specified','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':['maka\x20aws:set-host\x20--env\x20dev','maka\x20aws:sth\x20--env\x20prod']},async function(a,b){const p=a18o;try{const c=new AWS(),d=this['fsi'][p(0x1e6)](b['env']),f=this[p(0x1db)]['getMakaProjectConfig'](),g=await c[p(0x1da)](),h=a18e[p(0x1d1)](d,p(0x1c2));!this[p(0x1db)][p(0x1dc)](h)&&await this[p(0x1db)][p(0x1c9)]({'srcPath':p(0x1cd),'destPath':h,'context':{'app':f[p(0x1d8)]},'config':f});const i=JSON['parse'](a18f[p(0x1e9)](h,'utf8')),j=await Actions[p(0x1de)](p(0x1c7))||p(0x1eb);if(j){if(j===p(0x1eb)||j==='private'){if(j===p(0x1eb))i[p(0x1ec)]=g?.[p(0x1d4)];else j===p(0x1e0)&&(i[p(0x1ec)]=g?.[p(0x1d2)]);}else throw p(0x1d0);}else i[p(0x1ec)]=g?.[p(0x1d2)];a18f[p(0x1d9)](a18e[p(0x1d1)](d,p(0x1c2)),JSON['stringify'](i,null,0x2)),execSync(p(0x1e3)+a18e['join'](d,p(0x1c2)),{'stdio':p(0x1ce)}),Log['success'](p(0x1cf)+j+p(0x1c6)+d+a18e[p(0x1e7)]+'ssh.json');}catch(k){k&&Log[p(0x1cb)](k),process[p(0x1e5)](0x0);}},a18g);
1
+ const a18o=a18d;(function(a,b){const l=a18d,c=a();while(!![]){try{const d=parseInt(l(0x150))/0x1*(-parseInt(l(0x128))/0x2)+parseInt(l(0x127))/0x3*(-parseInt(l(0x131))/0x4)+parseInt(l(0x14e))/0x5+-parseInt(l(0x125))/0x6*(-parseInt(l(0x140))/0x7)+-parseInt(l(0x129))/0x8*(parseInt(l(0x141))/0x9)+parseInt(l(0x149))/0xa*(parseInt(l(0x134))/0xb)+-parseInt(l(0x14a))/0xc*(-parseInt(l(0x13d))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a18c,0x3407d));const a18b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a18d;if(c){const e=c[m(0x14f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a18a=a18b(this,function(){const n=a18d;return a18a[n(0x146)]()[n(0x133)]('(((.+)+)+)+$')[n(0x146)]()[n(0x14c)](a18a)[n(0x133)](n(0x126));});a18a();import a18e from'path';import a18f from'fs';import{execSync}from'child_process';import a18g from'./aws.command.js';import{Command}from'../../command.js';function a18d(a,b){const c=a18c();return a18d=function(d,e){d=d-0x121;let f=c[d];return f;},a18d(a,b);}import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';function a18c(){const q=['17133MjuWYJ','34iUUmfO','190616dVPOFs','success','sep','\x0aSaved\x20host\x20','join','sth','private','getAppConfigPath','12UNUuSV','maka\x20aws\x20set-host','search','33PWaneQ','template','ssh.json','privateIp','host','config/ssh.json','set-host','chooseInstance','\x20IP\x20to\x20','13zcneYp','public','inherit','49uOIvMP','36qmkTMD','fsi','exit','Set\x20the\x20host\x20to\x20public\x20or\x20private?\x20[public]','\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','toString','publicIp','That\x20is\x20not\x20an\x20option.\x20Must\x20be\x20\x22public\x22\x20or\x20\x22private\x22','804460SLXVdM','1660920DsCzIc','maka\x20aws:sth\x20--env\x20prod','constructor','create','73080jyEvAZ','apply','11999NIUxDY','Set\x20the\x20EC2\x20IP\x20to\x20the\x20environment\x20specified','isFile','env','readFileSync','writeFileSync','maka\x20aws:set-host\x20--env\x20dev','115866KbxIdF','(((.+)+)+)+$'];a18c=function(){return q;};return a18c();}Command[a18o(0x14d)]({'name':a18o(0x13a),'aliases':[a18o(0x12e)],'usage':a18o(0x132),'mustBeInMakaProject':!![],'requiredOpts':[a18o(0x121)],'validOpts':[],'shortDesc':a18o(0x151),'description':a18o(0x145),'examples':[a18o(0x124),a18o(0x14b)]},async function(a,b){const p=a18o;try{const c=new AWS(),d=this[p(0x142)][p(0x130)](b['env']),f=this['fsi']['getMakaProjectConfig'](),g=await c[p(0x13b)](),h=a18e[p(0x12d)](d,p(0x136));!this[p(0x142)][p(0x152)](h)&&await this[p(0x142)][p(0x135)]({'srcPath':p(0x139),'destPath':h,'context':{'app':f['appName']},'config':f});const i=JSON['parse'](a18f[p(0x122)](h,'utf8')),j=await Actions['ask'](p(0x144))||p(0x13e);if(j){if(j==='public'||j==='private'){if(j==='public')i['host']=g?.[p(0x147)];else j===p(0x12f)&&(i[p(0x138)]=g?.[p(0x137)]);}else throw p(0x148);}else i[p(0x138)]=g?.[p(0x137)];a18f[p(0x123)](a18e[p(0x12d)](d,p(0x136)),JSON['stringify'](i,null,0x2)),execSync('cat\x20'+a18e['join'](d,p(0x136)),{'stdio':p(0x13f)}),Log[p(0x12a)](p(0x12c)+j+p(0x13c)+d+a18e[p(0x12b)]+p(0x136));}catch(k){k&&Log['error'](k),process[p(0x143)](0x0);}},a18g);
@@ -1 +1 @@
1
- const a19i=a19d;function a19d(a,b){const c=a19c();return a19d=function(d,e){d=d-0x149;let f=c[d];return f;},a19d(a,b);}(function(a,b){const f=a19d,c=a();while(!![]){try{const d=parseInt(f(0x15f))/0x1*(parseInt(f(0x15b))/0x2)+parseInt(f(0x14b))/0x3+parseInt(f(0x161))/0x4*(-parseInt(f(0x14d))/0x5)+-parseInt(f(0x149))/0x6*(-parseInt(f(0x152))/0x7)+parseInt(f(0x158))/0x8+parseInt(f(0x159))/0x9*(-parseInt(f(0x166))/0xa)+parseInt(f(0x163))/0xb*(-parseInt(f(0x151))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a19c,0x4bed7));const a19b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a19d;if(c){const e=c[g(0x156)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a19a=a19b(this,function(){const h=a19d;return a19a[h(0x15d)]()[h(0x164)](h(0x15a))[h(0x15d)]()[h(0x153)](a19a)[h(0x164)](h(0x15a));});a19a();import a19e 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 a19c(){const k=['maka\x20aws:ti','429140HoKNbi','9522dJtdzf','confirm','1123071MeMSbE','chooseInstance','2729245EJClas','\x20is\x20still\x20running.\x20\x20(Charges\x20are\x20still\x20being\x20applied).','maka\x20aws:terminate-instance','terminate-instance','12nPouLC','2072RFLhiT','constructor','instanceId','name','apply','create','2365880Qcxbwi','63VYzWKe','(((.+)+)+)+$','151778ABnwXG','\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','toString','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20terminated;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','4lbFVjK','error','4vCtagy','ec2terminateInstance','3147694YzfSvM','search'];a19c=function(){return k;};return a19c();}import{Actions}from'../../tools/actions/actions.class.js';Command[a19i(0x157)]({'name':a19i(0x150),'aliases':['ti'],'usage':a19i(0x14f),'validOpts':[],'shortDesc':'Terminate\x20an\x20EC2\x20instance','description':a19i(0x15c),'examples':[a19i(0x14f),a19i(0x165)]},async function(){const j=a19i;try{const a=new AWS(),b=await a[j(0x14c)]();if(b?.['instanceId']&&b?.['status']==='running'){const c=await Actions[j(0x14a)]('You\x20are\x20about\x20to\x20terminate\x20(lose\x20all\x20data)\x20on\x20instance:\x20'+b[j(0x155)]+'\x20Ready?');c?a[j(0x162)]({'instanceId':b[j(0x154)]}):Log[j(0x160)]('You\x20have\x20aborted\x20the\x20termination.\x20\x20The\x20instance:\x20'+b[j(0x155)]+j(0x14e));}else Log[j(0x160)](j(0x15e));}catch(d){d&&Log['error'](d),process['exit'](0x1);}},a19e);
1
+ const a19h=a19d;(function(a,b){const f=a19d,c=a();while(!![]){try{const d=parseInt(f(0x118))/0x1+-parseInt(f(0x128))/0x2+-parseInt(f(0x116))/0x3*(parseInt(f(0x11f))/0x4)+parseInt(f(0x11e))/0x5+parseInt(f(0x113))/0x6*(parseInt(f(0x119))/0x7)+-parseInt(f(0x122))/0x8+-parseInt(f(0x11c))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a19c,0xad8e9));const a19b=(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;};}()),a19a=a19b(this,function(){const g=a19d;return a19a[g(0x11b)]()[g(0x124)]('(((.+)+)+)+$')['toString']()['constructor'](a19a)[g(0x124)]('(((.+)+)+)+$');});a19a();import a19e 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 a19c(){const j=['You\x20have\x20aborted\x20the\x20termination.\x20\x20The\x20instance:\x20','toString','2345769KIeSKR','\x20Ready?','1374245GZGayW','262292EVavzy','status','name','24400kzeTjD','error','search','maka\x20aws:ti','ec2terminateInstance','create','1251668RFngLj','\x20is\x20still\x20running.\x20\x20(Charges\x20are\x20still\x20being\x20applied).','\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','maka\x20aws:terminate-instance','exit','465948DQohiz','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20terminated;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','Terminate\x20an\x20EC2\x20instance','51XlSRDc','confirm','1120120fptrGo','119ASjSPb'];a19c=function(){return j;};return a19c();}function a19d(a,b){const c=a19c();return a19d=function(d,e){d=d-0x112;let f=c[d];return f;},a19d(a,b);}import{Actions}from'../../tools/actions/actions.class.js';Command[a19h(0x127)]({'name':'terminate-instance','aliases':['ti'],'usage':a19h(0x12b),'validOpts':[],'shortDesc':a19h(0x115),'description':a19h(0x12a),'examples':['maka\x20aws:terminate-instance',a19h(0x125)]},async function(){const i=a19h;try{const a=new AWS(),b=await a['chooseInstance']();if(b?.['instanceId']&&b?.[i(0x120)]==='running'){const c=await Actions[i(0x117)]('You\x20are\x20about\x20to\x20terminate\x20(lose\x20all\x20data)\x20on\x20instance:\x20'+b[i(0x121)]+i(0x11d));c?a[i(0x126)]({'instanceId':b['instanceId']}):Log[i(0x123)](i(0x11a)+b[i(0x121)]+i(0x129));}else Log[i(0x123)](i(0x114));}catch(d){d&&Log[i(0x123)](d),process[i(0x112)](0x1);}},a19e);
@@ -1 +1 @@
1
- (function(a,b){var f=a20d,c=a();while(!![]){try{var d=parseInt(f(0x9d))/0x1+-parseInt(f(0x9a))/0x2+-parseInt(f(0xa0))/0x3+parseInt(f(0x9b))/0x4*(-parseInt(f(0x99))/0x5)+-parseInt(f(0xa7))/0x6*(-parseInt(f(0x9c))/0x7)+parseInt(f(0xa6))/0x8*(parseInt(f(0x9f))/0x9)+-parseInt(f(0xa4))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a20c,0x261e1));function a20d(a,b){var c=a20c();return a20d=function(d,e){d=d-0x99;var f=c[d];return f;},a20d(a,b);}var a20b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a20d;if(c){var e=c[g(0xa3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a20a=a20b(this,function(){var h=a20d;return a20a[h(0xa5)]()[h(0x9e)](h(0xa1))[h(0xa5)]()[h(0xa2)](a20a)[h(0x9e)]('(((.+)+)+)+$');});a20a();import'./build.js';function a20c(){var i=['2345EZJyQO','210772jHrHrL','search','207Sirdpe','193734BVIHVM','(((.+)+)+)+$','constructor','apply','40060XYBTRG','toString','46840mmKnDN','6orQfGo','745WQnxWD','228112UIBCYB','188oXrEGo'];a20c=function(){return i;};return a20c();}import'./docker.sub.cmd.js';
1
+ (function(a,b){var f=a20d,c=a();while(!![]){try{var d=parseInt(f(0xdb))/0x1*(parseInt(f(0xe1))/0x2)+parseInt(f(0xe0))/0x3*(-parseInt(f(0xd5))/0x4)+parseInt(f(0xd7))/0x5+-parseInt(f(0xd3))/0x6*(parseInt(f(0xdd))/0x7)+-parseInt(f(0xd9))/0x8+-parseInt(f(0xd4))/0x9+-parseInt(f(0xd8))/0xa*(-parseInt(f(0xdf))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a20c,0xca093));var a20b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a20d;if(c){var e=c[g(0xd2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a20a=a20b(this,function(){var h=a20d;return a20a[h(0xdc)]()[h(0xd6)](h(0xda))[h(0xdc)]()[h(0xde)](a20a)['search'](h(0xda));});a20a();function a20d(a,b){var c=a20c();return a20d=function(d,e){d=d-0xd2;var f=c[d];return f;},a20d(a,b);}import'./build.js';import'./docker.sub.cmd.js';function a20c(){var i=['1169KFIjDl','constructor','275YzvYEt','15qDbjBd','6ZmrRdV','apply','25302OtUURZ','2668698mtpxuT','539068gOXqNH','search','93150CQcPLh','878930TCpnvT','6796672rFPnHw','(((.+)+)+)+$','378588AWFmvZ','toString'];a20c=function(){return i;};return a20c();}
@@ -1 +1 @@
1
- function a21d(a,b){const c=a21c();return a21d=function(d,e){d=d-0x119;let f=c[d];return f;},a21d(a,b);}const a21q=a21d;(function(a,b){const n=a21d,c=a();while(!![]){try{const d=-parseInt(n(0x128))/0x1+-parseInt(n(0x12b))/0x2*(-parseInt(n(0x141))/0x3)+-parseInt(n(0x127))/0x4*(-parseInt(n(0x12d))/0x5)+parseInt(n(0x119))/0x6*(parseInt(n(0x121))/0x7)+-parseInt(n(0x11f))/0x8*(parseInt(n(0x13b))/0x9)+parseInt(n(0x13f))/0xa+parseInt(n(0x12a))/0xb*(-parseInt(n(0x132))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a21c,0xb86d5));const a21b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a21d;if(c){const e=c[o(0x11e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a21a=a21b(this,function(){const p=a21d;return a21a[p(0x126)]()[p(0x137)](p(0x125))[p(0x126)]()[p(0x135)](a21a)[p(0x137)]('(((.+)+)+)+$');});a21a();import a21e from'path';import a21f from'fs';import a21g from'semver';import{Actions}from'../../tools/actions/actions.class.js';function a21c(){const t=['confirm','error','(((.+)+)+)+$','toString','20uZXMKc','961030uhUuxb','This\x20project\x27s\x20meteor\x20version\x20(','22gMvFWr','202RGtVTj','app.tar.gz','1168495dtTxBa','maka\x20build','existsSync','concat','exit','10664196ecSbft',')\x20is\x20behind\x20your\x20installed\x20meteor\x20version\x20(','build','constructor','fsi','search','force','argv','slice','2052VZmnyl','create','Build\x20your\x20application\x20into\x20the\x20build\x20folder.','update','14438210daoIPz','autoupdate','35214TSXQZp','Aborted.','splice','215238geEzPa','invokeMeteorCommand','forEach','pathFromProject','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','apply','49688vtKtTR','\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','217EjBsgJ','getProjectMeteorVersion'];a21c=function(){return t;};return a21c();}import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';const BuildCommand=Command[a21q(0x13c)]({'name':a21q(0x134),'usage':a21q(0x12e),'validOpts':[a21q(0x138)],'aliases':['b'],'shortDesc':a21q(0x13d),'mustBeInMakaProject':!![],'description':a21q(0x120),'examples':[a21q(0x12e)]},async function(a,b){const r=a21q;try{await this['fsi']['checkMeteorPackage'](r(0x140),{'shouldInstall':!![]});const c=b[r(0x138)];if(!c){const g=this[r(0x136)]['getGlobalMeteorVersion'](),h=this[r(0x136)][r(0x122)](),i=a21g['gt'](g,h);if(i){const j=await Actions['confirm'](r(0x129)+h+r(0x133)+g+').\x20Update?');j&&this[r(0x136)][r(0x11a)](r(0x13e),['--release',g]);}}const d=[this[r(0x136)][r(0x11c)]({'pathParts':['build']})][r(0x130)](process[r(0x139)][r(0x13a)](0x3)),f=a21e['join'](this['fsi'][r(0x11c)]({}),'build',r(0x12c));if(a21f[r(0x12f)](f)){const k=c??await Actions[r(0x123)](r(0x11d));if(!k)throw Log[r(0x124)](r(0x142));}d[r(0x11b)]((l,m)=>{const s=r;l==='--force'&&d[s(0x143)](m,0x2);}),this[r(0x136)][r(0x11a)](r(0x134),d);}catch(l){console[r(0x124)](l),process[r(0x131)](0x0);}});export default BuildCommand;
1
+ const a21q=a21d;function a21d(a,b){const c=a21c();return a21d=function(d,e){d=d-0xbb;let f=c[d];return f;},a21d(a,b);}(function(a,b){const n=a21d,c=a();while(!![]){try{const d=-parseInt(n(0xd5))/0x1*(-parseInt(n(0xcd))/0x2)+parseInt(n(0xd8))/0x3+-parseInt(n(0xe0))/0x4*(-parseInt(n(0xc9))/0x5)+-parseInt(n(0xdd))/0x6*(-parseInt(n(0xe4))/0x7)+-parseInt(n(0xd3))/0x8*(-parseInt(n(0xd7))/0x9)+parseInt(n(0xdb))/0xa+parseInt(n(0xbc))/0xb*(-parseInt(n(0xe3))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a21c,0xe75a8));const a21b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a21d;if(c){const e=c[o(0xc3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a21a=a21b(this,function(){const p=a21d;return a21a[p(0xc2)]()[p(0xc1)](p(0xdc))['toString']()['constructor'](a21a)[p(0xc1)](p(0xdc));});function a21c(){const t=['app.tar.gz','Build\x20your\x20application\x20into\x20the\x20build\x20folder.','pathFromProject','exit','search','toString','apply',')\x20is\x20behind\x20your\x20installed\x20meteor\x20version\x20(','fsi','maka\x20build','\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','force','5JpyQBG','build','argv','This\x20project\x27s\x20meteor\x20version\x20(','1227332TqRlkS','--force','existsSync','invokeMeteorCommand','slice','Aborted.','1364136YBuvCO','concat','1snyahA','splice','81UXQrAr','5077167KocwwZ','update','create','7502320LoSAAh','(((.+)+)+)+$','1674cimWMC','confirm','join','3506788cmkcID','forEach','--release','18568860kdrGCi','3066jTIIme','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','33cXNIgP'];a21c=function(){return t;};return a21c();}a21a();import a21e from'path';import a21f from'fs';import a21g 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[a21q(0xda)]({'name':a21q(0xca),'usage':a21q(0xc6),'validOpts':[a21q(0xc8)],'aliases':['b'],'shortDesc':a21q(0xbe),'mustBeInMakaProject':!![],'description':a21q(0xc7),'examples':[a21q(0xc6)]},async function(a,b){const r=a21q;try{await this[r(0xc5)]['checkMeteorPackage']('autoupdate',{'shouldInstall':!![]});const c=b[r(0xc8)];if(!c){const g=this['fsi']['getGlobalMeteorVersion'](),h=this[r(0xc5)]['getProjectMeteorVersion'](),i=a21g['gt'](g,h);if(i){const j=await Actions[r(0xde)](r(0xcc)+h+r(0xc4)+g+').\x20Update?');j&&this[r(0xc5)][r(0xd0)](r(0xd9),[r(0xe2),g]);}}const d=[this[r(0xc5)]['pathFromProject']({'pathParts':['build']})][r(0xd4)](process[r(0xcb)][r(0xd1)](0x3)),f=a21e[r(0xdf)](this[r(0xc5)][r(0xbf)]({}),r(0xca),r(0xbd));if(a21f[r(0xcf)](f)){const k=c??await Actions[r(0xde)](r(0xbb));if(!k)throw Log['error'](r(0xd2));}d[r(0xe1)]((l,m)=>{const s=r;l===s(0xce)&&d[s(0xd6)](m,0x2);}),this[r(0xc5)][r(0xd0)](r(0xca),d);}catch(l){console['error'](l),process[r(0xc0)](0x0);}});export default BuildCommand;