@maka/maka-cli 4.9.15 → 4.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (163) hide show
  1. package/bundle/obf/package.json +1 -1
  2. package/bundle/obf/src/command.js +1 -1
  3. package/bundle/obf/src/commands/_index.js +1 -1
  4. package/bundle/obf/src/commands/ai.js +1 -1
  5. package/bundle/obf/src/commands/aws/_index.js +1 -1
  6. package/bundle/obf/src/commands/aws/aws.command.js +1 -1
  7. package/bundle/obf/src/commands/aws/chz.sub.cmd.js +1 -1
  8. package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
  9. package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
  10. package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
  11. package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
  12. package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
  13. package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
  14. package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
  15. package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
  16. package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
  17. package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
  18. package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
  19. package/bundle/obf/src/commands/build/_index.js +1 -1
  20. package/bundle/obf/src/commands/build/build.js +1 -1
  21. package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
  22. package/bundle/obf/src/commands/create.js +1 -1
  23. package/bundle/obf/src/commands/debug.js +1 -1
  24. package/bundle/obf/src/commands/deploy/_index.js +1 -1
  25. package/bundle/obf/src/commands/deploy/deploy.command.js +1 -1
  26. package/bundle/obf/src/commands/deploy/galaxy.sub.cmd.js +1 -1
  27. package/bundle/obf/src/commands/deploy/ubuntu.sub.cmd.js +1 -1
  28. package/bundle/obf/src/commands/game/_index.js +1 -1
  29. package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
  30. package/bundle/obf/src/commands/game/play.command.js +1 -1
  31. package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
  32. package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
  33. package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
  34. package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
  35. package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
  36. package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
  37. package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
  38. package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
  39. package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
  40. package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
  41. package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
  42. package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
  43. package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
  44. package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
  45. package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
  46. package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
  47. package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
  48. package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
  49. package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
  50. package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
  51. package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
  52. package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
  53. package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
  54. package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
  55. package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
  56. package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
  57. package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
  58. package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
  59. package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
  60. package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
  61. package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
  62. package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
  63. package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
  64. package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
  65. package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
  66. package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
  67. package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
  68. package/bundle/obf/src/commands/generate.js +1 -1
  69. package/bundle/obf/src/commands/get/_index.js +1 -1
  70. package/bundle/obf/src/commands/get/get.command.js +1 -1
  71. package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
  72. package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
  73. package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
  74. package/bundle/obf/src/commands/help.js +1 -1
  75. package/bundle/obf/src/commands/install.js +1 -1
  76. package/bundle/obf/src/commands/jsdoc.js +1 -1
  77. package/bundle/obf/src/commands/lint.js +1 -1
  78. package/bundle/obf/src/commands/login.js +1 -1
  79. package/bundle/obf/src/commands/logout.js +1 -1
  80. package/bundle/obf/src/commands/logs.js +1 -1
  81. package/bundle/obf/src/commands/maka.cmd.js +1 -1
  82. package/bundle/obf/src/commands/murder.js +1 -1
  83. package/bundle/obf/src/commands/patreon.js +1 -1
  84. package/bundle/obf/src/commands/proxy.js +1 -1
  85. package/bundle/obf/src/commands/reconfig.js +1 -1
  86. package/bundle/obf/src/commands/register.js +1 -1
  87. package/bundle/obf/src/commands/run/_index.js +1 -1
  88. package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
  89. package/bundle/obf/src/commands/run/run.command.js +1 -1
  90. package/bundle/obf/src/commands/set/_index.js +1 -1
  91. package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
  92. package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
  93. package/bundle/obf/src/commands/set/set.command.js +1 -1
  94. package/bundle/obf/src/commands/ssh.js +1 -1
  95. package/bundle/obf/src/commands/ssl.js +1 -1
  96. package/bundle/obf/src/commands/test.js +1 -1
  97. package/bundle/obf/src/commands/undo.js +1 -1
  98. package/bundle/obf/src/commands/version.js +1 -1
  99. package/bundle/obf/src/error.js +1 -1
  100. package/bundle/obf/src/exec.js +1 -1
  101. package/bundle/obf/src/generator.js +1 -1
  102. package/bundle/obf/src/generators/_index.js +1 -1
  103. package/bundle/obf/src/generators/api.js +1 -1
  104. package/bundle/obf/src/generators/collection.js +1 -1
  105. package/bundle/obf/src/generators/component.js +1 -1
  106. package/bundle/obf/src/generators/config.js +1 -1
  107. package/bundle/obf/src/generators/dbc.js +1 -1
  108. package/bundle/obf/src/generators/dockerfile.js +1 -1
  109. package/bundle/obf/src/generators/hook.js +1 -1
  110. package/bundle/obf/src/generators/kits/_index.js +1 -1
  111. package/bundle/obf/src/generators/kits/esri/_index.js +1 -1
  112. package/bundle/obf/src/generators/kits/esri/esri.generator.js +1 -1
  113. package/bundle/obf/src/generators/kits/esri/map.esri.gen.js +1 -1
  114. package/bundle/obf/src/generators/kits/kit.js +1 -1
  115. package/bundle/obf/src/generators/kits/mui/_index.js +1 -1
  116. package/bundle/obf/src/generators/kits/mui/frame.mui.gen.js +1 -1
  117. package/bundle/obf/src/generators/kits/mui/mui.generator.js +1 -1
  118. package/bundle/obf/src/generators/layout.js +1 -1
  119. package/bundle/obf/src/generators/maka.gen.js +1 -1
  120. package/bundle/obf/src/generators/methods.js +1 -1
  121. package/bundle/obf/src/generators/package.js +1 -1
  122. package/bundle/obf/src/generators/page.js +1 -1
  123. package/bundle/obf/src/generators/publish.js +1 -1
  124. package/bundle/obf/src/generators/route.js +1 -1
  125. package/bundle/obf/src/generators/service.js +1 -1
  126. package/bundle/obf/src/generators/services/_index.js +1 -1
  127. package/bundle/obf/src/generators/services/openssl.js +1 -1
  128. package/bundle/obf/src/generators/services/translation.js +1 -1
  129. package/bundle/obf/src/maka.js +1 -1
  130. package/bundle/obf/src/templates/meteor/api/api.js +1 -1
  131. package/bundle/obf/src/templates/meteor/api/api.js.ts +1 -1
  132. package/bundle/obf/src/templates/meteor/api/methods.js +1 -1
  133. package/bundle/obf/src/templates/meteor/api/methods.js.ts +1 -1
  134. package/bundle/obf/src/templates/meteor/api/tests.js +0 -1
  135. package/bundle/obf/src/templates/meteor/api/tests.js.ts +0 -1
  136. package/bundle/obf/src/templates/meteor/app/imports/startup/client/index.js.jsx +2 -7
  137. package/bundle/obf/src/templates/meteor/app/imports/startup/client/index.js.tsx +2 -7
  138. package/bundle/obf/src/templates/meteor/app/imports/startup/server/index.js.jsx +4 -5
  139. package/bundle/obf/src/templates/meteor/app/imports/startup/server/index.js.tsx +4 -5
  140. package/bundle/obf/src/templates/react/component/component.js.jsx +2 -14
  141. package/bundle/obf/src/templates/react/component/component.js.tsx +2 -13
  142. package/bundle/obf/src/templates/react/hook/hook.js.jsx +2 -9
  143. package/bundle/obf/src/templates/react/hook/hook.js.tsx +2 -10
  144. package/bundle/obf/src/tool.js +1 -1
  145. package/bundle/obf/src/tools/actions/actions.class.js +1 -1
  146. package/bundle/obf/src/tools/aws/aws.class.js +1 -1
  147. package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
  148. package/bundle/obf/src/tools/docker/docker.class.js +1 -1
  149. package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
  150. package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
  151. package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
  152. package/bundle/obf/src/tools/https/https.class.js +1 -1
  153. package/bundle/obf/src/tools/https/https.interface.js +1 -1
  154. package/bundle/obf/src/tools/log/log.class.js +1 -1
  155. package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
  156. package/bundle/obf/src/tools/options/options.class.js +1 -1
  157. package/bundle/obf/src/tools/progress/progress.class.js +1 -1
  158. package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
  159. package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
  160. package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
  161. package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
  162. package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
  163. package/package.json +1 -1
@@ -1,3 +1,4 @@
1
+ import bodyParser from 'body-parser';
1
2
  import { Meteor } from 'meteor/meteor';
2
3
  import { WebAppInternals } from "meteor/webapp";
3
4
  Meteor.startup(() => {
@@ -6,7 +7,6 @@ Meteor.startup(() => {
6
7
  <% if (config.engines.graphql === 'apollo') { %>
7
8
  import { ApolloServer } from '@apollo/server';
8
9
  import { WebApp } from 'meteor/webapp';
9
- import { getUser } from 'meteor/apollo';
10
10
  import { mergeTypeDefs, mergeResolvers } from '@graphql-tools/merge';
11
11
  import {
12
12
  ApolloServerPluginLandingPageGraphQLPlayground
@@ -28,7 +28,7 @@ if (typeList.length > 0 && resolverList.length > 0) {
28
28
  },
29
29
  cache: 'bounded',
30
30
  formatError: (err) => {
31
- if (Meteor.isProduction === 'production') {
31
+ if (Meteor.isProduction) {
32
32
  // Don't give specific errors to the client
33
33
  sysLogger.error(err);
34
34
  err.message = err.extensions.code; // eslint-disable-line no-param-reassign
@@ -46,10 +46,9 @@ if (typeList.length > 0 && resolverList.length > 0) {
46
46
  await server.start();
47
47
  expressApp.use(
48
48
  '/graphql',
49
+ bodyParser.json({ limit: '50mb' }),
49
50
  expressMiddleware(server, {
50
- context: async ({ req }) => ({
51
- user: await getUser(req.headers.authorization) || await getUser(req.headers['x-auth-token']) || {},
52
- }),
51
+ context: async ({ req }) => ({ token: req.headers.authorization })
53
52
  }),
54
53
  );
55
54
  WebApp.connectHandlers.use(expressApp);
@@ -1,13 +1,7 @@
1
- import { compose } from 'ramda'; // https://ramdajs.com/docs/#compose
2
- import React, { Component } from 'react';
3
- // https://github.com/meteor/react-packages/tree/master/packages/react-meteor-data#withtrackerreactivefn-higher-order-component
4
- import { withTracker } from 'meteor/react-meteor-data';<% if(graphql === 'apollo') { %>
5
- import { gql } from '@apollo/client';
6
- // https://www.apollographql.com/docs/react/api/react/hoc/#graphqlquery-configcomponent
7
- import { graphql } from '@apollo/client/react/hoc';<% } %><% if (withTranslations) { %>
1
+ import React, { Component } from 'react';<% if (withTranslations) { %>
8
2
  import { withTranslation } from 'react-i18next';<% } %>
9
3
 
10
- class <%= className %>Component extends Component {
4
+ class <%= className %> extends Component {
11
5
  /**
12
6
  * Define types for your props for stability.
13
7
  */
@@ -54,10 +48,4 @@ class <%= className %>Component extends Component {
54
48
  }
55
49
  }
56
50
 
57
- const <%= className %> = compose(
58
- withTracker(() => {}),<% if(graphql === 'apollo') { %>
59
- //graphql(gql`query Todos { todos }`, { variables: {/* input */} }),<% } %><% if (withTranslations) { %>
60
- withTranslation(),<% } %>
61
- )(<%= className %>Component);
62
-
63
51
  export { <%= className %> };
@@ -1,17 +1,12 @@
1
1
  import { compose } from 'ramda'; // https://ramdajs.com/docs/#compose
2
- import * as React from 'react';
3
- import * as PropTypes from 'prop-types';// https://github.com/meteor/react-packages/tree/master/packages/react-meteor-data#withtrackerreactivefn-higher-order-component
4
- import { withTracker } from 'meteor/react-meteor-data';<% if(graphql === 'apollo') { %>
5
- import { gql } from '@apollo/client';
6
- // https://www.apollographql.com/docs/react/api/react/hoc/#graphqlquery-configcomponent
7
- import { graphql } from '@apollo/client/react/hoc';<% } %><% if (withTranslations) { %>
2
+ import * as React from 'react';<% if (withTranslations) { %>
8
3
  import { withTranslation } from 'react-i18next';<% } %>
9
4
 
10
5
  interface I<%= className %> {
11
6
  props: object;
12
7
  state: object;
13
8
  }
14
- class <%= className %>Component extends React.Component<I<%= className %>> {
9
+ class <%= className %> extends React.Component<I<%= className %>> {
15
10
  public state: object;
16
11
 
17
12
  /**
@@ -59,10 +54,4 @@ class <%= className %>Component extends React.Component<I<%= className %>> {
59
54
  }
60
55
  }
61
56
 
62
- const <%= className %> = compose(
63
- withTracker(() => {}),<% if(graphql === 'apollo') { %>
64
- //graphql(gql`query Todos { todos }`, { variables: {/* input */} }),<% } %><% if (withTranslations) { %>
65
- withTranslation(),<% } %>
66
- )(<%= className %>Component);
67
-
68
57
  export { <%= className %> };
@@ -1,16 +1,9 @@
1
- import React, { useState } from 'react';
2
- // https://github.com/meteor/react-packages/tree/master/packages/react-meteor-data#usetrackerreactivefn-deps-hook
3
- import { useTracker } from 'meteor/react-meteor-data';<% if(graphql === 'apollo') { %>
4
- // https://www.apollographql.com/docs/react/api/react/hooks/#example-2
5
- import { useQuery, gql } from '@apollo/client';<% } %><%if (withTranslations) { %>
1
+ import React, { useState } from 'react'<%if (withTranslations) { %>
6
2
  import { useTranslation } from 'react-i18next';<% } %>
7
3
 
8
4
 
9
5
  function <%= className %>(props) {
10
- /*const { userId } = useTracker(() => {
11
- const userId = Meteor.userId();
12
- return { userId }
13
- });*/<% if(graphql === 'apollo') { %>
6
+ <% if(graphql === 'apollo') { %>
14
7
  //const { loading, error, data } = useQuery(gql`query Todos { todos }`, { variables: {/* input */} }); <% } %><% if (withTranslations) { %>
15
8
  const { t } = useTranslation();<% } %>
16
9
 
@@ -1,16 +1,8 @@
1
- import * as React from 'react';
2
- // https://github.com/meteor/react-packages/tree/master/packages/react-meteor-data#usetrackerreactivefn-deps-hook
3
- import { useTracker } from 'meteor/react-meteor-data';<% if(graphql === 'apollo') { %>
4
- // https://www.apollographql.com/docs/react/api/react/hooks/#example-2
5
- import { useQuery, gql } from '@apollo/client';<% } %><%if (withTranslations) { %>
1
+ import * as React from 'react';<%if (withTranslations) { %>
6
2
  import { useTranslation } from 'react-i18next';<% } %>
7
3
 
8
4
  function <%= className %>(props) {
9
- /*const { userId } = useTracker(() => {
10
- const userId = Meteor.userId();
11
- return { userId }
12
- });*/<% if(graphql === 'apollo') { %>
13
- // const { loading, error, data } = useQuery(gql`query Todos { todos }`, { variables: {/* input */} }); <% } %><% if (withTranslations) { %>
5
+ <% if (withTranslations) { %>
14
6
  const { t } = useTranslation();<% } %>
15
7
 
16
8
  return (
@@ -1 +1 @@
1
- const a129L=a129d;(function(a,b){const I=a129d,c=a();while(!![]){try{const d=-parseInt(I(0x123))/0x1*(-parseInt(I(0x12e))/0x2)+parseInt(I(0x118))/0x3*(parseInt(I(0x10a))/0x4)+-parseInt(I(0x131))/0x5+parseInt(I(0x140))/0x6+parseInt(I(0x159))/0x7+-parseInt(I(0x154))/0x8*(parseInt(I(0x129))/0x9)+-parseInt(I(0x11a))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a129c,0x802dc));const a129b=(function(){let a=!![];return function(b,c){const d=a?function(){const J=a129d;if(c){const e=c[J(0x143)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a129a=a129b(this,function(){const K=a129d;return a129a[K(0x151)]()[K(0x14c)](K(0x13c))[K(0x151)]()[K(0x14e)](a129a)[K(0x14c)]('(((.+)+)+)+$');});function a129c(){const a4=['Invalid\x20option:\x20','indexOf','remapShortToLong','789wkjzcy','map','46630lcgEJK','find','name','shortDesc','aliases','engines','parent','length','guest','1166QFzBXs','validateMakaProject','options','docker','proCommands','proGenerators','9OIdcrP','examples','homedir','findProjectDirectory','getShortName','556pWyevz','Local','join','1895070IfcYan','Please\x20provide\x20a\x20resource\x20name:','isPro','fsi','.meteor','every','list','keys','win32','existsSync','isCommand','(((.+)+)+)+$','config','exit','\x20version\x20','2167746yBBrIx','charAt','singleLicense','apply','getPro','match','resourceName','string','Please\x20choose\x20an\x20environment','Please\x20provide\x20a\x20value\x20for\x20','No\x20usage\x20provided.','domainLicense','search','user','constructor','\x20installed\x20to\x20use\x20this\x20command.','root','toString','help','AppData','5460400oVjRnN','formatToNamedParam','usage','validateEngines','roles','3761415QjkABQ','platform','Invalid\x20value\x20for\x20','To\x20use\x20this\x20generator,\x20\x22','No\x20description\x20provided.','ask','env','Please\x20choose\x20a\x20valid\x20value\x20for\x20','Please\x20provide\x20a\x20valid\x20argument\x20for\x20','5604AiMxEu','includes','error','\x22,\x20please\x20upgrade\x20to\x20PRO\x20by\x20becoming\x20a\x20pateron\x20@\x20patreon.com/user?u=110174702,\x20then\x20issue:\x20\x27maka\x20login\x27','concat','assign','You\x20must\x20have\x20','NIE','disableAuthCheck','push','description'];a129c=function(){return a4;};return a129c();}a129a();import a129e from'path';import a129f from'os';import a129g from'fs';const homeDir=a129f[a129L(0x12b)]();import{Docker}from'./tools/docker/docker.class.js';import{FSI}from'./tools/fsi/fsi.class.js';import{Log}from'./tools/log/log.class.js';import{Actions}from'./tools/actions/actions.class.js';function a129d(a,b){const c=a129c();return a129d=function(d,e){d=d-0x102;let f=c[d];return f;},a129d(a,b);}import{UsageError}from'./error.js';export class Tool{['docker'];[a129L(0x134)];[a129L(0x125)];['name'];[a129L(0x120)];['_handler'];constructor(){const M=a129L;this[M(0x126)]=new Docker(),this[M(0x134)]=new FSI();}[a129L(0x12d)](a){const N=a129L;return a[N(0x141)](0x0);}[a129L(0x117)](a,b){const O=a129L,c=this[O(0x155)](b),d={...a};for(const e of c){const f=this['getShortName'](e[O(0x11c)]);a[f]&&(d[e[O(0x11c)]]=a[f],delete d[f]);}return d;}[a129L(0x155)](a){const P=a129L;if(a[P(0x136)](b=>typeof b===P(0x147)))return a[P(0x119)](b=>({'name':b}));return a;}['match'](a){const Q=a129L,b=[this[Q(0x11c)]][Q(0x10e)](this[Q(0x125)][Q(0x11e)]||[]);return this[Q(0x120)]&&b[Q(0x113)](this[Q(0x120)]),b[Q(0x10b)](a);}[a129L(0x124)](){const R=a129L,a=this[R(0x134)][R(0x12c)]();return a!==![]?!![]:![];}async['validateUserIsLoggedIn'](){const S=a129L,a=await this['fsi'][S(0x144)]();return a?.[S(0x14d)]&&a?.[S(0x14d)]!==S(0x122)?!![]:![];}['validateMeteorInstall'](){const T=a129L;let a=a129e[T(0x130)](homeDir,'.meteor');const b=process[T(0x102)]===T(0x139);if(b){a=a129e[T(0x130)](homeDir,T(0x153),T(0x12f),T(0x135));if(!a129g[T(0x13a)](a))return![];}else{if(!a129g['existsSync'](a))return![];}return!![];}[a129L(0x157)](a){const U=a129L,b=this['fsi']['getMakaProjectConfig'](),c=b[U(0x11f)],d=Object[U(0x138)](a);if(d[U(0x121)]>0x0)for(const e of d){const f=c[e];if(f!==a[e]){Log[U(0x10c)](U(0x110)+e+U(0x13f)+a[e]+U(0x14f));throw UsageError;}}}async['validateParams'](a,b,c){const V=a129L,{requiredOpts:d,validArgs:e,validOpts:f,noNeedResource:g}=c,h=Object[V(0x138)](b);if(h[V(0x10b)](V(0x146))&&b[V(0x146)]===undefined&&!g){const m=await Actions[V(0x106)](V(0x132));b[V(0x146)]=m;}let i=[],j=b;if(d){i=this[V(0x155)](d),j=this[V(0x117)](b,i);if(i&&i?.[V(0x121)]>0x0)for(const n of i){const {name:o,values:p,regex:q}=n;if(!Object[V(0x138)](j)['includes'](o)){if(o===V(0x107)){const r=this[V(0x134)]['getAppProjectConfigs'](),s=await Actions[V(0x125)]({'type':'list','name':V(0x107),'message':V(0x148),'choices':r});b[V(0x107)]=s['env'];}else{const t=p;if(t){const u=await Actions['options']({'type':'list','name':o,'message':'Please\x20choose\x20a\x20value\x20for\x20'+o,'choices':p});b[o]=u[o];}else{if(q){const v=await Actions[V(0x106)]('Please\x20provide\x20a\x20value\x20for\x20'+o);if(v[V(0x145)](q))b[o]=v;else{Log[V(0x10c)]('Invalid\x20value\x20for\x20'+o+':\x20'+v);throw new UsageError();}}else{const w=await Actions['ask'](V(0x149)+o);b[o]=w;}}}}else{const x=j[o];if(p&&!p['includes'](x)){Log[V(0x10c)](V(0x103)+o+':\x20'+x);throw new UsageError();}}}}let k=this[V(0x155)](f),l=b;if(k&&Object['keys'](k)?.[V(0x121)]>0x0){k=k[V(0x10e)](i||[]),k['push']({'name':V(0x146),'hidden':!![]}),k[V(0x113)]({'name':V(0x152),'boolFlag':!![]}),k[V(0x113)]({'name':'dir','hidden':!![]}),k[V(0x113)]({'name':'cwd','hidden':!![]}),k['push']({'name':V(0x150),'hidden':!![]}),k[V(0x113)]({'name':V(0x13d),'hidden':!![]}),l=this[V(0x117)](b,k);for(const y of k){const {name:z,values:A}=y,B=l[z];if(B!==undefined&&(!A||!A[V(0x10b)](B))){const C=A;if(C){const D=await Actions[V(0x125)]({'type':V(0x137),'name':z,'message':V(0x108)+z,'choices':A});l[z]=D[z];}}if(k['length']>0x0)for(const E of Object['keys'](l)){const F=k[V(0x11b)](G=>G[V(0x11c)]===E);if(!F){Log[V(0x10c)](V(0x115)+E);throw new UsageError();}}}}if(e&&e?.[V(0x121)]>0x0)for(const G of e){if(!e[V(0x10b)](G)){Log[V(0x10c)]('Invalid\x20argument:\x20'+G);const H=await Actions[V(0x106)](V(0x109)+G);a[a[V(0x116)](G)]=H;}}return Object[V(0x10f)](j,l);}async['validateMakaSubscription'](a){const W=a129L;try{if(!a)return;const b=await this[W(0x134)][W(0x144)]();!b&&(Log[W(0x10c)]('License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.meteor/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.'),process[W(0x13e)](0x1));const c=!b?.[W(0x158)][W(0x10b)](W(0x142))&&!b?.['roles'][W(0x10b)](W(0x14b));if(this[W(0x13b)](a)){const d='To\x20use\x20this\x20command,\x20\x22'+a['name']+W(0x10d);if(a[W(0x125)][W(0x112)])return;const f=b?.[W(0x127)]['includes'](a['name'])||b?.[W(0x127)]['includes'](a['parent']||'')||this[W(0x125)][W(0x133)];if(f&&c)throw d;}else{if(this['isGenerator'](a)){const g=b?.[W(0x128)][W(0x10b)](a[W(0x11c)])||b?.['proGenerators']['includes'](a[W(0x120)]||'');if(g&&c)throw W(0x104)+a[W(0x11c)]+W(0x10d);}}}catch(h){Log[W(0x10c)](h),process['exit'](0x1);}}['isCommand'](a){const X=a129L;return X(0x125)in a;}['isGenerator'](a){const Y=a129L;return!(Y(0x125)in a);}['description'](){const Z=a129L;return this[Z(0x125)][Z(0x114)]||this[Z(0x125)][Z(0x11d)]||Z(0x105);}[a129L(0x11d)](){const a0=a129L;return this['options'][a0(0x11d)]||a0(0x111);}[a129L(0x156)](){const a1=a129L;return this[a1(0x125)]['usage']||a1(0x14a);}[a129L(0x12a)](){const a2=a129L;return this[a2(0x125)][a2(0x12a)]||[];}[a129L(0x11e)](){const a3=a129L;return this[a3(0x125)]['aliases']||'None';}}
1
+ const a129L=a129d;(function(a,b){const I=a129d,c=a();while(!![]){try{const d=-parseInt(I(0x10d))/0x1*(parseInt(I(0xea))/0x2)+parseInt(I(0x102))/0x3+parseInt(I(0xf3))/0x4*(-parseInt(I(0xe8))/0x5)+parseInt(I(0xeb))/0x6+-parseInt(I(0xcb))/0x7*(parseInt(I(0xfc))/0x8)+parseInt(I(0xf4))/0x9+parseInt(I(0xec))/0xa*(parseInt(I(0x109))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a129c,0x1ecfa));const a129b=(function(){let a=!![];return function(b,c){const d=a?function(){const J=a129d;if(c){const e=c[J(0xcf)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a129a=a129b(this,function(){const K=a129d;return a129a['toString']()[K(0xe5)](K(0x10b))[K(0xe7)]()['constructor'](a129a)[K(0xe5)](K(0x10b));});a129a();import a129e from'path';import a129f from'os';import a129g from'fs';const homeDir=a129f[a129L(0x10c)]();import{Docker}from'./tools/docker/docker.class.js';import{FSI}from'./tools/fsi/fsi.class.js';function a129c(){const a4=['isGenerator','every','ask','search','user','toString','785320EUPaQA','shortDesc','194zrgnlt','75750TuzELd','108690WyFwPB','validateUserIsLoggedIn','list','roles','root','existsSync','.meteor','4iZetaU','406557cEXOOY','\x20version\x20','Invalid\x20argument:\x20','indexOf','No\x20usage\x20provided.','options','validateParams','proCommands','1944mHqxTQ','name','formatToNamedParam','includes','getPro','guest','59622uWApav','usage','\x20installed\x20to\x20use\x20this\x20command.','proGenerators','concat','env','match','484ekUfYl','push','(((.+)+)+)+$','homedir','2207PXfipt','find','Please\x20provide\x20a\x20value\x20for\x20','getAppProjectConfigs','isCommand','help','Please\x20choose\x20an\x20environment','parent','aliases','map','Please\x20provide\x20a\x20valid\x20argument\x20for\x20','\x22,\x20please\x20upgrade\x20to\x20PRO\x20by\x20becoming\x20a\x20pateron\x20@\x20patreon.com/user?u=110174702,\x20then\x20issue:\x20\x27maka\x20login\x27','length','No\x20description\x20provided.','Invalid\x20option:\x20','findProjectDirectory','Invalid\x20value\x20for\x20','singleLicense','getMakaProjectConfig','Please\x20choose\x20a\x20valid\x20value\x20for\x20','disableAuthCheck','1687kHfeDt','charAt','You\x20must\x20have\x20','isPro','apply','Local','License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.meteor/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.','dir','remapShortToLong','fsi','_handler','exit','validateMeteorInstall','examples','error','resourceName','domainLicense','getShortName','keys','validateMakaSubscription','docker','To\x20use\x20this\x20generator,\x20\x22','string'];a129c=function(){return a4;};return a129c();}import{Log}from'./tools/log/log.class.js';import{Actions}from'./tools/actions/actions.class.js';import{UsageError}from'./error.js';function a129d(a,b){const c=a129c();return a129d=function(d,e){d=d-0xc9;let f=c[d];return f;},a129d(a,b);}export class Tool{[a129L(0xdf)];[a129L(0xd4)];['options'];[a129L(0xfd)];[a129L(0x114)];[a129L(0xd5)];constructor(){const M=a129L;this[M(0xdf)]=new Docker(),this[M(0xd4)]=new FSI();}[a129L(0xdc)](a){const N=a129L;return a[N(0xcc)](0x0);}['remapShortToLong'](a,b){const O=a129L,c=this[O(0xfe)](b),d={...a};for(const e of c){const f=this[O(0xdc)](e[O(0xfd)]);a[f]&&(d[e[O(0xfd)]]=a[f],delete d[f]);}return d;}[a129L(0xfe)](a){const P=a129L;if(a[P(0xe3)](b=>typeof b===P(0xe1)))return a[P(0x116)](b=>({'name':b}));return a;}[a129L(0x108)](a){const Q=a129L,b=[this[Q(0xfd)]][Q(0x106)](this[Q(0xf9)][Q(0x115)]||[]);return this[Q(0x114)]&&b['push'](this[Q(0x114)]),b[Q(0xff)](a);}['validateMakaProject'](){const R=a129L,a=this['fsi'][R(0x11c)]();return a!==![]?!![]:![];}async[a129L(0xed)](){const S=a129L,a=await this[S(0xd4)][S(0x100)]();return a?.[S(0xe6)]&&a?.[S(0xe6)]!==S(0x101)?!![]:![];}[a129L(0xd7)](){const T=a129L;let a=a129e['join'](homeDir,'.meteor');const b=process['platform']==='win32';if(b){a=a129e['join'](homeDir,'AppData',T(0xd0),T(0xf2));if(!a129g[T(0xf1)](a))return![];}else{if(!a129g[T(0xf1)](a))return![];}return!![];}['validateEngines'](a){const U=a129L,b=this[U(0xd4)][U(0x11f)](),c=b['engines'],d=Object[U(0xdd)](a);if(d[U(0x119)]>0x0)for(const e of d){const f=c[e];if(f!==a[e]){Log[U(0xd9)](U(0xcd)+e+U(0xf5)+a[e]+U(0x104));throw UsageError;}}}async[a129L(0xfa)](a,b,c){const V=a129L,{requiredOpts:d,validArgs:e,validOpts:f,noNeedResource:g}=c,h=Object[V(0xdd)](b);if(h['includes'](V(0xda))&&b[V(0xda)]===undefined&&!g){const m=await Actions['ask']('Please\x20provide\x20a\x20resource\x20name:');b[V(0xda)]=m;}let i=[],j=b;if(d){i=this[V(0xfe)](d),j=this[V(0xd3)](b,i);if(i&&i?.[V(0x119)]>0x0)for(const n of i){const {name:o,values:p,regex:q}=n;if(!Object['keys'](j)[V(0xff)](o)){if(o==='env'){const r=this[V(0xd4)][V(0x110)](),s=await Actions[V(0xf9)]({'type':V(0xee),'name':V(0x107),'message':V(0x113),'choices':r});b[V(0x107)]=s['env'];}else{const t=p;if(t){const u=await Actions[V(0xf9)]({'type':V(0xee),'name':o,'message':'Please\x20choose\x20a\x20value\x20for\x20'+o,'choices':p});b[o]=u[o];}else{if(q){const v=await Actions[V(0xe4)](V(0x10f)+o);if(v[V(0x108)](q))b[o]=v;else{Log[V(0xd9)](V(0x11d)+o+':\x20'+v);throw new UsageError();}}else{const w=await Actions[V(0xe4)](V(0x10f)+o);b[o]=w;}}}}else{const x=j[o];if(p&&!p[V(0xff)](x)){Log[V(0xd9)](V(0x11d)+o+':\x20'+x);throw new UsageError();}}}}let k=this[V(0xfe)](f),l=b;if(k&&Object[V(0xdd)](k)?.[V(0x119)]>0x0){k=k['concat'](i||[]),k[V(0x10a)]({'name':V(0xda),'hidden':!![]}),k[V(0x10a)]({'name':V(0x112),'boolFlag':!![]}),k[V(0x10a)]({'name':V(0xd2),'hidden':!![]}),k[V(0x10a)]({'name':'cwd','hidden':!![]}),k[V(0x10a)]({'name':V(0xf0),'hidden':!![]}),k[V(0x10a)]({'name':'config','hidden':!![]}),l=this['remapShortToLong'](b,k);for(const y of k){const {name:z,values:A}=y,B=l[z];if(B!==undefined&&(!A||!A['includes'](B))){const C=A;if(C){const D=await Actions[V(0xf9)]({'type':'list','name':z,'message':V(0xc9)+z,'choices':A});l[z]=D[z];}}if(k[V(0x119)]>0x0)for(const E of Object[V(0xdd)](l)){const F=k[V(0x10e)](G=>G[V(0xfd)]===E);if(!F){Log[V(0xd9)](V(0x11b)+E);throw new UsageError();}}}}if(e&&e?.[V(0x119)]>0x0)for(const G of e){if(!e[V(0xff)](G)){Log[V(0xd9)](V(0xf6)+G);const H=await Actions[V(0xe4)](V(0x117)+G);a[a[V(0xf7)](G)]=H;}}return Object['assign'](j,l);}async[a129L(0xde)](a){const W=a129L;try{if(!a)return;const b=await this[W(0xd4)][W(0x100)]();!b&&(Log[W(0xd9)](W(0xd1)),process[W(0xd6)](0x1));const c=!b?.[W(0xef)][W(0xff)](W(0x11e))&&!b?.['roles'][W(0xff)](W(0xdb));if(this[W(0x111)](a)){const d='To\x20use\x20this\x20command,\x20\x22'+a['name']+W(0x118);if(a['options'][W(0xca)])return;const f=b?.[W(0xfb)][W(0xff)](a[W(0xfd)])||b?.['proCommands'][W(0xff)](a['parent']||'')||this[W(0xf9)][W(0xce)];if(f&&c)throw d;}else{if(this[W(0xe2)](a)){const g=b?.[W(0x105)][W(0xff)](a[W(0xfd)])||b?.[W(0x105)][W(0xff)](a['parent']||'');if(g&&c)throw W(0xe0)+a[W(0xfd)]+W(0x118);}}}catch(h){Log['error'](h),process[W(0xd6)](0x1);}}[a129L(0x111)](a){const X=a129L;return X(0xf9)in a;}[a129L(0xe2)](a){const Y=a129L;return!(Y(0xf9)in a);}['description'](){const Z=a129L;return this[Z(0xf9)]['description']||this[Z(0xf9)][Z(0xe9)]||Z(0x11a);}[a129L(0xe9)](){const a0=a129L;return this[a0(0xf9)]['shortDesc']||'NIE';}[a129L(0x103)](){const a1=a129L;return this[a1(0xf9)][a1(0x103)]||a1(0xf8);}[a129L(0xd8)](){const a2=a129L;return this[a2(0xf9)][a2(0xd8)]||[];}[a129L(0x115)](){const a3=a129L;return this['options'][a3(0x115)]||'None';}}
@@ -1 +1 @@
1
- function a130c(){const l=['2BuPfIJ','6628830suANBu','4158485NQNVBi','50WVXSTj','prompt','answer','(((.+)+)+)+$','options','63566TEMOXy','confirm','1924236HUrwpx','5212339BOKNhY','constructor','search','3134691ORcRtW','toString','4ghkAfk','1216NgiHhn','ask','input','140dFkQuI'];a130c=function(){return l;};return a130c();}function a130d(a,b){const c=a130c();return a130d=function(d,e){d=d-0xea;let f=c[d];return f;},a130d(a,b);}const a130h=a130d;(function(a,b){const f=a130d,c=a();while(!![]){try{const d=parseInt(f(0xf2))/0x1*(parseInt(f(0xea))/0x2)+parseInt(f(0xf8))/0x3+-parseInt(f(0xfa))/0x4*(parseInt(f(0xec))/0x5)+-parseInt(f(0xeb))/0x6+parseInt(f(0xfe))/0x7*(-parseInt(f(0xfb))/0x8)+-parseInt(f(0xf4))/0x9*(-parseInt(f(0xed))/0xa)+parseInt(f(0xf5))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a130c,0xadc6e));const a130b=(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;};}()),a130a=a130b(this,function(){const g=a130d;return a130a[g(0xf9)]()['search']('(((.+)+)+)+$')[g(0xf9)]()[g(0xf6)](a130a)[g(0xf7)](g(0xf0));});a130a();import a130e from'inquirer';export class Actions{static async[a130h(0xfc)](a,b){const i=a130h,{answer:c}=await a130e[i(0xee)]({'type':b?'password':i(0xfd),'name':i(0xef),'message':a});return c;}static async[a130h(0xf3)](a,b=![]){const j=a130h,{answer:c}=await a130e['prompt']({'type':j(0xf3),'name':'answer','message':a,'default':b});return c;}static async[a130h(0xf1)](a){const k=a130h,b=await a130e[k(0xee)](a);return b;}}
1
+ const a130i=a130d;(function(a,b){const f=a130d,c=a();while(!![]){try{const d=parseInt(f(0x13a))/0x1+-parseInt(f(0x13b))/0x2*(parseInt(f(0x136))/0x3)+parseInt(f(0x13e))/0x4*(-parseInt(f(0x133))/0x5)+-parseInt(f(0x135))/0x6*(-parseInt(f(0x12e))/0x7)+-parseInt(f(0x141))/0x8+parseInt(f(0x143))/0x9*(parseInt(f(0x140))/0xa)+parseInt(f(0x139))/0xb*(parseInt(f(0x134))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a130c,0x8df41));function a130d(a,b){const c=a130c();return a130d=function(d,e){d=d-0x12d;let f=c[d];return f;},a130d(a,b);}const a130b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a130d;if(c){const e=c[g(0x13d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a130a=a130b(this,function(){const h=a130d;return a130a[h(0x12f)]()[h(0x144)]('(((.+)+)+)+$')[h(0x12f)]()[h(0x131)](a130a)['search'](h(0x13f));});function a130c(){const l=['toString','prompt','constructor','options','205DzyPvy','540156vMNgJd','582JrhIKj','3HmEpDh','input','password','473AZWOzl','81861JNeQNJ','1895290jdcIPJ','ask','apply','101824DGdEzJ','(((.+)+)+)+$','294070rJeobq','365048bYttDI','answer','153EICdDl','search','confirm','7294BQleTg'];a130c=function(){return l;};return a130c();}a130a();import a130e from'inquirer';export class Actions{static async[a130i(0x13c)](a,b){const j=a130i,{answer:c}=await a130e[j(0x130)]({'type':b?j(0x138):j(0x137),'name':j(0x142),'message':a});return c;}static async[a130i(0x12d)](a,b=![]){const k=a130i,{answer:c}=await a130e[k(0x130)]({'type':'confirm','name':k(0x142),'message':a,'default':b});return c;}static async[a130i(0x132)](a){const b=await a130e['prompt'](a);return b;}}
@@ -1 +1 @@
1
- const a131s=a131d;(function(a,b){const p=a131d,c=a();while(!![]){try{const d=-parseInt(p(0x1b9))/0x1*(-parseInt(p(0x19f))/0x2)+-parseInt(p(0x19d))/0x3*(parseInt(p(0x180))/0x4)+parseInt(p(0x198))/0x5*(parseInt(p(0x1a3))/0x6)+-parseInt(p(0x189))/0x7+-parseInt(p(0x172))/0x8*(-parseInt(p(0x1a4))/0x9)+-parseInt(p(0x15f))/0xa*(parseInt(p(0x157))/0xb)+parseInt(p(0x1ba))/0xc*(parseInt(p(0x1bc))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a131c,0x39236));const a131b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a131d;if(c){const e=c[q(0x1b3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a131a=a131b(this,function(){const r=a131d;return a131a[r(0x1b0)]()['search'](r(0x155))[r(0x1b0)]()[r(0x169)](a131a)['search'](r(0x155));});a131a();import a131e from'fs';function a131d(a,b){const c=a131c();return a131d=function(d,e){d=d-0x144;let f=c[d];return f;},a131d(a,b);}import a131f from'path';import{execSync}from'child_process';import{Actions}from'../actions/actions.class.js';function a131c(){const X=['split','stringify','pem','constructor','\x20Error\x20Rason:\x20','maka-cli','tcp','Invalid\x20choice','\x20NAME:\x20','file://','createKeyPair','GroupId','8SDPZKo','Created:\x20','forEach','**\x20Available\x20\x20VPCs\x20**','length','Name','getMakaProjectConfig','privateIp','Value','chmod\x20400\x20','The\x20domain\x20\x27','.pem.txt','Prices','ingressRule','4czBIUK','\x20STATUS:\x20','minCount','httpStatusCode','Please\x20choose\x20a\x20VPC:\x20[0]\x20','\x20VPCID:\x20','_keys','send','status','3165918shevmk','\x20Status\x20Code:\x20','instanceId','Web\x20App','Would\x20you\x20like\x20to\x20update\x20the\x20ssh.json\x20config\x20file?','UPSERT','Reservations','success','environment','terminated','Description:','deleteKeyPair','ID:\x20','statusCode','pop','374015kXsYdT','ec2describeInstances','\x20PUB_IP:\x20','parse','You\x20will\x20need\x20to\x20update\x20the\x20ssh.json\x20file\x20yourself.','545517Vrrvnd','ignore','14sljmMy','config','ec2create','HostedZones','36qPnhut','3858831umhZrd','No\x20instances\x20found','registerDomain','running','Error\x20saving\x20pem\x20file,\x20aborting','find','Error\x20fetching\x20domain\x20pricing:','sgId','RegistrationPrice','Could\x20not\x20find\x20hosted\x20zone','log','key','toString','tag:created-by','Key\x20Name:\x20[','apply','tags','ec2rebootInstance','Pem\x20key\x20saved\x20to\x20','You\x20have\x20no\x20key-pairs,\x20please\x20create\x20one.\x20(maka\x20aws\x20create-key-pair\x20--env).','error','10954TIdTWV','60vFLQLI','cidr','637819CePkJz','\x20INSTANCE_ID:\x20','exit','linkEC2ToRoute53','userData','vpcId','utf8','description','ec2createSG','\x27\x20has\x20been\x20registered\x20successfully.','chooseVPC','join','push','KeyName','$response','You\x20have\x20no\x20instances\x20created\x20by\x20maka-cli.\x20\x20Please\x20reivew\x20your\x20AWS\x20console\x20manually!!!','Instance\x20rebooted!','Successfully\x20linked\x20EC2\x20instance\x20','GroupName','AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials','createKeyPairEC2Key','There\x20was\x20an\x20error\x20registering\x20the\x20domain\x20name','changeResourceRecordSets','Error\x20linking\x20EC2\x20to\x20Route\x2053:','fsi','getAppConfigPath','Port\x20','VpcId','ec2terminateInstance','route53CreateHostedZone','Hosted\x20zone\x20created\x20successfully!','name','Error\x20creating\x20hosted\x20zone','writeFileSync','(((.+)+)+)+$','env','3645609OiOTIz','ask','now','Instances','\x20PRIV_IP:\x20','createFile','publicIp','ec2describeKeys','10VkpKNc','notice','Error\x20generating\x20key\x20pair','CidrBlock','listHostedZonesByName','instance','ssh.json'];a131c=function(){return X;};return a131c();}import{Log}from'../log/log.class.js';import{FSI}from'../fsi/fsi.class.js';import{EC2Client,DescribeInstancesCommand,RunInstancesCommand,TerminateInstancesCommand,CreateKeyPairCommand,AuthorizeSecurityGroupIngressCommand,CreateSecurityGroupCommand,RebootInstancesCommand,DescribeVpcsCommand,DescribeKeyPairsCommand,DeleteKeyPairCommand,DescribeSecurityGroupsCommand,DeleteSecurityGroupCommand}from'@aws-sdk/client-ec2';import{ECRClient,CreateRepositoryCommand}from'@aws-sdk/client-ecr';import{Route53,Route53Client,CreateHostedZoneCommand}from'@aws-sdk/client-route-53';import{Route53Domains,CheckDomainAvailabilityCommand,RegisterDomainCommand,ListPricesCommand}from'@aws-sdk/client-route-53-domains';const client=new EC2Client({}),ecrClient=new ECRClient({}),route53Client=new Route53Client({}),route53=new Route53({}),route53Domains=new Route53Domains({});export class AWS{[a131s(0x14b)];constructor(){const t=a131s;this[t(0x14b)]=new FSI();}async['ecrCreateRepository'](a){const u=a131s;try{const b={'repositoryName':a[u(0x152)]},c=new CreateRepositoryCommand(b),d=await ecrClient[u(0x187)](c);return d;}catch(f){Log[u(0x1b8)](f);}}async[a131s(0x150)](a){const v=a131s;try{const b={'CallerReference':''+Date[v(0x159)](),'Name':a},c=new CreateHostedZoneCommand(b);await route53Client['send'](c),Log[v(0x190)](v(0x151));}catch(d){Log[v(0x1b8)](v(0x153)),console[v(0x1b8)](d);}}async[a131s(0x1a6)](a,b,c,d){const w=a131s;try{const e={'DomainName':b,'DurationInYears':c,'AutoRenew':d,'AdminContact':a,'RegistrantContact':a,'TechContact':a},f=new RegisterDomainCommand(e);await route53[w(0x187)](f),Log[w(0x160)](w(0x17c)+b+w(0x1c5));}catch(g){Log[w(0x1b8)](w(0x148)),Log['warn']('From\x20AWS:'),console['error'](w(0x18a)+g[w(0x1ca)][w(0x196)]),console[w(0x1b8)](w(0x16a)+g[w(0x1ca)]['reason']);}}async['checkDomainAvailability'](a){const x=a131s,b={'DomainName':a},c=new CheckDomainAvailabilityCommand(b),d=await route53Domains[x(0x187)](c),e=d['Availability']==='AVAILABLE';if(e){const f=a[x(0x166)]('.')[x(0x197)](),g={'MaxItems':0x1,'Tld':f};try{const h=new ListPricesCommand(g),i=await route53Domains[x(0x187)](h);if(i&&i[x(0x17e)]&&i[x(0x17e)][0x0]?.[x(0x1ac)]){const j=i[x(0x17e)][0x0][x(0x1ac)];return{'available':e,'cost':j};}}catch(k){console[x(0x1b8)](x(0x1aa),k);}}return{'available':e};}async[a131s(0x1bf)](a,b,c){const y=a131s;try{const d=await route53[y(0x163)]({'DNSName':c});if(!d?.['HostedZones'])throw Log[y(0x1b8)](y(0x1ad));const e=d?.[y(0x1a2)][0x0]['Id'],f={'ChangeBatch':{'Changes':[{'Action':y(0x18e),'ResourceRecordSet':{'Name':c,'Type':'A','TTL':0x12c,'ResourceRecords':[{'Value':b}]}}]},'HostedZoneId':e};await route53[y(0x149)](f),Log['notice'](y(0x144)+a+'\x20to\x20'+c);}catch(g){console[y(0x1b8)](y(0x14a),g);}}async[a131s(0x1a1)](a){const z=a131s;try{const b={'BlockDeviceMappings':[{'DeviceName':'/dev/sdh','Ebs':{'VolumeSize':0x64}}],'ImageId':a['imageId'],'InstanceType':a['type'],'KeyName':a[z(0x1af)],'MaxCount':a['maxCount'],'MinCount':a[z(0x182)],'SecurityGroupIds':a['sgIds'][z(0x166)](','),'SubnetId':a['subnet'],'TagSpecifications':[{'ResourceType':z(0x164),'Tags':a[z(0x1b4)]}]};a['userData']&&(b['UserData']=z(0x16f)+a[z(0x1c0)]);const c=new RunInstancesCommand(b),d=await client['send'](c);return d;}catch(f){Log['error'](f);}}async[a131s(0x14f)](a){const A=a131s;try{const b={'InstanceIds':[a[A(0x18b)]]},c=new TerminateInstancesCommand(b),d=await client[A(0x187)](c);return d;}catch(f){return Log[A(0x1b8)](f),{};}}async[a131s(0x147)]({keyName:a,env:b}){const B=a131s,c=this['fsi'][B(0x14c)](b),d=a131f[B(0x1c7)](c,B(0x186),a+'.pem.txt');try{const f={'KeyName':a},g=new CreateKeyPairCommand(f),h=await client[B(0x187)](g),i=h['KeyMaterial'];if(i){await this['fsi'][B(0x15c)]({'filePath':d,'data':i}),execSync(B(0x17b)+d,{'stdio':B(0x19e)});const j=this[B(0x14b)]['isFile'](d);if(j)return Log[B(0x190)](B(0x1b6)+d),{'keyName':a,'filePath':d};else throw new Error(B(0x1a8));}else throw new Error(B(0x161));}catch(k){Log['error'](k),process[B(0x1be)](0x1);}}async[a131s(0x17f)]({port:a,groupId:b}){const C=a131s,c={'GroupId':b,'IpPermissions':[{'FromPort':a,'IpProtocol':C(0x16c),'IpRanges':[{'CidrIp':'0.0.0.0/0','Description':''}],'ToPort':a}]},d=new AuthorizeSecurityGroupIngressCommand(c);return Log['notice'](C(0x14d)+a+'\x20opened!'),await client[C(0x187)](d);}async[a131s(0x1c4)](a){const D=a131s;try{a[D(0x1c3)]===''&&(a[D(0x1c3)]=await Actions[D(0x158)](D(0x193))||D(0x18c));const b={'Description':a[D(0x1c3)],'GroupName':a[D(0x152)],'VpcId':a[D(0x1c1)]},c=new CreateSecurityGroupCommand(b),d=await client[D(0x187)](c),{GroupId:f}=d;if(!d)throw new Error(D(0x146));f&&a['sgPorts']['forEach'](g=>{const E=D;this[E(0x17f)]({'port':parseInt(g),'groupId':f});}),Log[D(0x190)](D(0x173)+f+D(0x16e)+a[D(0x152)]);}catch(g){return Log[D(0x1b8)](g),![];}return!![];}async[a131s(0x15e)](a){const F=a131s,b=[];try{const c={},d=new DescribeKeyPairsCommand(c),f=await client['send'](d);if(!f)throw F(0x146);const {KeyPairs:g}=f;g?(g?.[F(0x174)]((h,i)=>{const G=F;h[G(0x1c9)]&&b[G(0x1c8)]({'id':i,'name':h[G(0x1c9)]});}),b[F(0x176)]>0x0&&b[F(0x174)](h=>{const H=F;h[H(0x152)]===a?.['suggestion']?Log[H(0x190)](H(0x195)+h['id']+H(0x16e)+h[H(0x152)]):Log[H(0x160)](H(0x195)+h['id']+H(0x16e)+h['name']);})):Log[F(0x1b8)](F(0x1b7));}catch(h){Log[F(0x1b8)](h);}return b;}async[a131s(0x194)](a){const I=a131s;try{const b={'KeyName':a},c=new DeleteKeyPairCommand(b);await client[I(0x187)](c);}catch(d){Log[I(0x1b8)](d),process['exit'](0x1);}}async[a131s(0x199)](){const J=a131s,a=[];try{const b={'Filters':[{'Name':J(0x1b1),'Values':[J(0x16b)]}]},c=new DescribeInstancesCommand(b),d=await client[J(0x187)](c);d[J(0x18f)]?.[J(0x174)]((f,g)=>{const K=J;if(f?.['Instances']){const {InstanceId:h,PublicIpAddress:i,PrivateIpAddress:j,State:k,KeyName:l,Tags:m}=f[K(0x15a)][0x0],n=m?.['find'](({Key:o})=>o===K(0x191));a[K(0x1c8)]({'id':g,'instanceId':h,'privateIp':j,'publicIp':i,'status':k?.[K(0x177)],'name':l,'env':n?.[K(0x17a)]});}}),a[J(0x176)]>0x0?a[J(0x174)](f=>{const L=J,g=L(0x195)+f['id']+L(0x16e)+f[L(0x152)]+'\x20ENV:\x20'+f[L(0x156)]+L(0x181)+f[L(0x188)]+L(0x1bd)+f[L(0x18b)]+L(0x19a)+f[L(0x15d)]+L(0x15b)+f[L(0x179)];if(f[L(0x188)]===L(0x192))Log[L(0x1b8)](g);else f[L(0x188)]===L(0x1a7)?Log['success'](g):Log[L(0x160)](g);}):Log[J(0x1b8)](J(0x1cb));}catch(f){Log[J(0x1b8)](f);}return a;}async[a131s(0x1b5)](a){const M=a131s;try{const b={'InstanceIds':[a['instanceId']]},c=new RebootInstancesCommand(b),d=await client['send'](c);return d['$metadata'][M(0x183)]===0xc8&&Log[M(0x190)](M(0x1cc)),d;}catch(f){Log[M(0x1b8)](f);}}async[a131s(0x1c6)](){const N=a131s;let a='';Log[N(0x160)](N(0x175));const b=new DescribeVpcsCommand({}),c=await client[N(0x187)](b),{Vpcs:d}=c,e=[];d&&d[N(0x174)]((g,h)=>{const O=N;g['VpcId']&&g[O(0x162)]&&e[O(0x1c8)]({'id':h,'vpcId':g[O(0x14e)],'cidr':g[O(0x162)]});});e['forEach'](function(g){const P=N;console[P(0x1ae)]('ID:\x20'+g['id']+P(0x185)+g[P(0x1c1)]+'\x20CIDR:\x20'+g[P(0x1bb)]);});const f=await Actions['ask'](N(0x184))||0x0;e['forEach'](function(g){const Q=N;g['id']==f&&(a=g[Q(0x1c1)],Log[Q(0x190)]('[+]\x20Setting\x20VPC\x20ID\x20to:\x20'+a+'\x0a'));});if(a==='')return Log[N(0x1b8)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.'),'';return a;}async['chooseInstance'](){const R=a131s,a=await this[R(0x199)]();if(a['length']===0x0)return Log[R(0x1b8)](R(0x1a5)),null;const b=await Actions[R(0x158)]('[?]\x20Please\x20choose\x20an\x20instance\x20ID:\x20');!b&&(Log['error'](R(0x16d)),process[R(0x1be)](0x0));const c=a[R(0x1a9)](({id:d})=>{return d==parseInt(b);})||null;return c;}async[a131s(0x170)]({env:a}){const S=a131s,b=this[S(0x14b)][S(0x178)](),{appName:c}=b,d=c+'-'+a,f=await Actions[S(0x158)](S(0x1b2)+d+']\x20')||d,{filePath:g}=await this['createKeyPairEC2Key']({'keyName':f,'env':a});try{const h=await Actions['confirm'](S(0x18d),!![]);if(h)try{const i=a131e['readFileSync'](a131f[S(0x1c7)](S(0x1a0),a,'ssh.json'),S(0x1c2)),j=JSON[S(0x19b)](i);j[S(0x168)]=a131f[S(0x1c7)]('_keys',f+S(0x17d)),a131e[S(0x154)](a131f[S(0x1c7)](S(0x1a0),a,S(0x165)),JSON[S(0x167)](j,null,0x2));}catch(k){Log['error'](k),Log[S(0x1b8)](S(0x19c));}}catch(l){Log['error'](l),process[S(0x1be)](0x1);}return{'keyName':f,'filePath':g};}async['getSecurityGroups'](a){const T=a131s,b=[],c={},d=new DescribeSecurityGroupsCommand(c),e=await client[T(0x187)](d),{SecurityGroups:f}=e;f&&f[T(0x174)](function(i,j){const U=T;i['GroupName']&&i[U(0x171)]&&b[U(0x1c8)]({'id':j,'name':i[U(0x145)],'sgId':i['GroupId']});});let g='',h=0x0;return b[T(0x174)](function(i){const V=T;i[V(0x152)]===a&&(g=i[V(0x1ab)],h=i['id']);}),{'sgList':b,'createdSgId':g,'listIndexId':h};}async['deleteSecurityGroup'](a){const W=a131s;try{const b={'GroupId':a},c=new DeleteSecurityGroupCommand(b);await client['send'](c);}catch(d){Log[W(0x1b8)](d),process[W(0x1be)](0x1);}}}
1
+ const a131r=a131d;(function(a,b){const p=a131d,c=a();while(!![]){try{const d=-parseInt(p(0x19d))/0x1+-parseInt(p(0x1e5))/0x2+parseInt(p(0x1eb))/0x3+-parseInt(p(0x1b5))/0x4*(parseInt(p(0x1d0))/0x5)+-parseInt(p(0x1d8))/0x6+-parseInt(p(0x1fa))/0x7+parseInt(p(0x1d4))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a131c,0x862e5));function a131c(){const U=['deleteSecurityGroup','6913354rqTfeP','getSecurityGroups','maka-cli','Port\x20','readFileSync','Value','HostedZones','warn','file://','tag:created-by','length','fsi','ec2rebootInstance','VpcId','ignore','Instance\x20rebooted!','env','subnet','Instances','You\x20will\x20need\x20to\x20update\x20the\x20ssh.json\x20file\x20yourself.','Please\x20choose\x20a\x20VPC:\x20[0]\x20','chmod\x20400\x20','No\x20instances\x20found','KeyMaterial','pem','From\x20AWS:','Successfully\x20linked\x20EC2\x20instance\x20','Pem\x20key\x20saved\x20to\x20','createKeyPairEC2Key','instanceId','createKeyPair','instance','exit','utf8','\x20PRIV_IP:\x20','now','Availability','cidr','status','Name','join','KeyName','721346eXuKcg','split','tags','(((.+)+)+)+$','error','search','key','There\x20was\x20an\x20error\x20registering\x20the\x20domain\x20name','You\x20have\x20no\x20key-pairs,\x20please\x20create\x20one.\x20(maka\x20aws\x20create-key-pair\x20--env).','\x20VPCID:\x20','type','success','statusCode','Created:\x20','send','Would\x20you\x20like\x20to\x20update\x20the\x20ssh.json\x20config\x20file?','AVAILABLE','imageId','CidrBlock','privateIp','ec2terminateInstance','tcp','confirm','UserData','32000OyhQTv','linkEC2ToRoute53','Invalid\x20choice','ssh.json','\x20STATUS:\x20','\x27\x20has\x20been\x20registered\x20successfully.','ID:\x20','constructor','deleteKeyPair','environment','[?]\x20Please\x20choose\x20an\x20instance\x20ID:\x20','getAppConfigPath','ask','GroupName','reason','\x20Status\x20Code:\x20','publicIp','notice','config','toString','pop','\x20Error\x20Rason:\x20','push','route53CreateHostedZone','changeResourceRecordSets','Error\x20creating\x20hosted\x20zone','forEach','580oPAvLw','Error\x20generating\x20key\x20pair','maxCount','RegistrationPrice','34578192FxiPWx','_keys','GroupId','Hosted\x20zone\x20created\x20successfully!','5077974FUNoXi','Error\x20fetching\x20domain\x20pricing:','getMakaProjectConfig','httpStatusCode','UPSERT','Could\x20not\x20find\x20hosted\x20zone','ecrCreateRepository','stringify','\x20NAME:\x20','Prices','\x20ENV:\x20','/dev/sdh','sgId','1922120XfBobu','registerDomain','userData','description','ec2createSG','find','2015064zGsvsQ','ingressRule','name','isFile','parse','Key\x20Name:\x20[','running','ec2describeInstances','0.0.0.0/0','Description:','log','AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials','\x20INSTANCE_ID:\x20','.pem.txt'];a131c=function(){return U;};return a131c();}const a131b=(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;};}()),a131a=a131b(this,function(){const q=a131d;return a131a[q(0x1c8)]()[q(0x1a2)](q(0x1a0))[q(0x1c8)]()[q(0x1bc)](a131a)['search'](q(0x1a0));});a131a();import a131e from'fs';function a131d(a,b){const c=a131c();return a131d=function(d,e){d=d-0x19c;let f=c[d];return f;},a131d(a,b);}import a131f from'path';import{execSync}from'child_process';import{Actions}from'../actions/actions.class.js';import{Log}from'../log/log.class.js';import{FSI}from'../fsi/fsi.class.js';import{EC2Client,DescribeInstancesCommand,RunInstancesCommand,TerminateInstancesCommand,CreateKeyPairCommand,AuthorizeSecurityGroupIngressCommand,CreateSecurityGroupCommand,RebootInstancesCommand,DescribeVpcsCommand,DescribeKeyPairsCommand,DeleteKeyPairCommand,DescribeSecurityGroupsCommand,DeleteSecurityGroupCommand}from'@aws-sdk/client-ec2';import{ECRClient,CreateRepositoryCommand}from'@aws-sdk/client-ecr';import{Route53,Route53Client,CreateHostedZoneCommand}from'@aws-sdk/client-route-53';import{Route53Domains,CheckDomainAvailabilityCommand,RegisterDomainCommand,ListPricesCommand}from'@aws-sdk/client-route-53-domains';const client=new EC2Client({}),ecrClient=new ECRClient({}),route53Client=new Route53Client({}),route53=new Route53({}),route53Domains=new Route53Domains({});export class AWS{[a131r(0x205)];constructor(){const s=a131r;this[s(0x205)]=new FSI();}async[a131r(0x1de)](a){const t=a131r;try{const b={'repositoryName':a[t(0x1ed)]},c=new CreateRepositoryCommand(b),d=await ecrClient['send'](c);return d;}catch(f){Log['error'](f);}}async[a131r(0x1cc)](a){const u=a131r;try{const b={'CallerReference':''+Date[u(0x21d)](),'Name':a},c=new CreateHostedZoneCommand(b);await route53Client[u(0x1ab)](c),Log[u(0x1a8)](u(0x1d7));}catch(d){Log['error'](u(0x1ce)),console[u(0x1a1)](d);}}async[a131r(0x1e6)](a,b,c,d){const v=a131r;try{const e={'DomainName':b,'DurationInYears':c,'AutoRenew':d,'AdminContact':a,'RegistrantContact':a,'TechContact':a},f=new RegisterDomainCommand(e);await route53['send'](f),Log[v(0x1c6)]('The\x20domain\x20\x27'+b+v(0x1ba));}catch(g){Log[v(0x1a1)](v(0x1a4)),Log[v(0x201)](v(0x213)),console[v(0x1a1)](v(0x1c4)+g['$response'][v(0x1a9)]),console[v(0x1a1)](v(0x1ca)+g['$response'][v(0x1c3)]);}}async['checkDomainAvailability'](a){const w=a131r,b={'DomainName':a},c=new CheckDomainAvailabilityCommand(b),d=await route53Domains[w(0x1ab)](c),e=d[w(0x21e)]===w(0x1ad);if(e){const f=a[w(0x19e)]('.')[w(0x1c9)](),g={'MaxItems':0x1,'Tld':f};try{const h=new ListPricesCommand(g),i=await route53Domains[w(0x1ab)](h);if(i&&i[w(0x1e1)]&&i[w(0x1e1)][0x0]?.[w(0x1d3)]){const j=i[w(0x1e1)][0x0][w(0x1d3)];return{'available':e,'cost':j};}}catch(k){console[w(0x1a1)](w(0x1d9),k);}}return{'available':e};}async[a131r(0x1b6)](a,b,c){const x=a131r;try{const d=await route53['listHostedZonesByName']({'DNSName':c});if(!d?.['HostedZones'])throw Log['error'](x(0x1dd));const e=d?.[x(0x200)][0x0]['Id'],f={'ChangeBatch':{'Changes':[{'Action':x(0x1dc),'ResourceRecordSet':{'Name':c,'Type':'A','TTL':0x12c,'ResourceRecords':[{'Value':b}]}}]},'HostedZoneId':e};await route53[x(0x1cd)](f),Log[x(0x1c6)](x(0x214)+a+'\x20to\x20'+c);}catch(g){console[x(0x1a1)]('Error\x20linking\x20EC2\x20to\x20Route\x2053:',g);}}async['ec2create'](a){const y=a131r;try{const b={'BlockDeviceMappings':[{'DeviceName':y(0x1e3),'Ebs':{'VolumeSize':0x64}}],'ImageId':a[y(0x1ae)],'InstanceType':a[y(0x1a7)],'KeyName':a[y(0x1a3)],'MaxCount':a[y(0x1d2)],'MinCount':a['minCount'],'SecurityGroupIds':a['sgIds']['split'](','),'SubnetId':a[y(0x20b)],'TagSpecifications':[{'ResourceType':y(0x219),'Tags':a[y(0x19f)]}]};a[y(0x1e7)]&&(b[y(0x1b4)]=y(0x202)+a[y(0x1e7)]);const c=new RunInstancesCommand(b),d=await client[y(0x1ab)](c);return d;}catch(f){Log[y(0x1a1)](f);}}async[a131r(0x1b1)](a){const z=a131r;try{const b={'InstanceIds':[a[z(0x217)]]},c=new TerminateInstancesCommand(b),d=await client[z(0x1ab)](c);return d;}catch(f){return Log[z(0x1a1)](f),{};}}async['createKeyPairEC2Key']({keyName:a,env:b}){const A=a131r,c=this[A(0x205)][A(0x1c0)](b),d=a131f[A(0x222)](c,A(0x1d5),a+A(0x1f8));try{const f={'KeyName':a},g=new CreateKeyPairCommand(f),h=await client[A(0x1ab)](g),i=h[A(0x211)];if(i){await this[A(0x205)]['createFile']({'filePath':d,'data':i}),execSync(A(0x20f)+d,{'stdio':A(0x208)});const j=this[A(0x205)][A(0x1ee)](d);if(j)return Log[A(0x1a8)](A(0x215)+d),{'keyName':a,'filePath':d};else throw new Error('Error\x20saving\x20pem\x20file,\x20aborting');}else throw new Error(A(0x1d1));}catch(k){Log[A(0x1a1)](k),process[A(0x21a)](0x1);}}async[a131r(0x1ec)]({port:a,groupId:b}){const B=a131r,c={'GroupId':b,'IpPermissions':[{'FromPort':a,'IpProtocol':B(0x1b2),'IpRanges':[{'CidrIp':B(0x1f3),'Description':''}],'ToPort':a}]},d=new AuthorizeSecurityGroupIngressCommand(c);return Log[B(0x1c6)](B(0x1fd)+a+'\x20opened!'),await client[B(0x1ab)](d);}async[a131r(0x1e9)](a){const C=a131r;try{a['description']===''&&(a[C(0x1e8)]=await Actions[C(0x1c1)](C(0x1f4))||'Web\x20App');const b={'Description':a['description'],'GroupName':a[C(0x1ed)],'VpcId':a['vpcId']},c=new CreateSecurityGroupCommand(b),d=await client['send'](c),{GroupId:f}=d;if(!d)throw new Error(C(0x1f6));f&&a['sgPorts'][C(0x1cf)](g=>{const D=C;this[D(0x1ec)]({'port':parseInt(g),'groupId':f});}),Log[C(0x1a8)](C(0x1aa)+f+'\x20NAME:\x20'+a[C(0x1ed)]);}catch(g){return Log[C(0x1a1)](g),![];}return!![];}async['ec2describeKeys'](a){const E=a131r,b=[];try{const c={},d=new DescribeKeyPairsCommand(c),f=await client[E(0x1ab)](d);if(!f)throw E(0x1f6);const {KeyPairs:g}=f;g?(g?.[E(0x1cf)]((h,i)=>{const F=E;h[F(0x19c)]&&b[F(0x1cb)]({'id':i,'name':h['KeyName']});}),b[E(0x204)]>0x0&&b[E(0x1cf)](h=>{const G=E;h[G(0x1ed)]===a?.['suggestion']?Log[G(0x1a8)](G(0x1bb)+h['id']+G(0x1e0)+h[G(0x1ed)]):Log[G(0x1c6)](G(0x1bb)+h['id']+G(0x1e0)+h[G(0x1ed)]);})):Log['error'](E(0x1a5));}catch(h){Log[E(0x1a1)](h);}return b;}async[a131r(0x1bd)](a){try{const b={'KeyName':a},c=new DeleteKeyPairCommand(b);await client['send'](c);}catch(d){Log['error'](d),process['exit'](0x1);}}async[a131r(0x1f2)](){const H=a131r,a=[];try{const b={'Filters':[{'Name':H(0x203),'Values':[H(0x1fc)]}]},c=new DescribeInstancesCommand(b),d=await client[H(0x1ab)](c);d['Reservations']?.[H(0x1cf)]((f,g)=>{const I=H;if(f?.[I(0x20c)]){const {InstanceId:h,PublicIpAddress:i,PrivateIpAddress:j,State:k,KeyName:l,Tags:m}=f[I(0x20c)][0x0],n=m?.[I(0x1ea)](({Key:o})=>o===I(0x1be));a['push']({'id':g,'instanceId':h,'privateIp':j,'publicIp':i,'status':k?.[I(0x221)],'name':l,'env':n?.[I(0x1ff)]});}}),a[H(0x204)]>0x0?a[H(0x1cf)](f=>{const J=H,g=J(0x1bb)+f['id']+J(0x1e0)+f[J(0x1ed)]+J(0x1e2)+f[J(0x20a)]+J(0x1b9)+f[J(0x220)]+J(0x1f7)+f[J(0x217)]+'\x20PUB_IP:\x20'+f[J(0x1c5)]+J(0x21c)+f[J(0x1b0)];if(f['status']==='terminated')Log['error'](g);else f['status']===J(0x1f1)?Log[J(0x1a8)](g):Log[J(0x1c6)](g);}):Log[H(0x1a1)]('You\x20have\x20no\x20instances\x20created\x20by\x20maka-cli.\x20\x20Please\x20reivew\x20your\x20AWS\x20console\x20manually!!!');}catch(f){Log[H(0x1a1)](f);}return a;}async[a131r(0x206)](a){const K=a131r;try{const b={'InstanceIds':[a[K(0x217)]]},c=new RebootInstancesCommand(b),d=await client[K(0x1ab)](c);return d['$metadata'][K(0x1db)]===0xc8&&Log[K(0x1a8)](K(0x209)),d;}catch(f){Log[K(0x1a1)](f);}}async['chooseVPC'](){const L=a131r;let a='';Log[L(0x1c6)]('**\x20Available\x20\x20VPCs\x20**');const b=new DescribeVpcsCommand({}),c=await client['send'](b),{Vpcs:d}=c,e=[];d&&d[L(0x1cf)]((g,h)=>{const M=L;g[M(0x207)]&&g[M(0x1af)]&&e[M(0x1cb)]({'id':h,'vpcId':g[M(0x207)],'cidr':g['CidrBlock']});});e[L(0x1cf)](function(g){const N=L;console[N(0x1f5)]('ID:\x20'+g['id']+N(0x1a6)+g['vpcId']+'\x20CIDR:\x20'+g[N(0x21f)]);});const f=await Actions[L(0x1c1)](L(0x20e))||0x0;e[L(0x1cf)](function(g){const O=L;g['id']==f&&(a=g['vpcId'],Log[O(0x1a8)]('[+]\x20Setting\x20VPC\x20ID\x20to:\x20'+a+'\x0a'));});if(a==='')return Log[L(0x1a1)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.'),'';return a;}async['chooseInstance'](){const P=a131r,a=await this[P(0x1f2)]();if(a[P(0x204)]===0x0)return Log[P(0x1a1)](P(0x210)),null;const b=await Actions['ask'](P(0x1bf));!b&&(Log[P(0x1a1)](P(0x1b7)),process['exit'](0x0));const c=a[P(0x1ea)](({id:d})=>{return d==parseInt(b);})||null;return c;}async[a131r(0x218)]({env:a}){const Q=a131r,b=this[Q(0x205)][Q(0x1da)](),{appName:c}=b,d=c+'-'+a,f=await Actions[Q(0x1c1)](Q(0x1f0)+d+']\x20')||d,{filePath:g}=await this[Q(0x216)]({'keyName':f,'env':a});try{const h=await Actions[Q(0x1b3)](Q(0x1ac),!![]);if(h)try{const i=a131e[Q(0x1fe)](a131f[Q(0x222)](Q(0x1c7),a,Q(0x1b8)),Q(0x21b)),j=JSON[Q(0x1ef)](i);j[Q(0x212)]=a131f[Q(0x222)]('_keys',f+'.pem.txt'),a131e['writeFileSync'](a131f['join'](Q(0x1c7),a,Q(0x1b8)),JSON[Q(0x1df)](j,null,0x2));}catch(k){Log[Q(0x1a1)](k),Log['error'](Q(0x20d));}}catch(l){Log[Q(0x1a1)](l),process[Q(0x21a)](0x1);}return{'keyName':f,'filePath':g};}async[a131r(0x1fb)](a){const R=a131r,b=[],c={},d=new DescribeSecurityGroupsCommand(c),e=await client[R(0x1ab)](d),{SecurityGroups:f}=e;f&&f['forEach'](function(i,j){const S=R;i[S(0x1c2)]&&i['GroupId']&&b[S(0x1cb)]({'id':j,'name':i[S(0x1c2)],'sgId':i[S(0x1d6)]});});let g='',h=0x0;return b['forEach'](function(i){const T=R;i[T(0x1ed)]===a&&(g=i[T(0x1e4)],h=i['id']);}),{'sgList':b,'createdSgId':g,'listIndexId':h};}async[a131r(0x1f9)](a){try{const b={'GroupId':a},c=new DeleteSecurityGroupCommand(b);await client['send'](c);}catch(d){Log['error'](d),process['exit'](0x1);}}}
@@ -1 +1 @@
1
- (function(a,b){var k=a132d,c=a();while(!![]){try{var d=parseInt(k(0x120))/0x1*(-parseInt(k(0x11a))/0x2)+-parseInt(k(0x126))/0x3+-parseInt(k(0x11c))/0x4*(parseInt(k(0x11f))/0x5)+parseInt(k(0x11e))/0x6*(-parseInt(k(0x121))/0x7)+-parseInt(k(0x11d))/0x8*(-parseInt(k(0x123))/0x9)+parseInt(k(0x119))/0xa+-parseInt(k(0x122))/0xb*(-parseInt(k(0x125))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a132c,0xbe80d));function a132d(a,b){var c=a132c();return a132d=function(d,e){d=d-0x117;var f=c[d];return f;},a132d(a,b);}function a132c(){var n=['3671944MKsioj','12isgLUX','15ZDwSph','129hsXXFC','2313325iaElDC','64339kGqEar','27jTYUds','toString','4272YoLKyM','2540013jxIEQO','search','(((.+)+)+)+$','9740140WeVAqn','11272FQVAyI','apply','1891028CLdjOG'];a132c=function(){return n;};return a132c();}export var CountryCode;(function(c){var d=(function(){var f=!![];return function(g,h){var i=f?function(){var l=a132d;if(h){var j=h[l(0x11b)](g,arguments);return h=null,j;}}:function(){};return f=![],i;};}()),e=d(this,function(){var m=a132d;return e[m(0x124)]()[m(0x117)](m(0x118))[m(0x124)]()['constructor'](e)['search'](m(0x118));});e(),c['AC']='AC',c['AD']='AD',c['AE']='AE',c['AF']='AF',c['AG']='AG',c['AI']='AI',c['AL']='AL',c['AM']='AM',c['AN']='AN',c['AO']='AO',c['AQ']='AQ',c['AR']='AR',c['AS']='AS',c['AT']='AT',c['AU']='AU',c['AW']='AW',c['AX']='AX',c['AZ']='AZ',c['BA']='BA',c['BB']='BB',c['BD']='BD',c['BE']='BE',c['BF']='BF',c['BG']='BG',c['BH']='BH',c['BI']='BI',c['BJ']='BJ',c['BL']='BL',c['BM']='BM',c['BN']='BN',c['BO']='BO',c['BQ']='BQ',c['BR']='BR',c['BS']='BS',c['BT']='BT',c['BV']='BV',c['BW']='BW',c['BY']='BY',c['BZ']='BZ',c['CA']='CA',c['CC']='CC',c['CD']='CD',c['CF']='CF',c['CG']='CG',c['CH']='CH',c['CI']='CI',c['CK']='CK',c['CL']='CL',c['CM']='CM',c['CN']='CN',c['CO']='CO',c['CR']='CR',c['CU']='CU',c['CV']='CV',c['CW']='CW',c['CX']='CX',c['CY']='CY',c['CZ']='CZ',c['DE']='DE',c['DJ']='DJ',c['DK']='DK',c['DM']='DM',c['DO']='DO',c['DZ']='DZ',c['EC']='EC',c['EE']='EE',c['EG']='EG',c['EH']='EH',c['ER']='ER',c['ES']='ES',c['ET']='ET',c['FI']='FI',c['FJ']='FJ',c['FK']='FK',c['FM']='FM',c['FO']='FO',c['FR']='FR',c['GA']='GA',c['GB']='GB',c['GD']='GD',c['GE']='GE',c['GF']='GF',c['GG']='GG',c['GH']='GH',c['GI']='GI',c['GL']='GL',c['GM']='GM',c['GN']='GN',c['GP']='GP',c['GQ']='GQ',c['GR']='GR',c['GS']='GS',c['GT']='GT',c['GU']='GU',c['GW']='GW',c['GY']='GY',c['HK']='HK',c['HM']='HM',c['HN']='HN',c['HR']='HR',c['HT']='HT',c['HU']='HU',c['ID']='ID',c['IE']='IE',c['IL']='IL',c['IM']='IM',c['IN']='IN',c['IO']='IO',c['IQ']='IQ',c['IR']='IR',c['IS']='IS',c['IT']='IT',c['JE']='JE',c['JM']='JM',c['JO']='JO',c['JP']='JP',c['KE']='KE',c['KG']='KG',c['KH']='KH',c['KI']='KI',c['KM']='KM',c['KN']='KN',c['KP']='KP',c['KR']='KR',c['KW']='KW',c['KY']='KY',c['KZ']='KZ',c['LA']='LA',c['LB']='LB',c['LC']='LC',c['LI']='LI',c['LK']='LK',c['LR']='LR',c['LS']='LS',c['LT']='LT',c['LU']='LU',c['LV']='LV',c['LY']='LY',c['MA']='MA',c['MC']='MC',c['MD']='MD',c['ME']='ME',c['MF']='MF',c['MG']='MG',c['MH']='MH',c['MK']='MK',c['ML']='ML',c['MM']='MM',c['MN']='MN',c['MO']='MO',c['MP']='MP',c['MQ']='MQ',c['MR']='MR',c['MS']='MS',c['MT']='MT',c['MU']='MU',c['MV']='MV',c['MW']='MW',c['MX']='MX',c['MY']='MY',c['MZ']='MZ',c['NA']='NA',c['NC']='NC',c['NE']='NE',c['NF']='NF',c['NG']='NG',c['NI']='NI',c['NL']='NL',c['NO']='NO',c['NP']='NP',c['NR']='NR',c['NU']='NU',c['NZ']='NZ',c['OM']='OM',c['PA']='PA',c['PE']='PE',c['PF']='PF',c['PG']='PG',c['PH']='PH',c['PK']='PK',c['PL']='PL',c['PM']='PM',c['PN']='PN',c['PR']='PR',c['PS']='PS',c['PT']='PT',c['PW']='PW',c['PY']='PY',c['QA']='QA',c['RE']='RE',c['RO']='RO',c['RS']='RS',c['RU']='RU',c['RW']='RW',c['SA']='SA',c['SB']='SB',c['SC']='SC',c['SD']='SD',c['SE']='SE',c['SG']='SG',c['SH']='SH',c['SI']='SI',c['SJ']='SJ',c['SK']='SK',c['SL']='SL',c['SM']='SM',c['SN']='SN',c['SO']='SO',c['SR']='SR',c['SS']='SS',c['ST']='ST',c['SV']='SV',c['SX']='SX',c['SY']='SY',c['SZ']='SZ',c['TC']='TC',c['TD']='TD',c['TF']='TF',c['TG']='TG',c['TH']='TH',c['TJ']='TJ',c['TK']='TK',c['TL']='TL',c['TM']='TM',c['TN']='TN',c['TO']='TO',c['TP']='TP',c['TR']='TR',c['TT']='TT',c['TV']='TV',c['TW']='TW',c['TZ']='TZ',c['UA']='UA',c['UG']='UG',c['US']='US',c['UY']='UY',c['UZ']='UZ',c['VA']='VA',c['VC']='VC',c['VE']='VE',c['VG']='VG',c['VI']='VI',c['VN']='VN',c['VU']='VU',c['WF']='WF',c['WS']='WS',c['YE']='YE',c['YT']='YT',c['ZA']='ZA',c['ZM']='ZM',c['ZW']='ZW';}(CountryCode||(CountryCode={})));
1
+ (function(a,b){var k=a132d,c=a();while(!![]){try{var d=parseInt(k(0x1a7))/0x1+-parseInt(k(0x1a4))/0x2*(-parseInt(k(0x1ad))/0x3)+parseInt(k(0x1ab))/0x4*(parseInt(k(0x1a5))/0x5)+parseInt(k(0x1b1))/0x6*(parseInt(k(0x1a8))/0x7)+-parseInt(k(0x1a6))/0x8*(parseInt(k(0x1af))/0x9)+parseInt(k(0x1a9))/0xa*(parseInt(k(0x1ac))/0xb)+-parseInt(k(0x1b0))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a132c,0x409e3));export var CountryCode;function a132c(){var m=['449348htPHOD','14EFnKnV','860HALWOi','search','108ZimHny','46937iRQvNo','2757SjgzFg','constructor','266643uNQrLg','16364100OYLjHy','1532508jtIFlv','(((.+)+)+)+$','toString','814yXQToI','30405uFqwTu','64kCWmXs'];a132c=function(){return m;};return a132c();}function a132d(a,b){var c=a132c();return a132d=function(d,e){d=d-0x1a3;var f=c[d];return f;},a132d(a,b);}(function(c){var d=(function(){var f=!![];return function(g,h){var i=f?function(){if(h){var j=h['apply'](g,arguments);return h=null,j;}}:function(){};return f=![],i;};}()),e=d(this,function(){var l=a132d;return e[l(0x1a3)]()[l(0x1aa)](l(0x1b2))[l(0x1a3)]()[l(0x1ae)](e)[l(0x1aa)](l(0x1b2));});e(),c['AC']='AC',c['AD']='AD',c['AE']='AE',c['AF']='AF',c['AG']='AG',c['AI']='AI',c['AL']='AL',c['AM']='AM',c['AN']='AN',c['AO']='AO',c['AQ']='AQ',c['AR']='AR',c['AS']='AS',c['AT']='AT',c['AU']='AU',c['AW']='AW',c['AX']='AX',c['AZ']='AZ',c['BA']='BA',c['BB']='BB',c['BD']='BD',c['BE']='BE',c['BF']='BF',c['BG']='BG',c['BH']='BH',c['BI']='BI',c['BJ']='BJ',c['BL']='BL',c['BM']='BM',c['BN']='BN',c['BO']='BO',c['BQ']='BQ',c['BR']='BR',c['BS']='BS',c['BT']='BT',c['BV']='BV',c['BW']='BW',c['BY']='BY',c['BZ']='BZ',c['CA']='CA',c['CC']='CC',c['CD']='CD',c['CF']='CF',c['CG']='CG',c['CH']='CH',c['CI']='CI',c['CK']='CK',c['CL']='CL',c['CM']='CM',c['CN']='CN',c['CO']='CO',c['CR']='CR',c['CU']='CU',c['CV']='CV',c['CW']='CW',c['CX']='CX',c['CY']='CY',c['CZ']='CZ',c['DE']='DE',c['DJ']='DJ',c['DK']='DK',c['DM']='DM',c['DO']='DO',c['DZ']='DZ',c['EC']='EC',c['EE']='EE',c['EG']='EG',c['EH']='EH',c['ER']='ER',c['ES']='ES',c['ET']='ET',c['FI']='FI',c['FJ']='FJ',c['FK']='FK',c['FM']='FM',c['FO']='FO',c['FR']='FR',c['GA']='GA',c['GB']='GB',c['GD']='GD',c['GE']='GE',c['GF']='GF',c['GG']='GG',c['GH']='GH',c['GI']='GI',c['GL']='GL',c['GM']='GM',c['GN']='GN',c['GP']='GP',c['GQ']='GQ',c['GR']='GR',c['GS']='GS',c['GT']='GT',c['GU']='GU',c['GW']='GW',c['GY']='GY',c['HK']='HK',c['HM']='HM',c['HN']='HN',c['HR']='HR',c['HT']='HT',c['HU']='HU',c['ID']='ID',c['IE']='IE',c['IL']='IL',c['IM']='IM',c['IN']='IN',c['IO']='IO',c['IQ']='IQ',c['IR']='IR',c['IS']='IS',c['IT']='IT',c['JE']='JE',c['JM']='JM',c['JO']='JO',c['JP']='JP',c['KE']='KE',c['KG']='KG',c['KH']='KH',c['KI']='KI',c['KM']='KM',c['KN']='KN',c['KP']='KP',c['KR']='KR',c['KW']='KW',c['KY']='KY',c['KZ']='KZ',c['LA']='LA',c['LB']='LB',c['LC']='LC',c['LI']='LI',c['LK']='LK',c['LR']='LR',c['LS']='LS',c['LT']='LT',c['LU']='LU',c['LV']='LV',c['LY']='LY',c['MA']='MA',c['MC']='MC',c['MD']='MD',c['ME']='ME',c['MF']='MF',c['MG']='MG',c['MH']='MH',c['MK']='MK',c['ML']='ML',c['MM']='MM',c['MN']='MN',c['MO']='MO',c['MP']='MP',c['MQ']='MQ',c['MR']='MR',c['MS']='MS',c['MT']='MT',c['MU']='MU',c['MV']='MV',c['MW']='MW',c['MX']='MX',c['MY']='MY',c['MZ']='MZ',c['NA']='NA',c['NC']='NC',c['NE']='NE',c['NF']='NF',c['NG']='NG',c['NI']='NI',c['NL']='NL',c['NO']='NO',c['NP']='NP',c['NR']='NR',c['NU']='NU',c['NZ']='NZ',c['OM']='OM',c['PA']='PA',c['PE']='PE',c['PF']='PF',c['PG']='PG',c['PH']='PH',c['PK']='PK',c['PL']='PL',c['PM']='PM',c['PN']='PN',c['PR']='PR',c['PS']='PS',c['PT']='PT',c['PW']='PW',c['PY']='PY',c['QA']='QA',c['RE']='RE',c['RO']='RO',c['RS']='RS',c['RU']='RU',c['RW']='RW',c['SA']='SA',c['SB']='SB',c['SC']='SC',c['SD']='SD',c['SE']='SE',c['SG']='SG',c['SH']='SH',c['SI']='SI',c['SJ']='SJ',c['SK']='SK',c['SL']='SL',c['SM']='SM',c['SN']='SN',c['SO']='SO',c['SR']='SR',c['SS']='SS',c['ST']='ST',c['SV']='SV',c['SX']='SX',c['SY']='SY',c['SZ']='SZ',c['TC']='TC',c['TD']='TD',c['TF']='TF',c['TG']='TG',c['TH']='TH',c['TJ']='TJ',c['TK']='TK',c['TL']='TL',c['TM']='TM',c['TN']='TN',c['TO']='TO',c['TP']='TP',c['TR']='TR',c['TT']='TT',c['TV']='TV',c['TW']='TW',c['TZ']='TZ',c['UA']='UA',c['UG']='UG',c['US']='US',c['UY']='UY',c['UZ']='UZ',c['VA']='VA',c['VC']='VC',c['VE']='VE',c['VG']='VG',c['VI']='VI',c['VN']='VN',c['VU']='VU',c['WF']='WF',c['WS']='WS',c['YE']='YE',c['YT']='YT',c['ZA']='ZA',c['ZM']='ZM',c['ZW']='ZW';}(CountryCode||(CountryCode={})));
@@ -1 +1 @@
1
- function a133d(a,b){const c=a133c();return a133d=function(d,e){d=d-0x164;let f=c[d];return f;},a133d(a,b);}const a133m=a133d;(function(a,b){const j=a133d,c=a();while(!![]){try{const d=parseInt(j(0x16a))/0x1*(-parseInt(j(0x176))/0x2)+-parseInt(j(0x165))/0x3*(-parseInt(j(0x178))/0x4)+-parseInt(j(0x174))/0x5+-parseInt(j(0x172))/0x6+parseInt(j(0x166))/0x7+parseInt(j(0x179))/0x8+parseInt(j(0x173))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a133c,0x4af3d));const a133b=(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;};}()),a133a=a133b(this,function(){const k=a133d;return a133a[k(0x175)]()[k(0x17d)](k(0x17e))[k(0x175)]()[k(0x17c)](a133a)[k(0x17d)](k(0x17e));});a133a();import{execSync}from'child_process';import{Log}from'../log/log.class.js';export class Docker{static['tag']({imageName:a,awsAccountId:b,region:c,repoName:d}){const l=a133d;try{const f=[l(0x177),a,b+l(0x164)+c+l(0x171)+d],g=l(0x16e)+f[l(0x16b)]('\x20'),h=execSync(g,{'stdio':l(0x168)})[l(0x175)]();return h;}catch(i){return Log[l(0x16d)](i),'';}}static[a133m(0x17a)]({awsAccountId:a,region:b}){const n=a133m;try{const c=[n(0x16c),n(0x16f),n(0x17b),n(0x169),a+'.dkr.ecr.'+b+'.amazonaws.com'],d=n(0x16e)+c[n(0x16b)]('\x20'),f=execSync(d,{'stdio':n(0x168)})['toString']();return f;}catch(g){return Log[n(0x16d)](g),'';}}static[a133m(0x167)]({awsAccountId:a,region:b,repoName:c}){const o=a133m;try{const d=[o(0x170),a+o(0x164)+b+o(0x171)+c],f=o(0x16e)+d['join']('\x20'),g=execSync(f,{'stdio':'inherit'})[o(0x175)]();return g;}catch(h){return Log['error'](h),'';}}}function a133c(){const p=['.amazonaws.com/','3078258HLtpZm','6153120sQzuOi','2048095jbqVSG','toString','153836hhACNn','tag','4nMrcHj','1614216XZhnWl','awsLogin','AWS','constructor','search','(((.+)+)+)+$','.dkr.ecr.','1651407cNdiZt','1248317FNvenA','pushImage','inherit','--password-stdin','5ZBDNJX','join','login','error','docker\x20','--username','push'];a133c=function(){return p;};return a133c();}
1
+ const a133m=a133d;(function(a,b){const j=a133d,c=a();while(!![]){try{const d=parseInt(j(0x106))/0x1+-parseInt(j(0x10c))/0x2+-parseInt(j(0x10e))/0x3+parseInt(j(0x109))/0x4+-parseInt(j(0x117))/0x5+-parseInt(j(0x10f))/0x6*(parseInt(j(0x105))/0x7)+parseInt(j(0x10b))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a133c,0xf26d6));const a133b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a133d;if(c){const e=c[k(0x113)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a133a=a133b(this,function(){const l=a133d;return a133a['toString']()[l(0x111)](l(0xff))[l(0x112)]()[l(0x102)](a133a)[l(0x111)](l(0xff));});function a133d(a,b){const c=a133c();return a133d=function(d,e){d=d-0xfe;let f=c[d];return f;},a133d(a,b);}a133a();import{execSync}from'child_process';import{Log}from'../log/log.class.js';export class Docker{static[a133m(0x116)]({imageName:a,awsAccountId:b,region:c,repoName:d}){const n=a133m;try{const f=[n(0x116),a,b+'.dkr.ecr.'+c+n(0x114)+d],g=n(0x101)+f[n(0x108)]('\x20'),h=execSync(g,{'stdio':n(0x10d)})['toString']();return h;}catch(i){return Log['error'](i),'';}}static[a133m(0xfe)]({awsAccountId:a,region:b}){const o=a133m;try{const c=[o(0x103),o(0x100),o(0x10a),o(0x104),a+'.dkr.ecr.'+b+o(0x110)],d=o(0x101)+c[o(0x108)]('\x20'),f=execSync(d,{'stdio':'inherit'})['toString']();return f;}catch(g){return Log['error'](g),'';}}static['pushImage']({awsAccountId:a,region:b,repoName:c}){const p=a133m;try{const d=['push',a+p(0x115)+b+'.amazonaws.com/'+c],f=p(0x101)+d[p(0x108)]('\x20'),g=execSync(f,{'stdio':p(0x10d)})['toString']();return g;}catch(h){return Log[p(0x107)](h),'';}}}function a133c(){const q=['2599250pVHFmh','awsLogin','(((.+)+)+)+$','--username','docker\x20','constructor','login','--password-stdin','77JIjYIS','1238958ipgEVA','error','join','2512168pYzaVS','AWS','19990216jrBNyo','3280596tGziMq','inherit','898545aQWume','498072cKTIUK','.amazonaws.com','search','toString','apply','.amazonaws.com/','.dkr.ecr.','tag'];a133c=function(){return q;};return a133c();}
@@ -1 +1 @@
1
- (function(a,b){var f=a134d,c=a();while(!![]){try{var d=-parseInt(f(0x1aa))/0x1*(parseInt(f(0x1ae))/0x2)+-parseInt(f(0x1ad))/0x3+parseInt(f(0x1b3))/0x4*(parseInt(f(0x1ab))/0x5)+-parseInt(f(0x1b6))/0x6+-parseInt(f(0x1b5))/0x7*(parseInt(f(0x1b2))/0x8)+-parseInt(f(0x1ac))/0x9+parseInt(f(0x1b1))/0xa*(parseInt(f(0x1b0))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a134c,0x2e267));function a134c(){var i=['(((.+)+)+)+$','62920eCdUwX','1360gUufuW','1336FpYDhz','1832oUCupP','apply','13426teIlIo','1730928XkATBE','search','15ywoSyU','3205cfUoSN','313110QNjwwG','609414sBUcXQ','4766dEgOhU'];a134c=function(){return i;};return a134c();}var a134b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a134d;if(c){var e=c[g(0x1b4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a134a=a134b(this,function(){var h=a134d;return a134a['toString']()['search'](h(0x1af))['toString']()['constructor'](a134a)[h(0x1a9)]('(((.+)+)+)+$');});function a134d(a,b){var c=a134c();return a134d=function(d,e){d=d-0x1a9;var f=c[d];return f;},a134d(a,b);}a134a();export{};
1
+ function a134d(a,b){var c=a134c();return a134d=function(d,e){d=d-0x76;var f=c[d];return f;},a134d(a,b);}(function(a,b){var f=a134d,c=a();while(!![]){try{var d=-parseInt(f(0x82))/0x1*(parseInt(f(0x7b))/0x2)+-parseInt(f(0x7a))/0x3*(-parseInt(f(0x79))/0x4)+-parseInt(f(0x85))/0x5+parseInt(f(0x7d))/0x6+-parseInt(f(0x7e))/0x7*(parseInt(f(0x77))/0x8)+parseInt(f(0x7f))/0x9+-parseInt(f(0x78))/0xa*(-parseInt(f(0x80))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a134c,0x67dfa));var a134b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a134d;if(c){var e=c[g(0x84)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a134a=a134b(this,function(){var h=a134d;return a134a[h(0x7c)]()[h(0x83)](h(0x76))[h(0x7c)]()[h(0x81)](a134a)[h(0x83)](h(0x76));});a134a();function a134c(){var i=['toString','868032KnAyXe','203JPUZeS','3292407rYVCxk','5744739dmoKxy','constructor','971wTHEiW','search','apply','2765915HaCoMh','(((.+)+)+)+$','45408pUPRfI','10EBazFN','12DfJVAI','449388qMNaBk','698wbUqFx'];a134c=function(){return i;};return a134c();}export{};