@sava-info-systems/api-maker-with-extensions 1.19.0 → 1.19.1
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.
- package/dist/index.html +1 -1
- package/dist/main.7d84949326f61c3e.js +1 -0
- package/main.js +1 -1
- package/package.json +4 -4
- package/sandbox/sandbox.js +1 -1
- package/src/tools/local-client.js +1 -1
- package/dist/main.ffc8631f3e17b1c3.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
function a0_0x5c94(){const _0x2b48e6=['Database\x20migrations','EventsWriteF','basename','TOKEN_VALIDATION','copyDBMastersToAnotherDir','adminUserPath','Please\x20run\x20using\x20administrator\x20privileges.','Instance\x20hooks','UNKNOWN','config','entries','add','19144594sBTLlx','schedulers','SystemApiSettings','\x1b[38;2;255;165;0m','dbInterfacesFile','collection-hooks','ui-maker-pages','startWatch','ProcessInitializersWriteF','close','watcher','message','change','\x1b[36m','checkForNodeVersion','exports','\x27\x20exited\x20with\x20code\x20','LC_FOLDER_CHANGED_ON_LOCAL_SYSTEM','DBMasterUtilsReadF','DatabasesMigrations','apiId','SIGINT\x20received\x20—\x20shutting\x20down','fsLink','mkdir','am_web_socket_events','isActive','instanceName','SCHEMAS','DELETE','instanceApiName','ProcessI18NWriteF','copyInstanceApiHooksToAnotherDir','relative','I18NS','CONNECTED','SystemApiHooksReadF','replace','response','UNREGISTER','.js','eventType','printNotes','24jKsIKS','copyDatabaseHooksToAnotherDir','PUT','parseYaml','prototype','UTILITY_CLASSES','TEST_CASES','isWSConnectedFirstTime','log','.yaml','Database\x20hooks','DB\x20master\x20utils','ProcessInitializers','errors','bind','dirname','ThirdPartyApiReadF','compilerOptions','am_tp_installed_apis','INSTANCE_HOOKS','readFile','SystemApiHooksWriteF','databaseName','ui-maker-styles','ProcessI18NReadF','Error\x20while\x20connecting\x20to\x20WS\x20server.','AmEvents','repo','custom-apis','keys','skipWatchInputs','TestCasesReadF','push','InstanceApiHooksWriteF','installRequiredPackages','Error\x20during\x20shutdown','UI_MAKER_STYLES','9gBKMVQ','SchemaReadF','executeNpmRun','posix','DELETE_ALL','versions','22lCisLN','WEB_SOCKET_EVENT','DB_MASTERS','customApiName','base64','readdirSync','SchemaWriteF','COLLECTION_HOOKS','syncAllDataWithServer','paths','fsReadFile','split','readDirCustom','Events','postHooks','am_database_migrations','debounce','SCHEDULERS','3943428RFHyoe','copyWebSocketEventsToAnotherDir','third-party-apis','tpInstalledApiName','UIMakerStyles','Custom\x20APIs','send','error','copyEventsToAnotherDir','mkdirSync','fsReadDir','DATABASE_HOOKS','6659268pFyyry','am_system_api_settings','normalize','CustomApis','fsMkDirSync','load','readFileSync','js-yaml','CollectionHooksWriteF','onerror','npm','listeners','unlink','EVENTS_WS','copyFilesToProjectDir','node_modules',']\x20:\x20','Collection\x20hooks','colorEnd','✅\x20Local\x20client\x20started...','onmessage','InstanceHooks','length','LC_SEND_ALL_DATA','AmTestCases','DBMigrationsReadF','getChangedFolder','Third\x20party\x20API\x20settings','\x20Local\x20client\x20will\x20pull\x20your\x20server\x20changes\x20to\x20local\x20&\x20perform\x20sync\x20between\x20them.','Utility\x20classes','version','parse','InstanceHooksWriteF','am_tp_api_versions','statSync','padStart','copyUtilityClassesToAnotherDir','join','instance-api-hooks','192269sikbvh','UIMakerUtils','toLowerCase','orangeStart','PROCESS_INITIALIZERS','filter','WebSocketEventsReadF','am_process_initializers','path','slice','db-interfaces.d.ts','preHooks','child_process','type','validOnEvents','data','\x1b[0m','watch','.css','sendDeletedEventToServerDebounce','getCurrentTime','writeMemfsJsonToDisk','Third\x20party\x20APIs','folderPath','post-hooks','5SQZTME','PUT_REPLACE','instances','INSTANCE_API_HOOKS','content','Cannot\x20find\x20module\x20\x27','⏳\x20Connecting\x20to\x20server...','MODULE_NOT_FOUND','DBMasterUtilsWriteF','resolve','addDir','removeEmptyDirsSync','install','✓\x20Receive\x20:\x20[','DBMasterStylesReadF','getCategoryOfPath','package-lock.json','INSTANCE_API_SETTINGS','——————————————————————————————————————————————————————————————————————————————————','Test\x20cases',']\x20:\x20[','System\x20API\x20hooks','am_custom_apis','INSTANCES','.gitignore','isDirectory','tsconfig.json','38pQfJvT','serializeFolderWithBinary','Instance\x20API\x20hooks','copyDBMigrationsToAnotherDir','SYSTEM_API_HOOKS','✅\x20dependencies\x20installed','fsWriteFile','baseUrl','copyInstanceHooksToAnotherDir','skipFileWritingForLocal','⏳\x20dependencies\x20installation\x20process\x20started','POST','copyI18NToAnotherDir','start','\x20Please\x20provide\x20settings\x20in\x20:\x20','nodeModulesCopied','13pMdnXI','package.json','LC_DATA_MODIFIED_IN_DATABASE','Failed\x20to\x20start\x20the\x20npm\x20process:\x20','am_schemas','unlinkDir','✅\x20node_modules\x20installed','shutdownAndExit','104UOVBoV','DBMigrationsWriteF','SchedulersReadF','am-types','.config.ts','apply','REGISTER','DB\x20masters','amTypes','all','instance-hooks','chokidar@4.0.3','sep','SchedulersWriteF','shuttingDown','copySchedulersToAnotherDir','sendToServer','InstanceApiHooks','copySystemApiHooksToAnotherDir','InstanceApiHooksReadF','NOTIFICATION','am_ui_maker_utils','23504UkThhn','DBMasterStylesWriteF','eventData','readdir','WebSocketEvents','-lc','types','collectionName','DB_MIGRATIONS','CUSTOM_APIS','DBMastersReadF','processReceivedEvent','connectToServerViaWS','i18ns','printNotesToProvideLocalClient','cpSync','code','am_utility_classes','Schemas','Watcher\x20error:','InstanceHooksReadF','.ts','spawn','then','copyThirdPartyApisToAnotherDir','am_instance_hooks','⏳\x20node_modules\x20installation\x20process\x20started','?authTokenInfo=ws-local-client-sync&authorization=','getHours','startsWith','promises','beforeExit','js-yaml@4.1.0','EVENTS','DBMasters','SYSTEM_APIS','apiCategory','rmdirSync','normalizePath','UtilityClasses','LOCAL_CLIENT_SYNC_EVENTS','localClientPath','Schedulers','endsWith','fsMkDir','systemApiName','Process\x20initializers','am_database_hooks','fsExistsSync','unhandledRejection','Connection\x20closed.','utf8','&user-path=','src','THIRD_PARTY_APIS','ui-maker-utils','copyCustomApisToAnotherDir','pre-hooks','unlinkSync','am_instance_api_hooks','createLCProjectDirectory','tpInstalledApiBundleName','am_db_masters','EventsReadF','✓\x20Send\x20:\x20[','chokidar','copyProcessInitializersToAnotherDir','SIGTERM\x20received\x20—\x20shutting\x20down','copyCollectionHooksToAnotherDir','sendDeletedEventToServerInternal','System\x20API\x20settings','UI\x20maker\x20styles','I18Ns','onclose','syncToken','copyDBMasterStylesToAnotherDir','name','watch\x20handler\x20error','invalidOnEvents','call','am_tp_api_settings','dir','addProcessHooks','8696dNNkAK','LC_DATA_REQ_RES','cyanStart','projectDirectory','UI_MAKER_UTILITY_CLASS','copyTestCasesToAnotherDir','exit','am_i18ns','web-socket-events','symlinkSync','eventListeners','8792030SOqdQZ','uncaughtException','CollectionHooks'];a0_0x5c94=function(){return _0x2b48e6;};return a0_0x5c94();}function a0_0xf806(_0x10b86b,_0x1b0e71){const _0x5c949a=a0_0x5c94();return a0_0xf806=function(_0xf806f6,_0x12850f){_0xf806f6=_0xf806f6-0xf4;let _0x1b87ba=_0x5c949a[_0xf806f6];return _0x1b87ba;},a0_0xf806(_0x10b86b,_0x1b0e71);}(function(_0xfae54d,_0x263f6a){const _0x17fb77=a0_0xf806,_0x20018e=_0xfae54d();while(!![]){try{const _0x2bb5b0=parseInt(_0x17fb77(0x24b))/0x1*(-parseInt(_0x17fb77(0x110))/0x2)+parseInt(_0x17fb77(0x1a7))/0x3*(-parseInt(_0x17fb77(0x163))/0x4)+parseInt(_0x17fb77(0x230))/0x5*(parseInt(_0x17fb77(0x1f0))/0x6)+parseInt(_0x17fb77(0x217))/0x7*(parseInt(_0x17fb77(0xfa))/0x8)+-parseInt(_0x17fb77(0x1cc))/0x9*(parseInt(_0x17fb77(0x16e))/0xa)+parseInt(_0x17fb77(0x1d2))/0xb*(-parseInt(_0x17fb77(0x1e4))/0xc)+parseInt(_0x17fb77(0x25b))/0xd*(parseInt(_0x17fb77(0x17d))/0xe);if(_0x2bb5b0===_0x263f6a)break;else _0x20018e['push'](_0x20018e['shift']());}catch(_0x4c9d65){_0x20018e['push'](_0x20018e['shift']());}}}(a0_0x5c94,0xcb9db),((()=>{const _0x276446=a0_0xf806;var _0x43be4e={0x3dc:(_0x1fa1b5,_0xe17e60,_0x5b58db)=>{'use strict';const _0x1b0e0f=a0_0xf806;var _0x2f0ddb='src/tools';_0xe17e60['_6']=_0xe17e60['EN']=_0xe17e60['Yl']=_0xe17e60['QX']=void 0x0;const _0x2a0ea6=_0x5b58db(0x3a),_0x38e9ea=_0x5b58db(0x2a0),_0x5ef9cc=_0x5b58db(0x170);var _0x513751,_0x9aed2c,_0x2bbdcd,_0x3c2731,_0x57bf68,_0xf11aa7;new class{constructor(){const _0x29dc8c=a0_0xf806;this['EL']=!0x1,this['projectDirectory']='',this['C']={'localClientPath':'./local-client.config','src':_0x29dc8c(0x145),'repo':_0x29dc8c(0x1c2),'types':_0x29dc8c(0x116),'amTypes':_0x29dc8c(0xfd),'versions':_0x29dc8c(0x1d1),'apis':'apis','listeners':_0x29dc8c(0x1fb),'postHooks':_0x29dc8c(0x22f),'preHooks':_0x29dc8c(0x149),'dbInterfacesFile':_0x29dc8c(0x221),'UtilityClassesReadF':_0x29dc8c(0x20d),'CustomApiReadF':_0x29dc8c(0x1e9),'SchedulersReadF':_0x29dc8c(0x13a),'WebSocketEventsReadF':'WebSocket\x20events','SchemaReadF':_0x29dc8c(0x122),'DBMigrationsReadF':_0x29dc8c(0x171),'ProcessInitializersReadF':_0x29dc8c(0x13e),'ProcessI18NReadF':_0x29dc8c(0x11d),'DBMastersReadF':'DB\x20masters','DBMasterStylesReadF':_0x29dc8c(0x157),'DBMasterUtilsReadF':_0x29dc8c(0x1b2),'TestCasesReadF':_0x29dc8c(0x243),'ThirdPartyApiReadF':'Third\x20party\x20APIs','EventsReadF':'Events','InstanceApiHooksReadF':_0x29dc8c(0x24d),'SystemApiHooksReadF':_0x29dc8c(0x245),'CollectionHooksReadF':_0x29dc8c(0x201),'DatabaseHooksReadF':_0x29dc8c(0x1b1),'InstanceHooksReadF':_0x29dc8c(0x178),'CustomApisWriteF':'custom-apis','SchedulersWriteF':_0x29dc8c(0x17e),'WebSocketEventsWriteF':_0x29dc8c(0x16b),'SchemaWriteF':'schemas','DBMigrationsWriteF':'db-migrations','ProcessInitializersWriteF':'process-initializers','ProcessI18NWriteF':'i18ns','DBMastersWriteF':_0x29dc8c(0x183),'DBMasterStylesWriteF':_0x29dc8c(0x1be),'DBMasterUtilsWriteF':_0x29dc8c(0x147),'TestCasesWriteF':'tests','ThirdPartyApiWriteF':_0x29dc8c(0x1e6),'EventsWriteF':'events','InstanceApiHooksWriteF':_0x29dc8c(0x216),'SystemApiHooksWriteF':'system-api-hooks','CollectionHooksWriteF':_0x29dc8c(0x182),'DatabaseHooksWriteF':'database-hooks','InstanceHooksWriteF':_0x29dc8c(0x104)},this[_0x29dc8c(0x1c5)]=!0x1,this[_0x29dc8c(0x254)]={},this[_0x29dc8c(0x25a)]=!0x1,this['orangeStart']=_0x29dc8c(0x180),this['cyanStart']=_0x29dc8c(0x18a),this[_0x29dc8c(0x202)]=_0x29dc8c(0x227),this[_0x29dc8c(0x1ae)]=!0x1,this[_0x29dc8c(0x22a)]=this[_0x29dc8c(0x1e2)](this[_0x29dc8c(0x155)],0x1f4);}async['start'](){const _0x460d5e=a0_0xf806;this[_0x460d5e(0x162)](),this['checkForNodeVersion'](),this[_0x460d5e(0x140)](this['C'][_0x460d5e(0x139)]+_0x460d5e(0x1a4))||(this[_0x460d5e(0x11e)](),this[_0x460d5e(0xf9)](0x1)[_0x460d5e(0x127)]()),this[_0x460d5e(0x17a)]=_0x5b58db(0x300)(this['C'][_0x460d5e(0x139)])(),await this['printNotes'](),this[_0x460d5e(0x23b)](_0x38e9ea[_0x460d5e(0x215)](_0x2f0ddb,this['C'][_0x460d5e(0x145)])),await this[_0x460d5e(0x14c)](),await this[_0x460d5e(0x1c9)](),await this[_0x460d5e(0x11c)]();}[_0x1b0e0f(0x18b)](){const _0x3bc29e=_0x1b0e0f,_0x4298c7=process['version'];parseInt(_0x4298c7[_0x3bc29e(0x1dd)]('.')[0x0][_0x3bc29e(0x1a1)]('v',''),0xa)<0x16&&(console['error'](this['orangeStart']+'Node.js\x2022+\x20is\x20required.\x20Current\x20version:\x20'+_0x4298c7+this['colorEnd']),this[_0x3bc29e(0xf9)](0x1)[_0x3bc29e(0x127)]());}async[_0x1b0e0f(0x1a6)](){const _0x3fa255=_0x1b0e0f;console[_0x3fa255(0x1af)](this[_0x3fa255(0x21a)]),console[_0x3fa255(0x1af)]('——————————————————————————————————————\x20Note\x20——————————————————————————————————————'),console[_0x3fa255(0x1af)](_0x3fa255(0x20c)),console[_0x3fa255(0x1af)](_0x3fa255(0x242)),console['log'](this[_0x3fa255(0x202)]),console[_0x3fa255(0x1af)]('');}[_0x1b0e0f(0x11e)](){const _0x3e1023=_0x1b0e0f;console[_0x3e1023(0x1af)](_0x3e1023(0x180)),console[_0x3e1023(0x1af)](_0x3e1023(0x259)+this['C'][_0x3e1023(0x139)]+_0x3e1023(0x1a4)),console[_0x3e1023(0x1af)](_0x3e1023(0x227)),console[_0x3e1023(0x1af)]('');}async[_0x1b0e0f(0x14c)](){const _0x5e6601=_0x1b0e0f,_0x18792f=_0x38e9ea[_0x5e6601(0x173)](_0x2f0ddb),_0x5ac93e=_0x38e9ea[_0x5e6601(0x215)](_0x2f0ddb,'..',_0x18792f+_0x5e6601(0x115));this['projectDirectory']=_0x5ac93e,_0x2a0ea6['rmSync'](_0x5ac93e,{'recursive':!0x0,'force':!0x0}),await this['fsMkDir'](_0x5ac93e,{'recursive':!0x0});}async[_0x1b0e0f(0x1fe)](_0x10d4cb){const _0x4fcd78=_0x1b0e0f;await this[_0x4fcd78(0x14c)](),this[_0x4fcd78(0x1f4)](_0x38e9ea[_0x4fcd78(0x215)](this[_0x4fcd78(0x166)],this['C'][_0x4fcd78(0x145)]),{'recursive':!0x0}),_0x2a0ea6[_0x4fcd78(0x11f)](_0x38e9ea['join'](_0x2f0ddb,_0x4fcd78(0x25c)),_0x38e9ea[_0x4fcd78(0x215)](this[_0x4fcd78(0x166)],_0x4fcd78(0x25c))),_0x2a0ea6[_0x4fcd78(0x11f)](_0x38e9ea[_0x4fcd78(0x215)](_0x2f0ddb,_0x4fcd78(0x248)),_0x38e9ea['join'](this['projectDirectory'],'.gitignore'));const _0x46e510=_0x38e9ea[_0x4fcd78(0x215)](_0x2f0ddb,_0x4fcd78(0x24a)),_0x1d9185=JSON[_0x4fcd78(0x20f)](await this[_0x4fcd78(0x1dc)](_0x46e510,{'encoding':'utf8'}));_0x1d9185[_0x4fcd78(0x1b8)][_0x4fcd78(0x252)]='./src',_0x1d9185['compilerOptions'][_0x4fcd78(0x1db)]['*'][_0x4fcd78(0x1c7)]('*'),await this['fsWriteFile'](_0x38e9ea[_0x4fcd78(0x215)](this[_0x4fcd78(0x166)],_0x4fcd78(0x24a)),JSON['stringify'](_0x1d9185,null,0x4),{'encoding':_0x4fcd78(0x143)}),await _0x2a0ea6[_0x4fcd78(0x12e)]['cp'](_0x38e9ea[_0x4fcd78(0x215)](_0x2f0ddb,this['C'][_0x4fcd78(0x102)]),_0x38e9ea[_0x4fcd78(0x215)](this['projectDirectory'],this['C'][_0x4fcd78(0x145)],this['C'][_0x4fcd78(0x102)]),{'recursive':!0x0}),await _0x2a0ea6[_0x4fcd78(0x12e)]['cp'](_0x38e9ea['join'](_0x2f0ddb,this['C'][_0x4fcd78(0x145)],this[_0x4fcd78(0x17a)][_0x4fcd78(0x176)],this['C'][_0x4fcd78(0x116)],this['C'][_0x4fcd78(0x181)]),_0x38e9ea[_0x4fcd78(0x215)](this['projectDirectory'],this['C'][_0x4fcd78(0x145)],this['C'][_0x4fcd78(0x102)],this['C']['dbInterfacesFile']),{'recursive':!0x0}),await this['copyUtilityClassesToAnotherDir'](),await this[_0x4fcd78(0x148)](),await this[_0x4fcd78(0x109)](),await this['copySchemasToAnotherDir'](),await this[_0x4fcd78(0x24e)](),await this[_0x4fcd78(0x152)](),await this[_0x4fcd78(0x257)](),await this[_0x4fcd78(0x168)](),await this[_0x4fcd78(0x128)](),await this[_0x4fcd78(0x1ec)](),await this[_0x4fcd78(0x19c)](),await this[_0x4fcd78(0x10c)](),await this['copyWebSocketEventsToAnotherDir'](),await this[_0x4fcd78(0x154)](),await this[_0x4fcd78(0x1a8)](),await this[_0x4fcd78(0x253)](),await this[_0x4fcd78(0x175)](),await this[_0x4fcd78(0x15b)](),await this['copyDBMasterUtilsToAnotherDir'](),_0x10d4cb&&(console[_0x4fcd78(0x1af)](_0x4fcd78(0x12a)),await this[_0x4fcd78(0x1ce)](_0x4fcd78(0x1fa),[_0x4fcd78(0x23c),'--force']),console['log'](_0x4fcd78(0xf8)));try{_0x2a0ea6[_0x4fcd78(0x16c)](_0x38e9ea['join'](_0x2f0ddb,_0x4fcd78(0x1ff)),_0x38e9ea['join'](this[_0x4fcd78(0x166)],_0x4fcd78(0x1ff)),_0x4fcd78(0x161));}catch(_0x55695a){console[_0x4fcd78(0x1af)](_0x4fcd78(0x177)),console[_0x4fcd78(0x1af)](_0x55695a),await this[_0x4fcd78(0xf9)](0x1);}}async[_0x1b0e0f(0x1c9)](){const _0x5852eb=_0x1b0e0f;console[_0x5852eb(0x1af)](_0x5852eb(0x255));try{_0x2a0ea6[_0x5852eb(0x14a)](_0x38e9ea[_0x5852eb(0x215)](_0x2f0ddb,_0x5852eb(0x240)));}catch(_0x26a97c){}await this[_0x5852eb(0x1ce)](_0x5852eb(0x1fa),[_0x5852eb(0x23c),'--no-save',_0x5852eb(0x105),_0x5852eb(0x130)]),console[_0x5852eb(0x1af)](_0x5852eb(0x250));}async[_0x1b0e0f(0x214)](){const _0x35c257=_0x1b0e0f,_0x440752=this['C']['UtilityClassesReadF'],_0x119bdd=_0x38e9ea[_0x35c257(0x215)](_0x2f0ddb,this['C'][_0x35c257(0x145)],this['config']['adminUserPath'],_0x440752),_0xd60d01=await this['readDirCustom'](_0x119bdd,null);for(const _0x1f5303 of _0xd60d01){const _0x25bebe=_0x38e9ea['join'](_0x119bdd,_0x1f5303,_0x1f5303+_0x35c257(0x1b0));if(!this['fsExistsSync'](_0x25bebe))continue;const _0x4dcb23=await this[_0x35c257(0x1dc)](_0x25bebe,{'encoding':'utf8'}),_0x4bc5fd=await this['parseYaml'](_0x4dcb23);for(const _0x4702dc of _0x4bc5fd['versions']||[])if(!0x0===_0x4702dc[_0x35c257(0x196)]){const _0xea658b=_0x38e9ea[_0x35c257(0x215)](_0x119bdd,_0x1f5303,this['C']['versions'],_0x4702dc['version'],_0x4702dc['name']+_0x35c257(0x125)),_0x1dbfb1=_0x38e9ea[_0x35c257(0x215)](this['projectDirectory'],this['C'][_0x35c257(0x145)],_0x4bc5fd[_0x35c257(0x22e)],_0x4bc5fd[_0x35c257(0x15c)]+_0x35c257(0x125));await this[_0x35c257(0x13c)](_0x38e9ea[_0x35c257(0x1b6)](_0x1dbfb1),{'recursive':!0x0}),await this[_0x35c257(0x193)](_0xea658b,_0x1dbfb1);}}}async[_0x1b0e0f(0x148)](){const _0x5c759c=_0x1b0e0f,_0x486156=this['C']['CustomApiReadF'],_0x3defb0=this['C']['CustomApisWriteF'],_0x45b0f4=_0x38e9ea[_0x5c759c(0x215)](_0x2f0ddb,this['C'][_0x5c759c(0x145)],this[_0x5c759c(0x17a)][_0x5c759c(0x176)],_0x486156),_0x2b567d=await this['readDirCustom'](_0x45b0f4,null);for(const _0x304eae of _0x2b567d){const _0x2a8bdb=_0x38e9ea[_0x5c759c(0x215)](_0x45b0f4,_0x304eae,_0x304eae+_0x5c759c(0x1b0));if(!this[_0x5c759c(0x140)](_0x2a8bdb))continue;const _0x31e05d=await this['fsReadFile'](_0x2a8bdb,{'encoding':_0x5c759c(0x143)}),_0x129b82=await this[_0x5c759c(0x1aa)](_0x31e05d);for(const _0x42c5b3 of _0x129b82[_0x5c759c(0x1d1)]||[])if(!0x0===_0x42c5b3[_0x5c759c(0x196)]){const _0x3f5ade=_0x38e9ea[_0x5c759c(0x215)](_0x45b0f4,_0x304eae,this['C'][_0x5c759c(0x1d1)],_0x42c5b3[_0x5c759c(0x20e)]),_0x56c0b3=_0x38e9ea['join'](_0x3f5ade,_0x42c5b3[_0x5c759c(0x15c)]+_0x5c759c(0x125)),_0x5170c7=_0x38e9ea[_0x5c759c(0x215)](this[_0x5c759c(0x166)],this['C'][_0x5c759c(0x145)],_0x3defb0,_0x129b82[_0x5c759c(0x21f)],_0x129b82[_0x5c759c(0x15c)]+'.ts');await this[_0x5c759c(0x13c)](_0x38e9ea[_0x5c759c(0x1b6)](_0x5170c7),{'recursive':!0x0}),await this[_0x5c759c(0x193)](_0x56c0b3,_0x5170c7);const _0x1cda01=_0x38e9ea[_0x5c759c(0x215)](_0x45b0f4,_0x304eae,_0x304eae+_0x5c759c(0xfe)),_0x358c9f=_0x38e9ea['join'](this[_0x5c759c(0x166)],this['C']['src'],_0x3defb0,_0x129b82[_0x5c759c(0x21f)],_0x129b82[_0x5c759c(0x15c)]+_0x5c759c(0xfe));await this[_0x5c759c(0x193)](_0x1cda01,_0x358c9f);for(const _0x43ce4c of _0x42c5b3['preHooks']){const _0x2e4319=_0x38e9ea['join'](_0x3f5ade,this['C']['preHooks'],_0x43ce4c[_0x5c759c(0x15c)]+_0x5c759c(0x125)),_0x52cec0=_0x38e9ea[_0x5c759c(0x215)](this[_0x5c759c(0x166)],this['C'][_0x5c759c(0x145)],_0x3defb0,_0x129b82[_0x5c759c(0x21f)],this['C']['preHooks'],_0x43ce4c[_0x5c759c(0x15c)]+_0x5c759c(0x125));await this[_0x5c759c(0x13c)](_0x38e9ea['dirname'](_0x52cec0),{'recursive':!0x0}),await this[_0x5c759c(0x193)](_0x2e4319,_0x52cec0);}for(const _0x3a2277 of _0x42c5b3[_0x5c759c(0x1e0)]){const _0x51d788=_0x38e9ea[_0x5c759c(0x215)](_0x3f5ade,this['C'][_0x5c759c(0x1e0)],_0x3a2277['name']+_0x5c759c(0x125)),_0x236f21=_0x38e9ea['join'](this[_0x5c759c(0x166)],this['C'][_0x5c759c(0x145)],_0x3defb0,_0x129b82[_0x5c759c(0x21f)],this['C']['postHooks'],_0x3a2277['name']+'.ts');await this[_0x5c759c(0x13c)](_0x38e9ea[_0x5c759c(0x1b6)](_0x236f21),{'recursive':!0x0}),await this[_0x5c759c(0x193)](_0x51d788,_0x236f21);}}}}async[_0x1b0e0f(0x109)](){const _0x127b86=_0x1b0e0f,_0x353713=this['C'][_0x127b86(0xfc)],_0x2692b9=this['C'][_0x127b86(0x107)],_0x48470a=_0x38e9ea['join'](_0x2f0ddb,this['C']['src'],this['config'][_0x127b86(0x176)],_0x353713),_0x4c49cc=await this[_0x127b86(0x1de)](_0x48470a,null);for(const _0x4e6033 of _0x4c49cc){const _0x8d1333=_0x38e9ea[_0x127b86(0x215)](_0x48470a,_0x4e6033,_0x4e6033+_0x127b86(0x1b0));if(!this[_0x127b86(0x140)](_0x8d1333))continue;const _0x407ab5=await this[_0x127b86(0x1dc)](_0x8d1333,{'encoding':_0x127b86(0x143)}),_0x574eb0=await this[_0x127b86(0x1aa)](_0x407ab5);for(const _0x2c3aa1 of _0x574eb0[_0x127b86(0x1d1)]||[])if(!0x0===_0x2c3aa1[_0x127b86(0x196)]){const _0x37c870=_0x38e9ea[_0x127b86(0x215)](_0x48470a,_0x4e6033,this['C'][_0x127b86(0x1d1)],_0x2c3aa1['version'],_0x2c3aa1[_0x127b86(0x15c)]+_0x127b86(0x125)),_0x4940ae=_0x38e9ea['join'](this[_0x127b86(0x166)],this['C'][_0x127b86(0x145)],_0x2692b9,_0x574eb0[_0x127b86(0x15c)]+_0x127b86(0x125));await this[_0x127b86(0x13c)](_0x38e9ea[_0x127b86(0x1b6)](_0x4940ae),{'recursive':!0x0}),await this[_0x127b86(0x193)](_0x37c870,_0x4940ae);}}}async['copySchemasToAnotherDir'](){const _0xb6c7d9=_0x1b0e0f,_0xb35e1d=this['C'][_0xb6c7d9(0x1cd)],_0xb54fa5=this['C'][_0xb6c7d9(0x1d8)],_0x243e37=_0x38e9ea[_0xb6c7d9(0x215)](_0x2f0ddb,this['C'][_0xb6c7d9(0x145)],this[_0xb6c7d9(0x17a)][_0xb6c7d9(0x176)],_0xb35e1d),_0x5913eb=await this['readDirCustom'](_0x243e37,null);for(const _0x293b64 of _0x5913eb){const _0x3c516d=_0x38e9ea[_0xb6c7d9(0x215)](_0x243e37,_0x293b64,_0x293b64+_0xb6c7d9(0x1b0));if(!this[_0xb6c7d9(0x140)](_0x3c516d))continue;const _0x4d2f8c=await this[_0xb6c7d9(0x1dc)](_0x3c516d,{'encoding':_0xb6c7d9(0x143)}),_0x44a149=await this['parseYaml'](_0x4d2f8c),_0x2427ef=_0x38e9ea[_0xb6c7d9(0x215)](this[_0xb6c7d9(0x166)],this['C']['src'],_0xb54fa5,_0x44a149['instanceName'],_0x44a149[_0xb6c7d9(0x1bd)]);await this['fsMkDir'](_0x2427ef,{'recursive':!0x0});const _0x3a1d7e=_0x38e9ea[_0xb6c7d9(0x215)](_0x243e37,_0x293b64,_0x44a149['collectionName']+_0xb6c7d9(0xfe)),_0x6dd559=_0x38e9ea[_0xb6c7d9(0x215)](_0x2427ef,_0x44a149[_0xb6c7d9(0x117)]+'.config.ts');await this[_0xb6c7d9(0x193)](_0x3a1d7e,_0x6dd559);}}async['copyDBMigrationsToAnotherDir'](){const _0x184917=_0x1b0e0f,_0x429fbe=this['C'][_0x184917(0x209)],_0x46f647=this['C'][_0x184917(0xfb)],_0x2bc7b9=_0x38e9ea[_0x184917(0x215)](_0x2f0ddb,this['C'][_0x184917(0x145)],this[_0x184917(0x17a)][_0x184917(0x176)],_0x429fbe),_0x4d89f1=await this['readDirCustom'](_0x2bc7b9,null);for(const _0x407d9c of _0x4d89f1){const _0x337f93=_0x38e9ea['join'](_0x2bc7b9,_0x407d9c,_0x407d9c+_0x184917(0x1b0));if(!this[_0x184917(0x140)](_0x337f93))continue;const _0x2a3f20=await this[_0x184917(0x1dc)](_0x337f93,{'encoding':_0x184917(0x143)}),_0xcfb8ab=await this[_0x184917(0x1aa)](_0x2a3f20),_0xbf879c=_0x38e9ea[_0x184917(0x215)](this[_0x184917(0x166)],this['C'][_0x184917(0x145)],_0x46f647);await this[_0x184917(0x13c)](_0xbf879c,{'recursive':!0x0});const _0x361824=_0x38e9ea[_0x184917(0x215)](_0x2bc7b9,_0x407d9c,_0xcfb8ab[_0x184917(0x15c)]+'.ts'),_0x128dbc=_0x38e9ea[_0x184917(0x215)](_0xbf879c,_0xcfb8ab[_0x184917(0x15c)]+_0x184917(0x125));await this['fsLink'](_0x361824,_0x128dbc);}}async[_0x1b0e0f(0x152)](){const _0x502da5=_0x1b0e0f,_0x56c9d6=this['C']['ProcessInitializersReadF'],_0xc92182=this['C'][_0x502da5(0x185)],_0x2ddab5=_0x38e9ea[_0x502da5(0x215)](_0x2f0ddb,this['C']['src'],this[_0x502da5(0x17a)][_0x502da5(0x176)],_0x56c9d6),_0x46622c=await this[_0x502da5(0x1de)](_0x2ddab5,null);for(const _0x342a0f of _0x46622c){const _0xb088be=_0x38e9ea[_0x502da5(0x215)](_0x2ddab5,_0x342a0f,_0x342a0f+_0x502da5(0x1b0));if(!this[_0x502da5(0x140)](_0xb088be))continue;const _0x449f8c=await this[_0x502da5(0x1dc)](_0xb088be,{'encoding':_0x502da5(0x143)}),_0xf20bcc=await this[_0x502da5(0x1aa)](_0x449f8c),_0x3bed9f=_0x38e9ea['join'](this[_0x502da5(0x166)],this['C']['src'],_0xc92182);await this[_0x502da5(0x13c)](_0x3bed9f,{'recursive':!0x0});const _0x58e1c4=_0x38e9ea[_0x502da5(0x215)](_0x2ddab5,_0x342a0f,_0xf20bcc[_0x502da5(0x15c)]+_0x502da5(0x125)),_0x46c648=_0x38e9ea[_0x502da5(0x215)](_0x3bed9f,_0xf20bcc['name']+'.ts');await this[_0x502da5(0x193)](_0x58e1c4,_0x46c648);}}async[_0x1b0e0f(0x257)](){const _0x17349a=_0x1b0e0f,_0x295464=this['C'][_0x17349a(0x1bf)],_0x98303b=this['C'][_0x17349a(0x19b)],_0xee1664=_0x38e9ea[_0x17349a(0x215)](_0x2f0ddb,this['C'][_0x17349a(0x145)],this[_0x17349a(0x17a)][_0x17349a(0x176)],_0x295464),_0x4858c6=await this['readDirCustom'](_0xee1664,null);for(const _0x54f304 of _0x4858c6){const _0x567594=_0x38e9ea[_0x17349a(0x215)](_0xee1664,_0x54f304,_0x54f304+_0x17349a(0x1b0));if(!this[_0x17349a(0x140)](_0x567594))continue;const _0x18ca76=await this[_0x17349a(0x1dc)](_0x567594,{'encoding':'utf8'}),_0x154ed3=await this[_0x17349a(0x1aa)](_0x18ca76),_0x2ccfa3=_0x38e9ea['join'](this[_0x17349a(0x166)],this['C'][_0x17349a(0x145)],_0x98303b);await this[_0x17349a(0x13c)](_0x2ccfa3,{'recursive':!0x0});const _0x2dc15c=_0x38e9ea['join'](_0xee1664,_0x54f304,_0x154ed3[_0x17349a(0x15c)]+_0x17349a(0x125)),_0x51d101=_0x38e9ea[_0x17349a(0x215)](_0x2ccfa3,_0x154ed3[_0x17349a(0x15c)]+_0x17349a(0x125));await this[_0x17349a(0x193)](_0x2dc15c,_0x51d101);}}async[_0x1b0e0f(0x175)](){const _0xd59868=_0x1b0e0f,_0x247e6e=this['C'][_0xd59868(0x11a)],_0x3f82f8=this['C']['DBMastersWriteF'],_0x41bd47=_0x38e9ea['join'](_0x2f0ddb,this['C']['src'],this[_0xd59868(0x17a)][_0xd59868(0x176)],_0x247e6e),_0x1ce0ba=await this[_0xd59868(0x1de)](_0x41bd47,null);for(const _0x248dd6 of _0x1ce0ba){const _0x1b05c0=_0x38e9ea[_0xd59868(0x215)](_0x41bd47,_0x248dd6,_0x248dd6+'.yaml');if(!this[_0xd59868(0x140)](_0x1b05c0))continue;const _0x4f330d=await this[_0xd59868(0x1dc)](_0x1b05c0,{'encoding':'utf8'}),_0x883eed=await this[_0xd59868(0x1aa)](_0x4f330d),_0xa9bc2b=_0x38e9ea[_0xd59868(0x215)](this[_0xd59868(0x166)],this['C']['src'],_0x3f82f8,_0x883eed[_0xd59868(0x15c)]);await this['fsMkDir'](_0xa9bc2b,{'recursive':!0x0});const _0x509ba5=_0x38e9ea[_0xd59868(0x215)](_0x41bd47,_0x248dd6,_0x883eed[_0xd59868(0x15c)]+_0xd59868(0x125)),_0x5392a3=_0x38e9ea['join'](_0xa9bc2b,_0x883eed['name']+'.ts');await this['fsLink'](_0x509ba5,_0x5392a3);const _0x47c4c7=_0x38e9ea[_0xd59868(0x215)](_0x41bd47,_0x248dd6,_0x883eed[_0xd59868(0x15c)]+_0xd59868(0xfe)),_0x147664=_0x38e9ea[_0xd59868(0x215)](_0xa9bc2b,_0x883eed['name']+'.config.ts');await this[_0xd59868(0x193)](_0x47c4c7,_0x147664);}}async[_0x1b0e0f(0x15b)](){const _0x1f9447=_0x1b0e0f,_0x43eb55=this['C'][_0x1f9447(0x23e)],_0x201678=this['C'][_0x1f9447(0x111)],_0xebb512=_0x38e9ea[_0x1f9447(0x215)](_0x2f0ddb,this['C'][_0x1f9447(0x145)],this['config']['adminUserPath'],_0x43eb55),_0x26c289=await this['readDirCustom'](_0xebb512,null);for(const _0x507de1 of _0x26c289){const _0x1ebe20=_0x38e9ea[_0x1f9447(0x215)](_0xebb512,_0x507de1,_0x507de1+_0x1f9447(0x1b0));if(!this[_0x1f9447(0x140)](_0x1ebe20))continue;const _0x4e5767=await this[_0x1f9447(0x1dc)](_0x1ebe20,{'encoding':_0x1f9447(0x143)}),_0x1684a5=await this[_0x1f9447(0x1aa)](_0x4e5767),_0x4938cb=_0x38e9ea[_0x1f9447(0x215)](this[_0x1f9447(0x166)],this['C'][_0x1f9447(0x145)],_0x201678);await this['fsMkDir'](_0x4938cb,{'recursive':!0x0});const _0x26cb3f=_0x38e9ea[_0x1f9447(0x215)](_0xebb512,_0x507de1,_0x1684a5[_0x1f9447(0x15c)]+_0x1f9447(0x229)),_0x793030=_0x38e9ea['join'](_0x4938cb,_0x1684a5['name']+_0x1f9447(0x229));await this['fsLink'](_0x26cb3f,_0x793030);}}async['copyDBMasterUtilsToAnotherDir'](){const _0x805b07=_0x1b0e0f,_0x48360b=this['C'][_0x805b07(0x18f)],_0x3d8d85=this['C'][_0x805b07(0x238)],_0x40c4b8=_0x38e9ea[_0x805b07(0x215)](_0x2f0ddb,this['C'][_0x805b07(0x145)],this[_0x805b07(0x17a)]['adminUserPath'],_0x48360b),_0x56fe50=await this['readDirCustom'](_0x40c4b8,null);for(const _0x4825d8 of _0x56fe50){const _0x11d455=_0x38e9ea[_0x805b07(0x215)](_0x40c4b8,_0x4825d8,_0x4825d8+'.yaml');if(!this[_0x805b07(0x140)](_0x11d455))continue;const _0x5c5f0f=await this[_0x805b07(0x1dc)](_0x11d455,{'encoding':_0x805b07(0x143)}),_0x4f8930=await this[_0x805b07(0x1aa)](_0x5c5f0f),_0x555815=_0x38e9ea[_0x805b07(0x215)](this[_0x805b07(0x166)],this['C'][_0x805b07(0x145)],_0x3d8d85);await this['fsMkDir'](_0x555815,{'recursive':!0x0});const _0x5b10d9=_0x38e9ea[_0x805b07(0x215)](_0x40c4b8,_0x4825d8,_0x4f8930['name']+'.ts'),_0x15a477=_0x38e9ea[_0x805b07(0x215)](_0x555815,_0x4f8930['name']+_0x805b07(0x125));await this[_0x805b07(0x193)](_0x5b10d9,_0x15a477);}}async[_0x1b0e0f(0x168)](){const _0xd6fb09=_0x1b0e0f,_0xac8114=this['C'][_0xd6fb09(0x1c6)],_0x4e85ce=this['C']['TestCasesWriteF'],_0x280d6e=_0x38e9ea['join'](_0x2f0ddb,this['C'][_0xd6fb09(0x145)],this[_0xd6fb09(0x17a)][_0xd6fb09(0x176)],_0xac8114),_0x1a6c78=await this['readDirCustom'](_0x280d6e,null);for(const _0x73ae6a of _0x1a6c78){const _0x4d9ec2=_0x38e9ea['join'](_0x280d6e,_0x73ae6a,_0x73ae6a+_0xd6fb09(0x1b0));if(!this[_0xd6fb09(0x140)](_0x4d9ec2))continue;const _0x55d046=await this[_0xd6fb09(0x1dc)](_0x4d9ec2,{'encoding':_0xd6fb09(0x143)}),_0xa15687=await this[_0xd6fb09(0x1aa)](_0x55d046),_0x32273d=_0x38e9ea[_0xd6fb09(0x215)](this[_0xd6fb09(0x166)],this['C'][_0xd6fb09(0x145)],_0x4e85ce);await this[_0xd6fb09(0x13c)](_0x32273d,{'recursive':!0x0});const _0x3b6df9=_0x38e9ea[_0xd6fb09(0x215)](_0x280d6e,_0x73ae6a,_0xa15687[_0xd6fb09(0x15c)]+_0xd6fb09(0x125)),_0x1b920e=_0x38e9ea[_0xd6fb09(0x215)](_0x32273d,_0xa15687[_0xd6fb09(0x15c)]+_0xd6fb09(0x125));await this['fsLink'](_0x3b6df9,_0x1b920e);}}async[_0x1b0e0f(0x128)](){const _0xfca5b6=_0x1b0e0f,_0x589646=this['C'][_0xfca5b6(0x1b7)],_0x389c59=this['C']['ThirdPartyApiWriteF'],_0x2c7dd7=_0x38e9ea[_0xfca5b6(0x215)](_0x2f0ddb,this['C'][_0xfca5b6(0x145)],this[_0xfca5b6(0x17a)][_0xfca5b6(0x176)],_0x589646);if(!this[_0xfca5b6(0x140)](_0x2c7dd7))return;const _0x518fa0=await this['readDirCustom'](_0x2c7dd7,null);for(const _0x57fd1d of _0x518fa0){const _0xb5bcd8=_0x38e9ea[_0xfca5b6(0x215)](_0x2c7dd7,_0x57fd1d,this['C']['apis']),_0xf9dc4e=await this['readDirCustom'](_0xb5bcd8,null);for(const _0x208c21 of _0xf9dc4e){const _0x366541=_0x38e9ea[_0xfca5b6(0x215)](_0xb5bcd8,_0x208c21,_0x208c21+_0xfca5b6(0x1b0));if(!this[_0xfca5b6(0x140)](_0x366541))continue;const _0x384af6=await this[_0xfca5b6(0x1dc)](_0x366541,{'encoding':_0xfca5b6(0x143)}),_0x243a2a=await this[_0xfca5b6(0x1aa)](_0x384af6);for(const _0x2cca29 of _0x243a2a[_0xfca5b6(0x1d1)]||[])if(!0x0===_0x2cca29[_0xfca5b6(0x196)]){const _0x277631=_0x38e9ea['join'](_0xb5bcd8,_0x208c21,this['C'][_0xfca5b6(0x1d1)],_0x2cca29[_0xfca5b6(0x20e)]),_0x443bae=_0x38e9ea['join'](_0x277631,_0x2cca29[_0xfca5b6(0x15c)]+_0xfca5b6(0x125)),_0x59f308=_0x38e9ea[_0xfca5b6(0x215)](this[_0xfca5b6(0x166)],this['C'][_0xfca5b6(0x145)],_0x389c59,_0x57fd1d,_0x243a2a[_0xfca5b6(0x21f)],_0x243a2a[_0xfca5b6(0x15c)]+_0xfca5b6(0x125));await this['fsMkDir'](_0x38e9ea[_0xfca5b6(0x1b6)](_0x59f308),{'recursive':!0x0}),await this[_0xfca5b6(0x193)](_0x443bae,_0x59f308);const _0x95d7d0=_0x38e9ea[_0xfca5b6(0x215)](_0xb5bcd8,_0x208c21,_0x208c21+'.config.ts'),_0x2f9556=_0x38e9ea[_0xfca5b6(0x215)](this[_0xfca5b6(0x166)],this['C']['src'],_0x389c59,_0x57fd1d,_0x243a2a['path'],_0x243a2a['name']+_0xfca5b6(0xfe));await this[_0xfca5b6(0x193)](_0x95d7d0,_0x2f9556);for(const _0x1a12fe of _0x2cca29[_0xfca5b6(0x222)]){const _0x152df2=_0x38e9ea[_0xfca5b6(0x215)](_0x277631,this['C'][_0xfca5b6(0x222)],_0x1a12fe[_0xfca5b6(0x15c)]+'.ts'),_0x1de727=_0x38e9ea['join'](this[_0xfca5b6(0x166)],this['C'][_0xfca5b6(0x145)],_0x389c59,_0x57fd1d,_0x243a2a[_0xfca5b6(0x21f)],this['C'][_0xfca5b6(0x222)],_0x1a12fe['name']+_0xfca5b6(0x125));await this['fsMkDir'](_0x38e9ea[_0xfca5b6(0x1b6)](_0x1de727),{'recursive':!0x0}),await this[_0xfca5b6(0x193)](_0x152df2,_0x1de727);}for(const _0x23e95c of _0x2cca29[_0xfca5b6(0x1e0)]){const _0x4a22ee=_0x38e9ea[_0xfca5b6(0x215)](_0x277631,this['C'][_0xfca5b6(0x1e0)],_0x23e95c[_0xfca5b6(0x15c)]+_0xfca5b6(0x125)),_0x1f1ad5=_0x38e9ea['join'](this[_0xfca5b6(0x166)],this['C']['src'],_0x389c59,_0x57fd1d,_0x243a2a[_0xfca5b6(0x21f)],this['C'][_0xfca5b6(0x1e0)],_0x23e95c[_0xfca5b6(0x15c)]+_0xfca5b6(0x125));await this[_0xfca5b6(0x13c)](_0x38e9ea[_0xfca5b6(0x1b6)](_0x1f1ad5),{'recursive':!0x0}),await this['fsLink'](_0x4a22ee,_0x1f1ad5);}}}}}async[_0x1b0e0f(0x1ec)](){const _0xd89e84=_0x1b0e0f,_0x1f6d8a=this['C'][_0xd89e84(0x14f)],_0x4b7c69=this['C'][_0xd89e84(0x172)],_0x498fdc=_0x38e9ea['join'](_0x2f0ddb,this['C']['src'],this[_0xd89e84(0x17a)][_0xd89e84(0x176)],_0x1f6d8a),_0x3aff67=await this[_0xd89e84(0x1de)](_0x498fdc,null);for(const _0x550fe4 of _0x3aff67){const _0x302eac=_0x38e9ea[_0xd89e84(0x215)](_0x498fdc,_0x550fe4,_0x550fe4+_0xd89e84(0x1b0));if(!this[_0xd89e84(0x140)](_0x302eac))continue;const _0x2d9420=await this[_0xd89e84(0x1dc)](_0x302eac,{'encoding':'utf8'}),_0x450fec=await this[_0xd89e84(0x1aa)](_0x2d9420),_0x17d6a4=_0x38e9ea[_0xd89e84(0x215)](_0x498fdc,_0x550fe4,this['C'][_0xd89e84(0x1fb)]);for(const _0x2d3ec2 of _0x450fec[_0xd89e84(0x16d)])for(const _0x3b42d7 of _0x2d3ec2[_0xd89e84(0x1d1)]||[])if(!0x0===_0x3b42d7[_0xd89e84(0x196)]){const _0x39c48d=_0x38e9ea['join'](_0x17d6a4,_0x2d3ec2['name'],this['C'][_0xd89e84(0x1d1)],_0x3b42d7[_0xd89e84(0x20e)],_0x3b42d7[_0xd89e84(0x15c)]+_0xd89e84(0x125)),_0x6871b5=_0x38e9ea[_0xd89e84(0x215)](this[_0xd89e84(0x166)],this['C']['src'],_0x4b7c69,_0x450fec[_0xd89e84(0x15c)],_0x2d3ec2['name']+_0xd89e84(0x125));await this[_0xd89e84(0x13c)](_0x38e9ea[_0xd89e84(0x1b6)](_0x6871b5),{'recursive':!0x0}),await this[_0xd89e84(0x193)](_0x39c48d,_0x6871b5);}}}async['copyInstanceApiHooksToAnotherDir'](){const _0x3e5a19=_0x1b0e0f,_0x242cda=this['C'][_0x3e5a19(0x10d)],_0x4cd538=this['C'][_0x3e5a19(0x1c8)],_0x396a73=_0x38e9ea[_0x3e5a19(0x215)](_0x2f0ddb,this['C'][_0x3e5a19(0x145)],this[_0x3e5a19(0x17a)][_0x3e5a19(0x176)],_0x242cda),_0x17dc98=await this[_0x3e5a19(0x1de)](_0x396a73,null);for(const _0x27cb58 of _0x17dc98){const _0x531845=_0x38e9ea[_0x3e5a19(0x215)](_0x396a73,_0x27cb58,_0x27cb58+_0x3e5a19(0x1b0));if(!this[_0x3e5a19(0x140)](_0x531845))continue;const _0x422b04=await this[_0x3e5a19(0x1dc)](_0x531845,{'encoding':_0x3e5a19(0x143)}),_0x227a51=await this[_0x3e5a19(0x1aa)](_0x422b04),_0x146a18=_0x38e9ea[_0x3e5a19(0x215)](_0x396a73,_0x27cb58),_0x4d8af2=_0x227a51[_0x3e5a19(0x197)]+'/'+_0x227a51[_0x3e5a19(0x1bd)]+'/'+_0x227a51['collectionName']+'/'+_0x227a51[_0x3e5a19(0x191)][_0x3e5a19(0x219)]();for(const _0xd0e9b9 of _0x227a51[_0x3e5a19(0x222)]){const _0x468a8d=_0x38e9ea[_0x3e5a19(0x215)](_0x146a18,this['C'][_0x3e5a19(0x222)],_0xd0e9b9['name']+'.ts'),_0x346ae6=_0x38e9ea[_0x3e5a19(0x215)](this[_0x3e5a19(0x166)],this['C'][_0x3e5a19(0x145)],_0x4cd538,_0x4d8af2,this['C']['preHooks'],_0xd0e9b9[_0x3e5a19(0x15c)]+_0x3e5a19(0x125));await this['fsMkDir'](_0x38e9ea[_0x3e5a19(0x1b6)](_0x346ae6),{'recursive':!0x0}),await this[_0x3e5a19(0x193)](_0x468a8d,_0x346ae6);}for(const _0x261ab7 of _0x227a51[_0x3e5a19(0x1e0)]){const _0x115103=_0x38e9ea['join'](_0x146a18,this['C'][_0x3e5a19(0x1e0)],_0x261ab7['name']+_0x3e5a19(0x125)),_0x2493d8=_0x38e9ea[_0x3e5a19(0x215)](this[_0x3e5a19(0x166)],this['C'][_0x3e5a19(0x145)],_0x4cd538,_0x4d8af2,this['C']['postHooks'],_0x261ab7['name']+'.ts');await this['fsMkDir'](_0x38e9ea[_0x3e5a19(0x1b6)](_0x2493d8),{'recursive':!0x0}),await this[_0x3e5a19(0x193)](_0x115103,_0x2493d8);}}}async[_0x1b0e0f(0x10c)](){const _0x58d9bf=_0x1b0e0f,_0x284007=this['C'][_0x58d9bf(0x1a0)],_0x1c2f7f=this['C'][_0x58d9bf(0x1bc)],_0x3bebf8=_0x38e9ea[_0x58d9bf(0x215)](_0x2f0ddb,this['C'][_0x58d9bf(0x145)],this[_0x58d9bf(0x17a)][_0x58d9bf(0x176)],_0x284007),_0x31ae92=await this[_0x58d9bf(0x1de)](_0x3bebf8,null);for(const _0x350a72 of _0x31ae92){const _0x39b5c5=_0x38e9ea['join'](_0x3bebf8,_0x350a72,_0x350a72+_0x58d9bf(0x1b0));if(!this[_0x58d9bf(0x140)](_0x39b5c5))continue;const _0x5b4c7f=await this[_0x58d9bf(0x1dc)](_0x39b5c5,{'encoding':_0x58d9bf(0x143)}),_0x5810a9=await this['parseYaml'](_0x5b4c7f),_0x3aa1f0=_0x38e9ea[_0x58d9bf(0x215)](_0x3bebf8,_0x350a72),_0x3f566e=_0x5810a9[_0x58d9bf(0x191)][_0x58d9bf(0x219)]();for(const _0x1fa38d of _0x5810a9[_0x58d9bf(0x222)]){const _0x40d59a=_0x38e9ea[_0x58d9bf(0x215)](_0x3aa1f0,this['C']['preHooks'],_0x1fa38d[_0x58d9bf(0x15c)]+_0x58d9bf(0x125)),_0x18eb4c=_0x38e9ea[_0x58d9bf(0x215)](this[_0x58d9bf(0x166)],this['C']['src'],_0x1c2f7f,_0x3f566e,this['C'][_0x58d9bf(0x222)],_0x1fa38d[_0x58d9bf(0x15c)]+_0x58d9bf(0x125));await this[_0x58d9bf(0x13c)](_0x38e9ea[_0x58d9bf(0x1b6)](_0x18eb4c),{'recursive':!0x0}),await this[_0x58d9bf(0x193)](_0x40d59a,_0x18eb4c);}for(const _0x42f01c of _0x5810a9['postHooks']){const _0x21687d=_0x38e9ea[_0x58d9bf(0x215)](_0x3aa1f0,this['C'][_0x58d9bf(0x1e0)],_0x42f01c['name']+_0x58d9bf(0x125)),_0x50fdc3=_0x38e9ea[_0x58d9bf(0x215)](this[_0x58d9bf(0x166)],this['C'][_0x58d9bf(0x145)],_0x1c2f7f,_0x3f566e,this['C'][_0x58d9bf(0x1e0)],_0x42f01c[_0x58d9bf(0x15c)]+_0x58d9bf(0x125));await this[_0x58d9bf(0x13c)](_0x38e9ea[_0x58d9bf(0x1b6)](_0x50fdc3),{'recursive':!0x0}),await this[_0x58d9bf(0x193)](_0x21687d,_0x50fdc3);}}}async[_0x1b0e0f(0x1e5)](){const _0xdfa899=_0x1b0e0f,_0x582352=this['C'][_0xdfa899(0x21d)],_0x1c5289=this['C']['WebSocketEventsWriteF'],_0x4b080c=_0x38e9ea[_0xdfa899(0x215)](_0x2f0ddb,this['C'][_0xdfa899(0x145)],this[_0xdfa899(0x17a)]['adminUserPath'],_0x582352),_0x357aae=await this[_0xdfa899(0x1de)](_0x4b080c,null);for(const _0x3308ba of _0x357aae){const _0x3b3f77=_0x38e9ea['join'](_0x4b080c,_0x3308ba,_0x3308ba+'.yaml');if(!this[_0xdfa899(0x140)](_0x3b3f77))continue;const _0xe7ed80=await this[_0xdfa899(0x1dc)](_0x3b3f77,{'encoding':_0xdfa899(0x143)}),_0x22cf5f=await this['parseYaml'](_0xe7ed80);for(const _0x131fe3 of _0x22cf5f['versions']||[])if(!0x0===_0x131fe3[_0xdfa899(0x196)]){const _0x3172d2=_0x38e9ea['join'](_0x4b080c,_0x3308ba,this['C'][_0xdfa899(0x1d1)],_0x131fe3[_0xdfa899(0x20e)],_0x131fe3[_0xdfa899(0x15c)]+_0xdfa899(0x125));let _0x909451='',_0x3bc7c6='';_0x22cf5f[_0xdfa899(0x134)]===_0x513751[_0xdfa899(0x247)]?(_0x3bc7c6=_0xdfa899(0x232),_0x909451=_0x22cf5f['instanceName']+'/'+_0x22cf5f[_0xdfa899(0x1bd)]+'/'+_0x22cf5f[_0xdfa899(0x117)]+'/'+_0x22cf5f[_0xdfa899(0x19a)][_0xdfa899(0x219)]()):_0x22cf5f[_0xdfa899(0x134)]===_0x513751[_0xdfa899(0x146)]?(_0x3bc7c6=_0xdfa899(0x1e6),_0x909451=_0x22cf5f[_0xdfa899(0x14d)]+'/'+_0x22cf5f[_0xdfa899(0x1e7)]):_0x22cf5f[_0xdfa899(0x134)]===_0x513751[_0xdfa899(0x119)]?(_0x3bc7c6=_0xdfa899(0x1c3),_0x909451=_0x22cf5f[_0xdfa899(0x1d5)]):_0x22cf5f[_0xdfa899(0x134)]===_0x513751[_0xdfa899(0x133)]?(_0x3bc7c6='system-apis',_0x909451=_0x22cf5f[_0xdfa899(0x13d)][_0xdfa899(0x219)]()):_0x22cf5f['apiCategory']===_0x513751[_0xdfa899(0x1d3)]&&(_0x3bc7c6='ws-events',_0x909451=_0x22cf5f[_0xdfa899(0x15c)]);const _0x5ade84=_0x38e9ea[_0xdfa899(0x215)](this[_0xdfa899(0x166)],this['C'][_0xdfa899(0x145)],_0x1c5289,_0x3bc7c6,_0x909451+_0xdfa899(0x125));await this[_0xdfa899(0x13c)](_0x38e9ea[_0xdfa899(0x1b6)](_0x5ade84),{'recursive':!0x0}),await this['fsLink'](_0x3172d2,_0x5ade84);}}}async[_0x1b0e0f(0x154)](){const _0xe1b6bf=_0x1b0e0f,_0xd61f3b=this['C']['CollectionHooksReadF'],_0x257b42=this['C'][_0xe1b6bf(0x1f8)],_0x4d2bf8=_0x38e9ea['join'](_0x2f0ddb,this['C'][_0xe1b6bf(0x145)],this['config'][_0xe1b6bf(0x176)],_0xd61f3b),_0x204171=await this[_0xe1b6bf(0x1de)](_0x4d2bf8,null);for(const _0x1925bd of _0x204171){const _0x5d4927=_0x38e9ea[_0xe1b6bf(0x215)](_0x4d2bf8,_0x1925bd,_0x1925bd+_0xe1b6bf(0x1b0));if(!this[_0xe1b6bf(0x140)](_0x5d4927))continue;const _0x373253=await this[_0xe1b6bf(0x1dc)](_0x5d4927,{'encoding':_0xe1b6bf(0x143)}),_0x35fd98=await this[_0xe1b6bf(0x1aa)](_0x373253),_0x179482=_0x38e9ea[_0xe1b6bf(0x215)](_0x4d2bf8,_0x1925bd),_0x4c973a=_0x35fd98['instanceName']+'/'+_0x35fd98[_0xe1b6bf(0x1bd)]+'/'+_0x35fd98[_0xe1b6bf(0x117)];for(const _0x46e1dc of _0x35fd98[_0xe1b6bf(0x222)]){const _0x4ff95e=_0x38e9ea['join'](_0x179482,this['C'][_0xe1b6bf(0x222)],_0x46e1dc[_0xe1b6bf(0x15c)]+_0xe1b6bf(0x125)),_0x522e16=_0x38e9ea[_0xe1b6bf(0x215)](this[_0xe1b6bf(0x166)],this['C'][_0xe1b6bf(0x145)],_0x257b42,_0x4c973a,this['C'][_0xe1b6bf(0x222)],_0x46e1dc[_0xe1b6bf(0x15c)]+_0xe1b6bf(0x125));await this['fsMkDir'](_0x38e9ea[_0xe1b6bf(0x1b6)](_0x522e16),{'recursive':!0x0}),await this['fsLink'](_0x4ff95e,_0x522e16);}for(const _0x57982b of _0x35fd98['postHooks']){const _0x240765=_0x38e9ea[_0xe1b6bf(0x215)](_0x179482,this['C']['postHooks'],_0x57982b[_0xe1b6bf(0x15c)]+_0xe1b6bf(0x125)),_0x5a681e=_0x38e9ea[_0xe1b6bf(0x215)](this[_0xe1b6bf(0x166)],this['C'][_0xe1b6bf(0x145)],_0x257b42,_0x4c973a,this['C']['postHooks'],_0x57982b['name']+_0xe1b6bf(0x125));await this[_0xe1b6bf(0x13c)](_0x38e9ea[_0xe1b6bf(0x1b6)](_0x5a681e),{'recursive':!0x0}),await this[_0xe1b6bf(0x193)](_0x240765,_0x5a681e);}}}async[_0x1b0e0f(0x1a8)](){const _0x435173=_0x1b0e0f,_0x29827e=this['C']['DatabaseHooksReadF'],_0x4bb643=this['C']['DatabaseHooksWriteF'],_0x12368c=_0x38e9ea[_0x435173(0x215)](_0x2f0ddb,this['C']['src'],this[_0x435173(0x17a)][_0x435173(0x176)],_0x29827e),_0x26a4fe=await this[_0x435173(0x1de)](_0x12368c,null);for(const _0x429e80 of _0x26a4fe){const _0x454c45=_0x38e9ea[_0x435173(0x215)](_0x12368c,_0x429e80,_0x429e80+_0x435173(0x1b0));if(!this[_0x435173(0x140)](_0x454c45))continue;const _0xa9e253=await this[_0x435173(0x1dc)](_0x454c45,{'encoding':_0x435173(0x143)}),_0x2029c5=await this[_0x435173(0x1aa)](_0xa9e253),_0x2eec6d=_0x38e9ea[_0x435173(0x215)](_0x12368c,_0x429e80),_0x466b7c=_0x2029c5[_0x435173(0x197)]+'/'+_0x2029c5[_0x435173(0x1bd)];for(const _0x1ae5df of _0x2029c5['preHooks']){const _0xfa9713=_0x38e9ea[_0x435173(0x215)](_0x2eec6d,this['C'][_0x435173(0x222)],_0x1ae5df[_0x435173(0x15c)]+'.ts'),_0x41fd85=_0x38e9ea[_0x435173(0x215)](this['projectDirectory'],this['C'][_0x435173(0x145)],_0x4bb643,_0x466b7c,this['C']['preHooks'],_0x1ae5df[_0x435173(0x15c)]+'.ts');await this[_0x435173(0x13c)](_0x38e9ea['dirname'](_0x41fd85),{'recursive':!0x0}),await this['fsLink'](_0xfa9713,_0x41fd85);}for(const _0x38d8b8 of _0x2029c5[_0x435173(0x1e0)]){const _0x297bc0=_0x38e9ea[_0x435173(0x215)](_0x2eec6d,this['C']['postHooks'],_0x38d8b8['name']+_0x435173(0x125)),_0x14dbc9=_0x38e9ea['join'](this[_0x435173(0x166)],this['C'][_0x435173(0x145)],_0x4bb643,_0x466b7c,this['C'][_0x435173(0x1e0)],_0x38d8b8['name']+_0x435173(0x125));await this[_0x435173(0x13c)](_0x38e9ea[_0x435173(0x1b6)](_0x14dbc9),{'recursive':!0x0}),await this[_0x435173(0x193)](_0x297bc0,_0x14dbc9);}}}async[_0x1b0e0f(0x253)](){const _0x56a549=_0x1b0e0f,_0x4f2483=this['C'][_0x56a549(0x124)],_0x5892cd=this['C'][_0x56a549(0x210)],_0x143460=_0x38e9ea['join'](_0x2f0ddb,this['C'][_0x56a549(0x145)],this[_0x56a549(0x17a)][_0x56a549(0x176)],_0x4f2483),_0x1f4e2d=await this[_0x56a549(0x1de)](_0x143460,null);for(const _0x3a059b of _0x1f4e2d){const _0xf625f7=_0x38e9ea[_0x56a549(0x215)](_0x143460,_0x3a059b,_0x3a059b+'.yaml');if(!this[_0x56a549(0x140)](_0xf625f7))continue;const _0x4b25fe=await this[_0x56a549(0x1dc)](_0xf625f7,{'encoding':'utf8'}),_0x4d2318=await this[_0x56a549(0x1aa)](_0x4b25fe),_0x376bf1=_0x38e9ea['join'](_0x143460,_0x3a059b),_0x47ff80=''+_0x4d2318[_0x56a549(0x197)];for(const _0x5d0849 of _0x4d2318['preHooks']){const _0x28b44d=_0x38e9ea[_0x56a549(0x215)](_0x376bf1,this['C'][_0x56a549(0x222)],_0x5d0849[_0x56a549(0x15c)]+_0x56a549(0x125)),_0x5a1ca2=_0x38e9ea[_0x56a549(0x215)](this['projectDirectory'],this['C']['src'],_0x5892cd,_0x47ff80,this['C'][_0x56a549(0x222)],_0x5d0849[_0x56a549(0x15c)]+_0x56a549(0x125));await this[_0x56a549(0x13c)](_0x38e9ea[_0x56a549(0x1b6)](_0x5a1ca2),{'recursive':!0x0}),await this['fsLink'](_0x28b44d,_0x5a1ca2);}for(const _0x42192d of _0x4d2318[_0x56a549(0x1e0)]){const _0x534767=_0x38e9ea[_0x56a549(0x215)](_0x376bf1,this['C'][_0x56a549(0x1e0)],_0x42192d[_0x56a549(0x15c)]+'.ts'),_0x55f40c=_0x38e9ea['join'](this['projectDirectory'],this['C'][_0x56a549(0x145)],_0x5892cd,_0x47ff80,this['C'][_0x56a549(0x1e0)],_0x42192d[_0x56a549(0x15c)]+_0x56a549(0x125));await this[_0x56a549(0x13c)](_0x38e9ea[_0x56a549(0x1b6)](_0x55f40c),{'recursive':!0x0}),await this['fsLink'](_0x534767,_0x55f40c);}}}async['executeNpmRun'](_0x561a7f,_0x310ae1){return new Promise((_0x6d0c20,_0x5c6d7d)=>{const _0x14fd30=a0_0xf806,_0xd80c11=(0x0,_0x5ef9cc[_0x14fd30(0x126)])(_0x561a7f,_0x310ae1,{'shell':!0x0,'cwd':_0x2f0ddb});_0xd80c11['on'](_0x14fd30(0x186),_0x580130=>{const _0x26be0f=_0x14fd30;if(0x0===_0x580130)setTimeout(_0x6d0c20,0x1f4);else{const _0x161973='\x27'+_0x561a7f+'\x20'+_0x310ae1[_0x26be0f(0x215)]('\x20')+_0x26be0f(0x18d)+_0x580130+'.';_0x5c6d7d(new Error(_0x161973));}}),_0xd80c11['on'](_0x14fd30(0x1eb),_0x42d425=>{const _0x35f851=_0x14fd30;console[_0x35f851(0x1eb)](_0x35f851(0xf5)+_0x42d425['message']),_0x5c6d7d(_0x42d425);});});}async[_0x1b0e0f(0x1aa)](_0x481a25){const _0x293547=_0x1b0e0f;return _0x5b58db(0x2f8)[_0x293547(0x1f5)](_0x481a25);}['startWatch'](){const _0x1e5584=_0x1b0e0f,_0x45aa9b=_0x5b58db(0x274),_0x4dd164=_0x38e9ea[_0x1e5584(0x215)](_0x2f0ddb),_0x18a67d=_0x38e9ea[_0x1e5584(0x215)](_0x2f0ddb,this['C']['src']),_0x167a93=_0x27a7de=>{const _0x1fb553=_0x1e5584,_0x2027b2=_0x38e9ea[_0x1fb553(0x19d)](_0x4dd164,_0x27a7de);return!(_0x2027b2&&!_0x2027b2[_0x1fb553(0x12d)]('.')&&!_0x2027b2[_0x1fb553(0x13b)]('~')&&_0x2027b2[_0x1fb553(0x12d)](this['C']['src']));},_0x4663d8=_0x45aa9b[_0x1e5584(0x228)](_0x18a67d,{'persistent':!0x0,'ignoreInitial':!0x0,'depth':0x1/0x0,'awaitWriteFinish':{'stabilityThreshold':0xc8,'pollInterval':0x64}}),_0xa479b6=async(_0x52d1de,_0x3ebfd8)=>{const _0x27b84f=_0x1e5584;try{if(this['skipWatchInputs'])return;const _0x5bcabc=_0x38e9ea[_0x27b84f(0x19d)](_0x4dd164,_0x3ebfd8);if(!_0x3ebfd8||_0x167a93(_0x3ebfd8))return;console['log'](_0x27b84f(0x150)+this[_0x27b84f(0x22b)]()+_0x27b84f(0x244)+_0x52d1de+_0x27b84f(0x200)+_0x5bcabc);const _0xd2396f=this[_0x27b84f(0x23f)](_0x5bcabc),_0x94d74e=this['getChangedFolder'](_0xd2396f,_0x5bcabc);if(!_0x94d74e)return;let _0xb2db3c,_0xb4d772=!0x1;if(this[_0x27b84f(0x140)](_0x94d74e)){if(this[_0x27b84f(0x140)](_0x38e9ea[_0x27b84f(0x215)](_0x4dd164,_0x5bcabc))){const _0x4aa34b=_0x38e9ea[_0x27b84f(0x215)](_0x38e9ea['sep']+this['C'][_0x27b84f(0x1c2)],_0x94d74e);_0xb2db3c=await this[_0x27b84f(0x24c)](_0x94d74e,_0x4aa34b),this[_0x27b84f(0x10a)]({'objType':_0x9aed2c['LC_DATA_REQ_RES'],'localClientWSReqRes':{'eventType':_0x2bbdcd[_0x27b84f(0x18e)],'folderChangedOnLocalSystem':_0xb2db3c,'category':_0xd2396f,'shouldReplaceAllItemsOfCategory':_0xb4d772}});}else this['syncAllDataWithServer']();}else{const _0xab7e41=this['getChangedFolderForDeleted'](_0xd2396f,_0x5bcabc),_0xf68d29=_0x38e9ea[_0x27b84f(0x215)](_0x38e9ea[_0x27b84f(0x106)]+this['C'][_0x27b84f(0x1c2)],_0xab7e41);_0xb2db3c=await this[_0x27b84f(0x24c)](_0xab7e41,_0xf68d29),_0xb4d772=!0x0,this[_0x27b84f(0x22a)](_0xb2db3c,_0xd2396f,_0xb4d772);}}catch(_0x280f3c){console['error'](_0x27b84f(0x15d),_0x280f3c);}};_0x4663d8['on'](_0x1e5584(0x17c),_0x4b2000=>_0xa479b6(_0x1e5584(0x17c),_0x4b2000))['on'](_0x1e5584(0x189),_0x8973b2=>_0xa479b6(_0x1e5584(0x189),_0x8973b2))['on'](_0x1e5584(0x1fc),_0x46dff3=>_0xa479b6(_0x1e5584(0x1fc),_0x46dff3))['on']('addDir',_0xdefe6e=>_0xa479b6(_0x1e5584(0x23a),_0xdefe6e))['on'](_0x1e5584(0xf7),_0x520cdd=>_0xa479b6('unlinkDir',_0x520cdd))['on'](_0x1e5584(0x1eb),_0x5a1333=>console[_0x1e5584(0x1eb)](_0x1e5584(0x123),_0x5a1333)),this[_0x1e5584(0x187)]=_0x4663d8,console['log'](_0x1e5584(0x203));}[_0x1b0e0f(0x22b)](){const _0x2a17bd=_0x1b0e0f,_0x539898=new Date();return String(_0x539898[_0x2a17bd(0x12c)]())['padStart'](0x2,'0')+':'+String(_0x539898['getMinutes']())[_0x2a17bd(0x213)](0x2,'0')+':'+String(_0x539898['getSeconds']())[_0x2a17bd(0x213)](0x2,'0');}[_0x1b0e0f(0x155)](_0x451d08,_0xde9b21,_0x348743){const _0x52cdb6=_0x1b0e0f;this[_0x52cdb6(0x10a)]({'objType':_0x9aed2c[_0x52cdb6(0x164)],'localClientWSReqRes':{'eventType':_0x2bbdcd[_0x52cdb6(0x18e)],'folderChangedOnLocalSystem':_0x451d08,'category':_0xde9b21,'shouldReplaceAllItemsOfCategory':_0x348743}});}[_0x1b0e0f(0x1e2)](_0x252969,_0x2e19de){let _0x313a3b=null;return function(..._0x3617ec){clearTimeout(_0x313a3b),_0x313a3b=setTimeout(()=>{const _0xa792a5=a0_0xf806;_0x252969[_0xa792a5(0xff)](this,_0x3617ec);},_0x2e19de);};}[_0x1b0e0f(0x23f)](_0x2d0e6b){const _0x2f0625=_0x1b0e0f,_0x5be140=_0x38e9ea['join'](this['C']['src'],this[_0x2f0625(0x17a)]['adminUserPath']);if(!_0x2d0e6b[_0x2f0625(0x12d)](_0x5be140))return;const _0xb55273=_0x2d0e6b[_0x2f0625(0x1dd)](_0x38e9ea[_0x2f0625(0x106)])[_0x2f0625(0x21c)](_0x5be318=>!!_0x5be318)[0x2];for(const _0x447d2d in _0x3c2731)if(_0x3c2731[_0x447d2d]===_0xb55273)return _0xb55273;}[_0x1b0e0f(0x20a)](_0xb45b99,_0x30837d){const _0x33f96e=_0x1b0e0f,_0x40f2ca=_0x30837d[_0x33f96e(0x1dd)](_0x38e9ea[_0x33f96e(0x106)]);let _0x3dfe39='';return _0x3dfe39=_0xb45b99===_0x3c2731[_0x33f96e(0x146)]?_0x40f2ca[_0x33f96e(0x220)](0x0,0x6)[_0x33f96e(0x215)](_0x38e9ea[_0x33f96e(0x106)]):_0x40f2ca['slice'](0x0,0x4)['join'](_0x38e9ea[_0x33f96e(0x106)]),_0x3dfe39;}['getChangedFolderForDeleted'](_0x3981e4,_0x3fe8d5){const _0x1c0a8b=_0x1b0e0f;return _0x3fe8d5['split'](_0x38e9ea[_0x1c0a8b(0x106)])[_0x1c0a8b(0x220)](0x0,0x3)[_0x1c0a8b(0x215)](_0x38e9ea['sep']);}async[_0x1b0e0f(0x24c)](_0x5207a6,_0xcfe9c5){const _0x502def={},_0x339b76=this;return await async function _0x243560(_0x34642e){const _0xad5eff=a0_0xf806,_0x591b08=await _0x339b76[_0xad5eff(0x1de)](_0x34642e,{'withFileTypes':!0x0});for(const _0x3ef60e of _0x591b08){const _0x1f8623=_0x38e9ea['join'](_0x34642e,_0x3ef60e[_0xad5eff(0x15c)]),_0x211225=_0x38e9ea['normalize'](_0x1f8623);if(_0x3ef60e[_0xad5eff(0x249)]())await _0x243560(_0x211225);else{const _0x2951af=_0x2a0ea6[_0xad5eff(0x1f6)](_0x211225),_0x4217f6=_0x38e9ea['relative'](_0x5207a6,_0x211225),_0x24700f=_0x38e9ea[_0xad5eff(0x215)](_0xcfe9c5,_0x4217f6)['split'](_0x38e9ea['sep'])['join'](_0x38e9ea[_0xad5eff(0x1cf)][_0xad5eff(0x106)]);_0x502def[_0x24700f]={'encoding':_0xad5eff(0x1d6),'content':_0x2951af['toString'](_0xad5eff(0x1d6))};}}}(_0x5207a6),_0x502def;}['sendToServer'](_0x2a6c15){const _0x1e45e6=_0x1b0e0f;try{this['ws'][_0x1e45e6(0x1ea)](JSON['stringify'](_0x2a6c15));}catch(_0x53208b){console[_0x1e45e6(0x1af)](_0x53208b);}}async['connectToServerViaWS'](){const _0x5d30bf=_0x1b0e0f;console[_0x5d30bf(0x1af)](_0x5d30bf(0x236));const _0x2a1d73=this[_0x5d30bf(0x17a)][_0x5d30bf(0x15a)],_0x9dd911=this['config'][_0x5d30bf(0x176)],_0x4e73d3=this['config']['webSocketURL'];this['ws']=new WebSocket(_0x4e73d3+_0x5d30bf(0x12b)+_0x2a1d73+_0x5d30bf(0x144)+_0x9dd911);const _0x59d7aa=[],_0x277dc3=()=>{const _0x47c61c=_0x5d30bf;this[_0x47c61c(0x10a)]({'objType':_0x9aed2c['REGISTER'],'onEvents':[{'eventType':_0x47c61c(0x138)}]});};function _0x422d47(_0x295dcc){const _0x3c82af=_0x5d30bf;_0x295dcc['onopen']=null,_0x295dcc[_0x3c82af(0x204)]=null,_0x295dcc['onerror']=null,_0x295dcc[_0x3c82af(0x159)]=null,_0x295dcc[_0x3c82af(0x186)]();}this['ws'][_0x5d30bf(0x204)]=async _0x317940=>{const _0x527937=_0x5d30bf,_0x5bc60e=JSON['parse'](_0x317940[_0x527937(0x226)]);if(_0x5bc60e[_0x527937(0x224)]===_0x9aed2c['CONNECTED']&&_0x5bc60e[_0x527937(0x1a2)]['connected'])_0x277dc3();else{if(_0x5bc60e[_0x527937(0x224)]===_0x9aed2c['REGISTER']){if(_0x5bc60e?.[_0x527937(0x1a2)]?.[_0x527937(0x225)]?.[_0x527937(0x206)]){for(const _0xbf5848 of _0x5bc60e['response'][_0x527937(0x225)])_0x59d7aa[_0x527937(0x1c7)](_0xbf5848);console['log']('✅\x20Connected\x20to\x20server\x20via\x20WS'),!0x1===this[_0x527937(0x1ae)]&&(this['isWSConnectedFirstTime']=!0x0,console[_0x527937(0x1af)](this[_0x527937(0x165)]+'✳️\x20Open\x20folder\x20in\x20IDE\x20:\x20'+this[_0x527937(0x166)]+this['colorEnd'])),this['syncAllDataWithServer']();}else{const _0x4af29a=_0x5bc60e[_0x527937(0x1a2)]?.[_0x527937(0x15e)]?.[0x0]?.[_0x527937(0x1b4)]?.[0x0]?.[_0x527937(0x188)]||_0x527937(0x1c0);console[_0x527937(0x1af)]('❌\x20'+_0x4af29a),await this[_0x527937(0xf9)](0x1);}}else await this['processReceivedEvent'](_0x5bc60e);}},this['ws'][_0x5d30bf(0x159)]=_0x4b8b01=>{const _0x3a8b20=_0x5d30bf;console[_0x3a8b20(0x1af)](_0x3a8b20(0x142)),_0x422d47(this['ws']),setTimeout(this[_0x3a8b20(0x11c)][_0x3a8b20(0x1b5)](this),0xbb8);},this['ws'][_0x5d30bf(0x1f9)]=()=>{const _0x4e3e41=_0x5d30bf;_0x422d47(this['ws']),setTimeout(this[_0x4e3e41(0x11c)][_0x4e3e41(0x1b5)](this),0xbb8);};}[_0x1b0e0f(0x1da)](){const _0x326c58=_0x1b0e0f;this[_0x326c58(0x10a)]({'objType':_0x9aed2c['LC_DATA_REQ_RES'],'localClientWSReqRes':{'eventType':_0x2bbdcd[_0x326c58(0x207)]}});}async[_0x1b0e0f(0x11b)](_0x9ceebb){const _0x401a46=_0x1b0e0f;if(this['EL']&&_0x9ceebb[_0x401a46(0x1a2)][_0x401a46(0x1a5)]!==_0x2bbdcd[_0x401a46(0x207)]&&console[_0x401a46(0x1af)](_0x9ceebb),_0x9ceebb[_0x401a46(0x224)]===_0x9aed2c[_0x401a46(0x164)]){if(_0x9ceebb['errors']?.[_0x401a46(0x206)])return void console[_0x401a46(0x1eb)](_0x9ceebb[_0x401a46(0x1b4)]);if(_0x9ceebb[_0x401a46(0x1a2)]['eventType']===_0x2bbdcd['LC_SEND_ALL_DATA']){_0x2a0ea6['rmSync'](_0x38e9ea[_0x401a46(0x215)](_0x2f0ddb,this['C']['src']),{'recursive':!0x0,'force':!0x0}),this[_0x401a46(0x1f4)](_0x38e9ea[_0x401a46(0x215)](_0x2f0ddb,this['C'][_0x401a46(0x145)]),{'recursive':!0x0});const _0x4914e5=_0x9ceebb['response']['eventData'];await this[_0x401a46(0x22c)](_0x4914e5,_0x2f0ddb),this[_0x401a46(0x187)]||setTimeout(this[_0x401a46(0x184)]['bind'](this),0x1388);}else{if(_0x9ceebb[_0x401a46(0x1a2)]['eventType']===_0x2bbdcd[_0x401a46(0xf4)]){const _0x24ab3e=_0x9ceebb[_0x401a46(0x1a2)][_0x401a46(0x112)];await this['writeMemfsJsonToDisk'](_0x24ab3e[_0x401a46(0x226)],_0x2f0ddb);}}!0x0===this[_0x401a46(0x25a)]?await this[_0x401a46(0x1fe)](!0x1):(await this[_0x401a46(0x1fe)](!0x0),this[_0x401a46(0x25a)]=!0x0);}}async[_0x1b0e0f(0x22c)](_0x2b93c5,_0x8144c5){const _0xc8966d=_0x1b0e0f;this[_0xc8966d(0x1c5)]=!0x0;let _0x322f20=[];const _0x29bdde=async()=>{const _0x435824=_0xc8966d;_0x322f20[_0x435824(0x206)]>0x0&&(await Promise[_0x435824(0x103)](_0x322f20),_0x322f20=[]);};for(const [_0x52afa1,_0x52864d]of Object[_0xc8966d(0x17b)](_0x2b93c5)){if(!_0x52afa1[_0xc8966d(0x12d)]('/'+this['C']['repo']+'/'+this['C']['src']))continue;const _0x5b4019=_0x52864d,_0xbc1a9f=_0x52afa1[_0xc8966d(0x1a1)]('/'+this['C'][_0xc8966d(0x1c2)],'');if(this[_0xc8966d(0x254)][_0xbc1a9f])continue;const _0x307b96=_0x38e9ea['join'](_0x8144c5,_0xbc1a9f[_0xc8966d(0x1a1)](/^\//,'')),_0x545ae6=_0x38e9ea[_0xc8966d(0x1b6)](_0x307b96),_0x5f5192=async()=>{const _0x5644c2=_0xc8966d;await this[_0x5644c2(0x13c)](_0x545ae6,{'recursive':!0x0}),await this[_0x5644c2(0x251)](_0x307b96,_0x5b4019[_0x5644c2(0x234)],{'encoding':_0x5644c2(0x1d6)}),this['EL']&&console[_0x5644c2(0x1af)](_0x5644c2(0x23d)+this['getCurrentTime']()+_0x5644c2(0x200)+_0x307b96[_0x5644c2(0x1a1)](_0x8144c5,''));};_0x322f20[_0xc8966d(0x1c7)](_0x5f5192()),_0x322f20[_0xc8966d(0x206)]>=0x3e8&&await _0x29bdde();}await _0x29bdde(),setTimeout(()=>{this['skipWatchInputs']=!0x1;},0x3e8);}[_0x1b0e0f(0x23b)](_0x39b251){const _0x39108a=_0x1b0e0f,_0x42438b=this[_0x39108a(0x136)](_0x39b251);if(!this[_0x39108a(0x140)](_0x42438b))return!0x1;const _0x4f44a4=_0x2a0ea6[_0x39108a(0x1d7)](_0x42438b);let _0x4bef91=!0x0;for(const _0x1984a8 of _0x4f44a4){const _0x206172=_0x38e9ea[_0x39108a(0x215)](_0x42438b,_0x1984a8);_0x2a0ea6[_0x39108a(0x212)](_0x206172)[_0x39108a(0x249)]()&&this[_0x39108a(0x23b)](_0x206172)||(_0x4bef91=!0x1);}return!!_0x4bef91&&(_0x2a0ea6[_0x39108a(0x135)](_0x42438b),!0x0);}async[_0x1b0e0f(0x1de)](_0x494dc6,_0x136159){const _0x5412c9=_0x1b0e0f;return this[_0x5412c9(0x140)](_0x494dc6)?await this[_0x5412c9(0x1ee)](_0x494dc6,_0x136159):[];}[_0x1b0e0f(0x136)](_0x44a42c){return _0x38e9ea['normalize'](_0x44a42c);}[_0x1b0e0f(0x140)](_0x3f6537){const _0x39fc10=_0x38e9ea['normalize'](_0x3f6537);return _0x2a0ea6['existsSync'](_0x39fc10);}async[_0x1b0e0f(0x1ee)](_0x450d21,_0x263137){const _0x4271ba=_0x1b0e0f,_0x4ee0cc=_0x38e9ea[_0x4271ba(0x1f2)](_0x450d21);return await _0x2a0ea6[_0x4271ba(0x12e)][_0x4271ba(0x113)](_0x4ee0cc,_0x263137);}async['fsMkDir'](_0x1b53a1,_0x33720d){const _0x469ba6=_0x1b0e0f,_0x1b1b89=_0x38e9ea[_0x469ba6(0x1f2)](_0x1b53a1);return await _0x2a0ea6[_0x469ba6(0x12e)][_0x469ba6(0x194)](_0x1b1b89,_0x33720d);}['fsMkDirSync'](_0x435266,_0x2cc0db){const _0x274fae=_0x1b0e0f,_0x514502=_0x38e9ea[_0x274fae(0x1f2)](_0x435266);return _0x2a0ea6[_0x274fae(0x1ed)](_0x514502,_0x2cc0db);}async[_0x1b0e0f(0x1dc)](_0xd3da2f,_0xd9909b){const _0x22ade3=_0x1b0e0f,_0x34aade=_0x38e9ea[_0x22ade3(0x1f2)](_0xd3da2f);return await _0x2a0ea6[_0x22ade3(0x12e)][_0x22ade3(0x1bb)](_0x34aade,_0xd9909b);}async['fsWriteFile'](_0x5b4369,_0x13a188,_0x1579a5){const _0x2bcd4b=_0x1b0e0f,_0x5ec6fc=_0x38e9ea[_0x2bcd4b(0x1f2)](_0x5b4369);return await _0x2a0ea6['promises']['writeFile'](_0x5ec6fc,_0x13a188,_0x1579a5);}async[_0x1b0e0f(0x193)](_0x335866,_0x4f42c9){const _0x3ed2e3=_0x1b0e0f,_0x4782ac=_0x38e9ea[_0x3ed2e3(0x1f2)](_0x335866),_0x3f5949=_0x38e9ea[_0x3ed2e3(0x1f2)](_0x4f42c9);return await _0x2a0ea6['promises']['link'](_0x4782ac,_0x3f5949);}async[_0x1b0e0f(0xf9)](_0x53ed26=0x0){const _0x49883f=_0x1b0e0f;if(!this[_0x49883f(0x108)]){this['shuttingDown']=!0x0;try{this[_0x49883f(0x187)]&&await this[_0x49883f(0x187)][_0x49883f(0x186)]();}catch(_0x24a7c3){console[_0x49883f(0x1eb)](_0x49883f(0x1ca),_0x24a7c3);}finally{setTimeout(()=>process[_0x49883f(0x169)](_0x53ed26),0xc8);}}}[_0x1b0e0f(0x162)](){const _0x447c24=_0x1b0e0f;process['on']('SIGINT',()=>{const _0x441bda=a0_0xf806;console[_0x441bda(0x1af)](_0x441bda(0x192)),this[_0x441bda(0xf9)](0x0);}),process['on']('SIGTERM',()=>{const _0x145fb1=a0_0xf806;console[_0x145fb1(0x1af)](_0x145fb1(0x153)),this[_0x145fb1(0xf9)](0x0);}),process['on'](_0x447c24(0x12f),_0x4e96d0=>{const _0x2459ea=_0x447c24;console[_0x2459ea(0x1af)](_0x2459ea(0x12f),_0x4e96d0);}),process['on'](_0x447c24(0x169),_0x33e198=>{const _0xbc283c=_0x447c24;console[_0xbc283c(0x1af)](_0xbc283c(0x169),_0x33e198);}),process['on'](_0x447c24(0x16f),_0x59c188=>{const _0x18b91d=_0x447c24;console['error'](_0x18b91d(0x16f),_0x59c188),this[_0x18b91d(0xf9)](0x1);}),process['on'](_0x447c24(0x141),_0x37d910=>{const _0x3199c3=_0x447c24;console['error'](_0x3199c3(0x141),_0x37d910),this[_0x3199c3(0xf9)](0x1);});}}()[_0x1b0e0f(0x258)]()[_0x1b0e0f(0x127)](),function(_0x3e0e24){const _0x380864=_0x1b0e0f;_0x3e0e24[_0x380864(0x247)]=_0x380864(0x247),_0x3e0e24[_0x380864(0x146)]=_0x380864(0x146),_0x3e0e24[_0x380864(0x119)]=_0x380864(0x119),_0x3e0e24[_0x380864(0x133)]=_0x380864(0x133),_0x3e0e24[_0x380864(0x1d3)]=_0x380864(0x1d3);}(_0x513751=_0xe17e60['QX']||(_0xe17e60['QX']={})),function(_0x3c0f12){const _0x576717=_0x1b0e0f;_0x3c0f12[_0x576717(0x100)]=_0x576717(0x100),_0x3c0f12[_0x576717(0x1a3)]=_0x576717(0x1a3),_0x3c0f12[_0x576717(0x19f)]=_0x576717(0x19f),_0x3c0f12[_0x576717(0x179)]=_0x576717(0x179),_0x3c0f12[_0x576717(0x174)]=_0x576717(0x174),_0x3c0f12[_0x576717(0x10e)]='NOTIFICATION',_0x3c0f12[_0x576717(0x164)]='LC_DATA_REQ_RES';}(_0x9aed2c||(_0x9aed2c={})),function(_0x2db121){const _0x5e659d=_0x1b0e0f;_0x2db121[_0x5e659d(0x207)]=_0x5e659d(0x207),_0x2db121[_0x5e659d(0xf4)]=_0x5e659d(0xf4),_0x2db121[_0x5e659d(0x18e)]='LC_FOLDER_CHANGED_ON_LOCAL_SYSTEM';}(_0x2bbdcd||(_0x2bbdcd={})),(_0xf11aa7=_0xe17e60['Yl']||(_0xe17e60['Yl']={}))[_0x1b0e0f(0x256)]='POST',_0xf11aa7[_0x1b0e0f(0x1a9)]=_0x1b0e0f(0x1a9),_0xf11aa7[_0x1b0e0f(0x231)]='PUT_REPLACE',_0xf11aa7['DELETE']=_0x1b0e0f(0x199),_0xf11aa7[_0x1b0e0f(0x1d0)]='DELETE_ALL',(_0x57bf68=_0xe17e60['EN']||(_0xe17e60['EN']={}))[_0x1b0e0f(0x1c1)]='am_events',_0x57bf68[_0x1b0e0f(0x114)]=_0x1b0e0f(0x195),_0x57bf68[_0x1b0e0f(0x132)]=_0x1b0e0f(0x14e),_0x57bf68[_0x1b0e0f(0x1f3)]=_0x1b0e0f(0x246),_0x57bf68['InstanceApiSettings']='am_instance_api_settings',_0x57bf68[_0x1b0e0f(0x10b)]=_0x1b0e0f(0x14b),_0x57bf68[_0x1b0e0f(0x205)]=_0x1b0e0f(0x129),_0x57bf68['DatabaseHooks']=_0x1b0e0f(0x13f),_0x57bf68[_0x1b0e0f(0x170)]='am_collection_hooks',_0x57bf68[_0x1b0e0f(0x13a)]='am_schedulers',_0x57bf68[_0x1b0e0f(0x122)]=_0x1b0e0f(0xf6),_0x57bf68[_0x1b0e0f(0x158)]=_0x1b0e0f(0x16a),_0x57bf68[_0x1b0e0f(0x17f)]=_0x1b0e0f(0x1f1),_0x57bf68['SystemApiHooks']='am_system_api_hooks',_0x57bf68[_0x1b0e0f(0x160)]=_0x1b0e0f(0x160),_0x57bf68[_0x1b0e0f(0x1b9)]='am_tp_installed_apis',_0x57bf68[_0x1b0e0f(0x211)]=_0x1b0e0f(0x211),_0x57bf68[_0x1b0e0f(0x137)]=_0x1b0e0f(0x121),_0x57bf68[_0x1b0e0f(0x190)]=_0x1b0e0f(0x1e1),_0x57bf68[_0x1b0e0f(0x1b3)]=_0x1b0e0f(0x21e),_0x57bf68[_0x1b0e0f(0x218)]=_0x1b0e0f(0x10f),_0x57bf68[_0x1b0e0f(0x1e8)]='am_ui_maker_styles',_0x57bf68[_0x1b0e0f(0x208)]='am_test_cases',function(_0x20be71){const _0x483e14=_0x1b0e0f;_0x20be71[_0x483e14(0x119)]='Custom\x20APIs',_0x20be71[_0x483e14(0x118)]='Database\x20migrations',_0x20be71[_0x483e14(0x21b)]=_0x483e14(0x13e),_0x20be71[_0x483e14(0x131)]=_0x483e14(0x1df),_0x20be71[_0x483e14(0x19e)]=_0x483e14(0x11d),_0x20be71[_0x483e14(0x233)]='Instance\x20API\x20hooks',_0x20be71[_0x483e14(0x1ba)]=_0x483e14(0x178),_0x20be71[_0x483e14(0x1ef)]='Database\x20hooks',_0x20be71[_0x483e14(0x1d9)]=_0x483e14(0x201),_0x20be71[_0x483e14(0x241)]='Instance\x20API\x20settings',_0x20be71[_0x483e14(0x1e3)]=_0x483e14(0x13a),_0x20be71[_0x483e14(0x198)]=_0x483e14(0x122),_0x20be71[_0x483e14(0x24f)]='System\x20API\x20hooks',_0x20be71['SYSTEM_API_SETTINGS']=_0x483e14(0x156),_0x20be71[_0x483e14(0x1ad)]=_0x483e14(0x243),_0x20be71[_0x483e14(0x146)]=_0x483e14(0x22d),_0x20be71['THIRD_PARTY_API_SETTINGS']=_0x483e14(0x20b),_0x20be71[_0x483e14(0x1ac)]=_0x483e14(0x20d),_0x20be71[_0x483e14(0x1fd)]='WebSocket\x20events',_0x20be71[_0x483e14(0x1d4)]=_0x483e14(0x101),_0x20be71[_0x483e14(0x167)]=_0x483e14(0x1b2),_0x20be71[_0x483e14(0x1cb)]='UI\x20maker\x20styles';}(_0x3c2731=_0xe17e60['_6']||(_0xe17e60['_6']={}));},0x300:_0x15623e=>{const _0x36397e=a0_0xf806;function _0x5a6ffb(_0x1052a7){const _0x51aa07=a0_0xf806;var _0x85eab4=new Error(_0x51aa07(0x235)+_0x1052a7+'\x27');throw _0x85eab4[_0x51aa07(0x120)]=_0x51aa07(0x237),_0x85eab4;}_0x5a6ffb[_0x36397e(0x1c4)]=()=>[],_0x5a6ffb[_0x36397e(0x239)]=_0x5a6ffb,_0x5a6ffb['id']=0x300,_0x15623e[_0x36397e(0x18c)]=_0x5a6ffb;},0x274:_0x28ba46=>{'use strict';const _0x405d6c=a0_0xf806;_0x28ba46[_0x405d6c(0x18c)]=require(_0x405d6c(0x151));},0x2f8:_0xde3eb0=>{'use strict';const _0x530e29=a0_0xf806;_0xde3eb0['exports']=require(_0x530e29(0x1f7));},0x2a0:_0x2960f5=>{'use strict';const _0x278fc3=a0_0xf806;_0x2960f5[_0x278fc3(0x18c)]=require(_0x278fc3(0x21f));},0x170:_0x1d03d8=>{'use strict';const _0x13d612=a0_0xf806;_0x1d03d8[_0x13d612(0x18c)]=require(_0x13d612(0x223));},0x3a:_0x1bab4c=>{'use strict';const _0x19a4cb=a0_0xf806;_0x1bab4c[_0x19a4cb(0x18c)]=require('fs');}},_0x133dcc={};function _0x3c0e75(_0x2bbce5){const _0xd8c48a=a0_0xf806;var _0x47a3d6=_0x133dcc[_0x2bbce5];if(void 0x0!==_0x47a3d6)return _0x47a3d6[_0xd8c48a(0x18c)];var _0x490354=_0x133dcc[_0x2bbce5]={'exports':{}};return _0x43be4e[_0x2bbce5](_0x490354,_0x490354[_0xd8c48a(0x18c)],_0x3c0e75),_0x490354[_0xd8c48a(0x18c)];}_0x3c0e75['o']=(_0x1a9bda,_0x932bbf)=>Object[_0x276446(0x1ab)]['hasOwnProperty'][_0x276446(0x15f)](_0x1a9bda,_0x932bbf),_0x3c0e75(0x3dc);})()));
|
|
1
|
+
(function(_0x502d06,_0x4f8e54){const _0x47df0f=a0_0x3040,_0x37df1f=_0x502d06();while(!![]){try{const _0x4b166e=-parseInt(_0x47df0f(0x271))/0x1*(-parseInt(_0x47df0f(0x2de))/0x2)+parseInt(_0x47df0f(0x1c4))/0x3*(-parseInt(_0x47df0f(0x223))/0x4)+-parseInt(_0x47df0f(0x2ad))/0x5*(parseInt(_0x47df0f(0x230))/0x6)+-parseInt(_0x47df0f(0x1e3))/0x7*(parseInt(_0x47df0f(0x29d))/0x8)+parseInt(_0x47df0f(0x25c))/0x9+parseInt(_0x47df0f(0x2c8))/0xa*(parseInt(_0x47df0f(0x286))/0xb)+parseInt(_0x47df0f(0x2ba))/0xc*(-parseInt(_0x47df0f(0x257))/0xd);if(_0x4b166e===_0x4f8e54)break;else _0x37df1f['push'](_0x37df1f['shift']());}catch(_0x21e277){_0x37df1f['push'](_0x37df1f['shift']());}}}(a0_0xb81c,0x34161),((()=>{'use strict';var _0x4ed9e3={0x11f:(_0x1b5bd2,_0x29481b,_0xdc1f2e)=>{const _0x4b7bdb=a0_0x3040;_0x29481b['_6']=_0x29481b['EN']=_0x29481b['Yl']=_0x29481b['QX']=void 0x0;const _0xe6c262=_0xdc1f2e(0x3a),_0x49c803=_0xdc1f2e(0x2a0),_0x158ca1=_0xdc1f2e(0x170);var _0x49d459,_0x4df010,_0x4d7b67,_0x5baad4,_0xeb1fac,_0x4f25a8;new class{constructor(){const _0xdeba7c=a0_0x3040;this['EL']=!0x1,this['appRoot']=_0x49c803[_0xdeba7c(0x242)](''),this[_0xdeba7c(0x232)]='',this['C']={'localClientPath':'./local-client.config','src':_0xdeba7c(0x1c6),'repo':_0xdeba7c(0x291),'types':_0xdeba7c(0x237),'amTypes':_0xdeba7c(0x29e),'versions':'versions','apis':_0xdeba7c(0x2f9),'listeners':'listeners','postHooks':_0xdeba7c(0x1e6),'preHooks':'pre-hooks','dbInterfacesFile':_0xdeba7c(0x28e),'UtilityClassesReadF':'Utility\x20classes','CustomApiReadF':'Custom\x20APIs','SchedulersReadF':_0xdeba7c(0x2d2),'WebSocketEventsReadF':_0xdeba7c(0x2a4),'SchemaReadF':_0xdeba7c(0x1ef),'DBMigrationsReadF':'Database\x20migrations','ProcessInitializersReadF':'Process\x20initializers','ProcessI18NReadF':_0xdeba7c(0x1b0),'DBMastersReadF':_0xdeba7c(0x1ec),'DBMasterStylesReadF':_0xdeba7c(0x1ca),'DBMasterUtilsReadF':_0xdeba7c(0x22f),'TestCasesReadF':_0xdeba7c(0x1ea),'ThirdPartyApiReadF':'Third\x20party\x20APIs','EventsReadF':_0xdeba7c(0x308),'InstanceApiHooksReadF':_0xdeba7c(0x1c2),'SystemApiHooksReadF':_0xdeba7c(0x248),'CollectionHooksReadF':_0xdeba7c(0x2bb),'DatabaseHooksReadF':_0xdeba7c(0x24f),'InstanceHooksReadF':_0xdeba7c(0x1f9),'CustomApisWriteF':_0xdeba7c(0x2fb),'SchedulersWriteF':_0xdeba7c(0x299),'WebSocketEventsWriteF':_0xdeba7c(0x1ba),'SchemaWriteF':_0xdeba7c(0x249),'DBMigrationsWriteF':_0xdeba7c(0x1e2),'ProcessInitializersWriteF':_0xdeba7c(0x275),'ProcessI18NWriteF':_0xdeba7c(0x1b0),'DBMastersWriteF':_0xdeba7c(0x24c),'DBMasterStylesWriteF':_0xdeba7c(0x22c),'DBMasterUtilsWriteF':_0xdeba7c(0x297),'TestCasesWriteF':'tests','ThirdPartyApiWriteF':_0xdeba7c(0x29b),'EventsWriteF':_0xdeba7c(0x309),'InstanceApiHooksWriteF':_0xdeba7c(0x238),'SystemApiHooksWriteF':'system-api-hooks','CollectionHooksWriteF':_0xdeba7c(0x23b),'DatabaseHooksWriteF':_0xdeba7c(0x23e),'InstanceHooksWriteF':_0xdeba7c(0x2e7)},this[_0xdeba7c(0x296)]=!0x1,this[_0xdeba7c(0x216)]={},this[_0xdeba7c(0x225)]=!0x1,this['orangeStart']=_0xdeba7c(0x305),this[_0xdeba7c(0x284)]=_0xdeba7c(0x278),this[_0xdeba7c(0x2d8)]=_0xdeba7c(0x1d1),this[_0xdeba7c(0x24d)]=!0x1,this['sendDeletedEventToServerDebounce']=this[_0xdeba7c(0x2aa)](this[_0xdeba7c(0x2a6)],0x1f4);}async[_0x4b7bdb(0x27b)](){const _0x57205f=_0x4b7bdb;this[_0x57205f(0x20f)](),this[_0x57205f(0x207)](),this[_0x57205f(0x2b6)](this['C'][_0x57205f(0x26a)]+_0x57205f(0x2f5))||(this[_0x57205f(0x1bb)](),this[_0x57205f(0x2e9)](0x1)['then']()),this[_0x57205f(0x1aa)]=require(this['C'][_0x57205f(0x26a)])(),await this[_0x57205f(0x245)](),this['removeEmptyDirsSync'](_0x49c803[_0x57205f(0x2ec)](this[_0x57205f(0x2dd)],this['C'][_0x57205f(0x1c6)])),await this[_0x57205f(0x312)](),await this[_0x57205f(0x234)](),await this[_0x57205f(0x2c3)]();}[_0x4b7bdb(0x207)](){const _0x2b1569=_0x4b7bdb,_0x1b141b=process['version'];parseInt(_0x1b141b[_0x2b1569(0x30a)]('.')[0x0][_0x2b1569(0x1d9)]('v',''),0xa)<0x16&&(console['error'](this[_0x2b1569(0x1ed)]+_0x2b1569(0x1eb)+_0x1b141b+this['colorEnd']),this[_0x2b1569(0x2e9)](0x1)['then']());}async[_0x4b7bdb(0x245)](){const _0x5cd1fe=_0x4b7bdb;console['log'](this[_0x5cd1fe(0x1ed)]),console[_0x5cd1fe(0x201)](_0x5cd1fe(0x24e)),console['log']('\x20Local\x20client\x20will\x20pull\x20your\x20server\x20changes\x20to\x20local\x20&\x20perform\x20sync\x20between\x20them.'),console[_0x5cd1fe(0x201)](_0x5cd1fe(0x259)+this[_0x5cd1fe(0x2dd)]),console[_0x5cd1fe(0x201)](_0x5cd1fe(0x311)),console[_0x5cd1fe(0x201)](this['colorEnd']),console[_0x5cd1fe(0x201)]('');}[_0x4b7bdb(0x1bb)](){const _0x336395=_0x4b7bdb;console[_0x336395(0x201)]('\x1b[38;2;255;165;0m'),console[_0x336395(0x201)](_0x336395(0x301)+this['C'][_0x336395(0x26a)]+_0x336395(0x2f5)),console[_0x336395(0x201)]('\x1b[0m'),console[_0x336395(0x201)]('');}async[_0x4b7bdb(0x312)](){const _0x1f5553=_0x4b7bdb,_0x4282fd=_0x49c803[_0x1f5553(0x2bc)](this[_0x1f5553(0x2dd)]),_0x106244=_0x49c803[_0x1f5553(0x2ec)](this[_0x1f5553(0x2dd)],'..',_0x4282fd+_0x1f5553(0x26e));this[_0x1f5553(0x232)]=_0x106244,_0xe6c262[_0x1f5553(0x228)](_0x106244,{'recursive':!0x0,'force':!0x0}),await this[_0x1f5553(0x24b)](_0x106244,{'recursive':!0x0});}async[_0x4b7bdb(0x1fa)](_0x7547f7){const _0x43375b=_0x4b7bdb;await this['createLCProjectDirectory'](),this['fsMkDirSync'](_0x49c803[_0x43375b(0x2ec)](this[_0x43375b(0x232)],this['C']['src']),{'recursive':!0x0}),_0xe6c262[_0x43375b(0x229)](_0x49c803[_0x43375b(0x2ec)](this[_0x43375b(0x2dd)],_0x43375b(0x2f6)),_0x49c803[_0x43375b(0x2ec)](this[_0x43375b(0x232)],_0x43375b(0x2f6))),_0xe6c262[_0x43375b(0x229)](_0x49c803[_0x43375b(0x2ec)](this[_0x43375b(0x2dd)],'.gitignore'),_0x49c803[_0x43375b(0x2ec)](this['projectDirectory'],_0x43375b(0x2b4)));const _0x391b78=_0x49c803[_0x43375b(0x2ec)](this['appRoot'],_0x43375b(0x2db)),_0x4fd3ff=JSON[_0x43375b(0x2d5)](await this['fsReadFile'](_0x391b78,{'encoding':_0x43375b(0x270)}));_0x4fd3ff[_0x43375b(0x246)]['baseUrl']=_0x43375b(0x2e6),_0x4fd3ff[_0x43375b(0x246)][_0x43375b(0x29a)]['*'][_0x43375b(0x2fc)]('*'),await this[_0x43375b(0x2b9)](_0x49c803['join'](this[_0x43375b(0x232)],_0x43375b(0x2db)),JSON[_0x43375b(0x215)](_0x4fd3ff,null,0x4),{'encoding':_0x43375b(0x270)}),await _0xe6c262[_0x43375b(0x279)]['cp'](_0x49c803[_0x43375b(0x2ec)](this[_0x43375b(0x2dd)],this['C']['amTypes']),_0x49c803[_0x43375b(0x2ec)](this[_0x43375b(0x232)],this['C'][_0x43375b(0x1c6)],this['C'][_0x43375b(0x26d)]),{'recursive':!0x0}),await _0xe6c262[_0x43375b(0x279)]['cp'](_0x49c803[_0x43375b(0x2ec)](this[_0x43375b(0x2dd)],this['C']['src'],this[_0x43375b(0x1aa)][_0x43375b(0x1fb)],this['C']['types'],this['C'][_0x43375b(0x1cd)]),_0x49c803[_0x43375b(0x2ec)](this[_0x43375b(0x232)],this['C'][_0x43375b(0x1c6)],this['C'][_0x43375b(0x26d)],this['C']['dbInterfacesFile']),{'recursive':!0x0}),await this[_0x43375b(0x29f)](),await this['copyCustomApisToAnotherDir'](),await this['copySchedulersToAnotherDir'](),await this[_0x43375b(0x2f0)](),await this[_0x43375b(0x295)](),await this[_0x43375b(0x1b2)](),await this[_0x43375b(0x303)](),await this[_0x43375b(0x1f1)](),await this[_0x43375b(0x304)](),await this[_0x43375b(0x21a)](),await this['copyInstanceApiHooksToAnotherDir'](),await this[_0x43375b(0x204)](),await this['copyWebSocketEventsToAnotherDir'](),await this[_0x43375b(0x1c9)](),await this['copyDatabaseHooksToAnotherDir'](),await this[_0x43375b(0x1ce)](),await this['copyDBMastersToAnotherDir'](),await this[_0x43375b(0x236)](),await this[_0x43375b(0x290)](),_0x7547f7&&(console[_0x43375b(0x201)](_0x43375b(0x213)),await this[_0x43375b(0x250)](_0x43375b(0x1ab),['install',_0x43375b(0x2cf)]),console['log'](_0x43375b(0x2e5)));try{_0xe6c262[_0x43375b(0x2e2)](_0x49c803[_0x43375b(0x2ec)](this[_0x43375b(0x2dd)],_0x43375b(0x220)),_0x49c803[_0x43375b(0x2ec)](this[_0x43375b(0x232)],_0x43375b(0x220)),_0x43375b(0x1d7));}catch(_0x48a1aa){console['log'](_0x43375b(0x292)),console[_0x43375b(0x201)](_0x48a1aa),await this['shutdownAndExit'](0x1);}}async['installRequiredPackages'](){const _0x11e686=_0x4b7bdb;console['log'](_0x11e686(0x25a));try{_0xe6c262[_0x11e686(0x27c)](_0x49c803[_0x11e686(0x2ec)](this[_0x11e686(0x2dd)],_0x11e686(0x1dd)));}catch(_0x51672d){}await this[_0x11e686(0x250)](_0x11e686(0x1ab),[_0x11e686(0x2d4),_0x11e686(0x1ee),'chokidar@4.0.3',_0x11e686(0x2ae)]),console['log'](_0x11e686(0x243));}async[_0x4b7bdb(0x29f)](){const _0x83e2ff=_0x4b7bdb,_0x2bbb56=this['C'][_0x83e2ff(0x310)],_0x550935=_0x49c803[_0x83e2ff(0x2ec)](this[_0x83e2ff(0x2dd)],this['C'][_0x83e2ff(0x1c6)],this['config'][_0x83e2ff(0x1fb)],_0x2bbb56),_0x37a49c=await this[_0x83e2ff(0x2e1)](_0x550935,null);for(const _0x599b3c of _0x37a49c){const _0x59987c=_0x49c803[_0x83e2ff(0x2ec)](_0x550935,_0x599b3c,_0x599b3c+'.yaml');if(!this['fsExistsSync'](_0x59987c))continue;const _0x447b80=await this['fsReadFile'](_0x59987c,{'encoding':'utf8'}),_0x384e96=await this[_0x83e2ff(0x281)](_0x447b80);for(const _0xf47a54 of _0x384e96[_0x83e2ff(0x2bf)]||[])if(!0x0===_0xf47a54[_0x83e2ff(0x221)]){const _0xafea7c=_0x49c803[_0x83e2ff(0x2ec)](_0x550935,_0x599b3c,this['C'][_0x83e2ff(0x2bf)],_0xf47a54[_0x83e2ff(0x25f)],_0xf47a54[_0x83e2ff(0x2c0)]+_0x83e2ff(0x1dc)),_0x756e79=_0x49c803[_0x83e2ff(0x2ec)](this['projectDirectory'],this['C'][_0x83e2ff(0x1c6)],_0x384e96[_0x83e2ff(0x1ac)],_0x384e96['name']+_0x83e2ff(0x1dc));await this['fsMkDir'](_0x49c803['dirname'](_0x756e79),{'recursive':!0x0}),await this[_0x83e2ff(0x1df)](_0xafea7c,_0x756e79);}}}async[_0x4b7bdb(0x1b7)](){const _0x5dfe53=_0x4b7bdb,_0x290e0d=this['C']['CustomApiReadF'],_0x1044d5=this['C'][_0x5dfe53(0x258)],_0x249be4=_0x49c803[_0x5dfe53(0x2ec)](this['appRoot'],this['C'][_0x5dfe53(0x1c6)],this[_0x5dfe53(0x1aa)]['adminUserPath'],_0x290e0d),_0x26c55d=await this[_0x5dfe53(0x2e1)](_0x249be4,null);for(const _0x292c8a of _0x26c55d){const _0x189bee=_0x49c803[_0x5dfe53(0x2ec)](_0x249be4,_0x292c8a,_0x292c8a+_0x5dfe53(0x1f7));if(!this[_0x5dfe53(0x2b6)](_0x189bee))continue;const _0x387f5d=await this[_0x5dfe53(0x255)](_0x189bee,{'encoding':_0x5dfe53(0x270)}),_0x5897fa=await this['parseYaml'](_0x387f5d);for(const _0x4a2f4d of _0x5897fa[_0x5dfe53(0x2bf)]||[])if(!0x0===_0x4a2f4d[_0x5dfe53(0x221)]){const _0x178a09=_0x49c803[_0x5dfe53(0x2ec)](_0x249be4,_0x292c8a,this['C']['versions'],_0x4a2f4d[_0x5dfe53(0x25f)]),_0x3d29aa=_0x49c803[_0x5dfe53(0x2ec)](_0x178a09,_0x4a2f4d['name']+_0x5dfe53(0x1dc)),_0x39a867=_0x49c803[_0x5dfe53(0x2ec)](this[_0x5dfe53(0x232)],this['C'][_0x5dfe53(0x1c6)],_0x1044d5,_0x5897fa[_0x5dfe53(0x1b4)],_0x5897fa[_0x5dfe53(0x2c0)]+'.ts');await this[_0x5dfe53(0x24b)](_0x49c803[_0x5dfe53(0x307)](_0x39a867),{'recursive':!0x0}),await this[_0x5dfe53(0x1df)](_0x3d29aa,_0x39a867);const _0x33727b=_0x49c803[_0x5dfe53(0x2ec)](_0x249be4,_0x292c8a,_0x292c8a+_0x5dfe53(0x20e)),_0x41b226=_0x49c803[_0x5dfe53(0x2ec)](this['projectDirectory'],this['C'][_0x5dfe53(0x1c6)],_0x1044d5,_0x5897fa['path'],_0x5897fa[_0x5dfe53(0x2c0)]+_0x5dfe53(0x20e));await this[_0x5dfe53(0x1df)](_0x33727b,_0x41b226);for(const _0x36f469 of _0x4a2f4d['preHooks']){const _0x3eaaa7=_0x49c803['join'](_0x178a09,this['C'][_0x5dfe53(0x2b1)],_0x36f469[_0x5dfe53(0x2c0)]+_0x5dfe53(0x1dc)),_0x32e045=_0x49c803[_0x5dfe53(0x2ec)](this[_0x5dfe53(0x232)],this['C'][_0x5dfe53(0x1c6)],_0x1044d5,_0x5897fa[_0x5dfe53(0x1b4)],this['C']['preHooks'],_0x36f469[_0x5dfe53(0x2c0)]+_0x5dfe53(0x1dc));await this[_0x5dfe53(0x24b)](_0x49c803[_0x5dfe53(0x307)](_0x32e045),{'recursive':!0x0}),await this[_0x5dfe53(0x1df)](_0x3eaaa7,_0x32e045);}for(const _0x439f74 of _0x4a2f4d[_0x5dfe53(0x2fe)]){const _0x42e807=_0x49c803[_0x5dfe53(0x2ec)](_0x178a09,this['C']['postHooks'],_0x439f74[_0x5dfe53(0x2c0)]+_0x5dfe53(0x1dc)),_0x2311ce=_0x49c803[_0x5dfe53(0x2ec)](this[_0x5dfe53(0x232)],this['C'][_0x5dfe53(0x1c6)],_0x1044d5,_0x5897fa[_0x5dfe53(0x1b4)],this['C'][_0x5dfe53(0x2fe)],_0x439f74[_0x5dfe53(0x2c0)]+'.ts');await this[_0x5dfe53(0x24b)](_0x49c803[_0x5dfe53(0x307)](_0x2311ce),{'recursive':!0x0}),await this[_0x5dfe53(0x1df)](_0x42e807,_0x2311ce);}}}}async['copySchedulersToAnotherDir'](){const _0x598e82=_0x4b7bdb,_0x560485=this['C'][_0x598e82(0x30b)],_0x276eea=this['C'][_0x598e82(0x288)],_0x3c80e0=_0x49c803['join'](this[_0x598e82(0x2dd)],this['C'][_0x598e82(0x1c6)],this[_0x598e82(0x1aa)][_0x598e82(0x1fb)],_0x560485),_0x320c9e=await this[_0x598e82(0x2e1)](_0x3c80e0,null);for(const _0x1d196e of _0x320c9e){const _0x3ead87=_0x49c803[_0x598e82(0x2ec)](_0x3c80e0,_0x1d196e,_0x1d196e+_0x598e82(0x1f7));if(!this[_0x598e82(0x2b6)](_0x3ead87))continue;const _0x5f59c9=await this[_0x598e82(0x255)](_0x3ead87,{'encoding':_0x598e82(0x270)}),_0x2a67df=await this['parseYaml'](_0x5f59c9);for(const _0x374b3e of _0x2a67df[_0x598e82(0x2bf)]||[])if(!0x0===_0x374b3e['isActive']){const _0x44f354=_0x49c803[_0x598e82(0x2ec)](_0x3c80e0,_0x1d196e,this['C'][_0x598e82(0x2bf)],_0x374b3e[_0x598e82(0x25f)],_0x374b3e[_0x598e82(0x2c0)]+_0x598e82(0x1dc)),_0x15f790=_0x49c803[_0x598e82(0x2ec)](this['projectDirectory'],this['C']['src'],_0x276eea,_0x2a67df[_0x598e82(0x2c0)]+_0x598e82(0x1dc));await this[_0x598e82(0x24b)](_0x49c803[_0x598e82(0x307)](_0x15f790),{'recursive':!0x0}),await this[_0x598e82(0x1df)](_0x44f354,_0x15f790);}}}async[_0x4b7bdb(0x2f0)](){const _0x56aca9=_0x4b7bdb,_0x46defc=this['C'][_0x56aca9(0x208)],_0x38ed49=this['C']['SchemaWriteF'],_0x2f164d=_0x49c803[_0x56aca9(0x2ec)](this[_0x56aca9(0x2dd)],this['C'][_0x56aca9(0x1c6)],this[_0x56aca9(0x1aa)][_0x56aca9(0x1fb)],_0x46defc),_0x12a482=await this[_0x56aca9(0x2e1)](_0x2f164d,null);for(const _0x4612be of _0x12a482){const _0x203f87=_0x49c803[_0x56aca9(0x2ec)](_0x2f164d,_0x4612be,_0x4612be+_0x56aca9(0x1f7));if(!this[_0x56aca9(0x2b6)](_0x203f87))continue;const _0xb01ebb=await this['fsReadFile'](_0x203f87,{'encoding':'utf8'}),_0x58f155=await this[_0x56aca9(0x281)](_0xb01ebb),_0x2b0a32=_0x49c803[_0x56aca9(0x2ec)](this['projectDirectory'],this['C'][_0x56aca9(0x1c6)],_0x38ed49,_0x58f155[_0x56aca9(0x27e)],_0x58f155[_0x56aca9(0x298)]);await this[_0x56aca9(0x24b)](_0x2b0a32,{'recursive':!0x0});const _0x3d7483=_0x49c803[_0x56aca9(0x2ec)](_0x2f164d,_0x4612be,_0x58f155[_0x56aca9(0x214)]+_0x56aca9(0x20e)),_0x5c3926=_0x49c803[_0x56aca9(0x2ec)](_0x2b0a32,_0x58f155['collectionName']+_0x56aca9(0x20e));await this['fsLink'](_0x3d7483,_0x5c3926);}}async['copyDBMigrationsToAnotherDir'](){const _0x2213cd=_0x4b7bdb,_0x1dd545=this['C'][_0x2213cd(0x253)],_0x124574=this['C'][_0x2213cd(0x1ad)],_0x45a06b=_0x49c803[_0x2213cd(0x2ec)](this[_0x2213cd(0x2dd)],this['C'][_0x2213cd(0x1c6)],this['config'][_0x2213cd(0x1fb)],_0x1dd545),_0x5ec2b0=await this[_0x2213cd(0x2e1)](_0x45a06b,null);for(const _0x58f519 of _0x5ec2b0){const _0x39760e=_0x49c803['join'](_0x45a06b,_0x58f519,_0x58f519+_0x2213cd(0x1f7));if(!this[_0x2213cd(0x2b6)](_0x39760e))continue;const _0x32ad01=await this['fsReadFile'](_0x39760e,{'encoding':_0x2213cd(0x270)}),_0x280485=await this[_0x2213cd(0x281)](_0x32ad01),_0x40cda4=_0x49c803['join'](this[_0x2213cd(0x232)],this['C'][_0x2213cd(0x1c6)],_0x124574);await this[_0x2213cd(0x24b)](_0x40cda4,{'recursive':!0x0});const _0x17db26=_0x49c803['join'](_0x45a06b,_0x58f519,_0x280485[_0x2213cd(0x2c0)]+'.ts'),_0x17cd2c=_0x49c803[_0x2213cd(0x2ec)](_0x40cda4,_0x280485['name']+'.ts');await this[_0x2213cd(0x1df)](_0x17db26,_0x17cd2c);}}async[_0x4b7bdb(0x1b2)](){const _0x18d4aa=_0x4b7bdb,_0x1ceb8d=this['C'][_0x18d4aa(0x27f)],_0x618a87=this['C'][_0x18d4aa(0x2a0)],_0x40d142=_0x49c803[_0x18d4aa(0x2ec)](this[_0x18d4aa(0x2dd)],this['C']['src'],this[_0x18d4aa(0x1aa)][_0x18d4aa(0x1fb)],_0x1ceb8d),_0x110695=await this[_0x18d4aa(0x2e1)](_0x40d142,null);for(const _0x5152fb of _0x110695){const _0x5cb6ca=_0x49c803[_0x18d4aa(0x2ec)](_0x40d142,_0x5152fb,_0x5152fb+_0x18d4aa(0x1f7));if(!this[_0x18d4aa(0x2b6)](_0x5cb6ca))continue;const _0x564afb=await this['fsReadFile'](_0x5cb6ca,{'encoding':_0x18d4aa(0x270)}),_0x18592d=await this[_0x18d4aa(0x281)](_0x564afb),_0x1d050f=_0x49c803[_0x18d4aa(0x2ec)](this[_0x18d4aa(0x232)],this['C'][_0x18d4aa(0x1c6)],_0x618a87);await this[_0x18d4aa(0x24b)](_0x1d050f,{'recursive':!0x0});const _0x49c319=_0x49c803[_0x18d4aa(0x2ec)](_0x40d142,_0x5152fb,_0x18592d[_0x18d4aa(0x2c0)]+_0x18d4aa(0x1dc)),_0x5c5656=_0x49c803[_0x18d4aa(0x2ec)](_0x1d050f,_0x18592d['name']+_0x18d4aa(0x1dc));await this[_0x18d4aa(0x1df)](_0x49c319,_0x5c5656);}}async[_0x4b7bdb(0x303)](){const _0x56b53b=_0x4b7bdb,_0x33e10d=this['C'][_0x56b53b(0x2cd)],_0x51e897=this['C'][_0x56b53b(0x276)],_0xb426bd=_0x49c803['join'](this[_0x56b53b(0x2dd)],this['C']['src'],this['config'][_0x56b53b(0x1fb)],_0x33e10d),_0x25630b=await this[_0x56b53b(0x2e1)](_0xb426bd,null);for(const _0x8c833d of _0x25630b){const _0x5e54cd=_0x49c803[_0x56b53b(0x2ec)](_0xb426bd,_0x8c833d,_0x8c833d+'.yaml');if(!this[_0x56b53b(0x2b6)](_0x5e54cd))continue;const _0x3e482c=await this['fsReadFile'](_0x5e54cd,{'encoding':_0x56b53b(0x270)}),_0x2d80dd=await this[_0x56b53b(0x281)](_0x3e482c),_0x1341f0=_0x49c803['join'](this[_0x56b53b(0x232)],this['C'][_0x56b53b(0x1c6)],_0x51e897);await this[_0x56b53b(0x24b)](_0x1341f0,{'recursive':!0x0});const _0x2a3137=_0x49c803['join'](_0xb426bd,_0x8c833d,_0x2d80dd[_0x56b53b(0x2c0)]+_0x56b53b(0x1dc)),_0x1f61dc=_0x49c803[_0x56b53b(0x2ec)](_0x1341f0,_0x2d80dd[_0x56b53b(0x2c0)]+_0x56b53b(0x1dc));await this['fsLink'](_0x2a3137,_0x1f61dc);}}async['copyDBMastersToAnotherDir'](){const _0x25ce92=_0x4b7bdb,_0x4f82ae=this['C']['DBMastersReadF'],_0x22c062=this['C'][_0x25ce92(0x252)],_0x31ea71=_0x49c803[_0x25ce92(0x2ec)](this[_0x25ce92(0x2dd)],this['C'][_0x25ce92(0x1c6)],this['config'][_0x25ce92(0x1fb)],_0x4f82ae),_0x528849=await this[_0x25ce92(0x2e1)](_0x31ea71,null);for(const _0x24e75b of _0x528849){const _0x2c2fe2=_0x49c803[_0x25ce92(0x2ec)](_0x31ea71,_0x24e75b,_0x24e75b+_0x25ce92(0x1f7));if(!this[_0x25ce92(0x2b6)](_0x2c2fe2))continue;const _0x3c8fc0=await this[_0x25ce92(0x255)](_0x2c2fe2,{'encoding':'utf8'}),_0x2558d3=await this[_0x25ce92(0x281)](_0x3c8fc0),_0x18226e=_0x49c803[_0x25ce92(0x2ec)](this[_0x25ce92(0x232)],this['C'][_0x25ce92(0x1c6)],_0x22c062,_0x2558d3['name']);await this[_0x25ce92(0x24b)](_0x18226e,{'recursive':!0x0});const _0x20cf82=_0x49c803['join'](_0x31ea71,_0x24e75b,_0x2558d3[_0x25ce92(0x2c0)]+_0x25ce92(0x1dc)),_0x70b183=_0x49c803['join'](_0x18226e,_0x2558d3['name']+_0x25ce92(0x1dc));await this[_0x25ce92(0x1df)](_0x20cf82,_0x70b183);const _0xad11cd=_0x49c803[_0x25ce92(0x2ec)](_0x31ea71,_0x24e75b,_0x2558d3[_0x25ce92(0x2c0)]+_0x25ce92(0x20e)),_0x2656a4=_0x49c803[_0x25ce92(0x2ec)](_0x18226e,_0x2558d3[_0x25ce92(0x2c0)]+_0x25ce92(0x20e));await this[_0x25ce92(0x1df)](_0xad11cd,_0x2656a4);}}async['copyDBMasterStylesToAnotherDir'](){const _0x61ec79=_0x4b7bdb,_0xa64ca9=this['C']['DBMasterStylesReadF'],_0x57b830=this['C'][_0x61ec79(0x29c)],_0x28bf56=_0x49c803[_0x61ec79(0x2ec)](this[_0x61ec79(0x2dd)],this['C']['src'],this[_0x61ec79(0x1aa)]['adminUserPath'],_0xa64ca9),_0x355b4c=await this[_0x61ec79(0x2e1)](_0x28bf56,null);for(const _0x5b9108 of _0x355b4c){const _0x262f94=_0x49c803[_0x61ec79(0x2ec)](_0x28bf56,_0x5b9108,_0x5b9108+'.yaml');if(!this[_0x61ec79(0x2b6)](_0x262f94))continue;const _0x264f8a=await this['fsReadFile'](_0x262f94,{'encoding':_0x61ec79(0x270)}),_0x101eea=await this[_0x61ec79(0x281)](_0x264f8a),_0x4561ae=_0x49c803['join'](this[_0x61ec79(0x232)],this['C']['src'],_0x57b830);await this[_0x61ec79(0x24b)](_0x4561ae,{'recursive':!0x0});const _0x33f1ce=_0x49c803[_0x61ec79(0x2ec)](_0x28bf56,_0x5b9108,_0x101eea[_0x61ec79(0x2c0)]+_0x61ec79(0x254)),_0x3c8efd=_0x49c803[_0x61ec79(0x2ec)](_0x4561ae,_0x101eea['name']+_0x61ec79(0x254));await this[_0x61ec79(0x1df)](_0x33f1ce,_0x3c8efd);}}async[_0x4b7bdb(0x290)](){const _0x276f02=_0x4b7bdb,_0x32818d=this['C']['DBMasterUtilsReadF'],_0x202dc9=this['C'][_0x276f02(0x2bd)],_0x3fc40c=_0x49c803[_0x276f02(0x2ec)](this[_0x276f02(0x2dd)],this['C'][_0x276f02(0x1c6)],this[_0x276f02(0x1aa)][_0x276f02(0x1fb)],_0x32818d),_0x1ae0bd=await this[_0x276f02(0x2e1)](_0x3fc40c,null);for(const _0x406bf0 of _0x1ae0bd){const _0xa480a5=_0x49c803[_0x276f02(0x2ec)](_0x3fc40c,_0x406bf0,_0x406bf0+_0x276f02(0x1f7));if(!this[_0x276f02(0x2b6)](_0xa480a5))continue;const _0x191364=await this[_0x276f02(0x255)](_0xa480a5,{'encoding':_0x276f02(0x270)}),_0x497fca=await this[_0x276f02(0x281)](_0x191364),_0x2ddd25=_0x49c803[_0x276f02(0x2ec)](this[_0x276f02(0x232)],this['C']['src'],_0x202dc9);await this[_0x276f02(0x24b)](_0x2ddd25,{'recursive':!0x0});const _0x250f96=_0x49c803[_0x276f02(0x2ec)](_0x3fc40c,_0x406bf0,_0x497fca['name']+_0x276f02(0x1dc)),_0x4a1737=_0x49c803[_0x276f02(0x2ec)](_0x2ddd25,_0x497fca['name']+_0x276f02(0x1dc));await this[_0x276f02(0x1df)](_0x250f96,_0x4a1737);}}async[_0x4b7bdb(0x1f1)](){const _0x10ab89=_0x4b7bdb,_0x418f95=this['C'][_0x10ab89(0x2d6)],_0x46dd74=this['C'][_0x10ab89(0x30d)],_0x2b8980=_0x49c803['join'](this[_0x10ab89(0x2dd)],this['C'][_0x10ab89(0x1c6)],this['config'][_0x10ab89(0x1fb)],_0x418f95),_0xd517f8=await this[_0x10ab89(0x2e1)](_0x2b8980,null);for(const _0x1f7be2 of _0xd517f8){const _0x1fcd30=_0x49c803[_0x10ab89(0x2ec)](_0x2b8980,_0x1f7be2,_0x1f7be2+_0x10ab89(0x1f7));if(!this[_0x10ab89(0x2b6)](_0x1fcd30))continue;const _0x3c5827=await this[_0x10ab89(0x255)](_0x1fcd30,{'encoding':_0x10ab89(0x270)}),_0x3107d0=await this['parseYaml'](_0x3c5827),_0x3ef6ec=_0x49c803[_0x10ab89(0x2ec)](this[_0x10ab89(0x232)],this['C'][_0x10ab89(0x1c6)],_0x46dd74);await this[_0x10ab89(0x24b)](_0x3ef6ec,{'recursive':!0x0});const _0x373111=_0x49c803['join'](_0x2b8980,_0x1f7be2,_0x3107d0['name']+_0x10ab89(0x1dc)),_0x4ba59a=_0x49c803[_0x10ab89(0x2ec)](_0x3ef6ec,_0x3107d0[_0x10ab89(0x2c0)]+_0x10ab89(0x1dc));await this[_0x10ab89(0x1df)](_0x373111,_0x4ba59a);}}async[_0x4b7bdb(0x304)](){const _0x4842e5=_0x4b7bdb,_0x2ec090=this['C']['ThirdPartyApiReadF'],_0x3e4bca=this['C'][_0x4842e5(0x300)],_0x33c09a=_0x49c803[_0x4842e5(0x2ec)](this[_0x4842e5(0x2dd)],this['C'][_0x4842e5(0x1c6)],this[_0x4842e5(0x1aa)][_0x4842e5(0x1fb)],_0x2ec090);if(!this['fsExistsSync'](_0x33c09a))return;const _0x293cab=await this[_0x4842e5(0x2e1)](_0x33c09a,null);for(const _0x442edf of _0x293cab){const _0x14f8b8=_0x49c803['join'](_0x33c09a,_0x442edf,this['C'][_0x4842e5(0x2f9)]),_0x292b81=await this[_0x4842e5(0x2e1)](_0x14f8b8,null);for(const _0x3cbc17 of _0x292b81){const _0x37765c=_0x49c803[_0x4842e5(0x2ec)](_0x14f8b8,_0x3cbc17,_0x3cbc17+_0x4842e5(0x1f7));if(!this[_0x4842e5(0x2b6)](_0x37765c))continue;const _0x21ee71=await this[_0x4842e5(0x255)](_0x37765c,{'encoding':'utf8'}),_0x36eaee=await this['parseYaml'](_0x21ee71);for(const _0x3e659b of _0x36eaee[_0x4842e5(0x2bf)]||[])if(!0x0===_0x3e659b[_0x4842e5(0x221)]){const _0x2d1130=_0x49c803[_0x4842e5(0x2ec)](_0x14f8b8,_0x3cbc17,this['C'][_0x4842e5(0x2bf)],_0x3e659b[_0x4842e5(0x25f)]),_0x3e2944=_0x49c803[_0x4842e5(0x2ec)](_0x2d1130,_0x3e659b[_0x4842e5(0x2c0)]+_0x4842e5(0x1dc)),_0x13f068=_0x49c803[_0x4842e5(0x2ec)](this[_0x4842e5(0x232)],this['C'][_0x4842e5(0x1c6)],_0x3e4bca,_0x442edf,_0x36eaee['path'],_0x36eaee[_0x4842e5(0x2c0)]+_0x4842e5(0x1dc));await this[_0x4842e5(0x24b)](_0x49c803[_0x4842e5(0x307)](_0x13f068),{'recursive':!0x0}),await this[_0x4842e5(0x1df)](_0x3e2944,_0x13f068);const _0x595bf2=_0x49c803['join'](_0x14f8b8,_0x3cbc17,_0x3cbc17+_0x4842e5(0x20e)),_0x4980de=_0x49c803['join'](this[_0x4842e5(0x232)],this['C'][_0x4842e5(0x1c6)],_0x3e4bca,_0x442edf,_0x36eaee[_0x4842e5(0x1b4)],_0x36eaee['name']+_0x4842e5(0x20e));await this[_0x4842e5(0x1df)](_0x595bf2,_0x4980de);for(const _0x5d92a0 of _0x3e659b[_0x4842e5(0x2b1)]){const _0x27456b=_0x49c803['join'](_0x2d1130,this['C']['preHooks'],_0x5d92a0[_0x4842e5(0x2c0)]+_0x4842e5(0x1dc)),_0x1ab0d6=_0x49c803[_0x4842e5(0x2ec)](this['projectDirectory'],this['C'][_0x4842e5(0x1c6)],_0x3e4bca,_0x442edf,_0x36eaee[_0x4842e5(0x1b4)],this['C'][_0x4842e5(0x2b1)],_0x5d92a0[_0x4842e5(0x2c0)]+_0x4842e5(0x1dc));await this[_0x4842e5(0x24b)](_0x49c803[_0x4842e5(0x307)](_0x1ab0d6),{'recursive':!0x0}),await this[_0x4842e5(0x1df)](_0x27456b,_0x1ab0d6);}for(const _0x66d031 of _0x3e659b[_0x4842e5(0x2fe)]){const _0x3bb6ab=_0x49c803['join'](_0x2d1130,this['C']['postHooks'],_0x66d031['name']+_0x4842e5(0x1dc)),_0x372522=_0x49c803[_0x4842e5(0x2ec)](this[_0x4842e5(0x232)],this['C'][_0x4842e5(0x1c6)],_0x3e4bca,_0x442edf,_0x36eaee[_0x4842e5(0x1b4)],this['C'][_0x4842e5(0x2fe)],_0x66d031[_0x4842e5(0x2c0)]+_0x4842e5(0x1dc));await this[_0x4842e5(0x24b)](_0x49c803[_0x4842e5(0x307)](_0x372522),{'recursive':!0x0}),await this[_0x4842e5(0x1df)](_0x3bb6ab,_0x372522);}}}}}async[_0x4b7bdb(0x21a)](){const _0x455131=_0x4b7bdb,_0x681062=this['C'][_0x455131(0x2a5)],_0x4dbffa=this['C'][_0x455131(0x222)],_0x3e7a7c=_0x49c803['join'](this[_0x455131(0x2dd)],this['C'][_0x455131(0x1c6)],this[_0x455131(0x1aa)]['adminUserPath'],_0x681062),_0x481c93=await this['readDirCustom'](_0x3e7a7c,null);for(const _0x58b1ea of _0x481c93){const _0x546c0f=_0x49c803[_0x455131(0x2ec)](_0x3e7a7c,_0x58b1ea,_0x58b1ea+_0x455131(0x1f7));if(!this[_0x455131(0x2b6)](_0x546c0f))continue;const _0x49ea25=await this[_0x455131(0x255)](_0x546c0f,{'encoding':_0x455131(0x270)}),_0x3684df=await this[_0x455131(0x281)](_0x49ea25),_0x16f262=_0x49c803[_0x455131(0x2ec)](_0x3e7a7c,_0x58b1ea,this['C']['listeners']);for(const _0xbbb17e of _0x3684df[_0x455131(0x1e8)])for(const _0x15a7b4 of _0xbbb17e[_0x455131(0x2bf)]||[])if(!0x0===_0x15a7b4[_0x455131(0x221)]){const _0x129a93=_0x49c803['join'](_0x16f262,_0xbbb17e[_0x455131(0x2c0)],this['C'][_0x455131(0x2bf)],_0x15a7b4[_0x455131(0x25f)],_0x15a7b4[_0x455131(0x2c0)]+_0x455131(0x1dc)),_0x5f28bd=_0x49c803[_0x455131(0x2ec)](this['projectDirectory'],this['C'][_0x455131(0x1c6)],_0x4dbffa,_0x3684df[_0x455131(0x2c0)],_0xbbb17e[_0x455131(0x2c0)]+_0x455131(0x1dc));await this[_0x455131(0x24b)](_0x49c803[_0x455131(0x307)](_0x5f28bd),{'recursive':!0x0}),await this['fsLink'](_0x129a93,_0x5f28bd);}}}async[_0x4b7bdb(0x23c)](){const _0x4986dd=_0x4b7bdb,_0x2137ba=this['C']['InstanceApiHooksReadF'],_0x59909e=this['C']['InstanceApiHooksWriteF'],_0x2c2ed9=_0x49c803[_0x4986dd(0x2ec)](this[_0x4986dd(0x2dd)],this['C'][_0x4986dd(0x1c6)],this[_0x4986dd(0x1aa)][_0x4986dd(0x1fb)],_0x2137ba),_0x20eee3=await this[_0x4986dd(0x2e1)](_0x2c2ed9,null);for(const _0x256d9c of _0x20eee3){const _0x4e5826=_0x49c803['join'](_0x2c2ed9,_0x256d9c,_0x256d9c+'.yaml');if(!this[_0x4986dd(0x2b6)](_0x4e5826))continue;const _0x14634b=await this['fsReadFile'](_0x4e5826,{'encoding':_0x4986dd(0x270)}),_0x2032f3=await this[_0x4986dd(0x281)](_0x14634b),_0x13309b=_0x49c803[_0x4986dd(0x2ec)](_0x2c2ed9,_0x256d9c),_0x412111=_0x2032f3[_0x4986dd(0x27e)]+'/'+_0x2032f3[_0x4986dd(0x298)]+'/'+_0x2032f3[_0x4986dd(0x214)]+'/'+_0x2032f3[_0x4986dd(0x30f)][_0x4986dd(0x1d4)]();for(const _0x2b4baf of _0x2032f3[_0x4986dd(0x2b1)]){const _0x184557=_0x49c803['join'](_0x13309b,this['C'][_0x4986dd(0x2b1)],_0x2b4baf['name']+_0x4986dd(0x1dc)),_0xb73667=_0x49c803[_0x4986dd(0x2ec)](this[_0x4986dd(0x232)],this['C'][_0x4986dd(0x1c6)],_0x59909e,_0x412111,this['C'][_0x4986dd(0x2b1)],_0x2b4baf['name']+_0x4986dd(0x1dc));await this[_0x4986dd(0x24b)](_0x49c803['dirname'](_0xb73667),{'recursive':!0x0}),await this[_0x4986dd(0x1df)](_0x184557,_0xb73667);}for(const _0x6573b5 of _0x2032f3['postHooks']){const _0x3739a8=_0x49c803['join'](_0x13309b,this['C'][_0x4986dd(0x2fe)],_0x6573b5[_0x4986dd(0x2c0)]+_0x4986dd(0x1dc)),_0x4363ca=_0x49c803[_0x4986dd(0x2ec)](this['projectDirectory'],this['C']['src'],_0x59909e,_0x412111,this['C'][_0x4986dd(0x2fe)],_0x6573b5[_0x4986dd(0x2c0)]+'.ts');await this['fsMkDir'](_0x49c803[_0x4986dd(0x307)](_0x4363ca),{'recursive':!0x0}),await this['fsLink'](_0x3739a8,_0x4363ca);}}}async[_0x4b7bdb(0x204)](){const _0x378d28=_0x4b7bdb,_0x277f91=this['C']['SystemApiHooksReadF'],_0xe97ea5=this['C'][_0x378d28(0x1d5)],_0x5de2a8=_0x49c803[_0x378d28(0x2ec)](this['appRoot'],this['C']['src'],this[_0x378d28(0x1aa)][_0x378d28(0x1fb)],_0x277f91),_0xb5b93d=await this[_0x378d28(0x2e1)](_0x5de2a8,null);for(const _0x58a892 of _0xb5b93d){const _0xa77b93=_0x49c803['join'](_0x5de2a8,_0x58a892,_0x58a892+_0x378d28(0x1f7));if(!this[_0x378d28(0x2b6)](_0xa77b93))continue;const _0x1e0f0d=await this[_0x378d28(0x255)](_0xa77b93,{'encoding':_0x378d28(0x270)}),_0xe195f3=await this['parseYaml'](_0x1e0f0d),_0x491069=_0x49c803[_0x378d28(0x2ec)](_0x5de2a8,_0x58a892),_0x235925=_0xe195f3['apiId'][_0x378d28(0x1d4)]();for(const _0x5e9a60 of _0xe195f3['preHooks']){const _0x559c1a=_0x49c803[_0x378d28(0x2ec)](_0x491069,this['C'][_0x378d28(0x2b1)],_0x5e9a60['name']+_0x378d28(0x1dc)),_0x40676b=_0x49c803[_0x378d28(0x2ec)](this[_0x378d28(0x232)],this['C'][_0x378d28(0x1c6)],_0xe97ea5,_0x235925,this['C'][_0x378d28(0x2b1)],_0x5e9a60[_0x378d28(0x2c0)]+_0x378d28(0x1dc));await this['fsMkDir'](_0x49c803['dirname'](_0x40676b),{'recursive':!0x0}),await this[_0x378d28(0x1df)](_0x559c1a,_0x40676b);}for(const _0x4fba99 of _0xe195f3[_0x378d28(0x2fe)]){const _0x1cde05=_0x49c803[_0x378d28(0x2ec)](_0x491069,this['C'][_0x378d28(0x2fe)],_0x4fba99[_0x378d28(0x2c0)]+_0x378d28(0x1dc)),_0x16f96c=_0x49c803[_0x378d28(0x2ec)](this[_0x378d28(0x232)],this['C']['src'],_0xe97ea5,_0x235925,this['C'][_0x378d28(0x2fe)],_0x4fba99[_0x378d28(0x2c0)]+_0x378d28(0x1dc));await this[_0x378d28(0x24b)](_0x49c803[_0x378d28(0x307)](_0x16f96c),{'recursive':!0x0}),await this[_0x378d28(0x1df)](_0x1cde05,_0x16f96c);}}}async[_0x4b7bdb(0x2dc)](){const _0x3a7f95=_0x4b7bdb,_0x3fdaa1=this['C']['WebSocketEventsReadF'],_0x3d1ba2=this['C']['WebSocketEventsWriteF'],_0x5ce2a2=_0x49c803[_0x3a7f95(0x2ec)](this[_0x3a7f95(0x2dd)],this['C'][_0x3a7f95(0x1c6)],this[_0x3a7f95(0x1aa)][_0x3a7f95(0x1fb)],_0x3fdaa1),_0x59f18f=await this[_0x3a7f95(0x2e1)](_0x5ce2a2,null);for(const _0x3382de of _0x59f18f){const _0x2b5212=_0x49c803[_0x3a7f95(0x2ec)](_0x5ce2a2,_0x3382de,_0x3382de+_0x3a7f95(0x1f7));if(!this[_0x3a7f95(0x2b6)](_0x2b5212))continue;const _0x45563c=await this[_0x3a7f95(0x255)](_0x2b5212,{'encoding':_0x3a7f95(0x270)}),_0x54138d=await this[_0x3a7f95(0x281)](_0x45563c);for(const _0x4b8fd4 of _0x54138d[_0x3a7f95(0x2bf)]||[])if(!0x0===_0x4b8fd4[_0x3a7f95(0x221)]){const _0x3fb4c1=_0x49c803['join'](_0x5ce2a2,_0x3382de,this['C'][_0x3a7f95(0x2bf)],_0x4b8fd4['version'],_0x4b8fd4[_0x3a7f95(0x2c0)]+_0x3a7f95(0x1dc));let _0x681442='',_0x577b8b='';_0x54138d['apiCategory']===_0x49d459[_0x3a7f95(0x24a)]?(_0x577b8b=_0x3a7f95(0x1f8),_0x681442=_0x54138d['instanceName']+'/'+_0x54138d['databaseName']+'/'+_0x54138d['collectionName']+'/'+_0x54138d[_0x3a7f95(0x239)][_0x3a7f95(0x1d4)]()):_0x54138d['apiCategory']===_0x49d459[_0x3a7f95(0x1f2)]?(_0x577b8b=_0x3a7f95(0x29b),_0x681442=_0x54138d[_0x3a7f95(0x2c9)]+'/'+_0x54138d[_0x3a7f95(0x21b)]):_0x54138d[_0x3a7f95(0x1c7)]===_0x49d459['CUSTOM_APIS']?(_0x577b8b='custom-apis',_0x681442=_0x54138d[_0x3a7f95(0x1b1)]):_0x54138d[_0x3a7f95(0x1c7)]===_0x49d459[_0x3a7f95(0x2ab)]?(_0x577b8b=_0x3a7f95(0x2d9),_0x681442=_0x54138d['systemApiName'][_0x3a7f95(0x1d4)]()):_0x54138d[_0x3a7f95(0x1c7)]===_0x49d459['WEB_SOCKET_EVENT']&&(_0x577b8b=_0x3a7f95(0x306),_0x681442=_0x54138d[_0x3a7f95(0x2c0)]);const _0x11744e=_0x49c803[_0x3a7f95(0x2ec)](this[_0x3a7f95(0x232)],this['C'][_0x3a7f95(0x1c6)],_0x3d1ba2,_0x577b8b,_0x681442+_0x3a7f95(0x1dc));await this[_0x3a7f95(0x24b)](_0x49c803[_0x3a7f95(0x307)](_0x11744e),{'recursive':!0x0}),await this[_0x3a7f95(0x1df)](_0x3fb4c1,_0x11744e);}}}async['copyCollectionHooksToAnotherDir'](){const _0x374338=_0x4b7bdb,_0x4cf320=this['C'][_0x374338(0x2c7)],_0x333e4a=this['C'][_0x374338(0x205)],_0x18de7c=_0x49c803[_0x374338(0x2ec)](this[_0x374338(0x2dd)],this['C'][_0x374338(0x1c6)],this[_0x374338(0x1aa)]['adminUserPath'],_0x4cf320),_0xae1071=await this['readDirCustom'](_0x18de7c,null);for(const _0x30cf68 of _0xae1071){const _0x2e44cf=_0x49c803[_0x374338(0x2ec)](_0x18de7c,_0x30cf68,_0x30cf68+'.yaml');if(!this[_0x374338(0x2b6)](_0x2e44cf))continue;const _0x13f9e6=await this[_0x374338(0x255)](_0x2e44cf,{'encoding':'utf8'}),_0x5dfcaf=await this[_0x374338(0x281)](_0x13f9e6),_0x3fdff1=_0x49c803[_0x374338(0x2ec)](_0x18de7c,_0x30cf68),_0xcab41b=_0x5dfcaf[_0x374338(0x27e)]+'/'+_0x5dfcaf[_0x374338(0x298)]+'/'+_0x5dfcaf[_0x374338(0x214)];for(const _0x13823b of _0x5dfcaf[_0x374338(0x2b1)]){const _0x4bd325=_0x49c803[_0x374338(0x2ec)](_0x3fdff1,this['C'][_0x374338(0x2b1)],_0x13823b[_0x374338(0x2c0)]+_0x374338(0x1dc)),_0x946c14=_0x49c803['join'](this[_0x374338(0x232)],this['C'][_0x374338(0x1c6)],_0x333e4a,_0xcab41b,this['C'][_0x374338(0x2b1)],_0x13823b[_0x374338(0x2c0)]+_0x374338(0x1dc));await this[_0x374338(0x24b)](_0x49c803[_0x374338(0x307)](_0x946c14),{'recursive':!0x0}),await this['fsLink'](_0x4bd325,_0x946c14);}for(const _0x49cf02 of _0x5dfcaf['postHooks']){const _0x30d290=_0x49c803[_0x374338(0x2ec)](_0x3fdff1,this['C']['postHooks'],_0x49cf02[_0x374338(0x2c0)]+_0x374338(0x1dc)),_0x4b6d5e=_0x49c803['join'](this[_0x374338(0x232)],this['C']['src'],_0x333e4a,_0xcab41b,this['C'][_0x374338(0x2fe)],_0x49cf02[_0x374338(0x2c0)]+'.ts');await this[_0x374338(0x24b)](_0x49c803['dirname'](_0x4b6d5e),{'recursive':!0x0}),await this['fsLink'](_0x30d290,_0x4b6d5e);}}}async[_0x4b7bdb(0x1fe)](){const _0x1c6020=_0x4b7bdb,_0x8425a=this['C'][_0x1c6020(0x1ff)],_0x2127fa=this['C'][_0x1c6020(0x2a7)],_0x320140=_0x49c803[_0x1c6020(0x2ec)](this[_0x1c6020(0x2dd)],this['C'][_0x1c6020(0x1c6)],this[_0x1c6020(0x1aa)][_0x1c6020(0x1fb)],_0x8425a),_0x442cba=await this[_0x1c6020(0x2e1)](_0x320140,null);for(const _0x530a47 of _0x442cba){const _0x5b748e=_0x49c803[_0x1c6020(0x2ec)](_0x320140,_0x530a47,_0x530a47+_0x1c6020(0x1f7));if(!this[_0x1c6020(0x2b6)](_0x5b748e))continue;const _0x33188a=await this[_0x1c6020(0x255)](_0x5b748e,{'encoding':_0x1c6020(0x270)}),_0x56157b=await this[_0x1c6020(0x281)](_0x33188a),_0x23b719=_0x49c803['join'](_0x320140,_0x530a47),_0x3e2258=_0x56157b[_0x1c6020(0x27e)]+'/'+_0x56157b['databaseName'];for(const _0x5d6666 of _0x56157b[_0x1c6020(0x2b1)]){const _0x53c606=_0x49c803[_0x1c6020(0x2ec)](_0x23b719,this['C']['preHooks'],_0x5d6666[_0x1c6020(0x2c0)]+'.ts'),_0x1cc64b=_0x49c803[_0x1c6020(0x2ec)](this['projectDirectory'],this['C'][_0x1c6020(0x1c6)],_0x2127fa,_0x3e2258,this['C']['preHooks'],_0x5d6666[_0x1c6020(0x2c0)]+_0x1c6020(0x1dc));await this[_0x1c6020(0x24b)](_0x49c803['dirname'](_0x1cc64b),{'recursive':!0x0}),await this[_0x1c6020(0x1df)](_0x53c606,_0x1cc64b);}for(const _0x5cac85 of _0x56157b[_0x1c6020(0x2fe)]){const _0x49e915=_0x49c803['join'](_0x23b719,this['C'][_0x1c6020(0x2fe)],_0x5cac85[_0x1c6020(0x2c0)]+_0x1c6020(0x1dc)),_0x13f458=_0x49c803[_0x1c6020(0x2ec)](this[_0x1c6020(0x232)],this['C'][_0x1c6020(0x1c6)],_0x2127fa,_0x3e2258,this['C'][_0x1c6020(0x2fe)],_0x5cac85[_0x1c6020(0x2c0)]+'.ts');await this[_0x1c6020(0x24b)](_0x49c803[_0x1c6020(0x307)](_0x13f458),{'recursive':!0x0}),await this[_0x1c6020(0x1df)](_0x49e915,_0x13f458);}}}async[_0x4b7bdb(0x1ce)](){const _0x15f52c=_0x4b7bdb,_0x58e0be=this['C'][_0x15f52c(0x231)],_0x719e1=this['C'][_0x15f52c(0x263)],_0x34f15a=_0x49c803[_0x15f52c(0x2ec)](this['appRoot'],this['C'][_0x15f52c(0x1c6)],this[_0x15f52c(0x1aa)]['adminUserPath'],_0x58e0be),_0x5d5b1e=await this[_0x15f52c(0x2e1)](_0x34f15a,null);for(const _0x5584b6 of _0x5d5b1e){const _0x1f199f=_0x49c803[_0x15f52c(0x2ec)](_0x34f15a,_0x5584b6,_0x5584b6+'.yaml');if(!this[_0x15f52c(0x2b6)](_0x1f199f))continue;const _0x251d4a=await this['fsReadFile'](_0x1f199f,{'encoding':'utf8'}),_0x488ec6=await this[_0x15f52c(0x281)](_0x251d4a),_0x2bf074=_0x49c803['join'](_0x34f15a,_0x5584b6),_0x10ab51=''+_0x488ec6[_0x15f52c(0x27e)];for(const _0x3a858a of _0x488ec6[_0x15f52c(0x2b1)]){const _0x5814cf=_0x49c803[_0x15f52c(0x2ec)](_0x2bf074,this['C'][_0x15f52c(0x2b1)],_0x3a858a[_0x15f52c(0x2c0)]+'.ts'),_0x2909c8=_0x49c803[_0x15f52c(0x2ec)](this['projectDirectory'],this['C'][_0x15f52c(0x1c6)],_0x719e1,_0x10ab51,this['C'][_0x15f52c(0x2b1)],_0x3a858a[_0x15f52c(0x2c0)]+_0x15f52c(0x1dc));await this['fsMkDir'](_0x49c803[_0x15f52c(0x307)](_0x2909c8),{'recursive':!0x0}),await this[_0x15f52c(0x1df)](_0x5814cf,_0x2909c8);}for(const _0x487910 of _0x488ec6[_0x15f52c(0x2fe)]){const _0x58d2c5=_0x49c803['join'](_0x2bf074,this['C']['postHooks'],_0x487910[_0x15f52c(0x2c0)]+_0x15f52c(0x1dc)),_0x522824=_0x49c803['join'](this[_0x15f52c(0x232)],this['C'][_0x15f52c(0x1c6)],_0x719e1,_0x10ab51,this['C'][_0x15f52c(0x2fe)],_0x487910['name']+_0x15f52c(0x1dc));await this[_0x15f52c(0x24b)](_0x49c803[_0x15f52c(0x307)](_0x522824),{'recursive':!0x0}),await this[_0x15f52c(0x1df)](_0x58d2c5,_0x522824);}}}async['executeNpmRun'](_0x45efec,_0xab4204){return new Promise((_0x7ae667,_0x42a183)=>{const _0x59a1eb=a0_0x3040,_0x4bc9fa=(0x0,_0x158ca1[_0x59a1eb(0x1e7)])(_0x45efec,_0xab4204,{'shell':!0x0,'cwd':this[_0x59a1eb(0x2dd)]});_0x4bc9fa['on'](_0x59a1eb(0x302),_0x35f4af=>{const _0x16d7f3=_0x59a1eb;if(0x0===_0x35f4af)setTimeout(_0x7ae667,0x1f4);else{const _0x2e5533='\x27'+_0x45efec+'\x20'+_0xab4204[_0x16d7f3(0x2ec)]('\x20')+_0x16d7f3(0x20d)+_0x35f4af+'.';_0x42a183(new Error(_0x2e5533));}}),_0x4bc9fa['on'](_0x59a1eb(0x210),_0x3d3fcf=>{const _0x166ecd=_0x59a1eb;console['error']('Failed\x20to\x20start\x20the\x20npm\x20process:\x20'+_0x3d3fcf[_0x166ecd(0x28b)]),_0x42a183(_0x3d3fcf);});});}async[_0x4b7bdb(0x281)](_0x5df0dc){const _0x570e63=_0x4b7bdb;return _0xdc1f2e(0x2f8)[_0x570e63(0x219)](_0x5df0dc);}[_0x4b7bdb(0x23d)](){const _0x45f660=_0x4b7bdb,_0x3e4675=_0xdc1f2e(0x274),_0x56be15=_0x49c803[_0x45f660(0x2ec)](this[_0x45f660(0x2dd)]),_0xfb101e=_0x49c803[_0x45f660(0x2ec)](this[_0x45f660(0x2dd)],this['C'][_0x45f660(0x1c6)]),_0xe175dc=_0xebfd41=>{const _0x57a953=_0x45f660,_0x271b59=_0x49c803[_0x57a953(0x2ee)](_0x56be15,_0xebfd41);return!(_0x271b59&&!_0x271b59['startsWith']('.')&&!_0x271b59['endsWith']('~')&&_0x271b59[_0x57a953(0x2ef)](this['C'][_0x57a953(0x1c6)]));},_0x16887d=_0x3e4675['watch'](_0xfb101e,{'persistent':!0x0,'ignoreInitial':!0x0,'depth':0x1/0x0,'awaitWriteFinish':{'stabilityThreshold':0xc8,'pollInterval':0x64}}),_0xb33379=async(_0x5e4ec8,_0x2ccab0)=>{const _0x6db71f=_0x45f660;try{if(this[_0x6db71f(0x296)])return;const _0x10470b=_0x49c803[_0x6db71f(0x2ee)](_0x56be15,_0x2ccab0);if(!_0x2ccab0||_0xe175dc(_0x2ccab0))return;console[_0x6db71f(0x201)](_0x6db71f(0x2ff)+this['getCurrentTime']()+_0x6db71f(0x1cf)+_0x5e4ec8+']\x20:\x20'+_0x10470b);const _0x176a54=this['getCategoryOfPath'](_0x10470b),_0x22089a=this['getChangedFolder'](_0x176a54,_0x10470b);if(!_0x22089a)return;let _0x704b59,_0x32ac76=!0x1;if(this['fsExistsSync'](_0x22089a)){if(this[_0x6db71f(0x2b6)](_0x49c803['join'](_0x56be15,_0x10470b))){const _0x207cf3=_0x49c803[_0x6db71f(0x2ec)](_0x49c803['sep']+this['C'][_0x6db71f(0x291)],_0x22089a);_0x704b59=await this['serializeFolderWithBinary'](_0x22089a,_0x207cf3),this['sendToServer']({'objType':_0x4df010[_0x6db71f(0x2e4)],'localClientWSReqRes':{'eventType':_0x4d7b67[_0x6db71f(0x28d)],'folderChangedOnLocalSystem':_0x704b59,'category':_0x176a54,'shouldReplaceAllItemsOfCategory':_0x32ac76}});}else this[_0x6db71f(0x21c)]();}else{const _0x2555bb=this[_0x6db71f(0x261)](_0x176a54,_0x10470b),_0x2f9ec1=_0x49c803[_0x6db71f(0x2ec)](_0x49c803['sep']+this['C'][_0x6db71f(0x291)],_0x2555bb);_0x704b59=await this[_0x6db71f(0x285)](_0x2555bb,_0x2f9ec1),_0x32ac76=!0x0,this[_0x6db71f(0x2b0)](_0x704b59,_0x176a54,_0x32ac76);}}catch(_0x1a8592){console[_0x6db71f(0x210)](_0x6db71f(0x2eb),_0x1a8592);}};_0x16887d['on'](_0x45f660(0x211),_0x2c4e9f=>_0xb33379(_0x45f660(0x211),_0x2c4e9f))['on'](_0x45f660(0x1d6),_0x461001=>_0xb33379(_0x45f660(0x1d6),_0x461001))['on'](_0x45f660(0x1af),_0x5dd6f0=>_0xb33379(_0x45f660(0x1af),_0x5dd6f0))['on'](_0x45f660(0x247),_0x26bb0d=>_0xb33379(_0x45f660(0x247),_0x26bb0d))['on'](_0x45f660(0x272),_0xe95bc5=>_0xb33379(_0x45f660(0x272),_0xe95bc5))['on']('error',_0x5a8aa5=>console['error'](_0x45f660(0x27d),_0x5a8aa5)),this[_0x45f660(0x2f7)]=_0x16887d,console[_0x45f660(0x201)](_0x45f660(0x240));}[_0x4b7bdb(0x20c)](){const _0xd4ebad=_0x4b7bdb,_0x2abbde=new Date();return String(_0x2abbde['getHours']())[_0xd4ebad(0x23f)](0x2,'0')+':'+String(_0x2abbde['getMinutes']())[_0xd4ebad(0x23f)](0x2,'0')+':'+String(_0x2abbde['getSeconds']())[_0xd4ebad(0x23f)](0x2,'0');}[_0x4b7bdb(0x2a6)](_0x2873a0,_0x58be58,_0x26fc8a){const _0x5e4afe=_0x4b7bdb;this['sendToServer']({'objType':_0x4df010[_0x5e4afe(0x2e4)],'localClientWSReqRes':{'eventType':_0x4d7b67['LC_FOLDER_CHANGED_ON_LOCAL_SYSTEM'],'folderChangedOnLocalSystem':_0x2873a0,'category':_0x58be58,'shouldReplaceAllItemsOfCategory':_0x26fc8a}});}[_0x4b7bdb(0x2aa)](_0x13ddfa,_0x35ccd5){let _0x247e56=null;return function(..._0x4671d1){clearTimeout(_0x247e56),_0x247e56=setTimeout(()=>{_0x13ddfa['apply'](this,_0x4671d1);},_0x35ccd5);};}[_0x4b7bdb(0x1b9)](_0x33a3fe){const _0x272043=_0x4b7bdb,_0x40b17c=_0x49c803[_0x272043(0x2ec)](this['C'][_0x272043(0x1c6)],this['config'][_0x272043(0x1fb)]);if(!_0x33a3fe[_0x272043(0x2ef)](_0x40b17c))return;const _0x373d7a=_0x33a3fe[_0x272043(0x30a)](_0x49c803['sep'])[_0x272043(0x1db)](_0x1109c4=>!!_0x1109c4)[0x2];for(const _0x56ea7a in _0x5baad4)if(_0x5baad4[_0x56ea7a]===_0x373d7a)return _0x373d7a;}[_0x4b7bdb(0x2b7)](_0x2b5880,_0x4436a2){const _0x14da2b=_0x4b7bdb,_0xf7d697=_0x4436a2['split'](_0x49c803[_0x14da2b(0x26b)]);let _0x93c323='';return _0x93c323=_0x2b5880===_0x5baad4['THIRD_PARTY_APIS']?_0xf7d697['slice'](0x0,0x6)[_0x14da2b(0x2ec)](_0x49c803['sep']):_0xf7d697[_0x14da2b(0x2cc)](0x0,0x4)[_0x14da2b(0x2ec)](_0x49c803[_0x14da2b(0x26b)]),_0x93c323;}[_0x4b7bdb(0x261)](_0x165cef,_0x4bde79){const _0x5471ba=_0x4b7bdb;return _0x4bde79[_0x5471ba(0x30a)](_0x49c803[_0x5471ba(0x26b)])[_0x5471ba(0x2cc)](0x0,0x3)[_0x5471ba(0x2ec)](_0x49c803['sep']);}async[_0x4b7bdb(0x285)](_0x29bfaa,_0x56d3a9){const _0x15b04b={},_0x5b21c3=this;return await async function _0x29adb6(_0x3d6f77){const _0x269948=a0_0x3040,_0x54d8b0=await _0x5b21c3[_0x269948(0x2e1)](_0x3d6f77,{'withFileTypes':!0x0});for(const _0xae56d9 of _0x54d8b0){const _0x5a6cce=_0x49c803[_0x269948(0x2ec)](_0x3d6f77,_0xae56d9[_0x269948(0x2c0)]),_0x5e9b6c=_0x49c803[_0x269948(0x1fd)](_0x5a6cce);if(_0xae56d9[_0x269948(0x235)]())await _0x29adb6(_0x5e9b6c);else{const _0xd5918f=_0xe6c262[_0x269948(0x2ed)](_0x5e9b6c),_0x576a49=_0x49c803[_0x269948(0x2ee)](_0x29bfaa,_0x5e9b6c),_0x1570f3=_0x49c803[_0x269948(0x2ec)](_0x56d3a9,_0x576a49)[_0x269948(0x30a)](_0x49c803[_0x269948(0x26b)])[_0x269948(0x2ec)](_0x49c803['posix'][_0x269948(0x26b)]);_0x15b04b[_0x1570f3]={'encoding':_0x269948(0x206),'content':_0xd5918f[_0x269948(0x30e)](_0x269948(0x206))};}}}(_0x29bfaa),_0x15b04b;}[_0x4b7bdb(0x1e4)](_0x2c20bc){const _0x2aed39=_0x4b7bdb;try{this['ws'][_0x2aed39(0x217)](JSON[_0x2aed39(0x215)](_0x2c20bc));}catch(_0x41d045){console[_0x2aed39(0x201)](_0x41d045);}}async['connectToServerViaWS'](){const _0x48ea31=_0x4b7bdb;console[_0x48ea31(0x201)]('⏳\x20Connecting\x20to\x20server...');const _0x4f95a3=this[_0x48ea31(0x1aa)][_0x48ea31(0x1ae)],_0x353dd1=this[_0x48ea31(0x1aa)][_0x48ea31(0x1fb)],_0x1ae85d=this['config']['webSocketURL'];this['ws']=new WebSocket(_0x1ae85d+_0x48ea31(0x1f0)+_0x4f95a3+'&user-path='+_0x353dd1);const _0x28429d=[],_0x3a342e=()=>{const _0x41321b=_0x48ea31;this['sendToServer']({'objType':_0x4df010['REGISTER'],'onEvents':[{'eventType':_0x41321b(0x224)}]});};function _0x1073af(_0x3619a7){const _0xd11ff0=_0x48ea31;_0x3619a7[_0xd11ff0(0x26f)]=null,_0x3619a7[_0xd11ff0(0x28c)]=null,_0x3619a7['onerror']=null,_0x3619a7[_0xd11ff0(0x27a)]=null,_0x3619a7[_0xd11ff0(0x302)]();}this['ws'][_0x48ea31(0x28c)]=async _0x287ebc=>{const _0x4ef3a0=_0x48ea31,_0x19f82d=JSON['parse'](_0x287ebc[_0x4ef3a0(0x264)]);if(_0x19f82d[_0x4ef3a0(0x1c0)]===_0x4df010['CONNECTED']&&_0x19f82d[_0x4ef3a0(0x2e0)][_0x4ef3a0(0x212)])_0x3a342e();else{if(_0x19f82d['type']===_0x4df010[_0x4ef3a0(0x2c2)]){if(_0x19f82d?.['response']?.['validOnEvents']?.[_0x4ef3a0(0x1b8)]){for(const _0x3dfc61 of _0x19f82d['response'][_0x4ef3a0(0x2d1)])_0x28429d[_0x4ef3a0(0x2fc)](_0x3dfc61);console[_0x4ef3a0(0x201)](_0x4ef3a0(0x2b2)),!0x1===this[_0x4ef3a0(0x24d)]&&(this['isWSConnectedFirstTime']=!0x0,console[_0x4ef3a0(0x201)](this[_0x4ef3a0(0x284)]+_0x4ef3a0(0x1f4)+this[_0x4ef3a0(0x232)]+this['colorEnd'])),this[_0x4ef3a0(0x21c)]();}else{const _0x5e954e=_0x19f82d['response']?.[_0x4ef3a0(0x1be)]?.[0x0]?.['errors']?.[0x0]?.['message']||_0x4ef3a0(0x1c3);console[_0x4ef3a0(0x201)]('❌\x20'+_0x5e954e),await this[_0x4ef3a0(0x2e9)](0x1);}}else await this[_0x4ef3a0(0x2df)](_0x19f82d);}},this['ws'][_0x48ea31(0x27a)]=_0x2cd91b=>{const _0x52cae5=_0x48ea31;console['log']('Connection\x20closed.'),_0x1073af(this['ws']),setTimeout(this['connectToServerViaWS'][_0x52cae5(0x2f8)](this),0xbb8);},this['ws']['onerror']=()=>{const _0x354b59=_0x48ea31;_0x1073af(this['ws']),setTimeout(this[_0x354b59(0x2c3)][_0x354b59(0x2f8)](this),0xbb8);};}[_0x4b7bdb(0x21c)](){const _0x4235ea=_0x4b7bdb;this[_0x4235ea(0x1e4)]({'objType':_0x4df010[_0x4235ea(0x2e4)],'localClientWSReqRes':{'eventType':_0x4d7b67[_0x4235ea(0x266)]}});}async[_0x4b7bdb(0x2df)](_0x303d9e){const _0x5d86ac=_0x4b7bdb;if(this['EL']&&_0x303d9e[_0x5d86ac(0x2e0)]['eventType']!==_0x4d7b67[_0x5d86ac(0x266)]&&console[_0x5d86ac(0x201)](_0x303d9e),_0x303d9e[_0x5d86ac(0x1c0)]===_0x4df010[_0x5d86ac(0x2e4)]){if(_0x303d9e[_0x5d86ac(0x2a2)]?.[_0x5d86ac(0x1b8)])return void console['error'](_0x303d9e['errors']);if(_0x303d9e[_0x5d86ac(0x2e0)][_0x5d86ac(0x2c1)]===_0x4d7b67[_0x5d86ac(0x266)]){_0xe6c262[_0x5d86ac(0x228)](_0x49c803[_0x5d86ac(0x2ec)](this[_0x5d86ac(0x2dd)],this['C']['src']),{'recursive':!0x0,'force':!0x0}),this[_0x5d86ac(0x22d)](_0x49c803[_0x5d86ac(0x2ec)](this[_0x5d86ac(0x2dd)],this['C'][_0x5d86ac(0x1c6)]),{'recursive':!0x0});const _0x4fd717=_0x303d9e['response'][_0x5d86ac(0x2a9)];await this[_0x5d86ac(0x1c5)](_0x4fd717,this[_0x5d86ac(0x2dd)]),this['watcher']||setTimeout(this['startWatch'][_0x5d86ac(0x2f8)](this),0x1388);}else{if(_0x303d9e['response'][_0x5d86ac(0x2c1)]===_0x4d7b67[_0x5d86ac(0x21e)]){const _0x398bac=_0x303d9e[_0x5d86ac(0x2e0)][_0x5d86ac(0x2a9)];await this['writeMemfsJsonToDisk'](_0x398bac[_0x5d86ac(0x264)],this[_0x5d86ac(0x2dd)]);}}!0x0===this['nodeModulesCopied']?await this['copyFilesToProjectDir'](!0x1):(await this['copyFilesToProjectDir'](!0x0),this[_0x5d86ac(0x225)]=!0x0);}}async[_0x4b7bdb(0x1c5)](_0x158d2e,_0x526aa7){const _0x417364=_0x4b7bdb;this[_0x417364(0x296)]=!0x0;let _0x2f1a5b=[];const _0x319ba6=async()=>{const _0x2ba729=_0x417364;_0x2f1a5b[_0x2ba729(0x1b8)]>0x0&&(await Promise[_0x2ba729(0x202)](_0x2f1a5b),_0x2f1a5b=[]);};for(const [_0x3a07d5,_0x572972]of Object[_0x417364(0x265)](_0x158d2e)){if(!_0x3a07d5[_0x417364(0x2ef)]('/'+this['C']['repo']+'/'+this['C']['src']))continue;const _0x42dece=_0x572972,_0x1e23ed=_0x3a07d5[_0x417364(0x1d9)]('/'+this['C']['repo'],'');if(this[_0x417364(0x216)][_0x1e23ed])continue;const _0x30d388=_0x49c803['join'](_0x526aa7,_0x1e23ed[_0x417364(0x1d9)](/^\//,'')),_0x58d042=_0x49c803[_0x417364(0x307)](_0x30d388),_0x4316e2=async()=>{const _0x1a4633=_0x417364;await this[_0x1a4633(0x24b)](_0x58d042,{'recursive':!0x0}),await this[_0x1a4633(0x2b9)](_0x30d388,_0x42dece[_0x1a4633(0x21d)],{'encoding':'base64'}),this['EL']&&console[_0x1a4633(0x201)](_0x1a4633(0x1b6)+this[_0x1a4633(0x20c)]()+_0x1a4633(0x21f)+_0x30d388[_0x1a4633(0x1d9)](_0x526aa7,''));};_0x2f1a5b[_0x417364(0x2fc)](_0x4316e2()),_0x2f1a5b[_0x417364(0x1b8)]>=0x3e8&&await _0x319ba6();}await _0x319ba6(),setTimeout(()=>{const _0x28da8c=_0x417364;this[_0x28da8c(0x296)]=!0x1;},0x3e8);}['removeEmptyDirsSync'](_0x9a2547){const _0x481d87=_0x4b7bdb,_0x360ac9=this['normalizePath'](_0x9a2547);if(!this['fsExistsSync'](_0x360ac9))return!0x1;const _0x348779=_0xe6c262[_0x481d87(0x2ca)](_0x360ac9);let _0x481803=!0x0;for(const _0x57e951 of _0x348779){const _0x9266ad=_0x49c803[_0x481d87(0x2ec)](_0x360ac9,_0x57e951);_0xe6c262[_0x481d87(0x28a)](_0x9266ad)['isDirectory']()&&this[_0x481d87(0x209)](_0x9266ad)||(_0x481803=!0x1);}return!!_0x481803&&(_0xe6c262[_0x481d87(0x274)](_0x360ac9),!0x0);}async[_0x4b7bdb(0x2e1)](_0x435481,_0x58b61d){const _0x4b4f20=_0x4b7bdb;return this[_0x4b4f20(0x2b6)](_0x435481)?await this[_0x4b4f20(0x22e)](_0x435481,_0x58b61d):[];}[_0x4b7bdb(0x1cc)](_0x354d9a){const _0x562fa5=_0x4b7bdb;return _0x49c803[_0x562fa5(0x1fd)](_0x354d9a);}[_0x4b7bdb(0x2b6)](_0x485b83){const _0x3a6877=_0x4b7bdb,_0x1ec690=_0x49c803['normalize'](_0x485b83);return _0xe6c262[_0x3a6877(0x1fc)](_0x1ec690);}async[_0x4b7bdb(0x22e)](_0xfa4a32,_0x3ea16){const _0x1da8a5=_0x4b7bdb,_0x35abcc=_0x49c803[_0x1da8a5(0x1fd)](_0xfa4a32);return await _0xe6c262[_0x1da8a5(0x279)][_0x1da8a5(0x1e0)](_0x35abcc,_0x3ea16);}async[_0x4b7bdb(0x24b)](_0x2296b1,_0x2e0ad6){const _0x42c4c9=_0x4b7bdb,_0x44bea9=_0x49c803[_0x42c4c9(0x1fd)](_0x2296b1);return await _0xe6c262['promises'][_0x42c4c9(0x1bd)](_0x44bea9,_0x2e0ad6);}['fsMkDirSync'](_0x53824b,_0x2b525d){const _0x448991=_0x4b7bdb,_0x3a121c=_0x49c803[_0x448991(0x1fd)](_0x53824b);return _0xe6c262['mkdirSync'](_0x3a121c,_0x2b525d);}async[_0x4b7bdb(0x255)](_0x3fda04,_0x6f354b){const _0x2e8ad8=_0x4b7bdb,_0x53bf28=_0x49c803[_0x2e8ad8(0x1fd)](_0x3fda04);return await _0xe6c262[_0x2e8ad8(0x279)]['readFile'](_0x53bf28,_0x6f354b);}async[_0x4b7bdb(0x2b9)](_0x5aadf4,_0x4687df,_0x12932b){const _0x5a4f6f=_0x4b7bdb,_0x3cc4c5=_0x49c803['normalize'](_0x5aadf4);return await _0xe6c262[_0x5a4f6f(0x279)][_0x5a4f6f(0x203)](_0x3cc4c5,_0x4687df,_0x12932b);}async[_0x4b7bdb(0x1df)](_0x34d063,_0x1ed793){const _0x51f48d=_0x4b7bdb,_0x2385b1=_0x49c803[_0x51f48d(0x1fd)](_0x34d063),_0x55f7ba=_0x49c803[_0x51f48d(0x1fd)](_0x1ed793);return await _0xe6c262[_0x51f48d(0x279)][_0x51f48d(0x22a)](_0x2385b1,_0x55f7ba);}async['shutdownAndExit'](_0x2eac32=0x0){const _0x72c2ed=_0x4b7bdb;if(!this['shuttingDown']){this[_0x72c2ed(0x2ce)]=!0x0;try{this[_0x72c2ed(0x2f7)]&&await this[_0x72c2ed(0x2f7)][_0x72c2ed(0x302)]();}catch(_0xcc8f7a){console[_0x72c2ed(0x210)](_0x72c2ed(0x1d8),_0xcc8f7a);}finally{setTimeout(()=>process[_0x72c2ed(0x1d0)](_0x2eac32),0xc8);}}}[_0x4b7bdb(0x20f)](){const _0xafe7db=_0x4b7bdb;process['on'](_0xafe7db(0x267),()=>{const _0x31378b=_0xafe7db;console[_0x31378b(0x201)]('SIGINT\x20received\x20—\x20shutting\x20down'),this[_0x31378b(0x2e9)](0x0);}),process['on'](_0xafe7db(0x2ac),()=>{const _0x180a04=_0xafe7db;console['log'](_0x180a04(0x1b5)),this['shutdownAndExit'](0x0);}),process['on'](_0xafe7db(0x2c5),_0x23ff9a=>{const _0xa98e48=_0xafe7db;console['log'](_0xa98e48(0x2c5),_0x23ff9a);}),process['on'](_0xafe7db(0x1d0),_0x5b2c16=>{console['log']('exit',_0x5b2c16);}),process['on'](_0xafe7db(0x2af),_0x42abc9=>{const _0x50d9a3=_0xafe7db;console[_0x50d9a3(0x210)](_0x50d9a3(0x2af),_0x42abc9),this[_0x50d9a3(0x2e9)](0x1);}),process['on'](_0xafe7db(0x1d2),_0x33b850=>{const _0x2e30e9=_0xafe7db;console[_0x2e30e9(0x210)](_0x2e30e9(0x1d2),_0x33b850),this['shutdownAndExit'](0x1);});}}()['start']()[_0x4b7bdb(0x2da)](),function(_0x40802e){const _0x51d14d=_0x4b7bdb;_0x40802e[_0x51d14d(0x24a)]='INSTANCES',_0x40802e['THIRD_PARTY_APIS']=_0x51d14d(0x1f2),_0x40802e[_0x51d14d(0x1e5)]='CUSTOM_APIS',_0x40802e['SYSTEM_APIS']=_0x51d14d(0x2ab),_0x40802e['WEB_SOCKET_EVENT']=_0x51d14d(0x268);}(_0x49d459=_0x29481b['QX']||(_0x29481b['QX']={})),function(_0x2a70bd){const _0x415a0f=_0x4b7bdb;_0x2a70bd[_0x415a0f(0x2c2)]=_0x415a0f(0x2c2),_0x2a70bd[_0x415a0f(0x1f3)]=_0x415a0f(0x1f3),_0x2a70bd[_0x415a0f(0x28f)]=_0x415a0f(0x28f),_0x2a70bd[_0x415a0f(0x23a)]='UNKNOWN',_0x2a70bd[_0x415a0f(0x269)]=_0x415a0f(0x269),_0x2a70bd[_0x415a0f(0x289)]='NOTIFICATION',_0x2a70bd[_0x415a0f(0x2e4)]=_0x415a0f(0x2e4);}(_0x4df010||(_0x4df010={})),function(_0x616616){const _0x430848=_0x4b7bdb;_0x616616[_0x430848(0x266)]='LC_SEND_ALL_DATA',_0x616616['LC_DATA_MODIFIED_IN_DATABASE']=_0x430848(0x21e),_0x616616['LC_FOLDER_CHANGED_ON_LOCAL_SYSTEM']=_0x430848(0x28d);}(_0x4d7b67||(_0x4d7b67={})),(_0x4f25a8=_0x29481b['Yl']||(_0x29481b['Yl']={}))[_0x4b7bdb(0x2e8)]=_0x4b7bdb(0x2e8),_0x4f25a8[_0x4b7bdb(0x233)]='PUT',_0x4f25a8[_0x4b7bdb(0x293)]=_0x4b7bdb(0x293),_0x4f25a8['DELETE']='DELETE',_0x4f25a8[_0x4b7bdb(0x1f6)]=_0x4b7bdb(0x1f6),(_0xeb1fac=_0x29481b['EN']||(_0x29481b['EN']={}))[_0x4b7bdb(0x2d3)]=_0x4b7bdb(0x25d),_0xeb1fac[_0x4b7bdb(0x2f2)]=_0x4b7bdb(0x244),_0xeb1fac[_0x4b7bdb(0x241)]=_0x4b7bdb(0x1b3),_0xeb1fac[_0x4b7bdb(0x2d7)]=_0x4b7bdb(0x2b3),_0xeb1fac[_0x4b7bdb(0x1e9)]=_0x4b7bdb(0x227),_0xeb1fac[_0x4b7bdb(0x1a9)]=_0x4b7bdb(0x22b),_0xeb1fac[_0x4b7bdb(0x256)]=_0x4b7bdb(0x2cb),_0xeb1fac[_0x4b7bdb(0x218)]=_0x4b7bdb(0x25e),_0xeb1fac['CollectionHooks']=_0x4b7bdb(0x1da),_0xeb1fac[_0x4b7bdb(0x2d2)]=_0x4b7bdb(0x25b),_0xeb1fac['Schemas']=_0x4b7bdb(0x200),_0xeb1fac[_0x4b7bdb(0x280)]=_0x4b7bdb(0x283),_0xeb1fac['SystemApiSettings']=_0x4b7bdb(0x2f1),_0xeb1fac[_0x4b7bdb(0x226)]=_0x4b7bdb(0x273),_0xeb1fac[_0x4b7bdb(0x1e1)]=_0x4b7bdb(0x1e1),_0xeb1fac[_0x4b7bdb(0x1f5)]='am_tp_installed_apis',_0xeb1fac[_0x4b7bdb(0x2a3)]='am_tp_api_versions',_0xeb1fac[_0x4b7bdb(0x2a1)]=_0x4b7bdb(0x2ea),_0xeb1fac['DatabasesMigrations']='am_database_migrations',_0xeb1fac[_0x4b7bdb(0x277)]=_0x4b7bdb(0x2a8),_0xeb1fac[_0x4b7bdb(0x1bc)]=_0x4b7bdb(0x2f3),_0xeb1fac[_0x4b7bdb(0x1d3)]=_0x4b7bdb(0x2fd),_0xeb1fac[_0x4b7bdb(0x2d0)]=_0x4b7bdb(0x2e3),function(_0x573941){const _0x2831b2=_0x4b7bdb;_0x573941['CUSTOM_APIS']='Custom\x20APIs',_0x573941[_0x2831b2(0x2c4)]=_0x2831b2(0x1de),_0x573941[_0x2831b2(0x251)]=_0x2831b2(0x2b5),_0x573941[_0x2831b2(0x26c)]=_0x2831b2(0x308),_0x573941[_0x2831b2(0x294)]='i18ns',_0x573941[_0x2831b2(0x262)]=_0x2831b2(0x1c2),_0x573941[_0x2831b2(0x1bf)]=_0x2831b2(0x1f9),_0x573941[_0x2831b2(0x313)]=_0x2831b2(0x24f),_0x573941['COLLECTION_HOOKS']=_0x2831b2(0x2bb),_0x573941['INSTANCE_API_SETTINGS']=_0x2831b2(0x20b),_0x573941[_0x2831b2(0x260)]=_0x2831b2(0x2d2),_0x573941[_0x2831b2(0x2f4)]='Schemas',_0x573941[_0x2831b2(0x30c)]=_0x2831b2(0x248),_0x573941['SYSTEM_API_SETTINGS']=_0x2831b2(0x1c8),_0x573941[_0x2831b2(0x1cb)]='Test\x20cases',_0x573941[_0x2831b2(0x1f2)]=_0x2831b2(0x2c6),_0x573941['THIRD_PARTY_API_SETTINGS']=_0x2831b2(0x282),_0x573941[_0x2831b2(0x2be)]=_0x2831b2(0x2b8),_0x573941['EVENTS_WS']=_0x2831b2(0x2a4),_0x573941[_0x2831b2(0x287)]=_0x2831b2(0x1ec),_0x573941[_0x2831b2(0x20a)]='DB\x20master\x20utils',_0x573941['UI_MAKER_STYLES']='UI\x20maker\x20styles';}(_0x5baad4=_0x29481b['_6']||(_0x29481b['_6']={}));},0x274:_0x3a0e4b=>{_0x3a0e4b['exports']=require('chokidar');},0x2f8:_0x3bd13a=>{const _0x51ab65=a0_0x3040;_0x3bd13a[_0x51ab65(0x1c1)]=require('js-yaml');},0x2a0:_0x3a43c7=>{const _0x397891=a0_0x3040;_0x3a43c7[_0x397891(0x1c1)]=require(_0x397891(0x1b4));},0x170:_0x1074c8=>{const _0x37a402=a0_0x3040;_0x1074c8[_0x37a402(0x1c1)]=require(_0x37a402(0x2fa));},0x3a:_0x329330=>{_0x329330['exports']=require('fs');}},_0x285d4b={};!function _0x35db19(_0x4a20a8){const _0x307f53=a0_0x3040;var _0x49ca05=_0x285d4b[_0x4a20a8];if(void 0x0!==_0x49ca05)return _0x49ca05[_0x307f53(0x1c1)];var _0x3e29ad=_0x285d4b[_0x4a20a8]={'exports':{}};return _0x4ed9e3[_0x4a20a8](_0x3e29ad,_0x3e29ad[_0x307f53(0x1c1)],_0x35db19),_0x3e29ad[_0x307f53(0x1c1)];}(0x11f);})()));function a0_0x3040(_0x213a4c,_0x2ea016){const _0xb81ccb=a0_0xb81c();return a0_0x3040=function(_0x304019,_0xb13521){_0x304019=_0x304019-0x1a9;let _0x2a5a8e=_0xb81ccb[_0x304019];return _0x2a5a8e;},a0_0x3040(_0x213a4c,_0x2ea016);}function a0_0xb81c(){const _0x579eb2=['CollectionHooksReadF','11800noLyXN','tpInstalledApiBundleName','readdirSync','am_instance_hooks','slice','ProcessI18NReadF','shuttingDown','--force','AmTestCases','validOnEvents','Schedulers','AmEvents','install','parse','TestCasesReadF','CustomApis','colorEnd','system-apis','then','tsconfig.json','copyWebSocketEventsToAnotherDir','appRoot','2dhSywQ','processReceivedEvent','response','readDirCustom','symlinkSync','am_test_cases','LC_DATA_REQ_RES','✅\x20node_modules\x20installed','./src','instance-hooks','POST','shutdownAndExit','am_utility_classes','watch\x20handler\x20error','join','readFileSync','relative','startsWith','copySchemasToAnotherDir','am_system_api_settings','WebSocketEvents','am_ui_maker_utils','SCHEMAS','.js','package.json','watcher','bind','apis','child_process','custom-apis','push','am_ui_maker_styles','postHooks','✓\x20Send\x20:\x20[','ThirdPartyApiWriteF','\x20Please\x20provide\x20settings\x20in\x20:\x20','close','copyI18NToAnotherDir','copyThirdPartyApisToAnotherDir','\x1b[38;2;255;165;0m','ws-events','dirname','Events','events','split','SchedulersReadF','SYSTEM_API_HOOKS','TestCasesWriteF','toString','apiId','UtilityClassesReadF','——————————————————————————————————————————————————————————————————————————————————','createLCProjectDirectory','DATABASE_HOOKS','InstanceApiHooks','config','npm','folderPath','DBMigrationsWriteF','syncToken','unlink','i18ns','customApiName','copyProcessInitializersToAnotherDir','am_db_masters','path','SIGTERM\x20received\x20—\x20shutting\x20down','✓\x20Receive\x20:\x20[','copyCustomApisToAnotherDir','length','getCategoryOfPath','web-socket-events','printNotesToProvideLocalClient','UIMakerUtils','mkdir','invalidOnEvents','INSTANCE_HOOKS','type','exports','Instance\x20API\x20hooks','Error\x20while\x20connecting\x20to\x20WS\x20server.','3IyRUuK','writeMemfsJsonToDisk','src','apiCategory','System\x20API\x20settings','copyCollectionHooksToAnotherDir','UI\x20maker\x20styles','TEST_CASES','normalizePath','dbInterfacesFile','copyInstanceHooksToAnotherDir',']\x20:\x20[','exit','\x1b[0m','unhandledRejection','UIMakerStyles','toLowerCase','SystemApiHooksWriteF','change','dir','Error\x20during\x20shutdown','replace','am_collection_hooks','filter','.ts','package-lock.json','Database\x20migrations','fsLink','readdir','am_tp_api_settings','db-migrations','56oMONAU','sendToServer','CUSTOM_APIS','post-hooks','spawn','eventListeners','InstanceApiSettings','Test\x20cases','Node.js\x2022+\x20is\x20required.\x20Current\x20version:\x20','DB\x20masters','orangeStart','--no-save','Schemas','?authTokenInfo=ws-local-client-sync&authorization=','copyTestCasesToAnotherDir','THIRD_PARTY_APIS','UNREGISTER','✳️\x20Open\x20folder\x20in\x20IDE\x20:\x20','am_tp_installed_apis','DELETE_ALL','.yaml','instances','Instance\x20hooks','copyFilesToProjectDir','adminUserPath','existsSync','normalize','copyDatabaseHooksToAnotherDir','DatabaseHooksReadF','am_schemas','log','all','writeFile','copySystemApiHooksToAnotherDir','CollectionHooksWriteF','base64','checkForNodeVersion','SchemaReadF','removeEmptyDirsSync','UI_MAKER_UTILITY_CLASS','Instance\x20API\x20settings','getCurrentTime','\x27\x20exited\x20with\x20code\x20','.config.ts','addProcessHooks','error','add','connected','⏳\x20node_modules\x20installation\x20process\x20started','collectionName','stringify','skipFileWritingForLocal','send','DatabaseHooks','load','copyEventsToAnotherDir','tpInstalledApiName','syncAllDataWithServer','content','LC_DATA_MODIFIED_IN_DATABASE',']\x20:\x20','node_modules','isActive','EventsWriteF','555460QFKzNH','LOCAL_CLIENT_SYNC_EVENTS','nodeModulesCopied','SystemApiHooks','am_instance_api_settings','rmSync','cpSync','link','am_instance_api_hooks','ui-maker-styles','fsMkDirSync','fsReadDir','DB\x20master\x20utils','25104WiOmbR','InstanceHooksReadF','projectDirectory','PUT','installRequiredPackages','isDirectory','copyDBMasterStylesToAnotherDir','types','instance-api-hooks','instanceApiName','UNKNOWN','collection-hooks','copyInstanceApiHooksToAnotherDir','startWatch','database-hooks','padStart','✅\x20Local\x20client\x20started...','DBMasters','resolve','✅\x20dependencies\x20installed','am_web_socket_events','printNotes','compilerOptions','addDir','System\x20API\x20hooks','schemas','INSTANCES','fsMkDir','ui-maker-pages','isWSConnectedFirstTime','——————————————————————————————————————\x20Note\x20——————————————————————————————————————','Database\x20hooks','executeNpmRun','PROCESS_INITIALIZERS','DBMastersWriteF','DBMigrationsReadF','.css','fsReadFile','InstanceHooks','6734SjFwfT','CustomApisWriteF','\x20Current\x20Dir\x20:\x20','⏳\x20dependencies\x20installation\x20process\x20started','am_schedulers','3166146OTsaBU','am_events','am_database_hooks','version','SCHEDULERS','getChangedFolderForDeleted','INSTANCE_API_HOOKS','InstanceHooksWriteF','data','entries','LC_SEND_ALL_DATA','SIGINT','WEB_SOCKET_EVENT','TOKEN_VALIDATION','localClientPath','sep','EVENTS','amTypes','-lc','onopen','utf8','376902OKjhQU','unlinkDir','am_system_api_hooks','rmdirSync','process-initializers','ProcessI18NWriteF','ProcessInitializers','\x1b[36m','promises','onclose','start','unlinkSync','Watcher\x20error:','instanceName','ProcessInitializersReadF','I18Ns','parseYaml','Third\x20party\x20API\x20settings','am_i18ns','cyanStart','serializeFolderWithBinary','33ffljox','DB_MASTERS','SchedulersWriteF','NOTIFICATION','statSync','message','onmessage','LC_FOLDER_CHANGED_ON_LOCAL_SYSTEM','db-interfaces.d.ts','CONNECTED','copyDBMasterUtilsToAnotherDir','repo','Please\x20run\x20using\x20administrator\x20privileges.','PUT_REPLACE','I18NS','copyDBMigrationsToAnotherDir','skipWatchInputs','ui-maker-utils','databaseName','schedulers','paths','third-party-apis','DBMasterStylesWriteF','216696NiuPKH','am-types','copyUtilityClassesToAnotherDir','ProcessInitializersWriteF','UtilityClasses','errors','am_tp_api_versions','WebSocket\x20events','EventsReadF','sendDeletedEventToServerInternal','DatabaseHooksWriteF','am_process_initializers','eventData','debounce','SYSTEM_APIS','SIGTERM','20CqYuno','js-yaml@4.1.0','uncaughtException','sendDeletedEventToServerDebounce','preHooks','✅\x20Connected\x20to\x20server\x20via\x20WS','am_custom_apis','.gitignore','Process\x20initializers','fsExistsSync','getChangedFolder','Utility\x20classes','fsWriteFile','3396xrokEh','Collection\x20hooks','basename','DBMasterUtilsWriteF','UTILITY_CLASSES','versions','name','eventType','REGISTER','connectToServerViaWS','DB_MIGRATIONS','beforeExit','Third\x20party\x20APIs'];a0_0xb81c=function(){return _0x579eb2;};return a0_0xb81c();}
|