zmp-cli 3.15.6-beta.1 → 3.15.7

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 (56) 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/init-zmp-ui.js +1 -1
  5. package/create/utils/colors.js +1 -1
  6. package/create/utils/generate-app-config.js +1 -1
  7. package/create/utils/generate-gitignore.js +1 -1
  8. package/create/utils/generate-npm-scripts.js +1 -1
  9. package/create/utils/generate-package-json.js +1 -1
  10. package/create/utils/generate-readme.js +1 -1
  11. package/create/utils/get-options.js +1 -1
  12. package/create/utils/indent.js +1 -1
  13. package/create/utils/npm-scripts.js +1 -1
  14. package/create/utils/string.js +1 -1
  15. package/create/utils/styles-extension.js +1 -1
  16. package/create/utils/template-if.js +1 -1
  17. package/deploy/index.js +1 -1
  18. package/deploy/utils/get-options.js +1 -1
  19. package/deploy/utils/request-upload.js +1 -1
  20. package/deploy/utils/upload-app.js +1 -1
  21. package/index.js +1 -1
  22. package/login/index.js +1 -1
  23. package/login/utils/get-options.js +1 -1
  24. package/login/utils/zalo-login.js +1 -1
  25. package/migrate/icons/update-icon-v3.js +1 -1
  26. package/migrate/index.js +1 -1
  27. package/migrate/utils/get-options.js +1 -1
  28. package/migrate/utils/migrate-react.js +1 -1
  29. package/package.json +1 -1
  30. package/start/generate-hr-config.js +1 -1
  31. package/start/index.js +1 -1
  32. package/sync/index-to-app-config.js +1 -1
  33. package/sync/index.js +1 -1
  34. package/utils/axios.js +1 -1
  35. package/utils/check-update.js +1 -1
  36. package/utils/constants.js +1 -1
  37. package/utils/env.js +1 -1
  38. package/utils/error.js +1 -1
  39. package/utils/find-files-by-ext.js +1 -1
  40. package/utils/find-free-port.js +1 -1
  41. package/utils/fs-extra.js +1 -1
  42. package/utils/generate-pages-map.js +1 -1
  43. package/utils/get-app-info.js +1 -1
  44. package/utils/get-current-project.js +1 -1
  45. package/utils/get-ip.js +1 -1
  46. package/utils/log.js +1 -1
  47. package/utils/node-blob.js +1 -1
  48. package/utils/resumable.d.js +1 -1
  49. package/utils/resumable.js +1 -1
  50. package/utils/spinner.js +1 -1
  51. package/utils/tunnel.js +1 -1
  52. package/create/templates/react/dist/generate-scripts.dev.js +0 -23
  53. package/create/templates/react-typescript/dist/generate-scripts.dev.js +0 -23
  54. package/deploy/utils/dist/request-upload.dev.js +0 -62
  55. package/deploy/utils/dist/upload-app.dev.js +0 -113
  56. package/login/utils/dist/zalo-login.dev.js +0 -41
package/deploy/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x1bbcf8=_0x37b5;(function(_0x1803b7,_0x23a6a0){const _0x3b6f11=_0x37b5,_0x1152f3=_0x1803b7();while(!![]){try{const _0xff1c69=-parseInt(_0x3b6f11(0xb0))/0x1+-parseInt(_0x3b6f11(0xa3))/0x2*(-parseInt(_0x3b6f11(0xa4))/0x3)+parseInt(_0x3b6f11(0xc8))/0x4*(parseInt(_0x3b6f11(0x93))/0x5)+-parseInt(_0x3b6f11(0xa6))/0x6+-parseInt(_0x3b6f11(0xb2))/0x7+-parseInt(_0x3b6f11(0x91))/0x8*(parseInt(_0x3b6f11(0xb3))/0x9)+-parseInt(_0x3b6f11(0xc7))/0xa*(-parseInt(_0x3b6f11(0xaf))/0xb);if(_0xff1c69===_0x23a6a0)break;else _0x1152f3['push'](_0x1152f3['shift']());}catch(_0x277b28){_0x1152f3['push'](_0x1152f3['shift']());}}}(_0x5e2a,0x65fdf));function _0x37b5(_0x1db8e6,_0x27a8ed){const _0x5e2a73=_0x5e2a();return _0x37b5=function(_0x37b51c,_0x2b9973){_0x37b51c=_0x37b51c-0x8d;let _0x425c80=_0x5e2a73[_0x37b51c];return _0x425c80;},_0x37b5(_0x1db8e6,_0x27a8ed);}function _0x5e2a(){const _0x27b56b=['6gWsVth','versionStatus','1038126MwzyYS','www','Deploy\x20Done!','path','statusError','../config','bold','Deploying\x20Your\x20App\x20','generate','1617qjslsi','333038INmXWQ','zip','2117815rvYihN','63FcykNR','nextVersion','appUrl','entries','desc','text','info','Please\x20define\x20your\x20assets\x20output\x20at\x20app-config.json.\x20Read\x20more:\x20https://mini.zalo.me/intro/getting-started/app-config/','error_msg','zip-local','./utils/request-upload','./utils/upload-app','stringify','listAsyncJS','\x20💪','../build/index','length','app_config_not_found','statusStart','api_domain','64490JFLhAh','4pKILxs','appConfig','customProject','filename','zmp','../utils/env','901288giXhdh','forEach','2349565WTGeJC','dependencies','../utils/fs-extra','env','data','Error\x20deploying\x20your\x20app','exit','listSyncJS','title','identifier','(Please\x20wait,\x20it\x20can\x20take\x20a\x20while)','memory','includes','\x20View\x20app\x20at:\x0a','packageJson','react','597074DTdGMd'];_0x5e2a=function(){return _0x27b56b;};return _0x5e2a();}const e=require('chalk'),t=require(_0x1bbcf8(0xa9)),r=require(_0x1bbcf8(0xbc)),i=require('log-symbols'),a=require('qrcode-terminal'),s=require(_0x1bbcf8(0xab)),n=require(_0x1bbcf8(0xc2)),o=require(_0x1bbcf8(0x90)),p=require(_0x1bbcf8(0xbe)),l=require(_0x1bbcf8(0x95)),u=require(_0x1bbcf8(0xbd)),c=e['gray'](_0x1bbcf8(0x9d)),d={'statusStart'(){},'statusDone'(){},'statusText'(){},'statusError'(){},'text'(){},'error'(){},'showOnUI'(){}};module['exports']=async(_0x244c35={},_0x2c4870=d,{exitOnError:_0x3d3741=!0x0}={})=>{const _0x37a720=_0x1bbcf8;let _0x5a88bd,_0x22f86d,_0x7495fa,_0x10f43c=_0x244c35['cwd']||process['cwd'](),_0xae29a6=_0x244c35['outputDir']||_0x37a720(0xa7),_0x5c310e=s[_0x37a720(0xc6)],_0x503a22=_0x3573c5=>t['join'](_0x10f43c,_0x3573c5);function _0xd100d2(_0x4264cf){const _0x2d7c57=_0x37a720;_0x2c4870['error'](_0x4264cf['stderr']||_0x4264cf),_0x3d3741&&process[_0x2d7c57(0x99)](0x1);}let _0x2f66bc=o['getEnv'](s[_0x37a720(0x96)]['token']),_0x4d7dc0=s[_0x37a720(0x8e)][_0x37a720(0xc9)],_0x4cdfa1=s['filename'][_0x37a720(0xa1)],_0x2982c0=!0x0;try{_0x5a88bd=require(_0x503a22(_0x4d7dc0));}catch(_0x446b4e){try{_0x5a88bd=require(_0x503a22(_0xae29a6+'/'+_0x4d7dc0)),_0x2982c0=!0x1;}catch(_0x437196){_0xd100d2(Error(s[_0x37a720(0xbb)][_0x37a720(0xc4)]));}}let _0x155b31={};try{let _0x39e3d1=require(_0x503a22(_0x4cdfa1))[_0x37a720(0x94)];Object[_0x37a720(0xb6)](_0x39e3d1)[_0x37a720(0x92)](([_0x4d5ed9,_0x18f6e4])=>{const _0x3c495f=_0x37a720;(_0x4d5ed9[_0x3c495f(0x9f)](_0x3c495f(0x8f))||_0x4d5ed9[_0x3c495f(0x9f)](_0x3c495f(0xa2)))&&(_0x155b31[_0x4d5ed9]=_0x18f6e4);});}catch(_0x4cc4a6){}let _0x5b5b79={'appName':_0x5a88bd['app'][_0x37a720(0x9b)],'appDesc':_0x244c35[_0x37a720(0xb7)]||'Update\x20app\x20with\x20new\x20version','appConfig':JSON[_0x37a720(0xbf)](_0x5a88bd),'frameworkVersions':JSON[_0x37a720(0xbf)](_0x155b31)};try{let _0xb21c78=''+_0x5c310e+s['path']['requestUploadResumable'],_0x3504a7=await u(_0xb21c78,_0x5b5b79,_0x244c35[_0x37a720(0xa5)],_0x2f66bc);_0x22f86d=_0x3504a7[_0x37a720(0xb4)],_0x7495fa=_0x3504a7[_0x37a720(0x9c)];}catch(_0x584cae){_0xd100d2(_0x584cae);}if(_0x244c35[_0x37a720(0x8d)]){let _0x3bdaf9=0x0;_0x5a88bd[_0x37a720(0x9a)]&&_0x5a88bd[_0x37a720(0x9a)][_0x37a720(0xc3)]>0x0&&(_0x3bdaf9+=0x1),_0x5a88bd['listAsyncJS']&&_0x5a88bd[_0x37a720(0xc0)]['length']>0x0&&(_0x3bdaf9+=0x1),0x0===_0x3bdaf9&&_0xd100d2(Error(_0x37a720(0xba))),_0x2982c0&&l['writeFileSync'](_0x503a22(_0xae29a6+'/'+s['filename'][_0x37a720(0xc9)]),JSON[_0x37a720(0xbf)](_0x5a88bd));}else _0x5a88bd=await n({..._0x244c35,'appConfigJson':_0x5a88bd,'nextVersion':_0x22f86d},_0x2c4870);_0x2c4870[_0x37a720(0xc5)](_0x37a720(0xad)+c);try{let _0x21bfc3=await new Promise((_0x1710c9,_0x2ed7b3)=>{const _0x52f2c5=_0x37a720;r[_0x52f2c5(0xb1)](_0x503a22(_0xae29a6),function(_0x1c141c,_0x526345){const _0x1c0a14=_0x52f2c5;return _0x1c141c?_0x2ed7b3(_0x1c141c):(_0x526345['compress'](),_0x1710c9(_0x526345[_0x1c0a14(0x9e)]()));});}),_0x12493e={..._0x5b5b79,'appBuffer':_0x21bfc3,'identifier':_0x7495fa},_0x40daae=await p(_0x12493e,_0x244c35,_0x2c4870),_0x13d701=_0x40daae&&_0x40daae[_0x37a720(0x97)]&&_0x40daae[_0x37a720(0x97)][_0x37a720(0xb5)];a[_0x37a720(0xae)](_0x13d701,{'small':!0x0},function(_0x2adedd){const _0x1a6e48=_0x37a720;let _0x1722f8=''+e[_0x1a6e48(0xac)](i[_0x1a6e48(0xb9)]+_0x1a6e48(0xa0)+_0x2adedd);_0x2c4870['statusDone'](e[_0x1a6e48(0xac)]['green'](_0x1a6e48(0xa8))+_0x1a6e48(0xc1)),_0x2c4870[_0x1a6e48(0xb8)](_0x1722f8);});}catch(_0x151852){_0x2c4870[_0x37a720(0xaa)](_0x37a720(0x98)),_0xd100d2(_0x151852);}};
1
+ 'use strict';const _0x98bc04=_0x2fa1;(function(_0x55cc49,_0x20b9b3){const _0x1f60da=_0x2fa1,_0x4a9c39=_0x55cc49();while(!![]){try{const _0x249369=-parseInt(_0x1f60da(0x144))/0x1*(-parseInt(_0x1f60da(0x10e))/0x2)+-parseInt(_0x1f60da(0x13c))/0x3*(parseInt(_0x1f60da(0x129))/0x4)+-parseInt(_0x1f60da(0x10a))/0x5*(-parseInt(_0x1f60da(0x133))/0x6)+parseInt(_0x1f60da(0x142))/0x7+parseInt(_0x1f60da(0x10b))/0x8*(parseInt(_0x1f60da(0x10c))/0x9)+parseInt(_0x1f60da(0x105))/0xa+-parseInt(_0x1f60da(0x13f))/0xb;if(_0x249369===_0x20b9b3)break;else _0x4a9c39['push'](_0x4a9c39['shift']());}catch(_0x291063){_0x4a9c39['push'](_0x4a9c39['shift']());}}}(_0x4e15,0x674da));function _0x4e15(){const _0x4b1409=['\x20View\x20app\x20at:\x0a','\x20💪','log-symbols','cwd','3SZRJEd','../utils/fs-extra','memory','13495515AwPlEN','../utils/env','Update\x20app\x20with\x20new\x20version','171206mwulPr','compress','19PBcIjz','join','www','length','listSyncJS','5894500XapPSb','./utils/upload-app','Please\x20define\x20your\x20assets\x20output\x20at\x20app-config.json.\x20Read\x20more:\x20https://mini.zalo.me/intro/getting-started/app-config/','filename','zmp','4735zpRLEJ','14848ewAKXW','2907dUIYHo','api_domain','1186mbxgZv','chalk','desc','statusError','../config','appConfig','error_msg','includes','identifier','forEach','data','Deploy\x20Done!','Version:','exit','app_config_not_found','info','Error\x20deploying\x20your\x20app','packageJson','green','nextVersion','appUrl','zip','entries','statusDone','gray','error','text','1037396JfOTbz','customProject','env','Deploying\x20Your\x20App\x20','stringify','writeFileSync','./utils/request-upload','token','title','bold','4338CtnmjO','path','zip-local','versionStatus','listAsyncJS'];_0x4e15=function(){return _0x4b1409;};return _0x4e15();}const e=require(_0x98bc04(0x10f)),t=require('path'),r=require(_0x98bc04(0x135)),i=require(_0x98bc04(0x13a)),a=require('qrcode-terminal'),s=require(_0x98bc04(0x112)),n=require('../build/index'),o=require(_0x98bc04(0x140)),p=require(_0x98bc04(0x106)),l=require(_0x98bc04(0x13d)),u=require(_0x98bc04(0x12f)),c=e[_0x98bc04(0x126)]('(Please\x20wait,\x20it\x20can\x20take\x20a\x20while)'),d={'statusStart'(){},'statusDone'(){},'statusText'(){},'statusError'(){},'text'(){},'error'(){},'showOnUI'(){}};function _0x2fa1(_0x1d8113,_0x42bec3){const _0x4e15b8=_0x4e15();return _0x2fa1=function(_0x2fa14e,_0x2180dd){_0x2fa14e=_0x2fa14e-0x101;let _0xe356ae=_0x4e15b8[_0x2fa14e];return _0xe356ae;},_0x2fa1(_0x1d8113,_0x42bec3);}module['exports']=async(_0x4e1432={},_0x493c99=d,{exitOnError:_0x820e32=!0x0}={})=>{const _0x194e96=_0x98bc04;let _0x273800,_0x1e81f4,_0x3b59c8,_0x5ca6b5=_0x4e1432[_0x194e96(0x13b)]||process[_0x194e96(0x13b)](),_0x3d2f12=_0x4e1432['outputDir']||_0x194e96(0x102),_0x5c599a=s[_0x194e96(0x10d)],_0x4db6e3=_0x98788=>t[_0x194e96(0x101)](_0x5ca6b5,_0x98788);function _0x54b6cc(_0x269b27){const _0x14cc67=_0x194e96;_0x493c99[_0x14cc67(0x127)](_0x269b27['stderr']||_0x269b27),_0x820e32&&process[_0x14cc67(0x11b)](0x1);}let _0x23c154=o['getEnv'](s[_0x194e96(0x12b)][_0x194e96(0x130)]),_0x40cf39=s[_0x194e96(0x108)][_0x194e96(0x113)],_0x476582=s['filename'][_0x194e96(0x11f)],_0x19c003=!0x0;try{_0x273800=require(_0x4db6e3(_0x40cf39));}catch(_0x2a1fbf){try{_0x273800=require(_0x4db6e3(_0x3d2f12+'/'+_0x40cf39)),_0x19c003=!0x1;}catch(_0x5e3467){_0x54b6cc(Error(s[_0x194e96(0x114)][_0x194e96(0x11c)]));}}let _0x45fa61={};try{let _0x309862=require(_0x4db6e3(_0x476582))['dependencies'];Object[_0x194e96(0x124)](_0x309862)[_0x194e96(0x117)](([_0x1e9f2f,_0x468ef2])=>{const _0x1ffba1=_0x194e96;(_0x1e9f2f[_0x1ffba1(0x115)](_0x1ffba1(0x109))||_0x1e9f2f[_0x1ffba1(0x115)]('react'))&&(_0x45fa61[_0x1e9f2f]=_0x468ef2);});}catch(_0x341b58){}let _0x2d4a28={'appName':_0x273800['app'][_0x194e96(0x131)],'appDesc':_0x4e1432[_0x194e96(0x110)]||_0x194e96(0x141),'appConfig':JSON[_0x194e96(0x12d)](_0x273800),'frameworkVersions':JSON['stringify'](_0x45fa61)};try{let _0x302e53=''+_0x5c599a+s[_0x194e96(0x134)]['requestUploadResumable'],_0x4ed4db=await u(_0x302e53,_0x2d4a28,_0x4e1432[_0x194e96(0x136)],_0x23c154);_0x1e81f4=_0x4ed4db[_0x194e96(0x121)],_0x3b59c8=_0x4ed4db[_0x194e96(0x116)];}catch(_0x3a06fe){_0x54b6cc(_0x3a06fe);}if(_0x4e1432[_0x194e96(0x12a)]){let _0x46887b=0x0;_0x273800[_0x194e96(0x104)]&&_0x273800[_0x194e96(0x104)][_0x194e96(0x103)]>0x0&&(_0x46887b+=0x1),_0x273800[_0x194e96(0x137)]&&_0x273800['listAsyncJS'][_0x194e96(0x103)]>0x0&&(_0x46887b+=0x1),0x0===_0x46887b&&_0x54b6cc(Error(_0x194e96(0x107))),_0x19c003&&l[_0x194e96(0x12e)](_0x4db6e3(_0x3d2f12+'/'+s[_0x194e96(0x108)][_0x194e96(0x113)]),JSON[_0x194e96(0x12d)](_0x273800));}else _0x273800=await n({..._0x4e1432,'appConfigJson':_0x273800,'nextVersion':_0x1e81f4},_0x493c99);_0x493c99['statusStart'](_0x194e96(0x12c)+c);try{let _0x16cd3b=await new Promise((_0x3b97b6,_0x5485a9)=>{const _0x2bf2d0=_0x194e96;r[_0x2bf2d0(0x123)](_0x4db6e3(_0x3d2f12),function(_0x347e2d,_0x151ec2){const _0x50ebc7=_0x2bf2d0;return _0x347e2d?_0x5485a9(_0x347e2d):(_0x151ec2[_0x50ebc7(0x143)](),_0x3b97b6(_0x151ec2[_0x50ebc7(0x13e)]()));});}),_0x2c6bf2={..._0x2d4a28,'appBuffer':_0x16cd3b,'identifier':_0x3b59c8},_0x1f7bd0=await p(_0x2c6bf2,_0x4e1432,_0x493c99),_0x2d66aa=_0x1f7bd0&&_0x1f7bd0['data']&&_0x1f7bd0[_0x194e96(0x118)][_0x194e96(0x122)];a['generate'](_0x2d66aa,{'small':!0x0},function(_0x585862){const _0x18cfcd=_0x194e96;let _0x262baa=''+e['bold'](i[_0x18cfcd(0x11d)]+_0x18cfcd(0x138)+_0x585862);_0x493c99[_0x18cfcd(0x125)](e[_0x18cfcd(0x132)][_0x18cfcd(0x120)](_0x18cfcd(0x119))+_0x18cfcd(0x139)),_0x493c99['statusDone'](e['bold']['green'](_0x18cfcd(0x11a))+'\x20'+_0x1e81f4),_0x493c99[_0x18cfcd(0x128)](_0x262baa);});}catch(_0x177c37){_0x493c99[_0x194e96(0x111)](_0x194e96(0x11e)),_0x54b6cc(_0x177c37);}};
@@ -1 +1 @@
1
- 'use strict';function _0x5273(){const _0x533110=['10ZcMxjI','18384vLASxC','888824ntcDDp','2004860FirZrK','Description\x20is\x20required!','109541pycRBi','What\x20version\x20status\x20are\x20you\x20deploying?','list','desc','48qZkcPo','inquirer','customProject','7503167iKUBNc','This\x20is\x20not\x20a\x20ZMP\x20Project,\x20do\x20you\x20want\x20to\x20continue?','24FYRgKN','../../utils/constants','prompt','length','10ZyHjUI','868542RGbwnK','keys','10IJllmN','input','Description:','capitalize','quit','outputDir','Server\x20type\x20is\x20required!','lodash','223553icTrSm','9smZoST','www','exports'];_0x5273=function(){return _0x533110;};return _0x5273();}const _0x41070e=_0x28ad;(function(_0x52a146,_0x197fd7){const _0xa443e1=_0x28ad,_0x5ddbc2=_0x52a146();while(!![]){try{const _0x1b1442=parseInt(_0xa443e1(0x1d3))/0x1*(parseInt(_0xa443e1(0x1e0))/0x2)+parseInt(_0xa443e1(0x1dc))/0x3*(-parseInt(_0xa443e1(0x1cf))/0x4)+parseInt(_0xa443e1(0x1ce))/0x5*(-parseInt(_0xa443e1(0x1e1))/0x6)+parseInt(_0xa443e1(0x1da))/0x7+parseInt(_0xa443e1(0x1d0))/0x8*(-parseInt(_0xa443e1(0x1cb))/0x9)+-parseInt(_0xa443e1(0x1e3))/0xa*(-parseInt(_0xa443e1(0x1ca))/0xb)+parseInt(_0xa443e1(0x1d7))/0xc*(-parseInt(_0xa443e1(0x1d1))/0xd);if(_0x1b1442===_0x197fd7)break;else _0x5ddbc2['push'](_0x5ddbc2['shift']());}catch(_0x6c6dd7){_0x5ddbc2['push'](_0x5ddbc2['shift']());}}}(_0x5273,0x8efac));const e=require(_0x41070e(0x1d8)),{versionStatus:t}=require(_0x41070e(0x1dd)),i=require(_0x41070e(0x1c9)),r=[{'type':_0x41070e(0x1d5),'name':'versionStatus','message':_0x41070e(0x1d4),'choices':Object[_0x41070e(0x1e2)](t)['map'](_0x32ac86=>({'name':i[_0x41070e(0x1e6)](_0x32ac86),'value':t[_0x32ac86]})),'when':_0x1845ad=>!_0x1845ad[_0x41070e(0x1c6)],'validate':_0x4354fb=>new Promise((_0x51f8b7,_0x4eed2e)=>{const _0x289918=_0x41070e;_0x4354fb&&_0x4354fb[_0x289918(0x1df)]?_0x51f8b7(!0x0):_0x4eed2e(Error(_0x289918(0x1c8)));})},{'type':_0x41070e(0x1e4),'name':_0x41070e(0x1d6),'message':_0x41070e(0x1e5),'when':_0x1da252=>!_0x1da252[_0x41070e(0x1c6)],'validate':_0x264fa8=>new Promise((_0x85b1d8,_0x79f677)=>{const _0x15aea4=_0x41070e;_0x264fa8&&_0x264fa8['length']?_0x85b1d8(!0x0):_0x79f677(Error(_0x15aea4(0x1d2)));})}],s=[{'type':_0x41070e(0x1d5),'name':_0x41070e(0x1c6),'message':_0x41070e(0x1db),'choices':[{'name':'Deploy\x20your\x20existing\x20project','value':!0x1},{'name':'Quit','value':!0x0}]},{'type':_0x41070e(0x1e4),'name':_0x41070e(0x1c7),'message':'Where\x20is\x20your\x20dist\x20folder?','when':_0x2dc714=>!_0x2dc714[_0x41070e(0x1c6)],'default':_0x41070e(0x1cc)}];function _0x28ad(_0x216086,_0x3321ee){const _0x5273b3=_0x5273();return _0x28ad=function(_0x28ad3d,_0xbccd99){_0x28ad3d=_0x28ad3d-0x1c6;let _0x2f8c91=_0x5273b3[_0x28ad3d];return _0x2f8c91;},_0x28ad(_0x216086,_0x3321ee);}module[_0x41070e(0x1cd)]=async function(_0x2c17f7){const _0x5e5da6=_0x41070e;let _0x285278=_0x2c17f7?[...r]:[...s,...r];return e[_0x5e5da6(0x1de)](_0x285278)['then'](_0x1eeb0e=>(_0x1eeb0e[_0x5e5da6(0x1d9)]=!0x1,!0x1===_0x1eeb0e['quit']&&(_0x1eeb0e['customProject']=!0x0),Promise['resolve'](_0x1eeb0e)));};
1
+ 'use strict';const _0x2156aa=_0x2c1c;(function(_0x67689e,_0x1e5002){const _0x2f2439=_0x2c1c,_0x3279a9=_0x67689e();while(!![]){try{const _0x341e26=parseInt(_0x2f2439(0x1a6))/0x1*(parseInt(_0x2f2439(0x1ae))/0x2)+parseInt(_0x2f2439(0x1aa))/0x3*(-parseInt(_0x2f2439(0x1bb))/0x4)+-parseInt(_0x2f2439(0x1b0))/0x5+-parseInt(_0x2f2439(0x1ba))/0x6+-parseInt(_0x2f2439(0x1a0))/0x7*(parseInt(_0x2f2439(0x1b7))/0x8)+-parseInt(_0x2f2439(0x19c))/0x9+parseInt(_0x2f2439(0x1a4))/0xa*(parseInt(_0x2f2439(0x1b6))/0xb);if(_0x341e26===_0x1e5002)break;else _0x3279a9['push'](_0x3279a9['shift']());}catch(_0x4aaf8a){_0x3279a9['push'](_0x3279a9['shift']());}}}(_0x4960,0xa1a86));function _0x2c1c(_0xbdbec6,_0x335c4b){const _0x4960d2=_0x4960();return _0x2c1c=function(_0x2c1c4c,_0x4e0847){_0x2c1c4c=_0x2c1c4c-0x19c;let _0x4cdf04=_0x4960d2[_0x2c1c4c];return _0x4cdf04;},_0x2c1c(_0xbdbec6,_0x335c4b);}function _0x4960(){const _0x13528e=['versionStatus','../../utils/constants','Quit','25541030oKNoFn','length','826iwzrlY','What\x20version\x20status\x20are\x20you\x20deploying?','inquirer','lodash','27LNaWMh','then','input','prompt','122LaAtqy','map','2690745GdYKpD','Description:','www','keys','Where\x20is\x20your\x20dist\x20folder?','quit','22BVkYud','1360Kpzwpc','outputDir','list','5667498LszkmC','580292WvIaoB','Description\x20is\x20required!','capitalize','7711767JUYEBW','Server\x20type\x20is\x20required!','Deploy\x20your\x20existing\x20project','customProject','35049CwMMZR'];_0x4960=function(){return _0x13528e;};return _0x4960();}const e=require(_0x2156aa(0x1a8)),{versionStatus:t}=require(_0x2156aa(0x1a2)),i=require(_0x2156aa(0x1a9)),r=[{'type':_0x2156aa(0x1b9),'name':_0x2156aa(0x1a1),'message':_0x2156aa(0x1a7),'choices':Object[_0x2156aa(0x1b3)](t)[_0x2156aa(0x1af)](_0x314abb=>({'name':i[_0x2156aa(0x1bd)](_0x314abb),'value':t[_0x314abb]})),'when':_0x44a0ea=>!_0x44a0ea['quit'],'validate':_0x182465=>new Promise((_0x7e3a87,_0x407e48)=>{const _0x1b6730=_0x2156aa;_0x182465&&_0x182465['length']?_0x7e3a87(!0x0):_0x407e48(Error(_0x1b6730(0x19d)));})},{'type':_0x2156aa(0x1ac),'name':'desc','message':_0x2156aa(0x1b1),'when':_0x30b586=>!_0x30b586[_0x2156aa(0x1b5)],'validate':_0x4c4803=>new Promise((_0xc55e29,_0x268cd1)=>{const _0x46aae2=_0x2156aa;_0x4c4803&&_0x4c4803[_0x46aae2(0x1a5)]?_0xc55e29(!0x0):_0x268cd1(Error(_0x46aae2(0x1bc)));})}],s=[{'type':'list','name':'quit','message':'This\x20is\x20not\x20a\x20ZMP\x20Project,\x20do\x20you\x20want\x20to\x20continue?','choices':[{'name':_0x2156aa(0x19e),'value':!0x1},{'name':_0x2156aa(0x1a3),'value':!0x0}]},{'type':_0x2156aa(0x1ac),'name':_0x2156aa(0x1b8),'message':_0x2156aa(0x1b4),'when':_0x3d0ecb=>!_0x3d0ecb['quit'],'default':_0x2156aa(0x1b2)}];module['exports']=async function(_0x4ad309){const _0x358d7b=_0x2156aa;let _0x246166=_0x4ad309?[...r]:[...s,...r];return e[_0x358d7b(0x1ad)](_0x246166)[_0x358d7b(0x1ab)](_0x328022=>(_0x328022[_0x358d7b(0x19f)]=!0x1,!0x1===_0x328022['quit']&&(_0x328022[_0x358d7b(0x19f)]=!0x0),Promise['resolve'](_0x328022)));};
@@ -1 +1 @@
1
- 'use strict';const _0x335675=_0x1544;(function(_0x37a012,_0x3cbd74){const _0x3d7730=_0x1544,_0x1550f0=_0x37a012();while(!![]){try{const _0x38d230=-parseInt(_0x3d7730(0x164))/0x1*(-parseInt(_0x3d7730(0x16f))/0x2)+parseInt(_0x3d7730(0x15f))/0x3+-parseInt(_0x3d7730(0x161))/0x4*(parseInt(_0x3d7730(0x166))/0x5)+parseInt(_0x3d7730(0x170))/0x6+parseInt(_0x3d7730(0x169))/0x7*(parseInt(_0x3d7730(0x172))/0x8)+parseInt(_0x3d7730(0x173))/0x9+-parseInt(_0x3d7730(0x163))/0xa;if(_0x38d230===_0x3cbd74)break;else _0x1550f0['push'](_0x1550f0['shift']());}catch(_0x3d7235){_0x1550f0['push'](_0x1550f0['shift']());}}}(_0x2b7a,0x6da44));const {axiosClient:r}=require(_0x335675(0x171)),e=require(_0x335675(0x16c)),i=async(_0x262185,_0x2436a4,_0x38af7c,_0xe36021)=>{const _0x329308=_0x335675;let {appName:_0x2739e6,appDesc:_0x305561,appConfig:_0x219429,frameworkVersions:_0x57248f}=_0x2436a4,_0x47e404={'Authorization':_0x329308(0x162)+_0xe36021,'cache-control':_0x329308(0x16b)},_0xc84a44=(await r[_0x329308(0x165)](_0x262185,{'params':{'name':_0x2739e6,'desc':_0x305561,'config':_0x219429,'versionStatus':_0x38af7c,'frameworkVersions':_0x57248f},'headers':_0x47e404,'withCredentials':!0x0}))[_0x329308(0x168)];if(!_0xc84a44||_0xc84a44[_0x329308(0x16d)]<0x0){if(_0xc84a44&&_0xc84a44[_0x329308(0x16d)]===e[_0x329308(0x16e)][_0x329308(0x16a)])throw Error(e[_0x329308(0x160)]['permission_denied']);throw Error(JSON['stringify'](_0xc84a44));}return _0xc84a44[_0x329308(0x168)];};function _0x1544(_0x3d64fb,_0x1d2c63){const _0x2b7aa7=_0x2b7a();return _0x1544=function(_0x1544dd,_0x24aca0){_0x1544dd=_0x1544dd-0x15f;let _0x265015=_0x2b7aa7[_0x1544dd];return _0x265015;},_0x1544(_0x3d64fb,_0x1d2c63);}function _0x2b7a(){const _0x23a8e0=['70458CIwrsl','5197422AkNoGL','../../utils/axios','8SsiSqz','1529271iUvwJB','2327940tMrMxy','error_msg','4ioKFSh','Bearer\x20','24604790fKBjga','15ASrcxI','get','167605DjeIpB','exports','data','4217647uINavy','permission_denied','no-cache','../../config','err','error_code'];_0x2b7a=function(){return _0x23a8e0;};return _0x2b7a();}module[_0x335675(0x167)]=i;
1
+ 'use strict';const _0x1789ac=_0x3bd0;(function(_0x29b58a,_0x22616b){const _0x36157f=_0x3bd0,_0x2ebc6a=_0x29b58a();while(!![]){try{const _0x18d73c=-parseInt(_0x36157f(0x144))/0x1+parseInt(_0x36157f(0x13a))/0x2*(-parseInt(_0x36157f(0x14c))/0x3)+parseInt(_0x36157f(0x148))/0x4*(parseInt(_0x36157f(0x14d))/0x5)+parseInt(_0x36157f(0x13c))/0x6*(parseInt(_0x36157f(0x147))/0x7)+-parseInt(_0x36157f(0x13e))/0x8*(-parseInt(_0x36157f(0x13b))/0x9)+-parseInt(_0x36157f(0x14e))/0xa*(-parseInt(_0x36157f(0x146))/0xb)+parseInt(_0x36157f(0x14a))/0xc*(parseInt(_0x36157f(0x142))/0xd);if(_0x18d73c===_0x22616b)break;else _0x2ebc6a['push'](_0x2ebc6a['shift']());}catch(_0x4a0e5a){_0x2ebc6a['push'](_0x2ebc6a['shift']());}}}(_0x4844,0x6bc87));const {axiosClient:r}=require('../../utils/axios'),e=require('../../config'),i=async(_0x2c50f1,_0x327cc2,_0x1600e8,_0x3fb5bd)=>{const _0x161d33=_0x3bd0;let {appName:_0x32db1b,appDesc:_0x4b032e,appConfig:_0x87a84,frameworkVersions:_0x49dcea}=_0x327cc2,_0x5ea28f={'Authorization':_0x161d33(0x141)+_0x3fb5bd,'cache-control':_0x161d33(0x13d)},_0x27be06=(await r[_0x161d33(0x149)](_0x2c50f1,{'params':{'name':_0x32db1b,'desc':_0x4b032e,'config':_0x87a84,'versionStatus':_0x1600e8,'frameworkVersions':_0x49dcea},'headers':_0x5ea28f,'withCredentials':!0x0}))[_0x161d33(0x14b)];if(!_0x27be06||_0x27be06[_0x161d33(0x13f)]<0x0){if(_0x27be06&&_0x27be06[_0x161d33(0x13f)]===e[_0x161d33(0x14f)][_0x161d33(0x145)])throw Error(e[_0x161d33(0x143)][_0x161d33(0x145)]);throw Error(JSON['stringify'](_0x27be06));}return _0x27be06[_0x161d33(0x14b)];};function _0x3bd0(_0x557eab,_0x97530b){const _0x4844fc=_0x4844();return _0x3bd0=function(_0x3bd015,_0x52fae6){_0x3bd015=_0x3bd015-0x13a;let _0x1e71c1=_0x4844fc[_0x3bd015];return _0x1e71c1;},_0x3bd0(_0x557eab,_0x97530b);}function _0x4844(){const _0x5a4e30=['36588FTKPub','data','3lCvxWJ','8035njOzZH','1250stZNFD','error_code','771186CBinPV','891477GaRMci','68838ehqpeq','no-cache','8JNkbdB','err','exports','Bearer\x20','195YtyToW','error_msg','829378lCuefM','permission_denied','26972GsVgKf','399ngBudb','1372cEotLx','get'];_0x4844=function(){return _0x5a4e30;};return _0x4844();}module[_0x1789ac(0x140)]=i;
@@ -1 +1 @@
1
- 'use strict';const _0xf4b41c=_0x1a29;(function(_0x4b6ca0,_0x5617a5){const _0x26944=_0x1a29,_0x2ad870=_0x4b6ca0();while(!![]){try{const _0x2359fc=-parseInt(_0x26944(0x9e))/0x1*(parseInt(_0x26944(0xb6))/0x2)+-parseInt(_0x26944(0xb9))/0x3*(-parseInt(_0x26944(0xa4))/0x4)+-parseInt(_0x26944(0xa7))/0x5*(-parseInt(_0x26944(0xaa))/0x6)+parseInt(_0x26944(0x91))/0x7+parseInt(_0x26944(0xa5))/0x8*(-parseInt(_0x26944(0xad))/0x9)+-parseInt(_0x26944(0xa2))/0xa+parseInt(_0x26944(0x9c))/0xb*(parseInt(_0x26944(0x97))/0xc);if(_0x2359fc===_0x5617a5)break;else _0x2ad870['push'](_0x2ad870['shift']());}catch(_0x10b5e2){_0x2ad870['push'](_0x2ad870['shift']());}}}(_0x57ae,0x5bc92));function _0x1a29(_0x11424e,_0x76a8b){const _0x57ae72=_0x57ae();return _0x1a29=function(_0x1a292d,_0x4e57b5){_0x1a292d=_0x1a292d-0x8f;let _0x1e6ce6=_0x57ae72[_0x1a292d];return _0x1e6ce6;},_0x1a29(_0x11424e,_0x76a8b);}const r=require(_0xf4b41c(0xa1)),e=require(_0xf4b41c(0xac)),n=require(_0xf4b41c(0x9a)),o=require('../../utils/env'),t=require('file-api')[_0xf4b41c(0xb2)],a=require('form-data'),u=require(_0xf4b41c(0x96));function _0x57ae(){const _0x1ae4b3=['resumable_option','config','../../utils/resumable','6493780nqjpTV','complete','4532UMSUrL','8zAJBlY','statusText','845ZDBLuE','support','addFile','13290xaimIx','name','chalk','5990958hVpIEB','Bearer\x20','fileSuccess','Error\x20upload\x20app:\x20','zipFile','File','api_domain','fileAdded','upload','134tsqEEq','round','isNumber','1416COLQCz','fileProgress','append','getEnv','path','err','progress','4796925vThTnf','gray','Does\x20not\x20support\x20upload\x20app','cancel','env','lodash','3100152ulrcJP','parse','fileError','../../config','desc','11nXEWVN','statusError','2414VjNJpq'];_0x57ae=function(){return _0x1ae4b3;};return _0x57ae();}module['exports']=async function(_0x47bfcd,_0x324601,_0x3713a9){const _0x241ff0=_0xf4b41c;let _0x2d3fba=n[_0x241ff0(0xb3)],_0x142a97=''+_0x2d3fba+n[_0x241ff0(0xbd)]['uploadAppByChunk'],{appName:_0x2aac7d,appDesc:_0x4cc1a0,appBuffer:_0x51b473,appConfig:_0x235629,identifier:_0x28d575}=_0x47bfcd,_0xe36d3c=o[_0x241ff0(0xbc)](n[_0x241ff0(0x95)]['token']),_0x313b4f=new r({...n[_0x241ff0(0x9f)],'target':_0x142a97,'headers':{'Authorization':_0x241ff0(0xae)+_0xe36d3c},'generateUniqueIdentifier':()=>_0x28d575}),_0x2eeeea=new a();if(_0x2eeeea['append'](_0x241ff0(0xb1),_0x51b473),_0x2eeeea[_0x241ff0(0xbb)](_0x241ff0(0xab),_0x2aac7d),_0x2eeeea[_0x241ff0(0xbb)](_0x241ff0(0x9b),_0x4cc1a0),_0x2eeeea['append'](_0x241ff0(0xa0),_0x235629),_0x313b4f[_0x241ff0(0xa8)])return _0x313b4f['on'](_0x241ff0(0xba),function(_0x51cd11){const _0x2f4c7b=_0x241ff0;let _0x2f4ded=Array(Math['round'](0x64*_0x51cd11[_0x2f4c7b(0x90)]())%0x65+0x1)['join']('|');_0x3713a9[_0x2f4c7b(0xa6)]('Deploying\x20Your\x20App\x20'+e[_0x2f4c7b(0x92)]('\x0a'+_0x2f4ded+'\x20'+Math[_0x2f4c7b(0xb7)](0x64*_0x51cd11['progress']())+'%'));}),await new Promise((_0x169442,_0x118e03)=>{const _0x19567e=_0x241ff0;try{var _0x19ff6f=new t({'name':'www.zip','buffer':_0x51b473});_0x313b4f['on'](_0x19567e(0xb4),function(){const _0x10ef95=_0x19567e;_0x313b4f[_0x10ef95(0xb5)]();}),_0x313b4f['on'](_0x19567e(0xa3),function(){return _0x169442();}),_0x313b4f['on'](_0x19567e(0x99),function(_0x1ad92b,_0x128030){return _0x118e03(Error('Error\x20upload\x20app:\x20'+_0x128030));}),_0x313b4f['on'](_0x19567e(0x94),function(){return _0x118e03(Error('Error\x20upload\x20app:\x20cancel'));}),_0x313b4f['on'](_0x19567e(0xaf),function(_0x5f0c14,_0x26f5ff){const _0x3d73ee=_0x19567e;let _0x29b488=JSON[_0x3d73ee(0x98)](_0x26f5ff);return u[_0x3d73ee(0xb8)](_0x29b488[_0x3d73ee(0x8f)])&&_0x29b488[_0x3d73ee(0x8f)]<0x0?_0x118e03(Error(_0x3d73ee(0xb0)+_0x26f5ff)):_0x169442(_0x29b488);}),_0x313b4f[_0x19567e(0xa9)](_0x19ff6f);}catch(_0x36c4d0){return _0x118e03(_0x36c4d0);}});_0x3713a9[_0x241ff0(0x9d)](_0x241ff0(0x93));};
1
+ 'use strict';const _0xc6b83f=_0x13b5;function _0x13b5(_0x133dfe,_0x18d5da){const _0x3f8c85=_0x3f8c();return _0x13b5=function(_0x13b523,_0xc31df1){_0x13b523=_0x13b523-0x17e;let _0x22b26f=_0x3f8c85[_0x13b523];return _0x22b26f;},_0x13b5(_0x133dfe,_0x18d5da);}(function(_0x54de23,_0x3f0370){const _0x4f2c8e=_0x13b5,_0x443653=_0x54de23();while(!![]){try{const _0x214b76=-parseInt(_0x4f2c8e(0x193))/0x1*(-parseInt(_0x4f2c8e(0x181))/0x2)+-parseInt(_0x4f2c8e(0x1ae))/0x3*(parseInt(_0x4f2c8e(0x18d))/0x4)+-parseInt(_0x4f2c8e(0x185))/0x5*(-parseInt(_0x4f2c8e(0x194))/0x6)+parseInt(_0x4f2c8e(0x199))/0x7*(parseInt(_0x4f2c8e(0x19f))/0x8)+parseInt(_0x4f2c8e(0x1a1))/0x9*(-parseInt(_0x4f2c8e(0x191))/0xa)+parseInt(_0x4f2c8e(0x19b))/0xb+parseInt(_0x4f2c8e(0x1af))/0xc;if(_0x214b76===_0x3f0370)break;else _0x443653['push'](_0x443653['shift']());}catch(_0x19ffa4){_0x443653['push'](_0x443653['shift']());}}}(_0x3f8c,0x92aab));const r=require(_0xc6b83f(0x1a0)),e=require(_0xc6b83f(0x190)),n=require('../../config'),o=require('../../utils/env'),t=require(_0xc6b83f(0x18b))[_0xc6b83f(0x18c)],a=require(_0xc6b83f(0x197)),u=require('lodash');function _0x3f8c(){const _0x193f1e=['1058740qnvhjH','getEnv','token','chalk','30DSHPOL','parse','1TnOKWs','8586sJhEHI','fileError','Does\x20not\x20support\x20upload\x20app','form-data','round','399HCMrNy','resumable_option','1780878CMFUnz','config','Error\x20upload\x20app:\x20cancel','Bearer\x20','65080BGAmSm','../../utils/resumable','2533140BIHijj','path','upload','join','exports','isNumber','env','addFile','progress','append','fileSuccess','support','err','6CXJlqM','633360RBzZxi','name','Error\x20upload\x20app:\x20','fileProgress','686156ztonuj','cancel','complete','Deploying\x20Your\x20App\x20','3330kWNyCx','uploadAppByChunk','desc','fileAdded','gray','statusText','file-api','File'];_0x3f8c=function(){return _0x193f1e;};return _0x3f8c();}module[_0xc6b83f(0x1a5)]=async function(_0x190bdf,_0x4bebb4,_0x2330e3){const _0xab832f=_0xc6b83f;let _0x7a2c8e=n['api_domain'],_0x3b766c=''+_0x7a2c8e+n[_0xab832f(0x1a2)][_0xab832f(0x186)],{appName:_0xfeba38,appDesc:_0x52d4fe,appBuffer:_0x112785,appConfig:_0xab7855,identifier:_0x18c373}=_0x190bdf,_0x10a5ef=o[_0xab832f(0x18e)](n[_0xab832f(0x1a7)][_0xab832f(0x18f)]),_0x2c26f6=new r({...n[_0xab832f(0x19a)],'target':_0x3b766c,'headers':{'Authorization':_0xab832f(0x19e)+_0x10a5ef},'generateUniqueIdentifier':()=>_0x18c373}),_0x57059c=new a();if(_0x57059c[_0xab832f(0x1aa)]('zipFile',_0x112785),_0x57059c[_0xab832f(0x1aa)](_0xab832f(0x17e),_0xfeba38),_0x57059c[_0xab832f(0x1aa)](_0xab832f(0x187),_0x52d4fe),_0x57059c['append'](_0xab832f(0x19c),_0xab7855),_0x2c26f6[_0xab832f(0x1ac)])return _0x2c26f6['on'](_0xab832f(0x180),function(_0x1dc8ea){const _0x12773f=_0xab832f;let _0x132b32=Array(Math[_0x12773f(0x198)](0x64*_0x1dc8ea[_0x12773f(0x1a9)]())%0x65+0x1)[_0x12773f(0x1a4)]('|');_0x2330e3[_0x12773f(0x18a)](_0x12773f(0x184)+e[_0x12773f(0x189)]('\x0a'+_0x132b32+'\x20'+Math[_0x12773f(0x198)](0x64*_0x1dc8ea['progress']())+'%'));}),await new Promise((_0x4dbea7,_0x17c6d8)=>{const _0x112a93=_0xab832f;try{var _0x3f5e50=new t({'name':'www.zip','buffer':_0x112785});_0x2c26f6['on'](_0x112a93(0x188),function(){const _0x2457d7=_0x112a93;_0x2c26f6[_0x2457d7(0x1a3)]();}),_0x2c26f6['on'](_0x112a93(0x183),function(){return _0x4dbea7();}),_0x2c26f6['on'](_0x112a93(0x195),function(_0x36ff12,_0x16b348){const _0x546ee6=_0x112a93;return _0x17c6d8(Error(_0x546ee6(0x17f)+_0x16b348));}),_0x2c26f6['on'](_0x112a93(0x182),function(){const _0x2b99c4=_0x112a93;return _0x17c6d8(Error(_0x2b99c4(0x19d)));}),_0x2c26f6['on'](_0x112a93(0x1ab),function(_0x3d603e,_0x3d888a){const _0x292c78=_0x112a93;let _0x3a9077=JSON[_0x292c78(0x192)](_0x3d888a);return u[_0x292c78(0x1a6)](_0x3a9077[_0x292c78(0x1ad)])&&_0x3a9077[_0x292c78(0x1ad)]<0x0?_0x17c6d8(Error('Error\x20upload\x20app:\x20'+_0x3d888a)):_0x4dbea7(_0x3a9077);}),_0x2c26f6[_0x112a93(0x1a8)](_0x3f5e50);}catch(_0x1e2de5){return _0x17c6d8(_0x1e2de5);}});_0x2330e3['statusError'](_0xab832f(0x196));};
package/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';const _0x55679e=_0xe9a6;(function(_0x398670,_0x5ee62d){const _0x424818=_0xe9a6,_0x303747=_0x398670();while(!![]){try{const _0x46a939=parseInt(_0x424818(0x240))/0x1+-parseInt(_0x424818(0x204))/0x2*(-parseInt(_0x424818(0x221))/0x3)+-parseInt(_0x424818(0x226))/0x4*(parseInt(_0x424818(0x212))/0x5)+-parseInt(_0x424818(0x23a))/0x6+-parseInt(_0x424818(0x214))/0x7+-parseInt(_0x424818(0x21e))/0x8*(parseInt(_0x424818(0x227))/0x9)+parseInt(_0x424818(0x1f7))/0xa;if(_0x46a939===_0x5ee62d)break;else _0x303747['push'](_0x303747['shift']());}catch(_0x2484ac){_0x303747['push'](_0x303747['shift']());}}}(_0x3c1b,0xcace7));function _0x3c1b(){const _0x237b3b=['error','-e,\x20--existing','226aPKtho','./migrate/utils/get-options','command','testing','iosHostName','mode','length','Run\x20without\x20Zalo\x20frame','start','log','deploy','./utils/log','description','parse','1722190OnLpox','cwd','7998886iqZoSD','Version:\x20','hostname','cyan','\x0a\x20Unknown\x20command\x20','./utils/fs-extra','outputHelp','./create/utils/get-options','text','root_env','40mQekOm','./deploy/index','existing','9uddmXS','frame','NW.js\x20module\x20is\x20not\x20found.\x20Please\x20run\x20\x22npm\x20install\x20-g\x20nw@sdk\x22','-M,\x20--mode\x20<m>','-nF,\x20--no-frame','8dqxWSu','1594224NOlPtG','customProject','textSync','dev','-P,\x20--port\x20<n>','versionStatus','./build/index','./login/utils/get-options','-D,\x20--device','exit','.local','build','includes','Specify\x20UI\x20server\x20port.\x20By\x20default\x20it\x20is\x203001','zaloApp','writeFileSync','version','Version\x20description','Preview\x20on\x20Zalo','8627112GbzJWJ','-Z,\x20--zalo-app','./utils/check-update','./login/index','showMobileUi','<command>\x20[options]','115300yWTiKz','usage','done','Deploy\x20a\x20ZMP\x20project','-iosH,\x20--ios-host-name\x20<n>','./start/index','Run\x20on\x20ios','passive','-r,\x20--root-element\x20<selector>','Deploy\x20in\x20Development\x20server','./utils/get-current-project','-o,\x20--outputDir\x20<output>','Specify\x20server\x20port.\x20By\x20default\x20it\x20is\x203000','figlet','commander','migrate','-p,\x20--passive','code','\x20This\x20is\x20not\x20ZMP\x20project','Specify\x20server\x20hostname.\x20By\x20default\x20it\x20is\x20os.hostname','existsSync','init','full','Device\x20mode','clear','device','Start\x20a\x20ZMP\x20project','argv','Automatically\x20update\x20app-config.json\x20resources\x20list\x20based\x20on\x20index.html','resolve','48701620reqkLX','Deploy\x20existing\x20project','./config','action','Build\x20a\x20ZMP\x20project','chalk','./package.json','sync-config\x20<source>','./sync/index','option','Env\x20mode'];_0x3c1b=function(){return _0x237b3b;};return _0x3c1b();}function _0xe9a6(_0x3dd45e,_0x3e1b29){const _0x3c1b94=_0x3c1b();return _0xe9a6=function(_0xe9a65c,_0x1288d7){_0xe9a65c=_0xe9a65c-0x1de;let _0x325e28=_0x3c1b94[_0xe9a65c];return _0x325e28;},_0xe9a6(_0x3dd45e,_0x3e1b29);}const e=require(_0x55679e(0x1fc)),o=require(_0x55679e(0x1f1)),t=require(_0x55679e(0x1e6)),i=require(_0x55679e(0x1e7)),r=require('log-symbols'),s=require(_0x55679e(0x219)),n=require(_0x55679e(0x23c)),a=require('./utils/spinner'),c=require(_0x55679e(0x20f)),p=require(_0x55679e(0x1e3)),u=require(_0x55679e(0x21b)),l=require(_0x55679e(0x22e)),d=require('./deploy/utils/get-options'),m=require(_0x55679e(0x205)),g=require(_0x55679e(0x23d)),x=require('./create/index'),y=require(_0x55679e(0x1de)),v=require(_0x55679e(0x22d)),w=require(_0x55679e(0x21f)),f=require(_0x55679e(0x1ff)),q=require('./migrate/index'),h=require('os'),M=require(_0x55679e(0x1fd)),P=require(_0x55679e(0x1f9)),{versionStatus:j}=require('./utils/constants'),Z=process[_0x55679e(0x213)](),D={'statusStart':_0x461e78=>a[_0x55679e(0x20c)](_0x461e78),'statusDone':_0x41519a=>a[_0x55679e(0x242)](_0x41519a),'statusText':_0x1c318d=>a['text'](_0x1c318d),'statusError':_0x48b267=>a[_0x55679e(0x202)](_0x48b267),'text':_0x4bac89=>c[_0x55679e(0x21c)](_0x4bac89),'error':_0x4bb9d8=>c[_0x55679e(0x202)](_0x4bb9d8),'showOnUI':()=>{}};o(),s[_0x55679e(0x1ed)](P[_0x55679e(0x21d)]())||s[_0x55679e(0x236)](P[_0x55679e(0x21d)]()),console[_0x55679e(0x20d)](e[_0x55679e(0x217)](t[_0x55679e(0x229)]('ZMP\x20CLI',{'horizontalLayout':'full','verticalLayout':_0x55679e(0x1ef)})),e[_0x55679e(0x217)](_0x55679e(0x215)+M[_0x55679e(0x237)]+'\x0a')),i[_0x55679e(0x237)](M[_0x55679e(0x237)])[_0x55679e(0x241)](_0x55679e(0x23f))[_0x55679e(0x206)](_0x55679e(0x1ee))[_0x55679e(0x200)]('--skipUpdate','Skip\x20checking\x20for\x20update\x20of\x20zmp-cli')['description']('Init\x20ZMP\x20project')[_0x55679e(0x1fa)](async _0x39c512=>{const _0x2c65ac=_0x55679e;_0x39c512['skipUpdate']||await n(),p(Z)&&(c[_0x2c65ac(0x21c)](r[_0x2c65ac(0x202)]+'\x20ZMP\x20project\x20already\x20set\x20up\x20in\x20current\x20directory'),process[_0x2c65ac(0x230)](0x1));let _0x1a2a1d=await l();await g({'cwd':Z,..._0x1a2a1d},D);let _0x55328c=await u();await x({'cwd':Z,..._0x55328c},D),process['exit'](0x0);}),i[_0x55679e(0x241)](_0x55679e(0x23f))['command']('login')[_0x55679e(0x210)]('Login\x20ZMP')[_0x55679e(0x1fa)](async()=>{let _0x356df4=await l();await g({'cwd':Z,..._0x356df4},D),process['exit'](0x0);}),i['usage'](_0x55679e(0x23f))[_0x55679e(0x206)](_0x55679e(0x20c))[_0x55679e(0x200)](_0x55679e(0x244),_0x55679e(0x1ec))['option'](_0x55679e(0x22b),_0x55679e(0x1e5),parseInt)['option'](_0x55679e(0x23b),_0x55679e(0x239))[_0x55679e(0x200)]('-ios,\x20--ios',_0x55679e(0x1df))['option'](_0x55679e(0x225),_0x55679e(0x20b))[_0x55679e(0x200)](_0x55679e(0x22f),_0x55679e(0x1f0))['option'](_0x55679e(0x224),_0x55679e(0x201))[_0x55679e(0x210)](_0x55679e(0x1f3))[_0x55679e(0x1fa)](async _0x3de003=>{const _0x52c4fd=_0x55679e;if(p(Z)||(c['text'](r[_0x52c4fd(0x202)]+_0x52c4fd(0x1eb)),process[_0x52c4fd(0x230)](0x1)),_0x3de003&&_0x3de003[_0x52c4fd(0x23e)])try{console[_0x52c4fd(0x20d)](require[_0x52c4fd(0x1f6)]('nw'));}catch(_0x231442){console[_0x52c4fd(0x202)](_0x52c4fd(0x223)),process['exit'](_0x231442[_0x52c4fd(0x1ea)]);}let _0x68249b=h[_0x52c4fd(0x216)]();_0x68249b[_0x52c4fd(0x233)]('.local')||(_0x68249b=_0x68249b+_0x52c4fd(0x231)),await y({'cwd':Z,'port':_0x3de003&&_0x3de003['port']||0xbb8,'iosHostName':_0x3de003&&_0x3de003[_0x52c4fd(0x208)]||_0x68249b,'showMobileUI':_0x3de003&&_0x3de003[_0x52c4fd(0x23e)]||!0x1,'previewOnZalo':_0x3de003&&_0x3de003[_0x52c4fd(0x235)]||!0x1,'ios':_0x3de003&&_0x3de003['ios']||!0x1,'mode':_0x3de003&&_0x3de003[_0x52c4fd(0x209)],'frame':!!_0x3de003&&(void 0x0===_0x3de003[_0x52c4fd(0x222)]||null===_0x3de003[_0x52c4fd(0x222)])||_0x3de003['frame'],'deviceMode':_0x3de003&&_0x3de003[_0x52c4fd(0x1f2)]||!0x1},D),process['exit'](0x0);}),i[_0x55679e(0x241)]('<command>\x20[options]')[_0x55679e(0x206)](_0x55679e(0x232))['description'](_0x55679e(0x1fb))[_0x55679e(0x1fa)](async()=>{const _0x309296=_0x55679e;p(Z)||(c[_0x309296(0x21c)](r['error']+_0x309296(0x1eb)),process['exit'](0x1)),await v({'cwd':Z},D),process['exit'](0x0);}),i[_0x55679e(0x241)](_0x55679e(0x23f))[_0x55679e(0x206)](_0x55679e(0x20e))[_0x55679e(0x200)]('-D,\x20--dev',_0x55679e(0x1e2))['option'](_0x55679e(0x224),_0x55679e(0x201))['option'](_0x55679e(0x1e9),'Passive\x20mode\x20(non-interactive)')[_0x55679e(0x200)](_0x55679e(0x203),_0x55679e(0x1f8))['option']('-t,\x20--testing','Deploy\x20testing\x20version')[_0x55679e(0x200)]('-m,\x20--desc\x20<message>',_0x55679e(0x238))[_0x55679e(0x200)](_0x55679e(0x1e4),'Output\x20folder.\x20Default\x20www')[_0x55679e(0x200)](_0x55679e(0x22b),_0x55679e(0x234),parseInt)['description'](_0x55679e(0x243))['action'](async _0x2d6dfb=>{const _0x574fde=_0x55679e;let _0x2e9f0f=p(Z),_0x4c10cd=_0x2d6dfb;_0x2d6dfb[_0x574fde(0x220)]?_0x4c10cd[_0x574fde(0x228)]=!0x0:_0x2d6dfb[_0x574fde(0x1e0)]||(_0x4c10cd=await d(_0x2e9f0f)),_0x2d6dfb[_0x574fde(0x207)]&&(_0x4c10cd[_0x574fde(0x22c)]=j['TESTING']),_0x4c10cd['quit']&&process[_0x574fde(0x230)](0x1),await w({'cwd':Z,'dev':_0x2d6dfb&&_0x2d6dfb[_0x574fde(0x22a)],'mode':_0x2d6dfb&&_0x2d6dfb[_0x574fde(0x209)],..._0x4c10cd},D),process[_0x574fde(0x230)](0x0);}),i[_0x55679e(0x241)](_0x55679e(0x23f))[_0x55679e(0x206)](_0x55679e(0x1fe))['option'](_0x55679e(0x1e1),'Custom\x20entry\x20point,\x20default\x20is\x20#app')['description'](_0x55679e(0x1f5))[_0x55679e(0x1fa)](async(_0x4cc8cd,_0x1e8a2b)=>{const _0x3aebc5=_0x55679e;await f({'source':_0x4cc8cd,..._0x1e8a2b},D),process[_0x3aebc5(0x230)](0x0);}),i[_0x55679e(0x241)](_0x55679e(0x23f))['command'](_0x55679e(0x1e8))[_0x55679e(0x1fa)](async function(){const _0x56376e=_0x55679e;let _0x5dedf7=p(Z);_0x5dedf7||(D['text'](r[_0x56376e(0x202)]+_0x56376e(0x1eb)),process[_0x56376e(0x230)](0x1));let _0x168856=await m();await q({'cwd':Z,..._0x168856,..._0x5dedf7},D),process[_0x56376e(0x230)](0x0);}),i['on']('command:*',_0x55ea68=>{const _0x4ebd43=_0x55679e;i[_0x4ebd43(0x21a)](),c[_0x4ebd43(0x21c)](_0x4ebd43(0x218)+_0x55ea68);}),i[_0x55679e(0x211)](process[_0x55679e(0x1f4)]),i['args'][_0x55679e(0x20a)]||i[_0x55679e(0x21a)]();
2
+ 'use strict';const _0x548a02=_0xe762;function _0x2d94(){const _0x3c94cc=['command:*','Specify\x20server\x20hostname.\x20By\x20default\x20it\x20is\x20os.hostname','ZMP\x20CLI','clear','6rdCVdg','Env\x20mode','mode','Build\x20a\x20ZMP\x20project','testing','-m,\x20--desc\x20<message>','Deploy\x20a\x20ZMP\x20project','cyan','existsSync','./utils/constants','length','./create/utils/get-options','./login/index','command','<command>\x20[options]','-P,\x20--port\x20<n>','root_env','Deploy\x20in\x20Development\x20server','outputHelp','-M,\x20--mode\x20<m>','./start/index','-r,\x20--root-element\x20<selector>','ios','error','cwd','Login\x20ZMP','log-symbols','quit','args','-iosH,\x20--ios-host-name\x20<n>','Passive\x20mode\x20(non-interactive)','Automatically\x20update\x20app-config.json\x20resources\x20list\x20based\x20on\x20index.html','.local','./utils/log','1819391TTqEsc','description','option','Preview\x20on\x20Zalo','Version:\x20','./utils/fs-extra','583312ylvERk','./migrate/utils/get-options','frame','port','./deploy/utils/get-options','-p,\x20--passive','20jHLoYz','sync-config\x20<source>','Deploy\x20testing\x20version','218746XhHnEA','-D,\x20--device','Start\x20a\x20ZMP\x20project','textSync','version','\x20This\x20is\x20not\x20ZMP\x20project','./config','-t,\x20--testing','iosHostName','Run\x20without\x20Zalo\x20frame','./create/index','skipUpdate','chalk','Deploy\x20existing\x20project','Run\x20on\x20ios','device','resolve','Output\x20folder.\x20Default\x20www','Custom\x20entry\x20point,\x20default\x20is\x20#app','deploy','./utils/check-update','./login/utils/get-options','1324450VdGvpa','writeFileSync','figlet','-D,\x20--dev','commander','8FvmYBa','action','passive','text','./build/index','3574215NyWAxW','dev','migrate','3111656cwifhy','exit','Device\x20mode','login','--skipUpdate','9JmhgcB','NW.js\x20module\x20is\x20not\x20found.\x20Please\x20run\x20\x22npm\x20install\x20-g\x20nw@sdk\x22','showMobileUi','log','6904887tHOEqu','-o,\x20--outputDir\x20<output>','includes','start','usage'];_0x2d94=function(){return _0x3c94cc;};return _0x2d94();}function _0xe762(_0x5431bc,_0x496707){const _0x2d946c=_0x2d94();return _0xe762=function(_0xe76299,_0x9f6dba){_0xe76299=_0xe76299-0x102;let _0x3ca25c=_0x2d946c[_0xe76299];return _0x3ca25c;},_0xe762(_0x5431bc,_0x496707);}(function(_0x2fdb6f,_0x57f0b4){const _0x39c159=_0xe762,_0x188606=_0x2fdb6f();while(!![]){try{const _0xc80207=-parseInt(_0x39c159(0x124))/0x1+parseInt(_0x39c159(0x11b))/0x2+parseInt(_0x39c159(0x144))/0x3+-parseInt(_0x39c159(0x13f))/0x4*(-parseInt(_0x39c159(0x13a))/0x5)+-parseInt(_0x39c159(0x159))/0x6*(parseInt(_0x39c159(0x115))/0x7)+parseInt(_0x39c159(0x147))/0x8*(parseInt(_0x39c159(0x14c))/0x9)+parseInt(_0x39c159(0x121))/0xa*(-parseInt(_0x39c159(0x150))/0xb);if(_0xc80207===_0x57f0b4)break;else _0x188606['push'](_0x188606['shift']());}catch(_0x2a4ff2){_0x188606['push'](_0x188606['shift']());}}}(_0x2d94,0xa3039));const e=require(_0x548a02(0x130)),o=require(_0x548a02(0x158)),t=require(_0x548a02(0x13c)),i=require(_0x548a02(0x13e)),r=require(_0x548a02(0x10d)),s=require(_0x548a02(0x11a)),n=require(_0x548a02(0x138)),a=require('./utils/spinner'),c=require(_0x548a02(0x114)),p=require('./utils/get-current-project'),u=require(_0x548a02(0x164)),l=require(_0x548a02(0x139)),d=require(_0x548a02(0x11f)),m=require(_0x548a02(0x11c)),g=require(_0x548a02(0x165)),x=require(_0x548a02(0x12e)),y=require(_0x548a02(0x107)),v=require(_0x548a02(0x143)),w=require('./deploy/index'),f=require('./sync/index'),q=require('./migrate/index'),h=require('os'),M=require('./package.json'),P=require(_0x548a02(0x12a)),{versionStatus:j}=require(_0x548a02(0x162)),Z=process[_0x548a02(0x10b)](),D={'statusStart':_0x350a6f=>a[_0x548a02(0x153)](_0x350a6f),'statusDone':_0x2d39f1=>a['done'](_0x2d39f1),'statusText':_0x452dc7=>a[_0x548a02(0x142)](_0x452dc7),'statusError':_0x47b720=>a['error'](_0x47b720),'text':_0x4956dd=>c['text'](_0x4956dd),'error':_0x51e369=>c[_0x548a02(0x10a)](_0x51e369),'showOnUI':()=>{}};o(),s[_0x548a02(0x161)](P[_0x548a02(0x103)]())||s[_0x548a02(0x13b)](P[_0x548a02(0x103)]()),console[_0x548a02(0x14f)](e[_0x548a02(0x160)](t[_0x548a02(0x127)](_0x548a02(0x157),{'horizontalLayout':'full','verticalLayout':'full'})),e[_0x548a02(0x160)](_0x548a02(0x119)+M[_0x548a02(0x128)]+'\x0a')),i[_0x548a02(0x128)](M['version'])[_0x548a02(0x154)](_0x548a02(0x167))[_0x548a02(0x166)]('init')['option'](_0x548a02(0x14b),'Skip\x20checking\x20for\x20update\x20of\x20zmp-cli')[_0x548a02(0x116)]('Init\x20ZMP\x20project')[_0x548a02(0x140)](async _0xe423cc=>{const _0x29fd01=_0x548a02;_0xe423cc[_0x29fd01(0x12f)]||await n(),p(Z)&&(c['text'](r['error']+'\x20ZMP\x20project\x20already\x20set\x20up\x20in\x20current\x20directory'),process['exit'](0x1));let _0x2f4a96=await l();await g({'cwd':Z,..._0x2f4a96},D);let _0x1113cc=await u();await x({'cwd':Z,..._0x1113cc},D),process[_0x29fd01(0x148)](0x0);}),i[_0x548a02(0x154)](_0x548a02(0x167))[_0x548a02(0x166)](_0x548a02(0x14a))['description'](_0x548a02(0x10c))[_0x548a02(0x140)](async()=>{const _0x150376=_0x548a02;let _0x14b43e=await l();await g({'cwd':Z,..._0x14b43e},D),process[_0x150376(0x148)](0x0);}),i[_0x548a02(0x154)](_0x548a02(0x167))[_0x548a02(0x166)](_0x548a02(0x153))[_0x548a02(0x117)](_0x548a02(0x110),_0x548a02(0x156))[_0x548a02(0x117)](_0x548a02(0x102),'Specify\x20server\x20port.\x20By\x20default\x20it\x20is\x203000',parseInt)['option']('-Z,\x20--zalo-app',_0x548a02(0x118))[_0x548a02(0x117)]('-ios,\x20--ios',_0x548a02(0x132))[_0x548a02(0x117)]('-nF,\x20--no-frame',_0x548a02(0x12d))[_0x548a02(0x117)](_0x548a02(0x125),_0x548a02(0x149))[_0x548a02(0x117)](_0x548a02(0x106),_0x548a02(0x15a))[_0x548a02(0x116)](_0x548a02(0x126))['action'](async _0x5209c2=>{const _0x511ab9=_0x548a02;if(p(Z)||(c[_0x511ab9(0x142)](r[_0x511ab9(0x10a)]+'\x20This\x20is\x20not\x20ZMP\x20project'),process[_0x511ab9(0x148)](0x1)),_0x5209c2&&_0x5209c2['showMobileUi'])try{console[_0x511ab9(0x14f)](require[_0x511ab9(0x134)]('nw'));}catch(_0x595c47){console[_0x511ab9(0x10a)](_0x511ab9(0x14d)),process[_0x511ab9(0x148)](_0x595c47['code']);}let _0x444a10=h['hostname']();_0x444a10[_0x511ab9(0x152)]('.local')||(_0x444a10=_0x444a10+_0x511ab9(0x113)),await y({'cwd':Z,'port':_0x5209c2&&_0x5209c2[_0x511ab9(0x11e)]||0xbb8,'iosHostName':_0x5209c2&&_0x5209c2[_0x511ab9(0x12c)]||_0x444a10,'showMobileUI':_0x5209c2&&_0x5209c2[_0x511ab9(0x14e)]||!0x1,'previewOnZalo':_0x5209c2&&_0x5209c2['zaloApp']||!0x1,'ios':_0x5209c2&&_0x5209c2[_0x511ab9(0x109)]||!0x1,'mode':_0x5209c2&&_0x5209c2[_0x511ab9(0x15b)],'frame':!!_0x5209c2&&(void 0x0===_0x5209c2[_0x511ab9(0x11d)]||null===_0x5209c2['frame'])||_0x5209c2[_0x511ab9(0x11d)],'deviceMode':_0x5209c2&&_0x5209c2[_0x511ab9(0x133)]||!0x1},D),process[_0x511ab9(0x148)](0x0);}),i[_0x548a02(0x154)](_0x548a02(0x167))['command']('build')[_0x548a02(0x116)](_0x548a02(0x15c))[_0x548a02(0x140)](async()=>{const _0x2281e0=_0x548a02;p(Z)||(c[_0x2281e0(0x142)](r[_0x2281e0(0x10a)]+_0x2281e0(0x129)),process[_0x2281e0(0x148)](0x1)),await v({'cwd':Z},D),process[_0x2281e0(0x148)](0x0);}),i[_0x548a02(0x154)]('<command>\x20[options]')[_0x548a02(0x166)](_0x548a02(0x137))[_0x548a02(0x117)](_0x548a02(0x13d),_0x548a02(0x104))['option'](_0x548a02(0x106),'Env\x20mode')[_0x548a02(0x117)](_0x548a02(0x120),_0x548a02(0x111))[_0x548a02(0x117)]('-e,\x20--existing',_0x548a02(0x131))['option'](_0x548a02(0x12b),_0x548a02(0x123))[_0x548a02(0x117)](_0x548a02(0x15e),'Version\x20description')[_0x548a02(0x117)](_0x548a02(0x151),_0x548a02(0x135))[_0x548a02(0x117)](_0x548a02(0x102),'Specify\x20UI\x20server\x20port.\x20By\x20default\x20it\x20is\x203001',parseInt)[_0x548a02(0x116)](_0x548a02(0x15f))[_0x548a02(0x140)](async _0x25eeee=>{const _0x5943f9=_0x548a02;let _0x4f63b7=p(Z),_0x2cf37a=_0x25eeee;_0x25eeee['existing']?_0x2cf37a['customProject']=!0x0:_0x25eeee[_0x5943f9(0x141)]||(_0x2cf37a=await d(_0x4f63b7)),_0x25eeee[_0x5943f9(0x15d)]&&(_0x2cf37a['versionStatus']=j['TESTING']),_0x2cf37a[_0x5943f9(0x10e)]&&process['exit'](0x1),await w({'cwd':Z,'dev':_0x25eeee&&_0x25eeee[_0x5943f9(0x145)],'mode':_0x25eeee&&_0x25eeee[_0x5943f9(0x15b)],..._0x2cf37a},D),process['exit'](0x0);}),i[_0x548a02(0x154)](_0x548a02(0x167))[_0x548a02(0x166)](_0x548a02(0x122))[_0x548a02(0x117)](_0x548a02(0x108),_0x548a02(0x136))[_0x548a02(0x116)](_0x548a02(0x112))['action'](async(_0x20df75,_0x39872e)=>{const _0x3b81f9=_0x548a02;await f({'source':_0x20df75,..._0x39872e},D),process[_0x3b81f9(0x148)](0x0);}),i['usage'](_0x548a02(0x167))[_0x548a02(0x166)](_0x548a02(0x146))[_0x548a02(0x140)](async function(){const _0x1cd0e5=_0x548a02;let _0x1898c9=p(Z);_0x1898c9||(D[_0x1cd0e5(0x142)](r[_0x1cd0e5(0x10a)]+_0x1cd0e5(0x129)),process[_0x1cd0e5(0x148)](0x1));let _0x35916f=await m();await q({'cwd':Z,..._0x35916f,..._0x1898c9},D),process[_0x1cd0e5(0x148)](0x0);}),i['on'](_0x548a02(0x155),_0x2c0f90=>{const _0x319500=_0x548a02;i['outputHelp'](),c[_0x319500(0x142)]('\x0a\x20Unknown\x20command\x20'+_0x2c0f90);}),i['parse'](process['argv']),i[_0x548a02(0x10f)][_0x548a02(0x163)]||i[_0x548a02(0x105)]();
package/login/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';function _0x14ee(_0x48577e,_0xa4700){const _0x515ac3=_0x515a();return _0x14ee=function(_0x14eeea,_0x6d8c46){_0x14eeea=_0x14eeea-0x194;let _0x29411c=_0x515ac3[_0x14eeea];return _0x29411c;},_0x14ee(_0x48577e,_0xa4700);}const _0x153be6=_0x14ee;(function(_0x41f2ea,_0x4df51c){const _0x3faacd=_0x14ee,_0x13e982=_0x41f2ea();while(!![]){try{const _0x384ae0=-parseInt(_0x3faacd(0x19f))/0x1+-parseInt(_0x3faacd(0x1c0))/0x2+parseInt(_0x3faacd(0x198))/0x3+-parseInt(_0x3faacd(0x1b7))/0x4+-parseInt(_0x3faacd(0x1c2))/0x5+parseInt(_0x3faacd(0x1c1))/0x6+parseInt(_0x3faacd(0x1bb))/0x7;if(_0x384ae0===_0x4df51c)break;else _0x13e982['push'](_0x13e982['shift']());}catch(_0x21757a){_0x13e982['push'](_0x13e982['shift']());}}}(_0x515a,0xe9ece));const e=require(_0x153be6(0x199)),t=require('ora'),r=require(_0x153be6(0x1be)),a=require(_0x153be6(0x19d)),n=require(_0x153be6(0x1c9)),o=require(_0x153be6(0x1cc)),s=require(_0x153be6(0x1a6)),i=require(_0x153be6(0x1ab)),u=require('./utils/zalo-login'),{axiosClient:l}=require('../utils/axios'),c=require('qs'),d=e['gray'](_0x153be6(0x1bf)),p=t(d);module[_0x153be6(0x1bd)]=async(_0x4a100d={},_0x4bea45,{exitOnError:_0x37cbdb=!0x0}={})=>{const _0x4c9eda=_0x153be6;let _0x1b8b46;_0x4bea45||(_0x4bea45={'statusStart'(){},'statusDone'(){},'statusText'(){},'statusError'(){},'text'(){},'error'(){}}),_0x4bea45[_0x4c9eda(0x1ce)](d),p[_0x4c9eda(0x1ca)]();let _0x1ddc66=_0x4a100d[_0x4c9eda(0x195)],_0x37f83a=_0x4a100d[_0x4c9eda(0x1b9)]||s[_0x4c9eda(0x1c7)](o['env'][_0x4c9eda(0x1b9)]),_0x475085=_0x4a100d[_0x4c9eda(0x19a)],_0x2cda72=''+o['api_domain']+o[_0x4c9eda(0x1af)][_0x4c9eda(0x1ac)];try{if(p[_0x4c9eda(0x1ca)](),_0x4c9eda(0x1cb)===_0x1ddc66){let _0x284858;await new Promise((_0x4df8ea,_0x14c31e)=>{const _0x45bc58=_0x4c9eda;u[_0x45bc58(0x19e)](_0x37f83a)['then'](function(_0x33d88a){const _0x20cf2d=_0x45bc58;p[_0x20cf2d(0x1a7)]();let _0x39187e=_0x33d88a[_0x20cf2d(0x1c3)];if(!_0x39187e||_0x39187e['err']<0x0)return _0x14c31e(Error(_0x39187e[_0x20cf2d(0x1bc)]));let _0x43451a=_0x39187e[_0x20cf2d(0x1c3)]&&_0x39187e[_0x20cf2d(0x1c3)][_0x20cf2d(0x1ae)];return _0x284858=_0x39187e['data']&&_0x39187e[_0x20cf2d(0x1c3)][_0x20cf2d(0x1b3)],a[_0x20cf2d(0x1c4)](_0x43451a,{'small':!0x0},function(_0x191dfb){const _0x327283=_0x20cf2d;let _0x140e97=n['info']+'\x20'+e[_0x327283(0x19c)](_0x327283(0x1a1)+_0x191dfb);_0x4bea45[_0x327283(0x1aa)](_0x140e97);}),s[_0x20cf2d(0x196)](o[_0x20cf2d(0x1b6)][_0x20cf2d(0x1b9)],_0x37f83a),_0x4df8ea();})[_0x45bc58(0x1b1)](function(_0x17072e){const _0x4c320f=_0x45bc58;return p[_0x4c320f(0x1a7)](),_0x14c31e(_0x17072e);});}),await new Promise((_0x46cd8c,_0x5a45b1)=>{const _0x5903ee=_0x4c9eda;if(!_0x284858)return _0x5a45b1(Error(_0x5903ee(0x1a5)));let _0x96030e=0x0;_0x1b8b46=setInterval(()=>{const _0x3245b4=_0x5903ee;if(_0x4bea45[_0x3245b4(0x1b8)](d+'\x20(Time\x20out\x20after\x20'+(0x3c-_0x96030e)+'s)'),_0x96030e>0x3c)return clearInterval(_0x1b8b46),_0x5a45b1(Error(o[_0x3245b4(0x1a3)][_0x3245b4(0x1a0)]));_0x96030e++,u[_0x3245b4(0x1a2)](_0x284858)[_0x3245b4(0x19b)](function(_0x32153b){const _0x1cb696=_0x3245b4;p[_0x1cb696(0x1a7)]();let _0x1aaf83=_0x32153b[_0x1cb696(0x1c3)];if(_0x1aaf83&&_0x1aaf83[_0x1cb696(0x1a4)]===o[_0x1cb696(0x1cd)]['permission_denied'])return clearInterval(_0x1b8b46),_0x5a45b1(Error(o[_0x1cb696(0x1a3)][_0x1cb696(0x1a8)]));if(_0x1aaf83&&_0x1aaf83[_0x1cb696(0x1a4)]===o['error_code'][_0x1cb696(0x1a0)])return clearInterval(_0x1b8b46),_0x5a45b1(Error(o[_0x1cb696(0x1a3)][_0x1cb696(0x1a0)]));if(_0x1aaf83&&_0x1aaf83[_0x1cb696(0x1a4)]>=0x0){clearInterval(_0x1b8b46);let _0x55562c=_0x1aaf83[_0x1cb696(0x1c3)]&&_0x1aaf83['data'][_0x1cb696(0x1ad)];return s[_0x1cb696(0x196)](o[_0x1cb696(0x1b6)][_0x1cb696(0x19a)],_0x55562c),_0x4bea45[_0x1cb696(0x1b2)]('Login\x20Success!'),_0x46cd8c();}})[_0x3245b4(0x1b1)](function(_0x3eca70){const _0xd40da8=_0x3245b4;return clearInterval(_0x1b8b46),p[_0xd40da8(0x1a7)](),_0x5a45b1(_0x3eca70);});},0x7d0);});}else await new Promise((_0x456a88,_0x4d7312)=>{const _0xbc17cf=_0x4c9eda;l({'url':_0x2cda72,'method':_0xbc17cf(0x1ba),'headers':{'cache-control':'no-cache','content-type':_0xbc17cf(0x1b5)},'data':c[_0xbc17cf(0x1b4)]({'accessToken':_0x475085,'appId':_0x37f83a}),'withCredentials':!0x0})[_0xbc17cf(0x19b)](function(_0x216dd6){const _0x54ea4c=_0xbc17cf;p[_0x54ea4c(0x1a7)]();let _0x491046=_0x216dd6['data'];if(!_0x491046||_0x491046['err']<0x0)return _0x4d7312(Error(_0x491046[_0x54ea4c(0x1bc)]));let _0x50ecd2=_0x491046[_0x54ea4c(0x1c3)]&&_0x491046[_0x54ea4c(0x1c3)]['jwt'];try{let _0x56526c=r[_0x54ea4c(0x1c5)](_0x50ecd2);s[_0x54ea4c(0x196)](o[_0x54ea4c(0x1b6)][_0x54ea4c(0x1b9)],_0x56526c[_0x54ea4c(0x1b9)]),s[_0x54ea4c(0x196)](o[_0x54ea4c(0x1b6)]['token'],_0x50ecd2);}catch(_0x34b39b){return _0x4d7312(_0x34b39b);}return _0x4bea45['statusDone'](_0x54ea4c(0x194)),_0x456a88();})[_0xbc17cf(0x1b1)](function(_0x49a38d){return p['stop'](),_0x4d7312(_0x49a38d);});});}catch(_0x44d701){_0x4bea45[_0x4c9eda(0x1a9)](_0x4c9eda(0x1b0)),i[_0x4c9eda(0x197)](_0x44d701[_0x4c9eda(0x1c6)]||_0x44d701),_0x37cbdb&&process[_0x4c9eda(0x1c8)](0x1);return;}};function _0x515a(){const _0x1ddaff=['statusDone','zmpsk','stringify','application/x-www-form-urlencoded','env','2552988oRegBE','statusText','appId','POST','31481695wLGQec','msg','exports','jsonwebtoken','Login...','3722242vEOIYj','6992244ZPdqbE','8440560aiNlSD','data','generate','decode','stderr','getEnv','exit','log-symbols','start','zalo','../config','error_code','statusStart','Login\x20Success!','loginMethod','setEnv','error','1479777zaEHJL','chalk','token','then','bold','qrcode-terminal','getQRCode','1010380QKLSPi','request_timeout','Scan\x20the\x20QR\x20code\x20with\x20Zalo\x20app:\x0a','checkStatus','error_msg','err','Token\x20Invalid!','../utils/env','stop','permission_denied','statusError','text','../utils/log','login','jwt','loginUrl','path','Login\x20failed!','catch'];_0x515a=function(){return _0x1ddaff;};return _0x515a();}
1
+ 'use strict';const _0x2d8a25=_0x2e1b;function _0x2e1b(_0x5dafbf,_0x5e891b){const _0x42d3fb=_0x42d3();return _0x2e1b=function(_0x2e1bf8,_0x2e910e){_0x2e1bf8=_0x2e1bf8-0x1de;let _0x5817c8=_0x42d3fb[_0x2e1bf8];return _0x5817c8;},_0x2e1b(_0x5dafbf,_0x5e891b);}(function(_0x3158eb,_0x3c8ef0){const _0x583fda=_0x2e1b,_0x465a8f=_0x3158eb();while(!![]){try{const _0x216c3e=parseInt(_0x583fda(0x216))/0x1*(parseInt(_0x583fda(0x217))/0x2)+parseInt(_0x583fda(0x214))/0x3+-parseInt(_0x583fda(0x1e6))/0x4*(-parseInt(_0x583fda(0x211))/0x5)+-parseInt(_0x583fda(0x1fa))/0x6+-parseInt(_0x583fda(0x1f7))/0x7*(parseInt(_0x583fda(0x201))/0x8)+parseInt(_0x583fda(0x1f8))/0x9+-parseInt(_0x583fda(0x213))/0xa;if(_0x216c3e===_0x3c8ef0)break;else _0x465a8f['push'](_0x465a8f['shift']());}catch(_0x3ad9b9){_0x465a8f['push'](_0x465a8f['shift']());}}}(_0x42d3,0x3e13a));function _0x42d3(){const _0x128aff=['bold','250eAbzTH','Scan\x20the\x20QR\x20code\x20with\x20Zalo\x20app:\x0a','5424110SRDGia','545046WSqfkR','error','262981wdhujl','2PHoGhg','../utils/env','permission_denied','zalo','./utils/zalo-login','POST','token','stop','Login\x20Success!','then','text','env','31124HvDFcK','catch','log-symbols','statusDone','info','statusText','Login\x20failed!','appId','start','gray','zmpsk','chalk','ora','Login...','error_msg','loginMethod','statusError','989023epSgzj','2409885tdfKlD','getEnv','981072EIOYDr','qrcode-terminal','decode','jwt','api_domain','stringify','setEnv','8ZbFTUF','../utils/axios','path','msg','../utils/log','data','getQRCode','error_code','exports','request_timeout','login','jsonwebtoken','err','checkStatus','../config'];_0x42d3=function(){return _0x128aff;};return _0x42d3();}const e=require(_0x2d8a25(0x1f1)),t=require(_0x2d8a25(0x1f2)),r=require(_0x2d8a25(0x20c)),a=require(_0x2d8a25(0x1fb)),n=require(_0x2d8a25(0x1e8)),o=require(_0x2d8a25(0x20f)),s=require(_0x2d8a25(0x218)),i=require(_0x2d8a25(0x205)),u=require(_0x2d8a25(0x1de)),{axiosClient:l}=require(_0x2d8a25(0x202)),c=require('qs'),d=e[_0x2d8a25(0x1ef)](_0x2d8a25(0x1f3)),p=t(d);module[_0x2d8a25(0x209)]=async(_0x42a87d={},_0x44d987,{exitOnError:_0x413683=!0x0}={})=>{const _0x5249a1=_0x2d8a25;let _0x329971;_0x44d987||(_0x44d987={'statusStart'(){},'statusDone'(){},'statusText'(){},'statusError'(){},'text'(){},'error'(){}}),_0x44d987['statusStart'](d),p[_0x5249a1(0x1ee)]();let _0x746a12=_0x42a87d[_0x5249a1(0x1f5)],_0x58b36c=_0x42a87d[_0x5249a1(0x1ed)]||s[_0x5249a1(0x1f9)](o['env'][_0x5249a1(0x1ed)]),_0x36dcd0=_0x42a87d[_0x5249a1(0x1e0)],_0x208a25=''+o[_0x5249a1(0x1fe)]+o[_0x5249a1(0x203)][_0x5249a1(0x20b)];try{if(p[_0x5249a1(0x1ee)](),_0x5249a1(0x21a)===_0x746a12){let _0x60308e;await new Promise((_0x348a57,_0x239d7c)=>{const _0xaa634a=_0x5249a1;u[_0xaa634a(0x207)](_0x58b36c)['then'](function(_0xa1dd43){const _0x10d663=_0xaa634a;p[_0x10d663(0x1e1)]();let _0x5333bf=_0xa1dd43[_0x10d663(0x206)];if(!_0x5333bf||_0x5333bf[_0x10d663(0x20d)]<0x0)return _0x239d7c(Error(_0x5333bf[_0x10d663(0x204)]));let _0x114deb=_0x5333bf[_0x10d663(0x206)]&&_0x5333bf['data']['loginUrl'];return _0x60308e=_0x5333bf[_0x10d663(0x206)]&&_0x5333bf['data'][_0x10d663(0x1f0)],a['generate'](_0x114deb,{'small':!0x0},function(_0x71b3f7){const _0x4d304c=_0x10d663;let _0x48602f=n[_0x4d304c(0x1ea)]+'\x20'+e[_0x4d304c(0x210)](_0x4d304c(0x212)+_0x71b3f7);_0x44d987[_0x4d304c(0x1e4)](_0x48602f);}),s[_0x10d663(0x200)](o[_0x10d663(0x1e5)][_0x10d663(0x1ed)],_0x58b36c),_0x348a57();})[_0xaa634a(0x1e7)](function(_0x369554){return p['stop'](),_0x239d7c(_0x369554);});}),await new Promise((_0x58c075,_0x3c3330)=>{if(!_0x60308e)return _0x3c3330(Error('Token\x20Invalid!'));let _0x1bb543=0x0;_0x329971=setInterval(()=>{const _0x1de7ad=_0x2e1b;if(_0x44d987[_0x1de7ad(0x1eb)](d+'\x20(Time\x20out\x20after\x20'+(0x3c-_0x1bb543)+'s)'),_0x1bb543>0x3c)return clearInterval(_0x329971),_0x3c3330(Error(o['error_msg'][_0x1de7ad(0x20a)]));_0x1bb543++,u[_0x1de7ad(0x20e)](_0x60308e)[_0x1de7ad(0x1e3)](function(_0x5a7941){const _0x21d1be=_0x1de7ad;p['stop']();let _0xc6fdd4=_0x5a7941[_0x21d1be(0x206)];if(_0xc6fdd4&&_0xc6fdd4[_0x21d1be(0x20d)]===o['error_code'][_0x21d1be(0x219)])return clearInterval(_0x329971),_0x3c3330(Error(o[_0x21d1be(0x1f4)]['permission_denied']));if(_0xc6fdd4&&_0xc6fdd4[_0x21d1be(0x20d)]===o[_0x21d1be(0x208)][_0x21d1be(0x20a)])return clearInterval(_0x329971),_0x3c3330(Error(o[_0x21d1be(0x1f4)][_0x21d1be(0x20a)]));if(_0xc6fdd4&&_0xc6fdd4[_0x21d1be(0x20d)]>=0x0){clearInterval(_0x329971);let _0x30c7e0=_0xc6fdd4[_0x21d1be(0x206)]&&_0xc6fdd4[_0x21d1be(0x206)][_0x21d1be(0x1fd)];return s['setEnv'](o['env'][_0x21d1be(0x1e0)],_0x30c7e0),_0x44d987[_0x21d1be(0x1e9)](_0x21d1be(0x1e2)),_0x58c075();}})[_0x1de7ad(0x1e7)](function(_0x33e1af){const _0x4ea1f7=_0x1de7ad;return clearInterval(_0x329971),p[_0x4ea1f7(0x1e1)](),_0x3c3330(_0x33e1af);});},0x7d0);});}else await new Promise((_0x231b0d,_0x2f1a6f)=>{const _0x49b742=_0x5249a1;l({'url':_0x208a25,'method':_0x49b742(0x1df),'headers':{'cache-control':'no-cache','content-type':'application/x-www-form-urlencoded'},'data':c[_0x49b742(0x1ff)]({'accessToken':_0x36dcd0,'appId':_0x58b36c}),'withCredentials':!0x0})[_0x49b742(0x1e3)](function(_0x9b6207){const _0x1f156b=_0x49b742;p['stop']();let _0x232350=_0x9b6207[_0x1f156b(0x206)];if(!_0x232350||_0x232350[_0x1f156b(0x20d)]<0x0)return _0x2f1a6f(Error(_0x232350['msg']));let _0x547e0f=_0x232350[_0x1f156b(0x206)]&&_0x232350['data']['jwt'];try{let _0x252a94=r[_0x1f156b(0x1fc)](_0x547e0f);s[_0x1f156b(0x200)](o[_0x1f156b(0x1e5)][_0x1f156b(0x1ed)],_0x252a94[_0x1f156b(0x1ed)]),s[_0x1f156b(0x200)](o[_0x1f156b(0x1e5)][_0x1f156b(0x1e0)],_0x547e0f);}catch(_0x5e9d0f){return _0x2f1a6f(_0x5e9d0f);}return _0x44d987[_0x1f156b(0x1e9)](_0x1f156b(0x1e2)),_0x231b0d();})[_0x49b742(0x1e7)](function(_0x2a0700){const _0x2271c3=_0x49b742;return p[_0x2271c3(0x1e1)](),_0x2f1a6f(_0x2a0700);});});}catch(_0x1c838a){_0x44d987[_0x5249a1(0x1f6)](_0x5249a1(0x1ec)),i[_0x5249a1(0x215)](_0x1c838a['stderr']||_0x1c838a),_0x413683&&process['exit'](0x1);return;}};
@@ -1 +1 @@
1
- 'use strict';const _0x42ca6b=_0x584c;(function(_0x1441c3,_0x3a8d61){const _0x10afd4=_0x584c,_0x45fc32=_0x1441c3();while(!![]){try{const _0x28a782=parseInt(_0x10afd4(0xe4))/0x1+-parseInt(_0x10afd4(0xf9))/0x2*(parseInt(_0x10afd4(0xef))/0x3)+parseInt(_0x10afd4(0xe8))/0x4+parseInt(_0x10afd4(0xf0))/0x5+parseInt(_0x10afd4(0xeb))/0x6+parseInt(_0x10afd4(0xdf))/0x7*(parseInt(_0x10afd4(0xe2))/0x8)+parseInt(_0x10afd4(0xe7))/0x9*(-parseInt(_0x10afd4(0xf2))/0xa);if(_0x28a782===_0x3a8d61)break;else _0x45fc32['push'](_0x45fc32['shift']());}catch(_0x49317e){_0x45fc32['push'](_0x45fc32['shift']());}}}(_0x124a,0xd36e6));function _0x584c(_0x27a8e9,_0x44a997){const _0x124a07=_0x124a();return _0x584c=function(_0x584c40,_0x586f37){_0x584c40=_0x584c40-0xda;let _0x406167=_0x124a07[_0x584c40];return _0x406167;},_0x584c(_0x27a8e9,_0x44a997);}const e=require(_0x42ca6b(0xda)),i=require(_0x42ca6b(0xf7)),o=require(_0x42ca6b(0xde));function _0x124a(){const _0x242428=['9IOJhOf','6234968gfnyUK','1.\x20Login\x20Via\x20QR\x20Code\x20With\x20Zalo\x20App','Zalo\x20Access\x20Token\x20is\x20required','4515858ULhxkS','Mimi\x20App\x20ID\x20is\x20required','Choose\x20a\x20Login\x20Method','getEnv','3284535ipoFcO','7581020aahnhx','Mini\x20App\x20ID:','24555830KSjjPE','appId','Zalo\x20Access\x20Token:','prompt','loginMethod','../../utils/env','then','2yCMEGJ','accessToken','Login\x20method\x20is\x20required!','inquirer','2.\x20Login\x20With\x20App\x20Access\x20Token','env','zalo','../../config','371SraukJ','exports','length','28112NXyOWM','input','402619kGwRKG','token','list'];_0x124a=function(){return _0x242428;};return _0x124a();}module[_0x42ca6b(0xe0)]=function(){const _0x554c64=_0x42ca6b;let _0xd1da8a=[{'type':_0x554c64(0xe3),'name':_0x554c64(0xf3),'message':_0x554c64(0xf1),'when':()=>!i[_0x554c64(0xee)](o[_0x554c64(0xdc)][_0x554c64(0xf3)]),'validate':_0x58ebc4=>new Promise((_0x14d32e,_0x41f4a9)=>{const _0x22a849=_0x554c64;_0x58ebc4?_0x14d32e(!0x0):_0x41f4a9(Error(_0x22a849(0xec)));})},{'type':_0x554c64(0xe6),'name':_0x554c64(0xf6),'message':_0x554c64(0xed),'choices':[{'name':_0x554c64(0xe9),'value':_0x554c64(0xdd)},{'name':_0x554c64(0xdb),'value':_0x554c64(0xfa)}],'validate':_0xe7f16c=>new Promise((_0x7b0208,_0x56e433)=>{const _0x232b65=_0x554c64;_0xe7f16c&&_0xe7f16c[_0x232b65(0xe1)]?_0x7b0208(!0x0):_0x56e433(Error(_0x232b65(0xfb)));})},{'type':_0x554c64(0xe3),'name':_0x554c64(0xe5),'message':_0x554c64(0xf4),'when':_0x67ab86=>_0x554c64(0xfa)===_0x67ab86[_0x554c64(0xf6)],'validate':_0x47cd0b=>new Promise((_0x4839b4,_0x473cde)=>{const _0x29b4a1=_0x554c64;_0x47cd0b?_0x4839b4(!0x0):_0x473cde(Error(_0x29b4a1(0xea)));})}];return e[_0x554c64(0xf5)](_0xd1da8a)[_0x554c64(0xf8)](_0x38406a=>Promise['resolve'](_0x38406a));};
1
+ 'use strict';function _0x526c(_0x226373,_0x5e5834){const _0x2c8cda=_0x2c8c();return _0x526c=function(_0x526cee,_0x4890f0){_0x526cee=_0x526cee-0x6b;let _0x333693=_0x2c8cda[_0x526cee];return _0x333693;},_0x526c(_0x226373,_0x5e5834);}function _0x2c8c(){const _0x26b711=['Choose\x20a\x20Login\x20Method','250410AfkKNM','exports','resolve','381670YuUYwO','Zalo\x20Access\x20Token\x20is\x20required','loginMethod','343973PyIeit','list','input','Zalo\x20Access\x20Token:','3926850OYCoea','Mimi\x20App\x20ID\x20is\x20required','zalo','env','getEnv','then','../../config','appId','8HyguPR','accessToken','1.\x20Login\x20Via\x20QR\x20Code\x20With\x20Zalo\x20App','../../utils/env','inquirer','token','96VDOxzg','531194iazzlT','prompt','1384360KcnfGA','Mini\x20App\x20ID:','180OLRHjs','1151634jomNDg'];_0x2c8c=function(){return _0x26b711;};return _0x2c8c();}const _0x2561c8=_0x526c;(function(_0x137f11,_0x139cb6){const _0x3f5252=_0x526c,_0x5747e9=_0x137f11();while(!![]){try{const _0xa1ccf6=-parseInt(_0x3f5252(0x70))/0x1+parseInt(_0x3f5252(0x72))/0x2+-parseInt(_0x3f5252(0x75))/0x3+-parseInt(_0x3f5252(0x89))/0x4*(-parseInt(_0x3f5252(0x77))/0x5)+parseInt(_0x3f5252(0x81))/0x6+parseInt(_0x3f5252(0x7d))/0x7*(parseInt(_0x3f5252(0x6f))/0x8)+parseInt(_0x3f5252(0x74))/0x9*(-parseInt(_0x3f5252(0x7a))/0xa);if(_0xa1ccf6===_0x139cb6)break;else _0x5747e9['push'](_0x5747e9['shift']());}catch(_0x532273){_0x5747e9['push'](_0x5747e9['shift']());}}}(_0x2c8c,0x576bb));const e=require(_0x2561c8(0x6d)),i=require(_0x2561c8(0x6c)),o=require(_0x2561c8(0x87));module[_0x2561c8(0x78)]=function(){const _0x3b23db=_0x2561c8;let _0x3b8429=[{'type':_0x3b23db(0x7f),'name':_0x3b23db(0x88),'message':_0x3b23db(0x73),'when':()=>!i[_0x3b23db(0x85)](o[_0x3b23db(0x84)]['appId']),'validate':_0x2d288b=>new Promise((_0x20e91c,_0x1e4d39)=>{const _0x379540=_0x3b23db;_0x2d288b?_0x20e91c(!0x0):_0x1e4d39(Error(_0x379540(0x82)));})},{'type':_0x3b23db(0x7e),'name':'loginMethod','message':_0x3b23db(0x76),'choices':[{'name':_0x3b23db(0x6b),'value':_0x3b23db(0x83)},{'name':'2.\x20Login\x20With\x20App\x20Access\x20Token','value':_0x3b23db(0x8a)}],'validate':_0x1ae45a=>new Promise((_0x23a67b,_0x9abedc)=>{_0x1ae45a&&_0x1ae45a['length']?_0x23a67b(!0x0):_0x9abedc(Error('Login\x20method\x20is\x20required!'));})},{'type':_0x3b23db(0x7f),'name':_0x3b23db(0x6e),'message':_0x3b23db(0x80),'when':_0x3508ef=>_0x3b23db(0x8a)===_0x3508ef[_0x3b23db(0x7c)],'validate':_0x58b9ef=>new Promise((_0x144d1d,_0x22b0d1)=>{const _0x36af3f=_0x3b23db;_0x58b9ef?_0x144d1d(!0x0):_0x22b0d1(Error(_0x36af3f(0x7b)));})}];return e[_0x3b23db(0x71)](_0x3b8429)[_0x3b23db(0x86)](_0x36d47d=>Promise[_0x3b23db(0x79)](_0x36d47d));};
@@ -1 +1 @@
1
- 'use strict';const _0x4aad71=_0x4dcf;function _0x4dcf(_0x3d72f4,_0x4e2133){const _0x5f38fe=_0x5f38();return _0x4dcf=function(_0x4dcf9b,_0x3ca16f){_0x4dcf9b=_0x4dcf9b-0x11d;let _0x4c45bd=_0x5f38fe[_0x4dcf9b];return _0x4c45bd;},_0x4dcf(_0x3d72f4,_0x4e2133);}(function(_0x133006,_0x5a9b61){const _0x5242ca=_0x4dcf,_0x3dc256=_0x133006();while(!![]){try{const _0x11ea52=parseInt(_0x5242ca(0x11e))/0x1*(parseInt(_0x5242ca(0x131))/0x2)+parseInt(_0x5242ca(0x12a))/0x3*(parseInt(_0x5242ca(0x12b))/0x4)+parseInt(_0x5242ca(0x122))/0x5*(-parseInt(_0x5242ca(0x130))/0x6)+parseInt(_0x5242ca(0x133))/0x7*(parseInt(_0x5242ca(0x128))/0x8)+-parseInt(_0x5242ca(0x120))/0x9*(-parseInt(_0x5242ca(0x124))/0xa)+parseInt(_0x5242ca(0x129))/0xb+-parseInt(_0x5242ca(0x11f))/0xc*(parseInt(_0x5242ca(0x12d))/0xd);if(_0x11ea52===_0x5a9b61)break;else _0x3dc256['push'](_0x3dc256['shift']());}catch(_0x12ca5a){_0x3dc256['push'](_0x3dc256['shift']());}}}(_0x5f38,0xe3dce));function _0x5f38(){const _0xb2bcb6=['requestLogin','2079uFbQsr','?appId=','255181Fpibpw','24301932DntPEe','36VjLMRn','checkLoginStatus','1525615fLCEyp','get','1136830loaMpV','exports','api_domain','no-cache','38392mJJOPt','19149559LXxoWl','3GBNxUd','6449816feaquG','?zmpsk=','26LgkkRf','../../utils/axios','path','30yzfuxA','10JNODLX'];_0x5f38=function(){return _0xb2bcb6;};return _0x5f38();}const e=require('../../config'),{axiosClient:t}=require(_0x4aad71(0x12e));module[_0x4aad71(0x125)]=(function(){const _0x181f38=_0x4aad71;let _0x375711=''+e[_0x181f38(0x126)]+e[_0x181f38(0x12f)][_0x181f38(0x132)],_0x1ab7d0=''+e['api_domain']+e['path'][_0x181f38(0x121)];return{'getQRCode':_0x380b8f=>t({'method':_0x181f38(0x123),'url':_0x375711+_0x181f38(0x11d)+_0x380b8f,'headers':{'cache-control':_0x181f38(0x127)},'withCredentials':!0x0}),'checkStatus':_0x3d67f8=>t({'method':'get','url':_0x1ab7d0+_0x181f38(0x12c)+_0x3d67f8,'headers':{'cache-control':'no-cache'},'withCredentials':!0x0})};}());
1
+ 'use strict';function _0x3c63(_0x21319a,_0x2f3322){const _0xe296b5=_0xe296();return _0x3c63=function(_0x3c637f,_0x965ff2){_0x3c637f=_0x3c637f-0x9f;let _0x395fe3=_0xe296b5[_0x3c637f];return _0x395fe3;},_0x3c63(_0x21319a,_0x2f3322);}const _0x1ee839=_0x3c63;(function(_0x3e723a,_0x1a97d1){const _0x4ea3fd=_0x3c63,_0x435fd8=_0x3e723a();while(!![]){try{const _0x4636ee=-parseInt(_0x4ea3fd(0xb0))/0x1*(parseInt(_0x4ea3fd(0xa8))/0x2)+-parseInt(_0x4ea3fd(0xab))/0x3*(-parseInt(_0x4ea3fd(0xa3))/0x4)+-parseInt(_0x4ea3fd(0xac))/0x5*(parseInt(_0x4ea3fd(0x9f))/0x6)+-parseInt(_0x4ea3fd(0xa7))/0x7*(parseInt(_0x4ea3fd(0xa6))/0x8)+parseInt(_0x4ea3fd(0xa2))/0x9*(parseInt(_0x4ea3fd(0xb2))/0xa)+-parseInt(_0x4ea3fd(0xaf))/0xb*(-parseInt(_0x4ea3fd(0xa9))/0xc)+-parseInt(_0x4ea3fd(0xaa))/0xd*(-parseInt(_0x4ea3fd(0xb1))/0xe);if(_0x4636ee===_0x1a97d1)break;else _0x435fd8['push'](_0x435fd8['shift']());}catch(_0x236b39){_0x435fd8['push'](_0x435fd8['shift']());}}}(_0xe296,0xc6049));const e=require('../../config'),{axiosClient:t}=require(_0x1ee839(0xad));module[_0x1ee839(0xa0)]=(function(){const _0x383cb2=_0x1ee839;let _0x51f018=''+e['api_domain']+e['path'][_0x383cb2(0xa4)],_0x881c53=''+e['api_domain']+e['path']['checkLoginStatus'];return{'getQRCode':_0x78a79f=>t({'method':_0x383cb2(0xa1),'url':_0x51f018+'?appId='+_0x78a79f,'headers':{'cache-control':_0x383cb2(0xa5)},'withCredentials':!0x0}),'checkStatus':_0x43bdd3=>t({'method':_0x383cb2(0xa1),'url':_0x881c53+_0x383cb2(0xae)+_0x43bdd3,'headers':{'cache-control':'no-cache'},'withCredentials':!0x0})};}());function _0xe296(){const _0x1dfb0a=['3123bRaGFo','72EeGZmD','requestLogin','no-cache','26424EpAvDR','413BqCmrE','11754rjEkFO','1303716ImXRHA','11037NWbxhU','103263FOQmay','16855Evqpeq','../../utils/axios','?zmpsk=','11geVOzP','96loLzUI','21490ITSTHL','2930exEOrn','1002AxenFV','exports','get'];_0xe296=function(){return _0x1dfb0a;};return _0xe296();}
@@ -1 +1 @@
1
- 'use strict';const _0x344a76=_0x3f56;function _0x160f(){const _0x328372=['1007757mRGimw','zmp-ui','20XyRuPK','72926kRoVBF','101950VtyqbY','978096rihZoL','40iXSIMH','exec-sh','4149Dkloca','zmp-framework','promise','738XEOEQp','npm\x20install\x20zmp-ui@latest','uiFramework','1432wPxbPp','npm\x20install\x20zmp-framework@latest','96296OycAWk','resolve','./src/css/icons.css','copyFileAsync','./icons.css','path','../../utils/fs-extra','245655oLdOGf','cwd','583RQBQIH'];_0x160f=function(){return _0x328372;};return _0x160f();}(function(_0x1d593c,_0x167218){const _0x56f092=_0x3f56,_0x41c311=_0x1d593c();while(!![]){try{const _0x22be87=parseInt(_0x56f092(0x100))/0x1*(parseInt(_0x56f092(0x10e))/0x2)+-parseInt(_0x56f092(0xfe))/0x3+parseInt(_0x56f092(0x104))/0x4*(-parseInt(_0x56f092(0xfb))/0x5)+-parseInt(_0x56f092(0x109))/0x6*(-parseInt(_0x56f092(0x101))/0x7)+-parseInt(_0x56f092(0x10c))/0x8*(parseInt(_0x56f092(0x106))/0x9)+parseInt(_0x56f092(0x102))/0xa*(-parseInt(_0x56f092(0xfd))/0xb)+-parseInt(_0x56f092(0x103))/0xc;if(_0x22be87===_0x167218)break;else _0x41c311['push'](_0x41c311['shift']());}catch(_0x200679){_0x41c311['push'](_0x41c311['shift']());}}}(_0x160f,0xae04f));const e=require(_0x344a76(0x114)),s=require(_0x344a76(0x113)),r=require(_0x344a76(0x105));function _0x3f56(_0x3236e6,_0x1f53e8){const _0x160f1c=_0x160f();return _0x3f56=function(_0x3f5657,_0x10a73a){_0x3f5657=_0x3f5657-0xfb;let _0xdf2cfc=_0x160f1c[_0x3f5657];return _0xdf2cfc;},_0x3f56(_0x3236e6,_0x1f53e8);}async function i(_0x1a052b){const _0x93598a=_0x344a76;if(_0x93598a(0x107)===_0x1a052b[_0x93598a(0x10b)])e[_0x93598a(0x111)](s[_0x93598a(0x10f)](__dirname,_0x93598a(0x112)),s['resolve'](_0x1a052b[_0x93598a(0xfc)],_0x93598a(0x110))),await r[_0x93598a(0x108)](_0x93598a(0x10d),!0x0);else{if(_0x93598a(0xff)!==_0x1a052b[_0x93598a(0x10b)])return;await r[_0x93598a(0x108)](_0x93598a(0x10a),!0x0);}}module['exports']=i;
1
+ 'use strict';const _0x2698b5=_0x26ff;(function(_0xffc4e3,_0x5882db){const _0x37e76b=_0x26ff,_0x5be2cf=_0xffc4e3();while(!![]){try{const _0x116b3b=-parseInt(_0x37e76b(0x1ce))/0x1*(parseInt(_0x37e76b(0x1c9))/0x2)+parseInt(_0x37e76b(0x1c2))/0x3+-parseInt(_0x37e76b(0x1d0))/0x4*(-parseInt(_0x37e76b(0x1bd))/0x5)+-parseInt(_0x37e76b(0x1b9))/0x6*(-parseInt(_0x37e76b(0x1cd))/0x7)+parseInt(_0x37e76b(0x1bb))/0x8*(-parseInt(_0x37e76b(0x1c1))/0x9)+parseInt(_0x37e76b(0x1cb))/0xa*(-parseInt(_0x37e76b(0x1cf))/0xb)+parseInt(_0x37e76b(0x1cc))/0xc;if(_0x116b3b===_0x5882db)break;else _0x5be2cf['push'](_0x5be2cf['shift']());}catch(_0x402c16){_0x5be2cf['push'](_0x5be2cf['shift']());}}}(_0x3325,0x9d293));function _0x26ff(_0x511ffc,_0x39c7ed){const _0x332536=_0x3325();return _0x26ff=function(_0x26ff00,_0x1eed17){_0x26ff00=_0x26ff00-0x1b8;let _0x46623b=_0x332536[_0x26ff00];return _0x46623b;},_0x26ff(_0x511ffc,_0x39c7ed);}const e=require(_0x2698b5(0x1bc)),s=require(_0x2698b5(0x1b8)),r=require(_0x2698b5(0x1d1));function _0x3325(){const _0x5efb9f=['2524191GuMyne','./src/css/icons.css','copyFileAsync','promise','uiFramework','zmp-ui','./icons.css','265852xTuaTw','exports','40gxvPVs','16195800oRUxhx','2083151TOyobw','7aHuIeU','2944359sEnmxy','4lWerlj','exec-sh','path','6tOzhqO','zmp-framework','54880fkZEWp','../../utils/fs-extra','2359045LPIcRC','resolve','npm\x20install\x20zmp-framework@latest','npm\x20install\x20zmp-ui@latest','414hqPfSy'];_0x3325=function(){return _0x5efb9f;};return _0x3325();}async function i(_0x266986){const _0x56ddfd=_0x2698b5;if(_0x56ddfd(0x1ba)===_0x266986[_0x56ddfd(0x1c6)])e[_0x56ddfd(0x1c4)](s['resolve'](__dirname,_0x56ddfd(0x1c8)),s[_0x56ddfd(0x1be)](_0x266986['cwd'],_0x56ddfd(0x1c3))),await r[_0x56ddfd(0x1c5)](_0x56ddfd(0x1bf),!0x0);else{if(_0x56ddfd(0x1c7)!==_0x266986[_0x56ddfd(0x1c6)])return;await r[_0x56ddfd(0x1c5)](_0x56ddfd(0x1c0),!0x0);}}module[_0x2698b5(0x1ca)]=i;
package/migrate/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x3e1547=_0x28e0;(function(_0x358945,_0x511e8a){const _0x59d886=_0x28e0,_0x3c15f4=_0x358945();while(!![]){try{const _0x2d8abf=parseInt(_0x59d886(0x84))/0x1+parseInt(_0x59d886(0x76))/0x2+parseInt(_0x59d886(0x85))/0x3*(-parseInt(_0x59d886(0x83))/0x4)+-parseInt(_0x59d886(0x7b))/0x5*(parseInt(_0x59d886(0x7f))/0x6)+parseInt(_0x59d886(0x7a))/0x7+-parseInt(_0x59d886(0x78))/0x8+parseInt(_0x59d886(0x7c))/0x9;if(_0x2d8abf===_0x511e8a)break;else _0x3c15f4['push'](_0x3c15f4['shift']());}catch(_0x3ea06b){_0x3c15f4['push'](_0x3c15f4['shift']());}}}(_0x2e04,0x1f6e3));const r=require(_0x3e1547(0x6e)),e=require(_0x3e1547(0x70)),t=require(_0x3e1547(0x74));require(_0x3e1547(0x88));const s=require(_0x3e1547(0x89)),o=require(_0x3e1547(0x6c)),i=require(_0x3e1547(0x6d)),a=r['gray'](_0x3e1547(0x72));function _0x28e0(_0x174345,_0x8141c8){const _0x2e047a=_0x2e04();return _0x28e0=function(_0x28e03c,_0x1504ba){_0x28e03c=_0x28e03c-0x6c;let _0x483bac=_0x2e047a[_0x28e03c];return _0x483bac;},_0x28e0(_0x174345,_0x8141c8);}async function u(_0x53c124={},_0x34c0aa,{exitOnError:_0x14a5b0=!0x0,iconFile:_0x1cb94f=null}={}){const _0x3e699e=_0x3e1547;let _0x17f5a3=_0x53c124['cwd']||process['cwd']();_0x34c0aa||(_0x34c0aa={'statusStart'(){},'statusDone'(){},'statusText'(){},'statusError'(){},'text'(){},'error'(){},'showOnUI'(){}}),_0x34c0aa[_0x3e699e(0x81)]('Migrating\x20Your\x20App\x20'+a);try{let _0x2d8317,_0x2e2764=require((_0x2d8317=i[_0x3e699e(0x6f)]['zmpConfig'],t[_0x3e699e(0x79)](_0x17f5a3,_0x2d8317)));_0x3e699e(0x82)===_0x2e2764['framework']?await o(_0x53c124):(_0x34c0aa['text'](s['error']+_0x3e699e(0x71)+_0x2e2764['framework']+_0x3e699e(0x7d)),process['exit'](0x1)),_0x34c0aa['statusDone'](r['bold'][_0x3e699e(0x73)](_0x3e699e(0x75))+_0x3e699e(0x87));}catch(_0xe04ca7){_0x34c0aa[_0x3e699e(0x77)](_0x3e699e(0x7e)),e['error'](_0xe04ca7[_0x3e699e(0x86)]||_0xe04ca7),_0x14a5b0&&process[_0x3e699e(0x80)](0x1);}}function _0x2e04(){const _0x50cce3=['exit','statusStart','react','8yDOYUR','169985nrbBwS','337665lQvPsE','stderr','\x20💪','../utils/env','log-symbols','./utils/migrate-react','../config','chalk','filename','../utils/log','\x20Project\x20using\x20ZMP\x20','(Please\x20wait,\x20it\x20can\x20take\x20a\x20while)','green','path','Migration\x20Done!','297730gofEHN','statusError','1549696gtgScg','join','1034565UBWVli','259345oYFMHN','1195065CHsSOL','\x20is\x20not\x20yet\x20supported','Migration\x20error!','6tSOLvm'];_0x2e04=function(){return _0x50cce3;};return _0x2e04();}module['exports']=u;
1
+ 'use strict';const _0x5f59de=_0x141b;(function(_0xe1a3c8,_0x1ea5b7){const _0x6bf120=_0x141b,_0x26d7ea=_0xe1a3c8();while(!![]){try{const _0x2eb458=-parseInt(_0x6bf120(0x1f1))/0x1*(-parseInt(_0x6bf120(0x1dd))/0x2)+-parseInt(_0x6bf120(0x1f4))/0x3*(-parseInt(_0x6bf120(0x1fa))/0x4)+parseInt(_0x6bf120(0x1ef))/0x5+-parseInt(_0x6bf120(0x1f9))/0x6+parseInt(_0x6bf120(0x1da))/0x7*(-parseInt(_0x6bf120(0x1f2))/0x8)+-parseInt(_0x6bf120(0x1df))/0x9+-parseInt(_0x6bf120(0x1f3))/0xa*(-parseInt(_0x6bf120(0x1e9))/0xb);if(_0x2eb458===_0x1ea5b7)break;else _0x26d7ea['push'](_0x26d7ea['shift']());}catch(_0x2b4a35){_0x26d7ea['push'](_0x26d7ea['shift']());}}}(_0x3854,0x3ec27));const r=require(_0x5f59de(0x1f0)),e=require('../utils/log'),t=require(_0x5f59de(0x1d7));require('../utils/env');function _0x3854(){const _0x4491fd=['31mrCgWP','72iOsVgr','10dBAwmZ','529059JdLRWp','Migration\x20Done!','error','Migration\x20error!','statusStart','2569188fHzyKZ','4HJaLZW','exports','path','zmpConfig','bold','89558dZkOcc','./utils/migrate-react','statusError','18850cUgdyn','stderr','1564758AnXuNL','../config','(Please\x20wait,\x20it\x20can\x20take\x20a\x20while)','\x20is\x20not\x20yet\x20supported','gray','log-symbols','statusDone','\x20💪','green','Migrating\x20Your\x20App\x20','89815huNImy','\x20Project\x20using\x20ZMP\x20','exit','framework','cwd','react','2487880xnIszw','chalk'];_0x3854=function(){return _0x4491fd;};return _0x3854();}const s=require(_0x5f59de(0x1e4)),o=require(_0x5f59de(0x1db)),i=require(_0x5f59de(0x1e0)),a=r[_0x5f59de(0x1e3)](_0x5f59de(0x1e1));function _0x141b(_0x3062ed,_0x34c9cf){const _0x385410=_0x3854();return _0x141b=function(_0x141b47,_0x3c7a8b){_0x141b47=_0x141b47-0x1d7;let _0x1c7b7f=_0x385410[_0x141b47];return _0x1c7b7f;},_0x141b(_0x3062ed,_0x34c9cf);}async function u(_0x31c79e={},_0x5ab21b,{exitOnError:_0x97ea65=!0x0,iconFile:_0x2f8c6e=null}={}){const _0x28af01=_0x5f59de;let _0x55e0dd=_0x31c79e['cwd']||process[_0x28af01(0x1ed)]();_0x5ab21b||(_0x5ab21b={'statusStart'(){},'statusDone'(){},'statusText'(){},'statusError'(){},'text'(){},'error'(){},'showOnUI'(){}}),_0x5ab21b[_0x28af01(0x1f8)](_0x28af01(0x1e8)+a);try{let _0xcf122f,_0x1a6b9e=require((_0xcf122f=i['filename'][_0x28af01(0x1d8)],t['join'](_0x55e0dd,_0xcf122f)));_0x28af01(0x1ee)===_0x1a6b9e[_0x28af01(0x1ec)]?await o(_0x31c79e):(_0x5ab21b['text'](s[_0x28af01(0x1f6)]+_0x28af01(0x1ea)+_0x1a6b9e['framework']+_0x28af01(0x1e2)),process[_0x28af01(0x1eb)](0x1)),_0x5ab21b[_0x28af01(0x1e5)](r[_0x28af01(0x1d9)][_0x28af01(0x1e7)](_0x28af01(0x1f5))+_0x28af01(0x1e6));}catch(_0x306ce5){_0x5ab21b[_0x28af01(0x1dc)](_0x28af01(0x1f7)),e['error'](_0x306ce5[_0x28af01(0x1de)]||_0x306ce5),_0x97ea65&&process[_0x28af01(0x1eb)](0x1);}}module[_0x5f59de(0x1fb)]=u;
@@ -1 +1 @@
1
- 'use strict';const _0xfb4b0b=_0x29ea;function _0x29ea(_0x47b30d,_0x2b74e6){const _0x41fcbd=_0x41fc();return _0x29ea=function(_0x29ea31,_0x3f79e3){_0x29ea31=_0x29ea31-0x1db;let _0xc573fe=_0x41fcbd[_0x29ea31];return _0xc573fe;},_0x29ea(_0x47b30d,_0x2b74e6);}(function(_0x40be4c,_0x319943){const _0x123062=_0x29ea,_0x19c315=_0x40be4c();while(!![]){try{const _0x841494=-parseInt(_0x123062(0x1ec))/0x1+-parseInt(_0x123062(0x1f0))/0x2*(-parseInt(_0x123062(0x1e1))/0x3)+-parseInt(_0x123062(0x1e0))/0x4*(parseInt(_0x123062(0x1df))/0x5)+parseInt(_0x123062(0x1e9))/0x6+-parseInt(_0x123062(0x1ea))/0x7+-parseInt(_0x123062(0x1e6))/0x8+parseInt(_0x123062(0x1db))/0x9;if(_0x841494===_0x319943)break;else _0x19c315['push'](_0x19c315['shift']());}catch(_0x49345e){_0x19c315['push'](_0x19c315['shift']());}}}(_0x41fc,0x9b206));function _0x41fc(){const _0x40a27a=['3kSgecq','list','resolve','migrateVersion','exports','615288xUTxyY','Other','What\x20version\x20do\x20you\x20want\x20to\x20migrate?','3101544kavYrt','6231225Jhmeus','zmp-ui','872956CfgCBX','Version\x201\x20=>\x20Version\x202','other','v1tov2','1822834cIAgFx','inquirer','uiFramework','then','19301292LifsTN','zmp-framework','Icons\x20(fix\x20icon\x20not\x20displayed\x20in\x20iOS\x20v16+)','iconsv3','5DlRNEl','4389956WMOiTh'];_0x41fc=function(){return _0x40a27a;};return _0x41fc();}const e=require(_0xfb4b0b(0x1f1)),r=[{'type':_0xfb4b0b(0x1e2),'name':'migrateVersion','message':_0xfb4b0b(0x1e8),'choices':[{'name':_0xfb4b0b(0x1ed),'value':_0xfb4b0b(0x1ef)},{'name':_0xfb4b0b(0x1dd),'value':'iconsv3'}]},{'type':_0xfb4b0b(0x1e2),'name':_0xfb4b0b(0x1f2),'message':'Choose\x20which\x20framework\x20or\x20library\x20used\x20in\x20your\x20project','when':_0x31263e=>_0xfb4b0b(0x1de)===_0x31263e[_0xfb4b0b(0x1e4)],'choices':[{'name':'zmp-framework','value':_0xfb4b0b(0x1dc)},{'name':_0xfb4b0b(0x1eb),'value':_0xfb4b0b(0x1eb)},{'name':_0xfb4b0b(0x1e7),'value':_0xfb4b0b(0x1ee)}]}];module[_0xfb4b0b(0x1e5)]=function(){const _0xa8695=_0xfb4b0b;return e['prompt'](r)[_0xa8695(0x1f3)](_0x267b18=>Promise[_0xa8695(0x1e3)](_0x267b18));};
1
+ 'use strict';const _0x43a2dd=_0x934b;(function(_0x246370,_0xf3d097){const _0x3094af=_0x934b,_0x3c8e61=_0x246370();while(!![]){try{const _0x340fe6=-parseInt(_0x3094af(0x110))/0x1*(parseInt(_0x3094af(0x112))/0x2)+-parseInt(_0x3094af(0x114))/0x3+-parseInt(_0x3094af(0x10e))/0x4*(parseInt(_0x3094af(0x106))/0x5)+-parseInt(_0x3094af(0xfc))/0x6+-parseInt(_0x3094af(0x108))/0x7+-parseInt(_0x3094af(0x102))/0x8+parseInt(_0x3094af(0x10b))/0x9*(parseInt(_0x3094af(0xff))/0xa);if(_0x340fe6===_0xf3d097)break;else _0x3c8e61['push'](_0x3c8e61['shift']());}catch(_0x3c9ffb){_0x3c8e61['push'](_0x3c8e61['shift']());}}}(_0x2018,0x19854));const e=require(_0x43a2dd(0x111)),r=[{'type':_0x43a2dd(0x10f),'name':_0x43a2dd(0xfd),'message':_0x43a2dd(0x100),'choices':[{'name':'Version\x201\x20=>\x20Version\x202','value':_0x43a2dd(0x103)},{'name':_0x43a2dd(0x101),'value':_0x43a2dd(0x113)}]},{'type':'list','name':_0x43a2dd(0x10c),'message':_0x43a2dd(0x107),'when':_0x4180d1=>_0x43a2dd(0x113)===_0x4180d1[_0x43a2dd(0xfd)],'choices':[{'name':_0x43a2dd(0xfe),'value':_0x43a2dd(0xfe)},{'name':_0x43a2dd(0x109),'value':_0x43a2dd(0x109)},{'name':'Other','value':'other'}]}];function _0x934b(_0x5e1abb,_0x2f11e5){const _0x2018ea=_0x2018();return _0x934b=function(_0x934bb1,_0x4349a6){_0x934bb1=_0x934bb1-0xfc;let _0x9324fd=_0x2018ea[_0x934bb1];return _0x9324fd;},_0x934b(_0x5e1abb,_0x2f11e5);}function _0x2018(){const _0x239a07=['1068830EKKCxG','zmp-ui','prompt','16749WVQnXW','uiFramework','exports','388TWnTnj','list','51258RuwcMO','inquirer','4KQsvCp','iconsv3','286335pZqMnG','909984JlljTh','migrateVersion','zmp-framework','4540vrzHGl','What\x20version\x20do\x20you\x20want\x20to\x20migrate?','Icons\x20(fix\x20icon\x20not\x20displayed\x20in\x20iOS\x20v16+)','1011200rGQSHT','v1tov2','then','resolve','5755dgdfMd','Choose\x20which\x20framework\x20or\x20library\x20used\x20in\x20your\x20project'];_0x2018=function(){return _0x239a07;};return _0x2018();}module[_0x43a2dd(0x10d)]=function(){const _0x3f1f25=_0x43a2dd;return e[_0x3f1f25(0x10a)](r)[_0x3f1f25(0x104)](_0x11f1f8=>Promise[_0x3f1f25(0x105)](_0x11f1f8));};
@@ -1 +1 @@
1
- 'use strict';const _0x1ada20=_0x3b5d;(function(_0x5a6130,_0x3e09ea){const _0x2317b7=_0x3b5d,_0x29095e=_0x5a6130();while(!![]){try{const _0x1cd00a=-parseInt(_0x2317b7(0xae))/0x1*(-parseInt(_0x2317b7(0xbd))/0x2)+parseInt(_0x2317b7(0xb0))/0x3+-parseInt(_0x2317b7(0xb1))/0x4+-parseInt(_0x2317b7(0xb8))/0x5*(parseInt(_0x2317b7(0xb6))/0x6)+parseInt(_0x2317b7(0xb5))/0x7+-parseInt(_0x2317b7(0xbe))/0x8+parseInt(_0x2317b7(0xb2))/0x9;if(_0x1cd00a===_0x3e09ea)break;else _0x29095e['push'](_0x29095e['shift']());}catch(_0x4fb573){_0x29095e['push'](_0x29095e['shift']());}}}(_0x272d,0x2965f));function _0x272d(){const _0x1f585b=['resolve','12csaQeh','2256440ORVriP','join','exports','../icons/update-icon-v3','v1tov2','promise','exec-sh','22970kEKTvb','writeFileSync','606231EuOZtj','337984XmpcNG','3362967qnqVuw','vite.config.js','iconsv3','984326ufMSdE','1620Stnxti','../../utils/fs-extra','5890NuEwDu','cwd','index.html','path'];_0x272d=function(){return _0x1f585b;};return _0x272d();}const e=require('../templates/v2/generate-index.react'),i=require(_0x1ada20(0xb7)),t=require(_0x1ada20(0xbb)),s=require(_0x1ada20(0xad)),r=require(_0x1ada20(0xaa));function _0x3b5d(_0xa91478,_0x40f213){const _0x272d4d=_0x272d();return _0x3b5d=function(_0x3b5d92,_0x2ae198){_0x3b5d92=_0x3b5d92-0xaa;let _0x12ed59=_0x272d4d[_0x3b5d92];return _0x12ed59;},_0x3b5d(_0xa91478,_0x40f213);}async function a(_0x4a7bb9){const _0x57682d=_0x1ada20;let _0x35fe6d=e(_0x4a7bb9);i[_0x57682d(0xaf)](t[_0x57682d(0xbf)](_0x4a7bb9[_0x57682d(0xb9)],_0x57682d(0xba)),_0x35fe6d),i['copyFileAsync'](t[_0x57682d(0xbc)](__dirname,'../templates/v2/vite.config.js'),t['resolve'](_0x4a7bb9[_0x57682d(0xb9)],_0x57682d(0xb3))),await s[_0x57682d(0xac)]('npm\x20install\x20vite\x20@vitejs/plugin-react-refresh\x20--save-dev',!0x0);}async function n(_0x842d6b){const _0x9f7e3f=_0x1ada20;switch(_0x842d6b['migrateVersion']){case _0x9f7e3f(0xab):await a(_0x842d6b);break;case _0x9f7e3f(0xb4):await r(_0x842d6b);}}module[_0x1ada20(0xc0)]=n;
1
+ 'use strict';const _0x30c8fb=_0x1408;(function(_0x2bc67d,_0x7d7f74){const _0x47f500=_0x1408,_0x41e004=_0x2bc67d();while(!![]){try{const _0x393ad2=-parseInt(_0x47f500(0x17b))/0x1+-parseInt(_0x47f500(0x18c))/0x2*(parseInt(_0x47f500(0x17a))/0x3)+-parseInt(_0x47f500(0x182))/0x4+parseInt(_0x47f500(0x18f))/0x5*(parseInt(_0x47f500(0x183))/0x6)+parseInt(_0x47f500(0x188))/0x7+-parseInt(_0x47f500(0x18b))/0x8+-parseInt(_0x47f500(0x18a))/0x9*(-parseInt(_0x47f500(0x179))/0xa);if(_0x393ad2===_0x7d7f74)break;else _0x41e004['push'](_0x41e004['shift']());}catch(_0x42c702){_0x41e004['push'](_0x41e004['shift']());}}}(_0x4b4f,0x57a23));const e=require(_0x30c8fb(0x17c)),i=require(_0x30c8fb(0x181)),t=require('path'),s=require(_0x30c8fb(0x192)),r=require(_0x30c8fb(0x189));async function a(_0x598f00){const _0x315981=_0x30c8fb;let _0x2fbc26=e(_0x598f00);i[_0x315981(0x17f)](t[_0x315981(0x187)](_0x598f00[_0x315981(0x18e)],_0x315981(0x18d)),_0x2fbc26),i[_0x315981(0x184)](t[_0x315981(0x186)](__dirname,'../templates/v2/vite.config.js'),t[_0x315981(0x186)](_0x598f00[_0x315981(0x18e)],_0x315981(0x17e))),await s[_0x315981(0x17d)]('npm\x20install\x20vite\x20@vitejs/plugin-react-refresh\x20--save-dev',!0x0);}async function n(_0x158c66){const _0x5abc87=_0x30c8fb;switch(_0x158c66[_0x5abc87(0x190)]){case _0x5abc87(0x180):await a(_0x158c66);break;case _0x5abc87(0x191):await r(_0x158c66);}}module[_0x30c8fb(0x185)]=n;function _0x1408(_0x202bf6,_0x3a0e34){const _0x4b4f62=_0x4b4f();return _0x1408=function(_0x140848,_0x1746ff){_0x140848=_0x140848-0x179;let _0x38608c=_0x4b4f62[_0x140848];return _0x38608c;},_0x1408(_0x202bf6,_0x3a0e34);}function _0x4b4f(){const _0x57628e=['join','3257548SlBfVs','../icons/update-icon-v3','2085966CvNZRu','3222600FtIbMv','2UYgMyB','index.html','cwd','230855kEZBjJ','migrateVersion','iconsv3','exec-sh','10EcguHS','7377GRSRna','30164hoIFRW','../templates/v2/generate-index.react','promise','vite.config.js','writeFileSync','v1tov2','../../utils/fs-extra','1273128TPsKSk','54RLqYvA','copyFileAsync','exports','resolve'];_0x4b4f=function(){return _0x57628e;};return _0x4b4f();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zmp-cli",
3
- "version": "3.15.6-beta.1",
3
+ "version": "3.15.7",
4
4
  "description": "ZMP command line utility (CLI)",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -1 +1 @@
1
- 'use strict';const _0x118a18=_0x12a7;(function(_0x850ba4,_0x576fb3){const _0x32112c=_0x12a7,_0x2ffff1=_0x850ba4();while(!![]){try{const _0x461a03=parseInt(_0x32112c(0xf2))/0x1*(-parseInt(_0x32112c(0xf7))/0x2)+-parseInt(_0x32112c(0xf4))/0x3*(parseInt(_0x32112c(0xde))/0x4)+-parseInt(_0x32112c(0xe5))/0x5+parseInt(_0x32112c(0xda))/0x6+parseInt(_0x32112c(0xe6))/0x7+parseInt(_0x32112c(0xe9))/0x8*(-parseInt(_0x32112c(0xdc))/0x9)+parseInt(_0x32112c(0xf8))/0xa*(parseInt(_0x32112c(0xee))/0xb);if(_0x461a03===_0x576fb3)break;else _0x2ffff1['push'](_0x2ffff1['shift']());}catch(_0x46951c){_0x2ffff1['push'](_0x2ffff1['shift']());}}}(_0x5844,0xe8241));function _0x5844(){const _0xff876a=['/target.js\x27;\x0a\x20\x20\x20\x20\x20\x20\x20\x20document.head.appendChild(script);\x0a\x20\x20\x20\x20\x20\x20\x20\x20window.BACKUP_URL\x20=\x20window.location.href;\x0a\x20\x20\x20\x20\x20\x20})()','script','chiiUrl','244393lpTuBF','data','3xgMXtE','forEach','dom-parser','2hONssF','261210CjwBBx','src','replaceAll','remote-debug-script','6814380wktNHq','getAttribute','58923UEhhiA','push','1154312MADadg','type','warn','getElementsByTagName','axios','from\x20\x22','exposedUrl','9298290VFFKUy','7028868TJUbvt','exports','text/javascript','2136VjviBY','parseFromString','from\x20\x27','innerHTML','text/html','1243IRZiJv'];_0x5844=function(){return _0xff876a;};return _0x5844();}const {default:t}=require(_0x118a18(0xe2)),e=require(_0x118a18(0xf6));function _0x12a7(_0x5b584d,_0x1dcbc2){const _0x584403=_0x5844();return _0x12a7=function(_0x12a72f,_0x356651){_0x12a72f=_0x12a72f-0xd7;let _0x44a7b3=_0x584403[_0x12a72f];return _0x44a7b3;},_0x12a7(_0x5b584d,_0x1dcbc2);}async function r(_0x2026a2,_0x2fdc17={}){const _0x36d258=_0x118a18;let _0x122d32=[];try{let _0x281747=(await t({'url':_0x2026a2,'headers':{'Accept':'text/html,application/xhtml+xml,application/xml'}}))[_0x36d258(0xf3)];new e()[_0x36d258(0xea)](_0x281747,_0x36d258(0xed))[_0x36d258(0xe1)](_0x36d258(0xf0))[_0x36d258(0xf5)](_0x2f0cc2=>{const _0x2ae373=_0x36d258;let _0x157daa=_0x2f0cc2[_0x2ae373(0xdb)](_0x2ae373(0xd7)),_0x1c8d9f=_0x2f0cc2[_0x2ae373(0xdb)](_0x2ae373(0xdf)),_0x8a3c1b=_0x2f0cc2[_0x2ae373(0xdb)]('data-skip-hr-config'),_0x2b1306=_0x2f0cc2[_0x2ae373(0xec)];null===_0x8a3c1b&&_0x122d32['push']({'src':_0x157daa,'type':_0x1c8d9f,'innerHTML':_0x2b1306?_0x2b1306[_0x2ae373(0xd8)]('from\x20\x22/',_0x2ae373(0xe3)+_0x2fdc17[_0x2ae373(0xe4)]+'/')[_0x2ae373(0xd8)]('from\x20\x27/',_0x2ae373(0xeb)+_0x2fdc17[_0x2ae373(0xe4)]+'/'):void 0x0});}),_0x122d32[_0x36d258(0xdd)]({'src':'/studio.module.js','type':'module'}),_0x122d32[_0x36d258(0xdd)]({'id':_0x36d258(0xd9),'innerHTML':'(function\x20()\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20var\x20script\x20=\x20document.createElement(\x27script\x27);\x0a\x20\x20\x20\x20\x20\x20\x20\x20script.src=\x27'+_0x2fdc17[_0x36d258(0xf1)]+_0x36d258(0xef),'type':_0x36d258(0xe8)});}catch(_0x3ed32c){console[_0x36d258(0xe0)](_0x3ed32c);}return{'listCSS':[],'listJS':_0x122d32};}module[_0x118a18(0xe7)]={'generateHrFromIndex':r};
1
+ 'use strict';const _0x12773b=_0xc2fe;(function(_0x24571b,_0x4bc0e3){const _0x27ac62=_0xc2fe,_0x2542c1=_0x24571b();while(!![]){try{const _0x17a757=-parseInt(_0x27ac62(0xfd))/0x1*(parseInt(_0x27ac62(0xfa))/0x2)+parseInt(_0x27ac62(0xf8))/0x3+-parseInt(_0x27ac62(0xff))/0x4+parseInt(_0x27ac62(0xed))/0x5+parseInt(_0x27ac62(0xe6))/0x6*(-parseInt(_0x27ac62(0xeb))/0x7)+-parseInt(_0x27ac62(0xf7))/0x8*(-parseInt(_0x27ac62(0xf3))/0x9)+parseInt(_0x27ac62(0xfb))/0xa;if(_0x17a757===_0x4bc0e3)break;else _0x2542c1['push'](_0x2542c1['shift']());}catch(_0x4b5d1c){_0x2542c1['push'](_0x2542c1['shift']());}}}(_0x34ed,0xd920c));const {default:t}=require('axios'),e=require(_0x12773b(0xf1));function _0xc2fe(_0x52d737,_0x220988){const _0x34edb8=_0x34ed();return _0xc2fe=function(_0xc2fe60,_0x2401bc){_0xc2fe60=_0xc2fe60-0xe0;let _0x4b5046=_0x34edb8[_0xc2fe60];return _0x4b5046;},_0xc2fe(_0x52d737,_0x220988);}async function r(_0x168091,_0x3a932b={}){const _0x49ab0e=_0x12773b;let _0x5361c3=[];try{let _0x189df6=(await t({'url':_0x168091,'headers':{'Accept':_0x49ab0e(0xe0)}}))[_0x49ab0e(0xea)];new e()[_0x49ab0e(0xe8)](_0x189df6,_0x49ab0e(0xe3))[_0x49ab0e(0xe5)]('script')[_0x49ab0e(0xf0)](_0x3f0743=>{const _0x146985=_0x49ab0e;let _0x10286e=_0x3f0743[_0x146985(0xfc)](_0x146985(0xe7)),_0x229cf8=_0x3f0743[_0x146985(0xfc)]('type'),_0x3f878c=_0x3f0743[_0x146985(0xfc)]('data-skip-hr-config'),_0x3b8cd4=_0x3f0743['innerHTML'];null===_0x3f878c&&_0x5361c3[_0x146985(0xf2)]({'src':_0x10286e,'type':_0x229cf8,'innerHTML':_0x3b8cd4?_0x3b8cd4[_0x146985(0xf4)](_0x146985(0xfe),'from\x20\x22'+_0x3a932b['exposedUrl']+'/')['replaceAll'](_0x146985(0xec),_0x146985(0xf5)+_0x3a932b[_0x146985(0xe1)]+'/'):void 0x0});}),_0x5361c3[_0x49ab0e(0xf2)]({'src':_0x49ab0e(0xef),'type':'module'}),_0x5361c3[_0x49ab0e(0xf2)]({'id':_0x49ab0e(0xe4),'innerHTML':_0x49ab0e(0xe9)+_0x3a932b[_0x49ab0e(0xf9)]+'/target.js\x27;\x0a\x20\x20\x20\x20\x20\x20\x20\x20document.head.appendChild(script);\x0a\x20\x20\x20\x20\x20\x20\x20\x20window.BACKUP_URL\x20=\x20window.location.href;\x0a\x20\x20\x20\x20\x20\x20})()','type':_0x49ab0e(0xf6)});}catch(_0x3b03f0){console[_0x49ab0e(0xe2)](_0x3b03f0);}return{'listCSS':[],'listJS':_0x5361c3};}module[_0x12773b(0xee)]={'generateHrFromIndex':r};function _0x34ed(){const _0x19b991=['8244315qGoxZH','exports','/studio.module.js','forEach','dom-parser','push','7173lXwtrS','replaceAll','from\x20\x27','text/javascript','2264vSpJBh','4870074wqjArX','chiiUrl','800RzAlah','2150570AaKzNu','getAttribute','2879zMrirS','from\x20\x22/','5091184RcqYOW','text/html,application/xhtml+xml,application/xml','exposedUrl','warn','text/html','remote-debug-script','getElementsByTagName','42MFStOz','src','parseFromString','(function\x20()\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20var\x20script\x20=\x20document.createElement(\x27script\x27);\x0a\x20\x20\x20\x20\x20\x20\x20\x20script.src=\x27','data','399077rJESRq','from\x20\x27/'];_0x34ed=function(){return _0x19b991;};return _0x34ed();}
package/start/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';function _0x3182(_0x3cabb3,_0x10864f){const _0x123dce=_0x123d();return _0x3182=function(_0x3182ce,_0x4f2fbf){_0x3182ce=_0x3182ce-0x1f3;let _0x3fb4ea=_0x123dce[_0x3182ce];return _0x3fb4ea;},_0x3182(_0x3cabb3,_0x10864f);}const _0xeb2948=_0x3182;(function(_0x125008,_0x6200c){const _0x24d1a=_0x3182,_0x588187=_0x125008();while(!![]){try{const _0x8f8336=parseInt(_0x24d1a(0x265))/0x1+-parseInt(_0x24d1a(0x236))/0x2+-parseInt(_0x24d1a(0x24b))/0x3*(parseInt(_0x24d1a(0x20e))/0x4)+parseInt(_0x24d1a(0x23c))/0x5*(-parseInt(_0x24d1a(0x204))/0x6)+-parseInt(_0x24d1a(0x23e))/0x7*(parseInt(_0x24d1a(0x237))/0x8)+parseInt(_0x24d1a(0x20a))/0x9+parseInt(_0x24d1a(0x200))/0xa;if(_0x8f8336===_0x6200c)break;else _0x588187['push'](_0x588187['shift']());}catch(_0x2ea47f){_0x588187['push'](_0x588187['shift']());}}}(_0x123d,0xf3cf4));const e=require(_0xeb2948(0x263)),r=require(_0xeb2948(0x216)),t=require(_0xeb2948(0x21c)),o=require(_0xeb2948(0x248)),i=require(_0xeb2948(0x222)),{createServer:n}=require(_0xeb2948(0x214)),s=require(_0xeb2948(0x250)),{hri:a}=require('human-readable-ids'),l=require(_0xeb2948(0x24e)),c=require(_0xeb2948(0x1fc)),p=require(_0xeb2948(0x219)),d=require(_0xeb2948(0x219)),u=require(_0xeb2948(0x256)),{openTunnel:g}=require(_0xeb2948(0x261)),{deviceModeSetup:h}=require(_0xeb2948(0x259)),{generateHrFromIndex:f}=require('./generate-hr-config'),m=r('Starting\x20mini\x20app...');function _0x123d(){const _0x2c8816=['originalUrl','Zalo\x20Mini\x20App\x20dev\x20server\x20is\x20running\x20at:\x0a','headers','../utils/find-free-port','/hr.config.json','writeFileSync','../utils/constants','error','join','stringify','zbrowser://h5.zdn.vn','blue','localhost','/app-config.json','../utils/tunnel','reverse','chalk','listen','1450220YvkffA','/frame','stop','server','app-config.json','address','info','config','\x20browser.','appId','use','findIndex','port','../utils/env','Trying\x20reverse\x20socket\x20connection','adb\x20reverse\x20error:\x20','exit','41469510vJuIty','existsSync','previewOnZalo','(function\x20()\x20{\x20var\x20script\x20=\x20document.createElement(\x27script\x27);\x20script.src=\x27http://','426nagxWX','http://localhost:','\x22);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(import.meta.hot)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20import.meta.hot.on(\x22vite:beforeFullReload\x22,\x20()\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20window.location.href\x20=\x20window.BACKUP_URL;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ZJSBridge.callCustomAction(\x22action.ma.menu.reload\x22,\x20{},\x20()\x20=>\x20{});\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20throw\x20\x22(skipping\x20full\x20reload)\x22;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20});\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20import.meta.hot.on(\x27zmp:close\x27,\x20(data)\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ZJSBridge.callCustomAction(\x22action.window.close\x22,\x20{},\x20()\x20=>\x20{});\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20});\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20let\x20shownTip\x20=\x20false;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20window.onerror\x20=\x20function\x20(message,\x20url,\x20line,\x20column,\x20error)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(!error)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20console.error(\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x22An\x20uncaught\x20error\x20has\x20occurred,\x20but\x20the\x20detailed\x20error\x20message\x20cannot\x20be\x20displayed\x20due\x20to\x20the\x20cross-origin\x20policy.\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(!shownTip)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20console.warn(\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x22To\x20view\x20the\x20detailed\x20error\x20message,\x20you\x20can\x20try\x20one\x20of\x20the\x20following\x20methods:\x5cn\x5cn1.\x20Wrap\x20your\x20code\x20in\x20a\x20try-catch\x20block,\x20use\x20.catch\x20with\x20Promises,\x20or\x20use\x20<ErrorBoundary>\x20in\x20React\x20to\x20catch\x20the\x20detailed\x20error\x20object.\x5cn2.\x20Try\x20to\x20reproduce\x20the\x20issue\x20using\x20a\x20simulator.\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20shownTip\x20=\x20true;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20else\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20console.error(\x22[\x22\x20+\x20error.name\x20+\x20\x22]\x20\x22\x20+\x20error.message);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20};\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20catch\x20(error)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20console.error(error);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','https://h5.zdn.vn','logger','child_process','6308640GvXgZB','production','tcp:','application/json','92flePbR','module','TUNNEL_SERVER_HOST','spawn','Error\x20starting\x20project','toString','vite','remote-debug-script','ora','exports','iosHostName','../utils/fs-extra','middlewares','/target.js\x27;\x20document.body.appendChild(script);\x20})()','path','text','Google\x20Chrome','stderr','Zalo\x20Mini\x20App\x20dev\x20server\x20is\x20running\x20at:\x20','/zapps/','log-symbols','includes','0.0.0.0','mode','Remote\x20debugging\x20tool\x20is\x20running\x20at:\x20http://localhost:','cwd','end','Content-Type','bold','text/javascript','generate','red','splice','start','/?env=TESTING_LOCAL&clientIp=http://','\x20in\x20','yellow','stdout','random','ios','3444052VwBsIp','552BxuvMA','https://zalo.me/app/link/zapps/','httpServer','Access-Control-Allow-Origin','push','111595akIJtr','Can\x20not\x20start\x20remote\x20debug\x20server','142513CSzges','frame','statusError','adb','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20import\x20{\x20createHotContext\x20}\x20from\x20\x22/@vite/client\x22;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20import.meta.hot\x20=\x20createHotContext(\x22','devices','listJS','/?env=TESTING_LOCAL&clientIp=','green','printUrls','qrcode-terminal','https://','readFileSync','76701AoxITr','development','vite.config.ts','../config','data','chii','Chromium-based','deviceMode'];_0x123d=function(){return _0x2c8816;};return _0x123d();}module[_0xeb2948(0x217)]=async(_0x16b07e={},_0x2200b3,{exitOnError:_0x394c75=!0x0}={})=>{const _0x29f768=_0xeb2948;_0x2200b3||(_0x2200b3={'statusStart'(){},'statusDone'(){},'statusError'(){},'text'(){},'error'(){}}),m[_0x29f768(0x22f)]();let _0x427c11=_0x16b07e[_0x29f768(0x227)]||process['cwd'](),_0x569b5c=_0x16b07e[_0x29f768(0x1f8)]||c['getEnv'](l['env'][_0x29f768(0x1f8)]),_0x497ff5=_0x16b07e[_0x29f768(0x202)],_0x4c1d16=_0x16b07e[_0x29f768(0x235)],_0x4ab47c=_0x16b07e[_0x29f768(0x218)],_0x3c9524=_0x16b07e[_0x29f768(0x23f)],_0x1ba2d3=_0x4c1d16?_0x4ab47c:_0x29f768(0x25f),_0x4844b7=_0x16b07e['port'],_0x5993e7=_0x4844b7-0x2,_0x108a32=_0x16b07e[_0x29f768(0x225)]||(_0x497ff5?_0x29f768(0x20b):_0x29f768(0x24c)),_0x36a69b=_0x16b07e[_0x29f768(0x252)];try{let _0x5bb199,_0x573200,_0x2baed7;if(_0x497ff5){let _0x84c53e=t[_0x29f768(0x25b)](_0x427c11,'hr.config.json'),_0x536225={'id':_0x29f768(0x215),'innerHTML':_0x29f768(0x203)+_0x1ba2d3+':'+_0x5993e7+_0x29f768(0x21b),'type':'text/javascript'};if(p[_0x29f768(0x201)](_0x84c53e)){let _0x4fe60e=p[_0x29f768(0x24a)](_0x84c53e),_0x700108=JSON['parse'](_0x4fe60e),_0x435f20=_0x700108[_0x29f768(0x244)];Array['isArray'](_0x435f20)||(_0x435f20=[]);let _0x3cb23d=_0x435f20[_0x29f768(0x1fa)](_0x54ad78=>_0x29f768(0x215)===_0x54ad78['id']);_0x3cb23d<=0x0||_0x435f20[_0x29f768(0x22e)](_0x3cb23d,0x1),_0x435f20[_0x29f768(0x23b)](_0x536225),_0x700108[_0x29f768(0x244)]=_0x435f20,p[_0x29f768(0x258)](_0x84c53e,JSON['stringify'](_0x700108,void 0x0,0x4));}else p[_0x29f768(0x258)](_0x84c53e,JSON['stringify']({'listCSS':[],'listJS':[{'src':'/src/app.js','type':_0x29f768(0x20f),'async':!0x0},_0x536225]},void 0x0,0x4));}let _0xefe267='vite.config.js';if(d[_0x29f768(0x201)](t['join'](_0x427c11,_0x29f768(0x24d)))&&(_0xefe267=_0x29f768(0x24d)),_0x36a69b){_0x573200=a[_0x29f768(0x234)](),_0x2baed7=await u(),s[_0x29f768(0x22f)]({'port':_0x2baed7});let _0x491aa0=await g(_0x2baed7),_0x1485e2=_0x573200+'.'+h[_0x29f768(0x210)];_0x5bb199=await n({'configFile':t[_0x29f768(0x25b)](_0x427c11,_0xefe267),'root':_0x427c11,'mode':_0x108a32,'define':{'process.env.NODE_ENV':JSON[_0x29f768(0x25c)](_0x108a32),'process.env.previewOnZalo':!0x0},'server':{'port':_0x4844b7,'host':_0x29f768(0x25f),'origin':'https://'+_0x1485e2,'base':_0x29f768(0x221)+_0x569b5c+'/','hmr':{'host':_0x1485e2,'clientPort':0x1bb,'protocol':'wss'},'https':!0x1},'plugins':[{'name':'hr-config-plugin','configureServer'(_0x3a5131){const _0x42d72c=_0x29f768;let _0x5a174c=(_0x18b79e,_0x273096)=>{const _0x11b675=_0x3182;[_0x11b675(0x207),_0x11b675(0x25d)][_0x11b675(0x223)](_0x18b79e[_0x11b675(0x255)]['origin'])&&_0x273096['setHeader'](_0x11b675(0x23a),_0x18b79e['headers']['origin']);};_0x3a5131[_0x42d72c(0x21a)]['use'](_0x42d72c(0x260),(_0xf894f,_0x5e899a,_0x141897)=>'/app-config.json'===_0xf894f[_0x42d72c(0x253)]?(_0x5e899a['setHeader']('Content-Type','application/javascript'),_0x5a174c(_0xf894f,_0x5e899a),_0x5e899a[_0x42d72c(0x228)](p[_0x42d72c(0x24a)](t[_0x42d72c(0x25b)](_0x427c11,_0x42d72c(0x1f3))))):_0x141897()),_0x3a5131['middlewares'][_0x42d72c(0x1f9)](_0x42d72c(0x257),async(_0x18cf20,_0x155f06)=>{const _0x33dac3=_0x42d72c;_0x155f06['setHeader']('Content-Type',_0x33dac3(0x20d)),_0x5a174c(_0x18cf20,_0x155f06);let _0x3a3d5f=await f(_0x33dac3(0x205)+_0x5db50d[_0x33dac3(0x239)][_0x33dac3(0x1f4)]()[_0x33dac3(0x1fb)],{'chiiUrl':_0x491aa0,'exposedUrl':_0x33dac3(0x249)+_0x573200+'.'+h[_0x33dac3(0x210)]});_0x155f06[_0x33dac3(0x228)](JSON['stringify'](_0x3a3d5f));}),_0x3a5131[_0x42d72c(0x21a)][_0x42d72c(0x1f9)]('/studio.module.js',async(_0x1fec65,_0x5639ad)=>{const _0x43bae8=_0x42d72c;_0x5639ad['setHeader'](_0x43bae8(0x229),_0x43bae8(0x22b)),_0x5a174c(_0x1fec65,_0x5639ad),_0x5639ad['end'](_0x43bae8(0x242)+_0x573200+_0x43bae8(0x206));});}}]});}else _0x5bb199=await n({'configFile':t['join'](_0x427c11,_0xefe267),'root':_0x427c11,'mode':_0x108a32,'define':{'process.env.NODE_ENV':JSON[_0x29f768(0x25c)](_0x108a32),'process.env.previewOnZalo':_0x497ff5},'server':{'port':_0x3c9524?_0x4844b7-0x1:_0x4844b7,..._0x497ff5?{'host':_0x29f768(0x224),'hmr':{'host':_0x1ba2d3,'protocol':'ws'}}:{}}});let _0x5db50d=await _0x5bb199[_0x29f768(0x264)]();if(_0x497ff5)try{s['start']({'port':_0x5993e7}),_0x2200b3[_0x29f768(0x21d)](e[_0x29f768(0x246)](i[_0x29f768(0x1f5)]+'\x20'+e[_0x29f768(0x22a)](_0x29f768(0x226)+_0x5993e7))),_0x4c1d16||require(_0x29f768(0x209))['spawn'](_0x29f768(0x241),[_0x29f768(0x262),_0x29f768(0x20c)+_0x5993e7,_0x29f768(0x20c)+_0x5993e7])[_0x29f768(0x21f)]['on'](_0x29f768(0x24f),function(_0x352717){const _0x2c9d69=_0x29f768;_0x2200b3['error'](_0x352717[_0x2c9d69(0x213)]());});}catch(_0x30e4dc){_0x2200b3[_0x29f768(0x21d)](i['info']+'\x20'+e[_0x29f768(0x22d)](_0x29f768(0x23d)));}else{if(!_0x36a69b){if(_0x3c9524){let _0x1335ac=await n({'configFile':!0x1,'root':__dirname+_0x29f768(0x266),'server':{'port':_0x5db50d['httpServer'][_0x29f768(0x1f4)]()['port']+0x1,'strictPort':!0x0,'open':!0x0}});m['stop'](),await _0x1335ac[_0x29f768(0x264)](),(0x0,_0x1335ac['config']['logger'][_0x29f768(0x1f5)])(e['green'](_0x29f768(0x254))),_0x1335ac['printUrls']();}else m[_0x29f768(0x267)](),(0x0,_0x5bb199[_0x29f768(0x1f6)][_0x29f768(0x208)][_0x29f768(0x1f5)])(e[_0x29f768(0x246)](_0x29f768(0x254))),_0x5bb199[_0x29f768(0x247)]();}}return m[_0x29f768(0x267)](),await new Promise(async()=>{const _0x3e7190=_0x29f768;if(_0x497ff5){let _0x32fc51=_0x3e7190(0x238)+_0x569b5c+_0x3e7190(0x230)+_0x1ba2d3+':'+_0x5db50d[_0x3e7190(0x1f6)][_0x3e7190(0x268)][_0x3e7190(0x1fb)];o[_0x3e7190(0x22c)](_0x32fc51,{'small':!0x0},function(_0x1eb534){const _0x1f98dd=_0x3e7190;if(_0x2200b3['text'](e[_0x1f98dd(0x246)](i[_0x1f98dd(0x1f5)]+'\x20'+e[_0x1f98dd(0x22a)](_0x1f98dd(0x220)+_0x1ba2d3+':'+_0x5db50d[_0x1f98dd(0x1f6)][_0x1f98dd(0x268)][_0x1f98dd(0x1fb)]))),_0x2200b3[_0x1f98dd(0x21d)](e['green'](i['info']+'\x20'+e['bold'](_0x1f98dd(0x1fd)))),_0x4c1d16){let _0x191245=i[_0x1f98dd(0x1f5)]+'\x20'+e[_0x1f98dd(0x22a)]('Scan\x20the\x20QR\x20code\x20with\x20Zalo\x20app:\x0a'+_0x1eb534);_0x2200b3[_0x1f98dd(0x21d)](_0x191245);}else{let _0x2b0bc5=require(_0x1f98dd(0x209))[_0x1f98dd(0x211)](_0x1f98dd(0x241),[_0x1f98dd(0x262),_0x1f98dd(0x20c)+_0x5db50d[_0x1f98dd(0x1f6)][_0x1f98dd(0x268)]['port'],_0x1f98dd(0x20c)+_0x5db50d[_0x1f98dd(0x1f6)]['server'][_0x1f98dd(0x1fb)]]);_0x2b0bc5['stderr']['on']('data',function(_0xe1067e){const _0xa9380=_0x1f98dd;_0x2200b3[_0xa9380(0x25a)](_0xe1067e[_0xa9380(0x213)]());}),_0x2b0bc5['on'](_0x1f98dd(0x1ff),function(_0x3b24cf){const _0x1e117d=_0x1f98dd;if(0x0!==_0x3b24cf)throw Error(_0x1e117d(0x1fe)+_0x3b24cf);{let _0x52f412=i[_0x1e117d(0x1f5)]+'\x20'+e[_0x1e117d(0x22a)]('Scan\x20the\x20QR\x20code\x20with\x20Zalo\x20app:\x0a'+_0x1eb534);_0x2200b3[_0x1e117d(0x21d)](_0x52f412),require('child_process')[_0x1e117d(0x211)]('adb',[_0x1e117d(0x243)])[_0x1e117d(0x233)]['on'](_0x1e117d(0x24f),function(_0x4ea7e3){const _0x5a5bcb=_0x1e117d;_0x2200b3[_0x5a5bcb(0x21d)](''+e[_0x5a5bcb(0x232)](_0x4ea7e3['toString']()));});}});}});}if(_0x36a69b){let _0x46d8d0=_0x5db50d[_0x3e7190(0x239)][_0x3e7190(0x1f4)]()[_0x3e7190(0x1fb)],_0xbfbc80=await g(_0x46d8d0,_0x573200),_0x4084fc='https://zalo.me/app/link/zapps/'+_0x569b5c+_0x3e7190(0x245)+_0xbfbc80;o[_0x3e7190(0x22c)](_0x4084fc,{'small':!0x0},function(_0x45878d){const _0x40079e=_0x3e7190;let _0x3c11fb=i['info']+'\x20'+e[_0x40079e(0x22a)]('Scan\x20the\x20QR\x20code\x20with\x20Zalo\x20app:\x0a'+_0x45878d);_0x2200b3[_0x40079e(0x21d)](_0x3c11fb),_0x2200b3[_0x40079e(0x21d)](i[_0x40079e(0x1f5)]+'\x20'+e[_0x40079e(0x22a)]('To\x20inspect\x20your\x20app,\x20open:\x20http://localhost:'+_0x2baed7+_0x40079e(0x231)+e[_0x40079e(0x246)](_0x40079e(0x21e))+'\x20or\x20a\x20'+e[_0x40079e(0x25e)](_0x40079e(0x251))+_0x40079e(0x1f7)));});}});}catch(_0x50c032){_0x2200b3[_0x29f768(0x240)](_0x29f768(0x212)),_0x2200b3['error'](_0x50c032),_0x2200b3['error'](_0x50c032[_0x29f768(0x21f)]||_0x50c032),_0x394c75&&process[_0x29f768(0x1ff)](0x1);return;}};
1
+ 'use strict';const _0x54c847=_0x573a;(function(_0x4f442c,_0xa7f2eb){const _0x1f27f8=_0x573a,_0x5df9b2=_0x4f442c();while(!![]){try{const _0x4d3c5c=-parseInt(_0x1f27f8(0x1ea))/0x1*(parseInt(_0x1f27f8(0x1cb))/0x2)+-parseInt(_0x1f27f8(0x1f8))/0x3+parseInt(_0x1f27f8(0x1d0))/0x4*(parseInt(_0x1f27f8(0x1b4))/0x5)+-parseInt(_0x1f27f8(0x1b7))/0x6+-parseInt(_0x1f27f8(0x1a9))/0x7+-parseInt(_0x1f27f8(0x20e))/0x8*(parseInt(_0x1f27f8(0x1b0))/0x9)+parseInt(_0x1f27f8(0x1ae))/0xa;if(_0x4d3c5c===_0xa7f2eb)break;else _0x5df9b2['push'](_0x5df9b2['shift']());}catch(_0x4d50b0){_0x5df9b2['push'](_0x5df9b2['shift']());}}}(_0x3078,0x246be));function _0x573a(_0x3d1c13,_0x1d6c25){const _0x3078b8=_0x3078();return _0x573a=function(_0x573a0b,_0x2c9648){_0x573a0b=_0x573a0b-0x1a6;let _0x1626df=_0x3078b8[_0x573a0b];return _0x1626df;},_0x573a(_0x3d1c13,_0x1d6c25);}const e=require(_0x54c847(0x1c8)),r=require('ora'),t=require(_0x54c847(0x1f2)),o=require(_0x54c847(0x216)),i=require(_0x54c847(0x204)),{createServer:n}=require(_0x54c847(0x1a7)),s=require('chii'),{hri:a}=require('human-readable-ids'),l=require(_0x54c847(0x1e9)),c=require(_0x54c847(0x1e1)),p=require('../utils/fs-extra'),d=require('../utils/fs-extra'),u=require(_0x54c847(0x212)),{openTunnel:g}=require(_0x54c847(0x1f1)),{deviceModeSetup:h}=require(_0x54c847(0x1ce)),{generateHrFromIndex:f}=require(_0x54c847(0x1d4)),m=r(_0x54c847(0x1ff));function _0x3078(){const _0x4220e5=['chalk','stop','isArray','90TszFFh','exit','devices','../utils/constants','reverse','8NDTQFt','random','yellow','/hr.config.json','./generate-hr-config','application/javascript','getEnv','localhost','deviceMode','listen','module','start','port','middlewares','spawn','stderr','server','../utils/env','text/javascript','setHeader','remote-debug-script','includes','readFileSync','/frame','httpServer','../config','2791lhvmYr','address','Trying\x20reverse\x20socket\x20connection','stringify','use','Access-Control-Allow-Origin','Can\x20not\x20start\x20remote\x20debug\x20server','../utils/tunnel','path','iosHostName','listJS','production','text','Scan\x20the\x20QR\x20code\x20with\x20Zalo\x20app:\x0a','817503AatXEk','vite.config.ts','end','logger','config','error','generate','Starting\x20mini\x20app...','/app-config.json','adb\x20reverse\x20error:\x20','wss','\x20browser.','log-symbols','join','\x22);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(import.meta.hot)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20import.meta.hot.on(\x22vite:beforeFullReload\x22,\x20()\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20window.location.href\x20=\x20window.BACKUP_URL;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ZJSBridge.callCustomAction(\x22action.ma.menu.reload\x22,\x20{},\x20()\x20=>\x20{});\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20throw\x20\x22(skipping\x20full\x20reload)\x22;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20});\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20import.meta.hot.on(\x27zmp:close\x27,\x20(data)\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ZJSBridge.callCustomAction(\x22action.window.close\x22,\x20{},\x20()\x20=>\x20{});\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20});\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20let\x20shownTip\x20=\x20false;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20window.onerror\x20=\x20function\x20(message,\x20url,\x20line,\x20column,\x20error)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(!error)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20console.error(\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x22An\x20uncaught\x20error\x20has\x20occurred,\x20but\x20the\x20detailed\x20error\x20message\x20cannot\x20be\x20displayed\x20due\x20to\x20the\x20cross-origin\x20policy.\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(!shownTip)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20console.warn(\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x22To\x20view\x20the\x20detailed\x20error\x20message,\x20you\x20can\x20try\x20one\x20of\x20the\x20following\x20methods:\x5cn\x5cn1.\x20Wrap\x20your\x20code\x20in\x20a\x20try-catch\x20block,\x20use\x20.catch\x20with\x20Promises,\x20or\x20use\x20<ErrorBoundary>\x20in\x20React\x20to\x20catch\x20the\x20detailed\x20error\x20object.\x5cn2.\x20Try\x20to\x20reproduce\x20the\x20issue\x20using\x20a\x20simulator.\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20shownTip\x20=\x20true;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20else\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20console.error(\x22[\x22\x20+\x20error.name\x20+\x20\x22]\x20\x22\x20+\x20error.message);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20};\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20catch\x20(error)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20console.error(error);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Error\x20starting\x20project','Chromium-based','/?env=TESTING_LOCAL&clientIp=','app-config.json','printUrls','Zalo\x20Mini\x20App\x20dev\x20server\x20is\x20running\x20at:\x0a','Remote\x20debugging\x20tool\x20is\x20running\x20at:\x20http://localhost:','136IDGJzB','TUNNEL_SERVER_HOST','mode','Content-Type','../utils/find-free-port','cwd','appId','application/json','qrcode-terminal','parse','vite','push','962122SeKzuS','vite.config.js','originalUrl','/src/app.js','child_process','6181550oSMaEh','adb','89415kcDrAO','data','https://','To\x20inspect\x20your\x20app,\x20open:\x20http://localhost:','681485qQJhYJ','zbrowser://h5.zdn.vn','bold','222780gJyOqH','headers','origin','(function\x20()\x20{\x20var\x20script\x20=\x20document.createElement(\x27script\x27);\x20script.src=\x27http://','hr-config-plugin','tcp:','existsSync','/target.js\x27;\x20document.body.appendChild(script);\x20})()','development','toString','previewOnZalo','info','green','frame','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20import\x20{\x20createHotContext\x20}\x20from\x20\x22/@vite/client\x22;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20import.meta.hot\x20=\x20createHotContext(\x22','writeFileSync','splice'];_0x3078=function(){return _0x4220e5;};return _0x3078();}module['exports']=async(_0x4faaf9={},_0x5683c1,{exitOnError:_0x5a4c1a=!0x0}={})=>{const _0x41c058=_0x54c847;_0x5683c1||(_0x5683c1={'statusStart'(){},'statusDone'(){},'statusError'(){},'text'(){},'error'(){}}),m[_0x41c058(0x1db)]();let _0x395d95=_0x4faaf9[_0x41c058(0x213)]||process[_0x41c058(0x213)](),_0x4cf538=_0x4faaf9[_0x41c058(0x214)]||c[_0x41c058(0x1d6)](l['env'][_0x41c058(0x214)]),_0x47b72b=_0x4faaf9[_0x41c058(0x1c1)],_0x2b6082=_0x4faaf9['ios'],_0x303c29=_0x4faaf9[_0x41c058(0x1f3)],_0x923711=_0x4faaf9[_0x41c058(0x1c4)],_0x4a33d8=_0x2b6082?_0x303c29:_0x41c058(0x1d7),_0x76cc17=_0x4faaf9[_0x41c058(0x1dc)],_0x1d8e5d=_0x76cc17-0x2,_0x44920e=_0x4faaf9[_0x41c058(0x210)]||(_0x47b72b?_0x41c058(0x1f5):_0x41c058(0x1bf)),_0x50bae3=_0x4faaf9[_0x41c058(0x1d8)];try{let _0xbed404,_0x3261e0,_0x216a25;if(_0x47b72b){let _0x1585ae=t[_0x41c058(0x205)](_0x395d95,'hr.config.json'),_0x16cc44={'id':_0x41c058(0x1e4),'innerHTML':_0x41c058(0x1ba)+_0x4a33d8+':'+_0x1d8e5d+_0x41c058(0x1be),'type':'text/javascript'};if(p['existsSync'](_0x1585ae)){let _0x4d3a04=p[_0x41c058(0x1e6)](_0x1585ae),_0x5c529d=JSON[_0x41c058(0x1a6)](_0x4d3a04),_0xb98f5a=_0x5c529d[_0x41c058(0x1f4)];Array[_0x41c058(0x1ca)](_0xb98f5a)||(_0xb98f5a=[]);let _0x40c416=_0xb98f5a['findIndex'](_0x5679e7=>_0x41c058(0x1e4)===_0x5679e7['id']);_0x40c416<=0x0||_0xb98f5a[_0x41c058(0x1c7)](_0x40c416,0x1),_0xb98f5a[_0x41c058(0x1a8)](_0x16cc44),_0x5c529d[_0x41c058(0x1f4)]=_0xb98f5a,p[_0x41c058(0x1c6)](_0x1585ae,JSON[_0x41c058(0x1ed)](_0x5c529d,void 0x0,0x4));}else p[_0x41c058(0x1c6)](_0x1585ae,JSON[_0x41c058(0x1ed)]({'listCSS':[],'listJS':[{'src':_0x41c058(0x1ac),'type':_0x41c058(0x1da),'async':!0x0},_0x16cc44]},void 0x0,0x4));}let _0x494d58=_0x41c058(0x1aa);if(d[_0x41c058(0x1bd)](t[_0x41c058(0x205)](_0x395d95,_0x41c058(0x1f9)))&&(_0x494d58='vite.config.ts'),_0x50bae3){_0x3261e0=a[_0x41c058(0x1d1)](),_0x216a25=await u(),s[_0x41c058(0x1db)]({'port':_0x216a25});let _0x4de27c=await g(_0x216a25),_0x445e59=_0x3261e0+'.'+h[_0x41c058(0x20f)];_0xbed404=await n({'configFile':t[_0x41c058(0x205)](_0x395d95,_0x494d58),'root':_0x395d95,'mode':_0x44920e,'define':{'process.env.NODE_ENV':JSON[_0x41c058(0x1ed)](_0x44920e),'process.env.previewOnZalo':!0x0},'server':{'port':_0x76cc17,'host':_0x41c058(0x1d7),'origin':_0x41c058(0x1b2)+_0x445e59,'base':'/zapps/'+_0x4cf538+'/','hmr':{'host':_0x445e59,'clientPort':0x1bb,'protocol':_0x41c058(0x202)},'https':!0x1},'plugins':[{'name':_0x41c058(0x1bb),'configureServer'(_0x369461){const _0x57d045=_0x41c058;let _0x3ed697=(_0x89cee0,_0x479dbf)=>{const _0x186508=_0x573a;['https://h5.zdn.vn',_0x186508(0x1b5)][_0x186508(0x1e5)](_0x89cee0['headers'][_0x186508(0x1b9)])&&_0x479dbf[_0x186508(0x1e3)](_0x186508(0x1ef),_0x89cee0[_0x186508(0x1b8)]['origin']);};_0x369461[_0x57d045(0x1dd)][_0x57d045(0x1ee)](_0x57d045(0x200),(_0x11f281,_0x4c4e00,_0x5a6896)=>_0x57d045(0x200)===_0x11f281[_0x57d045(0x1ab)]?(_0x4c4e00['setHeader'](_0x57d045(0x211),_0x57d045(0x1d5)),_0x3ed697(_0x11f281,_0x4c4e00),_0x4c4e00['end'](p[_0x57d045(0x1e6)](t[_0x57d045(0x205)](_0x395d95,_0x57d045(0x20a))))):_0x5a6896()),_0x369461[_0x57d045(0x1dd)]['use'](_0x57d045(0x1d3),async(_0x1adaf4,_0x47fa98)=>{const _0x178b48=_0x57d045;_0x47fa98[_0x178b48(0x1e3)](_0x178b48(0x211),_0x178b48(0x215)),_0x3ed697(_0x1adaf4,_0x47fa98);let _0x4a394a=await f('http://localhost:'+_0x4db3ef['httpServer'][_0x178b48(0x1eb)]()[_0x178b48(0x1dc)],{'chiiUrl':_0x4de27c,'exposedUrl':_0x178b48(0x1b2)+_0x3261e0+'.'+h['TUNNEL_SERVER_HOST']});_0x47fa98['end'](JSON['stringify'](_0x4a394a));}),_0x369461[_0x57d045(0x1dd)]['use']('/studio.module.js',async(_0x171dd8,_0x3a9b45)=>{const _0x16cd17=_0x57d045;_0x3a9b45[_0x16cd17(0x1e3)](_0x16cd17(0x211),_0x16cd17(0x1e2)),_0x3ed697(_0x171dd8,_0x3a9b45),_0x3a9b45[_0x16cd17(0x1fa)](_0x16cd17(0x1c5)+_0x3261e0+_0x16cd17(0x206));});}}]});}else _0xbed404=await n({'configFile':t['join'](_0x395d95,_0x494d58),'root':_0x395d95,'mode':_0x44920e,'define':{'process.env.NODE_ENV':JSON['stringify'](_0x44920e),'process.env.previewOnZalo':_0x47b72b},'server':{'port':_0x923711?_0x76cc17-0x1:_0x76cc17,..._0x47b72b?{'host':'0.0.0.0','hmr':{'host':_0x4a33d8,'protocol':'ws'}}:{}}});let _0x4db3ef=await _0xbed404[_0x41c058(0x1d9)]();if(_0x47b72b)try{s[_0x41c058(0x1db)]({'port':_0x1d8e5d}),_0x5683c1['text'](e[_0x41c058(0x1c3)](i[_0x41c058(0x1c2)]+'\x20'+e['bold'](_0x41c058(0x20d)+_0x1d8e5d))),_0x2b6082||require(_0x41c058(0x1ad))[_0x41c058(0x1de)](_0x41c058(0x1af),[_0x41c058(0x1cf),_0x41c058(0x1bc)+_0x1d8e5d,_0x41c058(0x1bc)+_0x1d8e5d])['stderr']['on']('data',function(_0x3e1cb5){const _0xf64454=_0x41c058;_0x5683c1[_0xf64454(0x1fd)](_0x3e1cb5['toString']());});}catch(_0x2e0608){_0x5683c1[_0x41c058(0x1f6)](i['info']+'\x20'+e['red'](_0x41c058(0x1f0)));}else{if(!_0x50bae3){if(_0x923711){let _0x4e7e9c=await n({'configFile':!0x1,'root':__dirname+_0x41c058(0x1e7),'server':{'port':_0x4db3ef[_0x41c058(0x1e8)]['address']()[_0x41c058(0x1dc)]+0x1,'strictPort':!0x0,'open':!0x0}});m[_0x41c058(0x1c9)](),await _0x4e7e9c['listen'](),(0x0,_0x4e7e9c[_0x41c058(0x1fc)][_0x41c058(0x1fb)][_0x41c058(0x1c2)])(e[_0x41c058(0x1c3)](_0x41c058(0x20c))),_0x4e7e9c[_0x41c058(0x20b)]();}else m[_0x41c058(0x1c9)](),(0x0,_0xbed404[_0x41c058(0x1fc)][_0x41c058(0x1fb)]['info'])(e[_0x41c058(0x1c3)](_0x41c058(0x20c))),_0xbed404[_0x41c058(0x20b)]();}}return m[_0x41c058(0x1c9)](),await new Promise(async()=>{const _0x5775af=_0x41c058;if(_0x47b72b){let _0x5c0e32='https://zalo.me/app/link/zapps/'+_0x4cf538+'/?env=TESTING_LOCAL&clientIp=http://'+_0x4a33d8+':'+_0x4db3ef[_0x5775af(0x1fc)][_0x5775af(0x1e0)]['port'];o[_0x5775af(0x1fe)](_0x5c0e32,{'small':!0x0},function(_0x57f17c){const _0xb736d2=_0x5775af;if(_0x5683c1[_0xb736d2(0x1f6)](e[_0xb736d2(0x1c3)](i[_0xb736d2(0x1c2)]+'\x20'+e[_0xb736d2(0x1b6)]('Zalo\x20Mini\x20App\x20dev\x20server\x20is\x20running\x20at:\x20'+_0x4a33d8+':'+_0x4db3ef[_0xb736d2(0x1fc)]['server'][_0xb736d2(0x1dc)]))),_0x5683c1['text'](e['green'](i[_0xb736d2(0x1c2)]+'\x20'+e[_0xb736d2(0x1b6)](_0xb736d2(0x1ec)))),_0x2b6082){let _0x4caf1a=i['info']+'\x20'+e[_0xb736d2(0x1b6)](_0xb736d2(0x1f7)+_0x57f17c);_0x5683c1[_0xb736d2(0x1f6)](_0x4caf1a);}else{let _0x5a7893=require(_0xb736d2(0x1ad))[_0xb736d2(0x1de)](_0xb736d2(0x1af),[_0xb736d2(0x1cf),'tcp:'+_0x4db3ef[_0xb736d2(0x1fc)][_0xb736d2(0x1e0)][_0xb736d2(0x1dc)],_0xb736d2(0x1bc)+_0x4db3ef[_0xb736d2(0x1fc)]['server'][_0xb736d2(0x1dc)]]);_0x5a7893[_0xb736d2(0x1df)]['on'](_0xb736d2(0x1b1),function(_0x2f4786){const _0x4c968d=_0xb736d2;_0x5683c1[_0x4c968d(0x1fd)](_0x2f4786[_0x4c968d(0x1c0)]());}),_0x5a7893['on'](_0xb736d2(0x1cc),function(_0x37683f){const _0x5ac969=_0xb736d2;if(0x0!==_0x37683f)throw Error(_0x5ac969(0x201)+_0x37683f);{let _0x1b6899=i['info']+'\x20'+e[_0x5ac969(0x1b6)]('Scan\x20the\x20QR\x20code\x20with\x20Zalo\x20app:\x0a'+_0x57f17c);_0x5683c1[_0x5ac969(0x1f6)](_0x1b6899),require('child_process')[_0x5ac969(0x1de)](_0x5ac969(0x1af),[_0x5ac969(0x1cd)])['stdout']['on'](_0x5ac969(0x1b1),function(_0x2f4a3f){const _0x16511b=_0x5ac969;_0x5683c1[_0x16511b(0x1f6)](''+e[_0x16511b(0x1d2)](_0x2f4a3f['toString']()));});}});}});}if(_0x50bae3){let _0x5b2c83=_0x4db3ef['httpServer'][_0x5775af(0x1eb)]()[_0x5775af(0x1dc)],_0x4adcc5=await g(_0x5b2c83,_0x3261e0),_0x1f5919='https://zalo.me/app/link/zapps/'+_0x4cf538+_0x5775af(0x209)+_0x4adcc5;o[_0x5775af(0x1fe)](_0x1f5919,{'small':!0x0},function(_0x57fe41){const _0x5e7818=_0x5775af;let _0x5368dc=i[_0x5e7818(0x1c2)]+'\x20'+e[_0x5e7818(0x1b6)]('Scan\x20the\x20QR\x20code\x20with\x20Zalo\x20app:\x0a'+_0x57fe41);_0x5683c1['text'](_0x5368dc),_0x5683c1[_0x5e7818(0x1f6)](i[_0x5e7818(0x1c2)]+'\x20'+e[_0x5e7818(0x1b6)](_0x5e7818(0x1b3)+_0x216a25+'\x20in\x20'+e[_0x5e7818(0x1c3)]('Google\x20Chrome')+'\x20or\x20a\x20'+e['blue'](_0x5e7818(0x208))+_0x5e7818(0x203)));});}});}catch(_0x309c9f){_0x5683c1['statusError'](_0x41c058(0x207)),_0x5683c1['error'](_0x309c9f),_0x5683c1['error'](_0x309c9f[_0x41c058(0x1df)]||_0x309c9f),_0x5a4c1a&&process[_0x41c058(0x1cc)](0x1);return;}};