@maka/maka-cli 4.13.8 → 4.13.11

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 +3 -3
  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 +3 -3
@@ -1 +1 @@
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
+ const a135m=a135d;(function(a,b){const j=a135d,c=a();while(!![]){try{const d=parseInt(j(0xc6))/0x1*(parseInt(j(0xf9))/0x2)+parseInt(j(0xfc))/0x3*(-parseInt(j(0xf1))/0x4)+parseInt(j(0x101))/0x5+parseInt(j(0xf7))/0x6+-parseInt(j(0xd8))/0x7*(parseInt(j(0xe5))/0x8)+-parseInt(j(0xbb))/0x9+-parseInt(j(0xbe))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a135c,0xba478));const a135b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a135d;if(c){const e=c[k(0xf6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a135a=a135b(this,function(){const l=a135d;return a135a['toString']()[l(0xe6)](l(0xe0))['toString']()['constructor'](a135a)[l(0xe6)](l(0xe0));});a135a();import a135e from'path';function a135d(a,b){const c=a135c();return a135d=function(d,e){d=d-0xb9;let f=c[d];return f;},a135d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a135c(){const p=['engines','css','features','withHooks','withHook','getMakaProjectConfig','3XkpCja','store','.js','graphql','component','Updating\x20npm\x20packages\x20...','ssr','Generate\x20a\x20page.','template/template.css','dir','resourceName','pathFromApp','.css','.html','layout','className','fsi','withValue','455iZbtTR','string','template/template.html','baseDir','fileName','react','injectTemplateModule','setTemplate','(((.+)+)+)+$','page','hook/hook.js','vanilla','maka\x20g:page\x20todos/todos-item','24376GaAUbD','search','relative','api','pages','assign','true','checkNpmPackage','test/test.js','hooks','ramda','/imports/ui/','160AFTesm','client','layouts','import\x20\x27./','withTranslations','apply','7827846IwccLM','template','323936vCmrAX','route','.app-tests.js','29100JYnDPW','\x27;\x0a','html','warn','hasOwnProperty','1398920WvLdfr','injectAtBeginningOfFile','root','none','398880LVhoxP','create','test','6769540xiBREo','component/component.js'];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(0xbc)]({'name':a135m(0xe1),'aliases':aliases,'usage':'maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','shortDesc':a135m(0xcd),'validOpts':[{'name':'baseDir','values':[a135m(0xee),'components',a135m(0xe9),a135m(0xf3)]},{'name':a135m(0xc4),'boolFlag':!![]}],'examples':[a135m(0xe4)]},async function(a,b){const n=a135m,c=b[n(0xdb)]?n(0xf0)+b[n(0xdb)]:'/imports/ui/pages',d=this[n(0xd6)]['findAppDirectory'](),e=this['fsi'][n(0xd1)]({'pathParts':[c,b[n(0xcf)],paramCase(b['resourceName']),paramCase(b[n(0xd0)])]}),f=this[n(0xd6)][n(0xc5)]();let g='';return await this[n(0xd6)][n(0xd7)](f,async()=>{const o=n;typeof f[o(0xf8)][o(0xfe)]===o(0xd9)&&(f[o(0xf8)]['html']=f[o(0xf8)][o(0xfe)]===o(0xeb)?!![]:![],this[o(0xd6)][o(0xdf)]('html',f[o(0xf8)][o(0xfe)]));typeof f[o(0xf8)][o(0xbd)]===o(0xd9)&&(f[o(0xf8)][o(0xbd)]=f[o(0xf8)]['test']==='true'?!![]:![],this['fsi'][o(0xdf)](o(0xbd),f[o(0xf8)][o(0xbd)]));typeof f[o(0xf8)][o(0xc1)]===o(0xd9)&&(f[o(0xf8)][o(0xc1)]=f['template'][o(0xc1)]===o(0xeb)?!![]:![],this[o(0xd6)][o(0xdf)](o(0xc1),f[o(0xf8)][o(0xc1)]));typeof f['template']['js']===o(0xd9)&&(f[o(0xf8)]['js']=f[o(0xf8)]['js']===o(0xeb)?!![]:![],this[o(0xd6)][o(0xdf)]('js',f[o(0xf8)]['js']));!f['features']&&(f[o(0xc2)]={});!b[o(0xb9)]&&!this[o(0xd6)][o(0xec)](o(0xef))&&(Log[o(0xff)](o(0xcb)),this[o(0xd6)]['installNpmPackage'](o(0xef),{'cwd':d}));const h={'name':pascalCase(b['resourceName']),'myPath':a135e[o(0xe7)](this['fsi']['pathFromProject']({}),e),'cssCaseName':paramCase(b[o(0xd0)]),'className':pascalCase(b[o(0xd0)]),'camelCaseName':camelCase(b[o(0xd0)]),'fileName':paramCase(b[o(0xd0)]),'graphql':f[o(0xc0)][o(0xc9)],'features':f[o(0xc2)],'client':f[o(0xc0)][o(0xf2)],'api':f[o(0xc0)][o(0xe8)],'ssr':f[o(0xc0)][o(0xcc)],'isStore':b[o(0x100)](o(0xc7)),'isComponent':b[o(0x100)](o(0xca)),'isLayout':b['hasOwnProperty'](o(0xd4)),'withTranslations':f[o(0xc2)][o(0xf5)],'test':f[o(0xc0)][o(0xbd)],'theme':f[o(0xc0)]['theme']};f[o(0xf8)]['html']&&await this[o(0xd6)][o(0xf8)]({'srcPath':o(0xda),'destPath':e+o(0xd3),'context':h,'config':f});f[o(0xc2)]?.[o(0xc3)]||b[o(0xc4)]?await this['fsi']['template']({'srcPath':o(0xe2),'destPath':e+o(0xc8),'framework':o(0xdd),'context':h,'config':f}):await this[o(0xd6)][o(0xf8)]({'srcPath':o(0xbf),'destPath':e+o(0xc8),'framework':'react','context':h,'config':f});f[o(0xc0)]['test']!==o(0xba)&&await this[o(0xd6)][o(0xf8)]({'srcPath':o(0xed),'destPath':e+o(0xfb),'framework':o(0xdd),'context':h,'config':f});f[o(0xf8)][o(0xc1)]&&await this[o(0xd6)][o(0xf8)]({'srcPath':o(0xce),'destPath':e+o(0xd2),'context':Object[o(0xea)]({},h,{'className':paramCase(b[o(0xd0)])}),'config':f});f['engines'][o(0xf2)]!==o(0xdd)&&f[o(0xc0)]['client']!==o(0xe3)?(f['template'][o(0xc1)]&&await this[o(0xd6)]['injectAtBeginningOfFile']({'filePath':e+'.'+f[o(0xc0)]['js'],'content':'import\x20\x27./'+h[o(0xdc)]+'.'+f[o(0xc0)][o(0xfe)]+o(0xfd)+o(0xf4)+h[o(0xdc)]+'.'+f['engines'][o(0xc1)]+'\x27;'}),!f[o(0xf8)][o(0xc1)]&&await this['fsi'][o(0x102)]({'filePath':e+'.'+f[o(0xc0)]['js'],'content':o(0xf4)+h['fileName']+'.'+f['engines'][o(0xfe)]+'\x27;'})):f['template'][o(0xc1)]&&await this[o(0xd6)]['injectAtBeginningOfFile']({'filePath':e+'.'+f[o(0xc0)]['js'],'content':o(0xf4)+h[o(0xdc)]+'.'+f[o(0xc0)]['css']+'\x27;'});const i=b[o(0xcf)]?'/'+b[o(0xcf)]+'/':'/';g=''+c+i+h['fileName']+'/'+h[o(0xdc)],await this[o(0xd6)][o(0xde)](h[o(0xd5)],f,g),!b[o(0xb9)]&&await a135f['processAndRunGenerator'](o(0xfa),[i+b[o(0xd0)]],b);}),g+'.'+f[n(0xc0)]['js'];});
@@ -1 +1 @@
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
+ const a136o=a136d;(function(a,b){const m=a136d,c=a();while(!![]){try{const d=-parseInt(m(0x1cf))/0x1+-parseInt(m(0x1d3))/0x2*(parseInt(m(0x1e2))/0x3)+-parseInt(m(0x1e8))/0x4+-parseInt(m(0x1df))/0x5+-parseInt(m(0x1e5))/0x6*(-parseInt(m(0x1cc))/0x7)+-parseInt(m(0x1d1))/0x8+-parseInt(m(0x1d9))/0x9*(-parseInt(m(0x1ce))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a136c,0xa6626));const a136b=(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;};}()),a136a=a136b(this,function(){const n=a136d;return a136a[n(0x1ed)]()[n(0x1e1)](n(0x1e3))[n(0x1ed)]()[n(0x1d4)](a136a)[n(0x1e1)](n(0x1e3));});function a136c(){const r=['tsx','/imports/ui/','toString','engines','globalPublish','Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','imports','dir','21hauCyH','injectAtEndOfFile','10xapGEE','1157708hMCFCd','withValue','8300576ZYWXsp','create','2OQGrja','constructor','maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','maka\x20g:publish\x20todos','baseDir','server','49759992KaFLhX','startup','force','import\x20\x27./publications','template','appPathPrefix','4816855lTAPKX','error','search','2530149oPcFkt','(((.+)+)+)+$','/imports/startup/server/publications','915498TSOwAD','publish/publish.js','pathFromApp','5212372IWNYLO','fsi','resourceName'];a136c=function(){return r;};return a136c();}a136a();import{paramCase,pascalCase}from'change-case';function a136d(a,b){const c=a136c();return a136d=function(d,e){d=d-0x1ca;let f=c[d];return f;},a136d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a136o(0x1d2)]({'name':'publish','aliases':['p'],'usage':a136o(0x1d5),'shortDesc':a136o(0x1f0),'validOpts':[a136o(0x1db),a136o(0x1ef)],'examples':[a136o(0x1d6)]},async function(a,b){const p=a136o;try{const c=b[p(0x1db)]||![],d=b[p(0x1d7)]?p(0x1ec)+b['baseDir']:p(0x1e4),f=this[p(0x1e9)]['getMakaProjectConfig'](),g=paramCase(b[p(0x1ea)]),h=this['fsi'][p(0x1e7)]({'pathParts':[d,b['dir'],'',g]});let i='js';f[p(0x1ee)]['js']===p(0x1eb)&&(i='ts');await this[p(0x1e9)][p(0x1d0)](f,async()=>{const q=p,l={'name':b[q(0x1ea)],'collection':pascalCase(b[q(0x1ea)]),'noRename':!![],'globalPublish':b[q(0x1ef)]};await this[q(0x1e9)][q(0x1dd)]({'srcPath':q(0x1e6),'destPath':h+'.'+i,'context':l,'config':f,'force':c});});const j=this['fsi'][p(0x1e7)]({'pathParts':[p(0x1ca),p(0x1da),p(0x1d8),b[p(0x1de)],'index.'+f['engines']['js']]}),k=b[p(0x1cb)]?'/'+b[p(0x1cb)]+'/':'/';return await this['fsi'][p(0x1cd)]({'filePath':j,'content':p(0x1dc)+k+g+'\x27;'}),h+'.'+i;}catch(l){Log[p(0x1e0)](l),process['exit'](0x1);}});
@@ -1 +1 @@
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
+ const a137B=a137d;(function(a,b){const y=a137d,c=a();while(!![]){try{const d=-parseInt(y(0xff))/0x1*(-parseInt(y(0x101))/0x2)+parseInt(y(0x115))/0x3*(-parseInt(y(0x100))/0x4)+-parseInt(y(0x125))/0x5*(-parseInt(y(0x123))/0x6)+parseInt(y(0x135))/0x7+parseInt(y(0x103))/0x8*(parseInt(y(0xfa))/0x9)+-parseInt(y(0x128))/0xa*(parseInt(y(0xf4))/0xb)+parseInt(y(0xec))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a137c,0x93aca));const a137b=(function(){let a=!![];return function(b,c){const d=a?function(){const z=a137d;if(c){const e=c[z(0xf6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a137a=a137b(this,function(){const A=a137d;return a137a[A(0xf1)]()['search'](A(0xf7))['toString']()[A(0xe7)](a137a)[A(0x127)](A(0xf7));});a137a();import a137e from'path';import{Generator}from'../generator.js';function a137c(){const K=['maka\x20g:route\x20usersShow\x20users/:id/show\x20--layout\x20userView','maka\x20g:route\x20todosEdit\x20todos/:id/edit','toLowerCase','injectIntoFile','routes.js','templateName','84978LScjdE','indexOf','10ZLqZey','injectAfterLineNumber','search','20VybiJw','Invalid\x20directory\x20option\x20\x22','pathFromApp','baseDir','\x20to\x20','getMakaProjectConfig','pop','only','vanilla','readFileLines','templateContent','route','length','5389853fFoQXe','join','maka\x20g:route\x20todosIndex\x20todos','filter','<Router','dir','/imports/ui/','includes','warn','pathFromProject','constructor','maka\x20{generate,\x20g}:{route,\x20r}\x20[path/]<name>','map','rewriteDestinationPathForEngine','resourceName','22261332EohmvB','fsi','const\x20privateRoutes\x20=\x20(<>','true','create','toString','Route\x20','</Router>','6241598cEBCfL','imports','apply','(((.+)+)+)+$','hooks','info','135738ZNgkcL','client','Adding\x20route\x20','MasterLayout','replace','110543JBtxCI','4157324HdWidF','2KGRXPZ','private','8mNihAB','withHook','Could\x20not\x20find\x20a\x20suitable\x20location\x20to\x20enable\x20this\x20route.\x20\x20Please\x20inspect\x20','withTranslations','layout','engines','\x0a\x09\x09','react','Scaffolding\x20for\x20a\x20Route.','url','Please\x20specify\x20a\x20name\x20for\x20the\x20route.','route/route.js','injectAtEndOfFile','error','/imports/ui/pages','maka\x20g:route\x20pages/lists/listIndex\x20lists','const\x20publicRoutes\x20=\x20(<>','layouts','3UGzjkK','maka\x20g:route\x20pages/about','startup','<Route','import\x20*\x20as\x20Component\x20from\x20\x27./templates\x27;','components','fileContainsString','PrivateLayout'];a137c=function(){return K;};return a137c();}import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';function a137d(a,b){const c=a137c();return a137d=function(d,e){d=d-0xe7;let f=c[d];return f;},a137d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['r'];Generator[a137B(0xf0)]({'name':a137B(0x133),'aliases':aliases,'validOpts':[a137B(0x102),a137B(0x107),a137B(0x12f),'cwd','config','root',a137B(0x104),a137B(0x10c),a137B(0x12b)],'usage':a137B(0xe8),'shortDesc':a137B(0x10b),'examples':[a137B(0x137),a137B(0x11e),a137B(0x11d),a137B(0x112),a137B(0x116)]},async function(a,b){const C=a137B;try{const c=[C(0xf8),C(0x11a),'pages',C(0x114)];if(b['baseDir']&&!c['includes'](b[C(0x12b)])){Log['error'](C(0x129)+b[C(0x12b)]+'\x22'),Log[C(0x110)]('Valid\x20options\x20are:\x20'+c[C(0x136)](',\x20'));throw new UsageError();}const d=this[C(0xed)][C(0x12d)]();await this[C(0xed)]['withValue'](d,async()=>{const D=C,f=b[D(0x102)]??![];let g=b[D(0xeb)]['split']('/')[D(0x12e)]();if(!g){Log['error'](D(0x10d));throw new UsageError();}g=pascalCase(g);let h=b[D(0x10c)]?'/'+b[D(0x10c)]:'/'+b['resourceName'];a[D(0x134)]>0x1&&(h='/'+a[D(0x138)](function(n){return n!=='/';})['join']('/')[D(0x11f)]());h=h[D(0xfe)](/\/\//g,'/');b[D(0x107)]&&(b[D(0x107)]=camelCase(b[D(0x107)]));const i=b['baseDir']?D(0x13b)+b[D(0x12b)]:D(0x111),j=a137e['join'](i,b[D(0x13a)],g,paramCase(g)),k={'name':g,'fileCase':paramCase(g),'camelCaseName':camelCase(g),'url':h,'layout':b[D(0x107)]||D(0xfd),'templatePath':j,'templateName':pascalCase(g),'client':d['engines'][D(0xfb)],'newForm':![],'withTranslations':d['features'][D(0x106)]};f&&(k[D(0x107)]=D(0x11c));let l,m;if(d[D(0x108)][D(0xfb)]===D(0x10a)){if(d[D(0x108)]['ssr']===D(0xef)){const r=this[D(0xed)][D(0x12a)]({'pathParts':[D(0xf5),D(0x117),'lib','routes.js']});l=this[D(0xed)][D(0xea)]({'pathParts':[r],'config':d});}else{const s=this[D(0xed)]['pathFromApp']({'pathParts':['imports',D(0x117),'client','routes.js']});l=this['fsi']['rewriteDestinationPathForEngine']({'pathParts':[s],'config':d});}const n=await this[D(0xed)][D(0x11b)](l,g);if(n){Log[D(0x13d)](D(0xf2)+g+'\x20already\x20exists.\x20Skipping.');return;}else{const t=this[D(0xed)][D(0x13e)](l);Log[D(0xf9)](D(0xfc)+g+D(0x12c)+l[D(0xfe)](t,''));}const o=this[D(0xed)][D(0x131)](l)[D(0xe9)]((u,v)=>{const E=D;return u[E(0x13c)](E(0x119))?v+0x1:null;})[D(0x138)](u=>u!==null);let p=this[D(0xed)][D(0x131)](l)[D(0xe9)]((u,v)=>{const F=D;return u[F(0x13c)](F(0x113))?v+0x1:null;})[D(0x138)](u=>u!==null),q=this['fsi'][D(0x131)](l)['map']((u,v)=>{const G=D;return u[G(0x13c)](G(0xee))?v+0x1:null;})[D(0x138)](u=>u!==null);p['length']>0x0&&q[D(0x134)]>0x0&&(k['newForm']=!![]);m=this['fsi'][D(0x132)]({'srcPath':'route/route.js','framework':'react','context':k,'config':d});if(p[D(0x134)]>0x0||q['length']>0x0){this[D(0xed)][D(0x126)]({'filePath':l,'content':m,'lineNumber':o[0x0]});if(f&&q['length']>0x0)q=this[D(0xed)][D(0x131)](l)['map']((u,v)=>{const H=D;return u['includes'](H(0xee))?v+0x1:null;})[D(0x138)](u=>u!==null),this[D(0xed)][D(0x126)]({'filePath':l,'content':'\x09{'+k[D(0x122)]+'}','lineNumber':q[0x0]});else p[D(0x134)]>0x0?(p=this[D(0xed)][D(0x131)](l)[D(0xe9)]((u,v)=>{const I=D;return u['includes'](I(0x113))?v+0x1:null;})[D(0x138)](u=>u!==null),this['fsi']['injectAfterLineNumber']({'filePath':l,'content':'\x09{'+k[D(0x122)]+'}','lineNumber':p[0x0]})):Log[D(0x13d)](D(0x105)+l);}else{const u=this['fsi'][D(0x131)](l)[D(0xe9)](x=>{const J=D;return x[J(0x13c)]('\x22*\x22');}),v=u[D(0x124)](!![])>-0x1,w=v?D(0x118):D(0xf3);await this['fsi'][D(0x120)]({'filePath':l,'content':D(0x109)+m+D(0x109),'begin':D(0x139),'end':w});}}else{if(d[D(0x108)][D(0xfb)]===D(0x130)){const x=this[D(0xed)][D(0x12a)]({'pathParts':[D(0xf5),'startup',D(0xfb),D(0x121)]});l=this[D(0xed)][D(0xea)]({'pathParts':[x],'config':d}),m=this[D(0xed)][D(0x132)]({'srcPath':D(0x10e),'context':k}),await this['fsi'][D(0x10f)]({'filePath':l,'content':'\x0a'+m});}}});}catch(f){Log[C(0x110)](f);}});
@@ -1 +1 @@
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
+ const a138m=a138d;(function(a,b){const j=a138d,c=a();while(!![]){try{const d=-parseInt(j(0x1de))/0x1*(-parseInt(j(0x1e7))/0x2)+parseInt(j(0x1eb))/0x3+-parseInt(j(0x1f1))/0x4+-parseInt(j(0x1cf))/0x5*(parseInt(j(0x1d9))/0x6)+parseInt(j(0x1ea))/0x7*(-parseInt(j(0x1e8))/0x8)+-parseInt(j(0x1ed))/0x9+parseInt(j(0x1d7))/0xa*(parseInt(j(0x1dc))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a138c,0x1e770));const a138b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a138d;if(c){const e=c[k(0x1ee)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a138a=a138b(this,function(){const l=a138d;return a138a[l(0x1d0)]()['search']('(((.+)+)+)+$')[l(0x1d0)]()[l(0x1e2)](a138a)[l(0x1d5)](l(0x1d8));});function a138d(a,b){const c=a138c();return a138d=function(d,e){d=d-0x1cf;let f=c[d];return f;},a138d(a,b);}a138a();import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a138c(){const p=['imports','lib','service','fsi','5sdkBsO','toString','logger','Generate\x20a\x20service\x20to\x20run\x20within\x20your\x20meteor\x20application.','winston\x20setimmediate','maka\x20g:svc\x20service-logger\x20--type=logger','search','engines','5690CrkXDX','(((.+)+)+)+$','1329570XPCHxu','svc','installNpmPackage','13156KZSFvd','error','10REmQGa','withValue','resourceName','type','constructor','service/logger/logger.js','Installing\x20winston','services','tsx','29950sYHVef','40nCBPgZ','checkNpmPackage','304549DAyDkK','289134PYlAvL','startup','1093860QTHqlZ','apply','template','winston','964792AmyMiz'];a138c=function(){return p;};return a138c();}Generator['create']({'name':a138m(0x1f4),'aliases':[a138m(0x1da)],'usage':'maka\x20{generate,\x20g}:{service}\x20<resource-name>','shortDesc':a138m(0x1d2),'requiredOpts':[{'name':'type','values':[a138m(0x1d1)]}],'validOpts':[],'maxArgLength':0x1,'examples':[a138m(0x1d4)]},async function(a,b){const n=a138m;try{const c=this[n(0x1f5)]['getMakaProjectConfig']();await this[n(0x1f5)][n(0x1df)](c,async()=>{const o=n,d=this[o(0x1f5)]['pathFromApp']({}),f=paramCase(b[o(0x1e0)]),g={'name':pascalCase(b[o(0x1e0)]),'fileName':f,'camelCase':camelCase(b[o(0x1e0)]),'type':b[o(0x1e1)],'engine':c['engines']['js'],'noRename':!![]};let h='js';c[o(0x1d6)]['js']===o(0x1e6)&&(h='ts');if(b['type']==='logger'){!this[o(0x1f5)][o(0x1e9)](o(0x1f0))&&await this[o(0x1f5)][o(0x1db)](o(0x1d3),{'cwd':d,'msg':o(0x1e4)});const i=this[o(0x1f5)]['pathFromApp']({'pathParts':[o(0x1f2),o(0x1ec),o(0x1f3),o(0x1e5),f+'.'+h]});await this[o(0x1f5)][o(0x1ef)]({'srcPath':o(0x1e3),'destPath':i,'context':g,'config':c});}});}catch(d){Log[n(0x1dd)](d);}});
@@ -1 +1 @@
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
+ (function(a,b){var f=a139d,c=a();while(!![]){try{var d=parseInt(f(0x1b4))/0x1+parseInt(f(0x1a9))/0x2+-parseInt(f(0x1aa))/0x3*(parseInt(f(0x1ac))/0x4)+-parseInt(f(0x1a8))/0x5+-parseInt(f(0x1ab))/0x6*(-parseInt(f(0x1b1))/0x7)+-parseInt(f(0x1b3))/0x8+parseInt(f(0x1b5))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a139c,0x51313));var a139b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a139d;if(c){var e=c[g(0x1b2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a139a=a139b(this,function(){var h=a139d;return a139a[h(0x1b0)]()[h(0x1af)]('(((.+)+)+)+$')[h(0x1b0)]()[h(0x1ad)](a139a)[h(0x1af)](h(0x1ae));});a139a();function a139d(a,b){var c=a139c();return a139d=function(d,e){d=d-0x1a8;var f=c[d];return f;},a139d(a,b);}import'./translation.js';function a139c(){var i=['1672407KVydmk','78Yqihhz','4BwKlOv','constructor','(((.+)+)+)+$','search','toString','341257GnLmth','apply','4367448qFFqIu','350765JwimiK','3076992tgSvbI','886020YEEQBW','573502Cicxlq'];a139c=function(){return i;};return a139c();}import'./openssl.js';
@@ -1 +1 @@
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
+ function a140d(a,b){const c=a140c();return a140d=function(d,e){d=d-0x165;let f=c[d];return f;},a140d(a,b);}const a140k=a140d;(function(a,b){const i=a140d,c=a();while(!![]){try{const d=-parseInt(i(0x169))/0x1*(-parseInt(i(0x17b))/0x2)+-parseInt(i(0x16f))/0x3*(parseInt(i(0x183))/0x4)+-parseInt(i(0x16e))/0x5*(-parseInt(i(0x16a))/0x6)+-parseInt(i(0x17f))/0x7*(-parseInt(i(0x165))/0x8)+parseInt(i(0x176))/0x9*(parseInt(i(0x178))/0xa)+-parseInt(i(0x179))/0xb+-parseInt(i(0x172))/0xc*(parseInt(i(0x167))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a140c,0x6bcb3));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(0x174)]()[j(0x17d)](j(0x182))[j(0x174)]()[j(0x175)](a140a)['search'](j(0x182));});a140a();import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';function a140c(){const n=['sslconfig','search','getGlobalConfig','189uqeoOo','create','fsi','(((.+)+)+)+$','4bSlEBY','join','125392ZkjxYE','withValue','39pcHAXR','getMakaProjectConfig','1XahbgH','3053292GxgQMm','openssl/openssl.conf','_keys','env','5GqLkPG','2383023vcmRjl','getAppConfigPath','template','1886532WNZjUg','openssl.conf','toString','constructor','9cxVckw','maka\x20{generate,\x20g}:sslconfig','6580430dOZQHU','5574063uRaolk','error','1248214dGkogJ'];a140c=function(){return n;};return a140c();}import a140e from'path';Generator[a140k(0x180)]({'name':a140k(0x17c),'usage':a140k(0x177),'shortDesc':'Generate\x20a\x20new\x20openssl\x20config\x20file','noNeedResource':!![],'requiredOpts':[a140k(0x16d)],'examples':['maka\x20g:sslconfig\x20--env\x20dev'],'validOpts':[]},async function(a,b){const l=a140k;try{const c=await this['fsi'][l(0x168)](),d=await this['fsi'][l(0x17e)](),f=this[l(0x181)][l(0x170)](b[l(0x16d)]),g=a140e[l(0x184)](f,l(0x16c),l(0x173));await this[l(0x181)][l(0x166)](c,async()=>{const m=l,h={'app':d['appName'],'noRename':!![]};await this[m(0x181)][m(0x171)]({'srcPath':m(0x16b),'destPath':g,'framework':'service','context':h,'config':c});});}catch(h){Log[l(0x17a)](h);}});
@@ -1 +1 @@
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
+ function a141d(a,b){const c=a141c();return a141d=function(d,e){d=d-0x1dc;let f=c[d];return f;},a141d(a,b);}const a141A=a141d;(function(a,b){const x=a141d,c=a();while(!![]){try{const d=-parseInt(x(0x21a))/0x1*(parseInt(x(0x1e2))/0x2)+-parseInt(x(0x20e))/0x3+-parseInt(x(0x209))/0x4*(-parseInt(x(0x1f8))/0x5)+parseInt(x(0x215))/0x6*(-parseInt(x(0x205))/0x7)+parseInt(x(0x1e7))/0x8*(parseInt(x(0x206))/0x9)+-parseInt(x(0x213))/0xa+parseInt(x(0x20f))/0xb*(parseInt(x(0x1f2))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a141c,0xb0652));const a141b=(function(){let a=!![];return function(b,c){const d=a?function(){const y=a141d;if(c){const e=c[y(0x200)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a141a=a141b(this,function(){const z=a141d;return a141a[z(0x20a)]()[z(0x1ed)](z(0x204))[z(0x20a)]()[z(0x207)](a141a)[z(0x1ed)](z(0x204));});a141a();import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';function a141c(){const D=['134898tAAqTU','readFileSync','Locale\x20already\x20defined:\x20','lib','lang','67knQMLO','template','index.js','appName','.js','withValue','create','18114PTBlFz','service','i18n/locales.js','checkNpmPackage','rewriteDestinationPathForEngine','8gTbwqw','i18next','translations','startup','locales','client','search','injectAtEndOfFile','maka\x20g:translation\x20--lang=fr','ssr','import\x20\x27../lib/services/translations/i18n\x27;\x0a','84KiwnfI','Locale\x20already\x20exported:\x20','fsi','i18next\x20i18next-browser-languagedetector\x20react-i18next','engines','i18n.js','5xwjajh','getGlobalConfig','isFile','warn','imports','error','Verifying\x20npm\x20package\x20requirements:\x20i18next\x20...','i18n/i18n.js','apply','\x20}\x20from\x20\x27./','injectAtBeginningOfFile','index.','(((.+)+)+)+$','98zOzrMG','10357335hNFAVI','constructor','setProjectConfig','1383120HuXhie','toString','\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','services','pathFromApp','2791764ofPvVU','2185843LCeGnw','import\x20\x27../lib/services/translations/i18n\x27;','exit','i18n/index.js','3129030rfTgTy','grep'];a141c=function(){return D;};return a141c();}import a141e from'fs';Generator[a141A(0x1e1)]({'name':'translation','usage':'maka\x20{generate,\x20g}:translation','aliases':['t'],'noNeedResource':!![],'requiredOpts':[{'name':a141A(0x219),'boolFlag':![],'regex':/^[a-z]{2}$/}],'shortDesc':'Generate\x20a\x20new\x20locale\x20translation','description':a141A(0x20b),'examples':['maka\x20g:translation\x20--lang=en\x20(default)',a141A(0x1ef),'maka\x20g:translation\x20--lang=de'],'validOpts':[]},async function(a,b){const B=a141A;try{const c=this['fsi']['getMakaProjectConfig'](),d=this[B(0x1f4)][B(0x1f9)](),f=this[B(0x1f4)]['findAppDirectory']();await this[B(0x1f4)][B(0x1e0)](c,async()=>{const C=B;try{!b[C(0x219)]&&(b['lang']='en');!b['root']&&!this[C(0x1f4)][C(0x1e5)](C(0x1e8))&&(Log[C(0x1fb)](C(0x1fe)),this[C(0x1f4)]['installNpmPackage'](C(0x1f5),{'cwd':f}),this[C(0x1f4)][C(0x208)]('features.withTranslations',!![]));const g=this[C(0x1f4)][C(0x20d)]({'pathParts':['imports',C(0x1ea),C(0x1ec),C(0x1dd)]}),h=this[C(0x1f4)][C(0x1e6)]({'pathParts':[g],'config':c}),i=this[C(0x1f4)][C(0x214)](a141e[C(0x216)](h)['toString'](),C(0x210))[0x0]&&!![];if(c[C(0x1f6)][C(0x1f0)]==='true'){!i&&this[C(0x1f4)][C(0x202)]({'filePath':h,'content':C(0x1f1)});const t=this['fsi']['pathFromApp']({'pathParts':[C(0x1fc),C(0x1ea),'server',C(0x1dd)]}),u=this[C(0x1f4)][C(0x1e6)]({'pathParts':[t],'config':c}),v=this[C(0x1f4)][C(0x214)](a141e['readFileSync'](u)[C(0x20a)](),'import\x20\x27../lib/services/translations/i18n\x27;')[0x0]&&!![];!v&&this[C(0x1f4)][C(0x202)]({'filePath':u,'content':'import\x20\x27../lib/services/translations/i18n\x27;\x0a'});}else!i&&this[C(0x1f4)][C(0x202)]({'filePath':h,'content':'import\x20\x27../lib/services/translations/i18n\x27;\x0a'});const j={'app':d[C(0x1de)],'config':c},k=this[C(0x1f4)][C(0x20d)]({'pathParts':[C(0x1fc),'startup',C(0x218),C(0x20c),C(0x1e9),C(0x1f7)]}),l=this[C(0x1f4)][C(0x1fa)](this[C(0x1f4)][C(0x1e6)]({'pathParts':[k],'config':c}));!l&&await this['fsi'][C(0x1dc)]({'srcPath':C(0x1ff),'destPath':k,'framework':C(0x1e3),'context':j,'config':c});const m=this[C(0x1f4)]['pathFromApp']({'pathParts':[C(0x1fc),C(0x1ea),C(0x218),'services','translations',C(0x1eb),b[C(0x219)]+C(0x1df)]}),n=this[C(0x1f4)][C(0x1e6)]({'pathParts':[m],'config':c}),o=this['fsi'][C(0x1fa)](n);!o?await this['fsi'][C(0x1dc)]({'srcPath':C(0x1e4),'destPath':m,'framework':C(0x1e3),'context':j,'config':c}):Log['warn'](C(0x217)+n);const p=this[C(0x1f4)][C(0x20d)]({'pathParts':[C(0x1fc),C(0x1ea),'lib',C(0x20c),C(0x1e9),'locales',C(0x203)+c[C(0x1f6)]['js']]}),q=this[C(0x1f4)][C(0x1e6)]({'pathParts':[p],'config':c}),r=this['fsi'][C(0x1fa)](q);!r&&await this[C(0x1f4)][C(0x1dc)]({'srcPath':C(0x212),'destPath':p,'framework':'service','context':j,'config':c});const s=this[C(0x1f4)][C(0x214)](a141e[C(0x216)](p)['toString'](),'default\x20as\x20'+b[C(0x219)])[0x0]&&!![];!s?await this[C(0x1f4)][C(0x1ee)]({'filePath':p,'content':'export\x20{\x20default\x20as\x20'+b['lang']+C(0x201)+b[C(0x219)]+'\x27;'}):Log[C(0x1fb)](C(0x1f3)+p);}catch(w){Log[C(0x1fd)](w),process[C(0x211)](0x1);}});}catch(g){Log[B(0x1fd)](g),process[B(0x211)](0x1);}});
@@ -1 +1 @@
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
+ const a142l=a142d;(function(a,b){const j=a142d,c=a();while(!![]){try{const d=-parseInt(j(0x180))/0x1*(parseInt(j(0x18d))/0x2)+parseInt(j(0x188))/0x3*(-parseInt(j(0x19a))/0x4)+parseInt(j(0x191))/0x5*(-parseInt(j(0x182))/0x6)+-parseInt(j(0x186))/0x7*(parseInt(j(0x18e))/0x8)+parseInt(j(0x189))/0x9+-parseInt(j(0x184))/0xa*(-parseInt(j(0x194))/0xb)+parseInt(j(0x195))/0xc*(parseInt(j(0x181))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a142c,0xb68bf));const a142b=(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;};}()),a142a=a142b(this,function(){const k=a142d;return a142a['toString']()[k(0x19c)](k(0x18b))[k(0x193)]()[k(0x183)](a142a)['search'](k(0x18b));});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 a142d(a,b){const c=a142c();return a142d=function(d,e){d=d-0x180;let f=c[d];return f;},a142d(a,b);}import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta[a142l(0x190)]),__dirname=a142g[a142l(0x18a)](__filename);global[a142l(0x185)]=__dirname;const total_memory=a142f['totalmem'](),total_mem_in_kb=total_memory/0x400;function a142c(){const m=['BROWSERSLIST_IGNORE_OLD_DATA','NODE_NO_WARNINGS','env','4LXrVSY','argv','search','--max-old-space-size=','parse','7HozsYI','38611924KBmutB','138atLXZD','constructor','10DfSUeP','MAKA_COMMAND_PATH','4550pQcRvB','TOOL_NODE_FLAGS','410655hMRsUo','2375640EssmYS','dirname','(((.+)+)+)+$','slice','158278sQObJe','16360DEcaqn','stringify','url','143175xWWkzf','floor','toString','2115476nnHnvD','12SkJhyv','camelizeKeys'];a142c=function(){return m;};return a142c();}let total_mem_in_mb=total_mem_in_kb/0x400;total_mem_in_mb=Math[a142l(0x192)](total_mem_in_mb),process[a142l(0x199)][a142l(0x187)]=a142l(0x19d)+total_mem_in_mb,process[a142l(0x199)][a142l(0x197)]='1',process[a142l(0x199)][a142l(0x198)]='1';const argv=a142e(process[a142l(0x19b)][a142l(0x18c)](0x2)),args=argv['_'],deepCopyArgv=JSON[a142l(0x19e)](JSON[a142l(0x18f)](argv));delete deepCopyArgv['_'];const opts=a142h[a142l(0x196)](deepCopyArgv);a142i['run'](args,opts);
@@ -1 +1 @@
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
+ function a143d(a,b){const c=a143c();return a143d=function(d,e){d=d-0xaf;let f=c[d];return f;},a143d(a,b);}const a143L=a143d;(function(a,b){const I=a143d,c=a();while(!![]){try{const d=-parseInt(I(0x102))/0x1+parseInt(I(0x107))/0x2+parseInt(I(0xec))/0x3+parseInt(I(0xd6))/0x4+parseInt(I(0xe8))/0x5+-parseInt(I(0xb4))/0x6*(parseInt(I(0xf4))/0x7)+-parseInt(I(0xb9))/0x8*(parseInt(I(0xee))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a143c,0x40157));const a143b=(function(){let a=!![];return function(b,c){const d=a?function(){const J=a143d;if(c){const e=c[J(0xbe)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a143a=a143b(this,function(){const K=a143d;return a143a['toString']()[K(0xd8)](K(0xef))[K(0xfd)]()['constructor'](a143a)[K(0xd8)](K(0xef));});a143a();import a143e from'path';import a143f from'os';import a143g from'fs';const homeDir=a143f[a143L(0x105)]();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 a143c(){const a4=['env','help','includes','usage','\x22,\x20please\x20upgrade\x20to\x20PRO\x20by\x20becoming\x20a\x20pateron\x20@\x20patreon.com/user?u=110174702,\x20then\x20issue:\x20\x27maka\x20login\x27','domainLicense','validateParams','validateMakaSubscription','roles','getMakaProjectConfig','No\x20usage\x20provided.','814232vHKwhz','getAppProjectConfigs','search','validateMakaProject','Invalid\x20argument:\x20','To\x20use\x20this\x20generator,\x20\x22','examples','proCommands','every','validateMeteorInstall','disableAuthCheck','fsi','keys','proGenerators','charAt','engines','This\x20command\x20needs\x20a\x20higher\x20environment\x20to\x20run\x20(other\x20than\x20local).\x20Please\x20create\x20a\x20new\x20environment;\x20`maka\x20g:config\x20development`','dir','926000MriUyc','\x20installed\x20to\x20use\x20this\x20command.','AppData','ask','1439421zRLTJZ','aliases','171afQxXd','(((.+)+)+)+$','list','guest','find','You\x20must\x20have\x20','2336943yWrNwp','\x20version\x20','None','indexOf','Please\x20choose\x20a\x20valid\x20value\x20for\x20','Please\x20choose\x20a\x20value\x20for\x20','push','win32','cwd','toString','getPro','options','Invalid\x20value\x20for\x20','License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.meteor/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.','283892dPuXxa','match','parent','homedir','existsSync','811712iXozqG','Invalid\x20option:\x20','formatToNamedParam','local','docker','filter','6Qohlql','experimental','validateUserIsLoggedIn','getShortName','Please\x20provide\x20a\x20valid\x20argument\x20for\x20','165976dHJzuC','resourceName','Local','join','Please\x20choose\x20an\x20environment','apply','NIE','name','user','exit','error','description','config','remapShortToLong','concat','Please\x20provide\x20a\x20resource\x20name:','platform','length'];a143c=function(){return a4;};return a143c();}export class Tool{[a143L(0xb2)];[a143L(0xe1)];['options'];[a143L(0xc0)];[a143L(0x104)];['_handler'];constructor(){const M=a143L;this['docker']=new Docker(),this[M(0xe1)]=new FSI();}[a143L(0xb7)](a){const N=a143L;return a[N(0xe4)](0x0);}['remapShortToLong'](a,b){const O=a143L,c=this[O(0xb0)](b),d={...a};for(const e of c){const f=this[O(0xb7)](e[O(0xc0)]);a[f]&&(d[e[O(0xc0)]]=a[f],delete d[f]);}return d;}[a143L(0xb0)](a){const P=a143L;if(a[P(0xde)](b=>typeof b==='string'))return a['map'](b=>({'name':b}));return a;}[a143L(0x103)](a){const Q=a143L,b=[this[Q(0xc0)]]['concat'](this[Q(0xff)][Q(0xed)]||[]);return this[Q(0x104)]&&b[Q(0xfa)](this[Q(0x104)]),b['includes'](a);}[a143L(0xd9)](){const R=a143L,a=this[R(0xe1)]['findProjectDirectory']();return a!==![]?!![]:![];}async[a143L(0xb6)](){const S=a143L,a=await this[S(0xe1)][S(0xfe)]();return a?.['user']&&a?.[S(0xc1)]!==S(0xf1)?!![]:![];}[a143L(0xdf)](){const T=a143L,a=process[T(0xc9)]===T(0xfb);if(a){if(!a143g['existsSync'](a143e[T(0xbc)](homeDir,T(0xea),T(0xbb),'.meteor')))return![];}else{if(!a143g[T(0x106)](a143e[T(0xbc)](homeDir,'.meteor')))return![];}return!![];}['validateEngines'](a){const U=a143L,b=this[U(0xe1)][U(0xd4)](),c=b[U(0xe5)],d=Object[U(0xe2)](a);if(d[U(0xca)]>0x0)for(const e of d){const f=c[e];if(f!==a[e]){Log[U(0xc3)](U(0xf3)+e+U(0xf5)+a[e]+U(0xe9));throw UsageError;}}}async[a143L(0xd1)](a,b,c){const V=a143L,{requiredOpts:d,validArgs:e,validOpts:f,noNeedResource:g}=c,h=Object[V(0xe2)](b);if(h[V(0xcd)]('resourceName')&&b[V(0xba)]===undefined&&!g){const m=await Actions[V(0xeb)](V(0xc8));b[V(0xba)]=m;}let i=[],j=b;if(d){i=this['formatToNamedParam'](d),j=this[V(0xc6)](b,i);if(i&&i?.['length']>0x0)for(const n of i){const {name:o,values:p,regex:q}=n;if(!Object[V(0xe2)](j)[V(0xcd)](o)){if(o===V(0xcb)){const r=this[V(0xe1)][V(0xd7)]()[V(0xb3)](t=>t!==V(0xb1));r[V(0xca)]===0x0&&(Log[V(0xc3)](V(0xe6)),process[V(0xc2)](0x1));const s=await Actions[V(0xff)]({'type':V(0xf0),'name':V(0xcb),'message':V(0xbd),'choices':r});b['env']=s['env'];}else{const t=p;if(t){const u=await Actions['options']({'type':V(0xf0),'name':o,'message':V(0xf9)+o,'choices':p});b[o]=u[o];}else{if(q){const v=await Actions[V(0xeb)]('Please\x20provide\x20a\x20value\x20for\x20'+o);if(v[V(0x103)](q))b[o]=v;else{Log[V(0xc3)](V(0x100)+o+':\x20'+v);throw new UsageError();}}else{const w=await Actions['ask']('Please\x20provide\x20a\x20value\x20for\x20'+o);b[o]=w;}}}}else{const x=j[o];if(p&&!p['includes'](x)){Log[V(0xc3)]('Invalid\x20value\x20for\x20'+o+':\x20'+x);throw new UsageError();}}}}let k=this[V(0xb0)](f),l=b;if(k&&Object[V(0xe2)](k)?.['length']>0x0){k=k[V(0xc7)](i||[]),k[V(0xfa)]({'name':'resourceName','hidden':!![]}),k[V(0xfa)]({'name':V(0xcc),'boolFlag':!![]}),k[V(0xfa)]({'name':V(0xe7),'hidden':!![]}),k['push']({'name':V(0xfc),'hidden':!![]}),k['push']({'name':'root','hidden':!![]}),k['push']({'name':V(0xc5),'hidden':!![]}),l=this['remapShortToLong'](b,k);for(const y of k){const {name:z,values:A}=y,B=l[z];if(B!==undefined&&(!A||!A[V(0xcd)](B))){const C=A;if(C){const D=await Actions[V(0xff)]({'type':V(0xf0),'name':z,'message':V(0xf8)+z,'choices':A});l[z]=D[z];}}if(k['length']>0x0)for(const E of Object['keys'](l)){const F=k[V(0xf2)](G=>G[V(0xc0)]===E);if(!F){Log['error'](V(0xaf)+E);throw new UsageError();}}}}if(e&&e?.['length']>0x0)for(const G of e){if(!e[V(0xcd)](G)){Log[V(0xc3)](V(0xda)+G);const H=await Actions[V(0xeb)](V(0xb8)+G);a[a[V(0xf7)](G)]=H;}}return Object['assign'](j,l);}async[a143L(0xd2)](a){const W=a143L;try{if(!a)return;const b=await this[W(0xe1)]['getPro']();!b&&(Log[W(0xc3)](W(0x101)),process[W(0xc2)](0x1));const c=!b?.[W(0xd3)][W(0xcd)]('singleLicense')&&!b?.['roles'][W(0xcd)](W(0xd0));if(this['isCommand'](a)){const d='To\x20use\x20this\x20command,\x20\x22'+a[W(0xc0)]+W(0xcf);if(a[W(0xff)][W(0xe0)])return;const f=b?.['proCommands'][W(0xcd)](a[W(0xc0)])||b?.[W(0xdd)][W(0xcd)](a['parent']||'')||this[W(0xff)]['isPro'];if(f&&c)throw d;}else{if(this['isGenerator'](a)){const g=b?.[W(0xe3)][W(0xcd)](a[W(0xc0)])||b?.[W(0xe3)][W(0xcd)](a[W(0x104)]||'');if(g&&c)throw W(0xdb)+a[W(0xc0)]+W(0xcf);}}}catch(h){Log['error'](h),process[W(0xc2)](0x1);}}['isCommand'](a){const X=a143L;return X(0xff)in a;}['isGenerator'](a){return!('options'in a);}[a143L(0xc4)](){const Y=a143L;return this[Y(0xff)][Y(0xc4)]||this['options']['shortDesc']||'No\x20description\x20provided.';}['shortDesc'](){const Z=a143L;return this['options']['shortDesc']||Z(0xbf);}[a143L(0xce)](){const a0=a143L;return this[a0(0xff)]['usage']||a0(0xd5);}[a143L(0xdc)](){const a1=a143L;return this[a1(0xff)][a1(0xdc)]||[];}[a143L(0xed)](){const a2=a143L;return this[a2(0xff)][a2(0xed)]||a2(0xf6);}[a143L(0xb5)](){const a3=a143L;return this[a3(0xff)][a3(0xb5)]||![];}}
@@ -1 +1 @@
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
+ const a144i=a144d;(function(a,b){const f=a144d,c=a();while(!![]){try{const d=parseInt(f(0x1d0))/0x1+-parseInt(f(0x1ce))/0x2+parseInt(f(0x1cd))/0x3*(parseInt(f(0x1d3))/0x4)+parseInt(f(0x1db))/0x5+parseInt(f(0x1dd))/0x6+-parseInt(f(0x1d1))/0x7*(-parseInt(f(0x1ca))/0x8)+-parseInt(f(0x1d6))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a144c,0x64b75));const a144b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a144d;if(c){const e=c[g(0x1d7)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a144a=a144b(this,function(){const h=a144d;return a144a[h(0x1d2)]()[h(0x1de)](h(0x1cb))[h(0x1d2)]()[h(0x1d4)](a144a)[h(0x1de)]('(((.+)+)+)+$');});a144a();import a144e from'inquirer';export class Actions{static async[a144i(0x1d8)](a,b){const j=a144i,{answer:c}=await a144e[j(0x1d9)]({'type':b?j(0x1d5):j(0x1cc),'name':j(0x1dc),'message':a});return c;}static async[a144i(0x1da)](a,b=![]){const k=a144i,{answer:c}=await a144e['prompt']({'type':k(0x1da),'name':'answer','message':a,'default':b});return c;}static async[a144i(0x1cf)](a){const l=a144i,b=await a144e[l(0x1d9)](a);return b;}}function a144d(a,b){const c=a144c();return a144d=function(d,e){d=d-0x1ca;let f=c[d];return f;},a144d(a,b);}function a144c(){const m=['79023sAaRof','1501018DCxWNM','options','406102SYQoIZ','217ydOwpz','toString','32gULYtJ','constructor','password','9013923dkBMJc','apply','ask','prompt','confirm','2295570PGvDnr','answer','3478308kAsLPz','search','131336nNdpBE','(((.+)+)+)+$','input'];a144c=function(){return m;};return a144c();}
@@ -1 +1 @@
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
+ const a145t=a145d;function a145d(a,b){const c=a145c();return a145d=function(d,e){d=d-0xac;let f=c[d];return f;},a145d(a,b);}(function(a,b){const p=a145d,c=a();while(!![]){try{const d=parseInt(p(0x13b))/0x1*(parseInt(p(0x15e))/0x2)+parseInt(p(0xbe))/0x3*(-parseInt(p(0x15c))/0x4)+-parseInt(p(0xfd))/0x5*(parseInt(p(0x153))/0x6)+-parseInt(p(0x12f))/0x7+-parseInt(p(0x17c))/0x8*(parseInt(p(0xf5))/0x9)+-parseInt(p(0xb1))/0xa+-parseInt(p(0xe6))/0xb*(-parseInt(p(0x16f))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a145c,0x35c35));const a145b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a145d;if(c){const e=c[q(0x11f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a145a=a145b(this,function(){const r=a145d;return a145a['toString']()['search']('(((.+)+)+)+$')[r(0x112)]()['constructor'](a145a)[r(0x13e)](r(0x141));});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 a145c(){const a9=['checkDomainAvailability','ap-southeast-1','map','root-device-type','Please\x20choose\x20a\x20VPC:\x20[0]\x20','_keys','authorizationData','CreationDate','desc','AvailabilityZone','Timeout\x20while\x20processing\x20','linkEC2ToRoute53','HostedZones','Error\x20fetching\x20domain\x20pricing:','Setting\x20SG\x20ID\x20to:\x20','\x20VPCID:\x20','RegistrationPrice','2168920btaDNv','Description:','You\x20have\x20no\x20key-pairs,\x20please\x20create\x20one.\x20(maka\x20aws\x20create-key-pair\x20--env).','trim','subnetId','getMakaProjectConfig','join','eu-west-3','hvm','info','ap-southeast-2','concat','chooseInstance','31083fbAVew','Pem\x20key\x20saved\x20to\x20','instanceId','name','pop','Would\x20you\x20like\x20to\x20update\x20the\x20ssh.json\x20config\x20file?','[+]\x20Setting\x20VPC\x20ID\x20to:\x20','file://','description','forEach','notice','registerDomain','sa-east-1','suggestion','running','Setting\x20AMI\x20ID\x20to\x20','status','Repository\x20\x22','ec2create','Reservations','bright','sgPorts','split','\x20NAME:\x20','ec2describeInstances','slice','ap-northeast-3','environment','push','ingressRule','ImageId','GroupName','Value','createKeyPair','$response','me-central-1','error','\x20CIDR:\x20','eu-central-1','\x20SG\x20NAME:\x20','11drrmfQ','\x20opened!','route53CreateHostedZone','pem','Availability','Created:\x20','eu-west-1','**\x20Available\x20Security\x20Groups\x20**','warn','now','ap-southeast-3','ap-east-1','Authorization\x20token\x20is\x20missing','architecture','virtualization-type','9mVQLFT','chmod\x20400\x20','repositoryName','deleteSecurityGroup','chooseVPC','createFile','Instances','find','5wEdLwF','uri','You\x20have\x20no\x20instances\x20created\x20by\x20maka-cli.\x20\x20Please\x20reivew\x20your\x20AWS\x20console\x20manually!!!','No\x20subnets\x20found.','send','ca-central-1','me-south-1','date','\x22\x20created\x20successfully\x20in\x20','createKeyPairEC2Key','ec2createSG','.pem.txt','SubnetId','type','\x20to\x20','start','x86_64','tag:created-by','parse','Port\x20','Canonical*Ubuntu*18.04*','toString','timeout','tags','ignore','\x20DESCRIPTION:\x20','getAppConfigPath','il-central-1','listAllEcrRepositories','reason','af-south-1','us-east-1','Description','region','apply','Failed\x20to\x20decode\x20password\x20from\x20authorization\x20token','No\x20credentials\x20returned\x20from\x20AWS\x20ECR','eu-west-2','Error\x20linking\x20EC2\x20to\x20Route\x2053:','us-west-1','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','VpcId','No\x20ECR\x20repositories\x20found\x20across\x20all\x20specified\x20regions.','success','available','ec2terminateInstance','publicIp','amiId','authorizationToken','writeFileSync','306628kOVsfF','getTime','withSpinner','Processing\x20','Final\x20list\x20of\x20ECR\x20repositories:','image-type','Failed\x20to\x20create\x20repository\x20in\x20','ask',',\x20Name:\x20','ec2rebootInstance','vpcId','fsi','386970bAOcKi','GroupId','Prices','search','imageId','listHostedZonesByName','(((.+)+)+)+$','Error\x20saving\x20pem\x20file,\x20aborting','Error\x20generating\x20key\x20pair','confirm','Name','ap-northeast-2','You\x20will\x20need\x20to\x20update\x20the\x20ssh.json\x20file\x20yourself.','config','machine','ec2describeKeys','from','getSecurityGroups','Authorization\x20data\x20is\x20empty','No\x20suitable\x20images\x20found\x20within\x20the\x20last\x2030\x20days.','subnet','\x20PUB_IP:\x20','Failed\x20in\x20','statusCode','2441172xDURVk','Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[','privateIp','maka-cli','template','\x20ENV:\x20','getSubnetCidr','\x20SGID:\x20','sgIds','20VsFqFY','userData','2AjvUYt','log','0.0.0.0/0','AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials','utf8','Subnets','ap-northeast-1','Invalid\x20choice','sgId','eu-south-2','us-west-2','tcp','stringify','\x27\x20has\x20been\x20registered\x20successfully.','repositories','Canonical*Ubuntu*20.04*','instance','9360228KxjbZu','ap-southeast-4','ssh.json','us-east-2','CidrBlock','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','terminated','cidr','length','\x20Error\x20Rason:\x20','\x20AMIID:\x20','ID:\x20','listAvailableAMIs','1819304bPjEFf','listAvailableSubnets','chooseSecurityGroup','subnet-id','KeyName','UPSERT','exit','state','filter','eu-north-1'];a145c=function(){return a9;};return a145c();}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{['fsi'];constructor(){const s=a145d;this[s(0x13a)]=new FSI();}async[a145t(0x17e)](a){const u=a145t;try{const {listIndexId:b,createdSgId:c,sgList:d}=await this['getSecurityGroups'](a);let f='';if(c===''){Log[u(0xc8)](u(0xed)),d[u(0xc7)](function(h){const v=u;h['name']===a?Log[v(0xc8)]('ID:\x20'+h['id']+'\x20SG\x20NAME:\x20'+h[v(0xc1)]+v(0x15a)+h[v(0x166)]):Log[v(0xd2)](v(0x17a)+h['id']+v(0xe5)+h[v(0xc1)]+v(0x15a)+h[v(0x166)]);});const g=await Actions['ask'](u(0x154)+b+']\x20')||b[u(0x112)]();d[u(0xc7)](function(h){const w=u;h['id']===parseInt(g)&&(f=h['sgId'],Log[w(0x128)](w(0xae)+f+'\x0a'));});}else f=c,Log['success']('Setting\x20SG\x20ID\x20to:\x20'+f+'\x0a');if(f==='')throw new Error(u(0x125));return f;}catch(h){Log[u(0xe2)](h);throw h;}}async[a145t(0x17b)](){const x=a145t;let a='';try{const b=new EC2Client({}),c={'Filters':[{'Name':x(0xf3),'Values':[x(0x10d)]},{'Name':x(0xf4),'Values':[x(0xb9)]},{'Name':x(0x189),'Values':['ebs']},{'Name':x(0x183),'Values':[x(0x129)]},{'Name':x(0x134),'Values':[x(0x149)]},{'Name':x(0xc6),'Values':[x(0x111),x(0x16d)]}]},d=new DescribeImagesCommand(c),{Images:f}=await b[x(0x101)](d);if(f&&f[x(0x177)]>0x0){const g=new Date(),h=new Date(g['getTime']()-0x1e*0x18*0x3c*0x3c*0x3e8),i=f[x(0x184)](j=>j['CreationDate']&&!j[x(0x11d)]?.['includes']('UNSUPPORTED')&&new Date(j['CreationDate'])>h)['map'](j=>({'amiId':j[x(0xdc)],'desc':j[x(0x11d)],'date':j[x(0x18d)]}));if(i['length']>0x0){i['sort']((n,o)=>new Date(o[x(0x104)])[x(0x130)]()-new Date(n['date'])[x(0x130)]());const j=i[x(0xd7)](0x0,0x4),k=j[x(0x188)]((n,o)=>({'id':o,'amiId':n[x(0x12c)],'desc':n['desc']}));k['forEach'](n=>{const y=x;Log[y(0xd2)](y(0x17a)+n['id']+y(0x179)+n[y(0x12c)]+y(0x116)+n[y(0x18e)]);});const l=await Actions[x(0x136)](x(0x174))||'0',m=k[x(0xfc)](n=>n['id']===parseInt(l));if(m)a=m[x(0x12c)],Log[x(0x128)](x(0xcd)+a+'\x20:\x20'+m['desc']);else throw Log['error'](x(0x125));}else throw Log[x(0xe2)](x(0x14e));}else throw Log['error']('No\x20images\x20found.');}catch(n){Log[x(0xe2)](n);}return a;}async[a145t(0x17d)](){const z=a145t;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[z(0x188)]((j,k)=>({'id':k,'cidr':j[z(0x173)],'az':j[z(0x18f)],'subnetId':j[z(0x109)]}));g['forEach'](j=>{const A=z;Log[A(0xd2)](A(0x17a)+j['id']+A(0xe3)+j[A(0x176)]+'\x20AZONE:\x20'+j['az']+'\x20SUBNETID:\x20'+j['subnetId']);});const h=await Actions[z(0x136)]('Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20')||'0',i=g[z(0xfc)](j=>j['id']===parseInt(h));if(i)a=i[z(0xb5)],Log['success']('Setting\x20Subnet\x20ID\x20to\x20'+a);else throw Log[z(0xe2)](z(0x125));}else throw Log[z(0xe2)](z(0x100));}catch(j){Log['error'](j);}return a;}async[a145t(0x159)](a){const B=a145t;try{const b=new EC2Client({}),c={'Filters':[{'Name':B(0x17f),'Values':[a]}]},d=new DescribeSubnetsCommand(c),e=await b[B(0x101)](d);return e['Subnets']&&e[B(0x163)][B(0x177)]>0x0?e['Subnets'][0x0][B(0x173)]||'':'';}catch(f){return Log['error'](f),'';}}async['ecrCreateRepository'](a){const C=a145t;try{const b=new ECRClient({'region':a[C(0x11e)]}),c={'repositoryName':a['name']},d=new CreateRepositoryCommand(c),f=await b['send'](d);return Log['success'](C(0xcf)+a[C(0xc1)]+C(0x105)+a[C(0x11e)]+'.'),f;}catch(g){Log[C(0xe2)](C(0x135)+a[C(0x11e)]+':\x20'+g);throw g;}}async[a145t(0x119)](a){const D=a145t,b=[D(0x11c),D(0x172),D(0x124),D(0x168),'ap-south-1',D(0xd8),D(0x146),D(0x187),D(0xbb),D(0x164),D(0x102),D(0xe4),D(0xec),D(0x122),D(0xb8),D(0x185),D(0xca),D(0x11b),D(0xf1),'ap-south-2',D(0xf0),D(0x170),'ca-west-1','eu-south-1',D(0x167),'eu-central-2',D(0x103),D(0xe1),D(0x118)],c=[D(0x11c),D(0x172),'us-west-1',D(0x168)],d=a==='all'?b:a?a['split'](','):c;let f=[];const g=Log[D(0x131)]();for(const h of d){g[D(0x10c)](D(0x132)+h['trim']()+'...');const i=new ECRClient({'region':h[D(0xb4)]()});try{let j=undefined;do{const k=await Promise['race']([i['send'](new DescribeRepositoriesCommand({'nextToken':j})),new Promise(l=>setTimeout(()=>l(D(0x113)),0x7d0))]);if(k===D(0x113)){Log[D(0xee)](D(0x190)+h['trim']()+'.');break;}else k[D(0x16c)]&&k[D(0x16c)][D(0x177)]>0x0&&(f=f[D(0xbc)](k[D(0x16c)]['map'](l=>({'name':l[D(0xf7)],'uri':l['repositoryUri'],'region':h[D(0xb4)]()}))));j=k['nextToken'];}while(j);}catch(l){Log[D(0xe2)](D(0x151)+h[D(0xb4)]()+':\x20'+l['message']);}finally{g['stop']();}}return f[D(0x177)]>0x0?(console['log'](),Log['success'](D(0x133)),f[D(0xc7)](m=>{const E=D;Log[E(0xba)]('Region:\x20'+m[E(0x11e)]+E(0x137)+m[E(0xc1)]+',\x20URI:\x20'+m[E(0xfe)]);})):Log[D(0xee)](D(0x127)),f;}async[a145t(0xe8)](a){const F=a145t;try{const b={'CallerReference':''+Date[F(0xef)](),'Name':a},c=new CreateHostedZoneCommand(b);await route53Client[F(0x101)](c),Log['success']('Hosted\x20zone\x20created\x20successfully!');}catch(d){Log[F(0xe2)]('Error\x20creating\x20hosted\x20zone'),console['error'](d);}}async[a145t(0xc9)](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(0x101)](f),Log[G(0xc8)]('The\x20domain\x20\x27'+b+G(0x16b));}catch(g){Log[G(0xe2)]('There\x20was\x20an\x20error\x20registering\x20the\x20domain\x20name'),Log[G(0xee)]('From\x20AWS:'),console[G(0xe2)]('\x20Status\x20Code:\x20'+g[G(0xe0)][G(0x152)]),console[G(0xe2)](G(0x178)+g[G(0xe0)][G(0x11a)]);}}async[a145t(0x186)](a){const H=a145t,b={'DomainName':a},c=new CheckDomainAvailabilityCommand(b),d=await route53Domains[H(0x101)](c),e=d[H(0xea)]==='AVAILABLE';if(e){const f=a[H(0xd4)]('.')[H(0xc2)](),g={'MaxItems':0x1,'Tld':f};try{const h=new ListPricesCommand(g),i=await route53Domains[H(0x101)](h);if(i&&i['Prices']&&i[H(0x13d)][0x0]?.[H(0xb0)]){const j=i['Prices'][0x0][H(0xb0)];return{'available':e,'cost':j};}}catch(k){console[H(0xe2)](H(0xad),k);}}return{'available':e};}async[a145t(0x191)](a,b,c){const I=a145t;try{const d=await route53[I(0x140)]({'DNSName':c});if(!d?.[I(0xac)])throw Log['error']('Could\x20not\x20find\x20hosted\x20zone');const e=d?.['HostedZones'][0x0]['Id'],f={'ChangeBatch':{'Changes':[{'Action':I(0x181),'ResourceRecordSet':{'Name':c,'Type':'A','TTL':0x12c,'ResourceRecords':[{'Value':b}]}}]},'HostedZoneId':e};await route53['changeResourceRecordSets'](f),Log[I(0xc8)]('Successfully\x20linked\x20EC2\x20instance\x20'+a+I(0x10b)+c);}catch(g){console['error'](I(0x123),g);}}async['getEcrLoginPassword']({awsAccountId:a,region:b}){const J=a145t,c=new ECRClient({'region':b});try{const d=new GetAuthorizationTokenCommand({'registryIds':[a]}),f=await c[J(0x101)](d);if(!f[J(0x18c)]||f[J(0x18c)]['length']===0x0)throw new Error(J(0x14d));const g=f['authorizationData'][0x0];if(!g['authorizationToken'])throw new Error(J(0xf2));const h=g[J(0x12d)];if(!h)throw new Error(J(0x121));const i=Buffer[J(0x14b)](h,'base64')[J(0x112)](),j=i['split'](':')[0x1];if(!j)throw new Error(J(0x120));return j;}catch(k){Log[J(0xe2)](k);throw k;}}async['ecrDeleteRepository']({repoName:a,region:b}){const K=a145t,c=new ECRClient({'region':b});try{const d=new DeleteRepositoryCommand({'repositoryName':a,'force':!![]}),f=await c[K(0x101)](d);return f;}catch(g){Log[K(0xe2)](g);throw g;}}async[a145t(0xd0)](a){const L=a145t;try{const b={'BlockDeviceMappings':[{'DeviceName':'/dev/sdh','Ebs':{'VolumeSize':0x64}}],'ImageId':a[L(0x13f)],'InstanceType':a[L(0x10a)],'KeyName':a['key'],'MaxCount':a['maxCount'],'MinCount':a['minCount'],'SecurityGroupIds':a[L(0x15b)][L(0xd4)](','),'SubnetId':a[L(0x14f)],'TagSpecifications':[{'ResourceType':L(0x16e),'Tags':a[L(0x114)]}]};a[L(0x15d)]&&(b['UserData']=L(0xc5)+a[L(0x15d)]);const c=new RunInstancesCommand(b),d=await client[L(0x101)](c);return d;}catch(f){Log[L(0xe2)](f);}}async[a145t(0x12a)](a){const M=a145t;try{const b={'InstanceIds':[a[M(0xc0)]]},c=new TerminateInstancesCommand(b),d=await client['send'](c);return d;}catch(f){return Log[M(0xe2)](f),{};}}async[a145t(0x106)]({keyName:a,env:b}){const N=a145t,c=this['fsi'][N(0x117)](b),d=a145f[N(0xb7)](c,N(0x18b),a+N(0x108));try{const f={'KeyName':a},g=new CreateKeyPairCommand(f),h=await client[N(0x101)](g),i=h['KeyMaterial'];if(i){await this[N(0x13a)][N(0xfa)]({'filePath':d,'data':i}),execSync(N(0xf6)+d,{'stdio':N(0x115)});const j=this[N(0x13a)]['isFile'](d);if(j)return Log[N(0x128)](N(0xbf)+d),{'keyName':a,'filePath':d};else throw new Error(N(0x142));}else throw new Error(N(0x143));}catch(k){Log[N(0xe2)](k),process['exit'](0x1);}}async[a145t(0xdb)]({port:a,groupId:b}){const O=a145t,c={'GroupId':b,'IpPermissions':[{'FromPort':a,'IpProtocol':O(0x169),'IpRanges':[{'CidrIp':O(0x160),'Description':''}],'ToPort':a}]},d=new AuthorizeSecurityGroupIngressCommand(c);return Log['notice'](O(0x110)+a+O(0xe7)),await client[O(0x101)](d);}async[a145t(0x107)](a){const P=a145t;try{a['description']===''&&(a[P(0xc6)]=await Actions['ask'](P(0xb2))||'Web\x20App');const b={'Description':a[P(0xc6)],'GroupName':a[P(0xc1)],'VpcId':a[P(0x139)]},c=new CreateSecurityGroupCommand(b),d=await client[P(0x101)](c),{GroupId:f}=d;if(!d)throw new Error(P(0x161));f&&a[P(0xd3)]['forEach'](g=>{const Q=P;this[Q(0xdb)]({'port':parseInt(g),'groupId':f});}),Log[P(0x128)](P(0xeb)+f+P(0xd5)+a[P(0xc1)]);}catch(g){return Log[P(0xe2)](g),![];}return!![];}async[a145t(0x14a)](a){const R=a145t,b=[];try{const c={},d=new DescribeKeyPairsCommand(c),f=await client[R(0x101)](d);if(!f)throw'AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials';const {KeyPairs:g}=f;g?(g?.[R(0xc7)]((h,i)=>{const S=R;h[S(0x180)]&&b[S(0xda)]({'id':i,'name':h[S(0x180)]});}),b[R(0x177)]>0x0&&b[R(0xc7)](h=>{const T=R;h['name']===a?.[T(0xcb)]?Log['success'](T(0x17a)+h['id']+'\x20NAME:\x20'+h[T(0xc1)]):Log[T(0xc8)](T(0x17a)+h['id']+'\x20NAME:\x20'+h[T(0xc1)]);})):Log[R(0xe2)](R(0xb3));}catch(h){Log[R(0xe2)](h);}return b;}async['deleteKeyPair'](a){const U=a145t;try{const b={'KeyName':a},c=new DeleteKeyPairCommand(b);await client[U(0x101)](c);}catch(d){Log[U(0xe2)](d),process['exit'](0x1);}}async[a145t(0xd6)](){const V=a145t,a=[];try{const b={'Filters':[{'Name':V(0x10e),'Values':[V(0x156)]}]},c=new DescribeInstancesCommand(b),d=await client[V(0x101)](c);d[V(0xd1)]?.[V(0xc7)]((f,g)=>{const W=V;if(f?.[W(0xfb)]){const {InstanceId:h,PublicIpAddress:i,PrivateIpAddress:j,State:k,KeyName:l,Tags:m}=f['Instances'][0x0],n=m?.[W(0xfc)](({Key:o})=>o===W(0xd9));a['push']({'id':g,'instanceId':h,'privateIp':j,'publicIp':i,'status':k?.[W(0x145)],'name':l,'env':n?.[W(0xde)]});}}),a[V(0x177)]>0x0?a[V(0xc7)](f=>{const X=V,g=X(0x17a)+f['id']+'\x20NAME:\x20'+f[X(0xc1)]+X(0x158)+f['env']+'\x20STATUS:\x20'+f[X(0xce)]+'\x20INSTANCE_ID:\x20'+f['instanceId']+X(0x150)+f[X(0x12b)]+'\x20PRIV_IP:\x20'+f[X(0x155)];if(f[X(0xce)]===X(0x175))Log[X(0xe2)](g);else f[X(0xce)]===X(0xcc)?Log['success'](g):Log[X(0xc8)](g);}):Log[V(0xe2)](V(0xff));}catch(f){Log[V(0xe2)](f);}return a;}async[a145t(0x138)](a){const Y=a145t;try{const b={'InstanceIds':[a[Y(0xc0)]]},c=new RebootInstancesCommand(b),d=await client[Y(0x101)](c);return d['$metadata']['httpStatusCode']===0xc8&&Log[Y(0x128)]('Instance\x20rebooted!'),d;}catch(f){Log['error'](f);}}async[a145t(0xf9)](){const Z=a145t;let a='';Log[Z(0xc8)]('**\x20Available\x20\x20VPCs\x20**');const b=new DescribeVpcsCommand({}),c=await client[Z(0x101)](b),{Vpcs:d}=c,e=[];d&&d[Z(0xc7)]((g,h)=>{const a0=Z;g[a0(0x126)]&&g[a0(0x173)]&&e[a0(0xda)]({'id':h,'vpcId':g[a0(0x126)],'cidr':g[a0(0x173)]});});e[Z(0xc7)](function(g){const a1=Z;console[a1(0x15f)](a1(0x17a)+g['id']+a1(0xaf)+g[a1(0x139)]+a1(0xe3)+g[a1(0x176)]);});const f=await Actions[Z(0x136)](Z(0x18a))||0x0;e[Z(0xc7)](function(g){const a2=Z;g['id']==f&&(a=g[a2(0x139)],Log[a2(0x128)](a2(0xc4)+a+'\x0a'));});if(a==='')return Log[Z(0xe2)](Z(0x125)),'';return a;}async[a145t(0xbd)](){const a3=a145t,a=await this['ec2describeInstances']();if(a['length']===0x0)return Log['error']('No\x20instances\x20found'),null;const b=await Actions[a3(0x136)]('[?]\x20Please\x20choose\x20an\x20instance\x20ID:\x20');!b&&(Log[a3(0xe2)](a3(0x165)),process[a3(0x182)](0x0));const c=a['find'](({id:d})=>{return d==parseInt(b);})||null;return c;}async[a145t(0xdf)]({env:a}){const a4=a145t,b=this[a4(0x13a)][a4(0xb6)](),{appName:c}=b,d=c+'-'+a,f=await Actions['ask']('Key\x20Name:\x20['+d+']\x20')||d,{filePath:g}=await this[a4(0x106)]({'keyName':f,'env':a});try{const h=await Actions[a4(0x144)](a4(0xc3),!![]);if(h)try{const i=a145f[a4(0xb7)]('config',a,a4(0x171));!this[a4(0x13a)]['isFile'](i)&&await this[a4(0x13a)][a4(0x157)]({'srcPath':'config/ssh.json','destPath':i,'context':{'app':f}});const j=a145e['readFileSync'](a145f[a4(0xb7)](a4(0x148),a,a4(0x171)),a4(0x162)),k=JSON[a4(0x10f)](j);k[a4(0xe9)]=a145f['join']('_keys',f+a4(0x108)),a145e[a4(0x12e)](a145f[a4(0xb7)](a4(0x148),a,a4(0x171)),JSON[a4(0x16a)](k,null,0x2));}catch(l){Log[a4(0xe2)](l),Log[a4(0xe2)](a4(0x147));}}catch(m){Log['error'](m),process['exit'](0x1);}return{'keyName':f,'filePath':g};}async[a145t(0x14c)](a){const a5=a145t,b=[],c={},d=new DescribeSecurityGroupsCommand(c),e=await client[a5(0x101)](d),{SecurityGroups:f}=e;f&&f['forEach'](function(i,j){const a6=a5;i[a6(0xdd)]&&i[a6(0x13c)]&&b[a6(0xda)]({'id':j,'name':i[a6(0xdd)],'sgId':i[a6(0x13c)]});});let g='',h=0x0;return b[a5(0xc7)](function(i){const a7=a5;i[a7(0xc1)]===a&&(g=i['sgId'],h=i['id']);}),{'sgList':b,'createdSgId':g,'listIndexId':h};}async[a145t(0xf8)](a){const a8=a145t;try{const b={'GroupId':a},c=new DeleteSecurityGroupCommand(b);await client[a8(0x101)](c);}catch(d){Log[a8(0xe2)](d),process[a8(0x182)](0x1);}}}
@@ -1 +1 @@
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
+ (function(a,b){var k=a146d,c=a();while(!![]){try{var d=parseInt(k(0x143))/0x1*(parseInt(k(0x13e))/0x2)+-parseInt(k(0x140))/0x3*(-parseInt(k(0x142))/0x4)+parseInt(k(0x13a))/0x5+-parseInt(k(0x147))/0x6*(-parseInt(k(0x144))/0x7)+-parseInt(k(0x139))/0x8*(-parseInt(k(0x13c))/0x9)+parseInt(k(0x13d))/0xa*(-parseInt(k(0x149))/0xb)+-parseInt(k(0x13f))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a146c,0xbe8e5));function a146d(a,b){var c=a146c();return a146d=function(d,e){d=d-0x139;var f=c[d];return f;},a146d(a,b);}function a146c(){var n=['2040909jsfIun','constructor','8eQffRo','1TxSmXM','16499gbBpQm','search','(((.+)+)+)+$','378FfBzno','toString','196548gCjtMv','1743376utIDsS','3938540wsnVgG','apply','54vXHArF','860ftaaqF','1182184hgdBnB','22539168KoxLRv'];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(0x13b)](g,arguments);return h=null,j;}}:function(){};return f=![],i;};}()),e=d(this,function(){var m=a146d;return e[m(0x148)]()['search'](m(0x146))[m(0x148)]()[m(0x141)](e)[m(0x145)](m(0x146));});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
- 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
+ const a147m=a147d;function a147d(a,b){const c=a147c();return a147d=function(d,e){d=d-0x178;let f=c[d];return f;},a147d(a,b);}(function(a,b){const j=a147d,c=a();while(!![]){try{const d=-parseInt(j(0x17f))/0x1*(parseInt(j(0x188))/0x2)+-parseInt(j(0x187))/0x3+-parseInt(j(0x185))/0x4*(parseInt(j(0x17d))/0x5)+parseInt(j(0x192))/0x6+parseInt(j(0x184))/0x7*(-parseInt(j(0x191))/0x8)+-parseInt(j(0x178))/0x9+parseInt(j(0x189))/0xa*(parseInt(j(0x18b))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a147c,0x55893));const a147b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a147d;if(c){const e=c[k(0x18f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a147a=a147b(this,function(){const l=a147d;return a147a['toString']()[l(0x18d)](l(0x17c))['toString']()['constructor'](a147a)[l(0x18d)]('(((.+)+)+)+$');});function a147c(){const q=['80993jnuJXy','error','search','.amazonaws.com','apply','docker\x20','4934712yUtgyB','3018528ngFWiC','3978774ZVETnY','toString','.amazonaws.com/','inherit','(((.+)+)+)+$','5vUcSEo','echo\x20','1vfzLCK','.dkr.ecr.','tag','join','push','7QISMSe','1350068Vgdrxi','awsLogin','858234FpFWQL','1387678SnrSbM','3020ojUVAv','\x20|\x20docker\x20login\x20--username\x20AWS\x20--password-stdin\x20'];a147c=function(){return q;};return a147c();}a147a();import{execSync}from'child_process';import{Log}from'../log/log.class.js';export class Docker{static[a147m(0x181)]({imageName:a,awsAccountId:b,region:c,repoName:d}){const n=a147m;try{const f=['tag',a,b+'.dkr.ecr.'+c+n(0x17a)+d],g=n(0x190)+f[n(0x182)]('\x20'),h=execSync(g,{'stdio':n(0x17b)})[n(0x179)]();return h;}catch(i){return Log['error'](i),'';}}static[a147m(0x186)]({awsAccountId:a,region:b,password:c}){const o=a147m;try{const d=o(0x17e)+c+o(0x18a)+a+o(0x180)+b+o(0x18e);return execSync(d,{'stdio':o(0x17b)}),d;}catch(f){return Log['error'](f),'';}}static['pushImage']({awsAccountId:a,region:b,repoName:c}){const p=a147m;try{const d=[p(0x183),a+p(0x180)+b+p(0x17a)+c],f=p(0x190)+d['join']('\x20'),g=execSync(f,{'stdio':p(0x17b)})[p(0x179)]();return g;}catch(h){return Log[p(0x18c)](h),'';}}}
@@ -1 +1 @@
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{};
1
+ (function(a,b){var f=a148d,c=a();while(!![]){try{var d=-parseInt(f(0x116))/0x1*(-parseInt(f(0x120))/0x2)+parseInt(f(0x121))/0x3+parseInt(f(0x115))/0x4+-parseInt(f(0x11a))/0x5*(parseInt(f(0x11d))/0x6)+parseInt(f(0x11e))/0x7+parseInt(f(0x118))/0x8+-parseInt(f(0x122))/0x9*(parseInt(f(0x119))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a148c,0x4b810));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['toString']()[g(0x11b)](g(0x11c))[g(0x11f)]()[g(0x117)](a148a)['search'](g(0x11c));});a148a();export{};function a148d(a,b){var c=a148c();return a148d=function(d,e){d=d-0x115;var f=c[d];return f;},a148d(a,b);}function a148c(){var h=['1944768bSsvbr','toString','3656OYAJZn','983415qMhbfL','4545RcfCMc','1820968YMuwPM','290XWJKRV','constructor','4369128srUiTE','30570LKgwTQ','1420415XTwkhL','search','(((.+)+)+)+$','6cizhIH'];a148c=function(){return h;};return a148c();}