zmp-cli 3.15.14 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/build/index.js +1 -1
  2. package/config/index.js +1 -1
  3. package/create/index.js +1 -1
  4. package/create/utils/generate-app-config.js +1 -1
  5. package/create/utils/generate-npm-scripts.js +1 -1
  6. package/create/utils/get-options.js +1 -1
  7. package/create/utils/npm-scripts.js +1 -1
  8. package/deploy/index.js +1 -1
  9. package/deploy/utils/get-options.js +1 -1
  10. package/index.js +1 -1
  11. package/login/index.js +1 -1
  12. package/login/utils/get-options.js +1 -1
  13. package/login/utils/zalo-login.js +1 -1
  14. package/migrate/icons/update-icon-v3.js +1 -1
  15. package/migrate/index.js +1 -1
  16. package/migrate/utils/get-options.js +1 -1
  17. package/migrate/utils/migrate-react.js +1 -1
  18. package/package.json +3 -3
  19. package/start/index.js +1 -1
  20. package/sync/index-to-app-config.js +1 -1
  21. package/sync/index.js +1 -1
  22. package/utils/axios.js +1 -1
  23. package/utils/check-update.js +1 -1
  24. package/utils/constants.js +1 -1
  25. package/utils/env.js +1 -1
  26. package/utils/error.js +1 -1
  27. package/utils/find-files-by-ext.js +1 -1
  28. package/utils/find-free-port.js +1 -1
  29. package/utils/fs-extra.js +1 -1
  30. package/utils/generate-pages-map.js +1 -1
  31. package/utils/get-app-info.js +1 -1
  32. package/utils/get-current-project.js +1 -1
  33. package/utils/get-ip.js +1 -1
  34. package/utils/get-latest-version.js +1 -1
  35. package/utils/log.js +1 -1
  36. package/utils/node-blob.js +1 -1
  37. package/utils/resumable.d.js +1 -1
  38. package/utils/resumable.js +1 -1
  39. package/utils/spinner.js +1 -1
  40. package/utils/tunnel.js +1 -1
  41. package/deploy/utils/request-upload.js +0 -1
  42. package/deploy/utils/upload-app.js +0 -1
package/build/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';function _0x440a(_0x364ae2,_0x1b692f){const _0x4f862f=_0x4f86();return _0x440a=function(_0x440a01,_0x1d41fb){_0x440a01=_0x440a01-0x1c3;let _0x48ae66=_0x4f862f[_0x440a01];return _0x48ae66;},_0x440a(_0x364ae2,_0x1b692f);}function _0x4f86(){const _0x4e28d2=['7512tENmdc','latestVersion','getEnv','@rollup/plugin-replace','gray','363184vWYWan','../config','join','yellow','Building\x20development\x20version...','stringify','../utils/error','363702UBArMb','appConfigJson','NODE_ENV','../utils/fs-extra','default','error','937137rLfrol','@rollup/plugin-dynamic-import-vars','production','655ajEybX','42GxtYrD','zmp-framework','zmp-cli-core','appConfig','appId','bold','filename','Building\x20for\x20production...','statusDone','text','../utils/get-latest-version','278549tfNHpP','Build\x20Done!\x0a','exports','mode','8073216kPASfl','ora','statusError','Warning:\x20This\x20CLI\x20version\x20will\x20work\x20better\x20with\x20zmp-framework\x20version\x201.5.0\x20or\x20higher','statusStart','env','851940RmhxcB','writeFileSync','path','www','nextVersion','start'];_0x4f86=function(){return _0x4e28d2;};return _0x4f86();}const _0x46878a=_0x440a;(function(_0x4cbca6,_0x436ccd){const _0x355188=_0x440a,_0x29c4cb=_0x4cbca6();while(!![]){try{const _0x4d479a=-parseInt(_0x355188(0x1c7))/0x1+parseInt(_0x355188(0x1d1))/0x2+parseInt(_0x355188(0x1e9))/0x3+-parseInt(_0x355188(0x1d7))/0x4*(-parseInt(_0x355188(0x1ec))/0x5)+parseInt(_0x355188(0x1e3))/0x6*(parseInt(_0x355188(0x1ed))/0x7)+parseInt(_0x355188(0x1dc))/0x8+-parseInt(_0x355188(0x1cb))/0x9;if(_0x4d479a===_0x436ccd)break;else _0x29c4cb['push'](_0x29c4cb['shift']());}catch(_0x424e3c){_0x29c4cb['push'](_0x29c4cb['shift']());}}}(_0x4f86,0x35326));const e=require('chalk'),r=require(_0x46878a(0x1cc)),t=require(_0x46878a(0x1d3)),i=require(_0x46878a(0x1ea))[_0x46878a(0x1e7)],o=require(_0x46878a(0x1da)),{buildApp:n}=require(_0x46878a(0x1ef)),u=require(_0x46878a(0x1e6)),a=require('../utils/env'),{errorExit:s}=require(_0x46878a(0x1e2)),l=require(_0x46878a(0x1dd)),p=require('../utils/generate-pages-map'),{existsSync:g}=require('fs'),c=require(_0x46878a(0x1c6)),w=a[_0x46878a(0x1d9)](_0x46878a(0x1e5))||_0x46878a(0x1eb),d=e[_0x46878a(0x1db)]('Building...\x20(Please\x20wait,\x20it\x20can\x20take\x20a\x20while)'),m=e[_0x46878a(0x1df)](_0x46878a(0x1ce)),f=r(_0x46878a(0x1eb)===w?_0x46878a(0x1c3):_0x46878a(0x1e0));module[_0x46878a(0x1c9)]=async(_0xcb3bb2={},_0x1c8b34)=>{const _0x4271b8=_0x46878a;let _0x5d8193=_0xcb3bb2['cwd']||process['cwd'](),_0x28f604=_0x3d8b14=>t[_0x4271b8(0x1de)](_0x5d8193,_0x3d8b14),_0x4d1e20=_0xcb3bb2[_0x4271b8(0x1e4)]||require(_0x28f604(l[_0x4271b8(0x1f3)][_0x4271b8(0x1f0)]));_0x1c8b34||(_0x1c8b34={'statusStart'(){},'statusDone'(){},'statusError'(){},'text'(){},'error'(){}}),g(t[_0x4271b8(0x1de)](_0x5d8193,'node_modules',_0x4271b8(0x1ee)))&&_0x1c8b34['text'](m),f[_0x4271b8(0x1d6)](),_0x1c8b34[_0x4271b8(0x1cf)](d);try{let _0x68c02c=a['getEnv'](l[_0x4271b8(0x1d0)][_0x4271b8(0x1f1)]),_0x3fcdae=_0xcb3bb2[_0x4271b8(0x1d5)];if(!_0x3fcdae){let _0x46bd20=await c(_0x68c02c,_0xcb3bb2),_0x39c8e4=_0x46bd20&&_0x46bd20[_0x4271b8(0x1d8)]&&Number(_0x46bd20[_0x4271b8(0x1d8)]);null==_0x39c8e4&&(_0x39c8e4=0x0),_0x3fcdae=_0x39c8e4+0x1;}let {appConfigJson:_0x323e56}=await n({'cwd':_0x5d8193,'mode':_0xcb3bb2[_0x4271b8(0x1ca)]||w,'appId':_0x68c02c,'nextVersion':_0x3fcdae,'appConfig':_0x4d1e20,'outDir':_0x4271b8(0x1d4),'vite2RollupPlugins':[o({'values':{'ZMP_IMPORT_PAGES':()=>p(_0x5d8193)}}),i({'warnOnError':!0x0})],'customLogger':{'info':_0x1c8b34[_0x4271b8(0x1c5)],'warn':_0x1c8b34[_0x4271b8(0x1c5)],'warnOnce':_0x1c8b34['text'],'error':_0x1c8b34[_0x4271b8(0x1e8)]}});return _0x323e56&&u[_0x4271b8(0x1d2)](_0x28f604('www/'+l[_0x4271b8(0x1f3)][_0x4271b8(0x1f0)]),JSON[_0x4271b8(0x1e1)](_0x323e56)),_0x1c8b34[_0x4271b8(0x1c4)](''+e[_0x4271b8(0x1f2)]['green'](_0x4271b8(0x1c8))),_0x323e56;}catch(_0xc907b3){_0x1c8b34[_0x4271b8(0x1cd)]('Error\x20building\x20project'),s(_0xc907b3);return;}};
1
+ 'use strict';const _0x2ae510=_0x46b9;(function(_0x50a0df,_0x116558){const _0x159318=_0x46b9,_0x16f8c4=_0x50a0df();while(!![]){try{const _0x25b435=-parseInt(_0x159318(0x171))/0x1*(-parseInt(_0x159318(0x173))/0x2)+parseInt(_0x159318(0x19f))/0x3*(parseInt(_0x159318(0x18f))/0x4)+-parseInt(_0x159318(0x192))/0x5*(-parseInt(_0x159318(0x19c))/0x6)+-parseInt(_0x159318(0x18c))/0x7*(-parseInt(_0x159318(0x17d))/0x8)+parseInt(_0x159318(0x194))/0x9+parseInt(_0x159318(0x19e))/0xa*(-parseInt(_0x159318(0x176))/0xb)+-parseInt(_0x159318(0x19b))/0xc*(parseInt(_0x159318(0x189))/0xd);if(_0x25b435===_0x116558)break;else _0x16f8c4['push'](_0x16f8c4['shift']());}catch(_0x273159){_0x16f8c4['push'](_0x16f8c4['shift']());}}}(_0x1f91,0xbad10));function _0x1f91(){const _0x473d67=['env','appConfig','Warning:\x20This\x20CLI\x20version\x20will\x20work\x20better\x20with\x20zmp-framework\x20version\x201.5.0\x20or\x20higher','appConfigJson','13ukIbFV','error_msg','statusStart','571669JTmpxg','error','Building\x20for\x20production...\x20','245572IcwqkB','NODE_ENV','bold','25hCXOLt','statusError','13368645bFCeyj','../utils/generate-pages-map','exports','yellow','Build\x20Done!\x20✅','node_modules','join','41993616AlHzUP','1347078UIqHtX','production','14290mozhvM','45igvRIf','../config','latestVersion','NODE_TLS_REJECT_UNAUTHORIZED','1BaLtlR','zmp-framework','2700118WpLGSV','www','cwd','5357YayvPM','path','getEnv','default','filename','@rollup/plugin-dynamic-import-vars','../utils/error','8UbnPRa','www/','text','green','nextVersion','versionStatus','zmp-cli-core','mode'];_0x1f91=function(){return _0x473d67;};return _0x1f91();}function _0x46b9(_0x481264,_0x1c0d6f){const _0x1f9180=_0x1f91();return _0x46b9=function(_0x46b97e,_0x477d9c){_0x46b97e=_0x46b97e-0x16f;let _0x2c5d79=_0x1f9180[_0x46b97e];return _0x2c5d79;},_0x46b9(_0x481264,_0x1c0d6f);}const e=require('chalk'),r=require(_0x2ae510(0x177)),t=require(_0x2ae510(0x17b))[_0x2ae510(0x179)],i=require('@rollup/plugin-replace'),{buildApp:o}=require(_0x2ae510(0x183)),n=require('../utils/fs-extra'),s=require('../utils/env'),{errorExit:a}=require(_0x2ae510(0x17c)),u=require(_0x2ae510(0x1a0)),l=require(_0x2ae510(0x195)),{existsSync:p}=require('fs'),g=require('../utils/get-latest-version'),c=s[_0x2ae510(0x178)](_0x2ae510(0x190))||'production',w=e['gray']('(Please\x20wait,\x20it\x20can\x20take\x20a\x20while)'),d=e[_0x2ae510(0x197)](_0x2ae510(0x187));module[_0x2ae510(0x196)]=async(_0x43023c={},_0x27194d)=>{const _0x290d34=_0x2ae510;_0x27194d||(_0x27194d={'statusStart'(){},'statusDone'(){},'statusError'(){},'text'(){},'error'(){}}),_0x27194d[_0x290d34(0x18b)]((_0x290d34(0x19d)===c?_0x290d34(0x18e):'Building\x20development\x20version...\x20')+w),process[_0x290d34(0x185)][_0x290d34(0x170)]='1';let _0x5e5591=_0x43023c[_0x290d34(0x175)]||process['cwd'](),_0x3a110b=_0x2d1cfa=>r[_0x290d34(0x19a)](_0x5e5591,_0x2d1cfa),_0x405c3a=_0x43023c['appConfigJson']||require(_0x3a110b(u['filename'][_0x290d34(0x186)]));p(r['join'](_0x5e5591,_0x290d34(0x199),_0x290d34(0x172)))&&_0x27194d[_0x290d34(0x17f)](d);try{let _0x4facb5,_0x419d1c=s[_0x290d34(0x178)](u['env']['appId']);if(!_0x419d1c)throw Error(u[_0x290d34(0x18a)]['permission_denied']);let _0x5e3b77=_0x43023c[_0x290d34(0x181)];if(!_0x5e3b77){let _0x21ae62=await g(_0x419d1c),_0x3b69d5=_0x21ae62&&_0x21ae62[_0x290d34(0x16f)]&&Number(_0x21ae62[_0x290d34(0x16f)]);null==_0x3b69d5&&(_0x3b69d5=0x0);}let _0x6997ba=await o({'cwd':_0x5e5591,'mode':_0x43023c[_0x290d34(0x184)]||c,'appId':_0x419d1c,'nextVersion':_0x5e3b77,'currentVersion':_0x4facb5,'target':_0x43023c[_0x290d34(0x182)]??0x2,'appConfig':_0x405c3a,'outDir':_0x290d34(0x174),'vite2RollupPlugins':[i({'values':{'ZMP_IMPORT_PAGES':()=>l(_0x5e5591)}}),t({'warnOnError':!0x0})],'customLogger':{'info':_0x27194d[_0x290d34(0x17f)],'warn':_0x27194d[_0x290d34(0x17f)],'warnOnce':_0x27194d['text'],'error':_0x27194d[_0x290d34(0x18d)]}});return _0x6997ba&&_0x6997ba[_0x290d34(0x188)]&&n['writeFileSync'](_0x3a110b(_0x290d34(0x17e)+u[_0x290d34(0x17a)][_0x290d34(0x186)]),JSON['stringify'](_0x6997ba[_0x290d34(0x188)])),_0x27194d['statusDone'](''+e[_0x290d34(0x191)][_0x290d34(0x180)](_0x290d34(0x198))),_0x6997ba?.[_0x290d34(0x188)];}catch(_0x2fbcc6){_0x27194d[_0x290d34(0x193)]('Error\x20building\x20project'),a(_0x2fbcc6);return;}};
package/config/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';var _0x5d4850=_0x4a67;(function(_0x505acb,_0x20e8cf){var _0x457bc9=_0x4a67,_0x2e9cb4=_0x505acb();while(!![]){try{var _0x24eaf7=parseInt(_0x457bc9(0x1ab))/0x1+parseInt(_0x457bc9(0x19b))/0x2+-parseInt(_0x457bc9(0x198))/0x3+-parseInt(_0x457bc9(0x1a7))/0x4+parseInt(_0x457bc9(0x1aa))/0x5*(-parseInt(_0x457bc9(0x1a2))/0x6)+-parseInt(_0x457bc9(0x1a8))/0x7+parseInt(_0x457bc9(0x199))/0x8*(parseInt(_0x457bc9(0x1ac))/0x9);if(_0x24eaf7===_0x20e8cf)break;else _0x2e9cb4['push'](_0x2e9cb4['shift']());}catch(_0x4a858c){_0x2e9cb4['push'](_0x2e9cb4['shift']());}}}(_0x1535,0x8603b));function _0x4a67(_0x3659dd,_0x818ece){var _0x15353a=_0x1535();return _0x4a67=function(_0x4a6781,_0x5501b0){_0x4a6781=_0x4a6781-0x196;var _0x1f62c0=_0x15353a[_0x4a6781];return _0x1f62c0;},_0x4a67(_0x3659dd,_0x818ece);}module[_0x5d4850(0x196)]={'filename':{'appConfig':'app-config.json','zmpConfig':_0x5d4850(0x1a1),'packageJson':_0x5d4850(0x197)},'api_domain':_0x5d4850(0x1a6),'zdn_url':'//h5.zdn.vn/zapps/','path':{'login':'admin/login','requestLogin':_0x5d4850(0x19a),'checkLoginStatus':_0x5d4850(0x19c),'uploadAppByChunk':'app/upload-chunk','requestUploadResumable':_0x5d4850(0x1a9),'getAppInfo':'app/get-info','getLatestVersion':_0x5d4850(0x19f)},'dirname':__dirname,'root_env':()=>process[_0x5d4850(0x19e)]()+_0x5d4850(0x1a5),'env':{'appId':'APP_ID','token':_0x5d4850(0x19d)},'error_code':{'app_config_not_found':-0x578,'permission_denied':-0x7d1,'request_timeout':-0x7d3},'error_msg':{'app_config_not_found':'App\x20config\x20not\x20found.\x20Please\x20re-init\x20project.\x20(Tips:\x20Run\x20\x27zmp\x20init\x27)','permission_denied':_0x5d4850(0x1a0),'request_timeout':_0x5d4850(0x1a4)},'resumable_option':{'chunkSize':0x7d000,'simultaneousUploads':0x4,'testChunks':!0x0,'throttleProgressCallbacks':0x1,'method':_0x5d4850(0x1a3),'forceChunkSize':!0x1}};function _0x1535(){var _0xe685a4=['2738331usqINE','14256jeURYO','admin/request-login','1933396BtQQaR','admin/get-login-status','ZMP_TOKEN','cwd','dev-tools/app/get-info','Permission\x20denied.\x20Please\x20login\x20again.\x20(Tips:\x20Run\x20\x27zmp\x20login\x27)','zmp-cli.json','33912cAnSaz','octet','Request\x20Timeout','/.env','https://zmp-api.developers.zalo.me/','1339880uqToPF','729624hRTAxk','app/request-upload','945EKHSnh','535846ajymGt','7407qrSMpV','exports','package.json'];_0x1535=function(){return _0xe685a4;};return _0x1535();}
1
+ 'use strict';function _0x13b8(_0x3d8497,_0x1a037f){var _0x29a6e5=_0x29a6();return _0x13b8=function(_0x13b8c5,_0xbf779c){_0x13b8c5=_0x13b8c5-0x16a;var _0x23b581=_0x29a6e5[_0x13b8c5];return _0x23b581;},_0x13b8(_0x3d8497,_0x1a037f);}var _0x5d54c1=_0x13b8;function _0x29a6(){var _0x13a545=['//h5.zdn.vn/zapps/','Permission\x20denied.\x20Please\x20login\x20again.\x20(Tips:\x20Run\x20\x27zmp\x20login\x27)','cwd','172aaQCsw','971353GRBeuZ','Request\x20Timeout','2gvZMDY','App\x20config\x20not\x20found.\x20Please\x20re-init\x20project.\x20(Tips:\x20Run\x20\x27zmp\x20init\x27)','admin/request-login','dev-tools/app/get-info','APP_ID','zmp-cli.json','app/upload-chunk','package.json','4112871EpLESL','ZMP_TOKEN','5144ItSrRO','3115atkZsV','7091091SMLuyW','10321870ZxXGEE','app-config.json','app/get-info','6218664zFieWr','exports','/.env','93935VUndGM','11vCReIt','app/request-upload'];_0x29a6=function(){return _0x13a545;};return _0x29a6();}(function(_0xe5eadd,_0x9c6450){var _0x452e03=_0x13b8,_0x2c13da=_0xe5eadd();while(!![]){try{var _0x9873ae=-parseInt(_0x452e03(0x17f))/0x1*(parseInt(_0x452e03(0x181))/0x2)+parseInt(_0x452e03(0x16d))/0x3+-parseInt(_0x452e03(0x17e))/0x4*(-parseInt(_0x452e03(0x178))/0x5)+parseInt(_0x452e03(0x175))/0x6+parseInt(_0x452e03(0x170))/0x7*(parseInt(_0x452e03(0x16f))/0x8)+-parseInt(_0x452e03(0x171))/0x9+parseInt(_0x452e03(0x172))/0xa*(-parseInt(_0x452e03(0x179))/0xb);if(_0x9873ae===_0x9c6450)break;else _0x2c13da['push'](_0x2c13da['shift']());}catch(_0x2c2df2){_0x2c13da['push'](_0x2c13da['shift']());}}}(_0x29a6,0xad532));module[_0x5d54c1(0x176)]={'filename':{'appConfig':_0x5d54c1(0x173),'zmpConfig':_0x5d54c1(0x16a),'packageJson':_0x5d54c1(0x16c)},'api_domain':'https://zmp-api.developers.zalo.me/','zdn_url':_0x5d54c1(0x17b),'path':{'login':'admin/login','requestLogin':_0x5d54c1(0x183),'checkLoginStatus':'admin/get-login-status','uploadAppByChunk':_0x5d54c1(0x16b),'requestUploadResumable':_0x5d54c1(0x17a),'getAppInfo':_0x5d54c1(0x174),'getLatestVersion':_0x5d54c1(0x184)},'dirname':__dirname,'root_env':()=>process[_0x5d54c1(0x17d)]()+_0x5d54c1(0x177),'env':{'appId':_0x5d54c1(0x185),'token':_0x5d54c1(0x16e)},'error_code':{'app_config_not_found':-0x578,'permission_denied':-0x7d1,'request_timeout':-0x7d3},'error_msg':{'app_config_not_found':_0x5d54c1(0x182),'permission_denied':_0x5d54c1(0x17c),'request_timeout':_0x5d54c1(0x180)},'resumable_option':{'chunkSize':0x7d000,'simultaneousUploads':0x4,'testChunks':!0x0,'throttleProgressCallbacks':0x1,'method':'octet','forceChunkSize':!0x1}};
package/create/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x4f7a58=_0x47e7;(function(_0x429f98,_0x247a82){const _0x353c90=_0x47e7,_0xe95f8a=_0x429f98();while(!![]){try{const _0x266d6e=-parseInt(_0x353c90(0x19e))/0x1+parseInt(_0x353c90(0x19b))/0x2+parseInt(_0x353c90(0x188))/0x3*(-parseInt(_0x353c90(0x172))/0x4)+-parseInt(_0x353c90(0x175))/0x5+parseInt(_0x353c90(0x171))/0x6+parseInt(_0x353c90(0x16e))/0x7*(-parseInt(_0x353c90(0x186))/0x8)+-parseInt(_0x353c90(0x176))/0x9*(-parseInt(_0x353c90(0x19f))/0xa);if(_0x266d6e===_0x247a82)break;else _0xe95f8a['push'](_0xe95f8a['shift']());}catch(_0x50612e){_0xe95f8a['push'](_0xe95f8a['shift']());}}}(_0x2851,0xd694e));function _0x47e7(_0x559cef,_0x131ffa){const _0x2851cb=_0x2851();return _0x47e7=function(_0x47e735,_0x2b92c4){_0x47e735=_0x47e735-0x16c;let _0x1e8dc9=_0x2851cb[_0x47e735];return _0x1e8dc9;},_0x47e7(_0x559cef,_0x131ffa);}const e=require('exec-sh'),t=require('path'),n=require('chalk'),r=require(_0x4f7a58(0x19a)),{initProject:i}=require(_0x4f7a58(0x17e)),o=require('../utils/fs-extra'),{errorExit:s}=require(_0x4f7a58(0x196)),a=require(_0x4f7a58(0x19d)),c=require(_0x4f7a58(0x177)),l=require(_0x4f7a58(0x193)),{renameSync:u,existsSync:p}=require('fs'),d=n[_0x4f7a58(0x17b)](_0x4f7a58(0x17d));async function f(_0x21ed38,_0x50623f){const _0x4c41ab=_0x4f7a58;_0x50623f[_0x4c41ab(0x170)](_0x4c41ab(0x184));try{let {cwd:_0x56d287,template:_0x5444b9,folderName:_0x5e4aa4,name:_0x4979de}=_0x21ed38;await i({'cwd':_0x56d287,'template':_0x5444b9,'folderName':_0x5e4aa4,'projectName':_0x4979de});}catch(_0x26341a){_0x50623f[_0x4c41ab(0x17a)](_0x4c41ab(0x191)),s(_0x26341a);}_0x50623f[_0x4c41ab(0x18e)](_0x4c41ab(0x184));}async function m(_0x32ffad){const _0x456af9=_0x4f7a58;let _0x3e38db=t['resolve'](_0x32ffad[_0x456af9(0x194)],_0x456af9(0x183)),_0x4f70ed=t[_0x456af9(0x173)](_0x32ffad['cwd'],_0x32ffad[_0x456af9(0x18a)],_0x456af9(0x183));p(_0x3e38db)&&!p(_0x4f70ed)&&u(_0x3e38db,_0x4f70ed);}async function g(_0x5f07bb,_0x568fe6){const _0x1e9290=_0x4f7a58;let {cwd:_0x6d1b2a}=_0x5f07bb;_0x568fe6[_0x1e9290(0x170)]('Generating\x20app-config.json');let _0x138f95=c(_0x5f07bb);o[_0x1e9290(0x16f)](t[_0x1e9290(0x18d)](_0x6d1b2a,a['filename']['appConfig']),_0x138f95['content']),_0x568fe6[_0x1e9290(0x18e)](_0x1e9290(0x199));}async function $(_0x1af4bc,_0x2674ab){const _0x2e9238=_0x4f7a58;let _0x581354=t['join'](_0x1af4bc['cwd'],_0x1af4bc[_0x2e9238(0x18a)]);_0x2674ab[_0x2e9238(0x170)](_0x2e9238(0x18c)+d);let _0x407e1e=_0x581354===process[_0x2e9238(0x194)]();try{_0x407e1e?await e[_0x2e9238(0x178)](_0x2e9238(0x180),!0x0):await e[_0x2e9238(0x178)](_0x2e9238(0x1a0)+_0x581354['replace'](/ /g,'\x5c\x20')+_0x2e9238(0x17c),!0x0);}catch(_0x337874){_0x2674ab['statusError'](_0x2e9238(0x1a1)),s(_0x337874);return;}_0x2674ab[_0x2e9238(0x18e)](_0x2e9238(0x189));}async function h(_0x3804cf,_0x68b3c7){const _0x3efb9e=_0x4f7a58;let _0x3c8113=l(['s','r'])[_0x3efb9e(0x198)](_0x3b420f=>'-\x20'+_0x3b420f['icon']+'\x20Run\x20\x22npm\x20run\x20'+_0x3b420f[_0x3efb9e(0x179)]+_0x3efb9e(0x187)+_0x3b420f['description']),_0x1df01d='\x0a'+n[_0x3efb9e(0x182)](r['success'])+'\x20'+n['bold']('Done!')+'\x20💪\x0a\x0a'+n[_0x3efb9e(0x182)](r[_0x3efb9e(0x197)])+'\x20'+n[_0x3efb9e(0x182)](_0x3efb9e(0x18b))+'\x0a-\x20👉\x20Run\x20\x22cd\x20'+_0x3804cf['folderName']+'\x22\x0a'+_0x3c8113[_0x3efb9e(0x18d)]('\x0a')+'\x0a-\x20📖\x20Visit\x20documentation\x20at\x20'+n['bold'](_0x3efb9e(0x195))+_0x3efb9e(0x16c)+n[_0x3efb9e(0x182)]('README.md')+_0x3efb9e(0x19c);_0x68b3c7[_0x3efb9e(0x185)](_0x1df01d);}async function y(_0x4bdb39,_0xe0af17){const _0x215ec9=_0x4f7a58;let _0x322e20='\x0a'+n['bold'](r['success'])+'\x20'+n[_0x215ec9(0x182)](_0x215ec9(0x192))+_0x215ec9(0x17f)+n['bold'](r[_0x215ec9(0x197)])+'\x20'+n['bold'](_0x215ec9(0x18b))+_0x215ec9(0x181)+n['bold'](_0x215ec9(0x174))+_0x215ec9(0x18f);_0xe0af17[_0x215ec9(0x185)](_0x322e20);}module[_0x4f7a58(0x190)]=async(_0x3c9dbc={},_0x16541a)=>{const _0x20e213=_0x4f7a58;for(let _0x53b2ce of(_0x16541a||(_0x16541a={'statusStart'(){},'statusDone'(){},'statusError'(){},'text'(){},'error'(){}}),_0x3c9dbc[_0x20e213(0x16d)]?[f,m,$,h]:[g,y]))await _0x53b2ce(_0x3c9dbc,_0x16541a);};function _0x2851(){const _0x1eb8c4=['472700VsxfHl','\x20in\x20project\x20root\x20folder\x20with\x20further\x20instructions\x0a\x20\x20','../config','1512179lelLMa','22930uAMkyG','cd\x20','Error\x20installing\x20NPM\x20Dependencies','\x0a-\x20📖\x20Check\x20','newProject','14490ZfdAqD','writeFileSync','statusStart','6462192JfiEDF','151996eVZyOD','resolve','https://mini.zalo.me/blog/huong-dan-chuyen-doi-web-app-thanh-zalo-mini-app-trong-30-phut/','7142320ApZIiI','14823HdshNx','./utils/generate-app-config','promise','name','statusError','gray','\x20&&\x20npm\x20install','(Please\x20wait,\x20it\x20can\x20take\x20a\x20while)','zmp-cli-core','\x20💪\x0a\x0a','npm\x20install','\x0a-\x20🔥\x20Run\x20\x22zmp\x20deploy\x22\x20-\x20deploy\x20mini\x20app\x20for\x20production\x0a-\x20📖\x20Visit\x20instruction\x20at\x20','bold','.env','Creating\x20project\x20files','text','2560vyTOjH','\x22\x20-\x20','48xpLeUZ','Installing\x20NPM\x20Dependencies','folderName','Next\x20steps:','Installing\x20NPM\x20Dependencies\x20','join','statusDone','\x0a\x20\x20','exports','Error\x20creating\x20project\x20files','Done!','./utils/generate-npm-scripts','cwd','https://mini.zalo.me/','../utils/error','info','map','Generating\x20app-config.json','log-symbols'];_0x2851=function(){return _0x1eb8c4;};return _0x2851();}
1
+ 'use strict';const _0x536a36=_0x599a;(function(_0x3b5c31,_0x526e41){const _0x4ade2a=_0x599a,_0x965f17=_0x3b5c31();while(!![]){try{const _0x24979f=-parseInt(_0x4ade2a(0x13e))/0x1*(-parseInt(_0x4ade2a(0x133))/0x2)+-parseInt(_0x4ade2a(0x122))/0x3+parseInt(_0x4ade2a(0x13b))/0x4*(parseInt(_0x4ade2a(0x134))/0x5)+-parseInt(_0x4ade2a(0x138))/0x6*(parseInt(_0x4ade2a(0x155))/0x7)+-parseInt(_0x4ade2a(0x153))/0x8+parseInt(_0x4ade2a(0x159))/0x9*(parseInt(_0x4ade2a(0x121))/0xa)+parseInt(_0x4ade2a(0x13f))/0xb*(parseInt(_0x4ade2a(0x15a))/0xc);if(_0x24979f===_0x526e41)break;else _0x965f17['push'](_0x965f17['shift']());}catch(_0x36766d){_0x965f17['push'](_0x965f17['shift']());}}}(_0x140b,0x920c7));function _0x140b(){const _0x1897a6=['statusDone','https://mini.zalo.me/blog/huong-dan-chuyen-doi-web-app-thanh-zalo-mini-app-trong-30-phut/','Error\x20creating\x20project\x20files','./utils/generate-app-config','\x0a-\x20📖\x20Check\x20','newProject','Next\x20steps:','map','../config','6320544pcQPSn','\x0a-\x20📖\x20Visit\x20documentation\x20at\x20','4745881wMgxKN','\x20in\x20project\x20root\x20folder\x20with\x20further\x20instructions\x0a\x20\x20','content','zmp-cli-core','6084JMVoNp','272388fDlAZh','name','cd\x20','replace','15890RArdsN','2678649aYVJDz','Generating\x20app-config.json','log-symbols','https://mini.zalo.me/','\x0a\x20\x20','resolve','writeFileSync','./utils/generate-npm-scripts','path','cwd','(Please\x20wait,\x20it\x20can\x20take\x20a\x20while)','exports','\x22\x20-\x20','statusError','description','.env','Creating\x20project\x20files','711904XnGXWd','35465xfpoCS','success','promise','Done!','6nextSd','bold','\x20Run\x20\x22npm\x20run\x20','320ArnCFO','chalk','exec-sh','3ddZSsD','121tviMzs','\x0a-\x20🔥\x20Run\x20\x22zmp\x20deploy\x22\x20-\x20deploy\x20mini\x20app\x20for\x20production\x0a-\x20📖\x20Visit\x20instruction\x20at\x20','\x0a-\x20👉\x20Run\x20\x22cd\x20','join','\x20&&\x20npm\x20install','\x20✅\x0a\x0a','npm\x20install','Error\x20installing\x20NPM\x20Dependencies','statusStart','filename','folderName'];_0x140b=function(){return _0x1897a6;};return _0x140b();}const e=require(_0x536a36(0x13d)),t=require(_0x536a36(0x12a)),n=require(_0x536a36(0x13c)),r=require(_0x536a36(0x124)),{initProject:i}=require(_0x536a36(0x158)),o=require('../utils/fs-extra'),{errorExit:s}=require('../utils/error'),a=require(_0x536a36(0x152)),c=require(_0x536a36(0x14d)),l=require(_0x536a36(0x129)),{renameSync:u,existsSync:p}=require('fs'),d=n['gray'](_0x536a36(0x12c));async function f(_0x4e1070,_0x5b3d2c){const _0x2f17df=_0x536a36;_0x5b3d2c[_0x2f17df(0x147)](_0x2f17df(0x132));try{let {cwd:_0x5451df,template:_0xaa6057,folderName:_0x304899,name:_0x84fa85}=_0x4e1070;await i({'cwd':_0x5451df,'template':_0xaa6057,'folderName':_0x304899,'projectName':_0x84fa85});}catch(_0x26d4cb){_0x5b3d2c['statusError'](_0x2f17df(0x14c)),s(_0x26d4cb);}_0x5b3d2c[_0x2f17df(0x14a)](_0x2f17df(0x132));}async function m(_0xb71bb6){const _0x35e145=_0x536a36;let _0x407148=t[_0x35e145(0x127)](_0xb71bb6[_0x35e145(0x12b)],_0x35e145(0x131)),_0x263cbd=t[_0x35e145(0x127)](_0xb71bb6[_0x35e145(0x12b)],_0xb71bb6[_0x35e145(0x149)],_0x35e145(0x131));p(_0x407148)&&!p(_0x263cbd)&&u(_0x407148,_0x263cbd);}function _0x599a(_0x3783d6,_0x50da50){const _0x140b64=_0x140b();return _0x599a=function(_0x599aaf,_0x2564f8){_0x599aaf=_0x599aaf-0x121;let _0x349f47=_0x140b64[_0x599aaf];return _0x349f47;},_0x599a(_0x3783d6,_0x50da50);}async function g(_0x168be4,_0x539a92){const _0x8de753=_0x536a36;let {cwd:_0x222113}=_0x168be4;_0x539a92[_0x8de753(0x147)](_0x8de753(0x123));let _0x28b081=c(_0x168be4);o[_0x8de753(0x128)](t[_0x8de753(0x142)](_0x222113,a[_0x8de753(0x148)]['appConfig']),_0x28b081[_0x8de753(0x157)]),_0x539a92[_0x8de753(0x14a)]('Generating\x20app-config.json');}async function $(_0x133568,_0x441549){const _0x4d090c=_0x536a36;let _0x1f4fa5=t[_0x4d090c(0x142)](_0x133568[_0x4d090c(0x12b)],_0x133568[_0x4d090c(0x149)]);_0x441549[_0x4d090c(0x147)]('Installing\x20NPM\x20Dependencies\x20'+d);let _0x56f1ee=_0x1f4fa5===process[_0x4d090c(0x12b)]();try{_0x56f1ee?await e[_0x4d090c(0x136)](_0x4d090c(0x145),!0x0):await e[_0x4d090c(0x136)](_0x4d090c(0x15c)+_0x1f4fa5[_0x4d090c(0x15d)](/ /g,'\x5c\x20')+_0x4d090c(0x143),!0x0);}catch(_0xe27761){_0x441549[_0x4d090c(0x12f)](_0x4d090c(0x146)),s(_0xe27761);return;}_0x441549[_0x4d090c(0x14a)]('Installing\x20NPM\x20Dependencies');}async function h(_0x519a7f,_0x5f3a4c){const _0x2d4a96=_0x536a36;let _0x4671e4=l(['s','r'])[_0x2d4a96(0x151)](_0x1b8f8f=>'-\x20'+_0x1b8f8f['icon']+_0x2d4a96(0x13a)+_0x1b8f8f[_0x2d4a96(0x15b)]+_0x2d4a96(0x12e)+_0x1b8f8f[_0x2d4a96(0x130)]),_0x444a63='\x0a'+n[_0x2d4a96(0x139)](r[_0x2d4a96(0x135)])+'\x20'+n[_0x2d4a96(0x139)](_0x2d4a96(0x137))+_0x2d4a96(0x144)+n[_0x2d4a96(0x139)](r['info'])+'\x20'+n['bold'](_0x2d4a96(0x150))+_0x2d4a96(0x141)+_0x519a7f[_0x2d4a96(0x149)]+'\x22\x0a'+_0x4671e4['join']('\x0a')+_0x2d4a96(0x154)+n['bold'](_0x2d4a96(0x125))+_0x2d4a96(0x14e)+n['bold']('README.md')+_0x2d4a96(0x156);_0x5f3a4c['text'](_0x444a63);}async function y(_0x594161,_0x4c06be){const _0x314068=_0x536a36;let _0x2eea30='\x0a'+n['bold'](r['success'])+'\x20'+n[_0x314068(0x139)](_0x314068(0x137))+_0x314068(0x144)+n[_0x314068(0x139)](r['info'])+'\x20'+n[_0x314068(0x139)](_0x314068(0x150))+_0x314068(0x140)+n[_0x314068(0x139)](_0x314068(0x14b))+_0x314068(0x126);_0x4c06be['text'](_0x2eea30);}module[_0x536a36(0x12d)]=async(_0x412c30={},_0x5e307b)=>{const _0x330ef9=_0x536a36;for(let _0xb3b3c1 of(_0x5e307b||(_0x5e307b={'statusStart'(){},'statusDone'(){},'statusError'(){},'text'(){},'error'(){}}),_0x412c30[_0x330ef9(0x14f)]?[f,m,$,h]:[g,y]))await _0xb3b3c1(_0x412c30,_0x5e307b);};
@@ -1 +1 @@
1
- 'use strict';function _0x2acc(_0x240953,_0x331717){const _0xf7f0b4=_0xf7f0();return _0x2acc=function(_0x2acc02,_0x5d3572){_0x2acc02=_0x2acc02-0xad;let _0x2f4033=_0xf7f0b4[_0x2acc02];return _0x2f4033;},_0x2acc(_0x240953,_0x331717);}function _0xf7f0(){const _0x32fd5d=['4172NZwqKU','77TKWpkq','1690VwbKKB','1979304qLGllH','776WWIBuF','509040hrqrFF','back','33758sEmyuW','exports','16gYDmpK','white','1497525omjgWa','1096iVOMkx','1431lvRJdV','1989XODbtR'];_0xf7f0=function(){return _0x32fd5d;};return _0xf7f0();}const _0xcb217c=_0x2acc;(function(_0x3302e1,_0x3752a7){const _0x18a4f5=_0x2acc,_0x135943=_0x3302e1();while(!![]){try{const _0x5877ef=parseInt(_0x18a4f5(0xaf))/0x1*(-parseInt(_0x18a4f5(0xad))/0x2)+parseInt(_0x18a4f5(0xb4))/0x3*(-parseInt(_0x18a4f5(0xb9))/0x4)+-parseInt(_0x18a4f5(0xb1))/0x5+-parseInt(_0x18a4f5(0xba))/0x6+parseInt(_0x18a4f5(0xb5))/0x7*(-parseInt(_0x18a4f5(0xb2))/0x8)+-parseInt(_0x18a4f5(0xb3))/0x9*(parseInt(_0x18a4f5(0xb7))/0xa)+-parseInt(_0x18a4f5(0xb6))/0xb*(-parseInt(_0x18a4f5(0xb8))/0xc);if(_0x5877ef===_0x3752a7)break;else _0x135943['push'](_0x135943['shift']());}catch(_0x189fea){_0x135943['push'](_0x135943['shift']());}}}(_0xf7f0,0x40380));module[_0xcb217c(0xae)]=function(_0x5a2e45){const _0x43583d=_0xcb217c;let {name:_0x1da496}=_0x5a2e45,_0x31b11e={'title':_0x1da496,'headerTitle':_0x1da496,'headerColor':'#1843EF','textColor':_0x43583d(0xb0),'leftButton':_0x43583d(0xbb),'statusBar':'normal','actionBarHidden':!0x1,'hideAndroidBottomNavigationBar':!0x1,'hideIOSSafeAreaBottom':!0x1};return{'content':JSON['stringify']({'app':_0x31b11e,'listCSS':[],'listSyncJS':[],'listAsyncJS':[]},'',0x2)['trim'](),'appConfig':_0x31b11e};};
1
+ 'use strict';function _0x3eb6(){const _0x4b5889=['stringify','normal','1194504lvQqnd','exports','8fSUwSa','trim','2259060uhBovk','1354288zovssW','10OxUOYw','305022DYwICn','#1843EF','back','11710395mzlLTA','white','3205069zWrUsg','1157698ULhNcJ'];_0x3eb6=function(){return _0x4b5889;};return _0x3eb6();}function _0x3acd(_0x572d37,_0x320ece){const _0x3eb618=_0x3eb6();return _0x3acd=function(_0x3acd17,_0x20f5a6){_0x3acd17=_0x3acd17-0x6d;let _0x30f64f=_0x3eb618[_0x3acd17];return _0x30f64f;},_0x3acd(_0x572d37,_0x320ece);}const _0xc9406=_0x3acd;(function(_0xb0d707,_0x164b49){const _0x328432=_0x3acd,_0x18357c=_0xb0d707();while(!![]){try{const _0x2c94f0=parseInt(_0x328432(0x77))/0x1+-parseInt(_0x328432(0x6d))/0x2+parseInt(_0x328432(0x74))/0x3+-parseInt(_0x328432(0x75))/0x4*(parseInt(_0x328432(0x76))/0x5)+-parseInt(_0x328432(0x70))/0x6+-parseInt(_0x328432(0x7c))/0x7+-parseInt(_0x328432(0x72))/0x8*(-parseInt(_0x328432(0x7a))/0x9);if(_0x2c94f0===_0x164b49)break;else _0x18357c['push'](_0x18357c['shift']());}catch(_0x2369b1){_0x18357c['push'](_0x18357c['shift']());}}}(_0x3eb6,0x6cf2d));module[_0xc9406(0x71)]=function(_0x2d95f5){const _0x488f16=_0xc9406;let {name:_0x4019cc}=_0x2d95f5,_0x12bd5d={'title':_0x4019cc,'headerTitle':_0x4019cc,'headerColor':_0x488f16(0x78),'textColor':_0x488f16(0x7b),'leftButton':_0x488f16(0x79),'statusBar':_0x488f16(0x6f),'actionBarHidden':!0x1,'hideAndroidBottomNavigationBar':!0x1,'hideIOSSafeAreaBottom':!0x1};return{'content':JSON[_0x488f16(0x6e)]({'app':_0x12bd5d,'listCSS':[],'listSyncJS':[],'listAsyncJS':[]},'',0x2)[_0x488f16(0x73)](),'appConfig':_0x12bd5d};};
@@ -1 +1 @@
1
- 'use strict';function _0x2d44(){const _0x47c4fa=['name','5797740VffJCu','640afkEnd','64782xbPDPy','364fUjHqa','tailwind','4469295BecuiP','exports','1TiIKca','icon','4cfkYjs','18254844CUVjWI','description','11GmYBSg','455130nlauNa','82696DKczIE','generateTailWindScripts','script','./npm-scripts','default','map','1201034wcLHeB'];_0x2d44=function(){return _0x47c4fa;};return _0x2d44();}const _0x5070b9=_0x3d7d;function _0x3d7d(_0x5b01ee,_0xfd5c1a){const _0x2d4423=_0x2d44();return _0x3d7d=function(_0x3d7d82,_0x337061){_0x3d7d82=_0x3d7d82-0x161;let _0x40f521=_0x2d4423[_0x3d7d82];return _0x40f521;},_0x3d7d(_0x5b01ee,_0xfd5c1a);}(function(_0xc1f282,_0x280950){const _0x1c888a=_0x3d7d,_0x1a848b=_0xc1f282();while(!![]){try{const _0xb4cf7e=-parseInt(_0x1c888a(0x169))/0x1*(parseInt(_0x1c888a(0x176))/0x2)+-parseInt(_0x1c888a(0x16f))/0x3+-parseInt(_0x1c888a(0x16b))/0x4*(-parseInt(_0x1c888a(0x167))/0x5)+-parseInt(_0x1c888a(0x162))/0x6+-parseInt(_0x1c888a(0x165))/0x7*(-parseInt(_0x1c888a(0x170))/0x8)+-parseInt(_0x1c888a(0x164))/0x9*(parseInt(_0x1c888a(0x163))/0xa)+parseInt(_0x1c888a(0x16e))/0xb*(parseInt(_0x1c888a(0x16c))/0xc);if(_0xb4cf7e===_0x280950)break;else _0x1a848b['push'](_0x1a848b['shift']());}catch(_0x416660){_0x1a848b['push'](_0x1a848b['shift']());}}}(_0x2d44,0xbcd37));const i=require(_0x5070b9(0x173));module[_0x5070b9(0x168)]=(_0x26ecdc=['s','r'])=>_0x26ecdc[_0x5070b9(0x175)](_0x5b8f36=>({'icon':i[_0x5070b9(0x174)][_0x5b8f36][_0x5070b9(0x16a)],'name':i[_0x5070b9(0x174)][_0x5b8f36]['name'],'script':i['default'][_0x5b8f36][_0x5070b9(0x172)],'description':i['default'][_0x5b8f36][_0x5070b9(0x16d)]})),module['exports'][_0x5070b9(0x171)]=(_0x5e0316=['t'])=>_0x5e0316[_0x5070b9(0x175)](_0x15cde4=>({'icon':i['tailwind'][_0x15cde4][_0x5070b9(0x16a)],'name':i[_0x5070b9(0x166)][_0x15cde4][_0x5070b9(0x161)],'script':i[_0x5070b9(0x166)][_0x15cde4][_0x5070b9(0x172)],'description':i[_0x5070b9(0x166)][_0x15cde4][_0x5070b9(0x16d)]}));
1
+ 'use strict';const _0x17a4fe=_0xdd5d;function _0xdd5d(_0x19e2e2,_0x4f43f6){const _0x39128c=_0x3912();return _0xdd5d=function(_0xdd5d86,_0x5a4031){_0xdd5d86=_0xdd5d86-0xcc;let _0x5dbbb0=_0x39128c[_0xdd5d86];return _0x5dbbb0;},_0xdd5d(_0x19e2e2,_0x4f43f6);}(function(_0x5aa67e,_0x31d4a4){const _0x4d406a=_0xdd5d,_0x5303d1=_0x5aa67e();while(!![]){try{const _0x32b90f=parseInt(_0x4d406a(0xdb))/0x1+-parseInt(_0x4d406a(0xcd))/0x2*(parseInt(_0x4d406a(0xdd))/0x3)+-parseInt(_0x4d406a(0xce))/0x4+parseInt(_0x4d406a(0xda))/0x5+-parseInt(_0x4d406a(0xd3))/0x6+parseInt(_0x4d406a(0xd1))/0x7+-parseInt(_0x4d406a(0xcc))/0x8*(-parseInt(_0x4d406a(0xd5))/0x9);if(_0x32b90f===_0x31d4a4)break;else _0x5303d1['push'](_0x5303d1['shift']());}catch(_0x556d2c){_0x5303d1['push'](_0x5303d1['shift']());}}}(_0x3912,0x524e8));const i=require(_0x17a4fe(0xd6));module['exports']=(_0x312844=['s','r'])=>_0x312844[_0x17a4fe(0xd0)](_0x5add9a=>({'icon':i[_0x17a4fe(0xd4)][_0x5add9a][_0x17a4fe(0xdc)],'name':i[_0x17a4fe(0xd4)][_0x5add9a][_0x17a4fe(0xd8)],'script':i[_0x17a4fe(0xd4)][_0x5add9a][_0x17a4fe(0xcf)],'description':i[_0x17a4fe(0xd4)][_0x5add9a][_0x17a4fe(0xd2)]})),module[_0x17a4fe(0xd7)]['generateTailWindScripts']=(_0x20fdea=['t'])=>_0x20fdea[_0x17a4fe(0xd0)](_0x389146=>({'icon':i[_0x17a4fe(0xd9)][_0x389146][_0x17a4fe(0xdc)],'name':i[_0x17a4fe(0xd9)][_0x389146][_0x17a4fe(0xd8)],'script':i[_0x17a4fe(0xd9)][_0x389146][_0x17a4fe(0xcf)],'description':i[_0x17a4fe(0xd9)][_0x389146][_0x17a4fe(0xd2)]}));function _0x3912(){const _0x31033c=['1529565wzvmhP','127586gGeiQZ','icon','1331868dnVpnn','8jmcHEm','2YHTYhk','730852DTqlps','script','map','2310217wKdnAW','description','2054736VnpkeU','default','4884507CLVWRH','./npm-scripts','exports','name','tailwind'];_0x3912=function(){return _0x31033c;};return _0x3912();}
@@ -1 +1 @@
1
- 'use strict';function _0xdb96(){const _0x16f40b=['111088dGSMyk','input','6ZLGUSR','map','18057omTZso','folderName','Separator','7348690tmQqln','App\x20name\x20is\x20required','isBlank','name','toLowerCase','Using\x20ZMP\x20to\x20deploy\x20only','App\x20(project)\x20name:','exports','930836IOyWYr','chalk','6268bSxjsc','italic','newProject','template','56MmkWNS','1528029eBsnXp','list','Folder\x20name:','zmp-cli-core','then','12lbaoRj','replace','Choose\x20a\x20template:','244105lybfAB','filter','\x20App','prompt','resolve','inquirer','My\x20App','My\x20'];_0xdb96=function(){return _0x16f40b;};return _0xdb96();}const _0x48c5b1=_0x2764;(function(_0xa1e3f,_0x2c05be){const _0x5821ad=_0x2764,_0x33730d=_0xa1e3f();while(!![]){try{const _0x563f63=-parseInt(_0x5821ad(0xa2))/0x1+-parseInt(_0x5821ad(0xac))/0x2*(parseInt(_0x5821ad(0x95))/0x3)+-parseInt(_0x5821ad(0xa0))/0x4+-parseInt(_0x5821ad(0x89))/0x5*(parseInt(_0x5821ad(0x93))/0x6)+parseInt(_0x5821ad(0xa6))/0x7*(-parseInt(_0x5821ad(0x91))/0x8)+-parseInt(_0x5821ad(0xa7))/0x9+parseInt(_0x5821ad(0x98))/0xa;if(_0x563f63===_0x2c05be)break;else _0x33730d['push'](_0x33730d['shift']());}catch(_0x322dc2){_0x33730d['push'](_0x33730d['shift']());}}}(_0xdb96,0x1fc28));function _0x2764(_0x16aa6b,_0x314cbf){const _0xdb961c=_0xdb96();return _0x2764=function(_0x2764a5,_0x451f9a){_0x2764a5=_0x2764a5-0x89;let _0x383d53=_0xdb961c[_0x2764a5];return _0x383d53;},_0x2764(_0x16aa6b,_0x314cbf);}const e=require(_0x48c5b1(0x8e)),r=require(_0x48c5b1(0xa1)),{INIT_TEMPLATES:a}=require(_0x48c5b1(0xaa)),t=[{'type':_0x48c5b1(0xa8),'name':_0x48c5b1(0xa4),'message':'What\x20action\x20you\x20want\x20to\x20do?','choices':[{'name':'Create\x20a\x20new\x20ZMP\x20project','value':!0x0,'short':'New\x20project'},{'name':_0x48c5b1(0x9d),'value':!0x1,'short':'Existing\x20project'}]},{'type':'list','name':_0x48c5b1(0xa5),'when':_0x1cd1e6=>_0x1cd1e6['newProject'],'message':_0x48c5b1(0xae),'choices':[...a[_0x48c5b1(0x8a)](_0x2dc313=>_0x2dc313['isBlank'])[_0x48c5b1(0x94)](_0x5e28e0=>({'name':_0x5e28e0[_0x48c5b1(0x9b)],'value':_0x5e28e0})),new e[(_0x48c5b1(0x97))](),...a[_0x48c5b1(0x8a)](_0x5dc75f=>!_0x5dc75f['isBlank'])[_0x48c5b1(0x94)](_0x58fec4=>({'name':_0x58fec4['name'],'value':_0x58fec4}))]},{'type':_0x48c5b1(0x92),'name':_0x48c5b1(0x9b),'message':_0x48c5b1(0x9e),'default':_0x39f95d=>{const _0x245cf7=_0x48c5b1;let {template:_0x499664}=_0x39f95d;return _0x499664&&!_0x499664[_0x245cf7(0x9a)]?_0x245cf7(0x90)+_0x499664['name'][_0x245cf7(0xad)]('ZaUI\x20','')+_0x245cf7(0x8b):_0x245cf7(0x8f);},'validate':_0x19f2fc=>new Promise((_0x332091,_0x3bb57b)=>{const _0x55b2d1=_0x48c5b1;_0x19f2fc?_0x332091(!0x0):_0x3bb57b(Error(_0x55b2d1(0x99)));})},{'type':_0x48c5b1(0x92),'name':_0x48c5b1(0x96),'when':_0x4a5bfa=>_0x4a5bfa[_0x48c5b1(0xa4)],'message':_0x48c5b1(0xa9),'suffix':'\x0a'+r[_0x48c5b1(0xa3)]('(A\x20new\x20folder\x20with\x20this\x20name\x20will\x20be\x20created\x20in\x20the\x20selected\x20directory)'),'default':_0x249ff6=>{const _0x38e26c=_0x48c5b1;let {name:_0x29113c}=_0x249ff6;return _0x29113c[_0x38e26c(0xad)](/ /g,'-')['replace'](/[^a-zA-Z0-9-]/g,'')[_0x38e26c(0x9c)]();},'validate':_0x27bcc5=>new Promise((_0x8507d9,_0x1567d8)=>{_0x27bcc5?_0x8507d9(!0x0):_0x1567d8(Error('Folder\x20name\x20is\x20required'));})}];module[_0x48c5b1(0x9f)]=function(){const _0xae4f8c=_0x48c5b1;return e[_0xae4f8c(0x8c)](t)[_0xae4f8c(0xab)](_0x22fc63=>Promise[_0xae4f8c(0x8d)](_0x22fc63));};
1
+ 'use strict';const _0x141f29=_0x3ad5;function _0x4c07(){const _0x4858fa=['name','Folder\x20name:','(A\x20new\x20folder\x20with\x20this\x20name\x20will\x20be\x20created\x20in\x20the\x20selected\x20directory)','github','input','2279825WpTFpV','Choose\x20a\x20template:','New\x20project','newProject','App\x20(project)\x20name:','replace','exports','prompt','list','5520177mkqWiX','1538420YWHFFc','Using\x20ZMP\x20to\x20deploy\x20only','data','2716kVZPgk','zmp-cli-core','chalk','612426LJaRGh','1272616wUARIH','../../utils/axios','Folder\x20name\x20is\x20required','6126eBwOuB','map','resolve','then','toLowerCase','inquirer','1930SeuViq','My\x20App','App\x20name\x20is\x20required','343qfweKD'];_0x4c07=function(){return _0x4858fa;};return _0x4c07();}(function(_0x4dfc9b,_0x29993d){const _0x23e9b1=_0x3ad5,_0xb0088=_0x4dfc9b();while(!![]){try{const _0xd404fd=parseInt(_0x23e9b1(0x17b))/0x1*(parseInt(_0x23e9b1(0x19b))/0x2)+parseInt(_0x23e9b1(0x191))/0x3+-parseInt(_0x23e9b1(0x18b))/0x4+parseInt(_0x23e9b1(0x181))/0x5+parseInt(_0x23e9b1(0x195))/0x6*(parseInt(_0x23e9b1(0x18e))/0x7)+-parseInt(_0x23e9b1(0x192))/0x8+-parseInt(_0x23e9b1(0x18a))/0x9;if(_0xd404fd===_0x29993d)break;else _0xb0088['push'](_0xb0088['shift']());}catch(_0x53e791){_0xb0088['push'](_0xb0088['shift']());}}}(_0x4c07,0x38347));function _0x3ad5(_0x18b4ad,_0x311b36){const _0x4c0719=_0x4c07();return _0x3ad5=function(_0x3ad565,_0x4e699e){_0x3ad565=_0x3ad565-0x179;let _0x30b6fd=_0x4c0719[_0x3ad565];return _0x30b6fd;},_0x3ad5(_0x18b4ad,_0x311b36);}const e=require(_0x141f29(0x19a)),t=require(_0x141f29(0x190)),{getTemplates:r,BLANK_TEMPLATES:a}=require(_0x141f29(0x18f)),{axiosClient:n}=require(_0x141f29(0x193)),i=[{'type':_0x141f29(0x189),'name':_0x141f29(0x184),'message':'What\x20action\x20you\x20want\x20to\x20do?','choices':[{'name':'Create\x20a\x20new\x20ZMP\x20project','value':!0x0,'short':_0x141f29(0x183)},{'name':_0x141f29(0x18c),'value':!0x1,'short':'Existing\x20project'}]},{'type':_0x141f29(0x189),'name':'template','when':_0xb9e4d3=>_0xb9e4d3[_0x141f29(0x184)],'message':_0x141f29(0x182),'choices':async()=>{const _0x371a7c=_0x141f29;let _0x51d343=await r({'request':_0x49b797=>n(_0x49b797)[_0x371a7c(0x198)](_0x33a356=>_0x33a356[_0x371a7c(0x18d)])});return[...a[_0x371a7c(0x196)](_0xfb344b=>({'name':_0xfb344b['name'],'value':_0xfb344b[_0x371a7c(0x17f)]})),new e['Separator'](),..._0x51d343['map'](_0x28ad96=>({'name':_0x28ad96[_0x371a7c(0x17c)],'value':_0x28ad96[_0x371a7c(0x17f)]}))];}},{'type':_0x141f29(0x180),'name':_0x141f29(0x17c),'message':_0x141f29(0x185),'default':_0x141f29(0x179),'validate':_0x26764f=>new Promise((_0x4c1141,_0x36f045)=>{const _0x4c01d5=_0x141f29;_0x26764f?_0x4c1141(!0x0):_0x36f045(Error(_0x4c01d5(0x17a)));})},{'type':_0x141f29(0x180),'name':'folderName','when':_0x1b7a2e=>_0x1b7a2e[_0x141f29(0x184)],'message':_0x141f29(0x17d),'suffix':'\x0a'+t['italic'](_0x141f29(0x17e)),'default':_0x9772e6=>{const _0x4c49d8=_0x141f29;let {name:_0x4eb5e0}=_0x9772e6;return _0x4eb5e0[_0x4c49d8(0x186)](/ /g,'-')[_0x4c49d8(0x186)](/[^a-zA-Z0-9-]/g,'')[_0x4c49d8(0x199)]();},'validate':_0x4a29f2=>new Promise((_0x930b4a,_0x570284)=>{const _0xd99e57=_0x141f29;_0x4a29f2?_0x930b4a(!0x0):_0x570284(Error(_0xd99e57(0x194)));})}];module[_0x141f29(0x187)]=function(){const _0x1fed69=_0x141f29;return e[_0x1fed69(0x188)](i)[_0x1fed69(0x198)](_0xcb4b62=>Promise[_0x1fed69(0x197)](_0xcb4b62));};
@@ -1 +1 @@
1
- 'use strict';const _0x32d827=_0x4b06;(function(_0x9c9337,_0x2d271a){const _0x529a39=_0x4b06,_0x145fa6=_0x9c9337();while(!![]){try{const _0xeee4a9=-parseInt(_0x529a39(0x182))/0x1+parseInt(_0x529a39(0x185))/0x2+-parseInt(_0x529a39(0x17e))/0x3*(parseInt(_0x529a39(0x187))/0x4)+-parseInt(_0x529a39(0x183))/0x5+-parseInt(_0x529a39(0x17b))/0x6+-parseInt(_0x529a39(0x18a))/0x7*(parseInt(_0x529a39(0x177))/0x8)+parseInt(_0x529a39(0x17f))/0x9;if(_0xeee4a9===_0x2d271a)break;else _0x145fa6['push'](_0x145fa6['shift']());}catch(_0xab2a5b){_0x145fa6['push'](_0x145fa6['shift']());}}}(_0x3c58,0xd9617));function _0x3c58(){const _0x5156ec=['1379514pyXAZf','split','tailwind','48AZaWGF','32763087FkXeeJ','postcss\x20src/css/tailwind.css\x20-o\x20src/css/styles.css','http-server\x20./www/\x20-o\x20-c\x201\x20-a\x20localhost\x20-p\x208080','1450675yxOYxP','369285tJzXao','keys','866274yjkHla','zmp\x20deploy','172692qKpRrZ','deploy\x20mini\x20app\x20for\x20production','name','70DQtnUC','exports','npm\x20run\x20serve','serve','prod','build\x20tailwind\x20css','start','run\x20development\x20server','590296YnAwGV','forEach','default','dev'];_0x3c58=function(){return _0x5156ec;};return _0x3c58();}function _0x4b06(_0x1ae149,_0x2bc556){const _0x3c58c2=_0x3c58();return _0x4b06=function(_0x4b065e,_0x47d216){_0x4b065e=_0x4b065e-0x174;let _0x2b26d1=_0x3c58c2[_0x4b065e];return _0x2b26d1;},_0x4b06(_0x1ae149,_0x2bc556);}const e={'d':_0x32d827(0x17a),'p':_0x32d827(0x18e),'s':_0x32d827(0x175),'v':_0x32d827(0x18d),'r':'deploy','t':'build:css'};function s(_0x57b1d0){const _0x453ea6=_0x32d827;return _0x57b1d0[_0x453ea6(0x17c)]('_')[0x0][_0x453ea6(0x17c)]('')['map'](_0x143708=>e[_0x143708])['join']('-');}const t={'default':{'s':{'icon':'🔥','script':'zmp\x20start','description':_0x32d827(0x176)},'r':{'icon':'🙏','script':_0x32d827(0x186),'description':_0x32d827(0x188)}},'httpServer':{'v':{'icon':'🔧','script':_0x32d827(0x181),'description':_0x32d827(0x176)},'s':{'icon':'🔥','script':_0x32d827(0x18c),'description':_0x32d827(0x176)}},'tailwind':{'t':{'icon':'🔧','script':_0x32d827(0x180),'description':_0x32d827(0x174)}}};Object[_0x32d827(0x184)](t[_0x32d827(0x179)])[_0x32d827(0x178)](_0x73d4e1=>{const _0x2a264f=_0x32d827;t['default'][_0x73d4e1][_0x2a264f(0x189)]=s(_0x73d4e1);}),Object[_0x32d827(0x184)](t['httpServer'])[_0x32d827(0x178)](_0x57dfd5=>{const _0x38bc06=_0x32d827;t['httpServer'][_0x57dfd5][_0x38bc06(0x189)]=s(_0x57dfd5);}),Object[_0x32d827(0x184)](t[_0x32d827(0x17d)])['forEach'](_0x4b6308=>{const _0x3b6609=_0x32d827;t[_0x3b6609(0x17d)][_0x4b6308][_0x3b6609(0x189)]=s(_0x4b6308);}),module[_0x32d827(0x18b)]=t;
1
+ 'use strict';const _0x5c51d1=_0x23d8;function _0x23d8(_0x16e487,_0xa5c34a){const _0x4c31b8=_0x4c31();return _0x23d8=function(_0x23d81e,_0x18c26e){_0x23d81e=_0x23d81e-0x143;let _0x56c157=_0x4c31b8[_0x23d81e];return _0x56c157;},_0x23d8(_0x16e487,_0xa5c34a);}(function(_0x3748f5,_0x53b1c7){const _0x5996bc=_0x23d8,_0x42daf3=_0x3748f5();while(!![]){try{const _0x139956=parseInt(_0x5996bc(0x151))/0x1*(-parseInt(_0x5996bc(0x15b))/0x2)+parseInt(_0x5996bc(0x148))/0x3+-parseInt(_0x5996bc(0x158))/0x4*(parseInt(_0x5996bc(0x14d))/0x5)+-parseInt(_0x5996bc(0x150))/0x6*(parseInt(_0x5996bc(0x15f))/0x7)+parseInt(_0x5996bc(0x15d))/0x8*(-parseInt(_0x5996bc(0x156))/0x9)+-parseInt(_0x5996bc(0x15a))/0xa+parseInt(_0x5996bc(0x149))/0xb;if(_0x139956===_0x53b1c7)break;else _0x42daf3['push'](_0x42daf3['shift']());}catch(_0x502776){_0x42daf3['push'](_0x42daf3['shift']());}}}(_0x4c31,0xaee9c));const e={'d':_0x5c51d1(0x147),'p':_0x5c51d1(0x14b),'s':_0x5c51d1(0x145),'v':_0x5c51d1(0x15c),'r':_0x5c51d1(0x155),'t':_0x5c51d1(0x14f)};function s(_0xd907e2){const _0x1f95ed=_0x5c51d1;return _0xd907e2[_0x1f95ed(0x153)]('_')[0x0][_0x1f95ed(0x153)]('')[_0x1f95ed(0x160)](_0x2573b8=>e[_0x2573b8])[_0x1f95ed(0x154)]('-');}const t={'default':{'s':{'icon':'🔥','script':'zmp\x20start','description':_0x5c51d1(0x152)},'r':{'icon':'🙏','script':_0x5c51d1(0x143),'description':_0x5c51d1(0x14a)}},'httpServer':{'v':{'icon':'🔧','script':_0x5c51d1(0x15e),'description':_0x5c51d1(0x152)},'s':{'icon':'🔥','script':_0x5c51d1(0x146),'description':_0x5c51d1(0x152)}},'tailwind':{'t':{'icon':'🔧','script':_0x5c51d1(0x161),'description':'build\x20tailwind\x20css'}}};function _0x4c31(){const _0xb5f2f8=['dev','3646467vvzRyz','26974937rMhefs','deploy\x20mini\x20app\x20for\x20production','prod','keys','5NPThZG','forEach','build:css','6nBJXmn','114FHGCaB','run\x20development\x20server','split','join','deploy','5216751PsqhDS','exports','4594484ncBMmO','name','1762690oIjvUv','4250qVQEQs','serve','8ZGYxCR','http-server\x20./www/\x20-o\x20-c\x201\x20-a\x20localhost\x20-p\x208080','5631731tVwIPn','map','postcss\x20src/css/tailwind.css\x20-o\x20src/css/styles.css','httpServer','zmp\x20deploy','default','start','npm\x20run\x20serve'];_0x4c31=function(){return _0xb5f2f8;};return _0x4c31();}Object['keys'](t[_0x5c51d1(0x144)])['forEach'](_0x57eaf5=>{const _0x58bee1=_0x5c51d1;t[_0x58bee1(0x144)][_0x57eaf5]['name']=s(_0x57eaf5);}),Object[_0x5c51d1(0x14c)](t[_0x5c51d1(0x162)])[_0x5c51d1(0x14e)](_0x237b60=>{const _0x35ed73=_0x5c51d1;t[_0x35ed73(0x162)][_0x237b60]['name']=s(_0x237b60);}),Object[_0x5c51d1(0x14c)](t['tailwind'])[_0x5c51d1(0x14e)](_0x1c7895=>{const _0xc47928=_0x5c51d1;t['tailwind'][_0x1c7895][_0xc47928(0x159)]=s(_0x1c7895);}),module[_0x5c51d1(0x157)]=t;
package/deploy/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';function _0x1831(){const _0x24da2c=['1209WJbcng','getEnv','compress','zip-local','(Please\x20wait,\x20it\x20can\x20take\x20a\x20while)','10RuIbiE','850NWyURe','Please\x20define\x20your\x20assets\x20output\x20at\x20app-config.json.\x20Read\x20more:\x20https://mini.zalo.me/intro/getting-started/app-config/','3320wYdzZT','generate','../utils/env','appUrl','Error\x20deploying\x20your\x20app','includes','versionStatus','qrcode-terminal','writeFileSync','\x20View\x20app\x20at:\x0a','data','1449756FbmhoY','forEach','length','react','requestUploadResumable','../config','exports','dependencies','18bTuPxE','306006yKXQye','customProject','statusDone','Version:','chalk','zmp','green','../build/index','path','env','28932ubisdt','3290XFVnSY','stringify','packageJson','215622RgXirZ','\x20💪','3CQBarK','statusStart','join','identifier','nextVersion','2412bWiEmh','text','statusError','memory','appConfig','../utils/fs-extra','info','9225QiopqY','log-symbols','desc','./utils/request-upload','www','listSyncJS','title','gray','app','Update\x20app\x20with\x20new\x20version','filename','error_msg','bold','listAsyncJS','token'];_0x1831=function(){return _0x24da2c;};return _0x1831();}const _0xda169d=_0x1eea;(function(_0x40e0a6,_0x198f50){const _0x70c785=_0x1eea,_0x4d5e11=_0x40e0a6();while(!![]){try{const _0x37d009=parseInt(_0x70c785(0x150))/0x1*(parseInt(_0x70c785(0x13a))/0x2)+parseInt(_0x70c785(0x14b))/0x3*(parseInt(_0x70c785(0x132))/0x4)+-parseInt(_0x70c785(0x124))/0x5*(parseInt(_0x70c785(0x13b))/0x6)+-parseInt(_0x70c785(0x146))/0x7*(parseInt(_0x70c785(0x127))/0x8)+-parseInt(_0x70c785(0x110))/0x9*(parseInt(_0x70c785(0x125))/0xa)+-parseInt(_0x70c785(0x149))/0xb+parseInt(_0x70c785(0x145))/0xc*(parseInt(_0x70c785(0x11f))/0xd);if(_0x37d009===_0x198f50)break;else _0x4d5e11['push'](_0x4d5e11['shift']());}catch(_0x34b40b){_0x4d5e11['push'](_0x4d5e11['shift']());}}}(_0x1831,0x31f2f));function _0x1eea(_0x57b806,_0x3c6b67){const _0x183110=_0x1831();return _0x1eea=function(_0x1eea43,_0x10a2a1){_0x1eea43=_0x1eea43-0x10b;let _0x5d38c5=_0x183110[_0x1eea43];return _0x5d38c5;},_0x1eea(_0x57b806,_0x3c6b67);}const e=require(_0xda169d(0x13f)),t=require(_0xda169d(0x143)),r=require(_0xda169d(0x122)),i=require(_0xda169d(0x111)),a=require(_0xda169d(0x12e)),s=require(_0xda169d(0x137)),n=require(_0xda169d(0x142)),o=require(_0xda169d(0x129)),{errorExit:l}=require('../utils/error'),p=require('./utils/upload-app'),u=require(_0xda169d(0x10e)),c=require(_0xda169d(0x113)),d=e[_0xda169d(0x117)](_0xda169d(0x123)),f={'statusStart'(){},'statusDone'(){},'statusText'(){},'statusError'(){},'text'(){},'error'(){},'showOnUI'(){}};module[_0xda169d(0x138)]=async(_0x456a3e={},_0x240ba1=f)=>{const _0x393585=_0xda169d;let _0x2c70fe,_0x3a5505,_0x265915,_0x455d7b=_0x456a3e['cwd']||process['cwd'](),_0x5def1b=_0x456a3e['outputDir']||_0x393585(0x114),_0x449da8=s['api_domain'],_0x32ab6e=_0x20837a=>t[_0x393585(0x14d)](_0x455d7b,_0x20837a),_0x3f5110=o[_0x393585(0x120)](s[_0x393585(0x144)][_0x393585(0x11e)]),_0x31e4bf=s['filename'][_0x393585(0x10d)],_0x53f3e6=s[_0x393585(0x11a)][_0x393585(0x148)],_0x3940cf=!0x0;try{_0x2c70fe=require(_0x32ab6e(_0x31e4bf));}catch(_0x12ddb6){try{_0x2c70fe=require(_0x32ab6e(_0x5def1b+'/'+_0x31e4bf)),_0x3940cf=!0x1;}catch(_0x1b50e8){l(Error(s[_0x393585(0x11b)]['app_config_not_found']));}}let _0x44e292={};try{let _0x28566d=require(_0x32ab6e(_0x53f3e6))[_0x393585(0x139)];Object['entries'](_0x28566d)[_0x393585(0x133)](([_0x9ff121,_0x304a0a])=>{const _0x490dc2=_0x393585;(_0x9ff121[_0x490dc2(0x12c)](_0x490dc2(0x140))||_0x9ff121[_0x490dc2(0x12c)](_0x490dc2(0x135)))&&(_0x44e292[_0x9ff121]=_0x304a0a);});}catch(_0x2e227b){}let _0x3b84a5={'appName':_0x2c70fe[_0x393585(0x118)][_0x393585(0x116)],'appDesc':_0x456a3e[_0x393585(0x112)]||_0x393585(0x119),'appConfig':JSON[_0x393585(0x147)](_0x2c70fe),'frameworkVersions':JSON[_0x393585(0x147)](_0x44e292)};try{let _0x2cfa8c=''+_0x449da8+s[_0x393585(0x143)][_0x393585(0x136)],_0x219512=await c(_0x2cfa8c,_0x3b84a5,_0x456a3e[_0x393585(0x12d)],_0x3f5110);_0x3a5505=_0x219512[_0x393585(0x14f)],_0x265915=_0x219512[_0x393585(0x14e)];}catch(_0x5375da){l(_0x5375da);}if(_0x456a3e[_0x393585(0x13c)]){let _0x1eabdc=0x0;_0x2c70fe[_0x393585(0x115)]&&_0x2c70fe[_0x393585(0x115)]['length']>0x0&&(_0x1eabdc+=0x1),_0x2c70fe[_0x393585(0x11d)]&&_0x2c70fe['listAsyncJS'][_0x393585(0x134)]>0x0&&(_0x1eabdc+=0x1),0x0===_0x1eabdc&&l(Error(_0x393585(0x126))),_0x3940cf&&u[_0x393585(0x12f)](_0x32ab6e(_0x5def1b+'/'+s[_0x393585(0x11a)]['appConfig']),JSON['stringify'](_0x2c70fe));}else _0x2c70fe=await n({..._0x456a3e,'appConfigJson':_0x2c70fe,'nextVersion':_0x3a5505},_0x240ba1);_0x240ba1[_0x393585(0x14c)]('Deploying\x20Your\x20App\x20'+d);try{let _0xbd4189=await new Promise((_0x492d97,_0x161150)=>{r['zip'](_0x32ab6e(_0x5def1b),function(_0x45ec4c,_0xd5acbe){const _0x1a8b66=_0x1eea;return _0x45ec4c?_0x161150(_0x45ec4c):(_0xd5acbe[_0x1a8b66(0x121)](),_0x492d97(_0xd5acbe[_0x1a8b66(0x10c)]()));});}),_0x15a113={..._0x3b84a5,'appBuffer':_0xbd4189,'identifier':_0x265915},_0x14a7fe=await p(_0x15a113,_0x456a3e,_0x240ba1),_0x3b22b7=_0x14a7fe&&_0x14a7fe[_0x393585(0x131)]&&_0x14a7fe[_0x393585(0x131)][_0x393585(0x12a)];a[_0x393585(0x128)](_0x3b22b7,{'small':!0x0},function(_0x2f18c7){const _0x36d282=_0x393585;let _0x5c143d=''+e['bold'](i[_0x36d282(0x10f)]+_0x36d282(0x130)+_0x2f18c7);_0x240ba1[_0x36d282(0x13d)](e[_0x36d282(0x11c)][_0x36d282(0x141)]('Deploy\x20Done!')+_0x36d282(0x14a)),_0x240ba1[_0x36d282(0x13d)](e[_0x36d282(0x11c)][_0x36d282(0x141)](_0x36d282(0x13e))+'\x20'+_0x3a5505),_0x240ba1[_0x36d282(0x151)](_0x5c143d);});}catch(_0x190f31){_0x240ba1[_0x393585(0x10b)](_0x393585(0x12b)),l(_0x190f31);}};
1
+ 'use strict';function _0xb9f1(_0x6d673c,_0xfe6a68){const _0x384aba=_0x384a();return _0xb9f1=function(_0xb9f1a,_0x37c986){_0xb9f1a=_0xb9f1a-0x88;let _0x13af78=_0x384aba[_0xb9f1a];return _0x13af78;},_0xb9f1(_0x6d673c,_0xfe6a68);}const _0x4ab93e=_0xb9f1;(function(_0x347ca9,_0x475336){const _0x423d69=_0xb9f1,_0x39f007=_0x347ca9();while(!![]){try{const _0x17c241=-parseInt(_0x423d69(0xae))/0x1*(parseInt(_0x423d69(0x91))/0x2)+parseInt(_0x423d69(0xbb))/0x3+parseInt(_0x423d69(0xb1))/0x4*(parseInt(_0x423d69(0xb2))/0x5)+-parseInt(_0x423d69(0xa8))/0x6+parseInt(_0x423d69(0xa5))/0x7*(parseInt(_0x423d69(0x9c))/0x8)+parseInt(_0x423d69(0xb5))/0x9*(parseInt(_0x423d69(0x92))/0xa)+parseInt(_0x423d69(0x8d))/0xb*(parseInt(_0x423d69(0xb6))/0xc);if(_0x17c241===_0x475336)break;else _0x39f007['push'](_0x39f007['shift']());}catch(_0xa4ef88){_0x39f007['push'](_0x39f007['shift']());}}}(_0x384a,0x3cf36));const e=require(_0x4ab93e(0x9d)),r=require('file-api')[_0x4ab93e(0xb9)],t=require(_0x4ab93e(0xaf)),o=require(_0x4ab93e(0xbe)),a=require('qrcode-terminal'),i=require('../config'),s=require('../build/index'),n=require(_0x4ab93e(0xa3)),{errorExit:u}=require(_0x4ab93e(0x94)),{deploy:l}=require(_0x4ab93e(0xad)),{axiosClient:d}=require(_0x4ab93e(0xaa));module[_0x4ab93e(0xb0)]=async(_0x57666e={},_0x1f65ea)=>{const _0x57cc3f=_0x4ab93e;let _0xe055e9=[];_0x1f65ea[_0x57cc3f(0x8e)]();let _0x150f20=_0x359c6f=>{const _0x518745=_0x57cc3f;let _0x30e758=t[_0x518745(0xb8)]('['+Math[_0x518745(0x8f)](_0x359c6f)[_0x518745(0x96)]()[_0x518745(0xa6)](0x2,'\x20')+'%]')+_0x518745(0xbc);_0x1f65ea['statusText'](_0x30e758);};_0x150f20(0x0);try{await s(_0x57666e),_0x150f20(0x1e);let _0x5bd9ae=_0x57666e[_0x57cc3f(0xbd)],_0x4d138d=_0x57666e[_0x57cc3f(0xa9)]||'www',_0xd9db4a=_0x57666e[_0x57cc3f(0x8c)]||process['cwd'](),_0x5535bd=_0x57666e[_0x57cc3f(0x88)],_0x4a86d0=_0x57666e[_0x57cc3f(0x8b)],_0xb7c14d=()=>n[_0x57cc3f(0xb3)](i[_0x57cc3f(0x93)][_0x57cc3f(0x9f)]),_0x1b88a8=await l({'isCustom':_0x5bd9ae,'outputDir':_0x4d138d,'cwd':_0xd9db4a,'target':_0x5535bd,'description':_0x4a86d0,'ResumableClass':e,'FileClass':r,'getToken':_0xb7c14d,'request':async({url:_0x1a0385,method:_0x4f3f72,data:_0x160381})=>{const _0x29fd86=_0x57cc3f;let _0x57df08={'Authorization':_0x29fd86(0x99)+_0xb7c14d(),'cache-control':_0x29fd86(0xac)},_0x3bd478=(await d(_0x1a0385,{'method':_0x4f3f72,..._0x29fd86(0xb7)===_0x4f3f72?{'params':_0x160381}:{'data':_0x160381},'headers':_0x57df08,'withCredentials':!0x0}))['data'];if(!_0x3bd478||_0x3bd478['err']<0x0){if(_0x3bd478&&_0x3bd478['err']===i[_0x29fd86(0x9a)][_0x29fd86(0xa4)])throw Error(i[_0x29fd86(0xb4)][_0x29fd86(0xa4)]);throw Error(JSON[_0x29fd86(0xbf)](_0x3bd478));}return _0x3bd478[_0x29fd86(0xa2)];},'customLogger':{'info':_0x3ef2e6=>{const _0x55b254=_0x57cc3f;_0xe055e9[_0x55b254(0x9b)](_0x3ef2e6);},'warn':_0x5ea726=>{const _0x2e1b3a=_0x57cc3f;_0xe055e9[_0x2e1b3a(0x9b)](_0x5ea726);}},'onProgress':_0x3e212d=>{_0x150f20(0x1e+0x46*_0x3e212d/0x64);}}),_0x2f5c51=_0x1b88a8&&_0x1b88a8['data']&&_0x1b88a8[_0x57cc3f(0xa2)][_0x57cc3f(0x98)],_0x3aa180=_0x1b88a8&&_0x1b88a8[_0x57cc3f(0xa2)]&&_0x1b88a8['data'][_0x57cc3f(0xba)];a[_0x57cc3f(0xa1)](_0x2f5c51,{'small':!0x0},function(_0x17c72a){const _0x2cd538=_0x57cc3f;let _0x199785=''+t[_0x2cd538(0x90)](o[_0x2cd538(0xa7)]+_0x2cd538(0x97)+_0x17c72a);_0x1f65ea[_0x2cd538(0x8a)](t[_0x2cd538(0x90)][_0x2cd538(0xa0)]('Deploy\x20Done!')+'\x20✅'),_0x1f65ea[_0x2cd538(0x8a)](t['bold']['green'](_0x2cd538(0x89))+'\x20'+_0x3aa180),_0x1f65ea[_0x2cd538(0x95)](_0x199785);});}catch(_0x386527){_0x1f65ea[_0x57cc3f(0xab)](_0x57cc3f(0x9e)),u(_0x386527);}finally{for(let _0x520a28 of _0xe055e9)_0x1f65ea['text'](_0x520a28);}};function _0x384a(){const _0x2579da=['bold','11062DeBzgA','10xgwmwm','env','../utils/error','text','toString','\x20View\x20app\x20at:\x0a','appUrl','Bearer\x20','error_code','push','56oFDNKL','../utils/resumable','Error\x20deploying\x20your\x20app','token','green','generate','data','../utils/env','permission_denied','93485CnpAbW','padStart','info','2376276vCyLSX','outputDir','../utils/axios','statusError','no-cache','zmp-cli-core','69CzUEQx','chalk','exports','1540DuEAEz','2525RLbwFM','getEnv','error_msg','4054761DUjBln','12yHcSEl','GET','gray','File','versionId','122751kwFBUw','\x20Deploying\x20Your\x20App','customProject','log-symbols','stringify','versionStatus','Version:','statusDone','desc','cwd','2727813HQNhUW','statusStart','round'];_0x384a=function(){return _0x2579da;};return _0x384a();}
@@ -1 +1 @@
1
- 'use strict';function _0x2aa3(){const _0x25b494=['28877ZrldwK','desc','list','6RCjZGP','versionStatus','1465096uDsbmk','Description\x20is\x20required!','map','This\x20is\x20not\x20a\x20ZMP\x20Project,\x20do\x20you\x20want\x20to\x20continue?','lodash','Server\x20type\x20is\x20required!','capitalize','then','keys','27uVTsFU','outputDir','length','../../utils/constants','inquirer','1867476aNUoHA','1607440twCiGS','quit','prompt','exports','customProject','319557YdPlRg','1139621GbIwJo','www','resolve','input','Description:','583016pYgstc'];_0x2aa3=function(){return _0x25b494;};return _0x2aa3();}function _0x41c7(_0x18567c,_0x2e2844){const _0x2aa382=_0x2aa3();return _0x41c7=function(_0x41c75c,_0x230262){_0x41c75c=_0x41c75c-0xcd;let _0x32a31e=_0x2aa382[_0x41c75c];return _0x32a31e;},_0x41c7(_0x18567c,_0x2e2844);}const _0xf76c1e=_0x41c7;(function(_0x507e06,_0xd1ef32){const _0x3d1101=_0x41c7,_0xfb8384=_0x507e06();while(!![]){try{const _0x39b00d=parseInt(_0x3d1101(0xe6))/0x1+-parseInt(_0x3d1101(0xe9))/0x2*(parseInt(_0x3d1101(0xdf))/0x3)+parseInt(_0x3d1101(0xe5))/0x4+parseInt(_0x3d1101(0xda))/0x5+-parseInt(_0x3d1101(0xd9))/0x6+-parseInt(_0x3d1101(0xe0))/0x7+parseInt(_0x3d1101(0xeb))/0x8*(parseInt(_0x3d1101(0xd4))/0x9);if(_0x39b00d===_0xd1ef32)break;else _0xfb8384['push'](_0xfb8384['shift']());}catch(_0x5a05fb){_0xfb8384['push'](_0xfb8384['shift']());}}}(_0x2aa3,0x3d814));const e=require(_0xf76c1e(0xd8)),{versionStatus:t}=require(_0xf76c1e(0xd7)),i=require(_0xf76c1e(0xcf)),r=[{'type':_0xf76c1e(0xe8),'name':_0xf76c1e(0xea),'message':'What\x20version\x20status\x20are\x20you\x20deploying?','choices':Object[_0xf76c1e(0xd3)](t)[_0xf76c1e(0xcd)](_0x333611=>({'name':i[_0xf76c1e(0xd1)](_0x333611),'value':t[_0x333611]})),'when':_0x134058=>!_0x134058[_0xf76c1e(0xdb)],'validate':_0x52b5ca=>new Promise((_0x11137f,_0x174d13)=>{const _0x2401e5=_0xf76c1e;_0x52b5ca&&_0x52b5ca[_0x2401e5(0xd6)]?_0x11137f(!0x0):_0x174d13(Error(_0x2401e5(0xd0)));})},{'type':_0xf76c1e(0xe3),'name':_0xf76c1e(0xe7),'message':_0xf76c1e(0xe4),'when':_0x3bc316=>!_0x3bc316[_0xf76c1e(0xdb)],'validate':_0x2f6fb9=>new Promise((_0x204ac0,_0x2f3356)=>{const _0x66385a=_0xf76c1e;_0x2f6fb9&&_0x2f6fb9['length']?_0x204ac0(!0x0):_0x2f3356(Error(_0x66385a(0xec)));})}],s=[{'type':_0xf76c1e(0xe8),'name':'quit','message':_0xf76c1e(0xce),'choices':[{'name':'Deploy\x20your\x20existing\x20project','value':!0x1},{'name':'Quit','value':!0x0}]},{'type':_0xf76c1e(0xe3),'name':_0xf76c1e(0xd5),'message':'Where\x20is\x20your\x20dist\x20folder?','when':_0x490027=>!_0x490027[_0xf76c1e(0xdb)],'default':_0xf76c1e(0xe1)}];module[_0xf76c1e(0xdd)]=async function(_0x1b1e9e){const _0x2c0e80=_0xf76c1e;let _0x1dfd54=_0x1b1e9e?[...r]:[...s,...r];return e[_0x2c0e80(0xdc)](_0x1dfd54)[_0x2c0e80(0xd2)](_0x20efbf=>(_0x20efbf[_0x2c0e80(0xde)]=!0x1,!0x1===_0x20efbf[_0x2c0e80(0xdb)]&&(_0x20efbf[_0x2c0e80(0xde)]=!0x0),Promise[_0x2c0e80(0xe2)](_0x20efbf)));};
1
+ 'use strict';const _0x1fe514=_0x8350;function _0x8350(_0x2aba63,_0x317c5c){const _0xe8cca7=_0xe8cc();return _0x8350=function(_0x8350b4,_0x197047){_0x8350b4=_0x8350b4-0x16e;let _0x580e53=_0xe8cca7[_0x8350b4];return _0x580e53;},_0x8350(_0x2aba63,_0x317c5c);}function _0xe8cc(){const _0x545f3a=['list','650140SyIRfM','map','exports','outputDir','customProject','95388Qbpxhv','Description:','../../utils/constants','15tCrlfx','Where\x20is\x20your\x20dist\x20folder?','This\x20is\x20not\x20a\x20ZMP\x20Project,\x20do\x20you\x20want\x20to\x20continue?','2028861CgtSlb','72496wGmigh','12cLysZm','21JzGTTb','62139DzdRFA','versionStatus','8wgHvXP','136928vORwXa','lodash','resolve','desc','length','quit','40034EHzkIa'];_0xe8cc=function(){return _0x545f3a;};return _0xe8cc();}(function(_0x11cdf6,_0x4690a3){const _0x46dc0d=_0x8350,_0x44bc82=_0x11cdf6();while(!![]){try{const _0x3ae2ff=-parseInt(_0x46dc0d(0x178))/0x1*(-parseInt(_0x46dc0d(0x187))/0x2)+-parseInt(_0x46dc0d(0x16e))/0x3*(-parseInt(_0x46dc0d(0x186))/0x4)+-parseInt(_0x46dc0d(0x182))/0x5*(-parseInt(_0x46dc0d(0x17f))/0x6)+-parseInt(_0x46dc0d(0x16f))/0x7*(-parseInt(_0x46dc0d(0x171))/0x8)+-parseInt(_0x46dc0d(0x185))/0x9+-parseInt(_0x46dc0d(0x17a))/0xa+-parseInt(_0x46dc0d(0x172))/0xb;if(_0x3ae2ff===_0x4690a3)break;else _0x44bc82['push'](_0x44bc82['shift']());}catch(_0x2e3b34){_0x44bc82['push'](_0x44bc82['shift']());}}}(_0xe8cc,0x1d7b0));const e=require('inquirer'),{versionStatus:t}=require(_0x1fe514(0x181)),i=require(_0x1fe514(0x173)),r=[{'type':_0x1fe514(0x179),'name':_0x1fe514(0x170),'message':'What\x20version\x20status\x20are\x20you\x20deploying?','choices':Object['keys'](t)[_0x1fe514(0x17b)](_0x67d8f0=>({'name':i['capitalize'](_0x67d8f0),'value':t[_0x67d8f0]})),'when':_0x282c3a=>!_0x282c3a['quit'],'validate':_0x1aad03=>new Promise((_0xacd216,_0x19467e)=>{const _0x28efd3=_0x1fe514;_0x1aad03&&_0x1aad03[_0x28efd3(0x176)]?_0xacd216(!0x0):_0x19467e(Error('Server\x20type\x20is\x20required!'));})},{'type':'input','name':_0x1fe514(0x175),'message':_0x1fe514(0x180),'when':_0x553f50=>!_0x553f50[_0x1fe514(0x177)],'validate':_0x4517ed=>new Promise((_0x2ba3a7,_0xe7b4c9)=>{_0x4517ed&&_0x4517ed['length']?_0x2ba3a7(!0x0):_0xe7b4c9(Error('Description\x20is\x20required!'));})}],s=[{'type':'list','name':_0x1fe514(0x177),'message':_0x1fe514(0x184),'choices':[{'name':'Deploy\x20your\x20existing\x20project','value':!0x1},{'name':'Quit','value':!0x0}]},{'type':'input','name':_0x1fe514(0x17d),'message':_0x1fe514(0x183),'when':_0x580a13=>!_0x580a13[_0x1fe514(0x177)],'default':'www'}];module[_0x1fe514(0x17c)]=async function(_0x494950){const _0x1cbc28=_0x1fe514;let _0x5c4bfb=_0x494950?[...r]:[...s,...r];return e['prompt'](_0x5c4bfb)['then'](_0x3995f5=>(_0x3995f5[_0x1cbc28(0x17e)]=!0x1,!0x1===_0x3995f5[_0x1cbc28(0x177)]&&(_0x3995f5[_0x1cbc28(0x17e)]=!0x0),Promise[_0x1cbc28(0x174)](_0x3995f5)));};
package/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';function _0x4d91(){const _0x35db49=['./utils/constants','<command>\x20[options]','quit','Deploy\x20testing\x20version','./login/index','./migrate/utils/get-options','Init\x20ZMP\x20project','./deploy/utils/get-options','-ios,\x20--ios','3348650wBCwtF','chalk','Version:\x20','./start/index','./utils/fs-extra','3426210hvAhmA','\x20This\x20is\x20not\x20ZMP\x20project','Run\x20on\x20ios','mode','argv','2432800rkRFDQ','-o,\x20--outputDir\x20<output>','./utils/log','skipUpdate','includes','./utils/get-current-project','127099bNevbf','action','./config','error','outputHelp','description','writeFileSync','start','60zlKINU','full','device','iosHostName','resolve','./utils/check-update','login','ios','.local','11523490itFjkq','cwd','hostname','Login\x20ZMP','textSync','migrate','-t,\x20--testing','TESTING','NW.js\x20module\x20is\x20not\x20found.\x20Please\x20run\x20\x22npm\x20install\x20-g\x20nw@sdk\x22','./create/utils/get-options','Passive\x20mode\x20(non-interactive)','versionStatus','-P,\x20--port\x20<n>','figlet','./create/index','build','Specify\x20server\x20port.\x20By\x20default\x20it\x20is\x203000','-e,\x20--existing','-iosH,\x20--ios-host-name\x20<n>','version','./package.json','text','code','parse','ZMP\x20CLI','-Z,\x20--zalo-app','passive','Skip\x20checking\x20for\x20update\x20of\x20zmp-cli','length','Device\x20mode','Custom\x20entry\x20point,\x20default\x20is\x20#app','-p,\x20--passive','usage','clear','log','78FykNIU','command','./migrate/index','option','./utils/spinner','frame','-m,\x20--desc\x20<message>','-M,\x20--mode\x20<m>','cyan','existing','showMobileUi','8553OSFMqB','Deploy\x20existing\x20project','2721jMjAkT','exit','-r,\x20--root-element\x20<selector>','Specify\x20server\x20hostname.\x20By\x20default\x20it\x20is\x20os.hostname','1304AKENNk','Start\x20a\x20ZMP\x20project','Build\x20a\x20ZMP\x20project'];_0x4d91=function(){return _0x35db49;};return _0x4d91();}const _0x38e81d=_0x7904;(function(_0x31a77c,_0x335786){const _0x3a4b05=_0x7904,_0x55e4a2=_0x31a77c();while(!![]){try{const _0x1c7b0d=parseInt(_0x3a4b05(0x1c6))/0x1*(-parseInt(_0x3a4b05(0x18d))/0x2)+parseInt(_0x3a4b05(0x1c4))/0x3*(-parseInt(_0x3a4b05(0x1ca))/0x4)+parseInt(_0x3a4b05(0x1d6))/0x5+-parseInt(_0x3a4b05(0x1b9))/0x6*(parseInt(_0x3a4b05(0x185))/0x7)+parseInt(_0x3a4b05(0x17f))/0x8+-parseInt(_0x3a4b05(0x17a))/0x9+parseInt(_0x3a4b05(0x196))/0xa;if(_0x1c7b0d===_0x335786)break;else _0x55e4a2['push'](_0x55e4a2['shift']());}catch(_0x3065cd){_0x55e4a2['push'](_0x55e4a2['shift']());}}}(_0x4d91,0x79ad8));const e=require(_0x38e81d(0x1d7)),o=require(_0x38e81d(0x1b7)),t=require(_0x38e81d(0x1a3)),i=require('commander'),s=require('log-symbols'),r=require(_0x38e81d(0x179)),n=require(_0x38e81d(0x192)),a=require(_0x38e81d(0x1bd)),c=require(_0x38e81d(0x181)),p=require(_0x38e81d(0x184)),u=require(_0x38e81d(0x19f)),l=require('./login/utils/get-options'),d=require(_0x38e81d(0x1d4)),m=require(_0x38e81d(0x1d2)),g=require(_0x38e81d(0x1d1)),x=require(_0x38e81d(0x1a4)),y=require(_0x38e81d(0x178)),w=require('./build/index'),v=require('./deploy/index'),f=require('./sync/index'),q=require(_0x38e81d(0x1bb)),h=require('os'),M=require(_0x38e81d(0x1aa)),P=require(_0x38e81d(0x187)),{versionStatus:j}=require(_0x38e81d(0x1cd)),Z=process[_0x38e81d(0x197)](),S={'statusStart':_0x2f3cf5=>a[_0x38e81d(0x18c)](_0x2f3cf5),'statusDone':_0x224347=>a['done'](_0x224347),'statusText':_0x1facab=>a['text'](_0x1facab),'statusError':_0xc7a1a8=>a['error'](_0xc7a1a8),'text':_0x168a65=>c[_0x38e81d(0x1ab)](_0x168a65),'error':_0x87f7ed=>c[_0x38e81d(0x188)](_0x87f7ed),'showOnUI':()=>{}};function _0x7904(_0x19bbb2,_0x363f9f){const _0x4d917d=_0x4d91();return _0x7904=function(_0x790476,_0x3933d7){_0x790476=_0x790476-0x178;let _0x7ad845=_0x4d917d[_0x790476];return _0x7ad845;},_0x7904(_0x19bbb2,_0x363f9f);}o(),r['existsSync'](P['root_env']())||r[_0x38e81d(0x18b)](P['root_env']()),console['log'](e[_0x38e81d(0x1c1)](t[_0x38e81d(0x19a)](_0x38e81d(0x1ae),{'horizontalLayout':_0x38e81d(0x18e),'verticalLayout':_0x38e81d(0x18e)})),e[_0x38e81d(0x1c1)](_0x38e81d(0x1d8)+M[_0x38e81d(0x1a9)]+'\x0a')),i[_0x38e81d(0x1a9)](M[_0x38e81d(0x1a9)])['usage'](_0x38e81d(0x1ce))[_0x38e81d(0x1ba)]('init')[_0x38e81d(0x1bc)]('--skipUpdate',_0x38e81d(0x1b1))[_0x38e81d(0x18a)](_0x38e81d(0x1d3))[_0x38e81d(0x186)](async _0xb8fdbc=>{const _0x4ef0dd=_0x38e81d;_0xb8fdbc[_0x4ef0dd(0x182)]||await n();let _0x36a206=await l();await g({'cwd':Z,..._0x36a206},S);let _0x5d642c=await u();await x({'cwd':Z,..._0x5d642c},S),process['exit'](0x0);}),i[_0x38e81d(0x1b6)](_0x38e81d(0x1ce))['command'](_0x38e81d(0x193))['description'](_0x38e81d(0x199))[_0x38e81d(0x186)](async()=>{let _0x10e9e1=await l();await g({'cwd':Z,..._0x10e9e1},S),process['exit'](0x0);}),i[_0x38e81d(0x1b6)](_0x38e81d(0x1ce))[_0x38e81d(0x1ba)]('start')[_0x38e81d(0x1bc)](_0x38e81d(0x1a8),_0x38e81d(0x1c9))[_0x38e81d(0x1bc)](_0x38e81d(0x1a2),_0x38e81d(0x1a6),parseInt)['option'](_0x38e81d(0x1af),'Preview\x20on\x20Zalo')[_0x38e81d(0x1bc)](_0x38e81d(0x1d5),_0x38e81d(0x17c))[_0x38e81d(0x1bc)]('-nF,\x20--no-frame','Run\x20without\x20Zalo\x20frame')[_0x38e81d(0x1bc)]('-D,\x20--device',_0x38e81d(0x1b3))[_0x38e81d(0x1bc)]('-M,\x20--mode\x20<m>','Env\x20mode')[_0x38e81d(0x18a)](_0x38e81d(0x1cb))['action'](async _0xbdb16e=>{const _0x256c45=_0x38e81d;if(p(Z)||(c[_0x256c45(0x1ab)](s[_0x256c45(0x188)]+_0x256c45(0x17b)),process[_0x256c45(0x1c7)](0x1)),_0xbdb16e&&_0xbdb16e[_0x256c45(0x1c3)])try{console[_0x256c45(0x1b8)](require[_0x256c45(0x191)]('nw'));}catch(_0x7fd6e8){console['error'](_0x256c45(0x19e)),process[_0x256c45(0x1c7)](_0x7fd6e8[_0x256c45(0x1ac)]);}let _0x359890=h[_0x256c45(0x198)]();_0x359890[_0x256c45(0x183)](_0x256c45(0x195))||(_0x359890=_0x359890+_0x256c45(0x195)),await y({'cwd':Z,'port':_0xbdb16e&&_0xbdb16e['port']||0xbb8,'iosHostName':_0xbdb16e&&_0xbdb16e[_0x256c45(0x190)]||_0x359890,'showMobileUI':_0xbdb16e&&_0xbdb16e[_0x256c45(0x1c3)]||!0x1,'previewOnZalo':_0xbdb16e&&_0xbdb16e['zaloApp']||!0x1,'ios':_0xbdb16e&&_0xbdb16e[_0x256c45(0x194)]||!0x1,'mode':_0xbdb16e&&_0xbdb16e[_0x256c45(0x17d)],'frame':!!_0xbdb16e&&(void 0x0===_0xbdb16e['frame']||null===_0xbdb16e[_0x256c45(0x1be)])||_0xbdb16e[_0x256c45(0x1be)],'deviceMode':_0xbdb16e&&_0xbdb16e[_0x256c45(0x18f)]||!0x1},S),process[_0x256c45(0x1c7)](0x0);}),i[_0x38e81d(0x1b6)](_0x38e81d(0x1ce))[_0x38e81d(0x1ba)](_0x38e81d(0x1a5))[_0x38e81d(0x1bc)](_0x38e81d(0x1c0),'Env\x20mode')['description'](_0x38e81d(0x1cc))[_0x38e81d(0x186)](async _0x5e9f72=>{const _0x54232a=_0x38e81d;p(Z)||(c[_0x54232a(0x1ab)](s[_0x54232a(0x188)]+_0x54232a(0x17b)),process['exit'](0x1)),await w({'cwd':Z,'mode':_0x5e9f72&&_0x5e9f72['mode']},S),process[_0x54232a(0x1c7)](0x0);}),i[_0x38e81d(0x1b6)](_0x38e81d(0x1ce))[_0x38e81d(0x1ba)]('deploy')[_0x38e81d(0x1bc)](_0x38e81d(0x1c0),'Env\x20mode')['option'](_0x38e81d(0x1b5),_0x38e81d(0x1a0))[_0x38e81d(0x1bc)](_0x38e81d(0x1a7),_0x38e81d(0x1c5))['option'](_0x38e81d(0x19c),_0x38e81d(0x1d0))[_0x38e81d(0x1bc)](_0x38e81d(0x1bf),'Version\x20description')['option'](_0x38e81d(0x180),'Output\x20folder.\x20Default\x20www')['option'](_0x38e81d(0x1a2),'Specify\x20UI\x20server\x20port.\x20By\x20default\x20it\x20is\x203001',parseInt)[_0x38e81d(0x18a)]('Deploy\x20a\x20ZMP\x20project')[_0x38e81d(0x186)](async _0x16327b=>{const _0x192fba=_0x38e81d;let _0x230991=p(Z),_0x22a1dd=_0x16327b;_0x16327b[_0x192fba(0x1c2)]?_0x22a1dd['customProject']=!0x0:_0x16327b[_0x192fba(0x1b0)]||(_0x22a1dd=await d(_0x230991)),_0x16327b['testing']&&(_0x22a1dd[_0x192fba(0x1a1)]=j[_0x192fba(0x19d)]),_0x22a1dd[_0x192fba(0x1cf)]&&process[_0x192fba(0x1c7)](0x1),await v({'cwd':Z,'mode':_0x16327b&&_0x16327b[_0x192fba(0x17d)],..._0x22a1dd},S),process[_0x192fba(0x1c7)](0x0);}),i[_0x38e81d(0x1b6)](_0x38e81d(0x1ce))[_0x38e81d(0x1ba)]('sync-config\x20<source>')['option'](_0x38e81d(0x1c8),_0x38e81d(0x1b4))[_0x38e81d(0x18a)]('Automatically\x20update\x20app-config.json\x20resources\x20list\x20based\x20on\x20index.html')[_0x38e81d(0x186)](async(_0x505800,_0xd9f16)=>{const _0x26b738=_0x38e81d;await f({'source':_0x505800,..._0xd9f16},S),process[_0x26b738(0x1c7)](0x0);}),i[_0x38e81d(0x1b6)](_0x38e81d(0x1ce))[_0x38e81d(0x1ba)](_0x38e81d(0x19b))['action'](async function(){const _0x11a7c1=_0x38e81d;let _0x14bf3a=p(Z);_0x14bf3a||(S[_0x11a7c1(0x1ab)](s[_0x11a7c1(0x188)]+_0x11a7c1(0x17b)),process[_0x11a7c1(0x1c7)](0x1));let _0x4cc7eb=await m();await q({'cwd':Z,..._0x4cc7eb,..._0x14bf3a},S),process['exit'](0x0);}),i['on']('command:*',_0x111109=>{const _0x3f908e=_0x38e81d;i[_0x3f908e(0x189)](),c[_0x3f908e(0x1ab)]('\x0a\x20Unknown\x20command\x20'+_0x111109);}),i[_0x38e81d(0x1ad)](process[_0x38e81d(0x17e)]),i['args'][_0x38e81d(0x1b2)]||i[_0x38e81d(0x189)]();
2
+ 'use strict';function _0x14a5(_0x5e258e,_0xf2589c){const _0xf857df=_0xf857();return _0x14a5=function(_0x14a5ea,_0x430f3e){_0x14a5ea=_0x14a5ea-0x1af;let _0x451845=_0xf857df[_0x14a5ea];return _0x451845;},_0x14a5(_0x5e258e,_0xf2589c);}const _0x1419ed=_0x14a5;(function(_0x30e4f1,_0x2e1033){const _0x48159e=_0x14a5,_0x195465=_0x30e4f1();while(!![]){try{const _0x267598=parseInt(_0x48159e(0x1c0))/0x1+parseInt(_0x48159e(0x205))/0x2*(parseInt(_0x48159e(0x1f8))/0x3)+-parseInt(_0x48159e(0x1e3))/0x4*(-parseInt(_0x48159e(0x1fe))/0x5)+parseInt(_0x48159e(0x1e7))/0x6*(parseInt(_0x48159e(0x1ba))/0x7)+-parseInt(_0x48159e(0x213))/0x8*(parseInt(_0x48159e(0x1b0))/0x9)+parseInt(_0x48159e(0x1c4))/0xa+-parseInt(_0x48159e(0x1bd))/0xb;if(_0x267598===_0x2e1033)break;else _0x195465['push'](_0x195465['shift']());}catch(_0x1109c0){_0x195465['push'](_0x195465['shift']());}}}(_0xf857,0x5aa4e));const e=require(_0x1419ed(0x1f9)),o=require(_0x1419ed(0x1be)),t=require(_0x1419ed(0x1cc)),i=require('commander'),s=require('log-symbols'),r=require(_0x1419ed(0x204)),n=require(_0x1419ed(0x1b8)),a=require('./utils/spinner'),c=require(_0x1419ed(0x214)),p=require(_0x1419ed(0x1d4)),u=require(_0x1419ed(0x1dd)),l=require('./login/utils/get-options'),d=require('./deploy/utils/get-options'),m=require(_0x1419ed(0x200)),g=require(_0x1419ed(0x20a)),x=require(_0x1419ed(0x1ec)),y=require(_0x1419ed(0x20f)),w=require(_0x1419ed(0x1ef)),v=require(_0x1419ed(0x1e8)),f=require('./sync/index'),q=require(_0x1419ed(0x1b6)),h=require('os'),M=require(_0x1419ed(0x1d9)),P=require('./config'),{versionStatus:j}=require('./utils/constants'),Z=process[_0x1419ed(0x1c3)](),S={'statusStart':_0x1fa612=>a[_0x1419ed(0x1df)](_0x1fa612),'statusDone':_0x452069=>a[_0x1419ed(0x1d1)](_0x452069),'statusText':_0x2b6be4=>a[_0x1419ed(0x218)](_0x2b6be4),'statusError':_0x9e0c5b=>a['error'](_0x9e0c5b),'text':_0x227b9a=>c[_0x1419ed(0x218)](_0x227b9a),'error':_0x111d58=>c[_0x1419ed(0x212)](_0x111d58),'showOnUI':()=>{}};o(),r[_0x1419ed(0x1fd)](P[_0x1419ed(0x1d0)]())||r[_0x1419ed(0x1fb)](P[_0x1419ed(0x1d0)]()),console[_0x1419ed(0x1eb)](e[_0x1419ed(0x211)](t[_0x1419ed(0x1c6)](_0x1419ed(0x1e2),{'horizontalLayout':_0x1419ed(0x208),'verticalLayout':_0x1419ed(0x208)})),e[_0x1419ed(0x211)](_0x1419ed(0x202)+M[_0x1419ed(0x207)]+'\x0a')),i['version'](M[_0x1419ed(0x207)])[_0x1419ed(0x1e5)](_0x1419ed(0x1f7))[_0x1419ed(0x1b7)](_0x1419ed(0x1af))[_0x1419ed(0x216)](_0x1419ed(0x1e6),_0x1419ed(0x1d6))[_0x1419ed(0x1ee)](_0x1419ed(0x1db))['action'](async _0x21eebd=>{const _0x52b163=_0x1419ed;_0x21eebd[_0x52b163(0x1c1)]||await n();let _0x3cb0b4=await l();await g({'cwd':Z,..._0x3cb0b4},S);let _0x3543f9=await u();await x({'cwd':Z,..._0x3543f9},S),process['exit'](0x0);}),i[_0x1419ed(0x1e5)]('<command>\x20[options]')[_0x1419ed(0x1b7)]('login')[_0x1419ed(0x1ee)](_0x1419ed(0x1cf))['action'](async()=>{let _0x53a4d2=await l();await g({'cwd':Z,..._0x53a4d2},S),process['exit'](0x0);}),i[_0x1419ed(0x1e5)](_0x1419ed(0x1f7))['command'](_0x1419ed(0x1df))['option'](_0x1419ed(0x1cb),_0x1419ed(0x1bf))[_0x1419ed(0x216)](_0x1419ed(0x1de),_0x1419ed(0x1b9),parseInt)[_0x1419ed(0x216)](_0x1419ed(0x1c2),_0x1419ed(0x1f2))[_0x1419ed(0x216)]('-ios,\x20--ios',_0x1419ed(0x1b4))[_0x1419ed(0x216)](_0x1419ed(0x1d2),_0x1419ed(0x1ff))[_0x1419ed(0x216)](_0x1419ed(0x1b5),'Device\x20mode')[_0x1419ed(0x216)](_0x1419ed(0x1bb),_0x1419ed(0x1d5))['description']('Start\x20a\x20ZMP\x20project')[_0x1419ed(0x1ea)](async _0x4666f6=>{const _0x31cbfc=_0x1419ed;if(p(Z)||(c['text'](s[_0x31cbfc(0x212)]+_0x31cbfc(0x1f6)),process[_0x31cbfc(0x1bc)](0x1)),_0x4666f6&&_0x4666f6[_0x31cbfc(0x1ca)])try{console['log'](require[_0x31cbfc(0x1e1)]('nw'));}catch(_0x155a3b){console['error'](_0x31cbfc(0x1c7)),process[_0x31cbfc(0x1bc)](_0x155a3b[_0x31cbfc(0x217)]);}let _0x196f73=h[_0x31cbfc(0x1f5)]();_0x196f73[_0x31cbfc(0x1e0)]('.local')||(_0x196f73=_0x196f73+'.local'),await y({'cwd':Z,'port':_0x4666f6&&_0x4666f6['port']||0xbb8,'iosHostName':_0x4666f6&&_0x4666f6[_0x31cbfc(0x1fc)]||_0x196f73,'showMobileUI':_0x4666f6&&_0x4666f6[_0x31cbfc(0x1ca)]||!0x1,'previewOnZalo':_0x4666f6&&_0x4666f6[_0x31cbfc(0x1dc)]||!0x1,'ios':_0x4666f6&&_0x4666f6['ios']||!0x1,'mode':_0x4666f6&&_0x4666f6[_0x31cbfc(0x1e4)],'frame':!!_0x4666f6&&(void 0x0===_0x4666f6[_0x31cbfc(0x1c8)]||null===_0x4666f6[_0x31cbfc(0x1c8)])||_0x4666f6[_0x31cbfc(0x1c8)],'deviceMode':_0x4666f6&&_0x4666f6[_0x31cbfc(0x206)]||!0x1},S),process[_0x31cbfc(0x1bc)](0x0);}),i[_0x1419ed(0x1e5)](_0x1419ed(0x1f7))[_0x1419ed(0x1b7)](_0x1419ed(0x210))[_0x1419ed(0x216)](_0x1419ed(0x1bb),_0x1419ed(0x1d5))['description'](_0x1419ed(0x1b2))[_0x1419ed(0x1ea)](async _0x166e43=>{const _0x399f51=_0x1419ed;p(Z)||(c[_0x399f51(0x218)](s['error']+_0x399f51(0x1f6)),process['exit'](0x1)),await w({'cwd':Z,'mode':_0x166e43&&_0x166e43[_0x399f51(0x1e4)]},S),process[_0x399f51(0x1bc)](0x0);}),i[_0x1419ed(0x1e5)](_0x1419ed(0x1f7))[_0x1419ed(0x1b7)](_0x1419ed(0x1b3))[_0x1419ed(0x216)](_0x1419ed(0x1bb),_0x1419ed(0x1d5))[_0x1419ed(0x216)](_0x1419ed(0x1ed),_0x1419ed(0x1f3))['option'](_0x1419ed(0x1da),'Deploy\x20existing\x20project')[_0x1419ed(0x216)](_0x1419ed(0x1f4),_0x1419ed(0x215))[_0x1419ed(0x216)](_0x1419ed(0x1c5),'Version\x20description')[_0x1419ed(0x216)](_0x1419ed(0x1c9),_0x1419ed(0x20e))[_0x1419ed(0x216)](_0x1419ed(0x1de),_0x1419ed(0x1cd),parseInt)['description'](_0x1419ed(0x1fa))[_0x1419ed(0x1ea)](async _0x41a4e3=>{const _0x4075e6=_0x1419ed;let _0x361ebd=p(Z),_0x4ea8a1=_0x41a4e3;_0x41a4e3[_0x4075e6(0x20c)]?_0x4ea8a1[_0x4075e6(0x1f0)]=!0x0:_0x41a4e3[_0x4075e6(0x20d)]||(_0x4ea8a1=await d(_0x361ebd)),_0x41a4e3[_0x4075e6(0x1ce)]&&(_0x4ea8a1[_0x4075e6(0x1d8)]=j[_0x4075e6(0x20b)]),_0x4ea8a1[_0x4075e6(0x1b1)]&&process[_0x4075e6(0x1bc)](0x1),await v({'cwd':Z,'mode':_0x41a4e3&&_0x41a4e3[_0x4075e6(0x1e4)],..._0x4ea8a1},S),process[_0x4075e6(0x1bc)](0x0);}),i[_0x1419ed(0x1e5)]('<command>\x20[options]')[_0x1419ed(0x1b7)]('sync-config\x20<source>')['option'](_0x1419ed(0x1d3),'Custom\x20entry\x20point,\x20default\x20is\x20#app')['description']('Automatically\x20update\x20app-config.json\x20resources\x20list\x20based\x20on\x20index.html')[_0x1419ed(0x1ea)](async(_0x547460,_0x4dee5e)=>{const _0x27bae9=_0x1419ed;await f({'source':_0x547460,..._0x4dee5e},S),process[_0x27bae9(0x1bc)](0x0);}),i[_0x1419ed(0x1e5)](_0x1419ed(0x1f7))[_0x1419ed(0x1b7)](_0x1419ed(0x1f1))[_0x1419ed(0x1ea)](async function(){const _0x21a009=_0x1419ed;let _0x7b52a5=p(Z);_0x7b52a5||(S[_0x21a009(0x218)](s[_0x21a009(0x212)]+_0x21a009(0x1f6)),process[_0x21a009(0x1bc)](0x1));let _0x15e36b=await m();await q({'cwd':Z,..._0x15e36b,..._0x7b52a5},S),process[_0x21a009(0x1bc)](0x0);}),i['on']('command:*',_0x87f6c5=>{const _0x541b08=_0x1419ed;i[_0x541b08(0x1e9)](),c['text']('\x0a\x20Unknown\x20command\x20'+_0x87f6c5);}),i[_0x1419ed(0x209)](process[_0x1419ed(0x201)]),i[_0x1419ed(0x1d7)][_0x1419ed(0x203)]||i[_0x1419ed(0x1e9)]();function _0xf857(){const _0x31253d=['build','cyan','error','1048EHhwwV','./utils/log','Deploy\x20testing\x20version','option','code','text','init','28521ZLAHQI','quit','Build\x20a\x20ZMP\x20project','deploy','Run\x20on\x20ios','-D,\x20--device','./migrate/index','command','./utils/check-update','Specify\x20server\x20port.\x20By\x20default\x20it\x20is\x203000','53921VzNCmI','-M,\x20--mode\x20<m>','exit','20153023TRIIWL','clear','Specify\x20server\x20hostname.\x20By\x20default\x20it\x20is\x20os.hostname','403446WJNHOV','skipUpdate','-Z,\x20--zalo-app','cwd','5705150ZKwEqZ','-m,\x20--desc\x20<message>','textSync','NW.js\x20module\x20is\x20not\x20found.\x20Please\x20run\x20\x22npm\x20install\x20-g\x20nw@sdk\x22','frame','-o,\x20--outputDir\x20<output>','showMobileUi','-iosH,\x20--ios-host-name\x20<n>','figlet','Specify\x20UI\x20server\x20port.\x20By\x20default\x20it\x20is\x203001','testing','Login\x20ZMP','root_env','done','-nF,\x20--no-frame','-r,\x20--root-element\x20<selector>','./utils/get-current-project','Env\x20mode','Skip\x20checking\x20for\x20update\x20of\x20zmp-cli','args','versionStatus','./package.json','-e,\x20--existing','Init\x20ZMP\x20project','zaloApp','./create/utils/get-options','-P,\x20--port\x20<n>','start','includes','resolve','ZMP\x20CLI','2824GiORFP','mode','usage','--skipUpdate','342TURFTU','./deploy/index','outputHelp','action','log','./create/index','-p,\x20--passive','description','./build/index','customProject','migrate','Preview\x20on\x20Zalo','Passive\x20mode\x20(non-interactive)','-t,\x20--testing','hostname','\x20This\x20is\x20not\x20ZMP\x20project','<command>\x20[options]','111354ymPOvk','chalk','Deploy\x20a\x20ZMP\x20project','writeFileSync','iosHostName','existsSync','5120jARcFN','Run\x20without\x20Zalo\x20frame','./migrate/utils/get-options','argv','Version:\x20','length','./utils/fs-extra','26EFLaNC','device','version','full','parse','./login/index','TESTING','existing','passive','Output\x20folder.\x20Default\x20www','./start/index'];_0xf857=function(){return _0x31253d;};return _0xf857();}
package/login/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';function _0x2c6f(_0x1f96ca,_0x12175d){const _0x10dcb7=_0x10dc();return _0x2c6f=function(_0x2c6f12,_0x505ffc){_0x2c6f12=_0x2c6f12-0xfc;let _0x9f294e=_0x10dcb7[_0x2c6f12];return _0x9f294e;},_0x2c6f(_0x1f96ca,_0x12175d);}const _0x37b51f=_0x2c6f;(function(_0x174d80,_0x58d193){const _0xd151d0=_0x2c6f,_0x35e272=_0x174d80();while(!![]){try{const _0x2c05c3=parseInt(_0xd151d0(0x10c))/0x1+-parseInt(_0xd151d0(0x117))/0x2*(-parseInt(_0xd151d0(0x106))/0x3)+-parseInt(_0xd151d0(0x122))/0x4*(-parseInt(_0xd151d0(0x112))/0x5)+parseInt(_0xd151d0(0x12c))/0x6+-parseInt(_0xd151d0(0x127))/0x7*(-parseInt(_0xd151d0(0x115))/0x8)+parseInt(_0xd151d0(0x132))/0x9*(parseInt(_0xd151d0(0x108))/0xa)+parseInt(_0xd151d0(0x114))/0xb*(-parseInt(_0xd151d0(0x113))/0xc);if(_0x2c05c3===_0x58d193)break;else _0x35e272['push'](_0x35e272['shift']());}catch(_0x4e04f1){_0x35e272['push'](_0x35e272['shift']());}}}(_0x10dc,0xecedb));function _0x10dc(){const _0x26ef74=['../utils/env','login','loginUrl','token','checkStatus','decode','statusDone','statusError','3531928lcxkUx','appId','error','loginMethod','info','232631nnidMC','err','exports','log-symbols','Token\x20Invalid!','4593726YXStgA','request_timeout','stop','permission_denied','statusStart','msg','6853482fejgFx','no-cache','path','Login...','../utils/axios','qrcode-terminal','setEnv','../utils/log','error_code','gray','then','getEnv','stringify','error_msg','3joPjOE','stderr','20jnzLtr','../config','jwt','data','61754YnOnsO','env','\x20(Time\x20out\x20after\x20','zmpsk','POST','Scan\x20the\x20QR\x20code\x20with\x20Zalo\x20app:\x0a','5bpqxNl','112152txxyNY','4444sYRMyC','40pRaTDH','zalo','2693450lExkYY','catch','start'];_0x10dc=function(){return _0x26ef74;};return _0x10dc();}const e=require('chalk'),t=require('ora'),r=require('jsonwebtoken'),a=require(_0x37b51f(0xfd)),n=require(_0x37b51f(0x12a)),o=require(_0x37b51f(0x109)),s=require(_0x37b51f(0x11a)),i=require(_0x37b51f(0xff)),u=require('./utils/zalo-login'),{axiosClient:l}=require(_0x37b51f(0xfc)),c=require('qs'),d=e[_0x37b51f(0x101)](_0x37b51f(0x135)),p=t(d);module[_0x37b51f(0x129)]=async(_0x21a032={},_0xe438e7)=>{const _0x424e85=_0x37b51f;let _0x546b32;_0xe438e7||(_0xe438e7={'statusStart'(){},'statusDone'(){},'statusText'(){},'statusError'(){},'text'(){},'error'(){}}),_0xe438e7[_0x424e85(0x130)](d),p[_0x424e85(0x119)]();let _0x5936b4=_0x21a032[_0x424e85(0x125)],_0x2369c8=_0x21a032[_0x424e85(0x123)]||s[_0x424e85(0x103)](o['env'][_0x424e85(0x123)]),_0x289fb7=_0x21a032[_0x424e85(0x11d)],_0x1c3dbb=''+o['api_domain']+o[_0x424e85(0x134)][_0x424e85(0x11b)];try{if(p['start'](),_0x424e85(0x116)===_0x5936b4){let _0x18a61c;await new Promise((_0x30ac67,_0x2f9f95)=>{const _0x30abbd=_0x424e85;u['getQRCode'](_0x2369c8)[_0x30abbd(0x102)](function(_0x24961f){const _0x3fdd36=_0x30abbd;p[_0x3fdd36(0x12e)]();let _0x400b61=_0x24961f[_0x3fdd36(0x10b)];if(!_0x400b61||_0x400b61[_0x3fdd36(0x128)]<0x0)return _0x2f9f95(Error(_0x400b61[_0x3fdd36(0x131)]));let _0x3bec0b=_0x400b61[_0x3fdd36(0x10b)]&&_0x400b61[_0x3fdd36(0x10b)][_0x3fdd36(0x11c)];return _0x18a61c=_0x400b61[_0x3fdd36(0x10b)]&&_0x400b61['data'][_0x3fdd36(0x10f)],a['generate'](_0x3bec0b,{'small':!0x0},function(_0x31eefd){const _0x2d292c=_0x3fdd36;let _0xe627d6=n[_0x2d292c(0x126)]+'\x20'+e['bold'](_0x2d292c(0x111)+_0x31eefd);_0xe438e7['text'](_0xe627d6);}),s[_0x3fdd36(0xfe)](o[_0x3fdd36(0x10d)][_0x3fdd36(0x123)],_0x2369c8),_0x30ac67();})[_0x30abbd(0x118)](function(_0x36e858){return p['stop'](),_0x2f9f95(_0x36e858);});}),await new Promise((_0x5b3d9d,_0x5ac499)=>{const _0x243a8b=_0x424e85;if(!_0x18a61c)return _0x5ac499(Error(_0x243a8b(0x12b)));let _0x6d5663=0x0;_0x546b32=setInterval(()=>{const _0x19bcd4=_0x243a8b;if(_0xe438e7['statusText'](d+_0x19bcd4(0x10e)+(0x3c-_0x6d5663)+'s)'),_0x6d5663>0x3c)return clearInterval(_0x546b32),_0x5ac499(Error(o[_0x19bcd4(0x105)]['request_timeout']));_0x6d5663++,u[_0x19bcd4(0x11e)](_0x18a61c)[_0x19bcd4(0x102)](function(_0x4fe28d){const _0x2af798=_0x19bcd4;p[_0x2af798(0x12e)]();let _0x10a37d=_0x4fe28d['data'];if(_0x10a37d&&_0x10a37d[_0x2af798(0x128)]===o[_0x2af798(0x100)][_0x2af798(0x12f)])return clearInterval(_0x546b32),_0x5ac499(Error(o['error_msg'][_0x2af798(0x12f)]));if(_0x10a37d&&_0x10a37d[_0x2af798(0x128)]===o[_0x2af798(0x100)][_0x2af798(0x12d)])return clearInterval(_0x546b32),_0x5ac499(Error(o[_0x2af798(0x105)][_0x2af798(0x12d)]));if(_0x10a37d&&_0x10a37d[_0x2af798(0x128)]>=0x0){clearInterval(_0x546b32);let _0x1671a8=_0x10a37d['data']&&_0x10a37d[_0x2af798(0x10b)][_0x2af798(0x10a)];return s['setEnv'](o['env'][_0x2af798(0x11d)],_0x1671a8),_0xe438e7[_0x2af798(0x120)]('Login\x20Success!'),_0x5b3d9d();}})[_0x19bcd4(0x118)](function(_0x227910){const _0x550c93=_0x19bcd4;return clearInterval(_0x546b32),p[_0x550c93(0x12e)](),_0x5ac499(_0x227910);});},0x7d0);});}else await new Promise((_0x45ad29,_0x5e1172)=>{const _0x3b7452=_0x424e85;l({'url':_0x1c3dbb,'method':_0x3b7452(0x110),'headers':{'cache-control':_0x3b7452(0x133),'content-type':'application/x-www-form-urlencoded'},'data':c[_0x3b7452(0x104)]({'accessToken':_0x289fb7,'appId':_0x2369c8}),'withCredentials':!0x0})[_0x3b7452(0x102)](function(_0x4ee5ab){const _0x5cbbed=_0x3b7452;p[_0x5cbbed(0x12e)]();let _0x51abfa=_0x4ee5ab[_0x5cbbed(0x10b)];if(!_0x51abfa||_0x51abfa[_0x5cbbed(0x128)]<0x0)return _0x5e1172(Error(_0x51abfa[_0x5cbbed(0x131)]));let _0x1a9c60=_0x51abfa[_0x5cbbed(0x10b)]&&_0x51abfa['data'][_0x5cbbed(0x10a)];try{let _0x4f314d=r[_0x5cbbed(0x11f)](_0x1a9c60);s[_0x5cbbed(0xfe)](o[_0x5cbbed(0x10d)][_0x5cbbed(0x123)],_0x4f314d[_0x5cbbed(0x123)]),s[_0x5cbbed(0xfe)](o[_0x5cbbed(0x10d)]['token'],_0x1a9c60);}catch(_0x3a9519){return _0x5e1172(_0x3a9519);}return _0xe438e7['statusDone']('Login\x20Success!'),_0x45ad29();})[_0x3b7452(0x118)](function(_0x10ac2b){const _0x2d8dfd=_0x3b7452;return p[_0x2d8dfd(0x12e)](),_0x5e1172(_0x10ac2b);});});}catch(_0x1a2045){_0xe438e7[_0x424e85(0x121)]('Login\x20failed!'),i[_0x424e85(0x124)](_0x1a2045[_0x424e85(0x107)]||_0x1a2045);return;}};
1
+ 'use strict';function _0x2a6f(_0x12ceb8,_0x274ab5){const _0x343831=_0x3438();return _0x2a6f=function(_0x2a6f9e,_0x4d3089){_0x2a6f9e=_0x2a6f9e-0x111;let _0x39891e=_0x343831[_0x2a6f9e];return _0x39891e;},_0x2a6f(_0x12ceb8,_0x274ab5);}const _0x36ba78=_0x2a6f;(function(_0x8386ab,_0x45e0fd){const _0x30060c=_0x2a6f,_0x45a174=_0x8386ab();while(!![]){try{const _0x3dd2b0=parseInt(_0x30060c(0x12f))/0x1*(parseInt(_0x30060c(0x114))/0x2)+-parseInt(_0x30060c(0x11d))/0x3+-parseInt(_0x30060c(0x12a))/0x4*(-parseInt(_0x30060c(0x125))/0x5)+-parseInt(_0x30060c(0x135))/0x6*(-parseInt(_0x30060c(0x141))/0x7)+-parseInt(_0x30060c(0x12c))/0x8*(parseInt(_0x30060c(0x14a))/0x9)+-parseInt(_0x30060c(0x147))/0xa+parseInt(_0x30060c(0x13e))/0xb*(parseInt(_0x30060c(0x130))/0xc);if(_0x3dd2b0===_0x45e0fd)break;else _0x45a174['push'](_0x45a174['shift']());}catch(_0x339a68){_0x45a174['push'](_0x45a174['shift']());}}}(_0x3438,0xabe75));function _0x3438(){const _0x42ddec=['log-symbols','api_domain','1507DdQKus','getEnv','gray','7zAstmq','stringify','start','info','request_timeout','setEnv','10603170iHEiWe','loginMethod','error_code','1940247vxWoWs','exports','../utils/axios','error_msg','2reRfrK','token','application/x-www-form-urlencoded','jsonwebtoken','./utils/zalo-login','no-cache','Token\x20Invalid!','bold','statusDone','1281327rLmIMP','stop','chalk','catch','loginUrl','Login\x20Success!','\x20(Time\x20out\x20after\x20','error','1035195NeFOLE','POST','permission_denied','qrcode-terminal','statusStart','16ZgowjT','Login\x20failed!','8sDqOji','env','text','15613kjMShr','68520HzvGzf','data','appId','then','err','4686522lccPBO','zalo','zmpsk','generate','getQRCode','login','msg'];_0x3438=function(){return _0x42ddec;};return _0x3438();}const e=require(_0x36ba78(0x11f)),t=require('ora'),r=require(_0x36ba78(0x117)),a=require(_0x36ba78(0x128)),n=require(_0x36ba78(0x13c)),o=require('../config'),s=require('../utils/env'),i=require('../utils/log'),u=require(_0x36ba78(0x118)),{axiosClient:l}=require(_0x36ba78(0x112)),c=require('qs'),d=e[_0x36ba78(0x140)]('Login...'),p=t(d);module[_0x36ba78(0x111)]=async(_0x5111a8={},_0x5f39c9)=>{const _0x115756=_0x36ba78;let _0x129589;_0x5f39c9||(_0x5f39c9={'statusStart'(){},'statusDone'(){},'statusText'(){},'statusError'(){},'text'(){},'error'(){}}),_0x5f39c9[_0x115756(0x129)](d),p[_0x115756(0x143)]();let _0x5da290=_0x5111a8[_0x115756(0x148)],_0x1c8389=_0x5111a8[_0x115756(0x132)]||s[_0x115756(0x13f)](o[_0x115756(0x12d)]['appId']),_0x1a9df5=_0x5111a8[_0x115756(0x115)],_0x3a62eb=''+o[_0x115756(0x13d)]+o['path'][_0x115756(0x13a)];try{if(p[_0x115756(0x143)](),_0x115756(0x136)===_0x5da290){let _0xd73097;await new Promise((_0x728435,_0x1dfdd5)=>{const _0x2673ad=_0x115756;u[_0x2673ad(0x139)](_0x1c8389)[_0x2673ad(0x133)](function(_0x50edb5){const _0xb5336f=_0x2673ad;p[_0xb5336f(0x11e)]();let _0x32ad96=_0x50edb5['data'];if(!_0x32ad96||_0x32ad96[_0xb5336f(0x134)]<0x0)return _0x1dfdd5(Error(_0x32ad96[_0xb5336f(0x13b)]));let _0x2d2552=_0x32ad96[_0xb5336f(0x131)]&&_0x32ad96[_0xb5336f(0x131)][_0xb5336f(0x121)];return _0xd73097=_0x32ad96['data']&&_0x32ad96[_0xb5336f(0x131)][_0xb5336f(0x137)],a[_0xb5336f(0x138)](_0x2d2552,{'small':!0x0},function(_0x576e11){const _0x5e4f05=_0xb5336f;let _0x1fb299=n[_0x5e4f05(0x144)]+'\x20'+e[_0x5e4f05(0x11b)]('Scan\x20the\x20QR\x20code\x20with\x20Zalo\x20app:\x0a'+_0x576e11);_0x5f39c9[_0x5e4f05(0x12e)](_0x1fb299);}),s['setEnv'](o['env'][_0xb5336f(0x132)],_0x1c8389),_0x728435();})['catch'](function(_0x265713){return p['stop'](),_0x1dfdd5(_0x265713);});}),await new Promise((_0x4e2b71,_0xaf8707)=>{const _0x227c09=_0x115756;if(!_0xd73097)return _0xaf8707(Error(_0x227c09(0x11a)));let _0xc11d31=0x0;_0x129589=setInterval(()=>{const _0x30eb15=_0x227c09;if(_0x5f39c9['statusText'](d+_0x30eb15(0x123)+(0x3c-_0xc11d31)+'s)'),_0xc11d31>0x3c)return clearInterval(_0x129589),_0xaf8707(Error(o[_0x30eb15(0x113)][_0x30eb15(0x145)]));_0xc11d31++,u['checkStatus'](_0xd73097)['then'](function(_0x288567){const _0x31a80a=_0x30eb15;p[_0x31a80a(0x11e)]();let _0x10fefb=_0x288567[_0x31a80a(0x131)];if(_0x10fefb&&_0x10fefb[_0x31a80a(0x134)]===o[_0x31a80a(0x149)][_0x31a80a(0x127)])return clearInterval(_0x129589),_0xaf8707(Error(o[_0x31a80a(0x113)][_0x31a80a(0x127)]));if(_0x10fefb&&_0x10fefb[_0x31a80a(0x134)]===o[_0x31a80a(0x149)][_0x31a80a(0x145)])return clearInterval(_0x129589),_0xaf8707(Error(o[_0x31a80a(0x113)]['request_timeout']));if(_0x10fefb&&_0x10fefb['err']>=0x0){clearInterval(_0x129589);let _0x79c642=_0x10fefb[_0x31a80a(0x131)]&&_0x10fefb['data']['jwt'];return s[_0x31a80a(0x146)](o[_0x31a80a(0x12d)]['token'],_0x79c642),_0x5f39c9[_0x31a80a(0x11c)](_0x31a80a(0x122)),_0x4e2b71();}})[_0x30eb15(0x120)](function(_0x2f18d7){const _0x2a9d6c=_0x30eb15;return clearInterval(_0x129589),p[_0x2a9d6c(0x11e)](),_0xaf8707(_0x2f18d7);});},0x7d0);});}else await new Promise((_0x1d4943,_0x4b7e4e)=>{const _0x5accf8=_0x115756;l({'url':_0x3a62eb,'method':_0x5accf8(0x126),'headers':{'cache-control':_0x5accf8(0x119),'content-type':_0x5accf8(0x116)},'data':c[_0x5accf8(0x142)]({'accessToken':_0x1a9df5,'appId':_0x1c8389}),'withCredentials':!0x0})[_0x5accf8(0x133)](function(_0x3e0652){const _0x33fb77=_0x5accf8;p[_0x33fb77(0x11e)]();let _0x4e5d77=_0x3e0652[_0x33fb77(0x131)];if(!_0x4e5d77||_0x4e5d77[_0x33fb77(0x134)]<0x0)return _0x4b7e4e(Error(_0x4e5d77[_0x33fb77(0x13b)]));let _0xade1d5=_0x4e5d77['data']&&_0x4e5d77[_0x33fb77(0x131)]['jwt'];try{let _0xed97dd=r['decode'](_0xade1d5);s[_0x33fb77(0x146)](o[_0x33fb77(0x12d)][_0x33fb77(0x132)],_0xed97dd[_0x33fb77(0x132)]),s[_0x33fb77(0x146)](o[_0x33fb77(0x12d)][_0x33fb77(0x115)],_0xade1d5);}catch(_0x4f486c){return _0x4b7e4e(_0x4f486c);}return _0x5f39c9[_0x33fb77(0x11c)](_0x33fb77(0x122)),_0x1d4943();})[_0x5accf8(0x120)](function(_0x495c7a){const _0x4c41cd=_0x5accf8;return p[_0x4c41cd(0x11e)](),_0x4b7e4e(_0x495c7a);});});}catch(_0x173147){_0x5f39c9['statusError'](_0x115756(0x12b)),i[_0x115756(0x124)](_0x173147['stderr']||_0x173147);return;}};
@@ -1 +1 @@
1
- 'use strict';const _0x8107a8=_0x26b0;function _0x8e57(){const _0x4616fc=['2.\x20Login\x20With\x20App\x20Access\x20Token','1917fxPLwT','75602HtsxVt','276ohusdn','accessToken','42UvMYzz','env','Choose\x20a\x20Login\x20Method','Zalo\x20Access\x20Token:','22784XlzKIU','287snCpBP','getEnv','748fIrFHu','2923317CHwcIC','inquirer','586963CbsHvQ','appId','then','length','loginMethod','191085OjSkNK','../../config','input','4fMrXwj','zalo','token','Zalo\x20Access\x20Token\x20is\x20required','list','Mimi\x20App\x20ID\x20is\x20required','../../utils/env','10KRdhTb','1582691wqdrAu','Mini\x20App\x20ID:'];_0x8e57=function(){return _0x4616fc;};return _0x8e57();}(function(_0x3b7971,_0x591fdb){const _0x43145b=_0x26b0,_0xcd9f54=_0x3b7971();while(!![]){try{const _0x3d697b=-parseInt(_0x43145b(0x126))/0x1*(parseInt(_0x43145b(0x111))/0x2)+parseInt(_0x43145b(0x110))/0x3*(-parseInt(_0x43145b(0x11b))/0x4)+parseInt(_0x43145b(0x123))/0x5*(-parseInt(_0x43145b(0x114))/0x6)+parseInt(_0x43145b(0x119))/0x7*(-parseInt(_0x43145b(0x118))/0x8)+-parseInt(_0x43145b(0x11c))/0x9+-parseInt(_0x43145b(0x10c))/0xa*(-parseInt(_0x43145b(0x10d))/0xb)+-parseInt(_0x43145b(0x112))/0xc*(-parseInt(_0x43145b(0x11e))/0xd);if(_0x3d697b===_0x591fdb)break;else _0xcd9f54['push'](_0xcd9f54['shift']());}catch(_0x86cc0){_0xcd9f54['push'](_0xcd9f54['shift']());}}}(_0x8e57,0x3173d));function _0x26b0(_0x54215c,_0x51dde5){const _0x8e57d6=_0x8e57();return _0x26b0=function(_0x26b09b,_0x4f5f44){_0x26b09b=_0x26b09b-0x106;let _0x3ff5b6=_0x8e57d6[_0x26b09b];return _0x3ff5b6;},_0x26b0(_0x54215c,_0x51dde5);}const e=require(_0x8107a8(0x11d)),i=require(_0x8107a8(0x10b)),o=require(_0x8107a8(0x124));module['exports']=function(){const _0x62bfc9=_0x8107a8;let _0x16baff=[{'type':_0x62bfc9(0x125),'name':_0x62bfc9(0x11f),'message':_0x62bfc9(0x10e),'when':()=>!i[_0x62bfc9(0x11a)](o[_0x62bfc9(0x115)][_0x62bfc9(0x11f)]),'validate':_0x1d4f8c=>new Promise((_0x4e7daa,_0x596e7d)=>{const _0x328d9e=_0x62bfc9;_0x1d4f8c?_0x4e7daa(!0x0):_0x596e7d(Error(_0x328d9e(0x10a)));})},{'type':_0x62bfc9(0x109),'name':'loginMethod','message':_0x62bfc9(0x116),'choices':[{'name':'1.\x20Login\x20Via\x20QR\x20Code\x20With\x20Zalo\x20App','value':_0x62bfc9(0x106)},{'name':_0x62bfc9(0x10f),'value':_0x62bfc9(0x113)}],'validate':_0x30ff4b=>new Promise((_0x4d1c55,_0x37996d)=>{const _0x749615=_0x62bfc9;_0x30ff4b&&_0x30ff4b[_0x749615(0x121)]?_0x4d1c55(!0x0):_0x37996d(Error('Login\x20method\x20is\x20required!'));})},{'type':'input','name':_0x62bfc9(0x107),'message':_0x62bfc9(0x117),'when':_0x20ab5f=>_0x62bfc9(0x113)===_0x20ab5f[_0x62bfc9(0x122)],'validate':_0x42f0cd=>new Promise((_0x15f1ab,_0x515547)=>{const _0x537e4c=_0x62bfc9;_0x42f0cd?_0x15f1ab(!0x0):_0x515547(Error(_0x537e4c(0x108)));})}];return e['prompt'](_0x16baff)[_0x62bfc9(0x120)](_0x29c9ca=>Promise['resolve'](_0x29c9ca));};
1
+ 'use strict';const _0x2fbde2=_0x2ff9;(function(_0x1c85f2,_0x592b1f){const _0x1e1144=_0x2ff9,_0x3c7527=_0x1c85f2();while(!![]){try{const _0x2055f5=parseInt(_0x1e1144(0xe3))/0x1+-parseInt(_0x1e1144(0xd6))/0x2+parseInt(_0x1e1144(0xdc))/0x3+parseInt(_0x1e1144(0xdd))/0x4+-parseInt(_0x1e1144(0xdb))/0x5*(-parseInt(_0x1e1144(0xe5))/0x6)+-parseInt(_0x1e1144(0xee))/0x7*(parseInt(_0x1e1144(0xe1))/0x8)+parseInt(_0x1e1144(0xd9))/0x9*(-parseInt(_0x1e1144(0xe7))/0xa);if(_0x2055f5===_0x592b1f)break;else _0x3c7527['push'](_0x3c7527['shift']());}catch(_0x15783c){_0x3c7527['push'](_0x3c7527['shift']());}}}(_0xe00d,0x1c7aa));function _0x2ff9(_0x439721,_0x39842b){const _0xe00dd3=_0xe00d();return _0x2ff9=function(_0x2ff9db,_0x27cd8b){_0x2ff9db=_0x2ff9db-0xd5;let _0x2814f2=_0xe00dd3[_0x2ff9db];return _0x2814f2;},_0x2ff9(_0x439721,_0x39842b);}function _0xe00d(){const _0x34e0f4=['loginMethod','Login\x20method\x20is\x20required!','27207JIMWWR','env','195HDlgzP','120174luCmVl','529892WOqiPA','appId','getEnv','inquirer','58728vQcZzI','accessToken','153461ErHxur','Zalo\x20Access\x20Token:','30954WcuFdY','exports','670tRglAy','2.\x20Login\x20With\x20App\x20Access\x20Token','1.\x20Login\x20Via\x20QR\x20Code\x20With\x20Zalo\x20App','Mini\x20App\x20ID:','input','../../utils/env','zalo','56nrIivG','../../config','length','298548UxQgzW'];_0xe00d=function(){return _0x34e0f4;};return _0xe00d();}const e=require(_0x2fbde2(0xe0)),i=require(_0x2fbde2(0xec)),o=require(_0x2fbde2(0xef));module[_0x2fbde2(0xe6)]=function(){const _0x3112af=_0x2fbde2;let _0x346297=[{'type':_0x3112af(0xeb),'name':_0x3112af(0xde),'message':_0x3112af(0xea),'when':()=>!i[_0x3112af(0xdf)](o[_0x3112af(0xda)][_0x3112af(0xde)]),'validate':_0x28ea96=>new Promise((_0x460370,_0x4b01e6)=>{_0x28ea96?_0x460370(!0x0):_0x4b01e6(Error('Mimi\x20App\x20ID\x20is\x20required'));})},{'type':'list','name':'loginMethod','message':'Choose\x20a\x20Login\x20Method','choices':[{'name':_0x3112af(0xe9),'value':_0x3112af(0xed)},{'name':_0x3112af(0xe8),'value':_0x3112af(0xe2)}],'validate':_0x1d6ffc=>new Promise((_0x5ed047,_0xc3f9d4)=>{const _0x2914fa=_0x3112af;_0x1d6ffc&&_0x1d6ffc[_0x2914fa(0xd5)]?_0x5ed047(!0x0):_0xc3f9d4(Error(_0x2914fa(0xd8)));})},{'type':'input','name':'token','message':_0x3112af(0xe4),'when':_0x46bf43=>_0x3112af(0xe2)===_0x46bf43[_0x3112af(0xd7)],'validate':_0x3a5d4a=>new Promise((_0x53d490,_0x396456)=>{_0x3a5d4a?_0x53d490(!0x0):_0x396456(Error('Zalo\x20Access\x20Token\x20is\x20required'));})}];return e['prompt'](_0x346297)['then'](_0x34879e=>Promise['resolve'](_0x34879e));};
@@ -1 +1 @@
1
- 'use strict';function _0x22fd(_0x28a467,_0x342570){const _0x227e95=_0x227e();return _0x22fd=function(_0x22fd36,_0x2f7a82){_0x22fd36=_0x22fd36-0x1e3;let _0x51f3dc=_0x227e95[_0x22fd36];return _0x51f3dc;},_0x22fd(_0x28a467,_0x342570);}const _0x1ae451=_0x22fd;(function(_0x3900bc,_0x336bbc){const _0x514e3e=_0x22fd,_0x439261=_0x3900bc();while(!![]){try{const _0xda410a=parseInt(_0x514e3e(0x1e7))/0x1*(-parseInt(_0x514e3e(0x1ec))/0x2)+-parseInt(_0x514e3e(0x1e8))/0x3*(-parseInt(_0x514e3e(0x1ea))/0x4)+-parseInt(_0x514e3e(0x1e5))/0x5+-parseInt(_0x514e3e(0x1f4))/0x6+-parseInt(_0x514e3e(0x1e4))/0x7+parseInt(_0x514e3e(0x1ee))/0x8*(-parseInt(_0x514e3e(0x1f3))/0x9)+parseInt(_0x514e3e(0x1ed))/0xa;if(_0xda410a===_0x336bbc)break;else _0x439261['push'](_0x439261['shift']());}catch(_0x26c5c0){_0x439261['push'](_0x439261['shift']());}}}(_0x227e,0x6e313));const e=require('../../config'),{axiosClient:t}=require(_0x1ae451(0x1f1));function _0x227e(){const _0x54ee48=['2816502kXzgaV','requestLogin','6051416BLhEnm','2866630mrwUZb','no-cache','11782QAtZyy','48PaBJyi','exports','131476NdRhTl','path','138ysvGEQ','31568560jNRtaG','1363264BsqzEv','?appId=','api_domain','../../utils/axios','get','27WYkMEF'];_0x227e=function(){return _0x54ee48;};return _0x227e();}module[_0x1ae451(0x1e9)]=(function(){const _0x24b38d=_0x1ae451;let _0x4cad79=''+e['api_domain']+e[_0x24b38d(0x1eb)][_0x24b38d(0x1e3)],_0x4c588c=''+e[_0x24b38d(0x1f0)]+e[_0x24b38d(0x1eb)]['checkLoginStatus'];return{'getQRCode':_0x25fcaf=>t({'method':_0x24b38d(0x1f2),'url':_0x4cad79+_0x24b38d(0x1ef)+_0x25fcaf,'headers':{'cache-control':_0x24b38d(0x1e6)},'withCredentials':!0x0}),'checkStatus':_0x2110a0=>t({'method':_0x24b38d(0x1f2),'url':_0x4c588c+'?zmpsk='+_0x2110a0,'headers':{'cache-control':_0x24b38d(0x1e6)},'withCredentials':!0x0})};}());
1
+ 'use strict';const _0x458784=_0x5bbd;(function(_0x2fd812,_0x2541a8){const _0x19eea0=_0x5bbd,_0x67a8a3=_0x2fd812();while(!![]){try{const _0xc1f611=-parseInt(_0x19eea0(0x15a))/0x1*(parseInt(_0x19eea0(0x16b))/0x2)+parseInt(_0x19eea0(0x15e))/0x3*(-parseInt(_0x19eea0(0x167))/0x4)+-parseInt(_0x19eea0(0x168))/0x5*(parseInt(_0x19eea0(0x15d))/0x6)+-parseInt(_0x19eea0(0x161))/0x7*(parseInt(_0x19eea0(0x165))/0x8)+-parseInt(_0x19eea0(0x162))/0x9+parseInt(_0x19eea0(0x15c))/0xa+parseInt(_0x19eea0(0x16a))/0xb;if(_0xc1f611===_0x2541a8)break;else _0x67a8a3['push'](_0x67a8a3['shift']());}catch(_0x5528c4){_0x67a8a3['push'](_0x67a8a3['shift']());}}}(_0x3a55,0x41e8a));function _0x5bbd(_0xedf91d,_0x2f24d3){const _0x3a5549=_0x3a55();return _0x5bbd=function(_0x5bbd48,_0x292f35){_0x5bbd48=_0x5bbd48-0x15a;let _0x52ed1d=_0x3a5549[_0x5bbd48];return _0x52ed1d;},_0x5bbd(_0xedf91d,_0x2f24d3);}function _0x3a55(){const _0x443f1f=['6eUWOML','266838pEehFU','no-cache','checkLoginStatus','193382vbbKxz','3633237nnxKDR','api_domain','../../config','112dhJqXm','requestLogin','20wBvneS','1672340hHraWP','path','21751565xSoVWU','107434RTstVA','get','4HYPGDC','?zmpsk=','770700hUVUfg'];_0x3a55=function(){return _0x443f1f;};return _0x3a55();}const e=require(_0x458784(0x164)),{axiosClient:t}=require('../../utils/axios');module['exports']=(function(){const _0x1b5bc6=_0x458784;let _0x37d8af=''+e[_0x1b5bc6(0x163)]+e[_0x1b5bc6(0x169)][_0x1b5bc6(0x166)],_0x3541af=''+e[_0x1b5bc6(0x163)]+e[_0x1b5bc6(0x169)][_0x1b5bc6(0x160)];return{'getQRCode':_0xebe437=>t({'method':_0x1b5bc6(0x16c),'url':_0x37d8af+'?appId='+_0xebe437,'headers':{'cache-control':_0x1b5bc6(0x15f)},'withCredentials':!0x0}),'checkStatus':_0x588edc=>t({'method':_0x1b5bc6(0x16c),'url':_0x3541af+_0x1b5bc6(0x15b)+_0x588edc,'headers':{'cache-control':_0x1b5bc6(0x15f)},'withCredentials':!0x0})};}());
@@ -1 +1 @@
1
- 'use strict';function _0x1ef5(_0x20c771,_0x421776){const _0x6bc87b=_0x6bc8();return _0x1ef5=function(_0x1ef563,_0x4ac1eb){_0x1ef563=_0x1ef563-0xaa;let _0x19e7ab=_0x6bc87b[_0x1ef563];return _0x19e7ab;},_0x1ef5(_0x20c771,_0x421776);}const _0x168bb0=_0x1ef5;(function(_0xbf2a75,_0x229f6b){const _0x54cf53=_0x1ef5,_0x2175ac=_0xbf2a75();while(!![]){try{const _0x25483a=parseInt(_0x54cf53(0xbd))/0x1+-parseInt(_0x54cf53(0xac))/0x2+parseInt(_0x54cf53(0xb2))/0x3+parseInt(_0x54cf53(0xad))/0x4+-parseInt(_0x54cf53(0xbb))/0x5+-parseInt(_0x54cf53(0xb7))/0x6*(parseInt(_0x54cf53(0xb5))/0x7)+parseInt(_0x54cf53(0xbf))/0x8*(-parseInt(_0x54cf53(0xb6))/0x9);if(_0x25483a===_0x229f6b)break;else _0x2175ac['push'](_0x2175ac['shift']());}catch(_0x4539d5){_0x2175ac['push'](_0x2175ac['shift']());}}}(_0x6bc8,0x7bce8));const e=require(_0x168bb0(0xb0)),s=require(_0x168bb0(0xb1)),r=require(_0x168bb0(0xaf));function _0x6bc8(){const _0x2875db=['6iYPToN','resolve','exports','./src/css/icons.css','218160AINCiV','cwd','841896zupPaX','zmp-ui','1432016mRLMZq','zmp-framework','uiFramework','./icons.css','promise','1404214iZjZPZ','4015272QpoaTK','copyFileAsync','exec-sh','../../utils/fs-extra','path','2909427ZfvAXm','npm\x20install\x20zmp-ui@latest','npm\x20install\x20zmp-framework@latest','914592FZULAo','72KqXkhI'];_0x6bc8=function(){return _0x2875db;};return _0x6bc8();}async function i(_0x1ca585){const _0x63412e=_0x168bb0;if(_0x63412e(0xc0)===_0x1ca585['uiFramework'])e[_0x63412e(0xae)](s[_0x63412e(0xb8)](__dirname,_0x63412e(0xaa)),s[_0x63412e(0xb8)](_0x1ca585[_0x63412e(0xbc)],_0x63412e(0xba))),await r[_0x63412e(0xab)](_0x63412e(0xb4),!0x0);else{if(_0x63412e(0xbe)!==_0x1ca585[_0x63412e(0xc1)])return;await r[_0x63412e(0xab)](_0x63412e(0xb3),!0x0);}}module[_0x168bb0(0xb9)]=i;
1
+ 'use strict';const _0x10a3c8=_0x4634;(function(_0x7a347a,_0x22e87d){const _0x1f8de4=_0x4634,_0x47c708=_0x7a347a();while(!![]){try{const _0x47b7dd=-parseInt(_0x1f8de4(0xae))/0x1+parseInt(_0x1f8de4(0xc1))/0x2*(parseInt(_0x1f8de4(0xb4))/0x3)+parseInt(_0x1f8de4(0xb3))/0x4+-parseInt(_0x1f8de4(0xb1))/0x5*(parseInt(_0x1f8de4(0xbb))/0x6)+parseInt(_0x1f8de4(0xbd))/0x7+-parseInt(_0x1f8de4(0xb9))/0x8+parseInt(_0x1f8de4(0xb8))/0x9;if(_0x47b7dd===_0x22e87d)break;else _0x47c708['push'](_0x47c708['shift']());}catch(_0x1b1a31){_0x47c708['push'](_0x47c708['shift']());}}}(_0x17e2,0x8db4e));function _0x4634(_0x1287a7,_0xf74a3){const _0x17e2f6=_0x17e2();return _0x4634=function(_0x463469,_0x208510){_0x463469=_0x463469-0xad;let _0xe42842=_0x17e2f6[_0x463469];return _0xe42842;},_0x4634(_0x1287a7,_0xf74a3);}function _0x17e2(){const _0x507a47=['./icons.css','2811599HaAiaV','npm\x20install\x20zmp-framework@latest','copyFileAsync','./src/css/icons.css','34LpbSch','npm\x20install\x20zmp-ui@latest','689488npvgkb','exports','uiFramework','1075555bQqaoz','promise','4460236yWscTD','7716iIyQjv','cwd','resolve','../../utils/fs-extra','6938622MGmqzU','6770952zsWPSo','exec-sh','6KLgpNo'];_0x17e2=function(){return _0x507a47;};return _0x17e2();}const e=require(_0x10a3c8(0xb7)),s=require('path'),r=require(_0x10a3c8(0xba));async function i(_0x56e6b1){const _0x570eda=_0x10a3c8;if('zmp-framework'===_0x56e6b1[_0x570eda(0xb0)])e[_0x570eda(0xbf)](s[_0x570eda(0xb6)](__dirname,_0x570eda(0xbc)),s['resolve'](_0x56e6b1[_0x570eda(0xb5)],_0x570eda(0xc0))),await r[_0x570eda(0xb2)](_0x570eda(0xbe),!0x0);else{if('zmp-ui'!==_0x56e6b1[_0x570eda(0xb0)])return;await r[_0x570eda(0xb2)](_0x570eda(0xad),!0x0);}}module[_0x10a3c8(0xaf)]=i;
package/migrate/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x259bc8=_0x3b31;(function(_0x1527c1,_0x40fb6f){const _0x58b876=_0x3b31,_0x3e6041=_0x1527c1();while(!![]){try{const _0x204727=-parseInt(_0x58b876(0x1d0))/0x1*(parseInt(_0x58b876(0x1d4))/0x2)+-parseInt(_0x58b876(0x1b5))/0x3+parseInt(_0x58b876(0x1b9))/0x4+parseInt(_0x58b876(0x1d1))/0x5+parseInt(_0x58b876(0x1b8))/0x6+parseInt(_0x58b876(0x1cf))/0x7+-parseInt(_0x58b876(0x1bc))/0x8;if(_0x204727===_0x40fb6f)break;else _0x3e6041['push'](_0x3e6041['shift']());}catch(_0x4ffa1a){_0x3e6041['push'](_0x3e6041['shift']());}}}(_0x387f,0x9083c));const r=require(_0x259bc8(0x1cd)),t=require(_0x259bc8(0x1c6)),e=require(_0x259bc8(0x1ca)),s=require('./utils/migrate-react'),{errorExit:a}=require(_0x259bc8(0x1c1)),o=require(_0x259bc8(0x1b6)),i=r['gray'](_0x259bc8(0x1bf));async function u(_0x99d222={},_0x4c383c){const _0x5e069a=_0x259bc8;let _0xf21a35=_0x99d222[_0x5e069a(0x1c9)]||process[_0x5e069a(0x1c9)]();_0x4c383c||(_0x4c383c={'statusStart'(){},'statusDone'(){},'statusText'(){},'statusError'(){},'text'(){},'error'(){},'showOnUI'(){}}),_0x4c383c[_0x5e069a(0x1ba)]('Migrating\x20Your\x20App\x20'+i);try{let _0x470d9b,_0x568d40=require((_0x470d9b=o[_0x5e069a(0x1c2)][_0x5e069a(0x1c5)],t['join'](_0xf21a35,_0x470d9b)));_0x5e069a(0x1c3)===_0x568d40[_0x5e069a(0x1c8)]?await s(_0x99d222):(_0x4c383c[_0x5e069a(0x1bd)](e[_0x5e069a(0x1c4)]+_0x5e069a(0x1ce)+_0x568d40[_0x5e069a(0x1c8)]+_0x5e069a(0x1d2)),process[_0x5e069a(0x1be)](0x1)),_0x4c383c[_0x5e069a(0x1cb)](r[_0x5e069a(0x1c0)][_0x5e069a(0x1bb)]('Migration\x20Done!')+_0x5e069a(0x1d3));}catch(_0x182e58){_0x4c383c[_0x5e069a(0x1cc)](_0x5e069a(0x1c7)),a(_0x182e58);}}function _0x387f(){const _0x26161d=['\x20💪','43716eBUTBH','2298918pxKcVG','../config','exports','7013238ksonog','2571352lxZnKO','statusStart','green','3026272MvoIHN','text','exit','(Please\x20wait,\x20it\x20can\x20take\x20a\x20while)','bold','../utils/error','filename','react','error','zmpConfig','path','Migration\x20error!','framework','cwd','log-symbols','statusDone','statusError','chalk','\x20Project\x20using\x20ZMP\x20','326774PbQtDm','7pxoCuc','155675AaJHjt','\x20is\x20not\x20yet\x20supported'];_0x387f=function(){return _0x26161d;};return _0x387f();}function _0x3b31(_0x1e2dbb,_0x122ad2){const _0x387ff2=_0x387f();return _0x3b31=function(_0x3b318e,_0x3932d0){_0x3b318e=_0x3b318e-0x1b5;let _0x4edf84=_0x387ff2[_0x3b318e];return _0x4edf84;},_0x3b31(_0x1e2dbb,_0x122ad2);}module[_0x259bc8(0x1b7)]=u;
1
+ 'use strict';const _0x37dfb3=_0x5146;(function(_0x59ce41,_0x1398cd){const _0x133696=_0x5146,_0xb8409b=_0x59ce41();while(!![]){try{const _0x4804f6=parseInt(_0x133696(0x90))/0x1+-parseInt(_0x133696(0x9c))/0x2*(parseInt(_0x133696(0xac))/0x3)+parseInt(_0x133696(0xa2))/0x4*(parseInt(_0x133696(0x99))/0x5)+-parseInt(_0x133696(0x8e))/0x6*(parseInt(_0x133696(0x9b))/0x7)+parseInt(_0x133696(0x9a))/0x8+-parseInt(_0x133696(0xa7))/0x9+parseInt(_0x133696(0x97))/0xa*(parseInt(_0x133696(0x9d))/0xb);if(_0x4804f6===_0x1398cd)break;else _0xb8409b['push'](_0xb8409b['shift']());}catch(_0x9299c5){_0xb8409b['push'](_0xb8409b['shift']());}}}(_0x5e6c,0x542eb));function _0x5e6c(){const _0x54f792=['path','cwd','2891610coYTIg','join','exports','../utils/error','statusDone','183NgzURM','text','\x20is\x20not\x20yet\x20supported','3450qboBuV','statusError','506898DNNUWN','green','bold','(Please\x20wait,\x20it\x20can\x20take\x20a\x20while)','log-symbols','filename','\x20Project\x20using\x20ZMP\x20','81580WXRlfV','zmpConfig','1158165vakxAA','900784EDKAEX','5558DXLMUe','5914dtwtcW','297qEnmAl','./utils/migrate-react','Migrating\x20Your\x20App\x20','chalk','Migration\x20error!','8IxFfAi','framework','statusStart'];_0x5e6c=function(){return _0x54f792;};return _0x5e6c();}const r=require(_0x37dfb3(0xa0)),t=require(_0x37dfb3(0xa5)),e=require(_0x37dfb3(0x94)),s=require(_0x37dfb3(0x9e)),{errorExit:a}=require(_0x37dfb3(0xaa)),o=require('../config'),i=r['gray'](_0x37dfb3(0x93));async function u(_0x119c52={},_0x4ff688){const _0x2dc490=_0x37dfb3;let _0xa45c3e=_0x119c52[_0x2dc490(0xa6)]||process['cwd']();_0x4ff688||(_0x4ff688={'statusStart'(){},'statusDone'(){},'statusText'(){},'statusError'(){},'text'(){},'error'(){},'showOnUI'(){}}),_0x4ff688[_0x2dc490(0xa4)](_0x2dc490(0x9f)+i);try{let _0x19eb5b,_0x53d016=require((_0x19eb5b=o[_0x2dc490(0x95)][_0x2dc490(0x98)],t[_0x2dc490(0xa8)](_0xa45c3e,_0x19eb5b)));'react'===_0x53d016['framework']?await s(_0x119c52):(_0x4ff688[_0x2dc490(0xad)](e['error']+_0x2dc490(0x96)+_0x53d016[_0x2dc490(0xa3)]+_0x2dc490(0xae)),process['exit'](0x1)),_0x4ff688[_0x2dc490(0xab)](r[_0x2dc490(0x92)][_0x2dc490(0x91)]('Migration\x20Done!')+'\x20✅');}catch(_0x4cb214){_0x4ff688[_0x2dc490(0x8f)](_0x2dc490(0xa1)),a(_0x4cb214);}}function _0x5146(_0x33dbf2,_0x3ae62b){const _0x5e6c27=_0x5e6c();return _0x5146=function(_0x51460d,_0x1f06a8){_0x51460d=_0x51460d-0x8e;let _0x371ce6=_0x5e6c27[_0x51460d];return _0x371ce6;},_0x5146(_0x33dbf2,_0x3ae62b);}module[_0x37dfb3(0xa9)]=u;
@@ -1 +1 @@
1
- 'use strict';const _0x281ff4=_0x4849;function _0x4849(_0x4a19a1,_0x399b53){const _0x11bf18=_0x11bf();return _0x4849=function(_0x48498a,_0x27a692){_0x48498a=_0x48498a-0x195;let _0x4ea6ec=_0x11bf18[_0x48498a];return _0x4ea6ec;},_0x4849(_0x4a19a1,_0x399b53);}(function(_0x5859b5,_0x4692ed){const _0x5968e4=_0x4849,_0x1f2672=_0x5859b5();while(!![]){try{const _0x65fe5d=parseInt(_0x5968e4(0x1a1))/0x1+parseInt(_0x5968e4(0x1a9))/0x2+parseInt(_0x5968e4(0x1a5))/0x3*(parseInt(_0x5968e4(0x1a8))/0x4)+parseInt(_0x5968e4(0x1a2))/0x5+-parseInt(_0x5968e4(0x1a6))/0x6+parseInt(_0x5968e4(0x19e))/0x7*(parseInt(_0x5968e4(0x199))/0x8)+-parseInt(_0x5968e4(0x198))/0x9;if(_0x65fe5d===_0x4692ed)break;else _0x1f2672['push'](_0x1f2672['shift']());}catch(_0x3a35e6){_0x1f2672['push'](_0x1f2672['shift']());}}}(_0x11bf,0xa26a3));function _0x11bf(){const _0x3646d9=['iconsv3','130188rQKPmG','1210238JFiKEe','migrateVersion','Icons\x20(fix\x20icon\x20not\x20displayed\x20in\x20iOS\x20v16+)','uiFramework','resolve','list','prompt','8879103ogShVy','656eNdMzG','inquirer','exports','zmp-framework','Choose\x20which\x20framework\x20or\x20library\x20used\x20in\x20your\x20project','9751iTDwfK','then','v1tov2','615243QhzzEt','269690Uwqidk','Version\x201\x20=>\x20Version\x202','zmp-ui','114HiVYuZ','5840964kcRKkQ'];_0x11bf=function(){return _0x3646d9;};return _0x11bf();}const e=require(_0x281ff4(0x19a)),r=[{'type':_0x281ff4(0x196),'name':_0x281ff4(0x1aa),'message':'What\x20version\x20do\x20you\x20want\x20to\x20migrate?','choices':[{'name':_0x281ff4(0x1a3),'value':_0x281ff4(0x1a0)},{'name':_0x281ff4(0x1ab),'value':_0x281ff4(0x1a7)}]},{'type':_0x281ff4(0x196),'name':_0x281ff4(0x1ac),'message':_0x281ff4(0x19d),'when':_0x178e0c=>_0x281ff4(0x1a7)===_0x178e0c[_0x281ff4(0x1aa)],'choices':[{'name':'zmp-framework','value':_0x281ff4(0x19c)},{'name':'zmp-ui','value':_0x281ff4(0x1a4)},{'name':'Other','value':'other'}]}];module[_0x281ff4(0x19b)]=function(){const _0x291d39=_0x281ff4;return e[_0x291d39(0x197)](r)[_0x291d39(0x19f)](_0x1cda9e=>Promise[_0x291d39(0x195)](_0x1cda9e));};
1
+ 'use strict';function _0x1b5f(){const _0x24a55c=['migrateVersion','v1tov2','1338092ZpOvBZ','Choose\x20which\x20framework\x20or\x20library\x20used\x20in\x20your\x20project','2691quhUXF','iconsv3','inquirer','list','2358643fqEKmI','7250mWsdRP','2801080KeXxMC','exports','Icons\x20(fix\x20icon\x20not\x20displayed\x20in\x20iOS\x20v16+)','836706npdoIg','zmp-framework','1RzyFbh','5RcmVWb','zmp-ui','Other','1600728vCwrJD','other','resolve','What\x20version\x20do\x20you\x20want\x20to\x20migrate?','Version\x201\x20=>\x20Version\x202','644342tPMoUe'];_0x1b5f=function(){return _0x24a55c;};return _0x1b5f();}const _0x1d4fea=_0x2b37;(function(_0x5395c3,_0x5bc4c5){const _0x2169fb=_0x2b37,_0x14fe6d=_0x5395c3();while(!![]){try{const _0x499881=parseInt(_0x2169fb(0x154))/0x1*(-parseInt(_0x2169fb(0x15d))/0x2)+-parseInt(_0x2169fb(0x152))/0x3+parseInt(_0x2169fb(0x160))/0x4*(parseInt(_0x2169fb(0x155))/0x5)+parseInt(_0x2169fb(0x158))/0x6+parseInt(_0x2169fb(0x166))/0x7+-parseInt(_0x2169fb(0x168))/0x8+-parseInt(_0x2169fb(0x162))/0x9*(-parseInt(_0x2169fb(0x167))/0xa);if(_0x499881===_0x5bc4c5)break;else _0x14fe6d['push'](_0x14fe6d['shift']());}catch(_0x51403a){_0x14fe6d['push'](_0x14fe6d['shift']());}}}(_0x1b5f,0x31c33));const e=require(_0x1d4fea(0x164)),r=[{'type':_0x1d4fea(0x165),'name':_0x1d4fea(0x15e),'message':_0x1d4fea(0x15b),'choices':[{'name':_0x1d4fea(0x15c),'value':_0x1d4fea(0x15f)},{'name':_0x1d4fea(0x151),'value':'iconsv3'}]},{'type':_0x1d4fea(0x165),'name':'uiFramework','message':_0x1d4fea(0x161),'when':_0x553943=>_0x1d4fea(0x163)===_0x553943[_0x1d4fea(0x15e)],'choices':[{'name':_0x1d4fea(0x153),'value':_0x1d4fea(0x153)},{'name':_0x1d4fea(0x156),'value':_0x1d4fea(0x156)},{'name':_0x1d4fea(0x157),'value':_0x1d4fea(0x159)}]}];function _0x2b37(_0x5942a7,_0x3566d1){const _0x1b5f21=_0x1b5f();return _0x2b37=function(_0x2b37a0,_0x4ec21d){_0x2b37a0=_0x2b37a0-0x150;let _0x2dcbea=_0x1b5f21[_0x2b37a0];return _0x2dcbea;},_0x2b37(_0x5942a7,_0x3566d1);}module[_0x1d4fea(0x150)]=function(){const _0x4d6168=_0x1d4fea;return e['prompt'](r)['then'](_0x51e0f3=>Promise[_0x4d6168(0x15a)](_0x51e0f3));};
@@ -1 +1 @@
1
- 'use strict';const _0xbdd5cb=_0x4a2e;function _0x425a(){const _0x107373=['../../utils/fs-extra','976oSuEiF','2088rLhxvN','../icons/update-icon-v3','../templates/v2/generate-index.react','1706747jfolka','npm\x20install\x20vite\x20@vitejs/plugin-react-refresh\x20--save-dev','93mLVxEw','15970493YVymhB','238066yxwOAw','index.html','vite.config.js','iconsv3','writeFileSync','copyFileAsync','cwd','6MSqnDa','path','exports','7655kqwboH','migrateVersion','74338RUOVTP','39270wkyqOe','resolve','6590272gDTJjY'];_0x425a=function(){return _0x107373;};return _0x425a();}(function(_0xf88269,_0x3a5824){const _0x40f3f4=_0x4a2e,_0x40ab5e=_0xf88269();while(!![]){try{const _0x266b32=-parseInt(_0x40f3f4(0x115))/0x1+-parseInt(_0x40f3f4(0x121))/0x2*(parseInt(_0x40f3f4(0x113))/0x3)+-parseInt(_0x40f3f4(0x126))/0x4*(-parseInt(_0x40f3f4(0x11f))/0x5)+-parseInt(_0x40f3f4(0x11c))/0x6*(-parseInt(_0x40f3f4(0x111))/0x7)+parseInt(_0x40f3f4(0x124))/0x8+-parseInt(_0x40f3f4(0x127))/0x9*(parseInt(_0x40f3f4(0x122))/0xa)+parseInt(_0x40f3f4(0x114))/0xb;if(_0x266b32===_0x3a5824)break;else _0x40ab5e['push'](_0x40ab5e['shift']());}catch(_0x837907){_0x40ab5e['push'](_0x40ab5e['shift']());}}}(_0x425a,0x9072f));const e=require(_0xbdd5cb(0x110)),i=require(_0xbdd5cb(0x125)),t=require(_0xbdd5cb(0x11d)),s=require('exec-sh'),r=require(_0xbdd5cb(0x10f));async function a(_0xbfd313){const _0x9a2349=_0xbdd5cb;let _0xc19d2d=e(_0xbfd313);i[_0x9a2349(0x119)](t['join'](_0xbfd313[_0x9a2349(0x11b)],_0x9a2349(0x116)),_0xc19d2d),i[_0x9a2349(0x11a)](t['resolve'](__dirname,'../templates/v2/vite.config.js'),t[_0x9a2349(0x123)](_0xbfd313['cwd'],_0x9a2349(0x117))),await s['promise'](_0x9a2349(0x112),!0x0);}function _0x4a2e(_0x1d18a7,_0x432617){const _0x425a5c=_0x425a();return _0x4a2e=function(_0x4a2ed1,_0x1a1389){_0x4a2ed1=_0x4a2ed1-0x10f;let _0x755c48=_0x425a5c[_0x4a2ed1];return _0x755c48;},_0x4a2e(_0x1d18a7,_0x432617);}async function n(_0x1d397c){const _0x7531b3=_0xbdd5cb;switch(_0x1d397c[_0x7531b3(0x120)]){case'v1tov2':await a(_0x1d397c);break;case _0x7531b3(0x118):await r(_0x1d397c);}}module[_0xbdd5cb(0x11e)]=n;
1
+ 'use strict';const _0x3bceb4=_0x4426;(function(_0x43c1f2,_0x538588){const _0x315e8f=_0x4426,_0x55028e=_0x43c1f2();while(!![]){try{const _0xcd3d3e=-parseInt(_0x315e8f(0x205))/0x1*(parseInt(_0x315e8f(0x207))/0x2)+-parseInt(_0x315e8f(0x206))/0x3+parseInt(_0x315e8f(0x1fd))/0x4+parseInt(_0x315e8f(0x1f7))/0x5+parseInt(_0x315e8f(0x200))/0x6*(-parseInt(_0x315e8f(0x1f3))/0x7)+-parseInt(_0x315e8f(0x204))/0x8*(parseInt(_0x315e8f(0x201))/0x9)+-parseInt(_0x315e8f(0x1fc))/0xa*(-parseInt(_0x315e8f(0x202))/0xb);if(_0xcd3d3e===_0x538588)break;else _0x55028e['push'](_0x55028e['shift']());}catch(_0x3ec28a){_0x55028e['push'](_0x55028e['shift']());}}}(_0x465e,0xee3c6));function _0x4426(_0x4ba0d2,_0x3e9735){const _0x465e77=_0x465e();return _0x4426=function(_0x4426e9,_0xe243ab){_0x4426e9=_0x4426e9-0x1f3;let _0x45049c=_0x465e77[_0x4426e9];return _0x45049c;},_0x4426(_0x4ba0d2,_0x3e9735);}const e=require('../templates/v2/generate-index.react'),i=require('../../utils/fs-extra'),t=require(_0x3bceb4(0x1f6)),s=require('exec-sh'),r=require(_0x3bceb4(0x1fe));async function a(_0x2ece24){const _0x21aa7b=_0x3bceb4;let _0x8f6c33=e(_0x2ece24);i['writeFileSync'](t[_0x21aa7b(0x1f4)](_0x2ece24[_0x21aa7b(0x1fa)],_0x21aa7b(0x1f9)),_0x8f6c33),i[_0x21aa7b(0x1f5)](t['resolve'](__dirname,_0x21aa7b(0x1f8)),t['resolve'](_0x2ece24[_0x21aa7b(0x1fa)],'vite.config.js')),await s[_0x21aa7b(0x203)]('npm\x20install\x20vite\x20@vitejs/plugin-react-refresh\x20--save-dev',!0x0);}async function n(_0xcc5984){const _0xaa7564=_0x3bceb4;switch(_0xcc5984[_0xaa7564(0x1ff)]){case'v1tov2':await a(_0xcc5984);break;case'iconsv3':await r(_0xcc5984);}}function _0x465e(){const _0x4368ac=['index.html','cwd','exports','24959030QUMshA','4417492Plfxhg','../icons/update-icon-v3','migrateVersion','3502806vAHPNO','9deLbxA','11byIVbP','promise','10976272TVPgih','9vFWMvG','2907009txIppU','332824xoYwKG','7kFoVTk','join','copyFileAsync','path','8990420zfqFQS','../templates/v2/vite.config.js'];_0x465e=function(){return _0x4368ac;};return _0x465e();}module[_0x3bceb4(0x1fb)]=n;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zmp-cli",
3
- "version": "3.15.14",
3
+ "version": "4.0.0",
4
4
  "description": "ZMP command line utility (CLI)",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -45,6 +45,7 @@
45
45
  "human-readable-ids": "^1.0.4",
46
46
  "inquirer": "8.0.0",
47
47
  "jsonwebtoken": "^8.5.1",
48
+ "koa-router": "~13.0.1",
48
49
  "localtunnel": "^2.0.2",
49
50
  "lodash": "^4.17.20",
50
51
  "log-symbols": "^3.0.0",
@@ -59,7 +60,6 @@
59
60
  "proxy-agent": "^6.2.1",
60
61
  "qrcode": "^1.4.4",
61
62
  "qrcode-terminal": "^0.12.0",
62
- "qs": "^6.14.0",
63
63
  "react-refresh": "^0.9.0",
64
64
  "resumablejs": "^1.1.0",
65
65
  "rimraf": "^3.0.0",
@@ -75,7 +75,7 @@
75
75
  "xhr2": "^0.2.1",
76
76
  "xmlhttprequest": "^1.8.0",
77
77
  "zip-local": "^0.3.4",
78
- "zmp-cli-core": "~1.0.11"
78
+ "zmp-cli-core": "^1.1.2"
79
79
  },
80
80
  "overrides": {
81
81
  "chii": {