@maka/maka-cli 5.1.21 → 5.1.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (174) hide show
  1. package/bundle/obf/package.json +1 -1
  2. package/bundle/obf/src/command.js +1 -1
  3. package/bundle/obf/src/commands/_index.js +1 -1
  4. package/bundle/obf/src/commands/ai.js +1 -1
  5. package/bundle/obf/src/commands/aws/_index.js +1 -1
  6. package/bundle/obf/src/commands/aws/aws.command.js +1 -1
  7. package/bundle/obf/src/commands/aws/cecr.sub.cmd.js +1 -1
  8. package/bundle/obf/src/commands/aws/chz.sub.cmd.js +1 -1
  9. package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
  10. package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
  11. package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
  12. package/bundle/obf/src/commands/aws/decr.sub.cmd.js +1 -1
  13. package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
  14. package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
  15. package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
  16. package/bundle/obf/src/commands/aws/lecr.sub.cmd.js +1 -1
  17. package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
  18. package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
  19. package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
  20. package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
  21. package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
  22. package/bundle/obf/src/commands/build/_index.js +1 -1
  23. package/bundle/obf/src/commands/build/build.js +1 -1
  24. package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
  25. package/bundle/obf/src/commands/create.js +1 -1
  26. package/bundle/obf/src/commands/debug.js +1 -1
  27. package/bundle/obf/src/commands/deploy/_index.js +1 -1
  28. package/bundle/obf/src/commands/deploy/deploy.command.js +1 -1
  29. package/bundle/obf/src/commands/deploy/galaxy.sub.cmd.js +1 -1
  30. package/bundle/obf/src/commands/deploy/ubuntu.sub.cmd.js +1 -1
  31. package/bundle/obf/src/commands/game/_index.js +1 -1
  32. package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
  33. package/bundle/obf/src/commands/game/play.command.js +1 -1
  34. package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
  35. package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
  36. package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
  37. package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
  38. package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
  39. package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
  40. package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
  41. package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
  42. package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
  43. package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
  44. package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
  45. package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
  46. package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
  47. package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
  48. package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
  49. package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
  50. package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
  51. package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
  52. package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
  53. package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
  54. package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
  55. package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
  56. package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
  57. package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
  58. package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
  59. package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
  60. package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
  61. package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
  62. package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
  63. package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
  64. package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
  65. package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
  66. package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
  67. package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
  68. package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
  69. package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
  70. package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
  71. package/bundle/obf/src/commands/generate.js +1 -1
  72. package/bundle/obf/src/commands/get/_index.js +1 -1
  73. package/bundle/obf/src/commands/get/get.command.js +1 -1
  74. package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
  75. package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
  76. package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
  77. package/bundle/obf/src/commands/help.js +1 -1
  78. package/bundle/obf/src/commands/install.js +1 -1
  79. package/bundle/obf/src/commands/jsdoc.js +1 -1
  80. package/bundle/obf/src/commands/lint.js +1 -1
  81. package/bundle/obf/src/commands/login.js +1 -1
  82. package/bundle/obf/src/commands/logout.js +1 -1
  83. package/bundle/obf/src/commands/logs.js +1 -1
  84. package/bundle/obf/src/commands/maka.cmd.js +1 -1
  85. package/bundle/obf/src/commands/murder.js +1 -1
  86. package/bundle/obf/src/commands/profile.js +1 -1
  87. package/bundle/obf/src/commands/proxy.js +1 -1
  88. package/bundle/obf/src/commands/reconfig.js +1 -1
  89. package/bundle/obf/src/commands/register.js +1 -1
  90. package/bundle/obf/src/commands/run/_index.js +1 -1
  91. package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
  92. package/bundle/obf/src/commands/run/run.command.js +1 -1
  93. package/bundle/obf/src/commands/set/_index.js +1 -1
  94. package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
  95. package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
  96. package/bundle/obf/src/commands/set/set.command.js +1 -1
  97. package/bundle/obf/src/commands/ssh.js +1 -1
  98. package/bundle/obf/src/commands/ssl.js +1 -1
  99. package/bundle/obf/src/commands/testCmd/_index.js +1 -1
  100. package/bundle/obf/src/commands/testCmd/jest.sub.cmd.js +1 -1
  101. package/bundle/obf/src/commands/testCmd/mocha.sub.cmd.js +1 -1
  102. package/bundle/obf/src/commands/testCmd/test.command.js +1 -1
  103. package/bundle/obf/src/commands/undo.js +1 -1
  104. package/bundle/obf/src/commands/uninstall.js +1 -1
  105. package/bundle/obf/src/commands/version/_index.js +1 -1
  106. package/bundle/obf/src/commands/version/list.sub.cmd.js +1 -1
  107. package/bundle/obf/src/commands/version/use.sub.cmd.js +1 -1
  108. package/bundle/obf/src/commands/version/version.js +1 -1
  109. package/bundle/obf/src/error.js +1 -1
  110. package/bundle/obf/src/exec.js +1 -1
  111. package/bundle/obf/src/generator.js +1 -1
  112. package/bundle/obf/src/generators/_index.js +1 -1
  113. package/bundle/obf/src/generators/api.js +1 -1
  114. package/bundle/obf/src/generators/aws/_index.js +1 -1
  115. package/bundle/obf/src/generators/aws/aws.js +1 -1
  116. package/bundle/obf/src/generators/aws/cloudformation/_index.js +1 -1
  117. package/bundle/obf/src/generators/aws/cloudformation/cloudformation.js +1 -1
  118. package/bundle/obf/src/generators/aws/cloudformation/create-ec2-instance.cf.gen.js +1 -1
  119. package/bundle/obf/src/generators/collection.js +1 -1
  120. package/bundle/obf/src/generators/component.js +1 -1
  121. package/bundle/obf/src/generators/config.js +1 -1
  122. package/bundle/obf/src/generators/dbc.js +1 -1
  123. package/bundle/obf/src/generators/dockerfile.js +1 -1
  124. package/bundle/obf/src/generators/hook.js +1 -1
  125. package/bundle/obf/src/generators/kits/_index.js +1 -1
  126. package/bundle/obf/src/generators/kits/auth/_index.js +1 -1
  127. package/bundle/obf/src/generators/kits/auth/auth.generator.js +1 -1
  128. package/bundle/obf/src/generators/kits/auth/basic-meteor.auth.gen.js +1 -1
  129. package/bundle/obf/src/generators/kits/auth/provider.auth.gen.js +1 -1
  130. package/bundle/obf/src/generators/kits/esri/_index.js +1 -1
  131. package/bundle/obf/src/generators/kits/esri/esri.generator.js +1 -1
  132. package/bundle/obf/src/generators/kits/esri/map.esri.gen.js +1 -1
  133. package/bundle/obf/src/generators/kits/kit.js +1 -1
  134. package/bundle/obf/src/generators/kits/mui/_index.js +1 -1
  135. package/bundle/obf/src/generators/kits/mui/auth.mui.gen.js +1 -1
  136. package/bundle/obf/src/generators/kits/mui/frame.mui.gen.js +1 -1
  137. package/bundle/obf/src/generators/kits/mui/mui.generator.js +1 -1
  138. package/bundle/obf/src/generators/layout.js +1 -1
  139. package/bundle/obf/src/generators/maka.gen.js +1 -1
  140. package/bundle/obf/src/generators/methods.js +1 -1
  141. package/bundle/obf/src/generators/package.js +1 -1
  142. package/bundle/obf/src/generators/page.js +1 -1
  143. package/bundle/obf/src/generators/publish.js +1 -1
  144. package/bundle/obf/src/generators/route.js +1 -1
  145. package/bundle/obf/src/generators/services/_index.js +1 -1
  146. package/bundle/obf/src/generators/services/logger.js +1 -1
  147. package/bundle/obf/src/generators/services/openssl.js +1 -1
  148. package/bundle/obf/src/generators/services/service.js +1 -1
  149. package/bundle/obf/src/generators/services/translation.js +1 -1
  150. package/bundle/obf/src/maka.js +1 -1
  151. package/bundle/obf/src/tool.js +1 -1
  152. package/bundle/obf/src/tools/actions/actions.class.js +1 -1
  153. package/bundle/obf/src/tools/aws/aws.class.js +1 -1
  154. package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
  155. package/bundle/obf/src/tools/cfg/cfg.class.js +1 -1
  156. package/bundle/obf/src/tools/docker/docker.class.js +1 -1
  157. package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
  158. package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
  159. package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
  160. package/bundle/obf/src/tools/https/https.class.js +1 -1
  161. package/bundle/obf/src/tools/https/https.interface.js +1 -1
  162. package/bundle/obf/src/tools/log/log.class.js +1 -1
  163. package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
  164. package/bundle/obf/src/tools/mpi/mpi.class.js +1 -1
  165. package/bundle/obf/src/tools/options/options.class.js +1 -1
  166. package/bundle/obf/src/tools/pkg/pkg.class.js +1 -1
  167. package/bundle/obf/src/tools/progress/progress.class.js +1 -1
  168. package/bundle/obf/src/tools/scaffold/scaffold.class.js +1 -1
  169. package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
  170. package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
  171. package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
  172. package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
  173. package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
  174. package/package.json +1 -1
@@ -1 +1 @@
1
- function a167d(a,b){const c=a167c();return a167d=function(d,e){d=d-0xc7;let f=c[d];return f;},a167d(a,b);}const a167z=a167d;(function(a,b){const v=a167d,c=a();while(!![]){try{const d=-parseInt(v(0x119))/0x1+-parseInt(v(0x131))/0x2*(parseInt(v(0x169))/0x3)+-parseInt(v(0xe4))/0x4+-parseInt(v(0xe5))/0x5*(parseInt(v(0x157))/0x6)+parseInt(v(0x10c))/0x7*(parseInt(v(0xcd))/0x8)+parseInt(v(0x10b))/0x9*(-parseInt(v(0x15c))/0xa)+parseInt(v(0x11a))/0xb*(parseInt(v(0xfa))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a167c,0x9923d));const a167b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a167d;if(c){const e=c[w(0x142)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a167a=a167b(this,function(){const x=a167d;return a167a[x(0x153)]()['search'](x(0x112))[x(0x153)]()[x(0xe0)](a167a)[x(0x164)](x(0x112));});a167a();import a167e from'path';import a167f from'fs';import a167g from'util';import{exec}from'child_process';function a167c(){const a7=['pathFromApp','templateContent()','promisify','While\x20injecting\x20','Dockerfile','meteor','1221543wMCNuo','1407HqsZwg','css','.js','filter','slice','isDirectory','(((.+)+)+)+$','rewriteSourcePathForEngine','header','Unable\x20to\x20find\x20the\x20target\x20block\x20to\x20inject\x20content\x20in\x20','createFile','injectAroundString()','.git','167467dWHsDl','706849KiEJiE','rewriteDestinationPathForType','pop','template()','pathFromTemplates','MAKA_DEV','existsSync','\x20doesn\x27t\x20exist','Directory\x20','utf8','rewriteDestinationPathForEngine','Error\x20in\x20','.meteor','No\x20matching\x20section\x20found.','repeat','.js.jsx','from','pathFromAppWithNoReWrite()','\x20->','stringify','keys','Couldn\x27t\x20find\x20a\x20source\x20template\x20in\x20','injectIntoFile','2dzxhNb','trim','\x20from','No\x20app\x20directory\x20found','some','writeSourcePath','\x27;\x0a','cwd','isFile','concat','scss','platform','from\x20\x22','engine','relative','MAKA_COMMAND_PATH','.jsx','apply','yaml','replace','createDirectory','templates','getInstance','templates.js','rewriteDestinationPathForEngine()','File\x20not\x20found:\x20','writeFileSync','engineAndTypeFromfilePath','Creating\x20a\x20new\x20Meteor\x20project\x20with\x20an\x20alpha\x20release:\x20','import\x20{\x20','splice','forEach','test','No\x20file\x20found\x20to\x20inject\x20content\x20into\x20at\x20path\x20','toString','--minimal','[\x5cs\x5cS]*?)(','calculateMode','6PwOejs','isArray','readFileSync','injectIntoCodeBlock','warn','70YHxcHe','noRename','isTemplateForEngine','indexOf','injectTemplateModule()','render','length','tsx','search','readdirSync','startsWith','exit','env','1987197EhTGZa','injectAtBeginningOfFile()','Unable\x20to\x20find\x20the\x20target\x20block\x20to\x20inject\x20content.','\x20from\x20\x27','alpha','injectAtBeginningOfFile','ssr','Looking\x20for\x20','pathFromApp()','base64','push','png','createEmptyMeteorProject','map','23960imFwQj','startup','Meteor\x20project\x20already\x20exists\x20at\x20','isTemplateForEngine()','injectIntoFile()','fileContainsString','mpi','No\x20configuration\x20so\x20can\x27t\x20determine\x20engines.','Please\x20report\x20any\x20issues\x20to\x20https://github.com/maka-io/maka-cli/issues','injectAfterLineNumber','includes','Error\x20in\x20injectIntoCodeBlock:\x20','ico','No\x20file\x20found\x20at\x20path\x20','True','.js.ts','normalize','pathFromAppWithNoReWrite','injectImport()','constructor','client','adjustIndentation','error','954924XnbIdV','382975vcZyML','sep','instance','\x20updated\x20file\x20','split','release','injectAfterLineNumber()','copyTemplateDirectory','from\x20\x27','\x5cS*$','copyTemplateDirectory()','--release\x20','import\x20','type','match','fsi','jsx','lib','injectAtEndOfFile','\x20}\x20from\x20\x27','injectAtEndOfFile()','396ZixQOK','imports','engines','getCommonIndentSize','html','template','.js.tsx','join','findAppDirectory','templateContent','reduce'];a167c=function(){return a7;};return a167c();}import a167h from'delete';import a167i from'ejs';import{pascalCase}from'change-case';import{Log}from'../log/log.class.js';const errorHandler=(a,b)=>{const y=a167d;process[y(0x168)][y(0x11f)]===y(0xdb)&&Log[y(0xe3)](y(0x125)+a),b&&console[y(0xe3)](b);},isWin=process[a167z(0x13c)]==='win32',treeSymbol=isWin?a167z(0x12c):'\x20┗';export class Scaffold{static [a167z(0xe7)];['fsi'];[a167z(0xd3)];constructor(a,b){const A=a167z;this['fsi']=a,this[A(0xd3)]=b;}static[a167z(0x147)](a,b){const B=a167z;return!Scaffold[B(0xe7)]&&(Scaffold['instance']=new Scaffold(a,b)),Scaffold[B(0xe7)];}async[a167z(0xcb)](a,b){const C=a167z;b[C(0x138)]=b[C(0x138)]||'.';const c=a167e[C(0x101)](b[C(0x138)],a),d=a167e[C(0x101)](c,C(0x126));if(this[C(0xf4)][C(0x111)](d))throw new Error(C(0xcf)+JSON['stringify'](c));const e=C(0x154),f=a167e[C(0x101)](b[C(0x138)]),g=a167g[C(0x107)](exec),h=b[C(0xea)]?C(0xf0)+b[C(0xea)]:'';b['release']&&b[C(0xea)][C(0xd7)](C(0x16d))&&(Log[C(0x15b)](C(0x14d)+b[C(0xea)]),Log['warn'](C(0xd5)));try{await g(this[C(0xd3)][C(0x10a)]+'\x20create\x20'+a+'\x20'+e+'\x20'+h,{'cwd':f});}catch(k){Log['error']('\x0a'+k['message']);throw k;}const i=a167e[C(0x101)](f,a);if(!a167f['existsSync'](i))throw new Error(C(0x122)+i+C(0x121));const j=a167f['readdirSync'](i);for(const l of j){if(l!==C(0x118)&&l!==C(0x126)){const m=a167e['join'](i,l);await a167h(m,{'force':!![]});}}}[a167z(0x14c)]({filePath:a}){const D=a167z;try{const b=/\.([A-Za-z0-9.]+)$/g;let c=a[D(0xf3)](b);c=c&&c[0x0]['split']('.',0x3);if(!c)return{'type':undefined,'engine':undefined};let d=c['pop'](),f=c[D(0x11c)]()||d;if(d)d=d['replace']('.','');if(f)f=f['replace']('.','');return{'type':f,'engine':d};}catch(g){errorHandler('engineAndTypeFromfilePath()',g),process[D(0x167)](0x1);}}[a167z(0x11b)]({pathParts:a,config:b}){const E=a167z;try{const c=a['join'](a167e['sep']),d=this[E(0x14c)]({'filePath':c})[E(0xf2)],f=b?.[E(0xfc)][d],g=new RegExp('\x5c.'+d+E(0xee));return!d||!f?c:c[E(0x144)](g,'.'+d);}catch(h){errorHandler('rewriteDestinationPathForType()',h),process[E(0x167)](0x1);}}[a167z(0x15e)]({pathParts:a,config:b}){const F=a167z;try{if(!b)throw new Error(F(0xd4));const c=a[F(0x101)](a167e[F(0xe6)]),d=this[F(0x14c)]({'filePath':c});if(!d[F(0xf2)]||!d[F(0x13e)])return!![];const f=b[F(0xfc)][d['type']];if(!f)return!![];return f===d[F(0x13e)];}catch(g){errorHandler(F(0xd0),g),process['exit'](0x1);}}[a167z(0x136)]({pathParts:pathParts=[]}){const G=a167z;return pathParts[G(0x101)](a167e['sep']);}[a167z(0x124)]({pathParts:pathParts=[],config:a}){const H=a167z;try{const b=pathParts[H(0x101)](a167e[H(0xe6)]),c=this[H(0x14c)]({'filePath':b})[H(0xf2)],d=a?.[H(0xfc)][c],f=new RegExp('\x5c.'+c+H(0xee));return!c||!d?b:b['replace'](f,'.'+d);}catch(g){errorHandler(H(0x149),g),process['exit'](0x1);}}[a167z(0x113)]({pathParts:pathParts=[],framework:framework=a167z(0x10a),config:a}){const I=a167z;try{const b=a167e[I(0xdd)](pathParts['join'](a167e[I(0xe6)]));if(!b['endsWith'](I(0x10e)))return b;const c='js';if(!a?.['engines']||!a?.[I(0xfc)][c])return b;const d=a['engines'][c],f=d==='tsx'?[I(0x100),I(0xdc),I(0x10e)]:[I(0x129),I(0x10e)];for(const g of f){const h=b[I(0x144)](/\.js$/,g),i=a167e[I(0x101)](I(0x146),framework,h),j=a167e[I(0xdd)](a167e[I(0x101)](global[I(0x140)],i));if(a167f[I(0x120)](j))return h;}return b;}catch(k){errorHandler('rewriteSourcePathForEngine()',k),process['exit'](0x1);}}[a167z(0x11e)]({pathParts:a,framework:framework=a167z(0x10a),config:b}){const J=a167z;try{const c=this[J(0x113)]({'pathParts':a,'framework':framework,'config':b}),d=a167e[J(0x101)]('src/templates/'+framework,c),f=a167e[J(0x101)](global[J(0x140)],'..',d);return f;}catch(g){errorHandler('pathFromTemplates()',g),process['exit'](0x1);}}[a167z(0x103)]({srcPath:a,context:b,framework:c,config:d}){const K=a167z;try{let f=this[K(0x11e)]({'pathParts':[a],'framework':c,'config':d});const {engine:g}=this[K(0x14c)]({'filePath':f}),h=[K(0x10d),K(0x13b),'less',K(0xfe),'js',K(0xf5),'ts',K(0x163),'json',K(0x168),K(0x143),K(0xff)],i=['png','ico'];if(!this[K(0xf4)][K(0x139)](f)){g==='jsx'&&(f=f[K(0x144)](K(0x141),''));g===K(0x163)&&(f=f[K(0x144)]('.tsx',''));if(!this['fsi'][K(0x139)](f))throw new Error(K(0x12f)+JSON[K(0x12d)](f));}const j=f[K(0xe9)]('.'),k=a167e['normalize'](f)[K(0xe9)](a167e[K(0xe6)]),l=k[k[K(0x162)]-0x1]===K(0x109),m=i[K(0xd7)](j[j[K(0x162)]-0x1]),n=a167f[K(0x159)](f);if(l)return a167i[K(0x161)](n[K(0x153)](),b)[K(0x132)]();if(m)return Buffer[K(0x12a)](n)['toString'](K(0xc8));if(!h[K(0xd7)](j[j[K(0x162)]-0x1]))return n['toString']()[K(0x132)]();return a167i[K(0x161)](n[K(0x153)](),b||{})[K(0x132)]();}catch(o){errorHandler(K(0x106),o),process[K(0x167)](0x1);}}async[a167z(0xff)]({srcPath:a,destPath:b,context:c,config:d,framework:f,force:force=![],ignore:ignore=![]}){const L=a167z;try{const g=[L(0xca),L(0xd9)],h=g[L(0xd7)](a['split']('.')[L(0x11c)]()||''),i=this[L(0x103)]({'srcPath':a,'context':c,'framework':f,'config':d})+'\x0a';c?.[L(0x15d)]?b=this[L(0x11b)]({'pathParts':[b],'config':d}):b=this['rewriteDestinationPathForEngine']({'pathParts':[b],'config':d});const j=await this[L(0xf4)][L(0x116)]({'filePath':b,'data':i,'opts':{'force':force,'isImage':h,'absolute':![],'ignore':ignore}});return j;}catch(k){errorHandler(L(0x11d),k),process[L(0x167)](0x1);}}async[a167z(0xec)]({srcPath:a,destPath:b,context:c,ignore:d,keep:f,framework:g,config:h}){const O=a167z;try{const i=this['pathFromTemplates']({'pathParts':[a],'framework':g,'config':h}),j=this['pathFromTemplates']({'pathParts':[],'framework':g,'config':h}),k=n=>{const M=a167d;return n[M(0x144)](j,'');},l=n=>{const N=a167d;return n[N(0x144)](i,b);};await this[O(0xf4)][O(0x145)]({'dirPath':b});const m=a167f[O(0x165)](i);for(const n of m){try{const o=a167e['join'](i,n),p=k(o),q=l(o),r=d[O(0xcc)](t=>a167e['normalize'](t)),s=a167e[O(0xdd)](a167e['join'](a,n));if(r[O(0xd7)](s))continue;if(this[O(0xf4)][O(0x111)](o))await this[O(0xec)]({'srcPath':p,'destPath':q,'context':c,'ignore':d,'keep':f,'framework':g,'config':h});else{if(this[O(0xf4)]['isFile'](o)&&this[O(0x15e)]({'pathParts':[o],'config':h}))await this[O(0xff)]({'srcPath':p,'destPath':q,'context':c,'framework':g,'config':h});else f[O(0x15f)](a167e[O(0x101)](a,n))>=0x0&&this[O(0xf4)]['isFile'](o)&&(c[O(0x15d)]=!![],await this[O(0xff)]({'srcPath':p,'destPath':q,'context':c,'framework':g,'config':h}),c['noRename']=![]);}}catch(t){console[O(0xe3)](t),process[O(0x167)](0x1);}}}catch(u){errorHandler(O(0xef),u),process[O(0x167)](0x1);}}async[a167z(0x16e)]({filePath:a,content:b,opts:c}){const P=a167z;if(!a)throw new Error('No\x20filePath\x20provided\x20to\x20injectAtBeginningOfFile()');try{!this[P(0xf4)]['isFile'](a)&&await this[P(0xf4)][P(0x116)]({'filePath':a,'data':b});let d=a167f[P(0x159)](a,P(0x123));d=b+'\x0a'+d,a167f[P(0x14b)](a,d),c?.['verbose']&&Log['header'](treeSymbol+P(0xe8)+a167e[P(0x13f)](process[P(0x138)](),a));}catch(f){errorHandler(P(0x16a),f),process[P(0x167)](0x1);}}async[a167z(0xf7)]({filePath:a,content:b,opts:c}){const Q=a167z;try{if(!this['fsi'][Q(0x139)](a))await this[Q(0xf4)][Q(0x116)]({'filePath':a,'data':b});else{let d=a167f[Q(0x159)](a,Q(0x123));!d['includes'](b)&&(d=d+'\x0a'+b,a167f[Q(0x14b)](a,d)),c?.['verbose']&&Log[Q(0x114)](treeSymbol+Q(0xe8)+a167e[Q(0x13f)](process[Q(0x138)](),a));}}catch(f){errorHandler(Q(0xf9),f),process[Q(0x167)](0x1);}}async['injectAroundString']({filePath:a,aboveContent:b,belowContent:c,targetString:d,indentAdjustment:indentAdjustment=0x0,targetIndentAdjustment:targetIndentAdjustment=0x0}){const R=a167z;try{if(!this[R(0xf4)][R(0x139)](a))throw Log[R(0xe3)](R(0xda)+JSON[R(0x12d)](a));const f=a167f[R(0x159)](a,R(0x123)),g=f['replace'](/\r\n|\r/g,'\x0a'),h=g[R(0xe9)]('\x0a'),j=this['detectIndentation'](h),k=b[R(0x144)](/\r\n|\r/g,'\x0a')[R(0xe9)]('\x0a'),l=c[R(0x144)](/\r\n|\r/g,'\x0a')[R(0xe9)]('\x0a'),m=new RegExp(Array[R(0x158)](d)?d[R(0x101)]('|'):d,'i'),n=[];for(let p=0x0;p<h[R(0x162)];p++){const q=h[p];if(m[R(0x151)](q)){const r=this[R(0xe2)](j,targetIndentAdjustment),s=r+q[R(0x132)]();k[R(0x150)](t=>{const S=R;!g[S(0xd7)](t['trim']())&&n['push'](this[S(0xe2)](j,indentAdjustment)+t);}),n[R(0xc9)](s),l['forEach'](t=>{const T=R;!g[T(0xd7)](t['trim']())&&n['push'](this[T(0xe2)](j,indentAdjustment)+t);});}else n[R(0xc9)](q);}const o=n['join']('\x0a');a167f['writeFileSync'](a,o),Log['header'](treeSymbol+'\x20updated\x20file\x20'+a167e['relative'](process['cwd'](),a));}catch(t){errorHandler(R(0x117),t),process[R(0x167)](0x1);}}[a167z(0xe2)](a,b){const U=a167z;if(b===0x0)return a;const c=a[U(0x162)]+b;return c>0x0?a[0x0][U(0x128)](c):'';}['detectIndentation'](a){const W=a167z;let b=0x0,c=0x0;a['forEach'](f=>{const V=a167d;if(f[V(0x166)]('\x20'))b++;else f[V(0x166)]('\x09')&&c++;});const d=b>=c?'\x20':'\x09',e=this[W(0xfd)](a,d);return d[W(0x128)](e);}['getCommonIndentSize'](a,b){const X=a167z,c=a[X(0x10f)](d=>d&&d[X(0x166)](b))['map'](d=>{const Y=X,e=d[Y(0xf3)](new RegExp('^'+b+'+'));return e?e[0x0][Y(0x162)]:0x0;});if(c['length']===0x0)return 0x0;return this[X(0x156)](c);}[a167z(0x156)](a){const Z=a167z,b=a['reduce']((c,d)=>{return c[d]=(c[d]||0x0)+0x1,c;},{});return Object[Z(0x12e)](b)[Z(0x104)]((c,d)=>{const e=b[+c],f=b[+d];return e>f?+c:+d;},0x0);}async[a167z(0x15a)]({filePath:a,content:b,begin:c,replace:replace=![]}){const a0=a167z;try{if(!this[a0(0xf4)]['isFile'](a))throw new Error(a0(0x14a)+a);const d=a167f[a0(0x159)](a,a0(0x123)),f=d[a0(0xe9)]('\x0a');let g=-0x1,h=-0x1,j=0x0,k=![],l=![];const m=Array[a0(0x158)](c)?c:[c];for(let o=0x0;o<f[a0(0x162)];o++){const p=f[o];k&&p[a0(0xd7)]('{')&&j++;if(m[a0(0x135)](q=>p[a0(0xd7)](q))){g=o,k=!![],j++;continue;}if(k){p[a0(0xd7)](b[a0(0x132)]())&&(l=!![]);if(p[a0(0xd7)]('}')){j--;if(j===0x0){h=o;break;}}}}if(g===-0x1||h===-0x1){Log[a0(0xe3)](a0(0x115)+a),Log['error'](a0(0x108)+b),Log[a0(0xe3)](a0(0x170)+c);throw new Error(a0(0x16b));}if(l)return;let n=f[a0(0x110)](0x0,g+0x1);replace?(n[a0(0xc9)](b[a0(0x132)]()),n[a0(0xc9)](f[h])):(n=n[a0(0x13a)](f['slice'](g+0x1,h)),n['push'](b[a0(0x132)]())),n=n[a0(0x13a)](f[a0(0x110)](h+0x1)),a167f[a0(0x14b)](a,n['join']('\x0a'),a0(0x123));}catch(q){console[a0(0xe3)](a0(0xd8),q);throw q;}}async[a167z(0x130)]({filePath:a,content:c,begin:d,end:f,replace:replace=![]}){const a1=a167z;try{const g=await this['fsi'][a1(0xd2)](a,c);if(g)return;if(!this['fsi'][a1(0x139)](a))throw Log[a1(0xe3)](a1(0x152)+JSON[a1(0x12d)](a));const h=a167f[a1(0x159)](a,'utf8');if(!Array[a1(0x158)](d))d=[d];if(!Array[a1(0x158)](f))f=[f];let i=h,j=![];for(const k of d){for(const l of f){const m=new RegExp('('+k+a1(0x155)+l+')','i');i=h[a1(0x144)](m,(n,o,p)=>{return j=!![],replace?''+o+c+p:''+o+c+'\x0a'+p;});if(j)break;}if(j)break;}if(!j)throw new Error(a1(0x127));a167f[a1(0x14b)](a,i),Log[a1(0x114)](treeSymbol+a1(0xe8)+a167e[a1(0x13f)](process['cwd'](),a));}catch(n){errorHandler(a1(0xd1),n),process[a1(0x167)](0x1);}}async['injectImport']({filePath:a,importName:b,modulePath:c,isNamedExport:d,injectAtStart:injectAtStart=![]}){const a2=a167z;try{const f=a167f[a2(0x159)](a,a2(0x123));let g;d?g=a2(0x14e)+b+'\x20}\x20from\x20\x27'+c+'\x27;\x0a':g=a2(0xf1)+b+a2(0x16c)+c+a2(0x137);const h=f[a2(0xe9)]('\x0a');let j=0x0,k=![];for(const m of h){if(m[a2(0xd7)](a2(0xed)+c+'\x27')||m[a2(0xd7)](a2(0x13d)+c+'\x22')){const n=d?new RegExp('\x5cb'+b+'\x5cb','g'):new RegExp(a2(0xf1)+b+a2(0x133));if(m[a2(0xf3)](n)){k=!![];break;}}}if(k)return;if(injectAtStart)for(let o=0x0;o<h[a2(0x162)];o++){if(h[o][a2(0xf3)](/^import .* from .*;$/)){j=o;break;}}else{for(let p=0x0;p<h[a2(0x162)];p++){h[p][a2(0xf3)](/^import .* from .*;$/)&&(j=p);}j++;}h[a2(0x14f)](j,0x0,g);const l=h[a2(0x101)]('\x0a');a167f[a2(0x14b)](a,l,a2(0x123));}catch(q){errorHandler(a2(0xdf),q),process[a2(0x167)](0x1);}}async['injectTemplateModule'](a,b,c){const a3=a167z;try{let d;b[a3(0xfc)][a3(0x16f)]!=='none'?d=this['pathFromApp']({'pathParts':[a3(0xfb),a3(0xce),a3(0xf6),a3(0x148)],'config':b}):d=this['pathFromApp']({'pathParts':[a3(0xfb),a3(0xce),a3(0xe1),a3(0x148)],'config':b});const f=this[a3(0x124)]({'pathParts':[d],'config':b}),g='export\x20{\x20'+pascalCase(a)+a3(0xf8)+c+'\x27;',h=await this[a3(0xf4)][a3(0xd2)](f,g);!h&&this[a3(0xf7)]({'filePath':f,'content':g+'\x0a'});}catch(i){errorHandler(a3(0x160),i),process[a3(0x167)](0x1);}}[a167z(0xd6)]({filePath:a,content:b,lineNumber:c}){const a4=a167z;try{const d=a167f['readFileSync'](a)['toString']()[a4(0xe9)]('\x0a');d[a4(0x14f)](c,0x0,b);const f=d['join']('\x0a');a167f[a4(0x14b)](a,f);}catch(g){errorHandler(a4(0xeb),g),process['exit'](0x1);}}[a167z(0x105)]({pathParts:a,config:b}){const a5=a167z;try{if(!a)throw new Error('No\x20pathParts\x20option\x20provided');const c=this[a5(0x113)]({'pathParts':a,'config':b}),d=this[a5(0xf4)][a5(0x102)]();return d?a167e['join'](d,c):'';}catch(f){errorHandler(a5(0xc7),f),process[a5(0x167)](0x1);}}[a167z(0xde)]({pathParts:a,config:b}){const a6=a167z;try{const c=this[a6(0x136)]({'pathParts':a,'config':b}),d=this[a6(0xf4)][a6(0x102)]();if(!d)throw new Error(a6(0x134));return a167e[a6(0x101)](d,c);}catch(f){errorHandler(a6(0x12b),f),process['exit'](0x1);}}}
1
+ const a167z=a167d;function a167d(a,b){const c=a167c();return a167d=function(d,e){d=d-0x1f1;let f=c[d];return f;},a167d(a,b);}(function(a,b){const v=a167d,c=a();while(!![]){try{const d=parseInt(v(0x1ff))/0x1*(-parseInt(v(0x26b))/0x2)+-parseInt(v(0x236))/0x3+parseInt(v(0x241))/0x4*(-parseInt(v(0x251))/0x5)+parseInt(v(0x280))/0x6*(parseInt(v(0x281))/0x7)+-parseInt(v(0x23d))/0x8*(parseInt(v(0x279))/0x9)+-parseInt(v(0x22b))/0xa*(parseInt(v(0x246))/0xb)+parseInt(v(0x234))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a167c,0x6151f));const a167b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a167d;if(c){const e=c[w(0x253)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a167a=a167b(this,function(){const x=a167d;return a167a['toString']()[x(0x257)]('(((.+)+)+)+$')[x(0x27b)]()[x(0x207)](a167a)[x(0x257)](x(0x24a));});a167a();function a167c(){const a6=['adjustIndentation','ico','\x27;\x0a','injectImport','injectImport()','push','\x20->','replace','exit','trim','injectTemplateModule()','.js','\x5cS*$','filter','release','normalize','rewriteDestinationPathForType','startup','injectAtBeginningOfFile','platform','engineAndTypeFromfilePath','stringify','repeat','engines','\x20from\x20\x27','map','pathFromApp','No\x20app\x20directory\x20found','template','existsSync','Unable\x20to\x20find\x20the\x20target\x20block\x20to\x20inject\x20content.','injectAfterLineNumber','171638dGfaUs','imports','pathFromApp()','.js.tsx','message','--minimal','createDirectory','pathFromTemplates()','constructor','injectAroundString','less','rewriteDestinationPathForEngine','.git','injectIntoFile','getInstance','engineAndTypeFromfilePath()','template()','\x20}\x20from\x20\x27','pathFromAppWithNoReWrite()','Error\x20in\x20injectIntoCodeBlock:\x20','utf8','injectAtEndOfFile()','error','isFile','isTemplateForEngine','No\x20pathParts\x20option\x20provided','tsx','css','concat','injectAfterLineNumber()','readFileSync','promisify','detectIndentation','\x20doesn\x27t\x20exist','[\x5cs\x5cS]*?)(','reduce','rewriteSourcePathForEngine()','scss','base64','png','readdirSync','mpi','getCommonIndentSize','.js.jsx','660PYCZTE','noRename','from\x20\x27','length','injectAtEndOfFile','import\x20','env','engine','isDirectory','13341984iwDIWQ','lib','180495pYtdTS','pop','html','type','findAppDirectory','render','Couldn\x27t\x20find\x20a\x20source\x20template\x20in\x20','2391096sTKUDw','injectAroundString()','copyTemplateDirectory()','MAKA_DEV','28JYPINV','createFile','\x20create\x20','templateContent','json','66zBxHhF','rewriteSourcePathForEngine','injectIntoFile()','isTemplateForEngine()','(((.+)+)+)+$','injectTemplateModule','templates.js','forEach','No\x20file\x20found\x20to\x20inject\x20content\x20into\x20at\x20path\x20','calculateMode','.jsx','464565KJTYBA','No\x20filePath\x20provided\x20to\x20injectAtBeginningOfFile()','apply','warn','Meteor\x20project\x20already\x20exists\x20at\x20','copyTemplateDirectory','search','writeSourcePath','--release\x20','none','match','.meteor','test','split','\x20updated\x20file\x20','writeFileSync','instance','cwd','some','relative','MAKA_COMMAND_PATH','includes','pathFromTemplates','No\x20matching\x20section\x20found.','meteor','slice','2cYQRzt','verbose','indexOf','header','\x20from','sep','startsWith','yaml','fileContainsString','fsi','alpha','from','No\x20file\x20found\x20at\x20path\x20','injectAtBeginningOfFile()','9VLchfo','src/templates/','toString','While\x20injecting\x20','isArray','join','splice','4206KfOvGA','4676VdzQvR'];a167c=function(){return a6;};return a167c();}import a167e from'path';import a167f from'fs';import a167g from'util';import{exec}from'child_process';import a167h from'delete';import a167i from'ejs';import{pascalCase}from'change-case';import{Log}from'../log/log.class.js';const errorHandler=(a,b)=>{const y=a167d;process[y(0x231)][y(0x240)]==='True'&&Log[y(0x215)]('Error\x20in\x20'+a),b&&console[y(0x215)](b);},isWin=process[a167z(0x1f2)]==='win32',treeSymbol=isWin?a167z(0x288):'\x20┗';export class Scaffold{static [a167z(0x261)];[a167z(0x274)];[a167z(0x228)];constructor(a,b){const A=a167z;this[A(0x274)]=a,this[A(0x228)]=b;}static[a167z(0x20d)](a,b){const B=a167z;return!Scaffold['instance']&&(Scaffold[B(0x261)]=new Scaffold(a,b)),Scaffold[B(0x261)];}async['createEmptyMeteorProject'](a,b){const C=a167z;b['cwd']=b[C(0x262)]||'.';const c=a167e['join'](b[C(0x262)],a),d=a167e[C(0x27e)](c,C(0x25c));if(this[C(0x274)]['isDirectory'](d))throw new Error(C(0x255)+JSON['stringify'](c));const e=C(0x204),f=a167e[C(0x27e)](b[C(0x262)]),g=a167g[C(0x21e)](exec),h=b[C(0x290)]?C(0x259)+b[C(0x290)]:'';b[C(0x290)]&&b[C(0x290)]['includes'](C(0x275))&&(Log[C(0x254)]('Creating\x20a\x20new\x20Meteor\x20project\x20with\x20an\x20alpha\x20release:\x20'+b[C(0x290)]),Log[C(0x254)]('Please\x20report\x20any\x20issues\x20to\x20https://github.com/maka-io/maka-cli/issues'));try{await g(this[C(0x228)][C(0x269)]+C(0x243)+a+'\x20'+e+'\x20'+h,{'cwd':f});}catch(k){Log[C(0x215)]('\x0a'+k[C(0x203)]);throw k;}const i=a167e['join'](f,a);if(!a167f[C(0x1fc)](i))throw new Error('Directory\x20'+i+C(0x220));const j=a167f['readdirSync'](i);for(const l of j){if(l!==C(0x20b)&&l!==C(0x25c)){const m=a167e[C(0x27e)](i,l);await a167h(m,{'force':!![]});}}}[a167z(0x1f3)]({filePath:a}){const D=a167z;try{const b=/\.([A-Za-z0-9.]+)$/g;let c=a[D(0x25b)](b);c=c&&c[0x0]['split']('.',0x3);if(!c)return{'type':undefined,'engine':undefined};let d=c[D(0x237)](),f=c[D(0x237)]()||d;if(d)d=d['replace']('.','');if(f)f=f[D(0x289)]('.','');return{'type':f,'engine':d};}catch(g){errorHandler(D(0x20e),g),process['exit'](0x1);}}[a167z(0x292)]({pathParts:a,config:b}){const E=a167z;try{const c=a[E(0x27e)](a167e[E(0x270)]),d=this[E(0x1f3)]({'filePath':c})[E(0x239)],f=b?.[E(0x1f6)][d],g=new RegExp('\x5c.'+d+E(0x28e));return!d||!f?c:c[E(0x289)](g,'.'+d);}catch(h){errorHandler('rewriteDestinationPathForType()',h),process['exit'](0x1);}}['isTemplateForEngine']({pathParts:a,config:b}){const F=a167z;try{if(!b)throw new Error('No\x20configuration\x20so\x20can\x27t\x20determine\x20engines.');const c=a[F(0x27e)](a167e[F(0x270)]),d=this[F(0x1f3)]({'filePath':c});if(!d[F(0x239)]||!d[F(0x232)])return!![];const f=b[F(0x1f6)][d[F(0x239)]];if(!f)return!![];return f===d[F(0x232)];}catch(g){errorHandler(F(0x249),g),process['exit'](0x1);}}[a167z(0x258)]({pathParts:pathParts=[]}){const G=a167z;return pathParts[G(0x27e)](a167e[G(0x270)]);}['rewriteDestinationPathForEngine']({pathParts:pathParts=[],config:a}){const H=a167z;try{const b=pathParts[H(0x27e)](a167e['sep']),c=this[H(0x1f3)]({'filePath':b})[H(0x239)],d=a?.[H(0x1f6)][c],f=new RegExp('\x5c.'+c+'\x5cS*$');return!c||!d?b:b[H(0x289)](f,'.'+d);}catch(g){errorHandler('rewriteDestinationPathForEngine()',g),process[H(0x28a)](0x1);}}['rewriteSourcePathForEngine']({pathParts:pathParts=[],framework:framework=a167z(0x269),config:a}){const I=a167z;try{const b=a167e[I(0x291)](pathParts[I(0x27e)](a167e[I(0x270)]));if(!b['endsWith']('.js'))return b;const c='js';if(!a?.[I(0x1f6)]||!a?.[I(0x1f6)][c])return b;const d=a[I(0x1f6)][c],f=d===I(0x219)?[I(0x202),'.js.ts','.js']:[I(0x22a),I(0x28d)];for(const g of f){const h=b[I(0x289)](/\.js$/,g),i=a167e[I(0x27e)]('templates',framework,h),j=a167e[I(0x291)](a167e[I(0x27e)](global[I(0x265)],i));if(a167f[I(0x1fc)](j))return h;}return b;}catch(k){errorHandler(I(0x223),k),process[I(0x28a)](0x1);}}[a167z(0x267)]({pathParts:a,framework:framework='meteor',config:b}){const J=a167z;try{const c=this[J(0x247)]({'pathParts':a,'framework':framework,'config':b}),d=a167e[J(0x27e)](J(0x27a)+framework,c),f=a167e[J(0x27e)](global[J(0x265)],'..',d);return f;}catch(g){errorHandler(J(0x206),g),process['exit'](0x1);}}[a167z(0x244)]({srcPath:a,context:b,framework:c,config:d}){const K=a167z;try{let f=this[K(0x267)]({'pathParts':[a],'framework':c,'config':d});const {engine:g}=this[K(0x1f3)]({'filePath':f}),h=[K(0x21a),K(0x224),K(0x209),K(0x238),'js','jsx','ts','tsx',K(0x245),'env',K(0x272),'template'],i=[K(0x226),K(0x283)];if(!this[K(0x274)][K(0x216)](f)){g==='jsx'&&(f=f[K(0x289)](K(0x250),''));g===K(0x219)&&(f=f[K(0x289)]('.tsx',''));if(!this[K(0x274)][K(0x216)](f))throw new Error(K(0x23c)+JSON[K(0x1f4)](f));}const j=f[K(0x25e)]('.'),k=a167e[K(0x291)](f)[K(0x25e)](a167e[K(0x270)]),l=k[k[K(0x22e)]-0x1]==='Dockerfile',m=i[K(0x266)](j[j[K(0x22e)]-0x1]),n=a167f['readFileSync'](f);if(l)return a167i[K(0x23b)](n[K(0x27b)](),b)[K(0x28b)]();if(m)return Buffer[K(0x276)](n)[K(0x27b)](K(0x225));if(!h[K(0x266)](j[j[K(0x22e)]-0x1]))return n[K(0x27b)]()[K(0x28b)]();return a167i[K(0x23b)](n[K(0x27b)](),b||{})[K(0x28b)]();}catch(o){errorHandler('templateContent()',o),process[K(0x28a)](0x1);}}async[a167z(0x1fb)]({srcPath:a,destPath:b,context:c,config:d,framework:f,force:force=![],ignore:ignore=![]}){const L=a167z;try{const g=[L(0x226),L(0x283)],h=g['includes'](a[L(0x25e)]('.')['pop']()||''),i=this[L(0x244)]({'srcPath':a,'context':c,'framework':f,'config':d})+'\x0a';c?.[L(0x22c)]?b=this['rewriteDestinationPathForType']({'pathParts':[b],'config':d}):b=this['rewriteDestinationPathForEngine']({'pathParts':[b],'config':d});const j=await this[L(0x274)][L(0x242)]({'filePath':b,'data':i,'opts':{'force':force,'isImage':h,'absolute':![],'ignore':ignore}});return j;}catch(k){errorHandler(L(0x20f),k),process[L(0x28a)](0x1);}}async[a167z(0x256)]({srcPath:a,destPath:b,context:c,ignore:d,keep:f,framework:g,config:h}){const M=a167z;try{const i=this[M(0x267)]({'pathParts':[a],'framework':g,'config':h}),j=this[M(0x267)]({'pathParts':[],'framework':g,'config':h}),k=n=>{const N=M;return n[N(0x289)](j,'');},l=n=>{const O=M;return n[O(0x289)](i,b);};await this[M(0x274)][M(0x205)]({'dirPath':b});const m=a167f[M(0x227)](i);for(const n of m){try{const o=a167e[M(0x27e)](i,n),p=k(o),q=l(o),r=d[M(0x1f8)](t=>a167e[M(0x291)](t)),s=a167e[M(0x291)](a167e['join'](a,n));if(r[M(0x266)](s))continue;if(this[M(0x274)][M(0x233)](o))await this[M(0x256)]({'srcPath':p,'destPath':q,'context':c,'ignore':d,'keep':f,'framework':g,'config':h});else{if(this['fsi']['isFile'](o)&&this[M(0x217)]({'pathParts':[o],'config':h}))await this[M(0x1fb)]({'srcPath':p,'destPath':q,'context':c,'framework':g,'config':h});else f[M(0x26d)](a167e['join'](a,n))>=0x0&&this['fsi'][M(0x216)](o)&&(c[M(0x22c)]=!![],await this[M(0x1fb)]({'srcPath':p,'destPath':q,'context':c,'framework':g,'config':h}),c[M(0x22c)]=![]);}}catch(t){console[M(0x215)](t),process['exit'](0x1);}}}catch(u){errorHandler(M(0x23f),u),process[M(0x28a)](0x1);}}async[a167z(0x1f1)]({filePath:a,content:b,opts:c}){const P=a167z;if(!a)throw new Error(P(0x252));try{!this[P(0x274)][P(0x216)](a)&&await this[P(0x274)][P(0x242)]({'filePath':a,'data':b});let d=a167f['readFileSync'](a,P(0x213));d=b+'\x0a'+d,a167f[P(0x260)](a,d),c?.['verbose']&&Log[P(0x26e)](treeSymbol+P(0x25f)+a167e[P(0x264)](process[P(0x262)](),a));}catch(f){errorHandler(P(0x278),f),process['exit'](0x1);}}async[a167z(0x22f)]({filePath:a,content:b,opts:c}){const Q=a167z;try{if(!this[Q(0x274)][Q(0x216)](a))await this[Q(0x274)]['createFile']({'filePath':a,'data':b});else{let d=a167f[Q(0x21d)](a,Q(0x213));!d[Q(0x266)](b)&&(d=d+'\x0a'+b,a167f[Q(0x260)](a,d)),c?.[Q(0x26c)]&&Log[Q(0x26e)](treeSymbol+'\x20updated\x20file\x20'+a167e[Q(0x264)](process[Q(0x262)](),a));}}catch(f){errorHandler(Q(0x214),f),process[Q(0x28a)](0x1);}}async[a167z(0x208)]({filePath:a,aboveContent:b,belowContent:c,targetString:d,indentAdjustment:indentAdjustment=0x0,targetIndentAdjustment:targetIndentAdjustment=0x0}){const R=a167z;try{if(!this[R(0x274)][R(0x216)](a))throw Log[R(0x215)](R(0x277)+JSON[R(0x1f4)](a));const f=a167f['readFileSync'](a,R(0x213)),g=f[R(0x289)](/\r\n|\r/g,'\x0a'),h=g[R(0x25e)]('\x0a'),j=this['detectIndentation'](h),k=b[R(0x289)](/\r\n|\r/g,'\x0a')[R(0x25e)]('\x0a'),l=c[R(0x289)](/\r\n|\r/g,'\x0a')[R(0x25e)]('\x0a'),m=new RegExp(Array[R(0x27d)](d)?d['join']('|'):d,'i'),n=[];for(let p=0x0;p<h['length'];p++){const q=h[p];if(m[R(0x25d)](q)){const r=this[R(0x282)](j,targetIndentAdjustment),s=r+q[R(0x28b)]();k[R(0x24d)](t=>{const S=R;!g[S(0x266)](t[S(0x28b)]())&&n['push'](this['adjustIndentation'](j,indentAdjustment)+t);}),n[R(0x287)](s),l[R(0x24d)](t=>{const T=R;!g[T(0x266)](t[T(0x28b)]())&&n[T(0x287)](this[T(0x282)](j,indentAdjustment)+t);});}else n[R(0x287)](q);}const o=n[R(0x27e)]('\x0a');a167f[R(0x260)](a,o),Log['header'](treeSymbol+R(0x25f)+a167e['relative'](process[R(0x262)](),a));}catch(t){errorHandler(R(0x23e),t),process[R(0x28a)](0x1);}}[a167z(0x282)](a,b){if(b===0x0)return a;const c=a['length']+b;return c>0x0?a[0x0]['repeat'](c):'';}[a167z(0x21f)](a){const U=a167z;let b=0x0,c=0x0;a[U(0x24d)](f=>{const V=U;if(f['startsWith']('\x20'))b++;else f[V(0x271)]('\x09')&&c++;});const d=b>=c?'\x20':'\x09',e=this[U(0x229)](a,d);return d[U(0x1f5)](e);}[a167z(0x229)](a,b){const W=a167z,c=a[W(0x28f)](d=>d&&d[W(0x271)](b))[W(0x1f8)](d=>{const X=W,e=d[X(0x25b)](new RegExp('^'+b+'+'));return e?e[0x0][X(0x22e)]:0x0;});if(c[W(0x22e)]===0x0)return 0x0;return this[W(0x24f)](c);}[a167z(0x24f)](a){const Y=a167z,b=a['reduce']((c,d)=>{return c[d]=(c[d]||0x0)+0x1,c;},{});return Object['keys'](b)[Y(0x222)]((c,d)=>{const e=b[+c],f=b[+d];return e>f?+c:+d;},0x0);}async['injectIntoCodeBlock']({filePath:a,content:b,begin:c,replace:replace=![]}){const Z=a167z;try{if(!this[Z(0x274)][Z(0x216)](a))throw new Error('File\x20not\x20found:\x20'+a);const d=a167f[Z(0x21d)](a,Z(0x213)),f=d[Z(0x25e)]('\x0a');let g=-0x1,h=-0x1,j=0x0,k=![],l=![];const m=Array[Z(0x27d)](c)?c:[c];for(let o=0x0;o<f['length'];o++){const p=f[o];k&&p[Z(0x266)]('{')&&j++;if(m[Z(0x263)](q=>p[Z(0x266)](q))){g=o,k=!![],j++;continue;}if(k){p[Z(0x266)](b[Z(0x28b)]())&&(l=!![]);if(p[Z(0x266)]('}')){j--;if(j===0x0){h=o;break;}}}}if(g===-0x1||h===-0x1){Log[Z(0x215)]('Unable\x20to\x20find\x20the\x20target\x20block\x20to\x20inject\x20content\x20in\x20'+a),Log[Z(0x215)](Z(0x27c)+b),Log[Z(0x215)]('Looking\x20for\x20'+c);throw new Error(Z(0x1fd));}if(l)return;let n=f[Z(0x26a)](0x0,g+0x1);replace?(n[Z(0x287)](b[Z(0x28b)]()),n[Z(0x287)](f[h])):(n=n[Z(0x21b)](f['slice'](g+0x1,h)),n[Z(0x287)](b[Z(0x28b)]())),n=n['concat'](f[Z(0x26a)](h+0x1)),a167f[Z(0x260)](a,n[Z(0x27e)]('\x0a'),Z(0x213));}catch(q){console[Z(0x215)](Z(0x212),q);throw q;}}async[a167z(0x20c)]({filePath:a,content:c,begin:d,end:f,replace:replace=![]}){const a0=a167z;try{const g=await this[a0(0x274)][a0(0x273)](a,c);if(g)return;if(!this['fsi']['isFile'](a))throw Log[a0(0x215)](a0(0x24e)+JSON[a0(0x1f4)](a));const h=a167f[a0(0x21d)](a,a0(0x213));if(!Array[a0(0x27d)](d))d=[d];if(!Array[a0(0x27d)](f))f=[f];let i=h,j=![];for(const k of d){for(const l of f){const m=new RegExp('('+k+a0(0x221)+l+')','i');i=h['replace'](m,(n,o,p)=>{return j=!![],replace?''+o+c+p:''+o+c+'\x0a'+p;});if(j)break;}if(j)break;}if(!j)throw new Error(a0(0x268));a167f['writeFileSync'](a,i),Log[a0(0x26e)](treeSymbol+a0(0x25f)+a167e[a0(0x264)](process[a0(0x262)](),a));}catch(n){errorHandler(a0(0x248),n),process[a0(0x28a)](0x1);}}async[a167z(0x285)]({filePath:a,importName:b,modulePath:c,isNamedExport:d,injectAtStart:injectAtStart=![]}){const a1=a167z;try{const f=a167f[a1(0x21d)](a,a1(0x213));let g;d?g='import\x20{\x20'+b+a1(0x210)+c+a1(0x284):g=a1(0x230)+b+a1(0x1f7)+c+a1(0x284);const h=f[a1(0x25e)]('\x0a');let j=0x0,k=![];for(const m of h){if(m['includes'](a1(0x22d)+c+'\x27')||m[a1(0x266)]('from\x20\x22'+c+'\x22')){const n=d?new RegExp('\x5cb'+b+'\x5cb','g'):new RegExp(a1(0x230)+b+a1(0x26f));if(m[a1(0x25b)](n)){k=!![];break;}}}if(k)return;if(injectAtStart)for(let o=0x0;o<h['length'];o++){if(h[o]['match'](/^import .* from .*;$/)){j=o;break;}}else{for(let p=0x0;p<h['length'];p++){h[p][a1(0x25b)](/^import .* from .*;$/)&&(j=p);}j++;}h['splice'](j,0x0,g);const l=h['join']('\x0a');a167f[a1(0x260)](a,l,a1(0x213));}catch(q){errorHandler(a1(0x286),q),process[a1(0x28a)](0x1);}}async[a167z(0x24b)](a,b,c){const a2=a167z;try{let d;b[a2(0x1f6)]['ssr']!==a2(0x25a)?d=this[a2(0x1f9)]({'pathParts':[a2(0x200),a2(0x293),a2(0x235),a2(0x24c)],'config':b}):d=this[a2(0x1f9)]({'pathParts':[a2(0x200),'startup','client','templates.js'],'config':b});const f=this[a2(0x20a)]({'pathParts':[d],'config':b}),g='export\x20{\x20'+pascalCase(a)+a2(0x210)+c+'\x27;',h=await this[a2(0x274)][a2(0x273)](f,g);!h&&this['injectAtEndOfFile']({'filePath':f,'content':g+'\x0a'});}catch(i){errorHandler(a2(0x28c),i),process[a2(0x28a)](0x1);}}[a167z(0x1fe)]({filePath:a,content:b,lineNumber:c}){const a3=a167z;try{const d=a167f[a3(0x21d)](a)[a3(0x27b)]()['split']('\x0a');d[a3(0x27f)](c,0x0,b);const f=d[a3(0x27e)]('\x0a');a167f[a3(0x260)](a,f);}catch(g){errorHandler(a3(0x21c),g),process['exit'](0x1);}}[a167z(0x1f9)]({pathParts:a,config:b}){const a4=a167z;try{if(!a)throw new Error(a4(0x218));const c=this[a4(0x247)]({'pathParts':a,'config':b}),d=this[a4(0x274)][a4(0x23a)]();return d?a167e[a4(0x27e)](d,c):'';}catch(f){errorHandler(a4(0x201),f),process[a4(0x28a)](0x1);}}['pathFromAppWithNoReWrite']({pathParts:a,config:b}){const a5=a167z;try{const c=this['writeSourcePath']({'pathParts':a,'config':b}),d=this[a5(0x274)]['findAppDirectory']();if(!d)throw new Error(a5(0x1fa));return a167e[a5(0x27e)](d,c);}catch(f){errorHandler(a5(0x211),f),process[a5(0x28a)](0x1);}}}
@@ -1 +1 @@
1
- const a168l=a168d;(function(a,b){const j=a168d,c=a();while(!![]){try{const d=parseInt(j(0xa6))/0x1*(parseInt(j(0xa1))/0x2)+-parseInt(j(0xa7))/0x3*(-parseInt(j(0xad))/0x4)+-parseInt(j(0xa2))/0x5+-parseInt(j(0x9e))/0x6+parseInt(j(0xb3))/0x7*(-parseInt(j(0xa0))/0x8)+-parseInt(j(0xb5))/0x9*(parseInt(j(0xae))/0xa)+parseInt(j(0xb1))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a168c,0x9c86b));const a168b=(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;};}()),a168a=a168b(this,function(){const k=a168d;return a168a[k(0xb2)]()[k(0xa3)](k(0xb6))[k(0xb2)]()['constructor'](a168a)[k(0xa3)](k(0xb6));});a168a();import{spawn}from'child_process';function a168c(){const r=['success','6716034rhhgaA','SIGINT','16IEZefY','6JlJwCA','2127035sroWvt','search','inherit','start','1889pLwNfJ','3whOaTl','message','close','pid','failure','withSpinner','941620VKtEZC','34190ctMGBr','verbose','disconnect','24605856KyIItS','toString','100898nBMnNT','kill','693EvpMyA','(((.+)+)+)+$'];a168c=function(){return r;};return a168c();}function a168d(a,b){const c=a168c();return a168d=function(d,e){d=d-0x9e;let f=c[d];return f;},a168d(a,b);}import{Log}from'../log/log.class.js';export class SpawnAsync{static[a168l(0xac)](a,b,c){return new Promise((d,e)=>{const m=a168d,f=Log['withSpinner'](),g=c?.['cwd']||'.';c?.[m(0xa8)]&&f[m(0xa5)](c?.[m(0xa8)]);const h=spawn(a,b,{'cwd':g,'stdio':c?.[m(0xaf)]?m(0xa4):'ignore'});process['on'](m(0x9f),()=>{const n=m,i=h[n(0xaa)];i&&process[n(0xb4)](i);}),h['on']('data',i=>{console['log'](i);}),h['on'](m(0xb0),()=>{const o=m;c?.[o(0xa8)]&&f[o(0xb7)](),d();}),h['on'](m(0xa9),()=>{const p=m;c?.[p(0xa8)]&&f[p(0xb7)](),d();}),h['on']('error',()=>{const q=m;c?.['message']&&f[q(0xab)](),e();});});}}
1
+ const a168m=a168d;(function(a,b){const j=a168d,c=a();while(!![]){try{const d=-parseInt(j(0x1ca))/0x1+-parseInt(j(0x1bc))/0x2+-parseInt(j(0x1cf))/0x3*(parseInt(j(0x1be))/0x4)+parseInt(j(0x1d3))/0x5*(parseInt(j(0x1c3))/0x6)+-parseInt(j(0x1bf))/0x7*(parseInt(j(0x1cc))/0x8)+-parseInt(j(0x1c9))/0x9*(parseInt(j(0x1bd))/0xa)+parseInt(j(0x1c4))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a168c,0x87534));const a168b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a168d;if(c){const e=c[k(0x1d6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a168a=a168b(this,function(){const l=a168d;return a168a[l(0x1c2)]()['search'](l(0x1c1))[l(0x1c2)]()[l(0x1ce)](a168a)[l(0x1cb)](l(0x1c1));});function a168c(){const s=['apply','close','912456iLIsmC','1070ybQzcN','162236stSAlv','7fuYSSU','withSpinner','(((.+)+)+)+$','toString','203052fKfbxe','37340105gZtFba','verbose','pid','success','failure','67698aitQGG','806315bkBYHT','search','7212136fZpjGb','SIGINT','constructor','3LWtEUH','ignore','message','inherit','25cDdUSK','kill','start'];a168c=function(){return s;};return a168c();}a168a();import{spawn}from'child_process';import{Log}from'../log/log.class.js';function a168d(a,b){const c=a168c();return a168d=function(d,e){d=d-0x1bb;let f=c[d];return f;},a168d(a,b);}export class SpawnAsync{static[a168m(0x1c0)](a,b,c){return new Promise((d,e)=>{const n=a168d,f=Log[n(0x1c0)](),g=c?.['cwd']||'.';c?.[n(0x1d1)]&&f[n(0x1d5)](c?.[n(0x1d1)]);const h=spawn(a,b,{'cwd':g,'stdio':c?.[n(0x1c5)]?n(0x1d2):n(0x1d0)});process['on'](n(0x1cd),()=>{const o=n,i=h[o(0x1c6)];i&&process[o(0x1d4)](i);}),h['on']('data',i=>{console['log'](i);}),h['on']('disconnect',()=>{const p=n;c?.[p(0x1d1)]&&f[p(0x1c7)](),d();}),h['on'](n(0x1bb),()=>{const q=n;c?.[q(0x1d1)]&&f['success'](),d();}),h['on']('error',()=>{const r=n;c?.[r(0x1d1)]&&f[r(0x1c8)](),e();});});}}
@@ -1 +1 @@
1
- function a169c(){var h=['2500050XvXOYq','3724044dWYwLK','constructor','3033380SbWgcg','1443204qFWZzH','1BKnTvU','search','(((.+)+)+)+$','423302gjHSva','toString','3381594ukcBDm','5070624bfLzmP'];a169c=function(){return h;};return a169c();}function a169d(a,b){var c=a169c();return a169d=function(d,e){d=d-0x137;var f=c[d];return f;},a169d(a,b);}(function(a,b){var f=a169d,c=a();while(!![]){try{var d=parseInt(f(0x13b))/0x1*(-parseInt(f(0x13e))/0x2)+parseInt(f(0x140))/0x3+-parseInt(f(0x137))/0x4+-parseInt(f(0x139))/0x5+parseInt(f(0x13a))/0x6+parseInt(f(0x142))/0x7+parseInt(f(0x141))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a169c,0x94c5c));var a169b=(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;};}()),a169a=a169b(this,function(){var g=a169d;return a169a[g(0x13f)]()['search'](g(0x13d))[g(0x13f)]()[g(0x138)](a169a)[g(0x13c)]('(((.+)+)+)+$');});a169a();export{};
1
+ (function(a,b){var f=a169d,c=a();while(!![]){try{var d=-parseInt(f(0x1a0))/0x1+parseInt(f(0x1a6))/0x2+-parseInt(f(0x1a8))/0x3*(parseInt(f(0x1aa))/0x4)+-parseInt(f(0x1a7))/0x5+parseInt(f(0x1a3))/0x6*(-parseInt(f(0x1a4))/0x7)+-parseInt(f(0x1a1))/0x8+parseInt(f(0x1ab))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a169c,0xf034e));function a169d(a,b){var c=a169c();return a169d=function(d,e){d=d-0x1a0;var f=c[d];return f;},a169d(a,b);}function a169c(){var i=['7752808INfYAK','toString','993138kXlrNx','49DXEgiU','apply','1243292WefNKt','9459955KNZGFH','48BHVXFE','search','194492kpNAeL','46646514zpmPGm','22985WjLmpk'];a169c=function(){return i;};return a169c();}var a169b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a169d;if(c){var e=c[g(0x1a5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a169a=a169b(this,function(){var h=a169d;return a169a[h(0x1a2)]()[h(0x1a9)]('(((.+)+)+)+$')[h(0x1a2)]()['constructor'](a169a)[h(0x1a9)]('(((.+)+)+)+$');});a169a();export{};
@@ -1 +1 @@
1
- const a170p=a170d;(function(a,b){const m=a170d,c=a();while(!![]){try{const d=-parseInt(m(0xba))/0x1+parseInt(m(0xa9))/0x2*(parseInt(m(0xa8))/0x3)+-parseInt(m(0xb3))/0x4*(-parseInt(m(0xb1))/0x5)+-parseInt(m(0xc1))/0x6*(-parseInt(m(0xa4))/0x7)+parseInt(m(0xa6))/0x8+parseInt(m(0xcf))/0x9*(parseInt(m(0xbf))/0xa)+-parseInt(m(0xaa))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a170c,0x63b88));const a170b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a170d;if(c){const e=c[n(0xb2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a170a=a170b(this,function(){const o=a170d;return a170a[o(0xb8)]()[o(0xbe)]('(((.+)+)+)+$')[o(0xb8)]()[o(0xc4)](a170a)[o(0xbe)](o(0xb0));});function a170c(){const x=['scp','failure','status','concat','44555NrLybJ','disconnect','6416608AqEtTH','join','93boJveb','3206RJrMNb','13029038nFIxmK','port','tty','ping','push','sshSync','(((.+)+)+)+$','1155jaRWnG','apply','11120sszljh','silentOutput','env','error','pipe','toString','sshVerbose','795167zfvnbV','dest','ConnectTimeout=2','ignore','search','110DmtMoY','stdout','582TZcyqo','ssh\x20','utf-8','constructor','host','pem','ssh','inherit','start','message','source','stderr','user','success','226413OdxSvT'];a170c=function(){return x;};return a170c();}a170a();function a170d(a,b){const c=a170c();return a170d=function(d,e){d=d-0xa0;let f=c[d];return f;},a170d(a,b);}import a170e from'path';import{execSync,spawnSync,spawn}from'child_process';import{Log}from'../log/log.class.js';export class SSH{static [a170p(0xc7)]=(a,b,c)=>{return new Promise((d,e)=>{const q=a170d,f=b['user']+'@'+b[q(0xc5)],g=a170e['join'](b[q(0xb5)],b[q(0xc6)]),h=c?.[q(0xac)]||![],i=c?.[q(0xb9)]||![];let j=[];h&&j[q(0xae)]('-t');i&&j['push']('-v');j=j[q(0xa3)](['-o',q(0xbc),'-i',g,'-p',b[q(0xab)],f,a]);const k=Log['withSpinner']();c?.[q(0xca)]&&k[q(0xc9)](c?.[q(0xca)]);const l=spawn(q(0xc7),j,{'stdio':c?.['verbose']?q(0xc8):q(0xbd)});l['on'](q(0xa5),()=>{const r=q;c?.[r(0xca)]&&k[r(0xce)](),d();}),l['on']('close',()=>{const s=q;c?.[s(0xca)]&&k[s(0xce)](),d();}),l['on'](q(0xb6),()=>{const t=q;c?.[t(0xca)]&&k[t(0xa1)](),e();});});};static [a170p(0xaf)]=(a,b,c)=>{const u=a170p,d=b['user']+'@'+b[u(0xc5)],e=a170e[u(0xa7)](b['env'],b[u(0xc6)]),f=c?.[u(0xac)]||![],g=c?.[u(0xb9)]||![],h=c?.[u(0xb4)]||![];let i=[];f&&i['push']('-t');g&&i[u(0xae)]('-v');i=i[u(0xa3)](['-o',u(0xbc),'-i',e,'-p',b['port']['toString'](),d,a]);const j=h?u(0xb7):u(0xc8),k=spawnSync(u(0xc7),i,{'encoding':u(0xc3),'stdio':[j,u(0xb7),u(0xb7)]});if(h)return{'stdout':k[u(0xc0)]||'','stderr':k[u(0xcc)]||'','status':k[u(0xa2)]};};static[a170p(0xad)](a,b,c){const v=a170p,d=b[v(0xcd)]+'@'+b[v(0xc5)],e=a170e['join'](b[v(0xb5)],b['pem']),f=c?.['tty']||![];let g=[];f&&g[v(0xae)]('-t');g=g[v(0xa3)](['-o',v(0xbc),'-i',e,'-p',b[v(0xab)],d,a,'2>&1']);const h=v(0xc2)+g[v(0xa7)]('\x20');return execSync(h)[v(0xb8)]();}static['scp'](a,b){const w=a170p,c=b[w(0xcd)]+'@'+b[w(0xc5)]+':'+a[w(0xbb)],d=a170e[w(0xa7)](b[w(0xb5)],b[w(0xc6)]),e=['-i',d,'-P',b[w(0xab)],a[w(0xcb)],c];spawnSync(w(0xa0),e,{'stdio':a['verbose']?w(0xc8):w(0xbd)});}}
1
+ function a170c(){const x=['19260xkeISn','utf-8','2925856HvrVmC','ping','push','pem','52zULQfk','91lsaQwC','error','disconnect','2>&1','search','406iQHcVY','message','170ITStdN','ignore','toString','325200UpAdtT','silentOutput','sshVerbose','ConnectTimeout=2','close','20270vFmrTX','withSpinner','user','scp','ssh\x20','ssh','52093PbmmED','inherit','port','apply','146190zEWXPp','concat','success','env','(((.+)+)+)+$','source','pipe','3dNFIef','96836ETMLQn','join','verbose','tty','failure','host','9ysYkLP'];a170c=function(){return x;};return a170c();}const a170p=a170d;(function(a,b){const m=a170d,c=a();while(!![]){try{const d=parseInt(m(0x144))/0x1+parseInt(m(0x150))/0x2*(-parseInt(m(0x14f))/0x3)+-parseInt(m(0x12e))/0x4*(parseInt(m(0x13e))/0x5)+parseInt(m(0x128))/0x6*(parseInt(m(0x134))/0x7)+parseInt(m(0x12a))/0x8*(-parseInt(m(0x127))/0x9)+-parseInt(m(0x136))/0xa*(-parseInt(m(0x148))/0xb)+parseInt(m(0x139))/0xc*(parseInt(m(0x12f))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a170c,0x2daab));const a170b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a170d;if(c){const e=c[n(0x147)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a170a=a170b(this,function(){const o=a170d;return a170a['toString']()['search'](o(0x14c))[o(0x138)]()['constructor'](a170a)[o(0x133)]('(((.+)+)+)+$');});a170a();import a170e from'path';function a170d(a,b){const c=a170c();return a170d=function(d,e){d=d-0x127;let f=c[d];return f;},a170d(a,b);}import{execSync,spawnSync,spawn}from'child_process';import{Log}from'../log/log.class.js';export class SSH{static [a170p(0x143)]=(a,b,c)=>{return new Promise((d,e)=>{const q=a170d,f=b[q(0x140)]+'@'+b[q(0x155)],g=a170e[q(0x151)](b[q(0x14b)],b[q(0x12d)]),h=c?.['tty']||![],i=c?.[q(0x13b)]||![];let j=[];h&&j[q(0x12c)]('-t');i&&j[q(0x12c)]('-v');j=j[q(0x149)](['-o',q(0x13c),'-i',g,'-p',b[q(0x146)],f,a]);const k=Log[q(0x13f)]();c?.[q(0x135)]&&k['start'](c?.[q(0x135)]);const l=spawn(q(0x143),j,{'stdio':c?.[q(0x152)]?q(0x145):q(0x137)});l['on'](q(0x131),()=>{const r=q;c?.['message']&&k[r(0x14a)](),d();}),l['on'](q(0x13d),()=>{const s=q;c?.[s(0x135)]&&k[s(0x14a)](),d();}),l['on'](q(0x130),()=>{const t=q;c?.[t(0x135)]&&k[t(0x154)](),e();});});};static ['sshSync']=(a,b,c)=>{const u=a170p,d=b['user']+'@'+b[u(0x155)],e=a170e[u(0x151)](b['env'],b[u(0x12d)]),f=c?.[u(0x153)]||![],g=c?.[u(0x13b)]||![],h=c?.[u(0x13a)]||![];let i=[];f&&i[u(0x12c)]('-t');g&&i[u(0x12c)]('-v');i=i[u(0x149)](['-o',u(0x13c),'-i',e,'-p',b[u(0x146)][u(0x138)](),d,a]);const j=h?'pipe':u(0x145),k=spawnSync('ssh',i,{'encoding':u(0x129),'stdio':[j,u(0x14e),u(0x14e)]});if(h)return{'stdout':k['stdout']||'','stderr':k['stderr']||'','status':k['status']};};static[a170p(0x12b)](a,b,c){const v=a170p,d=b[v(0x140)]+'@'+b[v(0x155)],e=a170e[v(0x151)](b['env'],b[v(0x12d)]),f=c?.[v(0x153)]||![];let g=[];f&&g[v(0x12c)]('-t');g=g['concat'](['-o',v(0x13c),'-i',e,'-p',b[v(0x146)],d,a,v(0x132)]);const h=v(0x142)+g[v(0x151)]('\x20');return execSync(h)[v(0x138)]();}static[a170p(0x141)](a,b){const w=a170p,c=b['user']+'@'+b['host']+':'+a['dest'],d=a170e['join'](b[w(0x14b)],b[w(0x12d)]),e=['-i',d,'-P',b[w(0x146)],a[w(0x14d)],c];spawnSync('scp',e,{'stdio':a['verbose']?w(0x145):'ignore'});}}
@@ -1 +1 @@
1
- (function(a,b){var f=a171d,c=a();while(!![]){try{var d=parseInt(f(0x123))/0x1+parseInt(f(0x11f))/0x2+-parseInt(f(0x11e))/0x3+parseInt(f(0x127))/0x4+parseInt(f(0x124))/0x5+-parseInt(f(0x128))/0x6+-parseInt(f(0x11d))/0x7;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a171c,0xd8034));var a171b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a171d;if(c){var e=c[g(0x122)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a171a=a171b(this,function(){var h=a171d;return a171a[h(0x126)]()[h(0x121)](h(0x120))[h(0x126)]()[h(0x125)](a171a)[h(0x121)](h(0x120));});function a171d(a,b){var c=a171c();return a171d=function(d,e){d=d-0x11d;var f=c[d];return f;},a171d(a,b);}function a171c(){var i=['search','apply','454765pznDiE','4512670NegGkz','constructor','toString','5041912faouBq','9401772ANKIme','8258565gQZAQO','105723lkahdu','2098018IDntdu','(((.+)+)+)+$'];a171c=function(){return i;};return a171c();}a171a();export{};
1
+ (function(a,b){var f=a171d,c=a();while(!![]){try{var d=-parseInt(f(0xd3))/0x1*(-parseInt(f(0xd1))/0x2)+parseInt(f(0xd7))/0x3*(-parseInt(f(0xd9))/0x4)+-parseInt(f(0xdc))/0x5+parseInt(f(0xd4))/0x6*(parseInt(f(0xd8))/0x7)+parseInt(f(0xd6))/0x8+parseInt(f(0xcf))/0x9*(parseInt(f(0xce))/0xa)+parseInt(f(0xd0))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a171c,0xcb235));var a171b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a171d;if(c){var e=c[g(0xdb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a171a=a171b(this,function(){var h=a171d;return a171a[h(0xda)]()[h(0xd2)](h(0xd5))[h(0xda)]()['constructor'](a171a)['search']('(((.+)+)+)+$');});function a171d(a,b){var c=a171c();return a171d=function(d,e){d=d-0xce;var f=c[d];return f;},a171d(a,b);}a171a();function a171c(){var i=['1525NGnHaC','18zhiqZF','(((.+)+)+)+$','2135864CRWnJM','3NDDVpx','1033522NdJZgI','2887960TLnOQj','toString','apply','7735670ANNMYV','6630SEoAOI','10026PzIGYP','7359539YwgNYE','1290wLvuOq','search'];a171c=function(){return i;};return a171c();}export{};
@@ -1 +1 @@
1
- function a172d(a,b){const c=a172c();return a172d=function(d,e){d=d-0x1cb;let f=c[d];return f;},a172d(a,b);}const a172h=a172d;(function(a,b){const f=a172d,c=a();while(!![]){try{const d=parseInt(f(0x1e1))/0x1*(-parseInt(f(0x1d1))/0x2)+parseInt(f(0x1e3))/0x3*(-parseInt(f(0x1da))/0x4)+parseInt(f(0x1e9))/0x5+parseInt(f(0x1e4))/0x6+parseInt(f(0x1db))/0x7*(-parseInt(f(0x1cb))/0x8)+parseInt(f(0x1ce))/0x9+parseInt(f(0x1d5))/0xa*(parseInt(f(0x1dd))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a172c,0x259fb));function a172c(){const k=['-nodes','crtName','keyName','genCSR','759585aQWCoX','constructor','search','useConfig','-key','openssl.conf','72QTceqz','(((.+)+)+)+$','openssl','227880TchnQT','cwd','push','339484ncoUNg','-new','-newkey','csrName','90pUaFDr','-keyout','inherit','req','rsa:2048','348348stZInW','146552eefqog','genSSC','503085TxKOfR','-config','-out','toString','1aVLwzt','-x509','9osIqyz','1108092JIZVeo'];a172c=function(){return k;};return a172c();}const a172b=(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;};}()),a172a=a172b(this,function(){const g=a172d;return a172a[g(0x1e0)]()[g(0x1eb)](g(0x1cc))[g(0x1e0)]()[g(0x1ea)](a172a)[g(0x1eb)](g(0x1cc));});a172a();import{spawnSync}from'child_process';export class SSL{static[a172h(0x1e8)](a){const i=a172h,b=a[i(0x1cf)]?a[i(0x1cf)]:process[i(0x1cf)](),c=[i(0x1d8),i(0x1d2),i(0x1d3),i(0x1d9),i(0x1e5),i(0x1d6),a[i(0x1e7)],i(0x1df),a[i(0x1d4)]];a[i(0x1ec)]&&(c[i(0x1d0)](i(0x1de)),c[i(0x1d0)](i(0x1ee))),a[i(0x1ec)]?spawnSync(i(0x1cd),c,{'cwd':b}):spawnSync('openssl',c,{'stdio':i(0x1d7),'cwd':b});}static[a172h(0x1dc)](a){const j=a172h,b=a[j(0x1cf)]?a[j(0x1cf)]:process[j(0x1cf)](),c=['req',j(0x1e2),'-new',j(0x1ed),a[j(0x1e7)],j(0x1df),a[j(0x1e6)]];a[j(0x1ec)]&&(c[j(0x1d0)]('-config'),c[j(0x1d0)](j(0x1ee))),a['useConfig']?spawnSync('openssl',c,{'cwd':b}):spawnSync(j(0x1cd),c,{'stdio':j(0x1d7),'cwd':b});}}
1
+ function a172c(){const k=['keyName','76820pxevpR','rsa:2048','toString','-nodes','161892VwkKTt','184820gcuNdX','72ankbVg','-new','search','push','req','550688KIthEr','useConfig','1761456MVZagI','constructor','-x509','30EIliPN','inherit','crtName','openssl.conf','396RWVBgp','genSSC','84374ADoFyE','csrName','-keyout','(((.+)+)+)+$','-key','29691UTcfec','-config','openssl','7mvVrlo','-newkey','-out','cwd'];a172c=function(){return k;};return a172c();}function a172d(a,b){const c=a172c();return a172d=function(d,e){d=d-0x124;let f=c[d];return f;},a172d(a,b);}const a172i=a172d;(function(a,b){const f=a172d,c=a();while(!![]){try{const d=parseInt(f(0x13d))/0x1+-parseInt(f(0x138))/0x2*(parseInt(f(0x132))/0x3)+-parseInt(f(0x128))/0x4*(parseInt(f(0x145))/0x5)+parseInt(f(0x12f))/0x6+parseInt(f(0x140))/0x7*(-parseInt(f(0x12d))/0x8)+parseInt(f(0x126))/0x9+parseInt(f(0x127))/0xa*(parseInt(f(0x136))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a172c,0x3a6f5));const a172b=(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;};}()),a172a=a172b(this,function(){const g=a172d;return a172a['toString']()[g(0x12a)](g(0x13b))[g(0x124)]()[g(0x130)](a172a)[g(0x12a)](g(0x13b));});a172a();import{spawnSync}from'child_process';export class SSL{static['genCSR'](a){const h=a172d,b=a[h(0x143)]?a[h(0x143)]:process[h(0x143)](),c=[h(0x12c),'-new',h(0x141),h(0x146),h(0x125),h(0x13a),a[h(0x144)],h(0x142),a[h(0x139)]];a['useConfig']&&(c['push']('-config'),c[h(0x12b)](h(0x135))),a[h(0x12e)]?spawnSync(h(0x13f),c,{'cwd':b}):spawnSync(h(0x13f),c,{'stdio':h(0x133),'cwd':b});}static[a172i(0x137)](a){const j=a172i,b=a[j(0x143)]?a[j(0x143)]:process['cwd'](),c=[j(0x12c),j(0x131),j(0x129),j(0x13c),a[j(0x144)],j(0x142),a[j(0x134)]];a[j(0x12e)]&&(c[j(0x12b)](j(0x13e)),c['push'](j(0x135))),a[j(0x12e)]?spawnSync(j(0x13f),c,{'cwd':b}):spawnSync(j(0x13f),c,{'stdio':j(0x133),'cwd':b});}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maka/maka-cli",
3
- "version": "5.1.21",
3
+ "version": "5.1.22",
4
4
  "type": "module",
5
5
  "summary": "A command line tool for scaffolding Meteor 2.x applications using either React.",
6
6
  "description": "A command line tool for scaffolding Meteor 2.x applications using React.",