@sava-info-systems/api-maker-with-extensions 1.20.1 → 1.20.2
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x24269f,_0x160206){const _0x208cd8=a0_0x29a0,_0x15a91e=_0x24269f();while(!![]){try{const _0x3709a5=parseInt(_0x208cd8(0x1ae))/0x1*(parseInt(_0x208cd8(0x132))/0x2)+parseInt(_0x208cd8(0xe3))/0x3*(parseInt(_0x208cd8(0x10b))/0x4)+parseInt(_0x208cd8(0x16e))/0x5+-parseInt(_0x208cd8(0x11d))/0x6+parseInt(_0x208cd8(0x152))/0x7+-parseInt(_0x208cd8(0x17b))/0x8*(-parseInt(_0x208cd8(0x13a))/0x9)+-parseInt(_0x208cd8(0x15f))/0xa;if(_0x3709a5===_0x160206)break;else _0x15a91e['push'](_0x15a91e['shift']());}catch(_0x16928a){_0x15a91e['push'](_0x15a91e['shift']());}}}(a0_0x134b,0xb2f3e),((()=>{'use strict';var _0x425fa6={0x3(_0x550ba9){const _0x59955d=a0_0x29a0;_0x550ba9[_0x59955d(0xf5)]=require('path');},0x59(_0x51c84c){const _0x3c188d=a0_0x29a0;_0x51c84c[_0x3c188d(0xf5)]=require(_0x3c188d(0x17f));},0xe7(_0x4bb560){const _0x10f997=a0_0x29a0;_0x4bb560[_0x10f997(0xf5)]=require(_0x10f997(0x1fb));},0x13d(_0x53370a){const _0x513aae=a0_0x29a0;_0x53370a[_0x513aae(0xf5)]=require(_0x513aae(0x10c));},0x1dc(_0x35d064,_0x19e879,_0x50e4ab){const _0x4ae336=a0_0x29a0;_0x19e879['vg']=_0x19e879['xu']=_0x19e879['kR']=_0x19e879['OW']=void 0x0;const _0x3d8a8=_0x50e4ab(0x380),_0x57dd03=_0x50e4ab(0x3),_0x3013ba=_0x50e4ab(0x13d);var _0x2fab8b,_0x1587be,_0x14ebb3,_0x1d71ce,_0x1c7443,_0xbde6ab;new class{constructor(){const _0xe7ae4a=a0_0x29a0;this['EL']=!0x1,this[_0xe7ae4a(0xcb)]=_0x57dd03['resolve'](''),this['projectDirectory']='',this['C']={'localClientPath':_0xe7ae4a(0x149),'src':_0xe7ae4a(0x1b5),'repo':'repo','types':'types','amTypes':'am-types','versions':_0xe7ae4a(0x1d8),'apis':'apis','listeners':_0xe7ae4a(0x100),'postHooks':'post-hooks','preHooks':'pre-hooks','dbInterfacesFile':_0xe7ae4a(0x1ad),'UtilityClassesReadF':_0xe7ae4a(0xe6),'CustomApiReadF':'Custom\x20APIs','SchedulersReadF':'Schedulers','WebSocketEventsReadF':_0xe7ae4a(0xd1),'SchemaReadF':_0xe7ae4a(0x1b8),'DBMigrationsReadF':_0xe7ae4a(0xcc),'ProcessInitializersReadF':_0xe7ae4a(0x200),'ProcessI18NReadF':'i18ns','DBMastersReadF':'DB\x20masters','DBMasterStylesReadF':_0xe7ae4a(0x16f),'DBMasterUtilsReadF':'DB\x20master\x20utils','TestCasesReadF':_0xe7ae4a(0x1f4),'ThirdPartyApiReadF':'Third\x20party\x20APIs','EventsReadF':_0xe7ae4a(0x218),'InstanceApiHooksReadF':_0xe7ae4a(0x21d),'SystemApiHooksReadF':_0xe7ae4a(0x10f),'CollectionHooksReadF':_0xe7ae4a(0x10e),'DatabaseHooksReadF':_0xe7ae4a(0x119),'InstanceHooksReadF':_0xe7ae4a(0xed),'CustomApisWriteF':_0xe7ae4a(0x188),'SchedulersWriteF':_0xe7ae4a(0x1c0),'WebSocketEventsWriteF':_0xe7ae4a(0x126),'SchemaWriteF':_0xe7ae4a(0x121),'DBMigrationsWriteF':_0xe7ae4a(0x176),'ProcessInitializersWriteF':'process-initializers','ProcessI18NWriteF':'i18ns','DBMastersWriteF':_0xe7ae4a(0x212),'DBMasterStylesWriteF':'ui-maker-styles','DBMasterUtilsWriteF':'ui-maker-utils','TestCasesWriteF':_0xe7ae4a(0x166),'ThirdPartyApiWriteF':_0xe7ae4a(0x1ba),'EventsWriteF':'events','InstanceApiHooksWriteF':'instance-api-hooks','SystemApiHooksWriteF':_0xe7ae4a(0x175),'CollectionHooksWriteF':_0xe7ae4a(0x17e),'DatabaseHooksWriteF':_0xe7ae4a(0x1d6),'InstanceHooksWriteF':_0xe7ae4a(0x211)},this['skipWatchInputs']=!0x1,this[_0xe7ae4a(0x1d3)]={},this['nodeModulesInstalled']=!0x1,this['orangeStart']=_0xe7ae4a(0x1e3),this[_0xe7ae4a(0x210)]=_0xe7ae4a(0x1f0),this[_0xe7ae4a(0xb8)]=_0xe7ae4a(0x189),this[_0xe7ae4a(0xfe)]=0x0,this[_0xe7ae4a(0x138)]=this[_0xe7ae4a(0x12e)](this[_0xe7ae4a(0x202)],0x1f4);}async[_0x4ae336(0x1bc)](){const _0xb6c183=_0x4ae336;this[_0xb6c183(0xd7)](),this[_0xb6c183(0x167)](),this[_0xb6c183(0x1e4)](this['C']['localClientPath']+_0xb6c183(0x17a))||(this[_0xb6c183(0x1ac)](),this['shutdownAndExit'](0x1)[_0xb6c183(0xbf)]()),this['config']=require(this['C'][_0xb6c183(0x1ef)])(),await this[_0xb6c183(0x147)](),this[_0xb6c183(0x13c)](_0x57dd03['join'](this[_0xb6c183(0xcb)],this['C']['src'])),await this[_0xb6c183(0x14a)](),await this['connectToServerViaWS']();}[_0x4ae336(0x167)](){const _0x30a597=_0x4ae336,_0x20ca12=process['version'];parseInt(_0x20ca12[_0x30a597(0xcf)]('.')[0x0][_0x30a597(0x1a3)]('v',''),0xa)<0x16&&(console['error'](this[_0x30a597(0x1a9)]+'Node.js\x2022+\x20is\x20required.\x20Current\x20version:\x20'+_0x20ca12+this[_0x30a597(0xb8)]),this[_0x30a597(0x205)](0x1)[_0x30a597(0xbf)]());}async[_0x4ae336(0x147)](){const _0x3adfba=_0x4ae336;console['log'](this[_0x3adfba(0x1a9)]),console[_0x3adfba(0x21b)]('——————————————————————————————————————\x20Note\x20——————————————————————————————————————'),console[_0x3adfba(0x21b)](_0x3adfba(0x1ce)),console[_0x3adfba(0x21b)](_0x3adfba(0x123)+this[_0x3adfba(0xcb)]),console[_0x3adfba(0x21b)]('——————————————————————————————————————————————————————————————————————————————————'),console[_0x3adfba(0x21b)](this[_0x3adfba(0xb8)]),console[_0x3adfba(0x21b)]('');}[_0x4ae336(0x1ac)](){const _0x58084b=_0x4ae336;console[_0x58084b(0x21b)](_0x58084b(0x1e3)),console[_0x58084b(0x21b)](_0x58084b(0x197)+this['C'][_0x58084b(0x1ef)]+_0x58084b(0x17a)),console['log'](_0x58084b(0x189)),console[_0x58084b(0x21b)]('');}async[_0x4ae336(0x14a)](){const _0x51bdaf=_0x4ae336,_0x8f5de1=_0x57dd03['basename'](this['appRoot']),_0x1169a7=_0x57dd03[_0x51bdaf(0x15e)](this[_0x51bdaf(0xcb)],'..',_0x8f5de1+'-lc');this['projectDirectory']=_0x1169a7,_0x3d8a8[_0x51bdaf(0x171)](_0x1169a7,{'recursive':!0x0,'force':!0x0}),await this[_0x51bdaf(0x19e)](_0x1169a7,{'recursive':!0x0});}async[_0x4ae336(0x216)](_0x41ee0d){const _0x41f7b5=_0x4ae336;await this[_0x41f7b5(0x14a)](),this[_0x41f7b5(0x1eb)](_0x57dd03[_0x41f7b5(0x15e)](this[_0x41f7b5(0xd2)],this['C'][_0x41f7b5(0x1b5)]),{'recursive':!0x0}),_0x3d8a8['cpSync'](_0x57dd03[_0x41f7b5(0x15e)](this[_0x41f7b5(0xcb)],_0x41f7b5(0x1bf)),_0x57dd03[_0x41f7b5(0x15e)](this[_0x41f7b5(0xd2)],_0x41f7b5(0x1bf))),_0x3d8a8[_0x41f7b5(0x1b9)](_0x57dd03['join'](this[_0x41f7b5(0xcb)],_0x41f7b5(0x170)),_0x57dd03[_0x41f7b5(0x15e)](this[_0x41f7b5(0xd2)],_0x41f7b5(0x170)));const _0x4908aa=_0x57dd03[_0x41f7b5(0x15e)](this[_0x41f7b5(0xcb)],_0x41f7b5(0x21a)),_0x105bae=JSON[_0x41f7b5(0xc6)](await this[_0x41f7b5(0x198)](_0x4908aa,{'encoding':_0x41f7b5(0x1d1)}));_0x105bae[_0x41f7b5(0x156)][_0x41f7b5(0x16b)]=_0x41f7b5(0x1e8),_0x105bae[_0x41f7b5(0x156)][_0x41f7b5(0x109)]['*'][_0x41f7b5(0x1f9)]('*'),await this[_0x41f7b5(0x15c)](_0x57dd03[_0x41f7b5(0x15e)](this[_0x41f7b5(0xd2)],_0x41f7b5(0x21a)),JSON[_0x41f7b5(0x10d)](_0x105bae,null,0x4),{'encoding':_0x41f7b5(0x1d1)}),await _0x3d8a8[_0x41f7b5(0xf6)]['cp'](_0x57dd03[_0x41f7b5(0x15e)](this[_0x41f7b5(0xcb)],this['C'][_0x41f7b5(0x1f1)]),_0x57dd03[_0x41f7b5(0x15e)](this['projectDirectory'],this['C'][_0x41f7b5(0x1b5)],this['C'][_0x41f7b5(0x1f1)]),{'recursive':!0x0}),await _0x3d8a8[_0x41f7b5(0xf6)]['cp'](_0x57dd03[_0x41f7b5(0x15e)](this[_0x41f7b5(0xcb)],this['C'][_0x41f7b5(0x1b5)],this[_0x41f7b5(0x102)][_0x41f7b5(0x14e)],this['C']['types'],this['C'][_0x41f7b5(0x1fd)]),_0x57dd03[_0x41f7b5(0x15e)](this['projectDirectory'],this['C'][_0x41f7b5(0x1b5)],this['C'][_0x41f7b5(0x1f1)],this['C'][_0x41f7b5(0x1fd)]),{'recursive':!0x0}),await this[_0x41f7b5(0x213)](),await this[_0x41f7b5(0x118)](),await this[_0x41f7b5(0xe4)](),await this[_0x41f7b5(0x1b6)](),await this[_0x41f7b5(0x15a)](),await this['copyProcessInitializersToAnotherDir'](),await this[_0x41f7b5(0x18a)](),await this[_0x41f7b5(0xc2)](),await this[_0x41f7b5(0xea)](),await this[_0x41f7b5(0xf4)](),await this['copyInstanceApiHooksToAnotherDir'](),await this[_0x41f7b5(0x13f)](),await this[_0x41f7b5(0x12c)](),await this[_0x41f7b5(0xbb)](),await this[_0x41f7b5(0xb4)](),await this['copyInstanceHooksToAnotherDir'](),await this[_0x41f7b5(0x1bb)](),await this[_0x41f7b5(0x1d4)](),await this[_0x41f7b5(0xc1)](),_0x41ee0d&&(console[_0x41f7b5(0x21b)](_0x41f7b5(0xc0)),await this[_0x41f7b5(0x173)](_0x41f7b5(0x19b),[_0x41f7b5(0x148),_0x41f7b5(0xc9)]),console[_0x41f7b5(0x21b)](_0x41f7b5(0x111)),this[_0x41f7b5(0x215)]=!0x0);try{_0x3d8a8[_0x41f7b5(0x159)](_0x57dd03[_0x41f7b5(0x15e)](this[_0x41f7b5(0xcb)],_0x41f7b5(0x110)),_0x57dd03['join'](this[_0x41f7b5(0xd2)],_0x41f7b5(0x110)),_0x41f7b5(0x155));}catch(_0xb18fea){console[_0x41f7b5(0x21b)]('Please\x20run\x20using\x20administrator\x20privileges.'),console['log'](_0xb18fea),await this[_0x41f7b5(0x205)](0x1);}}async['installRequiredPackages'](){const _0x1ccb45=_0x4ae336;console[_0x1ccb45(0x21b)](_0x1ccb45(0x19d));try{_0x3d8a8['unlinkSync'](_0x57dd03[_0x1ccb45(0x15e)](this[_0x1ccb45(0xcb)],_0x1ccb45(0x1a6)));}catch(_0x17341c){}await this[_0x1ccb45(0x173)](_0x1ccb45(0x19b),['install',_0x1ccb45(0x13b),_0x1ccb45(0x182),'js-yaml@4.1.0']),this[_0x1ccb45(0x215)]=!0x0,console['log'](_0x1ccb45(0x106));}async[_0x4ae336(0x213)](){const _0xfd3258=_0x4ae336,_0x2f115f=this['C'][_0xfd3258(0x184)],_0x5c074b=_0x57dd03[_0xfd3258(0x15e)](this[_0xfd3258(0xcb)],this['C'][_0xfd3258(0x1b5)],this[_0xfd3258(0x102)][_0xfd3258(0x14e)],_0x2f115f),_0x32f1dd=await this[_0xfd3258(0x1a8)](_0x5c074b,null);for(const _0x465948 of _0x32f1dd){const _0x3ca8f5=_0x57dd03[_0xfd3258(0x15e)](_0x5c074b,_0x465948,_0x465948+_0xfd3258(0x120));if(!this[_0xfd3258(0x1e4)](_0x3ca8f5))continue;const _0x2ae2ad=await this[_0xfd3258(0x198)](_0x3ca8f5,{'encoding':_0xfd3258(0x1d1)}),_0x255b0f=await this[_0xfd3258(0x11c)](_0x2ae2ad);for(const _0x7e8862 of _0x255b0f[_0xfd3258(0x1d8)]||[])if(!0x0===_0x7e8862['isActive']){const _0x183edf=_0x57dd03[_0xfd3258(0x15e)](_0x5c074b,_0x465948,this['C']['versions'],_0x7e8862[_0xfd3258(0xe7)],_0x7e8862['name']+'.ts'),_0x206826=_0x57dd03['join'](this[_0xfd3258(0xd2)],this['C'][_0xfd3258(0x1b5)],_0x255b0f['folderPath'],_0x255b0f[_0xfd3258(0xc3)]+_0xfd3258(0xf0));await this[_0xfd3258(0x19e)](_0x57dd03['dirname'](_0x206826),{'recursive':!0x0}),await this['fsLink'](_0x183edf,_0x206826);}}}async[_0x4ae336(0x118)](){const _0xdb1514=_0x4ae336,_0x58a4ad=this['C'][_0xdb1514(0xfb)],_0x18a654=this['C'][_0xdb1514(0x133)],_0x4571ee=_0x57dd03[_0xdb1514(0x15e)](this[_0xdb1514(0xcb)],this['C']['src'],this[_0xdb1514(0x102)][_0xdb1514(0x14e)],_0x58a4ad),_0x5b93d9=await this[_0xdb1514(0x1a8)](_0x4571ee,null);for(const _0x271cba of _0x5b93d9){const _0x5141ce=_0x57dd03[_0xdb1514(0x15e)](_0x4571ee,_0x271cba,_0x271cba+_0xdb1514(0x120));if(!this[_0xdb1514(0x1e4)](_0x5141ce))continue;const _0x1ec0c5=await this['fsReadFile'](_0x5141ce,{'encoding':_0xdb1514(0x1d1)}),_0x17440e=await this[_0xdb1514(0x11c)](_0x1ec0c5);for(const _0x25cee0 of _0x17440e[_0xdb1514(0x1d8)]||[])if(!0x0===_0x25cee0[_0xdb1514(0x1b0)]){const _0x226916=_0x57dd03[_0xdb1514(0x15e)](_0x4571ee,_0x271cba,this['C'][_0xdb1514(0x1d8)],_0x25cee0[_0xdb1514(0xe7)]),_0x3367c4=_0x57dd03[_0xdb1514(0x15e)](_0x226916,_0x25cee0['name']+_0xdb1514(0xf0)),_0x48dd3d=_0x57dd03[_0xdb1514(0x15e)](this['projectDirectory'],this['C'][_0xdb1514(0x1b5)],_0x18a654,_0x17440e[_0xdb1514(0xd3)],_0x17440e[_0xdb1514(0xc3)]+_0xdb1514(0xf0));await this[_0xdb1514(0x19e)](_0x57dd03[_0xdb1514(0xf2)](_0x48dd3d),{'recursive':!0x0}),await this[_0xdb1514(0xdd)](_0x3367c4,_0x48dd3d);const _0xaf28ff=_0x57dd03[_0xdb1514(0x15e)](_0x4571ee,_0x271cba,_0x271cba+_0xdb1514(0x21c)),_0x5c74f9=_0x57dd03[_0xdb1514(0x15e)](this['projectDirectory'],this['C']['src'],_0x18a654,_0x17440e['path'],_0x17440e['name']+_0xdb1514(0x21c));await this[_0xdb1514(0xdd)](_0xaf28ff,_0x5c74f9);for(const _0x4785a9 of _0x25cee0['preHooks']){const _0x345052=_0x57dd03[_0xdb1514(0x15e)](_0x226916,this['C'][_0xdb1514(0x136)],_0x4785a9[_0xdb1514(0xc3)]+_0xdb1514(0xf0)),_0x13ddd6=_0x57dd03[_0xdb1514(0x15e)](this['projectDirectory'],this['C'][_0xdb1514(0x1b5)],_0x18a654,_0x17440e[_0xdb1514(0xd3)],this['C']['preHooks'],_0x4785a9[_0xdb1514(0xc3)]+'.ts');await this[_0xdb1514(0x19e)](_0x57dd03[_0xdb1514(0xf2)](_0x13ddd6),{'recursive':!0x0}),await this[_0xdb1514(0xdd)](_0x345052,_0x13ddd6);}for(const _0x31b240 of _0x25cee0[_0xdb1514(0x20e)]){const _0x5c4a71=_0x57dd03[_0xdb1514(0x15e)](_0x226916,this['C'][_0xdb1514(0x20e)],_0x31b240[_0xdb1514(0xc3)]+_0xdb1514(0xf0)),_0x317a10=_0x57dd03[_0xdb1514(0x15e)](this[_0xdb1514(0xd2)],this['C']['src'],_0x18a654,_0x17440e['path'],this['C'][_0xdb1514(0x20e)],_0x31b240[_0xdb1514(0xc3)]+_0xdb1514(0xf0));await this[_0xdb1514(0x19e)](_0x57dd03[_0xdb1514(0xf2)](_0x317a10),{'recursive':!0x0}),await this['fsLink'](_0x5c4a71,_0x317a10);}}}}async[_0x4ae336(0xe4)](){const _0x505df1=_0x4ae336,_0x309e95=this['C'][_0x505df1(0xda)],_0x91fc1c=this['C'][_0x505df1(0x162)],_0x4af1c9=_0x57dd03[_0x505df1(0x15e)](this[_0x505df1(0xcb)],this['C'][_0x505df1(0x1b5)],this['config'][_0x505df1(0x14e)],_0x309e95),_0x4c77dd=await this['readDirCustom'](_0x4af1c9,null);for(const _0x3d55a6 of _0x4c77dd){const _0x54da2b=_0x57dd03[_0x505df1(0x15e)](_0x4af1c9,_0x3d55a6,_0x3d55a6+'.yaml');if(!this[_0x505df1(0x1e4)](_0x54da2b))continue;const _0x6e6c6e=await this[_0x505df1(0x198)](_0x54da2b,{'encoding':'utf8'}),_0x57d716=await this[_0x505df1(0x11c)](_0x6e6c6e);for(const _0x3546ff of _0x57d716[_0x505df1(0x1d8)]||[])if(!0x0===_0x3546ff['isActive']){const _0x512a84=_0x57dd03['join'](_0x4af1c9,_0x3d55a6,this['C'][_0x505df1(0x1d8)],_0x3546ff[_0x505df1(0xe7)],_0x3546ff[_0x505df1(0xc3)]+_0x505df1(0xf0)),_0x1c6240=_0x57dd03[_0x505df1(0x15e)](this[_0x505df1(0xd2)],this['C']['src'],_0x91fc1c,_0x57d716[_0x505df1(0xc3)]+'.ts');await this[_0x505df1(0x19e)](_0x57dd03[_0x505df1(0xf2)](_0x1c6240),{'recursive':!0x0}),await this[_0x505df1(0xdd)](_0x512a84,_0x1c6240);}}}async[_0x4ae336(0x1b6)](){const _0x5733f0=_0x4ae336,_0x4cf0dd=this['C'][_0x5733f0(0xfd)],_0x509563=this['C'][_0x5733f0(0x1bd)],_0x522338=_0x57dd03[_0x5733f0(0x15e)](this[_0x5733f0(0xcb)],this['C'][_0x5733f0(0x1b5)],this[_0x5733f0(0x102)][_0x5733f0(0x14e)],_0x4cf0dd),_0x4633be=await this[_0x5733f0(0x1a8)](_0x522338,null);for(const _0x1305af of _0x4633be){const _0x3ddaf1=_0x57dd03[_0x5733f0(0x15e)](_0x522338,_0x1305af,_0x1305af+_0x5733f0(0x120));if(!this[_0x5733f0(0x1e4)](_0x3ddaf1))continue;const _0x27df98=await this[_0x5733f0(0x198)](_0x3ddaf1,{'encoding':_0x5733f0(0x1d1)}),_0x91575e=await this[_0x5733f0(0x11c)](_0x27df98),_0x464983=_0x57dd03[_0x5733f0(0x15e)](this[_0x5733f0(0xd2)],this['C'][_0x5733f0(0x1b5)],_0x509563,_0x91575e[_0x5733f0(0x1cc)],_0x91575e[_0x5733f0(0x208)]);await this[_0x5733f0(0x19e)](_0x464983,{'recursive':!0x0});const _0x58e31a=_0x57dd03[_0x5733f0(0x15e)](_0x522338,_0x1305af,_0x91575e[_0x5733f0(0x199)]+_0x5733f0(0x21c)),_0x1a0618=_0x57dd03['join'](_0x464983,_0x91575e[_0x5733f0(0x199)]+'.config.ts');await this['fsLink'](_0x58e31a,_0x1a0618);}}async[_0x4ae336(0x15a)](){const _0xee3fe4=_0x4ae336,_0x8eb7c8=this['C'][_0xee3fe4(0x1ed)],_0x326e52=this['C'][_0xee3fe4(0x1ea)],_0xc78576=_0x57dd03['join'](this[_0xee3fe4(0xcb)],this['C'][_0xee3fe4(0x1b5)],this[_0xee3fe4(0x102)]['adminUserPath'],_0x8eb7c8),_0x6524d9=await this[_0xee3fe4(0x1a8)](_0xc78576,null);for(const _0xd62c5e of _0x6524d9){const _0x450f78=_0x57dd03[_0xee3fe4(0x15e)](_0xc78576,_0xd62c5e,_0xd62c5e+_0xee3fe4(0x120));if(!this[_0xee3fe4(0x1e4)](_0x450f78))continue;const _0x5bfa47=await this['fsReadFile'](_0x450f78,{'encoding':_0xee3fe4(0x1d1)}),_0x4bbd11=await this[_0xee3fe4(0x11c)](_0x5bfa47),_0x1c2f5c=_0x57dd03['join'](this[_0xee3fe4(0xd2)],this['C'][_0xee3fe4(0x1b5)],_0x326e52);await this[_0xee3fe4(0x19e)](_0x1c2f5c,{'recursive':!0x0});const _0x145478=_0x57dd03[_0xee3fe4(0x15e)](_0xc78576,_0xd62c5e,_0x4bbd11['name']+_0xee3fe4(0xf0)),_0x42d1fc=_0x57dd03[_0xee3fe4(0x15e)](_0x1c2f5c,_0x4bbd11['name']+_0xee3fe4(0xf0));await this[_0xee3fe4(0xdd)](_0x145478,_0x42d1fc);}}async[_0x4ae336(0x17c)](){const _0x2ca434=_0x4ae336,_0x1e493d=this['C'][_0x2ca434(0x12b)],_0x32a1c4=this['C'][_0x2ca434(0x1f2)],_0x2595de=_0x57dd03['join'](this[_0x2ca434(0xcb)],this['C'][_0x2ca434(0x1b5)],this[_0x2ca434(0x102)][_0x2ca434(0x14e)],_0x1e493d),_0x31e9fd=await this[_0x2ca434(0x1a8)](_0x2595de,null);for(const _0x17b614 of _0x31e9fd){const _0xfef067=_0x57dd03[_0x2ca434(0x15e)](_0x2595de,_0x17b614,_0x17b614+_0x2ca434(0x120));if(!this[_0x2ca434(0x1e4)](_0xfef067))continue;const _0x35c764=await this['fsReadFile'](_0xfef067,{'encoding':_0x2ca434(0x1d1)}),_0x4d465c=await this[_0x2ca434(0x11c)](_0x35c764),_0x123044=_0x57dd03[_0x2ca434(0x15e)](this[_0x2ca434(0xd2)],this['C'][_0x2ca434(0x1b5)],_0x32a1c4);await this[_0x2ca434(0x19e)](_0x123044,{'recursive':!0x0});const _0x171dbe=_0x57dd03[_0x2ca434(0x15e)](_0x2595de,_0x17b614,_0x4d465c['name']+_0x2ca434(0xf0)),_0x308fdb=_0x57dd03[_0x2ca434(0x15e)](_0x123044,_0x4d465c['name']+'.ts');await this[_0x2ca434(0xdd)](_0x171dbe,_0x308fdb);}}async[_0x4ae336(0x18a)](){const _0x2bd2cb=_0x4ae336,_0x73327a=this['C']['ProcessI18NReadF'],_0x36960d=this['C'][_0x2bd2cb(0x1a0)],_0xddbcea=_0x57dd03[_0x2bd2cb(0x15e)](this['appRoot'],this['C'][_0x2bd2cb(0x1b5)],this[_0x2bd2cb(0x102)][_0x2bd2cb(0x14e)],_0x73327a),_0x8f3998=await this[_0x2bd2cb(0x1a8)](_0xddbcea,null);for(const _0x5420f7 of _0x8f3998){const _0x1abfde=_0x57dd03[_0x2bd2cb(0x15e)](_0xddbcea,_0x5420f7,_0x5420f7+_0x2bd2cb(0x120));if(!this[_0x2bd2cb(0x1e4)](_0x1abfde))continue;const _0x4affae=await this[_0x2bd2cb(0x198)](_0x1abfde,{'encoding':_0x2bd2cb(0x1d1)}),_0x2373af=await this[_0x2bd2cb(0x11c)](_0x4affae),_0x1ac1af=_0x57dd03[_0x2bd2cb(0x15e)](this[_0x2bd2cb(0xd2)],this['C'][_0x2bd2cb(0x1b5)],_0x36960d);await this[_0x2bd2cb(0x19e)](_0x1ac1af,{'recursive':!0x0});const _0x492cc0=_0x57dd03[_0x2bd2cb(0x15e)](_0xddbcea,_0x5420f7,_0x2373af[_0x2bd2cb(0xc3)]+'.ts'),_0x4925bd=_0x57dd03[_0x2bd2cb(0x15e)](_0x1ac1af,_0x2373af[_0x2bd2cb(0xc3)]+_0x2bd2cb(0xf0));await this[_0x2bd2cb(0xdd)](_0x492cc0,_0x4925bd);}}async[_0x4ae336(0x1bb)](){const _0x2f654e=_0x4ae336,_0x35b800=this['C'][_0x2f654e(0xdc)],_0x4c86ef=this['C']['DBMastersWriteF'],_0x4afd53=_0x57dd03['join'](this[_0x2f654e(0xcb)],this['C'][_0x2f654e(0x1b5)],this[_0x2f654e(0x102)]['adminUserPath'],_0x35b800),_0x2ae345=await this[_0x2f654e(0x1a8)](_0x4afd53,null);for(const _0x271351 of _0x2ae345){const _0x68d50d=_0x57dd03['join'](_0x4afd53,_0x271351,_0x271351+'.yaml');if(!this['fsExistsSync'](_0x68d50d))continue;const _0x3a6588=await this['fsReadFile'](_0x68d50d,{'encoding':_0x2f654e(0x1d1)}),_0x1edde6=await this[_0x2f654e(0x11c)](_0x3a6588),_0x28eef2=_0x57dd03[_0x2f654e(0x15e)](this[_0x2f654e(0xd2)],this['C']['src'],_0x4c86ef,_0x1edde6[_0x2f654e(0xc3)]);await this[_0x2f654e(0x19e)](_0x28eef2,{'recursive':!0x0});const _0x5b4526=_0x57dd03[_0x2f654e(0x15e)](_0x4afd53,_0x271351,_0x1edde6[_0x2f654e(0xc3)]+'.ts'),_0x555e20=_0x57dd03[_0x2f654e(0x15e)](_0x28eef2,_0x1edde6[_0x2f654e(0xc3)]+_0x2f654e(0xf0));await this[_0x2f654e(0xdd)](_0x5b4526,_0x555e20);const _0x2074c0=_0x57dd03[_0x2f654e(0x15e)](_0x4afd53,_0x271351,_0x1edde6['name']+_0x2f654e(0x21c)),_0x519fe5=_0x57dd03[_0x2f654e(0x15e)](_0x28eef2,_0x1edde6['name']+'.config.ts');await this[_0x2f654e(0xdd)](_0x2074c0,_0x519fe5);}}async[_0x4ae336(0x1d4)](){const _0x2e4894=_0x4ae336,_0x797062=this['C'][_0x2e4894(0x11b)],_0x53732c=this['C']['DBMasterStylesWriteF'],_0x29fa0a=_0x57dd03[_0x2e4894(0x15e)](this[_0x2e4894(0xcb)],this['C'][_0x2e4894(0x1b5)],this[_0x2e4894(0x102)]['adminUserPath'],_0x797062),_0x183a67=await this[_0x2e4894(0x1a8)](_0x29fa0a,null);for(const _0x152a09 of _0x183a67){const _0x4a15e2=_0x57dd03[_0x2e4894(0x15e)](_0x29fa0a,_0x152a09,_0x152a09+_0x2e4894(0x120));if(!this['fsExistsSync'](_0x4a15e2))continue;const _0x47f1b8=await this[_0x2e4894(0x198)](_0x4a15e2,{'encoding':_0x2e4894(0x1d1)}),_0x4dabc8=await this[_0x2e4894(0x11c)](_0x47f1b8),_0x33f60f=_0x57dd03[_0x2e4894(0x15e)](this['projectDirectory'],this['C'][_0x2e4894(0x1b5)],_0x53732c);await this[_0x2e4894(0x19e)](_0x33f60f,{'recursive':!0x0});const _0x71b575=_0x57dd03[_0x2e4894(0x15e)](_0x29fa0a,_0x152a09,_0x4dabc8[_0x2e4894(0xc3)]+'.css'),_0x18f50c=_0x57dd03[_0x2e4894(0x15e)](_0x33f60f,_0x4dabc8[_0x2e4894(0xc3)]+'.css');await this[_0x2e4894(0xdd)](_0x71b575,_0x18f50c);}}async[_0x4ae336(0xc1)](){const _0x41451c=_0x4ae336,_0x47c2e9=this['C'][_0x41451c(0x1c7)],_0x3c3226=this['C'][_0x41451c(0x1cb)],_0x5d1e24=_0x57dd03['join'](this[_0x41451c(0xcb)],this['C'][_0x41451c(0x1b5)],this['config'][_0x41451c(0x14e)],_0x47c2e9),_0x3f8969=await this[_0x41451c(0x1a8)](_0x5d1e24,null);for(const _0x1c6e2a of _0x3f8969){const _0x5a0ea1=_0x57dd03[_0x41451c(0x15e)](_0x5d1e24,_0x1c6e2a,_0x1c6e2a+'.yaml');if(!this[_0x41451c(0x1e4)](_0x5a0ea1))continue;const _0x50da69=await this[_0x41451c(0x198)](_0x5a0ea1,{'encoding':'utf8'}),_0x39ab72=await this['parseYaml'](_0x50da69),_0x196b17=_0x57dd03[_0x41451c(0x15e)](this['projectDirectory'],this['C'][_0x41451c(0x1b5)],_0x3c3226);await this[_0x41451c(0x19e)](_0x196b17,{'recursive':!0x0});const _0x100fc5=_0x57dd03[_0x41451c(0x15e)](_0x5d1e24,_0x1c6e2a,_0x39ab72[_0x41451c(0xc3)]+_0x41451c(0xf0)),_0x29a622=_0x57dd03['join'](_0x196b17,_0x39ab72[_0x41451c(0xc3)]+_0x41451c(0xf0));await this[_0x41451c(0xdd)](_0x100fc5,_0x29a622);}}async[_0x4ae336(0xc2)](){const _0xe462a9=_0x4ae336,_0x1e8033=this['C']['TestCasesReadF'],_0x517da4=this['C'][_0xe462a9(0x214)],_0x11577b=_0x57dd03[_0xe462a9(0x15e)](this[_0xe462a9(0xcb)],this['C'][_0xe462a9(0x1b5)],this[_0xe462a9(0x102)][_0xe462a9(0x14e)],_0x1e8033),_0x34d027=await this[_0xe462a9(0x1a8)](_0x11577b,null);for(const _0x39fed1 of _0x34d027){const _0x5b2f69=_0x57dd03[_0xe462a9(0x15e)](_0x11577b,_0x39fed1,_0x39fed1+_0xe462a9(0x120));if(!this[_0xe462a9(0x1e4)](_0x5b2f69))continue;const _0x1cf7e2=await this[_0xe462a9(0x198)](_0x5b2f69,{'encoding':'utf8'}),_0x2f64cd=await this['parseYaml'](_0x1cf7e2),_0x45a740=_0x57dd03[_0xe462a9(0x15e)](this['projectDirectory'],this['C'][_0xe462a9(0x1b5)],_0x517da4);await this[_0xe462a9(0x19e)](_0x45a740,{'recursive':!0x0});const _0x31598d=_0x57dd03[_0xe462a9(0x15e)](_0x11577b,_0x39fed1,_0x2f64cd[_0xe462a9(0xc3)]+'.ts'),_0x2ee0b6=_0x57dd03[_0xe462a9(0x15e)](_0x45a740,_0x2f64cd['name']+_0xe462a9(0xf0));await this[_0xe462a9(0xdd)](_0x31598d,_0x2ee0b6);}}async[_0x4ae336(0xea)](){const _0x38ac89=_0x4ae336,_0x5b50bd=this['C'][_0x38ac89(0x164)],_0x458901=this['C'][_0x38ac89(0x1c6)],_0x17fdb5=_0x57dd03[_0x38ac89(0x15e)](this[_0x38ac89(0xcb)],this['C']['src'],this[_0x38ac89(0x102)]['adminUserPath'],_0x5b50bd);if(!this[_0x38ac89(0x1e4)](_0x17fdb5))return;const _0x108fc2=await this[_0x38ac89(0x1a8)](_0x17fdb5,null);for(const _0x939fed of _0x108fc2){const _0xf0a9b0=_0x57dd03['join'](_0x17fdb5,_0x939fed,this['C'][_0x38ac89(0x1d5)]),_0x3293c5=await this[_0x38ac89(0x1a8)](_0xf0a9b0,null);for(const _0x567d55 of _0x3293c5){const _0x1bc336=_0x57dd03['join'](_0xf0a9b0,_0x567d55,_0x567d55+'.yaml');if(!this['fsExistsSync'](_0x1bc336))continue;const _0x569cbd=await this[_0x38ac89(0x198)](_0x1bc336,{'encoding':_0x38ac89(0x1d1)}),_0x52f956=await this[_0x38ac89(0x11c)](_0x569cbd);for(const _0x5dc046 of _0x52f956[_0x38ac89(0x1d8)]||[])if(!0x0===_0x5dc046['isActive']){const _0x157221=_0x57dd03[_0x38ac89(0x15e)](_0xf0a9b0,_0x567d55,this['C'][_0x38ac89(0x1d8)],_0x5dc046['version']),_0x336581=_0x57dd03[_0x38ac89(0x15e)](_0x157221,_0x5dc046[_0x38ac89(0xc3)]+_0x38ac89(0xf0)),_0x539ccf=_0x57dd03['join'](this['projectDirectory'],this['C'][_0x38ac89(0x1b5)],_0x458901,_0x939fed,_0x52f956[_0x38ac89(0xd3)],_0x52f956[_0x38ac89(0xc3)]+_0x38ac89(0xf0));await this[_0x38ac89(0x19e)](_0x57dd03['dirname'](_0x539ccf),{'recursive':!0x0}),await this[_0x38ac89(0xdd)](_0x336581,_0x539ccf);const _0x143a76=_0x57dd03[_0x38ac89(0x15e)](_0xf0a9b0,_0x567d55,_0x567d55+_0x38ac89(0x21c)),_0x3d1c34=_0x57dd03['join'](this[_0x38ac89(0xd2)],this['C'][_0x38ac89(0x1b5)],_0x458901,_0x939fed,_0x52f956[_0x38ac89(0xd3)],_0x52f956['name']+_0x38ac89(0x21c));await this[_0x38ac89(0xdd)](_0x143a76,_0x3d1c34);for(const _0xed66d1 of _0x5dc046[_0x38ac89(0x136)]){const _0x15d6ec=_0x57dd03[_0x38ac89(0x15e)](_0x157221,this['C'][_0x38ac89(0x136)],_0xed66d1[_0x38ac89(0xc3)]+_0x38ac89(0xf0)),_0x4dfdcc=_0x57dd03['join'](this[_0x38ac89(0xd2)],this['C'][_0x38ac89(0x1b5)],_0x458901,_0x939fed,_0x52f956['path'],this['C'][_0x38ac89(0x136)],_0xed66d1['name']+_0x38ac89(0xf0));await this[_0x38ac89(0x19e)](_0x57dd03['dirname'](_0x4dfdcc),{'recursive':!0x0}),await this[_0x38ac89(0xdd)](_0x15d6ec,_0x4dfdcc);}for(const _0x1174fd of _0x5dc046[_0x38ac89(0x20e)]){const _0x117f76=_0x57dd03[_0x38ac89(0x15e)](_0x157221,this['C']['postHooks'],_0x1174fd['name']+_0x38ac89(0xf0)),_0x38b2a4=_0x57dd03['join'](this['projectDirectory'],this['C'][_0x38ac89(0x1b5)],_0x458901,_0x939fed,_0x52f956[_0x38ac89(0xd3)],this['C'][_0x38ac89(0x20e)],_0x1174fd[_0x38ac89(0xc3)]+_0x38ac89(0xf0));await this['fsMkDir'](_0x57dd03[_0x38ac89(0xf2)](_0x38b2a4),{'recursive':!0x0}),await this[_0x38ac89(0xdd)](_0x117f76,_0x38b2a4);}}}}}async[_0x4ae336(0xf4)](){const _0x5e4974=_0x4ae336,_0x80c65f=this['C'][_0x5e4974(0x1d0)],_0x10aed7=this['C'][_0x5e4974(0x114)],_0x8c802c=_0x57dd03['join'](this['appRoot'],this['C'][_0x5e4974(0x1b5)],this[_0x5e4974(0x102)][_0x5e4974(0x14e)],_0x80c65f),_0x26cc8f=await this['readDirCustom'](_0x8c802c,null);for(const _0x36fe4a of _0x26cc8f){const _0x96b5aa=_0x57dd03[_0x5e4974(0x15e)](_0x8c802c,_0x36fe4a,_0x36fe4a+_0x5e4974(0x120));if(!this[_0x5e4974(0x1e4)](_0x96b5aa))continue;const _0x1e29a5=await this[_0x5e4974(0x198)](_0x96b5aa,{'encoding':'utf8'}),_0x25cec8=await this[_0x5e4974(0x11c)](_0x1e29a5),_0x84dc33=_0x57dd03[_0x5e4974(0x15e)](_0x8c802c,_0x36fe4a,this['C'][_0x5e4974(0x100)]);for(const _0x410f8e of _0x25cec8[_0x5e4974(0x13d)])for(const _0x2e7641 of _0x410f8e[_0x5e4974(0x1d8)]||[])if(!0x0===_0x2e7641[_0x5e4974(0x1b0)]){const _0x115faf=_0x57dd03['join'](_0x84dc33,_0x410f8e[_0x5e4974(0xc3)],this['C'][_0x5e4974(0x1d8)],_0x2e7641[_0x5e4974(0xe7)],_0x2e7641[_0x5e4974(0xc3)]+_0x5e4974(0xf0)),_0x5703a0=_0x57dd03[_0x5e4974(0x15e)](this[_0x5e4974(0xd2)],this['C'][_0x5e4974(0x1b5)],_0x10aed7,_0x25cec8['name'],_0x410f8e[_0x5e4974(0xc3)]+'.ts');await this[_0x5e4974(0x19e)](_0x57dd03[_0x5e4974(0xf2)](_0x5703a0),{'recursive':!0x0}),await this[_0x5e4974(0xdd)](_0x115faf,_0x5703a0);}}}async[_0x4ae336(0x1d7)](){const _0xc294ea=_0x4ae336,_0x2ec077=this['C'][_0xc294ea(0x19f)],_0xdd4875=this['C'][_0xc294ea(0x12d)],_0x1a8c75=_0x57dd03[_0xc294ea(0x15e)](this[_0xc294ea(0xcb)],this['C'][_0xc294ea(0x1b5)],this[_0xc294ea(0x102)][_0xc294ea(0x14e)],_0x2ec077),_0x547e0a=await this[_0xc294ea(0x1a8)](_0x1a8c75,null);for(const _0x1bdca1 of _0x547e0a){const _0x267173=_0x57dd03[_0xc294ea(0x15e)](_0x1a8c75,_0x1bdca1,_0x1bdca1+'.yaml');if(!this[_0xc294ea(0x1e4)](_0x267173))continue;const _0x343f42=await this['fsReadFile'](_0x267173,{'encoding':_0xc294ea(0x1d1)}),_0x339670=await this[_0xc294ea(0x11c)](_0x343f42),_0x346c86=_0x57dd03['join'](_0x1a8c75,_0x1bdca1),_0x48ba47=_0x339670[_0xc294ea(0x1cc)]+'/'+_0x339670[_0xc294ea(0x208)]+'/'+_0x339670[_0xc294ea(0x199)]+'/'+_0x339670[_0xc294ea(0x20a)][_0xc294ea(0x101)]();for(const _0x107232 of _0x339670['preHooks']){const _0x1dc1cd=_0x57dd03[_0xc294ea(0x15e)](_0x346c86,this['C'][_0xc294ea(0x136)],_0x107232[_0xc294ea(0xc3)]+_0xc294ea(0xf0)),_0x49762d=_0x57dd03[_0xc294ea(0x15e)](this[_0xc294ea(0xd2)],this['C'][_0xc294ea(0x1b5)],_0xdd4875,_0x48ba47,this['C'][_0xc294ea(0x136)],_0x107232['name']+_0xc294ea(0xf0));await this[_0xc294ea(0x19e)](_0x57dd03['dirname'](_0x49762d),{'recursive':!0x0}),await this[_0xc294ea(0xdd)](_0x1dc1cd,_0x49762d);}for(const _0x182040 of _0x339670[_0xc294ea(0x20e)]){const _0x5ccbc6=_0x57dd03[_0xc294ea(0x15e)](_0x346c86,this['C']['postHooks'],_0x182040[_0xc294ea(0xc3)]+'.ts'),_0x7add09=_0x57dd03['join'](this[_0xc294ea(0xd2)],this['C']['src'],_0xdd4875,_0x48ba47,this['C'][_0xc294ea(0x20e)],_0x182040[_0xc294ea(0xc3)]+_0xc294ea(0xf0));await this[_0xc294ea(0x19e)](_0x57dd03[_0xc294ea(0xf2)](_0x7add09),{'recursive':!0x0}),await this['fsLink'](_0x5ccbc6,_0x7add09);}}}async[_0x4ae336(0x13f)](){const _0xa0df30=_0x4ae336,_0x496fa0=this['C'][_0xa0df30(0x19c)],_0x5741c0=this['C'][_0xa0df30(0x129)],_0x281877=_0x57dd03[_0xa0df30(0x15e)](this[_0xa0df30(0xcb)],this['C'][_0xa0df30(0x1b5)],this[_0xa0df30(0x102)]['adminUserPath'],_0x496fa0),_0x1ea21c=await this[_0xa0df30(0x1a8)](_0x281877,null);for(const _0x2b2921 of _0x1ea21c){const _0x162916=_0x57dd03[_0xa0df30(0x15e)](_0x281877,_0x2b2921,_0x2b2921+_0xa0df30(0x120));if(!this[_0xa0df30(0x1e4)](_0x162916))continue;const _0x570f29=await this[_0xa0df30(0x198)](_0x162916,{'encoding':_0xa0df30(0x1d1)}),_0x44c99b=await this[_0xa0df30(0x11c)](_0x570f29),_0x1a8900=_0x57dd03[_0xa0df30(0x15e)](_0x281877,_0x2b2921),_0x3b2a1a=_0x44c99b['apiId'][_0xa0df30(0x101)]();for(const _0x56e4b4 of _0x44c99b[_0xa0df30(0x136)]){const _0x2852cb=_0x57dd03[_0xa0df30(0x15e)](_0x1a8900,this['C'][_0xa0df30(0x136)],_0x56e4b4[_0xa0df30(0xc3)]+'.ts'),_0x1c4e9e=_0x57dd03[_0xa0df30(0x15e)](this[_0xa0df30(0xd2)],this['C'][_0xa0df30(0x1b5)],_0x5741c0,_0x3b2a1a,this['C'][_0xa0df30(0x136)],_0x56e4b4[_0xa0df30(0xc3)]+'.ts');await this['fsMkDir'](_0x57dd03[_0xa0df30(0xf2)](_0x1c4e9e),{'recursive':!0x0}),await this[_0xa0df30(0xdd)](_0x2852cb,_0x1c4e9e);}for(const _0x305b00 of _0x44c99b['postHooks']){const _0x4b5689=_0x57dd03['join'](_0x1a8900,this['C'][_0xa0df30(0x20e)],_0x305b00['name']+_0xa0df30(0xf0)),_0x222211=_0x57dd03['join'](this[_0xa0df30(0xd2)],this['C'][_0xa0df30(0x1b5)],_0x5741c0,_0x3b2a1a,this['C'][_0xa0df30(0x20e)],_0x305b00['name']+_0xa0df30(0xf0));await this[_0xa0df30(0x19e)](_0x57dd03[_0xa0df30(0xf2)](_0x222211),{'recursive':!0x0}),await this[_0xa0df30(0xdd)](_0x4b5689,_0x222211);}}}async['copyWebSocketEventsToAnotherDir'](){const _0x3bff61=_0x4ae336,_0x14b2f1=this['C'][_0x3bff61(0x1ff)],_0x5e3171=this['C'][_0x3bff61(0xbc)],_0x1fbf5d=_0x57dd03[_0x3bff61(0x15e)](this['appRoot'],this['C']['src'],this[_0x3bff61(0x102)][_0x3bff61(0x14e)],_0x14b2f1),_0x51ad36=await this[_0x3bff61(0x1a8)](_0x1fbf5d,null);for(const _0x323c15 of _0x51ad36){const _0x3b7353=_0x57dd03[_0x3bff61(0x15e)](_0x1fbf5d,_0x323c15,_0x323c15+'.yaml');if(!this[_0x3bff61(0x1e4)](_0x3b7353))continue;const _0x947561=await this[_0x3bff61(0x198)](_0x3b7353,{'encoding':_0x3bff61(0x1d1)}),_0x97d960=await this[_0x3bff61(0x11c)](_0x947561);for(const _0x51a648 of _0x97d960[_0x3bff61(0x1d8)]||[])if(!0x0===_0x51a648[_0x3bff61(0x1b0)]){const _0x52c1e1=_0x57dd03['join'](_0x1fbf5d,_0x323c15,this['C'][_0x3bff61(0x1d8)],_0x51a648[_0x3bff61(0xe7)],_0x51a648[_0x3bff61(0xc3)]+_0x3bff61(0xf0));let _0x1bd827='',_0x41047c='';_0x97d960[_0x3bff61(0x1db)]===_0x2fab8b[_0x3bff61(0x1ab)]?(_0x41047c=_0x3bff61(0x179),_0x1bd827=_0x97d960[_0x3bff61(0x1cc)]+'/'+_0x97d960['databaseName']+'/'+_0x97d960[_0x3bff61(0x199)]+'/'+_0x97d960['instanceApiName']['toLowerCase']()):_0x97d960['apiCategory']===_0x2fab8b[_0x3bff61(0x1e0)]?(_0x41047c=_0x3bff61(0x1ba),_0x1bd827=_0x97d960[_0x3bff61(0x134)]+'/'+_0x97d960[_0x3bff61(0x124)]):_0x97d960[_0x3bff61(0x1db)]===_0x2fab8b[_0x3bff61(0x16d)]?(_0x41047c='custom-apis',_0x1bd827=_0x97d960[_0x3bff61(0xd8)]):_0x97d960['apiCategory']===_0x2fab8b['SYSTEM_APIS']?(_0x41047c='system-apis',_0x1bd827=_0x97d960[_0x3bff61(0x1d9)][_0x3bff61(0x101)]()):_0x97d960[_0x3bff61(0x1db)]===_0x2fab8b[_0x3bff61(0x1e2)]&&(_0x41047c=_0x3bff61(0x1c8),_0x1bd827=_0x97d960[_0x3bff61(0xc3)]);const _0x318970=_0x57dd03[_0x3bff61(0x15e)](this[_0x3bff61(0xd2)],this['C'][_0x3bff61(0x1b5)],_0x5e3171,_0x41047c,_0x1bd827+_0x3bff61(0xf0));await this['fsMkDir'](_0x57dd03['dirname'](_0x318970),{'recursive':!0x0}),await this['fsLink'](_0x52c1e1,_0x318970);}}}async['copyCollectionHooksToAnotherDir'](){const _0x413888=_0x4ae336,_0x1ab35d=this['C']['CollectionHooksReadF'],_0x4b0625=this['C'][_0x413888(0xe8)],_0x5a4900=_0x57dd03[_0x413888(0x15e)](this[_0x413888(0xcb)],this['C'][_0x413888(0x1b5)],this[_0x413888(0x102)]['adminUserPath'],_0x1ab35d),_0x2e2453=await this[_0x413888(0x1a8)](_0x5a4900,null);for(const _0x2072c0 of _0x2e2453){const _0x2a1938=_0x57dd03[_0x413888(0x15e)](_0x5a4900,_0x2072c0,_0x2072c0+_0x413888(0x120));if(!this['fsExistsSync'](_0x2a1938))continue;const _0x474245=await this[_0x413888(0x198)](_0x2a1938,{'encoding':_0x413888(0x1d1)}),_0x28603e=await this[_0x413888(0x11c)](_0x474245),_0x2e51de=_0x57dd03[_0x413888(0x15e)](_0x5a4900,_0x2072c0),_0x1fdd5f=_0x28603e[_0x413888(0x1cc)]+'/'+_0x28603e[_0x413888(0x208)]+'/'+_0x28603e[_0x413888(0x199)];for(const _0x34c854 of _0x28603e['preHooks']){const _0x3c4990=_0x57dd03[_0x413888(0x15e)](_0x2e51de,this['C']['preHooks'],_0x34c854[_0x413888(0xc3)]+'.ts'),_0x7f732e=_0x57dd03[_0x413888(0x15e)](this[_0x413888(0xd2)],this['C'][_0x413888(0x1b5)],_0x4b0625,_0x1fdd5f,this['C'][_0x413888(0x136)],_0x34c854[_0x413888(0xc3)]+_0x413888(0xf0));await this[_0x413888(0x19e)](_0x57dd03[_0x413888(0xf2)](_0x7f732e),{'recursive':!0x0}),await this['fsLink'](_0x3c4990,_0x7f732e);}for(const _0x2bd1e0 of _0x28603e[_0x413888(0x20e)]){const _0x11e74f=_0x57dd03['join'](_0x2e51de,this['C'][_0x413888(0x20e)],_0x2bd1e0[_0x413888(0xc3)]+_0x413888(0xf0)),_0xcda1c0=_0x57dd03['join'](this[_0x413888(0xd2)],this['C'][_0x413888(0x1b5)],_0x4b0625,_0x1fdd5f,this['C']['postHooks'],_0x2bd1e0[_0x413888(0xc3)]+_0x413888(0xf0));await this[_0x413888(0x19e)](_0x57dd03[_0x413888(0xf2)](_0xcda1c0),{'recursive':!0x0}),await this[_0x413888(0xdd)](_0x11e74f,_0xcda1c0);}}}async[_0x4ae336(0xb4)](){const _0x4b2eab=_0x4ae336,_0x584b20=this['C'][_0x4b2eab(0x11f)],_0x2e0208=this['C'][_0x4b2eab(0x177)],_0x593578=_0x57dd03[_0x4b2eab(0x15e)](this[_0x4b2eab(0xcb)],this['C']['src'],this[_0x4b2eab(0x102)][_0x4b2eab(0x14e)],_0x584b20),_0x15c2f6=await this[_0x4b2eab(0x1a8)](_0x593578,null);for(const _0x18dea6 of _0x15c2f6){const _0x520d9d=_0x57dd03[_0x4b2eab(0x15e)](_0x593578,_0x18dea6,_0x18dea6+'.yaml');if(!this['fsExistsSync'](_0x520d9d))continue;const _0x20da0e=await this['fsReadFile'](_0x520d9d,{'encoding':_0x4b2eab(0x1d1)}),_0x198b93=await this['parseYaml'](_0x20da0e),_0x2f128c=_0x57dd03[_0x4b2eab(0x15e)](_0x593578,_0x18dea6),_0x12bae0=_0x198b93[_0x4b2eab(0x1cc)]+'/'+_0x198b93[_0x4b2eab(0x208)];for(const _0x39a736 of _0x198b93['preHooks']){const _0x38c08f=_0x57dd03['join'](_0x2f128c,this['C']['preHooks'],_0x39a736[_0x4b2eab(0xc3)]+_0x4b2eab(0xf0)),_0x4955c0=_0x57dd03[_0x4b2eab(0x15e)](this[_0x4b2eab(0xd2)],this['C'][_0x4b2eab(0x1b5)],_0x2e0208,_0x12bae0,this['C'][_0x4b2eab(0x136)],_0x39a736[_0x4b2eab(0xc3)]+_0x4b2eab(0xf0));await this[_0x4b2eab(0x19e)](_0x57dd03[_0x4b2eab(0xf2)](_0x4955c0),{'recursive':!0x0}),await this[_0x4b2eab(0xdd)](_0x38c08f,_0x4955c0);}for(const _0x1997ee of _0x198b93[_0x4b2eab(0x20e)]){const _0x467a43=_0x57dd03[_0x4b2eab(0x15e)](_0x2f128c,this['C'][_0x4b2eab(0x20e)],_0x1997ee[_0x4b2eab(0xc3)]+_0x4b2eab(0xf0)),_0x311173=_0x57dd03[_0x4b2eab(0x15e)](this[_0x4b2eab(0xd2)],this['C'][_0x4b2eab(0x1b5)],_0x2e0208,_0x12bae0,this['C'][_0x4b2eab(0x20e)],_0x1997ee['name']+_0x4b2eab(0xf0));await this['fsMkDir'](_0x57dd03['dirname'](_0x311173),{'recursive':!0x0}),await this['fsLink'](_0x467a43,_0x311173);}}}async[_0x4ae336(0x1a4)](){const _0x1d617d=_0x4ae336,_0x45b2fd=this['C'][_0x1d617d(0x1de)],_0x5e215f=this['C'][_0x1d617d(0x1b7)],_0x69c5c1=_0x57dd03[_0x1d617d(0x15e)](this[_0x1d617d(0xcb)],this['C'][_0x1d617d(0x1b5)],this[_0x1d617d(0x102)][_0x1d617d(0x14e)],_0x45b2fd),_0x2a01ab=await this[_0x1d617d(0x1a8)](_0x69c5c1,null);for(const _0x478773 of _0x2a01ab){const _0x1e5660=_0x57dd03['join'](_0x69c5c1,_0x478773,_0x478773+_0x1d617d(0x120));if(!this['fsExistsSync'](_0x1e5660))continue;const _0x456859=await this[_0x1d617d(0x198)](_0x1e5660,{'encoding':_0x1d617d(0x1d1)}),_0x5981a5=await this['parseYaml'](_0x456859),_0xda7cfa=_0x57dd03[_0x1d617d(0x15e)](_0x69c5c1,_0x478773),_0x1ba52e=''+_0x5981a5[_0x1d617d(0x1cc)];for(const _0x4a941b of _0x5981a5[_0x1d617d(0x136)]){const _0x231f91=_0x57dd03['join'](_0xda7cfa,this['C'][_0x1d617d(0x136)],_0x4a941b[_0x1d617d(0xc3)]+_0x1d617d(0xf0)),_0x57b069=_0x57dd03[_0x1d617d(0x15e)](this[_0x1d617d(0xd2)],this['C']['src'],_0x5e215f,_0x1ba52e,this['C'][_0x1d617d(0x136)],_0x4a941b[_0x1d617d(0xc3)]+'.ts');await this['fsMkDir'](_0x57dd03['dirname'](_0x57b069),{'recursive':!0x0}),await this[_0x1d617d(0xdd)](_0x231f91,_0x57b069);}for(const _0xaae668 of _0x5981a5[_0x1d617d(0x20e)]){const _0x4cc426=_0x57dd03[_0x1d617d(0x15e)](_0xda7cfa,this['C'][_0x1d617d(0x20e)],_0xaae668[_0x1d617d(0xc3)]+_0x1d617d(0xf0)),_0x4c3d0b=_0x57dd03[_0x1d617d(0x15e)](this[_0x1d617d(0xd2)],this['C'][_0x1d617d(0x1b5)],_0x5e215f,_0x1ba52e,this['C'][_0x1d617d(0x20e)],_0xaae668[_0x1d617d(0xc3)]+_0x1d617d(0xf0));await this[_0x1d617d(0x19e)](_0x57dd03[_0x1d617d(0xf2)](_0x4c3d0b),{'recursive':!0x0}),await this[_0x1d617d(0xdd)](_0x4cc426,_0x4c3d0b);}}}async[_0x4ae336(0x173)](_0x4cfe27,_0x95f6b6){return new Promise((_0x44bc7d,_0x53529e)=>{const _0x3ff08c=a0_0x29a0,_0x3b2013=(0x0,_0x3013ba[_0x3ff08c(0x11a)])(_0x4cfe27,_0x95f6b6,{'shell':!0x0,'cwd':this[_0x3ff08c(0xcb)]});_0x3b2013['on']('close',_0x3cb3be=>{const _0x1620b8=_0x3ff08c;if(0x0===_0x3cb3be)setTimeout(_0x44bc7d,0x3e8);else{const _0xf0d24e='\x27'+_0x4cfe27+'\x20'+_0x95f6b6[_0x1620b8(0x15e)]('\x20')+_0x1620b8(0x1d2)+_0x3cb3be+'.';_0x53529e(new Error(_0xf0d24e));}}),_0x3b2013['on'](_0x3ff08c(0x103),_0x23c9f2=>{const _0x50aed0=_0x3ff08c;console[_0x50aed0(0x103)]('Failed\x20to\x20start\x20the\x20npm\x20process:\x20'+_0x23c9f2[_0x50aed0(0xd9)]),_0x53529e(_0x23c9f2);});});}async[_0x4ae336(0x11c)](_0x519618){const _0x328bcf=_0x4ae336;return(await Promise['resolve']()[_0x328bcf(0xbf)](()=>_0x50e4ab(0x59)))[_0x328bcf(0x20c)](_0x519618);}async['startWatch'](){const _0x3f84b8=_0x4ae336;this[_0x3f84b8(0x215)]||await this[_0x3f84b8(0xf7)]();const _0x1da863=await Promise[_0x3f84b8(0x206)]()[_0x3f84b8(0xbf)](()=>_0x50e4ab(0xe7)),_0x3108b9=_0x57dd03[_0x3f84b8(0x15e)](this[_0x3f84b8(0xcb)]),_0x2930d9=_0x57dd03[_0x3f84b8(0x15e)](this[_0x3f84b8(0xcb)],this['C'][_0x3f84b8(0x1b5)]),_0x2948f1=_0x96f413=>{const _0xddd999=_0x3f84b8,_0x5d72eb=_0x57dd03[_0xddd999(0x1e9)](_0x3108b9,_0x96f413);return!(_0x5d72eb&&!_0x5d72eb[_0xddd999(0x219)]('.')&&!_0x5d72eb[_0xddd999(0x128)]('~')&&_0x5d72eb['startsWith'](this['C'][_0xddd999(0x1b5)]));},_0x5d3843=_0x1da863[_0x3f84b8(0x143)](_0x2930d9,{'persistent':!0x0,'ignoreInitial':!0x0,'depth':0x1/0x0,'awaitWriteFinish':{'stabilityThreshold':0xc8,'pollInterval':0x64}}),_0xd4a507=async(_0x226cf7,_0x3ad8a3)=>{const _0x316bc6=_0x3f84b8;try{if(this[_0x316bc6(0x195)])return;const _0x31bc9d=_0x57dd03[_0x316bc6(0x1e9)](_0x3108b9,_0x3ad8a3);if(!_0x3ad8a3||_0x2948f1(_0x3ad8a3))return;console[_0x316bc6(0x21b)]('✓\x20Send\x20:\x20['+this[_0x316bc6(0xb5)]()+_0x316bc6(0x105)+_0x226cf7+_0x316bc6(0xd4)+_0x31bc9d);const _0x3c166d=this[_0x316bc6(0x1da)](_0x31bc9d),_0xcaa9fe=this[_0x316bc6(0x139)](_0x3c166d,_0x31bc9d);if(!_0xcaa9fe)return;let _0x4555d5,_0x41c65e=!0x1;if(this[_0x316bc6(0x1e4)](_0xcaa9fe)){if(this[_0x316bc6(0x1e4)](_0x57dd03['join'](_0x3108b9,_0x31bc9d))){const _0x3db71c=_0x57dd03[_0x316bc6(0x15e)](_0x57dd03[_0x316bc6(0xb6)]+this['C'][_0x316bc6(0x1fa)],_0xcaa9fe);_0x4555d5=await this['serializeFolderWithBinary'](_0xcaa9fe,_0x3db71c),this['sendToServer']({'objType':_0x1587be['LC_DATA_REQ_RES'],'localClientWSReqRes':{'eventType':_0x14ebb3[_0x316bc6(0x163)],'folderChangedOnLocalSystem':_0x4555d5,'category':_0x3c166d,'shouldReplaceAllItemsOfCategory':_0x41c65e}});}else this['syncAllDataWithServer']();}else{const _0x37a84f=this[_0x316bc6(0x192)](_0x3c166d,_0x31bc9d),_0x164278=_0x57dd03[_0x316bc6(0x15e)](_0x57dd03[_0x316bc6(0xb6)]+this['C'][_0x316bc6(0x1fa)],_0x37a84f);_0x4555d5=await this[_0x316bc6(0x1c1)](_0x37a84f,_0x164278),_0x41c65e=!0x0,this[_0x316bc6(0x138)](_0x4555d5,_0x3c166d,_0x41c65e);}}catch(_0x5894c2){console[_0x316bc6(0x103)](_0x316bc6(0x194),_0x5894c2);}};_0x5d3843['on'](_0x3f84b8(0xec),_0x4ac696=>_0xd4a507(_0x3f84b8(0xec),_0x4ac696))['on'](_0x3f84b8(0x181),_0x30bdd5=>_0xd4a507(_0x3f84b8(0x181),_0x30bdd5))['on']('unlink',_0x53a9e9=>_0xd4a507(_0x3f84b8(0x18f),_0x53a9e9))['on'](_0x3f84b8(0x12f),_0x14edf6=>_0xd4a507(_0x3f84b8(0x12f),_0x14edf6))['on'](_0x3f84b8(0x151),_0x2df2a7=>_0xd4a507(_0x3f84b8(0x151),_0x2df2a7))['on'](_0x3f84b8(0x103),_0xd5bdc8=>console[_0x3f84b8(0x103)](_0x3f84b8(0x141),_0xd5bdc8)),this[_0x3f84b8(0x191)]=_0x5d3843,0x1===this[_0x3f84b8(0xfe)]&&(console[_0x3f84b8(0x21b)](_0x3f84b8(0x1cd)),console['log'](this[_0x3f84b8(0x210)]+_0x3f84b8(0x125)+this[_0x3f84b8(0xd2)]+this[_0x3f84b8(0xb8)]));}[_0x4ae336(0xb5)](){const _0x194456=_0x4ae336,_0x2fe98c=new Date();return String(_0x2fe98c[_0x194456(0xf8)]())['padStart'](0x2,'0')+':'+String(_0x2fe98c[_0x194456(0x1f5)]())[_0x194456(0xc7)](0x2,'0')+':'+String(_0x2fe98c[_0x194456(0x13e)]())[_0x194456(0xc7)](0x2,'0');}['sendDeletedEventToServerInternal'](_0x2d2795,_0x49111e,_0x568af2){const _0x3137c9=_0x4ae336;this[_0x3137c9(0xef)]({'objType':_0x1587be[_0x3137c9(0x1fe)],'localClientWSReqRes':{'eventType':_0x14ebb3[_0x3137c9(0x163)],'folderChangedOnLocalSystem':_0x2d2795,'category':_0x49111e,'shouldReplaceAllItemsOfCategory':_0x568af2}});}['debounce'](_0x11e273,_0x4a62e4){let _0x201f3b=null;return function(..._0x206aab){clearTimeout(_0x201f3b),_0x201f3b=setTimeout(()=>{const _0x2d985c=a0_0x29a0;_0x11e273[_0x2d985c(0x1dc)](this,_0x206aab);},_0x4a62e4);};}[_0x4ae336(0x1da)](_0x2003d2){const _0x15bcbf=_0x4ae336,_0x83a77a=_0x57dd03['join'](this['C'][_0x15bcbf(0x1b5)],this[_0x15bcbf(0x102)][_0x15bcbf(0x14e)]);if(!_0x2003d2['startsWith'](_0x83a77a))return;const _0x115be8=_0x2003d2[_0x15bcbf(0xcf)](_0x57dd03['sep'])[_0x15bcbf(0xc4)](_0xda65ca=>!!_0xda65ca)[0x2];for(const _0x2a198b in _0x1d71ce)if(_0x1d71ce[_0x2a198b]===_0x115be8)return _0x115be8;}[_0x4ae336(0x139)](_0x303524,_0x4095e3){const _0x11614e=_0x4ae336,_0x299f24=_0x4095e3[_0x11614e(0xcf)](_0x57dd03[_0x11614e(0xb6)]);let _0xbde10='';return _0xbde10=_0x303524===_0x1d71ce[_0x11614e(0x1e0)]?_0x299f24[_0x11614e(0x203)](0x0,0x6)[_0x11614e(0x15e)](_0x57dd03[_0x11614e(0xb6)]):_0x299f24[_0x11614e(0x203)](0x0,0x4)[_0x11614e(0x15e)](_0x57dd03[_0x11614e(0xb6)]),_0xbde10;}[_0x4ae336(0x192)](_0x1ebdfc,_0x54f265){const _0x31d638=_0x4ae336;return _0x54f265[_0x31d638(0xcf)](_0x57dd03[_0x31d638(0xb6)])['slice'](0x0,0x3)['join'](_0x57dd03[_0x31d638(0xb6)]);}async[_0x4ae336(0x1c1)](_0x3007bf,_0x486ded){const _0x17e634={},_0x5d128c=this;return await async function _0x2ed5f9(_0x57a14f){const _0x4d7a04=a0_0x29a0,_0x553035=await _0x5d128c[_0x4d7a04(0x1a8)](_0x57a14f,{'withFileTypes':!0x0});for(const _0x1174e7 of _0x553035){const _0x1285db=_0x57dd03[_0x4d7a04(0x15e)](_0x57a14f,_0x1174e7['name']),_0x4ad308=_0x57dd03['normalize'](_0x1285db);if(_0x1174e7[_0x4d7a04(0x169)]())await _0x2ed5f9(_0x4ad308);else{const _0x17fc0e=_0x3d8a8[_0x4d7a04(0xdf)](_0x4ad308),_0x443a88=_0x57dd03['relative'](_0x3007bf,_0x4ad308),_0x53018e=_0x57dd03['join'](_0x486ded,_0x443a88)[_0x4d7a04(0xcf)](_0x57dd03[_0x4d7a04(0xb6)])[_0x4d7a04(0x15e)](_0x57dd03['posix'][_0x4d7a04(0xb6)]);_0x17e634[_0x53018e]={'encoding':_0x4d7a04(0x18b),'content':_0x17fc0e[_0x4d7a04(0x1be)](_0x4d7a04(0x18b))};}}}(_0x3007bf),_0x17e634;}[_0x4ae336(0xef)](_0x3113d9){const _0x52235f=_0x4ae336;try{this['ws']['send'](JSON[_0x52235f(0x10d)](_0x3113d9));}catch(_0x5cf8ec){console[_0x52235f(0x21b)](_0x5cf8ec);}}async[_0x4ae336(0x20d)](){const _0x56372d=_0x4ae336;console[_0x56372d(0x21b)]('⏳\x20Connecting\x20to\x20server...');const _0x1d1a88=this[_0x56372d(0x102)][_0x56372d(0xce)],_0x29d613=this['config'][_0x56372d(0x14e)],_0x412a00=this['config'][_0x56372d(0xf1)];this['ws']=new WebSocket(_0x412a00+_0x56372d(0x140)+_0x1d1a88+_0x56372d(0x1cf)+_0x29d613);const _0x8fc61f=[],_0x1e5baf=()=>{const _0x351c59=_0x56372d;this[_0x351c59(0xef)]({'objType':_0x1587be[_0x351c59(0x16c)],'onEvents':[{'eventType':_0x351c59(0x165)}]});};function _0xd6b871(_0x3c14c4){const _0x548622=_0x56372d;_0x3c14c4[_0x548622(0x127)]=null,_0x3c14c4[_0x548622(0x1f3)]=null,_0x3c14c4['onerror']=null,_0x3c14c4[_0x548622(0xde)]=null,_0x3c14c4[_0x548622(0x1b1)]();}this['ws'][_0x56372d(0x1f3)]=async _0x4129cd=>{const _0x1cd2da=_0x56372d,_0x71acd4=JSON[_0x1cd2da(0xc6)](_0x4129cd[_0x1cd2da(0x1c4)]);if(_0x71acd4[_0x1cd2da(0x1f6)]===_0x1587be['CONNECTED']&&_0x71acd4['response'][_0x1cd2da(0x161)])_0x1e5baf();else{if(_0x71acd4['type']===_0x1587be[_0x1cd2da(0x16c)]){if(_0x71acd4?.['response']?.['validOnEvents']?.[_0x1cd2da(0x1b2)]){for(const _0x447142 of _0x71acd4['response'][_0x1cd2da(0x160)])_0x8fc61f['push'](_0x447142);console[_0x1cd2da(0x21b)]('✅\x20Connected\x20to\x20server\x20via\x20WS'),this[_0x1cd2da(0x191)]||await this[_0x1cd2da(0x1a7)](),this['syncAllDataWithServer']();}else{const _0x703bbb=_0x71acd4[_0x1cd2da(0x1e6)]?.[_0x1cd2da(0xfc)]?.[0x0]?.[_0x1cd2da(0x1c3)]?.[0x0]?.[_0x1cd2da(0xd9)]||_0x1cd2da(0xbe);console[_0x1cd2da(0x21b)]('❌\x20'+_0x703bbb),await this[_0x1cd2da(0x205)](0x1);}}else await this[_0x1cd2da(0x146)](_0x71acd4);}},this['ws'][_0x56372d(0xde)]=_0x5767e4=>{const _0x557d74=_0x56372d;console[_0x557d74(0x21b)](_0x557d74(0x20b)),_0xd6b871(this['ws']),setTimeout(this['connectToServerViaWS'][_0x557d74(0x1ca)](this),0xbb8);},this['ws'][_0x56372d(0xeb)]=()=>{const _0x53c95f=_0x56372d;_0xd6b871(this['ws']),setTimeout(this[_0x53c95f(0x20d)]['bind'](this),0xbb8);};}[_0x4ae336(0x196)](){const _0x575695=_0x4ae336;this[_0x575695(0xef)]({'objType':_0x1587be[_0x575695(0x1fe)],'localClientWSReqRes':{'eventType':_0x14ebb3[_0x575695(0x137)]}});}async[_0x4ae336(0x146)](_0x42064b){const _0xfaa5e5=_0x4ae336;if(this['EL']&&_0x42064b[_0xfaa5e5(0x1e6)][_0xfaa5e5(0x150)]!==_0x14ebb3[_0xfaa5e5(0x137)]&&console['log'](_0x42064b),_0x42064b['type']===_0x1587be[_0xfaa5e5(0x1fe)]){if(_0x42064b['errors']?.[_0xfaa5e5(0x1b2)])return void console[_0xfaa5e5(0x103)](_0x42064b['errors']);if(_0x42064b['response']['eventType']===_0x14ebb3[_0xfaa5e5(0x137)]){console[_0xfaa5e5(0x21b)](_0xfaa5e5(0x207)+this[_0xfaa5e5(0xb5)]()+']'),this['fullSyncCounter']++;try{this[_0xfaa5e5(0x191)]&&(await this[_0xfaa5e5(0x191)][_0xfaa5e5(0x1b1)](),this[_0xfaa5e5(0x191)]=null);}catch(_0x28751d){console['warn']('Error\x20closing\x20watcher\x20before\x20full\x20sync',_0x28751d);}_0x3d8a8[_0xfaa5e5(0x171)](_0x57dd03[_0xfaa5e5(0x15e)](this[_0xfaa5e5(0xcb)],this['C'][_0xfaa5e5(0x1b5)]),{'recursive':!0x0,'force':!0x0}),this[_0xfaa5e5(0x1eb)](_0x57dd03[_0xfaa5e5(0x15e)](this[_0xfaa5e5(0xcb)],this['C'][_0xfaa5e5(0x1b5)]),{'recursive':!0x0});const _0x32e7a5=_0x42064b[_0xfaa5e5(0x1e6)][_0xfaa5e5(0x178)];await this[_0xfaa5e5(0x204)](_0x32e7a5,this[_0xfaa5e5(0xcb)]);try{await this['startWatch']();}catch(_0x56d88c){console[_0xfaa5e5(0x103)](_0xfaa5e5(0x201),_0x56d88c);}}else{if(_0x42064b[_0xfaa5e5(0x1e6)][_0xfaa5e5(0x150)]===_0x14ebb3['LC_DATA_MODIFIED_IN_DATABASE']){const _0x43165a=_0x42064b[_0xfaa5e5(0x1e6)][_0xfaa5e5(0x178)];await this[_0xfaa5e5(0x204)](_0x43165a[_0xfaa5e5(0x1c4)],this[_0xfaa5e5(0xcb)]);}}!0x0===this[_0xfaa5e5(0x215)]?await this[_0xfaa5e5(0x216)](!0x1):await this[_0xfaa5e5(0x216)](!0x0);}}async['writeMemfsJsonToDisk'](_0x5a68a7,_0x5de3ae){const _0x497759=_0x4ae336;this[_0x497759(0x195)]=!0x0;let _0xb311df=[];const _0x5b5afb=async()=>{const _0x50a924=_0x497759;_0xb311df[_0x50a924(0x1b2)]>0x0&&(await Promise[_0x50a924(0xfa)](_0xb311df),_0xb311df=[]);};for(const [_0x59d370,_0x2f1669]of Object[_0x497759(0x187)](_0x5a68a7)){if(!_0x59d370[_0x497759(0x219)]('/'+this['C'][_0x497759(0x1fa)]+'/'+this['C'][_0x497759(0x1b5)]))continue;const _0x189096=_0x2f1669,_0x546f7f=_0x59d370['replace']('/'+this['C']['repo'],'');if(this[_0x497759(0x1d3)][_0x546f7f])continue;const _0x1a091f=_0x57dd03[_0x497759(0x15e)](_0x5de3ae,_0x546f7f[_0x497759(0x1a3)](/^\//,'')),_0x23b765=_0x57dd03[_0x497759(0xf2)](_0x1a091f),_0x4ac44d=async()=>{const _0x2275eb=_0x497759;await this[_0x2275eb(0x19e)](_0x23b765,{'recursive':!0x0}),await this[_0x2275eb(0x15c)](_0x1a091f,_0x189096[_0x2275eb(0x20f)],{'encoding':_0x2275eb(0x18b)}),this['EL']&&console[_0x2275eb(0x21b)](_0x2275eb(0x112)+this[_0x2275eb(0xb5)]()+']\x20:\x20'+_0x1a091f[_0x2275eb(0x1a3)](_0x5de3ae,''));};_0xb311df[_0x497759(0x1f9)](_0x4ac44d()),_0xb311df[_0x497759(0x1b2)]>=0x3e8&&await _0x5b5afb();}await _0x5b5afb(),setTimeout(()=>{const _0x39637e=_0x497759;this[_0x39637e(0x195)]=!0x1;},0x3e8);}[_0x4ae336(0x13c)](_0x5c54f9){const _0x5588ac=_0x4ae336,_0x7588df=this[_0x5588ac(0xf9)](_0x5c54f9);if(!this[_0x5588ac(0x1e4)](_0x7588df))return!0x1;const _0xde2a19=_0x3d8a8[_0x5588ac(0xbd)](_0x7588df);let _0x1f642e=!0x0;for(const _0x1ed9a1 of _0xde2a19){const _0x3b4f28=_0x57dd03[_0x5588ac(0x15e)](_0x7588df,_0x1ed9a1);_0x3d8a8[_0x5588ac(0x157)](_0x3b4f28)[_0x5588ac(0x169)]()&&this[_0x5588ac(0x13c)](_0x3b4f28)||(_0x1f642e=!0x1);}return!!_0x1f642e&&(_0x3d8a8[_0x5588ac(0x154)](_0x7588df),!0x0);}async[_0x4ae336(0x1a8)](_0x1b6359,_0x4995a8){const _0x2477ba=_0x4ae336;return this[_0x2477ba(0x1e4)](_0x1b6359)?await this['fsReadDir'](_0x1b6359,_0x4995a8):[];}[_0x4ae336(0xf9)](_0x5d6113){const _0x522c0b=_0x4ae336;return _0x57dd03[_0x522c0b(0x17d)](_0x5d6113);}[_0x4ae336(0x1e4)](_0x2836cd){const _0x59e7dd=_0x4ae336,_0x3d4fc1=_0x57dd03[_0x59e7dd(0x17d)](_0x2836cd);return _0x3d8a8[_0x59e7dd(0x18e)](_0x3d4fc1);}async[_0x4ae336(0x1ec)](_0x284b93,_0x55cd8d){const _0x402821=_0x4ae336,_0x4eadc2=_0x57dd03[_0x402821(0x17d)](_0x284b93);return await _0x3d8a8[_0x402821(0xf6)][_0x402821(0xb7)](_0x4eadc2,_0x55cd8d);}async[_0x4ae336(0x19e)](_0x593f46,_0x4378cf){const _0x4cd47e=_0x4ae336,_0x2763be=_0x57dd03[_0x4cd47e(0x17d)](_0x593f46);return await _0x3d8a8[_0x4cd47e(0xf6)][_0x4cd47e(0xd5)](_0x2763be,_0x4378cf);}[_0x4ae336(0x1eb)](_0x51cd27,_0xa0a2fb){const _0x28ee84=_0x4ae336,_0x4991dc=_0x57dd03[_0x28ee84(0x17d)](_0x51cd27);return _0x3d8a8[_0x28ee84(0x1ee)](_0x4991dc,_0xa0a2fb);}async[_0x4ae336(0x198)](_0xb4670c,_0x2dde36){const _0x2ed037=_0x4ae336,_0x2c53e4=_0x57dd03[_0x2ed037(0x17d)](_0xb4670c);return await _0x3d8a8['promises']['readFile'](_0x2c53e4,_0x2dde36);}async[_0x4ae336(0x15c)](_0x14f728,_0x451805,_0x32e37d){const _0x2a8b0f=_0x4ae336,_0x4e7908=_0x57dd03[_0x2a8b0f(0x17d)](_0x14f728);return await _0x3d8a8['promises'][_0x2a8b0f(0xdb)](_0x4e7908,_0x451805,_0x32e37d);}async[_0x4ae336(0xdd)](_0x179716,_0x305827){const _0x5d27a6=_0x4ae336,_0x247b3e=_0x57dd03[_0x5d27a6(0x17d)](_0x179716),_0xfa4fe=_0x57dd03[_0x5d27a6(0x17d)](_0x305827);try{return await _0x3d8a8['promises']['link'](_0x247b3e,_0xfa4fe);}catch(_0x3b7725){console[_0x5d27a6(0x104)](_0x3b7725);}}async['shutdownAndExit'](_0x2a9c6a=0x0){const _0x53d697=_0x4ae336;if(!this['shuttingDown']){this['shuttingDown']=!0x0;try{this[_0x53d697(0x191)]&&await this[_0x53d697(0x191)][_0x53d697(0x1b1)]();}catch(_0x278161){console[_0x53d697(0x103)](_0x53d697(0x1e7),_0x278161);}finally{setTimeout(()=>process[_0x53d697(0x158)](_0x2a9c6a),0xc8);}}}[_0x4ae336(0xd7)](){const _0x5b82d4=_0x4ae336;process['on']('SIGINT',()=>{const _0x53143e=a0_0x29a0;console['log'](_0x53143e(0x1a1)),this[_0x53143e(0x205)](0x0);}),process['on'](_0x5b82d4(0x193),()=>{const _0x37bcbb=_0x5b82d4;console[_0x37bcbb(0x21b)](_0x37bcbb(0xe0)),this[_0x37bcbb(0x205)](0x0);}),process['on'](_0x5b82d4(0x1b4),_0x185037=>{const _0x312fb3=_0x5b82d4;console[_0x312fb3(0x21b)](_0x312fb3(0x1b4),_0x185037);}),process['on'](_0x5b82d4(0x158),_0x4eaa6d=>{const _0x1449b7=_0x5b82d4;console[_0x1449b7(0x21b)](_0x1449b7(0x158),_0x4eaa6d);}),process['on'](_0x5b82d4(0x145),_0x54c74c=>{const _0x7776b8=_0x5b82d4;console[_0x7776b8(0x103)](_0x7776b8(0x145),_0x54c74c),this[_0x7776b8(0x205)](0x1);}),process['on'](_0x5b82d4(0x15b),_0x52a5ef=>{const _0x3db266=_0x5b82d4;console[_0x3db266(0x103)](_0x3db266(0x15b),_0x52a5ef),this['shutdownAndExit'](0x1);});}}()[_0x4ae336(0x1bc)]()[_0x4ae336(0xbf)](),function(_0x1a5d26){const _0x7f17=_0x4ae336;_0x1a5d26['INSTANCES']=_0x7f17(0x1ab),_0x1a5d26[_0x7f17(0x1e0)]=_0x7f17(0x1e0),_0x1a5d26['CUSTOM_APIS']=_0x7f17(0x16d),_0x1a5d26[_0x7f17(0xca)]=_0x7f17(0xca),_0x1a5d26[_0x7f17(0x1e2)]=_0x7f17(0x1e2);}(_0x2fab8b=_0x19e879['OW']||(_0x19e879['OW']={})),function(_0x51f7f1){const _0xd36dc4=_0x4ae336;_0x51f7f1[_0xd36dc4(0x16c)]=_0xd36dc4(0x16c),_0x51f7f1[_0xd36dc4(0xc5)]=_0xd36dc4(0xc5),_0x51f7f1['CONNECTED']='CONNECTED',_0x51f7f1[_0xd36dc4(0x115)]=_0xd36dc4(0x115),_0x51f7f1[_0xd36dc4(0x190)]=_0xd36dc4(0x190),_0x51f7f1[_0xd36dc4(0x180)]='NOTIFICATION',_0x51f7f1[_0xd36dc4(0x1fe)]=_0xd36dc4(0x1fe);}(_0x1587be||(_0x1587be={})),function(_0x48720d){const _0x451c55=_0x4ae336;_0x48720d[_0x451c55(0x137)]=_0x451c55(0x137),_0x48720d[_0x451c55(0x217)]=_0x451c55(0x217),_0x48720d[_0x451c55(0x163)]=_0x451c55(0x163);}(_0x14ebb3||(_0x14ebb3={})),(_0xbde6ab=_0x19e879['kR']||(_0x19e879['kR']={}))['POST']='POST',_0xbde6ab['PUT']='PUT',_0xbde6ab[_0x4ae336(0xb3)]=_0x4ae336(0xb3),_0xbde6ab[_0x4ae336(0x117)]=_0x4ae336(0x117),_0xbde6ab['DELETE_ALL']='DELETE_ALL',(_0x1c7443=_0x19e879['xu']||(_0x19e879['xu']={}))['AmEvents']=_0x4ae336(0x131),_0x1c7443[_0x4ae336(0xba)]='am_web_socket_events',_0x1c7443[_0x4ae336(0x185)]=_0x4ae336(0x18c),_0x1c7443['CustomApis']=_0x4ae336(0xc8),_0x1c7443[_0x4ae336(0xe9)]=_0x4ae336(0xe5),_0x1c7443['InstanceApiHooks']='am_instance_api_hooks',_0x1c7443[_0x4ae336(0x1c5)]=_0x4ae336(0x107),_0x1c7443[_0x4ae336(0x1aa)]=_0x4ae336(0x142),_0x1c7443[_0x4ae336(0x1f7)]='am_collection_hooks',_0x1c7443[_0x4ae336(0x1dd)]=_0x4ae336(0xe1),_0x1c7443['Schemas']=_0x4ae336(0x113),_0x1c7443[_0x4ae336(0xb9)]=_0x4ae336(0xee),_0x1c7443[_0x4ae336(0x1a2)]=_0x4ae336(0x172),_0x1c7443[_0x4ae336(0x122)]='am_system_api_hooks',_0x1c7443[_0x4ae336(0x14f)]=_0x4ae336(0x14f),_0x1c7443[_0x4ae336(0x209)]='am_tp_installed_apis',_0x1c7443[_0x4ae336(0x144)]=_0x4ae336(0x144),_0x1c7443[_0x4ae336(0x12a)]=_0x4ae336(0x1a5),_0x1c7443[_0x4ae336(0xd0)]=_0x4ae336(0x1c9),_0x1c7443[_0x4ae336(0xff)]=_0x4ae336(0x1b3),_0x1c7443[_0x4ae336(0x1fc)]=_0x4ae336(0x14d),_0x1c7443['UIMakerStyles']=_0x4ae336(0x153),_0x1c7443[_0x4ae336(0x186)]=_0x4ae336(0xf3),function(_0x247ab1){const _0xbe5217=_0x4ae336;_0x247ab1['CUSTOM_APIS']=_0xbe5217(0x168),_0x247ab1[_0xbe5217(0x174)]='Database\x20migrations',_0x247ab1[_0xbe5217(0x130)]=_0xbe5217(0x200),_0x247ab1[_0xbe5217(0x15d)]=_0xbe5217(0x218),_0x247ab1[_0xbe5217(0x183)]=_0xbe5217(0xd6),_0x247ab1[_0xbe5217(0x10a)]=_0xbe5217(0x21d),_0x247ab1[_0xbe5217(0x16a)]=_0xbe5217(0xed),_0x247ab1[_0xbe5217(0x14b)]=_0xbe5217(0x119),_0x247ab1[_0xbe5217(0x1c2)]=_0xbe5217(0x10e),_0x247ab1[_0xbe5217(0x1df)]=_0xbe5217(0x1f8),_0x247ab1[_0xbe5217(0x116)]=_0xbe5217(0x1dd),_0x247ab1[_0xbe5217(0x1e5)]=_0xbe5217(0x1b8),_0x247ab1['SYSTEM_API_HOOKS']=_0xbe5217(0x10f),_0x247ab1[_0xbe5217(0x1af)]=_0xbe5217(0x108),_0x247ab1['TEST_CASES']=_0xbe5217(0x1f4),_0x247ab1[_0xbe5217(0x1e0)]=_0xbe5217(0x135),_0x247ab1['THIRD_PARTY_API_SETTINGS']=_0xbe5217(0xe2),_0x247ab1[_0xbe5217(0x18d)]=_0xbe5217(0xe6),_0x247ab1[_0xbe5217(0x19a)]=_0xbe5217(0xd1),_0x247ab1[_0xbe5217(0x14c)]=_0xbe5217(0x1e1),_0x247ab1[_0xbe5217(0xcd)]=_0xbe5217(0x11e),_0x247ab1['UI_MAKER_STYLES']=_0xbe5217(0x16f);}(_0x1d71ce=_0x19e879['vg']||(_0x19e879['vg']={}));},0x380(_0x37113e){_0x37113e['exports']=require('fs');}},_0x19c8a3={};!function _0xb7b5c1(_0x5607e4){const _0x57b66a=a0_0x29a0;var _0x4ae831=_0x19c8a3[_0x5607e4];if(void 0x0!==_0x4ae831)return _0x4ae831[_0x57b66a(0xf5)];var _0x3d30d1=_0x19c8a3[_0x5607e4]={'exports':{}};return _0x425fa6[_0x5607e4](_0x3d30d1,_0x3d30d1[_0x57b66a(0xf5)],_0xb7b5c1),_0x3d30d1[_0x57b66a(0xf5)];}(0x1dc);})()));function a0_0x29a0(_0x2ee12a,_0x42cff9){_0x2ee12a=_0x2ee12a-0xb3;const _0x134b09=a0_0x134b();let _0x29a08c=_0x134b09[_0x2ee12a];return _0x29a08c;}function a0_0x134b(){const _0x19aacd=['LOCAL_CLIENT_SYNC_EVENTS','tests','checkForNodeVersion','Custom\x20APIs','isDirectory','INSTANCE_HOOKS','baseUrl','REGISTER','CUSTOM_APIS','1699930sjufyh','UI\x20maker\x20styles','.gitignore','rmSync','am_system_api_settings','executeNpmRun','DB_MIGRATIONS','system-api-hooks','db-migrations','DatabaseHooksWriteF','eventData','instances','.js','2181896CVgkWX','copyProcessInitializersToAnotherDir','normalize','collection-hooks','js-yaml','NOTIFICATION','change','chokidar@4.0.3','I18NS','UtilityClassesReadF','DBMasters','AmTestCases','entries','custom-apis','\x1b[0m','copyI18NToAnotherDir','base64','am_db_masters','UTILITY_CLASSES','existsSync','unlink','TOKEN_VALIDATION','watcher','getChangedFolderForDeleted','SIGTERM','watch\x20handler\x20error','skipWatchInputs','syncAllDataWithServer','\x20Please\x20provide\x20settings\x20in\x20:\x20','fsReadFile','collectionName','EVENTS_WS','npm','SystemApiHooksReadF','⏳\x20Dependencies\x20installation\x20process\x20started','fsMkDir','InstanceApiHooksReadF','ProcessI18NWriteF','SIGINT\x20received\x20—\x20shutting\x20down','SystemApiSettings','replace','copyInstanceHooksToAnotherDir','am_utility_classes','package-lock.json','startWatch','readDirCustom','orangeStart','DatabaseHooks','INSTANCES','printNotesToProvideLocalClient','db-interfaces.d.ts','443218icHopx','SYSTEM_API_SETTINGS','isActive','close','length','am_process_initializers','beforeExit','src','copySchemasToAnotherDir','InstanceHooksWriteF','Schemas','cpSync','third-party-apis','copyDBMastersToAnotherDir','start','SchemaWriteF','toString','package.json','schedulers','serializeFolderWithBinary','COLLECTION_HOOKS','errors','data','InstanceHooks','ThirdPartyApiWriteF','DBMasterUtilsReadF','ws-events','am_database_migrations','bind','DBMasterUtilsWriteF','instanceName','✅\x20Local\x20client\x20started...','\x20The\x20local\x20client\x20will\x20pull\x20the\x20latest\x20changes\x20from\x20the\x20server\x20and\x20keep\x20them\x20synchronized\x20between\x20the\x20IDE\x20and\x20the\x20server.','&user-path=','EventsReadF','utf8','\x27\x20exited\x20with\x20code\x20','skipFileWritingForLocal','copyDBMasterStylesToAnotherDir','apis','database-hooks','copyInstanceApiHooksToAnotherDir','versions','systemApiName','getCategoryOfPath','apiCategory','apply','Schedulers','InstanceHooksReadF','INSTANCE_API_SETTINGS','THIRD_PARTY_APIS','DB\x20masters','WEB_SOCKET_EVENT','\x1b[38;2;255;165;0m','fsExistsSync','SCHEMAS','response','Error\x20during\x20shutdown','./src','relative','DBMigrationsWriteF','fsMkDirSync','fsReadDir','DBMigrationsReadF','mkdirSync','localClientPath','\x1b[36m','amTypes','ProcessInitializersWriteF','onmessage','Test\x20cases','getMinutes','type','CollectionHooks','Instance\x20API\x20settings','push','repo','chokidar','UIMakerUtils','dbInterfacesFile','LC_DATA_REQ_RES','WebSocketEventsReadF','Process\x20initializers','Failed\x20to\x20restart\x20watcher\x20after\x20full\x20sync','sendDeletedEventToServerInternal','slice','writeMemfsJsonToDisk','shutdownAndExit','resolve','✅\x20Full\x20Sync\x20:\x20[','databaseName','am_tp_installed_apis','apiId','Connection\x20closed.','load','connectToServerViaWS','postHooks','content','cyanStart','instance-hooks','ui-maker-pages','copyUtilityClassesToAnotherDir','TestCasesWriteF','nodeModulesInstalled','copyFilesToProjectDir','LC_DATA_MODIFIED_IN_DATABASE','Events','startsWith','tsconfig.json','log','.config.ts','Instance\x20API\x20hooks','PUT_REPLACE','copyDatabaseHooksToAnotherDir','getCurrentTime','sep','readdir','colorEnd','I18Ns','WebSocketEvents','copyCollectionHooksToAnotherDir','WebSocketEventsWriteF','readdirSync','Error\x20while\x20connecting\x20to\x20WS\x20server.','then','⏳\x20node_modules\x20installation\x20process\x20started','copyDBMasterUtilsToAnotherDir','copyTestCasesToAnotherDir','name','filter','UNREGISTER','parse','padStart','am_custom_apis','--force','SYSTEM_APIS','appRoot','Database\x20migrations','UI_MAKER_UTILITY_CLASS','syncToken','split','DatabasesMigrations','WebSocket\x20events','projectDirectory','path',']\x20:\x20','mkdir','i18ns','addProcessHooks','customApiName','message','SchedulersReadF','writeFile','DBMastersReadF','fsLink','onclose','readFileSync','SIGTERM\x20received\x20—\x20shutting\x20down','am_schedulers','Third\x20party\x20API\x20settings','17067GkmqcF','copySchedulersToAnotherDir','am_instance_api_settings','Utility\x20classes','version','CollectionHooksWriteF','InstanceApiSettings','copyThirdPartyApisToAnotherDir','onerror','add','Instance\x20hooks','am_i18ns','sendToServer','.ts','webSocketURL','dirname','am_test_cases','copyEventsToAnotherDir','exports','promises','installRequiredPackages','getHours','normalizePath','all','CustomApiReadF','invalidOnEvents','SchemaReadF','fullSyncCounter','ProcessInitializers','listeners','toLowerCase','config','error','warn',']\x20:\x20[','✅\x20Dependencies\x20installed','am_instance_hooks','System\x20API\x20settings','paths','INSTANCE_API_HOOKS','752rQhHbw','child_process','stringify','Collection\x20hooks','System\x20API\x20hooks','node_modules','✅\x20node_modules\x20installed','✓\x20Receive\x20:\x20[','am_schemas','EventsWriteF','UNKNOWN','SCHEDULERS','DELETE','copyCustomApisToAnotherDir','Database\x20hooks','spawn','DBMasterStylesReadF','parseYaml','8721666yfgsRh','DB\x20master\x20utils','DatabaseHooksReadF','.yaml','schemas','SystemApiHooks','\x20Current\x20Dir\x20:\x20','tpInstalledApiName','✳️Open\x20folder\x20in\x20IDE\x20:\x20','web-socket-events','onopen','endsWith','SystemApiHooksWriteF','UtilityClasses','ProcessInitializersReadF','copyWebSocketEventsToAnotherDir','InstanceApiHooksWriteF','debounce','addDir','PROCESS_INITIALIZERS','am_events','2FYKDsZ','CustomApisWriteF','tpInstalledApiBundleName','Third\x20party\x20APIs','preHooks','LC_SEND_ALL_DATA','sendDeletedEventToServerDebounce','getChangedFolder','18CYFoNN','--no-save','removeEmptyDirsSync','eventListeners','getSeconds','copySystemApiHooksToAnotherDir','?authTokenInfo=ws-local-client-sync&authorization=','Watcher\x20error:','am_database_hooks','watch','am_tp_api_versions','uncaughtException','processReceivedEvent','printNotes','install','./local-client.config','createLCProjectDirectory','DATABASE_HOOKS','DB_MASTERS','am_ui_maker_utils','adminUserPath','am_tp_api_settings','eventType','unlinkDir','7349727JtjQee','am_ui_maker_styles','rmdirSync','dir','compilerOptions','statSync','exit','symlinkSync','copyDBMigrationsToAnotherDir','unhandledRejection','fsWriteFile','EVENTS','join','12615700dFHCmr','validOnEvents','connected','SchedulersWriteF','LC_FOLDER_CHANGED_ON_LOCAL_SYSTEM','ThirdPartyApiReadF'];a0_0x134b=function(){return _0x19aacd;};return a0_0x134b();}
|
|
1
|
+
function a0_0x5f36(){const _0x2790de=['unhandledRejection','.js','npm','copyEventsToAnotherDir','eventListeners','js-yaml','UNREGISTER','DBMasterUtilsWriteF','nodeModulesInstalled','✅\x20Connected\x20to\x20server\x20via\x20WS','copyDatabaseHooksToAnotherDir','CollectionHooksWriteF','padStart','DatabaseHooksWriteF','then','INSTANCE_HOOKS','SCHEDULERS','cpSync','SYSTEM_API_HOOKS','LC_DATA_MODIFIED_IN_DATABASE','collection-hooks','ProcessI18NReadF','DatabaseHooks','3BqhjxL','printNotes','tsconfig.json','Error\x20during\x20shutdown','warn','PUT_REPLACE','-lc','CollectionHooks','ws-events','databaseName','✓\x20Receive\x20:\x20[','config','InstanceApiHooks','SIGTERM','isActive','copyInstanceHooksToAnotherDir','COLLECTION_HOOKS','copySystemApiHooksToAnotherDir','InstanceHooksWriteF','post-hooks','SYSTEM_API_SETTINGS','length','system-apis','parse','normalize','webSocketURL','exports','instanceName','✓\x20Send\x20:\x20[','copyFilesToProjectDir','Connection\x20closed.','customApiName','shutdownAndExit','push','parseYaml','\x20The\x20local\x20client\x20will\x20pull\x20the\x20latest\x20changes\x20from\x20the\x20server\x20and\x20keep\x20them\x20synchronized\x20between\x20the\x20IDE\x20and\x20the\x20server.','SchemaReadF','path','INSTANCES','am_test_cases','LC_DATA_REQ_RES','?authTokenInfo=ws-local-client-sync&authorization=','writeMemfsJsonToDisk','name','SIGINT\x20received\x20—\x20shutting\x20down','&user-path=','getChangedFolder','am_tp_api_versions','\x1b[36m','onopen','Process\x20initializers','createLCProjectDirectory','amTypes','beforeExit','localClientPath','copyCustomApisToAnotherDir','\x1b[0m','SystemApiHooks','data',']\x20:\x20','PUT','web-socket-events','SchedulersWriteF','✳️Open\x20folder\x20in\x20IDE\x20:\x20','all','appRoot','getCategoryOfPath','utf8','UtilityClasses','EventsWriteF','.config.ts','DATABASE_HOOKS','isDirectory','am_tp_api_settings','.yaml','\x20Current\x20Dir\x20:\x20','getSeconds','tpInstalledApiBundleName','copyProcessInitializersToAnotherDir','.css','content','SYSTEM_APIS','skipWatchInputs','⏳\x20Dependencies\x20installation\x20process\x20started','toString','statSync','237730IozWrP','⏳\x20node_modules\x20installation\x20process\x20started','syncToken','WebSocket\x20events','UtilityClassesReadF','repo','syncAllDataWithServer','--force','UI_MAKER_STYLES','bind','InstanceHooks','2WvUpKR','Watcher\x20error:','55oXCeWQ','✅\x20Local\x20client\x20started...','copyDBMigrationsToAnotherDir','ProcessInitializers','startsWith','toLowerCase','fsMkDir','unlinkDir','ProcessI18NWriteF','sendDeletedEventToServerDebounce','copyInstanceApiHooksToAnotherDir','Instance\x20API\x20settings','Database\x20hooks','response','am_i18ns','watcher','load','pre-hooks','PROCESS_INITIALIZERS','schedulers','dirname','resolve','systemApiName','THIRD_PARTY_API_SETTINGS','1230302qhwWeo','versions','WebSocketEvents','tests','chokidar@4.0.3','paths','am_process_initializers','I18Ns','copyDBMasterStylesToAnotherDir','copyUtilityClassesToAnotherDir','sep','apply','serializeFolderWithBinary','stringify','TOKEN_VALIDATION','endsWith','i18ns','fullSyncCounter','apis','normalizePath','Third\x20party\x20APIs','LC_FOLDER_CHANGED_ON_LOCAL_SYSTEM','symlinkSync','db-migrations','Node.js\x2022+\x20is\x20required.\x20Current\x20version:\x20','DBMastersWriteF','connectToServerViaWS','ui-maker-utils','am_schedulers','POST','./local-client.config','start','am_instance_api_hooks','dbInterfacesFile','fsReadFile','THIRD_PARTY_APIS','UI_MAKER_UTILITY_CLASS','.gitignore','getChangedFolderForDeleted','rmdirSync','fsExistsSync','connected','ThirdPartyApiReadF','am_system_api_settings','add','am_db_masters','SchedulersReadF','SystemApiHooksWriteF','validOnEvents','am_instance_api_settings','⏳\x20Connecting\x20to\x20server...','process-initializers','copyI18NToAnotherDir','instance-api-hooks','readdir','Instance\x20API\x20hooks','ui-maker-styles','instances','INSTANCE_API_SETTINGS','--no-save','DELETE','spawn','AmEvents','✅\x20Dependencies\x20installed','sendToServer','join','DBMasterStylesReadF','ui-maker-pages',']\x20:\x20[','./src','version','replace','copySchedulersToAnotherDir','2400097lMOCSN','WebSocketEventsWriteF','AmTestCases','am_custom_apis','getCurrentTime','TestCasesReadF','CONNECTED','DBMasterStylesWriteF','slice','am_ui_maker_styles','Collection\x20hooks','checkForNodeVersion','error','close','link','log','change','DELETE_ALL','EVENTS_WS','NOTIFICATION','adminUserPath','fsWriteFile','I18NS','types','debounce','fsMkDirSync','EventsReadF','dir','package-lock.json','removeEmptyDirsSync','skipFileWritingForLocal','preHooks','apiCategory','compilerOptions','InstanceHooksReadF','instance-hooks','printNotesToProvideLocalClient','.ts','SIGTERM\x20received\x20—\x20shutting\x20down','am_system_api_hooks','Instance\x20hooks','1551PzBMuY','Failed\x20to\x20restart\x20watcher\x20after\x20full\x20sync','Custom\x20APIs','orangeStart','LOCAL_CLIENT_SYNC_EVENTS','chokidar','Events','getHours','776406oNbSxO','install','writeFile','filter','copyDBMastersToAnotherDir','src','readFileSync','shuttingDown','DB\x20masters','copyTestCasesToAnotherDir','UNKNOWN','invalidOnEvents','Please\x20run\x20using\x20administrator\x20privileges.','existsSync','basename','DB\x20master\x20utils','cyanStart','REGISTER','am_instance_hooks','copyCollectionHooksToAnotherDir','split','Schedulers','send','TestCasesWriteF','apiId','eventType','errors','relative','onerror','mkdir','✅\x20Full\x20Sync\x20:\x20[','\x1b[38;2;255;165;0m','copyDBMasterUtilsToAnotherDir','4183668MXtaMF','third-party-apis','CUSTOM_APIS','UTILITY_CLASSES','promises','copySchemasToAnotherDir','390396jTZFKq','addDir','SystemApiHooksReadF','Failed\x20to\x20start\x20the\x20npm\x20process:\x20','custom-apis','folderPath','postHooks','copyWebSocketEventsToAnotherDir','processReceivedEvent','unlink','SchemaWriteF','Third\x20party\x20API\x20settings','unlinkSync','projectDirectory','executeNpmRun','InstanceApiSettings','fsReadDir','Utility\x20classes','LC_SEND_ALL_DATA','eventData','node_modules','listeners','WebSocketEventsReadF','colorEnd','am_database_hooks','type','message','am-types','DBMigrationsWriteF','rmSync','base64','addProcessHooks','collectionName','InstanceApiHooksReadF','1141464sVdkZV','WEB_SOCKET_EVENT','sendDeletedEventToServerInternal','InstanceApiHooksWriteF','copyThirdPartyApisToAnotherDir','✅\x20node_modules\x20installed','ProcessInitializersReadF','CustomApis','onclose','posix','system-api-hooks','child_process','am_utility_classes','Error\x20while\x20connecting\x20to\x20WS\x20server.','Test\x20cases','db-interfaces.d.ts','——————————————————————————————————————————————————————————————————————————————————','package.json','fsLink','readDirCustom','exit','Schemas','SCHEMAS','DB_MIGRATIONS'];a0_0x5f36=function(){return _0x2790de;};return a0_0x5f36();}function a0_0x3987(_0xedbccd,_0x2b2044){_0xedbccd=_0xedbccd-0x1e2;const _0x5f36c8=a0_0x5f36();let _0x398730=_0x5f36c8[_0xedbccd];return _0x398730;}(function(_0x3c9c9f,_0x36827a){const _0x2ef972=a0_0x3987,_0x59f208=_0x3c9c9f();while(!![]){try{const _0x2bf0c1=-parseInt(_0x2ef972(0x300))/0x1*(parseInt(_0x2ef972(0x31a))/0x2)+parseInt(_0x2ef972(0x29f))/0x3*(parseInt(_0x2ef972(0x24e))/0x4)+-parseInt(_0x2ef972(0x302))/0x5*(parseInt(_0x2ef972(0x227))/0x6)+parseInt(_0x2ef972(0x1f6))/0x7+parseInt(_0x2ef972(0x270))/0x8+-parseInt(_0x2ef972(0x248))/0x9+parseInt(_0x2ef972(0x2f5))/0xa*(parseInt(_0x2ef972(0x21f))/0xb);if(_0x2bf0c1===_0x36827a)break;else _0x59f208['push'](_0x59f208['shift']());}catch(_0x49b249){_0x59f208['push'](_0x59f208['shift']());}}}(a0_0x5f36,0xc75c5),((()=>{'use strict';var _0x4ef900={0x3(_0x13d678){const _0x208725=a0_0x3987;_0x13d678['exports']=require(_0x208725(0x2c4));},0x59(_0x2fd296){const _0x1bf502=a0_0x3987;_0x2fd296[_0x1bf502(0x2b9)]=require(_0x1bf502(0x28d));},0xe7(_0x2d7e48){const _0x15fa2b=a0_0x3987;_0x2d7e48[_0x15fa2b(0x2b9)]=require(_0x15fa2b(0x224));},0x13d(_0x155974){const _0x2c92e8=a0_0x3987;_0x155974[_0x2c92e8(0x2b9)]=require(_0x2c92e8(0x27b));},0x1dc(_0x53e3aa,_0xbab3cf,_0x37aa79){const _0x4edce0=a0_0x3987;_0xbab3cf['vg']=_0xbab3cf['xu']=_0xbab3cf['kR']=_0xbab3cf['OW']=void 0x0;const _0x4150e8=_0x37aa79(0x380),_0x1d41e5=_0x37aa79(0x3),_0x4b830f=_0x37aa79(0x13d);var _0xc42bd9,_0x948973,_0x417c99,_0x210f1f,_0x4b7011,_0x2acfff;new class{constructor(){const _0x48517d=a0_0x3987;this['EL']=!0x1,this[_0x48517d(0x2e0)]=_0x1d41e5['resolve'](''),this['projectDirectory']='',this['C']={'localClientPath':_0x48517d(0x338),'src':_0x48517d(0x22c),'repo':'repo','types':_0x48517d(0x20d),'amTypes':_0x48517d(0x269),'versions':_0x48517d(0x31b),'apis':_0x48517d(0x32c),'listeners':'listeners','postHooks':_0x48517d(0x2b2),'preHooks':_0x48517d(0x313),'dbInterfacesFile':_0x48517d(0x27f),'UtilityClassesReadF':'Utility\x20classes','CustomApiReadF':_0x48517d(0x221),'SchedulersReadF':_0x48517d(0x23c),'WebSocketEventsReadF':_0x48517d(0x2f8),'SchemaReadF':_0x48517d(0x285),'DBMigrationsReadF':'Database\x20migrations','ProcessInitializersReadF':_0x48517d(0x2d1),'ProcessI18NReadF':_0x48517d(0x32a),'DBMastersReadF':_0x48517d(0x22f),'DBMasterStylesReadF':'UI\x20maker\x20styles','DBMasterUtilsReadF':'DB\x20master\x20utils','TestCasesReadF':_0x48517d(0x27e),'ThirdPartyApiReadF':_0x48517d(0x32e),'EventsReadF':_0x48517d(0x225),'InstanceApiHooksReadF':'Instance\x20API\x20hooks','SystemApiHooksReadF':'System\x20API\x20hooks','CollectionHooksReadF':_0x48517d(0x200),'DatabaseHooksReadF':'Database\x20hooks','InstanceHooksReadF':_0x48517d(0x21e),'CustomApisWriteF':_0x48517d(0x252),'SchedulersWriteF':_0x48517d(0x315),'WebSocketEventsWriteF':_0x48517d(0x2dc),'SchemaWriteF':'schemas','DBMigrationsWriteF':_0x48517d(0x331),'ProcessInitializersWriteF':_0x48517d(0x34d),'ProcessI18NWriteF':_0x48517d(0x32a),'DBMastersWriteF':_0x48517d(0x1f0),'DBMasterStylesWriteF':_0x48517d(0x1e5),'DBMasterUtilsWriteF':_0x48517d(0x335),'TestCasesWriteF':_0x48517d(0x31d),'ThirdPartyApiWriteF':_0x48517d(0x249),'EventsWriteF':'events','InstanceApiHooksWriteF':_0x48517d(0x1e2),'SystemApiHooksWriteF':_0x48517d(0x27a),'CollectionHooksWriteF':_0x48517d(0x29c),'DatabaseHooksWriteF':'database-hooks','InstanceHooksWriteF':_0x48517d(0x219)},this[_0x48517d(0x2f1)]=!0x1,this[_0x48517d(0x214)]={},this[_0x48517d(0x290)]=!0x1,this['orangeStart']=_0x48517d(0x246),this['cyanStart']=_0x48517d(0x2cf),this[_0x48517d(0x265)]='\x1b[0m',this[_0x48517d(0x32b)]=0x0,this[_0x48517d(0x30b)]=this[_0x48517d(0x20e)](this[_0x48517d(0x272)],0x1f4);}async[_0x4edce0(0x339)](){const _0x5bae91=_0x4edce0;this[_0x5bae91(0x26d)](),this['checkForNodeVersion'](),this['fsExistsSync'](this['C']['localClientPath']+_0x5bae91(0x289))||(this[_0x5bae91(0x21a)](),this[_0x5bae91(0x2bf)](0x1)[_0x5bae91(0x296)]()),this[_0x5bae91(0x2aa)]=require(this['C'][_0x5bae91(0x2d5)])(),await this['printNotes'](),this[_0x5bae91(0x213)](_0x1d41e5[_0x5bae91(0x1ee)](this['appRoot'],this['C'][_0x5bae91(0x22c)])),await this[_0x5bae91(0x2d2)](),await this[_0x5bae91(0x334)]();}[_0x4edce0(0x201)](){const _0x27dfbf=_0x4edce0,_0x323833=process['version'];parseInt(_0x323833[_0x27dfbf(0x23b)]('.')[0x0]['replace']('v',''),0xa)<0x16&&(console[_0x27dfbf(0x202)](this[_0x27dfbf(0x222)]+_0x27dfbf(0x332)+_0x323833+this[_0x27dfbf(0x265)]),this[_0x27dfbf(0x2bf)](0x1)[_0x27dfbf(0x296)]());}async[_0x4edce0(0x2a0)](){const _0x97673b=_0x4edce0;console[_0x97673b(0x205)](this[_0x97673b(0x222)]),console[_0x97673b(0x205)]('——————————————————————————————————————\x20Note\x20——————————————————————————————————————'),console['log'](_0x97673b(0x2c2)),console[_0x97673b(0x205)](_0x97673b(0x2ea)+this[_0x97673b(0x2e0)]),console['log'](_0x97673b(0x280)),console[_0x97673b(0x205)](this[_0x97673b(0x265)]),console[_0x97673b(0x205)]('');}[_0x4edce0(0x21a)](){const _0x3290cc=_0x4edce0;console['log'](_0x3290cc(0x246)),console[_0x3290cc(0x205)]('\x20Please\x20provide\x20settings\x20in\x20:\x20'+this['C']['localClientPath']+_0x3290cc(0x289)),console[_0x3290cc(0x205)](_0x3290cc(0x2d7)),console[_0x3290cc(0x205)]('');}async[_0x4edce0(0x2d2)](){const _0x49b712=_0x4edce0,_0x52c7f7=_0x1d41e5[_0x49b712(0x235)](this[_0x49b712(0x2e0)]),_0xfeb818=_0x1d41e5[_0x49b712(0x1ee)](this['appRoot'],'..',_0x52c7f7+_0x49b712(0x2a5));this['projectDirectory']=_0xfeb818,_0x4150e8[_0x49b712(0x26b)](_0xfeb818,{'recursive':!0x0,'force':!0x0}),await this[_0x49b712(0x308)](_0xfeb818,{'recursive':!0x0});}async[_0x4edce0(0x2bc)](_0x23c2a9){const _0x404f77=_0x4edce0;await this[_0x404f77(0x2d2)](),this[_0x404f77(0x20f)](_0x1d41e5[_0x404f77(0x1ee)](this['projectDirectory'],this['C'][_0x404f77(0x22c)]),{'recursive':!0x0}),_0x4150e8[_0x404f77(0x299)](_0x1d41e5[_0x404f77(0x1ee)](this['appRoot'],_0x404f77(0x281)),_0x1d41e5[_0x404f77(0x1ee)](this[_0x404f77(0x25b)],'package.json')),_0x4150e8[_0x404f77(0x299)](_0x1d41e5[_0x404f77(0x1ee)](this[_0x404f77(0x2e0)],_0x404f77(0x33f)),_0x1d41e5[_0x404f77(0x1ee)](this[_0x404f77(0x25b)],'.gitignore'));const _0x1061f5=_0x1d41e5['join'](this[_0x404f77(0x2e0)],_0x404f77(0x2a1)),_0x4784d4=JSON[_0x404f77(0x2b6)](await this[_0x404f77(0x33c)](_0x1061f5,{'encoding':_0x404f77(0x2e2)}));_0x4784d4[_0x404f77(0x217)]['baseUrl']=_0x404f77(0x1f2),_0x4784d4[_0x404f77(0x217)][_0x404f77(0x31f)]['*'][_0x404f77(0x2c0)]('*'),await this[_0x404f77(0x20b)](_0x1d41e5[_0x404f77(0x1ee)](this['projectDirectory'],_0x404f77(0x2a1)),JSON[_0x404f77(0x327)](_0x4784d4,null,0x4),{'encoding':_0x404f77(0x2e2)}),await _0x4150e8[_0x404f77(0x24c)]['cp'](_0x1d41e5[_0x404f77(0x1ee)](this[_0x404f77(0x2e0)],this['C']['amTypes']),_0x1d41e5[_0x404f77(0x1ee)](this[_0x404f77(0x25b)],this['C'][_0x404f77(0x22c)],this['C'][_0x404f77(0x2d3)]),{'recursive':!0x0}),await _0x4150e8[_0x404f77(0x24c)]['cp'](_0x1d41e5['join'](this[_0x404f77(0x2e0)],this['C'][_0x404f77(0x22c)],this[_0x404f77(0x2aa)][_0x404f77(0x20a)],this['C'][_0x404f77(0x20d)],this['C'][_0x404f77(0x33b)]),_0x1d41e5[_0x404f77(0x1ee)](this['projectDirectory'],this['C'][_0x404f77(0x22c)],this['C']['amTypes'],this['C']['dbInterfacesFile']),{'recursive':!0x0}),await this[_0x404f77(0x323)](),await this[_0x404f77(0x2d6)](),await this[_0x404f77(0x1f5)](),await this['copySchemasToAnotherDir'](),await this[_0x404f77(0x304)](),await this[_0x404f77(0x2ed)](),await this['copyI18NToAnotherDir'](),await this['copyTestCasesToAnotherDir'](),await this['copyThirdPartyApisToAnotherDir'](),await this[_0x404f77(0x28b)](),await this[_0x404f77(0x30c)](),await this[_0x404f77(0x2b0)](),await this[_0x404f77(0x255)](),await this[_0x404f77(0x23a)](),await this[_0x404f77(0x292)](),await this[_0x404f77(0x2ae)](),await this[_0x404f77(0x22b)](),await this[_0x404f77(0x322)](),await this[_0x404f77(0x247)](),_0x23c2a9&&(console['log'](_0x404f77(0x2f6)),await this[_0x404f77(0x25c)](_0x404f77(0x28a),[_0x404f77(0x228),_0x404f77(0x2fc)]),console[_0x404f77(0x205)](_0x404f77(0x275)),this[_0x404f77(0x290)]=!0x0);try{_0x4150e8[_0x404f77(0x330)](_0x1d41e5[_0x404f77(0x1ee)](this['appRoot'],_0x404f77(0x262)),_0x1d41e5[_0x404f77(0x1ee)](this[_0x404f77(0x25b)],_0x404f77(0x262)),_0x404f77(0x211));}catch(_0x5adbb3){console[_0x404f77(0x205)](_0x404f77(0x233)),console[_0x404f77(0x205)](_0x5adbb3),await this['shutdownAndExit'](0x1);}}async['installRequiredPackages'](){const _0x39a567=_0x4edce0;console[_0x39a567(0x205)](_0x39a567(0x2f2));try{_0x4150e8[_0x39a567(0x25a)](_0x1d41e5['join'](this[_0x39a567(0x2e0)],_0x39a567(0x212)));}catch(_0x3c321d){}await this[_0x39a567(0x25c)](_0x39a567(0x28a),[_0x39a567(0x228),_0x39a567(0x1e8),_0x39a567(0x31e),'js-yaml@4.1.0']),this[_0x39a567(0x290)]=!0x0,console[_0x39a567(0x205)](_0x39a567(0x1ec));}async['copyUtilityClassesToAnotherDir'](){const _0x463957=_0x4edce0,_0x4b8580=this['C'][_0x463957(0x2f9)],_0xc53e85=_0x1d41e5[_0x463957(0x1ee)](this[_0x463957(0x2e0)],this['C'][_0x463957(0x22c)],this[_0x463957(0x2aa)][_0x463957(0x20a)],_0x4b8580),_0x29abf4=await this[_0x463957(0x283)](_0xc53e85,null);for(const _0x4dd6df of _0x29abf4){const _0x4cb2ab=_0x1d41e5[_0x463957(0x1ee)](_0xc53e85,_0x4dd6df,_0x4dd6df+_0x463957(0x2e9));if(!this[_0x463957(0x342)](_0x4cb2ab))continue;const _0x47edc8=await this[_0x463957(0x33c)](_0x4cb2ab,{'encoding':_0x463957(0x2e2)}),_0x328bfd=await this[_0x463957(0x2c1)](_0x47edc8);for(const _0x438077 of _0x328bfd[_0x463957(0x31b)]||[])if(!0x0===_0x438077['isActive']){const _0x416098=_0x1d41e5['join'](_0xc53e85,_0x4dd6df,this['C'][_0x463957(0x31b)],_0x438077[_0x463957(0x1f3)],_0x438077[_0x463957(0x2ca)]+_0x463957(0x21b)),_0x974b9=_0x1d41e5[_0x463957(0x1ee)](this[_0x463957(0x25b)],this['C'][_0x463957(0x22c)],_0x328bfd[_0x463957(0x253)],_0x328bfd[_0x463957(0x2ca)]+_0x463957(0x21b));await this[_0x463957(0x308)](_0x1d41e5[_0x463957(0x316)](_0x974b9),{'recursive':!0x0}),await this[_0x463957(0x282)](_0x416098,_0x974b9);}}}async[_0x4edce0(0x2d6)](){const _0x43c43d=_0x4edce0,_0x59351d=this['C']['CustomApiReadF'],_0x506013=this['C']['CustomApisWriteF'],_0x4184b6=_0x1d41e5[_0x43c43d(0x1ee)](this['appRoot'],this['C'][_0x43c43d(0x22c)],this[_0x43c43d(0x2aa)][_0x43c43d(0x20a)],_0x59351d),_0x4a8eac=await this[_0x43c43d(0x283)](_0x4184b6,null);for(const _0x30db22 of _0x4a8eac){const _0x1cfe17=_0x1d41e5[_0x43c43d(0x1ee)](_0x4184b6,_0x30db22,_0x30db22+_0x43c43d(0x2e9));if(!this[_0x43c43d(0x342)](_0x1cfe17))continue;const _0x111d16=await this[_0x43c43d(0x33c)](_0x1cfe17,{'encoding':_0x43c43d(0x2e2)}),_0x2bdbd4=await this[_0x43c43d(0x2c1)](_0x111d16);for(const _0x17a9b5 of _0x2bdbd4[_0x43c43d(0x31b)]||[])if(!0x0===_0x17a9b5[_0x43c43d(0x2ad)]){const _0x51ca5c=_0x1d41e5['join'](_0x4184b6,_0x30db22,this['C'][_0x43c43d(0x31b)],_0x17a9b5[_0x43c43d(0x1f3)]),_0x39442f=_0x1d41e5[_0x43c43d(0x1ee)](_0x51ca5c,_0x17a9b5[_0x43c43d(0x2ca)]+'.ts'),_0x235176=_0x1d41e5[_0x43c43d(0x1ee)](this[_0x43c43d(0x25b)],this['C'][_0x43c43d(0x22c)],_0x506013,_0x2bdbd4['path'],_0x2bdbd4[_0x43c43d(0x2ca)]+_0x43c43d(0x21b));await this[_0x43c43d(0x308)](_0x1d41e5['dirname'](_0x235176),{'recursive':!0x0}),await this[_0x43c43d(0x282)](_0x39442f,_0x235176);const _0x7ea58d=_0x1d41e5[_0x43c43d(0x1ee)](_0x4184b6,_0x30db22,_0x30db22+'.config.ts'),_0x3d7dc1=_0x1d41e5[_0x43c43d(0x1ee)](this['projectDirectory'],this['C']['src'],_0x506013,_0x2bdbd4[_0x43c43d(0x2c4)],_0x2bdbd4[_0x43c43d(0x2ca)]+_0x43c43d(0x2e5));await this[_0x43c43d(0x282)](_0x7ea58d,_0x3d7dc1);for(const _0x4c992f of _0x17a9b5[_0x43c43d(0x215)]){const _0x5b53e9=_0x1d41e5[_0x43c43d(0x1ee)](_0x51ca5c,this['C']['preHooks'],_0x4c992f[_0x43c43d(0x2ca)]+'.ts'),_0x1a60c5=_0x1d41e5[_0x43c43d(0x1ee)](this[_0x43c43d(0x25b)],this['C']['src'],_0x506013,_0x2bdbd4[_0x43c43d(0x2c4)],this['C'][_0x43c43d(0x215)],_0x4c992f[_0x43c43d(0x2ca)]+'.ts');await this['fsMkDir'](_0x1d41e5[_0x43c43d(0x316)](_0x1a60c5),{'recursive':!0x0}),await this[_0x43c43d(0x282)](_0x5b53e9,_0x1a60c5);}for(const _0x5f484b of _0x17a9b5[_0x43c43d(0x254)]){const _0x535f06=_0x1d41e5['join'](_0x51ca5c,this['C'][_0x43c43d(0x254)],_0x5f484b[_0x43c43d(0x2ca)]+_0x43c43d(0x21b)),_0x520d38=_0x1d41e5[_0x43c43d(0x1ee)](this[_0x43c43d(0x25b)],this['C']['src'],_0x506013,_0x2bdbd4[_0x43c43d(0x2c4)],this['C']['postHooks'],_0x5f484b[_0x43c43d(0x2ca)]+_0x43c43d(0x21b));await this[_0x43c43d(0x308)](_0x1d41e5['dirname'](_0x520d38),{'recursive':!0x0}),await this['fsLink'](_0x535f06,_0x520d38);}}}}async[_0x4edce0(0x1f5)](){const _0x53ef09=_0x4edce0,_0x1bef9d=this['C'][_0x53ef09(0x348)],_0x596714=this['C'][_0x53ef09(0x2dd)],_0x5b72c0=_0x1d41e5[_0x53ef09(0x1ee)](this[_0x53ef09(0x2e0)],this['C'][_0x53ef09(0x22c)],this['config'][_0x53ef09(0x20a)],_0x1bef9d),_0x30ef4b=await this[_0x53ef09(0x283)](_0x5b72c0,null);for(const _0xc1ca61 of _0x30ef4b){const _0x564881=_0x1d41e5['join'](_0x5b72c0,_0xc1ca61,_0xc1ca61+_0x53ef09(0x2e9));if(!this[_0x53ef09(0x342)](_0x564881))continue;const _0x4503d2=await this[_0x53ef09(0x33c)](_0x564881,{'encoding':'utf8'}),_0x58c43e=await this[_0x53ef09(0x2c1)](_0x4503d2);for(const _0xe661e1 of _0x58c43e[_0x53ef09(0x31b)]||[])if(!0x0===_0xe661e1[_0x53ef09(0x2ad)]){const _0x52711d=_0x1d41e5[_0x53ef09(0x1ee)](_0x5b72c0,_0xc1ca61,this['C'][_0x53ef09(0x31b)],_0xe661e1[_0x53ef09(0x1f3)],_0xe661e1[_0x53ef09(0x2ca)]+_0x53ef09(0x21b)),_0x4c6e5e=_0x1d41e5[_0x53ef09(0x1ee)](this['projectDirectory'],this['C']['src'],_0x596714,_0x58c43e[_0x53ef09(0x2ca)]+_0x53ef09(0x21b));await this[_0x53ef09(0x308)](_0x1d41e5['dirname'](_0x4c6e5e),{'recursive':!0x0}),await this[_0x53ef09(0x282)](_0x52711d,_0x4c6e5e);}}}async[_0x4edce0(0x24d)](){const _0x59e5db=_0x4edce0,_0x3f26db=this['C'][_0x59e5db(0x2c3)],_0x2bf659=this['C'][_0x59e5db(0x258)],_0xfb8e2d=_0x1d41e5[_0x59e5db(0x1ee)](this[_0x59e5db(0x2e0)],this['C']['src'],this[_0x59e5db(0x2aa)][_0x59e5db(0x20a)],_0x3f26db),_0xefd057=await this['readDirCustom'](_0xfb8e2d,null);for(const _0x5e4ece of _0xefd057){const _0x3bb606=_0x1d41e5[_0x59e5db(0x1ee)](_0xfb8e2d,_0x5e4ece,_0x5e4ece+_0x59e5db(0x2e9));if(!this[_0x59e5db(0x342)](_0x3bb606))continue;const _0x109bb9=await this[_0x59e5db(0x33c)](_0x3bb606,{'encoding':_0x59e5db(0x2e2)}),_0x217d1c=await this[_0x59e5db(0x2c1)](_0x109bb9),_0x4d733b=_0x1d41e5[_0x59e5db(0x1ee)](this[_0x59e5db(0x25b)],this['C'][_0x59e5db(0x22c)],_0x2bf659,_0x217d1c[_0x59e5db(0x2ba)],_0x217d1c[_0x59e5db(0x2a8)]);await this[_0x59e5db(0x308)](_0x4d733b,{'recursive':!0x0});const _0x4072cf=_0x1d41e5[_0x59e5db(0x1ee)](_0xfb8e2d,_0x5e4ece,_0x217d1c[_0x59e5db(0x26e)]+_0x59e5db(0x2e5)),_0x517a6c=_0x1d41e5[_0x59e5db(0x1ee)](_0x4d733b,_0x217d1c[_0x59e5db(0x26e)]+_0x59e5db(0x2e5));await this[_0x59e5db(0x282)](_0x4072cf,_0x517a6c);}}async[_0x4edce0(0x304)](){const _0x2f7983=_0x4edce0,_0x420deb=this['C']['DBMigrationsReadF'],_0x1ae9ad=this['C'][_0x2f7983(0x26a)],_0x557701=_0x1d41e5['join'](this[_0x2f7983(0x2e0)],this['C'][_0x2f7983(0x22c)],this[_0x2f7983(0x2aa)][_0x2f7983(0x20a)],_0x420deb),_0x47c87c=await this[_0x2f7983(0x283)](_0x557701,null);for(const _0x263995 of _0x47c87c){const _0x425c9b=_0x1d41e5['join'](_0x557701,_0x263995,_0x263995+_0x2f7983(0x2e9));if(!this['fsExistsSync'](_0x425c9b))continue;const _0x4efa25=await this[_0x2f7983(0x33c)](_0x425c9b,{'encoding':_0x2f7983(0x2e2)}),_0x5bad11=await this['parseYaml'](_0x4efa25),_0x366208=_0x1d41e5[_0x2f7983(0x1ee)](this[_0x2f7983(0x25b)],this['C']['src'],_0x1ae9ad);await this[_0x2f7983(0x308)](_0x366208,{'recursive':!0x0});const _0x402957=_0x1d41e5['join'](_0x557701,_0x263995,_0x5bad11['name']+'.ts'),_0x3b9fbb=_0x1d41e5['join'](_0x366208,_0x5bad11['name']+'.ts');await this['fsLink'](_0x402957,_0x3b9fbb);}}async[_0x4edce0(0x2ed)](){const _0x1fe5ff=_0x4edce0,_0x478289=this['C'][_0x1fe5ff(0x276)],_0x1fe074=this['C']['ProcessInitializersWriteF'],_0x48048f=_0x1d41e5['join'](this[_0x1fe5ff(0x2e0)],this['C'][_0x1fe5ff(0x22c)],this[_0x1fe5ff(0x2aa)][_0x1fe5ff(0x20a)],_0x478289),_0x22f221=await this[_0x1fe5ff(0x283)](_0x48048f,null);for(const _0x5b6087 of _0x22f221){const _0x2a6dd7=_0x1d41e5[_0x1fe5ff(0x1ee)](_0x48048f,_0x5b6087,_0x5b6087+_0x1fe5ff(0x2e9));if(!this[_0x1fe5ff(0x342)](_0x2a6dd7))continue;const _0x23f8f3=await this[_0x1fe5ff(0x33c)](_0x2a6dd7,{'encoding':_0x1fe5ff(0x2e2)}),_0x1a9140=await this[_0x1fe5ff(0x2c1)](_0x23f8f3),_0x2a908d=_0x1d41e5['join'](this['projectDirectory'],this['C'][_0x1fe5ff(0x22c)],_0x1fe074);await this[_0x1fe5ff(0x308)](_0x2a908d,{'recursive':!0x0});const _0x357fad=_0x1d41e5[_0x1fe5ff(0x1ee)](_0x48048f,_0x5b6087,_0x1a9140[_0x1fe5ff(0x2ca)]+_0x1fe5ff(0x21b)),_0x365fbf=_0x1d41e5[_0x1fe5ff(0x1ee)](_0x2a908d,_0x1a9140[_0x1fe5ff(0x2ca)]+_0x1fe5ff(0x21b));await this[_0x1fe5ff(0x282)](_0x357fad,_0x365fbf);}}async[_0x4edce0(0x34e)](){const _0x593a30=_0x4edce0,_0x42a367=this['C'][_0x593a30(0x29d)],_0x4e7855=this['C'][_0x593a30(0x30a)],_0x57d210=_0x1d41e5[_0x593a30(0x1ee)](this[_0x593a30(0x2e0)],this['C'][_0x593a30(0x22c)],this[_0x593a30(0x2aa)]['adminUserPath'],_0x42a367),_0x37d594=await this[_0x593a30(0x283)](_0x57d210,null);for(const _0x17ce3f of _0x37d594){const _0x12eff7=_0x1d41e5[_0x593a30(0x1ee)](_0x57d210,_0x17ce3f,_0x17ce3f+_0x593a30(0x2e9));if(!this[_0x593a30(0x342)](_0x12eff7))continue;const _0x3238b7=await this['fsReadFile'](_0x12eff7,{'encoding':'utf8'}),_0x114412=await this[_0x593a30(0x2c1)](_0x3238b7),_0x4122c9=_0x1d41e5['join'](this[_0x593a30(0x25b)],this['C'][_0x593a30(0x22c)],_0x4e7855);await this[_0x593a30(0x308)](_0x4122c9,{'recursive':!0x0});const _0x448574=_0x1d41e5[_0x593a30(0x1ee)](_0x57d210,_0x17ce3f,_0x114412[_0x593a30(0x2ca)]+_0x593a30(0x21b)),_0x3d5136=_0x1d41e5[_0x593a30(0x1ee)](_0x4122c9,_0x114412[_0x593a30(0x2ca)]+_0x593a30(0x21b));await this[_0x593a30(0x282)](_0x448574,_0x3d5136);}}async[_0x4edce0(0x22b)](){const _0x1dad26=_0x4edce0,_0x2d16e5=this['C']['DBMastersReadF'],_0x53782f=this['C'][_0x1dad26(0x333)],_0x3fee73=_0x1d41e5[_0x1dad26(0x1ee)](this[_0x1dad26(0x2e0)],this['C'][_0x1dad26(0x22c)],this[_0x1dad26(0x2aa)]['adminUserPath'],_0x2d16e5),_0x10d06d=await this[_0x1dad26(0x283)](_0x3fee73,null);for(const _0x394be6 of _0x10d06d){const _0x1e787c=_0x1d41e5[_0x1dad26(0x1ee)](_0x3fee73,_0x394be6,_0x394be6+_0x1dad26(0x2e9));if(!this[_0x1dad26(0x342)](_0x1e787c))continue;const _0x3046bb=await this[_0x1dad26(0x33c)](_0x1e787c,{'encoding':_0x1dad26(0x2e2)}),_0x253ecf=await this['parseYaml'](_0x3046bb),_0x261092=_0x1d41e5[_0x1dad26(0x1ee)](this[_0x1dad26(0x25b)],this['C'][_0x1dad26(0x22c)],_0x53782f,_0x253ecf[_0x1dad26(0x2ca)]);await this[_0x1dad26(0x308)](_0x261092,{'recursive':!0x0});const _0x2af283=_0x1d41e5[_0x1dad26(0x1ee)](_0x3fee73,_0x394be6,_0x253ecf['name']+'.ts'),_0x57341b=_0x1d41e5['join'](_0x261092,_0x253ecf[_0x1dad26(0x2ca)]+_0x1dad26(0x21b));await this[_0x1dad26(0x282)](_0x2af283,_0x57341b);const _0x44e0ec=_0x1d41e5[_0x1dad26(0x1ee)](_0x3fee73,_0x394be6,_0x253ecf[_0x1dad26(0x2ca)]+_0x1dad26(0x2e5)),_0x3bf483=_0x1d41e5['join'](_0x261092,_0x253ecf[_0x1dad26(0x2ca)]+'.config.ts');await this[_0x1dad26(0x282)](_0x44e0ec,_0x3bf483);}}async[_0x4edce0(0x322)](){const _0x634b7f=_0x4edce0,_0x569c54=this['C'][_0x634b7f(0x1ef)],_0x47a512=this['C'][_0x634b7f(0x1fd)],_0x5bba2d=_0x1d41e5[_0x634b7f(0x1ee)](this[_0x634b7f(0x2e0)],this['C']['src'],this[_0x634b7f(0x2aa)][_0x634b7f(0x20a)],_0x569c54),_0x585fc1=await this[_0x634b7f(0x283)](_0x5bba2d,null);for(const _0x351f6f of _0x585fc1){const _0x22de71=_0x1d41e5[_0x634b7f(0x1ee)](_0x5bba2d,_0x351f6f,_0x351f6f+_0x634b7f(0x2e9));if(!this[_0x634b7f(0x342)](_0x22de71))continue;const _0x299110=await this[_0x634b7f(0x33c)](_0x22de71,{'encoding':_0x634b7f(0x2e2)}),_0x536735=await this[_0x634b7f(0x2c1)](_0x299110),_0x1dbe7b=_0x1d41e5[_0x634b7f(0x1ee)](this[_0x634b7f(0x25b)],this['C']['src'],_0x47a512);await this[_0x634b7f(0x308)](_0x1dbe7b,{'recursive':!0x0});const _0x31e537=_0x1d41e5[_0x634b7f(0x1ee)](_0x5bba2d,_0x351f6f,_0x536735[_0x634b7f(0x2ca)]+_0x634b7f(0x2ee)),_0x315d7a=_0x1d41e5[_0x634b7f(0x1ee)](_0x1dbe7b,_0x536735[_0x634b7f(0x2ca)]+'.css');await this[_0x634b7f(0x282)](_0x31e537,_0x315d7a);}}async['copyDBMasterUtilsToAnotherDir'](){const _0x4d74d6=_0x4edce0,_0x42a5cb=this['C']['DBMasterUtilsReadF'],_0x181221=this['C'][_0x4d74d6(0x28f)],_0x5470b8=_0x1d41e5['join'](this['appRoot'],this['C'][_0x4d74d6(0x22c)],this[_0x4d74d6(0x2aa)]['adminUserPath'],_0x42a5cb),_0x4d7316=await this[_0x4d74d6(0x283)](_0x5470b8,null);for(const _0x3cfec4 of _0x4d7316){const _0x341a7e=_0x1d41e5[_0x4d74d6(0x1ee)](_0x5470b8,_0x3cfec4,_0x3cfec4+_0x4d74d6(0x2e9));if(!this['fsExistsSync'](_0x341a7e))continue;const _0x49bc2d=await this[_0x4d74d6(0x33c)](_0x341a7e,{'encoding':_0x4d74d6(0x2e2)}),_0x14b267=await this[_0x4d74d6(0x2c1)](_0x49bc2d),_0x498378=_0x1d41e5[_0x4d74d6(0x1ee)](this[_0x4d74d6(0x25b)],this['C'][_0x4d74d6(0x22c)],_0x181221);await this[_0x4d74d6(0x308)](_0x498378,{'recursive':!0x0});const _0x21b321=_0x1d41e5[_0x4d74d6(0x1ee)](_0x5470b8,_0x3cfec4,_0x14b267['name']+_0x4d74d6(0x21b)),_0xdd5ead=_0x1d41e5['join'](_0x498378,_0x14b267[_0x4d74d6(0x2ca)]+'.ts');await this[_0x4d74d6(0x282)](_0x21b321,_0xdd5ead);}}async[_0x4edce0(0x230)](){const _0x2590d4=_0x4edce0,_0x4b6c0e=this['C'][_0x2590d4(0x1fb)],_0x50bb0f=this['C'][_0x2590d4(0x23e)],_0x27e04c=_0x1d41e5[_0x2590d4(0x1ee)](this[_0x2590d4(0x2e0)],this['C'][_0x2590d4(0x22c)],this['config']['adminUserPath'],_0x4b6c0e),_0x44dd1c=await this['readDirCustom'](_0x27e04c,null);for(const _0x1e1603 of _0x44dd1c){const _0x18398a=_0x1d41e5[_0x2590d4(0x1ee)](_0x27e04c,_0x1e1603,_0x1e1603+'.yaml');if(!this[_0x2590d4(0x342)](_0x18398a))continue;const _0x4617cf=await this[_0x2590d4(0x33c)](_0x18398a,{'encoding':'utf8'}),_0x190e07=await this[_0x2590d4(0x2c1)](_0x4617cf),_0x1420e8=_0x1d41e5['join'](this[_0x2590d4(0x25b)],this['C'][_0x2590d4(0x22c)],_0x50bb0f);await this[_0x2590d4(0x308)](_0x1420e8,{'recursive':!0x0});const _0x390abd=_0x1d41e5[_0x2590d4(0x1ee)](_0x27e04c,_0x1e1603,_0x190e07[_0x2590d4(0x2ca)]+_0x2590d4(0x21b)),_0x2a403f=_0x1d41e5[_0x2590d4(0x1ee)](_0x1420e8,_0x190e07[_0x2590d4(0x2ca)]+_0x2590d4(0x21b));await this[_0x2590d4(0x282)](_0x390abd,_0x2a403f);}}async[_0x4edce0(0x274)](){const _0x344710=_0x4edce0,_0x3241dd=this['C'][_0x344710(0x344)],_0x3ee00e=this['C']['ThirdPartyApiWriteF'],_0x13291c=_0x1d41e5[_0x344710(0x1ee)](this[_0x344710(0x2e0)],this['C'][_0x344710(0x22c)],this['config']['adminUserPath'],_0x3241dd);if(!this[_0x344710(0x342)](_0x13291c))return;const _0x5a1ca2=await this[_0x344710(0x283)](_0x13291c,null);for(const _0xcc5b3 of _0x5a1ca2){const _0x1c7d10=_0x1d41e5[_0x344710(0x1ee)](_0x13291c,_0xcc5b3,this['C'][_0x344710(0x32c)]),_0x2052b6=await this[_0x344710(0x283)](_0x1c7d10,null);for(const _0x2871ad of _0x2052b6){const _0x4365f9=_0x1d41e5[_0x344710(0x1ee)](_0x1c7d10,_0x2871ad,_0x2871ad+_0x344710(0x2e9));if(!this[_0x344710(0x342)](_0x4365f9))continue;const _0x167ed5=await this[_0x344710(0x33c)](_0x4365f9,{'encoding':_0x344710(0x2e2)}),_0x729e98=await this[_0x344710(0x2c1)](_0x167ed5);for(const _0x247294 of _0x729e98['versions']||[])if(!0x0===_0x247294['isActive']){const _0x3348eb=_0x1d41e5['join'](_0x1c7d10,_0x2871ad,this['C'][_0x344710(0x31b)],_0x247294['version']),_0x534da2=_0x1d41e5[_0x344710(0x1ee)](_0x3348eb,_0x247294[_0x344710(0x2ca)]+_0x344710(0x21b)),_0xeb1478=_0x1d41e5[_0x344710(0x1ee)](this[_0x344710(0x25b)],this['C']['src'],_0x3ee00e,_0xcc5b3,_0x729e98[_0x344710(0x2c4)],_0x729e98[_0x344710(0x2ca)]+_0x344710(0x21b));await this['fsMkDir'](_0x1d41e5[_0x344710(0x316)](_0xeb1478),{'recursive':!0x0}),await this[_0x344710(0x282)](_0x534da2,_0xeb1478);const _0x1852ee=_0x1d41e5[_0x344710(0x1ee)](_0x1c7d10,_0x2871ad,_0x2871ad+_0x344710(0x2e5)),_0x22830e=_0x1d41e5[_0x344710(0x1ee)](this[_0x344710(0x25b)],this['C'][_0x344710(0x22c)],_0x3ee00e,_0xcc5b3,_0x729e98['path'],_0x729e98[_0x344710(0x2ca)]+'.config.ts');await this[_0x344710(0x282)](_0x1852ee,_0x22830e);for(const _0x22eea0 of _0x247294['preHooks']){const _0x3e10e7=_0x1d41e5[_0x344710(0x1ee)](_0x3348eb,this['C'][_0x344710(0x215)],_0x22eea0[_0x344710(0x2ca)]+_0x344710(0x21b)),_0x4cd5c5=_0x1d41e5[_0x344710(0x1ee)](this[_0x344710(0x25b)],this['C'][_0x344710(0x22c)],_0x3ee00e,_0xcc5b3,_0x729e98[_0x344710(0x2c4)],this['C'][_0x344710(0x215)],_0x22eea0[_0x344710(0x2ca)]+_0x344710(0x21b));await this[_0x344710(0x308)](_0x1d41e5[_0x344710(0x316)](_0x4cd5c5),{'recursive':!0x0}),await this[_0x344710(0x282)](_0x3e10e7,_0x4cd5c5);}for(const _0x528b8e of _0x247294[_0x344710(0x254)]){const _0x27b1cb=_0x1d41e5['join'](_0x3348eb,this['C'][_0x344710(0x254)],_0x528b8e[_0x344710(0x2ca)]+_0x344710(0x21b)),_0x516ff4=_0x1d41e5[_0x344710(0x1ee)](this[_0x344710(0x25b)],this['C'][_0x344710(0x22c)],_0x3ee00e,_0xcc5b3,_0x729e98[_0x344710(0x2c4)],this['C']['postHooks'],_0x528b8e['name']+_0x344710(0x21b));await this['fsMkDir'](_0x1d41e5['dirname'](_0x516ff4),{'recursive':!0x0}),await this[_0x344710(0x282)](_0x27b1cb,_0x516ff4);}}}}}async['copyEventsToAnotherDir'](){const _0x5308a5=_0x4edce0,_0x5d6305=this['C'][_0x5308a5(0x210)],_0x47a27d=this['C'][_0x5308a5(0x2e4)],_0x40ae7e=_0x1d41e5[_0x5308a5(0x1ee)](this[_0x5308a5(0x2e0)],this['C'][_0x5308a5(0x22c)],this[_0x5308a5(0x2aa)]['adminUserPath'],_0x5d6305),_0x3d4c9d=await this[_0x5308a5(0x283)](_0x40ae7e,null);for(const _0x4c5a3d of _0x3d4c9d){const _0x45437d=_0x1d41e5[_0x5308a5(0x1ee)](_0x40ae7e,_0x4c5a3d,_0x4c5a3d+_0x5308a5(0x2e9));if(!this[_0x5308a5(0x342)](_0x45437d))continue;const _0x5b4817=await this[_0x5308a5(0x33c)](_0x45437d,{'encoding':_0x5308a5(0x2e2)}),_0x2d6fff=await this['parseYaml'](_0x5b4817),_0x49b8cc=_0x1d41e5['join'](_0x40ae7e,_0x4c5a3d,this['C'][_0x5308a5(0x263)]);for(const _0x4f528e of _0x2d6fff[_0x5308a5(0x28c)])for(const _0x45c790 of _0x4f528e[_0x5308a5(0x31b)]||[])if(!0x0===_0x45c790[_0x5308a5(0x2ad)]){const _0x260e8f=_0x1d41e5[_0x5308a5(0x1ee)](_0x49b8cc,_0x4f528e['name'],this['C']['versions'],_0x45c790[_0x5308a5(0x1f3)],_0x45c790['name']+'.ts'),_0x22a5fb=_0x1d41e5[_0x5308a5(0x1ee)](this[_0x5308a5(0x25b)],this['C'][_0x5308a5(0x22c)],_0x47a27d,_0x2d6fff[_0x5308a5(0x2ca)],_0x4f528e['name']+_0x5308a5(0x21b));await this[_0x5308a5(0x308)](_0x1d41e5[_0x5308a5(0x316)](_0x22a5fb),{'recursive':!0x0}),await this[_0x5308a5(0x282)](_0x260e8f,_0x22a5fb);}}}async['copyInstanceApiHooksToAnotherDir'](){const _0x1074b8=_0x4edce0,_0x1a99b4=this['C'][_0x1074b8(0x26f)],_0xf670b1=this['C'][_0x1074b8(0x273)],_0x3bfae4=_0x1d41e5[_0x1074b8(0x1ee)](this[_0x1074b8(0x2e0)],this['C'][_0x1074b8(0x22c)],this[_0x1074b8(0x2aa)]['adminUserPath'],_0x1a99b4),_0x1b4fa3=await this['readDirCustom'](_0x3bfae4,null);for(const _0x325372 of _0x1b4fa3){const _0x2b5712=_0x1d41e5[_0x1074b8(0x1ee)](_0x3bfae4,_0x325372,_0x325372+_0x1074b8(0x2e9));if(!this['fsExistsSync'](_0x2b5712))continue;const _0x190380=await this['fsReadFile'](_0x2b5712,{'encoding':_0x1074b8(0x2e2)}),_0x57660f=await this['parseYaml'](_0x190380),_0x5acb06=_0x1d41e5[_0x1074b8(0x1ee)](_0x3bfae4,_0x325372),_0x515b1c=_0x57660f[_0x1074b8(0x2ba)]+'/'+_0x57660f[_0x1074b8(0x2a8)]+'/'+_0x57660f['collectionName']+'/'+_0x57660f[_0x1074b8(0x23f)]['toLowerCase']();for(const _0x440d3d of _0x57660f[_0x1074b8(0x215)]){const _0x2b6300=_0x1d41e5['join'](_0x5acb06,this['C'][_0x1074b8(0x215)],_0x440d3d[_0x1074b8(0x2ca)]+_0x1074b8(0x21b)),_0x51c664=_0x1d41e5[_0x1074b8(0x1ee)](this[_0x1074b8(0x25b)],this['C'][_0x1074b8(0x22c)],_0xf670b1,_0x515b1c,this['C']['preHooks'],_0x440d3d['name']+_0x1074b8(0x21b));await this[_0x1074b8(0x308)](_0x1d41e5[_0x1074b8(0x316)](_0x51c664),{'recursive':!0x0}),await this[_0x1074b8(0x282)](_0x2b6300,_0x51c664);}for(const _0x2b7f7e of _0x57660f[_0x1074b8(0x254)]){const _0x2922f1=_0x1d41e5[_0x1074b8(0x1ee)](_0x5acb06,this['C'][_0x1074b8(0x254)],_0x2b7f7e['name']+_0x1074b8(0x21b)),_0x444cc4=_0x1d41e5[_0x1074b8(0x1ee)](this['projectDirectory'],this['C']['src'],_0xf670b1,_0x515b1c,this['C']['postHooks'],_0x2b7f7e[_0x1074b8(0x2ca)]+_0x1074b8(0x21b));await this['fsMkDir'](_0x1d41e5[_0x1074b8(0x316)](_0x444cc4),{'recursive':!0x0}),await this[_0x1074b8(0x282)](_0x2922f1,_0x444cc4);}}}async[_0x4edce0(0x2b0)](){const _0x540869=_0x4edce0,_0x168e1d=this['C'][_0x540869(0x250)],_0x44bbf3=this['C'][_0x540869(0x349)],_0x5076f6=_0x1d41e5['join'](this[_0x540869(0x2e0)],this['C'][_0x540869(0x22c)],this[_0x540869(0x2aa)][_0x540869(0x20a)],_0x168e1d),_0x2ea75d=await this[_0x540869(0x283)](_0x5076f6,null);for(const _0x5f425b of _0x2ea75d){const _0xf7983c=_0x1d41e5[_0x540869(0x1ee)](_0x5076f6,_0x5f425b,_0x5f425b+_0x540869(0x2e9));if(!this[_0x540869(0x342)](_0xf7983c))continue;const _0x5045b4=await this[_0x540869(0x33c)](_0xf7983c,{'encoding':_0x540869(0x2e2)}),_0x1e0d22=await this[_0x540869(0x2c1)](_0x5045b4),_0xe91aa1=_0x1d41e5[_0x540869(0x1ee)](_0x5076f6,_0x5f425b),_0x18b4f8=_0x1e0d22['apiId'][_0x540869(0x307)]();for(const _0x15d2f0 of _0x1e0d22[_0x540869(0x215)]){const _0x58d9f1=_0x1d41e5[_0x540869(0x1ee)](_0xe91aa1,this['C'][_0x540869(0x215)],_0x15d2f0[_0x540869(0x2ca)]+_0x540869(0x21b)),_0x324117=_0x1d41e5['join'](this[_0x540869(0x25b)],this['C'][_0x540869(0x22c)],_0x44bbf3,_0x18b4f8,this['C'][_0x540869(0x215)],_0x15d2f0[_0x540869(0x2ca)]+'.ts');await this[_0x540869(0x308)](_0x1d41e5['dirname'](_0x324117),{'recursive':!0x0}),await this[_0x540869(0x282)](_0x58d9f1,_0x324117);}for(const _0x45a770 of _0x1e0d22['postHooks']){const _0xa99295=_0x1d41e5[_0x540869(0x1ee)](_0xe91aa1,this['C'][_0x540869(0x254)],_0x45a770['name']+_0x540869(0x21b)),_0x390086=_0x1d41e5[_0x540869(0x1ee)](this[_0x540869(0x25b)],this['C'][_0x540869(0x22c)],_0x44bbf3,_0x18b4f8,this['C'][_0x540869(0x254)],_0x45a770[_0x540869(0x2ca)]+'.ts');await this['fsMkDir'](_0x1d41e5[_0x540869(0x316)](_0x390086),{'recursive':!0x0}),await this['fsLink'](_0xa99295,_0x390086);}}}async[_0x4edce0(0x255)](){const _0x185697=_0x4edce0,_0x3c8765=this['C'][_0x185697(0x264)],_0x5c7778=this['C'][_0x185697(0x1f7)],_0x13ba36=_0x1d41e5[_0x185697(0x1ee)](this['appRoot'],this['C']['src'],this[_0x185697(0x2aa)][_0x185697(0x20a)],_0x3c8765),_0x160fa1=await this[_0x185697(0x283)](_0x13ba36,null);for(const _0x1f7f54 of _0x160fa1){const _0x310291=_0x1d41e5[_0x185697(0x1ee)](_0x13ba36,_0x1f7f54,_0x1f7f54+_0x185697(0x2e9));if(!this[_0x185697(0x342)](_0x310291))continue;const _0xc68314=await this['fsReadFile'](_0x310291,{'encoding':_0x185697(0x2e2)}),_0x2b5a57=await this[_0x185697(0x2c1)](_0xc68314);for(const _0x33ff5a of _0x2b5a57[_0x185697(0x31b)]||[])if(!0x0===_0x33ff5a[_0x185697(0x2ad)]){const _0x142bd4=_0x1d41e5['join'](_0x13ba36,_0x1f7f54,this['C'][_0x185697(0x31b)],_0x33ff5a[_0x185697(0x1f3)],_0x33ff5a['name']+_0x185697(0x21b));let _0x399221='',_0x49687e='';_0x2b5a57[_0x185697(0x216)]===_0xc42bd9[_0x185697(0x2c5)]?(_0x49687e=_0x185697(0x1e6),_0x399221=_0x2b5a57[_0x185697(0x2ba)]+'/'+_0x2b5a57['databaseName']+'/'+_0x2b5a57['collectionName']+'/'+_0x2b5a57['instanceApiName'][_0x185697(0x307)]()):_0x2b5a57[_0x185697(0x216)]===_0xc42bd9[_0x185697(0x33d)]?(_0x49687e=_0x185697(0x249),_0x399221=_0x2b5a57[_0x185697(0x2ec)]+'/'+_0x2b5a57['tpInstalledApiName']):_0x2b5a57[_0x185697(0x216)]===_0xc42bd9[_0x185697(0x24a)]?(_0x49687e=_0x185697(0x252),_0x399221=_0x2b5a57[_0x185697(0x2be)]):_0x2b5a57[_0x185697(0x216)]===_0xc42bd9[_0x185697(0x2f0)]?(_0x49687e=_0x185697(0x2b5),_0x399221=_0x2b5a57[_0x185697(0x318)]['toLowerCase']()):_0x2b5a57[_0x185697(0x216)]===_0xc42bd9[_0x185697(0x271)]&&(_0x49687e=_0x185697(0x2a7),_0x399221=_0x2b5a57[_0x185697(0x2ca)]);const _0x59e25a=_0x1d41e5[_0x185697(0x1ee)](this[_0x185697(0x25b)],this['C'][_0x185697(0x22c)],_0x5c7778,_0x49687e,_0x399221+_0x185697(0x21b));await this[_0x185697(0x308)](_0x1d41e5['dirname'](_0x59e25a),{'recursive':!0x0}),await this[_0x185697(0x282)](_0x142bd4,_0x59e25a);}}}async[_0x4edce0(0x23a)](){const _0x5f3ed1=_0x4edce0,_0x1a7b3b=this['C']['CollectionHooksReadF'],_0x1ce4a4=this['C'][_0x5f3ed1(0x293)],_0xbaabad=_0x1d41e5['join'](this['appRoot'],this['C'][_0x5f3ed1(0x22c)],this[_0x5f3ed1(0x2aa)][_0x5f3ed1(0x20a)],_0x1a7b3b),_0x4ef08e=await this[_0x5f3ed1(0x283)](_0xbaabad,null);for(const _0x51e3a6 of _0x4ef08e){const _0x4628e8=_0x1d41e5['join'](_0xbaabad,_0x51e3a6,_0x51e3a6+_0x5f3ed1(0x2e9));if(!this['fsExistsSync'](_0x4628e8))continue;const _0x476342=await this[_0x5f3ed1(0x33c)](_0x4628e8,{'encoding':_0x5f3ed1(0x2e2)}),_0x830710=await this[_0x5f3ed1(0x2c1)](_0x476342),_0x509e6c=_0x1d41e5[_0x5f3ed1(0x1ee)](_0xbaabad,_0x51e3a6),_0x5936e6=_0x830710[_0x5f3ed1(0x2ba)]+'/'+_0x830710['databaseName']+'/'+_0x830710[_0x5f3ed1(0x26e)];for(const _0x2ee800 of _0x830710[_0x5f3ed1(0x215)]){const _0x538e8f=_0x1d41e5[_0x5f3ed1(0x1ee)](_0x509e6c,this['C'][_0x5f3ed1(0x215)],_0x2ee800[_0x5f3ed1(0x2ca)]+_0x5f3ed1(0x21b)),_0x5975af=_0x1d41e5['join'](this[_0x5f3ed1(0x25b)],this['C'][_0x5f3ed1(0x22c)],_0x1ce4a4,_0x5936e6,this['C'][_0x5f3ed1(0x215)],_0x2ee800[_0x5f3ed1(0x2ca)]+_0x5f3ed1(0x21b));await this[_0x5f3ed1(0x308)](_0x1d41e5['dirname'](_0x5975af),{'recursive':!0x0}),await this[_0x5f3ed1(0x282)](_0x538e8f,_0x5975af);}for(const _0x30d49b of _0x830710[_0x5f3ed1(0x254)]){const _0x505a1e=_0x1d41e5[_0x5f3ed1(0x1ee)](_0x509e6c,this['C']['postHooks'],_0x30d49b[_0x5f3ed1(0x2ca)]+'.ts'),_0x472e86=_0x1d41e5[_0x5f3ed1(0x1ee)](this['projectDirectory'],this['C']['src'],_0x1ce4a4,_0x5936e6,this['C']['postHooks'],_0x30d49b[_0x5f3ed1(0x2ca)]+'.ts');await this[_0x5f3ed1(0x308)](_0x1d41e5[_0x5f3ed1(0x316)](_0x472e86),{'recursive':!0x0}),await this[_0x5f3ed1(0x282)](_0x505a1e,_0x472e86);}}}async[_0x4edce0(0x292)](){const _0x6424d4=_0x4edce0,_0x123331=this['C']['DatabaseHooksReadF'],_0x333c52=this['C'][_0x6424d4(0x295)],_0x3b033e=_0x1d41e5[_0x6424d4(0x1ee)](this[_0x6424d4(0x2e0)],this['C'][_0x6424d4(0x22c)],this[_0x6424d4(0x2aa)][_0x6424d4(0x20a)],_0x123331),_0x32285b=await this['readDirCustom'](_0x3b033e,null);for(const _0x3012d2 of _0x32285b){const _0x27b3d9=_0x1d41e5[_0x6424d4(0x1ee)](_0x3b033e,_0x3012d2,_0x3012d2+_0x6424d4(0x2e9));if(!this[_0x6424d4(0x342)](_0x27b3d9))continue;const _0x1a3359=await this[_0x6424d4(0x33c)](_0x27b3d9,{'encoding':_0x6424d4(0x2e2)}),_0x454c2a=await this[_0x6424d4(0x2c1)](_0x1a3359),_0x41b7a2=_0x1d41e5[_0x6424d4(0x1ee)](_0x3b033e,_0x3012d2),_0x4099a9=_0x454c2a[_0x6424d4(0x2ba)]+'/'+_0x454c2a['databaseName'];for(const _0x19bfb8 of _0x454c2a['preHooks']){const _0x31172b=_0x1d41e5[_0x6424d4(0x1ee)](_0x41b7a2,this['C'][_0x6424d4(0x215)],_0x19bfb8[_0x6424d4(0x2ca)]+'.ts'),_0x3ea11e=_0x1d41e5['join'](this[_0x6424d4(0x25b)],this['C'][_0x6424d4(0x22c)],_0x333c52,_0x4099a9,this['C'][_0x6424d4(0x215)],_0x19bfb8['name']+'.ts');await this[_0x6424d4(0x308)](_0x1d41e5[_0x6424d4(0x316)](_0x3ea11e),{'recursive':!0x0}),await this[_0x6424d4(0x282)](_0x31172b,_0x3ea11e);}for(const _0x46de1c of _0x454c2a['postHooks']){const _0x2aebdc=_0x1d41e5[_0x6424d4(0x1ee)](_0x41b7a2,this['C']['postHooks'],_0x46de1c[_0x6424d4(0x2ca)]+'.ts'),_0x5f0adc=_0x1d41e5[_0x6424d4(0x1ee)](this[_0x6424d4(0x25b)],this['C'][_0x6424d4(0x22c)],_0x333c52,_0x4099a9,this['C'][_0x6424d4(0x254)],_0x46de1c['name']+'.ts');await this[_0x6424d4(0x308)](_0x1d41e5[_0x6424d4(0x316)](_0x5f0adc),{'recursive':!0x0}),await this[_0x6424d4(0x282)](_0x2aebdc,_0x5f0adc);}}}async[_0x4edce0(0x2ae)](){const _0x222eb4=_0x4edce0,_0x39f354=this['C'][_0x222eb4(0x218)],_0x5242ed=this['C'][_0x222eb4(0x2b1)],_0xeca645=_0x1d41e5['join'](this['appRoot'],this['C'][_0x222eb4(0x22c)],this[_0x222eb4(0x2aa)][_0x222eb4(0x20a)],_0x39f354),_0x55d7dd=await this[_0x222eb4(0x283)](_0xeca645,null);for(const _0x1af20e of _0x55d7dd){const _0x36c344=_0x1d41e5['join'](_0xeca645,_0x1af20e,_0x1af20e+_0x222eb4(0x2e9));if(!this[_0x222eb4(0x342)](_0x36c344))continue;const _0x813b36=await this[_0x222eb4(0x33c)](_0x36c344,{'encoding':_0x222eb4(0x2e2)}),_0x17d7b2=await this['parseYaml'](_0x813b36),_0x336659=_0x1d41e5[_0x222eb4(0x1ee)](_0xeca645,_0x1af20e),_0xb1b5dd=''+_0x17d7b2['instanceName'];for(const _0x290aa7 of _0x17d7b2[_0x222eb4(0x215)]){const _0x255506=_0x1d41e5[_0x222eb4(0x1ee)](_0x336659,this['C'][_0x222eb4(0x215)],_0x290aa7[_0x222eb4(0x2ca)]+_0x222eb4(0x21b)),_0x507e9e=_0x1d41e5['join'](this['projectDirectory'],this['C']['src'],_0x5242ed,_0xb1b5dd,this['C']['preHooks'],_0x290aa7[_0x222eb4(0x2ca)]+'.ts');await this[_0x222eb4(0x308)](_0x1d41e5[_0x222eb4(0x316)](_0x507e9e),{'recursive':!0x0}),await this[_0x222eb4(0x282)](_0x255506,_0x507e9e);}for(const _0x3b356d of _0x17d7b2[_0x222eb4(0x254)]){const _0x18797f=_0x1d41e5[_0x222eb4(0x1ee)](_0x336659,this['C'][_0x222eb4(0x254)],_0x3b356d[_0x222eb4(0x2ca)]+_0x222eb4(0x21b)),_0x100346=_0x1d41e5[_0x222eb4(0x1ee)](this[_0x222eb4(0x25b)],this['C'][_0x222eb4(0x22c)],_0x5242ed,_0xb1b5dd,this['C'][_0x222eb4(0x254)],_0x3b356d[_0x222eb4(0x2ca)]+_0x222eb4(0x21b));await this[_0x222eb4(0x308)](_0x1d41e5[_0x222eb4(0x316)](_0x100346),{'recursive':!0x0}),await this[_0x222eb4(0x282)](_0x18797f,_0x100346);}}}async['executeNpmRun'](_0x3b0c33,_0x44b36d){return new Promise((_0x1a7860,_0x5781b2)=>{const _0x10a56c=a0_0x3987,_0x148a77=(0x0,_0x4b830f[_0x10a56c(0x1ea)])(_0x3b0c33,_0x44b36d,{'shell':!0x0,'cwd':this[_0x10a56c(0x2e0)]});_0x148a77['on'](_0x10a56c(0x203),_0x5767c1=>{const _0x32823c=_0x10a56c;if(0x0===_0x5767c1)setTimeout(_0x1a7860,0x3e8);else{const _0x260519='\x27'+_0x3b0c33+'\x20'+_0x44b36d[_0x32823c(0x1ee)]('\x20')+'\x27\x20exited\x20with\x20code\x20'+_0x5767c1+'.';_0x5781b2(new Error(_0x260519));}}),_0x148a77['on'](_0x10a56c(0x202),_0x2491bc=>{const _0x5199d9=_0x10a56c;console['error'](_0x5199d9(0x251)+_0x2491bc[_0x5199d9(0x268)]),_0x5781b2(_0x2491bc);});});}async['parseYaml'](_0x13b0b7){const _0x422e25=_0x4edce0;return(await Promise[_0x422e25(0x317)]()['then'](()=>_0x37aa79(0x59)))[_0x422e25(0x312)](_0x13b0b7);}async['startWatch'](){const _0x3c109c=_0x4edce0;this[_0x3c109c(0x290)]||await this['installRequiredPackages']();const _0x390e0b=await Promise[_0x3c109c(0x317)]()[_0x3c109c(0x296)](()=>_0x37aa79(0xe7)),_0x1f0cc8=_0x1d41e5[_0x3c109c(0x1ee)](this[_0x3c109c(0x2e0)]),_0x176c74=_0x1d41e5[_0x3c109c(0x1ee)](this[_0x3c109c(0x2e0)],this['C'][_0x3c109c(0x22c)]),_0x11e011=_0x5da686=>{const _0x3ea36=_0x3c109c,_0x200543=_0x1d41e5['relative'](_0x1f0cc8,_0x5da686);return!(_0x200543&&!_0x200543['startsWith']('.')&&!_0x200543[_0x3ea36(0x329)]('~')&&_0x200543[_0x3ea36(0x306)](this['C'][_0x3ea36(0x22c)]));},_0x3bc4dc=_0x390e0b['watch'](_0x176c74,{'persistent':!0x0,'ignoreInitial':!0x0,'depth':0x1/0x0,'awaitWriteFinish':{'stabilityThreshold':0xc8,'pollInterval':0x64}}),_0x28f9b6=async(_0x10cbdb,_0x4ddaf2)=>{const _0x416879=_0x3c109c;try{if(this['skipWatchInputs'])return;const _0x26f20b=_0x1d41e5[_0x416879(0x242)](_0x1f0cc8,_0x4ddaf2);if(!_0x4ddaf2||_0x11e011(_0x4ddaf2))return;console['log'](_0x416879(0x2bb)+this['getCurrentTime']()+_0x416879(0x1f1)+_0x10cbdb+_0x416879(0x2da)+_0x26f20b);const _0x5ea4d2=this[_0x416879(0x2e1)](_0x26f20b),_0x363348=this[_0x416879(0x2cd)](_0x5ea4d2,_0x26f20b);if(!_0x363348)return;let _0x2045be,_0x546eae=!0x1;if(this['fsExistsSync'](_0x363348)){if(this[_0x416879(0x342)](_0x1d41e5[_0x416879(0x1ee)](_0x1f0cc8,_0x26f20b))){const _0x1ed30a=_0x1d41e5[_0x416879(0x1ee)](_0x1d41e5[_0x416879(0x324)]+this['C'][_0x416879(0x2fa)],_0x363348);_0x2045be=await this[_0x416879(0x326)](_0x363348,_0x1ed30a),this[_0x416879(0x1ed)]({'objType':_0x948973[_0x416879(0x2c7)],'localClientWSReqRes':{'eventType':_0x417c99[_0x416879(0x32f)],'folderChangedOnLocalSystem':_0x2045be,'category':_0x5ea4d2,'shouldReplaceAllItemsOfCategory':_0x546eae}});}else this[_0x416879(0x2fb)]();}else{const _0x1428e8=this[_0x416879(0x340)](_0x5ea4d2,_0x26f20b),_0x48b95c=_0x1d41e5['join'](_0x1d41e5['sep']+this['C'][_0x416879(0x2fa)],_0x1428e8);_0x2045be=await this['serializeFolderWithBinary'](_0x1428e8,_0x48b95c),_0x546eae=!0x0,this[_0x416879(0x30b)](_0x2045be,_0x5ea4d2,_0x546eae);}}catch(_0x54ccb9){console['error']('watch\x20handler\x20error',_0x54ccb9);}};_0x3bc4dc['on'](_0x3c109c(0x346),_0x572a12=>_0x28f9b6(_0x3c109c(0x346),_0x572a12))['on'](_0x3c109c(0x206),_0x27c2c6=>_0x28f9b6(_0x3c109c(0x206),_0x27c2c6))['on'](_0x3c109c(0x257),_0x336da3=>_0x28f9b6(_0x3c109c(0x257),_0x336da3))['on'](_0x3c109c(0x24f),_0x11a09a=>_0x28f9b6(_0x3c109c(0x24f),_0x11a09a))['on'](_0x3c109c(0x309),_0x55bd61=>_0x28f9b6('unlinkDir',_0x55bd61))['on'](_0x3c109c(0x202),_0x23a70e=>console[_0x3c109c(0x202)](_0x3c109c(0x301),_0x23a70e)),this[_0x3c109c(0x311)]=_0x3bc4dc,0x1===this[_0x3c109c(0x32b)]&&(console[_0x3c109c(0x205)](_0x3c109c(0x303)),console[_0x3c109c(0x205)](this[_0x3c109c(0x237)]+_0x3c109c(0x2de)+this['projectDirectory']+this[_0x3c109c(0x265)]));}['getCurrentTime'](){const _0x4883bf=_0x4edce0,_0xdc2181=new Date();return String(_0xdc2181[_0x4883bf(0x226)]())['padStart'](0x2,'0')+':'+String(_0xdc2181['getMinutes']())[_0x4883bf(0x294)](0x2,'0')+':'+String(_0xdc2181[_0x4883bf(0x2eb)]())[_0x4883bf(0x294)](0x2,'0');}['sendDeletedEventToServerInternal'](_0x5a9062,_0x15bafb,_0x4794f0){const _0x5785c7=_0x4edce0;this[_0x5785c7(0x1ed)]({'objType':_0x948973[_0x5785c7(0x2c7)],'localClientWSReqRes':{'eventType':_0x417c99[_0x5785c7(0x32f)],'folderChangedOnLocalSystem':_0x5a9062,'category':_0x15bafb,'shouldReplaceAllItemsOfCategory':_0x4794f0}});}[_0x4edce0(0x20e)](_0x4529ae,_0xab2a64){let _0x471382=null;return function(..._0x1d8ae9){clearTimeout(_0x471382),_0x471382=setTimeout(()=>{const _0x293cec=a0_0x3987;_0x4529ae[_0x293cec(0x325)](this,_0x1d8ae9);},_0xab2a64);};}[_0x4edce0(0x2e1)](_0x1b3fc6){const _0x443b0f=_0x4edce0,_0x5428c4=_0x1d41e5[_0x443b0f(0x1ee)](this['C'][_0x443b0f(0x22c)],this[_0x443b0f(0x2aa)][_0x443b0f(0x20a)]);if(!_0x1b3fc6[_0x443b0f(0x306)](_0x5428c4))return;const _0x5296ba=_0x1b3fc6[_0x443b0f(0x23b)](_0x1d41e5[_0x443b0f(0x324)])[_0x443b0f(0x22a)](_0x19fc98=>!!_0x19fc98)[0x2];for(const _0x183a39 in _0x210f1f)if(_0x210f1f[_0x183a39]===_0x5296ba)return _0x5296ba;}[_0x4edce0(0x2cd)](_0x321657,_0x9db296){const _0x2937b7=_0x4edce0,_0x2a701f=_0x9db296[_0x2937b7(0x23b)](_0x1d41e5['sep']);let _0x45fd18='';return _0x45fd18=_0x321657===_0x210f1f[_0x2937b7(0x33d)]?_0x2a701f[_0x2937b7(0x1fe)](0x0,0x6)[_0x2937b7(0x1ee)](_0x1d41e5['sep']):_0x2a701f[_0x2937b7(0x1fe)](0x0,0x4)[_0x2937b7(0x1ee)](_0x1d41e5[_0x2937b7(0x324)]),_0x45fd18;}[_0x4edce0(0x340)](_0x248427,_0x3251a8){const _0x401618=_0x4edce0;return _0x3251a8[_0x401618(0x23b)](_0x1d41e5[_0x401618(0x324)])[_0x401618(0x1fe)](0x0,0x3)[_0x401618(0x1ee)](_0x1d41e5[_0x401618(0x324)]);}async[_0x4edce0(0x326)](_0x5c1400,_0x4f14da){const _0xc94e48={},_0x5c8447=this;return await async function _0x2a5c5b(_0x22e149){const _0x4495ca=a0_0x3987,_0x21b66b=await _0x5c8447[_0x4495ca(0x283)](_0x22e149,{'withFileTypes':!0x0});for(const _0x1b7e56 of _0x21b66b){const _0x34adfb=_0x1d41e5[_0x4495ca(0x1ee)](_0x22e149,_0x1b7e56[_0x4495ca(0x2ca)]),_0x524bff=_0x1d41e5['normalize'](_0x34adfb);if(_0x1b7e56[_0x4495ca(0x2e7)]())await _0x2a5c5b(_0x524bff);else{const _0x4d7f73=_0x4150e8[_0x4495ca(0x22d)](_0x524bff),_0x4ed8aa=_0x1d41e5[_0x4495ca(0x242)](_0x5c1400,_0x524bff),_0x2f95a2=_0x1d41e5['join'](_0x4f14da,_0x4ed8aa)[_0x4495ca(0x23b)](_0x1d41e5['sep'])[_0x4495ca(0x1ee)](_0x1d41e5[_0x4495ca(0x279)]['sep']);_0xc94e48[_0x2f95a2]={'encoding':_0x4495ca(0x26c),'content':_0x4d7f73[_0x4495ca(0x2f3)](_0x4495ca(0x26c))};}}}(_0x5c1400),_0xc94e48;}['sendToServer'](_0x1a67d5){const _0x444286=_0x4edce0;try{this['ws'][_0x444286(0x23d)](JSON[_0x444286(0x327)](_0x1a67d5));}catch(_0x1d5dbe){console['log'](_0x1d5dbe);}}async[_0x4edce0(0x334)](){const _0x194a8f=_0x4edce0;console[_0x194a8f(0x205)](_0x194a8f(0x34c));const _0x16782d=this[_0x194a8f(0x2aa)][_0x194a8f(0x2f7)],_0x576399=this[_0x194a8f(0x2aa)][_0x194a8f(0x20a)],_0x4df0f8=this[_0x194a8f(0x2aa)][_0x194a8f(0x2b8)];this['ws']=new WebSocket(_0x4df0f8+_0x194a8f(0x2c8)+_0x16782d+_0x194a8f(0x2cc)+_0x576399);const _0x3a3aae=[],_0x19bcb7=()=>{const _0x2a9fd3=_0x194a8f;this[_0x2a9fd3(0x1ed)]({'objType':_0x948973['REGISTER'],'onEvents':[{'eventType':_0x2a9fd3(0x223)}]});};function _0x3a08bc(_0x43a456){const _0x1d3775=_0x194a8f;_0x43a456[_0x1d3775(0x2d0)]=null,_0x43a456['onmessage']=null,_0x43a456[_0x1d3775(0x243)]=null,_0x43a456[_0x1d3775(0x278)]=null,_0x43a456[_0x1d3775(0x203)]();}this['ws']['onmessage']=async _0x24b8c1=>{const _0x25160e=_0x194a8f,_0x5b1f22=JSON[_0x25160e(0x2b6)](_0x24b8c1[_0x25160e(0x2d9)]);if(_0x5b1f22['type']===_0x948973['CONNECTED']&&_0x5b1f22[_0x25160e(0x30f)][_0x25160e(0x343)])_0x19bcb7();else{if(_0x5b1f22[_0x25160e(0x267)]===_0x948973[_0x25160e(0x238)]){if(_0x5b1f22?.[_0x25160e(0x30f)]?.['validOnEvents']?.[_0x25160e(0x2b4)]){for(const _0xea67bb of _0x5b1f22['response'][_0x25160e(0x34a)])_0x3a3aae[_0x25160e(0x2c0)](_0xea67bb);console[_0x25160e(0x205)](_0x25160e(0x291)),this['watcher']||await this['startWatch'](),this[_0x25160e(0x2fb)]();}else{const _0x443337=_0x5b1f22[_0x25160e(0x30f)]?.[_0x25160e(0x232)]?.[0x0]?.['errors']?.[0x0]?.['message']||_0x25160e(0x27d);console[_0x25160e(0x205)]('❌\x20'+_0x443337),await this[_0x25160e(0x2bf)](0x1);}}else await this[_0x25160e(0x256)](_0x5b1f22);}},this['ws']['onclose']=_0x494b8f=>{const _0x59843c=_0x194a8f;console['log'](_0x59843c(0x2bd)),_0x3a08bc(this['ws']),setTimeout(this['connectToServerViaWS'][_0x59843c(0x2fe)](this),0xbb8);},this['ws'][_0x194a8f(0x243)]=()=>{const _0xdb254a=_0x194a8f;_0x3a08bc(this['ws']),setTimeout(this[_0xdb254a(0x334)]['bind'](this),0xbb8);};}['syncAllDataWithServer'](){const _0x39dc8f=_0x4edce0;this[_0x39dc8f(0x1ed)]({'objType':_0x948973[_0x39dc8f(0x2c7)],'localClientWSReqRes':{'eventType':_0x417c99[_0x39dc8f(0x260)]}});}async[_0x4edce0(0x256)](_0x4a46ae){const _0x4f19b9=_0x4edce0;if(this['EL']&&_0x4a46ae[_0x4f19b9(0x30f)][_0x4f19b9(0x240)]!==_0x417c99[_0x4f19b9(0x260)]&&console['log'](_0x4a46ae),_0x4a46ae['type']===_0x948973[_0x4f19b9(0x2c7)]){if(_0x4a46ae[_0x4f19b9(0x241)]?.[_0x4f19b9(0x2b4)])return void console[_0x4f19b9(0x202)](_0x4a46ae['errors']);if(_0x4a46ae[_0x4f19b9(0x30f)]['eventType']===_0x417c99[_0x4f19b9(0x260)]){console[_0x4f19b9(0x205)](_0x4f19b9(0x245)+this['getCurrentTime']()+']'),this[_0x4f19b9(0x32b)]++;try{this[_0x4f19b9(0x311)]&&(await this[_0x4f19b9(0x311)][_0x4f19b9(0x203)](),this[_0x4f19b9(0x311)]=null);}catch(_0x24199f){console['warn']('Error\x20closing\x20watcher\x20before\x20full\x20sync',_0x24199f);}_0x4150e8[_0x4f19b9(0x26b)](_0x1d41e5[_0x4f19b9(0x1ee)](this[_0x4f19b9(0x2e0)],this['C']['src']),{'recursive':!0x0,'force':!0x0}),this[_0x4f19b9(0x20f)](_0x1d41e5[_0x4f19b9(0x1ee)](this['appRoot'],this['C'][_0x4f19b9(0x22c)]),{'recursive':!0x0});const _0x520dcf=_0x4a46ae[_0x4f19b9(0x30f)][_0x4f19b9(0x261)];await this['writeMemfsJsonToDisk'](_0x520dcf,this[_0x4f19b9(0x2e0)]);try{await this['startWatch']();}catch(_0x5b32da){console[_0x4f19b9(0x202)](_0x4f19b9(0x220),_0x5b32da);}}else{if(_0x4a46ae[_0x4f19b9(0x30f)]['eventType']===_0x417c99[_0x4f19b9(0x29b)]){const _0x23f2d8=_0x4a46ae[_0x4f19b9(0x30f)][_0x4f19b9(0x261)];await this[_0x4f19b9(0x2c9)](_0x23f2d8['data'],this[_0x4f19b9(0x2e0)]);}}!0x0===this['nodeModulesInstalled']?await this[_0x4f19b9(0x2bc)](!0x1):await this['copyFilesToProjectDir'](!0x0);}}async[_0x4edce0(0x2c9)](_0x26fdf9,_0x478ebd){const _0x136867=_0x4edce0;this[_0x136867(0x2f1)]=!0x0;let _0x838892=[];const _0x42258b=async()=>{const _0x30311f=_0x136867;_0x838892[_0x30311f(0x2b4)]>0x0&&(await Promise[_0x30311f(0x2df)](_0x838892),_0x838892=[]);};for(const [_0x401cb9,_0x241a48]of Object['entries'](_0x26fdf9)){if(!_0x401cb9[_0x136867(0x306)]('/'+this['C'][_0x136867(0x2fa)]+'/'+this['C'][_0x136867(0x22c)]))continue;const _0x56d7e9=_0x241a48,_0x1e8e76=_0x401cb9['replace']('/'+this['C'][_0x136867(0x2fa)],'');if(this[_0x136867(0x214)][_0x1e8e76])continue;const _0xcddc24=_0x1d41e5['join'](_0x478ebd,_0x1e8e76['replace'](/^\//,'')),_0x575708=_0x1d41e5['dirname'](_0xcddc24),_0x428c1f=async()=>{const _0x447d53=_0x136867;await this['fsMkDir'](_0x575708,{'recursive':!0x0}),await this['fsWriteFile'](_0xcddc24,_0x56d7e9[_0x447d53(0x2ef)],{'encoding':_0x447d53(0x26c)}),this['EL']&&console['log'](_0x447d53(0x2a9)+this[_0x447d53(0x1fa)]()+']\x20:\x20'+_0xcddc24[_0x447d53(0x1f4)](_0x478ebd,''));};_0x838892[_0x136867(0x2c0)](_0x428c1f()),_0x838892[_0x136867(0x2b4)]>=0x3e8&&await _0x42258b();}await _0x42258b(),setTimeout(()=>{const _0x333a3b=_0x136867;this[_0x333a3b(0x2f1)]=!0x1;},0x3e8);}[_0x4edce0(0x213)](_0x1f05a1){const _0x43879b=_0x4edce0,_0x34d112=this[_0x43879b(0x32d)](_0x1f05a1);if(!this['fsExistsSync'](_0x34d112))return!0x1;const _0x2f9e8f=_0x4150e8['readdirSync'](_0x34d112);let _0x1f2708=!0x0;for(const _0x5963e4 of _0x2f9e8f){const _0x23ef84=_0x1d41e5[_0x43879b(0x1ee)](_0x34d112,_0x5963e4);_0x4150e8[_0x43879b(0x2f4)](_0x23ef84)[_0x43879b(0x2e7)]()&&this[_0x43879b(0x213)](_0x23ef84)||(_0x1f2708=!0x1);}return!!_0x1f2708&&(_0x4150e8[_0x43879b(0x341)](_0x34d112),!0x0);}async['readDirCustom'](_0x4926ec,_0x5ef822){const _0x4d3e99=_0x4edce0;return this['fsExistsSync'](_0x4926ec)?await this[_0x4d3e99(0x25e)](_0x4926ec,_0x5ef822):[];}[_0x4edce0(0x32d)](_0x53f134){const _0x5949f5=_0x4edce0;return _0x1d41e5[_0x5949f5(0x2b7)](_0x53f134);}[_0x4edce0(0x342)](_0x4ec517){const _0x2c7956=_0x4edce0,_0x4b818e=_0x1d41e5[_0x2c7956(0x2b7)](_0x4ec517);return _0x4150e8[_0x2c7956(0x234)](_0x4b818e);}async['fsReadDir'](_0x181572,_0x4c39f7){const _0x2ecf55=_0x4edce0,_0x2f1ccc=_0x1d41e5[_0x2ecf55(0x2b7)](_0x181572);return await _0x4150e8['promises'][_0x2ecf55(0x1e3)](_0x2f1ccc,_0x4c39f7);}async['fsMkDir'](_0x157f4e,_0x3fe4fa){const _0x22c8b1=_0x4edce0,_0x240bb0=_0x1d41e5[_0x22c8b1(0x2b7)](_0x157f4e);return await _0x4150e8[_0x22c8b1(0x24c)][_0x22c8b1(0x244)](_0x240bb0,_0x3fe4fa);}['fsMkDirSync'](_0x29c8a4,_0x37fea9){const _0x269166=_0x4edce0,_0x256ac0=_0x1d41e5[_0x269166(0x2b7)](_0x29c8a4);return _0x4150e8['mkdirSync'](_0x256ac0,_0x37fea9);}async['fsReadFile'](_0x16cdfa,_0x5aafb1){const _0x4abbb0=_0x4edce0,_0x57c4c7=_0x1d41e5['normalize'](_0x16cdfa);return await _0x4150e8[_0x4abbb0(0x24c)]['readFile'](_0x57c4c7,_0x5aafb1);}async[_0x4edce0(0x20b)](_0x353ee1,_0x3c0a32,_0xcd2839){const _0x2d778b=_0x4edce0,_0x3772de=_0x1d41e5['normalize'](_0x353ee1);return await _0x4150e8[_0x2d778b(0x24c)][_0x2d778b(0x229)](_0x3772de,_0x3c0a32,_0xcd2839);}async['fsLink'](_0x4191dd,_0x5db729){const _0x508fae=_0x4edce0,_0x7ae1a5=_0x1d41e5[_0x508fae(0x2b7)](_0x4191dd),_0x43f88b=_0x1d41e5[_0x508fae(0x2b7)](_0x5db729);try{return await _0x4150e8[_0x508fae(0x24c)][_0x508fae(0x204)](_0x7ae1a5,_0x43f88b);}catch(_0x220822){console[_0x508fae(0x2a3)](_0x220822);}}async[_0x4edce0(0x2bf)](_0x1d0c91=0x0){const _0x30ee74=_0x4edce0;if(!this[_0x30ee74(0x22e)]){this[_0x30ee74(0x22e)]=!0x0;try{this[_0x30ee74(0x311)]&&await this[_0x30ee74(0x311)][_0x30ee74(0x203)]();}catch(_0x58e032){console[_0x30ee74(0x202)](_0x30ee74(0x2a2),_0x58e032);}finally{setTimeout(()=>process[_0x30ee74(0x284)](_0x1d0c91),0xc8);}}}[_0x4edce0(0x26d)](){const _0x5d7c50=_0x4edce0;process['on']('SIGINT',()=>{const _0x59a924=a0_0x3987;console[_0x59a924(0x205)](_0x59a924(0x2cb)),this[_0x59a924(0x2bf)](0x0);}),process['on'](_0x5d7c50(0x2ac),()=>{const _0x31a052=_0x5d7c50;console[_0x31a052(0x205)](_0x31a052(0x21c)),this[_0x31a052(0x2bf)](0x0);}),process['on'](_0x5d7c50(0x2d4),_0xefc595=>{const _0x16257a=_0x5d7c50;console[_0x16257a(0x205)](_0x16257a(0x2d4),_0xefc595);}),process['on'](_0x5d7c50(0x284),_0x34195b=>{const _0x720947=_0x5d7c50;console['log'](_0x720947(0x284),_0x34195b);}),process['on']('uncaughtException',_0x44fee9=>{const _0x223bb9=_0x5d7c50;console[_0x223bb9(0x202)]('uncaughtException',_0x44fee9),this['shutdownAndExit'](0x1);}),process['on'](_0x5d7c50(0x288),_0x487700=>{const _0x2f6c4a=_0x5d7c50;console[_0x2f6c4a(0x202)]('unhandledRejection',_0x487700),this[_0x2f6c4a(0x2bf)](0x1);});}}()['start']()[_0x4edce0(0x296)](),function(_0x4f6086){const _0x500d8d=_0x4edce0;_0x4f6086['INSTANCES']=_0x500d8d(0x2c5),_0x4f6086[_0x500d8d(0x33d)]=_0x500d8d(0x33d),_0x4f6086[_0x500d8d(0x24a)]='CUSTOM_APIS',_0x4f6086['SYSTEM_APIS']=_0x500d8d(0x2f0),_0x4f6086[_0x500d8d(0x271)]=_0x500d8d(0x271);}(_0xc42bd9=_0xbab3cf['OW']||(_0xbab3cf['OW']={})),function(_0x38ec5d){const _0x52bceb=_0x4edce0;_0x38ec5d[_0x52bceb(0x238)]=_0x52bceb(0x238),_0x38ec5d[_0x52bceb(0x28e)]=_0x52bceb(0x28e),_0x38ec5d[_0x52bceb(0x1fc)]=_0x52bceb(0x1fc),_0x38ec5d[_0x52bceb(0x231)]=_0x52bceb(0x231),_0x38ec5d[_0x52bceb(0x328)]=_0x52bceb(0x328),_0x38ec5d[_0x52bceb(0x209)]=_0x52bceb(0x209),_0x38ec5d['LC_DATA_REQ_RES']=_0x52bceb(0x2c7);}(_0x948973||(_0x948973={})),function(_0x3502bf){const _0x10f8b0=_0x4edce0;_0x3502bf[_0x10f8b0(0x260)]=_0x10f8b0(0x260),_0x3502bf[_0x10f8b0(0x29b)]=_0x10f8b0(0x29b),_0x3502bf[_0x10f8b0(0x32f)]=_0x10f8b0(0x32f);}(_0x417c99||(_0x417c99={})),(_0x2acfff=_0xbab3cf['kR']||(_0xbab3cf['kR']={}))[_0x4edce0(0x337)]=_0x4edce0(0x337),_0x2acfff['PUT']=_0x4edce0(0x2db),_0x2acfff[_0x4edce0(0x2a4)]='PUT_REPLACE',_0x2acfff['DELETE']=_0x4edce0(0x1e9),_0x2acfff[_0x4edce0(0x207)]=_0x4edce0(0x207),(_0x4b7011=_0xbab3cf['xu']||(_0xbab3cf['xu']={}))[_0x4edce0(0x1eb)]='am_events',_0x4b7011[_0x4edce0(0x31c)]='am_web_socket_events',_0x4b7011['DBMasters']=_0x4edce0(0x347),_0x4b7011[_0x4edce0(0x277)]=_0x4edce0(0x1f9),_0x4b7011[_0x4edce0(0x25d)]=_0x4edce0(0x34b),_0x4b7011[_0x4edce0(0x2ab)]=_0x4edce0(0x33a),_0x4b7011[_0x4edce0(0x2ff)]=_0x4edce0(0x239),_0x4b7011[_0x4edce0(0x29e)]=_0x4edce0(0x266),_0x4b7011[_0x4edce0(0x2a6)]='am_collection_hooks',_0x4b7011[_0x4edce0(0x23c)]=_0x4edce0(0x336),_0x4b7011['Schemas']='am_schemas',_0x4b7011[_0x4edce0(0x321)]=_0x4edce0(0x310),_0x4b7011['SystemApiSettings']=_0x4edce0(0x345),_0x4b7011[_0x4edce0(0x2d8)]=_0x4edce0(0x21d),_0x4b7011[_0x4edce0(0x2e8)]=_0x4edce0(0x2e8),_0x4b7011['am_tp_installed_apis']='am_tp_installed_apis',_0x4b7011[_0x4edce0(0x2ce)]=_0x4edce0(0x2ce),_0x4b7011[_0x4edce0(0x2e3)]=_0x4edce0(0x27c),_0x4b7011['DatabasesMigrations']='am_database_migrations',_0x4b7011[_0x4edce0(0x305)]=_0x4edce0(0x320),_0x4b7011['UIMakerUtils']='am_ui_maker_utils',_0x4b7011['UIMakerStyles']=_0x4edce0(0x1ff),_0x4b7011[_0x4edce0(0x1f8)]=_0x4edce0(0x2c6),function(_0x10042a){const _0x26581a=_0x4edce0;_0x10042a[_0x26581a(0x24a)]=_0x26581a(0x221),_0x10042a[_0x26581a(0x287)]='Database\x20migrations',_0x10042a[_0x26581a(0x314)]='Process\x20initializers',_0x10042a['EVENTS']='Events',_0x10042a[_0x26581a(0x20c)]='i18ns',_0x10042a['INSTANCE_API_HOOKS']=_0x26581a(0x1e4),_0x10042a[_0x26581a(0x297)]=_0x26581a(0x21e),_0x10042a[_0x26581a(0x2e6)]=_0x26581a(0x30e),_0x10042a[_0x26581a(0x2af)]=_0x26581a(0x200),_0x10042a[_0x26581a(0x1e7)]=_0x26581a(0x30d),_0x10042a[_0x26581a(0x298)]=_0x26581a(0x23c),_0x10042a[_0x26581a(0x286)]=_0x26581a(0x285),_0x10042a[_0x26581a(0x29a)]='System\x20API\x20hooks',_0x10042a[_0x26581a(0x2b3)]='System\x20API\x20settings',_0x10042a['TEST_CASES']=_0x26581a(0x27e),_0x10042a[_0x26581a(0x33d)]=_0x26581a(0x32e),_0x10042a[_0x26581a(0x319)]=_0x26581a(0x259),_0x10042a[_0x26581a(0x24b)]=_0x26581a(0x25f),_0x10042a[_0x26581a(0x208)]=_0x26581a(0x2f8),_0x10042a['DB_MASTERS']=_0x26581a(0x22f),_0x10042a[_0x26581a(0x33e)]=_0x26581a(0x236),_0x10042a[_0x26581a(0x2fd)]='UI\x20maker\x20styles';}(_0x210f1f=_0xbab3cf['vg']||(_0xbab3cf['vg']={}));},0x380(_0xf05c7d){_0xf05c7d['exports']=require('fs');}},_0x5483a9={};!function _0x151084(_0x2fc282){const _0x47b0f8=a0_0x3987;var _0x5cb508=_0x5483a9[_0x2fc282];if(void 0x0!==_0x5cb508)return _0x5cb508[_0x47b0f8(0x2b9)];var _0x325744=_0x5483a9[_0x2fc282]={'exports':{}};return _0x4ef900[_0x2fc282](_0x325744,_0x325744['exports'],_0x151084),_0x325744['exports'];}(0x1dc);})()));
|