@maka/maka-cli 4.5.28 → 4.5.29

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 (132) 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/aws/_index.js +1 -1
  5. package/bundle/obf/src/commands/aws/aws.command.js +1 -1
  6. package/bundle/obf/src/commands/aws/chz.sub.cmd.js +1 -1
  7. package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
  8. package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
  9. package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
  10. package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
  11. package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
  12. package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
  13. package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
  14. package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
  15. package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
  16. package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
  17. package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
  18. package/bundle/obf/src/commands/build/_index.js +1 -1
  19. package/bundle/obf/src/commands/build/build.js +1 -1
  20. package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
  21. package/bundle/obf/src/commands/create.js +1 -1
  22. package/bundle/obf/src/commands/debug.js +1 -1
  23. package/bundle/obf/src/commands/deploy.js +1 -1
  24. package/bundle/obf/src/commands/game/_index.js +1 -1
  25. package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
  26. package/bundle/obf/src/commands/game/play.command.js +1 -1
  27. package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
  28. package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
  29. package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
  30. package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
  31. package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
  32. package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
  33. package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
  34. package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
  35. package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
  36. package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
  37. package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
  38. package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
  39. package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
  40. package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
  41. package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
  42. package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
  43. package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
  44. package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
  45. package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
  46. package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
  47. package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
  48. package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
  49. package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
  50. package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
  51. package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
  52. package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
  53. package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
  54. package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
  55. package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
  56. package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
  57. package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
  58. package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
  59. package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
  60. package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
  61. package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
  62. package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
  63. package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
  64. package/bundle/obf/src/commands/generate.js +1 -1
  65. package/bundle/obf/src/commands/get/_index.js +1 -1
  66. package/bundle/obf/src/commands/get/get.command.js +1 -1
  67. package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
  68. package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
  69. package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
  70. package/bundle/obf/src/commands/help.js +1 -1
  71. package/bundle/obf/src/commands/jsdoc.js +1 -1
  72. package/bundle/obf/src/commands/lint.js +1 -1
  73. package/bundle/obf/src/commands/login.js +1 -1
  74. package/bundle/obf/src/commands/logout.js +1 -1
  75. package/bundle/obf/src/commands/logs.js +1 -1
  76. package/bundle/obf/src/commands/maka.cmd.js +1 -1
  77. package/bundle/obf/src/commands/murder.js +1 -1
  78. package/bundle/obf/src/commands/proxy.js +1 -1
  79. package/bundle/obf/src/commands/reconfig.js +1 -1
  80. package/bundle/obf/src/commands/run/_index.js +1 -1
  81. package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
  82. package/bundle/obf/src/commands/run/run.command.js +1 -1
  83. package/bundle/obf/src/commands/set/_index.js +1 -1
  84. package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
  85. package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
  86. package/bundle/obf/src/commands/set/set.command.js +1 -1
  87. package/bundle/obf/src/commands/ssh.js +1 -1
  88. package/bundle/obf/src/commands/ssl.js +1 -1
  89. package/bundle/obf/src/commands/test.js +1 -1
  90. package/bundle/obf/src/commands/version.js +1 -1
  91. package/bundle/obf/src/error.js +1 -1
  92. package/bundle/obf/src/exec.js +1 -1
  93. package/bundle/obf/src/generator.js +1 -1
  94. package/bundle/obf/src/generators/_index.js +1 -1
  95. package/bundle/obf/src/generators/api.js +1 -1
  96. package/bundle/obf/src/generators/collection.js +1 -1
  97. package/bundle/obf/src/generators/component.js +1 -1
  98. package/bundle/obf/src/generators/config.js +1 -1
  99. package/bundle/obf/src/generators/dbc.js +1 -1
  100. package/bundle/obf/src/generators/dockerfile.js +1 -1
  101. package/bundle/obf/src/generators/hook.js +1 -1
  102. package/bundle/obf/src/generators/kit.js +1 -1
  103. package/bundle/obf/src/generators/layout.js +1 -1
  104. package/bundle/obf/src/generators/maka.gen.js +1 -1
  105. package/bundle/obf/src/generators/methods.js +1 -1
  106. package/bundle/obf/src/generators/package.js +1 -1
  107. package/bundle/obf/src/generators/page.js +1 -1
  108. package/bundle/obf/src/generators/publish.js +1 -1
  109. package/bundle/obf/src/generators/route.js +1 -1
  110. package/bundle/obf/src/generators/service.js +1 -1
  111. package/bundle/obf/src/generators/services/_index.js +1 -1
  112. package/bundle/obf/src/generators/services/openssl.js +1 -1
  113. package/bundle/obf/src/generators/services/translation.js +1 -1
  114. package/bundle/obf/src/maka.js +1 -1
  115. package/bundle/obf/src/tool.js +1 -1
  116. package/bundle/obf/src/tools/actions/actions.class.js +1 -1
  117. package/bundle/obf/src/tools/aws/aws.class.js +1 -1
  118. package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
  119. package/bundle/obf/src/tools/docker/docker.class.js +1 -1
  120. package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
  121. package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
  122. package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
  123. package/bundle/obf/src/tools/https/https.class.js +1 -1
  124. package/bundle/obf/src/tools/https/https.interface.js +1 -1
  125. package/bundle/obf/src/tools/log/log.class.js +1 -1
  126. package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
  127. package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
  128. package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
  129. package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
  130. package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
  131. package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
  132. package/package.json +1 -1
@@ -1 +1 @@
1
- const a96r=a96d;(function(a,b){const o=a96d,c=a();while(!![]){try{const d=parseInt(o(0x10c))/0x1+-parseInt(o(0x100))/0x2+parseInt(o(0x137))/0x3+-parseInt(o(0x119))/0x4*(-parseInt(o(0xfe))/0x5)+parseInt(o(0x128))/0x6*(parseInt(o(0x10b))/0x7)+parseInt(o(0xfd))/0x8*(parseInt(o(0x142))/0x9)+-parseInt(o(0xf7))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a96c,0x39549));const a96b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a96d;if(c){const e=c[p(0x11d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a96a=a96b(this,function(){const q=a96d;return a96a['toString']()[q(0x116)](q(0x122))[q(0x110)]()[q(0x138)](a96a)['search'](q(0x122));});function a96c(){const u=['\x20}\x20from\x20\x27','521320bMABcH','getProjectConfig','installNpmPackage','resourceName','create','assign','.css','reflux','component/component.js','test','root','147shWBXA','329043jTlhKT','tsx','string','fsi','toString','pages','baseDir','withValue','component','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','search','import\x20{\x20','features','68024FTEvph','graphql','hooks','setTemplate','apply','import\x20\x27','ramda','engines','injectAtBeginningOfFile','(((.+)+)+)+$','withTranslations','\x27;\x0a','relative','injectAtEndOfFile','error','95076PZzTmn','warn','components','maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','.js','cssCaseName','maka\x20g:comp\x20todos/todos-item','findAppDirectory','\x20};\x0a','true','import\x20\x27./','pathFromProject','fileName','templates.js','className','635196aYMDqa','constructor','theme','template','css','Invalid\x20directory\x20option\x20\x22','dir','startup','/imports/ui/','template/template.css','react','9GSMMtX','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','imports','/imports/ui/components','8530330wCJzGD','pathFromApp','checkNpmPackage','api','client','rewriteDestinationPathForEngine','1895144wknYhT','70dHKEcC'];a96c=function(){return u;};return a96c();}function a96d(a,b){const c=a96c();return a96d=function(d,e){d=d-0xf4;let f=c[d];return f;},a96d(a,b);}a96a();import a96e from'path';import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';const aliases=['comp'];Generator[a96r(0x104)]({'name':a96r(0x114),'aliases':aliases,'usage':a96r(0x12b),'shortDesc':a96r(0xf4),'validOpts':[a96r(0x112)],'examples':[a96r(0x12e)]},async function(a,b){const s=a96r;try{const c=[s(0x11b),s(0x12a),s(0x111),'layouts'];if(b[s(0x112)]&&!c['includes'](b['baseDir'])){Log[s(0x127)](s(0x13c)+b[s(0x112)]+'\x22'),Log[s(0x127)]('Valid\x20options\x20are:\x20'+c['join'](',\x20'));throw new UsageError();}const d=this[s(0x10f)][s(0x12f)](),f=b[s(0x112)]?s(0x13f)+b['baseDir']:s(0xf6),g=this['fsi']['pathFromApp']({'pathParts':[f,b['dir'],b['resourceName'],paramCase(b[s(0x103)])]}),h=await this[s(0x10f)][s(0x101)]();this['fsi'][s(0x113)](h,async()=>{const t=s;typeof h['template'][t(0x109)]==='string'&&(h[t(0x13a)]['test']=h[t(0x13a)]['test']==='true'?!![]:![],this['fsi']['setTemplate'](t(0x109),h['template']['test']));typeof h[t(0x13a)]['css']==='string'&&(h[t(0x13a)]['css']=h[t(0x13a)][t(0x13b)]===t(0x131)?!![]:![],this['fsi'][t(0x11c)](t(0x13b),h[t(0x13a)][t(0x13b)]));typeof h['template']['js']===t(0x10e)&&(h[t(0x13a)]['js']=h[t(0x13a)]['js']===t(0x131)?!![]:![],this[t(0x10f)][t(0x11c)]('js',h['template']['js']));!h[t(0x118)]&&(h[t(0x118)]={});!b[t(0x10a)]&&!this[t(0x10f)][t(0xf9)]('ramda')&&(Log[t(0x129)](t(0x143)),await this[t(0x10f)][t(0x102)](t(0x11f),{'cwd':d}));if(!b[t(0x10a)]&&!this['fsi']['checkNpmPackage']('react')){Log['error'](t(0x115));return;}const i={'name':pascalCase(b[t(0x103)]),'myPath':a96e[t(0x125)](this[t(0x10f)][t(0x133)]({}),g),'cssCaseName':paramCase(b[t(0x103)]),'className':pascalCase(b[t(0x103)]),'camelCaseName':camelCase(b[t(0x103)]),'fileName':paramCase(b['resourceName']),'graphql':h[t(0x120)][t(0x11a)],'features':h[t(0x118)],'client':h[t(0x120)][t(0xfb)],'api':h['engines'][t(0xfa)],'ssr':h[t(0x120)]['ssr'],'test':h[t(0x120)][t(0x109)],'theme':h['engines'][t(0x139)],'isLayout':![],'isComponent':!![],'withTranslations':h[t(0x118)][t(0x123)]};this[t(0x10f)][t(0x13a)]({'srcPath':t(0x108),'destPath':g+t(0x12c),'context':i,'framework':t(0x141),'config':h});h[t(0x120)]['test']!=='none'&&this[t(0x10f)][t(0x13a)]({'srcPath':'test/test.js','destPath':g+'.tests.js','context':i,'framework':'react','config':h});h['template'][t(0x13b)]&&(this[t(0x10f)]['template']({'srcPath':t(0x140),'destPath':g+t(0x106),'context':Object[t(0x105)]({},i,{'className':paramCase(b[t(0x103)])}),'config':h}),this[t(0x10f)]['injectAtBeginningOfFile']({'filePath':g+'.'+h[t(0x120)]['js'],'content':t(0x132)+i[t(0x12d)]+'.'+h[t(0x120)][t(0x13b)]+'\x27;'}));const j=b['dir']?'/'+b[t(0x13d)]+'/':'/',k=''+f+j+i['fileName']+'/'+i[t(0x134)];let l;if(h[t(0x120)]['ssr']==='true'){const m=this[t(0x10f)][t(0xf8)]({'pathParts':[t(0xf5),t(0x13e),'lib',t(0x135)]});l=this[t(0x10f)][t(0xfc)]({'pathParts':[m],'config':h});}else{const n=this[t(0x10f)][t(0xf8)]({'pathParts':['imports',t(0x13e),'client',t(0x135)]});l=this[t(0x10f)][t(0xfc)]({'pathParts':[n],'config':h});}h['engines'][t(0xfb)]===t(0x141)||h[t(0x120)][t(0xfb)]===t(0x107)?(h[t(0x120)]['js']===t(0x10d)?this[t(0x10f)][t(0x121)]({'filePath':l,'content':t(0x117)+i['className']+t(0xff)+k+t(0x124)}):this[t(0x10f)][t(0x121)]({'filePath':l,'content':'import\x20{\x20'+i[t(0x136)]+t(0xff)+k+'.'+h[t(0x120)]['js']+t(0x124)}),this[t(0x10f)]['injectAtEndOfFile']({'filePath':l,'content':'export\x20{\x20'+i[t(0x136)]+t(0x130)})):this['fsi'][t(0x126)]({'filePath':l,'content':t(0x11e)+k+'.'+h[t(0x120)]['js']+t(0x124)});});}catch(i){Log[s(0x127)](i);}});
1
+ const a96r=a96d;(function(a,b){const o=a96d,c=a();while(!![]){try{const d=-parseInt(o(0x12a))/0x1*(-parseInt(o(0x13b))/0x2)+-parseInt(o(0x147))/0x3+-parseInt(o(0x116))/0x4*(parseInt(o(0x112))/0x5)+-parseInt(o(0x126))/0x6*(-parseInt(o(0x144))/0x7)+-parseInt(o(0x12b))/0x8*(-parseInt(o(0x148))/0x9)+-parseInt(o(0x11a))/0xa*(parseInt(o(0x10b))/0xb)+parseInt(o(0x111))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a96c,0x5b7ad));const a96b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a96d;if(c){const e=c[p(0x14b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a96a=a96b(this,function(){const q=a96d;return a96a['toString']()[q(0x151)](q(0x12e))[q(0x136)]()[q(0x108)](a96a)['search'](q(0x12e));});a96a();import a96e from'path';import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';function a96d(a,b){const c=a96c();return a96d=function(d,e){d=d-0x104;let f=c[d];return f;},a96d(a,b);}const aliases=[a96r(0x11c)];Generator[a96r(0x135)]({'name':a96r(0x133),'aliases':aliases,'usage':'maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','shortDesc':a96r(0x13c),'validOpts':[a96r(0x118)],'examples':[a96r(0x128)]},async function(a,b){const s=a96r;try{const c=['hooks',s(0x146),'pages',s(0x131)];if(b[s(0x118)]&&!c[s(0x10d)](b[s(0x118)])){Log[s(0x145)](s(0x127)+b[s(0x118)]+'\x22'),Log[s(0x145)](s(0x11e)+c[s(0x137)](',\x20'));throw new UsageError();}const d=this['fsi']['findAppDirectory'](),f=b['baseDir']?s(0x14a)+b['baseDir']:s(0x123),g=this[s(0x130)][s(0x121)]({'pathParts':[f,b[s(0x14c)],b[s(0x142)],paramCase(b['resourceName'])]}),h=await this['fsi'][s(0x120)]();this[s(0x130)]['withValue'](h,async()=>{const t=s;typeof h[t(0x13d)][t(0x10a)]==='string'&&(h[t(0x13d)][t(0x10a)]=h[t(0x13d)]['test']===t(0x152)?!![]:![],this['fsi']['setTemplate'](t(0x10a),h[t(0x13d)][t(0x10a)]));typeof h[t(0x13d)][t(0x134)]===t(0x12d)&&(h[t(0x13d)][t(0x134)]=h[t(0x13d)][t(0x134)]===t(0x152)?!![]:![],this['fsi']['setTemplate'](t(0x134),h[t(0x13d)]['css']));typeof h[t(0x13d)]['js']==='string'&&(h[t(0x13d)]['js']=h[t(0x13d)]['js']==='true'?!![]:![],this[t(0x130)][t(0x139)]('js',h[t(0x13d)]['js']));!h[t(0x12f)]&&(h[t(0x12f)]={});!b[t(0x11d)]&&!this['fsi']['checkNpmPackage']('ramda')&&(Log[t(0x109)](t(0x12c)),await this[t(0x130)][t(0x107)](t(0x10c),{'cwd':d}));if(!b['root']&&!this['fsi'][t(0x129)](t(0x117))){Log['error']('This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator');return;}const i={'name':pascalCase(b[t(0x142)]),'myPath':a96e[t(0x122)](this[t(0x130)][t(0x119)]({}),g),'cssCaseName':paramCase(b[t(0x142)]),'className':pascalCase(b[t(0x142)]),'camelCaseName':camelCase(b[t(0x142)]),'fileName':paramCase(b[t(0x142)]),'graphql':h[t(0x110)]['graphql'],'features':h[t(0x12f)],'client':h['engines'][t(0x113)],'api':h['engines'][t(0x10e)],'ssr':h['engines'][t(0x14f)],'test':h['engines']['test'],'theme':h[t(0x110)][t(0x114)],'isLayout':![],'isComponent':!![],'withTranslations':h[t(0x12f)][t(0x14d)]};this[t(0x130)][t(0x13d)]({'srcPath':'component/component.js','destPath':g+t(0x141),'context':i,'framework':t(0x117),'config':h});h[t(0x110)][t(0x10a)]!==t(0x104)&&this[t(0x130)][t(0x13d)]({'srcPath':t(0x13e),'destPath':g+'.tests.js','context':i,'framework':t(0x117),'config':h});h[t(0x13d)][t(0x134)]&&(this[t(0x130)][t(0x13d)]({'srcPath':t(0x150),'destPath':g+t(0x149),'context':Object[t(0x13f)]({},i,{'className':paramCase(b['resourceName'])}),'config':h}),this[t(0x130)][t(0x125)]({'filePath':g+'.'+h['engines']['js'],'content':'import\x20\x27./'+i[t(0x13a)]+'.'+h[t(0x110)][t(0x134)]+'\x27;'}));const j=b[t(0x14c)]?'/'+b[t(0x14c)]+'/':'/',k=''+f+j+i[t(0x143)]+'/'+i[t(0x143)];let l;if(h['engines'][t(0x14f)]==='true'){const m=this[t(0x130)][t(0x121)]({'pathParts':[t(0x14e),t(0x115),t(0x124),t(0x153)]});l=this[t(0x130)]['rewriteDestinationPathForEngine']({'pathParts':[m],'config':h});}else{const n=this[t(0x130)][t(0x121)]({'pathParts':[t(0x14e),t(0x115),'client',t(0x153)]});l=this['fsi'][t(0x138)]({'pathParts':[n],'config':h});}h[t(0x110)][t(0x113)]==='react'||h[t(0x110)][t(0x113)]===t(0x132)?(h[t(0x110)]['js']===t(0x11b)?this['fsi'][t(0x125)]({'filePath':l,'content':'import\x20{\x20'+i['className']+'\x20}\x20from\x20\x27'+k+t(0x105)}):this[t(0x130)]['injectAtBeginningOfFile']({'filePath':l,'content':t(0x140)+i['className']+'\x20}\x20from\x20\x27'+k+'.'+h['engines']['js']+t(0x105)}),this[t(0x130)]['injectAtEndOfFile']({'filePath':l,'content':'export\x20{\x20'+i['className']+t(0x10f)})):this['fsi'][t(0x106)]({'filePath':l,'content':t(0x11f)+k+'.'+h[t(0x110)]['js']+t(0x105)});});}catch(i){Log[s(0x145)](i);}});function a96c(){const u=['relative','/imports/ui/components','lib','injectAtBeginningOfFile','9462DwjFhv','Invalid\x20directory\x20option\x20\x22','maka\x20g:comp\x20todos/todos-item','checkNpmPackage','67945VEYnuo','170776CFyDbu','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','string','(((.+)+)+)+$','features','fsi','layouts','reflux','component','css','create','toString','join','rewriteDestinationPathForEngine','setTemplate','cssCaseName','8IoWKNG','Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','template','test/test.js','assign','import\x20{\x20','.js','resourceName','fileName','2310wukRAl','error','components','1793916TyMNSe','288SgSyoE','.css','/imports/ui/','apply','dir','withTranslations','imports','ssr','template/template.css','search','true','templates.js','none','\x27;\x0a','injectAtEndOfFile','installNpmPackage','constructor','warn','test','737UxAFdu','ramda','includes','api','\x20};\x0a','engines','2241924kWwXCm','2508235EavVpk','client','theme','startup','4tSjWMn','react','baseDir','pathFromProject','28030whWSjM','tsx','comp','root','Valid\x20options\x20are:\x20','import\x20\x27','getProjectConfig','pathFromApp'];a96c=function(){return u;};return a96c();}
@@ -1 +1 @@
1
- const a97k=a97d;(function(a,b){const h=a97d,c=a();while(!![]){try{const d=parseInt(h(0x1e6))/0x1+parseInt(h(0x1d8))/0x2+-parseInt(h(0x1db))/0x3+-parseInt(h(0x1cb))/0x4+parseInt(h(0x1e7))/0x5*(-parseInt(h(0x1e0))/0x6)+parseInt(h(0x1e2))/0x7*(-parseInt(h(0x1d7))/0x8)+parseInt(h(0x1d2))/0x9*(parseInt(h(0x1c8))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a97c,0xbd21e));const a97b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a97d;if(c){const e=c[i(0x1e5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a97a=a97b(this,function(){const j=a97d;return a97a['toString']()['search'](j(0x1cd))[j(0x1d3)]()[j(0x1ce)](a97a)['search'](j(0x1cd));});a97a();function a97c(){const n=['isDocker','3567221uBqFoN','pathFromProject','withValue','apply','1282107fEVgox','16495CKYmfi','production','20wNskmz','ubuntu','dev','5574584wZCHQG','Generate\x20configuration\x20settings.','(((.+)+)+)+$','constructor','create','maka\x20g:config\x20production','fsi','5303079tXxbiJ','toString','resourceName','config/settings.json','config','8FOkjzP','1160920SpLzUk','appName','template','406389fBKemJ','settings.json','maka\x20{generate,\x20g}:{config}\x20<name>','getProjectConfig','development','414hkMJZI'];a97c=function(){return n;};return a97c();}import{Generator}from'../generator.js';function a97d(a,b){const c=a97c();return a97d=function(d,e){d=d-0x1c7;let f=c[d];return f;},a97d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';Generator[a97k(0x1cf)]({'name':a97k(0x1d6),'usage':a97k(0x1dd),'shortDesc':a97k(0x1cc),'validOpts':[a97k(0x1e1)],'examples':[a97k(0x1d0)]},function(a,b){const l=a97k,c=this['fsi'][l(0x1de)]();this[l(0x1d1)][l(0x1e4)](c,async()=>{const m=l,d={'app':c['appName'],'appFileCase':paramCase(c[m(0x1d9)]),'name':pascalCase(b[m(0x1d4)]),'fileName':paramCase(b[m(0x1d4)]),'camelCase':camelCase(b[m(0x1d4)]),'userName':m(0x1c9),'isDocker':b['isDocker']};let e=a[0x0];if(e===m(0x1ca))e=m(0x1df);else e==='prod'&&(e=m(0x1c7));const f=this[m(0x1d1)][m(0x1e3)]({'pathParts':[m(0x1d6),e,m(0x1dc)]});this['fsi'][m(0x1da)]({'srcPath':m(0x1d5),'destPath':f,'context':d,'config':c});if(!b['isDocker']){const g=this[m(0x1d1)][m(0x1e3)]({'pathParts':['config',e,'process.env']});this[m(0x1d1)]['template']({'srcPath':'config/process.env','destPath':g,'context':d,'config':c});}});});
1
+ const a97k=a97d;(function(a,b){const h=a97d,c=a();while(!![]){try{const d=-parseInt(h(0x18a))/0x1+parseInt(h(0x17f))/0x2*(parseInt(h(0x192))/0x3)+-parseInt(h(0x194))/0x4+parseInt(h(0x18b))/0x5+parseInt(h(0x195))/0x6*(parseInt(h(0x186))/0x7)+-parseInt(h(0x193))/0x8+parseInt(h(0x184))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a97c,0x8b286));function a97c(){const n=['5309030qQxBic','prod','appName','maka\x20g:config\x20production','maka\x20{generate,\x20g}:{config}\x20<name>','process.env','apply','62544HEVmrn','6185096GqRRjw','1638540JZQIvx','198tgGcQY','search','development','fsi','ubuntu','template','dev','settings.json','26wZKOUG','constructor','pathFromProject','create','getProjectConfig','3168306tWLTsJ','withValue','85295tLVlyZ','isDocker','config','resourceName','334207gAwLCU'];a97c=function(){return n;};return a97c();}const a97b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a97d;if(c){const e=c[i(0x191)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a97a=a97b(this,function(){const j=a97d;return a97a['toString']()[j(0x196)]('(((.+)+)+)+$')['toString']()[j(0x180)](a97a)[j(0x196)]('(((.+)+)+)+$');});a97a();import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';function a97d(a,b){const c=a97c();return a97d=function(d,e){d=d-0x179;let f=c[d];return f;},a97d(a,b);}Generator[a97k(0x182)]({'name':a97k(0x188),'usage':a97k(0x18f),'shortDesc':'Generate\x20configuration\x20settings.','validOpts':[a97k(0x187)],'examples':[a97k(0x18e)]},function(a,b){const l=a97k,c=this[l(0x17a)][l(0x183)]();this[l(0x17a)][l(0x185)](c,async()=>{const m=l,d={'app':c[m(0x18d)],'appFileCase':paramCase(c[m(0x18d)]),'name':pascalCase(b['resourceName']),'fileName':paramCase(b['resourceName']),'camelCase':camelCase(b[m(0x189)]),'userName':m(0x17b),'isDocker':b['isDocker']};let e=a[0x0];if(e===m(0x17d))e=m(0x179);else e===m(0x18c)&&(e='production');const f=this[m(0x17a)][m(0x181)]({'pathParts':[m(0x188),e,m(0x17e)]});this[m(0x17a)]['template']({'srcPath':'config/settings.json','destPath':f,'context':d,'config':c});if(!b['isDocker']){const g=this[m(0x17a)][m(0x181)]({'pathParts':['config',e,m(0x190)]});this[m(0x17a)][m(0x17c)]({'srcPath':'config/process.env','destPath':g,'context':d,'config':c});}});});
@@ -1 +1 @@
1
- function a98c(){const t=['1930190Yabbrh','startup','9535064gmSabq','getProjectConfig','warn','1zDtHFj','tsx','33Mlttym','Invalid\x20type\x20','Npm\x20package\x20\x22better-sqlite3\x22\x20not\x20installed,\x20installing...','imports','fsi','pgsql','error','better-sqlite3','list','search','dbc/register-dbc.js','server','create','withValue','471wreWKy','maka\x20g:dbc\x20azure\x20--type=mssql','installNpmPackage','PostgreSQL','1964475quvsTN','dbc/config.js','31224tlevAB','maka\x20{generate,\x20g}:{dbc}\x20<connection-name>','6635845wRRzer','DB\x20Driver','template','register-','mssql','toString','engines',',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument','type','dbAnswer','checkNpmPackage','dbc/conn.js','options','config.','apply','pathFromApp','constructor','dir','35smIJpr','import\x20\x27./register-','dbc','-dbc\x27;','Scaffolding\x20for\x20creating\x20a\x20for\x20a\x20database\x20connection.','775538OkAiFI','sqlite','(((.+)+)+)+$','MS\x20SQL','injectAtEndOfFile','index.','maka\x20g:dbc\x20geoserver\x20--type=pgsql','indexOf','resourceName','(blank)','88842zBanDA'];a98c=function(){return t;};return a98c();}const a98q=a98d;(function(a,b){const n=a98d,c=a();while(!![]){try{const d=-parseInt(n(0x123))/0x1*(parseInt(n(0x113))/0x2)+parseInt(n(0x133))/0x3*(parseInt(n(0xfa))/0x4)+parseInt(n(0xfc))/0x5+parseInt(n(0x11d))/0x6*(parseInt(n(0x10e))/0x7)+-parseInt(n(0x120))/0x8+parseInt(n(0xf8))/0x9+-parseInt(n(0x11e))/0xa*(parseInt(n(0x125))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a98c,0xa78e8));const a98b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a98d;if(c){const e=c[o(0x10a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a98a=a98b(this,function(){const p=a98d;return a98a[p(0x101)]()[p(0x12e)](p(0x115))[p(0x101)]()[p(0x10c)](a98a)['search']('(((.+)+)+)+$');});a98a();import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';function a98d(a,b){const c=a98c();return a98d=function(d,e){d=d-0xf5;let f=c[d];return f;},a98d(a,b);}import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';Generator[a98q(0x131)]({'name':'dbc','usage':a98q(0xfb),'shortDesc':a98q(0x112),'validOpts':[a98q(0x104),'dir'],'examples':[a98q(0x119),a98q(0xf5),'maka\x20g:dbc\x20todos\x20--type=sqlite']},async function(a,b){const r=a98q;try{const c=await this[r(0x129)][r(0x121)](),d=this[r(0x129)][r(0x10b)]({}),f=paramCase(b[r(0x11b)]);if(!b['type']){const h={'type':r(0x12d),'name':r(0x105),'message':r(0xfd),'choices':[{'name':r(0xf7),'value':'pgsql'},{'name':r(0x116),'value':'mssql'}]},{dbAnswer:i}=await Actions[r(0x108)](h);i&&(b[r(0x104)]=i);}const g={'name':pascalCase(b[r(0x11b)]),'fileName':paramCase(b[r(0x11b)]),'camelCase':camelCase(b['resourceName']),'type':b[r(0x104)],'engine':c[r(0x102)]['js'],'noRename':!![]};this['fsi'][r(0x132)](c,async()=>{const s=r;let j='js';c[s(0x102)]['js']===s(0x124)&&(j='ts');const k=['mssql',s(0x12a)];if(k[s(0x11a)](g[s(0x104)])<0x0){const m=g[s(0x104)]?g[s(0x104)]:s(0x11c);Log[s(0x12b)](s(0x126)+m+s(0x103));return;}b['type']===s(0x12a)&&!this['fsi'][s(0x106)]('pg')&&(Log[s(0x122)]('Npm\x20package\x20\x22pg\x22\x20not\x20installed,\x20installing...'),await this['fsi'][s(0xf6)]('pg',{'cwd':d}));b[s(0x104)]===s(0x100)&&!this[s(0x129)]['checkNpmPackage'](s(0x100))&&(Log[s(0x122)]('Npm\x20package\x20\x22mssql\x22\x20not\x20installed,\x20installing...'),await this[s(0x129)][s(0xf6)]('mssql',{'cwd':d}));b[s(0x104)]===s(0x114)&&!this['fsi'][s(0x106)](s(0x12c))&&(Log[s(0x122)](s(0x127)),await this[s(0x129)][s(0xf6)](s(0x12c),{'cwd':d}));this[s(0x129)][s(0xfe)]({'srcPath':s(0xf9),'destPath':this[s(0x129)][s(0x10b)]({'pathParts':[s(0x128),s(0x11f),'server','dbc',b[s(0x10d)],f,s(0x109)+j]}),'context':g,'config':c}),this[s(0x129)][s(0xfe)]({'srcPath':s(0x107),'destPath':this[s(0x129)][s(0x10b)]({'pathParts':[s(0x128),s(0x11f),s(0x130),s(0x110),b[s(0x10d)],f,'conn.'+j]}),'context':g,'config':c}),this[s(0x129)][s(0xfe)]({'srcPath':s(0x12f),'destPath':this[s(0x129)][s(0x10b)]({'pathParts':[s(0x128),s(0x11f),s(0x130),s(0xff)+f+'-dbc.'+j]}),'context':g,'config':c});const l=this[s(0x129)][s(0x10b)]({'pathParts':[s(0x128),s(0x11f),s(0x130),s(0x118)+c[s(0x102)]['js']]});this['fsi'][s(0x117)]({'filePath':l,'content':s(0x10f)+f+s(0x111)});});}catch(j){Log[r(0x12b)](j);}});
1
+ const a98q=a98d;(function(a,b){const n=a98d,c=a();while(!![]){try{const d=parseInt(n(0x1a1))/0x1+-parseInt(n(0x185))/0x2+parseInt(n(0x186))/0x3*(parseInt(n(0x178))/0x4)+parseInt(n(0x19c))/0x5+parseInt(n(0x18e))/0x6+-parseInt(n(0x17c))/0x7*(parseInt(n(0x197))/0x8)+parseInt(n(0x175))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a98c,0xb456e));const a98b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a98d;if(c){const e=c[o(0x1a6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a98a=a98b(this,function(){const p=a98d;return a98a[p(0x1a8)]()['search'](p(0x180))['toString']()[p(0x1a5)](a98a)[p(0x17e)](p(0x180));});function a98d(a,b){const c=a98c();return a98d=function(d,e){d=d-0x172;let f=c[d];return f;},a98d(a,b);}a98a();function a98c(){const t=['dir','import\x20\x27./register-','indexOf','constructor','apply','fsi','toString','imports','index.','tsx','20902248BrvHpW','register-','mssql','2315724avHZyG','template','server','Npm\x20package\x20\x22better-sqlite3\x22\x20not\x20installed,\x20installing...','133nxVqZZ','Npm\x20package\x20\x22pg\x22\x20not\x20installed,\x20installing...','search','Npm\x20package\x20\x22mssql\x22\x20not\x20installed,\x20installing...','(((.+)+)+)+$','checkNpmPackage','pgsql','pathFromApp','maka\x20g:dbc\x20geoserver\x20--type=pgsql','2382942HypnKl','3OwJJrZ','warn','maka\x20{generate,\x20g}:{dbc}\x20<connection-name>','Invalid\x20type\x20','dbAnswer','error','type','MS\x20SQL','978192zzbyfT','dbc','-dbc.','resourceName','create','dbc/config.js','maka\x20g:dbc\x20todos\x20--type=sqlite','injectAtEndOfFile','getProjectConfig','599568eBMDWx','startup','better-sqlite3','options','conn.','794085RnuMLh','config.','(blank)','engines','installNpmPackage','130863rNwnDf'];a98c=function(){return t;};return a98c();}import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';Generator[a98q(0x192)]({'name':a98q(0x18f),'usage':a98q(0x188),'shortDesc':'Scaffolding\x20for\x20creating\x20a\x20for\x20a\x20database\x20connection.','validOpts':['type',a98q(0x1a2)],'examples':[a98q(0x184),'maka\x20g:dbc\x20azure\x20--type=mssql',a98q(0x194)]},async function(a,b){const r=a98q;try{const c=await this[r(0x1a7)][r(0x196)](),d=this['fsi']['pathFromApp']({}),f=paramCase(b['resourceName']);if(!b[r(0x18c)]){const h={'type':'list','name':r(0x18a),'message':'DB\x20Driver','choices':[{'name':'PostgreSQL','value':r(0x182)},{'name':r(0x18d),'value':r(0x177)}]},{dbAnswer:i}=await Actions[r(0x19a)](h);i&&(b[r(0x18c)]=i);}const g={'name':pascalCase(b[r(0x191)]),'fileName':paramCase(b['resourceName']),'camelCase':camelCase(b['resourceName']),'type':b[r(0x18c)],'engine':c[r(0x19f)]['js'],'noRename':!![]};this[r(0x1a7)]['withValue'](c,async()=>{const s=r;let j='js';c['engines']['js']===s(0x174)&&(j='ts');const k=['mssql',s(0x182)];if(k[s(0x1a4)](g[s(0x18c)])<0x0){const m=g[s(0x18c)]?g['type']:s(0x19e);Log[s(0x18b)](s(0x189)+m+',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument');return;}b['type']==='pgsql'&&!this[s(0x1a7)][s(0x181)]('pg')&&(Log[s(0x187)](s(0x17d)),await this[s(0x1a7)][s(0x1a0)]('pg',{'cwd':d}));b[s(0x18c)]===s(0x177)&&!this[s(0x1a7)][s(0x181)](s(0x177))&&(Log['warn'](s(0x17f)),await this[s(0x1a7)]['installNpmPackage'](s(0x177),{'cwd':d}));b[s(0x18c)]==='sqlite'&&!this[s(0x1a7)][s(0x181)](s(0x199))&&(Log[s(0x187)](s(0x17b)),await this[s(0x1a7)]['installNpmPackage']('better-sqlite3',{'cwd':d}));this[s(0x1a7)][s(0x179)]({'srcPath':s(0x193),'destPath':this[s(0x1a7)]['pathFromApp']({'pathParts':[s(0x172),'startup',s(0x17a),s(0x18f),b[s(0x1a2)],f,s(0x19d)+j]}),'context':g,'config':c}),this[s(0x1a7)][s(0x179)]({'srcPath':'dbc/conn.js','destPath':this[s(0x1a7)][s(0x183)]({'pathParts':['imports',s(0x198),'server',s(0x18f),b[s(0x1a2)],f,s(0x19b)+j]}),'context':g,'config':c}),this[s(0x1a7)][s(0x179)]({'srcPath':'dbc/register-dbc.js','destPath':this[s(0x1a7)][s(0x183)]({'pathParts':[s(0x172),'startup',s(0x17a),s(0x176)+f+s(0x190)+j]}),'context':g,'config':c});const l=this[s(0x1a7)]['pathFromApp']({'pathParts':[s(0x172),'startup','server',s(0x173)+c[s(0x19f)]['js']]});this[s(0x1a7)][s(0x195)]({'filePath':l,'content':s(0x1a3)+f+'-dbc\x27;'});});}catch(j){Log['error'](j);}});
@@ -1 +1 @@
1
- const a99i=a99d;(function(a,b){const f=a99d,c=a();while(!![]){try{const d=-parseInt(f(0x76))/0x1+parseInt(f(0x7b))/0x2*(parseInt(f(0x80))/0x3)+parseInt(f(0x7c))/0x4+-parseInt(f(0x88))/0x5+-parseInt(f(0x8b))/0x6*(-parseInt(f(0x73))/0x7)+-parseInt(f(0x84))/0x8+parseInt(f(0x7a))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a99c,0xbbb4f));const a99b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a99d;if(c){const e=c[g(0x6f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a99a=a99b(this,function(){const h=a99d;return a99a[h(0x78)]()[h(0x89)](h(0x74))['toString']()[h(0x81)](a99a)[h(0x89)](h(0x74));});a99a();import{Generator}from'../generator.js';function a99d(a,b){const c=a99c();return a99d=function(d,e){d=d-0x6b;let f=c[d];return f;},a99d(a,b);}import{Log}from'../tools/log/log.class.js';import a99e from'path';Generator[a99i(0x82)]({'name':'dockerfile','usage':a99i(0x6d),'shortDesc':a99i(0x70),'validOpts':[],'noResource':!![],'examples':[a99i(0x7f)]},async function(){const j=a99i;try{const a=await this['fsi'][j(0x72)](),b=await this['fsi'][j(0x7d)](),c=this[j(0x87)]['findProjectDirectory']();this[j(0x87)][j(0x6b)](a,async()=>{const k=j,d={'app':b[k(0x83)],'config':a,'appPath':a99e[k(0x79)](c,'app'),'bundlePath':a99e[k(0x79)](c,k(0x6c),k(0x85)),'useCert':this[k(0x87)][k(0x7e)](b[k(0x6e)])};this['fsi'][k(0x75)]({'srcPath':k(0x8a),'destPath':a99e[k(0x79)](c,k(0x77)),'framework':k(0x71),'context':d,'config':a});});}catch(d){Log[j(0x86)](d);}});function a99c(){const l=['docker/Dockerfile','6HRFYNO','withValue','build','maka\x20{generate,\x20g}:dockerfile','cert','apply','Generate\x20an\x20updated\x20dockerfile','service','getProjectConfig','3843637AMFbse','(((.+)+)+)+$','template','447875sMMRoH','Dockerfile','toString','join','3770523PIMqsk','6418jOZHgt','2370516TUUQVJ','getGlobalConfig','isFile','maka\x20g:dockerfile','930IpISPY','constructor','create','appName','552080pGRDky','app.tar.gz','error','fsi','6348625LaGLCW','search'];a99c=function(){return l;};return a99c();}
1
+ const a99i=a99d;(function(a,b){const f=a99d,c=a();while(!![]){try{const d=-parseInt(f(0xf7))/0x1*(parseInt(f(0x111))/0x2)+-parseInt(f(0x101))/0x3+-parseInt(f(0x105))/0x4+parseInt(f(0x108))/0x5+parseInt(f(0x109))/0x6*(parseInt(f(0xff))/0x7)+-parseInt(f(0x10b))/0x8*(-parseInt(f(0x113))/0x9)+-parseInt(f(0x102))/0xa*(parseInt(f(0x10c))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a99c,0x67408));const a99b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a99d;if(c){const e=c[g(0x114)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a99a=a99b(this,function(){const h=a99d;return a99a['toString']()[h(0xfe)](h(0xfb))['toString']()[h(0x103)](a99a)[h(0xfe)](h(0xfb));});a99a();function a99d(a,b){const c=a99c();return a99d=function(d,e){d=d-0xf7;let f=c[d];return f;},a99d(a,b);}function a99c(){const l=['findProjectDirectory','isFile','39feayPi','maka\x20{generate,\x20g}:dockerfile','getProjectConfig','dockerfile','(((.+)+)+)+$','maka\x20g:dockerfile','fsi','search','7DHgKgT','cert','1840488kmZNYL','7210gyQTch','constructor','app','2054932QGpEsB','service','withValue','2830905HDjSGA','4912380jNgwXa','appName','114832fjBVsw','2244pQJpJS','Generate\x20an\x20updated\x20dockerfile','create','join','Dockerfile','16372PLukzm','docker/Dockerfile','396dcZnUY','apply','build'];a99c=function(){return l;};return a99c();}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a99e from'path';Generator[a99i(0x10e)]({'name':a99i(0xfa),'usage':a99i(0xf8),'shortDesc':a99i(0x10d),'validOpts':[],'noResource':!![],'examples':[a99i(0xfc)]},async function(){const j=a99i;try{const a=await this['fsi'][j(0xf9)](),b=await this[j(0xfd)]['getGlobalConfig'](),c=this[j(0xfd)][j(0x116)]();this[j(0xfd)][j(0x107)](a,async()=>{const k=j,d={'app':b[k(0x10a)],'config':a,'appPath':a99e[k(0x10f)](c,k(0x104)),'bundlePath':a99e['join'](c,k(0x115),'app.tar.gz'),'useCert':this[k(0xfd)][k(0x117)](b[k(0x100)])};this[k(0xfd)]['template']({'srcPath':k(0x112),'destPath':a99e['join'](c,k(0x110)),'framework':k(0x106),'context':d,'config':a});});}catch(d){Log['error'](d);}});
@@ -1 +1 @@
1
- const a100s=a100d;(function(a,b){const p=a100d,c=a();while(!![]){try{const d=-parseInt(p(0x18f))/0x1+parseInt(p(0x174))/0x2+-parseInt(p(0x165))/0x3+parseInt(p(0x183))/0x4*(parseInt(p(0x15a))/0x5)+parseInt(p(0x180))/0x6+-parseInt(p(0x15c))/0x7+parseInt(p(0x164))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a100c,0x7d2fd));function a100c(){const v=['This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','baseDir','includes','Creating\x20','ssr','templates.js','checkNpmPackage','pages','theme','template/template.css','/imports/ui/','export\x20{\x20','273236qxbOba','lib','assign','test/test.js','test','resourceName','\x20}\x20from\x20\x27','fsi','startup','.css','\x27;\x0a','injectAtEndOfFile','3353508YBYUHf','graphql','Valid\x20options\x20are:\x20','10732xocoVB','\x20hook...','/imports/ui/hooks','client','layouts','maka\x20{generate|\x20g}:{hook\x20|\x20h}\x20[path/]<name>','@apollo/client','Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html','Invalid\x20directory\x20option\x20\x22','template','apply','apollo','16533WsHRGy','components','setTemplate','(((.+)+)+)+$','rewriteDestinationPathForEngine','hook/hook.js','css','withValue','true','search','getProjectConfig','import\x20\x27','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','constructor','fileName','imports','hooks','relative','toString','@apollo/client\x20isomorphic-fetch','error','features','engines','pathFromProject','.js','185YMYVhx','.app-tests.js','6695829cShaSC','className','pathFromApp','import\x20{\x20','dir','injectAtBeginningOfFile','string','react','11141992WdrmxK','2105133TIkEfq','withTranslations','none'];a100c=function(){return v;};return a100c();}function a100d(a,b){const c=a100c();return a100d=function(d,e){d=d-0x157;let f=c[d];return f;},a100d(a,b);}const a100b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a100d;if(c){const e=c[q(0x18d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a100a=a100b(this,function(){const r=a100d;return a100a[r(0x1a1)]()[r(0x198)](r(0x192))[r(0x1a1)]()[r(0x19c)](a100a)['search'](r(0x192));});a100a();import a100e from'path';import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';Generator['create']({'name':'hook','aliases':['h'],'checkWhere':![],'usage':a100s(0x188),'shortDesc':a100s(0x18a),'validOpts':[a100s(0x169)],'examples':['maka\x20g:hook\x20cool-hook']},async function(a,b){const t=a100s;Log['notice'](t(0x16b)+a[0x0]+t(0x184));try{const c=[t(0x19f),t(0x190),t(0x16f),t(0x187)];if(b[t(0x169)]&&!c[t(0x16a)](b[t(0x169)])){Log[t(0x1a3)](t(0x18b)+b[t(0x169)]+'\x22'),Log[t(0x1a3)](t(0x182)+c['join'](',\x20'));throw new UsageError();}const d=this['fsi'][t(0x16e)](t(0x163));if(!d){Log[t(0x1a3)](t(0x168));throw new UsageError();}const f=this['fsi'][t(0x15e)](b),g=b['baseDir']?t(0x172)+b[t(0x169)]:t(0x185),h=this[t(0x17b)][t(0x15e)]({'pathParts':[g,b[t(0x160)],b[t(0x179)],paramCase(b['resourceName'])]}),i=await this[t(0x17b)][t(0x199)]();this[t(0x17b)][t(0x196)](i,async()=>{const u=t;typeof i[u(0x18c)][u(0x195)]===u(0x162)&&(i[u(0x18c)][u(0x195)]=i[u(0x18c)][u(0x195)]===u(0x197)?!![]:![],this[u(0x17b)][u(0x191)](u(0x195),i[u(0x18c)]['css']));i['engines'][u(0x181)]===u(0x18e)&&!this[u(0x17b)][u(0x16e)](u(0x189))&&(Log['warn'](u(0x19b)),await this[u(0x17b)]['installNpmPackage'](u(0x1a2),{'cwd':f}));const j={'cssCaseName':paramCase(b[u(0x179)]),'className':pascalCase(b[u(0x179)]),'name':pascalCase(b['resourceName']),'graphql':i[u(0x157)][u(0x181)],'theme':i[u(0x157)][u(0x170)],'features':i[u(0x1a4)],'myPath':a100e[u(0x1a0)](this['fsi'][u(0x158)]({}),h),'fileName':paramCase(b['resourceName']),'isComponent':![],'isLayout':![],'withTranslations':i[u(0x1a4)][u(0x166)]};this[u(0x17b)][u(0x18c)]({'srcPath':u(0x194),'destPath':h+u(0x159),'context':j,'config':i,'framework':u(0x163)});i[u(0x18c)][u(0x195)]&&(this[u(0x17b)][u(0x18c)]({'srcPath':u(0x171),'destPath':h+u(0x17d),'context':Object[u(0x176)]({},j,{'className':j['cssCaseName']}),'config':i}),this[u(0x17b)][u(0x161)]({'filePath':h+'.'+i['engines']['js'],'content':'import\x20\x27./'+j[u(0x19d)]+'.'+i[u(0x157)]['css']+'\x27;'}));i['engines'][u(0x178)]!==u(0x167)&&this[u(0x17b)][u(0x18c)]({'srcPath':u(0x177),'destPath':h+u(0x15b),'framework':u(0x163),'context':j,'config':i});const k=b[u(0x160)]?'/'+b[u(0x160)]+'/':'/',l=''+g+k+j['fileName']+'/'+j[u(0x19d)];let m;if(i['engines'][u(0x16c)]===u(0x197)){const n=this[u(0x17b)]['pathFromApp']({'pathParts':[u(0x19e),'startup',u(0x175),u(0x16d)]});m=this[u(0x17b)][u(0x193)]({'pathParts':[n],'config':i});}else{const o=this[u(0x17b)][u(0x15e)]({'pathParts':['imports',u(0x17c),u(0x186),u(0x16d)]});m=this[u(0x17b)][u(0x193)]({'pathParts':[o],'config':i});}i[u(0x157)][u(0x186)]===u(0x163)?(i[u(0x157)]['js']==='tsx'?this[u(0x17b)][u(0x161)]({'filePath':m,'content':u(0x15f)+j['className']+u(0x17a)+l+u(0x17e)}):this[u(0x17b)][u(0x161)]({'filePath':m,'content':u(0x15f)+j[u(0x15d)]+u(0x17a)+l+'.'+i[u(0x157)]['js']+'\x27;\x0a'}),this[u(0x17b)][u(0x17f)]({'filePath':m,'content':u(0x173)+j['className']+'\x20};\x0a'})):this[u(0x17b)][u(0x17f)]({'filePath':m,'content':u(0x19a)+l+'.'+i[u(0x157)]['js']+u(0x17e)});});}catch(j){Log['error'](j);}});
1
+ const a100r=a100d;(function(a,b){const p=a100d,c=a();while(!![]){try{const d=-parseInt(p(0x7a))/0x1*(parseInt(p(0x67))/0x2)+-parseInt(p(0x9f))/0x3*(parseInt(p(0xa6))/0x4)+-parseInt(p(0x68))/0x5*(-parseInt(p(0x74))/0x6)+parseInt(p(0xb5))/0x7*(-parseInt(p(0x95))/0x8)+parseInt(p(0x8c))/0x9*(parseInt(p(0xb6))/0xa)+parseInt(p(0x69))/0xb+parseInt(p(0x6c))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a100c,0xe27cd));const a100b=(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;};}()),a100a=a100b(this,function(){const q=a100d;return a100a[q(0x72)]()['search'](q(0x70))[q(0x72)]()[q(0x84)](a100a)[q(0x8b)]('(((.+)+)+)+$');});function a100d(a,b){const c=a100c();return a100d=function(d,e){d=d-0x65;let f=c[d];return f;},a100d(a,b);}a100a();import a100e from'path';import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';Generator[a100r(0x92)]({'name':a100r(0x75),'aliases':['h'],'checkWhere':![],'usage':a100r(0x8e),'shortDesc':a100r(0x9c),'validOpts':['baseDir'],'examples':[a100r(0x80)]},async function(a,b){const s=a100r;Log[s(0xb0)]('Creating\x20'+a[0x0]+s(0x65));try{const c=[s(0x76),s(0xad),'pages',s(0x73)];if(b[s(0xa3)]&&!c[s(0x99)](b['baseDir'])){Log[s(0x66)]('Invalid\x20directory\x20option\x20\x22'+b[s(0xa3)]+'\x22'),Log['error'](s(0xaf)+c[s(0xa4)](',\x20'));throw new UsageError();}const d=this[s(0xa5)][s(0x96)](s(0xaa));if(!d){Log[s(0x66)](s(0x81));throw new UsageError();}const f=this[s(0xa5)][s(0xb8)](b),g=b[s(0xa3)]?s(0x8d)+b['baseDir']:s(0x79),h=this[s(0xa5)][s(0xb8)]({'pathParts':[g,b[s(0x89)],b[s(0xb4)],paramCase(b[s(0xb4)])]}),i=await this[s(0xa5)][s(0xb7)]();this[s(0xa5)][s(0x7f)](i,async()=>{const t=s;typeof i[t(0x85)]['css']===t(0x6f)&&(i[t(0x85)][t(0x6e)]=i[t(0x85)]['css']===t(0x91)?!![]:![],this[t(0xa5)]['setTemplate'](t(0x6e),i[t(0x85)][t(0x6e)]));i[t(0x6b)][t(0x6a)]===t(0x7c)&&!this['fsi']['checkNpmPackage'](t(0x9b))&&(Log['warn'](t(0xa9)),await this[t(0xa5)][t(0xac)](t(0x93),{'cwd':f}));const j={'cssCaseName':paramCase(b['resourceName']),'className':pascalCase(b[t(0xb4)]),'name':pascalCase(b[t(0xb4)]),'graphql':i[t(0x6b)][t(0x6a)],'theme':i[t(0x6b)][t(0xa2)],'features':i['features'],'myPath':a100e[t(0xab)](this['fsi'][t(0xa1)]({}),h),'fileName':paramCase(b[t(0xb4)]),'isComponent':![],'isLayout':![],'withTranslations':i[t(0xa0)][t(0x8f)]};this['fsi'][t(0x85)]({'srcPath':t(0x87),'destPath':h+t(0x9d),'context':j,'config':i,'framework':'react'});i[t(0x85)][t(0x6e)]&&(this[t(0xa5)][t(0x85)]({'srcPath':t(0xb1),'destPath':h+t(0x78),'context':Object[t(0x8a)]({},j,{'className':j[t(0x90)]}),'config':i}),this['fsi'][t(0x98)]({'filePath':h+'.'+i[t(0x6b)]['js'],'content':t(0x77)+j['fileName']+'.'+i['engines']['css']+'\x27;'}));i[t(0x6b)][t(0xae)]!==t(0x97)&&this[t(0xa5)][t(0x85)]({'srcPath':t(0x9e),'destPath':h+t(0xa7),'framework':t(0xaa),'context':j,'config':i});const k=b['dir']?'/'+b[t(0x89)]+'/':'/',l=''+g+k+j[t(0xa8)]+'/'+j['fileName'];let m;if(i[t(0x6b)][t(0x6d)]===t(0x91)){const n=this['fsi'][t(0xb8)]({'pathParts':[t(0x88),t(0x82),t(0x83),t(0x94)]});m=this[t(0xa5)][t(0x86)]({'pathParts':[n],'config':i});}else{const o=this['fsi'][t(0xb8)]({'pathParts':[t(0x88),t(0x82),t(0x71),'templates.js']});m=this['fsi'][t(0x86)]({'pathParts':[o],'config':i});}i['engines'][t(0x71)]===t(0xaa)?(i[t(0x6b)]['js']===t(0xb3)?this[t(0xa5)][t(0x98)]({'filePath':m,'content':'import\x20{\x20'+j['className']+t(0x9a)+l+t(0x7e)}):this[t(0xa5)][t(0x98)]({'filePath':m,'content':'import\x20{\x20'+j[t(0x7d)]+t(0x9a)+l+'.'+i[t(0x6b)]['js']+t(0x7e)}),this[t(0xa5)][t(0xb2)]({'filePath':m,'content':'export\x20{\x20'+j['className']+t(0x7b)})):this[t(0xa5)][t(0xb2)]({'filePath':m,'content':'import\x20\x27'+l+'.'+i[t(0x6b)]['js']+t(0x7e)});});}catch(j){Log[s(0x66)](j);}});function a100c(){const u=['50953068IBrCxk','ssr','css','string','(((.+)+)+)+$','client','toString','layouts','2788260MHAipo','hook','hooks','import\x20\x27./','.css','/imports/ui/hooks','119753SIzIPI','\x20};\x0a','apollo','className','\x27;\x0a','withValue','maka\x20g:hook\x20cool-hook','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','startup','lib','constructor','template','rewriteDestinationPathForEngine','hook/hook.js','imports','dir','assign','search','1291158eJUsGu','/imports/ui/','maka\x20{generate|\x20g}:{hook\x20|\x20h}\x20[path/]<name>','withTranslations','cssCaseName','true','create','@apollo/client\x20isomorphic-fetch','templates.js','12781672uYbjpw','checkNpmPackage','none','injectAtBeginningOfFile','includes','\x20}\x20from\x20\x27','@apollo/client','Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html','.js','test/test.js','45yDbhBs','features','pathFromProject','theme','baseDir','join','fsi','444428aBKhYp','.app-tests.js','fileName','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','react','relative','installNpmPackage','components','test','Valid\x20options\x20are:\x20','notice','template/template.css','injectAtEndOfFile','tsx','resourceName','7JOhzVW','10AdWMpg','getProjectConfig','pathFromApp','\x20hook...','error','26qeTQOw','10NqSzCQ','4728075yvwLIQ','graphql','engines'];a100c=function(){return u;};return a100c();}
@@ -1 +1 @@
1
- const a101k=a101d;function a101c(){const n=['2AQLwnI','engines','map','resourceName','maka\x20g:kit\x20--type=map','4ZCsAvR','login','maka\x20g:k\x20city-map\x20--type=leaflet-map','(Placeholder)\x20Generate\x20a\x20pre-built\x20\x22kit\x22\x20to\x20speed\x20up\x20your\x20development.','getProjectConfig','create','143ZjqEhk','withValue','2526cedftI','type','maka\x20{generate,\x20g}:{kit}\x20<kit-name>','fsi','indexOf',',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument','NIE','search','error','notice','1278PdOaXV','3035zbcPsk','159622QQfUxU','1135248aOpnuR','leaflet-map','26056xHlJmV','apply','5303583JwMvVW','kit','8996267Myfnzk','(((.+)+)+)+$','toString','1473370qYoQTm'];a101c=function(){return n;};return a101c();}(function(a,b){const h=a101d,c=a();while(!![]){try{const d=-parseInt(h(0x7d))/0x1*(-parseInt(h(0x88))/0x2)+parseInt(h(0x82))/0x3*(parseInt(h(0x69))/0x4)+parseInt(h(0x7c))/0x5*(parseInt(h(0x71))/0x6)+parseInt(h(0x84))/0x7+parseInt(h(0x80))/0x8*(-parseInt(h(0x7b))/0x9)+-parseInt(h(0x87))/0xa*(parseInt(h(0x6f))/0xb)+-parseInt(h(0x7e))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a101c,0xf3194));const a101b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a101d;if(c){const e=c[i(0x81)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a101a=a101b(this,function(){const j=a101d;return a101a[j(0x86)]()[j(0x78)](j(0x85))[j(0x86)]()['constructor'](a101a)[j(0x78)](j(0x85));});a101a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a101d(a,b){const c=a101c();return a101d=function(d,e){d=d-0x68;let f=c[d];return f;},a101d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';Generator[a101k(0x6e)]({'name':a101k(0x83),'aliases':['k'],'usage':a101k(0x73),'shortDesc':a101k(0x6c),'validOpts':[a101k(0x72)],'examples':[a101k(0x68),a101k(0x6b)]},async function(a,b){const l=a101k;try{const c=this[l(0x74)][l(0x6d)]();this[l(0x74)][l(0x70)](c,async()=>{const m=l,d={'name':pascalCase(b[m(0x8b)]),'fileName':paramCase(b[m(0x8b)]),'camelCase':camelCase(b[m(0x8b)]),'type':b[m(0x72)],'engine':c[m(0x89)]['js'],'noRename':!![]},f=[m(0x7f),m(0x6a)];if(f[m(0x75)](d[m(0x72)])<0x0){const g=d['type']?d[m(0x72)]:'(blank)';Log[m(0x79)]('Invalid\x20type\x20'+g+m(0x76));return;}b['type']===m(0x8a)&&Log[m(0x7a)](m(0x77)),b[m(0x72)]===m(0x6a)&&Log['notice'](m(0x77));});}catch(d){Log[l(0x79)](d);}});
1
+ const a101k=a101d;(function(a,b){const h=a101d,c=a();while(!![]){try{const d=-parseInt(h(0xe0))/0x1*(-parseInt(h(0xea))/0x2)+-parseInt(h(0xe2))/0x3*(parseInt(h(0xd3))/0x4)+-parseInt(h(0xeb))/0x5+parseInt(h(0xd9))/0x6+-parseInt(h(0xe5))/0x7+parseInt(h(0xd5))/0x8+parseInt(h(0xdb))/0x9*(parseInt(h(0xd1))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a101c,0x821ff));const a101b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a101d;if(c){const e=c[i(0xe3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a101a=a101b(this,function(){const j=a101d;return a101a[j(0xec)]()['search'](j(0xd6))[j(0xec)]()['constructor'](a101a)['search'](j(0xd6));});a101a();function a101c(){const n=['engines','4156481AYfNHq','create','maka\x20g:kit\x20--type=map','type','resourceName','840194VbhZco','1429810YiLhzz','toString','withValue','indexOf','(blank)','130OmCvrT','login','245516BQKAhx','maka\x20{generate,\x20g}:{kit}\x20<kit-name>','975600aWkbbq','(((.+)+)+)+$','Invalid\x20type\x20','fsi','2748954eKQzgb','map','370584IUQtKz','kit','notice','maka\x20g:k\x20city-map\x20--type=leaflet-map','NIE','1tDarOZ','error','6rTiZQo','apply'];a101c=function(){return n;};return a101c();}import{Generator}from'../generator.js';function a101d(a,b){const c=a101c();return a101d=function(d,e){d=d-0xcf;let f=c[d];return f;},a101d(a,b);}import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a101k(0xe6)]({'name':a101k(0xdc),'aliases':['k'],'usage':a101k(0xd4),'shortDesc':'(Placeholder)\x20Generate\x20a\x20pre-built\x20\x22kit\x22\x20to\x20speed\x20up\x20your\x20development.','validOpts':[a101k(0xe8)],'examples':[a101k(0xe7),a101k(0xde)]},async function(a,b){const l=a101k;try{const c=this[l(0xd8)]['getProjectConfig']();this[l(0xd8)][l(0xed)](c,async()=>{const m=l,d={'name':pascalCase(b[m(0xe9)]),'fileName':paramCase(b[m(0xe9)]),'camelCase':camelCase(b[m(0xe9)]),'type':b[m(0xe8)],'engine':c[m(0xe4)]['js'],'noRename':!![]},f=['leaflet-map','login'];if(f[m(0xcf)](d['type'])<0x0){const g=d[m(0xe8)]?d[m(0xe8)]:m(0xd0);Log[m(0xe1)](m(0xd7)+g+',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument');return;}b[m(0xe8)]===m(0xda)&&Log[m(0xdd)](m(0xdf)),b[m(0xe8)]===m(0xd2)&&Log['notice'](m(0xdf));});}catch(d){Log['error'](d);}});
@@ -1 +1 @@
1
- const a102r=a102d;(function(a,b){const o=a102d,c=a();while(!![]){try{const d=-parseInt(o(0x1d2))/0x1+-parseInt(o(0x1e7))/0x2+parseInt(o(0x1c8))/0x3*(-parseInt(o(0x1d6))/0x4)+-parseInt(o(0x1de))/0x5+parseInt(o(0x1c3))/0x6*(parseInt(o(0x1d8))/0x7)+parseInt(o(0x1e8))/0x8*(parseInt(o(0x1eb))/0x9)+parseInt(o(0x1bb))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a102c,0x49264));const a102b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a102d;if(c){const e=c[p(0x1ed)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a102a=a102b(this,function(){const q=a102d;return a102a['toString']()['search'](q(0x1cf))[q(0x1e1)]()['constructor'](a102a)['search'](q(0x1cf));});a102a();function a102c(){const u=['ssr','6918090tyPTxj','layout','create','template/template.css','import\x20{\x20','maka\x20g:layout\x20mobile/iPhone8','\x20};\x0a','warn','348546lxXnkG','test','relative','.js','tsx','72537LQZcdm','.app-tests.js','import\x20\x27','fsi','injectAtBeginningOfFile','true','setTemplate','(((.+)+)+)+$','startup','import\x20\x27./','101941mZdYxs','templates.js','injectAtEndOfFile','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','56SKHjut','className','49EIvOCh','theme','pathFromApp','withHook','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','resourceName','2059695XQISyt','template','\x20}\x20from\x20\x27','toString','css','\x27;\x0a','features','none','hook/hook.js','955132vZXxfr','456BrOvUV','string','findAppDirectory','83862CjvVXQ','dir','apply','fileName','assign','client','getProjectConfig','withValue','imports','rewriteDestinationPathForEngine','withTranslations','ramda','checkNpmPackage','maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','maka\x20g:l\x20web/safari','engines','includes','lib','api','react','Scaffolding\x20for\x20a\x20React\x20Layout.','withHooks','split'];a102c=function(){return u;};return a102c();}import a102e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';function a102d(a,b){const c=a102c();return a102d=function(d,e){d=d-0x1af;let f=c[d];return f;},a102d(a,b);}const aliases=['l'];Generator[a102r(0x1bd)]({'name':a102r(0x1bc),'aliases':aliases,'usage':a102r(0x1b0),'shortDesc':a102r(0x1b7),'validOpts':[],'examples':[a102r(0x1c0),a102r(0x1b1)]},function(a,b){const s=a102r,c='/imports/ui/layouts',d=this[s(0x1cb)][s(0x1ea)](),e=this[s(0x1cb)][s(0x1da)]({'pathParts':[c,b[s(0x1ec)],paramCase(b[s(0x1dd)]),paramCase(b[s(0x1dd)])]}),f=this[s(0x1cb)][s(0x1f1)]();this['fsi'][s(0x1f2)](f,()=>{const t=s;typeof f['template'][t(0x1c4)]===t(0x1e9)&&(f[t(0x1df)][t(0x1c4)]=f[t(0x1df)][t(0x1c4)]===t(0x1cd)?!![]:![],this[t(0x1cb)][t(0x1ce)](t(0x1c4),f[t(0x1df)][t(0x1c4)]));typeof f[t(0x1df)][t(0x1e2)]===t(0x1e9)&&(f[t(0x1df)][t(0x1e2)]=f[t(0x1df)][t(0x1e2)]===t(0x1cd)?!![]:![],this[t(0x1cb)]['setTemplate'](t(0x1e2),f['template'][t(0x1e2)]));typeof f[t(0x1df)]['js']===t(0x1e9)&&(f[t(0x1df)]['js']=f[t(0x1df)]['js']===t(0x1cd)?!![]:![],this[t(0x1cb)][t(0x1ce)]('js',f[t(0x1df)]['js']));!f[t(0x1e4)]&&(f['features']={});const g=b['_']?b['_'][0x0][t(0x1b9)](':')[0x1]:![],h=b['_']&&aliases[t(0x1b3)](g);h&&!this[t(0x1af)](t(0x1f6))&&(Log['warn'](t(0x1d5)),this['fsi']['installNpmPackage'](t(0x1f6),{'cwd':d}));if(h&&!this[t(0x1af)](t(0x1b6))){Log[t(0x1c2)](t(0x1dc));return;}const i={'name':pascalCase(b[t(0x1dd)]),'myPath':a102e[t(0x1c5)](this[t(0x1cb)]['pathFromProject']({}),e),'cssCaseName':paramCase(b[t(0x1dd)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b[t(0x1dd)]),'fileName':paramCase(b[t(0x1dd)]),'graphql':f['engines']['graphql'],'features':f[t(0x1e4)],'client':f['engines']['client'],'api':f[t(0x1b2)][t(0x1b5)],'ssr':f[t(0x1b2)]['ssr'],'test':f['engines']['test'],'theme':f['engines'][t(0x1d9)],'isComponent':![],'isLayout':!![],'withTranslations':f[t(0x1e4)][t(0x1f5)]};f['features']?.[t(0x1b8)]||b[t(0x1db)]?this['fsi'][t(0x1df)]({'srcPath':t(0x1e6),'destPath':e+t(0x1c6),'framework':t(0x1b6),'context':i,'config':f}):this['fsi'][t(0x1df)]({'srcPath':'component/component.js','destPath':e+t(0x1c6),'framework':t(0x1b6),'context':i,'config':f});f[t(0x1b2)][t(0x1c4)]!==t(0x1e5)&&this[t(0x1cb)][t(0x1df)]({'srcPath':'test/test.js','destPath':e+t(0x1c9),'framework':t(0x1b6),'context':i,'config':f});f[t(0x1df)][t(0x1e2)]&&(this[t(0x1cb)][t(0x1df)]({'srcPath':t(0x1be),'destPath':e+'.css','context':Object[t(0x1ef)]({},i,{'className':paramCase(b[t(0x1dd)])}),'config':f}),this['fsi'][t(0x1cc)]({'filePath':e+'.'+f[t(0x1b2)]['js'],'content':t(0x1d1)+i['fileName']+'.'+f[t(0x1b2)][t(0x1e2)]+'\x27;'}));const j=b['dir']?'/'+b['dir']+'/':'/',k=''+c+j+i[t(0x1ee)]+'/'+i['fileName'];let l;if(f[t(0x1b2)][t(0x1ba)]===t(0x1cd)){const m=this[t(0x1cb)][t(0x1da)]({'pathParts':[t(0x1f3),'startup',t(0x1b4),t(0x1d3)]});l=this[t(0x1cb)][t(0x1f4)]({'pathParts':[m],'config':f});}else{const n=this['fsi']['pathFromApp']({'pathParts':['imports',t(0x1d0),t(0x1f0),'templates.js']});l=this[t(0x1cb)][t(0x1f4)]({'pathParts':[n],'config':f});}f[t(0x1b2)][t(0x1f0)]===t(0x1b6)?(f['engines']['js']===t(0x1c7)?this[t(0x1cb)][t(0x1cc)]({'filePath':l,'content':t(0x1bf)+i[t(0x1d7)]+'\x20}\x20from\x20\x27'+k+t(0x1e3)}):this[t(0x1cb)][t(0x1cc)]({'filePath':l,'content':t(0x1bf)+i['className']+t(0x1e0)+k+'.'+f[t(0x1b2)]['js']+t(0x1e3)}),this[t(0x1cb)][t(0x1d4)]({'filePath':l,'content':'export\x20{\x20'+i['className']+t(0x1c1)})):this['fsi'][t(0x1d4)]({'filePath':l,'content':t(0x1ca)+k+'.'+f['engines']['js']+t(0x1e3)});});});
1
+ const a102r=a102d;(function(a,b){const o=a102d,c=a();while(!![]){try{const d=-parseInt(o(0x1a6))/0x1+parseInt(o(0x16e))/0x2+-parseInt(o(0x16c))/0x3*(-parseInt(o(0x18b))/0x4)+-parseInt(o(0x16b))/0x5*(parseInt(o(0x199))/0x6)+-parseInt(o(0x172))/0x7*(parseInt(o(0x1a3))/0x8)+-parseInt(o(0x192))/0x9+parseInt(o(0x18c))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a102c,0x3c1ba));function a102d(a,b){const c=a102c();return a102d=function(d,e){d=d-0x163;let f=c[d];return f;},a102d(a,b);}const a102b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a102d;if(c){const e=c[p(0x165)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a102a=a102b(this,function(){const q=a102d;return a102a[q(0x1a8)]()[q(0x173)]('(((.+)+)+)+$')[q(0x1a8)]()[q(0x164)](a102a)['search'](q(0x196));});a102a();import a102e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['l'];function a102c(){const u=['rewriteDestinationPathForEngine','.js','imports','installNpmPackage','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','ssr','create','setTemplate','maka\x20g:l\x20web/safari','layout','features','api','string','template/template.css','injectAtEndOfFile','pathFromApp','resourceName','relative','\x27;\x0a','className','checkNpmPackage','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','graphql','44DvNVtp','5367510WNXVdC','css','pathFromProject','fileName','getProjectConfig','\x20}\x20from\x20\x27','2393577xUqYYZ','dir','react','import\x20{\x20','(((.+)+)+)+$','tsx','theme','1498842qeeIul','component/component.js','Scaffolding\x20for\x20a\x20React\x20Layout.','test/test.js','withValue','engines','ramda','withHook','startup','includes','31056Xxjqci','hook/hook.js','lib','297489flAKSE','client','toString','test','withHooks','fsi','constructor','apply','injectAtBeginningOfFile','maka\x20g:layout\x20mobile/iPhone8','maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','findAppDirectory','warn','5XAOVTs','106779SAkyEb','templates.js','285646NFdnCW','true','template','import\x20\x27','21fCHkFr','search'];a102c=function(){return u;};return a102c();}Generator[a102r(0x17a)]({'name':a102r(0x17d),'aliases':aliases,'usage':a102r(0x168),'shortDesc':a102r(0x19b),'validOpts':[],'examples':[a102r(0x167),a102r(0x17c)]},function(a,b){const s=a102r,c='/imports/ui/layouts',d=this[s(0x163)][s(0x169)](),e=this[s(0x163)][s(0x183)]({'pathParts':[c,b[s(0x193)],paramCase(b[s(0x184)]),paramCase(b[s(0x184)])]}),f=this[s(0x163)][s(0x190)]();this[s(0x163)][s(0x19d)](f,()=>{const t=s;typeof f['template'][t(0x1a9)]==='string'&&(f[t(0x170)][t(0x1a9)]=f[t(0x170)][t(0x1a9)]===t(0x16f)?!![]:![],this[t(0x163)]['setTemplate'](t(0x1a9),f[t(0x170)][t(0x1a9)]));typeof f[t(0x170)]['css']===t(0x180)&&(f['template'][t(0x18d)]=f[t(0x170)][t(0x18d)]===t(0x16f)?!![]:![],this[t(0x163)][t(0x17b)]('css',f[t(0x170)]['css']));typeof f['template']['js']==='string'&&(f[t(0x170)]['js']=f[t(0x170)]['js']===t(0x16f)?!![]:![],this[t(0x163)]['setTemplate']('js',f['template']['js']));!f[t(0x17e)]&&(f[t(0x17e)]={});const g=b['_']?b['_'][0x0]['split'](':')[0x1]:![],h=b['_']&&aliases[t(0x1a2)](g);h&&!this[t(0x188)](t(0x19f))&&(Log[t(0x16a)](t(0x178)),this[t(0x163)][t(0x177)](t(0x19f),{'cwd':d}));if(h&&!this[t(0x188)](t(0x194))){Log[t(0x16a)](t(0x189));return;}const i={'name':pascalCase(b[t(0x184)]),'myPath':a102e[t(0x185)](this['fsi'][t(0x18e)]({}),e),'cssCaseName':paramCase(b[t(0x184)]),'className':pascalCase(b[t(0x184)]),'camelCaseName':camelCase(b[t(0x184)]),'fileName':paramCase(b[t(0x184)]),'graphql':f[t(0x19e)][t(0x18a)],'features':f['features'],'client':f[t(0x19e)][t(0x1a7)],'api':f[t(0x19e)][t(0x17f)],'ssr':f[t(0x19e)][t(0x179)],'test':f[t(0x19e)][t(0x1a9)],'theme':f['engines'][t(0x198)],'isComponent':![],'isLayout':!![],'withTranslations':f[t(0x17e)]['withTranslations']};f[t(0x17e)]?.[t(0x1aa)]||b[t(0x1a0)]?this[t(0x163)][t(0x170)]({'srcPath':t(0x1a4),'destPath':e+'.js','framework':t(0x194),'context':i,'config':f}):this[t(0x163)]['template']({'srcPath':t(0x19a),'destPath':e+t(0x175),'framework':t(0x194),'context':i,'config':f});f[t(0x19e)][t(0x1a9)]!=='none'&&this[t(0x163)][t(0x170)]({'srcPath':t(0x19c),'destPath':e+'.app-tests.js','framework':t(0x194),'context':i,'config':f});f['template'][t(0x18d)]&&(this[t(0x163)]['template']({'srcPath':t(0x181),'destPath':e+'.css','context':Object['assign']({},i,{'className':paramCase(b[t(0x184)])}),'config':f}),this[t(0x163)]['injectAtBeginningOfFile']({'filePath':e+'.'+f[t(0x19e)]['js'],'content':'import\x20\x27./'+i[t(0x18f)]+'.'+f[t(0x19e)][t(0x18d)]+'\x27;'}));const j=b[t(0x193)]?'/'+b[t(0x193)]+'/':'/',k=''+c+j+i[t(0x18f)]+'/'+i[t(0x18f)];let l;if(f['engines']['ssr']===t(0x16f)){const m=this[t(0x163)][t(0x183)]({'pathParts':[t(0x176),t(0x1a1),t(0x1a5),'templates.js']});l=this[t(0x163)][t(0x174)]({'pathParts':[m],'config':f});}else{const n=this[t(0x163)][t(0x183)]({'pathParts':['imports',t(0x1a1),t(0x1a7),t(0x16d)]});l=this[t(0x163)][t(0x174)]({'pathParts':[n],'config':f});}f[t(0x19e)][t(0x1a7)]===t(0x194)?(f[t(0x19e)]['js']===t(0x197)?this[t(0x163)][t(0x166)]({'filePath':l,'content':t(0x195)+i[t(0x187)]+t(0x191)+k+t(0x186)}):this[t(0x163)][t(0x166)]({'filePath':l,'content':t(0x195)+i[t(0x187)]+t(0x191)+k+'.'+f[t(0x19e)]['js']+t(0x186)}),this[t(0x163)][t(0x182)]({'filePath':l,'content':'export\x20{\x20'+i['className']+'\x20};\x0a'})):this[t(0x163)]['injectAtEndOfFile']({'filePath':l,'content':t(0x171)+k+'.'+f[t(0x19e)]['js']+t(0x186)});});});
@@ -1 +1 @@
1
- const a103i=a103d;(function(a,b){const f=a103d,c=a();while(!![]){try{const d=-parseInt(f(0x15f))/0x1+parseInt(f(0x159))/0x2+-parseInt(f(0x15e))/0x3*(-parseInt(f(0x162))/0x4)+parseInt(f(0x164))/0x5*(parseInt(f(0x157))/0x6)+parseInt(f(0x167))/0x7*(parseInt(f(0x169))/0x8)+-parseInt(f(0x16b))/0x9*(parseInt(f(0x160))/0xa)+-parseInt(f(0x16a))/0xb*(-parseInt(f(0x16c))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a103c,0x779e8));const a103b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a103d;if(c){const e=c[g(0x15d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a103a=a103b(this,function(){const h=a103d;return a103a[h(0x163)]()[h(0x15c)](h(0x168))[h(0x163)]()[h(0x166)](a103a)[h(0x15c)](h(0x168));});a103a();import{Generator}from'../generator.js';function a103d(a,b){const c=a103c();return a103d=function(d,e){d=d-0x157;let f=c[d];return f;},a103d(a,b);}function a103c(){const j=['maka\x20g:hook\x20cool-hook','constructor','2488437gAwKSK','(((.+)+)+)+$','8JEqSDN','649CuJnRa','126hdgYdc','32388VXEiHo','6bepcwD','Maka!','646234iZoYHU','maka\x20generate:api\x20Trucks','maka\x20<generate>:<entity>\x20[<args>]\x20[<opts>]','search','apply','642981qjAmsD','553528CKLYUj','503340kGMWyw','\x0a\x20\x20For\x20more\x20information\x20visit:\x0a\x20\x20\x20\x20https://www.maka-cli.com\x0a\x20\x20\x20\x20https://medium.com/@maka-io\x0a\x20\x20\x20\x20https://gitter.im/meteor/meteor\x20(@maka-io)\x0a\x20\x20','16PtQrUp','toString','265035cOKObJ'];a103c=function(){return j;};return a103c();}const MakaGen=new Generator({'name':'maka','shortDesc':a103i(0x158),'validOpts':[],'description':a103i(0x161),'usage':a103i(0x15b),'examples':[a103i(0x15a),a103i(0x165)]},function(){return null;});export default MakaGen;
1
+ function a103c(){const j=['maka','toString','maka\x20g:hook\x20cool-hook','72oqQTlm','3846465WPqjIN','apply','Maka!','1684MZufRn','constructor','32udkXlp','2509470rwuoka','\x0a\x20\x20For\x20more\x20information\x20visit:\x0a\x20\x20\x20\x20https://www.maka-cli.com\x0a\x20\x20\x20\x20https://medium.com/@maka-io\x0a\x20\x20\x20\x20https://gitter.im/meteor/meteor\x20(@maka-io)\x0a\x20\x20','25439900bCSJRb','2692485bXluME','5312484nvYZDP','search','(((.+)+)+)+$','19179IIGNjc','2136RWwgWF'];a103c=function(){return j;};return a103c();}const a103i=a103d;function a103d(a,b){const c=a103c();return a103d=function(d,e){d=d-0x8f;let f=c[d];return f;},a103d(a,b);}(function(a,b){const f=a103d,c=a();while(!![]){try{const d=-parseInt(f(0x8f))/0x1*(parseInt(f(0x94))/0x2)+parseInt(f(0x90))/0x3*(parseInt(f(0x98))/0x4)+-parseInt(f(0x9e))/0x5+parseInt(f(0x9f))/0x6+-parseInt(f(0x95))/0x7+parseInt(f(0x9a))/0x8*(-parseInt(f(0x9b))/0x9)+parseInt(f(0x9d))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a103c,0xcbf48));const a103b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a103d;if(c){const e=c[g(0x96)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a103a=a103b(this,function(){const h=a103d;return a103a[h(0x92)]()['search'](h(0xa1))[h(0x92)]()[h(0x99)](a103a)[h(0xa0)]('(((.+)+)+)+$');});a103a();import{Generator}from'../generator.js';const MakaGen=new Generator({'name':a103i(0x91),'shortDesc':a103i(0x97),'validOpts':[],'description':a103i(0x9c),'usage':'maka\x20<generate>:<entity>\x20[<args>]\x20[<opts>]','examples':['maka\x20generate:api\x20Trucks',a103i(0x93)]},function(){return null;});export default MakaGen;
@@ -1 +1 @@
1
- const a104n=a104d;function a104c(){const q=['-rpc-method\x27;','getProjectConfig','1322364uYxcIR','method/method.js','toString','(((.+)+)+)+$','Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','maka\x20g:method\x20todos','148977Hebmoh','91882hTzoxQ','962290BmTMUL','pathFromApp','import\x20\x27./methods','2088HMvKMB','check','Meteor\x20package\x20\x22check\x22\x20or\x20\x22ddp-rate-limiter\x22\x20or\x20\x22mdg:validated-method\x22\x20is\x20not\x20installed,\x20installing...','methods','search','25701610oZgitC','fsi','resourceName','dir','408gZrFJl','apply','mdg:validated-method','constructor','1334wuhixV','8GFzoYB','550OYVbMO','appPathPrefix','index.','maka\x20{generate,\x20g}:{method,\x20m}\x20name','check\x20ddp-rate-limiter\x20mdg:validated-method','startup','template','create','ddp-rate-limiter','3822972yrSBNf','checkMeteorPackage','engines','warn','error'];a104c=function(){return q;};return a104c();}function a104d(a,b){const c=a104c();return a104d=function(d,e){d=d-0x1bf;let f=c[d];return f;},a104d(a,b);}(function(a,b){const k=a104d,c=a();while(!![]){try{const d=-parseInt(k(0x1dd))/0x1+parseInt(k(0x1cb))/0x2*(parseInt(k(0x1e8))/0x3)+-parseInt(k(0x1cc))/0x4*(parseInt(k(0x1e5))/0x5)+-parseInt(k(0x1d6))/0x6+-parseInt(k(0x1e4))/0x7*(parseInt(k(0x1c7))/0x8)+-parseInt(k(0x1e3))/0x9*(-parseInt(k(0x1cd))/0xa)+parseInt(k(0x1c3))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a104c,0xaa3c9));const a104b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a104d;if(c){const e=c[l(0x1c8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a104a=a104b(this,function(){const m=a104d;return a104a[m(0x1df)]()[m(0x1c2)](m(0x1e0))[m(0x1df)]()[m(0x1ca)](a104a)[m(0x1c2)](m(0x1e0));});a104a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a104n(0x1d4)]({'name':'method','aliases':['m'],'usage':a104n(0x1d0),'checkWhere':!![],'shortDesc':a104n(0x1e1),'validOpts':[a104n(0x1c6)],'examples':[a104n(0x1e2)]},function(a,b){const o=a104n;try{const c=this[o(0x1c4)][o(0x1dc)]();this[o(0x1c4)]['withValue'](c,async()=>{const p=o,d=paramCase(b[p(0x1c5)]),f={'name':b[p(0x1c5)],'fileName':d,'className':pascalCase(b[p(0x1c5)]),'camelCase':camelCase(b['resourceName']),'noRename':!![]};let g='js';c[p(0x1d8)]['js']==='tsx'&&(g='ts');const h=this['fsi'][p(0x1e6)]({});(!this[p(0x1c4)][p(0x1d7)](p(0x1bf))||!this['fsi'][p(0x1d7)](p(0x1d5))||!this['fsi'][p(0x1d7)](p(0x1c9)))&&(Log[p(0x1d9)](p(0x1c0)),this[p(0x1c4)]['installMeteorPackage'](p(0x1d1),{'cwd':h}));this[p(0x1c4)][p(0x1d3)]({'srcPath':p(0x1de),'destPath':this[p(0x1c4)][p(0x1e6)]({'pathParts':['imports',p(0x1d2),b[p(0x1ce)],p(0x1c1),b[p(0x1c6)],d+'-rpc-method.'+g]}),'context':f,'config':c});const i=b[p(0x1c6)]?'/'+b[p(0x1c6)]+'/':'/',j=this[p(0x1c4)][p(0x1e6)]({'pathParts':['imports',p(0x1d2),b[p(0x1ce)],p(0x1cf)+c[p(0x1d8)]['js']]});this[p(0x1c4)]['injectAtEndOfFile']({'filePath':j,'content':p(0x1e7)+i+d+p(0x1db)});});}catch(d){Log[o(0x1da)](d);}});
1
+ const a104n=a104d;(function(a,b){const k=a104d,c=a();while(!![]){try{const d=-parseInt(k(0x1bb))/0x1*(parseInt(k(0x1da))/0x2)+parseInt(k(0x1be))/0x3*(-parseInt(k(0x1d8))/0x4)+parseInt(k(0x1ae))/0x5*(-parseInt(k(0x1b0))/0x6)+-parseInt(k(0x1d5))/0x7*(-parseInt(k(0x1b8))/0x8)+parseInt(k(0x1b5))/0x9+-parseInt(k(0x1bd))/0xa*(parseInt(k(0x1cf))/0xb)+parseInt(k(0x1d9))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a104c,0x67d11));const a104b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a104d;if(c){const e=c[l(0x1b2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a104a=a104b(this,function(){const m=a104d;return a104a['toString']()[m(0x1cc)](m(0x1b7))['toString']()[m(0x1bc)](a104a)[m(0x1cc)]('(((.+)+)+)+$');});a104a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a104d(a,b){const c=a104c();return a104d=function(d,e){d=d-0x1ae;let f=c[d];return f;},a104d(a,b);}function a104c(){const q=['resourceName','check\x20ddp-rate-limiter\x20mdg:validated-method','8RbDmYe','19754376pweiVL','4JtdHvS','23735XjSIGI','method/method.js','1062qoVGLv','pathFromApp','apply','dir','tsx','4183425zbvtnW','startup','(((.+)+)+)+$','648bXJdpM','fsi','appPathPrefix','126843staNcs','constructor','44330SksCMO','622437JkORqz','getProjectConfig','warn','-rpc-method\x27;','check','withValue','method','error','checkMeteorPackage','Meteor\x20package\x20\x22check\x22\x20or\x20\x22ddp-rate-limiter\x22\x20or\x20\x22mdg:validated-method\x22\x20is\x20not\x20installed,\x20installing...','injectAtEndOfFile','import\x20\x27./methods','template','mdg:validated-method','search','maka\x20g:method\x20todos','imports','1892KdjOXS','maka\x20{generate,\x20g}:{method,\x20m}\x20name','index.','methods','engines','ddp-rate-limiter','50603LFhRyb'];a104c=function(){return q;};return a104c();}import{camelCase,paramCase,pascalCase}from'change-case';Generator['create']({'name':a104n(0x1c4),'aliases':['m'],'usage':a104n(0x1d0),'checkWhere':!![],'shortDesc':'Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','validOpts':['dir'],'examples':[a104n(0x1cd)]},function(a,b){const o=a104n;try{const c=this[o(0x1b9)][o(0x1bf)]();this['fsi'][o(0x1c3)](c,async()=>{const p=o,d=paramCase(b[p(0x1d6)]),f={'name':b['resourceName'],'fileName':d,'className':pascalCase(b[p(0x1d6)]),'camelCase':camelCase(b['resourceName']),'noRename':!![]};let g='js';c[p(0x1d3)]['js']===p(0x1b4)&&(g='ts');const h=this[p(0x1b9)][p(0x1b1)]({});(!this[p(0x1b9)][p(0x1c6)](p(0x1c2))||!this['fsi'][p(0x1c6)](p(0x1d4))||!this['fsi'][p(0x1c6)](p(0x1cb)))&&(Log[p(0x1c0)](p(0x1c7)),this[p(0x1b9)]['installMeteorPackage'](p(0x1d7),{'cwd':h}));this['fsi'][p(0x1ca)]({'srcPath':p(0x1af),'destPath':this[p(0x1b9)][p(0x1b1)]({'pathParts':[p(0x1ce),'startup',b[p(0x1ba)],p(0x1d2),b[p(0x1b3)],d+'-rpc-method.'+g]}),'context':f,'config':c});const i=b[p(0x1b3)]?'/'+b[p(0x1b3)]+'/':'/',j=this['fsi']['pathFromApp']({'pathParts':['imports',p(0x1b6),b['appPathPrefix'],p(0x1d1)+c[p(0x1d3)]['js']]});this[p(0x1b9)][p(0x1c8)]({'filePath':j,'content':p(0x1c9)+i+d+p(0x1c1)});});}catch(d){Log[o(0x1c5)](d);}});
@@ -1 +1 @@
1
- const a105o=a105d;(function(a,b){const l=a105d,c=a();while(!![]){try{const d=-parseInt(l(0x16b))/0x1*(-parseInt(l(0x180))/0x2)+-parseInt(l(0x171))/0x3+parseInt(l(0x166))/0x4+parseInt(l(0x18a))/0x5+-parseInt(l(0x17a))/0x6*(-parseInt(l(0x16d))/0x7)+parseInt(l(0x182))/0x8*(parseInt(l(0x18e))/0x9)+-parseInt(l(0x189))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a105c,0x88068));const a105b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a105d;if(c){const e=c[m(0x16f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a105a=a105b(this,function(){const n=a105d;return a105a[n(0x183)]()[n(0x167)]('(((.+)+)+)+$')[n(0x183)]()[n(0x174)](a105a)['search'](n(0x179));});a105a();import a105e from'path';import{Generator}from'../generator.js';function a105d(a,b){const c=a105c();return a105d=function(d,e){d=d-0x161;let f=c[d];return f;},a105d(a,b);}function a105c(){const s=['1358100oPlfGp','client','tests/server','constructor','theme','relative','.js','noRename','(((.+)+)+)+$','209478BgUFuF','pathFromApp','fsi','tests/client','create','ssr','14ftqinv','/client/','230264KIFIql','toString','/package.js','getProjectConfig','maka\x20g:package\x20todos:package','pathFromAppWithNoReWrite','dir','6793280XPvKGO','163360ODJLOA','engines','maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','server','207IkfDWi','layout','features','forEach','lib','template/template.js','package.js','template','1451632HxWsrX','search','packages','store','package/','25390ckfgad','hasOwnProperty','91jPtAqh','resourceName','apply','withValue'];a105c=function(){return s;};return a105c();}import{camelCase,paramCase,pascalCase}from'change-case';Generator[a105o(0x17e)]({'name':'package','aliases':['p'],'usage':a105o(0x18c),'shortDesc':'Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','validOpts':[a105o(0x188)],'examples':[a105o(0x186)]},async function(a,b){const p=a105o,c=paramCase(b[p(0x16e)]),d=this[p(0x17c)][p(0x17b)]({'pathParts':['packages',b['dir'],c]}),e=this[p(0x17c)][p(0x187)]({'pathParts':[p(0x168),b[p(0x188)],c,p(0x164)]}),f=this[p(0x17c)][p(0x185)]();this[p(0x17c)][p(0x170)](f,async()=>{const q=p,g={'name':paramCase(b[q(0x16e)]),'myPath':a105e[q(0x176)](this['fsi']['pathFromProject']({}),d),'cssCaseName':paramCase(b[q(0x16e)]),'className':pascalCase(b[q(0x16e)]),'camelCaseName':camelCase(b['resourceName']),'fileName':c,'client':f[q(0x18b)][q(0x172)],'graphql':f[q(0x18b)]['graphql'],'ssr':f[q(0x18b)][q(0x17f)],'isComponent':b['hasOwnProperty']('component'),'isLayout':b['hasOwnProperty'](q(0x18f)),'isStore':b[q(0x16c)](q(0x169)),'features':f[q(0x190)],'noRename':!![],'theme':f[q(0x18b)][q(0x175)]};this[q(0x17c)][q(0x165)]({'srcPath':'package/package.js','destPath':e,'context':g,'config':f}),g[q(0x178)]=![];const h=d+q(0x181)+c+q(0x177);this[q(0x17c)][q(0x165)]({'srcPath':q(0x163),'destPath':h,'context':g,'config':f});const i=[q(0x162),q(0x18d),q(0x17d),q(0x173)];i[q(0x161)](j=>{const r=q,k=d+'/'+j+'/'+c+r(0x177);this[r(0x17c)]['template']({'srcPath':r(0x16a)+j+r(0x184),'destPath':k,'context':g,'config':f});});});});
1
+ function a105c(){const s=['pathFromApp','/package.js','graphql','template','features','noRename','hasOwnProperty','package.js','store','462287EJyCmZ','withValue','2567934xCQRUK','tests/server','forEach','(((.+)+)+)+$','10WRcsQV','layout','1527cLOpbv','ssr','fsi','546716NablNI','package/package.js','12IYgBUg','getProjectConfig','client','apply','Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','5dCqExO','package','46665QUVkTw','create','maka\x20g:package\x20todos:package','component','packages','search','toString','engines','2180784HorAEd','534ZpEdWj','12773662wdayGW','resourceName','.js','constructor','dir','/client/'];a105c=function(){return s;};return a105c();}const a105o=a105d;(function(a,b){const l=a105d,c=a();while(!![]){try{const d=-parseInt(l(0x15e))/0x1+-parseInt(l(0x167))/0x2*(parseInt(l(0x152))/0x3)+-parseInt(l(0x155))/0x4*(parseInt(l(0x15c))/0x5)+parseInt(l(0x157))/0x6*(-parseInt(l(0x14a))/0x7)+-parseInt(l(0x166))/0x8+-parseInt(l(0x14c))/0x9*(parseInt(l(0x150))/0xa)+parseInt(l(0x168))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a105c,0x251b5));const a105b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a105d;if(c){const e=c[m(0x15a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a105a=a105b(this,function(){const n=a105d;return a105a[n(0x164)]()[n(0x163)](n(0x14f))[n(0x164)]()[n(0x16b)](a105a)[n(0x163)](n(0x14f));});a105a();import a105e from'path';import{Generator}from'../generator.js';function a105d(a,b){const c=a105c();return a105d=function(d,e){d=d-0x14a;let f=c[d];return f;},a105d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';Generator[a105o(0x15f)]({'name':a105o(0x15d),'aliases':['p'],'usage':'maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','shortDesc':a105o(0x15b),'validOpts':[a105o(0x16c)],'examples':[a105o(0x160)]},async function(a,b){const p=a105o,c=paramCase(b[p(0x169)]),d=this[p(0x154)][p(0x16e)]({'pathParts':[p(0x162),b['dir'],c]}),e=this[p(0x154)]['pathFromAppWithNoReWrite']({'pathParts':['packages',b['dir'],c,p(0x175)]}),f=this[p(0x154)][p(0x158)]();this['fsi'][p(0x14b)](f,async()=>{const q=p,g={'name':paramCase(b['resourceName']),'myPath':a105e['relative'](this[q(0x154)]['pathFromProject']({}),d),'cssCaseName':paramCase(b[q(0x169)]),'className':pascalCase(b[q(0x169)]),'camelCaseName':camelCase(b[q(0x169)]),'fileName':c,'client':f['engines'][q(0x159)],'graphql':f[q(0x165)][q(0x170)],'ssr':f['engines'][q(0x153)],'isComponent':b['hasOwnProperty'](q(0x161)),'isLayout':b[q(0x174)](q(0x151)),'isStore':b['hasOwnProperty'](q(0x176)),'features':f[q(0x172)],'noRename':!![],'theme':f[q(0x165)]['theme']};this[q(0x154)][q(0x171)]({'srcPath':q(0x156),'destPath':e,'context':g,'config':f}),g[q(0x173)]=![];const h=d+q(0x16d)+c+q(0x16a);this[q(0x154)][q(0x171)]({'srcPath':'template/template.js','destPath':h,'context':g,'config':f});const i=['lib','server','tests/client',q(0x14d)];i[q(0x14e)](j=>{const r=q,k=d+'/'+j+'/'+c+r(0x16a);this[r(0x154)][r(0x171)]({'srcPath':'package/'+j+r(0x16f),'destPath':k,'context':g,'config':f});});});});
@@ -1 +1 @@
1
- const a106q=a106d;(function(a,b){const n=a106d,c=a();while(!![]){try{const d=parseInt(n(0xde))/0x1*(-parseInt(n(0x8f))/0x2)+-parseInt(n(0xb1))/0x3+parseInt(n(0xd4))/0x4+parseInt(n(0xd7))/0x5+-parseInt(n(0xbe))/0x6+parseInt(n(0xaa))/0x7*(-parseInt(n(0xc7))/0x8)+parseInt(n(0x90))/0x9*(parseInt(n(0xbd))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a106c,0x61e58));function a106c(){const t=['.js','ssr','715646qeeWSl','9swFUbq','hook/hook.js','withValue','installNpmPackage','template/template.html','className','templates.js','error','none','template','rewriteDestinationPathForEngine','/imports/ui/pages','relative','layout','resourceName','components','true','root','Generate\x20a\x20page.','pathFromApp','injectAtBeginningOfFile','imports','import\x20\x27./','component/component.js','pathFromProject','baseDir','749solvSH','html','startup','graphql','fileName','hooks','maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','307335pmKTfJ','component','includes','hasOwnProperty','dir','.css','engines','page','test','withHook','warn','import\x20\x27','14610250UYPZGM','1286478wNdAPU','maka\x20g:page\x20todos/todos-item','vanilla','fsi','create','checkNpmPackage','toString','Valid\x20options\x20are:\x20','lib','40856zxdIoM','Updating\x20npm\x20packages\x20...','import\x20{\x20','store','(((.+)+)+)+$','injectAtEndOfFile','withHooks','apply','setTemplate','search','layouts','\x20}\x20from\x20\x27','react','652172RjawGD','features','client','1779345wxTEeY','theme','\x27;\x0a','ramda','template/template.css','assign','css','2efTGcn','getProjectConfig','api','pages','export\x20{\x20','string','join','\x20};\x0a'];a106c=function(){return t;};return a106c();}const a106b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a106d;if(c){const e=c[o(0xce)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a106a=a106b(this,function(){const p=a106d;return a106a[p(0xc4)]()[p(0xd0)]('(((.+)+)+)+$')[p(0xc4)]()['constructor'](a106a)[p(0xd0)](p(0xcb));});a106a();function a106d(a,b){const c=a106c();return a106d=function(d,e){d=d-0x8b;let f=c[d];return f;},a106d(a,b);}import a106e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['p'];Generator[a106q(0xc2)]({'name':a106q(0xb8),'aliases':aliases,'usage':a106q(0xb0),'shortDesc':a106q(0xa2),'validOpts':[a106q(0xa9),'withHook'],'examples':[a106q(0xbf)]},function(a,b){const r=a106q,c=[r(0xaf),r(0x9f),r(0xe1),r(0xd1)];if(b[r(0xa9)]&&!c[r(0xb3)](b[r(0xa9)])){Log[r(0x97)]('Invalid\x20directory\x20option\x20\x22'+b[r(0xa9)]+'\x22'),Log[r(0x97)](r(0xc5)+c[r(0x8b)](',\x20'));throw new UsageError();}const d=b[r(0xa9)]?'/imports/ui/'+b[r(0xa9)]:r(0x9b),e=this['fsi'][r(0xa3)](b),f=this[r(0xc1)][r(0xa3)]({'pathParts':[d,b[r(0xb5)],b[r(0x9e)],paramCase(b[r(0x9e)])]}),g=this[r(0xc1)][r(0xdf)]();this[r(0xc1)][r(0x92)](g,()=>{const s=r;typeof g['template'][s(0xab)]===s(0xe3)&&(g[s(0x99)][s(0xab)]=g[s(0x99)]['html']==='true'?!![]:![],this['fsi']['setTemplate'](s(0xab),g['template'][s(0xab)]));typeof g[s(0x99)][s(0xb9)]==='string'&&(g[s(0x99)][s(0xb9)]=g[s(0x99)][s(0xb9)]===s(0xa0)?!![]:![],this[s(0xc1)][s(0xcf)]('test',g[s(0x99)][s(0xb9)]));typeof g[s(0x99)]['css']===s(0xe3)&&(g[s(0x99)][s(0xdd)]=g[s(0x99)]['css']===s(0xa0)?!![]:![],this[s(0xc1)][s(0xcf)](s(0xdd),g[s(0x99)][s(0xdd)]));typeof g[s(0x99)]['js']===s(0xe3)&&(g[s(0x99)]['js']=g[s(0x99)]['js']==='true'?!![]:![],this[s(0xc1)][s(0xcf)]('js',g[s(0x99)]['js']));!g[s(0xd5)]&&(g[s(0xd5)]={});!b[s(0xa1)]&&!this[s(0xc1)][s(0xc3)](s(0xda))&&(Log[s(0xbb)](s(0xc8)),this[s(0xc1)][s(0x93)](s(0xda),{'cwd':e}));const h={'name':pascalCase(b[s(0x9e)]),'myPath':a106e[s(0x9c)](this[s(0xc1)][s(0xa8)]({}),f),'cssCaseName':paramCase(b[s(0x9e)]),'className':pascalCase(b[s(0x9e)]),'camelCaseName':camelCase(b[s(0x9e)]),'fileName':paramCase(b[s(0x9e)]),'graphql':g[s(0xb7)][s(0xad)],'features':g['features'],'client':g[s(0xb7)][s(0xd6)],'api':g[s(0xb7)][s(0xe0)],'ssr':g[s(0xb7)][s(0x8e)],'isStore':b['hasOwnProperty'](s(0xca)),'isComponent':b[s(0xb4)](s(0xb2)),'isLayout':b[s(0xb4)](s(0x9d)),'withTranslations':g[s(0xd5)]['withTranslations'],'test':g['engines'][s(0xb9)],'theme':g[s(0xb7)][s(0xd8)]};g['template'][s(0xab)]&&this[s(0xc1)][s(0x99)]({'srcPath':s(0x94),'destPath':f+'.html','context':h,'config':g});g['features']?.[s(0xcd)]||b[s(0xba)]?this[s(0xc1)]['template']({'srcPath':s(0x91),'destPath':f+s(0x8d),'framework':s(0xd3),'context':h,'config':g}):this[s(0xc1)][s(0x99)]({'srcPath':s(0xa7),'destPath':f+s(0x8d),'framework':'react','context':h,'config':g});g[s(0xb7)][s(0xb9)]!==s(0x98)&&this[s(0xc1)][s(0x99)]({'srcPath':'test/test.js','destPath':f+'.app-tests.js','framework':'react','context':h,'config':g});g[s(0x99)][s(0xdd)]&&this[s(0xc1)][s(0x99)]({'srcPath':s(0xdb),'destPath':f+s(0xb6),'context':Object[s(0xdc)]({},h,{'className':paramCase(b[s(0x9e)])}),'config':g});g[s(0xb7)]['client']!==s(0xd3)&&g[s(0xb7)]['client']!==s(0xc0)?(g[s(0x99)]['css']&&this[s(0xc1)][s(0xa4)]({'filePath':f+'.'+g[s(0xb7)]['js'],'content':'import\x20\x27./'+h[s(0xae)]+'.'+g['engines'][s(0xab)]+'\x27;\x0a'+s(0xa6)+h['fileName']+'.'+g[s(0xb7)][s(0xdd)]+'\x27;'}),!g[s(0x99)][s(0xdd)]&&this['fsi']['injectAtBeginningOfFile']({'filePath':f+'.'+g[s(0xb7)]['js'],'content':s(0xa6)+h[s(0xae)]+'.'+g[s(0xb7)][s(0xab)]+'\x27;'})):g[s(0x99)]['css']&&this[s(0xc1)]['injectAtBeginningOfFile']({'filePath':f+'.'+g[s(0xb7)]['js'],'content':s(0xa6)+h['fileName']+'.'+g[s(0xb7)][s(0xdd)]+'\x27;'});const i=b[s(0xb5)]?'/'+b['dir']+'/':'/',j=''+d+i+h[s(0xae)]+'/'+h['fileName'];let k;if(g[s(0xb7)]['ssr']===s(0xa0)){const l=this[s(0xc1)][s(0xa3)]({'pathParts':['imports','startup',s(0xc6),s(0x96)]});k=this[s(0xc1)][s(0x9a)]({'pathParts':[l],'config':g});}else{const m=this[s(0xc1)]['pathFromApp']({'pathParts':[s(0xa5),s(0xac),'client',s(0x96)]});k=this[s(0xc1)][s(0x9a)]({'pathParts':[m],'config':g});}g[s(0xb7)][s(0xd6)]===s(0xd3)?(g[s(0xb7)]['js']==='tsx'?this[s(0xc1)][s(0xa4)]({'filePath':k,'content':s(0xc9)+h[s(0x95)]+s(0xd2)+j+s(0xd9)}):this[s(0xc1)]['injectAtBeginningOfFile']({'filePath':k,'content':'import\x20{\x20'+h['className']+'\x20}\x20from\x20\x27'+j+'.'+g['engines']['js']+s(0xd9)}),this[s(0xc1)][s(0xcc)]({'filePath':k,'content':s(0xe2)+h[s(0x95)]+s(0x8c)})):this[s(0xc1)][s(0xcc)]({'filePath':k,'content':s(0xbc)+j+'.'+g[s(0xb7)]['js']+'\x27;\x0a'});});});
1
+ const a106q=a106d;(function(a,b){const n=a106d,c=a();while(!![]){try{const d=parseInt(n(0xe3))/0x1*(-parseInt(n(0x104))/0x2)+parseInt(n(0xf1))/0x3+-parseInt(n(0x118))/0x4+-parseInt(n(0xd8))/0x5*(parseInt(n(0xff))/0x6)+-parseInt(n(0x109))/0x7*(parseInt(n(0x108))/0x8)+-parseInt(n(0xef))/0x9*(parseInt(n(0x112))/0xa)+parseInt(n(0xd7))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a106c,0x6a327));const a106b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a106d;if(c){const e=c[o(0xea)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a106a=a106b(this,function(){const p=a106d;return a106a['toString']()[p(0x100)](p(0x11c))[p(0x10f)]()[p(0x111)](a106a)[p(0x100)](p(0x11c));});a106a();import a106e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a106d(a,b){const c=a106c();return a106d=function(d,e){d=d-0xcb;let f=c[d];return f;},a106d(a,b);}import{UsageError}from'../error.js';function a106c(){const t=['react','maka\x20g:page\x20todos/todos-item','toString','getProjectConfig','constructor','10fcWMYD','setTemplate','injectAtBeginningOfFile','layout','imports','relative','2878732yCdPbm','templates.js','test','\x20};\x0a','(((.+)+)+)+$','pathFromProject','error','root','className','hook/hook.js','import\x20{\x20','\x20}\x20from\x20\x27','.html','assign','vanilla','withHooks','.js','startup','24499189ebXMcq','475zTIleJ','Updating\x20npm\x20packages\x20...','string','pages','true','injectAtEndOfFile','lib','pathFromApp','fsi','html','/imports/ui/','199534iXMyaR','features','rewriteDestinationPathForEngine','store','css','api','theme','apply','Invalid\x20directory\x20option\x20\x22','\x27;\x0a','maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','ssr','3003102niJfgh','withHook','2064225KMryyf','installNpmPackage','fileName','components','template/template.html','resourceName','none','import\x20\x27','create','dir','template','Generate\x20a\x20page.','baseDir','hooks','17436sGXusy','search','hasOwnProperty','.app-tests.js','client','8ELqWXO','warn','tsx','import\x20\x27./','32rEdPdN','617267GGITPL','checkNpmPackage','Valid\x20options\x20are:\x20','engines'];a106c=function(){return t;};return a106c();}import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['p'];Generator[a106q(0xf9)]({'name':'page','aliases':aliases,'usage':a106q(0xed),'shortDesc':a106q(0xfc),'validOpts':[a106q(0xfd),a106q(0xf0)],'examples':[a106q(0x10e)]},function(a,b){const r=a106q,c=[r(0xfe),r(0xf4),r(0xdb),'layouts'];if(b[r(0xfd)]&&!c['includes'](b[r(0xfd)])){Log[r(0xcb)](r(0xeb)+b[r(0xfd)]+'\x22'),Log[r(0xcb)](r(0x10b)+c['join'](',\x20'));throw new UsageError();}const d=b[r(0xfd)]?r(0xe2)+b[r(0xfd)]:'/imports/ui/pages',e=this['fsi'][r(0xdf)](b),f=this[r(0xe0)]['pathFromApp']({'pathParts':[d,b[r(0xfa)],b['resourceName'],paramCase(b[r(0xf6)])]}),g=this[r(0xe0)][r(0x110)]();this['fsi']['withValue'](g,()=>{const s=r;typeof g[s(0xfb)][s(0xe1)]==='string'&&(g[s(0xfb)][s(0xe1)]=g[s(0xfb)]['html']==='true'?!![]:![],this[s(0xe0)][s(0x113)]('html',g[s(0xfb)]['html']));typeof g[s(0xfb)][s(0x11a)]===s(0xda)&&(g['template']['test']=g[s(0xfb)][s(0x11a)]===s(0xdc)?!![]:![],this[s(0xe0)][s(0x113)](s(0x11a),g['template'][s(0x11a)]));typeof g[s(0xfb)][s(0xe7)]===s(0xda)&&(g[s(0xfb)][s(0xe7)]=g[s(0xfb)][s(0xe7)]===s(0xdc)?!![]:![],this['fsi'][s(0x113)](s(0xe7),g[s(0xfb)][s(0xe7)]));typeof g['template']['js']==='string'&&(g[s(0xfb)]['js']=g['template']['js']===s(0xdc)?!![]:![],this[s(0xe0)][s(0x113)]('js',g[s(0xfb)]['js']));!g[s(0xe4)]&&(g[s(0xe4)]={});!b[s(0xcc)]&&!this[s(0xe0)][s(0x10a)]('ramda')&&(Log[s(0x105)](s(0xd9)),this[s(0xe0)][s(0xf2)]('ramda',{'cwd':e}));const h={'name':pascalCase(b[s(0xf6)]),'myPath':a106e[s(0x117)](this['fsi'][s(0x11d)]({}),f),'cssCaseName':paramCase(b[s(0xf6)]),'className':pascalCase(b[s(0xf6)]),'camelCaseName':camelCase(b[s(0xf6)]),'fileName':paramCase(b['resourceName']),'graphql':g[s(0x10c)]['graphql'],'features':g[s(0xe4)],'client':g[s(0x10c)]['client'],'api':g[s(0x10c)][s(0xe8)],'ssr':g['engines'][s(0xee)],'isStore':b['hasOwnProperty'](s(0xe6)),'isComponent':b[s(0x101)]('component'),'isLayout':b[s(0x101)](s(0x115)),'withTranslations':g[s(0xe4)]['withTranslations'],'test':g[s(0x10c)][s(0x11a)],'theme':g[s(0x10c)][s(0xe9)]};g[s(0xfb)][s(0xe1)]&&this['fsi'][s(0xfb)]({'srcPath':s(0xf5),'destPath':f+s(0xd1),'context':h,'config':g});g['features']?.[s(0xd4)]||b[s(0xf0)]?this['fsi'][s(0xfb)]({'srcPath':s(0xce),'destPath':f+'.js','framework':s(0x10d),'context':h,'config':g}):this[s(0xe0)]['template']({'srcPath':'component/component.js','destPath':f+s(0xd5),'framework':s(0x10d),'context':h,'config':g});g[s(0x10c)][s(0x11a)]!==s(0xf7)&&this['fsi'][s(0xfb)]({'srcPath':'test/test.js','destPath':f+s(0x102),'framework':s(0x10d),'context':h,'config':g});g[s(0xfb)][s(0xe7)]&&this['fsi'][s(0xfb)]({'srcPath':'template/template.css','destPath':f+'.css','context':Object[s(0xd2)]({},h,{'className':paramCase(b[s(0xf6)])}),'config':g});g[s(0x10c)]['client']!=='react'&&g[s(0x10c)][s(0x103)]!==s(0xd3)?(g[s(0xfb)][s(0xe7)]&&this[s(0xe0)][s(0x114)]({'filePath':f+'.'+g[s(0x10c)]['js'],'content':'import\x20\x27./'+h[s(0xf3)]+'.'+g['engines'][s(0xe1)]+s(0xec)+s(0x107)+h[s(0xf3)]+'.'+g['engines'][s(0xe7)]+'\x27;'}),!g[s(0xfb)][s(0xe7)]&&this[s(0xe0)]['injectAtBeginningOfFile']({'filePath':f+'.'+g[s(0x10c)]['js'],'content':'import\x20\x27./'+h['fileName']+'.'+g[s(0x10c)][s(0xe1)]+'\x27;'})):g[s(0xfb)]['css']&&this[s(0xe0)][s(0x114)]({'filePath':f+'.'+g[s(0x10c)]['js'],'content':s(0x107)+h[s(0xf3)]+'.'+g[s(0x10c)][s(0xe7)]+'\x27;'});const i=b['dir']?'/'+b[s(0xfa)]+'/':'/',j=''+d+i+h[s(0xf3)]+'/'+h[s(0xf3)];let k;if(g[s(0x10c)][s(0xee)]===s(0xdc)){const l=this[s(0xe0)][s(0xdf)]({'pathParts':['imports','startup',s(0xde),s(0x119)]});k=this[s(0xe0)]['rewriteDestinationPathForEngine']({'pathParts':[l],'config':g});}else{const m=this[s(0xe0)]['pathFromApp']({'pathParts':[s(0x116),s(0xd6),s(0x103),'templates.js']});k=this['fsi'][s(0xe5)]({'pathParts':[m],'config':g});}g[s(0x10c)][s(0x103)]===s(0x10d)?(g['engines']['js']===s(0x106)?this[s(0xe0)][s(0x114)]({'filePath':k,'content':'import\x20{\x20'+h[s(0xcd)]+'\x20}\x20from\x20\x27'+j+s(0xec)}):this[s(0xe0)][s(0x114)]({'filePath':k,'content':s(0xcf)+h['className']+s(0xd0)+j+'.'+g[s(0x10c)]['js']+'\x27;\x0a'}),this[s(0xe0)]['injectAtEndOfFile']({'filePath':k,'content':'export\x20{\x20'+h[s(0xcd)]+s(0x11b)})):this['fsi'][s(0xdd)]({'filePath':k,'content':s(0xf8)+j+'.'+g[s(0x10c)]['js']+s(0xec)});});});
@@ -1 +1 @@
1
- const a107k=a107d;(function(a,b){const h=a107d,c=a();while(!![]){try{const d=parseInt(h(0x17a))/0x1*(parseInt(h(0x174))/0x2)+-parseInt(h(0x17f))/0x3*(-parseInt(h(0x183))/0x4)+parseInt(h(0x17e))/0x5+-parseInt(h(0x172))/0x6+-parseInt(h(0x179))/0x7+parseInt(h(0x17b))/0x8*(parseInt(h(0x16c))/0x9)+parseInt(h(0x177))/0xa*(-parseInt(h(0x168))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a107c,0x2440d));const a107b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a107d;if(c){const e=c[i(0x166)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a107a=a107b(this,function(){const j=a107d;return a107a[j(0x16d)]()[j(0x181)](j(0x175))[j(0x16d)]()[j(0x180)](a107a)['search']('(((.+)+)+)+$');});a107a();import{paramCase}from'change-case';import{Generator}from'../generator.js';function a107d(a,b){const c=a107c();return a107d=function(d,e){d=d-0x166;let f=c[d];return f;},a107d(a,b);}Generator[a107k(0x173)]({'name':a107k(0x17d),'aliases':['p'],'usage':a107k(0x16a),'shortDesc':a107k(0x16f),'validOpts':[],'examples':[a107k(0x170)]},async function(a,b){const l=a107k,c=this['fsi'][l(0x169)]();this[l(0x182)][l(0x176)](c,async()=>{const m=l,d={'name':b['resourceName'],'collection':paramCase(b[m(0x17c)]),'noRename':!![]};let e='js';c[m(0x16b)]['js']==='tsx'&&(e='ts');const f=this[m(0x182)][m(0x167)]({'pathParts':[m(0x178)+c[m(0x16b)]['js']]}),g=this[m(0x182)][m(0x16e)]({'srcPath':'publish/publish.'+e,'context':d,'config':c});this[m(0x182)][m(0x171)]({'filePath':f,'content':'\x0a'+g});});});function a107c(){const n=['server/publish.','1761277dZmjtQ','59fvRfiQ','104oeccBp','resourceName','publish','668200XUAwSx','3DEzpag','constructor','search','fsi','1119396gyJzal','apply','rewriteDestinationPathForEngine','22uQRkjM','getProjectConfig','maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','engines','122373bkDOsI','toString','templateContent','Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','maka\x20g:publish\x20todos','injectAtEndOfFile','508176ZJlkeq','create','9536IUwFCx','(((.+)+)+)+$','withValue','1933810XPpOHS'];a107c=function(){return n;};return a107c();}
1
+ const a107k=a107d;(function(a,b){const h=a107d,c=a();while(!![]){try{const d=-parseInt(h(0x202))/0x1*(parseInt(h(0x1f1))/0x2)+parseInt(h(0x1f3))/0x3+-parseInt(h(0x1f2))/0x4+-parseInt(h(0x1fe))/0x5*(parseInt(h(0x1f4))/0x6)+-parseInt(h(0x201))/0x7+-parseInt(h(0x1f7))/0x8+parseInt(h(0x1ff))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a107c,0xd3869));function a107c(){const n=['1612084eRcmEQ','4241130PhXHLV','740562eJcnqL','engines','resourceName','8640560qnNbzY','maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','search','injectAtEndOfFile','apply','tsx','(((.+)+)+)+$','5uRLCGK','33731757DvepMw','getProjectConfig','9469985FOyYPz','1335901QQjCPF','maka\x20g:publish\x20todos','constructor','toString','templateContent','Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','withValue','create','fsi','2ROjRlN'];a107c=function(){return n;};return a107c();}function a107d(a,b){const c=a107c();return a107d=function(d,e){d=d-0x1eb;let f=c[d];return f;},a107d(a,b);}const a107b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a107d;if(c){const e=c[i(0x1fb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a107a=a107b(this,function(){const j=a107d;return a107a[j(0x1eb)]()[j(0x1f9)](j(0x1fd))[j(0x1eb)]()[j(0x204)](a107a)[j(0x1f9)]('(((.+)+)+)+$');});a107a();import{paramCase}from'change-case';import{Generator}from'../generator.js';Generator[a107k(0x1ef)]({'name':'publish','aliases':['p'],'usage':a107k(0x1f8),'shortDesc':a107k(0x1ed),'validOpts':[],'examples':[a107k(0x203)]},async function(a,b){const l=a107k,c=this[l(0x1f0)][l(0x200)]();this[l(0x1f0)][l(0x1ee)](c,async()=>{const m=l,d={'name':b[m(0x1f6)],'collection':paramCase(b['resourceName']),'noRename':!![]};let e='js';c[m(0x1f5)]['js']===m(0x1fc)&&(e='ts');const f=this[m(0x1f0)]['rewriteDestinationPathForEngine']({'pathParts':['server/publish.'+c['engines']['js']]}),g=this['fsi'][m(0x1ec)]({'srcPath':'publish/publish.'+e,'context':d,'config':c});this[m(0x1f0)][m(0x1fa)]({'filePath':f,'content':'\x0a'+g});});});
@@ -1 +1 @@
1
- function a108d(a,b){const c=a108c();return a108d=function(d,e){d=d-0xa5;let f=c[d];return f;},a108d(a,b);}const a108A=a108d;function a108c(){const I=['warn','root','join','maka\x20g:route\x20todosEdit\x20todos/:id/edit','templateName','route','length','true','import\x20*\x20as\x20Component\x20from\x20\x27./templates\x27;','6644790rqPdza','11803203ToVBWB','injectIntoFile','apply','pathFromApp','11297MeUkFP','lib','includes','readFileLines','react','dir','engines','map','rewriteDestinationPathForEngine','withHook','error','toString','MasterLayout','const\x20privateRoutes\x20=\x20(<>','startup','const\x20publicRoutes\x20=\x20(<>','1432UXadbu','constructor','routes.js','\x22*\x22','/imports/ui/pages','<Route','client','ssr','withTranslations','page','</Router>','maka\x20g:route\x20todosIndex\x20todos','imports','106tiVuMC','5121pCUkBK','templateContent','baseDir','findGenerator','toLowerCase','layout','PrivateLayout','layouts','fsi','203586pRiptK','url','route/route.js','search','8589575ZXVhKd','maka\x20{generate,\x20g}:{route,\x20r}\x20[path/]<name>','newForm','\x0a\x09\x09','injectAfterLineNumber','injectAtEndOfFile','(((.+)+)+)+$','filter','pages','getProjectConfig','343pavgjf','hooks','<Router','Valid\x20options\x20are:\x20','maka\x20g:route\x20pages/about','2955072hxQgFY','withValue'];a108c=function(){return I;};return a108c();}(function(a,b){const x=a108d,c=a();while(!![]){try{const d=-parseInt(x(0xb6))/0x1*(-parseInt(x(0xd3))/0x2)+parseInt(x(0xd4))/0x3*(parseInt(x(0xc6))/0x4)+parseInt(x(0xe1))/0x5+-parseInt(x(0xdd))/0x6*(parseInt(x(0xeb))/0x7)+parseInt(x(0xa6))/0x8+-parseInt(x(0xb2))/0x9+parseInt(x(0xb1))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a108c,0xf1193));const a108b=(function(){let a=!![];return function(b,c){const d=a?function(){const y=a108d;if(c){const e=c[y(0xb4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a108a=a108b(this,function(){const z=a108d;return a108a[z(0xc1)]()[z(0xe0)]('(((.+)+)+)+$')[z(0xc1)]()[z(0xc7)](a108a)[z(0xe0)](z(0xe7));});a108a();import a108e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a108f from'../generators/maka.gen.js';import{UsageError}from'../error.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['r'];Generator['create']({'name':a108A(0xad),'aliases':aliases,'validOpts':['private',a108A(0xd9),'only','cwd','config','root',a108A(0xbf),a108A(0xde),a108A(0xd6)],'usage':a108A(0xe2),'shortDesc':'Scaffolding\x20for\x20a\x20Route.','examples':[a108A(0xd1),a108A(0xab),'maka\x20g:route\x20usersShow\x20users/:id/show\x20--layout\x20userView','maka\x20g:route\x20pages/lists/listIndex\x20lists',a108A(0xa5)]},function(a,b){const B=a108A;try{const c=[B(0xec),'components',B(0xe9),B(0xdb)];if(b[B(0xd6)]&&!c[B(0xb8)](b[B(0xd6)])){Log[B(0xc0)]('Invalid\x20directory\x20option\x20\x22'+b['baseDir']+'\x22'),Log[B(0xc0)](B(0xee)+c[B(0xaa)](',\x20'));throw new UsageError();}const d=this[B(0xdc)][B(0xea)]();this[B(0xdc)][B(0xa7)](d,async()=>{const C=B,f=b['private']??![];let g=paramCase(a[0x0]),h='/'+g;a[C(0xae)]>0x1&&(h='/'+a[C(0xe8)](function(n){return n!=='/';})['join']('/')[C(0xd8)]());g=camelCase(g);b[C(0xd9)]&&(b[C(0xd9)]=camelCase(b['layout']));const i=b['baseDir']?'/imports/ui/'+b[C(0xd6)]:C(0xca),j=a108e[C(0xaa)](i,b[C(0xbb)],g,paramCase(g)),k={'name':g,'fileCase':paramCase(g),'camelCaseName':camelCase(g),'url':h,'layout':b[C(0xd9)]||C(0xc2),'templatePath':j,'templateName':pascalCase(g),'client':d[C(0xbc)][C(0xcc)],'newForm':![],'withTranslations':d['features'][C(0xce)]};f&&(k['layout']=C(0xda));if(!b[C(0xa9)]){const n=a108f[C(0xd7)](C(0xcf));n&&await n['invoke'](a,b);}let l,m;if(d[C(0xbc)][C(0xcc)]==='react'){if(d['engines'][C(0xcd)]===C(0xaf)){const r=this[C(0xdc)][C(0xb5)]({'pathParts':['imports',C(0xc4),C(0xb7),'routes.js']});l=this[C(0xdc)][C(0xbe)]({'pathParts':[r],'config':d});}else{const s=this[C(0xdc)]['pathFromApp']({'pathParts':[C(0xd2),C(0xc4),C(0xcc),C(0xc8)]});l=this[C(0xdc)][C(0xbe)]({'pathParts':[s],'config':d});}const o=this[C(0xdc)][C(0xb9)](l)['map']((t,u)=>{const D=C;return t[D(0xb8)](D(0xb0))?u+0x1:null;})[C(0xe8)](t=>t!==null);let p=this[C(0xdc)][C(0xb9)](l)[C(0xbd)]((t,u)=>{const E=C;return t[E(0xb8)](E(0xc5))?u+0x1:null;})['filter'](t=>t!==null),q=this[C(0xdc)][C(0xb9)](l)[C(0xbd)]((t,u)=>{return t['includes']('const\x20privateRoutes\x20=\x20(<>')?u+0x1:null;})['filter'](t=>t!==null);p[C(0xae)]>0x0&&q['length']>0x0&&(k[C(0xe3)]=!![]);m=this[C(0xdc)][C(0xd5)]({'srcPath':C(0xdf),'framework':C(0xba),'context':k,'config':d});if(p[C(0xae)]>0x0||q['length']>0x0){this['fsi'][C(0xe5)]({'filePath':l,'content':m,'lineNumber':o[0x0]});if(f&&q[C(0xae)]>0x0)q=this[C(0xdc)][C(0xb9)](l)['map']((t,u)=>{const F=C;return t[F(0xb8)](F(0xc3))?u+0x1:null;})['filter'](t=>t!==null),this[C(0xdc)]['injectAfterLineNumber']({'filePath':l,'content':'\x09{'+k[C(0xac)]+'}','lineNumber':q[0x0]});else p[C(0xae)]>0x0?(p=this[C(0xdc)][C(0xb9)](l)[C(0xbd)]((t,u)=>{const G=C;return t[G(0xb8)](G(0xc5))?u+0x1:null;})[C(0xe8)](t=>t!==null),this[C(0xdc)][C(0xe5)]({'filePath':l,'content':'\x09{'+k[C(0xac)]+'}','lineNumber':p[0x0]})):Log[C(0xa8)]('Could\x20not\x20find\x20a\x20suitable\x20location\x20to\x20enable\x20this\x20route.\x20\x20Please\x20inspect\x20'+l);}else{const t=this[C(0xdc)][C(0xb9)](l)[C(0xbd)](w=>{const H=C;return w[H(0xb8)](H(0xc9));}),u=t['indexOf'](!![])>-0x1,v=u?C(0xcb):C(0xd0);this[C(0xdc)][C(0xb3)]({'filePath':l,'content':C(0xe4)+m+C(0xe4),'begin':C(0xed),'end':v});}}else{if(d[C(0xbc)][C(0xcc)]==='vanilla'){const w=this[C(0xdc)][C(0xb5)]({'pathParts':[C(0xd2),'startup',C(0xcc),C(0xc8)]});l=this['fsi'][C(0xbe)]({'pathParts':[w],'config':d}),m=this[C(0xdc)][C(0xd5)]({'srcPath':C(0xdf),'context':k}),this[C(0xdc)][C(0xe6)]({'filePath':l,'content':'\x0a'+m});}}});}catch(f){Log['error'](f);}});
1
+ const a108z=a108d;(function(a,b){const x=a108d,c=a();while(!![]){try{const d=-parseInt(x(0xc3))/0x1*(parseInt(x(0xd2))/0x2)+parseInt(x(0xc2))/0x3*(parseInt(x(0xce))/0x4)+parseInt(x(0xda))/0x5*(-parseInt(x(0xb3))/0x6)+-parseInt(x(0xc9))/0x7+-parseInt(x(0xbe))/0x8+-parseInt(x(0xd5))/0x9+parseInt(x(0xe8))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a108c,0x824bf));const a108b=(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;};}()),a108a=a108b(this,function(){const y=a108d;return a108a[y(0xc6)]()[y(0xf2)](y(0xdb))[y(0xc6)]()[y(0xf0)](a108a)['search'](y(0xdb));});a108a();function a108d(a,b){const c=a108c();return a108d=function(d,e){d=d-0xb1;let f=c[d];return f;},a108d(a,b);}import a108e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a108f from'../generators/maka.gen.js';function a108c(){const I=['vanilla','toString','withHook','maka\x20{generate,\x20g}:{route,\x20r}\x20[path/]<name>','4842124eSRKHG','indexOf','hooks','layout','toLowerCase','4iFEmWm','components','templateName','routes.js','130168LwRKbx','Valid\x20options\x20are:\x20','</Router>','4444011wxleoB','templateContent','filter','/imports/ui/','readFileLines','20jacnUs','(((.+)+)+)+$','rewriteDestinationPathForEngine','getProjectConfig','true','maka\x20g:route\x20todosIndex\x20todos','findGenerator','features','ssr','MasterLayout','\x22*\x22','private','map','fsi','41697660FEFOvA','const\x20publicRoutes\x20=\x20(<>','const\x20privateRoutes\x20=\x20(<>','injectAfterLineNumber','withValue','injectAtEndOfFile','imports','includes','constructor','root','search','join','baseDir','maka\x20g:route\x20usersShow\x20users/:id/show\x20--layout\x20userView','invoke','startup','<Route','layouts','length','\x0a\x09\x09','Could\x20not\x20find\x20a\x20suitable\x20location\x20to\x20enable\x20this\x20route.\x20\x20Please\x20inspect\x20','maka\x20g:route\x20pages/lists/listIndex\x20lists','1402182MYyvVF','pages','config','import\x20*\x20as\x20Component\x20from\x20\x27./templates\x27;','maka\x20g:route\x20todosEdit\x20todos/:id/edit','Invalid\x20directory\x20option\x20\x22','warn','only','page','error','engines','7644960hhTAPO','pathFromApp','react','client','76812aGdZWL','9JoxyBH','route/route.js'];a108c=function(){return I;};return a108c();}import{UsageError}from'../error.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['r'];Generator['create']({'name':'route','aliases':aliases,'validOpts':[a108z(0xe5),a108z(0xcc),a108z(0xba),'cwd',a108z(0xb5),a108z(0xf1),a108z(0xc7),'url',a108z(0xf4)],'usage':a108z(0xc8),'shortDesc':'Scaffolding\x20for\x20a\x20Route.','examples':[a108z(0xdf),a108z(0xb7),a108z(0xf5),a108z(0xb2),'maka\x20g:route\x20pages/about']},function(a,b){const A=a108z;try{const c=[A(0xcb),A(0xcf),A(0xb4),A(0xf9)];if(b['baseDir']&&!c[A(0xef)](b[A(0xf4)])){Log[A(0xbc)](A(0xb8)+b[A(0xf4)]+'\x22'),Log[A(0xbc)](A(0xd3)+c['join'](',\x20'));throw new UsageError();}const d=this[A(0xe7)][A(0xdd)]();this[A(0xe7)][A(0xec)](d,async()=>{const B=A,f=b[B(0xe5)]??![];let g=paramCase(a[0x0]),h='/'+g;a[B(0xfa)]>0x1&&(h='/'+a[B(0xd7)](function(n){return n!=='/';})[B(0xf3)]('/')[B(0xcd)]());g=camelCase(g);b[B(0xcc)]&&(b[B(0xcc)]=camelCase(b[B(0xcc)]));const i=b['baseDir']?B(0xd8)+b[B(0xf4)]:'/imports/ui/pages',j=a108e[B(0xf3)](i,b['dir'],g,paramCase(g)),k={'name':g,'fileCase':paramCase(g),'camelCaseName':camelCase(g),'url':h,'layout':b[B(0xcc)]||B(0xe3),'templatePath':j,'templateName':pascalCase(g),'client':d[B(0xbd)][B(0xc1)],'newForm':![],'withTranslations':d[B(0xe1)]['withTranslations']};f&&(k['layout']='PrivateLayout');if(!b[B(0xf1)]){const n=a108f[B(0xe0)](B(0xbb));n&&await n[B(0xf6)](a,b);}let l,m;if(d[B(0xbd)][B(0xc1)]===B(0xc0)){if(d['engines'][B(0xe2)]===B(0xde)){const r=this[B(0xe7)][B(0xbf)]({'pathParts':[B(0xee),B(0xf7),'lib',B(0xd1)]});l=this[B(0xe7)]['rewriteDestinationPathForEngine']({'pathParts':[r],'config':d});}else{const s=this['fsi']['pathFromApp']({'pathParts':[B(0xee),B(0xf7),'client',B(0xd1)]});l=this[B(0xe7)][B(0xdc)]({'pathParts':[s],'config':d});}const o=this[B(0xe7)][B(0xd9)](l)[B(0xe6)]((t,u)=>{const C=B;return t[C(0xef)](C(0xb6))?u+0x1:null;})[B(0xd7)](t=>t!==null);let p=this[B(0xe7)]['readFileLines'](l)['map']((t,u)=>{const D=B;return t[D(0xef)](D(0xe9))?u+0x1:null;})['filter'](t=>t!==null),q=this[B(0xe7)]['readFileLines'](l)[B(0xe6)]((t,u)=>{const E=B;return t['includes'](E(0xea))?u+0x1:null;})[B(0xd7)](t=>t!==null);p[B(0xfa)]>0x0&&q[B(0xfa)]>0x0&&(k['newForm']=!![]);m=this[B(0xe7)][B(0xd6)]({'srcPath':'route/route.js','framework':B(0xc0),'context':k,'config':d});if(p[B(0xfa)]>0x0||q['length']>0x0){this[B(0xe7)][B(0xeb)]({'filePath':l,'content':m,'lineNumber':o[0x0]});if(f&&q[B(0xfa)]>0x0)q=this['fsi'][B(0xd9)](l)[B(0xe6)]((t,u)=>{const F=B;return t[F(0xef)](F(0xea))?u+0x1:null;})[B(0xd7)](t=>t!==null),this['fsi'][B(0xeb)]({'filePath':l,'content':'\x09{'+k[B(0xd0)]+'}','lineNumber':q[0x0]});else p[B(0xfa)]>0x0?(p=this[B(0xe7)][B(0xd9)](l)['map']((t,u)=>{const G=B;return t['includes'](G(0xe9))?u+0x1:null;})['filter'](t=>t!==null),this[B(0xe7)][B(0xeb)]({'filePath':l,'content':'\x09{'+k[B(0xd0)]+'}','lineNumber':p[0x0]})):Log[B(0xb9)](B(0xb1)+l);}else{const t=this[B(0xe7)][B(0xd9)](l)['map'](w=>{const H=B;return w[H(0xef)](H(0xe4));}),u=t[B(0xca)](!![])>-0x1,v=u?B(0xf8):B(0xd4);this['fsi']['injectIntoFile']({'filePath':l,'content':B(0xfb)+m+B(0xfb),'begin':'<Router','end':v});}}else{if(d[B(0xbd)][B(0xc1)]===B(0xc5)){const w=this['fsi'][B(0xbf)]({'pathParts':['imports',B(0xf7),B(0xc1),B(0xd1)]});l=this[B(0xe7)]['rewriteDestinationPathForEngine']({'pathParts':[w],'config':d}),m=this[B(0xe7)][B(0xd6)]({'srcPath':B(0xc4),'context':k}),this[B(0xe7)][B(0xed)]({'filePath':l,'content':'\x0a'+m});}}});}catch(f){Log[A(0xbc)](f);}});
@@ -1 +1 @@
1
- const a109l=a109d;function a109d(a,b){const c=a109c();return a109d=function(d,e){d=d-0xce;let f=c[d];return f;},a109d(a,b);}(function(a,b){const j=a109d,c=a();while(!![]){try{const d=parseInt(j(0xd4))/0x1+parseInt(j(0xef))/0x2*(parseInt(j(0xe8))/0x3)+-parseInt(j(0xee))/0x4+-parseInt(j(0xd3))/0x5+parseInt(j(0xd2))/0x6*(-parseInt(j(0xd5))/0x7)+parseInt(j(0xe1))/0x8+-parseInt(j(0xe6))/0x9*(-parseInt(j(0xd6))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a109c,0xb76c3));const a109b=(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;};}()),a109a=a109b(this,function(){const k=a109d;return a109a[k(0xdc)]()[k(0xdb)](k(0xd7))[k(0xdc)]()[k(0xe0)](a109a)['search'](k(0xd7));});a109a();function a109c(){const o=['service/logger/logger.js','startup','1506568xSSaNk','2ZhwRBU','pathFromApp','create','engines','svc','winston','618438LwhSXn','1549995JlYXGb','87491XIeAsJ','98WJCdIc','30jsmcCY','(((.+)+)+)+$','maka\x20g:svc\x20logger','imports','type','search','toString','template','Installing\x20winston','installNpmPackage','constructor','3320008hHIQXU','getProjectConfig','logger','fsi','checkNpmPackage','5191893AdtOpA','services','1943517dOhewv','error','lib','resourceName'];a109c=function(){return o;};return a109c();}import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a109l(0xce)]({'name':'service','aliases':[a109l(0xd0)],'usage':'maka\x20{generate,\x20g}:{service}\x20[service-type]','shortDesc':'Generate\x20a\x20service\x20to\x20run\x20within\x20your\x20meteor\x20application.','validOpts':[a109l(0xda)],'validArgs':[a109l(0xe3)],'maxArgLength':0x1,'minArgLength':0x1,'examples':[a109l(0xd8)]},async function(a,b){const m=a109l;try{const c=this[m(0xe4)][m(0xe2)]();this[m(0xe4)]['withValue'](c,async()=>{const n=m,d=this[n(0xe4)][n(0xf0)]({}),f=paramCase(b[n(0xeb)]),g={'name':pascalCase(b['resourceName']),'fileName':f,'camelCase':camelCase(b[n(0xeb)]),'type':a[0x0],'engine':c['engines']['js'],'noRename':!![]};let h='js';c[n(0xcf)]['js']==='tsx'&&(h='ts');if(a[0x0]===n(0xe3)){!this['fsi'][n(0xe5)](n(0xd1))&&await this[n(0xe4)][n(0xdf)]('winston\x20setimmediate',{'cwd':d,'msg':n(0xde)});const i=this[n(0xe4)]['pathFromApp']({'pathParts':[n(0xd9),n(0xed),n(0xea),n(0xe7),f+'.'+h]});this[n(0xe4)][n(0xdd)]({'srcPath':n(0xec),'destPath':i,'context':g,'config':c});}});}catch(d){Log[m(0xe9)](d);}});
1
+ const a109l=a109d;(function(a,b){const j=a109d,c=a();while(!![]){try{const d=parseInt(j(0x1ef))/0x1+parseInt(j(0x1f1))/0x2+parseInt(j(0x1fa))/0x3+-parseInt(j(0x1f3))/0x4*(-parseInt(j(0x201))/0x5)+-parseInt(j(0x1fb))/0x6*(parseInt(j(0x1fd))/0x7)+-parseInt(j(0x1fc))/0x8*(parseInt(j(0x205))/0x9)+-parseInt(j(0x1f8))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a109c,0xdc7ad));const a109b=(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;};}()),a109a=a109b(this,function(){const k=a109d;return a109a[k(0x1f0)]()['search'](k(0x1f4))[k(0x1f0)]()[k(0x1ec)](a109a)['search'](k(0x1f4));});a109a();import{camelCase,paramCase,pascalCase}from'change-case';function a109c(){const o=['4HKoaAl','(((.+)+)+)+$','service','pathFromApp','fsi','2676940MFbOHI','lib','1188315KbRFqF','112950myJAwz','24QRiPnU','21HECNSt','installNpmPackage','Generate\x20a\x20service\x20to\x20run\x20within\x20your\x20meteor\x20application.','checkNpmPackage','5203490DSfyAe','winston\x20setimmediate','getProjectConfig','engines','5062401EybDQx','withValue','create','resourceName','tsx','logger','service/logger/logger.js','Installing\x20winston','maka\x20g:svc\x20logger','constructor','maka\x20{generate,\x20g}:{service}\x20[service-type]','error','1213690QugjAl','toString','528456ZuPicm','winston'];a109c=function(){return o;};return a109c();}function a109d(a,b){const c=a109c();return a109d=function(d,e){d=d-0x1e4;let f=c[d];return f;},a109d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a109l(0x1e5)]({'name':a109l(0x1f5),'aliases':['svc'],'usage':a109l(0x1ed),'shortDesc':a109l(0x1ff),'validOpts':['type'],'validArgs':[a109l(0x1e8)],'maxArgLength':0x1,'minArgLength':0x1,'examples':[a109l(0x1eb)]},async function(a,b){const m=a109l;try{const c=this['fsi'][m(0x203)]();this[m(0x1f7)][m(0x1e4)](c,async()=>{const n=m,d=this[n(0x1f7)]['pathFromApp']({}),f=paramCase(b[n(0x1e6)]),g={'name':pascalCase(b[n(0x1e6)]),'fileName':f,'camelCase':camelCase(b[n(0x1e6)]),'type':a[0x0],'engine':c[n(0x204)]['js'],'noRename':!![]};let h='js';c['engines']['js']===n(0x1e7)&&(h='ts');if(a[0x0]===n(0x1e8)){!this['fsi'][n(0x200)](n(0x1f2))&&await this[n(0x1f7)][n(0x1fe)](n(0x202),{'cwd':d,'msg':n(0x1ea)});const i=this[n(0x1f7)][n(0x1f6)]({'pathParts':['imports','startup',n(0x1f9),'services',f+'.'+h]});this['fsi']['template']({'srcPath':n(0x1e9),'destPath':i,'context':g,'config':c});}});}catch(d){Log[m(0x1ee)](d);}});
@@ -1 +1 @@
1
- (function(a,b){var f=a110d,c=a();while(!![]){try{var d=parseInt(f(0x1d5))/0x1+parseInt(f(0x1d8))/0x2+parseInt(f(0x1cf))/0x3+parseInt(f(0x1d4))/0x4*(-parseInt(f(0x1d3))/0x5)+-parseInt(f(0x1d9))/0x6*(parseInt(f(0x1d7))/0x7)+-parseInt(f(0x1d2))/0x8+parseInt(f(0x1ce))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a110c,0x18dca));var a110b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a110d;if(c){var e=c[g(0x1d1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a110a=a110b(this,function(){var h=a110d;return a110a['toString']()[h(0x1d0)](h(0x1da))[h(0x1cd)]()[h(0x1d6)](a110a)[h(0x1d0)](h(0x1da));});a110a();import'./translation.js';function a110c(){var i=['apply','1076656AoBdfG','1525cKZAtM','2564Lktgra','165266bCtPqG','constructor','655837axwmte','30568duBHDe','6CZwlJL','(((.+)+)+)+$','toString','1739097OJzrsr','455487INIxvN','search'];a110c=function(){return i;};return a110c();}function a110d(a,b){var c=a110c();return a110d=function(d,e){d=d-0x1cd;var f=c[d];return f;},a110d(a,b);}import'./openssl.js';
1
+ (function(a,b){var f=a110d,c=a();while(!![]){try{var d=parseInt(f(0x1c3))/0x1+-parseInt(f(0x1c9))/0x2+parseInt(f(0x1c4))/0x3+parseInt(f(0x1cd))/0x4*(parseInt(f(0x1ca))/0x5)+parseInt(f(0x1c5))/0x6+-parseInt(f(0x1cc))/0x7*(-parseInt(f(0x1c2))/0x8)+-parseInt(f(0x1c7))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a110c,0x7989e));function a110d(a,b){var c=a110c();return a110d=function(d,e){d=d-0x1c2;var f=c[d];return f;},a110d(a,b);}var a110b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a110d;if(c){var e=c[g(0x1c8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a110a=a110b(this,function(){var h=a110d;return a110a[h(0x1c6)]()['search'](h(0x1cb))['toString']()[h(0x1ce)](a110a)[h(0x1cf)](h(0x1cb));});function a110c(){var i=['apply','1567830MTdhCN','5xDULbq','(((.+)+)+)+$','7rbEYjm','2849068CghlkV','constructor','search','3920008rLZsDl','765746LsmSjC','1487649YXUiEX','633222DuCjwr','toString','11589273VsdhiG'];a110c=function(){return i;};return a110c();}a110a();import'./translation.js';import'./openssl.js';
@@ -1 +1 @@
1
- const a111l=a111d;function a111d(a,b){const c=a111c();return a111d=function(d,e){d=d-0x1b1;let f=c[d];return f;},a111d(a,b);}function a111c(){const o=['1431381cURElk','5VMkujy','search','getConfigPath','withValue','apply','20YbeBPf','_keys','maka\x20{generate,\x20g}:sslconfig','(((.+)+)+)+$','780dUxlwU','fsi','service','openssl/openssl.conf','3RHlEQm','293162eoTDwv','create','8yMfAYz','getGlobalConfig','38819fbycZM','maka\x20g:sslconfig\x20--env\x20dev','2381067qUIocl','1600916NYzEQE','template','1799454QnRsxA','env','sslconfig','486539kteXEA','openssl.conf'];a111c=function(){return o;};return a111c();}(function(a,b){const i=a111d,c=a();while(!![]){try{const d=parseInt(i(0x1ca))/0x1+-parseInt(i(0x1be))/0x2*(parseInt(i(0x1bd))/0x3)+parseInt(i(0x1c5))/0x4+-parseInt(i(0x1cd))/0x5*(parseInt(i(0x1c7))/0x6)+parseInt(i(0x1cc))/0x7*(parseInt(i(0x1c0))/0x8)+parseInt(i(0x1c4))/0x9*(-parseInt(i(0x1b5))/0xa)+parseInt(i(0x1c2))/0xb*(parseInt(i(0x1b9))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a111c,0x543bc));const a111b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a111d;if(c){const e=c[j(0x1b4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a111a=a111b(this,function(){const k=a111d;return a111a['toString']()[k(0x1b1)](k(0x1b8))['toString']()['constructor'](a111a)['search'](k(0x1b8));});a111a();import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';import a111e from'path';Generator[a111l(0x1bf)]({'name':a111l(0x1c9),'usage':a111l(0x1b7),'shortDesc':'Generate\x20a\x20new\x20openssl\x20config\x20file','noResource':!![],'requiredOpts':[a111l(0x1c8)],'examples':[a111l(0x1c3)],'validOpts':[a111l(0x1c8)]},async function(a,b){const m=a111l;try{const c=await this[m(0x1ba)]['getProjectConfig'](),d=await this[m(0x1ba)][m(0x1c1)](),f=this['fsi'][m(0x1b2)](b['env']),g=a111e['join'](f,m(0x1b6),m(0x1cb));await this[m(0x1ba)][m(0x1b3)](c,async()=>{const n=m,h={'app':d['appName'],'noRename':!![]};await this[n(0x1ba)][n(0x1c6)]({'srcPath':n(0x1bc),'destPath':g,'framework':n(0x1bb),'context':h,'config':c});});}catch(h){Log['error'](h);}});
1
+ function a111c(){const o=['_keys','maka\x20g:sslconfig\x20--env\x20dev','4bGXsHO','506851OyzzGa','17832640qftpcB','9560LqZZoj','Generate\x20a\x20new\x20openssl\x20config\x20file','7VeCRra','maka\x20{generate,\x20g}:sslconfig','apply','3987JWuXje','getGlobalConfig','1892922vzQgBD','fsi','toString','constructor','create','openssl/openssl.conf','getConfigPath','service','join','sslconfig','env','5722830Byjkjb','search','1838786idQIrE','withValue','(((.+)+)+)+$','8579802AgBYQr'];a111c=function(){return o;};return a111c();}const a111l=a111d;(function(a,b){const i=a111d,c=a();while(!![]){try{const d=parseInt(i(0x1ae))/0x1+parseInt(i(0x1a7))/0x2+-parseInt(i(0x19a))/0x3*(-parseInt(i(0x1ad))/0x4)+-parseInt(i(0x1a5))/0x5+parseInt(i(0x1aa))/0x6*(-parseInt(i(0x1b2))/0x7)+parseInt(i(0x1b0))/0x8*(-parseInt(i(0x1b5))/0x9)+parseInt(i(0x1af))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a111c,0xb3d34));const a111b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a111d;if(c){const e=c[j(0x1b4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a111a=a111b(this,function(){const k=a111d;return a111a[k(0x19c)]()[k(0x1a6)](k(0x1a9))['toString']()[k(0x19d)](a111a)[k(0x1a6)]('(((.+)+)+)+$');});a111a();import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';function a111d(a,b){const c=a111c();return a111d=function(d,e){d=d-0x199;let f=c[d];return f;},a111d(a,b);}import a111e from'path';Generator[a111l(0x19e)]({'name':a111l(0x1a3),'usage':a111l(0x1b3),'shortDesc':a111l(0x1b1),'noResource':!![],'requiredOpts':[a111l(0x1a4)],'examples':[a111l(0x1ac)],'validOpts':['env']},async function(a,b){const m=a111l;try{const c=await this[m(0x19b)]['getProjectConfig'](),d=await this['fsi'][m(0x199)](),f=this['fsi'][m(0x1a0)](b[m(0x1a4)]),g=a111e[m(0x1a2)](f,m(0x1ab),'openssl.conf');await this[m(0x19b)][m(0x1a8)](c,async()=>{const n=m,h={'app':d['appName'],'noRename':!![]};await this[n(0x19b)]['template']({'srcPath':n(0x19f),'destPath':g,'framework':n(0x1a1),'context':h,'config':c});});}catch(h){Log['error'](h);}});
@@ -1 +1 @@
1
- const a112z=a112d;(function(a,b){const x=a112d,c=a();while(!![]){try{const d=-parseInt(x(0xe1))/0x1+-parseInt(x(0xe3))/0x2*(parseInt(x(0xb1))/0x3)+-parseInt(x(0xc1))/0x4+parseInt(x(0xd8))/0x5+parseInt(x(0xbb))/0x6+parseInt(x(0xce))/0x7+-parseInt(x(0xaf))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a112c,0x62bf0));const a112b=(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;};}()),a112a=a112b(this,function(){const y=a112d;return a112a['toString']()[y(0xdd)](y(0xbd))[y(0xd1)]()[y(0xc7)](a112a)['search'](y(0xbd));});a112a();import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';function a112d(a,b){const c=a112c();return a112d=function(d,e){d=d-0xae;let f=c[d];return f;},a112d(a,b);}import a112e from'fs';Generator[a112z(0xdc)]({'name':a112z(0xb4),'usage':a112z(0xc5),'aliases':[a112z(0xd7)],'shortDesc':a112z(0xc9),'noResource':!![],'examples':[a112z(0xbc),'maka\x20g:translation\x20--lang=fr',a112z(0xcd)],'validOpts':[a112z(0xde)]},function(a,b){const A=a112z;try{const c=this[A(0xae)][A(0xe5)](),d=this[A(0xae)][A(0xc2)](),f=this['fsi'][A(0xe6)]();this[A(0xae)][A(0xe9)](c,()=>{const B=A;try{!b[B(0xde)]&&(b[B(0xde)]='en');!b[B(0xc6)]&&!this[B(0xae)][B(0xd0)]('i18next')&&(Log['warn']('Verifying\x20npm\x20package\x20requirements:\x20i18next\x20...'),this['fsi']['installNpmPackage'](B(0xbe),{'cwd':f}),this['fsi'][B(0xb6)](B(0xb5),!![]));const g=this[B(0xae)][B(0xe2)]({'pathParts':[B(0xdb),B(0xb9),'client','index.js']}),h=this[B(0xae)][B(0xe8)]({'pathParts':[g],'config':c}),i=this[B(0xae)][B(0xea)](a112e['readFileSync'](h)[B(0xd1)](),B(0xc3))[0x0]&&!![];if(c[B(0xd6)][B(0xb8)]===B(0xda)){!i&&this[B(0xae)]['injectAtBeginningOfFile']({'filePath':h,'content':B(0xb0)});const t=this[B(0xae)]['pathFromApp']({'pathParts':['imports',B(0xb9),'server',B(0xbf)]}),u=this['fsi'][B(0xe8)]({'pathParts':[t],'config':c}),v=this[B(0xae)]['grep'](a112e[B(0xd5)](u)['toString'](),B(0xc3))[0x0]&&!![];!v&&this[B(0xae)][B(0xcc)]({'filePath':u,'content':B(0xb0)});}else!i&&this[B(0xae)][B(0xcc)]({'filePath':h,'content':B(0xb0)});const j={'app':d['appName'],'config':c},k=this[B(0xae)][B(0xe2)]({'pathParts':[B(0xdb),B(0xb9),B(0xd4),B(0xc0),B(0xd3),B(0xe0)]}),l=this['fsi'][B(0xdf)](this[B(0xae)][B(0xe8)]({'pathParts':[k],'config':c}));!l&&this['fsi'][B(0xc4)]({'srcPath':B(0xb7),'destPath':k,'framework':B(0xe7),'context':j,'config':c});const m=this['fsi']['pathFromApp']({'pathParts':['imports',B(0xb9),'lib',B(0xc0),B(0xd3),B(0xba),b['lang']+B(0xe4)]}),n=this['fsi']['rewriteDestinationPathForEngine']({'pathParts':[m],'config':c}),o=this['fsi'][B(0xdf)](n);!o?this['fsi'][B(0xc4)]({'srcPath':B(0xb2),'destPath':m,'framework':B(0xe7),'context':j,'config':c}):Log[B(0xc8)](B(0xd2)+n);const p=this['fsi'][B(0xe2)]({'pathParts':['imports',B(0xb9),B(0xd4),'services',B(0xd3),B(0xba),B(0xcb)+c[B(0xd6)]['js']]}),q=this[B(0xae)][B(0xe8)]({'pathParts':[p],'config':c}),r=this[B(0xae)][B(0xdf)](q);!r&&this[B(0xae)]['template']({'srcPath':'i18n/index.js','destPath':p,'framework':B(0xe7),'context':j,'config':c});const s=this[B(0xae)]['grep'](a112e[B(0xd5)](p)[B(0xd1)](),'default\x20as\x20'+b['lang'])[0x0]&&!![];!s?this['fsi']['injectAtEndOfFile']({'filePath':p,'content':B(0xeb)+b[B(0xde)]+B(0xcf)+b[B(0xde)]+'\x27;'}):Log['warn'](B(0xca)+p);}catch(w){Log['error'](w),process[B(0xb3)](0x1);}});}catch(g){Log[A(0xd9)](g),process['exit'](0x1);}});function a112c(){const C=['.js','getProjectConfig','findAppDirectory','service','rewriteDestinationPathForEngine','withValue','grep','export\x20{\x20default\x20as\x20','fsi','1139832sytBSI','import\x20\x27../lib/services/translations/i18n\x27;\x0a','1926189yrancp','i18n/locales.js','exit','translation','features.withTranslations','setProjectConfig','i18n/i18n.js','ssr','startup','locales','2554374lOblkx','maka\x20g:translation\x20--lang=en\x20(default)','(((.+)+)+)+$','i18next\x20i18next-browser-languagedetector\x20react-i18next','index.js','services','1175828vjWIwE','getGlobalConfig','import\x20\x27../lib/services/translations/i18n\x27;','template','maka\x20{generate,\x20g}:translation\x20--lang=<language>','root','constructor','warn','Generate\x20a\x20new\x20locale\x20translation','Locale\x20already\x20exported:\x20','index.','injectAtBeginningOfFile','maka\x20g:translation\x20--lang=de','5191816iRvjli','\x20}\x20from\x20\x27./','checkNpmPackage','toString','Locale\x20already\x20defined:\x20','translations','lib','readFileSync','engines','i18n','3900775VmSDIy','error','true','imports','create','search','lang','isFile','i18n.js','464609yeeSOo','pathFromApp','2SXCxrj'];a112c=function(){return C;};return a112c();}
1
+ const a112z=a112d;(function(a,b){const x=a112d,c=a();while(!![]){try{const d=parseInt(x(0x1ac))/0x1+-parseInt(x(0x1bd))/0x2+-parseInt(x(0x18b))/0x3*(parseInt(x(0x1af))/0x4)+-parseInt(x(0x198))/0x5*(parseInt(x(0x1b7))/0x6)+-parseInt(x(0x1a8))/0x7*(-parseInt(x(0x1b0))/0x8)+parseInt(x(0x193))/0x9*(parseInt(x(0x1ae))/0xa)+parseInt(x(0x196))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a112c,0x2313b));function a112d(a,b){const c=a112c();return a112d=function(d,e){d=d-0x182;let f=c[d];return f;},a112d(a,b);}const a112b=(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;};}()),a112a=a112b(this,function(){const y=a112d;return a112a['toString']()[y(0x1bc)](y(0x19d))[y(0x191)]()[y(0x19c)](a112a)[y(0x1bc)]('(((.+)+)+)+$');});a112a();import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';import a112e from'fs';Generator[a112z(0x18e)]({'name':a112z(0x1a2),'usage':a112z(0x184),'aliases':[a112z(0x19a)],'shortDesc':a112z(0x19f),'noResource':!![],'examples':['maka\x20g:translation\x20--lang=en\x20(default)',a112z(0x18d),a112z(0x1ba)],'validOpts':[a112z(0x199)]},function(a,b){const A=a112z;try{const c=this[A(0x182)]['getProjectConfig'](),d=this[A(0x182)][A(0x1ab)](),f=this[A(0x182)]['findAppDirectory']();this[A(0x182)]['withValue'](c,()=>{const B=A;try{!b[B(0x199)]&&(b['lang']='en');!b[B(0x1b4)]&&!this[B(0x182)][B(0x1b2)](B(0x19b))&&(Log[B(0x183)](B(0x195)),this[B(0x182)][B(0x188)](B(0x1a6),{'cwd':f}),this[B(0x182)][B(0x1a3)]('features.withTranslations',!![]));const g=this[B(0x182)][B(0x186)]({'pathParts':[B(0x1c2),B(0x1a0),B(0x190),B(0x1a7)]}),h=this[B(0x182)][B(0x18c)]({'pathParts':[g],'config':c}),i=this['fsi']['grep'](a112e[B(0x1b5)](h)['toString'](),B(0x1b6))[0x0]&&!![];if(c[B(0x1aa)][B(0x1c3)]==='true'){!i&&this[B(0x182)][B(0x18f)]({'filePath':h,'content':'import\x20\x27../lib/services/translations/i18n\x27;\x0a'});const t=this[B(0x182)][B(0x186)]({'pathParts':['imports',B(0x1a0),B(0x1c1),B(0x1a7)]}),u=this['fsi'][B(0x18c)]({'pathParts':[t],'config':c}),v=this[B(0x182)][B(0x189)](a112e[B(0x1b5)](u)[B(0x191)](),B(0x1b6))[0x0]&&!![];!v&&this[B(0x182)][B(0x18f)]({'filePath':u,'content':B(0x1b8)});}else!i&&this[B(0x182)][B(0x18f)]({'filePath':h,'content':B(0x1b8)});const j={'app':d[B(0x197)],'config':c},k=this[B(0x182)]['pathFromApp']({'pathParts':[B(0x1c2),B(0x1a0),'lib','services',B(0x1a9),B(0x185)]}),l=this[B(0x182)][B(0x1c4)](this['fsi'][B(0x18c)]({'pathParts':[k],'config':c}));!l&&this[B(0x182)][B(0x1a5)]({'srcPath':B(0x1ad),'destPath':k,'framework':B(0x1b3),'context':j,'config':c});const m=this[B(0x182)][B(0x186)]({'pathParts':[B(0x1c2),B(0x1a0),B(0x1b9),'services','translations',B(0x194),b[B(0x199)]+'.js']}),n=this[B(0x182)][B(0x18c)]({'pathParts':[m],'config':c}),o=this['fsi'][B(0x1c4)](n);!o?this[B(0x182)][B(0x1a5)]({'srcPath':B(0x18a),'destPath':m,'framework':B(0x1b3),'context':j,'config':c}):Log['warn'](B(0x19e)+n);const p=this[B(0x182)][B(0x186)]({'pathParts':['imports',B(0x1a0),B(0x1b9),B(0x192),B(0x1a9),B(0x194),B(0x1bf)+c['engines']['js']]}),q=this[B(0x182)]['rewriteDestinationPathForEngine']({'pathParts':[p],'config':c}),r=this[B(0x182)][B(0x1c4)](q);!r&&this['fsi'][B(0x1a5)]({'srcPath':B(0x187),'destPath':p,'framework':B(0x1b3),'context':j,'config':c});const s=this['fsi']['grep'](a112e[B(0x1b5)](p)[B(0x191)](),B(0x1bb)+b[B(0x199)])[0x0]&&!![];!s?this[B(0x182)][B(0x1a1)]({'filePath':p,'content':B(0x1b1)+b[B(0x199)]+'\x20}\x20from\x20\x27./'+b[B(0x199)]+'\x27;'}):Log[B(0x183)](B(0x1a4)+p);}catch(w){Log[B(0x1c0)](w),process['exit'](0x1);}});}catch(g){Log[A(0x1c0)](g),process[A(0x1be)](0x1);}});function a112c(){const C=['i18next\x20i18next-browser-languagedetector\x20react-i18next','index.js','98LywMPY','translations','engines','getGlobalConfig','161858sAIFoU','i18n/i18n.js','36920OJKtTz','4nhBcFO','27344jrrzeR','export\x20{\x20default\x20as\x20','checkNpmPackage','service','root','readFileSync','import\x20\x27../lib/services/translations/i18n\x27;','121314RQrGJf','import\x20\x27../lib/services/translations/i18n\x27;\x0a','lib','maka\x20g:translation\x20--lang=de','default\x20as\x20','search','198564IqJFym','exit','index.','error','server','imports','ssr','isFile','fsi','warn','maka\x20{generate,\x20g}:translation\x20--lang=<language>','i18n.js','pathFromApp','i18n/index.js','installNpmPackage','grep','i18n/locales.js','34107kgwRyy','rewriteDestinationPathForEngine','maka\x20g:translation\x20--lang=fr','create','injectAtBeginningOfFile','client','toString','services','423mwnjos','locales','Verifying\x20npm\x20package\x20requirements:\x20i18next\x20...','1473329kuuCfm','appName','65ISCZgN','lang','i18n','i18next','constructor','(((.+)+)+)+$','Locale\x20already\x20defined:\x20','Generate\x20a\x20new\x20locale\x20translation','startup','injectAtEndOfFile','translation','setProjectConfig','Locale\x20already\x20exported:\x20','template'];a112c=function(){return C;};return a112c();}