@maka/maka-cli 4.6.9 → 4.6.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (136) hide show
  1. package/bundle/obf/package.json +1 -1
  2. package/bundle/obf/src/command.js +1 -1
  3. package/bundle/obf/src/commands/_index.js +1 -1
  4. package/bundle/obf/src/commands/ai.js +1 -1
  5. package/bundle/obf/src/commands/aws/_index.js +1 -1
  6. package/bundle/obf/src/commands/aws/aws.command.js +1 -1
  7. package/bundle/obf/src/commands/aws/chz.sub.cmd.js +1 -1
  8. package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
  9. package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
  10. package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
  11. package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
  12. package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
  13. package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
  14. package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
  15. package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
  16. package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
  17. package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
  18. package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
  19. package/bundle/obf/src/commands/build/_index.js +1 -1
  20. package/bundle/obf/src/commands/build/build.js +1 -1
  21. package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
  22. package/bundle/obf/src/commands/create.js +1 -1
  23. package/bundle/obf/src/commands/debug.js +1 -1
  24. package/bundle/obf/src/commands/deploy.js +1 -1
  25. package/bundle/obf/src/commands/game/_index.js +1 -1
  26. package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
  27. package/bundle/obf/src/commands/game/play.command.js +1 -1
  28. package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
  29. package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
  30. package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
  31. package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
  32. package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
  33. package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
  34. package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
  35. package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
  36. package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
  37. package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
  38. package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
  39. package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
  40. package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
  41. package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
  42. package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
  43. package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
  44. package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
  45. package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
  46. package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
  47. package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
  48. package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
  49. package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
  50. package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
  51. package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
  52. package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
  53. package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
  54. package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
  55. package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
  56. package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
  57. package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
  58. package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
  59. package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
  60. package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
  61. package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
  62. package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
  63. package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
  64. package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
  65. package/bundle/obf/src/commands/generate.js +1 -1
  66. package/bundle/obf/src/commands/get/_index.js +1 -1
  67. package/bundle/obf/src/commands/get/get.command.js +1 -1
  68. package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
  69. package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
  70. package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
  71. package/bundle/obf/src/commands/help.js +1 -1
  72. package/bundle/obf/src/commands/install.js +1 -1
  73. package/bundle/obf/src/commands/jsdoc.js +1 -1
  74. package/bundle/obf/src/commands/lint.js +1 -1
  75. package/bundle/obf/src/commands/login.js +1 -1
  76. package/bundle/obf/src/commands/logout.js +1 -1
  77. package/bundle/obf/src/commands/logs.js +1 -1
  78. package/bundle/obf/src/commands/maka.cmd.js +1 -1
  79. package/bundle/obf/src/commands/murder.js +1 -1
  80. package/bundle/obf/src/commands/proxy.js +1 -1
  81. package/bundle/obf/src/commands/reconfig.js +1 -1
  82. package/bundle/obf/src/commands/run/_index.js +1 -1
  83. package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
  84. package/bundle/obf/src/commands/run/run.command.js +1 -1
  85. package/bundle/obf/src/commands/set/_index.js +1 -1
  86. package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
  87. package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
  88. package/bundle/obf/src/commands/set/set.command.js +1 -1
  89. package/bundle/obf/src/commands/ssh.js +1 -1
  90. package/bundle/obf/src/commands/ssl.js +1 -1
  91. package/bundle/obf/src/commands/test.js +1 -1
  92. package/bundle/obf/src/commands/version.js +1 -1
  93. package/bundle/obf/src/error.js +1 -1
  94. package/bundle/obf/src/exec.js +1 -1
  95. package/bundle/obf/src/generator.js +1 -1
  96. package/bundle/obf/src/generators/_index.js +1 -1
  97. package/bundle/obf/src/generators/api.js +1 -1
  98. package/bundle/obf/src/generators/collection.js +1 -1
  99. package/bundle/obf/src/generators/component.js +1 -1
  100. package/bundle/obf/src/generators/config.js +1 -1
  101. package/bundle/obf/src/generators/dbc.js +1 -1
  102. package/bundle/obf/src/generators/dockerfile.js +1 -1
  103. package/bundle/obf/src/generators/hook.js +1 -1
  104. package/bundle/obf/src/generators/kit.js +1 -1
  105. package/bundle/obf/src/generators/layout.js +1 -1
  106. package/bundle/obf/src/generators/maka.gen.js +1 -1
  107. package/bundle/obf/src/generators/methods.js +1 -1
  108. package/bundle/obf/src/generators/package.js +1 -1
  109. package/bundle/obf/src/generators/page.js +1 -1
  110. package/bundle/obf/src/generators/publish.js +1 -1
  111. package/bundle/obf/src/generators/route.js +1 -1
  112. package/bundle/obf/src/generators/service.js +1 -1
  113. package/bundle/obf/src/generators/services/_index.js +1 -1
  114. package/bundle/obf/src/generators/services/openssl.js +1 -1
  115. package/bundle/obf/src/generators/services/translation.js +1 -1
  116. package/bundle/obf/src/maka.js +1 -1
  117. package/bundle/obf/src/tool.js +1 -1
  118. package/bundle/obf/src/tools/actions/actions.class.js +1 -1
  119. package/bundle/obf/src/tools/aws/aws.class.js +1 -1
  120. package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
  121. package/bundle/obf/src/tools/docker/docker.class.js +1 -1
  122. package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
  123. package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
  124. package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
  125. package/bundle/obf/src/tools/https/https.class.js +1 -1
  126. package/bundle/obf/src/tools/https/https.interface.js +1 -1
  127. package/bundle/obf/src/tools/https/progress.class.js +1 -1
  128. package/bundle/obf/src/tools/log/log.class.js +1 -1
  129. package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
  130. package/bundle/obf/src/tools/options/options.class.js +1 -1
  131. package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
  132. package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
  133. package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
  134. package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
  135. package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
  136. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@maka/maka-cli",
3
3
  "//": "NOTE: don't forget to update version.ts and fsi.class.ts",
4
- "version": "4.6.9",
4
+ "version": "4.6.10",
5
5
  "type": "module",
6
6
  "summary": "A command line tool for scaffolding Meteor 2.x applications using either React.",
7
7
  "description": "A command line tool for scaffolding Meteor 2.x applications using React.",
@@ -1 +1 @@
1
- const a0s=a0d;function a0c(){const D=['getPro','filter','number','header','generate','exit','Command\x20requires\x20a\x20name','name','forEach','domainLicense','Command.create\x20requires\x20a\x20handler\x20function!','addCommand','Too\x20many\x20options','includes','135510rODSDf','aliases','_commands','proCommands','Too\x20many\x20arguments','findCommand','LIGHT','bind','minArgLength','fsi','tableList','deploy','split','3586236vPYSaL','Too\x20few\x20arguments','To\x20use\x20this\x20command,\x20\x22','To\x20use\x20these\x20pro\x20flags,\x20\x22','runSubCommand','roles','Too\x20few\x20options','Alias','singleLicense','2563245ZekQbQ','search','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command','keys','validateMakaSubscription','Command.create\x20requires\x20some\x20options!','bright','mustBeInMakaProject','Please\x20run\x20\x22maka\x20install\x20meteor\x22','minOptsLength','getGlobalConfig','_handler','push','14337240GWDkVt','function','invoke','(((.+)+)+)+$','run','1786064oPOGSs','assign','usage','Command\x20not\x20found','Description','maxOptsLength','join','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','4auYurL','1311153YwKJIA','Command\x20requires\x20a\x20handler\x20function','notice','Use\x20--help\x20for\x20any\x20sub-command\x20for\x20details','disableAuthCheck','murder','options','error','shortDesc','findSubCommand','splice','length','mustHaveMeteorInstalled','validateMakaProject','toString','\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27','validateMeteorInstall','5812233XPXiuR','apply','maxArgLength','Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','addCommand\x20requires\x20a\x20Command\x20instance','There\x20is\x20no\x20Meteor\x20application\x20here','help','License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.','create'];a0c=function(){return D;};return a0c();}(function(a,b){const p=a0d,c=a();while(!![]){try{const d=-parseInt(p(0x1e2))/0x1*(-parseInt(p(0x20b))/0x2)+-parseInt(p(0x1e3))/0x3+-parseInt(p(0x1da))/0x4+-parseInt(p(0x1c8))/0x5+parseInt(p(0x218))/0x6+-parseInt(p(0x1f4))/0x7+parseInt(p(0x1d5))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0c,0x6a0aa));const a0b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a0d;if(c){const e=c[q(0x1f5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a0a=a0b(this,function(){const r=a0d;return a0a['toString']()[r(0x1c9)](r(0x1d8))['toString']()['constructor'](a0a)[r(0x1c9)](r(0x1d8));});a0a();import a0e from'cli-table';import a0f from'./commands/maka.cmd.js';import{Log,ColorMode}from'./tools/log/log.class.js';function a0d(a,b){const c=a0c();return a0d=function(d,e){d=d-0x1c0;let f=c[d];return f;},a0d(a,b);}import{Tool}from'./tool.js';import{UsageError,UsageErrorWithSubs,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError}from'./error.js';let _prevCmd='';export class Command extends Tool{[a0s(0x1e9)];[a0s(0x20d)];constructor(a,b){const t=a0s;super();if(!a)throw new Error(t(0x1f7));if(!a[t(0x204)])throw new Error(t(0x203));if(typeof b!==t(0x1d6))throw new Error(t(0x1e4));this[t(0x1e9)]=Object[t(0x1db)]({},a),this[t(0x204)]=this['options'][t(0x204)],this[t(0x20d)]=[],this[t(0x1d3)]=b[t(0x212)](this);}static[a0s(0x1fc)](a,b,c){const u=a0s;if(!a)throw new Error(u(0x1cd));if(typeof b!==u(0x1d6))throw new Error(u(0x207));const d=new Command(a,b);return c=c||a0f,Object[u(0x1db)](d,{'parent':c?.[u(0x1e9)]?.[u(0x204)]}),c[u(0x208)](d),d;}['addCommand'](a){const v=a0s;if(!(a instanceof Command))throw new Error(v(0x1f8));this[v(0x20d)][v(0x1d4)](a);}async[a0s(0x1cc)](a,b){const w=a0s,c=this[w(0x210)](a[0x0]);if(c){const d=c?.['name']||a[0x0],e=c?.['parent']||'',f=c?.['options'];if(f[w(0x1e7)])return;const g=a[0x0],h=Object[w(0x1cb)](b),i=await this[w(0x214)][w(0x1fd)]();!i&&(Log[w(0x1ea)](w(0x1fb)),process[w(0x202)](0x1));const j=i?.[w(0x20e)]['includes'](d)||i?.['proCommands'][w(0x20a)](e),k=i?.[w(0x1c4)][w(0x20a)](w(0x1c7))||i?.[w(0x1c4)][w(0x20a)](w(0x206)),l=!k;if(j&&l)throw w(0x1c1)+a[0x0]+'\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27';if(h['length']>0x0){const m=i?.['proFlags'][w(0x1fe)](n=>h['includes'](n));if(m&&m[w(0x1ee)]>0x0&&l)throw w(0x1c2)+m?.[w(0x1e0)](',\x20')+'\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27';}if(g===w(0x216)){const n=await this[w(0x214)][w(0x1fd)](),o=n?.['proCommands'][w(0x20a)](a[0x0]+'\x20'+a[0x1]);if(o&&l)throw w(0x1c1)+a[0x0]+w(0x1f2);}}}async[a0s(0x1d9)](a,b){const x=a0s;try{a=a||[],b=b||{};try{const c=await this[x(0x214)][x(0x1d2)](),d=c['pallet']==='light'?ColorMode[x(0x211)]:ColorMode['DARK'];Log['setColorMode'](d),await this[x(0x1cc)](a,b);}catch(f){Log[x(0x1ea)](f),process[x(0x202)](0x0);}await this[x(0x1d7)](a,b);}catch(g){process[x(0x202)](0x1);}}async[a0s(0x1d7)](a,b){const y=a0s,{usage:usage='',description:description='',shortDesc:c,examples:examples=[],isRoot:isRoot=![],requiredOpts:requiredOpts=[],validOpts:d}=this[y(0x1e9)];try{if(this['options']['name']!==y(0x201)){if(!isRoot){const f=(a[0x0]===_prevCmd||a[y(0x1ee)]===0x0)&&this[y(0x20d)][y(0x1ee)]>=0x0,g=b[y(0x1fa)]||b['h'];if(f&&g){if(this['_commands'][y(0x1ee)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!g){if(this[y(0x1e9)][y(0x1cf)]){const h=this[y(0x1f0)]();if(!h)throw new MustBeInProjectError();}if(this[y(0x1e9)][y(0x1ef)]){const i=this[y(0x1f3)]();if(!i)throw new NoMeteorFoundError();}if(typeof this[y(0x1e9)][y(0x213)]==='number'){if(a[y(0x1ee)]<this[y(0x1e9)]['minArgLength']){Log[y(0x1ea)](y(0x1c0));throw new UsageError();}}if(typeof this['options'][y(0x1f6)]===y(0x1ff)){if(a['length']>=this[y(0x1e9)][y(0x1f6)]){Log[y(0x1ea)](y(0x20f));throw new UsageError();}}if(typeof this['options'][y(0x1d1)]===y(0x1ff)){if(Object[y(0x1cb)](b)[y(0x1ee)]<this[y(0x1e9)]['minOptsLength']){Log[y(0x1ea)](y(0x1c5));throw new UsageError();}}if(typeof this[y(0x1e9)][y(0x1df)]===y(0x1ff)){if(Object[y(0x1cb)](b)[y(0x1ee)]>=this[y(0x1e9)][y(0x1df)]){Log[y(0x1ea)](y(0x209));throw new UsageError();}}}}b=await this['validateParams'](a,b,this['options']),_prevCmd=a[0x0];}await this['_handler']['call'](this,a,b);}catch(j){Log[y(0x1dc)](description,examples,usage,c,requiredOpts,d);if(j instanceof UsageErrorWithSubs)Log[y(0x1e5)]('Sub-Commands:'),this[y(0x215)](this[y(0x20d)]),Log[y(0x200)](y(0x1e6));else{if(j instanceof MustBeInProjectError)Log[y(0x1ea)](y(0x1ca));else{if(j instanceof NoMeteorFoundError)Log[y(0x1ea)](y(0x1e1)),Log['notice'](y(0x1d0));else{if(j instanceof NoMeteorAppFoundError)Log[y(0x1ea)](y(0x1f9));else throw j;}}}process['exit'](0x1);}}[a0s(0x215)](a){const z=a0s,b=new a0e({});b[z(0x1d4)](['Name',z(0x1c6),z(0x1de)]),a['sort']()[z(0x205)](c=>{const A=z;c['name']!==A(0x1e8)&&c[A(0x204)]!=='play'&&b['push']([c[A(0x204)],c[A(0x20c)](),c[A(0x1eb)]()]);}),Log[z(0x1ce)](b[z(0x1f1)]());}[a0s(0x210)](a){return this['_commands']['find'](b=>b['match'](a));}[a0s(0x1ec)](a){const B=a0s,b=a?.[B(0x217)](':');if(b)return a=b[0x0],this[B(0x210)](a);else return;}async[a0s(0x1c3)](a,b,c){const C=a0s;try{const d=a['split'](':');a=d[0x0];const f=d[0x1];f&&b[C(0x1ed)](0x0,0x0,f);const g=this[C(0x210)](a);if(g)await g[C(0x1d9)](b,c);else throw C(0x1dd);}catch(h){throw Log[C(0x1ea)](h);}}}
1
+ function a0d(a,b){const c=a0c();return a0d=function(d,e){d=d-0xcf;let f=c[d];return f;},a0d(a,b);}const a0s=a0d;(function(a,b){const p=a0d,c=a();while(!![]){try{const d=parseInt(p(0x106))/0x1+-parseInt(p(0xfc))/0x2*(parseInt(p(0xf4))/0x3)+-parseInt(p(0x11b))/0x4+parseInt(p(0xf0))/0x5+-parseInt(p(0xdd))/0x6+-parseInt(p(0xfa))/0x7+parseInt(p(0x110))/0x8*(parseInt(p(0x115))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0c,0x6b30f));const a0b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a0d;if(c){const e=c[q(0xd7)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a0a=a0b(this,function(){const r=a0d;return a0a['toString']()[r(0xf7)](r(0xf2))['toString']()['constructor'](a0a)[r(0xf7)](r(0xf2));});a0a();import a0e from'cli-table';import a0f from'./commands/maka.cmd.js';import{Log,ColorMode}from'./tools/log/log.class.js';import{Tool}from'./tool.js';import{UsageError,UsageErrorWithSubs,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError}from'./error.js';function a0c(){const E=['assign','1319517UnaZYo','validateMakaProject','\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27','search','find','findCommand','4197361tmOjwn','error','2Mxxbpq','DARK','_handler','roles','help','_commands','proCommands','mustHaveMeteorInstalled','mustBeInMakaProject','disableAuthCheck','339695SLZkpu','Command.create\x20requires\x20a\x20handler\x20function!','exit','toString','License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.','invoke','deploy','Command\x20not\x20found','validateParams','addCommand','2324888tbeFYn','push','setColorMode','singleLicense','maxArgLength','45aLsToA','To\x20use\x20these\x20pro\x20flags,\x20\x22','keys','LIGHT','There\x20is\x20no\x20Meteor\x20application\x20here','call','2314284oOyuIx','minOptsLength','Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','validateMakaSubscription','shortDesc','maxOptsLength','Alias','getGlobalConfig','length','includes','options','sort','bind','Description','name','run','create','match','function','apply','header','tableList','validateMeteorInstall','Too\x20many\x20options','light','1551960ClhpcX','getPro','Use\x20--help\x20for\x20any\x20sub-command\x20for\x20details','proFlags','number','usage','Command\x20requires\x20a\x20name','minArgLength','generate','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','fsi','filter','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command','bright','To\x20use\x20this\x20command,\x20\x22','splice','parent','aliases','Command.create\x20requires\x20some\x20options!','2614990DAFrfU','forEach','(((.+)+)+)+$'];a0c=function(){return E;};return a0c();}let _prevCmd='';export class Command extends Tool{[a0s(0x125)];[a0s(0x101)];constructor(a,b){const t=a0s;super();if(!a)throw new Error(t(0x11d));if(!a['name'])throw new Error(t(0xe3));if(typeof b!==t(0xd6))throw new Error('Command\x20requires\x20a\x20handler\x20function');this[t(0x125)]=Object[t(0xf3)]({},a),this['name']=this[t(0x125)]['name'],this[t(0x101)]=[],this[t(0xfe)]=b[t(0xd0)](this);}static[a0s(0xd4)](a,b,c){const u=a0s;if(!a)throw new Error(u(0xef));if(typeof b!==u(0xd6))throw new Error(u(0x107));const d=new Command(a,b);return c=c||a0f,Object[u(0xf3)](d,{'parent':c?.[u(0x125)]?.[u(0xd2)]}),c[u(0x10f)](d),d;}[a0s(0x10f)](a){const v=a0s;if(!(a instanceof Command))throw new Error('addCommand\x20requires\x20a\x20Command\x20instance');this['_commands'][v(0x111)](a);}async[a0s(0x11e)](a,b){const w=a0s,c=this['findCommand'](a[0x0]);if(c){const d=c?.[w(0xd2)]||a[0x0],e=c?.[w(0xed)]||'',f=c?.[w(0x125)];if(f[w(0x105)])return;const g=a[0x0],h=Object[w(0x117)](b),i=await this[w(0xe7)][w(0xde)]();!i&&(Log['error'](w(0x10a)),process['exit'](0x1));const j=i?.[w(0x102)][w(0x124)](d)||i?.['proCommands'][w(0x124)](e),k=i?.[w(0xff)][w(0x124)](w(0x113))||i?.['roles'][w(0x124)]('domainLicense'),l=!k;if(j&&l)throw w(0xeb)+a[0x0]+w(0xf6);if(h[w(0x123)]>0x0){const m=i?.[w(0xe0)][w(0xe8)](n=>h[w(0x124)](n));if(m&&m['length']>0x0&&l)throw w(0x116)+m?.['join'](',\x20')+w(0xf6);}if(g===w(0x10c)){const n=await this['fsi'][w(0xde)](),o=n?.[w(0x102)]['includes'](a[0x0]+'\x20'+a[0x1]);if(o&&l)throw w(0xeb)+a[0x0]+w(0xf6);}}}async[a0s(0xd3)](a,b){const x=a0s;try{a=a||[],b=b||{};try{const c=await this[x(0xe7)][x(0x122)](),d=c['pallet']===x(0xdc)?ColorMode[x(0x118)]:ColorMode[x(0xfd)];Log[x(0x112)](d),await this[x(0x11e)](a,b);}catch(f){Log[x(0xfb)](f),process[x(0x108)](0x0);}await this[x(0x10b)](a,b);}catch(g){process['exit'](0x1);}}async[a0s(0x10b)](a,b){const y=a0s,{usage:usage='',description:description='',shortDesc:c,examples:examples=[],isRoot:isRoot=![],requiredOpts:requiredOpts=[],validOpts:d}=this[y(0x125)];try{if(this[y(0x125)][y(0xd2)]!==y(0xe5)){if(!isRoot){const f=(a[0x0]===_prevCmd||a[y(0x123)]===0x0)&&this[y(0x101)][y(0x123)]>=0x0,g=b[y(0x100)]||b['h'];if(f&&g){if(this[y(0x101)][y(0x123)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!g){if(this[y(0x125)][y(0x104)]){const h=this[y(0xf5)]();if(!h)throw new MustBeInProjectError();}if(this[y(0x125)][y(0x103)]){const i=this[y(0xda)]();if(!i)throw new NoMeteorFoundError();}if(typeof this['options'][y(0xe4)]==='number'){if(a[y(0x123)]<this['options'][y(0xe4)]){Log[y(0xfb)]('Too\x20few\x20arguments');throw new UsageError();}}if(typeof this[y(0x125)][y(0x114)]===y(0xe1)){if(a[y(0x123)]>=this[y(0x125)][y(0x114)]){Log[y(0xfb)]('Too\x20many\x20arguments');throw new UsageError();}}if(typeof this[y(0x125)][y(0x11c)]===y(0xe1)){if(Object[y(0x117)](b)[y(0x123)]<this['options'][y(0x11c)]){Log[y(0xfb)]('Too\x20few\x20options');throw new UsageError();}}if(typeof this[y(0x125)][y(0x120)]===y(0xe1)){if(Object[y(0x117)](b)['length']>=this[y(0x125)]['maxOptsLength']){Log[y(0xfb)](y(0xdb));throw new UsageError();}}}}b=await this[y(0x10e)](a,b,this[y(0x125)]),_prevCmd=a[0x0];}await this[y(0xfe)][y(0x11a)](this,a,b);}catch(j){Log[y(0xe2)](description,examples,usage,c,requiredOpts,d);if(j instanceof UsageErrorWithSubs)Log['notice']('Sub-Commands:'),this[y(0xd9)](this[y(0x101)]),Log[y(0xd8)](y(0xdf));else{if(j instanceof MustBeInProjectError)Log[y(0xfb)](y(0xe9));else{if(j instanceof NoMeteorFoundError)Log[y(0xfb)](y(0xe6)),Log['notice']('Please\x20run\x20\x22maka\x20install\x20meteor\x22');else{if(j instanceof NoMeteorAppFoundError)Log[y(0xfb)](y(0x119));else throw j;}}}process['exit'](0x1);}}[a0s(0xd9)](a){const z=a0s,b=new a0e({});b['push'](['Name',z(0x121),z(0xd1)]),a[z(0xcf)]()[z(0xf1)](c=>{const A=z;c[A(0xd2)]!=='murder'&&c[A(0xd2)]!=='play'&&b[A(0x111)]([c['name'],c[A(0xee)](),c[A(0x11f)]()]);}),Log[z(0xea)](b[z(0x109)]());}[a0s(0xf9)](a){const B=a0s;return this[B(0x101)][B(0xf8)](b=>b[B(0xd5)](a));}['findSubCommand'](a){const C=a0s,b=a?.['split'](':');if(b)return a=b[0x0],this[C(0xf9)](a);else return;}async['runSubCommand'](a,b,c){const D=a0s;try{const d=a['split'](':');a=d[0x0];const f=d[0x1];f&&b[D(0xec)](0x0,0x0,f);const g=this[D(0xf9)](a);if(g)await g[D(0xd3)](b,c);else throw D(0x10d);}catch(h){throw Log['error'](h);}}}
@@ -1 +1 @@
1
- (function(a,b){var f=a1d,c=a();while(!![]){try{var d=parseInt(f(0xcb))/0x1*(parseInt(f(0xc8))/0x2)+parseInt(f(0xc6))/0x3*(parseInt(f(0xc7))/0x4)+parseInt(f(0xc4))/0x5+-parseInt(f(0xc5))/0x6*(-parseInt(f(0xce))/0x7)+parseInt(f(0xc0))/0x8*(-parseInt(f(0xbf))/0x9)+-parseInt(f(0xcd))/0xa*(parseInt(f(0xc2))/0xb)+-parseInt(f(0xc3))/0xc*(parseInt(f(0xcc))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a1c,0xd7aa0));var a1b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a1d;if(c){var e=c[g(0xc1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a1a=a1b(this,function(){var h=a1d;return a1a['toString']()[h(0xca)](h(0xc9))['toString']()['constructor'](a1a)[h(0xca)](h(0xc9));});a1a();function a1c(){var i=['search','1665gSKRHu','153101ADQYds','3089670zTnxZB','84xSPHoT','18htmsdm','1010984wdgYWz','apply','22Ahwtje','1560BjKcNv','6883800WVXGDy','202662TboVug','3sGlMQm','3740804ItWnMQ','682YrLDew','(((.+)+)+)+$'];a1c=function(){return i;};return a1c();}function a1d(a,b){var c=a1c();return a1d=function(d,e){d=d-0xbf;var f=c[d];return f;},a1d(a,b);}import'./aws/_index.js';import'./set/_index.js';import'./get/_index.js';import'./game/_index.js';import'./build/_index.js';import'./run/_index.js';import'./create.js';import'./debug.js';import'./deploy.js';import'./generate.js';import'./help.js';import'./install.js';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'./ai.js';
1
+ (function(a,b){var f=a1d,c=a();while(!![]){try{var d=-parseInt(f(0x1f6))/0x1+parseInt(f(0x1ed))/0x2+parseInt(f(0x1ef))/0x3+-parseInt(f(0x1f2))/0x4+parseInt(f(0x1f8))/0x5*(parseInt(f(0x1f4))/0x6)+-parseInt(f(0x1f1))/0x7*(-parseInt(f(0x1ee))/0x8)+parseInt(f(0x1f0))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a1c,0x8bf50));var a1b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a1d;if(c){var e=c[g(0x1f9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a1a=a1b(this,function(){var h=a1d;return a1a[h(0x1f3)]()[h(0x1f7)]('(((.+)+)+)+$')['toString']()['constructor'](a1a)[h(0x1f7)](h(0x1f5));});a1a();import'./aws/_index.js';import'./set/_index.js';import'./get/_index.js';import'./game/_index.js';import'./build/_index.js';import'./run/_index.js';import'./create.js';import'./debug.js';import'./deploy.js';import'./generate.js';function a1c(){var i=['196DnQttS','2858240CWtOaC','toString','18ueHzFj','(((.+)+)+)+$','466396prXVrq','search','1187205MecgJu','apply','9184NXMUYk','72040IBjkRN','672582KtWleg','5048739kQjvYJ'];a1c=function(){return i;};return a1c();}import'./help.js';import'./install.js';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';function a1d(a,b){var c=a1c();return a1d=function(d,e){d=d-0x1ed;var f=c[d];return f;},a1d(a,b);}import'./murder.js';import'./proxy.js';import'./lint.js';import'./ai.js';
@@ -1 +1 @@
1
- function a2c(){const o=['createInterface','close','search','2409452mEAJLT','9188478suYeiO','error','message','ChatGPT\x20style\x20AI\x20interface','14atjeHV','log','choices','(((.+)+)+)+$','cacert','getGlobalConfig','constructor','trim','Using\x20CA\x20Cert\x20','5wlfHFz','622424aapTFi','6382280Zaonlv','parse','9897xRNhnS','stdout','apply','OpenAI\x20Key\x20is\x20not\x20configured\x20in\x20~/.maka/global-config.json','GPT:\x20','371871jbMNvo','98NJZvpo','openapikey','notice','3316524OncDHp','Type\x20\x27exit\x27\x20to\x20end\x20the\x20chat.','openai','You:\x20','exit','question','stdin','isFile','create','Using\x20OpenAI\x20Key\x20','toString','fsi','cert','CA\x20Cert\x20is\x20configured\x20in\x20~/.maka/global-config.json,\x20but\x20cert\x20file\x20cannot\x20be\x20located\x20','text','askGPT'];a2c=function(){return o;};return a2c();}const a2m=a2d;(function(a,b){const h=a2d,c=a();while(!![]){try{const d=parseInt(h(0x73))/0x1+-parseInt(h(0x74))/0x2*(parseInt(h(0x9c))/0x3)+-parseInt(h(0x8a))/0x4+parseInt(h(0x98))/0x5*(parseInt(h(0x77))/0x6)+parseInt(h(0x8f))/0x7*(parseInt(h(0x99))/0x8)+parseInt(h(0x8b))/0x9+-parseInt(h(0x9a))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a2c,0xaaa33));const a2b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a2d;if(c){const e=c[i(0x9e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a2a=a2b(this,function(){const j=a2d;return a2a[j(0x81)]()[j(0x89)](j(0x92))['toString']()[j(0x95)](a2a)['search']('(((.+)+)+)+$');});function a2d(a,b){const c=a2c();return a2d=function(d,e){d=d-0x73;let f=c[d];return f;},a2d(a,b);}a2a();import{Command}from'../command.js';import{HTTPS}from'../tools/https/https.class.js';import{Log}from'../tools/log/log.class.js';import a2e from'readline';const startChat=async({openApiKey:a,caCertPath:b})=>{const k=a2d,c=a2e[k(0x87)]({'input':process[k(0x7d)],'output':process[k(0x9d)]});c[k(0x7c)](k(0x7a),async d=>{const l=k;if(d['toLowerCase']()===l(0x7b)){c[l(0x88)]();return;}try{const e=await HTTPS[l(0x86)]({'prompt':d,'openApiKey':a,'certPath':b}),f=JSON[l(0x9b)](e['data']);if(f[l(0x8c)])throw new Error(f[l(0x8c)][l(0x8d)]);console[l(0x90)](l(0xa0)+f?.[l(0x91)][0x0]?.[l(0x85)][l(0x96)]());}catch(g){Log[l(0x8c)](g),process[l(0x7b)](0x1);}startChat({'openApiKey':a,'caCertPath':b});});};Command[a2m(0x7f)]({'name':'ai','description':a2m(0x8e),'validOpts':[a2m(0x93),a2m(0x75)],'shortDesc':a2m(0x8e)},async function(a,b){const n=a2m;try{let c='';b[n(0x93)]&&(this[n(0x82)][n(0x7e)](b['cacert'])?(c=b[n(0x93)],Log[n(0x76)](n(0x97)+c)):Log[n(0x8c)]('CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20'+c));const d=await this['fsi'][n(0x94)]();if(d[n(0x83)]){if(this[n(0x82)][n(0x7e)](d['cert']))c=d[n(0x83)];else throw Log[n(0x8c)](n(0x84)+c);}let f='';if(b[n(0x75)])f=b['openapikey'],Log[n(0x76)](n(0x80)+f);else{if(d['openai'])f=d[n(0x79)];else throw Log[n(0x8c)](n(0x9f));}console[n(0x90)](n(0x78)),startChat({'caCertPath':c,'openApiKey':f});}catch(g){g&&console[n(0x8c)](g),process[n(0x7b)](0x1);}});
1
+ const a2l=a2d;(function(a,b){const h=a2d,c=a();while(!![]){try{const d=-parseInt(h(0x90))/0x1*(parseInt(h(0x74))/0x2)+parseInt(h(0x8c))/0x3+parseInt(h(0x89))/0x4*(parseInt(h(0x6f))/0x5)+-parseInt(h(0x6c))/0x6+parseInt(h(0x77))/0x7*(parseInt(h(0x75))/0x8)+parseInt(h(0x92))/0x9*(-parseInt(h(0x83))/0xa)+parseInt(h(0x82))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a2c,0x2fc0a));const a2b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a2a=a2b(this,function(){const i=a2d;return a2a[i(0x86)]()[i(0x8d)](i(0x6e))['toString']()[i(0x67)](a2a)[i(0x8d)]('(((.+)+)+)+$');});a2a();import{Command}from'../command.js';import{HTTPS}from'../tools/https/https.class.js';import{Log}from'../tools/log/log.class.js';function a2c(){const n=['1054485RqdPYp','fsi','choices','CA\x20Cert\x20is\x20configured\x20in\x20~/.maka/global-config.json,\x20but\x20cert\x20file\x20cannot\x20be\x20located\x20','exit','13448skYvkt','74184tVItSr','text','182RcCvmB','Type\x20\x27exit\x27\x20to\x20end\x20the\x20chat.','You:\x20','cert','cacert','ChatGPT\x20style\x20AI\x20interface','notice','openai','stdout','askGPT','Using\x20OpenAI\x20Key\x20','74382BBxHMI','78690jVzdWQ','question','OpenAI\x20Key\x20is\x20not\x20configured\x20in\x20~/.maka/global-config.json','toString','toLowerCase','error','4AAwHnU','log','parse','644466uorPNj','search','message','getGlobalConfig','43ycIJBw','GPT:\x20','207piooYI','CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20','createInterface','constructor','data','create','openapikey','close','47196igBRiU','isFile','(((.+)+)+)+$'];a2c=function(){return n;};return a2c();}import a2e from'readline';function a2d(a,b){const c=a2c();return a2d=function(d,e){d=d-0x66;let f=c[d];return f;},a2d(a,b);}const startChat=async({openApiKey:a,caCertPath:b})=>{const j=a2d,c=a2e[j(0x66)]({'input':process['stdin'],'output':process[j(0x7f)]});c[j(0x84)](j(0x79),async d=>{const k=j;if(d[k(0x87)]()===k(0x73)){c[k(0x6b)]();return;}try{const e=await HTTPS[k(0x80)]({'prompt':d,'openApiKey':a,'certPath':b}),f=JSON[k(0x8b)](e[k(0x68)]);if(f['error'])throw new Error(f['error'][k(0x8e)]);console[k(0x8a)](k(0x91)+f?.[k(0x71)][0x0]?.[k(0x76)]['trim']());}catch(g){Log[k(0x88)](g),process[k(0x73)](0x1);}startChat({'openApiKey':a,'caCertPath':b});});};Command[a2l(0x69)]({'name':'ai','description':a2l(0x7c),'validOpts':['cacert',a2l(0x6a)],'shortDesc':a2l(0x7c)},async function(a,b){const m=a2l;try{let c='';b[m(0x7b)]&&(this[m(0x70)]['isFile'](b[m(0x7b)])?(c=b[m(0x7b)],Log[m(0x7d)]('Using\x20CA\x20Cert\x20'+c)):Log[m(0x88)](m(0x93)+c));const d=await this[m(0x70)][m(0x8f)]();if(d[m(0x7a)]){if(this[m(0x70)][m(0x6d)](d[m(0x7a)]))c=d['cert'];else throw Log[m(0x88)](m(0x72)+c);}let f='';if(b[m(0x6a)])f=b[m(0x6a)],Log[m(0x7d)](m(0x81)+f);else{if(d[m(0x7e)])f=d[m(0x7e)];else throw Log[m(0x88)](m(0x85));}console[m(0x8a)](m(0x78)),startChat({'caCertPath':c,'openApiKey':f});}catch(g){g&&console[m(0x88)](g),process[m(0x73)](0x1);}});
@@ -1 +1 @@
1
- (function(a,b){var f=a3d,c=a();while(!![]){try{var d=parseInt(f(0x75))/0x1*(parseInt(f(0x72))/0x2)+-parseInt(f(0x76))/0x3*(-parseInt(f(0x77))/0x4)+-parseInt(f(0x7a))/0x5+parseInt(f(0x80))/0x6*(parseInt(f(0x78))/0x7)+-parseInt(f(0x7b))/0x8*(-parseInt(f(0x7f))/0x9)+parseInt(f(0x79))/0xa*(parseInt(f(0x74))/0xb)+-parseInt(f(0x7d))/0xc*(parseInt(f(0x7c))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a3c,0x4b0d9));var a3b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a3d;if(c){var e=c[g(0x82)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a3a=a3b(this,function(){var h=a3d;return a3a['toString']()['search'](h(0x7e))[h(0x81)]()['constructor'](a3a)[h(0x73)](h(0x7e));});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';import'./rbi.sub.cmd.js';import'./sth.sub.cmd.js';function a3c(){var i=['3soLuoZ','6572qGaxSS','2422007ajWmzg','299590WSamHE','2833900USQNmU','1864NupnnU','13EzpKHG','5682696MGOXix','(((.+)+)+)+$','9153eADeSi','6OukBqb','toString','apply','4022NQgygV','search','55bTFuvW','305DdhAhj'];a3c=function(){return i;};return a3c();}import'./ti.sub.cmd.js';function a3d(a,b){var c=a3c();return a3d=function(d,e){d=d-0x72;var f=c[d];return f;},a3d(a,b);}import'./dsg.sub.cmd.js';import'./rkp.sub.cmd.js';import'./chz.sub.cmd.js';import'./rdn.sub.cmd.js';
1
+ (function(a,b){var f=a3d,c=a();while(!![]){try{var d=-parseInt(f(0x132))/0x1*(-parseInt(f(0x12f))/0x2)+-parseInt(f(0x136))/0x3+-parseInt(f(0x139))/0x4+parseInt(f(0x130))/0x5+parseInt(f(0x131))/0x6+parseInt(f(0x138))/0x7+-parseInt(f(0x12e))/0x8*(parseInt(f(0x134))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a3c,0xc2c1e));function a3c(){var i=['8905088ObiAoL','652TswIhb','2325195Oorjky','7882986PPOCPk','1979KxyntG','toString','18hgKwmt','(((.+)+)+)+$','1889397mvmqPa','apply','9298100oRFsSd','394108PTBAgO','constructor'];a3c=function(){return i;};return a3c();}var a3b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a3d;if(c){var e=c[g(0x137)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a3a=a3b(this,function(){var h=a3d;return a3a[h(0x133)]()['search'](h(0x135))[h(0x133)]()[h(0x12d)](a3a)['search'](h(0x135));});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';import'./rbi.sub.cmd.js';import'./sth.sub.cmd.js';import'./ti.sub.cmd.js';function a3d(a,b){var c=a3c();return a3d=function(d,e){d=d-0x12d;var f=c[d];return f;},a3d(a,b);}import'./dsg.sub.cmd.js';import'./rkp.sub.cmd.js';import'./chz.sub.cmd.js';import'./rdn.sub.cmd.js';
@@ -1 +1 @@
1
- const a4i=a4d;(function(a,b){const f=a4d,c=a();while(!![]){try{const d=-parseInt(f(0x12b))/0x1*(parseInt(f(0x132))/0x2)+parseInt(f(0x121))/0x3*(parseInt(f(0x129))/0x4)+-parseInt(f(0x128))/0x5+parseInt(f(0x133))/0x6*(-parseInt(f(0x12d))/0x7)+-parseInt(f(0x12c))/0x8*(parseInt(f(0x135))/0x9)+-parseInt(f(0x123))/0xa*(-parseInt(f(0x137))/0xb)+-parseInt(f(0x11f))/0xc*(-parseInt(f(0x127))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0xb5f23));function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0x11f;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(0x120)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a4a=a4b(this,function(){const h=a4d;return a4a[h(0x136)]()[h(0x12f)]('(((.+)+)+)+$')['toString']()['constructor'](a4a)[h(0x12f)](h(0x125));});a4a();import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{UsageErrorWithSubs}from'../../error.js';const AWSCommand=Command[a4i(0x12a)]({'name':a4i(0x124),'usage':a4i(0x134),'minArgLength':0x1,'maxArgLength':0x2,'validOpts':[],'shortDesc':a4i(0x126),'description':a4i(0x130)},async function(a,b){const j=a4i,c=a[0x0],d=this[j(0x131)](c);if(d)this['runSubCommand'](c,a,b);else{Log[j(0x12e)](j(0x122));throw new UsageErrorWithSubs();}});export default AWSCommand;function a4c(){const k=['maka\x20aws:<sub-command>','12336129OqItGO','toString','66fgbIzk','5136jNmqvo','apply','21MvThrX','Sub\x20Command\x20not\x20found','488050sySugE','aws','(((.+)+)+)+$','Manage\x20EC2\x20instances,\x20VPC\x20Security\x20groups,\x20and\x20Key\x20Pairs','91897AQZeYN','3397530sgmDZH','676636ZOlKkl','create','73QmKwFE','8ziyaKb','861938ddRAOI','error','search','\x0a\x20\x20Create,\x20view,\x20terminate\x20EC2\x20instances,\x20assign\x20key-pairs,\x20set\x20host\x20IPs,\x20and\x20more.\x0a\x0a\x20\x20This\x20command\x20currently\x20requires\x20AWS\x20CLI\x20to\x20be\x20installed.\x0a\x20\x20https://aws.amazon.com/cli/\x0a\x20\x20','findSubCommand','33274oWLDex','24JMjjOj'];a4c=function(){return k;};return a4c();}
1
+ const a4i=a4d;(function(a,b){const f=a4d,c=a();while(!![]){try{const d=parseInt(f(0x19b))/0x1*(parseInt(f(0x18d))/0x2)+parseInt(f(0x19a))/0x3+parseInt(f(0x19e))/0x4+parseInt(f(0x199))/0x5*(-parseInt(f(0x191))/0x6)+parseInt(f(0x19d))/0x7+parseInt(f(0x18a))/0x8+-parseInt(f(0x18c))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0x21ba4));const a4b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a4d;if(c){const e=c[g(0x19c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a4a=a4b(this,function(){const h=a4d;return a4a[h(0x18e)]()[h(0x194)]('(((.+)+)+)+$')['toString']()['constructor'](a4a)[h(0x194)](h(0x190));});a4a();import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{UsageErrorWithSubs}from'../../error.js';function a4c(){const k=['(((.+)+)+)+$','36MieOmB','aws','create','search','Sub\x20Command\x20not\x20found','Manage\x20EC2\x20instances,\x20VPC\x20Security\x20groups,\x20and\x20Key\x20Pairs','findSubCommand','error','191620VyAcHJ','306753xkYeWP','12cOAGcm','apply','1631357mFCgkl','494160spNpli','maka\x20aws:<sub-command>','1178912CgoNct','\x0a\x20\x20Create,\x20view,\x20terminate\x20EC2\x20instances,\x20assign\x20key-pairs,\x20set\x20host\x20IPs,\x20and\x20more.\x0a\x0a\x20\x20This\x20command\x20currently\x20requires\x20AWS\x20CLI\x20to\x20be\x20installed.\x0a\x20\x20https://aws.amazon.com/cli/\x0a\x20\x20','3611718IuknlE','27198aZHpkh','toString','runSubCommand'];a4c=function(){return k;};return a4c();}function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0x189;let f=c[d];return f;},a4d(a,b);}const AWSCommand=Command[a4i(0x193)]({'name':a4i(0x192),'usage':a4i(0x189),'minArgLength':0x1,'maxArgLength':0x2,'validOpts':[],'shortDesc':a4i(0x196),'description':a4i(0x18b)},async function(a,b){const j=a4i,c=a[0x0],d=this[j(0x197)](c);if(d)this[j(0x18f)](c,a,b);else{Log[j(0x198)](j(0x195));throw new UsageErrorWithSubs();}});export default AWSCommand;
@@ -1 +1 @@
1
- const a5k=a5d;(function(a,b){const i=a5d,c=a();while(!![]){try{const d=-parseInt(i(0x155))/0x1+-parseInt(i(0x153))/0x2*(-parseInt(i(0x15c))/0x3)+-parseInt(i(0x14c))/0x4*(-parseInt(i(0x157))/0x5)+parseInt(i(0x14f))/0x6*(-parseInt(i(0x159))/0x7)+parseInt(i(0x158))/0x8+parseInt(i(0x156))/0x9+parseInt(i(0x164))/0xa*(parseInt(i(0x15f))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a5c,0xe630b));const a5b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a5a=a5b(this,function(){const j=a5d;return a5a[j(0x150)]()[j(0x161)](j(0x163))[j(0x150)]()[j(0x162)](a5a)[j(0x161)](j(0x163));});function a5d(a,b){const c=a5c();return a5d=function(d,e){d=d-0x14a;let f=c[d];return f;},a5d(a,b);}a5a();import a5e from'./aws.command.js';import{Command}from'../../command.js';function a5c(){const m=['toString','maka\x20aws:chz\x20--domain=example.com','Create\x20a\x20hosted\x20zone\x20in\x20Route\x2053','7858MQkfsw','Instance\x20does\x20not\x20have\x20a\x20public\x20IP\x20address','920688senNba','13403502cFQWLU','2143385XjvFAd','6889344UmCJMy','28sPUExA','chooseInstance','create','105FVgIhg','publicIp','domain','78936OIjlLA','linkEC2ToRoute53','search','constructor','(((.+)+)+)+$','530MQpRpw','error','create-hosted-zone','exit','8adpAIH','route53CreateHostedZone','maka\x20aws:create-hosted-zone','2793144MQZlCW'];a5c=function(){return m;};return a5c();}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[a5k(0x15b)]({'name':a5k(0x14a),'aliases':['chz'],'usage':a5k(0x14e),'requiredOpts':['domain'],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a5k(0x152),'examples':['maka\x20aws:create-hosted-zone\x20--domain=example.com',a5k(0x151)]},async function(a,b){const l=a5k;try{const c=b[l(0x15e)],d=new AWS();d[l(0x14d)](c);const f=await Actions['confirm']('Set\x20hosted\x20zone\x20to\x20an\x20instance?');if(f){const g=await d[l(0x15a)]();if(g?.['id']){if(!g[l(0x15d)])throw Log[l(0x165)](l(0x154));d[l(0x160)](g['id'],g[l(0x15d)],c);}else throw Log['error']('Instance\x20not\x20found');}}catch(h){console[l(0x165)](h),process[l(0x14b)](0x0);}},a5e);
1
+ const a5l=a5d;function a5d(a,b){const c=a5c();return a5d=function(d,e){d=d-0xb4;let f=c[d];return f;},a5d(a,b);}function a5c(){const n=['799556oevoyN','maka\x20aws:create-hosted-zone\x20--domain=example.com','628731pDCLer','12JwtPDo','392936rgppgU','exit','constructor','Set\x20hosted\x20zone\x20to\x20an\x20instance?','chz','create','Create\x20a\x20hosted\x20zone\x20in\x20Route\x2053','create-hosted-zone','185096KiXUdz','9zAaLNL','Instance\x20does\x20not\x20have\x20a\x20public\x20IP\x20address','domain','1666225UeCmEY','maka\x20aws:chz\x20--domain=example.com','Instance\x20not\x20found','publicIp','(((.+)+)+)+$','610165KtSDdZ','apply','route53CreateHostedZone','650PfcFxd','77YTtmLA','toString','search','error','79614vPrCoO'];a5c=function(){return n;};return a5c();}(function(a,b){const i=a5d,c=a();while(!![]){try{const d=-parseInt(i(0xb9))/0x1+-parseInt(i(0xb7))/0x2+-parseInt(i(0xc4))/0x3*(-parseInt(i(0xc3))/0x4)+-parseInt(i(0xcc))/0x5*(-parseInt(i(0xba))/0x6)+-parseInt(i(0xd0))/0x7*(-parseInt(i(0xbb))/0x8)+parseInt(i(0xb6))/0x9*(parseInt(i(0xcf))/0xa)+-parseInt(i(0xc7))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a5c,0x4dae5));const a5b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a5d;if(c){const e=c[j(0xcd)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a5a=a5b(this,function(){const k=a5d;return a5a['toString']()[k(0xb4)](k(0xcb))[k(0xd1)]()[k(0xbd)](a5a)[k(0xb4)](k(0xcb));});a5a();import a5e 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[a5l(0xc0)]({'name':a5l(0xc2),'aliases':[a5l(0xbf)],'usage':'maka\x20aws:create-hosted-zone','requiredOpts':[a5l(0xc6)],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a5l(0xc1),'examples':[a5l(0xb8),a5l(0xc8)]},async function(a,b){const m=a5l;try{const c=b[m(0xc6)],d=new AWS();d[m(0xce)](c);const f=await Actions['confirm'](m(0xbe));if(f){const g=await d['chooseInstance']();if(g?.['id']){if(!g[m(0xca)])throw Log[m(0xb5)](m(0xc5));d['linkEC2ToRoute53'](g['id'],g[m(0xca)],c);}else throw Log[m(0xb5)](m(0xc9));}}catch(h){console[m(0xb5)](h),process[m(0xbc)](0x0);}},a5e);
@@ -1 +1 @@
1
- const a6ag=a6d;(function(a,b){const ae=a6d,c=a();while(!![]){try{const d=-parseInt(ae(0x22b))/0x1+parseInt(ae(0x1f4))/0x2+-parseInt(ae(0x21b))/0x3+parseInt(ae(0x221))/0x4*(parseInt(ae(0x205))/0x5)+-parseInt(ae(0x21d))/0x6+-parseInt(ae(0x212))/0x7*(parseInt(ae(0x22e))/0x8)+parseInt(ae(0x1ec))/0x9*(parseInt(ae(0x1d8))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0xe4a47));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 af=a6d;return a6a[af(0x203)]()[af(0x1f5)](af(0x1f8))['toString']()[af(0x1e7)](a6a)['search']('(((.+)+)+)+$');});a6a();function a6d(a,b){const c=a6c();return a6d=function(d,e){d=d-0x1cd;let f=c[d];return f;},a6d(a,b);}import a6e from'./aws.command.js';import{execSync}from'child_process';import a6f from'path';import a6g from'fs';import{Actions}from'../../tools/actions/actions.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{FSI}from'../../tools/fsi/fsi.class.js';function a6c(){const at=['Instace\x20Type:\x20','**\x20Available\x20Security\x20Groups\x20**','split','Setting\x20the\x20key-pair\x20to:\x20','confirm','How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20','error','subnet','Create\x20new\x20AWS\x20instance','1616449QsrqQh','Please\x20choose\x20a\x20key\x20to\x20use:\x20','Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?','856sNCpJo','create','getTime','\x20:\x20','You\x20must\x20have\x20a\x20key-pair.\x20\x20Please\x20run\x20\x22maka\x20aws\x20create-key-pair\x20--env\x20<env-name>\x22\x20to\x20generate\x20a\x20new\x20key','Setting\x20the\x20number\x20of\x20instances\x20to:\x20','ec2describeKeys','Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file','cidr','Remove\x20the\x20security\x20group\x20','Setting\x20Subnet\x20ID\x20to\x20','**\x20Available\x20AMIs\x20**','number','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','Would\x20you\x20like\x20to\x20include\x20user\x20data?','user-data','createFile','unlinkSync','\x20AZONE:\x20','101440IXKlBb','string','Creating\x20user\x20data\x20file\x20in\x20','Setting\x20AMI\x20ID\x20to\x20','sgId','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=*','\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22','User\x20Data:','\x20CIDR:\x20','deleteSecurityGroup','ImageID:','subnetId','Remove\x20the\x20keypair\x20','Key-Pair:\x20','success','constructor','aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22','notice','ID:\x20','createKeyPair','2493Vzbcip','\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','ec2create','Name','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','Instance\x20Count:\x20','t3.micro','EC2\x20Name:\x20[','2558118JdCDgh','search','push','env','(((.+)+)+)+$','alias','Desc','Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.','\x20SG\x20NAME:\x20','desc','maka\x20aws:ci\x20--env\x20prod','cider','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','ask','**\x20Available\x20key-pairs\x20**','toString','getConfigPath','5upYADr','Setting\x20SG\x20ID\x20to:\x20','amazon','join','Web\x20App','ec2createSG','What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]','bright','aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values=','Subnet:\x20','log','Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?','forEach','735XwAJCl','amiId','fsi','getProjectConfig','Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?','chooseVPC','sort','parse','\x20DESCRIPTION:\x20','5397759fmHgaS','name','546078rYxWHA','readFileSync','1:1','maka-cli','1462088RWqipn'];a6c=function(){return at;};return a6c();}Command[a6ag(0x22f)]({'name':'create-instance','aliases':['ci'],'usage':'maka\x20aws:create-instance','examples':['maka\x20aws:create-instance\x20--env\x20dev',a6ag(0x1fe)],'mustBeInMakaProject':!![],'requiredOpts':[{'name':a6ag(0x1f7)}],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a6ag(0x22a),'description':a6ag(0x1ed)},async function(a,b){const ah=a6ag;try{const c=this[ah(0x214)][ah(0x215)](),d=new AWS(),f=new FSI(),{appName:g}=c,h=this['fsi']['getConfigFromShorthand'](b[ah(0x1f7)]),i=this[ah(0x214)][ah(0x204)](h),j=g+'-'+h,k=await Actions['ask'](ah(0x1f3)+j+']\x20')||j;let l='',m='',n='',o='',p='';const q=await Actions[ah(0x226)](ah(0x216),!![]);let r='',s='';if(q){const {keyName:y,filePath:z}=await d[ah(0x1eb)]({'env':h});r=y,s=z,Log[ah(0x1e6)](ah(0x225)+r);}else try{Log[ah(0x1e9)](ah(0x202));const A=r?r:k,B=await d[ah(0x234)]({'suggestion':A}),C=await Actions[ah(0x201)](ah(0x22c))||'-1';if(parseInt(C)<0x0){Log[ah(0x228)](ah(0x232)),Log[ah(0x1e9)]('No\x20instance\x20has\x20been\x20created.');return;}B?.['forEach'](function(D){const ai=ah;parseInt(C)===D['id']&&(r=D[ai(0x21c)],Log[ai(0x1e6)](ai(0x225)+r));});}catch(D){Log[ah(0x228)](D);}l=await d['chooseVPC']();const t=await Actions[ah(0x226)](ah(0x22d),!![]);let u;if(t){const E=l===''?await d[ah(0x217)]():l;u=await Actions[ah(0x201)]('Security\x20Group\x20Name:\x20['+k+']')||k;const F=await Actions['ask'](ah(0x1d2))||'22,80,443',G=F[ah(0x224)](',');await d[ah(0x20a)]({'description':ah(0x209),'name':u,'vpcId':E,'sgPorts':G});}u=k;try{const {listIndexId:H,createdSgId:I,sgList:J}=await d['getSecurityGroups'](u);if(I===''){Log[ah(0x1e9)](ah(0x223)),J['forEach'](function(L){const aj=ah;L[aj(0x21c)]===u?Log[aj(0x1e9)]('ID:\x20'+L['id']+aj(0x1fc)+L[aj(0x21c)]+'\x20SGID:\x20'+L[aj(0x1dc)]):Log[aj(0x20c)](aj(0x1ea)+L['id']+'\x20SG\x20NAME:\x20'+L[aj(0x21c)]+'\x20SGID:\x20'+L[aj(0x1dc)]);});const K=await Actions[ah(0x201)]('Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20['+H+']\x20')||H['toString']();J['forEach'](function(L){const ak=ah;L['id']===parseInt(K)&&(m=L[ak(0x1dc)],Log[ak(0x1e6)](ak(0x206)+m+'\x0a'));});}else m=I,Log[ah(0x1e6)]('Setting\x20SG\x20ID\x20to:\x20'+m+'\x0a');if(m==='')throw Log['error'](ah(0x1f0));}catch(L){Log[ah(0x228)](L);}try{const M=0x7e6;Log[ah(0x1e9)](ah(0x1d0));const N=execSync(ah(0x1dd)+M+'*\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')[ah(0x203)](),O=JSON[ah(0x219)](N),P=[],Q=[];O[ah(0x211)](function(S){const al=ah;if(S[al(0x1f9)]===al(0x207)){const T=S[al(0x1fa)][al(0x224)]('build\x20on\x20')[0x1];P[al(0x1f6)]({'amiId':S['ID'],'desc':S[al(0x1fa)],'date':T});}}),P[ah(0x218)](function(S,T){const am=ah;return new Date(T['date'])[am(0x230)]()-new Date(S['date'])[am(0x230)]();}),P['forEach'](function(S,T){const an=ah;Q[an(0x1f6)]({'id':T,'amiId':S['amiId'],'desc':S[an(0x1fd)]});}),Q[ah(0x211)](function(S){const ao=ah;console['log'](ao(0x1ea)+S['id']+'\x20AMIID:\x20'+S[ao(0x213)]+ao(0x21a)+S[ao(0x1fd)]);});const R=await Actions[ah(0x201)](ah(0x200))||'0';Q[ah(0x211)](function(S){const ap=ah;S['id']===parseInt(R)&&(n=S['amiId'],Log[ap(0x1e6)](ap(0x1db)+n+ap(0x231)+S[ap(0x1fd)]));});if(n==='')throw Log[ah(0x228)](ah(0x1f0));}catch(S){Log['error'](S);}try{Log[ah(0x1e9)]('**\x20Available\x20Subnets\x20**');const T=execSync(ah(0x1e8))[ah(0x203)](),U=JSON[ah(0x219)](T),V=[];U['forEach'](function(X,Y){const aq=ah;V[aq(0x1f6)]({'id':Y,'cidr':X[aq(0x1ff)],'az':X['az'],'subnetId':X[aq(0x1e3)]});}),V[ah(0x211)](function(X){const ar=ah;console['log'](ar(0x1ea)+X['id']+ar(0x1e0)+X[ar(0x1cd)]+ar(0x1d7)+X['az']+'\x20SUBNETID:\x20'+X[ar(0x1e3)]);});const W=await Actions[ah(0x201)]('Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20')||'0';V[ah(0x211)](function(X){const as=ah;X['id']===parseInt(W)&&(p=X[as(0x1e3)],Log[as(0x1e6)](as(0x1cf)+p));});if(p==='')throw Log[ah(0x228)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');}catch(X){Log[ah(0x228)](X);}const v=0x1,w=0x1;try{const Y=await Actions['ask'](ah(0x227))||ah(0x21f),Z=Y[ah(0x224)](':')[0x0],a0=Y[ah(0x224)](':')[0x1];typeof parseInt(Z)===ah(0x1d1)&&typeof parseInt(a0)===ah(0x1d1)&&Log['success'](ah(0x233)+Z+':'+a0);}catch(a1){Log['error'](a1);}try{const a2=await Actions[ah(0x201)](ah(0x20b))||ah(0x1f2);typeof a2===ah(0x1d9)&&(o=a2);}catch(a3){Log['error'](a3);}let x='';try{const a4=await Actions[ah(0x226)](ah(0x1d3),![]);a4&&(x=a6f[ah(0x208)](i,ah(0x1d4)),Log[ah(0x1e9)](ah(0x1da)+x),await this[ah(0x214)][ah(0x1d5)]({'filePath':x,'data':''}),await Actions[ah(0x226)](ah(0x210)));}catch(a5){Log[ah(0x228)](a5);}try{const a6=JSON[ah(0x219)](execSync(ah(0x20d)+p+ah(0x1de))[ah(0x203)]())[0x0][ah(0x229)];Log[ah(0x1e9)](ah(0x1e2)+n),Log['notice'](ah(0x1f1)+v+':'+w),Log[ah(0x1e9)](ah(0x222)+o),Log[ah(0x1e9)](ah(0x1e5)+r),Log[ah(0x1e9)]('Security\x20Group:\x20'+m),Log[ah(0x1e9)](ah(0x20e)+a6);if(x){Log[ah(0x1e9)](ah(0x1df)+x);const a8=a6g[ah(0x21e)](x)[ah(0x203)]();Log[ah(0x1e9)](a8);}const a7=await Actions[ah(0x226)]('Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.');if(a7){const a9=await d[ah(0x1ee)]({'imageId':n,'minCount':v,'maxCount':w,'type':o,'key':r,'sgIds':m,'subnet':p,'tags':[{'Key':'created-by','Value':ah(0x220)},{'Key':'environment','Value':h},{'Key':ah(0x1ef),'Value':k}],...x&&{'userData':x}});a9&&(Log[ah(0x1e6)](ah(0x1fb)),Log[ah(0x20c)](ah(0x235)));}else{Log[ah(0x1e9)]('ABORTED!\x20No\x20instance\x20has\x20been\x20created!');const aa=await Actions['confirm'](ah(0x1e4)+r+'\x20?',!![]);aa&&(d['deleteKeyPair'](r),f['isFile'](s)&&a6g[ah(0x1d6)](s));const ab=await Actions[ah(0x226)](ah(0x1ce)+m+'\x20?',!![]);ab&&d[ah(0x1e1)](m);}}catch(ac){console[ah(0x20f)](ac),Log[ah(0x228)](ac);}}catch(ad){console['error'](ad),process['exit'](0x0);}},a6e);
1
+ const a6ag=a6d;(function(a,b){const ae=a6d,c=a();while(!![]){try{const d=parseInt(ae(0x21e))/0x1*(-parseInt(ae(0x1e1))/0x2)+-parseInt(ae(0x1fb))/0x3*(parseInt(ae(0x229))/0x4)+parseInt(ae(0x1d4))/0x5*(-parseInt(ae(0x1c9))/0x6)+-parseInt(ae(0x1e7))/0x7*(-parseInt(ae(0x212))/0x8)+parseInt(ae(0x1d8))/0x9+parseInt(ae(0x1fe))/0xa*(-parseInt(ae(0x1da))/0xb)+parseInt(ae(0x1f5))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0x1c6b5));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 af=a6d;return a6a[af(0x200)]()[af(0x1d5)](af(0x213))[af(0x200)]()[af(0x20a)](a6a)[af(0x1d5)](af(0x213));});a6a();import a6e from'./aws.command.js';import{execSync}from'child_process';function a6d(a,b){const c=a6c();return a6d=function(d,e){d=d-0x1c7;let f=c[d];return f;},a6d(a,b);}import a6f from'path';import a6g from'fs';import{Actions}from'../../tools/actions/actions.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{FSI}from'../../tools/fsi/fsi.class.js';Command[a6ag(0x21b)]({'name':a6ag(0x211),'aliases':['ci'],'usage':'maka\x20aws:create-instance','examples':['maka\x20aws:create-instance\x20--env\x20dev',a6ag(0x208)],'mustBeInMakaProject':!![],'requiredOpts':[{'name':a6ag(0x1cb)}],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':'Create\x20new\x20AWS\x20instance','description':'\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'},async function(a,b){const ah=a6ag;try{const c=this[ah(0x1fa)][ah(0x1de)](),d=new AWS(),f=new FSI(),{appName:g}=c,h=this[ah(0x1fa)][ah(0x1dc)](b[ah(0x1cb)]),i=this[ah(0x1fa)][ah(0x220)](h),j=g+'-'+h,k=await Actions['ask'](ah(0x207)+j+']\x20')||j;let l='',m='',n='',o='',p='';const q=await Actions[ah(0x1f7)](ah(0x1d0),!![]);let r='',s='';if(q){const {keyName:y,filePath:z}=await d[ah(0x1d2)]({'env':h});r=y,s=z,Log[ah(0x1cf)](ah(0x206)+r);}else try{Log[ah(0x202)](ah(0x1ef));const A=r?r:k,B=await d[ah(0x1d9)]({'suggestion':A}),C=await Actions['ask'](ah(0x1ea))||'-1';if(parseInt(C)<0x0){Log[ah(0x20f)](ah(0x224)),Log[ah(0x202)](ah(0x22e));return;}B?.[ah(0x222)](function(D){const ai=ah;parseInt(C)===D['id']&&(r=D[ai(0x20d)],Log[ai(0x1cf)](ai(0x206)+r));});}catch(D){Log['error'](D);}l=await d[ah(0x1ca)]();const t=await Actions[ah(0x1f7)]('Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?',!![]);let u;if(t){const E=l===''?await d[ah(0x1ca)]():l;u=await Actions['ask']('Security\x20Group\x20Name:\x20['+k+']')||k;const F=await Actions[ah(0x204)]('Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20')||ah(0x228),G=F['split'](',');await d[ah(0x216)]({'description':'Web\x20App','name':u,'vpcId':E,'sgPorts':G});}u=k;try{const {listIndexId:H,createdSgId:I,sgList:J}=await d['getSecurityGroups'](u);if(I===''){Log[ah(0x202)](ah(0x1f1)),J['forEach'](function(L){const aj=ah;L[aj(0x20d)]===u?Log[aj(0x202)](aj(0x231)+L['id']+aj(0x1e5)+L[aj(0x20d)]+aj(0x1f2)+L[aj(0x1cc)]):Log[aj(0x1d1)](aj(0x231)+L['id']+aj(0x1e5)+L[aj(0x20d)]+aj(0x1f2)+L[aj(0x1cc)]);});const K=await Actions[ah(0x204)](ah(0x21c)+H+']\x20')||H[ah(0x200)]();J[ah(0x222)](function(L){const ak=ah;L['id']===parseInt(K)&&(m=L[ak(0x1cc)],Log[ak(0x1cf)](ak(0x1e9)+m+'\x0a'));});}else m=I,Log[ah(0x1cf)](ah(0x1e9)+m+'\x0a');if(m==='')throw Log[ah(0x20f)](ah(0x1eb));}catch(L){Log[ah(0x20f)](L);}try{const M=0x7e6;Log[ah(0x202)](ah(0x21f));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+ah(0x225))[ah(0x200)](),O=JSON[ah(0x21d)](N),P=[],Q=[];O[ah(0x222)](function(S){const al=ah;if(S[al(0x1ec)]==='amazon'){const T=S[al(0x221)]['split'](al(0x22d))[0x1];P[al(0x1e0)]({'amiId':S['ID'],'desc':S[al(0x221)],'date':T});}}),P[ah(0x218)](function(S,T){const am=ah;return new Date(T[am(0x1f0)])[am(0x1d7)]()-new Date(S[am(0x1f0)])[am(0x1d7)]();}),P[ah(0x222)](function(S,T){const an=ah;Q[an(0x1e0)]({'id':T,'amiId':S[an(0x1db)],'desc':S[an(0x1f9)]});}),Q[ah(0x222)](function(S){const ao=ah;console[ao(0x1e3)]('ID:\x20'+S['id']+'\x20AMIID:\x20'+S[ao(0x1db)]+'\x20DESCRIPTION:\x20'+S[ao(0x1f9)]);});const R=await Actions[ah(0x204)]('Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20')||'0';Q[ah(0x222)](function(S){const ap=ah;S['id']===parseInt(R)&&(n=S[ap(0x1db)],Log['success'](ap(0x1ce)+n+ap(0x214)+S['desc']));});if(n==='')throw Log['error'](ah(0x1eb));}catch(S){Log[ah(0x20f)](S);}try{Log[ah(0x202)](ah(0x1fc));const T=execSync(ah(0x201))[ah(0x200)](),U=JSON[ah(0x21d)](T),V=[];U[ah(0x222)](function(X,Y){const aq=ah;V[aq(0x1e0)]({'id':Y,'cidr':X[aq(0x22b)],'az':X['az'],'subnetId':X[aq(0x223)]});}),V[ah(0x222)](function(X){const ar=ah;console[ar(0x1e3)](ar(0x231)+X['id']+ar(0x1d3)+X[ar(0x1f3)]+'\x20AZONE:\x20'+X['az']+'\x20SUBNETID:\x20'+X[ar(0x223)]);});const W=await Actions['ask'](ah(0x230))||'0';V[ah(0x222)](function(X){const as=ah;X['id']===parseInt(W)&&(p=X[as(0x223)],Log[as(0x1cf)](as(0x1e4)+p));});if(p==='')throw Log['error'](ah(0x1eb));}catch(X){Log[ah(0x20f)](X);}const v=0x1,w=0x1;try{const Y=await Actions[ah(0x204)](ah(0x232))||ah(0x20c),Z=Y['split'](':')[0x0],a0=Y[ah(0x22c)](':')[0x1];typeof parseInt(Z)===ah(0x20e)&&typeof parseInt(a0)===ah(0x20e)&&Log[ah(0x1cf)]('Setting\x20the\x20number\x20of\x20instances\x20to:\x20'+Z+':'+a0);}catch(a1){Log[ah(0x20f)](a1);}try{const a2=await Actions[ah(0x204)](ah(0x1f8))||ah(0x1d6);typeof a2===ah(0x219)&&(o=a2);}catch(a3){Log[ah(0x20f)](a3);}let x='';try{const a4=await Actions[ah(0x1f7)](ah(0x1fd),![]);a4&&(x=a6f[ah(0x209)](i,ah(0x1c7)),Log[ah(0x202)]('Creating\x20user\x20data\x20file\x20in\x20'+x),await this[ah(0x1fa)][ah(0x215)]({'filePath':x,'data':''}),await Actions['confirm']('Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?'));}catch(a5){Log[ah(0x20f)](a5);}try{const a6=JSON[ah(0x21d)](execSync(ah(0x1f6)+p+ah(0x210))[ah(0x200)]())[0x0][ah(0x203)];Log[ah(0x202)]('ImageID:'+n),Log[ah(0x202)](ah(0x217)+v+':'+w),Log[ah(0x202)](ah(0x1e6)+o),Log['notice'](ah(0x1dd)+r),Log[ah(0x202)](ah(0x1df)+m),Log[ah(0x202)]('Subnet:\x20'+a6);if(x){Log[ah(0x202)]('User\x20Data:'+x);const a8=a6g[ah(0x227)](x)[ah(0x200)]();Log[ah(0x202)](a8);}const a7=await Actions['confirm'](ah(0x1ff));if(a7){const a9=await d[ah(0x1f4)]({'imageId':n,'minCount':v,'maxCount':w,'type':o,'key':r,'sgIds':m,'subnet':p,'tags':[{'Key':ah(0x205),'Value':ah(0x1ee)},{'Key':'environment','Value':h},{'Key':ah(0x1e8),'Value':k}],...x&&{'userData':x}});a9&&(Log[ah(0x1cf)](ah(0x22f)),Log[ah(0x1d1)](ah(0x1e2)));}else{Log[ah(0x202)](ah(0x1cd));const aa=await Actions[ah(0x1f7)](ah(0x1ed)+r+'\x20?',!![]);aa&&(d[ah(0x20b)](r),f[ah(0x226)](s)&&a6g[ah(0x21a)](s));const ab=await Actions[ah(0x1f7)](ah(0x1c8)+m+'\x20?',!![]);ab&&d[ah(0x22a)](m);}}catch(ac){console[ah(0x1e3)](ac),Log[ah(0x20f)](ac);}}catch(ad){console[ah(0x20f)](ad),process['exit'](0x0);}},a6e);function a6c(){const at=['\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22','create-instance','1437320EMNUcK','(((.+)+)+)+$','\x20:\x20','createFile','ec2createSG','Instance\x20Count:\x20','sort','string','unlinkSync','create','Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[','parse','83qarAkh','**\x20Available\x20AMIs\x20**','getConfigPath','Desc','forEach','subnetId','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','*\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','isFile','readFileSync','22,80,443','40VeStLt','deleteSecurityGroup','cider','split','build\x20on\x20','No\x20instance\x20has\x20been\x20created.','Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.','Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','ID:\x20','How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20','user-data','Remove\x20the\x20security\x20group\x20','4962EpgQVB','chooseVPC','env','sgId','ABORTED!\x20No\x20instance\x20has\x20been\x20created!','Setting\x20AMI\x20ID\x20to\x20','success','Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?','bright','createKeyPair','\x20CIDR:\x20','265hbnKOn','search','t3.micro','getTime','16128CUmJVw','ec2describeKeys','11qiQnIB','amiId','getConfigFromShorthand','Key-Pair:\x20','getProjectConfig','Security\x20Group:\x20','push','1434vnZfGY','Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file','log','Setting\x20Subnet\x20ID\x20to\x20','\x20SG\x20NAME:\x20','Instace\x20Type:\x20','7XBxYWm','Name','Setting\x20SG\x20ID\x20to:\x20','Please\x20choose\x20a\x20key\x20to\x20use:\x20','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','alias','Remove\x20the\x20keypair\x20','maka-cli','**\x20Available\x20key-pairs\x20**','date','**\x20Available\x20Security\x20Groups\x20**','\x20SGID:\x20','cidr','ec2create','4279548isautI','aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values=','confirm','What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]','desc','fsi','48702PRJsxc','**\x20Available\x20Subnets\x20**','Would\x20you\x20like\x20to\x20include\x20user\x20data?','1559990EgIqgn','Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.','toString','aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22','notice','subnet','ask','created-by','Setting\x20the\x20key-pair\x20to:\x20','EC2\x20Name:\x20[','maka\x20aws:ci\x20--env\x20prod','join','constructor','deleteKeyPair','1:1','name','number','error'];a6c=function(){return at;};return a6c();}
@@ -1 +1 @@
1
- const a7j=a7d;(function(a,b){const g=a7d,c=a();while(!![]){try{const d=-parseInt(g(0x112))/0x1+parseInt(g(0x113))/0x2*(-parseInt(g(0x122))/0x3)+parseInt(g(0x11e))/0x4*(-parseInt(g(0x11a))/0x5)+parseInt(g(0x118))/0x6*(-parseInt(g(0x10f))/0x7)+parseInt(g(0x114))/0x8+-parseInt(g(0x119))/0x9+parseInt(g(0x110))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a7c,0xba0d6));function a7c(){const l=['(((.+)+)+)+$','3mSkOmJ','\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','ckp','60025qUGJCc','51052140hDMUrU','apply','1431429kgbnUD','2603612WJwdUI','7379664krhwyU','constructor','getConfigFromShorthand','exit','840ZbqMCd','2793087QFapMj','105seifCJ','env','createKeyPair','Create\x20a\x20Key\x20Pair\x20for\x20AWS\x20an\x20EC2\x20instance','194576EiONQy','toString','maka\x20aws:ckp\x20--env\x20prod'];a7c=function(){return l;};return a7c();}function a7d(a,b){const c=a7c();return a7d=function(d,e){d=d-0x10f;let f=c[d];return f;},a7d(a,b);}const a7b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a7d;if(c){const e=c[h(0x111)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a7a=a7b(this,function(){const i=a7d;return a7a[i(0x11f)]()['search'](i(0x121))[i(0x11f)]()[i(0x115)](a7a)['search'](i(0x121));});a7a();import a7e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';Command['create']({'name':'create-key-pair','aliases':[a7j(0x124)],'usage':'maka\x20aws:create-key-pair','examples':['maka\x20aws:create-key-pair\x20--env\x20prod',a7j(0x120)],'mustBeInMakaProject':!![],'requiredOpts':['env'],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a7j(0x11d),'description':a7j(0x123)},async function(a,b){const k=a7j;try{const c=new AWS(),d=this['fsi'][k(0x116)](b[k(0x11b)]);c[k(0x11c)]({'env':d});}catch(f){console['error'](f),process[k(0x117)](0x0);}},a7e);
1
+ const a7j=a7d;(function(a,b){const g=a7d,c=a();while(!![]){try{const d=parseInt(g(0x147))/0x1*(-parseInt(g(0x14e))/0x2)+parseInt(g(0x14a))/0x3*(parseInt(g(0x151))/0x4)+parseInt(g(0x157))/0x5*(parseInt(g(0x149))/0x6)+-parseInt(g(0x14b))/0x7+-parseInt(g(0x145))/0x8+-parseInt(g(0x148))/0x9+parseInt(g(0x15a))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a7c,0x86a96));const a7b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a7d;if(c){const e=c[h(0x14d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a7a=a7b(this,function(){const i=a7d;return a7a[i(0x158)]()[i(0x156)]('(((.+)+)+)+$')['toString']()['constructor'](a7a)['search'](i(0x146));});function a7c(){const l=['exit','2312432WZndps','(((.+)+)+)+$','171UtApbg','9638190CRjFtD','1902aqkRaQ','72969BRFRAU','6210995AOPzrU','env','apply','11054fVJhas','\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','create','52tXMCdG','getConfigFromShorthand','maka\x20aws:ckp\x20--env\x20prod','fsi','createKeyPair','search','6165WlsSid','toString','maka\x20aws:create-key-pair','30368800wnUAUx','error'];a7c=function(){return l;};return a7c();}a7a();import a7e from'./aws.command.js';import{Command}from'../../command.js';function a7d(a,b){const c=a7c();return a7d=function(d,e){d=d-0x145;let f=c[d];return f;},a7d(a,b);}import{AWS}from'../../tools/aws/aws.class.js';Command[a7j(0x150)]({'name':'create-key-pair','aliases':['ckp'],'usage':a7j(0x159),'examples':['maka\x20aws:create-key-pair\x20--env\x20prod',a7j(0x153)],'mustBeInMakaProject':!![],'requiredOpts':['env'],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':'Create\x20a\x20Key\x20Pair\x20for\x20AWS\x20an\x20EC2\x20instance','description':a7j(0x14f)},async function(a,b){const k=a7j;try{const c=new AWS(),d=this[k(0x154)][k(0x152)](b[k(0x14c)]);c[k(0x155)]({'env':d});}catch(f){console[k(0x15b)](f),process[k(0x15c)](0x0);}},a7e);
@@ -1 +1 @@
1
- const a8p=a8d;(function(a,b){const m=a8d,c=a();while(!![]){try{const d=parseInt(m(0x1eb))/0x1+parseInt(m(0x1e8))/0x2+parseInt(m(0x1ed))/0x3+-parseInt(m(0x1f4))/0x4+parseInt(m(0x1de))/0x5+-parseInt(m(0x1dc))/0x6*(parseInt(m(0x1ee))/0x7)+-parseInt(m(0x1e2))/0x8*(parseInt(m(0x1f2))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a8c,0x976ad));const a8b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a8d;if(c){const e=c[n(0x1d8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a8a=a8b(this,function(){const o=a8d;return a8a[o(0x1df)]()[o(0x1e3)](o(0x1e5))['toString']()['constructor'](a8a)[o(0x1e3)](o(0x1e5));});function a8d(a,b){const c=a8c();return a8d=function(d,e){d=d-0x1d5;let f=c[d];return f;},a8d(a,b);}a8a();import a8e from'./aws.command.js';function a8c(){const s=['name','Security\x20Group\x20Name:\x20[','62072qupJIK','search','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','(((.+)+)+)+$','22,80,443','maka\x20aws\x20create-security-group','532472tpwHaN','List\x20is\x20not\x20all\x20numbers','maka\x20aws:csg','217097GtkeOU','split','1347147nnkmZb','189asjqsn','csg','create','error','162PabxSQ','fsi','2218564qrjxzL','Create\x20a\x20new\x20secuirty\x20group\x20in\x20a\x20VPC\x20for\x20an\x20EC2','ec2createSG','Web\x20App','apply','create-security-group','chooseVPC','\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','132936VqNRAV','exit','4901690GRssCl','toString'];a8c=function(){return s;};return a8c();}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[a8p(0x1f0)]({'name':a8p(0x1d9),'aliases':[a8p(0x1ef)],'usage':a8p(0x1e7),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a8p(0x1d5),'description':a8p(0x1db),'examples':['maka\x20aws:create-secuirty-group',a8p(0x1ea)]},async function(a,b){const q=a8p;try{const c=new AWS(),d=this[q(0x1f3)]['getProjectConfig'](),{appName:f}=d,g=await c[q(0x1da)](),h=b['name']?b[q(0x1e0)]:''+f,i=await Actions['ask'](q(0x1e1)+h+']')||h,j=await Actions['ask'](q(0x1e4))||q(0x1e6),k=j[q(0x1ec)](',');k['forEach'](l=>{const r=q;if(!l['match'](/^\d+$/))throw r(0x1e9);}),await c[q(0x1d6)]({'description':q(0x1d7),'name':i,'vpcId':g,'sgPorts':k});}catch(l){Log[q(0x1f1)](l),process[q(0x1dd)](0x1);}},a8e);
1
+ const a8p=a8d;(function(a,b){const m=a8d,c=a();while(!![]){try{const d=-parseInt(m(0x120))/0x1+-parseInt(m(0x121))/0x2*(-parseInt(m(0x117))/0x3)+-parseInt(m(0x126))/0x4*(-parseInt(m(0x125))/0x5)+-parseInt(m(0x112))/0x6+parseInt(m(0x11d))/0x7+-parseInt(m(0x10a))/0x8+-parseInt(m(0x11e))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a8c,0xe1f85));const a8b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a8d;if(c){const e=c[n(0x11c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a8a=a8b(this,function(){const o=a8d;return a8a[o(0x10d)]()[o(0x123)](o(0x10e))[o(0x10d)]()[o(0x116)](a8a)[o(0x123)]('(((.+)+)+)+$');});a8a();import a8e from'./aws.command.js';import{Command}from'../../command.js';import{Actions}from'../../tools/actions/actions.class.js';import{AWS}from'../../tools/aws/aws.class.js';function a8d(a,b){const c=a8c();return a8d=function(d,e){d=d-0x107;let f=c[d];return f;},a8d(a,b);}import{Log}from'../../tools/log/log.class.js';Command[a8p(0x10b)]({'name':a8p(0x10c),'aliases':['csg'],'usage':a8p(0x11a),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':'Create\x20a\x20new\x20secuirty\x20group\x20in\x20a\x20VPC\x20for\x20an\x20EC2','description':'\x0a\x20\x20Create\x20a\x20secuirty\x20group\x20on\x20a\x20Virtual\x20Private\x20Cloud\x20(VPC)\x20which\x0a\x20\x20can\x20be\x20used\x20with\x20a\x20new\x20EC2\x20instance.\x0a\x20\x20','examples':[a8p(0x118),a8p(0x10f)]},async function(a,b){const q=a8p;try{const c=new AWS(),d=this[q(0x110)]['getProjectConfig'](),{appName:f}=d,g=await c[q(0x11f)](),h=b[q(0x119)]?b[q(0x119)]:''+f,i=await Actions[q(0x11b)](q(0x111)+h+']')||h,j=await Actions[q(0x11b)]('Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20')||q(0x122),k=j[q(0x108)](',');k[q(0x124)](l=>{const r=q;if(!l['match'](/^\d+$/))throw r(0x113);}),await c[q(0x107)]({'description':q(0x114),'name':i,'vpcId':g,'sgPorts':k});}catch(l){Log[q(0x115)](l),process[q(0x109)](0x1);}},a8e);function a8c(){const s=['apply','4731342kAuluh','1381653AVpZtP','chooseVPC','1116466jNHjWv','3488692gaEpPu','22,80,443','search','forEach','617960BUQHGA','40wzoNZy','ec2createSG','split','exit','5065400VPNlSW','create','create-security-group','toString','(((.+)+)+)+$','maka\x20aws:csg','fsi','Security\x20Group\x20Name:\x20[','4964646MIDsVC','List\x20is\x20not\x20all\x20numbers','Web\x20App','error','constructor','3OwQmHh','maka\x20aws:create-secuirty-group','name','maka\x20aws\x20create-security-group','ask'];a8c=function(){return s;};return a8c();}
@@ -1 +1 @@
1
- const a9i=a9d;(function(a,b){const f=a9d,c=a();while(!![]){try{const d=-parseInt(f(0x173))/0x1*(parseInt(f(0x16b))/0x2)+parseInt(f(0x16c))/0x3*(-parseInt(f(0x16a))/0x4)+-parseInt(f(0x17f))/0x5*(parseInt(f(0x176))/0x6)+-parseInt(f(0x16e))/0x7*(-parseInt(f(0x180))/0x8)+parseInt(f(0x177))/0x9*(parseInt(f(0x17e))/0xa)+-parseInt(f(0x16d))/0xb+parseInt(f(0x168))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a9c,0x7b531));function a9c(){const k=['exit','describe-instances','maka\x20aws:di','170wGwsQn','15dwKENc','904QGXrIc','14365644nGmPvM','toString','139604WiAfyg','808466MFzimQ','45ajdInA','5606425GpToMH','60725GbPzAN','search','(((.+)+)+)+$','create','maka\x20aws:describe-instances','1qJyIvQ','\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','ec2describeInstances','636168ZoAJFM','44064UJkuFr','error','constructor','apply'];a9c=function(){return k;};return a9c();}const a9b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a9d;if(c){const e=c[g(0x17a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a9a=a9b(this,function(){const h=a9d;return a9a[h(0x169)]()[h(0x16f)](h(0x170))[h(0x169)]()[h(0x179)](a9a)[h(0x16f)](h(0x170));});function a9d(a,b){const c=a9c();return a9d=function(d,e){d=d-0x168;let f=c[d];return f;},a9d(a,b);}a9a();import a9e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';Command[a9i(0x171)]({'name':a9i(0x17c),'aliases':['di'],'usage':a9i(0x172),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':'Get\x20EC2\x20instances\x20created\x20by\x20Maka-CLI','examples':[a9i(0x172),a9i(0x17d)],'description':a9i(0x174)},async function(){const j=a9i;try{const a=new AWS();a[j(0x175)]();}catch(b){console[j(0x178)](b),process[j(0x17b)](0x0);}},a9e);
1
+ const a9i=a9d;(function(a,b){const f=a9d,c=a();while(!![]){try{const d=parseInt(f(0x8b))/0x1*(-parseInt(f(0x7d))/0x2)+-parseInt(f(0x86))/0x3+-parseInt(f(0x84))/0x4+-parseInt(f(0x8d))/0x5*(-parseInt(f(0x83))/0x6)+parseInt(f(0x88))/0x7+parseInt(f(0x8e))/0x8*(parseInt(f(0x8f))/0x9)+parseInt(f(0x85))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a9c,0xafb25));const a9b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a9d;if(c){const e=c[g(0x80)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a9a=a9b(this,function(){const h=a9d;return a9a[h(0x82)]()['search'](h(0x8c))[h(0x82)]()['constructor'](a9a)[h(0x8a)]('(((.+)+)+)+$');});function a9c(){const k=['20476280juTYkJ','4084893qeUJIb','maka\x20aws:di','1023834QvNdIO','create','search','192431UtqoHm','(((.+)+)+)+$','3790095fshvRW','200xMFfxW','376353pEtQGH','ec2describeInstances','\x0a\x20\x20List\x20all\x20EC2\x20instances\x20that\x20have\x20been\x20created\x20with\x20\x22maka\x20aws:ci\x22\x20associated\x0a\x20\x20with\x20the\x20logged\x20in\x20AWS-CLI\x20account.\x0a\x0a\x20\x20Will\x20pull\x20back\x20the\x20instance\x20ID,\x20state,\x20and\x20IP\x20addresses.\x0a\x20\x20Ex:\x0a\x0a\x20\x20ID:\x200\x20NAME:\x20<NAME>\x20ENV:\x20production\x20STATUS:\x20running\x20INSTANCE_ID:\x20i-xxx\x20PUB_IP:\x20x.x.x.x\x20PRIV_IP:\x20y.y.y.y\x0a\x20\x20','14MwKZEN','Get\x20EC2\x20instances\x20created\x20by\x20Maka-CLI','exit','apply','maka\x20aws:describe-instances','toString','6qjNBVa','2276132CJBGdS'];a9c=function(){return k;};return a9c();}a9a();import a9e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a9d(a,b){const c=a9c();return a9d=function(d,e){d=d-0x7b;let f=c[d];return f;},a9d(a,b);}Command[a9i(0x89)]({'name':'describe-instances','aliases':['di'],'usage':a9i(0x81),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a9i(0x7e),'examples':[a9i(0x81),a9i(0x87)],'description':a9i(0x7c)},async function(){const j=a9i;try{const a=new AWS();a[j(0x7b)]();}catch(b){console['error'](b),process[j(0x7f)](0x0);}},a9e);
@@ -1 +1 @@
1
- const a10i=a10d;(function(a,b){const f=a10d,c=a();while(!![]){try{const d=parseInt(f(0x6d))/0x1+-parseInt(f(0x73))/0x2*(-parseInt(f(0x6b))/0x3)+-parseInt(f(0x6a))/0x4*(-parseInt(f(0x66))/0x5)+parseInt(f(0x74))/0x6*(parseInt(f(0x64))/0x7)+parseInt(f(0x70))/0x8+-parseInt(f(0x7b))/0x9*(-parseInt(f(0x6e))/0xa)+parseInt(f(0x69))/0xb*(-parseInt(f(0x78))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a10c,0x7c42a));const a10b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a10d;if(c){const e=c[g(0x72)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a10a=a10b(this,function(){const h=a10d;return a10a['toString']()['search'](h(0x79))[h(0x65)]()[h(0x75)](a10a)['search']('(((.+)+)+)+$');});function a10c(){const k=['create','104844mnZKAo','(((.+)+)+)+$','exit','35604sagUUl','2004779qAxasy','toString','1063135UqtSaO','maka\x20aws:describe-key-pairs','ec2describeKeys','4213cVZUdC','12wTBnCD','6XSYLDR','error','497909ReZcFl','1750ZoGoQH','dkp','7100256IkooRR','List\x20the\x20current\x20public\x20keys\x20stored\x20in\x20AWS','apply','853222mPSBKr','6KZmXDi','constructor','maka\x20aws:dkp'];a10c=function(){return k;};return a10c();}a10a();import a10e from'./aws.command.js';function a10d(a,b){const c=a10c();return a10d=function(d,e){d=d-0x64;let f=c[d];return f;},a10d(a,b);}import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';Command[a10i(0x77)]({'name':'describe-key-pairs','aliases':[a10i(0x6f)],'usage':a10i(0x67),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a10i(0x71),'examples':[a10i(0x67),a10i(0x76)]},async function(){const j=a10i;try{const a=new AWS();a[j(0x68)]();}catch(b){console[j(0x6c)](b),process[j(0x7a)](0x0);}},a10e);
1
+ const a10i=a10d;(function(a,b){const f=a10d,c=a();while(!![]){try{const d=parseInt(f(0x1df))/0x1*(parseInt(f(0x1ea))/0x2)+-parseInt(f(0x1e2))/0x3*(-parseInt(f(0x1d5))/0x4)+-parseInt(f(0x1de))/0x5+parseInt(f(0x1dc))/0x6*(parseInt(f(0x1d6))/0x7)+parseInt(f(0x1e0))/0x8+parseInt(f(0x1dd))/0x9*(-parseInt(f(0x1d8))/0xa)+-parseInt(f(0x1da))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a10c,0x9160f));const a10b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a10d;if(c){const e=c[g(0x1e6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a10a=a10b(this,function(){const h=a10d;return a10a[h(0x1e9)]()[h(0x1e5)](h(0x1d7))[h(0x1e9)]()[h(0x1e1)](a10a)[h(0x1e5)]('(((.+)+)+)+$');});a10a();function a10c(){const k=['describe-key-pairs','toString','74ELWHKw','create','83212fMULXl','49tkxQvw','(((.+)+)+)+$','20dfQmkc','maka\x20aws:dkp','8658067ibtbNU','ec2describeKeys','562716YEoTds','5352363ZMqqNn','164245ZDUDrf','26287hbWoMH','3145808fiZCtn','constructor','84FbHfyp','dkp','maka\x20aws:describe-key-pairs','search','apply','List\x20the\x20current\x20public\x20keys\x20stored\x20in\x20AWS'];a10c=function(){return k;};return a10c();}function a10d(a,b){const c=a10c();return a10d=function(d,e){d=d-0x1d5;let f=c[d];return f;},a10d(a,b);}import a10e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';Command[a10i(0x1eb)]({'name':a10i(0x1e8),'aliases':[a10i(0x1e3)],'usage':'maka\x20aws:describe-key-pairs','validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a10i(0x1e7),'examples':[a10i(0x1e4),a10i(0x1d9)]},async function(){const j=a10i;try{const a=new AWS();a[j(0x1db)]();}catch(b){console['error'](b),process['exit'](0x0);}},a10e);
@@ -1 +1 @@
1
- const a11o=a11d;(function(a,b){const l=a11d,c=a();while(!![]){try{const d=-parseInt(l(0x181))/0x1*(parseInt(l(0x17e))/0x2)+-parseInt(l(0x17a))/0x3*(parseInt(l(0x16c))/0x4)+-parseInt(l(0x184))/0x5+parseInt(l(0x16e))/0x6*(parseInt(l(0x170))/0x7)+-parseInt(l(0x187))/0x8*(-parseInt(l(0x174))/0x9)+parseInt(l(0x175))/0xa*(parseInt(l(0x173))/0xb)+parseInt(l(0x17f))/0xc*(parseInt(l(0x160))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a11c,0xa71d0));const a11b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a11d;if(c){const e=c[m(0x166)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a11a=a11b(this,function(){const n=a11d;return a11a[n(0x186)]()[n(0x16b)](n(0x163))[n(0x186)]()[n(0x164)](a11a)[n(0x16b)]('(((.+)+)+)+$');});a11a();function a11c(){const r=['4tZHjZC','forEach','4093422SZEoRl','success','14zLHPEF','getSecurityGroups','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','375485eqylMI','69354QwHplQ','70VOyVml','maka\x20aws:dsg','confirm','isMakaProject','error','2375148hDFYFX','exit','maka\x20aws:delete-sg','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','66Xzwfcg','12175788cBpaCm','sgId','16053VSKmtL','\x20SGID:\x20','bright','6489705AIuJVt','Delete\x20a\x20security\x20group\x20on\x20a\x20VPC','toString','712wtMppa','13qLFvyh','Deleted\x20','create','(((.+)+)+)+$','constructor','deleteSecurityGroup','apply','Not\x20deleting\x20secuirty\x20group','notice','name','dsg','search'];a11c=function(){return r;};return a11c();}import a11e from'./aws.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{FSI}from'../../tools/fsi/fsi.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';function a11d(a,b){const c=a11c();return a11d=function(d,e){d=d-0x160;let f=c[d];return f;},a11d(a,b);}Command[a11o(0x162)]({'name':'delete-security-group','aliases':[a11o(0x16a)],'usage':a11o(0x17c),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a11o(0x185),'examples':[a11o(0x17c),a11o(0x176)]},async function(){const p=a11o;try{const a=new AWS(),b=new FSI(),c=b[p(0x178)]();let d='';if(c){const j=b['getProjectConfig']();d=j['appName'];}const {sgList:f}=await a[p(0x171)]();f[p(0x16d)](function(k){const q=p;c&&k['name']['includes'](d)?Log[q(0x168)]('ID:\x20'+k['id']+'\x20SG\x20NAME:\x20'+k[q(0x169)]+q(0x182)+k[q(0x180)]):Log[q(0x183)]('ID:\x20'+k['id']+'\x20SG\x20NAME:\x20'+k[q(0x169)]+q(0x182)+k[q(0x180)]);});let g='';const h=await Actions['ask']('Please\x20choose\x20a\x20SG\x20ID\x20to\x20delete:');f[p(0x16d)](function(k){k['id']===parseInt(h)&&(g=k['sgId']);});if(!g)throw Log[p(0x179)](p(0x172));const i=await Actions[p(0x177)]('Deleting\x20a\x20'+g+p(0x17d),![]);i?(await a[p(0x165)](g),Log[p(0x16f)](p(0x161)+g)):Log[p(0x179)](p(0x167)),process[p(0x17b)](0x0);}catch(k){process['exit'](0x1);}},a11e);
1
+ const a11o=a11d;function a11d(a,b){const c=a11c();return a11d=function(d,e){d=d-0x68;let f=c[d];return f;},a11d(a,b);}(function(a,b){const l=a11d,c=a();while(!![]){try{const d=parseInt(l(0x8f))/0x1+parseInt(l(0x92))/0x2+parseInt(l(0x76))/0x3*(-parseInt(l(0x90))/0x4)+parseInt(l(0x6e))/0x5*(-parseInt(l(0x73))/0x6)+parseInt(l(0x79))/0x7*(parseInt(l(0x69))/0x8)+parseInt(l(0x7d))/0x9+-parseInt(l(0x81))/0xa*(parseInt(l(0x8a))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a11c,0xb795d));const a11b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a11d;if(c){const e=c[m(0x8e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a11a=a11b(this,function(){const n=a11d;return a11a[n(0x71)]()[n(0x87)](n(0x6a))[n(0x71)]()[n(0x77)](a11a)[n(0x87)](n(0x6a));});a11a();import a11e from'./aws.command.js';function a11c(){const s=['dsg','apply','627698gzPutc','168anowuJ','confirm','2374446ZvthNr','\x20SG\x20NAME:\x20','72992uULTPe','(((.+)+)+)+$','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','name','Please\x20choose\x20a\x20SG\x20ID\x20to\x20delete:','5GsOzGT','forEach','bright','toString','Delete\x20a\x20security\x20group\x20on\x20a\x20VPC','6989490fguOrg','maka\x20aws:dsg','Not\x20deleting\x20secuirty\x20group','549gNjmch','constructor','includes','91MKhiHJ','sgId','isMakaProject','ID:\x20','129258PsUKlM','notice','getSecurityGroups','success','410bnrzNg','exit','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','Deleting\x20a\x20','\x20SGID:\x20','appName','search','maka\x20aws:delete-sg','error','6259GMGGJF','create','Deleted\x20'];a11c=function(){return s;};return a11c();}import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{FSI}from'../../tools/fsi/fsi.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';Command[a11o(0x8b)]({'name':'delete-security-group','aliases':[a11o(0x8d)],'usage':'maka\x20aws:delete-sg','validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a11o(0x72),'examples':[a11o(0x88),a11o(0x74)]},async function(){const p=a11o;try{const a=new AWS(),b=new FSI(),c=b[p(0x7b)]();let d='';if(c){const j=b['getProjectConfig']();d=j[p(0x86)];}const {sgList:f}=await a[p(0x7f)]();f[p(0x6f)](function(k){const q=p;c&&k[q(0x6c)][q(0x78)](d)?Log[q(0x7e)](q(0x7c)+k['id']+q(0x68)+k[q(0x6c)]+q(0x85)+k[q(0x7a)]):Log[q(0x70)](q(0x7c)+k['id']+q(0x68)+k[q(0x6c)]+q(0x85)+k['sgId']);});let g='';const h=await Actions['ask'](p(0x6d));f['forEach'](function(k){const r=p;k['id']===parseInt(h)&&(g=k[r(0x7a)]);});if(!g)throw Log[p(0x89)](p(0x83));const i=await Actions[p(0x91)](p(0x84)+g+p(0x6b),![]);i?(await a['deleteSecurityGroup'](g),Log[p(0x80)](p(0x8c)+g)):Log[p(0x89)](p(0x75)),process[p(0x82)](0x0);}catch(k){process[p(0x82)](0x1);}},a11e);
@@ -1 +1 @@
1
- function a12d(a,b){const c=a12c();return a12d=function(d,e){d=d-0xb8;let f=c[d];return f;},a12d(a,b);}const a12i=a12d;(function(a,b){const f=a12d,c=a();while(!![]){try{const d=-parseInt(f(0xd4))/0x1*(-parseInt(f(0xb9))/0x2)+-parseInt(f(0xbd))/0x3*(parseInt(f(0xbf))/0x4)+parseInt(f(0xd3))/0x5*(parseInt(f(0xcc))/0x6)+parseInt(f(0xd9))/0x7*(parseInt(f(0xd6))/0x8)+-parseInt(f(0xc2))/0x9+-parseInt(f(0xd7))/0xa+-parseInt(f(0xca))/0xb*(-parseInt(f(0xd8))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a12c,0x38468));const a12b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a12d;if(c){const e=c[g(0xd1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a12a=a12b(this,function(){const h=a12d;return a12a[h(0xc8)]()[h(0xd0)](h(0xc3))[h(0xc8)]()[h(0xcb)](a12a)['search'](h(0xc3));});a12a();import a12e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';function a12c(){const k=['constructor','1626FiidaZ','exit','name','create','search','apply','confirm','2675RwarKO','37141sQNjou','maka\x20aws:rbi','968ePDnel','4218720WGirGM','24JJHTce','15995EBoeXr','[!!]\x20You\x20are\x20about\x20to\x20reboot\x20instance:\x20','6qDUQbL','Reboot\x20an\x20EC2\x20instance','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20rebooted;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','maka\x20aws:reboot-instance','9uCGalH','error','285364yXOPUA','status','running','3072348CejpPZ','(((.+)+)+)+$','ec2rebootInstance','reboot-instance','instanceId','rbi','toString','\x20Ready?','3711829VbxyVp'];a12c=function(){return k;};return a12c();}import{Log}from'../../tools/log/log.class.js';Command[a12i(0xcf)]({'name':a12i(0xc5),'aliases':[a12i(0xc7)],'usage':a12i(0xbc),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a12i(0xba),'examples':[a12i(0xbc),a12i(0xd5)]},async function(){const j=a12i;try{const a=new AWS(),b=await a['chooseInstance']();if(b?.[j(0xc0)]===j(0xc1)){const c=await Actions[j(0xd2)](j(0xb8)+b['name']+j(0xc9));c&&b[j(0xc6)]?a[j(0xc4)]({'instanceId':b[j(0xc6)]}):Log[j(0xbe)]('You\x20have\x20aborted\x20the\x20reboot.\x20\x20The\x20instance:\x20'+b[j(0xce)]+'\x20is\x20still\x20running.');}else Log[j(0xbe)](j(0xbb));}catch(d){console['error'](d),process[j(0xcd)](0x0);}},a12e);
1
+ function a12d(a,b){const c=a12c();return a12d=function(d,e){d=d-0xd4;let f=c[d];return f;},a12d(a,b);}const a12i=a12d;(function(a,b){const f=a12d,c=a();while(!![]){try{const d=parseInt(f(0xe0))/0x1*(parseInt(f(0xf1))/0x2)+parseInt(f(0xec))/0x3+-parseInt(f(0xe6))/0x4*(parseInt(f(0xe3))/0x5)+parseInt(f(0xdc))/0x6+-parseInt(f(0xe8))/0x7+parseInt(f(0xd5))/0x8+parseInt(f(0xe4))/0x9*(parseInt(f(0xea))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a12c,0x44082));const a12b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a12d;if(c){const e=c[g(0xee)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a12a=a12b(this,function(){const h=a12d;return a12a['toString']()['search'](h(0xd4))[h(0xe5)]()[h(0xe9)](a12a)[h(0xe7)](h(0xd4));});a12a();import a12e from'./aws.command.js';function a12c(){const k=['maka\x20aws:rbi','226XzsRQW','exit','You\x20have\x20aborted\x20the\x20reboot.\x20\x20The\x20instance:\x20','[!!]\x20You\x20are\x20about\x20to\x20reboot\x20instance:\x20','(((.+)+)+)+$','2080768fYtiKQ','status','rbi','\x20Ready?','create','error','maka\x20aws:reboot-instance','1600008rUhecM','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20rebooted;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','Reboot\x20an\x20EC2\x20instance','confirm','89pDXHYC','ec2rebootInstance','instanceId','5pupiat','630AZImfN','toString','346712NErzel','search','3589817DYVTUH','constructor','24250ryCEPO','name','514788XZRfgl','\x20is\x20still\x20running.','apply','chooseInstance'];a12c=function(){return k;};return a12c();}import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a12i(0xd9)]({'name':'reboot-instance','aliases':[a12i(0xd7)],'usage':'maka\x20aws:reboot-instance','validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a12i(0xde),'examples':[a12i(0xdb),a12i(0xf0)]},async function(){const j=a12i;try{const a=new AWS(),b=await a[j(0xef)]();if(b?.[j(0xd6)]==='running'){const c=await Actions[j(0xdf)](j(0xf4)+b[j(0xeb)]+j(0xd8));c&&b['instanceId']?a[j(0xe1)]({'instanceId':b[j(0xe2)]}):Log[j(0xda)](j(0xf3)+b['name']+j(0xed));}else Log[j(0xda)](j(0xdd));}catch(d){console[j(0xda)](d),process[j(0xf2)](0x0);}},a12e);
@@ -1 +1 @@
1
- const a13I=a13d;(function(a,b){const E=a13d,c=a();while(!![]){try{const d=-parseInt(E(0xed))/0x1+parseInt(E(0x108))/0x2*(parseInt(E(0xfe))/0x3)+parseInt(E(0x100))/0x4+parseInt(E(0xcf))/0x5*(-parseInt(E(0xdc))/0x6)+parseInt(E(0xcd))/0x7+parseInt(E(0xf9))/0x8*(-parseInt(E(0xf3))/0x9)+-parseInt(E(0xec))/0xa*(-parseInt(E(0xf7))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a13c,0x46ca6));const a13b=(function(){let a=!![];return function(b,c){const d=a?function(){const F=a13d;if(c){const e=c[F(0xff)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a13a=a13b(this,function(){const G=a13d;return a13a[G(0xea)]()[G(0xe8)](G(0xcb))[G(0xea)]()[G(0x105)](a13a)['search'](G(0xcb));});a13a();import a13e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';import{CountryCode}from'../../tools/aws/aws.interfaces.js';function a13c(){const K=['includes','110qsusKH','558219mStrIY','Organization\x20Name\x20[My\x20Company,\x20LLC.]:','Contact\x20First\x20Name\x20[Contact]:\x20','ASSOCIATION','Domain\x20name\x20is\x20unavailable','+1.5555555556','1137753DWXekw','Contact\x20Fax\x20Number\x20[+1.5555555556]:\x20','My\x20Comanpy,\x20LLC.','domain','1393359MpKMGK','Contact\x20Last\x20Name\x20[Person]:\x20','24ztRynd','Choose\x20contact\x20type','maka\x20aws:register-domain-name','Person','\x20years\x20(','3FwOxvk','apply','138376uLBGXg','The\x20domain\x20name:\x20','ask','PERSON','Address\x20Line\x202:\x20','constructor','Address\x20Line\x201\x20[123\x20Glorious\x20Way]:','\x20/\x20Year)','381394eEiLEN','exit','Contact','maka\x20aws:rdn\x20--domain=example.com','\x20is\x20available\x20for:','(((.+)+)+)+$','State\x20[HI]:\x20','242382RorXeS','contactType','10otJWNr','confirm','Invalid\x202\x20character\x20country\x20code','Duration\x20in\x20years\x20[1]:\x20','Please\x20review\x20your\x20responses,\x20Amazon\x20will\x20bill\x20you:','list','notice','Contact\x20Phone\x20Number\x20[+1.5555555555]:\x20','options','maka\x20aws:register-domain-name\x20--domain=example.com','Do\x20you\x20wish\x20to\x20register\x20','Are\x20you\x20sure?','COMPANY','1277544eZBQob','mail@example.com','error','checkDomainAvailability','rdn','96816','Country\x20Code\x20[US]:\x20','warn','RESELLER','\x20for\x20','\x20/\x20Year\x20\x0a','Auto\x20Renew:\x20','search','OrganizationName','toString'];a13c=function(){return K;};return a13c();}function a13d(a,b){const c=a13c();return a13d=function(d,e){d=d-0xc8;let f=c[d];return f;},a13d(a,b);}function isValidCountryCode(a){const H=a13d;return Object['values'](CountryCode)[H(0xeb)](a);}function getCountryCodeEnum(a){if(isValidCountryCode(a))return a;return undefined;}Command['create']({'name':'register-domain-name','aliases':[a13I(0xe0)],'usage':a13I(0xfb),'requiredOpts':[a13I(0xf6)],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':'Register\x20a\x20domain\x20name\x20with\x20AWS\x20Route\x2053','examples':[a13I(0xd8),a13I(0xc9)]},async function(a,b){const J=a13I;try{const c=b[J(0xf6)],d=new AWS(),{available:f,cost:g}=await d[J(0xdf)](c);if(f&&g){Log['notice'](J(0x101)+c+J(0xca));const {Price:h,Currency:i}=g;Log[J(0xe3)]('\x20\x20'+h+'\x20'+i+J(0xe6));const j=await Actions[J(0xd0)](J(0xd9)+c+'\x20?',![]);if(j){const k={'type':J(0xd4),'name':J(0xce),'message':J(0xfa),'choices':[J(0xf0),J(0xdb),J(0x103),'PUBLIC_BODY',J(0xe4)]},l=await Actions[J(0x102)](J(0xd2))||'1',m=await Actions[J(0x102)](J(0xef))||J(0xc8),n=await Actions[J(0x102)](J(0xf8))||J(0xfc),{contactType:o}=await Actions[J(0xd7)](k),p=await Actions[J(0x102)](J(0x106))||'123\x20Glorious\x20Way',q=await Actions[J(0x102)](J(0x104)),r=await Actions[J(0x102)]('Zip\x20Code\x20[96816]:\x20')||J(0xe1),s=await Actions[J(0x102)](J(0xcc))||'HI',t=await Actions[J(0x102)](J(0xe2))||'US',u=getCountryCodeEnum(t);if(!u)throw Log[J(0xde)](J(0xd1));const v=await Actions['ask'](J(0xd6))||'+1.5555555555',w=await Actions[J(0x102)](J(0xf4))||J(0xf2),x=await Actions[J(0x102)]('Contact\x20Email\x20[mail@example.com]:\x20')||J(0xdd),y=await Actions[J(0xd0)](J(0xe7)),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!=='PERSON'){const C=await Actions[J(0x102)](J(0xee))||J(0xf5);z[J(0xe9)]=C;}const A=h||0x0*parseInt(l);Log[J(0xd5)](J(0xd3)),Log[J(0xe3)](A+'\x20'+i+J(0xe5)+l+J(0xfd)+h+'\x20'+i+J(0x107));const B=await Actions[J(0xd0)](J(0xda));B&&await d['registerDomain'](z,c,parseInt(l),y);}}else throw Log['error'](J(0xf1));}catch(D){console['error'](D),process[J(0x109)](0x0);}},a13e);
1
+ function a13d(a,b){const c=a13c();return a13d=function(d,e){d=d-0x13a;let f=c[d];return f;},a13d(a,b);}const a13I=a13d;(function(a,b){const E=a13d,c=a();while(!![]){try{const d=-parseInt(E(0x14b))/0x1*(-parseInt(E(0x16d))/0x2)+-parseInt(E(0x147))/0x3+-parseInt(E(0x164))/0x4*(parseInt(E(0x13c))/0x5)+parseInt(E(0x16e))/0x6+parseInt(E(0x13f))/0x7+parseInt(E(0x16b))/0x8+-parseInt(E(0x155))/0x9*(-parseInt(E(0x15b))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a13c,0xf221b));const a13b=(function(){let a=!![];return function(b,c){const d=a?function(){const F=a13d;if(c){const e=c[F(0x144)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a13a=a13b(this,function(){const G=a13d;return a13a[G(0x151)]()[G(0x14d)]('(((.+)+)+)+$')[G(0x151)]()[G(0x165)](a13a)[G(0x14d)](G(0x140));});function a13c(){const K=['Address\x20Line\x201\x20[123\x20Glorious\x20Way]:','Contact\x20Fax\x20Number\x20[+1.5555555556]:\x20','123\x20Glorious\x20Way','130xyRzEf','Register\x20a\x20domain\x20name\x20with\x20AWS\x20Route\x2053','Address\x20Line\x202:\x20','warn','Do\x20you\x20wish\x20to\x20register\x20','\x20is\x20available\x20for:','Are\x20you\x20sure?','PERSON','register-domain-name','8cDOVnx','constructor','options','ask','includes','Zip\x20Code\x20[96816]:\x20','Country\x20Code\x20[US]:\x20','7416432vzHLZl','exit','2jxiAdQ','2005764QSPGnQ','Contact\x20First\x20Name\x20[Contact]:\x20','Invalid\x202\x20character\x20country\x20code','OrganizationName','values','ASSOCIATION','3166115BEvPBi','The\x20domain\x20name:\x20','registerDomain','1708294pdQDAX','(((.+)+)+)+$','maka\x20aws:register-domain-name\x20--domain=example.com','list','\x20/\x20Year\x20\x0a','apply','State\x20[HI]:\x20','error','5249985Decncb','Person','notice','maka\x20aws:rdn\x20--domain=example.com','1024033GvBAvy','+1.5555555556','search','checkDomainAvailability','domain','Choose\x20contact\x20type','toString','maka\x20aws:register-domain-name','COMPANY','Auto\x20Renew:\x20','1023777uSgtVS','confirm','Please\x20review\x20your\x20responses,\x20Amazon\x20will\x20bill\x20you:'];a13c=function(){return K;};return a13c();}a13a();import a13e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';import{CountryCode}from'../../tools/aws/aws.interfaces.js';function isValidCountryCode(a){const H=a13d;return Object[H(0x13a)](CountryCode)[H(0x168)](a);}function getCountryCodeEnum(a){if(isValidCountryCode(a))return a;return undefined;}Command['create']({'name':a13I(0x163),'aliases':['rdn'],'usage':a13I(0x152),'requiredOpts':[a13I(0x14f)],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a13I(0x15c),'examples':[a13I(0x141),a13I(0x14a)]},async function(a,b){const J=a13I;try{const c=b[J(0x14f)],d=new AWS(),{available:f,cost:g}=await d[J(0x14e)](c);if(f&&g){Log[J(0x149)](J(0x13d)+c+J(0x160));const {Price:h,Currency:i}=g;Log[J(0x15e)]('\x20\x20'+h+'\x20'+i+J(0x143));const j=await Actions[J(0x156)](J(0x15f)+c+'\x20?',![]);if(j){const k={'type':J(0x142),'name':'contactType','message':J(0x150),'choices':[J(0x13b),J(0x153),'PERSON','PUBLIC_BODY','RESELLER']},l=await Actions[J(0x167)]('Duration\x20in\x20years\x20[1]:\x20')||'1',m=await Actions[J(0x167)](J(0x16f))||'Contact',n=await Actions['ask']('Contact\x20Last\x20Name\x20[Person]:\x20')||J(0x148),{contactType:o}=await Actions[J(0x166)](k),p=await Actions[J(0x167)](J(0x158))||J(0x15a),q=await Actions['ask'](J(0x15d)),r=await Actions['ask'](J(0x169))||'96816',s=await Actions[J(0x167)](J(0x145))||'HI',t=await Actions[J(0x167)](J(0x16a))||'US',u=getCountryCodeEnum(t);if(!u)throw Log[J(0x146)](J(0x170));const v=await Actions[J(0x167)]('Contact\x20Phone\x20Number\x20[+1.5555555555]:\x20')||'+1.5555555555',w=await Actions['ask'](J(0x159))||J(0x14c),x=await Actions[J(0x167)]('Contact\x20Email\x20[mail@example.com]:\x20')||'mail@example.com',y=await Actions[J(0x156)](J(0x154)),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(0x162)){const C=await Actions[J(0x167)]('Organization\x20Name\x20[My\x20Company,\x20LLC.]:')||'My\x20Comanpy,\x20LLC.';z[J(0x171)]=C;}const A=h||0x0*parseInt(l);Log['notice'](J(0x157)),Log['warn'](A+'\x20'+i+'\x20for\x20'+l+'\x20years\x20('+h+'\x20'+i+'\x20/\x20Year)');const B=await Actions[J(0x156)](J(0x161));B&&await d[J(0x13e)](z,c,parseInt(l),y);}}else throw Log[J(0x146)]('Domain\x20name\x20is\x20unavailable');}catch(D){console[J(0x146)](D),process[J(0x16c)](0x0);}},a13e);
@@ -1 +1 @@
1
- const a14k=a14d;(function(a,b){const h=a14d,c=a();while(!![]){try{const d=-parseInt(h(0x11f))/0x1+-parseInt(h(0x103))/0x2*(parseInt(h(0x114))/0x3)+-parseInt(h(0x11d))/0x4*(parseInt(h(0x120))/0x5)+-parseInt(h(0x117))/0x6*(-parseInt(h(0x10a))/0x7)+parseInt(h(0x10e))/0x8+parseInt(h(0x116))/0x9+-parseInt(h(0x10d))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a14c,0xc8e50));const a14b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a14d;if(c){const e=c[i(0x10f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a14a=a14b(this,function(){const j=a14d;return a14a[j(0x105)]()['search'](j(0x118))['toString']()[j(0x110)](a14a)[j(0x10c)](j(0x118));});a14a();import a14e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a14d(a,b){const c=a14c();return a14d=function(d,e){d=d-0x103;let f=c[d];return f;},a14d(a,b);}function a14c(){const m=['(((.+)+)+)+$','\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','Deleting\x20a\x20','Choose\x20from\x20your\x20list\x20of\x20public\x20keys\x20to\x20delete','maka\x20aws:remove-key-pair','1454304VwiGoX','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','67796aLMdTf','15tCKVgi','14IHUhmz','Please\x20choose\x20a\x20key\x20to\x20delete:','toString','Not\x20deleting\x20keypair','exit','error','Deleted\x20','35EpzXfv','ec2describeKeys','search','11579450fremUw','8112008ViWrUG','apply','constructor','rkp','create','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','63537OeKBDB','deleteKeyPair','7430625yJXczt','1737552hpMFvg'];a14c=function(){return m;};return a14c();}import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a14k(0x112)]({'name':'remove-key-pair','aliases':[a14k(0x111)],'usage':a14k(0x11c),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a14k(0x11b),'description':a14k(0x119),'examples':['maka\x20aws:remove-key-pair','maka\x20aws:rkp']},async function(){const l=a14k;try{const a=new AWS(),b=await a[l(0x10b)]();let c=undefined;const d=await Actions['ask'](l(0x104));b?.['forEach'](function(g){g['id']===parseInt(d)&&(c=g['name']);});if(!c)throw Log[l(0x108)](l(0x11e));const f=await Actions['confirm'](l(0x11a)+c+l(0x113),![]);f?(await a[l(0x115)](c),Log['success'](l(0x109)+c)):Log[l(0x108)](l(0x106)),process['exit'](0x0);}catch(g){process[l(0x107)](0x1);}},a14e);
1
+ const a14j=a14d;(function(a,b){const h=a14d,c=a();while(!![]){try{const d=parseInt(h(0x147))/0x1*(-parseInt(h(0x13d))/0x2)+parseInt(h(0x145))/0x3*(parseInt(h(0x132))/0x4)+-parseInt(h(0x12e))/0x5+-parseInt(h(0x139))/0x6*(-parseInt(h(0x13b))/0x7)+-parseInt(h(0x141))/0x8+parseInt(h(0x13f))/0x9+parseInt(h(0x146))/0xa*(parseInt(h(0x133))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a14c,0x4581b));function a14d(a,b){const c=a14c();return a14d=function(d,e){d=d-0x129;let f=c[d];return f;},a14d(a,b);}const a14b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a14a=a14b(this,function(){const i=a14d;return a14a['toString']()['search'](i(0x140))[i(0x13e)]()[i(0x130)](a14a)[i(0x134)](i(0x140));});a14a();import a14e from'./aws.command.js';import{Command}from'../../command.js';function a14c(){const l=['constructor','exit','4ijVwhw','77aQqfeP','search','Please\x20choose\x20a\x20key\x20to\x20delete:','error','deleteKeyPair','confirm','84PzToKi','\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','53039dVtjoP','Deleting\x20a\x20','6064EQvLDO','toString','1615302CdQRQR','(((.+)+)+)+$','2234248xzDWza','Deleted\x20','forEach','create','915087bEMDoa','802030FJCSSO','71Locmeh','success','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','ec2describeKeys','ask','1863770PbfWyg','maka\x20aws:remove-key-pair'];a14c=function(){return l;};return a14c();}import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a14j(0x144)]({'name':'remove-key-pair','aliases':['rkp'],'usage':a14j(0x12f),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':'Choose\x20from\x20your\x20list\x20of\x20public\x20keys\x20to\x20delete','description':a14j(0x13a),'examples':['maka\x20aws:remove-key-pair','maka\x20aws:rkp']},async function(){const k=a14j;try{const a=new AWS(),b=await a[k(0x12c)]();let c=undefined;const d=await Actions[k(0x12d)](k(0x135));b?.[k(0x143)](function(g){g['id']===parseInt(d)&&(c=g['name']);});if(!c)throw Log[k(0x136)](k(0x12a));const f=await Actions[k(0x138)](k(0x13c)+c+k(0x12b),![]);f?(await a[k(0x137)](c),Log[k(0x129)](k(0x142)+c)):Log[k(0x136)]('Not\x20deleting\x20keypair'),process[k(0x131)](0x0);}catch(g){process[k(0x131)](0x1);}},a14e);
@@ -1 +1 @@
1
- const a15o=a15d;(function(a,b){const l=a15d,c=a();while(!![]){try{const d=-parseInt(l(0xe3))/0x1+parseInt(l(0xf4))/0x2*(-parseInt(l(0xdf))/0x3)+-parseInt(l(0xe2))/0x4+-parseInt(l(0xe1))/0x5+parseInt(l(0x104))/0x6*(-parseInt(l(0xf8))/0x7)+-parseInt(l(0xfb))/0x8*(-parseInt(l(0x108))/0x9)+parseInt(l(0x107))/0xa*(parseInt(l(0xde))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a15c,0x3201a));function a15c(){const q=['ask','toString','apply','165SsrnnY','33YyAcGE','maka\x20aws:set-host\x20--env\x20dev','1493550RnPlDy','970548mjJtrD','202479XCQQpR','sth','getProjectConfig','private','privateIp','host','fsi','\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','That\x20is\x20not\x20an\x20option.\x20Must\x20be\x20\x22public\x22\x20or\x20\x22private\x22','isFile','stringify','error','config/ssh.json','Set\x20the\x20host\x20to\x20public\x20or\x20private?\x20[public]','getConfigPath','maka\x20aws:sth\x20--env\x20prod','set-host','11962iZFeNr','public','utf8','cat\x20','7PEZGRM','success','chooseInstance','24EdycDu','create','sep','ssh.json','readFileSync','join','Set\x20the\x20EC2\x20IP\x20to\x20the\x20environment\x20specified','constructor','(((.+)+)+)+$','1235706SSdkma','search','parse','606370cLGuyW','932517AvXgmy','\x0aSaved\x20host\x20','env'];a15c=function(){return q;};return a15c();}const a15b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a15d;if(c){const e=c[m(0xdd)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a15a=a15b(this,function(){const n=a15d;return a15a[n(0xdc)]()[n(0x105)](n(0x103))['toString']()[n(0x102)](a15a)[n(0x105)](n(0x103));});a15a();import a15e from'path';import a15f from'fs';import{execSync}from'child_process';import a15g from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a15d(a,b){const c=a15c();return a15d=function(d,e){d=d-0xdb;let f=c[d];return f;},a15d(a,b);}import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a15o(0xfc)]({'name':a15o(0xf3),'aliases':[a15o(0xe4)],'usage':'maka\x20aws\x20set-host','mustBeInMakaProject':!![],'requiredOpts':[a15o(0x10a)],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a15o(0x101),'description':a15o(0xea),'examples':[a15o(0xe0),a15o(0xf2)]},async function(a,b){const p=a15o;try{const c=new AWS(),d=this[p(0xe9)][p(0xf1)](b['env']),f=this[p(0xe9)][p(0xe5)](),g=await c[p(0xfa)](),h=a15e[p(0x100)](d,p(0xfe));!this[p(0xe9)][p(0xec)](h)&&await this['fsi']['template']({'srcPath':p(0xef),'destPath':h,'context':{'app':f['appName']},'config':f});const i=JSON[p(0x106)](a15f[p(0xff)](h,p(0xf6))),j=await Actions[p(0xdb)](p(0xf0))||p(0xf5);if(j){if(j===p(0xf5)||j===p(0xe6)){if(j===p(0xf5))i[p(0xe8)]=g?.['publicIp'];else j===p(0xe6)&&(i[p(0xe8)]=g?.[p(0xe7)]);}else throw p(0xeb);}else i[p(0xe8)]=g?.[p(0xe7)];a15f['writeFileSync'](a15e['join'](d,p(0xfe)),JSON[p(0xed)](i,null,0x2)),execSync(p(0xf7)+a15e['join'](d,p(0xfe)),{'stdio':'inherit'}),Log[p(0xf9)](p(0x109)+j+'\x20IP\x20to\x20'+d+a15e[p(0xfd)]+p(0xfe));}catch(k){console[p(0xee)](k),process['exit'](0x0);}},a15g);
1
+ function a15d(a,b){const c=a15c();return a15d=function(d,e){d=d-0x17e;let f=c[d];return f;},a15d(a,b);}const a15o=a15d;(function(a,b){const l=a15d,c=a();while(!![]){try{const d=parseInt(l(0x195))/0x1+-parseInt(l(0x192))/0x2+parseInt(l(0x19a))/0x3+parseInt(l(0x180))/0x4+-parseInt(l(0x19f))/0x5*(parseInt(l(0x18c))/0x6)+parseInt(l(0x183))/0x7+-parseInt(l(0x1a0))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a15c,0x7c2cd));const a15b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a15d;if(c){const e=c[m(0x1a1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a15a=a15b(this,function(){const n=a15d;return a15a[n(0x187)]()[n(0x19e)](n(0x184))['toString']()[n(0x186)](a15a)[n(0x19e)]('(((.+)+)+)+$');});a15a();import a15e from'path';import a15f from'fs';function a15c(){const q=['host','writeFileSync','search','825dhxwYK','739768ZANNMW','apply','fsi','config/ssh.json','maka\x20aws:set-host\x20--env\x20dev','join','getConfigPath','chooseInstance','348780ZYEXKK','\x20IP\x20to\x20','public','5978525hMwdmn','(((.+)+)+)+$','stringify','constructor','toString','set-host','ask','env','Set\x20the\x20EC2\x20IP\x20to\x20the\x20environment\x20specified','6450CNHVEJ','That\x20is\x20not\x20an\x20option.\x20Must\x20be\x20\x22public\x22\x20or\x20\x22private\x22','error','ssh.json','parse','exit','1791380RxzZjN','template','cat\x20','42872MfiIdw','privateIp','private','\x0aSaved\x20host\x20','readFileSync','2070045apgxHz','Set\x20the\x20host\x20to\x20public\x20or\x20private?\x20[public]'];a15c=function(){return q;};return a15c();}import{execSync}from'child_process';import a15g from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command['create']({'name':a15o(0x188),'aliases':['sth'],'usage':'maka\x20aws\x20set-host','mustBeInMakaProject':!![],'requiredOpts':['env'],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a15o(0x18b),'description':'\x0a\x20\x20Get\x20a\x20list\x20of\x20AWS\x20EC2\x20instances\x20running,\x20and\x20choose\x20a\x20public\x20or\x20private\x20IP\x20to\x0a\x20\x20set\x20the\x20specified\x20environment\x27s\x20ssh.json\x20file\x20to\x20point\x20to\x20that\x20IP.\x0a\x20\x20','examples':[a15o(0x1a4),'maka\x20aws:sth\x20--env\x20prod']},async function(a,b){const p=a15o;try{const c=new AWS(),d=this['fsi'][p(0x17e)](b[p(0x18a)]),f=this[p(0x1a2)]['getProjectConfig'](),g=await c[p(0x17f)](),h=a15e[p(0x1a5)](d,p(0x18f));!this[p(0x1a2)]['isFile'](h)&&await this['fsi'][p(0x193)]({'srcPath':p(0x1a3),'destPath':h,'context':{'app':f['appName']},'config':f});const i=JSON[p(0x190)](a15f[p(0x199)](h,'utf8')),j=await Actions[p(0x189)](p(0x19b))||p(0x182);if(j){if(j===p(0x182)||j===p(0x197)){if(j===p(0x182))i[p(0x19c)]=g?.['publicIp'];else j==='private'&&(i['host']=g?.[p(0x196)]);}else throw p(0x18d);}else i[p(0x19c)]=g?.[p(0x196)];a15f[p(0x19d)](a15e[p(0x1a5)](d,p(0x18f)),JSON[p(0x185)](i,null,0x2)),execSync(p(0x194)+a15e[p(0x1a5)](d,p(0x18f)),{'stdio':'inherit'}),Log['success'](p(0x198)+j+p(0x181)+d+a15e['sep']+p(0x18f));}catch(k){console[p(0x18e)](k),process[p(0x191)](0x0);}},a15g);
@@ -1 +1 @@
1
- const a16h=a16d;(function(a,b){const f=a16d,c=a();while(!![]){try{const d=parseInt(f(0x122))/0x1*(-parseInt(f(0x136))/0x2)+-parseInt(f(0x13b))/0x3*(-parseInt(f(0x127))/0x4)+parseInt(f(0x131))/0x5+parseInt(f(0x13c))/0x6+parseInt(f(0x129))/0x7+-parseInt(f(0x125))/0x8*(-parseInt(f(0x124))/0x9)+-parseInt(f(0x120))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a16c,0xcc4f0));const a16b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a16a=a16b(this,function(){const g=a16d;return a16a[g(0x135)]()[g(0x130)](g(0x11f))[g(0x135)]()[g(0x13a)](a16a)[g(0x130)](g(0x11f));});a16a();import a16e from'./aws.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';function a16d(a,b){const c=a16c();return a16d=function(d,e){d=d-0x11f;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';Command[a16h(0x132)]({'name':'terminate-instance','aliases':['ti'],'usage':a16h(0x133),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a16h(0x12b),'description':a16h(0x12a),'examples':[a16h(0x133),a16h(0x12d)]},async function(){const i=a16h;try{const a=new AWS(),b=await a[i(0x12c)]();if(b?.[i(0x134)]&&b?.[i(0x137)]===i(0x138)){const c=await Actions[i(0x12f)]('You\x20are\x20about\x20to\x20terminate\x20(lose\x20all\x20data)\x20on\x20instance:\x20'+b['name']+'\x20Ready?');c?a[i(0x123)]({'instanceId':b[i(0x134)]}):Log[i(0x139)](i(0x12e)+b['name']+i(0x126));}else Log['error'](i(0x128));}catch(d){console[i(0x139)](d),process[i(0x121)](0x0);}},a16e);function a16c(){const j=['ec2terminateInstance','99aAuULI','496480jwURyx','\x20is\x20still\x20running.\x20\x20(Charges\x20are\x20still\x20being\x20applied).','904ddPFnk','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20terminated;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','3039512EiKffI','\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','Terminate\x20an\x20EC2\x20instance','chooseInstance','maka\x20aws:ti','You\x20have\x20aborted\x20the\x20termination.\x20\x20The\x20instance:\x20','confirm','search','4282825yMpxFF','create','maka\x20aws:terminate-instance','instanceId','toString','10aUuRip','status','running','error','constructor','15432DSmycI','7441020YKaXHl','(((.+)+)+)+$','30186620BkFrog','exit','104129RGeipq'];a16c=function(){return j;};return a16c();}
1
+ const a16h=a16d;(function(a,b){const f=a16d,c=a();while(!![]){try{const d=-parseInt(f(0xdc))/0x1+parseInt(f(0xe1))/0x2+-parseInt(f(0xca))/0x3*(-parseInt(f(0xcc))/0x4)+-parseInt(f(0xd4))/0x5+parseInt(f(0xe2))/0x6+parseInt(f(0xcb))/0x7+parseInt(f(0xcd))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a16c,0x1e0f9));const a16b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a16a=a16b(this,function(){const g=a16d;return a16a[g(0xe0)]()['search'](g(0xdd))[g(0xe0)]()[g(0xe4)](a16a)[g(0xdb)](g(0xdd));});a16a();function a16d(a,b){const c=a16c();return a16d=function(d,e){d=d-0xca;let f=c[d];return f;},a16d(a,b);}import a16e from'./aws.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';function a16c(){const j=['\x20Ready?','toString','290810ZfZyAa','483960QQaqIf','You\x20have\x20aborted\x20the\x20termination.\x20\x20The\x20instance:\x20','constructor','create','ec2terminateInstance','3uqPfCb','328055uhhwHz','583012FDiGgW','737032GSUcXV','error','instanceId','Terminate\x20an\x20EC2\x20instance','\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','chooseInstance','terminate-instance','710310cuOlig','\x20is\x20still\x20running.\x20\x20(Charges\x20are\x20still\x20being\x20applied).','running','status','maka\x20aws:terminate-instance','maka\x20aws:ti','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20terminated;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','search','245621twHlGi','(((.+)+)+)+$','name'];a16c=function(){return j;};return a16c();}Command[a16h(0xe5)]({'name':a16h(0xd3),'aliases':['ti'],'usage':a16h(0xd8),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a16h(0xd0),'description':a16h(0xd1),'examples':[a16h(0xd8),a16h(0xd9)]},async function(){const i=a16h;try{const a=new AWS(),b=await a[i(0xd2)]();if(b?.[i(0xcf)]&&b?.[i(0xd7)]===i(0xd6)){const c=await Actions['confirm']('You\x20are\x20about\x20to\x20terminate\x20(lose\x20all\x20data)\x20on\x20instance:\x20'+b[i(0xde)]+i(0xdf));c?a[i(0xe6)]({'instanceId':b[i(0xcf)]}):Log['error'](i(0xe3)+b[i(0xde)]+i(0xd5));}else Log[i(0xce)](i(0xda));}catch(d){console[i(0xce)](d),process['exit'](0x0);}},a16e);
@@ -1 +1 @@
1
- (function(a,b){var f=a17d,c=a();while(!![]){try{var d=parseInt(f(0x9f))/0x1*(-parseInt(f(0xa7))/0x2)+parseInt(f(0xa9))/0x3+-parseInt(f(0xab))/0x4+-parseInt(f(0xa4))/0x5*(-parseInt(f(0xa0))/0x6)+-parseInt(f(0x9e))/0x7*(parseInt(f(0xa8))/0x8)+-parseInt(f(0xa2))/0x9+parseInt(f(0xaa))/0xa*(parseInt(f(0xa3))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a17c,0xac3e9));var a17b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a17d;if(c){var e=c[g(0xa1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a17a=a17b(this,function(){var h=a17d;return a17a[h(0x9d)]()[h(0xa5)]('(((.+)+)+)+$')['toString']()[h(0xa6)](a17a)[h(0xa5)]('(((.+)+)+)+$');});a17a();function a17c(){var i=['70HyDNRi','38736xmMPIJ','toString','7RfUVba','41469StxwNc','30GhQsZz','apply','8824194KumQCW','3224023npKpPE','758500uLWSlu','search','constructor','52moujZu','1443632AYSETv','432480NrTGKF'];a17c=function(){return i;};return a17c();}function a17d(a,b){var c=a17c();return a17d=function(d,e){d=d-0x9d;var f=c[d];return f;},a17d(a,b);}import'./build.js';import'./docker.sub.cmd.js';
1
+ (function(a,b){var f=a17d,c=a();while(!![]){try{var d=-parseInt(f(0x1a1))/0x1+parseInt(f(0x19b))/0x2+parseInt(f(0x199))/0x3+-parseInt(f(0x19d))/0x4+parseInt(f(0x1a4))/0x5+-parseInt(f(0x1a3))/0x6+parseInt(f(0x19e))/0x7*(-parseInt(f(0x1a0))/0x8);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a17c,0xda106));var a17b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a17d;if(c){var e=c[g(0x19f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a17a=a17b(this,function(){var h=a17d;return a17a['toString']()[h(0x19a)](h(0x19c))[h(0x1a2)]()['constructor'](a17a)[h(0x19a)](h(0x19c));});function a17d(a,b){var c=a17c();return a17d=function(d,e){d=d-0x199;var f=c[d];return f;},a17d(a,b);}a17a();function a17c(){var i=['8080965EBeUvN','1258059MIalYf','search','2310990SSlDuP','(((.+)+)+)+$','1173436lcrNiS','32627mdzlTG','apply','1992ffKukp','625225IhcjHC','toString','1312068CEeUVn'];a17c=function(){return i;};return a17c();}import'./build.js';import'./docker.sub.cmd.js';
@@ -1 +1 @@
1
- const a18t=a18d;(function(a,b){const q=a18d,c=a();while(!![]){try{const d=parseInt(q(0x142))/0x1+parseInt(q(0x135))/0x2*(-parseInt(q(0x155))/0x3)+parseInt(q(0x138))/0x4*(parseInt(q(0x136))/0x5)+parseInt(q(0x13d))/0x6+parseInt(q(0x149))/0x7*(parseInt(q(0x161))/0x8)+-parseInt(q(0x145))/0x9+parseInt(q(0x15b))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a18c,0x3fea9));function a18d(a,b){const c=a18c();return a18d=function(d,e){d=d-0x135;let f=c[d];return f;},a18d(a,b);}const a18b=(function(){let a=!![];return function(b,c){const d=a?function(){const r=a18d;if(c){const e=c[r(0x165)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a18a=a18b(this,function(){const s=a18d;return a18a['toString']()[s(0x160)](s(0x13c))[s(0x147)]()[s(0x139)](a18a)[s(0x160)](s(0x13c));});a18a();function a18c(){const w=['debug','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','confirm','22429PUcJEe','update',')\x20is\x20behind\x20your\x20installed\x20meteor\x20version\x20(','3845862gocmCG','fsi','toString','existsSync','7oZIIai','Build\x20your\x20application\x20into\x20the\x20build\x20folder.','error','autoupdate','--release','getGlobalMeteorVersion','Verifying\x20meteor\x20package\x20requirements\x20...','getProjectMeteorVersion','maka\x20build\x20<opts>','--force','maka\x20build:docker','findProjectDirectory','3yIHQkH','findSubCommand','notice','forEach',').\x20Update?','invokeMeteorCommand','7313920lQPTDy','splice','runSubCommand','exit','join','search','1525576hNrAyD','Aborted.','force','build','apply','877546CFZqsa','2635NWjjVn','This\x20project\x27s\x20meteor\x20version\x20(','1316JJwyzK','constructor','app.tar.gz','argv','(((.+)+)+)+$','59946PQzlcH','pathFromProject'];a18c=function(){return w;};return a18c();}import a18e from'path';import a18f from'fs';import a18g from'semver';import{Actions}from'../../tools/actions/actions.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';const BuildCommand=Command['create']({'name':a18t(0x164),'usage':a18t(0x151),'validOpts':[a18t(0x163),a18t(0x13f)],'minArgLength':0x0,'maxArgLength':0x2,'shortDesc':a18t(0x14a),'mustBeInMakaProject':!![],'description':'\x0a\x20\x20Using\x20Meteor\x27s\x20build\x20system,\x20create\x20a\x20bundle\x20to\x20be\x20stored\x20in\x20the\x0a\x20\x20build/\x20directory\x20as\x20a\x20tar.gz\x20file.\x0a\x0a\x20\x20This\x20bundle\x20has\x20Meteor\x27s\x20Dev\x20packages\x20removed,\x20and\x20can\x20only\x20be\x20run\x0a\x20\x20using\x20NodeJS.\x0a\x20\x20','examples':['maka\x20build',a18t(0x153)]},async function(a,b){const u=a18t;try{const c=this[u(0x146)][u(0x154)]();!this[u(0x146)]['checkMeteorPackage'](u(0x14c))&&(Log[u(0x157)](u(0x14f)),await this[u(0x146)]['installMeteorPackage'](u(0x14c),{'cwd':c}));const d=a[0x0],f=this[u(0x156)](d);if(f)this[u(0x15d)](d,a,b);else{const g=b[u(0x163)];if(!g){const j=this['fsi'][u(0x14e)](),k=this['fsi'][u(0x150)](),l=a18g['gt'](j,k);if(l){const m=await Actions[u(0x141)](u(0x137)+k+u(0x144)+j+u(0x159));m&&this['fsi']['invokeMeteorCommand'](u(0x143),[u(0x14d),j]);}}const h=[this[u(0x146)]['pathFromProject']({'pathParts':[u(0x164)]})]['concat'](process[u(0x13b)]['slice'](0x3)),i=a18e[u(0x15f)](this['fsi'][u(0x13e)]({}),u(0x164),u(0x13a));if(a18f[u(0x148)](i)){const n=g??await Actions[u(0x141)](u(0x140));if(!n)throw Log[u(0x14b)](u(0x162));}h[u(0x158)]((o,p)=>{const v=u;o===v(0x152)&&h[v(0x15c)](p,0x2);}),this[u(0x146)][u(0x15a)]('build',h);}}catch(o){console[u(0x14b)](o),process[u(0x15e)](0x0);}});export default BuildCommand;
1
+ function a18d(a,b){const c=a18c();return a18d=function(d,e){d=d-0x173;let f=c[d];return f;},a18d(a,b);}const a18t=a18d;(function(a,b){const q=a18d,c=a();while(!![]){try{const d=-parseInt(q(0x17d))/0x1+-parseInt(q(0x194))/0x2+-parseInt(q(0x185))/0x3+parseInt(q(0x191))/0x4+parseInt(q(0x178))/0x5+parseInt(q(0x182))/0x6*(-parseInt(q(0x196))/0x7)+-parseInt(q(0x187))/0x8*(-parseInt(q(0x184))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a18c,0x6f640));const a18b=(function(){let a=!![];return function(b,c){const d=a?function(){const r=a18d;if(c){const e=c[r(0x17c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a18a=a18b(this,function(){const s=a18d;return a18a['toString']()[s(0x186)]('(((.+)+)+)+$')['toString']()[s(0x195)](a18a)[s(0x186)](s(0x188));});a18a();import a18e from'path';import a18f from'fs';import a18g from'semver';import{Actions}from'../../tools/actions/actions.class.js';import{Command}from'../../command.js';function a18c(){const w=['195468RqFEkq','exit','create','This\x20project\x27s\x20meteor\x20version\x20(','getProjectMeteorVersion','6xwDWql','maka\x20build\x20<opts>','9sKFJKC','2104128LwxWGH','search','13813064QqAOfd','(((.+)+)+)+$','autoupdate','error','pathFromProject','getGlobalMeteorVersion','--release','confirm',').\x20Update?','\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','1717332YkNQOv','Aborted.','fsi','1301764PvUQwC','constructor','1382493jwloiG','debug','build','join','Verifying\x20meteor\x20package\x20requirements\x20...','splice','runSubCommand','227575iAYZtC','installMeteorPackage','existsSync','force','apply'];a18c=function(){return w;};return a18c();}import{Log}from'../../tools/log/log.class.js';const BuildCommand=Command[a18t(0x17f)]({'name':a18t(0x173),'usage':a18t(0x183),'validOpts':[a18t(0x17b),a18t(0x197)],'minArgLength':0x0,'maxArgLength':0x2,'shortDesc':'Build\x20your\x20application\x20into\x20the\x20build\x20folder.','mustBeInMakaProject':!![],'description':a18t(0x190),'examples':['maka\x20build','maka\x20build:docker']},async function(a,b){const u=a18t;try{const c=this['fsi']['findProjectDirectory']();!this[u(0x193)]['checkMeteorPackage'](u(0x189))&&(Log['notice'](u(0x175)),await this[u(0x193)][u(0x179)](u(0x189),{'cwd':c}));const d=a[0x0],f=this['findSubCommand'](d);if(f)this[u(0x177)](d,a,b);else{const g=b[u(0x17b)];if(!g){const j=this[u(0x193)][u(0x18c)](),k=this[u(0x193)][u(0x181)](),l=a18g['gt'](j,k);if(l){const m=await Actions[u(0x18e)](u(0x180)+k+')\x20is\x20behind\x20your\x20installed\x20meteor\x20version\x20('+j+u(0x18f));m&&this['fsi']['invokeMeteorCommand']('update',[u(0x18d),j]);}}const h=[this['fsi'][u(0x18b)]({'pathParts':[u(0x173)]})]['concat'](process['argv']['slice'](0x3)),i=a18e[u(0x174)](this[u(0x193)]['pathFromProject']({}),u(0x173),'app.tar.gz');if(a18f[u(0x17a)](i)){const n=g??await Actions[u(0x18e)]('Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?');if(!n)throw Log[u(0x18a)](u(0x192));}h['forEach']((o,p)=>{const v=u;o==='--force'&&h[v(0x176)](p,0x2);}),this['fsi']['invokeMeteorCommand'](u(0x173),h);}}catch(o){console['error'](o),process[u(0x17e)](0x0);}});export default BuildCommand;
@@ -1 +1 @@
1
- const a19I=a19d;(function(a,b){const F=a19d,c=a();while(!![]){try{const d=parseInt(F(0x1a6))/0x1+parseInt(F(0x1a3))/0x2*(parseInt(F(0x1a1))/0x3)+-parseInt(F(0x159))/0x4*(parseInt(F(0x17e))/0x5)+-parseInt(F(0x157))/0x6+parseInt(F(0x15a))/0x7+-parseInt(F(0x1a5))/0x8+parseInt(F(0x165))/0x9*(parseInt(F(0x175))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a19c,0x4dd91));const a19b=(function(){let a=!![];return function(b,c){const d=a?function(){const G=a19d;if(c){const e=c[G(0x199)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a19a=a19b(this,function(){const H=a19d;return a19a[H(0x18c)]()[H(0x162)]('(((.+)+)+)+$')[H(0x18c)]()['constructor'](a19a)[H(0x162)](H(0x156));});a19a();import a19e from'./build.js';import a19f from'path';import a19g from'fs';import{execSync}from'child_process';import{paramCase}from'change-case';import a19h from'../../generators/maka.gen.js';import{Actions}from'../../tools/actions/actions.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';function a19d(a,b){const c=a19c();return a19d=function(d,e){d=d-0x151;let f=c[d];return f;},a19d(a,b);}Command['create']({'name':a19I(0x18b),'aliases':['d'],'usage':a19I(0x190),'validOpts':[a19I(0x173),a19I(0x174),a19I(0x1a0)],'shortDesc':a19I(0x17c),'description':a19I(0x16a),'mustBeInMakaProject':!![],'examples':['maka\x20build:docker\x20--tag',a19I(0x160)]},async function(a,b){const J=a19I;try{const c=await this['fsi'][J(0x167)](),d=await this[J(0x181)]['getProjectConfig'](),f=J(0x16e);f===J(0x1a2)&&(Log[J(0x188)](J(0x177)),process['exit'](0x1));const g=process[J(0x158)]===J(0x19b)?J(0x195):'meteor',h=this[J(0x181)][J(0x151)]({}),i=a19f[J(0x182)](h,'Dockerfile');if(!this[J(0x181)][J(0x194)](i)){const s=a19h[J(0x19c)]('dockerfile');s&&await s[J(0x170)](['dockerfile'],{'cwd':h,'config':d});}const j=this[J(0x181)][J(0x17b)](J(0x18b));if(!j){const t=a19h[J(0x19c)]('config');if(t){await t[J(0x170)]([J(0x18b)],{'cwd':h,'config':d,'isDocker':!![]});const u=this[J(0x181)][J(0x19f)](J(0x18b)),v=a19f[J(0x182)](u,J(0x15c));await this[J(0x181)][J(0x1a7)]({'srcPath':J(0x193),'destPath':v,'context':{'app':d[J(0x164)],'isDocker':!![]},'config':d});const w=a19f['join'](u,'docker-compose.yaml');await this[J(0x181)][J(0x1a7)]({'srcPath':J(0x168),'destPath':w,'context':{'app':d[J(0x164)],'appFileCase':paramCase(d[J(0x164)])},'config':d});}}if(this['fsi'][J(0x194)](c[J(0x197)])){const x=this['fsi'][J(0x153)](a19f['join'](J(0x18a),J(0x18b),J(0x17a)));!x&&a19g['mkdirSync'](a19f['join'](J(0x18a),J(0x18b),J(0x17a))),a19g['copyFileSync'](c['cert'],a19f[J(0x182)](h,J(0x18a),J(0x18b),J(0x17a),J(0x198)));}const k=['build',a19f[J(0x182)](this[J(0x181)][J(0x18e)](),'build'),J(0x189),'os.linux.x86_64'],l=this[J(0x181)]['readFileLines'](a19f[J(0x182)](this['fsi'][J(0x151)]({}),J(0x186),J(0x166),J(0x191))),m=l[J(0x185)]>0x2?!![]:![];if(m){const y=d[J(0x176)]?d[J(0x176)]:await Actions[J(0x184)](J(0x15f)),z=d[J(0x152)]?d[J(0x152)]:await Actions[J(0x184)]('Mobile\x20server\x20port:\x20');if(y[J(0x185)]==0x0||z['length']==0x0)throw J(0x192);const A=z==J(0x155)?J(0x17d):J(0x19e);k[J(0x161)](J(0x17f)+A+J(0x18d)+y+':'+z);if(!d[J(0x176)]&&!d[J(0x152)]){const B=await Actions[J(0x19a)]('Would\x20you\x20like\x20to\x20save\x20the\x20server\x20config\x20in\x20your\x20.maka/config.json\x20file?');B&&(this[J(0x181)][J(0x19d)]('serverName',y),this[J(0x181)][J(0x19d)](J(0x152),z),Log[J(0x16c)](J(0x172)+a19f['join']('.maka',J(0x15d))));}}const n=a19f[J(0x182)](this['fsi'][J(0x151)]({}),J(0x163),J(0x171));if(a19g[J(0x187)](n)){const C=await Actions[J(0x19a)](J(0x178)),D=C;D&&(execSync(g+J(0x179),{'cwd':this[J(0x181)][J(0x15b)](),'stdio':J(0x180)}),execSync(g+'\x20\x20'+k[J(0x182)]('\x20'),{'cwd':this['fsi'][J(0x15b)](),'stdio':J(0x169)}));}else execSync(g+J(0x179),{'cwd':this['fsi'][J(0x15b)](),'stdio':J(0x180)}),Log['notice'](J(0x16d)+k[J(0x182)]('\x20')),execSync(g+'\x20'+k[J(0x182)]('\x20'),{'cwd':this[J(0x181)][J(0x15b)](),'stdio':J(0x169)});const o=this['fsi'][J(0x151)]({});let p='-t\x20'+paramCase(d[J(0x164)])+':latest';b['tag']&&(p=J(0x196)+b[J(0x174)]);Log[J(0x16c)](J(0x18f)+f),Log[J(0x16c)](J(0x154)+p),Log[J(0x16c)](J(0x16f)+o);const q=b['debug']?J(0x1a4):'',r=J(0x15e)+f+'\x20'+p+'\x20'+o+'\x20'+q;execSync(r,{'stdio':J(0x169)}),Log[J(0x16c)](J(0x183));}catch(E){console[J(0x188)](E),process[J(0x16b)](0x0);}},a19e);function a19c(){const K=['--progress=plain\x20--no-cache','4028032krkIax','182506VfEWcd','template','pathFromProject','serverPort','isDirectory','Tagging\x20Docker\x20Image:\x20','443','(((.+)+)+)+$','2497470KmlBzh','platform','188ZsUqUR','2147824akCpuP','findAppDirectory','pm2.config.js','config.json','docker\x20build\x20--build-arg\x20NODE_VERSION=','Mobile\x20server\x20IP\x20or\x20fully\x20qualified\x20domain\x20name\x20(FQDN):\x20','maka\x20build:docker\x20--debug','push','search','build','appName','45dXoAAd','.meteor','getGlobalConfig','config/docker-compose.yaml','inherit','\x0a\x20\x20Build\x20the\x20application\x20and\x20a\x20Docker\x20image.\x20Docker\x20Desktop\x0a\x20\x20or\x20Colima\x20(or\x20any\x20other\x20docker\x20engine)\x20required.\x0a\x0a\x20\x20Colima:\x0a\x20\x20https://github.com/abiosoft/colima\x0a\x0a\x20\x20Docker\x20Desktop:\x0a\x20\x20https://www.docker.com/products/docker-desktop/\x0a\x20\x20','exit','notice','[*]\x20maka\x20','14.21.3','Docker\x20Context\x20Path:\x20','invoke','app.tar.gz','Stored\x20server\x20config\x20to\x20','force','tag','2021050JrfSyP','serverName','Cannot\x20determine\x20Meteor\x20Node\x20Version\x20for\x20Docker\x20Node\x20install.\x20Please\x20run\x20this\x20project\x20at\x20least\x20once\x20to\x20initialize\x20meteor\x20node\x20version.\x20(e.g.,\x20\x22maka\x20run\x22).','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','\x20npm\x20install\x20--save','_keys','checkConfigExists','Build\x20your\x20application\x20into\x20the\x20build\x20folder\x20and\x20generate\x20a\x20docker\x20image.','https','30755NwPdxj','--server=','ignore','fsi','join','Try\x20\x27maka\x20run:docker\x27','ask','length','app','existsSync','error','--architecture','config','docker','toString','://','findProjectDirectory','Using\x20Meteor\x27s\x20Project\x27s\x20Node\x20Version:\x20','maka\x20build:docker\x20<opts>','platforms','Server\x20name\x20or\x20port\x20number\x20are\x20not\x20long\x20enough!','config/pm2.config.js','isFile','meteor.bat','-t\x20','cert','cert.pem','apply','confirm','win32','findGenerator','setProjectConfig','http','getConfigPath','debug','177kDSHCS','N/A','944pzvqis'];a19c=function(){return K;};return a19c();}
1
+ const a19H=a19d;(function(a,b){const F=a19d,c=a();while(!![]){try{const d=parseInt(F(0x1db))/0x1*(parseInt(F(0x1e6))/0x2)+parseInt(F(0x1d7))/0x3*(parseInt(F(0x1d9))/0x4)+parseInt(F(0x1fd))/0x5+-parseInt(F(0x1b4))/0x6+parseInt(F(0x1fb))/0x7+-parseInt(F(0x208))/0x8*(parseInt(F(0x1b8))/0x9)+parseInt(F(0x1c8))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a19c,0x1a257));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(0x206)]()[G(0x1ce)](G(0x1f1))[G(0x206)]()[G(0x1ba)](a19a)[G(0x1ce)](G(0x1f1));});a19a();import a19e from'./build.js';import a19f from'path';import a19g from'fs';import{execSync}from'child_process';import{paramCase}from'change-case';import a19h from'../../generators/maka.gen.js';import{Actions}from'../../tools/actions/actions.class.js';import{Command}from'../../command.js';function a19d(a,b){const c=a19c();return a19d=function(d,e){d=d-0x1b1;let f=c[d];return f;},a19d(a,b);}function a19c(){const J=['\x0a\x20\x20Build\x20the\x20application\x20and\x20a\x20Docker\x20image.\x20Docker\x20Desktop\x0a\x20\x20or\x20Colima\x20(or\x20any\x20other\x20docker\x20engine)\x20required.\x0a\x0a\x20\x20Colima:\x0a\x20\x20https://github.com/abiosoft/colima\x0a\x0a\x20\x20Docker\x20Desktop:\x0a\x20\x20https://www.docker.com/products/docker-desktop/\x0a\x20\x20','search','cert','ask','platform','docker-compose.yaml','findGenerator','Would\x20you\x20like\x20to\x20save\x20the\x20server\x20config\x20in\x20your\x20.maka/config.json\x20file?','\x20npm\x20install\x20--save','Build\x20your\x20application\x20into\x20the\x20build\x20folder\x20and\x20generate\x20a\x20docker\x20image.','455181FlmHZL','docker','4GfVPFL','isFile','16HPICjI','cert.pem','--server=','_keys','template','existsSync','error','checkConfigExists','findAppDirectory','Try\x20\x27maka\x20run:docker\x27','platforms','7302eXxYGK','config/pm2.config.js','docker\x20build\x20--build-arg\x20NODE_VERSION=','[*]\x20maka\x20','win32','14.21.3','fsi','setProjectConfig','getProjectConfig','http','exit','(((.+)+)+)+$','meteor.bat','maka\x20build:docker\x20--tag','Cannot\x20determine\x20Meteor\x20Node\x20Version\x20for\x20Docker\x20Node\x20install.\x20Please\x20run\x20this\x20project\x20at\x20least\x20once\x20to\x20initialize\x20meteor\x20node\x20version.\x20(e.g.,\x20\x22maka\x20run\x22).','tag','appName','config/docker-compose.yaml','443','.meteor','Using\x20Meteor\x27s\x20Project\x27s\x20Node\x20Version:\x20','242025iZcWaq','meteor','28595gQrtCB','maka\x20build:docker\x20<opts>','debug','Mobile\x20server\x20port:\x20','readFileLines','Tagging\x20Docker\x20Image:\x20','app.tar.gz','--progress=plain\x20--no-cache','N/A','toString','config','104eVqljO','.maka','inherit','getGlobalConfig','967536RzAjhV','build','-t\x20','notice','39213icNamT','force','constructor','dockerfile','Mobile\x20server\x20IP\x20or\x20fully\x20qualified\x20domain\x20name\x20(FQDN):\x20','://','app','https','invoke','mkdirSync','pathFromProject','getConfigPath','Dockerfile','Server\x20name\x20or\x20port\x20number\x20are\x20not\x20long\x20enough!','serverName','serverPort','745550unkmpS','copyFileSync','length','join','confirm'];a19c=function(){return J;};return a19c();}import{Log}from'../../tools/log/log.class.js';Command['create']({'name':a19H(0x1d8),'aliases':['d'],'usage':a19H(0x1fe),'validOpts':[a19H(0x1b9),'tag',a19H(0x1ff)],'shortDesc':a19H(0x1d6),'description':a19H(0x1cd),'mustBeInMakaProject':!![],'examples':[a19H(0x1f3),'maka\x20build:docker\x20--debug']},async function(a,b){const I=a19H;try{const c=await this['fsi'][I(0x1b3)](),d=await this['fsi'][I(0x1ee)](),f=I(0x1eb);f===I(0x205)&&(Log[I(0x1e1)](I(0x1f4)),process[I(0x1f0)](0x1));const g=process[I(0x1d1)]===I(0x1ea)?I(0x1f2):I(0x1fc),h=this[I(0x1ec)][I(0x1c2)]({}),i=a19f[I(0x1cb)](h,I(0x1c4));if(!this[I(0x1ec)][I(0x1da)](i)){const s=a19h['findGenerator'](I(0x1bb));s&&await s[I(0x1c0)]([I(0x1bb)],{'cwd':h,'config':d});}const j=this[I(0x1ec)][I(0x1e2)](I(0x1d8));if(!j){const t=a19h[I(0x1d3)](I(0x207));if(t){await t[I(0x1c0)]([I(0x1d8)],{'cwd':h,'config':d,'isDocker':!![]});const u=this[I(0x1ec)][I(0x1c3)](I(0x1d8)),v=a19f[I(0x1cb)](u,'pm2.config.js');await this[I(0x1ec)][I(0x1df)]({'srcPath':I(0x1e7),'destPath':v,'context':{'app':d[I(0x1f6)],'isDocker':!![]},'config':d});const w=a19f[I(0x1cb)](u,I(0x1d2));await this[I(0x1ec)][I(0x1df)]({'srcPath':I(0x1f7),'destPath':w,'context':{'app':d[I(0x1f6)],'appFileCase':paramCase(d['appName'])},'config':d});}}if(this[I(0x1ec)][I(0x1da)](c[I(0x1cf)])){const x=this[I(0x1ec)]['isDirectory'](a19f[I(0x1cb)]('config',I(0x1d8),'_keys'));!x&&a19g[I(0x1c1)](a19f[I(0x1cb)](I(0x207),'docker',I(0x1de))),a19g[I(0x1c9)](c[I(0x1cf)],a19f[I(0x1cb)](h,'config',I(0x1d8),'_keys',I(0x1dc)));}const k=[I(0x1b5),a19f[I(0x1cb)](this[I(0x1ec)]['findProjectDirectory'](),I(0x1b5)),'--architecture','os.linux.x86_64'],l=this[I(0x1ec)][I(0x201)](a19f[I(0x1cb)](this[I(0x1ec)][I(0x1c2)]({}),I(0x1be),I(0x1f9),I(0x1e5))),m=l[I(0x1ca)]>0x2?!![]:![];if(m){const y=d['serverName']?d[I(0x1c6)]:await Actions[I(0x1d0)](I(0x1bc)),z=d[I(0x1c7)]?d[I(0x1c7)]:await Actions[I(0x1d0)](I(0x200));if(y[I(0x1ca)]==0x0||z[I(0x1ca)]==0x0)throw I(0x1c5);const A=z==I(0x1f8)?I(0x1bf):I(0x1ef);k['push'](I(0x1dd)+A+I(0x1bd)+y+':'+z);if(!d[I(0x1c6)]&&!d['serverPort']){const B=await Actions[I(0x1cc)](I(0x1d4));B&&(this['fsi'][I(0x1ed)]('serverName',y),this['fsi']['setProjectConfig']('serverPort',z),Log['notice']('Stored\x20server\x20config\x20to\x20'+a19f[I(0x1cb)](I(0x1b1),'config.json')));}}const n=a19f[I(0x1cb)](this[I(0x1ec)][I(0x1c2)]({}),I(0x1b5),I(0x203));if(a19g[I(0x1e0)](n)){const C=await Actions['confirm']('Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?'),D=C;D&&(execSync(g+I(0x1d5),{'cwd':this[I(0x1ec)][I(0x1e3)](),'stdio':'ignore'}),execSync(g+'\x20\x20'+k[I(0x1cb)]('\x20'),{'cwd':this[I(0x1ec)][I(0x1e3)](),'stdio':I(0x1b2)}));}else execSync(g+'\x20npm\x20install\x20--save',{'cwd':this[I(0x1ec)]['findAppDirectory'](),'stdio':'ignore'}),Log[I(0x1b7)](I(0x1e9)+k[I(0x1cb)]('\x20')),execSync(g+'\x20'+k['join']('\x20'),{'cwd':this[I(0x1ec)][I(0x1e3)](),'stdio':I(0x1b2)});const o=this[I(0x1ec)][I(0x1c2)]({});let p=I(0x1b6)+paramCase(d[I(0x1f6)])+':latest';b[I(0x1f5)]&&(p=I(0x1b6)+b[I(0x1f5)]);Log['notice'](I(0x1fa)+f),Log['notice'](I(0x202)+p),Log[I(0x1b7)]('Docker\x20Context\x20Path:\x20'+o);const q=b[I(0x1ff)]?I(0x204):'',r=I(0x1e8)+f+'\x20'+p+'\x20'+o+'\x20'+q;execSync(r,{'stdio':I(0x1b2)}),Log[I(0x1b7)](I(0x1e4));}catch(E){console[I(0x1e1)](E),process[I(0x1f0)](0x0);}},a19e);