@maka/maka-cli 4.13.8 → 4.13.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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 a135l=a135d;(function(a,b){const j=a135d,c=a();while(!![]){try{const d=-parseInt(j(0xc5))/0x1+parseInt(j(0xdf))/0x2*(parseInt(j(0xf0))/0x3)+parseInt(j(0xde))/0x4+parseInt(j(0xd5))/0x5*(parseInt(j(0xdc))/0x6)+parseInt(j(0xc6))/0x7*(parseInt(j(0xbf))/0x8)+-parseInt(j(0xef))/0x9+parseInt(j(0xb5))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a135c,0x2fbeb));const a135b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a135a=a135b(this,function(){const k=a135d;return a135a['toString']()[k(0xb1)](k(0xe5))[k(0xb8)]()[k(0xcd)](a135a)[k(0xb1)](k(0xe5));});a135a();import a135e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a135d(a,b){const c=a135c();return a135d=function(d,e){d=d-0xad;let f=c[d];return f;},a135d(a,b);}import a135f from'../generators/maka.gen.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['p'];Generator[a135l(0xb9)]({'name':a135l(0xd6),'aliases':aliases,'usage':'maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','shortDesc':a135l(0xeb),'validOpts':[{'name':'baseDir','values':[a135l(0xcb),'components',a135l(0xca),a135l(0xb6)]},{'name':a135l(0xd7),'boolFlag':!![]}],'examples':[a135l(0xae)]},async function(a,b){const m=a135l,c=b[m(0xc7)]?m(0xcc)+b['baseDir']:m(0xc2),d=this[m(0xe3)][m(0xd2)](),e=this[m(0xe3)][m(0xb7)]({'pathParts':[c,b[m(0xe4)],paramCase(b[m(0xcf)]),paramCase(b[m(0xcf)])]}),f=this[m(0xe3)][m(0xdd)]();let g='';return await this['fsi'][m(0xbb)](f,async()=>{const n=m;typeof f['template'][n(0xbd)]===n(0xd8)&&(f['template'][n(0xbd)]=f[n(0xe1)]['html']===n(0xda)?!![]:![],this[n(0xe3)][n(0xce)](n(0xbd),f[n(0xe1)][n(0xbd)]));typeof f[n(0xe1)][n(0xd0)]===n(0xd8)&&(f['template'][n(0xd0)]=f['template'][n(0xd0)]===n(0xda)?!![]:![],this['fsi'][n(0xce)]('test',f[n(0xe1)][n(0xd0)]));typeof f[n(0xe1)][n(0xc9)]===n(0xd8)&&(f[n(0xe1)]['css']=f[n(0xe1)]['css']===n(0xda)?!![]:![],this['fsi'][n(0xce)](n(0xc9),f[n(0xe1)][n(0xc9)]));typeof f['template']['js']==='string'&&(f[n(0xe1)]['js']=f['template']['js']===n(0xda)?!![]:![],this[n(0xe3)][n(0xce)]('js',f['template']['js']));!f[n(0xe8)]&&(f['features']={});!b[n(0xee)]&&!this['fsi']['checkNpmPackage'](n(0xe0))&&(Log['warn'](n(0xea)),this[n(0xe3)][n(0xad)](n(0xe0),{'cwd':d}));const h={'name':pascalCase(b[n(0xcf)]),'myPath':a135e[n(0xf1)](this[n(0xe3)]['pathFromProject']({}),e),'cssCaseName':paramCase(b[n(0xcf)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b[n(0xcf)]),'fileName':paramCase(b[n(0xcf)]),'graphql':f[n(0xdb)][n(0xc8)],'features':f[n(0xe8)],'client':f['engines'][n(0xe2)],'api':f[n(0xdb)][n(0xd9)],'ssr':f['engines'][n(0xbe)],'isStore':b['hasOwnProperty'](n(0xe9)),'isComponent':b[n(0xed)](n(0xaf)),'isLayout':b[n(0xed)](n(0xec)),'withTranslations':f[n(0xe8)][n(0xd1)],'test':f[n(0xdb)]['test'],'theme':f[n(0xdb)][n(0xba)]};f[n(0xe1)]['html']&&await this[n(0xe3)][n(0xe1)]({'srcPath':'template/template.html','destPath':e+'.html','context':h,'config':f});f[n(0xe8)]?.[n(0xb0)]||b[n(0xd7)]?await this['fsi'][n(0xe1)]({'srcPath':n(0xb4),'destPath':e+n(0xc3),'framework':n(0xbc),'context':h,'config':f}):await this[n(0xe3)][n(0xe1)]({'srcPath':'component/component.js','destPath':e+n(0xc3),'framework':n(0xbc),'context':h,'config':f});f[n(0xdb)][n(0xd0)]!=='none'&&await this['fsi'][n(0xe1)]({'srcPath':'test/test.js','destPath':e+'.app-tests.js','framework':n(0xbc),'context':h,'config':f});f[n(0xe1)][n(0xc9)]&&await this[n(0xe3)]['template']({'srcPath':n(0xc4),'destPath':e+n(0xd3),'context':Object[n(0xc1)]({},h,{'className':paramCase(b[n(0xcf)])}),'config':f});f[n(0xdb)][n(0xe2)]!==n(0xbc)&&f[n(0xdb)][n(0xe2)]!=='vanilla'?(f[n(0xe1)][n(0xc9)]&&await this[n(0xe3)][n(0xc0)]({'filePath':e+'.'+f[n(0xdb)]['js'],'content':n(0xe7)+h[n(0xd4)]+'.'+f[n(0xdb)]['html']+n(0xe6)+n(0xe7)+h[n(0xd4)]+'.'+f[n(0xdb)]['css']+'\x27;'}),!f['template'][n(0xc9)]&&await this['fsi'][n(0xc0)]({'filePath':e+'.'+f[n(0xdb)]['js'],'content':n(0xe7)+h[n(0xd4)]+'.'+f['engines']['html']+'\x27;'})):f['template'][n(0xc9)]&&await this[n(0xe3)][n(0xc0)]({'filePath':e+'.'+f[n(0xdb)]['js'],'content':'import\x20\x27./'+h['fileName']+'.'+f[n(0xdb)][n(0xc9)]+'\x27;'});const i=b['dir']?'/'+b[n(0xe4)]+'/':'/';g=''+c+i+h[n(0xd4)]+'/'+h['fileName'],await this[n(0xe3)][n(0xb2)](h['className'],f,g),!b[n(0xee)]&&await a135f[n(0xb3)]('route',[i+b[n(0xcf)]],b);}),g+'.'+f[m(0xdb)]['js'];});function a135c(){const o=['(((.+)+)+)+$','\x27;\x0a','import\x20\x27./','features','store','Updating\x20npm\x20packages\x20...','Generate\x20a\x20page.','layout','hasOwnProperty','root','3283146PoJpht','206211crFxFv','relative','installNpmPackage','maka\x20g:page\x20todos/todos-item','component','withHooks','search','injectTemplateModule','processAndRunGenerator','hook/hook.js','881180qCdtsF','layouts','pathFromApp','toString','create','theme','withValue','react','html','ssr','8KFqbXz','injectAtBeginningOfFile','assign','/imports/ui/pages','.js','template/template.css','26726OgUwsF','1228843qJGtLu','baseDir','graphql','css','pages','hooks','/imports/ui/','constructor','setTemplate','resourceName','test','withTranslations','findAppDirectory','.css','fileName','1595NtHQTh','page','withHook','string','api','true','engines','3798YhHdlK','getMakaProjectConfig','211008lTQNLx','2GhVsuT','ramda','template','client','fsi','dir'];a135c=function(){return o;};return a135c();}
@@ -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 a136p=a136d;function a136d(a,b){const c=a136c();return a136d=function(d,e){d=d-0x1cd;let f=c[d];return f;},a136d(a,b);}(function(a,b){const m=a136d,c=a();while(!![]){try{const d=parseInt(m(0x1df))/0x1+parseInt(m(0x1d2))/0x2*(parseInt(m(0x1d6))/0x3)+-parseInt(m(0x1d3))/0x4*(-parseInt(m(0x1db))/0x5)+-parseInt(m(0x1dc))/0x6+parseInt(m(0x1da))/0x7+-parseInt(m(0x1ed))/0x8*(-parseInt(m(0x1ef))/0x9)+-parseInt(m(0x1de))/0xa*(parseInt(m(0x1f1))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a136c,0x2e7c1));const a136b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a136d;if(c){const e=c[n(0x1d4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a136a=a136b(this,function(){const o=a136d;return a136a[o(0x1f0)]()[o(0x1e8)](o(0x1e7))[o(0x1f0)]()['constructor'](a136a)[o(0x1e8)]('(((.+)+)+)+$');});a136a();import{paramCase,pascalCase}from'change-case';function a136c(){const s=['publish','appPathPrefix','fsi','globalPublish','8gmWvVW','Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','3309183WlCoVh','toString','1130426gkVyea','getMakaProjectConfig','maka\x20g:publish\x20todos','baseDir','create','engines','/imports/ui/','2VtgRMc','1028tXvrXQ','apply','imports','684219vMDaLX','injectAtEndOfFile','template','resourceName','91588skKKGV','720poMqdj','67254uDbHTk','error','80YaSSlI','377886cHHoYD','withValue','maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','pathFromApp','dir','index.','import\x20\x27./publications','exit','(((.+)+)+)+$','search'];a136c=function(){return s;};return a136c();}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a136p(0x1cf)]({'name':a136p(0x1e9),'aliases':['p'],'usage':a136p(0x1e1),'shortDesc':a136p(0x1ee),'validOpts':['force',a136p(0x1ec)],'examples':[a136p(0x1cd)]},async function(a,b){const q=a136p;try{const c=b['force']||![],d=b[q(0x1ce)]?q(0x1d1)+b['baseDir']:'/imports/startup/server/publications',f=this['fsi'][q(0x1f2)](),g=paramCase(b['resourceName']),h=this[q(0x1eb)]['pathFromApp']({'pathParts':[d,b[q(0x1e3)],'',g]});let i='js';f[q(0x1d0)]['js']==='tsx'&&(i='ts');await this[q(0x1eb)][q(0x1e0)](f,async()=>{const r=q,l={'name':b[r(0x1d9)],'collection':pascalCase(b[r(0x1d9)]),'noRename':!![],'globalPublish':b[r(0x1ec)]};await this[r(0x1eb)][r(0x1d8)]({'srcPath':'publish/publish.js','destPath':h+'.'+i,'context':l,'config':f,'force':c});});const j=this[q(0x1eb)][q(0x1e2)]({'pathParts':[q(0x1d5),'startup','server',b[q(0x1ea)],q(0x1e4)+f['engines']['js']]}),k=b['dir']?'/'+b['dir']+'/':'/';return await this[q(0x1eb)][q(0x1d7)]({'filePath':j,'content':q(0x1e5)+k+g+'\x27;'}),h+'.'+i;}catch(l){Log[q(0x1dd)](l),process[q(0x1e6)](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(0x123))/0x1*(parseInt(y(0x155))/0x2)+-parseInt(y(0x136))/0x3*(parseInt(y(0x139))/0x4)+parseInt(y(0x13d))/0x5*(-parseInt(y(0x147))/0x6)+-parseInt(y(0x144))/0x7*(parseInt(y(0x163))/0x8)+-parseInt(y(0x13c))/0x9+-parseInt(y(0x137))/0xa*(parseInt(y(0x14d))/0xb)+parseInt(y(0x15f))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a137c,0x42728));const a137b=(function(){let a=!![];return function(b,c){const d=a?function(){const z=a137d;if(c){const e=c[z(0x14a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a137a=a137b(this,function(){const A=a137d;return a137a['toString']()[A(0x12e)](A(0x148))['toString']()[A(0x173)](a137a)[A(0x12e)](A(0x148));});a137a();import a137e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a137c(){const J=['error','search','cwd','Valid\x20options\x20are:\x20','Route\x20','/imports/ui/pages','indexOf','Could\x20not\x20find\x20a\x20suitable\x20location\x20to\x20enable\x20this\x20route.\x20\x20Please\x20inspect\x20','route/route.js','12ESkkFr','1670GcCjcp','PrivateLayout','82672bPmIRR','/imports/ui/','map','3423654wdMdcv','5xpCawn','</Router>','warn','const\x20privateRoutes\x20=\x20(<>','<Router','split','\x0a\x09\x09','14LwMirB','maka\x20g:route\x20todosEdit\x20todos/:id/edit','rewriteDestinationPathForEngine','1129410aWzYjs','(((.+)+)+)+$','config','apply','startup','maka\x20g:route\x20usersShow\x20users/:id/show\x20--layout\x20userView','1320CAwsrZ','injectIntoFile','Adding\x20route\x20','readFileLines','routes.js','pages','url','filter','1870kZfJyq','\x20to\x20','dir','client','components','ssr','true','pathFromApp','resourceName','Invalid\x20directory\x20option\x20\x22','13168128FBnZZQ','pathFromProject','includes','private','544232abzuhP','layout','fsi','fileContainsString','join','info','replace','MasterLayout','layouts','templateName','maka\x20g:route\x20todosIndex\x20todos','withTranslations','maka\x20{generate,\x20g}:{route,\x20r}\x20[path/]<name>','imports','Scaffolding\x20for\x20a\x20Route.','templateContent','constructor','const\x20publicRoutes\x20=\x20(<>','19FCXJDZ','react','maka\x20g:route\x20pages/about','newForm','engines','<Route','length','hooks','route','baseDir'];a137c=function(){return J;};return a137c();}function a137d(a,b){const c=a137c();return a137d=function(d,e){d=d-0x123;let f=c[d];return f;},a137d(a,b);}import{UsageError}from'../error.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['r'];Generator['create']({'name':a137B(0x12b),'aliases':aliases,'validOpts':[a137B(0x162),a137B(0x164),'only',a137B(0x12f),a137B(0x149),'root','withHook',a137B(0x153),'baseDir'],'usage':a137B(0x16f),'shortDesc':a137B(0x171),'examples':[a137B(0x16d),a137B(0x145),a137B(0x14c),'maka\x20g:route\x20pages/lists/listIndex\x20lists',a137B(0x125)]},async function(a,b){const C=a137B;try{const c=[C(0x12a),C(0x159),C(0x152),C(0x16b)];if(b[C(0x12c)]&&!c['includes'](b[C(0x12c)])){Log['error'](C(0x15e)+b[C(0x12c)]+'\x22'),Log[C(0x12d)](C(0x130)+c[C(0x167)](',\x20'));throw new UsageError();}const d=this['fsi']['getMakaProjectConfig']();await this[C(0x165)]['withValue'](d,async()=>{const D=C,f=b[D(0x162)]??![];let g=b[D(0x15d)][D(0x142)]('/')['pop']();if(!g){Log['error']('Please\x20specify\x20a\x20name\x20for\x20the\x20route.');throw new UsageError();}g=pascalCase(g);let h=b[D(0x153)]?'/'+b[D(0x153)]:'/'+b[D(0x15d)];a['length']>0x1&&(h='/'+a[D(0x154)](function(n){return n!=='/';})['join']('/')['toLowerCase']());h=h[D(0x169)](/\/\//g,'/');b['layout']&&(b[D(0x164)]=camelCase(b['layout']));const i=b[D(0x12c)]?D(0x13a)+b[D(0x12c)]:D(0x132),j=a137e['join'](i,b[D(0x157)],g,paramCase(g)),k={'name':g,'fileCase':paramCase(g),'camelCaseName':camelCase(g),'url':h,'layout':b[D(0x164)]||D(0x16a),'templatePath':j,'templateName':pascalCase(g),'client':d[D(0x127)][D(0x158)],'newForm':![],'withTranslations':d['features'][D(0x16e)]};f&&(k[D(0x164)]=D(0x138));let l,m;if(d[D(0x127)][D(0x158)]==='react'){if(d[D(0x127)][D(0x15a)]===D(0x15b)){const r=this[D(0x165)][D(0x15c)]({'pathParts':[D(0x170),D(0x14b),'lib',D(0x151)]});l=this[D(0x165)][D(0x146)]({'pathParts':[r],'config':d});}else{const s=this[D(0x165)][D(0x15c)]({'pathParts':[D(0x170),D(0x14b),'client',D(0x151)]});l=this[D(0x165)][D(0x146)]({'pathParts':[s],'config':d});}const n=await this[D(0x165)][D(0x166)](l,g);if(n){Log[D(0x13f)](D(0x131)+g+'\x20already\x20exists.\x20Skipping.');return;}else{const t=this['fsi'][D(0x160)](l);Log[D(0x168)](D(0x14f)+g+D(0x156)+l['replace'](t,''));}const o=this[D(0x165)][D(0x150)](l)[D(0x13b)]((u,v)=>{return u['includes']('import\x20*\x20as\x20Component\x20from\x20\x27./templates\x27;')?v+0x1:null;})['filter'](u=>u!==null);let p=this[D(0x165)][D(0x150)](l)[D(0x13b)]((u,v)=>{const E=D;return u[E(0x161)](E(0x174))?v+0x1:null;})[D(0x154)](u=>u!==null),q=this[D(0x165)][D(0x150)](l)['map']((u,v)=>{const F=D;return u[F(0x161)]('const\x20privateRoutes\x20=\x20(<>')?v+0x1:null;})['filter'](u=>u!==null);p[D(0x129)]>0x0&&q[D(0x129)]>0x0&&(k[D(0x126)]=!![]);m=this['fsi'][D(0x172)]({'srcPath':D(0x135),'framework':D(0x124),'context':k,'config':d});if(p[D(0x129)]>0x0||q[D(0x129)]>0x0){this[D(0x165)]['injectAfterLineNumber']({'filePath':l,'content':m,'lineNumber':o[0x0]});if(f&&q[D(0x129)]>0x0)q=this[D(0x165)][D(0x150)](l)[D(0x13b)]((u,v)=>{const G=D;return u['includes'](G(0x140))?v+0x1:null;})[D(0x154)](u=>u!==null),this[D(0x165)]['injectAfterLineNumber']({'filePath':l,'content':'\x09{'+k[D(0x16c)]+'}','lineNumber':q[0x0]});else p[D(0x129)]>0x0?(p=this['fsi']['readFileLines'](l)['map']((u,v)=>{const H=D;return u[H(0x161)](H(0x174))?v+0x1:null;})[D(0x154)](u=>u!==null),this['fsi']['injectAfterLineNumber']({'filePath':l,'content':'\x09{'+k[D(0x16c)]+'}','lineNumber':p[0x0]})):Log['warn'](D(0x134)+l);}else{const u=this[D(0x165)]['readFileLines'](l)[D(0x13b)](x=>{const I=D;return x[I(0x161)]('\x22*\x22');}),v=u[D(0x133)](!![])>-0x1,w=v?D(0x128):D(0x13e);await this[D(0x165)][D(0x14e)]({'filePath':l,'content':D(0x143)+m+D(0x143),'begin':D(0x141),'end':w});}}else{if(d['engines'][D(0x158)]==='vanilla'){const x=this[D(0x165)]['pathFromApp']({'pathParts':['imports',D(0x14b),D(0x158),D(0x151)]});l=this[D(0x165)]['rewriteDestinationPathForEngine']({'pathParts':[x],'config':d}),m=this[D(0x165)][D(0x172)]({'srcPath':D(0x135),'context':k}),await this[D(0x165)]['injectAtEndOfFile']({'filePath':l,'content':'\x0a'+m});}}});}catch(f){Log[C(0x12d)](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(0x108))/0x1*(parseInt(j(0x11e))/0x2)+parseInt(j(0x114))/0x3+-parseInt(j(0x113))/0x4*(-parseInt(j(0x111))/0x5)+parseInt(j(0x10a))/0x6+-parseInt(j(0x117))/0x7*(parseInt(j(0x127))/0x8)+-parseInt(j(0x11c))/0x9*(-parseInt(j(0x109))/0xa)+parseInt(j(0x11b))/0xb*(-parseInt(j(0x12b))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a138c,0x67769));const a138b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a138d;if(c){const e=c[k(0x126)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a138a=a138b(this,function(){const l=a138d;return a138a[l(0x11d)]()[l(0x124)]('(((.+)+)+)+$')[l(0x11d)]()['constructor'](a138a)[l(0x124)](l(0x10d));});function a138d(a,b){const c=a138c();return a138d=function(d,e){d=d-0x106;let f=c[d];return f;},a138d(a,b);}function a138c(){const p=['5465673ifdnkQ','toString','804776VcUmux','tsx','create','error','Generate\x20a\x20service\x20to\x20run\x20within\x20your\x20meteor\x20application.','template','search','winston','apply','19616WGZrKh','lib','Installing\x20winston','winston\x20setimmediate','708LmgskB','installNpmPackage','withValue','1mCqvFY','10JiGZCN','3932154BuitWP','fsi','getMakaProjectConfig','(((.+)+)+)+$','pathFromApp','imports','startup','13970GFYStK','maka\x20g:svc\x20service-logger\x20--type=logger','1184rROMQK','1367922WTDdOb','services','logger','973aqaKrF','svc','type','resourceName','257037OkytLj'];a138c=function(){return p;};return a138c();}a138a();import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a138m(0x120)]({'name':'service','aliases':[a138m(0x118)],'usage':'maka\x20{generate,\x20g}:{service}\x20<resource-name>','shortDesc':a138m(0x122),'requiredOpts':[{'name':a138m(0x119),'values':[a138m(0x116)]}],'validOpts':[],'maxArgLength':0x1,'examples':[a138m(0x112)]},async function(a,b){const n=a138m;try{const c=this[n(0x10b)][n(0x10c)]();await this['fsi'][n(0x107)](c,async()=>{const o=n,d=this[o(0x10b)]['pathFromApp']({}),f=paramCase(b[o(0x11a)]),g={'name':pascalCase(b[o(0x11a)]),'fileName':f,'camelCase':camelCase(b[o(0x11a)]),'type':b[o(0x119)],'engine':c['engines']['js'],'noRename':!![]};let h='js';c['engines']['js']===o(0x11f)&&(h='ts');if(b['type']===o(0x116)){!this['fsi']['checkNpmPackage'](o(0x125))&&await this['fsi'][o(0x106)](o(0x12a),{'cwd':d,'msg':o(0x129)});const i=this[o(0x10b)][o(0x10e)]({'pathParts':[o(0x10f),o(0x110),o(0x128),o(0x115),f+'.'+h]});await this[o(0x10b)][o(0x123)]({'srcPath':'service/logger/logger.js','destPath':i,'context':g,'config':c});}});}catch(d){Log[n(0x121)](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(0xce))/0x1+parseInt(f(0xc6))/0x2*(parseInt(f(0xc7))/0x3)+parseInt(f(0xcd))/0x4+parseInt(f(0xcb))/0x5+-parseInt(f(0xca))/0x6*(parseInt(f(0xc8))/0x7)+parseInt(f(0xcf))/0x8+-parseInt(f(0xc2))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a139c,0xacb97));var a139b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a139d;if(c){var e=c[g(0xc3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a139a=a139b(this,function(){var h=a139d;return a139a[h(0xcc)]()['search'](h(0xc9))[h(0xcc)]()[h(0xc4)](a139a)[h(0xc5)](h(0xc9));});a139a();import'./translation.js';function a139d(a,b){var c=a139c();return a139d=function(d,e){d=d-0xc2;var f=c[d];return f;},a139d(a,b);}function a139c(){var i=['apply','constructor','search','123268qmyfUf','12TMLOII','392GfZUJp','(((.+)+)+)+$','66120PQsqBU','5608100ZbAcyu','toString','3008664rmyJPR','1309295ijhGSa','10887616wLIzCT','7626420alRICt'];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
+ const a140l=a140d;function a140d(a,b){const c=a140c();return a140d=function(d,e){d=d-0x1ed;let f=c[d];return f;},a140d(a,b);}function a140c(){const o=['template','service','getGlobalConfig','search','16dPUfzR','132gNvVsD','991322ByvHkF','1Lrdkzg','withValue','maka\x20{generate,\x20g}:sslconfig','fsi','1225032BYdWHF','apply','error','join','toString','5533480nPAxIH','getMakaProjectConfig','830vgAIaR','52158XhNqXu','create','env','sslconfig','appName','(((.+)+)+)+$','7gyZQQf','11puxAOP','_keys','getAppConfigPath','Generate\x20a\x20new\x20openssl\x20config\x20file','9172CUWShd','constructor','239616Leymef','2057220hrXixP','maka\x20g:sslconfig\x20--env\x20dev'];a140c=function(){return o;};return a140c();}(function(a,b){const i=a140d,c=a();while(!![]){try{const d=-parseInt(i(0x1ef))/0x1*(parseInt(i(0x1ee))/0x2)+parseInt(i(0x1f3))/0x3+parseInt(i(0x206))/0x4*(-parseInt(i(0x1fa))/0x5)+parseInt(i(0x1fb))/0x6*(-parseInt(i(0x201))/0x7)+parseInt(i(0x20f))/0x8*(parseInt(i(0x209))/0x9)+-parseInt(i(0x1f8))/0xa*(-parseInt(i(0x202))/0xb)+parseInt(i(0x1ed))/0xc*(-parseInt(i(0x208))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a140c,0x50d64));const a140b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a140d;if(c){const e=c[j(0x1f4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a140a=a140b(this,function(){const k=a140d;return a140a[k(0x1f7)]()[k(0x20e)](k(0x200))[k(0x1f7)]()[k(0x207)](a140a)['search'](k(0x200));});a140a();import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';import a140e from'path';Generator[a140l(0x1fc)]({'name':a140l(0x1fe),'usage':a140l(0x1f1),'shortDesc':a140l(0x205),'noNeedResource':!![],'requiredOpts':[a140l(0x1fd)],'examples':[a140l(0x20a)],'validOpts':[]},async function(a,b){const m=a140l;try{const c=await this[m(0x1f2)][m(0x1f9)](),d=await this[m(0x1f2)][m(0x20d)](),f=this[m(0x1f2)][m(0x204)](b['env']),g=a140e[m(0x1f6)](f,m(0x203),'openssl.conf');await this['fsi'][m(0x1f0)](c,async()=>{const n=m,h={'app':d[n(0x1ff)],'noRename':!![]};await this[n(0x1f2)][n(0x20b)]({'srcPath':'openssl/openssl.conf','destPath':g,'framework':n(0x20c),'context':h,'config':c});});}catch(h){Log[m(0x1f5)](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
+ const a141z=a141d;function a141d(a,b){const c=a141c();return a141d=function(d,e){d=d-0x1db;let f=c[d];return f;},a141d(a,b);}(function(a,b){const x=a141d,c=a();while(!![]){try{const d=-parseInt(x(0x20c))/0x1*(parseInt(x(0x207))/0x2)+parseInt(x(0x212))/0x3*(-parseInt(x(0x1ea))/0x4)+parseInt(x(0x1eb))/0x5*(-parseInt(x(0x209))/0x6)+-parseInt(x(0x1ed))/0x7+-parseInt(x(0x202))/0x8*(-parseInt(x(0x21e))/0x9)+parseInt(x(0x21c))/0xa+-parseInt(x(0x1e9))/0xb*(-parseInt(x(0x20e))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a141c,0x4376d));const a141b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a141a=a141b(this,function(){const y=a141d;return a141a[y(0x1f1)]()[y(0x1e7)]('(((.+)+)+)+$')[y(0x1f1)]()[y(0x208)](a141a)[y(0x1e7)]('(((.+)+)+)+$');});a141a();function a141c(){const C=['1755haZteX','i18n/index.js','engines','features.withTranslations','maka\x20{generate,\x20g}:translation','maka\x20g:translation\x20--lang=fr','create','fsi','imports','Generate\x20a\x20new\x20locale\x20translation','injectAtBeginningOfFile','error','translations','client','findAppDirectory','search','default\x20as\x20','11439604JLcQHk','14012azkNim','5dphHDA','i18n.js','853363aOuFPi','Locale\x20already\x20defined:\x20','server','grep','toString','lib','getMakaProjectConfig','withValue','services','import\x20\x27../lib/services/translations/i18n\x27;','index.js','injectAtEndOfFile','\x20}\x20from\x20\x27./','setProjectConfig','checkNpmPackage','.js','appName','maka\x20g:translation\x20--lang=en\x20(default)','template','i18n/i18n.js','import\x20\x27../lib/services/translations/i18n\x27;\x0a','2336QIduGs','startup','pathFromApp','Verifying\x20npm\x20package\x20requirements:\x20i18next\x20...','index.','276SopZMQ','constructor','2304798xseNUz','rewriteDestinationPathForEngine','readFileSync','3763LJUdWy','getGlobalConfig','12BVMMAf','ssr','isFile','warn','207NKJtCH','true','i18next','lang','i18next\x20i18next-browser-languagedetector\x20react-i18next','locales','service','Locale\x20already\x20exported:\x20','export\x20{\x20default\x20as\x20','maka\x20g:translation\x20--lang=de','4464720GJMLXb','translation'];a141c=function(){return C;};return a141c();}import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';import a141e from'fs';Generator[a141z(0x1de)]({'name':a141z(0x21d),'usage':a141z(0x1dc),'aliases':['t'],'noNeedResource':!![],'requiredOpts':[{'name':a141z(0x215),'boolFlag':![],'regex':/^[a-z]{2}$/}],'shortDesc':a141z(0x1e1),'description':'\x0a\x20\x20Generate\x20a\x20new\x20locale\x20translation\x20file.\x0a\x0a\x20\x20\x20\x20--lang\x20\x20The\x20language\x20code\x20for\x20the\x20new\x20locale\x20file.\x20(i.e.\x20en,\x20fr,\x20de)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20and\x20must\x20be\x20the\x20two\x20character\x20language\x20code.\x0a\x20\x20','examples':[a141z(0x1fe),a141z(0x1dd),a141z(0x21b)],'validOpts':[]},async function(a,b){const A=a141z;try{const c=this['fsi'][A(0x1f3)](),d=this[A(0x1df)][A(0x20d)](),f=this[A(0x1df)][A(0x1e6)]();await this[A(0x1df)][A(0x1f4)](c,async()=>{const B=A;try{!b[B(0x215)]&&(b['lang']='en');!b['root']&&!this[B(0x1df)][B(0x1fb)](B(0x214))&&(Log[B(0x211)](B(0x205)),this[B(0x1df)]['installNpmPackage'](B(0x216),{'cwd':f}),this[B(0x1df)][B(0x1fa)](B(0x1db),!![]));const g=this[B(0x1df)]['pathFromApp']({'pathParts':[B(0x1e0),B(0x203),B(0x1e5),B(0x1f7)]}),h=this[B(0x1df)]['rewriteDestinationPathForEngine']({'pathParts':[g],'config':c}),i=this[B(0x1df)][B(0x1f0)](a141e[B(0x20b)](h)[B(0x1f1)](),B(0x1f6))[0x0]&&!![];if(c['engines'][B(0x20f)]===B(0x213)){!i&&this[B(0x1df)][B(0x1e2)]({'filePath':h,'content':B(0x201)});const t=this['fsi'][B(0x204)]({'pathParts':[B(0x1e0),B(0x203),B(0x1ef),'index.js']}),u=this['fsi']['rewriteDestinationPathForEngine']({'pathParts':[t],'config':c}),v=this['fsi']['grep'](a141e[B(0x20b)](u)[B(0x1f1)](),B(0x1f6))[0x0]&&!![];!v&&this['fsi'][B(0x1e2)]({'filePath':u,'content':B(0x201)});}else!i&&this['fsi'][B(0x1e2)]({'filePath':h,'content':'import\x20\x27../lib/services/translations/i18n\x27;\x0a'});const j={'app':d[B(0x1fd)],'config':c},k=this[B(0x1df)][B(0x204)]({'pathParts':['imports',B(0x203),'lib',B(0x1f5),'translations',B(0x1ec)]}),l=this[B(0x1df)]['isFile'](this[B(0x1df)][B(0x20a)]({'pathParts':[k],'config':c}));!l&&await this[B(0x1df)]['template']({'srcPath':B(0x200),'destPath':k,'framework':'service','context':j,'config':c});const m=this['fsi'][B(0x204)]({'pathParts':[B(0x1e0),'startup',B(0x1f2),B(0x1f5),B(0x1e4),B(0x217),b['lang']+B(0x1fc)]}),n=this[B(0x1df)][B(0x20a)]({'pathParts':[m],'config':c}),o=this['fsi']['isFile'](n);!o?await this['fsi'][B(0x1ff)]({'srcPath':'i18n/locales.js','destPath':m,'framework':'service','context':j,'config':c}):Log['warn'](B(0x1ee)+n);const p=this[B(0x1df)]['pathFromApp']({'pathParts':[B(0x1e0),B(0x203),'lib',B(0x1f5),B(0x1e4),B(0x217),B(0x206)+c[B(0x220)]['js']]}),q=this[B(0x1df)][B(0x20a)]({'pathParts':[p],'config':c}),r=this[B(0x1df)][B(0x210)](q);!r&&await this[B(0x1df)][B(0x1ff)]({'srcPath':B(0x21f),'destPath':p,'framework':B(0x218),'context':j,'config':c});const s=this[B(0x1df)][B(0x1f0)](a141e[B(0x20b)](p)['toString'](),B(0x1e8)+b['lang'])[0x0]&&!![];!s?await this['fsi'][B(0x1f8)]({'filePath':p,'content':B(0x21a)+b[B(0x215)]+B(0x1f9)+b['lang']+'\x27;'}):Log[B(0x211)](B(0x219)+p);}catch(w){Log[B(0x1e3)](w),process['exit'](0x1);}});}catch(g){Log[A(0x1e3)](g),process['exit'](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 a142m=a142d;(function(a,b){const j=a142d,c=a();while(!![]){try{const d=-parseInt(j(0xe0))/0x1*(parseInt(j(0xf2))/0x2)+parseInt(j(0xf1))/0x3*(-parseInt(j(0xf5))/0x4)+-parseInt(j(0xe7))/0x5+-parseInt(j(0xe5))/0x6*(-parseInt(j(0xe3))/0x7)+parseInt(j(0xf8))/0x8*(-parseInt(j(0xf3))/0x9)+-parseInt(j(0xec))/0xa*(-parseInt(j(0xfd))/0xb)+-parseInt(j(0xfc))/0xc*(-parseInt(j(0xf0))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a142c,0x29150));function a142c(){const n=['MAKA_COMMAND_PATH','13YOaxnB','383781vEAEQo','303586HUjjxP','152883RTasaK','apply','4rbDzkz','floor','totalmem','40PGOlWI','argv','url','--max-old-space-size=','2684076FVPOiI','22aZjvZN','env','1UHSddx','search','toString','665KikRLw','BROWSERSLIST_IGNORE_OLD_DATA','7782kqQziY','slice','147135SUOXuC','stringify','(((.+)+)+)+$','TOOL_NODE_FLAGS','camelizeKeys','1077330muHXNn','dirname','constructor'];a142c=function(){return n;};return a142c();}const a142b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a142d;if(c){const e=c[k(0xf4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a142a=a142b(this,function(){const l=a142d;return a142a[l(0xe2)]()[l(0xe1)](l(0xe9))[l(0xe2)]()[l(0xee)](a142a)[l(0xe1)](l(0xe9));});a142a();import a142e from'minimist';import a142f from'os';import a142g from'path';import a142h from'humps';import a142i from'./commands/maka.cmd.js';import'./commands/_index.js';import'./generators/_index.js';import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta[a142m(0xfa)]),__dirname=a142g[a142m(0xed)](__filename);global[a142m(0xef)]=__dirname;const total_memory=a142f[a142m(0xf7)](),total_mem_in_kb=total_memory/0x400;let total_mem_in_mb=total_mem_in_kb/0x400;total_mem_in_mb=Math[a142m(0xf6)](total_mem_in_mb),process['env'][a142m(0xea)]=a142m(0xfb)+total_mem_in_mb,process[a142m(0xfe)][a142m(0xe4)]='1',process['env']['NODE_NO_WARNINGS']='1';const argv=a142e(process[a142m(0xf9)][a142m(0xe6)](0x2)),args=argv['_'],deepCopyArgv=JSON['parse'](JSON[a142m(0xe8)](argv));function a142d(a,b){const c=a142c();return a142d=function(d,e){d=d-0xe0;let f=c[d];return f;},a142d(a,b);}delete deepCopyArgv['_'];const opts=a142h[a142m(0xeb)](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
+ const a143L=a143d;(function(a,b){const I=a143d,c=a();while(!![]){try{const d=-parseInt(I(0x20b))/0x1+parseInt(I(0x22e))/0x2+parseInt(I(0x1fc))/0x3+-parseInt(I(0x248))/0x4*(-parseInt(I(0x204))/0x5)+-parseInt(I(0x235))/0x6*(-parseInt(I(0x21f))/0x7)+-parseInt(I(0x211))/0x8+-parseInt(I(0x24b))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a143c,0x875a9));const a143b=(function(){let a=!![];return function(b,c){const d=a?function(){const J=a143d;if(c){const e=c[J(0x234)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a143a=a143b(this,function(){const K=a143d;return a143a[K(0x1f3)]()['search']('(((.+)+)+)+$')['toString']()['constructor'](a143a)[K(0x22a)](K(0x232));});a143a();import a143e from'path';function a143d(a,b){const c=a143c();return a143d=function(d,e){d=d-0x1f0;let f=c[d];return f;},a143d(a,b);}import a143f from'os';import a143g from'fs';const homeDir=a143f[a143L(0x208)]();import{Docker}from'./tools/docker/docker.class.js';import{FSI}from'./tools/fsi/fsi.class.js';import{Log}from'./tools/log/log.class.js';import{Actions}from'./tools/actions/actions.class.js';import{UsageError}from'./error.js';export class Tool{['docker'];[a143L(0x24a)];[a143L(0x233)];[a143L(0x1fe)];[a143L(0x1f9)];[a143L(0x236)];constructor(){const M=a143L;this[M(0x222)]=new Docker(),this['fsi']=new FSI();}[a143L(0x227)](a){const N=a143L;return a[N(0x23c)](0x0);}[a143L(0x240)](a,b){const O=a143L,c=this[O(0x217)](b),d={...a};for(const e of c){const f=this['getShortName'](e[O(0x1fe)]);a[f]&&(d[e[O(0x1fe)]]=a[f],delete d[f]);}return d;}[a143L(0x217)](a){const P=a143L;if(a[P(0x22d)](b=>typeof b===P(0x1f1)))return a[P(0x216)](b=>({'name':b}));return a;}[a143L(0x207)](a){const Q=a143L,b=[this[Q(0x1fe)]][Q(0x226)](this[Q(0x233)][Q(0x23a)]||[]);return this[Q(0x1f9)]&&b['push'](this[Q(0x1f9)]),b[Q(0x221)](a);}[a143L(0x24c)](){const R=a143L,a=this[R(0x24a)][R(0x1f8)]();return a!==![]?!![]:![];}async['validateUserIsLoggedIn'](){const S=a143L,a=await this[S(0x24a)][S(0x242)]();return a?.[S(0x201)]&&a?.[S(0x201)]!==S(0x215)?!![]:![];}[a143L(0x246)](){const T=a143L,a=process[T(0x202)]===T(0x22f);if(a){if(!a143g[T(0x21e)](a143e['join'](homeDir,T(0x1fd),T(0x1ff),T(0x214))))return![];}else{if(!a143g[T(0x21e)](a143e['join'](homeDir,'.meteor')))return![];}return!![];}['validateEngines'](a){const U=a143L,b=this[U(0x24a)]['getMakaProjectConfig'](),c=b[U(0x206)],d=Object[U(0x230)](a);if(d[U(0x22c)]>0x0)for(const e of d){const f=c[e];if(f!==a[e]){Log['error'](U(0x21d)+e+U(0x1f2)+a[e]+'\x20installed\x20to\x20use\x20this\x20command.');throw UsageError;}}}async[a143L(0x203)](a,b,c){const V=a143L,{requiredOpts:d,validArgs:e,validOpts:f,noNeedResource:g}=c,h=Object[V(0x230)](b);if(h[V(0x221)](V(0x228))&&b[V(0x228)]===undefined&&!g){const m=await Actions['ask'](V(0x241));b['resourceName']=m;}let i=[],j=b;if(d){i=this[V(0x217)](d),j=this[V(0x240)](b,i);if(i&&i?.[V(0x22c)]>0x0)for(const n of i){const {name:o,values:p,regex:q}=n;if(!Object[V(0x230)](j)['includes'](o)){if(o===V(0x20a)){const r=this['fsi'][V(0x20e)]()[V(0x22b)](t=>t!==V(0x245)),s=await Actions[V(0x233)]({'type':V(0x210),'name':V(0x20a),'message':V(0x20c),'choices':r});b[V(0x20a)]=s[V(0x20a)];}else{const t=p;if(t){const u=await Actions['options']({'type':V(0x210),'name':o,'message':V(0x1f5)+o,'choices':p});b[o]=u[o];}else{if(q){const v=await Actions[V(0x212)]('Please\x20provide\x20a\x20value\x20for\x20'+o);if(v['match'](q))b[o]=v;else{Log['error']('Invalid\x20value\x20for\x20'+o+':\x20'+v);throw new UsageError();}}else{const w=await Actions[V(0x212)](V(0x247)+o);b[o]=w;}}}}else{const x=j[o];if(p&&!p[V(0x221)](x)){Log[V(0x21b)](V(0x200)+o+':\x20'+x);throw new UsageError();}}}}let k=this[V(0x217)](f),l=b;if(k&&Object[V(0x230)](k)?.['length']>0x0){k=k[V(0x226)](i||[]),k[V(0x224)]({'name':V(0x228),'hidden':!![]}),k['push']({'name':V(0x23f),'boolFlag':!![]}),k['push']({'name':V(0x23d),'hidden':!![]}),k[V(0x224)]({'name':V(0x223),'hidden':!![]}),k[V(0x224)]({'name':V(0x23e),'hidden':!![]}),k[V(0x224)]({'name':V(0x229),'hidden':!![]}),l=this[V(0x240)](b,k);for(const y of k){const {name:z,values:A}=y,B=l[z];if(B!==undefined&&(!A||!A[V(0x221)](B))){const C=A;if(C){const D=await Actions[V(0x233)]({'type':V(0x210),'name':z,'message':'Please\x20choose\x20a\x20valid\x20value\x20for\x20'+z,'choices':A});l[z]=D[z];}}if(k[V(0x22c)]>0x0)for(const E of Object[V(0x230)](l)){const F=k[V(0x249)](G=>G[V(0x1fe)]===E);if(!F){Log[V(0x21b)](V(0x21c)+E);throw new UsageError();}}}}if(e&&e?.[V(0x22c)]>0x0)for(const G of e){if(!e[V(0x221)](G)){Log[V(0x21b)](V(0x237)+G);const H=await Actions['ask']('Please\x20provide\x20a\x20valid\x20argument\x20for\x20'+G);a[a[V(0x205)](G)]=H;}}return Object[V(0x209)](j,l);}async[a143L(0x1f4)](a){const W=a143L;try{if(!a)return;const b=await this[W(0x24a)][W(0x242)]();!b&&(Log[W(0x21b)](W(0x23b)),process[W(0x244)](0x1));const c=!b?.[W(0x219)][W(0x221)]('singleLicense')&&!b?.[W(0x219)][W(0x221)](W(0x20d));if(this[W(0x1f6)](a)){const d=W(0x238)+a[W(0x1fe)]+W(0x1fb);if(a['options']['disableAuthCheck'])return;const f=b?.[W(0x1f0)]['includes'](a[W(0x1fe)])||b?.[W(0x1f0)]['includes'](a[W(0x1f9)]||'')||this['options']['isPro'];if(f&&c)throw d;}else{if(this[W(0x21a)](a)){const g=b?.[W(0x239)][W(0x221)](a[W(0x1fe)])||b?.[W(0x239)]['includes'](a[W(0x1f9)]||'');if(g&&c)throw W(0x20f)+a[W(0x1fe)]+W(0x1fb);}}}catch(h){Log[W(0x21b)](h),process['exit'](0x1);}}['isCommand'](a){return'options'in a;}[a143L(0x21a)](a){const X=a143L;return!(X(0x233)in a);}['description'](){const Y=a143L;return this[Y(0x233)][Y(0x1fa)]||this[Y(0x233)]['shortDesc']||Y(0x231);}[a143L(0x220)](){const Z=a143L;return this[Z(0x233)][Z(0x220)]||'NIE';}[a143L(0x1f7)](){const a0=a143L;return this[a0(0x233)][a0(0x1f7)]||a0(0x225);}[a143L(0x218)](){const a1=a143L;return this[a1(0x233)][a1(0x218)]||[];}[a143L(0x23a)](){const a2=a143L;return this[a2(0x233)]['aliases']||a2(0x213);}[a143L(0x243)](){const a3=a143L;return this[a3(0x233)][a3(0x243)]||![];}}function a143c(){const a4=['Invalid\x20value\x20for\x20','user','platform','validateParams','2022380dbyJJB','indexOf','engines','match','homedir','assign','env','198477CYNhHk','Please\x20choose\x20an\x20environment','domainLicense','getAppProjectConfigs','To\x20use\x20this\x20generator,\x20\x22','list','8563016ctSdKu','ask','None','.meteor','guest','map','formatToNamedParam','examples','roles','isGenerator','error','Invalid\x20option:\x20','You\x20must\x20have\x20','existsSync','3520419tjLnlP','shortDesc','includes','docker','cwd','push','No\x20usage\x20provided.','concat','getShortName','resourceName','config','search','filter','length','every','1665282dNguHD','win32','keys','No\x20description\x20provided.','(((.+)+)+)+$','options','apply','12FJNoOA','_handler','Invalid\x20argument:\x20','To\x20use\x20this\x20command,\x20\x22','proGenerators','aliases','License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.meteor/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.','charAt','dir','root','help','remapShortToLong','Please\x20provide\x20a\x20resource\x20name:','getPro','experimental','exit','local','validateMeteorInstall','Please\x20provide\x20a\x20value\x20for\x20','4wtezTn','find','fsi','5471847zlAXnb','validateMakaProject','proCommands','string','\x20version\x20','toString','validateMakaSubscription','Please\x20choose\x20a\x20value\x20for\x20','isCommand','usage','findProjectDirectory','parent','description','\x22,\x20please\x20upgrade\x20to\x20PRO\x20by\x20becoming\x20a\x20pateron\x20@\x20patreon.com/user?u=110174702,\x20then\x20issue:\x20\x27maka\x20login\x27','564885LSXaoG','AppData','name','Local'];a143c=function(){return a4;};return a143c();}
@@ -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 a144j=a144d;function a144c(){const l=['117zCcgFg','29rKYAZz','500552xUpPnl','1859076izpFJQ','confirm','answer','68872iVwbOe','51dPZRTF','3525355JyduBi','22MtzeiY','prompt','search','399847REcjrd','6tmikaw','input','(((.+)+)+)+$','options','toString','18528CkTAPs','2464550tChtIU','apply'];a144c=function(){return l;};return a144c();}(function(a,b){const f=a144d,c=a();while(!![]){try{const d=-parseInt(f(0x186))/0x1*(parseInt(f(0x176))/0x2)+parseInt(f(0x177))/0x3*(parseInt(f(0x182))/0x4)+parseInt(f(0x178))/0x5+parseInt(f(0x17d))/0x6*(parseInt(f(0x17c))/0x7)+parseInt(f(0x187))/0x8*(parseInt(f(0x185))/0x9)+-parseInt(f(0x183))/0xa+-parseInt(f(0x179))/0xb*(-parseInt(f(0x188))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a144c,0xaf8e8));const a144b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a144d;if(c){const e=c[g(0x184)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a144a=a144b(this,function(){const h=a144d;return a144a[h(0x181)]()['search'](h(0x17f))['toString']()['constructor'](a144a)[h(0x17b)](h(0x17f));});function a144d(a,b){const c=a144c();return a144d=function(d,e){d=d-0x176;let f=c[d];return f;},a144d(a,b);}a144a();import a144e from'inquirer';export class Actions{static async['ask'](a,b){const i=a144d,{answer:c}=await a144e[i(0x17a)]({'type':b?'password':i(0x17e),'name':i(0x18a),'message':a});return c;}static async[a144j(0x189)](a,b=![]){const k=a144j,{answer:c}=await a144e[k(0x17a)]({'type':'confirm','name':k(0x18a),'message':a,'default':b});return c;}static async[a144j(0x180)](a){const b=await a144e['prompt'](a);return b;}}
@@ -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 a145r=a145d;(function(a,b){const p=a145d,c=a();while(!![]){try{const d=parseInt(p(0x25c))/0x1+-parseInt(p(0x250))/0x2+parseInt(p(0x28a))/0x3*(parseInt(p(0x21d))/0x4)+parseInt(p(0x1c2))/0x5*(parseInt(p(0x1c7))/0x6)+parseInt(p(0x1d4))/0x7*(parseInt(p(0x1dc))/0x8)+-parseInt(p(0x276))/0x9+-parseInt(p(0x1cf))/0xa*(parseInt(p(0x251))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a145c,0xc8231));const a145b=(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;};}()),a145a=a145b(this,function(){const q=a145d;return a145a[q(0x1c3)]()[q(0x22e)](q(0x24b))[q(0x1c3)]()[q(0x1df)](a145a)[q(0x22e)](q(0x24b));});a145a();function a145c(){const a8=['You\x20have\x20no\x20key-pairs,\x20please\x20create\x20one.\x20(maka\x20aws\x20create-key-pair\x20--env).','KeyName','Would\x20you\x20like\x20to\x20update\x20the\x20ssh.json\x20config\x20file?','ID:\x20','ignore','af-south-1','send','AvailabilityZone','chmod\x20400\x20','UPSERT','listAllEcrRepositories','search','sgPorts','warn','description','eu-south-1','Setting\x20SG\x20ID\x20to:\x20','CidrBlock','error','from','stop','ap-south-2','date','Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','_keys','us-west-2','split','forEach','running','Processing\x20','config/ssh.json','\x20SUBNETID:\x20','AVAILABLE','\x20:\x20','Setting\x20AMI\x20ID\x20to\x20','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','Failed\x20to\x20create\x20repository\x20in\x20','imageId','eu-west-2','Please\x20choose\x20a\x20VPC:\x20[0]\x20','(((.+)+)+)+$','\x22\x20created\x20successfully\x20in\x20','CreationDate','subnet-id','RegistrationPrice','1879628rLKbrv','134893OwJHfY','join','\x20CIDR:\x20','\x20NAME:\x20','\x20DESCRIPTION:\x20','\x20opened!','Created:\x20','confirm','userData','info','cidr','382651jRmHfX','authorizationToken','pem','No\x20instances\x20found','trim','chooseSecurityGroup','sgIds','You\x20will\x20need\x20to\x20update\x20the\x20ssh.json\x20file\x20yourself.','eu-central-1','$metadata','sort','ec2createSG','Could\x20not\x20find\x20hosted\x20zone','repositoryName','me-south-1','deleteKeyPair','Prices','\x20AZONE:\x20','Failed\x20to\x20decode\x20password\x20from\x20authorization\x20token','\x20Error\x20Rason:\x20','writeFileSync','getAppConfigPath','subnetId','key','\x27\x20has\x20been\x20registered\x20successfully.','isFile','27531dWtLif','.pem.txt','tags','You\x20have\x20no\x20instances\x20created\x20by\x20maka-cli.\x20\x20Please\x20reivew\x20your\x20AWS\x20console\x20manually!!!','Error\x20saving\x20pem\x20file,\x20aborting','all','Subnets','includes','Pem\x20key\x20saved\x20to\x20','maka-cli','ap-southeast-4','registerDomain','eu-west-1','\x20ENV:\x20','Key\x20Name:\x20[','amiId','state','listHostedZonesByName','Error\x20creating\x20hosted\x20zone','timeout','4139958bRvOWa','find','ebs','**\x20Available\x20\x20VPCs\x20**','GroupId','exit','x86_64','uri','status','ec2describeInstances','tcp','Timeout\x20while\x20processing\x20','**\x20Available\x20Security\x20Groups\x20**','architecture','sgId','ca-west-1','sa-east-1','ecrCreateRepository','Failed\x20in\x20','name','\x20PUB_IP:\x20','The\x20domain\x20\x27','getMakaProjectConfig','ap-northeast-3','Instances','getTime','655avlTSg','toString','privateIp','Authorization\x20token\x20is\x20missing','ask','54462qJKyGJ','ap-northeast-1','[+]\x20Setting\x20VPC\x20ID\x20to:\x20','eu-north-1','Reservations','ap-east-1','ap-south-1','$response','1870EnDmWQ','No\x20subnets\x20found.','Authorization\x20data\x20is\x20empty','nextToken','pop','7VSgKlX','getSubnetCidr','image-type','vpcId','GroupName','instanceId','UserData','Repository\x20\x22','8832728DfPKpA','UNSUPPORTED','Hosted\x20zone\x20created\x20successfully!','constructor','deleteSecurityGroup','ec2create','maxCount','Port\x20','AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials','desc','file://','ap-southeast-3','httpStatusCode','Error\x20linking\x20EC2\x20to\x20Route\x2053:','us-east-1','HostedZones','subnet','environment','length','\x20Status\x20Code:\x20','region','ingressRule','bright','virtualization-type','No\x20images\x20found.','checkDomainAvailability','us-west-1','Setting\x20Subnet\x20ID\x20to\x20','suggestion','Invalid\x20choice','repositoryUri','...','Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[','Name','listAvailableAMIs','fsi','push','notice','No\x20suitable\x20images\x20found\x20within\x20the\x20last\x2030\x20days.',',\x20URI:\x20','repositories','linkEC2ToRoute53','eu-central-2','success','race','ca-central-1','\x20SGID:\x20','createKeyPair','env','ap-southeast-2','statusCode','publicIp','\x20SG\x20NAME:\x20','VpcId','template','Description','createKeyPairEC2Key','Description:','getSecurityGroups','Web\x20App','map','config','ssh.json','log','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','4eCbmKy','slice','\x20PRIV_IP:\x20','now','minCount','me-central-1'];a145c=function(){return a8;};return a145c();}import a145e from'fs';import a145f from'path';import{execSync}from'child_process';import{Actions}from'../actions/actions.class.js';import{Log}from'../log/log.class.js';import{FSI}from'../fsi/fsi.class.js';import{EC2Client,DescribeInstancesCommand,RunInstancesCommand,TerminateInstancesCommand,CreateKeyPairCommand,AuthorizeSecurityGroupIngressCommand,CreateSecurityGroupCommand,RebootInstancesCommand,DescribeVpcsCommand,DescribeKeyPairsCommand,DeleteKeyPairCommand,DescribeSecurityGroupsCommand,DeleteSecurityGroupCommand,DescribeImagesCommand,DescribeSubnetsCommand}from'@aws-sdk/client-ec2';import{ECRClient,CreateRepositoryCommand,DeleteRepositoryCommand,GetAuthorizationTokenCommand,DescribeRepositoriesCommand}from'@aws-sdk/client-ecr';import{Route53,Route53Client,CreateHostedZoneCommand}from'@aws-sdk/client-route-53';import{Route53Domains,CheckDomainAvailabilityCommand,RegisterDomainCommand,ListPricesCommand}from'@aws-sdk/client-route-53-domains';const client=new EC2Client({}),route53Client=new Route53Client({}),route53=new Route53({}),route53Domains=new Route53Domains({});function a145d(a,b){const c=a145c();return a145d=function(d,e){d=d-0x1b5;let f=c[d];return f;},a145d(a,b);}export class AWS{[a145r(0x1ff)];constructor(){const s=a145r;this[s(0x1ff)]=new FSI();}async[a145r(0x261)](a){const t=a145r;try{const {listIndexId:b,createdSgId:c,sgList:d}=await this[t(0x216)](a);let f='';if(c===''){Log[t(0x201)](t(0x296)),d['forEach'](function(h){const u=t;h[u(0x1bb)]===a?Log[u(0x201)](u(0x226)+h['id']+u(0x210)+h[u(0x1bb)]+'\x20SGID:\x20'+h[u(0x1b6)]):Log[u(0x1f2)]('ID:\x20'+h['id']+u(0x210)+h[u(0x1bb)]+u(0x20a)+h[u(0x1b6)]);});const g=await Actions['ask'](t(0x1fc)+b+']\x20')||b[t(0x1c3)]();d[t(0x23e)](function(h){const v=t;h['id']===parseInt(g)&&(f=h['sgId'],Log[v(0x207)](v(0x233)+f+'\x0a'));});}else f=c,Log[t(0x207)](t(0x233)+f+'\x0a');if(f==='')throw new Error('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');return f;}catch(h){Log['error'](h);throw h;}}async[a145r(0x1fe)](){const w=a145r;let a='';try{const b=new EC2Client({}),c={'Filters':[{'Name':w(0x1b5),'Values':[w(0x290)]},{'Name':w(0x1f3),'Values':['hvm']},{'Name':'root-device-type','Values':[w(0x28c)]},{'Name':w(0x286),'Values':['available']},{'Name':w(0x1d6),'Values':['machine']},{'Name':w(0x231),'Values':['Canonical*Ubuntu*18.04*','Canonical*Ubuntu*20.04*']}]},d=new DescribeImagesCommand(c),{Images:f}=await b['send'](d);if(f&&f[w(0x1ee)]>0x0){const g=new Date(),h=new Date(g['getTime']()-0x1e*0x18*0x3c*0x3c*0x3e8),i=f['filter'](j=>j[w(0x24d)]&&!j[w(0x213)]?.[w(0x27d)](w(0x1dd))&&new Date(j[w(0x24d)])>h)[w(0x218)](j=>({'amiId':j['ImageId'],'desc':j[w(0x213)],'date':j[w(0x24d)]}));if(i[w(0x1ee)]>0x0){i[w(0x266)]((n,o)=>new Date(o['date'])[w(0x1c1)]()-new Date(n[w(0x239)])[w(0x1c1)]());const j=i[w(0x21e)](0x0,0x4),k=j[w(0x218)]((n,o)=>({'id':o,'amiId':n[w(0x285)],'desc':n[w(0x1e5)]}));k[w(0x23e)](n=>{const x=w;Log[x(0x1f2)](x(0x226)+n['id']+'\x20AMIID:\x20'+n[x(0x285)]+x(0x255)+n['desc']);});const l=await Actions[w(0x1c6)](w(0x21c))||'0',m=k[w(0x28b)](n=>n['id']===parseInt(l));if(m)a=m[w(0x285)],Log[w(0x207)](w(0x245)+a+w(0x244)+m['desc']);else throw Log[w(0x235)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');}else throw Log[w(0x235)](w(0x202));}else throw Log[w(0x235)](w(0x1f4));}catch(n){Log['error'](n);}return a;}async['listAvailableSubnets'](){const y=a145r;let a='';try{const b=new EC2Client({}),c={},d=new DescribeSubnetsCommand(c),{Subnets:f}=await b[y(0x229)](d);if(f&&f['length']>0x0){const g=f[y(0x218)]((j,k)=>({'id':k,'cidr':j[y(0x234)],'az':j[y(0x22a)],'subnetId':j['SubnetId']}));g[y(0x23e)](j=>{const z=y;Log[z(0x1f2)](z(0x226)+j['id']+z(0x253)+j[z(0x25b)]+z(0x26d)+j['az']+z(0x242)+j[z(0x272)]);});const h=await Actions[y(0x1c6)](y(0x23a))||'0',i=g[y(0x28b)](j=>j['id']===parseInt(h));if(i)a=i['subnetId'],Log[y(0x207)](y(0x1f7)+a);else throw Log[y(0x235)](y(0x246));}else throw Log[y(0x235)](y(0x1d0));}catch(j){Log['error'](j);}return a;}async[a145r(0x1d5)](a){const A=a145r;try{const b=new EC2Client({}),c={'Filters':[{'Name':A(0x24e),'Values':[a]}]},d=new DescribeSubnetsCommand(c),e=await b[A(0x229)](d);return e[A(0x27c)]&&e[A(0x27c)][A(0x1ee)]>0x0?e['Subnets'][0x0][A(0x234)]||'':'';}catch(f){return Log[A(0x235)](f),'';}}async[a145r(0x1b9)](a){const B=a145r;try{const b=new ECRClient({'region':a[B(0x1f0)]}),c={'repositoryName':a[B(0x1bb)]},d=new CreateRepositoryCommand(c),f=await b['send'](d);return Log['success'](B(0x1db)+a['name']+B(0x24c)+a[B(0x1f0)]+'.'),f;}catch(g){Log[B(0x235)](B(0x247)+a[B(0x1f0)]+':\x20'+g);throw g;}}async[a145r(0x22d)](a){const C=a145r,b=['us-east-1','us-east-2',C(0x1f6),C(0x23c),C(0x1cd),C(0x1bf),'ap-northeast-2','ap-southeast-1',C(0x20d),C(0x1c8),C(0x209),C(0x264),C(0x282),C(0x249),'eu-west-3',C(0x1ca),C(0x1b8),C(0x228),C(0x1cc),C(0x238),C(0x1e7),C(0x280),C(0x1b7),C(0x232),'eu-south-2',C(0x206),C(0x26a),C(0x222),'il-central-1'],c=[C(0x1ea),'us-east-2',C(0x1f6),'us-west-2'],d=a===C(0x27b)?b:a?a['split'](','):c;let f=[];const g=Log['withSpinner']();for(const h of d){g['start'](C(0x240)+h[C(0x260)]()+C(0x1fb));const i=new ECRClient({'region':h[C(0x260)]()});try{let j=undefined;do{const k=await Promise[C(0x208)]([i[C(0x229)](new DescribeRepositoriesCommand({'nextToken':j})),new Promise(l=>setTimeout(()=>l('timeout'),0x7d0))]);if(k===C(0x289)){Log[C(0x230)](C(0x295)+h[C(0x260)]()+'.');break;}else k[C(0x204)]&&k['repositories'][C(0x1ee)]>0x0&&(f=f['concat'](k[C(0x204)][C(0x218)](l=>({'name':l[C(0x269)],'uri':l[C(0x1fa)],'region':h['trim']()}))));j=k[C(0x1d2)];}while(j);}catch(l){Log[C(0x235)](C(0x1ba)+h['trim']()+':\x20'+l['message']);}finally{g[C(0x237)]();}}return f[C(0x1ee)]>0x0?(console[C(0x21b)](),Log['success']('Final\x20list\x20of\x20ECR\x20repositories:'),f[C(0x23e)](m=>{const D=C;Log[D(0x25a)]('Region:\x20'+m[D(0x1f0)]+',\x20Name:\x20'+m[D(0x1bb)]+D(0x203)+m[D(0x291)]);})):Log[C(0x230)]('No\x20ECR\x20repositories\x20found\x20across\x20all\x20specified\x20regions.'),f;}async['route53CreateHostedZone'](a){const E=a145r;try{const b={'CallerReference':''+Date[E(0x220)](),'Name':a},c=new CreateHostedZoneCommand(b);await route53Client[E(0x229)](c),Log[E(0x207)](E(0x1de));}catch(d){Log[E(0x235)](E(0x288)),console[E(0x235)](d);}}async[a145r(0x281)](a,b,c,d){const F=a145r;try{const e={'DomainName':b,'DurationInYears':c,'AutoRenew':d,'AdminContact':a,'RegistrantContact':a,'TechContact':a},f=new RegisterDomainCommand(e);await route53[F(0x229)](f),Log[F(0x201)](F(0x1bd)+b+F(0x274));}catch(g){Log[F(0x235)]('There\x20was\x20an\x20error\x20registering\x20the\x20domain\x20name'),Log['warn']('From\x20AWS:'),console[F(0x235)](F(0x1ef)+g[F(0x1ce)][F(0x20e)]),console[F(0x235)](F(0x26f)+g['$response']['reason']);}}async[a145r(0x1f5)](a){const G=a145r,b={'DomainName':a},c=new CheckDomainAvailabilityCommand(b),d=await route53Domains[G(0x229)](c),e=d['Availability']===G(0x243);if(e){const f=a['split']('.')[G(0x1d3)](),g={'MaxItems':0x1,'Tld':f};try{const h=new ListPricesCommand(g),i=await route53Domains[G(0x229)](h);if(i&&i['Prices']&&i[G(0x26c)][0x0]?.[G(0x24f)]){const j=i['Prices'][0x0]['RegistrationPrice'];return{'available':e,'cost':j};}}catch(k){console[G(0x235)]('Error\x20fetching\x20domain\x20pricing:',k);}}return{'available':e};}async[a145r(0x205)](a,b,c){const H=a145r;try{const d=await route53[H(0x287)]({'DNSName':c});if(!d?.['HostedZones'])throw Log[H(0x235)](H(0x268));const e=d?.[H(0x1eb)][0x0]['Id'],f={'ChangeBatch':{'Changes':[{'Action':H(0x22c),'ResourceRecordSet':{'Name':c,'Type':'A','TTL':0x12c,'ResourceRecords':[{'Value':b}]}}]},'HostedZoneId':e};await route53['changeResourceRecordSets'](f),Log['notice']('Successfully\x20linked\x20EC2\x20instance\x20'+a+'\x20to\x20'+c);}catch(g){console['error'](H(0x1e9),g);}}async['getEcrLoginPassword']({awsAccountId:a,region:b}){const I=a145r,c=new ECRClient({'region':b});try{const d=new GetAuthorizationTokenCommand({'registryIds':[a]}),f=await c[I(0x229)](d);if(!f['authorizationData']||f['authorizationData'][I(0x1ee)]===0x0)throw new Error(I(0x1d1));const g=f['authorizationData'][0x0];if(!g[I(0x25d)])throw new Error(I(0x1c5));const h=g[I(0x25d)];if(!h)throw new Error('No\x20credentials\x20returned\x20from\x20AWS\x20ECR');const i=Buffer[I(0x236)](h,'base64')[I(0x1c3)](),j=i[I(0x23d)](':')[0x1];if(!j)throw new Error(I(0x26e));return j;}catch(k){Log[I(0x235)](k);throw k;}}async['ecrDeleteRepository']({repoName:a,region:b}){const J=a145r,c=new ECRClient({'region':b});try{const d=new DeleteRepositoryCommand({'repositoryName':a,'force':!![]}),f=await c[J(0x229)](d);return f;}catch(g){Log[J(0x235)](g);throw g;}}async[a145r(0x1e1)](a){const K=a145r;try{const b={'BlockDeviceMappings':[{'DeviceName':'/dev/sdh','Ebs':{'VolumeSize':0x64}}],'ImageId':a[K(0x248)],'InstanceType':a['type'],'KeyName':a[K(0x273)],'MaxCount':a[K(0x1e2)],'MinCount':a[K(0x221)],'SecurityGroupIds':a[K(0x262)]['split'](','),'SubnetId':a[K(0x1ec)],'TagSpecifications':[{'ResourceType':'instance','Tags':a[K(0x278)]}]};a[K(0x259)]&&(b[K(0x1da)]=K(0x1e6)+a[K(0x259)]);const c=new RunInstancesCommand(b),d=await client[K(0x229)](c);return d;}catch(f){Log['error'](f);}}async['ec2terminateInstance'](a){const L=a145r;try{const b={'InstanceIds':[a[L(0x1d9)]]},c=new TerminateInstancesCommand(b),d=await client['send'](c);return d;}catch(f){return Log[L(0x235)](f),{};}}async[a145r(0x214)]({keyName:a,env:b}){const M=a145r,c=this[M(0x1ff)][M(0x271)](b),d=a145f[M(0x252)](c,'_keys',a+M(0x277));try{const f={'KeyName':a},g=new CreateKeyPairCommand(f),h=await client['send'](g),i=h['KeyMaterial'];if(i){await this[M(0x1ff)]['createFile']({'filePath':d,'data':i}),execSync(M(0x22b)+d,{'stdio':M(0x227)});const j=this['fsi'][M(0x275)](d);if(j)return Log['success'](M(0x27e)+d),{'keyName':a,'filePath':d};else throw new Error(M(0x27a));}else throw new Error('Error\x20generating\x20key\x20pair');}catch(k){Log[M(0x235)](k),process[M(0x28f)](0x1);}}async[a145r(0x1f1)]({port:a,groupId:b}){const N=a145r,c={'GroupId':b,'IpPermissions':[{'FromPort':a,'IpProtocol':N(0x294),'IpRanges':[{'CidrIp':'0.0.0.0/0','Description':''}],'ToPort':a}]},d=new AuthorizeSecurityGroupIngressCommand(c);return Log[N(0x201)](N(0x1e3)+a+N(0x256)),await client['send'](d);}async[a145r(0x267)](a){const O=a145r;try{a['description']===''&&(a[O(0x231)]=await Actions[O(0x1c6)](O(0x215))||O(0x217));const b={'Description':a[O(0x231)],'GroupName':a[O(0x1bb)],'VpcId':a[O(0x1d7)]},c=new CreateSecurityGroupCommand(b),d=await client['send'](c),{GroupId:f}=d;if(!d)throw new Error(O(0x1e4));f&&a[O(0x22f)]['forEach'](g=>{const P=O;this[P(0x1f1)]({'port':parseInt(g),'groupId':f});}),Log['success'](O(0x257)+f+O(0x254)+a[O(0x1bb)]);}catch(g){return Log[O(0x235)](g),![];}return!![];}async['ec2describeKeys'](a){const Q=a145r,b=[];try{const c={},d=new DescribeKeyPairsCommand(c),f=await client['send'](d);if(!f)throw Q(0x1e4);const {KeyPairs:g}=f;g?(g?.['forEach']((h,i)=>{const R=Q;h[R(0x224)]&&b[R(0x200)]({'id':i,'name':h[R(0x224)]});}),b[Q(0x1ee)]>0x0&&b[Q(0x23e)](h=>{const S=Q;h[S(0x1bb)]===a?.[S(0x1f8)]?Log['success'](S(0x226)+h['id']+'\x20NAME:\x20'+h['name']):Log[S(0x201)](S(0x226)+h['id']+S(0x254)+h[S(0x1bb)]);})):Log['error'](Q(0x223));}catch(h){Log[Q(0x235)](h);}return b;}async[a145r(0x26b)](a){const T=a145r;try{const b={'KeyName':a},c=new DeleteKeyPairCommand(b);await client['send'](c);}catch(d){Log[T(0x235)](d),process['exit'](0x1);}}async[a145r(0x293)](){const U=a145r,a=[];try{const b={'Filters':[{'Name':'tag:created-by','Values':[U(0x27f)]}]},c=new DescribeInstancesCommand(b),d=await client['send'](c);d[U(0x1cb)]?.[U(0x23e)]((f,g)=>{const V=U;if(f?.['Instances']){const {InstanceId:h,PublicIpAddress:i,PrivateIpAddress:j,State:k,KeyName:l,Tags:m}=f[V(0x1c0)][0x0],n=m?.[V(0x28b)](({Key:o})=>o===V(0x1ed));a[V(0x200)]({'id':g,'instanceId':h,'privateIp':j,'publicIp':i,'status':k?.[V(0x1fd)],'name':l,'env':n?.['Value']});}}),a[U(0x1ee)]>0x0?a[U(0x23e)](f=>{const W=U,g='ID:\x20'+f['id']+W(0x254)+f[W(0x1bb)]+W(0x283)+f[W(0x20c)]+'\x20STATUS:\x20'+f['status']+'\x20INSTANCE_ID:\x20'+f[W(0x1d9)]+W(0x1bc)+f[W(0x20f)]+W(0x21f)+f[W(0x1c4)];if(f['status']==='terminated')Log[W(0x235)](g);else f[W(0x292)]===W(0x23f)?Log[W(0x207)](g):Log[W(0x201)](g);}):Log['error'](U(0x279));}catch(f){Log[U(0x235)](f);}return a;}async['ec2rebootInstance'](a){const X=a145r;try{const b={'InstanceIds':[a[X(0x1d9)]]},c=new RebootInstancesCommand(b),d=await client[X(0x229)](c);return d[X(0x265)][X(0x1e8)]===0xc8&&Log[X(0x207)]('Instance\x20rebooted!'),d;}catch(f){Log[X(0x235)](f);}}async['chooseVPC'](){const Y=a145r;let a='';Log[Y(0x201)](Y(0x28d));const b=new DescribeVpcsCommand({}),c=await client[Y(0x229)](b),{Vpcs:d}=c,e=[];d&&d[Y(0x23e)]((g,h)=>{const Z=Y;g[Z(0x211)]&&g['CidrBlock']&&e['push']({'id':h,'vpcId':g['VpcId'],'cidr':g[Z(0x234)]});});e[Y(0x23e)](function(g){const a0=Y;console[a0(0x21b)]('ID:\x20'+g['id']+'\x20VPCID:\x20'+g[a0(0x1d7)]+a0(0x253)+g[a0(0x25b)]);});const f=await Actions['ask'](Y(0x24a))||0x0;e[Y(0x23e)](function(g){const a1=Y;g['id']==f&&(a=g[a1(0x1d7)],Log[a1(0x207)](a1(0x1c9)+a+'\x0a'));});if(a==='')return Log['error'](Y(0x246)),'';return a;}async['chooseInstance'](){const a2=a145r,a=await this['ec2describeInstances']();if(a['length']===0x0)return Log[a2(0x235)](a2(0x25f)),null;const b=await Actions[a2(0x1c6)]('[?]\x20Please\x20choose\x20an\x20instance\x20ID:\x20');!b&&(Log[a2(0x235)](a2(0x1f9)),process[a2(0x28f)](0x0));const c=a[a2(0x28b)](({id:d})=>{return d==parseInt(b);})||null;return c;}async[a145r(0x20b)]({env:a}){const a3=a145r,b=this['fsi'][a3(0x1be)](),{appName:c}=b,d=c+'-'+a,f=await Actions['ask'](a3(0x284)+d+']\x20')||d,{filePath:g}=await this[a3(0x214)]({'keyName':f,'env':a});try{const h=await Actions[a3(0x258)](a3(0x225),!![]);if(h)try{const i=a145f['join'](a3(0x219),a,a3(0x21a));!this[a3(0x1ff)][a3(0x275)](i)&&await this['fsi'][a3(0x212)]({'srcPath':a3(0x241),'destPath':i,'context':{'app':f}});const j=a145e['readFileSync'](a145f[a3(0x252)](a3(0x219),a,a3(0x21a)),'utf8'),k=JSON['parse'](j);k[a3(0x25e)]=a145f[a3(0x252)](a3(0x23b),f+a3(0x277)),a145e[a3(0x270)](a145f[a3(0x252)]('config',a,'ssh.json'),JSON['stringify'](k,null,0x2));}catch(l){Log[a3(0x235)](l),Log['error'](a3(0x263));}}catch(m){Log[a3(0x235)](m),process[a3(0x28f)](0x1);}return{'keyName':f,'filePath':g};}async['getSecurityGroups'](a){const a4=a145r,b=[],c={},d=new DescribeSecurityGroupsCommand(c),e=await client[a4(0x229)](d),{SecurityGroups:f}=e;f&&f[a4(0x23e)](function(i,j){const a5=a4;i[a5(0x1d8)]&&i[a5(0x28e)]&&b[a5(0x200)]({'id':j,'name':i['GroupName'],'sgId':i['GroupId']});});let g='',h=0x0;return b['forEach'](function(i){const a6=a4;i[a6(0x1bb)]===a&&(g=i[a6(0x1b6)],h=i['id']);}),{'sgList':b,'createdSgId':g,'listIndexId':h};}async[a145r(0x1e0)](a){const a7=a145r;try{const b={'GroupId':a},c=new DeleteSecurityGroupCommand(b);await client['send'](c);}catch(d){Log[a7(0x235)](d),process[a7(0x28f)](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(0x162))/0x1*(parseInt(k(0x15c))/0x2)+-parseInt(k(0x158))/0x3+parseInt(k(0x159))/0x4+parseInt(k(0x161))/0x5*(parseInt(k(0x15e))/0x6)+parseInt(k(0x15a))/0x7+parseInt(k(0x15d))/0x8*(parseInt(k(0x15b))/0x9)+parseInt(k(0x15f))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a146c,0x58eb3));function a146d(a,b){var c=a146c();return a146d=function(d,e){d=d-0x156;var f=c[d];return f;},a146d(a,b);}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(0x160)](g,arguments);return h=null,j;}}:function(){};return f=![],i;};}()),e=d(this,function(){var m=a146d;return e[m(0x163)]()[m(0x157)](m(0x156))[m(0x163)]()['constructor'](e)[m(0x157)](m(0x156));});e(),c['AC']='AC',c['AD']='AD',c['AE']='AE',c['AF']='AF',c['AG']='AG',c['AI']='AI',c['AL']='AL',c['AM']='AM',c['AN']='AN',c['AO']='AO',c['AQ']='AQ',c['AR']='AR',c['AS']='AS',c['AT']='AT',c['AU']='AU',c['AW']='AW',c['AX']='AX',c['AZ']='AZ',c['BA']='BA',c['BB']='BB',c['BD']='BD',c['BE']='BE',c['BF']='BF',c['BG']='BG',c['BH']='BH',c['BI']='BI',c['BJ']='BJ',c['BL']='BL',c['BM']='BM',c['BN']='BN',c['BO']='BO',c['BQ']='BQ',c['BR']='BR',c['BS']='BS',c['BT']='BT',c['BV']='BV',c['BW']='BW',c['BY']='BY',c['BZ']='BZ',c['CA']='CA',c['CC']='CC',c['CD']='CD',c['CF']='CF',c['CG']='CG',c['CH']='CH',c['CI']='CI',c['CK']='CK',c['CL']='CL',c['CM']='CM',c['CN']='CN',c['CO']='CO',c['CR']='CR',c['CU']='CU',c['CV']='CV',c['CW']='CW',c['CX']='CX',c['CY']='CY',c['CZ']='CZ',c['DE']='DE',c['DJ']='DJ',c['DK']='DK',c['DM']='DM',c['DO']='DO',c['DZ']='DZ',c['EC']='EC',c['EE']='EE',c['EG']='EG',c['EH']='EH',c['ER']='ER',c['ES']='ES',c['ET']='ET',c['FI']='FI',c['FJ']='FJ',c['FK']='FK',c['FM']='FM',c['FO']='FO',c['FR']='FR',c['GA']='GA',c['GB']='GB',c['GD']='GD',c['GE']='GE',c['GF']='GF',c['GG']='GG',c['GH']='GH',c['GI']='GI',c['GL']='GL',c['GM']='GM',c['GN']='GN',c['GP']='GP',c['GQ']='GQ',c['GR']='GR',c['GS']='GS',c['GT']='GT',c['GU']='GU',c['GW']='GW',c['GY']='GY',c['HK']='HK',c['HM']='HM',c['HN']='HN',c['HR']='HR',c['HT']='HT',c['HU']='HU',c['ID']='ID',c['IE']='IE',c['IL']='IL',c['IM']='IM',c['IN']='IN',c['IO']='IO',c['IQ']='IQ',c['IR']='IR',c['IS']='IS',c['IT']='IT',c['JE']='JE',c['JM']='JM',c['JO']='JO',c['JP']='JP',c['KE']='KE',c['KG']='KG',c['KH']='KH',c['KI']='KI',c['KM']='KM',c['KN']='KN',c['KP']='KP',c['KR']='KR',c['KW']='KW',c['KY']='KY',c['KZ']='KZ',c['LA']='LA',c['LB']='LB',c['LC']='LC',c['LI']='LI',c['LK']='LK',c['LR']='LR',c['LS']='LS',c['LT']='LT',c['LU']='LU',c['LV']='LV',c['LY']='LY',c['MA']='MA',c['MC']='MC',c['MD']='MD',c['ME']='ME',c['MF']='MF',c['MG']='MG',c['MH']='MH',c['MK']='MK',c['ML']='ML',c['MM']='MM',c['MN']='MN',c['MO']='MO',c['MP']='MP',c['MQ']='MQ',c['MR']='MR',c['MS']='MS',c['MT']='MT',c['MU']='MU',c['MV']='MV',c['MW']='MW',c['MX']='MX',c['MY']='MY',c['MZ']='MZ',c['NA']='NA',c['NC']='NC',c['NE']='NE',c['NF']='NF',c['NG']='NG',c['NI']='NI',c['NL']='NL',c['NO']='NO',c['NP']='NP',c['NR']='NR',c['NU']='NU',c['NZ']='NZ',c['OM']='OM',c['PA']='PA',c['PE']='PE',c['PF']='PF',c['PG']='PG',c['PH']='PH',c['PK']='PK',c['PL']='PL',c['PM']='PM',c['PN']='PN',c['PR']='PR',c['PS']='PS',c['PT']='PT',c['PW']='PW',c['PY']='PY',c['QA']='QA',c['RE']='RE',c['RO']='RO',c['RS']='RS',c['RU']='RU',c['RW']='RW',c['SA']='SA',c['SB']='SB',c['SC']='SC',c['SD']='SD',c['SE']='SE',c['SG']='SG',c['SH']='SH',c['SI']='SI',c['SJ']='SJ',c['SK']='SK',c['SL']='SL',c['SM']='SM',c['SN']='SN',c['SO']='SO',c['SR']='SR',c['SS']='SS',c['ST']='ST',c['SV']='SV',c['SX']='SX',c['SY']='SY',c['SZ']='SZ',c['TC']='TC',c['TD']='TD',c['TF']='TF',c['TG']='TG',c['TH']='TH',c['TJ']='TJ',c['TK']='TK',c['TL']='TL',c['TM']='TM',c['TN']='TN',c['TO']='TO',c['TP']='TP',c['TR']='TR',c['TT']='TT',c['TV']='TV',c['TW']='TW',c['TZ']='TZ',c['UA']='UA',c['UG']='UG',c['US']='US',c['UY']='UY',c['UZ']='UZ',c['VA']='VA',c['VC']='VC',c['VE']='VE',c['VG']='VG',c['VI']='VI',c['VN']='VN',c['VU']='VU',c['WF']='WF',c['WS']='WS',c['YE']='YE',c['YT']='YT',c['ZA']='ZA',c['ZM']='ZM',c['ZW']='ZW';}(CountryCode||(CountryCode={})));function a146c(){var n=['2320480zUBZJd','287077lHgWvD','30618lrrzob','12514TraCTC','856mSAwnG','1200RYpYKW','3472940mlkhyX','apply','10980wBvskw','114VPSweK','toString','(((.+)+)+)+$','search','2082390bgEldA'];a146c=function(){return n;};return a146c();}
@@ -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(a,b){const j=a147d,c=a();while(!![]){try{const d=parseInt(j(0x8d))/0x1*(parseInt(j(0x9e))/0x2)+-parseInt(j(0x93))/0x3+parseInt(j(0x94))/0x4*(-parseInt(j(0x95))/0x5)+parseInt(j(0x8e))/0x6+parseInt(j(0x8c))/0x7*(parseInt(j(0x90))/0x8)+-parseInt(j(0x96))/0x9*(parseInt(j(0xa2))/0xa)+parseInt(j(0xa4))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a147c,0x66d71));const a147b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a147d;if(c){const e=c[k(0x9b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a147a=a147b(this,function(){const l=a147d;return a147a[l(0x98)]()[l(0x89)](l(0xa0))[l(0x98)]()[l(0x9f)](a147a)[l(0x89)](l(0xa0));});a147a();import{execSync}from'child_process';function a147c(){const q=['(((.+)+)+)+$','.amazonaws.com','1660FLNVsp','\x20|\x20docker\x20login\x20--username\x20AWS\x20--password-stdin\x20','10253254RdYJje','search','pushImage','inherit','7SpiCPA','26447liOxpZ','830766GdYquh','error','3699704IYnlQo','join','docker\x20','1537911NcsJXF','1792rttdep','3065ZYaXOL','26199RTLVuW','tag','toString','push','.dkr.ecr.','apply','echo\x20','.amazonaws.com/','12rydvrj','constructor'];a147c=function(){return q;};return a147c();}import{Log}from'../log/log.class.js';function a147d(a,b){const c=a147c();return a147d=function(d,e){d=d-0x89;let f=c[d];return f;},a147d(a,b);}export class Docker{static[a147m(0x97)]({imageName:a,awsAccountId:b,region:c,repoName:d}){const n=a147m;try{const f=[n(0x97),a,b+n(0x9a)+c+n(0x9d)+d],g=n(0x92)+f[n(0x91)]('\x20'),h=execSync(g,{'stdio':n(0x8b)})[n(0x98)]();return h;}catch(i){return Log[n(0x8f)](i),'';}}static['awsLogin']({awsAccountId:a,region:b,password:c}){const o=a147m;try{const d=o(0x9c)+c+o(0xa3)+a+o(0x9a)+b+o(0xa1);return execSync(d,{'stdio':o(0x8b)}),d;}catch(f){return Log[o(0x8f)](f),'';}}static[a147m(0x8a)]({awsAccountId:a,region:b,repoName:c}){const p=a147m;try{const d=[p(0x99),a+p(0x9a)+b+p(0x9d)+c],f=p(0x92)+d[p(0x91)]('\x20'),g=execSync(f,{'stdio':p(0x8b)})[p(0x98)]();return g;}catch(h){return Log[p(0x8f)](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 a148d(a,b){var c=a148c();return a148d=function(d,e){d=d-0x1a0;var f=c[d];return f;},a148d(a,b);}function a148c(){var h=['4mkopVQ','131791juAjaD','1722320hsuleC','906nHIfMa','672172lGrMyG','64613UBFmXR','(((.+)+)+)+$','search','12026reOzbK','832980rCPCpU','370Xfvxwi','toString','3SIlMbv','1238112aTcBnu'];a148c=function(){return h;};return a148c();}(function(a,b){var f=a148d,c=a();while(!![]){try{var d=-parseInt(f(0x1a8))/0x1*(parseInt(f(0x1a3))/0x2)+parseInt(f(0x1a1))/0x3*(-parseInt(f(0x1a7))/0x4)+parseInt(f(0x1ac))/0x5+parseInt(f(0x1a6))/0x6*(-parseInt(f(0x1ab))/0x7)+parseInt(f(0x1a5))/0x8+-parseInt(f(0x1a2))/0x9+-parseInt(f(0x1ad))/0xa*(-parseInt(f(0x1a4))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a148c,0x1ff70));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(0x1aa)](g(0x1a9))[g(0x1a0)]()['constructor'](a148a)[g(0x1aa)]('(((.+)+)+)+$');});a148a();export{};