@maka/maka-cli 4.13.6 → 4.13.8

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 (163) 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/aws/_index.js +1 -1
  109. package/bundle/obf/src/generators/aws/aws.js +1 -1
  110. package/bundle/obf/src/generators/aws/cloudformation/_index.js +1 -1
  111. package/bundle/obf/src/generators/aws/cloudformation/cloudformation.js +1 -1
  112. package/bundle/obf/src/generators/aws/cloudformation/create-ec2-instance.cf.gen.js +1 -1
  113. package/bundle/obf/src/generators/collection.js +1 -1
  114. package/bundle/obf/src/generators/component.js +1 -1
  115. package/bundle/obf/src/generators/config.js +1 -1
  116. package/bundle/obf/src/generators/dbc.js +1 -1
  117. package/bundle/obf/src/generators/dockerfile.js +1 -1
  118. package/bundle/obf/src/generators/hook.js +1 -1
  119. package/bundle/obf/src/generators/kits/_index.js +1 -1
  120. package/bundle/obf/src/generators/kits/auth/_index.js +1 -1
  121. package/bundle/obf/src/generators/kits/auth/auth.generator.js +1 -1
  122. package/bundle/obf/src/generators/kits/auth/basic-meteor.auth.gen.js +1 -1
  123. package/bundle/obf/src/generators/kits/auth/provider.auth.gen.js +1 -1
  124. package/bundle/obf/src/generators/kits/esri/_index.js +1 -1
  125. package/bundle/obf/src/generators/kits/esri/esri.generator.js +1 -1
  126. package/bundle/obf/src/generators/kits/esri/map.esri.gen.js +1 -1
  127. package/bundle/obf/src/generators/kits/kit.js +1 -1
  128. package/bundle/obf/src/generators/kits/mui/_index.js +1 -1
  129. package/bundle/obf/src/generators/kits/mui/auth.mui.gen.js +1 -1
  130. package/bundle/obf/src/generators/kits/mui/frame.mui.gen.js +1 -1
  131. package/bundle/obf/src/generators/kits/mui/mui.generator.js +1 -1
  132. package/bundle/obf/src/generators/layout.js +1 -1
  133. package/bundle/obf/src/generators/maka.gen.js +1 -1
  134. package/bundle/obf/src/generators/methods.js +1 -1
  135. package/bundle/obf/src/generators/package.js +1 -1
  136. package/bundle/obf/src/generators/page.js +1 -1
  137. package/bundle/obf/src/generators/publish.js +1 -1
  138. package/bundle/obf/src/generators/route.js +1 -1
  139. package/bundle/obf/src/generators/service.js +1 -1
  140. package/bundle/obf/src/generators/services/_index.js +1 -1
  141. package/bundle/obf/src/generators/services/openssl.js +1 -1
  142. package/bundle/obf/src/generators/services/translation.js +1 -1
  143. package/bundle/obf/src/maka.js +1 -1
  144. package/bundle/obf/src/tool.js +1 -1
  145. package/bundle/obf/src/tools/actions/actions.class.js +1 -1
  146. package/bundle/obf/src/tools/aws/aws.class.js +1 -1
  147. package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
  148. package/bundle/obf/src/tools/docker/docker.class.js +1 -1
  149. package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
  150. package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
  151. package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
  152. package/bundle/obf/src/tools/https/https.class.js +1 -1
  153. package/bundle/obf/src/tools/https/https.interface.js +1 -1
  154. package/bundle/obf/src/tools/log/log.class.js +1 -1
  155. package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
  156. package/bundle/obf/src/tools/options/options.class.js +1 -1
  157. package/bundle/obf/src/tools/progress/progress.class.js +1 -1
  158. package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
  159. package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
  160. package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
  161. package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
  162. package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
  163. package/package.json +1 -1
@@ -1 +1 @@
1
- const a135m=a135d;(function(a,b){const j=a135d,c=a();while(!![]){try{const d=-parseInt(j(0x158))/0x1*(parseInt(j(0x16a))/0x2)+parseInt(j(0x16d))/0x3*(-parseInt(j(0x162))/0x4)+parseInt(j(0x181))/0x5*(-parseInt(j(0x156))/0x6)+parseInt(j(0x198))/0x7*(parseInt(j(0x187))/0x8)+parseInt(j(0x171))/0x9*(-parseInt(j(0x186))/0xa)+parseInt(j(0x18d))/0xb*(-parseInt(j(0x199))/0xc)+-parseInt(j(0x185))/0xd*(-parseInt(j(0x177))/0xe);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a135c,0x44bef));const a135b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a135d;if(c){const e=c[k(0x18c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a135a=a135b(this,function(){const l=a135d;return a135a[l(0x170)]()[l(0x1a1)](l(0x15c))[l(0x170)]()[l(0x165)](a135a)[l(0x1a1)](l(0x15c));});function a135d(a,b){const c=a135c();return a135d=function(d,e){d=d-0x154;let f=c[d];return f;},a135d(a,b);}a135a();import a135e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a135c(){const p=['css','import\x20\x27./','apply','11OFsWPS','pathFromProject','warn','string','none','api','component','maka\x20g:page\x20todos/todos-item','withHooks','route','test','21xjzHEU','2046300DpnBEm','template/template.css','relative','installNpmPackage','template','processAndRunGenerator','setTemplate','withHook','search','page','baseDir','layouts','resourceName','964878lxxmSn','true','5XjIBaD','fileName','component/component.js','root','(((.+)+)+)+$','withValue','.js','components','template/template.html','ramda','574384DKcmos','.html','/imports/ui/','constructor','findAppDirectory','ssr','Updating\x20npm\x20packages\x20...','test/test.js','90304DdUxPx','getMakaProjectConfig','withTranslations','3TMKhaG','react','create','toString','213147xXkmkV','html','engines','checkNpmPackage','store','features','28154gCBLoV','client','theme','.app-tests.js','fsi','layout','hooks','.css','hasOwnProperty','assign','15ersUvU','dir','maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','/imports/ui/pages','7761cCLwmU','110XfGrqk','970264JLTRmt','injectAtBeginningOfFile','className'];a135c=function(){return p;};return a135c();}import a135f from'../generators/maka.gen.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['p'];Generator[a135m(0x16f)]({'name':a135m(0x1a2),'aliases':aliases,'usage':a135m(0x183),'shortDesc':'Generate\x20a\x20page.','validOpts':[{'name':a135m(0x1a3),'values':[a135m(0x17d),a135m(0x15f),'pages',a135m(0x154)]},{'name':'withHook','boolFlag':!![]}],'examples':[a135m(0x194)]},async function(a,b){const n=a135m,c=b[n(0x1a3)]?n(0x164)+b[n(0x1a3)]:n(0x184),d=this[n(0x17b)][n(0x166)](),e=this[n(0x17b)]['pathFromApp']({'pathParts':[c,b[n(0x182)],paramCase(b[n(0x155)]),paramCase(b[n(0x155)])]}),f=this[n(0x17b)][n(0x16b)]();let g='';return await this[n(0x17b)][n(0x15d)](f,async()=>{const o=n;typeof f['template'][o(0x172)]==='string'&&(f['template'][o(0x172)]=f[o(0x19d)][o(0x172)]===o(0x157)?!![]:![],this[o(0x17b)][o(0x19f)]('html',f[o(0x19d)][o(0x172)]));typeof f['template'][o(0x197)]==='string'&&(f['template'][o(0x197)]=f[o(0x19d)][o(0x197)]===o(0x157)?!![]:![],this['fsi'][o(0x19f)](o(0x197),f[o(0x19d)][o(0x197)]));typeof f['template']['css']===o(0x190)&&(f[o(0x19d)]['css']=f[o(0x19d)][o(0x18a)]===o(0x157)?!![]:![],this[o(0x17b)][o(0x19f)](o(0x18a),f[o(0x19d)][o(0x18a)]));typeof f[o(0x19d)]['js']===o(0x190)&&(f[o(0x19d)]['js']=f[o(0x19d)]['js']===o(0x157)?!![]:![],this[o(0x17b)][o(0x19f)]('js',f['template']['js']));!f[o(0x176)]&&(f['features']={});!b[o(0x15b)]&&!this['fsi'][o(0x174)](o(0x161))&&(Log[o(0x18f)](o(0x168)),this['fsi'][o(0x19c)](o(0x161),{'cwd':d}));const h={'name':pascalCase(b[o(0x155)]),'myPath':a135e[o(0x19b)](this['fsi'][o(0x18e)]({}),e),'cssCaseName':paramCase(b[o(0x155)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b['resourceName']),'fileName':paramCase(b[o(0x155)]),'graphql':f[o(0x173)]['graphql'],'features':f['features'],'client':f[o(0x173)][o(0x178)],'api':f[o(0x173)][o(0x192)],'ssr':f['engines'][o(0x167)],'isStore':b[o(0x17f)](o(0x175)),'isComponent':b[o(0x17f)](o(0x193)),'isLayout':b[o(0x17f)](o(0x17c)),'withTranslations':f[o(0x176)][o(0x16c)],'test':f[o(0x173)][o(0x197)],'theme':f[o(0x173)][o(0x179)]};f[o(0x19d)][o(0x172)]&&await this[o(0x17b)][o(0x19d)]({'srcPath':o(0x160),'destPath':e+o(0x163),'context':h,'config':f});f[o(0x176)]?.[o(0x195)]||b[o(0x1a0)]?await this[o(0x17b)]['template']({'srcPath':'hook/hook.js','destPath':e+'.js','framework':o(0x16e),'context':h,'config':f}):await this[o(0x17b)]['template']({'srcPath':o(0x15a),'destPath':e+o(0x15e),'framework':o(0x16e),'context':h,'config':f});f['engines'][o(0x197)]!==o(0x191)&&await this[o(0x17b)]['template']({'srcPath':o(0x169),'destPath':e+o(0x17a),'framework':o(0x16e),'context':h,'config':f});f['template'][o(0x18a)]&&await this[o(0x17b)][o(0x19d)]({'srcPath':o(0x19a),'destPath':e+o(0x17e),'context':Object[o(0x180)]({},h,{'className':paramCase(b[o(0x155)])}),'config':f});f[o(0x173)][o(0x178)]!==o(0x16e)&&f[o(0x173)][o(0x178)]!=='vanilla'?(f[o(0x19d)]['css']&&await this['fsi'][o(0x188)]({'filePath':e+'.'+f[o(0x173)]['js'],'content':'import\x20\x27./'+h[o(0x159)]+'.'+f['engines'][o(0x172)]+'\x27;\x0a'+'import\x20\x27./'+h[o(0x159)]+'.'+f[o(0x173)][o(0x18a)]+'\x27;'}),!f[o(0x19d)][o(0x18a)]&&await this[o(0x17b)][o(0x188)]({'filePath':e+'.'+f['engines']['js'],'content':o(0x18b)+h[o(0x159)]+'.'+f[o(0x173)][o(0x172)]+'\x27;'})):f[o(0x19d)][o(0x18a)]&&await this['fsi'][o(0x188)]({'filePath':e+'.'+f[o(0x173)]['js'],'content':o(0x18b)+h['fileName']+'.'+f[o(0x173)][o(0x18a)]+'\x27;'});const i=b[o(0x182)]?'/'+b[o(0x182)]+'/':'/';g=''+c+i+h['fileName']+'/'+h[o(0x159)],await this['fsi']['injectTemplateModule'](h[o(0x189)],f,g),!b[o(0x15b)]&&await a135f[o(0x19e)](o(0x196),[i+b[o(0x155)]],b);}),g+'.'+f['engines']['js'];});
1
+ const a135m=a135d;(function(a,b){const j=a135d,c=a();while(!![]){try{const d=-parseInt(j(0x20c))/0x1+-parseInt(j(0x200))/0x2*(parseInt(j(0x1e2))/0x3)+parseInt(j(0x1f7))/0x4*(-parseInt(j(0x1d7))/0x5)+-parseInt(j(0x1f8))/0x6*(-parseInt(j(0x1d5))/0x7)+-parseInt(j(0x208))/0x8+-parseInt(j(0x20d))/0x9+parseInt(j(0x1fb))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a135c,0xefb8c));const a135b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a135d;if(c){const e=c[k(0x206)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a135a=a135b(this,function(){const l=a135d;return a135a['toString']()[l(0x1cc)]('(((.+)+)+)+$')[l(0x1dc)]()[l(0x1e3)](a135a)[l(0x1cc)](l(0x1d1));});a135a();import a135e from'path';import{Generator}from'../generator.js';function a135d(a,b){const c=a135c();return a135d=function(d,e){d=d-0x1cb;let f=c[d];return f;},a135d(a,b);}import{Log}from'../tools/log/log.class.js';function a135c(){const p=['checkNpmPackage','test','51892270HhLlFU','assign','route','test/test.js','css','410RpdROE','baseDir','root','.js','installNpmPackage','create','apply','maka\x20g:page\x20todos/todos-item','13136832bNTXLj','Generate\x20a\x20page.','pages','hooks','1824832HESkLy','720630atbyrq','.css','hook/hook.js','search','features','none','fsi','setTemplate','(((.+)+)+)+$','string','graphql','ramda','175XKgESq','relative','97315QiPqId','template/template.html','html','component','withHook','toString','/imports/ui/pages','pathFromProject','resourceName','injectAtBeginningOfFile','maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','9423CwHrQL','constructor','template','.html','react','Updating\x20npm\x20packages\x20...','/imports/ui/','fileName','findAppDirectory','dir','processAndRunGenerator','true','pathFromApp','import\x20\x27./','engines','hasOwnProperty','template/template.css','component/component.js','\x27;\x0a','client','theme','28cJcWnv','28758QKKcXI'];a135c=function(){return p;};return a135c();}import a135f from'../generators/maka.gen.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['p'];Generator[a135m(0x205)]({'name':'page','aliases':aliases,'usage':a135m(0x1e1),'shortDesc':a135m(0x209),'validOpts':[{'name':a135m(0x201),'values':[a135m(0x20b),'components',a135m(0x20a),'layouts']},{'name':a135m(0x1db),'boolFlag':!![]}],'examples':[a135m(0x207)]},async function(a,b){const n=a135m,c=b[n(0x201)]?n(0x1e8)+b[n(0x201)]:n(0x1dd),d=this[n(0x1cf)][n(0x1ea)](),e=this[n(0x1cf)][n(0x1ee)]({'pathParts':[c,b[n(0x1eb)],paramCase(b[n(0x1df)]),paramCase(b[n(0x1df)])]}),f=this[n(0x1cf)]['getMakaProjectConfig']();let g='';return await this['fsi']['withValue'](f,async()=>{const o=n;typeof f[o(0x1e4)][o(0x1d9)]===o(0x1d2)&&(f[o(0x1e4)][o(0x1d9)]=f[o(0x1e4)][o(0x1d9)]===o(0x1ed)?!![]:![],this[o(0x1cf)]['setTemplate'](o(0x1d9),f['template'][o(0x1d9)]));typeof f[o(0x1e4)]['test']===o(0x1d2)&&(f['template'][o(0x1fa)]=f[o(0x1e4)]['test']==='true'?!![]:![],this['fsi'][o(0x1d0)](o(0x1fa),f[o(0x1e4)]['test']));typeof f['template'][o(0x1ff)]===o(0x1d2)&&(f[o(0x1e4)][o(0x1ff)]=f[o(0x1e4)]['css']===o(0x1ed)?!![]:![],this['fsi'][o(0x1d0)](o(0x1ff),f[o(0x1e4)][o(0x1ff)]));typeof f[o(0x1e4)]['js']===o(0x1d2)&&(f['template']['js']=f['template']['js']===o(0x1ed)?!![]:![],this[o(0x1cf)][o(0x1d0)]('js',f[o(0x1e4)]['js']));!f[o(0x1cd)]&&(f[o(0x1cd)]={});!b[o(0x202)]&&!this['fsi'][o(0x1f9)](o(0x1d4))&&(Log['warn'](o(0x1e7)),this['fsi'][o(0x204)](o(0x1d4),{'cwd':d}));const h={'name':pascalCase(b[o(0x1df)]),'myPath':a135e[o(0x1d6)](this[o(0x1cf)][o(0x1de)]({}),e),'cssCaseName':paramCase(b[o(0x1df)]),'className':pascalCase(b[o(0x1df)]),'camelCaseName':camelCase(b[o(0x1df)]),'fileName':paramCase(b[o(0x1df)]),'graphql':f[o(0x1f0)][o(0x1d3)],'features':f[o(0x1cd)],'client':f[o(0x1f0)][o(0x1f5)],'api':f['engines']['api'],'ssr':f[o(0x1f0)]['ssr'],'isStore':b[o(0x1f1)]('store'),'isComponent':b['hasOwnProperty'](o(0x1da)),'isLayout':b[o(0x1f1)]('layout'),'withTranslations':f[o(0x1cd)]['withTranslations'],'test':f[o(0x1f0)][o(0x1fa)],'theme':f[o(0x1f0)][o(0x1f6)]};f[o(0x1e4)][o(0x1d9)]&&await this[o(0x1cf)][o(0x1e4)]({'srcPath':o(0x1d8),'destPath':e+o(0x1e5),'context':h,'config':f});f['features']?.['withHooks']||b[o(0x1db)]?await this[o(0x1cf)]['template']({'srcPath':o(0x1cb),'destPath':e+o(0x203),'framework':o(0x1e6),'context':h,'config':f}):await this[o(0x1cf)][o(0x1e4)]({'srcPath':o(0x1f3),'destPath':e+o(0x203),'framework':o(0x1e6),'context':h,'config':f});f[o(0x1f0)][o(0x1fa)]!==o(0x1ce)&&await this[o(0x1cf)][o(0x1e4)]({'srcPath':o(0x1fe),'destPath':e+'.app-tests.js','framework':o(0x1e6),'context':h,'config':f});f[o(0x1e4)][o(0x1ff)]&&await this['fsi']['template']({'srcPath':o(0x1f2),'destPath':e+o(0x20e),'context':Object[o(0x1fc)]({},h,{'className':paramCase(b[o(0x1df)])}),'config':f});f[o(0x1f0)][o(0x1f5)]!==o(0x1e6)&&f[o(0x1f0)][o(0x1f5)]!=='vanilla'?(f[o(0x1e4)]['css']&&await this[o(0x1cf)][o(0x1e0)]({'filePath':e+'.'+f[o(0x1f0)]['js'],'content':o(0x1ef)+h['fileName']+'.'+f[o(0x1f0)][o(0x1d9)]+o(0x1f4)+o(0x1ef)+h['fileName']+'.'+f[o(0x1f0)][o(0x1ff)]+'\x27;'}),!f['template'][o(0x1ff)]&&await this[o(0x1cf)][o(0x1e0)]({'filePath':e+'.'+f['engines']['js'],'content':'import\x20\x27./'+h[o(0x1e9)]+'.'+f[o(0x1f0)]['html']+'\x27;'})):f[o(0x1e4)][o(0x1ff)]&&await this['fsi'][o(0x1e0)]({'filePath':e+'.'+f[o(0x1f0)]['js'],'content':o(0x1ef)+h[o(0x1e9)]+'.'+f[o(0x1f0)]['css']+'\x27;'});const i=b[o(0x1eb)]?'/'+b[o(0x1eb)]+'/':'/';g=''+c+i+h[o(0x1e9)]+'/'+h[o(0x1e9)],await this[o(0x1cf)]['injectTemplateModule'](h['className'],f,g),!b['root']&&await a135f[o(0x1ec)](o(0x1fd),[i+b[o(0x1df)]],b);}),g+'.'+f['engines']['js'];});
@@ -1 +1 @@
1
- const a136p=a136d;(function(a,b){const m=a136d,c=a();while(!![]){try{const d=-parseInt(m(0x192))/0x1*(parseInt(m(0x1ac))/0x2)+parseInt(m(0x1a3))/0x3+-parseInt(m(0x1a2))/0x4+-parseInt(m(0x1a1))/0x5*(parseInt(m(0x1aa))/0x6)+parseInt(m(0x197))/0x7*(-parseInt(m(0x1a0))/0x8)+-parseInt(m(0x1a9))/0x9*(-parseInt(m(0x1af))/0xa)+parseInt(m(0x1a4))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a136c,0x59b02));function a136c(){const s=['260NKJuoX','apply','(((.+)+)+)+$','resourceName','fsi','globalPublish','engines','dir','withValue','18JorLLM','search','/imports/ui/','maka\x20g:publish\x20todos','exit','7riJkKa','error','template','create','toString','index.','maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','imports','/imports/startup/server/publications','4617584GHuIMh','235Oqlvhz','1877148LjudJe','1643649ENBmnm','21476730MmeiIS','import\x20\x27./publications','getMakaProjectConfig','baseDir','tsx','20637ULsptp','88848IRQRZa','publish/publish.js','50012JXJtzH','force','constructor'];a136c=function(){return s;};return a136c();}const a136b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a136d;if(c){const e=c[n(0x1b0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a136a=a136b(this,function(){const o=a136d;return a136a[o(0x19b)]()[o(0x193)](o(0x18b))[o(0x19b)]()[o(0x1ae)](a136a)[o(0x193)]('(((.+)+)+)+$');});a136a();import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';function a136d(a,b){const c=a136c();return a136d=function(d,e){d=d-0x18b;let f=c[d];return f;},a136d(a,b);}import{Log}from'../tools/log/log.class.js';Generator[a136p(0x19a)]({'name':'publish','aliases':['p'],'usage':a136p(0x19d),'shortDesc':'Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','validOpts':[a136p(0x1ad),a136p(0x18e)],'examples':[a136p(0x195)]},async function(a,b){const q=a136p;try{const c=b['force']||![],d=b[q(0x1a7)]?q(0x194)+b['baseDir']:q(0x19f),f=this['fsi'][q(0x1a6)](),g=paramCase(b[q(0x18c)]),h=this[q(0x18d)]['pathFromApp']({'pathParts':[d,b[q(0x190)],'',g]});let i='js';f[q(0x18f)]['js']===q(0x1a8)&&(i='ts');await this['fsi'][q(0x191)](f,async()=>{const r=q,l={'name':b[r(0x18c)],'collection':pascalCase(b['resourceName']),'noRename':!![],'globalPublish':b[r(0x18e)]};await this[r(0x18d)][r(0x199)]({'srcPath':r(0x1ab),'destPath':h+'.'+i,'context':l,'config':f,'force':c});});const j=this['fsi']['pathFromApp']({'pathParts':[q(0x19e),'startup','server',b['appPathPrefix'],q(0x19c)+f[q(0x18f)]['js']]}),k=b[q(0x190)]?'/'+b[q(0x190)]+'/':'/';return await this[q(0x18d)]['injectAtEndOfFile']({'filePath':j,'content':q(0x1a5)+k+g+'\x27;'}),h+'.'+i;}catch(l){Log[q(0x198)](l),process[q(0x196)](0x1);}});
1
+ const a136p=a136d;(function(a,b){const m=a136d,c=a();while(!![]){try{const d=-parseInt(m(0xa4))/0x1*(parseInt(m(0x93))/0x2)+parseInt(m(0x90))/0x3+-parseInt(m(0xaa))/0x4*(-parseInt(m(0x99))/0x5)+-parseInt(m(0x9a))/0x6*(parseInt(m(0xae))/0x7)+parseInt(m(0x8b))/0x8+parseInt(m(0x92))/0x9*(-parseInt(m(0xa9))/0xa)+-parseInt(m(0x8a))/0xb*(-parseInt(m(0x9d))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a136c,0xba347));const a136b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a136d;if(c){const e=c[n(0x98)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a136a=a136b(this,function(){const o=a136d;return a136a[o(0x8f)]()['search']('(((.+)+)+)+$')[o(0x8f)]()[o(0x9e)](a136a)[o(0x9f)]('(((.+)+)+)+$');});a136a();import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';function a136d(a,b){const c=a136c();return a136d=function(d,e){d=d-0x89;let f=c[d];return f;},a136d(a,b);}import{Log}from'../tools/log/log.class.js';Generator['create']({'name':a136p(0xa2),'aliases':['p'],'usage':a136p(0x96),'shortDesc':'Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','validOpts':[a136p(0xaf),a136p(0xac)],'examples':[a136p(0xa1)]},async function(a,b){const q=a136p;try{const c=b[q(0xaf)]||![],d=b[q(0x9b)]?q(0x95)+b[q(0x9b)]:q(0x8c),f=this['fsi'][q(0x94)](),g=paramCase(b[q(0xab)]),h=this[q(0xad)][q(0x89)]({'pathParts':[d,b[q(0x8d)],'',g]});let i='js';f['engines']['js']==='tsx'&&(i='ts');await this[q(0xad)]['withValue'](f,async()=>{const r=q,l={'name':b[r(0xab)],'collection':pascalCase(b['resourceName']),'noRename':!![],'globalPublish':b['globalPublish']};await this[r(0xad)][r(0x9c)]({'srcPath':'publish/publish.js','destPath':h+'.'+i,'context':l,'config':f,'force':c});});const j=this['fsi']['pathFromApp']({'pathParts':[q(0x97),q(0xa8),q(0xa7),b[q(0xa0)],q(0x8e)+f[q(0xa5)]['js']]}),k=b['dir']?'/'+b[q(0x8d)]+'/':'/';return await this[q(0xad)][q(0x91)]({'filePath':j,'content':'import\x20\x27./publications'+k+g+'\x27;'}),h+'.'+i;}catch(l){Log[q(0xa3)](l),process[q(0xa6)](0x1);}});function a136c(){const s=['32030xMZOpL','104zHohgw','resourceName','globalPublish','fsi','1764YzaBmM','force','pathFromApp','9196418HNWTqV','393736iIOxhK','/imports/startup/server/publications','dir','index.','toString','929925zFMqau','injectAtEndOfFile','45JldcJa','2GLFnXR','getMakaProjectConfig','/imports/ui/','maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','imports','apply','138865JsmqPF','24210LKwEao','baseDir','template','12QIEFCx','constructor','search','appPathPrefix','maka\x20g:publish\x20todos','publish','error','121798RwrIQZ','engines','exit','server','startup'];a136c=function(){return s;};return a136c();}
@@ -1 +1 @@
1
- const a137B=a137d;(function(a,b){const y=a137d,c=a();while(!![]){try{const d=parseInt(y(0x1b7))/0x1*(-parseInt(y(0x1b9))/0x2)+parseInt(y(0x1ad))/0x3*(parseInt(y(0x19d))/0x4)+parseInt(y(0x1dd))/0x5+parseInt(y(0x1a9))/0x6+-parseInt(y(0x1af))/0x7*(parseInt(y(0x1c3))/0x8)+-parseInt(y(0x194))/0x9*(-parseInt(y(0x1c4))/0xa)+-parseInt(y(0x1c9))/0xb*(parseInt(y(0x192))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a137c,0xafe6b));const a137b=(function(){let a=!![];return function(b,c){const d=a?function(){const z=a137d;if(c){const e=c[z(0x193)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a137a=a137b(this,function(){const A=a137d;return a137a[A(0x1d6)]()[A(0x1d1)]('(((.+)+)+)+$')[A(0x1d6)]()[A(0x190)](a137a)['search'](A(0x1aa));});function a137d(a,b){const c=a137c();return a137d=function(d,e){d=d-0x190;let f=c[d];return f;},a137d(a,b);}a137a();import a137e from'path';import{Generator}from'../generator.js';function a137c(){const J=['maka\x20g:route\x20todosIndex\x20todos','PrivateLayout','/imports/ui/pages','indexOf','url','resourceName','Invalid\x20directory\x20option\x20\x22','filter','injectAtEndOfFile','1858494zVOlUO','(((.+)+)+)+$','layout','warn','3bUbvCL','import\x20*\x20as\x20Component\x20from\x20\x27./templates\x27;','7VhsYFc','</Router>','routes.js','join','split','getMakaProjectConfig','layouts','/imports/ui/','232859bsfPcj','engines','6tBwKuG','maka\x20{generate,\x20g}:{route,\x20r}\x20[path/]<name>','injectIntoFile','pop','private','includes','fileContainsString','rewriteDestinationPathForEngine','pathFromProject','lib','9298072OGDWhC','10wGmDhS','error','injectAfterLineNumber','Please\x20specify\x20a\x20name\x20for\x20the\x20route.','route/route.js','15609hKTlWk','baseDir','withValue','const\x20publicRoutes\x20=\x20(<>','replace','maka\x20g:route\x20todosEdit\x20todos/:id/edit','readFileLines','templateContent','search','Scaffolding\x20for\x20a\x20Route.','<Router','\x0a\x09\x09','\x22*\x22','toString','pathFromApp','create','hooks','config','ssr','fsi','2940445AEFgSU','startup','maka\x20g:route\x20pages/lists/listIndex\x20lists','constructor','withTranslations','4188zmgPAi','apply','10700163XNiNgN','map','imports','client','length','\x20already\x20exists.\x20Skipping.','Valid\x20options\x20are:\x20','withHook','Adding\x20route\x20','3959252NDKiwF','only','templateName'];a137c=function(){return J;};return a137c();}import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['r'];Generator[a137B(0x1d8)]({'name':'route','aliases':aliases,'validOpts':[a137B(0x1bd),'layout',a137B(0x19e),'cwd',a137B(0x1da),'root',a137B(0x19b),'url',a137B(0x1ca)],'usage':a137B(0x1ba),'shortDesc':a137B(0x1d2),'examples':[a137B(0x1a0),a137B(0x1ce),'maka\x20g:route\x20usersShow\x20users/:id/show\x20--layout\x20userView',a137B(0x1df),'maka\x20g:route\x20pages/about']},async function(a,b){const C=a137B;try{const c=[C(0x1d9),'components','pages',C(0x1b5)];if(b[C(0x1ca)]&&!c[C(0x1be)](b['baseDir'])){Log[C(0x1c5)](C(0x1a6)+b['baseDir']+'\x22'),Log[C(0x1c5)](C(0x19a)+c[C(0x1b2)](',\x20'));throw new UsageError();}const d=this['fsi'][C(0x1b4)]();await this['fsi'][C(0x1cb)](d,async()=>{const D=C,f=b[D(0x1bd)]??![];let g=b['resourceName'][D(0x1b3)]('/')[D(0x1bc)]();if(!g){Log[D(0x1c5)](D(0x1c7));throw new UsageError();}g=pascalCase(g);let h=b[D(0x1a4)]?'/'+b['url']:'/'+b[D(0x1a5)];a[D(0x198)]>0x1&&(h='/'+a[D(0x1a7)](function(n){return n!=='/';})['join']('/')['toLowerCase']());h=h[D(0x1cd)](/\/\//g,'/');b[D(0x1ab)]&&(b[D(0x1ab)]=camelCase(b[D(0x1ab)]));const i=b[D(0x1ca)]?D(0x1b6)+b[D(0x1ca)]:D(0x1a2),j=a137e[D(0x1b2)](i,b['dir'],g,paramCase(g)),k={'name':g,'fileCase':paramCase(g),'camelCaseName':camelCase(g),'url':h,'layout':b[D(0x1ab)]||'MasterLayout','templatePath':j,'templateName':pascalCase(g),'client':d['engines'][D(0x197)],'newForm':![],'withTranslations':d['features'][D(0x191)]};f&&(k[D(0x1ab)]=D(0x1a1));let l,m;if(d[D(0x1b8)][D(0x197)]==='react'){if(d['engines'][D(0x1db)]==='true'){const r=this['fsi'][D(0x1d7)]({'pathParts':[D(0x196),D(0x1de),D(0x1c2),D(0x1b1)]});l=this[D(0x1dc)][D(0x1c0)]({'pathParts':[r],'config':d});}else{const s=this['fsi'][D(0x1d7)]({'pathParts':['imports','startup',D(0x197),D(0x1b1)]});l=this[D(0x1dc)][D(0x1c0)]({'pathParts':[s],'config':d});}const n=await this[D(0x1dc)][D(0x1bf)](l,g);if(n){Log[D(0x1ac)]('Route\x20'+g+D(0x199));return;}else{const t=this[D(0x1dc)][D(0x1c1)](l);Log['info'](D(0x19c)+g+'\x20to\x20'+l[D(0x1cd)](t,''));}const o=this['fsi']['readFileLines'](l)[D(0x195)]((u,v)=>{const E=D;return u[E(0x1be)](E(0x1ae))?v+0x1:null;})[D(0x1a7)](u=>u!==null);let p=this[D(0x1dc)][D(0x1cf)](l)[D(0x195)]((u,v)=>{const F=D;return u[F(0x1be)]('const\x20publicRoutes\x20=\x20(<>')?v+0x1:null;})[D(0x1a7)](u=>u!==null),q=this['fsi'][D(0x1cf)](l)[D(0x195)]((u,v)=>{return u['includes']('const\x20privateRoutes\x20=\x20(<>')?v+0x1:null;})['filter'](u=>u!==null);p[D(0x198)]>0x0&&q['length']>0x0&&(k['newForm']=!![]);m=this[D(0x1dc)][D(0x1d0)]({'srcPath':'route/route.js','framework':'react','context':k,'config':d});if(p[D(0x198)]>0x0||q[D(0x198)]>0x0){this['fsi'][D(0x1c6)]({'filePath':l,'content':m,'lineNumber':o[0x0]});if(f&&q[D(0x198)]>0x0)q=this[D(0x1dc)][D(0x1cf)](l)[D(0x195)]((u,v)=>{const G=D;return u[G(0x1be)]('const\x20privateRoutes\x20=\x20(<>')?v+0x1:null;})[D(0x1a7)](u=>u!==null),this[D(0x1dc)]['injectAfterLineNumber']({'filePath':l,'content':'\x09{'+k[D(0x19f)]+'}','lineNumber':q[0x0]});else p['length']>0x0?(p=this[D(0x1dc)][D(0x1cf)](l)['map']((u,v)=>{const H=D;return u['includes'](H(0x1cc))?v+0x1:null;})[D(0x1a7)](u=>u!==null),this['fsi'][D(0x1c6)]({'filePath':l,'content':'\x09{'+k[D(0x19f)]+'}','lineNumber':p[0x0]})):Log['warn']('Could\x20not\x20find\x20a\x20suitable\x20location\x20to\x20enable\x20this\x20route.\x20\x20Please\x20inspect\x20'+l);}else{const u=this[D(0x1dc)][D(0x1cf)](l)[D(0x195)](x=>{const I=D;return x[I(0x1be)](I(0x1d5));}),v=u[D(0x1a3)](!![])>-0x1,w=v?'<Route':D(0x1b0);await this[D(0x1dc)][D(0x1bb)]({'filePath':l,'content':D(0x1d4)+m+D(0x1d4),'begin':D(0x1d3),'end':w});}}else{if(d[D(0x1b8)]['client']==='vanilla'){const x=this['fsi'][D(0x1d7)]({'pathParts':[D(0x196),D(0x1de),D(0x197),D(0x1b1)]});l=this[D(0x1dc)][D(0x1c0)]({'pathParts':[x],'config':d}),m=this[D(0x1dc)][D(0x1d0)]({'srcPath':D(0x1c8),'context':k}),await this[D(0x1dc)][D(0x1a8)]({'filePath':l,'content':'\x0a'+m});}}});}catch(f){Log[C(0x1c5)](f);}});
1
+ const a137B=a137d;(function(a,b){const y=a137d,c=a();while(!![]){try{const d=-parseInt(y(0x233))/0x1*(parseInt(y(0x206))/0x2)+-parseInt(y(0x22a))/0x3*(parseInt(y(0x22c))/0x4)+-parseInt(y(0x1f7))/0x5+parseInt(y(0x205))/0x6*(-parseInt(y(0x236))/0x7)+-parseInt(y(0x219))/0x8+-parseInt(y(0x209))/0x9*(-parseInt(y(0x202))/0xa)+parseInt(y(0x23e))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a137c,0xc394e));const a137b=(function(){let a=!![];return function(b,c){const d=a?function(){const z=a137d;if(c){const e=c[z(0x243)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a137a=a137b(this,function(){const A=a137d;return a137a[A(0x203)]()['search'](A(0x1f4))[A(0x203)]()[A(0x24d)](a137a)[A(0x215)]('(((.+)+)+)+$');});a137a();import a137e from'path';function a137d(a,b){const c=a137c();return a137d=function(d,e){d=d-0x1f1;let f=c[d];return f;},a137d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a137c(){const K=['getMakaProjectConfig','info','</Router>','only','Scaffolding\x20for\x20a\x20Route.','const\x20privateRoutes\x20=\x20(<>','injectAtEndOfFile','hooks','baseDir','react','dir','search','/imports/ui/pages','warn','\x20already\x20exists.\x20Skipping.','7415304NOCCAR','config','root','rewriteDestinationPathForEngine','Please\x20specify\x20a\x20name\x20for\x20the\x20route.','maka\x20g:route\x20todosEdit\x20todos/:id/edit','pathFromApp','\x20to\x20','routes.js','Could\x20not\x20find\x20a\x20suitable\x20location\x20to\x20enable\x20this\x20route.\x20\x20Please\x20inspect\x20','filter','/imports/ui/','\x22*\x22','withHook','fileContainsString','templateContent','private','3548964MUsIAh','imports','4wirfCy','map','features','resourceName','maka\x20{generate,\x20g}:{route,\x20r}\x20[path/]<name>','newForm','readFileLines','14nluSFz','engines','layouts','476obRRNR','<Router','client','templateName','maka\x20g:route\x20pages/about','injectAfterLineNumber','maka\x20g:route\x20usersShow\x20users/:id/show\x20--layout\x20userView','Route\x20','38301890qXcThL','import\x20*\x20as\x20Component\x20from\x20\x27./templates\x27;','indexOf','layout','route/route.js','apply','join','ssr','Invalid\x20directory\x20option\x20\x22','true','error','pages','withValue','components','const\x20publicRoutes\x20=\x20(<>','constructor','includes','pop','MasterLayout','toLowerCase','(((.+)+)+)+$','maka\x20g:route\x20todosIndex\x20todos','cwd','173340EmJNIR','Valid\x20options\x20are:\x20','url','route','<Route','\x0a\x09\x09','fsi','Adding\x20route\x20','startup','withTranslations','length','9229170uEpnIC','toString','split','86808RYMkrd','67916UoWhkS','replace','vanilla','9FSDCQW'];a137c=function(){return K;};return a137c();}import{UsageError}from'../error.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['r'];Generator['create']({'name':a137B(0x1fa),'aliases':aliases,'validOpts':[a137B(0x229),a137B(0x241),a137B(0x20d),a137B(0x1f6),a137B(0x21a),a137B(0x21b),a137B(0x226),'url',a137B(0x212)],'usage':a137B(0x230),'shortDesc':a137B(0x20e),'examples':[a137B(0x1f5),a137B(0x21e),a137B(0x23c),'maka\x20g:route\x20pages/lists/listIndex\x20lists',a137B(0x23a)]},async function(a,b){const C=a137B;try{const c=[C(0x211),C(0x24b),C(0x249),C(0x235)];if(b['baseDir']&&!c[C(0x24e)](b[C(0x212)])){Log[C(0x248)](C(0x246)+b[C(0x212)]+'\x22'),Log[C(0x248)](C(0x1f8)+c[C(0x244)](',\x20'));throw new UsageError();}const d=this[C(0x1fd)][C(0x20a)]();await this[C(0x1fd)][C(0x24a)](d,async()=>{const D=C,f=b[D(0x229)]??![];let g=b[D(0x22f)][D(0x204)]('/')[D(0x1f1)]();if(!g){Log[D(0x248)](D(0x21d));throw new UsageError();}g=pascalCase(g);let h=b[D(0x1f9)]?'/'+b[D(0x1f9)]:'/'+b['resourceName'];a['length']>0x1&&(h='/'+a[D(0x223)](function(n){return n!=='/';})[D(0x244)]('/')[D(0x1f3)]());h=h[D(0x207)](/\/\//g,'/');b[D(0x241)]&&(b[D(0x241)]=camelCase(b[D(0x241)]));const i=b[D(0x212)]?D(0x224)+b['baseDir']:D(0x216),j=a137e[D(0x244)](i,b[D(0x214)],g,paramCase(g)),k={'name':g,'fileCase':paramCase(g),'camelCaseName':camelCase(g),'url':h,'layout':b['layout']||D(0x1f2),'templatePath':j,'templateName':pascalCase(g),'client':d[D(0x234)][D(0x238)],'newForm':![],'withTranslations':d[D(0x22e)][D(0x200)]};f&&(k[D(0x241)]='PrivateLayout');let l,m;if(d[D(0x234)][D(0x238)]===D(0x213)){if(d['engines'][D(0x245)]===D(0x247)){const r=this[D(0x1fd)][D(0x21f)]({'pathParts':[D(0x22b),D(0x1ff),'lib',D(0x221)]});l=this[D(0x1fd)][D(0x21c)]({'pathParts':[r],'config':d});}else{const s=this[D(0x1fd)]['pathFromApp']({'pathParts':[D(0x22b),D(0x1ff),'client','routes.js']});l=this['fsi']['rewriteDestinationPathForEngine']({'pathParts':[s],'config':d});}const n=await this[D(0x1fd)][D(0x227)](l,g);if(n){Log[D(0x217)](D(0x23d)+g+D(0x218));return;}else{const t=this['fsi']['pathFromProject'](l);Log[D(0x20b)](D(0x1fe)+g+D(0x220)+l[D(0x207)](t,''));}const o=this[D(0x1fd)][D(0x232)](l)[D(0x22d)]((u,v)=>{const E=D;return u[E(0x24e)](E(0x23f))?v+0x1:null;})[D(0x223)](u=>u!==null);let p=this[D(0x1fd)][D(0x232)](l)[D(0x22d)]((u,v)=>{const F=D;return u[F(0x24e)](F(0x24c))?v+0x1:null;})[D(0x223)](u=>u!==null),q=this[D(0x1fd)][D(0x232)](l)[D(0x22d)]((u,v)=>{const G=D;return u[G(0x24e)]('const\x20privateRoutes\x20=\x20(<>')?v+0x1:null;})[D(0x223)](u=>u!==null);p['length']>0x0&&q['length']>0x0&&(k[D(0x231)]=!![]);m=this[D(0x1fd)]['templateContent']({'srcPath':D(0x242),'framework':D(0x213),'context':k,'config':d});if(p[D(0x201)]>0x0||q[D(0x201)]>0x0){this[D(0x1fd)][D(0x23b)]({'filePath':l,'content':m,'lineNumber':o[0x0]});if(f&&q['length']>0x0)q=this[D(0x1fd)][D(0x232)](l)[D(0x22d)]((u,v)=>{const H=D;return u[H(0x24e)](H(0x20f))?v+0x1:null;})[D(0x223)](u=>u!==null),this[D(0x1fd)]['injectAfterLineNumber']({'filePath':l,'content':'\x09{'+k[D(0x239)]+'}','lineNumber':q[0x0]});else p[D(0x201)]>0x0?(p=this[D(0x1fd)][D(0x232)](l)[D(0x22d)]((u,v)=>{const I=D;return u['includes'](I(0x24c))?v+0x1:null;})['filter'](u=>u!==null),this[D(0x1fd)][D(0x23b)]({'filePath':l,'content':'\x09{'+k[D(0x239)]+'}','lineNumber':p[0x0]})):Log[D(0x217)](D(0x222)+l);}else{const u=this[D(0x1fd)][D(0x232)](l)[D(0x22d)](x=>{const J=D;return x[J(0x24e)](J(0x225));}),v=u[D(0x240)](!![])>-0x1,w=v?D(0x1fb):D(0x20c);await this['fsi']['injectIntoFile']({'filePath':l,'content':D(0x1fc)+m+'\x0a\x09\x09','begin':D(0x237),'end':w});}}else{if(d[D(0x234)][D(0x238)]===D(0x208)){const x=this[D(0x1fd)][D(0x21f)]({'pathParts':[D(0x22b),D(0x1ff),D(0x238),D(0x221)]});l=this[D(0x1fd)][D(0x21c)]({'pathParts':[x],'config':d}),m=this[D(0x1fd)][D(0x228)]({'srcPath':D(0x242),'context':k}),await this['fsi'][D(0x210)]({'filePath':l,'content':'\x0a'+m});}}});}catch(f){Log['error'](f);}});
@@ -1 +1 @@
1
- const a138m=a138d;function a138c(){const p=['services','type','constructor','fsi','winston','apply','logger','1218528PYcrvY','249684OhwPQM','getMakaProjectConfig','710072ODtJah','470WFpDKm','engines','imports','764PxldlR','maka\x20g:svc\x20service-logger\x20--type=logger','2598237TscZax','Installing\x20winston','tsx','withValue','pathFromApp','search','svc','installNpmPackage','1189713aAbWZR','10kcKYxf','resourceName','40fJtFBJ','service','2254600szgTtP','toString','(((.+)+)+)+$','checkNpmPackage','startup'];a138c=function(){return p;};return a138c();}(function(a,b){const j=a138d,c=a();while(!![]){try{const d=parseInt(j(0x10e))/0x1*(-parseInt(j(0x10b))/0x2)+parseInt(j(0x110))/0x3+-parseInt(j(0x11d))/0x4+-parseInt(j(0x11b))/0x5*(-parseInt(j(0x108))/0x6)+-parseInt(j(0x118))/0x7+parseInt(j(0x10a))/0x8+-parseInt(j(0x107))/0x9*(-parseInt(j(0x119))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a138c,0x7c829));const a138b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a138d;if(c){const e=c[k(0x105)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a138a=a138b(this,function(){const l=a138d;return a138a[l(0xfc)]()[l(0x115)](l(0xfd))[l(0xfc)]()[l(0x102)](a138a)['search']('(((.+)+)+)+$');});a138a();import{camelCase,paramCase,pascalCase}from'change-case';function a138d(a,b){const c=a138c();return a138d=function(d,e){d=d-0xfc;let f=c[d];return f;},a138d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator['create']({'name':a138m(0x11c),'aliases':[a138m(0x116)],'usage':'maka\x20{generate,\x20g}:{service}\x20<resource-name>','shortDesc':'Generate\x20a\x20service\x20to\x20run\x20within\x20your\x20meteor\x20application.','requiredOpts':[{'name':a138m(0x101),'values':[a138m(0x106)]}],'validOpts':[],'maxArgLength':0x1,'examples':[a138m(0x10f)]},async function(a,b){const n=a138m;try{const c=this[n(0x103)][n(0x109)]();await this['fsi'][n(0x113)](c,async()=>{const o=n,d=this[o(0x103)][o(0x114)]({}),f=paramCase(b[o(0x11a)]),g={'name':pascalCase(b['resourceName']),'fileName':f,'camelCase':camelCase(b[o(0x11a)]),'type':b['type'],'engine':c[o(0x10c)]['js'],'noRename':!![]};let h='js';c['engines']['js']===o(0x112)&&(h='ts');if(b[o(0x101)]===o(0x106)){!this[o(0x103)][o(0xfe)](o(0x104))&&await this['fsi'][o(0x117)]('winston\x20setimmediate',{'cwd':d,'msg':o(0x111)});const i=this[o(0x103)][o(0x114)]({'pathParts':[o(0x10d),o(0xff),'lib',o(0x100),f+'.'+h]});await this[o(0x103)]['template']({'srcPath':'service/logger/logger.js','destPath':i,'context':g,'config':c});}});}catch(d){Log['error'](d);}});
1
+ const a138l=a138d;(function(a,b){const j=a138d,c=a();while(!![]){try{const d=parseInt(j(0x1f4))/0x1+-parseInt(j(0x1e7))/0x2*(-parseInt(j(0x200))/0x3)+parseInt(j(0x1fe))/0x4*(parseInt(j(0x1fd))/0x5)+parseInt(j(0x1f2))/0x6*(-parseInt(j(0x1f1))/0x7)+-parseInt(j(0x1e2))/0x8*(parseInt(j(0x1ed))/0x9)+parseInt(j(0x1ec))/0xa*(-parseInt(j(0x203))/0xb)+-parseInt(j(0x1f6))/0xc*(parseInt(j(0x1ef))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a138c,0xdc361));const a138b=(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;};}()),a138a=a138b(this,function(){const k=a138d;return a138a['toString']()['search']('(((.+)+)+)+$')[k(0x1fc)]()[k(0x1f0)](a138a)[k(0x1e4)](k(0x1de));});a138a();import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';function a138d(a,b){const c=a138c();return a138d=function(d,e){d=d-0x1dd;let f=c[d];return f;},a138d(a,b);}import{Log}from'../tools/log/log.class.js';Generator['create']({'name':a138l(0x1df),'aliases':['svc'],'usage':a138l(0x1e0),'shortDesc':a138l(0x1eb),'requiredOpts':[{'name':a138l(0x202),'values':[a138l(0x1f9)]}],'validOpts':[],'maxArgLength':0x1,'examples':[a138l(0x1f5)]},async function(a,b){const m=a138l;try{const c=this[m(0x1ee)][m(0x1f8)]();await this[m(0x1ee)][m(0x1fa)](c,async()=>{const n=m,d=this[n(0x1ee)][n(0x1e6)]({}),f=paramCase(b[n(0x1fb)]),g={'name':pascalCase(b['resourceName']),'fileName':f,'camelCase':camelCase(b['resourceName']),'type':b[n(0x202)],'engine':c[n(0x1e9)]['js'],'noRename':!![]};let h='js';c[n(0x1e9)]['js']==='tsx'&&(h='ts');if(b['type']===n(0x1f9)){!this[n(0x1ee)]['checkNpmPackage'](n(0x1ea))&&await this['fsi'][n(0x1f3)](n(0x1e8),{'cwd':d,'msg':n(0x1ff)});const i=this[n(0x1ee)][n(0x1e6)]({'pathParts':[n(0x1e1),n(0x1e3),'lib',n(0x201),f+'.'+h]});await this[n(0x1ee)][n(0x1e5)]({'srcPath':n(0x1f7),'destPath':i,'context':g,'config':c});}});}catch(d){Log[m(0x1dd)](d);}});function a138c(){const o=['36PBBXrN','fsi','25907063zofeCY','constructor','14nPxELr','537606AdWTxo','installNpmPackage','1661281MOWzjb','maka\x20g:svc\x20service-logger\x20--type=logger','12dzputN','service/logger/logger.js','getMakaProjectConfig','logger','withValue','resourceName','toString','56735BsBwir','548hMAnRR','Installing\x20winston','921cWYEMz','services','type','55oUKdtH','error','(((.+)+)+)+$','service','maka\x20{generate,\x20g}:{service}\x20<resource-name>','imports','943912qDKysl','startup','search','template','pathFromApp','3034HIqBfL','winston\x20setimmediate','engines','winston','Generate\x20a\x20service\x20to\x20run\x20within\x20your\x20meteor\x20application.','271090RJIHfT'];a138c=function(){return o;};return a138c();}
@@ -1 +1 @@
1
- (function(a,b){var f=a139d,c=a();while(!![]){try{var d=parseInt(f(0xec))/0x1+-parseInt(f(0xea))/0x2*(parseInt(f(0xee))/0x3)+-parseInt(f(0xf3))/0x4*(-parseInt(f(0xf1))/0x5)+-parseInt(f(0xf5))/0x6+-parseInt(f(0xef))/0x7+parseInt(f(0xe9))/0x8*(-parseInt(f(0xf6))/0x9)+parseInt(f(0xf2))/0xa*(parseInt(f(0xed))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a139c,0xeb5ed));function a139c(){var i=['844400jynXIX','toString','435003DmYHpM','53862589AndnQN','3hzlCOq','8029511XCZMgD','constructor','317845aaXNDj','10YPwCYH','4CTqmAR','(((.+)+)+)+$','9538716JdAxYE','9vNvVsj','apply','search','10176280ZmlqLv'];a139c=function(){return i;};return a139c();}var a139b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a139d;if(c){var e=c[g(0xe7)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a139a=a139b(this,function(){var h=a139d;return a139a[h(0xeb)]()[h(0xe8)](h(0xf4))[h(0xeb)]()[h(0xf0)](a139a)[h(0xe8)](h(0xf4));});a139a();import'./translation.js';function a139d(a,b){var c=a139c();return a139d=function(d,e){d=d-0xe7;var f=c[d];return f;},a139d(a,b);}import'./openssl.js';
1
+ function a139d(a,b){var c=a139c();return a139d=function(d,e){d=d-0xbb;var f=c[d];return f;},a139d(a,b);}(function(a,b){var f=a139d,c=a();while(!![]){try{var d=parseInt(f(0xc5))/0x1*(parseInt(f(0xc2))/0x2)+parseInt(f(0xc8))/0x3*(-parseInt(f(0xbd))/0x4)+-parseInt(f(0xc1))/0x5*(-parseInt(f(0xc9))/0x6)+parseInt(f(0xc7))/0x7*(parseInt(f(0xbc))/0x8)+parseInt(f(0xc4))/0x9+parseInt(f(0xc3))/0xa+-parseInt(f(0xbe))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a139c,0xecf7d));function a139c(){var i=['3488ylloYA','63768cRicSD','17977366amyGdP','toString','(((.+)+)+)+$','80LmqJlw','141374YkvYzX','14621130lhGIgb','2771712zrIXZo','26vPpHdt','search','6475CAoxXS','342AHJHbb','154152tlVzpH','apply'];a139c=function(){return i;};return a139c();}var a139b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a139d;if(c){var e=c[g(0xbb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a139a=a139b(this,function(){var h=a139d;return a139a[h(0xbf)]()[h(0xc6)](h(0xc0))['toString']()['constructor'](a139a)['search'](h(0xc0));});a139a();import'./translation.js';import'./openssl.js';
@@ -1 +1 @@
1
- const a140l=a140d;(function(a,b){const i=a140d,c=a();while(!![]){try{const d=-parseInt(i(0x1ab))/0x1+parseInt(i(0x1ba))/0x2+parseInt(i(0x1b8))/0x3*(parseInt(i(0x1b1))/0x4)+parseInt(i(0x1b7))/0x5+-parseInt(i(0x1a5))/0x6*(parseInt(i(0x1af))/0x7)+parseInt(i(0x1a2))/0x8*(-parseInt(i(0x1b2))/0x9)+parseInt(i(0x1a8))/0xa*(-parseInt(i(0x1b4))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a140c,0xefca4));function a140d(a,b){const c=a140c();return a140d=function(d,e){d=d-0x19e;let f=c[d];return f;},a140d(a,b);}const a140b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a140d;if(c){const e=c[j(0x1b9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a140a=a140b(this,function(){const k=a140d;return a140a['toString']()[k(0x1b5)](k(0x1b6))['toString']()[k(0x1aa)](a140a)[k(0x1b5)]('(((.+)+)+)+$');});a140a();import{Generator}from'../../generator.js';function a140c(){const o=['search','(((.+)+)+)+$','9408030gZQXxv','939RGWKfa','apply','3358622gPFaaw','template','create','error','sslconfig','2144hjBwOg','fsi','_keys','84DMPGyR','withValue','maka\x20g:sslconfig\x20--env\x20dev','470dEkLgo','getAppConfigPath','constructor','1274146zDhrKR','maka\x20{generate,\x20g}:sslconfig','join','service','1827XLhraw','env','2516HLmfPU','3312PJuEWH','openssl/openssl.conf','327470pdvyfa'];a140c=function(){return o;};return a140c();}import{Log}from'../../tools/log/log.class.js';import a140e from'path';Generator[a140l(0x19f)]({'name':a140l(0x1a1),'usage':a140l(0x1ac),'shortDesc':'Generate\x20a\x20new\x20openssl\x20config\x20file','noNeedResource':!![],'requiredOpts':['env'],'examples':[a140l(0x1a7)],'validOpts':[]},async function(a,b){const m=a140l;try{const c=await this[m(0x1a3)]['getMakaProjectConfig'](),d=await this['fsi']['getGlobalConfig'](),f=this[m(0x1a3)][m(0x1a9)](b[m(0x1b0)]),g=a140e[m(0x1ad)](f,m(0x1a4),'openssl.conf');await this[m(0x1a3)][m(0x1a6)](c,async()=>{const n=m,h={'app':d['appName'],'noRename':!![]};await this['fsi'][n(0x19e)]({'srcPath':n(0x1b3),'destPath':g,'framework':n(0x1ae),'context':h,'config':c});});}catch(h){Log[m(0x1a0)](h);}});
1
+ function a140c(){const n=['join','constructor','openssl/openssl.conf','appName','71238cFFfnN','276dticaF','maka\x20{generate,\x20g}:sslconfig','829301ZlTNsM','service','search','130zgfCnt','openssl.conf','7yuzNES','3780696hLxoSc','error','7625IHgbux','toString','fsi','Generate\x20a\x20new\x20openssl\x20config\x20file','3768700wpxdot','1695942zecqAB','8qTzjME','getGlobalConfig','2412174ImCOYy','template','(((.+)+)+)+$','env','_keys','withValue'];a140c=function(){return n;};return a140c();}const a140k=a140d;(function(a,b){const i=a140d,c=a();while(!![]){try{const d=-parseInt(i(0x15f))/0x1*(parseInt(i(0x155))/0x2)+parseInt(i(0x14a))/0x3+-parseInt(i(0x15d))/0x4+parseInt(i(0x163))/0x5+-parseInt(i(0x154))/0x6*(-parseInt(i(0x15c))/0x7)+parseInt(i(0x148))/0x8*(parseInt(i(0x147))/0x9)+-parseInt(i(0x15a))/0xa*(-parseInt(i(0x157))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a140c,0xb4da0));const a140b=(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;};}()),a140a=a140b(this,function(){const j=a140d;return a140a[j(0x160)]()[j(0x159)](j(0x14c))[j(0x160)]()[j(0x151)](a140a)[j(0x159)](j(0x14c));});a140a();import{Generator}from'../../generator.js';function a140d(a,b){const c=a140c();return a140d=function(d,e){d=d-0x147;let f=c[d];return f;},a140d(a,b);}import{Log}from'../../tools/log/log.class.js';import a140e from'path';Generator['create']({'name':'sslconfig','usage':a140k(0x156),'shortDesc':a140k(0x162),'noNeedResource':!![],'requiredOpts':[a140k(0x14d)],'examples':['maka\x20g:sslconfig\x20--env\x20dev'],'validOpts':[]},async function(a,b){const l=a140k;try{const c=await this[l(0x161)]['getMakaProjectConfig'](),d=await this[l(0x161)][l(0x149)](),f=this[l(0x161)]['getAppConfigPath'](b[l(0x14d)]),g=a140e[l(0x150)](f,l(0x14e),l(0x15b));await this['fsi'][l(0x14f)](c,async()=>{const m=l,h={'app':d[m(0x153)],'noRename':!![]};await this['fsi'][m(0x14b)]({'srcPath':m(0x152),'destPath':g,'framework':m(0x158),'context':h,'config':c});});}catch(h){Log[l(0x15e)](h);}});
@@ -1 +1 @@
1
- function a141c(){const C=['locales','16keUKKF','6391790gizwSx','checkNpmPackage','index.js','exit','189281jOuSEE','template','\x20}\x20from\x20\x27./','834988oHPBtQ','warn','injectAtEndOfFile','server','findAppDirectory','(((.+)+)+)+$','startup','create','isFile','true','maka\x20g:translation\x20--lang=en\x20(default)','toString','imports','fsi','index.','translation','rewriteDestinationPathForEngine','injectAtBeginningOfFile','.js','withValue','10371610OHxKcp','setProjectConfig','lang','translations','i18n/index.js','default\x20as\x20','Locale\x20already\x20defined:\x20','Generate\x20a\x20new\x20locale\x20translation','24140402PqrjXC','i18n/locales.js','engines','Locale\x20already\x20exported:\x20','service','export\x20{\x20default\x20as\x20','import\x20\x27../lib/services/translations/i18n\x27;','maka\x20g:translation\x20--lang=fr','213186EHcblt','services','i18n/i18n.js','getGlobalConfig','5634297YBlSxP','2BkYewL','Verifying\x20npm\x20package\x20requirements:\x20i18next\x20...','client','import\x20\x27../lib/services/translations/i18n\x27;\x0a','\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','error','pathFromApp','grep','constructor','getMakaProjectConfig','maka\x20{generate,\x20g}:translation','lib','i18next','35jlYwhY','ssr','15dUofdb'];a141c=function(){return C;};return a141c();}const a141z=a141d;(function(a,b){const x=a141d,c=a();while(!![]){try{const d=-parseInt(x(0x20a))/0x1*(-parseInt(x(0x1f4))/0x2)+-parseInt(x(0x203))/0x3*(-parseInt(x(0x20d))/0x4)+parseInt(x(0x206))/0x5+parseInt(x(0x1ef))/0x6*(parseInt(x(0x201))/0x7)+parseInt(x(0x205))/0x8*(parseInt(x(0x1f3))/0x9)+-parseInt(x(0x1df))/0xa+-parseInt(x(0x1e7))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a141c,0xad2e8));const a141b=(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;};}()),a141a=a141b(this,function(){const y=a141d;return a141a[y(0x1d6)]()['search']('(((.+)+)+)+$')[y(0x1d6)]()[y(0x1fc)](a141a)['search'](y(0x212));});a141a();import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';import a141e from'fs';function a141d(a,b){const c=a141c();return a141d=function(d,e){d=d-0x1d5;let f=c[d];return f;},a141d(a,b);}Generator[a141z(0x214)]({'name':a141z(0x1da),'usage':a141z(0x1fe),'aliases':['t'],'noNeedResource':!![],'requiredOpts':[{'name':'lang','boolFlag':![],'regex':/^[a-z]{2}$/}],'shortDesc':a141z(0x1e6),'description':a141z(0x1f8),'examples':[a141z(0x1d5),a141z(0x1ee),'maka\x20g:translation\x20--lang=de'],'validOpts':[]},async function(a,b){const A=a141z;try{const c=this[A(0x1d8)][A(0x1fd)](),d=this[A(0x1d8)][A(0x1f2)](),f=this[A(0x1d8)][A(0x211)]();await this['fsi'][A(0x1de)](c,async()=>{const B=A;try{!b[B(0x1e1)]&&(b[B(0x1e1)]='en');!b['root']&&!this[B(0x1d8)][B(0x207)](B(0x200))&&(Log['warn'](B(0x1f5)),this['fsi']['installNpmPackage']('i18next\x20i18next-browser-languagedetector\x20react-i18next',{'cwd':f}),this[B(0x1d8)][B(0x1e0)]('features.withTranslations',!![]));const g=this[B(0x1d8)][B(0x1fa)]({'pathParts':[B(0x1d7),B(0x213),B(0x1f6),'index.js']}),h=this[B(0x1d8)][B(0x1db)]({'pathParts':[g],'config':c}),i=this[B(0x1d8)][B(0x1fb)](a141e['readFileSync'](h)[B(0x1d6)](),B(0x1ed))[0x0]&&!![];if(c[B(0x1e9)][B(0x202)]===B(0x216)){!i&&this[B(0x1d8)][B(0x1dc)]({'filePath':h,'content':'import\x20\x27../lib/services/translations/i18n\x27;\x0a'});const t=this['fsi'][B(0x1fa)]({'pathParts':['imports',B(0x213),B(0x210),B(0x208)]}),u=this[B(0x1d8)][B(0x1db)]({'pathParts':[t],'config':c}),v=this[B(0x1d8)]['grep'](a141e['readFileSync'](u)[B(0x1d6)](),'import\x20\x27../lib/services/translations/i18n\x27;')[0x0]&&!![];!v&&this[B(0x1d8)][B(0x1dc)]({'filePath':u,'content':B(0x1f7)});}else!i&&this[B(0x1d8)][B(0x1dc)]({'filePath':h,'content':B(0x1f7)});const j={'app':d['appName'],'config':c},k=this['fsi'][B(0x1fa)]({'pathParts':[B(0x1d7),B(0x213),'lib',B(0x1f0),B(0x1e2),'i18n.js']}),l=this[B(0x1d8)][B(0x215)](this[B(0x1d8)]['rewriteDestinationPathForEngine']({'pathParts':[k],'config':c}));!l&&await this[B(0x1d8)][B(0x20b)]({'srcPath':B(0x1f1),'destPath':k,'framework':B(0x1eb),'context':j,'config':c});const m=this['fsi'][B(0x1fa)]({'pathParts':['imports','startup','lib',B(0x1f0),B(0x1e2),B(0x204),b[B(0x1e1)]+B(0x1dd)]}),n=this[B(0x1d8)][B(0x1db)]({'pathParts':[m],'config':c}),o=this[B(0x1d8)][B(0x215)](n);!o?await this[B(0x1d8)][B(0x20b)]({'srcPath':B(0x1e8),'destPath':m,'framework':'service','context':j,'config':c}):Log[B(0x20e)](B(0x1e5)+n);const p=this[B(0x1d8)][B(0x1fa)]({'pathParts':[B(0x1d7),B(0x213),B(0x1ff),B(0x1f0),'translations',B(0x204),B(0x1d9)+c['engines']['js']]}),q=this['fsi']['rewriteDestinationPathForEngine']({'pathParts':[p],'config':c}),r=this[B(0x1d8)][B(0x215)](q);!r&&await this[B(0x1d8)][B(0x20b)]({'srcPath':B(0x1e3),'destPath':p,'framework':B(0x1eb),'context':j,'config':c});const s=this[B(0x1d8)][B(0x1fb)](a141e['readFileSync'](p)['toString'](),B(0x1e4)+b[B(0x1e1)])[0x0]&&!![];!s?await this['fsi'][B(0x20f)]({'filePath':p,'content':B(0x1ec)+b[B(0x1e1)]+B(0x20c)+b[B(0x1e1)]+'\x27;'}):Log[B(0x20e)](B(0x1ea)+p);}catch(w){Log[B(0x1f9)](w),process[B(0x209)](0x1);}});}catch(g){Log[A(0x1f9)](g),process['exit'](0x1);}});
1
+ const a141A=a141d;(function(a,b){const x=a141d,c=a();while(!![]){try{const d=parseInt(x(0xda))/0x1*(-parseInt(x(0xbd))/0x2)+parseInt(x(0xb5))/0x3*(parseInt(x(0xde))/0x4)+parseInt(x(0xbf))/0x5+-parseInt(x(0xce))/0x6+-parseInt(x(0xb0))/0x7*(parseInt(x(0xdb))/0x8)+parseInt(x(0xae))/0x9+parseInt(x(0xcf))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a141c,0x6fecb));function a141d(a,b){const c=a141c();return a141d=function(d,e){d=d-0xa4;let f=c[d];return f;},a141d(a,b);}const a141b=(function(){let a=!![];return function(b,c){const d=a?function(){const y=a141d;if(c){const e=c[y(0xd5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a141a=a141b(this,function(){const z=a141d;return a141a[z(0xc2)]()[z(0xa5)](z(0xd3))['toString']()['constructor'](a141a)[z(0xa5)]('(((.+)+)+)+$');});a141a();function a141c(){const D=['injectAtBeginningOfFile','apply','client','isFile','import\x20\x27../lib/services/translations/i18n\x27;','\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','3jJjNfw','12664WFLAcF','features.withTranslations','i18n.js','4HTKcap','error','service','search','import\x20\x27../lib/services/translations/i18n\x27;\x0a','imports','readFileSync','rewriteDestinationPathForEngine','lang','services','warn','translation','1032804UnthqE','checkNpmPackage','1855Biowrd','Locale\x20already\x20exported:\x20','withValue','fsi','engines','18873xTaYSa','translations','Generate\x20a\x20new\x20locale\x20translation','findAppDirectory','create','pathFromApp','maka\x20g:translation\x20--lang=de','exit','153086jXGOeX','template','3166165gMipcO','export\x20{\x20default\x20as\x20','maka\x20{generate,\x20g}:translation','toString','true','default\x20as\x20','maka\x20g:translation\x20--lang=en\x20(default)','locales','lib','grep','.js','server','i18n/index.js','root','index.js','902322MiThAU','5036740JxQobU','maka\x20g:translation\x20--lang=fr','appName','startup','(((.+)+)+)+$'];a141c=function(){return D;};return a141c();}import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';import a141e from'fs';Generator[a141A(0xb9)]({'name':a141A(0xad),'usage':a141A(0xc1),'aliases':['t'],'noNeedResource':!![],'requiredOpts':[{'name':a141A(0xaa),'boolFlag':![],'regex':/^[a-z]{2}$/}],'shortDesc':a141A(0xb7),'description':a141A(0xd9),'examples':[a141A(0xc5),a141A(0xd0),a141A(0xbb)],'validOpts':[]},async function(a,b){const B=a141A;try{const c=this[B(0xb3)]['getMakaProjectConfig'](),d=this['fsi']['getGlobalConfig'](),f=this[B(0xb3)][B(0xb8)]();await this['fsi'][B(0xb2)](c,async()=>{const C=B;try{!b[C(0xaa)]&&(b[C(0xaa)]='en');!b[C(0xcc)]&&!this[C(0xb3)][C(0xaf)]('i18next')&&(Log['warn']('Verifying\x20npm\x20package\x20requirements:\x20i18next\x20...'),this['fsi']['installNpmPackage']('i18next\x20i18next-browser-languagedetector\x20react-i18next',{'cwd':f}),this[C(0xb3)]['setProjectConfig'](C(0xdc),!![]));const g=this[C(0xb3)][C(0xba)]({'pathParts':[C(0xa7),C(0xd2),C(0xd6),C(0xcd)]}),h=this[C(0xb3)]['rewriteDestinationPathForEngine']({'pathParts':[g],'config':c}),i=this[C(0xb3)][C(0xc8)](a141e[C(0xa8)](h)[C(0xc2)](),C(0xd8))[0x0]&&!![];if(c[C(0xb4)]['ssr']===C(0xc3)){!i&&this[C(0xb3)][C(0xd4)]({'filePath':h,'content':C(0xa6)});const t=this[C(0xb3)][C(0xba)]({'pathParts':[C(0xa7),'startup',C(0xca),'index.js']}),u=this[C(0xb3)][C(0xa9)]({'pathParts':[t],'config':c}),v=this[C(0xb3)][C(0xc8)](a141e['readFileSync'](u)[C(0xc2)](),C(0xd8))[0x0]&&!![];!v&&this[C(0xb3)][C(0xd4)]({'filePath':u,'content':C(0xa6)});}else!i&&this[C(0xb3)][C(0xd4)]({'filePath':h,'content':C(0xa6)});const j={'app':d[C(0xd1)],'config':c},k=this['fsi'][C(0xba)]({'pathParts':['imports','startup',C(0xc7),C(0xab),C(0xb6),C(0xdd)]}),l=this['fsi'][C(0xd7)](this[C(0xb3)][C(0xa9)]({'pathParts':[k],'config':c}));!l&&await this['fsi'][C(0xbe)]({'srcPath':'i18n/i18n.js','destPath':k,'framework':C(0xa4),'context':j,'config':c});const m=this[C(0xb3)]['pathFromApp']({'pathParts':[C(0xa7),C(0xd2),'lib','services',C(0xb6),C(0xc6),b[C(0xaa)]+C(0xc9)]}),n=this['fsi'][C(0xa9)]({'pathParts':[m],'config':c}),o=this[C(0xb3)][C(0xd7)](n);!o?await this['fsi'][C(0xbe)]({'srcPath':'i18n/locales.js','destPath':m,'framework':C(0xa4),'context':j,'config':c}):Log['warn']('Locale\x20already\x20defined:\x20'+n);const p=this[C(0xb3)][C(0xba)]({'pathParts':[C(0xa7),'startup',C(0xc7),C(0xab),C(0xb6),C(0xc6),'index.'+c[C(0xb4)]['js']]}),q=this[C(0xb3)][C(0xa9)]({'pathParts':[p],'config':c}),r=this['fsi'][C(0xd7)](q);!r&&await this['fsi'][C(0xbe)]({'srcPath':C(0xcb),'destPath':p,'framework':C(0xa4),'context':j,'config':c});const s=this[C(0xb3)][C(0xc8)](a141e[C(0xa8)](p)[C(0xc2)](),C(0xc4)+b[C(0xaa)])[0x0]&&!![];!s?await this[C(0xb3)]['injectAtEndOfFile']({'filePath':p,'content':C(0xc0)+b[C(0xaa)]+'\x20}\x20from\x20\x27./'+b[C(0xaa)]+'\x27;'}):Log[C(0xac)](C(0xb1)+p);}catch(w){Log[C(0xdf)](w),process['exit'](0x1);}});}catch(g){Log[B(0xdf)](g),process[B(0xbc)](0x1);}});
@@ -1 +1 @@
1
- const a142m=a142d;function a142c(){const n=['search','MAKA_COMMAND_PATH','parse','1549239kSeMQt','camelizeKeys','constructor','slice','32072916aUDWCc','1561SRUxyZ','59GxEwkd','BROWSERSLIST_IGNORE_OLD_DATA','stringify','TOOL_NODE_FLAGS','39174yTodWD','toString','11cStCzy','100YBSPZB','NODE_NO_WARNINGS','13086broFSA','76996BSUKuq','10OYNSKG','apply','dirname','14126355EACbtH','--max-old-space-size=','5069000ZwPtqH','env'];a142c=function(){return n;};return a142c();}(function(a,b){const j=a142d,c=a();while(!![]){try{const d=-parseInt(j(0x190))/0x1*(parseInt(j(0x199))/0x2)+parseInt(j(0x1a5))/0x3+-parseInt(j(0x19a))/0x4*(-parseInt(j(0x197))/0x5)+parseInt(j(0x194))/0x6*(-parseInt(j(0x18f))/0x7)+parseInt(j(0x1a0))/0x8+parseInt(j(0x19e))/0x9*(-parseInt(j(0x19b))/0xa)+-parseInt(j(0x196))/0xb*(-parseInt(j(0x18e))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a142c,0xc2602));const a142b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a142d;if(c){const e=c[k(0x19c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a142a=a142b(this,function(){const l=a142d;return a142a[l(0x195)]()[l(0x1a2)]('(((.+)+)+)+$')[l(0x195)]()[l(0x18c)](a142a)[l(0x1a2)]('(((.+)+)+)+$');});a142a();import a142e from'minimist';import a142f from'os';import a142g from'path';import a142h from'humps';import a142i from'./commands/maka.cmd.js';import'./commands/_index.js';import'./generators/_index.js';import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta['url']),__dirname=a142g[a142m(0x19d)](__filename);global[a142m(0x1a3)]=__dirname;function a142d(a,b){const c=a142c();return a142d=function(d,e){d=d-0x18c;let f=c[d];return f;},a142d(a,b);}const total_memory=a142f['totalmem'](),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[a142m(0x1a1)][a142m(0x193)]=a142m(0x19f)+total_mem_in_mb,process['env'][a142m(0x191)]='1',process['env'][a142m(0x198)]='1';const argv=a142e(process['argv'][a142m(0x18d)](0x2)),args=argv['_'],deepCopyArgv=JSON[a142m(0x1a4)](JSON[a142m(0x192)](argv));delete deepCopyArgv['_'];const opts=a142h[a142m(0x1a6)](deepCopyArgv);a142i['run'](args,opts);
1
+ const a142m=a142d;(function(a,b){const j=a142d,c=a();while(!![]){try{const d=-parseInt(j(0x1f8))/0x1*(-parseInt(j(0x1f6))/0x2)+-parseInt(j(0x201))/0x3*(-parseInt(j(0x1f9))/0x4)+parseInt(j(0x1f5))/0x5*(-parseInt(j(0x203))/0x6)+parseInt(j(0x209))/0x7+parseInt(j(0x204))/0x8+parseInt(j(0x205))/0x9+parseInt(j(0x1fc))/0xa*(-parseInt(j(0x1fd))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a142c,0x839c2));function a142d(a,b){const c=a142c();return a142d=function(d,e){d=d-0x1f2;let f=c[d];return f;},a142d(a,b);}const a142b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a142d;if(c){const e=c[k(0x1ff)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a142a=a142b(this,function(){const l=a142d;return a142a[l(0x208)]()[l(0x1f2)]('(((.+)+)+)+$')['toString']()[l(0x206)](a142a)[l(0x1f2)](l(0x202));});a142a();import a142e from'minimist';import a142f from'os';import a142g from'path';import a142h from'humps';import a142i from'./commands/maka.cmd.js';import'./commands/_index.js';import'./generators/_index.js';function a142c(){const n=['search','camelizeKeys','run','68865ctuqOO','1174874Katfmx','dirname','1DWmuBN','1712156OmjRLl','--max-old-space-size=','totalmem','10WnaVgf','19432369ewfTpi','env','apply','MAKA_COMMAND_PATH','3kVFfrv','(((.+)+)+)+$','330bRadPn','117408dxZEqh','9416007AqzBZx','constructor','parse','toString','6907551TpnxZc','BROWSERSLIST_IGNORE_OLD_DATA'];a142c=function(){return n;};return a142c();}import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta['url']),__dirname=a142g[a142m(0x1f7)](__filename);global[a142m(0x200)]=__dirname;const total_memory=a142f[a142m(0x1fb)](),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[a142m(0x1fe)]['TOOL_NODE_FLAGS']=a142m(0x1fa)+total_mem_in_mb,process[a142m(0x1fe)][a142m(0x20a)]='1',process['env']['NODE_NO_WARNINGS']='1';const argv=a142e(process['argv']['slice'](0x2)),args=argv['_'],deepCopyArgv=JSON[a142m(0x207)](JSON['stringify'](argv));delete deepCopyArgv['_'];const opts=a142h[a142m(0x1f3)](deepCopyArgv);a142i[a142m(0x1f4)](args,opts);
@@ -1 +1 @@
1
- const a143L=a143d;function a143d(a,b){const c=a143c();return a143d=function(d,e){d=d-0x9d;let f=c[d];return f;},a143d(a,b);}(function(a,b){const I=a143d,c=a();while(!![]){try{const d=parseInt(I(0xb4))/0x1*(parseInt(I(0xd8))/0x2)+-parseInt(I(0xdc))/0x3+parseInt(I(0xae))/0x4+-parseInt(I(0xb6))/0x5*(parseInt(I(0xec))/0x6)+-parseInt(I(0xb7))/0x7+parseInt(I(0xb8))/0x8+-parseInt(I(0xe1))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a143c,0x43b6e));const a143b=(function(){let a=!![];return function(b,c){const d=a?function(){const J=a143d;if(c){const e=c[J(0xe0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a143a=a143b(this,function(){const K=a143d;return a143a[K(0xd7)]()[K(0xc8)](K(0xad))[K(0xd7)]()[K(0xf1)](a143a)[K(0xc8)](K(0xad));});function a143c(){const a3=['getShortName','To\x20use\x20this\x20command,\x20\x22','local','Please\x20choose\x20an\x20environment','concat','546RXkSgv','\x22,\x20please\x20upgrade\x20to\x20PRO\x20by\x20becoming\x20a\x20pateron\x20@\x20patreon.com/user?u=110174702,\x20then\x20issue:\x20\x27maka\x20login\x27','shortDesc','Invalid\x20value\x20for\x20','Invalid\x20option:\x20','constructor','isGenerator','isCommand','filter','roles','dir','To\x20use\x20this\x20generator,\x20\x22','assign','win32','env','exit','usage','homedir','singleLicense','examples','every','docker','includes','.meteor','help','(((.+)+)+)+$','1815144BPGukN','Please\x20provide\x20a\x20valid\x20argument\x20for\x20','engines','Please\x20choose\x20a\x20value\x20for\x20','match','isPro','1CbiVgF','push','16295KiwdLB','1438773BUsWvW','3969424rvBDlB','user','_handler','\x20installed\x20to\x20use\x20this\x20command.','description','disableAuthCheck','length','proCommands','fsi','options','platform','Please\x20provide\x20a\x20resource\x20name:','AppData','getAppProjectConfigs','formatToNamedParam','list','search','keys','remapShortToLong','validateMeteorInstall','config','error','validateMakaProject','ask','proGenerators','Invalid\x20argument:\x20','getPro','root','string','resourceName','Local','toString','971984GVWilN','No\x20usage\x20provided.','parent','findProjectDirectory','1083747VGZlMJ','aliases','name','validateUserIsLoggedIn','apply','2657169lVqZre','existsSync','Please\x20choose\x20a\x20valid\x20value\x20for\x20','validateMakaSubscription','find','Please\x20provide\x20a\x20value\x20for\x20'];a143c=function(){return a3;};return a143c();}a143a();import a143e from'path';import a143f from'os';import a143g from'fs';const homeDir=a143f[a143L(0xa5)]();import{Docker}from'./tools/docker/docker.class.js';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{[a143L(0xa9)];[a143L(0xc0)];[a143L(0xc1)];[a143L(0xde)];[a143L(0xda)];[a143L(0xba)];constructor(){const M=a143L;this['docker']=new Docker(),this[M(0xc0)]=new FSI();}[a143L(0xe7)](a){return a['charAt'](0x0);}[a143L(0xca)](a,b){const N=a143L,c=this[N(0xc6)](b),d={...a};for(const e of c){const f=this[N(0xe7)](e[N(0xde)]);a[f]&&(d[e['name']]=a[f],delete d[f]);}return d;}[a143L(0xc6)](a){const O=a143L;if(a[O(0xa8)](b=>typeof b===O(0xd4)))return a['map'](b=>({'name':b}));return a;}[a143L(0xb2)](a){const P=a143L,b=[this[P(0xde)]]['concat'](this[P(0xc1)][P(0xdd)]||[]);return this[P(0xda)]&&b['push'](this[P(0xda)]),b['includes'](a);}[a143L(0xce)](){const Q=a143L,a=this[Q(0xc0)][Q(0xdb)]();return a!==![]?!![]:![];}async[a143L(0xdf)](){const R=a143L,a=await this[R(0xc0)][R(0xd2)]();return a?.[R(0xb9)]&&a?.[R(0xb9)]!=='guest'?!![]:![];}[a143L(0xcb)](){const S=a143L,a=process[S(0xc2)]===S(0xa1);if(a){if(!a143g[S(0xe2)](a143e['join'](homeDir,S(0xc4),S(0xd6),'.meteor')))return![];}else{if(!a143g[S(0xe2)](a143e['join'](homeDir,S(0xab))))return![];}return!![];}['validateEngines'](a){const T=a143L,b=this[T(0xc0)]['getMakaProjectConfig'](),c=b[T(0xb0)],d=Object[T(0xc9)](a);if(d[T(0xbe)]>0x0)for(const e of d){const f=c[e];if(f!==a[e]){Log[T(0xcd)]('You\x20must\x20have\x20'+e+'\x20version\x20'+a[e]+T(0xbb));throw UsageError;}}}async['validateParams'](a,b,c){const U=a143L,{requiredOpts:d,validArgs:e,validOpts:f,noNeedResource:g}=c,h=Object[U(0xc9)](b);if(h[U(0xaa)]('resourceName')&&b[U(0xd5)]===undefined&&!g){const m=await Actions[U(0xcf)](U(0xc3));b['resourceName']=m;}let i=[],j=b;if(d){i=this['formatToNamedParam'](d),j=this[U(0xca)](b,i);if(i&&i?.[U(0xbe)]>0x0)for(const n of i){const {name:o,values:p,regex:q}=n;if(!Object[U(0xc9)](j)[U(0xaa)](o)){if(o==='env'){const r=this[U(0xc0)][U(0xc5)]()[U(0xf4)](t=>t!==U(0xe9)),s=await Actions[U(0xc1)]({'type':U(0xc7),'name':U(0xa2),'message':U(0xea),'choices':r});b['env']=s[U(0xa2)];}else{const t=p;if(t){const u=await Actions[U(0xc1)]({'type':U(0xc7),'name':o,'message':U(0xb1)+o,'choices':p});b[o]=u[o];}else{if(q){const v=await Actions['ask'](U(0xe6)+o);if(v[U(0xb2)](q))b[o]=v;else{Log['error'](U(0xef)+o+':\x20'+v);throw new UsageError();}}else{const w=await Actions[U(0xcf)](U(0xe6)+o);b[o]=w;}}}}else{const x=j[o];if(p&&!p[U(0xaa)](x)){Log['error']('Invalid\x20value\x20for\x20'+o+':\x20'+x);throw new UsageError();}}}}let k=this[U(0xc6)](f),l=b;if(k&&Object['keys'](k)?.[U(0xbe)]>0x0){k=k[U(0xeb)](i||[]),k[U(0xb5)]({'name':'resourceName','hidden':!![]}),k['push']({'name':U(0xac),'boolFlag':!![]}),k[U(0xb5)]({'name':U(0x9e),'hidden':!![]}),k['push']({'name':'cwd','hidden':!![]}),k['push']({'name':U(0xd3),'hidden':!![]}),k[U(0xb5)]({'name':U(0xcc),'hidden':!![]}),l=this[U(0xca)](b,k);for(const y of k){const {name:z,values:A}=y,B=l[z];if(B!==undefined&&(!A||!A[U(0xaa)](B))){const C=A;if(C){const D=await Actions[U(0xc1)]({'type':U(0xc7),'name':z,'message':U(0xe3)+z,'choices':A});l[z]=D[z];}}if(k[U(0xbe)]>0x0)for(const E of Object[U(0xc9)](l)){const F=k[U(0xe5)](G=>G[U(0xde)]===E);if(!F){Log[U(0xcd)](U(0xf0)+E);throw new UsageError();}}}}if(e&&e?.['length']>0x0)for(const G of e){if(!e[U(0xaa)](G)){Log[U(0xcd)](U(0xd1)+G);const H=await Actions[U(0xcf)](U(0xaf)+G);a[a['indexOf'](G)]=H;}}return Object[U(0xa0)](j,l);}async[a143L(0xe4)](a){const V=a143L;try{if(!a)return;const b=await this['fsi'][V(0xd2)]();!b&&(Log[V(0xcd)]('License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.meteor/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.'),process[V(0xa3)](0x1));const c=!b?.['roles'][V(0xaa)](V(0xa6))&&!b?.[V(0x9d)][V(0xaa)]('domainLicense');if(this[V(0xf3)](a)){const d=V(0xe8)+a[V(0xde)]+V(0xed);if(a[V(0xc1)][V(0xbd)])return;const f=b?.[V(0xbf)][V(0xaa)](a['name'])||b?.[V(0xbf)][V(0xaa)](a[V(0xda)]||'')||this[V(0xc1)][V(0xb3)];if(f&&c)throw d;}else{if(this[V(0xf2)](a)){const g=b?.[V(0xd0)][V(0xaa)](a['name'])||b?.[V(0xd0)][V(0xaa)](a[V(0xda)]||'');if(g&&c)throw V(0x9f)+a[V(0xde)]+'\x22,\x20please\x20upgrade\x20to\x20PRO\x20by\x20becoming\x20a\x20pateron\x20@\x20patreon.com/user?u=110174702,\x20then\x20issue:\x20\x27maka\x20login\x27';}}}catch(h){Log[V(0xcd)](h),process['exit'](0x1);}}['isCommand'](a){const W=a143L;return W(0xc1)in a;}[a143L(0xf2)](a){const X=a143L;return!(X(0xc1)in a);}[a143L(0xbc)](){const Y=a143L;return this['options'][Y(0xbc)]||this[Y(0xc1)]['shortDesc']||'No\x20description\x20provided.';}[a143L(0xee)](){const Z=a143L;return this[Z(0xc1)][Z(0xee)]||'NIE';}['usage'](){const a0=a143L;return this['options'][a0(0xa4)]||a0(0xd9);}[a143L(0xa7)](){const a1=a143L;return this[a1(0xc1)][a1(0xa7)]||[];}['aliases'](){const a2=a143L;return this[a2(0xc1)]['aliases']||'None';}}
1
+ function a143c(){const a1=['local','(((.+)+)+)+$','guest','find','getPro','apply','root','ask','concat','\x20installed\x20to\x20use\x20this\x20command.','engines','proCommands','every','options','docker','20QFrLcD','assign','env','No\x20description\x20provided.','search','NIE','shortDesc','To\x20use\x20this\x20generator,\x20\x22','validateMeteorInstall','toString','AppData','parent','keys','aliases','resourceName','name','License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.meteor/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.','roles','existsSync','validateUserIsLoggedIn','validateMakaProject','1699320IRRytS','getShortName','formatToNamedParam','4223200DoHsuA','includes','disableAuthCheck','proGenerators','help','3402390ZmDOdd','Please\x20provide\x20a\x20value\x20for\x20','Invalid\x20value\x20for\x20','examples','4VMhiyG','description','isGenerator','Invalid\x20argument:\x20','Please\x20choose\x20a\x20valid\x20value\x20for\x20','join','error','.meteor','isCommand','Local','push','cwd','getMakaProjectConfig','list','map','2461158ypogoE','filter','19XDtxkZ','No\x20usage\x20provided.','None','usage','singleLicense','5905200buJJvx','string','validateParams','remapShortToLong','_handler','\x20version\x20','validateEngines','\x22,\x20please\x20upgrade\x20to\x20PRO\x20by\x20becoming\x20a\x20pateron\x20@\x20patreon.com/user?u=110174702,\x20then\x20issue:\x20\x27maka\x20login\x27','Please\x20provide\x20a\x20valid\x20argument\x20for\x20','win32','109884MVlGAk','7195239SiunNw','Please\x20provide\x20a\x20resource\x20name:','length','findProjectDirectory','Please\x20choose\x20an\x20environment','validateMakaSubscription','exit','user','You\x20must\x20have\x20','fsi','homedir','constructor'];a143c=function(){return a1;};return a143c();}const a143L=a143d;(function(a,b){const I=a143d,c=a();while(!![]){try{const d=-parseInt(I(0x22c))/0x1*(parseInt(I(0x1de))/0x2)+-parseInt(I(0x217))/0x3*(-parseInt(I(0x21b))/0x4)+-parseInt(I(0x1d4))/0x5+parseInt(I(0x20f))/0x6+parseInt(I(0x22a))/0x7+-parseInt(I(0x212))/0x8+parseInt(I(0x1df))/0x9*(parseInt(I(0x1fa))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a143c,0x96288));const a143b=(function(){let a=!![];return function(b,c){const d=a?function(){const J=a143d;if(c){const e=c[J(0x1f0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a143a=a143b(this,function(){const K=a143d;return a143a['toString']()[K(0x1fe)](K(0x1ec))[K(0x203)]()[K(0x1ea)](a143a)[K(0x1fe)]('(((.+)+)+)+$');});a143a();import a143e from'path';import a143f from'os';import a143g from'fs';const homeDir=a143f[a143L(0x1e9)]();import{Docker}from'./tools/docker/docker.class.js';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';function a143d(a,b){const c=a143c();return a143d=function(d,e){d=d-0x1d2;let f=c[d];return f;},a143d(a,b);}export class Tool{[a143L(0x1f9)];[a143L(0x1e8)];[a143L(0x1f8)];[a143L(0x209)];[a143L(0x205)];[a143L(0x1d8)];constructor(){const M=a143L;this['docker']=new Docker(),this[M(0x1e8)]=new FSI();}['getShortName'](a){return a['charAt'](0x0);}[a143L(0x1d7)](a,b){const N=a143L,c=this[N(0x211)](b),d={...a};for(const e of c){const f=this[N(0x210)](e[N(0x209)]);a[f]&&(d[e[N(0x209)]]=a[f],delete d[f]);}return d;}[a143L(0x211)](a){const O=a143L;if(a[O(0x1f7)](b=>typeof b===O(0x1d5)))return a[O(0x229)](b=>({'name':b}));return a;}['match'](a){const P=a143L,b=[this[P(0x209)]]['concat'](this['options']['aliases']||[]);return this[P(0x205)]&&b[P(0x225)](this[P(0x205)]),b['includes'](a);}[a143L(0x20e)](){const Q=a143L,a=this[Q(0x1e8)][Q(0x1e2)]();return a!==![]?!![]:![];}async[a143L(0x20d)](){const R=a143L,a=await this[R(0x1e8)][R(0x1ef)]();return a?.[R(0x1e6)]&&a?.[R(0x1e6)]!==R(0x1ed)?!![]:![];}[a143L(0x202)](){const S=a143L,a=process['platform']===S(0x1dd);if(a){if(!a143g[S(0x20c)](a143e[S(0x220)](homeDir,S(0x204),S(0x224),'.meteor')))return![];}else{if(!a143g[S(0x20c)](a143e['join'](homeDir,S(0x222))))return![];}return!![];}[a143L(0x1da)](a){const T=a143L,b=this[T(0x1e8)][T(0x227)](),c=b[T(0x1f5)],d=Object['keys'](a);if(d[T(0x1e1)]>0x0)for(const e of d){const f=c[e];if(f!==a[e]){Log[T(0x221)](T(0x1e7)+e+T(0x1d9)+a[e]+T(0x1f4));throw UsageError;}}}async[a143L(0x1d6)](a,b,c){const U=a143L,{requiredOpts:d,validArgs:e,validOpts:f,noNeedResource:g}=c,h=Object['keys'](b);if(h[U(0x213)](U(0x208))&&b['resourceName']===undefined&&!g){const m=await Actions[U(0x1f2)](U(0x1e0));b[U(0x208)]=m;}let i=[],j=b;if(d){i=this['formatToNamedParam'](d),j=this[U(0x1d7)](b,i);if(i&&i?.[U(0x1e1)]>0x0)for(const n of i){const {name:o,values:p,regex:q}=n;if(!Object[U(0x206)](j)[U(0x213)](o)){if(o==='env'){const r=this[U(0x1e8)]['getAppProjectConfigs']()[U(0x22b)](t=>t!==U(0x1eb)),s=await Actions[U(0x1f8)]({'type':U(0x228),'name':'env','message':U(0x1e3),'choices':r});b[U(0x1fc)]=s[U(0x1fc)];}else{const t=p;if(t){const u=await Actions[U(0x1f8)]({'type':U(0x228),'name':o,'message':'Please\x20choose\x20a\x20value\x20for\x20'+o,'choices':p});b[o]=u[o];}else{if(q){const v=await Actions[U(0x1f2)]('Please\x20provide\x20a\x20value\x20for\x20'+o);if(v['match'](q))b[o]=v;else{Log['error'](U(0x219)+o+':\x20'+v);throw new UsageError();}}else{const w=await Actions[U(0x1f2)](U(0x218)+o);b[o]=w;}}}}else{const x=j[o];if(p&&!p[U(0x213)](x)){Log[U(0x221)](U(0x219)+o+':\x20'+x);throw new UsageError();}}}}let k=this[U(0x211)](f),l=b;if(k&&Object[U(0x206)](k)?.['length']>0x0){k=k[U(0x1f3)](i||[]),k[U(0x225)]({'name':U(0x208),'hidden':!![]}),k[U(0x225)]({'name':U(0x216),'boolFlag':!![]}),k['push']({'name':'dir','hidden':!![]}),k[U(0x225)]({'name':U(0x226),'hidden':!![]}),k['push']({'name':U(0x1f1),'hidden':!![]}),k[U(0x225)]({'name':'config','hidden':!![]}),l=this[U(0x1d7)](b,k);for(const y of k){const {name:z,values:A}=y,B=l[z];if(B!==undefined&&(!A||!A[U(0x213)](B))){const C=A;if(C){const D=await Actions[U(0x1f8)]({'type':U(0x228),'name':z,'message':U(0x21f)+z,'choices':A});l[z]=D[z];}}if(k[U(0x1e1)]>0x0)for(const E of Object[U(0x206)](l)){const F=k[U(0x1ee)](G=>G[U(0x209)]===E);if(!F){Log['error']('Invalid\x20option:\x20'+E);throw new UsageError();}}}}if(e&&e?.[U(0x1e1)]>0x0)for(const G of e){if(!e[U(0x213)](G)){Log[U(0x221)](U(0x21e)+G);const H=await Actions['ask'](U(0x1dc)+G);a[a['indexOf'](G)]=H;}}return Object[U(0x1fb)](j,l);}async[a143L(0x1e4)](a){const V=a143L;try{if(!a)return;const b=await this[V(0x1e8)][V(0x1ef)]();!b&&(Log[V(0x221)](V(0x20a)),process[V(0x1e5)](0x1));const c=!b?.[V(0x20b)][V(0x213)](V(0x1d3))&&!b?.[V(0x20b)][V(0x213)]('domainLicense');if(this['isCommand'](a)){const d='To\x20use\x20this\x20command,\x20\x22'+a[V(0x209)]+V(0x1db);if(a[V(0x1f8)][V(0x214)])return;const f=b?.[V(0x1f6)][V(0x213)](a[V(0x209)])||b?.[V(0x1f6)]['includes'](a[V(0x205)]||'')||this['options']['isPro'];if(f&&c)throw d;}else{if(this['isGenerator'](a)){const g=b?.['proGenerators']['includes'](a[V(0x209)])||b?.[V(0x215)]['includes'](a['parent']||'');if(g&&c)throw V(0x201)+a[V(0x209)]+V(0x1db);}}}catch(h){Log[V(0x221)](h),process[V(0x1e5)](0x1);}}[a143L(0x223)](a){return'options'in a;}[a143L(0x21d)](a){return!('options'in a);}[a143L(0x21c)](){const W=a143L;return this[W(0x1f8)]['description']||this[W(0x1f8)][W(0x200)]||W(0x1fd);}[a143L(0x200)](){const X=a143L;return this['options'][X(0x200)]||X(0x1ff);}[a143L(0x1d2)](){const Y=a143L;return this[Y(0x1f8)][Y(0x1d2)]||Y(0x22d);}[a143L(0x21a)](){const Z=a143L;return this[Z(0x1f8)][Z(0x21a)]||[];}[a143L(0x207)](){const a0=a143L;return this[a0(0x1f8)]['aliases']||a0(0x22e);}}
@@ -1 +1 @@
1
- function a144c(){const l=['constructor','380424VXmAJA','ask','input','9aQFtCi','prompt','64094crFidr','confirm','2705563MjERwq','search','815136YdoNId','1251072XsIyjw','14931xNYsiA','answer','2003770VTyLQw','31TTpJYd','toString','(((.+)+)+)+$','options'];a144c=function(){return l;};return a144c();}const a144h=a144d;(function(a,b){const f=a144d,c=a();while(!![]){try{const d=parseInt(f(0x1d5))/0x1*(-parseInt(f(0x1cc))/0x2)+-parseInt(f(0x1ca))/0x3*(-parseInt(f(0x1d0))/0x4)+parseInt(f(0x1d4))/0x5+parseInt(f(0x1da))/0x6+parseInt(f(0x1ce))/0x7+parseInt(f(0x1d1))/0x8+parseInt(f(0x1d2))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a144c,0x98fad));const a144b=(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;};}()),a144a=a144b(this,function(){const g=a144d;return a144a[g(0x1d6)]()[g(0x1cf)]('(((.+)+)+)+$')['toString']()[g(0x1d9)](a144a)[g(0x1cf)](g(0x1d7));});a144a();import a144e from'inquirer';function a144d(a,b){const c=a144c();return a144d=function(d,e){d=d-0x1ca;let f=c[d];return f;},a144d(a,b);}export class Actions{static async[a144h(0x1db)](a,b){const i=a144h,{answer:c}=await a144e[i(0x1cb)]({'type':b?'password':i(0x1dc),'name':i(0x1d3),'message':a});return c;}static async[a144h(0x1cd)](a,b=![]){const j=a144h,{answer:c}=await a144e[j(0x1cb)]({'type':j(0x1cd),'name':'answer','message':a,'default':b});return c;}static async[a144h(0x1d8)](a){const k=a144h,b=await a144e[k(0x1cb)](a);return b;}}
1
+ function a144d(a,b){const c=a144c();return a144d=function(d,e){d=d-0x1a1;let f=c[d];return f;},a144d(a,b);}const a144i=a144d;(function(a,b){const f=a144d,c=a();while(!![]){try{const d=parseInt(f(0x1a5))/0x1*(-parseInt(f(0x1a6))/0x2)+-parseInt(f(0x1ab))/0x3+-parseInt(f(0x1af))/0x4+-parseInt(f(0x1a4))/0x5*(parseInt(f(0x1a1))/0x6)+-parseInt(f(0x1ac))/0x7+parseInt(f(0x1a9))/0x8+parseInt(f(0x1a3))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a144c,0xf1b39));function a144c(){const m=['constructor','confirm','1915332RBEjfE','ask','(((.+)+)+)+$','toString','2928meeWUF','search','30729753hWHGNi','4520GibbgN','7SNWFPH','307642VYvxFu','apply','prompt','2739168GMsexN','password','775998pnQXFZ','3579842LNYubZ'];a144c=function(){return m;};return a144c();}const a144b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a144d;if(c){const e=c[g(0x1a7)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a144a=a144b(this,function(){const h=a144d;return a144a[h(0x1b2)]()[h(0x1a2)]('(((.+)+)+)+$')[h(0x1b2)]()[h(0x1ad)](a144a)[h(0x1a2)](h(0x1b1));});a144a();import a144e from'inquirer';export class Actions{static async[a144i(0x1b0)](a,b){const j=a144i,{answer:c}=await a144e[j(0x1a8)]({'type':b?j(0x1aa):'input','name':'answer','message':a});return c;}static async['confirm'](a,b=![]){const k=a144i,{answer:c}=await a144e['prompt']({'type':k(0x1ae),'name':'answer','message':a,'default':b});return c;}static async['options'](a){const l=a144i,b=await a144e[l(0x1a8)](a);return b;}}
@@ -1 +1 @@
1
- const a145t=a145d;(function(a,b){const p=a145d,c=a();while(!![]){try{const d=-parseInt(p(0x200))/0x1*(-parseInt(p(0x193))/0x2)+-parseInt(p(0x182))/0x3+parseInt(p(0x220))/0x4+parseInt(p(0x216))/0x5+parseInt(p(0x215))/0x6+parseInt(p(0x1d3))/0x7*(parseInt(p(0x1c5))/0x8)+-parseInt(p(0x184))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a145c,0xf18be));const a145b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a145d;if(c){const e=c[q(0x21a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a145a=a145b(this,function(){const r=a145d;return a145a[r(0x1f5)]()['search'](r(0x22e))[r(0x1f5)]()['constructor'](a145a)['search']('(((.+)+)+)+$');});a145a();function a145c(){const a9=['Would\x20you\x20like\x20to\x20update\x20the\x20ssh.json\x20config\x20file?','6076936dxNmIt','\x22\x20created\x20successfully\x20in\x20','fsi','chooseVPC','getAppConfigPath','il-central-1','success','Failed\x20to\x20decode\x20password\x20from\x20authorization\x20token','ap-southeast-1','sa-east-1','state','ingressRule','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','eu-west-3','(((.+)+)+)+$','eu-central-1','Created:\x20','\x20PUB_IP:\x20','ImageId','Failed\x20in\x20','UserData','\x20PRIV_IP:\x20','error','ec2describeInstances','[+]\x20Setting\x20VPC\x20ID\x20to:\x20','getTime','Name','subnetId','image-type','Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[','Key\x20Name:\x20[','CidrBlock','listAvailableAMIs','[?]\x20Please\x20choose\x20an\x20instance\x20ID:\x20','ignore','name','$metadata','ssh.json','Prices','cidr','ap-south-1','No\x20credentials\x20returned\x20from\x20AWS\x20ECR','Could\x20not\x20find\x20hosted\x20zone','trim','ecrCreateRepository','sgIds','You\x20have\x20no\x20instances\x20created\x20by\x20maka-cli.\x20\x20Please\x20reivew\x20your\x20AWS\x20console\x20manually!!!','chooseSecurityGroup','Instance\x20rebooted!','VpcId','UNSUPPORTED','Description','env','registerDomain','Failed\x20to\x20create\x20repository\x20in\x20','Setting\x20AMI\x20ID\x20to\x20','log','Authorization\x20token\x20is\x20missing','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','Web\x20App','No\x20ECR\x20repositories\x20found\x20across\x20all\x20specified\x20regions.','eu-central-2','map','chooseInstance','type','listAvailableSubnets','confirm','Error\x20fetching\x20domain\x20pricing:','ap-northeast-1','getEcrLoginPassword','Setting\x20SG\x20ID\x20to:\x20','timeout','userData','info','ec2rebootInstance','3631908kEXiRe','now','19989333eFGrfo','ap-southeast-3','route53CreateHostedZone','repositories','join','\x20SUBNETID:\x20','base64','writeFileSync','Processing\x20','KeyName','us-west-2','concat','GroupName','No\x20images\x20found.','ec2create','6NeQSwH','file://','createKeyPair','ecrDeleteRepository','CreationDate','repositoryUri','vpcId','tcp','httpStatusCode','me-south-1','me-central-1','Timeout\x20while\x20processing\x20','eu-south-2','region','push','split','ap-northeast-2','\x20:\x20','uri','exit','_keys','Repository\x20\x22','0.0.0.0/0','Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','**\x20Available\x20Security\x20Groups\x20**','maka-cli','machine','deleteSecurityGroup','length','\x20Status\x20Code:\x20','available','ap-northeast-3','.pem.txt','...','stringify','\x20to\x20','message','Description:','ask','notice','Reservations','You\x20will\x20need\x20to\x20update\x20the\x20ssh.json\x20file\x20yourself.','chmod\x20400\x20','us-east-1','From\x20AWS:','Error\x20saving\x20pem\x20file,\x20aborting','Subnets','**\x20Available\x20\x20VPCs\x20**','withSpinner','Error\x20generating\x20key\x20pair','600MTFkRN','\x20INSTANCE_ID:\x20','status','ca-west-1','tags','\x27\x20has\x20been\x20registered\x20successfully.','send','architecture','slice','linkEC2ToRoute53','terminated','ec2terminateInstance','subnet','eu-north-1','23996LSUhmV','privateIp','The\x20domain\x20\x27','\x20CIDR:\x20','\x20AZONE:\x20','ca-central-1','imageId','date','changeResourceRecordSets','\x20SG\x20NAME:\x20','filter','bright','ap-south-2','createKeyPairEC2Key','key','running','ID:\x20','virtualization-type','amiId','root-device-type','getSecurityGroups','us-east-2','environment','\x20DESCRIPTION:\x20','UPSERT','parse','instance','authorizationToken','tag:created-by','listAllEcrRepositories','HostedZones','authorizationData','forEach','Invalid\x20choice','toString','RegistrationPrice','nextToken','us-west-1','find','ap-southeast-4','AvailabilityZone','suggestion','desc','Canonical*Ubuntu*20.04*','\x20NAME:\x20','307844zEULSa','No\x20subnets\x20found.','\x20SGID:\x20','Instances','sgId','/dev/sdh','eu-west-2','Setting\x20Subnet\x20ID\x20to\x20','maxCount','Error\x20linking\x20EC2\x20to\x20Route\x2053:','SubnetId','\x20opened!','isFile','Final\x20list\x20of\x20ECR\x20repositories:','\x20AMIID:\x20','\x20VPCID:\x20','Region:\x20','warn','Value','Port\x20','ec2createSG','9324258JreBIW','835690qFEBJC','pem','instanceId','AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials','apply','There\x20was\x20an\x20error\x20registering\x20the\x20domain\x20name','KeyMaterial','checkDomainAvailability','race'];a145c=function(){return a9;};return a145c();}import a145e from'fs';import a145f from'path';import{execSync}from'child_process';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,DescribeImagesCommand,DescribeSubnetsCommand}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';function a145d(a,b){const c=a145c();return a145d=function(d,e){d=d-0x166;let f=c[d];return f;},a145d(a,b);}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{['fsi'];constructor(){const s=a145d;this[s(0x222)]=new FSI();}async[a145t(0x166)](a){const u=a145t;try{const {listIndexId:b,createdSgId:c,sgList:d}=await this[u(0x1e7)](a);let f='';if(c===''){Log[u(0x1ba)](u(0x1ab)),d[u(0x1f3)](function(h){const v=u;h[v(0x243)]===a?Log['notice'](v(0x1e3)+h['id']+v(0x1dc)+h[v(0x243)]+v(0x202)+h[v(0x204)]):Log[v(0x1de)]('ID:\x20'+h['id']+v(0x1dc)+h[v(0x243)]+v(0x202)+h[v(0x204)]);});const g=await Actions['ask'](u(0x23d)+b+']\x20')||b[u(0x1f5)]();d['forEach'](function(h){const w=u;h['id']===parseInt(g)&&(f=h['sgId'],Log[w(0x226)]('Setting\x20SG\x20ID\x20to:\x20'+f+'\x0a'));});}else f=c,Log['success'](u(0x17d)+f+'\x0a');if(f==='')throw new Error(u(0x22c));return f;}catch(h){Log[u(0x236)](h);throw h;}}async[a145t(0x240)](){const x=a145t;let a='';try{const b=new EC2Client({}),c={'Filters':[{'Name':x(0x1cc),'Values':['x86_64']},{'Name':x(0x1e4),'Values':['hvm']},{'Name':x(0x1e6),'Values':['ebs']},{'Name':x(0x22a),'Values':[x(0x1b1)]},{'Name':x(0x23c),'Values':[x(0x1ad)]},{'Name':'description','Values':['Canonical*Ubuntu*18.04*',x(0x1fe)]}]},d=new DescribeImagesCommand(c),{Images:f}=await b['send'](d);if(f&&f['length']>0x0){const g=new Date(),h=new Date(g[x(0x239)]()-0x1e*0x18*0x3c*0x3c*0x3e8),i=f[x(0x1dd)](j=>j[x(0x197)]&&!j[x(0x16a)]?.['includes'](x(0x169))&&new Date(j[x(0x197)])>h)['map'](j=>({'amiId':j[x(0x232)],'desc':j[x(0x16a)],'date':j[x(0x197)]}));if(i['length']>0x0){i['sort']((n,o)=>new Date(o[x(0x1da)])['getTime']()-new Date(n[x(0x1da)])[x(0x239)]());const j=i[x(0x1cd)](0x0,0x4),k=j[x(0x175)]((n,o)=>({'id':o,'amiId':n[x(0x1e5)],'desc':n[x(0x1fd)]}));k[x(0x1f3)](n=>{const y=x;Log['bright'](y(0x1e3)+n['id']+y(0x20e)+n[y(0x1e5)]+y(0x1ea)+n[y(0x1fd)]);});const l=await Actions['ask'](x(0x171))||'0',m=k['find'](n=>n['id']===parseInt(l));if(m)a=m[x(0x1e5)],Log[x(0x226)](x(0x16e)+a+x(0x1a4)+m[x(0x1fd)]);else throw Log[x(0x236)](x(0x22c));}else throw Log[x(0x236)]('No\x20suitable\x20images\x20found\x20within\x20the\x20last\x2030\x20days.');}else throw Log[x(0x236)](x(0x191));}catch(n){Log[x(0x236)](n);}return a;}async[a145t(0x178)](){const z=a145t;let a='';try{const b=new EC2Client({}),c={},d=new DescribeSubnetsCommand(c),{Subnets:f}=await b[z(0x1cb)](d);if(f&&f[z(0x1af)]>0x0){const g=f[z(0x175)]((j,k)=>({'id':k,'cidr':j[z(0x23f)],'az':j[z(0x1fb)],'subnetId':j[z(0x20a)]}));g[z(0x1f3)](j=>{const A=z;Log[A(0x1de)]('ID:\x20'+j['id']+A(0x1d6)+j[A(0x247)]+A(0x1d7)+j['az']+A(0x189)+j[A(0x23b)]);});const h=await Actions['ask'](z(0x1aa))||'0',i=g[z(0x1f9)](j=>j['id']===parseInt(h));if(i)a=i[z(0x23b)],Log['success'](z(0x207)+a);else throw Log['error'](z(0x22c));}else throw Log['error'](z(0x201));}catch(j){Log[z(0x236)](j);}return a;}async['getSubnetCidr'](a){const B=a145t;try{const b=new EC2Client({}),c={'Filters':[{'Name':'subnet-id','Values':[a]}]},d=new DescribeSubnetsCommand(c),e=await b[B(0x1cb)](d);return e[B(0x1c1)]&&e['Subnets'][B(0x1af)]>0x0?e[B(0x1c1)][0x0][B(0x23f)]||'':'';}catch(f){return Log[B(0x236)](f),'';}}async[a145t(0x24c)](a){const C=a145t;try{const b=new ECRClient({'region':a[C(0x1a0)]}),c={'repositoryName':a[C(0x243)]},d=new CreateRepositoryCommand(c),f=await b['send'](d);return Log[C(0x226)](C(0x1a8)+a[C(0x243)]+C(0x221)+a[C(0x1a0)]+'.'),f;}catch(g){Log['error'](C(0x16d)+a['region']+':\x20'+g);throw g;}}async[a145t(0x1f0)](a){const D=a145t,b=[D(0x1be),'us-east-2','us-west-1','us-west-2',D(0x248),D(0x1b2),D(0x1a3),D(0x228),'ap-southeast-2',D(0x17b),D(0x1d8),D(0x22f),'eu-west-1',D(0x206),D(0x22d),D(0x1d2),D(0x229),'af-south-1','ap-east-1',D(0x1df),D(0x185),D(0x1fa),D(0x1c8),'eu-south-1',D(0x19f),D(0x174),D(0x19c),D(0x19d),D(0x225)],c=[D(0x1be),D(0x1e8),D(0x1f8),D(0x18e)],d=a==='all'?b:a?a['split'](','):c;let f=[];const g=Log[D(0x1c3)]();for(const h of d){g['start'](D(0x18c)+h[D(0x24b)]()+D(0x1b4));const i=new ECRClient({'region':h[D(0x24b)]()});try{let j=undefined;do{const k=await Promise[D(0x21e)]([i[D(0x1cb)](new DescribeRepositoriesCommand({'nextToken':j})),new Promise(l=>setTimeout(()=>l(D(0x17e)),0x7d0))]);if(k==='timeout'){Log[D(0x211)](D(0x19e)+h[D(0x24b)]()+'.');break;}else k[D(0x187)]&&k['repositories'][D(0x1af)]>0x0&&(f=f[D(0x18f)](k['repositories'][D(0x175)](l=>({'name':l['repositoryName'],'uri':l[D(0x198)],'region':h['trim']()}))));j=k[D(0x1f7)];}while(j);}catch(l){Log[D(0x236)](D(0x233)+h[D(0x24b)]()+':\x20'+l[D(0x1b7)]);}finally{g['stop']();}}return f['length']>0x0?(console['log'](),Log[D(0x226)](D(0x20d)),f[D(0x1f3)](m=>{const E=D;Log[E(0x180)](E(0x210)+m[E(0x1a0)]+',\x20Name:\x20'+m[E(0x243)]+',\x20URI:\x20'+m[E(0x1a5)]);})):Log[D(0x211)](D(0x173)),f;}async[a145t(0x186)](a){const F=a145t;try{const b={'CallerReference':''+Date[F(0x183)](),'Name':a},c=new CreateHostedZoneCommand(b);await route53Client['send'](c),Log[F(0x226)]('Hosted\x20zone\x20created\x20successfully!');}catch(d){Log['error']('Error\x20creating\x20hosted\x20zone'),console[F(0x236)](d);}}async[a145t(0x16c)](a,b,c,d){const G=a145t;try{const e={'DomainName':b,'DurationInYears':c,'AutoRenew':d,'AdminContact':a,'RegistrantContact':a,'TechContact':a},f=new RegisterDomainCommand(e);await route53[G(0x1cb)](f),Log[G(0x1ba)](G(0x1d5)+b+G(0x1ca));}catch(g){Log['error'](G(0x21b)),Log['warn'](G(0x1bf)),console[G(0x236)](G(0x1b0)+g['$response']['statusCode']),console['error']('\x20Error\x20Rason:\x20'+g['$response']['reason']);}}async[a145t(0x21d)](a){const H=a145t,b={'DomainName':a},c=new CheckDomainAvailabilityCommand(b),d=await route53Domains[H(0x1cb)](c),e=d['Availability']==='AVAILABLE';if(e){const f=a[H(0x1a2)]('.')['pop'](),g={'MaxItems':0x1,'Tld':f};try{const h=new ListPricesCommand(g),i=await route53Domains[H(0x1cb)](h);if(i&&i['Prices']&&i['Prices'][0x0]?.[H(0x1f6)]){const j=i[H(0x246)][0x0][H(0x1f6)];return{'available':e,'cost':j};}}catch(k){console[H(0x236)](H(0x17a),k);}}return{'available':e};}async[a145t(0x1ce)](a,b,c){const I=a145t;try{const d=await route53['listHostedZonesByName']({'DNSName':c});if(!d?.[I(0x1f1)])throw Log[I(0x236)](I(0x24a));const e=d?.[I(0x1f1)][0x0]['Id'],f={'ChangeBatch':{'Changes':[{'Action':I(0x1eb),'ResourceRecordSet':{'Name':c,'Type':'A','TTL':0x12c,'ResourceRecords':[{'Value':b}]}}]},'HostedZoneId':e};await route53[I(0x1db)](f),Log[I(0x1ba)]('Successfully\x20linked\x20EC2\x20instance\x20'+a+I(0x1b6)+c);}catch(g){console[I(0x236)](I(0x209),g);}}async[a145t(0x17c)]({awsAccountId:a,region:b}){const J=a145t,c=new ECRClient({'region':b});try{const d=new GetAuthorizationTokenCommand({'registryIds':[a]}),f=await c[J(0x1cb)](d);if(!f[J(0x1f2)]||f[J(0x1f2)][J(0x1af)]===0x0)throw new Error('Authorization\x20data\x20is\x20empty');const g=f[J(0x1f2)][0x0];if(!g[J(0x1ee)])throw new Error(J(0x170));const h=g[J(0x1ee)];if(!h)throw new Error(J(0x249));const i=Buffer['from'](h,J(0x18a))[J(0x1f5)](),j=i[J(0x1a2)](':')[0x1];if(!j)throw new Error(J(0x227));return j;}catch(k){Log['error'](k);throw k;}}async[a145t(0x196)]({repoName:a,region:b}){const K=a145t,c=new ECRClient({'region':b});try{const d=new DeleteRepositoryCommand({'repositoryName':a,'force':!![]}),f=await c[K(0x1cb)](d);return f;}catch(g){Log[K(0x236)](g);throw g;}}async[a145t(0x192)](a){const L=a145t;try{const b={'BlockDeviceMappings':[{'DeviceName':L(0x205),'Ebs':{'VolumeSize':0x64}}],'ImageId':a[L(0x1d9)],'InstanceType':a[L(0x177)],'KeyName':a[L(0x1e1)],'MaxCount':a[L(0x208)],'MinCount':a['minCount'],'SecurityGroupIds':a[L(0x24d)][L(0x1a2)](','),'SubnetId':a[L(0x1d1)],'TagSpecifications':[{'ResourceType':L(0x1ed),'Tags':a[L(0x1c9)]}]};a[L(0x17f)]&&(b[L(0x234)]=L(0x194)+a['userData']);const c=new RunInstancesCommand(b),d=await client['send'](c);return d;}catch(f){Log['error'](f);}}async[a145t(0x1d0)](a){const M=a145t;try{const b={'InstanceIds':[a[M(0x218)]]},c=new TerminateInstancesCommand(b),d=await client[M(0x1cb)](c);return d;}catch(f){return Log[M(0x236)](f),{};}}async['createKeyPairEC2Key']({keyName:a,env:b}){const N=a145t,c=this['fsi'][N(0x224)](b),d=a145f['join'](c,N(0x1a7),a+N(0x1b3));try{const f={'KeyName':a},g=new CreateKeyPairCommand(f),h=await client[N(0x1cb)](g),i=h[N(0x21c)];if(i){await this[N(0x222)]['createFile']({'filePath':d,'data':i}),execSync(N(0x1bd)+d,{'stdio':N(0x242)});const j=this[N(0x222)][N(0x20c)](d);if(j)return Log['success']('Pem\x20key\x20saved\x20to\x20'+d),{'keyName':a,'filePath':d};else throw new Error(N(0x1c0));}else throw new Error(N(0x1c4));}catch(k){Log['error'](k),process[N(0x1a6)](0x1);}}async[a145t(0x22b)]({port:a,groupId:b}){const O=a145t,c={'GroupId':b,'IpPermissions':[{'FromPort':a,'IpProtocol':O(0x19a),'IpRanges':[{'CidrIp':O(0x1a9),'Description':''}],'ToPort':a}]},d=new AuthorizeSecurityGroupIngressCommand(c);return Log[O(0x1ba)](O(0x213)+a+O(0x20b)),await client[O(0x1cb)](d);}async[a145t(0x214)](a){const P=a145t;try{a['description']===''&&(a['description']=await Actions[P(0x1b9)](P(0x1b8))||P(0x172));const b={'Description':a['description'],'GroupName':a[P(0x243)],'VpcId':a['vpcId']},c=new CreateSecurityGroupCommand(b),d=await client[P(0x1cb)](c),{GroupId:f}=d;if(!d)throw new Error(P(0x219));f&&a['sgPorts']['forEach'](g=>{const Q=P;this[Q(0x22b)]({'port':parseInt(g),'groupId':f});}),Log[P(0x226)](P(0x230)+f+P(0x1ff)+a['name']);}catch(g){return Log['error'](g),![];}return!![];}async['ec2describeKeys'](a){const R=a145t,b=[];try{const c={},d=new DescribeKeyPairsCommand(c),f=await client['send'](d);if(!f)throw R(0x219);const {KeyPairs:g}=f;g?(g?.[R(0x1f3)]((h,i)=>{const S=R;h[S(0x18d)]&&b[S(0x1a1)]({'id':i,'name':h[S(0x18d)]});}),b['length']>0x0&&b['forEach'](h=>{const T=R;h[T(0x243)]===a?.[T(0x1fc)]?Log[T(0x226)](T(0x1e3)+h['id']+'\x20NAME:\x20'+h['name']):Log['notice']('ID:\x20'+h['id']+T(0x1ff)+h[T(0x243)]);})):Log['error']('You\x20have\x20no\x20key-pairs,\x20please\x20create\x20one.\x20(maka\x20aws\x20create-key-pair\x20--env).');}catch(h){Log[R(0x236)](h);}return b;}async['deleteKeyPair'](a){const U=a145t;try{const b={'KeyName':a},c=new DeleteKeyPairCommand(b);await client['send'](c);}catch(d){Log[U(0x236)](d),process[U(0x1a6)](0x1);}}async[a145t(0x237)](){const V=a145t,a=[];try{const b={'Filters':[{'Name':V(0x1ef),'Values':[V(0x1ac)]}]},c=new DescribeInstancesCommand(b),d=await client[V(0x1cb)](c);d[V(0x1bb)]?.[V(0x1f3)]((f,g)=>{const W=V;if(f?.['Instances']){const {InstanceId:h,PublicIpAddress:i,PrivateIpAddress:j,State:k,KeyName:l,Tags:m}=f[W(0x203)][0x0],n=m?.[W(0x1f9)](({Key:o})=>o===W(0x1e9));a[W(0x1a1)]({'id':g,'instanceId':h,'privateIp':j,'publicIp':i,'status':k?.[W(0x23a)],'name':l,'env':n?.[W(0x212)]});}}),a[V(0x1af)]>0x0?a['forEach'](f=>{const X=V,g='ID:\x20'+f['id']+X(0x1ff)+f['name']+'\x20ENV:\x20'+f[X(0x16b)]+'\x20STATUS:\x20'+f[X(0x1c7)]+X(0x1c6)+f[X(0x218)]+X(0x231)+f['publicIp']+X(0x235)+f[X(0x1d4)];if(f['status']===X(0x1cf))Log['error'](g);else f['status']===X(0x1e2)?Log['success'](g):Log[X(0x1ba)](g);}):Log['error'](V(0x24e));}catch(f){Log['error'](f);}return a;}async[a145t(0x181)](a){const Y=a145t;try{const b={'InstanceIds':[a['instanceId']]},c=new RebootInstancesCommand(b),d=await client[Y(0x1cb)](c);return d[Y(0x244)][Y(0x19b)]===0xc8&&Log[Y(0x226)](Y(0x167)),d;}catch(f){Log['error'](f);}}async[a145t(0x223)](){const Z=a145t;let a='';Log['notice'](Z(0x1c2));const b=new DescribeVpcsCommand({}),c=await client[Z(0x1cb)](b),{Vpcs:d}=c,e=[];d&&d[Z(0x1f3)]((g,h)=>{const a0=Z;g[a0(0x168)]&&g[a0(0x23f)]&&e[a0(0x1a1)]({'id':h,'vpcId':g[a0(0x168)],'cidr':g['CidrBlock']});});e['forEach'](function(g){const a1=Z;console[a1(0x16f)](a1(0x1e3)+g['id']+a1(0x20f)+g[a1(0x199)]+a1(0x1d6)+g[a1(0x247)]);});const f=await Actions['ask']('Please\x20choose\x20a\x20VPC:\x20[0]\x20')||0x0;e[Z(0x1f3)](function(g){const a2=Z;g['id']==f&&(a=g['vpcId'],Log[a2(0x226)](a2(0x238)+a+'\x0a'));});if(a==='')return Log[Z(0x236)](Z(0x22c)),'';return a;}async[a145t(0x176)](){const a3=a145t,a=await this[a3(0x237)]();if(a[a3(0x1af)]===0x0)return Log[a3(0x236)]('No\x20instances\x20found'),null;const b=await Actions[a3(0x1b9)](a3(0x241));!b&&(Log[a3(0x236)](a3(0x1f4)),process['exit'](0x0));const c=a[a3(0x1f9)](({id:d})=>{return d==parseInt(b);})||null;return c;}async[a145t(0x195)]({env:a}){const a4=a145t,b=this['fsi']['getMakaProjectConfig'](),{appName:c}=b,d=c+'-'+a,f=await Actions[a4(0x1b9)](a4(0x23e)+d+']\x20')||d,{filePath:g}=await this[a4(0x1e0)]({'keyName':f,'env':a});try{const h=await Actions[a4(0x179)](a4(0x21f),!![]);if(h)try{const i=a145f[a4(0x188)]('config',a,a4(0x245));!this[a4(0x222)]['isFile'](i)&&await this[a4(0x222)]['template']({'srcPath':'config/ssh.json','destPath':i,'context':{'app':f}});const j=a145e['readFileSync'](a145f[a4(0x188)]('config',a,'ssh.json'),'utf8'),k=JSON[a4(0x1ec)](j);k[a4(0x217)]=a145f[a4(0x188)]('_keys',f+a4(0x1b3)),a145e[a4(0x18b)](a145f[a4(0x188)]('config',a,a4(0x245)),JSON[a4(0x1b5)](k,null,0x2));}catch(l){Log[a4(0x236)](l),Log[a4(0x236)](a4(0x1bc));}}catch(m){Log[a4(0x236)](m),process[a4(0x1a6)](0x1);}return{'keyName':f,'filePath':g};}async['getSecurityGroups'](a){const a5=a145t,b=[],c={},d=new DescribeSecurityGroupsCommand(c),e=await client[a5(0x1cb)](d),{SecurityGroups:f}=e;f&&f['forEach'](function(i,j){const a6=a5;i[a6(0x190)]&&i['GroupId']&&b['push']({'id':j,'name':i[a6(0x190)],'sgId':i['GroupId']});});let g='',h=0x0;return b[a5(0x1f3)](function(i){const a7=a5;i[a7(0x243)]===a&&(g=i[a7(0x204)],h=i['id']);}),{'sgList':b,'createdSgId':g,'listIndexId':h};}async[a145t(0x1ae)](a){const a8=a145t;try{const b={'GroupId':a},c=new DeleteSecurityGroupCommand(b);await client[a8(0x1cb)](c);}catch(d){Log[a8(0x236)](d),process[a8(0x1a6)](0x1);}}}
1
+ const a145s=a145d;(function(a,b){const p=a145d,c=a();while(!![]){try{const d=-parseInt(p(0x278))/0x1*(parseInt(p(0x226))/0x2)+parseInt(p(0x25d))/0x3*(parseInt(p(0x280))/0x4)+-parseInt(p(0x1a7))/0x5*(-parseInt(p(0x24c))/0x6)+-parseInt(p(0x19a))/0x7*(-parseInt(p(0x1d8))/0x8)+parseInt(p(0x1ab))/0x9*(-parseInt(p(0x1ef))/0xa)+-parseInt(p(0x1d9))/0xb+-parseInt(p(0x1e2))/0xc*(-parseInt(p(0x267))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a145c,0x47d1d));const a145b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a145d;if(c){const e=c[q(0x20b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a145a=a145b(this,function(){const r=a145d;return a145a[r(0x26a)]()[r(0x250)](r(0x21d))[r(0x26a)]()[r(0x1ea)](a145a)[r(0x250)](r(0x21d));});function a145c(){const a7=['eu-west-2','Canonical*Ubuntu*18.04*','sgIds','state','notice','imageId','**\x20Available\x20\x20VPCs\x20**','CidrBlock','UPSERT','ec2create','19Ntbpuf','KeyMaterial','statusCode','\x20STATUS:\x20','Successfully\x20linked\x20EC2\x20instance\x20','root-device-type','Pem\x20key\x20saved\x20to\x20','env','4gFSDGr','Subnets','Repository\x20\x22','ca-central-1','virtualization-type','eu-north-1','reason','forEach','uri','161qeMHTx','chooseInstance','sort','running','minCount','length','listAllEcrRepositories','\x20DESCRIPTION:\x20','terminated','map','concat','createKeyPairEC2Key','...','9290fTneSK',',\x20Name:\x20','trim','You\x20have\x20no\x20key-pairs,\x20please\x20create\x20one.\x20(maka\x20aws\x20create-key-pair\x20--env).','18nMJaxy','\x20AMIID:\x20','Reservations','slice','ecrCreateRepository','route53CreateHostedZone','exit','RegistrationPrice','pop','ecrDeleteRepository','key','description','sa-east-1','No\x20images\x20found.','environment','repositoryUri','Canonical*Ubuntu*20.04*','ap-northeast-3','Port\x20','Description','linkEC2ToRoute53','isFile','VpcId',',\x20URI:\x20','subnetId','us-east-1','No\x20subnets\x20found.','[+]\x20Setting\x20VPC\x20ID\x20to:\x20','all','Setting\x20Subnet\x20ID\x20to\x20','ap-south-2','\x22\x20created\x20successfully\x20in\x20','HostedZones','repositoryName','Prices','vpcId','us-west-1','ap-east-1','Please\x20choose\x20a\x20VPC:\x20[0]\x20','pem','date','\x20PRIV_IP:\x20','getSubnetCidr','privateIp','status','19384OWvfMT','5184542ylOORD','split','parse','userData','CreationDate','Hosted\x20zone\x20created\x20successfully!','\x20SG\x20NAME:\x20','\x20CIDR:\x20','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','36iTwQLz','\x20AZONE:\x20','[?]\x20Please\x20choose\x20an\x20instance\x20ID:\x20','**\x20Available\x20Security\x20Groups\x20**','stringify','ap-southeast-4','authorizationToken','chmod\x20400\x20','constructor','log','amiId','withSpinner','You\x20have\x20no\x20instances\x20created\x20by\x20maka-cli.\x20\x20Please\x20reivew\x20your\x20AWS\x20console\x20manually!!!','937560ufnLLG','registerDomain','file://','\x20ENV:\x20','Timeout\x20while\x20processing\x20','success','You\x20will\x20need\x20to\x20update\x20the\x20ssh.json\x20file\x20yourself.','Could\x20not\x20find\x20hosted\x20zone','AvailabilityZone','race','listAvailableSubnets','config','ask','Availability','repositories','UNSUPPORTED','tag:created-by','ap-southeast-2','getTime','warn','UserData','sgPorts','deleteSecurityGroup','Failed\x20to\x20decode\x20password\x20from\x20authorization\x20token','x86_64','nextToken','Setting\x20AMI\x20ID\x20to\x20','tags','apply','ap-southeast-1','writeFileSync','ap-south-1','Setting\x20SG\x20ID\x20to:\x20','message','join','eu-central-1','\x20opened!','ingressRule','ec2describeKeys','ap-northeast-2','now','bright','ap-southeast-3','cidr','chooseSecurityGroup','Authorization\x20token\x20is\x20missing','(((.+)+)+)+$','ca-west-1','\x20:\x20','base64','readFileSync','confirm','find','AVAILABLE','ec2describeInstances','4180IAMqHI','\x20SUBNETID:\x20','Instances','Region:\x20','\x20to\x20','ec2createSG','name','utf8','push','authorizationData','\x20PUB_IP:\x20','AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials','_keys','instanceId','Web\x20App','ignore','Error\x20saving\x20pem\x20file,\x20aborting','suggestion','\x20INSTANCE_ID:\x20','region','from','\x20Error\x20Rason:\x20','\x20SGID:\x20','ap-northeast-1','ec2terminateInstance','Failed\x20in\x20','No\x20instances\x20found','deleteKeyPair','ID:\x20','Created:\x20','error','GroupName','me-south-1','sgId','desc','$response','us-east-2','eu-south-2','1182jUfixq','Key\x20Name:\x20[','Processing\x20','\x20NAME:\x20','search','changeResourceRecordSets','timeout','createKeyPair','subnet-id','0.0.0.0/0','send','filter','start','eu-south-1','available','eu-west-3','The\x20domain\x20\x27','1683555SMWGdB','hvm','fsi','\x20Status\x20Code:\x20','No\x20ECR\x20repositories\x20found\x20across\x20all\x20specified\x20regions.','me-central-1','From\x20AWS:','Name','config/ssh.json','ImageId','42367mLRtVK','GroupId','Error\x20linking\x20EC2\x20to\x20Route\x2053:','toString','Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[','KeyName','includes'];a145c=function(){return a7;};return a145c();}a145a();import a145e from'fs';import a145f from'path';import{execSync}from'child_process';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,DescribeImagesCommand,DescribeSubnetsCommand}from'@aws-sdk/client-ec2';import{ECRClient,CreateRepositoryCommand,DeleteRepositoryCommand,GetAuthorizationTokenCommand,DescribeRepositoriesCommand}from'@aws-sdk/client-ecr';function a145d(a,b){const c=a145c();return a145d=function(d,e){d=d-0x199;let f=c[d];return f;},a145d(a,b);}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{[a145s(0x25f)];constructor(){const t=a145s;this[t(0x25f)]=new FSI();}async[a145s(0x21b)](a){const u=a145s;try{const {listIndexId:b,createdSgId:c,sgList:d}=await this['getSecurityGroups'](a);let f='';if(c===''){Log[u(0x272)](u(0x1e5)),d['forEach'](function(h){const v=u;h['name']===a?Log[v(0x272)]('ID:\x20'+h['id']+v(0x1df)+h['name']+v(0x23c)+h[v(0x247)]):Log[v(0x218)]('ID:\x20'+h['id']+v(0x1df)+h[v(0x22c)]+'\x20SGID:\x20'+h['sgId']);});const g=await Actions[u(0x1fb)](u(0x26b)+b+']\x20')||b[u(0x26a)]();d[u(0x287)](function(h){const w=u;h['id']===parseInt(g)&&(f=h[w(0x247)],Log[w(0x1f4)](w(0x20f)+f+'\x0a'));});}else f=c,Log[u(0x1f4)](u(0x20f)+f+'\x0a');if(f==='')throw new Error(u(0x1e1));return f;}catch(h){Log[u(0x244)](h);throw h;}}async['listAvailableAMIs'](){const x=a145s;let a='';try{const b=new EC2Client({}),c={'Filters':[{'Name':'architecture','Values':[x(0x207)]},{'Name':x(0x284),'Values':[x(0x25e)]},{'Name':x(0x27d),'Values':['ebs']},{'Name':x(0x271),'Values':[x(0x25a)]},{'Name':'image-type','Values':['machine']},{'Name':x(0x1b6),'Values':[x(0x26f),x(0x1bb)]}]},d=new DescribeImagesCommand(c),{Images:f}=await b[x(0x256)](d);if(f&&f['length']>0x0){const g=new Date(),h=new Date(g['getTime']()-0x1e*0x18*0x3c*0x3c*0x3e8),i=f[x(0x257)](j=>j[x(0x1dd)]&&!j['Description']?.[x(0x26d)](x(0x1fe))&&new Date(j[x(0x1dd)])>h)[x(0x1a3)](j=>({'amiId':j[x(0x266)],'desc':j[x(0x1be)],'date':j[x(0x1dd)]}));if(i[x(0x19f)]>0x0){i[x(0x19c)]((n,o)=>new Date(o[x(0x1d3)])[x(0x201)]()-new Date(n[x(0x1d3)])[x(0x201)]());const j=i[x(0x1ae)](0x0,0x4),k=j['map']((n,o)=>({'id':o,'amiId':n['amiId'],'desc':n[x(0x248)]}));k['forEach'](n=>{const y=x;Log['bright'](y(0x242)+n['id']+y(0x1ac)+n[y(0x1ec)]+y(0x1a1)+n[y(0x248)]);});const l=await Actions[x(0x1fb)]('Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20')||'0',m=k[x(0x223)](n=>n['id']===parseInt(l));if(m)a=m['amiId'],Log[x(0x1f4)](x(0x209)+a+x(0x21f)+m[x(0x248)]);else throw Log[x(0x244)](x(0x1e1));}else throw Log[x(0x244)]('No\x20suitable\x20images\x20found\x20within\x20the\x20last\x2030\x20days.');}else throw Log[x(0x244)](x(0x1b8));}catch(n){Log[x(0x244)](n);}return a;}async[a145s(0x1f9)](){const z=a145s;let a='';try{const b=new EC2Client({}),c={},d=new DescribeSubnetsCommand(c),{Subnets:f}=await b['send'](d);if(f&&f['length']>0x0){const g=f['map']((j,k)=>({'id':k,'cidr':j[z(0x275)],'az':j[z(0x1f7)],'subnetId':j['SubnetId']}));g[z(0x287)](j=>{const A=z;Log['bright'](A(0x242)+j['id']+A(0x1e0)+j[A(0x21a)]+A(0x1e3)+j['az']+A(0x227)+j[A(0x1c3)]);});const h=await Actions[z(0x1fb)]('Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20')||'0',i=g[z(0x223)](j=>j['id']===parseInt(h));if(i)a=i[z(0x1c3)],Log['success'](z(0x1c8)+a);else throw Log[z(0x244)](z(0x1e1));}else throw Log[z(0x244)](z(0x1c5));}catch(j){Log['error'](j);}return a;}async[a145s(0x1d5)](a){const B=a145s;try{const b=new EC2Client({}),c={'Filters':[{'Name':B(0x254),'Values':[a]}]},d=new DescribeSubnetsCommand(c),e=await b[B(0x256)](d);return e['Subnets']&&e[B(0x281)][B(0x19f)]>0x0?e['Subnets'][0x0]['CidrBlock']||'':'';}catch(f){return Log['error'](f),'';}}async[a145s(0x1af)](a){const C=a145s;try{const b=new ECRClient({'region':a[C(0x239)]}),c={'repositoryName':a['name']},d=new CreateRepositoryCommand(c),f=await b['send'](d);return Log['success'](C(0x282)+a[C(0x22c)]+C(0x1ca)+a[C(0x239)]+'.'),f;}catch(g){Log[C(0x244)]('Failed\x20to\x20create\x20repository\x20in\x20'+a['region']+':\x20'+g);throw g;}}async[a145s(0x1a0)](a){const D=a145s,b=[D(0x1c4),'us-east-2',D(0x1cf),'us-west-2',D(0x20e),D(0x1bc),D(0x216),D(0x20c),D(0x200),D(0x23d),D(0x283),D(0x212),'eu-west-1',D(0x26e),D(0x25b),D(0x285),D(0x1b7),'af-south-1',D(0x1d0),D(0x1c9),D(0x219),D(0x1e7),D(0x21e),D(0x259),D(0x24b),'eu-central-2',D(0x246),D(0x262),'il-central-1'],c=[D(0x1c4),D(0x24a),D(0x1cf),'us-west-2'],d=a===D(0x1c7)?b:a?a['split'](','):c;let f=[];const g=Log[D(0x1ed)]();for(const h of d){g[D(0x258)](D(0x24e)+h[D(0x1a9)]()+D(0x1a6));const i=new ECRClient({'region':h[D(0x1a9)]()});try{let j=undefined;do{const k=await Promise[D(0x1f8)]([i[D(0x256)](new DescribeRepositoriesCommand({'nextToken':j})),new Promise(l=>setTimeout(()=>l(D(0x252)),0x7d0))]);if(k===D(0x252)){Log['warn'](D(0x1f3)+h['trim']()+'.');break;}else k[D(0x1fd)]&&k[D(0x1fd)]['length']>0x0&&(f=f[D(0x1a4)](k[D(0x1fd)][D(0x1a3)](l=>({'name':l[D(0x1cc)],'uri':l[D(0x1ba)],'region':h[D(0x1a9)]()}))));j=k[D(0x208)];}while(j);}catch(l){Log[D(0x244)](D(0x23f)+h[D(0x1a9)]()+':\x20'+l[D(0x210)]);}finally{g['stop']();}}return f[D(0x19f)]>0x0?(console[D(0x1eb)](),Log[D(0x1f4)]('Final\x20list\x20of\x20ECR\x20repositories:'),f[D(0x287)](m=>{const E=D;Log['info'](E(0x229)+m['region']+E(0x1a8)+m[E(0x22c)]+E(0x1c2)+m[E(0x199)]);})):Log[D(0x202)](D(0x261)),f;}async[a145s(0x1b0)](a){const F=a145s;try{const b={'CallerReference':''+Date[F(0x217)](),'Name':a},c=new CreateHostedZoneCommand(b);await route53Client[F(0x256)](c),Log['success'](F(0x1de));}catch(d){Log[F(0x244)]('Error\x20creating\x20hosted\x20zone'),console['error'](d);}}async[a145s(0x1f0)](a,b,c,d){const G=a145s;try{const e={'DomainName':b,'DurationInYears':c,'AutoRenew':d,'AdminContact':a,'RegistrantContact':a,'TechContact':a},f=new RegisterDomainCommand(e);await route53[G(0x256)](f),Log[G(0x272)](G(0x25c)+b+'\x27\x20has\x20been\x20registered\x20successfully.');}catch(g){Log[G(0x244)]('There\x20was\x20an\x20error\x20registering\x20the\x20domain\x20name'),Log['warn'](G(0x263)),console[G(0x244)](G(0x260)+g[G(0x249)][G(0x27a)]),console[G(0x244)](G(0x23b)+g[G(0x249)][G(0x286)]);}}async['checkDomainAvailability'](a){const H=a145s,b={'DomainName':a},c=new CheckDomainAvailabilityCommand(b),d=await route53Domains['send'](c),e=d[H(0x1fc)]===H(0x224);if(e){const f=a['split']('.')[H(0x1b3)](),g={'MaxItems':0x1,'Tld':f};try{const h=new ListPricesCommand(g),i=await route53Domains[H(0x256)](h);if(i&&i['Prices']&&i[H(0x1cd)][0x0]?.[H(0x1b2)]){const j=i[H(0x1cd)][0x0][H(0x1b2)];return{'available':e,'cost':j};}}catch(k){console['error']('Error\x20fetching\x20domain\x20pricing:',k);}}return{'available':e};}async[a145s(0x1bf)](a,b,c){const I=a145s;try{const d=await route53['listHostedZonesByName']({'DNSName':c});if(!d?.[I(0x1cb)])throw Log['error'](I(0x1f6));const e=d?.['HostedZones'][0x0]['Id'],f={'ChangeBatch':{'Changes':[{'Action':I(0x276),'ResourceRecordSet':{'Name':c,'Type':'A','TTL':0x12c,'ResourceRecords':[{'Value':b}]}}]},'HostedZoneId':e};await route53[I(0x251)](f),Log['notice'](I(0x27c)+a+I(0x22a)+c);}catch(g){console[I(0x244)](I(0x269),g);}}async['getEcrLoginPassword']({awsAccountId:a,region:b}){const J=a145s,c=new ECRClient({'region':b});try{const d=new GetAuthorizationTokenCommand({'registryIds':[a]}),f=await c[J(0x256)](d);if(!f[J(0x22f)]||f[J(0x22f)][J(0x19f)]===0x0)throw new Error('Authorization\x20data\x20is\x20empty');const g=f[J(0x22f)][0x0];if(!g['authorizationToken'])throw new Error(J(0x21c));const h=g[J(0x1e8)];if(!h)throw new Error('No\x20credentials\x20returned\x20from\x20AWS\x20ECR');const i=Buffer[J(0x23a)](h,J(0x220))[J(0x26a)](),j=i[J(0x1da)](':')[0x1];if(!j)throw new Error(J(0x206));return j;}catch(k){Log['error'](k);throw k;}}async[a145s(0x1b4)]({repoName:a,region:b}){const c=new ECRClient({'region':b});try{const d=new DeleteRepositoryCommand({'repositoryName':a,'force':!![]}),f=await c['send'](d);return f;}catch(g){Log['error'](g);throw g;}}async[a145s(0x277)](a){const K=a145s;try{const b={'BlockDeviceMappings':[{'DeviceName':'/dev/sdh','Ebs':{'VolumeSize':0x64}}],'ImageId':a[K(0x273)],'InstanceType':a['type'],'KeyName':a[K(0x1b5)],'MaxCount':a['maxCount'],'MinCount':a[K(0x19e)],'SecurityGroupIds':a[K(0x270)]['split'](','),'SubnetId':a['subnet'],'TagSpecifications':[{'ResourceType':'instance','Tags':a[K(0x20a)]}]};a[K(0x1dc)]&&(b[K(0x203)]=K(0x1f1)+a[K(0x1dc)]);const c=new RunInstancesCommand(b),d=await client['send'](c);return d;}catch(f){Log[K(0x244)](f);}}async[a145s(0x23e)](a){const L=a145s;try{const b={'InstanceIds':[a[L(0x233)]]},c=new TerminateInstancesCommand(b),d=await client[L(0x256)](c);return d;}catch(f){return Log[L(0x244)](f),{};}}async[a145s(0x1a5)]({keyName:a,env:b}){const M=a145s,c=this[M(0x25f)]['getAppConfigPath'](b),d=a145f[M(0x211)](c,M(0x232),a+'.pem.txt');try{const f={'KeyName':a},g=new CreateKeyPairCommand(f),h=await client['send'](g),i=h[M(0x279)];if(i){await this[M(0x25f)]['createFile']({'filePath':d,'data':i}),execSync(M(0x1e9)+d,{'stdio':M(0x235)});const j=this[M(0x25f)][M(0x1c0)](d);if(j)return Log[M(0x1f4)](M(0x27e)+d),{'keyName':a,'filePath':d};else throw new Error(M(0x236));}else throw new Error('Error\x20generating\x20key\x20pair');}catch(k){Log[M(0x244)](k),process['exit'](0x1);}}async[a145s(0x214)]({port:a,groupId:b}){const N=a145s,c={'GroupId':b,'IpPermissions':[{'FromPort':a,'IpProtocol':'tcp','IpRanges':[{'CidrIp':N(0x255),'Description':''}],'ToPort':a}]},d=new AuthorizeSecurityGroupIngressCommand(c);return Log[N(0x272)](N(0x1bd)+a+N(0x213)),await client['send'](d);}async[a145s(0x22b)](a){const O=a145s;try{a[O(0x1b6)]===''&&(a['description']=await Actions[O(0x1fb)]('Description:')||O(0x234));const b={'Description':a[O(0x1b6)],'GroupName':a[O(0x22c)],'VpcId':a['vpcId']},c=new CreateSecurityGroupCommand(b),d=await client[O(0x256)](c),{GroupId:f}=d;if(!d)throw new Error('AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials');f&&a[O(0x204)][O(0x287)](g=>{this['ingressRule']({'port':parseInt(g),'groupId':f});}),Log[O(0x1f4)](O(0x243)+f+'\x20NAME:\x20'+a[O(0x22c)]);}catch(g){return Log[O(0x244)](g),![];}return!![];}async[a145s(0x215)](a){const P=a145s,b=[];try{const c={},d=new DescribeKeyPairsCommand(c),f=await client[P(0x256)](d);if(!f)throw P(0x231);const {KeyPairs:g}=f;g?(g?.[P(0x287)]((h,i)=>{const Q=P;h[Q(0x26c)]&&b['push']({'id':i,'name':h['KeyName']});}),b[P(0x19f)]>0x0&&b[P(0x287)](h=>{const R=P;h[R(0x22c)]===a?.[R(0x237)]?Log[R(0x1f4)]('ID:\x20'+h['id']+R(0x24f)+h[R(0x22c)]):Log[R(0x272)](R(0x242)+h['id']+R(0x24f)+h[R(0x22c)]);})):Log[P(0x244)](P(0x1aa));}catch(h){Log['error'](h);}return b;}async[a145s(0x241)](a){const S=a145s;try{const b={'KeyName':a},c=new DeleteKeyPairCommand(b);await client[S(0x256)](c);}catch(d){Log[S(0x244)](d),process['exit'](0x1);}}async[a145s(0x225)](){const T=a145s,a=[];try{const b={'Filters':[{'Name':T(0x1ff),'Values':['maka-cli']}]},c=new DescribeInstancesCommand(b),d=await client[T(0x256)](c);d[T(0x1ad)]?.[T(0x287)]((f,g)=>{const U=T;if(f?.[U(0x228)]){const {InstanceId:h,PublicIpAddress:i,PrivateIpAddress:j,State:k,KeyName:l,Tags:m}=f[U(0x228)][0x0],n=m?.['find'](({Key:o})=>o===U(0x1b9));a[U(0x22e)]({'id':g,'instanceId':h,'privateIp':j,'publicIp':i,'status':k?.[U(0x264)],'name':l,'env':n?.['Value']});}}),a[T(0x19f)]>0x0?a['forEach'](f=>{const V=T,g=V(0x242)+f['id']+V(0x24f)+f[V(0x22c)]+V(0x1f2)+f[V(0x27f)]+V(0x27b)+f[V(0x1d7)]+V(0x238)+f['instanceId']+V(0x230)+f['publicIp']+V(0x1d4)+f[V(0x1d6)];if(f[V(0x1d7)]===V(0x1a2))Log[V(0x244)](g);else f[V(0x1d7)]===V(0x19d)?Log[V(0x1f4)](g):Log[V(0x272)](g);}):Log[T(0x244)](T(0x1ee));}catch(f){Log[T(0x244)](f);}return a;}async['ec2rebootInstance'](a){const W=a145s;try{const b={'InstanceIds':[a['instanceId']]},c=new RebootInstancesCommand(b),d=await client['send'](c);return d['$metadata']['httpStatusCode']===0xc8&&Log[W(0x1f4)]('Instance\x20rebooted!'),d;}catch(f){Log[W(0x244)](f);}}async['chooseVPC'](){const X=a145s;let a='';Log[X(0x272)](X(0x274));const b=new DescribeVpcsCommand({}),c=await client[X(0x256)](b),{Vpcs:d}=c,e=[];d&&d['forEach']((g,h)=>{const Y=X;g['VpcId']&&g['CidrBlock']&&e[Y(0x22e)]({'id':h,'vpcId':g[Y(0x1c1)],'cidr':g[Y(0x275)]});});e[X(0x287)](function(g){const Z=X;console['log'](Z(0x242)+g['id']+'\x20VPCID:\x20'+g[Z(0x1ce)]+Z(0x1e0)+g[Z(0x21a)]);});const f=await Actions[X(0x1fb)](X(0x1d1))||0x0;e[X(0x287)](function(g){const a0=X;g['id']==f&&(a=g[a0(0x1ce)],Log[a0(0x1f4)](a0(0x1c6)+a+'\x0a'));});if(a==='')return Log['error']('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.'),'';return a;}async[a145s(0x19b)](){const a1=a145s,a=await this['ec2describeInstances']();if(a[a1(0x19f)]===0x0)return Log['error'](a1(0x240)),null;const b=await Actions[a1(0x1fb)](a1(0x1e4));!b&&(Log[a1(0x244)]('Invalid\x20choice'),process[a1(0x1b1)](0x0));const c=a['find'](({id:d})=>{return d==parseInt(b);})||null;return c;}async[a145s(0x253)]({env:a}){const a2=a145s,b=this['fsi']['getMakaProjectConfig'](),{appName:c}=b,d=c+'-'+a,f=await Actions[a2(0x1fb)](a2(0x24d)+d+']\x20')||d,{filePath:g}=await this[a2(0x1a5)]({'keyName':f,'env':a});try{const h=await Actions[a2(0x222)]('Would\x20you\x20like\x20to\x20update\x20the\x20ssh.json\x20config\x20file?',!![]);if(h)try{const i=a145f[a2(0x211)](a2(0x1fa),a,'ssh.json');!this[a2(0x25f)][a2(0x1c0)](i)&&await this['fsi']['template']({'srcPath':a2(0x265),'destPath':i,'context':{'app':f}});const j=a145e[a2(0x221)](a145f[a2(0x211)](a2(0x1fa),a,'ssh.json'),a2(0x22d)),k=JSON[a2(0x1db)](j);k[a2(0x1d2)]=a145f['join'](a2(0x232),f+'.pem.txt'),a145e[a2(0x20d)](a145f['join'](a2(0x1fa),a,'ssh.json'),JSON[a2(0x1e6)](k,null,0x2));}catch(l){Log[a2(0x244)](l),Log[a2(0x244)](a2(0x1f5));}}catch(m){Log[a2(0x244)](m),process[a2(0x1b1)](0x1);}return{'keyName':f,'filePath':g};}async['getSecurityGroups'](a){const a3=a145s,b=[],c={},d=new DescribeSecurityGroupsCommand(c),e=await client[a3(0x256)](d),{SecurityGroups:f}=e;f&&f[a3(0x287)](function(i,j){const a4=a3;i[a4(0x245)]&&i[a4(0x268)]&&b['push']({'id':j,'name':i[a4(0x245)],'sgId':i['GroupId']});});let g='',h=0x0;return b[a3(0x287)](function(i){const a5=a3;i[a5(0x22c)]===a&&(g=i[a5(0x247)],h=i['id']);}),{'sgList':b,'createdSgId':g,'listIndexId':h};}async[a145s(0x205)](a){const a6=a145s;try{const b={'GroupId':a},c=new DeleteSecurityGroupCommand(b);await client['send'](c);}catch(d){Log[a6(0x244)](d),process['exit'](0x1);}}}
@@ -1 +1 @@
1
- (function(a,b){var k=a146d,c=a();while(!![]){try{var d=-parseInt(k(0x13a))/0x1*(-parseInt(k(0x13b))/0x2)+-parseInt(k(0x140))/0x3+parseInt(k(0x134))/0x4*(parseInt(k(0x137))/0x5)+-parseInt(k(0x136))/0x6+-parseInt(k(0x138))/0x7+-parseInt(k(0x13e))/0x8+parseInt(k(0x135))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a146c,0xca17f));function a146d(a,b){var c=a146c();return a146d=function(d,e){d=d-0x134;var f=c[d];return f;},a146d(a,b);}function a146c(){var n=['15hikdWB','1251915hFgFSi','constructor','7XmwOqS','86690BimMhT','toString','search','9832480eBHpsl','(((.+)+)+)+$','2134908XqoDjZ','apply','1835716rShmSQ','26278650rWEiOE','9916416kCfRhL'];a146c=function(){return n;};return a146c();}export var CountryCode;(function(c){var d=(function(){var f=!![];return function(g,h){var i=f?function(){var l=a146d;if(h){var j=h[l(0x141)](g,arguments);return h=null,j;}}:function(){};return f=![],i;};}()),e=d(this,function(){var m=a146d;return e[m(0x13c)]()['search']('(((.+)+)+)+$')[m(0x13c)]()[m(0x139)](e)[m(0x13d)](m(0x13f));});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=a146d,c=a();while(!![]){try{var d=parseInt(k(0x1e6))/0x1+-parseInt(k(0x1e3))/0x2*(parseInt(k(0x1ea))/0x3)+parseInt(k(0x1dc))/0x4*(-parseInt(k(0x1e8))/0x5)+-parseInt(k(0x1eb))/0x6+-parseInt(k(0x1e1))/0x7*(parseInt(k(0x1df))/0x8)+parseInt(k(0x1dd))/0x9*(parseInt(k(0x1e4))/0xa)+parseInt(k(0x1e9))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a146c,0x5bfd7));function a146d(a,b){var c=a146c();return a146d=function(d,e){d=d-0x1dc;var f=c[d];return f;},a146d(a,b);}function a146c(){var n=['511389xbLWIA','(((.+)+)+)+$','923992SWUdXQ','constructor','7wxxkyQ','toString','471190WESGJQ','50YtJPXl','apply','696084cxrdlr','search','15kbqZwW','8373607CLFksD','9wrwiqL','2458452fakidn','176812QSZPEE'];a146c=function(){return n;};return a146c();}export var CountryCode;(function(c){var d=(function(){var f=!![];return function(g,h){var i=f?function(){var l=a146d;if(h){var j=h[l(0x1e5)](g,arguments);return h=null,j;}}:function(){};return f=![],i;};}()),e=d(this,function(){var m=a146d;return e[m(0x1e2)]()['search'](m(0x1de))[m(0x1e2)]()[m(0x1e0)](e)[m(0x1e7)](m(0x1de));});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 +1 @@
1
- const a147l=a147d;(function(a,b){const j=a147d,c=a();while(!![]){try{const d=-parseInt(j(0xfc))/0x1*(-parseInt(j(0xff))/0x2)+parseInt(j(0x104))/0x3*(parseInt(j(0xfb))/0x4)+parseInt(j(0x102))/0x5*(parseInt(j(0x106))/0x6)+-parseInt(j(0x107))/0x7+-parseInt(j(0xf9))/0x8+parseInt(j(0xfa))/0x9+-parseInt(j(0x100))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a147c,0x58299));const a147b=(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;};}()),a147a=a147b(this,function(){const k=a147d;return a147a['toString']()[k(0xf7)]('(((.+)+)+)+$')['toString']()[k(0xf8)](a147a)[k(0xf7)](k(0x10e));});a147a();function a147c(){const p=['1410880DpXKdk','awsLogin','43465cttvie','.amazonaws.com','24pRqexd','.dkr.ecr.','156KLHsht','3567851PaDedb','pushImage','tag','inherit','.amazonaws.com/','toString','echo\x20','(((.+)+)+)+$','join','error','search','constructor','4353040bNSZwU','4327686HftwSG','256836aRvwcC','167740pDWQnF','push','docker\x20','4JqTOqC'];a147c=function(){return p;};return a147c();}import{execSync}from'child_process';import{Log}from'../log/log.class.js';function a147d(a,b){const c=a147c();return a147d=function(d,e){d=d-0xf6;let f=c[d];return f;},a147d(a,b);}export class Docker{static[a147l(0x109)]({imageName:a,awsAccountId:b,region:c,repoName:d}){const m=a147l;try{const f=[m(0x109),a,b+m(0x105)+c+m(0x10b)+d],g=m(0xfe)+f[m(0x10f)]('\x20'),h=execSync(g,{'stdio':'inherit'})[m(0x10c)]();return h;}catch(i){return Log[m(0xf6)](i),'';}}static[a147l(0x101)]({awsAccountId:a,region:b,password:c}){const n=a147l;try{const d=n(0x10d)+c+'\x20|\x20docker\x20login\x20--username\x20AWS\x20--password-stdin\x20'+a+n(0x105)+b+n(0x103);return execSync(d,{'stdio':'inherit'}),d;}catch(f){return Log['error'](f),'';}}static[a147l(0x108)]({awsAccountId:a,region:b,repoName:c}){const o=a147l;try{const d=[o(0xfd),a+o(0x105)+b+o(0x10b)+c],f=o(0xfe)+d[o(0x10f)]('\x20'),g=execSync(f,{'stdio':o(0x10a)})[o(0x10c)]();return g;}catch(h){return Log['error'](h),'';}}}
1
+ function a147d(a,b){const c=a147c();return a147d=function(d,e){d=d-0x1a8;let f=c[d];return f;},a147d(a,b);}const a147m=a147d;(function(a,b){const j=a147d,c=a();while(!![]){try{const d=parseInt(j(0x1b4))/0x1*(-parseInt(j(0x1bc))/0x2)+parseInt(j(0x1be))/0x3*(parseInt(j(0x1af))/0x4)+parseInt(j(0x1ba))/0x5+-parseInt(j(0x1c3))/0x6+parseInt(j(0x1b0))/0x7+-parseInt(j(0x1c1))/0x8*(-parseInt(j(0x1b7))/0x9)+-parseInt(j(0x1bb))/0xa*(-parseInt(j(0x1b2))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a147c,0x8c222));const a147b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a147d;if(c){const e=c[k(0x1ab)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a147a=a147b(this,function(){const l=a147d;return a147a[l(0x1ad)]()[l(0x1b3)](l(0x1b5))[l(0x1ad)]()[l(0x1ae)](a147a)[l(0x1b3)](l(0x1b5));});function a147c(){const q=['constructor','1942852OWyzNq','677327CbUtIr','.amazonaws.com','6611lTbxpl','search','447374AEMnOj','(((.+)+)+)+$','echo\x20','2547KATeDb','pushImage','tag','1258950HXiPsI','15740ZhVfRL','2WSCTIp','join','3apBrkN','awsLogin','.amazonaws.com/','9128xDICMS','error','6490686xmDeCP','\x20|\x20docker\x20login\x20--username\x20AWS\x20--password-stdin\x20','docker\x20','.dkr.ecr.','apply','inherit','toString'];a147c=function(){return q;};return a147c();}a147a();import{execSync}from'child_process';import{Log}from'../log/log.class.js';export class Docker{static[a147m(0x1b9)]({imageName:a,awsAccountId:b,region:c,repoName:d}){const n=a147m;try{const f=[n(0x1b9),a,b+'.dkr.ecr.'+c+n(0x1c0)+d],g='docker\x20'+f['join']('\x20'),h=execSync(g,{'stdio':n(0x1ac)})[n(0x1ad)]();return h;}catch(i){return Log[n(0x1c2)](i),'';}}static[a147m(0x1bf)]({awsAccountId:a,region:b,password:c}){const o=a147m;try{const d=o(0x1b6)+c+o(0x1a8)+a+o(0x1aa)+b+o(0x1b1);return execSync(d,{'stdio':o(0x1ac)}),d;}catch(f){return Log[o(0x1c2)](f),'';}}static[a147m(0x1b8)]({awsAccountId:a,region:b,repoName:c}){const p=a147m;try{const d=['push',a+p(0x1aa)+b+p(0x1c0)+c],f=p(0x1a9)+d[p(0x1bd)]('\x20'),g=execSync(f,{'stdio':p(0x1ac)})[p(0x1ad)]();return g;}catch(h){return Log[p(0x1c2)](h),'';}}}
@@ -1 +1 @@
1
- (function(a,b){var f=a148d,c=a();while(!![]){try{var d=-parseInt(f(0x177))/0x1+-parseInt(f(0x17c))/0x2*(-parseInt(f(0x17f))/0x3)+-parseInt(f(0x181))/0x4+-parseInt(f(0x182))/0x5+-parseInt(f(0x178))/0x6+parseInt(f(0x180))/0x7*(parseInt(f(0x17b))/0x8)+parseInt(f(0x17d))/0x9*(parseInt(f(0x17a))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a148c,0x57c73));var a148b=(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;};}()),a148a=a148b(this,function(){var g=a148d;return a148a[g(0x17e)]()['search'](g(0x179))[g(0x17e)]()[g(0x176)](a148a)['search'](g(0x179));});function a148c(){var h=['2444940LGKdit','1002210bkScwR','constructor','288665FXDUme','3137700XsyAFD','(((.+)+)+)+$','363130jfQNDC','552XfkSRK','20SlzuYV','306SViVvj','toString','145983TtSnkq','26537tboqjR'];a148c=function(){return h;};return a148c();}function a148d(a,b){var c=a148c();return a148d=function(d,e){d=d-0x176;var f=c[d];return f;},a148d(a,b);}a148a();export{};
1
+ function a148c(){var i=['12CTaNIj','apply','2596587AtpaSQ','631100nuOVKg','2015734IcRJLY','1880954iPTxGZ','2446880xEQnYZ','659650oEySqK','search','72vKiaGA','(((.+)+)+)+$','4xQsQsS','toString','3650410RkmEYR','constructor'];a148c=function(){return i;};return a148c();}function a148d(a,b){var c=a148c();return a148d=function(d,e){d=d-0x7c;var f=c[d];return f;},a148d(a,b);}(function(a,b){var f=a148d,c=a();while(!![]){try{var d=-parseInt(f(0x7e))/0x1+parseInt(f(0x80))/0x2+parseInt(f(0x7d))/0x3+-parseInt(f(0x86))/0x4*(-parseInt(f(0x88))/0x5)+-parseInt(f(0x8a))/0x6*(parseInt(f(0x7f))/0x7)+-parseInt(f(0x81))/0x8+parseInt(f(0x84))/0x9*(-parseInt(f(0x82))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a148c,0x78f7c));var a148b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a148d;if(c){var e=c[g(0x7c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a148a=a148b(this,function(){var h=a148d;return a148a[h(0x87)]()['search'](h(0x85))[h(0x87)]()[h(0x89)](a148a)[h(0x83)](h(0x85));});a148a();export{};