@maka/maka-cli 4.0.86 → 4.0.89

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 (96) 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/maka.js +1 -1
  69. package/dist/templates/meteor/app/imports/startup/client/routes.js.jsx +2 -2
  70. package/dist/templates/meteor/app/imports/startup/client/routes.js.tsx +2 -2
  71. package/dist/templates/meteor/app/imports/startup/lib/routes.js.jsx +2 -2
  72. package/dist/templates/meteor/app/imports/startup/lib/routes.js.tsx +2 -2
  73. package/dist/templates/meteor/app/server/helmet-csp.js +18 -13
  74. package/dist/templates/meteor/app/server/helmet-csp.js.jsx +18 -13
  75. package/dist/templates/meteor/app/server/helmet-csp.js.ts +18 -13
  76. package/dist/templates/meteor/app/server/helmet-csp.js.tsx +18 -13
  77. package/dist/templates/meteor/config/settings.json +1 -1
  78. package/dist/tool.js +1 -1
  79. package/dist/tools/actions/actions.class.js +1 -1
  80. package/dist/tools/actions/actions.test.js +1 -1
  81. package/dist/tools/aws/aws.class.js +1 -1
  82. package/dist/tools/aws/aws.interfaces.js +1 -1
  83. package/dist/tools/docker/docker.class.js +1 -1
  84. package/dist/tools/docker/docker.interfaces.js +1 -1
  85. package/dist/tools/fsi/fsi.class.js +1 -1
  86. package/dist/tools/fsi/fsi.interfaces.js +1 -1
  87. package/dist/tools/https/https.class.js +1 -1
  88. package/dist/tools/https/https.interface.js +1 -1
  89. package/dist/tools/log/log.class.js +1 -1
  90. package/dist/tools/log/log.interfaces.js +1 -1
  91. package/dist/tools/spawn-async/spawn-async.class.js +1 -1
  92. package/dist/tools/spawn-async/spawn-async.interfaces.js +1 -1
  93. package/dist/tools/ssh/ssh.class.js +1 -1
  94. package/dist/tools/ssh/ssh.interfaces.js +1 -1
  95. package/dist/tools/ssl/ssl.class.js +1 -1
  96. package/package.json +1 -1
package/dist/maka.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node --experimental-modules --no-warnings --experimental-json-modules
2
- const a67B=a67d;(function(a,b){const z=a67d,c=a();while(!![]){try{const d=-parseInt(z(0xd7))/0x1+-parseInt(z(0xc7))/0x2*(parseInt(z(0xd8))/0x3)+-parseInt(z(0xc8))/0x4*(parseInt(z(0xcc))/0x5)+parseInt(z(0xc2))/0x6*(-parseInt(z(0xbf))/0x7)+parseInt(z(0xd4))/0x8*(parseInt(z(0xd6))/0x9)+parseInt(z(0xce))/0xa+-parseInt(z(0xcb))/0xb*(-parseInt(z(0xd1))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a67c,0xe8b94));const a67b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a67a=a67b(this,function(){const A=a67d;return a67a[A(0xcd)]()[A(0xc1)](A(0xd0))[A(0xcd)]()['constructor'](a67a)[A(0xc1)](A(0xd0));});function a67d(a,b){const c=a67c();return a67d=function(d,e){d=d-0xbd;let f=c[d];return f;},a67d(a,b);}a67a();import a67u from'minimist';function a67c(){const C=['url','2pjBoeC','3088SeFgcg','env','argv','10276145elHtka','8705HuiJJi','toString','15127410xRubpF','--max-old-space-size=','(((.+)+)+)+$','24YBxoMC','MAKA_COMMAND_PATH','slice','8ZXajcj','totalmem','2921733dIjyRU','816580LjqyKZ','933174epGQAS','dirname','parse','982947byroyh','camelizeKeys','search','12tJedLW','floor','TOOL_NODE_FLAGS','run'];a67c=function(){return C;};return a67c();}import a67v from'os';import a67w from'path';import a67x from'humps';import a67y from'./commands/maka.cmd.js';import'./commands/_index.js';import'./generators/_index.js';import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta[a67B(0xc6)]),__dirname=a67w[a67B(0xbd)](__filename);global[a67B(0xd2)]=__dirname;let total_memory=a67v[a67B(0xd5)](),total_mem_in_kb=total_memory/0x400,total_mem_in_mb=total_mem_in_kb/0x400;total_mem_in_mb=Math[a67B(0xc3)](total_mem_in_mb),process[a67B(0xc9)][a67B(0xc4)]=a67B(0xcf)+total_mem_in_mb;const argv=a67u(process[a67B(0xca)][a67B(0xd3)](0x2)),args=argv['_'],deepCopyArgv=JSON[a67B(0xbe)](JSON['stringify'](argv));delete deepCopyArgv['_'];const opts=a67x[a67B(0xc0)](deepCopyArgv);a67y[a67B(0xc5)](args,opts);
2
+ function a67c(){const D=['247584TOOyNV','dirname','apply','2001934zSzgOA','150650jYhVSF','40957SpVPCY','30jZKIml','TOOL_NODE_FLAGS','18MfLytO','MAKA_COMMAND_PATH','--max-old-space-size=','(((.+)+)+)+$','totalmem','slice','toString','floor','11383456HXHVMR','6763705CSWxcf','argv','24452028GvMxUb','search','stringify','parse','camelizeKeys'];a67c=function(){return D;};return a67c();}const a67C=a67d;(function(a,b){const z=a67d,c=a();while(!![]){try{const d=parseInt(z(0x90))/0x1+parseInt(z(0x8f))/0x2+-parseInt(z(0x7c))/0x3*(parseInt(z(0x8c))/0x4)+parseInt(z(0x85))/0x5+parseInt(z(0x92))/0x6*(-parseInt(z(0x91))/0x7)+parseInt(z(0x84))/0x8+-parseInt(z(0x87))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a67c,0xc5b27));const a67b=(function(){let a=!![];return function(b,c){const d=a?function(){const A=a67d;if(c){const e=c[A(0x8e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a67a=a67b(this,function(){const B=a67d;return a67a['toString']()['search'](B(0x7f))[B(0x82)]()['constructor'](a67a)[B(0x88)](B(0x7f));});a67a();import a67u from'minimist';import a67v from'os';import a67w from'path';import a67x from'humps';import a67y from'./commands/maka.cmd.js';import'./commands/_index.js';import'./generators/_index.js';import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta['url']),__dirname=a67w[a67C(0x8d)](__filename);global[a67C(0x7d)]=__dirname;function a67d(a,b){const c=a67c();return a67d=function(d,e){d=d-0x7c;let f=c[d];return f;},a67d(a,b);}let total_memory=a67v[a67C(0x80)](),total_mem_in_kb=total_memory/0x400,total_mem_in_mb=total_mem_in_kb/0x400;total_mem_in_mb=Math[a67C(0x83)](total_mem_in_mb),process['env'][a67C(0x93)]=a67C(0x7e)+total_mem_in_mb;const argv=a67u(process[a67C(0x86)][a67C(0x81)](0x2)),args=argv['_'],deepCopyArgv=JSON[a67C(0x8a)](JSON[a67C(0x89)](argv));delete deepCopyArgv['_'];const opts=a67x[a67C(0x8b)](deepCopyArgv);a67y['run'](args,opts);
@@ -22,8 +22,7 @@ const CatchAll = (
22
22
  );
23
23
 
24
24
  const privateRoutes = (<>
25
- {Root}
26
- {CatchAll}
25
+
27
26
  </>);
28
27
 
29
28
  const publicRoutes = (<>
@@ -34,6 +33,7 @@ const publicRoutes = (<>
34
33
  const PrivateRoutes = ({ history }) => (
35
34
  <Router history={ history }>
36
35
  {privateRoutes}
36
+ {publicRoutes}
37
37
  </Router>
38
38
  );
39
39
  const PublicRoutes = ({ history }) => (
@@ -22,8 +22,7 @@ const CatchAll = (
22
22
  );
23
23
 
24
24
  const privateRoutes = (<>
25
- {Root}
26
- {CatchAll}
25
+
27
26
  </>);
28
27
 
29
28
  const publicRoutes = (<>
@@ -34,6 +33,7 @@ const publicRoutes = (<>
34
33
  const PrivateRoutes = ({ history }) => (
35
34
  <Router history={ history }>
36
35
  {privateRoutes}
36
+ {publicRoutes}
37
37
  </Router>
38
38
  );
39
39
  const PublicRoutes = ({ history }) => (
@@ -22,8 +22,7 @@ const CatchAll = (
22
22
  );
23
23
 
24
24
  const privateRoutes = (<>
25
- {Root}
26
- {CatchAll}
25
+
27
26
  </>);
28
27
 
29
28
  const publicRoutes = (<>
@@ -34,6 +33,7 @@ const publicRoutes = (<>
34
33
  const PrivateRoutes = ({ history }) => (
35
34
  <Router history={ history }>
36
35
  {privateRoutes}
36
+ {publicRoutes}
37
37
  </Router>
38
38
  );
39
39
  const PublicRoutes = ({ history }) => (
@@ -22,8 +22,7 @@ const CatchAll = (
22
22
  );
23
23
 
24
24
  const privateRoutes = (<>
25
- {Root}
26
- {CatchAll}
25
+
27
26
  </>);
28
27
 
29
28
  const publicRoutes = (<>
@@ -34,6 +33,7 @@ const publicRoutes = (<>
34
33
  const PrivateRoutes = ({ history }) => (
35
34
  <Router history={ history }>
36
35
  {privateRoutes}
36
+ {publicRoutes}
37
37
  </Router>
38
38
  );
39
39
  const PublicRoutes = ({ history }) => (
@@ -55,10 +55,15 @@ const runtimeConfigScript = `__meteor_runtime_config__ = JSON.parse(decodeURICom
55
55
  const runtimeConfigHash = crypto.createHash('sha256').update(runtimeConfigScript).digest('base64')
56
56
 
57
57
  const helmetOptions = {
58
+ crossOriginOpenerPolicy: { policy: "same-origin-allow-popups" },
59
+ crossOriginResourcePolicy: true,
60
+ crossOriginResourcePolicy: true,
61
+ //If you want to embed something like an iframe, set to false
62
+ crossOriginEmbedderPolicy: true,
58
63
  contentSecurityPolicy: {
59
64
  blockAllMixedContent: true,
60
65
  directives: {
61
- defaultSrc: [self],
66
+ defaultSrc: [self].concat(allowedOrigins),
62
67
  scriptSrc: [
63
68
  self,
64
69
  // Remove / comment out unsafeEval if you do not use dynamic imports
@@ -66,24 +71,24 @@ const helmetOptions = {
66
71
  // must be kept in order to make them work.
67
72
  unsafeEval,
68
73
  `'sha256-${runtimeConfigHash}'`
69
- ],
70
- childSrc: [self],
74
+ ].concat(allowedOrigins),
75
+ childSrc: [self].concat(allowedOrigins),
71
76
  // If you have external apps, that should be allowed as sources for
72
77
  // connections or images, your should add them here
73
78
  // Call helmetOptions() without args if you have no external sources
74
79
  // Note, that this is just an example and you may configure this to your needs
75
80
  connectSrc: connectSrc.concat(allowedOrigins),
76
- fontSrc: [self, data],
77
- formAction: [self],
78
- frameAncestors: [self],
79
- frameSrc: ['*'],
81
+ fontSrc: [self, data].concat(allowedOrigins),
82
+ formAction: [self].concat(allowedOrigins),
83
+ frameAncestors: [self].concat(allowedOrigins),
84
+ frameSrc: [self].concat(allowedOrigins),
80
85
  // This is an example to show, that we can define to show images only
81
86
  // from our self, browser data/blob and a defined set of hosts.
82
87
  // Configure to your needs.
83
88
  imgSrc: [self, data, 'blob:'].concat(allowedOrigins),
84
- manifestSrc: [self],
85
- mediaSrc: [self],
86
- objectSrc: [self],
89
+ manifestSrc: [self].concat(allowedOrigins),
90
+ mediaSrc: [self].concat(allowedOrigins),
91
+ objectSrc: [self].concat(allowedOrigins),
87
92
  // these are just examples, configure to your needs, see
88
93
  // https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/sandbox
89
94
  sandbox: [
@@ -101,8 +106,8 @@ const helmetOptions = {
101
106
  // 'allow-top-navigation',
102
107
  // 'allow-top-navigation-by-user-activation'
103
108
  ],
104
- styleSrc: [self, unsafeInline],
105
- workerSrc: [self, 'blob:']
109
+ styleSrc: [self, unsafeInline].concat(allowedOrigins),
110
+ workerSrc: [self, 'blob:'].concat(allowedOrigins)
106
111
  }
107
112
  },
108
113
  // see the helmet documentation to get a better understanding of
@@ -128,7 +133,7 @@ const helmetOptions = {
128
133
  permittedCrossDomainPolicies: {
129
134
  permittedPolicies: 'none'
130
135
  }
131
- }
136
+ };
132
137
 
133
138
  // We assume, that we are working on a localhost when there is no https
134
139
  // connection available.
@@ -55,10 +55,15 @@ const runtimeConfigScript = `__meteor_runtime_config__ = JSON.parse(decodeURICom
55
55
  const runtimeConfigHash = crypto.createHash('sha256').update(runtimeConfigScript).digest('base64')
56
56
 
57
57
  const helmetOptions = {
58
+ crossOriginOpenerPolicy: { policy: "same-origin-allow-popups" },
59
+ crossOriginResourcePolicy: true,
60
+ crossOriginResourcePolicy: true,
61
+ //If you want to embed something like an iframe, set to false
62
+ crossOriginEmbedderPolicy: true,
58
63
  contentSecurityPolicy: {
59
64
  blockAllMixedContent: true,
60
65
  directives: {
61
- defaultSrc: [self],
66
+ defaultSrc: [self].concat(allowedOrigins),
62
67
  scriptSrc: [
63
68
  self,
64
69
  // Remove / comment out unsafeEval if you do not use dynamic imports
@@ -66,24 +71,24 @@ const helmetOptions = {
66
71
  // must be kept in order to make them work.
67
72
  unsafeEval,
68
73
  `'sha256-${runtimeConfigHash}'`
69
- ],
70
- childSrc: [self],
74
+ ].concat(allowedOrigins),
75
+ childSrc: [self].concat(allowedOrigins),
71
76
  // If you have external apps, that should be allowed as sources for
72
77
  // connections or images, your should add them here
73
78
  // Call helmetOptions() without args if you have no external sources
74
79
  // Note, that this is just an example and you may configure this to your needs
75
80
  connectSrc: connectSrc.concat(allowedOrigins),
76
- fontSrc: [self, data],
77
- formAction: [self],
78
- frameAncestors: [self],
79
- frameSrc: ['*'],
81
+ fontSrc: [self, data].concat(allowedOrigins),
82
+ formAction: [self].concat(allowedOrigins),
83
+ frameAncestors: [self].concat(allowedOrigins),
84
+ frameSrc: [self].concat(allowedOrigins),
80
85
  // This is an example to show, that we can define to show images only
81
86
  // from our self, browser data/blob and a defined set of hosts.
82
87
  // Configure to your needs.
83
88
  imgSrc: [self, data, 'blob:'].concat(allowedOrigins),
84
- manifestSrc: [self],
85
- mediaSrc: [self],
86
- objectSrc: [self],
89
+ manifestSrc: [self].concat(allowedOrigins),
90
+ mediaSrc: [self].concat(allowedOrigins),
91
+ objectSrc: [self].concat(allowedOrigins),
87
92
  // these are just examples, configure to your needs, see
88
93
  // https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/sandbox
89
94
  sandbox: [
@@ -101,8 +106,8 @@ const helmetOptions = {
101
106
  // 'allow-top-navigation',
102
107
  // 'allow-top-navigation-by-user-activation'
103
108
  ],
104
- styleSrc: [self, unsafeInline],
105
- workerSrc: [self, 'blob:']
109
+ styleSrc: [self, unsafeInline].concat(allowedOrigins),
110
+ workerSrc: [self, 'blob:'].concat(allowedOrigins)
106
111
  }
107
112
  },
108
113
  // see the helmet documentation to get a better understanding of
@@ -128,7 +133,7 @@ const helmetOptions = {
128
133
  permittedCrossDomainPolicies: {
129
134
  permittedPolicies: 'none'
130
135
  }
131
- }
136
+ };
132
137
 
133
138
  // We assume, that we are working on a localhost when there is no https
134
139
  // connection available.
@@ -55,10 +55,15 @@ const runtimeConfigScript = `__meteor_runtime_config__ = JSON.parse(decodeURICom
55
55
  const runtimeConfigHash = crypto.createHash('sha256').update(runtimeConfigScript).digest('base64')
56
56
 
57
57
  const helmetOptions = {
58
+ crossOriginOpenerPolicy: { policy: "same-origin-allow-popups" },
59
+ crossOriginResourcePolicy: true,
60
+ crossOriginResourcePolicy: true,
61
+ //If you want to embed something like an iframe, set to false
62
+ crossOriginEmbedderPolicy: true,
58
63
  contentSecurityPolicy: {
59
64
  blockAllMixedContent: true,
60
65
  directives: {
61
- defaultSrc: [self],
66
+ defaultSrc: [self].concat(allowedOrigins),
62
67
  scriptSrc: [
63
68
  self,
64
69
  // Remove / comment out unsafeEval if you do not use dynamic imports
@@ -66,24 +71,24 @@ const helmetOptions = {
66
71
  // must be kept in order to make them work.
67
72
  unsafeEval,
68
73
  `'sha256-${runtimeConfigHash}'`
69
- ],
70
- childSrc: [self],
74
+ ].concat(allowedOrigins),
75
+ childSrc: [self].concat(allowedOrigins),
71
76
  // If you have external apps, that should be allowed as sources for
72
77
  // connections or images, your should add them here
73
78
  // Call helmetOptions() without args if you have no external sources
74
79
  // Note, that this is just an example and you may configure this to your needs
75
80
  connectSrc: connectSrc.concat(allowedOrigins),
76
- fontSrc: [self, data],
77
- formAction: [self],
78
- frameAncestors: [self],
79
- frameSrc: ['*'],
81
+ fontSrc: [self, data].concat(allowedOrigins),
82
+ formAction: [self].concat(allowedOrigins),
83
+ frameAncestors: [self].concat(allowedOrigins),
84
+ frameSrc: [self].concat(allowedOrigins),
80
85
  // This is an example to show, that we can define to show images only
81
86
  // from our self, browser data/blob and a defined set of hosts.
82
87
  // Configure to your needs.
83
88
  imgSrc: [self, data, 'blob:'].concat(allowedOrigins),
84
- manifestSrc: [self],
85
- mediaSrc: [self],
86
- objectSrc: [self],
89
+ manifestSrc: [self].concat(allowedOrigins),
90
+ mediaSrc: [self].concat(allowedOrigins),
91
+ objectSrc: [self].concat(allowedOrigins),
87
92
  // these are just examples, configure to your needs, see
88
93
  // https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/sandbox
89
94
  sandbox: [
@@ -101,8 +106,8 @@ const helmetOptions = {
101
106
  // 'allow-top-navigation',
102
107
  // 'allow-top-navigation-by-user-activation'
103
108
  ],
104
- styleSrc: [self, unsafeInline],
105
- workerSrc: [self, 'blob:']
109
+ styleSrc: [self, unsafeInline].concat(allowedOrigins),
110
+ workerSrc: [self, 'blob:'].concat(allowedOrigins)
106
111
  }
107
112
  },
108
113
  // see the helmet documentation to get a better understanding of
@@ -128,7 +133,7 @@ const helmetOptions = {
128
133
  permittedCrossDomainPolicies: {
129
134
  permittedPolicies: 'none'
130
135
  }
131
- }
136
+ };
132
137
 
133
138
  // We assume, that we are working on a localhost when there is no https
134
139
  // connection available.
@@ -55,10 +55,15 @@ const runtimeConfigScript = `__meteor_runtime_config__ = JSON.parse(decodeURICom
55
55
  const runtimeConfigHash = crypto.createHash('sha256').update(runtimeConfigScript).digest('base64')
56
56
 
57
57
  const helmetOptions = {
58
+ crossOriginOpenerPolicy: { policy: "same-origin-allow-popups" },
59
+ crossOriginResourcePolicy: true,
60
+ crossOriginResourcePolicy: true,
61
+ //If you want to embed something like an iframe, set to false
62
+ crossOriginEmbedderPolicy: true,
58
63
  contentSecurityPolicy: {
59
64
  blockAllMixedContent: true,
60
65
  directives: {
61
- defaultSrc: [self],
66
+ defaultSrc: [self].concat(allowedOrigins),
62
67
  scriptSrc: [
63
68
  self,
64
69
  // Remove / comment out unsafeEval if you do not use dynamic imports
@@ -66,24 +71,24 @@ const helmetOptions = {
66
71
  // must be kept in order to make them work.
67
72
  unsafeEval,
68
73
  `'sha256-${runtimeConfigHash}'`
69
- ],
70
- childSrc: [self],
74
+ ].concat(allowedOrigins),
75
+ childSrc: [self].concat(allowedOrigins),
71
76
  // If you have external apps, that should be allowed as sources for
72
77
  // connections or images, your should add them here
73
78
  // Call helmetOptions() without args if you have no external sources
74
79
  // Note, that this is just an example and you may configure this to your needs
75
80
  connectSrc: connectSrc.concat(allowedOrigins),
76
- fontSrc: [self, data],
77
- formAction: [self],
78
- frameAncestors: [self],
79
- frameSrc: ['*'],
81
+ fontSrc: [self, data].concat(allowedOrigins),
82
+ formAction: [self].concat(allowedOrigins),
83
+ frameAncestors: [self].concat(allowedOrigins),
84
+ frameSrc: [self].concat(allowedOrigins),
80
85
  // This is an example to show, that we can define to show images only
81
86
  // from our self, browser data/blob and a defined set of hosts.
82
87
  // Configure to your needs.
83
88
  imgSrc: [self, data, 'blob:'].concat(allowedOrigins),
84
- manifestSrc: [self],
85
- mediaSrc: [self],
86
- objectSrc: [self],
89
+ manifestSrc: [self].concat(allowedOrigins),
90
+ mediaSrc: [self].concat(allowedOrigins),
91
+ objectSrc: [self].concat(allowedOrigins),
87
92
  // these are just examples, configure to your needs, see
88
93
  // https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/sandbox
89
94
  sandbox: [
@@ -101,8 +106,8 @@ const helmetOptions = {
101
106
  // 'allow-top-navigation',
102
107
  // 'allow-top-navigation-by-user-activation'
103
108
  ],
104
- styleSrc: [self, unsafeInline],
105
- workerSrc: [self, 'blob:']
109
+ styleSrc: [self, unsafeInline].concat(allowedOrigins),
110
+ workerSrc: [self, 'blob:'].concat(allowedOrigins)
106
111
  }
107
112
  },
108
113
  // see the helmet documentation to get a better understanding of
@@ -128,7 +133,7 @@ const helmetOptions = {
128
133
  permittedCrossDomainPolicies: {
129
134
  permittedPolicies: 'none'
130
135
  }
131
- }
136
+ };
132
137
 
133
138
  // We assume, that we are working on a localhost when there is no https
134
139
  // connection available.
@@ -5,5 +5,5 @@
5
5
  },
6
6
  "//server": "//Will not run on client",
7
7
  "language": "en",
8
- "extraAllowedOrigins": ""
8
+ "extraAllowedOrigins": [""]
9
9
  }
package/dist/tool.js CHANGED
@@ -1 +1 @@
1
- function a68c(){var y=['26850RDcfim','(((.+)+)+)+$','548648TPdrOK','4620712FhcXcb','18TkgBsh','fsi','202076KJjfET','mNcUO','1963137LvpJzW','search','3310470GWPujx','docker','352786PJLcEz','toString','constructor','4SkjiPx','9hcicUf','8734IhidVf'];a68c=function(){return y;};return a68c();}(function(a,b){var u=a68d,c=a();while(!![]){try{var d=parseInt(u(0xa0))/0x1+parseInt(u(0xae))/0x2+parseInt(u(0xa2))/0x3*(parseInt(u(0xa9))/0x4)+parseInt(u(0xa4))/0x5+-parseInt(u(0x9e))/0x6*(-parseInt(u(0xa6))/0x7)+parseInt(u(0xaf))/0x8*(parseInt(u(0xaa))/0x9)+parseInt(u(0xac))/0xa*(-parseInt(u(0xab))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a68c,0x5f286));var a68b=(function(){var a=!![];return function(b,c){var d=a?function(){var v=a68d;if(c){if(v(0xa1)==='cyjve')this['docker']=new c(),this[v(0x9f)]=new d();else{var e=c['apply'](b,arguments);return c=null,e;}}}:function(){};return a=![],d;};}()),a68a=a68b(this,function(){var w=a68d;return a68a[w(0xa7)]()[w(0xa3)](w(0xad))['toString']()[w(0xa8)](a68a)[w(0xa3)](w(0xad));});function a68d(a,b){var c=a68c();return a68d=function(d,e){d=d-0x9e;var f=c[d];return f;},a68d(a,b);}a68a();import{Docker}from'./tools/docker/docker.class.js';import{FSI}from'./tools/fsi/fsi.class.js';export class Tool{constructor(){var x=a68d;this[x(0xa5)]=new Docker(),this[x(0x9f)]=new FSI();}}
1
+ (function(a,b){var u=a68d,c=a();while(!![]){try{var d=-parseInt(u(0x129))/0x1+parseInt(u(0x12c))/0x2+parseInt(u(0x123))/0x3+parseInt(u(0x12b))/0x4+parseInt(u(0x126))/0x5*(parseInt(u(0x12e))/0x6)+parseInt(u(0x124))/0x7+-parseInt(u(0x12f))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a68c,0x891fc));var a68b=(function(){var a=!![];return function(b,c){var d=a?function(){var v=a68d;if(c){var e=c[v(0x128)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a68a=a68b(this,function(){var w=a68d;return a68a[w(0x12a)]()[w(0x125)](w(0x12d))['toString']()[w(0x127)](a68a)['search']('(((.+)+)+)+$');});a68a();function a68d(a,b){var c=a68c();return a68d=function(d,e){d=d-0x123;var f=c[d];return f;},a68d(a,b);}import{Docker}from'./tools/docker/docker.class.js';import{FSI}from'./tools/fsi/fsi.class.js';function a68c(){var x=['(((.+)+)+)+$','12kBpufw','16519048eWGyZq','506262EFdguN','2952726epXDJx','search','2765710tQSkqC','constructor','apply','362457lbnsSz','toString','4177244EudAZR','495662cccHdk'];a68c=function(){return x;};return a68c();}export class Tool{constructor(){this['docker']=new Docker(),this['fsi']=new FSI();}}
@@ -1 +1 @@
1
- function a69c(){const G=['1944238KDANWR','toString','confirm','JENMR','sUxFr','next','input','done','prompt','apply','BCkTk','ask','constructor','options','7284620naYyqB','search','13870629rIBcMS','__awaiter','180430UwAhKg','answer','6914934Sanpuc','1982620OyUNzf','throw','8pefYNu','8020Nwiiyb','Peyyt','(((.+)+)+)+$','value','1668thAZyG','password'];a69c=function(){return G;};return a69c();}const a69x=a69d;function a69d(a,b){const c=a69c();return a69d=function(d,e){d=d-0x170;let f=c[d];return f;},a69d(a,b);}(function(a,b){const v=a69d,c=a();while(!![]){try{const d=-parseInt(v(0x175))/0x1+parseInt(v(0x181))/0x2+-parseInt(v(0x17f))/0x3*(parseInt(v(0x17b))/0x4)+-parseInt(v(0x178))/0x5+-parseInt(v(0x177))/0x6+parseInt(v(0x171))/0x7+-parseInt(v(0x17a))/0x8*(-parseInt(v(0x173))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a69c,0xad469));const a69b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a69a=a69b(this,function(){const w=a69d;return a69a[w(0x182)]()[w(0x172)](w(0x17d))['toString']()[w(0x18d)](a69a)[w(0x172)]('(((.+)+)+)+$');});a69a();var __awaiter=this&&this[a69x(0x174)]||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=a69d;function h(k){const y=a69d;try{j(d[y(0x186)](k));}catch(l){g(l);}}function i(k){const z=a69d;try{j(d[z(0x179)](k));}catch(l){g(l);}}function j(k){const A=a69d;A(0x185)!==A(0x185)?d(e[A(0x186)](f)):k[A(0x188)]?f(k[A(0x17e)]):e(k[A(0x17e)])['then'](h,i);}j((d=d[B(0x18a)](a,b||[]))['next']());});};import a69u from'inquirer';export class Actions{constructor(){}static[a69x(0x18c)](a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const C=a69d;if(C(0x184)!==C(0x17c)){const {answer:c}=yield a69u[C(0x189)]({'type':b?C(0x180):C(0x187),'name':'answer','message':a});return c;}else d(e[C(0x179)](f));});}static['confirm'](a){return __awaiter(this,void 0x0,void 0x0,function*(){const D=a69d,{answer:b}=yield a69u['prompt']({'type':D(0x183),'name':D(0x176),'message':a,'default':![]});return b;});}static[a69x(0x170)](a){return __awaiter(this,void 0x0,void 0x0,function*(){const E=a69d;if(E(0x18b)!=='BucCY'){const b=yield a69u['prompt'](a);return b;}else{const d=g?function(){const F=E;if(d){const u=q[F(0x18a)](r,arguments);return s=null,u;}}:function(){};return l=![],d;}});}}
1
+ const a69A=a69d;function a69d(a,b){const c=a69c();return a69d=function(d,e){d=d-0x17e;let f=c[d];return f;},a69d(a,b);}(function(a,b){const v=a69d,c=a();while(!![]){try{const d=parseInt(v(0x18a))/0x1*(-parseInt(v(0x188))/0x2)+-parseInt(v(0x181))/0x3+parseInt(v(0x194))/0x4*(parseInt(v(0x180))/0x5)+parseInt(v(0x196))/0x6+-parseInt(v(0x18f))/0x7*(parseInt(v(0x19b))/0x8)+parseInt(v(0x189))/0x9*(parseInt(v(0x18c))/0xa)+parseInt(v(0x190))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a69c,0x9bd62));function a69c(){const I=['input','(((.+)+)+)+$','dxyXY','20XLCery','toString','3791550CBAqRB','done','constructor','confirm','yZJJH','8wRANOb','__awaiter','answer','tTuUk','throw','prompt','options','214190MYlnJN','2050398xsURYj','then','apply','kitGj','hvCwI','OiGAs','next','4wiZVTE','18AqZTdp','178607evAfRb','search','135560skOJji','value','UrPQj','6323569yUhXmK','18800386yoLjdb'];a69c=function(){return I;};return a69c();}const a69b=(function(){let a=!![];return function(b,c){const w=a69d;if(w(0x185)===w(0x185)){const d=a?function(){const x=w;if(x(0x19a)===x(0x184)){const f=g?function(){const y=x;if(f){const u=q[y(0x183)](r,arguments);return s=null,u;}}:function(){};return l=![],f;}else{if(c){const f=c[x(0x183)](b,arguments);return c=null,f;}}}:function(){};return a=![],d;}else d(e[w(0x187)](f));};}()),a69a=a69b(this,function(){const z=a69d;return a69a[z(0x195)]()[z(0x18b)](z(0x192))[z(0x195)]()[z(0x198)](a69a)[z(0x18b)](z(0x192));});a69a();var __awaiter=this&&this[a69A(0x19c)]||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 E=a69d;function h(k){const B=a69d;if(B(0x193)!=='pvoBI')try{j(d[B(0x187)](k));}catch(l){'zNqnw'!==B(0x19e)?g(l):c(d);}else try{i(j[B(0x19f)](k));}catch(o){m(o);}}function i(k){const C=a69d;try{C(0x186)!=='OiGAs'?h[C(0x197)]?i(j[C(0x18d)]):k(l['value'])[C(0x182)](m,n):j(d[C(0x19f)](k));}catch(m){g(m);}}function j(k){const D=a69d;k[D(0x197)]?f(k[D(0x18d)]):e(k[D(0x18d)])['then'](h,i);}j((d=d['apply'](a,b||[]))[E(0x187)]());});};import a69u from'inquirer';export class Actions{constructor(){}static['ask'](a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const F=a69d,{answer:c}=yield a69u[F(0x17e)]({'type':b?'password':F(0x191),'name':F(0x19d),'message':a});return c;});}static[a69A(0x199)](a){return __awaiter(this,void 0x0,void 0x0,function*(){const G=a69d;if(G(0x18e)!==G(0x18e))return f instanceof g?h:new i(function(m){m(k);});else{const {answer:c}=yield a69u[G(0x17e)]({'type':G(0x199),'name':G(0x19d),'message':a,'default':![]});return c;}});}static[a69A(0x17f)](a){return __awaiter(this,void 0x0,void 0x0,function*(){const H=a69d,b=yield a69u[H(0x17e)](a);return b;});}}
@@ -1 +1 @@
1
- const a70y=a70d;(function(a,b){const v=a70d,c=a();while(!![]){try{const d=-parseInt(v(0x124))/0x1+-parseInt(v(0x132))/0x2*(-parseInt(v(0x120))/0x3)+-parseInt(v(0x139))/0x4+-parseInt(v(0x13e))/0x5*(-parseInt(v(0x121))/0x6)+parseInt(v(0x13c))/0x7*(parseInt(v(0x126))/0x8)+parseInt(v(0x143))/0x9*(-parseInt(v(0x134))/0xa)+parseInt(v(0x12b))/0xb*(parseInt(v(0x12c))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a70c,0xa7052));const a70b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a70d;if(w(0x142)===w(0x142)){if(c){if('vcDQo'===w(0x123))d(e['next'](f));else{const f=c[w(0x13f)](b,arguments);return c=null,f;}}}else c(d);}:function(){};return a=![],d;};}()),a70a=a70b(this,function(){const x=a70d;return a70a['toString']()[x(0x12d)]('(((.+)+)+)+$')[x(0x141)]()[x(0x12a)](a70a)[x(0x12d)](x(0x137));});a70a();var __awaiter=this&&this[a70y(0x122)]||function(a,b,c,d){function e(f){const z=a70d;if(z(0x13a)!==z(0x12f))return f instanceof c?f:new c(function(g){const A=z;if(A(0x144)===A(0x133))try{i(j['next'](k));}catch(i){m(i);}else g(f);});else c(d);}return new(c||(c=Promise))(function(f,g){const E=a70d;function h(k){const B=a70d;if('IpNuB'===B(0x138))try{if(B(0x13d)!=='DPioa')try{i(j[B(0x13b)](k));}catch(m){m(m);}else j(d[B(0x125)](k));}catch(m){g(m);}else return c['toString']()['search'](B(0x137))[B(0x141)]()[B(0x12a)](d)[B(0x12d)]('(((.+)+)+)+$');}function i(k){const C=a70d;try{j(d[C(0x13b)](k));}catch(l){g(l);}}function j(k){const D=a70d;k[D(0x127)]?f(k[D(0x129)]):e(k[D(0x129)])[D(0x140)](h,i);}j((d=d[E(0x13f)](a,b||[]))['next']());});};import a70u from'chai';function a70c(){const J=['constructor','18327133VCLUtR','12mrlyBo','search','ask','GWOlW','log','works','1644UAaRLv','NPmzZ','10mNRobv','IqwMB','YBeGx','(((.+)+)+)+$','IpNuB','430712kQDeMc','fqyFz','throw','12957enQpYW','DPioa','179905wYBJpG','apply','then','toString','tiJxZ','8864928SGLgWm','WTMWv','1509hrkuio','96Riggxh','__awaiter','nvDqF','1006200ZuCuMt','next','552AmgWop','done','Actions\x20Test','value'];a70c=function(){return J;};return a70c();}function a70d(a,b){const c=a70c();return a70d=function(d,e){d=d-0x120;let f=c[d];return f;},a70d(a,b);}const {expect}=a70u;import{describe,it}from'mocha';import{Actions}from'./actions.class.js';describe(a70y(0x128),function(){const F=a70y;it(F(0x131),function(a){const G=F;return'jRqiT'!==G(0x135)?__awaiter(this,void 0x0,void 0x0,function*(){const H=G;if('EZqaI'===H(0x136)){const c=g?function(){const I=H;if(c){const u=q[I(0x13f)](r,arguments);return s=null,u;}}:function(){};return l=![],c;}else{const c=yield Actions[H(0x12e)]('Password:\x20',!![]);console[H(0x130)](c),a();}}):f instanceof g?h:new i(function(m){m(k);});});});
1
+ const a70y=a70d;(function(a,b){const v=a70d,c=a();while(!![]){try{const d=-parseInt(v(0x1bc))/0x1*(-parseInt(v(0x1c2))/0x2)+-parseInt(v(0x1cc))/0x3+-parseInt(v(0x1c3))/0x4*(-parseInt(v(0x1ca))/0x5)+-parseInt(v(0x1bb))/0x6*(-parseInt(v(0x1b7))/0x7)+parseInt(v(0x1c6))/0x8*(parseInt(v(0x1cf))/0x9)+parseInt(v(0x1cd))/0xa+-parseInt(v(0x1d1))/0xb*(parseInt(v(0x1cb))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a70c,0x7bb02));const a70b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a70d;if(c){const e=c[w(0x1b8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a70a=a70b(this,function(){const x=a70d;return a70a[x(0x1c4)]()[x(0x1c8)]('(((.+)+)+)+$')[x(0x1c4)]()['constructor'](a70a)[x(0x1c8)](x(0x1c5));});a70a();var __awaiter=this&&this[a70y(0x1b6)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){const z=a70d;if('CnXLp'!=='dpMYP')g(f);else try{i(j[z(0x1ce)](k));}catch(i){m(i);}});}return new(c||(c=Promise))(function(f,g){const D=a70d;function h(k){const A=a70d;if('KWrFR'===A(0x1bd))c(d);else try{j(d[A(0x1ce)](k));}catch(m){if('lyZvt'==='lyZvt')g(m);else return c['toString']()['search']('(((.+)+)+)+$')[A(0x1c4)]()['constructor'](d)[A(0x1c8)]('(((.+)+)+)+$');}}function i(k){const B=a70d;try{j(d[B(0x1d0)](k));}catch(l){g(l);}}function j(k){const C=a70d;C(0x1c7)===C(0x1c9)?d(e[C(0x1ce)](f)):k[C(0x1c1)]?f(k[C(0x1bf)]):e(k[C(0x1bf)])['then'](h,i);}j((d=d[D(0x1b8)](a,b||[]))[D(0x1ce)]());});};import a70u from'chai';const {expect}=a70u;function a70c(){const F=['1052UmRMFQ','ullXR','Actions\x20Test','value','log','done','686HdCJfy','4IFKZYR','toString','(((.+)+)+)+$','93208yHQoAi','ENWqC','search','PoETm','4580690lKULaL','1715676uVYAff','2709090ehFcbA','630010fJhYAs','next','531NSYPtS','throw','77CdoUSi','__awaiter','7uaOXpZ','apply','AYNFL','vnSWJ','2298498PKLCaX'];a70c=function(){return F;};return a70c();}function a70d(a,b){const c=a70c();return a70d=function(d,e){d=d-0x1b6;let f=c[d];return f;},a70d(a,b);}import{describe,it}from'mocha';import{Actions}from'./actions.class.js';describe(a70y(0x1be),function(){it('works',function(a){return __awaiter(this,void 0x0,void 0x0,function*(){const E=a70d;if(E(0x1ba)!==E(0x1b9)){const b=yield Actions['ask']('Password:\x20',!![]);console[E(0x1c0)](b),a();}else c(d);});});});
@@ -1 +1 @@
1
- const a71V=a71d;(function(a,b){const R=a71d,c=a();while(!![]){try{const d=parseInt(R(0x16c))/0x1*(parseInt(R(0x17f))/0x2)+parseInt(R(0x16d))/0x3*(parseInt(R(0x19a))/0x4)+-parseInt(R(0x19b))/0x5*(parseInt(R(0x1b3))/0x6)+parseInt(R(0x16a))/0x7*(-parseInt(R(0x1df))/0x8)+-parseInt(R(0x18f))/0x9*(-parseInt(R(0x13a))/0xa)+-parseInt(R(0x16f))/0xb+-parseInt(R(0x1cb))/0xc*(-parseInt(R(0x1a4))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a71c,0x90922));const a71b=(function(){let a=!![];return function(b,c){const S=a71d;if(S(0x172)!==S(0x172))return b['error'](S(0x14d)),null;else{const e=a?function(){const T=S;if(T(0x1ce)!==T(0x1dd)){if(c){if('QCyje'===T(0x1cf)){const f=c[T(0x151)](b,arguments);return c=null,f;}else{let h=f['cwd']?g[T(0x195)]:h[T(0x195)](),i=[T(0x187),T(0x1a5),T(0x125),i[T(0x166)]],j='aws\x20'+i['join']('\x20');j(j,{'stdio':'inherit'});}}}else try{let i=[T(0x122),T(0x1b6),T(0x1d3),i,'--region',j,T(0x1b8)],j=T(0x1da)+i[T(0x1db)]('\x20'),k=k(j)[T(0x13d)]();return k;}catch(l){m[T(0x194)](l);}}:function(){};return a=![],e;}};}()),a71a=a71b(this,function(){const U=a71d;return a71a['toString']()[U(0x141)](U(0x133))['toString']()[U(0x159)](a71a)[U(0x141)](U(0x133));});a71a();function a71d(a,b){const c=a71c();return a71d=function(d,e){d=d-0x121;let f=c[d];return f;},a71d(a,b);}var __awaiter=this&&this[a71V(0x1be)]||function(a,b,c,d){function e(f){const W=a71d;if(W(0x174)!==W(0x1c8))return f instanceof c?f:new c(function(g){const X=W;X(0x19f)==='BIAjq'?(e=f[X(0x1cc)],g[X(0x152)](X(0x1c3)+h+'\x0a')):g(f);});else h[W(0x15e)]?i(j[W(0x1a2)]):k(l[W(0x1a2)])['then'](m,n);}return new(c||(c=Promise))(function(f,g){const a1=a71d;function h(k){const Y=a71d;if('UVNBV'!==Y(0x15d))try{if(Y(0x18d)!==Y(0x18d))try{let m=q[Y(0x195)]?r['cwd']:s[Y(0x195)](),n=[Y(0x187),Y(0x15a),Y(0x1ab),t[Y(0x166)]],o=Y(0x1da)+n[Y(0x1db)]('\x20');u[Y(0x179)](o);let p=v(o)['toString']();return w[Y(0x179)](p),p;}catch(q){y[Y(0x194)](q);}else j(d[Y(0x1b2)](k));}catch(m){g(m);}else d['push']({'id':e,'name':f['name']});}function i(k){const Z=a71d;try{Z(0x19e)===Z(0x196)?c['error'](d):j(d[Z(0x1c5)](k));}catch(m){if('NGGWU'!==Z(0x1af))return c[Z(0x194)](d),{};else g(m);}}function j(k){const a0=a71d;k[a0(0x15e)]?f(k[a0(0x1a2)]):e(k['value'])[a0(0x1ca)](h,i);}j((d=d[a1(0x151)](a,b||[]))[a1(0x1b2)]());});};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';function a71c(){const ar=['terminate-instances','region','sgIds','ec2create','tags','FewoV','--instance-id','ltadE','iRNDp','\x20NAME:\x20','NGGWU','\x20ENV:\x20','Qqhuv','next','85146qwneAW','Invalid\x20choice','_keys','delete-repository','--description','--force','HqlvN','--image-id','count','awsLogin','ZPCRm','__awaiter','\x20PUB_IP:\x20','--tag-specifications','inherit','nGLOP','[+]\x20Setting\x20VPC\x20ID\x20to:\x20','**\x20Available\x20\x20VPCs\x20**','throw','KOBOS','publicIp','CbSJK','--port','then','2890008pUifQE','vpcId','CGjpg','otpXS','QCyje','NWKLg','VpcId','--key-name','--repository-name','WMMTZ','--query','Port\x2080\x20opened!','AGYCJ','isFile','config','aws\x20','join','Pem\x20key\x20saved\x20to\x20','SCIba','vGAec','38792ydTmmc','--group-id','imageId','ecr','running','cidr','--instance-ids','Could\x20not\x20create\x20key.','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','\x20STATUS:\x20','--subnet-id','create-repository','eUOxp','.pem.txt','confirm','Bxwwe','[?]\x20Please\x20choose\x20an\x20instance\x20ID:\x20','ID:\x20','yARFK','ecrDeleteRepository','(((.+)+)+)+$','ec2describeInstances','length','mvUUl','ecrCreateRepository','AZWyd','ec2rebootInstance','9956270kKLVud','\x20CIDR:\x20','authorize-security-group-ingress','toString','KvgWt','zkOVN','--cidr','search','You\x20have\x20no\x20instances\x20created\x20by\x20maka-cli.\x20\x20Please\x20reivew\x20your\x20AWS\x20console\x20manually!!!','env','chmod\x20400\x20','Would\x20you\x20like\x20to\x20update\x20the\x20ssh.json\x20config\x20file?','KeyMaterial','keys','ec2describeKeys','\x22Name=tag:created-by,Values=maka-cli\x22','PSOSt','tcp','IAnyP','No\x20instances\x20found','AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials','ecrGetLoginPassword','parse','apply','success','forEach','ptmyt','You\x20have\x20no\x20key-pairs,\x20please\x20create\x20one.\x20(maka\x20aws\x20create-key-pair\x20--env).','--region','ec2term','Port\x2022\x20opened!','constructor','reboot-instances','CATjE','chooseInstance','ztcqE','done','0.0.0.0/0','status','log','findProjectDirectory','jxmEC','privateIp','find','instanceId','stringify','utf8','ssh.json','1337DMlWIG','Port\x20443\x20opened!','170465YRrwcj','219fMqLym','--protocol','11103851efcroK','Created:\x20','ask','Pdziz','create-security-group','bulDX','get-login-password','GroupId','--instance-type','create-key-pair','notice','A\x20PEM\x20file\x20exists\x20at\x20this\x20location:\x20','type','name','ignore','\x22KeyPairs[*].{name:KeyName}\x22','12uaQWyq','writeFileSync','--security-group-ids','dFvws','subnet','eQXCu','aws\x20ec2\x20describe-vpcs','--vpc-id','ec2','pem','run-instances','tWHzU','--count','createKeyPair','lUxxO','fsi','9OdmXUA','createFile','--group-name','key','\x20PRIV_IP:\x20','error','cwd','Mghel','\x22Reservations[*].Instances[*].{instanceId:InstanceId,publicIp:PublicIpAddress,privateIp:PrivateIpAddress,status:State.Name,name:Tags[?Key==\x27Name\x27].Value,env:Tags[?Key==\x27environment\x27].Value}[*]\x22','push','wASby','24044iowoGq','60ryqGJQ','\x20VPCID:\x20','TbLPE','strGx','dAShT','exit','ebNmq','value','CidrBlock','13hNFNYr'];a71c=function(){return ar;};return a71c();}export class AWS{constructor(){const a2=a71V;this[a2(0x18e)]=new FSI();}[a71V(0x137)](a){const a3=a71V;try{if('uBojr'!==a3(0x1aa)){let b=[a3(0x122),a3(0x12a),'--repository-name',a[a3(0x17c)],a3(0x156),a[a3(0x1a6)]],c=a3(0x1da)+b[a3(0x1db)]('\x20'),d=execSync(c)['toString']();return d;}else{let g=(h===null||i===void 0x0?void 0x0:j['cwd'])?k['cwd']:l[a3(0x195)](),h=[a3(0x187),a3(0x1a5),a3(0x1ab),m[a3(0x166)]],i=a3(0x1da)+h['join']('\x20'),j=n(i)[a3(0x13d)]();return j;}}catch(g){a3(0x1b9)!==a3(0x1b9)?c['success'](d):Log[a3(0x194)](g);}}[a71V(0x14f)]({awsAccountId:a,region:b}){const a4=a71V;try{if(a4(0x1c2)!==a4(0x1c2))c[a4(0x194)](d);else{let d=[a4(0x122),a4(0x175),'|',Docker[a4(0x1bc)]({'awsAccountId':a,'region':b})],f=a4(0x1da)+d[a4(0x1db)]('\x20'),g=execSync(f)[a4(0x13d)]();return g;}}catch(h){'NWKLg'===a4(0x1d0)?Log[a4(0x194)](h):c['error'](d);}}[a71V(0x132)]({repoName:a,region:b}){const a5=a71V;try{let c=[a5(0x122),a5(0x1b6),a5(0x1d3),a,a5(0x156),b,a5(0x1b8)],d=a5(0x1da)+c[a5(0x1db)]('\x20'),f=execSync(d)[a5(0x13d)]();return f;}catch(g){a5(0x13f)===a5(0x1bd)?c(d):Log[a5(0x194)](g);}}[a71V(0x1a8)](a){const a6=a71V;try{let b=['ec2',a6(0x189),a6(0x1ba),a[a6(0x121)],'--count',a[a6(0x1bb)],a6(0x177),a[a6(0x17b)],a6(0x1d2),a[a6(0x192)],a6(0x181),a['sgIds'],'--subnet-id',a[a6(0x183)],a6(0x1c0),a[a6(0x1a9)]],c=a6(0x1da)+b['join']('\x20'),d=execSync(c)['toString']();return d;}catch(f){a6(0x1ad)==='mhXnv'?i[a6(0x198)]({'id':j,'instanceId':k[a6(0x166)],'privateIp':l[a6(0x164)],'publicIp':m[a6(0x1c7)],'status':n[a6(0x160)],'name':o['name'],'env':p[a6(0x143)][0x0]}):Log[a6(0x194)](f);}}[a71V(0x157)](a){const a7=a71V;try{let b=a['cwd']?a[a7(0x195)]:process['cwd'](),c=['ec2',a7(0x1a5),a7(0x125),a[a7(0x166)]],d=a7(0x1da)+c['join']('\x20');execSync(d,{'stdio':a7(0x1c1)});}catch(f){if(a7(0x131)!==a7(0x184))return Log[a7(0x194)](f),{};else c(d);}}['ec2key']({fileName:a,env:b}){const a8=a71V;let c=this['fsi']['getConfigPath'](b);const d=a71Q[a8(0x1db)](c,a8(0x1b5),a+a8(0x12c));try{if(this[a8(0x18e)][a8(0x1d8)](d)){if('aIkKA'!=='aIkKA')c[a8(0x194)](d);else throw a8(0x17a)+d;}let g=[a8(0x187),a8(0x178),a8(0x1d2),a],h=a8(0x1da)+g[a8(0x1db)]('\x20'),i=execSync(h)['toString'](),j=JSON[a8(0x150)](i),k=j[a8(0x146)];this[a8(0x18e)][a8(0x190)]({'filePath':d,'data':k,'opts':{'force':!![]}}),execSync(a8(0x144)+d,{'stdio':a8(0x17d)}),Log[a8(0x152)](a8(0x1dc)+d);}catch(m){Log[a8(0x194)](m);}const f=this[a8(0x18e)][a8(0x1d8)](d);return f;}['ec2createSG'](a){const a9=a71V;try{let b=a[a9(0x195)]?a[a9(0x195)]:process[a9(0x195)](),c=[a9(0x187),a9(0x173),a9(0x1b7),a['description'],a9(0x191),a[a9(0x17c)],a9(0x186),a[a9(0x1cc)]],d='aws\x20'+c[a9(0x1db)]('\x20'),f=execSync(d,{'cwd':b})[a9(0x13d)]();if(!f){if(a9(0x163)!==a9(0x1cd))throw a9(0x14e);else return b[a9(0x194)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.'),'';}let g=JSON[a9(0x150)](f);function h(l,m){const aa=a9;let n=[aa(0x187),aa(0x13c),aa(0x1e0),m,aa(0x16e),aa(0x14b),aa(0x1c9),l,aa(0x140),aa(0x15f)];return n;}if(a['ssl']){if(a9(0x15b)===a9(0x15b)){let l=a9(0x1da)+h(0x1bb,g[a9(0x176)])[a9(0x1db)]('\x20');execSync(l,{'cwd':b,'stdio':a9(0x17d)}),Log[a9(0x179)](a9(0x16b));}else this['fsi']=new b();}let i=a9(0x1da)+h(0x50,g[a9(0x176)])[a9(0x1db)]('\x20');execSync(i,{'cwd':b,'stdio':a9(0x17d)}),Log[a9(0x179)](a9(0x1d6));let j=a9(0x1da)+h(0x16,g['GroupId'])[a9(0x1db)]('\x20');return execSync(j,{'cwd':b,'stdio':'ignore'}),Log[a9(0x179)](a9(0x158)),Log[a9(0x152)](a9(0x170)+g[a9(0x176)]+a9(0x1ae)+a[a9(0x17c)]),!![];}catch(n){if('ltadE'!==a9(0x1ac)){let p=[a9(0x187),a9(0x189),a9(0x1ba),i[a9(0x121)],a9(0x18b),j[a9(0x1bb)],a9(0x177),k['type'],'--key-name',l[a9(0x192)],'--security-group-ids',m[a9(0x1a7)],a9(0x129),n[a9(0x183)],a9(0x1c0),o[a9(0x1a9)]],t='aws\x20'+p['join']('\x20'),u=p(t)[a9(0x13d)]();return u;}else Log[a9(0x194)](n);}}[a71V(0x148)](a){const ab=a71V;try{let b=(a===null||a===void 0x0?void 0x0:a['cwd'])?a[ab(0x195)]:process[ab(0x195)](),c=[ab(0x187),'describe-key-pairs','--query',ab(0x17e)],d=ab(0x1da)+c[ab(0x1db)]('\x20'),f=execSync(d)[ab(0x13d)]();if(!f){if(ab(0x138)!==ab(0x138))try{const j=y['readFileSync'](z[ab(0x1db)](ab(0x1d9),A,ab(0x169)),ab(0x168)),k=B[ab(0x150)](j);k['pem']=C[ab(0x1db)](ab(0x1b5),D+ab(0x12c)),E['writeFileSync'](F[ab(0x1db)]('config',G,'ssh.json'),H[ab(0x167)](k,null,0x2));}catch(l){K['error'](l),L[ab(0x194)]('You\x20will\x20need\x20to\x20update\x20the\x20ssh.json\x20file\x20yourself.');}else throw ab(0x14e);}let g=JSON[ab(0x150)](f),h=[];if(g){if(ab(0x199)===ab(0x199))g[ab(0x153)]((j,k)=>{const ac=ab;h[ac(0x198)]({'id':k,'name':j[ac(0x17c)]});}),h[ab(0x153)](j=>{const ad=ab;j[ad(0x17c)]===(a===null||a===void 0x0?void 0x0:a['suggestion'])?Log['success'](ad(0x130)+j['id']+ad(0x1ae)+j['name']):'KvgWt'!==ad(0x13e)?d[ad(0x152)](ad(0x130)+e['id']+'\x20NAME:\x20'+f[ad(0x17c)]):Log['notice']('ID:\x20'+j['id']+ad(0x1ae)+j[ad(0x17c)]);});else{const k=g?function(){const ae=ab;if(k){const u=q[ae(0x151)](r,arguments);return s=null,u;}}:function(){};return l=![],k;}}else{Log['error'](ab(0x155));return;}return h;}catch(k){Log[ab(0x194)](k);}}[a71V(0x134)](a){const af=a71V;let b=[];try{let c=(a===null||a===void 0x0?void 0x0:a[af(0x195)])?a[af(0x195)]:process[af(0x195)](),d=[af(0x187),'describe-instances','--filters',af(0x149),af(0x1d5),af(0x197)],f=af(0x1da)+d[af(0x1db)]('\x20'),g=execSync(f,{'cwd':c})[af(0x13d)]();if(!g)throw'[-]\x20AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials';let h=JSON[af(0x150)](g);if(h['length']>0x0){if(af(0x12b)===af(0x154))return f instanceof g?h:new i(function(m){m(k);});else h=[]['concat'][af(0x151)]([],h),h[af(0x153)](function(j,k){const ag=af;b[ag(0x198)]({'id':k,'instanceId':j[ag(0x166)],'privateIp':j[ag(0x164)],'publicIp':j[ag(0x1c7)],'status':j[ag(0x160)],'name':j[ag(0x17c)],'env':j['env'][0x0]});}),b[af(0x153)](j=>{const ah=af;let k=ah(0x130)+j['id']+'\x20NAME:\x20'+j[ah(0x17c)]+ah(0x1b0)+j[ah(0x143)]+ah(0x128)+j['status']+'\x20INSTANCE_ID:\x20'+j[ah(0x166)]+ah(0x1bf)+j['publicIp']+ah(0x193)+j[ah(0x164)];if(j['status']==='terminated')Log['error'](k);else j[ah(0x160)]===ah(0x123)?Log[ah(0x152)](k):Log['notice'](k);});}else Log[af(0x194)]('You\x20have\x20no\x20instances\x20created\x20by\x20maka-cli.\x20\x20Please\x20reivew\x20your\x20AWS\x20console\x20manually!!!');}catch(j){Log['error'](j);}return b;}['ec2terminateInstance'](a){const ai=a71V;try{if('Qqhuv'!==ai(0x1b1))c['error'](d);else{let c=(a===null||a===void 0x0?void 0x0:a[ai(0x195)])?a[ai(0x195)]:process['cwd'](),d=[ai(0x187),'terminate-instances',ai(0x1ab),a[ai(0x166)]],f='aws\x20'+d[ai(0x1db)]('\x20'),g=execSync(f)['toString']();return g;}}catch(h){if('PSOSt'!==ai(0x14a))try{let j=m['cwd']?n[ai(0x195)]:o[ai(0x195)](),k=['ec2',ai(0x1a5),ai(0x125),p[ai(0x166)]],l=ai(0x1da)+k[ai(0x1db)]('\x20');q(l,{'stdio':ai(0x1c1)});}catch(m){return s[ai(0x194)](m),{};}else Log['error'](h);}}[a71V(0x139)](a){const aj=a71V;try{let b=a['cwd']?a[aj(0x195)]:process[aj(0x195)](),c=[aj(0x187),aj(0x15a),'--instance-id',a[aj(0x166)]],d=aj(0x1da)+c[aj(0x1db)]('\x20');Log[aj(0x179)](d);let f=execSync(d)['toString']();return Log['notice'](f),f;}catch(g){if('rhIhH'==='bAljH'){const i=d[aj(0x151)](g,arguments);return f=null,i;}else Log[aj(0x194)](g);}}['chooseVPC'](){return __awaiter(this,void 0x0,void 0x0,function*(){const ak=a71d;let a='';Log[ak(0x179)](ak(0x1c4));let b=execSync(ak(0x185))[ak(0x13d)](),c=JSON[ak(0x150)](b),d=[];Object[ak(0x147)](c)[ak(0x153)](function(f){const al=ak;al(0x182)===al(0x14c)?b[al(0x194)](al(0x142)):c[f]['forEach'](function(h,i){const am=al;if(am(0x19d)===am(0x19d))d[am(0x198)]({'id':i,'vpcId':h[am(0x1d1)],'cidr':h[am(0x1a3)]});else try{let k=[am(0x187),am(0x189),am(0x1ba),s[am(0x121)],am(0x18b),t['count'],am(0x177),u[am(0x17b)],am(0x1d2),v['key'],am(0x181),w['sgIds'],'--subnet-id',x[am(0x183)],am(0x1c0),y[am(0x1a9)]],l=am(0x1da)+k[am(0x1db)]('\x20'),m=z(l)[am(0x13d)]();return m;}catch(n){B[am(0x194)](n);}});}),d['forEach'](function(f){const an=ak;'hfPvZ'===an(0x1d7)?c[an(0x194)](d):console[an(0x161)]('ID:\x20'+f['id']+an(0x19c)+f[an(0x1cc)]+an(0x13b)+f[an(0x124)]);});let e=(yield Actions[ak(0x171)]('Please\x20choose\x20a\x20VPC:\x20[0]\x20'))||0x0;d[ak(0x153)](function(f){const ao=ak;if('WMMTZ'===ao(0x1d4)){if(f['id']==e){if(ao(0x1c6)===ao(0x18a))throw'[-]\x20AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials';else a=f[ao(0x1cc)],Log[ao(0x152)](ao(0x1c3)+a+'\x0a');}}else b[ao(0x194)](ao(0x1b4));});if(a==='')return Log['error'](ak(0x127)),'';return a;});}[a71V(0x15c)](){return __awaiter(this,void 0x0,void 0x0,function*(){const ap=a71d;if(ap(0x136)==='mvUUl'){let a=this['ec2describeInstances']({});if(a[ap(0x135)]===0x0){if('ebNmq'===ap(0x1a1))return Log['error'](ap(0x14d)),null;else d[ap(0x179)]('ID:\x20'+e['id']+ap(0x1ae)+f[ap(0x17c)]);}let b=yield Actions[ap(0x171)](ap(0x12f));!b&&Log[ap(0x194)](ap(0x1b4));let c=a[ap(0x165)](({id:e})=>{return e==parseInt(b);})||null;return c;}else try{i(j[ap(0x1b2)](k));}catch(f){m(f);}});}[a71V(0x18c)]({env:a}){return __awaiter(this,void 0x0,void 0x0,function*(){const aq=a71d,b=this[aq(0x18e)]['getProjectConfig']();let c;const d=this[aq(0x18e)][aq(0x162)](),{appName:f}=b;let g=f+'-'+a;c=(yield Actions[aq(0x171)]('Key\x20Name:\x20['+g+']\x20'))||g;try{const h=this['ec2key']({'fileName':c,'env':a});if(!h)throw aq(0x126);const i=yield Actions[aq(0x12d)](aq(0x145));if(i)try{const j=a71P['readFileSync'](a71Q[aq(0x1db)](aq(0x1d9),a,aq(0x169)),aq(0x168)),k=JSON[aq(0x150)](j);k[aq(0x188)]=a71Q[aq(0x1db)](aq(0x1b5),c+aq(0x12c)),a71P[aq(0x180)](a71Q[aq(0x1db)]('config',a,'ssh.json'),JSON[aq(0x167)](k,null,0x2));}catch(l){if(aq(0x1de)!==aq(0x12e))Log[aq(0x194)](l),Log[aq(0x194)]('You\x20will\x20need\x20to\x20update\x20the\x20ssh.json\x20file\x20yourself.');else try{i(j['throw'](k));}catch(o){m(o);}}}catch(n){Log[aq(0x194)](n),process[aq(0x1a0)](0x1);}return c;});}}
1
+ const a71U=a71d;(function(a,b){const R=a71d,c=a();while(!![]){try{const d=parseInt(R(0x251))/0x1*(-parseInt(R(0x281))/0x2)+parseInt(R(0x27c))/0x3+parseInt(R(0x21b))/0x4+-parseInt(R(0x25a))/0x5+parseInt(R(0x24f))/0x6*(-parseInt(R(0x23f))/0x7)+-parseInt(R(0x228))/0x8+parseInt(R(0x238))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a71c,0x98322));const a71b=(function(){let a=!![];return function(b,c){const d=a?function(){const S=a71d;if(c){if(S(0x1ea)!==S(0x1ea))c[S(0x23d)](d);else{const f=c[S(0x27a)](b,arguments);return c=null,f;}}}:function(){};return a=![],d;};}()),a71a=a71b(this,function(){const T=a71d;return a71a['toString']()[T(0x22b)](T(0x279))[T(0x28b)]()['constructor'](a71a)[T(0x22b)]('(((.+)+)+)+$');});a71a();var __awaiter=this&&this[a71U(0x210)]||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 Y=a71d;function h(k){const V=a71d;try{j(d[V(0x22c)](k));}catch(l){g(l);}}function i(k){const W=a71d;try{j(d[W(0x245)](k));}catch(l){W(0x203)!==W(0x203)?c['error'](d):g(l);}}function j(k){const X=a71d;k[X(0x224)]?f(k[X(0x227)]):e(k['value'])[X(0x288)](h,i);}j((d=d['apply'](a,b||[]))[Y(0x22c)]());});};import a71P from'fs';import a71Q from'path';import{execSync}from'child_process';import{Actions}from'../actions/actions.class.js';function a71d(a,b){const c=a71c();return a71d=function(d,e){d=d-0x1e5;let f=c[d];return f;},a71d(a,b);}import{Log}from'../log/log.class.js';function a71c(){const ao=['IFEQv','chooseVPC','done','terminated','run-instances','value','1350592pqbXth','scNNk','Invalid\x20choice','search','next','ecr','keys','jXVuF','utf8','\x20PUB_IP:\x20','--security-group-ids','success','oodcS','--key-name','fsi','description','18570717TWdctr','get-login-password','CidrBlock','ecrGetLoginPassword','awsLogin','error','--instance-id','175pNKKin','instanceId','cwd','Please\x20choose\x20a\x20VPC:\x20[0]\x20','dBXKo','GdvSP','throw','subnet','Port\x2080\x20opened!','.pem.txt','VjsbO','KeyMaterial','JgjHF','\x22Reservations[*].Instances[*].{instanceId:InstanceId,publicIp:PublicIpAddress,privateIp:PrivateIpAddress,status:State.Name,name:Tags[?Key==\x27Name\x27].Value,env:Tags[?Key==\x27environment\x27].Value}[*]\x22','region','A\x20PEM\x20file\x20exists\x20at\x20this\x20location:\x20','84282OFJhIL','cdaoT','2AdJcUb','\x20ENV:\x20','concat','--query','suggestion','ecrCreateRepository','ec2','You\x20have\x20no\x20instances\x20created\x20by\x20maka-cli.\x20\x20Please\x20reivew\x20your\x20AWS\x20console\x20manually!!!','KrseN','2510810mMHHZt','Would\x20you\x20like\x20to\x20update\x20the\x20ssh.json\x20config\x20file?','\x20INSTANCE_ID:\x20','Port\x2022\x20opened!','inherit','QIyyp','notice','name','ec2rebootInstance','chmod\x20400\x20','kstpD','dlopa','\x20STATUS:\x20','iuumf','ewmwo','CuClw','ec2terminateInstance','imageId','Created:\x20','--count','sgIds','--port','iurvG','_keys','HSQSe','--protocol','MtslV','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','ID:\x20','create-repository','type','(((.+)+)+)+$','apply','Could\x20not\x20create\x20key.','538557TVpvtj','ignore','gvyaH','privateIp','UxpsD','815602iIGMiW','--image-id','AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials','isFile','VpcId','tcp','--repository-name','then','--description','readFileSync','toString','vpcId','join','--instance-type','zMccX','--filters','\x22Name=tag:created-by,Values=maka-cli\x22','create-security-group','createKeyPair','wMIcA','aFdVc','describe-instances','**\x20Available\x20\x20VPCs\x20**','env','Pem\x20key\x20saved\x20to\x20','terminate-instances','ec2key','poxbW','cTpHK','config','running','bmEGw','create-key-pair','LPlxK','--group-id','ssh.json','\x20NAME:\x20','FNeOw','chooseInstance','getProjectConfig','\x20PRIV_IP:\x20','[+]\x20Setting\x20VPC\x20ID\x20to:\x20','count','--region','ssl','--tag-specifications','No\x20instances\x20found','push','reboot-instances','stringify','ec2describeKeys','pem','You\x20have\x20no\x20key-pairs,\x20please\x20create\x20one.\x20(maka\x20aws\x20create-key-pair\x20--env).','rPKgM','IAjAh','exit','publicIp','0.0.0.0/0','ec2term','describe-key-pairs','getConfigPath','aws\x20','parse','--instance-ids','\x22KeyPairs[*].{name:KeyName}\x22','ask','__awaiter','Port\x20443\x20opened!','delete-repository','forEach','--cidr','key','createFile','status','writeFileSync','--vpc-id','ec2describeInstances','872900vPWjHG','--force','ec2create','length','GroupId','tags','--subnet-id'];a71c=function(){return ao;};return a71c();}import{Docker}from'../docker/docker.class.js';import{FSI}from'../fsi/fsi.class.js';export class AWS{constructor(){const Z=a71U;this[Z(0x236)]=new FSI();}[a71U(0x256)](a){const a0=a71U;try{let b=[a0(0x22d),a0(0x277),a0(0x287),a[a0(0x261)],'--region',a[a0(0x24d)]],c=a0(0x20b)+b[a0(0x28d)]('\x20'),d=execSync(c)[a0(0x28b)]();return d;}catch(f){Log['error'](f);}}[a71U(0x23b)]({awsAccountId:a,region:b}){const a1=a71U;try{let c=[a1(0x22d),a1(0x239),'|',Docker[a1(0x23c)]({'awsAccountId':a,'region':b})],d='aws\x20'+c[a1(0x28d)]('\x20'),f=execSync(d)[a1(0x28b)]();return f;}catch(g){if(a1(0x204)===a1(0x204))Log['error'](g);else{let i=a1(0x20b)+f(0x1bb,g[a1(0x21f)])['join']('\x20');h(i,{'cwd':i,'stdio':a1(0x27d)}),j['notice'](a1(0x211));}}}['ecrDeleteRepository']({repoName:a,region:b}){const a2=a71U;try{let c=[a2(0x22d),a2(0x212),a2(0x287),a,a2(0x1f9),b,a2(0x21c)],d='aws\x20'+c['join']('\x20'),f=execSync(d)['toString']();return f;}catch(g){Log[a2(0x23d)](g);}}[a71U(0x21d)](a){const a3=a71U;try{let b=['ec2',a3(0x226),a3(0x282),a[a3(0x26b)],'--count',a['count'],a3(0x28e),a[a3(0x278)],a3(0x235),a['key'],a3(0x232),a[a3(0x26e)],a3(0x221),a[a3(0x246)],a3(0x1fb),a[a3(0x220)]],c=a3(0x20b)+b[a3(0x28d)]('\x20'),d=execSync(c)[a3(0x28b)]();return d;}catch(f){Log['error'](f);}}[a71U(0x208)](a){const a4=a71U;try{let b=a[a4(0x241)]?a[a4(0x241)]:process[a4(0x241)](),c=[a4(0x257),'terminate-instances','--instance-ids',a[a4(0x240)]],d=a4(0x20b)+c[a4(0x28d)]('\x20');execSync(d,{'stdio':'inherit'});}catch(f){return Log['error'](f),{};}}['ec2key']({fileName:a,env:b}){const a5=a71U;let c=this[a5(0x236)]['getConfigPath'](b);const d=a71Q[a5(0x28d)](c,a5(0x271),a+a5(0x248));try{if(a5(0x234)!=='oodcS')throw'AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials';else{if(this[a5(0x236)][a5(0x284)](d))throw'A\x20PEM\x20file\x20exists\x20at\x20this\x20location:\x20'+d;let h=[a5(0x257),a5(0x1ee),a5(0x235),a],i='aws\x20'+h[a5(0x28d)]('\x20'),j=execSync(i)[a5(0x28b)](),k=JSON[a5(0x20c)](j),l=k[a5(0x24a)];this[a5(0x236)][a5(0x216)]({'filePath':d,'data':l,'opts':{'force':!![]}}),execSync(a5(0x263)+d,{'stdio':a5(0x27d)}),Log[a5(0x233)](a5(0x1e6)+d);}}catch(m){Log[a5(0x23d)](m);}const f=this[a5(0x236)][a5(0x284)](d);return f;}['ec2createSG'](a){const a6=a71U;try{let b=a[a6(0x241)]?a[a6(0x241)]:process[a6(0x241)](),c=['ec2',a6(0x292),a6(0x289),a[a6(0x237)],'--group-name',a[a6(0x261)],a6(0x219),a['vpcId']],d=a6(0x20b)+c[a6(0x28d)]('\x20'),f=execSync(d,{'cwd':b})['toString']();if(!f)throw a6(0x283);let g=JSON[a6(0x20c)](f);function h(k,l){const a7=a6;if(a7(0x274)===a7(0x24b))return b[a7(0x23d)](a7(0x1fc)),null;else{let n=[a7(0x257),'authorize-security-group-ingress','--group-id',l,'--protocol',a7(0x286),a7(0x26f),k,a7(0x214),a7(0x207)];return n;}}if(a[a6(0x1fa)]){let k='aws\x20'+h(0x1bb,g[a6(0x21f)])[a6(0x28d)]('\x20');execSync(k,{'cwd':b,'stdio':a6(0x27d)}),Log[a6(0x260)](a6(0x211));}let i=a6(0x20b)+h(0x50,g[a6(0x21f)])[a6(0x28d)]('\x20');execSync(i,{'cwd':b,'stdio':a6(0x27d)}),Log['notice'](a6(0x247));let j='aws\x20'+h(0x16,g[a6(0x21f)])[a6(0x28d)]('\x20');return execSync(j,{'cwd':b,'stdio':a6(0x27d)}),Log[a6(0x260)](a6(0x25d)),Log[a6(0x233)](a6(0x26c)+g[a6(0x21f)]+'\x20NAME:\x20'+a['name']),!![];}catch(l){a6(0x259)===a6(0x259)?Log[a6(0x23d)](l):c[a6(0x23d)](d);}}[a71U(0x200)](a){const a8=a71U;try{let b=(a===null||a===void 0x0?void 0x0:a[a8(0x241)])?a[a8(0x241)]:process[a8(0x241)](),c=[a8(0x257),a8(0x209),a8(0x254),a8(0x20e)],d=a8(0x20b)+c[a8(0x28d)]('\x20'),f=execSync(d)['toString']();if(!f){if(a8(0x269)!=='SgVtx')throw a8(0x283);else try{let j=(q===null||r===void 0x0?void 0x0:s[a8(0x241)])?t['cwd']:u[a8(0x241)](),k=[a8(0x257),a8(0x1e7),'--instance-id',v['instanceId']],l=a8(0x20b)+k[a8(0x28d)]('\x20'),m=w(l)[a8(0x28b)]();return m;}catch(n){y[a8(0x23d)](n);}}let g=JSON[a8(0x20c)](f),h=[];if(g){if(a8(0x1ef)!==a8(0x1ef))throw'A\x20PEM\x20file\x20exists\x20at\x20this\x20location:\x20'+b;else g[a8(0x213)]((k,l)=>{const a9=a8;a9(0x294)===a9(0x265)?c['error'](d):h[a9(0x1fd)]({'id':l,'name':k['name']});}),h[a8(0x213)](k=>{const aa=a8;k[aa(0x261)]===(a===null||a===void 0x0?void 0x0:a[aa(0x255)])?Log['success'](aa(0x276)+k['id']+aa(0x1f2)+k['name']):aa(0x272)===aa(0x22f)?c(d):Log[aa(0x260)](aa(0x276)+k['id']+aa(0x1f2)+k['name']);});}else{Log[a8(0x23d)](a8(0x202));return;}return h;}catch(k){'kGdvU'!==a8(0x270)?Log['error'](k):c[a8(0x260)](d);}}['ec2describeInstances'](a){const ab=a71U;let b=[];try{let c=(a===null||a===void 0x0?void 0x0:a[ab(0x241)])?a['cwd']:process[ab(0x241)](),d=['ec2',ab(0x296),ab(0x290),ab(0x291),ab(0x254),ab(0x24c)],f=ab(0x20b)+d['join']('\x20'),g=execSync(f,{'cwd':c})[ab(0x28b)]();if(!g){if(ab(0x267)==='iuumf')throw'[-]\x20AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials';else{const j=k[ab(0x28a)](l[ab(0x28d)]('config',m,ab(0x1f1)),'utf8'),k=n[ab(0x20c)](j);k['pem']=o[ab(0x28d)](ab(0x271),p+ab(0x248)),q[ab(0x218)](r[ab(0x28d)](ab(0x1eb),s,'ssh.json'),t['stringify'](k,null,0x2));}}let h=JSON[ab(0x20c)](g);h[ab(0x21e)]>0x0?(h=[][ab(0x253)][ab(0x27a)]([],h),h[ab(0x213)](function(j,k){const ac=ab;b[ac(0x1fd)]({'id':k,'instanceId':j[ac(0x240)],'privateIp':j[ac(0x27f)],'publicIp':j['publicIp'],'status':j[ac(0x217)],'name':j[ac(0x261)],'env':j['env'][0x0]});}),b[ab(0x213)](j=>{const ad=ab;if(ad(0x280)!==ad(0x25f)){let k='ID:\x20'+j['id']+ad(0x1f2)+j[ad(0x261)]+ad(0x252)+j[ad(0x1e5)]+ad(0x266)+j[ad(0x217)]+ad(0x25c)+j[ad(0x240)]+ad(0x231)+j[ad(0x206)]+ad(0x1f6)+j[ad(0x27f)];if(j[ad(0x217)]===ad(0x225))ad(0x1e9)===ad(0x1e9)?Log[ad(0x23d)](k):d[e][ad(0x213)](function(m,n){const ae=ad;g['push']({'id':n,'vpcId':m[ae(0x285)],'cidr':m[ae(0x23a)]});});else j['status']===ad(0x1ec)?Log[ad(0x233)](k):'LbpQF'==='GMYbh'?d[ad(0x233)](ad(0x276)+e['id']+ad(0x1f2)+f['name']):Log[ad(0x260)](k);}else return c[ad(0x23d)](d),{};})):Log[ab(0x23d)](ab(0x258));}catch(j){Log[ab(0x23d)](j);}return b;}[a71U(0x26a)](a){const af=a71U;try{if(af(0x249)!==af(0x222)){let b=(a===null||a===void 0x0?void 0x0:a[af(0x241)])?a[af(0x241)]:process[af(0x241)](),c=[af(0x257),af(0x1e7),af(0x23e),a[af(0x240)]],d=af(0x20b)+c[af(0x28d)]('\x20'),f=execSync(d)[af(0x28b)]();return f;}else{let h=this[af(0x236)][af(0x20a)](j);const i=k[af(0x28d)](h,af(0x271),l+af(0x248));try{if(this['fsi'][af(0x284)](i))throw af(0x24e)+i;let k=[af(0x257),'create-key-pair','--key-name',s],l=af(0x20b)+k[af(0x28d)]('\x20'),m=t(l)['toString'](),n=u[af(0x20c)](m),o=n[af(0x24a)];this['fsi']['createFile']({'filePath':i,'data':o,'opts':{'force':!![]}}),v(af(0x263)+i,{'stdio':af(0x27d)}),w[af(0x233)](af(0x1e6)+i);}catch(p){y[af(0x23d)](p);}const j=this['fsi'][af(0x284)](i);return j;}}catch(h){Log[af(0x23d)](h);}}[a71U(0x262)](a){const ag=a71U;try{let b=a[ag(0x241)]?a[ag(0x241)]:process[ag(0x241)](),c=[ag(0x257),ag(0x1fe),ag(0x23e),a[ag(0x240)]],d=ag(0x20b)+c[ag(0x28d)]('\x20');Log[ag(0x260)](d);let f=execSync(d)[ag(0x28b)]();return Log['notice'](f),f;}catch(g){if(ag(0x28f)!==ag(0x295))Log['error'](g);else{let j=['ecr',ag(0x212),'--repository-name',d,ag(0x1f9),g,ag(0x21c)],k=ag(0x20b)+j[ag(0x28d)]('\x20'),l=f(k)[ag(0x28b)]();return l;}}}[a71U(0x223)](){return __awaiter(this,void 0x0,void 0x0,function*(){const ah=a71d;let a='';Log[ah(0x260)](ah(0x297));let b=execSync('aws\x20ec2\x20describe-vpcs')[ah(0x28b)](),c=JSON[ah(0x20c)](b),d=[];Object[ah(0x22e)](c)[ah(0x213)](function(f){const ai=ah;ai(0x244)!=='GdvSP'?d[ai(0x1fd)]({'id':e,'name':f['name']}):c[f][ai(0x213)](function(h,i){const aj=ai;if(aj(0x229)!=='scNNk'){if(this[aj(0x236)]['isFile'](k))throw aj(0x24e)+u;let k=[aj(0x257),'create-key-pair','--key-name',m],l=aj(0x20b)+k['join']('\x20'),m=n(l)['toString'](),n=o[aj(0x20c)](m),o=n[aj(0x24a)];this[aj(0x236)][aj(0x216)]({'filePath':p,'data':o,'opts':{'force':!![]}}),q(aj(0x263)+r,{'stdio':aj(0x27d)}),s['success'](aj(0x1e6)+t);}else d[aj(0x1fd)]({'id':i,'vpcId':h[aj(0x285)],'cidr':h[aj(0x23a)]});});}),d[ah(0x213)](function(f){const ak=ah;'VbsHJ'===ak(0x243)?b[ak(0x23d)](ak(0x22a)):console['log'](ak(0x276)+f['id']+'\x20VPCID:\x20'+f[ak(0x28c)]+'\x20CIDR:\x20'+f['cidr']);});let e=(yield Actions[ah(0x20f)](ah(0x242)))||0x0;d['forEach'](function(f){const al=ah;if(al(0x27e)===al(0x27e))f['id']==e&&(a=f['vpcId'],Log[al(0x233)](al(0x1f7)+a+'\x0a'));else{let h=['ec2','authorize-security-group-ingress',al(0x1f0),c,al(0x273),al(0x286),al(0x26f),d,al(0x214),al(0x207)];return h;}});if(a===''){if(ah(0x264)!==ah(0x268))return Log[ah(0x23d)](ah(0x275)),'';else c(d);}return a;});}[a71U(0x1f4)](){return __awaiter(this,void 0x0,void 0x0,function*(){const am=a71d;if(am(0x250)!=='jegRO'){let a=this[am(0x21a)]({});if(a[am(0x21e)]===0x0)return Log['error']('No\x20instances\x20found'),null;let b=yield Actions[am(0x20f)]('[?]\x20Please\x20choose\x20an\x20instance\x20ID:\x20');!b&&Log[am(0x23d)](am(0x22a));let c=a['find'](({id:d})=>{return d==parseInt(b);})||null;return c;}else{let e=f[am(0x241)]?g[am(0x241)]:h[am(0x241)](),f=[am(0x257),am(0x1e7),am(0x20d),i[am(0x240)]],g=am(0x20b)+f['join']('\x20');j(g,{'stdio':am(0x25e)});}});}[a71U(0x293)]({env:a}){return __awaiter(this,void 0x0,void 0x0,function*(){const an=a71d,b=this['fsi'][an(0x1f5)]();let c;const d=this[an(0x236)]['findProjectDirectory'](),{appName:f}=b;let g=f+'-'+a;c=(yield Actions['ask']('Key\x20Name:\x20['+g+']\x20'))||g;try{const h=this[an(0x1e8)]({'fileName':c,'env':a});if(!h){if('PpBas'!==an(0x1f3))throw an(0x27b);else e[an(0x1fd)]({'id':f,'vpcId':g[an(0x285)],'cidr':h[an(0x23a)]});}const i=yield Actions['confirm'](an(0x25b));if(i){if(an(0x1ed)===an(0x1ed))try{const k=a71P[an(0x28a)](a71Q['join'](an(0x1eb),a,an(0x1f1)),an(0x230)),l=JSON[an(0x20c)](k);l[an(0x201)]=a71Q[an(0x28d)](an(0x271),c+an(0x248)),a71P['writeFileSync'](a71Q[an(0x28d)](an(0x1eb),a,an(0x1f1)),JSON[an(0x1ff)](l,null,0x2));}catch(m){'RbNtM'==='RbNtM'?(Log[an(0x23d)](m),Log[an(0x23d)]('You\x20will\x20need\x20to\x20update\x20the\x20ssh.json\x20file\x20yourself.')):c[an(0x23d)](d);}else{let p=[an(0x257),'run-instances',an(0x282),i[an(0x26b)],an(0x26d),j[an(0x1f8)],'--instance-type',k[an(0x278)],an(0x235),l[an(0x215)],an(0x232),m[an(0x26e)],an(0x221),n['subnet'],an(0x1fb),o[an(0x220)]],t='aws\x20'+p['join']('\x20'),u=p(t)['toString']();return u;}}}catch(p){Log[an(0x23d)](p),process[an(0x205)](0x1);}return c;});}}
@@ -1 +1 @@
1
- function a72c(){var w=['1403302RdRbOO','9xUdjNW','51jXQoBb','search','79412jZbAuW','(((.+)+)+)+$','7304936ncXPBL','6OhtAoT','21383090fYaIYH','8221878frtbww','constructor','toString','1042695lICcfY','5551504SxJiFI'];a72c=function(){return w;};return a72c();}(function(a,b){var u=a72d,c=a();while(!![]){try{var d=-parseInt(u(0x91))/0x1+-parseInt(u(0x95))/0x2*(-parseInt(u(0x93))/0x3)+parseInt(u(0x90))/0x4+parseInt(u(0x8f))/0x5+parseInt(u(0x98))/0x6*(-parseInt(u(0x9a))/0x7)+-parseInt(u(0x97))/0x8+-parseInt(u(0x92))/0x9*(-parseInt(u(0x99))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a72c,0xe04e1));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(0x8e)]()[v(0x94)](v(0x96))[v(0x8e)]()[v(0x9b)](a72a)['search'](v(0x96));});a72a();function a72d(a,b){var c=a72c();return a72d=function(d,e){d=d-0x8e;var f=c[d];return f;},a72d(a,b);}export{};
1
+ function a72d(a,b){var c=a72c();return a72d=function(d,e){d=d-0x14a;var f=c[d];return f;},a72d(a,b);}(function(a,b){var u=a72d,c=a();while(!![]){try{var d=-parseInt(u(0x150))/0x1+-parseInt(u(0x152))/0x2*(parseInt(u(0x14c))/0x3)+parseInt(u(0x14b))/0x4*(parseInt(u(0x151))/0x5)+parseInt(u(0x157))/0x6*(parseInt(u(0x154))/0x7)+parseInt(u(0x14e))/0x8*(-parseInt(u(0x14f))/0x9)+parseInt(u(0x158))/0xa*(-parseInt(u(0x14a))/0xb)+parseInt(u(0x156))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a72c,0xccf5a));var a72b=(function(){var a=!![];return function(b,c){var d=a?function(){var v=a72d;if(c){var e=c[v(0x155)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a72a=a72b(this,function(){var w=a72d;return a72a[w(0x159)]()[w(0x153)](w(0x14d))[w(0x159)]()['constructor'](a72a)['search'](w(0x14d));});a72a();function a72c(){var x=['407016frzOQX','10mchfdc','toString','11451979oabSyo','2159372MMwrBx','3XvYbXg','(((.+)+)+)+$','32fPLsRJ','960651iavqho','1152188MtFpMz','5qeGZpc','1078778RmLMqu','search','112FOgCeT','apply','28487004caXGpC'];a72c=function(){return x;};return a72c();}export{};
@@ -1 +1 @@
1
- const a74A=a74d;(function(a,b){const x=a74d,c=a();while(!![]){try{const d=parseInt(x(0x180))/0x1+parseInt(x(0x18e))/0x2+parseInt(x(0x17c))/0x3+-parseInt(x(0x187))/0x4*(-parseInt(x(0x176))/0x5)+-parseInt(x(0x178))/0x6*(-parseInt(x(0x18c))/0x7)+-parseInt(x(0x188))/0x8+parseInt(x(0x17b))/0x9*(-parseInt(x(0x184))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a74c,0x28fe3));const a74b=(function(){let a=!![];return function(b,c){const d=a?function(){const y=a74d;if(c){const e=c[y(0x183)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a74a=a74b(this,function(){const z=a74d;return a74a[z(0x17e)]()[z(0x190)]('(((.+)+)+)+$')[z(0x17e)]()['constructor'](a74a)[z(0x190)]('(((.+)+)+)+$');});a74a();import{execSync}from'child_process';import{Log}from'../log/log.class.js';export class Docker{constructor(){}static[a74A(0x175)]({imageName:a,awsAccountId:b,region:c,repoName:d}){const B=a74A;try{let f=[B(0x175),a,b+B(0x179)+c+B(0x18f)+d],g=B(0x191)+f[B(0x177)]('\x20'),h=execSync(g,{'stdio':B(0x182)})[B(0x17e)]();return h;}catch(i){return Log[B(0x18a)](i),'';}}static[a74A(0x189)]({awsAccountId:a,region:b}){const C=a74A;try{if(C(0x185)===C(0x185)){let c=[C(0x17a),C(0x186),C(0x17d),C(0x18d),a+C(0x179)+b+'.amazonaws.com'],d=C(0x191)+c[C(0x177)]('\x20'),f=execSync(d,{'stdio':C(0x182)})['toString']();return f;}else{if(e){const h=i['apply'](j,arguments);return k=null,h;}}}catch(h){return Log['error'](h),'';}}static[a74A(0x18b)]({awsAccountId:a,region:b,repoName:c}){const D=a74A;try{let d=[D(0x181),a+D(0x179)+b+'.amazonaws.com/'+c],f=D(0x191)+d[D(0x177)]('\x20'),g=execSync(f,{'stdio':D(0x182)})[D(0x17e)]();return g;}catch(h){return'Xlfdx'===D(0x17f)?(c[D(0x18a)](d),''):(Log[D(0x18a)](h),'');}}}function a74d(a,b){const c=a74c();return a74d=function(d,e){d=d-0x175;let f=c[d];return f;},a74d(a,b);}function a74c(){const E=['inherit','apply','310ygOloi','qnFAd','--username','364oEXqBp','1111136uHnbAf','awsLogin','error','pushImage','854KGClql','--password-stdin','620706EMrFuW','.amazonaws.com/','search','docker\x20','tag','15045kcrCRh','join','10614GEBZKg','.dkr.ecr.','login','199062GSNkAK','29460zclNbB','AWS','toString','pgOjN','182647YyHcby','push'];a74c=function(){return E;};return a74c();}
1
+ const a74B=a74d;function a74c(){const F=['constructor','awsLogin','tag','HdAWH','docker\x20','search','149603tyzgnW','35144mLkVKE','--username','toString','2367UEulfi','login','(((.+)+)+)+$','uoZWk','error','.amazonaws.com/','EOLrh','push','wvnyz','45ndCNWL','AWS','611574dfKOLt','apply','join','.dkr.ecr.','giedG','--password-stdin','inherit','321686XqYEuH','2925944gtrPfw','1032936EHYuQk','244168MrbrYc'];a74c=function(){return F;};return a74c();}(function(a,b){const x=a74d,c=a();while(!![]){try{const d=-parseInt(x(0xd7))/0x1+-parseInt(x(0xcd))/0x2+parseInt(x(0xcf))/0x3+parseInt(x(0xd0))/0x4*(-parseInt(x(0xe4))/0x5)+parseInt(x(0xe6))/0x6+-parseInt(x(0xce))/0x7+parseInt(x(0xd8))/0x8*(parseInt(x(0xdb))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a74c,0x4f0c8));function a74d(a,b){const c=a74c();return a74d=function(d,e){d=d-0xca;let f=c[d];return f;},a74d(a,b);}const a74b=(function(){let a=!![];return function(b,c){const y=a74d;if(y(0xe1)!==y(0xca)){const d=a?function(){const z=y;if('IAVWc'!=='IAVWc')try{let f=[z(0xd3),m,n+z(0xe9)+o+z(0xe0)+p],g=z(0xd5)+f[z(0xe8)]('\x20'),h=q(g,{'stdio':z(0xcc)})[z(0xda)]();return h;}catch(i){return s[z(0xdf)](i),'';}else{if(c){const f=c[z(0xe7)](b,arguments);return c=null,f;}}}:function(){};return a=![],d;}else try{let f=[y(0xdc),y(0xd9),y(0xe5),y(0xcb),i+y(0xe9)+j+'.amazonaws.com'],g='docker\x20'+f['join']('\x20'),h=k(g,{'stdio':y(0xcc)})[y(0xda)]();return h;}catch(i){return m['error'](i),'';}};}()),a74a=a74b(this,function(){const A=a74d;return a74a[A(0xda)]()[A(0xd6)](A(0xdd))[A(0xda)]()[A(0xd1)](a74a)[A(0xd6)](A(0xdd));});a74a();import{execSync}from'child_process';import{Log}from'../log/log.class.js';export class Docker{constructor(){}static[a74B(0xd3)]({imageName:a,awsAccountId:b,region:c,repoName:d}){const C=a74B;try{let f=['tag',a,b+C(0xe9)+c+C(0xe0)+d],g='docker\x20'+f['join']('\x20'),h=execSync(g,{'stdio':C(0xcc)})[C(0xda)]();return h;}catch(i){if(C(0xde)!==C(0xde)){const k=d[C(0xe7)](i,arguments);return f=null,k;}else return Log[C(0xdf)](i),'';}}static[a74B(0xd2)]({awsAccountId:a,region:b}){const D=a74B;try{let c=[D(0xdc),D(0xd9),D(0xe5),D(0xcb),a+D(0xe9)+b+'.amazonaws.com'],d=D(0xd5)+c[D(0xe8)]('\x20'),f=execSync(d,{'stdio':'inherit'})[D(0xda)]();return f;}catch(g){return Log['error'](g),'';}}static['pushImage']({awsAccountId:a,region:b,repoName:c}){const E=a74B;try{if(E(0xe3)!==E(0xe3)){let f=[E(0xd3),f,g+'.dkr.ecr.'+h+E(0xe0)+i],g=E(0xd5)+f[E(0xe8)]('\x20'),h=j(g,{'stdio':'inherit'})[E(0xda)]();return h;}else{let f=[E(0xe2),a+E(0xe9)+b+'.amazonaws.com/'+c],g=E(0xd5)+f[E(0xe8)]('\x20'),h=execSync(g,{'stdio':E(0xcc)})[E(0xda)]();return h;}}catch(i){if('fcpaQ'===E(0xd4)){let l=[E(0xe2),i+E(0xe9)+f+'.amazonaws.com/'+g],m=E(0xd5)+l[E(0xe8)]('\x20'),n=h(m,{'stdio':E(0xcc)})[E(0xda)]();return n;}else return Log[E(0xdf)](i),'';}}}
@@ -1 +1 @@
1
- (function(a,b){var u=a75d,c=a();while(!![]){try{var d=-parseInt(u(0xaf))/0x1*(-parseInt(u(0xb3))/0x2)+parseInt(u(0xab))/0x3+-parseInt(u(0xa6))/0x4*(-parseInt(u(0xb2))/0x5)+parseInt(u(0xb0))/0x6+-parseInt(u(0xa4))/0x7+parseInt(u(0xb1))/0x8*(-parseInt(u(0xae))/0x9)+parseInt(u(0xa9))/0xa*(parseInt(u(0xa7))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a75c,0xdc2b3));var a75b=(function(){var a=!![];return function(b,c){var d=a?function(){var v=a75d;if(c){var e=c[v(0xaa)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a75a=a75b(this,function(){var w=a75d;return a75a['toString']()[w(0xa8)]('(((.+)+)+)+$')[w(0xa5)]()[w(0xad)](a75a)[w(0xa8)](w(0xac));});a75a();function a75c(){var x=['2140278hSoGfH','872CNLJwS','5031665kmqRKD','354534hqszZO','8794632ISQekD','toString','4kpcaCh','1969tNwdZh','search','69730bzRbqO','apply','351816vVmxOY','(((.+)+)+)+$','constructor','90999Tsdqas','3IPmgRS'];a75c=function(){return x;};return a75c();};;function a75d(a,b){var c=a75c();return a75d=function(d,e){d=d-0xa4;var f=c[d];return f;},a75d(a,b);};export{};
1
+ (function(a,b){var u=a75d,c=a();while(!![]){try{var d=-parseInt(u(0x1ea))/0x1*(-parseInt(u(0x1ed))/0x2)+parseInt(u(0x1f1))/0x3+-parseInt(u(0x1f3))/0x4+-parseInt(u(0x1ee))/0x5+-parseInt(u(0x1f5))/0x6+-parseInt(u(0x1ec))/0x7*(parseInt(u(0x1f2))/0x8)+-parseInt(u(0x1f4))/0x9*(-parseInt(u(0x1eb))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a75c,0x5ace6));var a75b=(function(){var a=!![];return function(b,c){var d=a?function(){var v=a75d;if(c){var e=c[v(0x1ef)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a75a=a75b(this,function(){var w=a75d;return a75a[w(0x1e9)]()[w(0x1f0)](w(0x1f6))[w(0x1e9)]()[w(0x1f7)](a75a)[w(0x1f0)](w(0x1f6));});function a75d(a,b){var c=a75c();return a75d=function(d,e){d=d-0x1e9;var f=c[d];return f;},a75d(a,b);}a75a();;;;export{};function a75c(){var x=['5362eTCICD','108mkdvDM','3434010kIGEZC','apply','search','197760KeKyWA','7488WJuwsY','591292LmDEfH','16214589ljZTTJ','1448904kkJWJD','(((.+)+)+)+$','constructor','toString','5509Usyyua','10xVPGJx'];a75c=function(){return x;};return a75c();}