@maka/maka-cli 4.12.17 → 4.12.18

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 (160) hide show
  1. package/bundle/obf/package.json +1 -1
  2. package/bundle/obf/src/command.js +1 -1
  3. package/bundle/obf/src/commands/_index.js +1 -1
  4. package/bundle/obf/src/commands/ai.js +1 -1
  5. package/bundle/obf/src/commands/aws/_index.js +1 -1
  6. package/bundle/obf/src/commands/aws/aws.command.js +1 -1
  7. package/bundle/obf/src/commands/aws/cecr.sub.cmd.js +1 -1
  8. package/bundle/obf/src/commands/aws/chz.sub.cmd.js +1 -1
  9. package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
  10. package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
  11. package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
  12. package/bundle/obf/src/commands/aws/decr.sub.cmd.js +1 -1
  13. package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
  14. package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
  15. package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
  16. package/bundle/obf/src/commands/aws/lecr.sub.cmd.js +1 -1
  17. package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
  18. package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
  19. package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
  20. package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
  21. package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
  22. package/bundle/obf/src/commands/build/_index.js +1 -1
  23. package/bundle/obf/src/commands/build/build.js +1 -1
  24. package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
  25. package/bundle/obf/src/commands/create.js +1 -1
  26. package/bundle/obf/src/commands/debug.js +1 -1
  27. package/bundle/obf/src/commands/deploy/_index.js +1 -1
  28. package/bundle/obf/src/commands/deploy/deploy.command.js +1 -1
  29. package/bundle/obf/src/commands/deploy/galaxy.sub.cmd.js +1 -1
  30. package/bundle/obf/src/commands/deploy/ubuntu.sub.cmd.js +1 -1
  31. package/bundle/obf/src/commands/game/_index.js +1 -1
  32. package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
  33. package/bundle/obf/src/commands/game/play.command.js +1 -1
  34. package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
  35. package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
  36. package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
  37. package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
  38. package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
  39. package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
  40. package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
  41. package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
  42. package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
  43. package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
  44. package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
  45. package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
  46. package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
  47. package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
  48. package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
  49. package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
  50. package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
  51. package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
  52. package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
  53. package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
  54. package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
  55. package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
  56. package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
  57. package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
  58. package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
  59. package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
  60. package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
  61. package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
  62. package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
  63. package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
  64. package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
  65. package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
  66. package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
  67. package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
  68. package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
  69. package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
  70. package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
  71. package/bundle/obf/src/commands/generate.js +1 -1
  72. package/bundle/obf/src/commands/get/_index.js +1 -1
  73. package/bundle/obf/src/commands/get/get.command.js +1 -1
  74. package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
  75. package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
  76. package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
  77. package/bundle/obf/src/commands/help.js +1 -1
  78. package/bundle/obf/src/commands/install.js +1 -1
  79. package/bundle/obf/src/commands/jsdoc.js +1 -1
  80. package/bundle/obf/src/commands/lint.js +1 -1
  81. package/bundle/obf/src/commands/login.js +1 -1
  82. package/bundle/obf/src/commands/logout.js +1 -1
  83. package/bundle/obf/src/commands/logs.js +1 -1
  84. package/bundle/obf/src/commands/maka.cmd.js +1 -1
  85. package/bundle/obf/src/commands/murder.js +1 -1
  86. package/bundle/obf/src/commands/patreon.js +1 -1
  87. package/bundle/obf/src/commands/profile.js +1 -1
  88. package/bundle/obf/src/commands/proxy.js +1 -1
  89. package/bundle/obf/src/commands/reconfig.js +1 -1
  90. package/bundle/obf/src/commands/register.js +1 -1
  91. package/bundle/obf/src/commands/run/_index.js +1 -1
  92. package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
  93. package/bundle/obf/src/commands/run/run.command.js +1 -1
  94. package/bundle/obf/src/commands/set/_index.js +1 -1
  95. package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
  96. package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
  97. package/bundle/obf/src/commands/set/set.command.js +1 -1
  98. package/bundle/obf/src/commands/ssh.js +1 -1
  99. package/bundle/obf/src/commands/ssl.js +1 -1
  100. package/bundle/obf/src/commands/test.js +1 -1
  101. package/bundle/obf/src/commands/undo.js +1 -1
  102. package/bundle/obf/src/commands/version.js +1 -1
  103. package/bundle/obf/src/error.js +1 -1
  104. package/bundle/obf/src/exec.js +1 -1
  105. package/bundle/obf/src/generator.js +1 -1
  106. package/bundle/obf/src/generators/_index.js +1 -1
  107. package/bundle/obf/src/generators/api.js +1 -1
  108. package/bundle/obf/src/generators/collection.js +1 -1
  109. package/bundle/obf/src/generators/component.js +1 -1
  110. package/bundle/obf/src/generators/config.js +1 -1
  111. package/bundle/obf/src/generators/dbc.js +1 -1
  112. package/bundle/obf/src/generators/dockerfile.js +1 -1
  113. package/bundle/obf/src/generators/hook.js +1 -1
  114. package/bundle/obf/src/generators/kits/_index.js +1 -1
  115. package/bundle/obf/src/generators/kits/auth/_index.js +1 -1
  116. package/bundle/obf/src/generators/kits/auth/auth.generator.js +1 -1
  117. package/bundle/obf/src/generators/kits/auth/basic-meteor.auth.gen.js +1 -1
  118. package/bundle/obf/src/generators/kits/auth/provider.auth.gen.js +1 -1
  119. package/bundle/obf/src/generators/kits/esri/_index.js +1 -1
  120. package/bundle/obf/src/generators/kits/esri/esri.generator.js +1 -1
  121. package/bundle/obf/src/generators/kits/esri/map.esri.gen.js +1 -1
  122. package/bundle/obf/src/generators/kits/kit.js +1 -1
  123. package/bundle/obf/src/generators/kits/mui/_index.js +1 -1
  124. package/bundle/obf/src/generators/kits/mui/auth.mui.gen.js +1 -1
  125. package/bundle/obf/src/generators/kits/mui/frame.mui.gen.js +1 -1
  126. package/bundle/obf/src/generators/kits/mui/mui.generator.js +1 -1
  127. package/bundle/obf/src/generators/layout.js +1 -1
  128. package/bundle/obf/src/generators/maka.gen.js +1 -1
  129. package/bundle/obf/src/generators/methods.js +1 -1
  130. package/bundle/obf/src/generators/package.js +1 -1
  131. package/bundle/obf/src/generators/page.js +1 -1
  132. package/bundle/obf/src/generators/publish.js +1 -1
  133. package/bundle/obf/src/generators/route.js +1 -1
  134. package/bundle/obf/src/generators/service.js +1 -1
  135. package/bundle/obf/src/generators/services/_index.js +1 -1
  136. package/bundle/obf/src/generators/services/openssl.js +1 -1
  137. package/bundle/obf/src/generators/services/translation.js +1 -1
  138. package/bundle/obf/src/maka.js +1 -1
  139. package/bundle/obf/src/templates/meteor/config/docker-compose.yaml +1 -1
  140. package/bundle/obf/src/templates/service/docker/Dockerfile +1 -1
  141. package/bundle/obf/src/tool.js +1 -1
  142. package/bundle/obf/src/tools/actions/actions.class.js +1 -1
  143. package/bundle/obf/src/tools/aws/aws.class.js +1 -1
  144. package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
  145. package/bundle/obf/src/tools/docker/docker.class.js +1 -1
  146. package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
  147. package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
  148. package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
  149. package/bundle/obf/src/tools/https/https.class.js +1 -1
  150. package/bundle/obf/src/tools/https/https.interface.js +1 -1
  151. package/bundle/obf/src/tools/log/log.class.js +1 -1
  152. package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
  153. package/bundle/obf/src/tools/options/options.class.js +1 -1
  154. package/bundle/obf/src/tools/progress/progress.class.js +1 -1
  155. package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
  156. package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
  157. package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
  158. package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
  159. package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
  160. package/package.json +1 -1
@@ -1 +1 @@
1
- const a132B=a132d;(function(a,b){const y=a132d,c=a();while(!![]){try{const d=-parseInt(y(0x150))/0x1*(-parseInt(y(0x133))/0x2)+parseInt(y(0x155))/0x3+-parseInt(y(0x162))/0x4*(-parseInt(y(0x16e))/0x5)+parseInt(y(0x164))/0x6+parseInt(y(0x120))/0x7+parseInt(y(0x132))/0x8*(parseInt(y(0x14b))/0x9)+-parseInt(y(0x157))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a132c,0x589e4));const a132b=(function(){let a=!![];return function(b,c){const d=a?function(){const z=a132d;if(c){const e=c[z(0x12e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a132a=a132b(this,function(){const A=a132d;return a132a[A(0x144)]()[A(0x147)](A(0x11e))['toString']()['constructor'](a132a)['search']('(((.+)+)+)+$');});a132a();import a132e from'path';function a132c(){const K=['baseDir','templateContent','map','newForm','8yCYrxK','injectAfterLineNumber','793338BGSApZ','\x0a\x09\x09','startup','pathFromApp','route/route.js','</Router>','\x20to\x20','root','fsi','Adding\x20route\x20','82165zSHhkg','length','resourceName','(((.+)+)+)+$','layout','2117675KYqgYA','ssr','maka\x20{generate,\x20g}:{route,\x20r}\x20[path/]<name>','info','getMakaProjectConfig','\x22*\x22','features','withHook','join','const\x20publicRoutes\x20=\x20(<>','only','warn','true','replace','apply','maka\x20g:route\x20todosEdit\x20todos/:id/edit','\x20already\x20exists.\x20Skipping.','Valid\x20options\x20are:\x20','104JOxYtW','7404lNZJic','maka\x20g:route\x20pages/about','includes','rewriteDestinationPathForEngine','withTranslations','routes.js','lib','pages','templateName','react','url','<Route','injectAtEndOfFile','config','/imports/ui/pages','engines','error','toString','imports','Scaffolding\x20for\x20a\x20Route.','search','const\x20privateRoutes\x20=\x20(<>','client','Please\x20specify\x20a\x20name\x20for\x20the\x20route.','434493hZVyty','layouts','route','create','readFileLines','61wtZZqC','/imports/ui/','toLowerCase','withValue','injectIntoFile','7782TPsXEa','Could\x20not\x20find\x20a\x20suitable\x20location\x20to\x20enable\x20this\x20route.\x20\x20Please\x20inspect\x20','9606510pDBDFH','components','filter','MasterLayout','PrivateLayout','cwd','pathFromProject'];a132c=function(){return K;};return a132c();}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';function a132d(a,b){const c=a132c();return a132d=function(d,e){d=d-0x11d;let f=c[d];return f;},a132d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['r'];Generator[a132B(0x14e)]({'name':a132B(0x14d),'aliases':aliases,'validOpts':['private',a132B(0x11f),a132B(0x12a),a132B(0x15c),a132B(0x140),a132B(0x16b),a132B(0x127),'url','baseDir'],'usage':a132B(0x122),'shortDesc':a132B(0x146),'examples':['maka\x20g:route\x20todosIndex\x20todos',a132B(0x12f),'maka\x20g:route\x20usersShow\x20users/:id/show\x20--layout\x20userView','maka\x20g:route\x20pages/lists/listIndex\x20lists',a132B(0x134)]},async function(a,b){const C=a132B;try{const c=['hooks',C(0x158),C(0x13a),C(0x14c)];if(b['baseDir']&&!c[C(0x135)](b[C(0x15e)])){Log[C(0x143)]('Invalid\x20directory\x20option\x20\x22'+b[C(0x15e)]+'\x22'),Log['error'](C(0x131)+c[C(0x128)](',\x20'));throw new UsageError();}const d=this[C(0x16c)][C(0x124)]();await this[C(0x16c)][C(0x153)](d,async()=>{const D=C,f=b['private']??![];let g=b[D(0x11d)]['split']('/')['pop']();if(!g){Log[D(0x143)](D(0x14a));throw new UsageError();}g=pascalCase(g);let h=b[D(0x13d)]?'/'+b[D(0x13d)]:'/'+b[D(0x11d)];a[D(0x16f)]>0x1&&(h='/'+a['filter'](function(n){return n!=='/';})['join']('/')[D(0x152)]());h=h['replace'](/\/\//g,'/');b[D(0x11f)]&&(b[D(0x11f)]=camelCase(b['layout']));const i=b[D(0x15e)]?D(0x151)+b[D(0x15e)]:D(0x141),j=a132e['join'](i,b['dir'],g,paramCase(g)),k={'name':g,'fileCase':paramCase(g),'camelCaseName':camelCase(g),'url':h,'layout':b[D(0x11f)]||D(0x15a),'templatePath':j,'templateName':pascalCase(g),'client':d['engines']['client'],'newForm':![],'withTranslations':d[D(0x126)][D(0x137)]};f&&(k[D(0x11f)]=D(0x15b));let l,m;if(d[D(0x142)][D(0x149)]==='react'){if(d['engines'][D(0x121)]===D(0x12c)){const r=this['fsi']['pathFromApp']({'pathParts':[D(0x145),'startup',D(0x139),D(0x138)]});l=this['fsi']['rewriteDestinationPathForEngine']({'pathParts':[r],'config':d});}else{const s=this[D(0x16c)][D(0x167)]({'pathParts':[D(0x145),D(0x166),D(0x149),D(0x138)]});l=this['fsi'][D(0x136)]({'pathParts':[s],'config':d});}const n=await this['fsi']['fileContainsString'](l,g);if(n){Log['warn']('Route\x20'+g+D(0x130));return;}else{const t=this['fsi'][D(0x15d)](l);Log[D(0x123)](D(0x16d)+g+D(0x16a)+l[D(0x12d)](t,''));}const o=this[D(0x16c)]['readFileLines'](l)[D(0x160)]((u,v)=>{const E=D;return u[E(0x135)]('import\x20*\x20as\x20Component\x20from\x20\x27./templates\x27;')?v+0x1:null;})[D(0x159)](u=>u!==null);let p=this[D(0x16c)]['readFileLines'](l)['map']((u,v)=>{const F=D;return u[F(0x135)](F(0x129))?v+0x1:null;})['filter'](u=>u!==null),q=this[D(0x16c)][D(0x14f)](l)[D(0x160)]((u,v)=>{const G=D;return u[G(0x135)]('const\x20privateRoutes\x20=\x20(<>')?v+0x1:null;})[D(0x159)](u=>u!==null);p['length']>0x0&&q[D(0x16f)]>0x0&&(k[D(0x161)]=!![]);m=this['fsi'][D(0x15f)]({'srcPath':D(0x168),'framework':D(0x13c),'context':k,'config':d});if(p['length']>0x0||q[D(0x16f)]>0x0){this[D(0x16c)][D(0x163)]({'filePath':l,'content':m,'lineNumber':o[0x0]});if(f&&q[D(0x16f)]>0x0)q=this[D(0x16c)][D(0x14f)](l)[D(0x160)]((u,v)=>{const H=D;return u[H(0x135)](H(0x148))?v+0x1:null;})[D(0x159)](u=>u!==null),this['fsi'][D(0x163)]({'filePath':l,'content':'\x09{'+k[D(0x13b)]+'}','lineNumber':q[0x0]});else p['length']>0x0?(p=this['fsi'][D(0x14f)](l)['map']((u,v)=>{const I=D;return u[I(0x135)](I(0x129))?v+0x1:null;})['filter'](u=>u!==null),this['fsi'][D(0x163)]({'filePath':l,'content':'\x09{'+k[D(0x13b)]+'}','lineNumber':p[0x0]})):Log[D(0x12b)](D(0x156)+l);}else{const u=this[D(0x16c)][D(0x14f)](l)['map'](x=>{const J=D;return x[J(0x135)](J(0x125));}),v=u['indexOf'](!![])>-0x1,w=v?D(0x13e):D(0x169);await this['fsi'][D(0x154)]({'filePath':l,'content':D(0x165)+m+'\x0a\x09\x09','begin':'<Router','end':w});}}else{if(d[D(0x142)][D(0x149)]==='vanilla'){const x=this[D(0x16c)]['pathFromApp']({'pathParts':[D(0x145),D(0x166),D(0x149),D(0x138)]});l=this['fsi']['rewriteDestinationPathForEngine']({'pathParts':[x],'config':d}),m=this['fsi']['templateContent']({'srcPath':D(0x168),'context':k}),await this['fsi'][D(0x13f)]({'filePath':l,'content':'\x0a'+m});}}});}catch(f){Log[C(0x143)](f);}});
1
+ const a132B=a132d;(function(a,b){const y=a132d,c=a();while(!![]){try{const d=parseInt(y(0x139))/0x1+-parseInt(y(0x144))/0x2+parseInt(y(0x146))/0x3*(-parseInt(y(0x14a))/0x4)+parseInt(y(0x11a))/0x5*(parseInt(y(0x110))/0x6)+parseInt(y(0x13e))/0x7+parseInt(y(0x10f))/0x8+-parseInt(y(0x143))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a132c,0x5ebe2));const a132b=(function(){let a=!![];return function(b,c){const d=a?function(){const z=a132d;if(c){const e=c[z(0x103)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a132a=a132b(this,function(){const A=a132d;return a132a['toString']()[A(0x13c)](A(0x123))[A(0x12b)]()['constructor'](a132a)['search'](A(0x123));});a132a();import a132e from'path';function a132d(a,b){const c=a132c();return a132d=function(d,e){d=d-0x102;let f=c[d];return f;},a132d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';import{camelCase,paramCase,pascalCase}from'change-case';function a132c(){const K=['getMakaProjectConfig','(((.+)+)+)+$','only','baseDir','toLowerCase','includes','lib','features','readFileLines','toString','withTranslations','Could\x20not\x20find\x20a\x20suitable\x20location\x20to\x20enable\x20this\x20route.\x20\x20Please\x20inspect\x20','injectIntoFile','config','Adding\x20route\x20','resourceName','imports','cwd','client','templateContent','dir','fileContainsString','engines','554945ocxXRY','route/route.js','hooks','search','Valid\x20options\x20are:\x20','4162536CWoGZr','replace','maka\x20g:route\x20pages/about','length','\x20already\x20exists.\x20Skipping.','3379572xgTFXE','950154vXcEHo','MasterLayout','156DOqSfZ','rewriteDestinationPathForEngine','import\x20*\x20as\x20Component\x20from\x20\x27./templates\x27;','layout','39076hahJHr','pages','maka\x20g:route\x20usersShow\x20users/:id/show\x20--layout\x20userView','const\x20publicRoutes\x20=\x20(<>','info','maka\x20g:route\x20todosIndex\x20todos','<Route','Scaffolding\x20for\x20a\x20Route.','map','injectAfterLineNumber','layouts','true','</Router>','pathFromApp','filter','\x20to\x20','apply','maka\x20g:route\x20todosEdit\x20todos/:id/edit','error','/imports/ui/pages','withValue','pop','Please\x20specify\x20a\x20name\x20for\x20the\x20route.','templateName','split','PrivateLayout','root','Route\x20','2787544fLAhRt','40314bMOLRP','newForm','maka\x20{generate,\x20g}:{route,\x20r}\x20[path/]<name>','\x22*\x22','url','/imports/ui/','warn','\x0a\x09\x09','fsi','maka\x20g:route\x20pages/lists/listIndex\x20lists','185VJADWC','route','const\x20privateRoutes\x20=\x20(<>','<Router','startup','routes.js','withHook','react'];a132c=function(){return K;};return a132c();}const aliases=['r'];Generator['create']({'name':a132B(0x11b),'aliases':aliases,'validOpts':['private',a132B(0x149),a132B(0x124),a132B(0x133),a132B(0x12f),a132B(0x10d),a132B(0x120),a132B(0x114),a132B(0x125)],'usage':a132B(0x112),'shortDesc':a132B(0x151),'examples':[a132B(0x14f),a132B(0x104),a132B(0x14c),a132B(0x119),a132B(0x140)]},async function(a,b){const C=a132B;try{const c=[C(0x13b),'components',C(0x14b),C(0x154)];if(b[C(0x125)]&&!c[C(0x127)](b[C(0x125)])){Log[C(0x105)]('Invalid\x20directory\x20option\x20\x22'+b[C(0x125)]+'\x22'),Log[C(0x105)](C(0x13d)+c['join'](',\x20'));throw new UsageError();}const d=this[C(0x118)][C(0x122)]();await this[C(0x118)][C(0x107)](d,async()=>{const D=C,f=b['private']??![];let g=b['resourceName'][D(0x10b)]('/')[D(0x108)]();if(!g){Log['error'](D(0x109));throw new UsageError();}g=pascalCase(g);let h=b[D(0x114)]?'/'+b[D(0x114)]:'/'+b[D(0x131)];a[D(0x141)]>0x1&&(h='/'+a[D(0x158)](function(n){return n!=='/';})['join']('/')[D(0x126)]());h=h[D(0x13f)](/\/\//g,'/');b[D(0x149)]&&(b[D(0x149)]=camelCase(b[D(0x149)]));const i=b[D(0x125)]?D(0x115)+b[D(0x125)]:D(0x106),j=a132e['join'](i,b[D(0x136)],g,paramCase(g)),k={'name':g,'fileCase':paramCase(g),'camelCaseName':camelCase(g),'url':h,'layout':b['layout']||D(0x145),'templatePath':j,'templateName':pascalCase(g),'client':d[D(0x138)][D(0x134)],'newForm':![],'withTranslations':d[D(0x129)][D(0x12c)]};f&&(k['layout']=D(0x10c));let l,m;if(d[D(0x138)][D(0x134)]==='react'){if(d[D(0x138)]['ssr']===D(0x155)){const r=this['fsi'][D(0x157)]({'pathParts':[D(0x132),D(0x11e),D(0x128),D(0x11f)]});l=this[D(0x118)][D(0x147)]({'pathParts':[r],'config':d});}else{const s=this[D(0x118)][D(0x157)]({'pathParts':[D(0x132),'startup',D(0x134),'routes.js']});l=this[D(0x118)][D(0x147)]({'pathParts':[s],'config':d});}const n=await this['fsi'][D(0x137)](l,g);if(n){Log[D(0x116)](D(0x10e)+g+D(0x142));return;}else{const t=this[D(0x118)]['pathFromProject'](l);Log[D(0x14e)](D(0x130)+g+D(0x102)+l['replace'](t,''));}const o=this[D(0x118)]['readFileLines'](l)[D(0x152)]((u,v)=>{const E=D;return u[E(0x127)](E(0x148))?v+0x1:null;})[D(0x158)](u=>u!==null);let p=this[D(0x118)]['readFileLines'](l)[D(0x152)]((u,v)=>{const F=D;return u[F(0x127)](F(0x14d))?v+0x1:null;})['filter'](u=>u!==null),q=this[D(0x118)][D(0x12a)](l)[D(0x152)]((u,v)=>{const G=D;return u[G(0x127)](G(0x11c))?v+0x1:null;})[D(0x158)](u=>u!==null);p['length']>0x0&&q['length']>0x0&&(k[D(0x111)]=!![]);m=this[D(0x118)][D(0x135)]({'srcPath':D(0x13a),'framework':D(0x121),'context':k,'config':d});if(p['length']>0x0||q['length']>0x0){this[D(0x118)][D(0x153)]({'filePath':l,'content':m,'lineNumber':o[0x0]});if(f&&q[D(0x141)]>0x0)q=this[D(0x118)]['readFileLines'](l)['map']((u,v)=>{const H=D;return u[H(0x127)]('const\x20privateRoutes\x20=\x20(<>')?v+0x1:null;})[D(0x158)](u=>u!==null),this[D(0x118)][D(0x153)]({'filePath':l,'content':'\x09{'+k[D(0x10a)]+'}','lineNumber':q[0x0]});else p[D(0x141)]>0x0?(p=this[D(0x118)][D(0x12a)](l)[D(0x152)]((u,v)=>{const I=D;return u['includes'](I(0x14d))?v+0x1:null;})['filter'](u=>u!==null),this[D(0x118)][D(0x153)]({'filePath':l,'content':'\x09{'+k[D(0x10a)]+'}','lineNumber':p[0x0]})):Log[D(0x116)](D(0x12d)+l);}else{const u=this[D(0x118)]['readFileLines'](l)[D(0x152)](x=>{const J=D;return x[J(0x127)](J(0x113));}),v=u['indexOf'](!![])>-0x1,w=v?D(0x150):D(0x156);await this[D(0x118)][D(0x12e)]({'filePath':l,'content':'\x0a\x09\x09'+m+D(0x117),'begin':D(0x11d),'end':w});}}else{if(d[D(0x138)][D(0x134)]==='vanilla'){const x=this[D(0x118)]['pathFromApp']({'pathParts':['imports',D(0x11e),D(0x134),'routes.js']});l=this[D(0x118)][D(0x147)]({'pathParts':[x],'config':d}),m=this[D(0x118)][D(0x135)]({'srcPath':D(0x13a),'context':k}),await this['fsi']['injectAtEndOfFile']({'filePath':l,'content':'\x0a'+m});}}});}catch(f){Log[C(0x105)](f);}});
@@ -1 +1 @@
1
- function a133d(a,b){const c=a133c();return a133d=function(d,e){d=d-0x1d8;let f=c[d];return f;},a133d(a,b);}const a133l=a133d;(function(a,b){const j=a133d,c=a();while(!![]){try{const d=parseInt(j(0x1e5))/0x1+-parseInt(j(0x1e8))/0x2*(-parseInt(j(0x1ed))/0x3)+parseInt(j(0x1e1))/0x4*(parseInt(j(0x1fb))/0x5)+parseInt(j(0x1f2))/0x6*(-parseInt(j(0x1ec))/0x7)+parseInt(j(0x200))/0x8*(parseInt(j(0x1e9))/0x9)+parseInt(j(0x1e4))/0xa*(-parseInt(j(0x1d8))/0xb)+parseInt(j(0x1da))/0xc*(-parseInt(j(0x1f8))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a133c,0xda448));const a133b=(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;};}()),a133a=a133b(this,function(){const k=a133d;return a133a[k(0x1fc)]()[k(0x1ea)](k(0x1f6))[k(0x1fc)]()[k(0x1f5)](a133a)[k(0x1ea)]('(((.+)+)+)+$');});a133a();import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a133c(){const o=['1308gtZaId','svc','winston','winston\x20setimmediate','checkNpmPackage','error','template','260012MDmBzH','getMakaProjectConfig','installNpmPackage','42260vmPmVa','1534490SJbxEX','tsx','startup','327922AdDDwH','1578141jdjGvR','search','logger','7GYCpZP','15rEFzZL','fsi','Generate\x20a\x20service\x20to\x20run\x20within\x20your\x20meteor\x20application.','Installing\x20winston','create','3715194QIobZZ','resourceName','service/logger/logger.js','constructor','(((.+)+)+)+$','services','94887oOhEWK','engines','maka\x20g:svc\x20service-logger\x20--type=logger','95jfocwS','toString','maka\x20{generate,\x20g}:{service}\x20<resource-name>','withValue','type','16kRmCiN','4246EhrCGA','pathFromApp'];a133c=function(){return o;};return a133c();}Generator[a133l(0x1f1)]({'name':'service','aliases':[a133l(0x1db)],'usage':a133l(0x1fd),'shortDesc':a133l(0x1ef),'requiredOpts':[{'name':a133l(0x1ff),'values':['logger']}],'validOpts':[],'maxArgLength':0x1,'examples':[a133l(0x1fa)]},async function(a,b){const m=a133l;try{const c=this[m(0x1ee)][m(0x1e2)]();await this[m(0x1ee)][m(0x1fe)](c,async()=>{const n=m,d=this[n(0x1ee)][n(0x1d9)]({}),f=paramCase(b[n(0x1f3)]),g={'name':pascalCase(b[n(0x1f3)]),'fileName':f,'camelCase':camelCase(b[n(0x1f3)]),'type':b[n(0x1ff)],'engine':c[n(0x1f9)]['js'],'noRename':!![]};let h='js';c[n(0x1f9)]['js']===n(0x1e6)&&(h='ts');if(b[n(0x1ff)]===n(0x1eb)){!this['fsi'][n(0x1de)](n(0x1dc))&&await this[n(0x1ee)][n(0x1e3)](n(0x1dd),{'cwd':d,'msg':n(0x1f0)});const i=this[n(0x1ee)][n(0x1d9)]({'pathParts':['imports',n(0x1e7),'lib',n(0x1f7),f+'.'+h]});await this['fsi'][n(0x1e0)]({'srcPath':n(0x1f4),'destPath':i,'context':g,'config':c});}});}catch(d){Log[m(0x1df)](d);}});
1
+ const a133m=a133d;function a133d(a,b){const c=a133c();return a133d=function(d,e){d=d-0xd8;let f=c[d];return f;},a133d(a,b);}(function(a,b){const j=a133d,c=a();while(!![]){try{const d=-parseInt(j(0xde))/0x1*(-parseInt(j(0xf6))/0x2)+parseInt(j(0xe7))/0x3*(-parseInt(j(0xdb))/0x4)+parseInt(j(0xf7))/0x5*(-parseInt(j(0xe1))/0x6)+-parseInt(j(0xf5))/0x7+parseInt(j(0xdc))/0x8*(parseInt(j(0xea))/0x9)+parseInt(j(0xe4))/0xa+parseInt(j(0xd8))/0xb*(parseInt(j(0xf0))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a133c,0xd264f));const a133b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a133d;if(c){const e=c[k(0xe5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a133a=a133b(this,function(){const l=a133d;return a133a[l(0xf2)]()[l(0xf3)](l(0xf8))[l(0xf2)]()[l(0xdd)](a133a)[l(0xf3)](l(0xf8));});a133a();function a133c(){const p=['checkNpmPackage','maka\x20g:svc\x20service-logger\x20--type=logger','type','resourceName','winston\x20setimmediate','5426328cNCIyO','getMakaProjectConfig','toString','search','error','5027323uuZovO','1039938zYibDM','7643885qyNLan','(((.+)+)+)+$','Installing\x20winston','installNpmPackage','logger','service','33gKOEDY','pathFromApp','fsi','103904aEABKC','159584MmvveR','constructor','1AmsSaD','maka\x20{generate,\x20g}:{service}\x20<resource-name>','startup','6SVQvFX','engines','services','12303260OGnsyr','apply','imports','9JmPQdm','service/logger/logger.js','tsx','36BsWMjk'];a133c=function(){return p;};return a133c();}import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator['create']({'name':a133m(0xfc),'aliases':['svc'],'usage':a133m(0xdf),'shortDesc':'Generate\x20a\x20service\x20to\x20run\x20within\x20your\x20meteor\x20application.','requiredOpts':[{'name':a133m(0xed),'values':[a133m(0xfb)]}],'validOpts':[],'maxArgLength':0x1,'examples':[a133m(0xec)]},async function(a,b){const n=a133m;try{const c=this[n(0xda)][n(0xf1)]();await this['fsi']['withValue'](c,async()=>{const o=n,d=this[o(0xda)][o(0xd9)]({}),f=paramCase(b[o(0xee)]),g={'name':pascalCase(b['resourceName']),'fileName':f,'camelCase':camelCase(b[o(0xee)]),'type':b[o(0xed)],'engine':c[o(0xe2)]['js'],'noRename':!![]};let h='js';c[o(0xe2)]['js']===o(0xe9)&&(h='ts');if(b[o(0xed)]==='logger'){!this[o(0xda)][o(0xeb)]('winston')&&await this[o(0xda)][o(0xfa)](o(0xef),{'cwd':d,'msg':o(0xf9)});const i=this[o(0xda)][o(0xd9)]({'pathParts':[o(0xe6),o(0xe0),'lib',o(0xe3),f+'.'+h]});await this['fsi']['template']({'srcPath':o(0xe8),'destPath':i,'context':g,'config':c});}});}catch(d){Log[n(0xf4)](d);}});
@@ -1 +1 @@
1
- (function(a,b){var f=a134d,c=a();while(!![]){try{var d=-parseInt(f(0x12d))/0x1*(-parseInt(f(0x121))/0x2)+parseInt(f(0x12f))/0x3*(parseInt(f(0x126))/0x4)+-parseInt(f(0x129))/0x5*(-parseInt(f(0x124))/0x6)+-parseInt(f(0x123))/0x7+-parseInt(f(0x122))/0x8+parseInt(f(0x125))/0x9+-parseInt(f(0x128))/0xa*(-parseInt(f(0x12b))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a134c,0x338e1));var a134b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a134a=a134b(this,function(){var g=a134d;return a134a[g(0x12c)]()[g(0x12e)](g(0x127))['toString']()[g(0x12a)](a134a)['search'](g(0x127));});a134a();import'./translation.js';function a134c(){var h=['toString','31521cAgeUH','search','84717tgcIBR','2cSRhcK','1346664VRaOnJ','2779133zsExNz','6zlqaDd','1868814rmLaBU','4XCSCBH','(((.+)+)+)+$','2469770FVwLAk','75805Tfjenq','constructor','22AnHYRw'];a134c=function(){return h;};return a134c();}function a134d(a,b){var c=a134c();return a134d=function(d,e){d=d-0x121;var f=c[d];return f;},a134d(a,b);}import'./openssl.js';
1
+ function a134d(a,b){var c=a134c();return a134d=function(d,e){d=d-0x1f3;var f=c[d];return f;},a134d(a,b);}(function(a,b){var f=a134d,c=a();while(!![]){try{var d=-parseInt(f(0x201))/0x1+-parseInt(f(0x1ff))/0x2*(parseInt(f(0x1f8))/0x3)+-parseInt(f(0x1fe))/0x4*(-parseInt(f(0x200))/0x5)+parseInt(f(0x1f4))/0x6+-parseInt(f(0x1fd))/0x7*(parseInt(f(0x1fb))/0x8)+-parseInt(f(0x1f6))/0x9+-parseInt(f(0x1f3))/0xa*(-parseInt(f(0x1f9))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a134c,0x75e5a));function a134c(){var h=['152600uBUSsU','constructor','77YHKjZJ','4qMVEdu','8288qElhae','3100510PsNdBH','729882MbJWkV','1120WiOavH','1102992MjkIcg','toString','2205585AJUFcQ','search','45HQaQLr','90937qKWTPJ','(((.+)+)+)+$'];a134c=function(){return h;};return a134c();}var a134b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a134a=a134b(this,function(){var g=a134d;return a134a[g(0x1f5)]()[g(0x1f7)](g(0x1fa))[g(0x1f5)]()[g(0x1fc)](a134a)[g(0x1f7)](g(0x1fa));});a134a();import'./translation.js';import'./openssl.js';
@@ -1 +1 @@
1
- const a135k=a135d;(function(a,b){const i=a135d,c=a();while(!![]){try{const d=-parseInt(i(0x178))/0x1*(parseInt(i(0x17e))/0x2)+-parseInt(i(0x183))/0x3+parseInt(i(0x175))/0x4+parseInt(i(0x179))/0x5+-parseInt(i(0x182))/0x6*(parseInt(i(0x176))/0x7)+-parseInt(i(0x185))/0x8+parseInt(i(0x18b))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a135c,0xad19a));const a135b=(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;};}()),a135a=a135b(this,function(){const j=a135d;return a135a['toString']()[j(0x17c)]('(((.+)+)+)+$')[j(0x180)]()['constructor'](a135a)[j(0x17c)](j(0x17b));});a135a();import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';function a135c(){const n=['getAppConfigPath','toString','join','6xeIVgy','3998304hNgQcC','openssl/openssl.conf','3426960DTyGGJ','service','fsi','getGlobalConfig','error','create','35903790oDahRU','sslconfig','env','157136SKlOCS','2826747gElzSq','openssl.conf','699650DQsrvG','1223415AEpAXg','withValue','(((.+)+)+)+$','search','appName','4eAxSxJ'];a135c=function(){return n;};return a135c();}function a135d(a,b){const c=a135c();return a135d=function(d,e){d=d-0x173;let f=c[d];return f;},a135d(a,b);}import a135e from'path';Generator[a135k(0x18a)]({'name':a135k(0x173),'usage':'maka\x20{generate,\x20g}:sslconfig','shortDesc':'Generate\x20a\x20new\x20openssl\x20config\x20file','noNeedResource':!![],'requiredOpts':[a135k(0x174)],'examples':['maka\x20g:sslconfig\x20--env\x20dev'],'validOpts':[]},async function(a,b){const l=a135k;try{const c=await this[l(0x187)]['getMakaProjectConfig'](),d=await this[l(0x187)][l(0x188)](),f=this[l(0x187)][l(0x17f)](b[l(0x174)]),g=a135e[l(0x181)](f,'_keys',l(0x177));await this[l(0x187)][l(0x17a)](c,async()=>{const m=l,h={'app':d[m(0x17d)],'noRename':!![]};await this[m(0x187)]['template']({'srcPath':m(0x184),'destPath':g,'framework':m(0x186),'context':h,'config':c});});}catch(h){Log[l(0x189)](h);}});
1
+ function a135d(a,b){const c=a135c();return a135d=function(d,e){d=d-0xd2;let f=c[d];return f;},a135d(a,b);}const a135l=a135d;(function(a,b){const i=a135d,c=a();while(!![]){try{const d=-parseInt(i(0xe9))/0x1+parseInt(i(0xf0))/0x2*(-parseInt(i(0xf1))/0x3)+parseInt(i(0xe4))/0x4+-parseInt(i(0xe2))/0x5*(parseInt(i(0xe8))/0x6)+parseInt(i(0xde))/0x7*(-parseInt(i(0xef))/0x8)+-parseInt(i(0xd6))/0x9+-parseInt(i(0xe6))/0xa*(-parseInt(i(0xe7))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a135c,0xa2691));const a135b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a135d;if(c){const e=c[j(0xdf)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a135a=a135b(this,function(){const k=a135d;return a135a['toString']()[k(0xea)]('(((.+)+)+)+$')[k(0xeb)]()[k(0xd9)](a135a)[k(0xea)](k(0xd5));});a135a();function a135c(){const o=['error','getAppConfigPath','(((.+)+)+)+$','825993rlJIaz','fsi','withValue','constructor','appName','Generate\x20a\x20new\x20openssl\x20config\x20file','openssl.conf','getGlobalConfig','1024534OKKGcw','apply','template','_keys','397150itWtxR','create','1384992SruYFc','sslconfig','290iGPdFi','1033153MGaOdW','30LinCfF','279163GNbyNg','search','toString','service','getMakaProjectConfig','env','64DmrbyM','46JlNAzR','60756TDLZHW','maka\x20g:sslconfig\x20--env\x20dev'];a135c=function(){return o;};return a135c();}import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';import a135e from'path';Generator[a135l(0xe3)]({'name':a135l(0xe5),'usage':'maka\x20{generate,\x20g}:sslconfig','shortDesc':a135l(0xdb),'noNeedResource':!![],'requiredOpts':[a135l(0xee)],'examples':[a135l(0xd2)],'validOpts':[]},async function(a,b){const m=a135l;try{const c=await this['fsi'][m(0xed)](),d=await this['fsi'][m(0xdd)](),f=this[m(0xd7)][m(0xd4)](b[m(0xee)]),g=a135e['join'](f,m(0xe1),m(0xdc));await this['fsi'][m(0xd8)](c,async()=>{const n=m,h={'app':d[n(0xda)],'noRename':!![]};await this[n(0xd7)][n(0xe0)]({'srcPath':'openssl/openssl.conf','destPath':g,'framework':n(0xec),'context':h,'config':c});});}catch(h){Log[m(0xd3)](h);}});
@@ -1 +1 @@
1
- function a136c(){const D=['74965WMuqTg','import\x20\x27../lib/services/translations/i18n\x27;\x0a','engines','toString','Verifying\x20npm\x20package\x20requirements:\x20i18next\x20...','78MIEdza','imports','grep','maka\x20{generate,\x20g}:translation','i18n/i18n.js','template','3230480zMhjdZ','158455WcxBYH','Locale\x20already\x20exported:\x20','index.js','root','translation','true','i18n/locales.js','startup','lib','760648mYCNqL','lang','9uUDANU','warn','298672RLyNAp','create','(((.+)+)+)+$','locales','266924ntXVPX','pathFromApp','server','findAppDirectory','error','maka\x20g:translation\x20--lang=de','getGlobalConfig','maka\x20g:translation\x20--lang=en\x20(default)','injectAtEndOfFile','default\x20as\x20','.js','withValue','isFile','fsi','search','translations','exit','export\x20{\x20default\x20as\x20','maka\x20g:translation\x20--lang=fr','client','checkNpmPackage','index.','337452BLLyPV','apply','i18next\x20i18next-browser-languagedetector\x20react-i18next','getMakaProjectConfig','service','services','rewriteDestinationPathForEngine','readFileSync','Locale\x20already\x20defined:\x20','constructor','Generate\x20a\x20new\x20locale\x20translation','\x20}\x20from\x20\x27./'];a136c=function(){return D;};return a136c();}const a136A=a136d;function a136d(a,b){const c=a136c();return a136d=function(d,e){d=d-0x1b8;let f=c[d];return f;},a136d(a,b);}(function(a,b){const x=a136d,c=a();while(!![]){try{const d=parseInt(x(0x1d1))/0x1+parseInt(x(0x1e2))/0x2+-parseInt(x(0x1b9))/0x3+parseInt(x(0x1de))/0x4+-parseInt(x(0x1c5))/0x5*(-parseInt(x(0x1ca))/0x6)+parseInt(x(0x1da))/0x7+parseInt(x(0x1d0))/0x8*(-parseInt(x(0x1dc))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a136c,0x25908));const a136b=(function(){let a=!![];return function(b,c){const d=a?function(){const y=a136d;if(c){const e=c[y(0x1ba)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a136a=a136b(this,function(){const z=a136d;return a136a[z(0x1c8)]()[z(0x1f0)](z(0x1e0))[z(0x1c8)]()[z(0x1c2)](a136a)[z(0x1f0)](z(0x1e0));});a136a();import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';import a136e from'fs';Generator[a136A(0x1df)]({'name':a136A(0x1d5),'usage':a136A(0x1cd),'aliases':['t'],'noNeedResource':!![],'requiredOpts':[{'name':'lang','boolFlag':![],'regex':/^[a-z]{2}$/}],'shortDesc':a136A(0x1c3),'description':'\x0a\x20\x20Generate\x20a\x20new\x20locale\x20translation\x20file.\x0a\x0a\x20\x20\x20\x20--lang\x20\x20The\x20language\x20code\x20for\x20the\x20new\x20locale\x20file.\x20(i.e.\x20en,\x20fr,\x20de)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20and\x20must\x20be\x20the\x20two\x20character\x20language\x20code.\x0a\x20\x20','examples':[a136A(0x1e9),a136A(0x1f4),a136A(0x1e7)],'validOpts':[]},async function(a,b){const B=a136A;try{const c=this[B(0x1ef)][B(0x1bc)](),d=this['fsi'][B(0x1e8)](),f=this[B(0x1ef)][B(0x1e5)]();await this[B(0x1ef)][B(0x1ed)](c,async()=>{const C=B;try{!b[C(0x1db)]&&(b[C(0x1db)]='en');!b[C(0x1d4)]&&!this['fsi'][C(0x1f6)]('i18next')&&(Log[C(0x1dd)](C(0x1c9)),this['fsi']['installNpmPackage'](C(0x1bb),{'cwd':f}),this[C(0x1ef)]['setProjectConfig']('features.withTranslations',!![]));const g=this[C(0x1ef)][C(0x1e3)]({'pathParts':['imports',C(0x1d8),C(0x1f5),C(0x1d3)]}),h=this[C(0x1ef)][C(0x1bf)]({'pathParts':[g],'config':c}),i=this[C(0x1ef)]['grep'](a136e[C(0x1c0)](h)['toString'](),'import\x20\x27../lib/services/translations/i18n\x27;')[0x0]&&!![];if(c['engines']['ssr']===C(0x1d6)){!i&&this['fsi']['injectAtBeginningOfFile']({'filePath':h,'content':C(0x1c6)});const t=this[C(0x1ef)]['pathFromApp']({'pathParts':['imports',C(0x1d8),C(0x1e4),C(0x1d3)]}),u=this[C(0x1ef)][C(0x1bf)]({'pathParts':[t],'config':c}),v=this[C(0x1ef)][C(0x1cc)](a136e['readFileSync'](u)['toString'](),'import\x20\x27../lib/services/translations/i18n\x27;')[0x0]&&!![];!v&&this[C(0x1ef)]['injectAtBeginningOfFile']({'filePath':u,'content':'import\x20\x27../lib/services/translations/i18n\x27;\x0a'});}else!i&&this[C(0x1ef)]['injectAtBeginningOfFile']({'filePath':h,'content':C(0x1c6)});const j={'app':d['appName'],'config':c},k=this[C(0x1ef)]['pathFromApp']({'pathParts':[C(0x1cb),C(0x1d8),C(0x1d9),C(0x1be),C(0x1f1),'i18n.js']}),l=this[C(0x1ef)][C(0x1ee)](this[C(0x1ef)][C(0x1bf)]({'pathParts':[k],'config':c}));!l&&await this[C(0x1ef)][C(0x1cf)]({'srcPath':C(0x1ce),'destPath':k,'framework':C(0x1bd),'context':j,'config':c});const m=this[C(0x1ef)][C(0x1e3)]({'pathParts':['imports',C(0x1d8),C(0x1d9),C(0x1be),C(0x1f1),C(0x1e1),b[C(0x1db)]+C(0x1ec)]}),n=this[C(0x1ef)][C(0x1bf)]({'pathParts':[m],'config':c}),o=this[C(0x1ef)][C(0x1ee)](n);!o?await this['fsi'][C(0x1cf)]({'srcPath':C(0x1d7),'destPath':m,'framework':'service','context':j,'config':c}):Log[C(0x1dd)](C(0x1c1)+n);const p=this['fsi'][C(0x1e3)]({'pathParts':['imports',C(0x1d8),'lib','services',C(0x1f1),'locales',C(0x1b8)+c[C(0x1c7)]['js']]}),q=this[C(0x1ef)][C(0x1bf)]({'pathParts':[p],'config':c}),r=this['fsi'][C(0x1ee)](q);!r&&await this[C(0x1ef)][C(0x1cf)]({'srcPath':'i18n/index.js','destPath':p,'framework':C(0x1bd),'context':j,'config':c});const s=this[C(0x1ef)][C(0x1cc)](a136e[C(0x1c0)](p)['toString'](),C(0x1eb)+b[C(0x1db)])[0x0]&&!![];!s?await this['fsi'][C(0x1ea)]({'filePath':p,'content':C(0x1f3)+b[C(0x1db)]+C(0x1c4)+b[C(0x1db)]+'\x27;'}):Log[C(0x1dd)](C(0x1d2)+p);}catch(w){Log[C(0x1e6)](w),process[C(0x1f2)](0x1);}});}catch(g){Log[B(0x1e6)](g),process['exit'](0x1);}});
1
+ const a136A=a136d;function a136d(a,b){const c=a136c();return a136d=function(d,e){d=d-0x9d;let f=c[d];return f;},a136d(a,b);}(function(a,b){const x=a136d,c=a();while(!![]){try{const d=-parseInt(x(0xba))/0x1+-parseInt(x(0xb8))/0x2+parseInt(x(0xc0))/0x3+parseInt(x(0xce))/0x4+parseInt(x(0xa3))/0x5+parseInt(x(0xcf))/0x6+parseInt(x(0xaf))/0x7;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a136c,0xf2f79));const a136b=(function(){let a=!![];return function(b,c){const d=a?function(){const y=a136d;if(c){const e=c[y(0xc7)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a136a=a136b(this,function(){const z=a136d;return a136a['toString']()[z(0xc9)](z(0xbb))[z(0xbf)]()['constructor'](a136a)[z(0xc9)](z(0xbb));});a136a();function a136c(){const D=['1018824ESagOs','fsi','withValue','injectAtBeginningOfFile','translation','pathFromApp','services','ssr','translations','i18n/locales.js','appName','maka\x20g:translation\x20--lang=en\x20(default)','export\x20{\x20default\x20as\x20','i18next\x20i18next-browser-languagedetector\x20react-i18next','rewriteDestinationPathForEngine','engines','i18next','5948685QbxiWy','index.js','server','root','setProjectConfig','maka\x20{generate,\x20g}:translation','i18n.js','warn','true','import\x20\x27../lib/services/translations/i18n\x27;','Locale\x20already\x20defined:\x20','.js','14555198eqWgZk','maka\x20g:translation\x20--lang=fr','template','lib','i18n/i18n.js','error','getGlobalConfig','create','lang','3058130zeSQOZ','import\x20\x27../lib/services/translations/i18n\x27;\x0a','1357812cTaYbw','(((.+)+)+)+$','isFile','\x0a\x20\x20Generate\x20a\x20new\x20locale\x20translation\x20file.\x0a\x0a\x20\x20\x20\x20--lang\x20\x20The\x20language\x20code\x20for\x20the\x20new\x20locale\x20file.\x20(i.e.\x20en,\x20fr,\x20de)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20and\x20must\x20be\x20the\x20two\x20character\x20language\x20code.\x0a\x20\x20','imports','toString','655122eksccY','exit','service','findAppDirectory','index.','i18n/index.js','Generate\x20a\x20new\x20locale\x20translation','apply','locales','search','grep','injectAtEndOfFile','readFileSync','startup','899364KvmAgX'];a136c=function(){return D;};return a136c();}import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';import a136e from'fs';Generator[a136A(0xb6)]({'name':a136A(0xd3),'usage':a136A(0xa8),'aliases':['t'],'noNeedResource':!![],'requiredOpts':[{'name':a136A(0xb7),'boolFlag':![],'regex':/^[a-z]{2}$/}],'shortDesc':a136A(0xc6),'description':a136A(0xbd),'examples':[a136A(0x9d),a136A(0xb0),'maka\x20g:translation\x20--lang=de'],'validOpts':[]},async function(a,b){const B=a136A;try{const c=this[B(0xd0)]['getMakaProjectConfig'](),d=this[B(0xd0)][B(0xb5)](),f=this['fsi'][B(0xc3)]();await this[B(0xd0)][B(0xd1)](c,async()=>{const C=B;try{!b[C(0xb7)]&&(b['lang']='en');!b[C(0xa6)]&&!this[C(0xd0)]['checkNpmPackage'](C(0xa2))&&(Log['warn']('Verifying\x20npm\x20package\x20requirements:\x20i18next\x20...'),this['fsi']['installNpmPackage'](C(0x9f),{'cwd':f}),this['fsi'][C(0xa7)]('features.withTranslations',!![]));const g=this[C(0xd0)]['pathFromApp']({'pathParts':[C(0xbe),C(0xcd),'client',C(0xa4)]}),h=this[C(0xd0)][C(0xa0)]({'pathParts':[g],'config':c}),i=this['fsi'][C(0xca)](a136e[C(0xcc)](h)['toString'](),C(0xac))[0x0]&&!![];if(c[C(0xa1)][C(0xd6)]===C(0xab)){!i&&this[C(0xd0)][C(0xd2)]({'filePath':h,'content':C(0xb9)});const t=this['fsi'][C(0xd4)]({'pathParts':[C(0xbe),'startup',C(0xa5),C(0xa4)]}),u=this[C(0xd0)][C(0xa0)]({'pathParts':[t],'config':c}),v=this['fsi'][C(0xca)](a136e['readFileSync'](u)[C(0xbf)](),'import\x20\x27../lib/services/translations/i18n\x27;')[0x0]&&!![];!v&&this[C(0xd0)][C(0xd2)]({'filePath':u,'content':'import\x20\x27../lib/services/translations/i18n\x27;\x0a'});}else!i&&this[C(0xd0)][C(0xd2)]({'filePath':h,'content':'import\x20\x27../lib/services/translations/i18n\x27;\x0a'});const j={'app':d[C(0xd9)],'config':c},k=this['fsi'][C(0xd4)]({'pathParts':[C(0xbe),'startup',C(0xb2),C(0xd5),C(0xd7),C(0xa9)]}),l=this[C(0xd0)][C(0xbc)](this[C(0xd0)][C(0xa0)]({'pathParts':[k],'config':c}));!l&&await this[C(0xd0)][C(0xb1)]({'srcPath':C(0xb3),'destPath':k,'framework':C(0xc2),'context':j,'config':c});const m=this['fsi'][C(0xd4)]({'pathParts':['imports',C(0xcd),C(0xb2),C(0xd5),C(0xd7),C(0xc8),b[C(0xb7)]+C(0xae)]}),n=this[C(0xd0)]['rewriteDestinationPathForEngine']({'pathParts':[m],'config':c}),o=this[C(0xd0)][C(0xbc)](n);!o?await this[C(0xd0)][C(0xb1)]({'srcPath':C(0xd8),'destPath':m,'framework':C(0xc2),'context':j,'config':c}):Log['warn'](C(0xad)+n);const p=this[C(0xd0)][C(0xd4)]({'pathParts':[C(0xbe),C(0xcd),C(0xb2),C(0xd5),C(0xd7),'locales',C(0xc4)+c[C(0xa1)]['js']]}),q=this[C(0xd0)]['rewriteDestinationPathForEngine']({'pathParts':[p],'config':c}),r=this[C(0xd0)][C(0xbc)](q);!r&&await this['fsi'][C(0xb1)]({'srcPath':C(0xc5),'destPath':p,'framework':'service','context':j,'config':c});const s=this[C(0xd0)]['grep'](a136e[C(0xcc)](p)[C(0xbf)](),'default\x20as\x20'+b[C(0xb7)])[0x0]&&!![];!s?await this['fsi'][C(0xcb)]({'filePath':p,'content':C(0x9e)+b[C(0xb7)]+'\x20}\x20from\x20\x27./'+b[C(0xb7)]+'\x27;'}):Log[C(0xaa)]('Locale\x20already\x20exported:\x20'+p);}catch(w){Log[C(0xb4)](w),process[C(0xc1)](0x1);}});}catch(g){Log[B(0xb4)](g),process[B(0xc1)](0x1);}});
@@ -1 +1 @@
1
- function a137c(){const m=['env','471207simkml','TOOL_NODE_FLAGS','4550130zKgDSn','970886FxCeQW','stringify','5866254BNFuOr','620BrAwni','toString','dirname','--max-old-space-size=','416727kSMjgc','camelizeKeys','5ooVIYQ','floor','parse','MAKA_COMMAND_PATH','argv','BROWSERSLIST_IGNORE_OLD_DATA','(((.+)+)+)+$','863398auFdFU','24AymbaF','1ELlcju','constructor','totalmem','825036mSqMXG','search'];a137c=function(){return m;};return a137c();}const a137l=a137d;(function(a,b){const j=a137d,c=a();while(!![]){try{const d=-parseInt(j(0x128))/0x1*(parseInt(j(0x126))/0x2)+-parseInt(j(0x138))/0x3+-parseInt(j(0x12b))/0x4*(-parseInt(j(0x13a))/0x5)+-parseInt(j(0x130))/0x6+-parseInt(j(0x131))/0x7*(parseInt(j(0x127))/0x8)+-parseInt(j(0x133))/0x9+parseInt(j(0x134))/0xa*(parseInt(j(0x12e))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a137c,0x7198a));const a137b=(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;};}()),a137a=a137b(this,function(){const k=a137d;return a137a[k(0x135)]()[k(0x12c)]('(((.+)+)+)+$')['toString']()[k(0x129)](a137a)[k(0x12c)](k(0x125));});a137a();import a137e from'minimist';import a137f from'os';import a137g from'path';import a137h from'humps';import a137i from'./commands/maka.cmd.js';import'./commands/_index.js';import'./generators/_index.js';import{fileURLToPath}from'url';function a137d(a,b){const c=a137c();return a137d=function(d,e){d=d-0x123;let f=c[d];return f;},a137d(a,b);}const __filename=fileURLToPath(import.meta['url']),__dirname=a137g[a137l(0x136)](__filename);global[a137l(0x13d)]=__dirname;const total_memory=a137f[a137l(0x12a)](),total_mem_in_kb=total_memory/0x400;let total_mem_in_mb=total_mem_in_kb/0x400;total_mem_in_mb=Math[a137l(0x13b)](total_mem_in_mb),process[a137l(0x12d)][a137l(0x12f)]=a137l(0x137)+total_mem_in_mb,process[a137l(0x12d)][a137l(0x124)]='1',process[a137l(0x12d)]['NODE_NO_WARNINGS']='1';const argv=a137e(process[a137l(0x123)]['slice'](0x2)),args=argv['_'],deepCopyArgv=JSON[a137l(0x13c)](JSON[a137l(0x132)](argv));delete deepCopyArgv['_'];const opts=a137h[a137l(0x139)](deepCopyArgv);a137i['run'](args,opts);
1
+ const a137m=a137d;(function(a,b){const j=a137d,c=a();while(!![]){try{const d=parseInt(j(0xf9))/0x1+parseInt(j(0xe4))/0x2*(parseInt(j(0xf7))/0x3)+-parseInt(j(0xf4))/0x4+-parseInt(j(0xe7))/0x5*(-parseInt(j(0xea))/0x6)+parseInt(j(0xe1))/0x7+parseInt(j(0xf6))/0x8+-parseInt(j(0xf1))/0x9*(parseInt(j(0xe8))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a137c,0xecbef));const a137b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a137d;if(c){const e=c[k(0xe6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a137a=a137b(this,function(){const l=a137d;return a137a[l(0xeb)]()[l(0xf3)](l(0xe9))[l(0xeb)]()[l(0xe0)](a137a)[l(0xf3)](l(0xe9));});a137a();import a137e from'minimist';import a137f from'os';import a137g from'path';import a137h from'humps';import a137i from'./commands/maka.cmd.js';import'./commands/_index.js';import'./generators/_index.js';import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta[a137m(0xee)]),__dirname=a137g[a137m(0xef)](__filename);function a137d(a,b){const c=a137c();return a137d=function(d,e){d=d-0xe0;let f=c[d];return f;},a137d(a,b);}global[a137m(0xe5)]=__dirname;const total_memory=a137f[a137m(0xed)](),total_mem_in_kb=total_memory/0x400;let total_mem_in_mb=total_mem_in_kb/0x400;total_mem_in_mb=Math['floor'](total_mem_in_mb),process[a137m(0xf8)]['TOOL_NODE_FLAGS']=a137m(0xec)+total_mem_in_mb,process['env'][a137m(0xf5)]='1',process['env']['NODE_NO_WARNINGS']='1';function a137c(){const n=['MAKA_COMMAND_PATH','apply','31695LhwulH','4930zXCxjz','(((.+)+)+)+$','1158dEryds','toString','--max-old-space-size=','totalmem','url','dirname','slice','83493KmEvqV','argv','search','2414012oUIKHp','BROWSERSLIST_IGNORE_OLD_DATA','9636744VQdJtV','9nMdICx','env','1683571dSXCvY','run','constructor','6424754hEUfWo','parse','stringify','744908WULiRo'];a137c=function(){return n;};return a137c();}const argv=a137e(process[a137m(0xf2)][a137m(0xf0)](0x2)),args=argv['_'],deepCopyArgv=JSON[a137m(0xe2)](JSON[a137m(0xe3)](argv));delete deepCopyArgv['_'];const opts=a137h['camelizeKeys'](deepCopyArgv);a137i[a137m(0xfa)](args,opts);
@@ -1,7 +1,7 @@
1
1
  version: "3.7"
2
2
  services:
3
3
  <%= app %>:
4
- image: "<%= appFileCase %>-<%= env %>:latest"
4
+ image: "<%= appFileCase %>:latest"
5
5
  ports:
6
6
  - 80:3000
7
7
  volumes:
@@ -11,7 +11,7 @@ RUN apt-get install -y build-essential libssl-dev
11
11
  ENV NVM_DIR /usr/local/nvm
12
12
  ARG NODE_VERSION
13
13
 
14
- <% if (useCert) {%>COPY /config/docker/_keys/cert.pem .
14
+ <% if (useCert) {%>COPY /cert.pem .
15
15
  ENV CURL_CA_BUNDLE cert.pem
16
16
  ENV NODE_EXTRA_CA_CERTS /cert.pem<% } %>
17
17
 
@@ -1 +1 @@
1
- const a138L=a138d;(function(a,b){const I=a138d,c=a();while(!![]){try{const d=-parseInt(I(0x1cb))/0x1*(parseInt(I(0x216))/0x2)+-parseInt(I(0x1e3))/0x3+parseInt(I(0x1d2))/0x4*(-parseInt(I(0x1ce))/0x5)+parseInt(I(0x1c9))/0x6*(parseInt(I(0x1ec))/0x7)+parseInt(I(0x1cc))/0x8+-parseInt(I(0x1c6))/0x9+-parseInt(I(0x1e8))/0xa*(-parseInt(I(0x200))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a138c,0x4d91c));const a138b=(function(){let a=!![];return function(b,c){const d=a?function(){const J=a138d;if(c){const e=c[J(0x20f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a138a=a138b(this,function(){const K=a138d;return a138a[K(0x20b)]()[K(0x1e7)](K(0x1e9))[K(0x20b)]()[K(0x1e2)](a138a)[K(0x1e7)](K(0x1e9));});a138a();import a138e from'path';import a138f from'os';function a138c(){const a3=['None','\x22,\x20please\x20upgrade\x20to\x20PRO\x20by\x20becoming\x20a\x20pateron\x20@\x20patreon.com/user?u=110174702,\x20then\x20issue:\x20\x27maka\x20login\x27','env','engines','dir','validateMakaProject','existsSync','findProjectDirectory','config','homedir','disableAuthCheck','validateUserIsLoggedIn','isGenerator','getShortName','getPro','indexOf','6380IZQkJn','remapShortToLong','guest','includes','fsi','push','examples','every','resourceName','NIE','Please\x20choose\x20a\x20valid\x20value\x20for\x20','toString','roles','Invalid\x20value\x20for\x20','getMakaProjectConfig','apply','proGenerators','domainLicense','No\x20usage\x20provided.','concat','keys','isPro','1118354PQNsAg','name','length','shortDesc','cwd','charAt','To\x20use\x20this\x20command,\x20\x22','match','map','assign','proCommands','4864059cIBLHK','singleLicense','Please\x20provide\x20a\x20resource\x20name:','246KMLqEL','error','1FTDRAu','4627240YuscyR','isCommand','5XYaepe','win32','You\x20must\x20have\x20','usage','781856qBERXf','user','join','AppData','parent','string','Please\x20provide\x20a\x20value\x20for\x20','Please\x20choose\x20a\x20value\x20for\x20','exit','help','list','validateParams','aliases','docker','validateEngines','ask','constructor','1564803dmnYJP','getAppProjectConfigs','formatToNamedParam','validateMakaSubscription','search','23200IFVxbS','(((.+)+)+)+$','find','root','35924xibvwG','Invalid\x20option:\x20','options','Invalid\x20argument:\x20'];a138c=function(){return a3;};return a138c();}import a138g from'fs';const homeDir=a138f[a138L(0x1f9)]();import{Docker}from'./tools/docker/docker.class.js';import{FSI}from'./tools/fsi/fsi.class.js';import{Log}from'./tools/log/log.class.js';function a138d(a,b){const c=a138c();return a138d=function(d,e){d=d-0x1bc;let f=c[d];return f;},a138d(a,b);}import{Actions}from'./tools/actions/actions.class.js';import{UsageError}from'./error.js';export class Tool{[a138L(0x1df)];['fsi'];['options'];[a138L(0x1bc)];[a138L(0x1d6)];['_handler'];constructor(){const M=a138L;this[M(0x1df)]=new Docker(),this[M(0x204)]=new FSI();}[a138L(0x1fd)](a){const N=a138L;return a[N(0x1c0)](0x0);}[a138L(0x201)](a,b){const O=a138L,c=this['formatToNamedParam'](b),d={...a};for(const e of c){const f=this[O(0x1fd)](e[O(0x1bc)]);a[f]&&(d[e['name']]=a[f],delete d[f]);}return d;}[a138L(0x1e5)](a){const P=a138L;if(a[P(0x207)](b=>typeof b===P(0x1d7)))return a[P(0x1c3)](b=>({'name':b}));return a;}[a138L(0x1c2)](a){const Q=a138L,b=[this[Q(0x1bc)]][Q(0x213)](this[Q(0x1ee)][Q(0x1de)]||[]);return this[Q(0x1d6)]&&b[Q(0x205)](this['parent']),b[Q(0x203)](a);}[a138L(0x1f5)](){const R=a138L,a=this[R(0x204)][R(0x1f7)]();return a!==![]?!![]:![];}async[a138L(0x1fb)](){const S=a138L,a=await this[S(0x204)][S(0x1fe)]();return a?.[S(0x1d3)]&&a?.[S(0x1d3)]!==S(0x202)?!![]:![];}['validateMeteorInstall'](){const T=a138L,a=process['platform']===T(0x1cf);if(a){if(!a138g[T(0x1f6)](a138e[T(0x1d4)](homeDir,T(0x1d5),'Local','.meteor')))return![];}else{if(!a138g[T(0x1f6)](a138e[T(0x1d4)](homeDir,'.meteor')))return![];}return!![];}[a138L(0x1e0)](a){const U=a138L,b=this[U(0x204)][U(0x20e)](),c=b[U(0x1f3)],d=Object['keys'](a);if(d['length']>0x0)for(const e of d){const f=c[e];if(f!==a[e]){Log[U(0x1ca)](U(0x1d0)+e+'\x20version\x20'+a[e]+'\x20installed\x20to\x20use\x20this\x20command.');throw UsageError;}}}async[a138L(0x1dd)](a,b,c){const V=a138L,{requiredOpts:d,validArgs:e,validOpts:f,noNeedResource:g}=c,h=Object[V(0x214)](b);if(h[V(0x203)](V(0x208))&&b[V(0x208)]===undefined&&!g){const m=await Actions['ask'](V(0x1c8));b[V(0x208)]=m;}let i=[],j=b;if(d){i=this['formatToNamedParam'](d),j=this[V(0x201)](b,i);if(i&&i?.[V(0x1bd)]>0x0)for(const n of i){const {name:o,values:p,regex:q}=n;if(!Object['keys'](j)['includes'](o)){if(o==='env'){const r=this[V(0x204)][V(0x1e4)](),s=await Actions[V(0x1ee)]({'type':V(0x1dc),'name':V(0x1f2),'message':'Please\x20choose\x20an\x20environment','choices':r});b[V(0x1f2)]=s[V(0x1f2)];}else{const t=p;if(t){const u=await Actions[V(0x1ee)]({'type':V(0x1dc),'name':o,'message':V(0x1d9)+o,'choices':p});b[o]=u[o];}else{if(q){const v=await Actions[V(0x1e1)](V(0x1d8)+o);if(v['match'](q))b[o]=v;else{Log[V(0x1ca)](V(0x20d)+o+':\x20'+v);throw new UsageError();}}else{const w=await Actions['ask'](V(0x1d8)+o);b[o]=w;}}}}else{const x=j[o];if(p&&!p['includes'](x)){Log[V(0x1ca)](V(0x20d)+o+':\x20'+x);throw new UsageError();}}}}let k=this[V(0x1e5)](f),l=b;if(k&&Object[V(0x214)](k)?.['length']>0x0){k=k[V(0x213)](i||[]),k[V(0x205)]({'name':V(0x208),'hidden':!![]}),k['push']({'name':V(0x1db),'boolFlag':!![]}),k[V(0x205)]({'name':V(0x1f4),'hidden':!![]}),k[V(0x205)]({'name':V(0x1bf),'hidden':!![]}),k[V(0x205)]({'name':V(0x1eb),'hidden':!![]}),k[V(0x205)]({'name':V(0x1f8),'hidden':!![]}),l=this[V(0x201)](b,k);for(const y of k){const {name:z,values:A}=y,B=l[z];if(B!==undefined&&(!A||!A[V(0x203)](B))){const C=A;if(C){const D=await Actions[V(0x1ee)]({'type':'list','name':z,'message':V(0x20a)+z,'choices':A});l[z]=D[z];}}if(k['length']>0x0)for(const E of Object['keys'](l)){const F=k[V(0x1ea)](G=>G['name']===E);if(!F){Log[V(0x1ca)](V(0x1ed)+E);throw new UsageError();}}}}if(e&&e?.[V(0x1bd)]>0x0)for(const G of e){if(!e[V(0x203)](G)){Log['error'](V(0x1ef)+G);const H=await Actions[V(0x1e1)]('Please\x20provide\x20a\x20valid\x20argument\x20for\x20'+G);a[a[V(0x1ff)](G)]=H;}}return Object[V(0x1c4)](j,l);}async[a138L(0x1e6)](a){const W=a138L;try{if(!a)return;const b=await this[W(0x204)][W(0x1fe)]();!b&&(Log[W(0x1ca)]('License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.meteor/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.'),process['exit'](0x1));const c=!b?.['roles']['includes'](W(0x1c7))&&!b?.[W(0x20c)][W(0x203)](W(0x211));if(this[W(0x1cd)](a)){const d=W(0x1c1)+a[W(0x1bc)]+'\x22,\x20please\x20upgrade\x20to\x20PRO\x20by\x20becoming\x20a\x20pateron\x20@\x20patreon.com/user?u=110174702,\x20then\x20issue:\x20\x27maka\x20login\x27';if(a[W(0x1ee)][W(0x1fa)])return;const f=b?.[W(0x1c5)][W(0x203)](a[W(0x1bc)])||b?.[W(0x1c5)][W(0x203)](a[W(0x1d6)]||'')||this[W(0x1ee)][W(0x215)];if(f&&c)throw d;}else{if(this[W(0x1fc)](a)){const g=b?.[W(0x210)]['includes'](a[W(0x1bc)])||b?.[W(0x210)][W(0x203)](a[W(0x1d6)]||'');if(g&&c)throw'To\x20use\x20this\x20generator,\x20\x22'+a[W(0x1bc)]+W(0x1f1);}}}catch(h){Log[W(0x1ca)](h),process[W(0x1da)](0x1);}}[a138L(0x1cd)](a){return'options'in a;}[a138L(0x1fc)](a){const X=a138L;return!(X(0x1ee)in a);}['description'](){const Y=a138L;return this[Y(0x1ee)]['description']||this[Y(0x1ee)]['shortDesc']||'No\x20description\x20provided.';}[a138L(0x1be)](){const Z=a138L;return this['options']['shortDesc']||Z(0x209);}[a138L(0x1d1)](){const a0=a138L;return this['options'][a0(0x1d1)]||a0(0x212);}[a138L(0x206)](){const a1=a138L;return this[a1(0x1ee)][a1(0x206)]||[];}[a138L(0x1de)](){const a2=a138L;return this[a2(0x1ee)]['aliases']||a2(0x1f0);}}
1
+ const a138L=a138d;(function(a,b){const I=a138d,c=a();while(!![]){try{const d=-parseInt(I(0x183))/0x1*(parseInt(I(0x199))/0x2)+parseInt(I(0x158))/0x3+-parseInt(I(0x163))/0x4*(-parseInt(I(0x16f))/0x5)+parseInt(I(0x155))/0x6*(parseInt(I(0x172))/0x7)+-parseInt(I(0x180))/0x8+-parseInt(I(0x175))/0x9+-parseInt(I(0x17c))/0xa*(-parseInt(I(0x19b))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a138c,0x9b3f7));const a138b=(function(){let a=!![];return function(b,c){const d=a?function(){const J=a138d;if(c){const e=c[J(0x150)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a138a=a138b(this,function(){const K=a138d;return a138a[K(0x174)]()[K(0x162)](K(0x1a0))[K(0x174)]()[K(0x173)](a138a)[K(0x162)](K(0x1a0));});a138a();import a138e from'path';import a138f from'os';function a138d(a,b){const c=a138c();return a138d=function(d,e){d=d-0x140;let f=c[d];return f;},a138d(a,b);}import a138g from'fs';const homeDir=a138f[a138L(0x159)]();import{Docker}from'./tools/docker/docker.class.js';function a138c(){const a4=['validateMeteorInstall','669335LLQRRm','domainLicense','getAppProjectConfigs','35YtoDCL','constructor','toString','10987083QASwAx','validateMakaSubscription','charAt','validateMakaProject','existsSync','description','assign','10CtJEkS','isGenerator','isPro','validateUserIsLoggedIn','3541824nChriu','proCommands','resourceName','685729OCgMHd','concat','\x20version\x20','length','list','env','getShortName','keys','.meteor','config','options','proGenerators','root','parent','fsi','Invalid\x20value\x20for\x20','match','usage','platform','Please\x20choose\x20a\x20value\x20for\x20','exit','Please\x20provide\x20a\x20valid\x20argument\x20for\x20','2pEhecs','None','17562127CkvLad','formatToNamedParam','remapShortToLong','roles','cwd','(((.+)+)+)+$','aliases','Please\x20choose\x20an\x20environment','ask','join','help','guest','No\x20usage\x20provided.','error','engines','singleLicense','Please\x20choose\x20a\x20valid\x20value\x20for\x20','win32','You\x20must\x20have\x20','isCommand','findProjectDirectory','name','apply','AppData','NIE','docker','dir','1176594ZAsGgX','No\x20description\x20provided.','indexOf','822660ttEjvt','homedir','Local','_handler','Please\x20provide\x20a\x20value\x20for\x20','string','every','push','examples','user','search','4UomZcf','To\x20use\x20this\x20generator,\x20\x22','disableAuthCheck','\x20installed\x20to\x20use\x20this\x20command.','getPro','Please\x20provide\x20a\x20resource\x20name:','find','includes','To\x20use\x20this\x20command,\x20\x22','Invalid\x20option:\x20','shortDesc'];a138c=function(){return a4;};return a138c();}import{FSI}from'./tools/fsi/fsi.class.js';import{Log}from'./tools/log/log.class.js';import{Actions}from'./tools/actions/actions.class.js';import{UsageError}from'./error.js';export class Tool{[a138L(0x153)];['fsi'];[a138L(0x18d)];[a138L(0x14f)];[a138L(0x190)];[a138L(0x15b)];constructor(){const M=a138L;this[M(0x153)]=new Docker(),this['fsi']=new FSI();}[a138L(0x189)](a){const N=a138L;return a[N(0x177)](0x0);}['remapShortToLong'](a,b){const O=a138L,c=this[O(0x19c)](b),d={...a};for(const e of c){const f=this[O(0x189)](e['name']);a[f]&&(d[e[O(0x14f)]]=a[f],delete d[f]);}return d;}['formatToNamedParam'](a){const P=a138L;if(a[P(0x15e)](b=>typeof b===P(0x15d)))return a['map'](b=>({'name':b}));return a;}[a138L(0x193)](a){const Q=a138L,b=[this[Q(0x14f)]][Q(0x184)](this[Q(0x18d)]['aliases']||[]);return this[Q(0x190)]&&b[Q(0x15f)](this[Q(0x190)]),b['includes'](a);}[a138L(0x178)](){const R=a138L,a=this[R(0x191)][R(0x14e)]();return a!==![]?!![]:![];}async[a138L(0x17f)](){const S=a138L,a=await this[S(0x191)][S(0x167)]();return a?.[S(0x161)]&&a?.['user']!==S(0x145)?!![]:![];}[a138L(0x16e)](){const T=a138L,a=process[T(0x195)]===T(0x14b);if(a){if(!a138g[T(0x179)](a138e[T(0x143)](homeDir,T(0x151),T(0x15a),'.meteor')))return![];}else{if(!a138g[T(0x179)](a138e['join'](homeDir,T(0x18b))))return![];}return!![];}['validateEngines'](a){const U=a138L,b=this[U(0x191)]['getMakaProjectConfig'](),c=b[U(0x148)],d=Object['keys'](a);if(d[U(0x186)]>0x0)for(const e of d){const f=c[e];if(f!==a[e]){Log[U(0x147)](U(0x14c)+e+U(0x185)+a[e]+U(0x166));throw UsageError;}}}async['validateParams'](a,b,c){const V=a138L,{requiredOpts:d,validArgs:e,validOpts:f,noNeedResource:g}=c,h=Object[V(0x18a)](b);if(h[V(0x16a)](V(0x182))&&b[V(0x182)]===undefined&&!g){const m=await Actions[V(0x142)](V(0x168));b[V(0x182)]=m;}let i=[],j=b;if(d){i=this[V(0x19c)](d),j=this['remapShortToLong'](b,i);if(i&&i?.[V(0x186)]>0x0)for(const n of i){const {name:o,values:p,regex:q}=n;if(!Object[V(0x18a)](j)[V(0x16a)](o)){if(o==='env'){const r=this['fsi'][V(0x171)](),s=await Actions[V(0x18d)]({'type':'list','name':V(0x188),'message':V(0x141),'choices':r});b[V(0x188)]=s[V(0x188)];}else{const t=p;if(t){const u=await Actions['options']({'type':V(0x187),'name':o,'message':V(0x196)+o,'choices':p});b[o]=u[o];}else{if(q){const v=await Actions['ask'](V(0x15c)+o);if(v[V(0x193)](q))b[o]=v;else{Log['error'](V(0x192)+o+':\x20'+v);throw new UsageError();}}else{const w=await Actions['ask'](V(0x15c)+o);b[o]=w;}}}}else{const x=j[o];if(p&&!p[V(0x16a)](x)){Log[V(0x147)](V(0x192)+o+':\x20'+x);throw new UsageError();}}}}let k=this[V(0x19c)](f),l=b;if(k&&Object[V(0x18a)](k)?.['length']>0x0){k=k[V(0x184)](i||[]),k[V(0x15f)]({'name':'resourceName','hidden':!![]}),k[V(0x15f)]({'name':V(0x144),'boolFlag':!![]}),k[V(0x15f)]({'name':V(0x154),'hidden':!![]}),k[V(0x15f)]({'name':V(0x19f),'hidden':!![]}),k[V(0x15f)]({'name':V(0x18f),'hidden':!![]}),k['push']({'name':V(0x18c),'hidden':!![]}),l=this[V(0x19d)](b,k);for(const y of k){const {name:z,values:A}=y,B=l[z];if(B!==undefined&&(!A||!A[V(0x16a)](B))){const C=A;if(C){const D=await Actions[V(0x18d)]({'type':'list','name':z,'message':V(0x14a)+z,'choices':A});l[z]=D[z];}}if(k[V(0x186)]>0x0)for(const E of Object[V(0x18a)](l)){const F=k[V(0x169)](G=>G['name']===E);if(!F){Log[V(0x147)](V(0x16c)+E);throw new UsageError();}}}}if(e&&e?.[V(0x186)]>0x0)for(const G of e){if(!e[V(0x16a)](G)){Log[V(0x147)]('Invalid\x20argument:\x20'+G);const H=await Actions[V(0x142)](V(0x198)+G);a[a[V(0x157)](G)]=H;}}return Object[V(0x17b)](j,l);}async[a138L(0x176)](a){const W=a138L;try{if(!a)return;const b=await this[W(0x191)][W(0x167)]();!b&&(Log[W(0x147)]('License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.meteor/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.'),process['exit'](0x1));const c=!b?.[W(0x19e)][W(0x16a)](W(0x149))&&!b?.[W(0x19e)]['includes'](W(0x170));if(this[W(0x14d)](a)){const d=W(0x16b)+a['name']+'\x22,\x20please\x20upgrade\x20to\x20PRO\x20by\x20becoming\x20a\x20pateron\x20@\x20patreon.com/user?u=110174702,\x20then\x20issue:\x20\x27maka\x20login\x27';if(a[W(0x18d)][W(0x165)])return;const f=b?.[W(0x181)][W(0x16a)](a[W(0x14f)])||b?.['proCommands']['includes'](a['parent']||'')||this[W(0x18d)][W(0x17e)];if(f&&c)throw d;}else{if(this[W(0x17d)](a)){const g=b?.[W(0x18e)][W(0x16a)](a['name'])||b?.[W(0x18e)][W(0x16a)](a[W(0x190)]||'');if(g&&c)throw W(0x164)+a[W(0x14f)]+'\x22,\x20please\x20upgrade\x20to\x20PRO\x20by\x20becoming\x20a\x20pateron\x20@\x20patreon.com/user?u=110174702,\x20then\x20issue:\x20\x27maka\x20login\x27';}}}catch(h){Log[W(0x147)](h),process[W(0x197)](0x1);}}[a138L(0x14d)](a){const X=a138L;return X(0x18d)in a;}[a138L(0x17d)](a){const Y=a138L;return!(Y(0x18d)in a);}['description'](){const Z=a138L;return this[Z(0x18d)][Z(0x17a)]||this[Z(0x18d)][Z(0x16d)]||Z(0x156);}[a138L(0x16d)](){const a0=a138L;return this[a0(0x18d)]['shortDesc']||a0(0x152);}[a138L(0x194)](){const a1=a138L;return this[a1(0x18d)][a1(0x194)]||a1(0x146);}[a138L(0x160)](){const a2=a138L;return this[a2(0x18d)][a2(0x160)]||[];}['aliases'](){const a3=a138L;return this[a3(0x18d)][a3(0x140)]||a3(0x19a);}}
@@ -1 +1 @@
1
- const a139i=a139d;(function(a,b){const f=a139d,c=a();while(!![]){try{const d=-parseInt(f(0x18a))/0x1*(parseInt(f(0x184))/0x2)+parseInt(f(0x189))/0x3*(-parseInt(f(0x187))/0x4)+-parseInt(f(0x18e))/0x5+-parseInt(f(0x181))/0x6*(parseInt(f(0x195))/0x7)+-parseInt(f(0x193))/0x8*(parseInt(f(0x182))/0x9)+-parseInt(f(0x192))/0xa+parseInt(f(0x18c))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a139c,0xbddf9));const a139b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a139d;if(c){const e=c[g(0x18f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a139a=a139b(this,function(){const h=a139d;return a139a[h(0x196)]()[h(0x18d)](h(0x186))[h(0x196)]()[h(0x185)](a139a)[h(0x18d)]('(((.+)+)+)+$');});function a139c(){const m=['81nAtqua','52187fdsNqq','password','76156289VkmTGd','search','4299885xunZtl','apply','answer','confirm','9670080VpthqC','151504Ldcpqg','options','7kmOhjz','toString','9009126UlImBB','603UYSVcN','ask','58OaalQo','constructor','(((.+)+)+)+$','5156AAOcdV','prompt'];a139c=function(){return m;};return a139c();}a139a();import a139e from'inquirer';function a139d(a,b){const c=a139c();return a139d=function(d,e){d=d-0x181;let f=c[d];return f;},a139d(a,b);}export class Actions{static async[a139i(0x183)](a,b){const j=a139i,{answer:c}=await a139e[j(0x188)]({'type':b?j(0x18b):'input','name':j(0x190),'message':a});return c;}static async[a139i(0x191)](a,b=![]){const k=a139i,{answer:c}=await a139e['prompt']({'type':k(0x191),'name':'answer','message':a,'default':b});return c;}static async[a139i(0x194)](a){const l=a139i,b=await a139e[l(0x188)](a);return b;}}
1
+ const a139h=a139d;function a139c(){const l=['password','constructor','answer','4tTcPvO','ask','6KKHNNE','5249616NwrVua','3694797XgrFho','1YUVknA','confirm','3115042iXSfil','search','options','toString','2293995YxrxOt','1359399mBwQjL','940594sbDWSm','prompt','2551070tOypve'];a139c=function(){return l;};return a139c();}(function(a,b){const f=a139d,c=a();while(!![]){try{const d=-parseInt(f(0xca))/0x1*(-parseInt(f(0xd2))/0x2)+parseInt(f(0xd1))/0x3*(-parseInt(f(0xd8))/0x4)+-parseInt(f(0xd0))/0x5*(-parseInt(f(0xc7))/0x6)+parseInt(f(0xcc))/0x7+-parseInt(f(0xc8))/0x8+parseInt(f(0xc9))/0x9+-parseInt(f(0xd4))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a139c,0x66961));const a139b=(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;};}()),a139a=a139b(this,function(){const g=a139d;return a139a[g(0xcf)]()[g(0xcd)]('(((.+)+)+)+$')['toString']()[g(0xd6)](a139a)[g(0xcd)]('(((.+)+)+)+$');});a139a();import a139e from'inquirer';function a139d(a,b){const c=a139c();return a139d=function(d,e){d=d-0xc7;let f=c[d];return f;},a139d(a,b);}export class Actions{static async[a139h(0xd9)](a,b){const i=a139h,{answer:c}=await a139e[i(0xd3)]({'type':b?i(0xd5):'input','name':i(0xd7),'message':a});return c;}static async[a139h(0xcb)](a,b=![]){const j=a139h,{answer:c}=await a139e[j(0xd3)]({'type':j(0xcb),'name':j(0xd7),'message':a,'default':b});return c;}static async[a139h(0xce)](a){const k=a139h,b=await a139e[k(0xd3)](a);return b;}}
@@ -1 +1 @@
1
- const a140u=a140d;(function(a,b){const p=a140d,c=a();while(!![]){try{const d=parseInt(p(0x248))/0x1*(parseInt(p(0x204))/0x2)+-parseInt(p(0x21d))/0x3*(parseInt(p(0x245))/0x4)+parseInt(p(0x251))/0x5+parseInt(p(0x207))/0x6*(parseInt(p(0x232))/0x7)+parseInt(p(0x227))/0x8+parseInt(p(0x218))/0x9+-parseInt(p(0x1b2))/0xa*(-parseInt(p(0x229))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a140c,0x7e102));const a140b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a140d;if(c){const e=c[q(0x1cb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a140a=a140b(this,function(){const r=a140d;return a140a[r(0x1f9)]()[r(0x214)]('(((.+)+)+)+$')[r(0x1f9)]()['constructor'](a140a)['search'](r(0x192));});a140a();import a140e from'fs';import a140f from'path';import{execSync}from'child_process';function a140d(a,b){const c=a140c();return a140d=function(d,e){d=d-0x18d;let f=c[d];return f;},a140d(a,b);}import{Actions}from'../actions/actions.class.js';import{Log}from'../log/log.class.js';import{FSI}from'../fsi/fsi.class.js';import{EC2Client,DescribeInstancesCommand,RunInstancesCommand,TerminateInstancesCommand,CreateKeyPairCommand,AuthorizeSecurityGroupIngressCommand,CreateSecurityGroupCommand,RebootInstancesCommand,DescribeVpcsCommand,DescribeKeyPairsCommand,DeleteKeyPairCommand,DescribeSecurityGroupsCommand,DeleteSecurityGroupCommand}from'@aws-sdk/client-ec2';import{ECRClient,CreateRepositoryCommand,DeleteRepositoryCommand,GetAuthorizationTokenCommand,DescribeRepositoriesCommand}from'@aws-sdk/client-ecr';import{Route53,Route53Client,CreateHostedZoneCommand}from'@aws-sdk/client-route-53';import{Route53Domains,CheckDomainAvailabilityCommand,RegisterDomainCommand,ListPricesCommand}from'@aws-sdk/client-route-53-domains';const client=new EC2Client({}),route53Client=new Route53Client({}),route53=new Route53({}),route53Domains=new Route53Domains({});function a140c(){const a1=['af-south-1','pem','maxCount','ca-west-1','ap-southeast-4','getSecurityGroups','exit','You\x20have\x20no\x20instances\x20created\x20by\x20maka-cli.\x20\x20Please\x20reivew\x20your\x20AWS\x20console\x20manually!!!','Error\x20creating\x20hosted\x20zone','us-east-2','\x20ENV:\x20','push','2620EntqlF','tags','\x20opened!','start','ap-southeast-2','eu-north-1','KeyMaterial','getMakaProjectConfig','environment','ec2describeInstances','chmod\x20400\x20','pop','sa-east-1','eu-west-3','getEcrLoginPassword','minCount','warn','Invalid\x20choice','Key\x20Name:\x20[','listAllEcrRepositories','instance','stop','changeResourceRecordSets','Pem\x20key\x20saved\x20to\x20','length','apply','VpcId','Error\x20linking\x20EC2\x20to\x20Route\x2053:','ingressRule','linkEC2ToRoute53','from','isFile','...','ap-southeast-1','notice','us-west-2','$response','createFile','No\x20instances\x20found','terminated','subnet','Processing\x20','There\x20was\x20an\x20error\x20registering\x20the\x20domain\x20name','status','UserData','suggestion','log','UPSERT','\x20CIDR:\x20','You\x20have\x20no\x20key-pairs,\x20please\x20create\x20one.\x20(maka\x20aws\x20create-key-pair\x20--env).','\x20to\x20','env','Failed\x20to\x20create\x20repository\x20in\x20','imageId','0.0.0.0/0','utf8','**\x20Available\x20\x20VPCs\x20**','Error\x20fetching\x20domain\x20pricing:','deleteSecurityGroup','Failed\x20in\x20','sgPorts','ssh.json','Repository\x20\x22','/dev/sdh','ec2createSG','send','me-south-1','stringify','createKeyPair','ap-northeast-1','find','toString','RegistrationPrice','route53CreateHostedZone','timeout','Instances','\x20Error\x20Rason:\x20','\x27\x20has\x20been\x20registered\x20successfully.','Error\x20saving\x20pem\x20file,\x20aborting','uri','GroupId','concat','125626XKGrBR','listHostedZonesByName','Could\x20not\x20find\x20hosted\x20zone','18LkAGEg','repositoryUri','ec2describeKeys','ap-northeast-2','Failed\x20to\x20decode\x20password\x20from\x20authorization\x20token','chooseInstance','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','eu-west-2',',\x20URI:\x20','.pem.txt','Value','split','GroupName','search','Timeout\x20while\x20processing\x20','config','info','2877678crAaVF','eu-west-1','Prices','Region:\x20','file://','2987529wnzcEh','Authorization\x20data\x20is\x20empty','fsi','statusCode','Final\x20list\x20of\x20ECR\x20repositories:','eu-south-2','ignore','createKeyPairEC2Key','base64',',\x20Name:\x20','638784KdEIPQ','\x22\x20created\x20successfully\x20in\x20','3608WVwMQz','now','AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials','ap-northeast-3','parse','ask','userData','confirm','reason','1575063lKqnEW','\x20INSTANCE_ID:\x20','Successfully\x20linked\x20EC2\x20instance\x20','ID:\x20','ap-east-1','_keys','eu-south-1','instanceId','authorizationToken','Instance\x20rebooted!','checkDomainAvailability','join','Created:\x20','error','tcp','trim','ap-south-2','me-central-1','tag:created-by','4ppSFSW','repositories','From\x20AWS:','1CXQhpS','us-west-1','writeFileSync','\x20PUB_IP:\x20','authorizationData','ca-central-1','[+]\x20Setting\x20VPC\x20ID\x20to:\x20','Error\x20generating\x20key\x20pair','us-east-1','1444155ohfzIP','repositoryName','Port\x20','sgIds','key','region','eu-central-1','success','deleteKeyPair','(((.+)+)+)+$','all','\x20NAME:\x20','ap-southeast-3','description','HostedZones','type','publicIp','race','KeyName','name','withSpinner','CidrBlock','\x20Status\x20Code:\x20','vpcId','Would\x20you\x20like\x20to\x20update\x20the\x20ssh.json\x20config\x20file?','Please\x20choose\x20a\x20VPC:\x20[0]\x20','forEach','No\x20credentials\x20returned\x20from\x20AWS\x20ECR','ecrDeleteRepository'];a140c=function(){return a1;};return a140c();}export class AWS{['fsi'];constructor(){const s=a140d;this[s(0x21f)]=new FSI();}async['ecrCreateRepository'](a){const t=a140d;try{const b=new ECRClient({'region':a['region']}),c={'repositoryName':a['name']},d=new CreateRepositoryCommand(c),f=await b[t(0x1f3)](d);return Log[t(0x190)](t(0x1f0)+a['name']+t(0x228)+a['region']+'.'),f;}catch(g){Log[t(0x23f)](t(0x1e6)+a[t(0x18e)]+':\x20'+g);throw g;}}async[a140u(0x1c5)](a){const v=a140u,b=['us-east-1',v(0x1af),v(0x249),v(0x1d5),'ap-south-1',v(0x22c),v(0x20a),v(0x1d3),v(0x1b6),v(0x1f7),v(0x24d),v(0x18f),v(0x219),v(0x20e),v(0x1bf),v(0x1b7),v(0x1be),v(0x1a6),v(0x236),v(0x242),v(0x195),v(0x1aa),v(0x1a9),v(0x238),v(0x222),'eu-central-2',v(0x1f4),v(0x243),'il-central-1'],c=[v(0x250),v(0x1af),'us-west-1',v(0x1d5)],d=a===v(0x193)?b:a?a[v(0x212)](','):c;let f=[];const g=Log[v(0x19d)]();for(const h of d){g[v(0x1b5)](v(0x1db)+h[v(0x241)]()+v(0x1d2));const i=new ECRClient({'region':h[v(0x241)]()});try{let j=undefined;do{const k=await Promise[v(0x19a)]([i[v(0x1f3)](new DescribeRepositoriesCommand({'nextToken':j})),new Promise(l=>setTimeout(()=>l(v(0x1fc)),0x7d0))]);if(k===v(0x1fc)){Log[v(0x1c2)](v(0x215)+h[v(0x241)]()+'.');break;}else k['repositories']&&k[v(0x246)]['length']>0x0&&(f=f[v(0x203)](k['repositories']['map'](l=>({'name':l[v(0x252)],'uri':l[v(0x208)],'region':h[v(0x241)]()}))));j=k['nextToken'];}while(j);}catch(l){Log[v(0x23f)](v(0x1ed)+h[v(0x241)]()+':\x20'+l['message']);}finally{g[v(0x1c7)]();}}return f[v(0x1ca)]>0x0?(console[v(0x1e0)](),Log[v(0x190)](v(0x221)),f[v(0x1a3)](m=>{const w=v;Log[w(0x217)](w(0x21b)+m[w(0x18e)]+w(0x226)+m[w(0x19c)]+w(0x20f)+m[w(0x201)]);})):Log[v(0x1c2)]('No\x20ECR\x20repositories\x20found\x20across\x20all\x20specified\x20regions.'),f;}async[a140u(0x1fb)](a){const x=a140u;try{const b={'CallerReference':''+Date[x(0x22a)](),'Name':a},c=new CreateHostedZoneCommand(b);await route53Client[x(0x1f3)](c),Log[x(0x190)]('Hosted\x20zone\x20created\x20successfully!');}catch(d){Log[x(0x23f)](x(0x1ae)),console[x(0x23f)](d);}}async['registerDomain'](a,b,c,d){const y=a140u;try{const e={'DomainName':b,'DurationInYears':c,'AutoRenew':d,'AdminContact':a,'RegistrantContact':a,'TechContact':a},f=new RegisterDomainCommand(e);await route53[y(0x1f3)](f),Log[y(0x1d4)]('The\x20domain\x20\x27'+b+y(0x1ff));}catch(g){Log[y(0x23f)](y(0x1dc)),Log[y(0x1c2)](y(0x247)),console[y(0x23f)](y(0x19f)+g[y(0x1d6)][y(0x220)]),console['error'](y(0x1fe)+g[y(0x1d6)][y(0x231)]);}}async[a140u(0x23c)](a){const z=a140u,b={'DomainName':a},c=new CheckDomainAvailabilityCommand(b),d=await route53Domains[z(0x1f3)](c),e=d['Availability']==='AVAILABLE';if(e){const f=a[z(0x212)]('.')[z(0x1bd)](),g={'MaxItems':0x1,'Tld':f};try{const h=new ListPricesCommand(g),i=await route53Domains[z(0x1f3)](h);if(i&&i[z(0x21a)]&&i['Prices'][0x0]?.[z(0x1fa)]){const j=i[z(0x21a)][0x0]['RegistrationPrice'];return{'available':e,'cost':j};}}catch(k){console[z(0x23f)](z(0x1eb),k);}}return{'available':e};}async[a140u(0x1cf)](a,b,c){const A=a140u;try{const d=await route53[A(0x205)]({'DNSName':c});if(!d?.['HostedZones'])throw Log['error'](A(0x206));const e=d?.[A(0x197)][0x0]['Id'],f={'ChangeBatch':{'Changes':[{'Action':A(0x1e1),'ResourceRecordSet':{'Name':c,'Type':'A','TTL':0x12c,'ResourceRecords':[{'Value':b}]}}]},'HostedZoneId':e};await route53[A(0x1c8)](f),Log['notice'](A(0x234)+a+A(0x1e4)+c);}catch(g){console[A(0x23f)](A(0x1cd),g);}}async[a140u(0x1c0)]({awsAccountId:a,region:b}){const B=a140u,c=new ECRClient({'region':b});try{const d=new GetAuthorizationTokenCommand({'registryIds':[a]}),f=await c['send'](d);if(!f[B(0x24c)]||f[B(0x24c)]['length']===0x0)throw new Error(B(0x21e));const g=f[B(0x24c)][0x0];if(!g['authorizationToken'])throw new Error('Authorization\x20token\x20is\x20missing');const h=g[B(0x23a)];if(!h)throw new Error(B(0x1a4));const i=Buffer[B(0x1d0)](h,B(0x225))['toString'](),j=i['split'](':')[0x1];if(!j)throw new Error(B(0x20b));return j;}catch(k){Log[B(0x23f)](k);throw k;}}async[a140u(0x1a5)]({repoName:a,region:b}){const C=a140u,c=new ECRClient({'region':b});try{const d=new DeleteRepositoryCommand({'repositoryName':a,'force':!![]}),f=await c[C(0x1f3)](d);return f;}catch(g){Log[C(0x23f)](g);throw g;}}async['ec2create'](a){const D=a140u;try{const b={'BlockDeviceMappings':[{'DeviceName':D(0x1f1),'Ebs':{'VolumeSize':0x64}}],'ImageId':a[D(0x1e7)],'InstanceType':a[D(0x198)],'KeyName':a[D(0x18d)],'MaxCount':a[D(0x1a8)],'MinCount':a[D(0x1c1)],'SecurityGroupIds':a[D(0x254)][D(0x212)](','),'SubnetId':a[D(0x1da)],'TagSpecifications':[{'ResourceType':D(0x1c6),'Tags':a[D(0x1b3)]}]};a[D(0x22f)]&&(b[D(0x1de)]=D(0x21c)+a[D(0x22f)]);const c=new RunInstancesCommand(b),d=await client[D(0x1f3)](c);return d;}catch(f){Log[D(0x23f)](f);}}async['ec2terminateInstance'](a){const E=a140u;try{const b={'InstanceIds':[a['instanceId']]},c=new TerminateInstancesCommand(b),d=await client[E(0x1f3)](c);return d;}catch(f){return Log[E(0x23f)](f),{};}}async[a140u(0x224)]({keyName:a,env:b}){const F=a140u,c=this[F(0x21f)]['getAppConfigPath'](b),d=a140f[F(0x23d)](c,F(0x237),a+F(0x210));try{const f={'KeyName':a},g=new CreateKeyPairCommand(f),h=await client[F(0x1f3)](g),i=h[F(0x1b8)];if(i){await this[F(0x21f)][F(0x1d7)]({'filePath':d,'data':i}),execSync(F(0x1bc)+d,{'stdio':F(0x223)});const j=this[F(0x21f)][F(0x1d1)](d);if(j)return Log['success'](F(0x1c9)+d),{'keyName':a,'filePath':d};else throw new Error(F(0x200));}else throw new Error(F(0x24f));}catch(k){Log['error'](k),process[F(0x1ac)](0x1);}}async[a140u(0x1ce)]({port:a,groupId:b}){const G=a140u,c={'GroupId':b,'IpPermissions':[{'FromPort':a,'IpProtocol':G(0x240),'IpRanges':[{'CidrIp':G(0x1e8),'Description':''}],'ToPort':a}]},d=new AuthorizeSecurityGroupIngressCommand(c);return Log[G(0x1d4)](G(0x253)+a+G(0x1b4)),await client['send'](d);}async[a140u(0x1f2)](a){const H=a140u;try{a[H(0x196)]===''&&(a[H(0x196)]=await Actions[H(0x22e)]('Description:')||'Web\x20App');const b={'Description':a['description'],'GroupName':a[H(0x19c)],'VpcId':a[H(0x1a0)]},c=new CreateSecurityGroupCommand(b),d=await client[H(0x1f3)](c),{GroupId:f}=d;if(!d)throw new Error(H(0x22b));f&&a[H(0x1ee)][H(0x1a3)](g=>{const I=H;this[I(0x1ce)]({'port':parseInt(g),'groupId':f});}),Log[H(0x190)](H(0x23e)+f+H(0x194)+a[H(0x19c)]);}catch(g){return Log[H(0x23f)](g),![];}return!![];}async[a140u(0x209)](a){const J=a140u,b=[];try{const c={},d=new DescribeKeyPairsCommand(c),f=await client[J(0x1f3)](d);if(!f)throw'AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials';const {KeyPairs:g}=f;g?(g?.[J(0x1a3)]((h,i)=>{const K=J;h[K(0x19b)]&&b['push']({'id':i,'name':h[K(0x19b)]});}),b['length']>0x0&&b[J(0x1a3)](h=>{const L=J;h['name']===a?.[L(0x1df)]?Log[L(0x190)](L(0x235)+h['id']+'\x20NAME:\x20'+h[L(0x19c)]):Log[L(0x1d4)](L(0x235)+h['id']+L(0x194)+h[L(0x19c)]);})):Log[J(0x23f)](J(0x1e3));}catch(h){Log[J(0x23f)](h);}return b;}async[a140u(0x191)](a){const M=a140u;try{const b={'KeyName':a},c=new DeleteKeyPairCommand(b);await client['send'](c);}catch(d){Log['error'](d),process[M(0x1ac)](0x1);}}async[a140u(0x1bb)](){const N=a140u,a=[];try{const b={'Filters':[{'Name':N(0x244),'Values':['maka-cli']}]},c=new DescribeInstancesCommand(b),d=await client[N(0x1f3)](c);d['Reservations']?.['forEach']((f,g)=>{const O=N;if(f?.[O(0x1fd)]){const {InstanceId:h,PublicIpAddress:i,PrivateIpAddress:j,State:k,KeyName:l,Tags:m}=f[O(0x1fd)][0x0],n=m?.['find'](({Key:o})=>o===O(0x1ba));a['push']({'id':g,'instanceId':h,'privateIp':j,'publicIp':i,'status':k?.['Name'],'name':l,'env':n?.[O(0x211)]});}}),a[N(0x1ca)]>0x0?a[N(0x1a3)](f=>{const P=N,g=P(0x235)+f['id']+'\x20NAME:\x20'+f[P(0x19c)]+P(0x1b0)+f[P(0x1e5)]+'\x20STATUS:\x20'+f[P(0x1dd)]+P(0x233)+f[P(0x239)]+P(0x24b)+f[P(0x199)]+'\x20PRIV_IP:\x20'+f['privateIp'];if(f[P(0x1dd)]===P(0x1d9))Log[P(0x23f)](g);else f[P(0x1dd)]==='running'?Log['success'](g):Log[P(0x1d4)](g);}):Log[N(0x23f)](N(0x1ad));}catch(f){Log['error'](f);}return a;}async['ec2rebootInstance'](a){const Q=a140u;try{const b={'InstanceIds':[a['instanceId']]},c=new RebootInstancesCommand(b),d=await client[Q(0x1f3)](c);return d['$metadata']['httpStatusCode']===0xc8&&Log[Q(0x190)](Q(0x23b)),d;}catch(f){Log[Q(0x23f)](f);}}async['chooseVPC'](){const R=a140u;let a='';Log[R(0x1d4)](R(0x1ea));const b=new DescribeVpcsCommand({}),c=await client['send'](b),{Vpcs:d}=c,e=[];d&&d[R(0x1a3)]((g,h)=>{const S=R;g[S(0x1cc)]&&g[S(0x19e)]&&e[S(0x1b1)]({'id':h,'vpcId':g[S(0x1cc)],'cidr':g[S(0x19e)]});});e['forEach'](function(g){const T=R;console[T(0x1e0)](T(0x235)+g['id']+'\x20VPCID:\x20'+g['vpcId']+T(0x1e2)+g['cidr']);});const f=await Actions[R(0x22e)](R(0x1a2))||0x0;e[R(0x1a3)](function(g){const U=R;g['id']==f&&(a=g['vpcId'],Log[U(0x190)](U(0x24e)+a+'\x0a'));});if(a==='')return Log[R(0x23f)](R(0x20d)),'';return a;}async[a140u(0x20c)](){const V=a140u,a=await this[V(0x1bb)]();if(a['length']===0x0)return Log[V(0x23f)](V(0x1d8)),null;const b=await Actions[V(0x22e)]('[?]\x20Please\x20choose\x20an\x20instance\x20ID:\x20');!b&&(Log['error'](V(0x1c3)),process[V(0x1ac)](0x0));const c=a[V(0x1f8)](({id:d})=>{return d==parseInt(b);})||null;return c;}async[a140u(0x1f6)]({env:a}){const W=a140u,b=this[W(0x21f)][W(0x1b9)](),{appName:c}=b,d=c+'-'+a,f=await Actions[W(0x22e)](W(0x1c4)+d+']\x20')||d,{filePath:g}=await this[W(0x224)]({'keyName':f,'env':a});try{const h=await Actions[W(0x230)](W(0x1a1),!![]);if(h)try{const i=a140e['readFileSync'](a140f['join']('config',a,W(0x1ef)),W(0x1e9)),j=JSON[W(0x22d)](i);j[W(0x1a7)]=a140f[W(0x23d)](W(0x237),f+W(0x210)),a140e[W(0x24a)](a140f['join'](W(0x216),a,W(0x1ef)),JSON[W(0x1f5)](j,null,0x2));}catch(k){Log[W(0x23f)](k),Log[W(0x23f)]('You\x20will\x20need\x20to\x20update\x20the\x20ssh.json\x20file\x20yourself.');}}catch(l){Log[W(0x23f)](l),process[W(0x1ac)](0x1);}return{'keyName':f,'filePath':g};}async[a140u(0x1ab)](a){const X=a140u,b=[],c={},d=new DescribeSecurityGroupsCommand(c),e=await client[X(0x1f3)](d),{SecurityGroups:f}=e;f&&f['forEach'](function(i,j){const Y=X;i[Y(0x213)]&&i[Y(0x202)]&&b[Y(0x1b1)]({'id':j,'name':i[Y(0x213)],'sgId':i[Y(0x202)]});});let g='',h=0x0;return b[X(0x1a3)](function(i){const Z=X;i[Z(0x19c)]===a&&(g=i['sgId'],h=i['id']);}),{'sgList':b,'createdSgId':g,'listIndexId':h};}async[a140u(0x1ec)](a){const a0=a140u;try{const b={'GroupId':a},c=new DeleteSecurityGroupCommand(b);await client[a0(0x1f3)](c);}catch(d){Log['error'](d),process[a0(0x1ac)](0x1);}}}
1
+ const a140s=a140d;(function(a,b){const p=a140d,c=a();while(!![]){try{const d=-parseInt(p(0x108))/0x1*(parseInt(p(0x121))/0x2)+parseInt(p(0x116))/0x3*(parseInt(p(0xfc))/0x4)+parseInt(p(0xe1))/0x5+-parseInt(p(0x11d))/0x6+parseInt(p(0x102))/0x7*(parseInt(p(0x12e))/0x8)+-parseInt(p(0x99))/0x9*(parseInt(p(0x11e))/0xa)+-parseInt(p(0xd6))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a140c,0x79627));const a140b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a140d;if(c){const e=c[q(0x8c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a140a=a140b(this,function(){const r=a140d;return a140a['toString']()[r(0xde)](r(0x13a))[r(0xf2)]()[r(0xd9)](a140a)[r(0xde)](r(0x13a));});a140a();import a140e from'fs';import a140f from'path';import{execSync}from'child_process';import{Actions}from'../actions/actions.class.js';function a140c(){const a1=['toString','imageId','getSecurityGroups','repositoryUri','environment','createFile','log','race','notice','\x20Status\x20Code:\x20','679160TJrpMy','$metadata','terminated','eu-central-1','Please\x20choose\x20a\x20VPC:\x20[0]\x20','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','21mfDpbI','sgPorts','Error\x20fetching\x20domain\x20pricing:','repositories','find','From\x20AWS:','13163kQfXxS','eu-west-2','ap-south-1','/dev/sdh','Error\x20saving\x20pem\x20file,\x20aborting','\x20NAME:\x20','nextToken','us-west-1','sgIds','writeFileSync','base64','warn','createKeyPair','listHostedZonesByName','9yinCQd','ec2terminateInstance','\x20VPCID:\x20','getEcrLoginPassword','Failed\x20to\x20decode\x20password\x20from\x20authorization\x20token','authorizationData','il-central-1','982242GzTIWW','1937950qDkwGJ','me-central-1','Key\x20Name:\x20[','94cALNjc','UserData','deleteSecurityGroup','userData','join','map','from','Error\x20creating\x20hosted\x20zone','eu-north-1','timeout','publicIp','us-west-2','vpcId','2418616EqlKue','The\x20domain\x20\x27','info','Final\x20list\x20of\x20ECR\x20repositories:','eu-west-1','now','env','ID:\x20','changeResourceRecordSets','RegistrationPrice','Name','description','(((.+)+)+)+$','success','deleteKeyPair','pem','linkEC2ToRoute53','af-south-1','maxCount','.pem.txt','ec2createSG','Availability','utf8','pop','httpStatusCode','send','Reservations','ca-west-1','GroupName','ap-northeast-1','readFileSync','Web\x20App','AVAILABLE','eu-south-2','name','key','fsi','apply','$response','concat','_keys','No\x20credentials\x20returned\x20from\x20AWS\x20ECR','KeyName','createKeyPairEC2Key','[+]\x20Setting\x20VPC\x20ID\x20to:\x20','all','tag:created-by','chmod\x20400\x20','Value','Pem\x20key\x20saved\x20to\x20','18dwDILA','Successfully\x20linked\x20EC2\x20instance\x20','...','error','Port\x20','Error\x20linking\x20EC2\x20to\x20Route\x2053:','ec2describeKeys','Failed\x20in\x20','ap-southeast-4','ask','There\x20was\x20an\x20error\x20registering\x20the\x20domain\x20name','authorizationToken','ingressRule','split','repositoryName','ecrCreateRepository','Invalid\x20choice','Authorization\x20data\x20is\x20empty','Created:\x20','chooseInstance','trim','instance','route53CreateHostedZone','AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials','message','You\x20have\x20no\x20instances\x20created\x20by\x20maka-cli.\x20\x20Please\x20reivew\x20your\x20AWS\x20console\x20manually!!!','reason','You\x20have\x20no\x20key-pairs,\x20please\x20create\x20one.\x20(maka\x20aws\x20create-key-pair\x20--env).','instanceId','CidrBlock','push','withSpinner','\x20to\x20','GroupId','me-south-1','\x20PRIV_IP:\x20','\x20STATUS:\x20','\x20INSTANCE_ID:\x20','\x20Error\x20Rason:\x20','Failed\x20to\x20create\x20repository\x20in\x20','maka-cli','minCount',',\x20Name:\x20','ap-southeast-3','status','sgId','Instances','us-east-2','[?]\x20Please\x20choose\x20an\x20instance\x20ID:\x20','parse','\x20PUB_IP:\x20','region','Processing\x20','ca-central-1','exit','Timeout\x20while\x20processing\x20','config','ssh.json','No\x20instances\x20found','subnet','cidr','6025162ZlPhou','tags','forEach','constructor','statusCode','You\x20will\x20need\x20to\x20update\x20the\x20ssh.json\x20file\x20yourself.','ec2create','Prices','search','us-east-1','file://','3992700jSKMvV','Error\x20generating\x20key\x20pair','\x20ENV:\x20','chooseVPC','ec2describeInstances','VpcId','HostedZones','No\x20ECR\x20repositories\x20found\x20across\x20all\x20specified\x20regions.','length','Repository\x20\x22','eu-central-2','privateIp','ap-northeast-2','ignore','ap-southeast-1','registerDomain','ap-northeast-3'];a140c=function(){return a1;};return a140c();}import{Log}from'../log/log.class.js';function a140d(a,b){const c=a140c();return a140d=function(d,e){d=d-0x79;let f=c[d];return f;},a140d(a,b);}import{FSI}from'../fsi/fsi.class.js';import{EC2Client,DescribeInstancesCommand,RunInstancesCommand,TerminateInstancesCommand,CreateKeyPairCommand,AuthorizeSecurityGroupIngressCommand,CreateSecurityGroupCommand,RebootInstancesCommand,DescribeVpcsCommand,DescribeKeyPairsCommand,DeleteKeyPairCommand,DescribeSecurityGroupsCommand,DeleteSecurityGroupCommand}from'@aws-sdk/client-ec2';import{ECRClient,CreateRepositoryCommand,DeleteRepositoryCommand,GetAuthorizationTokenCommand,DescribeRepositoriesCommand}from'@aws-sdk/client-ecr';import{Route53,Route53Client,CreateHostedZoneCommand}from'@aws-sdk/client-route-53';import{Route53Domains,CheckDomainAvailabilityCommand,RegisterDomainCommand,ListPricesCommand}from'@aws-sdk/client-route-53-domains';const client=new EC2Client({}),route53Client=new Route53Client({}),route53=new Route53({}),route53Domains=new Route53Domains({});export class AWS{[a140s(0x8b)];constructor(){const t=a140s;this[t(0x8b)]=new FSI();}async[a140s(0xa8)](a){const u=a140s;try{const b=new ECRClient({'region':a[u(0xcc)]}),c={'repositoryName':a[u(0x89)]},d=new CreateRepositoryCommand(c),f=await b[u(0x80)](d);return Log[u(0x13b)](u(0xea)+a['name']+'\x22\x20created\x20successfully\x20in\x20'+a['region']+'.'),f;}catch(g){Log[u(0x9c)](u(0xc0)+a[u(0xcc)]+':\x20'+g);throw g;}}async['listAllEcrRepositories'](a){const v=a140s,b=[v(0xdf),v(0xc8),v(0x10f),v(0x12c),v(0x10a),v(0xf1),v(0xed),v(0xef),'ap-southeast-2',v(0x84),v(0xce),v(0xff),v(0x132),v(0x109),'eu-west-3',v(0x129),'sa-east-1',v(0x13f),'ap-east-1','ap-south-2',v(0xc4),v(0xa1),v(0x82),'eu-south-1',v(0x88),v(0xeb),v(0xbb),v(0x11f),v(0x11c)],c=['us-east-1',v(0xc8),v(0x10f),v(0x12c)],d=a===v(0x94)?b:a?a[v(0xa6)](','):c;let f=[];const g=Log[v(0xb8)]();for(const h of d){g['start'](v(0xcd)+h[v(0xad)]()+v(0x9b));const i=new ECRClient({'region':h['trim']()});try{let j=undefined;do{const k=await Promise[v(0xf9)]([i[v(0x80)](new DescribeRepositoriesCommand({'nextToken':j})),new Promise(l=>setTimeout(()=>l(v(0x12a)),0x7d0))]);if(k===v(0x12a)){Log[v(0x113)](v(0xd0)+h[v(0xad)]()+'.');break;}else k['repositories']&&k['repositories'][v(0xe9)]>0x0&&(f=f[v(0x8e)](k[v(0x105)][v(0x126)](l=>({'name':l[v(0xa7)],'uri':l[v(0xf5)],'region':h[v(0xad)]()}))));j=k[v(0x10e)];}while(j);}catch(l){Log['error'](v(0xa0)+h['trim']()+':\x20'+l[v(0xb1)]);}finally{g['stop']();}}return f[v(0xe9)]>0x0?(console['log'](),Log['success'](v(0x131)),f[v(0xd8)](m=>{const w=v;Log[w(0x130)]('Region:\x20'+m[w(0xcc)]+w(0xc3)+m[w(0x89)]+',\x20URI:\x20'+m['uri']);})):Log[v(0x113)](v(0xe8)),f;}async[a140s(0xaf)](a){const x=a140s;try{const b={'CallerReference':''+Date[x(0x133)](),'Name':a},c=new CreateHostedZoneCommand(b);await route53Client[x(0x80)](c),Log[x(0x13b)]('Hosted\x20zone\x20created\x20successfully!');}catch(d){Log['error'](x(0x128)),console[x(0x9c)](d);}}async[a140s(0xf0)](a,b,c,d){const y=a140s;try{const e={'DomainName':b,'DurationInYears':c,'AutoRenew':d,'AdminContact':a,'RegistrantContact':a,'TechContact':a},f=new RegisterDomainCommand(e);await route53[y(0x80)](f),Log[y(0xfa)](y(0x12f)+b+'\x27\x20has\x20been\x20registered\x20successfully.');}catch(g){Log[y(0x9c)](y(0xa3)),Log[y(0x113)](y(0x107)),console[y(0x9c)](y(0xfb)+g[y(0x8d)][y(0xda)]),console[y(0x9c)](y(0xbf)+g['$response'][y(0xb3)]);}}async['checkDomainAvailability'](a){const z=a140s,b={'DomainName':a},c=new CheckDomainAvailabilityCommand(b),d=await route53Domains[z(0x80)](c),e=d[z(0x7c)]===z(0x87);if(e){const f=a[z(0xa6)]('.')[z(0x7e)](),g={'MaxItems':0x1,'Tld':f};try{const h=new ListPricesCommand(g),i=await route53Domains[z(0x80)](h);if(i&&i[z(0xdd)]&&i[z(0xdd)][0x0]?.[z(0x137)]){const j=i['Prices'][0x0]['RegistrationPrice'];return{'available':e,'cost':j};}}catch(k){console[z(0x9c)](z(0x104),k);}}return{'available':e};}async[a140s(0x13e)](a,b,c){const A=a140s;try{const d=await route53[A(0x115)]({'DNSName':c});if(!d?.[A(0xe7)])throw Log[A(0x9c)]('Could\x20not\x20find\x20hosted\x20zone');const e=d?.[A(0xe7)][0x0]['Id'],f={'ChangeBatch':{'Changes':[{'Action':'UPSERT','ResourceRecordSet':{'Name':c,'Type':'A','TTL':0x12c,'ResourceRecords':[{'Value':b}]}}]},'HostedZoneId':e};await route53[A(0x136)](f),Log['notice'](A(0x9a)+a+A(0xb9)+c);}catch(g){console[A(0x9c)](A(0x9e),g);}}async[a140s(0x119)]({awsAccountId:a,region:b}){const B=a140s,c=new ECRClient({'region':b});try{const d=new GetAuthorizationTokenCommand({'registryIds':[a]}),f=await c[B(0x80)](d);if(!f['authorizationData']||f['authorizationData']['length']===0x0)throw new Error(B(0xaa));const g=f[B(0x11b)][0x0];if(!g[B(0xa4)])throw new Error('Authorization\x20token\x20is\x20missing');const h=g[B(0xa4)];if(!h)throw new Error(B(0x90));const i=Buffer[B(0x127)](h,B(0x112))[B(0xf2)](),j=i[B(0xa6)](':')[0x1];if(!j)throw new Error(B(0x11a));return j;}catch(k){Log[B(0x9c)](k);throw k;}}async['ecrDeleteRepository']({repoName:a,region:b}){const C=a140s,c=new ECRClient({'region':b});try{const d=new DeleteRepositoryCommand({'repositoryName':a,'force':!![]}),f=await c['send'](d);return f;}catch(g){Log[C(0x9c)](g);throw g;}}async[a140s(0xdc)](a){const D=a140s;try{const b={'BlockDeviceMappings':[{'DeviceName':D(0x10b),'Ebs':{'VolumeSize':0x64}}],'ImageId':a[D(0xf3)],'InstanceType':a['type'],'KeyName':a[D(0x8a)],'MaxCount':a[D(0x79)],'MinCount':a[D(0xc2)],'SecurityGroupIds':a[D(0x110)][D(0xa6)](','),'SubnetId':a[D(0xd4)],'TagSpecifications':[{'ResourceType':D(0xae),'Tags':a[D(0xd7)]}]};a[D(0x124)]&&(b[D(0x122)]=D(0xe0)+a['userData']);const c=new RunInstancesCommand(b),d=await client[D(0x80)](c);return d;}catch(f){Log[D(0x9c)](f);}}async[a140s(0x117)](a){const E=a140s;try{const b={'InstanceIds':[a[E(0xb5)]]},c=new TerminateInstancesCommand(b),d=await client['send'](c);return d;}catch(f){return Log[E(0x9c)](f),{};}}async[a140s(0x92)]({keyName:a,env:b}){const F=a140s,c=this[F(0x8b)]['getAppConfigPath'](b),d=a140f[F(0x125)](c,'_keys',a+F(0x7a));try{const f={'KeyName':a},g=new CreateKeyPairCommand(f),h=await client[F(0x80)](g),i=h['KeyMaterial'];if(i){await this[F(0x8b)][F(0xf7)]({'filePath':d,'data':i}),execSync(F(0x96)+d,{'stdio':F(0xee)});const j=this[F(0x8b)]['isFile'](d);if(j)return Log[F(0x13b)](F(0x98)+d),{'keyName':a,'filePath':d};else throw new Error(F(0x10c));}else throw new Error(F(0xe2));}catch(k){Log[F(0x9c)](k),process['exit'](0x1);}}async[a140s(0xa5)]({port:a,groupId:b}){const G=a140s,c={'GroupId':b,'IpPermissions':[{'FromPort':a,'IpProtocol':'tcp','IpRanges':[{'CidrIp':'0.0.0.0/0','Description':''}],'ToPort':a}]},d=new AuthorizeSecurityGroupIngressCommand(c);return Log[G(0xfa)](G(0x9d)+a+'\x20opened!'),await client[G(0x80)](d);}async[a140s(0x7b)](a){const H=a140s;try{a[H(0x139)]===''&&(a['description']=await Actions['ask']('Description:')||H(0x86));const b={'Description':a['description'],'GroupName':a[H(0x89)],'VpcId':a[H(0x12d)]},c=new CreateSecurityGroupCommand(b),d=await client[H(0x80)](c),{GroupId:f}=d;if(!d)throw new Error(H(0xb0));f&&a[H(0x103)]['forEach'](g=>{const I=H;this[I(0xa5)]({'port':parseInt(g),'groupId':f});}),Log[H(0x13b)](H(0xab)+f+H(0x10d)+a[H(0x89)]);}catch(g){return Log[H(0x9c)](g),![];}return!![];}async[a140s(0x9f)](a){const J=a140s,b=[];try{const c={},d=new DescribeKeyPairsCommand(c),f=await client[J(0x80)](d);if(!f)throw J(0xb0);const {KeyPairs:g}=f;g?(g?.[J(0xd8)]((h,i)=>{const K=J;h[K(0x91)]&&b[K(0xb7)]({'id':i,'name':h[K(0x91)]});}),b[J(0xe9)]>0x0&&b[J(0xd8)](h=>{const L=J;h[L(0x89)]===a?.['suggestion']?Log[L(0x13b)](L(0x135)+h['id']+L(0x10d)+h[L(0x89)]):Log['notice'](L(0x135)+h['id']+L(0x10d)+h[L(0x89)]);})):Log[J(0x9c)](J(0xb4));}catch(h){Log[J(0x9c)](h);}return b;}async[a140s(0x13c)](a){const M=a140s;try{const b={'KeyName':a},c=new DeleteKeyPairCommand(b);await client[M(0x80)](c);}catch(d){Log[M(0x9c)](d),process[M(0xcf)](0x1);}}async['ec2describeInstances'](){const N=a140s,a=[];try{const b={'Filters':[{'Name':N(0x95),'Values':[N(0xc1)]}]},c=new DescribeInstancesCommand(b),d=await client[N(0x80)](c);d[N(0x81)]?.[N(0xd8)]((f,g)=>{const O=N;if(f?.['Instances']){const {InstanceId:h,PublicIpAddress:i,PrivateIpAddress:j,State:k,KeyName:l,Tags:m}=f[O(0xc7)][0x0],n=m?.[O(0x106)](({Key:o})=>o===O(0xf6));a[O(0xb7)]({'id':g,'instanceId':h,'privateIp':j,'publicIp':i,'status':k?.[O(0x138)],'name':l,'env':n?.[O(0x97)]});}}),a[N(0xe9)]>0x0?a[N(0xd8)](f=>{const P=N,g='ID:\x20'+f['id']+P(0x10d)+f[P(0x89)]+P(0xe3)+f[P(0x134)]+P(0xbd)+f['status']+P(0xbe)+f[P(0xb5)]+P(0xcb)+f[P(0x12b)]+P(0xbc)+f[P(0xec)];if(f[P(0xc5)]===P(0xfe))Log[P(0x9c)](g);else f[P(0xc5)]==='running'?Log[P(0x13b)](g):Log[P(0xfa)](g);}):Log[N(0x9c)](N(0xb2));}catch(f){Log[N(0x9c)](f);}return a;}async['ec2rebootInstance'](a){const Q=a140s;try{const b={'InstanceIds':[a[Q(0xb5)]]},c=new RebootInstancesCommand(b),d=await client['send'](c);return d[Q(0xfd)][Q(0x7f)]===0xc8&&Log[Q(0x13b)]('Instance\x20rebooted!'),d;}catch(f){Log[Q(0x9c)](f);}}async[a140s(0xe4)](){const R=a140s;let a='';Log[R(0xfa)]('**\x20Available\x20\x20VPCs\x20**');const b=new DescribeVpcsCommand({}),c=await client[R(0x80)](b),{Vpcs:d}=c,e=[];d&&d[R(0xd8)]((g,h)=>{const S=R;g[S(0xe6)]&&g['CidrBlock']&&e[S(0xb7)]({'id':h,'vpcId':g['VpcId'],'cidr':g[S(0xb6)]});});e[R(0xd8)](function(g){const T=R;console[T(0xf8)](T(0x135)+g['id']+T(0x118)+g[T(0x12d)]+'\x20CIDR:\x20'+g[T(0xd5)]);});const f=await Actions[R(0xa2)](R(0x100))||0x0;e[R(0xd8)](function(g){const U=R;g['id']==f&&(a=g[U(0x12d)],Log[U(0x13b)](U(0x93)+a+'\x0a'));});if(a==='')return Log['error'](R(0x101)),'';return a;}async[a140s(0xac)](){const V=a140s,a=await this[V(0xe5)]();if(a['length']===0x0)return Log['error'](V(0xd3)),null;const b=await Actions[V(0xa2)](V(0xc9));!b&&(Log[V(0x9c)](V(0xa9)),process['exit'](0x0));const c=a['find'](({id:d})=>{return d==parseInt(b);})||null;return c;}async[a140s(0x114)]({env:a}){const W=a140s,b=this['fsi']['getMakaProjectConfig'](),{appName:c}=b,d=c+'-'+a,f=await Actions['ask'](W(0x120)+d+']\x20')||d,{filePath:g}=await this['createKeyPairEC2Key']({'keyName':f,'env':a});try{const h=await Actions['confirm']('Would\x20you\x20like\x20to\x20update\x20the\x20ssh.json\x20config\x20file?',!![]);if(h)try{const i=a140e[W(0x85)](a140f['join'](W(0xd1),a,W(0xd2)),W(0x7d)),j=JSON[W(0xca)](i);j[W(0x13d)]=a140f[W(0x125)](W(0x8f),f+W(0x7a)),a140e[W(0x111)](a140f[W(0x125)](W(0xd1),a,W(0xd2)),JSON['stringify'](j,null,0x2));}catch(k){Log[W(0x9c)](k),Log[W(0x9c)](W(0xdb));}}catch(l){Log[W(0x9c)](l),process['exit'](0x1);}return{'keyName':f,'filePath':g};}async[a140s(0xf4)](a){const X=a140s,b=[],c={},d=new DescribeSecurityGroupsCommand(c),e=await client[X(0x80)](d),{SecurityGroups:f}=e;f&&f[X(0xd8)](function(i,j){const Y=X;i[Y(0x83)]&&i[Y(0xba)]&&b[Y(0xb7)]({'id':j,'name':i[Y(0x83)],'sgId':i[Y(0xba)]});});let g='',h=0x0;return b['forEach'](function(i){const Z=X;i['name']===a&&(g=i[Z(0xc6)],h=i['id']);}),{'sgList':b,'createdSgId':g,'listIndexId':h};}async[a140s(0x123)](a){const a0=a140s;try{const b={'GroupId':a},c=new DeleteSecurityGroupCommand(b);await client[a0(0x80)](c);}catch(d){Log[a0(0x9c)](d),process[a0(0xcf)](0x1);}}}
@@ -1 +1 @@
1
- function a141c(){var n=['294865wXCKvp','toString','716097gySyhG','(((.+)+)+)+$','2408626CtYnIP','search','apply','4qENUGt','6712279EZXBVC','4069728DiZPef','16613469BDTRzK','6LUpnNA','2169465oJRREG'];a141c=function(){return n;};return a141c();}(function(a,b){var k=a141d,c=a();while(!![]){try{var d=parseInt(k(0x142))/0x1+-parseInt(k(0x146))/0x2+-parseInt(k(0x144))/0x3*(parseInt(k(0x149))/0x4)+parseInt(k(0x141))/0x5+parseInt(k(0x140))/0x6*(-parseInt(k(0x14a))/0x7)+parseInt(k(0x14b))/0x8+parseInt(k(0x13f))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a141c,0xa6622));export var CountryCode;function a141d(a,b){var c=a141c();return a141d=function(d,e){d=d-0x13f;var f=c[d];return f;},a141d(a,b);}(function(c){var d=(function(){var f=!![];return function(g,h){var i=f?function(){var l=a141d;if(h){var j=h[l(0x148)](g,arguments);return h=null,j;}}:function(){};return f=![],i;};}()),e=d(this,function(){var m=a141d;return e[m(0x143)]()[m(0x147)](m(0x145))['toString']()['constructor'](e)[m(0x147)](m(0x145));});e(),c['AC']='AC',c['AD']='AD',c['AE']='AE',c['AF']='AF',c['AG']='AG',c['AI']='AI',c['AL']='AL',c['AM']='AM',c['AN']='AN',c['AO']='AO',c['AQ']='AQ',c['AR']='AR',c['AS']='AS',c['AT']='AT',c['AU']='AU',c['AW']='AW',c['AX']='AX',c['AZ']='AZ',c['BA']='BA',c['BB']='BB',c['BD']='BD',c['BE']='BE',c['BF']='BF',c['BG']='BG',c['BH']='BH',c['BI']='BI',c['BJ']='BJ',c['BL']='BL',c['BM']='BM',c['BN']='BN',c['BO']='BO',c['BQ']='BQ',c['BR']='BR',c['BS']='BS',c['BT']='BT',c['BV']='BV',c['BW']='BW',c['BY']='BY',c['BZ']='BZ',c['CA']='CA',c['CC']='CC',c['CD']='CD',c['CF']='CF',c['CG']='CG',c['CH']='CH',c['CI']='CI',c['CK']='CK',c['CL']='CL',c['CM']='CM',c['CN']='CN',c['CO']='CO',c['CR']='CR',c['CU']='CU',c['CV']='CV',c['CW']='CW',c['CX']='CX',c['CY']='CY',c['CZ']='CZ',c['DE']='DE',c['DJ']='DJ',c['DK']='DK',c['DM']='DM',c['DO']='DO',c['DZ']='DZ',c['EC']='EC',c['EE']='EE',c['EG']='EG',c['EH']='EH',c['ER']='ER',c['ES']='ES',c['ET']='ET',c['FI']='FI',c['FJ']='FJ',c['FK']='FK',c['FM']='FM',c['FO']='FO',c['FR']='FR',c['GA']='GA',c['GB']='GB',c['GD']='GD',c['GE']='GE',c['GF']='GF',c['GG']='GG',c['GH']='GH',c['GI']='GI',c['GL']='GL',c['GM']='GM',c['GN']='GN',c['GP']='GP',c['GQ']='GQ',c['GR']='GR',c['GS']='GS',c['GT']='GT',c['GU']='GU',c['GW']='GW',c['GY']='GY',c['HK']='HK',c['HM']='HM',c['HN']='HN',c['HR']='HR',c['HT']='HT',c['HU']='HU',c['ID']='ID',c['IE']='IE',c['IL']='IL',c['IM']='IM',c['IN']='IN',c['IO']='IO',c['IQ']='IQ',c['IR']='IR',c['IS']='IS',c['IT']='IT',c['JE']='JE',c['JM']='JM',c['JO']='JO',c['JP']='JP',c['KE']='KE',c['KG']='KG',c['KH']='KH',c['KI']='KI',c['KM']='KM',c['KN']='KN',c['KP']='KP',c['KR']='KR',c['KW']='KW',c['KY']='KY',c['KZ']='KZ',c['LA']='LA',c['LB']='LB',c['LC']='LC',c['LI']='LI',c['LK']='LK',c['LR']='LR',c['LS']='LS',c['LT']='LT',c['LU']='LU',c['LV']='LV',c['LY']='LY',c['MA']='MA',c['MC']='MC',c['MD']='MD',c['ME']='ME',c['MF']='MF',c['MG']='MG',c['MH']='MH',c['MK']='MK',c['ML']='ML',c['MM']='MM',c['MN']='MN',c['MO']='MO',c['MP']='MP',c['MQ']='MQ',c['MR']='MR',c['MS']='MS',c['MT']='MT',c['MU']='MU',c['MV']='MV',c['MW']='MW',c['MX']='MX',c['MY']='MY',c['MZ']='MZ',c['NA']='NA',c['NC']='NC',c['NE']='NE',c['NF']='NF',c['NG']='NG',c['NI']='NI',c['NL']='NL',c['NO']='NO',c['NP']='NP',c['NR']='NR',c['NU']='NU',c['NZ']='NZ',c['OM']='OM',c['PA']='PA',c['PE']='PE',c['PF']='PF',c['PG']='PG',c['PH']='PH',c['PK']='PK',c['PL']='PL',c['PM']='PM',c['PN']='PN',c['PR']='PR',c['PS']='PS',c['PT']='PT',c['PW']='PW',c['PY']='PY',c['QA']='QA',c['RE']='RE',c['RO']='RO',c['RS']='RS',c['RU']='RU',c['RW']='RW',c['SA']='SA',c['SB']='SB',c['SC']='SC',c['SD']='SD',c['SE']='SE',c['SG']='SG',c['SH']='SH',c['SI']='SI',c['SJ']='SJ',c['SK']='SK',c['SL']='SL',c['SM']='SM',c['SN']='SN',c['SO']='SO',c['SR']='SR',c['SS']='SS',c['ST']='ST',c['SV']='SV',c['SX']='SX',c['SY']='SY',c['SZ']='SZ',c['TC']='TC',c['TD']='TD',c['TF']='TF',c['TG']='TG',c['TH']='TH',c['TJ']='TJ',c['TK']='TK',c['TL']='TL',c['TM']='TM',c['TN']='TN',c['TO']='TO',c['TP']='TP',c['TR']='TR',c['TT']='TT',c['TV']='TV',c['TW']='TW',c['TZ']='TZ',c['UA']='UA',c['UG']='UG',c['US']='US',c['UY']='UY',c['UZ']='UZ',c['VA']='VA',c['VC']='VC',c['VE']='VE',c['VG']='VG',c['VI']='VI',c['VN']='VN',c['VU']='VU',c['WF']='WF',c['WS']='WS',c['YE']='YE',c['YT']='YT',c['ZA']='ZA',c['ZM']='ZM',c['ZW']='ZW';}(CountryCode||(CountryCode={})));
1
+ (function(a,b){var k=a141d,c=a();while(!![]){try{var d=parseInt(k(0x1b9))/0x1+-parseInt(k(0x1b7))/0x2*(parseInt(k(0x1bd))/0x3)+parseInt(k(0x1c2))/0x4+parseInt(k(0x1b6))/0x5+parseInt(k(0x1ba))/0x6+parseInt(k(0x1c3))/0x7+-parseInt(k(0x1bc))/0x8*(parseInt(k(0x1be))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a141c,0xf30fb));function a141d(a,b){var c=a141c();return a141d=function(d,e){d=d-0x1b6;var f=c[d];return f;},a141d(a,b);}export var CountryCode;(function(c){var d=(function(){var f=!![];return function(g,h){var i=f?function(){var l=a141d;if(h){var j=h[l(0x1c1)](g,arguments);return h=null,j;}}:function(){};return f=![],i;};}()),e=d(this,function(){var m=a141d;return e[m(0x1bf)]()['search']('(((.+)+)+)+$')['toString']()[m(0x1bb)](e)[m(0x1b8)](m(0x1c0));});e(),c['AC']='AC',c['AD']='AD',c['AE']='AE',c['AF']='AF',c['AG']='AG',c['AI']='AI',c['AL']='AL',c['AM']='AM',c['AN']='AN',c['AO']='AO',c['AQ']='AQ',c['AR']='AR',c['AS']='AS',c['AT']='AT',c['AU']='AU',c['AW']='AW',c['AX']='AX',c['AZ']='AZ',c['BA']='BA',c['BB']='BB',c['BD']='BD',c['BE']='BE',c['BF']='BF',c['BG']='BG',c['BH']='BH',c['BI']='BI',c['BJ']='BJ',c['BL']='BL',c['BM']='BM',c['BN']='BN',c['BO']='BO',c['BQ']='BQ',c['BR']='BR',c['BS']='BS',c['BT']='BT',c['BV']='BV',c['BW']='BW',c['BY']='BY',c['BZ']='BZ',c['CA']='CA',c['CC']='CC',c['CD']='CD',c['CF']='CF',c['CG']='CG',c['CH']='CH',c['CI']='CI',c['CK']='CK',c['CL']='CL',c['CM']='CM',c['CN']='CN',c['CO']='CO',c['CR']='CR',c['CU']='CU',c['CV']='CV',c['CW']='CW',c['CX']='CX',c['CY']='CY',c['CZ']='CZ',c['DE']='DE',c['DJ']='DJ',c['DK']='DK',c['DM']='DM',c['DO']='DO',c['DZ']='DZ',c['EC']='EC',c['EE']='EE',c['EG']='EG',c['EH']='EH',c['ER']='ER',c['ES']='ES',c['ET']='ET',c['FI']='FI',c['FJ']='FJ',c['FK']='FK',c['FM']='FM',c['FO']='FO',c['FR']='FR',c['GA']='GA',c['GB']='GB',c['GD']='GD',c['GE']='GE',c['GF']='GF',c['GG']='GG',c['GH']='GH',c['GI']='GI',c['GL']='GL',c['GM']='GM',c['GN']='GN',c['GP']='GP',c['GQ']='GQ',c['GR']='GR',c['GS']='GS',c['GT']='GT',c['GU']='GU',c['GW']='GW',c['GY']='GY',c['HK']='HK',c['HM']='HM',c['HN']='HN',c['HR']='HR',c['HT']='HT',c['HU']='HU',c['ID']='ID',c['IE']='IE',c['IL']='IL',c['IM']='IM',c['IN']='IN',c['IO']='IO',c['IQ']='IQ',c['IR']='IR',c['IS']='IS',c['IT']='IT',c['JE']='JE',c['JM']='JM',c['JO']='JO',c['JP']='JP',c['KE']='KE',c['KG']='KG',c['KH']='KH',c['KI']='KI',c['KM']='KM',c['KN']='KN',c['KP']='KP',c['KR']='KR',c['KW']='KW',c['KY']='KY',c['KZ']='KZ',c['LA']='LA',c['LB']='LB',c['LC']='LC',c['LI']='LI',c['LK']='LK',c['LR']='LR',c['LS']='LS',c['LT']='LT',c['LU']='LU',c['LV']='LV',c['LY']='LY',c['MA']='MA',c['MC']='MC',c['MD']='MD',c['ME']='ME',c['MF']='MF',c['MG']='MG',c['MH']='MH',c['MK']='MK',c['ML']='ML',c['MM']='MM',c['MN']='MN',c['MO']='MO',c['MP']='MP',c['MQ']='MQ',c['MR']='MR',c['MS']='MS',c['MT']='MT',c['MU']='MU',c['MV']='MV',c['MW']='MW',c['MX']='MX',c['MY']='MY',c['MZ']='MZ',c['NA']='NA',c['NC']='NC',c['NE']='NE',c['NF']='NF',c['NG']='NG',c['NI']='NI',c['NL']='NL',c['NO']='NO',c['NP']='NP',c['NR']='NR',c['NU']='NU',c['NZ']='NZ',c['OM']='OM',c['PA']='PA',c['PE']='PE',c['PF']='PF',c['PG']='PG',c['PH']='PH',c['PK']='PK',c['PL']='PL',c['PM']='PM',c['PN']='PN',c['PR']='PR',c['PS']='PS',c['PT']='PT',c['PW']='PW',c['PY']='PY',c['QA']='QA',c['RE']='RE',c['RO']='RO',c['RS']='RS',c['RU']='RU',c['RW']='RW',c['SA']='SA',c['SB']='SB',c['SC']='SC',c['SD']='SD',c['SE']='SE',c['SG']='SG',c['SH']='SH',c['SI']='SI',c['SJ']='SJ',c['SK']='SK',c['SL']='SL',c['SM']='SM',c['SN']='SN',c['SO']='SO',c['SR']='SR',c['SS']='SS',c['ST']='ST',c['SV']='SV',c['SX']='SX',c['SY']='SY',c['SZ']='SZ',c['TC']='TC',c['TD']='TD',c['TF']='TF',c['TG']='TG',c['TH']='TH',c['TJ']='TJ',c['TK']='TK',c['TL']='TL',c['TM']='TM',c['TN']='TN',c['TO']='TO',c['TP']='TP',c['TR']='TR',c['TT']='TT',c['TV']='TV',c['TW']='TW',c['TZ']='TZ',c['UA']='UA',c['UG']='UG',c['US']='US',c['UY']='UY',c['UZ']='UZ',c['VA']='VA',c['VC']='VC',c['VE']='VE',c['VG']='VG',c['VI']='VI',c['VN']='VN',c['VU']='VU',c['WF']='WF',c['WS']='WS',c['YE']='YE',c['YT']='YT',c['ZA']='ZA',c['ZM']='ZM',c['ZW']='ZW';}(CountryCode||(CountryCode={})));function a141c(){var n=['search','1079355bJksAh','11057988PDDedN','constructor','30381544tQnVuK','3MhtCds','9nHmoMG','toString','(((.+)+)+)+$','apply','972840OaQRoU','7446152qUsaoF','6652600PfjqCG','1533094PusEQR'];a141c=function(){return n;};return a141c();}
@@ -1 +1 @@
1
- const a142m=a142d;(function(a,b){const j=a142d,c=a();while(!![]){try{const d=-parseInt(j(0x142))/0x1+-parseInt(j(0x14a))/0x2+parseInt(j(0x138))/0x3+-parseInt(j(0x134))/0x4+-parseInt(j(0x144))/0x5+parseInt(j(0x136))/0x6*(parseInt(j(0x139))/0x7)+parseInt(j(0x13f))/0x8*(parseInt(j(0x147))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a142c,0x35eba));function a142c(){const q=['awsLogin','constructor','37710RfENKO','.dkr.ecr.','error','594272WYgqXe','1684020KnEjFO','\x20|\x20docker\x20login\x20--username\x20AWS\x20--password-stdin\x20','72FZYKfM','inherit','1268928SJPMtY','113407KkQvdZ','search','docker\x20','apply','.amazonaws.com/','toString','1552xEddBP','join','tag','311799zIzyDp','.amazonaws.com','897250lXNeIF'];a142c=function(){return q;};return a142c();}const a142b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a142d;if(c){const e=c[k(0x13c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a142a=a142b(this,function(){const l=a142d;return a142a[l(0x13e)]()[l(0x13a)]('(((.+)+)+)+$')[l(0x13e)]()[l(0x146)](a142a)['search']('(((.+)+)+)+$');});a142a();import{execSync}from'child_process';import{Log}from'../log/log.class.js';function a142d(a,b){const c=a142c();return a142d=function(d,e){d=d-0x134;let f=c[d];return f;},a142d(a,b);}export class Docker{static[a142m(0x141)]({imageName:a,awsAccountId:b,region:c,repoName:d}){const n=a142m;try{const f=[n(0x141),a,b+'.dkr.ecr.'+c+n(0x13d)+d],g='docker\x20'+f[n(0x140)]('\x20'),h=execSync(g,{'stdio':n(0x137)})[n(0x13e)]();return h;}catch(i){return Log[n(0x149)](i),'';}}static[a142m(0x145)]({awsAccountId:a,region:b,password:c}){const o=a142m;try{const d='echo\x20'+c+o(0x135)+a+o(0x148)+b+o(0x143);return execSync(d,{'stdio':o(0x137)}),d;}catch(f){return Log[o(0x149)](f),'';}}static['pushImage']({awsAccountId:a,region:b,repoName:c}){const p=a142m;try{const d=['push',a+p(0x148)+b+p(0x13d)+c],f=p(0x13b)+d[p(0x140)]('\x20'),g=execSync(f,{'stdio':p(0x137)})[p(0x13e)]();return g;}catch(h){return Log[p(0x149)](h),'';}}}
1
+ const a142m=a142d;function a142d(a,b){const c=a142c();return a142d=function(d,e){d=d-0x197;let f=c[d];return f;},a142d(a,b);}(function(a,b){const j=a142d,c=a();while(!![]){try{const d=parseInt(j(0x1a4))/0x1+-parseInt(j(0x19f))/0x2+-parseInt(j(0x1a5))/0x3+-parseInt(j(0x1ab))/0x4*(parseInt(j(0x1a3))/0x5)+-parseInt(j(0x197))/0x6*(parseInt(j(0x1a9))/0x7)+parseInt(j(0x1ae))/0x8+-parseInt(j(0x1ac))/0x9*(-parseInt(j(0x19a))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a142c,0xcc030));const a142b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a142d;if(c){const e=c[k(0x1a6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a142a=a142b(this,function(){const l=a142d;return a142a[l(0x1aa)]()[l(0x19d)]('(((.+)+)+)+$')[l(0x1aa)]()[l(0x1a7)](a142a)[l(0x19d)]('(((.+)+)+)+$');});a142a();import{execSync}from'child_process';function a142c(){const q=['152706AaAfWe','.dkr.ecr.','inherit','610zbCMKl','\x20|\x20docker\x20login\x20--username\x20AWS\x20--password-stdin\x20','tag','search','error','2637604BqgJzG','echo\x20','join','.amazonaws.com/','780955aVDvPh','1063061uAFumM','4120515syqbwt','apply','constructor','pushImage','434LVZFts','toString','8XvvPWT','584937uALJLw','push','3125192EEwqpO'];a142c=function(){return q;};return a142c();}import{Log}from'../log/log.class.js';export class Docker{static[a142m(0x19c)]({imageName:a,awsAccountId:b,region:c,repoName:d}){const n=a142m;try{const f=[n(0x19c),a,b+n(0x198)+c+n(0x1a2)+d],g='docker\x20'+f['join']('\x20'),h=execSync(g,{'stdio':n(0x199)})[n(0x1aa)]();return h;}catch(i){return Log[n(0x19e)](i),'';}}static['awsLogin']({awsAccountId:a,region:b,password:c}){const o=a142m;try{const d=o(0x1a0)+c+o(0x19b)+a+'.dkr.ecr.'+b+'.amazonaws.com';return execSync(d,{'stdio':o(0x199)}),d;}catch(f){return Log['error'](f),'';}}static[a142m(0x1a8)]({awsAccountId:a,region:b,repoName:c}){const p=a142m;try{const d=[p(0x1ad),a+'.dkr.ecr.'+b+p(0x1a2)+c],f='docker\x20'+d[p(0x1a1)]('\x20'),g=execSync(f,{'stdio':p(0x199)})['toString']();return g;}catch(h){return Log[p(0x19e)](h),'';}}}
@@ -1 +1 @@
1
- (function(a,b){var f=a143d,c=a();while(!![]){try{var d=parseInt(f(0x9f))/0x1*(parseInt(f(0xa1))/0x2)+-parseInt(f(0x99))/0x3*(-parseInt(f(0x93))/0x4)+-parseInt(f(0x9e))/0x5+-parseInt(f(0x9b))/0x6*(parseInt(f(0x9d))/0x7)+parseInt(f(0x95))/0x8+parseInt(f(0xa0))/0x9+-parseInt(f(0x96))/0xa*(-parseInt(f(0x97))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a143c,0x4d2e1));function a143d(a,b){var c=a143c();return a143d=function(d,e){d=d-0x93;var f=c[d];return f;},a143d(a,b);}var a143b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a143d;if(c){var e=c[g(0x94)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a143a=a143b(this,function(){var h=a143d;return a143a['toString']()[h(0x9c)]('(((.+)+)+)+$')['toString']()[h(0x9a)](a143a)[h(0x9c)](h(0x98));});a143a();export{};function a143c(){var i=['apply','723040tPexfz','20dFNXmK','1023781NhACTQ','(((.+)+)+)+$','71301BkWrPR','constructor','114cQEqzr','search','140077kUXsoa','1465000hglnyb','29582daVbjT','2041740gWiYLy','20dYtQPs','32wkHCaA'];a143c=function(){return i;};return a143c();}
1
+ (function(a,b){var f=a143d,c=a();while(!![]){try{var d=-parseInt(f(0x191))/0x1*(-parseInt(f(0x18e))/0x2)+parseInt(f(0x18d))/0x3+-parseInt(f(0x18f))/0x4+-parseInt(f(0x19a))/0x5+parseInt(f(0x197))/0x6+-parseInt(f(0x195))/0x7*(parseInt(f(0x196))/0x8)+-parseInt(f(0x194))/0x9*(-parseInt(f(0x18c))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a143c,0x90393));var a143b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a143d;if(c){var e=c[g(0x192)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a143a=a143b(this,function(){var h=a143d;return a143a[h(0x198)]()[h(0x199)](h(0x190))[h(0x198)]()[h(0x193)](a143a)['search'](h(0x190));});a143a();function a143c(){var i=['toString','search','5239330ZpLsTY','20zIduDO','562053VBkzQa','1742ExIbMY','2114928DEWhQU','(((.+)+)+)+$','179lwNqlH','apply','constructor','9182826uOzOzu','187607jTjBbY','344DMcqRQ','5615352aDyeiq'];a143c=function(){return i;};return a143c();}function a143d(a,b){var c=a143c();return a143d=function(d,e){d=d-0x18c;var f=c[d];return f;},a143d(a,b);}export{};