@maka/maka-cli 4.0.90 → 4.1.3

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 (107) hide show
  1. package/dist/command.js +1 -1
  2. package/dist/commands/_index.js +1 -1
  3. package/dist/commands/aws/_index.js +1 -1
  4. package/dist/commands/aws/aws.command.js +1 -1
  5. package/dist/commands/aws/ci.sub.cmd.js +1 -1
  6. package/dist/commands/aws/ckp.sub.cmd.js +1 -1
  7. package/dist/commands/aws/csg.sub.cmd.js +1 -1
  8. package/dist/commands/aws/di.sub.cmd.js +1 -1
  9. package/dist/commands/aws/dks.sub.cmd.js +1 -1
  10. package/dist/commands/aws/rbi.sub.cmd.js +1 -1
  11. package/dist/commands/aws/sth.sub.cmd.js +1 -1
  12. package/dist/commands/aws/ti.sub.cmd.js +1 -1
  13. package/dist/commands/build/_index.js +1 -1
  14. package/dist/commands/build/build.js +1 -1
  15. package/dist/commands/build/docker.sub.cmd.js +1 -1
  16. package/dist/commands/create.js +1 -1
  17. package/dist/commands/debug.js +1 -1
  18. package/dist/commands/deploy.js +1 -1
  19. package/dist/commands/game/_index.js +1 -1
  20. package/dist/commands/game/battleship.sub.cmd.js +1 -1
  21. package/dist/commands/game/play.command.js +1 -1
  22. package/dist/commands/game/pong.sub.cmd.js +1 -1
  23. package/dist/commands/game/snake.sub.cmd.js +1 -1
  24. package/dist/commands/game/tetris.sub.cmd.js +1 -1
  25. package/dist/commands/generate.js +1 -1
  26. package/dist/commands/get/_index.js +1 -1
  27. package/dist/commands/get/get.command.js +1 -1
  28. package/dist/commands/get/global.sub.cmd.js +1 -1
  29. package/dist/commands/get/local.sub.cmd.js +1 -1
  30. package/dist/commands/help.js +1 -1
  31. package/dist/commands/install.js +1 -1
  32. package/dist/commands/jsdoc.js +1 -1
  33. package/dist/commands/login.js +1 -1
  34. package/dist/commands/logout.js +1 -1
  35. package/dist/commands/logs.js +1 -1
  36. package/dist/commands/maka.cmd.js +1 -1
  37. package/dist/commands/murder.js +1 -1
  38. package/dist/commands/reconfig.js +1 -1
  39. package/dist/commands/run.js +1 -1
  40. package/dist/commands/set/_index.js +1 -1
  41. package/dist/commands/set/global.sub.cmd.js +1 -1
  42. package/dist/commands/set/local.sub.cmd.js +1 -1
  43. package/dist/commands/set/set.command.js +1 -1
  44. package/dist/commands/ssh.js +1 -1
  45. package/dist/commands/ssl.js +1 -1
  46. package/dist/commands/test.js +1 -1
  47. package/dist/commands/version.js +1 -1
  48. package/dist/error.js +1 -1
  49. package/dist/generator.js +1 -1
  50. package/dist/generators/_index.js +1 -1
  51. package/dist/generators/api.js +1 -1
  52. package/dist/generators/collection.js +1 -1
  53. package/dist/generators/component.js +1 -1
  54. package/dist/generators/config.js +1 -1
  55. package/dist/generators/dbc.js +1 -1
  56. package/dist/generators/dockerfile.js +1 -1
  57. package/dist/generators/hook.js +1 -1
  58. package/dist/generators/kit.js +1 -1
  59. package/dist/generators/layout.js +1 -1
  60. package/dist/generators/maka.gen.js +1 -1
  61. package/dist/generators/methods.js +1 -1
  62. package/dist/generators/package.js +1 -1
  63. package/dist/generators/page.js +1 -1
  64. package/dist/generators/publish.js +1 -1
  65. package/dist/generators/route.js +1 -1
  66. package/dist/generators/scaffold.js +1 -1
  67. package/dist/generators/service.js +1 -1
  68. package/dist/generators/services/_index.js +1 -0
  69. package/dist/generators/services/translation.js +1 -0
  70. package/dist/maka.js +1 -1
  71. package/dist/templates/meteor/app/client/head.html +1 -0
  72. package/dist/templates/meteor/app/imports/startup/client/index.js.jsx +1 -1
  73. package/dist/templates/meteor/app/imports/startup/client/index.js.tsx +1 -1
  74. package/dist/templates/meteor/app/public/favicon.ico +0 -0
  75. package/dist/templates/meteor/app/public/maka-144x144.png +0 -0
  76. package/dist/templates/meteor/app/public/maka-192x192.png +0 -0
  77. package/dist/templates/meteor/app/public/maka-512x512.png +0 -0
  78. package/dist/templates/meteor/app/public/manifest.json +21 -3
  79. package/dist/templates/react/component/component.js.jsx +7 -4
  80. package/dist/templates/react/component/component.js.tsx +8 -5
  81. package/dist/templates/react/hook/hook.js.jsx +6 -3
  82. package/dist/templates/react/hook/hook.js.tsx +5 -3
  83. package/dist/templates/service/i18n/i18n.js +33 -0
  84. package/dist/templates/service/i18n/i18n.js.ts +33 -0
  85. package/dist/templates/service/i18n/index.js +0 -0
  86. package/dist/templates/service/i18n/index.js.jsx +0 -0
  87. package/dist/templates/service/i18n/locales.js +3 -0
  88. package/dist/templates/service/i18n/locales.js.ts +3 -0
  89. package/dist/tool.js +1 -1
  90. package/dist/tools/actions/actions.class.js +1 -1
  91. package/dist/tools/actions/actions.test.js +1 -1
  92. package/dist/tools/aws/aws.class.js +1 -1
  93. package/dist/tools/aws/aws.interfaces.js +1 -1
  94. package/dist/tools/docker/docker.class.js +1 -1
  95. package/dist/tools/docker/docker.interfaces.js +1 -1
  96. package/dist/tools/fsi/fsi.class.js +1 -1
  97. package/dist/tools/fsi/fsi.interfaces.js +1 -1
  98. package/dist/tools/https/https.class.js +1 -1
  99. package/dist/tools/https/https.interface.js +1 -1
  100. package/dist/tools/log/log.class.js +1 -1
  101. package/dist/tools/log/log.interfaces.js +1 -1
  102. package/dist/tools/spawn-async/spawn-async.class.js +1 -1
  103. package/dist/tools/spawn-async/spawn-async.interfaces.js +1 -1
  104. package/dist/tools/ssh/ssh.class.js +1 -1
  105. package/dist/tools/ssh/ssh.interfaces.js +1 -1
  106. package/dist/tools/ssl/ssl.class.js +1 -1
  107. package/package.json +1 -1
@@ -1 +1 @@
1
- const a66D=a66d;(function(a,b){const A=a66d,c=a();while(!![]){try{const d=parseInt(A(0x1e2))/0x1*(parseInt(A(0x1d4))/0x2)+-parseInt(A(0x1e6))/0x3+-parseInt(A(0x1ed))/0x4*(-parseInt(A(0x1b2))/0x5)+parseInt(A(0x1ea))/0x6+-parseInt(A(0x1e0))/0x7+-parseInt(A(0x1ad))/0x8+parseInt(A(0x1d6))/0x9*(-parseInt(A(0x1c2))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a66c,0xe3e39));function a66d(a,b){const c=a66c();return a66d=function(d,e){d=d-0x1ac;let f=c[d];return f;},a66d(a,b);}const a66b=(function(){let a=!![];return function(b,c){const d=a?function(){const B=a66d;if(B(0x1f3)===B(0x1f3)){if(c){const e=c[B(0x1c0)](b,arguments);return c=null,e;}}else try{i(j[B(0x1b5)](k));}catch(g){m(g);}}:function(){};return a=![],d;};}()),a66a=a66b(this,function(){const C=a66d;return a66a[C(0x1e5)]()[C(0x1d8)](C(0x1ce))[C(0x1e5)]()[C(0x1bd)](a66a)[C(0x1d8)](C(0x1ce));});a66a();var __awaiter=this&&this[a66D(0x1e1)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){g(f);});}return new(c||(c=Promise))(function(f,g){const H=a66d;function h(k){const E=a66d;if(E(0x1b8)===E(0x1e3))return f instanceof g?h:new i(function(m){m(k);});else try{if(E(0x1d9)!=='rGFaN'){const n=d[E(0x1c0)](e,arguments);return f=null,n;}else j(d[E(0x1dd)](k));}catch(n){g(n);}}function i(k){const F=a66d;try{j(d[F(0x1b5)](k));}catch(l){g(l);}}function j(k){const G=a66d;k[G(0x1ca)]?f(k[G(0x1bb)]):e(k[G(0x1bb)])[G(0x1f1)](h,i);}j((d=d[H(0x1c0)](a,b||[]))['next']());});};import{camelCase,paramCase,pascalCase}from'change-case';import a66u from'../generators/maka.gen.js';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';Generator[a66D(0x1e4)]({'name':'service','aliases':[a66D(0x1ec)],'usage':'maka\x20{generate,\x20g}:{service}\x20<service-name>\x20--type=logger','description':a66D(0x1c5),'examples':[a66D(0x1b1)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const I=a66d;if(I(0x1cc)===I(0x1cc))try{const c=this[I(0x1d3)][I(0x1ef)]();this[I(0x1d3)]['withValue'](c,()=>__awaiter(this,void 0x0,void 0x0,function*(){const J=I;if(J(0x1f5)!==J(0x1f5))c(d);else{const f=this[J(0x1d3)][J(0x1d2)]({}),g=paramCase(b[J(0x1d7)]),h=paramCase(b[J(0x1d7)]);if(!b[J(0x1f8)]){const l={'type':J(0x1ac),'name':J(0x1cb),'message':'Service\x20Type','choices':[{'name':J(0x1d1),'value':J(0x1cf)}]},{serviceAnswer:m}=yield Actions[J(0x1f0)](l);m&&(b[J(0x1f8)]=m);}const i={'name':pascalCase(b[J(0x1d7)]),'fileName':g,'camelCase':camelCase(b[J(0x1d7)]),'type':b[J(0x1f8)],'engine':c[J(0x1eb)]['js'],'noRename':!![]};let j='js';c[J(0x1eb)]['js']===J(0x1c1)&&(j='ts');let k=['logger'];if(k[J(0x1bf)](i[J(0x1f8)])<0x0){let n=i[J(0x1f8)]?i[J(0x1f8)]:J(0x1ae);Log['error'](J(0x1b7)+n+J(0x1bc));return;}if(b[J(0x1f8)]==='logger'){if(J(0x1d5)!==J(0x1d5))c[J(0x1db)](d);else{if(!this[J(0x1d3)][J(0x1ba)](J(0x1c6))){if(J(0x1b3)===J(0x1c9))return c['toString']()[J(0x1d8)](J(0x1ce))[J(0x1e5)]()[J(0x1bd)](d)[J(0x1d8)](J(0x1ce));else Log[J(0x1dc)](J(0x1b0)),yield this['fsi'][J(0x1b4)]('winston\x20winston-transport\x20setimmediate',{'cwd':f});}!this[J(0x1d3)][J(0x1be)](J(0x1f7))&&(Log[J(0x1b6)]('Verifying\x20meteor\x20package\x20requirements:\x20mongo\x20...'),yield this[J(0x1d3)][J(0x1f4)]('mongo',{'cwd':f}));let p=this['fsi'][J(0x1d2)]({'pathParts':[J(0x1e8),'startup',J(0x1c3),'services',g+'.'+j]});this[J(0x1d3)][J(0x1f9)]({'srcPath':'service/logger/logger.js','destPath':p,'context':i,'config':c});const q=a66u[J(0x1e9)]('collection');if(q){if(J(0x1cd)!==J(0x1cd)){const y=g?function(){const K=J;if(y){const z=q[K(0x1c0)](r,arguments);return s=null,z;}}:function(){};return l=![],y;}else yield q['invoke']([h],{'where':J(0x1de),'appPathPrefix':'lib','dir':''});}let r=this['fsi'][J(0x1da)]({'pathParts':[p]});const s=this[J(0x1d3)]['rewriteDestinationPathForType']({'pathParts':[J(0x1c7)]});this[J(0x1d3)]['injectAtBeginningOfFile']({'filePath':r,'content':J(0x1f6)+s+'\x27;'});let t=this[J(0x1d3)][J(0x1d2)]({'pathParts':[J(0x1e8),J(0x1af),'lib',J(0x1ee),J(0x1b9)+j]});this[J(0x1d3)][J(0x1f9)]({'srcPath':J(0x1df),'destPath':t,'context':i,'config':c});let u=this[J(0x1d3)][J(0x1da)]({'pathParts':[t]});const v=this[J(0x1d3)]['rewriteDestinationPathForType']({'pathParts':[J(0x1f2)]});this[J(0x1d3)][J(0x1c8)]({'filePath':u,'content':J(0x1e7)+v+'\x27;'});}}}}));}catch(d){I(0x1d0)!==I(0x1c4)?Log[I(0x1db)](d):c[I(0x1f8)]=d;}else{if(e){const h=i['apply'](j,arguments);return k=null,h;}}});});function a66c(){const L=['both','service/logger/transports.js','480270ynkvIR','__awaiter','89410Jrlxbb','Sddjv','create','toString','1151097Itvgvj','import\x20Logs\x20from\x20\x27','imports','findGenerator','178800KDXbee','engines','svc','40JLAjJC','services','getProjectConfig','options','then','/imports/startup/lib/collections/logs','pGHWO','installMeteorPackage','KKiNq','import\x20{\x20MongoTransport\x20}\x20from\x20\x27','mongo','type','template','list','6864200nLxQcX','(blank)','startup','Verifying\x20npm\x20package\x20requirements:\x20winston\x20...','maka\x20g:s\x20Logger\x20--type=logger','921845punVFR','RjlJw','installNpmPackage','throw','notice','Invalid\x20type\x20','BSsGs','logger-transports.','checkNpmPackage','value',',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument.\x20\x20Usage:','constructor','checkMeteorPackage','indexOf','apply','tsx','10IVKHtM','lib','lrpTY','Generate\x20a\x20service\x20to\x20run\x20within\x20your\x20meteor\x20application.','winston','/imports/startup/lib/services/logger-transports','injectAtBeginningOfFile','nauVv','done','serviceAnswer','vcvys','VdVSv','(((.+)+)+)+$','logger','cOTYQ','Winston\x20Logger','pathFromApp','fsi','12NIDTPU','MMbrR','1495647RcqATb','resourceName','search','rGFaN','rewriteDestinationPathForType','error','warn','next'];a66c=function(){return L;};return a66c();}
1
+ const a66z=a66d;(function(a,b){const w=a66d,c=a();while(!![]){try{const d=parseInt(w(0xf1))/0x1*(-parseInt(w(0x115))/0x2)+parseInt(w(0x104))/0x3*(-parseInt(w(0x124))/0x4)+parseInt(w(0x129))/0x5*(parseInt(w(0xef))/0x6)+-parseInt(w(0x11b))/0x7+parseInt(w(0xed))/0x8*(-parseInt(w(0x12c))/0x9)+parseInt(w(0x11a))/0xa*(parseInt(w(0x126))/0xb)+-parseInt(w(0x11d))/0xc*(-parseInt(w(0xee))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a66c,0x7d30c));function a66d(a,b){const c=a66c();return a66d=function(d,e){d=d-0xe1;let f=c[d];return f;},a66d(a,b);}const a66b=(function(){let a=!![];return function(b,c){const d=a?function(){const x=a66d;if('pAJly'==='pAJly'){if(c){const e=c[x(0x12b)](b,arguments);return c=null,e;}}else c(d);}:function(){};return a=![],d;};}()),a66a=a66b(this,function(){const y=a66d;return a66a['toString']()[y(0xec)](y(0xe1))[y(0x123)]()[y(0x100)](a66a)[y(0xec)](y(0xe1));});a66a();var __awaiter=this&&this[a66z(0xea)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){g(f);});}return new(c||(c=Promise))(function(f,g){const D=a66d;function h(k){const A=a66d;if(A(0x11c)!==A(0x11c)){let m=d[A(0xfe)]?e[A(0xfe)]:A(0xe5);f[A(0x113)](A(0x101)+m+A(0x12f));return;}else try{A(0xf8)===A(0xfa)?d(e[A(0x125)](f)):j(d[A(0x125)](k));}catch(n){g(n);}}function i(k){const B=a66d;if(B(0x122)!==B(0x10e))try{if(B(0x111)===B(0x120))return f instanceof g?h:new i(function(m){m(k);});else j(d[B(0xf4)](k));}catch(m){if(B(0xe7)!==B(0xe7))try{i(j['throw'](k));}catch(o){m(o);}else g(m);}else c[B(0x113)](d);}function j(k){const C=a66d;k[C(0x12e)]?f(k['value']):e(k[C(0x12d)])[C(0x10a)](h,i);}j((d=d['apply'](a,b||[]))[D(0x125)]());});};import{camelCase,paramCase,pascalCase}from'change-case';function a66c(){const G=['wYhaR','imports','dfUHP','Generate\x20a\x20service\x20to\x20run\x20within\x20your\x20meteor\x20application.','fsi','rewriteDestinationPathForType','type','Verifying\x20npm\x20package\x20requirements:\x20winston\x20...','constructor','Invalid\x20type\x20','injectAtBeginningOfFile','warn','846fgvnwg','import\x20Logs\x20from\x20\x27','pathFromApp','svc','create','service/logger/transports.js','then','DIDXg','Verifying\x20meteor\x20package\x20requirements:\x20mongo\x20...','service','BaOzZ','engines','serviceAnswer','ITNgZ','indexOf','error','installNpmPackage','2498ILqMsH','maka\x20g:s\x20Logger\x20--type=logger','Service\x20Type','logger','checkNpmPackage','1968010FGXbpE','4104457xiABJu','LGxKi','300GRWUQR','lib','findGenerator','pyLtw','services','ggqtJ','toString','13644GEAXze','next','44AgycGG','withValue','bcKpW','30ZhJQVZ','logger-transports.','apply','246699oCNeHP','value','done',',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument.\x20\x20Usage:','getProjectConfig','/imports/startup/lib/collections/logs','(((.+)+)+)+$','resourceName','aSBtA','checkMeteorPackage','(blank)','template','yEGFi','both','mongo','__awaiter','invoke','search','240LBTJLy','1117064gBILdh','925926PnzSjr','RuFmy','783OMqQqc','startup','installMeteorPackage','throw','AIBxg','PhAtD','tsx'];a66c=function(){return G;};return a66c();}import a66u from'../generators/maka.gen.js';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';Generator[a66z(0x108)]({'name':a66z(0x10d),'aliases':[a66z(0x107)],'usage':'maka\x20{generate,\x20g}:{service}\x20<service-name>\x20--type=logger','description':a66z(0xfb),'examples':[a66z(0x116)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const E=a66d;if(E(0x10b)!==E(0xf0))try{const c=this[E(0xfc)][E(0x130)]();this['fsi'][E(0x127)](c,()=>__awaiter(this,void 0x0,void 0x0,function*(){const F=E;if('kPqNj'===F(0xf5)){if(e){const f=i[F(0x12b)](j,arguments);return k=null,f;}}else{const f=this[F(0xfc)][F(0x106)]({}),g=paramCase(b[F(0xe2)]),h=paramCase(b[F(0xe2)]);if(!b['type']){const l={'type':'list','name':F(0x110),'message':F(0x117),'choices':[{'name':'Winston\x20Logger','value':F(0x118)}]},{serviceAnswer:m}=yield Actions['options'](l);m&&(b['type']=m);}const i={'name':pascalCase(b['resourceName']),'fileName':g,'camelCase':camelCase(b[F(0xe2)]),'type':b[F(0xfe)],'engine':c[F(0x10f)]['js'],'noRename':!![]};let j='js';c['engines']['js']===F(0xf7)&&(j='ts');let k=['logger'];if(k[F(0x112)](i[F(0xfe)])<0x0){let n=i['type']?i[F(0xfe)]:'(blank)';Log[F(0x113)](F(0x101)+n+F(0x12f));return;}if(b[F(0xfe)]===F(0x118)){if(F(0xe3)!==F(0x128)){!this['fsi'][F(0x119)]('winston')&&(Log[F(0x103)](F(0xff)),yield this['fsi'][F(0x114)]('winston\x20winston-transport\x20setimmediate',{'cwd':f}));!this['fsi'][F(0xe4)](F(0xe9))&&(Log['notice'](F(0x10c)),yield this[F(0xfc)][F(0xf3)](F(0xe9),{'cwd':f}));let o=this[F(0xfc)]['pathFromApp']({'pathParts':[F(0xf9),F(0xf2),F(0x11e),F(0x121),g+'.'+j]});this[F(0xfc)]['template']({'srcPath':'service/logger/logger.js','destPath':o,'context':i,'config':c});const p=a66u[F(0x11f)]('collection');p&&(yield p[F(0xeb)]([h],{'where':F(0xe8),'appPathPrefix':F(0x11e),'dir':''}));let q=this[F(0xfc)][F(0xfd)]({'pathParts':[o]});const r=this[F(0xfc)][F(0xfd)]({'pathParts':['/imports/startup/lib/services/logger-transports']});this[F(0xfc)][F(0x102)]({'filePath':q,'content':'import\x20{\x20MongoTransport\x20}\x20from\x20\x27'+r+'\x27;'});let s=this[F(0xfc)][F(0x106)]({'pathParts':[F(0xf9),F(0xf2),F(0x11e),'services',F(0x12a)+j]});this[F(0xfc)][F(0xe6)]({'srcPath':F(0x109),'destPath':s,'context':i,'config':c});let t=this['fsi'][F(0xfd)]({'pathParts':[s]});const u=this[F(0xfc)][F(0xfd)]({'pathParts':[F(0x131)]});this['fsi'][F(0x102)]({'filePath':t,'content':F(0x105)+u+'\x27;'});}else h[F(0x12e)]?i(j['value']):k(l[F(0x12d)])['then'](m,n);}}}));}catch(d){if('PhAtD'===E(0xf6))Log[E(0x113)](d);else return c[E(0x123)]()[E(0xec)]('(((.+)+)+)+$')[E(0x123)]()['constructor'](d)[E(0xec)](E(0xe1));}else b='ts';});});
@@ -0,0 +1 @@
1
+ (function(a,b){var u=a67d,c=a();while(!![]){try{var d=-parseInt(u(0x10c))/0x1*(parseInt(u(0x102))/0x2)+parseInt(u(0x10b))/0x3*(-parseInt(u(0x10a))/0x4)+parseInt(u(0x109))/0x5+parseInt(u(0xfc))/0x6*(parseInt(u(0xff))/0x7)+-parseInt(u(0x10d))/0x8*(parseInt(u(0x108))/0x9)+parseInt(u(0x103))/0xa*(-parseInt(u(0x107))/0xb)+parseInt(u(0x105))/0xc*(parseInt(u(0x100))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a67c,0xc231a));var a67b=(function(){var a=!![];return function(b,c){var d=a?function(){var v=a67d;if(c){var e=c[v(0xfe)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a67a=a67b(this,function(){var w=a67d;return a67a[w(0x104)]()['search'](w(0x101))[w(0x104)]()[w(0xfd)](a67a)[w(0x106)](w(0x101));});function a67d(a,b){var c=a67c();return a67d=function(d,e){d=d-0xfc;var f=c[d];return f;},a67d(a,b);}a67a();import'./translation.js';function a67c(){var x=['(((.+)+)+)+$','136TpUmwB','1690xnLTPQ','toString','375792BGKwAW','search','95997YhKIyL','13106718RiTeUH','5801525SFCYZj','6330396ayGzKI','3wTgfpF','1934HdPgvA','8cMSWAl','4825878gkxyiO','constructor','apply','7uaHpgM','1443fORGKy'];a67c=function(){return x;};return a67c();}
@@ -0,0 +1 @@
1
+ const a68G=a68d;(function(a,b){const D=a68d,c=a();while(!![]){try{const d=parseInt(D(0xfe))/0x1+parseInt(D(0xe6))/0x2+-parseInt(D(0xd5))/0x3+parseInt(D(0xed))/0x4+parseInt(D(0xc6))/0x5*(parseInt(D(0xc7))/0x6)+parseInt(D(0xe7))/0x7*(parseInt(D(0x107))/0x8)+-parseInt(D(0xcb))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a68c,0xce610));function a68d(a,b){const c=a68c();return a68d=function(d,e){d=d-0xbf;let f=c[d];return f;},a68d(a,b);}const a68b=(function(){let a=!![];return function(b,c){const d=a?function(){const E=a68d;if(c){if(E(0xd6)===E(0xd6)){const e=c[E(0xd3)](b,arguments);return c=null,e;}else{const h=d['apply'](e,arguments);return f=null,h;}}}:function(){};return a=![],d;};}()),a68a=a68b(this,function(){const F=a68d;return a68a[F(0xc3)]()['search'](F(0xd0))['toString']()[F(0x109)](a68a)[F(0x100)](F(0xd0));});a68a();import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';function a68c(){const J=['toString','isFile','Generate\x20a\x20new\x20locale\x20translation','10195ZYEfyb','2910Yuteoq','grep','lang','maka\x20g:translation\x20--lang=de','18209916OexBmU','maka\x20{generate,\x20g}:translation\x20--lang=<language>','engines','import\x20\x27../lib/services/translations/i18n\x27;','readFileSync','(((.+)+)+)+$','maka\x20g:translation\x20--lang=en\x20(default)','exit','apply','withValue','1801395KHCGQX','MWgKc','translations','client','import\x20\x27../lib/services/translations/i18n\x27;\x0a','zETkr','NfUKO','pathFromApp','findAppDirectory','Locale\x20already\x20defined:\x20','setProjectConfig','i18n/index.js','getGlobalConfig','JtjzP','XBpqR','i18n/locales.js','neFkS','1680958Fvxogs','28lqitEq','injectAtBeginningOfFile','injectAtEndOfFile','index.js','getProjectConfig','root','4322300gPonkh','rewriteDestinationPathForEngine','i18n/i18n.js','warn','UwYAF','service','error','ssr','imports','default\x20as\x20','\x20}\x20from\x20\x27./','features.withTranslations','fsi','locales','ZHWbz','lib','appName','308588egfnqg','findProjectDirectory','search','translation','orQcJ','create','true','template','i18n.js','501120ZIaJGA','Tgtul','constructor','startup','services','i18next\x20i18next-browser-languagedetector\x20react-i18next','maka\x20g:translation\x20--lang=fr'];a68c=function(){return J;};return a68c();}import a68u from'fs';Generator[a68G(0x103)]({'name':a68G(0x101),'usage':a68G(0xcc),'description':a68G(0xc5),'noResource':!![],'examples':[a68G(0xd1),a68G(0xc2),a68G(0xca)]},function(a,b){const H=a68G;try{if(H(0xda)!==H(0xda))d[H(0xf3)](e),f[H(0xd2)](0x1);else{const d=this[H(0xf9)][H(0xeb)](),f=this[H(0xf9)][H(0xe1)](),g=this['fsi'][H(0xff)](),h=this[H(0xf9)][H(0xdd)]();this['fsi'][H(0xd4)](d,()=>{const I=H;try{if(I(0x108)===I(0xe2))!c&&this[I(0xf9)]['injectAtBeginningOfFile']({'filePath':e,'content':I(0xd9)});else{!b['lang']&&(b[I(0xc9)]='en');!b[I(0xec)]&&!this[I(0xf9)]['checkNpmPackage']('i18next')&&(Log[I(0xf0)]('Verifying\x20npm\x20package\x20requirements:\x20i18next\x20...'),this[I(0xf9)]['installNpmPackage'](I(0xc1),{'cwd':h}),this[I(0xf9)][I(0xdf)](I(0xf8),!![]));const j=this['fsi']['pathFromApp']({'pathParts':[I(0xf5),I(0xbf),I(0xd8),I(0xea)]}),k=this['fsi']['rewriteDestinationPathForEngine']({'pathParts':[j],'config':d}),l=this[I(0xf9)][I(0xc8)](a68u[I(0xcf)](k)[I(0xc3)](),'import\x20\x27../lib/services/translations/i18n\x27;')[0x0]&&!![];if(d[I(0xcd)][I(0xf4)]===I(0x104)){!l&&(I(0xe5)!==I(0xe3)?this[I(0xf9)][I(0xe8)]({'filePath':k,'content':'import\x20\x27../lib/services/translations/i18n\x27;\x0a'}):this[I(0xf9)]['injectAtBeginningOfFile']({'filePath':b,'content':I(0xd9)}));const w=this[I(0xf9)][I(0xdc)]({'pathParts':[I(0xf5),'startup','server','index.js']}),x=this[I(0xf9)][I(0xee)]({'pathParts':[w],'config':d}),y=this[I(0xf9)][I(0xc8)](a68u[I(0xcf)](x)[I(0xc3)](),I(0xce))[0x0]&&!![];!y&&this[I(0xf9)][I(0xe8)]({'filePath':x,'content':I(0xd9)});}else!l&&this['fsi'][I(0xe8)]({'filePath':k,'content':I(0xd9)});let m={'app':f[I(0xfd)],'config':d};const n=this[I(0xf9)][I(0xdc)]({'pathParts':[I(0xf5),I(0xbf),I(0xfc),I(0xc0),I(0xd7),I(0x106)]}),o=this[I(0xf9)][I(0xc4)](this[I(0xf9)][I(0xee)]({'pathParts':[n],'config':d}));!o&&this[I(0xf9)][I(0x105)]({'srcPath':I(0xef),'destPath':n,'framework':I(0xf2),'context':m,'config':d});const p=this[I(0xf9)]['pathFromApp']({'pathParts':[I(0xf5),I(0xbf),I(0xfc),'services','translations',I(0xfa),b[I(0xc9)]+'.js']}),q=this[I(0xf9)]['rewriteDestinationPathForEngine']({'pathParts':[p],'config':d}),r=this[I(0xf9)][I(0xc4)](q);!r?this[I(0xf9)][I(0x105)]({'srcPath':I(0xe4),'destPath':p,'framework':I(0xf2),'context':m,'config':d}):Log[I(0xf0)](I(0xde)+q);const s=this[I(0xf9)]['pathFromApp']({'pathParts':[I(0xf5),I(0xbf),I(0xfc),I(0xc0),I(0xd7),'locales','index.'+d[I(0xcd)]['js']]}),t=this[I(0xf9)][I(0xee)]({'pathParts':[s],'config':d}),u=this[I(0xf9)]['isFile'](t);!u&&('vRuOz'===I(0xdb)?c[I(0xf0)](I(0xde)+d):this[I(0xf9)]['template']({'srcPath':I(0xe0),'destPath':s,'framework':'service','context':m,'config':d}));const v=this[I(0xf9)]['grep'](a68u['readFileSync'](s)['toString'](),I(0xf6)+b[I(0xc9)])[0x0]&&!![];!v?this[I(0xf9)][I(0xe9)]({'filePath':s,'content':'export\x20{\x20default\x20as\x20'+b['lang']+I(0xf7)+b['lang']+'\x27;'}):Log[I(0xf0)]('Locale\x20already\x20exported:\x20'+s);}}catch(B){I(0xf1)==='KAkWN'?this['fsi'][I(0xe8)]({'filePath':b,'content':I(0xd9)}):(Log[I(0xf3)](B),process['exit'](0x1));}});}}catch(i){H(0xfb)!==H(0x102)?(Log[H(0xf3)](i),process[H(0xd2)](0x1)):this[H(0xf9)][H(0x105)]({'srcPath':'i18n/i18n.js','destPath':d,'framework':'service','context':i,'config':f});}});
package/dist/maka.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node --experimental-modules --no-warnings --experimental-json-modules
2
- const a67C=a67d;(function(a,b){const z=a67d,c=a();while(!![]){try{const d=parseInt(z(0xd9))/0x1*(parseInt(z(0xdd))/0x2)+-parseInt(z(0xda))/0x3*(-parseInt(z(0xd5))/0x4)+-parseInt(z(0xe9))/0x5*(-parseInt(z(0xe3))/0x6)+-parseInt(z(0xec))/0x7+-parseInt(z(0xdb))/0x8+-parseInt(z(0xe8))/0x9*(parseInt(z(0xd4))/0xa)+parseInt(z(0xe2))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a67c,0x91091));const a67b=(function(){let a=!![];return function(b,c){const d=a?function(){const A=a67d;if(c){const e=c[A(0xdf)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a67a=a67b(this,function(){const B=a67d;return a67a['toString']()[B(0xe1)](B(0xe4))[B(0xe0)]()[B(0xe5)](a67a)['search'](B(0xe4));});function a67c(){const D=['40HXdopM','2390900nocApn','dirname','slice','stringify','254lriqFi','3NskBfI','3920744nhSrtA','argv','4220EePMRO','--max-old-space-size=','apply','toString','search','1888656rRGyWJ','6BCxSzD','(((.+)+)+)+$','constructor','floor','TOOL_NODE_FLAGS','728901hLlFSN','4857865OMNGfq','totalmem','parse','6081740eKUMAN','MAKA_COMMAND_PATH','url','env'];a67c=function(){return D;};return a67c();}a67a();import a67u from'minimist';import a67v from'os';import a67w from'path';import a67x from'humps';function a67d(a,b){const c=a67c();return a67d=function(d,e){d=d-0xd4;let f=c[d];return f;},a67d(a,b);}import a67y from'./commands/maka.cmd.js';import'./commands/_index.js';import'./generators/_index.js';import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta[a67C(0xee)]),__dirname=a67w[a67C(0xd6)](__filename);global[a67C(0xed)]=__dirname;let total_memory=a67v[a67C(0xea)](),total_mem_in_kb=total_memory/0x400,total_mem_in_mb=total_mem_in_kb/0x400;total_mem_in_mb=Math[a67C(0xe6)](total_mem_in_mb),process[a67C(0xef)][a67C(0xe7)]=a67C(0xde)+total_mem_in_mb;const argv=a67u(process[a67C(0xdc)][a67C(0xd7)](0x2)),args=argv['_'],deepCopyArgv=JSON[a67C(0xeb)](JSON[a67C(0xd8)](argv));delete deepCopyArgv['_'];const opts=a67x['camelizeKeys'](deepCopyArgv);a67y['run'](args,opts);
2
+ const a69C=a69d;(function(a,b){const z=a69d,c=a();while(!![]){try{const d=-parseInt(z(0xa3))/0x1*(parseInt(z(0xa2))/0x2)+-parseInt(z(0xb3))/0x3*(parseInt(z(0xab))/0x4)+parseInt(z(0xb6))/0x5+-parseInt(z(0xa7))/0x6+parseInt(z(0xae))/0x7+-parseInt(z(0xa4))/0x8+parseInt(z(0xa6))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a69c,0x3debd));const a69b=(function(){let a=!![];return function(b,c){const d=a?function(){const A=a69d;if(c){const e=c[A(0xb1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a69a=a69b(this,function(){const B=a69d;return a69a[B(0xac)]()['search'](B(0xb5))[B(0xac)]()[B(0xb0)](a69a)[B(0xb2)](B(0xb5));});a69a();import a69u from'minimist';import a69v from'os';import a69w from'path';import a69x from'humps';import a69y from'./commands/maka.cmd.js';import'./commands/_index.js';import'./generators/_index.js';import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta[a69C(0xb4)]),__dirname=a69w[a69C(0xa5)](__filename);global[a69C(0xaa)]=__dirname;let total_memory=a69v[a69C(0xb8)](),total_mem_in_kb=total_memory/0x400,total_mem_in_mb=total_mem_in_kb/0x400;total_mem_in_mb=Math[a69C(0xa8)](total_mem_in_mb),process[a69C(0xa9)][a69C(0xad)]=a69C(0xa0)+total_mem_in_mb;const argv=a69u(process['argv'][a69C(0xa1)](0x2)),args=argv['_'],deepCopyArgv=JSON['parse'](JSON[a69C(0xaf)](argv));delete deepCopyArgv['_'];const opts=a69x[a69C(0x9f)](deepCopyArgv);function a69c(){const D=['912174LmrtfH','url','(((.+)+)+)+$','397890vBCUjs','run','totalmem','camelizeKeys','--max-old-space-size=','slice','2894JBUKHh','259msrqnI','3240624zEIoxL','dirname','11980089wQVIAe','1683672MgVfzx','floor','env','MAKA_COMMAND_PATH','4psSkMp','toString','TOOL_NODE_FLAGS','1452157FIXkGs','stringify','constructor','apply','search'];a69c=function(){return D;};return a69c();}function a69d(a,b){const c=a69c();return a69d=function(d,e){d=d-0x9f;let f=c[d];return f;},a69d(a,b);}a69y[a69C(0xb7)](args,opts);
@@ -7,6 +7,7 @@
7
7
  <meta name="description" content="<%= app %>">
8
8
  <meta name="theme-color" content="#FFF"/>
9
9
  <link rel="manifest" href="/manifest.json">
10
+ <link rel="apple-touch-icon" href="/maka-192x192.png">
10
11
  <title><%= app %></title>
11
12
  <noscript>
12
13
  Please enable JavaScript
@@ -72,7 +72,7 @@ const AppContainer = withTracker(props => {
72
72
 
73
73
  const startApp = () => {<% if (config.engines.ssr === 'true') { %>
74
74
  onPageLoad(sink => {
75
- ReactDOM.hydrateRoot(document.getElementById('app'), <App />);
75
+ ReactDOM.hydrateRoot(document.getElementById('app'), <AppContainer />);
76
76
  });<% } else { %>
77
77
  const root = ReactDOM.createRoot(document.getElementById('app'));
78
78
  root.render(<AppContainer />);<% } %>
@@ -73,7 +73,7 @@ const AppContainer = withTracker(props => {
73
73
 
74
74
  const startApp = () => {<% if (config.engines.ssr === 'true') { %>
75
75
  onPageLoad(sink => {
76
- ReactDOM.hydrateRoot(document.getElementById('app'), <App />);
76
+ ReactDOM.hydrateRoot(document.getElementById('app'), <AppContainer />);
77
77
  });<% } else { %>
78
78
  const root = ReactDOM.createRoot(document.getElementById('app'));
79
79
  root.render(<AppContainer />);<% } %>
@@ -1,9 +1,27 @@
1
1
  {
2
- "short_name": "app",
3
- "name": "app",
2
+ "short_name": "<%= app %>",
3
+ "name": "<%= app %>",
4
4
  "start_url": "/",
5
5
  "background_color": "#FFF",
6
6
  "display": "standalone",
7
7
  "scope": "/",
8
- "theme_color": "#FFF"
8
+ "theme_color": "#FFF",
9
+ "icons": [
10
+ {
11
+ "src": "/maka-144x144.png",
12
+ "sizes": "144x144",
13
+ "type": "image/png"
14
+ },
15
+ {
16
+ "src": "/maka-512x512.png",
17
+ "sizes": "512x512",
18
+ "type": "image/png"
19
+ },
20
+ {
21
+ "src": "/maka-192x192.png",
22
+ "sizes": "192x192",
23
+ "type": "image/png",
24
+ "purpose": "any maskable"
25
+ }
26
+ ]
9
27
  }
@@ -7,8 +7,9 @@ import { gql } from '@apollo/client';
7
7
  import { graphql } from '@apollo/client/react/hoc';<% } %><% if (theme === 'material' ) { %>
8
8
  // https://material-ui.com/styles/basics/#higher-order-component-api
9
9
  import { withStyles } from '@mui/styles';
10
+ const styles = (theme) => { };<% } %><% if (withTranslations) { %>
11
+ import { withTranslation } from 'react-i18next';<% } %>
10
12
 
11
- const styles = (theme) => { };<% } %>
12
13
  class <%= className %>Component extends Component {
13
14
  /**
14
15
  * Define types for your props for stability.
@@ -46,10 +47,11 @@ class <%= className %>Component extends Component {
46
47
  /**
47
48
  * This is the main render method, and will rerun anytime either this.state or this.props is changed.
48
49
  */
49
- render() {
50
+ render() {<% if (withTranslations) { %>
51
+ const { t } = this.props;<% } %>
50
52
  return (
51
53
  <div id="<%= cssCaseName %>-component">
52
- <% if (isLayout) { %>{ this.props.children }<% } else { %><h2>Find me in <%= myPath %></h2><% } %>
54
+ <% if (isLayout) { %>{ this.props.children }<% } else if (withTranslations) { %><h2>{t('example', { page: '<%= myPath %>' } )}</h2><% } else { %><h2>Find me in <%= myPath %></h2><% } %>
53
55
  </div>
54
56
  );
55
57
  }
@@ -58,7 +60,8 @@ class <%= className %>Component extends Component {
58
60
  const <%= className %> = compose(
59
61
  withTracker(() => {}),<% if(graphql === 'apollo') { %>
60
62
  //graphql(gql`query Todos { todos }`, { variables: {/* input */} }),<% } %><% if(theme === 'material') { %>
61
- withStyles(styles),<% } %>
63
+ withStyles(styles),<% } %><% if (withTranslations) { %>
64
+ withTranslation(),<% } %>
62
65
  )(<%= className %>Component);
63
66
 
64
67
  export { <%= className %> };
@@ -7,13 +7,14 @@ import { gql } from '@apollo/client';
7
7
  import { graphql } from '@apollo/client/react/hoc';<% } %><% if (theme === 'material' ) { %>
8
8
  // https://material-ui.com/styles/basics/#higher-order-component-api
9
9
  import { withStyles } from '@mui/styles';
10
+ const styles = (theme) => { };<% } %><% if (withTranslations) { %>
11
+ import { withTranslation } from 'react-i18next';<% } %>
10
12
 
11
- const styles = (theme) => { return {} };<% } %>
12
13
  interface I<%= className %> {
13
14
  props: object;
14
15
  state: object;
15
16
  }
16
- class <%= className %>Component extends React.Component<I<%= className %>%>> {
17
+ class <%= className %>Component extends React.Component<I<%= className %>> {
17
18
  public state: object;
18
19
 
19
20
  /**
@@ -51,10 +52,11 @@ class <%= className %>Component extends React.Component<I<%= className %>%>> {
51
52
  /**
52
53
  * This is the main render method, and will rerun anytime either this.state or this.props is changed.
53
54
  */
54
- render() {
55
+ render() {<% if (withTranslations) { %>
56
+ const { t } = this.props;<% } %>
55
57
  return (
56
58
  <div id="<%= cssCaseName %>-component">
57
- <% if (isLayout) { %>{ this.props.children }<% } else { %><h2>Find me in <%= myPath %></h2><% } %>
59
+ <% if (isLayout) { %>{ this.props.children }<% } else if (withTranslations) { %><h2>{t('example', { page: '<%= myPath %>' } )}</h2><% } else { %><h2>Find me in <%= myPath %></h2><% } %>
58
60
  </div>
59
61
  );
60
62
  }
@@ -63,7 +65,8 @@ class <%= className %>Component extends React.Component<I<%= className %>%>> {
63
65
  const <%= className %> = compose(
64
66
  withTracker(() => {}),<% if(graphql === 'apollo') { %>
65
67
  //graphql(gql`query Todos { todos }`, { variables: {/* input */} }),<% } %><% if(theme === 'material') { %>
66
- withStyles(styles),<% } %>
68
+ withStyles(styles),<% } %><% if (withTranslations) { %>
69
+ withTranslation(),<% } %>
67
70
  )(<%= className %>Component);
68
71
 
69
72
  export { <%= className %> };
@@ -5,7 +5,9 @@ import { useTracker } from 'meteor/react-meteor-data';<% if(graphql === 'apollo'
5
5
  import { useQuery, gql } from '@apollo/client';<% } %><% if (theme === 'material' ) { %>
6
6
  // https://material-ui.com/styles/basics/#higher-order-component-api
7
7
  import { makeStyles } from '@mui/styles';
8
- const useStyles = makeStyles((theme) => ({}));<% } %>
8
+ const useStyles = makeStyles((theme) => ({}));<% } %><%if (withTranslations) { %>
9
+ import { useTranslation } from 'react-i18next';<% } %>
10
+
9
11
 
10
12
  function <%= className %>(props) {
11
13
  /*const { userId } = useTracker(() => {
@@ -13,11 +15,12 @@ function <%= className %>(props) {
13
15
  return { userId }
14
16
  });*/<% if(graphql === 'apollo') { %>
15
17
  //const { loading, error, data } = useQuery(gql`query Todos { todos }`, { variables: {/* input */} }); <% } %><% if (theme === 'material') { %>
16
- const classes = useStyles();<% } %>
18
+ const classes = useStyles();<% } %><% if (withTranslations) { %>
19
+ const { t } = useTranslation();<% } %>
17
20
 
18
21
  return (
19
22
  <div>
20
- <% if (isLayout) { %>{ props.children }<% } else { %><h2>Find me in <%= myPath %></h2><% } %>
23
+ <% if (isLayout) { %>{ props.children }<% } else if (withTranslations) { %><h2>{t('example', { page: '<%= myPath %>' } )}</h2><% } else { %><h2>Find me in <%= myPath %></h2><% } %>
21
24
  </div>
22
25
  );
23
26
  }
@@ -5,7 +5,8 @@ import { useTracker } from 'meteor/react-meteor-data';<% if(graphql === 'apollo'
5
5
  import { useQuery, gql } from '@apollo/client';<% } %><% if (theme === 'material' ) { %>
6
6
  // https://material-ui.com/styles/basics/#higher-order-component-api
7
7
  import { makeStyles } from '@mui/styles';
8
- const useStyles = makeStyles((theme) => ({});<% } %>
8
+ const useStyles = makeStyles((theme) => ({}));<% } %><%if (withTranslations) { %>
9
+ import { useTranslation } from 'react-i18next';<% } %>
9
10
 
10
11
  function <%= className %>(props) {
11
12
  /*const { userId } = useTracker(() => {
@@ -13,11 +14,12 @@ function <%= className %>(props) {
13
14
  return { userId }
14
15
  });*/<% if(graphql === 'apollo') { %>
15
16
  // const { loading, error, data } = useQuery(gql`query Todos { todos }`, { variables: {/* input */} }); <% } %><% if (theme === 'material') { %>
16
- const classes = useStyles();<% } %>
17
+ const classes = useStyles();<% } %><% if (withTranslations) { %>
18
+ const { t } = useTranslation();<% } %>
17
19
 
18
20
  return (
19
21
  <div>
20
- <% if (isLayout) { %>{ props.children }<% } else { %><h2>Find me in <%= myPath %></h2><% } %>
22
+ <% if (isLayout) { %>{ props.children }<% } else if (withTranslations) { %><h2>{t('example', { page: '<%= myPath %>' } )}</h2><% } else { %><h2>Find me in <%= myPath %></h2><% } %>
21
23
  </div>
22
24
  );
23
25
  }
@@ -0,0 +1,33 @@
1
+ import i18n from 'i18next';
2
+ import { initReactI18next } from 'react-i18next';
3
+ import LanguageDetector from 'i18next-browser-languagedetector';
4
+ import * as resources from './locales'
5
+
6
+ i18n
7
+ // detect user language
8
+ // learn more: https://github.com/i18next/i18next-browser-languageDetector
9
+ .use(LanguageDetector)
10
+ // pass the i18n instance to react-i18next.
11
+ .use(initReactI18next)
12
+ // init i18next
13
+ // for all options read: https://www.i18next.com/overview/configuration-options
14
+ .init({
15
+ debug: false,
16
+ fallbackLng: 'en',
17
+ interpolation: {
18
+ escapeValue: false, // not needed for react as it escapes by default
19
+ },
20
+ resources: {
21
+ ...Object.entries(resources).reduce(
22
+ (acc, [key, value]) => ({
23
+ ...acc,
24
+ [key]: {
25
+ translation: value,
26
+ },
27
+ }),
28
+ {},
29
+ ),
30
+ },
31
+ });
32
+
33
+ export default i18n;
@@ -0,0 +1,33 @@
1
+ import i18n from 'i18next';
2
+ import { initReactI18next } from 'react-i18next';
3
+ import LanguageDetector from 'i18next-browser-languagedetector';
4
+ import * as resources from './locales'
5
+
6
+ i18n
7
+ // detect user language
8
+ // learn more: https://github.com/i18next/i18next-browser-languageDetector
9
+ .use(LanguageDetector)
10
+ // pass the i18n instance to react-i18next.
11
+ .use(initReactI18next)
12
+ // init i18next
13
+ // for all options read: https://www.i18next.com/overview/configuration-options
14
+ .init({
15
+ debug: false,
16
+ fallbackLng: 'en',
17
+ interpolation: {
18
+ escapeValue: false, // not needed for react as it escapes by default
19
+ },
20
+ resources: {
21
+ ...Object.entries(resources).reduce(
22
+ (acc, [key, value]) => ({
23
+ ...acc,
24
+ [key]: {
25
+ translation: value,
26
+ },
27
+ }),
28
+ {},
29
+ ),
30
+ },
31
+ });
32
+
33
+ export default i18n;
File without changes
File without changes
@@ -0,0 +1,3 @@
1
+ export default {
2
+ example: 'Find me in {{page}}'
3
+ }
@@ -0,0 +1,3 @@
1
+ export default {
2
+ example: 'Find me in {{page}}'
3
+ }
package/dist/tool.js CHANGED
@@ -1 +1 @@
1
- function a68d(a,b){var c=a68c();return a68d=function(d,e){d=d-0x1dd;var f=c[d];return f;},a68d(a,b);}(function(a,b){var v=a68d,c=a();while(!![]){try{var d=parseInt(v(0x1dd))/0x1*(-parseInt(v(0x1e6))/0x2)+parseInt(v(0x1eb))/0x3*(-parseInt(v(0x1e3))/0x4)+-parseInt(v(0x1ef))/0x5+-parseInt(v(0x1e4))/0x6+-parseInt(v(0x1ec))/0x7*(parseInt(v(0x1ee))/0x8)+-parseInt(v(0x1e0))/0x9*(parseInt(v(0x1e5))/0xa)+parseInt(v(0x1f0))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a68c,0x2da1d));var a68b=(function(){var a=!![];return function(b,c){var w=a68d;if(w(0x1e2)!=='pAPvr'){var f=g?function(){var x=w;if(f){var u=q[x(0x1ed)](r,arguments);return s=null,u;}}:function(){};return l=![],f;}else{var d=a?function(){var y=w;if(y(0x1e1)===y(0x1e7))this['docker']=new c(),this[y(0x1df)]=new d();else{if(c){var f=c[y(0x1ed)](b,arguments);return c=null,f;}}}:function(){};return a=![],d;}};}()),a68a=a68b(this,function(){var z=a68d;return a68a['toString']()[z(0x1ea)](z(0x1f1))[z(0x1e9)]()[z(0x1de)](a68a)[z(0x1ea)](z(0x1f1));});a68a();import{Docker}from'./tools/docker/docker.class.js';import{FSI}from'./tools/fsi/fsi.class.js';export class Tool{constructor(){var A=a68d;this[A(0x1e8)]=new Docker(),this[A(0x1df)]=new FSI();}}function a68c(){var B=['1275399gUCdMi','qYrAd','pAPvr','1288060vaxQCg','178110DAktZw','20VxIDcN','16440rOHhIl','xwdtW','docker','toString','search','3GlaUWP','63GpdeLk','apply','132592hzqmep','867760udwcaj','15666519BUIkLJ','(((.+)+)+)+$','34NFTMOP','constructor','fsi'];a68c=function(){return B;};return a68c();}
1
+ (function(a,b){var v=a70d,c=a();while(!![]){try{var d=parseInt(v(0x7e))/0x1*(-parseInt(v(0x79))/0x2)+parseInt(v(0x85))/0x3+parseInt(v(0x7f))/0x4+-parseInt(v(0x87))/0x5+parseInt(v(0x7d))/0x6*(parseInt(v(0x84))/0x7)+-parseInt(v(0x83))/0x8+parseInt(v(0x7b))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a70c,0x67a77));function a70c(){var B=['fsi','apply','tuoRY','search','166GNLdOO','toString','5633766ykowhp','(((.+)+)+)+$','12xHbVXx','6689LUbFCS','2397560WCHYxw','constructor','MBzhh','NCFyV','2107112telFPE','1636334QNUGwA','639300znYVok','docker','3314225lJjvsN'];a70c=function(){return B;};return a70c();}function a70d(a,b){var c=a70c();return a70d=function(d,e){d=d-0x77;var f=c[d];return f;},a70d(a,b);}var a70b=(function(){var a=!![];return function(b,c){var w=a70d;if(w(0x82)===w(0x82)){var d=a?function(){var x=w;if(c){if(x(0x77)===x(0x81)){if(e){var g=i[x(0x89)](j,arguments);return k=null,g;}}else{var e=c[x(0x89)](b,arguments);return c=null,e;}}}:function(){};return a=![],d;}else{var f=g?function(){var y=w;if(f){var u=q[y(0x89)](r,arguments);return s=null,u;}}:function(){};return l=![],f;}};}()),a70a=a70b(this,function(){var z=a70d;return a70a[z(0x7a)]()[z(0x78)]('(((.+)+)+)+$')[z(0x7a)]()[z(0x80)](a70a)[z(0x78)](z(0x7c));});a70a();import{Docker}from'./tools/docker/docker.class.js';import{FSI}from'./tools/fsi/fsi.class.js';export class Tool{constructor(){var A=a70d;this[A(0x86)]=new Docker(),this[A(0x88)]=new FSI();}}
@@ -1 +1 @@
1
- const a69y=a69d;(function(a,b){const v=a69d,c=a();while(!![]){try{const d=-parseInt(v(0xa0))/0x1*(parseInt(v(0xb8))/0x2)+parseInt(v(0xc3))/0x3+parseInt(v(0x9b))/0x4*(-parseInt(v(0xbd))/0x5)+-parseInt(v(0xa1))/0x6*(parseInt(v(0xba))/0x7)+parseInt(v(0xbe))/0x8*(-parseInt(v(0xb5))/0x9)+-parseInt(v(0xb2))/0xa*(parseInt(v(0xab))/0xb)+parseInt(v(0xbc))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a69c,0x28f3d));const a69b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a69d;if(w(0x9f)!=='XrBqx')c(d);else{if(c){const f=c[w(0xac)](b,arguments);return c=null,f;}}}:function(){};return a=![],d;};}()),a69a=a69b(this,function(){const x=a69d;return a69a[x(0xa5)]()[x(0xb3)](x(0xa2))['toString']()[x(0xb7)](a69a)[x(0xb3)](x(0xa2));});a69a();function a69d(a,b){const c=a69c();return a69d=function(d,e){d=d-0x9a;let f=c[d];return f;},a69d(a,b);}var __awaiter=this&&this[a69y(0xaf)]||function(a,b,c,d){function e(f){const z=a69d;if(z(0xc0)===z(0xa6))try{i(j['next'](k));}catch(h){m(h);}else return f instanceof c?f:new c(function(h){h(f);});}return new(c||(c=Promise))(function(f,g){const D=a69d;function h(k){const A=a69d;try{'fruRu'!=='ArAWS'?j(d[A(0xae)](k)):c(d);}catch(m){A(0x9d)===A(0xad)?d(m[A(0xa4)](f)):g(m);}}function i(k){const B=a69d;if(B(0xbf)!==B(0xaa))try{B(0xc2)==='dEmii'?h[B(0xa3)]?i(j[B(0xb6)]):k(l['value'])['then'](m,n):j(d[B(0xa4)](k));}catch(m){if(B(0xb1)===B(0xc1)){if(m){const o=i[B(0xac)](j,arguments);return k=null,o;}}else g(m);}else return f instanceof g?h:new i(function(p){p(k);});}function j(k){const C=a69d;if(C(0xa7)!==C(0xa9))k['done']?f(k[C(0xb6)]):e(k[C(0xb6)])[C(0x9a)](h,i);else try{i(j[C(0xa4)](k));}catch(m){m(m);}}j((d=d[D(0xac)](a,b||[]))[D(0xae)]());});};import a69u from'inquirer';function a69c(){const H=['apply','pNXaR','next','__awaiter','options','GjpHx','10EWUdtn','search','answer','2638413QkfYOx','value','constructor','6FdqkaW','password','217lEDFMj','input','10290504iyRZIC','5585uKJfUK','8SlokKY','okRfq','hiqGB','kdjCD','VHSEC','1001274vLgoiQ','then','712mlJBPB','ask','PvCIs','prompt','XrBqx','33181bhFSAG','19302UHIGtd','(((.+)+)+)+$','done','throw','toString','QqwVL','ECTPi','zmhAu','kCRUd','DknUr','3655366LusXjd'];a69c=function(){return H;};return a69c();}export class Actions{constructor(){}static[a69y(0x9c)](a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const E=a69d,{answer:c}=yield a69u['prompt']({'type':b?E(0xb9):E(0xbb),'name':'answer','message':a});return c;});}static['confirm'](a){return __awaiter(this,void 0x0,void 0x0,function*(){const F=a69d;if('bBUzn'!==F(0xa8)){const {answer:b}=yield a69u['prompt']({'type':'confirm','name':F(0xb4),'message':a,'default':![]});return b;}else return c[F(0xa5)]()[F(0xb3)](F(0xa2))['toString']()[F(0xb7)](d)[F(0xb3)](F(0xa2));});}static[a69y(0xb0)](a){return __awaiter(this,void 0x0,void 0x0,function*(){const G=a69d,b=yield a69u[G(0x9e)](a);return b;});}}
1
+ const a71C=a71d;(function(a,b){const v=a71d,c=a();while(!![]){try{const d=-parseInt(v(0x157))/0x1+parseInt(v(0x166))/0x2*(-parseInt(v(0x16d))/0x3)+parseInt(v(0x15b))/0x4+parseInt(v(0x16a))/0x5+parseInt(v(0x15d))/0x6*(parseInt(v(0x170))/0x7)+parseInt(v(0x15a))/0x8+parseInt(v(0x16b))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a71c,0x7984f));function a71d(a,b){const c=a71c();return a71d=function(d,e){d=d-0x155;let f=c[d];return f;},a71d(a,b);}const a71b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a71d;if(w(0x162)!=='hZnxQ')try{i(j['throw'](k));}catch(f){m(f);}else{if(c){const f=c[w(0x161)](b,arguments);return c=null,f;}}}:function(){};return a=![],d;};}()),a71a=a71b(this,function(){const x=a71d;return a71a[x(0x15c)]()[x(0x16c)](x(0x168))[x(0x15c)]()[x(0x167)](a71a)[x(0x16c)](x(0x168));});a71a();var __awaiter=this&&this['__awaiter']||function(a,b,c,d){function e(f){const y=a71d;if(y(0x164)!==y(0x165))return f instanceof c?f:new c(function(g){g(f);});else{const h=g?function(){if(h){const u=q['apply'](r,arguments);return s=null,u;}}:function(){};return l=![],h;}}return new(c||(c=Promise))(function(f,g){function h(k){const z=a71d;if(z(0x16f)!==z(0x16f)){if(e){const m=i['apply'](j,arguments);return k=null,m;}}else try{j(d[z(0x15f)](k));}catch(m){g(m);}}function i(k){const A=a71d;if('ZcBZP'===A(0x169))try{j(d[A(0x171)](k));}catch(l){g(l);}else c(d);}function j(k){const B=a71d;k[B(0x172)]?f(k[B(0x15e)]):e(k[B(0x15e)])[B(0x16e)](h,i);}j((d=d['apply'](a,b||[]))['next']());});};import a71u from'inquirer';function a71c(){const G=['10PCQTuC','constructor','(((.+)+)+)+$','ZcBZP','2718030hbhmIW','7293879Btlwhe','search','498801Wdicjm','then','BFZIy','119WHzNZu','throw','done','ask','options','prompt','664407uFwPCo','answer','input','227360DvQIQu','773692MYpyZp','toString','147390JWdaHz','value','next','confirm','apply','hZnxQ','password','EaTxb','bRRFO'];a71c=function(){return G;};return a71c();}export class Actions{constructor(){}static[a71C(0x173)](a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const D=a71d,{answer:c}=yield a71u[D(0x156)]({'type':b?D(0x163):D(0x159),'name':D(0x158),'message':a});return c;});}static[a71C(0x160)](a,b=![]){return __awaiter(this,void 0x0,void 0x0,function*(){const E=a71d,{answer:c}=yield a71u[E(0x156)]({'type':E(0x160),'name':E(0x158),'message':a,'default':b});return c;});}static[a71C(0x155)](a){return __awaiter(this,void 0x0,void 0x0,function*(){const F=a71d,b=yield a71u[F(0x156)](a);return b;});}}
@@ -1 +1 @@
1
- const a70y=a70d;(function(a,b){const v=a70d,c=a();while(!![]){try{const d=-parseInt(v(0x174))/0x1*(-parseInt(v(0x183))/0x2)+parseInt(v(0x16e))/0x3*(parseInt(v(0x179))/0x4)+parseInt(v(0x175))/0x5+parseInt(v(0x176))/0x6+-parseInt(v(0x181))/0x7+parseInt(v(0x17f))/0x8+-parseInt(v(0x173))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a70c,0x933a8));const a70b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a70d;if(c){const e=c[w(0x171)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a70a=a70b(this,function(){const x=a70d;return a70a[x(0x17c)]()[x(0x170)]('(((.+)+)+)+$')[x(0x17c)]()['constructor'](a70a)[x(0x170)](x(0x17a));});function a70c(){const G=['log','Actions\x20Test','throw','313197yHMWNd','then','search','apply','done','9235107JwXBvy','146236bvonPD','192995RexrVm','6141306NoKYjn','ask','works','8arwskb','(((.+)+)+)+$','__awaiter','toString','next','value','2653560UdmXPZ','uWpcl','837956JaIGln','rwxtu','2STUFxW'];a70c=function(){return G;};return a70c();}a70a();var __awaiter=this&&this[a70y(0x17b)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){const z=a70d;z(0x180)!=='uWpcl'?c(d):g(f);});}return new(c||(c=Promise))(function(f,g){const D=a70d;function h(k){const A=a70d;try{j(d[A(0x17d)](k));}catch(l){g(l);}}function i(k){const B=a70d;try{'jrWHJ'!=='QtqCN'?j(d[B(0x16d)](k)):c(d);}catch(m){g(m);}}function j(k){const C=a70d;C(0x182)===C(0x182)?k[C(0x172)]?f(k['value']):e(k[C(0x17e)])[C(0x16f)](h,i):d(e[C(0x17d)](f));}j((d=d[D(0x171)](a,b||[]))[D(0x17d)]());});};function a70d(a,b){const c=a70c();return a70d=function(d,e){d=d-0x16b;let f=c[d];return f;},a70d(a,b);}import a70u from'chai';const {expect}=a70u;import{describe,it}from'mocha';import{Actions}from'./actions.class.js';describe(a70y(0x16c),function(){const E=a70y;it(E(0x178),function(a){return __awaiter(this,void 0x0,void 0x0,function*(){const F=a70d,b=yield Actions[F(0x177)]('Password:\x20',!![]);console[F(0x16b)](b),a();});});});
1
+ function a72c(){const D=['(((.+)+)+)+$','done','2LUXUgN','3864ahAPCL','252RdEkEs','651500anExcO','181496hUMLpr','apply','value','Password:\x20','5415490taNkZA','44CovwVv','HAUED','pdjjU','constructor','log','1658352LpHdsr','next','adLjf','Actions\x20Test','fYiBX','__awaiter','5514OWUZSC','search','toString','then','ask','2385400lzMWwd','2665510jEcXDm'];a72c=function(){return D;};return a72c();}const a72y=a72d;function a72d(a,b){const c=a72c();return a72d=function(d,e){d=d-0x9a;let f=c[d];return f;},a72d(a,b);}(function(a,b){const v=a72d,c=a();while(!![]){try{const d=parseInt(v(0x9a))/0x1*(-parseInt(v(0xb4))/0x2)+parseInt(v(0xa5))/0x3+parseInt(v(0xb0))/0x4+-parseInt(v(0x9f))/0x5+parseInt(v(0xab))/0x6*(-parseInt(v(0xb5))/0x7)+-parseInt(v(0x9b))/0x8*(-parseInt(v(0xb6))/0x9)+-parseInt(v(0xb1))/0xa*(-parseInt(v(0xa0))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a72c,0x949b0));const a72b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a72d;if(c){const e=c[w(0x9c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a72a=a72b(this,function(){const x=a72d;return a72a[x(0xad)]()[x(0xac)](x(0xb2))[x(0xad)]()[x(0xa3)](a72a)['search']('(((.+)+)+)+$');});a72a();var __awaiter=this&&this[a72y(0xaa)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){g(f);});}return new(c||(c=Promise))(function(f,g){const B=a72d;function h(k){const z=a72d;try{if(z(0xa2)!==z(0xa2))try{i(j[z(0xa6)](k));}catch(m){m(m);}else j(d[z(0xa6)](k));}catch(m){g(m);}}function i(k){try{j(d['throw'](k));}catch(l){g(l);}}function j(k){const A=a72d;if(A(0xa9)!==A(0xa9))return c[A(0xad)]()[A(0xac)](A(0xb2))[A(0xad)]()[A(0xa3)](d)[A(0xac)](A(0xb2));else k[A(0xb3)]?f(k[A(0x9d)]):e(k[A(0x9d)])[A(0xae)](h,i);}j((d=d[B(0x9c)](a,b||[]))['next']());});};import a72u from'chai';const {expect}=a72u;import{describe,it}from'mocha';import{Actions}from'./actions.class.js';describe(a72y(0xa8),function(){it('works',function(a){return __awaiter(this,void 0x0,void 0x0,function*(){const C=a72d;if(C(0xa7)===C(0xa1))return f instanceof g?h:new i(function(m){m(k);});else{const c=yield Actions[C(0xaf)](C(0x9e),!![]);console[C(0xa4)](c),a();}});});});
@@ -1 +1 @@
1
- function a71d(a,b){const c=a71c();return a71d=function(d,e){d=d-0x77;let f=c[d];return f;},a71d(a,b);}const a71U=a71d;(function(a,b){const R=a71d,c=a();while(!![]){try{const d=parseInt(R(0xe5))/0x1*(-parseInt(R(0xe7))/0x2)+-parseInt(R(0xc0))/0x3+-parseInt(R(0xa8))/0x4+-parseInt(R(0xd6))/0x5*(-parseInt(R(0xed))/0x6)+-parseInt(R(0xff))/0x7*(-parseInt(R(0x103))/0x8)+parseInt(R(0xf8))/0x9+parseInt(R(0xd5))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a71c,0x6a577));const a71b=(function(){let a=!![];return function(b,c){const d=a?function(){const S=a71d;if(S(0x114)!==S(0x82)){if(c){const e=c[S(0xfd)](b,arguments);return c=null,e;}}else{let g=(h===null||i===void 0x0?void 0x0:j['cwd'])?k[S(0x88)]:l[S(0x88)](),h=['ec2',S(0x120),S(0xc8),m[S(0x7d)]],i='aws\x20'+h[S(0xf4)]('\x20'),j=n(i)['toString']();return j;}}:function(){};return a=![],d;};}()),a71a=a71b(this,function(){const T=a71d;return a71a['toString']()['search'](T(0xc5))[T(0xbb)]()[T(0xa9)](a71a)[T(0x11e)]('(((.+)+)+)+$');});a71a();var __awaiter=this&&this[a71U(0xd1)]||function(a,b,c,d){function e(f){const V=a71d;if(V(0xa6)!==V(0xc3))return f instanceof c?f:new c(function(g){g(f);});else try{let h=q[V(0x88)]?r['cwd']:s[V(0x88)](),i=[V(0xbe),V(0xc9),'--instance-id',t[V(0x7d)]],j='aws\x20'+i['join']('\x20');u[V(0xaf)](j);let k=v(j)[V(0xbb)]();return w[V(0xaf)](k),k;}catch(l){y['error'](l);}}return new(c||(c=Promise))(function(f,g){const Z=a71d;function h(k){const W=a71d;if('hafDJ'===W(0x124))try{j(d[W(0xd3)](k));}catch(l){W(0xa1)!==W(0xa1)?c[W(0xe1)](d):g(l);}else return c['toString']()[W(0x11e)]('(((.+)+)+)+$')[W(0xbb)]()['constructor'](d)['search'](W(0xc5));}function i(k){const X=a71d;if(X(0xc7)===X(0x97))throw X(0x94);else try{j(d[X(0xe8)](k));}catch(m){if(X(0xd8)===X(0xb8)){let o=X(0xf0)+m['id']+X(0xc4)+n[X(0xe4)]+X(0xa3)+o[X(0xfe)]+'\x20STATUS:\x20'+p[X(0xe6)]+X(0xcb)+q[X(0x7d)]+'\x20PUB_IP:\x20'+r['publicIp']+'\x20PRIV_IP:\x20'+s['privateIp'];if(t[X(0xe6)]===X(0x79))y['error'](o);else v['status']===X(0xd4)?z[X(0xbd)](o):A['notice'](o);}else g(m);}}function j(k){const Y=a71d;'eKVAo'===Y(0xe9)?k['name']===(l===null||m===void 0x0?void 0x0:n['suggestion'])?u[Y(0xbd)](Y(0xf0)+v['id']+Y(0xc4)+w[Y(0xe4)]):x[Y(0xaf)]('ID:\x20'+y['id']+'\x20NAME:\x20'+z[Y(0xe4)]):k[Y(0xdb)]?f(k[Y(0xb9)]):e(k[Y(0xb9)])[Y(0x98)](h,i);}j((d=d[Z(0xfd)](a,b||[]))[Z(0xd3)]());});};import a71P from'fs';import a71Q from'path';import{execSync}from'child_process';import{Actions}from'../actions/actions.class.js';import{Log}from'../log/log.class.js';import{Docker}from'../docker/docker.class.js';import{FSI}from'../fsi/fsi.class.js';export class AWS{constructor(){const a0=a71U;this[a0(0x106)]=new FSI();}[a71U(0x10e)](a){const a1=a71U;try{if('sFTzK'!==a1(0x112)){let b=[a1(0x96),a1(0xcc),a1(0x7c),a[a1(0xe4)],a1(0x104),a['region']],c=a1(0xea)+b[a1(0xf4)]('\x20'),d=execSync(c)[a1(0xbb)]();return d;}else throw'Could\x20not\x20create\x20key.';}catch(g){Log[a1(0xe1)](g);}}[a71U(0x7e)]({awsAccountId:a,region:b}){const a2=a71U;try{let c=[a2(0x96),'get-login-password','|',Docker['awsLogin']({'awsAccountId':a,'region':b})],d=a2(0xea)+c[a2(0xf4)]('\x20'),f=execSync(d)[a2(0xbb)]();return f;}catch(g){if('JMzKy'===a2(0xf5))Log[a2(0xe1)](g);else{let i=[a2(0xbe),a2(0x91),'--image-id',i[a2(0x10d)],a2(0x11a),j[a2(0xfa)],a2(0xb4),k[a2(0x121)],'--key-name',l[a2(0x89)],a2(0xe3),m[a2(0x92)],a2(0xaa),n['subnet'],'--tag-specifications',o[a2(0x90)]],j=a2(0xea)+i['join']('\x20'),k=p(j)[a2(0xbb)]();return k;}}}[a71U(0xa4)]({repoName:a,region:b}){const a3=a71U;try{if(a3(0xc2)===a3(0xef))c(d);else{let d=[a3(0x96),'delete-repository',a3(0x7c),a,a3(0x104),b,a3(0x8b)],f=a3(0xea)+d[a3(0xf4)]('\x20'),g=execSync(f)['toString']();return g;}}catch(h){if(a3(0xa7)==='VPuak')Log[a3(0xe1)](h);else{const j=g?function(){if(j){const u=q['apply'](r,arguments);return s=null,u;}}:function(){};return l=![],j;}}}[a71U(0x78)](a){const a4=a71U;try{if('fTENG'!=='zjEJc'){let b=['ec2',a4(0x91),a4(0x102),a[a4(0x10d)],'--count',a[a4(0xfa)],a4(0xb4),a[a4(0x121)],a4(0xbf),a[a4(0x89)],'--security-group-ids',a[a4(0x92)],a4(0xaa),a[a4(0xba)],a4(0x116),a['tags']],c=a4(0xea)+b[a4(0xf4)]('\x20'),d=execSync(c)[a4(0xbb)]();return d;}else d(e[a4(0xe8)](f));}catch(g){a4(0x115)!=='AibLQ'?c['error'](d):Log[a4(0xe1)](g);}}[a71U(0xf2)](a){const a5=a71U;try{let b=a[a5(0x88)]?a[a5(0x88)]:process['cwd'](),c=[a5(0xbe),a5(0x120),a5(0x7a),a['instanceId']],d=a5(0xea)+c[a5(0xf4)]('\x20');execSync(d,{'stdio':a5(0xf9)});}catch(f){return Log['error'](f),{};}}[a71U(0x9e)]({fileName:a,env:b}){const a6=a71U;let c=this['fsi'][a6(0xb2)](b);const d=a71Q[a6(0xf4)](c,a6(0x118),a+'.pem.txt');try{if(this['fsi'][a6(0x126)](d)){if(a6(0x11d)!==a6(0x11d))c[a6(0xe1)](d);else throw'A\x20PEM\x20file\x20exists\x20at\x20this\x20location:\x20'+d;}let g=[a6(0xbe),'create-key-pair',a6(0xbf),a],h=a6(0xea)+g[a6(0xf4)]('\x20'),i=execSync(h)[a6(0xbb)](),j=JSON[a6(0xb7)](i),k=j[a6(0xb1)];this[a6(0x106)][a6(0x101)]({'filePath':d,'data':k,'opts':{'force':!![]}}),execSync(a6(0x113)+d,{'stdio':a6(0xdd)}),Log[a6(0xbd)](a6(0x9c)+d);}catch(m){Log[a6(0xe1)](m);}const f=this['fsi']['isFile'](d);return f;}[a71U(0xac)](a){const a7=a71U;try{let b=a['cwd']?a['cwd']:process[a7(0x88)](),c=['ec2','create-security-group',a7(0x83),a[a7(0x9a)],a7(0x9f),a[a7(0xe4)],'--vpc-id',a[a7(0x99)]],d=a7(0xea)+c[a7(0xf4)]('\x20'),f=execSync(d,{'cwd':b})[a7(0xbb)]();if(!f){if('ieuJt'!=='ieuJt')throw a7(0x94);else throw a7(0x94);}let g=JSON[a7(0xb7)](f);function h(l,m){const a8=a7;if(a8(0xb0)===a8(0xc1))throw'A\x20PEM\x20file\x20exists\x20at\x20this\x20location:\x20'+b;else{let o=[a8(0xbe),a8(0x10b),a8(0x107),m,a8(0xee),a8(0xb6),a8(0x80),l,a8(0xce),a8(0x93)];return o;}}if(a[a7(0xab)]){let l='aws\x20'+h(0x1bb,g['GroupId'])['join']('\x20');execSync(l,{'cwd':b,'stdio':a7(0xdd)}),Log[a7(0xaf)](a7(0xda));}let i='aws\x20'+h(0x50,g['GroupId'])[a7(0xf4)]('\x20');execSync(i,{'cwd':b,'stdio':a7(0xdd)}),Log[a7(0xaf)](a7(0xb5));let j=a7(0xea)+h(0x16,g[a7(0xdf)])['join']('\x20');return execSync(j,{'cwd':b,'stdio':a7(0xdd)}),Log[a7(0xaf)](a7(0x10c)),Log[a7(0xbd)](a7(0xa5)+g[a7(0xdf)]+a7(0xc4)+a[a7(0xe4)]),!![];}catch(m){Log['error'](m);}}['ec2describeKeys'](a){const a9=a71U;try{let b=(a===null||a===void 0x0?void 0x0:a[a9(0x88)])?a['cwd']:process[a9(0x88)](),c=[a9(0xbe),a9(0x111),a9(0x108),a9(0x100)],d='aws\x20'+c[a9(0xf4)]('\x20'),f=execSync(d)['toString']();if(!f)throw a9(0x94);let g=JSON[a9(0xb7)](f),h=[];if(g)g['forEach']((i,j)=>{const aa=a9;aa(0xec)!==aa(0xec)?(d[aa(0xe1)](e),f['error'](aa(0x117))):h[aa(0x119)]({'id':j,'name':i[aa(0xe4)]});}),h[a9(0x8d)](i=>{const ab=a9;ab(0xb3)!==ab(0x85)?i['name']===(a===null||a===void 0x0?void 0x0:a['suggestion'])?Log[ab(0xbd)]('ID:\x20'+i['id']+ab(0xc4)+i[ab(0xe4)]):Log[ab(0xaf)](ab(0xf0)+i['id']+ab(0xc4)+i[ab(0xe4)]):b[ab(0xe1)]('You\x20have\x20no\x20instances\x20created\x20by\x20maka-cli.\x20\x20Please\x20reivew\x20your\x20AWS\x20console\x20manually!!!');});else{Log[a9(0xe1)](a9(0x8f));return;}return h;}catch(i){Log[a9(0xe1)](i);}}[a71U(0x84)](a){const ac=a71U;let b=[];try{let c=(a===null||a===void 0x0?void 0x0:a[ac(0x88)])?a[ac(0x88)]:process['cwd'](),d=[ac(0xbe),'describe-instances',ac(0xa2),'\x22Name=tag:created-by,Values=maka-cli\x22',ac(0x108),ac(0x9b)],f=ac(0xea)+d[ac(0xf4)]('\x20'),g=execSync(f,{'cwd':c})[ac(0xbb)]();if(!g)throw ac(0x11c);let h=JSON[ac(0xb7)](g);h['length']>0x0?(h=[][ac(0xc6)][ac(0xfd)]([],h),h[ac(0x8d)](function(i,j){const ad=ac;ad(0xd9)!==ad(0xe0)?b[ad(0x119)]({'id':j,'instanceId':i['instanceId'],'privateIp':i['privateIp'],'publicIp':i['publicIp'],'status':i[ad(0xe6)],'name':i[ad(0xe4)],'env':i[ad(0xfe)][0x0]}):c(d);}),b[ac(0x8d)](i=>{const ae=ac;let j=ae(0xf0)+i['id']+ae(0xc4)+i[ae(0xe4)]+'\x20ENV:\x20'+i[ae(0xfe)]+ae(0x125)+i[ae(0xe6)]+ae(0xcb)+i[ae(0x7d)]+'\x20PUB_IP:\x20'+i[ae(0xf1)]+ae(0xcf)+i['privateIp'];if(i['status']===ae(0x79))Log[ae(0xe1)](j);else{if(i[ae(0xe6)]==='running'){if(ae(0x109)===ae(0x109))Log[ae(0xbd)](j);else try{let l=(q===null||r===void 0x0?void 0x0:s['cwd'])?t['cwd']:u['cwd'](),m=['ec2',ae(0x120),'--instance-id',v[ae(0x7d)]],n=ae(0xea)+m[ae(0xf4)]('\x20'),o=w(n)[ae(0xbb)]();return o;}catch(p){y[ae(0xe1)](p);}}else Log[ae(0xaf)](j);}})):'dBxaU'!==ac(0x81)?Log[ac(0xe1)](ac(0xf3)):c['error'](d);}catch(j){Log['error'](j);}return b;}[a71U(0x110)](a){const af=a71U;try{let b=(a===null||a===void 0x0?void 0x0:a[af(0x88)])?a[af(0x88)]:process['cwd'](),c=[af(0xbe),af(0x120),'--instance-id',a[af(0x7d)]],d=af(0xea)+c['join']('\x20'),f=execSync(d)['toString']();return f;}catch(g){Log[af(0xe1)](g);}}[a71U(0x105)](a){const ag=a71U;try{if(ag(0x9d)===ag(0x8a)){const c=k[ag(0xf7)](l[ag(0xf4)]('config',m,'ssh.json'),'utf8'),d=n[ag(0xb7)](c);d[ag(0xe2)]=o[ag(0xf4)](ag(0x118),p+ag(0xa0)),q['writeFileSync'](r[ag(0xf4)]('config',s,'ssh.json'),t['stringify'](d,null,0x2));}else{let c=a['cwd']?a['cwd']:process[ag(0x88)](),d=[ag(0xbe),ag(0xc9),ag(0xc8),a['instanceId']],f=ag(0xea)+d['join']('\x20');Log['notice'](f);let g=execSync(f)[ag(0xbb)]();return Log['notice'](g),g;}}catch(h){Log[ag(0xe1)](h);}}[a71U(0xdc)](){return __awaiter(this,void 0x0,void 0x0,function*(){const ah=a71d;let a='';Log[ah(0xaf)](ah(0xca));let b=execSync(ah(0x77))['toString'](),c=JSON['parse'](b),d=[];Object[ah(0x8c)](c)[ah(0x8d)](function(f){const ai=ah;c[f][ai(0x8d)](function(g,h){const aj=ai;d[aj(0x119)]({'id':h,'vpcId':g[aj(0x7b)],'cidr':g[aj(0xd0)]});});}),d[ah(0x8d)](function(f){const ak=ah;'dObvl'!=='dObvl'?(d[ak(0xe1)](e),f[ak(0x11b)](0x1)):console['log'](ak(0xf0)+f['id']+ak(0x122)+f[ak(0x99)]+'\x20CIDR:\x20'+f[ak(0xae)]);});let e=(yield Actions[ah(0x8e)](ah(0x86)))||0x0;d[ah(0x8d)](function(f){const al=ah;f['id']==e&&(a=f[al(0x99)],Log['success'](al(0x10a)+a+'\x0a'));});if(a==='')return Log['error'](ah(0x123)),'';return a;});}['chooseInstance'](){return __awaiter(this,void 0x0,void 0x0,function*(){const am=a71d;let a=this[am(0x84)]({});if(a[am(0xeb)]===0x0)return Log[am(0xe1)]('No\x20instances\x20found'),null;let b=yield Actions[am(0x8e)]('[?]\x20Please\x20choose\x20an\x20instance\x20ID:\x20');!b&&Log[am(0xe1)](am(0xd2));let c=a['find'](({id:d})=>{const an=am;if('CtCiG'!==an(0xd7))d[an(0x119)]({'id':e,'name':f[an(0xe4)]});else return d==parseInt(b);})||null;return c;});}[a71U(0xde)]({env:a}){return __awaiter(this,void 0x0,void 0x0,function*(){const ao=a71d;if(ao(0xad)===ao(0xad)){const b=this[ao(0x106)]['getProjectConfig']();let c;const d=this[ao(0x106)]['findProjectDirectory'](),{appName:f}=b;let g=f+'-'+a;c=(yield Actions[ao(0x8e)](ao(0xf6)+g+']\x20'))||g;try{if(ao(0xbc)!=='DsyQx')try{let i=[ao(0x96),ao(0xcc),'--repository-name',i[ao(0xe4)],ao(0x104),j[ao(0xfb)]],j=ao(0xea)+i['join']('\x20'),k=k(j)['toString']();return k;}catch(l){m[ao(0xe1)](l);}else{const i=this[ao(0x9e)]({'fileName':c,'env':a});if(!i)throw ao(0x95);const j=yield Actions[ao(0x10f)](ao(0xcd));if(j)try{if(ao(0x87)==='sEoXa')d[ao(0xaf)](ao(0xf0)+e['id']+ao(0xc4)+f[ao(0xe4)]);else{const l=a71P[ao(0xf7)](a71Q[ao(0xf4)]('config',a,ao(0xfc)),ao(0x11f)),m=JSON[ao(0xb7)](l);m[ao(0xe2)]=a71Q[ao(0xf4)](ao(0x118),c+ao(0xa0)),a71P['writeFileSync'](a71Q[ao(0xf4)](ao(0x7f),a,'ssh.json'),JSON['stringify'](m,null,0x2));}}catch(n){Log[ao(0xe1)](n),Log[ao(0xe1)](ao(0x117));}}}catch(o){Log[ao(0xe1)](o),process[ao(0x11b)](0x1);}return c;}else return b[ao(0xe1)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.'),'';});}}function a71c(){const ap=['FVaBG','--instance-type','Port\x2080\x20opened!','tcp','parse','BscuW','value','subnet','toString','DsyQx','success','ec2','--key-name','1342275EUARPj','YnxNB','MWEJX','YolEk','\x20NAME:\x20','(((.+)+)+)+$','concat','JPYMW','--instance-id','reboot-instances','**\x20Available\x20\x20VPCs\x20**','\x20INSTANCE_ID:\x20','create-repository','Would\x20you\x20like\x20to\x20update\x20the\x20ssh.json\x20config\x20file?','--cidr','\x20PRIV_IP:\x20','CidrBlock','__awaiter','Invalid\x20choice','next','running','32680DrsBQW','329835bkHAsL','CtCiG','BxwuD','gYIhD','Port\x20443\x20opened!','done','chooseVPC','ignore','createKeyPair','GroupId','vjqPF','error','pem','--security-group-ids','name','139tohSNL','status','3210BywHKH','throw','jiQMQ','aws\x20','length','UCQmu','6ivMvIX','--protocol','AJAkd','ID:\x20','publicIp','ec2term','You\x20have\x20no\x20instances\x20created\x20by\x20maka-cli.\x20\x20Please\x20reivew\x20your\x20AWS\x20console\x20manually!!!','join','JMzKy','Key\x20Name:\x20[','readFileSync','6955542oCRGhN','inherit','count','region','ssh.json','apply','env','105Ueaoiu','\x22KeyPairs[*].{name:KeyName}\x22','createFile','--image-id','246264iFfKoa','--region','ec2rebootInstance','fsi','--group-id','--query','oDDTH','[+]\x20Setting\x20VPC\x20ID\x20to:\x20','authorize-security-group-ingress','Port\x2022\x20opened!','imageId','ecrCreateRepository','confirm','ec2terminateInstance','describe-key-pairs','ZwOWr','chmod\x20400\x20','wRWmI','AibLQ','--tag-specifications','You\x20will\x20need\x20to\x20update\x20the\x20ssh.json\x20file\x20yourself.','_keys','push','--count','exit','[-]\x20AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials','QkQLu','search','utf8','terminate-instances','type','\x20VPCID:\x20','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','hafDJ','\x20STATUS:\x20','isFile','aws\x20ec2\x20describe-vpcs','ec2create','terminated','--instance-ids','VpcId','--repository-name','instanceId','ecrGetLoginPassword','config','--port','aYHrp','JVhgw','--description','ec2describeInstances','PdaxF','Please\x20choose\x20a\x20VPC:\x20[0]\x20','gIKcC','cwd','key','YFDME','--force','keys','forEach','ask','You\x20have\x20no\x20key-pairs,\x20please\x20create\x20one.\x20(maka\x20aws\x20create-key-pair\x20--env).','tags','run-instances','sgIds','0.0.0.0/0','AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials','Could\x20not\x20create\x20key.','ecr','gbsSl','then','vpcId','description','\x22Reservations[*].Instances[*].{instanceId:InstanceId,publicIp:PublicIpAddress,privateIp:PrivateIpAddress,status:State.Name,name:Tags[?Key==\x27Name\x27].Value,env:Tags[?Key==\x27environment\x27].Value}[*]\x22','Pem\x20key\x20saved\x20to\x20','ITWQV','ec2key','--group-name','.pem.txt','WmQNO','--filters','\x20ENV:\x20','ecrDeleteRepository','Created:\x20','LTGuH','VPuak','790892FkEozU','constructor','--subnet-id','ssl','ec2createSG','VEoBt','cidr','notice','lNEpP','KeyMaterial','getConfigPath'];a71c=function(){return ap;};return a71c();}
1
+ const a73Z=a73d;function a73d(a,b){const c=a73c();return a73d=function(d,e){d=d-0x1d2;let f=c[d];return f;},a73d(a,b);}(function(a,b){const R=a73d,c=a();while(!![]){try{const d=parseInt(R(0x252))/0x1+-parseInt(R(0x246))/0x2*(parseInt(R(0x212))/0x3)+-parseInt(R(0x23f))/0x4*(-parseInt(R(0x203))/0x5)+-parseInt(R(0x247))/0x6*(parseInt(R(0x230))/0x7)+-parseInt(R(0x1d8))/0x8*(-parseInt(R(0x206))/0x9)+-parseInt(R(0x27d))/0xa*(parseInt(R(0x211))/0xb)+-parseInt(R(0x24e))/0xc*(parseInt(R(0x1e0))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a73c,0x7823d));const a73b=(function(){let a=!![];return function(b,c){const S=a73d;if(S(0x272)!==S(0x272))i['push']({'id':j,'instanceId':k['instanceId'],'privateIp':l['privateIp'],'publicIp':m[S(0x1f4)],'status':n['status'],'name':o[S(0x238)],'env':p['env'][0x0]});else{const e=a?function(){const T=S;if(T(0x201)===T(0x201)){if(c){if(T(0x261)===T(0x1fb))try{i(j[T(0x236)](k));}catch(g){m(g);}else{const g=c[T(0x20e)](b,arguments);return c=null,g;}}}else k[T(0x238)]===(l===null||m===void 0x0?void 0x0:n[T(0x223)])?u[T(0x23b)]('ID:\x20'+v['id']+T(0x1ed)+w[T(0x238)]):x['notice'](T(0x267)+y['id']+T(0x1ed)+z[T(0x238)]);}:function(){};return a=![],e;}};}()),a73a=a73b(this,function(){const U=a73d;return a73a[U(0x1e7)]()['search']('(((.+)+)+)+$')[U(0x1e7)]()[U(0x22e)](a73a)['search'](U(0x1f9));});function a73c(){const an=['createFile','Port\x20443\x20opened!','\x20INSTANCE_ID:\x20','--filters','ignore','DwbbZ','imageId','\x20PUB_IP:\x20','\x20ENV:\x20','instanceId','vpcId','WyqHL','type','suggestion','writeFileSync','XViEo','ec2','delete-repository','RqdCD','UqaVM','PgkKA','concat','tags','find','constructor','value','73353YCPnCs','FWDOa','A\x20PEM\x20file\x20exists\x20at\x20this\x20location:\x20','--port','ec2describeInstances','privateIp','next','keys','name','parse','utf8','success','createKeyPair','yLOor','reboot-instances','4LsDdOy','--instance-type','Port\x2022\x20opened!','\x22Name=tag:created-by,Values=maka-cli\x22','--instance-id','EPlts','ask','9418ZvBwgB','144BQLFCO','env','CidrBlock','grnwG','--instance-ids','[-]\x20AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials','0.0.0.0/0','179976DYppZn','oNNlR','exit','readFileSync','855827imALuk','--description','DFBqc','\x22Reservations[*].Instances[*].{instanceId:InstanceId,publicIp:PublicIpAddress,privateIp:PrivateIpAddress,status:State.Name,name:Tags[?Key==\x27Name\x27].Value,env:Tags[?Key==\x27environment\x27].Value}[*]\x22','HLVDq','length','JIwVG','\x20STATUS:\x20','GvyNx','Invalid\x20choice','describe-instances','IVrMy','kNuYM','stringify','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','xuNAe','ecrCreateRepository','aws\x20','tfibU','config','vOqZI','ID:\x20','forEach','tcp','KeyMaterial','ec2key','subnet','ycWMZ','join','\x22KeyPairs[*].{name:KeyName}\x22','[+]\x20Setting\x20VPC\x20ID\x20to:\x20','notice','HpYwg','--query','create-key-pair','ec2term','running','throw','confirm','describe-key-pairs','You\x20will\x20need\x20to\x20update\x20the\x20ssh.json\x20file\x20yourself.','--image-id','VRVAh','3060520RhBDTD','getProjectConfig','fsi','--tag-specifications','awsLogin','key','--key-name','--count','VXHxY','error','ec2describeKeys','968408qUOGMK','--cidr','wOPkW','terminate-instances','ecr','Pem\x20key\x20saved\x20to\x20','count','ec2terminateInstance','871FcQKWa','status','You\x20have\x20no\x20key-pairs,\x20please\x20create\x20one.\x20(maka\x20aws\x20create-key-pair\x20--env).','pem','zveqJ','Could\x20not\x20create\x20key.','--repository-name','toString','--security-group-ids','sgIds','push','**\x20Available\x20\x20VPCs\x20**','\x20CIDR:\x20','\x20NAME:\x20','cidr','\x20PRIV_IP:\x20','ecrDeleteRepository','description','Port\x2080\x20opened!','AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials','publicIp','getConfigPath','ssh.json','region','vbMZR','(((.+)+)+)+$','chooseInstance','ZeaFD','gDOcY','Created:\x20','Key\x20Name:\x20[','You\x20have\x20no\x20instances\x20created\x20by\x20maka-cli.\x20\x20Please\x20reivew\x20your\x20AWS\x20console\x20manually!!!','--region','RIHFG','nDWvS','3764690ZctnhI','--subnet-id','\x20VPCID:\x20','72oWRLLj','GroupId','cwd','_keys','authorize-security-group-ingress','run-instances','ssl','isFile','apply','.pem.txt','then','22jhhveW','138vsNVrA','--force','findProjectDirectory','create-security-group'];a73c=function(){return an;};return a73c();}a73a();var __awaiter=this&&this['__awaiter']||function(a,b,c,d){function e(f){const V=a73d;if(V(0x1e4)!==V(0x1e4)){let h=h[V(0x208)]?i[V(0x208)]:j[V(0x208)](),i=[V(0x226),'reboot-instances',V(0x243),k['instanceId']],j=V(0x263)+i[V(0x26e)]('\x20');l[V(0x271)](j);let k=m(j)[V(0x1e7)]();return n[V(0x271)](k),k;}else return f instanceof c?f:new c(function(h){h(f);});}return new(c||(c=Promise))(function(f,g){const Y=a73d;function h(k){try{j(d['next'](k));}catch(l){g(l);}}function i(k){const W=a73d;if(W(0x25e)==='kNuYM')try{if(W(0x244)==='LfJEx')throw'AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials';else j(d[W(0x277)](k));}catch(m){g(m);}else g['id']==h&&(m=n['vpcId'],o[W(0x23b)](W(0x270)+p+'\x0a'));}function j(k){const X=a73d;X(0x26d)===X(0x26d)?k['done']?f(k['value']):e(k[X(0x22f)])[X(0x210)](h,i):c(d);}j((d=d['apply'](a,b||[]))[Y(0x236)]());});};import a73P from'fs';import a73Q from'path';import{execSync}from'child_process';import{Actions}from'../actions/actions.class.js';import{Log}from'../log/log.class.js';import{Docker}from'../docker/docker.class.js';import{FSI}from'../fsi/fsi.class.js';export class AWS{constructor(){this['fsi']=new FSI();}[a73Z(0x262)](a){const a0=a73Z;try{if(a0(0x1fc)!=='gDOcY'){let c=a0(0x263)+f(0x1bb,g[a0(0x207)])['join']('\x20');h(c,{'cwd':i,'stdio':a0(0x21a)}),j[a0(0x271)](a0(0x217));}else{let c=[a0(0x1dc),'create-repository',a0(0x1e6),a['name'],a0(0x200),a[a0(0x1f7)]],d=a0(0x263)+c[a0(0x26e)]('\x20'),f=execSync(d)[a0(0x1e7)]();return f;}}catch(g){Log[a0(0x1d6)](g);}}['ecrGetLoginPassword']({awsAccountId:a,region:b}){const a1=a73Z;try{if(a1(0x25d)!==a1(0x25d))c[a1(0x1d6)](d);else{let d=[a1(0x1dc),'get-login-password','|',Docker[a1(0x281)]({'awsAccountId':a,'region':b})],f=a1(0x263)+d[a1(0x26e)]('\x20'),g=execSync(f)[a1(0x1e7)]();return g;}}catch(h){Log[a1(0x1d6)](h);}}[a73Z(0x1f0)]({repoName:a,region:b}){const a2=a73Z;try{if(a2(0x254)==='DFBqc'){let c=[a2(0x1dc),a2(0x227),a2(0x1e6),a,a2(0x200),b,a2(0x213)],d=a2(0x263)+c[a2(0x26e)]('\x20'),f=execSync(d)[a2(0x1e7)]();return f;}else{let h=(h===null||i===void 0x0?void 0x0:j[a2(0x208)])?k['cwd']:l[a2(0x208)](),i=[a2(0x226),'terminate-instances',a2(0x243),m[a2(0x21f)]],j=a2(0x263)+i[a2(0x26e)]('\x20'),k=n(j)[a2(0x1e7)]();return k;}}catch(h){Log[a2(0x1d6)](h);}}['ec2create'](a){const a3=a73Z;try{if(a3(0x229)!==a3(0x229))try{let c=(q===null||r===void 0x0?void 0x0:s[a3(0x208)])?t[a3(0x208)]:u[a3(0x208)](),d=['ec2',a3(0x1db),a3(0x243),v['instanceId']],f=a3(0x263)+d['join']('\x20'),g=w(f)['toString']();return g;}catch(h){y['error'](h);}else{let c=[a3(0x226),a3(0x20b),a3(0x27b),a['imageId'],a3(0x1d4),a[a3(0x1de)],a3(0x240),a[a3(0x222)],a3(0x1d3),a[a3(0x1d2)],a3(0x1e8),a[a3(0x1e9)],'--subnet-id',a[a3(0x26c)],'--tag-specifications',a[a3(0x22c)]],d=a3(0x263)+c[a3(0x26e)]('\x20'),f=execSync(d)[a3(0x1e7)]();return f;}}catch(g){if(a3(0x25a)!=='ADgpx')Log[a3(0x1d6)](g);else{let i=this[a3(0x27f)]['getConfigPath'](j);const j=k[a3(0x26e)](i,a3(0x209),l+'.pem.txt');try{if(this[a3(0x27f)][a3(0x20d)](j))throw a3(0x232)+j;let l=[a3(0x226),'create-key-pair',a3(0x1d3),s],m=a3(0x263)+l['join']('\x20'),n=t(m)[a3(0x1e7)](),o=u[a3(0x239)](n),p=o[a3(0x26a)];this[a3(0x27f)][a3(0x216)]({'filePath':j,'data':p,'opts':{'force':!![]}}),v('chmod\x20400\x20'+j,{'stdio':a3(0x21a)}),w['success'](a3(0x1dd)+j);}catch(q){y[a3(0x1d6)](q);}const k=this[a3(0x27f)][a3(0x20d)](j);return k;}}}[a73Z(0x275)](a){const a4=a73Z;try{let b=a[a4(0x208)]?a['cwd']:process[a4(0x208)](),c=['ec2',a4(0x1db),a4(0x24b),a[a4(0x21f)]],d=a4(0x263)+c[a4(0x26e)]('\x20');execSync(d,{'stdio':'inherit'});}catch(f){if('FWDOa'!==a4(0x231))throw a4(0x24c);else return Log[a4(0x1d6)](f),{};}}['ec2key']({fileName:a,env:b}){const a5=a73Z;let c=this[a5(0x27f)][a5(0x1f5)](b);const d=a73Q[a5(0x26e)](c,'_keys',a+a5(0x20f));try{if(this['fsi']['isFile'](d))throw a5(0x232)+d;let g=[a5(0x226),'create-key-pair','--key-name',a],h='aws\x20'+g[a5(0x26e)]('\x20'),i=execSync(h)['toString'](),j=JSON[a5(0x239)](i),k=j[a5(0x26a)];this['fsi'][a5(0x216)]({'filePath':d,'data':k,'opts':{'force':!![]}}),execSync('chmod\x20400\x20'+d,{'stdio':a5(0x21a)}),Log[a5(0x23b)](a5(0x1dd)+d);}catch(l){Log[a5(0x1d6)](l);}const f=this[a5(0x27f)][a5(0x20d)](d);return f;}['ec2createSG'](a){const a6=a73Z;try{let b=a[a6(0x208)]?a[a6(0x208)]:process['cwd'](),c=[a6(0x226),a6(0x215),a6(0x253),a[a6(0x1f1)],'--group-name',a[a6(0x238)],'--vpc-id',a[a6(0x220)]],d=a6(0x263)+c[a6(0x26e)]('\x20'),f=execSync(d,{'cwd':b})[a6(0x1e7)]();if(!f){if(a6(0x24f)!==a6(0x22a))throw a6(0x1f3);else c['notice'](d);}let g=JSON[a6(0x239)](f);function h(l,m){const a7=a6;let n=['ec2',a7(0x20a),'--group-id',m,'--protocol',a7(0x269),a7(0x233),l,a7(0x1d9),a7(0x24d)];return n;}if(a[a6(0x20c)]){if('JIwVG'!==a6(0x258))try{const m=y['readFileSync'](z[a6(0x26e)](a6(0x265),A,a6(0x1f6)),a6(0x23a)),n=B[a6(0x239)](m);n['pem']=C['join'](a6(0x209),D+a6(0x20f)),E[a6(0x224)](F['join'](a6(0x265),G,a6(0x1f6)),H[a6(0x25f)](n,null,0x2));}catch(o){K[a6(0x1d6)](o),L[a6(0x1d6)]('You\x20will\x20need\x20to\x20update\x20the\x20ssh.json\x20file\x20yourself.');}else{let m=a6(0x263)+h(0x1bb,g[a6(0x207)])[a6(0x26e)]('\x20');execSync(m,{'cwd':b,'stdio':'ignore'}),Log[a6(0x271)](a6(0x217));}}let i='aws\x20'+h(0x50,g['GroupId'])['join']('\x20');execSync(i,{'cwd':b,'stdio':a6(0x21a)}),Log['notice'](a6(0x1f2));let j=a6(0x263)+h(0x16,g['GroupId'])[a6(0x26e)]('\x20');return execSync(j,{'cwd':b,'stdio':'ignore'}),Log[a6(0x271)](a6(0x241)),Log[a6(0x23b)](a6(0x1fd)+g[a6(0x207)]+a6(0x1ed)+a[a6(0x238)]),!![];}catch(n){Log[a6(0x1d6)](n);}}[a73Z(0x1d7)](a){const a8=a73Z;try{if(a8(0x23d)==='VMqFP')try{let c=q[a8(0x208)]?r['cwd']:s[a8(0x208)](),d=[a8(0x226),a8(0x23e),a8(0x243),t[a8(0x21f)]],f='aws\x20'+d[a8(0x26e)]('\x20');u['notice'](f);let g=v(f)[a8(0x1e7)]();return w['notice'](g),g;}catch(h){y[a8(0x1d6)](h);}else{let c=(a===null||a===void 0x0?void 0x0:a[a8(0x208)])?a[a8(0x208)]:process['cwd'](),d=[a8(0x226),a8(0x279),a8(0x273),a8(0x26f)],f='aws\x20'+d[a8(0x26e)]('\x20'),g=execSync(f)['toString']();if(!g){if(a8(0x221)!==a8(0x1d5))throw'AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials';else e=f[a8(0x220)],g['success'](a8(0x270)+h+'\x0a');}let h=JSON[a8(0x239)](g),i=[];if(h)h['forEach']((k,l)=>{const a9=a8;if(a9(0x202)!==a9(0x266))i[a9(0x1ea)]({'id':l,'name':k[a9(0x238)]});else try{let n=['ec2',a9(0x20b),a9(0x27b),s['imageId'],'--count',t[a9(0x1de)],'--instance-type',u[a9(0x222)],a9(0x1d3),v[a9(0x1d2)],a9(0x1e8),w[a9(0x1e9)],a9(0x204),x['subnet'],a9(0x280),y['tags']],o='aws\x20'+n[a9(0x26e)]('\x20'),p=z(o)[a9(0x1e7)]();return p;}catch(q){B[a9(0x1d6)](q);}}),i[a8(0x268)](k=>{const aa=a8;k[aa(0x238)]===(a===null||a===void 0x0?void 0x0:a[aa(0x223)])?Log['success'](aa(0x267)+k['id']+aa(0x1ed)+k['name']):Log['notice']('ID:\x20'+k['id']+aa(0x1ed)+k[aa(0x238)]);});else{Log['error'](a8(0x1e2));return;}return i;}}catch(k){Log['error'](k);}}[a73Z(0x234)](a){const ab=a73Z;let b=[];try{let c=(a===null||a===void 0x0?void 0x0:a['cwd'])?a['cwd']:process[ab(0x208)](),d=[ab(0x226),ab(0x25c),ab(0x219),ab(0x242),'--query',ab(0x255)],f=ab(0x263)+d[ab(0x26e)]('\x20'),g=execSync(f,{'cwd':c})[ab(0x1e7)]();if(!g){if(ab(0x24a)===ab(0x24a))throw ab(0x24c);else d[ab(0x1ea)]({'id':e,'name':f[ab(0x238)]});}let h=JSON[ab(0x239)](g);h[ab(0x257)]>0x0?(h=[][ab(0x22b)][ab(0x20e)]([],h),h['forEach'](function(j,k){const ac=ab;b[ac(0x1ea)]({'id':k,'instanceId':j[ac(0x21f)],'privateIp':j[ac(0x235)],'publicIp':j[ac(0x1f4)],'status':j[ac(0x1e1)],'name':j[ac(0x238)],'env':j['env'][0x0]});}),b[ab(0x268)](j=>{const ad=ab;if('VRVAh'!==ad(0x27c)){const l=k['readFileSync'](l['join']('config',m,ad(0x1f6)),ad(0x23a)),m=n[ad(0x239)](l);m[ad(0x1e3)]=o[ad(0x26e)](ad(0x209),p+ad(0x20f)),q[ad(0x224)](r['join'](ad(0x265),s,ad(0x1f6)),t['stringify'](m,null,0x2));}else{let l=ad(0x267)+j['id']+ad(0x1ed)+j[ad(0x238)]+ad(0x21e)+j[ad(0x248)]+ad(0x259)+j[ad(0x1e1)]+ad(0x218)+j[ad(0x21f)]+ad(0x21d)+j[ad(0x1f4)]+ad(0x1ef)+j[ad(0x235)];if(j['status']==='terminated')Log[ad(0x1d6)](l);else j[ad(0x1e1)]===ad(0x276)?Log[ad(0x23b)](l):ad(0x256)===ad(0x264)?d(e[ad(0x277)](f)):Log[ad(0x271)](l);}})):Log[ab(0x1d6)](ab(0x1ff));}catch(j){Log[ab(0x1d6)](j);}return b;}[a73Z(0x1df)](a){const ae=a73Z;try{if(ae(0x225)!==ae(0x21b)){let b=(a===null||a===void 0x0?void 0x0:a['cwd'])?a[ae(0x208)]:process[ae(0x208)](),c=[ae(0x226),ae(0x1db),ae(0x243),a[ae(0x21f)]],d=ae(0x263)+c['join']('\x20'),f=execSync(d)[ae(0x1e7)]();return f;}else{if(this[ae(0x27f)][ae(0x20d)](k))throw ae(0x232)+u;let h=['ec2',ae(0x274),ae(0x1d3),m],i=ae(0x263)+h[ae(0x26e)]('\x20'),j=n(i)[ae(0x1e7)](),k=o['parse'](j),l=k['KeyMaterial'];this[ae(0x27f)][ae(0x216)]({'filePath':p,'data':l,'opts':{'force':!![]}}),q('chmod\x20400\x20'+r,{'stdio':ae(0x21a)}),s[ae(0x23b)](ae(0x1dd)+t);}}catch(h){Log[ae(0x1d6)](h);}}['ec2rebootInstance'](a){const af=a73Z;try{let b=a[af(0x208)]?a[af(0x208)]:process['cwd'](),c=['ec2',af(0x23e),af(0x243),a[af(0x21f)]],d=af(0x263)+c['join']('\x20');Log[af(0x271)](d);let f=execSync(d)[af(0x1e7)]();return Log[af(0x271)](f),f;}catch(g){Log['error'](g);}}['chooseVPC'](){return __awaiter(this,void 0x0,void 0x0,function*(){const ag=a73d;let a='';Log[ag(0x271)](ag(0x1eb));let b=execSync('aws\x20ec2\x20describe-vpcs')[ag(0x1e7)](),c=JSON[ag(0x239)](b),d=[];Object[ag(0x237)](c)[ag(0x268)](function(f){const ah=ag;if(ah(0x1da)!==ah(0x1da)){let h=['ec2','run-instances','--image-id',i[ah(0x21c)],ah(0x1d4),j[ah(0x1de)],ah(0x240),k['type'],ah(0x1d3),l['key'],'--security-group-ids',m[ah(0x1e9)],ah(0x204),n[ah(0x26c)],ah(0x280),o[ah(0x22c)]],i=ah(0x263)+h[ah(0x26e)]('\x20'),j=p(i)[ah(0x1e7)]();return j;}else c[f][ah(0x268)](function(h,i){const ai=ah;if('iZsDE'==='eFEnu'){if(e){const k=i[ai(0x20e)](j,arguments);return k=null,k;}}else d['push']({'id':i,'vpcId':h['VpcId'],'cidr':h[ai(0x249)]});});}),d[ag(0x268)](function(f){const aj=ag;console['log'](aj(0x267)+f['id']+aj(0x205)+f[aj(0x220)]+aj(0x1ec)+f[aj(0x1ee)]);});let e=(yield Actions[ag(0x245)]('Please\x20choose\x20a\x20VPC:\x20[0]\x20'))||0x0;d[ag(0x268)](function(f){const ak=ag;f['id']==e&&(a=f['vpcId'],Log[ak(0x23b)](ak(0x270)+a+'\x0a'));});if(a==='')return Log[ag(0x1d6)](ag(0x260)),'';return a;});}[a73Z(0x1fa)](){return __awaiter(this,void 0x0,void 0x0,function*(){const al=a73d;let a=this['ec2describeInstances']({});if(a[al(0x257)]===0x0)return Log[al(0x1d6)]('No\x20instances\x20found'),null;let b=yield Actions[al(0x245)]('[?]\x20Please\x20choose\x20an\x20instance\x20ID:\x20');if(!b){if('wHXFo'!=='bHrWe')Log[al(0x1d6)](al(0x25b));else return b[al(0x1d6)](al(0x260)),'';}let c=a[al(0x22d)](({id:e})=>{return e==parseInt(b);})||null;return c;});}[a73Z(0x23c)]({env:a}){return __awaiter(this,void 0x0,void 0x0,function*(){const am=a73d,b=this['fsi'][am(0x27e)]();let c;const d=this[am(0x27f)][am(0x214)](),{appName:f}=b;let g=f+'-'+a;c=(yield Actions[am(0x245)](am(0x1fe)+g+']\x20'))||g;try{if(am(0x228)==='gnujK')try{let i=[am(0x1dc),am(0x227),'--repository-name',i,am(0x200),j,'--force'],j=am(0x263)+i[am(0x26e)]('\x20'),k=k(j)[am(0x1e7)]();return k;}catch(l){m[am(0x1d6)](l);}else{const i=this[am(0x26b)]({'fileName':c,'env':a});if(!i)throw am(0x1e5);const j=yield Actions[am(0x278)]('Would\x20you\x20like\x20to\x20update\x20the\x20ssh.json\x20config\x20file?');if(j){if(am(0x1f8)===am(0x1f8))try{const k=a73P[am(0x251)](a73Q[am(0x26e)](am(0x265),a,'ssh.json'),'utf8'),l=JSON[am(0x239)](k);l[am(0x1e3)]=a73Q[am(0x26e)](am(0x209),c+am(0x20f)),a73P[am(0x224)](a73Q[am(0x26e)](am(0x265),a,am(0x1f6)),JSON[am(0x25f)](l,null,0x2));}catch(m){Log['error'](m),Log['error'](am(0x27a));}else d['error'](e),f['exit'](0x1);}}}catch(o){Log[am(0x1d6)](o),process[am(0x250)](0x1);}return c;});}}
@@ -1 +1 @@
1
- (function(a,b){var u=a72d,c=a();while(!![]){try{var d=-parseInt(u(0xc7))/0x1*(-parseInt(u(0xc8))/0x2)+-parseInt(u(0xc5))/0x3+parseInt(u(0xcc))/0x4+parseInt(u(0xca))/0x5*(parseInt(u(0xc9))/0x6)+-parseInt(u(0xc3))/0x7+-parseInt(u(0xcb))/0x8+parseInt(u(0xc6))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a72c,0x3ef56));function a72c(){var w=['1416288qPOrKS','search','1587460GAavxU','toString','1495899VJfnYj','6070959QiiuHk','35Heozzg','15380vOOmkp','48XXqFhT','18995egrnDM','2758992iJBqiw'];a72c=function(){return w;};return a72c();}var a72b=(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;};}()),a72a=a72b(this,function(){var v=a72d;return a72a[v(0xc4)]()[v(0xcd)]('(((.+)+)+)+$')['toString']()['constructor'](a72a)[v(0xcd)]('(((.+)+)+)+$');});function a72d(a,b){var c=a72c();return a72d=function(d,e){d=d-0xc3;var f=c[d];return f;},a72d(a,b);}a72a();export{};
1
+ (function(a,b){var u=a74d,c=a();while(!![]){try{var d=-parseInt(u(0x10f))/0x1*(parseInt(u(0x112))/0x2)+-parseInt(u(0x10a))/0x3*(parseInt(u(0x109))/0x4)+parseInt(u(0x111))/0x5+parseInt(u(0x114))/0x6*(-parseInt(u(0x10c))/0x7)+-parseInt(u(0x10e))/0x8+-parseInt(u(0x113))/0x9*(parseInt(u(0x10b))/0xa)+-parseInt(u(0x110))/0xb*(-parseInt(u(0x107))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a74c,0xc3ff7));var a74b=(function(){var a=!![];return function(b,c){var d=a?function(){var v=a74d;if(c){var e=c[v(0x10d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a74a=a74b(this,function(){var w=a74d;return a74a[w(0x108)]()[w(0x115)]('(((.+)+)+)+$')[w(0x108)]()['constructor'](a74a)[w(0x115)](w(0x116));});a74a();function a74d(a,b){var c=a74c();return a74d=function(d,e){d=d-0x107;var f=c[d];return f;},a74d(a,b);}function a74c(){var x=['287678iuzhCH','3818583vWkMLk','1504860jYTgOz','search','(((.+)+)+)+$','13667856yChvqu','toString','12564dxNJCP','864MCPKWT','30dRydph','7abSwKy','apply','11447496rvCYuF','9wehZFA','44NnnVbF','7003110xzuPuX'];a74c=function(){return x;};return a74c();}export{};
@@ -1 +1 @@
1
- const a74A=a74d;(function(a,b){const x=a74d,c=a();while(!![]){try{const d=parseInt(x(0xfb))/0x1+parseInt(x(0xf1))/0x2+-parseInt(x(0xf6))/0x3+-parseInt(x(0xfc))/0x4*(parseInt(x(0x103))/0x5)+parseInt(x(0xfe))/0x6+parseInt(x(0x109))/0x7*(-parseInt(x(0x104))/0x8)+-parseInt(x(0xff))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a74c,0x56d67));function a74c(){const E=['gzXpe','dxLah','inherit','5sBlcml','40UOmqwh','(((.+)+)+)+$','push','error','TjTEm','257271JMwSnW','awsLogin','constructor','--password-stdin','PEozw','pushImage','.dkr.ecr.','AWS','1277556xlxXUn','search','ACSxJ','toString','--username','496275LhnfQC','join','login','tag','.amazonaws.com/','70968GbBptJ','769044TIQAFW','docker\x20','1552296cAwXfF','641916UXBLFX'];a74c=function(){return E;};return a74c();}function a74d(a,b){const c=a74c();return a74d=function(d,e){d=d-0xf1;let f=c[d];return f;},a74d(a,b);}const a74b=(function(){let a=!![];return function(b,c){const d=a?function(){const y=a74d;if(y(0x108)!==y(0x101)){if(c){if(y(0xf3)!==y(0xf3))try{let f=['push',k+y(0x10f)+l+'.amazonaws.com/'+m],g=y(0xfd)+f['join']('\x20'),h=n(g,{'stdio':y(0x102)})[y(0xf4)]();return h;}catch(i){return p[y(0x107)](i),'';}else{const f=c['apply'](b,arguments);return c=null,f;}}}else{let h=[y(0xf9),f,g+y(0x10f)+h+'.amazonaws.com/'+i],i='docker\x20'+h['join']('\x20'),j=j(i,{'stdio':y(0x102)})[y(0xf4)]();return j;}}:function(){};return a=![],d;};}()),a74a=a74b(this,function(){const z=a74d;return a74a[z(0xf4)]()[z(0xf2)](z(0x105))['toString']()[z(0x10b)](a74a)[z(0xf2)](z(0x105));});a74a();import{execSync}from'child_process';import{Log}from'../log/log.class.js';export class Docker{constructor(){}static[a74A(0xf9)]({imageName:a,awsAccountId:b,region:c,repoName:d}){const B=a74A;try{let f=[B(0xf9),a,b+B(0x10f)+c+B(0xfa)+d],g=B(0xfd)+f['join']('\x20'),h=execSync(g,{'stdio':'inherit'})['toString']();return h;}catch(i){return Log[B(0x107)](i),'';}}static[a74A(0x10a)]({awsAccountId:a,region:b}){const C=a74A;try{let c=['login',C(0xf5),'AWS',C(0x10c),a+C(0x10f)+b+'.amazonaws.com'],d=C(0xfd)+c[C(0xf7)]('\x20'),f=execSync(d,{'stdio':'inherit'})[C(0xf4)]();return f;}catch(g){return Log[C(0x107)](g),'';}}static[a74A(0x10e)]({awsAccountId:a,region:b,repoName:c}){const D=a74A;try{let d=[D(0x106),a+D(0x10f)+b+D(0xfa)+c],f=D(0xfd)+d[D(0xf7)]('\x20'),g=execSync(f,{'stdio':D(0x102)})[D(0xf4)]();return g;}catch(h){if(D(0x100)!==D(0x10d))return Log['error'](h),'';else try{let j=[D(0xf8),D(0xf5),D(0x110),'--password-stdin',i+D(0x10f)+j+'.amazonaws.com'],k=D(0xfd)+j['join']('\x20'),l=k(k,{'stdio':'inherit'})[D(0xf4)]();return l;}catch(m){return m[D(0x107)](m),'';}}}}
1
+ const a76B=a76d;(function(a,b){const x=a76d,c=a();while(!![]){try{const d=parseInt(x(0x10f))/0x1+-parseInt(x(0x113))/0x2+parseInt(x(0x11c))/0x3*(-parseInt(x(0x116))/0x4)+-parseInt(x(0x10d))/0x5*(-parseInt(x(0x11a))/0x6)+parseInt(x(0x106))/0x7*(parseInt(x(0x126))/0x8)+parseInt(x(0x118))/0x9+-parseInt(x(0x111))/0xa*(parseInt(x(0x115))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a76c,0xb6ad3));function a76d(a,b){const c=a76c();return a76d=function(d,e){d=d-0x105;let f=c[d];return f;},a76d(a,b);}const a76b=(function(){let a=!![];return function(b,c){const d=a?function(){const y=a76d;if(y(0x107)!==y(0x107))return c[y(0x122)](d),'';else{if(c){if(y(0x117)!==y(0x127)){const f=c[y(0x11e)](b,arguments);return c=null,f;}else return c[y(0x108)]()[y(0x10b)](y(0x109))[y(0x108)]()[y(0x125)](d)[y(0x10b)]('(((.+)+)+)+$');}}}:function(){};return a=![],d;};}()),a76a=a76b(this,function(){const z=a76d;return a76a[z(0x108)]()[z(0x10b)](z(0x109))[z(0x108)]()[z(0x125)](a76a)[z(0x10b)](z(0x109));});function a76c(){const E=['constructor','2266328hBautn','ptiSp','pushImage','--password-stdin','7nISutw','jwimg','toString','(((.+)+)+)+$','--username','search','JNfvi','535HKQwcY','Sirys','1350109txcDMo','login','117500UPJOsX','.amazonaws.com','1894910pWZZVn','inherit','638mbZGZM','2965380pwjTmD','YVNHo','7599321ndnlFF','join','77502qpSRDs','AWS','6gcAkYZ','.amazonaws.com/','apply','push','LNYlX','.dkr.ecr.','error','docker\x20','awsLogin'];a76c=function(){return E;};return a76c();}a76a();import{execSync}from'child_process';import{Log}from'../log/log.class.js';export class Docker{constructor(){}static['tag']({imageName:a,awsAccountId:b,region:c,repoName:d}){const A=a76d;try{if('Sirys'===A(0x10e)){let f=['tag',a,b+'.dkr.ecr.'+c+A(0x11d)+d],g=A(0x123)+f[A(0x119)]('\x20'),h=execSync(g,{'stdio':A(0x114)})[A(0x108)]();return h;}else try{let j=[A(0x11f),k+A(0x121)+l+A(0x11d)+m],k=A(0x123)+j[A(0x119)]('\x20'),l=n(k,{'stdio':A(0x114)})[A(0x108)]();return l;}catch(m){return p[A(0x122)](m),'';}}catch(j){return Log[A(0x122)](j),'';}}static[a76B(0x124)]({awsAccountId:a,region:b}){const C=a76B;try{if(C(0x120)===C(0x10c)){let d=[C(0x110),C(0x10a),C(0x11b),C(0x105),d+C(0x121)+e+C(0x112)],f=C(0x123)+d[C(0x119)]('\x20'),j=f(f,{'stdio':C(0x114)})[C(0x108)]();return j;}else{let d=[C(0x110),C(0x10a),C(0x11b),C(0x105),a+C(0x121)+b+'.amazonaws.com'],f=C(0x123)+d[C(0x119)]('\x20'),g=execSync(f,{'stdio':C(0x114)})[C(0x108)]();return g;}}catch(h){return Log[C(0x122)](h),'';}}static[a76B(0x128)]({awsAccountId:a,region:b,repoName:c}){const D=a76B;try{let d=[D(0x11f),a+D(0x121)+b+D(0x11d)+c],f=D(0x123)+d['join']('\x20'),g=execSync(f,{'stdio':'inherit'})[D(0x108)]();return g;}catch(h){return Log['error'](h),'';}}}
@@ -1 +1 @@
1
- function a75c(){var x=['63NvNwCU','30KCGMmI','413495MhhbtU','9702624grBpar','(((.+)+)+)+$','apply','296742RYxBol','toString','307917upUEds','search','2518290WCyQzE','6473320CFNoVF','22EOOySd','13073770RCuXTO','5kNvqSf'];a75c=function(){return x;};return a75c();}(function(a,b){var u=a75d,c=a();while(!![]){try{var d=-parseInt(u(0x93))/0x1+-parseInt(u(0x92))/0x2*(parseInt(u(0x99))/0x3)+parseInt(u(0x9c))/0x4*(parseInt(u(0x90))/0x5)+parseInt(u(0x97))/0x6*(-parseInt(u(0x91))/0x7)+-parseInt(u(0x94))/0x8+parseInt(u(0x9b))/0x9+parseInt(u(0x8f))/0xa*(parseInt(u(0x8e))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a75c,0xdc2f1));var a75b=(function(){var a=!![];return function(b,c){var d=a?function(){var v=a75d;if(c){var e=c[v(0x96)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a75a=a75b(this,function(){var w=a75d;return a75a[w(0x98)]()[w(0x9a)]('(((.+)+)+)+$')[w(0x98)]()['constructor'](a75a)['search'](w(0x95));});a75a();;;function a75d(a,b){var c=a75c();return a75d=function(d,e){d=d-0x8e;var f=c[d];return f;},a75d(a,b);};export{};
1
+ (function(a,b){var u=a77d,c=a();while(!![]){try{var d=-parseInt(u(0x156))/0x1*(-parseInt(u(0x15b))/0x2)+parseInt(u(0x15e))/0x3+-parseInt(u(0x157))/0x4*(parseInt(u(0x161))/0x5)+parseInt(u(0x162))/0x6*(-parseInt(u(0x159))/0x7)+parseInt(u(0x15f))/0x8*(parseInt(u(0x163))/0x9)+parseInt(u(0x160))/0xa+-parseInt(u(0x15a))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a77c,0x64eab));function a77d(a,b){var c=a77c();return a77d=function(d,e){d=d-0x155;var f=c[d];return f;},a77d(a,b);}var a77b=(function(){var a=!![];return function(b,c){var d=a?function(){var v=a77d;if(c){var e=c[v(0x155)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a77a=a77b(this,function(){var w=a77d;return a77a['toString']()['search']('(((.+)+)+)+$')['toString']()[w(0x15d)](a77a)[w(0x158)](w(0x15c));});a77a();;;;export{};function a77c(){var x=['106098AGaWwU','10700jxYuDS','search','14UVvLrM','1021449xfrEqU','4RlVEQT','(((.+)+)+)+$','constructor','1068177MxjBkm','8OSxXpu','8037560lTXNzJ','1350vlUhYW','2061372GfMyqJ','4892193RTnlPL','apply'];a77c=function(){return x;};return a77c();}