@maka/maka-cli 5.1.17 → 5.1.19

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 (645) hide show
  1. package/bundle/obf/package.json +1 -1
  2. package/bundle/obf/src/command.js +1 -1
  3. package/bundle/obf/src/commands/_index.js +1 -1
  4. package/bundle/obf/src/commands/ai.js +1 -1
  5. package/bundle/obf/src/commands/aws/_index.js +1 -1
  6. package/bundle/obf/src/commands/aws/aws.command.js +1 -1
  7. package/bundle/obf/src/commands/aws/cecr.sub.cmd.js +1 -1
  8. package/bundle/obf/src/commands/aws/chz.sub.cmd.js +1 -1
  9. package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
  10. package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
  11. package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
  12. package/bundle/obf/src/commands/aws/decr.sub.cmd.js +1 -1
  13. package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
  14. package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
  15. package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
  16. package/bundle/obf/src/commands/aws/lecr.sub.cmd.js +1 -1
  17. package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
  18. package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
  19. package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
  20. package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
  21. package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
  22. package/bundle/obf/src/commands/build/_index.js +1 -1
  23. package/bundle/obf/src/commands/build/build.js +1 -1
  24. package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
  25. package/bundle/obf/src/commands/create.js +1 -1
  26. package/bundle/obf/src/commands/debug.js +1 -1
  27. package/bundle/obf/src/commands/deploy/_index.js +1 -1
  28. package/bundle/obf/src/commands/deploy/deploy.command.js +1 -1
  29. package/bundle/obf/src/commands/deploy/galaxy.sub.cmd.js +1 -1
  30. package/bundle/obf/src/commands/deploy/ubuntu.sub.cmd.js +1 -1
  31. package/bundle/obf/src/commands/game/_index.js +1 -1
  32. package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
  33. package/bundle/obf/src/commands/game/play.command.js +1 -1
  34. package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
  35. package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
  36. package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
  37. package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
  38. package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
  39. package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
  40. package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
  41. package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
  42. package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
  43. package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
  44. package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
  45. package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
  46. package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
  47. package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
  48. package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
  49. package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
  50. package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
  51. package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
  52. package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
  53. package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
  54. package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
  55. package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
  56. package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
  57. package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
  58. package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
  59. package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
  60. package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
  61. package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
  62. package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
  63. package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
  64. package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
  65. package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
  66. package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
  67. package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
  68. package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
  69. package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
  70. package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
  71. package/bundle/obf/src/commands/generate.js +1 -1
  72. package/bundle/obf/src/commands/get/_index.js +1 -1
  73. package/bundle/obf/src/commands/get/get.command.js +1 -1
  74. package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
  75. package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
  76. package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
  77. package/bundle/obf/src/commands/help.js +1 -1
  78. package/bundle/obf/src/commands/install.js +1 -1
  79. package/bundle/obf/src/commands/jsdoc.js +1 -1
  80. package/bundle/obf/src/commands/lint.js +1 -1
  81. package/bundle/obf/src/commands/login.js +1 -1
  82. package/bundle/obf/src/commands/logout.js +1 -1
  83. package/bundle/obf/src/commands/logs.js +1 -1
  84. package/bundle/obf/src/commands/maka.cmd.js +1 -1
  85. package/bundle/obf/src/commands/murder.js +1 -1
  86. package/bundle/obf/src/commands/profile.js +1 -1
  87. package/bundle/obf/src/commands/proxy.js +1 -1
  88. package/bundle/obf/src/commands/reconfig.js +1 -1
  89. package/bundle/obf/src/commands/register.js +1 -1
  90. package/bundle/obf/src/commands/run/_index.js +1 -1
  91. package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
  92. package/bundle/obf/src/commands/run/run.command.js +1 -1
  93. package/bundle/obf/src/commands/set/_index.js +1 -1
  94. package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
  95. package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
  96. package/bundle/obf/src/commands/set/set.command.js +1 -1
  97. package/bundle/obf/src/commands/ssh.js +1 -1
  98. package/bundle/obf/src/commands/ssl.js +1 -1
  99. package/bundle/obf/src/commands/testCmd/_index.js +1 -1
  100. package/bundle/obf/src/commands/testCmd/jest.sub.cmd.js +1 -1
  101. package/bundle/obf/src/commands/testCmd/mocha.sub.cmd.js +1 -1
  102. package/bundle/obf/src/commands/testCmd/test.command.js +1 -1
  103. package/bundle/obf/src/commands/undo.js +1 -1
  104. package/bundle/obf/src/commands/uninstall.js +1 -1
  105. package/bundle/obf/src/commands/version/_index.js +1 -1
  106. package/bundle/obf/src/commands/version/list.sub.cmd.js +1 -1
  107. package/bundle/obf/src/commands/version/use.sub.cmd.js +1 -1
  108. package/bundle/obf/src/commands/version/version.js +1 -1
  109. package/bundle/obf/src/error.js +1 -1
  110. package/bundle/obf/src/exec.js +1 -1
  111. package/bundle/obf/src/generator.js +1 -1
  112. package/bundle/obf/src/generators/_index.js +1 -1
  113. package/bundle/obf/src/generators/api.js +1 -1
  114. package/bundle/obf/src/generators/aws/_index.js +1 -1
  115. package/bundle/obf/src/generators/aws/aws.js +1 -1
  116. package/bundle/obf/src/generators/aws/cloudformation/_index.js +1 -1
  117. package/bundle/obf/src/generators/aws/cloudformation/cloudformation.js +1 -1
  118. package/bundle/obf/src/generators/aws/cloudformation/create-ec2-instance.cf.gen.js +1 -1
  119. package/bundle/obf/src/generators/collection.js +1 -1
  120. package/bundle/obf/src/generators/component.js +1 -1
  121. package/bundle/obf/src/generators/config.js +1 -1
  122. package/bundle/obf/src/generators/dbc.js +1 -1
  123. package/bundle/obf/src/generators/dockerfile.js +1 -1
  124. package/bundle/obf/src/generators/hook.js +1 -1
  125. package/bundle/obf/src/generators/kits/_index.js +1 -1
  126. package/bundle/obf/src/generators/kits/auth/_index.js +1 -1
  127. package/bundle/obf/src/generators/kits/auth/auth.generator.js +1 -1
  128. package/bundle/obf/src/generators/kits/auth/basic-meteor.auth.gen.js +1 -1
  129. package/bundle/obf/src/generators/kits/auth/provider.auth.gen.js +1 -1
  130. package/bundle/obf/src/generators/kits/esri/_index.js +1 -1
  131. package/bundle/obf/src/generators/kits/esri/esri.generator.js +1 -1
  132. package/bundle/obf/src/generators/kits/esri/map.esri.gen.js +1 -1
  133. package/bundle/obf/src/generators/kits/kit.js +1 -1
  134. package/bundle/obf/src/generators/kits/mui/_index.js +1 -1
  135. package/bundle/obf/src/generators/kits/mui/auth.mui.gen.js +1 -1
  136. package/bundle/obf/src/generators/kits/mui/frame.mui.gen.js +1 -1
  137. package/bundle/obf/src/generators/kits/mui/mui.generator.js +1 -1
  138. package/bundle/obf/src/generators/layout.js +1 -1
  139. package/bundle/obf/src/generators/maka.gen.js +1 -1
  140. package/bundle/obf/src/generators/methods.js +1 -1
  141. package/bundle/obf/src/generators/package.js +1 -1
  142. package/bundle/obf/src/generators/page.js +1 -1
  143. package/bundle/obf/src/generators/publish.js +1 -1
  144. package/bundle/obf/src/generators/route.js +1 -1
  145. package/bundle/obf/src/generators/service.js +1 -1
  146. package/bundle/obf/src/generators/services/_index.js +1 -1
  147. package/bundle/obf/src/generators/services/openssl.js +1 -1
  148. package/bundle/obf/src/generators/services/translation.js +1 -1
  149. package/bundle/obf/src/maka.js +1 -1
  150. package/bundle/obf/src/templates/react/test/test.js +1 -0
  151. package/bundle/obf/src/templates/react/test/test.js.jsx +38 -0
  152. package/bundle/obf/src/templates/react/test/test.js.ts +1 -0
  153. package/bundle/obf/src/templates/react/test/test.js.tsx +38 -0
  154. package/bundle/obf/src/templates/service/test/jest/jest.config.js +6 -0
  155. package/bundle/obf/src/templates/service/test/jest/jest.setup.js +7 -0
  156. package/bundle/obf/src/tool.js +1 -1
  157. package/bundle/obf/src/tools/actions/actions.class.js +1 -1
  158. package/bundle/obf/src/tools/aws/aws.class.js +1 -1
  159. package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
  160. package/bundle/obf/src/tools/cfg/cfg.class.js +1 -1
  161. package/bundle/obf/src/tools/docker/docker.class.js +1 -1
  162. package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
  163. package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
  164. package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
  165. package/bundle/obf/src/tools/https/https.class.js +1 -1
  166. package/bundle/obf/src/tools/https/https.interface.js +1 -1
  167. package/bundle/obf/src/tools/log/log.class.js +1 -1
  168. package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
  169. package/bundle/obf/src/tools/mpi/mpi.class.js +1 -1
  170. package/bundle/obf/src/tools/options/options.class.js +1 -1
  171. package/bundle/obf/src/tools/pkg/pkg.class.js +1 -1
  172. package/bundle/obf/src/tools/progress/progress.class.js +1 -1
  173. package/bundle/obf/src/tools/scaffold/scaffold.class.js +1 -1
  174. package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
  175. package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
  176. package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
  177. package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
  178. package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
  179. package/package.json +1 -1
  180. package/test/integration/default.test.js +84 -0
  181. package/test/integration/fixtures/blaze/.maka/config.json +30 -0
  182. package/test/integration/fixtures/blaze/.tern-project +17 -0
  183. package/test/integration/fixtures/blaze/app/.meteor/.finished-upgraders +17 -0
  184. package/test/integration/fixtures/blaze/app/.meteor/.id +7 -0
  185. package/test/integration/fixtures/blaze/app/.meteor/packages +21 -0
  186. package/test/integration/fixtures/blaze/app/.meteor/platforms +2 -0
  187. package/test/integration/fixtures/blaze/app/.meteor/release +1 -0
  188. package/test/integration/fixtures/blaze/app/.meteor/versions +78 -0
  189. package/test/integration/fixtures/blaze/app/client/.gitkeep +1 -0
  190. package/test/integration/fixtures/blaze/app/client/body.html +2 -0
  191. package/test/integration/fixtures/blaze/app/client/head.html +8 -0
  192. package/test/integration/fixtures/blaze/app/client/main.js +1 -0
  193. package/test/integration/fixtures/blaze/app/imports/api/.gitkeep +1 -0
  194. package/test/integration/fixtures/blaze/app/imports/startup/client/index.js +3 -0
  195. package/test/integration/fixtures/blaze/app/imports/startup/client/routes.js +25 -0
  196. package/test/integration/fixtures/blaze/app/imports/startup/client/templates.js +15 -0
  197. package/test/integration/fixtures/blaze/app/imports/startup/lib/index.js +1 -0
  198. package/test/integration/fixtures/blaze/app/imports/startup/server/index.js +1 -0
  199. package/test/integration/fixtures/blaze/app/imports/ui/layouts/master-layout/master-layout.css +5 -0
  200. package/test/integration/fixtures/blaze/app/imports/ui/layouts/master-layout/master-layout.html +3 -0
  201. package/test/integration/fixtures/blaze/app/imports/ui/layouts/master-layout/master-layout.js +29 -0
  202. package/test/integration/fixtures/blaze/app/imports/ui/pages/home/home.css +5 -0
  203. package/test/integration/fixtures/blaze/app/imports/ui/pages/home/home.html +5 -0
  204. package/test/integration/fixtures/blaze/app/imports/ui/pages/home/home.js +53 -0
  205. package/test/integration/fixtures/blaze/app/imports/ui/pages/not-found/not-found.css +5 -0
  206. package/test/integration/fixtures/blaze/app/imports/ui/pages/not-found/not-found.html +5 -0
  207. package/test/integration/fixtures/blaze/app/imports/ui/pages/not-found/not-found.js +53 -0
  208. package/test/integration/fixtures/blaze/app/imports/ui/test-helpers.js +25 -0
  209. package/test/integration/fixtures/blaze/app/lib/.gitkeep +1 -0
  210. package/test/integration/fixtures/blaze/app/lib/main.js +1 -0
  211. package/test/integration/fixtures/blaze/app/packages/.gitkeep +1 -0
  212. package/test/integration/fixtures/blaze/app/private/.gitkeep +1 -0
  213. package/test/integration/fixtures/blaze/app/public/.gitkeep +1 -0
  214. package/test/integration/fixtures/blaze/app/public/favicon.ico +0 -0
  215. package/test/integration/fixtures/blaze/app/server/.gitkeep +1 -0
  216. package/test/integration/fixtures/blaze/app/server/main.js +1 -0
  217. package/test/integration/fixtures/blaze/bin/.gitkeep +1 -0
  218. package/test/integration/fixtures/blaze/build/.gitkeep +1 -0
  219. package/test/integration/fixtures/blaze/build/README +4 -0
  220. package/test/integration/fixtures/blaze/config/.gitkeep +1 -0
  221. package/test/integration/fixtures/blaze/config/development/env.sh +9 -0
  222. package/test/integration/fixtures/blaze/config/development/settings.json +6 -0
  223. package/test/integration/fixtures/blaze/config/production/env.sh +9 -0
  224. package/test/integration/fixtures/blaze/config/production/settings.json +6 -0
  225. package/test/integration/fixtures/blaze/config/staging/env.sh +9 -0
  226. package/test/integration/fixtures/blaze/config/staging/settings.json +6 -0
  227. package/test/integration/fixtures/react/.maka/config.json +30 -0
  228. package/test/integration/fixtures/react/.tern-project +17 -0
  229. package/test/integration/fixtures/react/app/.meteor/.finished-upgraders +17 -0
  230. package/test/integration/fixtures/react/app/.meteor/.id +7 -0
  231. package/test/integration/fixtures/react/app/.meteor/packages +21 -0
  232. package/test/integration/fixtures/react/app/.meteor/platforms +2 -0
  233. package/test/integration/fixtures/react/app/.meteor/release +1 -0
  234. package/test/integration/fixtures/react/app/.meteor/versions +78 -0
  235. package/test/integration/fixtures/react/app/client/.gitkeep +1 -0
  236. package/test/integration/fixtures/react/app/client/body.html +3 -0
  237. package/test/integration/fixtures/react/app/client/head.html +8 -0
  238. package/test/integration/fixtures/react/app/client/main.jsx +1 -0
  239. package/test/integration/fixtures/react/app/imports/api/.gitkeep +1 -0
  240. package/test/integration/fixtures/react/app/imports/startup/client/index.jsx +12 -0
  241. package/test/integration/fixtures/react/app/imports/startup/client/routes.jsx +24 -0
  242. package/test/integration/fixtures/react/app/imports/startup/client/templates.jsx +21 -0
  243. package/test/integration/fixtures/react/app/imports/startup/lib/index.jsx +1 -0
  244. package/test/integration/fixtures/react/app/imports/startup/server/index.jsx +1 -0
  245. package/test/integration/fixtures/react/app/imports/ui/layouts/master-layout/master-layout.css +5 -0
  246. package/test/integration/fixtures/react/app/imports/ui/layouts/master-layout/master-layout.jsx +28 -0
  247. package/test/integration/fixtures/react/app/imports/ui/pages/home/home.css +5 -0
  248. package/test/integration/fixtures/react/app/imports/ui/pages/home/home.jsx +29 -0
  249. package/test/integration/fixtures/react/app/imports/ui/pages/not-found/not-found.css +5 -0
  250. package/test/integration/fixtures/react/app/imports/ui/pages/not-found/not-found.jsx +29 -0
  251. package/test/integration/fixtures/react/app/imports/ui/test-helpers.jsx +1 -0
  252. package/test/integration/fixtures/react/app/lib/.gitkeep +1 -0
  253. package/test/integration/fixtures/react/app/lib/main.jsx +1 -0
  254. package/test/integration/fixtures/react/app/packages/.gitkeep +1 -0
  255. package/test/integration/fixtures/react/app/private/.gitkeep +1 -0
  256. package/test/integration/fixtures/react/app/public/.gitkeep +1 -0
  257. package/test/integration/fixtures/react/app/public/favicon.ico +0 -0
  258. package/test/integration/fixtures/react/app/server/.gitkeep +1 -0
  259. package/test/integration/fixtures/react/app/server/main.jsx +1 -0
  260. package/test/integration/fixtures/react/bin/.gitkeep +1 -0
  261. package/test/integration/fixtures/react/build/.gitkeep +1 -0
  262. package/test/integration/fixtures/react/build/README +4 -0
  263. package/test/integration/fixtures/react/config/.gitkeep +1 -0
  264. package/test/integration/fixtures/react/config/development/env.sh +9 -0
  265. package/test/integration/fixtures/react/config/development/settings.json +6 -0
  266. package/test/integration/fixtures/react/config/production/env.sh +9 -0
  267. package/test/integration/fixtures/react/config/production/settings.json +6 -0
  268. package/test/integration/fixtures/react/config/staging/env.sh +9 -0
  269. package/test/integration/fixtures/react/config/staging/settings.json +6 -0
  270. package/test/integration/fixtures/react-apollo/.maka/config.json +30 -0
  271. package/test/integration/fixtures/react-apollo/.tern-project +17 -0
  272. package/test/integration/fixtures/react-apollo/app/.meteor/.finished-upgraders +17 -0
  273. package/test/integration/fixtures/react-apollo/app/.meteor/.id +7 -0
  274. package/test/integration/fixtures/react-apollo/app/.meteor/packages +21 -0
  275. package/test/integration/fixtures/react-apollo/app/.meteor/platforms +2 -0
  276. package/test/integration/fixtures/react-apollo/app/.meteor/release +1 -0
  277. package/test/integration/fixtures/react-apollo/app/.meteor/versions +78 -0
  278. package/test/integration/fixtures/react-apollo/app/client/.gitkeep +1 -0
  279. package/test/integration/fixtures/react-apollo/app/client/body.html +3 -0
  280. package/test/integration/fixtures/react-apollo/app/client/head.html +8 -0
  281. package/test/integration/fixtures/react-apollo/app/client/main.jsx +1 -0
  282. package/test/integration/fixtures/react-apollo/app/imports/api/.gitkeep +1 -0
  283. package/test/integration/fixtures/react-apollo/app/imports/startup/client/index.jsx +20 -0
  284. package/test/integration/fixtures/react-apollo/app/imports/startup/client/routes.jsx +24 -0
  285. package/test/integration/fixtures/react-apollo/app/imports/startup/client/templates.jsx +21 -0
  286. package/test/integration/fixtures/react-apollo/app/imports/startup/lib/index.jsx +1 -0
  287. package/test/integration/fixtures/react-apollo/app/imports/startup/server/index.jsx +25 -0
  288. package/test/integration/fixtures/react-apollo/app/imports/ui/layouts/master-layout/master-layout.css +5 -0
  289. package/test/integration/fixtures/react-apollo/app/imports/ui/layouts/master-layout/master-layout.jsx +28 -0
  290. package/test/integration/fixtures/react-apollo/app/imports/ui/pages/home/home.css +5 -0
  291. package/test/integration/fixtures/react-apollo/app/imports/ui/pages/home/home.jsx +34 -0
  292. package/test/integration/fixtures/react-apollo/app/imports/ui/pages/not-found/not-found.css +5 -0
  293. package/test/integration/fixtures/react-apollo/app/imports/ui/pages/not-found/not-found.jsx +34 -0
  294. package/test/integration/fixtures/react-apollo/app/imports/ui/test-helpers.jsx +1 -0
  295. package/test/integration/fixtures/react-apollo/app/lib/.gitkeep +1 -0
  296. package/test/integration/fixtures/react-apollo/app/lib/main.jsx +1 -0
  297. package/test/integration/fixtures/react-apollo/app/packages/.gitkeep +1 -0
  298. package/test/integration/fixtures/react-apollo/app/private/.gitkeep +1 -0
  299. package/test/integration/fixtures/react-apollo/app/public/.gitkeep +1 -0
  300. package/test/integration/fixtures/react-apollo/app/public/favicon.ico +0 -0
  301. package/test/integration/fixtures/react-apollo/app/server/.gitkeep +1 -0
  302. package/test/integration/fixtures/react-apollo/app/server/main.jsx +1 -0
  303. package/test/integration/fixtures/react-apollo/bin/.gitkeep +1 -0
  304. package/test/integration/fixtures/react-apollo/build/.gitkeep +1 -0
  305. package/test/integration/fixtures/react-apollo/build/README +4 -0
  306. package/test/integration/fixtures/react-apollo/config/.gitkeep +1 -0
  307. package/test/integration/fixtures/react-apollo/config/development/env.sh +9 -0
  308. package/test/integration/fixtures/react-apollo/config/development/settings.json +6 -0
  309. package/test/integration/fixtures/react-apollo/config/production/env.sh +9 -0
  310. package/test/integration/fixtures/react-apollo/config/production/settings.json +6 -0
  311. package/test/integration/fixtures/react-apollo/config/staging/env.sh +9 -0
  312. package/test/integration/fixtures/react-apollo/config/staging/settings.json +6 -0
  313. package/test/integration/fixtures/react-apollo-ssr/.maka/config.json +30 -0
  314. package/test/integration/fixtures/react-apollo-ssr/.tern-project +17 -0
  315. package/test/integration/fixtures/react-apollo-ssr/app/.meteor/.finished-upgraders +17 -0
  316. package/test/integration/fixtures/react-apollo-ssr/app/.meteor/.id +7 -0
  317. package/test/integration/fixtures/react-apollo-ssr/app/.meteor/packages +21 -0
  318. package/test/integration/fixtures/react-apollo-ssr/app/.meteor/platforms +2 -0
  319. package/test/integration/fixtures/react-apollo-ssr/app/.meteor/release +1 -0
  320. package/test/integration/fixtures/react-apollo-ssr/app/.meteor/versions +78 -0
  321. package/test/integration/fixtures/react-apollo-ssr/app/client/.gitkeep +1 -0
  322. package/test/integration/fixtures/react-apollo-ssr/app/client/body.html +3 -0
  323. package/test/integration/fixtures/react-apollo-ssr/app/client/head.html +8 -0
  324. package/test/integration/fixtures/react-apollo-ssr/app/client/main.jsx +1 -0
  325. package/test/integration/fixtures/react-apollo-ssr/app/imports/api/.gitkeep +1 -0
  326. package/test/integration/fixtures/react-apollo-ssr/app/imports/startup/client/index.jsx +29 -0
  327. package/test/integration/fixtures/react-apollo-ssr/app/imports/startup/lib/index.jsx +1 -0
  328. package/test/integration/fixtures/react-apollo-ssr/app/imports/startup/lib/routes.jsx +21 -0
  329. package/test/integration/fixtures/react-apollo-ssr/app/imports/startup/lib/templates.jsx +21 -0
  330. package/test/integration/fixtures/react-apollo-ssr/app/imports/startup/server/index.jsx +65 -0
  331. package/test/integration/fixtures/react-apollo-ssr/app/imports/ui/layouts/master-layout/master-layout.jsx +27 -0
  332. package/test/integration/fixtures/react-apollo-ssr/app/imports/ui/pages/home/home.jsx +33 -0
  333. package/test/integration/fixtures/react-apollo-ssr/app/imports/ui/pages/not-found/not-found.jsx +33 -0
  334. package/test/integration/fixtures/react-apollo-ssr/app/imports/ui/test-helpers.jsx +1 -0
  335. package/test/integration/fixtures/react-apollo-ssr/app/lib/.gitkeep +1 -0
  336. package/test/integration/fixtures/react-apollo-ssr/app/lib/main.jsx +1 -0
  337. package/test/integration/fixtures/react-apollo-ssr/app/packages/.gitkeep +1 -0
  338. package/test/integration/fixtures/react-apollo-ssr/app/private/.gitkeep +1 -0
  339. package/test/integration/fixtures/react-apollo-ssr/app/public/.gitkeep +1 -0
  340. package/test/integration/fixtures/react-apollo-ssr/app/public/favicon.ico +0 -0
  341. package/test/integration/fixtures/react-apollo-ssr/app/server/.gitkeep +1 -0
  342. package/test/integration/fixtures/react-apollo-ssr/app/server/main.jsx +1 -0
  343. package/test/integration/fixtures/react-apollo-ssr/bin/.gitkeep +1 -0
  344. package/test/integration/fixtures/react-apollo-ssr/build/.gitkeep +1 -0
  345. package/test/integration/fixtures/react-apollo-ssr/build/README +4 -0
  346. package/test/integration/fixtures/react-apollo-ssr/config/.gitkeep +1 -0
  347. package/test/integration/fixtures/react-apollo-ssr/config/development/env.sh +9 -0
  348. package/test/integration/fixtures/react-apollo-ssr/config/development/settings.json +6 -0
  349. package/test/integration/fixtures/react-apollo-ssr/config/production/env.sh +9 -0
  350. package/test/integration/fixtures/react-apollo-ssr/config/production/settings.json +6 -0
  351. package/test/integration/fixtures/react-apollo-ssr/config/staging/env.sh +9 -0
  352. package/test/integration/fixtures/react-apollo-ssr/config/staging/settings.json +6 -0
  353. package/test/integration/fixtures/react-material/.maka/config.json +30 -0
  354. package/test/integration/fixtures/react-material/.tern-project +17 -0
  355. package/test/integration/fixtures/react-material/app/.meteor/.finished-upgraders +17 -0
  356. package/test/integration/fixtures/react-material/app/.meteor/.id +7 -0
  357. package/test/integration/fixtures/react-material/app/.meteor/packages +21 -0
  358. package/test/integration/fixtures/react-material/app/.meteor/platforms +2 -0
  359. package/test/integration/fixtures/react-material/app/.meteor/release +1 -0
  360. package/test/integration/fixtures/react-material/app/.meteor/versions +78 -0
  361. package/test/integration/fixtures/react-material/app/client/.gitkeep +1 -0
  362. package/test/integration/fixtures/react-material/app/client/body.html +3 -0
  363. package/test/integration/fixtures/react-material/app/client/head.html +8 -0
  364. package/test/integration/fixtures/react-material/app/client/main.jsx +1 -0
  365. package/test/integration/fixtures/react-material/app/imports/api/.gitkeep +1 -0
  366. package/test/integration/fixtures/react-material/app/imports/startup/client/index.jsx +19 -0
  367. package/test/integration/fixtures/react-material/app/imports/startup/client/routes.jsx +24 -0
  368. package/test/integration/fixtures/react-material/app/imports/startup/client/templates.jsx +21 -0
  369. package/test/integration/fixtures/react-material/app/imports/startup/lib/index.jsx +1 -0
  370. package/test/integration/fixtures/react-material/app/imports/startup/server/index.jsx +1 -0
  371. package/test/integration/fixtures/react-material/app/imports/ui/layouts/master-layout/master-layout.css +5 -0
  372. package/test/integration/fixtures/react-material/app/imports/ui/layouts/master-layout/master-layout.jsx +28 -0
  373. package/test/integration/fixtures/react-material/app/imports/ui/pages/home/home.css +5 -0
  374. package/test/integration/fixtures/react-material/app/imports/ui/pages/home/home.jsx +29 -0
  375. package/test/integration/fixtures/react-material/app/imports/ui/pages/not-found/not-found.css +5 -0
  376. package/test/integration/fixtures/react-material/app/imports/ui/pages/not-found/not-found.jsx +29 -0
  377. package/test/integration/fixtures/react-material/app/imports/ui/test-helpers.jsx +1 -0
  378. package/test/integration/fixtures/react-material/app/lib/.gitkeep +1 -0
  379. package/test/integration/fixtures/react-material/app/lib/main.jsx +1 -0
  380. package/test/integration/fixtures/react-material/app/packages/.gitkeep +1 -0
  381. package/test/integration/fixtures/react-material/app/private/.gitkeep +1 -0
  382. package/test/integration/fixtures/react-material/app/public/.gitkeep +1 -0
  383. package/test/integration/fixtures/react-material/app/public/favicon.ico +0 -0
  384. package/test/integration/fixtures/react-material/app/server/.gitkeep +1 -0
  385. package/test/integration/fixtures/react-material/app/server/main.jsx +1 -0
  386. package/test/integration/fixtures/react-material/bin/.gitkeep +1 -0
  387. package/test/integration/fixtures/react-material/build/.gitkeep +1 -0
  388. package/test/integration/fixtures/react-material/build/README +4 -0
  389. package/test/integration/fixtures/react-material/config/.gitkeep +1 -0
  390. package/test/integration/fixtures/react-material/config/development/env.sh +9 -0
  391. package/test/integration/fixtures/react-material/config/development/settings.json +6 -0
  392. package/test/integration/fixtures/react-material/config/production/env.sh +9 -0
  393. package/test/integration/fixtures/react-material/config/production/settings.json +6 -0
  394. package/test/integration/fixtures/react-material/config/staging/env.sh +9 -0
  395. package/test/integration/fixtures/react-material/config/staging/settings.json +6 -0
  396. package/test/integration/fixtures/react-ssr/.maka/config.json +30 -0
  397. package/test/integration/fixtures/react-ssr/.tern-project +17 -0
  398. package/test/integration/fixtures/react-ssr/app/.meteor/.finished-upgraders +17 -0
  399. package/test/integration/fixtures/react-ssr/app/.meteor/.id +7 -0
  400. package/test/integration/fixtures/react-ssr/app/.meteor/packages +21 -0
  401. package/test/integration/fixtures/react-ssr/app/.meteor/platforms +2 -0
  402. package/test/integration/fixtures/react-ssr/app/.meteor/release +1 -0
  403. package/test/integration/fixtures/react-ssr/app/.meteor/versions +78 -0
  404. package/test/integration/fixtures/react-ssr/app/client/.gitkeep +1 -0
  405. package/test/integration/fixtures/react-ssr/app/client/body.html +3 -0
  406. package/test/integration/fixtures/react-ssr/app/client/head.html +8 -0
  407. package/test/integration/fixtures/react-ssr/app/client/main.jsx +1 -0
  408. package/test/integration/fixtures/react-ssr/app/imports/api/.gitkeep +1 -0
  409. package/test/integration/fixtures/react-ssr/app/imports/startup/client/index.jsx +21 -0
  410. package/test/integration/fixtures/react-ssr/app/imports/startup/lib/index.jsx +1 -0
  411. package/test/integration/fixtures/react-ssr/app/imports/startup/lib/routes.jsx +21 -0
  412. package/test/integration/fixtures/react-ssr/app/imports/startup/lib/templates.jsx +21 -0
  413. package/test/integration/fixtures/react-ssr/app/imports/startup/server/index.jsx +36 -0
  414. package/test/integration/fixtures/react-ssr/app/imports/ui/layouts/master-layout/master-layout.jsx +27 -0
  415. package/test/integration/fixtures/react-ssr/app/imports/ui/pages/home/home.jsx +28 -0
  416. package/test/integration/fixtures/react-ssr/app/imports/ui/pages/not-found/not-found.jsx +28 -0
  417. package/test/integration/fixtures/react-ssr/app/imports/ui/test-helpers.jsx +1 -0
  418. package/test/integration/fixtures/react-ssr/app/lib/.gitkeep +1 -0
  419. package/test/integration/fixtures/react-ssr/app/lib/main.jsx +1 -0
  420. package/test/integration/fixtures/react-ssr/app/packages/.gitkeep +1 -0
  421. package/test/integration/fixtures/react-ssr/app/private/.gitkeep +1 -0
  422. package/test/integration/fixtures/react-ssr/app/public/.gitkeep +1 -0
  423. package/test/integration/fixtures/react-ssr/app/public/favicon.ico +0 -0
  424. package/test/integration/fixtures/react-ssr/app/server/.gitkeep +1 -0
  425. package/test/integration/fixtures/react-ssr/app/server/main.jsx +1 -0
  426. package/test/integration/fixtures/react-ssr/bin/.gitkeep +1 -0
  427. package/test/integration/fixtures/react-ssr/build/.gitkeep +1 -0
  428. package/test/integration/fixtures/react-ssr/build/README +4 -0
  429. package/test/integration/fixtures/react-ssr/config/.gitkeep +1 -0
  430. package/test/integration/fixtures/react-ssr/config/development/env.sh +9 -0
  431. package/test/integration/fixtures/react-ssr/config/development/settings.json +6 -0
  432. package/test/integration/fixtures/react-ssr/config/production/env.sh +9 -0
  433. package/test/integration/fixtures/react-ssr/config/production/settings.json +6 -0
  434. package/test/integration/fixtures/react-ssr/config/staging/env.sh +9 -0
  435. package/test/integration/fixtures/react-ssr/config/staging/settings.json +6 -0
  436. package/test/integration/fixtures/reflux/.maka/config.json +30 -0
  437. package/test/integration/fixtures/reflux/.tern-project +17 -0
  438. package/test/integration/fixtures/reflux/app/.meteor/.finished-upgraders +17 -0
  439. package/test/integration/fixtures/reflux/app/.meteor/.id +7 -0
  440. package/test/integration/fixtures/reflux/app/.meteor/packages +21 -0
  441. package/test/integration/fixtures/reflux/app/.meteor/platforms +2 -0
  442. package/test/integration/fixtures/reflux/app/.meteor/release +1 -0
  443. package/test/integration/fixtures/reflux/app/.meteor/versions +78 -0
  444. package/test/integration/fixtures/reflux/app/client/.gitkeep +1 -0
  445. package/test/integration/fixtures/reflux/app/client/body.html +3 -0
  446. package/test/integration/fixtures/reflux/app/client/head.html +8 -0
  447. package/test/integration/fixtures/reflux/app/client/main.jsx +1 -0
  448. package/test/integration/fixtures/reflux/app/imports/api/.gitkeep +1 -0
  449. package/test/integration/fixtures/reflux/app/imports/startup/client/index.jsx +12 -0
  450. package/test/integration/fixtures/reflux/app/imports/startup/client/routes.jsx +24 -0
  451. package/test/integration/fixtures/reflux/app/imports/startup/client/templates.jsx +21 -0
  452. package/test/integration/fixtures/reflux/app/imports/startup/lib/index.jsx +1 -0
  453. package/test/integration/fixtures/reflux/app/imports/startup/server/index.jsx +1 -0
  454. package/test/integration/fixtures/reflux/app/imports/ui/layouts/master-layout/master-layout.css +5 -0
  455. package/test/integration/fixtures/reflux/app/imports/ui/layouts/master-layout/master-layout.jsx +31 -0
  456. package/test/integration/fixtures/reflux/app/imports/ui/pages/home/home.css +5 -0
  457. package/test/integration/fixtures/reflux/app/imports/ui/pages/home/home.jsx +33 -0
  458. package/test/integration/fixtures/reflux/app/imports/ui/pages/not-found/not-found.css +5 -0
  459. package/test/integration/fixtures/reflux/app/imports/ui/pages/not-found/not-found.jsx +33 -0
  460. package/test/integration/fixtures/reflux/app/imports/ui/test-helpers.jsx +1 -0
  461. package/test/integration/fixtures/reflux/app/lib/.gitkeep +1 -0
  462. package/test/integration/fixtures/reflux/app/lib/main.jsx +1 -0
  463. package/test/integration/fixtures/reflux/app/packages/.gitkeep +1 -0
  464. package/test/integration/fixtures/reflux/app/private/.gitkeep +1 -0
  465. package/test/integration/fixtures/reflux/app/public/.gitkeep +1 -0
  466. package/test/integration/fixtures/reflux/app/public/favicon.ico +0 -0
  467. package/test/integration/fixtures/reflux/app/server/.gitkeep +1 -0
  468. package/test/integration/fixtures/reflux/app/server/main.jsx +1 -0
  469. package/test/integration/fixtures/reflux/bin/.gitkeep +1 -0
  470. package/test/integration/fixtures/reflux/build/.gitkeep +1 -0
  471. package/test/integration/fixtures/reflux/build/README +4 -0
  472. package/test/integration/fixtures/reflux/config/.gitkeep +1 -0
  473. package/test/integration/fixtures/reflux/config/development/env.sh +9 -0
  474. package/test/integration/fixtures/reflux/config/development/settings.json +6 -0
  475. package/test/integration/fixtures/reflux/config/production/env.sh +9 -0
  476. package/test/integration/fixtures/reflux/config/production/settings.json +6 -0
  477. package/test/integration/fixtures/reflux/config/staging/env.sh +9 -0
  478. package/test/integration/fixtures/reflux/config/staging/settings.json +6 -0
  479. package/test/integration/fixtures/reflux-apollo/.maka/config.json +30 -0
  480. package/test/integration/fixtures/reflux-apollo/.tern-project +17 -0
  481. package/test/integration/fixtures/reflux-apollo/app/.meteor/.finished-upgraders +17 -0
  482. package/test/integration/fixtures/reflux-apollo/app/.meteor/.id +7 -0
  483. package/test/integration/fixtures/reflux-apollo/app/.meteor/packages +21 -0
  484. package/test/integration/fixtures/reflux-apollo/app/.meteor/platforms +2 -0
  485. package/test/integration/fixtures/reflux-apollo/app/.meteor/release +1 -0
  486. package/test/integration/fixtures/reflux-apollo/app/.meteor/versions +78 -0
  487. package/test/integration/fixtures/reflux-apollo/app/client/.gitkeep +1 -0
  488. package/test/integration/fixtures/reflux-apollo/app/client/body.html +3 -0
  489. package/test/integration/fixtures/reflux-apollo/app/client/head.html +8 -0
  490. package/test/integration/fixtures/reflux-apollo/app/client/main.jsx +1 -0
  491. package/test/integration/fixtures/reflux-apollo/app/imports/api/.gitkeep +1 -0
  492. package/test/integration/fixtures/reflux-apollo/app/imports/startup/client/index.jsx +20 -0
  493. package/test/integration/fixtures/reflux-apollo/app/imports/startup/client/routes.jsx +24 -0
  494. package/test/integration/fixtures/reflux-apollo/app/imports/startup/client/templates.jsx +21 -0
  495. package/test/integration/fixtures/reflux-apollo/app/imports/startup/lib/index.jsx +1 -0
  496. package/test/integration/fixtures/reflux-apollo/app/imports/startup/server/index.jsx +25 -0
  497. package/test/integration/fixtures/reflux-apollo/app/imports/ui/layouts/master-layout/master-layout.css +5 -0
  498. package/test/integration/fixtures/reflux-apollo/app/imports/ui/layouts/master-layout/master-layout.jsx +31 -0
  499. package/test/integration/fixtures/reflux-apollo/app/imports/ui/pages/home/home.css +5 -0
  500. package/test/integration/fixtures/reflux-apollo/app/imports/ui/pages/home/home.jsx +38 -0
  501. package/test/integration/fixtures/reflux-apollo/app/imports/ui/pages/not-found/not-found.css +5 -0
  502. package/test/integration/fixtures/reflux-apollo/app/imports/ui/pages/not-found/not-found.jsx +38 -0
  503. package/test/integration/fixtures/reflux-apollo/app/imports/ui/test-helpers.jsx +1 -0
  504. package/test/integration/fixtures/reflux-apollo/app/lib/.gitkeep +1 -0
  505. package/test/integration/fixtures/reflux-apollo/app/lib/main.jsx +1 -0
  506. package/test/integration/fixtures/reflux-apollo/app/packages/.gitkeep +1 -0
  507. package/test/integration/fixtures/reflux-apollo/app/private/.gitkeep +1 -0
  508. package/test/integration/fixtures/reflux-apollo/app/public/.gitkeep +1 -0
  509. package/test/integration/fixtures/reflux-apollo/app/public/favicon.ico +0 -0
  510. package/test/integration/fixtures/reflux-apollo/app/server/.gitkeep +1 -0
  511. package/test/integration/fixtures/reflux-apollo/app/server/main.jsx +1 -0
  512. package/test/integration/fixtures/reflux-apollo/bin/.gitkeep +1 -0
  513. package/test/integration/fixtures/reflux-apollo/build/.gitkeep +1 -0
  514. package/test/integration/fixtures/reflux-apollo/build/README +4 -0
  515. package/test/integration/fixtures/reflux-apollo/config/.gitkeep +1 -0
  516. package/test/integration/fixtures/reflux-apollo/config/development/env.sh +9 -0
  517. package/test/integration/fixtures/reflux-apollo/config/development/settings.json +6 -0
  518. package/test/integration/fixtures/reflux-apollo/config/production/env.sh +9 -0
  519. package/test/integration/fixtures/reflux-apollo/config/production/settings.json +6 -0
  520. package/test/integration/fixtures/reflux-apollo/config/staging/env.sh +9 -0
  521. package/test/integration/fixtures/reflux-apollo/config/staging/settings.json +6 -0
  522. package/test/integration/fixtures/reflux-apollo-ssr/.maka/config.json +30 -0
  523. package/test/integration/fixtures/reflux-apollo-ssr/.tern-project +17 -0
  524. package/test/integration/fixtures/reflux-apollo-ssr/app/.meteor/.finished-upgraders +17 -0
  525. package/test/integration/fixtures/reflux-apollo-ssr/app/.meteor/.id +7 -0
  526. package/test/integration/fixtures/reflux-apollo-ssr/app/.meteor/packages +21 -0
  527. package/test/integration/fixtures/reflux-apollo-ssr/app/.meteor/platforms +2 -0
  528. package/test/integration/fixtures/reflux-apollo-ssr/app/.meteor/release +1 -0
  529. package/test/integration/fixtures/reflux-apollo-ssr/app/.meteor/versions +78 -0
  530. package/test/integration/fixtures/reflux-apollo-ssr/app/client/.gitkeep +1 -0
  531. package/test/integration/fixtures/reflux-apollo-ssr/app/client/body.html +3 -0
  532. package/test/integration/fixtures/reflux-apollo-ssr/app/client/head.html +8 -0
  533. package/test/integration/fixtures/reflux-apollo-ssr/app/client/main.jsx +1 -0
  534. package/test/integration/fixtures/reflux-apollo-ssr/app/imports/api/.gitkeep +1 -0
  535. package/test/integration/fixtures/reflux-apollo-ssr/app/imports/startup/client/index.jsx +29 -0
  536. package/test/integration/fixtures/reflux-apollo-ssr/app/imports/startup/lib/index.jsx +1 -0
  537. package/test/integration/fixtures/reflux-apollo-ssr/app/imports/startup/lib/routes.jsx +21 -0
  538. package/test/integration/fixtures/reflux-apollo-ssr/app/imports/startup/lib/templates.jsx +21 -0
  539. package/test/integration/fixtures/reflux-apollo-ssr/app/imports/startup/server/index.jsx +65 -0
  540. package/test/integration/fixtures/reflux-apollo-ssr/app/imports/ui/layouts/master-layout/master-layout.jsx +27 -0
  541. package/test/integration/fixtures/reflux-apollo-ssr/app/imports/ui/pages/home/home.jsx +33 -0
  542. package/test/integration/fixtures/reflux-apollo-ssr/app/imports/ui/pages/not-found/not-found.jsx +33 -0
  543. package/test/integration/fixtures/reflux-apollo-ssr/app/imports/ui/test-helpers.jsx +1 -0
  544. package/test/integration/fixtures/reflux-apollo-ssr/app/lib/.gitkeep +1 -0
  545. package/test/integration/fixtures/reflux-apollo-ssr/app/lib/main.jsx +1 -0
  546. package/test/integration/fixtures/reflux-apollo-ssr/app/packages/.gitkeep +1 -0
  547. package/test/integration/fixtures/reflux-apollo-ssr/app/private/.gitkeep +1 -0
  548. package/test/integration/fixtures/reflux-apollo-ssr/app/public/.gitkeep +1 -0
  549. package/test/integration/fixtures/reflux-apollo-ssr/app/public/favicon.ico +0 -0
  550. package/test/integration/fixtures/reflux-apollo-ssr/app/server/.gitkeep +1 -0
  551. package/test/integration/fixtures/reflux-apollo-ssr/app/server/main.jsx +1 -0
  552. package/test/integration/fixtures/reflux-apollo-ssr/bin/.gitkeep +1 -0
  553. package/test/integration/fixtures/reflux-apollo-ssr/build/.gitkeep +1 -0
  554. package/test/integration/fixtures/reflux-apollo-ssr/build/README +4 -0
  555. package/test/integration/fixtures/reflux-apollo-ssr/config/.gitkeep +1 -0
  556. package/test/integration/fixtures/reflux-apollo-ssr/config/development/env.sh +9 -0
  557. package/test/integration/fixtures/reflux-apollo-ssr/config/development/settings.json +6 -0
  558. package/test/integration/fixtures/reflux-apollo-ssr/config/production/env.sh +9 -0
  559. package/test/integration/fixtures/reflux-apollo-ssr/config/production/settings.json +6 -0
  560. package/test/integration/fixtures/reflux-apollo-ssr/config/staging/env.sh +9 -0
  561. package/test/integration/fixtures/reflux-apollo-ssr/config/staging/settings.json +6 -0
  562. package/test/integration/fixtures/reflux-material/.maka/config.json +30 -0
  563. package/test/integration/fixtures/reflux-material/.tern-project +17 -0
  564. package/test/integration/fixtures/reflux-material/app/.meteor/.finished-upgraders +17 -0
  565. package/test/integration/fixtures/reflux-material/app/.meteor/.id +7 -0
  566. package/test/integration/fixtures/reflux-material/app/.meteor/packages +21 -0
  567. package/test/integration/fixtures/reflux-material/app/.meteor/platforms +2 -0
  568. package/test/integration/fixtures/reflux-material/app/.meteor/release +1 -0
  569. package/test/integration/fixtures/reflux-material/app/.meteor/versions +78 -0
  570. package/test/integration/fixtures/reflux-material/app/client/.gitkeep +1 -0
  571. package/test/integration/fixtures/reflux-material/app/client/body.html +3 -0
  572. package/test/integration/fixtures/reflux-material/app/client/head.html +8 -0
  573. package/test/integration/fixtures/reflux-material/app/client/main.jsx +1 -0
  574. package/test/integration/fixtures/reflux-material/app/imports/api/.gitkeep +1 -0
  575. package/test/integration/fixtures/reflux-material/app/imports/startup/client/index.jsx +19 -0
  576. package/test/integration/fixtures/reflux-material/app/imports/startup/client/routes.jsx +24 -0
  577. package/test/integration/fixtures/reflux-material/app/imports/startup/client/templates.jsx +21 -0
  578. package/test/integration/fixtures/reflux-material/app/imports/startup/lib/index.jsx +1 -0
  579. package/test/integration/fixtures/reflux-material/app/imports/startup/server/index.jsx +1 -0
  580. package/test/integration/fixtures/reflux-material/app/imports/ui/layouts/master-layout/master-layout.css +5 -0
  581. package/test/integration/fixtures/reflux-material/app/imports/ui/layouts/master-layout/master-layout.jsx +31 -0
  582. package/test/integration/fixtures/reflux-material/app/imports/ui/pages/home/home.css +5 -0
  583. package/test/integration/fixtures/reflux-material/app/imports/ui/pages/home/home.jsx +33 -0
  584. package/test/integration/fixtures/reflux-material/app/imports/ui/pages/not-found/not-found.css +5 -0
  585. package/test/integration/fixtures/reflux-material/app/imports/ui/pages/not-found/not-found.jsx +33 -0
  586. package/test/integration/fixtures/reflux-material/app/imports/ui/test-helpers.jsx +1 -0
  587. package/test/integration/fixtures/reflux-material/app/lib/.gitkeep +1 -0
  588. package/test/integration/fixtures/reflux-material/app/lib/main.jsx +1 -0
  589. package/test/integration/fixtures/reflux-material/app/packages/.gitkeep +1 -0
  590. package/test/integration/fixtures/reflux-material/app/private/.gitkeep +1 -0
  591. package/test/integration/fixtures/reflux-material/app/public/.gitkeep +1 -0
  592. package/test/integration/fixtures/reflux-material/app/public/favicon.ico +0 -0
  593. package/test/integration/fixtures/reflux-material/app/server/.gitkeep +1 -0
  594. package/test/integration/fixtures/reflux-material/app/server/main.jsx +1 -0
  595. package/test/integration/fixtures/reflux-material/bin/.gitkeep +1 -0
  596. package/test/integration/fixtures/reflux-material/build/.gitkeep +1 -0
  597. package/test/integration/fixtures/reflux-material/build/README +4 -0
  598. package/test/integration/fixtures/reflux-material/config/.gitkeep +1 -0
  599. package/test/integration/fixtures/reflux-material/config/development/env.sh +9 -0
  600. package/test/integration/fixtures/reflux-material/config/development/settings.json +6 -0
  601. package/test/integration/fixtures/reflux-material/config/production/env.sh +9 -0
  602. package/test/integration/fixtures/reflux-material/config/production/settings.json +6 -0
  603. package/test/integration/fixtures/reflux-material/config/staging/env.sh +9 -0
  604. package/test/integration/fixtures/reflux-material/config/staging/settings.json +6 -0
  605. package/test/integration/fixtures/reflux-ssr/.maka/config.json +30 -0
  606. package/test/integration/fixtures/reflux-ssr/.tern-project +17 -0
  607. package/test/integration/fixtures/reflux-ssr/app/.meteor/.finished-upgraders +17 -0
  608. package/test/integration/fixtures/reflux-ssr/app/.meteor/.id +7 -0
  609. package/test/integration/fixtures/reflux-ssr/app/.meteor/packages +21 -0
  610. package/test/integration/fixtures/reflux-ssr/app/.meteor/platforms +2 -0
  611. package/test/integration/fixtures/reflux-ssr/app/.meteor/release +1 -0
  612. package/test/integration/fixtures/reflux-ssr/app/.meteor/versions +78 -0
  613. package/test/integration/fixtures/reflux-ssr/app/client/.gitkeep +1 -0
  614. package/test/integration/fixtures/reflux-ssr/app/client/body.html +3 -0
  615. package/test/integration/fixtures/reflux-ssr/app/client/head.html +8 -0
  616. package/test/integration/fixtures/reflux-ssr/app/client/main.jsx +1 -0
  617. package/test/integration/fixtures/reflux-ssr/app/imports/api/.gitkeep +1 -0
  618. package/test/integration/fixtures/reflux-ssr/app/imports/startup/client/index.jsx +21 -0
  619. package/test/integration/fixtures/reflux-ssr/app/imports/startup/lib/index.jsx +1 -0
  620. package/test/integration/fixtures/reflux-ssr/app/imports/startup/lib/routes.jsx +21 -0
  621. package/test/integration/fixtures/reflux-ssr/app/imports/startup/lib/templates.jsx +21 -0
  622. package/test/integration/fixtures/reflux-ssr/app/imports/startup/server/index.jsx +36 -0
  623. package/test/integration/fixtures/reflux-ssr/app/imports/ui/layouts/master-layout/master-layout.jsx +30 -0
  624. package/test/integration/fixtures/reflux-ssr/app/imports/ui/pages/home/home.jsx +32 -0
  625. package/test/integration/fixtures/reflux-ssr/app/imports/ui/pages/not-found/not-found.jsx +32 -0
  626. package/test/integration/fixtures/reflux-ssr/app/imports/ui/test-helpers.jsx +1 -0
  627. package/test/integration/fixtures/reflux-ssr/app/lib/.gitkeep +1 -0
  628. package/test/integration/fixtures/reflux-ssr/app/lib/main.jsx +1 -0
  629. package/test/integration/fixtures/reflux-ssr/app/packages/.gitkeep +1 -0
  630. package/test/integration/fixtures/reflux-ssr/app/private/.gitkeep +1 -0
  631. package/test/integration/fixtures/reflux-ssr/app/public/.gitkeep +1 -0
  632. package/test/integration/fixtures/reflux-ssr/app/public/favicon.ico +0 -0
  633. package/test/integration/fixtures/reflux-ssr/app/server/.gitkeep +1 -0
  634. package/test/integration/fixtures/reflux-ssr/app/server/main.jsx +1 -0
  635. package/test/integration/fixtures/reflux-ssr/bin/.gitkeep +1 -0
  636. package/test/integration/fixtures/reflux-ssr/build/.gitkeep +1 -0
  637. package/test/integration/fixtures/reflux-ssr/build/README +4 -0
  638. package/test/integration/fixtures/reflux-ssr/config/.gitkeep +1 -0
  639. package/test/integration/fixtures/reflux-ssr/config/development/env.sh +9 -0
  640. package/test/integration/fixtures/reflux-ssr/config/development/settings.json +6 -0
  641. package/test/integration/fixtures/reflux-ssr/config/production/env.sh +9 -0
  642. package/test/integration/fixtures/reflux-ssr/config/production/settings.json +6 -0
  643. package/test/integration/fixtures/reflux-ssr/config/staging/env.sh +9 -0
  644. package/test/integration/fixtures/reflux-ssr/config/staging/settings.json +6 -0
  645. package/test/integration/integration_helpers.js +60 -0
@@ -1 +1 @@
1
- const a151s=a151d;(function(a,b){const p=a151d,c=a();while(!![]){try{const d=parseInt(p(0x13d))/0x1+-parseInt(p(0x1ed))/0x2+parseInt(p(0x1d8))/0x3*(-parseInt(p(0x110))/0x4)+parseInt(p(0x1d4))/0x5+-parseInt(p(0x1ac))/0x6+parseInt(p(0x1cd))/0x7*(parseInt(p(0x176))/0x8)+parseInt(p(0x1e5))/0x9*(parseInt(p(0x17f))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a151c,0xbab1a));const a151b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a151d;if(c){const e=c[q(0x11d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a151a=a151b(this,function(){const r=a151d;return a151a[r(0x1d5)]()[r(0x14a)](r(0x134))[r(0x1d5)]()[r(0x144)](a151a)[r(0x14a)](r(0x134));});a151a();import a151e from'fs';import a151f from'path';import{execSync}from'child_process';import{Actions}from'../actions/actions.class.js';import{Log}from'../log/log.class.js';import{MustBeInProjectError}from'../../error.js';import{ChangeResourceRecordSetsCommand,ChangeAction,RRType}from'@aws-sdk/client-route-53';function a151d(a,b){const c=a151c();return a151d=function(d,e){d=d-0x107;let f=c[d];return f;},a151d(a,b);}import{EC2Client,DescribeInstancesCommand,RunInstancesCommand,TerminateInstancesCommand,CreateKeyPairCommand,AuthorizeSecurityGroupIngressCommand,CreateSecurityGroupCommand,RebootInstancesCommand,DescribeVpcsCommand,DescribeKeyPairsCommand,DeleteKeyPairCommand,DescribeSecurityGroupsCommand,DeleteSecurityGroupCommand,DescribeImagesCommand,DescribeSubnetsCommand}from'@aws-sdk/client-ec2';function a151c(){const aa=['map','getAppConfigPath','hvm','search','\x20opened!',',\x20URI:\x20','tags','all','Web\x20App','GroupId','sort','root-device-type','KeyName','Name','imageId','scaffold','virtualization-type','status','error','warn','suggestion','name','No\x20suitable\x20images\x20found\x20within\x20the\x20last\x2030\x20days.','vpcId','ec2terminateInstance','No\x20credentials\x20returned\x20from\x20AWS\x20ECR','Authorization\x20token\x20is\x20missing','race','publicIp','An\x20unknown\x20error\x20occurred.','checkDomainAvailability','getTime','\x20SUBNETID:\x20','cfg','filter','\x20STATUS:\x20','No\x20ECR\x20repositories\x20found\x20across\x20all\x20specified\x20regions.','eu-west-2','RegistrationPrice','exit','UNSUPPORTED','No\x20instances\x20found','ecrDeleteRepository','find','length','ap-northeast-3','maxCount','1480fVXesl','Setting\x20Subnet\x20ID\x20to\x20','bright','Created:\x20','\x20VPCID:\x20','amiId','Repository\x20\x22','pem','\x20DESCRIPTION:\x20','10VebpUe','ap-northeast-1','TLDRulesViolation','...','minCount','ap-southeast-3','start','subnet','\x20to\x20','CreationDate','getInstance','me-central-1','Error\x20fetching\x20domain\x20pricing:','Prices','Value','Successfully\x20linked\x20EC2\x20instance\x20','ec2rebootInstance','\x20CIDR:\x20','desc','instanceId','image-type','utf8','Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[','**\x20Available\x20Security\x20Groups\x20**','isFile','_keys','ec2createSG','GroupName','Description','\x20INSTANCE_ID:\x20','Port\x20','ap-east-1','chmod\x20400\x20','environment','success','Final\x20list\x20of\x20ECR\x20repositories:','AVAILABLE','deleteKeyPair','chooseSecurityGroup','confirm','nextToken','join','trim','Response:\x20','ecrCreateRepository','5326248zpDInt','key','linkEC2ToRoute53','send','cidr','stringify','ec2create','EKS','withSpinner','eu-central-1','[+]\x20Setting\x20VPC\x20ID\x20to:\x20','KeyMaterial','type','config','stop','You\x20have\x20no\x20instances\x20created\x20by\x20maka-cli.\x20\x20Please\x20reivew\x20your\x20AWS\x20console\x20manually!!!','eu-central-2','\x20SG\x20NAME:\x20','sgPorts','eu-south-2','registerDomain','VpcId','CidrBlock','ID:\x20','notice','\x22\x20created\x20successfully\x20in\x20','ssh.json','base64','0.0.0.0/0','createKeyPair','terminated','info','eu-west-1','30359yebqFS','\x20NAME:\x20','pop','eu-north-1','Setting\x20SG\x20ID\x20to:\x20','eu-south-1','timeout','925960JIExXV','toString','.pem.txt','getSecurityGroups','33ZoOymx','Subnets','getMakaProjectConfig','Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','file://','writeFileSync','forEach','/dev/sdh','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','readFileSync','*Kali*','ingressRule','Error\x20saving\x20pem\x20file,\x20aborting','15013359KLVxCE','userData','region','HostedZones','Pem\x20key\x20saved\x20to\x20','Timeout\x20while\x20processing\x20','Error\x20Message:\x20','ignore','578190bqMKii','push','Canonical*Ubuntu*18.04*','No\x20images\x20found.','getSubnetCidr','Instances','tcp','AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials','ap-south-1','running','Instance\x20rebooted!','message','now','fsi','Setting\x20AMI\x20ID\x20to\x20','parse','authorizationToken','Region:\x20','Failed\x20to\x20create\x20repository\x20in\x20','300268UQIQxg','subnetId','deleteSecurityGroup','authorizationData','ap-south-2','listAvailableSubnets','From\x20AWS:','me-south-1','split','\x20PUB_IP:\x20','Could\x20not\x20find\x20hosted\x20zone','ec2describeInstances','ask','apply','us-east-1','httpStatusCode','sgIds','repositoryName','log','AvailabilityZone','repositories','getEcrLoginPassword','createKeyPairEC2Key',',\x20Name:\x20','Canonical*Ubuntu*20.04*','includes','env','chooseInstance','ebs','[?]\x20Please\x20choose\x20an\x20instance\x20ID:\x20','$metadata','privateIp','sgId','sa-east-1','template','Availability','(((.+)+)+)+$','description','eu-west-3','Failed\x20to\x20decode\x20password\x20from\x20authorization\x20token','uri','us-west-1','instance','Failed\x20in\x20','\x20SGID:\x20','111550ClxOsl','route53CreateHostedZone','\x20AMIID:\x20','us-west-2','Reservations','us-east-2','ap-southeast-1','constructor','Would\x20you\x20like\x20to\x20update\x20the\x20ssh.json\x20config\x20file?','state'];a151c=function(){return aa;};return a151c();}import{ECRClient,CreateRepositoryCommand,DeleteRepositoryCommand,GetAuthorizationTokenCommand,DescribeRepositoriesCommand}from'@aws-sdk/client-ecr';import{Route53,Route53Client,CreateHostedZoneCommand}from'@aws-sdk/client-route-53';import{Route53Domains,CheckDomainAvailabilityCommand,RegisterDomainCommand,ListPricesCommand}from'@aws-sdk/client-route-53-domains';const client=new EC2Client({}),route53Client=new Route53Client({}),route53=new Route53({}),route53Domains=new Route53Domains({});export class AWS{static ['instance'];[a151s(0x10a)];[a151s(0x168)];[a151s(0x156)];constructor(a,b,c){const t=a151s;this[t(0x10a)]=a,this[t(0x168)]=b,this[t(0x156)]=c;}static[a151s(0x189)](a,b,c){const u=a151s;return!AWS[u(0x13a)]&&(AWS[u(0x13a)]=new AWS(a,b,c)),AWS[u(0x13a)];}async[a151s(0x1a5)](a){const v=a151s;try{const {listIndexId:b,createdSgId:c,sgList:d}=await this[v(0x1d7)](a);let f='';if(c===''){Log[v(0x1c4)](v(0x196)),d[v(0x1de)](function(h){const w=v;h[w(0x15c)]===a?Log['notice']('ID:\x20'+h['id']+w(0x1bd)+h[w(0x15c)]+w(0x13c)+h[w(0x130)]):Log[w(0x178)](w(0x1c3)+h['id']+w(0x1bd)+h[w(0x15c)]+w(0x13c)+h['sgId']);});const g=await Actions[v(0x11c)](v(0x195)+b+']\x20')||b['toString']();d[v(0x1de)](function(h){const x=v;h['id']===parseInt(g)&&(f=h[x(0x130)],Log[x(0x1a1)]('Setting\x20SG\x20ID\x20to:\x20'+f+'\x0a'));});}else f=c,Log[v(0x1a1)](v(0x1d1)+f+'\x0a');if(f==='')throw new Error(v(0x1e0));return f;}catch(h){Log[v(0x159)](h);throw h;}}async['listAvailableAMIs'](){const y=a151s;let a='';try{const b=new EC2Client({}),c={'Filters':[{'Name':'architecture','Values':['x86_64']},{'Name':y(0x157),'Values':[y(0x149)]},{'Name':y(0x152),'Values':[y(0x12c)]},{'Name':y(0x146),'Values':['available']},{'Name':y(0x193),'Values':['machine']},{'Name':y(0x135),'Values':[y(0x1ef),y(0x128),y(0x1e2)]}]},d=new DescribeImagesCommand(c),{Images:f}=await b[y(0x1af)](d);if(f&&f[y(0x173)]>0x0){const g=new Date(),h=new Date(g[y(0x166)]()-0x1e*0x18*0x3c*0x3c*0x3e8),i=f[y(0x169)](j=>j['CreationDate']&&!j['Description']?.[y(0x129)](y(0x16f))&&!j[y(0x19b)]?.[y(0x129)](y(0x1b3))&&new Date(j[y(0x188)])>h)[y(0x147)](j=>({'amiId':j['ImageId'],'desc':j[y(0x19b)],'date':j[y(0x188)]}));if(i[y(0x173)]>0x0){i[y(0x151)]((n,o)=>new Date(o['date'])[y(0x166)]()-new Date(n['date'])['getTime']());const j=i['slice'](0x0,0x4),k=j[y(0x147)]((n,o)=>({'id':o,'amiId':n[y(0x17b)],'desc':n[y(0x191)]}));k[y(0x1de)](n=>{const z=y;Log[z(0x178)](z(0x1c3)+n['id']+z(0x13f)+n[z(0x17b)]+z(0x17e)+n[z(0x191)]);});const l=await Actions['ask']('Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20')||'0',m=k[y(0x172)](n=>n['id']===parseInt(l));if(m)a=m[y(0x17b)],Log['success'](y(0x10b)+a+'\x20:\x20'+m[y(0x191)]);else throw Log['error'](y(0x1e0));}else throw Log[y(0x159)](y(0x15d));}else throw Log[y(0x159)](y(0x1f0));}catch(n){Log[y(0x159)](n);}return a;}async[a151s(0x115)](){const A=a151s;let a='';try{const b=new EC2Client({}),c={},d=new DescribeSubnetsCommand(c),{Subnets:f}=await b['send'](d);if(f&&f[A(0x173)]>0x0){const g=f[A(0x147)]((j,k)=>({'id':k,'cidr':j[A(0x1c2)],'az':j[A(0x123)],'subnetId':j['SubnetId']}));g[A(0x1de)](j=>{const B=A;Log[B(0x178)](B(0x1c3)+j['id']+B(0x190)+j[B(0x1b0)]+'\x20AZONE:\x20'+j['az']+B(0x167)+j[B(0x111)]);});const h=await Actions[A(0x11c)](A(0x1db))||'0',i=g[A(0x172)](j=>j['id']===parseInt(h));if(i)a=i['subnetId'],Log[A(0x1a1)](A(0x177)+a);else throw Log[A(0x159)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');}else throw Log[A(0x159)]('No\x20subnets\x20found.');}catch(j){Log[A(0x159)](j);}return a;}async[a151s(0x1f1)](a){const C=a151s;try{const b=new EC2Client({}),c={'Filters':[{'Name':'subnet-id','Values':[a]}]},d=new DescribeSubnetsCommand(c),e=await b['send'](d);return e['Subnets']&&e[C(0x1d9)]['length']>0x0?e['Subnets'][0x0][C(0x1c2)]||'':'';}catch(f){return Log[C(0x159)](f),'';}}async[a151s(0x1ab)](a){const D=a151s;try{const b=new ECRClient({'region':a[D(0x1e7)]}),c={'repositoryName':a[D(0x15c)]},d=new CreateRepositoryCommand(c),f=await b[D(0x1af)](d);return Log[D(0x1a1)](D(0x17c)+a[D(0x15c)]+D(0x1c5)+a[D(0x1e7)]+'.'),f;}catch(g){Log[D(0x159)](D(0x10f)+a[D(0x1e7)]+':\x20'+g);throw g;}}async['listAllEcrRepositories'](a){const E=a151s,b=[E(0x11e),E(0x142),E(0x139),E(0x140),E(0x1f5),E(0x174),'ap-northeast-2',E(0x143),'ap-southeast-2',E(0x180),'ca-central-1',E(0x1b5),E(0x1cc),E(0x16c),E(0x136),E(0x1d0),E(0x131),'af-south-1',E(0x19e),E(0x114),E(0x184),'ap-southeast-4','ca-west-1',E(0x1d2),E(0x1bf),E(0x1bc),E(0x117),E(0x18a),'il-central-1'],c=[E(0x11e),E(0x142),E(0x139),E(0x140)],d=a===E(0x14e)?b:a?a[E(0x118)](','):c;let f=[];const g=Log[E(0x1b4)]();for(const h of d){g[E(0x185)]('Processing\x20'+h[E(0x1a9)]()+E(0x182));const i=new ECRClient({'region':h[E(0x1a9)]()});try{let j=undefined;do{const k=await Promise[E(0x162)]([i[E(0x1af)](new DescribeRepositoriesCommand({'nextToken':j})),new Promise(l=>setTimeout(()=>l('timeout'),0x7d0))]);if(k===E(0x1d3)){Log[E(0x15a)](E(0x1ea)+h[E(0x1a9)]()+'.');break;}else k[E(0x124)]&&k['repositories'][E(0x173)]>0x0&&(f=f['concat'](k[E(0x124)]['map'](l=>({'name':l[E(0x121)],'uri':l['repositoryUri'],'region':h[E(0x1a9)]()}))));j=k[E(0x1a7)];}while(j);}catch(l){Log[E(0x159)](E(0x13b)+h[E(0x1a9)]()+':\x20'+l[E(0x108)]);}finally{g[E(0x1ba)]();}}return f[E(0x173)]>0x0?(console['log'](),Log[E(0x1a1)](E(0x1a2)),f[E(0x1de)](m=>{const F=E;Log[F(0x1cb)](F(0x10e)+m[F(0x1e7)]+F(0x127)+m['name']+F(0x14c)+m[F(0x138)]);})):Log[E(0x15a)](E(0x16b)),f;}async[a151s(0x13e)](a){const G=a151s;try{const b={'CallerReference':''+Date[G(0x109)](),'Name':a},c=new CreateHostedZoneCommand(b);await route53Client[G(0x1af)](c),Log[G(0x1a1)]('Hosted\x20zone\x20created\x20successfully!');}catch(d){Log['error']('Error\x20creating\x20hosted\x20zone'),console[G(0x159)](d);}}async[a151s(0x1c0)](a,b,c,d){const H=a151s;try{const e={'DomainName':b,'DurationInYears':c,'AutoRenew':d,'AdminContact':a,'RegistrantContact':a,'TechContact':a,'BillingContact':a},f=new RegisterDomainCommand(e),g=await route53Domains['send'](f);Log[H(0x1c4)]('The\x20domain\x20\x27'+b+'\x27\x20has\x20been\x20registered\x20successfully.'),Log[H(0x1c4)](H(0x1aa)+JSON['stringify'](g));}catch(h){Log[H(0x159)]('There\x20was\x20an\x20error\x20registering\x20the\x20domain\x20name'),Log[H(0x15a)](H(0x116)),h[H(0x12e)]&&(Log[H(0x159)]('\x20Status\x20Code:\x20'+h[H(0x12e)][H(0x11f)]),Log[H(0x159)]('\x20Request\x20ID:\x20'+h[H(0x12e)]['requestId'])),Log['error'](H(0x1eb)+h[H(0x108)]),h['name']===H(0x181)?Log[H(0x159)](h[H(0x108)]):Log[H(0x159)](H(0x164)),Log[H(0x159)](h);}}async[a151s(0x165)](a){const I=a151s,b={'DomainName':a},c=new CheckDomainAvailabilityCommand(b),d=await route53Domains[I(0x1af)](c),e=d[I(0x133)]===I(0x1a3);if(e){const f=a[I(0x118)]('.')[I(0x1cf)](),g={'MaxItems':0x1,'Tld':f};try{const h=new ListPricesCommand(g),i=await route53Domains['send'](h);if(i&&i[I(0x18c)]&&i['Prices'][0x0]?.['RegistrationPrice']){const j=i[I(0x18c)][0x0][I(0x16d)];return{'available':e,'cost':j};}}catch(k){console[I(0x159)](I(0x18b),k);}}return{'available':e};}async[a151s(0x1ae)](a,b,c){const J=a151s;try{const d=await route53['listHostedZonesByName']({'DNSName':c});if(!d?.[J(0x1e8)])throw Log[J(0x159)](J(0x11a));const e=d?.['HostedZones'][0x0]['Id'],f={'ChangeBatch':{'Changes':[{'Action':ChangeAction['UPSERT'],'ResourceRecordSet':{'Name':c,'Type':RRType['A'],'TTL':0x12c,'ResourceRecords':[{'Value':b}]}}]},'HostedZoneId':e},g=new ChangeResourceRecordSetsCommand(f);await route53[J(0x1af)](g),Log[J(0x1c4)](J(0x18e)+a+J(0x187)+c);}catch(h){console[J(0x159)]('Error\x20linking\x20EC2\x20to\x20Route\x2053:',h);}}async[a151s(0x125)]({awsAccountId:a,region:b}){const K=a151s,c=new ECRClient({'region':b});try{const d=new GetAuthorizationTokenCommand({'registryIds':[a]}),f=await c[K(0x1af)](d);if(!f[K(0x113)]||f['authorizationData'][K(0x173)]===0x0)throw new Error('Authorization\x20data\x20is\x20empty');const g=f[K(0x113)][0x0];if(!g[K(0x10d)])throw new Error(K(0x161));const h=g[K(0x10d)];if(!h)throw new Error(K(0x160));const i=Buffer['from'](h,K(0x1c7))[K(0x1d5)](),j=i[K(0x118)](':')[0x1];if(!j)throw new Error(K(0x137));return j;}catch(k){Log[K(0x159)](k);throw k;}}async[a151s(0x171)]({repoName:a,region:b}){const L=a151s,c=new ECRClient({'region':b});try{const d=new DeleteRepositoryCommand({'repositoryName':a,'force':!![]}),f=await c[L(0x1af)](d);return f;}catch(g){Log[L(0x159)](g);throw g;}}async[a151s(0x1b2)](a){const M=a151s;try{const b={'BlockDeviceMappings':[{'DeviceName':M(0x1df),'Ebs':{'VolumeSize':0x64}}],'ImageId':a[M(0x155)],'InstanceType':a[M(0x1b8)],'KeyName':a[M(0x1ad)],'MaxCount':a[M(0x175)],'MinCount':a[M(0x183)],'SecurityGroupIds':a[M(0x120)][M(0x118)](','),'SubnetId':a[M(0x186)],'TagSpecifications':[{'ResourceType':M(0x13a),'Tags':a[M(0x14d)]}]};a['userData']&&(b['UserData']=M(0x1dc)+a[M(0x1e6)]);const c=new RunInstancesCommand(b),d=await client[M(0x1af)](c);return d;}catch(f){Log[M(0x159)](f);}}async[a151s(0x15f)](a){const N=a151s;try{const b={'InstanceIds':[a[N(0x192)]]},c=new TerminateInstancesCommand(b),d=await client['send'](c);return d;}catch(f){return Log['error'](f),{};}}async[a151s(0x126)]({keyName:a,env:b}){const O=a151s,c=this[O(0x168)][O(0x148)](b),d=a151f['join'](c,O(0x198),a+O(0x1d6));try{const f={'KeyName':a},g=new CreateKeyPairCommand(f),h=await client[O(0x1af)](g),i=h[O(0x1b7)];if(i){await this[O(0x10a)]['createFile']({'filePath':d,'data':i}),execSync(O(0x19f)+d,{'stdio':O(0x1ec)});const j=this['fsi'][O(0x197)](d);if(j)return Log[O(0x1a1)](O(0x1e9)+d),{'keyName':a,'filePath':d};else throw new Error(O(0x1e4));}else throw new Error('Error\x20generating\x20key\x20pair');}catch(k){Log[O(0x159)](k),process[O(0x16e)](0x1);}}async[a151s(0x1e3)]({port:a,groupId:b}){const P=a151s,c={'GroupId':b,'IpPermissions':[{'FromPort':a,'IpProtocol':P(0x1f3),'IpRanges':[{'CidrIp':P(0x1c8),'Description':''}],'ToPort':a}]},d=new AuthorizeSecurityGroupIngressCommand(c);return Log[P(0x1c4)](P(0x19d)+a+P(0x14b)),await client[P(0x1af)](d);}async[a151s(0x199)](a){const Q=a151s;try{a[Q(0x135)]===''&&(a[Q(0x135)]=await Actions[Q(0x11c)]('Description:')||Q(0x14f));const b={'Description':a[Q(0x135)],'GroupName':a[Q(0x15c)],'VpcId':a['vpcId']},c=new CreateSecurityGroupCommand(b),d=await client['send'](c),{GroupId:f}=d;if(!d)throw new Error('AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials');f&&a[Q(0x1be)][Q(0x1de)](g=>{const R=Q;this[R(0x1e3)]({'port':parseInt(g),'groupId':f});}),Log[Q(0x1a1)](Q(0x179)+f+Q(0x1ce)+a[Q(0x15c)]);}catch(g){return Log['error'](g),![];}return!![];}async['ec2describeKeys'](a){const S=a151s,b=[];try{const c={},d=new DescribeKeyPairsCommand(c),f=await client[S(0x1af)](d);if(!f)throw S(0x1f4);const {KeyPairs:g}=f;g?(g?.[S(0x1de)]((h,i)=>{const T=S;h[T(0x153)]&&b[T(0x1ee)]({'id':i,'name':h[T(0x153)]});}),b[S(0x173)]>0x0&&b[S(0x1de)](h=>{const U=S;h['name']===a?.[U(0x15b)]?Log[U(0x1a1)](U(0x1c3)+h['id']+U(0x1ce)+h[U(0x15c)]):Log[U(0x1c4)](U(0x1c3)+h['id']+U(0x1ce)+h[U(0x15c)]);})):Log[S(0x159)]('You\x20have\x20no\x20key-pairs,\x20please\x20create\x20one.\x20(maka\x20aws\x20create-key-pair\x20--env).');}catch(h){Log[S(0x159)](h);}return b;}async[a151s(0x1a4)](a){const V=a151s;try{const b={'KeyName':a},c=new DeleteKeyPairCommand(b);await client['send'](c);}catch(d){Log[V(0x159)](d),process['exit'](0x1);}}async[a151s(0x11b)](){const W=a151s,a=[];try{const b={'Filters':[{'Name':'tag:created-by','Values':['maka-cli']}]},c=new DescribeInstancesCommand(b),d=await client[W(0x1af)](c);d[W(0x141)]?.[W(0x1de)]((f,g)=>{const X=W;if(f?.[X(0x1f2)]){const {InstanceId:h,PublicIpAddress:i,PrivateIpAddress:j,State:k,KeyName:l,Tags:m}=f[X(0x1f2)][0x0],n=m?.['find'](({Key:o})=>o===X(0x1a0));a[X(0x1ee)]({'id':g,'instanceId':h,'privateIp':j,'publicIp':i,'status':k?.[X(0x154)],'name':l,'env':n?.[X(0x18d)]});}}),a[W(0x173)]>0x0?a[W(0x1de)](f=>{const Y=W,g=Y(0x1c3)+f['id']+Y(0x1ce)+f[Y(0x15c)]+'\x20ENV:\x20'+f[Y(0x12a)]+Y(0x16a)+f[Y(0x158)]+Y(0x19c)+f[Y(0x192)]+Y(0x119)+f[Y(0x163)]+'\x20PRIV_IP:\x20'+f[Y(0x12f)];if(f[Y(0x158)]===Y(0x1ca))Log[Y(0x159)](g);else f['status']===Y(0x1f6)?Log['success'](g):Log[Y(0x1c4)](g);}):Log[W(0x159)](W(0x1bb));}catch(f){Log[W(0x159)](f);}return a;}async[a151s(0x18f)](a){const Z=a151s;try{const b={'InstanceIds':[a[Z(0x192)]]},c=new RebootInstancesCommand(b),d=await client[Z(0x1af)](c);return d[Z(0x12e)][Z(0x11f)]===0xc8&&Log['success'](Z(0x107)),d;}catch(f){Log[Z(0x159)](f);}}async['chooseVPC'](){const a0=a151s;let a='';Log[a0(0x1c4)]('**\x20Available\x20\x20VPCs\x20**');const b=new DescribeVpcsCommand({}),c=await client[a0(0x1af)](b),{Vpcs:d}=c,e=[];d&&d[a0(0x1de)]((g,h)=>{const a1=a0;g[a1(0x1c1)]&&g[a1(0x1c2)]&&e[a1(0x1ee)]({'id':h,'vpcId':g[a1(0x1c1)],'cidr':g[a1(0x1c2)]});});e[a0(0x1de)](function(g){const a2=a0;console[a2(0x122)]('ID:\x20'+g['id']+a2(0x17a)+g[a2(0x15e)]+'\x20CIDR:\x20'+g['cidr']);});const f=await Actions[a0(0x11c)]('Please\x20choose\x20a\x20VPC:\x20[0]\x20')||0x0;e[a0(0x1de)](function(g){const a3=a0;g['id']==f&&(a=g['vpcId'],Log[a3(0x1a1)](a3(0x1b6)+a+'\x0a'));});if(a==='')return Log[a0(0x159)](a0(0x1e0)),'';return a;}async[a151s(0x12b)](){const a4=a151s,a=await this['ec2describeInstances']();if(a[a4(0x173)]===0x0)return Log[a4(0x159)](a4(0x170)),null;const b=await Actions[a4(0x11c)](a4(0x12d));!b&&(Log[a4(0x159)]('Invalid\x20choice'),process[a4(0x16e)](0x0));const c=a[a4(0x172)](({id:d})=>{return d==parseInt(b);})||null;return c;}async[a151s(0x1c9)]({env:a}){const a5=a151s;try{const b=this[a5(0x168)][a5(0x1da)]();if(!b)throw MustBeInProjectError;const {appName:c}=b,d=c+'-'+a,f=await Actions[a5(0x11c)]('Key\x20Name:\x20['+d+']\x20')||d,{filePath:g}=await this[a5(0x126)]({'keyName':f,'env':a}),h=await Actions[a5(0x1a6)](a5(0x145),!![]);if(h)try{const i=a151f[a5(0x1a8)](a5(0x1b9),a,a5(0x1c6));!this[a5(0x10a)][a5(0x197)](i)&&await this[a5(0x156)][a5(0x132)]({'srcPath':'config/ssh.json','destPath':i,'context':{'app':f}});const j=a151e[a5(0x1e1)](a151f[a5(0x1a8)](a5(0x1b9),a,'ssh.json'),a5(0x194)),k=JSON[a5(0x10c)](j);k[a5(0x17d)]=a151f[a5(0x1a8)](a5(0x198),f+'.pem.txt'),a151e[a5(0x1dd)](a151f[a5(0x1a8)](a5(0x1b9),a,a5(0x1c6)),JSON[a5(0x1b1)](k,null,0x2));}catch(l){Log[a5(0x159)](l),Log[a5(0x159)]('You\x20will\x20need\x20to\x20update\x20the\x20ssh.json\x20file\x20yourself.');}return{'keyName':f,'filePath':g};}catch(m){Log[a5(0x159)](m),process[a5(0x16e)](0x1);}}async[a151s(0x1d7)](a){const a6=a151s,b=[],c={},d=new DescribeSecurityGroupsCommand(c),e=await client[a6(0x1af)](d),{SecurityGroups:f}=e;f&&f['forEach'](function(i,j){const a7=a6;i[a7(0x19a)]&&i[a7(0x150)]&&b[a7(0x1ee)]({'id':j,'name':i[a7(0x19a)],'sgId':i[a7(0x150)]});});let g='',h=0x0;return b[a6(0x1de)](function(i){const a8=a6;i[a8(0x15c)]===a&&(g=i[a8(0x130)],h=i['id']);}),{'sgList':b,'createdSgId':g,'listIndexId':h};}async[a151s(0x112)](a){const a9=a151s;try{const b={'GroupId':a},c=new DeleteSecurityGroupCommand(b);await client['send'](c);}catch(d){Log[a9(0x159)](d),process['exit'](0x1);}}}
1
+ const a151s=a151d;(function(a,b){const p=a151d,c=a();while(!![]){try{const d=parseInt(p(0x1d7))/0x1*(-parseInt(p(0x1f6))/0x2)+parseInt(p(0x1a6))/0x3*(parseInt(p(0x1a2))/0x4)+parseInt(p(0x25c))/0x5+-parseInt(p(0x1a9))/0x6*(parseInt(p(0x244))/0x7)+parseInt(p(0x223))/0x8*(parseInt(p(0x18b))/0x9)+-parseInt(p(0x20b))/0xa+parseInt(p(0x1ea))/0xb*(-parseInt(p(0x234))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a151c,0xb1e5b));const a151b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a151d;if(c){const e=c[q(0x24c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a151a=a151b(this,function(){const r=a151d;return a151a[r(0x1e3)]()[r(0x1d4)]('(((.+)+)+)+$')[r(0x1e3)]()[r(0x182)](a151a)['search']('(((.+)+)+)+$');});a151a();import a151e from'fs';import a151f from'path';import{execSync}from'child_process';import{Actions}from'../actions/actions.class.js';import{Log}from'../log/log.class.js';function a151d(a,b){const c=a151c();return a151d=function(d,e){d=d-0x17e;let f=c[d];return f;},a151d(a,b);}import{MustBeInProjectError}from'../../error.js';import{ChangeResourceRecordSetsCommand,ChangeAction,RRType}from'@aws-sdk/client-route-53';import{EC2Client,DescribeInstancesCommand,RunInstancesCommand,TerminateInstancesCommand,CreateKeyPairCommand,AuthorizeSecurityGroupIngressCommand,CreateSecurityGroupCommand,RebootInstancesCommand,DescribeVpcsCommand,DescribeKeyPairsCommand,DeleteKeyPairCommand,DescribeSecurityGroupsCommand,DeleteSecurityGroupCommand,DescribeImagesCommand,DescribeSubnetsCommand}from'@aws-sdk/client-ec2';function a151c(){const a9=['authorizationData','exit','ap-southeast-2','ec2terminateInstance','confirm','subnet','repositories','No\x20ECR\x20repositories\x20found\x20across\x20all\x20specified\x20regions.','eu-west-1','No\x20credentials\x20returned\x20from\x20AWS\x20ECR','concat','Error\x20Message:\x20','\x20to\x20','minCount','sgId','1092238ecpxwb','bright','\x20SGID:\x20','info','You\x20will\x20need\x20to\x20update\x20the\x20ssh.json\x20file\x20yourself.','Error\x20linking\x20EC2\x20to\x20Route\x2053:','architecture','KeyMaterial','apply','The\x20domain\x20\x27','push','Port\x20','virtualization-type','fsi','warn','Setting\x20AMI\x20ID\x20to\x20','now','status','config/ssh.json','withSpinner','getAppConfigPath','UserData','ssh.json','CreationDate','4682820mGKwEA','ca-central-1','stringify','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','An\x20unknown\x20error\x20occurred.',',\x20URI:\x20','\x20AZONE:\x20','name','success','Failed\x20to\x20decode\x20password\x20from\x20authorization\x20token','No\x20images\x20found.','Region:\x20','Description:','\x22\x20created\x20successfully\x20in\x20','type','**\x20Available\x20Security\x20Groups\x20**','You\x20have\x20no\x20instances\x20created\x20by\x20maka-cli.\x20\x20Please\x20reivew\x20your\x20AWS\x20console\x20manually!!!','*Kali*','requestId','Error\x20generating\x20key\x20pair','machine','us-west-2','timeout','No\x20suitable\x20images\x20found\x20within\x20the\x20last\x2030\x20days.','ec2rebootInstance','parse','Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[','constructor','No\x20subnets\x20found.','\x20Status\x20Code:\x20','CidrBlock','notice','stop','map','vpcId','race','1940661bMaqXv','Value','\x20PRIV_IP:\x20','repositoryName','Key\x20Name:\x20[','\x20INSTANCE_ID:\x20','userData','Canonical*Ubuntu*18.04*','RegistrationPrice','description','log','eu-central-1','AvailabilityZone','subnet-id','desc','privateIp','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','Setting\x20Subnet\x20ID\x20to\x20','eu-west-3','Web\x20App','filter','registerDomain','state','44pmGkGn','pop','Error\x20fetching\x20domain\x20pricing:','all','153705zCzSBO','ID:\x20','checkDomainAvailability','6DNvNYm','EKS','\x20STATUS:\x20','image-type','ap-northeast-1','createFile','ask','\x20ENV:\x20','Timeout\x20while\x20processing\x20','\x20:\x20','.pem.txt','chooseVPC','cidr','slice','\x20PUB_IP:\x20','Failed\x20to\x20create\x20repository\x20in\x20','join','forEach','HostedZones','Authorization\x20token\x20is\x20missing','suggestion','length','instance','Description','\x20NAME:\x20','Failed\x20in\x20','Created:\x20','VpcId','GroupName','me-central-1','getSubnetCidr','utf8','running','/dev/sdh','cfg','ap-northeast-2','message','send','getInstance','You\x20have\x20no\x20key-pairs,\x20please\x20create\x20one.\x20(maka\x20aws\x20create-key-pair\x20--env).','[+]\x20Setting\x20VPC\x20ID\x20to:\x20','includes','Would\x20you\x20like\x20to\x20update\x20the\x20ssh.json\x20config\x20file?','search','imageId','$metadata','1061602SPWpEA','ecrCreateRepository','writeFileSync','Final\x20list\x20of\x20ECR\x20repositories:','eu-west-2','getMakaProjectConfig','AVAILABLE','ec2createSG','createKeyPair','eu-north-1','split','No\x20instances\x20found','toString','eu-south-1','Canonical*Ubuntu*20.04*','ingressRule','instanceId','date','getSecurityGroups','77OERRQK','\x20SG\x20NAME:\x20','subnetId','from','Prices','KeyName','scaffold','createKeyPairEC2Key','Error\x20saving\x20pem\x20file,\x20aborting','getTime','httpStatusCode','AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials','2bsDoZa','Subnets','ap-south-2','file://','\x20Request\x20ID:\x20','env','sort','config','ec2describeInstances','deleteSecurityGroup','sa-east-1','Instances','Authorization\x20data\x20is\x20empty','amiId','error','maxCount','_keys','tcp','ca-west-1','Repository\x20\x22','trim','82540sJnnSE','Invalid\x20choice','ap-northeast-3','ap-southeast-1','Pem\x20key\x20saved\x20to\x20','deleteKeyPair','us-east-2','region','readFileSync','Instance\x20rebooted!','listAvailableSubnets','Could\x20not\x20find\x20hosted\x20zone','hvm','listAvailableAMIs','UNSUPPORTED','pem','GroupId','find','\x20CIDR:\x20','eu-central-2','ImageId','SubnetId','ecrDeleteRepository','...','24rQNdXh','tag:created-by','us-east-1','listAllEcrRepositories','isFile','authorizationToken','sgPorts','ap-southeast-4','getEcrLoginPassword','maka-cli','root-device-type','\x20VPCID:\x20','ap-southeast-3','ignore','us-west-1','Setting\x20SG\x20ID\x20to:\x20','chooseSecurityGroup','329964PKVYzq'];a151c=function(){return a9;};return a151c();}import{ECRClient,CreateRepositoryCommand,DeleteRepositoryCommand,GetAuthorizationTokenCommand,DescribeRepositoriesCommand}from'@aws-sdk/client-ecr';import{Route53,Route53Client,CreateHostedZoneCommand}from'@aws-sdk/client-route-53';import{Route53Domains,CheckDomainAvailabilityCommand,RegisterDomainCommand,ListPricesCommand}from'@aws-sdk/client-route-53-domains';const client=new EC2Client({}),route53Client=new Route53Client({}),route53=new Route53({}),route53Domains=new Route53Domains({});export class AWS{static [a151s(0x1bf)];['fsi'];[a151s(0x1cb)];[a151s(0x1f0)];constructor(a,b,c){const t=a151s;this[t(0x251)]=a,this[t(0x1cb)]=b,this[t(0x1f0)]=c;}static[a151s(0x1cf)](a,b,c){const u=a151s;return!AWS[u(0x1bf)]&&(AWS[u(0x1bf)]=new AWS(a,b,c)),AWS['instance'];}async[a151s(0x233)](a){const v=a151s;try{const {listIndexId:b,createdSgId:c,sgList:d}=await this['getSecurityGroups'](a);let f='';if(c===''){Log[v(0x186)](v(0x26b)),d[v(0x1ba)](function(h){const w=v;h['name']===a?Log[w(0x186)](w(0x1a7)+h['id']+w(0x1eb)+h['name']+w(0x246)+h['sgId']):Log[w(0x245)](w(0x1a7)+h['id']+w(0x1eb)+h[w(0x263)]+w(0x246)+h[w(0x243)]);});const g=await Actions[v(0x1af)](v(0x181)+b+']\x20')||b[v(0x1e3)]();d[v(0x1ba)](function(h){const x=v;h['id']===parseInt(g)&&(f=h[x(0x243)],Log[x(0x264)](x(0x232)+f+'\x0a'));});}else f=c,Log[v(0x264)](v(0x232)+f+'\x0a');if(f==='')throw new Error(v(0x25f));return f;}catch(h){Log[v(0x204)](h);throw h;}}async[a151s(0x218)](){const y=a151s;let a='';try{const b=new EC2Client({}),c={'Filters':[{'Name':y(0x24a),'Values':['x86_64']},{'Name':y(0x250),'Values':[y(0x217)]},{'Name':y(0x22d),'Values':['ebs']},{'Name':y(0x1a1),'Values':['available']},{'Name':y(0x1ac),'Values':[y(0x270)]},{'Name':'description','Values':[y(0x192),y(0x1e5),y(0x26d)]}]},d=new DescribeImagesCommand(c),{Images:f}=await b[y(0x1ce)](d);if(f&&f['length']>0x0){const g=new Date(),h=new Date(g['getTime']()-0x1e*0x18*0x3c*0x3c*0x3e8),i=f[y(0x19f)](j=>j[y(0x25b)]&&!j[y(0x1c0)]?.[y(0x1d2)](y(0x219))&&!j[y(0x1c0)]?.[y(0x1d2)](y(0x1aa))&&new Date(j['CreationDate'])>h)[y(0x188)](j=>({'amiId':j[y(0x21f)],'desc':j[y(0x1c0)],'date':j[y(0x25b)]}));if(i[y(0x1be)]>0x0){i[y(0x1fc)]((n,o)=>new Date(o[y(0x1e8)])[y(0x1f3)]()-new Date(n[y(0x1e8)])[y(0x1f3)]());const j=i[y(0x1b6)](0x0,0x4),k=j[y(0x188)]((n,o)=>({'id':o,'amiId':n[y(0x203)],'desc':n[y(0x199)]}));k[y(0x1ba)](n=>{const z=y;Log[z(0x245)](z(0x1a7)+n['id']+'\x20AMIID:\x20'+n[z(0x203)]+'\x20DESCRIPTION:\x20'+n['desc']);});const l=await Actions[y(0x1af)](y(0x19b))||'0',m=k[y(0x21c)](n=>n['id']===parseInt(l));if(m)a=m[y(0x203)],Log[y(0x264)](y(0x253)+a+y(0x1b2)+m[y(0x199)]);else throw Log[y(0x204)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');}else throw Log[y(0x204)](y(0x17e));}else throw Log['error'](y(0x266));}catch(n){Log[y(0x204)](n);}return a;}async[a151s(0x215)](){const A=a151s;let a='';try{const b=new EC2Client({}),c={},d=new DescribeSubnetsCommand(c),{Subnets:f}=await b[A(0x1ce)](d);if(f&&f[A(0x1be)]>0x0){const g=f[A(0x188)]((j,k)=>({'id':k,'cidr':j[A(0x185)],'az':j[A(0x197)],'subnetId':j[A(0x220)]}));g[A(0x1ba)](j=>{const B=A;Log[B(0x245)](B(0x1a7)+j['id']+'\x20CIDR:\x20'+j[B(0x1b5)]+B(0x262)+j['az']+'\x20SUBNETID:\x20'+j[B(0x1ec)]);});const h=await Actions[A(0x1af)]('Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20')||'0',i=g['find'](j=>j['id']===parseInt(h));if(i)a=i['subnetId'],Log[A(0x264)](A(0x19c)+a);else throw Log[A(0x204)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');}else throw Log['error'](A(0x183));}catch(j){Log[A(0x204)](j);}return a;}async[a151s(0x1c7)](a){const C=a151s;try{const b=new EC2Client({}),c={'Filters':[{'Name':C(0x198),'Values':[a]}]},d=new DescribeSubnetsCommand(c),e=await b['send'](d);return e[C(0x1f7)]&&e[C(0x1f7)][C(0x1be)]>0x0?e['Subnets'][0x0][C(0x185)]||'':'';}catch(f){return Log['error'](f),'';}}async[a151s(0x1d8)](a){const D=a151s;try{const b=new ECRClient({'region':a[D(0x212)]}),c={'repositoryName':a['name']},d=new CreateRepositoryCommand(c),f=await b[D(0x1ce)](d);return Log[D(0x264)](D(0x209)+a[D(0x263)]+D(0x269)+a['region']+'.'),f;}catch(g){Log[D(0x204)](D(0x1b8)+a[D(0x212)]+':\x20'+g);throw g;}}async[a151s(0x226)](a){const E=a151s,b=[E(0x225),E(0x211),E(0x231),E(0x271),'ap-south-1',E(0x20d),E(0x1cc),E(0x20e),E(0x237),E(0x1ad),E(0x25d),E(0x196),E(0x23d),E(0x1db),E(0x19d),E(0x1e0),E(0x200),'af-south-1','ap-east-1',E(0x1f8),E(0x22f),E(0x22a),E(0x208),E(0x1e4),'eu-south-2',E(0x21e),'me-south-1',E(0x1c6),'il-central-1'],c=[E(0x225),E(0x211),'us-west-1','us-west-2'],d=a===E(0x1a5)?b:a?a[E(0x1e1)](','):c;let f=[];const g=Log[E(0x257)]();for(const h of d){g['start']('Processing\x20'+h[E(0x20a)]()+E(0x222));const i=new ECRClient({'region':h[E(0x20a)]()});try{let j=undefined;do{const k=await Promise[E(0x18a)]([i[E(0x1ce)](new DescribeRepositoriesCommand({'nextToken':j})),new Promise(l=>setTimeout(()=>l('timeout'),0x7d0))]);if(k===E(0x272)){Log[E(0x252)](E(0x1b1)+h[E(0x20a)]()+'.');break;}else k[E(0x23b)]&&k[E(0x23b)]['length']>0x0&&(f=f[E(0x23f)](k[E(0x23b)][E(0x188)](l=>({'name':l[E(0x18e)],'uri':l['repositoryUri'],'region':h[E(0x20a)]()}))));j=k['nextToken'];}while(j);}catch(l){Log['error'](E(0x1c2)+h[E(0x20a)]()+':\x20'+l[E(0x1cd)]);}finally{g[E(0x187)]();}}return f[E(0x1be)]>0x0?(console[E(0x195)](),Log[E(0x264)](E(0x1da)),f['forEach'](m=>{const F=E;Log[F(0x247)](F(0x267)+m[F(0x212)]+',\x20Name:\x20'+m['name']+F(0x261)+m['uri']);})):Log['warn'](E(0x23c)),f;}async['route53CreateHostedZone'](a){const G=a151s;try{const b={'CallerReference':''+Date[G(0x254)](),'Name':a},c=new CreateHostedZoneCommand(b);await route53Client[G(0x1ce)](c),Log[G(0x264)]('Hosted\x20zone\x20created\x20successfully!');}catch(d){Log[G(0x204)]('Error\x20creating\x20hosted\x20zone'),console[G(0x204)](d);}}async[a151s(0x1a0)](a,b,c,d){const H=a151s;try{const e={'DomainName':b,'DurationInYears':c,'AutoRenew':d,'AdminContact':a,'RegistrantContact':a,'TechContact':a,'BillingContact':a},f=new RegisterDomainCommand(e),g=await route53Domains[H(0x1ce)](f);Log[H(0x186)](H(0x24d)+b+'\x27\x20has\x20been\x20registered\x20successfully.'),Log[H(0x186)]('Response:\x20'+JSON[H(0x25e)](g));}catch(h){Log[H(0x204)]('There\x20was\x20an\x20error\x20registering\x20the\x20domain\x20name'),Log[H(0x252)]('From\x20AWS:'),h[H(0x1d6)]&&(Log[H(0x204)](H(0x184)+h[H(0x1d6)][H(0x1f4)]),Log[H(0x204)](H(0x1fa)+h['$metadata'][H(0x26e)])),Log[H(0x204)](H(0x240)+h[H(0x1cd)]),h[H(0x263)]==='TLDRulesViolation'?Log['error'](h[H(0x1cd)]):Log['error'](H(0x260)),Log[H(0x204)](h);}}async[a151s(0x1a8)](a){const I=a151s,b={'DomainName':a},c=new CheckDomainAvailabilityCommand(b),d=await route53Domains['send'](c),e=d['Availability']===I(0x1dd);if(e){const f=a[I(0x1e1)]('.')[I(0x1a3)](),g={'MaxItems':0x1,'Tld':f};try{const h=new ListPricesCommand(g),i=await route53Domains[I(0x1ce)](h);if(i&&i[I(0x1ee)]&&i[I(0x1ee)][0x0]?.[I(0x193)]){const j=i[I(0x1ee)][0x0][I(0x193)];return{'available':e,'cost':j};}}catch(k){console[I(0x204)](I(0x1a4),k);}}return{'available':e};}async['linkEC2ToRoute53'](a,b,c){const J=a151s;try{const d=await route53['listHostedZonesByName']({'DNSName':c});if(!d?.[J(0x1bb)])throw Log['error'](J(0x216));const e=d?.[J(0x1bb)][0x0]['Id'],f={'ChangeBatch':{'Changes':[{'Action':ChangeAction['UPSERT'],'ResourceRecordSet':{'Name':c,'Type':RRType['A'],'TTL':0x12c,'ResourceRecords':[{'Value':b}]}}]},'HostedZoneId':e},g=new ChangeResourceRecordSetsCommand(f);await route53[J(0x1ce)](g),Log[J(0x186)]('Successfully\x20linked\x20EC2\x20instance\x20'+a+J(0x241)+c);}catch(h){console[J(0x204)](J(0x249),h);}}async[a151s(0x22b)]({awsAccountId:a,region:b}){const K=a151s,c=new ECRClient({'region':b});try{const d=new GetAuthorizationTokenCommand({'registryIds':[a]}),f=await c['send'](d);if(!f['authorizationData']||f['authorizationData'][K(0x1be)]===0x0)throw new Error(K(0x202));const g=f[K(0x235)][0x0];if(!g[K(0x228)])throw new Error(K(0x1bc));const h=g[K(0x228)];if(!h)throw new Error(K(0x23e));const i=Buffer[K(0x1ed)](h,'base64')[K(0x1e3)](),j=i['split'](':')[0x1];if(!j)throw new Error(K(0x265));return j;}catch(k){Log[K(0x204)](k);throw k;}}async[a151s(0x221)]({repoName:a,region:b}){const c=new ECRClient({'region':b});try{const d=new DeleteRepositoryCommand({'repositoryName':a,'force':!![]}),f=await c['send'](d);return f;}catch(g){Log['error'](g);throw g;}}async['ec2create'](a){const L=a151s;try{const b={'BlockDeviceMappings':[{'DeviceName':L(0x1ca),'Ebs':{'VolumeSize':0x64}}],'ImageId':a[L(0x1d5)],'InstanceType':a[L(0x26a)],'KeyName':a['key'],'MaxCount':a[L(0x205)],'MinCount':a[L(0x242)],'SecurityGroupIds':a['sgIds'][L(0x1e1)](','),'SubnetId':a[L(0x23a)],'TagSpecifications':[{'ResourceType':'instance','Tags':a['tags']}]};a[L(0x191)]&&(b[L(0x259)]=L(0x1f9)+a[L(0x191)]);const c=new RunInstancesCommand(b),d=await client[L(0x1ce)](c);return d;}catch(f){Log['error'](f);}}async[a151s(0x238)](a){const M=a151s;try{const b={'InstanceIds':[a[M(0x1e7)]]},c=new TerminateInstancesCommand(b),d=await client[M(0x1ce)](c);return d;}catch(f){return Log[M(0x204)](f),{};}}async[a151s(0x1f1)]({keyName:a,env:b}){const N=a151s,c=this[N(0x1cb)][N(0x258)](b),d=a151f['join'](c,N(0x206),a+N(0x1b3));try{const f={'KeyName':a},g=new CreateKeyPairCommand(f),h=await client[N(0x1ce)](g),i=h[N(0x24b)];if(i){await this['fsi'][N(0x1ae)]({'filePath':d,'data':i}),execSync('chmod\x20400\x20'+d,{'stdio':N(0x230)});const j=this['fsi'][N(0x227)](d);if(j)return Log[N(0x264)](N(0x20f)+d),{'keyName':a,'filePath':d};else throw new Error(N(0x1f2));}else throw new Error(N(0x26f));}catch(k){Log[N(0x204)](k),process[N(0x236)](0x1);}}async[a151s(0x1e6)]({port:a,groupId:b}){const O=a151s,c={'GroupId':b,'IpPermissions':[{'FromPort':a,'IpProtocol':O(0x207),'IpRanges':[{'CidrIp':'0.0.0.0/0','Description':''}],'ToPort':a}]},d=new AuthorizeSecurityGroupIngressCommand(c);return Log[O(0x186)](O(0x24f)+a+'\x20opened!'),await client['send'](d);}async[a151s(0x1de)](a){const P=a151s;try{a['description']===''&&(a['description']=await Actions[P(0x1af)](P(0x268))||P(0x19e));const b={'Description':a[P(0x194)],'GroupName':a[P(0x263)],'VpcId':a['vpcId']},c=new CreateSecurityGroupCommand(b),d=await client[P(0x1ce)](c),{GroupId:f}=d;if(!d)throw new Error(P(0x1f5));f&&a[P(0x229)][P(0x1ba)](g=>{const Q=P;this[Q(0x1e6)]({'port':parseInt(g),'groupId':f});}),Log['success'](P(0x1c3)+f+P(0x1c1)+a['name']);}catch(g){return Log[P(0x204)](g),![];}return!![];}async['ec2describeKeys'](a){const R=a151s,b=[];try{const c={},d=new DescribeKeyPairsCommand(c),f=await client['send'](d);if(!f)throw R(0x1f5);const {KeyPairs:g}=f;g?(g?.[R(0x1ba)]((h,i)=>{const S=R;h[S(0x1ef)]&&b[S(0x24e)]({'id':i,'name':h[S(0x1ef)]});}),b['length']>0x0&&b['forEach'](h=>{const T=R;h[T(0x263)]===a?.[T(0x1bd)]?Log[T(0x264)](T(0x1a7)+h['id']+T(0x1c1)+h[T(0x263)]):Log['notice'](T(0x1a7)+h['id']+T(0x1c1)+h[T(0x263)]);})):Log['error'](R(0x1d0));}catch(h){Log[R(0x204)](h);}return b;}async[a151s(0x210)](a){const U=a151s;try{const b={'KeyName':a},c=new DeleteKeyPairCommand(b);await client[U(0x1ce)](c);}catch(d){Log[U(0x204)](d),process[U(0x236)](0x1);}}async[a151s(0x1fe)](){const V=a151s,a=[];try{const b={'Filters':[{'Name':V(0x224),'Values':[V(0x22c)]}]},c=new DescribeInstancesCommand(b),d=await client[V(0x1ce)](c);d['Reservations']?.[V(0x1ba)]((f,g)=>{const W=V;if(f?.[W(0x201)]){const {InstanceId:h,PublicIpAddress:i,PrivateIpAddress:j,State:k,KeyName:l,Tags:m}=f[W(0x201)][0x0],n=m?.[W(0x21c)](({Key:o})=>o==='environment');a[W(0x24e)]({'id':g,'instanceId':h,'privateIp':j,'publicIp':i,'status':k?.['Name'],'name':l,'env':n?.[W(0x18c)]});}}),a[V(0x1be)]>0x0?a[V(0x1ba)](f=>{const X=V,g=X(0x1a7)+f['id']+X(0x1c1)+f['name']+X(0x1b0)+f[X(0x1fb)]+X(0x1ab)+f[X(0x255)]+X(0x190)+f['instanceId']+X(0x1b7)+f['publicIp']+X(0x18d)+f[X(0x19a)];if(f[X(0x255)]==='terminated')Log[X(0x204)](g);else f[X(0x255)]===X(0x1c9)?Log[X(0x264)](g):Log[X(0x186)](g);}):Log[V(0x204)](V(0x26c));}catch(f){Log[V(0x204)](f);}return a;}async[a151s(0x17f)](a){const Y=a151s;try{const b={'InstanceIds':[a['instanceId']]},c=new RebootInstancesCommand(b),d=await client['send'](c);return d[Y(0x1d6)][Y(0x1f4)]===0xc8&&Log[Y(0x264)](Y(0x214)),d;}catch(f){Log['error'](f);}}async[a151s(0x1b4)](){const Z=a151s;let a='';Log[Z(0x186)]('**\x20Available\x20\x20VPCs\x20**');const b=new DescribeVpcsCommand({}),c=await client[Z(0x1ce)](b),{Vpcs:d}=c,e=[];d&&d[Z(0x1ba)]((g,h)=>{const a0=Z;g[a0(0x1c4)]&&g['CidrBlock']&&e[a0(0x24e)]({'id':h,'vpcId':g[a0(0x1c4)],'cidr':g[a0(0x185)]});});e['forEach'](function(g){const a1=Z;console[a1(0x195)]('ID:\x20'+g['id']+a1(0x22e)+g[a1(0x189)]+a1(0x21d)+g[a1(0x1b5)]);});const f=await Actions[Z(0x1af)]('Please\x20choose\x20a\x20VPC:\x20[0]\x20')||0x0;e[Z(0x1ba)](function(g){const a2=Z;g['id']==f&&(a=g[a2(0x189)],Log[a2(0x264)](a2(0x1d1)+a+'\x0a'));});if(a==='')return Log['error'](Z(0x25f)),'';return a;}async['chooseInstance'](){const a3=a151s,a=await this[a3(0x1fe)]();if(a[a3(0x1be)]===0x0)return Log[a3(0x204)](a3(0x1e2)),null;const b=await Actions['ask']('[?]\x20Please\x20choose\x20an\x20instance\x20ID:\x20');!b&&(Log[a3(0x204)](a3(0x20c)),process[a3(0x236)](0x0));const c=a[a3(0x21c)](({id:d})=>{return d==parseInt(b);})||null;return c;}async[a151s(0x1df)]({env:a}){const a4=a151s;try{const b=this['cfg'][a4(0x1dc)]();if(!b)throw MustBeInProjectError;const {appName:c}=b,d=c+'-'+a,f=await Actions[a4(0x1af)](a4(0x18f)+d+']\x20')||d,{filePath:g}=await this[a4(0x1f1)]({'keyName':f,'env':a}),h=await Actions[a4(0x239)](a4(0x1d3),!![]);if(h)try{const i=a151f[a4(0x1b9)](a4(0x1fd),a,'ssh.json');!this[a4(0x251)][a4(0x227)](i)&&await this['scaffold']['template']({'srcPath':a4(0x256),'destPath':i,'context':{'app':f}});const j=a151e[a4(0x213)](a151f[a4(0x1b9)](a4(0x1fd),a,'ssh.json'),a4(0x1c8)),k=JSON[a4(0x180)](j);k[a4(0x21a)]=a151f[a4(0x1b9)]('_keys',f+'.pem.txt'),a151e[a4(0x1d9)](a151f[a4(0x1b9)](a4(0x1fd),a,a4(0x25a)),JSON[a4(0x25e)](k,null,0x2));}catch(l){Log[a4(0x204)](l),Log[a4(0x204)](a4(0x248));}return{'keyName':f,'filePath':g};}catch(m){Log['error'](m),process['exit'](0x1);}}async[a151s(0x1e9)](a){const a5=a151s,b=[],c={},d=new DescribeSecurityGroupsCommand(c),e=await client[a5(0x1ce)](d),{SecurityGroups:f}=e;f&&f[a5(0x1ba)](function(i,j){const a6=a5;i[a6(0x1c5)]&&i[a6(0x21b)]&&b[a6(0x24e)]({'id':j,'name':i['GroupName'],'sgId':i[a6(0x21b)]});});let g='',h=0x0;return b[a5(0x1ba)](function(i){const a7=a5;i[a7(0x263)]===a&&(g=i[a7(0x243)],h=i['id']);}),{'sgList':b,'createdSgId':g,'listIndexId':h};}async[a151s(0x1ff)](a){const a8=a151s;try{const b={'GroupId':a},c=new DeleteSecurityGroupCommand(b);await client['send'](c);}catch(d){Log[a8(0x204)](d),process[a8(0x236)](0x1);}}}
@@ -1 +1 @@
1
- (function(a,b){var k=a152d,c=a();while(!![]){try{var d=parseInt(k(0x10b))/0x1+-parseInt(k(0x103))/0x2+parseInt(k(0x106))/0x3*(parseInt(k(0x101))/0x4)+-parseInt(k(0x105))/0x5+-parseInt(k(0xfe))/0x6+-parseInt(k(0xff))/0x7*(parseInt(k(0x109))/0x8)+parseInt(k(0x10a))/0x9*(parseInt(k(0x104))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a152c,0xd6fdc));function a152d(a,b){var c=a152c();return a152d=function(d,e){d=d-0xfd;var f=c[d];return f;},a152d(a,b);}function a152c(){var n=['apply','3492422mRVwuI','41890uBVjfS','857890XgmBvP','841143EfnoPb','(((.+)+)+)+$','search','496jgMxmz','6354EMfyTa','1369343IwVade','constructor','8411154HrqqtK','45941WfYNmc','toString','4WFdDkT'];a152c=function(){return n;};return a152c();}export var CountryCode;(function(c){var d=(function(){var f=!![];return function(g,h){var i=f?function(){var l=a152d;if(h){var j=h[l(0x102)](g,arguments);return h=null,j;}}:function(){};return f=![],i;};}()),e=d(this,function(){var m=a152d;return e[m(0x100)]()[m(0x108)](m(0x107))['toString']()[m(0xfd)](e)[m(0x108)](m(0x107));});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 a152c(){var n=['60140inFQsE','toString','14082cCeLbr','(((.+)+)+)+$','1343346IspbjB','59944uSyJDP','496215IZHwRc','2536110xjgOdf','144zfajSh','6hChCOG','search','525gYDJxO','apply','583206gwLBrw'];a152c=function(){return n;};return a152c();}function a152d(a,b){var c=a152c();return a152d=function(d,e){d=d-0x1e2;var f=c[d];return f;},a152d(a,b);}(function(a,b){var k=a152d,c=a();while(!![]){try{var d=parseInt(k(0x1e7))/0x1+parseInt(k(0x1ea))/0x2*(parseInt(k(0x1e3))/0x3)+-parseInt(k(0x1e2))/0x4*(parseInt(k(0x1e8))/0x5)+-parseInt(k(0x1ec))/0x6+parseInt(k(0x1e5))/0x7*(parseInt(k(0x1ed))/0x8)+parseInt(k(0x1ee))/0x9+-parseInt(k(0x1ef))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a152c,0x4a310));export var CountryCode;(function(c){var d=(function(){var f=!![];return function(g,h){var i=f?function(){var l=a152d;if(h){var j=h[l(0x1e6)](g,arguments);return h=null,j;}}:function(){};return f=![],i;};}()),e=d(this,function(){var m=a152d;return e[m(0x1e9)]()[m(0x1e4)](m(0x1eb))[m(0x1e9)]()['constructor'](e)['search'](m(0x1eb));});e(),c['AC']='AC',c['AD']='AD',c['AE']='AE',c['AF']='AF',c['AG']='AG',c['AI']='AI',c['AL']='AL',c['AM']='AM',c['AN']='AN',c['AO']='AO',c['AQ']='AQ',c['AR']='AR',c['AS']='AS',c['AT']='AT',c['AU']='AU',c['AW']='AW',c['AX']='AX',c['AZ']='AZ',c['BA']='BA',c['BB']='BB',c['BD']='BD',c['BE']='BE',c['BF']='BF',c['BG']='BG',c['BH']='BH',c['BI']='BI',c['BJ']='BJ',c['BL']='BL',c['BM']='BM',c['BN']='BN',c['BO']='BO',c['BQ']='BQ',c['BR']='BR',c['BS']='BS',c['BT']='BT',c['BV']='BV',c['BW']='BW',c['BY']='BY',c['BZ']='BZ',c['CA']='CA',c['CC']='CC',c['CD']='CD',c['CF']='CF',c['CG']='CG',c['CH']='CH',c['CI']='CI',c['CK']='CK',c['CL']='CL',c['CM']='CM',c['CN']='CN',c['CO']='CO',c['CR']='CR',c['CU']='CU',c['CV']='CV',c['CW']='CW',c['CX']='CX',c['CY']='CY',c['CZ']='CZ',c['DE']='DE',c['DJ']='DJ',c['DK']='DK',c['DM']='DM',c['DO']='DO',c['DZ']='DZ',c['EC']='EC',c['EE']='EE',c['EG']='EG',c['EH']='EH',c['ER']='ER',c['ES']='ES',c['ET']='ET',c['FI']='FI',c['FJ']='FJ',c['FK']='FK',c['FM']='FM',c['FO']='FO',c['FR']='FR',c['GA']='GA',c['GB']='GB',c['GD']='GD',c['GE']='GE',c['GF']='GF',c['GG']='GG',c['GH']='GH',c['GI']='GI',c['GL']='GL',c['GM']='GM',c['GN']='GN',c['GP']='GP',c['GQ']='GQ',c['GR']='GR',c['GS']='GS',c['GT']='GT',c['GU']='GU',c['GW']='GW',c['GY']='GY',c['HK']='HK',c['HM']='HM',c['HN']='HN',c['HR']='HR',c['HT']='HT',c['HU']='HU',c['ID']='ID',c['IE']='IE',c['IL']='IL',c['IM']='IM',c['IN']='IN',c['IO']='IO',c['IQ']='IQ',c['IR']='IR',c['IS']='IS',c['IT']='IT',c['JE']='JE',c['JM']='JM',c['JO']='JO',c['JP']='JP',c['KE']='KE',c['KG']='KG',c['KH']='KH',c['KI']='KI',c['KM']='KM',c['KN']='KN',c['KP']='KP',c['KR']='KR',c['KW']='KW',c['KY']='KY',c['KZ']='KZ',c['LA']='LA',c['LB']='LB',c['LC']='LC',c['LI']='LI',c['LK']='LK',c['LR']='LR',c['LS']='LS',c['LT']='LT',c['LU']='LU',c['LV']='LV',c['LY']='LY',c['MA']='MA',c['MC']='MC',c['MD']='MD',c['ME']='ME',c['MF']='MF',c['MG']='MG',c['MH']='MH',c['MK']='MK',c['ML']='ML',c['MM']='MM',c['MN']='MN',c['MO']='MO',c['MP']='MP',c['MQ']='MQ',c['MR']='MR',c['MS']='MS',c['MT']='MT',c['MU']='MU',c['MV']='MV',c['MW']='MW',c['MX']='MX',c['MY']='MY',c['MZ']='MZ',c['NA']='NA',c['NC']='NC',c['NE']='NE',c['NF']='NF',c['NG']='NG',c['NI']='NI',c['NL']='NL',c['NO']='NO',c['NP']='NP',c['NR']='NR',c['NU']='NU',c['NZ']='NZ',c['OM']='OM',c['PA']='PA',c['PE']='PE',c['PF']='PF',c['PG']='PG',c['PH']='PH',c['PK']='PK',c['PL']='PL',c['PM']='PM',c['PN']='PN',c['PR']='PR',c['PS']='PS',c['PT']='PT',c['PW']='PW',c['PY']='PY',c['QA']='QA',c['RE']='RE',c['RO']='RO',c['RS']='RS',c['RU']='RU',c['RW']='RW',c['SA']='SA',c['SB']='SB',c['SC']='SC',c['SD']='SD',c['SE']='SE',c['SG']='SG',c['SH']='SH',c['SI']='SI',c['SJ']='SJ',c['SK']='SK',c['SL']='SL',c['SM']='SM',c['SN']='SN',c['SO']='SO',c['SR']='SR',c['SS']='SS',c['ST']='ST',c['SV']='SV',c['SX']='SX',c['SY']='SY',c['SZ']='SZ',c['TC']='TC',c['TD']='TD',c['TF']='TF',c['TG']='TG',c['TH']='TH',c['TJ']='TJ',c['TK']='TK',c['TL']='TL',c['TM']='TM',c['TN']='TN',c['TO']='TO',c['TP']='TP',c['TR']='TR',c['TT']='TT',c['TV']='TV',c['TW']='TW',c['TZ']='TZ',c['UA']='UA',c['UG']='UG',c['US']='US',c['UY']='UY',c['UZ']='UZ',c['VA']='VA',c['VC']='VC',c['VE']='VE',c['VG']='VG',c['VI']='VI',c['VN']='VN',c['VU']='VU',c['WF']='WF',c['WS']='WS',c['YE']='YE',c['YT']='YT',c['ZA']='ZA',c['ZM']='ZM',c['ZW']='ZW';}(CountryCode||(CountryCode={})));
@@ -1 +1 @@
1
- const a153w=a153d;(function(a,b){const t=a153d,c=a();while(!![]){try{const d=parseInt(t(0x174))/0x1+parseInt(t(0x1cc))/0x2+parseInt(t(0x1b3))/0x3*(-parseInt(t(0x178))/0x4)+parseInt(t(0x1c1))/0x5+-parseInt(t(0x1d3))/0x6+-parseInt(t(0x1ad))/0x7+-parseInt(t(0x1c9))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a153c,0xb24df));function a153d(a,b){const c=a153c();return a153d=function(d,e){d=d-0x16b;let f=c[d];return f;},a153d(a,b);}const a153b=(function(){let a=!![];return function(b,c){const d=a?function(){const u=a153d;if(c){const e=c[u(0x16c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a153a=a153b(this,function(){const v=a153d;return a153a['toString']()[v(0x19c)]('(((.+)+)+)+$')[v(0x1c2)]()['constructor'](a153a)[v(0x19c)](v(0x1cb));});a153a();import a153e from'fs';import a153f from'path';import a153g from'os';import a153h from'delete';import{Log}from'../log/log.class.js';import{HTTPS}from'../https/https.class.js';function a153c(){const U=['api','Unsupported\x20js\x20engine:\x20','MAKA_DEV','readFileSync','apply','homedir','config.json','setEnvSettings','config','Unsupported\x20css\x20engine:\x20','existsSync','setTemplate()','1390842WSDKPd','Unsupported\x20theme\x20engine:\x20','assign','engines','1568852MHEeZl','Environment\x20argument\x20provided,\x20but\x20its\x20value\x20is\x20not\x20recognized.','success','tsx','/.maka/global-config.json\x20file\x20is\x20not\x20valid\x20JSON.\x20Your\x20global-config.json\x20has\x20been\x20removed.\x20\x20Please\x20re-run\x20your\x20last\x20command.','instance','length','www.maka-cli.com','delGlobalConfig()','min','getAppConfigPath()','No\x20maka\x20project\x20config\x20file\x20found.','Unsupported\x20html\x20engine:\x20','join','Environemnt\x20argument\x20provided,\x20but\x20its\x20value\x20is\x20not\x20recognized.','Are\x20you\x20sure\x20you\x20are\x20in\x20a\x20maka\x20project?','stringify','exit','env','startsWith','getMeteorInstallPath','getGlobalConfig','withValidation','engine','Your\x20','checkGlobalConfigExists()','setTemplate','defaultValue()','getEnvFromShorthand','delGlobalConfigHash()','utf8','none','filter','post','cert','writeToFile','search','fsi','withValidation()','html','getMakaProjectConfig','vanilla','\x20in\x20','No\x20app\x20name\x20present\x20in\x20./maka/config.json.','settings.json','material','Successfully\x20set\x20','withValue','global-config.json','attemptAutoLogin','statSync','setProjectConfig','react','5159707eTjjWu','theme','template','getMakaProjectConfig()','charAt','less','3NsBxur','string','css','rest','getAppProjectConfigs()','defaultValue','resolve',',\x20consider\x20running\x20\x22maka\x20g:config\x20','.meteor','client','getAppProjectConfigs','setProjectConfig()','Error\x20in\x20','false','3958700TMJnlG','toString','createFile','undefined','getAppConfigPath','True','deepen','warn','4507832QvhcoU','.maka','(((.+)+)+)+$','705218fmnHMU','readdirSync','findProjectDirectory','isFile','setGlobalConfig','error','setEngine','672378YnIwIS','pathFromProject','checkConfigExists','delGlobalConfig','jest','parse','setEngine()','No\x20global\x20config\x20file\x20','token','sync','Not\x20in\x20a\x20maka\x20project','\x20to\x20','writeFileSync','includes','setEnvSettings()','apollo'];a153c=function(){return U;};return a153c();}const GLOBAL_CONFIG=a153w(0x1a8),PROJECT_CONFIG=a153w(0x16e),homeDir=a153g[a153w(0x16d)](),errorHandler=(a,b)=>{const x=a153w;process[x(0x18a)][x(0x1e5)]===x(0x1c6)&&Log[x(0x1d1)](x(0x1bf)+a),b&&console[x(0x1d1)](b);};export class CFG{static [a153w(0x17d)];[a153w(0x19d)];constructor(a){this['fsi']=a;}static['getInstance'](a){const y=a153w;return!CFG[y(0x17d)]&&(CFG[y(0x17d)]=new CFG(a)),CFG[y(0x17d)];}[a153w(0x1bd)](){const z=a153w;try{const a=this[z(0x19d)][z(0x1ce)]();if(a===undefined)throw Log[z(0x1d1)](z(0x1dd));else{if(typeof a===z(0x1b4)){const b=a153f[z(0x185)](a,z(0x170)),c=a153e[z(0x1cd)](b)[z(0x198)](d=>!d[z(0x18b)]('.')&&a153e[z(0x1aa)](a153f[z(0x185)](b,d))['isDirectory']());return c;}}return[];}catch(d){errorHandler(z(0x1b7),d),process['exit'](0x1);}}[a153w(0x194)](a){const A=a153w;try{if(!a||typeof a!==A(0x1b4))throw A(0x179);const b=this[A(0x1bd)]();function c(h,k){const B=A,l=[],m=h[B(0x17e)],n=k[B(0x17e)];for(let o=0x0;o<=m;o++){l[o]=[o];}for(let p=0x0;p<=n;p++){l[0x0][p]=p;}for(let q=0x1;q<=m;q++){for(let r=0x1;r<=n;r++){const s=h[q-0x1]===k[r-0x1]?0x0:0x1;l[q][r]=Math[B(0x181)](l[q-0x1][r]+0x1,l[q][r-0x1]+0x1,l[q-0x1][r-0x1]+s);}}return l[m][n];}let d=Infinity,f='';const g=a[A(0x1b1)](0x0);return b['forEach'](h=>{const C=A;if(h[C(0x1b1)](0x0)===g){const i=c(a,h);i<d&&(d=i,f=h);}}),f!==''?f:a;}catch(h){errorHandler('getEnvFromShorthand()',h),process[A(0x189)](0x1);}}['checkGlobalConfigExists'](){const D=a153w;try{const a=a153f[D(0x185)](homeDir,D(0x1bb),D(0x1ca),GLOBAL_CONFIG),b=a153e['existsSync'](a);if(!b)throw Log[D(0x1d1)](D(0x1da)+a);return a;}catch(c){errorHandler(D(0x191),c),process[D(0x189)](0x1);}}[a153w(0x1d5)](a){const E=a153w;try{if(!a||typeof a!==E(0x1b4))throw E(0x186);const b=this[E(0x194)](a),c=this[E(0x19d)]['pathFromProject']({'pathParts':[E(0x170),b]}),d=a153e[E(0x172)](c);if(!d)return![];return!![];}catch(f){errorHandler('checkConfigExists()',f),process[E(0x189)](0x1);}}[a153w(0x1c5)](a){const F=a153w;try{if(!a||typeof a!==F(0x1b4))throw'Environemnt\x20argument\x20provided,\x20but\x20its\x20value\x20is\x20not\x20recognized.';const b=this[F(0x194)](a),c=this[F(0x19d)][F(0x1d4)]({'pathParts':[F(0x170),b]}),d=a153e['existsSync'](c);if(!d)throw Log[F(0x1d1)]('No\x20configuration:\x20'+b+F(0x1ba)+b+'\x22');return c;}catch(f){errorHandler(F(0x182),f),process[F(0x189)](0x1);}}['getEnvSettings'](a){const G=a153w;try{const b=this['getAppConfigPath'](a),c=a153e[G(0x16b)](a153f['join'](b,'settings.json'),'utf8');return c[G(0x1c2)]();}catch(d){errorHandler('getEnvSettings()',d),process[G(0x189)](0x1);}}[a153w(0x16f)](a,b,c){const H=a153w;try{const d=this[H(0x1c5)](a),f=a153e[H(0x16b)](a153f[H(0x185)](d,H(0x1a4)),'utf8'),g=JSON[H(0x1d8)](f['toString']());g[b]=c;const h=JSON[H(0x188)](g,null,0x2);a153e[H(0x1df)](a153f[H(0x185)](d,H(0x1a4)),h),Log[H(0x17a)](H(0x1a6)+b+H(0x1de)+c+H(0x1a2)+a153f[H(0x1b9)](d));}catch(i){errorHandler(H(0x1e1),i),process[H(0x189)](0x1);}}[a153w(0x1a0)](){const I=a153w;try{const a=this[I(0x19d)][I(0x1d4)]({'pathParts':[I(0x1ca),PROJECT_CONFIG]}),b=this['fsi']['isFile'](a);if(!b){Log['error'](I(0x187));throw Log[I(0x1d1)](I(0x183));}const c=JSON[I(0x1d8)](a153e[I(0x16b)](a,'utf8'));return!c['appName']&&(Log[I(0x1c8)](I(0x1a3)),c['appName']='app'),c;}catch(d){errorHandler(I(0x1b0),d),process['exit'](0x1);}}['delGlobalConfigHash'](){const J=a153w;try{const a=a153f[J(0x185)](this[J(0x19d)][J(0x18c)](),'.maka',GLOBAL_CONFIG),b=JSON[J(0x1d8)](a153e['readFileSync'](a)[J(0x1c2)]()),c=JSON[J(0x188)](b,null,0x2);return this[J(0x19d)][J(0x19b)]({'filePath':a,'data':c,'opts':{'absolute':!![],'silent':!![]}}),b;}catch(d){errorHandler(J(0x195),d),process[J(0x189)](0x1);}}['delGlobalConfig'](){const K=a153w;try{const a=a153f[K(0x185)](this[K(0x19d)][K(0x18c)](),K(0x1ca),GLOBAL_CONFIG);a153h['sync'](a,{'force':!![]});}catch(b){errorHandler(K(0x180),b),process[K(0x189)](0x1);}}async[a153w(0x18d)](){const L=a153w;try{const a=a153f[L(0x185)](homeDir,L(0x1ca));a153e['existsSync'](a)&&a153h[L(0x1dc)](a,{'force':!![]});const b=a153f[L(0x185)](this[L(0x19d)]['getMeteorInstallPath'](),L(0x1ca),GLOBAL_CONFIG);if(!this[L(0x19d)][L(0x1cf)](b)){const c={'token':{'authToken':'','userId':'','when':''}},d=JSON[L(0x188)](c,null,0x2);await this[L(0x19d)][L(0x1c3)]({'filePath':b,'data':d,'opts':{'force':!![],'silent':!![]}});}return JSON[L(0x1d8)](a153e[L(0x16b)](b)[L(0x1c2)]());}catch(f){f instanceof SyntaxError?(this[L(0x1d6)](),Log[L(0x1d1)](L(0x190)+this[L(0x19d)][L(0x18c)]()+L(0x17c))):console[L(0x1d1)](f),process[L(0x189)](0x1);}}[a153w(0x1ab)](a,b){const M=a153w;try{const c=this[M(0x19d)]['pathFromProject']({'pathParts':[M(0x1ca),PROJECT_CONFIG]});let d=JSON[M(0x1d8)](a153e[M(0x16b)](c,M(0x196)));const f=this[M(0x19d)][M(0x1c7)]({[a]:b});d=this[M(0x19d)]['deeperAssign'](d,f);const g=JSON[M(0x188)](d,null,0x2);a153e[M(0x1df)](c,g);}catch(h){errorHandler(M(0x1be),h),process[M(0x189)](0x1);}}async[a153w(0x1d0)](a){const N=a153w;try{const b=a153f[N(0x185)](homeDir,'.meteor',N(0x1ca),GLOBAL_CONFIG);if(!this[N(0x19d)][N(0x1cf)](b)){const f=JSON[N(0x188)](a,null,0x2);await this['fsi'][N(0x1c3)]({'filePath':b,'data':f,'opts':{'force':!![],'silent':!![]}});}const c=await this[N(0x18d)]();Object[N(0x176)](c,{...a});const d=JSON[N(0x188)](c,null,0x2);this[N(0x19d)][N(0x19b)]({'filePath':b,'data':d,'opts':{'absolute':!![],'silent':!![]}});}catch(g){errorHandler('setGlobalConfig()',g),process[N(0x189)](0x1);}}async[a153w(0x1a9)](){const O=a153w,a=await this[O(0x18d)](),b=a?.[O(0x1db)],c=a?.[O(0x19a)];if(b?.['authToken']){const d={'hostname':O(0x17f),'path':'/api/v1/encodeJwt','headers':{'x-auth-token':b['authToken']},'data':{}};c&&Object[O(0x176)](d,{'cert':c});const {data:e,statusCode:f}=await HTTPS[O(0x199)](d),{token:g}=JSON[O(0x1d8)](e);g&&f!==0x198&&this['setGlobalConfig'](a);}}[a153w(0x192)](a,b){const P=a153w;try{const c=this['fsi'][P(0x1d4)]({'pathParts':[P(0x1ca),PROJECT_CONFIG]}),d=JSON[P(0x1d8)](a153e[P(0x16b)](c,P(0x196)));d[P(0x1af)][a]=b;const f=JSON['stringify'](d,null,0x2);a153e[P(0x1df)](c,f);}catch(g){errorHandler(P(0x173),g),process[P(0x189)](0x1);}}[a153w(0x1d2)](a,b){const Q=a153w;try{const c=this[Q(0x19d)]['pathFromProject']({'pathParts':['.maka',PROJECT_CONFIG]}),d=JSON[Q(0x1d8)](a153e[Q(0x16b)](c,'utf8'));d[Q(0x18f)][a]=b;const f=JSON[Q(0x188)](d,null,0x2);a153e[Q(0x1df)](c,f);}catch(g){errorHandler(Q(0x1d9),g),process['exit'](0x1);}}[a153w(0x1b8)](a,b){const R=a153w;try{return typeof a===R(0x1c4)?b:a;}catch(c){errorHandler(R(0x193),c);}}async[a153w(0x1a7)](a,b){const S=a153w;try{let c=null;return this[S(0x18e)](a),c=await b(),c;}catch(d){errorHandler('withValue()',d),process[S(0x189)](0x1);}}[a153w(0x18e)](a){const T=a153w;try{const b={'html':[T(0x19f)],'js':['js','jsx','ts',T(0x17b)],'css':[T(0x1b5),'scss',T(0x1b2),T(0x197)],'api':[T(0x1b6),T(0x197)],'test':[T(0x1d7),'mocha',T(0x197)],'client':[T(0x1ac),T(0x1a1)],'graphql':[T(0x1e2)],'ssr':['true',T(0x1c0)],'theme':[T(0x1a5),'none']},c=a[T(0x177)]=this['defaultValue'](a[T(0x177)],{});if(c[T(0x19f)]&&!b[T(0x19f)][T(0x1e0)](c[T(0x19f)]))throw new Error(T(0x184)+c[T(0x19f)]);if(c['js']&&!b['js']['includes'](c['js']))throw new Error(T(0x1e4)+c['js']);if(c[T(0x1b5)]&&!b[T(0x1b5)][T(0x1e0)](c['css']))throw new Error(T(0x171)+c[T(0x1b5)]);if(c[T(0x1e3)]&&!b[T(0x1e3)]['includes'](c[T(0x1e3)]))throw new Error('Unsupported\x20api\x20engine:\x20'+c['api']);if(c[T(0x1bc)]&&!b[T(0x1bc)][T(0x1e0)](c[T(0x1bc)]))throw new Error('Unsupported\x20client\x20engine:\x20'+c[T(0x1bc)]);if(c[T(0x1ae)]&&!b[T(0x1ae)][T(0x1e0)](c[T(0x1ae)]))throw new Error(T(0x175)+c[T(0x1ae)]);return c['html']=this['defaultValue'](c[T(0x19f)],T(0x19f)),c['js']=this[T(0x1b8)](c['js'],'js'),c[T(0x1b5)]=this['defaultValue'](c[T(0x1b5)],'css'),c[T(0x1bc)]=this[T(0x1b8)](c['client'],T(0x1ac)),c[T(0x1e3)]=this['defaultValue'](c[T(0x1e3)],T(0x197)),c[T(0x1ae)]=this[T(0x1b8)](c[T(0x1ae)],'none'),a;}catch(d){errorHandler(T(0x19e),d),process['exit'](0x1);}}}
1
+ const a153v=a153d;(function(a,b){const t=a153d,c=a();while(!![]){try{const d=-parseInt(t(0x115))/0x1*(parseInt(t(0xf6))/0x2)+parseInt(t(0x12c))/0x3*(-parseInt(t(0x134))/0x4)+parseInt(t(0x10d))/0x5+-parseInt(t(0x14c))/0x6+-parseInt(t(0xea))/0x7+parseInt(t(0x13d))/0x8*(parseInt(t(0x149))/0x9)+-parseInt(t(0xec))/0xa*(-parseInt(t(0x131))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a153c,0x238a8));const a153b=(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;};}()),a153a=a153b(this,function(){const u=a153d;return a153a[u(0x12b)]()['search']('(((.+)+)+)+$')[u(0x12b)]()['constructor'](a153a)['search'](u(0x135));});a153a();import a153e from'fs';import a153f from'path';import a153g from'os';import a153h from'delete';import{Log}from'../log/log.class.js';import{HTTPS}from'../https/https.class.js';const GLOBAL_CONFIG='global-config.json',PROJECT_CONFIG='config.json',homeDir=a153g[a153v(0xf9)](),errorHandler=(a,b)=>{const w=a153v;process[w(0x14d)][w(0xf4)]===w(0x126)&&Log[w(0x12a)]('Error\x20in\x20'+a),b&&console[w(0x12a)](b);};function a153c(){const T=['react','setGlobalConfig()','exit','existsSync','includes','delGlobalConfigHash','setGlobalConfig','www.maka-cli.com','vanilla','config','deeperAssign','No\x20app\x20name\x20present\x20in\x20./maka/config.json.','readFileSync','762181vZhYpz','Environemnt\x20argument\x20provided,\x20but\x20its\x20value\x20is\x20not\x20recognized.','60klEthC','Successfully\x20set\x20','getEnvFromShorthand','delGlobalConfig()','utf8','getEnvFromShorthand()','getAppProjectConfigs','getAppConfigPath()','MAKA_DEV','min','114tmrUOQ','instance','setEnvSettings','homedir','tsx','No\x20maka\x20project\x20config\x20file\x20found.','css','getInstance','parse','success','getEnvSettings()','statSync','template','No\x20configuration:\x20','delGlobalConfigHash()','Are\x20you\x20sure\x20you\x20are\x20in\x20a\x20maka\x20project?','Unsupported\x20theme\x20engine:\x20','Not\x20in\x20a\x20maka\x20project','.maka','startsWith','getEnvSettings','Unsupported\x20html\x20engine:\x20','token','391420uAaGcV','undefined','Unsupported\x20api\x20engine:\x20','Unsupported\x20client\x20engine:\x20','withValidation','setEngine()','theme','writeToFile','2309pbzKbk','defaultValue','readdirSync','setProjectConfig','less','settings.json','authToken','mocha','/.maka/global-config.json\x20file\x20is\x20not\x20valid\x20JSON.\x20Your\x20global-config.json\x20has\x20been\x20removed.\x20\x20Please\x20re-run\x20your\x20last\x20command.','html','apollo','rest','.meteor','checkGlobalConfigExists','getGlobalConfig','checkGlobalConfigExists()','getMeteorInstallPath','True','Environment\x20argument\x20provided,\x20but\x20its\x20value\x20is\x20not\x20recognized.','engines','jest','error','toString','264387liJAUP','setTemplate','setProjectConfig()','join','defaultValue()','951005eUCdov','withValidation()','withValue','8emrtEb','(((.+)+)+)+$','none','string','stringify','checkConfigExists','sync','fsi','charAt','736bubEaX','writeFileSync','\x20in\x20','findProjectDirectory','filter','post','setTemplate()','createFile',',\x20consider\x20running\x20\x22maka\x20g:config\x20','client','isFile','pathFromProject','20907SjbowU','getMakaProjectConfig()','false','1490400KmDFYA','env','appName','material','length','api','Unsupported\x20css\x20engine:\x20','getAppConfigPath','delGlobalConfig','withValue()','forEach','assign'];a153c=function(){return T;};return a153c();}function a153d(a,b){const c=a153c();return a153d=function(d,e){d=d-0xda;let f=c[d];return f;},a153d(a,b);}export class CFG{static ['instance'];['fsi'];constructor(a){this['fsi']=a;}static[a153v(0xfd)](a){const x=a153v;return!CFG[x(0xf7)]&&(CFG[x(0xf7)]=new CFG(a)),CFG[x(0xf7)];}[a153v(0xf2)](){const y=a153v;try{const a=this['fsi'][y(0x140)]();if(a===undefined)throw Log[y(0x12a)](y(0x107));else{if(typeof a===y(0x137)){const b=a153f[y(0x12f)](a,y(0xe6)),c=a153e[y(0x117)](b)[y(0x141)](d=>!d[y(0x109)]('.')&&a153e[y(0x101)](a153f['join'](b,d))['isDirectory']());return c;}}return[];}catch(d){errorHandler('getAppProjectConfigs()',d),process[y(0xdf)](0x1);}}['getEnvFromShorthand'](a){const z=a153v;try{if(!a||typeof a!=='string')throw z(0x127);const b=this[z(0xf2)]();function c(h,k){const A=z,l=[],m=h[A(0x150)],n=k[A(0x150)];for(let o=0x0;o<=m;o++){l[o]=[o];}for(let p=0x0;p<=n;p++){l[0x0][p]=p;}for(let q=0x1;q<=m;q++){for(let r=0x1;r<=n;r++){const s=h[q-0x1]===k[r-0x1]?0x0:0x1;l[q][r]=Math[A(0xf5)](l[q-0x1][r]+0x1,l[q][r-0x1]+0x1,l[q-0x1][r-0x1]+s);}}return l[m][n];}let d=Infinity,f='';const g=a[z(0x13c)](0x0);return b[z(0xdb)](h=>{const B=z;if(h[B(0x13c)](0x0)===g){const i=c(a,h);i<d&&(d=i,f=h);}}),f!==''?f:a;}catch(h){errorHandler(z(0xf1),h),process[z(0xdf)](0x1);}}[a153v(0x122)](){const C=a153v;try{const a=a153f[C(0x12f)](homeDir,C(0x121),'.maka',GLOBAL_CONFIG),b=a153e[C(0xe0)](a);if(!b)throw Log['error']('No\x20global\x20config\x20file\x20'+a);return a;}catch(c){errorHandler(C(0x124),c),process[C(0xdf)](0x1);}}[a153v(0x139)](a){const D=a153v;try{if(!a||typeof a!=='string')throw D(0xeb);const b=this[D(0xee)](a),c=this[D(0x13b)][D(0x148)]({'pathParts':['config',b]}),d=a153e[D(0xe0)](c);if(!d)return![];return!![];}catch(f){errorHandler('checkConfigExists()',f),process[D(0xdf)](0x1);}}[a153v(0x153)](a){const E=a153v;try{if(!a||typeof a!==E(0x137))throw E(0xeb);const b=this['getEnvFromShorthand'](a),c=this[E(0x13b)][E(0x148)]({'pathParts':[E(0xe6),b]}),d=a153e[E(0xe0)](c);if(!d)throw Log[E(0x12a)](E(0x103)+b+E(0x145)+b+'\x22');return c;}catch(f){errorHandler(E(0xf3),f),process[E(0xdf)](0x1);}}[a153v(0x10a)](a){const F=a153v;try{const b=this[F(0x153)](a),c=a153e[F(0xe9)](a153f[F(0x12f)](b,F(0x11a)),F(0xf0));return c[F(0x12b)]();}catch(d){errorHandler(F(0x100),d),process[F(0xdf)](0x1);}}[a153v(0xf8)](a,b,c){const G=a153v;try{const d=this[G(0x153)](a),f=a153e['readFileSync'](a153f['join'](d,'settings.json'),G(0xf0)),g=JSON[G(0xfe)](f[G(0x12b)]());g[b]=c;const h=JSON[G(0x138)](g,null,0x2);a153e[G(0x13e)](a153f[G(0x12f)](d,G(0x11a)),h),Log[G(0xff)](G(0xed)+b+'\x20to\x20'+c+G(0x13f)+a153f['resolve'](d));}catch(i){errorHandler('setEnvSettings()',i),process['exit'](0x1);}}['getMakaProjectConfig'](){const H=a153v;try{const a=this['fsi'][H(0x148)]({'pathParts':['.maka',PROJECT_CONFIG]}),b=this[H(0x13b)][H(0x147)](a);if(!b){Log[H(0x12a)](H(0x105));throw Log[H(0x12a)](H(0xfb));}const c=JSON['parse'](a153e['readFileSync'](a,'utf8'));return!c['appName']&&(Log['warn'](H(0xe8)),c[H(0x14e)]='app'),c;}catch(d){errorHandler(H(0x14a),d),process[H(0xdf)](0x1);}}[a153v(0xe2)](){const I=a153v;try{const a=a153f[I(0x12f)](this[I(0x13b)][I(0x125)](),'.maka',GLOBAL_CONFIG),b=JSON[I(0xfe)](a153e[I(0xe9)](a)['toString']()),c=JSON['stringify'](b,null,0x2);return this[I(0x13b)][I(0x114)]({'filePath':a,'data':c,'opts':{'absolute':!![],'silent':!![]}}),b;}catch(d){errorHandler(I(0x104),d),process['exit'](0x1);}}['delGlobalConfig'](){const J=a153v;try{const a=a153f[J(0x12f)](this['fsi'][J(0x125)](),'.maka',GLOBAL_CONFIG);a153h[J(0x13a)](a,{'force':!![]});}catch(b){errorHandler(J(0xef),b),process[J(0xdf)](0x1);}}async[a153v(0x123)](){const K=a153v;try{const a=a153f[K(0x12f)](homeDir,'.maka');a153e[K(0xe0)](a)&&a153h[K(0x13a)](a,{'force':!![]});const b=a153f[K(0x12f)](this[K(0x13b)]['getMeteorInstallPath'](),K(0x108),GLOBAL_CONFIG);if(!this[K(0x13b)][K(0x147)](b)){const c={'token':{'authToken':'','userId':'','when':''}},d=JSON[K(0x138)](c,null,0x2);await this[K(0x13b)]['createFile']({'filePath':b,'data':d,'opts':{'force':!![],'silent':!![]}});}return JSON[K(0xfe)](a153e[K(0xe9)](b)[K(0x12b)]());}catch(f){f instanceof SyntaxError?(this[K(0x154)](),Log[K(0x12a)]('Your\x20'+this[K(0x13b)][K(0x125)]()+K(0x11d))):console['error'](f),process[K(0xdf)](0x1);}}[a153v(0x118)](a,b){const L=a153v;try{const c=this['fsi']['pathFromProject']({'pathParts':[L(0x108),PROJECT_CONFIG]});let d=JSON['parse'](a153e[L(0xe9)](c,'utf8'));const f=this[L(0x13b)]['deepen']({[a]:b});d=this['fsi'][L(0xe7)](d,f);const g=JSON['stringify'](d,null,0x2);a153e['writeFileSync'](c,g);}catch(h){errorHandler(L(0x12e),h),process['exit'](0x1);}}async[a153v(0xe3)](a){const M=a153v;try{const b=a153f[M(0x12f)](homeDir,'.meteor','.maka',GLOBAL_CONFIG);if(!this[M(0x13b)]['isFile'](b)){const f=JSON[M(0x138)](a,null,0x2);await this[M(0x13b)][M(0x144)]({'filePath':b,'data':f,'opts':{'force':!![],'silent':!![]}});}const c=await this[M(0x123)]();Object['assign'](c,{...a});const d=JSON['stringify'](c,null,0x2);this[M(0x13b)][M(0x114)]({'filePath':b,'data':d,'opts':{'absolute':!![],'silent':!![]}});}catch(g){errorHandler(M(0xde),g),process[M(0xdf)](0x1);}}async['attemptAutoLogin'](){const N=a153v,a=await this['getGlobalConfig'](),b=a?.[N(0x10c)],c=a?.['cert'];if(b?.[N(0x11b)]){const d={'hostname':N(0xe4),'path':'/api/v1/encodeJwt','headers':{'x-auth-token':b[N(0x11b)]},'data':{}};c&&Object[N(0xdc)](d,{'cert':c});const {data:e,statusCode:f}=await HTTPS[N(0x142)](d),{token:g}=JSON[N(0xfe)](e);g&&f!==0x198&&this[N(0xe3)](a);}}[a153v(0x12d)](a,b){const O=a153v;try{const c=this['fsi'][O(0x148)]({'pathParts':[O(0x108),PROJECT_CONFIG]}),d=JSON[O(0xfe)](a153e['readFileSync'](c,O(0xf0)));d[O(0x102)][a]=b;const f=JSON[O(0x138)](d,null,0x2);a153e[O(0x13e)](c,f);}catch(g){errorHandler(O(0x143),g),process[O(0xdf)](0x1);}}['setEngine'](a,b){const P=a153v;try{const c=this[P(0x13b)]['pathFromProject']({'pathParts':['.maka',PROJECT_CONFIG]}),d=JSON[P(0xfe)](a153e[P(0xe9)](c,P(0xf0)));d['engine'][a]=b;const f=JSON[P(0x138)](d,null,0x2);a153e[P(0x13e)](c,f);}catch(g){errorHandler(P(0x112),g),process[P(0xdf)](0x1);}}[a153v(0x116)](a,b){const Q=a153v;try{return typeof a===Q(0x10e)?b:a;}catch(c){errorHandler(Q(0x130),c);}}async[a153v(0x133)](a,b){const R=a153v;try{let c=null;return this['withValidation'](a),c=await b(),c;}catch(d){errorHandler(R(0xda),d),process[R(0xdf)](0x1);}}[a153v(0x111)](a){const S=a153v;try{const b={'html':[S(0x11e)],'js':['js','jsx','ts',S(0xfa)],'css':[S(0xfc),'scss',S(0x119),S(0x136)],'api':[S(0x120),S(0x136)],'test':[S(0x129),S(0x11c),S(0x136)],'client':[S(0xdd),S(0xe5)],'graphql':[S(0x11f)],'ssr':['true',S(0x14b)],'theme':[S(0x14f),S(0x136)]},c=a[S(0x128)]=this[S(0x116)](a[S(0x128)],{});if(c[S(0x11e)]&&!b['html']['includes'](c['html']))throw new Error(S(0x10b)+c[S(0x11e)]);if(c['js']&&!b['js']['includes'](c['js']))throw new Error('Unsupported\x20js\x20engine:\x20'+c['js']);if(c[S(0xfc)]&&!b[S(0xfc)][S(0xe1)](c[S(0xfc)]))throw new Error(S(0x152)+c['css']);if(c['api']&&!b['api']['includes'](c['api']))throw new Error(S(0x10f)+c['api']);if(c[S(0x146)]&&!b[S(0x146)][S(0xe1)](c['client']))throw new Error(S(0x110)+c[S(0x146)]);if(c[S(0x113)]&&!b[S(0x113)][S(0xe1)](c['theme']))throw new Error(S(0x106)+c[S(0x113)]);return c[S(0x11e)]=this['defaultValue'](c[S(0x11e)],S(0x11e)),c['js']=this[S(0x116)](c['js'],'js'),c[S(0xfc)]=this[S(0x116)](c[S(0xfc)],'css'),c[S(0x146)]=this[S(0x116)](c[S(0x146)],S(0xdd)),c[S(0x151)]=this['defaultValue'](c[S(0x151)],S(0x136)),c[S(0x113)]=this['defaultValue'](c[S(0x113)],S(0x136)),a;}catch(d){errorHandler(S(0x132),d),process[S(0xdf)](0x1);}}}
@@ -1 +1 @@
1
- const a154n=a154d;function a154d(a,b){const c=a154c();return a154d=function(d,e){d=d-0x1b8;let f=c[d];return f;},a154d(a,b);}function a154c(){const q=['1429380chRTJg','210860pNrjJY','2211gYKfte','docker\x20','77rRNLzT','inherit','.amazonaws.com','.amazonaws.com/','echo\x20','260070inxCQX','3935418cjdAGb','awsLogin','\x20|\x20docker\x20login\x20--username\x20AWS\x20--password-stdin\x20','search','tag','join','9420368YeidrU','326vNpFXy','.dkr.ecr.','push','apply','error','2463282ynbJdZ','40ElEulo','toString','4NKQRCq'];a154c=function(){return q;};return a154c();}(function(a,b){const j=a154d,c=a();while(!![]){try{const d=-parseInt(j(0x1c5))/0x1*(parseInt(j(0x1bf))/0x2)+-parseInt(j(0x1b8))/0x3*(parseInt(j(0x1c7))/0x4)+-parseInt(j(0x1c8))/0x5+parseInt(j(0x1d1))/0x6*(-parseInt(j(0x1cc))/0x7)+-parseInt(j(0x1be))/0x8+-parseInt(j(0x1c4))/0x9+-parseInt(j(0x1c9))/0xa*(-parseInt(j(0x1ca))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a154c,0xac5fd));const a154b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a154d;if(c){const e=c[k(0x1c2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a154a=a154b(this,function(){const l=a154d;return a154a[l(0x1c6)]()[l(0x1bb)]('(((.+)+)+)+$')[l(0x1c6)]()['constructor'](a154a)[l(0x1bb)]('(((.+)+)+)+$');});a154a();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 m=a154d;try{const f=[m(0x1bc),a,b+m(0x1c0)+c+m(0x1cf)+d],g=m(0x1cb)+f[m(0x1bd)]('\x20'),h=execSync(g,{'stdio':'inherit'})[m(0x1c6)]();return h;}catch(i){return Log[m(0x1c3)](i),'';}}static[a154n(0x1b9)]({awsAccountId:a,region:b,password:c}){const o=a154n;try{const d=o(0x1d0)+c+o(0x1ba)+a+o(0x1c0)+b+o(0x1ce);return execSync(d,{'stdio':'inherit'}),d;}catch(f){return Log['error'](f),'';}}static['pushImage']({awsAccountId:a,region:b,repoName:c}){const p=a154n;try{const d=[p(0x1c1),a+p(0x1c0)+b+p(0x1cf)+c],f=p(0x1cb)+d[p(0x1bd)]('\x20'),g=execSync(f,{'stdio':p(0x1cd)})['toString']();return g;}catch(h){return Log[p(0x1c3)](h),'';}}}
1
+ const a154m=a154d;(function(a,b){const j=a154d,c=a();while(!![]){try{const d=parseInt(j(0x191))/0x1*(parseInt(j(0x17f))/0x2)+-parseInt(j(0x196))/0x3*(-parseInt(j(0x183))/0x4)+parseInt(j(0x185))/0x5+parseInt(j(0x188))/0x6*(-parseInt(j(0x187))/0x7)+parseInt(j(0x199))/0x8*(-parseInt(j(0x18d))/0x9)+-parseInt(j(0x18f))/0xa+-parseInt(j(0x180))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a154c,0xd9800));const a154b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a154d;if(c){const e=c[k(0x198)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a154a=a154b(this,function(){const l=a154d;return a154a['toString']()[l(0x192)](l(0x193))[l(0x18e)]()['constructor'](a154a)[l(0x192)](l(0x193));});function a154d(a,b){const c=a154c();return a154d=function(d,e){d=d-0x17f;let f=c[d];return f;},a154d(a,b);}function a154c(){const q=['.dkr.ecr.','12aEJHYu','join','8805160YzFLGk','tag','1047214misYMN','30PObAoQ','echo\x20','push','.amazonaws.com','.amazonaws.com/','99MWrOMZ','toString','3917450aFYoSZ','error','1243159ySMiRl','search','(((.+)+)+)+$','pushImage','inherit','1660434eibIed','awsLogin','apply','968880Sbxqel','2mMsVdp','14319580SQWfGB','docker\x20'];a154c=function(){return q;};return a154c();}a154a();import{execSync}from'child_process';import{Log}from'../log/log.class.js';export class Docker{static[a154m(0x186)]({imageName:a,awsAccountId:b,region:c,repoName:d}){const n=a154m;try{const f=[n(0x186),a,b+n(0x182)+c+'.amazonaws.com/'+d],g=n(0x181)+f[n(0x184)]('\x20'),h=execSync(g,{'stdio':'inherit'})[n(0x18e)]();return h;}catch(i){return Log[n(0x190)](i),'';}}static[a154m(0x197)]({awsAccountId:a,region:b,password:c}){const o=a154m;try{const d=o(0x189)+c+'\x20|\x20docker\x20login\x20--username\x20AWS\x20--password-stdin\x20'+a+o(0x182)+b+o(0x18b);return execSync(d,{'stdio':o(0x195)}),d;}catch(f){return Log[o(0x190)](f),'';}}static[a154m(0x194)]({awsAccountId:a,region:b,repoName:c}){const p=a154m;try{const d=[p(0x18a),a+p(0x182)+b+p(0x18c)+c],f='docker\x20'+d['join']('\x20'),g=execSync(f,{'stdio':p(0x195)})[p(0x18e)]();return g;}catch(h){return Log['error'](h),'';}}}
@@ -1 +1 @@
1
- (function(a,b){var f=a155d,c=a();while(!![]){try{var d=parseInt(f(0x1f6))/0x1+parseInt(f(0x1fc))/0x2*(parseInt(f(0x200))/0x3)+parseInt(f(0x1f9))/0x4+-parseInt(f(0x1fd))/0x5*(parseInt(f(0x1f3))/0x6)+parseInt(f(0x1f8))/0x7+-parseInt(f(0x1fe))/0x8*(-parseInt(f(0x1fa))/0x9)+parseInt(f(0x1f4))/0xa*(-parseInt(f(0x1ff))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a155c,0x8ef30));var a155b=(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;};}()),a155a=a155b(this,function(){var g=a155d;return a155a[g(0x1f7)]()[g(0x1f5)](g(0x1fb))['toString']()[g(0x1f2)](a155a)['search']('(((.+)+)+)+$');});function a155d(a,b){var c=a155c();return a155d=function(d,e){d=d-0x1f2;var f=c[d];return f;},a155d(a,b);}a155a();export{};function a155c(){var h=['8336040zlUrXS','search','570299qhsFxW','toString','7457401hwdcNa','2259932jDQnvG','1117980abuOQi','(((.+)+)+)+$','2001778NCqIQu','1197010jVlsvL','8oOrTHc','33hfUWKJ','3AweaXF','constructor','6QvgHHI'];a155c=function(){return h;};return a155c();}
1
+ (function(a,b){var f=a155d,c=a();while(!![]){try{var d=parseInt(f(0x19b))/0x1+-parseInt(f(0x19d))/0x2*(parseInt(f(0x193))/0x3)+-parseInt(f(0x1a2))/0x4*(-parseInt(f(0x197))/0x5)+-parseInt(f(0x1a3))/0x6*(-parseInt(f(0x19f))/0x7)+-parseInt(f(0x1a0))/0x8*(-parseInt(f(0x194))/0x9)+parseInt(f(0x199))/0xa+-parseInt(f(0x19e))/0xb*(parseInt(f(0x196))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a155c,0x6e06e));function a155c(){var i=['21UqKLUU','16mkgYLS','(((.+)+)+)+$','540ZjTpCY','159654mFniCL','15QmeqOV','1619118vSuPXq','search','17632584GcLTeQ','31895nOTBBF','toString','5395830yhpPba','constructor','581938hRQUpb','apply','200906jkshnZ','11uhiaNB'];a155c=function(){return i;};return a155c();}var a155b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a155d;if(c){var e=c[g(0x19c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a155a=a155b(this,function(){var h=a155d;return a155a[h(0x198)]()[h(0x195)](h(0x1a1))[h(0x198)]()[h(0x19a)](a155a)['search'](h(0x1a1));});a155a();function a155d(a,b){var c=a155c();return a155d=function(d,e){d=d-0x193;var f=c[d];return f;},a155d(a,b);}export{};
@@ -1 +1 @@
1
- const a156q=a156d;function a156d(a,b){const c=a156c();return a156d=function(d,e){d=d-0x1a7;let f=c[d];return f;},a156d(a,b);}function a156c(){const a9=['isSelfTest','utf8','getDirectories()','string','665GsrxVS','sync','omit','\x20...\x0a','code','search','.maka','True','readFile','app','Error\x20in\x20','findProjectDirectory()','\x20already\x20exists.\x20Do\x20you\x20want\x20to\x20overwrite\x20it?','deeperAssign','5.1.17','0.0.0.0','parse','Error\x20reading\x20file:\x20','directoryEntries()','checkPortInUse','Created\x20','\x20is\x20already\x20in\x20use,\x20trying\x20','findDirectoryUp','platform','isMakaProject','fileContainsString','meteor','resolve','forEach','saveInit()','failure','constructor','instance','info','replace','findProjectDirectory','Local','promises','absolute','Cannot\x20write\x20data\x20to\x20a\x20directory','unlink','pathFromProject()','Setting\x20up\x20the\x20npm\x20packages','writeToFile()','complete','readFileLines','warn','Extracting','6sGHVqF','compareMakaToLatest','listen','Uh-oh,\x20the\x20directory\x20is\x20not\x20a\x20directory\x20','extractTarGz','grep()','build','apply','split','data','isDirectory','createDirectory','pathFromProject','directoryEntries','No\x20directory\x20path\x20provided','saveInit','getMeteorInstallPath','Please\x20update\x20with:\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20npm\x20i\x20-g\x20@maka/maka-cli@latest\x0a\x0a\x20\x20\x20\x20\x20\x20','confirm','AppData','silent','File\x20not\x20written','ignore','env','10OrBKlN','exit','552ShmswO','object','filter','File\x20exists\x20at\x20that\x20location','base64','2436288LnyMXq','length','readFileSync','N/A','appName','bright','toString','join','60111shxHGD','readdirSync','mkdirSync','Port\x20','level','.node_version.txt','mkKeysDir','writeFile','isArray','(((.+)+)+)+$','isFile','@maka/maka-cli','\x20is\x20already\x20in\x20use,\x20exiting\x20...','concat','2947970NIvhzg','479166zOrnsp','sep','^.*(','Invalid\x20directory','140684pEzZod','utf-8','getProjectMeteorVersion()','local','writeFileSync','.meteor',').*$','singleLine','getInstance','dirname','createReadStream','success','isImage','cache.json','error','EADDRINUSE','getLatestMakaVersion','match','win32','force','4759986MEZykU','normalize','MAKA_DEV','config.json','createServer','extname','getProjectsMeteorNodeVersion()','extensions','Latest\x20version\x20of\x20maka-cli\x20is\x20','getProjectsMeteorNodeVersion','initNpm','writeToFile','getGlobalMakaDir','findAppDirectory','createFile()','deepen','9JEJfNh','verbose','entries','relative','getProjectMeteorVersion','once','grep','message','cwd','meteorCommand','statSync','getUserDataDirectory','getDirectories','cacheResult','getCachedResult','push','createFile','stringify'];a156c=function(){return a9;};return a156c();}(function(a,b){const n=a156d,c=a();while(!![]){try{const d=parseInt(n(0x20d))/0x1*(-parseInt(n(0x1e6))/0x2)+-parseInt(n(0x21c))/0x3+-parseInt(n(0x220))/0x4*(-parseInt(n(0x1fe))/0x5)+-parseInt(n(0x200))/0x6*(-parseInt(n(0x1b6))/0x7)+-parseInt(n(0x205))/0x8+-parseInt(n(0x244))/0x9*(-parseInt(n(0x21b))/0xa)+parseInt(n(0x234))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a156c,0x278de));const a156b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a156d;if(c){const e=c[o(0x1ed)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a156a=a156b(this,function(){const p=a156d;return a156a[p(0x20b)]()['search'](p(0x216))[p(0x20b)]()[p(0x1d5)](a156a)[p(0x1bb)]('(((.+)+)+)+$');});a156a();import a156e from'path';import a156f from'net';import a156g from'@maka/tar';import a156h from'fs';import a156i from'os';import a156j from'delete';import{exec}from'child_process';import a156k from'latest-version';import a156l from'semver';import{promises as a156m}from'fs';import{Log}from'../log/log.class.js';import{Actions}from'../actions/actions.class.js';import{Progress}from'../progress/progress.class.js';const pjson={'version':a156q(0x1c4)},PROJECT_CONFIG=a156q(0x237),GLOBAL_CACHE=a156q(0x22d),homeDir=a156i['homedir'](),errorHandler=(a,b)=>{const r=a156q;process[r(0x1fd)][r(0x236)]===r(0x1bd)&&Log['error'](r(0x1c0)+a),b&&console['error'](b);};export class FSI{static ['instance'];[a156q(0x209)];constructor(){}static[a156q(0x228)](){const s=a156q;return!FSI[s(0x1d6)]&&(FSI['instance']=new FSI()),FSI[s(0x1d6)];}[a156q(0x1ab)](){const t=a156q,a=process['platform']===t(0x232);return a?a156e[t(0x20c)](homeDir,t(0x1f9),t(0x1da)):a156e['join'](homeDir);}[a156q(0x1f6)](){const u=a156q,a=process['platform']===u(0x232);return a?a156e[u(0x20c)](homeDir,u(0x1f9),u(0x1da),'.meteor'):a156e[u(0x20c)](homeDir,'.meteor');}[a156q(0x1a9)](){const v=a156q;return a156e[v(0x20c)](this[v(0x1f6)](),v(0x1d0));}[a156q(0x1ac)](a){const w=a156q;try{return a156h['readdirSync'](a)[w(0x202)](b=>{const x=w;return a156h[x(0x1aa)](a156e[x(0x20c)](a,b))[x(0x1f0)]();});}catch(b){errorHandler(w(0x1b4),b),process[w(0x1ff)](0x1);}}async[a156q(0x1b0)]({filePath:a,data:b,opts:c}){const y=a156q,d=c?.[y(0x1dc)]?a156e[y(0x20c)](process['cwd'](),a):a156e[y(0x247)](process['cwd'](),a);try{const f=a156e[y(0x235)](a)['split'](a156e[y(0x21d)]);f['pop']();const g=f[y(0x20c)](a156e[y(0x21d)]),h=!this['isDirectory'](g);h&&await this[y(0x1f1)]({'dirPath':g,'force':c?.[y(0x233)],'silent':c?.[y(0x1fa)]});if(this['isFile'](a)&&!c?.[y(0x233)]){const i=await Actions[y(0x1f8)](a+y(0x1c2));if(!i){if(c?.[y(0x1fc)])return;else throw{'msg':y(0x1fb),'level':'info','verbose':!![]};}else await a156m[y(0x1de)](a);}if(c?.[y(0x22c)]){const j=Buffer['from'](b,y(0x204));await a156m[y(0x214)](a,j);}else await a156m[y(0x214)](a,b);!c?.[y(0x1fa)]&&Log[y(0x20a)]('\x20created\x20file\x20'+d);}catch(k){k?.[y(0x245)]?k[y(0x211)]===y(0x1d7)?Log[y(0x22e)](k['msg']):errorHandler('createFile()',k['msg']):errorHandler(y(0x242),k);}}['getFiles'](a,b){const z=a156q;try{const c=a156h[z(0x20e)](a)['filter'](d=>{const A=z,f=a156e['join'](a,d);if(this[A(0x1f0)](f))return![];if(b?.[A(0x1b8)]){const g=Array[A(0x215)](b['omit'])?b[A(0x1b8)]:[b[A(0x1b8)]];for(const h of g){if(d['includes'](h))return![];}}if(b?.[A(0x23b)]){const i=a156e[A(0x239)](f);if(!i)return![];if(!b[A(0x23b)]['includes'](i[A(0x1d8)]('.','')))return![];return!![];}return!![];});return c;}catch(d){errorHandler('getFiles()',d),process[z(0x1ff)](0x1);}}[a156q(0x213)]({configPath:a}){const B=a156q;if(!this[B(0x1f0)](a))throw B(0x21f);const b=a156e[B(0x20c)](a,'_keys');try{a156h[B(0x1aa)](b);}catch(c){Log[B(0x1e4)](c['message']),a156h[B(0x20f)](b,{'recursive':!![]});}return b;}[a156q(0x23f)]({filePath:a,data:b,opts:c}){const C=a156q,d=c?.['absolute']?a156e['join'](process[C(0x1a8)](),a):a156e['relative'](process['cwd'](),a);try{if(this['isDirectory'](a))throw Log['error'](C(0x1dd));a156h['writeFileSync'](a,b),!c?.[C(0x1fa)]&&Log['bright']('Updated\x20file\x20'+d);}catch(f){errorHandler(C(0x1e1),f);}}async[a156q(0x1f1)]({dirPath:a,force:b,silent:c}){const D=a156q;if(!a)throw Log[D(0x22e)](D(0x1f4));try{b&&a156j[D(0x1b7)](a);if(this[D(0x217)](a))throw Log[D(0x22e)](D(0x203));const d=this[D(0x1f0)](a);if(!d){a156h[D(0x20f)](a,{'recursive':!![]});if(!this[D(0x1f0)](a))throw D(0x1e9)+a;!c&&Log[D(0x22b)](D(0x1ca)+a156e[D(0x247)](process['cwd'](),a));}}catch(f){errorHandler('createDirectory()',f);}}[a156q(0x1cc)]({predicate:a,startPath:b}){const E=a156q;try{let c=b||process[E(0x1a8)]();while(c){if(a(c))break;const d=a156e[E(0x229)](c);d===c?c=undefined:c=d;}return c;}catch(f){errorHandler('findDirectoryUp()',f),process[E(0x1ff)](0x1);}}[a156q(0x1d9)](a=process['cwd']()){const F=a156q;try{const b=this[F(0x1cc)]({'predicate':c=>{const G=F;return this[G(0x217)](a156e[G(0x20c)](c,G(0x1bc),PROJECT_CONFIG));},'startPath':a||process[F(0x1a8)]()});if(!b)return'';return b;}catch(c){errorHandler(F(0x1c1),c),process[F(0x1ff)](0x1);}}[a156q(0x241)](a=process[a156q(0x1a8)]()){const H=a156q;try{const b=this[H(0x1d9)](a);return b&&typeof b===H(0x1b5)?a156e[H(0x20c)](b,'app'):'';}catch(c){errorHandler('findAppDirectory()',c),process[H(0x1ff)](0x1);}}[a156q(0x1f2)]({pathParts:a}){const I=a156q;try{const b=a?.['join'](a156e[I(0x21d)]),c=this[I(0x1d9)]();return c&&typeof c===I(0x1b5)?a156e[I(0x20c)](c,b||''):'';}catch(d){errorHandler(I(0x1df),d),process[I(0x1ff)](0x1);}}[a156q(0x217)](a){const J=a156q;try{const b=a156e[J(0x1d1)](a),c=a156h[J(0x1aa)](b);return c[J(0x217)]();}catch(d){return![];}}[a156q(0x1f0)](a){const K=a156q;try{const b=a156h['statSync'](a);return b[K(0x1f0)]();}catch(c){return![];}}[a156q(0x1e3)](a){const L=a156q;try{const b=a156h[L(0x207)](a,'utf8'),c=b[L(0x1ee)](/\r*\n\r*/);while(c['length']){const d=c[c[L(0x206)]-0x1];if(d[L(0x231)](/\S/))break;c['pop']();}return c;}catch(f){errorHandler('readFileLines()',f),process['exit'](0x1);}}[a156q(0x248)](){const M=a156q;try{const a=this[M(0x1f2)]({'pathParts':[M(0x1bf),M(0x225),'release']}),b=a156h['readFileSync'](a,M(0x1b3));let c=b['replace']('METEOR@','')[M(0x1d8)]('\x0a','');const d=c['split']('.')['length'];return d<0x3&&(c=c+'.0'),c;}catch(f){errorHandler(M(0x222),f),process[M(0x1ff)](0x1);}}async[a156q(0x23d)](){const N=a156q;try{const a=this[N(0x1f2)]({'pathParts':[N(0x1bf),N(0x225),'local',N(0x1ec),N(0x212)]});if(!this['isFile'](a))return N(0x208);else{const b=this[N(0x1f2)]({'pathParts':[N(0x1bf),N(0x225),N(0x223),N(0x1ec),N(0x212)]}),c=a156h[N(0x207)](b,N(0x1b3)),d=c[N(0x1d8)]('v','')[N(0x1d8)]('\x0a','');return d;}}catch(f){errorHandler(N(0x23a),f),process[N(0x1ff)](0x1);}}async[a156q(0x230)](){const O=a156q,a=await a156k(O(0x218));return a;}async[a156q(0x1e7)](){const P=a156q,a=await this[P(0x230)]();a156l['gt'](a,pjson['version'])&&(Log[P(0x1e4)](P(0x23c)+a),Log[P(0x1e4)](P(0x1f7)));return;}['directoryEntries'](a){const Q=a156q;try{let b=[];const c=a156h[Q(0x20e)](a);for(const d of c){const f=a156e[Q(0x20c)](a,d);b[Q(0x1af)](f),this['isDirectory'](f)&&(b=b[Q(0x21a)](this[Q(0x1f3)](f)));}return b;}catch(g){errorHandler(Q(0x1c8),g),process[Q(0x1ff)](0x1);}}[a156q(0x1ce)](){const R=a156q,a=this[R(0x1d9)]();return a!==''?!![]:![];}[a156q(0x24a)](a,b){const S=a156q;try{const c=new RegExp(S(0x21e)+b+S(0x226),'mg'),d=a[S(0x231)](c);return d||[];}catch(f){errorHandler(S(0x1eb),f),process[S(0x1ff)](0x1);}}async[a156q(0x1cf)](a,b){const T=a156q;try{if(a156h['existsSync'](a)===![])return![];const c=await a156h[T(0x1db)][T(0x1be)](a,T(0x1b3));return c['includes'](b);}catch(d){console[T(0x22e)](T(0x1c7)+d);throw d;}}[a156q(0x1ae)](a){const U=a156q,b=a156e[U(0x20c)](this['getMeteorInstallPath'](),U(0x1bc),GLOBAL_CACHE);try{const c=JSON['parse'](a156h[U(0x207)](b,U(0x221)));return c[a]||null;}catch(d){return null;}}[a156q(0x1ad)](a,b){const V=a156q,c=a156e['join'](this[V(0x1f6)](),V(0x1bc),GLOBAL_CACHE);try{const d=JSON[V(0x1c6)](a156h[V(0x207)](c,V(0x221)));d[a]=b,a156h['writeFileSync'](c,JSON[V(0x1b1)](d));}catch(f){const g={[a]:b};a156h[V(0x224)](c,JSON[V(0x1b1)](g));}}[a156q(0x240)](){const W=a156q;return a156e['join'](this[W(0x1f6)](),W(0x1bc));}async[a156q(0x1f5)](a,b){const X=a156q;try{const c=JSON[X(0x1b1)](a,null,0x2);await this[X(0x1b0)]({'filePath':b,'data':c,'opts':{'force':!![]}});}catch(d){errorHandler(X(0x1d3),d),process[X(0x1ff)](0x1);}}[a156q(0x243)](a){const Y=a156q,b={};for(const c in a){const d=c['split']('.');let e=b;while(d?.[Y(0x206)]>0x1){const f=d?.['shift']();f&&(e=e[f]=e[f]||{});}e[d[0x0]]=a[c];}return b;}[a156q(0x1c3)](c,d){const Z=a156q;return Object[Z(0x246)](d)[Z(0x1d2)](([e,f])=>c[e]=f&&typeof f===Z(0x201)?this[Z(0x1c3)](c[e]=c[e]||{},f):f),c;}[a156q(0x23e)](a){return new Promise((b,c)=>{const a0=a156d;a=a||{},a['cwd']=a[a0(0x1a8)]||'.';if(!a[a0(0x1b2)]){const d=this[a0(0x241)](a[a0(0x1a8)]);if(!d)Log[a0(0x22e)]('Couldn\x27t\x20find\x20an\x20app\x20directory\x20to\x20init\x20npm\x20into.'),c();else{const f=Log['withSpinner']();try{f['start'](a0(0x1e0)),exec('npm\x20init\x20-f\x20',{'cwd':d},g=>{const a1=a0;g&&(Log['error']('\x0a'+g[a1(0x1a7)]),c(),process['exit'](0x1)),f[a1(0x22b)](),b();});}catch(g){Log['error'](g),f[a0(0x1d4)](),c();}}}});}async[a156q(0x1c9)](a){return new Promise((b,c)=>{const a2=a156d,d=a156f[a2(0x238)]();d[a2(0x249)](a2(0x22e),async e=>{const a3=a2;if(e[a3(0x1ba)]===a3(0x22f)){const f=await Actions['confirm'](a3(0x210)+a+'\x20is\x20already\x20in\x20use,\x20try\x20another?\x20[yN]',![]);!f&&(Log[a3(0x22e)]('Port\x20'+a+a3(0x219)),process[a3(0x1ff)](0x1)),Log[a3(0x227)](a3(0x210)+a+a3(0x1cb)+(a+0x64)+a3(0x1b9)),b(!![]);}else c(e);}),d['once']('listening',()=>{d['close'](),b(![]);}),d[a2(0x1e8)](a,a2(0x1c5));});}async['getAvailablePort'](a){const a4=a156q;while(await this[a4(0x1c9)](a)){a+=0x64;}return a;}async[a156q(0x1ea)](a,b){const a6=a156q;function c(g){const a5=a156d,h=a156h[a5(0x1aa)](g);return h['size'];}const d=process[a6(0x1cd)]===a6(0x232)?'>':'📦',e=c(a),f=new Progress(e,a6(0x1e5),d);return new Promise((g,h)=>{const a7=a6;a156h[a7(0x22a)](a)['on'](a7(0x1ef),i=>{f['update'](i['length']);})['pipe'](a156g['x']({'gzip':!![],'cwd':b}))['on']('end',()=>{const a8=a7;f[a8(0x1e2)](),g();})['on'](a7(0x22e),i=>{h(i);});});}}
1
+ function a156d(a,b){const c=a156c();return a156d=function(d,e){d=d-0x1be;let f=c[d];return f;},a156d(a,b);}const a156p=a156d;(function(a,b){const n=a156d,c=a();while(!![]){try{const d=-parseInt(n(0x1d0))/0x1*(parseInt(n(0x23d))/0x2)+parseInt(n(0x252))/0x3+parseInt(n(0x1eb))/0x4+parseInt(n(0x1e9))/0x5*(-parseInt(n(0x213))/0x6)+parseInt(n(0x1cd))/0x7+parseInt(n(0x1f3))/0x8+-parseInt(n(0x1e4))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a156c,0x714db));const a156b=(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;};}()),a156a=a156b(this,function(){const o=a156d;return a156a[o(0x219)]()['search'](o(0x235))['toString']()[o(0x256)](a156a)[o(0x22d)](o(0x235));});a156a();import a156e from'path';import a156f from'net';import a156g from'@maka/tar';import a156h from'fs';function a156c(){const a9=['directoryEntries','env','670355HMANHr','Latest\x20version\x20of\x20maka-cli\x20is\x20','concat','3utlWcK','listen','findProjectDirectory()','No\x20directory\x20path\x20provided','join','stringify','readFileSync','platform','meteorCommand','cache.json','getInstance','writeToFile()','pop','utf-8','N/A','getCachedResult','Created\x20','shift','Uh-oh,\x20the\x20directory\x20is\x20not\x20a\x20directory\x20','cwd','4395456faBAhH','success','msg','message','getProjectMeteorVersion()','5cgNHSJ','extname','1164904ynWJsY','findDirectoryUp()','5.1.19','findAppDirectory()','saveInit','readFile','instance','EADDRINUSE','5226864HlRCWA','cacheResult','isFile','statSync','findDirectoryUp','getUserDataDirectory','^.*(','sep','close','silent','MAKA_DEV','getLatestMakaVersion','writeFileSync','\x20is\x20already\x20in\x20use,\x20trying\x20','grep','.meteor','win32','createDirectory','app','omit','length','findProjectDirectory','build','bright','force','split','once','getMeteorInstallPath','meteor','createFile()','includes','getDirectories()','2906610msATHi','getGlobalMakaDir','forEach','object','Couldn\x27t\x20find\x20an\x20app\x20directory\x20to\x20init\x20npm\x20into.','filter','toString','level','npm\x20init\x20-f\x20','.node_version.txt','createFile','Extracting','getProjectMeteorVersion','pathFromProject','compareMakaToLatest','homedir','\x20is\x20already\x20in\x20use,\x20exiting\x20...','True','error','size','replace','Cannot\x20write\x20data\x20to\x20a\x20directory','mkKeysDir','getProjectsMeteorNodeVersion()','Error\x20in\x20','exit','search','_keys','info','createServer','start','checkPortInUse','isMakaProject','mkdirSync','(((.+)+)+)+$','Port\x20','appName','string','singleLine','initNpm','writeToFile','withSpinner','28174TvQVmB','entries','METEOR@','extractTarGz','isImage','writeFile','utf8','ignore','readdirSync','relative','verbose','base64','findAppDirectory','failure','createReadStream','isDirectory','isSelfTest','.maka','Please\x20update\x20with:\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20npm\x20i\x20-g\x20@maka/maka-cli@latest\x0a\x0a\x20\x20\x20\x20\x20\x20','@maka/maka-cli','match','1316466pIDZTS','warn','release','readFileLines()','constructor','getFiles','deepen','parse','\x20is\x20already\x20in\x20use,\x20try\x20another?\x20[yN]','Setting\x20up\x20the\x20npm\x20packages','version','getDirectories',').*$','pipe','extensions','config.json','\x20already\x20exists.\x20Do\x20you\x20want\x20to\x20overwrite\x20it?','confirm','update','pathFromProject()','\x20created\x20file\x20','unlink','saveInit()','local','0.0.0.0','absolute'];a156c=function(){return a9;};return a156c();}import a156i from'os';import a156j from'delete';import{exec}from'child_process';import a156k from'latest-version';import a156l from'semver';import{promises as a156m}from'fs';import{Log}from'../log/log.class.js';import{Actions}from'../actions/actions.class.js';import{Progress}from'../progress/progress.class.js';const pjson={'version':a156p(0x1ed)},PROJECT_CONFIG=a156p(0x1c0),GLOBAL_CACHE=a156p(0x1d9),homeDir=a156i[a156p(0x222)](),errorHandler=(a,b)=>{const q=a156p;process[q(0x1cc)][q(0x1fd)]===q(0x224)&&Log['error'](q(0x22b)+a),b&&console[q(0x225)](b);};export class FSI{static [a156p(0x1f1)];[a156p(0x237)];constructor(){}static[a156p(0x1da)](){const r=a156p;return!FSI[r(0x1f1)]&&(FSI['instance']=new FSI()),FSI[r(0x1f1)];}[a156p(0x1f8)](){const s=a156p;return a156e[s(0x1d4)](homeDir);}[a156p(0x20e)](){const t=a156p;return a156e[t(0x1d4)](homeDir,t(0x202));}[a156p(0x1d8)](){const u=a156p;return a156e[u(0x1d4)](this[u(0x20e)](),u(0x20f));}[a156p(0x25d)](a){const v=a156p;try{return a156h[v(0x245)](a)[v(0x218)](b=>{const w=v;return a156h[w(0x1f6)](a156e[w(0x1d4)](a,b))['isDirectory']();});}catch(b){errorHandler(v(0x212),b),process[v(0x22c)](0x1);}}async[a156p(0x21d)]({filePath:a,data:b,opts:c}){const x=a156p,d=c?.[x(0x1ca)]?a156e[x(0x1d4)](process[x(0x1e3)](),a):a156e[x(0x246)](process[x(0x1e3)](),a);try{const f=a156e['normalize'](a)[x(0x20c)](a156e[x(0x1fa)]);f[x(0x1dc)]();const g=f[x(0x1d4)](a156e[x(0x1fa)]),h=!this[x(0x24c)](g);h&&await this[x(0x204)]({'dirPath':g,'force':c?.[x(0x20b)],'silent':c?.[x(0x1fc)]});if(this[x(0x1f5)](a)&&!c?.[x(0x20b)]){const i=await Actions[x(0x1c2)](a+x(0x1c1));if(!i){if(c?.[x(0x244)])return;else throw{'msg':'File\x20not\x20written','level':x(0x22f),'verbose':!![]};}else await a156m[x(0x1c6)](a);}if(c?.[x(0x241)]){const j=Buffer['from'](b,x(0x248));await a156m['writeFile'](a,j);}else await a156m[x(0x242)](a,b);!c?.[x(0x1fc)]&&Log[x(0x20a)](x(0x1c5)+d);}catch(k){k?.[x(0x247)]?k[x(0x21a)]===x(0x22f)?Log['error'](k[x(0x1e6)]):errorHandler(x(0x210),k['msg']):errorHandler(x(0x210),k);}}[a156p(0x257)](a,b){const y=a156p;try{const c=a156h[y(0x245)](a)[y(0x218)](d=>{const z=y,f=a156e['join'](a,d);if(this[z(0x24c)](f))return![];if(b?.[z(0x206)]){const g=Array['isArray'](b[z(0x206)])?b[z(0x206)]:[b[z(0x206)]];for(const h of g){if(d[z(0x211)](h))return![];}}if(b?.[z(0x1bf)]){const i=a156e[z(0x1ea)](f);if(!i)return![];if(!b[z(0x1bf)][z(0x211)](i[z(0x227)]('.','')))return![];return!![];}return!![];});return c;}catch(d){errorHandler('getFiles()',d),process[y(0x22c)](0x1);}}[a156p(0x229)]({configPath:a}){const A=a156p;if(!this[A(0x24c)](a))throw'Invalid\x20directory';const b=a156e['join'](a,A(0x22e));try{a156h[A(0x1f6)](b);}catch(c){Log[A(0x253)](c[A(0x1e7)]),a156h['mkdirSync'](b,{'recursive':!![]});}return b;}[a156p(0x23b)]({filePath:a,data:b,opts:c}){const B=a156p,d=c?.['absolute']?a156e['join'](process[B(0x1e3)](),a):a156e['relative'](process[B(0x1e3)](),a);try{if(this[B(0x24c)](a))throw Log[B(0x225)](B(0x228));a156h[B(0x1ff)](a,b),!c?.['silent']&&Log[B(0x20a)]('Updated\x20file\x20'+d);}catch(f){errorHandler(B(0x1db),f);}}async[a156p(0x204)]({dirPath:a,force:b,silent:c}){const C=a156p;if(!a)throw Log[C(0x225)](C(0x1d3));try{b&&a156j['sync'](a);if(this[C(0x1f5)](a))throw Log['error']('File\x20exists\x20at\x20that\x20location');const d=this[C(0x24c)](a);if(!d){a156h[C(0x234)](a,{'recursive':!![]});if(!this[C(0x24c)](a))throw C(0x1e2)+a;!c&&Log['success'](C(0x1e0)+a156e[C(0x246)](process[C(0x1e3)](),a));}}catch(f){errorHandler('createDirectory()',f);}}['findDirectoryUp']({predicate:a,startPath:b}){const D=a156p;try{let c=b||process['cwd']();while(c){if(a(c))break;const d=a156e['dirname'](c);d===c?c=undefined:c=d;}return c;}catch(f){errorHandler(D(0x1ec),f),process[D(0x22c)](0x1);}}[a156p(0x208)](a=process[a156p(0x1e3)]()){const E=a156p;try{const b=this[E(0x1f7)]({'predicate':c=>{const F=E;return this[F(0x1f5)](a156e[F(0x1d4)](c,F(0x24e),PROJECT_CONFIG));},'startPath':a||process[E(0x1e3)]()});if(!b)return'';return b;}catch(c){errorHandler(E(0x1d2),c),process['exit'](0x1);}}[a156p(0x249)](a=process[a156p(0x1e3)]()){const G=a156p;try{const b=this[G(0x208)](a);return b&&typeof b===G(0x238)?a156e[G(0x1d4)](b,G(0x205)):'';}catch(c){errorHandler(G(0x1ee),c),process[G(0x22c)](0x1);}}[a156p(0x220)]({pathParts:a}){const H=a156p;try{const b=a?.['join'](a156e[H(0x1fa)]),c=this[H(0x208)]();return c&&typeof c===H(0x238)?a156e['join'](c,b||''):'';}catch(d){errorHandler(H(0x1c4),d),process[H(0x22c)](0x1);}}['isFile'](a){const I=a156p;try{const b=a156e['resolve'](a),c=a156h['statSync'](b);return c[I(0x1f5)]();}catch(d){return![];}}[a156p(0x24c)](a){const J=a156p;try{const b=a156h[J(0x1f6)](a);return b[J(0x24c)]();}catch(c){return![];}}['readFileLines'](a){const K=a156p;try{const b=a156h[K(0x1d6)](a,K(0x243)),c=b['split'](/\r*\n\r*/);while(c[K(0x207)]){const d=c[c[K(0x207)]-0x1];if(d[K(0x251)](/\S/))break;c[K(0x1dc)]();}return c;}catch(f){errorHandler(K(0x255),f),process[K(0x22c)](0x1);}}[a156p(0x21f)](){const L=a156p;try{const a=this[L(0x220)]({'pathParts':['app','.meteor',L(0x254)]}),b=a156h['readFileSync'](a,L(0x243));let c=b[L(0x227)](L(0x23f),'')['replace']('\x0a','');const d=c['split']('.')[L(0x207)];return d<0x3&&(c=c+'.0'),c;}catch(f){errorHandler(L(0x1e8),f),process[L(0x22c)](0x1);}}async['getProjectsMeteorNodeVersion'](){const M=a156p;try{const a=this[M(0x220)]({'pathParts':['app','.meteor',M(0x1c8),M(0x209),M(0x21c)]});if(!this[M(0x1f5)](a))return M(0x1de);else{const b=this['pathFromProject']({'pathParts':[M(0x205),M(0x202),'local',M(0x209),M(0x21c)]}),c=a156h[M(0x1d6)](b,M(0x243)),d=c['replace']('v','')[M(0x227)]('\x0a','');return d;}}catch(f){errorHandler(M(0x22a),f),process[M(0x22c)](0x1);}}async[a156p(0x1fe)](){const N=a156p,a=await a156k(N(0x250));return a;}async[a156p(0x221)](){const O=a156p,a=await this[O(0x1fe)]();a156l['gt'](a,pjson[O(0x25c)])&&(Log['warn'](O(0x1ce)+a),Log[O(0x253)](O(0x24f)));return;}[a156p(0x1cb)](a){const P=a156p;try{let b=[];const c=a156h[P(0x245)](a);for(const d of c){const f=a156e[P(0x1d4)](a,d);b['push'](f),this[P(0x24c)](f)&&(b=b[P(0x1cf)](this['directoryEntries'](f)));}return b;}catch(g){errorHandler('directoryEntries()',g),process[P(0x22c)](0x1);}}[a156p(0x233)](){const Q=a156p,a=this[Q(0x208)]();return a!==''?!![]:![];}[a156p(0x201)](a,b){const R=a156p;try{const c=new RegExp(R(0x1f9)+b+R(0x25e),'mg'),d=a[R(0x251)](c);return d||[];}catch(f){errorHandler('grep()',f),process[R(0x22c)](0x1);}}async['fileContainsString'](a,b){const S=a156p;try{if(a156h['existsSync'](a)===![])return![];const c=await a156h['promises'][S(0x1f0)](a,S(0x243));return c[S(0x211)](b);}catch(d){console[S(0x225)]('Error\x20reading\x20file:\x20'+d);throw d;}}[a156p(0x1df)](a){const T=a156p,b=a156e[T(0x1d4)](this['getMeteorInstallPath'](),'.maka',GLOBAL_CACHE);try{const c=JSON[T(0x259)](a156h[T(0x1d6)](b,'utf-8'));return c[a]||null;}catch(d){return null;}}[a156p(0x1f4)](a,b){const U=a156p,c=a156e['join'](this[U(0x20e)](),'.maka',GLOBAL_CACHE);try{const d=JSON[U(0x259)](a156h[U(0x1d6)](c,U(0x1dd)));d[a]=b,a156h[U(0x1ff)](c,JSON[U(0x1d5)](d));}catch(f){const g={[a]:b};a156h[U(0x1ff)](c,JSON[U(0x1d5)](g));}}[a156p(0x214)](){const V=a156p;return a156e[V(0x1d4)](this['getMeteorInstallPath'](),'.maka');}async[a156p(0x1ef)](a,b){const W=a156p;try{const c=JSON['stringify'](a,null,0x2);await this['createFile']({'filePath':b,'data':c,'opts':{'force':!![]}});}catch(d){errorHandler(W(0x1c7),d),process[W(0x22c)](0x1);}}[a156p(0x258)](a){const X=a156p,b={};for(const c in a){const d=c[X(0x20c)]('.');let e=b;while(d?.['length']>0x1){const f=d?.[X(0x1e1)]();f&&(e=e[f]=e[f]||{});}e[d[0x0]]=a[c];}return b;}['deeperAssign'](c,d){const Y=a156p;return Object[Y(0x23e)](d)[Y(0x215)](([e,f])=>c[e]=f&&typeof f===Y(0x216)?this['deeperAssign'](c[e]=c[e]||{},f):f),c;}[a156p(0x23a)](a){return new Promise((b,c)=>{const Z=a156d;a=a||{},a[Z(0x1e3)]=a[Z(0x1e3)]||'.';if(!a[Z(0x24d)]){const d=this['findAppDirectory'](a[Z(0x1e3)]);if(!d)Log['error'](Z(0x217)),c();else{const f=Log[Z(0x23c)]();try{f[Z(0x231)](Z(0x25b)),exec(Z(0x21b),{'cwd':d},g=>{const a0=Z;g&&(Log[a0(0x225)]('\x0a'+g[a0(0x1e7)]),c(),process[a0(0x22c)](0x1)),f[a0(0x1e5)](),b();});}catch(g){Log[Z(0x225)](g),f[Z(0x24a)](),c();}}}});}async[a156p(0x232)](a){return new Promise((b,c)=>{const a1=a156d,d=a156f[a1(0x230)]();d[a1(0x20d)](a1(0x225),async e=>{const a2=a1;if(e['code']===a2(0x1f2)){const f=await Actions[a2(0x1c2)](a2(0x236)+a+a2(0x25a),![]);!f&&(Log[a2(0x225)](a2(0x236)+a+a2(0x223)),process[a2(0x22c)](0x1)),Log[a2(0x239)](a2(0x236)+a+a2(0x200)+(a+0x64)+'\x20...\x0a'),b(!![]);}else c(e);}),d['once']('listening',()=>{const a3=a1;d[a3(0x1fb)](),b(![]);}),d[a1(0x1d1)](a,a1(0x1c9));});}async['getAvailablePort'](a){const a4=a156p;while(await this[a4(0x232)](a)){a+=0x64;}return a;}async[a156p(0x240)](a,b){const a6=a156p;function c(g){const a5=a156d,h=a156h[a5(0x1f6)](g);return h[a5(0x226)];}const d=process[a6(0x1d7)]===a6(0x203)?'>':'📦',e=c(a),f=new Progress(e,a6(0x21e),d);return new Promise((g,h)=>{const a7=a6;a156h[a7(0x24b)](a)['on']('data',i=>{const a8=a7;f[a8(0x1c3)](i[a8(0x207)]);})[a7(0x1be)](a156g['x']({'gzip':!![],'cwd':b}))['on']('end',()=>{f['complete'](),g();})['on'](a7(0x225),i=>{h(i);});});}}
@@ -1 +1 @@
1
- var a157l=a157d;(function(a,b){var k=a157d,c=a();while(!![]){try{var d=-parseInt(k(0x1e9))/0x1*(parseInt(k(0x1de))/0x2)+parseInt(k(0x1f9))/0x3+parseInt(k(0x1f1))/0x4*(-parseInt(k(0x1f2))/0x5)+-parseInt(k(0x1f4))/0x6*(-parseInt(k(0x1fb))/0x7)+parseInt(k(0x1ef))/0x8*(-parseInt(k(0x1fa))/0x9)+-parseInt(k(0x1da))/0xa+-parseInt(k(0x1f6))/0xb*(-parseInt(k(0x1e7))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a157c,0xcbd36));export const supportedEngines={'html':['html'],'js':['js',a157l(0x1e8),'ts',a157l(0x1eb)],'css':['css','less',a157l(0x1f5),a157l(0x1e4)],'api':[a157l(0x1ed),a157l(0x1e4)],'test':['jasmine','mocha',a157l(0x1e4)],'client':[a157l(0x1dc),a157l(0x1e6)],'graphql':[a157l(0x1e3)],'ssr':[!![],![]],'theme':[a157l(0x1e1),'none']};export var HtmlEngines;(function(a){var m=a157l;a[m(0x1dd)]='html';}(HtmlEngines||(HtmlEngines={})));export var JsEngines;(function(a){var n=a157l;a['JS']='js',a['JSX']=n(0x1e8),a['TS']='ts',a[n(0x1e0)]=n(0x1eb);}(JsEngines||(JsEngines={})));export var CssEngines;(function(a){var o=a157l;a['CSS']=o(0x1d8),a[o(0x1d9)]='less',a[o(0x1ea)]=o(0x1f5),a['NONE']=o(0x1e4);}(CssEngines||(CssEngines={})));export var ApiEngines;(function(a){var p=a157l;a[p(0x1e2)]=p(0x1ed),a[p(0x1db)]='none';}(ApiEngines||(ApiEngines={})));export var TestEngines;(function(a){var q=a157l;a['JASMINE']=q(0x1d7),a[q(0x1d4)]=q(0x1f3),a['NONE']='none';}(TestEngines||(TestEngines={})));function a157c(){var x=['vanilla','4468332UXcvPc','jsx','1078cDXsDE','SCSS','tsx','search','rest','constructor','3901288XZxorg','APOLLO','1290832giAIuI','20ICFTVf','mocha','6kLpTDU','scss','99WfRhxG','apply','VANILLA','1493241vqlnur','27smnkCL','3054982aLTvfU','MOCHA','meteor','MATERIAL','jasmine','css','LESS','5177890ZipgWL','NONE','react','HTML','332ItRdSc','(((.+)+)+)+$','TSX','material','REST','apollo','none','toString'];a157c=function(){return x;};return a157c();}export var ClientEngines;(function(a){var r=a157l;a['REACT']=r(0x1dc),a[r(0x1f8)]='vanilla';}(ClientEngines||(ClientEngines={})));function a157d(a,b){var c=a157c();return a157d=function(d,e){d=d-0x1d4;var f=c[d];return f;},a157d(a,b);}export var GraphqlEngines;(function(c){var u=a157l,d=(function(){var f=!![];return function(g,h){var i=f?function(){var s=a157d;if(h){var j=h[s(0x1f7)](g,arguments);return h=null,j;}}:function(){};return f=![],i;};}()),e=d(this,function(){var t=a157d;return e[t(0x1e5)]()[t(0x1ec)](t(0x1df))['toString']()[t(0x1ee)](e)['search'](t(0x1df));});e(),c[u(0x1db)]=u(0x1e4),c[u(0x1f0)]=u(0x1e3);}(GraphqlEngines||(GraphqlEngines={})));export var SsrEngines;(function(a){var v=a157l;a[v(0x1db)]=v(0x1e4),a['METEOR']=v(0x1d5);}(SsrEngines||(SsrEngines={})));export var ThemeEngines;(function(a){var w=a157l;a[w(0x1d6)]=w(0x1e1),a[w(0x1db)]=w(0x1e4);}(ThemeEngines||(ThemeEngines={})));
1
+ var a157l=a157d;(function(a,b){var k=a157d,c=a();while(!![]){try{var d=-parseInt(k(0x159))/0x1+-parseInt(k(0x154))/0x2*(parseInt(k(0x135))/0x3)+parseInt(k(0x158))/0x4+parseInt(k(0x137))/0x5*(-parseInt(k(0x14a))/0x6)+parseInt(k(0x144))/0x7+parseInt(k(0x13a))/0x8+parseInt(k(0x155))/0x9*(-parseInt(k(0x139))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a157c,0xc11a4));export const supportedEngines={'html':['html'],'js':['js',a157l(0x150),'ts',a157l(0x136)],'css':['css',a157l(0x145),a157l(0x143),a157l(0x148)],'api':['rest',a157l(0x148)],'test':[a157l(0x13f),a157l(0x157),'none'],'client':[a157l(0x138),a157l(0x152)],'graphql':[a157l(0x15a)],'ssr':[!![],![]],'theme':[a157l(0x14c),'none']};export var HtmlEngines;(function(a){var m=a157l;a[m(0x13c)]=m(0x142);}(HtmlEngines||(HtmlEngines={})));export var JsEngines;(function(a){var n=a157l;a['JS']='js',a[n(0x14f)]=n(0x150),a['TS']='ts',a['TSX']=n(0x136);}(JsEngines||(JsEngines={})));export var CssEngines;(function(a){var o=a157l;a[o(0x151)]=o(0x13b),a[o(0x140)]=o(0x145),a[o(0x13d)]=o(0x143),a[o(0x153)]='none';}(CssEngines||(CssEngines={})));export var ApiEngines;(function(a){var p=a157l;a[p(0x13e)]=p(0x141),a[p(0x153)]=p(0x148);}(ApiEngines||(ApiEngines={})));export var TestEngines;(function(a){var q=a157l;a['JASMINE']=q(0x13f),a[q(0x15c)]=q(0x157),a[q(0x153)]=q(0x148);}(TestEngines||(TestEngines={})));export var ClientEngines;(function(a){var r=a157l;a[r(0x15b)]=r(0x138),a[r(0x147)]=r(0x152);}(ClientEngines||(ClientEngines={})));function a157d(a,b){var c=a157c();return a157d=function(d,e){d=d-0x135;var f=c[d];return f;},a157d(a,b);}export var GraphqlEngines;(function(a){var s=a157l;a[s(0x153)]=s(0x148),a['APOLLO']=s(0x15a);}(GraphqlEngines||(GraphqlEngines={})));export var SsrEngines;(function(a){var t=a157l;a[t(0x153)]=t(0x148),a[t(0x149)]=t(0x146);}(SsrEngines||(SsrEngines={})));function a157c(){var x=['786ICvvvh','9JyOYkK','(((.+)+)+)+$','mocha','3461568qpGjaS','245507xcQuFx','apollo','REACT','MOCHA','6657Hkxnhe','tsx','2305AAhVsN','react','12145060ICPrUC','10458064MWiyIo','css','HTML','SCSS','REST','jasmine','LESS','rest','html','scss','9805425hrnnJs','less','meteor','VANILLA','none','METEOR','5862hPiCSE','toString','material','search','apply','JSX','jsx','CSS','vanilla','NONE'];a157c=function(){return x;};return a157c();}export var ThemeEngines;(function(c){var w=a157l,d=(function(){var f=!![];return function(g,h){var i=f?function(){var u=a157d;if(h){var j=h[u(0x14e)](g,arguments);return h=null,j;}}:function(){};return f=![],i;};}()),e=d(this,function(){var v=a157d;return e[v(0x14b)]()[v(0x14d)](v(0x156))[v(0x14b)]()['constructor'](e)[v(0x14d)](v(0x156));});e(),c['MATERIAL']='material',c[w(0x153)]=w(0x148);}(ThemeEngines||(ThemeEngines={})));
@@ -1 +1 @@
1
- const a158t=a158d;(function(a,b){const q=a158d,c=a();while(!![]){try{const d=-parseInt(q(0x1e5))/0x1*(parseInt(q(0x1fa))/0x2)+parseInt(q(0x1e3))/0x3*(parseInt(q(0x1f9))/0x4)+parseInt(q(0x202))/0x5+-parseInt(q(0x1fe))/0x6+-parseInt(q(0x1f0))/0x7+-parseInt(q(0x208))/0x8+parseInt(q(0x201))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a158c,0xcbea4));const a158b=(function(){let a=!![];return function(b,c){const d=a?function(){const r=a158d;if(c){const e=c[r(0x1f6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a158a=a158b(this,function(){const s=a158d;return a158a[s(0x1fc)]()[s(0x1f3)](s(0x205))[s(0x1fc)]()['constructor'](a158a)['search']('(((.+)+)+)+$');});a158a();import a158e from'https';function a158d(a,b){const c=a158c();return a158d=function(d,e){d=d-0x1e3;let f=c[d];return f;},a158d(a,b);}import a158f from'fs';import{Progress}from'../progress/progress.class.js';const TIMEOUT=0x493e0;function a158c(){const Q=['7903000mprViq','destroy','Request\x20timeout','error','MAKA_DEV','get','application/json','api.openai.com','True','end','content-length','update','catch','1503KGLgrT','finish','1kDOyei','statusMessage','application/octet-stream','assign','length','then','write','NODE_TLS_REJECT_UNAUTHORIZED','location','request','statusCode','5005819UUpGln','env','askGPT','search','readFileSync','headers','apply','complete','downloadFile','11676fwmSqC','3303654TDJGzn','/v1/engines/davinci/completions','toString','post','9217020nmMDDh','checkAvailability','pathname','25724277FQBMQZ','7027765MlijJB','BAD\x20RETURN','data','(((.+)+)+)+$','timeout','POST'];a158c=function(){return Q;};return a158c();}process['env'][a158t(0x1ec)]=process[a158t(0x1f1)][a158t(0x20c)]===a158t(0x210)?'0':'1',process[a158t(0x1f1)]['NODE_NO_WARNINGS']=process[a158t(0x1f1)][a158t(0x20c)]==='True'?'1':'0';export class HTTPS{static async['post']({hostname:a,path:b,data:c,headers:d,cert:e,timeout:f}){const u=a158t,g=JSON['stringify'](c),h={'Content-Type':u(0x20e),'Content-Length':g[u(0x1e9)]};Object['assign'](h,d);const i={'hostname':a,'port':0x1bb,'path':b,'method':u(0x207),'headers':h,'timeout':f?f:TIMEOUT};return e&&Object['assign'](i,{'cert':a158f[u(0x1f4)](e)}),new Promise((j,k)=>{const v=u,l=a158e[v(0x1ee)](i,m=>{const w=v;let n='';m['on'](w(0x204),o=>{const x=w;n+=o[x(0x1fc)]();}),m['on']('end',()=>{const y=w;m[y(0x1ef)]===0x12d&&m[y(0x1f5)]['location']?this[y(0x1fd)]({'hostname':new URL(m[y(0x1f5)][y(0x1ed)])['hostname'],'path':new URL(m['headers']['location'])[y(0x200)],'data':c,'headers':d,'cert':e})[y(0x1ea)](j)['catch'](k):(!n&&j({'statusCode':0xcc,'statusMessage':m[y(0x1e6)]||y(0x203),'data':JSON['stringify']({'message':'No\x20content'})}),j({'statusCode':m[y(0x1ef)]||0x1f4,'statusMessage':m[y(0x1e6)]||y(0x203),'data':n}));});});l['on'](v(0x20b),m=>{k(m);}),l['on'](v(0x206),()=>{const z=v;l[z(0x209)](),k({'statusCode':0x198,'statusMessage':z(0x20a)});}),l[v(0x1eb)](g),l[v(0x211)]();});}static[a158t(0x20d)]({url:a,headers:b,cert:c,timeout:d}){const A=a158t,e={'Content-Type':'application/json'};Object['assign'](e,b);const f={'headers':e,'timeout':d?d:TIMEOUT};return c&&Object['assign'](f,{'cert':a158f[A(0x1f4)](c)}),new Promise((g,h)=>{const D=A,i=a158e['get'](a,f,j=>{const B=a158d;let k='';j['on'](B(0x204),l=>{k+=l['toString']();}),j['on']('end',()=>{const C=B;j['statusCode']===0x12d&&j[C(0x1f5)][C(0x1ed)]?this[C(0x20d)]({'url':j[C(0x1f5)][C(0x1ed)],'headers':b,'cert':c})[C(0x1ea)](g)['catch'](h):g({'statusCode':j['statusCode']||0x1f4,'statusMessage':j[C(0x1e6)]||'BAD\x20RETURN','data':k});});});i['on'](D(0x20b),j=>{h(j);}),i['on'](D(0x206),()=>{const E=D;i[E(0x209)](),h({'statusCode':0x198,'statusMessage':E(0x20a)});});});}static[a158t(0x1f8)]({url:a,headers:b,cert:c,destPath:d,timeout:e}){const F=a158t,f={'Content-Type':F(0x1e7)};Object[F(0x1e8)](f,b);const g={'headers':f,'timeout':e?e:TIMEOUT};return c&&Object[F(0x1e8)](g,{'cert':a158f[F(0x1f4)](c)}),new Promise((h,i)=>{const J=F,j=l=>{const G=a158d;if(l[G(0x1ef)]===0x12e||l[G(0x1ef)]===0x12d){if(!l['headers'][G(0x1ed)])return i(new Error('Redirected\x20response\x20without\x20Location\x20header'));return this[G(0x1f8)]({'url':l[G(0x1f5)][G(0x1ed)],'headers':b,'cert':c,'destPath':d})['then'](h)[G(0x214)](i);}if(l[G(0x1ef)]&&(l[G(0x1ef)]<0xc8||l['statusCode']>=0x12c))return i(new Error('Request\x20Failed\x20with\x20Status\x20Code:\x20'+l[G(0x1ef)]));const m=parseInt(l[G(0x1f5)][G(0x212)],0xa),n=new Progress(m),o=a158f['createWriteStream'](d);l['on'](G(0x204),p=>{const H=G;n[H(0x213)](p[H(0x1e9)]),o[H(0x1eb)](p);}),l['on']('end',()=>{const I=G;o[I(0x211)](),n[I(0x1f7)]();}),o['on'](G(0x1e4),()=>{o['close']();}),o['on']('close',h);},k=a158e[J(0x20d)](a,g,j);k['on'](J(0x20b),l=>{i(l);}),k['on'](J(0x206),()=>{const K=J;k[K(0x209)](),i({'statusCode':0x198,'statusMessage':K(0x20a)});});});}static[a158t(0x1ff)]({url:a,headers:b,cert:c,maxRedirects:maxRedirects=0x5,timeout:d}){const L=a158t,e={'Content-Type':L(0x20e)};Object[L(0x1e8)](e,b);const f={'method':'HEAD','headers':e,'timeout':d?d:TIMEOUT};return c&&Object[L(0x1e8)](f,{'cert':a158f[L(0x1f4)](c)}),new Promise((g,h)=>{const N=L,i=a158e['request'](a,f,j=>{const M=a158d;if(j['statusCode']&&(j[M(0x1ef)]>=0xc8&&j[M(0x1ef)]<0x12c))g(!![]);else j[M(0x1ef)]&&(j[M(0x1ef)]>=0x12c&&j[M(0x1ef)]<0x190)&&j['headers'][M(0x1ed)]?maxRedirects<=0x0?g(![]):this[M(0x1ff)]({'url':new URL(j[M(0x1f5)][M(0x1ed)],a)[M(0x1fc)](),'headers':b,'cert':c,'maxRedirects':maxRedirects-0x1})[M(0x1ea)](g)[M(0x214)](h):g(![]);});i['on']('error',j=>{h(j);}),i['on'](N(0x206),()=>{const O=N;i[O(0x209)](),h({'statusCode':0x198,'statusMessage':O(0x20a)});}),i[N(0x211)]();});}static async[a158t(0x1f2)]({prompt:a,openApiKey:b,certPath:c}){const P=a158t,d={'prompt':a,'max_tokens':0x96},e={'Authorization':'Bearer\x20'+b},f=await this[P(0x1fd)]({'hostname':P(0x20f),'path':P(0x1fb),'data':d,'headers':e,'cert':c});return f;}}
1
+ const a158t=a158d;(function(a,b){const q=a158d,c=a();while(!![]){try{const d=parseInt(q(0x17f))/0x1*(parseInt(q(0x174))/0x2)+parseInt(q(0x179))/0x3+-parseInt(q(0x160))/0x4+parseInt(q(0x16c))/0x5*(-parseInt(q(0x17c))/0x6)+parseInt(q(0x159))/0x7+-parseInt(q(0x163))/0x8*(-parseInt(q(0x15e))/0x9)+-parseInt(q(0x178))/0xa*(parseInt(q(0x18d))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a158c,0x40051));function a158d(a,b){const c=a158c();return a158d=function(d,e){d=d-0x155;let f=c[d];return f;},a158d(a,b);}const a158b=(function(){let a=!![];return function(b,c){const d=a?function(){const r=a158d;if(c){const e=c[r(0x169)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a158a=a158b(this,function(){const s=a158d;return a158a['toString']()[s(0x18f)]('(((.+)+)+)+$')[s(0x165)]()[s(0x16a)](a158a)[s(0x18f)](s(0x182));});function a158c(){const S=['2923940xewLaY','750015QRpWZf','createWriteStream','assign','12EBUKJT','readFileSync','statusCode','1HhkFBY','statusMessage','Request\x20Failed\x20with\x20Status\x20Code:\x20','(((.+)+)+)+$','stringify','True','catch','timeout','error','destroy','checkAvailability','application/json','application/octet-stream','finish','11IsoBAn','Request\x20timeout','search','env','close','length','No\x20content','2054430vHvnbY','POST','then','complete','data','90fUlqwU','downloadFile','1759996qnVNSf','write','end','228728lgldNO','Bearer\x20','toString','get','location','Redirected\x20response\x20without\x20Location\x20header','apply','constructor','update','852595MpEewc','NODE_NO_WARNINGS','content-length','hostname','HEAD','BAD\x20RETURN','MAKA_DEV','post','1012502KFhrrO','request','api.openai.com','headers'];a158c=function(){return S;};return a158c();}a158a();import a158e from'https';import a158f from'fs';import{Progress}from'../progress/progress.class.js';const TIMEOUT=0x493e0;process[a158t(0x155)]['NODE_TLS_REJECT_UNAUTHORIZED']=process[a158t(0x155)][a158t(0x172)]==='True'?'0':'1',process[a158t(0x155)][a158t(0x16d)]=process[a158t(0x155)][a158t(0x172)]===a158t(0x184)?'1':'0';export class HTTPS{static async[a158t(0x173)]({hostname:a,path:b,data:c,headers:d,cert:e,timeout:f}){const u=a158t,g=JSON['stringify'](c),h={'Content-Type':u(0x18a),'Content-Length':g[u(0x157)]};Object[u(0x17b)](h,d);const i={'hostname':a,'port':0x1bb,'path':b,'method':u(0x15a),'headers':h,'timeout':f?f:TIMEOUT};return e&&Object['assign'](i,{'cert':a158f[u(0x17d)](e)}),new Promise((j,k)=>{const v=u,l=a158e[v(0x175)](i,m=>{const x=v;let n='';m['on']('data',o=>{const w=a158d;n+=o[w(0x165)]();}),m['on'](x(0x162),()=>{const y=x;m[y(0x17e)]===0x12d&&m[y(0x177)]['location']?this['post']({'hostname':new URL(m['headers']['location'])[y(0x16f)],'path':new URL(m[y(0x177)][y(0x167)])['pathname'],'data':c,'headers':d,'cert':e})[y(0x15b)](j)[y(0x185)](k):(!n&&j({'statusCode':0xcc,'statusMessage':m[y(0x180)]||y(0x171),'data':JSON[y(0x183)]({'message':y(0x158)})}),j({'statusCode':m['statusCode']||0x1f4,'statusMessage':m[y(0x180)]||y(0x171),'data':n}));});});l['on']('error',m=>{k(m);}),l['on'](v(0x186),()=>{const z=v;l['destroy'](),k({'statusCode':0x198,'statusMessage':z(0x18e)});}),l[v(0x161)](g),l[v(0x162)]();});}static[a158t(0x166)]({url:a,headers:b,cert:c,timeout:d}){const A=a158t,e={'Content-Type':A(0x18a)};Object['assign'](e,b);const f={'headers':e,'timeout':d?d:TIMEOUT};return c&&Object[A(0x17b)](f,{'cert':a158f[A(0x17d)](c)}),new Promise((g,h)=>{const B=A,i=a158e[B(0x166)](a,f,j=>{const D=B;let k='';j['on']('data',l=>{const C=a158d;k+=l[C(0x165)]();}),j['on'](D(0x162),()=>{const E=D;j['statusCode']===0x12d&&j[E(0x177)][E(0x167)]?this['get']({'url':j['headers'][E(0x167)],'headers':b,'cert':c})['then'](g)[E(0x185)](h):g({'statusCode':j[E(0x17e)]||0x1f4,'statusMessage':j[E(0x180)]||E(0x171),'data':k});});});i['on'](B(0x187),j=>{h(j);}),i['on'](B(0x186),()=>{const F=B;i['destroy'](),h({'statusCode':0x198,'statusMessage':F(0x18e)});});});}static[a158t(0x15f)]({url:a,headers:b,cert:c,destPath:d,timeout:e}){const G=a158t,f={'Content-Type':G(0x18b)};Object[G(0x17b)](f,b);const g={'headers':f,'timeout':e?e:TIMEOUT};return c&&Object[G(0x17b)](g,{'cert':a158f[G(0x17d)](c)}),new Promise((h,i)=>{const L=G,j=l=>{const H=a158d;if(l['statusCode']===0x12e||l[H(0x17e)]===0x12d){if(!l[H(0x177)][H(0x167)])return i(new Error(H(0x168)));return this[H(0x15f)]({'url':l[H(0x177)][H(0x167)],'headers':b,'cert':c,'destPath':d})[H(0x15b)](h)[H(0x185)](i);}if(l[H(0x17e)]&&(l[H(0x17e)]<0xc8||l[H(0x17e)]>=0x12c))return i(new Error(H(0x181)+l[H(0x17e)]));const m=parseInt(l[H(0x177)][H(0x16e)],0xa),n=new Progress(m),o=a158f[H(0x17a)](d);l['on'](H(0x15d),p=>{const I=H;n[I(0x16b)](p[I(0x157)]),o[I(0x161)](p);}),l['on'](H(0x162),()=>{const J=H;o[J(0x162)](),n[J(0x15c)]();}),o['on'](H(0x18c),()=>{const K=H;o[K(0x156)]();}),o['on'](H(0x156),h);},k=a158e[L(0x166)](a,g,j);k['on'](L(0x187),l=>{i(l);}),k['on'](L(0x186),()=>{const M=L;k[M(0x188)](),i({'statusCode':0x198,'statusMessage':M(0x18e)});});});}static[a158t(0x189)]({url:a,headers:b,cert:c,maxRedirects:maxRedirects=0x5,timeout:d}){const N=a158t,e={'Content-Type':N(0x18a)};Object[N(0x17b)](e,b);const f={'method':N(0x170),'headers':e,'timeout':d?d:TIMEOUT};return c&&Object['assign'](f,{'cert':a158f['readFileSync'](c)}),new Promise((g,h)=>{const P=N,i=a158e['request'](a,f,j=>{const O=a158d;if(j[O(0x17e)]&&(j[O(0x17e)]>=0xc8&&j[O(0x17e)]<0x12c))g(!![]);else j[O(0x17e)]&&(j['statusCode']>=0x12c&&j[O(0x17e)]<0x190)&&j[O(0x177)][O(0x167)]?maxRedirects<=0x0?g(![]):this[O(0x189)]({'url':new URL(j[O(0x177)]['location'],a)[O(0x165)](),'headers':b,'cert':c,'maxRedirects':maxRedirects-0x1})[O(0x15b)](g)[O(0x185)](h):g(![]);});i['on'](P(0x187),j=>{h(j);}),i['on']('timeout',()=>{const Q=P;i['destroy'](),h({'statusCode':0x198,'statusMessage':Q(0x18e)});}),i[P(0x162)]();});}static async['askGPT']({prompt:a,openApiKey:b,certPath:c}){const R=a158t,d={'prompt':a,'max_tokens':0x96},e={'Authorization':R(0x164)+b},f=await this[R(0x173)]({'hostname':R(0x176),'path':'/v1/engines/davinci/completions','data':d,'headers':e,'cert':c});return f;}}
@@ -1 +1 @@
1
- function a159d(a,b){var c=a159c();return a159d=function(d,e){d=d-0x16a;var f=c[d];return f;},a159d(a,b);}(function(a,b){var f=a159d,c=a();while(!![]){try{var d=-parseInt(f(0x177))/0x1+-parseInt(f(0x173))/0x2*(-parseInt(f(0x16b))/0x3)+parseInt(f(0x175))/0x4+parseInt(f(0x174))/0x5*(parseInt(f(0x171))/0x6)+-parseInt(f(0x170))/0x7+parseInt(f(0x176))/0x8*(parseInt(f(0x172))/0x9)+-parseInt(f(0x16e))/0xa*(parseInt(f(0x16f))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a159c,0x72daa));var a159b=(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;};}()),a159a=a159b(this,function(){var g=a159d;return a159a['toString']()[g(0x16d)](g(0x16a))[g(0x16c)]()['constructor'](a159a)['search'](g(0x16a));});function a159c(){var h=['search','3683630mjWODU','22fLYWBC','2298898QeGNDK','150kEGFyp','4878gsHUSi','1867974mNsnPm','6275abbqPu','1514168CDlDtk','13384pkWgFe','715088vZhmeh','(((.+)+)+)+$','3CdHpIw','toString'];a159c=function(){return h;};return a159c();}a159a();export{};
1
+ function a159d(a,b){var c=a159c();return a159d=function(d,e){d=d-0xcd;var f=c[d];return f;},a159d(a,b);}(function(a,b){var f=a159d,c=a();while(!![]){try{var d=parseInt(f(0xd4))/0x1+-parseInt(f(0xd1))/0x2+parseInt(f(0xd3))/0x3+-parseInt(f(0xd2))/0x4+parseInt(f(0xd0))/0x5+-parseInt(f(0xd7))/0x6+-parseInt(f(0xd8))/0x7*(-parseInt(f(0xd5))/0x8);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a159c,0x5db89));var a159b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a159d;if(c){var e=c[g(0xcd)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a159a=a159b(this,function(){var h=a159d;return a159a[h(0xd9)]()[h(0xcf)](h(0xce))[h(0xd9)]()[h(0xd6)](a159a)[h(0xcf)](h(0xce));});function a159c(){var i=['1111233XdERVt','209272hSHbbv','64OLyqki','constructor','71910xgvEOC','360199Xrkqam','toString','apply','(((.+)+)+)+$','search','2767850EKTcKA','1087028yJwpAd','2422116uAnOub'];a159c=function(){return i;};return a159c();}a159a();export{};
@@ -1 +1 @@
1
- const a160t=a160d;(function(a,b){const p=a160d,c=a();while(!![]){try{const d=-parseInt(p(0x1a7))/0x1+parseInt(p(0x1aa))/0x2*(parseInt(p(0x1c1))/0x3)+parseInt(p(0x19c))/0x4+-parseInt(p(0x1bf))/0x5*(-parseInt(p(0x1b4))/0x6)+parseInt(p(0x1a8))/0x7*(parseInt(p(0x1b5))/0x8)+parseInt(p(0x1ac))/0x9*(parseInt(p(0x1d7))/0xa)+parseInt(p(0x1a2))/0xb*(-parseInt(p(0x19a))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a160c,0xa4aa8));import*as a160e from'single-line-log2';import a160f from'cli-color';function a160d(a,b){const c=a160c();return a160d=function(d,e){d=d-0x197;let f=c[d];return f;},a160d(a,b);}import a160g from'cli-cursor';import a160h from'elegant-spinner';import a160i from'fs';import{camelCase}from'change-case';const check='✔',cross='✘';function a160c(){const S=['red','yellow','readFileSync','map','cyanBright','yellowBright','majestic','[--','12wBFqvm','singleLine','1567576jhlVag','apply','values','\x0aFor\x20more\x20information,\x20visit\x20https://www.maka-cli.com','hidden','withSpinner','8808745DZZflz','show','black','blackBright','forEach','593281dOiclH','252QiJgNG','LIGHT','514292EnaGij','log','2222658RFzJXg','boolFlag','name','trim','\x0aOptions:','magentaBright','warn','This\x20command\x20is\x20experimental\x20and\x20may\x20not\x20be\x20fully\x20functional.','1615620mUqZUa','200728GEydDu','header','(((.+)+)+)+$','DARK','utf8','search','info','success','\x20-\x20','hide','5WVpgiI','<value>','3qCttsF','description','file','cyan','Examples:','bright','join','whiteBright','Usage:','stdout','toString','colors','message','usage','error','object','green','setColorMode','bold','greenBright','constructor','colorMode','10MyYPqe'];a160c=function(){return S;};return a160c();}export var ColorMode;(function(c){const s=a160d,d=(function(){let f=!![];return function(g,h){const i=f?function(){const q=a160d;if(h){const j=h[q(0x19d)](g,arguments);return h=null,j;}}:function(){};return f=![],i;};}()),e=d(this,function(){const r=a160d;return e['toString']()[r(0x1ba)](r(0x1b7))[r(0x1cb)]()[r(0x1d5)](e)[r(0x1ba)](r(0x1b7));});e(),c[c['DARK']=0x0]=s(0x1b8),c[c[s(0x1a9)]=0x1]=s(0x1a9);}(ColorMode||(ColorMode={})));const DarkColors={'success':a160f[a160t(0x1d4)],'warn':a160f[a160t(0x197)],'notice':a160f['cyanBright'],'error':a160f[a160t(0x1d8)][a160t(0x1d3)],'header':a160f[a160t(0x1a5)],'bright':a160f[a160t(0x1c8)],'info':a160f[a160t(0x1dc)],'majestic':a160f[a160t(0x1b1)]},LightColors={'success':a160f[a160t(0x1d1)],'warn':a160f[a160t(0x1d9)],'notice':a160f[a160t(0x1c4)],'error':a160f['red'],'header':a160f[a160t(0x1a4)],'bright':a160f[a160t(0x1a4)],'info':a160f[a160t(0x1c4)],'majestic':a160f['magenta']},formatOptionalOpts=a=>{const u=a160t;return a[u(0x1db)](b=>{const v=u;if(typeof b==='object'){if(b?.['hidden'])return'';if(b[v(0x1ad)])return v(0x199)+camelCase(b[v(0x1ae)])+']';return'[--'+camelCase(b[v(0x1ae)])+'='+(b?.['values']?b[v(0x19e)]['join']('|'):v(0x1c0))+']';}return b?v(0x199)+camelCase(b)+']':'';})[u(0x1c7)]('\x20');},formatRequiredOpts=a=>{const x=a160t;return a['map'](b=>{const w=a160d;if(typeof b===w(0x1d0)){if(b?.[w(0x1a0)])return'';if(b[w(0x1ad)])return'--'+camelCase(b[w(0x1ae)]);return'--'+camelCase(b[w(0x1ae)])+'='+(b?.[w(0x19e)]?b[w(0x19e)][w(0x1c7)]('|'):'<value>');}return'--'+camelCase(b);})[x(0x1c7)]('\x20');};export class Log{static ['colorMode']=ColorMode[a160t(0x1b8)];static get[a160t(0x1cc)](){const y=a160t;return Log[y(0x1d6)]===ColorMode['DARK']?DarkColors:LightColors;}static[a160t(0x1d2)](a){const z=a160t;Log[z(0x1d6)]=a;}static[a160t(0x1bc)](a){const A=a160t;a&&console[A(0x1ab)](Log['colors'][A(0x1bc)](a));}static[a160t(0x1b2)](a){const B=a160t;a&&console[B(0x1ab)](Log[B(0x1cc)][B(0x1b2)](a));}static['notice'](a){const C=a160t;a&&console['log'](Log[C(0x1cc)]['notice'](a));}static[a160t(0x1cf)](a){const D=a160t;a&&console['log'](Log[D(0x1cc)][D(0x1cf)](a));}static[a160t(0x1b6)](a){const E=a160t;a&&console[E(0x1ab)](Log[E(0x1cc)][E(0x1b6)](a));}static[a160t(0x1c6)](a){const F=a160t;a&&console[F(0x1ab)](Log['colors'][F(0x1c6)](a));}static[a160t(0x1bb)](a){const G=a160t;a&&console[G(0x1ab)](Log[G(0x1cc)][G(0x1bb)](a));}static[a160t(0x198)](a){const H=a160t;a&&console[H(0x1ab)](Log[H(0x1cc)][H(0x198)](a));}static[a160t(0x1ce)](a,b,c,d,e,f,g){const K=a160t,h=l=>{const I=a160d;return l['filter'](m=>!m['hidden'])[I(0x1db)](m=>{const J=I,n=m[J(0x1ad)]?'--'+camelCase(m[J(0x1ae)]):'--'+camelCase(m['name'])+'='+(m[J(0x19e)]?m['values'][J(0x1c7)]('|'):J(0x1c0)),o=m[J(0x1c2)]?J(0x1bd)+m[J(0x1c2)]:'';return'\x20\x20'+a160f['white'](n)+o;})['join']('\x0a');},i=a160f[K(0x1a5)];g&&Log[K(0x1b2)](K(0x1b3));Log['bright'](d);b&&b?.['length']>0x0&&(Log[K(0x1c6)](i(K(0x1c5))),b[K(0x1a6)](l=>{Log['bright']('\x20>\x20'+l);}));a&&(Log[K(0x1b6)]('\x0aManual:'),Log['notice']('\x20\x20'+a[K(0x1af)]()));c&&Log['bright']('\x0a'+i(K(0x1c9))+'\x20'+c+'\x20'+formatRequiredOpts(e)+'\x20'+formatOptionalOpts(f)+'\x0a');const j=[...e,...f],k=j[0x0]&&typeof j[0x0]===K(0x1d0)?h(j):'';k&&(Log[K(0x1b6)](K(0x1b0)),console[K(0x1ab)](k)),Log[K(0x1b6)](K(0x19f)),Log[K(0x1b6)]('All\x20commands\x20accept\x20the\x20--help\x20or\x20-h\x20flag\x20for\x20more\x20information');}static[a160t(0x1a1)](a=''){const L=a160t;a160g[L(0x1be)]();const b=a160h();a160g[L(0x1be)]();let c;return{'start'(d){d&&(a=d),c=setInterval(function(){const M=a160d;a160e[M(0x1ca)](a160f['cyan'](b())+'\x20'+a);},0x5a);},'success'(d=''){const N=L;clearInterval(c),a160e[N(0x1ca)](a160f[N(0x1d4)](check)+'\x20'+a+'\x20'+d),console[N(0x1ab)](),a160g['show']();},'failure'(d=''){const O=L;clearInterval(c),a160e[O(0x1ca)](a160f[O(0x1d8)][O(0x1d3)](cross)+'\x20'+a+'\x20'+d),console[O(0x1ab)](),a160g[O(0x1a3)]();},'stop'(){clearInterval(c),a160g['show']();},'update'(d){d&&(a=d);}};}static[a160t(0x19b)](a){const P=a160t;a160e[P(0x1ca)](a);}static['singleLineSuccess'](a){const Q=a160t;a160e[Q(0x1ca)](a160f[Q(0x1d4)](check)+'\x20'+a);}static[a160t(0x1c3)](a){const R=a160t;try{const b=a160i[R(0x1da)](a,R(0x1b9));console[R(0x1ab)](a160f['whiteBright'](b));}catch(c){console[R(0x1cf)](a160f[R(0x1d8)]('Error\x20reading\x20file:\x20'+c[R(0x1cd)]));}}}
1
+ const a160s=a160d;(function(a,b){const p=a160d,c=a();while(!![]){try{const d=parseInt(p(0x1a2))/0x1+-parseInt(p(0x1c4))/0x2*(-parseInt(p(0x1cb))/0x3)+-parseInt(p(0x1bb))/0x4*(-parseInt(p(0x1a4))/0x5)+parseInt(p(0x19f))/0x6+parseInt(p(0x1b9))/0x7+parseInt(p(0x1cc))/0x8*(parseInt(p(0x1c1))/0x9)+-parseInt(p(0x1a3))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a160c,0x7f253));import*as a160e from'single-line-log2';import a160f from'cli-color';import a160g from'cli-cursor';import a160h from'elegant-spinner';import a160i from'fs';import{camelCase}from'change-case';const check='✔',cross='✘';export var ColorMode;(function(c){const r=a160d,d=(function(){let f=!![];return function(g,h){const i=f?function(){if(h){const j=h['apply'](g,arguments);return h=null,j;}}:function(){};return f=![],i;};}()),e=d(this,function(){const q=a160d;return e['toString']()[q(0x1bf)](q(0x192))['toString']()['constructor'](e)[q(0x1bf)](q(0x192));});e(),c[c[r(0x1a9)]=0x0]='DARK',c[c[r(0x1a5)]=0x1]='LIGHT';}(ColorMode||(ColorMode={})));const DarkColors={'success':a160f['greenBright'],'warn':a160f[a160s(0x19e)],'notice':a160f[a160s(0x1bc)],'error':a160f[a160s(0x196)][a160s(0x1c2)],'header':a160f[a160s(0x19d)],'bright':a160f['whiteBright'],'info':a160f[a160s(0x1bc)],'majestic':a160f[a160s(0x1a6)]},LightColors={'success':a160f['green'],'warn':a160f[a160s(0x195)],'notice':a160f[a160s(0x19c)],'error':a160f['red'],'header':a160f['black'],'bright':a160f[a160s(0x1c5)],'info':a160f[a160s(0x19c)],'majestic':a160f[a160s(0x1ce)]},formatOptionalOpts=a=>{const t=a160s;return a[t(0x1ab)](b=>{const u=t;if(typeof b===u(0x1af)){if(b?.[u(0x199)])return'';if(b['boolFlag'])return'[--'+camelCase(b[u(0x197)])+']';return'[--'+camelCase(b[u(0x197)])+'='+(b?.[u(0x1ae)]?b[u(0x1ae)]['join']('|'):'<value>')+']';}return b?u(0x1ad)+camelCase(b)+']':'';})[t(0x193)]('\x20');},formatRequiredOpts=a=>{const w=a160s;return a['map'](b=>{const v=a160d;if(typeof b===v(0x1af)){if(b?.[v(0x199)])return'';if(b[v(0x1a7)])return'--'+camelCase(b[v(0x197)]);return'--'+camelCase(b[v(0x197)])+'='+(b?.['values']?b[v(0x1ae)][v(0x193)]('|'):'<value>');}return'--'+camelCase(b);})[w(0x193)]('\x20');};function a160d(a,b){const c=a160c();return a160d=function(d,e){d=d-0x18d;let f=c[d];return f;},a160d(a,b);}export class Log{static [a160s(0x1ba)]=ColorMode['DARK'];static get['colors'](){const x=a160s;return Log[x(0x1ba)]===ColorMode[x(0x1a9)]?DarkColors:LightColors;}static[a160s(0x190)](a){Log['colorMode']=a;}static['success'](a){const y=a160s;a&&console[y(0x1c6)](Log['colors'][y(0x1b5)](a));}static[a160s(0x18e)](a){const z=a160s;a&&console[z(0x1c6)](Log['colors'][z(0x18e)](a));}static[a160s(0x1a1)](a){const A=a160s;a&&console['log'](Log[A(0x1b7)][A(0x1a1)](a));}static[a160s(0x18f)](a){const B=a160s;a&&console['log'](Log[B(0x1b7)][B(0x18f)](a));}static['header'](a){const C=a160s;a&&console[C(0x1c6)](Log[C(0x1b7)][C(0x1b6)](a));}static[a160s(0x1a0)](a){const D=a160s;a&&console[D(0x1c6)](Log[D(0x1b7)][D(0x1a0)](a));}static['info'](a){const E=a160s;a&&console[E(0x1c6)](Log[E(0x1b7)][E(0x194)](a));}static[a160s(0x1c9)](a){const F=a160s;a&&console[F(0x1c6)](Log['colors'][F(0x1c9)](a));}static[a160s(0x1b0)](a,b,c,d,e,f,g){const I=a160s,h=l=>{const G=a160d;return l[G(0x1bd)](m=>!m[G(0x199)])[G(0x1ab)](m=>{const H=G,n=m['boolFlag']?'--'+camelCase(m[H(0x197)]):'--'+camelCase(m['name'])+'='+(m[H(0x1ae)]?m['values'][H(0x193)]('|'):'<value>'),o=m[H(0x1b8)]?H(0x1b4)+m[H(0x1b8)]:'';return'\x20\x20'+a160f['white'](n)+o;})[G(0x193)]('\x0a');},i=a160f[I(0x19d)];g&&Log[I(0x18e)](I(0x1aa));Log['bright'](d);b&&b?.['length']>0x0&&(Log[I(0x1a0)](i('Examples:')),b[I(0x1cd)](l=>{const J=I;Log[J(0x1a0)](J(0x1c0)+l);}));a&&(Log[I(0x1b6)](I(0x19a)),Log[I(0x1a1)]('\x20\x20'+a[I(0x1b2)]()));c&&Log[I(0x1a0)]('\x0a'+i(I(0x1ca))+'\x20'+c+'\x20'+formatRequiredOpts(e)+'\x20'+formatOptionalOpts(f)+'\x0a');const j=[...e,...f],k=j[0x0]&&typeof j[0x0]===I(0x1af)?h(j):'';k&&(Log[I(0x1b6)]('\x0aOptions:'),console['log'](k)),Log[I(0x1b6)](I(0x1c3)),Log['header'](I(0x191));}static[a160s(0x1b3)](a=''){const K=a160s;a160g[K(0x198)]();const b=a160h();a160g[K(0x198)]();let c;return{'start'(d){d&&(a=d),c=setInterval(function(){const L=a160d;a160e['stdout'](a160f[L(0x19c)](b())+'\x20'+a);},0x5a);},'success'(d=''){const M=K;clearInterval(c),a160e['stdout'](a160f[M(0x1c8)](check)+'\x20'+a+'\x20'+d),console['log'](),a160g[M(0x1a8)]();},'failure'(d=''){const N=K;clearInterval(c),a160e[N(0x1c7)](a160f[N(0x196)][N(0x1c2)](cross)+'\x20'+a+'\x20'+d),console[N(0x1c6)](),a160g[N(0x1a8)]();},'stop'(){const O=K;clearInterval(c),a160g[O(0x1a8)]();},'update'(d){d&&(a=d);}};}static[a160s(0x18d)](a){const P=a160s;a160e[P(0x1c7)](a);}static['singleLineSuccess'](a){const Q=a160s;a160e['stdout'](a160f[Q(0x1c8)](check)+'\x20'+a);}static[a160s(0x1b1)](a){const R=a160s;try{const b=a160i[R(0x19b)](a,R(0x1ac));console[R(0x1c6)](a160f['whiteBright'](b));}catch(c){console['error'](a160f[R(0x196)]('Error\x20reading\x20file:\x20'+c[R(0x1be)]));}}}function a160c(){const S=['description','1866193QrPxuT','colorMode','20xNVxnp','cyanBright','filter','message','search','\x20>\x20','45UbuMFu','bold','\x0aFor\x20more\x20information,\x20visit\x20https://www.maka-cli.com','2IYRBGC','black','log','stdout','greenBright','majestic','Usage:','2460279iXTFsD','886760BOmNJg','forEach','magenta','singleLine','warn','error','setColorMode','All\x20commands\x20accept\x20the\x20--help\x20or\x20-h\x20flag\x20for\x20more\x20information','(((.+)+)+)+$','join','info','yellow','red','name','hide','hidden','\x0aManual:','readFileSync','cyan','blackBright','yellowBright','3225870qLDlQp','bright','notice','594619hUyjnE','31749790WIoqbA','922585DSjaFi','LIGHT','magentaBright','boolFlag','show','DARK','This\x20command\x20is\x20experimental\x20and\x20may\x20not\x20be\x20fully\x20functional.','map','utf8','[--','values','object','usage','file','trim','withSpinner','\x20-\x20','success','header','colors'];a160c=function(){return S;};return a160c();}
@@ -1 +1 @@
1
- function a161c(){var h=['3140008jteavj','224499jUoHtH','3678yEbJVW','toString','777720NfgHKo','845778nhXySh','5846834cGlFrh','search','constructor','(((.+)+)+)+$','1334yQbmps','343804ykNrac'];a161c=function(){return h;};return a161c();}(function(a,b){var f=a161d,c=a();while(!![]){try{var d=-parseInt(f(0x124))/0x1+-parseInt(f(0x121))/0x2*(-parseInt(f(0x125))/0x3)+parseInt(f(0x122))/0x4+parseInt(f(0x127))/0x5+parseInt(f(0x128))/0x6+-parseInt(f(0x129))/0x7+parseInt(f(0x123))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a161c,0x821cc));var a161b=(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;};}()),a161a=a161b(this,function(){var g=a161d;return a161a['toString']()[g(0x12a)](g(0x120))[g(0x126)]()[g(0x12b)](a161a)[g(0x12a)]('(((.+)+)+)+$');});function a161d(a,b){var c=a161c();return a161d=function(d,e){d=d-0x120;var f=c[d];return f;},a161d(a,b);}a161a();export{};
1
+ (function(a,b){var f=a161d,c=a();while(!![]){try{var d=parseInt(f(0x1c9))/0x1+parseInt(f(0x1c5))/0x2*(parseInt(f(0x1c7))/0x3)+parseInt(f(0x1c3))/0x4+-parseInt(f(0x1c8))/0x5+-parseInt(f(0x1c2))/0x6+-parseInt(f(0x1c4))/0x7+parseInt(f(0x1c6))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a161c,0x69a71));function a161d(a,b){var c=a161c();return a161d=function(d,e){d=d-0x1c1;var f=c[d];return f;},a161d(a,b);}var a161b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a161d;if(c){var e=c[g(0x1ca)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a161a=a161b(this,function(){var h=a161d;return a161a[h(0x1c1)]()[h(0x1cb)]('(((.+)+)+)+$')[h(0x1c1)]()['constructor'](a161a)[h(0x1cb)]('(((.+)+)+)+$');});function a161c(){var i=['699148yCECJQ','apply','search','toString','3817362ovXJJm','1173268dQmktv','4216415jRgPlb','71486WDFNFB','2651784idVkdJ','69VaXtrV','2373510dhqsNN'];a161c=function(){return i;};return a161c();}a161a();export{};
@@ -1 +1 @@
1
- const a162w=a162d;(function(a,b){const u=a162d,c=a();while(!![]){try{const d=parseInt(u(0x122))/0x1+parseInt(u(0x106))/0x2+-parseInt(u(0x16b))/0x3+-parseInt(u(0x10c))/0x4+-parseInt(u(0x123))/0x5*(parseInt(u(0x107))/0x6)+-parseInt(u(0x158))/0x7*(parseInt(u(0x134))/0x8)+-parseInt(u(0x13b))/0x9*(-parseInt(u(0x176))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a162c,0x891bf));const a162b=(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;};}()),a162a=a162b(this,function(){const v=a162d;return a162a[v(0xee)]()[v(0x14a)](v(0x129))['toString']()[v(0x100)](a162a)[v(0x14a)](v(0x129));});a162a();import a162e from'path';function a162c(){const M=['0.0.0','@echo\x20off\x0d\x0a\x22','VERSION','publish','constructor','maybeProxyCommandToMeteor()','remove','message','linkVersionAsCurrent','\x09version:\x20\x270.0.1\x27,\x0a','1794124HtXQdi','12MFEzdM','This\x20project\x27s\x20version\x20is\x20at\x20','Meteor','string','exit','4121972kIvFwW','\x09name:\x20\x27','claim',':\x20Target\x20binary\x20not\x20found\x20at\x20','cordova-build','trim',',\x20however\x20you\x20are\x20using\x20','includes','releases','app','maybeProxyCommandToMeteor','--mobile-server','build','list','show','ignore','run','installNpmPackage','Mobile\x20app\x20configuration\x20written\x20to\x20','list-platforms','getGlobalMeteorVersion','fsi','258199KdtbLh','103255hJYOKW','realpathSync','invokeMeteorCommand','concat','getMeteorReleaseVersion','http://127.0.0.1:9999','(((.+)+)+)+$','add-platform','test-packages','ENOENT','platform','ask','publish-for-arch','lstatSync','env','Don\x27t\x20forget\x20these\x20commands:\x20\x0a\x20sudo\x20xcode-select\x20-s\x20/Applications/Xcode.app/Contents/Developer\x20\x0a\x20sudo\x20gem\x20install\x20cocoapods\x20\x0a\x20sudo\x20xcodebuild\x20-license\x20accept\x20\x0a\x20brew\x20install\x20ios-deploy','npm','184jGtXGP','meteor','reset','isMeteorInstalled','appName','logout','pkg','14779701lBNfPW','update','checkForMeteorVersionMismatch','length','indexOf','Could\x20not\x20remove\x20old\x20file\x20','cfg','isSymbolicLink','--ssl','\x27,\x0a','remove-platform','utf8','Command\x20not\x20found','readFileSync','isFile','search','--exclude-archs','\x09id:\x20\x27com.meteor.maka.','Meteor\x20','homedir','meteorRelease','login','win32','shell','logs','existsSync','open','admin','split','130403BjlaDa','getAvailablePort','join','dirname','meteor.cmd','notice','bin','--port','meteor.bat','release','A\x20mobile-config.js\x20already\x20exists,\x20not\x20over\x20writing','--raw-logs','PORT','Meteor\x20release\x20version\x20set\x20to\x20','//\x20https://docs.meteor.com/api/mobile-config.html\x0a','findProjectDirectory','writeFileSync','True','getMakaProjectConfig','2206767BWosCJ','A\x20mobile-config.js\x20file\x20already\x20exists,\x20overwrite?\x20[yN]','MAKA_DEV','App\x20name?\x20[','.meteor','\x20in\x20','invokeMeteorCommand()','getInstalledMeteorVersion','mkdirSync','mongo','METEOR@','10cHGjDP','getMeteorReleaseVersion()','Run\x20\x22maka\x20--help\x22\x20for\x20a\x20list\x20of\x20commands','write','configure-android','\x20--version','slice','error','plugins','getMeteorExePath','confirm','Attempting\x20to\x20use\x20','splice','end','Error\x20in\x20','cordova-plugin-meteor-webapp','\x20is\x20now\x20the\x20active\x20version','App.info({\x0a','toString','replace','Cannot\x20link\x20Meteor\x20','});\x0a','success','argv','findAppDirectory','setMeteorReleaseVersion()','symlinkSync','list-sites','instance','cordova@latest','createWriteStream','setMeteorReleaseVersion'];a162c=function(){return M;};return a162c();}import a162f from'fs';import a162g from'os';import{execSync}from'child_process';import{pascalCase}from'change-case';import{Log}from'../log/log.class.js';import{Actions}from'../actions/actions.class.js';import{MustBeInProjectError}from'../../error.js';function a162d(a,b){const c=a162c();return a162d=function(d,e){d=d-0xeb;let f=c[d];return f;},a162d(a,b);}const homeDir=a162g[a162w(0x14e)](),errorHandler=(a,b)=>{const x=a162w;process[x(0x131)][x(0x16d)]===x(0x169)&&Log[x(0x17d)](x(0x184)+a),b&&console['error'](b);};export class MPI{static [a162w(0xf8)];[a162w(0x121)];[a162w(0x141)];[a162w(0x13a)];[a162w(0x135)];[a162w(0x14f)];constructor(a,b,c){const y=a162w;this[y(0x121)]=a,this['cfg']=b,this[y(0x13a)]=c;const d=this[y(0x17f)]();this[y(0x14f)]=this[y(0x127)](),this['meteor']=d;}static['getInstance'](a,b,c){const z=a162w;return!MPI[z(0xf8)]&&(MPI[z(0xf8)]=new MPI(a,b,c)),MPI['instance'];}[a162w(0x17f)](){const A=a162w,a=process[A(0x12d)]===A(0x151),b=a?A(0x15c):A(0x135);return a162e[A(0x15a)](homeDir,'.meteor',A(0x15e),b);}[a162w(0x137)](){const B=a162w;try{const a=this[B(0x17f)]();if(!a162f[B(0x154)](a))return![];const b=a162f[B(0x130)](a);if(b[B(0x142)]()){const c=a162f[B(0x124)](a);return a162f['existsSync'](c)&&a162f['statSync'](c)['isFile']();}return b[B(0x149)]();}catch(d){return![];}}['setMeteorReleaseVersion'](a){const C=a162w;try{const b=a162e[C(0x15a)](homeDir,C(0x16f),C(0xfe)),c=a162e[C(0x15b)](b);!a162f[C(0x154)](c)&&a162f[C(0x173)](c,{'recursive':!![]}),a162f['writeFileSync'](b,a,C(0x146)),Log[C(0xf2)](C(0x165)+a+C(0x170)+b);}catch(d){errorHandler(C(0xf5),d),process[C(0x10b)](0x1);}}[a162w(0x127)](){const D=a162w;try{const a=a162e[D(0x15a)](homeDir,'.meteor',D(0xfe));if(a162f[D(0x154)](a)){const b=a162f[D(0x148)](a,'utf8')['trim']();return b;}else return null;}catch(c){return errorHandler(D(0x177),c),null;}}async[a162w(0x120)](){const E=a162w;let a=this[E(0x127)]()||E(0xfc);try{a=execSync(this['meteor']+E(0x17b),{'stdio':E(0x11b),'cwd':this[E(0x121)][E(0xf4)](),'env':{...process[E(0x131)],'HTTP_PROXY':E(0x128),'HTTPS_PROXY':E(0x128)}})[E(0xee)]()['replace'](E(0x109),'')[E(0x111)]();}catch(c){}const b=a[E(0x157)]('.')[E(0x13e)];return b<0x3&&(a=a+'.0'),a;}['checkForMeteorVersionMismatch'](){const F=a162w;try{const a=this[F(0x121)][F(0xf4)](),b=a162e[F(0x15a)](a,'.meteor','release');if(!a162f[F(0x154)](b))return![];const c=a162f['readFileSync'](b,F(0x146))[F(0x111)](),d=this[F(0x127)]();return c!==d;}catch(f){return errorHandler('checkForMeteorVersionMismatch()',f),![];}}async[a162w(0x116)](){const G=a162w;try{const a=[G(0x155),G(0x133),'run',G(0x13c),'add',G(0x102),G(0x119),G(0x12a),'install-sdk',G(0x145),G(0x11f),G(0x17a),G(0x118),G(0x152),G(0x174),G(0x136),G(0x153),'authorized',G(0x10e),G(0x150),G(0x139),'whoami',G(0x12b),G(0x156),G(0xf7),'publish-release',G(0xff),G(0x12f),G(0x14a),G(0x11a),'node'],b=process[G(0xf3)][G(0x17c)](0x2),c=b[0x0],d=b[G(0x17c)](0x1);if(!a['includes'](c)){Log['error'](G(0x147));throw Log[G(0x17d)](G(0x178));}if(c===G(0x12a)){const f=this[G(0x121)]['findAppDirectory'](),g=this[G(0x141)][G(0x16a)]();if(!g)throw MustBeInProjectError;const h=a162e['join'](f,'mobile-config.js');let i=![];a162f[G(0x154)](h)&&(i=await Actions[G(0x180)](G(0x16c),![]));if(typeof f==='string'){const j=this[G(0x121)][G(0x149)](h);if(!j||i){const k=await Actions[G(0x12e)](G(0x16e)+g[G(0x138)]+']')||g[G(0x138)],l=a162f[G(0xfa)](h,{'flags':'w'});l['on'](G(0x155),function(){const H=G;l[H(0x179)]('//\x20For\x20more\x20information\x20on\x20mobile\x20config,\x20visit:\x0a'),l[H(0x179)](H(0x166)),l[H(0x179)](H(0xed)),l[H(0x179)](H(0x14c)+pascalCase(g['appName'])+H(0x144)),l[H(0x179)](H(0x10d)+k+'\x27,\x0a'),l[H(0x179)](H(0x105)),l['write'](H(0xf1)),l[H(0x183)]();}),l['on']('finish',function(){const I=G;Log[I(0xf2)](I(0x11e)+h);});}else Log['warn'](G(0x162));}if(d[0x0]==='ios'){const m=this['fsi'][G(0x167)]();if(typeof m===G(0x10a)){await this[G(0x125)](c,d);const n=a162e[G(0x15a)](m,G(0x115),G(0x16f),'local',G(0x110),G(0x17e),G(0xeb));if(n){const o=['ios-sim@latest',G(0xf9)];await this[G(0x13a)][G(0x11d)](o[G(0x15a)]('\x20'),{'cwd':f,'saveDev':!![],'msg':'Patching\x20ios-sim\x20and\x20cordova'}),Log['notice'](G(0x132));}}process[G(0x10b)](0x0);}}await this[G(0x125)](c,d),process[G(0x10b)](0x0);}catch(p){errorHandler(G(0x101),p),process[G(0x10b)](0x1);}}[a162w(0x172)](a){const J=a162w,b=process[J(0x12d)]==='win32',c=b?'meteor.bat':J(0x135);return a162e[J(0x15a)](homeDir,J(0x16f),'releases',a,J(0x16f),c);}[a162w(0x104)](a){const K=a162w,b=process[K(0x12d)]==='win32',c=a162e[K(0x15a)](homeDir,K(0x16f),K(0x114)),d=a162e[K(0x15a)](homeDir,K(0x16f),K(0x15e)),e=a162e[K(0x15a)](c,a,K(0x16f),b?K(0x160):K(0x135)),f=a162e[K(0x15a)](d,b?K(0x15c):K(0x135)),g=a162e[K(0x15a)](homeDir,K(0x16f),b?K(0x160):K(0x135));if(!a162f['existsSync'](e))throw new Error(K(0xf0)+a+K(0x10f)+e);a162f[K(0x173)](d,{'recursive':!![]});for(const h of[f,g]){try{a162f[K(0x154)](h)&&a162f['unlinkSync'](h);}catch(i){if(i['code']!==K(0x12c))Log['warn'](K(0x140)+h+':\x20'+i[K(0x103)]);}}if(b){const j=K(0xfd)+e+'\x22\x20%*\x0d\x0a';a162f[K(0x168)](f,j,{'mode':0x1ed}),a162f[K(0x168)](g,j,{'mode':0x1ed});}else a162f[K(0xf6)](e,f),a162f[K(0xf6)](e,g);this[K(0xfb)](a),Log['success'](K(0x14d)+a+K(0xec));}async[a162w(0x125)](a,b){const L=a162w;try{const c=this['fsi'][L(0x167)]();if(!c)throw new MustBeInProjectError();if(a===L(0x11c)){const f=b[L(0x13f)]('-p');f>0x0&&(b[f]='--port');const g=b['indexOf'](L(0x15f));if(f>0x0){let m=parseInt(b[f+0x1],0xa);m=await this[L(0x121)][L(0x159)](m),b[f+0x1]=m[L(0xee)]();}else{if(g>0x0){let n=parseInt(b[g+0x1],0xa);n=await this['fsi'][L(0x159)](n),b[g+0x1]=n['toString']();}else{let o=parseInt('3000',0xa);o=await this[L(0x121)][L(0x159)](o),b=b[L(0x126)]([L(0x15f),o[L(0xee)]()]);}}const h=b[L(0x13f)]('-r');h>0x0&&(b[h]=L(0x163));const i=b[L(0x13f)]('-i');i>0x0&&(b[i]='--inspect');const j=b[L(0x13f)]('-x');j>0x0&&(b[j]=L(0x14b));const k=b[L(0x13f)]('-m');k>0x0&&(b[k]=L(0x117));const l=b[L(0x13f)](L(0x143));l>0x0&&b[L(0x182)](l,0x1),process['env'][L(0x164)]&&!b['includes'](L(0x15f))&&(b=b['concat'](['--port',process[L(0x131)]['PORT']])),process[L(0x131)]['BIND_IP']&&!b[L(0x113)](L(0x15f))&&(b=b[L(0x126)](['--port',process[L(0x131)]['BIND_IP']]));}const d=[a]['concat'](b);if(this[L(0x13d)]()){const p=this[L(0x121)][L(0xf4)](),q=a162f[L(0x148)](a162e['join'](p,L(0x16f),L(0x161)),L(0x146))[L(0xef)](L(0x175),'')['trim'](),r=this['getMeteorReleaseVersion']();try{Log[L(0x15d)](L(0x181)+q),this['linkVersionAsCurrent'](q);}catch(s){Log[L(0x17d)](L(0x108)+q+L(0x112)+r+'.'),Log['notice']('Consider\x20updating\x20this\x20project,\x20or\x20installing\x20the\x20version\x20of\x20Meteor\x20using\x20\x27maka\x20install\x20meteor\x20--release\x20'+q+'\x27'),process[L(0x10b)](0x0);}}a===L(0xff)?execSync(this['meteor']+'\x20'+d['join']('\x20'),{'stdio':'inherit'}):execSync(this[L(0x135)]+'\x20'+d[L(0x15a)]('\x20'),{'stdio':'inherit','cwd':this[L(0x121)]['findAppDirectory']()});}catch(t){errorHandler(L(0x171),t),process['exit'](0x1);}}}
1
+ const a162x=a162d;(function(a,b){const u=a162d,c=a();while(!![]){try{const d=-parseInt(u(0x210))/0x1*(parseInt(u(0x1e8))/0x2)+-parseInt(u(0x188))/0x3*(parseInt(u(0x17d))/0x4)+parseInt(u(0x1a9))/0x5*(parseInt(u(0x1bc))/0x6)+-parseInt(u(0x17e))/0x7*(parseInt(u(0x1de))/0x8)+parseInt(u(0x1be))/0x9*(parseInt(u(0x1ae))/0xa)+-parseInt(u(0x185))/0xb*(-parseInt(u(0x1a6))/0xc)+parseInt(u(0x1e9))/0xd;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a162c,0x28556));const a162b=(function(){let a=!![];return function(b,c){const d=a?function(){const v=a162d;if(c){const e=c[v(0x209)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a162a=a162b(this,function(){const w=a162d;return a162a['toString']()['search']('(((.+)+)+)+$')[w(0x190)]()[w(0x192)](a162a)[w(0x1b4)](w(0x19f));});a162a();import a162e from'path';import a162f from'fs';import a162g from'os';function a162c(){const M=['7570nrqmGm','cfg','split','publish','\x27,\x0a','install-sdk','search','authorized','--raw-logs','\x09id:\x20\x27com.meteor.maka.','App.info({\x0a','Run\x20\x22maka\x20--help\x22\x20for\x20a\x20list\x20of\x20commands','meteor.bat','writeFileSync','6SXapLA','mkdirSync','1305oafwKt','open','run','--inspect','Meteor','A\x20mobile-config.js\x20file\x20already\x20exists,\x20overwrite?\x20[yN]','\x20in\x20','installNpmPackage','show','ENOENT','@echo\x20off\x0d\x0a\x22','ask','meteorRelease','error','\x20is\x20now\x20the\x20active\x20version','code','Cannot\x20link\x20Meteor\x20','exit','--ssl','METEOR@','maybeProxyCommandToMeteor()','fsi','build','npm','checkForMeteorVersionMismatch()','PORT','string','appName','Patching\x20ios-sim\x20and\x20cordova','win32','pkg','replace','8eXbLPP','dirname','notice','findAppDirectory','--mobile-server','update','add-platform','claim','--exclude-archs','write','2UxQHip','3710746NKSqVd','MAKA_DEV','configure-android','Don\x27t\x20forget\x20these\x20commands:\x20\x0a\x20sudo\x20xcode-select\x20-s\x20/Applications/Xcode.app/Contents/Developer\x20\x0a\x20sudo\x20gem\x20install\x20cocoapods\x20\x0a\x20sudo\x20xcodebuild\x20-license\x20accept\x20\x0a\x20brew\x20install\x20ios-deploy','meteor','getGlobalMeteorVersion','Could\x20not\x20remove\x20old\x20file\x20','whoami','homedir','inherit','warn','createWriteStream','bin','local','BIND_IP','findProjectDirectory','indexOf','Error\x20in\x20','getInstance','//\x20For\x20more\x20information\x20on\x20mobile\x20config,\x20visit:\x0a','trim','meteor.cmd','includes','success','statSync','App\x20name?\x20[','\x20--version','remove-platform','setMeteorReleaseVersion()','finish','existsSync','publish-for-arch','apply','invokeMeteorCommand()','True','list','Attempting\x20to\x20use\x20','list-platforms','admin','312313HcVtev','reset','getMakaProjectConfig','1856mHBOuJ','796523JnJUsQ','cordova-build','Meteor\x20release\x20version\x20set\x20to\x20','env','plugins','This\x20project\x27s\x20version\x20is\x20at\x20','list-sites','121WLfAqn','.meteor','symlinkSync','498FdXbiZ','remove','http://127.0.0.1:9999','ignore','invokeMeteorCommand','3000','platform','cordova-plugin-meteor-webapp','toString','readFileSync','constructor','join','--port','realpathSync','getMeteorReleaseVersion','checkForMeteorVersionMismatch','add','concat','Meteor\x20','setMeteorReleaseVersion',',\x20however\x20you\x20are\x20using\x20','node','test-packages','(((.+)+)+)+$','instance','slice','releases','app','mobile-config.js','utf8','284976zrVkXU','getAvailablePort','getMeteorExePath','59485qrFVNV','VERSION','shell','confirm','linkVersionAsCurrent'];a162c=function(){return M;};return a162c();}import{execSync}from'child_process';function a162d(a,b){const c=a162c();return a162d=function(d,e){d=d-0x17d;let f=c[d];return f;},a162d(a,b);}import{pascalCase}from'change-case';import{Log}from'../log/log.class.js';import{Actions}from'../actions/actions.class.js';import{MustBeInProjectError}from'../../error.js';const homeDir=a162g[a162x(0x1f1)](),errorHandler=(a,b)=>{const y=a162x;process[y(0x181)][y(0x1ea)]===y(0x20b)&&Log[y(0x1cb)](y(0x1fa)+a),b&&console['error'](b);};export class MPI{static [a162x(0x1a0)];[a162x(0x1d3)];[a162x(0x1af)];[a162x(0x1dc)];[a162x(0x1ed)];['meteorRelease'];constructor(a,b,c){const z=a162x;this[z(0x1d3)]=a,this[z(0x1af)]=b,this[z(0x1dc)]=c;const d=this[z(0x1a8)]();this[z(0x1ca)]=this[z(0x196)](),this[z(0x1ed)]=d;}static[a162x(0x1fb)](a,b,c){const A=a162x;return!MPI[A(0x1a0)]&&(MPI[A(0x1a0)]=new MPI(a,b,c)),MPI[A(0x1a0)];}['getMeteorExePath'](){const B=a162x,a=process['platform']===B(0x1db),b=a?B(0x1fe):B(0x1ed);return a162e[B(0x193)](homeDir,'.meteor',B(0x1f5),b);}['isMeteorInstalled'](){const C=a162x;try{const a=this[C(0x1a8)]();if(!a162f[C(0x207)](a))return![];const b=a162f['lstatSync'](a);if(b['isSymbolicLink']()){const c=a162f[C(0x195)](a);return a162f[C(0x207)](c)&&a162f[C(0x201)](c)['isFile']();}return b['isFile']();}catch(d){return![];}}[a162x(0x19b)](a){const D=a162x;try{const b=a162e[D(0x193)](homeDir,D(0x186),D(0x1aa)),c=a162e[D(0x1df)](b);!a162f[D(0x207)](c)&&a162f[D(0x1bd)](c,{'recursive':!![]}),a162f[D(0x1bb)](b,a,D(0x1a5)),Log[D(0x200)](D(0x180)+a+D(0x1c4)+b);}catch(d){errorHandler(D(0x205),d),process[D(0x1cf)](0x1);}}[a162x(0x196)](){const E=a162x;try{const a=a162e[E(0x193)](homeDir,E(0x186),E(0x1aa));if(a162f[E(0x207)](a)){const b=a162f[E(0x191)](a,E(0x1a5))[E(0x1fd)]();return b;}else return null;}catch(c){return errorHandler('getMeteorReleaseVersion()',c),null;}}async[a162x(0x1ee)](){const F=a162x;let a=this[F(0x196)]()||'0.0.0';try{a=execSync(this['meteor']+F(0x203),{'stdio':F(0x18b),'cwd':this[F(0x1d3)][F(0x1e1)](),'env':{...process[F(0x181)],'HTTP_PROXY':F(0x18a),'HTTPS_PROXY':F(0x18a)}})[F(0x190)]()['replace'](F(0x1c2),'')[F(0x1fd)]();}catch(c){}const b=a[F(0x1b0)]('.')['length'];return b<0x3&&(a=a+'.0'),a;}[a162x(0x197)](){const G=a162x;try{const a=this[G(0x1d3)][G(0x1e1)](),b=a162e[G(0x193)](a,'.meteor','release');if(!a162f[G(0x207)](b))return![];const c=a162f[G(0x191)](b,G(0x1a5))[G(0x1fd)](),d=this[G(0x196)]();return c!==d;}catch(f){return errorHandler(G(0x1d6),f),![];}}async['maybeProxyCommandToMeteor'](){const H=a162x;try{const a=['open',H(0x1d5),H(0x1c0),H(0x1e3),H(0x198),H(0x189),H(0x20c),H(0x1e4),H(0x1b3),H(0x204),H(0x20e),H(0x1eb),H(0x1d4),H(0x1ab),'mongo',H(0x211),'logs',H(0x1b5),H(0x1e5),'login','logout',H(0x1f0),H(0x19e),H(0x20f),H(0x184),'publish-release',H(0x1b1),H(0x208),'search',H(0x1c6),H(0x19d)],b=process['argv'][H(0x1a1)](0x2),c=b[0x0],d=b[H(0x1a1)](0x1);if(!a[H(0x1ff)](c)){Log[H(0x1cb)]('Command\x20not\x20found');throw Log[H(0x1cb)](H(0x1b9));}if(c===H(0x1e4)){const f=this[H(0x1d3)][H(0x1e1)](),g=this[H(0x1af)][H(0x212)]();if(!g)throw MustBeInProjectError;const h=a162e[H(0x193)](f,H(0x1a4));let i=![];a162f[H(0x207)](h)&&(i=await Actions[H(0x1ac)](H(0x1c3),![]));if(typeof f===H(0x1d8)){const j=this[H(0x1d3)]['isFile'](h);if(!j||i){const k=await Actions[H(0x1c9)](H(0x202)+g[H(0x1d9)]+']')||g[H(0x1d9)],l=a162f[H(0x1f4)](h,{'flags':'w'});l['on'](H(0x1bf),function(){const I=H;l[I(0x1e7)](I(0x1fc)),l[I(0x1e7)]('//\x20https://docs.meteor.com/api/mobile-config.html\x0a'),l[I(0x1e7)](I(0x1b8)),l[I(0x1e7)](I(0x1b7)+pascalCase(g[I(0x1d9)])+I(0x1b2)),l[I(0x1e7)]('\x09name:\x20\x27'+k+I(0x1b2)),l['write']('\x09version:\x20\x270.0.1\x27,\x0a'),l[I(0x1e7)]('});\x0a'),l['end']();}),l['on'](H(0x206),function(){Log['success']('Mobile\x20app\x20configuration\x20written\x20to\x20'+h);});}else Log['warn']('A\x20mobile-config.js\x20already\x20exists,\x20not\x20over\x20writing');}if(d[0x0]==='ios'){const m=this[H(0x1d3)][H(0x1f8)]();if(typeof m==='string'){await this[H(0x18c)](c,d);const n=a162e['join'](m,H(0x1a3),'.meteor',H(0x1f6),H(0x17f),H(0x182),H(0x18f));if(n){const o=['ios-sim@latest','cordova@latest'];await this[H(0x1dc)][H(0x1c5)](o[H(0x193)]('\x20'),{'cwd':f,'saveDev':!![],'msg':H(0x1da)}),Log[H(0x1e0)](H(0x1ec));}}process[H(0x1cf)](0x0);}}await this[H(0x18c)](c,d),process[H(0x1cf)](0x0);}catch(p){errorHandler(H(0x1d2),p),process['exit'](0x1);}}['getInstalledMeteorVersion'](a){const J=a162x,b=process[J(0x18e)]===J(0x1db),c=b?J(0x1ba):J(0x1ed);return a162e['join'](homeDir,J(0x186),'releases',a,J(0x186),c);}[a162x(0x1ad)](a){const K=a162x,b=process[K(0x18e)]===K(0x1db),c=a162e['join'](homeDir,K(0x186),K(0x1a2)),d=a162e[K(0x193)](homeDir,K(0x186),K(0x1f5)),e=a162e[K(0x193)](c,a,'.meteor',b?K(0x1ba):K(0x1ed)),f=a162e[K(0x193)](d,b?K(0x1fe):'meteor'),g=a162e[K(0x193)](homeDir,K(0x186),b?K(0x1ba):K(0x1ed));if(!a162f['existsSync'](e))throw new Error(K(0x1ce)+a+':\x20Target\x20binary\x20not\x20found\x20at\x20'+e);a162f[K(0x1bd)](d,{'recursive':!![]});for(const h of[f,g]){try{a162f[K(0x207)](h)&&a162f['unlinkSync'](h);}catch(i){if(i[K(0x1cd)]!==K(0x1c7))Log[K(0x1f3)](K(0x1ef)+h+':\x20'+i['message']);}}if(b){const j=K(0x1c8)+e+'\x22\x20%*\x0d\x0a';a162f[K(0x1bb)](f,j,{'mode':0x1ed}),a162f[K(0x1bb)](g,j,{'mode':0x1ed});}else a162f[K(0x187)](e,f),a162f[K(0x187)](e,g);this[K(0x19b)](a),Log['success'](K(0x19a)+a+K(0x1cc));}async[a162x(0x18c)](a,b){const L=a162x;try{const c=this['fsi'][L(0x1f8)]();if(!c)throw new MustBeInProjectError();if(a===L(0x1c0)){const f=b[L(0x1f9)]('-p');f>0x0&&(b[f]=L(0x194));const g=b['indexOf']('--port');if(f>0x0){let m=parseInt(b[f+0x1],0xa);m=await this[L(0x1d3)][L(0x1a7)](m),b[f+0x1]=m['toString']();}else{if(g>0x0){let n=parseInt(b[g+0x1],0xa);n=await this['fsi'][L(0x1a7)](n),b[g+0x1]=n[L(0x190)]();}else{let o=parseInt(L(0x18d),0xa);o=await this['fsi'][L(0x1a7)](o),b=b[L(0x199)](['--port',o[L(0x190)]()]);}}const h=b['indexOf']('-r');h>0x0&&(b[h]=L(0x1b6));const i=b['indexOf']('-i');i>0x0&&(b[i]=L(0x1c1));const j=b['indexOf']('-x');j>0x0&&(b[j]=L(0x1e6));const k=b[L(0x1f9)]('-m');k>0x0&&(b[k]=L(0x1e2));const l=b[L(0x1f9)](L(0x1d0));l>0x0&&b['splice'](l,0x1),process[L(0x181)][L(0x1d7)]&&!b['includes']('--port')&&(b=b[L(0x199)]([L(0x194),process[L(0x181)]['PORT']])),process[L(0x181)][L(0x1f7)]&&!b[L(0x1ff)](L(0x194))&&(b=b['concat']([L(0x194),process[L(0x181)][L(0x1f7)]]));}const d=[a][L(0x199)](b);if(this[L(0x197)]()){const p=this['fsi']['findAppDirectory'](),q=a162f[L(0x191)](a162e[L(0x193)](p,L(0x186),'release'),L(0x1a5))[L(0x1dd)](L(0x1d1),'')[L(0x1fd)](),r=this[L(0x196)]();try{Log[L(0x1e0)](L(0x20d)+q),this[L(0x1ad)](q);}catch(s){Log['error'](L(0x183)+q+L(0x19c)+r+'.'),Log[L(0x1e0)]('Consider\x20updating\x20this\x20project,\x20or\x20installing\x20the\x20version\x20of\x20Meteor\x20using\x20\x27maka\x20install\x20meteor\x20--release\x20'+q+'\x27'),process[L(0x1cf)](0x0);}}a===L(0x1b1)?execSync(this['meteor']+'\x20'+d[L(0x193)]('\x20'),{'stdio':L(0x1f2)}):execSync(this[L(0x1ed)]+'\x20'+d[L(0x193)]('\x20'),{'stdio':L(0x1f2),'cwd':this[L(0x1d3)][L(0x1e1)]()});}catch(t){errorHandler(L(0x20a),t),process[L(0x1cf)](0x1);}}}