UNPKG

@taazkareem/clickup-mcp-server

Version:

ClickUp MCP Server - Powering AI Agents with full ClickUp task, document, and chat management capabilities.

2 lines 17 kB
#!/usr/bin/env node function a0_0x3fc2(_0x27eba4,_0x46c596){_0x27eba4=_0x27eba4-0x1c8;const _0x1301ab=a0_0x1301();let _0x3fc2c2=_0x1301ab[_0x27eba4];if(a0_0x3fc2['dOsBay']===undefined){var _0x1ce947=function(_0x4fa3ec){const _0x2a9b78='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x27ad0d='',_0x230bfa='';for(let _0x11fbb9=0x0,_0x21b067,_0x9c3438,_0x16f55c=0x0;_0x9c3438=_0x4fa3ec['charAt'](_0x16f55c++);~_0x9c3438&&(_0x21b067=_0x11fbb9%0x4?_0x21b067*0x40+_0x9c3438:_0x9c3438,_0x11fbb9++%0x4)?_0x27ad0d+=String['fromCharCode'](0xff&_0x21b067>>(-0x2*_0x11fbb9&0x6)):0x0){_0x9c3438=_0x2a9b78['indexOf'](_0x9c3438);}for(let _0x48d775=0x0,_0x470d30=_0x27ad0d['length'];_0x48d775<_0x470d30;_0x48d775++){_0x230bfa+='%'+('00'+_0x27ad0d['charCodeAt'](_0x48d775)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x230bfa);};a0_0x3fc2['ueKeIU']=_0x1ce947,a0_0x3fc2['YzfSyw']={},a0_0x3fc2['dOsBay']=!![];}const _0x2cd1b8=_0x1301ab[0x0],_0x492da5=_0x27eba4+_0x2cd1b8,_0x392dc9=a0_0x3fc2['YzfSyw'][_0x492da5];return!_0x392dc9?(_0x3fc2c2=a0_0x3fc2['ueKeIU'](_0x3fc2c2),a0_0x3fc2['YzfSyw'][_0x492da5]=_0x3fc2c2):_0x3fc2c2=_0x392dc9,_0x3fc2c2;}function a0_0x1301(){const _0x371b9a=['u0PHAgu','su5u','sgvHCca','C2vK','AxPHDgK','Aw4Gzw4','ihjLywq','z0XqAwy','rsbZzxi','sNfiAMS','AxjVBM0','oIbvBMG','Ccbnq1a','nZqZntvQCLL4q0C','vw5Oyw4','Aw4Uy2e','yKTYqwS','igLUDgu','Aw9U','C3mUC3q','C3rKAw4','B2f1DgG','ywLSzwq','BM93','y2fntM8','BIbJBg8','Ac9HDxq','zw50','CM91BMq','ndu0ntu1mKr0BezAAG','x2nSB3m','EvrKt0m','q1aGC3q','tM8GDhi','CIbYDw4','DgfYDgK','CNzLCI4','BwnWu2u','rxjYB3i','l29HDxq','B25JBg8','vfaGC2u','B3nL','Cg9YDf8','DcbWCM8','Aw5Niem','nJCZmJC0n3bnv3nODq','Aw5PDgK','EsbTB2q','BMCGz3i','Bg9Zzwq','qwXSq28','q2XVC2K','Aw9UCW','zxj2zxi','Ag9YAxO','l2zHDMK','ywjSzwq','rfD3sui','igfYzsa','zMjUzxa','ywXPEMK','z2H0rxG','BwvZC2e','EgfTs0q','B1bMu2q','zYbtsuC','zwPLy3q','ANnbEhy','B24TC2u','CNr1Cca','uvLnvfC','mtuXrvfOCwT4','zw5HyMW','zxnrsMu','DgLVBIa','y2f0y2G','yw5ZCg8','z2LdDwu','CIbZDge','z2H0ieu','u0Lhveu','ChjVy2u','vw5Jyxu','EvvZywC','y2XLyxi','ihrVie0','C2X2DgO','ifnLCNy','Acbtveq','zgLUigu','re90y2y','zgLUigm','zxiGuhi','zxiGAw4','ue9Ptxq','zw5K','su8Gyw4','tunqihq','DgrVD24','CYbHBMq','zvziz2S','mZy0veveswTM','BMCGC2u','ig1HAw4','yw5KBgu','sfruuca','B3j0igm','C3rHy2S','sgXks3C','y29TCgW','y3rPBMC','Ahr0CdO','EgnLChq','BgLJA1u','zgLZy28','rMf0ywW','tvD3BxG','zNvUy3q','AgvHCfu','y0XZuKi','ihnLCNy','B3jT','icHIB3q','ywWSihm','rs1VBMW','zgXLzca','DxaGAw4','BM5Ly3q','CuH0vxO','Axn0zxi','D2LOsKi','y2XVC2u','ywXPEMe','C0TgBKy','B21WBgu','BNnLigK','BcbZAhu','sg5qvNe','Aw9Uigy','ihnPz24','zgLVihq','Ac9YzwC','u2H1Dgq','ywzSvLG','nZa5mtu3nNrJteXsEG','zsbYzxe','BgvKkq','B3DUigu','uJOG','twfPBIa','zvPAz0W','x2vUza','ywXPDMu','Dw5Jyxu','CNzLCLu','DMvYC2K','DxrOB3i','lY9SB2m','igr1CMK','lY53zwW','ywnLzNu','zgLZywi','C3rHCNq','DwvZDhm','zxHPDa','B3j0','Bc1RBM8','s2vLCc0','BML0Awe','Aw4Gy2W','odmZmZCWnKPxwKfdAa','zhvYAw4','CNnZ','q29UBMu','yvj0DgG','u2vYDMu','zvntrq','BMLUzYa','nZe4mJi0m1zcEgvuCa','A2XYywq','uMvQzwm','qvbVvM4','DhjHBNm','BMnLigm','y29UBMu','y2vWDgK','CNjVCIa','qMfJA2C','D24VB2e','DgvK','yMLsB0i','yw5Kigm','wfnQDKe','DMvY','wwHtwMS','vfvqieu','Aw4Gu1m','wuHKC2q','uMvJzwK','CNzHBca','Aw4Okq','lI4U','CNzLCG','zYbZDgq','ifvosee','vevstq','q0fTsxu','u0Lhsu4','zxjYB3i','sw5PDgK','D3zgvu4','Cg9YDa','B3DUigm','CIbJBg8','Esb0BYa','BMCGu1m','BMrLza','Bunhse0','igXPy2u','Dw5Oyw4','DMvKia','BgL6yxq','DMvYigu','zeHuAe8','AxrPywW','yxjJAa','C3rKAw8','zxrLic0','DgnO','DxnHz2u','ignVBM4','sM1tCLu','u3rHCNq','BwvTB3i','zcbtu0u','AxPLzca','CNzLCIa','ywXOB3m','rKfuquW','mtCWnJjjEuL2AgG','tunqihm','Ac90B2S','ifnuqvi','tKrmruq'];a0_0x1301=function(){return _0x371b9a;};return a0_0x1301();}const a0_0x77a34c=a0_0x3fc2;(function(_0x2ddc3f,_0x29125a){const _0x40f49e=a0_0x3fc2,_0x3b2a2d=_0x2ddc3f();while(!![]){try{const _0x512837=parseInt(_0x40f49e(0x235))/0x1*(parseInt(_0x40f49e(0x1e8))/0x2)+parseInt(_0x40f49e(0x20a))/0x3+-parseInt(_0x40f49e(0x253))/0x4*(parseInt(_0x40f49e(0x1fa))/0x5)+-parseInt(_0x40f49e(0x298))/0x6+-parseInt(_0x40f49e(0x21b))/0x7+parseInt(_0x40f49e(0x27e))/0x8+parseInt(_0x40f49e(0x2a0))/0x9;if(_0x512837===_0x29125a)break;else _0x3b2a2d['push'](_0x3b2a2d['shift']());}catch(_0x4cfee8){_0x3b2a2d['push'](_0x3b2a2d['shift']());}}}(a0_0x1301,0xbf5be));import{StdioServerTransport}from'@modelcontextprotocol/sdk/server/stdio.js';import{createMcpServer}from'./server.js';import{createServices}from'./services/shared.js';import{info,error,sessionStore}from'./logger.js';import a0_0x50b44d,{validateConfiguration}from'./config.js';import{dirname}from'path';import{fileURLToPath}from'url';import{startSSEServer}from'./sse_server.js';import{initializeLicense}from'./license.js';const __dirname=dirname(fileURLToPath(import.meta.url));let httpServer=null,keepAliveInterval=null,memoryLogInterval=null,isShuttingDown=![];process['on'](a0_0x77a34c(0x287)+a0_0x77a34c(0x22b)+a0_0x77a34c(0x2a7)+'on',_0x4ea3cd=>{const _0x17ef69=a0_0x77a34c,_0x336712={'bKrAk':_0x17ef69(0x240)+_0x17ef69(0x23d)+_0x17ef69(0x25e)+_0x17ef69(0x1ff)};error(_0x336712[_0x17ef69(0x1fd)],{'message':_0x4ea3cd[_0x17ef69(0x22c)+'ge'],'stack':_0x4ea3cd['stack']});}),process['on'](a0_0x77a34c(0x1d4)+'dledR'+a0_0x77a34c(0x230)+'ion',(_0x338b6e,_0x5dfa15)=>{const _0x1a1a38=a0_0x77a34c;error(_0x1a1a38(0x1fb)+_0x1a1a38(0x26b)+_0x1a1a38(0x2a2)+'tion',{'reason':_0x338b6e});});async function startStdioServer(){const _0x5d05f1=a0_0x77a34c,_0x41decc={'HlJKw':_0x5d05f1(0x24f)+'ransp'+_0x5d05f1(0x258)+_0x5d05f1(0x21f),'giCue':function(_0x13cd05,_0x2dc481){return _0x13cd05(_0x2dc481);},'klrad':_0x5d05f1(0x2a4)+_0x5d05f1(0x218)+_0x5d05f1(0x271),'pEPIo':'serve'+'r_clo'+'se','aflVX':_0x5d05f1(0x201)+_0x5d05f1(0x20b)+'e','HnPVq':function(_0x484288,_0x3181ee){return _0x484288(_0x3181ee);},'JqHjk':_0x5d05f1(0x260)+_0x5d05f1(0x26d),'RuIia':_0x5d05f1(0x1e1)+_0x5d05f1(0x21a)+_0x5d05f1(0x25f)+_0x5d05f1(0x1f9)+_0x5d05f1(0x245)+_0x5d05f1(0x24a)+'emium'+_0x5d05f1(0x2b7),'cLsRB':function(_0x34ae21,_0x2e20c4){return _0x34ae21(_0x2e20c4);},'POiMt':function(_0x15a251,_0x42b616,_0xd81441,_0x19e2e3){return _0x15a251(_0x42b616,_0xd81441,_0x19e2e3);},'caMNo':'close','sKFnF':_0x5d05f1(0x24d),'XSjvA':'Serve'+_0x5d05f1(0x23c)+_0x5d05f1(0x233)+_0x5d05f1(0x25b)+_0x5d05f1(0x1dc)+_0x5d05f1(0x1f3)+_0x5d05f1(0x1cf)+'handl'+_0x5d05f1(0x27f)+_0x5d05f1(0x291)},_0x7e97db={'sessionId':_0x5d05f1(0x1db),'startTime':Date[_0x5d05f1(0x204)](),'clickupApiTime':0x0,'apiCallCount':0x0};await sessionStore['run'](_0x7e97db,async()=>{const _0x595713=_0x5d05f1,_0x425c38={'VhdXs':function(_0xef40f,_0x757307){const _0xb0a532=a0_0x3fc2;return _0x41decc[_0xb0a532(0x23b)](_0xef40f,_0x757307);},'eVHgk':_0x41decc['pEPIo'],'HkfTC':function(_0x523d7a,_0x2a9c53){return _0x523d7a(_0x2a9c53);},'eZZgL':_0x41decc[_0x595713(0x27d)],'wihJB':_0x595713(0x23f)+'ss.st'+_0x595713(0x247)+_0x595713(0x1d1),'qHtUz':function(_0x27c7e9,_0x3e34ce){return _0x27c7e9(_0x3e34ce);},'biRoB':function(_0x2b9f86,_0x384f48){const _0x5f0df9=_0x595713;return _0x41decc[_0x5f0df9(0x277)](_0x2b9f86,_0x384f48);},'oPfSd':_0x41decc[_0x595713(0x1f6)]};info(_0x41decc['RuIia']),info(_0x595713(0x29d)+'r\x20env'+_0x595713(0x1f7)+_0x595713(0x208),{'pid':process['pid'],'node':process[_0x595713(0x289)+'on'],'os':process['platf'+_0x595713(0x267)],'arch':process[_0x595713(0x1da)]}),info(_0x595713(0x1ca)+'alizi'+_0x595713(0x254)+'rvice'+_0x595713(0x251)+'\x20serv'+'er');const _0x390dc0=await _0x41decc[_0x595713(0x265)](createServices,a0_0x50b44d),_0xc204b9=a0_0x50b44d[_0x595713(0x212)+_0x595713(0x288)+'rl']||_0x595713(0x25d)+_0x595713(0x28b)+_0x595713(0x1e6)+'t:'+(a0_0x50b44d[_0x595713(0x1cc)]||0xc9f),_0x386d6f={'type':_0x595713(0x202)+'2','resource':_0xc204b9,'authorization_servers':[_0xc204b9],'issuer':_0xc204b9,'authorization_endpoint':_0xc204b9+(_0x595713(0x214)+_0x595713(0x207)+_0x595713(0x224)+'e'),'token_endpoint':_0xc204b9+(_0x595713(0x214)+_0x595713(0x1ea)+'en'),'registration_endpoint':_0xc204b9+(_0x595713(0x214)+_0x595713(0x27b)+_0x595713(0x26f)),'authorization_url':_0xc204b9+(_0x595713(0x214)+'h/aut'+'horiz'+'e'),'token_url':_0xc204b9+(_0x595713(0x214)+'h/tok'+'en'),'registration_url':_0xc204b9+(_0x595713(0x214)+_0x595713(0x27b)+_0x595713(0x26f)),'discoveryUrl':_0xc204b9+(_0x595713(0x28d)+_0x595713(0x294)+_0x595713(0x2aa)+'uth-a'+_0x595713(0x28a)+_0x595713(0x1f1)+_0x595713(0x232)+_0x595713(0x2b8))},{server:_0x3896b2}=_0x41decc[_0x595713(0x24c)](createMcpServer,_0x390dc0,_0x386d6f,_0xc204b9+(_0x595713(0x225)+'con.i'+'co'));_0x41decc[_0x595713(0x23b)](info,_0x595713(0x29b)+_0x595713(0x25c)+_0x595713(0x243)+_0x595713(0x20d)+_0x595713(0x27a)+'ransp'+_0x595713(0x293));const _0x261d49=new StdioServerTransport();await _0x3896b2[_0x595713(0x2a6)+'ct'](_0x261d49),_0x3896b2[_0x595713(0x215)+'se']=async()=>{const _0x23d2ed=_0x595713;_0x425c38['VhdXs'](info,_0x23d2ed(0x1e9)+_0x23d2ed(0x223)+_0x23d2ed(0x1df)+'ectio'+_0x23d2ed(0x206)+_0x23d2ed(0x1f0)),await shutdown(_0x425c38[_0x23d2ed(0x252)]);},_0x261d49[_0x595713(0x215)+'se']=async()=>{const _0x5205fb=_0x595713;info(_0x41decc[_0x5205fb(0x25a)]),await _0x41decc[_0x5205fb(0x23b)](shutdown,_0x41decc[_0x5205fb(0x2a1)]);},process[_0x595713(0x201)]['on'](_0x41decc[_0x595713(0x205)],()=>{const _0x1a4797=_0x595713;info(_0x1a4797(0x23f)+_0x1a4797(0x200)+_0x1a4797(0x249)+'losed'),_0x425c38['HkfTC'](shutdown,_0x425c38[_0x1a4797(0x284)])[_0x1a4797(0x239)](_0x39a703=>error('Shutd'+_0x1a4797(0x281)+_0x1a4797(0x2a8)+_0x1a4797(0x299)+_0x1a4797(0x2b9)+_0x1a4797(0x297)+_0x1a4797(0x217),{'err':_0x39a703}));}),process['stdin']['on'](_0x41decc[_0x595713(0x273)],()=>{const _0x2d2b55=_0x595713;info(_0x425c38[_0x2d2b55(0x270)]),_0x425c38[_0x2d2b55(0x26e)](shutdown,_0x2d2b55(0x201)+_0x2d2b55(0x285))[_0x2d2b55(0x239)](_0x1e4c6a=>error(_0x2d2b55(0x27c)+_0x2d2b55(0x281)+_0x2d2b55(0x2a8)+_0x2d2b55(0x299)+_0x2d2b55(0x2b9)+_0x2d2b55(0x1f2)+'d',{'err':_0x1e4c6a}));}),process['on']('disco'+_0x595713(0x26d),()=>{const _0x124b20=_0x595713;_0x425c38[_0x124b20(0x26e)](info,'Paren'+_0x124b20(0x219)+'cess\x20'+_0x124b20(0x260)+'nnect'+'ed'),_0x425c38[_0x124b20(0x2ac)](shutdown,_0x425c38[_0x124b20(0x22e)])[_0x124b20(0x239)](_0x3ca244=>error('Shutd'+'own\x20e'+_0x124b20(0x2a8)+_0x124b20(0x299)+'g\x20dis'+'conne'+'ct',{'err':_0x3ca244}));}),_0x41decc[_0x595713(0x277)](info,_0x41decc[_0x595713(0x2ae)]);});}async function main(){const _0xb5ef35=a0_0x77a34c,_0x42ed15={'jsAxv':_0xb5ef35(0x2a9)+_0xb5ef35(0x209)+_0xb5ef35(0x1d3)+_0xb5ef35(0x275)+_0xb5ef35(0x296)+_0xb5ef35(0x1d6)+_0xb5ef35(0x278)+_0xb5ef35(0x203),'MWwmx':function(_0x2d787f,_0x27b4f8,_0x1a6aef){return _0x2d787f(_0x27b4f8,_0x1a6aef);},'SJahe':function(_0x52a8f6,_0x1cebc4){return _0x52a8f6/_0x1cebc4;},'DVtjv':'Start'+_0xb5ef35(0x21a)+'lickU'+_0xb5ef35(0x1f9)+_0xb5ef35(0x245)+'er\x20ma'+_0xb5ef35(0x2b6),'DWwIB':function(_0x4372d7,_0x12b947){return _0x4372d7(_0x12b947);},'JmSrU':function(_0x3599ab){return _0x3599ab();},'esQJe':function(_0x1ba9d6,_0xede0cb,_0x24998a){return _0x1ba9d6(_0xede0cb,_0x24998a);},'QYMTW':function(_0x137fc2,_0x4e42cf){return _0x137fc2(_0x4e42cf);},'dHThO':_0xb5ef35(0x1ca)+_0xb5ef35(0x22a)+'ng\x20St'+'dio\x20s'+_0xb5ef35(0x223),'gLPif':function(_0x310cd7){return _0x310cd7();},'aRtth':'Stdio'+_0xb5ef35(0x266)+_0xb5ef35(0x24b)+_0xb5ef35(0x1d9)+_0xb5ef35(0x1e4)+_0xb5ef35(0x2ad)+'onnec'+_0xb5ef35(0x2ab),'CAmIu':_0xb5ef35(0x29d)+_0xb5ef35(0x20f)+_0xb5ef35(0x29f)+_0xb5ef35(0x2b2)+_0xb5ef35(0x26a)+_0xb5ef35(0x21d)+'e','YhSZk':_0xb5ef35(0x283)+_0xb5ef35(0x21c)+_0xb5ef35(0x272)+_0xb5ef35(0x238)+'seque'+_0xb5ef35(0x2a5)+_0xb5ef35(0x274)+'te','WMnCD':_0xb5ef35(0x213)+_0xb5ef35(0x28c)+_0xb5ef35(0x254)+_0xb5ef35(0x1e5)+_0xb5ef35(0x290)+_0xb5ef35(0x26c)+_0xb5ef35(0x255)+'()'};try{info(_0x42ed15['DVtjv']),validateConfiguration(),initializeLicense()[_0xb5ef35(0x239)](_0xcf313f=>{const _0x34d94b=_0xb5ef35;error(_0x42ed15[_0x34d94b(0x231)],{'message':_0xcf313f[_0x34d94b(0x22c)+'ge']});});a0_0x50b44d[_0xb5ef35(0x236)+_0xb5ef35(0x29e)]&&(_0x42ed15[_0xb5ef35(0x227)](info,_0xb5ef35(0x1ca)+_0xb5ef35(0x22a)+_0xb5ef35(0x1d0)+_0xb5ef35(0x1f5)+_0xb5ef35(0x2af)),httpServer=await _0x42ed15[_0xb5ef35(0x1e0)](startSSEServer),memoryLogInterval=_0x42ed15[_0xb5ef35(0x237)](setInterval,()=>{const _0x5ec7b7=_0xb5ef35,_0x4c714=process[_0x5ec7b7(0x1e2)+_0x5ec7b7(0x241)+'e']();_0x42ed15[_0x5ec7b7(0x262)](info,_0x5ec7b7(0x1ef)+_0x5ec7b7(0x1de),{'heapUsedMB':Math[_0x5ec7b7(0x209)](_0x42ed15['SJahe'](_0x4c714[_0x5ec7b7(0x264)+_0x5ec7b7(0x1f0)],0x400)/0x400),'heapTotalMB':Math[_0x5ec7b7(0x209)](_0x42ed15[_0x5ec7b7(0x1ed)](_0x4c714['heapT'+'otal']/0x400,0x400)),'rssMB':Math[_0x5ec7b7(0x209)](_0x42ed15['SJahe'](_0x42ed15[_0x5ec7b7(0x1ed)](_0x4c714[_0x5ec7b7(0x29a)],0x400),0x400)),'externalMB':Math[_0x5ec7b7(0x209)](_0x4c714['exter'+'nal']/0x400/0x400)});},0x5*0x3c*0x3e8));if(a0_0x50b44d[_0xb5ef35(0x236)+'eStdi'+'o'])_0x42ed15[_0xb5ef35(0x234)](info,_0x42ed15[_0xb5ef35(0x1d8)]),await _0x42ed15[_0xb5ef35(0x1f4)](startStdioServer),_0x42ed15[_0xb5ef35(0x234)](info,_0x42ed15[_0xb5ef35(0x29c)]);else a0_0x50b44d['enabl'+_0xb5ef35(0x29e)]?(_0x42ed15[_0xb5ef35(0x234)](info,_0x42ed15[_0xb5ef35(0x2bc)]),keepAliveInterval=_0x42ed15[_0xb5ef35(0x262)](setInterval,()=>{},0xea60)):(error(_0xb5ef35(0x20e)+_0xb5ef35(0x23a)+'rt\x20en'+_0xb5ef35(0x226)+_0xb5ef35(0x268)+_0xb5ef35(0x246)+_0xb5ef35(0x24e)+_0xb5ef35(0x1e3)+_0xb5ef35(0x228)+_0xb5ef35(0x28f)+_0xb5ef35(0x280)),process[_0xb5ef35(0x292)](0x1));info(_0x42ed15[_0xb5ef35(0x2b0)]);}catch(_0x30ffd2){error(_0x42ed15['WMnCD'],{'message':_0x30ffd2[_0xb5ef35(0x22c)+'ge'],'stack':_0x30ffd2[_0xb5ef35(0x259)]}),console['error'](_0xb5ef35(0x1e7)+_0xb5ef35(0x1eb)+_0xb5ef35(0x2b1)+'RROR:'+'\x20'+_0x30ffd2[_0xb5ef35(0x22c)+'ge']);if(_0x30ffd2[_0xb5ef35(0x259)])console[_0xb5ef35(0x1c9)](_0x30ffd2[_0xb5ef35(0x259)]);process[_0xb5ef35(0x292)](0x1);}}main()[a0_0x77a34c(0x239)](_0x14835e=>{const _0x276219=a0_0x77a34c,_0x417de3={'izfya':_0x276219(0x261)+_0x276219(0x1f8)+_0x276219(0x256)+'d\x20ser'+_0x276219(0x1d7)+'rror\x20'+'in\x20ma'+_0x276219(0x1fc)+_0x276219(0x1dd)};error(_0x417de3['izfya'],{'message':_0x14835e[_0x276219(0x22c)+'ge'],'stack':_0x14835e[_0x276219(0x259)]}),console[_0x276219(0x1c9)](_0x276219(0x1e7)+_0x276219(0x2ba)+_0x276219(0x1ec)+'\x20ERRO'+_0x276219(0x282)+_0x14835e[_0x276219(0x22c)+'ge']);if(_0x14835e['stack'])console[_0x276219(0x1c9)](_0x14835e[_0x276219(0x259)]);process[_0x276219(0x292)](0x1);});async function shutdown(_0x5935c6){const _0x14a8f5=a0_0x77a34c,_0x12dc52={'yTdOC':function(_0x50f082,_0x3752df){return _0x50f082(_0x3752df);},'slvtj':_0x14a8f5(0x295)+_0x14a8f5(0x286)+_0x14a8f5(0x1fe)+_0x14a8f5(0x2b5)+_0x14a8f5(0x242)+'ed','fbnep':_0x14a8f5(0x263)+_0x14a8f5(0x1ff),'APoVn':function(_0x451376,_0x411115,_0x18c237){return _0x451376(_0x411115,_0x18c237);},'mCGHM':_0x14a8f5(0x27c)+_0x14a8f5(0x1cd)+_0x14a8f5(0x274)+'te'};if(isShuttingDown)return;isShuttingDown=!![];try{_0x12dc52[_0x14a8f5(0x20c)](info,_0x14a8f5(0x2b4)+_0x14a8f5(0x1d5)+_0x5935c6+(_0x14a8f5(0x279)+_0x14a8f5(0x269)+_0x14a8f5(0x210)+_0x14a8f5(0x21e)+_0x14a8f5(0x28e)+'l\x20shu'+'tdown'+_0x14a8f5(0x2b7))),keepAliveInterval&&(clearInterval(keepAliveInterval),keepAliveInterval=null,_0x12dc52['yTdOC'](info,_0x12dc52[_0x14a8f5(0x244)])),memoryLogInterval&&(_0x12dc52[_0x14a8f5(0x20c)](clearInterval,memoryLogInterval),memoryLogInterval=null),httpServer&&(info(_0x14a8f5(0x221)+'ng\x20HT'+_0x14a8f5(0x216)+_0x14a8f5(0x211)+'..'),typeof httpServer['close'+_0x14a8f5(0x220)+'nnect'+_0x14a8f5(0x222)]===_0x12dc52[_0x14a8f5(0x229)]&&httpServer['close'+_0x14a8f5(0x220)+'nnect'+'ions'](),await new Promise(_0x4b530a=>{const _0x5a3979=_0x14a8f5,_0x542539={'wvFUN':function(_0x48e6fc,_0x19eee8){const _0x88a15f=a0_0x3fc2;return _0x12dc52[_0x88a15f(0x20c)](_0x48e6fc,_0x19eee8);},'DOtcf':function(_0x694e14){return _0x694e14();}};httpServer[_0x5a3979(0x271)](()=>{const _0x2af805=_0x5a3979;_0x542539[_0x2af805(0x1cb)](info,_0x2af805(0x257)+'serve'+_0x2af805(0x1ce)+_0x2af805(0x1f0)),_0x542539[_0x2af805(0x248)](_0x4b530a);});}));}catch(_0x325798){_0x12dc52[_0x14a8f5(0x2a3)](error,_0x14a8f5(0x213)+_0x14a8f5(0x28c)+'ng\x20gr'+_0x14a8f5(0x28e)+_0x14a8f5(0x276)+_0x14a8f5(0x250),{'err':_0x325798});}finally{info(_0x12dc52[_0x14a8f5(0x1d2)]),process['exit'](0x0);}}process['on'](a0_0x77a34c(0x1c8)+'T',()=>{const _0x476916=a0_0x77a34c,_0x506ea4={'NZTcl':function(_0x8b2300,_0x3a25a0){return _0x8b2300(_0x3a25a0);},'xamKD':_0x476916(0x1c8)+'T'};_0x506ea4['NZTcl'](shutdown,_0x506ea4[_0x476916(0x22d)])[_0x476916(0x239)](_0x35455f=>error(_0x476916(0x27c)+_0x476916(0x281)+'rror\x20'+_0x476916(0x299)+_0x476916(0x22f)+_0x476916(0x1ee),{'err':_0x35455f}));}),process['on'](a0_0x77a34c(0x23e)+'RM',()=>{const _0x3656aa=a0_0x77a34c,_0x16092f={'YHdsd':function(_0x20e001,_0x5d94d9){return _0x20e001(_0x5d94d9);}};_0x16092f[_0x3656aa(0x2b3)](shutdown,'SIGTE'+'RM')[_0x3656aa(0x239)](_0x104984=>error(_0x3656aa(0x27c)+_0x3656aa(0x281)+_0x3656aa(0x2a8)+_0x3656aa(0x299)+_0x3656aa(0x22f)+_0x3656aa(0x2bb),{'err':_0x104984}));});