@p697/clawket 0.2.1 → 0.2.3
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.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
(function(_0x43b581,_0x29e054){const _0x5df907={_0x34dae4:0x547,_0x2f7b21:0x33f,_0x3b2ef5:0x1c6,_0x5ecf56:0x33,_0x58363d:0x293,_0x34b8ee:0x10d,_0x7e425c:0x27d,_0x543de6:0x94,_0x2160cd:0x21,_0x5c16d8:0x314,_0x27c970:0x13,_0x597e04:0x215,_0x4217cc:0x27a,_0x464dba:0x52,_0x3b4e4d:0x229},_0x452189={_0x55c09c:0x13e},_0x260985=_0x43b581();function _0x13f85f(_0x123af3,_0x4c01f6){return _0x2e58(_0x4c01f6- -0xff,_0x123af3);}function _0x3d264e(_0x4bc343,_0x4fa588){return _0x2e58(_0x4fa588- -_0x452189._0x55c09c,_0x4bc343);}while(!![]){try{const _0x430d83=parseInt(_0x3d264e(_0x5df907._0x34dae4,_0x5df907._0x2f7b21))/0x1*(parseInt(_0x13f85f(_0x5df907._0x3b2ef5,-_0x5df907._0x5ecf56))/0x2)+-parseInt(_0x13f85f(0x1c4,_0x5df907._0x58363d))/0x3+-parseInt(_0x13f85f(_0x5df907._0x34b8ee,0x195))/0x4*(-parseInt(_0x3d264e(-0x62,0x119))/0x5)+parseInt(_0x3d264e(-_0x5df907._0x7e425c,-_0x5df907._0x543de6))/0x6*(-parseInt(_0x13f85f(0x1fc,_0x5df907._0x2160cd))/0x7)+parseInt(_0x3d264e(_0x5df907._0x5c16d8,0x1e7))/0x8+parseInt(_0x13f85f(-0x129,_0x5df907._0x27c970))/0x9*(parseInt(_0x3d264e(_0x5df907._0x597e04,_0x5df907._0x4217cc))/0xa)+parseInt(_0x13f85f(_0x5df907._0x464dba,_0x5df907._0x3b4e4d))/0xb;if(_0x430d83===_0x29e054)break;else _0x260985['push'](_0x260985['shift']());}catch(_0xb5f0d8){_0x260985['push'](_0x260985['shift']());}}}(_0x39fb,0xc3f52));const _0x2f63a8=(function(){const _0x4cc0c1={_0x586ba5:0x27a,_0x4481a9:0x1fc};let _0x2e068d=!![];return function(_0x1b12b9,_0x26b762){const _0x5b62cc=_0x2e068d?function(){const _0x1f8a61={_0x23e46c:0x39b};function _0x117838(_0x5188ea,_0x46e40f){return _0x2e58(_0x5188ea- -_0x1f8a61._0x23e46c,_0x46e40f);}if(_0x26b762){const _0x45d011=_0x26b762[_0x117838(-_0x4cc0c1._0x586ba5,-_0x4cc0c1._0x4481a9)](_0x1b12b9,arguments);return _0x26b762=null,_0x45d011;}}:function(){};return _0x2e068d=![],_0x5b62cc;};}()),_0x5b6c10=_0x2f63a8(this,function(){const _0x48ded4={_0x157456:0x41c,_0x16b277:0x2eb,_0x3e3129:0x5e6,_0x52e82a:0x563,_0x76fe95:0x3d8,_0x14860c:0x596},_0x269a67={_0x450b2a:0x253},_0x3d6f2e={};function _0x55cf07(_0x4c6c27,_0x42f05c){return _0x2e58(_0x4c6c27-_0x269a67._0x450b2a,_0x42f05c);}function _0x211ac3(_0x494fc5,_0xb4316b){return _0x2e58(_0xb4316b-0x165,_0x494fc5);}_0x3d6f2e[_0x55cf07(_0x48ded4._0x157456,0x532)]='(((.+)+)'+_0x211ac3(_0x48ded4._0x16b277,0x4c7);const _0x55272c=_0x3d6f2e;return _0x5b6c10[_0x55cf07(0x563,0x473)]()[_0x55cf07(0x3bc,0x4e5)](_0x55272c[_0x55cf07(0x41c,_0x48ded4._0x3e3129)])[_0x55cf07(_0x48ded4._0x52e82a,_0x48ded4._0x76fe95)]()[_0x55cf07(0x459,0x505)+_0x211ac3(0x282,0x34d)](_0x5b6c10)[_0x55cf07(0x3bc,_0x48ded4._0x14860c)](_0x55272c['eKXmJ']);});_0x5b6c10();import _0x52e07e from'qrcode-terminal';import{readFileSync as _0x365046}from'fs';import{Socket}from'net';import{existsSync,mkdirSync,readFileSync,rmSync,writeFileSync}from'fs';import{randomUUID}from'crypto';import{homedir,hostname,userInfo}from'os';import{join}from'path';var CONFIG_DIR=join(homedir(),_0x11b7ab(0x4c1,0x2c6)),CONFIG_PATH=join(CONFIG_DIR,'bridge-c'+_0x11b7ab(-0x20f,-0xb2)),OPENCLAW_CONFIG_PATH=join(homedir(),_0x6eb3(0x1a8,0x271)+'w','openclaw'+'.json');function getPairingConfigPath(){return CONFIG_PATH;}function readPairingConfig(){const _0x313ce0={_0x1d4b82:0x4,_0x554f8c:0x67,_0x4bbd1e:0x24e,_0x2d8907:0x146,_0x18d1c1:0x1ef,_0x1962e8:0x1ff,_0x1a1de4:0x274,_0x219999:0x3b5,_0x155848:0x1c3,_0x42c29b:0x4c8,_0x56b55c:0x2fd,_0x16c1de:0x4a,_0x4f2620:0x158};function _0x59905f(_0x20c1f1,_0x3952f0){return _0x11b7ab(_0x3952f0,_0x20c1f1-0x2ee);}const _0x3f6e3d={'PNHCF':function(_0x2aaa79,_0x592090){return _0x2aaa79(_0x592090);},'ksbkr':function(_0x38de26,_0x23ca2c){return _0x38de26!==_0x23ca2c;},'bmPuY':function(_0x4ea86e,_0x9c220a){return _0x4ea86e(_0x9c220a);}};function _0x526f40(_0x272069,_0x286e5d){return _0x11b7ab(_0x286e5d,_0x272069-0x61);}if(!_0x3f6e3d['PNHCF'](existsSync,CONFIG_PATH))return null;try{const _0x2f4c17=JSON['parse'](readFileSync(CONFIG_PATH,_0x526f40(0x179,-_0x313ce0._0x1d4b82)));if(!_0x2f4c17['serverUr'+'l']||!_0x2f4c17[_0x59905f(0x4db,0x488)+'d']||!_0x2f4c17[_0x526f40(-_0x313ce0._0x554f8c,-0xc4)+_0x59905f(0x5cb,0x5b2)]||!_0x2f4c17['relayUrl'])return null;const _0x4e13e8={'serverUrl':_0x2f4c17['serverUr'+'l'],'gatewayId':_0x2f4c17[_0x526f40(_0x313ce0._0x4bbd1e,0x107)+'d'],'relaySecret':_0x2f4c17[_0x526f40(-0x67,_0x313ce0._0x2d8907)+_0x526f40(0x33e,_0x313ce0._0x18d1c1)],'relayUrl':_0x2f4c17[_0x59905f(_0x313ce0._0x1962e8,0x3fa)],'instanceId':_0x2f4c17['instance'+'Id']?.[_0x526f40(0x160,-0x51)]()||createInstanceId(),'displayName':_0x2f4c17['displayN'+'ame']??null,'createdAt':_0x2f4c17[_0x526f40(_0x313ce0._0x1a1de4,_0x313ce0._0x219999)+'t']??new Date()[_0x526f40(_0x313ce0._0x155848,0xbe)+'ing'](),'updatedAt':_0x2f4c17[_0x526f40(0x2cf,_0x313ce0._0x42c29b)+'t']??new Date()['toISOStr'+'ing']()};return _0x3f6e3d[_0x526f40(_0x313ce0._0x56b55c,0x36f)](_0x2f4c17[_0x526f40(0x8b,_0x313ce0._0x16c1de)+'Id'],_0x4e13e8[_0x526f40(0x8b,-_0x313ce0._0x4f2620)+'Id'])&&_0x3f6e3d[_0x59905f(0x339,0x348)](writePairingConfig,_0x4e13e8),_0x4e13e8;}catch{return null;}}function writePairingConfig(_0x337a9d){const _0x3c0612={_0x33f6fc:0xd6,_0x5442dd:0xe4};function _0x367be6(_0x5650c1,_0x2c06ef){return _0x11b7ab(_0x2c06ef,_0x5650c1- -0x170);}function _0x5689e3(_0xb311b1,_0x40d39b){return _0x11b7ab(_0x40d39b,_0xb311b1- -0x202);}const _0x37b251={'zkrdp':function(_0x43895a,_0x1ec109,_0x280330,_0x1f6680){return _0x43895a(_0x1ec109,_0x280330,_0x1f6680);},'NIlGi':_0x367be6(-0x58,_0x3c0612._0x33f6fc)},_0x13064d={};_0x13064d['recursiv'+'e']=!![],mkdirSync(CONFIG_DIR,_0x13064d),_0x37b251[_0x5689e3(-0x216,-0x18e)](writeFileSync,CONFIG_PATH,JSON['stringif'+'y'](_0x337a9d,null,0x2)+'\x0a',_0x37b251[_0x367be6(-_0x3c0612._0x5442dd,-0x116)]);}function deletePairingConfig(){if(!existsSync(CONFIG_PATH))return;const _0x4f9c43={};_0x4f9c43['force']=!![],rmSync(CONFIG_PATH,_0x4f9c43);}function getDefaultBridgeDisplayName(){const _0x4597cd={_0x2fcb90:0x15d,_0x373af0:0x447,_0x5d8b2b:0x49d,_0x2cb1da:0x199,_0x3c8b42:0x69,_0x3f5ef7:0xc6,_0x54eda3:0x3cd,_0xfa6eb5:0x56f},_0x549fa6={_0x1f5058:0x54},_0x481a06={_0x168573:0x35e},_0x1164b9={'pfHGK':function(_0x10d5a5){return _0x10d5a5();},'eKRkn':_0x19830f(-_0x4597cd._0x2fcb90,-0x242)+'Bridge'},_0x2026c7=_0x1164b9[_0x19830f(0x1a3,0xd6)](readOpenClawDefaultAgentName);function _0x20b005(_0x53e83b,_0x1e4432){return _0x6eb3(_0x53e83b,_0x1e4432-_0x481a06._0x168573);}if(_0x2026c7)return _0x2026c7;try{const _0x339c59=userInfo()[_0x20b005(_0x4597cd._0x373af0,_0x4597cd._0x5d8b2b)][_0x19830f(0x69,-_0x4597cd._0x2cb1da)]();if(_0x339c59)return _0x339c59;}catch{}const _0x2ed3bb=(process.env.LOGNAME??process.env.USER??process.env.USERNAME??'')[_0x19830f(_0x4597cd._0x3c8b42,_0x4597cd._0x3f5ef7)]();if(_0x2ed3bb)return _0x2ed3bb;function _0x19830f(_0x20c3ab,_0x58479f){return _0x6eb3(_0x58479f,_0x20c3ab- -_0x549fa6._0x1f5058);}return hostname()['trim']()||_0x1164b9[_0x20b005(_0x4597cd._0x54eda3,_0x4597cd._0xfa6eb5)];}function pickOpenClawDefaultAgentName(_0x492853){const _0x25ff05={_0x1b9dfa:0x49,_0x1f6f60:0x6d,_0x11881a:0x228},_0x4f6664={_0x4ce526:0x13d},_0x1b6e62={_0x4da85f:0x272};function _0x192d25(_0x1ae225,_0x53bc56){return _0x6eb3(_0x1ae225,_0x53bc56-_0x1b6e62._0x4da85f);}if(!_0x492853||typeof _0x492853!==_0x192d25(_0x25ff05._0x1b9dfa,0x16f))return null;const _0x146e31=_0x492853['agents'];function _0x24c5c6(_0x2500fd,_0x36b729){return _0x6eb3(_0x36b729,_0x2500fd- -_0x4f6664._0x4ce526);}const _0x2d8e3b=Array[_0x192d25(0x337,0x2bf)](_0x146e31?.[_0x192d25(0x2b9,0x21d)])?_0x146e31['list']:[],_0x1aab03=_0x2d8e3b[_0x24c5c6(-_0x25ff05._0x1f6f60,-_0x25ff05._0x11881a)](_0x327cc1=>isDefaultAgent(_0x327cc1))??_0x2d8e3b[_0x192d25(0x415,0x342)](_0x527a21=>hasAgentId(_0x527a21,_0x192d25(0x10a,0x1df)))??_0x2d8e3b[0x0];return readAgentName(_0x1aab03);}function createInstanceId(){const _0x38c8d5={_0x46e6bd:0x1f0,_0x4cd723:0x1c8,_0x16a9cd:0x1fb,_0x3a3c54:0x176,_0x3569df:0x38e,_0x161f74:0x441};function _0x4d79bd(_0x254727,_0x3d835a){return _0x6eb3(_0x3d835a,_0x254727-0x261);}const _0x2a8487={'TxkMd':_0x4d79bd(0x300,0x217),'EJQCj':function(_0x3e04c7){return _0x3e04c7();}};function _0x15c007(_0x3b6c08,_0x4d1802){return _0x6eb3(_0x4d1802,_0x3b6c08- -0x17a);}const _0x3b4678=sanitizeId(hostname()||_0x2a8487[_0x15c007(-_0x38c8d5._0x46e6bd,-0x65)]);return _0x15c007(-_0x38c8d5._0x4cd723,-_0x38c8d5._0x16a9cd)+_0x3b4678+'-'+_0x2a8487[_0x4d79bd(_0x38c8d5._0x3a3c54,0x1c1)](randomUUID)[_0x4d79bd(_0x38c8d5._0x3569df,_0x38c8d5._0x161f74)](0x0,0xa);}function sanitizeId(_0x2f754e){const _0xc2dde6={_0x505793:0x93,_0x5b623f:0x200,_0x2dbe75:0x20d,_0x54bccc:0x61},_0x104480={_0x373a8f:0x100},_0x242c4f={_0x186d8c:0xa9};function _0x2392d9(_0x5b94da,_0x42b581){return _0x6eb3(_0x5b94da,_0x42b581-_0x242c4f._0x186d8c);}function _0x1224bc(_0x5351c4,_0x2a9721){return _0x6eb3(_0x5351c4,_0x2a9721- -_0x104480._0x373a8f);}return _0x2f754e['trim']()[_0x1224bc(-0x145,-_0xc2dde6._0x505793)+'ase']()[_0x1224bc(-_0xc2dde6._0x5b623f,-_0xc2dde6._0x2dbe75)](/[^a-z0-9._-]+/g,'-')['replace'](/^-+|-+$/g,'')||_0x1224bc(-0x200,-_0xc2dde6._0x54bccc);}function readOpenClawDefaultAgentName(){const _0x4b85f1={_0x1f2fee:0x395},_0x15be5c={_0x1c50df:0x27d};function _0x1f3862(_0x503c11,_0x2e4883){return _0x6eb3(_0x2e4883,_0x503c11-_0x15be5c._0x1c50df);}const _0x1f8b5c={'DsYVz':function(_0x2ec6a8,_0x33cec9,_0x179856){return _0x2ec6a8(_0x33cec9,_0x179856);}};if(!existsSync(OPENCLAW_CONFIG_PATH))return null;function _0x5afd9e(_0x3599c6,_0x2f57b0){return _0x6eb3(_0x3599c6,_0x2f57b0-0x3cb);}try{const _0x5c6b84=JSON['parse'](_0x1f8b5c[_0x1f3862(_0x4b85f1._0x1f2fee,0x1ff)](readFileSync,OPENCLAW_CONFIG_PATH,_0x5afd9e(0x521,0x4a1)));return pickOpenClawDefaultAgentName(_0x5c6b84);}catch{return null;}}function isDefaultAgent(_0x2d62af){const _0x4dfc23={_0x406c3f:0x1ad,_0x677730:0xef,_0x419c25:0x23};function _0x5729c7(_0x40f572,_0xf9e910){return _0x11b7ab(_0x40f572,_0xf9e910-0x535);}function _0x1f0bbd(_0x58c1d5,_0x493425){return _0x11b7ab(_0x58c1d5,_0x493425- -0xec);}const _0x4aef20={'GWQep':function(_0x9f0cdf,_0x41549b){return _0x9f0cdf(_0x41549b);}};return _0x4aef20['GWQep'](Boolean,_0x2d62af&&typeof _0x2d62af===_0x1f0bbd(-0x1a,-_0x4dfc23._0x406c3f)&&_0x2d62af[_0x1f0bbd(_0x4dfc23._0x677730,_0x4dfc23._0x419c25)]===!![]);}function hasAgentId(_0x26ed6b,_0x2bfc56){const _0x7b4e84={_0x418336:0x362,_0x199ece:0x411,_0x21bf3e:0x71e,_0x40f009:0x737,_0x45961f:0x5d1},_0x541524={_0x55558a:0x514};function _0xdfda9d(_0x3288b1,_0x4f131c){return _0x6eb3(_0x3288b1,_0x4f131c- -0x12f);}const _0x1d049d={'ntILG':function(_0xe7fe01,_0x20e216){return _0xe7fe01(_0x20e216);},'exVop':'string'};function _0x5bf8d7(_0x5d643d,_0x262f55){return _0x6eb3(_0x5d643d,_0x262f55-_0x541524._0x55558a);}return _0x1d049d['ntILG'](Boolean,_0x26ed6b&&typeof _0x26ed6b===_0x5bf8d7(_0x7b4e84._0x418336,_0x7b4e84._0x199ece)&&typeof _0x26ed6b['id']===_0x1d049d[_0x5bf8d7(_0x7b4e84._0x21bf3e,_0x7b4e84._0x40f009)]&&_0x26ed6b['id'][_0x5bf8d7(0x526,_0x7b4e84._0x45961f)]()===_0x2bfc56);}function readAgentName(_0x595c41){const _0x3c4f41={_0x38dc69:0x1b4,_0x51930a:0x1c7,_0x4be06f:0x47,_0x5cb347:0x121},_0x35dc7c={_0x4691a3:0x9d};if(!_0x595c41||typeof _0x595c41!=='object')return null;function _0x23cabf(_0x395d1d,_0x1318de){return _0x6eb3(_0x1318de,_0x395d1d- -_0x35dc7c._0x4691a3);}function _0x22ff82(_0x1fd43c,_0x4b8ba0){return _0x6eb3(_0x4b8ba0,_0x1fd43c- -0x133);}const _0x2264de=_0x595c41,_0x22b012=typeof _0x2264de[_0x23cabf(-0x11e,-0x53)]?.['name']==='string'?_0x2264de[_0x22ff82(-_0x3c4f41._0x38dc69,-_0x3c4f41._0x51930a)][_0x23cabf(-_0x3c4f41._0x4be06f,-0xd1)]['trim']():'';if(_0x22b012)return _0x22b012;const _0x2a635c=typeof _0x2264de['name']===_0x22ff82(-0x1f0,-_0x3c4f41._0x5cb347)?_0x2264de[_0x23cabf(-0x47,-0x223)]['trim']():'';return _0x2a635c||null;}function buildPairingQrPayload(_0x8ce880){const _0x2213f8={_0x360c94:0x1ae,_0x25819f:0x16f,_0xe104fb:0x223,_0x3c7b36:0x196,_0x5d21cf:0x276,_0xf24c13:0x480,_0x543c73:0x39c,_0x40ba61:0x23d,_0x540fd3:0x638,_0x15296f:0x7d3,_0x31368d:0x28b,_0x24ddc9:0x1a2,_0x33e96e:0x522,_0x4e3a72:0x492},_0x5ec04a={_0x5c58ab:0x1ce},_0x2cec31={};_0x2cec31['v']=0x2,_0x2cec31['k']='cp',_0x2cec31['s']=_0x8ce880[_0x2b8044(_0x2213f8._0x360c94,_0x2213f8._0x25819f)],_0x2cec31['g']=_0x8ce880[_0x2b8044(0x379,_0x2213f8._0xe104fb)+'d'],_0x2cec31['a']=_0x8ce880[_0x2b8044(0x1a0,_0x2213f8._0x3c7b36)+'de'];function _0x2b8044(_0x516e92,_0x375f97){return _0x6eb3(_0x375f97,_0x516e92-_0x5ec04a._0x5c58ab);}const _0x458bee=_0x2cec31;_0x8ce880[_0x2b8044(_0x2213f8._0x5d21cf,0x322)+_0x2b8044(_0x2213f8._0xf24c13,_0x2213f8._0x543c73)]?.[_0x2d2134(0x522,0x3af)]()&&(_0x458bee['n']=_0x8ce880[_0x2d2134(0x50d,0x6c6)+_0x2b8044(0x480,0x4d0)][_0x2b8044(0x28b,0x252)]());function _0x2d2134(_0x22b47c,_0x3e316c){return _0x6eb3(_0x3e316c,_0x22b47c-0x465);}return _0x8ce880['token']?.[_0x2b8044(0x28b,_0x2213f8._0x40ba61)]()&&(_0x458bee['t']=_0x8ce880[_0x2d2134(_0x2213f8._0x540fd3,_0x2213f8._0x15296f)][_0x2b8044(_0x2213f8._0x31368d,_0x2213f8._0x24ddc9)]()),_0x8ce880['password']?.[_0x2d2134(_0x2213f8._0x33e96e,0x5a9)]()&&(_0x458bee['p']=_0x8ce880[_0x2d2134(0x552,0x5aa)][_0x2b8044(0x28b,0x26f)]()),JSON[_0x2d2134(0x629,_0x2213f8._0x4e3a72)+'y'](_0x458bee);}async function pairGateway(_0x41e6d1){const _0x13662c={_0x134baf:0x258,_0x3541b0:0x227,_0x5d51d3:0x31d,_0x513d50:0xd6,_0x16e8dd:0xf0,_0x58e60b:0x138,_0x24ba0d:0x127,_0x43d085:0x166,_0x54817b:0x36f,_0x21bfad:0x197,_0x462746:0x23,_0x4c05c2:0x28,_0x2f1c68:0x113,_0x37b66b:0xcf,_0x73ee60:0x173,_0x3a6086:0x225,_0xae7569:0x3b3,_0xfb9a5a:0x30d,_0x385cfe:0x10f,_0x233857:0x8c,_0x5bd605:0x12b,_0xe19934:0x192,_0x43dafb:0x263,_0x5b667a:0x11b,_0x559c4c:0x4,_0x5d1335:0xdd,_0x592ce8:0xd1,_0xe4e374:0x9f,_0xd65c06:0x111,_0x466679:0x6b,_0x124779:0xb,_0x42f2de:0x288,_0x58427d:0xb9,_0x1d0fc1:0x1d7,_0xebacb7:0xea,_0x4e89d5:0xc4,_0x49f028:0x15,_0x1d4aec:0x3f,_0x5432de:0x196,_0x471fcd:0xde,_0x5a9c2d:0xc6,_0xad779d:0x1e5,_0x90e6ee:0x1d2,_0xdc3f94:0xe7,_0x39a8ac:0x9b,_0x42d16a:0x17b,_0x40948c:0x11e,_0x12ec3b:0x29d,_0x893f01:0xfb,_0x1a6677:0x1e0,_0x5f06e4:0x19a,_0x570d86:0x166,_0x8b505:0x1af,_0x319160:0x1b},_0x4c3b29={'ciiXl':function(_0x5b0c5c,_0x5820ad){return _0x5b0c5c===_0x5820ad;},'rdYrC':'server-m'+'ismatch','jmgXi':function(_0x2fc385,_0x770cbd,_0x126895){return _0x2fc385(_0x770cbd,_0x126895);},'NMmaM':_0x490f2e(_0x13662c._0x134baf,0x450),'FlTbf':function(_0x23fd44,_0x3d2d47){return _0x23fd44(_0x3d2d47);}},_0x45bacf=normalizeHttpBase(_0x41e6d1[_0x297473(-0xcf,-_0x13662c._0x3541b0)+'l']),_0x245cee=readPairingConfig(),_0x587b9d=assessPairingCompatibility(_0x245cee,_0x45bacf);if(_0x4c3b29[_0x297473(-0x11a,-0x164)](_0x587b9d,_0x297473(-0x205,-_0x13662c._0x5d51d3)+_0x297473(0x1ef,_0x13662c._0x513d50))&&_0x245cee){const _0x3cc727={};return _0x3cc727[_0x490f2e(_0x13662c._0x16e8dd,0x8)+'l']=_0x245cee[_0x297473(-0xcf,-0x299)+'l'],_0x3cc727[_0x297473(0xde,-0x7c)+'d']=_0x245cee[_0x297473(0xde,-0x19)+'d'],_0x3cc727[_0x490f2e(-0x18,-0x10)+_0x490f2e(0x38d,0x4e0)]=_0x245cee[_0x490f2e(-0x18,0x1b0)+_0x490f2e(0x38d,0x185)],_0x3cc727[_0x297473(-0x25,_0x13662c._0x58e60b)+'ame']=_0x41e6d1[_0x490f2e(0x19a,0x101)+_0x297473(0x1e5,_0x13662c._0x24ba0d)],_0x3cc727[_0x490f2e(0x189,0x292)+'oken']=_0x41e6d1[_0x490f2e(0x189,0x143)+_0x490f2e(_0x13662c._0x43d085,_0x13662c._0x54817b)],_0x3cc727[_0x297473(-_0x13662c._0x21bfad,-_0x13662c._0x462746)+'assword']=_0x41e6d1[_0x490f2e(_0x13662c._0x4c05c2,_0x13662c._0x2f1c68)+_0x297473(-0x70,-_0x13662c._0x37b66b)],refreshAccessCode(_0x3cc727);}if(_0x587b9d===_0x4c3b29['rdYrC'])throw new Error(_0x490f2e(0x1a4,_0x13662c._0x73ee60)+'dge\x20is\x20a'+_0x490f2e(0x3f,0x21d)+'aired\x20wi'+_0x297473(-0x68,-_0x13662c._0x3a6086)+_0x245cee?.[_0x297473(-0xcf,-0x5c)+'l']+(_0x490f2e(_0x13662c._0xae7569,0x51d)+_0x490f2e(_0x13662c._0xfb9a5a,_0x13662c._0x385cfe)+'eset\x22\x20be'+'fore\x20pai'+'ring\x20wit'+_0x490f2e(_0x13662c._0x233857,0x281)+_0x297473(-_0x13662c._0x5bd605,-0x1f4)+_0x297473(_0x13662c._0xe19934,_0x13662c._0x43dafb)));const _0x5b60b4={};function _0x297473(_0x3fb0dd,_0x58323f){return _0x11b7ab(_0x58323f,_0x3fb0dd- -0x10f);}_0x5b60b4[_0x297473(0x68,_0x13662c._0x5b667a)+_0x297473(_0x13662c._0x559c4c,-0xfc)]='applicat'+'ion/json',_0x5b60b4['accept']='applicat'+_0x297473(-0x1fa,-_0x13662c._0x5d1335);const _0x2a8d88=await _0x4c3b29[_0x297473(-_0x13662c._0x592ce8,0x22)](fetch,_0x45bacf+('/v1/pair'+_0x490f2e(_0x13662c._0xe4e374,_0x13662c._0xd65c06)+'r'),{'method':_0x4c3b29[_0x490f2e(_0x13662c._0x466679,-0x124)],'headers':_0x5b60b4,'body':JSON['stringif'+'y']({'displayName':_0x41e6d1[_0x297473(-0x25,_0x13662c._0x124779)+_0x297473(0x1e5,_0x13662c._0x42f2de)]?.[_0x297473(-0x10,-0xb5)]()||null})});if(!_0x2a8d88['ok'])throw new Error(_0x297473(_0x13662c._0x58427d,0x7c)+'ister\x20fa'+'iled\x20('+_0x2a8d88[_0x297473(_0x13662c._0x1d0fc1,0x61)]+_0x490f2e(0x19f,_0x13662c._0xebacb7)+await _0x2a8d88[_0x297473(-0xff,-0x1c6)]());const _0xaa47a8=await _0x2a8d88[_0x297473(_0x13662c._0x4e89d5,-_0x13662c._0x49f028)](),_0xbce93c=new Date()['toISOStr'+'ing'](),_0x1684fa={'serverUrl':_0x45bacf,'gatewayId':_0xaa47a8['gatewayI'+'d'],'relaySecret':_0xaa47a8['relaySec'+_0x490f2e(0x38d,0x359)],'relayUrl':_0xaa47a8[_0x490f2e(-_0x13662c._0x1d4aec,-_0x13662c._0x5432de)],'instanceId':_0x245cee?.[_0x490f2e(0xda,0x207)+'Id']??_0x297473(-0x11b,-0x68)+_0xaa47a8[_0x297473(_0x13662c._0x471fcd,_0x13662c._0x5a9c2d)+'d']['slice'](-0xa),'displayName':_0xaa47a8['displayN'+_0x297473(_0x13662c._0xad779d,0x278)],'createdAt':_0xbce93c,'updatedAt':_0xbce93c};function _0x490f2e(_0x36d9b9,_0x40e57f){return _0x11b7ab(_0x40e57f,_0x36d9b9-0xb0);}return _0x4c3b29[_0x297473(-_0x13662c._0x90e6ee,-_0x13662c._0xdc3f94)](writePairingConfig,_0x1684fa),{'config':_0x1684fa,'accessCode':_0xaa47a8[_0x490f2e(_0x13662c._0x4e89d5,0x54)+'de'],'accessCodeExpiresAt':_0xaa47a8['accessCo'+_0x297473(_0x13662c._0x39a8ac,-_0x13662c._0x466679)+_0x297473(-_0x13662c._0x42d16a,-_0x13662c._0x40948c)],'action':_0x490f2e(0x290,0x300)+'ed','qrPayload':buildPairingQrPayload({'server':_0x45bacf,'gatewayId':_0xaa47a8[_0x490f2e(_0x13662c._0x12ec3b,0x422)+'d'],'accessCode':_0xaa47a8[_0x297473(-_0x13662c._0x893f01,-_0x13662c._0x1a6677)+'de'],'displayName':_0xaa47a8[_0x490f2e(_0x13662c._0x5f06e4,0x257)+'ame'],'token':_0x41e6d1[_0x297473(-0x36,-0x41)+_0x490f2e(_0x13662c._0x570d86,0x1f8)]?.[_0x490f2e(_0x13662c._0x8b505,-_0x13662c._0x319160)]()||null,'password':_0x41e6d1[_0x490f2e(_0x13662c._0x4c05c2,-0x82)+'assword']?.[_0x490f2e(_0x13662c._0x8b505,0x15f)]()||null})};}async function refreshAccessCode(_0x169844){const _0x5d07b4={_0x4d2415:0x2b0,_0x459c9f:0x2f,_0x4b4a02:0x164,_0x16005f:0x438,_0x13fa83:0x3f7,_0x4db0cd:0x397,_0x5e8d47:0x183,_0x17af43:0x3df,_0x38f944:0x528,_0x293b72:0x538,_0x4629b3:0x40f,_0x4fb937:0x76,_0x64cf03:0x1c7,_0x42a310:0x527,_0x3c8926:0x90,_0x39b4d7:0x8d,_0x3fa6bc:0x340,_0x17e8aa:0x18e,_0x30213b:0x3e3,_0x2de1c5:0x520,_0xe5a260:0x12a,_0x337369:0x238,_0x6ba7d2:0x1db,_0x31a6d0:0x48b,_0x5ae5df:0x32d,_0x975bb:0x19a,_0xa74733:0x506,_0x395bc4:0x74,_0x113864:0xc8,_0x2103db:0x1d2,_0x4dbdd1:0xe5,_0x402e06:0x25d,_0x461de1:0x1ec,_0x19cf60:0x3f5,_0x525c35:0x1df,_0x105ff7:0x34e,_0x2b6c43:0xfb,_0x30ec26:0x3d6,_0x42b92a:0x1f5,_0x3d35d1:0x341,_0x4123c9:0x34a},_0x20820a={_0x24a6e7:0x11a},_0x502f5b={'hfvfb':function(_0x21345e,_0x1f71df,_0x3a5ad9){return _0x21345e(_0x1f71df,_0x3a5ad9);},'YfqNl':_0x16645f(_0x5d07b4._0x4d2415,0x3f3),'wzSYx':'applicat'+_0x1f6370(_0x5d07b4._0x459c9f,-_0x5d07b4._0x4b4a02)},_0x4e97b9=readPairingConfig(),_0x349948=normalizeHttpBase(_0x169844?.[_0x16645f(0x362,0x28b)+'l']??_0x4e97b9?.[_0x1f6370(0x15a,0x342)+'l']??''),_0x1fb61e=_0x169844?.[_0x16645f(0x291,_0x5d07b4._0x16005f)+'d']??_0x4e97b9?.[_0x1f6370(0x307,0x1ad)+'d']??'',_0x5e178c=_0x169844?.['relaySec'+_0x1f6370(_0x5d07b4._0x13fa83,_0x5d07b4._0x4db0cd)]??_0x4e97b9?.[_0x16645f(0x365,_0x5d07b4._0x5e8d47)+_0x16645f(_0x5d07b4._0x17af43,_0x5d07b4._0x38f944)]??'';if(!_0x349948||!_0x1fb61e||!_0x5e178c)throw new Error('Pairing\x20'+_0x1f6370(0x3a5,0x27e)+'ot\x20found'+'.\x20Run\x20pa'+'ir\x20first'+'.');const _0x59ee61=await _0x502f5b[_0x16645f(_0x5d07b4._0x293b72,_0x5d07b4._0x4629b3)](fetch,_0x349948+(_0x1f6370(_0x5d07b4._0x4fb937,_0x5d07b4._0x64cf03)+'/access-'+_0x1f6370(0x8a,0x13a)),{'method':_0x502f5b[_0x16645f(0x653,_0x5d07b4._0x42a310)],'headers':{'content-type':_0x502f5b[_0x1f6370(_0x5d07b4._0x3c8926,_0x5d07b4._0x39b4d7)],'accept':_0x1f6370(0x417,_0x5d07b4._0x3fa6bc)+_0x1f6370(0x2f,_0x5d07b4._0x17e8aa)},'body':JSON[_0x1f6370(0x320,_0x5d07b4._0x30213b)+'y']({'gatewayId':_0x1fb61e,'relaySecret':_0x5e178c,'displayName':_0x169844?.['displayN'+'ame']?.[_0x16645f(0x32d,0x34a)]()||void 0x0})});if(!_0x59ee61['ok'])throw new Error('Access\x20c'+_0x16645f(_0x5d07b4._0x2de1c5,0x3a8)+_0x16645f(0x407,0x475)+'ed\x20('+_0x59ee61['status']+'):\x20'+await _0x59ee61[_0x1f6370(_0x5d07b4._0xe5a260,_0x5d07b4._0x337369)]());const _0x503591=await _0x59ee61['json'](),_0x6448a1={'serverUrl':_0x349948,'gatewayId':_0x503591['gatewayI'+'d'],'relaySecret':_0x5e178c,'relayUrl':_0x503591[_0x1f6370(0x2b,-0x121)],'instanceId':_0x4e97b9?.[_0x16645f(_0x5d07b4._0x6ba7d2,0x275)+'Id']??_0x1f6370(0x10e,0x184)+_0x503591[_0x1f6370(0x307,_0x5d07b4._0x31a6d0)+'d'][_0x1f6370(0x289,0x3ac)](-0xa),'displayName':_0x503591[_0x16645f(0x4fb,0x335)+'ame'],'createdAt':_0x4e97b9?.[_0x1f6370(_0x5d07b4._0x5ae5df,_0x5d07b4._0x975bb)+'t']??new Date()[_0x16645f(_0x5d07b4._0xa74733,0x3ad)+_0x16645f(0x3c2,0x1f9)](),'updatedAt':new Date()[_0x1f6370(0x27c,_0x5d07b4._0x395bc4)+_0x1f6370(_0x5d07b4._0x113864,_0x5d07b4._0x2103db)]()};writePairingConfig(_0x6448a1);function _0x16645f(_0x777cd1,_0xa66036){return _0x11b7ab(_0x777cd1,_0xa66036-0x24b);}function _0x1f6370(_0x47fa74,_0x140d07){return _0x11b7ab(_0x140d07,_0x47fa74-_0x20820a._0x24a6e7);}return{'config':_0x6448a1,'accessCode':_0x503591[_0x1f6370(0x12e,_0x5d07b4._0x4dbdd1)+'de'],'accessCodeExpiresAt':_0x503591[_0x1f6370(0x12e,_0x5d07b4._0x402e06)+_0x16645f(_0x5d07b4._0x461de1,_0x5d07b4._0x19cf60)+_0x16645f(0x242,_0x5d07b4._0x525c35)],'action':_0x16645f(0x503,_0x5d07b4._0x105ff7)+'d','qrPayload':buildPairingQrPayload({'server':_0x349948,'gatewayId':_0x503591['gatewayI'+'d'],'accessCode':_0x503591[_0x1f6370(0x12e,_0x5d07b4._0x2b6c43)+'de'],'displayName':_0x503591[_0x16645f(0x1fb,0x335)+_0x16645f(_0x5d07b4._0x30ec26,0x53f)],'token':_0x169844?.['gatewayT'+'oken']?.[_0x16645f(_0x5d07b4._0x42b92a,0x34a)]()||null,'password':_0x169844?.[_0x16645f(0x1,0x1c3)+'assword']?.[_0x16645f(_0x5d07b4._0x3d35d1,_0x5d07b4._0x4123c9)]()||null})};}function normalizeHttpBase(_0x13898b){const _0x54b307={_0x431b50:0x3e5,_0x409588:0x1f4,_0x2785fb:0x1de,_0x54934a:0x204,_0x5ce106:0x8a,_0x40ebc2:0x1c9,_0x1db6d3:0x22d,_0x4c5bd0:0xec,_0x5eab10:0x8a,_0x462ad6:0x3a7,_0x2e4a43:0x2ed,_0x15e588:0x184,_0x3f61b4:0x442,_0x5ab2fc:0x1ee,_0x5149f5:0x4b,_0x2a3e73:0xb6},_0x54a050={_0x6ba67d:0x44c},_0x19bd8b={_0x3adb4e:0x15},_0x36d27c={};_0x36d27c[_0x213bbd(0x4be,_0x54b307._0x431b50)]=_0x105d38(_0x54b307._0x409588,0xb7),_0x36d27c['PPmTj']=_0x105d38(0x16c,_0x54b307._0x2785fb);const _0x7fec41=_0x36d27c,_0x44c90a=_0x13898b['trim']();if(!_0x44c90a)return'';if(_0x44c90a[_0x105d38(_0x54b307._0x54934a,_0x54b307._0x5ce106)+'th'](_0x7fec41['apHHW'])||_0x44c90a['startsWi'+'th'](_0x105d38(_0x54b307._0x40ebc2,0x1ee)))return _0x44c90a[_0x213bbd(_0x54b307._0x1db6d3,0x381)](/\/+$/,'');function _0x105d38(_0xa2d5d0,_0xa1b956){return _0x11b7ab(_0xa2d5d0,_0xa1b956-_0x19bd8b._0x3adb4e);}if(_0x44c90a[_0x105d38(-_0x54b307._0x4c5bd0,_0x54b307._0x5eab10)+'th'](_0x105d38(_0x54b307._0x462ad6,_0x54b307._0x2e4a43)))return(_0x105d38(0x169,0xb7)+_0x44c90a[_0x105d38(-0x2e,_0x54b307._0x15e588)]('ws://'['length']))[_0x213bbd(_0x54b307._0x3f61b4,0x381)](/\/+$/,'');function _0x213bbd(_0x1618c8,_0x3969b9){return _0x11b7ab(_0x1618c8,_0x3969b9-_0x54a050._0x6ba67d);}if(_0x44c90a['startsWi'+'th'](_0x7fec41['PPmTj']))return(_0x105d38(0x31b,_0x54b307._0x5ab2fc)+_0x44c90a['slice'](_0x105d38(-0x3,0x1de)[_0x105d38(-0x4f,0xfe)]))[_0x105d38(-_0x54b307._0x5149f5,-_0x54b307._0x2a3e73)](/\/+$/,'');return(_0x213bbd(0x4e4,0x625)+_0x44c90a)['replace'](/\/+$/,'');}function assessPairingCompatibility(_0x5a23ea,_0x458b79){const _0x2bb680={_0x348c68:0x6e8,_0x26cbc8:0x4db,_0x4eef28:0x4c5,_0xcb1e5:0x4c8,_0x30af11:0x5a3,_0x3effd6:0x787,_0x316495:0x710,_0x1ecbba:0x532,_0x52dca4:0x3de,_0x55a131:0x72a,_0xcd6f81:0x60c},_0x592a36={_0x21a7b4:0x4f2},_0x2e7b7f={_0xb0da5c:0x230},_0x34f630={};_0x34f630[_0x5b7fdb(0x41e,0x33d)]=_0x3f034c(_0x2bb680._0x348c68,0x6d2)+_0x5b7fdb(_0x2bb680._0x26cbc8,0x362);function _0x5b7fdb(_0x236f08,_0x219e4d){return _0x11b7ab(_0x219e4d,_0x236f08-_0x2e7b7f._0xb0da5c);}_0x34f630[_0x5b7fdb(_0x2bb680._0x4eef28,_0x2bb680._0xcb1e5)]=function(_0x34bd9e,_0x3620f4){return _0x34bd9e===_0x3620f4;};const _0x59d3fb=_0x34f630;if(!_0x5a23ea)return _0x59d3fb['uZKJc'];function _0x3f034c(_0x45b98c,_0xf454fc){return _0x11b7ab(_0x45b98c,_0xf454fc-_0x592a36._0x21a7b4);}if(_0x59d3fb[_0x3f034c(_0x2bb680._0x30af11,_0x2bb680._0x3effd6)](_0x5a23ea[_0x3f034c(_0x2bb680._0x316495,_0x2bb680._0x1ecbba)+'l'],_0x458b79))return _0x3f034c(_0x2bb680._0x52dca4,0x3fc)+_0x3f034c(0x9d7,0x7f0);return _0x3f034c(0x6f7,0x6b3)+_0x3f034c(_0x2bb680._0x55a131,_0x2bb680._0xcd6f81);}import{execFileSync,spawn}from'child_process';import{chmodSync,closeSync,existsSync as _0x44150d,mkdirSync as _0x40ab56,openSync,readFileSync as _0x34a7a2,realpathSync,rmSync as _0x40020e,writeFileSync as _0x301ed4}from'fs';import{homedir as _0xdfb285}from'os';import{dirname,join as _0x12493c}from'path';var SERVICE_LABEL=_0x6eb3(0x7e,0x88)+_0x6eb3(0x1eb,0xee)+_0x11b7ab(0x51,0x105),SYSTEMD_UNIT_NAME=SERVICE_LABEL+_0x6eb3(-0x97,-0x114),WINDOWS_RUN_KEY=_0x6eb3(0x34c,0x232)+_0x11b7ab(-0x25e,-0x8e),SERVICE_DIR=_0x12493c(_0xdfb285(),_0x6eb3(0x3eb,0x284)),LOG_DIR=_0x12493c(SERVICE_DIR,'logs'),SERVICE_STATE_PATH=_0x12493c(SERVICE_DIR,_0x11b7ab(0x3c9,0x2e8)+'ervice.j'+_0x11b7ab(0x14e,0x240)),SERVICE_LAUNCHER_PATH=_0x12493c(SERVICE_DIR,_0x6eb3(0x189,0x2a6)+_0x11b7ab(-0x56,0x110)+_0x11b7ab(-0x3e,0x71)+'sh'),SERVICE_LOG_PATH=_0x12493c(LOG_DIR,_0x11b7ab(0x56,0x203)+_0x6eb3(0x18b,0x27)),SERVICE_ERROR_LOG_PATH=_0x12493c(LOG_DIR,'bridge-c'+_0x6eb3(0xfb,0x1a9)+_0x11b7ab(0x161,0x307)),MACOS_PLIST_PATH=_0x12493c(_0xdfb285(),'Library',_0x11b7ab(0x1ef,0x45)+_0x6eb3(0x17c,0xb1),SERVICE_LABEL+_0x6eb3(0x255,0x7b)),LINUX_SERVICE_PATH=_0x12493c(_0xdfb285(),'.config',_0x11b7ab(-0x8b,-0x37),_0x6eb3(-0x1ad,-0xa7),SYSTEMD_UNIT_NAME);function getServiceProgramArgs(_0x3697f1={},_0xd6ad17=process[_0x11b7ab(-0x49,0x1b)]){const _0x16427c={_0x2ac6b3:0x293,_0x10c96f:0x337,_0xdefe8a:0x4a9,_0x14ffb0:0x171,_0x4180bb:0x54b,_0x102399:0x208,_0x5e7313:0x40f,_0x5ea959:0x332,_0x4b59c8:0x101,_0x5cc584:0x2b,_0x36156a:0x67,_0xce8e47:0x24d,_0x4d828f:0x2ed,_0x6e026:0x15e,_0x513793:0x277,_0x3a403c:0x61,_0x29eb3a:0x105,_0x4b2b05:0x4c0,_0x171f82:0x274,_0x35c105:0xc1},_0x2726bf={_0x4a972b:0x60};function _0x54d73d(_0x3777fa,_0x36fd67){return _0x11b7ab(_0x36fd67,_0x3777fa-0x2e9);}const _0x5d4592={};_0x5d4592[_0x62bc4e(_0x16427c._0x2ac6b3,_0x16427c._0x10c96f)]=function(_0x3bae44,_0x11aebb){return _0x3bae44!==_0x11aebb;};const _0x371fb7=_0x5d4592;function _0x62bc4e(_0x256950,_0xba85a){return _0x11b7ab(_0xba85a,_0x256950- -_0x2726bf._0x4a972b);}const _0x549683=_0x3697f1['nodePath']?.[_0x54d73d(0x3e8,_0x16427c._0xdefe8a)]()||process[_0x62bc4e(0x1f0,_0x16427c._0x14ffb0)],_0x464af2=resolveScriptPath(_0x3697f1[_0x54d73d(0x283,0x2cd)+'th']);if(!_0x464af2)throw new Error(_0x54d73d(_0x16427c._0x4180bb,0x637)+_0x54d73d(_0x16427c._0x102399,_0x16427c._0x5e7313)+_0x54d73d(_0x16427c._0x5ea959,0x481)+_0x62bc4e(-_0x16427c._0x4b59c8,-0x272)+_0x62bc4e(-_0x16427c._0x5cc584,-0x234)+_0x54d73d(0x553,0x712)+_0x62bc4e(_0x16427c._0x36156a,0x4e)+_0x54d73d(_0x16427c._0xce8e47,_0x16427c._0x4d828f));if(_0x371fb7[_0x62bc4e(0x293,0x329)](_0xd6ad17,_0x62bc4e(-_0x16427c._0x6e026,-0x11b))){const _0x58defd={};_0x58defd[_0x54d73d(0x276,_0x16427c._0x513793)]=_0x549683,_0x58defd[_0x62bc4e(-0xc6,_0x16427c._0x3a403c)+'th']=_0x464af2,_0x58defd[_0x62bc4e(-_0x16427c._0x29eb3a,-0x285)]=process.env.PATH??'';const _0x36a428=writeServiceLauncher(_0x58defd);return ensureLaunchScriptExecutable(_0x36a428,_0xd6ad17),[_0x36a428];}return[_0x549683,_0x464af2,_0x54d73d(_0x16427c._0x4b2b05,0x41d),_0x62bc4e(_0x16427c._0x171f82,_0x16427c._0x35c105)+'e'];}function getServiceStatus(){const _0x559ed2={_0x5d49b5:0x210,_0xa2a10:0x312,_0x25268b:0x1e4,_0x21dbd6:0x3dc,_0x1e29f2:0x4d5,_0x23030c:0x142,_0x43cdc7:0x22d,_0x4d0d91:0x2e,_0x291c0c:0x21d,_0x2340f3:0x14e,_0x2cf22e:0xf6,_0x23723f:0x6,_0xdd1482:0x33b,_0x86519f:0x3b9,_0x48b9b3:0x40f,_0x36e264:0x104,_0x1745e0:0x202,_0x7ed3f:0x101,_0x1404ae:0x36,_0x2bda4a:0x222,_0x5aa632:0x140,_0x39eb9b:0x1fe,_0x1777bd:0x313,_0x423857:0x2d1,_0x20c8d7:0xdb,_0x6df5f9:0xa8,_0x25d1d7:0x10a,_0x39755a:0x1b6},_0x308149={'xgdZr':function(_0x123f35,_0x1ae82d){return _0x123f35(_0x1ae82d);},'eGXTo':function(_0x27a15b){return _0x27a15b();},'ehtEg':function(_0x29e87a,_0x14527b){return _0x29e87a!=_0x14527b;},'dSzGd':function(_0x2993a0,_0x179b48){return _0x2993a0(_0x179b48);},'nWXQG':_0x14e906(_0x559ed2._0x5d49b5,_0x559ed2._0xa2a10)+_0xaefb8f(_0x559ed2._0x25268b,0x197),'bheji':_0xaefb8f(_0x559ed2._0x21dbd6,_0x559ed2._0x1e29f2)+'l'};ensureServiceDirs();const _0x27d5cc=readServiceState()?.[_0xaefb8f(_0x559ed2._0x23030c,_0x559ed2._0x43cdc7)]??null;function _0xaefb8f(_0x52389a,_0x399bb){return _0x11b7ab(_0x399bb,_0x52389a-0x249);}const _0x543f95={'installed':![],'running':_0x27d5cc!=null&&_0x308149[_0xaefb8f(0x4e1,0x464)](isPidRunning,_0x27d5cc),'method':_0x308149['eGXTo'](detectServiceMethod),'servicePath':getServicePath(),'logPath':SERVICE_LOG_PATH,'errorLogPath':SERVICE_ERROR_LOG_PATH,'pid':_0x27d5cc};_0x308149[_0x14e906(0x212,_0x559ed2._0x4d0d91)](_0x543f95[_0x14e906(-_0x559ed2._0x291c0c,-0xf6)],null)&&!_0x543f95[_0x14e906(0x51,0x36)]&&(clearServiceState(_0x543f95[_0xaefb8f(0x142,_0x559ed2._0x2340f3)]),_0x543f95[_0x14e906(0xe8,-_0x559ed2._0x2cf22e)]=null);function _0x14e906(_0x52fbb1,_0x5b36f3){return _0x11b7ab(_0x52fbb1,_0x5b36f3-0x11);}switch(_0x543f95[_0x14e906(0x1f8,-_0x559ed2._0x23723f)]){case _0xaefb8f(0x4ca,_0x559ed2._0xdd1482)+_0xaefb8f(_0x559ed2._0x86519f,0x540):_0x543f95[_0xaefb8f(0x45a,_0x559ed2._0x48b9b3)+'d']=_0x308149[_0x14e906(_0x559ed2._0x36e264,_0x559ed2._0x1745e0)](_0x44150d,MACOS_PLIST_PATH);_0x543f95['installe'+'d']&&(_0x543f95[_0xaefb8f(0x26e,_0x559ed2._0x7ed3f)]=commandSucceeds('launchct'+'l',[_0xaefb8f(0x236,0x31c),SERVICE_LABEL])||_0x543f95[_0x14e906(-_0x559ed2._0x7ed3f,_0x559ed2._0x1404ae)]);return _0x543f95;case _0x308149[_0xaefb8f(0x1c7,0x25a)]:_0x543f95['installe'+'d']=_0x44150d(LINUX_SERVICE_PATH);_0x543f95[_0x14e906(0x115,_0x559ed2._0x2bda4a)+'d']&&(_0x543f95[_0x14e906(_0x559ed2._0x5aa632,0x36)]=commandSucceeds(_0x308149[_0x14e906(_0x559ed2._0x39eb9b,0x2e7)],[_0x14e906(_0x559ed2._0x1777bd,_0x559ed2._0x423857),'is-activ'+'e','--quiet',SYSTEMD_UNIT_NAME])||_0x543f95['running']);return _0x543f95;case _0x14e906(-_0x559ed2._0x20c8d7,_0x559ed2._0x6df5f9)+_0x14e906(_0x559ed2._0x25d1d7,-0xd9)+'stry':_0x543f95[_0x14e906(0x22b,0x222)+'d']=commandSucceeds(_0xaefb8f(0x48a,0x3f4),[_0xaefb8f(0x373,_0x559ed2._0x39755a),'HKCU\x5cSof'+_0xaefb8f(0x2c7,0x3b4)+_0x14e906(-0x13e,-0x67)+_0xaefb8f(0x1ab,0x366)+_0xaefb8f(0x15c,0x2d5)+_0xaefb8f(0x49a,0x4f7)+'un','/v',WINDOWS_RUN_KEY]);return _0x543f95;default:return _0x543f95;}}function installService(_0x158a50={}){const _0x491fa9={_0x422861:0x53f,_0x146851:0x1bd,_0x3d0327:0x733,_0x3ef3df:0xdc,_0x5e821b:0x559,_0x942b69:0x7b,_0x30c8fe:0xf1,_0x78fe26:0x5c,_0x5d85ca:0x2d,_0x6ebb74:0x17,_0x27b320:0x162,_0x5e453c:0x321,_0x1e998d:0x72,_0x28724e:0x15c,_0x4ce0f5:0xca,_0x7f8cb5:0x44e,_0x3ac672:0x40f,_0x3471d8:0x13d,_0x2cc9f0:0x199,_0x58b8ba:0x481,_0x10abe9:0x464,_0x86c4c1:0x3e1,_0x450b12:0x148,_0x5c3345:0x57b,_0x52d598:0x46,_0x7b1803:0x9c,_0x38c845:0x3c,_0x3b4b18:0x36c,_0x6bd72b:0x52a,_0x588591:0x367,_0x3ccd3a:0x1e1,_0x26099a:0x101,_0x48df19:0x2d6},_0xa55585={_0x491ff0:0x2bb},_0x4faab7={_0x5a7b7a:0x127};function _0x46e58f(_0x3646a4,_0x14db78){return _0x11b7ab(_0x3646a4,_0x14db78- -_0x4faab7._0x5a7b7a);}const _0x1a575f={'gKYqn':'darwin','MVTKa':function(_0x3c646f,_0x5454d9,_0x481e27,_0x26a7a6){return _0x3c646f(_0x5454d9,_0x481e27,_0x26a7a6);},'zVfnq':_0xc3fb1(_0x491fa9._0x422861,0x3d3),'mcQyy':_0xc3fb1(0x24d,_0x491fa9._0x146851),'KQTcV':_0xc3fb1(_0x491fa9._0x3d0327,0x59b),'flMCf':_0xc3fb1(_0x491fa9._0x3ef3df,0x241)+_0xc3fb1(0x304,0x339)+_0xc3fb1(0xde,0x243)+_0x46e58f(-0x2d4,-0x1c5)+_0x46e58f(-0x351,-0x214)+_0xc3fb1(_0x491fa9._0x5e821b,0x50c)+'un','btFcV':_0x46e58f(_0x491fa9._0x942b69,-_0x491fa9._0x30c8fe)};function _0xc3fb1(_0x2ba0c7,_0x4e93f8){return _0x11b7ab(_0x2ba0c7,_0x4e93f8-_0xa55585._0x491ff0);}ensureServiceDirs();const _0x54291c=getServiceProgramArgs(_0x158a50);switch(process[_0xc3fb1(0x412,0x2d6)]){case _0x1a575f['gKYqn']:_0x1a575f[_0x46e58f(0x1b8,0x1e1)](_0x301ed4,MACOS_PLIST_PATH,buildMacosPlist(_0x54291c,SERVICE_LOG_PATH,SERVICE_ERROR_LOG_PATH),_0x1a575f[_0x46e58f(-0x255,-_0x491fa9._0x78fe26)]),execIgnoreFailure(_0x46e58f(-0x1e6,-0x162)+'l',[_0x46e58f(-0xa3,-0xcc),'-w',MACOS_PLIST_PATH]);const _0x6b87ea={};_0x6b87ea[_0xc3fb1(0x239,0x346)]=_0x46e58f(0xcf,_0x491fa9._0x5d85ca),_0x1a575f[_0x46e58f(-_0x491fa9._0x6ebb74,0x1e1)](execFileSync,_0x46e58f(-0x29f,-_0x491fa9._0x27b320)+'l',[_0xc3fb1(0x502,0x33b),'-w',MACOS_PLIST_PATH],_0x6b87ea);break;case _0xc3fb1(0x128,_0x491fa9._0x5e453c):const _0x2c7b51={};_0x2c7b51[_0x46e58f(-_0x491fa9._0x1e998d,-_0x491fa9._0x28724e)+'e']=!![],_0x40ab56(dirname(LINUX_SERVICE_PATH),_0x2c7b51),_0x301ed4(LINUX_SERVICE_PATH,buildLinuxSystemdUnit(_0x54291c,SERVICE_LOG_PATH,SERVICE_ERROR_LOG_PATH),_0x1a575f[_0x46e58f(-_0x491fa9._0x4ce0f5,-0x5c)]);const _0x5d79c2={};_0x5d79c2['stdio']=_0xc3fb1(_0x491fa9._0x7f8cb5,_0x491fa9._0x3ac672),execFileSync('systemct'+'l',[_0x46e58f(_0x491fa9._0x3471d8,_0x491fa9._0x2cc9f0),_0xc3fb1(0x337,_0x491fa9._0x58b8ba)+_0xc3fb1(_0x491fa9._0x10abe9,0x535)],_0x5d79c2);const _0x4360bf={};_0x4360bf[_0xc3fb1(_0x491fa9._0x86c4c1,0x346)]=_0xc3fb1(0x58a,_0x491fa9._0x3ac672),_0x1a575f[_0x46e58f(_0x491fa9._0x450b12,0x1e1)](execFileSync,'systemct'+'l',[_0xc3fb1(0x5b8,_0x491fa9._0x5c3345),_0xc3fb1(0x593,0x5b7),'--now',SYSTEMD_UNIT_NAME],_0x4360bf);break;case _0x1a575f[_0x46e58f(-0x253,-0x181)]:stopRunningProcess();const _0x59d72c={};_0x59d72c[_0x46e58f(_0x491fa9._0x52d598,-_0x491fa9._0x7b1803)]=_0xc3fb1(0x4de,0x40f),execFileSync('reg',[_0x1a575f[_0x46e58f(-0x2dd,-0x1d8)],_0x1a575f['flMCf'],'/v',WINDOWS_RUN_KEY,'/t',_0x1a575f['btFcV'],'/d',buildWindowsRunCommand(_0x54291c),'/f'],_0x59d72c),startDetachedWindowsService(_0x54291c);break;default:throw new Error('Unsuppor'+_0x46e58f(-0x2d8,-0x213)+_0x46e58f(-0x19b,-_0x491fa9._0x38c845)+_0xc3fb1(_0x491fa9._0x3b4b18,_0x491fa9._0x6bd72b)+_0x46e58f(_0x491fa9._0x38c845,0xd2)+_0xc3fb1(0x4b5,_0x491fa9._0x588591)+_0x46e58f(_0x491fa9._0x3ccd3a,_0x491fa9._0x26099a)+process[_0xc3fb1(0x11e,_0x491fa9._0x48df19)]);}return getServiceStatus();}function restartService(_0x4172ce={}){const _0x56faff={_0x43ace1:0x783,_0x19edce:0x696,_0x418bdf:0x1ed,_0x5c8a1d:0x53e,_0x3be77a:0x143,_0x2c7b33:0x2f6,_0x3d1efe:0x1dd,_0x4a7672:0x31,_0x31fa6d:0x7f,_0xa2b25c:0x1a4,_0x2882d9:0x4ee,_0x1e20a7:0x500,_0x397f2c:0x682,_0x512b91:0x806,_0xaa9515:0x77,_0x106efe:0x17b,_0x183f00:0x643,_0x4e95a2:0x37e,_0x15582d:0x457,_0x4e83b9:0xce,_0x5b460e:0xfb,_0x3dd1ba:0x1f,_0x36f851:0xbd,_0x117122:0x103,_0x3e4962:0x4ba,_0x8241e:0x80a,_0x1ff637:0x14,_0x341701:0x4c0,_0x5297ca:0x68f,_0xf663d6:0x100,_0x37a7fe:0x7fb,_0x285b96:0x7a,_0x37215e:0x5c6,_0x76951d:0x559,_0x36be23:0x257,_0x58026f:0x14f,_0x216e00:0x64,_0x27812f:0x5b9,_0x746350:0x3bc,_0x3eaefa:0x2dd,_0x32cf25:0x78c,_0x5de237:0x755,_0x1379ad:0x571,_0x55b9ae:0x53e,_0xc1c79e:0x44f,_0x3cb72b:0x2fb,_0x4c3774:0x101,_0x15ce2c:0x667,_0x39c0d6:0x6bf,_0x4f9052:0x5cf,_0x5a0e79:0x807},_0x2e10f1={_0x3a5b1f:0x16},_0x52a895={_0x337162:0x53b},_0x39f56a={'gndYX':function(_0x27ee65){return _0x27ee65();},'LDayH':_0x146fc4(_0x56faff._0x43ace1,_0x56faff._0x19edce),'NIBoU':function(_0x108554,_0x5a75b2,_0x4deb03,_0x597fe3){return _0x108554(_0x5a75b2,_0x4deb03,_0x597fe3);},'kgrtp':_0x203347(_0x56faff._0x418bdf,0x71),'hGkSq':function(_0xbb8a86,_0x5b8866,_0x2cee19,_0x5d522f){return _0xbb8a86(_0x5b8866,_0x2cee19,_0x5d522f);},'TuRGc':'launchct'+'l','AAMhW':'linux','phhhb':function(_0x503a88,_0x16b68b){return _0x503a88(_0x16b68b);},'ASqrG':function(_0x5d7d6c,_0x19e7cd){return _0x5d7d6c(_0x19e7cd);},'ZLwpX':function(_0x14262b,_0x52ab60,_0x211656){return _0x14262b(_0x52ab60,_0x211656);},'aNClu':function(_0x124c6e,_0x21bfcc){return _0x124c6e(_0x21bfcc);},'AXAIA':_0x146fc4(0x62f,0x653),'jPaLu':_0x146fc4(_0x56faff._0x5c8a1d,0x68f),'yrsxo':_0x146fc4(0x4f5,0x6ce)+'l','QcQmS':_0x203347(_0x56faff._0x3be77a,_0x56faff._0x2c7b33)};_0x39f56a[_0x203347(0x299,_0x56faff._0x3d1efe)](ensureServiceDirs);const _0x4a6c25=getServiceProgramArgs(_0x4172ce);switch(process[_0x203347(-0x77,_0x56faff._0x4a7672)]){case _0x39f56a[_0x146fc4(0x647,0x740)]:if(!_0x44150d(MACOS_PLIST_PATH))return installService(_0x4172ce);_0x39f56a['NIBoU'](_0x301ed4,MACOS_PLIST_PATH,_0x39f56a[_0x203347(_0x56faff._0x31fa6d,_0x56faff._0xa2b25c)](buildMacosPlist,_0x4a6c25,SERVICE_LOG_PATH,SERVICE_ERROR_LOG_PATH),'utf8'),execIgnoreFailure(_0x146fc4(_0x56faff._0x2882d9,_0x56faff._0x1e20a7)+'l',[_0x39f56a[_0x146fc4(0x542,_0x56faff._0x397f2c)],'-w',MACOS_PLIST_PATH]);const _0x2c31bc={};_0x2c31bc['stdio']=_0x146fc4(_0x56faff._0x512b91,0x68f),_0x39f56a[_0x203347(_0x56faff._0xaa9515,_0x56faff._0x106efe)](execFileSync,_0x39f56a['TuRGc'],[_0x146fc4(_0x56faff._0x183f00,0x5bb),'-w',MACOS_PLIST_PATH],_0x2c31bc);break;case _0x39f56a[_0x146fc4(_0x56faff._0x4e95a2,_0x56faff._0x15582d)]:if(!_0x39f56a['phhhb'](_0x44150d,LINUX_SERVICE_PATH))return _0x39f56a[_0x203347(_0x56faff._0x4e83b9,0x15)](installService,_0x4172ce);const _0x475403={};_0x475403[_0x203347(-_0x56faff._0x5b460e,-_0x56faff._0x3dd1ba)+'e']=!![],_0x39f56a[_0x203347(-0x41,-_0x56faff._0x36f851)](_0x40ab56,_0x39f56a[_0x203347(-0xf4,-0x92)](dirname,LINUX_SERVICE_PATH),_0x475403),_0x301ed4(LINUX_SERVICE_PATH,_0x39f56a[_0x203347(0x1a2,0x1a4)](buildLinuxSystemdUnit,_0x4a6c25,SERVICE_LOG_PATH,SERVICE_ERROR_LOG_PATH),_0x39f56a[_0x203347(_0x56faff._0x117122,0x6f)]);const _0x4ab2a0={};_0x4ab2a0['stdio']=_0x39f56a[_0x146fc4(0x4ca,_0x56faff._0x3e4962)],execFileSync(_0x146fc4(_0x56faff._0x8241e,0x6ce)+'l',['--user','daemon-r'+_0x146fc4(0x61a,0x7b5)],_0x4ab2a0);const _0x553f3f={};_0x553f3f[_0x203347(-_0x56faff._0x1ff637,0xa1)]=_0x146fc4(_0x56faff._0x341701,_0x56faff._0x5297ca),execFileSync(_0x39f56a[_0x203347(_0x56faff._0xf663d6,-0xd2)],[_0x146fc4(0x7c1,_0x56faff._0x37a7fe),'restart',SYSTEMD_UNIT_NAME],_0x553f3f);break;case _0x203347(-_0x56faff._0x285b96,-0xe8):stopRunningProcess();const _0x2080c3={};_0x2080c3[_0x146fc4(0x402,_0x56faff._0x37215e)]=_0x146fc4(_0x56faff._0x76951d,0x68f),execFileSync(_0x203347(0x457,_0x56faff._0x36be23),[_0x39f56a[_0x203347(0x17a,_0x56faff._0x58026f)],_0x203347(-0x1d7,-_0x56faff._0x216e00)+_0x146fc4(0x4dd,_0x56faff._0x27812f)+_0x146fc4(_0x56faff._0x746350,0x4c3)+_0x146fc4(_0x56faff._0x3eaefa,0x49d)+_0x203347(-0x250,-0xd7)+_0x146fc4(0x82b,_0x56faff._0x32cf25)+'un','/v',WINDOWS_RUN_KEY,'/t',_0x146fc4(_0x56faff._0x5de237,_0x56faff._0x1379ad),'/d',buildWindowsRunCommand(_0x4a6c25),'/f'],_0x2080c3),startDetachedWindowsService(_0x4a6c25);break;default:throw new Error('Unsuppor'+_0x146fc4(_0x56faff._0x55b9ae,_0x56faff._0xc1c79e)+_0x203347(_0x56faff._0x3cb72b,_0x56faff._0x4c3774)+_0x146fc4(_0x56faff._0x15ce2c,0x7aa)+_0x146fc4(_0x56faff._0x39c0d6,_0x56faff._0x4f9052)+_0x146fc4(0x68f,_0x56faff._0x5a0e79)+process['platform']);}function _0x146fc4(_0x12d13f,_0xd5d86a){return _0x11b7ab(_0x12d13f,_0xd5d86a-_0x52a895._0x337162);}function _0x203347(_0x437dc6,_0x44c00f){return _0x11b7ab(_0x437dc6,_0x44c00f-_0x2e10f1._0x3a5b1f);}return getServiceStatus();}function uninstallService(){const _0x1a3044={_0x311d8e:0xc7,_0x24871d:0x1f7,_0x2f6782:0x2a5,_0x3323c1:0xd5,_0x26220e:0x9e,_0x453578:0x32a,_0x4a83c5:0x40,_0x1a5954:0x188,_0xf62762:0x4c,_0x1f08aa:0x108,_0x171573:0x230,_0x2edbb0:0x1bb,_0x467dae:0x1fe},_0x3311dd={_0x107eaa:0x186};function _0x4252e0(_0x2bc5e7,_0x150b21){return _0x11b7ab(_0x2bc5e7,_0x150b21-0x14a);}function _0x65acfa(_0x81e8ea,_0x5b17c6){return _0x11b7ab(_0x81e8ea,_0x5b17c6- -_0x3311dd._0x107eaa);}const _0x4e3fd9={};_0x4e3fd9[_0x4252e0(0x1ce,0xd5)]=_0x65acfa(-_0x1a3044._0x311d8e,0x13a),_0x4e3fd9['rVjra']=_0x4252e0(0x4d,0x1cb);const _0x41e8a7=_0x4e3fd9;stopRunningProcess();switch(process[_0x4252e0(_0x1a3044._0x24871d,0x165)]){case _0x4252e0(0x3c0,_0x1a3044._0x2f6782):execIgnoreFailure('launchct'+'l',[_0x65acfa(-0x215,-0x12b),'-w',MACOS_PLIST_PATH]),rmIfExists(MACOS_PLIST_PATH);break;case'linux':_0x44150d(LINUX_SERVICE_PATH)&&(execIgnoreFailure(_0x4252e0(0x4cc,0x2dd)+'l',[_0x41e8a7[_0x4252e0(-0xb9,_0x1a3044._0x3323c1)],_0x41e8a7[_0x65acfa(-_0x1a3044._0x26220e,-0x1e8)],_0x4252e0(_0x1a3044._0x453578,0x1d0),SYSTEMD_UNIT_NAME]),rmIfExists(LINUX_SERVICE_PATH),execIgnoreFailure('systemct'+'l',[_0x41e8a7['GDqmi'],_0x65acfa(0x243,_0x1a3044._0x4a83c5)+'eload']));break;case _0x4252e0(-_0x1a3044._0x1a5954,_0x1a3044._0xf62762):execIgnoreFailure(_0x65acfa(_0x1a3044._0x1f08aa,0xbb),[_0x65acfa(-0x272,-0x14b),_0x65acfa(-_0x1a3044._0x171573,-0x200)+_0x4252e0(_0x1a3044._0x2edbb0,0x1c8)+_0x65acfa(-0x31a,-_0x1a3044._0x467dae)+_0x65acfa(-0x76,-0x224)+_0x4252e0(-0x64,0x5d)+'ersion\x5cR'+'un','/v',WINDOWS_RUN_KEY,'/f']);break;default:break;}return clearServiceState(),getServiceStatus();}function stopService(){const _0x58f257={_0x29f7c6:0x27e,_0x474b90:0x3f6,_0x2f61aa:0x21b,_0x111e7b:0x3e0,_0x317a66:0xfc,_0x292407:0x19a,_0x39e729:0x2bf,_0x3a7b7e:0xd,_0x3532cd:0x50f,_0x22d7a7:0x504,_0x2caf3f:0x1ff,_0x39cf46:0xad,_0x397133:0x9d,_0x3c5b5d:0x38},_0xb71397={_0x4342fc:0x3be},_0x42869a={'nesoa':function(_0x98e840){return _0x98e840();},'NxDfj':function(_0x3f873a,_0x5e7abd){return _0x3f873a(_0x5e7abd);},'iMOsL':_0x202e19(0x3d7,0x4f9),'NRbek':function(_0xca6bac,_0x28e1d4,_0x471567){return _0xca6bac(_0x28e1d4,_0x471567);},'iUAzF':_0x202e19(_0x58f257._0x29f7c6,0x417)};_0x42869a[_0x202e19(_0x58f257._0x474b90,0x32c)](stopRunningProcess);function _0x202e19(_0x25a7ce,_0x95c4c3){return _0x6eb3(_0x95c4c3,_0x25a7ce-_0xb71397._0x4342fc);}switch(process[_0x17f897(-_0x58f257._0x2f61aa,-0xa6)]){case'darwin':_0x42869a[_0x202e19(0x3e0,_0x58f257._0x111e7b)](_0x44150d,MACOS_PLIST_PATH)&&execIgnoreFailure(_0x17f897(-0x24,-_0x58f257._0x317a66)+'l',[_0x42869a[_0x17f897(_0x58f257._0x292407,0x186)],MACOS_PLIST_PATH]);break;case _0x202e19(0x3e2,_0x58f257._0x39e729):_0x44150d(LINUX_SERVICE_PATH)&&_0x42869a[_0x17f897(_0x58f257._0x3a7b7e,-0x197)](execIgnoreFailure,_0x202e19(_0x58f257._0x3532cd,_0x58f257._0x22d7a7)+'l',[_0x17f897(0x3ea,_0x58f257._0x2caf3f),_0x17f897(-_0x58f257._0x39cf46,_0x58f257._0x397133),SYSTEMD_UNIT_NAME]);break;case _0x42869a[_0x17f897(-0x16d,-_0x58f257._0x3c5b5d)]:break;default:break;}function _0x17f897(_0x23280b,_0x183a69){return _0x6eb3(_0x23280b,_0x183a69- -0x7f);}return clearServiceState(),getServiceStatus();}function writeServiceState(_0x126bca=process[_0x6eb3(-0x1f9,-0x149)]){const _0x19acc1={_0x254e4f:0x622,_0x3c874a:0x5fa,_0x298691:0x44,_0x4b6472:0x5d8},_0x83c948={_0x2afec9:0x502};ensureServiceDirs();const _0x30d7f9={'pid':_0x126bca,'startedAt':new Date()[_0x4e30c9(_0x19acc1._0x254e4f,_0x19acc1._0x3c874a)+_0x20d4cd(_0x19acc1._0x298691,0x61)]()};function _0x4e30c9(_0x4ae1dd,_0x5bf7f4){return _0x6eb3(_0x5bf7f4,_0x4ae1dd-_0x83c948._0x2afec9);}function _0x20d4cd(_0x379a89,_0xd4b102){return _0x6eb3(_0xd4b102,_0x379a89-0xd8);}_0x301ed4(SERVICE_STATE_PATH,JSON['stringif'+'y'](_0x30d7f9,null,0x2)+'\x0a',_0x4e30c9(_0x19acc1._0x4b6472,0x7e0));}function clearServiceState(_0x4a631f){const _0xa24f60={_0x5c3603:0x62,_0x3790c1:0x1d8},_0x3db6e6={_0x14248d:0x2a5},_0x46243f={};_0x46243f[_0x24b299(-0x1e8,-_0xa24f60._0x5c3603)]=function(_0x21b9e9,_0x3e9663){return _0x21b9e9!=_0x3e9663;};const _0x25d61c=_0x46243f;function _0x1a49f0(_0x41a071,_0xc7ba83){return _0x6eb3(_0xc7ba83,_0x41a071-_0x3db6e6._0x14248d);}if(!_0x44150d(SERVICE_STATE_PATH))return;function _0x24b299(_0x5f4d9f,_0x2117b0){return _0x6eb3(_0x2117b0,_0x5f4d9f- -0xcb);}if(_0x25d61c[_0x1a49f0(0x188,0x226)](_0x4a631f,null)){const _0x505380=readServiceState();if(_0x505380&&_0x505380[_0x24b299(-0x214,-_0xa24f60._0x3790c1)]!==_0x4a631f)return;}rmIfExists(SERVICE_STATE_PATH);}function getServicePaths(){const _0x53e154={_0x3ef178:0x400},_0x4d76c5={'cbGxV':function(_0x126481){return _0x126481();}};function _0x2fc3af(_0xeb6410,_0xbee75b){return _0x6eb3(_0xbee75b,_0xeb6410-0x33e);}return{'logPath':SERVICE_LOG_PATH,'errorLogPath':SERVICE_ERROR_LOG_PATH,'servicePath':_0x4d76c5[_0x2fc3af(_0x53e154._0x3ef178,0x53d)](getServicePath)};}function buildMacosPlist(_0xee6705,_0x7eda19,_0x5cf101){const _0x736083={_0x4b3604:0x4a0,_0x5d6e47:0x23a,_0x161dda:0x202,_0x57c2ef:0x337,_0x3a61a9:0x3e4,_0x4a686f:0x5a3,_0x5520d3:0x573,_0x4328e5:0x286,_0x116f08:0x3b3,_0x2b46da:0x4f4,_0x2fa9bb:0x201,_0x4f695e:0x2b2,_0x1cb0b3:0x48e,_0x10b04e:0x66d,_0x512822:0x461,_0x343e0f:0x5ff,_0x5ace77:0x540,_0x5e8f74:0x5e6,_0x595e7c:0x4dd,_0xae81eb:0x1c5,_0x409755:0x2cd,_0x3c4141:0x2c0,_0x23de87:0x34c,_0x151b6a:0x230,_0x2d3230:0x2d3,_0x50a320:0x268,_0xcce416:0x279,_0x465fc3:0x5c2,_0x3e66f3:0x192,_0x2f5eea:0x2bb,_0x57c0bb:0x43e,_0x592c16:0x546,_0x1a1f3e:0x3a7,_0x24f04f:0x181,_0x255661:0x60d,_0x4b3235:0x477,_0x5aa6c4:0x409,_0x1d2aaf:0x44f,_0x5791ca:0x41a};function _0x5662ad(_0x22797b,_0x4bb199){return _0x6eb3(_0x4bb199,_0x22797b-0x300);}const _0x384427={'EBMMr':function(_0x2dc825,_0x2b53c7){return _0x2dc825(_0x2b53c7);}},_0x54e92e=_0xee6705[_0x5662ad(_0x736083._0x4b3604,0x446)](_0xab1b0d=>_0x39a968(0x4cb,0x444)+'ing>'+escapeXml(_0xab1b0d)+(_0x5662ad(0x4b8,0x417)+'>'))[_0x39a968(_0x736083._0x5d6e47,_0x736083._0x161dda)]('\x0a');function _0x39a968(_0x53c645,_0x1767bd){return _0x6eb3(_0x1767bd,_0x53c645-0x29a);}return _0x39a968(_0x736083._0x57c2ef,_0x736083._0x3a61a9)+'rsion=\x221'+'.0\x22\x20enco'+'ding=\x22UT'+_0x5662ad(0x27c,0x1fa)+_0x5662ad(_0x736083._0x4a686f,_0x736083._0x5520d3)+'\x20plist\x20P'+_0x39a968(_0x736083._0x4328e5,_0x736083._0x116f08)+_0x39a968(0x321,_0x736083._0x2b46da)+_0x39a968(0x51f,0x34b)+'ST\x201.0//'+'EN\x22\x20\x22htt'+'p://www.'+_0x5662ad(_0x736083._0x2fa9bb,_0x736083._0x4f695e)+'m/DTDs/P'+_0x39a968(0x1f9,0x39e)+_0x5662ad(0x4a2,0x614)+_0x5662ad(_0x736083._0x1cb0b3,_0x736083._0x10b04e)+_0x39a968(0x3f9,0x529)+_0x39a968(_0x736083._0x512822,0x642)+_0x5662ad(0x44e,0x3b9)+_0x5662ad(0x5b3,_0x736083._0x343e0f)+_0x5662ad(_0x736083._0x5ace77,0x479)+'/key>\x0a\x20\x20'+'<string>'+SERVICE_LABEL+(_0x5662ad(0x4b8,_0x736083._0x5e8f74)+_0x5662ad(_0x736083._0x595e7c,0x6ab)+_0x39a968(_0x736083._0xae81eb,0xb4)+_0x5662ad(_0x736083._0x409755,0x188)+_0x5662ad(0x396,_0x736083._0x3c4141)+'\x20\x20<array'+'>\x0a')+_0x54e92e+(_0x5662ad(_0x736083._0x23de87,_0x736083._0x151b6a)+_0x39a968(_0x736083._0x2d3230,_0x736083._0x50a320)+_0x39a968(_0x736083._0xcce416,0x2ea)+_0x5662ad(_0x736083._0x465fc3,0x56c)+_0x39a968(_0x736083._0x3e66f3,0x323)+_0x39a968(0x1e9,0x3ef)+_0x5662ad(0x310,0x297)+_0x39a968(_0x736083._0x2f5eea,_0x736083._0x3a61a9)+'ey>\x0a\x20\x20<t'+'rue/>\x0a\x20\x20'+_0x39a968(_0x736083._0x57c0bb,0x2dd)+'ndardOut'+'Path</ke'+_0x5662ad(_0x736083._0x592c16,0x734)+_0x5662ad(0x36e,_0x736083._0x1a1f3e))+_0x384427[_0x39a968(_0x736083._0x24f04f,-0x47)](escapeXml,_0x7eda19)+(_0x5662ad(0x4b8,_0x736083._0x255661)+_0x39a968(_0x736083._0x4b3235,0x41f)+_0x5662ad(_0x736083._0x5aa6c4,0x22e)+_0x39a968(_0x736083._0x1d2aaf,0x310)+_0x5662ad(_0x736083._0x5791ca,0x604)+'\x0a\x20\x20<stri'+_0x5662ad(0x514,0x43d))+escapeXml(_0x5cf101)+('</string'+'>\x0a</dict'+'>\x0a</plis'+_0x5662ad(0x548,0x536));}function _0x2e58(_0x17e9c1,_0x4850cb){_0x17e9c1=_0x17e9c1-0x9c;const _0x164967=_0x39fb();let _0x5b6c10=_0x164967[_0x17e9c1];if(_0x2e58['iFHFNB']===undefined){var _0x2f63a8=function(_0x579bd){const _0xcca1de='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x30e3f1='',_0xab6a8e='',_0x3444d9=_0x30e3f1+_0x2f63a8;for(let _0x256910=0x0,_0x405f69,_0x5f0498,_0x25dff1=0x0;_0x5f0498=_0x579bd['charAt'](_0x25dff1++);~_0x5f0498&&(_0x405f69=_0x256910%0x4?_0x405f69*0x40+_0x5f0498:_0x5f0498,_0x256910++%0x4)?_0x30e3f1+=_0x3444d9['charCodeAt'](_0x25dff1+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x405f69>>(-0x2*_0x256910&0x6)):_0x256910:0x0){_0x5f0498=_0xcca1de['indexOf'](_0x5f0498);}for(let _0x42f194=0x0,_0x5cbdcf=_0x30e3f1['length'];_0x42f194<_0x5cbdcf;_0x42f194++){_0xab6a8e+='%'+('00'+_0x30e3f1['charCodeAt'](_0x42f194)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0xab6a8e);};_0x2e58['DtgYMl']=_0x2f63a8,_0x2e58['iLoHoW']={},_0x2e58['iFHFNB']=!![];}const _0x39fb8a=_0x164967[0x0],_0x2e58e1=_0x17e9c1+_0x39fb8a,_0x66a424=_0x2e58['iLoHoW'][_0x2e58e1];if(!_0x66a424){const _0x3b7e7d=function(_0x77fdae){this['qkFRGi']=_0x77fdae,this['fNEnHV']=[0x1,0x0,0x0],this['cCryDv']=function(){return'newState';},this['PMtqvh']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['KUeXxY']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x3b7e7d['prototype']['auYvHY']=function(){const _0x3019f9=new RegExp(this['PMtqvh']+this['KUeXxY']),_0x23fbf0=_0x3019f9['test'](this['cCryDv']['toString']())?--this['fNEnHV'][0x1]:--this['fNEnHV'][0x0];return this['BYrilr'](_0x23fbf0);},_0x3b7e7d['prototype']['BYrilr']=function(_0x5e3a68){if(!Boolean(~_0x5e3a68))return _0x5e3a68;return this['RnSxYw'](this['qkFRGi']);},_0x3b7e7d['prototype']['RnSxYw']=function(_0x2522e9){for(let _0x26c70d=0x0,_0x2a8847=this['fNEnHV']['length'];_0x26c70d<_0x2a8847;_0x26c70d++){this['fNEnHV']['push'](Math['round'](Math['random']())),_0x2a8847=this['fNEnHV']['length'];}return _0x2522e9(this['fNEnHV'][0x0]);},new _0x3b7e7d(_0x2e58)['auYvHY'](),_0x5b6c10=_0x2e58['DtgYMl'](_0x5b6c10),_0x2e58['iLoHoW'][_0x2e58e1]=_0x5b6c10;}else _0x5b6c10=_0x66a424;return _0x5b6c10;}function buildLinuxSystemdUnit(_0x2f6ce8,_0x2e65a5,_0x50a29f){const _0x4ccda1={_0x3f57c1:0x46b,_0x39a0a1:0x4f2,_0x462cf2:0x55,_0x17dfb4:0x3b3,_0x2fb016:0x2d1,_0x4b01ac:0x253,_0x23bb1e:0x8e,_0x53d281:0x3,_0x1573e6:0x17e,_0x346398:0x24b,_0xd1ed0d:0x408,_0x4a5eec:0x3d5,_0x4af744:0x2bd,_0x224051:0x2ee,_0x3339c7:0x580,_0xa97b65:0x4c4,_0x509ce1:0x19,_0x1b2fa6:0x1d2,_0x162853:0x158,_0x18ecbf:0x3df,_0xce6f34:0x39e,_0x38ade5:0x2d3,_0x2de5da:0x35a,_0x2777db:0x3c8,_0x341cba:0x25b,_0x2b5539:0x1ad,_0x1c8110:0x293,_0x3032a1:0x113,_0x104030:0x235,_0x3b9417:0x90},_0x47c04a={_0x2634b0:0x289},_0x12209a={_0x50bcb1:0x73},_0x2a9241={'Dulrd':function(_0x2c3374,_0x5ece9d){return _0x2c3374(_0x5ece9d);}};function _0x365b2e(_0x3a3cc6,_0x217512){return _0x11b7ab(_0x3a3cc6,_0x217512-_0x12209a._0x50bcb1);}function _0x5dd657(_0x584554,_0x4eb6e5){return _0x11b7ab(_0x4eb6e5,_0x584554-_0x47c04a._0x2634b0);}const _0x4fa764=_0x2f6ce8[_0x5dd657(_0x4ccda1._0x3f57c1,_0x4ccda1._0x39a0a1)](escapeSystemdArg)[_0x365b2e(0x239,_0x4ccda1._0x462cf2)]('\x20');return'[Unit]\x0aD'+'escripti'+'on=Clawk'+'et\x20Bridg'+'e\x20CLI\x0aAf'+_0x365b2e(_0x4ccda1._0x17dfb4,_0x4ccda1._0x2fb016)+_0x5dd657(_0x4ccda1._0x4b01ac,0x28c)+_0x365b2e(-_0x4ccda1._0x23bb1e,0x158)+_0x365b2e(-_0x4ccda1._0x53d281,_0x4ccda1._0x1573e6)+_0x5dd657(_0x4ccda1._0x346398,0x362)+_0x365b2e(_0x4ccda1._0xd1ed0d,0x318)+_0x365b2e(0xf9,0x2fc)+_0x365b2e(_0x4ccda1._0x4a5eec,_0x4ccda1._0x4af744)+_0x5dd657(_0x4ccda1._0x224051,0x175)+_0x5dd657(_0x4ccda1._0x3339c7,0x50b)+_0x5dd657(0x515,_0x4ccda1._0xa97b65)+_0x4fa764+(_0x365b2e(_0x4ccda1._0x509ce1,_0x4ccda1._0x1b2fa6)+'=always\x0a'+_0x5dd657(0x21f,_0x4ccda1._0x162853)+_0x5dd657(0x31b,0x4d9)+_0x365b2e(_0x4ccda1._0x18ecbf,0x322)+'ctory=')+_0x2a9241[_0x365b2e(_0x4ccda1._0xce6f34,_0x4ccda1._0x38ade5)](escapeSystemdArg,SERVICE_DIR)+('\x0aStandar'+'dOutput='+_0x365b2e(0x319,0x196))+_0x2e65a5+(_0x5dd657(_0x4ccda1._0x2de5da,_0x4ccda1._0x2777db)+_0x365b2e(0x34a,0x233)+_0x5dd657(_0x4ccda1._0x341cba,_0x4ccda1._0x2b5539))+_0x50a29f+(_0x365b2e(_0x4ccda1._0x1c8110,_0x4ccda1._0x3032a1)+_0x5dd657(0x486,0x611)+_0x365b2e(-_0x4ccda1._0x104030,-_0x4ccda1._0x3b9417)+'ault.tar'+'get\x0a');}function getServicePath(){const _0x5eedb3={_0x3aa8da:0x536,_0x2641ea:0x28,_0x543a05:0xf6,_0x3d6559:0xb8,_0x442e4a:0xb9,_0x4b9956:0x33d,_0x402e0b:0x2ee,_0x1b43f6:0x62c,_0x5e1f44:0x5da},_0x3eb702={_0x5ca329:0x3e};function _0x3c9ff4(_0x3a4de1,_0x4b76be){return _0x11b7ab(_0x4b76be,_0x3a4de1-0x3db);}function _0x2f6780(_0x8ec2c8,_0x22774e){return _0x11b7ab(_0x22774e,_0x8ec2c8- -_0x3eb702._0x5ca329);}switch(process[_0x2f6780(-0x23,-0xe3)]){case _0x3c9ff4(_0x5eedb3._0x3aa8da,0x710):return MACOS_PLIST_PATH;case _0x2f6780(_0x5eedb3._0x2641ea,_0x5eedb3._0x543a05):return LINUX_SERVICE_PATH;case _0x3c9ff4(0x2dd,0x4b6):return _0x2f6780(-_0x5eedb3._0x3d6559,_0x5eedb3._0x442e4a)+_0x2f6780(0x40,0x97)+'crosoft\x5c'+_0x3c9ff4(_0x5eedb3._0x4b9956,0x1b6)+_0x3c9ff4(_0x5eedb3._0x402e0b,0x1c8)+_0x3c9ff4(_0x5eedb3._0x1b43f6,0x781)+'un\x5cClawk'+_0x3c9ff4(0x3ed,_0x5eedb3._0x5e1f44)+'Cli';default:return'';}}function detectServiceMethod(){const _0xe4b1fd={_0x1c69c3:0x61,_0xeb8056:0x634,_0x66f27b:0x65,_0x863ef2:0x210,_0xffbf0a:0x1ae,_0x42211e:0x459,_0x21e4b3:0xd7,_0x5bc917:0x597,_0xef481b:0x744,_0x5e2425:0x2cf,_0x17dde4:0x3e3},_0x401b12={_0x36fe80:0x43e},_0x462e80={_0x53cdf4:0x1d1};function _0xc69389(_0x146299,_0x47a038){return _0x11b7ab(_0x47a038,_0x146299- -_0x462e80._0x53cdf4);}function _0x4c8f88(_0x46827e,_0x5e24ec){return _0x11b7ab(_0x46827e,_0x5e24ec-_0x401b12._0x36fe80);}const _0x2f4d68={};_0x2f4d68['DEdeo']='darwin',_0x2f4d68['kqEMl']='launchag'+_0xc69389(-_0xe4b1fd._0x1c69c3,-0x16c),_0x2f4d68['GPVMi']=_0x4c8f88(_0xe4b1fd._0xeb8056,0x4a4),_0x2f4d68[_0xc69389(_0xe4b1fd._0x66f27b,_0xe4b1fd._0x863ef2)]=_0xc69389(0x130,_0xe4b1fd._0xffbf0a)+'user';const _0xae0151=_0x2f4d68;switch(process[_0x4c8f88(0x346,_0xe4b1fd._0x42211e)]){case _0xae0151[_0xc69389(-0x94,-0x26f)]:return _0xae0151[_0xc69389(-0xc5,-_0xe4b1fd._0x21e4b3)];case _0xae0151[_0x4c8f88(_0xe4b1fd._0x5bc917,_0xe4b1fd._0xef481b)]:return _0xae0151[_0x4c8f88(0x48d,0x674)];case _0xc69389(-_0xe4b1fd._0x5e2425,-0x242):return _0x4c8f88(0x3d6,0x4d5)+'run-regi'+'stry';default:return _0x4c8f88(_0xe4b1fd._0x17dde4,0x574)+_0x4c8f88(0x477,0x631);}}function readServiceState(){const _0x4891af={_0x248e33:0xd7,_0x498a43:0x80,_0x15792d:0x1b1,_0x10b62c:0x18b,_0x3016e6:0x7c,_0x999941:0x1d3,_0x2773a9:0x48,_0x1aed35:0x21d,_0x125113:0xdd,_0x484a98:0x2b1},_0x473735={_0x4df946:0x14f};function _0x3bfa8f(_0x3ff822,_0x169bb5){return _0x11b7ab(_0x3ff822,_0x169bb5- -0x198);}const _0x10ab97={};function _0x1be75a(_0x21837b,_0x33da2a){return _0x11b7ab(_0x21837b,_0x33da2a-_0x473735._0x4df946);}_0x10ab97[_0x3bfa8f(_0x4891af._0x248e33,-0x7c)]=_0x3bfa8f(-0x75,-_0x4891af._0x498a43);const _0x5aafb2=_0x10ab97;if(!_0x44150d(SERVICE_STATE_PATH))return null;try{const _0x4475c1=JSON[_0x1be75a(0x25a,_0x4891af._0x15792d)](_0x34a7a2(SERVICE_STATE_PATH,_0x5aafb2[_0x3bfa8f(_0x4891af._0x10b62c,-_0x4891af._0x3016e6)]));if(!_0x4475c1[_0x1be75a(-0x11a,0x48)]||typeof _0x4475c1['pid']!==_0x3bfa8f(_0x4891af._0x999941,0x43))return null;return{'pid':_0x4475c1[_0x1be75a(0x5a,_0x4891af._0x2773a9)],'startedAt':_0x4475c1[_0x1be75a(0x1f7,_0x4891af._0x1aed35)+'t']??new Date(0x0)[_0x1be75a(_0x4891af._0x125113,_0x4891af._0x484a98)+'ing']()};}catch{return null;}}function stopRunningProcess(){const _0x5a8846={_0x30d6be:0x30e,_0x363350:0x19f,_0x4874de:0x337,_0x240927:0x43f,_0x1e3e24:0x50d,_0x191678:0x719,_0x5e4de1:0x5b5,_0x241a09:0x1d2,_0x18ef03:0x253},_0x56a399={_0x2e8939:0x44e};function _0x55dac1(_0x22c2ca,_0x28c9db){return _0x6eb3(_0x22c2ca,_0x28c9db-_0x56a399._0x2e8939);}const _0x68c5e3={'bUVpb':function(_0x355434,_0x5adaf0,_0x1fb388){return _0x355434(_0x5adaf0,_0x1fb388);},'IaAsW':'taskkill','nxMJf':_0x55dac1(0x2e0,0x30e)},_0x3d66a5=readServiceState();if(!_0x3d66a5)return;function _0x6eafbf(_0x171e53,_0x4f59de){return _0x6eb3(_0x171e53,_0x4f59de-0x39c);}_0x68c5e3[_0x55dac1(0x535,0x3a4)](execIgnoreFailure,process['platform']===_0x55dac1(0x2b8,_0x5a8846._0x30d6be)?_0x68c5e3[_0x6eafbf(_0x5a8846._0x363350,_0x5a8846._0x4874de)]:'kill',process['platform']===_0x68c5e3[_0x6eafbf(_0x5a8846._0x240927,_0x5a8846._0x1e3e24)]?[_0x55dac1(_0x5a8846._0x191678,_0x5a8846._0x5e4de1),String(_0x3d66a5[_0x6eafbf(_0x5a8846._0x241a09,_0x5a8846._0x18ef03)]),'/T','/F']:[_0x6eafbf(0x365,0x372),String(_0x3d66a5['pid'])]),clearServiceState(_0x3d66a5['pid']);}function isPidRunning(_0xd78c9d){const _0xf3c5df={_0x5f5020:0x549},_0x246e2d={_0x5c3163:0x2d1};function _0x5aa656(_0x26300b,_0x5be34d){return _0x11b7ab(_0x5be34d,_0x26300b-_0x246e2d._0x5c3163);}try{return process[_0x5aa656(_0xf3c5df._0x5f5020,0x6bf)](_0xd78c9d,0x0),!![];}catch{return![];}}function startDetachedWindowsService(_0x43ff83){const _0x1ecf78={_0x13b323:0x1d1,_0x4f5180:0x6de,_0x234ca4:0x2c1,_0xb1ba06:0x3f6,_0x324bf5:0x414,_0x2de1f8:0x2cf},_0x48ca23={_0xe3b870:0x3fa};function _0x272d77(_0x1a2767,_0x6e6c39){return _0x11b7ab(_0x1a2767,_0x6e6c39-0x25f);}const _0x509afb={'rgTEY':function(_0x13f297,_0x3e4901,_0x25baf1){return _0x13f297(_0x3e4901,_0x25baf1);}};function _0x3d1ef0(_0x18eb3e,_0x5f5dab){return _0x11b7ab(_0x18eb3e,_0x5f5dab-_0x48ca23._0xe3b870);}const _0x5b9edf=_0x509afb[_0x272d77(_0x1ecf78._0x13b323,0x1f2)](openSync,SERVICE_LOG_PATH,'a'),_0x2a86ea=openSync(SERVICE_ERROR_LOG_PATH,'a');try{const [_0x34ea40,..._0x2e71d0]=_0x43ff83,_0x5930c4={};_0x5930c4[_0x3d1ef0(_0x1ecf78._0x4f5180,0x6db)]=!![],_0x5930c4[_0x3d1ef0(_0x1ecf78._0x234ca4,0x485)]=['ignore',_0x5b9edf,_0x2a86ea],_0x5930c4[_0x272d77(_0x1ecf78._0xb1ba06,0x3fc)+_0x3d1ef0(_0x1ecf78._0x324bf5,0x4ec)]=!![];const _0x496bf4=spawn(_0x34ea40,_0x2e71d0,_0x5930c4);_0x496bf4[_0x272d77(0x1ca,_0x1ecf78._0x2de1f8)]();}finally{closeSync(_0x5b9edf),closeSync(_0x2a86ea);}}function resolveScriptPath(_0x38b82c){const _0x3f2601={_0x19c8cd:0x430,_0x300e45:0x2b3,_0x45e9b4:0x2c4,_0x3ea227:0x2b4,_0x412728:0xcd,_0x469262:0x2b3},_0x4e168a={_0x39275e:0x1b4},_0x24c8e5={'TbioE':function(_0xaf0f14,_0x5b25a2){return _0xaf0f14(_0x5b25a2);}},_0x287860=_0x38b82c?.[_0x429eab(_0x3f2601._0x19c8cd,_0x3f2601._0x300e45)]()||process[_0x9ede16(_0x3f2601._0x45e9b4,_0x3f2601._0x3ea227)][0x1]?.[_0x429eab(_0x3f2601._0x412728,_0x3f2601._0x469262)]()||'';function _0x9ede16(_0x115476,_0x29f3a7){return _0x11b7ab(_0x29f3a7,_0x115476-0x292);}if(!_0x287860)return'';function _0x429eab(_0x5189ca,_0x402c0c){return _0x11b7ab(_0x5189ca,_0x402c0c-_0x4e168a._0x39275e);}try{return _0x24c8e5[_0x429eab(0x297,0xd5)](realpathSync,_0x287860);}catch{return _0x287860;}}function ensureLaunchScriptExecutable(_0x3158bf,_0x5d8da2){const _0x139568={_0x4e3de9:0x37b};if(_0x5d8da2===_0x4cd786(_0x139568._0x4e3de9,0x2f8)||!_0x44150d(_0x3158bf))return;function _0x4cd786(_0x452620,_0x5d5f83){return _0x11b7ab(_0x452620,_0x5d5f83-0x3f6);}try{chmodSync(_0x3158bf,0x1ed);}catch{}}function writeServiceLauncher(_0x104059){const _0xedb5fc={_0x515e39:0x11a,_0x52893f:0x1b0,_0x585d2d:0x67,_0x7aa85c:0xb0,_0x4397c2:0x255,_0x1b2e34:0x92,_0xd21cc5:0x2e3,_0x27401c:0x303,_0x20ef16:0x10d,_0x437c1b:0x268,_0x313ced:0x1e5,_0x3c7f70:0x10f,_0x539b7d:0x31d,_0x101827:0x21f,_0x9491ab:0x33b,_0x3512e1:0x2f5,_0x5e1021:0xad,_0x229586:0x160,_0x22e5cc:0x209,_0x34281c:0x2f6,_0x270ffd:0x138,_0x4864d2:0xc7,_0x3bdfed:0x2eb,_0x15a050:0x22c,_0x223c52:0xf9,_0x327860:0x183,_0x31be9a:0x13e,_0x19c743:0x32a,_0x5942cb:0x2ec},_0x1ba7fa={_0x2480a6:0x17f},_0x3bb588={'SOwnB':function(_0x5a4f1e,_0x5756bf){return _0x5a4f1e(_0x5756bf);},'uzVcP':'\x20\x20exec\x20\x22'+_0x13f8c5(-_0xedb5fc._0x515e39,-_0xedb5fc._0x52893f)+'TH\x22\x20\x22$SC'+'RIPT_PAT'+_0x13f8c5(-0x6f,0x117)+'-service','CQqfI':function(_0x2d1dcc,_0x4e11fb,_0x3b2f20,_0x420671){return _0x2d1dcc(_0x4e11fb,_0x3b2f20,_0x420671);},'hWSQn':_0x13f8c5(0x133,-_0xedb5fc._0x585d2d)};ensureServiceDirs();function _0x32b1f5(_0x532a51,_0x905781){return _0x11b7ab(_0x532a51,_0x905781-0x4e);}const _0x4a34cc=[_0x13f8c5(0x1ea,0x168)+'h',_0x13f8c5(-0x10d,-_0xedb5fc._0x7aa85c)+_0x32b1f5(0x243,_0xedb5fc._0x4397c2)+escapeShellDoubleQuoted(_0x104059[_0x13f8c5(-_0xedb5fc._0x1b2e34,-0x224)])+'\x22',_0x13f8c5(-0x3a,-0x181)+'H=\x22'+escapeShellDoubleQuoted(_0x104059[_0x13f8c5(-_0xedb5fc._0xd21cc5,-0x1f2)])+'\x22',_0x32b1f5(0x1af,0x19f)+_0x13f8c5(0x28,0x88)+_0x3bb588[_0x13f8c5(-_0xedb5fc._0x27401c,-_0xedb5fc._0x20ef16)](escapeShellDoubleQuoted,_0x104059[_0x13f8c5(-_0xedb5fc._0x437c1b,-_0xedb5fc._0x313ced)+'th'])+'\x22',_0x13f8c5(0x4d,_0xedb5fc._0x3c7f70)+_0x32b1f5(0x3aa,_0xedb5fc._0x539b7d)+_0x32b1f5(_0xedb5fc._0x101827,0x2d3)+_0x32b1f5(0x151,_0xedb5fc._0x9491ab),_0x3bb588[_0x32b1f5(-0x151,-0xd)],'fi',_0x32b1f5(0x3ad,_0xedb5fc._0x3512e1)+_0x13f8c5(0xba,_0xedb5fc._0x5e1021)+_0x32b1f5(_0xedb5fc._0x229586,_0xedb5fc._0x22e5cc)+_0x13f8c5(0x100,-0x89)+_0x32b1f5(_0xedb5fc._0x34281c,0x328),_0x32b1f5(0x433,0x26f)+_0x13f8c5(-_0xedb5fc._0x270ffd,-0x2d)+'RIPT_PAT'+_0x32b1f5(0x377,0x2e4)+_0x32b1f5(0x134,0x222),'fi',_0x13f8c5(0xfb,-0x47)+_0x32b1f5(-0xe4,_0xedb5fc._0x4864d2)+_0x32b1f5(_0xedb5fc._0x3bdfed,0x24e)+'ound\x20for'+_0x13f8c5(0x1ce,0x26)+_0x13f8c5(-0x3c5,-_0xedb5fc._0x15a050)+'service\x22'+_0x13f8c5(-_0xedb5fc._0x223c52,-0x1b7),_0x13f8c5(-0x254,-_0xedb5fc._0x327860),''];_0x3bb588[_0x32b1f5(-_0xedb5fc._0x31be9a,0x7f)](_0x301ed4,SERVICE_LAUNCHER_PATH,_0x4a34cc[_0x13f8c5(-0x16f,-0x19d)]('\x0a'),_0x3bb588[_0x32b1f5(_0xedb5fc._0x19c743,_0xedb5fc._0x5942cb)]);function _0x13f8c5(_0x5b50ce,_0x471c69){return _0x11b7ab(_0x5b50ce,_0x471c69- -_0x1ba7fa._0x2480a6);}return SERVICE_LAUNCHER_PATH;}function escapeShellDoubleQuoted(_0x41c622){const _0x3974c8={_0x422f9d:0x84a,_0x426ef5:0x95d,_0xe3c771:0x302,_0x32dda2:0x3a5};function _0x4556fc(_0x4c8200,_0x1f8501){return _0x6eb3(_0x1f8501,_0x4c8200-0x5be);}function _0x35ce91(_0x2a0257,_0x385e86){return _0x6eb3(_0x2a0257,_0x385e86-0x119);}return _0x41c622[_0x4556fc(_0x3974c8._0x422f9d,_0x3974c8._0x426ef5)+'ll']('\x5c','\x5c\x5c')['replaceA'+'ll']('\x22','\x5c\x22')['replaceA'+'ll']('$','\x5c$')[_0x35ce91(_0x3974c8._0xe3c771,_0x3974c8._0x32dda2)+'ll']('`','\x5c`');}function buildWindowsRunCommand(_0x496f20){const _0x42fe31={_0x1a0167:0x29e},_0xdc4bf3={_0x33ebbc:0x1da};function _0x5006fb(_0x5aa5ae,_0x4b6b81){return _0x6eb3(_0x4b6b81,_0x5aa5ae-0xff);}function _0x4aa1ff(_0x5bcb7b,_0x2e32e3){return _0x6eb3(_0x2e32e3,_0x5bcb7b- -_0xdc4bf3._0x33ebbc);}return _0x496f20[_0x4aa1ff(-0x3a,0x1cd)](escapeWindowsArg)[_0x4aa1ff(-0x23a,-_0x42fe31._0x1a0167)]('\x20');}function ensureServiceDirs(){const _0x1765bb={_0x1c1d67:0xc,_0x2cb74a:0x181},_0x10be29={_0x45fa8f:0x191};function _0x3dd277(_0x64bc6c,_0x2417db){return _0x11b7ab(_0x2417db,_0x64bc6c-0x38d);}function _0x48c8af(_0x4ea94f,_0x4a83c2){return _0x11b7ab(_0x4a83c2,_0x4ea94f-_0x10be29._0x45fa8f);}const _0x4ec890={'nOGby':function(_0x522b1d,_0x272538,_0x7aefa1){return _0x522b1d(_0x272538,_0x7aefa1);},'Nzvte':function(_0x2c2bbc,_0x24298c,_0x4b45ba){return _0x2c2bbc(_0x24298c,_0x4b45ba);}},_0x2d2a5d={};_0x2d2a5d[_0x48c8af(0x15c,_0x1765bb._0x1c1d67)+'e']=!![],_0x4ec890['nOGby'](_0x40ab56,SERVICE_DIR,_0x2d2a5d);const _0x41cb42={};_0x41cb42[_0x3dd277(0x358,_0x1765bb._0x2cb74a)+'e']=!![],_0x4ec890['Nzvte'](_0x40ab56,LOG_DIR,_0x41cb42);}function escapeXml(_0x54b889){const _0x1f2a7e={_0x5905d7:0x719,_0x5ed50c:0x5b1,_0x1bf4a6:0x648,_0x4c1cc0:0x4d3,_0x4c7273:0x485,_0x3e2b17:0x2ac,_0x2d1a9e:0x719,_0x307d72:0x5a1,_0x22da4b:0x4be,_0x443fc8:0x4d7},_0x41b34c={_0x23aa47:0x48d},_0x4de88c={_0x2e33a9:0x330};function _0x42ef87(_0x5c02a8,_0x14e7cd){return _0x6eb3(_0x5c02a8,_0x14e7cd-_0x4de88c._0x2e33a9);}function _0x3f7b05(_0xfe6614,_0x4e5bbe){return _0x6eb3(_0x4e5bbe,_0xfe6614-_0x41b34c._0x23aa47);}return _0x54b889[_0x3f7b05(_0x1f2a7e._0x5905d7,0x666)+'ll']('&',_0x3f7b05(0x705,_0x1f2a7e._0x5ed50c))[_0x3f7b05(_0x1f2a7e._0x5905d7,_0x1f2a7e._0x1bf4a6)+'ll']('<',_0x42ef87(0x6cd,_0x1f2a7e._0x4c1cc0))[_0x3f7b05(0x719,0x81e)+'ll']('>',_0x3f7b05(_0x1f2a7e._0x4c7273,_0x1f2a7e._0x3e2b17))[_0x3f7b05(_0x1f2a7e._0x2d1a9e,_0x1f2a7e._0x307d72)+'ll']('\x22',_0x42ef87(_0x1f2a7e._0x22da4b,_0x1f2a7e._0x443fc8))['replaceA'+'ll']('\x27',''');}function escapeSystemdArg(_0x4cc364){const _0x1635f1={_0x4ddaa4:0x437},_0x31e6ea={_0x22928f:0x169},_0x2615c5={_0x5d882b:0x160};function _0x2d4221(_0xe7cb49,_0x5a07ce){return _0x11b7ab(_0xe7cb49,_0x5a07ce-_0x2615c5._0x5d882b);}function _0x27bce8(_0x80d077,_0xaf36d3){return _0x11b7ab(_0x80d077,_0xaf36d3-_0x31e6ea._0x22928f);}return'\x22'+_0x4cc364[_0x27bce8(0x5fb,_0x1635f1._0x4ddaa4)+'ll']('\x5c','\x5c\x5c')[_0x27bce8(0x4c1,0x437)+'ll']('\x22','\x5c\x22')+'\x22';}function escapeWindowsArg(_0x3b87ed){const _0xf52b72={_0x2e3b75:0x677,_0x23d17b:0x5f8};function _0x24c4d0(_0x48b07f,_0x27c87c){return _0x6eb3(_0x27c87c,_0x48b07f-0x3eb);}return'\x22'+_0x3b87ed[_0x24c4d0(_0xf52b72._0x2e3b75,_0xf52b72._0x23d17b)+'ll']('\x22','\x5c\x22')+'\x22';}function commandSucceeds(_0x2d4699,_0x384b93){const _0x25983b={_0x578f05:0x5a0,_0xc1ace3:0x93},_0x2f4915={_0x4e556c:0x7f};function _0x2d2aef(_0x5e1396,_0x22bb81){return _0x6eb3(_0x5e1396,_0x22bb81- -_0x2f4915._0x4e556c);}function _0x452fb8(_0x3d2643,_0x2154b2){return _0x6eb3(_0x2154b2,_0x3d2643-0x557);}try{const _0x593dd4={};return _0x593dd4[_0x452fb8(_0x25983b._0x578f05,0x776)]=_0x2d2aef(-0x2f,_0x25983b._0xc1ace3),execFileSync(_0x2d4699,_0x384b93,_0x593dd4),!![];}catch{return![];}}function execIgnoreFailure(_0xf84df6,_0x431cb7){const _0x3854e9={_0x1fa451:0x42d,_0x1138ab:0x312,_0x52522f:0x68b,_0x7390d3:0x5ce,_0x7b3768:0x3a3},_0x49b802={_0x355d6a:0x47a},_0x29ca07={_0x4b3df6:0x287},_0x2f9092={'TwwhH':function(_0xc6b39e,_0x230b24,_0xc5d667,_0x28f71e){return _0xc6b39e(_0x230b24,_0xc5d667,_0x28f71e);}};function _0x2406aa(_0x1afb8c,_0x4d40fa){return _0x11b7ab(_0x1afb8c,_0x4d40fa-_0x29ca07._0x4b3df6);}function _0x1def73(_0x413cbc,_0x1d09d2){return _0x11b7ab(_0x413cbc,_0x1d09d2-_0x49b802._0x355d6a);}try{const _0x4f069e={};_0x4f069e[_0x2406aa(_0x3854e9._0x1fa451,_0x3854e9._0x1138ab)]=_0x1def73(_0x3854e9._0x52522f,_0x3854e9._0x7390d3),_0x2f9092[_0x1def73(_0x3854e9._0x7b3768,0x40c)](execFileSync,_0xf84df6,_0x431cb7,_0x4f069e);}catch{}}function rmIfExists(_0x217272){const _0x124c67={_0x3fd7e8:0x3ff},_0x40e1d6={_0x4dff81:0x1ad},_0x414be0={_0x291af3:0x296},_0x39371f={'TtsVL':function(_0x728899,_0x5ed134){return _0x728899(_0x5ed134);}};if(!_0x39371f[_0x1d2636(0x28b,0x1b3)](_0x44150d,_0x217272))return;const _0x465d61={};_0x465d61[_0x7783d3(0x461,_0x124c67._0x3fd7e8)]=!![];function _0x7783d3(_0x590644,_0x722185){return _0x6eb3(_0x722185,_0x590644-_0x414be0._0x291af3);}function _0x1d2636(_0x5bfc6a,_0x28d3f2){return _0x6eb3(_0x5bfc6a,_0x28d3f2-_0x40e1d6._0x4dff81);}_0x40020e(_0x217272,_0x465d61);}import{existsSync as _0x4f9909,readFileSync as _0x5a0f2d}from'fs';import{homedir as _0x3e0b2d}from'os';function _0x6eb3(_0x3c2196,_0x3c5623){return _0x2e58(_0x3c5623- -0x1e8,_0x3c2196);}import{join as _0x44be4d}from'path';var DEFAULT_GATEWAY_URL='ws://127'+_0x6eb3(0xb0,0x1f9)+_0x11b7ab(-0x6e,0x43),OPENCLAW_DIR=_0x44be4d(_0x3e0b2d(),_0x6eb3(0x1f6,0x271)+'w'),OPENCLAW_CONFIG_PATH2=_0x44be4d(OPENCLAW_DIR,_0x6eb3(-0x3e,0x13b)+'.json'),OPENCLAW_MEDIA_DIR=_0x44be4d(OPENCLAW_DIR,_0x11b7ab(-0x17a,-0x97));function resolveGatewayUrl(_0x4a9124){const _0xd2e49c={_0x257918:0x659,_0xca1953:0x61b,_0x4cc334:0x494,_0x1b584c:0x152,_0x593a59:0x72,_0xb4eb64:0x6aa,_0x4419aa:0x5da,_0x41b825:0x547,_0x4a48bf:0x5bd},_0x342f91={_0x490d4d:0x1b1},_0x18614d={_0x327579:0x55e},_0x43417f={'dwxKJ':function(_0x3f4fcb){return _0x3f4fcb();},'YSqQz':_0x36179e(0x723,0x6f7)},_0x88f982=_0x4a9124?.[_0x36179e(_0xd2e49c._0x257918,_0xd2e49c._0xca1953)]();function _0x36179e(_0x40836b,_0x3553a1){return _0x6eb3(_0x40836b,_0x3553a1-_0x18614d._0x327579);}function _0x24672a(_0x280b5c,_0x9ebb68){return _0x6eb3(_0x9ebb68,_0x280b5c- -_0x342f91._0x490d4d);}if(_0x88f982)return _0x88f982;const _0x42bd48=_0x43417f[_0x36179e(0x6a5,0x4d4)](readOpenClawInfo);if(typeof _0x42bd48[_0x36179e(0x338,_0xd2e49c._0x4cc334)+_0x24672a(-_0xd2e49c._0x1b584c,_0xd2e49c._0x593a59)]===_0x43417f[_0x36179e(_0xd2e49c._0xb4eb64,_0xd2e49c._0x4419aa)])return'ws://127'+'.0.0.1:'+_0x42bd48[_0x36179e(_0xd2e49c._0x41b825,_0xd2e49c._0x4cc334)+_0x36179e(0x703,_0xd2e49c._0x4a48bf)];return DEFAULT_GATEWAY_URL;}function readOpenClawInfo(){const _0x1006b8={_0x54bb48:0x3da,_0xac916:0x384,_0x5b148b:0x3ee,_0x4bd59b:0x4a4,_0x1d7e40:0x3c8,_0x5ea99e:0x19f,_0x18d328:0x9e,_0x2da72f:0x7b,_0x4773a5:0x363,_0x3b9a7e:0x2aa,_0x560b0e:0x667,_0x1ccc5f:0x3ce,_0x19168c:0x310,_0x506e21:0x173,_0x172683:0x86,_0x3dc4f4:0x46e,_0x488045:0x63a,_0x392e07:0x2bb,_0x3607dc:0x288},_0x59d82a={_0x2fe104:0x3ce},_0x4b6059={_0x502111:0x173};function _0x26e84e(_0x1d094b,_0x48551e){return _0x6eb3(_0x1d094b,_0x48551e- -_0x4b6059._0x502111);}const _0x4a4fcf={'QNsod':function(_0x4fd5cf,_0x569f6e){return _0x4fd5cf(_0x569f6e);},'WaNNi':function(_0x1743f1){return _0x1743f1();},'ZjNLB':'number','TzvNw':function(_0x391561,_0x226c08){return _0x391561===_0x226c08;},'MmnEP':function(_0x3d3d41){return _0x3d3d41();}};function _0x139dff(_0x28cff4,_0x252fd8){return _0x6eb3(_0x252fd8,_0x28cff4-_0x59d82a._0x2fe104);}if(!_0x4a4fcf['QNsod'](_0x4f9909,OPENCLAW_CONFIG_PATH2))return{'configFound':![],'gatewayPort':null,'authMode':null,'token':_0x4a4fcf[_0x139dff(_0x1006b8._0x54bb48,_0x1006b8._0xac916)](readGatewayTokenEnv),'password':readGatewayPasswordEnv()};try{const _0x3e9a95=JSON[_0x139dff(_0x1006b8._0x5b148b,0x247)](_0x5a0f2d(OPENCLAW_CONFIG_PATH2,_0x139dff(_0x1006b8._0x4bd59b,_0x1006b8._0x1d7e40))),_0x5045f7=_0x3e9a95['gateway']?.[_0x139dff(0x4ed,0x40b)],_0x39f512=typeof _0x5045f7===_0x4a4fcf[_0x26e84e(-0x207,-_0x1006b8._0x5ea99e)]&&Number[_0x26e84e(_0x1006b8._0x18d328,-0x10d)+'r'](_0x5045f7)?_0x5045f7:null,_0x26eb63=_0x3e9a95[_0x26e84e(-0x94,-0x231)]?.['auth']?.['mode']==='token'||_0x4a4fcf[_0x26e84e(_0x1006b8._0x2da72f,0x61)](_0x3e9a95[_0x26e84e(-_0x1006b8._0x4773a5,-0x231)]?.[_0x26e84e(0x3,-0x1e)]?.[_0x26e84e(-0xf8,-_0x1006b8._0x3b9a7e)],'password')?_0x3e9a95['gateway'][_0x139dff(0x523,_0x1006b8._0x560b0e)][_0x26e84e(-_0x1006b8._0x1ccc5f,-_0x1006b8._0x3b9a7e)]:null,_0x7594f3=readConfiguredSecret(_0x3e9a95['gateway']?.['auth']?.['token'])??readGatewayTokenEnv(),_0x5c7667=_0x4a4fcf['QNsod'](readConfiguredSecret,_0x3e9a95[_0x139dff(_0x1006b8._0x19168c,0x114)]?.['auth']?.[_0x26e84e(-_0x1006b8._0x506e21,-_0x1006b8._0x172683)])??readGatewayPasswordEnv(),_0x5374f9={};return _0x5374f9[_0x26e84e(0x31,0x71)+_0x139dff(_0x1006b8._0x3dc4f4,0x48a)]=!![],_0x5374f9['gatewayP'+_0x139dff(0x42d,0x5a9)]=_0x39f512,_0x5374f9['authMode']=_0x26eb63,_0x5374f9['token']=_0x7594f3,_0x5374f9[_0x139dff(0x4bb,_0x1006b8._0x488045)]=_0x5c7667,_0x5374f9;}catch{return{'configFound':!![],'gatewayPort':null,'authMode':null,'token':_0x4a4fcf[_0x139dff(_0x1006b8._0x392e07,_0x1006b8._0x3607dc)](readGatewayTokenEnv),'password':readGatewayPasswordEnv()};}}function resolveGatewayAuth(){const _0x1de5a4={_0x228daa:0x4e1,_0x498823:0x2a4,_0x2dc343:0x303,_0x206564:0x4a2,_0x3f637e:0x2cd,_0x5e1395:0x32e,_0x50439e:0x13b,_0x1965ca:0x472,_0x4200c4:0x5f9,_0xd48794:0x364,_0xfca74e:0x289,_0x363591:0x46d,_0x5c2579:0x2fa,_0x5ec3dd:0x61d,_0x3879fd:0x637,_0x16ec5f:0x1d2,_0x3ce241:0x29d,_0x31d145:0x43a,_0x2b7cdc:0x34a,_0x29f5b4:0x710,_0x129fc7:0x2bf,_0x584bd8:0x20d,_0x426e0f:0x4de,_0xe0a907:0x5e3,_0x1fd01c:0x4af,_0x3e8e64:0x43a,_0x3001fd:0x354,_0xdb6f90:0x408,_0x4bf7f2:0x585,_0x2aa526:0x480,_0x4e9be6:0x488,_0x27b68d:0x2a3,_0x5a2600:0x15b,_0x750d0b:0x43a,_0x58fa6e:0x4bf,_0x3d935d:0x60b,_0x52bd0c:0x162},_0x4b3ec5={_0x1e3313:0x267},_0x268203={'VeocG':function(_0x5dd5e7){return _0x5dd5e7();},'yHFpC':function(_0x16d58e,_0x494b69){return _0x16d58e==_0x494b69;},'mPhZm':_0xcda8f7(_0x1de5a4._0x228daa,0x47f)+'\x20has\x20bot'+_0xcda8f7(_0x1de5a4._0x498823,0x317)+_0xcda8f7(_0x1de5a4._0x2dc343,_0x1de5a4._0x206564)+_0x39ac36(_0x1de5a4._0x3f637e,0x3a0)+_0xcda8f7(_0x1de5a4._0x5e1395,_0x1de5a4._0x50439e)+_0x39ac36(_0x1de5a4._0x1965ca,0x655)+_0x39ac36(_0x1de5a4._0x4200c4,0x58a)+_0xcda8f7(_0x1de5a4._0xd48794,0x274)+_0x39ac36(0x148,_0x1de5a4._0xfca74e)+'s\x20unset.'+_0x39ac36(0x453,0x467)+_0xcda8f7(_0x1de5a4._0x363591,_0x1de5a4._0x5c2579)+'\x20token\x20o'+_0x39ac36(_0x1de5a4._0x5ec3dd,_0x1de5a4._0x3879fd)+_0xcda8f7(_0x1de5a4._0x16ec5f,_0x1de5a4._0x3ce241)+_0x39ac36(0x4ca,0x5af)+'g.','MlcVz':_0x39ac36(0x358,0x4af),'pCufF':'token'};function _0x39ac36(_0x585b1d,_0x23a0f0){return _0x6eb3(_0x585b1d,_0x23a0f0-0x3c2);}const _0x1564f1=_0x268203[_0x39ac36(0x36f,0x39a)](readOpenClawInfo),_0x1fe13d=_0x1564f1[_0xcda8f7(_0x1de5a4._0x31d145,_0x1de5a4._0x2b7cdc)],_0x380e95=_0x1564f1[_0x39ac36(0x360,0x4af)];if(_0x1fe13d&&_0x380e95&&_0x268203['yHFpC'](_0x1564f1['authMode'],null)){const _0x562fd1={};return _0x562fd1[_0x39ac36(_0x1de5a4._0x29f5b4,0x595)]=_0x1fe13d,_0x562fd1[_0x39ac36(_0x1de5a4._0x129fc7,0x4af)]=_0x380e95,_0x562fd1[_0x39ac36(0x43f,0x3f7)]=_0xcda8f7(0x43a,0x394),_0x562fd1['error']=_0x268203[_0xcda8f7(_0x1de5a4._0x584bd8,0x3de)],_0x562fd1;}function _0xcda8f7(_0x57b3e8,_0x3f0d37){return _0x6eb3(_0x3f0d37,_0x57b3e8-_0x4b3ec5._0x1e3313);}if(_0x1564f1[_0x39ac36(_0x1de5a4._0x426e0f,_0x1de5a4._0xe0a907)]===_0x39ac36(0x4b4,_0x1de5a4._0x1fd01c)){const _0x36217e={};return _0x36217e[_0xcda8f7(_0x1de5a4._0x3e8e64,0x602)]=null,_0x36217e[_0xcda8f7(_0x1de5a4._0x3001fd,0x3b6)]=null,_0x36217e[_0x39ac36(_0x1de5a4._0xdb6f90,0x3f7)]=null,_0x380e95?{'token':null,'password':_0x380e95,'label':_0x268203[_0x39ac36(_0x1de5a4._0x4bf7f2,_0x1de5a4._0x2aa526)]}:_0x36217e;}if(_0x1564f1[_0xcda8f7(_0x1de5a4._0x4e9be6,_0x1de5a4._0x27b68d)]===_0x268203[_0xcda8f7(0x188,0x1da)]){const _0x227f05={};return _0x227f05['token']=null,_0x227f05['password']=null,_0x227f05['label']=null,_0x1fe13d?{'token':_0x1fe13d,'password':null,'label':_0x268203[_0xcda8f7(0x188,_0x1de5a4._0x5a2600)]}:_0x227f05;}if(_0x1fe13d){const _0x212e7a={};return _0x212e7a['token']=_0x1fe13d,_0x212e7a[_0x39ac36(0x391,0x4af)]=null,_0x212e7a['label']=_0xcda8f7(_0x1de5a4._0x750d0b,_0x1de5a4._0x58fa6e),_0x212e7a;}if(_0x380e95){const _0x2b7611={};return _0x2b7611[_0xcda8f7(0x43a,0x4fd)]=null,_0x2b7611['password']=_0x380e95,_0x2b7611[_0xcda8f7(0x29c,0x4a0)]='password',_0x2b7611;}const _0x1b6c7b={};return _0x1b6c7b[_0x39ac36(_0x1de5a4._0x3d935d,0x595)]=null,_0x1b6c7b['password']=null,_0x1b6c7b[_0xcda8f7(0x29c,_0x1de5a4._0x52bd0c)]=null,_0x1b6c7b;}function getOpenClawConfigDir(){return OPENCLAW_DIR;}function getOpenClawMediaDir(){return OPENCLAW_MEDIA_DIR;}function readConfiguredSecret(_0x144654){const _0x16ef44={_0x3e9c18:0xee,_0x4d959a:0x263,_0x38e030:0x268,_0x1b8e89:0x364},_0x17c500={_0x587ea5:0x169},_0x403421={_0x1bfb51:0x31c};function _0x30e150(_0x1ee8f7,_0x274848){return _0x11b7ab(_0x1ee8f7,_0x274848-_0x403421._0x1bfb51);}function _0x4276ff(_0x5d2149,_0x104fcc){return _0x11b7ab(_0x104fcc,_0x5d2149-_0x17c500._0x587ea5);}return typeof _0x144654===_0x4276ff(_0x16ef44._0x3e9c18,_0x16ef44._0x4d959a)&&_0x144654[_0x4276ff(0x268,0x365)]()?_0x144654[_0x4276ff(_0x16ef44._0x38e030,_0x16ef44._0x1b8e89)]():null;}function readGatewayTokenEnv(){const _0x4d9756={_0x2a9a5c:0x107,_0x5ae982:0x192,_0x19be22:0x222,_0x592ac1:0x407,_0x2d0c78:0xd7,_0x5334be:0x225,_0xc67503:0x317,_0x569c50:0x87,_0x45c105:0x3ca},_0x58ca39={_0x3b8a39:0xb0},_0xca8b7b={};function _0x17211f(_0x21d14f,_0x3e9166){return _0x11b7ab(_0x3e9166,_0x21d14f- -_0x58ca39._0x3b8a39);}_0xca8b7b[_0x219271(-_0x4d9756._0x2a9a5c,-_0x4d9756._0x5ae982)]=_0x17211f(_0x4d9756._0x19be22,_0x4d9756._0x592ac1)+_0x17211f(-_0x4d9756._0x2d0c78,-0x9)+_0x219271(-_0x4d9756._0x5334be,-0x97);function _0x219271(_0xa61d19,_0x4e2118){return _0x11b7ab(_0xa61d19,_0x4e2118- -0x217);}_0xca8b7b[_0x219271(-0x495,-_0x4d9756._0xc67503)]=_0x17211f(-_0x4d9756._0x569c50,-0x89)+'_GATEWAY'+_0x219271(0x15b,-0x97);const _0xba1b0b=_0xca8b7b;return readEnvValue(_0xba1b0b['qmDUX'],_0xba1b0b[_0x219271(-_0x4d9756._0x45c105,-_0x4d9756._0xc67503)]);}function readGatewayPasswordEnv(){const _0x21f321={_0x452b43:0x4f3,_0x333f3f:0x1fa,_0x768730:0x33e,_0x15459f:0x453,_0x44fad6:0x24a,_0x8169ab:0x1fe,_0x10fda8:0x3f9},_0x1e72c5={_0x531443:0x263};function _0x39ea61(_0x136be0,_0x259496){return _0x6eb3(_0x136be0,_0x259496-0x209);}function _0x3fb0f6(_0x59b3ba,_0x315411){return _0x6eb3(_0x315411,_0x59b3ba-_0x1e72c5._0x531443);}return readEnvValue(_0x3fb0f6(_0x21f321._0x452b43,0x5d6)+_0x3fb0f6(_0x21f321._0x333f3f,_0x21f321._0x768730)+_0x3fb0f6(_0x21f321._0x15459f,0x358)+'D',_0x3fb0f6(_0x21f321._0x44fad6,_0x21f321._0x8169ab)+'_GATEWAY'+_0x39ea61(0x5cc,_0x21f321._0x10fda8)+'D');}function readEnvValue(_0x5cbc58,_0x35a48a){const _0x1bfc62={_0x155eae:0x1ff,_0x19590e:0x1eb},_0xe1f4e9=process.env[_0x5cbc58]?.[_0x1aac37(0x14c,_0x1bfc62._0x155eae)]();if(_0xe1f4e9)return _0xe1f4e9;function _0x1aac37(_0x4655d5,_0x54e8c9){return _0x11b7ab(_0x4655d5,_0x54e8c9-0x100);}const _0xc50073=process.env[_0x35a48a]?.[_0x6579e1(_0x1bfc62._0x19590e,0x34a)]();function _0x6579e1(_0x246c22,_0x40da6c){return _0x11b7ab(_0x40da6c,_0x246c22-0xec);}return _0xc50073||null;}var CONTROL_PREFIX=_0x11b7ab(0x2ea,0xed)+'t_relay_'+_0x11b7ab(0x420,0x2c1)+'_:';function parseControl(_0x5dd1c5){const _0x2ea995={_0x39afba:0x5b2,_0xd29fc4:0x4de,_0x38a151:0x547,_0x275785:0x3e7,_0x9df3a5:0x44a,_0xd0398c:0x332,_0x26e2a8:0x68e,_0xd9de0:0x688,_0x798419:0x528,_0x2347fe:0x4a9},_0x20d42c={_0x3719bf:0x413},_0x39b60c={};_0x39b60c[_0x32fd37(_0x2ea995._0x39afba,0x6ec)]=function(_0x59e511,_0x19bc5d){return _0x59e511!==_0x19bc5d;},_0x39b60c[_0x4f0fd5(_0x2ea995._0xd29fc4,0x58e)]=function(_0x47d1de,_0x443604){return _0x47d1de===_0x443604;};function _0x32fd37(_0x52faa9,_0x26aecb){return _0x11b7ab(_0x26aecb,_0x52faa9-_0x20d42c._0x3719bf);}const _0xa59d31=_0x39b60c;if(!_0x5dd1c5[_0x32fd37(0x488,0x45c)+'th'](CONTROL_PREFIX))return null;function _0x4f0fd5(_0x1e2f98,_0x1862a5){return _0x11b7ab(_0x1e2f98,_0x1862a5-0x3ad);}try{const _0x157fbd=JSON[_0x4f0fd5(_0x2ea995._0x38a151,0x40f)](_0x5dd1c5['slice'](CONTROL_PREFIX[_0x4f0fd5(0x575,0x496)]));if(_0xa59d31[_0x32fd37(0x5b2,0x792)](typeof _0x157fbd[_0x32fd37(_0x2ea995._0x275785,0x3e7)],_0x4f0fd5(_0x2ea995._0x9df3a5,_0x2ea995._0xd0398c))||!_0x157fbd['event'][_0x4f0fd5(0x6a8,0x4ac)]())return null;return{'event':_0x157fbd['event'][_0x32fd37(0x512,0x6b7)](),'count':_0xa59d31['rsslV'](typeof _0x157fbd[_0x4f0fd5(0x536,0x4a9)],_0x32fd37(0x5ee,_0x2ea995._0x26e2a8))&&Number[_0x4f0fd5(_0x2ea995._0xd9de0,_0x2ea995._0x798419)](_0x157fbd[_0x4f0fd5(0x6ae,_0x2ea995._0x2347fe)])?_0x157fbd['count']:void 0x0};}catch{return null;}}function parseConnectStartIdentity(_0x236d83){const _0x48e952={_0x41b128:0x381,_0x13d37a:0x428,_0x1e537f:0x288,_0x5d553d:0x477,_0x4df9d3:0x90,_0x1a2881:0xb2,_0x5c5b2c:0x17c,_0x258ef3:0x140,_0x4aaa90:0xe6,_0x3691ab:0x3d,_0x5bd565:0x560,_0xe30f28:0x358,_0x3d88cf:0xb6,_0x361665:0x3ff,_0x511caf:0x381,_0x37d7d7:0x17b,_0x783486:0x483,_0x194027:0xf4,_0x40de53:0x60,_0x342cae:0x3f4,_0x2e1a73:0x3c7,_0x557a76:0x4c0,_0x4c24fa:0x42f,_0x3aadc3:0x434,_0x420e85:0x212,_0x52aa04:0x241},_0x4436bc={_0x3de8a4:0x9f};function _0x34803d(_0x23c6c2,_0x250141){return _0x11b7ab(_0x23c6c2,_0x250141- -_0x4436bc._0x3de8a4);}const _0x2c787c={};_0x2c787c[_0x34803d(0xa8,0x1fc)]=function(_0x382ed3,_0x565b3c){return _0x382ed3!==_0x565b3c;},_0x2c787c[_0x3a9a9f(_0x48e952._0x41b128,0x356)]=_0x3a9a9f(0x4de,0x309)+_0x3a9a9f(_0x48e952._0x13d37a,_0x48e952._0x1e537f);function _0x3a9a9f(_0x1d0d8c,_0x33c1c7){return _0x11b7ab(_0x33c1c7,_0x1d0d8c-0x2c5);}_0x2c787c[_0x3a9a9f(_0x48e952._0x5d553d,0x4d4)]=_0x34803d(_0x48e952._0x4df9d3,-0x11a),_0x2c787c[_0x34803d(-0x3f,0xca)]=_0x34803d(-_0x48e952._0x1a2881,-_0x48e952._0x5c5b2c)+_0x34803d(_0x48e952._0x258ef3,_0x48e952._0x4aaa90);const _0x5a5977=_0x2c787c;try{const _0x5ca0c5=JSON[_0x34803d(-0x153,-_0x48e952._0x3691ab)](_0x236d83);if(_0x5a5977[_0x3a9a9f(_0x48e952._0x5bd565,_0x48e952._0xe30f28)](_0x5ca0c5['type'],'req'))return null;if(_0x5ca0c5[_0x34803d(0xf4,-_0x48e952._0x3d88cf)]!=='connect'&&_0x5ca0c5[_0x3a9a9f(0x2ae,_0x48e952._0x361665)]!==_0x5a5977[_0x3a9a9f(_0x48e952._0x511caf,_0x48e952._0x37d7d7)])return null;const _0x35450b=_0x5ca0c5[_0x3a9a9f(_0x48e952._0x783486,0x3ad)]??{},_0x3d5dc5=typeof _0x5ca0c5['id']===_0x5a5977[_0x34803d(-_0x48e952._0x194027,0x113)]&&_0x5ca0c5['id'][_0x34803d(0x130,_0x48e952._0x40de53)]()?_0x5ca0c5['id'][_0x3a9a9f(0x3c4,_0x48e952._0x342cae)]():_0x3a9a9f(_0x48e952._0x2e1a73,0x2a3)+Math[_0x3a9a9f(0x2b8,_0x48e952._0x557a76)]()[_0x3a9a9f(_0x48e952._0x4c24fa,0x289)](0x24)[_0x3a9a9f(_0x48e952._0x3aadc3,0x271)](0x2,0xc),_0x44cb73=firstString(_0x35450b[_0x34803d(0x1c,0x179)+'me'],_0x35450b['clientNa'+'me'],_0x35450b[_0x34803d(0x2a6,_0x48e952._0x420e85)],_0x5a5977[_0x3a9a9f(0x42e,_0x48e952._0x52aa04)]),_0x5aae23={};return _0x5aae23['id']=_0x3d5dc5,_0x5aae23[_0x34803d(-0x132,-0x28)]=_0x44cb73,_0x5aae23;}catch{return null;}}function isConnectHandshakeRequest(_0x3ecedd){const _0x287ad3={_0x51ac61:0x98,_0x1f1556:0x430,_0x4c214d:0x2d4,_0x2da105:0x273,_0x54af92:0x1cb,_0x5eb0b2:0x38,_0x14474e:0x3d5},_0x683559={_0x26b042:0x272};function _0xf6c76b(_0x1ca086,_0xf46368){return _0x11b7ab(_0xf46368,_0x1ca086-_0x683559._0x26b042);}const _0x54ea90={};_0x54ea90['Wmspe']=function(_0x2e8e18,_0x539e37){return _0x2e8e18===_0x539e37;},_0x54ea90[_0x16bd6c(_0x287ad3._0x51ac61,0x2e)]=_0xf6c76b(0x4c4,_0x287ad3._0x1f1556);const _0x1a0183=_0x54ea90;function _0x16bd6c(_0x37a769,_0x8d3441){return _0x11b7ab(_0x8d3441,_0x37a769- -0x21);}try{const _0x2cb6dc=JSON[_0xf6c76b(_0x287ad3._0x4c214d,_0x287ad3._0x2da105)](_0x3ecedd);return _0x1a0183['Wmspe'](_0x2cb6dc[_0x16bd6c(0xf2,0xc5)],_0xf6c76b(_0x287ad3._0x54af92,0x10b))&&(_0x2cb6dc['method']===_0x1a0183[_0x16bd6c(_0x287ad3._0x51ac61,0x159)]||_0x2cb6dc[_0x16bd6c(-_0x287ad3._0x5eb0b2,-0xad)]==='connect.'+_0xf6c76b(_0x287ad3._0x14474e,0x4bf));}catch{return![];}}function parsePairingRequestFromError(_0x30dd2d,_0x5e1790=Date[_0x6eb3(-0xe1,0x54)]()){const _0x2595e7={_0x3e87da:0x4ff,_0x19180a:0x117,_0x30eb56:0x57,_0x4f5bd8:0x5a2,_0x1240ce:0x9d,_0x319ab0:0x181,_0x675a60:0x2ea,_0x3b3465:0x216,_0x209875:0x3a,_0x292526:0xc2,_0x3d751b:0x5e,_0x5157b6:0x205,_0x9a08b3:0x3e4,_0x9634a1:0x2b5,_0x2c93b7:0x298,_0x52f66b:0x2d9,_0x3f7699:0x29,_0x52f7b3:0x33d,_0x4ca5f8:0x15a,_0x5eb348:0x2f7,_0x20217e:0x3d5,_0xb80122:0x4b8,_0x4de9eb:0x10,_0xc837bd:0xf7,_0x2d17e7:0x2d9,_0x9fc0a:0x54f,_0x4e9203:0x8f,_0x1f156d:0xc8,_0x58c7f5:0xf6,_0x460347:0x4b4,_0x903b9b:0x5e1,_0x5abb7f:0x5b8,_0x369b68:0x588,_0x51d543:0x34b,_0x31f477:0x264,_0x15dae9:0x2a1,_0x473080:0x32e,_0x2ae143:0x4ea,_0x52810c:0x38a},_0x3c93a4={_0x2659ef:0x372},_0x101fbe={_0x1666b6:0xf7},_0x29d556={'UyJCu':_0x1cabfb(_0x2595e7._0x3e87da,0x57c),'WlVuH':function(_0x1f3ea4,_0x3e2f1b){return _0x1f3ea4===_0x3e2f1b;},'YIVsR':'PAIRING_'+_0x332b29(0x2df,0x36d),'USGSe':_0x332b29(0x13e,0x278)+_0x1cabfb(0x2bf,0x3eb),'hAwPF':function(_0x21179e,_0x95ae7f){return _0x21179e(_0x95ae7f);},'EEkra':'unknown','GGVzu':function(_0x29f3cb,_0xdef2e9,_0x1db138){return _0x29f3cb(_0xdef2e9,_0x1db138);}};function _0x332b29(_0x59e57e,_0x2ea6cb){return _0x6eb3(_0x59e57e,_0x2ea6cb-_0x101fbe._0x1666b6);}function _0x1cabfb(_0x5b77cb,_0x4ed7a7){return _0x6eb3(_0x5b77cb,_0x4ed7a7-_0x3c93a4._0x2659ef);}try{const _0x41a1b0=JSON[_0x332b29(0x19a,_0x2595e7._0x19180a)](_0x30dd2d);if(_0x41a1b0[_0x332b29(_0x2595e7._0x30eb56,0x1c8)]!==_0x29d556[_0x1cabfb(_0x2595e7._0x4f5bd8,0x5ad)]||_0x41a1b0['ok']!==![]||!_0x41a1b0[_0x332b29(-_0x2595e7._0x1240ce,0x5e)])return null;const _0x188590=_0x29d556[_0x1cabfb(_0x2595e7._0x319ab0,_0x2595e7._0x675a60)](typeof _0x41a1b0[_0x332b29(_0x2595e7._0x3b3465,0x5e)]['code'],_0x332b29(0x11e,_0x2595e7._0x209875))?_0x41a1b0[_0x332b29(_0x2595e7._0x292526,_0x2595e7._0x3d751b)][_0x332b29(0x1e2,0x25)]:'',_0x4f1e4e=typeof _0x41a1b0['error'][_0x1cabfb(_0x2595e7._0x5157b6,_0x2595e7._0x9a08b3)]===_0x1cabfb(0x183,_0x2595e7._0x9634a1)?_0x41a1b0[_0x1cabfb(_0x2595e7._0x2c93b7,_0x2595e7._0x52f66b)][_0x332b29(_0x2595e7._0x3f7699,0x169)]:'';if(!_0x188590['includes'](_0x1cabfb(0x64e,0x572)+'ED')&&!_0x188590['includes'](_0x29d556['YIVsR'])&&!_0x4f1e4e[_0x332b29(_0x2595e7._0x52f7b3,_0x2595e7._0x4ca5f8)](_0x332b29(0x18f,_0x2595e7._0x5eb348)+'ED')&&!_0x4f1e4e[_0x1cabfb(0x443,_0x2595e7._0x20217e)](_0x29d556[_0x1cabfb(0x4ed,_0x2595e7._0xb80122)]))return null;const _0x18b175=_0x41a1b0[_0x1cabfb(0x2eb,0x2d9)][_0x332b29(_0x2595e7._0x4de9eb,-0x53)]??_0x41a1b0[_0x1cabfb(_0x2595e7._0xc837bd,_0x2595e7._0x2d17e7)][_0x1cabfb(_0x2595e7._0x9fc0a,0x60b)]??{},_0x42958e=firstString(_0x18b175[_0x332b29(0x17a,0x373)+'d'],_0x29d556[_0x332b29(_0x2595e7._0x4e9203,0x159)](extractRequestIdFromMessage,_0x4f1e4e),_0x29d556[_0x332b29(-_0x2595e7._0x1f156d,_0x2595e7._0x58c7f5)]);return{'requestId':_0x42958e,'deviceId':_0x29d556['GGVzu'](firstString,_0x18b175[_0x1cabfb(_0x2595e7._0x460347,_0x2595e7._0x903b9b)],''),'displayName':firstNullableString(_0x18b175[_0x1cabfb(_0x2595e7._0x5abb7f,0x41a)+_0x1cabfb(_0x2595e7._0x369b68,0x624)]),'platform':firstNullableString(_0x18b175[_0x1cabfb(0x357,_0x2595e7._0x51d543)]),'deviceFamily':firstNullableString(_0x18b175[_0x332b29(0x290,_0x2595e7._0x31f477)+_0x1cabfb(0x493,_0x2595e7._0x15dae9)]),'role':firstNullableString(_0x18b175['role']),'remoteIp':firstNullableString(_0x18b175[_0x1cabfb(_0x2595e7._0x473080,_0x2595e7._0x2ae143)]),'receivedAtMs':_0x5e1790,'status':_0x1cabfb(_0x2595e7._0x52810c,0x49e)};}catch{return null;}}function parsePairResolvedEvent(_0xc3514d){const _0x53dc42={_0xd7b094:0x3be,_0x1fab21:0xac,_0x401d4c:0x2aa,_0x39d3da:0x4a3,_0x2068c5:0x18d,_0x160146:0x5b0,_0x409450:0x323,_0x23aa3c:0x28e,_0x1d090b:0x53,_0x4dd6b8:0x81,_0x19461a:0x25b,_0x54dd30:0x292,_0x4fde8a:0x2d9,_0x36c2ef:0x53,_0x25ff9b:0x2f,_0x4029c0:0x216,_0x22f694:0x20,_0x2534c0:0x160,_0x265c75:0x2a0,_0x1989e5:0x4a3,_0x28757f:0x216,_0x1511ba:0x3f0},_0x2d5a78={_0x258056:0x32d};function _0x4f006f(_0x5bd6d4,_0x17421d){return _0x6eb3(_0x5bd6d4,_0x17421d-_0x2d5a78._0x258056);}const _0x1022f4={};_0x1022f4[_0x4f006f(0x228,_0x53dc42._0xd7b094)]=function(_0x46818a,_0x1af392){return _0x46818a!==_0x1af392;},_0x1022f4['RjiYs']='device.p'+'air.reso'+'lved',_0x1022f4[_0x3f18d0(_0x53dc42._0x1fab21,-0x4a)]=_0x4f006f(_0x53dc42._0x401d4c,_0x53dc42._0x39d3da);function _0x3f18d0(_0x2cce24,_0x3ba409){return _0x6eb3(_0x3ba409,_0x2cce24- -0x189);}const _0x5bfac1=_0x1022f4;try{const _0x427b36=JSON[_0x4f006f(_0x53dc42._0x2068c5,0x34d)](_0xc3514d);if(_0x5bfac1['hmymb'](_0x427b36[_0x4f006f(_0x53dc42._0x160146,0x3fe)],_0x3f18d0(-0x1f7,-_0x53dc42._0x409450))||_0x427b36[_0x4f006f(_0x53dc42._0x23aa3c,0x2bf)]!==_0x5bfac1['RjiYs']||!_0x427b36['payload'])return null;const _0x361816=typeof _0x427b36[_0x3f18d0(-_0x53dc42._0x1d090b,_0x53dc42._0x4dd6b8)][_0x3f18d0(0xf3,_0x53dc42._0x19461a)+'d']===_0x4f006f(_0x53dc42._0x54dd30,0x270)?_0x427b36['payload'][_0x3f18d0(0xf3,_0x53dc42._0x4fde8a)+'d']['trim']():'';if(!_0x361816)return null;const _0x2cf41b=typeof _0x427b36[_0x3f18d0(-_0x53dc42._0x36c2ef,_0x53dc42._0x25ff9b)][_0x3f18d0(-_0x53dc42._0x4029c0,-_0x53dc42._0x22f694)]==='string'?_0x427b36[_0x3f18d0(-_0x53dc42._0x1d090b,0x70)][_0x4f006f(_0x53dc42._0x2534c0,_0x53dc42._0x265c75)]:_0x4f006f(0x67e,_0x53dc42._0x1989e5),_0x416154=_0x2cf41b==='approved'||_0x2cf41b==='rejected'?_0x2cf41b:_0x5bfac1['pFvRk'],_0x4bb255={};return _0x4bb255['requestI'+'d']=_0x361816,_0x4bb255[_0x3f18d0(-_0x53dc42._0x28757f,-_0x53dc42._0x1511ba)]=_0x416154,_0x4bb255;}catch{return null;}}function firstString(..._0xc21356){function _0x46a341(_0x352506,_0xda8dde){return _0x11b7ab(_0xda8dde,_0x352506-0x2dd);}function _0x4a84d7(_0x4d7b97,_0x4d1a71){return _0x11b7ab(_0x4d1a71,_0x4d7b97-0x464);}for(const _0x5669ed of _0xc21356){if(typeof _0x5669ed===_0x4a84d7(0x3e9,0x3f4)&&_0x5669ed[_0x4a84d7(0x563,0x423)]())return _0x5669ed['trim']();}return'';}function firstNullableString(_0x1b60a8){const _0x1cadc2={_0x4596af:0x310,_0x18cdf0:0x37c,_0x2d59ad:0x37a,_0x717f23:0x379},_0x5a2fe2={_0x22c7e0:0x339};function _0x3f4869(_0x18aa9d,_0x3b7497){return _0x6eb3(_0x18aa9d,_0x3b7497-_0x5a2fe2._0x22c7e0);}const _0x37304b={};_0x37304b['XWKPb']=function(_0x1f371d,_0x37f251){return _0x1f371d===_0x37f251;},_0x37304b[_0x17ad37(0x5c0,0x40e)]=_0x17ad37(0x469,_0x1cadc2._0x4596af);const _0x6df952=_0x37304b;function _0x17ad37(_0x683bd5,_0x5692bd){return _0x6eb3(_0x683bd5,_0x5692bd-0x3cd);}return _0x6df952[_0x17ad37(0x23b,0x2c9)](typeof _0x1b60a8,_0x6df952[_0x3f4869(_0x1cadc2._0x18cdf0,_0x1cadc2._0x2d59ad)])&&_0x1b60a8[_0x17ad37(_0x1cadc2._0x717f23,0x48a)]()?_0x1b60a8[_0x17ad37(0x59d,0x48a)]():null;}function extractRequestIdFromMessage(_0x1f398a){const _0x510487=_0x1f398a[_0x5f2389(0x300,0x35d)](/requestId[:\s]*([a-f0-9-]+)/i);function _0x5f2389(_0x5203c0,_0x2add98){return _0x6eb3(_0x2add98,_0x5203c0-0x315);}return _0x510487?.[0x1]??null;}import{randomUUID as _0x2b14da}from'crypto';import{setTimeout as _0x3ea3f7}from'timers/promises';import _0x17e531 from'ws';var HEARTBEAT_INTERVAL_MS=0x2710,HEARTBEAT_TIMEOUT_MS=0x88b8,GATEWAY_RETRY_DELAY_MS=0x4b0,GATEWAY_IDLE_DISCONNECT_DELAY_MS=0x7530,RECONNECT_BASE_DELAY_MS=0x3e8,RECONNECT_MAX_DELAY_MS=0x3a98,MAX_PENDING_GATEWAY_MESSAGES=0x100,MAX_DEVICE_DETAILS=0x20,MAX_PENDING_PAIR_REQUESTS=0x10,BridgeRuntime=class{[_0x11b7ab(0x72,-0x39)];['relaySoc'+_0x6eb3(0x11a,0x1de)]=null;[_0x6eb3(0x87,-0x148)+'ocket']=null;[_0x6eb3(-0xb,0x183)+'necting']=![];['gatewayC'+'onnectin'+'g']=![];[_0x6eb3(0x47,0x1ba)]=!![];[_0x11b7ab(0x16c,0xe)+_0x6eb3(0xfc,-0xe5)]=0x0;[_0x6eb3(-0x5d,-0x3f)+_0x11b7ab(-0x17,-0x77)+_0x6eb3(-0xc,0xef)]=0x0;[_0x6eb3(0x3e8,0x25b)+_0x6eb3(-0xa,0x4b)]=null;[_0x11b7ab(0x124,0x279)+'etryTime'+'r']=null;['gatewayI'+'dleClose'+_0x11b7ab(0x6e,-0x1d)]=null;[_0x6eb3(-0xb9,0xeb)+_0x6eb3(-0x4a,0x4b)]=null;['pendingG'+_0x6eb3(0x470,0x2b4)+_0x11b7ab(0x304,0x234)]=[];[_0x6eb3(0x47e,0x277)+_0x11b7ab(0x42,-0x63)+_0x11b7ab(-0xa4,0x88)]=![];[_0x6eb3(0x2c2,0x2c0)+'mandStar'+_0x6eb3(-0x8,-0x14c)]=null;[_0x11b7ab(0x1dd,0x2c3)+_0x6eb3(-0x25,-0xd7)+_0x11b7ab(-0xd9,-0x1b)]=null;[_0x11b7ab(0x290,0xec)];constructor(_0x4e053a){const _0x6b1316={_0x5d4185:0xa0,_0x4acb4d:0x15e,_0x4cf19c:0xbd,_0xc5b56d:0x1e2,_0x45804:0x277,_0x16f83c:0x20e},_0x440d53={_0x19392e:0x14a},_0x3de3a3={_0x1822a0:0x146};function _0x1bfcf7(_0x31e7bf,_0x3d18e1){return _0x6eb3(_0x31e7bf,_0x3d18e1- -_0x3de3a3._0x1822a0);}this[_0x1bfcf7(-0x3aa,-0x1c1)]=_0x4e053a;function _0x41c0b5(_0x340bf1,_0x58da5c){return _0x6eb3(_0x58da5c,_0x340bf1- -_0x440d53._0x19392e);}this[_0x41c0b5(-_0x6b1316._0x5d4185,-0x1e1)]={'running':![],'relayConnected':![],'gatewayConnected':![],'gatewayId':_0x4e053a[_0x41c0b5(-0x146,-0x10b)][_0x41c0b5(0x61,0x1d4)+'d'],'instanceId':_0x4e053a['config'][_0x1bfcf7(-0x85,-_0x6b1316._0x4acb4d)+'Id'],'relayUrl':_0x4e053a[_0x1bfcf7(-_0x6b1316._0x4cf19c,-0x142)][_0x1bfcf7(-_0x6b1316._0xc5b56d,-_0x6b1316._0x45804)],'gatewayUrl':_0x4e053a[_0x1bfcf7(-_0x6b1316._0x16f83c,-0x1d6)+'rl'],'clientCount':0x0,'connectedDevices':[],'pendingPairRequests':[],'lastError':null,'lastUpdatedMs':Date[_0x1bfcf7(-0x226,-0xf2)]()};}['start'](){const _0x1d64c0={_0x41ac68:0x263,_0x3688d2:0x2b1,_0xc13163:0x180,_0x1d6678:0x336,_0x22b4ce:0x37,_0x592804:0x217,_0x222d8a:0x1f3,_0xbc635c:0x149,_0x1aee57:0x309,_0x1c6ee5:0x133,_0x17b8aa:0x2d3,_0x147f5d:0x58,_0x3b199b:0x124,_0x2d1542:0x19},_0xdeefed={_0x1b5373:0x128};if(!this[_0x5b170b(0x263,_0x1d64c0._0x41ac68)])return;this['stopped']=![];function _0x14efd1(_0x52bcbf,_0x52c508){return _0x6eb3(_0x52bcbf,_0x52c508-_0xdeefed._0x1b5373);}this[_0x14efd1(_0x1d64c0._0x3688d2,_0x1d64c0._0xc13163)+_0x5b170b(_0x1d64c0._0x1d6678,0x311)]({'running':!![],'gatewayUrl':this[_0x14efd1(_0x1d64c0._0x22b4ce,0xad)][_0x5b170b(0xf5,0x19)+'rl']});function _0x5b170b(_0x44c806,_0xfaab89){return _0x6eb3(_0x44c806,_0xfaab89-0xa9);}this[_0x5b170b(_0x1d64c0._0x592804,_0x1d64c0._0x222d8a)](_0x5b170b(_0x1d64c0._0xbc635c,-0x50)+_0x5b170b(_0x1d64c0._0x1aee57,0x141)+'\x20gateway'+_0x14efd1(-0x5a,-0x3)+this['options']['config'][_0x14efd1(_0x1d64c0._0x1c6ee5,_0x1d64c0._0x17b8aa)+'d']+(_0x5b170b(-0x14e,-_0x1d64c0._0x147f5d)+'Url=')+this[_0x5b170b(0x1bd,0x2e)][_0x5b170b(-_0x1d64c0._0x3b199b,_0x1d64c0._0x2d1542)+'rl']),void this['connectR'+_0x5b170b(0x158,0x2d8)]();}async[_0x6eb3(0x174,0x11c)](){const _0x506f12={_0x3a4b48:0x31d,_0x4bb648:0x160,_0x319777:0x2fb,_0xbcbd8d:0x27e,_0x595440:0x1ee,_0x3a56c0:0xa2,_0x2a4dcb:0x219,_0x250e8d:0x1df,_0x3c893f:0x348,_0x9bc132:0x27e,_0x46dca5:0x436,_0x567bd5:0x23e,_0x118eac:0x2a7,_0x30d50e:0x43d,_0x8cab50:0x1c8,_0x50e633:0x461,_0x47a976:0x23e,_0x4c3ace:0x5ad,_0x3ef1c0:0x34,_0x3df37a:0x9e,_0x5878aa:0x15c,_0x5c3a84:0x134,_0x4d3cbe:0x3db,_0x46a768:0x4d9,_0x3828ec:0x606,_0x138eef:0x283,_0x58497f:0x39f,_0x416369:0x3b3,_0x3bac42:0xf,_0xccbc4e:0x1d3,_0x42324c:0x452,_0x13f950:0x3a2,_0x2e9752:0x2cd},_0x1b7cf0={_0x200851:0x258},_0x2a121a={_0x18002c:0x1ea},_0x398c3b={};_0x398c3b[_0x41b114(0x341,_0x506f12._0x3a4b48)]=_0x41b114(0x15f,0x1a5)+'stopped';const _0x53edeb=_0x398c3b;if(this['stopped'])return;this[_0x22650c(0x551,0x3a4)]=!![],this[_0x22650c(0x513,0x3d6)+_0x41b114(_0x506f12._0x4bb648,0xad)](),this[_0x22650c(_0x506f12._0x319777,_0x506f12._0xbcbd8d)+_0x22650c(0x5c3,0x3c8)]?.['close'](),this[_0x22650c(_0x506f12._0x595440,_0x506f12._0x3a56c0)+'ocket']?.[_0x22650c(_0x506f12._0x2a4dcb,_0x506f12._0x250e8d)](),this[_0x22650c(_0x506f12._0x3c893f,_0x506f12._0x9bc132)+_0x41b114(_0x506f12._0x46dca5,_0x506f12._0x567bd5)]=null,this[_0x41b114(0x110,_0x506f12._0x118eac)+_0x22650c(_0x506f12._0x30d50e,0x4a7)]=null,this[_0x22650c(_0x506f12._0x8cab50,0xba)+_0x41b114(0x50c,0x64b)+_0x41b114(0x44a,0x5a5)]=[],this[_0x22650c(0x2b5,_0x506f12._0x50e633)+'andshake'+_0x22650c(_0x506f12._0x47a976,0x230)]=![],this[_0x22650c(_0x506f12._0x4c3ace,0x4aa)+'mandStar'+_0x22650c(-_0x506f12._0x3ef1c0,_0x506f12._0x3df37a)]=null,this[_0x22650c(0x3cb,0x46b)+_0x22650c(_0x506f12._0x5878aa,0x113)+'AtMs']=null,this['relayCon'+_0x22650c(0x37b,0x1b0)]=![],this[_0x22650c(0x53a,0x46b)+_0x22650c(0x27c,_0x506f12._0x5c3a84)+'g']=![];const _0x39d750={};_0x39d750[_0x22650c(0x22a,0x1cd)]=![],_0x39d750[_0x41b114(_0x506f12._0x4d3cbe,0x259)+'nected']=![];function _0x22650c(_0x1327a8,_0x351934){return _0x6eb3(_0x1327a8,_0x351934-_0x2a121a._0x18002c);}function _0x41b114(_0x34ba79,_0x27fa61){return _0x6eb3(_0x27fa61,_0x34ba79-_0x1b7cf0._0x200851);}_0x39d750[_0x41b114(_0x506f12._0x46a768,_0x506f12._0x3828ec)+_0x22650c(-0xec,0x113)]=![],_0x39d750[_0x41b114(0x122,_0x506f12._0x138eef)+_0x41b114(_0x506f12._0x58497f,_0x506f12._0x416369)]=0x0,_0x39d750[_0x22650c(-_0x506f12._0x3bac42,_0x506f12._0xccbc4e)+'r']=null,this['updateSn'+_0x22650c(0x650,_0x506f12._0x42324c)](_0x39d750),this[_0x41b114(_0x506f12._0x13f950,0x211)](_0x53edeb[_0x41b114(0x341,_0x506f12._0x2e9752)]),await _0x3ea3f7(0x19);}async[_0x6eb3(-0x1b5,-0x12)+'airReque'+'st'](_0x43899c){const _0x4f078d={_0x3a75f6:0x45,_0x1a07d6:0x1fe,_0x5bf516:0x9a,_0x338bae:0x17c,_0xdcf799:0x322,_0x15f506:0x96},_0x1c3184={_0x2251f9:0x198},_0x19f62b={_0x2f1c33:0x14a},_0x28bf4b={};_0x28bf4b[_0x3ab965(-0x1ca,-0x2ce)]=_0xe6035(0x1a7,0x378)+'air.appr'+_0x3ab965(-_0x4f078d._0x3a75f6,0x55);const _0x4ae463=_0x28bf4b;function _0xe6035(_0x2b5e30,_0x5000fb){return _0x11b7ab(_0x5000fb,_0x2b5e30- -_0x19f62b._0x2f1c33);}const _0x5048e8={};_0x5048e8[_0x3ab965(0x126,_0x4f078d._0x1a07d6)+'d']=_0x43899c,this[_0x3ab965(-_0x4f078d._0x5bf516,0x9c)+'wayReque'+'st'](_0x4ae463[_0xe6035(-_0x4f078d._0x338bae,-_0x4f078d._0xdcf799)],_0x5048e8);function _0x3ab965(_0x452630,_0x5b38f6){return _0x11b7ab(_0x5b38f6,_0x452630- -_0x1c3184._0x2251f9);}this['markPair'+_0x3ab965(-0x70,-0x1fd)+_0xe6035(-0x1cd,-0x131)](_0x43899c,_0x3ab965(-0x4c,-_0x4f078d._0x15f506));}async[_0x6eb3(0x1f,0x175)+_0x6eb3(0x153,0x117)+'t'](_0x22f44c){const _0x369c8d={_0x43eeda:0x29b,_0x428840:0x28f,_0x934078:0x137,_0xe55ff7:0xae,_0x5da5e5:0x2c9,_0x3174b9:0x317,_0x4e22ac:0x96,_0x261fc5:0x84,_0x510e25:0x1fb,_0x523053:0xb6,_0xa11df6:0x134},_0x23b944={};_0x23b944[_0x2419cd(_0x369c8d._0x43eeda,0x317)]=_0x2419cd(_0x369c8d._0x428840,0x3fd)+_0x1aae02(_0x369c8d._0x934078,-0x18)+'ct';function _0x2419cd(_0x370b3b,_0x1bb167){return _0x6eb3(_0x370b3b,_0x1bb167-0x14e);}const _0x1dd0de=_0x23b944,_0x417e00={};function _0x1aae02(_0x1435e0,_0x542251){return _0x6eb3(_0x1435e0,_0x542251- -0x16a);}_0x417e00['requestI'+'d']=_0x22f44c,this[_0x1aae02(-0xef,-_0x369c8d._0xe55ff7)+_0x1aae02(0x7a,0x116)+'st'](_0x1dd0de[_0x2419cd(_0x369c8d._0x5da5e5,_0x369c8d._0x3174b9)],_0x417e00),this['markPair'+_0x1aae02(-_0x369c8d._0x4e22ac,-_0x369c8d._0x261fc5)+_0x2419cd(_0x369c8d._0x510e25,0x89)](_0x22f44c,_0x1aae02(_0x369c8d._0x523053,-_0x369c8d._0xa11df6));}[_0x11b7ab(0x313,0x11d)+'hot'](){const _0x2121ec={_0x626ae0:0x313,_0x2a77df:0x2ae,_0x3c962d:0x1a0,_0x475c47:0x24c,_0x3a40e7:0x1f6,_0x59cf40:0x24e},_0x524a2c={_0x444746:0x198},_0x12537c={...this[_0x5b9ba6(0x242,_0x2121ec._0x626ae0)]};function _0x5b9ba6(_0x18782a,_0x25aee2){return _0x6eb3(_0x25aee2,_0x18782a-_0x524a2c._0x444746);}_0x12537c[_0x5b9ba6(0x28a,0x249)+_0x5b9ba6(_0x2121ec._0x2a77df,0x469)]=[...this[_0x5b9ba6(0x242,0x2a1)]['connecte'+_0x5b9ba6(0x2ae,_0x2121ec._0x3c962d)]],_0x12537c[_0x5b9ba6(0x1bd,0x173)+_0x5b9ba6(0x129,_0x2121ec._0x475c47)+'sts']=[...this['snapshot'][_0x5b9ba6(0x1bd,_0x2121ec._0x3a40e7)+_0x13ba26(0x4ea,0x485)+_0x5b9ba6(_0x2121ec._0x59cf40,0x192)]];function _0x13ba26(_0x1029ac,_0x2f13e6){return _0x6eb3(_0x1029ac,_0x2f13e6-0x4f4);}return _0x12537c;}async[_0x6eb3(0x21a,0x2a8)+_0x6eb3(0x104,0x22f)](){const _0x497fb8={_0x3cbd24:0xe0,_0x321a19:0x533,_0x251c31:0x45,_0x4fa7c5:0x3c,_0x43b9f3:0x155,_0x1d35a3:0x341,_0x5ee9f1:0x4c5,_0x8f2b7d:0x4c3,_0x363bb3:0x3e1,_0x3a1810:0x4ec,_0x2544f7:0x3ff,_0x2761e3:0x2d6,_0x1df405:0x2ad},_0x52f2af={_0x543199:0x3d9,_0x5ac0a3:0x1ec,_0xc0ea0d:0xe8,_0x3c7261:0x4d1,_0x460c00:0x270,_0x491577:0x2d8,_0x1391eb:0x1a3,_0x4dcd89:0x19e,_0x2d6491:0x253,_0x2dc33:0x74,_0x5a16a4:0x185,_0x1fe00c:0x2d0,_0x4e253e:0xe9,_0x4860d1:0x31f,_0x1a9b84:0x7e,_0x350663:0x18e,_0x889cdb:0x1b0,_0x5e4392:0xb1,_0x307ebb:0xaf,_0x4c706f:0x3f8,_0x1c3d78:0x327,_0x3ebe22:0x34,_0xeecbf2:0x26d},_0x56e583={_0x33d280:0x2},_0x461fb6={_0x112194:0x27c,_0x5e1a44:0x1f6,_0x1644cc:0x383,_0x4851f5:0x4e,_0x14c058:0x5d},_0x2e0012={_0x58b81b:0x8e3,_0x5cd5f6:0x70c,_0x3f2375:0x5e6,_0x33c78a:0x129,_0x33165d:0xc0,_0x32a670:0x6b7,_0x37fdee:0x32d,_0x157368:0x518,_0xa848:0x1c,_0x3ca376:0x16e,_0x94c778:0x91,_0x42009d:0x61,_0x32481e:0x33,_0x1532dc:0x444,_0x42182f:0x1b3,_0x45bf58:0x148,_0xc76e16:0x4d,_0x21872d:0xe2,_0x1cac69:0x46c,_0x27c192:0x2e6},_0x526df3={_0x5ccfcf:0x379},_0x88df78={'BOAUR':function(_0x56f0e5,_0x167b62){return _0x56f0e5===_0x167b62;},'lwgRK':_0x45b8da(_0x497fb8._0x3cbd24,0x96),'uEGOg':function(_0xd0ea8a,_0x493ee1){return _0xd0ea8a(_0x493ee1);},'YgDEb':function(_0x10f94e,_0x1dfd95){return _0x10f94e*_0x1dfd95;}};if(this[_0x557982(0x4f6,_0x497fb8._0x321a19)]||this[_0x45b8da(0x181,-_0x497fb8._0x251c31)+_0x45b8da(-_0x497fb8._0x4fa7c5,-0x56)]||this[_0x557982(0x4f4,0x381)+'pen']())return;function _0x557982(_0x577f2b,_0x433263){return _0x6eb3(_0x577f2b,_0x433263-_0x526df3._0x5ccfcf);}this[_0x45b8da(0x181,0x291)+'necting']=!![],this[_0x557982(0x1ec,0x345)+'empt']+=0x1;const _0xa0b52d=this[_0x45b8da(-0x36,0x79)+'empt'],_0x362b12=_0x88df78[_0x45b8da(0x11,-_0x497fb8._0x43b9f3)](buildRelayWsUrl,this[_0x557982(_0x497fb8._0x1d35a3,0x2fe)][_0x557982(_0x497fb8._0x5ee9f1,0x37d)]);this[_0x557982(0x39e,_0x497fb8._0x8f2b7d)](_0x557982(0x361,_0x497fb8._0x363bb3)+_0x557982(0x4ff,_0x497fb8._0x3a1810)+'tempt='+_0xa0b52d+_0x557982(0x42f,0x37e)+redactRelayWsUrl(_0x362b12));const _0x470017=new _0x17e531(_0x362b12,{'maxPayload':_0x88df78[_0x557982(_0x497fb8._0x2544f7,0x4a3)](0x19*0x400,0x400)});this[_0x45b8da(0x92,0x27b)+_0x557982(0x6fc,0x557)]=_0x470017,_0x470017['once'](_0x45b8da(-0x112,-0x85),()=>{if(this[_0x157a2b(_0x2e0012._0x58b81b,_0x2e0012._0x5cd5f6)]||this[_0x157a2b(0x491,_0x2e0012._0x3f2375)+_0x3a62bf(_0x2e0012._0x33c78a,0x20f)]!==_0x470017){_0x470017[_0x3a62bf(-_0x2e0012._0x33165d,-0x1e)]();return;}function _0x3a62bf(_0x43adb7,_0x3e8eb7){return _0x557982(_0x3e8eb7,_0x43adb7- -0x42e);}this[_0x157a2b(_0x2e0012._0x32a670,0x6d5)+_0x157a2b(_0x2e0012._0x37fdee,_0x2e0012._0x157368)]=![],this[_0x3a62bf(-0xf4,-_0x2e0012._0xa848)+_0x3a62bf(-_0x2e0012._0x3ca376,-_0x2e0012._0x94c778)+'yMs']=Date[_0x3a62bf(-_0x2e0012._0x42009d,_0x2e0012._0x32481e)]();const _0x52f67={};_0x52f67['relayCon'+_0x157a2b(0x602,_0x2e0012._0x1532dc)]=!![],_0x52f67[_0x157a2b(0x651,0x53b)+'r']=null,this[_0x157a2b(0x5b7,0x5aa)+_0x3a62bf(_0x2e0012._0x42182f,0x161)](_0x52f67);function _0x157a2b(_0x33c499,_0x32e718){return _0x557982(_0x33c499,_0x32e718-0x1d9);}this[_0x3a62bf(0x95,-_0x2e0012._0x45bf58)](_0x3a62bf(-_0x2e0012._0xc76e16,_0x2e0012._0x21872d)+_0x157a2b(0x4c8,0x4cd)+_0x157a2b(_0x2e0012._0x1cac69,0x660)+_0xa0b52d),this[_0x3a62bf(0xd5,0x2cd)+_0x3a62bf(0x204,_0x2e0012._0x27c192)]();}),_0x470017['on']('message',(_0x1817a6,_0x5df622)=>{function _0x41e22b(_0x5f47b6,_0x281cf9){return _0x557982(_0x281cf9,_0x5f47b6- -0x2b2);}function _0x142076(_0x136f60,_0x19b274){return _0x557982(_0x19b274,_0x136f60- -0x2bd);}void this[_0x41e22b(0x349,0x2e7)+_0x142076(-0xd,-0x1b2)+'ge'](_0x1817a6,_0x5df622);}),_0x470017['on'](_0x557982(_0x497fb8._0x2761e3,0x27e),()=>{function _0x4f2519(_0x353173,_0x378f35){return _0x45b8da(_0x353173- -0x13b,_0x378f35);}function _0x14af77(_0xe199f7,_0x31a766){return _0x45b8da(_0x31a766-0x45c,_0xe199f7);}this[_0x4f2519(-0x17c,-_0x461fb6._0x112194)+_0x4f2519(-_0x461fb6._0x5e1a44,-_0x461fb6._0x1644cc)+_0x4f2519(-_0x461fb6._0x4851f5,_0x461fb6._0x14c058)]=Date['now']();}),_0x470017[_0x45b8da(0x135,-0x64)](_0x45b8da(-0x9b,-0x11c),_0x121b37=>{const _0x554ab3={_0x157ef2:0x30f};function _0x990f9e(_0x2b2e8b,_0x550083){return _0x45b8da(_0x550083-_0x554ab3._0x157ef2,_0x2b2e8b);}this['log'](_0x990f9e(0x585,0x3df)+'ror:\x20'+String(_0x121b37));});function _0x45b8da(_0x47369f,_0x3a871a){return _0x6eb3(_0x3a871a,_0x47369f- -_0x56e583._0x33d280);}_0x470017[_0x557982(_0x497fb8._0x1df405,0x4b0)](_0x557982(0x460,0x36e),(_0x19547b,_0x4c9bd7)=>{const _0x4c8118={_0x1d9a4e:0x445},_0x5e31e0={_0x4cf546:0x17e};this[_0x3f589b(0x28f,0x94)+_0x3f589b(_0x52f2af._0x543199,_0x52f2af._0x5ac0a3)]===_0x470017&&(this[_0x3f589b(0x28f,0x324)+_0x56efdb(-_0x52f2af._0xc0ea0d,0x112)]=null);this[_0x3f589b(0x37e,_0x52f2af._0x3c7261)+_0x3f589b(0x1c1,0x1bb)]=![],this['stopHear'+_0x3f589b(_0x52f2af._0x460c00,0x281)](),this[_0x3f589b(0x4bb,0x57a)+_0x3f589b(0x2ff,_0x52f2af._0x491577)+_0x56efdb(-0x1f0,-0x218)]=null,this['gatewayC'+_0x56efdb(-0x386,-_0x52f2af._0x1391eb)+_0x3f589b(_0x52f2af._0x4dcd89,0x349)]=null,this[_0x3f589b(_0x52f2af._0x2d6491,_0x52f2af._0x2dc33)+_0x3f589b(0x463,0x5e4)]({'relayConnected':![],'gatewayConnected':![],'clientCount':0x0,'lastError':_0x88df78['BOAUR'](_0x19547b,0x3e8)?null:_0x56efdb(0xff,_0x52f2af._0x5a16a4)+_0x3f589b(_0x52f2af._0x1fe00c,_0x52f2af._0x4e253e)+(_0x4c9bd7[_0x3f589b(0x323,_0x52f2af._0x4860d1)]()||_0x19547b)});function _0x3f589b(_0x5e08a3,_0x5643db){return _0x557982(_0x5643db,_0x5e08a3- -_0x5e31e0._0x4cf546);}this[_0x56efdb(0x154,_0x52f2af._0x1a9b84)](_0x56efdb(-0x2c3,-_0x52f2af._0x350663)+'sconnect'+_0x56efdb(_0x52f2af._0x889cdb,_0x52f2af._0x5e4392)+_0x19547b+_0x56efdb(-0xe2,_0x52f2af._0x307ebb)+(_0x4c9bd7['toString']()||_0x88df78[_0x3f589b(_0x52f2af._0x4c706f,_0x52f2af._0x1c3d78)]));function _0x56efdb(_0x49987b,_0x2f0e56){return _0x557982(_0x49987b,_0x2f0e56- -_0x4c8118._0x1d9a4e);}this['closeGat'+_0x56efdb(0x18,_0x52f2af._0x3ebe22)](),this[_0x56efdb(_0x52f2af._0xeecbf2,0xbd)+'RelayRec'+'onnect']();});}async[_0x6eb3(0x1dd,0x282)+_0x6eb3(0xa5,-0xc9)+'ge'](_0x4cf695,_0x3371c5){const _0x371487={_0x43a05f:0x15c,_0x2322d4:0x21a,_0x3bc8de:0x1ef,_0x2e336c:0x118,_0x1a420d:0x1f5,_0x22251d:0x23f,_0x55acea:0x21b,_0x362a9a:0x2a,_0x4b840c:0x1d7,_0x3a7aa8:0x26d,_0x4a0ad1:0x2c5,_0x40e2f9:0x284,_0x171bcf:0x78,_0xd60bc0:0x103,_0x56d38f:0x169,_0x3a6506:0x40,_0x124f46:0x36,_0x57e1cd:0xc3},_0x5de644={_0x21e9fb:0x43},_0xcff6ca={'dXcpM':function(_0x22e392,_0x155bb4){return _0x22e392(_0x155bb4);}};this[_0x3283a3(0xcf,_0x371487._0x43a05f)+_0x5e5779(-0x22b,-0x76)+_0x5e5779(0x244,0x132)]=Date[_0x3283a3(_0x371487._0x2322d4,_0x371487._0x3bc8de)]();if(_0x3371c5){this[_0x3283a3(0x217,_0x371487._0x2e336c)+_0x3283a3(_0x371487._0x1a420d,0x21d)+_0x3283a3(_0x371487._0x22251d,_0x371487._0x55acea)+_0x5e5779(-0x243,-0x78)]({'kind':_0x3283a3(_0x371487._0x362a9a,0x9f),'data':normalizeBinary(_0x4cf695)});return;}const _0x187b0e=normalizeText(_0x4cf695);if(_0x187b0e==null)return;const _0x4b28d7=_0xcff6ca[_0x5e5779(0x232,_0x371487._0x4b840c)](parseControl,_0x187b0e);if(_0x4b28d7){this[_0x5e5779(_0x371487._0x3a7aa8,_0x371487._0x4a0ad1)+_0x5e5779(0x1e0,_0x371487._0x40e2f9)+'ol'](_0x4b28d7[_0x5e5779(0x5,-0x2b)],_0x4b28d7['count']);return;}function _0x3283a3(_0x32d5c6,_0x165a8c){return _0x6eb3(_0x32d5c6,_0x165a8c-0x19b);}const _0x6dd75e=parseConnectStartIdentity(_0x187b0e);_0x6dd75e&&this['observeC'+'onnectSt'+_0x3283a3(-0xe,0xa9)](_0x6dd75e['id'],_0x6dd75e[_0x5e5779(0x1ea,_0x371487._0x171bcf)]);const _0xd973f={};_0xd973f[_0x5e5779(0x2e1,0x20d)]=_0x3283a3(_0x371487._0xd60bc0,0x169);function _0x5e5779(_0xf38620,_0x27c798){return _0x6eb3(_0xf38620,_0x27c798-_0x5de644._0x21e9fb);}_0xd973f[_0x3283a3(-0x8e,_0x371487._0x56d38f)]=_0x187b0e,this[_0x5e5779(-0x15b,-_0x371487._0x3a6506)+'rQueueGa'+_0x5e5779(_0x371487._0x124f46,_0x371487._0x57e1cd)+'sage'](_0xd973f);}['handleRe'+'layContr'+'ol'](_0x4eadcb,_0x18feb1){const _0x14f93e={_0x3edb51:0xe0,_0x8df858:0x1cc,_0x1ddf0c:0xd3,_0x25229e:0x60b,_0x1aaf9b:0x46d,_0x2f9c1f:0x3fe,_0x4eff2c:0x200,_0x3270fd:0x180,_0x46737f:0x552,_0x32be76:0x597,_0x30404e:0x40a,_0xdf08aa:0x532,_0x810d9c:0x441,_0x1e887f:0x50,_0x3ab9eb:0x6cb,_0x39ac9a:0x26b,_0x46d3b9:0x17b,_0x20545a:0x31e,_0x2f3cc6:0x175,_0x46313c:0x105,_0x2d3c5b:0xee,_0x3d5f2d:0x5ea,_0x6a680:0x231,_0x4fef12:0x4e6,_0x4a7cdb:0xa1,_0x450caa:0x2bc,_0x3fd9b2:0x272,_0x3a7d75:0x552,_0x325956:0x46e,_0x5b916e:0x288,_0x4d1b59:0x128,_0x56a807:0x3b0,_0x326283:0x92,_0xc2a2c2:0x1e1,_0x14f52c:0x63,_0x3deec1:0x6c5,_0x50ffcf:0x163,_0x1551f5:0x359,_0x2fcbef:0x123,_0xc96ca6:0x54f,_0x18be7b:0x746,_0x5c39d3:0x2c2,_0x55345a:0x4c7,_0x56bd3e:0x33b,_0x477999:0x18b,_0x142c81:0x416,_0x40a7e6:0x5d4,_0x466c9d:0x66f,_0x66e132:0x150,_0x36ec49:0x21d,_0x389e40:0x605,_0x2bad34:0x6ac,_0x2c7584:0x2cb,_0x3fe7e8:0x267,_0xedcd82:0x5f4,_0x5f2630:0x645,_0x568b93:0x31f,_0x4aa87e:0x5dc,_0x1998af:0x5b9,_0x5b6005:0x384,_0x59f90d:0x3e5,_0x5ca385:0x303,_0x5c5f12:0x1f4,_0x1d74dc:0x433,_0x12274f:0x3d8,_0xaceaaa:0x255,_0x10efa4:0x77,_0x148da4:0x63d,_0x54e117:0x1e5,_0x39f6bc:0x254,_0x3930cd:0x1bf,_0x3577d3:0x194,_0x30b026:0x32c,_0x1e580b:0x6d3,_0x2a8b2d:0x35a,_0x51a357:0x52,_0x1d96a1:0x1fa,_0x1420c3:0x506,_0x186d02:0x1b2,_0x42cd9a:0x199,_0x5c6a29:0x8b,_0x1ae086:0x55,_0x348d08:0x2df,_0x1f86ae:0x572,_0x94d98b:0x3e4,_0xa1d098:0x260,_0xe248af:0xe4,_0x18f486:0x270,_0x89b5a6:0x6c,_0x20ddb6:0x193,_0x23920:0x37e,_0x29222d:0x1cb,_0x4ac686:0x179,_0x851dbe:0xf,_0x24f307:0x231,_0x435424:0x5bc,_0x27c5d2:0x422,_0x1fb7c0:0x132,_0x20ac6f:0x384,_0x33d43c:0x100},_0x4fdd1b={_0x236dbf:0xf5},_0x4043b0={'vqNDF':function(_0x51e201,_0x2fcf56){return _0x51e201===_0x2fcf56;},'yMfXs':_0x5bac0d(0x15b,_0x14f93e._0x3edb51)+_0x5bac0d(-0x12a,-_0x14f93e._0x8df858),'gBBlO':function(_0x70e350,_0x1ace3d){return _0x70e350==_0x1ace3d;},'RxvtL':function(_0x406088,_0x1001e3,_0x2d5163,_0xf4ee1d,_0x236f17){return _0x406088(_0x1001e3,_0x2d5163,_0xf4ee1d,_0x236f17);},'TprFP':'gateway\x20'+'recycle\x20'+_0x5bac0d(_0x14f93e._0x1ddf0c,-0xfb)+_0x17eda9(0x4a3,0x3da)+'esh\x20clie'+'nt\x20deman'+'d','PeZgI':'client_d'+_0x17eda9(_0x14f93e._0x25229e,_0x14f93e._0x1aaf9b)+'ted'};if(_0x4043b0[_0x17eda9(0x2f2,0x265)](_0x4eadcb,_0x4043b0[_0x5bac0d(-_0x14f93e._0x2f9c1f,-_0x14f93e._0x4eff2c)])||_0x4043b0[_0x5bac0d(-0x17f,-_0x14f93e._0x3270fd)](_0x4eadcb,_0x17eda9(_0x14f93e._0x46737f,_0x14f93e._0x32be76)+_0x17eda9(0x362,0x207))){const _0x1d4e43=this[_0x17eda9(0x427,0x61e)][_0x5bac0d(-_0x14f93e._0x30404e,-0x22b)+_0x17eda9(0x4c4,_0x14f93e._0xdf08aa)],_0x2dcbdf=_0x18feb1??Math[_0x17eda9(_0x14f93e._0x810d9c,0x617)](0x1,this[_0x5bac0d(_0x14f93e._0x1e887f,-0x4b)]['clientCo'+_0x17eda9(0x4c4,_0x14f93e._0x3ab9eb)]),_0x373847=Boolean(this['gatewayI'+_0x5bac0d(-_0x14f93e._0x39ac9a,-_0x14f93e._0x46d3b9)+_0x17eda9(_0x14f93e._0x20545a,_0x14f93e._0x2f3cc6)]);_0x2dcbdf>0x0&&_0x4043b0[_0x5bac0d(-_0x14f93e._0x46313c,_0x14f93e._0x2d3c5b)](this['clientDe'+_0x17eda9(0x481,_0x14f93e._0x3d5f2d)+_0x17eda9(_0x14f93e._0x6a680,0x10a)],null)&&(this[_0x17eda9(0x63d,_0x14f93e._0x4fef12)+_0x5bac0d(_0x14f93e._0x4a7cdb,0xf)+_0x5bac0d(-0x3f5,-0x241)]=Date[_0x17eda9(0x3d1,0x316)]());const _0x2d3ff3={};_0x2d3ff3['clientCo'+'unt']=_0x2dcbdf,this['updateSn'+_0x17eda9(0x5e5,0x698)](_0x2d3ff3);if(_0x2dcbdf===0x0)this[_0x5bac0d(_0x14f93e._0x450caa,0x144)+_0x5bac0d(0x26,0x1e)+'t'](),this[_0x5bac0d(0x269,0x94)+'GatewayI'+_0x5bac0d(-_0x14f93e._0x3fd9b2,-_0x14f93e._0x46d3b9)](_0x17eda9(_0x14f93e._0x3a7d75,_0x14f93e._0x325956)+_0x17eda9(0x595,0x6ff)+'o');else{this['cancelGa'+_0x17eda9(_0x14f93e._0x5b916e,0x131)+'eClose'](_0x5bac0d(-0xbd,_0x14f93e._0x4d1b59)+_0x17eda9(0x5a4,_0x14f93e._0x56a807)+_0x17eda9(0x4e7,0x43e));_0x4043b0[_0x5bac0d(-_0x14f93e._0x326283,-_0x14f93e._0xc2a2c2)](shouldRecycleGatewayForFreshClient,_0x1d4e43,_0x2dcbdf,this[_0x5bac0d(-0x80,_0x14f93e._0x14f52c)+_0x17eda9(0x54f,_0x14f93e._0x3deec1)](),_0x373847)&&(this[_0x5bac0d(-_0x14f93e._0x50ffcf,0x55)](_0x4043b0[_0x5bac0d(-0x2a4,-0x1c8)]),this[_0x17eda9(_0x14f93e._0x1551f5,0x2a4)+_0x17eda9(0x47d,0x680)]());if(this[_0x5bac0d(-_0x14f93e._0x2fcbef,_0x14f93e._0x14f52c)+_0x17eda9(_0x14f93e._0xc96ca6,_0x14f93e._0x18be7b)]()){const _0xb0baca={};_0xb0baca[_0x5bac0d(0x1e,0x18c)+_0x5bac0d(-0x96,-_0x14f93e._0x8df858)]=!![],_0xb0baca['lastErro'+'r']=null,this['updateSn'+_0x5bac0d(_0x14f93e._0x5c39d3,0x173)](_0xb0baca),this[_0x17eda9(_0x14f93e._0x55345a,_0x14f93e._0x56bd3e)](_0x5bac0d(-_0x14f93e._0x477999,-0x2f)+_0x17eda9(_0x14f93e._0x142c81,0x21f)+'en\x20since'+_0x17eda9(0x338,0x2b8)+_0x17eda9(_0x14f93e._0x40a7e6,_0x14f93e._0x466c9d)+this[_0x5bac0d(-_0x14f93e._0x66e132,-_0x14f93e._0x36ec49)+_0x17eda9(_0x14f93e._0x389e40,_0x14f93e._0x2bad34)](this['gatewayC'+'onnected'+_0x17eda9(0x320,_0x14f93e._0x2c7584)])+(_0x5bac0d(-0x106,-0x19)+_0x17eda9(_0x14f93e._0x3fe7e8,0x3c1)+'d=')+this[_0x17eda9(_0x14f93e._0xedcd82,_0x14f93e._0x5f2630)+'andshake'+_0x17eda9(0x3c3,_0x14f93e._0x568b93)]);}this[_0x17eda9(0x5dd,_0x14f93e._0x4aa87e)+_0x17eda9(_0x14f93e._0x1998af,0x60d)+_0x17eda9(0x26f,_0x14f93e._0x5b6005)]();}this[_0x17eda9(_0x14f93e._0x55345a,0x45b)](_0x17eda9(_0x14f93e._0x59f90d,0x3e1)+'ntrol\x20ev'+_0x17eda9(0x391,_0x14f93e._0x5ca385)+_0x4eadcb+_0x17eda9(0x239,_0x14f93e._0x5c5f12)+_0x2dcbdf+(_0x17eda9(0x5ca,_0x14f93e._0x1d74dc)+_0x17eda9(_0x14f93e._0x12274f,0x4af)+_0x17eda9(0x38b,0x4c1))+this[_0x17eda9(_0x14f93e._0xaceaaa,0x336)+_0x5bac0d(_0x14f93e._0x10efa4,0x193)](this[_0x17eda9(_0x14f93e._0x148da4,0x4e4)+_0x5bac0d(_0x14f93e._0x54e117,0xf)+_0x17eda9(0x231,0x9b)])+_0x17eda9(_0x14f93e._0x39f6bc,0x153)+this['pendingG'+_0x5bac0d(0x1df,_0x14f93e._0x3930cd)+'ssages'][_0x5bac0d(_0x14f93e._0x3577d3,-0x4e)]);return;}if(_0x4eadcb===_0x4043b0[_0x17eda9(_0x14f93e._0x30b026,0x177)]){this[_0x17eda9(_0x14f93e._0xedcd82,_0x14f93e._0x1e580b)+'andshake'+_0x17eda9(0x3c3,_0x14f93e._0x2a8b2d)]=![];const _0x3ede11={};_0x3ede11[_0x5bac0d(-0x396,-0x22b)+_0x5bac0d(-0x141,_0x14f93e._0x51a357)]=0x0,this['updateSn'+_0x5bac0d(_0x14f93e._0x1d96a1,0x173)](_0x3ede11),this[_0x5bac0d(0x45,0x144)+'cesRecen'+'t'](),this[_0x17eda9(_0x14f93e._0x1420c3,0x538)+'GatewayI'+_0x17eda9(0x2f7,_0x14f93e._0x186d02)](_0x17eda9(0x59a,0x6bf)+_0x5bac0d(0xb1,_0x14f93e._0x42cd9a)+_0x5bac0d(0xce,0xbc)),this[_0x5bac0d(-_0x14f93e._0x5c6a29,_0x14f93e._0x1ae086)](_0x17eda9(_0x14f93e._0x59f90d,_0x14f93e._0x348d08)+_0x17eda9(_0x14f93e._0x1f86ae,_0x14f93e._0x94d98b)+_0x5bac0d(-0x218,-0x126)+_0x17eda9(0x322,0x2d2)+_0x5bac0d(-_0x14f93e._0xa1d098,-0x17a)+_0x17eda9(0x2eb,_0x14f93e._0xe248af)+_0x5bac0d(_0x14f93e._0x18f486,0x13f)+_0x5bac0d(-0x2,-0x1f3)+this[_0x17eda9(0x255,0xa3)+_0x5bac0d(-_0x14f93e._0x89b5a6,_0x14f93e._0x20ddb6)](this[_0x5bac0d(_0x14f93e._0x23920,_0x14f93e._0x29222d)+_0x5bac0d(-_0x14f93e._0x4ac686,_0x14f93e._0x851dbe)+_0x17eda9(_0x14f93e._0x24f307,0x2d9)])+('\x20sinceGa'+_0x17eda9(0x46d,_0x14f93e._0x435424)+_0x17eda9(0x34e,0x2c8))+this[_0x5bac0d(-0x209,-_0x14f93e._0x36ec49)+_0x17eda9(0x605,0x47f)](this[_0x17eda9(0x5fe,0x6cc)+_0x17eda9(0x2a6,_0x14f93e._0x27c5d2)+'AtMs']));return;}function _0x17eda9(_0x21e0b0,_0x1db556){return _0x6eb3(_0x1db556,_0x21e0b0-0x37d);}function _0x5bac0d(_0x45cee8,_0x3e65db){return _0x6eb3(_0x45cee8,_0x3e65db- -_0x4fdd1b._0x236dbf);}this[_0x5bac0d(_0x14f93e._0x1fb7c0,0x55)](_0x17eda9(0x3e5,_0x14f93e._0x20ac6f)+_0x5bac0d(0x1c0,_0x14f93e._0x33d43c)+'ent='+_0x4eadcb);}[_0x11b7ab(-0x1ea,-0x41)+_0x11b7ab(0x1f0,0xc4)+_0x11b7ab(-0x104,0xc2)+'sage'](_0x200f81){const _0x4923b4={_0x93c8bd:0x5d1,_0x694c18:0x8ef,_0xebb851:0x417,_0x3f2fb8:0x3d5,_0x5e1223:0x8c4,_0x493353:0x4cc,_0x3e663c:0x723,_0x343581:0x4bc,_0x262935:0x49c,_0x4b5b1a:0x847,_0x4b35dd:0x6ba,_0x70f20c:0x64d,_0x2c41c1:0x439,_0x1307cf:0x2e5,_0x2e93e7:0x78b,_0x52dc0f:0x5f9,_0x2a7a31:0x4ae,_0x28a887:0x57f,_0x5dfb2b:0x7f9,_0x58e25c:0x667,_0x4d1d12:0x643,_0x3b330b:0x5c6,_0x251106:0x642,_0x10bc85:0x7f2,_0x1f7267:0x375,_0x5b91c9:0x3ce,_0x41ff60:0x7e5,_0x461363:0x74b,_0x1450ae:0x306,_0x1d9fe9:0x338,_0x571ca6:0x515,_0x494f03:0x6fe,_0x4ef292:0x512,_0x53fdb6:0x671,_0x326e28:0x630,_0x585241:0x3de,_0x1efac1:0x46d,_0x62a9ad:0x838,_0xf7fece:0x3ec,_0x4cb948:0x3a4,_0x1b5864:0x82f,_0x3a2d51:0x668,_0x5755a6:0x781,_0x337b94:0x5fe,_0x4e9f78:0x8cf,_0x396c4e:0x691,_0x4c7580:0x7b3,_0x59d62d:0x532,_0x1bdf23:0x62d},_0x27c63a={_0x3d6d07:0x3c5};function _0x275497(_0x226ad9,_0x1bf41e){return _0x11b7ab(_0x226ad9,_0x1bf41e-0x576);}const _0x5ed001={'jpbGv':function(_0x2f0ae1,_0x3a406f,_0x56d2e0){return _0x2f0ae1(_0x3a406f,_0x56d2e0);},'aDLMi':function(_0x4b5e58,_0x299441){return _0x4b5e58(_0x299441);}},_0xccf874=_0x200f81[_0x526339(0x74a,_0x4923b4._0x93c8bd)]===_0x526339(0x470,0x3d5)&&isConnectHandshakeRequest(_0x200f81[_0x275497(0x3ca,0x586)]);if(_0x200f81[_0x275497(_0x4923b4._0x694c18,0x782)]===_0x526339(0x599,0x3d5)){const _0x41c125=summarizeJsonFrame(_0x200f81[_0x526339(_0x4923b4._0xebb851,_0x4923b4._0x3f2fb8)]);_0x41c125&&this[_0x275497(_0x4923b4._0x5e1223,0x702)](_0x526339(0x37a,_0x4923b4._0x493353)+_0x275497(0x88f,_0x4923b4._0x3e663c)+_0x41c125+('\x20handsha'+_0x526339(_0x4923b4._0x343581,_0x4923b4._0x262935))+_0xccf874+('\x20gateway'+_0x275497(_0x4923b4._0x4b5b1a,_0x4923b4._0x4b35dd))+this['isGatewa'+_0x526339(_0x4923b4._0x70f20c,0x5d9)]()+_0x526339(_0x4923b4._0x2c41c1,0x2de)+this[_0x275497(_0x4923b4._0x1307cf,0x488)+_0x275497(_0x4923b4._0x2e93e7,0x86c)+_0x526339(0x42a,_0x4923b4._0x52dc0f)][_0x526339(0x60d,_0x4923b4._0x2a7a31)]);}const _0x1e410e=this[_0x526339(0x180,0x2bf)+'ocket'];if(!_0x1e410e||_0x1e410e[_0x275497(0x6d0,_0x4923b4._0x28a887)+'te']!==_0x17e531[_0x526339(0x592,0x556)]){this[_0x526339(_0x4923b4._0x5dfb2b,_0x4923b4._0x58e25c)+_0x526339(0x7c2,_0x4923b4._0x4d1d12)+_0x526339(0x1b3,0x2f9)]();if(_0x5ed001[_0x526339(0x781,_0x4923b4._0x3b330b)](shouldDropStaleConnectAfterGatewayReopen,_0x5ed001[_0x275497(_0x4923b4._0x251106,_0x4923b4._0x10bc85)](Boolean,_0x1e410e&&_0x1e410e[_0x526339(_0x4923b4._0x1f7267,_0x4923b4._0x5b91c9)+'te']===_0x17e531['OPEN']),_0xccf874)){this[_0x275497(0x636,0x702)]('stale\x20co'+_0x275497(_0x4923b4._0x41ff60,_0x4923b4._0x461363)+_0x526339(_0x4923b4._0x1450ae,_0x4923b4._0x1d9fe9)+'ter\x20gate'+_0x275497(0x331,_0x4923b4._0x571ca6)+_0x526339(0x61a,0x601)+_0x526339(_0x4923b4._0x494f03,_0x4923b4._0x4ef292)+_0x526339(0x63f,_0x4923b4._0x53fdb6)+_0x526339(0x6b8,_0x4923b4._0x326e28));return;}this[_0x275497(_0x4923b4._0x585241,0x59c)+_0x275497(0x4a2,_0x4923b4._0x1efac1)+_0x526339(0x3e9,0x3a4)+'e'](_0x200f81);return;}if(!this[_0x526339(_0x4923b4._0x62a9ad,0x67e)+_0x275497(0x6e9,0x513)+_0x275497(0x71e,0x5fe)]){if(!_0xccf874){this[_0x526339(_0x4923b4._0xf7fece,0x3eb)+'ingGatew'+_0x526339(0x3db,_0x4923b4._0x4cb948)+'e'](_0x200f81);return;}this[_0x275497(0x633,_0x4923b4._0x1b5864)+_0x275497(_0x4923b4._0x3a2d51,0x513)+_0x275497(_0x4923b4._0x5755a6,_0x4923b4._0x337b94)]=!![],this[_0x275497(_0x4923b4._0x4e9f78,0x702)](_0x275497(_0x4923b4._0x396c4e,0x67e)+_0x275497(0x5ea,0x790)+'e\x20starte'+_0x275497(0x687,_0x4923b4._0x4c7580)+'='+this[_0x275497(_0x4923b4._0x59d62d,0x488)+'atewayMe'+_0x526339(_0x4923b4._0x1bdf23,0x5f9)]['length']);}function _0x526339(_0x85ad8b,_0x2c8242){return _0x11b7ab(_0x85ad8b,_0x2c8242-_0x27c63a._0x3d6d07);}this[_0x526339(0x4c7,0x5e9)+_0x526339(0x532,0x5ec)](_0x200f81);}[_0x11b7ab(0x31d,0x2a2)+_0x6eb3(0x3a7,0x23c)+'nected'](){const _0xeee769={_0x12a3c1:0x31c,_0x32e8ba:0x2a1,_0x46e46e:0x856,_0x5bf7e0:0x244,_0x181af9:0x33e,_0x5d105a:0x457,_0x51f719:0xdc,_0xbc239e:0x232,_0x293761:0x743,_0x22c8e3:0x6c8,_0x534f64:0xbb,_0x13c1c7:0x576,_0x4cea01:0x3da,_0x22688e:0x62,_0x39d720:0x21c,_0x48027b:0x3a3,_0x3bc78c:0x39c,_0x59e0f9:0x3fa,_0x56c8e4:0x3b1,_0x4ae1a1:0x39c,_0x3bb451:0x289,_0x550aa3:0x2a2,_0x565a6a:0x2d6,_0x3f2983:0x149,_0x271673:0x150,_0x2a636e:0xe0,_0x29a903:0x80,_0x21b36f:0x14b,_0x4d12fc:0x5e7,_0x3d8e5b:0x563},_0x556fea={_0x2877a1:0x237,_0x1dd640:0x527,_0x2bfa10:0x304,_0x4c5eaa:0x35d,_0x2020fa:0x12b,_0x12b941:0x12c,_0x1aae4a:0x2c5,_0x38e4f4:0x1fb,_0x3e1b40:0x15e,_0x3b3ae5:0x2e,_0x3cb8d5:0x4db,_0x432b23:0x36f,_0x2fe010:0x24,_0x3dcae5:0x40,_0xcacc59:0x2f5,_0x169271:0x1c8,_0x294ea2:0x6d,_0x871a15:0xb0,_0x2297e0:0x333,_0xf25b3:0x2b,_0x57d903:0x1dd,_0x44df21:0x1ea,_0x509150:0x26c,_0x1d6a01:0x2e4,_0x4f815a:0x26f,_0x23f19a:0x5b,_0xbdd6d1:0x2d},_0x1c431e={_0x82a8c0:0xcd},_0x3910c8={_0x2af393:0x42c},_0xd4e262={_0x1e6683:0x591,_0x472f77:0xe0,_0x5b2cb1:0x9b},_0x55dc3e={_0x53f050:0x1f3,_0xe8c558:0x425},_0x66f3c3={_0x3bacd4:0x673,_0x25f72c:0x57a,_0x1270f3:0x67d,_0x1fd184:0xef,_0x1d6a30:0x602,_0x1f98db:0x3f4,_0x4231bf:0x232,_0x261d45:0x71,_0x3969db:0x193,_0x549612:0x408,_0x189255:0x486,_0x337c8f:0x4b2,_0xa963a2:0x9e,_0x2a4ffc:0x8a,_0x2a872b:0xcb,_0x3fc9bf:0x3d0,_0x3c8280:0x669,_0x337405:0x2c0,_0x29706e:0x74e,_0x79a63f:0x615,_0x52f6f6:0x318},_0x5d270d={_0x3e1954:0x40f};function _0x10599e(_0x3a09b4,_0x525377){return _0x6eb3(_0x525377,_0x3a09b4-0x19);}const _0x28cb08={'oskFP':function(_0x296eaf,_0x2ffc57){return _0x296eaf(_0x2ffc57);},'lWXWM':function(_0x5ed097,_0x3ad5e7){return _0x5ed097===_0x3ad5e7;},'OPOww':function(_0x4bb8bd,_0x5a236a){return _0x4bb8bd*_0x5a236a;},'Nheau':_0x6fc4ff(0x22d,_0xeee769._0x12a3c1),'OYbaA':'close'};if(this[_0x6fc4ff(0x74a,0x5e6)]||!this[_0x10599e(0x21,-0x15a)+_0x10599e(0x284,_0xeee769._0x32e8ba)]()||this[_0x6fc4ff(_0xeee769._0x46e46e,0x6ad)+'onnectin'+'g']||this[_0x6fc4ff(0x561,0x584)+_0x10599e(0x1eb,_0xeee769._0x5bf7e0)]()||!this[_0x6fc4ff(_0xeee769._0x181af9,0x483)+_0x6fc4ff(0x6a6,0x513)]())return;this[_0x6fc4ff(0x2c3,_0xeee769._0x5d105a)+_0x10599e(-_0xeee769._0x51f719,-_0xeee769._0xbc239e)+_0x6fc4ff(_0xeee769._0x293761,_0xeee769._0x22c8e3)](_0x10599e(-_0xeee769._0x534f64,-0x1d6)+_0x10599e(0x274,0x17f)+'t_reques'+_0x10599e(0x1ca,-0xe)),this['gatewayC'+'onnectin'+'g']=!![],this[_0x6fc4ff(0x681,_0xeee769._0x13c1c7)](_0x6fc4ff(_0xeee769._0x4cea01,0x4f2)+_0x6fc4ff(0x612,0x51d)+'start\x20ur'+'l='+this[_0x10599e(-_0xeee769._0x22688e,-_0xeee769._0x39d720)][_0x6fc4ff(_0xeee769._0x48027b,_0xeee769._0x3bc78c)+'rl']);const _0x211b66=new _0x17e531(this[_0x6fc4ff(_0xeee769._0x59e0f9,_0xeee769._0x56c8e4)][_0x6fc4ff(0x49d,_0xeee769._0x4ae1a1)+'rl'],{'maxPayload':_0x28cb08[_0x10599e(-0x87,-_0xeee769._0x3bb451)](0x19,0x400)*0x400});this[_0x6fc4ff(_0xeee769._0x550aa3,0x2e4)+_0x10599e(_0xeee769._0x565a6a,0x138)]=_0x211b66,_0x211b66['once'](_0x28cb08[_0x10599e(_0xeee769._0x3f2983,0x2)],()=>{if(this[_0xc3cb99(_0x66f3c3._0x3bacd4,_0x66f3c3._0x25f72c)]||this['gatewayS'+_0xc3cb99(0x75c,_0x66f3c3._0x1270f3)]!==_0x211b66){_0x211b66[_0x4ff91d(0x12,_0x66f3c3._0x1fd184)]();return;}this['gatewayC'+'onnectin'+'g']=![],this[_0xc3cb99(_0x66f3c3._0x1d6a30,0x637)+'andshake'+_0xc3cb99(_0x66f3c3._0x1f98db,0x406)]=![],this[_0xc3cb99(0x4fc,0x641)+'onnected'+_0x4ff91d(-0x40,-_0x66f3c3._0x4231bf)]=Date[_0x4ff91d(_0x66f3c3._0x261d45,0x1c7)]();const _0xd2f8e3={};_0xd2f8e3[_0x4ff91d(0x29e,0x171)+_0xc3cb99(0x222,0x2e9)]=!![],_0xd2f8e3[_0x4ff91d(0x6,-_0x66f3c3._0x3969db)+'r']=null;function _0xc3cb99(_0x544e2b,_0xd86e58){return _0x6fc4ff(_0x544e2b,_0xd86e58- -0x6c);}this['updateSn'+_0x4ff91d(0x285,0x351)](_0xd2f8e3);function _0x4ff91d(_0x455475,_0x4c6a2a){return _0x6fc4ff(_0x4c6a2a,_0x455475- -_0x5d270d._0x3e1954);}this[_0xc3cb99(0x342,0x50a)](_0xc3cb99(_0x66f3c3._0x549612,_0x66f3c3._0x189255)+_0xc3cb99(0x50b,_0x66f3c3._0x337c8f)+_0x4ff91d(_0x66f3c3._0xa963a2,-_0x66f3c3._0x2a4ffc)+_0x4ff91d(0x241,_0x66f3c3._0x2a872b)+'andMs='+this['elapsedS'+_0x4ff91d(0x2a5,_0x66f3c3._0x3fc9bf)](this[_0xc3cb99(_0x66f3c3._0x3c8280,0x680)+_0x4ff91d(0x121,_0x66f3c3._0x337405)+_0xc3cb99(0x23d,0x274)])),this[_0xc3cb99(_0x66f3c3._0x29706e,_0x66f3c3._0x79a63f)+'dingGate'+_0xc3cb99(0x395,0x4c6)+_0xc3cb99(_0x66f3c3._0x52f6f6,0x3bb)]();}),_0x211b66['on'](_0x10599e(0x8b,-0x53),(_0x5e496c,_0x46bf3e)=>{const _0x1bbce4={_0x2910c9:0xb4};function _0x43a8e4(_0x3e4703,_0x3b8ddf){return _0x6fc4ff(_0x3e4703,_0x3b8ddf-_0x1bbce4._0x2910c9);}function _0x1fa475(_0x19912c,_0x431990){return _0x6fc4ff(_0x431990,_0x19912c- -0x2b9);}this['handleGa'+_0x1fa475(_0x55dc3e._0x53f050,0x1fe)+_0x43a8e4(0x567,_0x55dc3e._0xe8c558)](_0x5e496c,_0x46bf3e);}),_0x211b66[_0x10599e(_0xeee769._0x271673,_0xeee769._0x2a636e)](_0x10599e(-_0xeee769._0x29a903,-_0xeee769._0x21b36f),_0x6ce3ab=>{const _0x20bee8={_0x3470a2:0x8};function _0x51a673(_0x5cfd8c,_0x30f2bf){return _0x6fc4ff(_0x30f2bf,_0x5cfd8c-_0x20bee8._0x3470a2);}function _0x377200(_0x494559,_0x2baeed){return _0x6fc4ff(_0x2baeed,_0x494559- -0x48a);}this['log'](_0x51a673(0x4fa,_0xd4e262._0x1e6683)+_0x377200(-_0xd4e262._0x472f77,-0xbd)+_0x28cb08[_0x377200(-_0xd4e262._0x5b2cb1,-0x11e)](String,_0x6ce3ab));});function _0x6fc4ff(_0x4f06c5,_0x58bca1){return _0x6eb3(_0x4f06c5,_0x58bca1-_0x3910c8._0x2af393);}_0x211b66[_0x6fc4ff(_0xeee769._0x4d12fc,_0xeee769._0x3d8e5b)](_0x28cb08['OYbaA'],(_0x2391d1,_0x3aa962)=>{const _0x5d8f3e={_0x402c9b:0x9f};this[_0x898d78(0x132,-0x62)+_0x3d99d9(0x236,_0x556fea._0x2877a1)]===_0x211b66&&(this[_0x898d78(0xc4,-0x62)+_0x898d78(_0x556fea._0x1dd640,0x3a3)]=null);this[_0x3d99d9(_0x556fea._0x2bfa10,0x1fb)+'onnectin'+'g']=![];function _0x898d78(_0x3c6081,_0x48222b){return _0x10599e(_0x48222b-_0x1c431e._0x82a8c0,_0x3c6081);}function _0x3d99d9(_0x4f0476,_0x3e1887){return _0x10599e(_0x3e1887- -_0x5d8f3e._0x402c9b,_0x4f0476);}this[_0x898d78(0x25f,_0x556fea._0x4c5eaa)+_0x3d99d9(0x4b,-_0x556fea._0x2020fa)+_0x898d78(-0x1c,_0x556fea._0x12b941)]=![],this[_0x3d99d9(_0x556fea._0x1aae4a,_0x556fea._0x38e4f4)+_0x3d99d9(-0xfe,-0x15d)+_0x898d78(_0x556fea._0x3e1b40,0x89)]=null,this[_0x3d99d9(-0xc0,-_0x556fea._0x3b3ae5)+'apshot']({'gatewayConnected':![],'lastError':_0x28cb08[_0x898d78(_0x556fea._0x3cb8d5,_0x556fea._0x432b23)](_0x2391d1,0x3e8)?this[_0x3d99d9(-0x41,_0x556fea._0x2fe010)]['lastErro'+'r']:_0x3d99d9(-0xeb,_0x556fea._0x3dcae5)+_0x3d99d9(_0x556fea._0xcacc59,_0x556fea._0x169271)+(_0x3aa962[_0x898d78(0x3be,0x20e)]()||_0x2391d1)}),this['log'](_0x3d99d9(-0x174,0x40)+_0x3d99d9(0x315,0x23d)+_0x898d78(-_0x556fea._0x294ea2,_0x556fea._0x871a15)+'e='+_0x2391d1+'\x20reason='+(_0x3aa962['toString']()||_0x3d99d9(0x15b,0x5c))+(_0x898d78(0x3e5,_0x556fea._0x2297e0)+_0x3d99d9(-0x149,-_0x556fea._0xf25b3)+_0x3d99d9(-_0x556fea._0x57d903,-0x78))+this['elapsedS'+'ince'](this['clientDe'+_0x898d78(0x3af,_0x556fea._0x44df21)+_0x3d99d9(-_0x556fea._0x509150,-0x1d2)])),this[_0x898d78(_0x556fea._0x1d6a01,_0x556fea._0x4f815a)+_0x3d99d9(-_0x556fea._0x23f19a,_0x556fea._0xbdd6d1)+'econnect']();});}[_0x6eb3(0x140,-0xa2)+_0x6eb3(0x1ee,0x80)+_0x11b7ab(-0xcf,-0x79)](_0x160712,_0x38b3bc){const _0x432fcb={_0x50a29c:0xf1,_0x34ed0a:0x190,_0x34c988:0x3df,_0x549615:0x2ac,_0x4526db:0x190,_0xdfbb55:0x139,_0x482ca3:0x185,_0x2a8a3e:0x411,_0x1d3b9d:0x342,_0x482618:0x129,_0x2ed255:0xdc,_0x233833:0x1fd,_0x129398:0x9,_0x5cfa2d:0x5a,_0x4717f2:0x1ae,_0x146ad3:0x153,_0x17532a:0x6f,_0x3c8dd4:0x160,_0x514535:0x1b4,_0x1a1861:0x2c},_0x2a8418={_0x5d8038:0x138},_0x2edb39={};_0x2edb39[_0x39fda4(-_0x432fcb._0x50a29c,-_0x432fcb._0x34ed0a)]=function(_0x4b38a9,_0x395b51){return _0x4b38a9!==_0x395b51;};const _0x3f47e0=_0x2edb39,_0x16f180=this['relaySoc'+_0x396475(_0x432fcb._0x34c988,_0x432fcb._0x549615)];function _0x396475(_0x5924d5,_0x4b6ee1){return _0x11b7ab(_0x5924d5,_0x4b6ee1-0x8c);}if(!_0x16f180||_0x3f47e0[_0x39fda4(-0x114,-_0x432fcb._0x4526db)](_0x16f180[_0x396475(-_0x432fcb._0xdfbb55,0x95)+'te'],_0x17e531[_0x39fda4(0x1ec,0x59)]))return;if(_0x38b3bc){_0x16f180[_0x39fda4(0x183,_0x432fcb._0x482ca3)](normalizeBinary(_0x160712));return;}const _0x33639e=normalizeText(_0x160712);if(_0x33639e==null)return;const _0x4b4160=summarizeJsonFrame(_0x33639e);_0x4b4160&&this['log']('gateway\x20'+_0x396475(_0x432fcb._0x2a8a3e,_0x432fcb._0x1d3b9d)+_0x4b4160+(_0x396475(0x4ec,0x31b)+_0x396475(0x158,_0x432fcb._0x482618)+_0x396475(0x2e5,_0x432fcb._0x2ed255))+this[_0x39fda4(-0x3c4,-0x21e)+_0x39fda4(-0x16,0x192)](this[_0x396475(0x1f1,0x38e)+'mandStar'+'tedAtMs'])+('\x20sinceGa'+_0x396475(_0x432fcb._0x233833,0x1be)+'nMs=')+this[_0x396475(_0x432fcb._0x129398,-_0x432fcb._0x5cfa2d)+_0x39fda4(0x395,0x192)](this['gatewayC'+_0x396475(-0xab,-_0x432fcb._0x129398)+_0x39fda4(-_0x432fcb._0x4717f2,-_0x432fcb._0x146ad3)]));const _0x132b06=parsePairingRequestFromError(_0x33639e);_0x132b06&&this['addPendi'+_0x396475(_0x432fcb._0x17532a,0x90)+'quest'](_0x132b06);const _0x33e1cb=parsePairResolvedEvent(_0x33639e);function _0x39fda4(_0x40fe6d,_0x5cb482){return _0x11b7ab(_0x40fe6d,_0x5cb482- -_0x2a8418._0x5d8038);}_0x33e1cb&&this[_0x39fda4(_0x432fcb._0x3c8dd4,-0xa7)+_0x396475(0x3ad,_0x432fcb._0x514535)+'esolved'](_0x33e1cb[_0x39fda4(_0x432fcb._0x1a1861,0x186)+'d'],_0x33e1cb[_0x39fda4(-0x13,-0x183)]),_0x16f180[_0x39fda4(0x221,_0x432fcb._0x482ca3)](_0x33639e);}[_0x6eb3(0x3b8,0x255)+_0x6eb3(-0x1e4,-0xdb)+_0x11b7ab(0x2e6,0x148)+_0x11b7ab(0x1e3,0x3d)](){const _0x54ac84={_0xe97d44:0x5ea,_0x38f574:0x6b8,_0x57b043:0x288,_0x4976f1:0x2cb,_0x4ed5f6:0x16a,_0x290bb4:0x35f,_0x6025a5:0x15a,_0x1766c1:0x3d3,_0x461d3f:0x6a4,_0x5efc7a:0x4a2,_0x5345ca:0x6,_0x174026:0x59d,_0x46a879:0x3c9,_0x4d8b9a:0x62b,_0x14435c:0x4b8,_0x37adea:0x2cd,_0x13524e:0xa2,_0x2a4f81:0x790,_0xc90f25:0x5ed},_0x593ca2={_0x12836d:0x3fb},_0x2e3409={_0x209d39:0xab},_0x3016e7={};_0x3016e7[_0x3c3497(0x698,_0x54ac84._0xe97d44)]=function(_0x22d9e3,_0x46c098){return _0x22d9e3!==_0x46c098;};const _0x52c179=_0x3016e7,_0x1fb4d0=this['gatewayS'+_0x3c3497(0x524,_0x54ac84._0x38f574)];if(!_0x1fb4d0||_0x1fb4d0[_0x3c3497(0x3d4,0x3c2)+'te']!==_0x17e531['OPEN'])return;const _0x1b1761=[],_0x5eb40d=[...this[_0x3c3497(_0x54ac84._0x57b043,_0x54ac84._0x4976f1)+_0x445c78(_0x54ac84._0x4ed5f6,_0x54ac84._0x290bb4)+'ssages']];this[_0x3c3497(_0x54ac84._0x6025a5,0x2cb)+'atewayMe'+_0x445c78(0x3cd,0x29d)]=[],this[_0x3c3497(_0x54ac84._0x1766c1,0x545)](_0x445c78(0x2dd,0x171)+_0x3c3497(_0x54ac84._0x461d3f,0x54f)+'eued='+_0x5eb40d[_0x3c3497(0x5b6,_0x54ac84._0x5efc7a)]);function _0x445c78(_0x2ef8a4,_0x1f246a){return _0x6eb3(_0x2ef8a4,_0x1f246a-_0x2e3409._0x209d39);}function _0x3c3497(_0x404caa,_0x3f6a95){return _0x6eb3(_0x404caa,_0x3f6a95-_0x593ca2._0x12836d);}for(const _0x55f24c of _0x5eb40d){if(!this['gatewayH'+_0x445c78(0x11,_0x54ac84._0x5345ca)+'Started']){if(_0x52c179[_0x3c3497(_0x54ac84._0x174026,0x5ea)](_0x55f24c['kind'],_0x3c3497(0x42d,_0x54ac84._0x46a879))||!isConnectHandshakeRequest(_0x55f24c['text'])){_0x1b1761[_0x3c3497(0x589,_0x54ac84._0x4d8b9a)](_0x55f24c);continue;}this[_0x3c3497(_0x54ac84._0x14435c,0x672)+'andshake'+'Started']=!![];}this[_0x445c78(0x308,0x28d)+_0x445c78(_0x54ac84._0x37adea,0x290)](_0x55f24c);}this[_0x445c78(_0x54ac84._0x13524e,-0x85)+_0x445c78(0x238,0x35f)+_0x3c3497(_0x54ac84._0x2a4f81,_0x54ac84._0xc90f25)]=_0x1b1761;}[_0x6eb3(0x196,0x1e2)+_0x11b7ab(0x1fa,0x227)](_0x45ccca){const _0x2c8fa5={_0x56cbc2:0x65,_0x118c04:0x75c,_0xcc2e20:0x569,_0xbdaa35:0x31e,_0x4c2ebc:0x319,_0x2ba18e:0x4a6,_0x3fded3:0x66e,_0x40838a:0x354,_0x1dc4fe:0x2f4,_0x5332ff:0x727,_0x5dfbf8:0x2cd,_0x571003:0x72b,_0x3f9b9d:0x738,_0x17992f:0x5a5},_0x146c78={_0x5bc76e:0x45d},_0x545068=this[_0x33c143(0x20f,_0x2c8fa5._0x56cbc2)+_0x250c05(_0x2c8fa5._0x118c04,_0x2c8fa5._0xcc2e20)];function _0x33c143(_0x1ab4a8,_0x126c7c){return _0x11b7ab(_0x126c7c,_0x1ab4a8-0x315);}function _0x250c05(_0x35f908,_0x3f6253){return _0x11b7ab(_0x3f6253,_0x35f908-_0x146c78._0x5bc76e);}if(!_0x545068||_0x545068[_0x33c143(_0x2c8fa5._0xbdaa35,_0x2c8fa5._0x4c2ebc)+'te']!==_0x17e531[_0x33c143(_0x2c8fa5._0x2ba18e,_0x2c8fa5._0x3fded3)]){this['pushPend'+_0x250c05(_0x2c8fa5._0x40838a,0x543)+_0x33c143(_0x2c8fa5._0x1dc4fe,0x14f)+'e'](_0x45ccca);return;}if(_0x45ccca[_0x250c05(0x669,_0x2c8fa5._0x5332ff)]===_0x33c143(0x325,_0x2c8fa5._0x5dfbf8)){_0x545068['send'](_0x45ccca['text']);return;}_0x545068[_0x250c05(0x71a,_0x2c8fa5._0x571003)](_0x45ccca[_0x250c05(_0x2c8fa5._0x3f9b9d,_0x2c8fa5._0x17992f)]);}[_0x6eb3(0x29a,0xbc)+_0x6eb3(0x367,0x280)+'st'](_0x5292bb,_0x117b3f){const _0x291094={_0x1166b7:0x217,_0x2e6986:0x2b5,_0x3a094a:0xee,_0x1a3070:0x64,_0x35336d:0x3b4,_0x3e9e04:0x68,_0x5ce3ac:0x14b,_0x5c9c73:0xd5,_0xddf867:0x26a,_0x4a52ec:0x217,_0x157e9f:0x12f},_0x265d48={_0x41483d:0x1ea},_0x2a5bc1={_0x1721fa:0x53},_0x3bcd5d={};function _0x117f91(_0x2a36ae,_0x5d1c40){return _0x6eb3(_0x5d1c40,_0x2a36ae-_0x2a5bc1._0x1721fa);}_0x3bcd5d['dSdIv']='text';const _0x210adf=_0x3bcd5d,_0x3b4aec=JSON[_0x117f91(_0x291094._0x1166b7,0x241)+'y']({'type':_0x3eefbd(0x101,_0x291094._0x2e6986),'id':_0x117f91(_0x291094._0x3a094a,-_0x291094._0x1a3070)+_0x2b14da(),'method':_0x5292bb,'params':_0x117b3f}),_0x2c7aca={};_0x2c7aca[_0x3eefbd(_0x291094._0x35336d,0x4f3)]=_0x210adf[_0x117f91(-0xb3,_0x291094._0x3e9e04)];function _0x3eefbd(_0x3b606e,_0xb7d95c){return _0x6eb3(_0xb7d95c,_0x3b606e-_0x265d48._0x41483d);}_0x2c7aca[_0x117f91(0x21,0x11f)]=_0x3b4aec,this[_0x117f91(-0x30,_0x291094._0x5ce3ac)+_0x117f91(_0x291094._0x5c9c73,0x9a)+_0x3eefbd(_0x291094._0xddf867,_0x291094._0x4a52ec)+_0x3eefbd(_0x291094._0x157e9f,0x3d)](_0x2c7aca);}[_0x6eb3(0x178,-0x24)+_0x11b7ab(0x152,0x142)](){const _0x43d684={_0x2622ff:0x188,_0x59df86:0x2fb,_0x393e5f:0x22a,_0x1a8346:0x230,_0x4c1ed7:0xc7,_0x3f5318:0x2f8,_0x2c1de7:0x22a,_0x506582:0x490,_0x3359a1:0x4fa,_0x23b09d:0x1e4,_0x5351b8:0x89,_0x480629:0x490,_0x5dc7dd:0x2fe,_0x4f6078:0x138,_0x2fafb4:0x1b2,_0x352a5b:0x2aa},_0x5d966a={_0x4e86f5:0x1cd};this['cancelGa'+_0x5e9556(-0x5c,-_0x43d684._0x2622ff)+'eClose']();function _0x5e9556(_0x1b4110,_0x3dc010){return _0x11b7ab(_0x1b4110,_0x3dc010- -0xd5);}this[_0x5e9556(-0x4,-0x1db)+_0x5e9556(_0x43d684._0x59df86,_0x43d684._0x393e5f)]?.[_0x9b2faf(0x204,_0x43d684._0x1a8346)](),this[_0x9b2faf(_0x43d684._0x4c1ed7,-0x83)+_0x5e9556(_0x43d684._0x3f5318,_0x43d684._0x2c1de7)]=null;function _0x9b2faf(_0x3cade2,_0x74b121){return _0x11b7ab(_0x74b121,_0x3cade2-_0x5d966a._0x4e86f5);}this[_0x9b2faf(_0x43d684._0x506582,_0x43d684._0x3359a1)+_0x9b2faf(0x159,0x7e)+'g']=![],this[_0x5e9556(0x1a5,_0x43d684._0x23b09d)+_0x5e9556(_0x43d684._0x5351b8,-0x138)+'Started']=![],this[_0x9b2faf(_0x43d684._0x480629,_0x43d684._0x5dc7dd)+_0x9b2faf(_0x43d684._0x4f6078,0x259)+_0x9b2faf(_0x43d684._0x2fafb4,_0x43d684._0x352a5b)]=null;}[_0x11b7ab(0x26,0x1cb)+'GatewayI'+'dleClose'](_0x3bcd0e){const _0x58eea8={_0x1db98c:0x4c7,_0xb22a9f:0x478,_0x11596e:0x42a,_0x2798ca:0x1e,_0x5ed31d:0x4f,_0x3c79b8:0x4ab,_0x27c0a9:0x3cb,_0x5a8ca7:0x30a,_0x3f0d4b:0x283,_0x276666:0x7e,_0x2b7452:0x26a,_0x52b980:0x173,_0x3c424d:0xda,_0x504064:0x3a4,_0x5e3c74:0x36,_0x30e57f:0x98,_0x4a33d3:0x6af,_0xec9903:0x4bc,_0x3d01aa:0x22d,_0x5aef15:0xa8,_0x50889e:0x15e,_0x49dd1d:0x3db,_0x39fc5b:0x3ef,_0x3d28d4:0x32e,_0x528c55:0x184,_0xd4f0cb:0x5b4,_0x4f7898:0x4a6,_0x45f3d2:0x97,_0x2e78ec:0xb4,_0x33a413:0x450,_0x1a1f41:0x2de,_0x465e69:0x5e3,_0x62613b:0x61,_0x2bf1d8:0x2f,_0x22528d:0x6a,_0x58810e:0x2dc,_0x384741:0x20a,_0xb53ae:0x1ec,_0x331fa0:0x373,_0x17f463:0x4df,_0x4ee157:0x454,_0x1cfb22:0x4ce,_0x2a3aa3:0x335,_0x29e2d8:0x65d,_0x53ec24:0x5ec,_0x5fed80:0x319,_0x2c5210:0x92,_0x58da23:0x3b,_0x19978f:0x395,_0x123aab:0x243,_0x358fac:0x2de},_0xf16e47={_0x54e64e:0x579,_0x3392e6:0x6b5,_0x12df6f:0x6b2,_0x3cff40:0x74a,_0x2a1f51:0x6a7,_0x679de:0x17a,_0x25b73d:0x1cb,_0x1870e9:0x26c,_0x503535:0x1b4,_0x55c5ca:0x365,_0x1f308f:0xc6,_0x828cd7:0x22b,_0x2ae4e7:0x3ca,_0x47fea9:0x3a4,_0x430bbf:0x15f,_0x1477db:0x6ba},_0x255f53={_0x2e06de:0x256},_0x3bcf87={_0x2f8942:0x98},_0x2d6171={'qElZB':_0x1c91c6(_0x58eea8._0x1db98c,_0x58eea8._0xb22a9f)+_0xaa3417(0x2a0,0x339),'MZpTn':_0x1c91c6(0x465,_0x58eea8._0x11596e)+'idle\x20clo'+_0xaa3417(-_0x58eea8._0x2798ca,_0x58eea8._0x5ed31d)+_0x1c91c6(_0x58eea8._0x3c79b8,_0x58eea8._0x27c0a9)+_0xaa3417(0x3f4,_0x58eea8._0x5a8ca7)+_0xaa3417(0xa4,_0x58eea8._0x3f0d4b)+_0xaa3417(0x1cc,_0x58eea8._0x276666)+'d','ZxKJs':function(_0x2f34bd,_0x3831f7){return _0x2f34bd(_0x3831f7);}};this[_0xaa3417(0x3a0,0x2cf)+'etryTime'+'r']&&(_0x2d6171['ZxKJs'](clearTimeout,this[_0xaa3417(_0x58eea8._0x2b7452,0x2cf)+_0xaa3417(_0x58eea8._0x52b980,_0x58eea8._0x3c424d)+'r']),this[_0xaa3417(0x307,0x2cf)+_0x1c91c6(_0x58eea8._0x504064,0x3a6)+'r']=null);function _0xaa3417(_0x31cdf6,_0x473327){return _0x6eb3(_0x31cdf6,_0x473327-_0x3bcf87._0x2f8942);}this[_0xaa3417(_0x58eea8._0x5e3c74,-_0x58eea8._0x30e57f)+'atewayMe'+_0x1c91c6(0x3b8,0x556)]=[];const _0x2d82e9={};_0x2d82e9[_0x1c91c6(0x2d8,0x22e)+'unt']=0x0,this[_0x1c91c6(0x3b2,0x3bc)+_0xaa3417(0x2c3,0x300)](_0x2d82e9);if(!this[_0x1c91c6(_0x58eea8._0x4a33d3,_0x58eea8._0xec9903)+_0xaa3417(_0x58eea8._0x3d01aa,0x26a)]()&&!this[_0xaa3417(0x2e2,0x319)+_0xaa3417(-_0x58eea8._0x5aef15,-0x1e)+'g']){this['log'](_0xaa3417(-0x4c,_0x58eea8._0x50889e)+_0x1c91c6(_0x58eea8._0x49dd1d,0x43d)+_0x1c91c6(_0x58eea8._0x39fc5b,0x46c)+_0xaa3417(_0x58eea8._0x3d28d4,_0x58eea8._0x528c55)+_0x1c91c6(_0x58eea8._0xd4f0cb,_0x58eea8._0x4f7898)+'n='+_0x3bcd0e),this['clientDe'+_0xaa3417(0x232,0x19c)+_0xaa3417(_0x58eea8._0x45f3d2,-_0x58eea8._0x2e78ec)]=null;return;}if(this[_0x1c91c6(_0x58eea8._0x33a413,0x50f)+_0x1c91c6(0x11a,_0x58eea8._0x1a1f41)+'Timer']){this['log'](_0x1c91c6(_0x58eea8._0x465e69,_0x58eea8._0x11596e)+_0xaa3417(-_0x58eea8._0x62613b,0xa7)+_0xaa3417(_0x58eea8._0x2bf1d8,-_0x58eea8._0x22528d)+_0xaa3417(0x186,0x2ff)+_0xaa3417(0x8e,0x176)+_0xaa3417(_0x58eea8._0x58810e,_0x58eea8._0x384741)+_0x3bcd0e);return;}const _0x224e46=this[_0x1c91c6(0x29a,0x2e9)]['gatewayI'+'dleDisco'+'nnectDel'+'ayMs']??GATEWAY_IDLE_DISCONNECT_DELAY_MS;function _0x1c91c6(_0x3f56ae,_0x2c8e95){return _0x6eb3(_0x3f56ae,_0x2c8e95-0x364);}this[_0x1c91c6(0x54f,0x4ae)](_0xaa3417(0x299,0x15e)+_0x1c91c6(_0x58eea8._0xb53ae,_0x58eea8._0x331fa0)+'se\x20sched'+_0xaa3417(0xf0,0x191)+_0x1c91c6(0x606,0x4a8)+_0x224e46+_0x1c91c6(0x4f0,_0x58eea8._0x17f463)+_0x3bcd0e+(_0xaa3417(0x31d,0x29c)+_0x1c91c6(0x44e,_0x58eea8._0x4ee157)+_0x1c91c6(_0x58eea8._0x1cfb22,_0x58eea8._0x2a3aa3))+this[_0xaa3417(0x163,-0x90)+_0x1c91c6(_0x58eea8._0x29e2d8,_0x58eea8._0x53ec24)](this[_0xaa3417(0x49d,_0x58eea8._0x5fed80)+_0xaa3417(_0x58eea8._0x2c5210,-0x3f)+_0xaa3417(0x18f,_0x58eea8._0x58da23)])),this[_0xaa3417(_0x58eea8._0x19978f,_0x58eea8._0x123aab)+_0x1c91c6(0x259,_0x58eea8._0x358fac)+'Timer']=setTimeout(()=>{function _0x85cca2(_0x3b99b5,_0x2f868a){return _0x1c91c6(_0x3b99b5,_0x2f868a-_0x255f53._0x2e06de);}const _0x11946a=_0x2d6171[_0x85cca2(0x545,_0xf16e47._0x54e64e)][_0x1abaa6(0x2ff,0x22d)]('|');let _0x468b0a=0x0;function _0x1abaa6(_0x2dd74f,_0x5bdbee){return _0x1c91c6(_0x2dd74f,_0x5bdbee- -0x280);}while(!![]){switch(_0x11946a[_0x468b0a++]){case'0':this['log'](_0x1abaa6(-0xf,0x1aa)+'closed\x20a'+'fter\x20idl'+_0x85cca2(_0xf16e47._0x3392e6,_0xf16e47._0x12df6f)+_0x85cca2(0x7ad,0x7bb)+_0x3bcd0e);continue;case'1':this[_0x85cca2(_0xf16e47._0x3cff40,0x765)+_0x85cca2(0x67a,0x534)+'Timer']=null;continue;case'2':if(this[_0x85cca2(_0xf16e47._0x2a1f51,0x611)+_0x1abaa6(_0xf16e47._0x679de,_0xf16e47._0x25b73d)]()){this[_0x1abaa6(0x3e5,0x22e)](_0x2d6171[_0x1abaa6(0x152,_0xf16e47._0x1870e9)]);return;}continue;case'3':const _0x344f9e={};_0x344f9e[_0x1abaa6(_0xf16e47._0x503535,_0xf16e47._0x55c5ca)+_0x85cca2(0x5bf,0x4e3)]=![],_0x344f9e['clientCo'+_0x1abaa6(_0xf16e47._0x1f308f,_0xf16e47._0x828cd7)]=0x0,this[_0x85cca2(0x546,0x612)+_0x85cca2(0x919,0x822)](_0x344f9e);continue;case'4':this[_0x1abaa6(_0xf16e47._0x2ae4e7,_0xf16e47._0x47fea9)+_0x1abaa6(_0xf16e47._0x430bbf,0x1e8)+'tedAtMs']=null;continue;case'5':this[_0x1abaa6(0x2af,0xc0)+_0x85cca2(0x87c,_0xf16e47._0x1477db)]();continue;}break;}},_0x224e46);}[_0x6eb3(0x2,0x2b)+_0x6eb3(0x5d,-0xf5)+_0x6eb3(0x49c,0x29c)](_0x11f4c9){const _0x47c059={_0x1ff921:0x183,_0x53427c:0x23b,_0x53ee28:0x321,_0x287d18:0x262,_0x13d8c2:0x1cd,_0x28662a:0x138,_0x5a5a41:0x21b};function _0x4cb71f(_0x42ea4d,_0x589c22){return _0x6eb3(_0x42ea4d,_0x589c22-0x206);}function _0x457d72(_0x214f4d,_0x5ee48f){return _0x6eb3(_0x214f4d,_0x5ee48f- -0x1dc);}if(!this[_0x457d72(-0x6,-0x31)+_0x457d72(-0x86,-0x262)+_0x457d72(-_0x47c059._0x1ff921,-_0x47c059._0x53427c)])return;clearTimeout(this[_0x457d72(0x63,-0x31)+'dleClose'+'Timer']),this['gatewayI'+_0x457d72(-_0x47c059._0x53ee28,-_0x47c059._0x287d18)+'Timer']=null,_0x11f4c9&&this[_0x4cb71f(0x4fb,0x350)]('gateway\x20'+_0x457d72(-0x46,-_0x47c059._0x13d8c2)+_0x457d72(-0x70,-0x20)+_0x4cb71f(0x51,_0x47c059._0x28662a)+_0x4cb71f(0x56,_0x47c059._0x5a5a41)+_0x11f4c9);}[_0x11b7ab(0x346,0x1cb)+_0x6eb3(-0xc8,0x93)+_0x6eb3(0x34b,0x18f)](){const _0x3a2d52={_0x8d26bf:0x74d,_0x51486e:0x194,_0x54a277:0x74b,_0xe4024d:0x2b9,_0x4f2013:0x3cb,_0x49674d:0x5aa,_0x1236ce:0x2e,_0x186293:0x1ff,_0x226991:0x13c,_0x5a487f:0xa8,_0x41d097:0x5b4,_0x43c894:0x30f,_0x156262:0x45a,_0x203410:0x369,_0x127f08:0x6ca},_0x500d88={_0x18fa6f:0x56f,_0x31b9c5:0x1b7,_0x3f5495:0x4b8,_0x112e99:0x714},_0x380436={_0x1b3e65:0x4f0},_0x450c74={'EIyde':function(_0x3eacb6,_0x285aac,_0x512e90){return _0x3eacb6(_0x285aac,_0x512e90);}};function _0x406242(_0x2ea6f0,_0x5c6f73){return _0x6eb3(_0x5c6f73,_0x2ea6f0-_0x380436._0x1b3e65);}function _0x335d6e(_0x3c6aa5,_0x38edac){return _0x6eb3(_0x3c6aa5,_0x38edac-0x4d);}if(this['stopped']||this[_0x406242(0x74b,_0x3a2d52._0x8d26bf)+_0x335d6e(_0x3a2d52._0x51486e,0x98)])return;const _0x1388e5=this['options'][_0x406242(_0x3a2d52._0x54a277,0x5dc)+_0x335d6e(0x3e1,_0x3a2d52._0xe4024d)+_0x406242(_0x3a2d52._0x4f2013,_0x3a2d52._0x49674d)]??RECONNECT_BASE_DELAY_MS,_0x54efd3=this[_0x335d6e(-0x51,-_0x3a2d52._0x1236ce)][_0x335d6e(_0x3a2d52._0x186293,0x2a8)+'tMaxDela'+_0x335d6e(0x1c2,_0x3a2d52._0x226991)]??RECONNECT_MAX_DELAY_MS,_0x1ccbd6=Math[_0x335d6e(_0x3a2d52._0x5a487f,0x73)](_0x54efd3,_0x1388e5*Math[_0x406242(_0x3a2d52._0x41d097,0x675)](0x1,this[_0x406242(0x4bc,_0x3a2d52._0x43c894)+'empt']));this[_0x335d6e(0x333,0x197)](_0x406242(0x451,0x3cf)+_0x335d6e(0x292,0x13e)+_0x406242(0x679,0x58b)+_0x406242(_0x3a2d52._0x156262,_0x3a2d52._0x203410)+'s='+_0x1ccbd6),this[_0x406242(0x74b,0x747)+_0x406242(0x53b,0x4f2)]=_0x450c74[_0x406242(_0x3a2d52._0x127f08,0x6ac)](setTimeout,()=>{const _0x33f4d7={_0x4c0255:0x498};this[_0x33d487(0x3c7,_0x500d88._0x18fa6f)+_0x33d487(_0x500d88._0x31b9c5,0x27e)]=null;function _0x49d9eb(_0x46fdba,_0x3c2302){return _0x335d6e(_0x46fdba,_0x3c2302-_0x33f4d7._0x4c0255);}function _0x33d487(_0x102bca,_0x48d23e){return _0x335d6e(_0x48d23e,_0x102bca-0x11f);}void this[_0x33d487(0x414,_0x500d88._0x3f5495)+_0x49d9eb(0x6a0,_0x500d88._0x112e99)]();},_0x1ccbd6);}[_0x6eb3(0x114,0x189)+_0x11b7ab(0x52,0xf5)+_0x6eb3(-0x96,-0x111)](){const _0x4ea6a2={_0x3a2b99:0x3d4,_0x3625b5:0x225,_0x77d444:0x8f,_0x1fb555:0x73,_0x1afdbb:0x3ff,_0x3378a4:0x2bd,_0x2e5a39:0x48f,_0x5ebad4:0x10,_0x5a34ad:0x6e5,_0x3ad74b:0x497,_0x42b547:0x1c1,_0x1f9f81:0x44f},_0x5b54c8={_0x28b7b3:0x655,_0x4d70f2:0x6ce,_0x5301c4:0x6f6,_0x2064ea:0x15b},_0x371345={_0x360297:0x366},_0x473178={'SbdKb':function(_0x205592,_0x576a68,_0x20abdb){return _0x205592(_0x576a68,_0x20abdb);}};if(this[_0x2aa30a(_0x4ea6a2._0x3a2b99,_0x4ea6a2._0x3625b5)]||this[_0x23015e(0x794,0x5df)+_0x23015e(0x215,0x3ea)+'r']||!this[_0x2aa30a(_0x4ea6a2._0x77d444,_0x4ea6a2._0x1fb555)+_0x2aa30a(0x3e4,0x2d6)]()||!this[_0x23015e(0x5ae,_0x4ea6a2._0x1afdbb)+_0x23015e(_0x4ea6a2._0x3378a4,_0x4ea6a2._0x2e5a39)]())return;function _0x23015e(_0x4df514,_0x701b33){return _0x11b7ab(_0x4df514,_0x701b33-_0x371345._0x360297);}const _0x468f41=this[_0x2aa30a(0x9d,-_0x4ea6a2._0x5ebad4)][_0x2aa30a(0x2e7,0x2a2)+_0x23015e(_0x4ea6a2._0x5a34ad,0x584)+_0x23015e(0x431,_0x4ea6a2._0x3ad74b)]??GATEWAY_RETRY_DELAY_MS;function _0x2aa30a(_0x550244,_0x49cd77){return _0x11b7ab(_0x550244,_0x49cd77-0x29);}this[_0x2aa30a(0x102,0x2a2)+_0x2aa30a(_0x4ea6a2._0x42b547,0xad)+'r']=_0x473178[_0x23015e(_0x4ea6a2._0x1f9f81,0x535)](setTimeout,()=>{const _0x233f1c={_0x55287c:0x1ed};function _0x1528cf(_0x4e8f6c,_0x379fbf){return _0x2aa30a(_0x379fbf,_0x4e8f6c-0x38a);}this[_0x8a2cef(0xf1,0xb5)+_0x8a2cef(0x1b,-0x140)+'r']=null;function _0x8a2cef(_0x42beeb,_0x349026){return _0x2aa30a(_0x42beeb,_0x349026- -_0x233f1c._0x55287c);}this[_0x1528cf(_0x5b54c8._0x28b7b3,_0x5b54c8._0x4d70f2)+_0x1528cf(0x631,_0x5b54c8._0x5301c4)+_0x1528cf(0x2e7,_0x5b54c8._0x2064ea)]();},_0x468f41);}[_0x6eb3(-0x2a,0x18a)+_0x6eb3(0x4a6,0x2b9)](){const _0x5c3369={_0x8c19dc:0x469,_0x33242f:0x660,_0x4e88bf:0x577,_0xac9bef:0x647,_0x1b71e9:0x5b5,_0xaf69d4:0x601,_0x3d02f4:0x432,_0x32bd33:0x6ab,_0x5882c2:0x63b,_0x5f7e82:0x7c3},_0x6c1834={_0x177615:0x1d2,_0x382b5e:0x405,_0x42d752:0x2d9,_0x1e0317:0x143,_0x57959f:0xa,_0x238e1f:0x3e5,_0x3742ef:0x48,_0x1b3483:0x13e,_0x3f9904:0x35,_0x5cca09:0xf3,_0x18a55a:0x11b,_0x378e3c:0x8b},_0x45bb23={};_0x45bb23['uHHlQ']=_0x492ed3(0x530,_0x5c3369._0x8c19dc)+_0x492ed3(_0x5c3369._0x33242f,_0x5c3369._0x4e88bf)+_0x2e573e(_0x5c3369._0xac9bef,0x623)+'t';const _0x4ae64d=_0x45bb23;function _0x492ed3(_0x16ea04,_0x555547){return _0x6eb3(_0x16ea04,_0x555547-0x516);}this[_0x2e573e(0x5a9,0x6d9)+_0x492ed3(0x500,0x58b)]();function _0x2e573e(_0x1b0ff0,_0x18c2ac){return _0x6eb3(_0x18c2ac,_0x1b0ff0-0x397);}this[_0x492ed3(_0x5c3369._0x1b71e9,_0x5c3369._0xaf69d4)+_0x492ed3(0x755,0x561)]=setInterval(()=>{const _0x5b77e6={_0x27c5fd:0x3a3},_0xfe10c5={_0x2227be:0x85},_0x4df7b6=this['relaySoc'+_0x4140ec(_0x6c1834._0x177615,0x73)];if(!_0x4df7b6||_0x4df7b6[_0x5b9d15(_0x6c1834._0x382b5e,_0x6c1834._0x42d752)+'te']!==_0x17e531[_0x4140ec(_0x6c1834._0x1e0317,-_0x6c1834._0x57959f)])return;const _0x27baba=this['options']['heartbea'+_0x5b9d15(_0x6c1834._0x238e1f,0x411)+'Ms']??HEARTBEAT_TIMEOUT_MS;function _0x5b9d15(_0x5018c8,_0x2c8481){return _0x2e573e(_0x2c8481- -_0xfe10c5._0x2227be,_0x5018c8);}function _0x4140ec(_0x24aafd,_0x4735e3){return _0x2e573e(_0x24aafd- -_0x5b77e6._0x27c5fd,_0x4735e3);}if(Date[_0x4140ec(_0x6c1834._0x3742ef,-0x130)]()-this[_0x5b9d15(0x3a3,0x2d3)+'yActivit'+'yMs']>_0x27baba){this[_0x4140ec(_0x6c1834._0x1b3483,0x173)](_0x4ae64d[_0x4140ec(-_0x6c1834._0x3f9904,_0x6c1834._0x5cca09)]),_0x4df7b6[_0x4140ec(-_0x6c1834._0x18a55a,-0x207)+'e']();return;}_0x4df7b6[_0x5b9d15(_0x6c1834._0x378e3c,0x253)]();},this[_0x492ed3(_0x5c3369._0x3d02f4,0x49b)][_0x492ed3(_0x5c3369._0x32bd33,0x601)+_0x492ed3(0x6e4,_0x5c3369._0x5882c2)+_0x2e573e(0x626,_0x5c3369._0x5f7e82)]??HEARTBEAT_INTERVAL_MS);}['stopHear'+_0x11b7ab(-0x112,0xb7)](){const _0x31044f={_0x4a235f:0x16e,_0x528c2a:0x248,_0x2d366d:0x105},_0x165317={_0x4a38ea:0x1f0};function _0x594db1(_0x2ac166,_0x6bfa42){return _0x6eb3(_0x2ac166,_0x6bfa42- -_0x165317._0x4a38ea);}function _0x2dfd56(_0x3620da,_0x26065b){return _0x6eb3(_0x26065b,_0x3620da- -0x61);}const _0x30cfb1={'BtpXX':function(_0x4736c7,_0x2a9aaf){return _0x4736c7(_0x2a9aaf);}};this[_0x2dfd56(0x8a,_0x31044f._0x4a235f)+_0x594db1(-_0x31044f._0x528c2a,-0x1a5)]&&(_0x30cfb1[_0x594db1(-0x3ad,-0x302)](clearInterval,this[_0x594db1(-0x24a,-_0x31044f._0x2d366d)+_0x594db1(-0x123,-0x1a5)]),this['heartbea'+'tTimer']=null);}[_0x11b7ab(0xdf,0x26)+_0x6eb3(-0x32c,-0x14b)+_0x11b7ab(0x120,-0x21)+'e'](_0x576690){const _0x45c0f6={_0x27731d:0x20b,_0x27f0ef:0x7,_0x9ac4da:0x242,_0xdd7626:0x42f,_0x520e8a:0x1f9,_0x52f677:0x5d,_0x3e4c2a:0x19a,_0x3d5e58:0x2f7,_0x101983:0xb5,_0x5879b6:0x155,_0x11c6a3:0x104,_0x4926be:0xe0,_0x536e49:0x9f,_0xa667:0x1ab,_0x3b2938:0x152},_0x1cd685={_0x235aac:0x50},_0x546c39={_0x56f342:0x1d3};this[_0x34206e(-0x4e5,-0x303)+_0x34206e(_0x45c0f6._0x27731d,0xe1)+'ssages'][_0x21ea02(0xf7,-_0x45c0f6._0x27f0ef)]>=MAX_PENDING_GATEWAY_MESSAGES&&this[_0x34206e(-0x4bb,-0x303)+'atewayMe'+_0x21ea02(0x242,0x364)]['shift']();function _0x34206e(_0x258216,_0x1dd15e){return _0x6eb3(_0x258216,_0x1dd15e- -_0x546c39._0x56f342);}function _0x21ea02(_0xc6019a,_0x419137){return _0x6eb3(_0x419137,_0xc6019a-_0x1cd685._0x235aac);}this['pendingG'+_0x21ea02(0x304,0x12e)+_0x21ea02(_0x45c0f6._0x9ac4da,_0x45c0f6._0xdd7626)][_0x34206e(_0x45c0f6._0x520e8a,_0x45c0f6._0x52f677)](_0x576690),this[_0x21ea02(_0x45c0f6._0x3e4c2a,_0x45c0f6._0x3d5e58)](_0x34206e(_0x45c0f6._0x101983,-0x10d)+_0x34206e(-0x21,-_0x45c0f6._0x5879b6)+_0x34206e(-0x13b,-_0x45c0f6._0x11c6a3)+this[_0x21ea02(-_0x45c0f6._0x4926be,_0x45c0f6._0x536e49)+_0x34206e(0x6b,0xe1)+_0x21ea02(_0x45c0f6._0x9ac4da,_0x45c0f6._0xa667)][_0x21ea02(0xf7,_0x45c0f6._0x3b2938)]);}[_0x11b7ab(0x44f,0x2a3)+'onnectSt'+_0x11b7ab(-0x1a2,-0xb0)](_0x30b816,_0x1e19c3){const _0x2f4f0d={_0x124120:0x1ea,_0x30b3bb:0x9e,_0x52662d:0x1dc,_0x489cba:0x3dc,_0x55836b:0x2e7,_0x436199:0x14b,_0x164e78:0x467,_0x3970aa:0x206,_0x3a3b7e:0x267,_0x336b35:0x19d,_0x14dbc1:0x135,_0x23f2fd:0x46,_0x2e5ad5:0x92,_0x337e99:0x10a,_0x7aeb1c:0x229},_0xca039={_0x120e3d:0x4e},_0x765362={_0x359a5d:0x18f},_0xfb94ce=Date[_0x376f96(_0x2f4f0d._0x124120,0x225)]();function _0x376f96(_0x1911a5,_0x4d0c5d){return _0x11b7ab(_0x1911a5,_0x4d0c5d-_0x765362._0x359a5d);}function _0x37355b(_0x4821bb,_0x29b778){return _0x11b7ab(_0x29b778,_0x4821bb- -_0xca039._0x120e3d);}const _0x3b0357=new Map(this[_0x37355b(_0x2f4f0d._0x30b3bb,_0x2f4f0d._0x52662d)][_0x37355b(0xe6,0x122)+_0x376f96(_0x2f4f0d._0x489cba,_0x2f4f0d._0x55836b)]['map'](_0x18b2f9=>[_0x18b2f9['id'],{..._0x18b2f9}])),_0x53691c=_0x3b0357[_0x37355b(0xbc,-_0x2f4f0d._0x436199)](_0x30b816)??{'id':_0x30b816,'label':_0x1e19c3,'state':_0x376f96(_0x2f4f0d._0x164e78,0x2c3)+'d','lastSeenMs':_0xfb94ce};_0x53691c[_0x376f96(0x2fa,_0x2f4f0d._0x3970aa)]=_0x1e19c3,_0x53691c['state']=_0x37355b(0xe6,_0x2f4f0d._0x3a3b7e)+'d',_0x53691c[_0x37355b(0x1fd,_0x2f4f0d._0x336b35)+'Ms']=_0xfb94ce,_0x3b0357['set'](_0x30b816,_0x53691c);const _0x57c708=[..._0x3b0357[_0x37355b(_0x2f4f0d._0x14dbc1,0x2a5)]()][_0x376f96(_0x2f4f0d._0x23f2fd,_0x2f4f0d._0x2e5ad5)]((_0x387d46,_0x4d75d9)=>_0x4d75d9[_0x376f96(0x52e,0x3da)+'Ms']-_0x387d46['lastSeen'+'Ms'])[_0x376f96(0x4af,0x2fe)](0x0,MAX_DEVICE_DETAILS),_0x407a1e={};_0x407a1e['connecte'+_0x37355b(_0x2f4f0d._0x337e99,-0x39)]=_0x57c708,this[_0x376f96(0x28b,_0x2f4f0d._0x7aeb1c)+'apshot'](_0x407a1e);}[_0x11b7ab(0x304,0x27b)+_0x11b7ab(0x25e,0x155)+'t'](){const _0x2763e6={_0x412ba9:0x155,_0x3f4d7f:0x1a8,_0x5467c5:0xe9},_0x42f1be={_0x5e8a43:0x241};function _0x1664e5(_0x4aab20,_0x1b7595){return _0x11b7ab(_0x4aab20,_0x1b7595- -_0x42f1be._0x5e8a43);}function _0x1d0175(_0x333e12,_0x404ae1){return _0x11b7ab(_0x333e12,_0x404ae1-0x145);}this['updateSn'+_0x1664e5(0x15f,0x69)]({'connectedDevices':this[_0x1664e5(0x6,-_0x2763e6._0x412ba9)]['connecte'+_0x1664e5(-_0x2763e6._0x3f4d7f,-_0x2763e6._0x5467c5)][_0x1d0175(0x48d,0x327)](_0x2f07f7=>({..._0x2f07f7,'state':_0x1d0175(0x29c,0x1a4)}))});}[_0x6eb3(-0x2e7,-0x133)+_0x11b7ab(0x20b,0x4)+_0x11b7ab(0x38d,0x245)](_0x2f71d3){const _0x4b8b8d={_0x4682cc:0x145,_0x5438a3:0x4e0,_0x2a4056:0x3dd,_0x4c2c0a:0x1ca,_0xfb3437:0xb1,_0x4cd6b6:0x7e,_0x2859a9:0x4a1,_0x163726:0x599,_0x155b3a:0x315,_0x19e252:0x141,_0x4966d8:0x3e1,_0x2013eb:0x26b,_0x58b692:0x4b5,_0x61c873:0x1a7},_0x1388ac={_0x26990d:0x118},_0x7b8916={_0x225794:0x1f7};if(this['snapshot'][_0x568943(0x25e,0x448)+_0x3eeb3a(-0x342,-_0x4b8b8d._0x4682cc)+_0x568943(0x2ef,0x227)][_0x568943(_0x4b8b8d._0x5438a3,_0x4b8b8d._0x2a4056)](_0x5c788f=>_0x5c788f['requestI'+'d']===_0x2f71d3['requestI'+'d']))return;function _0x568943(_0x55aec1,_0x1563a4){return _0x11b7ab(_0x1563a4,_0x55aec1-_0x7b8916._0x225794);}function _0x3eeb3a(_0x44a250,_0x30335b){return _0x11b7ab(_0x44a250,_0x30335b- -_0x1388ac._0x26990d);}const _0x561702=[...this[_0x568943(0x2e3,0x2f8)]['pendingP'+_0x568943(_0x4b8b8d._0x4c2c0a,0x286)+_0x568943(0x2ef,0x3b0)],_0x2f71d3]['slice'](-MAX_PENDING_PAIR_REQUESTS),_0x3907f5={};_0x3907f5[_0x3eeb3a(0x120,-_0x4b8b8d._0xfb3437)+_0x3eeb3a(-0x84,-0x145)+_0x568943(0x2ef,0x4e6)]=_0x561702,this[_0x3eeb3a(0x68,-_0x4b8b8d._0x4cd6b6)+_0x568943(_0x4b8b8d._0x2859a9,_0x4b8b8d._0x163726)](_0x3907f5),this['options'][_0x3eeb3a(0x397,0x19d)+'gPairReq'+_0x3eeb3a(-_0x4b8b8d._0x155b3a,-_0x4b8b8d._0x19e252)]?.(_0x2f71d3),this['log']('pair\x20req'+_0x568943(_0x4b8b8d._0x4966d8,_0x4b8b8d._0x2013eb)+_0x3eeb3a(-0x3bb,-0x1f4)+_0x3eeb3a(-0x32,0x8b)+_0x2f71d3[_0x568943(_0x4b8b8d._0x58b692,0x41c)+'d']+('\x20deviceI'+'d=')+(_0x2f71d3['deviceId']||_0x3eeb3a(-_0x4b8b8d._0x61c873,-0x88)+'>'));}[_0x6eb3(0x18d,0x4f)+_0x6eb3(0xfe,0xe6)+_0x11b7ab(-0x15e,-0x83)](_0x41dba9,_0x81b496){const _0x55e794={_0x2aea13:0x143,_0x1f2ceb:0x1cc,_0x33c16a:0x13d,_0x3223c1:0xea,_0x305589:0x1c5,_0x19c997:0x184,_0x22ce77:0x2da},_0x3acde4={_0x45f6a9:0x63},_0x8359c3={_0x22972b:0x168};function _0x5c61f6(_0x235c48,_0x42ec47){return _0x6eb3(_0x42ec47,_0x235c48- -_0x8359c3._0x22972b);}function _0x4d1aeb(_0x2fcef1,_0x284558){return _0x6eb3(_0x284558,_0x2fcef1- -_0x3acde4._0x45f6a9);}const _0x53699e=this[_0x4d1aeb(0x47,-0x17e)][_0x5c61f6(-_0x55e794._0x2aea13,0x23)+_0x5c61f6(-0x1d7,-_0x55e794._0x1f2ceb)+'sts'][_0x4d1aeb(_0x55e794._0x33c16a,0x137)](_0x5b4a1b=>_0x5b4a1b[_0x5c61f6(0x114,0x1c3)+'d']===_0x41dba9?{..._0x5b4a1b,'status':_0x81b496===_0x4d1aeb(0xa7,0x248)||_0x81b496===_0x5c61f6(-0x132,-0x2bd)?_0x81b496:_0x5b4a1b['status']}:_0x5b4a1b),_0x490b8b={};_0x490b8b['pendingP'+'airReque'+_0x4d1aeb(0x53,-_0x55e794._0x3223c1)]=_0x53699e,this[_0x4d1aeb(-0xb,-0x4f)+_0x4d1aeb(0x205,_0x55e794._0x305589)](_0x490b8b),this['log']('pair\x20req'+_0x4d1aeb(_0x55e794._0x19c997,0x1be)+'olved\x20re'+_0x4d1aeb(0x1b3,_0x55e794._0x22ce77)+_0x41dba9+('\x20decisio'+'n=')+_0x81b496);}[_0x11b7ab(-0x47,0x9a)+_0x11b7ab(0x276,0x2aa)](_0x196fbc){const _0x2eb688={_0x5da190:0x21,_0x52d84c:0x58,_0x59d4de:0x9b},_0x15ad47={_0x58e5fb:0xc9},_0x5c8f49={_0x1a3ee3:0xaf};function _0x21b0a6(_0x371214,_0x40b5ce){return _0x6eb3(_0x40b5ce,_0x371214- -_0x5c8f49._0x1a3ee3);}Object['assign'](this[_0x21b0a6(-0x5,_0x2eb688._0x5da190)],_0x196fbc,{'lastUpdatedMs':Date[_0x4e7de0(-0x3,-0x75)]()});function _0x4e7de0(_0x3471ff,_0x4c1910){return _0x6eb3(_0x3471ff,_0x4c1910- -_0x15ad47._0x58e5fb);}this[_0x4e7de0(-_0x2eb688._0x52d84c,-0x144)][_0x4e7de0(0x27a,_0x2eb688._0x59d4de)]?.(this[_0x4e7de0(-0xb,0x12)+_0x4e7de0(0x311,0x12f)]());}['log'](_0x32e73c){const _0x21e239={_0x4c68cf:0x30f,_0x403e73:0x2c9,_0x460eb2:0x1f0},_0x1d2fbd={_0x150a3f:0x401},_0x2893cc={_0x51a6aa:0x348};function _0xe6a885(_0x461871,_0x3728b6){return _0x11b7ab(_0x3728b6,_0x461871-_0x2893cc._0x51a6aa);}function _0x5ebad6(_0x17ea2c,_0x7f9802){return _0x11b7ab(_0x7f9802,_0x17ea2c-_0x1d2fbd._0x150a3f);}this[_0xe6a885(_0x21e239._0x4c68cf,0x305)][_0xe6a885(_0x21e239._0x403e73,_0x21e239._0x460eb2)]?.(_0x32e73c);}[_0x6eb3(0x20d,0x8)+_0x11b7ab(0x11c,0x2ad)](){const _0x43bb14={_0x98c4d6:0x12e,_0x342ab0:0x4c3,_0x2a2d85:0x2ba,_0xe5546e:0x16b,_0x496726:0x179},_0x2a326a={_0x21b465:0x1c2};function _0x2ebf31(_0x2392b1,_0x1afc91){return _0x6eb3(_0x1afc91,_0x2392b1- -_0x2a326a._0x21b465);}function _0x3837ab(_0x38f18c,_0x1e6476){return _0x6eb3(_0x1e6476,_0x38f18c-0x2e5);}return this[_0x2ebf31(-_0x43bb14._0x98c4d6,-0x317)+_0x3837ab(_0x43bb14._0x342ab0,_0x43bb14._0x2a2d85)]?.[_0x2ebf31(-0x1fb,-_0x43bb14._0xe5546e)+'te']===_0x17e531[_0x2ebf31(-0x73,_0x43bb14._0x496726)];}['isGatewa'+'yOpen'](){const _0x2d3d8e={_0x4d25a5:0xa5,_0x421bfb:0x1ef},_0xa376b9={_0x790371:0xae};function _0x52cbd1(_0x14ddf4,_0x55856b){return _0x11b7ab(_0x14ddf4,_0x55856b- -_0xa376b9._0x790371);}function _0x51b297(_0x437dd2,_0x396871){return _0x11b7ab(_0x437dd2,_0x396871-0x57d);}return this['gatewayS'+'ocket']?.[_0x52cbd1(-0x252,-_0x2d3d8e._0x4d25a5)+'te']===_0x17e531[_0x52cbd1(_0x2d3d8e._0x421bfb,0xe3)];}[_0x11b7ab(0x18e,0x99)+_0x6eb3(-0x35,0xe7)](){const _0x26ef66={_0x32f1d3:0x3e9,_0x1bbacc:0x640,_0x5c7737:0x769,_0x5e85c6:0x729},_0x4e30bc={_0xe66564:0x4b5};function _0x5b1634(_0x24eb7b,_0x233d2c){return _0x6eb3(_0x24eb7b,_0x233d2c-_0x4e30bc._0xe66564);}function _0x368667(_0x13473b,_0x3fad2a){return _0x6eb3(_0x3fad2a,_0x13473b-0x537);}return this[_0x5b1634(_0x26ef66._0x32f1d3,0x55f)]['clientCo'+_0x368667(0x67e,0x867)]>0x0||this['pendingG'+_0x5b1634(_0x26ef66._0x1bbacc,_0x26ef66._0x5c7737)+_0x368667(_0x26ef66._0x5e85c6,0x6d1)]['length']>0x0;}[_0x11b7ab(0x2e8,0x22e)+_0x6eb3(-0x2e7,-0xf8)](){const _0x3c65d2={_0x56f225:0x44a,_0x4899a2:0x230,_0x1bc51b:0x51b,_0x55549f:0x70d,_0x15f201:0x45f,_0x507e03:0x441,_0xaf8db7:0x1de,_0x1ab4d3:0x5a7,_0x48df6b:0x65f,_0x137d12:0x30a};function _0x58b219(_0x2fdd7c,_0x360da9){return _0x6eb3(_0x2fdd7c,_0x360da9-0xbd);}const _0x283374={'NVHJD':function(_0x4a6031,_0x2eb9c6){return _0x4a6031(_0x2eb9c6);}};this['stopHear'+'tbeat']();this[_0x58b219(0x4ed,0x318)+_0x4de496(0x3e3,_0x3c65d2._0x56f225)]&&(_0x283374[_0x58b219(-_0x3c65d2._0x4899a2,-0x5a)](clearTimeout,this[_0x4de496(_0x3c65d2._0x1bc51b,0x65a)+_0x4de496(0x35c,0x44a)]),this[_0x4de496(_0x3c65d2._0x55549f,0x65a)+_0x4de496(_0x3c65d2._0x15f201,_0x3c65d2._0x56f225)]=null);this['gatewayR'+_0x4de496(0x521,_0x3c65d2._0x507e03)+'r']&&(clearTimeout(this[_0x58b219(_0x3c65d2._0xaf8db7,0x2f4)+_0x4de496(_0x3c65d2._0x1ab4d3,0x441)+'r']),this[_0x4de496(_0x3c65d2._0x48df6b,0x636)+'etryTime'+'r']=null);function _0x4de496(_0x26df4c,_0x5413bc){return _0x6eb3(_0x26df4c,_0x5413bc-0x3ff);}this[_0x4de496(0x3c4,0x42a)+_0x4de496(0x27a,_0x3c65d2._0x137d12)+'eClose']();}[_0x11b7ab(0xa9,-0xe6)+_0x6eb3(0x31e,0x288)](_0x4f7999){const _0x29c500={_0x307271:0x347,_0x23ece3:0x271},_0x2f3930={_0x435456:0x16e},_0x2c5849={_0x5c7a9f:0x228},_0x57fa22={};function _0x32d28d(_0x903f1e,_0x4bf2b9){return _0x11b7ab(_0x4bf2b9,_0x903f1e-_0x2c5849._0x5c7a9f);}_0x57fa22[_0x32d28d(_0x29c500._0x307271,_0x29c500._0x23ece3)]=function(_0x8913d4,_0x17ee62){return _0x8913d4-_0x17ee62;};function _0x479e7c(_0x44a4bf,_0x229662){return _0x11b7ab(_0x229662,_0x44a4bf- -_0x2f3930._0x435456);}const _0x27e18a=_0x57fa22;return _0x4f7999==null?null:Math[_0x32d28d(0x32e,0x257)](0x0,_0x27e18a['hAVDk'](Date[_0x32d28d(0x2be,0x16a)](),_0x4f7999));}};function shouldRecycleGatewayForFreshClient(_0x290c6a,_0x519207,_0x43c3e9,_0xd2eb59){return _0x43c3e9&&_0x519207>0x0&&(_0x290c6a===0x0||_0xd2eb59);}function _0x11b7ab(_0x4d6e79,_0x407a58){return _0x2e58(_0x407a58- -0x1a6,_0x4d6e79);}function summarizeJsonFrame(_0x1c91fa){const _0x59890e={_0x3be50e:0x542,_0x5bbd2d:0x630,_0x1ce656:0x56b,_0x3f76de:0x212,_0x323dd0:0x3b1,_0x30a303:0x441,_0x2002fe:0x2bf,_0x2fd128:0x4a7,_0x4ebf3b:0x303,_0x46c48a:0x2b7,_0x8b2901:0x452,_0x12ac62:0x1f8,_0x4010cf:0x99,_0xfe42ea:0x27b,_0x3b2910:0x46f,_0x414799:0x253,_0x1c1108:0x42c,_0x5ceb4f:0x1cc,_0x53ace9:0x1ba,_0x249645:0x39d,_0x4de527:0x29b,_0x57ce02:0x13c,_0x4154ca:0x102,_0x23683d:0xed,_0x2c244e:0x3ee,_0x47de33:0x40f,_0x1c1e36:0x57a,_0x551d9e:0x111,_0x4687be:0x26b,_0x197b5e:0x3c8,_0x22d71e:0x1c1,_0x4ee4c9:0x220,_0x26899f:0x675},_0x476622={_0x5b32fb:0x49a};function _0x1ef065(_0x34333b,_0x5a479e){return _0x6eb3(_0x5a479e,_0x34333b-0x1aa);}const _0x5e6136={};_0x5e6136['wEgFW']=_0x224afd(_0x59890e._0x3be50e,0x4e8)+'>';const _0x310659=_0x5e6136;function _0x224afd(_0x37ac06,_0x304c37){return _0x6eb3(_0x37ac06,_0x304c37-_0x476622._0x5b32fb);}try{const _0x4aa458=JSON[_0x224afd(0x6a9,0x4ba)](_0x1c91fa);if(_0x4aa458[_0x224afd(_0x59890e._0x5bbd2d,_0x59890e._0x1ce656)]===_0x224afd(_0x59890e._0x3f76de,_0x59890e._0x323dd0)&&typeof _0x4aa458[_0x224afd(0x4db,_0x59890e._0x30a303)]===_0x224afd(0x58e,0x3dd))return _0x224afd(_0x59890e._0x2002fe,_0x59890e._0x2fd128)+_0x1ef065(_0x59890e._0x4ebf3b,_0x59890e._0x46c48a)+_0x4aa458[_0x224afd(_0x59890e._0x8b2901,0x441)]+'\x20id='+(typeof _0x4aa458['id']==='string'?_0x4aa458['id']:_0x1ef065(_0x59890e._0x12ac62,_0x59890e._0x4010cf)+'>');if(_0x4aa458[_0x1ef065(_0x59890e._0xfe42ea,_0x59890e._0x3b2910)]===_0x224afd(_0x59890e._0x414799,_0x59890e._0x1c1108)&&typeof _0x4aa458[_0x1ef065(0x13c,_0x59890e._0x5ceb4f)]===_0x1ef065(0xed,0x7c))return _0x224afd(_0x59890e._0x53ace9,_0x59890e._0x249645)+_0x1ef065(0x3b7,_0x59890e._0x4de527)+_0x4aa458[_0x1ef065(_0x59890e._0x57ce02,_0x59890e._0x4154ca)];if(_0x4aa458[_0x1ef065(0x27b,0x2bd)]===_0x1ef065(0x3b4,0x4b1)){const _0x43fbb1=typeof _0x4aa458['id']===_0x1ef065(_0x59890e._0x23683d,-0x36)?_0x4aa458['id']:_0x310659['wEgFW'],_0x4a5046=_0x4aa458['ok']===!![]?_0x1ef065(_0x59890e._0x2c244e,0x576):_0x224afd(_0x59890e._0x47de33,_0x59890e._0x1c1e36),_0x117e64=typeof _0x4aa458[_0x1ef065(_0x59890e._0x551d9e,-0x97)]?.[_0x224afd(_0x59890e._0x4687be,_0x59890e._0x197b5e)]==='string'?_0x4aa458[_0x1ef065(0x111,_0x59890e._0x22d71e)][_0x1ef065(0xd8,0x1af)]:_0x1ef065(0x28c,0x93);return _0x224afd(_0x59890e._0x4ee4c9,0x3ef)+_0x43fbb1+_0x224afd(0x879,_0x59890e._0x26899f)+_0x4a5046+'\x20code='+_0x117e64;}return null;}catch{return null;}}function shouldDropStaleConnectAfterGatewayReopen(_0x84fca1,_0x4afc38){return!_0x84fca1&&_0x4afc38;}function buildRelayWsUrl(_0x51da74){const _0x29389c={_0x9a8250:0x31e,_0x50021a:0x390,_0x1c8045:0x4cd,_0xfb09eb:0x2bf,_0x52de22:0x41e,_0x1d3aee:0x715,_0x1b41f4:0x698,_0x45ce64:0x667,_0x14327d:0x814,_0x192cad:0x59b,_0x1bce8c:0x45,_0x58779e:0x57,_0x1ca064:0x44,_0x4d47e1:0x19d,_0x29615e:0x44d,_0x2c6465:0x3fc,_0x478656:0x7da,_0x4e98be:0x76,_0x9238bc:0x180,_0x33c844:0x721,_0x5bbeb5:0x948,_0xf446d2:0x264},_0x5addea={_0x55046f:0x4fb};function _0x4f7278(_0x2640e3,_0xd587da){return _0x6eb3(_0x2640e3,_0xd587da-_0x5addea._0x55046f);}const _0x3f1aaa={};_0x3f1aaa[_0xe5d42(-_0x29389c._0x9a8250,-_0x29389c._0x50021a)]='gateway';const _0x2dc8ad=_0x3f1aaa,_0x10a8eb=new URL(_0x51da74[_0xe5d42(-0x313,-0x398)]);(!_0x10a8eb[_0x4f7278(_0x29389c._0x1c8045,0x41e)]||_0x10a8eb[_0xe5d42(-_0x29389c._0xfb09eb,-0x225)]==='/')&&(_0x10a8eb[_0x4f7278(0x254,_0x29389c._0x52de22)]='/ws');_0x10a8eb[_0x4f7278(_0x29389c._0x1d3aee,_0x29389c._0x1b41f4)+_0x4f7278(0x46a,_0x29389c._0x45ce64)][_0x4f7278(_0x29389c._0x14327d,0x721)](_0x4f7278(_0x29389c._0x192cad,0x6a6)+'d',_0x51da74['gatewayI'+'d']),_0x10a8eb[_0xe5d42(-_0x29389c._0x1bce8c,-_0x29389c._0x58779e)+'rams'][_0xe5d42(_0x29389c._0x1ca064,_0x29389c._0x4d47e1)](_0x4f7278(_0x29389c._0x29615e,0x5e0),_0x2dc8ad[_0xe5d42(-_0x29389c._0x9a8250,-_0x29389c._0x2c6465)]),_0x10a8eb[_0x4f7278(_0x29389c._0x478656,_0x29389c._0x1b41f4)+_0xe5d42(-_0x29389c._0x4e98be,0xaf)][_0xe5d42(0x44,_0x29389c._0x9238bc)]('clientId',_0x51da74[_0x4f7278(0x3b6,0x4e3)+'Id']),_0x10a8eb['searchPa'+_0xe5d42(-0x76,-0x157)][_0x4f7278(0x590,_0x29389c._0x33c844)]('token',_0x51da74[_0xe5d42(-0x2ec,-0x467)+_0x4f7278(_0x29389c._0x5bbeb5,0x796)]);function _0xe5d42(_0x2caea0,_0x3e410){return _0x6eb3(_0x3e410,_0x2caea0- -0x1e2);}return _0x10a8eb[_0xe5d42(-0xba,-_0x29389c._0xf446d2)]();}function redactRelayWsUrl(_0x3c7c00){const _0x315638={_0x2088e0:0xb,_0x485e06:0x173,_0x5e8047:0x3e,_0x7bd60f:0x26a,_0x478477:0x21e,_0x1e5e56:0x3e,_0x12a9e5:0x2bc,_0x2405c1:0x6},_0x53355={_0x3f5242:0x170},_0x48c3c1=new URL(_0x3c7c00);_0x48c3c1[_0x476b3c(-_0x315638._0x2088e0,0x6f)+_0x476b3c(_0x315638._0x485e06,_0x315638._0x5e8047)][_0x4b7a45(0x6a,0x1cf)](_0x4b7a45(0x151,0x233))&&_0x48c3c1[_0x4b7a45(_0x315638._0x7bd60f,0x1fd)+_0x476b3c(_0x315638._0x478477,_0x315638._0x1e5e56)][_0x4b7a45(_0x315638._0x12a9e5,0x286)](_0x476b3c(0x1c9,0xa5),'<redacte'+'d>');function _0x4b7a45(_0x480a28,_0x1e3c24){return _0x11b7ab(_0x480a28,_0x1e3c24-0x1e);}function _0x476b3c(_0x17acec,_0x51f176){return _0x11b7ab(_0x17acec,_0x51f176- -_0x53355._0x3f5242);}return _0x48c3c1[_0x476b3c(0x7d,-_0x315638._0x2405c1)]();}function normalizeText(_0x59cc62){const _0x46239e={_0x20cdf5:0x498,_0x1cea43:0x240,_0x362284:0x24b,_0x1a39c4:0x2aa,_0x5c99e2:0x242,_0xcaff16:0x79,_0x4fa059:0x329,_0x31cda9:0x3de,_0x3a8a44:0x2c2,_0xeaf4be:0x3b8,_0x5d3452:0x1ce,_0x1df5fa:0x3b7,_0x1091b3:0x5a},_0x356cc1={_0x470d3c:0x1e3},_0x58dc68={};function _0x3b8f3b(_0x2b4943,_0x160ca9){return _0x11b7ab(_0x2b4943,_0x160ca9-0x2c6);}_0x58dc68['lrdDI']=function(_0x4a541c,_0x5a85e6){return _0x4a541c===_0x5a85e6;},_0x58dc68[_0x3b8f3b(0x59f,_0x46239e._0x20cdf5)]=_0x3b8f3b(_0x46239e._0x1cea43,_0x46239e._0x362284);const _0x53828f=_0x58dc68;function _0x54d2a1(_0x189ce5,_0x4baabd){return _0x11b7ab(_0x189ce5,_0x4baabd- -_0x356cc1._0x470d3c);}if(_0x53828f[_0x3b8f3b(_0x46239e._0x1a39c4,_0x46239e._0x5c99e2)](typeof _0x59cc62,_0x53828f['eEaTP']))return _0x59cc62;if(Buffer['isBuffer'](_0x59cc62))return _0x59cc62[_0x54d2a1(-0xa0,-_0x46239e._0xcaff16)](_0x3b8f3b(_0x46239e._0x4fa059,_0x46239e._0x31cda9));if(Array[_0x3b8f3b(_0x46239e._0x3a8a44,0x355)](_0x59cc62))return Buffer[_0x3b8f3b(_0x46239e._0xeaf4be,_0x46239e._0x5d3452)](_0x59cc62)[_0x3b8f3b(0x61d,0x430)](_0x3b8f3b(0x4ef,0x3de));if(_0x59cc62 instanceof ArrayBuffer)return Buffer[_0x3b8f3b(_0x46239e._0x1df5fa,0x26d)](_0x59cc62)[_0x54d2a1(-_0x46239e._0x1091b3,-0x79)]('utf8');return null;}function normalizeBinary(_0x280c86){const _0x55382d={_0x2c8705:0x613,_0x3714fd:0x111,_0xe126c4:0x3d5,_0x377594:0x26b,_0x246311:0x42b},_0x128a56={_0x56c656:0x3a9},_0x5deb79={};_0x5deb79[_0x2ebbe3(_0x55382d._0x2c8705,0x5b4)]=_0x2ebbe3(_0x55382d._0x3714fd,0x249);const _0x3d71ea=_0x5deb79;if(Buffer[_0x2ebbe3(_0x55382d._0xe126c4,0x362)](_0x280c86))return _0x280c86;if(typeof _0x280c86===_0x3d71ea['qXznS'])return Buffer[_0x2ebbe3(0xbd,_0x55382d._0x377594)](_0x280c86,_0x2ebbe3(0x2a1,0x3dc));function _0x95cf06(_0x5799bd,_0x323828){return _0x11b7ab(_0x323828,_0x5799bd-_0x128a56._0x56c656);}if(Array['isArray'](_0x280c86))return Buffer[_0x95cf06(0x2b1,_0x55382d._0x246311)](_0x280c86);function _0x2ebbe3(_0x494ace,_0x1f49d7){return _0x11b7ab(_0x494ace,_0x1f49d7-0x2c4);}return Buffer['from'](_0x280c86);}function readRecentCliLogs(_0x45e35f){const _0x65e7a1={_0x5eedb2:0xac,_0x28d855:0x123,_0x20334f:0x162,_0x47da51:0xc5,_0xfdee67:0x81,_0x1cad3f:0x188,_0x179e05:0x278,_0x1a775e:0x599,_0x1b7d8f:0x5cf},_0x2c827e={_0xa9b0b1:0x42a},_0x47b53f={_0x431391:0xdf},_0x4b037d={'pITVk':function(_0x4e0d10){return _0x4e0d10();},'XdkVq':function(_0xbabde0,_0x589783){return _0xbabde0-_0x589783;},'cyCIR':function(_0x2b7e89,_0x25900f){return _0x2b7e89==_0x25900f;}},{logPath:_0xe3fa46,errorLogPath:_0x181979}=_0x4b037d[_0x27293e(-_0x65e7a1._0x5eedb2,-_0x65e7a1._0x28d855)](getServicePaths);function _0x27293e(_0x17304d,_0x504518){return _0x11b7ab(_0x504518,_0x17304d- -_0x47b53f._0x431391);}const _0x598511=clampLines(_0x45e35f?.[_0x27293e(0xcc,_0x65e7a1._0x20334f)]??0xc8),_0x46dd6e=_0x45e35f?.[_0x27293e(_0x65e7a1._0x47da51,-0x104)]??null,_0x5ea1e1=_0x46dd6e!=null?_0x4b037d['XdkVq'](Date[_0x27293e(-0x49,0x102)](),_0x46dd6e):null,_0x1cac05=[_0xe3fa46];function _0x26838a(_0x3e62f4,_0x1be382){return _0x11b7ab(_0x1be382,_0x3e62f4-_0x2c827e._0xa9b0b1);}_0x45e35f?.[_0x27293e(-0x105,-_0x65e7a1._0xfdee67)+_0x27293e(-0x1a,-_0x65e7a1._0x1cad3f)]&&_0x1cac05['push'](_0x181979);const _0x25b91c=_0x1cac05['flatMap'](_0x147324=>readLogFile(_0x147324)),_0x5d5405=_0x4b037d['cyCIR'](_0x5ea1e1,null)?_0x25b91c:_0x25b91c[_0x26838a(0x365,_0x65e7a1._0x179e05)](_0x31c89a=>_0x31c89a['ts']!=null&&_0x31c89a['ts']>=_0x5ea1e1);return _0x5d5405[_0x26838a(_0x65e7a1._0x1a775e,_0x65e7a1._0x1b7d8f)](-_0x598511)['map'](_0x4acfc6=>_0x4acfc6[_0x26838a(0x4d0,0x413)]);}async function buildDoctorReport(){const _0x969404={_0x4d4ef7:0x118,_0x490a15:0x283,_0x5cf9ac:0x162,_0x1e9e26:0xc4,_0x4693c0:0xb7,_0x5b79a0:0x1b1,_0x435ae5:0x3ad,_0x55c0c8:0x2e3,_0x5968b1:0x210,_0x50d2e2:0x13d,_0x1fc8b6:0x62c,_0x20160:0x67d,_0x18eb94:0x4ee,_0x522075:0x12c,_0x33c488:0x333,_0x1cb280:0x46},_0x18f6f1={_0x360a7b:0x54a},_0x54a0e5={'uYyce':function(_0x5cff2d){return _0x5cff2d();},'OExaC':function(_0x4890c8,_0x1cd4ef){return _0x4890c8(_0x1cd4ef);}},_0x653728=_0x54a0e5[_0x28a310(0x6f8,0x569)](readPairingConfig);function _0x2fbb7c(_0x31ca4a,_0x415341){return _0x11b7ab(_0x415341,_0x31ca4a- -0xe9);}function _0x28a310(_0x5a14dc,_0x1984ac){return _0x11b7ab(_0x5a14dc,_0x1984ac-_0x18f6f1._0x360a7b);}const _0xade7a3=getServiceStatus(),_0x4b6099=_0x54a0e5['uYyce'](readOpenClawInfo),_0x311dfd=resolveGatewayUrl(),_0x1a2f24=await checkGatewayReachable(_0x311dfd);return{'paired':Boolean(_0x653728),'gatewayId':_0x653728?.['gatewayI'+'d']??null,'serverUrl':_0x653728?.[_0x2fbb7c(-0xa9,_0x969404._0x4d4ef7)+'l']??null,'relayUrl':_0x653728?.[_0x2fbb7c(-0x1d8,-_0x969404._0x490a15)]??null,'instanceId':_0x653728?.[_0x2fbb7c(-0xbf,-0x13d)+'Id']??null,'serviceInstalled':_0xade7a3[_0x2fbb7c(0x128,_0x969404._0x5cf9ac)+'d'],'serviceRunning':_0xade7a3[_0x2fbb7c(-_0x969404._0x1e9e26,-0xca)],'serviceMethod':_0xade7a3[_0x2fbb7c(-0x100,_0x969404._0x4693c0)],'servicePath':_0xade7a3[_0x2fbb7c(_0x969404._0x5b79a0,_0x969404._0x435ae5)+'ath'],'logPath':_0xade7a3[_0x2fbb7c(0x210,_0x969404._0x55c0c8)],'errorLogPath':_0xade7a3['errorLog'+_0x2fbb7c(-0xef,-_0x969404._0x5968b1)],'openclawConfigDir':getOpenClawConfigDir(),'openclawMediaDir':getOpenClawMediaDir(),'openclawConfigFound':_0x4b6099[_0x2fbb7c(_0x969404._0x50d2e2,0x182)+_0x28a310(0x5fd,_0x969404._0x1fc8b6)],'openclawAuthMode':_0x4b6099[_0x28a310(0x851,0x7ad)],'openclawTokenFound':_0x54a0e5[_0x28a310(_0x969404._0x20160,_0x969404._0x18eb94)](Boolean,_0x4b6099[_0x2fbb7c(_0x969404._0x522075,-0x8b)]),'openclawPasswordFound':_0x54a0e5[_0x28a310(_0x969404._0x33c488,_0x969404._0x18eb94)](Boolean,_0x4b6099[_0x2fbb7c(_0x969404._0x1cb280,-0x1a4)]),'localGatewayUrl':_0x311dfd,'localGatewayReachable':_0x1a2f24};}async function ensurePairPrerequisites(){const _0x21902d={_0x25b96b:0x18e,_0x33a5da:0x2cc,_0x32af07:0x36c,_0x399feb:0xf1,_0x552706:0x50e,_0x249540:0x43b,_0x60b960:0x3f0,_0xe090b2:0x1fb,_0x5b39bd:0x6d,_0x1348d5:0xf8,_0x2c4791:0x1cb,_0x175558:0x3d3,_0x2b6cf6:0xc5,_0x5a38d0:0x1c1,_0x39e07f:0x36a,_0x27fff9:0x20c,_0x37e538:0x51,_0x3438cc:0x74},_0x3f6c50={_0x5028b6:0x92},_0x154daa=await buildDoctorReport(),_0x5c3df5=listPairPrerequisiteFailures(_0x154daa);if(_0x5c3df5['length']>0x0)throw new Error(['Cannot\x20c'+_0xcdb151(_0x21902d._0x25b96b,0x1a5)+_0xcdb151(0x256,_0x21902d._0x33a5da)+'\x20pair`\x20b'+_0xcdb151(_0x21902d._0x32af07,0x1ce)+'ocal\x20Ope'+_0x36586e(_0x21902d._0x399feb,-0x14)+_0xcdb151(_0x21902d._0x552706,0x3b9)+'tes\x20are\x20'+_0xcdb151(0x4a7,0x352)+'y.',..._0x5c3df5[_0xcdb151(0x4a3,_0x21902d._0x249540)](_0xc9869e=>'-\x20'+_0xc9869e),'Run\x20`cla'+_0xcdb151(_0x21902d._0x60b960,0x20a)+_0x36586e(_0x21902d._0xe090b2,_0x21902d._0x5b39bd)+_0x36586e(_0x21902d._0x1348d5,0x2ee)+'tails,\x20o'+_0x36586e(_0x21902d._0x2c4791,0x2bd)+'lawket\x20p'+_0x36586e(0xea,0x80)+'rce`\x20onl'+_0x36586e(_0x21902d._0x175558,0x326)+_0x36586e(-_0x21902d._0x2b6cf6,0x9c)+'onally\x20w'+_0xcdb151(0x1ba,0x2ba)+_0xcdb151(_0x21902d._0x5a38d0,0x38e)+_0x36586e(_0x21902d._0x39e07f,_0x21902d._0x27fff9)+'y\x20check.'][_0x36586e(-_0x21902d._0x37e538,_0x21902d._0x3438cc)]('\x0a'));function _0x36586e(_0x4c93c9,_0x34d4df){return _0x11b7ab(_0x4c93c9,_0x34d4df-_0x3f6c50._0x5028b6);}function _0xcdb151(_0x52d642,_0x147c54){return _0x11b7ab(_0x52d642,_0x147c54-0x259);}return _0x154daa;}function listPairPrerequisiteFailures(_0x5c0ed4){const _0x20a570={_0x3e8af6:0x1b5,_0x22d7de:0x516,_0x2c0d0c:0x827,_0x2e901d:0x1a6,_0x59b26e:0x32,_0x2ebbaa:0x576,_0x1d61cf:0x74f,_0x36661a:0x335,_0x3e9b7a:0x61c,_0x4c02fb:0x3d1,_0xe13c2e:0x6e8,_0x192c01:0x3f2,_0x54ad72:0x3bb,_0x5f27d3:0x275,_0x24d4aa:0x20a,_0x2d6d52:0x5bd,_0x2b5456:0x65b,_0x1b71f6:0x79d,_0x338f2c:0x5b8,_0x3e613f:0x53d,_0x53eec6:0x2b0,_0x4f4b07:0x2eb,_0x509ad3:0x2ff,_0x4eaa58:0x349,_0x21a86c:0x48b,_0x20a2d9:0x10c,_0x3fddfb:0x98,_0x539292:0x4cc,_0x44b8fa:0x674,_0x371078:0x840,_0x24c9d7:0x2a6,_0x41971d:0x1cc,_0x5458f7:0x474,_0x317ee6:0x6e8,_0x58fa6a:0x789,_0x5604c8:0x22f,_0x22cb6b:0x23a,_0x6ed9b:0x18e,_0xa68f51:0x925,_0x284020:0x131,_0x5f1bdd:0x31,_0x397918:0x20a,_0x2e7fa5:0x17d,_0x3232a2:0x130,_0x6b839f:0x6e8,_0x25e2ee:0x739,_0x4c7b39:0x6d1,_0x3f4336:0x5b8,_0x32394a:0x349,_0x4524f4:0x53c,_0x20c84c:0x65d,_0x10bd1e:0x4c9,_0x534160:0x8cc,_0x3eddce:0x7dd,_0xa1a5f8:0x81b,_0x25cc97:0x75c,_0x3e7bd6:0x5cc,_0x4b14b3:0x620,_0x18e2e0:0x19c,_0x15f6d9:0xfb,_0x2399fb:0x27},_0x50a935={};_0x50a935[_0x53120d(_0x20a570._0x3e8af6,0x1ae)]=function(_0x134d28,_0x423f0a){return _0x134d28==_0x423f0a;},_0x50a935[_0x53de33(0x53a,_0x20a570._0x22d7de)]=_0x53de33(0x9b4,_0x20a570._0x2c0d0c)+_0x53120d(_0x20a570._0x2e901d,-_0x20a570._0x59b26e)+'\x20auth\x20is'+_0x53de33(0x3d9,_0x20a570._0x2ebbaa)+_0x53de33(_0x20a570._0x1d61cf,0x7f8)+_0x53120d(0x477,_0x20a570._0x36661a)+_0x53de33(_0x20a570._0x3e9b7a,0x7af);function _0x53de33(_0x41d4af,_0x3e3702){return _0x6eb3(_0x41d4af,_0x3e3702-0x5ad);}_0x50a935[_0x53120d(_0x20a570._0x4c02fb,0x25b)]='password';function _0x53120d(_0x5f5b4f,_0x226d42){return _0x6eb3(_0x5f5b4f,_0x226d42-0xcf);}const _0x3b06a9=_0x50a935,_0x398f49=[];return!_0x5c0ed4[_0x53de33(0x5c5,_0x20a570._0xe13c2e)+_0x53120d(_0x20a570._0x192c01,0x31e)+'und']&&_0x398f49[_0x53120d(_0x20a570._0x54ad72,0x2ff)]('OpenClaw'+_0x53de33(0x5fd,0x55b)+_0x53120d(0x1dc,_0x20a570._0x5f27d3)+_0x53de33(0x2fa,0x4d1)+'der\x20~/.o'+'penclaw/'+'.'),_0x5c0ed4[_0x53120d(0x3f,_0x20a570._0x24d4aa)+_0x53de33(_0x20a570._0x2d6d52,_0x20a570._0x2b5456)+'nd']&&_0x5c0ed4[_0x53120d(0x13d,0x20a)+_0x53de33(_0x20a570._0x1b71f6,_0x20a570._0x338f2c)+'Found']&&_0x3b06a9[_0x53de33(_0x20a570._0x3e613f,0x68c)](_0x5c0ed4[_0x53120d(0x216,0x20a)+_0x53de33(_0x20a570._0x53eec6,0x4ad)],null)&&_0x398f49[_0x53120d(_0x20a570._0x4f4b07,_0x20a570._0x509ad3)](_0x53120d(0x2d9,_0x20a570._0x4eaa58)+_0x53de33(0x409,_0x20a570._0x21a86c)+_0x53120d(0x7f,_0x20a570._0x20a2d9)+_0x53120d(-_0x20a570._0x3fddfb,0x16b)+_0x53de33(0x765,0x58b)+_0x53de33(_0x20a570._0x539292,_0x20a570._0x44b8fa)+_0x53de33(0x811,_0x20a570._0x371078)+_0x53de33(0x578,0x775)+_0x53120d(_0x20a570._0x24c9d7,_0x20a570._0x41971d)+_0x53de33(0x369,_0x20a570._0x5458f7)+'s\x20unset.'),!_0x5c0ed4[_0x53de33(0x6a7,_0x20a570._0x317ee6)+_0x53de33(_0x20a570._0x58fa6a,_0x20a570._0x2b5456)+'nd']&&!_0x5c0ed4[_0x53de33(0x738,0x6e8)+_0x53120d(_0x20a570._0x5604c8,0xda)+_0x53120d(_0x20a570._0x22cb6b,_0x20a570._0x6ed9b)]&&_0x398f49[_0x53de33(_0x20a570._0xa68f51,0x7dd)](_0x3b06a9[_0x53de33(0x5b1,0x516)]),_0x5c0ed4['openclaw'+_0x53120d(_0x20a570._0x284020,-_0x20a570._0x5f1bdd)]==='token'&&!_0x5c0ed4[_0x53120d(0x322,_0x20a570._0x397918)+_0x53120d(0x83,_0x20a570._0x2e7fa5)+'nd']&&_0x398f49[_0x53120d(_0x20a570._0x3232a2,0x2ff)]('OpenClaw'+'\x20gateway'+_0x53120d(0x285,0x13b)+'s\x20missin'+'g.'),_0x5c0ed4[_0x53de33(0x6be,_0x20a570._0x6b839f)+_0x53120d(-0x15c,-0x31)]===_0x3b06a9[_0x53de33(0x755,_0x20a570._0x25e2ee)]&&!_0x5c0ed4[_0x53de33(0x768,0x6e8)+_0x53de33(_0x20a570._0x4c7b39,_0x20a570._0x3f4336)+'Found']&&_0x398f49[_0x53120d(0x1ae,0x2ff)](_0x53120d(0x4e5,_0x20a570._0x32394a)+_0x53de33(0x693,0x4ac)+_0x53de33(0x6c1,_0x20a570._0x4524f4)+'d\x20is\x20mis'+'sing.'),!_0x5c0ed4[_0x53de33(_0x20a570._0x20c84c,_0x20a570._0x10bd1e)+'ewayReac'+'hable']&&_0x398f49[_0x53de33(_0x20a570._0x534160,_0x20a570._0x3eddce)](_0x53de33(0x614,_0x20a570._0xa1a5f8)+_0x53de33(_0x20a570._0x25cc97,0x555)+_0x53de33(_0x20a570._0x3e7bd6,_0x20a570._0x4b14b3)+_0x53120d(_0x20a570._0x18e2e0,_0x20a570._0x15f6d9)+_0x53de33(0x84d,0x743)+_0x53de33(0x440,0x5c8)+_0x5c0ed4['localGat'+_0x53120d(_0x20a570._0x2399fb,0x1b9)]+'.'),_0x398f49;}function readLogFile(_0x52a076){const _0x121569={_0x56bfdc:0x34,_0x1a0d83:0x1ac,_0x44edee:0xd1,_0x20fa41:0x7b,_0x5207a9:0x151,_0x1367b2:0x14e,_0x431850:0x21f},_0x479700={_0x5b0193:0x9d},_0x31dc53={_0x1d19e5:0x132},_0x79b675={};_0x79b675[_0x41afa9(_0x121569._0x56bfdc,_0x121569._0x1a0d83)]=_0x2b7f29(_0x121569._0x44edee,_0x121569._0x20fa41);function _0x41afa9(_0x15a25e,_0x13735c){return _0x11b7ab(_0x13735c,_0x15a25e- -_0x31dc53._0x1d19e5);}const _0x53942e=_0x79b675;function _0x2b7f29(_0x68661a,_0x363d53){return _0x11b7ab(_0x68661a,_0x363d53- -_0x479700._0x5b0193);}try{const _0x1a83ac=_0x365046(_0x52a076,_0x53942e[_0x41afa9(_0x121569._0x56bfdc,-_0x121569._0x5207a9)]);return _0x1a83ac[_0x41afa9(0x59,_0x121569._0x1367b2)](/\r?\n/)[_0x41afa9(-0x1f7,-_0x121569._0x431850)](Boolean)['map'](_0x127ffd=>({'raw':_0x127ffd,'ts':parseTimestamp(_0x127ffd)}));}catch{return[];}}function parseTimestamp(_0x384af4){const _0x31f7a9={_0x281181:0x299,_0x507627:0x3c7,_0x59c771:0x54b,_0x1489bb:0x324},_0x9f6a46={_0xd4d451:0x5ad},_0x4aff37={'JsUdl':function(_0x3c708b,_0x17a2b2){return _0x3c708b(_0x17a2b2);}},_0x12f088=_0x384af4[_0x4f5abf(0x329,_0x31f7a9._0x281181)](/^\[(\d{13})\]\s/);if(!_0x12f088)return null;function _0x4f5abf(_0x325d59,_0x13d596){return _0x6eb3(_0x325d59,_0x13d596-0x2ae);}function _0x51a0ad(_0x331ad5,_0x564bfd){return _0x6eb3(_0x564bfd,_0x331ad5-_0x9f6a46._0xd4d451);}const _0x4f1733=_0x4aff37[_0x4f5abf(_0x31f7a9._0x507627,_0x31f7a9._0x59c771)](Number,_0x12f088[0x1]);return Number[_0x4f5abf(_0x31f7a9._0x1489bb,0x3e7)](_0x4f1733)?_0x4f1733:null;}function clampLines(_0x3b8b00){const _0x282cd4={_0x4c7ba5:0x31a,_0x1c403e:0x72,_0x398d42:0x1b2},_0xb8d25e={_0x147b4d:0x178};function _0x23b168(_0x4e58a5,_0x5895a5){return _0x11b7ab(_0x4e58a5,_0x5895a5- -0x7);}if(!Number[_0x23b168(_0x282cd4._0x4c7ba5,0x174)](_0x3b8b00))return 0xc8;function _0x553840(_0xc64380,_0x4ce05e){return _0x11b7ab(_0x4ce05e,_0xc64380- -_0xb8d25e._0x147b4d);}return Math[_0x553840(-_0x282cd4._0x1c403e,-0x148)](0x1,Math[_0x553840(-0x110,-_0x282cd4._0x398d42)](0x7d0,Math['floor'](_0x3b8b00)));}async function checkGatewayReachable(_0x170bf9){const _0x25cdc5={_0x5af2aa:0x681,_0x1b4a82:0x6b5,_0xf2f9d0:0x5a5,_0x1aab8a:0x568,_0x270b26:0x12,_0x12a43a:0x158,_0x1a5adb:0x1e5,_0x386db7:0x297},_0x457cdd={_0x343fe8:0x5fe,_0x155a2c:0xa1,_0x411f12:0x6d7,_0x9f2cfa:0x705},_0x4eb4b8={_0x3cc5b0:0x213},_0x4bfa42={_0x22e367:0x494,_0x51bfb9:0x4a0,_0x295fc6:0x469},_0x5e6f86={_0x162401:0x4f8};function _0x9bb85c(_0xc3b09d,_0xcb35c3){return _0x6eb3(_0xc3b09d,_0xcb35c3-_0x5e6f86._0x162401);}function _0x94cb64(_0x8ce948,_0x31c11d){return _0x6eb3(_0x31c11d,_0x8ce948- -0x131);}const _0x294972={'ISdZg':function(_0x136cca){return _0x136cca();},'vkBfO':function(_0x49ecb9,_0x5e94c2){return _0x49ecb9(_0x5e94c2);},'SNREB':'timeout'};try{const _0x390e70=new URL(_0x170bf9),_0x5a9297=_0x390e70[_0x9bb85c(_0x25cdc5._0x5af2aa,_0x25cdc5._0x1b4a82)]||_0x9bb85c(_0x25cdc5._0xf2f9d0,_0x25cdc5._0x1aab8a)+'1',_0x593284=_0x390e70[_0x94cb64(-_0x25cdc5._0x270b26,-_0x25cdc5._0x12a43a)]?Number(_0x390e70[_0x94cb64(-0x12,0x4e)]):_0x390e70[_0x94cb64(-_0x25cdc5._0x1a5adb,-_0x25cdc5._0x386db7)]==='wss:'?0x1bb:0x50;return await new Promise((_0x214144,_0x45df04)=>{const _0x5e71d1={_0x549374:0x129},_0x29d986=new Socket();_0x29d986[_0x3d158a(0x168,0x1ee)+'ut'](0x384),_0x29d986['once'](_0x255d9d(0x6d7,0x6c3),()=>{function _0x21f34c(_0x3150c2,_0x15c5e8){return _0x3d158a(_0x15c5e8,_0x3150c2-0x4e7);}function _0x43b7e2(_0x2a2e59,_0x136ce5){return _0x3d158a(_0x2a2e59,_0x136ce5-0x5b8);}_0x29d986[_0x21f34c(_0x4bfa42._0x22e367,0x342)](),_0x294972[_0x43b7e2(_0x4bfa42._0x51bfb9,_0x4bfa42._0x295fc6)](_0x214144);});function _0x255d9d(_0x3b210c,_0x5c3b1f){return _0x94cb64(_0x3b210c-0x5f8,_0x5c3b1f);}function _0x3d158a(_0x5b002b,_0x4141a8){return _0x94cb64(_0x4141a8-_0x5e71d1._0x549374,_0x5b002b);}_0x29d986[_0x255d9d(_0x457cdd._0x343fe8,0x56e)]('timeout',()=>{_0x29d986[_0x5d718c(0x316,0x473)]();function _0x3d4a91(_0x4afb1f,_0x2e31e8){return _0x3d158a(_0x4afb1f,_0x2e31e8-0x116);}function _0x5d718c(_0x480250,_0xd4a116){return _0x3d158a(_0x480250,_0xd4a116-0x4c6);}_0x294972[_0x3d4a91(_0x4eb4b8._0x3cc5b0,0xac)](_0x45df04,new Error(_0x294972['SNREB']));}),_0x29d986[_0x255d9d(_0x457cdd._0x343fe8,0x60e)](_0x3d158a(-0xd1,-_0x457cdd._0x155a2c),_0x440b3c=>{_0x29d986[_0x1b96ba(0x228,0x28f)]();function _0x1b96ba(_0x311bf9,_0xc26245){return _0x3d158a(_0x311bf9,_0xc26245-0x2e2);}_0x45df04(_0x440b3c);}),_0x29d986[_0x255d9d(_0x457cdd._0x411f12,_0x457cdd._0x9f2cfa)](_0x593284,_0x5a9297);}),!![];}catch{return![];}}function parseLookbackToMs(_0x3b99f0){const _0x53b410={_0x4d0504:0x402,_0x387909:0xb9,_0x509537:0x97,_0xfc6775:0x1c8,_0xe385e5:0x1bb,_0x278850:0xad,_0x56a9a1:0xc3,_0x327008:0x9d,_0x1e2f04:0xae,_0x342598:0x219,_0x21499f:0x68,_0x221754:0x20b},_0x14707e={_0x46b90f:0x7d},_0x5b58e4={};_0x5b58e4[_0x18b5ba(0x256,_0x53b410._0x4d0504)]=function(_0x5ca719,_0x4fe671){return _0x5ca719===_0x4fe671;},_0x5b58e4[_0x3b3bd3(0x1a6,0x12c)]=function(_0x53f20f,_0x53c1b6){return _0x53f20f===_0x53c1b6;},_0x5b58e4[_0x3b3bd3(-0x68,-0xc4)]=function(_0x42e8ef,_0x597a19){return _0x42e8ef*_0x597a19;};const _0x98f27e=_0x5b58e4,_0x5eb7be=_0x3b99f0?.['trim']();if(!_0x5eb7be)return null;const _0x21cf22=_0x5eb7be['match'](/^(\d+)(ms|s|m|h|d)$/i);if(!_0x21cf22)throw new Error(_0x18b5ba(_0x53b410._0x387909,-0x4d)+'--last\x20v'+_0x3b3bd3(0x272,0x3af)+_0x5eb7be+(_0x18b5ba(-0x71,-0x26f)+_0x18b5ba(-_0x53b410._0x509537,-_0x53b410._0xfc6775)+_0x3b3bd3(0x42,-_0x53b410._0xe385e5)+_0x3b3bd3(-_0x53b410._0x278850,_0x53b410._0x56a9a1)+_0x3b3bd3(0x178,_0x53b410._0x327008)));function _0x18b5ba(_0x2dcaf8,_0x13608c){return _0x11b7ab(_0x13608c,_0x2dcaf8- -0x1);}const _0x2dc636=Number(_0x21cf22[0x1]);function _0x3b3bd3(_0x1eaebb,_0x54e608){return _0x11b7ab(_0x54e608,_0x1eaebb- -_0x14707e._0x46b90f);}const _0x5956b4=_0x21cf22[0x2][_0x18b5ba(_0x53b410._0x1e2f04,0x2b6)+_0x3b3bd3(0x223,_0x53b410._0x342598)](),_0x4ba285=_0x5956b4==='ms'?0x1:_0x98f27e['BYfay'](_0x5956b4,'s')?0x3e8:_0x98f27e['VffYQ'](_0x5956b4,'m')?0xea60:_0x5956b4==='h'?0x36ee80:0x5265c00;return _0x98f27e[_0x3b3bd3(-_0x53b410._0x21499f,-_0x53b410._0x221754)](_0x2dc636,_0x4ba285);}import{readFileSync as _0x3cde9d}from'fs';import{dirname as _0x2d8c2e,resolve}from'path';import{fileURLToPath}from'url';function readCliVersion(){const _0x216001={_0x595b6c:0x5bf,_0x63bbef:0x1ac,_0x173d2a:0x45c,_0x2d5d2d:0x450,_0x4fa236:0x411},_0x3cdee3={_0x576f4b:0x3fa},_0x1018b3={_0x1c31eb:0x6},_0x285aa0={'uxdff':function(_0x42c5dc,_0x592049,_0x564b59){return _0x42c5dc(_0x592049,_0x564b59);}};function _0x56551d(_0x2f378f,_0x1da5c2){return _0x11b7ab(_0x2f378f,_0x1da5c2-_0x1018b3._0x1c31eb);}const _0x62832=_0x2d8c2e(fileURLToPath(import.meta.url)),_0x3610d5=_0x285aa0[_0x4073fe(_0x216001._0x595b6c,0x5ea)](resolve,_0x62832,_0x4073fe(0x840,0x6fa)+'ge.json'),_0x4c74e6=_0x3cde9d(_0x3610d5,_0x56551d(_0x216001._0x63bbef,0x11e)),_0x2fa16a=JSON[_0x4073fe(0x63e,_0x216001._0x173d2a)](_0x4c74e6);function _0x4073fe(_0x19497d,_0x4e1b30){return _0x11b7ab(_0x19497d,_0x4e1b30-_0x3cdee3._0x576f4b);}return _0x2fa16a[_0x4073fe(_0x216001._0x2d5d2d,_0x216001._0x4fa236)]??'unknown';}function buildPairingJson(_0x558b29,_0x3c1002,_0x419fe3,_0x4f3b6b){const _0x30fa3a={_0x49b707:0x3dc,_0x3e956d:0x113,_0x4dd84f:0x33,_0xed5a09:0x9,_0x46bf6f:0x1d3,_0x26e514:0x2a1,_0x931926:0x129,_0x13512c:0xcd,_0xeb8e8c:0xfb,_0xf86613:0x15d,_0x201921:0x247,_0xddc854:0x148,_0x276969:0x1c1,_0x20758e:0xf9,_0x30c328:0x1a1,_0x5a1f25:0x2e,_0x4a2494:0x1,_0x552a2a:0x1fb,_0x2b9aac:0x1d,_0x447fc:0x55,_0x45cf03:0x25b,_0x459e2b:0x15c,_0x29a0a1:0x38,_0x12fec2:0x54,_0x198b31:0x90,_0x675bc6:0x188,_0x165c4b:0x250,_0x2e4c70:0x1b8,_0x173735:0x208,_0x2220b5:0xe5,_0x401641:0x238,_0xd4229e:0x245},_0x2a6b7d={};_0x2a6b7d[_0xefacd7(_0x30fa3a._0x49b707,0x21f)+'d']=_0x419fe3['installe'+'d'],_0x2a6b7d[_0xefacd7(-_0x30fa3a._0x3e956d,_0x30fa3a._0x4dd84f)]=_0x419fe3[_0xefacd7(0xa1,_0x30fa3a._0x4dd84f)],_0x2a6b7d[_0xefacd7(0x42,-_0x30fa3a._0xed5a09)]=_0x419fe3[_0xefacd7(0x177,-0x9)];function _0x238c24(_0x219130,_0x198837){return _0x11b7ab(_0x219130,_0x198837- -0x19c);}_0x2a6b7d[_0xefacd7(_0x30fa3a._0x46bf6f,0x2a8)+_0x238c24(_0x30fa3a._0x26e514,_0x30fa3a._0x931926)]=_0x419fe3[_0xefacd7(0x200,0x2a8)+_0x238c24(_0x30fa3a._0x13512c,0x129)],_0x2a6b7d[_0xefacd7(0x1db,0x307)]=_0x419fe3[_0x238c24(_0x30fa3a._0xeb8e8c,_0x30fa3a._0xf86613)],_0x2a6b7d[_0x238c24(-_0x30fa3a._0x201921,-_0x30fa3a._0xddc854)+_0x238c24(-0xb1,-0x1a2)]=_0x419fe3[_0xefacd7(-0x14c,0x62)+'Path'],_0x2a6b7d[_0xefacd7(-_0x30fa3a._0x276969,-_0x30fa3a._0x20758e)]=_0x419fe3[_0xefacd7(-0x85,-0xf9)];const _0x303eb1={};_0x303eb1['ok']=!![],_0x303eb1[_0xefacd7(_0x30fa3a._0x30c328,-0x2e)]=_0x558b29[_0xefacd7(0xfe,-_0x30fa3a._0x5a1f25)];function _0xefacd7(_0x2724d6,_0x5b2150){return _0x11b7ab(_0x2724d6,_0x5b2150-0xe);}return _0x303eb1['message']=_0x4f3b6b,_0x303eb1['gatewayI'+'d']=_0x558b29[_0x238c24(_0x30fa3a._0x4a2494,-0x156)][_0xefacd7(0x2df,_0x30fa3a._0x552a2a)+'d'],_0x303eb1['relayUrl']=_0x558b29[_0xefacd7(-_0x30fa3a._0x2b9aac,0x54)][_0x238c24(-0x3ae,-0x28b)],_0x303eb1[_0xefacd7(_0x30fa3a._0x447fc,0x4e)+'l']=_0x558b29['config'][_0x238c24(-_0x30fa3a._0x45cf03,-_0x30fa3a._0x459e2b)+'l'],_0x303eb1[_0xefacd7(0x17f,_0x30fa3a._0x29a0a1)+'Id']=_0x558b29[_0xefacd7(-0xf3,_0x30fa3a._0x12fec2)]['instance'+'Id'],_0x303eb1[_0x238c24(-_0x30fa3a._0x198b31,-_0x30fa3a._0x675bc6)+'de']=_0x558b29[_0x238c24(-0x2f1,-0x188)+'de'],_0x303eb1[_0x238c24(-0xb7,-0x188)+_0xefacd7(_0x30fa3a._0x165c4b,_0x30fa3a._0x2e4c70)+_0x238c24(-0x27d,-_0x30fa3a._0x173735)]=_0x558b29[_0x238c24(-0x25,-_0x30fa3a._0x675bc6)+'deExpire'+_0x238c24(-0x133,-0x208)],_0x303eb1[_0xefacd7(_0x30fa3a._0x2220b5,0x1ac)+_0xefacd7(_0x30fa3a._0x401641,0x2d3)]=_0x3c1002,_0x303eb1[_0x238c24(-_0x30fa3a._0xd4229e,-0xb8)]=_0x2a6b7d,_0x303eb1;}import{mkdirSync as _0x3abe96,writeFileSync as _0x2d9822}from'fs';function _0x39fb(){const _0x5735ef=['t3DRshG','u2jKs2i','zhrKiJ4kpha','B25Uzwn0','zuvHvfa','ANnVBG','lxnLCNzPy2u','BM5Ly3qGzhi','zfHJCe0','CNvU','ywnOywjSzsa','Ahr0Chm6lY8','Dw5UAw5N','BNvTyMvY','zYbWyxrOoIa','ihvUy2HHBMC','ls1LCNjVCNm','C2vHCMnOuge','CMvNAxn0zxi','CNnZBfy','BwfW','zxj2AwnLige','Axn0lteUmc4','jMX0oW','pgTLEt5tDge','DwfSBhKU','D2fZig5VDca','jNf1B3q7','DwvZDcbWzw4','BgKTzxjYB3i','mZGYotyZnvjrAwjxqW','z2f0zxDHEuK','DvPlsMm','wKTmrMy','DxHKzMy','zfn6r2q','DcbHCha6cG','DgvK','ifSTlwzVCMm','B3iGmwqU','qNjPzgDLige','zevYCM9Yuge','zu9dDgO','DMLJzsbPBNm','pc9ZDhjPBMC','sxrZrvi','C3rVChbLza','BgXDcLDHBNq','C2uGy2fUy2u','Ag9ZDg5HBwu','BwuGBM90igy','ANbIr3y','u3rHCNrPBMC','yNjPzgDLlwm','ls1QC29Uxq','terHEuG','C3rYAw5NAwy','qvripsi','uMvTB3zLzca','C2LVBJ0Ims4','igj1DcbNyxq','wvvRBuu','A2LUza','zM9Yy2u','ihnLCNzPy2u','CLnfuKW','rxjYB3iGBg8','Aw5ZDgfSBgu','ntGWww1VA21e','y3jLyxrLzee','Eu9Wzw4','Dg9Rzw4','vhP2tNC','y2XPzw50x2m','zgv2AwnLtMe','y29UBMvJDc4','AgfUzhnOywS','zcbIywnRz3i','ruL5zgu','ig9Rpq','zxrYEurLBge','pGOGidXRzxK','A2v0','icbLEgvJig4','y2uGCMvNAxm','vMzMwve','C2vUzfrVr2e','z0jcBe8','y29UzMLNrM8','Dgv3yxK','BJOG','DwvZDcbYzxm','zxnOigzHAwW','CIb1C2uGygm','BMqGlxyGBM8','DcbKzw1HBMq','y2XLyxjuAw0','zsbWywLYAw4','BM90ihbHAxi','yKTmAuG','x1bbu1nxt1i','rxHWAxjLCZO','C3nHz2vZ','CM9YC10GwY0','u0Dls20','BNrYB2WGzxy','C2v0vgLTzw8','Cgzir0S','Ag90','lJaUmc4XoJe','zw47igf3ywK','zcbXDwv1zwq','wY0TANnVBL0','BhDNuKS','C29U','CMvN','tK9ux1bbsvi','CMvHC29Upq','B3jKks4','CxvLC3q','ihnPBMnLr2e','Au1pC0W','ig1VzguGDg8','uMvZDgfYDgu','u2vYDMLJzv0','BgfZDfnLzw4','CMvZ','BNbxA3i','u2vYDMLJztO','Bwu9','zxHLy1bHDgG','zxjZAw9Uxfi','y29UBMvJDa','zuTsA24','C3rVCeHLyxi','DgfSBgvKigi','BMC+','qLLMyxK','CxvLC3rjzd0','Aw1Hz2uVCg4','B3vUDf96zxi','DhjSk0mGDg8','ig1VCMuGzgu','Bgf3A2v0ihi','DgvYpw5LDhC','y2XPzw50x2q','rhvSCMq','ugDQrha','vw5HyMXLihq','yxv0Ae1Vzgu','CMLUzYbJB2q','zxHwB3a','BgLLBNrezw0','Dw5PBNn0ywW','C2v0','zw1HBMrFCMu','CNzPy2uGAw4','zw5Nzq','Bg9NCYbBls0','Es11CMW','DxbKyxrLzee','ienmssbZzxi','Cgf0AdOG','zwXHEq','ChvZAa','icaGidXZDhi','q2XHD2TLDei','igvYCM9Ypq','zw50rgvTyw4','Cez2uMS','A2LSBa','z2f0zxDHEvi','zwXVywq','BwfYA0rLDMK','yurmtwK','vxLkq3u','Dgv3yxLdB24','AxmGuviGy28','w3bHAxiTCMu','Bgf1BMnOywC','Et5mywjLBdW','Bgf5q29UDhi','teHdre4','qvriiIbDoYa','Dhj1zq','r2f0zxDHEsa','Et4kica8C3q','yxjNzxqkcLS','Dd4k','y29UzMLNig4','y1n0yxj0pq','icH0B2TLBIa','AwyGwYaTEca','ihnPBMnLq2W','y2XVC2vKoIa','q29UzMLNrM8','ugfPCMLUzYa','CMvSyxKGy2W','EsbPzIb5B3u','wgjRu0K','sciGCNvUic0','zMX1C2Hqzw4','EgDKwNi','CgvUtxm9','C2vYDMLJzva','DMfTr0m','A3nIA3i','CMvJB25Uzwm','AfDtuw4','phbHDgG+xsa','yxnL','CNzLCI4','zw5ZDxjLr2e','B2jZzxj2zum','EwjZu3a','B25SAw5LlNq','CMvHy2HHyMW','AwyGy29TBwe','B3iGCgfZC3C','zhKGC2nOzwq','yxbZAg90','lw5LDW','C2GGy2HHBgW','CgvU','DejHC2vezwW','A2LUz0rPCMu','tg9JywWGt3a','zgv2AwnLswq','CMvZzxq','lM9Wzw5JBge','C2uGy2XPzw4','B25qzw5KAw4','zNjHBwuG','CIbWyxnZD28','uKvrvuLsruq','z2f0zxDHEuG','jMfTCdS','tM8GBwf0y2G','t3bLBKnSyxC','C2vUza','CMvXDwvZDeK','w2nSyxDRzxq','ls11C2vY','y29UDhjVBf8','D2f5uMvXDwu','z2f0zxDHEum','AgfUzgXLuMu','yxrO','lMnSyxDRzxq','l0rurcbqteK','vMvYC2LVBJO','ruPqDwS','Aw5Jzq','BfDyv00','DgfYDdOG','y2XHD2TLDca','CMvWBgfJzue','iIrot0rfx1a','AxnJB25Uzwm','Be1Z','t1bftKnmqvC','qNjPzgDLigK','ls1Zzxj2Awm','zMLNDxjLzcW','yMHLAMK','mtmXq2XLALDk','D3m6lY8','BM9VCa','jJe7ihrOzw4','zgf0yq','wwzXtMW','CMv0','zunSB3nL','sNnvzgW','ywrK','zgv0ywnOzwq','tMfTztOG','nhWW','cLnJyw4GDgG','iurpq1rzueu','C3rHDhvZ','iYeVyMLUl3m','yNjPzgDLlxm','C29Tzq','y29UBMvJDfi','vgnHu2q','DMLJzsbMB3i','DgHLBG','D2LKDgG','ywX1zsaI','CvH6BLm','zgv2AwnLlNa','DgLTzwqGB3u','EwXoELq','yw1L','Dd4kica8A2u','yxrLD2f5twu','BxbSzqPfEgu','uviGAw1Hz2u','Bg9Nugf0Aa','BgfZDca8mM0','CNrIzwf0','zw5HyMXL','yxbWBgLJyxq','zxHPC3rPBMC','B2nRzxq','lI4VCgfJA2e','C3LZDgvTzc0','y2XPzw50rgu','lIbsDw4GiMm','tg9HzdWVA2u','zgLZy29UBMu','r1bwtwK','lMXVzW','tvzus2e','DgvKqxrnCW','Aw5Nr2f0zxC','zgv0ywLSCW','CgLK','z2f0zxDHEvm','svnKwMC','qxv0BY1PBNm','zwrcEt1Kzwy','ignVDw50pq','zxHPDenVzgu','u1fyvxa','BxrRy2S','D2LUmZi','C29YDa','nMrVy1nQsW','Ewj4AMy','Dg1cD0u','zcWGyNv0ihm','y29Uy2f0','Ac5TB2rLigK','CMvMCMvZAc0','Bw9Kzq','y2XPzw50q28','y29KzsbBls0','zg9JDg9Y','ywrKugvUzgK','ls1Uyw1L','CMvSyxLvCMW','CgvUzgLUz0C','q3vYCMvUDfy','DgvKihbSyxq','Aw9Ul2PZB24','CNvUlxjLz2K','swq9','ExjZEg8','ihf1zxvLzd0','zwXHChnLzfm','ls1Zzxj2zxi','qufnAfC','yxLnCW','C2vYDMLJzvi','BYbYzxnVBhy','igHHCYbIB3q','vgjPB0u','uhbWu1u','tw9IAwXLiem','zgLUzYbYzxe','zwHuzhC','ndu4BxbiC3rN','rxPVv2i','vvjmoIa','rujntxi','tLjIzwS','tLzisKq','A2vtDgfYDgu','wKX3CfG','lNnLCNzPy2u','tw1Urva','qNrWwfG','zwnVBM5Ly3q','B3bLBG','DgvYBwLUyxq','BMvJDgvK','CMvWBgfJzq','ls1NyxrLD2e','Eu1Mwhm','CMvSyxLtzwm','q2XHD2TLDca','Et4kica8Dhi','zMLSDgvY','zfnKsxy','rMXuyMy','wfDlugi','B2jQzwn0','C2uGywXYzwe','igDHDgv3yxK','qxv0Ae1Vzgu','yxbWBguUy28','ze1Zpq','zxzLBNqGBMe','yMLUyxj5','Cg9UzW','CgfPCG','CNvUDgLTzsa','zxjZ','CNvUBMLUzZO','B21WBgv0zsa','Dgv3yxLjzgW','BgKUANnVBG','s1fuy1y','yxj0','lMfP','rxbiB2W','iejYAwrNzsa','Dg9eyxrHvvi','ywXSzwq','uNH2DeW','ruPrq2O','yu5dBhu','CMvX','BKnSyxCGChi','Cgf0AevUDG','l3yXl3bHAxi','zw1WDa','Bg9JywXhyxq','CMLWDcbWyxq','zg93BG','C2vYDMvYidW','v2LUzg93C1W','Cen1zKy','B24U','Cgf0Ag5HBwu','zM91BMqGDw4','zgLUz0DHDgu','BM90igLUC3q','BwvKAwe','ywX1zxmGBgK','B25Uzwn0zwq','mtu4otq5A2ThrNzl','pLbYB2DYyw0','z2f0zxDHEv8','vhbYrLa','y29Kzq','BwLSEq','CMLKz2vdBgK','B3bWzwqGywy','BgvKihjLyxm','zwnHDxnLigW','D3PtwxG','pL0GwY0TBgK','z2f0zxDHEva','Bgf5twvZC2e','mtaXnZG2odzrD1vRrhC','yxbWBhK','BhjKreK','zxnVBhzLza','BLDyuuC','ALbHthu','CMvSyxKGzgK','B25mB2C','EuffDuy','CgLUzW','z2f0zxDHEq','C3rYAw5N','seTdvvXtB2y','C2fNzq','y3jVC29MDfW','EufJDgL2Axq','igjYAwrNzsa','r0rXBwK','B25Uzwn0Aw4','BM9KzvbHDgG','ChjVDg9JB2W','BhjLywr5iha','iI4GvxnLihy','DwuVpGOGidW','vhD3AeG','CMDurvK','C0f0','CMvSyxKGAgu','uMvZDgfYDfm','CMvZigLKpq','yLvwCgi','yxbisfC','C2nYAxb0uge','DxnLCG','ywLYzwqUifi','yw5KC2HHA2u','CLzQCMe','D2f5ihjLB3a','AgfUzgXLr2e','CM9Wzxj0EuW','t1bpD3C','CMvSyxKGCMu','t0v4yum','DxPwy1a','BwnrExK','zNjVBq','txHqwNm','zxjYB3i','BMqGC2vYDMK','swzUwwW','zcbKzwXHEu0','CMqGyMvMB3i','Aw5N','BwfPBG','C2LUy2vdBgK','D2TLDcbKB2m','z2f0zxDHEvu','igXVywqGDgG','wKHYruK','zgvJAxnPB24','suq6ia','DNforey','zhD4s0O','zg9JDg9YifS','v2XwDuG','tK1Tyu0','zgXLq2XVC2u','BM5Ly3rLzca','rI04iJ8+cJW','zM9YD2fYze8','zxjYB3i6ia','AwrLBNrPDhK','BMv0D29YAY0','C2vHCMnO','ywn0Aw9U','Bgf1BMnOy3q','y29UzMLNoIa','B3b0Aw9UCW','id4MmG','C3LZDgvTza','B3jRlw9UBgK','CMvJDxjZAxy','vhHRtwq','AxjPBMCU','qxf1vKe','je5prevFuee','mM0SidfOlca','ihbHC3n3B3i','ChbLBMq6','ywLYuMvXDwu','zxzLBNq','EurKChq','twvKAwfeAxi','DwvZDa','lw5HBwuGpgq','x0DbvevxqvK','Aw5JBhvKzuu','Dg9YycbMB3i','AcbHigrPzMy','swfbC1C','q29UzMLNoIa','yxLnzxnZywC','DMTczK8','CxvLC3rDihi','AM9PBG','vgLTzxi','zxjLBNqGC2u','qxrnCW','u3rVChbLzca','BNrFzgLZy28','BvbOwM0','Bwv0Ag9K','zw5dBgf3ieC','s01Avxu','EMTYzha','BgLZDa','ywLYic0TzM8','l3jLz2LZDgu','ignVBMzPzYa','ugvAz0K','Axnoyu4','CMfUzg9T','Aw5ZDc0','y2LPwgW','uKW6ia','zgvZDhjVEq','DMjeELK','C2uGC2TPCha','ugf0Aa','A2jmDeS','zxHPDcaXmJC','r2f0zxDHEu8','tK9erv9qqvq','qvnXCKC','ls1XCI1MAwW','CuvSwKi','Aw5ZDgfSBa','BgfZDfjLBge','BMDqywLYuMu','B3nRrLa','EwfYqLm','ig5HBwu9','BMvJDgLUzW','CMvHzhLtDge','igLUDgvUDgK','ig1PC3nPBMC','y3rLzcbJB2q','lNbUzW','CMvSyxLbDhq','qxjNDw1LBNq','Dgv4Da','zw50pwnSAwu','zxrcCMLKz2u','BK1Zpq','ywnJzxnZq28','zLjSBg0','wMPotei','DMvYC2LVBG','lvrfuK0','DuHiBfe','vMvVy0C','CgXHDgzVCM0','BMzPzYbWyxq','zwH0rwC','y2XVC2vhyxq','DvL5y2u','yw5KihbHC3m','zxK+uNvUqxq','C2vYDMvY','zuTyBuO','ihn0B3aU','CNvUBMLUzW','ChvZAfbLBMq','B3vUDa','ihjLDhvYBMu','q0Xbv0rct1q','Aw5ZDgfUy2u','BgfZDevYCM8','ugfPCMvKoIa','Bwf0y2G','vujmsumGiI0','ifjLC3rHCNq','yxbWCM92zva','q1fXzKK','yxjNDG','CeLuvMS','CM91BMqGC2u','AcbMB3iGC2u','uKvhx1nA','y2XVC2u','BNn0ywXSzwq','ignSAwvUDhm','jMD0oW','zgvSzxrL','CMvXDwvZDgu','z2vZ','AM1NwgK','ihrVA2vUoIa','C2vYDMvYvxi','ruvRCMe','Dg9Y','odC4oq','C3rHCNrLzca','tgf1BMnOqwC','y29UzMLN','ihvYBd0','vhrZvKW','zsbdteKGC2m','AxnszwXHEu8','yM1qDvK','ihj1BNrPBwu','ugfZC3DVCMq','v2fotMK','CMvXig1LDgG','BMrnCZ0','AwrSzsbJBg8','A2v5pKTLzxa','CMvZDgfYDa','zxjYB3jmB2C','Duvht2C','zw50pq','B249','CfnsBhe','qvHbsue','lJe6mtG3odK','Dw5SB2fK','ww91ignHBIa','yxqG','mJaW','CMvJzw50','y29UC3rYDwm','yw50ihrVigi','CgfYC2u','qwXPDMu8l2S','tNHezMO','cLr5Cgu9C2K','BgLUDxG','CgvUzgLUz1a','BwLU','BgKUBg9N','BwLZC2LUzW','B3vUzcbZzxi','y2f0y2G','y2fUy2vSr2e','CYbUB3qGCMu','CxiTzMLSzsa','Dw5Yzwy','yxvUy2HLCI4','u093BKi','ygnSyxDRzxq','CNvUifSTlwC','C3rHCNrZv2K','AxqU','BgfIzwW','CMvQzwn0zwq','zguGCNvUDgK','BMvZB2e','yxK+cIaGpgS','BMqU','BgWIig9Yici','DhDHCMvCtwK','AcbNyxrLD2e','Bg9Hza','zgLZywjSzq','y3rPDMf0Aw8','Dwnqr1C','zxrYEvrPBwu','Cw1evvG','ls1UB3C','tdOG','u3rHCNrLza','AvvbEKy','ztOG','C3rKAw8','tKLSr2K','DfrPBwvY','cIaGpc9HCNi','AxnbCNjHEq','phvUA25VD24','BwfYA1bHAxi','zwm9mGPxB3i','ifbYzxnZiem','DMLJzsbYzxm','ihbHAxiIigy','BM93','D2LUzg93CY0','BMfTzq','AgfZr2f0zxC','DxbKyxrLu24','ugf0AdOG','ihrOzsbWywK','AwvUDerLBwe','AxncDwzMzxi','yxnZD29Yza','cGPBsw5ZDge','B3j0','Ahr0CdOVlW','yxj0yMvHDca','Aef3uey','Aw5JBhvKzxm','CMf3','DgGG','AxnjBNrLz2u','zwqGyMvJyxu','CMvSyxKGy28','tg9NihbHDgG','DgfSBgf0Aw8','igrPCJOG','ihrVA2vUigK','Dg9mB3DLCKm','CMLUzZ4','mJK4mtv3zMjVEMi','mti3lJaUmc4','ywnRz3jVDw4','BwvZC2fNzq','yxrLD2f5igK','B2TLBG','DgjLyxq','CMXrDuS','wxf0vLu','sw52ywXPzca','CMvXDwLYzwq','C2f0ywW','lNbSAxn0','wvnXuxO','A2uGmZbZlca','CxvLDwuGChu','AxnWBgf5tMe','Dgv3yxLnzxm','zcbZAw5Jzum','CLf1zxvLr2e','CNjVCKXVzW','tNLkC3y','C3rHBgXHDgK','y29KzsbYzwy','lY9bChbSzs8','ywKUy2XHD2S','ELzMBNe','yMfJA2DYB3u','uMvSyxKGvvi','C3rHCNrLzee','zxHWB3j0ifa','zM91BMq','cLn0yw5Kyxi','z2v0vgLTzq','Ag15Bwi','DxjSpL0GwY0','uMvSyxLszwm','CMvSyxLtB2m','A2u9','CZWVA2v5pGO','z2f0zxDHEvq','C3rHCNrPBMC','CMv1C2uGB3a','zxDHEsa','yNjPzgDLlq','Esb0B2TLBIa','pd94BwWGDMu','igj1DcbZDg8','Ag9ZDa','Dw5K','Aw5KzxHpzG','C2vYDMLJzq','BMuUDgfYz2u','igrLDMLJzuK','ifnLDcb0Agu','sK1Jqu4','BgvUz3rO','zgLZCgXHEu4','zM9YBsbMB3i','C25HChnOB3q','x19JBgf3A2u','ndmYzgrIzeLp','ktOG','vg9Rzw5gB3u','BMCUieXLzNq','AwrL','zw50CW','vgHPCYbICMK','r2f0zxDHEvi','l251BgWGmJ4','qMfJA2DYB3u','C3rZ','BM90ihjLywq','Dg9mB2nHBgu','B2zM','y291BNq','ls1MB3jJzq','C2vUzeDHDgu','DhjPBq','twXJvNO','rM91BMq','CMvXlq','CMvMCMvZAgu','y2jhEfy','zs5JBgK','Bwf4','CMvSyxKGzNi','z2f0zxDHEsa','D29YzcbJB24','z2v0','DaPxyw50CZ0','A3fftwW','u2vYDMvYifu','u3rYAw5N','zgvMyxvSDa','zxj2AwnLlwW','C2GGC2L6zt0','zMLUza','DhLWzq','CMvSyxKGzxi','rMHYrNa','zwqGka','B3nLzdOG','DxrMoa','CNzPy2uGDg8','AxnTyxrJAa','AwrSzsb3Axq','rvHiC3C','z2v0u25HChm','igHHBMrZAge','AefwrgS','DwXLzcbYzwe','t29Iugy','zMfSC2u','yxbWzw5KoG','pg5VBMu+','Ee9NqLi','w3n0yxr1C10','CM9Szq','uMvXDwvZDfi','yxLezw1HBMq','CxvLCNK','rLriweu','zxDHEvvYBa','AgvHCNrIzwe','AxzLihnVy2S','CgfZC3DVCMq','zxqUyNjPzgC','Eu1Z','Dgv3yxLpCgu','y29UBMvJDca','y29UBMvJDgu','ExbHC3mGDgG','Dw5ZDxbWB3i','CgfPCMvK','zwnOBYaIBM8','uwnrBvm','zsbKzwXHEsa','DwXLzcbKzwW','lZeYnY4WlJa','revKzw8','EwvZ','zxDHEs5HDxq','u2vYDMLJzsa','DfrPBwvVDxq','zxDHEq','u0Lhsu5u','t3bLBJ0','CMWGphDZoI8','BwfUzfn0yxi','A2DYDha','D2f5twvZC2e','zxHPDa','AcbUBYbHy3q','pLn0yw5Kyxi','yxbWCM92zwq','DgLUzYbMCMu','zxf1zxn0swq','ieLeoIa','yxr0zw1WDd0','u0nssvbux1a','B2rLiciKu0m','B3zL','AwDUB3jL','y2vZuMvJzw4','mxWYFdv8m3W','y2uGD2fZigK','zerLDMLJzxm','Axjszxf1zxm','rhnzvNO','zgfYD2LU','DgG8l2TLEt4','B2rLihjLzNi','C3rVCa','cLjLC3rHCNq','zxjLCxvPC2K','Cg9YDa','Dg9ju09tDhi','C3rHCNq','su11Eu8','AeDRu3e','sLrVyvy','DeLUDgvYDMe','zcbMB3iGzNi','tMnUze0','Dg9tDhjPBMC','uNvUBMLUzZO','wwDerwi','yxrLD2f5lxu','CgvUzgLUzW','C2XPy2u','zw50','zxqGAw5ZDge','tMHLyxu','zcbZzxj2Awm','zguGAw4GDgG','BIaIy2XHD2S','lwPZB25D','y29UDgvUDc0','Cgf5Bg9Hza','B25Jzq','AxmGC2fMzxq','AxngAw5PDgu','zgvUDgL0Esa','B3bLBMnSyxC','zwzYzxnOzwq','mZyXnZiWohbYrLbxDW','x1rps0vo','DxnLCM5HBwu','mtuYmta3mJnnyurtzfu','DMfSDwvZ','zxqGCMvHC28','BgLLBNq','yxLnCZ0','ChbLzc4GuMu','vvnhu2u','Dw50','A0zTENa','C3bSAxq','Bg9N','Bg9NCW','tKLcB1u','AdOG','mci+cJXKAwm','t1bftG','y2uGywXYzwe','C3LZDgvTy3q','ywLYlNjLAMu','tg9NoIa','zMX1C2GGCxu','yxv0Aa','zZOG','Aw5Nienmssa','AxnhyxrLD2e','B2q9','r2f0zxDHEtO','D2LUzg93C0G','CxjjBwfNzva','Ew5pt1G','u0Lhvevstq','BgLZDcb2zxi','C2vYDMLJzuK','DwvZDeLKpq','BgfZDe1Z','ienSyxDRzxq','B25tDgf0Dxm','zxjYB3jdB3i','ue9tva','l1bjra','zgvfEhbPCMu','BgLUzxm','C3rVCMvK','yw1Lia','CMfTCW','zgv2AwnLrMe','igzVCIbNyxq','AgfZ','AKXwuMm','BNHnsMy','C29Upq','BM5Ly3qGyxq','vezSv3O','CMvQzwn0uge','Dw5RBM93BG','ignVBMzPzZO','CMvTB3rLsxa','zguGpI9Kzxy','kYKRja','ihjLyxnVBJ0','CgfYyw1Z','zwqGy29Kzt0','zevYCM9Ypwe','C2vYDMvYlw0','sw5ZDgfUy2u','CgfPCMLUzYa','Agz2zMi','CMvSyxLdB24','zgfLBw9Ulxi','z25KwvG','ugfPCIbYzwC','D3nZoI8V','tvPWvg4','C2nOzwr1Bgu','C3rHCNrizwe','BwfYz2LU'];_0x39fb=function(){return _0x5735ef;};return _0x39fb();}import{dirname as _0x5e6fdf,isAbsolute,join as _0x29692c,resolve as _0x1f7ad5}from'path';import _0x18eb6a from'qrcode';var DEFAULT_QR_DIR=getOpenClawMediaDir();async function writePairingQrPng(_0x5868c7,_0x128bd1){const _0x17c42e={_0xe56e8d:0x2cb,_0x4fc6df:0x124,_0x22d69c:0x20e,_0x3532a1:0x317,_0x2a1251:0x4c4,_0x4f5a3e:0x3a9,_0x1f73f1:0x3cf,_0x35a70a:0x4e5,_0x12933c:0x393},_0x271643={_0x2b7d60:0x202};function _0x4754d0(_0x297a7b,_0x242924){return _0x11b7ab(_0x297a7b,_0x242924-0xa5);}const _0x38c0cc={'PppSU':function(_0x18af4d,_0xcf53d5,_0x1d440a){return _0x18af4d(_0xcf53d5,_0x1d440a);},'FhrFp':function(_0x510c1b,_0x34e07b){return _0x510c1b(_0x34e07b);}};function _0x3f67fa(_0x554ee6,_0x37719c){return _0x11b7ab(_0x37719c,_0x554ee6-_0x271643._0x2b7d60);}const _0x4f5c6=resolveQrOutputPath(_0x5868c7,_0x128bd1),_0x2cb74c={};_0x2cb74c[_0x3f67fa(0x1cd,_0x17c42e._0xe56e8d)+'e']=!![],_0x38c0cc[_0x3f67fa(_0x17c42e._0x4fc6df,_0x17c42e._0x22d69c)](_0x3abe96,_0x38c0cc[_0x3f67fa(_0x17c42e._0x3532a1,_0x17c42e._0x2a1251)](_0x5e6fdf,_0x4f5c6),_0x2cb74c);const _0x10a774={};_0x10a774[_0x4754d0(0x31,0x1b8)]=_0x4754d0(0x1a6,0x2fe)+'g',_0x10a774[_0x3f67fa(_0x17c42e._0x4f5a3e,0x397)+'rectionL'+'evel']='M',_0x10a774[_0x3f67fa(_0x17c42e._0x1f73f1,0x565)]=0x1,_0x10a774[_0x4754d0(_0x17c42e._0x35a70a,_0x17c42e._0x12933c)]=0x2d0;const _0x2a5846=await _0x18eb6a[_0x3f67fa(0x156,-0xb3)+'L'](_0x5868c7['qrPayloa'+'d'],_0x10a774),_0x2ca7d5=_0x2a5846[_0x4754d0(0x1b4,-0x26)](/^data:image\/png;base64,/,'');return _0x2d9822(_0x4f5c6,Buffer[_0x3f67fa(0x1a9,0x305)](_0x2ca7d5,'base64')),_0x4f5c6;}function resolveQrOutputPath(_0x54b201,_0xe8fd93){const _0x91baad={_0x1920be:0x3be,_0x616b50:0x35e,_0x4a9185:0x32b,_0x12b7e9:0x2a5,_0x5347ec:0x21e,_0x420a0b:0x216,_0x5d5a40:0x36},_0x55cebd={_0x30ff78:0x2a1};function _0x2945a7(_0x594253,_0x2bd5a9){return _0x6eb3(_0x594253,_0x2bd5a9-0x6b);}const _0x5bcd40=_0xe8fd93?.[_0x23d07a(_0x91baad._0x1920be,_0x91baad._0x616b50)]();function _0x23d07a(_0x298bc1,_0xa30955){return _0x6eb3(_0x298bc1,_0xa30955-_0x55cebd._0x30ff78);}if(_0x5bcd40)return isAbsolute(_0x5bcd40)?_0x5bcd40:_0x1f7ad5(_0x5bcd40);return _0x29692c(DEFAULT_QR_DIR,_0x54b201[_0x23d07a(_0x91baad._0x4a9185,_0x91baad._0x12b7e9)][_0x2945a7(_0x91baad._0x5347ec,_0x91baad._0x420a0b)+'d']+_0x2945a7(0x146,_0x91baad._0x5d5a40));}function decidePairServiceAction(_0x69a68e,_0x27a859){const _0x353051={_0x2a6548:0x2c9,_0x7dd363:0x169,_0x49fb23:0x626,_0x286572:0x2ec,_0x4a735a:0x109,_0x182426:0x389,_0x2c482f:0x31a},_0x4b930b={_0x382b63:0x2c7};function _0x287054(_0x5b3c8a,_0x4db896){return _0x11b7ab(_0x4db896,_0x5b3c8a-_0x4b930b._0x382b63);}const _0x9e80f6={};function _0x3f45d0(_0x4bd913,_0x1daf4b){return _0x11b7ab(_0x4bd913,_0x1daf4b-0x3c5);}_0x9e80f6['PgjDp']=_0x287054(_0x353051._0x2a6548,_0x353051._0x7dd363);const _0x1861b3=_0x9e80f6;if(!_0x27a859[_0x287054(0x4d8,0x596)+'d'])return _0x1861b3[_0x3f45d0(0x465,_0x353051._0x49fb23)];if(!_0x27a859[_0x287054(_0x353051._0x286572,_0x353051._0x4a735a)])return'restart';if(_0x69a68e[_0x3f45d0(0x44c,_0x353051._0x182426)]===_0x3f45d0(0x57e,0x5a5)+'ed')return _0x287054(_0x353051._0x2c482f,0x39c);return _0x287054(0x5a0,0x465);}async function main(){const _0x308e80={_0x5cb51d:0x465,_0x59918c:0x173,_0x35a866:0x263,_0x3a7eb7:0x150,_0x575b9f:0x1b3,_0xf5ab3b:0x199,_0x1fb352:0x35b,_0x2bd5f:0x234,_0x14e030:0x2f2,_0x4e560c:0x97,_0x44ea0e:0x3ea,_0x2e4fcf:0x200,_0x111e02:0x354,_0xbea019:0x1cd,_0xd8c1dc:0x2f6,_0x54d803:0x1ee,_0x2d29cb:0x4be,_0x3329c4:0x4d2,_0x4d72a0:0x295,_0x42fac4:0x12f,_0xde14f0:0x7,_0xda41eb:0x2bf,_0x308a3d:0x376,_0x3392de:0x120,_0x4a4c20:0x170,_0x26891b:0x73,_0xdcf053:0xea,_0x55b5d5:0x4b,_0x53865c:0x346,_0x187876:0x1bf,_0x1d835c:0x77,_0x48ad32:0x43c,_0x5c198a:0x590,_0x6160d5:0xd,_0xab6016:0x5d,_0x2f8237:0x20d,_0x4e358c:0x490,_0x377a3d:0x157,_0x56514e:0x17b,_0x1b8f20:0x158,_0x19cfcd:0x127,_0x347b21:0x164,_0x54b0ed:0x10d,_0x125887:0x24,_0x428539:0x35a,_0x492fe6:0x54f,_0x49d7d4:0x4c,_0x105e93:0x1df,_0x4e1844:0x213,_0x351a20:0x2a0,_0x9e0ae7:0x331,_0x1db904:0x18a,_0x410bf3:0x27d,_0xacc4b0:0x18a,_0xf31180:0x204,_0x2851ca:0x15f,_0x351a0d:0x1d2,_0xa8eb1d:0x23a,_0x55cb69:0x2f7,_0x355c7f:0x316,_0x451b98:0x469,_0x2cd9e6:0x215,_0x17161b:0x1d,_0x4b6e73:0x66,_0x3ef063:0x55a,_0x413153:0x536,_0x37eb74:0x68a,_0x31160d:0x50d,_0xe1520b:0x59,_0x42ac6e:0xd1,_0x1ff69b:0x455,_0x37db42:0x1bb,_0x4dfea8:0xab,_0x5a92c1:0x6f,_0x21070c:0x15c,_0x6a2ec4:0x1b5,_0x1bf130:0x13d,_0x22bd36:0xc5,_0x2a30f0:0x115,_0x592e12:0x20c,_0x3e0e14:0x222,_0x70b428:0x4f5,_0x7b43fa:0x25d,_0x41c1e7:0x57,_0x5a2aac:0x342,_0x107f32:0x102,_0x5ba944:0x6f7,_0x104722:0x403,_0x4f7519:0x289,_0x1d4d5:0xac,_0x5bf9ca:0x54,_0x429b51:0x12,_0x460a4d:0x26b,_0x5ba1bb:0x5c,_0x512eb8:0x478,_0x42f2ee:0x4b4,_0x5b9fd7:0x121,_0x5aa7c7:0x44d,_0x2ccc73:0x509,_0x542488:0x265,_0x189601:0x206,_0xb0c647:0x163,_0x234928:0x387,_0x1608da:0x38e,_0x3087e6:0x6b,_0x43f73b:0x22e,_0x48b355:0x264,_0x265548:0x2eb,_0x11bee7:0x1ec,_0xfa419:0x1e5,_0xcde5eb:0x1d,_0x1f20ce:0x24e,_0x2512f5:0x374,_0x2ce4e0:0x16e,_0x5bf4e5:0x402,_0x20ef14:0x16d,_0x36cb88:0x442,_0x4d495b:0x18c,_0x480cd1:0x5d,_0x5c118b:0x15b,_0x2ed9c1:0xfa,_0xa946a4:0x41e,_0x58e15e:0x3e0,_0x1bc009:0x388,_0xb4ba64:0x7,_0x407290:0x100,_0x577de2:0x9d,_0x139d63:0x280,_0x385188:0x2e4,_0x2dd751:0x168,_0x2813a1:0x414,_0xcc15e8:0x35d,_0x30d700:0x515,_0x5968d6:0x11e,_0x5035c2:0x3d5,_0x24ce8b:0xe,_0x5f0bd8:0x2fa,_0x4657e8:0x43a,_0x95d946:0x199,_0x55e530:0x355,_0x136446:0x30f,_0x25ed98:0x476,_0x556636:0x36b,_0x231499:0x3ef,_0x161095:0x2fc,_0x315153:0x329,_0x9e6e64:0x28f,_0x7e9478:0x425,_0x143a81:0x506,_0x5524a9:0x465,_0x4d9d50:0x542,_0x1285b1:0x408,_0x58527d:0x236,_0x26d6c1:0x48d,_0x3130e5:0x2b0,_0x58de0a:0x1b0,_0x300906:0x26e,_0x1eba54:0x33f,_0x44824c:0x1fe,_0x28213c:0x2e3},_0x67c52c={_0x10abb8:0x52c},_0x5baee3={_0x233304:0x2ff},_0x491eb4={_0x125fc4:0x29b,_0x2ffc68:0x2f6,_0x2b2fb0:0x257,_0x57be62:0x5c6,_0x22deb2:0x2c7,_0x3e6ac2:0x10b,_0x2fb8b1:0x3a5},_0x275fa2={_0x58c1dd:0x1cf,_0x523f45:0x32e,_0xb31a9c:0x3d0,_0x3fe794:0x19d,_0x24234e:0x25d,_0x305b50:0x31e,_0x324a00:0x184,_0x3e1bfc:0xa1,_0x11abe3:0x3c1,_0x1cf536:0x128,_0x42061f:0x78,_0x3e0b53:0x4ce,_0x2d887b:0x43e,_0x3df54a:0x176,_0x2308dd:0x244,_0x3071dd:0x134,_0x2e299e:0x117,_0x306509:0xe4},_0x12928d={_0xa8da50:0x7},_0x3f2c45={_0x470c86:0x706},_0x569f78={_0x2bf0eb:0x1b1},_0x33b24f={_0x36a427:0xa2},_0x3c2dbc={_0x5e9a2a:0x263},_0x39404d={'vbDzY':function(_0x29231c,_0x416b95){return _0x29231c(_0x416b95);},'eOCtj':_0x48cf0a(0x3a6,_0x308e80._0x5cb51d),'mtkck':function(_0x3be4a0,_0x58b75f,_0x46becc){return _0x3be4a0(_0x58b75f,_0x46becc);},'EzoWb':function(_0x41223e,_0x54dd48){return _0x41223e===_0x54dd48;},'kFmzp':function(_0xf27ff4,_0x110c8b){return _0xf27ff4 in _0x110c8b;},'ybsSp':function(_0x4a60b2,_0x5d92b2,_0xac0f28){return _0x4a60b2(_0x5d92b2,_0xac0f28);},'yDdpt':_0x48cf0a(0x17e,0x212),'zevcN':_0x48cf0a(_0x308e80._0x59918c,0x371),'rlQuK':_0x48cf0a(_0x308e80._0x35a866,_0x308e80._0x3a7eb7)+'e','yAEuF':function(_0x48fb62,_0x26d072){return _0x48fb62(_0x26d072);},'ItsER':function(_0x4f1618,_0x563eb6){return _0x4f1618(_0x563eb6);},'JMcAN':_0x346ef4(_0x308e80._0x575b9f,_0x308e80._0xf5ab3b)+_0x346ef4(0x48,0x4c)+_0x346ef4(_0x308e80._0x1fb352,_0x308e80._0x2bd5f)+'dy\x20runni'+'ng.\x20Left'+_0x346ef4(_0x308e80._0x14e030,0x27f)+'ed.','TcaSd':function(_0x5af65f){return _0x5af65f();},'npWkr':_0x346ef4(_0x308e80._0x4e560c,0x282)+'ed','QcEmX':function(_0x46b07a,_0x3dc9a0,_0xbdf095){return _0x46b07a(_0x3dc9a0,_0xbdf095);},'EJPuk':function(_0x202628,_0x50f1d7,_0x3f82eb){return _0x202628(_0x50f1d7,_0x3f82eb);},'ZHrEI':function(_0x141007){return _0x141007();},'KMZUu':_0x346ef4(_0x308e80._0x44ea0e,_0x308e80._0x2e4fcf),'pSRlq':_0x346ef4(0x533,_0x308e80._0x111e02),'kbLtK':_0x48cf0a(0x2c1,_0x308e80._0xbea019),'NyJsv':function(_0x37b04a,_0x2aae72){return _0x37b04a(_0x2aae72);},'VZdlJ':'Starting'+_0x48cf0a(0x1ed,0x20)+'runtime.'+_0x48cf0a(_0x308e80._0xd8c1dc,_0x308e80._0x54d803)+_0x48cf0a(_0x308e80._0x2d29cb,_0x308e80._0x3329c4)+_0x48cf0a(0x287,0x2ca)},[,,_0x28b72e='help',..._0x17e1cb]=process[_0x48cf0a(_0x308e80._0x4d72a0,_0x308e80._0x42fac4)],_0x4c15e1=_0x39404d[_0x346ef4(_0x308e80._0xde14f0,-0x5d)](hasFlag,_0x17e1cb,_0x346ef4(_0x308e80._0xda41eb,_0x308e80._0x308a3d)+'e'),_0x24ee4a=hasFlag(_0x17e1cb,'--json');if(_0x39404d[_0x346ef4(-_0x308e80._0x3392de,-0x37)](_0x28b72e,_0x346ef4(-0x1ce,-0x16))){const _0x19932e=hasFlag(_0x17e1cb,_0x346ef4(_0x308e80._0x4a4c20,0x19f));!_0x19932e&&await ensurePairPrerequisites();const _0x89cc65=resolveGatewayAuth();if(_0x39404d[_0x346ef4(_0x308e80._0x26891b,0x22c)](_0x346ef4(-0x102,0x4b),_0x89cc65))throw new Error(_0x89cc65[_0x346ef4(_0x308e80._0xdcf053,_0x308e80._0x55b5d5)]);const _0x195b12=_0x39404d[_0x346ef4(0x146,_0x308e80._0x53865c)](readFlag,_0x17e1cb,_0x39404d[_0x346ef4(_0x308e80._0x187876,_0x308e80._0x1d835c)])??_0x39404d['mtkck'](readFlag,_0x17e1cb,'-s')??_0x48cf0a(_0x308e80._0x48ad32,_0x308e80._0x5c198a)+'registry'+'.clawket'+_0x346ef4(0x62,-_0x308e80._0x6160d5),_0x90f290=readFlag(_0x17e1cb,_0x39404d['zevcN'])??readFlag(_0x17e1cb,'-n')??getDefaultBridgeDisplayName(),_0xb917fe=_0x39404d[_0x346ef4(0x1a1,-_0x308e80._0xab6016)](readFlag,_0x17e1cb,_0x39404d[_0x48cf0a(0x31b,_0x308e80._0x2f8237)]),_0x5bc52a={};_0x5bc52a['serverUr'+'l']=_0x195b12,_0x5bc52a['displayN'+_0x346ef4(_0x308e80._0x4e358c,0x396)]=_0x90f290,_0x5bc52a[_0x346ef4(_0x308e80._0x377a3d,_0x308e80._0x56514e)+_0x346ef4(0x1ff,_0x308e80._0x1b8f20)]=_0x89cc65[_0x346ef4(_0x308e80._0x19cfcd,0x2b7)],_0x5bc52a[_0x48cf0a(0x1db,_0x308e80._0x347b21)+_0x48cf0a(0x302,0x228)]=_0x89cc65['password'];const _0x1444a6=await _0x39404d[_0x346ef4(_0x308e80._0x54b0ed,_0x308e80._0x125887)](pairGateway,_0x5bc52a),_0x2dc8bf=await writePairingQrPng(_0x1444a6,_0xb917fe),_0x14cb01=getServiceStatus(),_0x2bd85f=decidePairServiceAction(_0x1444a6,_0x14cb01);if(_0x2bd85f===_0x346ef4(0x1d9,0x37b)){_0x24ee4a?_0x39404d['ItsER'](printJson,buildPairingJson(_0x1444a6,_0x2dc8bf,_0x14cb01,_0x48cf0a(_0x308e80._0x428539,_0x308e80._0x492fe6)+_0x346ef4(-0x158,_0x308e80._0x49d7d4)+_0x346ef4(_0x308e80._0x105e93,0x234)+'dy\x20runni'+_0x48cf0a(0x354,_0x308e80._0x4e1844)+'\x20unchang'+'ed.')):(printPairingInfo(_0x1444a6,_0x2dc8bf),console[_0x346ef4(_0x308e80._0x351a20,0x22e)](_0x39404d[_0x346ef4(_0x308e80._0x9e0ae7,_0x308e80._0x1db904)]),printServiceResult(null,_0x14cb01));return;}try{const _0x476c67=_0x39404d[_0x48cf0a(0x18a,_0x308e80._0x410bf3)](_0x2bd85f,_0x346ef4(-0xb8,0xa4))?_0x39404d[_0x48cf0a(0x54e,0x36e)](installService):restartService(),_0x5afdd8=_0x39404d[_0x48cf0a(_0x308e80._0xacc4b0,_0x308e80._0xf31180)](_0x2bd85f,_0x48cf0a(0x265,0x1ab))?_0x48cf0a(_0x308e80._0x2851ca,_0x308e80._0x351a0d)+_0x346ef4(_0x308e80._0xa8eb1d,_0x308e80._0x55cb69)+_0x48cf0a(_0x308e80._0x355c7f,_0x308e80._0x451b98)+_0x346ef4(0x1d0,_0x308e80._0x2cd9e6)+'e.':_0x1444a6[_0x346ef4(_0x308e80._0x17161b,_0x308e80._0x4b6e73)]===_0x39404d[_0x48cf0a(0x4b0,_0x308e80._0x3ef063)]?_0x48cf0a(_0x308e80._0x413153,_0x308e80._0x37eb74)+_0x48cf0a(0x3df,_0x308e80._0x31160d)+'changed.'+_0x346ef4(_0x308e80._0xe1520b,_0x308e80._0x42ac6e)+'ed\x20backg'+_0x48cf0a(0x297,_0x308e80._0x1ff69b)+_0x346ef4(0x227,_0x308e80._0x37db42)+_0x346ef4(0x51,0x55)+'e\x20new\x20pa'+_0x346ef4(_0x308e80._0x4dfea8,_0x308e80._0x5a92c1):_0x346ef4(_0x308e80._0x21070c,0x199)+_0x346ef4(_0x308e80._0x6a2ec4,_0x308e80._0x49d7d4)+_0x48cf0a(0x3ba,0x36c)+_0x48cf0a(0x29b,0x3a9)+_0x48cf0a(0x343,_0x308e80._0x1bf130)+_0x346ef4(_0x308e80._0x22bd36,0x229)+_0x48cf0a(0x2a7,0x256)+_0x48cf0a(0x2d9,_0x308e80._0x2a30f0);_0x24ee4a?printJson(buildPairingJson(_0x1444a6,_0x2dc8bf,_0x476c67,_0x5afdd8)):(printPairingInfo(_0x1444a6,_0x2dc8bf),_0x39404d['QcEmX'](printServiceResult,_0x5afdd8,_0x476c67));}catch(_0x14b2a3){console[_0x48cf0a(_0x308e80._0x592e12,_0x308e80._0x3e0e14)](_0x48cf0a(_0x308e80._0x70b428,0x5e9)+'succeede'+_0x346ef4(-_0x308e80._0x7b43fa,-_0x308e80._0x41c1e7)+_0x346ef4(0x43c,0x285)+_0x48cf0a(0x2e5,0x1c4)+'n\x20failed'+':\x20'+formatError(_0x14b2a3)),console[_0x48cf0a(0x20c,_0x308e80._0x5a2aac)](_0x346ef4(-0xc5,0xfe)+'still\x20ru'+_0x346ef4(_0x308e80._0x107f32,0x217)+_0x346ef4(0x27b,0x213)+_0x346ef4(-0x30,0x11f)+_0x48cf0a(0x530,_0x308e80._0x5ba944)+'run\x22\x20man'+_0x346ef4(_0x308e80._0x104722,_0x308e80._0x4f7519)),process['exitCode']=0x1;}return;}function _0x48cf0a(_0x30d177,_0x489b07){return _0x11b7ab(_0x489b07,_0x30d177-_0x3c2dbc._0x5e9a2a);}if(_0x28b72e===_0x346ef4(-_0x308e80._0x1d4d5,-_0x308e80._0x5bf9ca)+_0x346ef4(-0x1ca,_0x308e80._0x429b51)){const _0x281ba1=_0x39404d['EJPuk'](readFlag,_0x17e1cb,'--qr-fil'+'e'),_0x1831fb=_0x39404d[_0x48cf0a(0x54e,0x642)](resolveGatewayAuth);if(_0x48cf0a(0x20c,_0x308e80._0x460a4d)in _0x1831fb)throw new Error(_0x1831fb[_0x346ef4(0x38,0x4b)]);const _0x4d5cee={};_0x4d5cee[_0x346ef4(_0x308e80._0x5ba1bb,0x17b)+'oken']=_0x1831fb[_0x48cf0a(_0x308e80._0x512eb8,_0x308e80._0x42f2ee)],_0x4d5cee[_0x48cf0a(0x1db,0x281)+_0x48cf0a(0x302,_0x308e80._0x5b9fd7)]=_0x1831fb['password'];const _0x153aae=await refreshAccessCode(_0x4d5cee),_0x268209=await writePairingQrPng(_0x153aae,_0x281ba1);_0x24ee4a?_0x39404d[_0x48cf0a(0x45e,_0x308e80._0x5aa7c7)](printJson,buildPairingJson(_0x153aae,_0x268209,getServiceStatus(),_0x346ef4(0x167,0x334)+_0x48cf0a(0x32b,_0x308e80._0x2ccc73)+'reshed.')):_0x39404d['QcEmX'](printPairingInfo,_0x153aae,_0x268209);return;}if(_0x28b72e===_0x48cf0a(_0x308e80._0x542488,_0x308e80._0x189601)){const _0x4baba1=requirePairingConfig(),_0x1233d8=installService();console['log']('Installe'+_0x346ef4(_0x308e80._0xb0c647,0x2bd)+_0x48cf0a(0x2ce,0x3ba)+_0x346ef4(_0x308e80._0x234928,_0x308e80._0x1608da)+'\x20gateway'+'\x20'+_0x4baba1[_0x346ef4(0x2dd,0x28f)+'d']+'.'),printServiceResult(null,_0x1233d8);return;}if(_0x28b72e==='restart'){const _0x246780=requirePairingConfig(),_0x31bac3=_0x39404d[_0x346ef4(0x232,0x56)](restartService);console[_0x346ef4(_0x308e80._0x3087e6,_0x308e80._0x43f73b)](_0x346ef4(_0x308e80._0x48b355,_0x308e80._0x265548)+_0x346ef4(0x437,0x2bd)+_0x346ef4(_0x308e80._0x11bee7,0x10d)+'vice\x20for'+_0x346ef4(_0x308e80._0xfa419,-_0x308e80._0xcde5eb)+'\x20'+_0x246780[_0x346ef4(0x36d,0x28f)+'d']+'.'),printServiceResult(null,_0x31bac3);return;}function _0x346ef4(_0x1d88ca,_0x2a6c92){return _0x11b7ab(_0x1d88ca,_0x2a6c92-_0x33b24f._0x36a427);}if(_0x28b72e===_0x39404d[_0x48cf0a(_0x308e80._0x1f20ce,_0x308e80._0x11bee7)]){const _0xef5103=stopService();console[_0x48cf0a(0x3ef,0x3e4)](_0x48cf0a(0x249,0x3e8)+_0x346ef4(_0x308e80._0x2512f5,_0x308e80._0x2ce4e0)+_0x346ef4(0x90,_0x308e80._0x49d7d4)+'ce.'),printServiceResult(null,_0xef5103);return;}if(_0x28b72e===_0x48cf0a(0x4ca,_0x308e80._0x5bf4e5)+'l'){const _0x33c49e=uninstallService();console['log'](_0x346ef4(_0x308e80._0x20ef14,0x2aa)+'backgrou'+'nd\x20servi'+_0x346ef4(_0x308e80._0x36cb88,0x2c4)+'tration.'),_0x39404d[_0x346ef4(_0x308e80._0x4d495b,-_0x308e80._0x480cd1)](printServiceResult,null,_0x33c49e);return;}if(_0x39404d[_0x48cf0a(0x18a,0x311)](_0x28b72e,_0x39404d[_0x346ef4(_0x308e80._0x5c118b,_0x308e80._0x2ed9c1)])){stopService(),deletePairingConfig(),console[_0x346ef4(_0x308e80._0xa946a4,0x22e)]('Cleared\x20'+_0x346ef4(_0x308e80._0x58e15e,_0x308e80._0x542488)+_0x346ef4(0x1ea,0x68)+getPairingConfigPath());return;}if(_0x28b72e===_0x346ef4(0x2af,_0x308e80._0x1bc009)){printStatus();return;}if(_0x28b72e===_0x48cf0a(0x3f0,0x40f)){const _0x2fbdc7=_0x39404d[_0x346ef4(_0x308e80._0xb4ba64,0x9a)](Number,readFlag(_0x17e1cb,'--lines')??_0x39404d[_0x346ef4(-_0x308e80._0x407290,_0x308e80._0x577de2)]),_0xe302cb=parseLookbackToMs(readFlag(_0x17e1cb,'--last')??readFlag(_0x17e1cb,'-l')),_0x491e95=readRecentCliLogs({'lines':_0x2fbdc7,'lastMs':_0xe302cb,'includeErrorLog':hasFlag(_0x17e1cb,_0x346ef4(0x28c,_0x308e80._0x139d63))});if(_0x24ee4a){const _0x441bbc={};_0x441bbc['ok']=!![],_0x441bbc['lines']=_0x491e95,_0x39404d[_0x346ef4(_0x308e80._0x385188,_0x308e80._0x2dd751)](printJson,_0x441bbc);}else _0x491e95['length']===0x0?console[_0x346ef4(0x153,_0x308e80._0x43f73b)](_0x346ef4(_0x308e80._0x2813a1,_0x308e80._0xcc15e8)+_0x48cf0a(0x3fc,_0x308e80._0x30d700)+'logs\x20fou'+_0x346ef4(0x222,_0x308e80._0x5968d6)):console[_0x346ef4(_0x308e80._0x5035c2,_0x308e80._0x43f73b)](_0x491e95[_0x346ef4(_0x308e80._0x24ce8b,0x84)]('\x0a'));return;}if(_0x28b72e===_0x48cf0a(0x171,_0x308e80._0x5f0bd8)){const _0x208ae6=await buildDoctorReport();_0x24ee4a?_0x39404d[_0x346ef4(-0x8f,0x168)](printJson,_0x208ae6):printDoctorReport(_0x208ae6);return;}if(_0x28b72e===_0x48cf0a(_0x308e80._0x4657e8,0x447)){const _0x4de153=requirePairingConfig(),_0x419913=resolveGatewayUrl(readFlag(_0x17e1cb,_0x48cf0a(_0x308e80._0x95d946,0xd1)+_0x346ef4(_0x308e80._0x55e530,_0x308e80._0x136446))??_0x39404d[_0x346ef4(_0x308e80._0x25ed98,_0x308e80._0x556636)](readFlag,_0x17e1cb,'-g')),_0x54cd4b=_0xc55ba4=>{function _0x574f86(_0x163a7e,_0x558f49){return _0x48cf0a(_0x558f49- -0x148,_0x163a7e);}console['log']('['+Date[_0x574f86(-0x2e,_0x569f78._0x2bf0eb)]()+']\x20'+_0xc55ba4);};!_0x4c15e1?(console[_0x48cf0a(_0x308e80._0x231499,0x567)](_0x346ef4(_0x308e80._0x161095,_0x308e80._0x315153)+_0x346ef4(-0x18d,0x58)+_0x4de153[_0x346ef4(0x2c5,_0x308e80._0x9e6e64)+'d']),console['log'](_0x48cf0a(_0x308e80._0x7e9478,0x51e)+_0x346ef4(0x334,0x1f1)+_0x4de153[_0x346ef4(0x250,0xcc)+'Id']),console['log'](_0x346ef4(0x495,0x329)+'URL:\x20'+_0x419913),console[_0x48cf0a(0x3ef,_0x308e80._0x143a81)](''),console['log'](_0x39404d['VZdlJ']),console['log']('')):_0x54cd4b(_0x48cf0a(_0x308e80._0x5524a9,_0x308e80._0x4d9d50)+_0x48cf0a(_0x308e80._0x1285b1,_0x308e80._0x58527d)+_0x346ef4(_0x308e80._0x26d6c1,_0x308e80._0x3130e5)+_0x346ef4(_0x308e80._0x58de0a,0xee)+_0x346ef4(_0x308e80._0x300906,0x252)+_0x48cf0a(_0x308e80._0x1eba54,_0x308e80._0x44824c)+_0x4de153[_0x346ef4(_0x308e80._0xa8eb1d,0x28f)+'d']);_0x4c15e1&&writeServiceState();const _0x1a937e=new BridgeRuntime({'config':_0x4de153,'gatewayUrl':_0x419913,'onLog':_0x590849=>{function _0x484756(_0x23c099,_0x755da9){return _0x346ef4(_0x755da9,_0x23c099-0x3a5);}_0x54cd4b(_0x484756(_0x3f2c45._0x470c86,0x638)+']\x20'+_0x590849);},'onStatus':_0x50a739=>{function _0x2895f9(_0x435337,_0x4832ac){return _0x346ef4(_0x4832ac,_0x435337-0x169);}if(_0x50a739['lastErro'+'r']){_0x54cd4b(_0x308ab8(_0x275fa2._0x58c1dd,_0x275fa2._0x523f45)+'\x20relay='+(_0x50a739[_0x2895f9(_0x275fa2._0xb31a9c,0x451)+_0x308ab8(-0x23,-0x132)]?'up':_0x308ab8(0x9,-_0x275fa2._0x3fe794))+('\x20gateway'+'=')+(_0x50a739['gatewayC'+'onnected']?'up':_0x2895f9(0x16b,0xa1))+(_0x308ab8(0xe2,_0x275fa2._0x24234e)+'=')+_0x50a739['clientCo'+'unt']+_0x308ab8(_0x275fa2._0x305b50,0x521)+_0x50a739[_0x2895f9(0x236,_0x275fa2._0x324a00)+'r']);return;}function _0x308ab8(_0x97ab8,_0x3dedde){return _0x346ef4(_0x3dedde,_0x97ab8-_0x12928d._0xa8da50);}_0x39404d[_0x308ab8(_0x275fa2._0x3e1bfc,0x41)](_0x54cd4b,_0x2895f9(0x331,_0x275fa2._0x11abe3)+'\x20relay='+(_0x50a739[_0x2895f9(0x3d0,0x251)+'nected']?'up':_0x308ab8(0x9,-_0x275fa2._0x1cf536))+(_0x2895f9(0x14c,-_0x275fa2._0x42061f)+'=')+(_0x50a739[_0x2895f9(_0x275fa2._0x3e0b53,_0x275fa2._0x2d887b)+_0x2895f9(_0x275fa2._0x3df54a,0x36f)]?'up':'down')+(_0x2895f9(_0x275fa2._0x2308dd,_0x275fa2._0x3071dd)+'=')+_0x50a739[_0x2895f9(_0x275fa2._0x2e299e,-_0x275fa2._0x306509)+'unt']);},'onPendingPairRequest':_0x495830=>{const _0xd00a4c={_0x1a2179:0x432};function _0x1dc6f8(_0x4ca01f,_0x237b7f){return _0x48cf0a(_0x4ca01f- -_0xd00a4c._0x1a2179,_0x237b7f);}function _0x129ae0(_0x402818,_0x18f643){return _0x48cf0a(_0x18f643-0xb2,_0x402818);}_0x54cd4b(_0x1dc6f8(0xb1,0x18e)+_0x129ae0(_0x491eb4._0x125fc4,_0x491eb4._0x2ffc68)+_0x1dc6f8(-0x81,-_0x491eb4._0x2b2fb0)+'='+_0x495830[_0x1dc6f8(0xef,-0x46)+'d']+(_0x129ae0(0x35e,0x3fb)+'d=')+(_0x495830[_0x129ae0(0x6a9,_0x491eb4._0x57be62)]||_0x129ae0(_0x491eb4._0x22deb2,0x3a5)+'>')+_0x1dc6f8(-0x1c8,-_0x491eb4._0x3e6ac2)+(_0x495830['displayN'+'ame']??_0x129ae0(0x26d,_0x491eb4._0x2fb8b1)+'>'));}});_0x1a937e[_0x48cf0a(0x3c6,_0x308e80._0x28213c)]();const _0x336f8e=async()=>{const _0x99e95b={_0x37b786:0x3d},_0x3e5348=('0|2|1|3|'+'4')[_0x1a7b39(_0x67c52c._0x10abb8,0x411)]('|');function _0x1a7b39(_0x656085,_0xd34828){return _0x346ef4(_0xd34828,_0x656085-_0x5baee3._0x233304);}function _0x344228(_0x4bbd4b,_0x3647d9){return _0x346ef4(_0x4bbd4b,_0x3647d9-_0x99e95b._0x37b786);}let _0x166f83=0x0;while(!![]){switch(_0x3e5348[_0x166f83++]){case'0':process['off'](_0x39404d[_0x344228(0xdb,0x2d7)],_0x336f8e);continue;case'1':await _0x1a937e['stop']();continue;case'2':process[_0x344228(0x394,0x1da)]('SIGTERM',_0x336f8e);continue;case'3':_0x4c15e1&&clearServiceState(process[_0x344228(0xd8,-0x28)]);continue;case'4':process[_0x1a7b39(0x4ea,0x5a7)](0x0);continue;}break;}};process['on'](_0x48cf0a(0x3a6,0x508),_0x336f8e),process['on'](_0x48cf0a(0x403,0x3d2),_0x336f8e),await new Promise(()=>{});}printHelp();}function printPairingInfo(_0x5c374d,_0x3b7480){const _0x4c2b63={_0x2a1f28:0x401,_0x14e84d:0x3ed,_0x2cd8bf:0x47c,_0x4950be:0x140,_0x54f5e5:0x46f,_0x566854:0x50,_0x1081f6:0x657,_0x4059a4:0x4ef,_0xc0dfb0:0x48a,_0x3f1672:0x68,_0x5c626a:0x3fd,_0x5034e8:0x50,_0x4a9f4d:0x190,_0x32b801:0x3d7,_0x11f623:0x11c};_0x5c374d[_0x19a3b8(-0x218,-0x321)]==='refreshe'+'d'&&console[_0x163acf(0x293,0x397)](_0x163acf(0x313,_0x4c2b63._0x2a1f28)+'lready\x20p'+_0x19a3b8(-0x240,-_0x4c2b63._0x14e84d)+_0x163acf(_0x4c2b63._0x2cd8bf,0x389)+_0x19a3b8(-_0x4c2b63._0x4950be,-0x1ac)+_0x163acf(0x3de,_0x4c2b63._0x54f5e5)+'e.');console[_0x163acf(0x19e,0x397)](_0x163acf(0x36d,0x492)+'ID:\x20'+_0x5c374d['config']['gatewayI'+'d']),console[_0x19a3b8(-_0x4c2b63._0x566854,0xb0)](_0x163acf(_0x4c2b63._0x1081f6,_0x4c2b63._0x4059a4)+_0x163acf(0x2c3,_0x4c2b63._0xc0dfb0)+_0x19a3b8(-_0x4c2b63._0x3f1672,-0x8f)+'e\x20Clawke'+_0x163acf(0x462,_0x4c2b63._0x5c626a));const _0x48dfc8={};_0x48dfc8['small']=!![],_0x52e07e['generate'](_0x5c374d['qrPayloa'+'d'],_0x48dfc8);function _0x19a3b8(_0xd2a459,_0x1a6258){return _0x11b7ab(_0x1a6258,_0xd2a459- -0x1dc);}console[_0x19a3b8(-_0x4c2b63._0x5034e8,-_0x4c2b63._0x4a9f4d)](_0x163acf(_0x4c2b63._0x32b801,0x43e)+'\x20'+formatLocalTime(_0x5c374d['accessCo'+'deExpire'+_0x163acf(0x8a,0x19f)]));function _0x163acf(_0x3f02a7,_0x25cce4){return _0x11b7ab(_0x3f02a7,_0x25cce4-0x20b);}console['log'](_0x19a3b8(_0x4c2b63._0x11f623,0x7)+':\x20'+_0x3b7480);}function printStatus(){const _0x706d73={_0x41fe2a:0x898,_0x303172:0x69c,_0x17f57b:0x76f,_0x398e24:0x1df,_0x500f5e:0x5ea,_0x2d4f0b:0x703,_0x544d64:0x7a7,_0x38de3e:0x59e,_0x579bfe:0x68d,_0x2cf2fa:0x79,_0x10d8a7:0x53,_0x4a3815:0x86,_0x481917:0x4f9,_0x5d1e9f:0x78d,_0x89e45f:0x5a1,_0x2afd39:0xdb,_0x14c34c:0x3b,_0x5a8dc7:0x167,_0x3d26b7:0x210,_0x3d87f6:0x212,_0x3c88e5:0x6b7,_0x59f82c:0xc1,_0x5e346c:0xba,_0x124753:0xca,_0x26df4:0x788,_0x21e0f5:0x97,_0x10156e:0x17d,_0x1f16e4:0x42,_0x415058:0xb,_0x1c68f:0xdc,_0x5defc5:0x99,_0x316fc9:0x72b,_0x62514c:0x601,_0x50b9e:0xd4,_0x3ee2d0:0x282,_0x5332e7:0x83c,_0x4b165e:0xc6,_0x29b53e:0x668},_0x188814={_0x272026:0xd2},_0x453c1c={'xOgBR':function(_0xe14d3d){return _0xe14d3d();}},_0x1f8a90=_0x453c1c[_0x49864a(_0x706d73._0x41fe2a,_0x706d73._0x303172)](readPairingConfig),_0x6ec48=getServiceStatus(),{logPath:_0x59a66c,errorLogPath:_0x5bf37d}=getServicePaths();function _0x3d5c48(_0x56d6c2,_0x342d15){return _0x11b7ab(_0x56d6c2,_0x342d15- -_0x188814._0x272026);}const _0xd48072=readCliVersion();console[_0x49864a(_0x706d73._0x17f57b,0x703)](_0x3d5c48(_0x706d73._0x398e24,0x1f6)+'\x20'+_0xd48072);function _0x49864a(_0x3b6ef6,_0x4d532f){return _0x11b7ab(_0x3b6ef6,_0x4d532f-0x577);}!_0x1f8a90?console[_0x49864a(_0x706d73._0x500f5e,_0x706d73._0x2d4f0b)](_0x49864a(0x62d,0x555)+_0x49864a(0x8f7,_0x706d73._0x544d64)+_0x49864a(_0x706d73._0x38de3e,_0x706d73._0x579bfe)+_0x453c1c[_0x3d5c48(-_0x706d73._0x2cf2fa,_0x706d73._0x10d8a7)](getPairingConfigPath)+')'):(console[_0x3d5c48(_0x706d73._0x4a3815,0xba)](_0x49864a(_0x706d73._0x481917,0x555)+_0x49864a(0x505,0x6ae)),console['log'](_0x49864a(0x9cb,0x7fe)+_0x3d5c48(0x4d,-0x11c)+_0x1f8a90['gatewayI'+'d']),console['log']('Instance'+':\x20'+_0x1f8a90[_0x49864a(_0x706d73._0x5d1e9f,_0x706d73._0x89e45f)+'Id']),console[_0x49864a(0x727,0x703)](_0x3d5c48(-_0x706d73._0x2afd39,_0x706d73._0x14c34c)+'RL:\x20'+_0x1f8a90['serverUr'+'l']),console[_0x3d5c48(0x57,0xba)](_0x3d5c48(_0x706d73._0x5a8dc7,_0x706d73._0x3d26b7)+(_0x1f8a90[_0x3d5c48(_0x706d73._0x3d87f6,0x18)+_0x49864a(_0x706d73._0x3c88e5,0x86b)]??'-'))),console[_0x3d5c48(_0x706d73._0x59f82c,_0x706d73._0x5e346c)](_0x3d5c48(0x7a,_0x706d73._0x124753)+'\x20'+resolveGatewayUrl()),console[_0x49864a(0x72b,0x703)](_0x49864a(0x62f,0x7c5)+'\x20'+(_0x6ec48[_0x49864a(0x5b8,_0x706d73._0x26df4)+'d']?'installe'+'d':_0x3d5c48(-0x1a8,-0x16a)+_0x3d5c48(-_0x706d73._0x21e0f5,-_0x706d73._0x10156e))+'\x20('+_0x6ec48[_0x3d5c48(_0x706d73._0x1f16e4,-0xe9)]+')'),console[_0x3d5c48(_0x706d73._0x415058,0xba)](_0x3d5c48(-_0x706d73._0x1c68f,_0x706d73._0x5defc5)+'\x20'+(_0x6ec48[_0x49864a(_0x706d73._0x316fc9,0x59c)]?_0x49864a(_0x706d73._0x62514c,0x6b5):'no')),console[_0x3d5c48(-_0x706d73._0x50b9e,0xba)](_0x49864a(0x491,0x612)+(_0x6ec48[_0x3d5c48(_0x706d73._0x3ee2d0,0x1c8)+_0x49864a(0x837,_0x706d73._0x5332e7)]||'-')),console['log'](_0x49864a(0x63f,0x70c)+_0x59a66c),console['log']('Error\x20Lo'+_0x3d5c48(0x2ad,_0x706d73._0x4b165e)+_0x5bf37d),!_0x1f8a90&&(process[_0x49864a(_0x706d73._0x29b53e,0x476)]=0x1);}function printServiceResult(_0x2e0cc1,_0x97d195){const _0x544fdb={_0x479fae:0x3e9,_0x119b30:0xa1,_0x38fa3d:0x2a2,_0x3a8217:0x1c5,_0x548e42:0x7e,_0x5f058d:0x1d8,_0x498b3e:0x380,_0x5944e9:0x212,_0x3cf6a0:0x26c,_0x388dcc:0x140,_0x411847:0x43,_0x523dfd:0x7a,_0x13e7ff:0xdd,_0xe2cd72:0x319,_0x40f900:0x347},_0x3a64f0={_0x8f3991:0x60};function _0x59d859(_0x314808,_0x17d33b){return _0x6eb3(_0x17d33b,_0x314808- -0xeb);}const _0x32c969={};_0x32c969[_0x59d859(-0x228,-_0x544fdb._0x479fae)]=_0x59d859(0xe4,-_0x544fdb._0x119b30)+'d,\x20stopp'+'ed',_0x32c969[_0x2af046(0x36c,_0x544fdb._0x38fa3d)]=_0x59d859(-_0x544fdb._0x3a8217,-_0x544fdb._0x548e42)+_0x59d859(-_0x544fdb._0x5f058d,-0x3db);const _0x2bed00=_0x32c969;_0x2e0cc1&&console[_0x59d859(0x5f,-0x9d)](_0x2e0cc1);console[_0x2af046(_0x544fdb._0x498b3e,0x1aa)](_0x2af046(_0x544fdb._0x5944e9,_0x544fdb._0x3cf6a0)+'\x20'+(_0x97d195[_0x2af046(0x288,0x22f)+'d']?_0x97d195[_0x2af046(-_0x544fdb._0x388dcc,_0x544fdb._0x411847)]?'installe'+'d,\x20runni'+'ng':_0x2bed00[_0x2af046(-_0x544fdb._0x523dfd,-_0x544fdb._0x13e7ff)]:_0x2bed00[_0x2af046(0x146,0x2a2)]));function _0x2af046(_0x5c2b8d,_0x495487){return _0x6eb3(_0x5c2b8d,_0x495487-_0x3a64f0._0x8f3991);}console[_0x2af046(_0x544fdb._0xe2cd72,0x1aa)](_0x59d859(0x13,0x9e)+_0x2af046(0x330,0x28e)+(_0x97d195[_0x2af046(_0x544fdb._0x40f900,0x2b8)+_0x59d859(0x198,0x238)]||'-'));}function printDoctorReport(_0x3f1466){const _0xd099b5={_0x2ba355:0x429,_0x317e4b:0x492,_0x341a63:0x255,_0x5a5e08:0x2b5,_0x2557d8:0x1f5,_0x88da30:0x8f,_0x5fef9a:0x4c9,_0x478bdb:0x638,_0x4a71bd:0x468,_0x481038:0xe9,_0x28496b:0x1e4,_0x2bc20a:0x265,_0x249f4c:0x49a,_0x166846:0x6f,_0x40e7a0:0x52a,_0x496889:0x35b,_0x2c9e18:0x314,_0x16591d:0x3c2,_0x9e60f4:0x4ed,_0x44d6fb:0x274,_0x596d29:0x108,_0x56f4a6:0x361,_0x2ef07f:0x5a1,_0x9447b0:0x3c2,_0xea7d00:0x3b1,_0x3b4920:0x662,_0x459923:0x2a3,_0x32b307:0x49c,_0x47fb5e:0x2a3,_0xb423d3:0x37e,_0x16cc79:0x4e4,_0x54b332:0x4b8,_0x44cf85:0x85,_0x5653ca:0x355,_0x6724c9:0x266,_0x50b4cb:0x1c4,_0x21db97:0x459,_0x3a1b51:0x2a3,_0x119f2f:0x294,_0x6931a:0x2b2,_0x139cb6:0x5e8,_0x557072:0x179,_0x2b630a:0x1f9,_0x368723:0x346,_0x3e92fc:0x2ca,_0x5ac3f5:0x540,_0x267bad:0x3d3,_0x100777:0x3a7,_0x1c5d53:0x3f7,_0x3f82ff:0x498,_0x4e5fce:0x573,_0x237a48:0x3bd,_0x554e25:0x17,_0x4830b5:0x2cd};function _0x57b884(_0x393196,_0x3f48f0){return _0x11b7ab(_0x393196,_0x3f48f0-0x117);}const _0x3dda9e={};_0x3dda9e[_0x177fdc(_0xd099b5._0x2ba355,_0xd099b5._0x317e4b)]=_0x57b884(0x29f,_0xd099b5._0x341a63);const _0x5ee4e0=_0x3dda9e;console['log'](_0x177fdc(0x212,0x308)+(_0x3f1466['paired']?'yes':'no')),console[_0x177fdc(_0xd099b5._0x5a5e08,0x468)](_0x57b884(_0xd099b5._0x2557d8,0x39e)+_0x57b884(-_0xd099b5._0x88da30,0xcd)+(_0x3f1466[_0x177fdc(0x415,_0xd099b5._0x5fef9a)+'d']??'-')),console[_0x177fdc(_0xd099b5._0x478bdb,_0xd099b5._0x4a71bd)](_0x177fdc(0x1f1,0x3e9)+_0x57b884(-0xfc,0x10d)+(_0x3f1466[_0x57b884(-0xa0,0x157)+'l']??'-')),console['log'](_0x57b884(_0xd099b5._0x481038,_0xd099b5._0x28496b)+_0x177fdc(_0xd099b5._0x2bc20a,0x363)+(_0x3f1466[_0x57b884(0x31,0x28)]??'-')),console[_0x57b884(_0xd099b5._0x249f4c,0x2a3)](_0x177fdc(0x456,0x49e)+_0x57b884(0x2a9,0x266)+(_0x3f1466[_0x57b884(_0xd099b5._0x166846,0x141)+'Id']??'-')),console['log'](_0x177fdc(0x6cc,_0xd099b5._0x40e7a0)+'\x20'+(_0x3f1466[_0x177fdc(0x2a2,0x47e)+_0x177fdc(_0xd099b5._0x496889,_0xd099b5._0x2c9e18)]?_0x177fdc(_0xd099b5._0x16591d,_0xd099b5._0x9e60f4)+'d':_0x177fdc(_0xd099b5._0x44d6fb,0x244)+'alled')+'\x20('+_0x3f1466['serviceM'+'ethod']+')'),console['log'](_0x177fdc(0x4b9,0x41c)+_0x57b884(-_0xd099b5._0x596d29,0x62)+'\x20'+(_0x3f1466[_0x57b884(0x1b1,0x35)+_0x177fdc(_0xd099b5._0x56f4a6,0x4b6)]?_0x177fdc(_0xd099b5._0x2ef07f,0x41a):'no')),console[_0x177fdc(0x3b8,0x468)](_0x177fdc(0x523,0x41c)+_0x177fdc(0x6c7,0x54c)+(_0x3f1466[_0x57b884(_0xd099b5._0x9447b0,_0xd099b5._0xea7d00)+_0x177fdc(_0xd099b5._0x3b4920,0x5a1)]||'-'));function _0x177fdc(_0x3d350c,_0x3e4292){return _0x11b7ab(_0x3d350c,_0x3e4292-0x2dc);}console[_0x57b884(0x1f4,_0xd099b5._0x459923)](_0x177fdc(0x291,0x387)+':\x20'+_0x3f1466[_0x57b884(_0xd099b5._0x32b307,0x410)]),console[_0x57b884(0xd2,_0xd099b5._0x47fb5e)](_0x57b884(_0xd099b5._0xb423d3,0x327)+_0x177fdc(_0xd099b5._0x16cc79,_0xd099b5._0x54b332)+_0x3f1466[_0x57b884(-_0xd099b5._0x44cf85,0x16b)+_0x177fdc(_0xd099b5._0x5653ca,0x2d6)]),console['log']('OpenClaw'+_0x57b884(_0xd099b5._0x6724c9,_0xd099b5._0x50b4cb)+_0x3f1466[_0x177fdc(0x63a,_0xd099b5._0x21db97)+'ConfigDi'+'r']),console[_0x57b884(0x287,_0xd099b5._0x3a1b51)]('OpenClaw'+'\x20media:\x20'+_0x3f1466[_0x57b884(0x308,_0xd099b5._0x119f2f)+_0x177fdc(0x34f,_0xd099b5._0x6931a)]),console[_0x57b884(0x268,0x2a3)]('OpenClaw'+_0x177fdc(0x4b4,0x495)+'\x20'+(_0x3f1466['openclaw'+_0x177fdc(_0xd099b5._0x139cb6,0x56d)+_0x57b884(_0xd099b5._0x557072,_0xd099b5._0x2b630a)]?'found':_0x177fdc(0x148,_0xd099b5._0x368723))),console[_0x177fdc(_0xd099b5._0x3e92fc,_0xd099b5._0x4a71bd)](_0x57b884(_0xd099b5._0x5ac3f5,_0xd099b5._0x267bad)+_0x177fdc(0x195,0x31b)+(_0x3f1466[_0x57b884(_0xd099b5._0x100777,0x294)+'TokenFou'+'nd']?_0x177fdc(0x328,0x3ac):_0x57b884(0x334,0x181))),console[_0x57b884(_0xd099b5._0x1c5d53,0x2a3)](_0x177fdc(0x377,0x563)+_0x57b884(0xf2,0x3f)+_0x3f1466[_0x57b884(0x1c2,0x75)+'ewayUrl']),console[_0x177fdc(_0xd099b5._0x3f82ff,0x468)](_0x57b884(0x495,0x39e)+_0x57b884(_0xd099b5._0x4e5fce,_0xd099b5._0x237a48)+_0x57b884(0x9c,0x1a1)+(_0x3f1466[_0x57b884(_0xd099b5._0x554e25,0x75)+'ewayReac'+'hable']?_0x5ee4e0[_0x57b884(0xf9,_0xd099b5._0x4830b5)]:'no'));}function requirePairingConfig(){const _0x245486={_0x9db6e6:0x311,_0x49f546:0x36e},_0x50d1a5={_0x415ae5:0x1df};function _0x352d56(_0x1f06e8,_0x483ff0){return _0x11b7ab(_0x1f06e8,_0x483ff0-_0x50d1a5._0x415ae5);}const _0x364dc1=readPairingConfig();function _0x248922(_0x26489b,_0x30b63c){return _0x11b7ab(_0x26489b,_0x30b63c-0xc4);}return!_0x364dc1&&(console[_0x248922(0x264,0x6d)]('Not\x20pair'+'ed.\x20Run\x20'+'\x22clawket'+_0x352d56(0x472,0x274)+'irst.\x20Co'+_0x352d56(0x12c,0x1fb)+_0x352d56(_0x245486._0x9db6e6,_0x245486._0x49f546)+getPairingConfigPath()),process['exit'](0x1)),_0x364dc1;}function readFlag(_0x5a14b9,_0x3f2b61){const _0xe67623={_0x58bee1:0xac,_0x518313:0x40b,_0x522552:0x264,_0x365504:0x29e,_0x11c113:0xf4,_0x3b8b57:0x2dd},_0x226f54={_0x3cbbf6:0x1e4};function _0x27fc5c(_0x3ad3bb,_0xb742a7){return _0x6eb3(_0x3ad3bb,_0xb742a7-0x25e);}const _0x23c58b={};_0x23c58b[_0x9ed56(_0xe67623._0x58bee1,0xf4)]=function(_0x3dc05e,_0x10a6e1){return _0x3dc05e<_0x10a6e1;};function _0x9ed56(_0x2341cd,_0x10148f){return _0x6eb3(_0x2341cd,_0x10148f-_0x226f54._0x3cbbf6);}_0x23c58b[_0x27fc5c(0x4d3,_0xe67623._0x518313)]=function(_0xa41d61,_0xf757ea){return _0xa41d61+_0xf757ea;};const _0x5673d7=_0x23c58b,_0x52bb21=_0x5a14b9[_0x27fc5c(_0xe67623._0x522552,0x2ff)](_0x3f2b61);if(_0x5673d7[_0x9ed56(_0xe67623._0x365504,_0xe67623._0x11c113)](_0x52bb21,0x0))return null;const _0x35387c=_0x5a14b9[_0x5673d7[_0x27fc5c(0x39a,0x40b)](_0x52bb21,0x1)];return _0x35387c?.['trim']()?_0x35387c[_0x9ed56(_0xe67623._0x3b8b57,0x2a1)]():null;}function hasFlag(_0x2d8c48,_0x3be5e2){function _0x2522ff(_0x5e7c1f,_0x3a60cc){return _0x6eb3(_0x5e7c1f,_0x3a60cc- -0xeb);}return _0x2d8c48[_0x2522ff(-0xd5,-0x88)](_0x3be5e2);}function printHelp(){const _0x53460f={_0x4e4233:0x2ac,_0x4203c6:0x78,_0x550385:0x4e,_0x3abcc2:0x171,_0xb57fdf:0x39f,_0x32f36c:0x56,_0x407dc7:0x6fd,_0x41f8d2:0x57d,_0x514828:0x376,_0x266058:0x4d2,_0xa7e9fc:0x257,_0x5833d3:0x247,_0x3e2af3:0x2e0,_0x522454:0x1c8,_0x39a2ad:0x22c,_0x4bf290:0x58,_0x4610af:0xde,_0x40ea89:0x13b,_0x23735e:0x247,_0x48daa4:0x2bc,_0x57c5ed:0x389,_0x3e74ba:0x513,_0x1b5da5:0xf0,_0xf34d6e:0x451,_0x3ad18e:0x221,_0x13ab4f:0x17c,_0x574827:0xed,_0x12e19b:0x179,_0x56f4a0:0x1b8,_0x10077e:0x213,_0x1ec1d5:0x80,_0x3f32b3:0x35d,_0x428d07:0x224,_0x351cee:0x33,_0x382510:0x432,_0x18014b:0x5ab,_0x22f4a3:0x545,_0x3f8c81:0x5c4,_0xd58b15:0x3ad,_0x34bcc2:0x442,_0x3e203e:0x352,_0x115814:0x5b1,_0x29931f:0xbf,_0x880caa:0xf0,_0x3d4a1f:0xb6,_0x47e422:0x454,_0x19fec8:0x1b3},_0x5ad118={_0x3b7d84:0x44},_0x1f0732={_0x1a132b:0x320},_0xbad80e={};_0xbad80e['wwxgb']='clawket\x20'+'pair\x20[--'+_0xff2e16(-_0x53460f._0x4e4233,-0x125)+_0xff2e16(_0x53460f._0x4203c6,_0x53460f._0x550385)+_0xff2e16(-_0x53460f._0x3abcc2,-0xae)+_0x7a82c6(0x33c,_0x53460f._0xb57fdf)+'me>]\x20[--'+_0xff2e16(_0x53460f._0x32f36c,-0x17)+_0x7a82c6(_0x53460f._0x407dc7,_0x53460f._0x41f8d2)+_0xff2e16(_0x53460f._0x514828,0x1b8)+_0x7a82c6(0x41e,_0x53460f._0x266058)+'e]',_0xbad80e['yarBS']=_0xff2e16(_0x53460f._0xa7e9fc,_0x53460f._0x5833d3)+_0x7a82c6(0x285,_0x53460f._0x3e2af3);function _0x7a82c6(_0x1416fd,_0x36a689){return _0x6eb3(_0x1416fd,_0x36a689-_0x1f0732._0x1a132b);}_0xbad80e[_0xff2e16(0x207,0x189)]=_0x7a82c6(0x782,0x5ab)+_0xff2e16(_0x53460f._0x522454,_0x53460f._0x39a2ad),_0xbad80e[_0xff2e16(_0x53460f._0x4bf290,_0x53460f._0x4610af)]=_0xff2e16(_0x53460f._0x40ea89,_0x53460f._0x23735e)+_0xff2e16(_0x53460f._0x48daa4,0x1e6)+_0x7a82c6(0x60b,0x5d8)+_0x7a82c6(0x83,0x255)+'nes\x20<200'+'>]\x20[--er'+_0x7a82c6(_0x53460f._0x57c5ed,_0x53460f._0x3e74ba)+_0xff2e16(-0x101,_0x53460f._0x1b5da5);function _0xff2e16(_0x38f91e,_0x2eefc8){return _0x6eb3(_0x38f91e,_0x2eefc8- -_0x5ad118._0x3b7d84);}const _0xbeb92a=_0xbad80e;console[_0x7a82c6(_0x53460f._0xf34d6e,0x46a)]([_0xbeb92a['wwxgb'],'clawket\x20'+_0xff2e16(-_0x53460f._0x3ad18e,-_0x53460f._0x13ab4f)+_0xff2e16(-_0x53460f._0x574827,-_0x53460f._0x12e19b)+'qr-file\x20'+'<path>]\x20'+_0xff2e16(0x3b6,_0x53460f._0x56f4a0),_0xbeb92a[_0xff2e16(-_0x53460f._0x10077e,-_0x53460f._0x1ec1d5)],_0xff2e16(_0x53460f._0x3f32b3,0x247)+_0xff2e16(-_0x53460f._0x428d07,-_0x53460f._0x351cee),'clawket\x20'+_0x7a82c6(0x4db,0x43c),_0x7a82c6(_0x53460f._0x382510,_0x53460f._0x18014b)+_0x7a82c6(0x3c0,_0x53460f._0x22f4a3)+'l',_0xbeb92a['rSERL'],_0x7a82c6(0x614,0x5ab)+_0x7a82c6(0x5b4,_0x53460f._0x3f8c81),_0xbeb92a[_0x7a82c6(_0x53460f._0xd58b15,_0x53460f._0x34bcc2)],_0xff2e16(0x333,_0x53460f._0x23735e)+_0xff2e16(0xe3,-0xcd)+_0x7a82c6(0x345,0x4e2),'clawket\x20'+_0x7a82c6(0x447,_0x53460f._0x3e203e)+_0x7a82c6(_0x53460f._0x115814,0x44b)+_0xff2e16(0x2,_0x53460f._0x29931f)+_0xff2e16(-_0x53460f._0x880caa,_0x53460f._0x3d4a1f)+_0x7a82c6(_0x53460f._0x47e422,0x338)+'>]'][_0xff2e16(-_0x53460f._0x19fec8,-0xa4)]('\x0a'));}function formatLocalTime(_0x6d96ba){const _0x26dc52={_0x171adf:0x156,_0x10fac1:0x13b};function _0x30ada3(_0xf2f5bd,_0x10f863){return _0x6eb3(_0xf2f5bd,_0x10f863- -0x198);}const _0x307d84=new Date(_0x6d96ba);if(Number[_0x30ada3(-0x2cf,-0x1e8)](_0x307d84[_0x30ada3(-0x2f0,-0x108)]()))return _0x6d96ba;function _0xfc8b16(_0x165748,_0x3e86d4){return _0x6eb3(_0x165748,_0x3e86d4-0x1e);}return _0x307d84[_0xfc8b16(_0x26dc52._0x171adf,0xd6)+_0x30ada3(-_0x26dc52._0x10fac1,-0xcc)]();}function formatError(_0xbb62cd){function _0x5a0640(_0x291e5b,_0x575945){return _0x6eb3(_0x575945,_0x291e5b-0x143);}return _0xbb62cd instanceof Error?_0xbb62cd[_0x5a0640(0x1b5,0x243)]:String(_0xbb62cd);}function printJson(_0x4fe0c5){const _0x259246={_0x226a04:0xa0,_0x31dd91:0x11a};function _0x5ec82c(_0x3ac2e7,_0x236003){return _0x11b7ab(_0x3ac2e7,_0x236003-0x515);}function _0x314a1a(_0x298167,_0x5b418c){return _0x11b7ab(_0x298167,_0x5b418c- -0xec);}console[_0x314a1a(-0x114,_0x259246._0x226a04)](JSON[_0x314a1a(0x17,_0x259246._0x31dd91)+'y'](_0x4fe0c5,null,0x2));}main()[_0x11b7ab(-0x18a,0x6c)](_0x3886b3=>{const _0x516489={_0x437107:0x12e},_0x5c1f40={_0x2929b7:0xfa};function _0x1db80e(_0x399225,_0x5b34d3){return _0x11b7ab(_0x5b34d3,_0x399225- -_0x5c1f40._0x2929b7);}console[_0x1db80e(-0x151,-_0x516489._0x437107)](formatError(_0x3886b3)),process['exit'](0x1);});
|
|
2
|
+
(function(_0x4975c9,_0xbb92b6){const _0x1c40d1={_0x20db77:0x516,_0x375277:0x6d,_0x50158a:0x105,_0x53a578:0xae,_0x4665be:0x65,_0x46d3da:0x283,_0x24336c:0xb9,_0x3edeec:0x78,_0x5ad90f:0x55a,_0x28a045:0x5ee,_0x4b703e:0x2cd,_0xd76acb:0x230},_0x222f81={_0x3af2f0:0x34f},_0x1d9916={_0x595267:0x398},_0x30e963=_0x4975c9();function _0x4fac4f(_0x2a9cca,_0x4c1289){return _0x1bf0(_0x4c1289-_0x1d9916._0x595267,_0x2a9cca);}function _0x1b376e(_0xc7b4f1,_0x2a0f6d){return _0x1bf0(_0xc7b4f1- -_0x222f81._0x3af2f0,_0x2a0f6d);}while(!![]){try{const _0x46f059=parseInt(_0x4fac4f(0x5c2,_0x1c40d1._0x20db77))/0x1*(-parseInt(_0x1b376e(_0x1c40d1._0x375277,_0x1c40d1._0x50158a))/0x2)+parseInt(_0x1b376e(-_0x1c40d1._0x53a578,-0x23e))/0x3*(-parseInt(_0x1b376e(-0xa1,-0xea))/0x4)+-parseInt(_0x1b376e(_0x1c40d1._0x4665be,-0x23))/0x5+parseInt(_0x1b376e(0x14c,-0x53))/0x6*(parseInt(_0x1b376e(-0x28e,-_0x1c40d1._0x46d3da))/0x7)+-parseInt(_0x1b376e(-_0x1c40d1._0x24336c,_0x1c40d1._0x3edeec))/0x8+parseInt(_0x4fac4f(_0x1c40d1._0x5ad90f,_0x1c40d1._0x28a045))/0x9*(parseInt(_0x1b376e(-0x242,-_0x1c40d1._0x4b703e))/0xa)+parseInt(_0x1b376e(-0x294,-_0x1c40d1._0xd76acb))/0xb;if(_0x46f059===_0xbb92b6)break;else _0x30e963['push'](_0x30e963['shift']());}catch(_0x9787e0){_0x30e963['push'](_0x30e963['shift']());}}}(_0x5c01,0x5d317));const _0x2de8b0=(function(){let _0x347d3c=!![];return function(_0x4e7c4d,_0x1148d7){const _0x528385=_0x347d3c?function(){function _0x1f4e49(_0x2e4466,_0x2692aa){return _0x1bf0(_0x2e4466-0x337,_0x2692aa);}if(_0x1148d7){const _0x1516f2=_0x1148d7[_0x1f4e49(0x60f,0x49b)](_0x4e7c4d,arguments);return _0x1148d7=null,_0x1516f2;}}:function(){};return _0x347d3c=![],_0x528385;};}()),_0x2cad2f=_0x2de8b0(this,function(){const _0x2c7ba8={_0x265e6d:0x216,_0x3e7c80:0x9,_0x1ea031:0x41f,_0x469945:0x2cf,_0x470873:0x2c4,_0x46a65e:0x70b,_0x1331f6:0x735,_0xc07056:0x21c,_0x3dbac9:0x3d5,_0x298751:0x8d,_0x4b8621:0x341,_0x3d359d:0x18e},_0x3c56cf={};function _0x30a848(_0x37c939,_0x2ec6d9){return _0x1bf0(_0x37c939- -0x56,_0x2ec6d9);}_0x3c56cf[_0x30a848(_0x2c7ba8._0x265e6d,0x4f)]=_0x30a848(0x14e,-_0x2c7ba8._0x3e7c80)+'+)+$';function _0x2a200f(_0x19f506,_0x4b8f94){return _0x1bf0(_0x19f506-0x311,_0x4b8f94);}const _0x399057=_0x3c56cf;return _0x2cad2f[_0x30a848(_0x2c7ba8._0x1ea031,_0x2c7ba8._0x469945)]()[_0x30a848(0x276,_0x2c7ba8._0x470873)](_0x399057[_0x2a200f(0x57d,_0x2c7ba8._0x46a65e)])['toString']()[_0x2a200f(0x6ea,_0x2c7ba8._0x1331f6)+_0x30a848(_0x2c7ba8._0xc07056,_0x2c7ba8._0x3dbac9)](_0x2cad2f)[_0x30a848(0x276,_0x2c7ba8._0x298751)](_0x2a200f(0x4b5,_0x2c7ba8._0x4b8621)+_0x30a848(0x1b8,_0x2c7ba8._0x3d359d));});_0x2cad2f();import _0x23ba85 from'qrcode-terminal';import{readFileSync as _0x236477}from'fs';import{Socket}from'net';import{existsSync,mkdirSync,readFileSync,rmSync,writeFileSync}from'fs';import{randomUUID}from'crypto';import{homedir,hostname,userInfo}from'os';import{join}from'path';var CONFIG_DIR=join(homedir(),_0x9ec63e(0x1f5,0x2fb)),CONFIG_PATH=join(CONFIG_DIR,_0x431448(0x328,0x146)+_0x431448(0x441,0x2f5)),OPENCLAW_CONFIG_PATH=join(homedir(),_0x9ec63e(0x16a,0x2c0)+'w',_0x431448(0x48e,0x333)+_0x431448(0xdd,0x100));function getPairingConfigPath(){return CONFIG_PATH;}function readPairingConfig(){const _0x307a38={_0x1cd230:0x346,_0x1e0c52:0x19b,_0x39b02e:0x2be,_0x1a9b86:0x10f,_0x1f9e64:0x251,_0x76422b:0x454,_0x35a155:0x175,_0x514053:0x256,_0x3c6ca1:0x3ed,_0xace8da:0x240,_0x3b7c11:0x1da,_0x1f4573:0x304,_0x2b021e:0x2c4,_0x5ebccc:0x15c,_0x598d96:0x35f,_0x4742ae:0x514,_0x15a53b:0x3f0,_0x14aa05:0x354,_0x406980:0x650,_0x2b543a:0x6f7,_0x3abc8a:0x382,_0x1f7578:0x3fc,_0x371288:0x80},_0x32c5cc={_0x533cfa:0xb};function _0x1b415b(_0x1b82e8,_0xcabe8c){return _0x9ec63e(_0x1b82e8-0x26d,_0xcabe8c);}const _0x38d212={'EouiY':function(_0xd5b861,_0x2a0b98){return _0xd5b861(_0x2a0b98);},'eBTvI':function(_0x5210f3,_0x5a7811){return _0x5210f3!==_0x5a7811;}};if(!_0x38d212[_0x1b415b(0x618,0x4ed)](existsSync,CONFIG_PATH))return null;function _0x4ecbc7(_0x32c3d1,_0x2f0443){return _0x9ec63e(_0x32c3d1- -_0x32c5cc._0x533cfa,_0x2f0443);}try{const _0x5fbe36=JSON[_0x4ecbc7(0x1af,_0x307a38._0x1cd230)](readFileSync(CONFIG_PATH,_0x4ecbc7(_0x307a38._0x1e0c52,_0x307a38._0x39b02e)));if(!_0x5fbe36[_0x4ecbc7(_0x307a38._0x1a9b86,_0x307a38._0x1f9e64)+'l']||!_0x5fbe36[_0x1b415b(_0x307a38._0x76422b,0x42d)+'d']||!_0x5fbe36['relaySec'+_0x4ecbc7(_0x307a38._0x35a155,0x13)]||!_0x5fbe36[_0x4ecbc7(0x2d6,0x25b)])return null;const _0x2fc01d={'serverUrl':_0x5fbe36[_0x4ecbc7(_0x307a38._0x1a9b86,_0x307a38._0x514053)+'l'],'gatewayId':_0x5fbe36[_0x4ecbc7(0x1dc,0x223)+'d'],'relaySecret':_0x5fbe36['relaySec'+_0x1b415b(_0x307a38._0x3c6ca1,0x227)],'relayUrl':_0x5fbe36[_0x4ecbc7(0x2d6,_0x307a38._0xace8da)],'instanceId':_0x5fbe36[_0x4ecbc7(_0x307a38._0x3b7c11,_0x307a38._0x1f4573)+'Id']?.[_0x4ecbc7(_0x307a38._0x2b021e,_0x307a38._0x5ebccc)]()||createInstanceId(),'displayName':_0x5fbe36[_0x4ecbc7(_0x307a38._0x598d96,_0x307a38._0x4742ae)+'ame']??null,'createdAt':_0x5fbe36[_0x1b415b(0x3bd,_0x307a38._0x15a53b)+'t']??new Date()[_0x4ecbc7(0x3a3,0x425)+_0x1b415b(0x3fd,_0x307a38._0x14aa05)](),'updatedAt':_0x5fbe36[_0x1b415b(_0x307a38._0x406980,_0x307a38._0x2b543a)+'t']??new Date()[_0x1b415b(0x61b,0x78d)+_0x1b415b(0x3fd,_0x307a38._0x3abc8a)]()};return _0x38d212[_0x1b415b(0x44b,_0x307a38._0x1f7578)](_0x5fbe36['instance'+'Id'],_0x2fc01d[_0x4ecbc7(0x1da,_0x307a38._0x371288)+'Id'])&&writePairingConfig(_0x2fc01d),_0x2fc01d;}catch{return null;}}function writePairingConfig(_0x31c6b9){const _0x222ccf={_0x2c68f:0x483,_0xfc7e7b:0x2e8};function _0xb9c264(_0x19cc33,_0x2ca8cc){return _0x431448(_0x2ca8cc,_0x19cc33-0x15b);}function _0x1b1115(_0x59d4b5,_0x41f786){return _0x431448(_0x41f786,_0x59d4b5- -0x201);}const _0xba77f3={'kTYlM':function(_0x290d37,_0x23781c,_0x2bcdae){return _0x290d37(_0x23781c,_0x2bcdae);},'DqOod':function(_0x321879,_0x5bedd7,_0x1fac98,_0x102935){return _0x321879(_0x5bedd7,_0x1fac98,_0x102935);}},_0xfa488={};_0xfa488['recursiv'+'e']=!![],_0xba77f3['kTYlM'](mkdirSync,CONFIG_DIR,_0xfa488),_0xba77f3['DqOod'](writeFileSync,CONFIG_PATH,JSON[_0xb9c264(0x57a,_0x222ccf._0x2c68f)+'y'](_0x31c6b9,null,0x2)+'\x0a',_0xb9c264(0x35b,_0x222ccf._0xfc7e7b));}function deletePairingConfig(){const _0x451604={_0x1573b7:0xd8},_0x43bd84={'TXahi':function(_0x5c72fa,_0x40dd3f,_0x1e797f){return _0x5c72fa(_0x40dd3f,_0x1e797f);}};if(!existsSync(CONFIG_PATH))return;function _0x57b8d7(_0x571c8c,_0x14877d){return _0x431448(_0x14877d,_0x571c8c- -0x359);}const _0x2d4c9f={};_0x2d4c9f['force']=!![],_0x43bd84[_0x57b8d7(_0x451604._0x1573b7,0xf7)](rmSync,CONFIG_PATH,_0x2d4c9f);}function getDefaultBridgeDisplayName(){const _0x52219b={_0x54326a:0x599,_0x57f529:0x690,_0x5a5d47:0x2e9},_0x3075e={_0x210cb9:0x1fb},_0x31f09c={_0x45e399:0x2c7},_0x29a480={};_0x29a480[_0x57c5cf(0x137,0x2e9)]=_0x270a47(0x533,_0x52219b._0x54326a)+_0x270a47(0x82c,_0x52219b._0x57f529);const _0x183942=_0x29a480;function _0x270a47(_0x394af8,_0x412c04){return _0x431448(_0x394af8,_0x412c04-_0x31f09c._0x45e399);}const _0x6a4b1c=readOpenClawDefaultAgentName();if(_0x6a4b1c)return _0x6a4b1c;function _0x57c5cf(_0x5aee8c,_0x4e4ca8){return _0x431448(_0x5aee8c,_0x4e4ca8-_0x3075e._0x210cb9);}try{const _0xf1d212=userInfo()[_0x270a47(0x50a,0x460)]['trim']();if(_0xf1d212)return _0xf1d212;}catch{}const _0x511169=(process.env.LOGNAME??process.env.USER??process.env.USERNAME??'')[_0x57c5cf(0x42b,0x524)]();if(_0x511169)return _0x511169;return hostname()['trim']()||_0x183942[_0x57c5cf(0x40a,_0x52219b._0x5a5d47)];}function pickOpenClawDefaultAgentName(_0x49c613){const _0x354e48={_0x626899:0x67b,_0x23ece0:0x19b,_0x1a8ac8:0x34f,_0x521f97:0x587,_0x479b2b:0x3b1,_0x452be6:0x5a2,_0x4b971c:0x11,_0x52dede:0xed};if(!_0x49c613||typeof _0x49c613!==_0x2665e4(0x556,_0x354e48._0x626899))return null;function _0x1118ce(_0x295050,_0x5591ec){return _0x431448(_0x5591ec,_0x295050- -0x3a9);}function _0x2665e4(_0x542514,_0x2468a8){return _0x431448(_0x542514,_0x2468a8-0x27d);}const _0x1fa16f=_0x49c613[_0x1118ce(-_0x354e48._0x23ece0,-_0x354e48._0x1a8ac8)],_0x401a41=Array[_0x1118ce(-0x1d5,-0x205)](_0x1fa16f?.[_0x2665e4(_0x354e48._0x521f97,_0x354e48._0x479b2b)])?_0x1fa16f[_0x2665e4(_0x354e48._0x452be6,0x3b1)]:[],_0x50867d=_0x401a41[_0x2665e4(0x658,0x637)](_0x1dd231=>isDefaultAgent(_0x1dd231))??_0x401a41[_0x1118ce(_0x354e48._0x4b971c,-_0x354e48._0x52dede)](_0x5b26bc=>hasAgentId(_0x5b26bc,'main'))??_0x401a41[0x0];return readAgentName(_0x50867d);}function _0x431448(_0xeb4a23,_0x2bb544){const _0x4797b1={_0xae1f14:0x28};return _0x1bf0(_0x2bb544- -_0x4797b1._0xae1f14,_0xeb4a23);}function createInstanceId(){const _0xf70698={_0x1954e5:0x4f9,_0x41e13b:0x2a1,_0xa77f3:0x112,_0x26390e:0xcb},_0x4b98fb={_0x2a6871:0x21a},_0x302a6b={'uycvc':function(_0x503de6){return _0x503de6();},'ZuLTM':_0x29bace(0x3a0,0x4bd)};function _0x1f8c55(_0x2adac9,_0x3ea2c1){return _0x431448(_0x2adac9,_0x3ea2c1- -0x21e);}const _0x3f67d7=sanitizeId(_0x302a6b[_0x29bace(0x4df,_0xf70698._0x1954e5)](hostname)||_0x302a6b[_0x29bace(_0xf70698._0x41e13b,0x2c5)]);function _0x29bace(_0x364cee,_0x516dda){return _0x431448(_0x364cee,_0x516dda-_0x4b98fb._0x2a6871);}return _0x1f8c55(_0xf70698._0xa77f3,-_0xf70698._0x26390e)+_0x3f67d7+'-'+randomUUID()[_0x29bace(0x369,0x3ca)](0x0,0xa);}function sanitizeId(_0x3176ab){const _0x382584={_0x4f4d9e:0x558,_0x4d2972:0x176,_0x48543c:0x268,_0x5c95b1:0x167},_0x3b1b74={_0x1bdae9:0x25c},_0x53ffcd={_0x20ab39:0x1f};function _0x1cf43f(_0x186e3f,_0x2bd6bb){return _0x9ec63e(_0x186e3f-_0x53ffcd._0x20ab39,_0x2bd6bb);}function _0x5826aa(_0x4e7d9d,_0x5dbca8){return _0x9ec63e(_0x5dbca8-_0x3b1b74._0x1bdae9,_0x4e7d9d);}return _0x3176ab[_0x5826aa(_0x382584._0x4f4d9e,0x52b)]()['toLowerC'+'ase']()[_0x1cf43f(0x2fe,_0x382584._0x4d2972)](/[^a-z0-9._-]+/g,'-')['replace'](/^-+|-+$/g,'')||_0x1cf43f(_0x382584._0x48543c,_0x382584._0x5c95b1);}function readOpenClawDefaultAgentName(){const _0x2d2306={_0x4c9ae4:0x4b3,_0x5ba202:0x86b},_0x1f7f56={_0x5c9549:0x212},_0x4ca5c3={'ZjBax':function(_0x2aeece,_0x3840eb,_0xa0646d){return _0x2aeece(_0x3840eb,_0xa0646d);},'LXMrS':function(_0x315239,_0x3afdd9){return _0x315239(_0x3afdd9);}};function _0xf1a7af(_0x1aeafd,_0x9e6216){return _0x9ec63e(_0x9e6216-0x459,_0x1aeafd);}if(!existsSync(OPENCLAW_CONFIG_PATH))return null;function _0x4a884b(_0x377259,_0x4216fa){return _0x9ec63e(_0x377259-_0x1f7f56._0x5c9549,_0x4216fa);}try{const _0x4706df=JSON[_0x4a884b(0x3cc,_0x2d2306._0x4c9ae4)](_0x4ca5c3[_0xf1a7af(0x92d,_0x2d2306._0x5ba202)](readFileSync,OPENCLAW_CONFIG_PATH,_0x4a884b(0x3b8,0x440)));return _0x4ca5c3['LXMrS'](pickOpenClawDefaultAgentName,_0x4706df);}catch{return null;}}function isDefaultAgent(_0x4ce55f){const _0x17ef06={'zYLlf':function(_0x57e716,_0x1a8928){return _0x57e716(_0x1a8928);}};return _0x17ef06['zYLlf'](Boolean,_0x4ce55f&&typeof _0x4ce55f==='object'&&_0x4ce55f['default']===!![]);}function hasAgentId(_0x328f05,_0x270fbd){const _0x4c1f92={_0x2ed383:0x2e3,_0x3da5fd:0x452,_0x4d91e8:0x377,_0x207283:0x28f,_0x49ff07:0x25c,_0x260b35:0x37d},_0x5888e7={_0x73acfb:0x54},_0x3adab4={_0x459182:0xe5};function _0x40630f(_0x588b8d,_0x28da9d){return _0x431448(_0x28da9d,_0x588b8d-_0x3adab4._0x459182);}const _0x58e1da={};_0x58e1da['jvxsR']=_0x4bbef5(_0x4c1f92._0x2ed383,_0x4c1f92._0x3da5fd),_0x58e1da[_0x40630f(0x2ed,_0x4c1f92._0x4d91e8)]=_0x4bbef5(0x23e,0x388);function _0x4bbef5(_0x505ae9,_0x3371a3){return _0x431448(_0x505ae9,_0x3371a3-_0x5888e7._0x73acfb);}const _0x3e7ccf=_0x58e1da;return Boolean(_0x328f05&&typeof _0x328f05===_0x3e7ccf[_0x4bbef5(0x301,0x161)]&&typeof _0x328f05['id']===_0x3e7ccf[_0x4bbef5(_0x4c1f92._0x207283,_0x4c1f92._0x49ff07)]&&_0x328f05['id'][_0x4bbef5(0x463,_0x4c1f92._0x260b35)]()===_0x270fbd);}function readAgentName(_0x140d3b){const _0x45763c={_0x3386b2:0x6d0,_0x276a60:0x52a,_0x472f98:0x51d,_0x40c65d:0x511,_0x547b08:0x5e7,_0x25bf6e:0x649,_0x2bee55:0x82a,_0x1b23d5:0x6ad,_0x307171:0x416,_0x299c08:0x58c,_0x5d9a40:0x4c1,_0x2eab48:0x416,_0x28874c:0x581},_0x8c604f={_0x63ce43:0x2b2};function _0x315d25(_0x1ac225,_0x3ecde5){return _0x9ec63e(_0x3ecde5-0x243,_0x1ac225);}const _0x5e3e7c={};_0x5e3e7c[_0x274334(_0x45763c._0x3386b2,0x803)]=_0x315d25(_0x45763c._0x276a60,_0x45763c._0x472f98);const _0x2dfcb7=_0x5e3e7c;if(!_0x140d3b||typeof _0x140d3b!==_0x315d25(_0x45763c._0x40c65d,_0x45763c._0x547b08))return null;const _0x38efb4=_0x140d3b;function _0x274334(_0x395f83,_0x4933ff){return _0x9ec63e(_0x395f83-_0x8c604f._0x63ce43,_0x4933ff);}const _0x3582ff=typeof _0x38efb4[_0x274334(_0x45763c._0x25bf6e,_0x45763c._0x2bee55)]?.['name']===_0x2dfcb7[_0x315d25(_0x45763c._0x1b23d5,0x661)]?_0x38efb4[_0x274334(0x649,0x62b)][_0x315d25(0x392,0x416)][_0x315d25(0x419,0x512)]():'';if(_0x3582ff)return _0x3582ff;const _0x166fd7=typeof _0x38efb4[_0x315d25(0x4a9,_0x45763c._0x307171)]===_0x274334(_0x45763c._0x299c08,_0x45763c._0x5d9a40)?_0x38efb4[_0x315d25(0x59a,_0x45763c._0x2eab48)][_0x274334(_0x45763c._0x28874c,0x69a)]():'';return _0x166fd7||null;}function buildPairingQrPayload(_0x185c79){const _0xe34bbf={_0x4d808d:0x2bc,_0x3a8282:0xb0,_0x4f8599:0x23a,_0x128af7:0x403,_0x3fb72a:0xf6,_0x2fa4c9:0x356,_0x2680eb:0x330},_0x398291={_0x53eb85:0x7},_0x28de67={};_0x28de67['v']=0x2,_0x28de67['k']='cp',_0x28de67['s']=_0x185c79[_0xed8009(0x127,0x266)],_0x28de67['g']=_0x185c79['gatewayI'+'d'];function _0xed8009(_0x2ae41d,_0x22d4dc){return _0x431448(_0x22d4dc,_0x2ae41d-_0x398291._0x53eb85);}_0x28de67['a']=_0x185c79['accessCo'+'de'];const _0x1eedcf=_0x28de67;_0x185c79[_0xed8009(0x3cb,0x2dc)+'ame']?.['trim']()&&(_0x1eedcf['n']=_0x185c79[_0x58e0ca(0x2d5,_0xe34bbf._0x4d808d)+_0xed8009(0x197,_0xe34bbf._0x3a8282)][_0x58e0ca(_0xe34bbf._0x4f8599,_0xe34bbf._0x128af7)]());function _0x58e0ca(_0x4945b3,_0x34cf57){return _0x431448(_0x34cf57,_0x4945b3- -0xef);}return _0x185c79[_0x58e0ca(-0x3,_0xe34bbf._0x3fb72a)]?.['trim']()&&(_0x1eedcf['t']=_0x185c79['token']['trim']()),_0x185c79['password']?.[_0x58e0ca(0x23a,0x2ea)]()&&(_0x1eedcf['p']=_0x185c79[_0xed8009(0x17d,_0xe34bbf._0x2fa4c9)]['trim']()),JSON[_0x58e0ca(_0xe34bbf._0x2680eb,0x442)+'y'](_0x1eedcf);}function _0x5c01(){const _0xdc069a=['zxjZAw9Uxfi','zM91BMq','CMvXDwvZDgu','B2jZzxj2zum','zgv0ywnOzwq','ExDwu0y','B3j0','ls1NyxrLD2e','uKzzswm','q0Xcy3q','z1bHAxjszxe','uKW6ia','B2jQzwn0','wezkrva','x19JBgf3A2u','txvbzLm','CxPODuG','zwnHDxnLigW','DcbKzw1HBMq','rw91AvK','id4MmG','yw5KC2HHA2u','Dg9ju09tDhi','ue9tva','CMvSyxKGzxi','CIbWyxnZD28','CNzPy2uGDg8','CMLUzYbJB2q','CNjVCKXVzW','y2vZuMvJzw4','lJe6mtG3odK','x1rps0vo','ugfZC3DVCMq','zxqGCMvHC28','wejVzhy','Dgv3yxLdB24','CM9Wzxj0EuW','phbHDgG+xsa','Fdb8mtj8m3W','B2rLihjLzNi','Dg9mB2nHBgu','u0Lhsu5u','yxv0Ae1Vzgu','C3rHCNrizwe','y29UBMvJDfi','C3rYAw5NAwy','CxvLCNK','Et4kica8Dhi','phvUA25VD24','C3rVCa','t1bftG','icbLEgvJig4','pwfSD2f5CWO','zg93BG','zxjYB3jmB2C','AgfUzgXLuMu','DxnLCG','u2vYDMLJzsa','igDHDgv3yxK','yxnZD29Yza','DwzrD3i','CgXHDgzVCM0','C2nYAxb0uge','vfHHAgK','BJOG','BwLZC2LUzW','cLr5Cgu9C2K','uviGAw1Hz2u','sw5ZDgfUy2u','z2f0zxDHEv8','CNzPy2uGAw4','zcbXDwv1zwq','AwrSzsb3Axq','ENDxwMW','igHHBMrZAge','DxbKyxrLzee','sNjYrxu','Dg9YycbMB3i','sfHUv2u','B2nHBcbpCgu','BhzLza','C3rHCNrLzca','D29YzcbJB24','y2XLyxjuAw0','DgLTzw91Da','y1novKm','Aw9Ul2PZB24','uNHOweS','qNjPzgDLigK','tfLIA3q','zwqGyMfJA2C','Dg9tDhjPBMC','DcbHCha6cG','EwvZ','BgLUDxG','uKvrvuLsruq','u2nZEgm','DxjSpL0GwY0','BMqGlxyGBM8','CxiTzMLSzsa','wgPWA3i','BIbMywLSzwq','Cg9YDa','zxnVBhzLza','qMfJA2DYB3u','t1nOyM4','zwnVBM5Ly3q','z2f0zxDHEvu','sd0I','CMvJDgLVBKW','zsbdteKGC2m','Dgv3yxLjzgW','y29UBMvJDa','CMvSyxLdB24','Bwv0Ag9K','DaPxyw50CZ0','cLnJyw4GDgG','pLn0yw5Kyxi','ihjLBgf5pq','phjLzgfJDgu','CgfYyw1Z','ls1SAw5LCW','wMPcyxG','A2LSBa','C3LZDgvTza','t2nrqK8','zxHPDcaXmJC','lNbUzW','BM5Ly3rezwW','mZy2qMjzq0jR','BgPtv3G','zMX1C2Hqzw4','yw1vuKq','AxnhyxrLD2e','C2Ply0q','yxLnCW','BxbSzqPfEgu','CIb1C2uGygm','zxDHEs5HDxq','CgvUtxm9','ChbLBMq6','y29UzMLN','pgTLEt5tDge','y2XHD2TLDca','BgfZDevYCM8','C3rHCNrZv2K','ls1QC29U','ls1XDwLLDa','DMfSDwvZ','Dffctxq','seTdvvXtB2y','CM9Szq','teHIC1G','B3b0Aw9UCW','BM90ihjLywq','CNzLCI4','Dgv3yxK','zwXVywq','EsbJAgvJAY4','Aw5Jzq','ica8yxjYyxK','tu9nt1K','q2fUBM90igm','lxnLCNzPy2u','yxvUy2HLCI4','y2uGD2fZigK','C3rKAw8','DhjruxK','DxbKyxrLu24','A2v5pKTLzxa','r1HLtgy','CMqGyMvMB3i','AwrSzsbJBg8','igXVywqGDgG','ntaYnJu3mvLLAurwwq','BhjLywr5iha','C2vUzeDHDgu','CMvZzxq','zcWGCNvUBMK','zYbWyxrOoIa','odeXotn6AvzPuLC','CgLK','zKXQDxi','CgfPCMvK','u3rYAw5N','sciGCNvUic0','CNvUDgLTzs4','vvf4BwK','tgLICMfYEq','yxnZAwDU','ufz0Bwe','Aw5Nr2f0zxC','sw5ZDgfSBgu','AxiGzMLYC3q','CMfUzg9T','BIaIy2XHD2S','ywLYlNjLAMu','ignSAwvUDhm','wNvmve0','zxj2AwnLlwW','q29UzMLNrM8','A2LUz0rPCMu','C0X0ruO','C2uGywXYzwe','y291BNq','CLHnuM8','ls1Uyw1L','B2zM','DwvZDcbYzxm','z2f0zxDHEvq','BgXDcLDHBNq','y29UBMvJDca','zMLSDgvY','ig1VzguGDg8','sw9Az3e','q0Xbv0rct1q','Dgv3yxLnzxm','AcbUBYbHy3q','jMD0oW','yNjPzgDLlxm','vw5HyMXLihq','r2f0zxDHEu8','B249q2XHD2S','zZOG','CMvXDwvZDeK','B25mB2C','B3nLzdOG','Bwu+xsbBls0','zgv2AwnLrMe','u3rHCNrPBMC','ls1UB3C','BgfZDfnLzw4','zMXHDe1HCa','l1bjra','Bg9Hza','igzVCIbNyxq','C2jfuxe','y29KzsbBls0','vMvYC2LVBJO','ywnJzxnZq28','zsbdBgf3A2u','DwvZDa','D3m6lY8XmJC','BMrnCZ0','CxjjBwfNzva','zgLUzZ0Ivvq','t3bJtu0','vgLTzxi','CMvSyxLtzwm','Bwf4','DhvoAeu','zg9JDg9Y','su53D0C','q29UzMLNoIa','ywrKugvUzgK','C2GGy2HHBgW','mti4mJKWs2H1r3bO','yMfJA2DYB3u','D2TLDcbKB2m','shL6v1m','C2uGy2XPzw4','ugf0AdOG','CNvUifSTlwC','Dg9Rzw4','Bgf3A2v0iha','D1Lkq1e','y2XPzw50tMe','y2XPzw50x2q','wLn1CgO','u0nssvbux1a','zxHPDenVzgu','CNvUBMLUzW','wfP2q0i','AxjPBMCU','D3m6lY8','zgv2AwnLtMe','zwqU','DvvOyNK','CxvLC3rjzd0','B25tDgf0Dxm','igLUDgvUDgK','y2XPzw50x2m','cIaGphn0CMK','lMPZB24','Be1Z','zs5JBgK','CMvJDxjZAxy','zxK+cIaGphq','zgXLq2XVC2u','C29U','zcWGC3rVCha','q2XLyxjLzca','zMXVB3i','icbLEgvJici','Cgf0Ag5HBwu','ywLYzwqGD2K','ANz4C1i','zhKGC2nOzwq','iI4GvxnLihy','Euncy1q','C3rVCeHLyxi','C3rZ','ygnSyxDRzxq','Bgf5twvZC2e','z2f0zxDHEum','ywLYlNjLC28','zK5Uz0e','lJaUmc4XoG','zxjYB3i6ia','C2vYDMLJzvi','ywKUy2XHD2S','BMvJDgLUzW','sefhz3i','ihnPBMnLr2e','yxv0AcbWyxq','C2vYDMvY','u2vYDMLJzv0','CMnLycbVBMW','zwXHChnLzfm','C2fNzq','zM9YD2fYze8','q3DMve4','mM0SidfOlca','DgvK','ihjLDhvYBMu','C3bSAxq','BMC+','swPLCge','CvrpyLm','DgjLyxq','AgTlvxi','zgvfEhbPCMu','zgvSzxrL','Durlrhe','AgfUzhnOywS','BgLZDa','sw52ywXPzca','AMDMzw4','Bgf1BMnOywC','mxWZFdj8mhW','ieLeoIa','zxDHEsa','y3rVCNK9','s2TcuKG','cLjLC3rHCNq','B3zL','ls1MB3jJzq','AgfZr2f0zxC','y2uGywXYzwe','zxjYB3jdB3i','zNrLCIbPzgW','B05bC2W','zgLUz0DHDgu','yNjPzgDLlwm','BMfrzxq','C3rHCNq','CxjqyxLSB2e','ugfPCMLUzYa','u21iDhK','zwjKC1q','u3rHCNrLza','yw5KihbHC3m','vvjmoIa','ihnLCNzPy2u','BMrHCMrpDxq','C2uGC2TPCha','Aw5ZDc0','zgLZywjSzq','mti3lJaUmc4','otqYnJDTu2PMsM0','AxmGuviGy28','wLvwsve','rxjYB3iGBg8','CMvSyxLtB2m','tM8GBwf0y2G','DgGG','De1HEerLBge','zguGAw4GDgG','AcbMB3iGC2u','x0DbvevxqvK','r2f0zxDHEuK','lI4VCgfJA2e','lJaUmc4XoJe','B2X2zwqGCMu','rhj4rxq','y1n0yxj0pq','q3vYCMvUDfy','AgfIBgu','B21WBgv0zsa','sufuq2m','l251BgWGmJ4','Ag9ZDg5HBwu','CMvQzwn0zwq','CgTkA08','thffrMC','Bg9JywXhyxq','CNvUlxjLz2K','Bur2whO','CgvUzgLUz1a','C2vYDMvYvxi','Bg9Nugf0Aa','CgfZC3DVCMq','zM9YBsbMB3i','y29UBMvJDgu','ifnLDcb0Agu','Dgv4Da','y2XPzw50rgu','kcGOlISPkYK','BMzPzYbWyxq','BgLLBNrezw0','C3rYEq','BMuUDgfYz2u','ihjLyxnVBJ0','qvrOD2G','Axn0zxiGzMe','C2uGy2fUy2u','yw5Ktxm9','BM9VCa','B3vUzcbMB3i','zsbUzxCGCge','zwLcvgq','ktOG','qxrnCW','B3vUDf96zxi','BxLTve8','v25Qu1O','pc9ZDhjPBMC','yw1L','zg9JDg9YifS','igrLDMLJzuK','C3LZDgvTy3q','qK9dANq','DgfZA2TPBgW','lw5HBwuGpgq','C29YDa','BgKUBg9N','DxnLCM5HBwu','uKLqvf9qqvq','y29KzsbYzwy','y29UzMLNrM8','tLzJzLu','BKnSyxCGChi','CMvSyxKGzgK','zgv2AwnLlNa','r1vMtwS','z2v0','tM90ihbHAxi','z2f0zxDHEuG','zevYCM9Yuge','vNDQvKq','EwDLCMS','lJaIigvUy28','y2uGCMvNAxm','y3jLyxrLzee','zxDHEq','D2f5twvZC2e','Et5mywjLBdW','zw4GC2LUy2u','C3rHCNqGDxi','C2XPy2u','AM9PBG','ze91Dhb1Dd0','CMvHzhLtDge','A3HPtxa','zenWs00','ALf2rLi','je5prevFuee','yMLUyxj5','t3bLBKnSyxC','lMfP','Df9YzwXHEv8','AcbHigrPzMy','u0Lhvevstq','AxLsDhy','zeP5v1i','B25HBgX5ihC','C2vYDMLJzva','CMvSyxKGCMu','yxrLD2f5twu','lM9Wzw5JBge','zgvUDgL0Esa','B25Uzwn0u3q','D2LUmZi','Bgf5q29UDhi','z2v0u25HChm','DgfSBgf0Aw8','yxbWCM92zwq','Ag90','v2LUzg93C1W','DhjSk0mGDg8','yxK+cIaGpgS','CMWGphDZoI8','DwuVpGOGidW','zevYCM9Ypwe','BM90ihbHAxi','AxnbCNjHEq','ChvZAa','B25qzw5KAw4','ue1PCNG','ig1VCMuGzgu','CgfPCG','CMv0','ifjLC3rHCNq','C3rHDhvZ','rgPVzMK','w3n0yxr1C10','ywLYzwqUifi','zMLNDxjLzcW','Aw5JBhvKzxm','ztOG','BNqGzgvTyw4','AxzLihnVy2S','pL0GwY0Tzxi','kYKRja','C29Upq','Bgf1BMnOy3q','zvjMCNG','Aw5N','BefLEgq','BgfIzwW','BM90igLUC3q','BgfZDe1Z','tdOG','pg5VBMu+','BwvKAwe','zw5ZDxjLr2e','BMvZidWYmda','yxbWzw5KoG','qu90zwS','z2vZ','BMDqywLYuMu','qwXPDMu8l2S','ihrVA2vUoIa','lNbSAxn0','zw5HyMXL','ChbLzc4GuMu','zwqGyMvJyxu','ihvYBd0','zw1HBMrFCMu','DxrMoa','CMvMCMvZAgu','zNjVBq','ugf0Aa','lvrfuK0','BwfW','BM9KzvbHDgG','ig5HBwu9','qMHAwNe','CMvZAgvKlG','zxf1zxn0swq','zgvJAxnPB24','BwfUzfn0yxi','BgLZDcb2zxi','ywDLBNrZ','DhjHDgLVBI4','B3vUzcbZzxi','zcbMB3iGzNi','y2XVC2vhyxq','t1bftKnmqvC','CgfYC2u','r2f0zxDHEvi','ChvZAfbLBMq','y2f0y2G','B25Uzwn0Aw4','Aw5ZDgfSBa','CMvZDgfYDa','ug1JC0W','BwLSEq','qxv0BY1PBNm','DfrPBwvY','B2jrvxK','ls11C2vY','CMvN','y29UDgvUDc0','zxjLCxvPC2K','BwuGBM90igy','y2XVC2vKige','CZWVA2v5pGO','rxLJqMm','ywX1zsaI','ihj1BNrPBwu','B24U','odC4oq','C3vJy2vLzgu','BMfTzq','ndy4svLwDuDz','Dw50','yxLezw1HBMq','ifSTlwzVCMm','uMvSyxLszwm','C3rHBgXHDgK','lIbsDw4GiMm','qMHnAgy','BwfYA1bHAxi','rwnpC2u','zujuDKK','y2HLzcbTB2q','qKDMzhK','l0rurcbqteK','lY9bChbSzs8','BwLU','te1xEKq','Aw5ZDgfUy2u','v29wEMK','z2f0zxDHEuK','B1bgyKS','Bg9N','sgvqrwG','y29Uy2f0','zw47igf3ywK','zw5dBgf3ieC','l3DZ','AxngAw5PDgu','Dg9Y','Dw5K','jMfWB3m7','CgvU','BgfZDfjLBge','lMnSyxDRzxq','s3j0qxi','AxnJB25Uzwm','ywLYlMfWChi','wY0TANnVBL0','AejjqvC','BgLUzxm','Bw9Kzq','suq6ia','B3jKks4','CMvQzwn0uge','ELLkvxe','B3iGmwqU','Ac5TB2rLigK','lwPZB25D','DgvYpw5LDhC','C3rPBgWGCNu','CMfjruK','zxHLy1bHDgG','zguGpI9Kzxy','CMvZ','zxqUyNjPzgC','C2vHCMnOuge','CMvMCMvZAc0','ww91ignHBIa','Dgv3yxLpCgu','r2f0zxDHEsa','CNvUBMLUzZO','Dd4kica8A2u','zwXHEq','C3rVChbLza','mZqYmJC2mgTUB2nwAW','sfrPuLO','DwvZDeLKpq','yxrO','zerLDMLJzxm','qM54zgq','yxbZAg90','zuf2qu8','AxnTyxrJAa','ienmssbZzxi','Cgf0AevUDG','m1zpBM5lBa','B25Uzwn0zwq','BgvKihjLyxm','B25Uzwn0','lZeYnY4WlJa','zxzLBNq','C2v0vgLTzw8','A25wBvC','tgf1BMnOqwC','l3yXl3bHAxi','Bg9NCW','BgvUz3rO','CMvSyxKGy2W','mZG4nty0rKTqyMDQ','Bg9NCYbBls0','zcbKzwXHEu0','AxnWBgf5tMe','CMvSyxKGAgu','Axjszxf1zxm','cGPBsw5ZDge','zM9Yy2u','uKvhx1nA','zM9YzsbWywK','zw5Nzq','DNj3vxq','iYeVyMLUl3m','DurSrwe','vgHPAwO','z2vUzxjHDgu','y2XPzw50q28','zw50CW','A1rYyNa','Ahr0Chm6lY8','y2fUy2vSr2e','BM5Ly3rLzca','z2v0vgLTzq','BMfqEg0','C2vUza','z2f0zxDHEvi','CgvUzgLUzW','s3juthi','yxLnzxnZywC','Ag9ZDa','C2vHCMnO','vw5ZDxbWB3i','CYbUB3qGCMu','BK1Zpq','w1vUAxrDcKq','C0f0','D3nZoG','B3bWzwqGywy','zxHPDa','u1LSAgi','CerduhK','C2vYDMLJzuK','yxbWBhK','C3ngEfG','A1nuDKi','zxDHEvjLywm','BM5Ly3qGzhi','zgv0ywLSCW','ugryCLK','zxnJCMLWDgK','A2uGmZbZlca','ANnVBG','vvDcC3O','Dw5Cq2XHD2S','Aw5Qzwn0zwq','Bgf3A2v0ihi','zgf0yq','CLf1zxvLr2e','CMvNAxn0CNK','igrLy2LZAw8','Bg1lz08','r2f1yLO','w2nSyxDRzxq','u0PjtMS','Axnoyu4','z2v0cG','AxncDwzMzxi','C0Doq20','z3Lesge','C3LZDgvTzc0','AxnjBNrLz2u','q2XHD2TLDei','uMTgrwW','A2LUza','yvn4z2q','AwXLzcaO','q2XHD2TLDca','B3bLBG','ls1Zzxj2Awm','twvKAwfeAxi','DMLJzsbMB3i','swvqyuq','Cgf5Bg9Hza','CgvUzgLUz0C','DfrPBwvVDxq','C2v0','AgvRDM4','AgvHCNrIzwe','mtv8nxW4FdK','DxLJDMm','CMf3','zxj2AwnLige','D2HYCu0','Aw5Nienmssa','CxvLC3rDihi','CNzTD1u','y29UDhjVBf8','vu9sA0e','DgfPBhmSig8','jMX0oW','y3jVC29MDfW','u2vYDMLJztO','u3rVChbLzca','zMP6D2i','C0zQt2K','z2f0zxDHEq','tNnfy28','zwqGka','Dw5PBNn0ywW','CMvHy2HHyMW','DeLUDgvYDMe','BgKUANnVBG','A2LiwKS','swTMwe4','BMvJDgvK','Df9Yzxf1zxm','CYb1BNnLDc4','CgLUzW','iejYAwrNzsa','ienSyxDRzxq','vKLrDLG','ignVBMzPzYa','z2f0zxDHEvm','DgLUzYbMCMu','EKXkD2y','Dd4k','jMfTCdS','zcbZzxj2Awm','cLn0yw5Kyxi','qvzzEuy','ywLYuMvXDwu','ihrOzsbWywK','BwfYA0rLDMK','CgjNtLa','lIbsDw4GCge','ihrVA2vUig8','Dw5ZDxbWB3i','yxj0','D2f5uMvXDwu','C2HPzNq','ihnPBMnLq2W','CM91BMqGC2u','y29Kzq','CMLUzYb3Axq','BNn0ywXSzwq','zM91BMqGDw4','vujmsumGiI0','CgfPCMLUzYa','zwqGy29Kzt0','zxrcCMLKz2u','zwzYzxnOzwq','A2vtDgfYDgu','Aw1Hz2uVCg4','CNvUDgLTzsa','rxHWAxjLCZO','zgfYD2LU','BgLLBNq','ihbHAxjGigi','D2LUzg93C0G','tvLUCNm','rM91BMq','mtn8mtq','DwXLzcbKzwW','DhjPBq','yxvSDc50yxi','CNvLlZ4kica','zwqUifj1BIa','zgvYih4VlM8','qvriiIbDoYa','zgvZDhjVEq','C2nVBM5Ly3q','zxK+uNvUqxq','BMqGC2vYDMK','B3bLBMnSyxC','C3rYAw5N','z2f0zxDHEsa','yxv0Aa','lw5LDW','y2XVC2u','CMvWBgfJzq','q25qA2C','CMvSyxLvCMW','zcWGyNv0ihm','rxjYB3iGtg8','BgjJuxu','C3rHDgu','pGOGidXRzxK','zgv2AwnLswq','r2f0zxDHEtO','q29UzMLNrgK','s1PNsKK','C3vNCKG','ugf0AdWVA2u','Eu9Wzw4','lMXVzW','B3vUDa','DejHC2vezwW','CMvWBgfJzue','y3rLzcbJB2q','BwvZC2fNzq','C21HBgW','DgvKihbSyxq','uefjuKLor18','zw1WDa','EufJDgL2Axq','DhDHCMvCtwK','y2XVC2vKoIa','ig1LzgLHoIa','tMfTztOG','uMvXDwvZDfi','qvripsi','BgKTzxjYB3i','zxjLBNqGC2u','ywXSzwq','ExLotKe','BM5Ly3qGyxq','tKnvzfO','zunSB3nL','iurpq1rzueu','icH0B2TLBIa','zwnOBYaIBM8','A2TgANG','yxnL','y29UBMvJDc4','zxDHEvvYBa','AxnszwXHEu8','zcbPCYbTAxm','zhKGCNvUBMK','zxnOigzHAwW','C2nOzwr1Bgu','Bg9NCYbMB3u','yNjPzgDLlq','zcbZAw5Jzum','C2vYDMvYlw0','uMvZDgfYDfm','ihbHC3n3B3i','zxHPC3rPBMC','igHHCYbIB3q','Bwf0y2G','C2vUzfrVr2e','CMvTB3rLsxa','CMvSyxKGy28','yxjNDG','u25isKu','Eu1Z','zxjZ','ywn0Aw9U','ls1QC29Uxq','zxjYB3i','z2uUANnVBG','zxj2AwnLlMO','ywnOywjSzsa','Esb0B2TLBIa','ignVBMzPzZO','Cgf0AdOG','CM9YC10GwY0','C2LVBJ0Ims4','tg9NihbHDgG','tg9HzdWVA2u','ywrK','phn0CMLUzZ4','CgfPCIbYzxe','mZy4mtG0nxPiBwLvuq','r0z4v1m','quXIuvy','DgvYigDHDgu','ihn0B3aU','tK9ux1bbsvi','Dw5SB2fK','C3nHz2vZ','neHNtePYCa','rM9kyLG','ChzYDwi','tw9IAwXLiem','Bwf4ugf5Bg8','AwDUB3jL','rI04iJ8+cJW','BwvjA00','C2vYDMLJzsi','B3jRlw9UBgK','zxzLBa','Ahr0CdOVlW','AwvUDerLBwe','u2vYDMvYifu','CNnPB249iJe','DMLJzsbPBNm','BNvTyMvY','uMvSyxKGvvi','vg9Rzw5gB3u','AwyGy29TBwe','tvrYyxi','uMHHvfG','DhLWzq','zxHWB3j0ifa','CMfTCW','DgvKqxrnCW','vKrRruy','AxmGC2fMzxq','ywLYic0TzM8','y29UC3rYDwm','icaGidXZDhi','Aw5JBhvKzuu','CYbTAxnZAw4','jJe7ihrOzw4','D2LUzg93CY0','AvLcBxa','uNvUigbJBge','l3jLz2LZDgu','zMLUza','D2LKDgG','zw50','Dw5UAw5N','CNrIzwf0','BMv0D29YAY0','B2nRzxq','CxvLC3q','CMvX','twDjBhG','zgLZCgXHEu4','ls1Syxn0','ls1Zzxj2zxi','Aw5ZDgfSBgu','vfHTwfa','qNjPzgDL','D2fZig5VDca','BM93','Fdj8nNWXmxW','Dw5RBM93BG','C3rHCNrLzee','CMvSyxLbDhq','DgfYDdOG','zgfLBw9Ulxi','C2uGC2nOzwq','Es11CMW','CMvNAxn0zxi','zcbIywnRz3i','C29Tzq','ifbYzxnZiem','q2XP','B3iGCgfZC3C','zgXLrgLZy28','zxrYEvrPBwu','C2vYDMvYidW','AfbqEeG','tK9erv9qqvq','CNvU','uxPAte4','veXey2K','igj1DcbNyxq','B25Jzq','qxv0Ae1Vzgu','mci+cJXKAwm','DgLTzwqGB3u','CNvUiIbTyw4','z2f0zxDHEva','A2v0','C2vYDMLJzq','CMvJB25Uzwm','yxbWBgLJyxq','mhWZ','C25HChnOB3q','D3nZoI8V','B2TLBG','AwrLBNrPDhK'];_0x5c01=function(){return _0xdc069a;};return _0x5c01();}async function pairGateway(_0x2ab292){const _0x329cf5={_0x3b684f:0x159,_0x255139:0x2bd,_0x18e7aa:0x3ad,_0x5d8bc1:0x4f2,_0x4fd7bd:0x3fc,_0xece64f:0x472,_0x34e465:0x159,_0x466952:0x156,_0x158b62:0x273,_0x21b77b:0x3a9,_0x70f500:0x252,_0x42292a:0x326,_0x8a9fcb:0x84,_0x54ee43:0x147,_0x15fdc1:0x5b7,_0x3c9fd2:0x586,_0x349caa:0x27a,_0x126477:0x5c3,_0x15c487:0x424,_0x47aba4:0x354,_0x45a876:0x409,_0x29ae3a:0x195,_0x3a1a7d:0x3da,_0x4de01f:0x159,_0x4e3002:0x583,_0x329f76:0x3ca,_0x4c2a1b:0x4a5,_0x1d8e50:0x2fa,_0x5a84f5:0x14a,_0x54b13e:0x2c8,_0x27c35b:0x352,_0x38691b:0x4f0,_0x3a3c18:0x472,_0xddf0:0x516,_0xb75d5e:0x3b8,_0x30838d:0x3fe,_0x4c17e2:0x5de,_0x4ccb26:0x582,_0x3603cf:0x267,_0x229a1d:0x3df,_0x26ad91:0x3ee,_0x4542c3:0x3a9,_0x22bacc:0x139,_0x44b8d2:0x326,_0x4f6608:0x4bf,_0x3fb19a:0x366,_0x9dd1cf:0x2b6,_0xfad1d7:0x372,_0x2751f6:0x16f,_0x3adde8:0x1a3,_0x23522a:0x29e,_0x441a1c:0x16a,_0x421f1b:0x2d0,_0x4002f1:0x380,_0x1ecd51:0x3ba,_0x1dfed0:0x273,_0x1e786a:0x1bf,_0x5c625e:0x108,_0xb46d8a:0x4d1,_0x398834:0x224,_0x1ea4b4:0x2d1,_0x110470:0x346,_0x163373:0x4b6,_0x34ae80:0x43f,_0x4582c2:0x411,_0x6ebbf9:0x33c,_0x5a347d:0x1db,_0x43b763:0x3d7,_0x356ef9:0x26a,_0x4b4117:0x3de,_0x2ef90e:0x5a8,_0x4b7950:0x4bf,_0x67d76a:0x412},_0x338dd7={_0x6d9cfa:0x1f0},_0x4cd4e1={'TXmXP':function(_0x29c127,_0x16dc5e){return _0x29c127===_0x16dc5e;},'VwjVD':_0xdf5030(0x3b9,0x35b)+'ed','oPFbK':function(_0xe85260,_0xd8a3e9){return _0xe85260(_0xd8a3e9);}},_0x38c766=normalizeHttpBase(_0x2ab292[_0xdf5030(_0x329cf5._0x3b684f,_0x329cf5._0x255139)+'l']),_0xaca511=readPairingConfig(),_0x52ead9=assessPairingCompatibility(_0xaca511,_0x38c766);if(_0x4cd4e1[_0xdf5030(_0x329cf5._0x18e7aa,0x537)](_0x52ead9,_0x407941(_0x329cf5._0x5d8bc1,_0x329cf5._0x4fd7bd)+_0x407941(_0x329cf5._0xece64f,0x508))&&_0xaca511){const _0x609753={};return _0x609753[_0xdf5030(_0x329cf5._0x34e465,_0x329cf5._0x466952)+'l']=_0xaca511[_0xdf5030(0x159,0x72)+'l'],_0x609753[_0xdf5030(0x226,0x2a6)+'d']=_0xaca511['gatewayI'+'d'],_0x609753['relaySec'+'ret']=_0xaca511[_0x407941(0x141,_0x329cf5._0x158b62)+'ret'],_0x609753[_0xdf5030(_0x329cf5._0x21b77b,0x4da)+_0x407941(_0x329cf5._0x70f500,_0x329cf5._0x42292a)]=_0x2ab292['displayN'+_0xdf5030(0x175,_0x329cf5._0x8a9fcb)],_0x609753[_0xdf5030(0x9b,-_0x329cf5._0x54ee43)+_0x407941(_0x329cf5._0x15fdc1,_0x329cf5._0x3c9fd2)]=_0x2ab292[_0x407941(_0x329cf5._0x349caa,0x24c)+_0xdf5030(0x3d5,0x420)],_0x609753[_0x407941(0x51d,0x57e)+_0x407941(0x5ba,_0x329cf5._0x126477)]=_0x2ab292[_0x407941(0x485,0x57e)+_0x407941(_0x329cf5._0x15c487,_0x329cf5._0x126477)],refreshAccessCode(_0x609753);}if(_0x52ead9===_0xdf5030(_0x329cf5._0x47aba4,_0x329cf5._0x45a876)+_0xdf5030(0x25b,_0x329cf5._0x29ae3a))throw new Error('This\x20bri'+'dge\x20is\x20a'+_0x407941(0x179,0x22a)+_0x407941(_0x329cf5._0x3a1a7d,0x2a2)+_0x407941(0x1de,0x2f2)+_0xaca511?.[_0xdf5030(_0x329cf5._0x4de01f,0x315)+'l']+(_0x407941(_0x329cf5._0x4e3002,_0x329cf5._0x329f76)+_0x407941(0x33b,0x453)+'eset\x22\x20be'+_0x407941(_0x329cf5._0x4c2a1b,0x425)+_0xdf5030(_0x329cf5._0x1d8e50,_0x329cf5._0x5a84f5)+_0x407941(_0x329cf5._0x54b13e,_0x329cf5._0x27c35b)+_0x407941(0x3bf,_0x329cf5._0x38691b)+_0xdf5030(_0x329cf5._0x3a3c18,_0x329cf5._0xddf0)));const _0x2ea6e1={};_0x2ea6e1[_0x407941(0x567,_0x329cf5._0xb75d5e)+_0x407941(_0x329cf5._0x30838d,0x540)]='applicat'+_0x407941(0x4e5,_0x329cf5._0x4c17e2),_0x2ea6e1['accept']=_0x407941(0x43e,_0x329cf5._0x4ccb26)+'ion/json';const _0x991a82=await fetch(_0x38c766+(_0xdf5030(_0x329cf5._0x3603cf,0x38f)+_0xdf5030(0x39e,_0x329cf5._0x229a1d)+'r'),{'method':_0xdf5030(_0x329cf5._0x26ad91,0x3e6),'headers':_0x2ea6e1,'body':JSON[_0x407941(0x42e,0x5b5)+'y']({'displayName':_0x2ab292[_0xdf5030(_0x329cf5._0x4542c3,0x479)+_0x407941(_0x329cf5._0x22bacc,_0x329cf5._0x44b8d2)]?.[_0x407941(0x566,_0x329cf5._0x4f6608)]()||null})});if(!_0x991a82['ok'])throw new Error('Pair\x20reg'+_0x407941(_0x329cf5._0x3fb19a,0x319)+_0xdf5030(_0x329cf5._0x9dd1cf,0x3a5)+_0x991a82[_0x407941(0x1f3,_0x329cf5._0xfad1d7)]+_0xdf5030(_0x329cf5._0x2751f6,_0x329cf5._0x3adde8)+await _0x991a82[_0x407941(0x1cb,0x310)]());const _0x9951de=await _0x991a82[_0xdf5030(_0x329cf5._0x23522a,_0x329cf5._0x441a1c)]();function _0xdf5030(_0x4f4361,_0x187d22){return _0x9ec63e(_0x4f4361-0x3f,_0x187d22);}const _0x178833=new Date()['toISOStr'+_0x407941(_0x329cf5._0x421f1b,_0x329cf5._0x4002f1)]();function _0x407941(_0x14058d,_0xf2567f){return _0x9ec63e(_0xf2567f-_0x338dd7._0x6d9cfa,_0x14058d);}const _0x5d0d59={'serverUrl':_0x38c766,'gatewayId':_0x9951de[_0xdf5030(0x226,0x23f)+'d'],'relaySecret':_0x9951de[_0x407941(_0x329cf5._0x1ecd51,_0x329cf5._0x1dfed0)+_0xdf5030(_0x329cf5._0x1e786a,_0x329cf5._0x5c625e)],'relayUrl':_0x9951de[_0x407941(0x3b7,_0x329cf5._0xb46d8a)],'instanceId':_0xaca511?.[_0xdf5030(_0x329cf5._0x398834,_0x329cf5._0x1ea4b4)+'Id']??_0xdf5030(0x138,0xa1)+_0x9951de[_0x407941(0x3a1,0x3d7)+'d'][_0x407941(0x2bf,_0x329cf5._0x110470)](-0xa),'displayName':_0x9951de['displayN'+_0x407941(_0x329cf5._0x163373,0x326)],'createdAt':_0x178833,'updatedAt':_0x178833};return writePairingConfig(_0x5d0d59),{'config':_0x5d0d59,'accessCode':_0x9951de['accessCo'+'de'],'accessCodeExpiresAt':_0x9951de['accessCo'+'deExpire'+_0x407941(0x630,_0x329cf5._0x34ae80)],'action':_0x4cd4e1[_0x407941(_0x329cf5._0x4582c2,_0x329cf5._0x6ebbf9)],'qrPayload':_0x4cd4e1[_0x407941(0x3c8,0x3d8)](buildPairingQrPayload,{'server':_0x38c766,'gatewayId':_0x9951de[_0x407941(_0x329cf5._0x5a347d,_0x329cf5._0x43b763)+'d'],'accessCode':_0x9951de[_0x407941(0xa4,_0x329cf5._0x356ef9)+'de'],'displayName':_0x9951de[_0x407941(0x62e,0x55a)+_0x407941(0x4b9,0x326)],'token':_0x2ab292[_0x407941(0x19d,0x24c)+_0x407941(_0x329cf5._0x4b4117,0x586)]?.[_0x407941(_0x329cf5._0x2ef90e,_0x329cf5._0x4b7950)]()||null,'password':_0x2ab292[_0xdf5030(0x3cd,0x407)+_0xdf5030(_0x329cf5._0x67d76a,0x430)]?.[_0x407941(0x32f,0x4bf)]()||null})};}async function refreshAccessCode(_0xc5aa8f){const _0x58021a={_0x1bc252:0x3cc,_0x3bf7cd:0x431,_0x4180db:0x148,_0x3dfdae:0x7a,_0x4eda33:0x328,_0x2a4c96:0x2d4,_0x160486:0x3f2,_0x4bd5f1:0x50,_0x1aa249:0x17e,_0x27d909:0x4c3,_0x583896:0x15a,_0x60d0f5:0x31,_0x1f568e:0x16,_0x3df61e:0x175,_0x365a47:0x5d1,_0x2068d2:0x504,_0x332320:0x584,_0x4a37a8:0x228,_0x405771:0x25f,_0x4ac4c3:0x2ef,_0x559837:0x6a1,_0x4e9328:0x646,_0x3986e4:0x652,_0x48c688:0x5ec,_0x912df5:0x14a,_0x3bf106:0x40c,_0x56d3e1:0xf5,_0x5964d2:0x81,_0x52da8b:0x5bd,_0x3d6d33:0x41f,_0x48dd8c:0x7b,_0x5eda27:0x10c,_0x24e46d:0x7d,_0x14c01f:0xe7,_0x51c19c:0x1a,_0x5349a7:0x508,_0x26dfa8:0x1e5,_0x5b48bf:0x51,_0x10a97b:0x356,_0x415188:0x170,_0x37a78f:0x3b2,_0x5cdd1a:0x398,_0x120d10:0x52b,_0x4b38a6:0x4fc,_0xa8a67:0x30c,_0x437298:0x3bf,_0x1817c7:0x4f9,_0x57f6f8:0x108,_0x2cf43f:0x5ab,_0x5cdda2:0x812,_0xb595c6:0x94},_0xdcd2ab={'SnHJE':_0x1067d4(_0x58021a._0x1bc252,_0x58021a._0x3bf7cd)+'config\x20n'+'ot\x20found'+_0x1a01ac(_0x58021a._0x4180db,_0x58021a._0x3dfdae)+_0x1067d4(_0x58021a._0x4eda33,_0x58021a._0x2a4c96)+'.','Thiij':function(_0x196a83,_0x351d95,_0x20acea){return _0x196a83(_0x351d95,_0x20acea);},'zLJwf':_0x1a01ac(0x245,_0x58021a._0x160486),'HDCCH':_0x1067d4(0x66e,0x578)+_0x1a01ac(0x284,0x46a),'RhaTX':function(_0x516970,_0x21d478){return _0x516970(_0x21d478);},'qkbcq':_0x1a01ac(0x3d,0x14c)+'d'},_0x3e67ab=readPairingConfig(),_0x57e023=normalizeHttpBase(_0xc5aa8f?.[_0x1a01ac(-0x50,-0x206)+'l']??_0x3e67ab?.[_0x1a01ac(-_0x58021a._0x4bd5f1,_0x58021a._0x1aa249)+'l']??''),_0x562676=_0xc5aa8f?.[_0x1067d4(0x4c3,0x3c1)+'d']??_0x3e67ab?.[_0x1067d4(_0x58021a._0x27d909,0x583)+'d']??'',_0x10e22d=_0xc5aa8f?.[_0x1067d4(0x35f,_0x58021a._0x583896)+'ret']??_0x3e67ab?.[_0x1a01ac(-0xe7,-_0x58021a._0x60d0f5)+_0x1a01ac(_0x58021a._0x1f568e,_0x58021a._0x3df61e)]??'';if(!_0x57e023||!_0x562676||!_0x10e22d)throw new Error(_0xdcd2ab[_0x1067d4(0x5fb,0x407)]);const _0x187edf=await _0xdcd2ab[_0x1067d4(0x516,_0x58021a._0x365a47)](fetch,_0x57e023+(_0x1067d4(_0x58021a._0x2068d2,0x3b0)+'/access-'+'code'),{'method':_0xdcd2ab[_0x1067d4(_0x58021a._0x332320,0x404)],'headers':{'content-type':_0xdcd2ab['HDCCH'],'accept':_0x1a01ac(_0x58021a._0x4a37a8,_0x58021a._0x405771)+_0x1a01ac(0x284,_0x58021a._0x4ac4c3)},'body':JSON[_0x1067d4(_0x58021a._0x559837,0x875)+'y']({'gatewayId':_0x562676,'relaySecret':_0x10e22d,'displayName':_0xc5aa8f?.[_0x1067d4(_0x58021a._0x4e9328,_0x58021a._0x3986e4)+'ame']?.[_0x1a01ac(0x165,0x6e)]()||void 0x0})});function _0x1a01ac(_0x2bcc63,_0x33a3b0){return _0x9ec63e(_0x2bcc63- -0x16a,_0x33a3b0);}if(!_0x187edf['ok'])throw new Error('Access\x20c'+_0x1067d4(0x69b,0x608)+_0x1067d4(_0x58021a._0x48c688,0x5da)+_0x1a01ac(0x12d,_0x58021a._0x912df5)+_0x187edf['status']+_0x1067d4(_0x58021a._0x3bf106,0x5d8)+await _0x187edf[_0x1a01ac(-0x4a,0x132)]());const _0xdac26f=await _0x187edf[_0x1a01ac(_0x58021a._0x56d3e1,-_0x58021a._0x5964d2)]();function _0x1067d4(_0x1bce24,_0x11ef2f){return _0x9ec63e(_0x1bce24-0x2dc,_0x11ef2f);}const _0x55255b={'serverUrl':_0x57e023,'gatewayId':_0xdac26f[_0x1a01ac(0x7d,0xff)+'d'],'relaySecret':_0x10e22d,'relayUrl':_0xdac26f[_0x1067d4(_0x58021a._0x52da8b,_0x58021a._0x3d6d33)],'instanceId':_0x3e67ab?.[_0x1a01ac(_0x58021a._0x48dd8c,_0x58021a._0x5eda27)+'Id']??_0x1a01ac(-0x71,-0x264)+_0xdac26f[_0x1a01ac(_0x58021a._0x24e46d,-0x43)+'d']['slice'](-0xa),'displayName':_0xdac26f['displayN'+_0x1a01ac(-0x34,_0x58021a._0x14c01f)],'createdAt':_0x3e67ab?.[_0x1a01ac(-_0x58021a._0x51c19c,-0x159)+'t']??new Date()[_0x1067d4(0x68a,_0x58021a._0x5349a7)+_0x1a01ac(0x26,0x10a)](),'updatedAt':new Date()[_0x1067d4(0x68a,0x81b)+_0x1067d4(0x46c,0x410)]()};return _0xdcd2ab[_0x1a01ac(_0x58021a._0x26dfa8,_0x58021a._0x5b48bf)](writePairingConfig,_0x55255b),{'config':_0x55255b,'accessCode':_0xdac26f[_0x1a01ac(-0xf0,-0x3c)+'de'],'accessCodeExpiresAt':_0xdac26f[_0x1067d4(_0x58021a._0x10a97b,_0x58021a._0x415188)+_0x1067d4(_0x58021a._0x37a78f,_0x58021a._0x5cdd1a)+_0x1067d4(_0x58021a._0x120d10,_0x58021a._0x4b38a6)],'action':_0xdcd2ab['qkbcq'],'qrPayload':buildPairingQrPayload({'server':_0x57e023,'gatewayId':_0xdac26f['gatewayI'+'d'],'accessCode':_0xdac26f[_0x1067d4(_0x58021a._0x10a97b,_0x58021a._0xa8a67)+'de'],'displayName':_0xdac26f[_0x1067d4(0x646,0x5de)+_0x1067d4(0x412,_0x58021a._0x437298)],'token':_0xc5aa8f?.[_0x1067d4(0x338,_0x58021a._0x1817c7)+_0x1a01ac(0x22c,_0x58021a._0x57f6f8)]?.[_0x1067d4(_0x58021a._0x2cf43f,0x478)]()||null,'password':_0xc5aa8f?.[_0x1067d4(0x66a,_0x58021a._0x5cdda2)+_0x1a01ac(0x269,_0x58021a._0xb595c6)]?.[_0x1067d4(_0x58021a._0x2cf43f,_0x58021a._0x48c688)]()||null})};}function normalizeHttpBase(_0x257354){const _0x3221e2={_0x268eb7:0x3e1,_0x157511:0x525,_0x2e2c53:0x66d,_0x353b3a:0x53b,_0xa12511:0x19c,_0x5c948e:0x2e6,_0x514aa2:0x351,_0x37252f:0x46e,_0x3cb2b1:0x4a7,_0x535bd0:0xb0,_0xdcdff4:0xe7,_0x4228fd:0x3f1},_0x263c39={_0x4441eb:0xb8},_0x38327f={};_0x38327f[_0x4dd2f3(0x329,0x4b3)]=_0x4dd2f3(0x2a,0x1af),_0x38327f[_0x2b5443(-0x5,0x12c)]=_0x4dd2f3(0x4bf,0x4a7);const _0x4f475b=_0x38327f;function _0x2b5443(_0x2a744f,_0x1bbcf9){return _0x431448(_0x2a744f,_0x1bbcf9- -0x19d);}const _0x325462=_0x257354[_0x4dd2f3(0x454,_0x3221e2._0x268eb7)]();if(!_0x325462)return'';if(_0x325462[_0x4dd2f3(_0x3221e2._0x157511,0x53b)+'th']('http://')||_0x325462[_0x4dd2f3(_0x3221e2._0x2e2c53,_0x3221e2._0x353b3a)+'th'](_0x2b5443(0x1f,0xfc)))return _0x325462[_0x2b5443(0x195,_0x3221e2._0xa12511)](/\/+$/,'');if(_0x325462[_0x2b5443(0x441,0x2e6)+'th'](_0x4dd2f3(0x32f,0x1af)))return(_0x4dd2f3(0x5bc,0x457)+_0x325462['slice'](_0x4f475b['CLBct']['length']))[_0x2b5443(0x123,_0x3221e2._0xa12511)](/\/+$/,'');function _0x4dd2f3(_0xb7641e,_0x2f0826){return _0x431448(_0xb7641e,_0x2f0826-_0x263c39._0x4441eb);}if(_0x325462[_0x2b5443(0x29c,_0x3221e2._0x5c948e)+'th'](_0x4f475b['sGNCm']))return(_0x4dd2f3(0x271,_0x3221e2._0x514aa2)+_0x325462['slice'](_0x4dd2f3(_0x3221e2._0x37252f,_0x3221e2._0x3cb2b1)[_0x2b5443(-_0x3221e2._0x535bd0,_0x3221e2._0xdcdff4)]))['replace'](/\/+$/,'');return(_0x4dd2f3(0x29d,0x351)+_0x325462)[_0x4dd2f3(0x443,_0x3221e2._0x4228fd)](/\/+$/,'');}function assessPairingCompatibility(_0x47e66c,_0x2fecf8){const _0x1c8939={_0x18aa37:0x512,_0x586136:0x244,_0x2c107c:0x3b7,_0x5bef56:0x173,_0x572e8d:0x2e6,_0x56ea0b:0x5fb},_0xecb183={_0x327e5c:0x80},_0x53bf8a={_0x2f0090:0x28c};if(!_0x47e66c)return _0xc4a75(_0x1c8939._0x18aa37,0x454)+_0xc4a75(_0x1c8939._0x586136,_0x1c8939._0x2c107c);function _0xa1f17f(_0x2ca411,_0x3b6871){return _0x431448(_0x2ca411,_0x3b6871-_0x53bf8a._0x2f0090);}if(_0x47e66c['serverUr'+'l']===_0x2fecf8)return _0xc4a75(_0x1c8939._0x5bef56,_0x1c8939._0x572e8d)+'existing';function _0xc4a75(_0x383ec9,_0x39e4ad){return _0x431448(_0x383ec9,_0x39e4ad-_0xecb183._0x327e5c);}return _0xa1f17f(0x4c8,_0x1c8939._0x56ea0b)+'ismatch';}import{execFileSync,spawn}from'child_process';import{chmodSync,closeSync,existsSync as _0x146d3f,mkdirSync as _0x282046,openSync,readFileSync as _0x1cabb2,realpathSync,rmSync as _0x9ac38d,writeFileSync as _0x161090}from'fs';import{homedir as _0x4d0c40}from'os';import{dirname,join as _0x2e2b7f}from'path';var SERVICE_LABEL=_0x431448(0x10a,0x11b)+_0x431448(0x30e,0x264)+_0x9ec63e(0xa8,-0xfb),SYSTEMD_UNIT_NAME=SERVICE_LABEL+'.service',WINDOWS_RUN_KEY=_0x9ec63e(0x273,0x3c6)+'ridgeCli',SERVICE_DIR=_0x2e2b7f(_0x4d0c40(),_0x431448(0x440,0x24f)),LOG_DIR=_0x2e2b7f(SERVICE_DIR,_0x9ec63e(0x229,0x386)),SERVICE_STATE_PATH=_0x2e2b7f(SERVICE_DIR,_0x431448(0x19,0xc0)+_0x9ec63e(0x326,0x3c1)+_0x9ec63e(0xac,0x2)),SERVICE_LAUNCHER_PATH=_0x2e2b7f(SERVICE_DIR,_0x431448(0x4,0xc0)+_0x431448(0xfc,0xac)+_0x431448(0x4ae,0x496)+'sh'),SERVICE_LOG_PATH=_0x2e2b7f(LOG_DIR,_0x431448(0xef,0x146)+_0x9ec63e(0x13e,0x22)),SERVICE_ERROR_LOG_PATH=_0x2e2b7f(LOG_DIR,_0x431448(0x1c2,0x146)+_0x9ec63e(0x2ff,0x406)+_0x431448(0x373,0x348)),MACOS_PLIST_PATH=_0x2e2b7f(_0x4d0c40(),_0x431448(0x4b,0xa1),_0x431448(0x1ca,0x281)+_0x9ec63e(0x23d,0x2d1),SERVICE_LABEL+_0x431448(0x17f,0x1fa)),LINUX_SERVICE_PATH=_0x2e2b7f(_0x4d0c40(),'.config',_0x431448(0x4c1,0x46e),_0x431448(0x2f8,0x42a),SYSTEMD_UNIT_NAME);function getServiceProgramArgs(_0x5d2f43={},_0x41a0a2=process['platform']){const _0x1aa96e={_0x360ea0:0x4cf,_0x20740c:0x581,_0x44df73:0x4a8,_0x335b4a:0x244,_0x48bc34:0x25c,_0x4b87a5:0x1a0,_0x4eee02:0x37f,_0x33772b:0x121,_0xd233cd:0x2b7,_0x20b7d9:0x384,_0x567999:0x486,_0x1d9ba4:0x2d6,_0x27428e:0x6cc,_0x1d8b2d:0x5af,_0x516b37:0x459,_0x512b01:0x3aa,_0x373c7d:0x3e9,_0x2f7cd8:0x5c9,_0x53e152:0x1bc,_0x4b0f55:0x37d,_0x5c3dc1:0x486,_0x3743b7:0x435,_0x940508:0x49b,_0x5c291e:0x44b},_0x1a475b={_0x43d794:0x177},_0x2ea13d={_0x346a5c:0x56},_0xb3e127={};function _0x1826b8(_0x410b43,_0x417a45){return _0x431448(_0x410b43,_0x417a45-_0x2ea13d._0x346a5c);}_0xb3e127[_0xf7c552(_0x1aa96e._0x360ea0,0x5eb)]=function(_0x110d6b,_0x831485){return _0x110d6b!==_0x831485;},_0xb3e127[_0x1826b8(_0x1aa96e._0x20740c,_0x1aa96e._0x44df73)]=_0x1826b8(0x2cd,0x21d);const _0x2dcee7=_0xb3e127;function _0xf7c552(_0x17703d,_0x2f3533){return _0x431448(_0x17703d,_0x2f3533-_0x1a475b._0x43d794);}const _0x26b67c=_0x5d2f43[_0x1826b8(_0x1aa96e._0x335b4a,_0x1aa96e._0x48bc34)]?.[_0x1826b8(_0x1aa96e._0x4b87a5,_0x1aa96e._0x4eee02)]()||process[_0x1826b8(_0x1aa96e._0x33772b,_0x1aa96e._0xd233cd)],_0xd819e6=resolveScriptPath(_0x5d2f43[_0x1826b8(_0x1aa96e._0x20b7d9,_0x1aa96e._0x567999)+'th']);if(!_0xd819e6)throw new Error(_0xf7c552(0x199,0x238)+'o\x20resolv'+_0x1826b8(0x591,0x4b6)+'ript\x20pat'+_0xf7c552(0x366,_0x1aa96e._0x1d9ba4)+_0xf7c552(_0x1aa96e._0x27428e,_0x1aa96e._0x1d8b2d)+_0xf7c552(_0x1aa96e._0x516b37,_0x1aa96e._0x512b01)+_0xf7c552(0x373,0x3a1));if(_0x2dcee7[_0x1826b8(_0x1aa96e._0x373c7d,0x4ca)](_0x41a0a2,_0x2dcee7[_0xf7c552(0x601,_0x1aa96e._0x2f7cd8)])){const _0x54017b={};_0x54017b[_0xf7c552(_0x1aa96e._0x53e152,_0x1aa96e._0x4b0f55)]=_0x26b67c,_0x54017b[_0x1826b8(_0x1aa96e._0x5c3dc1,0x486)+'th']=_0xd819e6,_0x54017b['pathEnv']=process.env.PATH??'';const _0x43200f=writeServiceLauncher(_0x54017b);return ensureLaunchScriptExecutable(_0x43200f,_0x41a0a2),[_0x43200f];}return[_0x26b67c,_0xd819e6,_0x1826b8(0x4da,_0x1aa96e._0x3743b7),_0xf7c552(_0x1aa96e._0x940508,_0x1aa96e._0x5c291e)+'e'];}function getServiceStatus(){const _0x3e57af={_0x37c662:0x12b,_0xcece39:0x36,_0x427a54:0x15c,_0x4c1404:0x19e,_0x232a7f:0xc0,_0x2c6063:0x178,_0x36e8b2:0x17f,_0x43557f:0x29,_0x2594cc:0x23,_0x32874b:0x191,_0x4407ab:0x30a,_0x9f8c76:0x150,_0x3625e4:0x75,_0x440cfa:0x37,_0x4caa76:0x26d,_0x25397b:0x83,_0x18771a:0x8e,_0x76189d:0x143,_0x329f83:0x250,_0x13a284:0x26d,_0x3505d1:0xf6,_0x1a6723:0x127,_0x19f653:0x66,_0x7f1897:0x25c,_0x2a45ee:0x17,_0x42b19a:0xed,_0x486a25:0x3cb,_0x4bd96b:0xfd,_0x3d1dd8:0x1b4,_0x4a5c31:0x32,_0x12d4b8:0x469,_0x339546:0x32e,_0x21b843:0xbc,_0x51f519:0x1f9,_0x40817f:0x9f,_0x46b055:0x309},_0x31bf2b={_0x1a1d63:0x212};function _0x47baef(_0x1fabc0,_0x4fc056){return _0x9ec63e(_0x4fc056- -0x100,_0x1fabc0);}const _0x28e7b0={'Bnxdd':function(_0x525635){return _0x525635();},'PdXrY':function(_0x1058e1,_0x3b4776){return _0x1058e1(_0x3b4776);},'Feyvn':_0x59b85e(0x5f,_0x3e57af._0x37c662)+_0x59b85e(0x1be,0x241),'tofCl':'systemct'+'l','KrtAr':'--user','SJINk':'reg'};ensureServiceDirs();const _0x5691c5=_0x28e7b0[_0x47baef(-_0x3e57af._0xcece39,0x119)](readServiceState)?.['pid']??null,_0x186601={'installed':![],'running':_0x5691c5!=null&&_0x28e7b0[_0x47baef(0x10a,_0x3e57af._0x427a54)](isPidRunning,_0x5691c5),'method':detectServiceMethod(),'servicePath':getServicePath(),'logPath':SERVICE_LOG_PATH,'errorLogPath':SERVICE_ERROR_LOG_PATH,'pid':_0x5691c5};function _0x59b85e(_0x386f01,_0x5501d6){return _0x9ec63e(_0x386f01- -_0x31bf2b._0x1a1d63,_0x5501d6);}_0x186601[_0x47baef(-_0x3e57af._0x4c1404,-_0x3e57af._0x232a7f)]!=null&&!_0x186601[_0x59b85e(-_0x3e57af._0x2c6063,-_0x3e57af._0x36e8b2)]&&(clearServiceState(_0x186601[_0x59b85e(-0x1d2,_0x3e57af._0x43557f)]),_0x186601[_0x47baef(_0x3e57af._0x2594cc,-0xc0)]=null);switch(_0x186601[_0x47baef(_0x3e57af._0x32874b,_0x3e57af._0x4407ab)]){case _0x47baef(-0x1eb,-_0x3e57af._0x2594cc)+_0x59b85e(_0x3e57af._0x9f8c76,-_0x3e57af._0x3625e4):_0x186601[_0x59b85e(0x15b,-_0x3e57af._0x440cfa)+'d']=_0x28e7b0[_0x59b85e(0x4a,-0x14e)](_0x146d3f,MACOS_PLIST_PATH);_0x186601[_0x47baef(0x288,_0x3e57af._0x4caa76)+'d']&&(_0x186601[_0x47baef(-0x72,-0x66)]=commandSucceeds(_0x47baef(-_0x3e57af._0x25397b,_0x3e57af._0x18771a)+'l',[_0x47baef(_0x3e57af._0x76189d,-0x26),SERVICE_LABEL])||_0x186601[_0x59b85e(-0x178,-_0x3e57af._0x329f83)]);return _0x186601;case _0x28e7b0['Feyvn']:_0x186601[_0x47baef(0x122,0x26d)+'d']=_0x146d3f(LINUX_SERVICE_PATH);_0x186601[_0x47baef(0x1b9,_0x3e57af._0x13a284)+'d']&&(_0x186601[_0x47baef(-0x141,-0x66)]=commandSucceeds(_0x28e7b0['tofCl'],[_0x28e7b0[_0x47baef(0x19d,_0x3e57af._0x3505d1)],'is-activ'+'e',_0x59b85e(0x219,0x3ea),SYSTEMD_UNIT_NAME])||_0x186601[_0x47baef(-_0x3e57af._0x1a6723,-_0x3e57af._0x19f653)]);return _0x186601;case _0x47baef(0x1df,_0x3e57af._0x7f1897)+_0x47baef(-0x175,_0x3e57af._0x2a45ee)+_0x59b85e(-_0x3e57af._0x42b19a,-0x258):_0x186601[_0x47baef(_0x3e57af._0x486a25,0x26d)+'d']=commandSucceeds(_0x28e7b0[_0x59b85e(0x59,-_0x3e57af._0x4bd96b)],[_0x59b85e(_0x3e57af._0x3d1dd8,-_0x3e57af._0x4a5c31),_0x47baef(_0x3e57af._0x12d4b8,_0x3e57af._0x339546)+_0x47baef(_0x3e57af._0x21b843,_0x3e57af._0x51f519)+_0x59b85e(0x7e,0x3f)+_0x59b85e(-_0x3e57af._0x40817f,-0x1ca)+_0x59b85e(-0x105,-_0x3e57af._0x46b055)+'ersion\x5cR'+'un','/v',WINDOWS_RUN_KEY]);return _0x186601;default:return _0x186601;}}function installService(_0x335d56={}){const _0x334ec3={_0x187042:0x108,_0x6d2487:0x198,_0xcc4948:0xdb,_0x435bb2:0x1bb,_0x386ecd:0x189,_0x356990:0x11a,_0x9c3f4f:0x1ae,_0x219c8d:0x20f,_0x4295a4:0x1ed,_0x26626f:0x29,_0xeb9639:0x2e4,_0x4ac066:0x28,_0x14e3a5:0xb0,_0x36d3cb:0x19f,_0x3ce1d6:0x7d,_0x114b14:0x1c,_0x540b44:0x13a,_0x3eb8a3:0x129,_0x3c289a:0x121,_0x1b23bb:0x57,_0x34852c:0x135,_0x483101:0x1c2,_0x1990d6:0xae,_0x1a35d0:0x128,_0x508019:0x14a,_0x582d4e:0x1b7},_0x2f6974={_0x55840a:0x278};function _0x54a6dc(_0x54ac67,_0x356888){return _0x431448(_0x356888,_0x54ac67- -0x2f0);}const _0x84f4ca={'xXsuf':_0x54a6dc(-_0x334ec3._0x187042,0xc8)+'l','hkKUr':_0x35e1eb(0x121,0x17),'UWBsz':function(_0x1f95a5,_0x45791c){return _0x1f95a5(_0x45791c);},'pvrub':function(_0x5f3573,_0x99b1fb,_0x4538a6,_0x25078e){return _0x5f3573(_0x99b1fb,_0x4538a6,_0x25078e);},'WoVzi':_0x54a6dc(-0xd0,-0x1e8),'vrwUt':_0x35e1eb(-0x1ad,0x52),'kkFjx':_0x54a6dc(_0x334ec3._0x6d2487,0xad)+_0x35e1eb(_0x334ec3._0xcc4948,_0x334ec3._0x435bb2)+'crosoft\x5c'+_0x35e1eb(-0xab,0x102)+_0x54a6dc(-_0x334ec3._0x386ecd,-0x300)+'ersion\x5cR'+'un'};function _0x35e1eb(_0xc9fee,_0x2f00da){return _0x431448(_0x2f00da,_0xc9fee- -_0x2f6974._0x55840a);}ensureServiceDirs();const _0x2ae629=getServiceProgramArgs(_0x335d56);switch(process[_0x54a6dc(0x13f,-0xac)]){case _0x35e1eb(0xa9,-0xd6):_0x161090(MACOS_PLIST_PATH,buildMacosPlist(_0x2ae629,SERVICE_LOG_PATH,SERVICE_ERROR_LOG_PATH),_0x54a6dc(-0xf0,-0x34)),execIgnoreFailure(_0x84f4ca['xXsuf'],[_0x35e1eb(_0x334ec3._0x356990,0x173),'-w',MACOS_PLIST_PATH]);const _0x14ca96={};_0x14ca96[_0x35e1eb(0x220,_0x334ec3._0x9c3f4f)]=_0x84f4ca[_0x54a6dc(-0x1c1,-0x137)],execFileSync('launchct'+'l',[_0x54a6dc(-0x221,-_0x334ec3._0x219c8d),'-w',MACOS_PLIST_PATH],_0x14ca96);break;case _0x54a6dc(0x160,0x1a7):const _0x5096fd={};_0x5096fd[_0x54a6dc(-_0x334ec3._0x4295a4,-0xbb)+'e']=!![],_0x282046(_0x84f4ca[_0x35e1eb(0x42,_0x334ec3._0x435bb2)](dirname,LINUX_SERVICE_PATH),_0x5096fd),_0x161090(LINUX_SERVICE_PATH,buildLinuxSystemdUnit(_0x2ae629,SERVICE_LOG_PATH,SERVICE_ERROR_LOG_PATH),_0x54a6dc(-0xf0,_0x334ec3._0x26626f));const _0x580989={};_0x580989[_0x35e1eb(0x220,0x15f)]='ignore',_0x84f4ca['pvrub'](execFileSync,'systemct'+'l',[_0x35e1eb(-0x58,-0x3b),_0x35e1eb(0x159,_0x334ec3._0xeb9639)+'eload'],_0x580989);const _0x43880a={};_0x43880a['stdio']='ignore',_0x84f4ca[_0x54a6dc(0xa6,_0x334ec3._0x4ac066)](execFileSync,'systemct'+'l',[_0x84f4ca[_0x54a6dc(-_0x334ec3._0x14e3a5,-_0x334ec3._0x36d3cb)],_0x35e1eb(-_0x334ec3._0x3ce1d6,-_0x334ec3._0x114b14),_0x84f4ca[_0x54a6dc(-0x5f,-_0x334ec3._0x540b44)],SYSTEMD_UNIT_NAME],_0x43880a);break;case _0x54a6dc(-_0x334ec3._0x3eb8a3,0xdb):stopRunningProcess();const _0x498f2d={};_0x498f2d['stdio']=_0x35e1eb(_0x334ec3._0x3c289a,0x137),execFileSync(_0x35e1eb(-_0x334ec3._0x1b23bb,-_0x334ec3._0x34852c),[_0x35e1eb(0x111,0x6d),_0x84f4ca[_0x54a6dc(0x73,0x143)],'/v',WINDOWS_RUN_KEY,'/t',_0x35e1eb(0x16,-0x189),'/d',buildWindowsRunCommand(_0x2ae629),'/f'],_0x498f2d),startDetachedWindowsService(_0x2ae629);break;default:throw new Error('Unsuppor'+'ted\x20plat'+'form\x20for'+'\x20CLI\x20ser'+_0x54a6dc(0xb3,_0x334ec3._0x483101)+_0x35e1eb(-_0x334ec3._0x1990d6,-_0x334ec3._0x1a35d0)+_0x54a6dc(0x142,_0x334ec3._0x508019)+process[_0x35e1eb(_0x334ec3._0x582d4e,0x290)]);}return getServiceStatus();}function restartService(_0x432a81={}){const _0x185233={_0x49ca46:0x23f,_0x258ada:0x2fc,_0x16c0e6:0x3f8,_0x19aa28:0xbe,_0x452b94:0x1de,_0x14cd6e:0xd0,_0x24dcb0:0x4b,_0x959b56:0x1b2,_0x48fe92:0x141,_0x249b7c:0x294,_0x1d5fb3:0x3e9,_0x3e383a:0x43,_0x28df77:0x182,_0x17510b:0x86,_0x2f61e5:0x34,_0x528133:0x15a,_0x5bc31e:0x458,_0xc13913:0x88,_0x55f855:0x1c1,_0x3b4af5:0x1ea,_0x2a78cd:0x4e6,_0x545e26:0x2b1,_0x4bd515:0x4ef,_0x35083c:0x100,_0x22210a:0x4dc,_0x53fd49:0x31,_0x2afb61:0x148,_0x177e64:0x2c1,_0x145dd1:0x19e,_0x115093:0x4df,_0x3fcde2:0x18b,_0x5a01af:0xea,_0x136175:0x518,_0x5146b4:0x3a6,_0x3e0093:0x1ce,_0x580437:0x427,_0xd07e6f:0x486},_0xb8785a={_0x2c50fa:0xb1};function _0xd40e9e(_0xdddd35,_0x16f9dd){return _0x9ec63e(_0x16f9dd-_0xb8785a._0x2c50fa,_0xdddd35);}const _0x1cb92d={'RkFEl':function(_0x195b87,_0x1a2457){return _0x195b87(_0x1a2457);},'UQxmi':function(_0xbc8f22,_0x523dfb,_0x19ebe9,_0x412c9a){return _0xbc8f22(_0x523dfb,_0x19ebe9,_0x412c9a);},'CnPkg':_0xd40e9e(0x286,_0x185233._0x49ca46)+'l','IoZgq':_0x287183(0x148,_0x185233._0x258ada),'zwWZl':_0xd40e9e(_0x185233._0x16c0e6,0x4a7),'MuAfS':function(_0x4d8404,_0x2f1f9c,_0x1f8c75){return _0x4d8404(_0x2f1f9c,_0x1f8c75);},'IATCc':function(_0x3da5d8,_0x253b33,_0x2734f0,_0x46fe59){return _0x3da5d8(_0x253b33,_0x2734f0,_0x46fe59);},'hPPxH':_0x287183(-_0x185233._0x19aa28,-0x21c)+'l','naQet':_0xd40e9e(0x33e,0x278)};ensureServiceDirs();const _0xd777ce=getServiceProgramArgs(_0x432a81);function _0x287183(_0x734857,_0x272ef7){return _0x9ec63e(_0x734857- -0x1f7,_0x272ef7);}switch(process[_0x287183(_0x185233._0x452b94,0x3b0)]){case _0x287183(_0x185233._0x14cd6e,-_0x185233._0x24dcb0):if(!_0x146d3f(MACOS_PLIST_PATH))return _0x1cb92d[_0x287183(0x7d,_0x185233._0x959b56)](installService,_0x432a81);_0x1cb92d[_0x287183(-0x1b1,-0x6b)](_0x161090,MACOS_PLIST_PATH,buildMacosPlist(_0xd777ce,SERVICE_LOG_PATH,SERVICE_ERROR_LOG_PATH),'utf8'),execIgnoreFailure(_0x1cb92d[_0x287183(0xe9,_0x185233._0x48fe92)],[_0xd40e9e(_0x185233._0x249b7c,_0x185233._0x1d5fb3),'-w',MACOS_PLIST_PATH]);const _0x2b2762={};_0x2b2762['stdio']=_0x1cb92d[_0xd40e9e(_0x185233._0x3e383a,0x112)],execFileSync('launchct'+'l',[_0x287183(-_0x185233._0x28df77,-_0x185233._0x17510b),'-w',MACOS_PLIST_PATH],_0x2b2762);break;case _0x1cb92d[_0x287183(0x1ea,0x21a)]:if(!_0x146d3f(LINUX_SERVICE_PATH))return installService(_0x432a81);const _0x4b49b8={};_0x4b49b8[_0xd40e9e(_0x185233._0x2f61e5,_0x185233._0x528133)+'e']=!![],_0x1cb92d[_0xd40e9e(0x5e6,_0x185233._0x5bc31e)](_0x282046,dirname(LINUX_SERVICE_PATH),_0x4b49b8),_0x161090(LINUX_SERVICE_PATH,buildLinuxSystemdUnit(_0xd777ce,SERVICE_LOG_PATH,SERVICE_ERROR_LOG_PATH),'utf8'),_0x1cb92d[_0xd40e9e(_0x185233._0xc13913,_0x185233._0x55f855)](execFileSync,_0xd40e9e(0x128,_0x185233._0x3b4af5)+'l',['--user','daemon-r'+_0xd40e9e(0x4c8,_0x185233._0x2a78cd)],{'stdio':_0x1cb92d[_0xd40e9e(_0x185233._0x545e26,0x112)]});const _0x3ba9cb={};_0x3ba9cb[_0xd40e9e(0x5cd,_0x185233._0x4bd515)]=_0x287183(0x148,_0x185233._0x35083c),execFileSync(_0x1cb92d[_0xd40e9e(_0x185233._0x22210a,0x434)],[_0x287183(-_0x185233._0x53fd49,-0xca),_0xd40e9e(0x321,0x271),SYSTEMD_UNIT_NAME],_0x3ba9cb);break;case'win32':stopRunningProcess();const _0xcbb79b={};_0xcbb79b['stdio']=_0x287183(_0x185233._0x2afb61,_0x185233._0x177e64),execFileSync(_0x1cb92d[_0xd40e9e(0x324,_0x185233._0x145dd1)],['add',_0xd40e9e(0x52c,_0x185233._0x115093)+_0xd40e9e(0x31e,0x3aa)+_0xd40e9e(_0x185233._0x3fcde2,0x341)+'Windows\x5c'+_0x287183(-_0x185233._0x5a01af,-0x1f2)+_0xd40e9e(0x418,0x449)+'un','/v',WINDOWS_RUN_KEY,'/t','REG_SZ','/d',buildWindowsRunCommand(_0xd777ce),'/f'],_0xcbb79b),startDetachedWindowsService(_0xd777ce);break;default:throw new Error(_0xd40e9e(0x141,0x2fc)+_0xd40e9e(_0x185233._0x136175,_0x185233._0x5146b4)+_0xd40e9e(0x285,_0x185233._0x3e0093)+_0x287183(0x26,0x159)+'vice\x20res'+_0xd40e9e(0x3c4,_0x185233._0x580437)+process[_0xd40e9e(0x55c,_0x185233._0xd07e6f)]);}return getServiceStatus();}function uninstallService(){const _0x5300ce={_0x325bcc:0x7f0,_0x47a0b6:0x63f,_0x4a6d34:0x6d8,_0x468550:0x6b7,_0x515fa5:0x247,_0x4a85b2:0x104,_0x2308a6:0x18f,_0x59185d:0x63f,_0x11dd93:0x180,_0x128412:0x50f,_0x211bf0:0x322,_0x3943fe:0x368,_0x36ac00:0x4a8,_0x2e26ed:0x1ce,_0x4cfc74:0x717,_0x25ac94:0x1e,_0x122ebf:0x425,_0x2d8780:0x3b9,_0x327fcc:0x304,_0x4de8a6:0x285,_0x135ead:0x137,_0x31617b:0x2c4,_0x19588b:0x455},_0x2b5b7c={};_0x2b5b7c[_0x3f718c(_0x5300ce._0x325bcc,_0x5300ce._0x47a0b6)]=_0x3f718c(0x6a2,_0x5300ce._0x4a6d34);const _0x28a37d=_0x2b5b7c;stopRunningProcess();switch(process[_0x3f718c(0x88e,_0x5300ce._0x468550)]){case _0x479c27(_0x5300ce._0x515fa5,0x11e):execIgnoreFailure(_0x3f718c(0x674,0x470)+'l',[_0x479c27(_0x5300ce._0x4a85b2,_0x5300ce._0x2308a6),'-w',MACOS_PLIST_PATH]),rmIfExists(MACOS_PLIST_PATH);break;case _0x28a37d[_0x3f718c(0x618,_0x5300ce._0x59185d)]:_0x146d3f(LINUX_SERVICE_PATH)&&(execIgnoreFailure(_0x479c27(-_0x5300ce._0x11dd93,-0x70)+'l',['--user',_0x3f718c(_0x5300ce._0x128412,0x3dc),_0x479c27(-_0x5300ce._0x211bf0,-0x138),SYSTEMD_UNIT_NAME]),rmIfExists(LINUX_SERVICE_PATH),execIgnoreFailure('systemct'+'l',[_0x3f718c(_0x5300ce._0x3943fe,_0x5300ce._0x36ac00),_0x479c27(-0x1c,_0x5300ce._0x2e26ed)+_0x3f718c(0x7de,_0x5300ce._0x4cfc74)]));break;case'win32':execIgnoreFailure(_0x479c27(0x1cb,_0x5300ce._0x25ac94),[_0x3f718c(_0x5300ce._0x122ebf,_0x5300ce._0x2d8780),_0x479c27(_0x5300ce._0x327fcc,_0x5300ce._0x4de8a6)+'tware\x5cMi'+_0x479c27(_0x5300ce._0x135ead,0xe7)+_0x3f718c(_0x5300ce._0x31617b,_0x5300ce._0x19588b)+_0x3f718c(0x56a,0x3ef)+'ersion\x5cR'+'un','/v',WINDOWS_RUN_KEY,'/f']);break;default:break;}clearServiceState();function _0x479c27(_0x38d07d,_0x134c23){return _0x9ec63e(_0x134c23- -0x1a9,_0x38d07d);}function _0x3f718c(_0xde4046,_0x3f94dc){return _0x9ec63e(_0x3f94dc-0x2e2,_0xde4046);}return getServiceStatus();}function stopService(){const _0x1acc7e={_0x47554a:0x481,_0x19a98a:0x28f,_0x95fa89:0x77e,_0x8433e4:0x537,_0x376f84:0x131,_0x5dd431:0x7dc,_0x48240a:0xce,_0x462e50:0x516,_0x49b397:0x3cc},_0x18fadb={_0x5389a2:0x261},_0x51e8a9={'uDKDq':function(_0xbeeaff){return _0xbeeaff();}};function _0x51553f(_0x4cf718,_0x2f57dd){return _0x431448(_0x2f57dd,_0x4cf718-0x34f);}function _0x128751(_0x2c96a5,_0x1c23fc){return _0x431448(_0x2c96a5,_0x1c23fc- -_0x18fadb._0x5389a2);}_0x51e8a9[_0x51553f(_0x1acc7e._0x47554a,_0x1acc7e._0x19a98a)](stopRunningProcess);switch(process[_0x51553f(_0x1acc7e._0x95fa89,0x93d)]){case'darwin':_0x146d3f(MACOS_PLIST_PATH)&&execIgnoreFailure(_0x51553f(_0x1acc7e._0x8433e4,0x5ab)+'l',[_0x128751(0x30f,_0x1acc7e._0x376f84),MACOS_PLIST_PATH]);break;case _0x51553f(0x79f,_0x1acc7e._0x5dd431):_0x146d3f(LINUX_SERVICE_PATH)&&execIgnoreFailure(_0x128751(-0x121,-_0x1acc7e._0x48240a)+'l',['--user','stop',SYSTEMD_UNIT_NAME]);break;case _0x51553f(_0x1acc7e._0x462e50,_0x1acc7e._0x49b397):break;default:break;}return clearServiceState(),getServiceStatus();}function writeServiceState(_0x1325a3=process[_0x431448(0x141,0x9a)]){const _0x3dfeb3={_0x4e897d:0x166,_0x151dd5:0x1d6,_0x584084:0x143},_0x39064d={'whrqM':function(_0x4d65a3){return _0x4d65a3();},'MOMOY':function(_0x334a95,_0x54adae,_0x5b01a6,_0x5bd383){return _0x334a95(_0x54adae,_0x5b01a6,_0x5bd383);}};function _0x1d22f9(_0x2efd40,_0x3cf638){return _0x9ec63e(_0x3cf638- -0x2f6,_0x2efd40);}_0x39064d[_0x11f808(-0x43,0x123)](ensureServiceDirs);const _0xb999cd={'pid':_0x1325a3,'startedAt':new Date()['toISOStr'+_0x1d22f9(0x76,-_0x3dfeb3._0x4e897d)]()};function _0x11f808(_0x14d01d,_0x4d3631){return _0x9ec63e(_0x14d01d- -0x2cb,_0x4d3631);}_0x39064d[_0x1d22f9(_0x3dfeb3._0x151dd5,_0x3dfeb3._0x584084)](_0x161090,SERVICE_STATE_PATH,JSON[_0x11f808(0xfa,0x1c4)+'y'](_0xb999cd,null,0x2)+'\x0a','utf8');}function clearServiceState(_0x4ec039){const _0x3cd7d9={_0xeda674:0x25d},_0x4092f9={_0x56e938:0x300},_0x2178c8={'jgfen':function(_0x10d7e7,_0x1689d7){return _0x10d7e7(_0x1689d7);}};if(!_0x2178c8[_0x5f3e3c(-0x1ca,-_0x3cd7d9._0xeda674)](_0x146d3f,SERVICE_STATE_PATH))return;if(_0x4ec039!=null){const _0x2409b0=readServiceState();if(_0x2409b0&&_0x2409b0['pid']!==_0x4ec039)return;}function _0x5f3e3c(_0x5dea75,_0x4c9b0e){return _0x431448(_0x4c9b0e,_0x5dea75- -_0x4092f9._0x56e938);}rmIfExists(SERVICE_STATE_PATH);}function getServicePaths(){return{'logPath':SERVICE_LOG_PATH,'errorLogPath':SERVICE_ERROR_LOG_PATH,'servicePath':getServicePath()};}function buildMacosPlist(_0x34546d,_0x5474cc,_0x31f57a){const _0xe31bad={_0x12a055:0x45,_0x41591d:0x23a,_0xac6ec1:0xa1,_0x3bc216:0xac,_0x917718:0x369,_0x3eb9f7:0x1be,_0x44a6be:0x1dd,_0x2556cc:0xb2,_0x4011e2:0x10f,_0x1acaae:0x2e1,_0x652e:0x13d,_0x4317f4:0xb8,_0xfa76ad:0xf8,_0x11f621:0xbb,_0x338adb:0x21,_0x5a21df:0x270,_0x3126b7:0x2a6,_0x1cc122:0x260,_0x1b38c3:0x188,_0x2da914:0x26f,_0x32f850:0x375,_0x473291:0x25b,_0x29263c:0x4c7,_0x54bfbe:0x27,_0x5719ed:0x438,_0x23da86:0x366,_0x2692b3:0x14,_0x5a2288:0x8c,_0x10e4dc:0x642,_0x315173:0x65,_0x2494ce:0x139,_0x5c4b8b:0x4a3,_0x4b9956:0x360,_0x52282f:0x223,_0x447ac2:0x251,_0x4406a1:0x2d,_0x12b354:0xe9,_0x43cae2:0xce,_0x92addb:0x1a5,_0x52c158:0x11b,_0x16ee7b:0xa6,_0x425d87:0x12,_0x47349b:0x132,_0x4b2edb:0x1a,_0x3f4b3e:0xa6},_0x19ed4f={_0x4b0cb1:0x203};function _0x228651(_0x2be56b,_0x1c1bb8){return _0x9ec63e(_0x1c1bb8-0x8f,_0x2be56b);}const _0x21cd99=_0x34546d[_0x228651(_0xe31bad._0x12a055,_0xe31bad._0x41591d)](_0x247710=>_0x228651(0x27c,0x3e7)+'ing>'+escapeXml(_0x247710)+('</string'+'>'))[_0x367df1(_0xe31bad._0xac6ec1,-_0xe31bad._0x3bc216)]('\x0a');function _0x367df1(_0x2b83db,_0x365c3a){return _0x9ec63e(_0x365c3a- -_0x19ed4f._0x4b0cb1,_0x2b83db);}return'<?xml\x20ve'+_0x228651(_0xe31bad._0x917718,0x3d7)+_0x228651(_0xe31bad._0x3eb9f7,_0xe31bad._0x44a6be)+_0x228651(-_0xe31bad._0x2556cc,_0xe31bad._0x4011e2)+_0x367df1(_0xe31bad._0x1acaae,_0xe31bad._0x652e)+_0x367df1(_0xe31bad._0x4317f4,0x103)+'\x20plist\x20P'+_0x367df1(-_0xe31bad._0xfa76ad,_0xe31bad._0x11f621)+_0x367df1(-0xa7,-_0xe31bad._0x338adb)+_0x228651(0x1e9,_0xe31bad._0x5a21df)+'ST\x201.0//'+'EN\x22\x20\x22htt'+'p://www.'+'apple.co'+'m/DTDs/P'+_0x228651(0x588,0x44b)+'ist-1.0.'+'dtd\x22>\x0a<p'+_0x228651(_0xe31bad._0x3126b7,0x242)+_0x367df1(_0xe31bad._0x1cc122,0x129)+_0x367df1(0x367,_0xe31bad._0x1b38c3)+_0x367df1(0x197,0xe)+_0x228651(0x49,0x1e2)+'/key>\x0a\x20\x20'+_0x228651(_0xe31bad._0x2da914,0x3bf)+SERVICE_LABEL+(_0x228651(0x1f5,0x1c4)+_0x228651(0x3c9,_0xe31bad._0x32f850)+'>Program'+'Argument'+_0x228651(0x346,_0xe31bad._0x473291)+_0x228651(0x56e,_0xe31bad._0x29263c)+'>\x0a')+_0x21cd99+('\x0a\x20\x20</arr'+_0x367df1(-_0xe31bad._0x54bfbe,-0x8e)+_0x228651(_0xe31bad._0x5719ed,_0xe31bad._0x23da86)+_0x367df1(-0x5,0x12b)+_0x367df1(0x1ac,0x1c4)+_0x367df1(_0xe31bad._0x2692b3,-_0xe31bad._0x5a2288)+_0x228651(_0xe31bad._0x10e4dc,0x4d0)+_0x367df1(0x118,-_0xe31bad._0x315173)+_0x228651(0x2d2,_0xe31bad._0x2494ce)+_0x228651(_0xe31bad._0x5c4b8b,_0xe31bad._0x4b9956)+_0x367df1(0x357,_0xe31bad._0x52282f)+_0x367df1(-_0xe31bad._0x447ac2,-0x10c)+_0x367df1(-_0xe31bad._0x4406a1,_0xe31bad._0x12b354)+'y>\x0a\x20\x20<st'+'ring>')+escapeXml(_0x5474cc)+(_0x367df1(-0x9b,-_0xe31bad._0x43cae2)+_0x228651(_0xe31bad._0x92addb,0x375)+_0x367df1(_0xe31bad._0x52c158,0x20a)+_0x367df1(0x10b,-0xb8)+'th</key>'+_0x228651(_0xe31bad._0x16ee7b,0x134)+_0x367df1(-_0xe31bad._0x425d87,-_0xe31bad._0x47349b))+escapeXml(_0x31f57a)+(_0x367df1(-0xeb,-0xce)+'>\x0a</dict'+'>\x0a</plis'+_0x367df1(_0xe31bad._0x4b2edb,_0xe31bad._0x3f4b3e));}function buildLinuxSystemdUnit(_0x5b8e36,_0x554848,_0x4857bd){const _0x41e2dc={_0x2a5513:0x3b,_0xc8ec16:0x595,_0x431e32:0x5a4,_0x2ef4a4:0x27e,_0xeb4469:0x1a,_0x1974e1:0x1b1,_0xed3d12:0x2ad,_0x220d93:0x6c,_0x126c5e:0x65,_0x4fa361:0x279,_0x3d7755:0x6ac,_0x2270c5:0x7fa,_0x4cb281:0x40e,_0x2c5375:0x767,_0x5dd194:0x9,_0x583712:0xaf,_0x3fabe9:0x23a,_0x4cd3c7:0x20e,_0x4378d8:0x184,_0x12de60:0x27d,_0x1cd325:0x39b,_0x5a5f59:0xb1,_0x2a0dc3:0x3de,_0x14fd4f:0x4e1,_0x5b4583:0x5f3,_0x38c7c2:0x4bf,_0x5d6bd2:0x579,_0x78c6ab:0x47a,_0x2a0d73:0x617,_0x150099:0x505,_0x1ffdc0:0x51c};function _0x59c100(_0x2bb99f,_0xf648a){return _0x9ec63e(_0x2bb99f-0x347,_0xf648a);}function _0x25c3c3(_0x2e324f,_0x2f8f7c){return _0x9ec63e(_0x2e324f- -0x192,_0x2f8f7c);}const _0x5283a1={'ZSupj':function(_0x1e4136,_0x1675bf){return _0x1e4136(_0x1675bf);}},_0x2d4cc1=_0x5b8e36[_0x59c100(0x4f2,0x529)](escapeSystemdArg)[_0x25c3c3(-_0x41e2dc._0x2a5513,0x79)]('\x20');return _0x59c100(_0x41e2dc._0xc8ec16,0x666)+_0x59c100(_0x41e2dc._0x431e32,0x6f2)+_0x25c3c3(-0x129,-_0x41e2dc._0x2ef4a4)+'et\x20Bridg'+'e\x20CLI\x0aAf'+_0x25c3c3(0x72,-_0x41e2dc._0xeb4469)+_0x25c3c3(_0x41e2dc._0x1974e1,_0x41e2dc._0xed3d12)+_0x25c3c3(-_0x41e2dc._0x220d93,-_0x41e2dc._0x126c5e)+_0x25c3c3(_0x41e2dc._0x4fa361,0x2fe)+_0x59c100(_0x41e2dc._0x3d7755,_0x41e2dc._0x2270c5)+'online.t'+'arget\x0a\x0a['+_0x59c100(_0x41e2dc._0x4cb281,0x287)+_0x59c100(0x721,0x568)+_0x59c100(_0x41e2dc._0x2c5375,0x573)+_0x25c3c3(-0x86,_0x41e2dc._0x5dd194)+_0x2d4cc1+(_0x25c3c3(-_0x41e2dc._0x583712,-0x269)+_0x25c3c3(_0x41e2dc._0x3fabe9,_0x41e2dc._0x4cd3c7)+_0x25c3c3(_0x41e2dc._0x4378d8,_0x41e2dc._0x12de60)+'ec=2\x0aWor'+_0x59c100(_0x41e2dc._0x1cd325,0x427)+_0x25c3c3(-_0x41e2dc._0x5a5f59,0x5a))+_0x5283a1[_0x59c100(_0x41e2dc._0x2a0dc3,_0x41e2dc._0x14fd4f)](escapeSystemdArg,SERVICE_DIR)+(_0x59c100(0x5f3,0x719)+_0x59c100(0x49f,0x2af)+_0x25c3c3(0x8,-0x15c))+_0x554848+(_0x59c100(_0x41e2dc._0x5b4583,0x684)+_0x59c100(_0x41e2dc._0x38c7c2,0x560)+_0x59c100(0x76b,0x82b))+_0x4857bd+(_0x59c100(_0x41e2dc._0x5d6bd2,_0x41e2dc._0x78c6ab)+_0x59c100(0x3a4,0x320)+'edBy=def'+_0x59c100(_0x41e2dc._0x2a0d73,_0x41e2dc._0x150099)+_0x59c100(0x5b4,_0x41e2dc._0x1ffdc0));}function getServicePath(){const _0x57b317={_0x1f87b9:0x531,_0x17de6c:0x512,_0x3036a6:0x48b,_0x43825d:0x3fa,_0x6387ec:0x58a,_0xecfbd7:0x15b,_0x40d31d:0x194,_0x125df0:0x354,_0x4d7269:0x103,_0x1be704:0x263,_0x5ee466:0x3bd,_0x4a4865:0x88,_0x1b1808:0x298},_0x39cc95={_0x26e4c2:0x135},_0x1ef978={_0x102081:0x15c};function _0x24696e(_0x531e99,_0x2fcb78){return _0x9ec63e(_0x531e99-_0x1ef978._0x102081,_0x2fcb78);}function _0x23e453(_0x2d7783,_0x221828){return _0x9ec63e(_0x221828- -_0x39cc95._0x26e4c2,_0x2d7783);}switch(process[_0x24696e(_0x57b317._0x1f87b9,_0x57b317._0x17de6c)]){case _0x24696e(0x423,0x2ce):return MACOS_PLIST_PATH;case _0x23e453(_0x57b317._0x3036a6,0x2c1):return LINUX_SERVICE_PATH;case _0x24696e(0x2c9,_0x57b317._0x43825d):return _0x24696e(_0x57b317._0x6387ec,0x5b5)+_0x24696e(0x455,0x384)+_0x23e453(0x16e,_0x57b317._0xecfbd7)+_0x24696e(0x2cf,_0x57b317._0x40d31d)+_0x24696e(0x269,_0x57b317._0x125df0)+_0x23e453(_0x57b317._0x4d7269,_0x57b317._0x1be704)+_0x24696e(_0x57b317._0x5ee466,0x57d)+_0x23e453(_0x57b317._0x4a4865,0x18c)+_0x23e453(_0x57b317._0x1b1808,0x249);default:return'';}}function _0x1bf0(_0x3fd06a,_0x3e75bc){_0x3fd06a=_0x3fd06a-0xbb;const _0x25ab31=_0x5c01();let _0x2cad2f=_0x25ab31[_0x3fd06a];if(_0x1bf0['nJavCm']===undefined){var _0x2de8b0=function(_0xd746){const _0x3f15e2='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x7fee90='',_0xcd7219='',_0x61b8e6=_0x7fee90+_0x2de8b0;for(let _0x2915f9=0x0,_0x3bb806,_0x1d623b,_0x29c900=0x0;_0x1d623b=_0xd746['charAt'](_0x29c900++);~_0x1d623b&&(_0x3bb806=_0x2915f9%0x4?_0x3bb806*0x40+_0x1d623b:_0x1d623b,_0x2915f9++%0x4)?_0x7fee90+=_0x61b8e6['charCodeAt'](_0x29c900+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x3bb806>>(-0x2*_0x2915f9&0x6)):_0x2915f9:0x0){_0x1d623b=_0x3f15e2['indexOf'](_0x1d623b);}for(let _0x5f13e5=0x0,_0x2bd3c4=_0x7fee90['length'];_0x5f13e5<_0x2bd3c4;_0x5f13e5++){_0xcd7219+='%'+('00'+_0x7fee90['charCodeAt'](_0x5f13e5)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0xcd7219);};_0x1bf0['UHhEAL']=_0x2de8b0,_0x1bf0['FHOsCN']={},_0x1bf0['nJavCm']=!![];}const _0x5c01b8=_0x25ab31[0x0],_0x1bf0a2=_0x3fd06a+_0x5c01b8,_0xecdf90=_0x1bf0['FHOsCN'][_0x1bf0a2];if(!_0xecdf90){const _0x1dc02e=function(_0xbd1ce8){this['ltDOpR']=_0xbd1ce8,this['RjAVYS']=[0x1,0x0,0x0],this['UPGcvv']=function(){return'newState';},this['lMBifS']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['aNzKIt']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x1dc02e['prototype']['RtIZFZ']=function(){const _0x109e3d=new RegExp(this['lMBifS']+this['aNzKIt']),_0x103a16=_0x109e3d['test'](this['UPGcvv']['toString']())?--this['RjAVYS'][0x1]:--this['RjAVYS'][0x0];return this['qIccRY'](_0x103a16);},_0x1dc02e['prototype']['qIccRY']=function(_0x40a464){if(!Boolean(~_0x40a464))return _0x40a464;return this['pKIkme'](this['ltDOpR']);},_0x1dc02e['prototype']['pKIkme']=function(_0x5223db){for(let _0x65b0d2=0x0,_0x41cd73=this['RjAVYS']['length'];_0x65b0d2<_0x41cd73;_0x65b0d2++){this['RjAVYS']['push'](Math['round'](Math['random']())),_0x41cd73=this['RjAVYS']['length'];}return _0x5223db(this['RjAVYS'][0x0]);},new _0x1dc02e(_0x1bf0)['RtIZFZ'](),_0x2cad2f=_0x1bf0['UHhEAL'](_0x2cad2f),_0x1bf0['FHOsCN'][_0x1bf0a2]=_0x2cad2f;}else _0x2cad2f=_0xecdf90;return _0x2cad2f;}function detectServiceMethod(){const _0x4efe94={_0x53c5ea:0x118,_0x29ea34:0x1,_0x2c3463:0x573,_0x32354a:0x409,_0x2d1fe2:0x56b,_0x14fc4b:0x452,_0x5ba7fd:0x2da,_0x49a661:0x89,_0x276571:0x375,_0x48c09e:0x1,_0x5cb471:0x1f6,_0x20efa8:0x20,_0x4adcec:0x138,_0x4c040c:0x2c7,_0x154620:0x98},_0x1c62e0={_0x30a97c:0x1c0};function _0xc6a92b(_0x3de0e2,_0x339dc3){return _0x431448(_0x3de0e2,_0x339dc3- -0x47);}const _0x2c7691={};function _0x2f3ee5(_0x2ea45d,_0x2a9eab){return _0x431448(_0x2ea45d,_0x2a9eab- -_0x1c62e0._0x30a97c);}_0x2c7691[_0x2f3ee5(_0x4efe94._0x53c5ea,-_0x4efe94._0x29ea34)]=_0xc6a92b(_0x4efe94._0x2c3463,_0x4efe94._0x32354a);const _0x267198=_0x2c7691;switch(process[_0xc6a92b(_0x4efe94._0x2d1fe2,0x3e8)]){case _0xc6a92b(_0x4efe94._0x14fc4b,_0x4efe94._0x5ba7fd):return _0x2f3ee5(-0x1f,-_0x4efe94._0x49a661)+_0xc6a92b(0x17c,_0x4efe94._0x276571);case _0x267198[_0x2f3ee5(0x1fd,-_0x4efe94._0x48c09e)]:return _0xc6a92b(0x16a,0x284)+_0xc6a92b(0x403,0x3e3);case'win32':return _0x2f3ee5(0x20b,_0x4efe94._0x5cb471)+'run-regi'+_0xc6a92b(_0x4efe94._0x20efa8,_0x4efe94._0x4adcec);default:return _0xc6a92b(0xcf,_0x4efe94._0x4c040c)+_0x2f3ee5(0xc5,-_0x4efe94._0x154620);}}function readServiceState(){const _0x413ac4={_0x4a49af:0x95,_0xdd1dd7:0x32f,_0x1f97b2:0x359,_0x5f239c:0x30d,_0xd84065:0x393,_0x1bc9a3:0x104,_0x558d47:0x42},_0x5b52f7={_0x161394:0x294};function _0x5eab8a(_0x1a60b5,_0x2ecb2d){return _0x9ec63e(_0x2ecb2d- -0x1b,_0x1a60b5);}function _0x1a76ce(_0x134174,_0x133fc2){return _0x9ec63e(_0x134174- -_0x5b52f7._0x161394,_0x133fc2);}const _0x297031={'qTObS':function(_0x573808,_0x587cfd,_0x44c341){return _0x573808(_0x587cfd,_0x44c341);}};if(!_0x146d3f(SERVICE_STATE_PATH))return null;try{const _0x5567e2=JSON[_0x5eab8a(0x180,0x19f)](_0x297031[_0x5eab8a(-_0x413ac4._0x4a49af,0xb8)](_0x1cabb2,SERVICE_STATE_PATH,'utf8'));if(!_0x5567e2['pid']||typeof _0x5567e2[_0x5eab8a(-0x178,0x25)]!==_0x5eab8a(0x468,_0x413ac4._0xdd1dd7))return null;return{'pid':_0x5567e2['pid'],'startedAt':_0x5567e2[_0x5eab8a(0x3e0,_0x413ac4._0x1f97b2)+'t']??new Date(0x0)[_0x5eab8a(_0x413ac4._0x5f239c,_0x413ac4._0xd84065)+_0x1a76ce(-_0x413ac4._0x1bc9a3,-_0x413ac4._0x558d47)]()};}catch{return null;}}function stopRunningProcess(){const _0x38f1d5={_0xb4c30:0x1fb,_0x2742e0:0x2ba,_0x30a690:0x334,_0x55864a:0x50,_0x302396:0x9e,_0x1d59af:0x23a,_0x2cf099:0x3fd,_0x528ed6:0x265,_0x2e8c92:0x1ba,_0x1cdf5b:0xf2,_0x5fffc7:0x2f,_0x3fc912:0x1a5,_0x34a654:0x182,_0x3f1fb2:0xf2},_0x119a06={_0x24b43a:0x18c};function _0xae0bd6(_0x3369d2,_0x176239){return _0x431448(_0x176239,_0x3369d2- -0x233);}const _0x3cfa40={'ufQwr':function(_0x3199e6,_0x469ea0,_0x509d64){return _0x3199e6(_0x469ea0,_0x509d64);},'KkBRH':'win32','lAexd':function(_0x420ab9,_0x133c2e){return _0x420ab9(_0x133c2e);}},_0xb67638=readServiceState();if(!_0xb67638)return;_0x3cfa40[_0xae0bd6(_0x38f1d5._0xb4c30,_0x38f1d5._0x2742e0)](execIgnoreFailure,process[_0xae0bd6(0x1fc,_0x38f1d5._0x30a690)]===_0x3cfa40[_0x393ce4(0x18,-_0x38f1d5._0x55864a)]?_0xae0bd6(-_0x38f1d5._0x302396,0x65):_0xae0bd6(_0x38f1d5._0x1d59af,_0x38f1d5._0x2cf099),process[_0x393ce4(0x258,0x2a3)]===_0x3cfa40[_0x393ce4(-0x1a,-0x50)]?[_0xae0bd6(-0x165,-0x95),_0x3cfa40[_0x393ce4(_0x38f1d5._0x528ed6,0x5f)](String,_0xb67638[_0x393ce4(-_0x38f1d5._0x2e8c92,-_0x38f1d5._0x1cdf5b)]),'/T','/F']:[_0xae0bd6(-_0x38f1d5._0x5fffc7,_0x38f1d5._0x3fc912),String(_0xb67638[_0x393ce4(-_0x38f1d5._0x34a654,-_0x38f1d5._0x3f1fb2)])]);function _0x393ce4(_0x23a2d8,_0x1f1447){return _0x431448(_0x23a2d8,_0x1f1447- -_0x119a06._0x24b43a);}clearServiceState(_0xb67638[_0x393ce4(-0x239,-0xf2)]);}function isPidRunning(_0x5d429d){try{return process['kill'](_0x5d429d,0x0),!![];}catch{return![];}}function startDetachedWindowsService(_0x42eec3){const _0x1db6f5={_0x13d031:0x494,_0x179161:0x293,_0x15d4cd:0x146,_0x180b30:0x1c1,_0x45705:0xd4},_0x39bd62={_0x205f42:0x109},_0x58ac10={'hydga':'ignore','EcOse':function(_0x3e759d,_0x390196){return _0x3e759d(_0x390196);}};function _0x2ad0d2(_0x458298,_0x5bceaf){return _0x9ec63e(_0x5bceaf- -_0x39bd62._0x205f42,_0x458298);}const _0x117c47=openSync(SERVICE_LOG_PATH,'a');function _0x1b27e1(_0x15f426,_0x1401f3){return _0x9ec63e(_0x15f426- -0x1af,_0x1401f3);}const _0x243602=openSync(SERVICE_ERROR_LOG_PATH,'a');try{const [_0x212160,..._0x291da4]=_0x42eec3,_0x2c270e={};_0x2c270e[_0x2ad0d2(_0x1db6f5._0x13d031,_0x1db6f5._0x179161)]=!![],_0x2c270e['stdio']=[_0x58ac10['hydga'],_0x117c47,_0x243602],_0x2c270e[_0x2ad0d2(_0x1db6f5._0x15d4cd,_0x1db6f5._0x180b30)+'ide']=!![];const _0x3724ad=spawn(_0x212160,_0x291da4,_0x2c270e);_0x3724ad['unref']();}finally{closeSync(_0x117c47),_0x58ac10[_0x2ad0d2(0x1e3,_0x1db6f5._0x45705)](closeSync,_0x243602);}}function resolveScriptPath(_0x123dbb){const _0xceaae5={_0x18810e:0x23c};function _0x4ea11a(_0x319aa2,_0x112399){return _0x431448(_0x319aa2,_0x112399-_0xceaae5._0x18810e);}const _0x54b174=_0x123dbb?.['trim']()||process[_0x4ea11a(0x6c8,0x5b4)][0x1]?.[_0x1a4fb2(0x517,0x6cb)]()||'';if(!_0x54b174)return'';function _0x1a4fb2(_0x43b611,_0x305ecf){return _0x431448(_0x43b611,_0x305ecf-0x3a2);}try{return realpathSync(_0x54b174);}catch{return _0x54b174;}}function ensureLaunchScriptExecutable(_0x5b3213,_0x56813c){const _0x421ae5={_0x22ef2c:0x11,_0x577773:0x4d},_0x3953d9={'QBRZE':function(_0x96b328,_0x5a5e8e){return _0x96b328===_0x5a5e8e;},'MYnrs':function(_0x36713a,_0x12fe3a,_0x2868ec){return _0x36713a(_0x12fe3a,_0x2868ec);}};if(_0x3953d9['QBRZE'](_0x56813c,'win32')||!_0x146d3f(_0x5b3213))return;function _0x841123(_0x228645,_0x58aa01){return _0x431448(_0x228645,_0x58aa01- -0x2d8);}try{_0x3953d9[_0x841123(_0x421ae5._0x22ef2c,_0x421ae5._0x577773)](chmodSync,_0x5b3213,0x1ed);}catch{}}function writeServiceLauncher(_0x1b079c){const _0x27354d={_0x5a3661:0x281,_0x361488:0x246,_0x5b5ea4:0x35f,_0x37b8ee:0x30c,_0x44d5d4:0x681,_0x513dec:0x392,_0xe3460d:0x412,_0x4a0f45:0x4cd,_0x38b4c0:0x5e,_0x473ec4:0xa6,_0x1188b6:0x2e2,_0x4cc7e0:0xe0,_0x3ee068:0x14e,_0x2910f1:0x7b0,_0x3687c6:0x773,_0x337228:0x85d,_0x117475:0x84a,_0xaa2f42:0x85e,_0x57f69f:0xe2,_0x2e92ea:0x7be,_0x101ccc:0x8aa,_0x41cfa7:0x82e,_0x2e7472:0x89e,_0x123c6a:0x7df,_0x4a1cc2:0x590,_0x2e723b:0x75f,_0x3ba7ac:0x705,_0x3d75b6:0x7c2,_0x3904b4:0x350,_0x4b31c8:0x80f,_0x3f3e51:0x3ec,_0x871fea:0x424,_0x143c61:0x57c,_0x581186:0x609},_0x5cbfb2={_0xe5ed8d:0xe},_0x13193c={'dXpun':function(_0xfb259b){return _0xfb259b();},'JuKYk':function(_0x4e4713,_0x462d10,_0x25c2a3,_0x5cbbda){return _0x4e4713(_0x462d10,_0x25c2a3,_0x5cbbda);}};_0x13193c['dXpun'](ensureServiceDirs);function _0x13cef7(_0x38c954,_0x2ecc73){return _0x9ec63e(_0x2ecc73-_0x5cbfb2._0xe5ed8d,_0x38c954);}function _0x5e0b59(_0x4834e1,_0x8b0e6){return _0x9ec63e(_0x4834e1-0x463,_0x8b0e6);}const _0x4c7ac0=[_0x13cef7(_0x27354d._0x5a3661,_0x27354d._0x361488)+'h',_0x13cef7(0x203,_0x27354d._0x5b5ea4)+_0x13cef7(0x1cf,_0x27354d._0x37b8ee)+escapeShellDoubleQuoted(_0x1b079c[_0x5e0b59(_0x27354d._0x44d5d4,0x49d)])+'\x22',_0x13cef7(0x435,_0x27354d._0x513dec)+_0x13cef7(0x2f5,_0x27354d._0xe3460d)+escapeShellDoubleQuoted(_0x1b079c[_0x5e0b59(0x60f,_0x27354d._0x4a0f45)])+'\x22',_0x13cef7(_0x27354d._0x38b4c0,_0x27354d._0x473ec4)+'ATH=\x22'+escapeShellDoubleQuoted(_0x1b079c['scriptPa'+'th'])+'\x22','if\x20[\x20-x\x20'+'\x22$NODE_P'+_0x13cef7(0x165,_0x27354d._0x1188b6)+'then',_0x13cef7(-_0x27354d._0x4cc7e0,0xbe)+_0x13cef7(0x2d0,0x16b)+'TH\x22\x20\x22$SC'+_0x13cef7(-0x9,_0x27354d._0x3ee068)+_0x13cef7(-0x83,0x52)+'-service','fi',_0x5e0b59(_0x27354d._0x2910f1,_0x27354d._0x3687c6)+_0x5e0b59(_0x27354d._0x337228,_0x27354d._0x117475)+_0x5e0b59(0x66b,_0x27354d._0xaa2f42)+_0x13cef7(-_0x27354d._0x57f69f,0x11f)+_0x5e0b59(_0x27354d._0x2e92ea,_0x27354d._0x101ccc),_0x5e0b59(_0x27354d._0x41cfa7,0x66e)+'ode\x20\x22$SC'+_0x13cef7(-0x85,_0x27354d._0x3ee068)+_0x13cef7(0x10c,0x52)+_0x5e0b59(_0x27354d._0x2e7472,0x9f0),'fi',_0x5e0b59(0x76b,0x632)+'de\x20runti'+_0x5e0b59(0x62d,_0x27354d._0x123c6a)+_0x5e0b59(_0x27354d._0x4a1cc2,0x4b7)+_0x5e0b59(0x706,_0x27354d._0x2e723b)+_0x5e0b59(_0x27354d._0x3ba7ac,_0x27354d._0x3d75b6)+_0x13cef7(0x515,_0x27354d._0x3904b4)+_0x5e0b59(_0x27354d._0x4b31c8,0x63f),_0x13cef7(_0x27354d._0x3f3e51,_0x27354d._0x871fea),''];return _0x13193c['JuKYk'](_0x161090,SERVICE_LAUNCHER_PATH,_0x4c7ac0[_0x5e0b59(0x5ba,_0x27354d._0x143c61)]('\x0a'),_0x5e0b59(_0x27354d._0x581186,0x51d)),SERVICE_LAUNCHER_PATH;}function escapeShellDoubleQuoted(_0x316a13){const _0x11dc7e={_0x434179:0x725,_0x5e2608:0x2c1},_0x8bcb33={_0x39080c:0x3da};function _0x5dc5a7(_0x47de5b,_0x422d95){return _0x431448(_0x47de5b,_0x422d95- -0x277);}function _0x54542d(_0x31e9a3,_0xaa3dce){return _0x431448(_0x31e9a3,_0xaa3dce-_0x8bcb33._0x39080c);}return _0x316a13[_0x54542d(0x6f4,_0x11dc7e._0x434179)+'ll']('\x5c','\x5c\x5c')['replaceA'+'ll']('\x22','\x5c\x22')['replaceA'+'ll']('$','\x5c$')[_0x5dc5a7(_0x11dc7e._0x5e2608,0xd4)+'ll']('`','\x5c`');}function buildWindowsRunCommand(_0x1ec178){return _0x1ec178['map'](escapeWindowsArg)['join']('\x20');}function ensureServiceDirs(){const _0x51847a={_0x458594:0x4d1,_0x362fee:0x496,_0x15fcf4:0x83d},_0x54dc9d={'GFxWS':function(_0x4ebb1c,_0x5ef493,_0x57f6af){return _0x4ebb1c(_0x5ef493,_0x57f6af);}},_0x2a628d={};_0x2a628d[_0x55bc41(0x4bb,0x621)+'e']=!![];function _0x55bc41(_0x5b61d9,_0x2a1e3e){return _0x431448(_0x2a1e3e,_0x5b61d9-0x3b8);}function _0x4d2045(_0x3bcda2,_0x17d708){return _0x431448(_0x17d708,_0x3bcda2-0x3ce);}_0x282046(SERVICE_DIR,_0x2a628d);const _0x484806={};_0x484806[_0x4d2045(_0x51847a._0x458594,_0x51847a._0x362fee)+'e']=!![],_0x54dc9d[_0x55bc41(0x745,_0x51847a._0x15fcf4)](_0x282046,LOG_DIR,_0x484806);}function escapeXml(_0x49a058){const _0x5da87c={_0x513b01:0x284,_0x415575:0x4da,_0x19ea34:0x478,_0x25495d:0x566,_0x3c39cd:0x24e,_0x3daab1:0x27a,_0x1c9c1f:0x43b,_0x4af6a2:0x43a,_0x239f5a:0x165},_0x162860={_0x5294cb:0x18f},_0x15cc2c={};_0x15cc2c[_0x2fb7e5(_0x5da87c._0x513b01,0x143)]=_0x480a00(0x381,0x33b);function _0x2fb7e5(_0x4671a0,_0x2c641d){return _0x431448(_0x2c641d,_0x4671a0-_0x162860._0x5294cb);}const _0x1077b9=_0x15cc2c;function _0x480a00(_0x4acc96,_0xa97a68){return _0x431448(_0x4acc96,_0xa97a68-0xef);}return _0x49a058['replaceA'+'ll']('&',_0x480a00(0x29d,0x3f3))[_0x2fb7e5(_0x5da87c._0x415575,0x6d7)+'ll']('<',_0x2fb7e5(_0x5da87c._0x19ea34,_0x5da87c._0x25495d))['replaceA'+'ll']('>',_0x2fb7e5(_0x5da87c._0x3c39cd,_0x5da87c._0x3daab1))[_0x480a00(0x477,0x43a)+'ll']('\x22','"')[_0x480a00(_0x5da87c._0x1c9c1f,_0x5da87c._0x4af6a2)+'ll']('\x27',_0x1077b9[_0x480a00(_0x5da87c._0x239f5a,0x1e4)]);}function escapeSystemdArg(_0x2f30d3){const _0x38df0b={_0x62b21:0x543},_0x3e92c6={_0x5f2bab:0x185};function _0x2ac89d(_0x42fda9,_0x4de73f){return _0x431448(_0x42fda9,_0x4de73f-_0x3e92c6._0x5f2bab);}function _0x5d2c3c(_0x2762bd,_0xb75d16){return _0x431448(_0xb75d16,_0x2762bd-0x1f8);}return'\x22'+_0x2f30d3[_0x2ac89d(0x3f4,0x4d0)+'ll']('\x5c','\x5c\x5c')[_0x5d2c3c(_0x38df0b._0x62b21,0x743)+'ll']('\x22','\x5c\x22')+'\x22';}function escapeWindowsArg(_0x2dfdde){return'\x22'+_0x2dfdde['replaceA'+'ll']('\x22','\x5c\x22')+'\x22';}function commandSucceeds(_0x2a82d6,_0x46b0c0){const _0x27beeb={_0x261578:0x54e},_0x3e9b00={_0x1998cd:0xd7};function _0x2ac8c4(_0x3a20d0,_0x793ecd){return _0x431448(_0x3a20d0,_0x793ecd-0x368);}function _0x37521b(_0xf360ae,_0x3cf66f){return _0x431448(_0xf360ae,_0x3cf66f- -_0x3e9b00._0x1998cd);}try{const _0x2cd7dd={};return _0x2cd7dd[_0x2ac8c4(0x7b0,0x800)]=_0x2ac8c4(_0x27beeb._0x261578,0x701),execFileSync(_0x2a82d6,_0x46b0c0,_0x2cd7dd),!![];}catch{return![];}}function execIgnoreFailure(_0x2a1486,_0x7aaabd){const _0x2068cc={_0x1d092a:0x597,_0x179b40:0x498};function _0x5774bc(_0x281a1a,_0x41472e){return _0x431448(_0x281a1a,_0x41472e-0x368);}function _0x272893(_0x3c679d,_0xc5e283){return _0x431448(_0xc5e283,_0x3c679d-0xff);}try{const _0x43423e={};_0x43423e[_0x272893(_0x2068cc._0x1d092a,0x549)]=_0x272893(_0x2068cc._0x179b40,0x447),execFileSync(_0x2a1486,_0x7aaabd,_0x43423e);}catch{}}function rmIfExists(_0x23f8af){const _0x1dbf96={_0x1c1a15:0x349,_0x12aae5:0x183};if(!_0x146d3f(_0x23f8af))return;function _0x29fb9e(_0x479f9b,_0x1355de){return _0x431448(_0x479f9b,_0x1355de- -0x10a);}const _0x25d21e={};_0x25d21e[_0x29fb9e(_0x1dbf96._0x1c1a15,_0x1dbf96._0x12aae5)]=!![],_0x9ac38d(_0x23f8af,_0x25d21e);}import{existsSync as _0x312356,readFileSync as _0x453671}from'fs';import{homedir as _0x251b2f}from'os';import{join as _0x21174e}from'path';var DEFAULT_GATEWAY_URL=_0x431448(0x206,0xd7)+_0x431448(0xf0,0x163)+_0x431448(0x176,0x22b),OPENCLAW_DIR=_0x21174e(_0x251b2f(),_0x9ec63e(0x16a,-0x46)+'w'),OPENCLAW_CONFIG_PATH2=_0x21174e(OPENCLAW_DIR,_0x9ec63e(0x2d9,0x110)+_0x9ec63e(0xa6,0x213)),OPENCLAW_MEDIA_DIR=_0x21174e(OPENCLAW_DIR,_0x431448(0x386,0x1f1));function resolveGatewayUrl(_0x2b2244){const _0x12eb9e={_0x3cf8df:0x2b3,_0x558f3e:0x99a,_0x3522b3:0xb4,_0x2f8672:0x8b4},_0x27bc5a={_0x53c060:0x118},_0x172e68={'NCUdZ':function(_0x366773){return _0x366773();}},_0x4daaac=_0x2b2244?.['trim']();if(_0x4daaac)return _0x4daaac;const _0x4ffdc7=_0x172e68[_0x19de6b(_0x12eb9e._0x3cf8df,0x1ec)](readOpenClawInfo);function _0x2a0355(_0x8db2b5,_0x25035f){return _0x9ec63e(_0x25035f-0x461,_0x8db2b5);}if(typeof _0x4ffdc7['gatewayP'+'ort']===_0x2a0355(_0x12eb9e._0x558f3e,0x7ab))return _0x19de6b(-0x124,-0x9b)+_0x19de6b(-_0x12eb9e._0x3522b3,-0x5a)+_0x4ffdc7[_0x2a0355(_0x12eb9e._0x2f8672,0x7ef)+'ort'];function _0x19de6b(_0x3c68ef,_0x2c87df){return _0x9ec63e(_0x2c87df- -_0x27bc5a._0x53c060,_0x3c68ef);}return DEFAULT_GATEWAY_URL;}function readOpenClawInfo(){const _0x27f757={_0x1aa399:0x120,_0x56c948:0x4ee,_0x4d470b:0x589,_0x35813c:0x15e,_0x4aafdb:0x5f3,_0x1e0eaf:0x1a,_0x135faa:0x54,_0x94fad9:0x3d,_0x3d3a5:0x242,_0x343334:0x2d,_0x3fd8b0:0x46,_0x8711ae:0x5ec,_0x404d71:0x72c,_0x59e0df:0xb3,_0x3bf7de:0x14b,_0x43d228:0x36,_0x22b5d9:0x92,_0x94c452:0x55b,_0x4e2b44:0x533,_0x34705e:0x1a,_0x4d8160:0x64,_0x307cc9:0x204,_0x4b8fa8:0x3f1,_0x169134:0x106,_0x1acb99:0x27f,_0x4b122a:0x16d,_0x3f7908:0x6ed,_0x1fb844:0x7ab,_0x5806ce:0x6fd,_0x1cee1c:0x615,_0x436086:0x113,_0x2a95be:0x19,_0xbe2889:0x21d,_0x234915:0x47b},_0x2ead24={_0x320ff1:0x2af};function _0x58e2a6(_0x47f048,_0x5dd07e){return _0x9ec63e(_0x47f048-0x35f,_0x5dd07e);}function _0x265c03(_0x431b08,_0x5e748f){return _0x9ec63e(_0x431b08- -_0x2ead24._0x320ff1,_0x5e748f);}const _0x3b6acd={'eRfrx':function(_0x17c42f){return _0x17c42f();},'sFjOi':_0x58e2a6(0x505,0x67a),'sbEQq':function(_0x2fa046,_0x24006e){return _0x2fa046===_0x24006e;},'XBodv':'token','iyRtv':'password'};if(!_0x312356(OPENCLAW_CONFIG_PATH2))return{'configFound':![],'gatewayPort':null,'authMode':null,'token':_0x3b6acd[_0x265c03(-_0x27f757._0x1aa399,-0x3f)](readGatewayTokenEnv),'password':_0x3b6acd[_0x58e2a6(_0x27f757._0x56c948,_0x27f757._0x4d470b)](readGatewayPasswordEnv)};try{const _0x1fed86=JSON[_0x265c03(-0xf5,-_0x27f757._0x35813c)](_0x453671(OPENCLAW_CONFIG_PATH2,_0x3b6acd[_0x58e2a6(_0x27f757._0x4aafdb,0x709)])),_0xd64626=_0x1fed86[_0x265c03(-_0x27f757._0x1e0eaf,_0x27f757._0x135faa)]?.['port'],_0x56a912=_0x3b6acd[_0x265c03(-0x238,-0x206)](typeof _0xd64626,'number')&&Number[_0x265c03(-_0x27f757._0x94fad9,-_0x27f757._0x3d3a5)+'r'](_0xd64626)?_0xd64626:null,_0x30ed6b=_0x1fed86[_0x58e2a6(0x5f4,0x71f)]?.[_0x265c03(_0x27f757._0x343334,-_0x27f757._0x3fd8b0)]?.['mode']===_0x3b6acd[_0x58e2a6(0x719,_0x27f757._0x8711ae)]||_0x3b6acd['sbEQq'](_0x1fed86[_0x58e2a6(0x5f4,_0x27f757._0x404d71)]?.[_0x265c03(_0x27f757._0x343334,0x143)]?.[_0x265c03(-_0x27f757._0x59e0df,-0x184)],_0x3b6acd[_0x265c03(-_0x27f757._0x3bf7de,_0x27f757._0x43d228)])?_0x1fed86[_0x58e2a6(0x5f4,0x663)][_0x265c03(_0x27f757._0x343334,-_0x27f757._0x22b5d9)][_0x58e2a6(_0x27f757._0x94c452,_0x27f757._0x4e2b44)]:null,_0x596ded=readConfiguredSecret(_0x1fed86[_0x265c03(-_0x27f757._0x34705e,_0x27f757._0x4d8160)]?.[_0x265c03(0x2d,_0x27f757._0x307cc9)]?.[_0x58e2a6(_0x27f757._0x4b8fa8,0x533)])??readGatewayTokenEnv(),_0x7aaaca=readConfiguredSecret(_0x1fed86['gateway']?.[_0x265c03(0x2d,-_0x27f757._0x169134)]?.[_0x265c03(-0x193,-_0x27f757._0x1acb99)])??_0x3b6acd['eRfrx'](readGatewayPasswordEnv),_0x3e143c={};return _0x3e143c[_0x265c03(-_0x27f757._0x4b122a,-0x150)+_0x58e2a6(0x550,0x6ba)]=!![],_0x3e143c[_0x58e2a6(_0x27f757._0x3f7908,_0x27f757._0x1fb844)+_0x58e2a6(_0x27f757._0x5806ce,_0x27f757._0x1cee1c)]=_0x56a912,_0x3e143c[_0x265c03(_0x27f757._0x436086,_0x27f757._0x2a95be)]=_0x30ed6b,_0x3e143c[_0x265c03(-_0x27f757._0xbe2889,-0x3ce)]=_0x596ded,_0x3e143c[_0x58e2a6(_0x27f757._0x234915,0x3be)]=_0x7aaaca,_0x3e143c;}catch{return{'configFound':!![],'gatewayPort':null,'authMode':null,'token':readGatewayTokenEnv(),'password':readGatewayPasswordEnv()};}}function resolveGatewayAuth(){const _0x350af8={_0x1133db:0x16,_0x293f77:0xba,_0x43f783:0x424,_0x4bec25:0xa0,_0x2da7c9:0x2e,_0x51226c:0x5e7,_0x51b109:0x290,_0xcabb8c:0x133,_0x372ef3:0x2b0,_0x5003b7:0x3c1,_0x3aebdf:0x54,_0x3be252:0x80,_0x345b38:0x817,_0x100340:0xa,_0x3956ce:0x16e,_0x460c40:0x13,_0x328148:0x32d,_0xe19b17:0x580,_0xb7b9ab:0x27f,_0x5bc69b:0x311,_0x53815c:0x120,_0x107e03:0x30d,_0x2071cc:0x360,_0x53034c:0x3a2,_0x2ba45b:0x45f,_0x2100fb:0x16,_0x1273c4:0x57,_0x514e5b:0xa0,_0x3337f1:0x3e9,_0x327ac5:0x60,_0x1de7f6:0x1e8,_0x4d27cb:0x96,_0x1cbb13:0x3e9,_0x91087c:0x279},_0x15595c={_0x56b060:0x2cd},_0x1f5371={'jQvFR':function(_0x4108a4){return _0x4108a4();},'Djofi':function(_0x51700c,_0x199e4c){return _0x51700c&&_0x199e4c;},'trQQy':_0x209473(-_0x350af8._0x1133db,-_0x350af8._0x293f77),'hSKWr':'token'},_0xd493eb=_0x1f5371[_0x2bb97f(_0x350af8._0x43f783,0x429)](readOpenClawInfo),_0x14c12e=_0xd493eb[_0x209473(-_0x350af8._0x4bec25,-_0x350af8._0x2da7c9)];function _0x209473(_0x1b8b47,_0x32a930){return _0x9ec63e(_0x1b8b47- -0x132,_0x32a930);}const _0x48e026=_0xd493eb['password'];if(_0x1f5371[_0x2bb97f(_0x350af8._0x51226c,0x450)](_0x14c12e,_0x48e026)&&_0xd493eb[_0x209473(_0x350af8._0x51b109,0xc3)]==null){const _0x32bff7={};return _0x32bff7[_0x209473(-_0x350af8._0x4bec25,_0x350af8._0xcabb8c)]=_0x14c12e,_0x32bff7[_0x209473(-_0x350af8._0x1133db,-0x21d)]=_0x48e026,_0x32bff7['label']=_0x209473(-0xa0,-0xbc),_0x32bff7[_0x209473(0x1f2,_0x350af8._0x372ef3)]='OpenClaw'+'\x20has\x20bot'+'h\x20gatewa'+'y\x20token\x20'+_0x2bb97f(0x54a,_0x350af8._0x5003b7)+'word\x20con'+_0x209473(_0x350af8._0x3aebdf,-_0x350af8._0x3be252)+_0x2bb97f(_0x350af8._0x345b38,0x655)+'eway.aut'+_0x209473(0xd0,_0x350af8._0x100340)+_0x209473(_0x350af8._0x3956ce,0xb)+_0x209473(-_0x350af8._0x460c40,0xe7)+_0x2bb97f(0x52e,_0x350af8._0x328148)+_0x2bb97f(0x478,_0x350af8._0xe19b17)+_0x209473(_0x350af8._0xb7b9ab,0x1f2)+_0x209473(_0x350af8._0x5bc69b,_0x350af8._0x53815c)+'e\x20pairin'+'g.',_0x32bff7;}if(_0xd493eb['authMode']===_0x1f5371[_0x209473(_0x350af8._0x107e03,_0x350af8._0x2071cc)]){const _0x123246={};return _0x123246[_0x2bb97f(0x3b1,0x35f)]=null,_0x123246['password']=null,_0x123246[_0x2bb97f(_0x350af8._0x53034c,_0x350af8._0x2ba45b)]=null,_0x48e026?{'token':null,'password':_0x48e026,'label':_0x209473(-_0x350af8._0x2100fb,-_0x350af8._0x1273c4)}:_0x123246;}if(_0xd493eb['authMode']===_0x2bb97f(0x34b,0x35f)){const _0xe7bf8f={};return _0xe7bf8f['token']=null,_0xe7bf8f['password']=null,_0xe7bf8f[_0x2bb97f(0x398,0x45f)]=null,_0x14c12e?{'token':_0x14c12e,'password':null,'label':_0x1f5371['hSKWr']}:_0xe7bf8f;}if(_0x14c12e){const _0x3bb6e3={};return _0x3bb6e3[_0x209473(-_0x350af8._0x514e5b,-0xdb)]=_0x14c12e,_0x3bb6e3[_0x2bb97f(0x29f,_0x350af8._0x3337f1)]=null,_0x3bb6e3[_0x209473(_0x350af8._0x327ac5,-0x171)]='token',_0x3bb6e3;}function _0x2bb97f(_0xc572ea,_0x178524){return _0x9ec63e(_0x178524-_0x15595c._0x56b060,_0xc572ea);}if(_0x48e026){const _0x2718ca={};return _0x2718ca[_0x2bb97f(0x3e2,0x35f)]=null,_0x2718ca[_0x209473(-0x16,-_0x350af8._0x1de7f6)]=_0x48e026,_0x2718ca[_0x209473(0x60,_0x350af8._0x4d27cb)]=_0x2bb97f(0x1e8,_0x350af8._0x1cbb13),_0x2718ca;}const _0x3eb8ee={};return _0x3eb8ee[_0x2bb97f(0x18f,0x35f)]=null,_0x3eb8ee['password']=null,_0x3eb8ee[_0x2bb97f(_0x350af8._0x91087c,0x45f)]=null,_0x3eb8ee;}function getOpenClawConfigDir(){return OPENCLAW_DIR;}function getOpenClawMediaDir(){return OPENCLAW_MEDIA_DIR;}function readConfiguredSecret(_0x3c0aed){const _0x5a90d7={_0x182829:0x6f5,_0x362a6d:0x53f,_0x4f3df5:0x31,_0x1b47ad:0x534},_0x183fcd={_0x53bb6f:0x35a},_0x3cf411={_0x1f5fdd:0x20b};function _0x12774e(_0x51e7d5,_0x25ed2a){return _0x431448(_0x51e7d5,_0x25ed2a-_0x3cf411._0x1f5fdd);}function _0x5a304b(_0x205f6b,_0x2d5ea5){return _0x431448(_0x2d5ea5,_0x205f6b- -_0x183fcd._0x53bb6f);}return typeof _0x3c0aed===_0x12774e(_0x5a90d7._0x182829,_0x5a90d7._0x362a6d)&&_0x3c0aed[_0x5a304b(-_0x5a90d7._0x4f3df5,-0x98)]()?_0x3c0aed[_0x12774e(0x5df,_0x5a90d7._0x1b47ad)]():null;}function readGatewayTokenEnv(){const _0x370fde={_0xa0f036:0x150,_0x5e2281:0x1c3,_0x55e940:0x4d3,_0x3db9bb:0x5c0,_0x2cd940:0x267,_0x34c99f:0x37},_0x46a4cb={_0x1bc187:0x11c};function _0x28e507(_0x512299,_0xb4ab0){return _0x9ec63e(_0x512299- -0x2c9,_0xb4ab0);}function _0x1b4ad0(_0x1db4d4,_0x2594da){return _0x9ec63e(_0x1db4d4-_0x46a4cb._0x1bc187,_0x2594da);}const _0x52ad53={};_0x52ad53[_0x28e507(0xd7,_0x370fde._0xa0f036)]=_0x28e507(-0x110,-0x216)+_0x28e507(-_0x370fde._0x5e2281,-0x2ec)+_0x1b4ad0(_0x370fde._0x55e940,_0x370fde._0x3db9bb);const _0x1c249e=_0x52ad53;return readEnvValue(_0x1c249e['RFYIc'],_0x28e507(-_0x370fde._0x2cd940,-0x43e)+_0x28e507(-0x1c3,_0x370fde._0x34c99f)+'_TOKEN');}function readGatewayPasswordEnv(){const _0x55354f={_0x3aaf10:0x3ec,_0x1771b8:0x470,_0x5e3986:0x510,_0x150c23:0x3bb,_0x3a8db3:0x295,_0x5921de:0x3c3,_0x1a1476:0x2c4},_0x191708={_0x34857e:0x1d9},_0x1cdd2b={'pbgNP':function(_0x47c9a5,_0x1fb1a6,_0x1c4d02){return _0x47c9a5(_0x1fb1a6,_0x1c4d02);},'SYlhb':_0x4887ea(_0x55354f._0x3aaf10,0x27a)+_0x39e91f(0x3c3,_0x55354f._0x1771b8)+'_PASSWOR'+'D'};function _0x4887ea(_0x559615,_0x4a9177){return _0x431448(_0x4a9177,_0x559615-_0x191708._0x34857e);}function _0x39e91f(_0x2d8ea2,_0x38592e){return _0x431448(_0x38592e,_0x2d8ea2-0x263);}return _0x1cdd2b[_0x39e91f(0x56e,0x5b4)](readEnvValue,_0x1cdd2b[_0x39e91f(_0x55354f._0x5e3986,_0x55354f._0x150c23)],_0x4887ea(_0x55354f._0x3a8db3,0x2f1)+_0x39e91f(_0x55354f._0x5921de,_0x55354f._0x1a1476)+'_PASSWOR'+'D');}function readEnvValue(_0x107db5,_0xeff46f){function _0xdfefcc(_0x1b33d0,_0x59b195){return _0x9ec63e(_0x1b33d0-0xda,_0x59b195);}function _0x476e9c(_0x447862,_0x59efdc){return _0x9ec63e(_0x59efdc-0x2e9,_0x447862);}const _0x2a9b05=process.env[_0x107db5]?.[_0xdfefcc(0x3a9,0x1e2)]();if(_0x2a9b05)return _0x2a9b05;const _0x2e2ae8=process.env[_0xeff46f]?.[_0xdfefcc(0x3a9,0x553)]();return _0x2e2ae8||null;}var CONTROL_PREFIX=_0x431448(0x33a,0x400)+_0x9ec63e(0x161,0x14f)+_0x431448(0x413,0x2e6)+'_:';function parseControl(_0x265687){const _0x28dee4={_0x4b20a0:0x5cf,_0x99f43:0x6a7,_0x2330ce:0x971,_0x435f53:0x7cd,_0x2bb163:0x4bc,_0x363b38:0x4ad,_0x4b0a17:0x3fb,_0x2f79e8:0x699,_0x13d45c:0x5dc,_0x4b7867:0x481,_0x5cb425:0x2e9},_0x2d11bf={_0x5c1e54:0x34a},_0x51b886={};_0x51b886[_0xa9d87e(_0x28dee4._0x4b20a0,_0x28dee4._0x99f43)]='string';const _0x132fb2=_0x51b886;if(!_0x265687[_0x4e5518(_0x28dee4._0x2330ce,_0x28dee4._0x435f53)+'th'](CONTROL_PREFIX))return null;function _0x4e5518(_0x36d60c,_0xa283cc){return _0x431448(_0x36d60c,_0xa283cc-_0x2d11bf._0x5c1e54);}function _0xa9d87e(_0x5e55e4,_0x303e34){return _0x431448(_0x5e55e4,_0x303e34-0x238);}try{const _0xd12a4d=JSON['parse'](_0x265687['slice'](CONTROL_PREFIX[_0xa9d87e(0x576,_0x28dee4._0x2bb163)]));if(typeof _0xd12a4d['event']!==_0x132fb2['OcQBO']||!_0xd12a4d[_0xa9d87e(0x388,0x4b6)]['trim']())return null;return{'event':_0xd12a4d[_0xa9d87e(_0x28dee4._0x363b38,0x4b6)]['trim'](),'count':typeof _0xd12a4d[_0x4e5518(0x3ad,_0x28dee4._0x4b0a17)]===_0xa9d87e(_0x28dee4._0x2f79e8,_0x28dee4._0x13d45c)&&Number[_0xa9d87e(0x33e,_0x28dee4._0x4b7867)](_0xd12a4d[_0xa9d87e(0x1a9,_0x28dee4._0x5cb425)])?_0xd12a4d['count']:void 0x0};}catch{return null;}}function parseConnectStartIdentity(_0x154883){const _0x657389={_0x379001:0x85a,_0x3e6122:0x72c,_0x433126:0x7f7,_0x30e850:0x779,_0x752583:0x91a,_0x7d5bd2:0x82d,_0x321efb:0x742,_0x517509:0x390,_0x136f24:0x8ca,_0x5a14bd:0x804,_0x53986e:0x43e,_0x12efb1:0x427,_0x4a88a7:0x595,_0x27493e:0x4dd,_0x1ee17c:0x4f0,_0xf13156:0x38e,_0x5babce:0x7e9,_0x47ef23:0x6d9,_0x1349c:0x895,_0x24b90c:0x5e4},_0x4f9f76={'RxhXK':_0x44eed3(0x80b,_0x657389._0x379001),'SmHty':_0x44eed3(0x891,_0x657389._0x3e6122),'NVcfU':function(_0x9cedd8,_0x28e28b,_0x53b8d8,_0x46fe98,_0x137ccc){return _0x9cedd8(_0x28e28b,_0x53b8d8,_0x46fe98,_0x137ccc);}};function _0x48fee2(_0x446e90,_0x247224){return _0x431448(_0x247224,_0x446e90-0x3b7);}function _0x44eed3(_0x47df93,_0x52c609){return _0x431448(_0x47df93,_0x52c609-0x3f8);}try{const _0xd87e52=JSON['parse'](_0x154883);if(_0xd87e52[_0x48fee2(0x761,_0x657389._0x433126)]!==_0x48fee2(_0x657389._0x30e850,_0x657389._0x752583))return null;if(_0xd87e52['method']!==_0x4f9f76[_0x44eed3(0x742,0x841)]&&_0xd87e52['method']!==_0x44eed3(_0x657389._0x7d5bd2,0x75d)+'start')return null;const _0x118726=_0xd87e52[_0x44eed3(_0x657389._0x321efb,0x862)]??{},_0xa9a061=typeof _0xd87e52['id']===_0x4f9f76[_0x44eed3(_0x657389._0x517509,0x543)]&&_0xd87e52['id']['trim']()?_0xd87e52['id'][_0x44eed3(_0x657389._0x136f24,0x721)]():'req-'+Math[_0x48fee2(0x45e,0x41b)]()[_0x48fee2(_0x657389._0x5a14bd,0x7bb)](0x24)[_0x48fee2(0x567,_0x657389._0x53986e)](0x2,0xc),_0x3e837e=_0x4f9f76[_0x44eed3(_0x657389._0x12efb1,_0x657389._0x4a88a7)](firstString,_0x118726[_0x44eed3(_0x657389._0x27493e,_0x657389._0x1ee17c)+'me'],_0x118726[_0x44eed3(_0x657389._0xf13156,0x4e7)+'me'],_0x118726['deviceId'],_0x44eed3(_0x657389._0x5babce,0x78f)+_0x48fee2(_0x657389._0x47ef23,_0x657389._0x1349c)),_0x376832={};return _0x376832['id']=_0xa9a061,_0x376832[_0x44eed3(0x418,_0x657389._0x24b90c)]=_0x3e837e,_0x376832;}catch{return null;}}function isConnectHandshakeRequest(_0xe163b7){const _0x6f9ee5={_0x59453b:0x16,_0x79c053:0x478,_0x16e640:0x391,_0x4381d8:0x16,_0x409e61:0x204,_0xcbdfe4:0x597,_0x4bf545:0x4b3,_0xee83a4:0x4e4,_0x2604a7:0xdb,_0x11a65c:0x80,_0x31a6f7:0xfb,_0x215adc:0x97,_0x56e4c9:0x27b},_0x16bdf8={};_0x16bdf8[_0x4d0522(_0x6f9ee5._0x59453b,-0x8b)]='req',_0x16bdf8[_0xa78eb3(_0x6f9ee5._0x79c053,_0x6f9ee5._0x16e640)]=function(_0x4cde97,_0x33d2ba){return _0x4cde97===_0x33d2ba;};function _0xa78eb3(_0x2a9510,_0x498be3){return _0x9ec63e(_0x2a9510-0x18d,_0x498be3);}function _0x4d0522(_0x2acc82,_0xc81d05){return _0x9ec63e(_0x2acc82- -0x210,_0xc81d05);}const _0x255935=_0x16bdf8;try{const _0xf51306=JSON['parse'](_0xe163b7);return _0xf51306['type']===_0x255935[_0x4d0522(_0x6f9ee5._0x4381d8,_0x6f9ee5._0x409e61)]&&(_0xf51306[_0xa78eb3(_0x6f9ee5._0xcbdfe4,_0x6f9ee5._0x4bf545)]===_0xa78eb3(0x595,_0x6f9ee5._0xee83a4)||_0x255935[_0x4d0522(_0x6f9ee5._0x2604a7,-_0x6f9ee5._0x11a65c)](_0xf51306[_0x4d0522(0x1fa,0x27b)],_0x4d0522(_0x6f9ee5._0x31a6f7,_0x6f9ee5._0x215adc)+_0xa78eb3(_0x6f9ee5._0x56e4c9,0x352)));}catch{return![];}}function parsePairingRequestFromError(_0x55c416,_0x220223=Date[_0x431448(0x509,0x3cb)]()){const _0x56b849={_0x1e97ca:0x2fb,_0x59ab0b:0xc8,_0x5d8cbf:0x209,_0x1ae64e:0x7b,_0x274837:0x385,_0x37de2f:0x12,_0x2afa9c:0x301,_0x7f1bd4:0x226,_0x179e85:0x12d,_0x535aa3:0x303,_0x16f992:0xfc,_0xffb3e7:0x2dc,_0x4b0fe5:0x294,_0x1ffd4d:0x1f0,_0x820870:0x164,_0x45afe4:0xe1,_0x474365:0x238,_0x56f36d:0x4da,_0x25c068:0x235,_0x27ae3b:0x2c4,_0x4037fc:0x347,_0x568fcf:0x188,_0xfa9b3e:0x35,_0x46fa21:0x125,_0x165aed:0x12b},_0x262f05={'RUzHg':function(_0x4757b2,_0x18b8c0){return _0x4757b2!==_0x18b8c0;},'CkfOS':_0x344bcc(0x2b7,_0x56b849._0x1e97ca),'fjzwb':_0x285ab5(_0x56b849._0x59ab0b,_0x56b849._0x5d8cbf)+'required','kSTvB':_0x285ab5(0x17c,-_0x56b849._0x1ae64e),'cDxJZ':function(_0x9b5b3,_0xcec88,_0x9f8df9){return _0x9b5b3(_0xcec88,_0x9f8df9);},'GUfMk':function(_0x202fd5,_0x3ffc6c){return _0x202fd5(_0x3ffc6c);},'gyDHa':_0x344bcc(0x223,_0x56b849._0x274837)};function _0x344bcc(_0x9e15a4,_0x14e6e0){return _0x431448(_0x14e6e0,_0x9e15a4- -0x7d);}function _0x285ab5(_0x13bdea,_0x2aaaa5){return _0x431448(_0x2aaaa5,_0x13bdea- -0x251);}try{const _0x319e3b=JSON[_0x344bcc(0x197,-0x3e)](_0x55c416);if(_0x319e3b['type']!==_0x285ab5(_0x56b849._0x37de2f,0x1c8)||_0x262f05['RUzHg'](_0x319e3b['ok'],![])||!_0x319e3b[_0x344bcc(_0x56b849._0x2afa9c,_0x56b849._0x7f1bd4)])return null;const _0x45bb2f=typeof _0x319e3b[_0x285ab5(_0x56b849._0x179e85,0x26)][_0x344bcc(0x297,_0x56b849._0x535aa3)]===_0x262f05['CkfOS']?_0x319e3b[_0x344bcc(0x301,0x25a)]['code']:'',_0x2eb466=typeof _0x319e3b['error'][_0x285ab5(_0x56b849._0x16f992,_0x56b849._0xffb3e7)]===_0x285ab5(0xe3,0x282)?_0x319e3b[_0x344bcc(_0x56b849._0x2afa9c,0x108)][_0x285ab5(_0x56b849._0x16f992,_0x56b849._0x4b0fe5)]:'';if(!_0x45bb2f['includes'](_0x344bcc(0x314,0x3cb)+'ED')&&!_0x45bb2f[_0x285ab5(-0x70,-_0x56b849._0x1ffd4d)](_0x285ab5(0xff,-0x44)+_0x285ab5(0x200,0x28))&&!_0x2eb466[_0x344bcc(_0x56b849._0x820870,0x234)]('NOT_PAIR'+'ED')&&!_0x2eb466[_0x344bcc(_0x56b849._0x820870,0x42)](_0x262f05[_0x285ab5(0x9c,_0x56b849._0x45afe4)]))return null;const _0x4bb872=_0x319e3b['error'][_0x344bcc(_0x56b849._0x474365,0xe2)]??_0x319e3b[_0x344bcc(_0x56b849._0x2afa9c,_0x56b849._0x56f36d)][_0x344bcc(0x241,0xcb)]??{},_0x5c9f01=firstString(_0x4bb872[_0x344bcc(0x48,-0x7b)+'d'],extractRequestIdFromMessage(_0x2eb466),_0x262f05[_0x344bcc(_0x56b849._0x25c068,0x249)]);return{'requestId':_0x5c9f01,'deviceId':_0x262f05['cDxJZ'](firstString,_0x4bb872[_0x344bcc(_0x56b849._0x27ae3b,0x205)],''),'displayName':firstNullableString(_0x4bb872[_0x344bcc(_0x56b849._0x4037fc,0x16c)+_0x344bcc(0x113,0xa)]),'platform':firstNullableString(_0x4bb872[_0x285ab5(0x1de,0x32)]),'deviceFamily':firstNullableString(_0x4bb872[_0x285ab5(-_0x56b849._0x568fcf,-0x2de)+_0x285ab5(-_0x56b849._0xfa9b3e,-0x82)]),'role':_0x262f05[_0x285ab5(-0xb0,-0x1cf)](firstNullableString,_0x4bb872[_0x285ab5(0x238,0x257)]),'remoteIp':firstNullableString(_0x4bb872[_0x285ab5(_0x56b849._0x46fa21,0x116)]),'receivedAtMs':_0x220223,'status':_0x262f05[_0x344bcc(0x24d,_0x56b849._0x165aed)]};}catch{return null;}}function parsePairResolvedEvent(_0x134036){const _0x226be7={_0x31fcea:0x5bf,_0x3fd127:0x3f1,_0x37c7ac:0x571,_0x7963b2:0x6ab,_0x4e9e39:0x569,_0x294348:0x782,_0x1d0c5f:0x4bb,_0x1b65de:0x547,_0x48b05c:0x4b3,_0x388d64:0x650,_0x362b98:0x789,_0x4a4d78:0x8b3,_0x5c384d:0x7b7,_0x3428fb:0x5c0,_0x17ecc8:0x6cb,_0xf22551:0x5a1,_0x12b9b3:0x4ea,_0x149205:0x5c0,_0x8252fe:0x696,_0x2827ae:0x522,_0xac27ca:0x5c1};function _0x2fc87b(_0x231522,_0x16d3ce){return _0x9ec63e(_0x16d3ce-0x40f,_0x231522);}const _0x1ba7b2={};_0x1ba7b2[_0x2970dc(_0x226be7._0x31fcea,_0x226be7._0x3fd127)]=function(_0x310fcc,_0x18e634){return _0x310fcc!==_0x18e634;},_0x1ba7b2[_0x2970dc(0x6cb,0x7db)]=_0x2970dc(0x5fd,_0x226be7._0x37c7ac),_0x1ba7b2[_0x2fc87b(_0x226be7._0x7963b2,_0x226be7._0x4e9e39)]=_0x2fc87b(0x8ce,_0x226be7._0x294348);const _0x4a7d76=_0x1ba7b2;function _0x2970dc(_0x1f8311,_0x3c697e){return _0x9ec63e(_0x1f8311-0x323,_0x3c697e);}try{const _0x34f672=JSON['parse'](_0x134036);if(_0x4a7d76['kiHZK'](_0x34f672['type'],_0x2970dc(0x547,_0x226be7._0x1d0c5f))||_0x34f672[_0x2970dc(_0x226be7._0x1b65de,_0x226be7._0x48b05c)]!=='device.p'+_0x2fc87b(_0x226be7._0x388d64,0x4cb)+_0x2fc87b(_0x226be7._0x362b98,0x7f7)||!_0x34f672['payload'])return null;const _0x66d648=typeof _0x34f672[_0x2fc87b(0x7bb,0x68d)]['requestI'+'d']===_0x4a7d76[_0x2fc87b(_0x226be7._0x4a4d78,_0x226be7._0x5c384d)]?_0x34f672[_0x2fc87b(0x70a,0x68d)][_0x2970dc(0x38e,0x45b)+'d']['trim']():'';if(!_0x66d648)return null;const _0x5f0729=typeof _0x34f672['payload'][_0x2fc87b(0x683,_0x226be7._0x3428fb)]===_0x4a7d76[_0x2970dc(_0x226be7._0x17ecc8,0x667)]?_0x34f672[_0x2970dc(_0x226be7._0xf22551,0x479)][_0x2fc87b(_0x226be7._0x12b9b3,_0x226be7._0x149205)]:_0x2970dc(_0x226be7._0x8252fe,0x86a),_0x3f2a21=_0x5f0729===_0x2fc87b(0x442,0x580)||_0x5f0729===_0x2fc87b(0x683,_0x226be7._0x2827ae)?_0x5f0729:_0x4a7d76['kxiMp'],_0x2435cc={};return _0x2435cc[_0x2fc87b(0x3cd,0x47a)+'d']=_0x66d648,_0x2435cc[_0x2970dc(0x4d4,_0x226be7._0xac27ca)]=_0x3f2a21,_0x2435cc;}catch{return null;}}function firstString(..._0x2d29bf){const _0x4000ff={_0xe6580b:0x4f7,_0x3706ee:0x706,_0x3e7d8f:0x5cf},_0x31712e={_0x5bc69e:0x300};function _0x4153ea(_0x390701,_0x5a36b){return _0x9ec63e(_0x5a36b-_0x31712e._0x5bc69e,_0x390701);}for(const _0x546029 of _0x2d29bf){if(typeof _0x546029===_0x4153ea(_0x4000ff._0xe6580b,0x5da)&&_0x546029['trim']())return _0x546029[_0x4153ea(_0x4000ff._0x3706ee,_0x4000ff._0x3e7d8f)]();}function _0x249d78(_0x4e00ce,_0x4620ec){return _0x9ec63e(_0x4620ec-0x3cb,_0x4e00ce);}return'';}function firstNullableString(_0x1406c6){const _0x206bfd={};function _0x26ed74(_0x4551f1,_0x8178b5){return _0x431448(_0x4551f1,_0x8178b5-0x2c1);}function _0xfffacb(_0x55fbdc,_0x8d7914){return _0x431448(_0x55fbdc,_0x8d7914- -0x1a4);}_0x206bfd['AOtek']='string';const _0x44d509=_0x206bfd;return typeof _0x1406c6===_0x44d509[_0xfffacb(0x12e,0x51)]&&_0x1406c6[_0x26ed74(0x61f,0x5ea)]()?_0x1406c6[_0xfffacb(0x18b,0x185)]():null;}function extractRequestIdFromMessage(_0x30ee44){const _0x284a6c=_0x30ee44['match'](/requestId[:\s]*([a-f0-9-]+)/i);return _0x284a6c?.[0x1]??null;}import{randomUUID as _0x452365}from'crypto';import{setTimeout as _0x169008}from'timers/promises';import _0x1f8130 from'ws';var HEARTBEAT_INTERVAL_MS=0x2710,HEARTBEAT_TIMEOUT_MS=0x88b8,GATEWAY_RETRY_DELAY_MS=0x4b0,GATEWAY_IDLE_DISCONNECT_DELAY_MS=0x1d4c0,RECONNECT_BASE_DELAY_MS=0x3e8,RECONNECT_MAX_DELAY_MS=0x3a98,MAX_PENDING_GATEWAY_MESSAGES=0x100,MAX_DEVICE_DETAILS=0x20,MAX_PENDING_PAIR_REQUESTS=0x10,BridgeRuntime=class{[_0x431448(0x301,0x48b)];['relaySoc'+_0x9ec63e(0x38f,0x34e)]=null;[_0x9ec63e(0x2a6,0x161)+_0x431448(0x49e,0x3c0)]=null;['relayCon'+_0x431448(0x1cd,0x11c)]=![];['gatewayC'+_0x431448(0x18,0x218)+'g']=![];[_0x431448(0x254,0x26d)]=!![];[_0x431448(0x38d,0x3cf)+_0x9ec63e(0x2f7,0x2f7)]=0x0;['lastRela'+_0x9ec63e(0x2f8,0x2cb)+_0x9ec63e(0x320,0x2df)]=0x0;['reconnec'+_0x9ec63e(0x1c4,-0x27)]=null;[_0x431448(0x489,0x29f)+_0x9ec63e(0x381,0x1f7)+'r']=null;['gatewayI'+'dleClose'+_0x431448(0x2c7,0xdc)]=null;[_0x9ec63e(0x283,0x317)+_0x9ec63e(0x1c4,0x13)]=null;['pendingG'+_0x431448(0x28,0x1c3)+_0x9ec63e(0x339,0x1e3)]=[];['gatewayH'+'andshake'+'Started']=![];[_0x431448(0x127,0x17b)+'mandStar'+_0x431448(0x477,0x3ad)]=null;[_0x431448(0x1ca,0x115)+_0x9ec63e(0x220,0x283)+_0x9ec63e(0x131,0x2a7)]=null;[_0x9ec63e(0x394,0x443)];constructor(_0x36db7e){const _0x4e139c={_0x392d98:0xa4,_0x5c432c:0xe0,_0x4b519e:0x2bc,_0x2f2e05:0x16d,_0x12045e:0x2,_0x171d3e:0xd3,_0x2b84df:0x1a},_0x22551b={_0x3f26f7:0x3ac};function _0x3f69b5(_0x18f428,_0x54cab9){return _0x431448(_0x18f428,_0x54cab9- -_0x22551b._0x3f26f7);}this[_0x3f69b5(_0x4e139c._0x392d98,0xdf)]=_0x36db7e;function _0x5da857(_0x4877e3,_0x1aef4f){return _0x431448(_0x4877e3,_0x1aef4f- -0x321);}this[_0x3f69b5(0x8f,0x42)]={'running':![],'relayConnected':![],'gatewayConnected':![],'gatewayId':_0x36db7e[_0x5da857(0x209,0x15e)][_0x5da857(-0xcf,-_0x4e139c._0x5c432c)+'d'],'instanceId':_0x36db7e[_0x3f69b5(0x27b,0xd3)][_0x3f69b5(-_0x4e139c._0x4b519e,-_0x4e139c._0x2f2e05)+'Id'],'relayUrl':_0x36db7e[_0x3f69b5(-_0x4e139c._0x12045e,_0x4e139c._0x171d3e)][_0x5da857(0x5e,_0x4e139c._0x2b84df)],'gatewayUrl':_0x36db7e[_0x5da857(0x1fe,0x13c)+'rl'],'clientCount':0x0,'connectedDevices':[],'pendingPairRequests':[],'lastError':null,'lastUpdatedMs':Date['now']()};}[_0x431448(0x13a,0x148)](){const _0x4e2c65={_0x2882e7:0x542,_0x21fd8d:0x2ce,_0x307090:0x482,_0xa04510:0x25c,_0x5cd33b:0x732,_0x214938:0x159,_0x2f3c12:0x307,_0x57423f:0x473,_0x4413f6:0x807,_0x31e7a8:0x229,_0x54aaa8:0x426,_0x5c1dc3:0x760,_0x58bb83:0x5e1,_0xa19fec:0x445,_0x3ea873:0x55b,_0x575f55:0x3cc},_0x4dc541={_0x1db196:0x18};if(!this['stopped'])return;this[_0x4c7949(0x735,_0x4e2c65._0x2882e7)]=![];function _0x2298f0(_0x4f9c8b,_0x17b74c){return _0x431448(_0x4f9c8b,_0x17b74c- -_0x4dc541._0x1db196);}function _0x4c7949(_0x36c843,_0x3d963b){return _0x431448(_0x36c843,_0x3d963b-0x2d5);}this[_0x2298f0(_0x4e2c65._0x21fd8d,_0x4e2c65._0x307090)+_0x2298f0(0x203,_0x4e2c65._0xa04510)]({'running':!![],'gatewayUrl':this['options'][_0x4c7949(0x6ee,_0x4e2c65._0x5cd33b)+'rl']}),this[_0x2298f0(0x33e,0x22b)](_0x2298f0(_0x4e2c65._0x214938,_0x4e2c65._0x2f3c12)+'starting'+_0x2298f0(0x396,0x414)+'Id='+this[_0x2298f0(0x515,_0x4e2c65._0x57423f)][_0x4c7949(_0x4e2c65._0x4413f6,0x754)][_0x2298f0(0xbf,_0x4e2c65._0x31e7a8)+'d']+(_0x2298f0(_0x4e2c65._0x54aaa8,0x414)+'Url=')+this[_0x4c7949(0x879,_0x4e2c65._0x5c1dc3)][_0x2298f0(_0x4e2c65._0x58bb83,_0x4e2c65._0xa19fec)+'rl']),void this[_0x4c7949(_0x4e2c65._0x3ea873,0x6f3)+_0x4c7949(_0x4e2c65._0x575f55,0x541)]();}async[_0x431448(0x2aa,0x423)](){const _0x4ea380={_0x1e4fe2:0x2ee,_0x4d8a52:0x45a,_0x109ca5:0x75b,_0x4fec33:0x76e,_0x45a350:0x375,_0x4c3526:0x548,_0x395916:0x2bb,_0x1db3a4:0x4a3,_0x2ef9e1:0x3f5,_0x226f47:0x67b,_0x2e75a6:0x6cb,_0x586a5d:0x706,_0xfefaa6:0x339,_0x56e8cb:0x348,_0x2090ae:0x53c,_0xb49f23:0x445,_0x31649b:0x50f,_0x3f4fc5:0x3d5,_0x20d8bb:0x458,_0x118bf0:0x398,_0x3d2075:0x394,_0xca1ad0:0x353,_0x3948c4:0x2f7,_0x259323:0x4c2,_0x547e9c:0x62d,_0x1e3f3b:0x5c1,_0xd591cb:0x6be,_0x4f6530:0x49d,_0x19caba:0x67b,_0x1f0137:0x5fe,_0x5780cb:0x3f6,_0x29d197:0x437,_0xba5a06:0x5f7,_0x2613e7:0x7a6,_0x160f76:0x8df,_0x3daecf:0x291,_0xc69d79:0x5d9,_0x106697:0x5ad,_0x517d10:0x616,_0x52ad44:0x4dc,_0x4002c4:0x41d,_0xd164d:0x67b,_0x41d5e8:0x586,_0x20ce7e:0x6b8,_0x5f53a7:0x55a,_0x89034c:0x5b0},_0x3ae785={_0x4edb47:0x39d};function _0x2d0e7c(_0x2264e7,_0x4901f7){return _0x9ec63e(_0x4901f7-0x1d6,_0x2264e7);}function _0x4f5b6e(_0x4641a7,_0x2a7303){return _0x9ec63e(_0x4641a7-_0x3ae785._0x4edb47,_0x2a7303);}const _0x48bda1=(_0x2d0e7c(_0x4ea380._0x1e4fe2,_0x4ea380._0x4d8a52)+_0x4f5b6e(_0x4ea380._0x109ca5,_0x4ea380._0x4fec33)+'4|1|7|10'+_0x2d0e7c(_0x4ea380._0x45a350,_0x4ea380._0x4c3526)+_0x2d0e7c(_0x4ea380._0x395916,_0x4ea380._0x1db3a4))['split']('|');let _0x473320=0x0;while(!![]){switch(_0x48bda1[_0x473320++]){case'0':this['gatewayS'+_0x2d0e7c(_0x4ea380._0x2ef9e1,0x53c)]?.[_0x4f5b6e(_0x4ea380._0x226f47,_0x4ea380._0x2e75a6)]();continue;case'1':this['gatewayH'+_0x2d0e7c(_0x4ea380._0x586a5d,0x583)+_0x2d0e7c(_0x4ea380._0xfefaa6,0x2c9)]=![];continue;case'2':this['relayCon'+_0x4f5b6e(0x45f,_0x4ea380._0x56e8cb)]=![];continue;case'3':this['gatewayS'+_0x2d0e7c(0x588,_0x4ea380._0x2090ae)]=null;continue;case'4':this[_0x2d0e7c(_0x4ea380._0xb49f23,0x455)+'atewayMe'+_0x2d0e7c(0x677,_0x4ea380._0x31649b)]=[];continue;case'5':this[_0x4f5b6e(0x5b0,_0x4ea380._0x3f4fc5)]=!![];continue;case'6':this[_0x4f5b6e(_0x4ea380._0x20d8bb,_0x4ea380._0x118bf0)+_0x2d0e7c(0x25d,_0x4ea380._0x3d2075)+'g']=![];continue;case'7':this[_0x2d0e7c(_0x4ea380._0xca1ad0,_0x4ea380._0x3948c4)+_0x2d0e7c(_0x4ea380._0x259323,0x388)+'tedAtMs']=null;continue;case'8':this[_0x2d0e7c(_0x4ea380._0x547e9c,_0x4ea380._0x1e3f3b)+_0x4f5b6e(_0x4ea380._0xd591cb,0x60f)]();continue;case'9':this[_0x4f5b6e(_0x4ea380._0x4f6530,0x419)+'ket']?.[_0x4f5b6e(_0x4ea380._0x19caba,_0x4ea380._0x1f0137)]();continue;case'10':this[_0x2d0e7c(0x1cd,0x291)+_0x2d0e7c(0x2ed,_0x4ea380._0x5780cb)+'AtMs']=null;continue;case'11':const _0xe34aa8={};_0xe34aa8[_0x4f5b6e(_0x4ea380._0x29d197,_0x4ea380._0xba5a06)]=![],_0xe34aa8[_0x4f5b6e(_0x4ea380._0x2613e7,_0x4ea380._0x160f76)+_0x2d0e7c(0x41d,0x474)]=![],_0xe34aa8[_0x2d0e7c(0x33a,_0x4ea380._0x3daecf)+_0x4f5b6e(0x5bd,0x580)]=![],_0xe34aa8[_0x4f5b6e(_0x4ea380._0xc69d79,0x691)+_0x4f5b6e(0x572,_0x4ea380._0x106697)]=0x0,_0xe34aa8['lastErro'+'r']=null,this[_0x2d0e7c(0x53c,_0x4ea380._0x517d10)+_0x2d0e7c(_0x4ea380._0x52ad44,0x3f0)](_0xe34aa8);continue;case'12':this[_0x4f5b6e(0x49d,_0x4ea380._0x4002c4)+_0x4f5b6e(0x72c,_0x4ea380._0xd164d)]=null;continue;case'13':this[_0x4f5b6e(_0x4ea380._0x41d5e8,_0x4ea380._0x20ce7e)](_0x4f5b6e(0x662,_0x4ea380._0x5f53a7)+_0x2d0e7c(0x49d,0x3e9));continue;case'14':await _0x169008(0x19);continue;case'15':if(this[_0x4f5b6e(_0x4ea380._0x89034c,0x79e)])return;continue;}break;}}async['approveP'+_0x431448(0x3eb,0x308)+'st'](_0x4a0fd5){const _0x120659={_0x2f9c34:0x3af,_0x36faa0:0xb,_0x45b290:0xb5,_0x32a0ff:0x8b,_0x4cf628:0x105,_0x57a447:0x197,_0x5c50a6:0x2e0};function _0x387fc8(_0x5a4c96,_0x160ce7){return _0x9ec63e(_0x160ce7- -0x11f,_0x5a4c96);}const _0x54da4d={};_0x54da4d[_0x48abaf(0x4eb,_0x120659._0x2f9c34)]=_0x387fc8(_0x120659._0x36faa0,0x27)+_0x387fc8(-_0x120659._0x45b290,0xd9)+_0x387fc8(_0x120659._0x32a0ff,-0x3b);function _0x48abaf(_0x294520,_0x11806a){return _0x9ec63e(_0x11806a-0x132,_0x294520);}const _0x531a3b=_0x54da4d,_0x35835a={};_0x35835a[_0x387fc8(-0x80,-0xb4)+'d']=_0x4a0fd5,this[_0x48abaf(_0x120659._0x4cf628,0x16d)+_0x387fc8(0x1e7,_0x120659._0x57a447)+'st'](_0x531a3b[_0x48abaf(0x502,0x3af)],_0x35835a),this['markPair'+_0x387fc8(0x1e4,0x1de)+_0x387fc8(0x381,_0x120659._0x5c50a6)](_0x4a0fd5,_0x387fc8(0x84,0x52));}async[_0x431448(0x3de,0x259)+_0x9ec63e(0x231,0x57)+'t'](_0x408cfc){const _0x12daba={_0x196bb4:0x12c,_0x479147:0x14a,_0x1db1f6:0x1d1,_0x2f0577:0x63,_0x3927d8:0x27a},_0x2187de={_0x4ab2e1:0x12c};function _0x49420f(_0x3447ed,_0x2efca9){return _0x9ec63e(_0x3447ed- -_0x2187de._0x4ab2e1,_0x2efca9);}const _0x385d4e={};function _0x2128b8(_0x3e9b0d,_0x275e9c){return _0x9ec63e(_0x275e9c- -0x185,_0x3e9b0d);}_0x385d4e['requestI'+'d']=_0x408cfc,this[_0x2128b8(-_0x12daba._0x196bb4,-_0x12daba._0x479147)+_0x2128b8(0x334,0x131)+'st'](_0x49420f(0x1a,0x7e)+_0x2128b8(-0x1e,-0x136)+'ct',_0x385d4e),this['markPair'+_0x49420f(_0x12daba._0x1db1f6,_0x12daba._0x2f0577)+_0x2128b8(0x1e7,_0x12daba._0x3927d8)](_0x408cfc,'rejected');}[_0x431448(0x2a8,0x1c9)+'hot'](){const _0x2bdf5a={_0x5b0779:0x55b,_0x5708e7:0x467,_0x44aa7d:0x7d1,_0x8a9eb9:0x55b,_0x107d16:0x5fd,_0x4aa598:0x56d,_0x20f747:0x4fe,_0x5e4b2d:0x4f5,_0x43eb0f:0x534,_0x15bbba:0x779,_0x1e0a0c:0x37b},_0x340ffb={_0x4ab95b:0x3e5},_0x222b06={...this['snapshot']};_0x222b06[_0x4e23eb(_0x2bdf5a._0x5b0779,_0x2bdf5a._0x5708e7)+'dDevices']=[...this[_0x4e23eb(_0x2bdf5a._0x44aa7d,0x788)][_0x4e23eb(_0x2bdf5a._0x8a9eb9,0x535)+_0x528c43(_0x2bdf5a._0x107d16,_0x2bdf5a._0x4aa598)]];function _0x528c43(_0x433f6e,_0x1fd265){return _0x9ec63e(_0x433f6e-_0x340ffb._0x4ab95b,_0x1fd265);}_0x222b06[_0x528c43(_0x2bdf5a._0x20f747,0x6a8)+_0x4e23eb(0x6eb,0x640)+_0x4e23eb(_0x2bdf5a._0x5e4b2d,_0x2bdf5a._0x43eb0f)]=[...this[_0x528c43(_0x2bdf5a._0x15bbba,0x95d)][_0x4e23eb(0x556,_0x2bdf5a._0x1e0a0c)+'airReque'+_0x4e23eb(0x4f5,0x6f9)]];function _0x4e23eb(_0x45e52d,_0x11a835){return _0x9ec63e(_0x45e52d-0x43d,_0x11a835);}return _0x222b06;}async['connectR'+_0x431448(0x3dd,0x26c)](){const _0x2346ab={_0x30f90e:0x7a,_0x4182a9:0x78b,_0xe4c949:0x2d9,_0x36a0f9:0x222,_0x56cf13:0x1c0,_0x234f8e:0x575,_0xbdf9fd:0x5c9,_0x3d281f:0x3d8,_0x5858a8:0x444,_0x3dd47d:0x5c7,_0x5ea2ea:0x5a,_0x41c009:0x7b3,_0x15b829:0x8d7,_0x16d807:0x69f,_0x5a573d:0x526,_0x381733:0x4e8,_0xfd0c01:0x269,_0x1460c7:0x109,_0x472a1c:0x2ef,_0x45feb2:0x208,_0x4c0498:0x3e0,_0x2a0a8b:0xde,_0x18b0fd:0x73f,_0x2ad1e2:0x337,_0x543fd0:0x70b},_0x2ed7db={_0x2d3054:0x1d5,_0x587ce4:0x4f3,_0x469953:0x1a1,_0xe6e9ac:0x169,_0x3fcb15:0x62,_0x433919:0x2c6,_0x53d521:0x255,_0x31c7e4:0x43d,_0xac94dc:0x2c,_0x1e688e:0x1fc,_0x52c9c5:0x1c6,_0x1a0132:0xf,_0x49a615:0x2af,_0x35864d:0x165,_0x804d3e:0xf6,_0x57d7f1:0x157,_0x15cbf4:0x4dd,_0x5dd304:0x27e,_0x4330d1:0xf1,_0x5914be:0x2e,_0x4aef55:0x22f,_0x14084a:0x276,_0x55f7e3:0x1d8,_0x4451ff:0x3aa,_0x160c46:0x47d,_0x3465c4:0x1e6,_0x253a90:0x15,_0x5be53e:0x34f,_0x137544:0x2c2,_0x347998:0x2dc},_0x3e0507={_0x3c733f:0x1d5},_0x1445d9={_0x4f09d0:0x3b2,_0x1cc60b:0x514},_0x27c548={_0x49518c:0x21e},_0x223080={_0xa15e40:0x714,_0x4e114e:0x841,_0x24a4ef:0x2ba},_0x5a2abf={_0x3f8e11:0x5a,_0x39d8a6:0x5e0,_0x24b929:0x5bd,_0x4fa9ec:0x2ca,_0x246e33:0x270,_0x4912dc:0x31b,_0x4a2731:0x819,_0x1bd335:0x412,_0x526a99:0x2ea,_0x231934:0x3b7,_0x3e9ba5:0x2ef},_0x1a0617={_0x547f40:0xeb},_0x176d03={'LHbsX':function(_0x20f050,_0x289740){return _0x20f050(_0x289740);},'hWTch':function(_0x4a333a,_0x38a753){return _0x4a333a(_0x38a753);},'VDkEF':function(_0xd8b817,_0x5aba85){return _0xd8b817*_0x5aba85;},'ZUVIQ':'pong'};if(this[_0xb22b57(0x128,-_0x2346ab._0x30f90e)]||this[_0x48f8c4(_0x2346ab._0x4182a9,0x673)+_0x48f8c4(0x444,_0x2346ab._0xe4c949)]||this[_0xb22b57(_0x2346ab._0x36a0f9,_0x2346ab._0x56cf13)+_0x48f8c4(_0x2346ab._0x234f8e,_0x2346ab._0xbdf9fd)]())return;this[_0xb22b57(0x31e,_0x2346ab._0x3d281f)+_0x48f8c4(_0x2346ab._0x5858a8,_0x2346ab._0x3dd47d)]=!![];function _0x48f8c4(_0x3d8596,_0x4183b9){return _0x9ec63e(_0x3d8596-0x382,_0x4183b9);}this['relayAtt'+_0x48f8c4(0x679,0x855)]+=0x1;const _0x2e2c51=this[_0x48f8c4(0x6f7,0x4f4)+_0xb22b57(0x20c,_0x2346ab._0x5ea2ea)],_0x34cfb2=_0x176d03[_0xb22b57(0x345,0x515)](buildRelayWsUrl,this[_0x48f8c4(_0x2346ab._0x41c009,_0x2346ab._0x15b829)][_0xb22b57(0x33a,0x255)]);this['log'](_0x48f8c4(_0x2346ab._0x16d807,0x899)+_0x48f8c4(0x685,0x88a)+'tempt='+_0x2e2c51+_0x48f8c4(_0x2346ab._0x5a573d,_0x2346ab._0x381733)+_0x176d03['hWTch'](redactRelayWsUrl,_0x34cfb2));function _0xb22b57(_0x239d8e,_0xceb6a9){return _0x9ec63e(_0x239d8e- -_0x1a0617._0x547f40,_0xceb6a9);}const _0xb730ce=new _0x1f8130(_0x34cfb2,{'maxPayload':_0x176d03[_0xb22b57(_0x2346ab._0xfd0c01,0x283)](0x19*0x400,0x400)});this[_0xb22b57(0x15,_0x2346ab._0x1460c7)+'ket']=_0xb730ce,_0xb730ce[_0xb22b57(0x29e,0x42f)](_0xb22b57(0x18e,_0x2346ab._0x472a1c),()=>{if(this[_0x3eba05(0x1e5,_0x5a2abf._0x3f8e11)]||this[_0x499ff6(0x4f1,0x4ba)+'ket']!==_0xb730ce){_0xb730ce[_0x499ff6(0x6cf,_0x5a2abf._0x39d8a6)]();return;}this[_0x3eba05(0x3db,_0x5a2abf._0x24b929)+'necting']=![];function _0x499ff6(_0x9197e,_0x407276){return _0x48f8c4(_0x9197e-0x6f,_0x407276);}this[_0x499ff6(0x5e5,0x7bb)+_0x3eba05(_0x5a2abf._0x4fa9ec,0x4bb)+'yMs']=Date[_0x3eba05(0x343,0x3d2)]();const _0x22a76f={};function _0x3eba05(_0x5ce52b,_0x366353){return _0x48f8c4(_0x5ce52b- -0x3b0,_0x366353);}_0x22a76f['relayCon'+_0x3eba05(_0x5a2abf._0x246e33,_0x5a2abf._0x4912dc)]=!![],_0x22a76f[_0x499ff6(_0x5a2abf._0x4a2731,0x804)+'r']=null,this[_0x3eba05(_0x5a2abf._0x1bd335,_0x5a2abf._0x526a99)+'apshot'](_0x22a76f),this[_0x3eba05(0x1bb,_0x5a2abf._0x231934)](_0x3eba05(_0x5a2abf._0x3e9ba5,0x266)+_0x3eba05(0x213,0x88)+'attempt='+_0x2e2c51),this[_0x3eba05(0x395,0x4d9)+'rtbeat']();}),_0xb730ce['on'](_0xb22b57(_0x2346ab._0x45feb2,_0x2346ab._0x4c0498),(_0x55196e,_0x278bb5)=>{const _0x3a1e6b={_0x2124f8:0x49b};function _0x5af41f(_0x41c66b,_0x2d241e){return _0xb22b57(_0x41c66b-_0x3a1e6b._0x2124f8,_0x2d241e);}void this['handleRe'+_0x5af41f(0x46a,0x56a)+'ge'](_0x55196e,_0x278bb5);}),_0xb730ce['on'](_0x176d03[_0xb22b57(0x13,_0x2346ab._0x2a0a8b)],()=>{function _0x525e8e(_0x5194ea,_0x590d4b){return _0xb22b57(_0x5194ea-0x34,_0x590d4b);}function _0xd68d44(_0x4d4314,_0x52b673){return _0xb22b57(_0x4d4314-0x507,_0x52b673);}this['lastRela'+_0xd68d44(_0x223080._0xa15e40,_0x223080._0x4e114e)+'yMs']=Date[_0x525e8e(_0x223080._0x24a4ef,0x31c)]();}),_0xb730ce[_0x48f8c4(0x70b,_0x2346ab._0x18b0fd)](_0xb22b57(0x239,_0x2346ab._0x2ad1e2),_0x35e628=>{function _0x3c3ab7(_0x29f643,_0x55271a){return _0x48f8c4(_0x29f643- -0x1c1,_0x55271a);}function _0x50fffa(_0xac1229,_0x4bf635){return _0x48f8c4(_0xac1229- -_0x27c548._0x49518c,_0x4bf635);}this[_0x3c3ab7(0x3aa,_0x1445d9._0x4f09d0)](_0x50fffa(_0x1445d9._0x1cc60b,0x432)+'ror:\x20'+_0x176d03[_0x50fffa(0x594,0x409)](String,_0x35e628));}),_0xb730ce[_0x48f8c4(_0x2346ab._0x543fd0,0x765)](_0xb22b57(0x1f3,0x359),(_0x4cb3b1,_0x5869d4)=>{this['relaySoc'+'ket']===_0xb730ce&&(this[_0x94f7f8(_0x2ed7db._0x2d3054,0x1ea)+'ket']=null);function _0x94f7f8(_0x2e3e66,_0x51cee3){return _0xb22b57(_0x51cee3-_0x3e0507._0x3c733f,_0x2e3e66);}this[_0x94f7f8(0x5e4,_0x2ed7db._0x587ce4)+_0x4a098a(0x157,0x180)]=![],this[_0x94f7f8(0x37d,_0x2ed7db._0x469953)+_0x4a098a(_0x2ed7db._0xe6e9ac,-_0x2ed7db._0x3fcb15)]();function _0x4a098a(_0x2457a6,_0x5f48ad){return _0xb22b57(_0x2457a6-0x180,_0x5f48ad);}this[_0x4a098a(0x1b6,_0x2ed7db._0x433919)+_0x4a098a(0x247,0x419)+_0x94f7f8(_0x2ed7db._0x53d521,_0x2ed7db._0x31c7e4)]=null,this[_0x94f7f8(-_0x2ed7db._0xac94dc,0x1a5)+_0x4a098a(0x2b5,_0x2ed7db._0x1e688e)+_0x4a098a(_0x2ed7db._0x52c9c5,-_0x2ed7db._0x1a0132)]=null,this['updateSn'+_0x4a098a(_0x2ed7db._0x49a615,_0x2ed7db._0x35864d)]({'relayConnected':![],'gatewayConnected':![],'clientCount':0x0,'lastError':_0x4cb3b1===0x3e8?null:_0x4a098a(0x2c0,_0x2ed7db._0x804d3e)+_0x94f7f8(0x241,_0x2ed7db._0x57d7f1)+(_0x5869d4[_0x94f7f8(0x6db,_0x2ed7db._0x15cbf4)]()||_0x4cb3b1)}),this[_0x4a098a(_0x2ed7db._0x5dd304,_0x2ed7db._0x4330d1)](_0x94f7f8(_0x2ed7db._0x5914be,_0x2ed7db._0x4aef55)+_0x94f7f8(_0x2ed7db._0x14084a,0x3c0)+_0x94f7f8(_0x2ed7db._0x55f7e3,_0x2ed7db._0x4451ff)+_0x4cb3b1+_0x4a098a(0x1bc,0x1a0)+(_0x5869d4[_0x4a098a(0x488,_0x2ed7db._0x160c46)]()||'<none>')),this['closeGat'+_0x4a098a(_0x2ed7db._0x3465c4,_0x2ed7db._0x253a90)](),this[_0x4a098a(0x3a6,0x1c9)+_0x94f7f8(_0x2ed7db._0x5be53e,_0x2ed7db._0x137544)+_0x94f7f8(_0x2ed7db._0x347998,0x30c)]();});}async['handleRe'+_0x9ec63e(0xba,0x2a9)+'ge'](_0x9c700f,_0xca1f93){const _0x1b911b={_0x338392:0x68e,_0x50f5bd:0x735,_0x50aff5:0x4d5,_0x291640:0x69c,_0x46657c:0x86f,_0xcb0312:0x7ed,_0x1b9d57:0x237,_0x4ce598:0x489,_0x5a04ab:0x607,_0x1b93c5:0x6b0,_0x379e9a:0x5c8,_0x59d6cb:0x3fe,_0x51e0ed:0x342,_0x24e6e2:0x853,_0x5c3214:0x67c,_0x2c385e:0x536,_0x4eccfc:0x556,_0x2815ea:0x568,_0x2f28af:0x2ca,_0x3165bf:0x656,_0x1f02c5:0x344,_0x13ce5e:0x3ab},_0x59315a={};_0x59315a['MphUn']=_0x1263b5(0x502,0x390),_0x59315a[_0x1263b5(_0x1b911b._0x338392,_0x1b911b._0x50f5bd)]=function(_0x335023,_0x2542cc){return _0x335023==_0x2542cc;};const _0x27e079=_0x59315a;this[_0x1c6aa2(0x6a4,_0x1b911b._0x50aff5)+_0x1263b5(_0x1b911b._0x291640,_0x1b911b._0x46657c)+'yMs']=Date[_0x1263b5(0x715,_0x1b911b._0xcb0312)]();if(_0xca1f93){this['forwardO'+_0x1263b5(0x609,0x7c1)+_0x1263b5(0x407,_0x1b911b._0x1b9d57)+_0x1263b5(0x46e,_0x1b911b._0x4ce598)]({'kind':_0x27e079['MphUn'],'data':normalizeBinary(_0x9c700f)});return;}function _0x1c6aa2(_0x32c109,_0x5dbe3){return _0x9ec63e(_0x5dbe3-0x2e1,_0x32c109);}const _0x22492a=normalizeText(_0x9c700f);if(_0x27e079[_0x1263b5(_0x1b911b._0x338392,_0x1b911b._0x5a04ab)](_0x22492a,null))return;const _0xccbc6b=parseControl(_0x22492a);if(_0xccbc6b){this[_0x1c6aa2(0x888,_0x1b911b._0x1b93c5)+'layContr'+'ol'](_0xccbc6b[_0x1263b5(_0x1b911b._0x379e9a,_0x1b911b._0x59d6cb)],_0xccbc6b[_0x1c6aa2(_0x1b911b._0x51e0ed,0x338)]);return;}const _0x166ba9=parseConnectStartIdentity(_0x22492a);_0x166ba9&&this[_0x1c6aa2(_0x1b911b._0x24e6e2,_0x1b911b._0x5c3214)+_0x1c6aa2(0x27a,0x44d)+_0x1c6aa2(0x755,0x596)](_0x166ba9['id'],_0x166ba9[_0x1263b5(_0x1b911b._0x2c385e,0x425)]);function _0x1263b5(_0x1f2ad5,_0x5a9e0e){return _0x9ec63e(_0x1f2ad5-0x3a4,_0x5a9e0e);}const _0x44e5ff={};_0x44e5ff[_0x1c6aa2(0x425,_0x1b911b._0x4eccfc)]=_0x1263b5(0x4c4,0x3d2),_0x44e5ff[_0x1c6aa2(_0x1b911b._0x2815ea,0x401)]=_0x22492a,this[_0x1263b5(0x46f,_0x1b911b._0x2f28af)+_0x1c6aa2(_0x1b911b._0x3165bf,0x546)+_0x1c6aa2(0x2fb,_0x1b911b._0x1f02c5)+_0x1c6aa2(0x286,_0x1b911b._0x13ce5e)](_0x44e5ff);}[_0x9ec63e(0x3cf,0x378)+_0x9ec63e(0x16e,0x22e)+'ol'](_0x268da5,_0x46a2c0){const _0x4260be={_0x37bdae:0x6d,_0x312b8f:0x176,_0x593822:0x100,_0x3112c6:0x287,_0x52a037:0x18a,_0x4e6e76:0x51,_0x564314:0x25d,_0x3df24c:0xe4,_0x2a814a:0x1cf,_0x25c5df:0x1b3,_0x304232:0x275,_0x2fa3ac:0x73,_0x566e40:0x2,_0x196fe7:0x1d0,_0x23b253:0xee,_0x3a2401:0x14c,_0x4e2f44:0x128,_0x57767e:0xd2,_0x3a7db7:0x63,_0x39e3c4:0x186,_0x3b922d:0x2a1,_0x4de2f8:0xba,_0x146b39:0x1f7,_0x2bad7e:0xe8,_0x3aaf76:0x263,_0x25aa29:0x190,_0x234d0f:0x1e6,_0xf863a7:0x1e3,_0x4f6dec:0x97,_0x3339fe:0xa3,_0x3a02a6:0x162,_0x351ed9:0xaf,_0x1dd744:0xd5,_0x34f884:0x81,_0x1c5f4e:0x41,_0x316a16:0xb5,_0x29873d:0x219,_0x2d4ce9:0x1e,_0x5042a1:0x4e,_0x2b1100:0x98,_0x4609fb:0x196,_0x3793f6:0x55,_0x133c40:0x1c9,_0x19dda5:0x1d2,_0x2b00a7:0x1a,_0x1f92ee:0x6d,_0x1a1b10:0x22b,_0x2fb9b2:0x1de,_0x595aeb:0x17a,_0x11ffc4:0x15a,_0x5ad10f:0xa1,_0xc01e3:0x164,_0x5317ee:0x56,_0x14dd89:0x48,_0x3b7b2d:0x78,_0x187e4e:0x17d,_0x12db0d:0x14c,_0x16a1f4:0x4,_0x3d9075:0xb8,_0x2a1ea3:0x1b3,_0x8b5d20:0x73,_0xd704ca:0xa8},_0x13dc81={_0x2f2480:0x2e7};function _0x50f3f6(_0x9ee5f1,_0x40837b){return _0x431448(_0x40837b,_0x9ee5f1- -_0x13dc81._0x2f2480);}const _0x2699f8={'JrrEu':function(_0x56e6bd,_0x215045){return _0x56e6bd(_0x215045);},'fNngA':function(_0x45c725,_0xfad6b4){return _0x45c725===_0xfad6b4;}};if(_0x268da5==='client_c'+_0x50f3f6(-_0x4260be._0x37bdae,-_0x4260be._0x312b8f)||_0x268da5===_0xff210(-_0x4260be._0x593822,-0x194)+_0xff210(_0x4260be._0x3112c6,0xb7)){const _0x1fedb7=this[_0x50f3f6(0x107,0x10b)]['clientCo'+_0xff210(0x47,-0x63)],_0xd3b370=_0x46a2c0??Math[_0xff210(-0x48,-0x1b4)](0x1,this[_0xff210(0xc0,0x15c)]['clientCo'+_0x50f3f6(-0xb8,-0x1c5)]),_0x5389e4=_0x2699f8[_0xff210(0x2ed,0x1ac)](Boolean,this[_0xff210(_0x4260be._0x52a037,-_0x4260be._0x4e6e76)+_0xff210(-0x8c,-0x18d)+_0x50f3f6(-0x20b,-0x3b9)]);_0xd3b370>0x0&&this['clientDe'+_0xff210(-_0x4260be._0x564314,-0x86)+_0x50f3f6(0xc6,0x54)]==null&&(this[_0x50f3f6(-0x16c,-0x2c3)+_0x50f3f6(-0xdb,-0xdf)+'tedAtMs']=Date[_0x50f3f6(_0x4260be._0x3df24c,-0x115)]());const _0x249ec6={};_0x249ec6[_0xff210(-_0x4260be._0x2a814a,0x4)+'unt']=_0xd3b370,this[_0x50f3f6(_0x4260be._0x25c5df,_0x4260be._0x304232)+_0x50f3f6(-_0x4260be._0x2fa3ac,_0x4260be._0x566e40)](_0x249ec6);if(_0x2699f8[_0x50f3f6(-_0x4260be._0x196fe7,-_0x4260be._0x23b253)](_0xd3b370,0x0))this[_0x50f3f6(0x23,_0x4260be._0x3a2401)+_0x50f3f6(_0x4260be._0x4e2f44,_0x4260be._0x57767e)+'t'](),this[_0x50f3f6(0x84,-_0x4260be._0x3a7db7)+_0x50f3f6(-_0x4260be._0x39e3c4,-0x201)+_0xff210(-0xc0,-0x18d)](_0xff210(-0x5b,-0x194)+_0xff210(-_0x4260be._0x3b922d,-0x106)+'o');else{this['cancelGa'+_0xff210(_0x4260be._0x4de2f8,0x1cf)+'eClose'](_0x50f3f6(-_0x4260be._0x146b39,-0x277)+_0x50f3f6(-_0x4260be._0x2bad7e,-_0x4260be._0x3aaf76)+'stored');shouldRecycleGatewayForFreshClient(_0x1fedb7,_0xd3b370,this[_0x50f3f6(_0x4260be._0x25aa29,_0x4260be._0x234d0f)+_0xff210(-0x118,0xb5)](),_0x5389e4)&&(this[_0xff210(-_0x4260be._0xf863a7,-0x4f)](_0xff210(_0x4260be._0x4f6dec,_0x4260be._0x3339fe)+'recycle\x20'+_0xff210(0x90,_0x4260be._0x3a02a6)+_0x50f3f6(-0xd6,-0x4)+'esh\x20clie'+_0xff210(-0x1cc,-_0x4260be._0x351ed9)+'d'),this[_0x50f3f6(-_0x4260be._0x1dd744,-_0x4260be._0x34f884)+'eway']());if(this[_0x50f3f6(_0x4260be._0x25aa29,0x344)+_0xff210(_0x4260be._0x1c5f4e,_0x4260be._0x316a16)]()){const _0x54d886={};_0x54d886[_0xff210(-0x2a2,-0x17d)+_0xff210(-_0x4260be._0x29873d,-0x18)]=!![],_0x54d886[_0x50f3f6(0x19b,0xa0)+'r']=null,this[_0xff210(0x35a,0x208)+_0xff210(-0x1c2,-_0x4260be._0x2d4ce9)](_0x54d886),this['log'](_0x50f3f6(_0x4260be._0x5042a1,0xf9)+'reuse\x20op'+_0xff210(-0x2ae,-0xe4)+_0x50f3f6(-0x225,-_0x4260be._0x2b1100)+_0x50f3f6(_0x4260be._0x4609fb,_0x4260be._0x3793f6)+this[_0xff210(-0x24e,-0x16f)+_0x50f3f6(0x1aa,_0x4260be._0x133c40)](this[_0x50f3f6(-_0x4260be._0x19dda5,-_0x4260be._0x2b00a7)+_0x50f3f6(-_0x4260be._0x1f92ee,-_0x4260be._0x1a1b10)+_0x50f3f6(-0x15c,-_0x4260be._0x2fb9b2)])+(_0x50f3f6(0x155,_0x4260be._0x595aeb)+_0xff210(0x175,0x8b)+'d=')+this[_0xff210(0x6b,-0xee)+'andshake'+'Started']);}this['ensureGa'+'tewayCon'+'nected']();}return;}function _0xff210(_0xca4645,_0x33ac29){return _0x431448(_0xca4645,_0x33ac29- -0x292);}if(_0x268da5===_0xff210(-0x2e7,-0x1a2)+_0xff210(_0x4260be._0x2b1100,-0x41)+_0x50f3f6(-0x1bf,-0x37)){const _0x45ca7f=(_0xff210(-_0x4260be._0x34f884,-_0x4260be._0x11ffc4)+'4')[_0xff210(-0xa6,-0x168)]('|');let _0x1f669d=0x0;while(!![]){switch(_0x45ca7f[_0x1f669d++]){case'0':this[_0xff210(-0x3f,0xd9)+_0xff210(_0x4260be._0x5ad10f,-0x131)+_0x50f3f6(-0x1e2,-0x3d6)]('client_d'+_0x50f3f6(-0x96,-0x8)+_0x50f3f6(-0x1bf,-_0x4260be._0xc01e3));continue;case'1':this[_0x50f3f6(-0x143,0x42)+_0x50f3f6(0x120,0x1e3)+_0xff210(_0x4260be._0x5317ee,-0x145)]=![];continue;case'2':this[_0xff210(_0x4260be._0x14dd89,_0x4260be._0x3b7b2d)+_0xff210(0x106,_0x4260be._0x187e4e)+'t']();continue;case'3':const _0xad0b51={};_0xad0b51[_0xff210(_0x4260be._0x12db0d,_0x4260be._0x16a1f4)+_0x50f3f6(-_0x4260be._0x3d9075,-0x2b5)]=0x0,this[_0x50f3f6(_0x4260be._0x2a1ea3,0x340)+_0x50f3f6(-_0x4260be._0x8b5d20,_0x4260be._0xd704ca)](_0xad0b51);continue;case'4':return;}break;}}}[_0x9ec63e(0xcb,0x20d)+_0x431448(0x1c2,0x2bf)+'tewayMes'+'sage'](_0x51e18a){const _0x440578={_0x287ef4:0x41,_0xb77b41:0x73,_0x3a4879:0x14c,_0x4ef046:0x1ea,_0x5b2cbc:0xa5,_0x325161:0x81,_0x507c2f:0x4f,_0x1c3f85:0x1db,_0x4cc84f:0x19,_0x103535:0x1b2,_0x14a6cb:0xe,_0xe4ab1e:0x4c,_0x528273:0x37c,_0x3c103b:0x2b9,_0x7fb4f:0x101,_0x3a697d:0x239,_0x2512dd:0x1ee,_0x512c1d:0x380,_0x47b1b1:0x2e2,_0x1d58fa:0x250,_0x23981b:0x1b5,_0x52a47e:0x1ee,_0x35bbae:0xee,_0x17188d:0xc7,_0x14a582:0x19d,_0x1078c4:0x27a,_0x4047cc:0x1c6,_0x53f928:0x26a,_0x44d345:0x196,_0x546d29:0x47,_0x4ee9e8:0x1a6,_0x221339:0xa,_0x124e76:0xe3,_0x15d23e:0x49,_0x1f1b86:0xf1},_0x5a0047={_0x33e146:0x39d},_0x2cf66d={};function _0x4a4d97(_0x20790d,_0x54fc04){return _0x431448(_0x54fc04,_0x20790d- -0x292);}_0x2cf66d[_0x2767e9(0x4f,-_0x440578._0x287ef4)]=function(_0x566ee1,_0x66ae3b){return _0x566ee1!==_0x66ae3b;};function _0x2767e9(_0x54c52e,_0x12ada9){return _0x431448(_0x54c52e,_0x12ada9- -_0x5a0047._0x33e146);}const _0x37bed5=_0x2cf66d,_0x3f5141=_0x51e18a[_0x4a4d97(0x3d,_0x440578._0xb77b41)]==='text'&&isConnectHandshakeRequest(_0x51e18a['text']),_0x2945c5=this[_0x2767e9(-0x257,-0x9d)+_0x2767e9(-_0x440578._0x3a4879,0x23)];if(!_0x2945c5||_0x37bed5['yyNNA'](_0x2945c5[_0x2767e9(0x1d,-_0x440578._0x4ef046)+'te'],_0x1f8130[_0x2767e9(0x57,0x87)])){this[_0x2767e9(-0xcb,-0x1ab)+'tewayCon'+_0x2767e9(0x6f,-_0x440578._0x5b2cbc)]();if(shouldDropStaleConnectAfterGatewayReopen(Boolean(_0x2945c5&&_0x2945c5[_0x4a4d97(-0xdf,_0x440578._0x325161)+'te']===_0x1f8130[_0x4a4d97(0x192,0x307)]),_0x3f5141)){this[_0x4a4d97(-_0x440578._0x507c2f,-0x24)]('stale\x20co'+_0x2767e9(-_0x440578._0x1c3f85,-0xe9)+_0x4a4d97(_0x440578._0x4cc84f,0x1b4)+_0x2767e9(_0x440578._0x103535,-_0x440578._0x14a6cb)+'way\x20reop'+_0x4a4d97(-_0x440578._0xe4ab1e,0x189)+_0x2767e9(-0x232,-0x9c)+_0x2767e9(-_0x440578._0x528273,-_0x440578._0x3c103b)+_0x4a4d97(-0x2,-_0x440578._0x7fb4f));return;}this[_0x2767e9(-_0x440578._0x3a697d,-0x187)+_0x4a4d97(-_0x440578._0x2512dd,-_0x440578._0x512c1d)+_0x2767e9(-0x2dd,-0xfb)+'e'](_0x51e18a);return;}if(!this[_0x2767e9(-_0x440578._0x47b1b1,-0x1f9)+'andshake'+_0x2767e9(-0x18c,-_0x440578._0x1d58fa)]){if(!_0x3f5141){this[_0x2767e9(-_0x440578._0x23981b,-0x187)+_0x4a4d97(-_0x440578._0x52a47e,-0xce)+'ayMessag'+'e'](_0x51e18a);return;}this[_0x4a4d97(-_0x440578._0x35bbae,-_0x440578._0x17188d)+'andshake'+'Started']=!![],this[_0x4a4d97(-0x4f,-_0x440578._0x14a582)](_0x4a4d97(0xa3,_0x440578._0x1078c4)+_0x2767e9(-_0x440578._0x4047cc,-_0x440578._0x53f928)+'e\x20starte'+_0x4a4d97(0x1a7,_0x440578._0x44d345)+'='+this[_0x4a4d97(_0x440578._0x546d29,0x131)+'atewayMe'+_0x2767e9(_0x440578._0x4ee9e8,-_0x440578._0x221339)][_0x2767e9(-0x84,-0x119)]);}this[_0x4a4d97(_0x440578._0x124e76,_0x440578._0x15d23e)+_0x2767e9(-0x85,_0x440578._0x1f1b86)](_0x51e18a);}[_0x431448(0x265,0x1f2)+_0x9ec63e(0x3bb,0x534)+_0x9ec63e(0x29e,0x409)](){const _0x1072a6={_0x4dbef1:0x183,_0x41195e:0x80,_0x2b7931:0x74,_0x2361c4:0x1df,_0x3eed94:0x154,_0x24b379:0x168,_0x30a38d:0x19f,_0x32633d:0x393,_0x2be737:0x1c2,_0x154443:0x22b,_0x191b5a:0x2b2,_0x2eb336:0x1c5,_0x20fd41:0x2dd,_0x11b42b:0x235,_0x3abf0e:0x18d,_0x10f061:0x4f7,_0xfd65df:0x26,_0x1ca9e2:0x4bb,_0x30b20c:0x128,_0x574787:0x8,_0x1d575b:0x541,_0x282efc:0xb5,_0x5235d7:0x7c,_0x129971:0x14b,_0x5d769e:0x25f},_0xe66f02={_0x15648b:0x41b,_0x57fd7e:0x4db,_0x161e27:0x320,_0x3e2bee:0x47,_0xa90418:0x1e7,_0x4c7cf8:0x107,_0x38e95d:0x2bf,_0x5a6781:0x35d,_0x51c4d3:0x14e,_0x456938:0x37c,_0x535f8c:0x5b5,_0x14430e:0x58e,_0x3c5d7d:0x70,_0x15bda5:0x45,_0x422c7c:0x1c9,_0x7147b8:0x5e9,_0x40ce8f:0xc7,_0x13bd85:0x183,_0x2d6fdb:0x194,_0x551114:0x93,_0x378f5e:0x2c,_0x6666c6:0x194,_0x47a1cb:0x42d,_0xdae6b6:0x241,_0x375030:0x4bb,_0xdf2726:0x1e1,_0x103729:0x23e,_0x395a00:0xaa,_0x5eeb10:0x61,_0x309e96:0xad,_0x416d32:0x68d,_0x161b88:0xb2,_0x4b958a:0x1a3},_0x14c7bd={_0x1f4dc9:0x3b3},_0x6ba5a9={_0x4aeb9c:0x39b,_0x245646:0x3b7,_0x567c61:0x7a},_0x28ebbc={_0x5d60d8:0x213,_0x27b4de:0x65},_0x25e481={_0x5b89ea:0x569,_0x5e4695:0x549,_0xfa1283:0x33c,_0x11e866:0x1a8,_0x2d3cb9:0x36e,_0x5e5074:0x703,_0x59c6fb:0x1b9,_0xf504a0:0x70,_0x590847:0x6c7,_0x5cb15b:0x52d,_0x2a30f4:0x46b,_0x4e175c:0x576,_0x37c3fc:0x49e,_0x405b47:0x570,_0x273545:0x59d,_0x525078:0x53f,_0x2d0fda:0x5c9,_0xea4b90:0x631,_0x22c9a6:0x66a,_0x23b5e6:0x481,_0x4f7fea:0x569,_0x27dd29:0x41f,_0x3307a2:0x271,_0x59c076:0x495,_0x106a7a:0x63c,_0x6c8e64:0x210,_0x5e66d0:0x771,_0x1be6de:0x8bb,_0x1762bc:0x441,_0x149d1d:0x217},_0x1b64a6={_0x167e18:0x262},_0x238950={_0x4e2f58:0x9a};if(this[_0x491aa3(-0x2b,0xcb)]||!this[_0x491aa3(0xcf,0x204)+'pen']()||this[_0x491aa3(-_0x1072a6._0x4dbef1,0x38)+_0x491aa3(-_0x1072a6._0x41195e,-_0x1072a6._0x2b7931)+'g']||this[_0x491aa3(_0x1072a6._0x2361c4,0x28a)+_0x491aa3(0xaf,_0x1072a6._0x3eed94)]()||!this[_0x491aa3(-0x158,-_0x1072a6._0x24b379)+_0x491aa3(-0x68,-0x1b6)]())return;function _0x3365a4(_0xa0b998,_0x2bd5a6){return _0x431448(_0x2bd5a6,_0xa0b998-_0x238950._0x4e2f58);}this[_0x3365a4(0x334,0x455)+_0x491aa3(0x1c9,0x1f1)+_0x3365a4(0x3f9,0x488)](_0x491aa3(_0x1072a6._0x30a38d,0x125)+'reconnec'+_0x3365a4(_0x1072a6._0x32633d,0x2ba)+_0x3365a4(_0x1072a6._0x2be737,_0x1072a6._0x154443)),this['gatewayC'+_0x3365a4(_0x1072a6._0x191b5a,_0x1072a6._0x2eb336)+'g']=!![],this[_0x3365a4(_0x1072a6._0x20fd41,_0x1072a6._0x11b42b)](_0x491aa3(0x9d,-0x131)+_0x3365a4(0x152,_0x1072a6._0x3abf0e)+_0x491aa3(-0xe9,-0x141)+'l='+this[_0x3365a4(0x525,0x498)][_0x3365a4(_0x1072a6._0x10f061,0x5a6)+'rl']);const _0x594d1e={};_0x594d1e[_0x491aa3(0x100,_0x1072a6._0xfd65df)+'ad']=0x19*0x400*0x400;function _0x491aa3(_0x2f2fd1,_0x4cf59c){return _0x431448(_0x4cf59c,_0x2f2fd1- -0x298);}const _0x47f4bd=new _0x1f8130(this['options']['gatewayU'+'rl'],_0x594d1e);this[_0x3365a4(0x39a,_0x1072a6._0x1ca9e2)+_0x491aa3(_0x1072a6._0x30b20c,-_0x1072a6._0x574787)]=_0x47f4bd,_0x47f4bd[_0x3365a4(0x47d,_0x1072a6._0x1d575b)]('open',()=>{if(this[_0x587cbe(_0x25e481._0x5b89ea,_0x25e481._0x5e4695)]||this['gatewayS'+'ocket']!==_0x47f4bd){_0x47f4bd[_0x192a13(_0x25e481._0xfa1283,0x37a)]();return;}this['gatewayC'+'onnectin'+'g']=![],this[_0x192a13(_0x25e481._0x11e866,_0x25e481._0x2d3cb9)+_0x587cbe(_0x25e481._0x5e5074,0x694)+_0x192a13(0x151,_0x25e481._0x59c6fb)]=![];function _0x587cbe(_0x3d76fa,_0xff14eb){return _0x3365a4(_0x3d76fa-_0x1b64a6._0x167e18,_0xff14eb);}this[_0x587cbe(0x411,0x482)+'onnected'+_0x192a13(0x18f,-_0x25e481._0xf504a0)]=Date[_0x587cbe(_0x25e481._0x590847,_0x25e481._0x5cb15b)]();const _0x252071={};_0x252071[_0x587cbe(0x411,_0x25e481._0x2a30f4)+_0x587cbe(_0x25e481._0x4e175c,0x5d1)]=!![];function _0x192a13(_0x134268,_0x14afba){return _0x3365a4(_0x134268- -0x96,_0x14afba);}_0x252071['lastErro'+'r']=null,this[_0x192a13(_0x25e481._0x37c3fc,0x56d)+_0x587cbe(_0x25e481._0x405b47,_0x25e481._0x273545)](_0x252071),this[_0x587cbe(_0x25e481._0x525078,_0x25e481._0x2d0fda)](_0x587cbe(_0x25e481._0xea4b90,0x5bb)+_0x192a13(0x17c,0x211)+_0x587cbe(_0x25e481._0x22c9a6,0x583)+_0x192a13(0x182,0x1e1)+_0x587cbe(_0x25e481._0x23b5e6,_0x25e481._0x4f7fea)+this[_0x587cbe(_0x25e481._0x27dd29,_0x25e481._0x3307a2)+_0x192a13(_0x25e481._0x59c076,_0x25e481._0x106a7a)](this['clientDe'+_0x192a13(_0x25e481._0x6c8e64,0x3ee)+_0x587cbe(0x6a9,0x6f2)])),this[_0x587cbe(_0x25e481._0x5e66d0,_0x25e481._0x1be6de)+_0x587cbe(_0x25e481._0x1762bc,0x484)+_0x192a13(0x1b0,_0x25e481._0x149d1d)+'ges']();}),_0x47f4bd['on'](_0x491aa3(_0x1072a6._0x282efc,_0x1072a6._0x5235d7),(_0x551052,_0x57b634)=>{const _0xbf9c83={_0x48629b:0xb};function _0x5a865b(_0x1eae45,_0x35a8e3){return _0x3365a4(_0x35a8e3-_0xbf9c83._0x48629b,_0x1eae45);}function _0x130459(_0x43f86b,_0x5efef2){return _0x3365a4(_0x5efef2- -0x36a,_0x43f86b);}this['handleGa'+_0x130459(-0x3f,-_0x28ebbc._0x5d60d8)+_0x5a865b(_0x28ebbc._0x27b4de,0x1c9)](_0x551052,_0x57b634);}),_0x47f4bd['once']('error',_0x77553a=>{const _0x28fefc={_0x1242c2:0x139},_0x2c084e={_0x1cf0b4:0x18};function _0x15b596(_0x4f43ff,_0x3d414c){return _0x3365a4(_0x3d414c- -_0x2c084e._0x1cf0b4,_0x4f43ff);}function _0x3197ef(_0x10cdc9,_0x4c6b74){return _0x3365a4(_0x10cdc9- -_0x28fefc._0x1242c2,_0x4c6b74);}this[_0x3197ef(0x1a4,_0x6ba5a9._0x4aeb9c)](_0x15b596(0x397,_0x6ba5a9._0x245646)+_0x3197ef(_0x6ba5a9._0x567c61,0x162)+String(_0x77553a));}),_0x47f4bd[_0x491aa3(_0x1072a6._0x129971,_0x1072a6._0x5d769e)](_0x491aa3(0xa0,0x28d),(_0x3b49bd,_0x15adf6)=>{this[_0x2bd2ee(_0xe66f02._0x15648b,0x4b4)+_0x2bd2ee(_0xe66f02._0x57fd7e,_0xe66f02._0x161e27)]===_0x47f4bd&&(this[_0x47987a(0x110,_0xe66f02._0x3e2bee)+_0x47987a(_0xe66f02._0xa90418,_0xe66f02._0x4c7cf8)]=null);function _0x47987a(_0xb9dba4,_0x3e3e51){return _0x491aa3(_0x3e3e51- -0x21,_0xb9dba4);}this['gatewayC'+_0x47987a(0xc3,-0xa1)+'g']=![],this[_0x2bd2ee(_0xe66f02._0x38e95d,_0xe66f02._0x5a6781)+_0x47987a(0x206,_0xe66f02._0x51c4d3)+_0x2bd2ee(0x268,_0xe66f02._0x456938)]=![],this['gatewayC'+'onnected'+'AtMs']=null,this[_0x2bd2ee(_0xe66f02._0x535f8c,_0xe66f02._0x14430e)+_0x47987a(_0xe66f02._0x3c5d7d,-_0xe66f02._0x15bda5)]({'gatewayConnected':![],'lastError':_0x3b49bd===0x3e8?this['snapshot'][_0x47987a(0x30,_0xe66f02._0x422c7c)+'r']:_0x2bd2ee(0x450,_0xe66f02._0x7147b8)+_0x47987a(_0xe66f02._0x40ce8f,0x9b)+(_0x15adf6[_0x47987a(_0xe66f02._0x13bd85,_0xe66f02._0x2d6fdb)]()||_0x3b49bd)}),this[_0x47987a(-0x1f1,-0x76)]('gateway\x20'+'disconne'+_0x47987a(0x1e,_0xe66f02._0x551114)+'e='+_0x3b49bd+_0x2bd2ee(0x29c,0xb0)+(_0x15adf6[_0x47987a(_0xe66f02._0x378f5e,_0xe66f02._0x6666c6)]()||_0x47987a(-0xe8,-0xc9))+(_0x2bd2ee(_0xe66f02._0x47a1cb,_0xe66f02._0xdae6b6)+_0x2bd2ee(_0xe66f02._0x375030,0x619)+_0x47987a(-0x3b7,-_0xe66f02._0xdf2726))+this[_0x2bd2ee(_0xe66f02._0x103729,_0xe66f02._0x395a00)+'ince'](this['clientDe'+_0x47987a(_0xe66f02._0x5eeb10,-_0xe66f02._0x309e96)+_0x2bd2ee(0x4c8,_0xe66f02._0x416d32)]));function _0x2bd2ee(_0x9754d9,_0xd781ab){return _0x491aa3(_0x9754d9-_0x14c7bd._0x1f4dc9,_0xd781ab);}this[_0x47987a(0x290,_0xe66f02._0x161b88)+_0x47987a(-0x157,-0xa4)+_0x47987a(0x176,_0xe66f02._0x4b958a)]();});}['handleGa'+_0x431448(0xe4,0xbd)+_0x9ec63e(0xca,0xbd)](_0x617f2,_0xb72e92){const _0x3ecf87={_0x1919c7:0x10a,_0x33792f:0x237,_0xb6b90:0x6ac,_0x28571e:0x631,_0x475c9b:0x3e2,_0x2caf96:0x2b4,_0x98b067:0x53,_0x541c94:0x684,_0x309161:0x4f9,_0x46faa0:0x68f,_0x49f2ed:0x307,_0x524c31:0x409,_0x1ac570:0x429,_0x3f2d60:0x388,_0x41608f:0x304,_0x273998:0x24e,_0x95e12b:0x125},_0xcb8d3b={_0x3bb8fa:0x2c3};function _0x1d8873(_0x449915,_0x1079ce){return _0x431448(_0x1079ce,_0x449915- -0x50);}const _0x5a0772={'HXnWe':function(_0x3fdd01,_0x28bfca){return _0x3fdd01!==_0x28bfca;},'PVtma':function(_0x2c65eb,_0xd003f8){return _0x2c65eb(_0xd003f8);}},_0x1b8929=this[_0x1d8873(_0x3ecf87._0x1919c7,_0x3ecf87._0x33792f)+_0x2947f0(_0x3ecf87._0xb6b90,_0x3ecf87._0x28571e)];if(!_0x1b8929||_0x5a0772[_0x1d8873(0x3f0,_0x3ecf87._0x475c9b)](_0x1b8929[_0x1d8873(0x163,0x4d)+'te'],_0x1f8130[_0x1d8873(0x3d4,_0x3ecf87._0x2caf96)]))return;if(_0xb72e92){_0x1b8929['send'](_0x5a0772[_0x2947f0(0x366,0x18c)](normalizeBinary,_0x617f2));return;}const _0x3a08b4=_0x5a0772[_0x1d8873(_0x3ecf87._0x98b067,-0xe2)](normalizeText,_0x617f2);if(_0x3a08b4==null)return;const _0x300ca8=parsePairingRequestFromError(_0x3a08b4);_0x300ca8&&this['addPendi'+'ngPairRe'+_0x2947f0(_0x3ecf87._0x541c94,0x59d)](_0x300ca8);function _0x2947f0(_0x1fee49,_0x4b0e1a){return _0x431448(_0x4b0e1a,_0x1fee49-_0xcb8d3b._0x3bb8fa);}const _0x62d829=parsePairResolvedEvent(_0x3a08b4);_0x62d829&&this[_0x2947f0(_0x3ecf87._0x309161,_0x3ecf87._0x46faa0)+_0x1d8873(_0x3ecf87._0x49f2ed,0x22c)+_0x1d8873(_0x3ecf87._0x524c31,_0x3ecf87._0x1ac570)](_0x62d829[_0x2947f0(_0x3ecf87._0x3f2d60,_0x3ecf87._0x41608f)+'d'],_0x62d829['decision']),_0x1b8929[_0x1d8873(_0x3ecf87._0x273998,_0x3ecf87._0x95e12b)](_0x3a08b4);}['flushPen'+'dingGate'+_0x9ec63e(0x152,0xcc)+_0x9ec63e(0x19c,0xe0)](){const _0xf3fce3={_0x3c47c8:0x175,_0x2f8d08:0x208,_0x17f8f9:0xb5,_0x566153:0x93,_0x220e46:0x12b,_0x1881bc:0x57,_0xbf1dd2:0x55,_0x15f1ad:0xda,_0x1ae948:0xd4,_0x3ab5a3:0x193,_0x1d80b9:0x19b,_0x24b3e5:0x11b,_0x4876ad:0x90},_0x22ce34={_0x40db52:0x131},_0x4a79fb={};_0x4a79fb['yCBcT']=_0x5c6dc6(0x19a,-0x11);function _0x5c6dc6(_0x2f247a,_0x575afa){return _0x9ec63e(_0x575afa- -_0x22ce34._0x40db52,_0x2f247a);}const _0x7de3c6=_0x4a79fb,_0x241977=this[_0x5c6dc6(-0x28,_0xf3fce3._0x3c47c8)+_0x5c6dc6(0x3a1,0x235)];if(!_0x241977||_0x241977[_0x500389(-0xc5,0x3f)+'te']!==_0x1f8130['OPEN'])return;const _0x2cfb28=[],_0x34d693=[...this['pendingG'+_0x5c6dc6(0xc0,0x38)+_0x5c6dc6(0x14e,_0xf3fce3._0x2f8d08)]];this[_0x5c6dc6(0x52,0x14e)+_0x500389(-_0xf3fce3._0x17f8f9,0x137)+_0x500389(0x11b,-_0xf3fce3._0x566153)]=[];for(const _0x576c1b of _0x34d693){if(!this[_0x5c6dc6(-0x165,0x19)+'andshake'+_0x500389(-_0xf3fce3._0x220e46,-0xb4)]){if(_0x576c1b[_0x500389(_0xf3fce3._0x1881bc,_0xf3fce3._0xbf1dd2)]!==_0x7de3c6[_0x500389(-0x168,0x29)]||!isConnectHandshakeRequest(_0x576c1b[_0x500389(-0xfe,_0xf3fce3._0x15f1ad)])){_0x2cfb28[_0x500389(-0xa3,-0x18c)](_0x576c1b);continue;}this[_0x500389(-_0xf3fce3._0x1ae948,0x70)+_0x5c6dc6(0xec,0x27c)+'Started']=!![];}this[_0x5c6dc6(_0xf3fce3._0x3ab5a3,0x1ea)+_0x500389(0x216,_0xf3fce3._0x1d80b9)](_0x576c1b);}function _0x500389(_0xd4e299,_0x293147){return _0x9ec63e(_0xd4e299- -0x21e,_0x293147);}this[_0x500389(0x61,0x192)+_0x500389(-0xb5,_0xf3fce3._0x17f8f9)+_0x500389(_0xf3fce3._0x24b3e5,-_0xf3fce3._0x4876ad)]=_0x2cfb28;}[_0x9ec63e(0x31b,0x1b5)+'teway'](_0x1c356c){const _0x3bd491={_0x4e9962:0x28f,_0x48e262:0x3c1,_0x13e616:0x17f,_0xd21f93:0x3d,_0x33477c:0x1a5,_0x3c5bed:0x172,_0x1bdc24:0xb4,_0x2d6d51:0x27f,_0x1e7522:0x227,_0x288cc5:0x41b,_0x1f7023:0x209,_0x3cc96c:0xaf,_0x188619:0x171,_0x55bc2d:0x14a,_0x21a803:0x245,_0xb81d49:0xe2,_0x280971:0xc5},_0x181c9d={_0x2e4b9e:0x17},_0x1430d8={_0x4c3142:0x329},_0xadc742={'NsEco':_0x4a33df(0x109,0x1b),'kTrbp':function(_0x4ecfa5,_0x1395b1,_0x277043){return _0x4ecfa5(_0x1395b1,_0x277043);}};function _0x5d5e69(_0x237f89,_0x57a55c){return _0x9ec63e(_0x57a55c- -_0x1430d8._0x4c3142,_0x237f89);}const _0x4058f2=this[_0x4a33df(_0x3bd491._0x4e9962,_0x3bd491._0x48e262)+_0x5d5e69(_0x3bd491._0x13e616,_0x3bd491._0xd21f93)];if(!_0x4058f2||_0x4058f2[_0x4a33df(0x142,0x17c)+'te']!==_0x1f8130[_0x4a33df(0x3b3,0x40a)]){this[_0x4a33df(_0x3bd491._0x33477c,0x15c)+_0x4a33df(0x33,0x14)+_0x5d5e69(-0x16d,-0xe1)+'e'](_0x1c356c);return;}function _0x4a33df(_0x23cd7e,_0x2fa444){return _0x9ec63e(_0x23cd7e- -_0x181c9d._0x2e4b9e,_0x2fa444);}if(_0x1c356c[_0x5d5e69(-_0x3bd491._0x3c5bed,-_0x3bd491._0x1bdc24)]===_0xadc742[_0x4a33df(_0x3bd491._0x2d6d51,0x1fc)]){const _0x50a275=_0xadc742[_0x4a33df(_0x3bd491._0x1e7522,_0x3bd491._0x288cc5)](patchConnectRequestGatewayAuth,_0x1c356c[_0x5d5e69(-0x185,-_0x3bd491._0x1f7023)],readOpenClawInfo());_0x50a275['injected']&&this[_0x5d5e69(0x8f,-0x140)]('gateway\x20'+_0x4a33df(0x47,-0x61)+_0x5d5e69(-_0x3bd491._0x3cc96c,-0x264)+_0x5d5e69(-_0x3bd491._0x188619,-_0x3bd491._0x55bc2d)+'e=passwo'+'rd');_0x4058f2[_0x5d5e69(-0x6b,-0xe5)](_0x50a275[_0x4a33df(0x109,_0x3bd491._0x21a803)]);return;}_0x4058f2['send'](_0x1c356c[_0x5d5e69(-_0x3bd491._0xb81d49,-_0x3bd491._0x280971)]);}[_0x9ec63e(0x3b,0x23c)+_0x9ec63e(0x2b6,0x118)+'st'](_0x32675d,_0x173242){const _0x4e5a86={_0x568d13:0x672,_0x297696:0x5dd},_0x3bab0f={_0x3f106d:0x2d1},_0x1049b1={_0x150a19:0x153};function _0x535348(_0x1e7965,_0x2d286e){return _0x9ec63e(_0x1e7965-_0x1049b1._0x150a19,_0x2d286e);}function _0x41ae1c(_0x4ff8ce,_0x391f6f){return _0x9ec63e(_0x391f6f-_0x3bab0f._0x3f106d,_0x4ff8ce);}const _0x5c866c={'meIkM':function(_0x4b9689){return _0x4b9689();}},_0xf2ebe6=JSON[_0x41ae1c(_0x4e5a86._0x568d13,0x696)+'y']({'type':_0x535348(0x4bb,0x5d7),'id':_0x41ae1c(_0x4e5a86._0x297696,0x5e4)+_0x5c866c[_0x41ae1c(0x546,0x612)](_0x452365),'method':_0x32675d,'params':_0x173242}),_0x45df53={};_0x45df53['kind']=_0x535348(0x273,0xef),_0x45df53[_0x535348(0x273,0x342)]=_0xf2ebe6,this['forwardO'+_0x41ae1c(0x696,0x536)+'tewayMes'+_0x535348(0x21d,0x28)](_0x45df53);}[_0x431448(0x28,0x212)+'eway'](){const _0x222ab1={_0x306d22:0x7d8,_0x267715:0x7df,_0x1e9ac0:0x6d6,_0x12a989:0x1f8,_0x273a1c:0x3b7,_0x223eb7:0x477,_0x5213e7:0x577,_0x341a7b:0x4c1,_0x2adf7b:0x48c,_0x101cc7:0x242};this['cancelGa'+_0x241f1f(0x601,_0x222ab1._0x306d22)+_0x241f1f(_0x222ab1._0x267715,_0x222ab1._0x1e9ac0)](),this[_0x593f88(_0x222ab1._0x12a989,_0x222ab1._0x273a1c)+_0x593f88(0x445,_0x222ab1._0x223eb7)]?.[_0x593f88(_0x222ab1._0x5213e7,0x3ef)]();function _0x593f88(_0x4c5cea,_0x2a572c){return _0x431448(_0x4c5cea,_0x2a572c-0xb7);}function _0x241f1f(_0x410e66,_0x42054d){return _0x431448(_0x410e66,_0x42054d-0x377);}this['gatewayS'+'ocket']=null,this[_0x593f88(0x191,0x1cc)+'onnectin'+'g']=![],this['gatewayH'+_0x241f1f(0x826,0x77e)+_0x593f88(0x392,0x204)]=![],this[_0x241f1f(_0x222ab1._0x341a7b,_0x222ab1._0x2adf7b)+_0x593f88(0x39f,0x331)+_0x593f88(0x1bb,_0x222ab1._0x101cc7)]=null;}[_0x431448(0x48e,0x36b)+_0x431448(-0x50,0x161)+_0x9ec63e(0xab,0x1cf)](_0x319e88){const _0xca1434={_0x52c56b:0x36c,_0x38b140:0x63a,_0x31bbba:0x4ee,_0x33d96e:0x535,_0x4d3a88:0x58c,_0x1e4032:0x295,_0x572ab0:0x450,_0x45dca8:0x17f,_0x3eeaf9:0x138,_0x1d38b4:0x1eb,_0x46432f:0x230,_0x491904:0x103,_0x308338:0x1d4,_0x151a7a:0x655,_0x566e7b:0x1cd,_0x23eefc:0x3cf,_0x51b95c:0x3e5,_0x39dea3:0x396,_0x2adbac:0x116,_0x2af504:0x369,_0x552d94:0x45c,_0x35fc32:0x39c,_0xb7423d:0x320,_0xcc8722:0x13,_0x4d7856:0x1ff,_0x1e259f:0x550,_0x4e205b:0x825,_0x4b1eb7:0x11d,_0x12f9f3:0x18e,_0x2badce:0x329,_0x5d604e:0x274,_0x7483aa:0x402,_0x241d4e:0x447,_0x50a3e5:0x2f5,_0x384006:0x26f,_0x594596:0x45e,_0x4f9ffb:0x38e,_0x44926b:0xda,_0x237646:0x224,_0x86189e:0x197,_0x1318f8:0x263,_0x1a936c:0x221,_0x3fa55f:0x826,_0x4028dc:0x147},_0x59c768={_0x3fe99d:0x25d,_0x41f6cf:0x1cb,_0x41b2ca:0x396,_0x3500ba:0x3ed,_0x49afb3:0xdc,_0x555f96:0x1dd,_0x13ce87:0x187,_0x3a3c06:0x73,_0x38f442:0x38e,_0x3513d0:0x103,_0x22753a:0x19c,_0x10bad7:0x246,_0x3ecdf9:0x135,_0x5b4804:0x9f,_0x25b8d9:0x1b9,_0x3f704d:0x4a7,_0x3e0e1f:0x3da,_0x1b9ec4:0x196,_0x27e855:0x49b,_0x2625c9:0xe2,_0x4a23c2:0xcd},_0x4ac7ae={_0x2794fc:0x21b},_0x29a155={_0xc70741:0x44};this[_0x5625be(0x25b,_0xca1434._0x52c56b)+_0x970864(_0xca1434._0x38b140,0x5f6)+'r']&&(clearTimeout(this[_0x970864(_0xca1434._0x31bbba,0x4ba)+_0x5625be(0x397,0x267)+'r']),this[_0x970864(_0xca1434._0x33d96e,0x4ba)+_0x970864(_0xca1434._0x4d3a88,0x5f6)+'r']=null);this[_0x5625be(_0xca1434._0x1e4032,_0xca1434._0x572ab0)+_0x5625be(_0xca1434._0x45dca8,_0xca1434._0x3eeaf9)+_0x5625be(0x34f,0x33b)]=[];const _0x4985e8={};_0x4985e8['clientCo'+_0x5625be(_0xca1434._0x1d38b4,-0x18)]=0x0,this['updateSn'+_0x5625be(_0xca1434._0x46432f,_0xca1434._0x491904)](_0x4985e8);if(!this[_0x5625be(0x433,0x49a)+'yOpen']()&&!this['gatewayC'+_0x5625be(_0xca1434._0x308338,0x12a)+'g']){this['log']('gateway\x20'+_0x970864(0x471,_0xca1434._0x151a7a)+_0x970864(0x373,0x2d9)+_0x5625be(0x1a0,_0xca1434._0x566e7b)+_0x5625be(_0xca1434._0x23eefc,_0xca1434._0x51b95c)+'n='+_0x319e88),this[_0x970864(0x429,_0xca1434._0x39dea3)+_0x5625be(0x1c8,_0xca1434._0x2adbac)+_0x5625be(_0xca1434._0x2af504,0x2e5)]=null;return;}function _0x5625be(_0x1f10b7,_0x3b0a81){return _0x431448(_0x3b0a81,_0x1f10b7- -_0x29a155._0xc70741);}if(this[_0x970864(0x2b4,_0xca1434._0x552d94)+_0x970864(_0xca1434._0x35fc32,_0xca1434._0xb7423d)+_0x5625be(0x98,_0xca1434._0xcc8722)]){this[_0x5625be(_0xca1434._0x4d7856,0x94)](_0x970864(0x4f2,_0xca1434._0x1e259f)+_0x970864(_0xca1434._0x4e205b,0x6b9)+_0x970864(_0xca1434._0x4b1eb7,0x2cb)+_0x970864(_0xca1434._0x12f9f3,_0xca1434._0x2badce)+'uled\x20rea'+_0x970864(_0xca1434._0x5d604e,_0xca1434._0x7483aa)+_0x319e88);return;}function _0x970864(_0x3da4f8,_0x303fb5){return _0x431448(_0x3da4f8,_0x303fb5-_0x4ac7ae._0x2794fc);}const _0x4506b0=this[_0x5625be(_0xca1434._0x241d4e,0x39d)][_0x5625be(0x1fd,_0xca1434._0x50a3e5)+_0x5625be(0x396,_0xca1434._0x384006)+_0x970864(0x623,0x68d)+_0x970864(0x793,0x694)]??GATEWAY_IDLE_DISCONNECT_DELAY_MS;this[_0x970864(0x503,_0xca1434._0x594596)](_0x970864(0x42b,0x550)+'idle\x20clo'+_0x5625be(_0xca1434._0x4f9ffb,0x39d)+_0x5625be(0x2e4,0x13a)+'ayMs='+_0x4506b0+_0x970864(0x412,0x39c)+_0x319e88+(_0x5625be(_0xca1434._0x44926b,0x2e1)+_0x5625be(_0xca1434._0x237646,_0xca1434._0x86189e)+_0x5625be(_0xca1434._0x1318f8,0x399))+this[_0x970864(_0xca1434._0x1a936c,0x33e)+_0x970864(_0xca1434._0x3fa55f,0x6ac)](this['gatewayC'+_0x5625be(0x236,0x6c)+_0x5625be(_0xca1434._0x4028dc,0x3)])),this['gatewayI'+'dleClose'+'Timer']=setTimeout(()=>{this[_0x14a8ed(_0x59c768._0x3fe99d,_0x59c768._0x41f6cf)+'dleClose'+_0x40adb5(0x31e,0x242)]=null;if(this['hasGatew'+_0x40adb5(0x595,_0x59c768._0x41b2ca)]()){this[_0x40adb5(0x4e4,0x3a9)](_0x14a8ed(_0x59c768._0x3500ba,0x2bf)+_0x40adb5(0x7f7,0x604)+_0x14a8ed(0x1eb,_0x59c768._0x49afb3)+_0x14a8ed(_0x59c768._0x555f96,_0x59c768._0x13ce87)+_0x14a8ed(-0x17,_0x59c768._0x3a3c06)+_0x14a8ed(0x18f,_0x59c768._0x38f442)+_0x14a8ed(_0x59c768._0x3513d0,0xb3)+'d');return;}this[_0x14a8ed(0x103,_0x59c768._0x22753a)+_0x14a8ed(_0x59c768._0x10bad7,_0x59c768._0x3ecdf9)]();const _0x2001e4={};_0x2001e4[_0x14a8ed(0x29b,_0x59c768._0x5b4804)+_0x14a8ed(0x14c,0x204)]=![];function _0x14a8ed(_0x2ba46f,_0xaff60a){return _0x5625be(_0xaff60a- -0x32,_0x2ba46f);}_0x2001e4[_0x14a8ed(0xe6,0x220)+_0x14a8ed(0x265,_0x59c768._0x25b8d9)]=0x0,this[_0x14a8ed(0x334,0x424)+_0x40adb5(_0x59c768._0x3f704d,_0x59c768._0x3e0e1f)](_0x2001e4);function _0x40adb5(_0x1cc9d8,_0x16235e){return _0x5625be(_0x16235e-0x1aa,_0x1cc9d8);}this['clientDe'+_0x14a8ed(0x3c,_0x59c768._0x1b9ec4)+'tedAtMs']=null,this[_0x40adb5(0x59a,0x3a9)](_0x40adb5(0x3e1,_0x59c768._0x27e855)+_0x14a8ed(_0x59c768._0x2625c9,0x1af)+_0x14a8ed(0x42,_0x59c768._0x4a23c2)+'e\x20delay\x20'+'reason='+_0x319e88);},_0x4506b0);}[_0x9ec63e(0x240,0x1e6)+'tewayIdl'+_0x9ec63e(0x305,0x4a1)](_0x27acd6){const _0x4e6642={_0x4181ca:0x561,_0x574919:0x3aa,_0x7d66a3:0x28a,_0x337889:0x40e,_0x499699:0x4d0,_0x1ecc29:0x2c9,_0x117bfb:0x4d2,_0x1c3ddd:0x503,_0x33955e:0x56e,_0x4f59b6:0x4cd,_0xde370f:0x413,_0x3a0db0:0x3fe,_0x444087:0x50a,_0x276c78:0x31b},_0x4ee308={_0x56ff67:0x28f};if(!this[_0x5235d6(0x4d0,_0x4e6642._0x4181ca)+_0x5235d6(0x394,0x323)+_0x167614(0x315,0x4c0)])return;function _0x167614(_0x1dbd74,_0x5a705a){return _0x431448(_0x5a705a,_0x1dbd74-0x239);}clearTimeout(this[_0x5235d6(0x4d0,_0x4e6642._0x574919)+_0x167614(0x33e,_0x4e6642._0x7d66a3)+_0x5235d6(0x36b,_0x4e6642._0x337889)]),this[_0x5235d6(_0x4e6642._0x499699,0x3c1)+'dleClose'+_0x5235d6(0x36b,_0x4e6642._0x1ecc29)]=null;function _0x5235d6(_0x1327d3,_0x4cfc29){return _0x431448(_0x4cfc29,_0x1327d3-_0x4ee308._0x56ff67);}_0x27acd6&&this[_0x5235d6(_0x4e6642._0x117bfb,_0x4e6642._0x1c3ddd)](_0x167614(_0x4e6642._0x33955e,_0x4e6642._0x4f59b6)+'idle\x20clo'+_0x5235d6(_0x4e6642._0xde370f,_0x4e6642._0x3a0db0)+_0x5235d6(_0x4e6642._0x444087,_0x4e6642._0x276c78)+'on='+_0x27acd6);}['schedule'+'RelayRec'+'onnect'](){const _0x37430a={_0x3d8919:0x607,_0xe4c735:0x89b,_0x5e2473:0x76b,_0xfb5623:0x478,_0x393839:0x778,_0x11c54d:0x763,_0x1cae61:0x6ca,_0x212605:0x668,_0x2f7119:0x813,_0xa2d85f:0x712,_0x5c7406:0x80b,_0x2ea877:0x73a,_0x2d9eed:0x785,_0x629037:0x527,_0x5546b2:0x4f7,_0x2f770f:0x835,_0x311666:0x714,_0x50556b:0x67d,_0x4c7dd5:0x74d,_0x59ee17:0x5c3,_0xcbeb28:0x542,_0x30c9f2:0x452,_0x52e423:0x667,_0x3ac57b:0x728},_0x869b8f={_0x3aefc6:0x7},_0xdf061a={_0x46360c:0x54d};function _0x3e4194(_0x2fe656,_0xd49b70){return _0x9ec63e(_0xd49b70-0x3f4,_0x2fe656);}const _0x1662ce={'StYnf':function(_0x32af08,_0x3e3997){return _0x32af08*_0x3e3997;},'MTrar':function(_0x69c2bb,_0x18d97d,_0x143183){return _0x69c2bb(_0x18d97d,_0x143183);}};if(this[_0x3e4194(0x714,_0x37430a._0x3d8919)]||this[_0x10fbb7(_0x37430a._0xe4c735,_0x37430a._0x5e2473)+_0x10fbb7(_0x37430a._0xfb5623,0x59e)])return;const _0x2d188c=this[_0x10fbb7(_0x37430a._0x393839,0x80b)]['reconnec'+_0x10fbb7(_0x37430a._0x11c54d,_0x37430a._0x1cae61)+_0x3e4194(_0x37430a._0x212605,_0x37430a._0x2f7119)]??RECONNECT_BASE_DELAY_MS,_0x585a2b=this[_0x10fbb7(_0x37430a._0xa2d85f,_0x37430a._0x5c7406)][_0x3e4194(_0x37430a._0x2ea877,_0x37430a._0x2d9eed)+_0x3e4194(_0x37430a._0x629037,_0x37430a._0x5546b2)+_0x3e4194(_0x37430a._0x2f770f,_0x37430a._0x311666)]??RECONNECT_MAX_DELAY_MS,_0x150d6f=Math[_0x3e4194(_0x37430a._0x50556b,0x5d7)](_0x585a2b,_0x1662ce['StYnf'](_0x2d188c,Math[_0x3e4194(0x590,_0x37430a._0xfb5623)](0x1,this['relayAtt'+_0x10fbb7(_0x37430a._0x4c7dd5,0x6d1)])));function _0x10fbb7(_0x55139b,_0x1775db){return _0x9ec63e(_0x1775db-0x3da,_0x55139b);}this[_0x10fbb7(0x725,_0x37430a._0x59ee17)](_0x10fbb7(0x5e7,_0x37430a._0xcbeb28)+_0x3e4194(0x4f7,_0x37430a._0x30c9f2)+_0x3e4194(_0x37430a._0x52e423,0x705)+_0x10fbb7(0x4bb,0x608)+'s='+_0x150d6f),this[_0x3e4194(0x7cf,0x785)+_0x10fbb7(0x5f9,0x59e)]=_0x1662ce[_0x10fbb7(0x70d,_0x37430a._0x3ac57b)](setTimeout,()=>{this[_0x99489a(0x19c,_0x869b8f._0x3aefc6)+_0x99489a(-0x31,-0x182)]=null;function _0x56704d(_0x3a9a83,_0x48074a){return _0x3e4194(_0x48074a,_0x3a9a83- -_0xdf061a._0x46360c);}function _0x99489a(_0x24b05f,_0x2c6dd7){return _0x3e4194(_0x2c6dd7,_0x24b05f- -0x5e9);}void this['connectR'+_0x56704d(0xb9,0x1b8)]();},_0x150d6f);}[_0x9ec63e(0x311,0x20e)+_0x9ec63e(0x1bb,0xcf)+_0x431448(0x3f8,0x45c)](){const _0x149721={_0x581f1c:0x3ba,_0x11bb47:0x81,_0x3d7300:0x19c,_0xf0fa6a:0x22e,_0x2b83a0:0x47,_0x27a777:0xf6,_0x3923d7:0x146,_0x4c7081:0x16b,_0x19ca11:0x78},_0x2b4c29={_0x272061:0x11a,_0x1b5864:0x88},_0x3e18fe={_0xb6fbc6:0x320};if(this[_0x41008a(_0x149721._0x581f1c,0x211)]||this[_0x3c19cd(-_0x149721._0x11bb47,-_0x149721._0x3d7300)+_0x41008a(_0x149721._0xf0fa6a,0x37f)+'r']||!this[_0x3c19cd(_0x149721._0x2b83a0,_0x149721._0x27a777)+_0x41008a(_0x149721._0x3923d7,0x1f1)]()||!this['hasGatew'+_0x3c19cd(-0xf0,-0x2cc)]())return;const _0x5de1f8=this[_0x3c19cd(_0x149721._0x4c7081,0xf7)][_0x3c19cd(-0x81,_0x149721._0x19ca11)+'etryDela'+_0x41008a(0x153,0x31e)]??GATEWAY_RETRY_DELAY_MS;function _0x3c19cd(_0xdc2dc9,_0x30f53e){return _0x431448(_0x30f53e,_0xdc2dc9- -_0x3e18fe._0xb6fbc6);}function _0x41008a(_0x40af3b,_0x3c2e4f){return _0x431448(_0x40af3b,_0x3c2e4f- -0x5c);}this[_0x41008a(0x57,0x243)+'etryTime'+'r']=setTimeout(()=>{function _0x401ec1(_0x5e77ab,_0x373a5c){return _0x3c19cd(_0x5e77ab-0x194,_0x373a5c);}function _0x54cac1(_0x39196c,_0x556b5d){return _0x3c19cd(_0x39196c-0x5f,_0x556b5d);}this['gatewayR'+_0x54cac1(_0x2b4c29._0x272061,0x2e9)+'r']=null,this['ensureGa'+'tewayCon'+_0x401ec1(0x16c,_0x2b4c29._0x1b5864)]();},_0x5de1f8);}[_0x431448(0x28d,0x41d)+_0x431448(0x3bd,0x3be)](){const _0x15a19a={_0x1527e2:0x14f,_0x5f00ce:0x37d,_0x523d87:0x483,_0x37eba2:0x52b,_0x32dc25:0x1c5,_0x48ed48:0x394},_0x661c2c={_0x84551e:0x5e1,_0x43aadc:0x690,_0x28d34d:0x225,_0x452440:0x285,_0x47b786:0x360,_0x592928:0x282,_0x5a772f:0x25a,_0x19f9ab:0x1ea,_0x18d922:0x4ad,_0x4d5455:0x9b},_0xa4b846={_0x854706:0x141},_0x5e0dd4={};_0x5e0dd4['fLjur']=_0x49d11b(0x3cb,0x3d3)+'artbeat\x20'+_0x44d557(0x289,0x486)+'t';function _0x49d11b(_0x4b9e8d,_0x53bec4){return _0x431448(_0x53bec4,_0x4b9e8d-_0xa4b846._0x854706);}function _0x44d557(_0x19d435,_0x57549c){return _0x431448(_0x19d435,_0x57549c-0xa0);}const _0x3b5029=_0x5e0dd4;this['stopHear'+_0x44d557(_0x15a19a._0x1527e2,0x1ce)](),this[_0x44d557(0x2d7,_0x15a19a._0x5f00ce)+'tTimer']=setInterval(()=>{const _0x1346e4=this[_0x297769(_0x661c2c._0x84551e,0x401)+_0x297769(0x7d7,_0x661c2c._0x43aadc)];if(!_0x1346e4||_0x1346e4[_0x2445e5(0x15b,_0x661c2c._0x28d34d)+'te']!==_0x1f8130[_0x2445e5(0x3cc,0x4c1)])return;function _0x297769(_0x4169dc,_0x38dd53){return _0x49d11b(_0x38dd53-0x166,_0x4169dc);}const _0x27648f=this[_0x297769(0x8ba,0x732)][_0x2445e5(_0x661c2c._0x452440,_0x661c2c._0x47b786)+_0x2445e5(_0x661c2c._0x592928,_0x661c2c._0x5a772f)+'Ms']??HEARTBEAT_TIMEOUT_MS;if(Date[_0x2445e5(0x373,_0x661c2c._0x19f9ab)]()-this['lastRela'+_0x2445e5(0x2fa,_0x661c2c._0x18d922)+'yMs']>_0x27648f){this[_0x2445e5(0x1eb,_0x661c2c._0x4d5455)](_0x3b5029[_0x297769(0x28b,0x342)]),_0x1346e4['terminat'+'e']();return;}function _0x2445e5(_0x2284df,_0x5956c){return _0x49d11b(_0x2284df- -0x199,_0x5956c);}_0x1346e4[_0x2445e5(0x2a3,0x1a7)]();},this[_0x44d557(_0x15a19a._0x523d87,_0x15a19a._0x37eba2)][_0x44d557(0x396,_0x15a19a._0x5f00ce)+_0x44d557(_0x15a19a._0x32dc25,_0x15a19a._0x48ed48)+_0x49d11b(0x242,0x27e)]??HEARTBEAT_INTERVAL_MS);}[_0x9ec63e(0xb7,0xb8)+_0x431448(0xfb,0x12e)](){const _0x3ace8d={_0xc7dffe:0x5ba,_0x2f5487:0x679,_0xa03b99:0x60f},_0x213eec={_0x3b812f:0x313};function _0x440f21(_0x30f153,_0x2f649e){return _0x9ec63e(_0x30f153- -_0x213eec._0x3b812f,_0x2f649e);}function _0x215c93(_0x4cc947,_0x21ed70){return _0x9ec63e(_0x4cc947-0x3f6,_0x21ed70);}this[_0x215c93(0x679,0x69e)+_0x440f21(-0x14f,-0x1ca)]&&(clearInterval(this['heartbea'+_0x215c93(_0x3ace8d._0xc7dffe,0x633)]),this[_0x215c93(_0x3ace8d._0x2f5487,_0x3ace8d._0xa03b99)+_0x440f21(-0x14f,-0x289)]=null);}[_0x431448(0xd0,0x216)+_0x9ec63e(0x4a,0x157)+'ayMessag'+'e'](_0xe7a01b){const _0x20d248={_0x30adb9:0x185,_0x276def:0x2a9,_0xb00e75:0x24b,_0x38b3be:0x19a,_0x43edbc:0x4c,_0x3156d5:0x19a,_0x3ba152:0x177},_0x971be8={_0x5598bb:0x348};function _0x49f013(_0x475efe,_0x36bd93){return _0x431448(_0x475efe,_0x36bd93- -0x35d);}function _0x4d2aac(_0x3b5461,_0x5bb64e){return _0x431448(_0x3b5461,_0x5bb64e- -_0x971be8._0x5598bb);}this['pendingG'+_0x4d2aac(-0x1,-_0x20d248._0x30adb9)+'ssages'][_0x49f013(-_0x20d248._0x276def,-0xd9)]>=MAX_PENDING_GATEWAY_MESSAGES&&this['pendingG'+_0x49f013(-_0x20d248._0xb00e75,-_0x20d248._0x38b3be)+_0x4d2aac(-0x39,0x4b)][_0x49f013(-0xd,-_0x20d248._0x43edbc)](),this['pendingG'+_0x49f013(-0x18f,-_0x20d248._0x3156d5)+_0x4d2aac(-_0x20d248._0x3ba152,0x4b)][_0x49f013(-0x15d,-0x188)](_0xe7a01b);}['observeC'+_0x431448(0x1da,0x1c6)+_0x431448(0x37a,0x30f)](_0x525d91,_0x1c523c){const _0x55604f={_0x42cb28:0x23a,_0x2c3434:0x437,_0x1c0d26:0xbf,_0x30b4cd:0x6fa,_0x444803:0x695,_0x42196a:0x696,_0x3e3612:0x69d,_0x1ca65b:0x841,_0x4e9d4f:0x552,_0x221369:0x38a,_0x354ca6:0x533,_0x1f954a:0x117,_0x16c70d:0x4ce},_0x203c98={_0x20f6d1:0x207},_0xd4a60f=Date[_0x138268(_0x55604f._0x42cb28,0x16a)](),_0x1b57e2=new Map(this['snapshot']['connecte'+_0x125cd1(0x62d,0x493)][_0x125cd1(0x5c0,_0x55604f._0x2c3434)](_0x52ed0f=>[_0x52ed0f['id'],{..._0x52ed0f}]));function _0x138268(_0x383272,_0xacc9d5){return _0x9ec63e(_0xacc9d5- -_0x203c98._0x20f6d1,_0x383272);}const _0x2ecb7a=_0x1b57e2[_0x138268(-0xec,-_0x55604f._0x1c0d26)](_0x525d91)??{'id':_0x525d91,'label':_0x1c523c,'state':_0x138268(-0x4d,-0xe9)+'d','lastSeenMs':_0xd4a60f};_0x2ecb7a['label']=_0x1c523c;function _0x125cd1(_0x3ea981,_0x54ec19){return _0x9ec63e(_0x3ea981-0x415,_0x54ec19);}_0x2ecb7a[_0x125cd1(_0x55604f._0x30b4cd,_0x55604f._0x444803)]=_0x125cd1(0x533,0x66e)+'d',_0x2ecb7a['lastSeen'+'Ms']=_0xd4a60f,_0x1b57e2[_0x125cd1(_0x55604f._0x42196a,_0x55604f._0x3e3612)](_0x525d91,_0x2ecb7a);const _0x25894a=[..._0x1b57e2[_0x125cd1(_0x55604f._0x1ca65b,0x67f)]()][_0x125cd1(_0x55604f._0x4e9d4f,_0x55604f._0x221369)]((_0x3ddfce,_0x59acb7)=>_0x59acb7[_0x138268(-0x30b,-0x195)+'Ms']-_0x3ddfce[_0x125cd1(0x487,0x2de)+'Ms'])['slice'](0x0,MAX_DEVICE_DETAILS),_0x3559e0={};_0x3559e0[_0x125cd1(_0x55604f._0x354ca6,0x404)+_0x138268(_0x55604f._0x1f954a,0x11)]=_0x25894a,this[_0x138268(0x290,0x239)+_0x125cd1(0x62f,_0x55604f._0x16c70d)](_0x3559e0);}['markDevi'+_0x431448(0x414,0x40f)+'t'](){const _0x1df237={_0x84446c:0x764,_0x140f40:0x7db,_0x31387f:0x3f1,_0x3b0252:0x208};function _0x4eaf08(_0x125476,_0x2a6422){return _0x431448(_0x125476,_0x2a6422-0x3);}function _0x364e10(_0x1ad977,_0x2495e6){return _0x431448(_0x2495e6,_0x1ad977-0x2ca);}this[_0x364e10(_0x1df237._0x84446c,_0x1df237._0x140f40)+_0x4eaf08(0x358,0x277)]({'connectedDevices':this[_0x4eaf08(0x246,_0x1df237._0x31387f)]['connecte'+'dDevices'][_0x4eaf08(0x399,_0x1df237._0x3b0252)](_0x4c993f=>({..._0x4c993f,'state':'recent'}))});}[_0x9ec63e(0x89,-0xd0)+_0x431448(0xed,0x1f7)+_0x9ec63e(0x367,0x556)](_0x5b86d0){const _0x2ff0d7={_0x2c064d:0x67c,_0x434be4:0x5dc,_0x2f98a5:0xd1,_0x2f3a86:0x3a0,_0x19cafa:0x664,_0x12fc8a:0x219,_0x503738:0x375,_0x315d32:0x43e,_0x5d826f:0x31a,_0x46dffa:0x84,_0x467d7b:0x22f,_0x347309:0x180,_0x23aa73:0x2e5,_0xf900bc:0x30d,_0x425efc:0x1ce,_0x38affb:0x154,_0x1310ad:0x148,_0x2380ee:0x29c,_0x57fc77:0x4fe},_0x589d2b={_0x3dc0c9:0x28e};if(this[_0x3d1ca2(_0x2ff0d7._0x2c064d,_0x2ff0d7._0x434be4)][_0x441772(0x84,_0x2ff0d7._0x2f98a5)+'airReque'+_0x3d1ca2(_0x2ff0d7._0x2f3a86,0x566)][_0x3d1ca2(_0x2ff0d7._0x19cafa,0x72c)](_0x13db76=>_0x13db76[_0x3d1ca2(0x353,0x31b)+'d']===_0x5b86d0[_0x3d1ca2(0x353,0x4a3)+'d']))return;function _0x441772(_0x156b8b,_0x298cd2){return _0x431448(_0x298cd2,_0x156b8b- -0xef);}const _0x73d097=[...this[_0x3d1ca2(0x67c,0x6b8)][_0x441772(0x84,-0xbc)+_0x441772(_0x2ff0d7._0x12fc8a,_0x2ff0d7._0x503738)+_0x3d1ca2(0x3a0,0x521)],_0x5b86d0][_0x3d1ca2(_0x2ff0d7._0x315d32,_0x2ff0d7._0x5d826f)](-MAX_PENDING_PAIR_REQUESTS),_0x9ffcd0={};function _0x3d1ca2(_0x11cde6,_0x1a270d){return _0x431448(_0x1a270d,_0x11cde6-_0x589d2b._0x3dc0c9);}_0x9ffcd0[_0x441772(_0x2ff0d7._0x46dffa,_0x2ff0d7._0x467d7b)+_0x3d1ca2(0x596,0x561)+_0x441772(0x23,-_0x2ff0d7._0x347309)]=_0x73d097,this[_0x441772(0x3ab,0x43b)+_0x441772(0x185,0x357)](_0x9ffcd0),this['options'][_0x441772(0xe7,_0x2ff0d7._0x23aa73)+_0x441772(_0x2ff0d7._0xf900bc,0x339)+_0x441772(-0x19,-_0x2ff0d7._0x425efc)]?.(_0x5b86d0),this[_0x441772(_0x2ff0d7._0x38affb,_0x2ff0d7._0x1310ad)](_0x441772(_0x2ff0d7._0x2380ee,0x2f4)+'uest\x20pen'+'ding\x20req'+_0x3d1ca2(_0x2ff0d7._0x57fc77,0x6d5)+_0x5b86d0[_0x3d1ca2(0x353,0x278)+'d']+(_0x3d1ca2(0x420,0x41c)+'d=')+(_0x5b86d0['deviceId']||'<unknown'+'>'));}[_0x9ec63e(0x1dc,0x19a)+_0x431448(0x1da,0x357)+'esolved'](_0x40a2e0,_0x146c2f){const _0x1ae750={_0x550933:0x289,_0x39883e:0x181,_0x421d56:0xcb,_0xc7c98e:0x41e,_0x1d2ce5:0x4a1,_0x59a2f5:0x1cb,_0x5315ba:0x380},_0x445aa0={_0x227257:0x170},_0xc14909=this[_0x23608a(0x481,0x504)][_0x23608a(0x20c,_0x1ae750._0x550933)+'airReque'+_0x5c2705(-_0x1ae750._0x39883e,-_0x1ae750._0x421d56)]['map'](_0xe9f1f7=>_0xe9f1f7[_0x5c2705(0x6a,-0x118)+'d']===_0x40a2e0?{..._0xe9f1f7,'status':_0x146c2f==='approved'||_0x146c2f===_0x23608a(0x2f1,0x283)?_0x146c2f:_0xe9f1f7['status']}:_0xe9f1f7);function _0x23608a(_0x800307,_0x366531){return _0x9ec63e(_0x366531-_0x445aa0._0x227257,_0x800307);}function _0x5c2705(_0x8f1d9e,_0x5a2b1a){return _0x9ec63e(_0x5a2b1a- -0x183,_0x8f1d9e);}const _0x30f6d9={};_0x30f6d9['pendingP'+_0x23608a(0x392,_0x1ae750._0xc7c98e)+'sts']=_0xc14909,this[_0x23608a(0x753,0x5b0)+'apshot'](_0x30f6d9),this['log'](_0x23608a(0x5f0,_0x1ae750._0x1d2ce5)+_0x23608a(-0x37,_0x1ae750._0x59a2f5)+_0x23608a(_0x1ae750._0x5315ba,0x27a)+_0x5c2705(0x96,-0xe2)+_0x40a2e0+(_0x5c2705(0x1d1,0xe4)+'n=')+_0x146c2f);}[_0x9ec63e(0x440,0x26e)+_0x431448(0x449,0x274)](_0x5d9351){const _0x190d7c={_0x13dc5b:0x42a,_0x1065ae:0x25f,_0xda3f4e:0x776,_0xf69d7f:0x813,_0x482f5a:0x484,_0x448254:0x554},_0x19be6c={_0x5db906:0x3e2};function _0x1944d7(_0x22a36f,_0x4c21ad){return _0x9ec63e(_0x22a36f-_0x19be6c._0x5db906,_0x4c21ad);}function _0x2c1527(_0xc9eecf,_0x303d59){return _0x9ec63e(_0x303d59- -0xbb,_0xc9eecf);}Object[_0x1944d7(_0x190d7c._0x13dc5b,_0x190d7c._0x1065ae)](this[_0x1944d7(_0x190d7c._0xda3f4e,0x5d3)],_0x5d9351,{'lastUpdatedMs':Date[_0x1944d7(0x753,0x56f)]()}),this[_0x1944d7(_0x190d7c._0xf69d7f,0x7db)][_0x1944d7(_0x190d7c._0x482f5a,0x5db)]?.(this['getSnaps'+_0x1944d7(_0x190d7c._0x448254,0x739)]());}[_0x431448(0x29e,0x243)](_0x4cd5bc){const _0x3bfed8={_0x87cd60:0xdd,_0x130669:0x3ad,_0x133e42:0x406},_0x459a41={_0x4c4227:0x354};function _0x5e3121(_0x3e7842,_0x54365b){return _0x9ec63e(_0x3e7842- -_0x459a41._0x4c4227,_0x54365b);}function _0x1675b3(_0x3baf09,_0x20e2aa){return _0x9ec63e(_0x3baf09-0x341,_0x20e2aa);}this[_0x5e3121(_0x3bfed8._0x87cd60,0x277)][_0x1675b3(_0x3bfed8._0x130669,_0x3bfed8._0x133e42)]?.(_0x4cd5bc);}['isRelayO'+_0x431448(0x3b2,0x24d)](){const _0x5ed3d0={_0x43bccf:0x412,_0x16cb76:0x6de,_0x26cfec:0x683},_0x5ae92a={_0x3e2fb6:0x11c};function _0x31d3c0(_0x39214e,_0x3c4d87){return _0x9ec63e(_0x3c4d87-0x2b9,_0x39214e);}function _0xcc2810(_0x18acb8,_0x26a39b){return _0x9ec63e(_0x26a39b-_0x5ae92a._0x3e2fb6,_0x18acb8);}return this['relaySoc'+_0x31d3c0(0x4fc,0x648)]?.[_0x31d3c0(0x497,_0x5ed3d0._0x43bccf)+'te']===_0x1f8130[_0x31d3c0(_0x5ed3d0._0x16cb76,_0x5ed3d0._0x26cfec)];}[_0x9ec63e(0x41d,0x2c8)+_0x431448(0x4e6,0x347)](){const _0x8f2c0f={_0x19edbc:0x208,_0x9f6c9a:0x57,_0x5ced33:0x18e,_0x26fc40:0x137,_0x32b31c:0xda,_0x3cdd74:0x5e,_0x1499fb:0x47d,_0x444add:0x293},_0x15fe67={_0x1ff61a:0x2ca},_0x402b8e={_0xb34414:0x1c9},_0x4911b2={};function _0x1129a0(_0x127f96,_0x20ef96){return _0x431448(_0x20ef96,_0x127f96- -_0x402b8e._0xb34414);}_0x4911b2[_0x1129a0(-0x57,-_0x8f2c0f._0x19edbc)]=function(_0x2a7b11,_0x4735f9){return _0x2a7b11===_0x4735f9;};const _0x4b4f2f=_0x4911b2;function _0x1669ab(_0xd2fc4d,_0x3de853){return _0x431448(_0x3de853,_0xd2fc4d-_0x15fe67._0x1ff61a);}return _0x4b4f2f[_0x1129a0(-_0x8f2c0f._0x9f6c9a,-_0x8f2c0f._0x5ced33)](this[_0x1129a0(_0x8f2c0f._0x26fc40,_0x8f2c0f._0x32b31c)+_0x1129a0(0x1f7,_0x8f2c0f._0x3cdd74)]?.[_0x1669ab(_0x8f2c0f._0x1499fb,_0x8f2c0f._0x444add)+'te'],_0x1f8130['OPEN']);}[_0x431448(0x1b4,0x140)+_0x431448(0x3a2,0x230)](){const _0x2ea11f={_0x2f154c:0xca,_0x620819:0x4b,_0x1c784a:0x9b,_0xd0ec42:0x3b7,_0x1955a9:0x636,_0x5b3506:0xad},_0x410eac={_0x5cbbc0:0x290};function _0x10ad0e(_0x39f4a8,_0x4ac162){return _0x9ec63e(_0x4ac162-_0x410eac._0x5cbbc0,_0x39f4a8);}function _0x5ede2d(_0x4ec901,_0xb1795c){return _0x9ec63e(_0xb1795c- -0x2d7,_0x4ec901);}return this[_0x5ede2d(-_0x2ea11f._0x2f154c,0xbd)][_0x5ede2d(-_0x2ea11f._0x620819,-_0x2ea11f._0x1c784a)+_0x10ad0e(_0x2ea11f._0xd0ec42,0x465)]>0x0||this['pendingG'+_0x10ad0e(0x4e8,0x3f9)+_0x10ad0e(_0x2ea11f._0x1955a9,0x5c9)][_0x5ede2d(-0x10c,-_0x2ea11f._0x5b3506)]>0x0;}[_0x431448(0x555,0x445)+_0x431448(0x2b6,0x37b)](){const _0x55e812={_0x5107c5:0x42,_0x5516f8:0x138,_0x515945:0x550,_0x5cc682:0x383,_0x55d6ae:0x13a,_0x3e41a4:0x3f,_0x3be6d0:0x540,_0x495236:0x546,_0x4bb6af:0x404,_0x1988f2:0xa6,_0x34acd3:0xff},_0x3b19e0={_0x2b6f57:0x260},_0x3bb066={_0x5bdd7c:0x165};this['stopHear'+'tbeat']();function _0x9ca095(_0xf7cb74,_0x485552){return _0x431448(_0xf7cb74,_0x485552-_0x3bb066._0x5bdd7c);}this['reconnec'+_0x2fc102(-_0x55e812._0x5107c5,-_0x55e812._0x5516f8)]&&(clearTimeout(this[_0x9ca095(0x696,_0x55e812._0x515945)+_0x9ca095(0x365,_0x55e812._0x5cc682)]),this['reconnec'+_0x2fc102(-0x42,-_0x55e812._0x55d6ae)]=null);this[_0x2fc102(_0x55e812._0x3e41a4,0x110)+_0x9ca095(0x50f,_0x55e812._0x3be6d0)+'r']&&(clearTimeout(this[_0x9ca095(_0x55e812._0x495236,_0x55e812._0x4bb6af)+_0x2fc102(0x17b,0x2d7)+'r']),this['gatewayR'+_0x9ca095(0x410,0x540)+'r']=null);function _0x2fc102(_0x4ccf46,_0x37a646){return _0x431448(_0x37a646,_0x4ccf46- -_0x3b19e0._0x2b6f57);}this['cancelGa'+_0x2fc102(0x201,_0x55e812._0x1988f2)+_0x2fc102(_0x55e812._0x34acd3,0xbc)]();}[_0x431448(-0x53,0x123)+_0x9ec63e(0x437,0x264)](_0xf232f6){const _0x13459d={_0x2556fa:0x41,_0x4cefe5:0x85d,_0x492593:0x75c,_0x6d6bb8:0x43b},_0x5c6916={};function _0xcf5437(_0xac11f5,_0x226aa3){return _0x9ec63e(_0xac11f5- -0x43,_0x226aa3);}function _0x40d401(_0x554bb8,_0x19ed5d){return _0x9ec63e(_0x19ed5d-0x36f,_0x554bb8);}_0x5c6916['cSNVC']=function(_0x466b92,_0xdc30d){return _0x466b92-_0xdc30d;};const _0x453a8d=_0x5c6916;return _0xf232f6==null?null:Math[_0xcf5437(_0x13459d._0x2556fa,0xbd)](0x0,_0x453a8d[_0x40d401(_0x13459d._0x4cefe5,_0x13459d._0x492593)](Date[_0xcf5437(0x32e,_0x13459d._0x6d6bb8)](),_0xf232f6));}};function shouldRecycleGatewayForFreshClient(_0x489700,_0x131fdd,_0x2790b4,_0x1cff5c){return _0x2790b4&&_0x131fdd>0x0&&(_0x489700===0x0||_0x1cff5c);}function shouldDropStaleConnectAfterGatewayReopen(_0x41e28d,_0x1bdfaa){return!_0x41e28d&&_0x1bdfaa;}function patchConnectRequestGatewayAuth(_0x5a0943,_0x2df7f4){const _0xf5abd8={_0x540269:0x554,_0x2c91e6:0x374,_0x430c17:0x4f5,_0x2cac2b:0x3a3,_0x47c8d5:0x3c3,_0x5198b1:0x185,_0xf3b52c:0x669,_0x4df164:0x6fb,_0x21e764:0x82f,_0x566eef:0x3ef,_0x4cf1ef:0x527,_0x33aa56:0x580,_0xaa1bb6:0x2e9,_0x1da5bd:0x2a6,_0x42d59b:0x479,_0x50ef25:0x1a7,_0x1baa00:0x6e3,_0x50b652:0x6b4,_0x114bcd:0x348,_0x4b56c:0x6d6,_0x22fd7c:0x35b,_0xe2ccbd:0x728,_0x1f181e:0x345,_0x5de1da:0x542,_0x5b310e:0x5cd,_0x381f28:0x189,_0x2ff5ea:0x25e},_0x12da09={_0x401f7d:0x407},_0x319873={_0x9fb085:0x69},_0x554ef5={};_0x554ef5['BHTIz']=function(_0x17f7f4,_0x55b5ea){return _0x17f7f4!==_0x55b5ea;},_0x554ef5['WnjSZ']=function(_0x27a231,_0x315b64){return _0x27a231!==_0x315b64;},_0x554ef5[_0x8f687a(_0xf5abd8._0x540269,0x569)]='connect',_0x554ef5['QzZLN']=_0x4f6841(_0xf5abd8._0x2c91e6,0x2d2)+_0x8f687a(_0xf5abd8._0x430c17,0x5bb),_0x554ef5[_0x4f6841(0x2c0,_0xf5abd8._0x2cac2b)]=_0x4f6841(0x40d,0x315),_0x554ef5['AVYyF']=_0x4f6841(0x343,_0xf5abd8._0x47c8d5);function _0x4f6841(_0x42bcb1,_0xfebd75){return _0x9ec63e(_0x42bcb1-_0x319873._0x9fb085,_0xfebd75);}function _0x8f687a(_0x27b714,_0x191548){return _0x9ec63e(_0x27b714-_0x12da09._0x401f7d,_0x191548);}const _0x405719=_0x554ef5;if(_0x405719['BHTIz'](_0x2df7f4['authMode'],_0x4f6841(_0xf5abd8._0x5198b1,0x32b))||!_0x2df7f4['password']){const _0x42425a={};return _0x42425a[_0x4f6841(0x189,0xb0)]=_0x5a0943,_0x42425a[_0x8f687a(_0xf5abd8._0xf3b52c,0x734)]=![],_0x42425a;}try{const _0x5aec7c=JSON[_0x8f687a(0x5c1,0x4ea)](_0x5a0943);if(_0x5aec7c[_0x4f6841(0x3b9,0x3cb)]!==_0x8f687a(0x76f,_0xf5abd8._0x4df164)||_0x405719[_0x4f6841(0x19d,-0x5d)](_0x5aec7c[_0x8f687a(0x811,0x7b1)],_0x405719[_0x8f687a(_0xf5abd8._0x540269,0x702)])&&_0x5aec7c[_0x8f687a(0x811,_0xf5abd8._0x21e764)]!==_0x405719[_0x4f6841(_0xf5abd8._0x566eef,0x34a)]){const _0x26d817={};return _0x26d817[_0x8f687a(_0xf5abd8._0x4cf1ef,_0xf5abd8._0x33aa56)]=_0x5a0943,_0x26d817['injected']=![],_0x26d817;}const _0x10437f=_0x5aec7c[_0x4f6841(0x479,_0xf5abd8._0xaa1bb6)]&&typeof _0x5aec7c['params']===_0x405719[_0x4f6841(0x2c0,_0xf5abd8._0x1da5bd)]?{..._0x5aec7c[_0x4f6841(_0xf5abd8._0x42d59b,0x4f9)]}:{},_0x3cdd4b=_0x10437f[_0x4f6841(0x345,_0xf5abd8._0x50ef25)]&&typeof _0x10437f[_0x8f687a(_0xf5abd8._0x1baa00,0x610)]===_0x8f687a(0x7ab,0x6d8)?{..._0x10437f[_0x8f687a(0x6e3,0x5ad)]}:{},_0x20a09f=typeof _0x3cdd4b[_0x4f6841(0x185,0x110)]===_0x405719[_0x8f687a(_0xf5abd8._0x50b652,0x65b)]?_0x3cdd4b[_0x4f6841(_0xf5abd8._0x5198b1,_0xf5abd8._0x114bcd)][_0x8f687a(_0xf5abd8._0x4b56c,0x785)]():'';if(_0x20a09f){const _0x42e487={};return _0x42e487[_0x8f687a(_0xf5abd8._0x4cf1ef,_0xf5abd8._0x22fd7c)]=_0x5a0943,_0x42e487[_0x8f687a(0x669,_0xf5abd8._0xe2ccbd)]=![],_0x42e487;}_0x3cdd4b[_0x8f687a(0x523,_0xf5abd8._0x4df164)]=_0x2df7f4['password'],_0x10437f[_0x4f6841(_0xf5abd8._0x1f181e,0x1a0)]=_0x3cdd4b;const _0x3fd790={..._0x5aec7c};return _0x3fd790[_0x4f6841(_0xf5abd8._0x42d59b,_0xf5abd8._0x5de1da)]=_0x10437f,{'text':JSON[_0x4f6841(0x42e,_0xf5abd8._0x5b310e)+'y'](_0x3fd790),'injected':!![]};}catch{const _0x1b3899={};return _0x1b3899[_0x4f6841(_0xf5abd8._0x381f28,_0xf5abd8._0x2ff5ea)]=_0x5a0943,_0x1b3899['injected']=![],_0x1b3899;}}function buildRelayWsUrl(_0x3a217b){const _0x5ec410={_0x1f5f09:0x22e,_0x4d4d56:0x27b,_0x5af1ee:0x21f,_0x16707c:0x3d,_0x2725aa:0x307,_0x1ee87d:0x21e,_0x305bc3:0x82,_0x4af1a0:0x121,_0x33840a:0x15f,_0x16982f:0x1a2,_0x54f941:0x82,_0xb97739:0x324,_0x3b2d51:0x5c1,_0xd4d724:0x188,_0x4fb079:0x123,_0x5d44d4:0x5e},_0x4b12d3={_0xe8d227:0x119};function _0x7c9b28(_0x23acb5,_0x4a7273){return _0x9ec63e(_0x23acb5-_0x4b12d3._0xe8d227,_0x4a7273);}const _0x5bba19={};_0x5bba19[_0x7c9b28(0x253,_0x5ec410._0x1f5f09)]='gateway';function _0x25df09(_0xe14adb,_0x1138d8){return _0x9ec63e(_0xe14adb- -0x2d0,_0x1138d8);}_0x5bba19['mymTO']='token';const _0x2e9e4f=_0x5bba19,_0x122a64=new URL(_0x3a217b['relayUrl']);return(!_0x122a64[_0x7c9b28(0x1ca,_0x5ec410._0x4d4d56)]||_0x122a64[_0x25df09(-_0x5ec410._0x5af1ee,-0x1d5)]==='/')&&(_0x122a64[_0x25df09(-0x21f,-_0x5ec410._0x16707c)]=_0x7c9b28(_0x5ec410._0x2725aa,_0x5ec410._0x1ee87d)),_0x122a64['searchPa'+_0x25df09(_0x5ec410._0x305bc3,0x240)]['set']('gatewayI'+'d',_0x3a217b['gatewayI'+'d']),_0x122a64[_0x25df09(-0xc5,0x63)+'rams'][_0x25df09(-0x4f,-_0x5ec410._0x4af1a0)](_0x25df09(_0x5ec410._0x33840a,_0x5ec410._0x1f5f09),_0x2e9e4f['BOCjt']),_0x122a64[_0x7c9b28(0x324,_0x5ec410._0x16982f)+_0x25df09(_0x5ec410._0x54f941,0x152)]['set']('clientId',_0x3a217b['instance'+'Id']),_0x122a64[_0x7c9b28(_0x5ec410._0xb97739,0x315)+_0x7c9b28(0x46b,_0x5ec410._0x3b2d51)]['set'](_0x2e9e4f[_0x7c9b28(0x24c,0x1ea)],_0x3a217b[_0x25df09(-0x24d,-_0x5ec410._0xd4d724)+'ret']),_0x122a64[_0x25df09(_0x5ec410._0x4fb079,_0x5ec410._0x5d44d4)]();}function redactRelayWsUrl(_0x3096ca){const _0x116f63={_0x35d329:0x34c,_0x2a3c8b:0x34,_0xef4aa1:0x5d,_0x8e5266:0x142},_0x131d45={_0x278bf5:0x2f5};function _0x56628b(_0x497f49,_0x312380){return _0x9ec63e(_0x312380- -0x13f,_0x497f49);}const _0x3a7a14=new URL(_0x3096ca);_0x3a7a14['searchPa'+_0x56628b(_0x116f63._0x35d329,0x213)]['has']('token')&&_0x3a7a14['searchPa'+_0x1d63f7(_0x116f63._0x2a3c8b,_0x116f63._0xef4aa1)][_0x56628b(0x1f8,_0x116f63._0x8e5266)](_0x56628b(-0x1af,-0xad),_0x56628b(0x2a4,0x2d0)+'d>');function _0x1d63f7(_0x2bf099,_0xae9832){return _0x9ec63e(_0xae9832- -_0x131d45._0x278bf5,_0x2bf099);}return _0x3a7a14[_0x1d63f7(0x86,0xfe)]();}function normalizeText(_0x408946){const _0x29c1a0={_0x3b2766:0x450,_0x8a591:0x476,_0x37742b:0x54b,_0x21570d:0x458,_0x58b758:0x239,_0x50848a:0x1cd,_0x3cdf8c:0x193,_0x48815b:0x352,_0x567330:0x6,_0x59b55f:0x49,_0x1dce9b:0x11b,_0x113ee4:0x14a,_0x285e4:0x45e,_0x2de9f3:0x476,_0xc9d0da:0x5f,_0x11df70:0x107,_0x2bda23:0x3b9,_0xc5bbe2:0x352},_0x53c967={_0x16462b:0x332},_0x581c83={_0x289162:0xfb},_0x2d758c={};function _0x14c0bb(_0x1664b6,_0x1e0b99){return _0x431448(_0x1664b6,_0x1e0b99- -_0x581c83._0x289162);}_0x2d758c[_0x482781(_0x29c1a0._0x3b2766,_0x29c1a0._0x8a591)]='utf8',_0x2d758c[_0x482781(_0x29c1a0._0x37742b,_0x29c1a0._0x21570d)]=function(_0x305b62,_0x588841){return _0x305b62 instanceof _0x588841;};const _0x5df51e=_0x2d758c;if(typeof _0x408946===_0x14c0bb(0x1f6,_0x29c1a0._0x58b758))return _0x408946;if(Buffer[_0x14c0bb(0x38b,_0x29c1a0._0x50848a)](_0x408946))return _0x408946[_0x14c0bb(_0x29c1a0._0x3cdf8c,_0x29c1a0._0x48815b)](_0x5df51e[_0x14c0bb(_0x29c1a0._0x567330,_0x29c1a0._0x59b55f)]);if(Array['isArray'](_0x408946))return Buffer[_0x14c0bb(_0x29c1a0._0x1dce9b,_0x29c1a0._0x113ee4)](_0x408946)[_0x482781(0x5dd,0x77f)](_0x5df51e[_0x482781(_0x29c1a0._0x285e4,_0x29c1a0._0x2de9f3)]);if(_0x5df51e[_0x14c0bb(-_0x29c1a0._0xc9d0da,0x2b)](_0x408946,ArrayBuffer))return Buffer[_0x14c0bb(0x2f6,_0x29c1a0._0x11df70)](_0x408946)[_0x14c0bb(_0x29c1a0._0x2bda23,_0x29c1a0._0xc5bbe2)](_0x5df51e[_0x14c0bb(0x212,0x49)]);function _0x482781(_0x59848a,_0x5e5c44){return _0x431448(_0x59848a,_0x5e5c44-_0x53c967._0x16462b);}return null;}function normalizeBinary(_0x935f77){const _0x4547db={_0x14c483:0x4df,_0x55b952:0x1ac,_0x22d188:0x201,_0x38379b:0x625,_0x35b531:0x7c7,_0x3feedf:0x64e,_0x3cb575:0x531,_0x5aaf98:0xd3,_0xcff3bd:0x55f},_0x579a4b={_0x230bc8:0x12e},_0x464d5e={};_0x464d5e[_0x1956ec(_0x4547db._0x14c483,0x338)]=_0x176d69(_0x4547db._0x55b952,_0x4547db._0x22d188);function _0x176d69(_0xb903f6,_0x358eb3){return _0x9ec63e(_0xb903f6- -_0x579a4b._0x230bc8,_0x358eb3);}function _0x1956ec(_0x2fcad4,_0x108fdb){return _0x9ec63e(_0x2fcad4-0x3b7,_0x108fdb);}const _0x537bcd=_0x464d5e;if(Buffer[_0x1956ec(_0x4547db._0x38379b,_0x4547db._0x35b531)](_0x935f77))return _0x935f77;if(typeof _0x935f77===_0x537bcd[_0x176d69(-0x6,-0x14a)])return Buffer['from'](_0x935f77,_0x1956ec(0x55d,_0x4547db._0x3feedf));if(Array[_0x1956ec(_0x4547db._0x3cb575,0x3f1)](_0x935f77))return Buffer[_0x176d69(0xbd,-_0x4547db._0x5aaf98)](_0x935f77);return Buffer[_0x1956ec(_0x4547db._0xcff3bd,0x3e1)](_0x935f77);}function readRecentCliLogs(_0x3124a2){const _0x5c2862={_0x557af2:0xd4,_0x50194a:0x32,_0x4bb58:0x1c3,_0x18c3f0:0x1ab,_0x2283b8:0x33,_0x76de72:0x76,_0x4989b8:0x119,_0x55fb52:0x12d,_0x17f17a:0x1cc,_0x4b02c9:0x36,_0xbf8a6:0x3},_0x478d91={_0x23c644:0x1e6},_0x9ce8e={_0x34ace6:0x208},_0x52c256={'XfVKj':function(_0x50a546,_0x45c69e){return _0x50a546(_0x45c69e);},'hekvn':function(_0x1e85c7,_0x1bcecc){return _0x1e85c7!=_0x1bcecc;},'BGfdy':function(_0x12d39d,_0x26b67d){return _0x12d39d-_0x26b67d;},'IkfXN':function(_0x53f344,_0x5d3944){return _0x53f344==_0x5d3944;}},{logPath:_0x53cbe7,errorLogPath:_0x8fd634}=getServicePaths(),_0x3c75c2=_0x52c256['XfVKj'](clampLines,_0x3124a2?.['lines']??0xc8),_0x17fd4c=_0x3124a2?.[_0xce4e02(0x148,0x8)]??null;function _0x55f654(_0xb0360c,_0x433875){return _0x431448(_0x433875,_0xb0360c- -_0x9ce8e._0x34ace6);}const _0x55fcd2=_0x52c256[_0x55f654(_0x5c2862._0x557af2,-0x41)](_0x17fd4c,null)?_0x52c256[_0x55f654(_0x5c2862._0x50194a,-0x8a)](Date[_0x55f654(_0x5c2862._0x4bb58,0x271)](),_0x17fd4c):null,_0x1e2f14=[_0x53cbe7];function _0xce4e02(_0x34ee09,_0x23e2db){return _0x431448(_0x34ee09,_0x23e2db- -_0x478d91._0x23c644);}_0x3124a2?.[_0x55f654(_0x5c2862._0x18c3f0,0x26b)+_0x55f654(0x206,0x39c)]&&_0x1e2f14[_0x55f654(-_0x5c2862._0x2283b8,-_0x5c2862._0x76de72)](_0x8fd634);const _0x39448e=_0x1e2f14[_0xce4e02(-0x57,-_0x5c2862._0x4989b8)](_0x2090da=>readLogFile(_0x2090da)),_0xea14f0=_0x52c256[_0x55f654(0xef,0x191)](_0x55fcd2,null)?_0x39448e:_0x39448e[_0xce4e02(0x8f,-_0x5c2862._0x55fb52)](_0x3f4b73=>_0x3f4b73['ts']!=null&&_0x3f4b73['ts']>=_0x55fcd2);return _0xea14f0[_0xce4e02(_0x5c2862._0x17f17a,-_0x5c2862._0x4b02c9)](-_0x3c75c2)[_0x55f654(-_0x5c2862._0xbf8a6,0x146)](_0x1516e5=>_0x1516e5[_0x55f654(0xd8,0xf0)]);}async function buildDoctorReport(){const _0x4e6686={_0x8d8a49:0x10c,_0x1e171f:0x1a0,_0x3ae095:0x212,_0x146779:0x29a,_0xa0d3aa:0xff,_0x3f0d37:0x41,_0x62acf0:0x192,_0x3b3b63:0x1c5,_0x37ceb7:0x163,_0x20d228:0x1d0,_0x29f916:0x99,_0x5f3d36:0x1ed,_0x523917:0xfb,_0x43cce7:0x263,_0x90300c:0x96,_0x2fe318:0xbe,_0x1a727b:0xcd,_0x43cc3e:0x202,_0x33e529:0x46,_0x1ba42d:0x52,_0x3ed835:0x210},_0x2b2a1c={'pkJkO':function(_0xfdcdd5,_0x3669dc){return _0xfdcdd5(_0x3669dc);},'LMWzD':function(_0x5055de,_0x169769){return _0x5055de(_0x169769);}},_0x4bf490=readPairingConfig(),_0xe5dec=getServiceStatus(),_0x215d33=readOpenClawInfo();function _0x5c0b31(_0x3d2cc3,_0x1b9638){return _0x431448(_0x1b9638,_0x3d2cc3- -0x386);}const _0x5b2b3c=resolveGatewayUrl();function _0x5f27a7(_0x22e078,_0x3fe6ce){return _0x431448(_0x3fe6ce,_0x22e078- -0xa1);}const _0x41b02c=await checkGatewayReachable(_0x5b2b3c);return{'paired':_0x2b2a1c[_0x5f27a7(0xcd,-_0x4e6686._0x8d8a49)](Boolean,_0x4bf490),'gatewayId':_0x4bf490?.[_0x5f27a7(_0x4e6686._0x1e171f,0x19b)+'d']??null,'serverUrl':_0x4bf490?.[_0x5c0b31(-_0x4e6686._0x3ae095,-0x3a4)+'l']??null,'relayUrl':_0x4bf490?.[_0x5f27a7(_0x4e6686._0x146779,_0x4e6686._0xa0d3aa)]??null,'instanceId':_0x4bf490?.[_0x5f27a7(0x19e,0x2f0)+'Id']??null,'serviceInstalled':_0xe5dec[_0x5c0b31(_0x4e6686._0x3f0d37,_0x4e6686._0x62acf0)+'d'],'serviceRunning':_0xe5dec['running'],'serviceMethod':_0xe5dec[_0x5c0b31(0xde,0x13a)],'servicePath':_0xe5dec[_0x5c0b31(-_0x4e6686._0x3b3b63,-_0x4e6686._0x37ceb7)+_0x5f27a7(_0x4e6686._0x20d228,_0x4e6686._0x29f916)],'logPath':_0xe5dec[_0x5c0b31(-0x211,-0x15a)],'errorLogPath':_0xe5dec['errorLog'+_0x5c0b31(-0x183,-_0x4e6686._0x5f3d36)],'openclawConfigDir':getOpenClawConfigDir(),'openclawMediaDir':getOpenClawMediaDir(),'openclawConfigFound':_0x215d33[_0x5f27a7(_0x4e6686._0x523917,_0x4e6686._0x43cce7)+_0x5c0b31(-0x13b,-0x32e)],'openclawAuthMode':_0x215d33[_0x5c0b31(_0x4e6686._0x90300c,-_0x4e6686._0x2fe318)],'openclawTokenFound':_0x2b2a1c[_0x5f27a7(_0x4e6686._0x1a727b,_0x4e6686._0x43cc3e)](Boolean,_0x215d33[_0x5f27a7(0x4b,_0x4e6686._0x33e529)]),'openclawPasswordFound':_0x2b2a1c[_0x5c0b31(-0x148,-_0x4e6686._0x1ba42d)](Boolean,_0x215d33[_0x5c0b31(-_0x4e6686._0x3ed835,-0x78)]),'localGatewayUrl':_0x5b2b3c,'localGatewayReachable':_0x41b02c};}async function ensurePairPrerequisites(){const _0x6f8a1d={_0x91ec34:0x167,_0x4c32df:0x0,_0xf017e4:0x377,_0xeceb1f:0x316,_0x49e65f:0x550,_0x34d047:0x614,_0x496dac:0x371,_0x4bea85:0x3f6,_0x1ce388:0x3d7,_0x260ad0:0x522,_0x44c912:0x4bb,_0x4e8fc2:0x64e,_0x32f385:0x2c0,_0x2240aa:0x490,_0x23fcf9:0x2d0,_0x220e72:0x2d4,_0x1726f6:0x393},_0xb9975d={_0x2bde75:0x22d},_0x2fe721={_0x277b16:0xae},_0x4cfb5a=await buildDoctorReport(),_0x5b7797=listPairPrerequisiteFailures(_0x4cfb5a);function _0x1b3c5a(_0x10745f,_0x4ffe47){return _0x9ec63e(_0x10745f-_0x2fe721._0x277b16,_0x4ffe47);}if(_0x5b7797['length']>0x0)throw new Error([_0x1295f5(0x67a,0x667)+_0x1295f5(0x3b6,0x33c)+_0x1b3c5a(_0x6f8a1d._0x91ec34,_0x6f8a1d._0x4c32df)+_0x1b3c5a(_0x6f8a1d._0xf017e4,_0x6f8a1d._0xeceb1f)+_0x1295f5(_0x6f8a1d._0x49e65f,0x5d6)+_0x1295f5(0x444,_0x6f8a1d._0x34d047)+_0x1295f5(0x3c7,_0x6f8a1d._0x496dac)+_0x1295f5(0x58c,_0x6f8a1d._0x4bea85)+'tes\x20are\x20'+_0x1b3c5a(0x4e0,_0x6f8a1d._0x1ce388)+'y.',..._0x5b7797[_0x1295f5(0x1d7,0x3d8)](_0x3111ed=>'-\x20'+_0x3111ed),_0x1b3c5a(0x40c,0x359)+_0x1b3c5a(0x13b,-0x46)+_0x1b3c5a(0x493,0x2dc)+_0x1295f5(0x3e0,0x3ab)+_0x1295f5(_0x6f8a1d._0x260ad0,_0x6f8a1d._0x44c912)+_0x1295f5(0x4a6,_0x6f8a1d._0x4e8fc2)+_0x1295f5(0x32c,_0x6f8a1d._0x32f385)+_0x1295f5(0x727,0x583)+_0x1295f5(_0x6f8a1d._0x2240aa,0x2f5)+'y\x20if\x20you'+_0x1295f5(0x46e,_0x6f8a1d._0x23fcf9)+_0x1295f5(_0x6f8a1d._0x220e72,_0x6f8a1d._0x1726f6)+'ant\x20to\x20b'+'ypass\x20th'+_0x1295f5(0x609,0x582)+_0x1b3c5a(0x4e4,0x55a)]['join']('\x0a'));function _0x1295f5(_0x4836cc,_0x116f1e){return _0x9ec63e(_0x116f1e-_0xb9975d._0x2bde75,_0x4836cc);}return _0x4cfb5a;}function listPairPrerequisiteFailures(_0x136c82){const _0x15c326={_0x5ccf02:0x523,_0x40ab49:0x5e1,_0x1c0ef9:0x71e,_0x3a780b:0x692,_0xd93c89:0x34c,_0xcdd66a:0x7c5,_0x4075d3:0x60e,_0x596398:0x3ab,_0x55000f:0x4bd,_0x484f51:0x55f,_0x34ea48:0x6a2,_0x20b529:0x4d8,_0x5e293c:0x647,_0x3e7d98:0x613,_0x2a0a03:0x636,_0x2d58dd:0x874,_0x31aa9f:0x848,_0x4f5481:0x63a,_0x449c75:0x5d6,_0x4fc9ee:0x652,_0x2e3de7:0x5a9,_0x57066f:0x65d,_0x18b982:0x5a3,_0x2202e0:0x652,_0x5d6fad:0x5b7,_0x3eeaf8:0x6ba,_0x5a577f:0x645,_0x5f2cf5:0x390,_0x37473d:0x5e1,_0x4d79b7:0x74b,_0x3d56e5:0x77a,_0x152417:0x775,_0x500741:0x577,_0x5ddb8e:0x6be,_0x14afb3:0x703,_0x8feb60:0x4e3,_0x1dc1c8:0x40b,_0xbcf632:0x6ba,_0x25fd5c:0x876,_0x208598:0x681,_0x5a0d77:0x495,_0x3b2054:0x601,_0x3898d7:0x690,_0x4870ea:0x67c,_0x7520a8:0x487,_0xfc78d7:0x4f4,_0x183a73:0x39d,_0x1f440a:0x566,_0x12f772:0x4de,_0x43b017:0x695,_0x242d92:0x381,_0x41eedf:0x484,_0x56ba3e:0x6f1},_0x2fbd75={_0x17b59d:0x36e},_0xa615c0={_0x46fce4:0x379},_0x20c410={};_0x20c410[_0x1fcdab(_0x15c326._0x5ccf02,_0x15c326._0x40ab49)]=function(_0x207a67,_0x25dd9f){return _0x207a67==_0x25dd9f;},_0x20c410['VzzkO']='OpenClaw'+_0x1fcdab(_0x15c326._0x1c0ef9,_0x15c326._0x3a780b)+'h\x20gatewa'+_0x21b601(0x752,0x696)+_0x21b601(_0x15c326._0xd93c89,0x462)+_0x21b601(_0x15c326._0xcdd66a,0x758)+'figured,'+_0x21b601(0x5e6,0x6f6)+_0x1fcdab(0x744,0x79b)+'h.mode\x20i'+_0x21b601(0x7c3,_0x15c326._0x4075d3);const _0x353e4a=_0x20c410;function _0x1fcdab(_0x263b43,_0x4adf71){return _0x9ec63e(_0x4adf71-_0xa615c0._0x46fce4,_0x263b43);}const _0xf15261=[];!_0x136c82['openclaw'+_0x21b601(_0x15c326._0x596398,0x3c1)+_0x21b601(_0x15c326._0x55000f,_0x15c326._0x484f51)]&&_0xf15261['push'](_0x1fcdab(_0x15c326._0x34ea48,_0x15c326._0x20b529)+_0x21b601(_0x15c326._0x5e293c,_0x15c326._0x3e7d98)+_0x1fcdab(0x79b,0x6e9)+_0x1fcdab(0x5be,_0x15c326._0x2a0a03)+_0x21b601(0x4bc,0x641)+'penclaw/'+'.');_0x136c82['openclaw'+_0x21b601(_0x15c326._0x2d58dd,0x6ba)+'nd']&&_0x136c82[_0x21b601(_0x15c326._0x31aa9f,_0x15c326._0x5e293c)+'Password'+_0x21b601(_0x15c326._0x5e293c,_0x15c326._0x4f5481)]&&_0x353e4a[_0x21b601(0x56e,_0x15c326._0x449c75)](_0x136c82[_0x1fcdab(0x5c6,_0x15c326._0x4fc9ee)+_0x1fcdab(_0x15c326._0x2e3de7,0x703)],null)&&_0xf15261[_0x21b601(_0x15c326._0x57066f,0x4e9)](_0x353e4a['VzzkO']);!_0x136c82[_0x1fcdab(_0x15c326._0x18b982,_0x15c326._0x2202e0)+_0x21b601(_0x15c326._0x5d6fad,_0x15c326._0x3eeaf8)+'nd']&&!_0x136c82['openclaw'+_0x21b601(0x846,0x726)+_0x1fcdab(0x724,_0x15c326._0x5a577f)]&&_0xf15261['push'](_0x21b601(_0x15c326._0x5f2cf5,0x4cd)+_0x1fcdab(_0x15c326._0x37473d,_0x15c326._0x4d79b7)+'\x20auth\x20is'+'\x20missing'+_0x1fcdab(0x6f0,0x680)+_0x21b601(_0x15c326._0x3d56e5,0x6ed)+_0x1fcdab(_0x15c326._0x152417,_0x15c326._0x500741));_0x136c82[_0x1fcdab(0x772,0x652)+_0x1fcdab(_0x15c326._0x5ddb8e,_0x15c326._0x14afb3)]===_0x1fcdab(_0x15c326._0x8feb60,_0x15c326._0x1dc1c8)&&!_0x136c82[_0x21b601(0x761,0x647)+_0x21b601(0x6dd,_0x15c326._0xbcf632)+'nd']&&_0xf15261[_0x21b601(0x3eb,0x4e9)](_0x21b601(0x417,0x4cd)+'\x20gateway'+'\x20token\x20i'+_0x1fcdab(_0x15c326._0x25fd5c,0x6d3)+'g.');function _0x21b601(_0x17dc14,_0x54e1f9){return _0x9ec63e(_0x54e1f9-_0x2fbd75._0x17b59d,_0x17dc14);}return _0x136c82[_0x21b601(_0x15c326._0x208598,0x647)+_0x21b601(0x8c8,0x6f8)]===_0x1fcdab(0x3f1,_0x15c326._0x5a0d77)&&!_0x136c82[_0x21b601(_0x15c326._0x3b2054,0x647)+'Password'+_0x21b601(0x49b,0x63a)]&&_0xf15261[_0x1fcdab(0x3eb,0x4f4)]('OpenClaw'+_0x21b601(0x7c8,0x740)+_0x1fcdab(0x5e7,_0x15c326._0x3898d7)+_0x21b601(0x72a,_0x15c326._0x4870ea)+'sing.'),!_0x136c82['localGat'+_0x21b601(0x754,0x5c7)+_0x1fcdab(0x40f,_0x15c326._0x7520a8)]&&_0xf15261[_0x1fcdab(0x6f0,_0x15c326._0xfc78d7)]('Local\x20Op'+_0x1fcdab(_0x15c326._0x183a73,_0x15c326._0x1f440a)+'ateway\x20i'+_0x21b601(0x600,0x5ba)+_0x21b601(_0x15c326._0x12f772,_0x15c326._0x43b017)+'at\x20'+_0x136c82[_0x21b601(_0x15c326._0x242d92,_0x15c326._0x41eedf)+_0x1fcdab(_0x15c326._0x56ba3e,0x685)]+'.'),_0xf15261;}function readLogFile(_0x2e4276){const _0x36d3ed={_0x42e352:0x1a2,_0x4b0335:0x17b,_0x113cf5:0x1e2,_0xe7b607:0xdf},_0x3deb77={_0x2a49e2:0x321},_0x412e79={_0x8aee1b:0xcc};function _0x373c54(_0x2e685f,_0x2d25a1){return _0x9ec63e(_0x2d25a1- -_0x412e79._0x8aee1b,_0x2e685f);}function _0x54ec7c(_0x24013e,_0x28d151){return _0x9ec63e(_0x28d151- -_0x3deb77._0x2a49e2,_0x24013e);}try{const _0x4b1586=_0x236477(_0x2e4276,_0x54ec7c(-_0x36d3ed._0x42e352,-_0x36d3ed._0x4b0335));return _0x4b1586[_0x373c54(-_0x36d3ed._0x113cf5,0x4)](/\r?\n/)['filter'](Boolean)[_0x373c54(-0xcf,_0x36d3ed._0xe7b607)](_0x2d7a9d=>({'raw':_0x2d7a9d,'ts':parseTimestamp(_0x2d7a9d)}));}catch{return[];}}function parseTimestamp(_0x5884b0){const _0xd89023={_0x3a0c54:0xf,_0x19ef4f:0x31},_0x29c210={_0x226497:0xc9};function _0x437e4(_0x5f208c,_0x5852bd){return _0x431448(_0x5f208c,_0x5852bd- -0x27a);}const _0x143ea0=_0x5884b0[_0x437e4(0x1,0xfa)](/^\[(\d{13})\]\s/);function _0x45d3e6(_0x10d3e8,_0x2eafc3){return _0x431448(_0x10d3e8,_0x2eafc3-_0x29c210._0x226497);}if(!_0x143ea0)return null;const _0x203cdf=Number(_0x143ea0[0x1]);return Number[_0x437e4(-_0xd89023._0x3a0c54,-_0xd89023._0x19ef4f)](_0x203cdf)?_0x203cdf:null;}function clampLines(_0x582e00){const _0x480f27={_0x599db9:0x2f3,_0x1c62e8:0x4e7,_0x30aadc:0x630,_0x57b7f3:0x34d},_0x22e525={_0x51338b:0x2c2};function _0x509b1d(_0x57ea26,_0x55baa5){return _0x9ec63e(_0x57ea26-0x26f,_0x55baa5);}if(!Number['isFinite'](_0x582e00))return 0xc8;function _0x336627(_0x4d2308,_0x5a1b2d){return _0x9ec63e(_0x5a1b2d-_0x22e525._0x51338b,_0x4d2308);}return Math[_0x509b1d(_0x480f27._0x599db9,_0x480f27._0x1c62e8)](0x1,Math[_0x509b1d(0x452,_0x480f27._0x30aadc)](0x7d0,Math[_0x336627(_0x480f27._0x57b7f3,0x371)](_0x582e00)));}async function checkGatewayReachable(_0x3df930){const _0x595dcc={_0x679271:0x33f,_0x1d12c9:0x33b,_0x581278:0x2aa,_0x377428:0x141,_0x351222:0x16a,_0x4ebaf3:0x1c2},_0x94282={_0x5e08a2:0x460,_0x55cb11:0x4b3,_0x4df121:0x643},_0x57dd8c={_0x56ddfb:0x4f4},_0x210217={_0x3c0189:0x2e1,_0x4644e9:0x396,_0x664d65:0x24f},_0x1dbb1f={_0x3e79e8:0x23c},_0x5f5267={_0x5478e1:0x22d};function _0x6eb4b4(_0x2950d3,_0x5b14e9){return _0x9ec63e(_0x2950d3-_0x5f5267._0x5478e1,_0x5b14e9);}const _0x11aedf={'naPxm':function(_0xcb396e){return _0xcb396e();},'zYJUq':function(_0x52b7f5,_0x25ea1d){return _0x52b7f5(_0x25ea1d);},'PjGSm':_0x6eb4b4(0x47d,0x4c4)};function _0x1d3d74(_0x37c187,_0x37e79b){return _0x9ec63e(_0x37e79b- -_0x1dbb1f._0x3e79e8,_0x37c187);}try{const _0x2d9611=new URL(_0x3df930),_0x1d090a=_0x2d9611[_0x6eb4b4(_0x595dcc._0x679271,_0x595dcc._0x1d12c9)]||_0x1d3d74(-_0x595dcc._0x581278,-_0x595dcc._0x377428)+'1',_0x5357d7=_0x2d9611[_0x1d3d74(_0x595dcc._0x351222,_0x595dcc._0x4ebaf3)]?Number(_0x2d9611[_0x1d3d74(0x20d,_0x595dcc._0x4ebaf3)]):_0x2d9611['protocol']===_0x11aedf['PjGSm']?0x1bb:0x50;return await new Promise((_0x531446,_0x261d50)=>{const _0x7f83df={_0x439bda:0x477},_0x402734={_0x1b86a5:0x29c},_0x1c7b9a={_0x11a168:0x490},_0x449882={_0x21802c:0x4da,_0x519f30:0x109},_0x258c34={_0x2bd0fd:0x22f},_0x22c93c={_0x277459:0x573,_0x10a20a:0x66e},_0x5203c5={'GXeLf':function(_0x2914c4,_0x299185){function _0x41577b(_0x1e01d2,_0x19ffc2){return _0x1bf0(_0x1e01d2-0x2f1,_0x19ffc2);}return _0x11aedf[_0x41577b(_0x22c93c._0x277459,_0x22c93c._0x10a20a)](_0x2914c4,_0x299185);}},_0x3d23cc=new Socket();_0x3d23cc[_0x6de274(_0x94282._0x5e08a2,0x3ea)+'ut'](0x384),_0x3d23cc['once']('connect',()=>{const _0x2f8280={_0x58d97a:0x48a};function _0x4419de(_0x53323a,_0x2f2445){return _0x6de274(_0x53323a- -_0x2f8280._0x58d97a,_0x2f2445);}_0x3d23cc[_0x30dea0(0x1b3,_0x210217._0x3c0189)]();function _0x30dea0(_0x13929a,_0x125722){return _0x6de274(_0x125722- -_0x258c34._0x2bd0fd,_0x13929a);}_0x11aedf[_0x30dea0(_0x210217._0x4644e9,_0x210217._0x664d65)](_0x531446);}),_0x3d23cc[_0x4ee6d9(0x549,0x3e9)]('timeout',()=>{const _0x5ad6ad={_0x28f49a:0x1a5};_0x3d23cc[_0x3865ef(_0x449882._0x21802c,0x6d7)]();function _0x3865ef(_0x4e75f4,_0x517538){return _0x4ee6d9(_0x517538,_0x4e75f4-_0x5ad6ad._0x28f49a);}function _0x2bbd40(_0x49169d,_0x19c86a){return _0x4ee6d9(_0x19c86a,_0x49169d- -0x343);}_0x261d50(new Error(_0x2bbd40(_0x449882._0x519f30,0x19)));}),_0x3d23cc[_0x6de274(0x5c4,_0x94282._0x55cb11)]('error',_0x187775=>{function _0x15529c(_0x340e55,_0x2e52aa){return _0x6de274(_0x2e52aa- -0x1c,_0x340e55);}_0x3d23cc[_0x15529c(0x666,_0x57dd8c._0x56ddfb)]();function _0xdff93f(_0x5aeaf8,_0x5abb15){return _0x6de274(_0x5aeaf8- -_0x1c7b9a._0x11a168,_0x5abb15);}_0x5203c5[_0xdff93f(0x1ed,0x224)](_0x261d50,_0x187775);});function _0x4ee6d9(_0x9efe4b,_0x398f7f){return _0x1d3d74(_0x9efe4b,_0x398f7f-_0x402734._0x1b86a5);}function _0x6de274(_0x44f08f,_0x3dce8b){return _0x1d3d74(_0x3dce8b,_0x44f08f-_0x7f83df._0x439bda);}_0x3d23cc[_0x6de274(_0x94282._0x4df121,0x81d)](_0x5357d7,_0x1d090a);}),!![];}catch{return![];}}function parseLookbackToMs(_0x1bdd34){const _0x59dd99={_0x1cbad6:0x4a,_0x37c8f7:0x1cd,_0x1d2bf4:0x43,_0x37fa9d:0x143,_0x564784:0x1fc,_0xd35336:0x2a8,_0x22e0d1:0x4,_0xc51107:0xd6,_0x7df9b9:0x3cc},_0x4fb636={_0x568e1b:0x2d7},_0x301f6f={};_0x301f6f[_0x3089ac(-_0x59dd99._0x1cbad6,-0x82)]=function(_0x15ee42,_0x1ea4dd){return _0x15ee42===_0x1ea4dd;};const _0x1dba5f=_0x301f6f,_0x27a802=_0x1bdd34?.[_0x38defc(0x391,_0x59dd99._0x37c8f7)]();function _0x3089ac(_0x61dee7,_0x427782){return _0x9ec63e(_0x61dee7- -_0x4fb636._0x568e1b,_0x427782);}if(!_0x27a802)return null;const _0x36b869=_0x27a802[_0x3089ac(_0x59dd99._0x1d2bf4,-_0x59dd99._0x37fa9d)](/^(\d+)(ms|s|m|h|d)$/i);if(!_0x36b869)throw new Error(_0x3089ac(-_0x59dd99._0x564784,-0x13b)+'--last\x20v'+_0x3089ac(-0x109,-_0x59dd99._0xd35336)+_0x27a802+(_0x3089ac(-0x222,-0x329)+'alues\x20li'+_0x3089ac(-0x79,-0x10f)+_0x38defc(0x18f,_0x59dd99._0x22e0d1)+_0x3089ac(-_0x59dd99._0xc51107,-0x133)));const _0x554b6e=Number(_0x36b869[0x1]),_0x5a447c=_0x36b869[0x2]['toLowerC'+_0x38defc(_0x59dd99._0x7df9b9,0x268)](),_0x36efa0=_0x5a447c==='ms'?0x1:_0x1dba5f['UORkA'](_0x5a447c,'s')?0x3e8:_0x5a447c==='m'?0xea60:_0x5a447c==='h'?0x36ee80:0x5265c00;function _0x38defc(_0x5be1a6,_0x418a33){return _0x9ec63e(_0x5be1a6-0xc2,_0x418a33);}return _0x554b6e*_0x36efa0;}import{readFileSync as _0x500803}from'fs';import{dirname as _0x5a8ef5,resolve}from'path';import{fileURLToPath}from'url';function readCliVersion(){const _0x262366={_0x5b96fc:0x4ab,_0x64cf44:0x23d,_0x2a1092:0x359,_0x4584e9:0x419,_0x52e376:0x303},_0x4632cb={_0x294d20:0x26},_0xd418e6={_0x4a62ff:0xdb},_0x54cc45={'fuQzh':function(_0x524735,_0x399997){return _0x524735(_0x399997);},'DAhrK':function(_0x5286f2,_0x1803eb,_0x506539){return _0x5286f2(_0x1803eb,_0x506539);},'lbcQu':_0x41800f(0x2db,_0x262366._0x5b96fc)},_0x3816ef=_0x5a8ef5(_0x54cc45['fuQzh'](fileURLToPath,import.meta.url)),_0x256208=_0x54cc45['DAhrK'](resolve,_0x3816ef,_0x41800f(_0x262366._0x64cf44,0x16b)+_0x3a6105(_0x262366._0x2a1092,0x197));function _0x41800f(_0x6b87aa,_0x178ffd){return _0x431448(_0x178ffd,_0x6b87aa-_0xd418e6._0x4a62ff);}const _0x1bcc72=_0x500803(_0x256208,_0x54cc45[_0x41800f(_0x262366._0x4584e9,_0x262366._0x52e376)]);function _0x3a6105(_0x261056,_0x1520b8){return _0x431448(_0x1520b8,_0x261056- -_0x4632cb._0x294d20);}const _0x48a331=JSON['parse'](_0x1bcc72);return _0x48a331['version']??'unknown';}function buildPairingJson(_0x161a76,_0x33f3bd,_0x2b7400,_0xe4e3c4){const _0x11fc5d={_0xe4c060:0x775,_0x306821:0x611,_0x395bf1:0x759,_0x39a88f:0x4a2,_0x5d1b7c:0x5a6,_0x360203:0x9f7,_0x5cbe84:0x5b0,_0x56a88b:0x57a,_0x47cdae:0x585,_0x41b2b7:0x54c,_0x16f8fb:0x5db,_0x533aab:0x448,_0x4b9178:0x436,_0x24f499:0x82d,_0x46e9db:0x749,_0x63c986:0x6f2,_0x181cfb:0x6e9,_0x255436:0x884,_0x1904de:0x4d9,_0x25793b:0x33d,_0x4f1c6a:0x53b,_0x370879:0x657,_0x5da84c:0x654,_0x4fbfa1:0x3ce,_0xe710cc:0x61f,_0x2cd550:0x439,_0x4f11b4:0x798,_0x5e008c:0x5f6},_0x2c81f8={_0x484f4e:0x3ae},_0x2ca9b3={};_0x2ca9b3[_0x1e7e3d(_0x11fc5d._0xe4c060,_0x11fc5d._0x306821)+'d']=_0x2b7400[_0x1e7e3d(_0x11fc5d._0xe4c060,_0x11fc5d._0x395bf1)+'d'],_0x2ca9b3[_0x16e19d(0x4f9,0x3ee)]=_0x2b7400[_0x1e7e3d(_0x11fc5d._0x39a88f,_0x11fc5d._0x5d1b7c)],_0x2ca9b3[_0x1e7e3d(0x812,_0x11fc5d._0x360203)]=_0x2b7400['method'],_0x2ca9b3['serviceP'+_0x1e7e3d(0x61f,0x679)]=_0x2b7400[_0x16e19d(0x5c6,0x51a)+'ath'];function _0x1e7e3d(_0x5e0577,_0x3aaf69){return _0x431448(_0x3aaf69,_0x5e0577-_0x2c81f8._0x484f4e);}_0x2ca9b3[_0x16e19d(0x57a,_0x11fc5d._0x5cbe84)]=_0x2b7400[_0x16e19d(_0x11fc5d._0x56a88b,_0x11fc5d._0x47cdae)],_0x2ca9b3['errorLog'+_0x1e7e3d(0x5b1,_0x11fc5d._0x41b2b7)]=_0x2b7400['errorLog'+_0x16e19d(0x608,_0x11fc5d._0x16f8fb)],_0x2ca9b3[_0x16e19d(0x49f,0x360)]=_0x2b7400[_0x1e7e3d(_0x11fc5d._0x533aab,_0x11fc5d._0x4b9178)];const _0x17f5f6={};_0x17f5f6['ok']=!![],_0x17f5f6['action']=_0x161a76['action'],_0x17f5f6['message']=_0xe4e3c4,_0x17f5f6[_0x1e7e3d(0x5ef,0x583)+'d']=_0x161a76[_0x1e7e3d(_0x11fc5d._0x24f499,_0x11fc5d._0x46e9db)][_0x16e19d(0x646,_0x11fc5d._0x63c986)+'d'],_0x17f5f6[_0x1e7e3d(_0x11fc5d._0x181cfb,0x7a4)]=_0x161a76[_0x16e19d(_0x11fc5d._0x255436,0x966)][_0x1e7e3d(0x6e9,0x622)],_0x17f5f6[_0x16e19d(0x579,0x632)+'l']=_0x161a76[_0x1e7e3d(0x82d,0x9e2)][_0x1e7e3d(0x522,0x545)+'l'],_0x17f5f6['instance'+'Id']=_0x161a76[_0x1e7e3d(0x82d,0x8d2)]['instance'+'Id'],_0x17f5f6[_0x16e19d(_0x11fc5d._0x1904de,0x568)+'de']=_0x161a76['accessCo'+'de'],_0x17f5f6[_0x16e19d(0x4d9,_0x11fc5d._0x25793b)+_0x16e19d(0x535,_0x11fc5d._0x4f1c6a)+_0x1e7e3d(_0x11fc5d._0x370879,0x601)]=_0x161a76['accessCo'+_0x16e19d(0x535,0x3b0)+_0x16e19d(0x6ae,_0x11fc5d._0x5da84c)],_0x17f5f6[_0x16e19d(0x4de,_0x11fc5d._0x4fbfa1)+_0x1e7e3d(_0x11fc5d._0xe710cc,_0x11fc5d._0x2cd550)]=_0x33f3bd,_0x17f5f6[_0x1e7e3d(_0x11fc5d._0x4f11b4,_0x11fc5d._0x5e008c)]=_0x2ca9b3;function _0x16e19d(_0x27f607,_0x1cc8d2){return _0x431448(_0x1cc8d2,_0x27f607-0x405);}return _0x17f5f6;}import{mkdirSync as _0x41762f,writeFileSync as _0x47d3ab}from'fs';import{dirname as _0x497424,isAbsolute,join as _0x13ee84,resolve as _0x37838e}from'path';import _0x142aec from'qrcode';var DEFAULT_QR_DIR=getOpenClawMediaDir();async function writePairingQrPng(_0x1a74f0,_0x2695b4){const _0x37ca76={_0x498fc0:0xae,_0x1b451b:0xc8,_0x4a4eda:0x1f6,_0x5bce00:0x244,_0x219cbf:0xe6,_0x217969:0xbf,_0x4d2abd:0x102,_0x3d39ef:0x1b3,_0x3a4250:0x110,_0x23e725:0x8,_0x4330e9:0x1a1},_0x52e599={_0x15f979:0x1b0},_0x2d15e8=resolveQrOutputPath(_0x1a74f0,_0x2695b4),_0x45397a={};_0x45397a[_0x3253c0(-0x119,-0x1f9)+'e']=!![],_0x41762f(_0x497424(_0x2d15e8),_0x45397a);const _0x295e95={};_0x295e95[_0x3253c0(0x181,_0x37ca76._0x498fc0)]=_0x2c16de(0x114,-0x6)+'g',_0x295e95[_0x2c16de(-_0x37ca76._0x1b451b,-_0x37ca76._0x4a4eda)+_0x2c16de(0x255,_0x37ca76._0x5bce00)+_0x3253c0(0x132,0xa2)]='M';function _0x2c16de(_0x19875c,_0x56c825){return _0x9ec63e(_0x19875c- -_0x52e599._0x15f979,_0x56c825);}_0x295e95['margin']=0x1,_0x295e95[_0x3253c0(-_0x37ca76._0x219cbf,_0x37ca76._0x217969)]=0x2d0;function _0x3253c0(_0x33360d,_0x92aff5){return _0x9ec63e(_0x92aff5- -0x2a2,_0x33360d);}const _0x35b93c=await _0x142aec['toDataUR'+'L'](_0x1a74f0[_0x3253c0(-_0x37ca76._0x4d2abd,-_0x37ca76._0x3d39ef)+'d'],_0x295e95),_0x15450d=_0x35b93c[_0x2c16de(0x12f,_0x37ca76._0x3a4250)](/^data:image\/png;base64,/,'');return _0x47d3ab(_0x2d15e8,Buffer[_0x2c16de(-_0x37ca76._0x23e725,_0x37ca76._0x4330e9)](_0x15450d,'base64')),_0x2d15e8;}function resolveQrOutputPath(_0x946228,_0xa1be00){const _0x246238={_0x50a8a7:0x3e6,_0x3d5d0f:0x480,_0x312261:0x400,_0x3f0040:0xe0,_0x5ce7ef:0x1c2,_0x219473:0x25f,_0xc02fcf:0x3f2},_0x8171d2={'MgIlx':function(_0xfde867,_0x20eecc){return _0xfde867(_0x20eecc);}},_0x59e2e8=_0xa1be00?.[_0x581a6(_0x246238._0x50a8a7,0x4b4)]();if(_0x59e2e8)return isAbsolute(_0x59e2e8)?_0x59e2e8:_0x8171d2[_0x581a6(_0x246238._0x3d5d0f,0x677)](_0x37838e,_0x59e2e8);function _0x5bb126(_0x23c197,_0xe5d662){return _0x431448(_0x23c197,_0xe5d662- -0x7f);}function _0x581a6(_0x2d2a82,_0xda115f){return _0x431448(_0xda115f,_0x2d2a82-0xbd);}return _0x13ee84(DEFAULT_QR_DIR,_0x946228[_0x5bb126(0x2cd,_0x246238._0x312261)][_0x5bb126(_0x246238._0x3f0040,_0x246238._0x5ce7ef)+'d']+_0x5bb126(_0x246238._0x219473,_0x246238._0xc02fcf));}function decidePairServiceAction(_0x1e6763,_0x2c23c5){const _0x2e0cc3={_0xf9bb56:0x237,_0x5e2db0:0x9c,_0x34e97a:0x2c4,_0x3fe1ab:0x1a0,_0x42782a:0xb5,_0x5d6697:0x306,_0x1797c0:0x293,_0x33a984:0x301,_0x1cb476:0x1bb,_0x479fb4:0x3c},_0x34210b={_0x11b5bf:0x3f},_0x19c302={_0x7c0109:0x36e};function _0x3c0c7a(_0x18963f,_0x2952c2){return _0x431448(_0x2952c2,_0x18963f- -_0x19c302._0x7c0109);}const _0x22971f={};_0x22971f[_0x3c0c7a(-0x10e,-0x264)]='install';function _0x23ac1f(_0x4af375,_0x36e0d6){return _0x431448(_0x4af375,_0x36e0d6- -_0x34210b._0x11b5bf);}_0x22971f[_0x23ac1f(_0x2e0cc3._0xf9bb56,_0x2e0cc3._0x5e2db0)]=function(_0x4acb89,_0x13d7c9){return _0x4acb89===_0x13d7c9;},_0x22971f[_0x23ac1f(_0x2e0cc3._0x34e97a,0x215)]='restart';const _0x3921c5=_0x22971f;if(!_0x2c23c5['installe'+'d'])return _0x3921c5[_0x23ac1f(_0x2e0cc3._0x3fe1ab,0x221)];if(!_0x2c23c5[_0x23ac1f(0x211,_0x2e0cc3._0x42782a)])return _0x23ac1f(_0x2e0cc3._0x5d6697,0x1db);if(_0x3921c5[_0x3c0c7a(-_0x2e0cc3._0x1797c0,-_0x2e0cc3._0x33a984)](_0x1e6763['action'],_0x3c0c7a(0x66,_0x2e0cc3._0x1cb476)+'ed'))return _0x3921c5[_0x23ac1f(0x3b2,0x215)];return _0x3c0c7a(-0x1e8,-_0x2e0cc3._0x479fb4);}async function main(){const _0x111053={_0x132558:0x59,_0xf8b231:0xa4,_0x107870:0x265,_0x2baaeb:0x1a2,_0x1b5531:0x4ca,_0x325de6:0x41d,_0x25c572:0x18b,_0x358ee5:0xa0,_0x3f03b9:0xce,_0x4203d4:0x206,_0x3c0efc:0x3c7,_0x210e97:0x244,_0x33fb7d:0x154,_0x2800c8:0xc5,_0x31b83e:0x304,_0x32ec66:0x799,_0x48c3da:0x4b,_0x33b0eb:0x161,_0x141e1d:0x12a,_0x2e9794:0x1f1,_0x1503d2:0xe5,_0x41aeb1:0xd1,_0xf157bd:0x588,_0x1e2211:0x15a,_0x2b29aa:0xa7,_0x5b1e1b:0x346,_0x1b55f5:0x37e,_0x15edfd:0x56a,_0x294ae6:0x16e,_0x2cbf23:0x2f6,_0x5d23df:0x3de,_0x3ed30d:0x167,_0x4b349f:0x9e,_0x27302a:0x6d,_0x2caa56:0x9a,_0x35266c:0x34b,_0x5206c5:0x42c,_0x350b24:0x12b,_0x9356bb:0xbb,_0x37b615:0x1b8,_0x19718f:0x145,_0x5c8ec5:0x12b,_0x29805e:0xf1,_0x5a8390:0x2f2,_0x4e2a1f:0x1bd,_0x1eceff:0x232,_0x34160c:0x20c,_0x57c8ea:0x158,_0x1b7e00:0x4da,_0x15c8bd:0x577,_0xc62f8a:0x226,_0x2b15df:0x374,_0x5971d2:0x5f,_0x3bc515:0xc,_0x104c2e:0x6d6,_0x5a5dbb:0x60f,_0x47567c:0x392,_0xdaa111:0x236,_0xc39fd9:0x53c,_0x10b9f4:0x719,_0x4369f5:0x118,_0x25d923:0xf2,_0x262960:0x406,_0x223343:0x5e9,_0x3e6ef8:0xd8,_0x487754:0x49,_0x517f74:0xbd,_0x2ba9e0:0x2d7,_0x296222:0x43,_0x4f3715:0xb3,_0x735e21:0x5cf,_0x210a71:0x1a3,_0x41066c:0x1c3,_0x12cf65:0x4,_0x410689:0x569,_0x2a37ce:0x7af,_0x3b5fb0:0x44c,_0x2b1be9:0xec,_0x59eff6:0x2c0,_0xb6dc45:0x5fa,_0x4dc23d:0x4a0,_0x1b9908:0x1d6,_0x350ffd:0x1c4,_0x49c2a4:0x6f3,_0x148b2:0x680,_0xf47aa3:0x414,_0x1e6942:0x153,_0x4f7cc6:0x365,_0xd3161d:0x53d,_0x54c0a4:0x5df,_0x2bf266:0x705,_0x204fb5:0x1e2,_0x2d4057:0xb2,_0x372c4a:0x636,_0x419b04:0x1d,_0x5ba2c6:0x44d,_0x452270:0x48e,_0x991c4:0x41a,_0x7c5acf:0x4e0,_0x5910ff:0x1d,_0x49b156:0x260,_0x2c0b05:0x62d,_0x24d20d:0x6ec,_0x114cbf:0x1f,_0xe82af7:0x13e,_0x12b861:0x126,_0xbcd970:0x6f,_0x2cf936:0x7b,_0x6a5aa6:0x3d,_0x533ece:0x18e,_0x340885:0x342,_0x5b9509:0x386,_0x264852:0x16,_0x377a89:0x11c,_0x2ee631:0xcf,_0x5e1af1:0x2c1,_0x3a2d31:0x29a,_0x95220b:0x336,_0xf8d3c:0x247,_0x229a14:0xc8,_0x4c2f1d:0x45f,_0x338e14:0xe4,_0x428718:0x576,_0x285025:0x461,_0x14b251:0x20a,_0x507f04:0x17a,_0x501b97:0x274,_0x53bfae:0x1c9,_0x4a73b6:0xfa,_0xe4599a:0x22a,_0x56a74e:0x185,_0x4eb03a:0x1b3,_0x5880e7:0x18f,_0x7d3f16:0x461,_0x5caef2:0x44d,_0x28eba7:0x5cb,_0x522933:0x299,_0x1bf00f:0x449,_0x312b7c:0x1de,_0x33d7b3:0x306,_0x1691b7:0xd5,_0x23481e:0xe3,_0x2147f9:0xd4,_0x264d25:0x56,_0x1126e4:0x2a5,_0x498287:0x1d,_0x2c2182:0x3,_0x5ef3b3:0x352,_0x37aab7:0x479,_0x1e981c:0x64f},_0x5537c5={_0x45fe32:0x96,_0x3edee9:0x45,_0x329eaf:0x14e,_0x44b344:0x316,_0x1a43a4:0x73,_0x5b38eb:0x42,_0x37329b:0x162,_0x31f88c:0x2e9},_0x172ec0={_0x1aaf4a:0x459},_0x17f057={_0x1836eb:0x233,_0x5e04ee:0xe7,_0x17d37e:0x1e1,_0x139921:0xf8,_0x55c648:0xe1,_0xce9421:0x1,_0x1708a0:0x22f,_0x59cce1:0x568,_0xce0d89:0x153,_0x2a4d4c:0x4b5,_0x2188ed:0x2b2,_0x2c2f34:0xdf,_0xcfd75c:0x1b6,_0x26ee98:0x310},_0x45658e={_0x5a54b7:0x2bb},_0x3ecd8c={_0x9d0e65:0x31d,_0x17fa21:0x3db,_0x4859a3:0x561,_0x2dbd10:0x665,_0x16ea5e:0x6aa,_0x29528a:0x4fc,_0x713e65:0x241,_0x153065:0x7a,_0x2136a0:0xbb,_0xd20ae7:0x131,_0x48d22d:0x26c,_0x102970:0xca,_0x33191d:0x168,_0x344152:0x1f9,_0x262b20:0x3db,_0x13be74:0x3c7,_0x5d75e3:0x183,_0x46c072:0x36c,_0x582622:0x355,_0x1e0ec8:0x24d},_0x4fdee2={_0x416a13:0x4fe,_0x866ab2:0x4e3},_0x2cd34b={_0x1a4320:0x19c,_0x2a36f6:0x109,_0x340583:0x272,_0x100750:0x2e2},_0x521e23={_0x3ca207:0x363},_0x15e8b2={'DrxEt':function(_0x53456b,_0x37f706){return _0x53456b(_0x37f706);},'PMirx':function(_0x55050d,_0x204dba){return _0x55050d(_0x204dba);},'LqEFg':_0x1abcba(0x203,_0x111053._0x132558),'INwwG':_0x1abcba(0x1f7,_0x111053._0xf8b231),'DggkL':_0x1abcba(0xb0,_0x111053._0x107870)+'e','uUhby':function(_0x1e2456,_0x4927d3,_0x4be671){return _0x1e2456(_0x4927d3,_0x4be671);},'TiTKv':_0x1abcba(_0x111053._0x2baaeb,-0x64),'eAvAO':_0x1abcba(0x75,-0x165)+_0x5325ff(_0x111053._0x1b5531,0x607)+_0x5325ff(0x459,0x4cb)+_0x5325ff(0x3c4,_0x111053._0x325de6),'Xjpkr':function(_0x23f0c2,_0x486faa){return _0x23f0c2===_0x486faa;},'PmcsL':function(_0xe84cd9,_0x1960a4,_0x2292c7,_0x3fb1e6,_0x52c35a){return _0xe84cd9(_0x1960a4,_0x2292c7,_0x3fb1e6,_0x52c35a);},'HyzWS':function(_0x5e6f37,_0x185be0,_0x56eea6){return _0x5e6f37(_0x185be0,_0x56eea6);},'TLDci':_0x1abcba(-0xb,-_0x111053._0x25c572),'OIhNi':_0x5325ff(0x427,0x512)+'talled\x20b'+'ackgroun'+_0x1abcba(0xe1,_0x111053._0x358ee5)+'e.','aSxgd':'register'+'ed','ebdsT':function(_0x38083c,_0x51ac8c,_0x34d5cf){return _0x38083c(_0x51ac8c,_0x34d5cf);},'obQUy':'--qr-fil'+'e','ywVSF':function(_0x556a1a,_0x4a7787){return _0x556a1a in _0x4a7787;},'HAGgr':'error','amURD':function(_0xe734f2,_0x717b51){return _0xe734f2(_0x717b51);},'rXMRo':function(_0x254fb9,_0x466994){return _0x254fb9===_0x466994;},'sLtEJ':function(_0x239f66){return _0x239f66();},'uDlEa':function(_0x23b1f3,_0x533efa,_0x570b84){return _0x23b1f3(_0x533efa,_0x570b84);},'OShbn':_0x1abcba(_0x111053._0x3f03b9,_0x111053._0x4203d4)+'l','dCpKM':function(_0xb41191){return _0xb41191();},'KrTLr':function(_0x2747ac){return _0x2747ac();},'tuNhE':function(_0x1a4132,_0x3e8dca){return _0x1a4132===_0x3e8dca;},'Ijepa':function(_0x2ced1b,_0x78914c){return _0x2ced1b(_0x78914c);},'BhMhf':'--errors','GaubZ':function(_0x1d497d,_0x5726fe){return _0x1d497d===_0x5726fe;},'WLyIj':function(_0x35db6e,_0x23c720,_0x1a4c61){return _0x35db6e(_0x23c720,_0x1a4c61);},'rvmwU':function(_0x45cc69,_0x29bc85,_0x5ad76a){return _0x45cc69(_0x29bc85,_0x5ad76a);},'HTiRZ':_0x5325ff(_0x111053._0x3c0efc,_0x111053._0x210e97)},[,,_0x5e2d69='help',..._0x32b198]=process[_0x1abcba(_0x111053._0x33fb7d,_0x111053._0x2800c8)],_0x71fd2d=hasFlag(_0x32b198,_0x15e8b2['DggkL']),_0x51fbf7=_0x15e8b2[_0x5325ff(_0x111053._0x31b83e,0x3ed)](hasFlag,_0x32b198,_0x5325ff(0x68e,_0x111053._0x32ec66));if(_0x5e2d69===_0x1abcba(-_0x111053._0x48c3da,-_0x111053._0x33b0eb)){const _0x58a5b8=_0x15e8b2[_0x1abcba(-_0x111053._0x141e1d,-_0x111053._0x2e9794)](hasFlag,_0x32b198,_0x1abcba(-_0x111053._0x1503d2,_0x111053._0x41aeb1));!_0x58a5b8&&await ensurePairPrerequisites();const _0x4d6a42=resolveGatewayAuth();if(_0x5325ff(_0x111053._0xf157bd,0x54e)in _0x4d6a42)throw new Error(_0x4d6a42[_0x1abcba(_0x111053._0x1e2211,0xe3)]);const _0x309c34=_0x15e8b2[_0x1abcba(-_0x111053._0x141e1d,_0x111053._0x2b29aa)](readFlag,_0x32b198,_0x15e8b2['TiTKv'])??readFlag(_0x32b198,'-s')??_0x15e8b2[_0x5325ff(0x47f,0x33b)],_0x2c3b86=readFlag(_0x32b198,_0x1abcba(-0x171,-_0x111053._0x5b1e1b))??readFlag(_0x32b198,'-n')??getDefaultBridgeDisplayName(),_0x418ef2=readFlag(_0x32b198,'--qr-fil'+'e'),_0x11cb9f={};_0x11cb9f[_0x5325ff(_0x111053._0x1b55f5,_0x111053._0x15edfd)+'l']=_0x309c34,_0x11cb9f['displayN'+'ame']=_0x2c3b86,_0x11cb9f[_0x1abcba(-_0x111053._0x294ae6,-0x74)+_0x1abcba(0x1cc,0x1bc)]=_0x4d6a42[_0x5325ff(_0x111053._0x2cbf23,_0x111053._0x5d23df)],_0x11cb9f['gatewayP'+_0x1abcba(0x209,_0x111053._0x3ed30d)]=_0x4d6a42[_0x5325ff(0x380,0x3ec)];const _0x18c9c4=await _0x15e8b2['DrxEt'](pairGateway,_0x11cb9f),_0x422c6a=await writePairingQrPng(_0x18c9c4,_0x418ef2),_0x2e9f3e=getServiceStatus(),_0x46a3ba=decidePairServiceAction(_0x18c9c4,_0x2e9f3e);if(_0x15e8b2[_0x1abcba(0x232,0x306)](_0x46a3ba,_0x1abcba(-_0x111053._0x4b349f,_0x111053._0x27302a))){_0x51fbf7?printJson(_0x15e8b2[_0x5325ff(0x425,0x48f)](buildPairingJson,_0x18c9c4,_0x422c6a,_0x2e9f3e,'Backgrou'+_0x1abcba(0x10e,_0x111053._0x2caa56)+_0x5325ff(_0x111053._0x35266c,0x30f)+_0x5325ff(0x573,_0x111053._0x5206c5)+'ng.\x20Left'+'\x20unchang'+_0x1abcba(-_0x111053._0x350b24,-_0x111053._0x9356bb))):(printPairingInfo(_0x18c9c4,_0x422c6a),console['log']('Backgrou'+_0x1abcba(0x10e,_0x111053._0x37b615)+_0x5325ff(_0x111053._0x35266c,0x2d7)+_0x1abcba(_0x111053._0x19718f,0x143)+'ng.\x20Left'+'\x20unchang'+_0x1abcba(-_0x111053._0x5c8ec5,-_0x111053._0x29805e)),_0x15e8b2[_0x5325ff(_0x111053._0x5a8390,0x3ce)](printServiceResult,null,_0x2e9f3e));return;}try{const _0x33fceb=_0x15e8b2['Xjpkr'](_0x46a3ba,_0x1abcba(-0xb,-0x179))?installService():restartService(),_0x58045f=_0x15e8b2['Xjpkr'](_0x46a3ba,_0x15e8b2[_0x1abcba(_0x111053._0x4e2a1f,0x7a)])?_0x15e8b2['OIhNi']:_0x15e8b2[_0x1abcba(_0x111053._0x1eceff,_0x111053._0x34160c)](_0x18c9c4[_0x1abcba(_0x111053._0x57c8ea,-0xa3)],_0x15e8b2[_0x5325ff(_0x111053._0x1b7e00,_0x111053._0x15c8bd)])?_0x1abcba(_0x111053._0xc62f8a,_0x111053._0x2b15df)+_0x1abcba(-_0x111053._0x5971d2,_0x111053._0x3bc515)+'changed.'+_0x1abcba(-0x49,-0x1a9)+_0x5325ff(0x656,_0x111053._0x104c2e)+_0x5325ff(0x51d,_0x111053._0x5a5dbb)+_0x5325ff(0x616,0x5ee)+_0x1abcba(0x27b,0x164)+_0x5325ff(_0x111053._0x47567c,0x58b)+_0x1abcba(-0x12e,-0x28b):_0x1abcba(_0x111053._0xdaa111,0x27c)+_0x5325ff(_0x111053._0xc39fd9,_0x111053._0x10b9f4)+_0x1abcba(0x273,_0x111053._0x4369f5)+_0x1abcba(_0x111053._0x25d923,0x1cc)+'\x20but\x20sto'+_0x5325ff(_0x111053._0x262960,0x2eb)+_0x5325ff(0x64d,_0x111053._0x223343)+'it.';_0x51fbf7?_0x15e8b2[_0x1abcba(-0x4d,-0x239)](printJson,buildPairingJson(_0x18c9c4,_0x422c6a,_0x33fceb,_0x58045f)):(_0x15e8b2[_0x1abcba(-_0x111053._0x3e6ef8,0xa9)](printPairingInfo,_0x18c9c4,_0x422c6a),printServiceResult(_0x58045f,_0x33fceb));}catch(_0x2f4c09){console['error']('Pairing\x20'+_0x1abcba(0x8,_0x111053._0x487754)+_0x1abcba(_0x111053._0x4369f5,0x2ad)+_0x1abcba(_0x111053._0x517f74,0x14a)+'ctivatio'+_0x1abcba(0x233,_0x111053._0x2ba9e0)+':\x20'+formatError(_0x2f4c09)),console['error'](_0x1abcba(_0x111053._0x296222,_0x111053._0x4f3715)+_0x5325ff(0x469,_0x111053._0x735e21)+_0x5325ff(0x2b2,_0x111053._0x210a71)+'et\x20insta'+'ll\x22\x20or\x20\x22'+'clawket\x20'+_0x1abcba(_0x111053._0x41066c,_0x111053._0x12cf65)+'ually.'),process[_0x1abcba(-0x131,-0x147)]=0x1;}return;}if(_0x5e2d69==='refresh-'+_0x1abcba(0xf0,0x2c6)){const _0x4c92bf=readFlag(_0x32b198,_0x15e8b2[_0x5325ff(0x429,_0x111053._0x410689)]),_0x2adcfe=resolveGatewayAuth();if(_0x15e8b2[_0x5325ff(0x601,_0x111053._0x2a37ce)](_0x15e8b2[_0x5325ff(0x327,_0x111053._0x3b5fb0)],_0x2adcfe))throw new Error(_0x2adcfe[_0x1abcba(0x15a,_0x111053._0x2b1be9)]);const _0x5374cd={};_0x5374cd[_0x5325ff(_0x111053._0x59eff6,0x448)+_0x5325ff(_0x111053._0xb6dc45,_0x111053._0x4dc23d)]=_0x2adcfe[_0x1abcba(-0x138,-_0x111053._0x1b9908)],_0x5374cd[_0x1abcba(_0x111053._0x350ffd,0x63)+_0x5325ff(0x637,_0x111053._0x49c2a4)]=_0x2adcfe['password'];const _0x2a33fd=await refreshAccessCode(_0x5374cd),_0x1d2433=await writePairingQrPng(_0x2a33fd,_0x4c92bf);_0x51fbf7?_0x15e8b2[_0x5325ff(_0x111053._0x148b2,0x6df)](printJson,buildPairingJson(_0x2a33fd,_0x1d2433,getServiceStatus(),_0x5325ff(0x354,_0x111053._0xf47aa3)+_0x1abcba(-0x89,_0x111053._0x1e6942)+_0x5325ff(0x413,_0x111053._0x4f7cc6))):printPairingInfo(_0x2a33fd,_0x1d2433);return;}function _0x5325ff(_0x4a284c,_0x17e068){return _0x431448(_0x17e068,_0x4a284c-0x20a);}if(_0x5e2d69===_0x5325ff(0x423,_0x111053._0xd3161d)){const _0x35600c=requirePairingConfig(),_0x37344a=installService();console['log'](_0x1abcba(-0x17f,-0x99)+_0x5325ff(_0x111053._0x54c0a4,_0x111053._0x2bf266)+_0x1abcba(-0x14,_0x111053._0x204fb5)+_0x1abcba(_0x111053._0x2d4057,0x20c)+_0x5325ff(_0x111053._0x372c4a,0x7a6)+'\x20'+_0x35600c[_0x1abcba(_0x111053._0x419b04,0x3a)+'d']+'.'),printServiceResult(null,_0x37344a);return;}if(_0x15e8b2[_0x5325ff(0x2bc,0x282)](_0x5e2d69,_0x1abcba(-0xa,0x83))){const _0x4b2806=_0x15e8b2['sLtEJ'](requirePairingConfig),_0x4d4f49=restartService();console[_0x5325ff(_0x111053._0x5ba2c6,_0x111053._0x452270)]('Restarte'+'d\x20backgr'+_0x5325ff(_0x111053._0x991c4,0x288)+_0x5325ff(_0x111053._0x7c5acf,0x6e2)+'\x20gateway'+'\x20'+_0x4b2806[_0x1abcba(_0x111053._0x5910ff,0x41)+'d']+'.'),_0x15e8b2[_0x1abcba(0x6f,_0x111053._0x49b156)](printServiceResult,null,_0x4d4f49);return;}if(_0x5e2d69===_0x5325ff(_0x111053._0x2c0b05,_0x111053._0x24d20d)){const _0x18be2a=stopService();console[_0x5325ff(0x44d,0x303)](_0x1abcba(0xc8,0x1ed)+'backgrou'+'nd\x20servi'+'ce.'),_0x15e8b2[_0x1abcba(-0xd8,0xc9)](printServiceResult,null,_0x18be2a);return;}if(_0x5e2d69===_0x15e8b2[_0x1abcba(0x237,0x28b)]){const _0x354c94=uninstallService();console[_0x1abcba(_0x111053._0x114cbf,0x15c)]('Removed\x20'+_0x1abcba(-_0x111053._0xe82af7,-_0x111053._0x12b861)+_0x1abcba(0x10e,_0x111053._0xbcd970)+_0x1abcba(-_0x111053._0x2cf936,_0x111053._0x6a5aa6)+_0x1abcba(-0x15,0x1e6)),printServiceResult(null,_0x354c94);return;}if(_0x5e2d69===_0x1abcba(-_0x111053._0x533ece,-_0x111053._0x340885)){stopService(),_0x15e8b2[_0x5325ff(0x3bf,_0x111053._0x5b9509)](deletePairingConfig),console[_0x1abcba(0x1f,-_0x111053._0x264852)](_0x1abcba(-_0x111053._0x377a89,_0x111053._0x2ee631)+'pairing\x20'+'config:\x20'+getPairingConfigPath());return;}if(_0x5e2d69===_0x5325ff(0x3e6,_0x111053._0x5e1af1)){_0x15e8b2[_0x5325ff(0x4ab,0x382)](printStatus);return;}if(_0x15e8b2[_0x5325ff(0x2e9,_0x111053._0x3a2d31)](_0x5e2d69,'logs')){const _0x18d954=_0x15e8b2[_0x5325ff(_0x111053._0x95220b,0x19b)](Number,readFlag(_0x32b198,_0x1abcba(_0x111053._0xf8d3c,0x2ae))??'200'),_0x55ea6e=parseLookbackToMs(readFlag(_0x32b198,_0x1abcba(0x1a1,_0x111053._0x229a14))??readFlag(_0x32b198,'-l')),_0x3f6302=readRecentCliLogs({'lines':_0x18d954,'lastMs':_0x55ea6e,'includeErrorLog':hasFlag(_0x32b198,_0x15e8b2[_0x1abcba(0x11,-0x116)])});if(_0x51fbf7){const _0x179293={};_0x179293['ok']=!![],_0x179293[_0x5325ff(_0x111053._0x4c2f1d,0x48d)]=_0x3f6302,printJson(_0x179293);}else _0x3f6302['length']===0x0?console['log'](_0x1abcba(-0xc9,-_0x111053._0x338e14)+_0x1abcba(0xbf,-0x95)+_0x5325ff(_0x111053._0x428718,0x459)+'nd.'):console['log'](_0x3f6302[_0x5325ff(0x3bb,_0x111053._0x285025)]('\x0a'));return;}if(_0x15e8b2[_0x5325ff(0x4cd,0x590)](_0x5e2d69,_0x1abcba(-0x144,-0x96))){const _0x399e86=await _0x15e8b2[_0x1abcba(-0x175,-0x202)](buildDoctorReport);_0x51fbf7?_0x15e8b2[_0x1abcba(-0xbf,-_0x111053._0x14b251)](printJson,_0x399e86):_0x15e8b2[_0x5325ff(0x336,0x3a0)](printDoctorReport,_0x399e86);return;}function _0x1abcba(_0x30af11,_0x530b20){return _0x431448(_0x530b20,_0x30af11- -0x224);}if(_0x5e2d69===_0x5325ff(0x5e9,0x4e4)){const _0x318cf6=requirePairingConfig(),_0x305a64=resolveGatewayUrl(_0x15e8b2['WLyIj'](readFlag,_0x32b198,_0x5325ff(0x603,0x740)+_0x1abcba(0x1af,_0x111053._0x507f04))??_0x15e8b2[_0x1abcba(0xc1,_0x111053._0x501b97)](readFlag,_0x32b198,'-g')),_0x568d63=_0x5e9404=>{function _0x4f05ef(_0x156e74,_0x3cdecd){return _0x5325ff(_0x156e74- -0x2b1,_0x3cdecd);}function _0x4a2be4(_0x125aac,_0x3b161b){return _0x5325ff(_0x125aac- -_0x521e23._0x3ca207,_0x3b161b);}console[_0x4f05ef(_0x2cd34b._0x1a4320,_0x2cd34b._0x2a36f6)]('['+Date[_0x4a2be4(_0x2cd34b._0x340583,_0x2cd34b._0x100750)]()+']\x20'+_0x5e9404);};if(!_0x71fd2d){const _0x16d49b=('1|2|4|5|'+_0x1abcba(_0x111053._0x53bfae,0x3b9))[_0x1abcba(-_0x111053._0x4a73b6,-_0x111053._0xe4599a)]('|');let _0x4494aa=0x0;while(!![]){switch(_0x16d49b[_0x4494aa++]){case'0':console['log'](_0x1abcba(-0x15a,-0x2a0)+'\x20bridge\x20'+_0x1abcba(-_0x111053._0x56a74e,-0x14a)+_0x1abcba(_0x111053._0x4eb03a,_0x111053._0x5880e7)+_0x1abcba(-0x56,-0xf0)+_0x5325ff(0x59a,0x743));continue;case'1':console['log'](_0x5325ff(0x473,0x617)+_0x5325ff(_0x111053._0x7d3f16,0x62a)+_0x318cf6['gatewayI'+'d']);continue;case'2':console[_0x5325ff(_0x111053._0x5caef2,_0x111053._0x28eba7)](_0x1abcba(0x212,0x15c)+_0x5325ff(0x343,_0x111053._0x522933)+_0x318cf6[_0x5325ff(_0x111053._0x1bf00f,0x37c)+'Id']);continue;case'3':console[_0x1abcba(0x1f,_0x111053._0x312b7c)]('');continue;case'4':console['log'](_0x5325ff(0x473,_0x111053._0x33d7b3)+_0x1abcba(-_0x111053._0x1691b7,_0x111053._0x23481e)+_0x305a64);continue;case'5':console['log']('');continue;}break;}}else _0x568d63('Starting'+'\x20Clawket'+_0x1abcba(-_0x111053._0x2147f9,0xe8)+_0x1abcba(0x5,_0x111053._0x264d25)+_0x5325ff(0x2da,_0x111053._0x1126e4)+_0x5325ff(0x344,0x185)+_0x318cf6[_0x1abcba(_0x111053._0x498287,-_0x111053._0x2c2182)+'d']);_0x71fd2d&&writeServiceState();const _0x10db96=new BridgeRuntime({'config':_0x318cf6,'gatewayUrl':_0x305a64,'onLog':_0x1f3350=>{const _0x1fcc40={_0x66e3c9:0x30};function _0x290a0b(_0x3987f0,_0x3bfa4c){return _0x5325ff(_0x3987f0-_0x1fcc40._0x66e3c9,_0x3bfa4c);}_0x15e8b2['DrxEt'](_0x568d63,_0x290a0b(_0x4fdee2._0x416a13,_0x4fdee2._0x866ab2)+']\x20'+_0x1f3350);},'onStatus':_0x5e531c=>{function _0x1fe383(_0x92b781,_0x37d257){return _0x1abcba(_0x92b781-0x421,_0x37d257);}function _0x572809(_0x5c917f,_0x2683d8){return _0x1abcba(_0x5c917f-0xbf,_0x2683d8);}if(_0x5e531c[_0x572809(_0x3ecd8c._0x9d0e65,0x319)+'r']){_0x15e8b2['PMirx'](_0x568d63,_0x1fe383(_0x3ecd8c._0x17fa21,_0x3ecd8c._0x4859a3)+_0x1fe383(_0x3ecd8c._0x2dbd10,_0x3ecd8c._0x16ea5e)+(_0x5e531c[_0x1fe383(0x660,_0x3ecd8c._0x29528a)+'nected']?'up':'down')+(_0x572809(0x2c7,_0x3ecd8c._0x713e65)+'=')+(_0x5e531c[_0x1fe383(0x312,0x2b9)+_0x572809(0x115,-_0x3ecd8c._0x153065)]?'up':'down')+(_0x572809(-_0x3ecd8c._0x2136a0,-0x53)+'=')+_0x5e531c[_0x572809(_0x3ecd8c._0xd20ae7,_0x3ecd8c._0x48d22d)+_0x572809(_0x3ecd8c._0x102970,_0x3ecd8c._0x33191d)]+'\x20error='+_0x5e531c[_0x572809(_0x3ecd8c._0x9d0e65,_0x3ecd8c._0x344152)+'r']);return;}_0x568d63(_0x1fe383(_0x3ecd8c._0x262b20,_0x3ecd8c._0x13be74)+_0x1fe383(0x665,0x4d0)+(_0x5e531c[_0x572809(0x2fe,0x484)+_0x572809(0x193,0x153)]?'up':_0x1fe383(0x624,0x6ed))+('\x20gateway'+'=')+(_0x5e531c[_0x572809(-0x50,_0x3ecd8c._0x5d75e3)+_0x1fe383(0x477,0x302)]?'up':_0x15e8b2[_0x1fe383(_0x3ecd8c._0x46c072,0x33c)])+(_0x1fe383(0x2a7,_0x3ecd8c._0x582622)+'=')+_0x5e531c[_0x572809(_0x3ecd8c._0xd20ae7,-0x5b)+_0x1fe383(0x42c,_0x3ecd8c._0x1e0ec8)]);},'onPendingPairRequest':_0x2ebcee=>{function _0x7470f3(_0x55e92a,_0x184c52){return _0x5325ff(_0x55e92a- -_0x45658e._0x5a54b7,_0x184c52);}function _0x130787(_0x477fbb,_0xdf9427){return _0x5325ff(_0xdf9427- -0x31c,_0x477fbb);}_0x568d63('[pair-re'+_0x7470f3(_0x17f057._0x1836eb,_0x17f057._0x5e04ee)+_0x130787(_0x17f057._0x17d37e,_0x17f057._0x139921)+'='+_0x2ebcee['requestI'+'d']+(_0x7470f3(_0x17f057._0x55c648,_0x17f057._0xce9421)+'d=')+(_0x2ebcee[_0x130787(0x120,_0x17f057._0x1708a0)]||_0x7470f3(0x371,_0x17f057._0x59cce1)+'>')+_0x7470f3(0x156,_0x17f057._0xce0d89)+(_0x2ebcee[_0x130787(_0x17f057._0x2a4d4c,_0x17f057._0x2188ed)+_0x7470f3(_0x17f057._0x2c2f34,_0x17f057._0xcfd75c)]??_0x130787(0x291,_0x17f057._0x26ee98)+'>'));}});_0x10db96[_0x5325ff(_0x111053._0x5ef3b3,0x379)]();const _0x35bc50=async()=>{const _0x112d38={_0x54a45d:0xda};process[_0x4256df(-_0x5537c5._0x45fe32,_0x5537c5._0x3edee9)](_0x15e8b2[_0x18d6a1(_0x5537c5._0x329eaf,_0x5537c5._0x44b344)],_0x35bc50);function _0x18d6a1(_0xeb17a5,_0x57019c){return _0x1abcba(_0x57019c-_0x172ec0._0x1aaf4a,_0xeb17a5);}process['off'](_0x4256df(_0x5537c5._0x1a43a4,-_0x5537c5._0x5b38eb),_0x35bc50),await _0x10db96['stop']();function _0x4256df(_0x4deb9e,_0x2b9891){return _0x1abcba(_0x4deb9e-_0x112d38._0x54a45d,_0x2b9891);}_0x71fd2d&&clearServiceState(process['pid']),process[_0x4256df(_0x5537c5._0x37329b,_0x5537c5._0x31f88c)](0x0);};process['on']('SIGINT',_0x35bc50),process['on'](_0x15e8b2[_0x5325ff(_0x111053._0x37aab7,_0x111053._0x1e981c)],_0x35bc50),await new Promise(()=>{});}printHelp();}function printPairingInfo(_0x2f8b1b,_0x260d5f){const _0x46892c={_0x311167:0x36e,_0x1a2b07:0x1c,_0x534c8c:0x182,_0x2d3dfc:0x7,_0xbd5cf7:0x381,_0x5ac5fd:0x251,_0x2c6a50:0x3ba,_0x4b8a4c:0x4cd,_0x399c25:0x5f6,_0x3d63cc:0x1e2,_0x15c97:0x49,_0x46743f:0x4b2,_0x1cec39:0x1f0,_0x3b0d76:0x3e9,_0x1179ad:0x6ab,_0x2456d5:0x5e9,_0x51651e:0x40c,_0x5ce824:0x2ca,_0x5a085b:0x2c0,_0x5a52a5:0x19b,_0x2d1e61:0x3a1,_0x3d562e:0x1d3,_0x32802f:0x24b,_0x30fac1:0xca,_0x363734:0x1a,_0x25abac:0x714},_0x56f97b={_0x17927d:0x1a0},_0x435be4={_0x2acaf6:0x1d1},_0x322aab={'LYbkt':'Bridge\x20a'+'lready\x20p'+_0x448ea1(_0x46892c._0x311167,0x356)+_0x3f73df(-_0x46892c._0x1a2b07,0x122)+_0x3f73df(-0xe1,0x10f)+_0x448ea1(0x52b,0x584)+'e.','FoJbX':function(_0x4b13e1,_0x145483){return _0x4b13e1(_0x145483);}};_0x2f8b1b[_0x3f73df(-0x1f,_0x46892c._0x534c8c)]===_0x3f73df(0x1ba,_0x46892c._0x2d3dfc)+'d'&&console['log'](_0x322aab[_0x3f73df(_0x46892c._0xbd5cf7,_0x46892c._0x5ac5fd)]);console[_0x448ea1(0x3d2,_0x46892c._0x2c6a50)]('Gateway\x20'+_0x3f73df(0x157,0x5d)+_0x2f8b1b[_0x448ea1(_0x46892c._0x4b8a4c,_0x46892c._0x399c25)][_0x3f73df(_0x46892c._0x3d63cc,0x47)+'d']),console[_0x3f73df(-0x186,_0x46892c._0x15c97)](_0x448ea1(0x513,0x5dd)+_0x448ea1(_0x46892c._0x46743f,0x2ce)+_0x3f73df(-0x7,-0x9c)+_0x448ea1(_0x46892c._0x1cec39,0x24c)+_0x3f73df(_0x46892c._0x3b0d76,0x254));const _0x14bfa8={};_0x14bfa8[_0x448ea1(_0x46892c._0x1179ad,0x4c5)]=!![],_0x23ba85[_0x448ea1(_0x46892c._0x2456d5,_0x46892c._0x51651e)](_0x2f8b1b[_0x448ea1(_0x46892c._0x5ce824,_0x46892c._0x5a085b)+'d'],_0x14bfa8),console['log'](_0x3f73df(_0x46892c._0x5a52a5,0x126)+'\x20'+_0x322aab[_0x448ea1(_0x46892c._0x2d1e61,0x50c)](formatLocalTime,_0x2f8b1b[_0x448ea1(_0x46892c._0x3d562e,_0x46892c._0x32802f)+_0x3f73df(-0x101,-_0x46892c._0x30fac1)+_0x448ea1(0x3cb,0x420)]));function _0x448ea1(_0x424f15,_0x1a3992){return _0x9ec63e(_0x1a3992-_0x435be4._0x2acaf6,_0x424f15);}function _0x3f73df(_0x2b7feb,_0x180ad9){return _0x9ec63e(_0x180ad9- -_0x56f97b._0x17927d,_0x2b7feb);}console[_0x3f73df(-_0x46892c._0x363734,0x49)](_0x448ea1(_0x46892c._0x25abac,0x5ac)+':\x20'+_0x260d5f);}function _0x9ec63e(_0x1c1fc1,_0x344010){return _0x1bf0(_0x1c1fc1- -0x82,_0x344010);}function printStatus(){const _0x1f1981={_0x1ac57d:0x172,_0x454745:0x191,_0x11b94c:0x78,_0x15a178:0x1b1,_0x857d60:0x51,_0x38653b:0xd,_0x41d888:0x118,_0x158841:0x41,_0x896281:0xf6,_0x39deda:0x2d,_0x2e4e15:0xb5,_0x5239ad:0xb1,_0x436513:0x11,_0x119a4c:0x140,_0x4be737:0x56,_0x3b2650:0xf4,_0x3e6619:0x10c,_0x417fc2:0x86,_0x860258:0x184,_0x1b2827:0x10a,_0x1b7d4d:0x49,_0x16b39d:0xd7,_0x38a96a:0x1e0,_0x299b4d:0x366,_0x20956d:0x9f,_0x283d12:0x49,_0x361d02:0x2e,_0x119913:0x2c3,_0x12115c:0x107};function _0x5bc87e(_0x5994c2,_0xad94f9){return _0x431448(_0xad94f9,_0x5994c2- -0x284);}const _0x478f5e={'QrmqM':function(_0x2a2c84){return _0x2a2c84();},'pDCPy':function(_0x28e338){return _0x28e338();},'ALbQV':_0x1461f1(_0x1f1981._0x1ac57d,_0x1f1981._0x454745)+'d'},_0x2253a2=_0x478f5e['QrmqM'](readPairingConfig),_0x5d74f2=_0x478f5e[_0x1461f1(0x271,_0x1f1981._0x11b94c)](getServiceStatus),{logPath:_0x4e1b9f,errorLogPath:_0x5b96ca}=getServicePaths(),_0x1beaf9=readCliVersion();console[_0x5bc87e(-0x41,-0x239)](_0x5bc87e(-_0x1f1981._0x15a178,-0x30a)+'\x20'+_0x1beaf9);!_0x2253a2?console[_0x1461f1(-_0x1f1981._0x857d60,_0x1f1981._0x38653b)]('Config:\x20'+_0x1461f1(_0x1f1981._0x41d888,-0x63)+'ed\x20('+getPairingConfigPath()+')'):(console[_0x5bc87e(-_0x1f1981._0x158841,0x1b0)](_0x5bc87e(-0x1a2,0x54)+_0x5bc87e(-0x1e8,-0x3cf)),console[_0x5bc87e(-0x41,-0x13a)](_0x1461f1(-_0x1f1981._0x896281,0x33)+_0x5bc87e(-_0x1f1981._0x39deda,-0xe1)+_0x2253a2['gatewayI'+'d']),console['log'](_0x5bc87e(0x1b2,0x2b2)+':\x20'+_0x2253a2[_0x1461f1(-_0x1f1981._0x2e4e15,0x9)+'Id']),console[_0x1461f1(_0x1f1981._0x5239ad,_0x1f1981._0x38653b)]('Server\x20U'+_0x5bc87e(0x179,-0x69)+_0x2253a2['serverUr'+'l']),console[_0x5bc87e(-_0x1f1981._0x158841,-_0x1f1981._0x436513)](_0x5bc87e(0xd2,0x100)+(_0x2253a2[_0x5bc87e(_0x1f1981._0x119a4c,_0x1f1981._0x4be737)+_0x5bc87e(-_0x1f1981._0x3b2650,-0x1c3)]??'-')));function _0x1461f1(_0xc4ea38,_0x115a93){return _0x431448(_0xc4ea38,_0x115a93- -0x236);}console['log'](_0x1461f1(0x4e,_0x1f1981._0x3e6619)+'\x20'+resolveGatewayUrl()),console[_0x1461f1(_0x1f1981._0x417fc2,_0x1f1981._0x38653b)](_0x5bc87e(0x67,0x8d)+'\x20'+(_0x5d74f2[_0x5bc87e(0x143,_0x1f1981._0x860258)+'d']?_0x478f5e[_0x5bc87e(_0x1f1981._0x1b2827,0x135)]:_0x1461f1(0x169,-_0x1f1981._0x1b7d4d)+_0x5bc87e(_0x1f1981._0x16b39d,-0x72))+'\x20('+_0x5d74f2[_0x5bc87e(_0x1f1981._0x38a96a,_0x1f1981._0x299b4d)]+')'),console[_0x5bc87e(-0x41,0xf2)]('Running:'+'\x20'+(_0x5d74f2[_0x1461f1(_0x1f1981._0x20956d,-0x142)]?'yes':'no')),console['log'](_0x1461f1(_0x1f1981._0x283d12,-0x14c)+(_0x5d74f2[_0x1461f1(-_0x1f1981._0x361d02,-0x75)+_0x5bc87e(-0x13,-0x120)]||'-')),console['log']('Log:\x20'+_0x4e1b9f),console['log'](_0x1461f1(_0x1f1981._0x119913,_0x1f1981._0x12115c)+_0x5bc87e(-0x1c0,-0x10d)+_0x5b96ca),!_0x2253a2&&(process['exitCode']=0x1);}function printServiceResult(_0x53f02d,_0x1ed9cc){const _0x2ae34e={_0x11d7fe:0x522,_0x1865cd:0x5ca,_0x10630e:0x6a6,_0x32f6ec:0x563,_0x3f1aa1:0x3d3,_0x5d0db0:0x28b,_0x4c7246:0x444,_0x5cad98:0x2c9,_0x38a79e:0x1d6,_0x447577:0x530,_0x52c983:0x4cc,_0x5e0bb0:0x526,_0x48ab9b:0x85,_0x5196b0:0x193,_0x81f02b:0x3b5};function _0xf78c18(_0x2099f5,_0x2e72d7){return _0x431448(_0x2099f5,_0x2e72d7-0x2df);}_0x53f02d&&console[_0xf78c18(0x723,_0x2ae34e._0x11d7fe)](_0x53f02d);function _0x351b7c(_0x51e494,_0x528b78){return _0x431448(_0x528b78,_0x51e494- -0x13c);}console['log'](_0xf78c18(0x3d8,_0x2ae34e._0x1865cd)+'\x20'+(_0x1ed9cc[_0xf78c18(0x633,_0x2ae34e._0x10630e)+'d']?_0x1ed9cc[_0xf78c18(_0x2ae34e._0x32f6ec,_0x2ae34e._0x3f1aa1)]?_0x351b7c(_0x2ae34e._0x5d0db0,_0x2ae34e._0x4c7246)+_0xf78c18(_0x2ae34e._0x5cad98,0x376)+'ng':_0x351b7c(0x28b,_0x2ae34e._0x38a79e)+_0x351b7c(-0x35,-0x1bf)+'ed':_0xf78c18(_0x2ae34e._0x447577,_0x2ae34e._0x52c983)+'alled')),console[_0x351b7c(0x107,0xe4)](_0xf78c18(_0x2ae34e._0x5e0bb0,0x70a)+'path:\x20'+(_0x1ed9cc[_0x351b7c(_0x2ae34e._0x48ab9b,_0x2ae34e._0x5196b0)+_0xf78c18(_0x2ae34e._0x81f02b,0x550)]||'-'));}function printDoctorReport(_0x3d5243){const _0x1e380d={_0x166bf4:0x3d0,_0x2b06f1:0x2cf,_0x55f3ec:0x164,_0x5f1c95:0x139,_0x12c2c6:0x127,_0x238a0b:0x328,_0x4e0881:0x111,_0x631541:0xe,_0x4f6e79:0x336,_0x3f6263:0x433,_0x4db3f3:0x239,_0x257562:0x6e,_0x57b46b:0x39b,_0x42f82f:0x1e5,_0x58cefa:0x1f4,_0x3038d2:0x2d0,_0x596f15:0x10f,_0x56d64e:0x297,_0x264d15:0x254,_0xb0f0b8:0x2ad,_0x55623b:0x39f,_0x41e5a4:0xa1,_0x59b31f:0x110,_0x50ad9a:0xa8,_0x1dc7c5:0x338,_0x14a2ff:0x31f,_0x516123:0x304,_0x4f401f:0x239,_0x47cc5f:0x1bb,_0x5b1fe4:0x37a,_0x361b8f:0x257,_0x81a047:0x16b,_0x342c36:0x113,_0xe91684:0x113,_0x1f92da:0x1f5,_0x1d870d:0x29,_0x3a2096:0x65,_0x5ee12c:0x1f9,_0x4842de:0x41e,_0x83eef:0x113,_0x3009f0:0x30e,_0x22b349:0x3d,_0x25d74a:0x203,_0x28600d:0x198,_0x45f289:0x339,_0x5e7ac2:0x1ce,_0x3b6656:0x89,_0x4fa7e8:0x3a6,_0x5972b5:0x379,_0x24b602:0x83,_0x360f40:0x51,_0x55dd6d:0x11b,_0x4f09b8:0x137,_0x5054f1:0x2c3,_0x472a06:0x191,_0x48d837:0x612,_0x6eb53f:0x15f,_0x35e67d:0x1f1,_0x11c669:0x2c3,_0x23f48c:0x491,_0x5154c0:0x4f7,_0x106710:0x28c,_0x170027:0x1f,_0x2887c9:0x69,_0x3d53f5:0x166,_0x3dd766:0xb3,_0x1f8ec1:0x73,_0x21abe1:0x25f,_0x43b6ee:0x2e9,_0x1803e7:0xb2,_0x577907:0xef,_0x4cf009:0x2a9},_0x36a022={_0x195605:0x50},_0x442b30={};_0x442b30['wkgrw']=_0x438e9e(0xbd,0x233)+_0x4f5aa6(0x351,_0x1e380d._0x166bf4),_0x442b30[_0x438e9e(_0x1e380d._0x2b06f1,_0x1e380d._0x55f3ec)]='yes';const _0x53b805=_0x442b30;console[_0x438e9e(0x113,-0x8c)]('Paired:\x20'+(_0x3d5243[_0x438e9e(-0x94,-0x86)]?'yes':'no')),console['log'](_0x438e9e(_0x1e380d._0x5f1c95,0x1d4)+_0x438e9e(_0x1e380d._0x12c2c6,_0x1e380d._0x238a0b)+(_0x3d5243[_0x438e9e(_0x1e380d._0x4e0881,-_0x1e380d._0x631541)+'d']??'-')),console['log'](_0x438e9e(0x271,_0x1e380d._0x4f6e79)+_0x438e9e(0x2cd,_0x1e380d._0x3f6263)+(_0x3d5243['serverUr'+'l']??'-')),console[_0x4f5aa6(_0x1e380d._0x4db3f3,_0x1e380d._0x257562)](_0x4f5aa6(_0x1e380d._0x57b46b,0x290)+_0x4f5aa6(_0x1e380d._0x42f82f,_0x1e380d._0x58cefa)+(_0x3d5243[_0x438e9e(0x20b,_0x1e380d._0x3038d2)]??'-'));function _0x4f5aa6(_0x5a693e,_0xa198b3){return _0x9ec63e(_0x5a693e-_0x36a022._0x195605,_0xa198b3);}console[_0x4f5aa6(_0x1e380d._0x4db3f3,0xdf)](_0x438e9e(0x306,0x3ce)+_0x4f5aa6(0x12f,0x1ed)+(_0x3d5243[_0x438e9e(_0x1e380d._0x596f15,0x2fb)+'Id']??'-')),console[_0x438e9e(0x113,0x248)](_0x4f5aa6(0x2e1,0x1a8)+'\x20'+(_0x3d5243[_0x438e9e(0x17f,-0x6f)+_0x438e9e(0x1e6,0xe7)]?_0x438e9e(_0x1e380d._0x56d64e,_0x1e380d._0x264d15)+'d':_0x53b805['wkgrw'])+'\x20('+_0x3d5243['serviceM'+'ethod']+')'),console[_0x4f5aa6(0x239,_0x1e380d._0xb0f0b8)](_0x4f5aa6(0x421,_0x1e380d._0x55623b)+_0x438e9e(0x13a,-_0x1e380d._0x41e5a4)+'\x20'+(_0x3d5243[_0x4f5aa6(_0x1e380d._0x59b31f,_0x1e380d._0x50ad9a)+_0x438e9e(0x28d,_0x1e380d._0x1dc7c5)]?_0x438e9e(_0x1e380d._0x14a2ff,_0x1e380d._0x516123):'no')),console[_0x4f5aa6(_0x1e380d._0x4f401f,0x127)](_0x438e9e(0x2fb,_0x1e380d._0x47cc5f)+_0x4f5aa6(_0x1e380d._0x5b1fe4,0x1f8)+(_0x3d5243['serviceP'+'ath']||'-')),console['log'](_0x438e9e(_0x1e380d._0x361b8f,0x80)+':\x20'+_0x3d5243[_0x4f5aa6(_0x1e380d._0x81a047,_0x1e380d._0x342c36)]);function _0x438e9e(_0x2f4538,_0x259ffe){return _0x9ec63e(_0x2f4538- -0xd6,_0x259ffe);}console[_0x438e9e(_0x1e380d._0xe91684,_0x1e380d._0x1f92da)](_0x438e9e(_0x1e380d._0x1d870d,-_0x1e380d._0x3a2096)+_0x438e9e(-0x98,-_0x1e380d._0x5ee12c)+_0x3d5243[_0x4f5aa6(_0x1e380d._0x4842de,0x56f)+'Path']),console[_0x438e9e(_0x1e380d._0x83eef,_0x1e380d._0x3009f0)](_0x4f5aa6(0x1af,_0x1e380d._0x22b349)+'\x20dir:\x20'+_0x3d5243[_0x438e9e(_0x1e380d._0x25d74a,_0x1e380d._0x28600d)+_0x4f5aa6(_0x1e380d._0x45f289,_0x1e380d._0x5e7ac2)+'r']),console[_0x4f5aa6(0x239,0x2ef)](_0x438e9e(_0x1e380d._0x3b6656,-0x121)+_0x438e9e(0x225,_0x1e380d._0x4fa7e8)+_0x3d5243[_0x4f5aa6(0x329,0x25d)+_0x438e9e(0x1a5,0x2f1)]),console['log']('OpenClaw'+_0x4f5aa6(_0x1e380d._0x5972b5,0x4cf)+'\x20'+(_0x3d5243[_0x438e9e(_0x1e380d._0x25d74a,0x359)+_0x438e9e(-_0x1e380d._0x24b602,-_0x1e380d._0x360f40)+_0x438e9e(_0x1e380d._0x55dd6d,_0x1e380d._0x4f09b8)]?_0x438e9e(_0x1e380d._0x5054f1,_0x1e380d._0x472a06):_0x4f5aa6(0x429,_0x1e380d._0x48d837))),console[_0x438e9e(0x113,0x222)]('OpenClaw'+_0x438e9e(0xc9,_0x1e380d._0x6eb53f)+(_0x3d5243[_0x4f5aa6(0x329,_0x1e380d._0x35e67d)+_0x438e9e(0x276,0x165)+'nd']?_0x438e9e(_0x1e380d._0x11c669,_0x1e380d._0x23f48c):_0x4f5aa6(0x429,_0x1e380d._0x5154c0))),console[_0x438e9e(0x113,-0xc4)](_0x4f5aa6(0x25f,_0x1e380d._0x106710)+_0x438e9e(_0x1e380d._0x170027,_0x1e380d._0x2887c9)+_0x3d5243[_0x4f5aa6(_0x1e380d._0x3d53f5,_0x1e380d._0x3dd766)+_0x438e9e(0x236,_0x1e380d._0x1f8ec1)]),console['log'](_0x4f5aa6(_0x1e380d._0x21abe1,0x2ad)+_0x4f5aa6(_0x1e380d._0x43b6ee,0xf2)+_0x438e9e(_0x1e380d._0x1803e7,0x1a)+(_0x3d5243[_0x4f5aa6(_0x1e380d._0x3d53f5,_0x1e380d._0x577907)+_0x4f5aa6(_0x1e380d._0x4cf009,0x1fb)+_0x4f5aa6(0x15e,0x2b9)]?_0x53b805[_0x4f5aa6(0x3f5,0x2a0)]:'no'));}function requirePairingConfig(){const _0x347183={_0x1c7799:0x615,_0x310efe:0x36f,_0xa98ee9:0x517,_0x24e647:0x250,_0x434da4:0x78,_0x4d5047:0x374},_0x573910={_0x4dbed3:0x245},_0x2f2d27={_0x22bbb8:0x12d};function _0x464cc7(_0x2ba4a7,_0x5e5862){return _0x9ec63e(_0x2ba4a7-_0x2f2d27._0x22bbb8,_0x5e5862);}const _0x2dc990={'eiBTd':function(_0x27fbc1){return _0x27fbc1();}};function _0x82d741(_0x14920a,_0x151905){return _0x9ec63e(_0x151905-_0x573910._0x4dbed3,_0x14920a);}const _0x13aa4c=readPairingConfig();return!_0x13aa4c&&(console[_0x464cc7(0x451,_0x347183._0x1c7799)](_0x82d741(0x49c,0x38e)+_0x82d741(_0x347183._0x310efe,_0x347183._0xa98ee9)+'\x22clawket'+'\x20pair\x22\x20f'+'irst.\x20Co'+_0x464cc7(_0x347183._0x24e647,_0x347183._0x434da4)+'h:\x20'+_0x2dc990[_0x82d741(0x3aa,_0x347183._0x4d5047)](getPairingConfigPath)),process['exit'](0x1)),_0x13aa4c;}function readFlag(_0x5e5396,_0x1d6ee9){const _0x38a51d={_0x585a54:0x68c,_0x31f621:0x667},_0x308ca8={_0x1a0571:0x33e},_0x43a442=_0x5e5396['indexOf'](_0x1d6ee9);function _0x423f3f(_0x507a4d,_0x2e6a74){return _0x431448(_0x507a4d,_0x2e6a74-_0x308ca8._0x1a0571);}if(_0x43a442<0x0)return null;const _0x55ba6a=_0x5e5396[_0x43a442+0x1];function _0x197a05(_0x5dfd21,_0x32cc48){return _0x431448(_0x32cc48,_0x5dfd21- -0xa);}return _0x55ba6a?.[_0x423f3f(_0x38a51d._0x585a54,_0x38a51d._0x31f621)]()?_0x55ba6a[_0x423f3f(0x516,_0x38a51d._0x31f621)]():null;}function hasFlag(_0x114464,_0x8abf72){return _0x114464['includes'](_0x8abf72);}function printHelp(){const _0xc0082f={_0x44a9d6:0x136,_0x433c08:0x1da,_0x31a48f:0x6bf,_0xfccd74:0x881,_0x860e4f:0x7a3,_0x3f9e5e:0x625,_0xe4dc66:0xa2a,_0x2301cf:0x853,_0x2952ed:0x286,_0x57b0a8:0x149,_0x24d9d2:0x3eb,_0x4ac231:0x4c8,_0x349206:0x501,_0x1a8688:0x408,_0x44f3e4:0x73c,_0x1aeaa5:0x206,_0x2171a5:0x650,_0x57dca7:0x3ca,_0x1725d9:0x80e,_0x44b262:0x61a,_0x176c68:0x47c,_0xafe1ca:0x434,_0x585f3d:0x823,_0x44b173:0xa79,_0x35e0d1:0x70d,_0x4ac1fc:0x588,_0x3352eb:0x687,_0x27deb0:0x306,_0x3ace8c:0x363,_0xdfb26d:0x785,_0x1d7a94:0x415,_0x51e23a:0x952,_0x48c5a6:0x434,_0x25ae94:0x411,_0x3244bc:0x54c,_0x2fdbe8:0x67d,_0x22635e:0x9ee,_0x1d27e2:0x7ac,_0xbbad81:0x5b1},_0x2313e6={_0x4f166d:0x4d},_0x554172={};_0x554172['VIQvX']='clawket\x20'+_0x2b3459(_0xc0082f._0x44a9d6,0x2a5)+'l';function _0x2b3459(_0x40e260,_0x34ecfe){return _0x431448(_0x40e260,_0x34ecfe- -_0x2313e6._0x4f166d);}function _0x10ed72(_0x44b5b8,_0x162374){return _0x431448(_0x44b5b8,_0x162374-0x400);}_0x554172[_0x2b3459(0x309,_0xc0082f._0x433c08)]=_0x10ed72(_0xc0082f._0x31a48f,_0xc0082f._0xfccd74)+'reset';const _0x3a76f2=_0x554172;console[_0x10ed72(_0xc0082f._0x860e4f,0x643)](['clawket\x20'+'pair\x20[--'+_0x10ed72(_0xc0082f._0x3f9e5e,0x7dc)+_0x10ed72(_0xc0082f._0xe4dc66,_0xc0082f._0x2301cf)+_0x2b3459(_0xc0082f._0x2952ed,_0xc0082f._0x57b0a8)+_0x2b3459(0x33e,0x23c)+_0x10ed72(_0xc0082f._0x24d9d2,_0xc0082f._0x4ac231)+_0x2b3459(_0xc0082f._0x349206,_0xc0082f._0x1a8688)+_0x10ed72(_0xc0082f._0x44f3e4,0x817)+_0x2b3459(0x1df,_0xc0082f._0x1aeaa5)+_0x2b3459(0x3f,0x1e4)+'e]',_0x10ed72(0x736,_0xc0082f._0xfccd74)+'refresh-'+_0x10ed72(_0xc0082f._0x2171a5,0x4d2)+_0x10ed72(0x747,0x855)+_0x2b3459(0x4b8,_0xc0082f._0x57dca7)+'[--json]','clawket\x20'+'install',_0x10ed72(_0xc0082f._0x1725d9,0x881)+_0x10ed72(0x53d,_0xc0082f._0x44b262),_0x2b3459(_0xc0082f._0x176c68,_0xc0082f._0xafe1ca)+_0x10ed72(0x8a3,_0xc0082f._0x585f3d),_0x3a76f2[_0x2b3459(0x260,0x2b1)],_0x3a76f2[_0x2b3459(0x190,_0xc0082f._0x433c08)],_0x10ed72(_0xc0082f._0x44b173,0x881)+'status',_0x10ed72(_0xc0082f._0x35e0d1,_0xc0082f._0xfccd74)+_0x10ed72(_0xc0082f._0x4ac1fc,_0xc0082f._0x3352eb)+'last\x20<2m'+'>]\x20[--li'+_0x2b3459(_0xc0082f._0x27deb0,0x1a6)+_0x2b3459(_0xc0082f._0x3ace8c,0x198)+_0x10ed72(0x8fc,_0xc0082f._0xdfb26d)+_0x2b3459(_0xc0082f._0x1d7a94,0x210),_0x10ed72(_0xc0082f._0x51e23a,_0xc0082f._0xfccd74)+_0x10ed72(0x484,0x591)+_0x10ed72(0x5e8,0x77d),_0x2b3459(0x249,_0xc0082f._0x48c5a6)+_0x10ed72(_0xc0082f._0x25ae94,0x4eb)+'ateway-u'+_0x10ed72(0x6ec,0x5d0)+_0x10ed72(_0xc0082f._0x3244bc,_0xc0082f._0x2fdbe8)+_0x10ed72(_0xc0082f._0x22635e,0x810)+'>]'][_0x10ed72(_0xc0082f._0x1d27e2,_0xc0082f._0xbbad81)]('\x0a'));}function formatLocalTime(_0x248efe){const _0x3223ea={_0x322f6d:0x466,_0x4e532f:0x4c3,_0x236720:0x134},_0x85580c={_0x7e01f2:0x224},_0x3d6de9={_0x55f688:0x1e6},_0x11baf4=new Date(_0x248efe);function _0x2c609a(_0x540683,_0x29777f){return _0x9ec63e(_0x29777f-_0x3d6de9._0x55f688,_0x540683);}function _0x23a273(_0x5c286c,_0x2015d0){return _0x9ec63e(_0x5c286c-_0x85580c._0x7e01f2,_0x2015d0);}if(Number[_0x23a273(0x490,0x3d9)](_0x11baf4[_0x23a273(_0x3223ea._0x322f6d,0x600)]()))return _0x248efe;return _0x11baf4[_0x2c609a(_0x3223ea._0x4e532f,0x5a6)+_0x2c609a(_0x3223ea._0x236720,0x229)]();}function formatError(_0x4d6071){const _0x1b110b={_0x386415:0x4e7,_0x231afe:0x6be,_0x216463:0x16b,_0x4da043:0x43,_0x3ab5bd:0x31},_0x34134d={_0x4da25d:0x60};function _0x503306(_0x4ffd8e,_0x1d7fbe){return _0x431448(_0x4ffd8e,_0x1d7fbe- -0x31c);}const _0x33a10f={};_0x33a10f[_0xa55262(_0x1b110b._0x386415,_0x1b110b._0x231afe)]=function(_0x51ba2a,_0x1866ff){return _0x51ba2a instanceof _0x1866ff;};function _0xa55262(_0x340fc2,_0x50027b){return _0x431448(_0x50027b,_0x340fc2-_0x34134d._0x4da25d);}const _0x41fd35=_0x33a10f;return _0x41fd35[_0x503306(0x360,_0x1b110b._0x216463)](_0x4d6071,Error)?_0x4d6071[_0x503306(_0x1b110b._0x4da043,_0x1b110b._0x3ab5bd)]:String(_0x4d6071);}function printJson(_0x3aff10){const _0x23a040={_0xed9667:0x4aa,_0x579c0f:0x77a},_0xfad090={_0x33dfc5:0x3b5};function _0x4f6a66(_0x1d14bc,_0x572215){return _0x9ec63e(_0x1d14bc-0x3dc,_0x572215);}function _0x1052c0(_0x9a6bdf,_0x588f0c){return _0x9ec63e(_0x9a6bdf-_0xfad090._0x33dfc5,_0x588f0c);}console[_0x4f6a66(0x5c5,_0x23a040._0xed9667)](JSON[_0x1052c0(_0x23a040._0x579c0f,0x816)+'y'](_0x3aff10,null,0x2));}main()[_0x9ec63e(0x1bd,0x20f)](_0x384ce6=>{const _0x19bb0e={_0x2692c3:0x2c6};console[_0x1e617c(0x4aa,_0x19bb0e._0x2692c3)](formatError(_0x384ce6));function _0x1e617c(_0x51bbd2,_0x4b98e8){return _0x9ec63e(_0x51bbd2-0x186,_0x4b98e8);}function _0x483e3e(_0x486d45,_0x395751){return _0x9ec63e(_0x395751-0x35d,_0x486d45);}process[_0x483e3e(0x75d,0x5af)](0x1);});
|