@maka/maka-cli 5.0.1 → 5.0.2

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 (166) hide show
  1. package/bundle/obf/package.json +1 -1
  2. package/bundle/obf/src/command.js +1 -1
  3. package/bundle/obf/src/commands/_index.js +1 -1
  4. package/bundle/obf/src/commands/ai.js +1 -1
  5. package/bundle/obf/src/commands/aws/_index.js +1 -1
  6. package/bundle/obf/src/commands/aws/aws.command.js +1 -1
  7. package/bundle/obf/src/commands/aws/cecr.sub.cmd.js +1 -1
  8. package/bundle/obf/src/commands/aws/chz.sub.cmd.js +1 -1
  9. package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
  10. package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
  11. package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
  12. package/bundle/obf/src/commands/aws/decr.sub.cmd.js +1 -1
  13. package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
  14. package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
  15. package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
  16. package/bundle/obf/src/commands/aws/lecr.sub.cmd.js +1 -1
  17. package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
  18. package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
  19. package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
  20. package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
  21. package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
  22. package/bundle/obf/src/commands/build/_index.js +1 -1
  23. package/bundle/obf/src/commands/build/build.js +1 -1
  24. package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
  25. package/bundle/obf/src/commands/create.js +1 -1
  26. package/bundle/obf/src/commands/debug.js +1 -1
  27. package/bundle/obf/src/commands/deploy/_index.js +1 -1
  28. package/bundle/obf/src/commands/deploy/deploy.command.js +1 -1
  29. package/bundle/obf/src/commands/deploy/galaxy.sub.cmd.js +1 -1
  30. package/bundle/obf/src/commands/deploy/ubuntu.sub.cmd.js +1 -1
  31. package/bundle/obf/src/commands/game/_index.js +1 -1
  32. package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
  33. package/bundle/obf/src/commands/game/play.command.js +1 -1
  34. package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
  35. package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
  36. package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
  37. package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
  38. package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
  39. package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
  40. package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
  41. package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
  42. package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
  43. package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
  44. package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
  45. package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
  46. package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
  47. package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
  48. package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
  49. package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
  50. package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
  51. package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
  52. package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
  53. package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
  54. package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
  55. package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
  56. package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
  57. package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
  58. package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
  59. package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
  60. package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
  61. package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
  62. package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
  63. package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
  64. package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
  65. package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
  66. package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
  67. package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
  68. package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
  69. package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
  70. package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
  71. package/bundle/obf/src/commands/generate.js +1 -1
  72. package/bundle/obf/src/commands/get/_index.js +1 -1
  73. package/bundle/obf/src/commands/get/get.command.js +1 -1
  74. package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
  75. package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
  76. package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
  77. package/bundle/obf/src/commands/help.js +1 -1
  78. package/bundle/obf/src/commands/install.js +1 -1
  79. package/bundle/obf/src/commands/jsdoc.js +1 -1
  80. package/bundle/obf/src/commands/lint.js +1 -1
  81. package/bundle/obf/src/commands/login.js +1 -1
  82. package/bundle/obf/src/commands/logout.js +1 -1
  83. package/bundle/obf/src/commands/logs.js +1 -1
  84. package/bundle/obf/src/commands/maka.cmd.js +1 -1
  85. package/bundle/obf/src/commands/murder.js +1 -1
  86. package/bundle/obf/src/commands/patreon.js +1 -1
  87. package/bundle/obf/src/commands/profile.js +1 -1
  88. package/bundle/obf/src/commands/proxy.js +1 -1
  89. package/bundle/obf/src/commands/reconfig.js +1 -1
  90. package/bundle/obf/src/commands/register.js +1 -1
  91. package/bundle/obf/src/commands/run/_index.js +1 -1
  92. package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
  93. package/bundle/obf/src/commands/run/run.command.js +1 -1
  94. package/bundle/obf/src/commands/set/_index.js +1 -1
  95. package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
  96. package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
  97. package/bundle/obf/src/commands/set/set.command.js +1 -1
  98. package/bundle/obf/src/commands/ssh.js +1 -1
  99. package/bundle/obf/src/commands/ssl.js +1 -1
  100. package/bundle/obf/src/commands/test.js +1 -1
  101. package/bundle/obf/src/commands/undo.js +1 -1
  102. package/bundle/obf/src/commands/version.js +1 -1
  103. package/bundle/obf/src/error.js +1 -1
  104. package/bundle/obf/src/exec.js +1 -1
  105. package/bundle/obf/src/generator.js +1 -1
  106. package/bundle/obf/src/generators/_index.js +1 -1
  107. package/bundle/obf/src/generators/api.js +1 -1
  108. package/bundle/obf/src/generators/aws/_index.js +1 -1
  109. package/bundle/obf/src/generators/aws/aws.js +1 -1
  110. package/bundle/obf/src/generators/aws/cloudformation/_index.js +1 -1
  111. package/bundle/obf/src/generators/aws/cloudformation/cloudformation.js +1 -1
  112. package/bundle/obf/src/generators/aws/cloudformation/create-ec2-instance.cf.gen.js +1 -1
  113. package/bundle/obf/src/generators/collection.js +1 -1
  114. package/bundle/obf/src/generators/component.js +1 -1
  115. package/bundle/obf/src/generators/config.js +1 -1
  116. package/bundle/obf/src/generators/dbc.js +1 -1
  117. package/bundle/obf/src/generators/dockerfile.js +1 -1
  118. package/bundle/obf/src/generators/hook.js +1 -1
  119. package/bundle/obf/src/generators/kits/_index.js +1 -1
  120. package/bundle/obf/src/generators/kits/auth/_index.js +1 -1
  121. package/bundle/obf/src/generators/kits/auth/auth.generator.js +1 -1
  122. package/bundle/obf/src/generators/kits/auth/basic-meteor.auth.gen.js +1 -1
  123. package/bundle/obf/src/generators/kits/auth/provider.auth.gen.js +1 -1
  124. package/bundle/obf/src/generators/kits/esri/_index.js +1 -1
  125. package/bundle/obf/src/generators/kits/esri/esri.generator.js +1 -1
  126. package/bundle/obf/src/generators/kits/esri/map.esri.gen.js +1 -1
  127. package/bundle/obf/src/generators/kits/kit.js +1 -1
  128. package/bundle/obf/src/generators/kits/mui/_index.js +1 -1
  129. package/bundle/obf/src/generators/kits/mui/auth.mui.gen.js +1 -1
  130. package/bundle/obf/src/generators/kits/mui/frame.mui.gen.js +1 -1
  131. package/bundle/obf/src/generators/kits/mui/mui.generator.js +1 -1
  132. package/bundle/obf/src/generators/layout.js +1 -1
  133. package/bundle/obf/src/generators/maka.gen.js +1 -1
  134. package/bundle/obf/src/generators/methods.js +1 -1
  135. package/bundle/obf/src/generators/package.js +1 -1
  136. package/bundle/obf/src/generators/page.js +1 -1
  137. package/bundle/obf/src/generators/publish.js +1 -1
  138. package/bundle/obf/src/generators/route.js +1 -1
  139. package/bundle/obf/src/generators/service.js +1 -1
  140. package/bundle/obf/src/generators/services/_index.js +1 -1
  141. package/bundle/obf/src/generators/services/openssl.js +1 -1
  142. package/bundle/obf/src/generators/services/translation.js +1 -1
  143. package/bundle/obf/src/maka.js +1 -1
  144. package/bundle/obf/src/templates/react/component/component.js.jsx +1 -1
  145. package/bundle/obf/src/templates/react/component/component.js.tsx +1 -1
  146. package/bundle/obf/src/templates/react/hook/hook.js.tsx +1 -1
  147. package/bundle/obf/src/tool.js +1 -1
  148. package/bundle/obf/src/tools/actions/actions.class.js +1 -1
  149. package/bundle/obf/src/tools/aws/aws.class.js +1 -1
  150. package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
  151. package/bundle/obf/src/tools/docker/docker.class.js +1 -1
  152. package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
  153. package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
  154. package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
  155. package/bundle/obf/src/tools/https/https.class.js +1 -1
  156. package/bundle/obf/src/tools/https/https.interface.js +1 -1
  157. package/bundle/obf/src/tools/log/log.class.js +1 -1
  158. package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
  159. package/bundle/obf/src/tools/options/options.class.js +1 -1
  160. package/bundle/obf/src/tools/progress/progress.class.js +1 -1
  161. package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
  162. package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
  163. package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
  164. package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
  165. package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
  166. package/package.json +1 -1
@@ -1 +1 @@
1
- function a135c(){const x=['\x27;\x0a','56456gPtIYC','injectIntoFile','maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','24561muqggf','hook/hook.js','className','pathFromApp','<Route\x20element={<PrivateRoute\x20/>}>','assign','none','toString','component','replace','fsi','join','api','apply','fileName','/imports/ui/pages','private','937156RmABkR','layout','template/template.html','toLowerCase','(((.+)+)+)+$','140ExgYqp','import\x20\x27./','root','endsWith','url','relative','1697685KWhIDQ','substring','template/template.css','true','warn','</Route>','.html','features','ssr','maka\x20g:page\x20todos/todos-item','lib','getMakaProjectConfig','withTranslations','graphql','dir','<Route\x20index','trim','vanilla','.app-tests.js','hasOwnProperty','create','css','installNpmPackage','template','injectTemplateModule','constructor','200UcTuaw','259371AvHqOq','findAppDirectory','ramda','page','client','engines','20TnoUdO','routes.','html','5FjYYAf','withHooks','setTemplate','<Route\x20path=\x22','theme','.js','startup','replaceAll','search','\x22\x20element={<Component.','resourceName','store','react','.css','injectAtBeginningOfFile','<Route\x20path=\x22*\x22','Generate\x20a\x20page.','test','withValue','867QfdTTF','pathFromProject','18636ySgYag','string'];a135c=function(){return x;};return a135c();}const a135u=a135d;(function(a,b){const r=a135d,c=a();while(!![]){try{const d=parseInt(r(0xec))/0x1+parseInt(r(0xf2))/0x2*(parseInt(r(0x108))/0x3)+-parseInt(r(0x121))/0x4*(-parseInt(r(0xf5))/0x5)+parseInt(r(0x10a))/0x6+parseInt(r(0x126))/0x7*(-parseInt(r(0x10d))/0x8)+parseInt(r(0x110))/0x9*(-parseInt(r(0xeb))/0xa)+-parseInt(r(0x12c))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a135c,0x24861));function a135d(a,b){const c=a135c();return a135d=function(d,e){d=d-0xe1;let f=c[d];return f;},a135d(a,b);}const a135b=(function(){let a=!![];return function(b,c){const d=a?function(){const s=a135d;if(c){const e=c[s(0x11d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a135a=a135b(this,function(){const t=a135d;return a135a[t(0x117)]()[t(0xfd)](t(0x125))['toString']()[t(0xea)](a135a)[t(0xfd)]('(((.+)+)+)+$');});a135a();import a135e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['p'];Generator[a135u(0xe5)]({'name':a135u(0xef),'aliases':aliases,'usage':a135u(0x10f),'shortDesc':a135u(0x105),'validOpts':[{'name':a135u(0x120),'boolFlag':!![]},{'name':a135u(0x12a)}],'examples':[a135u(0x135)]},async function(a,b){const v=a135u,c=v(0x11f),d=this[v(0x11a)][v(0xed)](),e=b[v(0xff)]['includes'](':')?b[v(0xff)]['split'](':')[0x0][v(0xe1)]():b[v(0xff)][v(0xe1)](),f=b['dir'][v(0xfc)]('/','_')+'_'+e[v(0xfc)]('/','_'),g=this[v(0x11a)][v(0x113)]({'pathParts':[c,b[v(0x13a)],paramCase(f),paramCase(f)]}),h=this[v(0x11a)][v(0x137)]();let i='';return await this[v(0x11a)][v(0x107)](h,async()=>{const w=v;typeof h['template'][w(0xf4)]==='string'&&(h['template'][w(0xf4)]=h[w(0xe8)][w(0xf4)]===w(0x12f)?!![]:![],this[w(0x11a)][w(0xf7)]('html',h[w(0xe8)][w(0xf4)]));typeof h['template'][w(0x106)]===w(0x10b)&&(h[w(0xe8)][w(0x106)]=h[w(0xe8)][w(0x106)]==='true'?!![]:![],this[w(0x11a)][w(0xf7)](w(0x106),h['template'][w(0x106)]));typeof h['template']['css']===w(0x10b)&&(h[w(0xe8)][w(0xe6)]=h[w(0xe8)][w(0xe6)]==='true'?!![]:![],this[w(0x11a)][w(0xf7)](w(0xe6),h[w(0xe8)]['css']));typeof h[w(0xe8)]['js']===w(0x10b)&&(h[w(0xe8)]['js']=h['template']['js']==='true'?!![]:![],this[w(0x11a)]['setTemplate']('js',h['template']['js']));!h[w(0x133)]&&(h['features']={});!b[w(0x128)]&&!this[w(0x11a)]['checkNpmPackage'](w(0xee))&&(Log[w(0x130)]('Updating\x20npm\x20packages\x20...'),this['fsi'][w(0xe7)](w(0xee),{'cwd':d}));const j={'name':pascalCase(f),'myPath':a135e[w(0x12b)](this[w(0x11a)][w(0x109)]({}),g),'cssCaseName':paramCase(f),'className':pascalCase(f),'camelCaseName':camelCase(f),'fileName':paramCase(f),'graphql':h[w(0xf1)][w(0x139)],'features':h[w(0x133)],'client':h[w(0xf1)]['client'],'api':h['engines'][w(0x11c)],'ssr':h[w(0xf1)][w(0x134)],'isStore':b['hasOwnProperty'](w(0x100)),'isComponent':b[w(0xe4)](w(0x118)),'isLayout':b['hasOwnProperty'](w(0x122)),'withTranslations':h[w(0x133)][w(0x138)],'test':h[w(0xf1)][w(0x106)],'theme':h[w(0xf1)][w(0xf9)]};h['template'][w(0xf4)]&&await this[w(0x11a)][w(0xe8)]({'srcPath':w(0x123),'destPath':g+w(0x132),'context':j,'config':h});h[w(0x133)]?.[w(0xf6)]?await this[w(0x11a)][w(0xe8)]({'srcPath':w(0x111),'destPath':g+w(0xfa),'framework':w(0x101),'context':j,'config':h}):await this['fsi'][w(0xe8)]({'srcPath':'component/component.js','destPath':g+'.js','framework':'react','context':j,'config':h});h[w(0xf1)][w(0x106)]!==w(0x116)&&await this['fsi'][w(0xe8)]({'srcPath':'test/test.js','destPath':g+w(0xe3),'framework':w(0x101),'context':j,'config':h});h[w(0xe8)][w(0xe6)]&&await this[w(0x11a)][w(0xe8)]({'srcPath':w(0x12e),'destPath':g+w(0x102),'context':Object[w(0x115)]({},j,{'className':paramCase(b[w(0xff)])}),'config':h});h[w(0xf1)]['client']!==w(0x101)&&h['engines'][w(0xf0)]!==w(0xe2)?(h[w(0xe8)][w(0xe6)]&&await this[w(0x11a)]['injectAtBeginningOfFile']({'filePath':g+'.'+h['engines']['js'],'content':'import\x20\x27./'+j[w(0x11e)]+'.'+h['engines'][w(0xf4)]+w(0x10c)+w(0x127)+j[w(0x11e)]+'.'+h[w(0xf1)][w(0xe6)]+'\x27;'}),!h[w(0xe8)]['css']&&await this[w(0x11a)][w(0x103)]({'filePath':g+'.'+h['engines']['js'],'content':w(0x127)+j[w(0x11e)]+'.'+h[w(0xf1)][w(0xf4)]+'\x27;'})):h[w(0xe8)][w(0xe6)]&&await this[w(0x11a)][w(0x103)]({'filePath':g+'.'+h[w(0xf1)]['js'],'content':w(0x127)+j[w(0x11e)]+'.'+h[w(0xf1)][w(0xe6)]+'\x27;'});const k=b[w(0x13a)]?'/'+b[w(0x13a)]+'/':'/';i=''+c+k+j[w(0x11e)]+'/'+j[w(0x11e)],await this[w(0x11a)][w(0xe9)](j[w(0x112)],h,i);if(!b[w(0x128)]){const l=b['private']??![];if(!f){Log['error']('Please\x20specify\x20a\x20name\x20for\x20the\x20route.');throw new UsageError();}let m=b['url']?b[w(0x12a)]:'/'+b[w(0x13a)]['trim']()+'/'+b['resourceName'][w(0xe1)]()['replace'](/\\/g,'/')[w(0x119)](/\/+$/,'')[w(0x124)]();const n=b[w(0xff)]['indexOf'](':');n!==-0x1&&(m+='/'+b[w(0xff)][w(0x12d)](0x0,n)[w(0xe1)]());m[w(0x129)]('/')&&(m=m['slice'](0x0,-0x1));m=m[w(0x119)](/\/\//g,'/');const o=h[w(0xf1)]['js'],p=h[w(0xf1)][w(0x134)]===w(0x12f)?w(0x136):w(0xf0),q=a135e[w(0x11b)](d,'imports',w(0xfb),p,w(0xf3)+o);l?await this['fsi'][w(0x10e)]({'filePath':q,'content':w(0xf8)+m+w(0xfe)+pascalCase(f)+'/>}/>\x0a','begin':[w(0x114)],'end':[w(0x131)]}):await this[w(0x11a)][w(0x10e)]({'filePath':q,'content':w(0xf8)+m+w(0xfe)+pascalCase(f)+'/>}/>\x0a','begin':[w(0x13b)],'end':[w(0x104)]});}}),i+'.'+h['engines']['js'];});
1
+ const a135u=a135d;(function(a,b){const r=a135d,c=a();while(!![]){try{const d=-parseInt(r(0xed))/0x1*(-parseInt(r(0x124))/0x2)+-parseInt(r(0x137))/0x3*(-parseInt(r(0xe6))/0x4)+parseInt(r(0x108))/0x5+-parseInt(r(0x100))/0x6*(parseInt(r(0x111))/0x7)+parseInt(r(0x103))/0x8*(-parseInt(r(0xe5))/0x9)+parseInt(r(0x107))/0xa*(-parseInt(r(0x113))/0xb)+parseInt(r(0x120))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a135c,0xacfe3));function a135d(a,b){const c=a135c();return a135d=function(d,e){d=d-0xe4;let f=c[d];return f;},a135d(a,b);}const a135b=(function(){let a=!![];return function(b,c){const d=a?function(){const s=a135d;if(c){const e=c[s(0xf1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a135a=a135b(this,function(){const t=a135d;return a135a[t(0xf3)]()[t(0x126)]('(((.+)+)+)+$')[t(0xf3)]()[t(0x130)](a135a)[t(0x126)]('(((.+)+)+)+$');});a135a();import a135e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';import{camelCase,paramCase,pascalCase}from'change-case';function a135c(){const x=['<Route\x20path=\x22','template/template.html','replace','1845OnqaHp','81096hDGoDt','.js','client','indexOf','join','.app-tests.js','withValue','721hUkZXp','warn','injectIntoFile','Generate\x20a\x20page.','apply','\x22\x20element={<Component.','toString','create','Please\x20specify\x20a\x20name\x20for\x20the\x20route.','html','/>}/>\x0a','page','includes','checkNpmPackage','graphql','resourceName','getMakaProjectConfig','split','css','1499670DXVHEP','features','fsi','24000SDdBzO','installNpmPackage','string','component/component.js','30GnKnwY','436735kWJZyE','toLowerCase','engines','layout','Updating\x20npm\x20packages\x20...','ramda','slice','injectAtBeginningOfFile','<Route\x20path=\x22*\x22','7pNJeKK','fileName','730939DqrrcI','private','assign','error','component','</Route>','url','root','trim','findAppDirectory','test','withTranslations','maka\x20g:page\x20todos/todos-item','2342676NzRDEs','true','hasOwnProperty','template','366rhesje','store','search','dir','replaceAll','react','ssr','imports','vanilla','hook/hook.js','import\x20\x27./','relative','constructor','startup','/imports/ui/pages','lib','endsWith','<Route\x20element={<PrivateRoute\x20/>}>','setTemplate','201QgpWgg','none'];a135c=function(){return x;};return a135c();}const aliases=['p'];Generator[a135u(0xf4)]({'name':a135u(0xf8),'aliases':aliases,'usage':'maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','shortDesc':a135u(0xf0),'validOpts':[{'name':'private','boolFlag':!![]},{'name':a135u(0x119)}],'examples':[a135u(0x11f)]},async function(a,b){const v=a135u,c=v(0x132),d=this[v(0x102)][v(0x11c)](),e=b[v(0xfc)][v(0xf9)](':')?b[v(0xfc)][v(0xfe)](':')[0x0][v(0x11b)]():b[v(0xfc)][v(0x11b)](),f=b['dir'][v(0x128)]('/','_')+'_'+e['replaceAll']('/','_'),g=this[v(0x102)]['pathFromApp']({'pathParts':[c,b[v(0x127)],paramCase(f),paramCase(f)]}),h=this[v(0x102)][v(0xfd)]();let i='';return await this[v(0x102)][v(0xec)](h,async()=>{const w=v;typeof h['template'][w(0xf6)]===w(0x105)&&(h[w(0x123)][w(0xf6)]=h['template']['html']===w(0x121)?!![]:![],this[w(0x102)][w(0x136)](w(0xf6),h['template'][w(0xf6)]));typeof h[w(0x123)][w(0x11d)]===w(0x105)&&(h[w(0x123)]['test']=h['template'][w(0x11d)]==='true'?!![]:![],this[w(0x102)][w(0x136)](w(0x11d),h[w(0x123)][w(0x11d)]));typeof h['template']['css']==='string'&&(h[w(0x123)]['css']=h[w(0x123)][w(0xff)]===w(0x121)?!![]:![],this[w(0x102)][w(0x136)](w(0xff),h[w(0x123)][w(0xff)]));typeof h[w(0x123)]['js']===w(0x105)&&(h[w(0x123)]['js']=h[w(0x123)]['js']==='true'?!![]:![],this[w(0x102)][w(0x136)]('js',h[w(0x123)]['js']));!h[w(0x101)]&&(h['features']={});!b[w(0x11a)]&&!this[w(0x102)][w(0xfa)](w(0x10d))&&(Log[w(0xee)](w(0x10c)),this[w(0x102)][w(0x104)](w(0x10d),{'cwd':d}));const j={'name':pascalCase(f),'myPath':a135e[w(0x12f)](this[w(0x102)]['pathFromProject']({}),g),'cssCaseName':paramCase(f),'className':pascalCase(f),'camelCaseName':camelCase(f),'fileName':paramCase(f),'graphql':h[w(0x10a)][w(0xfb)],'features':h[w(0x101)],'client':h[w(0x10a)][w(0xe8)],'api':h[w(0x10a)]['api'],'ssr':h[w(0x10a)][w(0x12a)],'isStore':b[w(0x122)](w(0x125)),'isComponent':b[w(0x122)](w(0x117)),'isLayout':b['hasOwnProperty'](w(0x10b)),'withTranslations':h['features'][w(0x11e)],'test':h[w(0x10a)]['test'],'theme':h[w(0x10a)]['theme']};h[w(0x123)][w(0xf6)]&&await this[w(0x102)][w(0x123)]({'srcPath':w(0x13a),'destPath':g+'.html','context':j,'config':h});h[w(0x101)]?.['withHooks']?await this['fsi'][w(0x123)]({'srcPath':w(0x12d),'destPath':g+w(0xe7),'framework':'react','context':j,'config':h}):await this[w(0x102)][w(0x123)]({'srcPath':w(0x106),'destPath':g+w(0xe7),'framework':'react','context':j,'config':h});h[w(0x10a)][w(0x11d)]!==w(0x138)&&await this[w(0x102)][w(0x123)]({'srcPath':'test/test.js','destPath':g+w(0xeb),'framework':'react','context':j,'config':h});h[w(0x123)][w(0xff)]&&await this[w(0x102)][w(0x123)]({'srcPath':'template/template.css','destPath':g+'.css','context':Object[w(0x115)]({},j,{'className':paramCase(b['resourceName'])}),'config':h});h[w(0x10a)]['client']!==w(0x129)&&h['engines'][w(0xe8)]!==w(0x12c)?(h[w(0x123)][w(0xff)]&&await this[w(0x102)]['injectAtBeginningOfFile']({'filePath':g+'.'+h[w(0x10a)]['js'],'content':w(0x12e)+j[w(0x112)]+'.'+h[w(0x10a)]['html']+'\x27;\x0a'+w(0x12e)+j[w(0x112)]+'.'+h[w(0x10a)]['css']+'\x27;'}),!h['template']['css']&&await this['fsi'][w(0x10f)]({'filePath':g+'.'+h[w(0x10a)]['js'],'content':w(0x12e)+j[w(0x112)]+'.'+h['engines'][w(0xf6)]+'\x27;'})):h[w(0x123)]['css']&&await this['fsi'][w(0x10f)]({'filePath':g+'.'+h[w(0x10a)]['js'],'content':w(0x12e)+j[w(0x112)]+'.'+h[w(0x10a)][w(0xff)]+'\x27;'});const k=b[w(0x127)]?'/'+b[w(0x127)]+'/':'/';i=''+c+k+j[w(0x112)]+'/'+j[w(0x112)],await this[w(0x102)]['injectTemplateModule'](j['className'],h,i);if(!b[w(0x11a)]){const l=b[w(0x114)]??![];if(!f){Log[w(0x116)](w(0xf5));throw new UsageError();}let m=b[w(0x119)]?b[w(0x119)]:'/'+b[w(0x127)][w(0x11b)]()+'/'+b[w(0xfc)][w(0x11b)]()['replace'](/\\/g,'/')[w(0xe4)](/\/+$/,'')[w(0x109)]();const n=b[w(0xfc)][w(0xe9)](':');n!==-0x1&&(m+='/'+b[w(0xfc)]['substring'](0x0,n)['trim']());m[w(0x134)]('/')&&(m=m[w(0x10e)](0x0,-0x1));m=m['replace'](/\/\//g,'/');const o=h[w(0x10a)]['js'],p=h[w(0x10a)][w(0x12a)]===w(0x121)?w(0x133):w(0xe8),q=a135e[w(0xea)](d,w(0x12b),w(0x131),p,'routes.'+o);l?await this[w(0x102)]['injectIntoFile']({'filePath':q,'content':w(0x139)+m+'\x22\x20element={<Component.'+pascalCase(f)+'/>}/>\x0a','begin':[w(0x135)],'end':[w(0x118)]}):await this[w(0x102)][w(0xef)]({'filePath':q,'content':w(0x139)+m+w(0xf2)+pascalCase(f)+w(0xf7),'begin':['<Route\x20index'],'end':[w(0x110)]});}}),i+'.'+h[v(0x10a)]['js'];});
@@ -1 +1 @@
1
- const a136p=a136d;(function(a,b){const m=a136d,c=a();while(!![]){try{const d=-parseInt(m(0x1aa))/0x1+parseInt(m(0x1c4))/0x2*(parseInt(m(0x1bc))/0x3)+-parseInt(m(0x1b5))/0x4*(parseInt(m(0x1a5))/0x5)+-parseInt(m(0x1bb))/0x6*(parseInt(m(0x1b4))/0x7)+parseInt(m(0x1b1))/0x8+-parseInt(m(0x1be))/0x9*(-parseInt(m(0x1a9))/0xa)+parseInt(m(0x1ca))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a136c,0xd13c4));const a136b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a136d;if(c){const e=c[n(0x1b3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a136a=a136b(this,function(){const o=a136d;return a136a[o(0x1ba)]()[o(0x1ab)]('(((.+)+)+)+$')[o(0x1ba)]()[o(0x1bd)](a136a)[o(0x1ab)]('(((.+)+)+)+$');});a136a();function a136c(){const s=['globalPublish','imports','Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','getMakaProjectConfig','302Xgdcxa','appPathPrefix','baseDir','publish/publish.js','template','dir','4479321bVArGT','20EYKsYH','tsx','fsi','publish','370npxoLy','202374odtvfv','search','maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','resourceName','import\x20\x27./publications','pathFromApp','create','6351032sgKOHB','exit','apply','1589JPRqul','661756pCrPSQ','startup','engines','withValue','force','toString','31926hHdrqO','13614YksKTm','constructor','253629Ukkvyw','/imports/ui/'];a136c=function(){return s;};return a136c();}import{paramCase,pascalCase}from'change-case';function a136d(a,b){const c=a136c();return a136d=function(d,e){d=d-0x1a5;let f=c[d];return f;},a136d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a136p(0x1b0)]({'name':a136p(0x1a8),'aliases':['p'],'usage':a136p(0x1ac),'shortDesc':a136p(0x1c2),'validOpts':[a136p(0x1b9),'globalPublish'],'examples':['maka\x20g:publish\x20todos']},async function(a,b){const q=a136p;try{const c=b[q(0x1b9)]||![],d=b['baseDir']?q(0x1bf)+b[q(0x1c6)]:'/imports/startup/server/publications',f=this[q(0x1a7)][q(0x1c3)](),g=paramCase(b['resourceName']),h=this[q(0x1a7)][q(0x1af)]({'pathParts':[d,b[q(0x1c9)],'',g]});let i='js';f[q(0x1b7)]['js']===q(0x1a6)&&(i='ts');await this['fsi'][q(0x1b8)](f,async()=>{const r=q,l={'name':b[r(0x1ad)],'collection':pascalCase(b[r(0x1ad)]),'noRename':!![],'globalPublish':b[r(0x1c0)]};await this[r(0x1a7)][r(0x1c8)]({'srcPath':r(0x1c7),'destPath':h+'.'+i,'context':l,'config':f,'force':c});});const j=this[q(0x1a7)][q(0x1af)]({'pathParts':[q(0x1c1),q(0x1b6),'server',b[q(0x1c5)],'index.'+f[q(0x1b7)]['js']]}),k=b[q(0x1c9)]?'/'+b[q(0x1c9)]+'/':'/';return await this[q(0x1a7)]['injectAtEndOfFile']({'filePath':j,'content':q(0x1ae)+k+g+'\x27;'}),h+'.'+i;}catch(l){Log['error'](l),process[q(0x1b2)](0x1);}});
1
+ const a136p=a136d;(function(a,b){const m=a136d,c=a();while(!![]){try{const d=parseInt(m(0x121))/0x1+-parseInt(m(0x131))/0x2*(parseInt(m(0x12b))/0x3)+parseInt(m(0x133))/0x4+parseInt(m(0x117))/0x5*(parseInt(m(0x118))/0x6)+-parseInt(m(0x116))/0x7*(-parseInt(m(0x124))/0x8)+-parseInt(m(0x12c))/0x9+parseInt(m(0x111))/0xa*(-parseInt(m(0x120))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a136c,0x48404));const a136b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a136d;if(c){const e=c[n(0x138)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a136a=a136b(this,function(){const o=a136d;return a136a[o(0x134)]()[o(0x137)]('(((.+)+)+)+$')[o(0x134)]()[o(0x130)](a136a)[o(0x137)]('(((.+)+)+)+$');});function a136d(a,b){const c=a136c();return a136d=function(d,e){d=d-0x111;let f=c[d];return f;},a136d(a,b);}a136a();function a136c(){const s=['startup','search','apply','3210OnQcpr','globalPublish','publish','tsx','error','719383WtuVCK','475mlfWSF','18654gYajPg','index.','pathFromApp','baseDir','exit','dir','maka\x20g:publish\x20todos','import\x20\x27./publications','22011HUhQpv','568801JEYHKy','/imports/startup/server/publications','fsi','40IVvWXt','maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','force','appPathPrefix','injectAtEndOfFile','server','publish/publish.js','455199xXsZMy','4238001BDfVJQ','imports','getMakaProjectConfig','withValue','constructor','2RwmRMi','create','731528UTqomN','toString','resourceName'];a136c=function(){return s;};return a136c();}import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a136p(0x132)]({'name':a136p(0x113),'aliases':['p'],'usage':a136p(0x125),'shortDesc':'Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','validOpts':[a136p(0x126),a136p(0x112)],'examples':[a136p(0x11e)]},async function(a,b){const q=a136p;try{const c=b[q(0x126)]||![],d=b['baseDir']?'/imports/ui/'+b[q(0x11b)]:q(0x122),f=this['fsi'][q(0x12e)](),g=paramCase(b[q(0x135)]),h=this[q(0x123)][q(0x11a)]({'pathParts':[d,b[q(0x11d)],'',g]});let i='js';f['engines']['js']===q(0x114)&&(i='ts');await this[q(0x123)][q(0x12f)](f,async()=>{const r=q,l={'name':b['resourceName'],'collection':pascalCase(b[r(0x135)]),'noRename':!![],'globalPublish':b[r(0x112)]};await this['fsi']['template']({'srcPath':r(0x12a),'destPath':h+'.'+i,'context':l,'config':f,'force':c});});const j=this[q(0x123)][q(0x11a)]({'pathParts':[q(0x12d),q(0x136),q(0x129),b[q(0x127)],q(0x119)+f['engines']['js']]}),k=b[q(0x11d)]?'/'+b[q(0x11d)]+'/':'/';return await this[q(0x123)][q(0x128)]({'filePath':j,'content':q(0x11f)+k+g+'\x27;'}),h+'.'+i;}catch(l){Log[q(0x115)](l),process[q(0x11c)](0x1);}});
@@ -1 +1 @@
1
- const a137p=a137d;function a137d(a,b){const c=a137c();return a137d=function(d,e){d=d-0x118;let f=c[d];return f;},a137d(a,b);}(function(a,b){const m=a137d,c=a();while(!![]){try{const d=parseInt(m(0x12a))/0x1+-parseInt(m(0x140))/0x2+-parseInt(m(0x131))/0x3*(parseInt(m(0x118))/0x4)+parseInt(m(0x12e))/0x5+parseInt(m(0x127))/0x6*(-parseInt(m(0x126))/0x7)+-parseInt(m(0x121))/0x8+parseInt(m(0x13b))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a137c,0x66e29));const a137b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a137d;if(c){const e=c[n(0x12d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a137a=a137b(this,function(){const o=a137d;return a137a[o(0x12c)]()['search']('(((.+)+)+)+$')[o(0x12c)]()['constructor'](a137a)[o(0x128)](o(0x139));});function a137c(){const s=['\x22\x20element={<Component.','private','findAppDirectory','Please\x20specify\x20a\x20name\x20for\x20the\x20route.','ssr','getMakaProjectConfig','<Route\x20element={<PrivateRoute\x20/>}>','4451472uegWsS','fsi','<Route\x20path=\x22*\x22','join','injectIntoFile','28mcrGXa','874674GlOWlI','search','client','191301EIiYkc','maka\x20{generate,\x20g}:{route,\x20r}','toString','apply','3668520cZoJfa','engines','exit','179859tQsjcu','Scaffolding\x20for\x20a\x20Route.','<Route\x20index','toLowerCase','resourceName','route','pop','replace','(((.+)+)+)+$','withValue','9584361hviXhd','split','routes.','<Route\x20path=\x22','error','18592JQdZzp','28DDSJrk','/>}/>\x0a'];a137c=function(){return s;};return a137c();}a137a();import a137e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';import{pascalCase}from'change-case';const aliases=['r'];Generator['create']({'name':a137p(0x136),'mustBeInMakaProject':!![],'aliases':aliases,'validOpts':[{'name':a137p(0x11b),'boolFlag':!![]},{'name':'route'}],'usage':a137p(0x12b),'shortDesc':a137p(0x132),'examples':[]},async function(a,b){const q=a137p;try{const c=this[q(0x122)][q(0x11f)](),d=this[q(0x122)][q(0x11c)]();await this[q(0x122)][q(0x13a)](c,async()=>{const r=q,f=b[r(0x11b)]??![];let g=b[r(0x135)][r(0x13c)]('/')[r(0x137)]();if(!g){Log[r(0x13f)](r(0x11d));throw new UsageError();}g=pascalCase(g);let h=b[r(0x136)]?'/'+b[r(0x136)]:'/'+b['resourceName'][r(0x138)](/\\/g,'/')[r(0x134)]();a['length']>0x1&&(h='/'+a['filter'](function(l){return l!=='/';})[r(0x124)]('/')[r(0x134)]());h=h['replace'](/\/\//g,'/');const i=c[r(0x12f)]['js'],j=c[r(0x11e)]?'lib':r(0x129),k=a137e[r(0x124)](d,'imports','startup',j,r(0x13d)+i);f?await this[r(0x122)][r(0x125)]({'filePath':k,'content':'<Route\x20path=\x22'+h+'\x22\x20element={<Component.'+g+'/>}/>\x0a','begin':[r(0x120)],'end':['</Route>']}):await this[r(0x122)]['injectIntoFile']({'filePath':k,'content':r(0x13e)+h+r(0x11a)+g+r(0x119),'begin':[r(0x133)],'end':[r(0x123)]});});}catch(f){Log['error'](f),process[q(0x130)](0x1);}});
1
+ const a137p=a137d;(function(a,b){const m=a137d,c=a();while(!![]){try{const d=-parseInt(m(0xc6))/0x1*(-parseInt(m(0xe2))/0x2)+-parseInt(m(0xe7))/0x3+parseInt(m(0xe0))/0x4+-parseInt(m(0xc2))/0x5*(parseInt(m(0xe1))/0x6)+-parseInt(m(0xe8))/0x7*(-parseInt(m(0xd6))/0x8)+-parseInt(m(0xd5))/0x9+parseInt(m(0xd4))/0xa*(parseInt(m(0xdb))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a137c,0xc9a6b));const a137b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a137d;if(c){const e=c[n(0xcb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a137a=a137b(this,function(){const o=a137d;return a137a[o(0xc5)]()[o(0xd7)]('(((.+)+)+)+$')[o(0xc5)]()['constructor'](a137a)[o(0xd7)](o(0xe3));});a137a();import a137e from'path';import{Generator}from'../generator.js';function a137d(a,b){const c=a137c();return a137d=function(d,e){d=d-0xc1;let f=c[d];return f;},a137d(a,b);}import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';function a137c(){const s=['2258484oXJbKH','56vqdgLy','startup','50PsLJhO','/>}/>\x0a','private','toString','7321WSgunW','split','route','\x22\x20element={<Component.','length','apply','fsi','filter','</Route>','Please\x20specify\x20a\x20name\x20for\x20the\x20route.','withValue','client','replace','toLowerCase','90wuoVXd','6661602yuBGtp','1190752jDyjBi','search','<Route\x20path=\x22','injectIntoFile','maka\x20{generate,\x20g}:{route,\x20r}','314633UvUsLV','create','error','<Route\x20element={<PrivateRoute\x20/>}>','resourceName','1824364vogSiv','625308cKpmWC','398KnRgmu','(((.+)+)+)+$','join','imports','<Route\x20path=\x22*\x22'];a137c=function(){return s;};return a137c();}import{pascalCase}from'change-case';const aliases=['r'];Generator[a137p(0xdc)]({'name':a137p(0xc8),'mustBeInMakaProject':!![],'aliases':aliases,'validOpts':[{'name':a137p(0xc4),'boolFlag':!![]},{'name':'route'}],'usage':a137p(0xda),'shortDesc':'Scaffolding\x20for\x20a\x20Route.','examples':[]},async function(a,b){const q=a137p;try{const c=this[q(0xcc)]['getMakaProjectConfig'](),d=this[q(0xcc)]['findAppDirectory']();await this[q(0xcc)][q(0xd0)](c,async()=>{const r=q,f=b['private']??![];let g=b[r(0xdf)][r(0xc7)]('/')['pop']();if(!g){Log[r(0xdd)](r(0xcf));throw new UsageError();}g=pascalCase(g);let h=b[r(0xc8)]?'/'+b[r(0xc8)]:'/'+b['resourceName'][r(0xd2)](/\\/g,'/')[r(0xd3)]();a[r(0xca)]>0x1&&(h='/'+a[r(0xcd)](function(l){return l!=='/';})[r(0xe4)]('/')[r(0xd3)]());h=h[r(0xd2)](/\/\//g,'/');const i=c['engines']['js'],j=c['ssr']?'lib':r(0xd1),k=a137e[r(0xe4)](d,r(0xe5),r(0xc1),j,'routes.'+i);f?await this[r(0xcc)]['injectIntoFile']({'filePath':k,'content':r(0xd8)+h+r(0xc9)+g+r(0xc3),'begin':[r(0xde)],'end':[r(0xce)]}):await this['fsi'][r(0xd9)]({'filePath':k,'content':r(0xd8)+h+r(0xc9)+g+r(0xc3),'begin':['<Route\x20index'],'end':[r(0xe6)]});});}catch(f){Log[q(0xdd)](f),process['exit'](0x1);}});
@@ -1 +1 @@
1
- const a138m=a138d;(function(a,b){const j=a138d,c=a();while(!![]){try{const d=-parseInt(j(0x96))/0x1+parseInt(j(0x9f))/0x2*(parseInt(j(0xa6))/0x3)+-parseInt(j(0x9d))/0x4+-parseInt(j(0xa3))/0x5+-parseInt(j(0x91))/0x6+-parseInt(j(0x99))/0x7*(parseInt(j(0x9b))/0x8)+-parseInt(j(0x88))/0x9*(-parseInt(j(0x8d))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a138c,0x364e7));const a138b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a138d;if(c){const e=c[k(0x87)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a138a=a138b(this,function(){const l=a138d;return a138a[l(0x93)]()[l(0x8b)](l(0xa1))[l(0x93)]()['constructor'](a138a)[l(0x8b)](l(0xa1));});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-0x84;let f=c[d];return f;},a138d(a,b);}import{Log}from'../tools/log/log.class.js';Generator[a138m(0x9a)]({'name':a138m(0x8f),'aliases':[a138m(0xa5)],'usage':a138m(0xa4),'shortDesc':'Generate\x20a\x20service\x20to\x20run\x20within\x20your\x20meteor\x20application.','requiredOpts':[{'name':a138m(0x90),'values':[a138m(0x85)]}],'validOpts':[],'maxArgLength':0x1,'examples':[a138m(0xa2)]},async function(a,b){const n=a138m;try{const c=this[n(0x86)][n(0x8c)]();await this[n(0x86)][n(0xa8)](c,async()=>{const o=n,d=this[o(0x86)][o(0x84)]({}),f=paramCase(b[o(0x9c)]),g={'name':pascalCase(b[o(0x9c)]),'fileName':f,'camelCase':camelCase(b[o(0x9c)]),'type':b[o(0x90)],'engine':c[o(0x9e)]['js'],'noRename':!![]};let h='js';c['engines']['js']===o(0x89)&&(h='ts');if(b[o(0x90)]==='logger'){!this[o(0x86)]['checkNpmPackage'](o(0xa0))&&await this[o(0x86)][o(0xa7)](o(0x8a),{'cwd':d,'msg':o(0x97)});const i=this['fsi']['pathFromApp']({'pathParts':[o(0x92),o(0x95),o(0x8e),'services',f+'.'+h]});await this['fsi'][o(0x98)]({'srcPath':o(0x94),'destPath':i,'context':g,'config':c});}});}catch(d){Log['error'](d);}});function a138c(){const p=['service','type','2356032yJNNwt','imports','toString','service/logger/logger.js','startup','417161txowst','Installing\x20winston','template','728014ROzvRY','create','16BCGVSl','resourceName','1431136tDoXIb','engines','225332mfSMIk','winston','(((.+)+)+)+$','maka\x20g:svc\x20service-logger\x20--type=logger','717545uBLBHi','maka\x20{generate,\x20g}:{service}\x20<resource-name>','svc','9ffwFGU','installNpmPackage','withValue','pathFromApp','logger','fsi','apply','971703dyZoWG','tsx','winston\x20setimmediate','search','getMakaProjectConfig','130WRbecq','lib'];a138c=function(){return p;};return a138c();}
1
+ const a138m=a138d;function a138d(a,b){const c=a138c();return a138d=function(d,e){d=d-0xc1;let f=c[d];return f;},a138d(a,b);}(function(a,b){const j=a138d,c=a();while(!![]){try{const d=-parseInt(j(0xc1))/0x1*(parseInt(j(0xe0))/0x2)+parseInt(j(0xde))/0x3+parseInt(j(0xdb))/0x4+parseInt(j(0xdf))/0x5+-parseInt(j(0xd8))/0x6+-parseInt(j(0xc9))/0x7*(parseInt(j(0xd3))/0x8)+parseInt(j(0xc7))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a138c,0x74d39));const a138b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a138d;if(c){const e=c[k(0xd6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a138a=a138b(this,function(){const l=a138d;return a138a[l(0xca)]()[l(0xcf)]('(((.+)+)+)+$')['toString']()[l(0xe2)](a138a)[l(0xcf)](l(0xcc));});a138a();import{camelCase,paramCase,pascalCase}from'change-case';function a138c(){const p=['Installing\x20winston','resourceName','896553bXbylW','lib','973LZKfBM','toString','template','(((.+)+)+)+$','error','imports','search','fsi','installNpmPackage','pathFromApp','31712thvBop','logger','service','apply','winston\x20setimmediate','2337984qNuBXZ','type','startup','586208chPKbU','Generate\x20a\x20service\x20to\x20run\x20within\x20your\x20meteor\x20application.','maka\x20g:svc\x20service-logger\x20--type=logger','2029140nfUVxI','3251915IrGqst','2SpVGZK','withValue','constructor','services','engines','153751mdvNxX','winston','tsx','getMakaProjectConfig'];a138c=function(){return p;};return a138c();}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator['create']({'name':a138m(0xd5),'aliases':['svc'],'usage':'maka\x20{generate,\x20g}:{service}\x20<resource-name>','shortDesc':a138m(0xdc),'requiredOpts':[{'name':a138m(0xd9),'values':['logger']}],'validOpts':[],'maxArgLength':0x1,'examples':[a138m(0xdd)]},async function(a,b){const n=a138m;try{const c=this[n(0xd0)][n(0xc4)]();await this['fsi'][n(0xe1)](c,async()=>{const o=n,d=this[o(0xd0)][o(0xd2)]({}),f=paramCase(b[o(0xc6)]),g={'name':pascalCase(b[o(0xc6)]),'fileName':f,'camelCase':camelCase(b[o(0xc6)]),'type':b[o(0xd9)],'engine':c[o(0xe4)]['js'],'noRename':!![]};let h='js';c[o(0xe4)]['js']===o(0xc3)&&(h='ts');if(b['type']===o(0xd4)){!this['fsi']['checkNpmPackage'](o(0xc2))&&await this[o(0xd0)][o(0xd1)](o(0xd7),{'cwd':d,'msg':o(0xc5)});const i=this[o(0xd0)][o(0xd2)]({'pathParts':[o(0xce),o(0xda),o(0xc8),o(0xe3),f+'.'+h]});await this[o(0xd0)][o(0xcb)]({'srcPath':'service/logger/logger.js','destPath':i,'context':g,'config':c});}});}catch(d){Log[n(0xcd)](d);}});
@@ -1 +1 @@
1
- (function(a,b){var f=a139d,c=a();while(!![]){try{var d=-parseInt(f(0x110))/0x1*(-parseInt(f(0x111))/0x2)+parseInt(f(0x117))/0x3+-parseInt(f(0x119))/0x4+parseInt(f(0x10d))/0x5*(parseInt(f(0x113))/0x6)+-parseInt(f(0x10f))/0x7+parseInt(f(0x115))/0x8*(parseInt(f(0x11b))/0x9)+-parseInt(f(0x11a))/0xa*(-parseInt(f(0x114))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a139c,0x5d0f0));var a139b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a139d;if(c){var e=c[g(0x10c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a139a=a139b(this,function(){var h=a139d;return a139a['toString']()[h(0x10e)](h(0x116))[h(0x112)]()[h(0x118)](a139a)['search'](h(0x116));});a139a();import'./translation.js';function a139d(a,b){var c=a139c();return a139d=function(d,e){d=d-0x10c;var f=c[d];return f;},a139d(a,b);}import'./openssl.js';function a139c(){var i=['apply','27415zjRGlr','search','1332863ONpPtr','1bTkzhb','155426MdMoPU','toString','138BcwWrT','7249CPAdZv','1244024hDviRc','(((.+)+)+)+$','1139640bbPKgd','constructor','1796000dGsuyU','1910PbvWXF','18oOEqZV'];a139c=function(){return i;};return a139c();}
1
+ (function(a,b){var f=a139d,c=a();while(!![]){try{var d=-parseInt(f(0xed))/0x1*(-parseInt(f(0xea))/0x2)+parseInt(f(0xf7))/0x3*(-parseInt(f(0xe7))/0x4)+parseInt(f(0xec))/0x5*(parseInt(f(0xe8))/0x6)+-parseInt(f(0xf4))/0x7*(-parseInt(f(0xf8))/0x8)+-parseInt(f(0xe9))/0x9*(-parseInt(f(0xf1))/0xa)+parseInt(f(0xee))/0xb+parseInt(f(0xf2))/0xc*(-parseInt(f(0xf0))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a139c,0x459a3));function a139c(){var i=['253502WDdqpA','constructor','565kxphfP','2JyUaIE','4729604KMsOUR','(((.+)+)+)+$','2756XlIQvF','111310kctXob','59544vOpUeT','toString','2230795DZpWcq','apply','search','1087347qZvLrA','8fsYUpl','4ikCzPw','25206XzWKJk','180lcenuh'];a139c=function(){return i;};return a139c();}function a139d(a,b){var c=a139c();return a139d=function(d,e){d=d-0xe7;var f=c[d];return f;},a139d(a,b);}var a139b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a139d;if(c){var e=c[g(0xf5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a139a=a139b(this,function(){var h=a139d;return a139a[h(0xf3)]()[h(0xf6)](h(0xef))[h(0xf3)]()[h(0xeb)](a139a)[h(0xf6)](h(0xef));});a139a();import'./translation.js';import'./openssl.js';
@@ -1 +1 @@
1
- const a140l=a140d;(function(a,b){const i=a140d,c=a();while(!![]){try{const d=parseInt(i(0x17e))/0x1*(-parseInt(i(0x184))/0x2)+-parseInt(i(0x187))/0x3*(parseInt(i(0x179))/0x4)+parseInt(i(0x17f))/0x5+parseInt(i(0x176))/0x6+-parseInt(i(0x18c))/0x7*(-parseInt(i(0x185))/0x8)+-parseInt(i(0x188))/0x9+parseInt(i(0x17d))/0xa*(parseInt(i(0x173))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a140c,0x94000));const a140b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a140d;if(c){const e=c[j(0x16e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a140a=a140b(this,function(){const k=a140d;return a140a['toString']()['search'](k(0x16f))[k(0x186)]()['constructor'](a140a)[k(0x18a)]('(((.+)+)+)+$');});a140a();import{Generator}from'../../generator.js';function a140c(){const o=['join','fsi','10prmPuf','374606xCTyQp','1328940bsDuXN','maka\x20g:sslconfig\x20--env\x20dev','openssl.conf','openssl/openssl.conf','template','4TdcdDf','40aClYNw','toString','1530822apIoyI','956232KgMbZD','withValue','search','Generate\x20a\x20new\x20openssl\x20config\x20file','946939sBBysk','apply','(((.+)+)+)+$','error','getMakaProjectConfig','appName','9473497VaUNZi','maka\x20{generate,\x20g}:sslconfig','sslconfig','4072896nfFywi','getGlobalConfig','env','8DASvgW','_keys'];a140c=function(){return o;};return a140c();}function a140d(a,b){const c=a140c();return a140d=function(d,e){d=d-0x16e;let f=c[d];return f;},a140d(a,b);}import{Log}from'../../tools/log/log.class.js';import a140e from'path';Generator['create']({'name':a140l(0x175),'usage':a140l(0x174),'shortDesc':a140l(0x18b),'noNeedResource':!![],'requiredOpts':['env'],'examples':[a140l(0x180)],'validOpts':[]},async function(a,b){const m=a140l;try{const c=await this[m(0x17c)][m(0x171)](),d=await this[m(0x17c)][m(0x177)](),f=this[m(0x17c)]['getAppConfigPath'](b[m(0x178)]),g=a140e[m(0x17b)](f,m(0x17a),m(0x181));await this[m(0x17c)][m(0x189)](c,async()=>{const n=m,h={'app':d[n(0x172)],'noRename':!![]};await this[n(0x17c)][n(0x183)]({'srcPath':n(0x182),'destPath':g,'framework':'service','context':h,'config':c});});}catch(h){Log[m(0x170)](h);}});
1
+ const a140k=a140d;(function(a,b){const i=a140d,c=a();while(!![]){try{const d=-parseInt(i(0x1c9))/0x1+parseInt(i(0x1b6))/0x2*(parseInt(i(0x1bb))/0x3)+-parseInt(i(0x1be))/0x4+-parseInt(i(0x1c6))/0x5+parseInt(i(0x1c7))/0x6+-parseInt(i(0x1c2))/0x7*(parseInt(i(0x1cc))/0x8)+parseInt(i(0x1c1))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a140c,0xc011f));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['toString']()[j(0x1b7)]('(((.+)+)+)+$')[j(0x1cf)]()['constructor'](a140a)['search'](j(0x1ce));});function a140d(a,b){const c=a140c();return a140d=function(d,e){d=d-0x1b6;let f=c[d];return f;},a140d(a,b);}a140a();import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';function a140c(){const n=['maka\x20g:sslconfig\x20--env\x20dev','Generate\x20a\x20new\x20openssl\x20config\x20file','8009685NkwibF','746011HbMwEv','getGlobalConfig','create','join','1786930AIhVuC','7932840kqfIVP','openssl.conf','1191394ODTorf','maka\x20{generate,\x20g}:sslconfig','getMakaProjectConfig','56UeHskt','template','(((.+)+)+)+$','toString','34aqWKsZ','search','appName','openssl/openssl.conf','sslconfig','273534ilaAnl','env','fsi','2722484wszzCd'];a140c=function(){return n;};return a140c();}import a140e from'path';Generator[a140k(0x1c4)]({'name':a140k(0x1ba),'usage':a140k(0x1ca),'shortDesc':a140k(0x1c0),'noNeedResource':!![],'requiredOpts':[a140k(0x1bc)],'examples':[a140k(0x1bf)],'validOpts':[]},async function(a,b){const l=a140k;try{const c=await this[l(0x1bd)][l(0x1cb)](),d=await this[l(0x1bd)][l(0x1c3)](),f=this[l(0x1bd)]['getAppConfigPath'](b[l(0x1bc)]),g=a140e[l(0x1c5)](f,'_keys',l(0x1c8));await this[l(0x1bd)]['withValue'](c,async()=>{const m=l,h={'app':d[m(0x1b8)],'noRename':!![]};await this[m(0x1bd)][m(0x1cd)]({'srcPath':m(0x1b9),'destPath':g,'framework':'service','context':h,'config':c});});}catch(h){Log['error'](h);}});
@@ -1 +1 @@
1
- const a141z=a141d;(function(a,b){const x=a141d,c=a();while(!![]){try{const d=parseInt(x(0x191))/0x1+-parseInt(x(0x188))/0x2*(parseInt(x(0x195))/0x3)+parseInt(x(0x17a))/0x4+parseInt(x(0x1a3))/0x5+-parseInt(x(0x19d))/0x6+-parseInt(x(0x177))/0x7*(parseInt(x(0x19f))/0x8)+parseInt(x(0x16e))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a141c,0xc2c2d));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(0x19b)]()[y(0x189)](y(0x194))[y(0x19b)]()[y(0x1a5)](a141a)[y(0x189)](y(0x194));});function a141d(a,b){const c=a141c();return a141d=function(d,e){d=d-0x169;let f=c[d];return f;},a141d(a,b);}a141a();import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';function a141c(){const C=['server','index.js','root','lib','template','grep','Locale\x20already\x20defined:\x20','77KBRryx','engines','getGlobalConfig','5733304XkkBIE','startup','isFile','getMakaProjectConfig','true','lang','Verifying\x20npm\x20package\x20requirements:\x20i18next\x20...','i18n/index.js','i18n/locales.js','fsi','service','readFileSync','rewriteDestinationPathForEngine','maka\x20{generate,\x20g}:translation','68AZcNDu','search','default\x20as\x20','create','translations','translation','withValue','maka\x20g:translation\x20--lang=en\x20(default)','imports','260716OXDALA','injectAtBeginningOfFile','installNpmPackage','(((.+)+)+)+$','105129cMpoUp','i18n/i18n.js','appName','setProjectConfig','client','checkNpmPackage','toString','services','3669204CBOrQx','warn','410664moxeit','error','.js','injectAtEndOfFile','848250cbjuqg','maka\x20g:translation\x20--lang=de','constructor','import\x20\x27../lib/services/translations/i18n\x27;','\x20}\x20from\x20\x27./','i18next','locales','import\x20\x27../lib/services/translations/i18n\x27;\x0a','findAppDirectory','export\x20{\x20default\x20as\x20','i18next\x20i18next-browser-languagedetector\x20react-i18next','exit','maka\x20g:translation\x20--lang=fr','11715372XAYTbA','pathFromApp'];a141c=function(){return C;};return a141c();}import a141e from'fs';Generator[a141z(0x18b)]({'name':a141z(0x18d),'usage':a141z(0x187),'aliases':['t'],'noNeedResource':!![],'requiredOpts':[{'name':a141z(0x17f),'boolFlag':![],'regex':/^[a-z]{2}$/}],'shortDesc':'Generate\x20a\x20new\x20locale\x20translation','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(0x18f),a141z(0x16d),a141z(0x1a4)],'validOpts':[]},async function(a,b){const A=a141z;try{const c=this['fsi'][A(0x17d)](),d=this[A(0x183)][A(0x179)](),f=this[A(0x183)][A(0x169)]();await this[A(0x183)][A(0x18e)](c,async()=>{const B=A;try{!b[B(0x17f)]&&(b['lang']='en');!b[B(0x172)]&&!this[B(0x183)][B(0x19a)](B(0x1a8))&&(Log[B(0x19e)](B(0x180)),this['fsi'][B(0x193)](B(0x16b),{'cwd':f}),this[B(0x183)][B(0x198)]('features.withTranslations',!![]));const g=this[B(0x183)][B(0x16f)]({'pathParts':[B(0x190),B(0x17b),B(0x199),'index.js']}),h=this['fsi']['rewriteDestinationPathForEngine']({'pathParts':[g],'config':c}),i=this[B(0x183)][B(0x175)](a141e[B(0x185)](h)['toString'](),B(0x1a6))[0x0]&&!![];if(c[B(0x178)]['ssr']===B(0x17e)){!i&&this[B(0x183)][B(0x192)]({'filePath':h,'content':'import\x20\x27../lib/services/translations/i18n\x27;\x0a'});const t=this[B(0x183)]['pathFromApp']({'pathParts':['imports',B(0x17b),B(0x170),B(0x171)]}),u=this[B(0x183)]['rewriteDestinationPathForEngine']({'pathParts':[t],'config':c}),v=this[B(0x183)][B(0x175)](a141e[B(0x185)](u)['toString'](),'import\x20\x27../lib/services/translations/i18n\x27;')[0x0]&&!![];!v&&this['fsi'][B(0x192)]({'filePath':u,'content':B(0x1aa)});}else!i&&this[B(0x183)][B(0x192)]({'filePath':h,'content':B(0x1aa)});const j={'app':d[B(0x197)],'config':c},k=this[B(0x183)]['pathFromApp']({'pathParts':[B(0x190),B(0x17b),'lib',B(0x19c),'translations','i18n.js']}),l=this[B(0x183)][B(0x17c)](this[B(0x183)][B(0x186)]({'pathParts':[k],'config':c}));!l&&await this[B(0x183)][B(0x174)]({'srcPath':B(0x196),'destPath':k,'framework':B(0x184),'context':j,'config':c});const m=this['fsi'][B(0x16f)]({'pathParts':[B(0x190),'startup',B(0x173),B(0x19c),B(0x18c),'locales',b[B(0x17f)]+B(0x1a1)]}),n=this['fsi'][B(0x186)]({'pathParts':[m],'config':c}),o=this[B(0x183)][B(0x17c)](n);!o?await this['fsi'][B(0x174)]({'srcPath':B(0x182),'destPath':m,'framework':'service','context':j,'config':c}):Log[B(0x19e)](B(0x176)+n);const p=this[B(0x183)][B(0x16f)]({'pathParts':[B(0x190),B(0x17b),'lib',B(0x19c),'translations',B(0x1a9),'index.'+c[B(0x178)]['js']]}),q=this['fsi'][B(0x186)]({'pathParts':[p],'config':c}),r=this[B(0x183)][B(0x17c)](q);!r&&await this[B(0x183)][B(0x174)]({'srcPath':B(0x181),'destPath':p,'framework':B(0x184),'context':j,'config':c});const s=this[B(0x183)][B(0x175)](a141e[B(0x185)](p)[B(0x19b)](),B(0x18a)+b['lang'])[0x0]&&!![];!s?await this['fsi'][B(0x1a2)]({'filePath':p,'content':B(0x16a)+b[B(0x17f)]+B(0x1a7)+b[B(0x17f)]+'\x27;'}):Log[B(0x19e)]('Locale\x20already\x20exported:\x20'+p);}catch(w){Log[B(0x1a0)](w),process[B(0x16c)](0x1);}});}catch(g){Log['error'](g),process['exit'](0x1);}});
1
+ const a141z=a141d;(function(a,b){const x=a141d,c=a();while(!![]){try{const d=-parseInt(x(0xc0))/0x1*(parseInt(x(0xbc))/0x2)+-parseInt(x(0xb8))/0x3*(-parseInt(x(0xa8))/0x4)+-parseInt(x(0xba))/0x5+parseInt(x(0xd0))/0x6+parseInt(x(0xb4))/0x7*(parseInt(x(0xde))/0x8)+-parseInt(x(0xb9))/0x9+-parseInt(x(0xbf))/0xa*(-parseInt(x(0xc1))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a141c,0xbbc17));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(0xb7)]()[y(0xd2)](y(0xa4))[y(0xb7)]()['constructor'](a141a)['search'](y(0xa4));});a141a();function a141c(){const C=['pathFromApp','template','client','i18n.js','checkNpmPackage','injectAtBeginningOfFile','error','maka\x20g:translation\x20--lang=de','1496688uXLfTQ','imports','search','Generate\x20a\x20new\x20locale\x20translation','findAppDirectory','server','service','appName','maka\x20g:translation\x20--lang=fr','injectAtEndOfFile','true','Verifying\x20npm\x20package\x20requirements:\x20i18next\x20...','root','i18n/locales.js','8JyQcaM','translations','isFile','(((.+)+)+)+$','lib','exit','i18next\x20i18next-browser-languagedetector\x20react-i18next','8TgmODa','\x20}\x20from\x20\x27./','lang','i18n/index.js','ssr','export\x20{\x20default\x20as\x20','Locale\x20already\x20exported:\x20','index.js','import\x20\x27../lib/services/translations/i18n\x27;','startup','.js','import\x20\x27../lib/services/translations/i18n\x27;\x0a','4034093qlmLkG','fsi','engines','toString','1405446quIKLS','6143697GvYyKZ','4691330Snlfbo','grep','153922jskFWn','readFileSync','features.withTranslations','1356440kxFCEp','13iZxgYh','132nXJPND','rewriteDestinationPathForEngine','warn','services','Locale\x20already\x20defined:\x20','i18n/i18n.js','index.'];a141c=function(){return C;};return a141c();}import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';import a141e from'fs';function a141d(a,b){const c=a141c();return a141d=function(d,e){d=d-0xa2;let f=c[d];return f;},a141d(a,b);}Generator['create']({'name':'translation','usage':'maka\x20{generate,\x20g}:translation','aliases':['t'],'noNeedResource':!![],'requiredOpts':[{'name':a141z(0xaa),'boolFlag':![],'regex':/^[a-z]{2}$/}],'shortDesc':a141z(0xd3),'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':['maka\x20g:translation\x20--lang=en\x20(default)',a141z(0xd8),a141z(0xcf)],'validOpts':[]},async function(a,b){const A=a141z;try{const c=this['fsi']['getMakaProjectConfig'](),d=this['fsi']['getGlobalConfig'](),f=this[A(0xb5)][A(0xd4)]();await this[A(0xb5)]['withValue'](c,async()=>{const B=A;try{!b[B(0xaa)]&&(b[B(0xaa)]='en');!b[B(0xdc)]&&!this[B(0xb5)][B(0xcc)]('i18next')&&(Log[B(0xc3)](B(0xdb)),this[B(0xb5)]['installNpmPackage'](B(0xa7),{'cwd':f}),this[B(0xb5)]['setProjectConfig'](B(0xbe),!![]));const g=this[B(0xb5)][B(0xc8)]({'pathParts':['imports','startup',B(0xca),B(0xaf)]}),h=this[B(0xb5)][B(0xc2)]({'pathParts':[g],'config':c}),i=this[B(0xb5)][B(0xbb)](a141e[B(0xbd)](h)[B(0xb7)](),B(0xb0))[0x0]&&!![];if(c[B(0xb6)][B(0xac)]===B(0xda)){!i&&this[B(0xb5)][B(0xcd)]({'filePath':h,'content':B(0xb3)});const t=this[B(0xb5)][B(0xc8)]({'pathParts':['imports',B(0xb1),B(0xd5),B(0xaf)]}),u=this[B(0xb5)]['rewriteDestinationPathForEngine']({'pathParts':[t],'config':c}),v=this[B(0xb5)][B(0xbb)](a141e[B(0xbd)](u)[B(0xb7)](),B(0xb0))[0x0]&&!![];!v&&this[B(0xb5)]['injectAtBeginningOfFile']({'filePath':u,'content':B(0xb3)});}else!i&&this[B(0xb5)][B(0xcd)]({'filePath':h,'content':B(0xb3)});const j={'app':d[B(0xd7)],'config':c},k=this[B(0xb5)][B(0xc8)]({'pathParts':['imports',B(0xb1),B(0xa5),B(0xc4),B(0xa2),B(0xcb)]}),l=this['fsi']['isFile'](this['fsi'][B(0xc2)]({'pathParts':[k],'config':c}));!l&&await this[B(0xb5)][B(0xc9)]({'srcPath':B(0xc6),'destPath':k,'framework':B(0xd6),'context':j,'config':c});const m=this[B(0xb5)]['pathFromApp']({'pathParts':['imports',B(0xb1),B(0xa5),B(0xc4),B(0xa2),'locales',b['lang']+B(0xb2)]}),n=this['fsi']['rewriteDestinationPathForEngine']({'pathParts':[m],'config':c}),o=this[B(0xb5)][B(0xa3)](n);!o?await this[B(0xb5)][B(0xc9)]({'srcPath':B(0xdd),'destPath':m,'framework':B(0xd6),'context':j,'config':c}):Log[B(0xc3)](B(0xc5)+n);const p=this[B(0xb5)][B(0xc8)]({'pathParts':[B(0xd1),B(0xb1),B(0xa5),'services','translations','locales',B(0xc7)+c['engines']['js']]}),q=this[B(0xb5)]['rewriteDestinationPathForEngine']({'pathParts':[p],'config':c}),r=this[B(0xb5)]['isFile'](q);!r&&await this[B(0xb5)][B(0xc9)]({'srcPath':B(0xab),'destPath':p,'framework':'service','context':j,'config':c});const s=this[B(0xb5)][B(0xbb)](a141e['readFileSync'](p)[B(0xb7)](),'default\x20as\x20'+b['lang'])[0x0]&&!![];!s?await this[B(0xb5)][B(0xd9)]({'filePath':p,'content':B(0xad)+b['lang']+B(0xa9)+b[B(0xaa)]+'\x27;'}):Log['warn'](B(0xae)+p);}catch(w){Log['error'](w),process[B(0xa6)](0x1);}});}catch(g){Log[A(0xce)](g),process[A(0xa6)](0x1);}});
@@ -1 +1 @@
1
- const a142m=a142d;(function(a,b){const j=a142d,c=a();while(!![]){try{const d=parseInt(j(0x1a7))/0x1*(-parseInt(j(0x1ae))/0x2)+-parseInt(j(0x1a3))/0x3*(parseInt(j(0x1a5))/0x4)+parseInt(j(0x1a0))/0x5+parseInt(j(0x1ad))/0x6+-parseInt(j(0x1aa))/0x7*(parseInt(j(0x1b5))/0x8)+parseInt(j(0x1ac))/0x9+parseInt(j(0x1ab))/0xa*(parseInt(j(0x1b9))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a142c,0xbb07c));const a142b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a142d;if(c){const e=c[k(0x1b8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a142a=a142b(this,function(){const l=a142d;return a142a[l(0x1a9)]()[l(0x1b4)](l(0x1b1))[l(0x1a9)]()[l(0x1b3)](a142a)[l(0x1b4)](l(0x1b1));});a142a();function a142d(a,b){const c=a142c();return a142d=function(d,e){d=d-0x1a0;let f=c[d];return f;},a142d(a,b);}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(0x1b2)]),__dirname=a142g[a142m(0x1a6)](__filename);global[a142m(0x1a2)]=__dirname;const total_memory=a142f['totalmem'](),total_mem_in_kb=total_memory/0x400;let total_mem_in_mb=total_mem_in_kb/0x400;total_mem_in_mb=Math[a142m(0x1b7)](total_mem_in_mb),process[a142m(0x1af)][a142m(0x1ba)]=a142m(0x1a1)+total_mem_in_mb,process[a142m(0x1af)]['BROWSERSLIST_IGNORE_OLD_DATA']='1',process['env']['NODE_NO_WARNINGS']='1';function a142c(){const n=['dirname','33589XwFhUr','parse','toString','35NsocgA','323270KrsHtZ','1846755IBEHsU','8859600vAdzkB','80kuYxhJ','env','stringify','(((.+)+)+)+$','url','constructor','search','1424912zwanln','slice','floor','apply','319CwYPzj','TOOL_NODE_FLAGS','4249805rkGuvj','--max-old-space-size=','MAKA_COMMAND_PATH','3xbpHqJ','run','1876132RuFviU'];a142c=function(){return n;};return a142c();}const argv=a142e(process['argv'][a142m(0x1b6)](0x2)),args=argv['_'],deepCopyArgv=JSON[a142m(0x1a8)](JSON[a142m(0x1b0)](argv));delete deepCopyArgv['_'];const opts=a142h['camelizeKeys'](deepCopyArgv);a142i[a142m(0x1a4)](args,opts);
1
+ const a142m=a142d;(function(a,b){const j=a142d,c=a();while(!![]){try{const d=-parseInt(j(0x15a))/0x1+-parseInt(j(0x155))/0x2*(parseInt(j(0x157))/0x3)+parseInt(j(0x164))/0x4*(-parseInt(j(0x159))/0x5)+parseInt(j(0x172))/0x6*(-parseInt(j(0x166))/0x7)+parseInt(j(0x167))/0x8*(parseInt(j(0x161))/0x9)+-parseInt(j(0x16f))/0xa+parseInt(j(0x15e))/0xb*(parseInt(j(0x15b))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a142c,0x7d510));const a142b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a142d;if(c){const e=c[k(0x16e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a142a=a142b(this,function(){const l=a142d;return a142a['toString']()[l(0x163)](l(0x15d))['toString']()[l(0x169)](a142a)[l(0x163)]('(((.+)+)+)+$');});a142a();import a142e from'minimist';function a142c(){const n=['49uYhzsE','1617712ROXiCm','TOOL_NODE_FLAGS','constructor','url','floor','camelizeKeys','--max-old-space-size=','apply','435920lzftjD','parse','slice','607254TIhYae','4IehgbC','BROWSERSLIST_IGNORE_OLD_DATA','216294KHxozr','dirname','85GjthPL','508139ennyTV','152052wamCuj','env','(((.+)+)+)+$','2123BtigYt','MAKA_COMMAND_PATH','stringify','9qqgnNN','totalmem','search','171772hWqHOU','run'];a142c=function(){return n;};return a142c();}import a142f from'os';function a142d(a,b){const c=a142c();return a142d=function(d,e){d=d-0x155;let f=c[d];return f;},a142d(a,b);}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(0x16a)]),__dirname=a142g[a142m(0x158)](__filename);global[a142m(0x15f)]=__dirname;const total_memory=a142f[a142m(0x162)](),total_mem_in_kb=total_memory/0x400;let total_mem_in_mb=total_mem_in_kb/0x400;total_mem_in_mb=Math[a142m(0x16b)](total_mem_in_mb),process[a142m(0x15c)][a142m(0x168)]=a142m(0x16d)+total_mem_in_mb,process[a142m(0x15c)][a142m(0x156)]='1',process[a142m(0x15c)]['NODE_NO_WARNINGS']='1';const argv=a142e(process['argv'][a142m(0x171)](0x2)),args=argv['_'],deepCopyArgv=JSON[a142m(0x170)](JSON[a142m(0x160)](argv));delete deepCopyArgv['_'];const opts=a142h[a142m(0x16c)](deepCopyArgv);a142i[a142m(0x165)](args,opts);
@@ -45,7 +45,7 @@ class <%= className %> extends Component {
45
45
  const { t } = this.props;<% } %>
46
46
  return (
47
47
  <div id="<%= cssCaseName %>">
48
- <% if (isLayout) { %><Outlet/><% } else if (withTranslations) { %><h2>{t('example', { page: '<%= myPath %>' } )}</h2><% } else { %><h2>Find me in <%= myPath %></h2><% } %>
48
+ <% if (isLayout) { %><Outlet /><% } else if (withTranslations) { %><h2>{t('example', { page: '<%= myPath %>' } )}</h2><% } else { %><h2>Find me in <%= myPath %></h2><% } %>
49
49
  </div>
50
50
  );
51
51
  }
@@ -50,7 +50,7 @@ class <%= className %> extends React.Component<I<%= className %>> {
50
50
  const { t } = this.props;<% } %>
51
51
  return (
52
52
  <div id="<%= cssCaseName %>">
53
- <% if (isLayout) { %><Outlet/><% } else if (withTranslations) { %><h2>{t('example', { page: '<%= myPath %>' } )}</h2><% } else { %><h2>Find me in <%= myPath %></h2><% } %>
53
+ <% if (isLayout) { %><Outlet /><% } else if (withTranslations) { %><h2>{t('example', { page: '<%= myPath %>' } )}</h2><% } else { %><h2>Find me in <%= myPath %></h2><% } %>
54
54
  </div>
55
55
  );
56
56
  }
@@ -10,7 +10,7 @@ function <%= className %>(props) {
10
10
 
11
11
  return (
12
12
  <div id="<%= cssCaseName %>">
13
- <% if (isLayout) { %><Outlet/><% } else if (withTranslations) { %><h2>{t('example', { page: '<%= myPath %>' } )}</h2><% } else { %><h2>Find me in <%= myPath %></h2><% } %>
13
+ <% if (isLayout) { %><Outlet /><% } else if (withTranslations) { %><h2>{t('example', { page: '<%= myPath %>' } )}</h2><% } else { %><h2>Find me in <%= myPath %></h2><% } %>
14
14
  </div>
15
15
  );
16
16
  }
@@ -1 +1 @@
1
- function a143d(a,b){const c=a143c();return a143d=function(d,e){d=d-0x19b;let f=c[d];return f;},a143d(a,b);}const a143L=a143d;function a143c(){const a3=['Invalid\x20argument:\x20','homedir','find','NIE','search','list','map','apply','\x20version\x20','concat','resourceName','help','string','every','Please\x20choose\x20a\x20valid\x20value\x20for\x20','validateMeteorInstall','No\x20description\x20provided.','keys','examples','6097520cYCwDf','(((.+)+)+)+$','local','ask','isPro','proCommands','platform','759742MSkNqx','assign','experimental','docker','AppData','constructor','204024QZMCCZ','formatToNamedParam','push','usage','remapShortToLong','validateMakaSubscription','engines','cwd','error','Please\x20choose\x20an\x20environment','options','description','5600225ZCKqXH','validateParams','config','shortDesc','License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.meteor/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.','proGenerators','existsSync','\x20installed\x20to\x20use\x20this\x20command.','toString','validateMakaProject','Invalid\x20option:\x20','findProjectDirectory','getAppProjectConfigs','8931750uWOyYe','filter','aliases','isCommand','Invalid\x20value\x20for\x20','.meteor','exit','roles','No\x20usage\x20provided.','getShortName','fsi','parent','This\x20command\x20needs\x20a\x20higher\x20environment\x20to\x20run\x20(other\x20than\x20local).\x20Please\x20create\x20a\x20new\x20environment;\x20`maka\x20g:config\x20development`','getMakaProjectConfig','You\x20must\x20have\x20','72XOiLKG','dir','Please\x20provide\x20a\x20value\x20for\x20','Please\x20provide\x20a\x20valid\x20argument\x20for\x20','1393980zWsGRn','name','length','env','match','join','singleLicense','590359uuEIDH','\x22,\x20please\x20upgrade\x20to\x20PRO\x20by\x20becoming\x20a\x20pateron\x20@\x20patreon.com/user?u=110174702,\x20then\x20issue:\x20\x27maka\x20login\x27','includes'];a143c=function(){return a3;};return a143c();}(function(a,b){const I=a143d,c=a();while(!![]){try{const d=parseInt(I(0x1e1))/0x1+-parseInt(I(0x1bd))/0x2+parseInt(I(0x1e7))/0x3*(-parseInt(I(0x1b9))/0x4)+parseInt(I(0x19d))/0x5+parseInt(I(0x1aa))/0x6+parseInt(I(0x1c4))/0x7+-parseInt(I(0x1da))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a143c,0xbbd91));const a143b=(function(){let a=!![];return function(b,c){const d=a?function(){const J=a143d;if(c){const e=c[J(0x1ce)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a143a=a143b(this,function(){const K=a143d;return a143a[K(0x1a5)]()[K(0x1cb)](K(0x1db))[K(0x1a5)]()[K(0x1e6)](a143a)[K(0x1cb)](K(0x1db));});a143a();import a143e from'path';import a143f from'os';import a143g from'fs';const homeDir=a143f[a143L(0x1c8)]();import{Docker}from'./tools/docker/docker.class.js';import{FSI}from'./tools/fsi/fsi.class.js';import{Log}from'./tools/log/log.class.js';import{Actions}from'./tools/actions/actions.class.js';import{UsageError}from'./error.js';export class Tool{[a143L(0x1e4)];[a143L(0x1b4)];[a143L(0x19b)];[a143L(0x1be)];[a143L(0x1b5)];['_handler'];constructor(){const M=a143L;this[M(0x1e4)]=new Docker(),this['fsi']=new FSI();}[a143L(0x1b3)](a){return a['charAt'](0x0);}[a143L(0x1eb)](a,b){const N=a143L,c=this[N(0x1e8)](b),d={...a};for(const e of c){const f=this[N(0x1b3)](e[N(0x1be)]);a[f]&&(d[e[N(0x1be)]]=a[f],delete d[f]);}return d;}[a143L(0x1e8)](a){const O=a143L;if(a[O(0x1d4)](b=>typeof b===O(0x1d3)))return a[O(0x1cd)](b=>({'name':b}));return a;}[a143L(0x1c1)](a){const P=a143L,b=[this[P(0x1be)]][P(0x1d0)](this[P(0x19b)]['aliases']||[]);return this['parent']&&b[P(0x1e9)](this['parent']),b[P(0x1c6)](a);}[a143L(0x1a6)](){const Q=a143L,a=this[Q(0x1b4)][Q(0x1a8)]();return a!==![]?!![]:![];}async['validateUserIsLoggedIn'](){return!![];}[a143L(0x1d6)](){const R=a143L,a=process[R(0x1e0)]==='win32';if(a){if(!a143g[R(0x1a3)](a143e[R(0x1c2)](homeDir,R(0x1e5),'Local',R(0x1af))))return![];}else{if(!a143g[R(0x1a3)](a143e[R(0x1c2)](homeDir,R(0x1af))))return![];}return!![];}['validateEngines'](a){const S=a143L,b=this['fsi'][S(0x1b7)](),c=b[S(0x1ed)],d=Object['keys'](a);if(d[S(0x1bf)]>0x0)for(const e of d){const f=c[e];if(f!==a[e]){Log['error'](S(0x1b8)+e+S(0x1cf)+a[e]+S(0x1a4));throw UsageError;}}}async[a143L(0x19e)](a,b,c){const T=a143L,{requiredOpts:d,validArgs:e,validOpts:f,noNeedResource:g}=c,h=Object[T(0x1d8)](b);if(h['includes'](T(0x1d1))&&b[T(0x1d1)]===undefined&&!g){const m=await Actions['ask']('Please\x20provide\x20a\x20resource\x20name:');b[T(0x1d1)]=m;}let i=[],j=b;if(d){i=this['formatToNamedParam'](d),j=this[T(0x1eb)](b,i);if(i&&i?.[T(0x1bf)]>0x0)for(const n of i){const {name:o,values:p,regex:q}=n;if(!Object[T(0x1d8)](j)[T(0x1c6)](o)){if(o===T(0x1c0)){const r=this[T(0x1b4)][T(0x1a9)]()[T(0x1ab)](t=>t!==T(0x1dc));r[T(0x1bf)]===0x0&&(Log[T(0x1ef)](T(0x1b6)),process[T(0x1b0)](0x1));const s=await Actions['options']({'type':'list','name':T(0x1c0),'message':T(0x1f0),'choices':r});b[T(0x1c0)]=s['env'];}else{const t=p;if(t){const u=await Actions[T(0x19b)]({'type':T(0x1cc),'name':o,'message':'Please\x20choose\x20a\x20value\x20for\x20'+o,'choices':p});b[o]=u[o];}else{if(q){const v=await Actions[T(0x1dd)](T(0x1bb)+o);if(v[T(0x1c1)](q))b[o]=v;else{Log[T(0x1ef)]('Invalid\x20value\x20for\x20'+o+':\x20'+v);throw new UsageError();}}else{const w=await Actions[T(0x1dd)](T(0x1bb)+o);b[o]=w;}}}}else{const x=j[o];if(p&&!p[T(0x1c6)](x)){Log[T(0x1ef)](T(0x1ae)+o+':\x20'+x);throw new UsageError();}}}}let k=this[T(0x1e8)](f),l=b;if(k&&Object['keys'](k)?.[T(0x1bf)]>0x0){k=k[T(0x1d0)](i||[]),k['push']({'name':'resourceName','hidden':!![]}),k[T(0x1e9)]({'name':T(0x1d2),'boolFlag':!![]}),k[T(0x1e9)]({'name':T(0x1ba),'hidden':!![]}),k[T(0x1e9)]({'name':T(0x1ee),'hidden':!![]}),k[T(0x1e9)]({'name':'root','hidden':!![]}),k[T(0x1e9)]({'name':T(0x19f),'hidden':!![]}),l=this[T(0x1eb)](b,k);for(const y of k){const {name:z,values:A}=y,B=l[z];if(B!==undefined&&(!A||!A[T(0x1c6)](B))){const C=A;if(C){const D=await Actions['options']({'type':'list','name':z,'message':T(0x1d5)+z,'choices':A});l[z]=D[z];}}if(k[T(0x1bf)]>0x0)for(const E of Object['keys'](l)){const F=k[T(0x1c9)](G=>G[T(0x1be)]===E);if(!F){Log['error'](T(0x1a7)+E);throw new UsageError();}}}}if(e&&e?.['length']>0x0)for(const G of e){if(!e['includes'](G)){Log[T(0x1ef)](T(0x1c7)+G);const H=await Actions[T(0x1dd)](T(0x1bc)+G);a[a['indexOf'](G)]=H;}}return Object[T(0x1e2)](j,l);}async[a143L(0x1ec)](a){const U=a143L;try{if(!a)return;const b=await this[U(0x1b4)]['getPro']();!b&&(Log[U(0x1ef)](U(0x1a1)),process[U(0x1b0)](0x1));const c=!b?.[U(0x1b1)]['includes'](U(0x1c3))&&!b?.[U(0x1b1)]['includes']('domainLicense');if(this[U(0x1ad)](a)){const d='To\x20use\x20this\x20command,\x20\x22'+a[U(0x1be)]+U(0x1c5);if(a[U(0x19b)]['disableAuthCheck'])return;const f=b?.[U(0x1df)]['includes'](a[U(0x1be)])||b?.[U(0x1df)][U(0x1c6)](a[U(0x1b5)]||'')||this[U(0x19b)][U(0x1de)];if(f&&c)throw d;}else{if(this['isGenerator'](a)){const g=b?.[U(0x1a2)][U(0x1c6)](a[U(0x1be)])||b?.['proGenerators']['includes'](a[U(0x1b5)]||'');if(g&&c)throw'To\x20use\x20this\x20generator,\x20\x22'+a[U(0x1be)]+'\x22,\x20please\x20upgrade\x20to\x20PRO\x20by\x20becoming\x20a\x20pateron\x20@\x20patreon.com/user?u=110174702,\x20then\x20issue:\x20\x27maka\x20login\x27';}}}catch(h){Log[U(0x1ef)](h),process[U(0x1b0)](0x1);}}[a143L(0x1ad)](a){const V=a143L;return V(0x19b)in a;}['isGenerator'](a){const W=a143L;return!(W(0x19b)in a);}[a143L(0x19c)](){const X=a143L;return this['options'][X(0x19c)]||this[X(0x19b)]['shortDesc']||X(0x1d7);}[a143L(0x1a0)](){const Y=a143L;return this['options']['shortDesc']||Y(0x1ca);}[a143L(0x1ea)](){const Z=a143L;return this[Z(0x19b)]['usage']||Z(0x1b2);}[a143L(0x1d9)](){const a0=a143L;return this[a0(0x19b)]['examples']||[];}['aliases'](){const a1=a143L;return this[a1(0x19b)][a1(0x1ac)]||'None';}['experimental'](){const a2=a143L;return this[a2(0x19b)][a2(0x1e3)]||![];}}
1
+ function a143d(a,b){const c=a143c();return a143d=function(d,e){d=d-0xb0;let f=c[d];return f;},a143d(a,b);}const a143L=a143d;function a143c(){const a2=['singleLicense','validateMakaSubscription','docker','Invalid\x20value\x20for\x20','Local','8628sYfJIy','fsi','getShortName','remapShortToLong','49DJPlsL','Invalid\x20argument:\x20','assign','This\x20command\x20needs\x20a\x20higher\x20environment\x20to\x20run\x20(other\x20than\x20local).\x20Please\x20create\x20a\x20new\x20environment;\x20`maka\x20g:config\x20development`','No\x20description\x20provided.','homedir','findProjectDirectory','concat','name','\x22,\x20please\x20upgrade\x20to\x20PRO\x20by\x20becoming\x20a\x20pateron\x20@\x20patreon.com/user?u=110174702,\x20then\x20issue:\x20\x27maka\x20login\x27','parent','160aeMWOS','_handler','4745196zUGQLg','toString','experimental','help','length','801944uzWjmi','roles','22bAqZOX','Please\x20provide\x20a\x20value\x20for\x20','string','None','examples','To\x20use\x20this\x20command,\x20\x22','existsSync','Please\x20choose\x20an\x20environment','options','validateMeteorInstall','disableAuthCheck','cwd','getPro','map','push','usage','Please\x20choose\x20a\x20valid\x20value\x20for\x20','62015ehCDmO','exit','proCommands','validateEngines','match','proGenerators','ask','To\x20use\x20this\x20generator,\x20\x22','aliases','isGenerator','constructor','config','No\x20usage\x20provided.','env','2249605bZnYlI','keys','dir','validateParams','resourceName','description','getMakaProjectConfig','validateUserIsLoggedIn','212vqUAyb','platform','list','error','formatToNamedParam','filter','local','search','every','shortDesc','apply','Invalid\x20option:\x20','Please\x20choose\x20a\x20value\x20for\x20','engines','includes','704056NjiqCs','\x20version\x20','root','Please\x20provide\x20a\x20valid\x20argument\x20for\x20','AppData','621765yufWlJ'];a143c=function(){return a2;};return a143c();}(function(a,b){const I=a143d,c=a();while(!![]){try{const d=-parseInt(I(0xb1))/0x1*(parseInt(I(0xf9))/0x2)+-parseInt(I(0xe1))/0x3*(parseInt(I(0xc7))/0x4)+parseInt(I(0xbf))/0x5+-parseInt(I(0xf2))/0x6+-parseInt(I(0xe5))/0x7*(-parseInt(I(0xd6))/0x8)+parseInt(I(0xdb))/0x9+-parseInt(I(0xf0))/0xa*(-parseInt(I(0xf7))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a143c,0xa50dc));const a143b=(function(){let a=!![];return function(b,c){const d=a?function(){const J=a143d;if(c){const e=c[J(0xd1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a143a=a143b(this,function(){const K=a143d;return a143a[K(0xf3)]()[K(0xce)]('(((.+)+)+)+$')['toString']()[K(0xbb)](a143a)[K(0xce)]('(((.+)+)+)+$');});a143a();import a143e from'path';import a143f from'os';import a143g from'fs';const homeDir=a143f[a143L(0xea)]();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(0xe2)];['options'];[a143L(0xed)];[a143L(0xef)];[a143L(0xf1)];constructor(){const M=a143L;this[M(0xde)]=new Docker(),this['fsi']=new FSI();}['getShortName'](a){return a['charAt'](0x0);}[a143L(0xe4)](a,b){const N=a143L,c=this[N(0xcb)](b),d={...a};for(const e of c){const f=this[N(0xe3)](e['name']);a[f]&&(d[e[N(0xed)]]=a[f],delete d[f]);}return d;}['formatToNamedParam'](a){const O=a143L;if(a[O(0xcf)](b=>typeof b===O(0xfb)))return a[O(0x106)](b=>({'name':b}));return a;}['match'](a){const P=a143L,b=[this[P(0xed)]][P(0xec)](this[P(0x101)][P(0xb9)]||[]);return this[P(0xef)]&&b[P(0x107)](this[P(0xef)]),b[P(0xd5)](a);}['validateMakaProject'](){const Q=a143L,a=this[Q(0xe2)][Q(0xeb)]();return a!==![]?!![]:![];}async[a143L(0xc6)](){return!![];}[a143L(0x102)](){const R=a143L,a=process[R(0xc8)]==='win32';if(a){if(!a143g[R(0xff)](a143e['join'](homeDir,R(0xda),R(0xe0),'.meteor')))return![];}else{if(!a143g[R(0xff)](a143e['join'](homeDir,'.meteor')))return![];}return!![];}[a143L(0xb4)](a){const S=a143L,b=this[S(0xe2)][S(0xc5)](),c=b[S(0xd4)],d=Object[S(0xc0)](a);if(d[S(0xf6)]>0x0)for(const e of d){const f=c[e];if(f!==a[e]){Log[S(0xca)]('You\x20must\x20have\x20'+e+S(0xd7)+a[e]+'\x20installed\x20to\x20use\x20this\x20command.');throw UsageError;}}}async[a143L(0xc2)](a,b,c){const T=a143L,{requiredOpts:d,validArgs:e,validOpts:f,noNeedResource:g}=c,h=Object[T(0xc0)](b);if(h['includes'](T(0xc3))&&b[T(0xc3)]===undefined&&!g){const m=await Actions[T(0xb7)]('Please\x20provide\x20a\x20resource\x20name:');b[T(0xc3)]=m;}let i=[],j=b;if(d){i=this['formatToNamedParam'](d),j=this['remapShortToLong'](b,i);if(i&&i?.[T(0xf6)]>0x0)for(const n of i){const {name:o,values:p,regex:q}=n;if(!Object['keys'](j)[T(0xd5)](o)){if(o===T(0xbe)){const r=this[T(0xe2)]['getAppProjectConfigs']()[T(0xcc)](t=>t!==T(0xcd));r[T(0xf6)]===0x0&&(Log['error'](T(0xe8)),process[T(0xb2)](0x1));const s=await Actions['options']({'type':T(0xc9),'name':T(0xbe),'message':T(0x100),'choices':r});b['env']=s[T(0xbe)];}else{const t=p;if(t){const u=await Actions[T(0x101)]({'type':T(0xc9),'name':o,'message':T(0xd3)+o,'choices':p});b[o]=u[o];}else{if(q){const v=await Actions[T(0xb7)]('Please\x20provide\x20a\x20value\x20for\x20'+o);if(v[T(0xb5)](q))b[o]=v;else{Log[T(0xca)](T(0xdf)+o+':\x20'+v);throw new UsageError();}}else{const w=await Actions[T(0xb7)](T(0xfa)+o);b[o]=w;}}}}else{const x=j[o];if(p&&!p[T(0xd5)](x)){Log[T(0xca)]('Invalid\x20value\x20for\x20'+o+':\x20'+x);throw new UsageError();}}}}let k=this['formatToNamedParam'](f),l=b;if(k&&Object['keys'](k)?.[T(0xf6)]>0x0){k=k['concat'](i||[]),k[T(0x107)]({'name':T(0xc3),'hidden':!![]}),k[T(0x107)]({'name':T(0xf5),'boolFlag':!![]}),k['push']({'name':T(0xc1),'hidden':!![]}),k['push']({'name':T(0x104),'hidden':!![]}),k[T(0x107)]({'name':T(0xd8),'hidden':!![]}),k['push']({'name':T(0xbc),'hidden':!![]}),l=this[T(0xe4)](b,k);for(const y of k){const {name:z,values:A}=y,B=l[z];if(B!==undefined&&(!A||!A[T(0xd5)](B))){const C=A;if(C){const D=await Actions[T(0x101)]({'type':'list','name':z,'message':T(0xb0)+z,'choices':A});l[z]=D[z];}}if(k[T(0xf6)]>0x0)for(const E of Object[T(0xc0)](l)){const F=k['find'](G=>G[T(0xed)]===E);if(!F){Log['error'](T(0xd2)+E);throw new UsageError();}}}}if(e&&e?.['length']>0x0)for(const G of e){if(!e[T(0xd5)](G)){Log[T(0xca)](T(0xe6)+G);const H=await Actions[T(0xb7)](T(0xd9)+G);a[a['indexOf'](G)]=H;}}return Object[T(0xe7)](j,l);}async[a143L(0xdd)](a){const U=a143L;try{if(!a)return;const b=await this[U(0xe2)][U(0x105)]();!b&&(Log['error']('License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.meteor/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.'),process['exit'](0x1));const c=!b?.[U(0xf8)][U(0xd5)](U(0xdc))&&!b?.[U(0xf8)][U(0xd5)]('domainLicense');if(this['isCommand'](a)){const d=U(0xfe)+a[U(0xed)]+U(0xee);if(a[U(0x101)][U(0x103)])return;const f=b?.[U(0xb3)][U(0xd5)](a[U(0xed)])||b?.[U(0xb3)][U(0xd5)](a[U(0xef)]||'')||this[U(0x101)]['isPro'];if(f&&c)throw d;}else{if(this[U(0xba)](a)){const g=b?.[U(0xb6)]['includes'](a[U(0xed)])||b?.[U(0xb6)][U(0xd5)](a['parent']||'');if(g&&c)throw U(0xb8)+a[U(0xed)]+U(0xee);}}}catch(h){Log[U(0xca)](h),process[U(0xb2)](0x1);}}['isCommand'](a){const V=a143L;return V(0x101)in a;}[a143L(0xba)](a){return!('options'in a);}['description'](){const W=a143L;return this[W(0x101)][W(0xc4)]||this[W(0x101)]['shortDesc']||W(0xe9);}[a143L(0xd0)](){const X=a143L;return this[X(0x101)]['shortDesc']||'NIE';}[a143L(0x108)](){const Y=a143L;return this[Y(0x101)][Y(0x108)]||Y(0xbd);}[a143L(0xfd)](){const Z=a143L;return this[Z(0x101)][Z(0xfd)]||[];}['aliases'](){const a0=a143L;return this['options']['aliases']||a0(0xfc);}[a143L(0xf4)](){const a1=a143L;return this['options'][a1(0xf4)]||![];}}
@@ -1 +1 @@
1
- const a144h=a144d;(function(a,b){const f=a144d,c=a();while(!![]){try{const d=-parseInt(f(0x196))/0x1+-parseInt(f(0x19d))/0x2*(-parseInt(f(0x19c))/0x3)+-parseInt(f(0x192))/0x4+-parseInt(f(0x190))/0x5+-parseInt(f(0x195))/0x6+parseInt(f(0x199))/0x7+-parseInt(f(0x18f))/0x8*(-parseInt(f(0x19a))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a144c,0xc859b));const a144b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a144a=a144b(this,function(){const g=a144d;return a144a[g(0x19b)]()[g(0x198)](g(0x197))['toString']()[g(0x18e)](a144a)[g(0x198)]('(((.+)+)+)+$');});a144a();import a144e from'inquirer';function a144c(){const k=['7759578FpGxTl','136479vOLwge','(((.+)+)+)+$','search','776496aetaUe','135ILjQYJ','toString','625491LaqaSt','4KSAarz','ask','prompt','password','answer','constructor','2276440VqddRK','7423760mxvlKN','input','4244472kGcRoX','confirm','options'];a144c=function(){return k;};return a144c();}function a144d(a,b){const c=a144c();return a144d=function(d,e){d=d-0x18a;let f=c[d];return f;},a144d(a,b);}export class Actions{static async[a144h(0x18a)](a,b){const i=a144h,{answer:c}=await a144e['prompt']({'type':b?i(0x18c):i(0x191),'name':i(0x18d),'message':a});return c;}static async[a144h(0x193)](a,b=![]){const j=a144h,{answer:c}=await a144e[j(0x18b)]({'type':j(0x193),'name':j(0x18d),'message':a,'default':b});return c;}static async[a144h(0x194)](a){const b=await a144e['prompt'](a);return b;}}
1
+ const a144j=a144d;(function(a,b){const f=a144d,c=a();while(!![]){try{const d=parseInt(f(0x1d3))/0x1*(parseInt(f(0x1c8))/0x2)+-parseInt(f(0x1cd))/0x3*(parseInt(f(0x1cc))/0x4)+parseInt(f(0x1c6))/0x5+parseInt(f(0x1ca))/0x6+-parseInt(f(0x1d5))/0x7+-parseInt(f(0x1d6))/0x8+parseInt(f(0x1d1))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a144c,0x6de46));const a144b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a144a=a144b(this,function(){const g=a144d;return a144a[g(0x1c9)]()[g(0x1cb)]('(((.+)+)+)+$')[g(0x1c9)]()[g(0x1cf)](a144a)[g(0x1cb)](g(0x1d0));});a144a();import a144e from'inquirer';function a144d(a,b){const c=a144c();return a144d=function(d,e){d=d-0x1c6;let f=c[d];return f;},a144d(a,b);}function a144c(){const l=['(((.+)+)+)+$','4357944yncDoW','answer','868059GfhtJS','options','3231354vUEUEl','3028328jTkzDc','417450TvTMLv','confirm','2eYZtbD','toString','3039942GdGWQu','search','196VrdCnB','39927Iearqj','prompt','constructor'];a144c=function(){return l;};return a144c();}export class Actions{static async['ask'](a,b){const h=a144d,{answer:c}=await a144e[h(0x1ce)]({'type':b?'password':'input','name':h(0x1d2),'message':a});return c;}static async['confirm'](a,b=![]){const i=a144d,{answer:c}=await a144e['prompt']({'type':i(0x1c7),'name':i(0x1d2),'message':a,'default':b});return c;}static async[a144j(0x1d4)](a){const k=a144j,b=await a144e[k(0x1ce)](a);return b;}}
@@ -1 +1 @@
1
- const a145s=a145d;(function(a,b){const p=a145d,c=a();while(!![]){try{const d=parseInt(p(0x107))/0x1*(parseInt(p(0x11d))/0x2)+-parseInt(p(0xec))/0x3+-parseInt(p(0x11e))/0x4+parseInt(p(0x1b4))/0x5*(parseInt(p(0xe4))/0x6)+-parseInt(p(0x1b5))/0x7+-parseInt(p(0x16c))/0x8*(parseInt(p(0x14f))/0x9)+-parseInt(p(0x177))/0xa*(-parseInt(p(0x105))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a145c,0x6b8b4));function a145c(){const a8=['length','fsi','listAllEcrRepositories','description','945659hxVVmb','Error\x20creating\x20hosted\x20zone','87smUAzq','UserData','Final\x20list\x20of\x20ECR\x20repositories:','**\x20Available\x20Security\x20Groups\x20**','CidrBlock','eu-north-1','root-device-type','tags','ec2create','hvm','sgPorts','Successfully\x20linked\x20EC2\x20instance\x20','suggestion','KeyName','privateIp','ap-southeast-2','uri','listAvailableAMIs','forEach','ssh.json','getEcrLoginPassword','Error\x20linking\x20EC2\x20to\x20Route\x2053:','16082lbMnsN','271204PdTsnn','running','imageId','readFileSync','Reservations','Please\x20choose\x20a\x20VPC:\x20[0]\x20','file://','**\x20Available\x20\x20VPCs\x20**','createKeyPairEC2Key','\x20to\x20','us-west-2','key','join','region','ap-south-1','map','Availability','repositoryUri','config','eu-west-1','\x20DESCRIPTION:\x20','toString','eu-central-2','\x20CIDR:\x20','statusCode','Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[','ec2describeKeys','env','\x20AZONE:\x20','\x27\x20has\x20been\x20registered\x20successfully.','ap-northeast-1','name','route53CreateHostedZone','ImageId','now','us-west-1','chooseVPC','You\x20have\x20no\x20key-pairs,\x20please\x20create\x20one.\x20(maka\x20aws\x20create-key-pair\x20--env).','Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','Instance\x20rebooted!','Error\x20fetching\x20domain\x20pricing:','push','log','createKeyPair','ecrCreateRepository','No\x20credentials\x20returned\x20from\x20AWS\x20ECR','GroupId','[?]\x20Please\x20choose\x20an\x20instance\x20ID:\x20','isFile','18ajRknZ','Would\x20you\x20like\x20to\x20update\x20the\x20ssh.json\x20config\x20file?','ecrDeleteRepository','Failed\x20to\x20create\x20repository\x20in\x20','eu-south-1','ingressRule','AVAILABLE','constructor','template','Description','AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials','listAvailableSubnets','Hosted\x20zone\x20created\x20successfully!','authorizationToken','Failed\x20in\x20','maxCount','apply','eu-west-2','listHostedZonesByName','us-east-2','vpcId','error','chooseInstance','\x22\x20created\x20successfully\x20in\x20','Canonical*Ubuntu*20.04*','ec2createSG','Subnets','warn','getSubnetCidr','1125968dPGiXF','\x20INSTANCE_ID:\x20','There\x20was\x20an\x20error\x20registering\x20the\x20domain\x20name','AvailabilityZone','terminated','stringify','me-south-1','CreationDate','nextToken','message','Instances','170GzNDEz','us-east-1','Authorization\x20token\x20is\x20missing','HostedZones','send','race','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','checkDomainAvailability','state','registerDomain','writeFileSync','ebs','exit','UPSERT','userData','ap-southeast-4','\x20:\x20','\x20AMIID:\x20','utf8','httpStatusCode','ask','split','\x20PRIV_IP:\x20','amiId','KeyMaterial','ap-south-2','chooseSecurityGroup','ec2terminateInstance','subnet','\x20Error\x20Rason:\x20','changeResourceRecordSets','Description:','il-central-1','repositories','date','sgIds','No\x20suitable\x20images\x20found\x20within\x20the\x20last\x2030\x20days.','success','start','Repository\x20\x22','concat','Setting\x20Subnet\x20ID\x20to\x20','SubnetId','af-south-1','pop','eu-west-3','search','config/ssh.json','slice','deleteKeyPair','Name','deleteSecurityGroup','Created:\x20','The\x20domain\x20\x27','from','No\x20subnets\x20found.','status','parse','ID:\x20','ignore','RegistrationPrice','740875caYsRn','5084996ApoBev','$metadata',',\x20URI:\x20','bright',',\x20Name:\x20','image-type','Port\x20','sgId','available','UNSUPPORTED','filter','createFile','find','machine','VpcId','\x20NAME:\x20','Canonical*Ubuntu*18.04*','...','getAppConfigPath','subnet-id','instanceId','\x20opened!','Error\x20generating\x20key\x20pair','authorizationData','linkEC2ToRoute53','trim','sort','Error\x20saving\x20pem\x20file,\x20aborting','6iEdEJS','cidr','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','ap-southeast-3','notice','_keys','environment','\x20VPCID:\x20','2378982hIPnLq','ap-northeast-2','getTime','Setting\x20SG\x20ID\x20to:\x20','[+]\x20Setting\x20VPC\x20ID\x20to:\x20','ca-west-1','$response','timeout','Invalid\x20choice','desc','(((.+)+)+)+$','No\x20ECR\x20repositories\x20found\x20across\x20all\x20specified\x20regions.','ap-northeast-3','Authorization\x20data\x20is\x20empty','Timeout\x20while\x20processing\x20','\x20SG\x20NAME:\x20','reason','ca-central-1','No\x20images\x20found.','repositoryName','Prices'];a145c=function(){return a8;};return a145c();}const a145b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a145d;if(c){const e=c[q(0x15f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a145a=a145b(this,function(){const r=a145d;return a145a[r(0x133)]()[r(0x1a5)](r(0xf6))[r(0x133)]()[r(0x156)](a145a)[r(0x1a5)](r(0xf6));});a145a();import a145e from'fs';function a145d(a,b){const c=a145c();return a145d=function(d,e){d=d-0xcd;let f=c[d];return f;},a145d(a,b);}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({});export class AWS{[a145s(0x102)];constructor(){const t=a145s;this[t(0x102)]=new FSI();}async[a145s(0x191)](a){const u=a145s;try{const {listIndexId:b,createdSgId:c,sgList:d}=await this['getSecurityGroups'](a);let f='';if(c===''){Log['notice'](u(0x10a)),d[u(0x119)](function(h){const v=u;h['name']===a?Log['notice']('ID:\x20'+h['id']+v(0xfb)+h['name']+'\x20SGID:\x20'+h[v(0xcf)]):Log[v(0x1b8)](v(0x1b1)+h['id']+v(0xfb)+h[v(0x13d)]+'\x20SGID:\x20'+h[v(0xcf)]);});const g=await Actions[u(0x18b)](u(0x137)+b+']\x20')||b[u(0x133)]();d[u(0x119)](function(h){const w=u;h['id']===parseInt(g)&&(f=h[w(0xcf)],Log[w(0x19c)]('Setting\x20SG\x20ID\x20to:\x20'+f+'\x0a'));});}else f=c,Log[u(0x19c)](u(0xef)+f+'\x0a');if(f==='')throw new Error(u(0x17d));return f;}catch(h){Log[u(0x164)](h);throw h;}}async[a145s(0x118)](){const x=a145s;let a='';try{const b=new EC2Client({}),c={'Filters':[{'Name':'architecture','Values':['x86_64']},{'Name':'virtualization-type','Values':[x(0x110)]},{'Name':x(0x10d),'Values':[x(0x182)]},{'Name':x(0x17f),'Values':[x(0xd0)]},{'Name':x(0xcd),'Values':[x(0xd5)]},{'Name':x(0x104),'Values':[x(0xd8),x(0x167)]}]},d=new DescribeImagesCommand(c),{Images:f}=await b[x(0x17b)](d);if(f&&f[x(0x101)]>0x0){const g=new Date(),h=new Date(g[x(0xee)]()-0x1e*0x18*0x3c*0x3c*0x3e8),i=f[x(0xd2)](j=>j[x(0x173)]&&!j[x(0x158)]?.['includes'](x(0xd1))&&new Date(j['CreationDate'])>h)[x(0x12d)](j=>({'amiId':j[x(0x13f)],'desc':j[x(0x158)],'date':j[x(0x173)]}));if(i[x(0x101)]>0x0){i[x(0xe2)]((n,o)=>new Date(o[x(0x199)])[x(0xee)]()-new Date(n['date'])[x(0xee)]());const j=i[x(0x1a7)](0x0,0x4),k=j[x(0x12d)]((n,o)=>({'id':o,'amiId':n[x(0x18e)],'desc':n[x(0xf5)]}));k[x(0x119)](n=>{const y=x;Log[y(0x1b8)](y(0x1b1)+n['id']+y(0x188)+n[y(0x18e)]+y(0x132)+n[y(0xf5)]);});const l=await Actions['ask'](x(0xe6))||'0',m=k[x(0xd4)](n=>n['id']===parseInt(l));if(m)a=m['amiId'],Log[x(0x19c)]('Setting\x20AMI\x20ID\x20to\x20'+a+x(0x187)+m[x(0xf5)]);else throw Log[x(0x164)](x(0x17d));}else throw Log['error'](x(0x19b));}else throw Log[x(0x164)](x(0xfe));}catch(n){Log[x(0x164)](n);}return a;}async[a145s(0x15a)](){const z=a145s;let a='';try{const b=new EC2Client({}),c={},d=new DescribeSubnetsCommand(c),{Subnets:f}=await b[z(0x17b)](d);if(f&&f[z(0x101)]>0x0){const g=f['map']((j,k)=>({'id':k,'cidr':j[z(0x10b)],'az':j[z(0x16f)],'subnetId':j[z(0x1a1)]}));g[z(0x119)](j=>{const A=z;Log[A(0x1b8)](A(0x1b1)+j['id']+'\x20CIDR:\x20'+j[A(0xe5)]+A(0x13a)+j['az']+'\x20SUBNETID:\x20'+j['subnetId']);});const h=await Actions['ask'](z(0x144))||'0',i=g[z(0xd4)](j=>j['id']===parseInt(h));if(i)a=i['subnetId'],Log[z(0x19c)](z(0x1a0)+a);else throw Log['error'](z(0x17d));}else throw Log[z(0x164)](z(0x1ae));}catch(j){Log[z(0x164)](j);}return a;}async[a145s(0x16b)](a){const B=a145s;try{const b=new EC2Client({}),c={'Filters':[{'Name':B(0xdb),'Values':[a]}]},d=new DescribeSubnetsCommand(c),e=await b[B(0x17b)](d);return e[B(0x169)]&&e['Subnets'][B(0x101)]>0x0?e[B(0x169)][0x0][B(0x10b)]||'':'';}catch(f){return Log[B(0x164)](f),'';}}async[a145s(0x14a)](a){const C=a145s;try{const b=new ECRClient({'region':a['region']}),c={'repositoryName':a[C(0x13d)]},d=new CreateRepositoryCommand(c),f=await b[C(0x17b)](d);return Log['success'](C(0x19e)+a[C(0x13d)]+C(0x166)+a[C(0x12b)]+'.'),f;}catch(g){Log['error'](C(0x152)+a[C(0x12b)]+':\x20'+g);throw g;}}async[a145s(0x103)](a){const D=a145s,b=[D(0x178),D(0x162),D(0x141),D(0x128),D(0x12c),D(0xf8),D(0xed),'ap-southeast-1',D(0x116),D(0x13c),D(0xfd),'eu-central-1',D(0x131),D(0x160),D(0x1a4),D(0x10c),'sa-east-1',D(0x1a2),'ap-east-1',D(0x190),D(0xe7),D(0x186),D(0xf1),D(0x153),'eu-south-2',D(0x134),D(0x172),'me-central-1',D(0x197)],c=[D(0x178),'us-east-2','us-west-1',D(0x128)],d=a==='all'?b:a?a[D(0x18c)](','):c;let f=[];const g=Log['withSpinner']();for(const h of d){g[D(0x19d)]('Processing\x20'+h[D(0xe1)]()+D(0xd9));const i=new ECRClient({'region':h[D(0xe1)]()});try{let j=undefined;do{const k=await Promise[D(0x17c)]([i[D(0x17b)](new DescribeRepositoriesCommand({'nextToken':j})),new Promise(l=>setTimeout(()=>l(D(0xf3)),0x7d0))]);if(k===D(0xf3)){Log['warn'](D(0xfa)+h[D(0xe1)]()+'.');break;}else k['repositories']&&k[D(0x198)][D(0x101)]>0x0&&(f=f[D(0x19f)](k['repositories']['map'](l=>({'name':l[D(0xff)],'uri':l[D(0x12f)],'region':h[D(0xe1)]()}))));j=k[D(0x174)];}while(j);}catch(l){Log[D(0x164)](D(0x15d)+h[D(0xe1)]()+':\x20'+l[D(0x175)]);}finally{g['stop']();}}return f['length']>0x0?(console['log'](),Log['success'](D(0x109)),f['forEach'](m=>{const E=D;Log['info']('Region:\x20'+m[E(0x12b)]+E(0x1b9)+m[E(0x13d)]+E(0x1b7)+m[E(0x117)]);})):Log[D(0x16a)](D(0xf7)),f;}async[a145s(0x13e)](a){const F=a145s;try{const b={'CallerReference':''+Date[F(0x140)](),'Name':a},c=new CreateHostedZoneCommand(b);await route53Client[F(0x17b)](c),Log[F(0x19c)](F(0x15b));}catch(d){Log[F(0x164)](F(0x106)),console[F(0x164)](d);}}async[a145s(0x180)](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(0x17b)](f),Log[G(0xe8)](G(0x1ac)+b+G(0x13b));}catch(g){Log['error'](G(0x16e)),Log[G(0x16a)]('From\x20AWS:'),console[G(0x164)]('\x20Status\x20Code:\x20'+g['$response'][G(0x136)]),console['error'](G(0x194)+g[G(0xf2)][G(0xfc)]);}}async[a145s(0x17e)](a){const H=a145s,b={'DomainName':a},c=new CheckDomainAvailabilityCommand(b),d=await route53Domains[H(0x17b)](c),e=d[H(0x12e)]===H(0x155);if(e){const f=a[H(0x18c)]('.')[H(0x1a3)](),g={'MaxItems':0x1,'Tld':f};try{const h=new ListPricesCommand(g),i=await route53Domains[H(0x17b)](h);if(i&&i[H(0x100)]&&i['Prices'][0x0]?.[H(0x1b3)]){const j=i[H(0x100)][0x0][H(0x1b3)];return{'available':e,'cost':j};}}catch(k){console[H(0x164)](H(0x146),k);}}return{'available':e};}async[a145s(0xe0)](a,b,c){const I=a145s;try{const d=await route53[I(0x161)]({'DNSName':c});if(!d?.['HostedZones'])throw Log[I(0x164)]('Could\x20not\x20find\x20hosted\x20zone');const e=d?.[I(0x17a)][0x0]['Id'],f={'ChangeBatch':{'Changes':[{'Action':I(0x184),'ResourceRecordSet':{'Name':c,'Type':'A','TTL':0x12c,'ResourceRecords':[{'Value':b}]}}]},'HostedZoneId':e};await route53[I(0x195)](f),Log['notice'](I(0x112)+a+I(0x127)+c);}catch(g){console[I(0x164)](I(0x11c),g);}}async[a145s(0x11b)]({awsAccountId:a,region:b}){const J=a145s,c=new ECRClient({'region':b});try{const d=new GetAuthorizationTokenCommand({'registryIds':[a]}),f=await c['send'](d);if(!f[J(0xdf)]||f[J(0xdf)][J(0x101)]===0x0)throw new Error(J(0xf9));const g=f['authorizationData'][0x0];if(!g['authorizationToken'])throw new Error(J(0x179));const h=g[J(0x15c)];if(!h)throw new Error(J(0x14b));const i=Buffer[J(0x1ad)](h,'base64')['toString'](),j=i['split'](':')[0x1];if(!j)throw new Error('Failed\x20to\x20decode\x20password\x20from\x20authorization\x20token');return j;}catch(k){Log[J(0x164)](k);throw k;}}async[a145s(0x151)]({repoName:a,region:b}){const K=a145s,c=new ECRClient({'region':b});try{const d=new DeleteRepositoryCommand({'repositoryName':a,'force':!![]}),f=await c['send'](d);return f;}catch(g){Log[K(0x164)](g);throw g;}}async[a145s(0x10f)](a){const L=a145s;try{const b={'BlockDeviceMappings':[{'DeviceName':'/dev/sdh','Ebs':{'VolumeSize':0x64}}],'ImageId':a[L(0x120)],'InstanceType':a['type'],'KeyName':a[L(0x129)],'MaxCount':a[L(0x15e)],'MinCount':a['minCount'],'SecurityGroupIds':a[L(0x19a)][L(0x18c)](','),'SubnetId':a[L(0x193)],'TagSpecifications':[{'ResourceType':'instance','Tags':a[L(0x10e)]}]};a['userData']&&(b[L(0x108)]=L(0x124)+a[L(0x185)]);const c=new RunInstancesCommand(b),d=await client[L(0x17b)](c);return d;}catch(f){Log[L(0x164)](f);}}async[a145s(0x192)](a){const M=a145s;try{const b={'InstanceIds':[a[M(0xdc)]]},c=new TerminateInstancesCommand(b),d=await client['send'](c);return d;}catch(f){return Log['error'](f),{};}}async[a145s(0x126)]({keyName:a,env:b}){const N=a145s,c=this[N(0x102)][N(0xda)](b),d=a145f['join'](c,N(0xe9),a+'.pem.txt');try{const f={'KeyName':a},g=new CreateKeyPairCommand(f),h=await client[N(0x17b)](g),i=h[N(0x18f)];if(i){await this['fsi'][N(0xd3)]({'filePath':d,'data':i}),execSync('chmod\x20400\x20'+d,{'stdio':N(0x1b2)});const j=this['fsi']['isFile'](d);if(j)return Log[N(0x19c)]('Pem\x20key\x20saved\x20to\x20'+d),{'keyName':a,'filePath':d};else throw new Error(N(0xe3));}else throw new Error(N(0xde));}catch(k){Log[N(0x164)](k),process[N(0x183)](0x1);}}async[a145s(0x154)]({port:a,groupId:b}){const O=a145s,c={'GroupId':b,'IpPermissions':[{'FromPort':a,'IpProtocol':'tcp','IpRanges':[{'CidrIp':'0.0.0.0/0','Description':''}],'ToPort':a}]},d=new AuthorizeSecurityGroupIngressCommand(c);return Log[O(0xe8)](O(0xce)+a+O(0xdd)),await client[O(0x17b)](d);}async[a145s(0x168)](a){const P=a145s;try{a[P(0x104)]===''&&(a[P(0x104)]=await Actions[P(0x18b)](P(0x196))||'Web\x20App');const b={'Description':a['description'],'GroupName':a[P(0x13d)],'VpcId':a[P(0x163)]},c=new CreateSecurityGroupCommand(b),d=await client[P(0x17b)](c),{GroupId:f}=d;if(!d)throw new Error(P(0x159));f&&a[P(0x111)][P(0x119)](g=>{const Q=P;this[Q(0x154)]({'port':parseInt(g),'groupId':f});}),Log[P(0x19c)](P(0x1ab)+f+'\x20NAME:\x20'+a['name']);}catch(g){return Log[P(0x164)](g),![];}return!![];}async[a145s(0x138)](a){const R=a145s,b=[];try{const c={},d=new DescribeKeyPairsCommand(c),f=await client[R(0x17b)](d);if(!f)throw R(0x159);const {KeyPairs:g}=f;g?(g?.[R(0x119)]((h,i)=>{const S=R;h[S(0x114)]&&b[S(0x147)]({'id':i,'name':h[S(0x114)]});}),b[R(0x101)]>0x0&&b[R(0x119)](h=>{const T=R;h['name']===a?.[T(0x113)]?Log[T(0x19c)](T(0x1b1)+h['id']+T(0xd7)+h[T(0x13d)]):Log[T(0xe8)](T(0x1b1)+h['id']+T(0xd7)+h[T(0x13d)]);})):Log[R(0x164)](R(0x143));}catch(h){Log['error'](h);}return b;}async[a145s(0x1a8)](a){const U=a145s;try{const b={'KeyName':a},c=new DeleteKeyPairCommand(b);await client['send'](c);}catch(d){Log['error'](d),process[U(0x183)](0x1);}}async['ec2describeInstances'](){const V=a145s,a=[];try{const b={'Filters':[{'Name':'tag:created-by','Values':['maka-cli']}]},c=new DescribeInstancesCommand(b),d=await client[V(0x17b)](c);d[V(0x122)]?.['forEach']((f,g)=>{const W=V;if(f?.[W(0x176)]){const {InstanceId:h,PublicIpAddress:i,PrivateIpAddress:j,State:k,KeyName:l,Tags:m}=f[W(0x176)][0x0],n=m?.[W(0xd4)](({Key:o})=>o===W(0xea));a[W(0x147)]({'id':g,'instanceId':h,'privateIp':j,'publicIp':i,'status':k?.[W(0x1a9)],'name':l,'env':n?.['Value']});}}),a[V(0x101)]>0x0?a[V(0x119)](f=>{const X=V,g=X(0x1b1)+f['id']+X(0xd7)+f['name']+'\x20ENV:\x20'+f[X(0x139)]+'\x20STATUS:\x20'+f[X(0x1af)]+X(0x16d)+f[X(0xdc)]+'\x20PUB_IP:\x20'+f['publicIp']+X(0x18d)+f[X(0x115)];if(f[X(0x1af)]===X(0x170))Log[X(0x164)](g);else f['status']===X(0x11f)?Log[X(0x19c)](g):Log[X(0xe8)](g);}):Log[V(0x164)]('You\x20have\x20no\x20instances\x20created\x20by\x20maka-cli.\x20\x20Please\x20reivew\x20your\x20AWS\x20console\x20manually!!!');}catch(f){Log[V(0x164)](f);}return a;}async['ec2rebootInstance'](a){const Y=a145s;try{const b={'InstanceIds':[a[Y(0xdc)]]},c=new RebootInstancesCommand(b),d=await client['send'](c);return d[Y(0x1b6)][Y(0x18a)]===0xc8&&Log['success'](Y(0x145)),d;}catch(f){Log['error'](f);}}async[a145s(0x142)](){const Z=a145s;let a='';Log[Z(0xe8)](Z(0x125));const b=new DescribeVpcsCommand({}),c=await client['send'](b),{Vpcs:d}=c,e=[];d&&d[Z(0x119)]((g,h)=>{const a0=Z;g[a0(0xd6)]&&g['CidrBlock']&&e[a0(0x147)]({'id':h,'vpcId':g[a0(0xd6)],'cidr':g[a0(0x10b)]});});e[Z(0x119)](function(g){const a1=Z;console[a1(0x148)](a1(0x1b1)+g['id']+a1(0xeb)+g[a1(0x163)]+a1(0x135)+g['cidr']);});const f=await Actions[Z(0x18b)](Z(0x123))||0x0;e[Z(0x119)](function(g){const a2=Z;g['id']==f&&(a=g['vpcId'],Log[a2(0x19c)](a2(0xf0)+a+'\x0a'));});if(a==='')return Log['error'](Z(0x17d)),'';return a;}async[a145s(0x165)](){const a3=a145s,a=await this['ec2describeInstances']();if(a[a3(0x101)]===0x0)return Log[a3(0x164)]('No\x20instances\x20found'),null;const b=await Actions[a3(0x18b)](a3(0x14d));!b&&(Log[a3(0x164)](a3(0xf4)),process[a3(0x183)](0x0));const c=a[a3(0xd4)](({id:d})=>{return d==parseInt(b);})||null;return c;}async[a145s(0x149)]({env:a}){const a4=a145s,b=this[a4(0x102)]['getMakaProjectConfig'](),{appName:c}=b,d=c+'-'+a,f=await Actions['ask']('Key\x20Name:\x20['+d+']\x20')||d,{filePath:g}=await this[a4(0x126)]({'keyName':f,'env':a});try{const h=await Actions['confirm'](a4(0x150),!![]);if(h)try{const i=a145f['join']('config',a,'ssh.json');!this[a4(0x102)][a4(0x14e)](i)&&await this['fsi'][a4(0x157)]({'srcPath':a4(0x1a6),'destPath':i,'context':{'app':f}});const j=a145e[a4(0x121)](a145f[a4(0x12a)]('config',a,a4(0x11a)),a4(0x189)),k=JSON[a4(0x1b0)](j);k['pem']=a145f[a4(0x12a)](a4(0xe9),f+'.pem.txt'),a145e[a4(0x181)](a145f[a4(0x12a)](a4(0x130),a,a4(0x11a)),JSON[a4(0x171)](k,null,0x2));}catch(l){Log['error'](l),Log[a4(0x164)]('You\x20will\x20need\x20to\x20update\x20the\x20ssh.json\x20file\x20yourself.');}}catch(m){Log[a4(0x164)](m),process[a4(0x183)](0x1);}return{'keyName':f,'filePath':g};}async['getSecurityGroups'](a){const a5=a145s,b=[],c={},d=new DescribeSecurityGroupsCommand(c),e=await client[a5(0x17b)](d),{SecurityGroups:f}=e;f&&f[a5(0x119)](function(i,j){const a6=a5;i['GroupName']&&i['GroupId']&&b[a6(0x147)]({'id':j,'name':i['GroupName'],'sgId':i[a6(0x14c)]});});let g='',h=0x0;return b['forEach'](function(i){i['name']===a&&(g=i['sgId'],h=i['id']);}),{'sgList':b,'createdSgId':g,'listIndexId':h};}async[a145s(0x1aa)](a){const a7=a145s;try{const b={'GroupId':a},c=new DeleteSecurityGroupCommand(b);await client[a7(0x17b)](c);}catch(d){Log[a7(0x164)](d),process[a7(0x183)](0x1);}}}
1
+ const a145r=a145d;(function(a,b){const p=a145d,c=a();while(!![]){try{const d=-parseInt(p(0x18b))/0x1*(parseInt(p(0x1a0))/0x2)+parseInt(p(0x10c))/0x3*(parseInt(p(0x170))/0x4)+-parseInt(p(0x182))/0x5+-parseInt(p(0xd8))/0x6*(-parseInt(p(0x190))/0x7)+parseInt(p(0x15a))/0x8*(-parseInt(p(0x17f))/0x9)+parseInt(p(0x17d))/0xa+parseInt(p(0x176))/0xb*(parseInt(p(0x13b))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a145c,0x3c73b));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(0x158)]()[q(0x1a1)](q(0x161))[q(0x158)]()['constructor'](a145a)[q(0x1a1)](q(0x161));});a145a();function a145d(a,b){const c=a145c();return a145d=function(d,e){d=d-0xcc;let f=c[d];return f;},a145d(a,b);}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';function a145c(){const a6=['KeyMaterial','[?]\x20Please\x20choose\x20an\x20instance\x20ID:\x20','imageId','terminated','Region:\x20','deleteSecurityGroup','deleteKeyPair','ec2createSG','timeout','Description:','name','185966YOBnEg','search','environment','repositoryName','filter','$metadata','There\x20was\x20an\x20error\x20registering\x20the\x20domain\x20name','ssh.json','send','Successfully\x20linked\x20EC2\x20instance\x20','AvailabilityZone','Repository\x20\x22','UPSERT','No\x20suitable\x20images\x20found\x20within\x20the\x20last\x2030\x20days.','tags','eu-central-1','**\x20Available\x20\x20VPCs\x20**','instance','message','Please\x20choose\x20a\x20VPC:\x20[0]\x20','publicIp','CidrBlock','listAllEcrRepositories','exit','\x20to\x20','Error\x20generating\x20key\x20pair','Failed\x20to\x20decode\x20password\x20from\x20authorization\x20token','available','start','warn','httpStatusCode','Setting\x20SG\x20ID\x20to:\x20','now','ec2rebootInstance','Setting\x20Subnet\x20ID\x20to\x20','\x20AMIID:\x20','HostedZones','getSecurityGroups','route53CreateHostedZone','us-west-2','390ftDsNR','ap-northeast-3','Could\x20not\x20find\x20hosted\x20zone','No\x20credentials\x20returned\x20from\x20AWS\x20ECR','cidr','userData','error','Authorization\x20token\x20is\x20missing','getTime','Name','status','\x20VPCID:\x20','createKeyPair','You\x20will\x20need\x20to\x20update\x20the\x20ssh.json\x20file\x20yourself.','il-central-1','instanceId','GroupId','stop','checkDomainAvailability','sgPorts','registerDomain','_keys','sgId','machine','tcp','Error\x20saving\x20pem\x20file,\x20aborting','minCount','\x27\x20has\x20been\x20registered\x20successfully.','Instance\x20rebooted!','statusCode','No\x20ECR\x20repositories\x20found\x20across\x20all\x20specified\x20regions.','reason','getSubnetCidr','\x22\x20created\x20successfully\x20in\x20','split','repositories','uri','log','running','ap-east-1','AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials','bright','No\x20instances\x20found','eu-north-1','map','RegistrationPrice','us-east-2','trim','Web\x20App','config','SubnetId','base64','4269jQQFkS',',\x20URI:\x20','maka-cli','maxCount','fsi','Description','us-west-1','\x20NAME:\x20','utf8','info','subnet-id','Value','notice','isFile','forEach','createKeyPairEC2Key','You\x20have\x20no\x20key-pairs,\x20please\x20create\x20one.\x20(maka\x20aws\x20create-key-pair\x20--env).','$response','ec2terminateInstance','ap-south-1','\x20SGID:\x20','No\x20subnets\x20found.','key','VpcId','Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[','writeFileSync','Processing\x20','\x20SUBNETID:\x20','chooseSecurityGroup','all','Failed\x20to\x20create\x20repository\x20in\x20','\x20INSTANCE_ID:\x20','sgIds','type','state','ap-southeast-4','amiId','Error\x20fetching\x20domain\x20pricing:','ecrDeleteRepository','.pem.txt','Reservations','us-east-1','Error\x20creating\x20hosted\x20zone','ebs','ap-northeast-2','vpcId','confirm','60LpStih','Key\x20Name:\x20[','ap-northeast-1','ID:\x20','ap-southeast-1','linkEC2ToRoute53','You\x20have\x20no\x20instances\x20created\x20by\x20maka-cli.\x20\x20Please\x20reivew\x20your\x20AWS\x20console\x20manually!!!','\x20PUB_IP:\x20','\x20Error\x20Rason:\x20','\x20Status\x20Code:\x20','region','getAppConfigPath','\x20SG\x20NAME:\x20','Pem\x20key\x20saved\x20to\x20','Authorization\x20data\x20is\x20empty','GroupName','Prices','ca-west-1','file://','architecture','includes','find','\x20AZONE:\x20','pop','listAvailableAMIs','Port\x20','date','ingressRule','ec2describeKeys','toString','authorizationData','384QPoIRS','ecrCreateRepository','success','Failed\x20in\x20','ignore','af-south-1','chmod\x20400\x20','(((.+)+)+)+$','\x20STATUS:\x20','Final\x20list\x20of\x20ECR\x20repositories:','eu-west-3','eu-west-1','me-central-1','length','eu-west-2','env','Canonical*Ubuntu*20.04*','listAvailableSubnets','\x20DESCRIPTION:\x20','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','config/ssh.json','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','1352rvohpj','eu-central-2','hvm','ap-southeast-3','repositoryUri','image-type','612722DFVeoF','description','desc','Instances','...','Subnets','Timeout\x20while\x20processing\x20','733140eRJJex','push','42435lxubCV','nextToken','me-south-1','1027165iiqLMw','\x20CIDR:\x20','UNSUPPORTED','chooseVPC','AVAILABLE','listHostedZonesByName','authorizationToken','CreationDate','Setting\x20AMI\x20ID\x20to\x20','3QokKNF','Canonical*Ubuntu*18.04*','ec2create','ap-south-2','ask','13517McRIMV','sa-east-1','parse','No\x20images\x20found.','subnetId'];a145c=function(){return a6;};return a145c();}import{ECRClient,CreateRepositoryCommand,DeleteRepositoryCommand,GetAuthorizationTokenCommand,DescribeRepositoriesCommand}from'@aws-sdk/client-ecr';import{Route53,Route53Client,CreateHostedZoneCommand}from'@aws-sdk/client-route-53';import{Route53Domains,CheckDomainAvailabilityCommand,RegisterDomainCommand,ListPricesCommand}from'@aws-sdk/client-route-53-domains';const client=new EC2Client({}),route53Client=new Route53Client({}),route53=new Route53({}),route53Domains=new Route53Domains({});export class AWS{[a145r(0x110)];constructor(){const s=a145r;this[s(0x110)]=new FSI();}async[a145r(0x128)](a){const t=a145r;try{const {listIndexId:b,createdSgId:c,sgList:d}=await this[t(0xd5)](a);let f='';if(c===''){Log[t(0x118)]('**\x20Available\x20Security\x20Groups\x20**'),d[t(0x11a)](function(h){const u=t;h[u(0x19f)]===a?Log[u(0x118)]('ID:\x20'+h['id']+'\x20SG\x20NAME:\x20'+h[u(0x19f)]+u(0x120)+h[u(0xee)]):Log[u(0x101)](u(0x13e)+h['id']+u(0x147)+h['name']+u(0x120)+h[u(0xee)]);});const g=await Actions[t(0x18f)](t(0x124)+b+']\x20')||b[t(0x158)]();d[t(0x11a)](function(h){const v=t;h['id']===parseInt(g)&&(f=h[v(0xee)],Log[v(0x15c)](v(0xcf)+f+'\x0a'));});}else f=c,Log[t(0x15c)](t(0xcf)+f+'\x0a');if(f==='')throw new Error(t(0x16f));return f;}catch(h){Log['error'](h);throw h;}}async[a145r(0x153)](){const w=a145r;let a='';try{const b=new EC2Client({}),c={'Filters':[{'Name':w(0x14e),'Values':['x86_64']},{'Name':'virtualization-type','Values':[w(0x172)]},{'Name':'root-device-type','Values':[w(0x137)]},{'Name':w(0x12e),'Values':[w(0x1bb)]},{'Name':w(0x175),'Values':[w(0xef)]},{'Name':w(0x177),'Values':[w(0x18c),w(0x16a)]}]},d=new DescribeImagesCommand(c),{Images:f}=await b['send'](d);if(f&&f[w(0x167)]>0x0){const g=new Date(),h=new Date(g[w(0xe0)]()-0x1e*0x18*0x3c*0x3c*0x3e8),i=f[w(0x1a4)](j=>j[w(0x189)]&&!j['Description']?.[w(0x14f)](w(0x184))&&new Date(j[w(0x189)])>h)[w(0x104)](j=>({'amiId':j['ImageId'],'desc':j[w(0x111)],'date':j[w(0x189)]}));if(i['length']>0x0){i['sort']((n,o)=>new Date(o[w(0x155)])[w(0xe0)]()-new Date(n[w(0x155)])[w(0xe0)]());const j=i['slice'](0x0,0x4),k=j[w(0x104)]((n,o)=>({'id':o,'amiId':n[w(0x130)],'desc':n['desc']}));k[w(0x11a)](n=>{const x=w;Log['bright']('ID:\x20'+n['id']+x(0xd3)+n[x(0x130)]+x(0x16c)+n[x(0x178)]);});const l=await Actions[w(0x18f)](w(0x16d))||'0',m=k[w(0x150)](n=>n['id']===parseInt(l));if(m)a=m[w(0x130)],Log['success'](w(0x18a)+a+'\x20:\x20'+m[w(0x178)]);else throw Log['error'](w(0x16f));}else throw Log['error'](w(0x1ad));}else throw Log[w(0xde)](w(0x193));}catch(n){Log[w(0xde)](n);}return a;}async[a145r(0x16b)](){const y=a145r;let a='';try{const b=new EC2Client({}),c={},d=new DescribeSubnetsCommand(c),{Subnets:f}=await b[y(0x1a8)](d);if(f&&f[y(0x167)]>0x0){const g=f[y(0x104)]((j,k)=>({'id':k,'cidr':j[y(0x1b5)],'az':j[y(0x1aa)],'subnetId':j[y(0x10a)]}));g[y(0x11a)](j=>{const z=y;Log[z(0x101)](z(0x13e)+j['id']+'\x20CIDR:\x20'+j['cidr']+z(0x151)+j['az']+z(0x127)+j[z(0x194)]);});const h=await Actions[y(0x18f)]('Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20')||'0',i=g['find'](j=>j['id']===parseInt(h));if(i)a=i[y(0x194)],Log[y(0x15c)](y(0xd2)+a);else throw Log[y(0xde)](y(0x16f));}else throw Log[y(0xde)](y(0x121));}catch(j){Log[y(0xde)](j);}return a;}async[a145r(0xf8)](a){const A=a145r;try{const b=new EC2Client({}),c={'Filters':[{'Name':A(0x116),'Values':[a]}]},d=new DescribeSubnetsCommand(c),e=await b[A(0x1a8)](d);return e['Subnets']&&e[A(0x17b)][A(0x167)]>0x0?e[A(0x17b)][0x0][A(0x1b5)]||'':'';}catch(f){return Log[A(0xde)](f),'';}}async[a145r(0x15b)](a){const B=a145r;try{const b=new ECRClient({'region':a[B(0x145)]}),c={'repositoryName':a[B(0x19f)]},d=new CreateRepositoryCommand(c),f=await b['send'](d);return Log['success'](B(0x1ab)+a[B(0x19f)]+B(0xf9)+a['region']+'.'),f;}catch(g){Log[B(0xde)](B(0x12a)+a[B(0x145)]+':\x20'+g);throw g;}}async[a145r(0x1b6)](a){const C=a145r,b=[C(0x135),C(0x106),'us-west-1',C(0xd7),C(0x11f),C(0xd9),C(0x138),C(0x13f),'ap-southeast-2',C(0x13d),'ca-central-1',C(0x1af),C(0x165),C(0x168),C(0x164),C(0x103),C(0x191),C(0x15f),C(0xff),C(0x18e),C(0x173),C(0x12f),C(0x14c),'eu-south-1','eu-south-2',C(0x171),C(0x181),C(0x166),C(0xe6)],c=[C(0x135),C(0x106),C(0x112),C(0xd7)],d=a===C(0x129)?b:a?a[C(0xfa)](','):c;let f=[];const g=Log['withSpinner']();for(const h of d){g[C(0xcc)](C(0x126)+h[C(0x107)]()+C(0x17a));const i=new ECRClient({'region':h[C(0x107)]()});try{let j=undefined;do{const k=await Promise['race']([i['send'](new DescribeRepositoriesCommand({'nextToken':j})),new Promise(l=>setTimeout(()=>l(C(0x19d)),0x7d0))]);if(k===C(0x19d)){Log[C(0xcd)](C(0x17c)+h[C(0x107)]()+'.');break;}else k[C(0xfb)]&&k[C(0xfb)][C(0x167)]>0x0&&(f=f['concat'](k[C(0xfb)][C(0x104)](l=>({'name':l[C(0x1a3)],'uri':l[C(0x174)],'region':h[C(0x107)]()}))));j=k[C(0x180)];}while(j);}catch(l){Log[C(0xde)](C(0x15d)+h[C(0x107)]()+':\x20'+l[C(0x1b2)]);}finally{g[C(0xe9)]();}}return f[C(0x167)]>0x0?(console[C(0xfd)](),Log['success'](C(0x163)),f[C(0x11a)](m=>{const D=C;Log[D(0x115)](D(0x199)+m['region']+',\x20Name:\x20'+m[D(0x19f)]+D(0x10d)+m[D(0xfc)]);})):Log[C(0xcd)](C(0xf6)),f;}async[a145r(0xd6)](a){const E=a145r;try{const b={'CallerReference':''+Date[E(0xd0)](),'Name':a},c=new CreateHostedZoneCommand(b);await route53Client['send'](c),Log[E(0x15c)]('Hosted\x20zone\x20created\x20successfully!');}catch(d){Log[E(0xde)](E(0x136)),console[E(0xde)](d);}}async[a145r(0xec)](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(0x1a8)](f),Log['notice']('The\x20domain\x20\x27'+b+F(0xf3));}catch(g){Log[F(0xde)](F(0x1a6)),Log['warn']('From\x20AWS:'),console[F(0xde)](F(0x144)+g[F(0x11d)][F(0xf5)]),console[F(0xde)](F(0x143)+g[F(0x11d)][F(0xf7)]);}}async[a145r(0xea)](a){const G=a145r,b={'DomainName':a},c=new CheckDomainAvailabilityCommand(b),d=await route53Domains[G(0x1a8)](c),e=d['Availability']===G(0x186);if(e){const f=a[G(0xfa)]('.')[G(0x152)](),g={'MaxItems':0x1,'Tld':f};try{const h=new ListPricesCommand(g),i=await route53Domains['send'](h);if(i&&i[G(0x14b)]&&i[G(0x14b)][0x0]?.[G(0x105)]){const j=i[G(0x14b)][0x0][G(0x105)];return{'available':e,'cost':j};}}catch(k){console[G(0xde)](G(0x131),k);}}return{'available':e};}async[a145r(0x140)](a,b,c){const H=a145r;try{const d=await route53[H(0x187)]({'DNSName':c});if(!d?.[H(0xd4)])throw Log[H(0xde)](H(0xda));const e=d?.[H(0xd4)][0x0]['Id'],f={'ChangeBatch':{'Changes':[{'Action':H(0x1ac),'ResourceRecordSet':{'Name':c,'Type':'A','TTL':0x12c,'ResourceRecords':[{'Value':b}]}}]},'HostedZoneId':e};await route53['changeResourceRecordSets'](f),Log[H(0x118)](H(0x1a9)+a+H(0x1b8)+c);}catch(g){console[H(0xde)]('Error\x20linking\x20EC2\x20to\x20Route\x2053:',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(0x1a8)](d);if(!f['authorizationData']||f[I(0x159)][I(0x167)]===0x0)throw new Error(I(0x149));const g=f['authorizationData'][0x0];if(!g[I(0x188)])throw new Error(I(0xdf));const h=g[I(0x188)];if(!h)throw new Error(I(0xdb));const i=Buffer['from'](h,I(0x10b))[I(0x158)](),j=i['split'](':')[0x1];if(!j)throw new Error(I(0x1ba));return j;}catch(k){Log['error'](k);throw k;}}async[a145r(0x132)]({repoName:a,region:b}){const J=a145r,c=new ECRClient({'region':b});try{const d=new DeleteRepositoryCommand({'repositoryName':a,'force':!![]}),f=await c[J(0x1a8)](d);return f;}catch(g){Log['error'](g);throw g;}}async[a145r(0x18d)](a){const K=a145r;try{const b={'BlockDeviceMappings':[{'DeviceName':'/dev/sdh','Ebs':{'VolumeSize':0x64}}],'ImageId':a[K(0x197)],'InstanceType':a[K(0x12d)],'KeyName':a[K(0x122)],'MaxCount':a[K(0x10f)],'MinCount':a[K(0xf2)],'SecurityGroupIds':a[K(0x12c)]['split'](','),'SubnetId':a['subnet'],'TagSpecifications':[{'ResourceType':K(0x1b1),'Tags':a[K(0x1ae)]}]};a['userData']&&(b['UserData']=K(0x14d)+a[K(0xdd)]);const c=new RunInstancesCommand(b),d=await client['send'](c);return d;}catch(f){Log[K(0xde)](f);}}async[a145r(0x11e)](a){const L=a145r;try{const b={'InstanceIds':[a[L(0xe7)]]},c=new TerminateInstancesCommand(b),d=await client['send'](c);return d;}catch(f){return Log[L(0xde)](f),{};}}async['createKeyPairEC2Key']({keyName:a,env:b}){const M=a145r,c=this[M(0x110)][M(0x146)](b),d=a145f['join'](c,M(0xed),a+M(0x133));try{const f={'KeyName':a},g=new CreateKeyPairCommand(f),h=await client['send'](g),i=h[M(0x195)];if(i){await this['fsi']['createFile']({'filePath':d,'data':i}),execSync(M(0x160)+d,{'stdio':M(0x15e)});const j=this[M(0x110)][M(0x119)](d);if(j)return Log[M(0x15c)](M(0x148)+d),{'keyName':a,'filePath':d};else throw new Error(M(0xf1));}else throw new Error(M(0x1b9));}catch(k){Log['error'](k),process[M(0x1b7)](0x1);}}async[a145r(0x156)]({port:a,groupId:b}){const N=a145r,c={'GroupId':b,'IpPermissions':[{'FromPort':a,'IpProtocol':N(0xf0),'IpRanges':[{'CidrIp':'0.0.0.0/0','Description':''}],'ToPort':a}]},d=new AuthorizeSecurityGroupIngressCommand(c);return Log[N(0x118)](N(0x154)+a+'\x20opened!'),await client[N(0x1a8)](d);}async[a145r(0x19c)](a){const O=a145r;try{a[O(0x177)]===''&&(a[O(0x177)]=await Actions[O(0x18f)](O(0x19e))||O(0x108));const b={'Description':a['description'],'GroupName':a['name'],'VpcId':a['vpcId']},c=new CreateSecurityGroupCommand(b),d=await client[O(0x1a8)](c),{GroupId:f}=d;if(!d)throw new Error(O(0x100));f&&a[O(0xeb)][O(0x11a)](g=>{const P=O;this[P(0x156)]({'port':parseInt(g),'groupId':f});}),Log[O(0x15c)]('Created:\x20'+f+O(0x113)+a['name']);}catch(g){return Log[O(0xde)](g),![];}return!![];}async[a145r(0x157)](a){const Q=a145r,b=[];try{const c={},d=new DescribeKeyPairsCommand(c),f=await client['send'](d);if(!f)throw'AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials';const {KeyPairs:g}=f;g?(g?.[Q(0x11a)]((h,i)=>{h['KeyName']&&b['push']({'id':i,'name':h['KeyName']});}),b['length']>0x0&&b['forEach'](h=>{const R=Q;h[R(0x19f)]===a?.['suggestion']?Log[R(0x15c)](R(0x13e)+h['id']+R(0x113)+h[R(0x19f)]):Log[R(0x118)](R(0x13e)+h['id']+R(0x113)+h[R(0x19f)]);})):Log[Q(0xde)](Q(0x11c));}catch(h){Log['error'](h);}return b;}async[a145r(0x19b)](a){const S=a145r;try{const b={'KeyName':a},c=new DeleteKeyPairCommand(b);await client[S(0x1a8)](c);}catch(d){Log['error'](d),process[S(0x1b7)](0x1);}}async['ec2describeInstances'](){const T=a145r,a=[];try{const b={'Filters':[{'Name':'tag:created-by','Values':[T(0x10e)]}]},c=new DescribeInstancesCommand(b),d=await client[T(0x1a8)](c);d[T(0x134)]?.[T(0x11a)]((f,g)=>{const U=T;if(f?.[U(0x179)]){const {InstanceId:h,PublicIpAddress:i,PrivateIpAddress:j,State:k,KeyName:l,Tags:m}=f[U(0x179)][0x0],n=m?.['find'](({Key:o})=>o===U(0x1a2));a['push']({'id':g,'instanceId':h,'privateIp':j,'publicIp':i,'status':k?.[U(0xe1)],'name':l,'env':n?.[U(0x117)]});}}),a[T(0x167)]>0x0?a[T(0x11a)](f=>{const V=T,g='ID:\x20'+f['id']+'\x20NAME:\x20'+f[V(0x19f)]+'\x20ENV:\x20'+f[V(0x169)]+V(0x162)+f[V(0xe2)]+V(0x12b)+f[V(0xe7)]+V(0x142)+f[V(0x1b4)]+'\x20PRIV_IP:\x20'+f['privateIp'];if(f[V(0xe2)]===V(0x198))Log[V(0xde)](g);else f[V(0xe2)]===V(0xfe)?Log['success'](g):Log[V(0x118)](g);}):Log['error'](T(0x141));}catch(f){Log[T(0xde)](f);}return a;}async[a145r(0xd1)](a){const W=a145r;try{const b={'InstanceIds':[a[W(0xe7)]]},c=new RebootInstancesCommand(b),d=await client[W(0x1a8)](c);return d[W(0x1a5)][W(0xce)]===0xc8&&Log[W(0x15c)](W(0xf4)),d;}catch(f){Log[W(0xde)](f);}}async[a145r(0x185)](){const X=a145r;let a='';Log[X(0x118)](X(0x1b0));const b=new DescribeVpcsCommand({}),c=await client[X(0x1a8)](b),{Vpcs:d}=c,e=[];d&&d['forEach']((g,h)=>{const Y=X;g[Y(0x123)]&&g[Y(0x1b5)]&&e[Y(0x17e)]({'id':h,'vpcId':g[Y(0x123)],'cidr':g['CidrBlock']});});e[X(0x11a)](function(g){const Z=X;console[Z(0xfd)](Z(0x13e)+g['id']+Z(0xe3)+g[Z(0x139)]+Z(0x183)+g[Z(0xdc)]);});const f=await Actions[X(0x18f)](X(0x1b3))||0x0;e[X(0x11a)](function(g){g['id']==f&&(a=g['vpcId'],Log['success']('[+]\x20Setting\x20VPC\x20ID\x20to:\x20'+a+'\x0a'));});if(a==='')return Log[X(0xde)](X(0x16f)),'';return a;}async['chooseInstance'](){const a0=a145r,a=await this['ec2describeInstances']();if(a[a0(0x167)]===0x0)return Log[a0(0xde)](a0(0x102)),null;const b=await Actions['ask'](a0(0x196));!b&&(Log[a0(0xde)]('Invalid\x20choice'),process[a0(0x1b7)](0x0));const c=a[a0(0x150)](({id:d})=>{return d==parseInt(b);})||null;return c;}async[a145r(0xe4)]({env:a}){const a1=a145r,b=this[a1(0x110)]['getMakaProjectConfig'](),{appName:c}=b,d=c+'-'+a,f=await Actions[a1(0x18f)](a1(0x13c)+d+']\x20')||d,{filePath:g}=await this[a1(0x11b)]({'keyName':f,'env':a});try{const h=await Actions[a1(0x13a)]('Would\x20you\x20like\x20to\x20update\x20the\x20ssh.json\x20config\x20file?',!![]);if(h)try{const i=a145f['join'](a1(0x109),a,'ssh.json');!this[a1(0x110)][a1(0x119)](i)&&await this['fsi']['template']({'srcPath':a1(0x16e),'destPath':i,'context':{'app':f}});const j=a145e['readFileSync'](a145f['join'](a1(0x109),a,a1(0x1a7)),a1(0x114)),k=JSON[a1(0x192)](j);k['pem']=a145f['join']('_keys',f+a1(0x133)),a145e[a1(0x125)](a145f['join'](a1(0x109),a,a1(0x1a7)),JSON['stringify'](k,null,0x2));}catch(l){Log['error'](l),Log[a1(0xde)](a1(0xe5));}}catch(m){Log[a1(0xde)](m),process[a1(0x1b7)](0x1);}return{'keyName':f,'filePath':g};}async['getSecurityGroups'](a){const a2=a145r,b=[],c={},d=new DescribeSecurityGroupsCommand(c),e=await client['send'](d),{SecurityGroups:f}=e;f&&f[a2(0x11a)](function(i,j){const a3=a2;i['GroupName']&&i['GroupId']&&b[a3(0x17e)]({'id':j,'name':i[a3(0x14a)],'sgId':i[a3(0xe8)]});});let g='',h=0x0;return b[a2(0x11a)](function(i){const a4=a2;i[a4(0x19f)]===a&&(g=i[a4(0xee)],h=i['id']);}),{'sgList':b,'createdSgId':g,'listIndexId':h};}async[a145r(0x19a)](a){const a5=a145r;try{const b={'GroupId':a},c=new DeleteSecurityGroupCommand(b);await client[a5(0x1a8)](c);}catch(d){Log[a5(0xde)](d),process[a5(0x1b7)](0x1);}}}
@@ -1 +1 @@
1
- (function(a,b){var k=a146d,c=a();while(!![]){try{var d=-parseInt(k(0x12b))/0x1+-parseInt(k(0x128))/0x2*(parseInt(k(0x12e))/0x3)+-parseInt(k(0x12a))/0x4+parseInt(k(0x12c))/0x5+-parseInt(k(0x127))/0x6+parseInt(k(0x129))/0x7+-parseInt(k(0x125))/0x8*(-parseInt(k(0x130))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a146c,0xd7479));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(0x12d)](g,arguments);return h=null,j;}}:function(){};return f=![],i;};}()),e=d(this,function(){var m=a146d;return e[m(0x12f)]()['search'](m(0x126))[m(0x12f)]()['constructor'](e)['search'](m(0x126));});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 a146d(a,b){var c=a146c();return a146d=function(d,e){d=d-0x125;var f=c[d];return f;},a146d(a,b);}function a146c(){var n=['9KiMesd','32544136DtrrLW','(((.+)+)+)+$','6242358FVukLZ','2720726weYQYx','6260723FvkEif','1385492RUwdhl','1577596ZMPhQw','1220520rynGYj','apply','3KkbdXB','toString'];a146c=function(){return n;};return a146c();}
1
+ (function(a,b){var k=a146d,c=a();while(!![]){try{var d=parseInt(k(0x102))/0x1*(parseInt(k(0xf7))/0x2)+parseInt(k(0xfe))/0x3*(parseInt(k(0xfc))/0x4)+-parseInt(k(0xf5))/0x5*(-parseInt(k(0xf3))/0x6)+parseInt(k(0xf9))/0x7+-parseInt(k(0x101))/0x8*(parseInt(k(0xf8))/0x9)+parseInt(k(0xfa))/0xa+-parseInt(k(0xfd))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a146c,0x4c775));function a146c(){var n=['5UGkFXn','constructor','111902wtrDbu','18HaESmm','2769690vOPvlM','5221190OoefUM','search','1104548xPNjZW','10228988KadknZ','3engYBj','toString','(((.+)+)+)+$','2439952vGNVVQ','4Mhbgap','2612226xZKmQh','apply'];a146c=function(){return n;};return a146c();}function a146d(a,b){var c=a146c();return a146d=function(d,e){d=d-0xf3;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(0xf4)](g,arguments);return h=null,j;}}:function(){};return f=![],i;};}()),e=d(this,function(){var m=a146d;return e['toString']()['search']('(((.+)+)+)+$')[m(0xff)]()[m(0xf6)](e)[m(0xfb)](m(0x100));});e(),c['AC']='AC',c['AD']='AD',c['AE']='AE',c['AF']='AF',c['AG']='AG',c['AI']='AI',c['AL']='AL',c['AM']='AM',c['AN']='AN',c['AO']='AO',c['AQ']='AQ',c['AR']='AR',c['AS']='AS',c['AT']='AT',c['AU']='AU',c['AW']='AW',c['AX']='AX',c['AZ']='AZ',c['BA']='BA',c['BB']='BB',c['BD']='BD',c['BE']='BE',c['BF']='BF',c['BG']='BG',c['BH']='BH',c['BI']='BI',c['BJ']='BJ',c['BL']='BL',c['BM']='BM',c['BN']='BN',c['BO']='BO',c['BQ']='BQ',c['BR']='BR',c['BS']='BS',c['BT']='BT',c['BV']='BV',c['BW']='BW',c['BY']='BY',c['BZ']='BZ',c['CA']='CA',c['CC']='CC',c['CD']='CD',c['CF']='CF',c['CG']='CG',c['CH']='CH',c['CI']='CI',c['CK']='CK',c['CL']='CL',c['CM']='CM',c['CN']='CN',c['CO']='CO',c['CR']='CR',c['CU']='CU',c['CV']='CV',c['CW']='CW',c['CX']='CX',c['CY']='CY',c['CZ']='CZ',c['DE']='DE',c['DJ']='DJ',c['DK']='DK',c['DM']='DM',c['DO']='DO',c['DZ']='DZ',c['EC']='EC',c['EE']='EE',c['EG']='EG',c['EH']='EH',c['ER']='ER',c['ES']='ES',c['ET']='ET',c['FI']='FI',c['FJ']='FJ',c['FK']='FK',c['FM']='FM',c['FO']='FO',c['FR']='FR',c['GA']='GA',c['GB']='GB',c['GD']='GD',c['GE']='GE',c['GF']='GF',c['GG']='GG',c['GH']='GH',c['GI']='GI',c['GL']='GL',c['GM']='GM',c['GN']='GN',c['GP']='GP',c['GQ']='GQ',c['GR']='GR',c['GS']='GS',c['GT']='GT',c['GU']='GU',c['GW']='GW',c['GY']='GY',c['HK']='HK',c['HM']='HM',c['HN']='HN',c['HR']='HR',c['HT']='HT',c['HU']='HU',c['ID']='ID',c['IE']='IE',c['IL']='IL',c['IM']='IM',c['IN']='IN',c['IO']='IO',c['IQ']='IQ',c['IR']='IR',c['IS']='IS',c['IT']='IT',c['JE']='JE',c['JM']='JM',c['JO']='JO',c['JP']='JP',c['KE']='KE',c['KG']='KG',c['KH']='KH',c['KI']='KI',c['KM']='KM',c['KN']='KN',c['KP']='KP',c['KR']='KR',c['KW']='KW',c['KY']='KY',c['KZ']='KZ',c['LA']='LA',c['LB']='LB',c['LC']='LC',c['LI']='LI',c['LK']='LK',c['LR']='LR',c['LS']='LS',c['LT']='LT',c['LU']='LU',c['LV']='LV',c['LY']='LY',c['MA']='MA',c['MC']='MC',c['MD']='MD',c['ME']='ME',c['MF']='MF',c['MG']='MG',c['MH']='MH',c['MK']='MK',c['ML']='ML',c['MM']='MM',c['MN']='MN',c['MO']='MO',c['MP']='MP',c['MQ']='MQ',c['MR']='MR',c['MS']='MS',c['MT']='MT',c['MU']='MU',c['MV']='MV',c['MW']='MW',c['MX']='MX',c['MY']='MY',c['MZ']='MZ',c['NA']='NA',c['NC']='NC',c['NE']='NE',c['NF']='NF',c['NG']='NG',c['NI']='NI',c['NL']='NL',c['NO']='NO',c['NP']='NP',c['NR']='NR',c['NU']='NU',c['NZ']='NZ',c['OM']='OM',c['PA']='PA',c['PE']='PE',c['PF']='PF',c['PG']='PG',c['PH']='PH',c['PK']='PK',c['PL']='PL',c['PM']='PM',c['PN']='PN',c['PR']='PR',c['PS']='PS',c['PT']='PT',c['PW']='PW',c['PY']='PY',c['QA']='QA',c['RE']='RE',c['RO']='RO',c['RS']='RS',c['RU']='RU',c['RW']='RW',c['SA']='SA',c['SB']='SB',c['SC']='SC',c['SD']='SD',c['SE']='SE',c['SG']='SG',c['SH']='SH',c['SI']='SI',c['SJ']='SJ',c['SK']='SK',c['SL']='SL',c['SM']='SM',c['SN']='SN',c['SO']='SO',c['SR']='SR',c['SS']='SS',c['ST']='ST',c['SV']='SV',c['SX']='SX',c['SY']='SY',c['SZ']='SZ',c['TC']='TC',c['TD']='TD',c['TF']='TF',c['TG']='TG',c['TH']='TH',c['TJ']='TJ',c['TK']='TK',c['TL']='TL',c['TM']='TM',c['TN']='TN',c['TO']='TO',c['TP']='TP',c['TR']='TR',c['TT']='TT',c['TV']='TV',c['TW']='TW',c['TZ']='TZ',c['UA']='UA',c['UG']='UG',c['US']='US',c['UY']='UY',c['UZ']='UZ',c['VA']='VA',c['VC']='VC',c['VE']='VE',c['VG']='VG',c['VI']='VI',c['VN']='VN',c['VU']='VU',c['WF']='WF',c['WS']='WS',c['YE']='YE',c['YT']='YT',c['ZA']='ZA',c['ZM']='ZM',c['ZW']='ZW';}(CountryCode||(CountryCode={})));
@@ -1 +1 @@
1
- const a147m=a147d;(function(a,b){const j=a147d,c=a();while(!![]){try{const d=-parseInt(j(0x16d))/0x1*(parseInt(j(0x185))/0x2)+-parseInt(j(0x170))/0x3*(parseInt(j(0x182))/0x4)+-parseInt(j(0x171))/0x5*(-parseInt(j(0x17d))/0x6)+-parseInt(j(0x16e))/0x7+parseInt(j(0x17f))/0x8*(-parseInt(j(0x184))/0x9)+parseInt(j(0x176))/0xa*(-parseInt(j(0x17b))/0xb)+parseInt(j(0x175))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a147c,0xeeb20));function a147d(a,b){const c=a147c();return a147d=function(d,e){d=d-0x16b;let f=c[d];return f;},a147d(a,b);}function a147c(){const q=['854528yCorTp','.dkr.ecr.','31626ybvVgF','4JMJzza','tag','inherit','\x20|\x20docker\x20login\x20--username\x20AWS\x20--password-stdin\x20','396467FxYBgv','11907490doZTvr','search','21TiqliP','2125NYOtNd','push','join','toString','65808612ZzirLj','6433490NIrkjJ','docker\x20','(((.+)+)+)+$','awsLogin','.amazonaws.com/','22EXygge','.amazonaws.com','16374WPnLlK','apply','888xGUybj','error','echo\x20'];a147c=function(){return q;};return a147c();}const a147b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a147d;if(c){const e=c[k(0x17e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a147a=a147b(this,function(){const l=a147d;return a147a['toString']()[l(0x16f)](l(0x178))['toString']()['constructor'](a147a)[l(0x16f)]('(((.+)+)+)+$');});a147a();import{execSync}from'child_process';import{Log}from'../log/log.class.js';export class Docker{static[a147m(0x186)]({imageName:a,awsAccountId:b,region:c,repoName:d}){const n=a147m;try{const f=[n(0x186),a,b+n(0x183)+c+n(0x17a)+d],g=n(0x177)+f[n(0x173)]('\x20'),h=execSync(g,{'stdio':n(0x16b)})[n(0x174)]();return h;}catch(i){return Log[n(0x180)](i),'';}}static[a147m(0x179)]({awsAccountId:a,region:b,password:c}){const o=a147m;try{const d=o(0x181)+c+o(0x16c)+a+o(0x183)+b+o(0x17c);return execSync(d,{'stdio':'inherit'}),d;}catch(f){return Log['error'](f),'';}}static['pushImage']({awsAccountId:a,region:b,repoName:c}){const p=a147m;try{const d=[p(0x172),a+p(0x183)+b+p(0x17a)+c],f=p(0x177)+d['join']('\x20'),g=execSync(f,{'stdio':p(0x16b)})[p(0x174)]();return g;}catch(h){return Log[p(0x180)](h),'';}}}
1
+ const a147m=a147d;(function(a,b){const j=a147d,c=a();while(!![]){try{const d=-parseInt(j(0xc7))/0x1+-parseInt(j(0xbe))/0x2+parseInt(j(0xcb))/0x3+parseInt(j(0xbf))/0x4+parseInt(j(0xc5))/0x5+-parseInt(j(0xc0))/0x6*(parseInt(j(0xbb))/0x7)+-parseInt(j(0xb7))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a147c,0x7b699));const a147b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a147d;if(c){const e=c[k(0xc4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a147a=a147b(this,function(){const l=a147d;return a147a[l(0xbd)]()[l(0xcd)](l(0xcc))[l(0xbd)]()[l(0xc8)](a147a)[l(0xcd)](l(0xcc));});a147a();import{execSync}from'child_process';function a147c(){const q=['inherit','tag','join','apply','3473385KIjSAR','push','80885iZhYyH','constructor','error','echo\x20','2129478YowplQ','(((.+)+)+)+$','search','.amazonaws.com/','4907624ywzmWT','.dkr.ecr.','docker\x20','\x20|\x20docker\x20login\x20--username\x20AWS\x20--password-stdin\x20','343KFHsxR','.amazonaws.com','toString','1203042yvBKkD','1976276GsYtod','11904UrHzmC'];a147c=function(){return q;};return a147c();}function a147d(a,b){const c=a147c();return a147d=function(d,e){d=d-0xb7;let f=c[d];return f;},a147d(a,b);}import{Log}from'../log/log.class.js';export class Docker{static[a147m(0xc2)]({imageName:a,awsAccountId:b,region:c,repoName:d}){const n=a147m;try{const f=['tag',a,b+'.dkr.ecr.'+c+'.amazonaws.com/'+d],g=n(0xb9)+f[n(0xc3)]('\x20'),h=execSync(g,{'stdio':'inherit'})['toString']();return h;}catch(i){return Log[n(0xc9)](i),'';}}static['awsLogin']({awsAccountId:a,region:b,password:c}){const o=a147m;try{const d=o(0xca)+c+o(0xba)+a+o(0xb8)+b+o(0xbc);return execSync(d,{'stdio':o(0xc1)}),d;}catch(f){return Log['error'](f),'';}}static['pushImage']({awsAccountId:a,region:b,repoName:c}){const p=a147m;try{const d=[p(0xc6),a+p(0xb8)+b+p(0xce)+c],f=p(0xb9)+d[p(0xc3)]('\x20'),g=execSync(f,{'stdio':p(0xc1)})[p(0xbd)]();return g;}catch(h){return Log[p(0xc9)](h),'';}}}
@@ -1 +1 @@
1
- (function(a,b){var f=a148d,c=a();while(!![]){try{var d=-parseInt(f(0x182))/0x1+parseInt(f(0x17a))/0x2+parseInt(f(0x180))/0x3+parseInt(f(0x17c))/0x4+parseInt(f(0x179))/0x5*(parseInt(f(0x17e))/0x6)+-parseInt(f(0x17f))/0x7+-parseInt(f(0x17d))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a148c,0x70b6d));function a148c(){var h=['constructor','507320yVakcn','3713472qsaLJB','4661262pMlPkN','4191418enVvwH','1316781kAAtRA','toString','336953pfTUPW','(((.+)+)+)+$','5vUjipl','1037908WOvkPn'];a148c=function(){return h;};return a148c();}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']()['search'](g(0x178))[g(0x181)]()[g(0x17b)](a148a)['search'](g(0x178));});a148a();function a148d(a,b){var c=a148c();return a148d=function(d,e){d=d-0x178;var f=c[d];return f;},a148d(a,b);}export{};
1
+ (function(a,b){var f=a148d,c=a();while(!![]){try{var d=-parseInt(f(0xeb))/0x1*(parseInt(f(0xf9))/0x2)+parseInt(f(0xf2))/0x3*(-parseInt(f(0xf3))/0x4)+-parseInt(f(0xf5))/0x5*(-parseInt(f(0xef))/0x6)+parseInt(f(0xf8))/0x7*(parseInt(f(0xf1))/0x8)+parseInt(f(0xec))/0x9+parseInt(f(0xf6))/0xa*(-parseInt(f(0xf7))/0xb)+parseInt(f(0xfa))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a148c,0x92057));function a148c(){var i=['50135DIxEJU','123910ONdtnq','451dQCYlH','147tIWhzv','390910wfQYVC','19627632pFEnqt','6WYeZjw','3558105NctXlG','(((.+)+)+)+$','search','174xfmAYY','constructor','318616lMagvN','3hONtnj','3517068AToqtm','apply'];a148c=function(){return i;};return a148c();}function a148d(a,b){var c=a148c();return a148d=function(d,e){d=d-0xeb;var f=c[d];return f;},a148d(a,b);}var a148b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a148d;if(c){var e=c[g(0xf4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a148a=a148b(this,function(){var h=a148d;return a148a['toString']()[h(0xee)](h(0xed))['toString']()[h(0xf0)](a148a)[h(0xee)](h(0xed));});a148a();export{};