@maka/maka-cli 5.0.11 → 5.0.12
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.
- package/bundle/obf/package.json +1 -1
- package/bundle/obf/src/command.js +1 -1
- package/bundle/obf/src/commands/_index.js +1 -1
- package/bundle/obf/src/commands/ai.js +1 -1
- package/bundle/obf/src/commands/aws/_index.js +1 -1
- package/bundle/obf/src/commands/aws/aws.command.js +1 -1
- package/bundle/obf/src/commands/aws/cecr.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/chz.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/decr.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/lecr.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/build/_index.js +1 -1
- package/bundle/obf/src/commands/build/build.js +1 -1
- package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/create.js +1 -1
- package/bundle/obf/src/commands/debug.js +1 -1
- package/bundle/obf/src/commands/deploy/_index.js +1 -1
- package/bundle/obf/src/commands/deploy/deploy.command.js +1 -1
- package/bundle/obf/src/commands/deploy/galaxy.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/deploy/ubuntu.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/_index.js +1 -1
- package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/play.command.js +1 -1
- package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/generate.js +1 -1
- package/bundle/obf/src/commands/get/_index.js +1 -1
- package/bundle/obf/src/commands/get/get.command.js +1 -1
- package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/help.js +1 -1
- package/bundle/obf/src/commands/install.js +1 -1
- package/bundle/obf/src/commands/jsdoc.js +1 -1
- package/bundle/obf/src/commands/lint.js +1 -1
- package/bundle/obf/src/commands/login.js +1 -1
- package/bundle/obf/src/commands/logout.js +1 -1
- package/bundle/obf/src/commands/logs.js +1 -1
- package/bundle/obf/src/commands/maka.cmd.js +1 -1
- package/bundle/obf/src/commands/murder.js +1 -1
- package/bundle/obf/src/commands/patreon.js +1 -1
- package/bundle/obf/src/commands/profile.js +1 -1
- package/bundle/obf/src/commands/proxy.js +1 -1
- package/bundle/obf/src/commands/reconfig.js +1 -1
- package/bundle/obf/src/commands/register.js +1 -1
- package/bundle/obf/src/commands/run/_index.js +1 -1
- package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/run/run.command.js +1 -1
- package/bundle/obf/src/commands/set/_index.js +1 -1
- package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/set.command.js +1 -1
- package/bundle/obf/src/commands/ssh.js +1 -1
- package/bundle/obf/src/commands/ssl.js +1 -1
- package/bundle/obf/src/commands/test.js +1 -1
- package/bundle/obf/src/commands/undo.js +1 -1
- package/bundle/obf/src/commands/version.js +1 -1
- package/bundle/obf/src/error.js +1 -1
- package/bundle/obf/src/exec.js +1 -1
- package/bundle/obf/src/generator.js +1 -1
- package/bundle/obf/src/generators/_index.js +1 -1
- package/bundle/obf/src/generators/api.js +1 -1
- package/bundle/obf/src/generators/aws/_index.js +1 -1
- package/bundle/obf/src/generators/aws/aws.js +1 -1
- package/bundle/obf/src/generators/aws/cloudformation/_index.js +1 -1
- package/bundle/obf/src/generators/aws/cloudformation/cloudformation.js +1 -1
- package/bundle/obf/src/generators/aws/cloudformation/create-ec2-instance.cf.gen.js +1 -1
- package/bundle/obf/src/generators/collection.js +1 -1
- package/bundle/obf/src/generators/component.js +1 -1
- package/bundle/obf/src/generators/config.js +1 -1
- package/bundle/obf/src/generators/dbc.js +1 -1
- package/bundle/obf/src/generators/dockerfile.js +1 -1
- package/bundle/obf/src/generators/hook.js +1 -1
- package/bundle/obf/src/generators/kits/_index.js +1 -1
- package/bundle/obf/src/generators/kits/auth/_index.js +1 -1
- package/bundle/obf/src/generators/kits/auth/auth.generator.js +1 -1
- package/bundle/obf/src/generators/kits/auth/basic-meteor.auth.gen.js +1 -1
- package/bundle/obf/src/generators/kits/auth/provider.auth.gen.js +1 -1
- package/bundle/obf/src/generators/kits/esri/_index.js +1 -1
- package/bundle/obf/src/generators/kits/esri/esri.generator.js +1 -1
- package/bundle/obf/src/generators/kits/esri/map.esri.gen.js +1 -1
- package/bundle/obf/src/generators/kits/kit.js +1 -1
- package/bundle/obf/src/generators/kits/mui/_index.js +1 -1
- package/bundle/obf/src/generators/kits/mui/auth.mui.gen.js +1 -1
- package/bundle/obf/src/generators/kits/mui/frame.mui.gen.js +1 -1
- package/bundle/obf/src/generators/kits/mui/mui.generator.js +1 -1
- package/bundle/obf/src/generators/layout.js +1 -1
- package/bundle/obf/src/generators/maka.gen.js +1 -1
- package/bundle/obf/src/generators/methods.js +1 -1
- package/bundle/obf/src/generators/package.js +1 -1
- package/bundle/obf/src/generators/page.js +1 -1
- package/bundle/obf/src/generators/publish.js +1 -1
- package/bundle/obf/src/generators/route.js +1 -1
- package/bundle/obf/src/generators/service.js +1 -1
- package/bundle/obf/src/generators/services/_index.js +1 -1
- package/bundle/obf/src/generators/services/openssl.js +1 -1
- package/bundle/obf/src/generators/services/translation.js +1 -1
- package/bundle/obf/src/maka.js +1 -1
- package/bundle/obf/src/tool.js +1 -1
- package/bundle/obf/src/tools/actions/actions.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
- package/bundle/obf/src/tools/docker/docker.class.js +1 -1
- package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
- package/bundle/obf/src/tools/https/https.class.js +1 -1
- package/bundle/obf/src/tools/https/https.interface.js +1 -1
- package/bundle/obf/src/tools/log/log.class.js +1 -1
- package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
- package/bundle/obf/src/tools/options/options.class.js +1 -1
- package/bundle/obf/src/tools/progress/progress.class.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a133m=a133d;(function(a,b){const j=a133d,c=a();while(!![]){try{const d=-parseInt(j(0x19e))/0x1+parseInt(j(0x19d))/0x2+parseInt(j(0x198))/0x3*(-parseInt(j(0x1b3))/0x4)+-parseInt(j(0x1b2))/0x5*(-parseInt(j(0x1ae))/0x6)+parseInt(j(0x1a5))/0x7+-parseInt(j(0x1a1))/0x8*(parseInt(j(0x1ac))/0x9)+parseInt(j(0x19b))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a133c,0x59201));function a133c(){const p=['504870jaoiAH','12RSgFoa','maka:check','startup','ddp-rate-limiter','constructor','getMakaProjectConfig','import\x20\x27./methods','tsx','method/method.js','template','apply','113343RYtHws','method','Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','2033600XiIOWn','dir','938542slrtKp','456913pIyiGT','appPathPrefix','error','517368yNCNzW','-rpc-method.','search','maka\x20{generate,\x20g}:{method,\x20m}\x20name','623714QEGwWn','resourceName','fsi','toString','pathFromApp','checkMeteorPackage','index.','18tBYinc','imports','18gEmJmp','-rpc-method\x27;','engines','mdg:validated-method'];a133c=function(){return p;};return a133c();}const a133b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a133d;if(c){const e=c[k(0x197)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a133a=a133b(this,function(){const l=a133d;return a133a['toString']()[l(0x1a3)]('(((.+)+)+)+$')[l(0x1a8)]()[l(0x191)](a133a)[l(0x1a3)]('(((.+)+)+)+$');});a133a();function a133d(a,b){const c=a133c();return a133d=function(d,e){d=d-0x18f;let f=c[d];return f;},a133d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator['create']({'name':a133m(0x199),'aliases':['m'],'usage':a133m(0x1a4),'checkWhere':!![],'shortDesc':a133m(0x19a),'validOpts':['dir'],'examples':['maka\x20g:method\x20todos']},async function(a,b){const n=a133m;try{const c=this[n(0x1a7)][n(0x192)]();await this[n(0x1a7)]['withValue'](c,async()=>{const o=n,d=paramCase(b['resourceName']),f={'name':b[o(0x1a6)],'fileName':d,'className':pascalCase(b['resourceName']),'camelCase':camelCase(b[o(0x1a6)]),'noRename':!![]};let g='js';c[o(0x1b0)]['js']===o(0x194)&&(g='ts');await this['fsi'][o(0x1aa)]([o(0x1b4),o(0x190),o(0x1b1)],{'shouldInstall':!![]}),await this[o(0x1a7)][o(0x196)]({'srcPath':o(0x195),'destPath':this[o(0x1a7)][o(0x1a9)]({'pathParts':[o(0x1ad),o(0x18f),b[o(0x19f)],'methods',b[o(0x19c)],d+o(0x1a2)+g]}),'context':f,'config':c});const h=b[o(0x19c)]?'/'+b['dir']+'/':'/',i=this[o(0x1a7)][o(0x1a9)]({'pathParts':[o(0x1ad),o(0x18f),b['appPathPrefix'],o(0x1ab)+c[o(0x1b0)]['js']]});await this[o(0x1a7)]['injectAtEndOfFile']({'filePath':i,'content':o(0x193)+h+d+o(0x1af)});});}catch(d){Log[n(0x1a0)](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a134o=a134d;(function(a,b){const l=a134d,c=a();while(!![]){try{const d
|
|
1
|
+
function a134d(a,b){const c=a134c();return a134d=function(d,e){d=d-0x78;let f=c[d];return f;},a134d(a,b);}const a134o=a134d;(function(a,b){const l=a134d,c=a();while(!![]){try{const d=-parseInt(l(0x91))/0x1+-parseInt(l(0xa2))/0x2+-parseInt(l(0x9c))/0x3+parseInt(l(0x81))/0x4+parseInt(l(0x8b))/0x5+parseInt(l(0x97))/0x6+parseInt(l(0x8a))/0x7*(parseInt(l(0x82))/0x8);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a134c,0x34d01));const a134b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a134d;if(c){const e=c[m(0x94)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a134a=a134b(this,function(){const n=a134d;return a134a[n(0x85)]()[n(0xa4)](n(0x93))[n(0x85)]()[n(0xa3)](a134a)['search'](n(0x93));});a134a();import a134e from'path';import{Generator}from'../generator.js';function a134c(){const r=['367582KtDSSr','constructor','search','dir','package.js','package','store','server','ssr','/package.js','pathFromAppWithNoReWrite','engines','1339112yXeTrC','8zalRQa','create','graphql','toString','theme','package/package.js','template','.js','87332GehPhX','1517730bZMWYy','fsi','noRename','maka\x20g:package\x20todos:package','hasOwnProperty','tests/server','325682vctVuP','relative','(((.+)+)+)+$','apply','pathFromProject','resourceName','1348596pLHEuR','lib','Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','getMakaProjectConfig','maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','449316mJsyxj','client','tests/client','template/template.js','packages','features'];a134c=function(){return r;};return a134c();}import{camelCase,paramCase,pascalCase}from'change-case';Generator[a134o(0x83)]({'name':a134o(0x7a),'aliases':['p'],'usage':a134o(0x9b),'shortDesc':a134o(0x99),'validOpts':['dir'],'examples':[a134o(0x8e)]},async function(a,b){const p=a134o,c=paramCase(b[p(0x96)]),d=this[p(0x8c)]['pathFromApp']({'pathParts':[p(0xa0),b[p(0x78)],c]}),e=this[p(0x8c)][p(0x7f)]({'pathParts':[p(0xa0),b[p(0x78)],c,p(0x79)]}),f=this[p(0x8c)][p(0x9a)]();await this[p(0x8c)]['withValue'](f,async()=>{const q=p,g={'name':paramCase(b[q(0x96)]),'myPath':a134e[q(0x92)](this['fsi'][q(0x95)]({}),d),'cssCaseName':paramCase(b['resourceName']),'className':pascalCase(b[q(0x96)]),'camelCaseName':camelCase(b['resourceName']),'fileName':c,'client':f['engines'][q(0x9d)],'graphql':f[q(0x80)][q(0x84)],'ssr':f[q(0x80)][q(0x7d)],'isComponent':b[q(0x8f)]('component'),'isLayout':b[q(0x8f)]('layout'),'isStore':b[q(0x8f)](q(0x7b)),'features':f[q(0xa1)],'noRename':!![],'theme':f[q(0x80)][q(0x86)]};await this['fsi'][q(0x88)]({'srcPath':q(0x87),'destPath':e,'context':g,'config':f}),g[q(0x8d)]=![];const h=d+'/client/'+c+q(0x89);await this[q(0x8c)][q(0x88)]({'srcPath':q(0x9f),'destPath':h,'context':g,'config':f});const i=[q(0x98),q(0x7c),q(0x9e),q(0x90)];for(const j of i){const k=d+'/'+j+'/'+c+q(0x89);await this['fsi'][q(0x88)]({'srcPath':'package/'+j+q(0x7e),'destPath':k,'context':g,'config':f});}});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a135u=a135d;
|
|
1
|
+
const a135u=a135d;(function(a,b){const r=a135d,c=a();while(!![]){try{const d=-parseInt(r(0xd5))/0x1+parseInt(r(0xbd))/0x2+-parseInt(r(0xfa))/0x3*(-parseInt(r(0xdd))/0x4)+-parseInt(r(0xb0))/0x5*(-parseInt(r(0xcf))/0x6)+parseInt(r(0xe2))/0x7+-parseInt(r(0xf9))/0x8*(parseInt(r(0xfd))/0x9)+parseInt(r(0xbe))/0xa*(-parseInt(r(0xc2))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a135c,0x30ce2));const a135b=(function(){let a=!![];return function(b,c){const d=a?function(){const s=a135d;if(c){const e=c[s(0xee)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a135a=a135b(this,function(){const t=a135d;return a135a[t(0xdc)]()[t(0xb5)](t(0xae))[t(0xdc)]()[t(0xb4)](a135a)['search'](t(0xae));});function a135d(a,b){const c=a135c();return a135d=function(d,e){d=d-0xac;let f=c[d];return f;},a135d(a,b);}a135a();import a135e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';function a135c(){const x=['2464882cpTElJ','/imports/ui/pages','includes','findAppDirectory','string','template/template.css','split','installNpmPackage','withValue','withTranslations','test','hook/hook.js','apply','Updating\x20npm\x20packages\x20...','trim','\x22\x20element={<Component.','pathFromProject','component','/>}/>\x0a','create','startup','withHooks','</Route>','4504RXNcxI','549828eKyrHw','lib','injectAtBeginningOfFile','3897PNvZqx','routes.','api','url','<Route\x20path=\x22','setTemplate','.js','ramda','features','(((.+)+)+)+$','<Route\x20element={<PrivateRoute\x20/>}>','1110TGYyNA','ssr','client','html','constructor','search','import\x20\x27./','maka\x20g:page\x20todos/todos-item','resourceName','dir','store','assign','.css','446760jASMCH','2892970kIfUWK','template','replaceAll','fsi','11jRYBRC','layout','maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','toLowerCase','<Route\x20path=\x22*\x22','checkNpmPackage','injectIntoFile','react','Generate\x20a\x20page.','slice','error','getMakaProjectConfig','substring','3534nzOidl','fileName','private','indexOf','hasOwnProperty','replace','156558MIehfB','\x27;\x0a','none','pathFromApp','true','.app-tests.js','css','toString','4XuMHNm','theme','<Route\x20index','engines','vanilla'];a135c=function(){return x;};return a135c();}import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['p'];Generator[a135u(0xf5)]({'name':'page','aliases':aliases,'usage':a135u(0xc4),'shortDesc':a135u(0xca),'validOpts':[{'name':a135u(0xd1),'boolFlag':!![]},{'name':a135u(0x100)}],'examples':[a135u(0xb7)]},async function(a,b){const v=a135u,c=v(0xe3),d=this['fsi'][v(0xe5)](),e=b[v(0xb8)][v(0xe4)](':')?b[v(0xb8)][v(0xe8)](':')[0x0][v(0xf0)]():b['resourceName']['trim'](),f=b[v(0xb9)]['replaceAll']('/','_')+'_'+e[v(0xc0)]('/','_'),g=this[v(0xc1)][v(0xd8)]({'pathParts':[c,b[v(0xb9)],paramCase(f),paramCase(f)]}),h=this['fsi'][v(0xcd)]();let i='';return await this[v(0xc1)][v(0xea)](h,async()=>{const w=v;typeof h[w(0xbf)][w(0xb3)]===w(0xe6)&&(h[w(0xbf)][w(0xb3)]=h['template'][w(0xb3)]===w(0xd9)?!![]:![],this['fsi'][w(0x102)](w(0xb3),h[w(0xbf)][w(0xb3)]));typeof h[w(0xbf)]['test']===w(0xe6)&&(h[w(0xbf)][w(0xec)]=h[w(0xbf)][w(0xec)]==='true'?!![]:![],this['fsi'][w(0x102)](w(0xec),h[w(0xbf)][w(0xec)]));typeof h[w(0xbf)][w(0xdb)]==='string'&&(h[w(0xbf)][w(0xdb)]=h[w(0xbf)][w(0xdb)]===w(0xd9)?!![]:![],this['fsi'][w(0x102)](w(0xdb),h[w(0xbf)]['css']));typeof h[w(0xbf)]['js']==='string'&&(h[w(0xbf)]['js']=h[w(0xbf)]['js']===w(0xd9)?!![]:![],this[w(0xc1)][w(0x102)]('js',h[w(0xbf)]['js']));!h['features']&&(h[w(0xad)]={});!b['root']&&!this[w(0xc1)][w(0xc7)]('ramda')&&(Log['warn'](w(0xef)),this[w(0xc1)][w(0xe9)](w(0xac),{'cwd':d}));const j={'name':pascalCase(f),'myPath':a135e['relative'](this['fsi'][w(0xf2)]({}),g),'cssCaseName':paramCase(f),'className':pascalCase(f),'camelCaseName':camelCase(f),'fileName':paramCase(f),'graphql':h[w(0xe0)]['graphql'],'features':h['features'],'client':h[w(0xe0)][w(0xb2)],'api':h[w(0xe0)][w(0xff)],'ssr':h[w(0xe0)][w(0xb1)],'isStore':b[w(0xd3)](w(0xba)),'isComponent':b[w(0xd3)](w(0xf3)),'isLayout':b[w(0xd3)](w(0xc3)),'withTranslations':h['features'][w(0xeb)],'test':h[w(0xe0)][w(0xec)],'theme':h['engines'][w(0xde)]};h[w(0xbf)][w(0xb3)]&&await this[w(0xc1)][w(0xbf)]({'srcPath':'template/template.html','destPath':g+'.html','context':j,'config':h});h[w(0xad)]?.[w(0xf7)]?await this[w(0xc1)][w(0xbf)]({'srcPath':w(0xed),'destPath':g+w(0x103),'framework':w(0xc9),'context':j,'config':h}):await this['fsi'][w(0xbf)]({'srcPath':'component/component.js','destPath':g+'.js','framework':w(0xc9),'context':j,'config':h});h['engines'][w(0xec)]!==w(0xd7)&&await this[w(0xc1)][w(0xbf)]({'srcPath':'test/test.js','destPath':g+w(0xda),'framework':w(0xc9),'context':j,'config':h});h[w(0xbf)][w(0xdb)]&&await this['fsi']['template']({'srcPath':w(0xe7),'destPath':g+w(0xbc),'context':Object[w(0xbb)]({},j,{'className':paramCase(b[w(0xb8)])}),'config':h});h[w(0xe0)][w(0xb2)]!==w(0xc9)&&h[w(0xe0)][w(0xb2)]!==w(0xe1)?(h[w(0xbf)][w(0xdb)]&&await this[w(0xc1)][w(0xfc)]({'filePath':g+'.'+h['engines']['js'],'content':w(0xb6)+j[w(0xd0)]+'.'+h[w(0xe0)][w(0xb3)]+w(0xd6)+w(0xb6)+j[w(0xd0)]+'.'+h[w(0xe0)]['css']+'\x27;'}),!h[w(0xbf)][w(0xdb)]&&await this['fsi'][w(0xfc)]({'filePath':g+'.'+h['engines']['js'],'content':'import\x20\x27./'+j[w(0xd0)]+'.'+h['engines']['html']+'\x27;'})):h[w(0xbf)][w(0xdb)]&&await this[w(0xc1)]['injectAtBeginningOfFile']({'filePath':g+'.'+h[w(0xe0)]['js'],'content':w(0xb6)+j[w(0xd0)]+'.'+h['engines'][w(0xdb)]+'\x27;'});const k=b['dir']?'/'+b[w(0xb9)]+'/':'/';i=''+c+k+j[w(0xd0)]+'/'+j[w(0xd0)],await this[w(0xc1)]['injectTemplateModule'](j['className'],h,i);if(!b['root']){const l=b['private']??![];if(!f){Log[w(0xcc)]('Please\x20specify\x20a\x20name\x20for\x20the\x20route.');throw new UsageError();}let m=b[w(0x100)]?b['url']:'/'+b[w(0xb9)][w(0xf0)]()+'/'+b[w(0xb8)]['trim']()[w(0xd4)](/\\/g,'/')['replace'](/\/+$/,'')[w(0xc5)]();const n=b['resourceName'][w(0xd2)](':');n!==-0x1&&(m+='/'+b[w(0xb8)][w(0xce)](0x0,n)['trim']());m['endsWith']('/')&&(m=m[w(0xcb)](0x0,-0x1));m=m[w(0xd4)](/\/\//g,'/');const o=h[w(0xe0)]['js'],p=h[w(0xe0)][w(0xb1)]===w(0xd9)?w(0xfb):w(0xb2),q=a135e['join'](d,'imports',w(0xf6),p,w(0xfe)+o);l?await this['fsi'][w(0xc8)]({'filePath':q,'content':w(0x101)+m+'\x22\x20element={<Component.'+pascalCase(f)+w(0xf4),'begin':[w(0xaf)],'end':[w(0xf8)]}):await this[w(0xc1)][w(0xc8)]({'filePath':q,'content':w(0x101)+m+w(0xf1)+pascalCase(f)+w(0xf4),'begin':[w(0xdf)],'end':[w(0xc6)]});}}),i+'.'+h[v(0xe0)]['js'];});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a136p=a136d;(function(a,b){const m=a136d,c=a();while(!![]){try{const d
|
|
1
|
+
const a136p=a136d;(function(a,b){const m=a136d,c=a();while(!![]){try{const d=-parseInt(m(0x78))/0x1+parseInt(m(0x7c))/0x2+parseInt(m(0x84))/0x3*(parseInt(m(0x85))/0x4)+-parseInt(m(0x81))/0x5*(-parseInt(m(0x8b))/0x6)+-parseInt(m(0x7b))/0x7+-parseInt(m(0x7d))/0x8+parseInt(m(0x80))/0x9*(parseInt(m(0x7a))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a136c,0x75488));const a136b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a136d;if(c){const e=c[n(0x95)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a136a=a136b(this,function(){const o=a136d;return a136a[o(0x8d)]()[o(0x87)](o(0x77))[o(0x8d)]()[o(0x86)](a136a)[o(0x87)](o(0x77));});a136a();import{paramCase,pascalCase}from'change-case';function a136d(a,b){const c=a136c();return a136d=function(d,e){d=d-0x77;let f=c[d];return f;},a136d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator['create']({'name':'publish','aliases':['p'],'usage':'maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','shortDesc':'Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','validOpts':[a136p(0x92),'globalPublish'],'examples':[a136p(0x93)]},async function(a,b){const q=a136p;try{const c=b[q(0x92)]||![],d=b[q(0x89)]?'/imports/ui/'+b[q(0x89)]:q(0x79),f=this[q(0x88)]['getMakaProjectConfig'](),g=paramCase(b[q(0x90)]),h=this['fsi'][q(0x8e)]({'pathParts':[d,b[q(0x82)],'',g]});let i='js';f[q(0x7f)]['js']==='tsx'&&(i='ts');await this[q(0x88)]['withValue'](f,async()=>{const r=q,l={'name':b[r(0x90)],'collection':pascalCase(b[r(0x90)]),'noRename':!![],'globalPublish':b[r(0x91)]};await this[r(0x88)][r(0x83)]({'srcPath':'publish/publish.js','destPath':h+'.'+i,'context':l,'config':f,'force':c});});const j=this[q(0x88)][q(0x8e)]({'pathParts':[q(0x94),q(0x7e),'server',b['appPathPrefix'],q(0x8f)+f['engines']['js']]}),k=b[q(0x82)]?'/'+b['dir']+'/':'/';return await this[q(0x88)][q(0x8c)]({'filePath':j,'content':'import\x20\x27./publications'+k+g+'\x27;'}),h+'.'+i;}catch(l){Log['error'](l),process[q(0x8a)](0x1);}});function a136c(){const s=['1972041InCODV','4vyqvnZ','constructor','search','fsi','baseDir','exit','12VPgsfx','injectAtEndOfFile','toString','pathFromApp','index.','resourceName','globalPublish','force','maka\x20g:publish\x20todos','imports','apply','(((.+)+)+)+$','824691dappOS','/imports/startup/server/publications','4926010CzJSUb','4161031DQOURP','1169158uFjUti','5500200yjFcbR','startup','engines','9hioLiX','2131285dANbyH','dir','template'];a136c=function(){return s;};return a136c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a137o=a137d;(function(a,b){const m=a137d,c=a();while(!![]){try{const d=-parseInt(m(0x8a))/0x1+parseInt(m(0x83))/0x2*(-parseInt(m(0x8b))/0x3)+-parseInt(m(0x72))/0x4+parseInt(m(0x70))/0x5+parseInt(m(0x7b))/0x6+-parseInt(m(0x73))/0x7+parseInt(m(0x78))/0x8*(parseInt(m(0x86))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a137c,0x794ff));const a137b=(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;};}()),a137a=a137b(this,function(){const n=a137d;return a137a[n(0x76)]()['search']('(((.+)+)+)+$')[n(0x76)]()[n(0x6f)](a137a)[n(0x74)](n(0x7e));});a137a();import a137e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';import{pascalCase}from'change-case';const aliases=['r'];function a137d(a,b){const c=a137c();return a137d=function(d,e){d=d-0x68;let f=c[d];return f;},a137d(a,b);}Generator[a137o(0x71)]({'name':a137o(0x81),'mustBeInMakaProject':!![],'aliases':aliases,'validOpts':[{'name':a137o(0x87),'boolFlag':!![]},{'name':'route'}],'usage':'maka\x20{generate,\x20g}:{route,\x20r}','shortDesc':a137o(0x84),'examples':[]},async function(a,b){const p=a137o;try{const c=this[p(0x6c)][p(0x6d)](),d=this[p(0x6c)][p(0x6e)]();await this[p(0x6c)]['withValue'](c,async()=>{const q=p,f=b[q(0x87)]??![];let g=b[q(0x7a)][q(0x79)]('/')[q(0x7d)]();if(!g){Log[q(0x69)]('Please\x20specify\x20a\x20name\x20for\x20the\x20route.');throw new UsageError();}g=pascalCase(g);let h=b[q(0x81)]?'/'+b[q(0x81)]:'/'+b[q(0x7a)][q(0x77)](/\\/g,'/')['toLowerCase']();a[q(0x8c)]>0x1&&(h='/'+a['filter'](function(l){return l!=='/';})[q(0x82)]('/')['toLowerCase']());h=h['replace'](/\/\//g,'/');const i=c[q(0x85)]['js'],j=c[q(0x88)]?q(0x89):'client',k=a137e[q(0x82)](d,q(0x80),q(0x6a),j,'routes.'+i);f?await this[q(0x6c)][q(0x7c)]({'filePath':k,'content':q(0x75)+h+'\x22\x20element={<Component.'+g+q(0x68),'begin':['<Route\x20element={<PrivateRoute\x20/>}>'],'end':['</Route>']}):await this[q(0x6c)][q(0x7c)]({'filePath':k,'content':'<Route\x20path=\x22'+h+q(0x7f)+g+'/>}/>\x0a','begin':['<Route\x20index'],'end':[q(0x6b)]});});}catch(f){Log[p(0x69)](f),process['exit'](0x1);}});function a137c(){const r=['3925943SBQKzL','search','<Route\x20path=\x22','toString','replace','8OKvhFo','split','resourceName','3523398OupaMf','injectIntoFile','pop','(((.+)+)+)+$','\x22\x20element={<Component.','imports','route','join','1630paCMjj','Scaffolding\x20for\x20a\x20Route.','engines','17193528pDlkUY','private','ssr','lib','900663nVIKFu','951lXeDfh','length','/>}/>\x0a','error','startup','<Route\x20path=\x22*\x22','fsi','getMakaProjectConfig','findAppDirectory','constructor','2172115IGnIaw','create','2861144PSOmuR'];a137c=function(){return r;};return a137c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a138l=a138d;(function(a,b){const j=a138d,c=a();while(!![]){try{const d=-parseInt(j(0x190))/0x1+parseInt(j(0x1b1))/0x2*(-parseInt(j(0x1af))/0x3)+-parseInt(j(0x1b3))/0x4*(parseInt(j(0x1a6))/0x5)+-parseInt(j(0x1ab))/0x6*(parseInt(j(0x196))/0x7)+parseInt(j(0x1b2))/0x8*(parseInt(j(0x194))/0x9)+parseInt(j(0x1ad))/0xa+parseInt(j(0x19b))/0xb*(parseInt(j(0x18e))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a138c,0x6b58b));const a138b=(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;};}()),a138a=a138b(this,function(){const k=a138d;return a138a[k(0x1a8)]()[k(0x19d)]('(((.+)+)+)+$')[k(0x1a8)]()[k(0x1aa)](a138a)['search'](k(0x1a1));});a138a();import{camelCase,paramCase,pascalCase}from'change-case';function a138c(){const o=['tsx','15757umXzGK','Generate\x20a\x20service\x20to\x20run\x20within\x20your\x20meteor\x20application.','withValue','winston\x20setimmediate','create','33heWxcy','Installing\x20winston','search','error','imports','logger','(((.+)+)+)+$','checkNpmPackage','service','resourceName','template','2977525nIJGQw','pathFromApp','toString','services','constructor','372nJZnyf','getMakaProjectConfig','4045680fwDQya','maka\x20{generate,\x20g}:{service}\x20<resource-name>','11511GAHVAd','installNpmPackage','282jojWXr','8DgXhsS','4tTkNYs','type','maka\x20g:svc\x20service-logger\x20--type=logger','2686800qkiTuy','startup','26379CXFgov','winston','fsi','engines','5992974nfymGY'];a138c=function(){return o;};return a138c();}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a138d(a,b){const c=a138c();return a138d=function(d,e){d=d-0x18c;let f=c[d];return f;},a138d(a,b);}Generator[a138l(0x19a)]({'name':a138l(0x1a3),'aliases':['svc'],'usage':a138l(0x1ae),'shortDesc':a138l(0x197),'requiredOpts':[{'name':a138l(0x18c),'values':[a138l(0x1a0)]}],'validOpts':[],'maxArgLength':0x1,'examples':[a138l(0x18d)]},async function(a,b){const m=a138l;try{const c=this[m(0x192)][m(0x1ac)]();await this[m(0x192)][m(0x198)](c,async()=>{const n=m,d=this[n(0x192)][n(0x1a7)]({}),f=paramCase(b[n(0x1a4)]),g={'name':pascalCase(b[n(0x1a4)]),'fileName':f,'camelCase':camelCase(b['resourceName']),'type':b['type'],'engine':c[n(0x193)]['js'],'noRename':!![]};let h='js';c[n(0x193)]['js']===n(0x195)&&(h='ts');if(b[n(0x18c)]===n(0x1a0)){!this[n(0x192)][n(0x1a2)](n(0x191))&&await this[n(0x192)][n(0x1b0)](n(0x199),{'cwd':d,'msg':n(0x19c)});const i=this[n(0x192)]['pathFromApp']({'pathParts':[n(0x19f),n(0x18f),'lib',n(0x1a9),f+'.'+h]});await this[n(0x192)][n(0x1a5)]({'srcPath':'service/logger/logger.js','destPath':i,'context':g,'config':c});}});}catch(d){Log[m(0x19e)](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a139d,c=a();while(!![]){try{var d
|
|
1
|
+
(function(a,b){var f=a139d,c=a();while(!![]){try{var d=-parseInt(f(0xe2))/0x1*(-parseInt(f(0xdf))/0x2)+parseInt(f(0xe4))/0x3*(parseInt(f(0xeb))/0x4)+parseInt(f(0xe8))/0x5*(-parseInt(f(0xe3))/0x6)+parseInt(f(0xde))/0x7+-parseInt(f(0xe5))/0x8+parseInt(f(0xe0))/0x9*(-parseInt(f(0xec))/0xa)+-parseInt(f(0xed))/0xb*(-parseInt(f(0xe1))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a139c,0x2aba2));var a139b=(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;};}()),a139a=a139b(this,function(){var g=a139d;return a139a['toString']()[g(0xe9)](g(0xe6))[g(0xea)]()[g(0xe7)](a139a)[g(0xe9)](g(0xe6));});function a139c(){var h=['224760pXnFRj','search','toString','4ttwyBK','133290iPehdM','1723865OiRiWA','1153201oMuYPl','726UaOLXl','234hVUcAZ','12kAGXPD','599mFjtXd','6ojuxAO','834873tkNlre','2005360iDHXPj','(((.+)+)+)+$','constructor'];a139c=function(){return h;};return a139c();}a139a();function a139d(a,b){var c=a139c();return a139d=function(d,e){d=d-0xde;var f=c[d];return f;},a139d(a,b);}import'./translation.js';import'./openssl.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a140l=a140d;(function(a,b){const i=a140d,c=a();while(!![]){try{const d=-parseInt(i(0x156))/0x1*(parseInt(i(0x147))/0x2)+-parseInt(i(0x159))/0x3*(parseInt(i(0x150))/0x4)+parseInt(i(0x15a))/0x5+parseInt(i(0x157))/0x6+-parseInt(i(0x14f))/0x7+-parseInt(i(0x144))/0x8+-parseInt(i(0x149))/0x9*(-parseInt(i(0x15f))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a140c,0xe6cba));const a140b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a140d;if(c){const e=c[j(0x14c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a140a=a140b(this,function(){const k=a140d;return a140a[k(0x15e)]()[k(0x15b)](k(0x14d))[k(0x15e)]()[k(0x15d)](a140a)[k(0x15b)](k(0x14d));});function a140c(){const o=['1703190ltamQb','env','702NBAXQy','1243330HlIbrc','search','join','constructor','toString','512370YsescP','openssl/openssl.conf','template','sslconfig','getGlobalConfig','5038808DsaWSA','fsi','maka\x20{generate,\x20g}:sslconfig','298052DcoIJX','getAppConfigPath','738zTJqQJ','Generate\x20a\x20new\x20openssl\x20config\x20file','getMakaProjectConfig','apply','(((.+)+)+)+$','withValue','9042054hbRAxj','29368yWTKNH','appName','openssl.conf','create','_keys','maka\x20g:sslconfig\x20--env\x20dev','1YGQGoQ'];a140c=function(){return o;};return a140c();}a140a();import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';import a140e from'path';function a140d(a,b){const c=a140c();return a140d=function(d,e){d=d-0x142;let f=c[d];return f;},a140d(a,b);}Generator[a140l(0x153)]({'name':a140l(0x142),'usage':a140l(0x146),'shortDesc':a140l(0x14a),'noNeedResource':!![],'requiredOpts':[a140l(0x158)],'examples':[a140l(0x155)],'validOpts':[]},async function(a,b){const m=a140l;try{const c=await this[m(0x145)][m(0x14b)](),d=await this['fsi'][m(0x143)](),f=this[m(0x145)][m(0x148)](b[m(0x158)]),g=a140e[m(0x15c)](f,m(0x154),m(0x152));await this['fsi'][m(0x14e)](c,async()=>{const n=m,h={'app':d[n(0x151)],'noRename':!![]};await this[n(0x145)][n(0x161)]({'srcPath':n(0x160),'destPath':g,'framework':'service','context':h,'config':c});});}catch(h){Log['error'](h);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a141z=a141d;function a141c(){const C=['grep','i18n/i18n.js','setProjectConfig','\x20}\x20from\x20\x27./','11NyVSQV','exit','7QwsTca','constructor','appName','client','true','index.js','readFileSync','pathFromApp','injectAtBeginningOfFile','lang','findAppDirectory','i18next','ssr','translations','(((.+)+)+)+$','translation','isFile','injectAtEndOfFile','16TyxryS','startup','Locale\x20already\x20defined:\x20','maka\x20g:translation\x20--lang=fr','error','server','template','import\x20\x27../lib/services/translations/i18n\x27;','index.','services','i18n/index.js','warn','195905OOjGUE','959680jimdae','maka\x20g:translation\x20--lang=en\x20(default)','2BNmmGT','fsi','service','lib','maka\x20{generate,\x20g}:translation','.js','6437810gDmRpp','toString','imports','\x0a\x20\x20Generate\x20a\x20new\x20locale\x20translation\x20file.\x0a\x0a\x20\x20\x20\x20--lang\x20\x20The\x20language\x20code\x20for\x20the\x20new\x20locale\x20file.\x20(i.e.\x20en,\x20fr,\x20de)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20and\x20must\x20be\x20the\x20two\x20character\x20language\x20code.\x0a\x20\x20','1749208IzLpwc','i18next\x20i18next-browser-languagedetector\x20react-i18next','171963FWbvfC','default\x20as\x20','withValue','3567162WhllsV','import\x20\x27../lib/services/translations/i18n\x27;\x0a','getMakaProjectConfig','getGlobalConfig','4244964ayafVb','search','engines','rewriteDestinationPathForEngine'];a141c=function(){return C;};return a141c();}(function(a,b){const x=a141d,c=a();while(!![]){try{const d=-parseInt(x(0x1d1))/0x1*(parseInt(x(0x1cf))/0x2)+parseInt(x(0x1e0))/0x3+-parseInt(x(0x1c2))/0x4*(-parseInt(x(0x1ce))/0x5)+parseInt(x(0x1e4))/0x6+-parseInt(x(0x1b0))/0x7*(-parseInt(x(0x1db))/0x8)+parseInt(x(0x1dd))/0x9+-parseInt(x(0x1d7))/0xa*(parseInt(x(0x1ec))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a141c,0xa7dd1));const a141b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a141a=a141b(this,function(){const y=a141d;return a141a[y(0x1d8)]()['search'](y(0x1be))[y(0x1d8)]()[y(0x1b1)](a141a)[y(0x1e5)]('(((.+)+)+)+$');});a141a();function a141d(a,b){const c=a141c();return a141d=function(d,e){d=d-0x1af;let f=c[d];return f;},a141d(a,b);}import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';import a141e from'fs';Generator['create']({'name':a141z(0x1bf),'usage':a141z(0x1d5),'aliases':['t'],'noNeedResource':!![],'requiredOpts':[{'name':a141z(0x1b9),'boolFlag':![],'regex':/^[a-z]{2}$/}],'shortDesc':'Generate\x20a\x20new\x20locale\x20translation','description':a141z(0x1da),'examples':[a141z(0x1d0),a141z(0x1c5),'maka\x20g:translation\x20--lang=de'],'validOpts':[]},async function(a,b){const A=a141z;try{const c=this[A(0x1d2)][A(0x1e2)](),d=this[A(0x1d2)][A(0x1e3)](),f=this[A(0x1d2)][A(0x1ba)]();await this[A(0x1d2)][A(0x1df)](c,async()=>{const B=A;try{!b[B(0x1b9)]&&(b['lang']='en');!b['root']&&!this['fsi']['checkNpmPackage'](B(0x1bb))&&(Log[B(0x1cd)]('Verifying\x20npm\x20package\x20requirements:\x20i18next\x20...'),this[B(0x1d2)]['installNpmPackage'](B(0x1dc),{'cwd':f}),this[B(0x1d2)][B(0x1ea)]('features.withTranslations',!![]));const g=this['fsi'][B(0x1b7)]({'pathParts':[B(0x1d9),B(0x1c3),B(0x1b3),B(0x1b5)]}),h=this[B(0x1d2)][B(0x1e7)]({'pathParts':[g],'config':c}),i=this[B(0x1d2)][B(0x1e8)](a141e[B(0x1b6)](h)[B(0x1d8)](),B(0x1c9))[0x0]&&!![];if(c[B(0x1e6)][B(0x1bc)]===B(0x1b4)){!i&&this['fsi'][B(0x1b8)]({'filePath':h,'content':'import\x20\x27../lib/services/translations/i18n\x27;\x0a'});const t=this[B(0x1d2)][B(0x1b7)]({'pathParts':[B(0x1d9),B(0x1c3),B(0x1c7),B(0x1b5)]}),u=this[B(0x1d2)]['rewriteDestinationPathForEngine']({'pathParts':[t],'config':c}),v=this['fsi'][B(0x1e8)](a141e['readFileSync'](u)[B(0x1d8)](),B(0x1c9))[0x0]&&!![];!v&&this['fsi']['injectAtBeginningOfFile']({'filePath':u,'content':B(0x1e1)});}else!i&&this['fsi'][B(0x1b8)]({'filePath':h,'content':'import\x20\x27../lib/services/translations/i18n\x27;\x0a'});const j={'app':d[B(0x1b2)],'config':c},k=this[B(0x1d2)][B(0x1b7)]({'pathParts':[B(0x1d9),B(0x1c3),B(0x1d4),B(0x1cb),B(0x1bd),'i18n.js']}),l=this[B(0x1d2)]['isFile'](this[B(0x1d2)]['rewriteDestinationPathForEngine']({'pathParts':[k],'config':c}));!l&&await this[B(0x1d2)]['template']({'srcPath':B(0x1e9),'destPath':k,'framework':B(0x1d3),'context':j,'config':c});const m=this[B(0x1d2)]['pathFromApp']({'pathParts':[B(0x1d9),B(0x1c3),B(0x1d4),B(0x1cb),'translations','locales',b['lang']+B(0x1d6)]}),n=this['fsi']['rewriteDestinationPathForEngine']({'pathParts':[m],'config':c}),o=this['fsi'][B(0x1c0)](n);!o?await this[B(0x1d2)][B(0x1c8)]({'srcPath':'i18n/locales.js','destPath':m,'framework':B(0x1d3),'context':j,'config':c}):Log[B(0x1cd)](B(0x1c4)+n);const p=this[B(0x1d2)][B(0x1b7)]({'pathParts':[B(0x1d9),B(0x1c3),B(0x1d4),B(0x1cb),B(0x1bd),'locales',B(0x1ca)+c[B(0x1e6)]['js']]}),q=this['fsi'][B(0x1e7)]({'pathParts':[p],'config':c}),r=this[B(0x1d2)][B(0x1c0)](q);!r&&await this[B(0x1d2)][B(0x1c8)]({'srcPath':B(0x1cc),'destPath':p,'framework':'service','context':j,'config':c});const s=this['fsi'][B(0x1e8)](a141e['readFileSync'](p)[B(0x1d8)](),B(0x1de)+b[B(0x1b9)])[0x0]&&!![];!s?await this[B(0x1d2)][B(0x1c1)]({'filePath':p,'content':'export\x20{\x20default\x20as\x20'+b[B(0x1b9)]+B(0x1eb)+b[B(0x1b9)]+'\x27;'}):Log['warn']('Locale\x20already\x20exported:\x20'+p);}catch(w){Log['error'](w),process[B(0x1af)](0x1);}});}catch(g){Log[A(0x1c6)](g),process[A(0x1af)](0x1);}});
|
package/bundle/obf/src/maka.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a142m=a142d;(function(a,b){const j=a142d,c=a();while(!![]){try{const d
|
|
1
|
+
const a142m=a142d;(function(a,b){const j=a142d,c=a();while(!![]){try{const d=-parseInt(j(0xe9))/0x1+parseInt(j(0xf3))/0x2+parseInt(j(0xec))/0x3*(-parseInt(j(0xf2))/0x4)+-parseInt(j(0xdd))/0x5+parseInt(j(0xde))/0x6+parseInt(j(0xe1))/0x7+parseInt(j(0xf4))/0x8*(parseInt(j(0xe8))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a142c,0x31383));const a142b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a142d;if(c){const e=c[k(0xea)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a142a=a142b(this,function(){const l=a142d;return a142a[l(0xe0)]()[l(0xdb)](l(0xe5))[l(0xe0)]()[l(0xdc)](a142a)[l(0xdb)](l(0xe5));});a142a();import a142e from'minimist';import a142f from'os';import a142g from'path';import a142h from'humps';import a142i from'./commands/maka.cmd.js';import'./commands/_index.js';import'./generators/_index.js';import{fileURLToPath}from'url';function a142c(){const n=['camelizeKeys','search','constructor','1443195wMKuAi','340236dfueLc','slice','toString','1001539VajyEQ','MAKA_COMMAND_PATH','TOOL_NODE_FLAGS','env','(((.+)+)+)+$','parse','argv','15921osWVSB','227444bZKnla','apply','dirname','6gTnxqg','url','--max-old-space-size=','run','BROWSERSLIST_IGNORE_OLD_DATA','stringify','110564niqTZu','194648ZkLbtW','2152diKbEW','floor'];a142c=function(){return n;};return a142c();}const __filename=fileURLToPath(import.meta[a142m(0xed)]),__dirname=a142g[a142m(0xeb)](__filename);global[a142m(0xe2)]=__dirname;const total_memory=a142f['totalmem'](),total_mem_in_kb=total_memory/0x400;let total_mem_in_mb=total_mem_in_kb/0x400;total_mem_in_mb=Math[a142m(0xd9)](total_mem_in_mb),process[a142m(0xe4)][a142m(0xe3)]=a142m(0xee)+total_mem_in_mb,process[a142m(0xe4)][a142m(0xf0)]='1',process['env']['NODE_NO_WARNINGS']='1';function a142d(a,b){const c=a142c();return a142d=function(d,e){d=d-0xd9;let f=c[d];return f;},a142d(a,b);}const argv=a142e(process[a142m(0xe7)][a142m(0xdf)](0x2)),args=argv['_'],deepCopyArgv=JSON[a142m(0xe6)](JSON[a142m(0xf1)](argv));delete deepCopyArgv['_'];const opts=a142h[a142m(0xda)](deepCopyArgv);a142i[a142m(0xef)](args,opts);
|
package/bundle/obf/src/tool.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a143L=a143d;(function(a,b){const I=a143d,c=a();while(!![]){try{const d=-parseInt(I(0x241))/0x1*(parseInt(I(0x22c))/0x2)+parseInt(I(0x228))/0x3*(parseInt(I(0x215))/0x4)+-parseInt(I(0x21a))/0x5+-parseInt(I(0x24d))/0x6+parseInt(I(0x22e))/0x7+-parseInt(I(0x221))/0x8*(-parseInt(I(0x200))/0x9)+-parseInt(I(0x246))/0xa*(parseInt(I(0x250))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a143c,0xe1d05));const a143b=(function(){let a=!![];return function(b,c){const d=a?function(){const J=a143d;if(c){const e=c[J(0x207)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a143a=a143b(this,function(){const K=a143d;return a143a['toString']()[K(0x20b)]('(((.+)+)+)+$')[K(0x1f5)]()[K(0x244)](a143a)[K(0x20b)](K(0x242));});a143a();function a143c(){const a3=['Please\x20provide\x20a\x20value\x20for\x20','assign','apply','getAppProjectConfigs','To\x20use\x20this\x20generator,\x20\x22','No\x20description\x20provided.','search','No\x20usage\x20provided.','string','charAt','validateMakaProject','None','exit','includes','Invalid\x20option:\x20','join','4uXAzIN','getPro','keys','docker','parent','4887810DaXDXB','examples','To\x20use\x20this\x20command,\x20\x22','fsi','isCommand','validateMeteorInstall','Please\x20choose\x20a\x20value\x20for\x20','152Pfmkpp','ask','NIE','disableAuthCheck','length','shortDesc','dir','3947781vLmebl','options','push','description','10PHIggk','root','7385091kDWWQr','proGenerators','Invalid\x20value\x20for\x20','concat','domainLicense','Please\x20choose\x20an\x20environment','.meteor','License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.meteor/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.','validateMakaSubscription','You\x20must\x20have\x20','aliases','env','list','filter','usage','formatToNamedParam','existsSync','every','getMakaProjectConfig','95793sKmFMx','(((.+)+)+)+$','remapShortToLong','constructor','resourceName','4735320YVsFCN','homedir','win32','indexOf','isGenerator','_handler','Please\x20choose\x20a\x20valid\x20value\x20for\x20','2822850pSSsyG','\x22,\x20please\x20upgrade\x20to\x20PRO\x20by\x20becoming\x20a\x20pateron\x20@\x20patreon.com/user?u=110174702,\x20then\x20issue:\x20\x27maka\x20login\x27','match','22LPccTS','getShortName','toString','proCommands','name','cwd','engines','validateEngines','isPro','map','error','validateUserIsLoggedIn','platform','676449QOMNnR','roles','help','This\x20command\x20needs\x20a\x20higher\x20environment\x20to\x20run\x20(other\x20than\x20local).\x20Please\x20create\x20a\x20new\x20environment;\x20`maka\x20g:config\x20development`','find'];a143c=function(){return a3;};return a143c();}import a143e from'path';function a143d(a,b){const c=a143c();return a143d=function(d,e){d=d-0x1f4;let f=c[d];return f;},a143d(a,b);}import a143f from'os';import a143g from'fs';const homeDir=a143f[a143L(0x247)]();import{Docker}from'./tools/docker/docker.class.js';import{FSI}from'./tools/fsi/fsi.class.js';import{Log}from'./tools/log/log.class.js';import{Actions}from'./tools/actions/actions.class.js';import{UsageError}from'./error.js';export class Tool{[a143L(0x218)];[a143L(0x21d)];[a143L(0x229)];['name'];[a143L(0x219)];[a143L(0x24b)];constructor(){const M=a143L;this[M(0x218)]=new Docker(),this['fsi']=new FSI();}[a143L(0x1f4)](a){const N=a143L;return a[N(0x20e)](0x0);}[a143L(0x243)](a,b){const O=a143L,c=this['formatToNamedParam'](b),d={...a};for(const e of c){const f=this[O(0x1f4)](e['name']);a[f]&&(d[e[O(0x1f7)]]=a[f],delete d[f]);}return d;}[a143L(0x23d)](a){const P=a143L;if(a[P(0x23f)](b=>typeof b===P(0x20d)))return a[P(0x1fc)](b=>({'name':b}));return a;}[a143L(0x24f)](a){const Q=a143L,b=[this[Q(0x1f7)]]['concat'](this[Q(0x229)][Q(0x238)]||[]);return this[Q(0x219)]&&b[Q(0x22a)](this[Q(0x219)]),b[Q(0x212)](a);}[a143L(0x20f)](){const R=a143L,a=this[R(0x21d)]['findProjectDirectory']();return a!==![]?!![]:![];}async[a143L(0x1fe)](){return!![];}[a143L(0x21f)](){const S=a143L,a=process[S(0x1ff)]===S(0x248);if(a){if(!a143g[S(0x23e)](a143e['join'](homeDir,'AppData','Local',S(0x234))))return![];}else{if(!a143g['existsSync'](a143e[S(0x214)](homeDir,S(0x234))))return![];}return!![];}[a143L(0x1fa)](a){const T=a143L,b=this['fsi'][T(0x240)](),c=b[T(0x1f9)],d=Object['keys'](a);if(d[T(0x225)]>0x0)for(const e of d){const f=c[e];if(f!==a[e]){Log[T(0x1fd)](T(0x237)+e+'\x20version\x20'+a[e]+'\x20installed\x20to\x20use\x20this\x20command.');throw UsageError;}}}async['validateParams'](a,b,c){const U=a143L,{requiredOpts:d,validArgs:e,validOpts:f,noNeedResource:g}=c,h=Object[U(0x217)](b);if(h[U(0x212)]('resourceName')&&b[U(0x245)]===undefined&&!g){const m=await Actions[U(0x222)]('Please\x20provide\x20a\x20resource\x20name:');b[U(0x245)]=m;}let i=[],j=b;if(d){i=this['formatToNamedParam'](d),j=this[U(0x243)](b,i);if(i&&i?.['length']>0x0)for(const n of i){const {name:o,values:p,regex:q}=n;if(!Object[U(0x217)](j)[U(0x212)](o)){if(o===U(0x239)){const r=this[U(0x21d)][U(0x208)]()[U(0x23b)](t=>t!=='local');r['length']===0x0&&(Log[U(0x1fd)](U(0x203)),process[U(0x211)](0x1));const s=await Actions[U(0x229)]({'type':U(0x23a),'name':U(0x239),'message':U(0x233),'choices':r});b[U(0x239)]=s[U(0x239)];}else{const t=p;if(t){const u=await Actions[U(0x229)]({'type':U(0x23a),'name':o,'message':U(0x220)+o,'choices':p});b[o]=u[o];}else{if(q){const v=await Actions[U(0x222)](U(0x205)+o);if(v['match'](q))b[o]=v;else{Log[U(0x1fd)]('Invalid\x20value\x20for\x20'+o+':\x20'+v);throw new UsageError();}}else{const w=await Actions[U(0x222)](U(0x205)+o);b[o]=w;}}}}else{const x=j[o];if(p&&!p[U(0x212)](x)){Log[U(0x1fd)](U(0x230)+o+':\x20'+x);throw new UsageError();}}}}let k=this['formatToNamedParam'](f),l=b;if(k&&Object[U(0x217)](k)?.[U(0x225)]>0x0){k=k[U(0x231)](i||[]),k['push']({'name':U(0x245),'hidden':!![]}),k['push']({'name':U(0x202),'boolFlag':!![]}),k[U(0x22a)]({'name':U(0x227),'hidden':!![]}),k[U(0x22a)]({'name':U(0x1f8),'hidden':!![]}),k[U(0x22a)]({'name':U(0x22d),'hidden':!![]}),k[U(0x22a)]({'name':'config','hidden':!![]}),l=this[U(0x243)](b,k);for(const y of k){const {name:z,values:A}=y,B=l[z];if(B!==undefined&&(!A||!A['includes'](B))){const C=A;if(C){const D=await Actions['options']({'type':U(0x23a),'name':z,'message':U(0x24c)+z,'choices':A});l[z]=D[z];}}if(k[U(0x225)]>0x0)for(const E of Object[U(0x217)](l)){const F=k[U(0x204)](G=>G[U(0x1f7)]===E);if(!F){Log[U(0x1fd)](U(0x213)+E);throw new UsageError();}}}}if(e&&e?.['length']>0x0)for(const G of e){if(!e['includes'](G)){Log[U(0x1fd)]('Invalid\x20argument:\x20'+G);const H=await Actions['ask']('Please\x20provide\x20a\x20valid\x20argument\x20for\x20'+G);a[a[U(0x249)](G)]=H;}}return Object[U(0x206)](j,l);}async[a143L(0x236)](a){const V=a143L;try{if(!a)return;const b=await this[V(0x21d)][V(0x216)]();!b&&(Log['error'](V(0x235)),process[V(0x211)](0x1));const c=!b?.[V(0x201)][V(0x212)]('singleLicense')&&!b?.[V(0x201)][V(0x212)](V(0x232));if(this['isCommand'](a)){const d=V(0x21c)+a[V(0x1f7)]+V(0x24e);if(a[V(0x229)][V(0x224)])return;const f=b?.[V(0x1f6)][V(0x212)](a[V(0x1f7)])||b?.[V(0x1f6)][V(0x212)](a['parent']||'')||this['options'][V(0x1fb)];if(f&&c)throw d;}else{if(this[V(0x24a)](a)){const g=b?.['proGenerators']['includes'](a[V(0x1f7)])||b?.[V(0x22f)][V(0x212)](a['parent']||'');if(g&&c)throw V(0x209)+a[V(0x1f7)]+V(0x24e);}}}catch(h){Log['error'](h),process[V(0x211)](0x1);}}[a143L(0x21e)](a){const W=a143L;return W(0x229)in a;}['isGenerator'](a){return!('options'in a);}['description'](){const X=a143L;return this['options'][X(0x22b)]||this[X(0x229)][X(0x226)]||X(0x20a);}['shortDesc'](){const Y=a143L;return this['options']['shortDesc']||Y(0x223);}[a143L(0x23c)](){const Z=a143L;return this[Z(0x229)][Z(0x23c)]||Z(0x20c);}['examples'](){const a0=a143L;return this[a0(0x229)][a0(0x21b)]||[];}[a143L(0x238)](){const a1=a143L;return this['options'][a1(0x238)]||a1(0x210);}['experimental'](){const a2=a143L;return this[a2(0x229)]['experimental']||![];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a144h=a144d;(function(a,b){const f=a144d,c=a();while(!![]){try{const d=-parseInt(f(0x152))/0x1+-parseInt(f(0x15c))/0x2+-parseInt(f(0x156))/0x3*(-parseInt(f(0x14f))/0x4)+parseInt(f(0x15f))/0x5*(-parseInt(f(0x15d))/0x6)+-parseInt(f(0x154))/0x7*(-parseInt(f(0x159))/0x8)+parseInt(f(0x155))/0x9*(parseInt(f(0x14c))/0xa)+-parseInt(f(0x151))/0xb*(-parseInt(f(0x157))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a144c,0xece1c));const a144b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a144a=a144b(this,function(){const g=a144d;return a144a[g(0x158)]()['search'](g(0x15e))[g(0x158)]()['constructor'](a144a)['search'](g(0x15e));});a144a();import a144e from'inquirer';function a144d(a,b){const c=a144c();return a144d=function(d,e){d=d-0x14c;let f=c[d];return f;},a144d(a,b);}export class Actions{static async[a144h(0x14e)](a,b){const i=a144h,{answer:c}=await a144e[i(0x150)]({'type':b?i(0x153):i(0x15a),'name':i(0x14d),'message':a});return c;}static async['confirm'](a,b=![]){const j=a144h,{answer:c}=await a144e[j(0x150)]({'type':j(0x15b),'name':j(0x14d),'message':a,'default':b});return c;}static async['options'](a){const b=await a144e['prompt'](a);return b;}}function a144c(){const k=['485110PRqwpk','answer','ask','3748OlaMYE','prompt','1474UMvPnf','1356021TIIbcy','password','168pIvZDW','81ulyxHU','4398FxtJwV','191556PcOVSP','toString','307784pjnZOM','input','confirm','3782214rWbqtR','12402QHeYTH','(((.+)+)+)+$','1585DuToDl'];a144c=function(){return k;};return a144c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a145w=a145d;(function(a,b){const p=a145d,c=a();while(!![]){try{const d=-parseInt(p(0xb4))/0x1+-parseInt(p(0x14c))/0x2*(parseInt(p(0x108))/0x3)+parseInt(p(0x10f))/0x4*(-parseInt(p(0xe5))/0x5)+parseInt(p(0x11b))/0x6*(-parseInt(p(0x12c))/0x7)+parseInt(p(0x133))/0x8*(parseInt(p(0x130))/0x9)+parseInt(p(0x155))/0xa+parseInt(p(0x159))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a145c,0x43cef));const a145b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a145d;if(c){const e=c[q(0x146)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a145a=a145b(this,function(){const r=a145d;return a145a[r(0x16d)]()[r(0x132)](r(0xb6))[r(0x16d)]()['constructor'](a145a)[r(0x132)]('(((.+)+)+)+$');});function a145c(){const a8=['nextToken','imageId','repositoryUri','\x20Status\x20Code:\x20','includes','UserData','split','checkDomainAvailability','map','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','send','\x20CIDR:\x20','env','authorizationToken','us-west-2','\x20opened!','state','instance','Processing\x20','Timeout\x20while\x20processing\x20','eu-west-3','bright','requestId','all','utf8','sgId','Hosted\x20zone\x20created\x20successfully!','Name','key','289077zMGIwn','Web\x20App','(((.+)+)+)+$','eu-west-1','il-central-1','CreationDate','sa-east-1','success','Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[','af-south-1','Invalid\x20choice','running','changeResourceRecordSets','ap-east-1','No\x20instances\x20found','architecture','Repository\x20\x22','uri','name','find','deleteSecurityGroup','RegistrationPrice','type','getSecurityGroups','SubnetId','eu-south-1','CidrBlock','Instance\x20rebooted!','eu-central-2','The\x20domain\x20\x27','[+]\x20Setting\x20VPC\x20ID\x20to:\x20','template','From\x20AWS:','parse','repositoryName','slice','log','No\x20credentials\x20returned\x20from\x20AWS\x20ECR','getEcrLoginPassword','ignore','\x20ENV:\x20','cidr','getMakaProjectConfig','Please\x20choose\x20a\x20VPC:\x20[0]\x20','message','ap-south-1','createFile','\x20:\x20','Setting\x20SG\x20ID\x20to:\x20','10Jmtpms','me-south-1','eu-north-1','Canonical*Ubuntu*20.04*','config','httpStatusCode','KeyName','registerDomain','ap-northeast-3','ap-south-2','tags','Error\x20fetching\x20domain\x20pricing:','ecrCreateRepository','warn','subnetId','\x20SGID:\x20','Port\x20','forEach','subnet-id','Error\x20saving\x20pem\x20file,\x20aborting','\x20VPCID:\x20','Key\x20Name:\x20[','listAvailableAMIs','date','us-west-1','race','notice','fsi','image-type','\x20NAME:\x20','concat','No\x20subnets\x20found.','getTime','EKS','chooseInstance','36OpdcSN','AVAILABLE','Error\x20linking\x20EC2\x20to\x20Route\x2053:','\x27\x20has\x20been\x20registered\x20successfully.','status','An\x20unknown\x20error\x20occurred.','Would\x20you\x20like\x20to\x20update\x20the\x20ssh.json\x20config\x20file?','189608LCzxXU','filter','HostedZones','Authorization\x20data\x20is\x20empty','suggestion','You\x20will\x20need\x20to\x20update\x20the\x20ssh.json\x20file\x20yourself.','GroupName','maxCount','ec2rebootInstance','ap-southeast-2','[?]\x20Please\x20choose\x20an\x20instance\x20ID:\x20','Subnets','6WsXmXH','available','ap-southeast-1','ID:\x20','confirm','.pem.txt','root-device-type','Instances','ingressRule','stringify','Error\x20Message:\x20','trim','ap-southeast-3','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','join','ask','writeFileSync','3307738CDpOxp','No\x20images\x20found.','\x20PUB_IP:\x20','me-central-1','290817jXNwhZ','authorizationData','search','88JTeOFv','ec2describeKeys','pop','eu-central-1','$metadata','\x20SUBNETID:\x20','ebs','push','Prices','userData','Reservations','ssh.json','repositories','UPSERT','Description','\x20DESCRIPTION:\x20','error','vpcId','GroupId','apply','_keys','Canonical*Ubuntu*18.04*','ImageId','\x22\x20created\x20successfully\x20in\x20','No\x20suitable\x20images\x20found\x20within\x20the\x20last\x2030\x20days.','22820wEGJCT','timeout','stop','config/ssh.json','Error\x20creating\x20hosted\x20zone','You\x20have\x20no\x20key-pairs,\x20please\x20create\x20one.\x20(maka\x20aws\x20create-key-pair\x20--env).','info','eu-west-2','listAvailableSubnets','898620jryCng','0.0.0.0/0','Successfully\x20linked\x20EC2\x20instance\x20','createKeyPair','9083503euFpnq','pem','Setting\x20Subnet\x20ID\x20to\x20','ec2terminateInstance','\x20AMIID:\x20','createKeyPairEC2Key','instanceId','Failed\x20to\x20decode\x20password\x20from\x20authorization\x20token','exit','ecrDeleteRepository','Created:\x20','privateIp','isFile','us-east-1','TLDRulesViolation','sgPorts','\x20STATUS:\x20','description','eu-south-2','publicIp','toString','environment','Failed\x20to\x20create\x20repository\x20in\x20','amiId','sgIds','base64','desc','VpcId','terminated','Value','\x20SG\x20NAME:\x20','us-east-2','Could\x20not\x20find\x20hosted\x20zone','withSpinner','There\x20was\x20an\x20error\x20registering\x20the\x20domain\x20name','length','region','linkEC2ToRoute53','AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials','ec2describeInstances','\x20Request\x20ID:\x20','route53CreateHostedZone'];a145c=function(){return a8;};return a145c();}a145a();import a145e from'fs';import a145f from'path';import{execSync}from'child_process';import{Actions}from'../actions/actions.class.js';function a145d(a,b){const c=a145c();return a145d=function(d,e){d=d-0x95;let f=c[d];return f;},a145d(a,b);}import{Log}from'../log/log.class.js';import{FSI}from'../fsi/fsi.class.js';import{EC2Client,DescribeInstancesCommand,RunInstancesCommand,TerminateInstancesCommand,CreateKeyPairCommand,AuthorizeSecurityGroupIngressCommand,CreateSecurityGroupCommand,RebootInstancesCommand,DescribeVpcsCommand,DescribeKeyPairsCommand,DeleteKeyPairCommand,DescribeSecurityGroupsCommand,DeleteSecurityGroupCommand,DescribeImagesCommand,DescribeSubnetsCommand}from'@aws-sdk/client-ec2';import{ECRClient,CreateRepositoryCommand,DeleteRepositoryCommand,GetAuthorizationTokenCommand,DescribeRepositoriesCommand}from'@aws-sdk/client-ecr';import{Route53,Route53Client,CreateHostedZoneCommand}from'@aws-sdk/client-route-53';import{Route53Domains,CheckDomainAvailabilityCommand,RegisterDomainCommand,ListPricesCommand}from'@aws-sdk/client-route-53-domains';const client=new EC2Client({}),route53Client=new Route53Client({}),route53=new Route53({}),route53Domains=new Route53Domains({});export class AWS{['fsi'];constructor(){const s=a145d;this[s(0x100)]=new FSI();}async['chooseSecurityGroup'](a){const t=a145d;try{const {listIndexId:b,createdSgId:c,sgList:d}=await this['getSecurityGroups'](a);let f='';if(c===''){Log[t(0xff)]('**\x20Available\x20Security\x20Groups\x20**'),d[t(0xf6)](function(h){const u=t;h[u(0xc6)]===a?Log[u(0xff)](u(0x11e)+h['id']+u(0x177)+h['name']+u(0xf4)+h[u(0xb0)]):Log[u(0xac)](u(0x11e)+h['id']+u(0x177)+h['name']+u(0xf4)+h[u(0xb0)]);});const g=await Actions[t(0x12a)](t(0xbc)+b+']\x20')||b[t(0x16d)]();d[t(0xf6)](function(h){const v=t;h['id']===parseInt(g)&&(f=h[v(0xb0)],Log[v(0xbb)]('Setting\x20SG\x20ID\x20to:\x20'+f+'\x0a'));});}else f=c,Log[t(0xbb)](t(0xe4)+f+'\x0a');if(f==='')throw new Error(t(0xa0));return f;}catch(h){Log[t(0x143)](h);throw h;}}async[a145w(0xfb)](){const x=a145w;let a='';try{const b=new EC2Client({}),c={'Filters':[{'Name':x(0xc3),'Values':['x86_64']},{'Name':'virtualization-type','Values':['hvm']},{'Name':x(0x121),'Values':[x(0x139)]},{'Name':x(0xa7),'Values':[x(0x11c)]},{'Name':x(0x101),'Values':['machine']},{'Name':x(0x16a),'Values':[x(0x148),x(0xe8)]}]},d=new DescribeImagesCommand(c),{Images:f}=await b[x(0xa1)](d);if(f&&f[x(0x17c)]>0x0){const g=new Date(),h=new Date(g[x(0x105)]()-0x1e*0x18*0x3c*0x3c*0x3e8),i=f[x(0x110)](j=>j[x(0xb9)]&&!j[x(0x141)]?.[x(0x9b)]('UNSUPPORTED')&&!j[x(0x141)]?.[x(0x9b)](x(0x106))&&new Date(j[x(0xb9)])>h)[x(0x9f)](j=>({'amiId':j[x(0x149)],'desc':j[x(0x141)],'date':j['CreationDate']}));if(i[x(0x17c)]>0x0){i['sort']((n,o)=>new Date(o[x(0xfc)])[x(0x105)]()-new Date(n['date'])[x(0x105)]());const j=i[x(0xd7)](0x0,0x4),k=j[x(0x9f)]((n,o)=>({'id':o,'amiId':n[x(0x170)],'desc':n[x(0x173)]}));k['forEach'](n=>{const y=x;Log[y(0xac)]('ID:\x20'+n['id']+y(0x15d)+n[y(0x170)]+y(0x142)+n[y(0x173)]);});const l=await Actions[x(0x12a)](x(0x128))||'0',m=k[x(0xc7)](n=>n['id']===parseInt(l));if(m)a=m[x(0x170)],Log[x(0xbb)]('Setting\x20AMI\x20ID\x20to\x20'+a+x(0xe3)+m['desc']);else throw Log[x(0x143)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');}else throw Log[x(0x143)](x(0x14b));}else throw Log[x(0x143)](x(0x12d));}catch(n){Log['error'](n);}return a;}async[a145w(0x154)](){const z=a145w;let a='';try{const b=new EC2Client({}),c={},d=new DescribeSubnetsCommand(c),{Subnets:f}=await b[z(0xa1)](d);if(f&&f[z(0x17c)]>0x0){const g=f[z(0x9f)]((j,k)=>({'id':k,'cidr':j['CidrBlock'],'az':j['AvailabilityZone'],'subnetId':j[z(0xcc)]}));g['forEach'](j=>{const A=z;Log[A(0xac)](A(0x11e)+j['id']+A(0xa2)+j[A(0xdd)]+'\x20AZONE:\x20'+j['az']+A(0x138)+j[A(0xf3)]);});const h=await Actions['ask']('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[z(0xf3)],Log[z(0xbb)](z(0x15b)+a);else throw Log[z(0x143)](z(0xa0));}else throw Log['error'](z(0x104));}catch(j){Log[z(0x143)](j);}return a;}async['getSubnetCidr'](a){const B=a145w;try{const b=new EC2Client({}),c={'Filters':[{'Name':B(0xf7),'Values':[a]}]},d=new DescribeSubnetsCommand(c),e=await b[B(0xa1)](d);return e['Subnets']&&e[B(0x11a)]['length']>0x0?e[B(0x11a)][0x0][B(0xce)]||'':'';}catch(f){return Log[B(0x143)](f),'';}}async[a145w(0xf1)](a){const C=a145w;try{const b=new ECRClient({'region':a[C(0x17d)]}),c={'repositoryName':a[C(0xc6)]},d=new CreateRepositoryCommand(c),f=await b['send'](d);return Log['success'](C(0xc4)+a[C(0xc6)]+C(0x14a)+a['region']+'.'),f;}catch(g){Log[C(0x143)](C(0x16f)+a['region']+':\x20'+g);throw g;}}async['listAllEcrRepositories'](a){const D=a145w,b=[D(0x166),D(0x178),'us-west-1',D(0xa5),D(0xe1),D(0xed),'ap-northeast-2',D(0x11d),D(0x118),'ap-northeast-1','ca-central-1',D(0x136),D(0xb7),D(0x153),D(0xab),D(0xe7),D(0xba),D(0xbd),D(0xc1),D(0xee),D(0x127),'ap-southeast-4','ca-west-1',D(0xcd),D(0x16b),D(0xd0),D(0xe6),D(0x12f),D(0xb8)],c=[D(0x166),D(0x178),D(0xfd),'us-west-2'],d=a===D(0xae)?b:a?a[D(0x9d)](','):c;let f=[];const g=Log[D(0x17a)]();for(const h of d){g['start'](D(0xa9)+h[D(0x126)]()+'...');const i=new ECRClient({'region':h[D(0x126)]()});try{let j=undefined;do{const k=await Promise[D(0xfe)]([i[D(0xa1)](new DescribeRepositoriesCommand({'nextToken':j})),new Promise(l=>setTimeout(()=>l(D(0x14d)),0x7d0))]);if(k===D(0x14d)){Log[D(0xf2)](D(0xaa)+h['trim']()+'.');break;}else k[D(0x13f)]&&k['repositories'][D(0x17c)]>0x0&&(f=f[D(0x103)](k['repositories']['map'](l=>({'name':l[D(0xd6)],'uri':l[D(0x99)],'region':h[D(0x126)]()}))));j=k[D(0x97)];}while(j);}catch(l){Log[D(0x143)]('Failed\x20in\x20'+h[D(0x126)]()+':\x20'+l[D(0xe0)]);}finally{g[D(0x14e)]();}}return f[D(0x17c)]>0x0?(console[D(0xd8)](),Log[D(0xbb)]('Final\x20list\x20of\x20ECR\x20repositories:'),f[D(0xf6)](m=>{const E=D;Log[E(0x152)]('Region:\x20'+m[E(0x17d)]+',\x20Name:\x20'+m[E(0xc6)]+',\x20URI:\x20'+m[E(0xc5)]);})):Log['warn']('No\x20ECR\x20repositories\x20found\x20across\x20all\x20specified\x20regions.'),f;}async[a145w(0x96)](a){const F=a145w;try{const b={'CallerReference':''+Date['now'](),'Name':a},c=new CreateHostedZoneCommand(b);await route53Client[F(0xa1)](c),Log[F(0xbb)](F(0xb1));}catch(d){Log[F(0x143)](F(0x150)),console[F(0x143)](d);}}async[a145w(0xec)](a,b,c,d){const G=a145w;try{const e={'DomainName':b,'DurationInYears':c,'AutoRenew':d,'AdminContact':a,'RegistrantContact':a,'TechContact':a,'BillingContact':a},f=new RegisterDomainCommand(e),g=await route53Domains[G(0xa1)](f);Log[G(0xff)](G(0xd1)+b+G(0x10b)),Log['notice']('Response:\x20'+JSON['stringify'](g));}catch(h){Log[G(0x143)](G(0x17b)),Log[G(0xf2)](G(0xd4)),h[G(0x137)]&&(console[G(0x143)](G(0x9a)+h[G(0x137)][G(0xea)]),console['error'](G(0x95)+h[G(0x137)][G(0xad)])),console[G(0x143)](G(0x125)+h[G(0xe0)]),h[G(0xc6)]===G(0x167)?Log[G(0x143)](h[G(0xe0)]):Log[G(0x143)](G(0x10d)),console[G(0x143)](h);}}async[a145w(0x9e)](a){const H=a145w,b={'DomainName':a},c=new CheckDomainAvailabilityCommand(b),d=await route53Domains[H(0xa1)](c),e=d['Availability']===H(0x109);if(e){const f=a[H(0x9d)]('.')[H(0x135)](),g={'MaxItems':0x1,'Tld':f};try{const h=new ListPricesCommand(g),i=await route53Domains[H(0xa1)](h);if(i&&i[H(0x13b)]&&i['Prices'][0x0]?.[H(0xc9)]){const j=i['Prices'][0x0][H(0xc9)];return{'available':e,'cost':j};}}catch(k){console[H(0x143)](H(0xf0),k);}}return{'available':e};}async[a145w(0x17e)](a,b,c){const I=a145w;try{const d=await route53['listHostedZonesByName']({'DNSName':c});if(!d?.[I(0x111)])throw Log[I(0x143)](I(0x179));const e=d?.[I(0x111)][0x0]['Id'],f={'ChangeBatch':{'Changes':[{'Action':I(0x140),'ResourceRecordSet':{'Name':c,'Type':'A','TTL':0x12c,'ResourceRecords':[{'Value':b}]}}]},'HostedZoneId':e};await route53[I(0xc0)](f),Log['notice'](I(0x157)+a+'\x20to\x20'+c);}catch(g){console['error'](I(0x10a),g);}}async[a145w(0xda)]({awsAccountId:a,region:b}){const J=a145w,c=new ECRClient({'region':b});try{const d=new GetAuthorizationTokenCommand({'registryIds':[a]}),f=await c[J(0xa1)](d);if(!f[J(0x131)]||f[J(0x131)][J(0x17c)]===0x0)throw new Error(J(0x112));const g=f['authorizationData'][0x0];if(!g[J(0xa4)])throw new Error('Authorization\x20token\x20is\x20missing');const h=g[J(0xa4)];if(!h)throw new Error(J(0xd9));const i=Buffer['from'](h,J(0x172))['toString'](),j=i['split'](':')[0x1];if(!j)throw new Error(J(0x160));return j;}catch(k){Log[J(0x143)](k);throw k;}}async[a145w(0x162)]({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 K=a145w;try{const b={'BlockDeviceMappings':[{'DeviceName':'/dev/sdh','Ebs':{'VolumeSize':0x64}}],'ImageId':a[K(0x98)],'InstanceType':a[K(0xca)],'KeyName':a[K(0xb3)],'MaxCount':a[K(0x116)],'MinCount':a['minCount'],'SecurityGroupIds':a[K(0x171)][K(0x9d)](','),'SubnetId':a['subnet'],'TagSpecifications':[{'ResourceType':K(0xa8),'Tags':a[K(0xef)]}]};a[K(0x13c)]&&(b[K(0x9c)]='file://'+a[K(0x13c)]);const c=new RunInstancesCommand(b),d=await client[K(0xa1)](c);return d;}catch(f){Log[K(0x143)](f);}}async[a145w(0x15c)](a){const L=a145w;try{const b={'InstanceIds':[a['instanceId']]},c=new TerminateInstancesCommand(b),d=await client['send'](c);return d;}catch(f){return Log[L(0x143)](f),{};}}async[a145w(0x15e)]({keyName:a,env:b}){const M=a145w,c=this[M(0x100)]['getAppConfigPath'](b),d=a145f['join'](c,M(0x147),a+M(0x120));try{const f={'KeyName':a},g=new CreateKeyPairCommand(f),h=await client[M(0xa1)](g),i=h['KeyMaterial'];if(i){await this[M(0x100)][M(0xe2)]({'filePath':d,'data':i}),execSync('chmod\x20400\x20'+d,{'stdio':M(0xdb)});const j=this['fsi']['isFile'](d);if(j)return Log[M(0xbb)]('Pem\x20key\x20saved\x20to\x20'+d),{'keyName':a,'filePath':d};else throw new Error(M(0xf8));}else throw new Error('Error\x20generating\x20key\x20pair');}catch(k){Log[M(0x143)](k),process[M(0x161)](0x1);}}async[a145w(0x123)]({port:a,groupId:b}){const N=a145w,c={'GroupId':b,'IpPermissions':[{'FromPort':a,'IpProtocol':'tcp','IpRanges':[{'CidrIp':N(0x156),'Description':''}],'ToPort':a}]},d=new AuthorizeSecurityGroupIngressCommand(c);return Log[N(0xff)](N(0xf5)+a+N(0xa6)),await client[N(0xa1)](d);}async['ec2createSG'](a){const O=a145w;try{a[O(0x16a)]===''&&(a[O(0x16a)]=await Actions[O(0x12a)]('Description:')||O(0xb5));const b={'Description':a[O(0x16a)],'GroupName':a[O(0xc6)],'VpcId':a[O(0x144)]},c=new CreateSecurityGroupCommand(b),d=await client['send'](c),{GroupId:f}=d;if(!d)throw new Error(O(0x17f));f&&a[O(0x168)][O(0xf6)](g=>{const P=O;this[P(0x123)]({'port':parseInt(g),'groupId':f});}),Log[O(0xbb)](O(0x163)+f+O(0x102)+a['name']);}catch(g){return Log[O(0x143)](g),![];}return!![];}async[a145w(0x134)](a){const Q=a145w,b=[];try{const c={},d=new DescribeKeyPairsCommand(c),f=await client[Q(0xa1)](d);if(!f)throw'AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials';const {KeyPairs:g}=f;g?(g?.[Q(0xf6)]((h,i)=>{const R=Q;h[R(0xeb)]&&b['push']({'id':i,'name':h[R(0xeb)]});}),b[Q(0x17c)]>0x0&&b[Q(0xf6)](h=>{const S=Q;h[S(0xc6)]===a?.[S(0x113)]?Log[S(0xbb)](S(0x11e)+h['id']+'\x20NAME:\x20'+h[S(0xc6)]):Log['notice'](S(0x11e)+h['id']+'\x20NAME:\x20'+h[S(0xc6)]);})):Log['error'](Q(0x151));}catch(h){Log[Q(0x143)](h);}return b;}async['deleteKeyPair'](a){const T=a145w;try{const b={'KeyName':a},c=new DeleteKeyPairCommand(b);await client[T(0xa1)](c);}catch(d){Log[T(0x143)](d),process[T(0x161)](0x1);}}async[a145w(0x180)](){const U=a145w,a=[];try{const b={'Filters':[{'Name':'tag:created-by','Values':['maka-cli']}]},c=new DescribeInstancesCommand(b),d=await client[U(0xa1)](c);d[U(0x13d)]?.[U(0xf6)]((f,g)=>{const V=U;if(f?.[V(0x122)]){const {InstanceId:h,PublicIpAddress:i,PrivateIpAddress:j,State:k,KeyName:l,Tags:m}=f[V(0x122)][0x0],n=m?.[V(0xc7)](({Key:o})=>o===V(0x16e));a[V(0x13a)]({'id':g,'instanceId':h,'privateIp':j,'publicIp':i,'status':k?.[V(0xb2)],'name':l,'env':n?.[V(0x176)]});}}),a[U(0x17c)]>0x0?a[U(0xf6)](f=>{const W=U,g=W(0x11e)+f['id']+W(0x102)+f[W(0xc6)]+W(0xdc)+f[W(0xa3)]+W(0x169)+f[W(0x10c)]+'\x20INSTANCE_ID:\x20'+f[W(0x15f)]+W(0x12e)+f[W(0x16c)]+'\x20PRIV_IP:\x20'+f[W(0x164)];if(f[W(0x10c)]===W(0x175))Log[W(0x143)](g);else f[W(0x10c)]===W(0xbf)?Log[W(0xbb)](g):Log['notice'](g);}):Log[U(0x143)]('You\x20have\x20no\x20instances\x20created\x20by\x20maka-cli.\x20\x20Please\x20reivew\x20your\x20AWS\x20console\x20manually!!!');}catch(f){Log[U(0x143)](f);}return a;}async[a145w(0x117)](a){const X=a145w;try{const b={'InstanceIds':[a[X(0x15f)]]},c=new RebootInstancesCommand(b),d=await client[X(0xa1)](c);return d[X(0x137)][X(0xea)]===0xc8&&Log[X(0xbb)](X(0xcf)),d;}catch(f){Log[X(0x143)](f);}}async['chooseVPC'](){const Y=a145w;let a='';Log[Y(0xff)]('**\x20Available\x20\x20VPCs\x20**');const b=new DescribeVpcsCommand({}),c=await client[Y(0xa1)](b),{Vpcs:d}=c,e=[];d&&d['forEach']((g,h)=>{const Z=Y;g[Z(0x174)]&&g[Z(0xce)]&&e[Z(0x13a)]({'id':h,'vpcId':g[Z(0x174)],'cidr':g['CidrBlock']});});e[Y(0xf6)](function(g){const a0=Y;console[a0(0xd8)](a0(0x11e)+g['id']+a0(0xf9)+g['vpcId']+a0(0xa2)+g[a0(0xdd)]);});const f=await Actions[Y(0x12a)](Y(0xdf))||0x0;e[Y(0xf6)](function(g){const a1=Y;g['id']==f&&(a=g[a1(0x144)],Log[a1(0xbb)](a1(0xd2)+a+'\x0a'));});if(a==='')return Log[Y(0x143)](Y(0xa0)),'';return a;}async[a145w(0x107)](){const a2=a145w,a=await this[a2(0x180)]();if(a[a2(0x17c)]===0x0)return Log[a2(0x143)](a2(0xc2)),null;const b=await Actions['ask'](a2(0x119));!b&&(Log[a2(0x143)](a2(0xbe)),process[a2(0x161)](0x0));const c=a['find'](({id:d})=>{return d==parseInt(b);})||null;return c;}async[a145w(0x158)]({env:a}){const a3=a145w,b=this[a3(0x100)][a3(0xde)](),{appName:c}=b,d=c+'-'+a,f=await Actions[a3(0x12a)](a3(0xfa)+d+']\x20')||d,{filePath:g}=await this[a3(0x15e)]({'keyName':f,'env':a});try{const h=await Actions[a3(0x11f)](a3(0x10e),!![]);if(h)try{const i=a145f[a3(0x129)](a3(0xe9),a,'ssh.json');!this[a3(0x100)][a3(0x165)](i)&&await this['fsi'][a3(0xd3)]({'srcPath':a3(0x14f),'destPath':i,'context':{'app':f}});const j=a145e['readFileSync'](a145f[a3(0x129)](a3(0xe9),a,a3(0x13e)),a3(0xaf)),k=JSON[a3(0xd5)](j);k[a3(0x15a)]=a145f[a3(0x129)](a3(0x147),f+a3(0x120)),a145e[a3(0x12b)](a145f[a3(0x129)]('config',a,a3(0x13e)),JSON[a3(0x124)](k,null,0x2));}catch(l){Log[a3(0x143)](l),Log[a3(0x143)](a3(0x114));}}catch(m){Log[a3(0x143)](m),process[a3(0x161)](0x1);}return{'keyName':f,'filePath':g};}async[a145w(0xcb)](a){const a4=a145w,b=[],c={},d=new DescribeSecurityGroupsCommand(c),e=await client[a4(0xa1)](d),{SecurityGroups:f}=e;f&&f['forEach'](function(i,j){const a5=a4;i[a5(0x115)]&&i[a5(0x145)]&&b[a5(0x13a)]({'id':j,'name':i[a5(0x115)],'sgId':i[a5(0x145)]});});let g='',h=0x0;return b[a4(0xf6)](function(i){const a6=a4;i[a6(0xc6)]===a&&(g=i[a6(0xb0)],h=i['id']);}),{'sgList':b,'createdSgId':g,'listIndexId':h};}async[a145w(0xc8)](a){const a7=a145w;try{const b={'GroupId':a},c=new DeleteSecurityGroupCommand(b);await client[a7(0xa1)](c);}catch(d){Log['error'](d),process[a7(0x161)](0x1);}}}
|
|
1
|
+
const a145r=a145d;(function(a,b){const p=a145d,c=a();while(!![]){try{const d=parseInt(p(0x181))/0x1+-parseInt(p(0x1a8))/0x2+-parseInt(p(0x12f))/0x3+parseInt(p(0x147))/0x4+-parseInt(p(0x193))/0x5*(parseInt(p(0x1bb))/0x6)+parseInt(p(0x165))/0x7*(parseInt(p(0x183))/0x8)+parseInt(p(0x186))/0x9*(parseInt(p(0x199))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a145c,0xe4132));const a145b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a145a=a145b(this,function(){const q=a145d;return a145a[q(0x1d6)]()[q(0x11b)](q(0x1a1))[q(0x1d6)]()[q(0x12e)](a145a)['search']('(((.+)+)+)+$');});a145a();import a145e from'fs';import a145f from'path';function a145c(){const a8=['35664JkGpGd','Error\x20creating\x20hosted\x20zone','createKeyPair','25398jrSMtD','SubnetId','bright','info','send','The\x20domain\x20\x27','Processing\x20','sa-east-1','createFile','hvm','Description','base64','readFileSync','2296855hchpCg','key','virtualization-type','sgPorts','terminated','desc','150FunvLi','checkDomainAvailability','ImageId','AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials','eu-west-3','name','Region:\x20','\x20STATUS:\x20','(((.+)+)+)+$','length','From\x20AWS:','environment','push','Value','ap-east-1','212818fDIwem','UNSUPPORTED','getEcrLoginPassword','changeResourceRecordSets','amiId','ask','image-type','Canonical*Ubuntu*18.04*','maka-cli','$metadata','VpcId','subnet','sort','eu-central-2','chooseInstance','state','Key\x20Name:\x20[','linkEC2ToRoute53','cidr','6uVZjXr','subnetId','No\x20credentials\x20returned\x20from\x20AWS\x20ECR','Authorization\x20token\x20is\x20missing','getSecurityGroups','listHostedZonesByName','chmod\x20400\x20','ap-northeast-1','available','\x20CIDR:\x20','ignore','eu-west-1','getTime','**\x20Available\x20\x20VPCs\x20**','You\x20have\x20no\x20instances\x20created\x20by\x20maka-cli.\x20\x20Please\x20reivew\x20your\x20AWS\x20console\x20manually!!!','registerDomain',',\x20URI:\x20','Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[','find','Setting\x20SG\x20ID\x20to:\x20','createKeyPairEC2Key','Failed\x20in\x20','AvailabilityZone','getSubnetCidr','No\x20ECR\x20repositories\x20found\x20across\x20all\x20specified\x20regions.','eu-south-2','slice','toString','trim','Invalid\x20choice','Successfully\x20linked\x20EC2\x20instance\x20','date','Authorization\x20data\x20is\x20empty','GroupName','\x20AMIID:\x20','chooseSecurityGroup','success','0.0.0.0/0','You\x20will\x20need\x20to\x20update\x20the\x20ssh.json\x20file\x20yourself.','deleteKeyPair','\x20PRIV_IP:\x20','TLDRulesViolation','ec2create','Could\x20not\x20find\x20hosted\x20zone','type','Error\x20linking\x20EC2\x20to\x20Route\x2053:','RegistrationPrice','fsi','ap-southeast-3','ssh.json','There\x20was\x20an\x20error\x20registering\x20the\x20domain\x20name','CreationDate','split','listAvailableSubnets','\x20SG\x20NAME:\x20','uri','UserData','ca-central-1','tcp','notice','UPSERT','us-west-1','\x20INSTANCE_ID:\x20','userData','\x20Request\x20ID:\x20','ap-southeast-1','\x20:\x20','race','You\x20have\x20no\x20key-pairs,\x20please\x20create\x20one.\x20(maka\x20aws\x20create-key-pair\x20--env).','instanceId','Please\x20choose\x20a\x20VPC:\x20[0]\x20','withSpinner','af-south-1','**\x20Available\x20Security\x20Groups\x20**','repositoryName','search','Prices','KeyMaterial','join','authorizationData','_keys','writeFileSync','Response:\x20','getMakaProjectConfig','Subnets','status','\x20opened!','machine','description','us-west-2','ec2createSG','Error\x20fetching\x20domain\x20pricing:','EKS','Created:\x20','constructor','1567944VmkFIC','privateIp','isFile',',\x20Name:\x20','Pem\x20key\x20saved\x20to\x20','log','config','confirm','instance','me-south-1','maxCount','eu-west-2','includes','\x20AZONE:\x20','ebs','exit','\x20PUB_IP:\x20','root-device-type','KeyName','ap-southeast-2','ingressRule','template','requestId','error','3496300qOdhwd','\x20Status\x20Code:\x20','region','Canonical*Ubuntu*20.04*','\x20to\x20','CidrBlock','repositories','Error\x20Message:\x20','ec2describeInstances','us-east-1','listAllEcrRepositories','running','ap-northeast-2','concat','\x27\x20has\x20been\x20registered\x20successfully.','stop','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','\x20NAME:\x20','eu-north-1','\x20SGID:\x20','Final\x20list\x20of\x20ECR\x20repositories:','filter','imageId','Failed\x20to\x20decode\x20password\x20from\x20authorization\x20token','authorizationToken','env','ec2terminateInstance','sgId','vpcId','No\x20images\x20found.','1092vOxKYz','httpStatusCode','[+]\x20Setting\x20VPC\x20ID\x20to:\x20','Reservations','chooseVPC','deleteSecurityGroup','HostedZones','minCount','timeout','now','from','ap-south-1','ec2describeKeys','Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','warn','pem','message','ca-west-1','us-east-2','Error\x20saving\x20pem\x20file,\x20aborting','forEach','.pem.txt','stringify','map','\x20SUBNETID:\x20','eu-south-1','ID:\x20','pop','410769aHvXGL','ecrDeleteRepository'];a145c=function(){return a8;};return a145c();}import{execSync}from'child_process';import{Actions}from'../actions/actions.class.js';import{Log}from'../log/log.class.js';import{FSI}from'../fsi/fsi.class.js';import{EC2Client,DescribeInstancesCommand,RunInstancesCommand,TerminateInstancesCommand,CreateKeyPairCommand,AuthorizeSecurityGroupIngressCommand,CreateSecurityGroupCommand,RebootInstancesCommand,DescribeVpcsCommand,DescribeKeyPairsCommand,DeleteKeyPairCommand,DescribeSecurityGroupsCommand,DeleteSecurityGroupCommand,DescribeImagesCommand,DescribeSubnetsCommand}from'@aws-sdk/client-ec2';import{ECRClient,CreateRepositoryCommand,DeleteRepositoryCommand,GetAuthorizationTokenCommand,DescribeRepositoriesCommand}from'@aws-sdk/client-ecr';import{Route53,Route53Client,CreateHostedZoneCommand}from'@aws-sdk/client-route-53';import{Route53Domains,CheckDomainAvailabilityCommand,RegisterDomainCommand,ListPricesCommand}from'@aws-sdk/client-route-53-domains';const client=new EC2Client({}),route53Client=new Route53Client({}),route53=new Route53({}),route53Domains=new Route53Domains({});function a145d(a,b){const c=a145c();return a145d=function(d,e){d=d-0x109;let f=c[d];return f;},a145d(a,b);}export class AWS{[a145r(0x1ea)];constructor(){const s=a145r;this[s(0x1ea)]=new FSI();}async[a145r(0x1de)](a){const t=a145r;try{const {listIndexId:b,createdSgId:c,sgList:d}=await this['getSecurityGroups'](a);let f='';if(c===''){Log['notice'](t(0x119)),d['forEach'](function(h){const u=t;h['name']===a?Log[u(0x10b)](u(0x17f)+h['id']+u(0x1f1)+h[u(0x19e)]+'\x20SGID:\x20'+h[u(0x162)]):Log[u(0x188)](u(0x17f)+h['id']+u(0x1f1)+h[u(0x19e)]+u(0x15a)+h[u(0x162)]);});const g=await Actions[t(0x1ad)](t(0x1cc)+b+']\x20')||b[t(0x1d6)]();d['forEach'](function(h){const v=t;h['id']===parseInt(g)&&(f=h[v(0x162)],Log[v(0x1df)]('Setting\x20SG\x20ID\x20to:\x20'+f+'\x0a'));});}else f=c,Log[t(0x1df)](t(0x1ce)+f+'\x0a');if(f==='')throw new Error(t(0x157));return f;}catch(h){Log[t(0x146)](h);throw h;}}async['listAvailableAMIs'](){const w=a145r;let a='';try{const b=new EC2Client({}),c={'Filters':[{'Name':'architecture','Values':['x86_64']},{'Name':w(0x195),'Values':[w(0x18f)]},{'Name':w(0x140),'Values':[w(0x13d)]},{'Name':w(0x1b7),'Values':[w(0x1c3)]},{'Name':w(0x1ae),'Values':[w(0x127)]},{'Name':w(0x128),'Values':[w(0x1af),w(0x14a)]}]},d=new DescribeImagesCommand(c),{Images:f}=await b['send'](d);if(f&&f[w(0x1a2)]>0x0){const g=new Date(),h=new Date(g[w(0x1c7)]()-0x1e*0x18*0x3c*0x3c*0x3e8),i=f[w(0x15c)](j=>j[w(0x1ee)]&&!j[w(0x190)]?.[w(0x13b)](w(0x1a9))&&!j[w(0x190)]?.[w(0x13b)](w(0x12c))&&new Date(j['CreationDate'])>h)[w(0x17c)](j=>({'amiId':j[w(0x19b)],'desc':j[w(0x190)],'date':j[w(0x1ee)]}));if(i['length']>0x0){i[w(0x1b4)]((n,o)=>new Date(o[w(0x1da)])[w(0x1c7)]()-new Date(n['date'])[w(0x1c7)]());const j=i[w(0x1d5)](0x0,0x4),k=j[w(0x17c)]((n,o)=>({'id':o,'amiId':n[w(0x1ac)],'desc':n['desc']}));k[w(0x179)](n=>{const x=w;Log[x(0x188)](x(0x17f)+n['id']+x(0x1dd)+n[x(0x1ac)]+'\x20DESCRIPTION:\x20'+n[x(0x198)]);});const l=await Actions[w(0x1ad)]('Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20')||'0',m=k[w(0x1cd)](n=>n['id']===parseInt(l));if(m)a=m[w(0x1ac)],Log[w(0x1df)]('Setting\x20AMI\x20ID\x20to\x20'+a+w(0x112)+m[w(0x198)]);else throw Log[w(0x146)](w(0x157));}else throw Log[w(0x146)]('No\x20suitable\x20images\x20found\x20within\x20the\x20last\x2030\x20days.');}else throw Log[w(0x146)](w(0x164));}catch(n){Log[w(0x146)](n);}return a;}async[a145r(0x1f0)](){const y=a145r;let a='';try{const b=new EC2Client({}),c={},d=new DescribeSubnetsCommand(c),{Subnets:f}=await b[y(0x18a)](d);if(f&&f[y(0x1a2)]>0x0){const g=f[y(0x17c)]((j,k)=>({'id':k,'cidr':j[y(0x14c)],'az':j[y(0x1d1)],'subnetId':j[y(0x187)]}));g[y(0x179)](j=>{const z=y;Log[z(0x188)]('ID:\x20'+j['id']+z(0x1c4)+j[z(0x1ba)]+z(0x13c)+j['az']+z(0x17d)+j[z(0x1bc)]);});const h=await Actions['ask'](y(0x172))||'0',i=g[y(0x1cd)](j=>j['id']===parseInt(h));if(i)a=i[y(0x1bc)],Log[y(0x1df)]('Setting\x20Subnet\x20ID\x20to\x20'+a);else throw Log[y(0x146)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');}else throw Log[y(0x146)]('No\x20subnets\x20found.');}catch(j){Log[y(0x146)](j);}return a;}async[a145r(0x1d2)](a){const A=a145r;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[A(0x124)][A(0x1a2)]>0x0?e[A(0x124)][0x0][A(0x14c)]||'':'';}catch(f){return Log['error'](f),'';}}async['ecrCreateRepository'](a){const B=a145r;try{const b=new ECRClient({'region':a[B(0x149)]}),c={'repositoryName':a[B(0x19e)]},d=new CreateRepositoryCommand(c),f=await b[B(0x18a)](d);return Log[B(0x1df)]('Repository\x20\x22'+a[B(0x19e)]+'\x22\x20created\x20successfully\x20in\x20'+a[B(0x149)]+'.'),f;}catch(g){Log[B(0x146)]('Failed\x20to\x20create\x20repository\x20in\x20'+a['region']+':\x20'+g);throw g;}}async[a145r(0x151)](a){const C=a145r,b=[C(0x150),C(0x177),C(0x10d),C(0x129),C(0x170),'ap-northeast-3',C(0x153),C(0x111),C(0x142),C(0x1c2),C(0x109),'eu-central-1',C(0x1c6),C(0x13a),C(0x19d),C(0x159),C(0x18d),C(0x118),C(0x1a7),'ap-south-2',C(0x1eb),'ap-southeast-4',C(0x176),C(0x17e),C(0x1d4),C(0x1b5),C(0x138),'me-central-1','il-central-1'],c=[C(0x150),'us-east-2','us-west-1',C(0x129)],d=a==='all'?b:a?a[C(0x1ef)](','):c;let f=[];const g=Log[C(0x117)]();for(const h of d){g['start'](C(0x18c)+h['trim']()+'...');const i=new ECRClient({'region':h['trim']()});try{let j=undefined;do{const k=await Promise[C(0x113)]([i[C(0x18a)](new DescribeRepositoriesCommand({'nextToken':j})),new Promise(l=>setTimeout(()=>l('timeout'),0x7d0))]);if(k===C(0x16d)){Log[C(0x173)]('Timeout\x20while\x20processing\x20'+h[C(0x1d7)]()+'.');break;}else k[C(0x14d)]&&k['repositories'][C(0x1a2)]>0x0&&(f=f[C(0x154)](k[C(0x14d)]['map'](l=>({'name':l[C(0x11a)],'uri':l['repositoryUri'],'region':h[C(0x1d7)]()}))));j=k['nextToken'];}while(j);}catch(l){Log[C(0x146)](C(0x1d0)+h['trim']()+':\x20'+l['message']);}finally{g[C(0x156)]();}}return f[C(0x1a2)]>0x0?(console[C(0x134)](),Log[C(0x1df)](C(0x15b)),f[C(0x179)](m=>{const D=C;Log[D(0x189)](D(0x19f)+m[D(0x149)]+D(0x132)+m[D(0x19e)]+D(0x1cb)+m[D(0x1f2)]);})):Log[C(0x173)](C(0x1d3)),f;}async['route53CreateHostedZone'](a){const E=a145r;try{const b={'CallerReference':''+Date[E(0x16e)](),'Name':a},c=new CreateHostedZoneCommand(b);await route53Client['send'](c),Log[E(0x1df)]('Hosted\x20zone\x20created\x20successfully!');}catch(d){Log[E(0x146)](E(0x184)),console['error'](d);}}async[a145r(0x1ca)](a,b,c,d){const F=a145r;try{const e={'DomainName':b,'DurationInYears':c,'AutoRenew':d,'AdminContact':a,'RegistrantContact':a,'TechContact':a,'BillingContact':a},f=new RegisterDomainCommand(e),g=await route53Domains[F(0x18a)](f);Log['notice'](F(0x18b)+b+F(0x155)),Log[F(0x10b)](F(0x122)+JSON[F(0x17b)](g));}catch(h){Log[F(0x146)](F(0x1ed)),Log[F(0x173)](F(0x1a3)),h['$metadata']&&(console['error'](F(0x148)+h[F(0x1b1)]['httpStatusCode']),console[F(0x146)](F(0x110)+h[F(0x1b1)][F(0x145)])),console[F(0x146)](F(0x14e)+h[F(0x175)]),h['name']===F(0x1e4)?Log['error'](h[F(0x175)]):Log[F(0x146)]('An\x20unknown\x20error\x20occurred.'),console['error'](h);}}async[a145r(0x19a)](a){const G=a145r,b={'DomainName':a},c=new CheckDomainAvailabilityCommand(b),d=await route53Domains[G(0x18a)](c),e=d['Availability']==='AVAILABLE';if(e){const f=a[G(0x1ef)]('.')[G(0x180)](),g={'MaxItems':0x1,'Tld':f};try{const h=new ListPricesCommand(g),i=await route53Domains[G(0x18a)](h);if(i&&i[G(0x11c)]&&i['Prices'][0x0]?.[G(0x1e9)]){const j=i[G(0x11c)][0x0][G(0x1e9)];return{'available':e,'cost':j};}}catch(k){console[G(0x146)](G(0x12b),k);}}return{'available':e};}async[a145r(0x1b9)](a,b,c){const H=a145r;try{const d=await route53[H(0x1c0)]({'DNSName':c});if(!d?.['HostedZones'])throw Log[H(0x146)](H(0x1e6));const e=d?.[H(0x16b)][0x0]['Id'],f={'ChangeBatch':{'Changes':[{'Action':H(0x10c),'ResourceRecordSet':{'Name':c,'Type':'A','TTL':0x12c,'ResourceRecords':[{'Value':b}]}}]},'HostedZoneId':e};await route53[H(0x1ab)](f),Log['notice'](H(0x1d9)+a+H(0x14b)+c);}catch(g){console['error'](H(0x1e8),g);}}async[a145r(0x1aa)]({awsAccountId:a,region:b}){const I=a145r,c=new ECRClient({'region':b});try{const d=new GetAuthorizationTokenCommand({'registryIds':[a]}),f=await c[I(0x18a)](d);if(!f[I(0x11f)]||f[I(0x11f)][I(0x1a2)]===0x0)throw new Error(I(0x1db));const g=f[I(0x11f)][0x0];if(!g[I(0x15f)])throw new Error(I(0x1be));const h=g[I(0x15f)];if(!h)throw new Error(I(0x1bd));const i=Buffer[I(0x16f)](h,I(0x191))[I(0x1d6)](),j=i[I(0x1ef)](':')[0x1];if(!j)throw new Error(I(0x15e));return j;}catch(k){Log['error'](k);throw k;}}async[a145r(0x182)]({repoName:a,region:b}){const J=a145r,c=new ECRClient({'region':b});try{const d=new DeleteRepositoryCommand({'repositoryName':a,'force':!![]}),f=await c['send'](d);return f;}catch(g){Log[J(0x146)](g);throw g;}}async[a145r(0x1e5)](a){const K=a145r;try{const b={'BlockDeviceMappings':[{'DeviceName':'/dev/sdh','Ebs':{'VolumeSize':0x64}}],'ImageId':a[K(0x15d)],'InstanceType':a[K(0x1e7)],'KeyName':a[K(0x194)],'MaxCount':a[K(0x139)],'MinCount':a[K(0x16c)],'SecurityGroupIds':a['sgIds'][K(0x1ef)](','),'SubnetId':a[K(0x1b3)],'TagSpecifications':[{'ResourceType':K(0x137),'Tags':a['tags']}]};a[K(0x10f)]&&(b[K(0x1f3)]='file://'+a[K(0x10f)]);const c=new RunInstancesCommand(b),d=await client[K(0x18a)](c);return d;}catch(f){Log[K(0x146)](f);}}async[a145r(0x161)](a){const L=a145r;try{const b={'InstanceIds':[a[L(0x115)]]},c=new TerminateInstancesCommand(b),d=await client['send'](c);return d;}catch(f){return Log[L(0x146)](f),{};}}async[a145r(0x1cf)]({keyName:a,env:b}){const M=a145r,c=this[M(0x1ea)]['getAppConfigPath'](b),d=a145f[M(0x11e)](c,M(0x120),a+M(0x17a));try{const f={'KeyName':a},g=new CreateKeyPairCommand(f),h=await client[M(0x18a)](g),i=h[M(0x11d)];if(i){await this[M(0x1ea)][M(0x18e)]({'filePath':d,'data':i}),execSync(M(0x1c1)+d,{'stdio':M(0x1c5)});const j=this[M(0x1ea)][M(0x131)](d);if(j)return Log[M(0x1df)](M(0x133)+d),{'keyName':a,'filePath':d};else throw new Error(M(0x178));}else throw new Error('Error\x20generating\x20key\x20pair');}catch(k){Log[M(0x146)](k),process['exit'](0x1);}}async[a145r(0x143)]({port:a,groupId:b}){const N=a145r,c={'GroupId':b,'IpPermissions':[{'FromPort':a,'IpProtocol':N(0x10a),'IpRanges':[{'CidrIp':N(0x1e0),'Description':''}],'ToPort':a}]},d=new AuthorizeSecurityGroupIngressCommand(c);return Log['notice']('Port\x20'+a+N(0x126)),await client['send'](d);}async[a145r(0x12a)](a){const O=a145r;try{a[O(0x128)]===''&&(a[O(0x128)]=await Actions['ask']('Description:')||'Web\x20App');const b={'Description':a[O(0x128)],'GroupName':a[O(0x19e)],'VpcId':a[O(0x163)]},c=new CreateSecurityGroupCommand(b),d=await client[O(0x18a)](c),{GroupId:f}=d;if(!d)throw new Error(O(0x19c));f&&a[O(0x196)][O(0x179)](g=>{const P=O;this[P(0x143)]({'port':parseInt(g),'groupId':f});}),Log['success'](O(0x12d)+f+'\x20NAME:\x20'+a['name']);}catch(g){return Log['error'](g),![];}return!![];}async[a145r(0x171)](a){const Q=a145r,b=[];try{const c={},d=new DescribeKeyPairsCommand(c),f=await client[Q(0x18a)](d);if(!f)throw Q(0x19c);const {KeyPairs:g}=f;g?(g?.[Q(0x179)]((h,i)=>{const R=Q;h[R(0x141)]&&b[R(0x1a5)]({'id':i,'name':h[R(0x141)]});}),b['length']>0x0&&b[Q(0x179)](h=>{const S=Q;h[S(0x19e)]===a?.['suggestion']?Log[S(0x1df)]('ID:\x20'+h['id']+'\x20NAME:\x20'+h[S(0x19e)]):Log[S(0x10b)]('ID:\x20'+h['id']+S(0x158)+h[S(0x19e)]);})):Log['error'](Q(0x114));}catch(h){Log[Q(0x146)](h);}return b;}async[a145r(0x1e2)](a){const T=a145r;try{const b={'KeyName':a},c=new DeleteKeyPairCommand(b);await client[T(0x18a)](c);}catch(d){Log[T(0x146)](d),process[T(0x13e)](0x1);}}async[a145r(0x14f)](){const U=a145r,a=[];try{const b={'Filters':[{'Name':'tag:created-by','Values':[U(0x1b0)]}]},c=new DescribeInstancesCommand(b),d=await client['send'](c);d[U(0x168)]?.['forEach']((f,g)=>{const V=U;if(f?.['Instances']){const {InstanceId:h,PublicIpAddress:i,PrivateIpAddress:j,State:k,KeyName:l,Tags:m}=f['Instances'][0x0],n=m?.[V(0x1cd)](({Key:o})=>o===V(0x1a4));a[V(0x1a5)]({'id':g,'instanceId':h,'privateIp':j,'publicIp':i,'status':k?.['Name'],'name':l,'env':n?.[V(0x1a6)]});}}),a[U(0x1a2)]>0x0?a['forEach'](f=>{const W=U,g=W(0x17f)+f['id']+W(0x158)+f[W(0x19e)]+'\x20ENV:\x20'+f[W(0x160)]+W(0x1a0)+f['status']+W(0x10e)+f[W(0x115)]+W(0x13f)+f['publicIp']+W(0x1e3)+f[W(0x130)];if(f[W(0x125)]===W(0x197))Log[W(0x146)](g);else f['status']===W(0x152)?Log['success'](g):Log[W(0x10b)](g);}):Log[U(0x146)](U(0x1c9));}catch(f){Log[U(0x146)](f);}return a;}async['ec2rebootInstance'](a){const X=a145r;try{const b={'InstanceIds':[a[X(0x115)]]},c=new RebootInstancesCommand(b),d=await client['send'](c);return d[X(0x1b1)][X(0x166)]===0xc8&&Log[X(0x1df)]('Instance\x20rebooted!'),d;}catch(f){Log['error'](f);}}async[a145r(0x169)](){const Y=a145r;let a='';Log['notice'](Y(0x1c8));const b=new DescribeVpcsCommand({}),c=await client[Y(0x18a)](b),{Vpcs:d}=c,e=[];d&&d[Y(0x179)]((g,h)=>{const Z=Y;g[Z(0x1b2)]&&g[Z(0x14c)]&&e[Z(0x1a5)]({'id':h,'vpcId':g[Z(0x1b2)],'cidr':g[Z(0x14c)]});});e[Y(0x179)](function(g){const a0=Y;console[a0(0x134)]('ID:\x20'+g['id']+'\x20VPCID:\x20'+g[a0(0x163)]+a0(0x1c4)+g[a0(0x1ba)]);});const f=await Actions[Y(0x1ad)](Y(0x116))||0x0;e[Y(0x179)](function(g){const a1=Y;g['id']==f&&(a=g[a1(0x163)],Log[a1(0x1df)](a1(0x167)+a+'\x0a'));});if(a==='')return Log['error']('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.'),'';return a;}async[a145r(0x1b6)](){const a2=a145r,a=await this[a2(0x14f)]();if(a[a2(0x1a2)]===0x0)return Log[a2(0x146)]('No\x20instances\x20found'),null;const b=await Actions[a2(0x1ad)]('[?]\x20Please\x20choose\x20an\x20instance\x20ID:\x20');!b&&(Log[a2(0x146)](a2(0x1d8)),process[a2(0x13e)](0x0));const c=a[a2(0x1cd)](({id:d})=>{return d==parseInt(b);})||null;return c;}async[a145r(0x185)]({env:a}){const a3=a145r,b=this[a3(0x1ea)][a3(0x123)](),{appName:c}=b,d=c+'-'+a,f=await Actions[a3(0x1ad)](a3(0x1b8)+d+']\x20')||d,{filePath:g}=await this['createKeyPairEC2Key']({'keyName':f,'env':a});try{const h=await Actions[a3(0x136)]('Would\x20you\x20like\x20to\x20update\x20the\x20ssh.json\x20config\x20file?',!![]);if(h)try{const i=a145f[a3(0x11e)](a3(0x135),a,a3(0x1ec));!this[a3(0x1ea)][a3(0x131)](i)&&await this[a3(0x1ea)][a3(0x144)]({'srcPath':'config/ssh.json','destPath':i,'context':{'app':f}});const j=a145e[a3(0x192)](a145f[a3(0x11e)]('config',a,a3(0x1ec)),'utf8'),k=JSON['parse'](j);k[a3(0x174)]=a145f[a3(0x11e)](a3(0x120),f+a3(0x17a)),a145e[a3(0x121)](a145f[a3(0x11e)]('config',a,a3(0x1ec)),JSON[a3(0x17b)](k,null,0x2));}catch(l){Log['error'](l),Log[a3(0x146)](a3(0x1e1));}}catch(m){Log['error'](m),process[a3(0x13e)](0x1);}return{'keyName':f,'filePath':g};}async[a145r(0x1bf)](a){const a4=a145r,b=[],c={},d=new DescribeSecurityGroupsCommand(c),e=await client[a4(0x18a)](d),{SecurityGroups:f}=e;f&&f[a4(0x179)](function(i,j){const a5=a4;i[a5(0x1dc)]&&i['GroupId']&&b[a5(0x1a5)]({'id':j,'name':i[a5(0x1dc)],'sgId':i['GroupId']});});let g='',h=0x0;return b['forEach'](function(i){const a6=a4;i[a6(0x19e)]===a&&(g=i['sgId'],h=i['id']);}),{'sgList':b,'createdSgId':g,'listIndexId':h};}async[a145r(0x16a)](a){const a7=a145r;try{const b={'GroupId':a},c=new DeleteSecurityGroupCommand(b);await client[a7(0x18a)](c);}catch(d){Log[a7(0x146)](d),process['exit'](0x1);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a146c(){var n=['
|
|
1
|
+
function a146c(){var n=['57QLoYAn','24538dlfTqy','26212kMlUcX','toString','5210kOFKlS','search','35XKOknr','8PdKFDO','963cdMqIk','234858LvqlPt','1490cSAkRb','77NmCFuJ','671935khHjbG','apply','constructor'];a146c=function(){return n;};return a146c();}function a146d(a,b){var c=a146c();return a146d=function(d,e){d=d-0xbd;var f=c[d];return f;},a146d(a,b);}(function(a,b){var k=a146d,c=a();while(!![]){try{var d=-parseInt(k(0xc1))/0x1+parseInt(k(0xc4))/0x2+-parseInt(k(0xc0))/0x3*(parseInt(k(0xc2))/0x4)+-parseInt(k(0xc6))/0x5*(-parseInt(k(0xc9))/0x6)+parseInt(k(0xcb))/0x7*(-parseInt(k(0xc7))/0x8)+-parseInt(k(0xc8))/0x9*(-parseInt(k(0xca))/0xa)+parseInt(k(0xbd))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a146c,0x31f22));export var CountryCode;(function(c){var d=(function(){var f=!![];return function(g,h){var i=f?function(){var l=a146d;if(h){var j=h[l(0xbe)](g,arguments);return h=null,j;}}:function(){};return f=![],i;};}()),e=d(this,function(){var m=a146d;return e[m(0xc3)]()['search']('(((.+)+)+)+$')['toString']()[m(0xbf)](e)[m(0xc5)]('(((.+)+)+)+$');});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
|
-
|
|
1
|
+
const a147m=a147d;(function(a,b){const j=a147d,c=a();while(!![]){try{const d=parseInt(j(0xc8))/0x1*(parseInt(j(0xc6))/0x2)+parseInt(j(0xcb))/0x3*(-parseInt(j(0xc4))/0x4)+-parseInt(j(0xca))/0x5+-parseInt(j(0xd3))/0x6+-parseInt(j(0xbd))/0x7*(-parseInt(j(0xce))/0x8)+-parseInt(j(0xc7))/0x9+-parseInt(j(0xcf))/0xa*(-parseInt(j(0xc9))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a147c,0x7edff));const a147b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a147d;if(c){const e=c[k(0xd5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a147a=a147b(this,function(){const l=a147d;return a147a['toString']()[l(0xc5)]('(((.+)+)+)+$')['toString']()[l(0xc2)](a147a)[l(0xc5)](l(0xc3));});a147a();import{execSync}from'child_process';function a147d(a,b){const c=a147c();return a147d=function(d,e){d=d-0xbc;let f=c[d];return f;},a147d(a,b);}import{Log}from'../log/log.class.js';function a147c(){const q=['.amazonaws.com','6001800mrFMCa','pushImage','apply','.amazonaws.com/','2305576dUomyU','toString','echo\x20','tag','docker\x20','constructor','(((.+)+)+)+$','845816TDTkQE','search','9346cNzVkT','913167xWMIFe','117ZrIgrh','1314379AGiUzj','1190515AgtmzX','3teLILq','error','join','8MTMRJp','100vJsELQ','.dkr.ecr.','inherit'];a147c=function(){return q;};return a147c();}export class Docker{static[a147m(0xc0)]({imageName:a,awsAccountId:b,region:c,repoName:d}){const n=a147m;try{const f=[n(0xc0),a,b+n(0xd0)+c+'.amazonaws.com/'+d],g=n(0xc1)+f['join']('\x20'),h=execSync(g,{'stdio':n(0xd1)})[n(0xbe)]();return h;}catch(i){return Log[n(0xcc)](i),'';}}static['awsLogin']({awsAccountId:a,region:b,password:c}){const o=a147m;try{const d=o(0xbf)+c+'\x20|\x20docker\x20login\x20--username\x20AWS\x20--password-stdin\x20'+a+o(0xd0)+b+o(0xd2);return execSync(d,{'stdio':o(0xd1)}),d;}catch(f){return Log['error'](f),'';}}static[a147m(0xd4)]({awsAccountId:a,region:b,repoName:c}){const p=a147m;try{const d=['push',a+p(0xd0)+b+p(0xbc)+c],f=p(0xc1)+d[p(0xcd)]('\x20'),g=execSync(f,{'stdio':p(0xd1)})[p(0xbe)]();return g;}catch(h){return Log[p(0xcc)](h),'';}}}
|