@p697/clawket 0.2.4 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- (function(_0x395fc5,_0x49b62c){const _0x14613d={_0x50fc33:0x1d7,_0x2b3a68:0x111,_0xfd9bfe:0x4d9,_0xf0eb0c:0x4e2,_0x2ea5a9:0x5ec,_0x1fb512:0x10e,_0x47ae8d:0x112,_0x3f90fb:0x47b,_0x5979e4:0x64d,_0x26cdbf:0x3b2,_0x3e5dae:0x244,_0x2c0721:0x153},_0x4a5bec=_0x395fc5();function _0x36ccdb(_0x5affe2,_0x486bc6){return _0x3b9b(_0x486bc6-0x2a9,_0x5affe2);}function _0x2c733f(_0x55fac2,_0x285135){return _0x3b9b(_0x285135- -0x325,_0x55fac2);}while(!![]){try{const _0x2d492a=-parseInt(_0x2c733f(_0x14613d._0x50fc33,_0x14613d._0x2b3a68))/0x1*(-parseInt(_0x36ccdb(0x43f,_0x14613d._0xfd9bfe))/0x2)+parseInt(_0x36ccdb(0x59a,_0x14613d._0xf0eb0c))/0x3*(-parseInt(_0x36ccdb(0x58c,_0x14613d._0x2ea5a9))/0x4)+-parseInt(_0x2c733f(-_0x14613d._0x1fb512,-0x5a))/0x5+-parseInt(_0x2c733f(0x20a,_0x14613d._0x47ae8d))/0x6*(-parseInt(_0x36ccdb(_0x14613d._0x3f90fb,_0x14613d._0x5979e4))/0x7)+-parseInt(_0x36ccdb(_0x14613d._0x26cdbf,0x529))/0x8+-parseInt(_0x2c733f(-_0x14613d._0x3e5dae,-0x1bb))/0x9+parseInt(_0x2c733f(-0x28d,-_0x14613d._0x2c0721))/0xa;if(_0x2d492a===_0x49b62c)break;else _0x4a5bec['push'](_0x4a5bec['shift']());}catch(_0x275c88){_0x4a5bec['push'](_0x4a5bec['shift']());}}}(_0x5e63,0x3880b));const _0x188f57=(function(){let _0x49cccc=!![];return function(_0x6f03e0,_0x3f4d58){const _0x58feaf={_0x584f21:0x59,_0x10c216:0xd9},_0x1ddeb2=_0x49cccc?function(){function _0x479cca(_0x589ad1,_0x15cff8){return _0x3b9b(_0x15cff8- -0x1a6,_0x589ad1);}if(_0x3f4d58){const _0x361f7c=_0x3f4d58[_0x479cca(_0x58feaf._0x584f21,-_0x58feaf._0x10c216)](_0x6f03e0,arguments);return _0x3f4d58=null,_0x361f7c;}}:function(){};return _0x49cccc=![],_0x1ddeb2;};}()),_0xd919fd=_0x188f57(this,function(){const _0x580cac={_0xf63a8a:0x295,_0x465b22:0x4f3,_0x1c96fa:0x3eb,_0x2aa655:0x42a,_0x3fa2da:0x31b,_0x1065a2:0x58f};function _0x206acd(_0x4174ad,_0x1afe76){return _0x3b9b(_0x1afe76-0x16e,_0x4174ad);}function _0x48ce99(_0x4562,_0x2a1669){return _0x3b9b(_0x2a1669-0x1c0,_0x4562);}return _0xd919fd[_0x206acd(0x577,0x452)]()[_0x48ce99(0x271,_0x580cac._0xf63a8a)]('(((.+)+)'+_0x48ce99(_0x580cac._0x465b22,0x5e1))[_0x48ce99(_0x580cac._0x1c96fa,0x4a4)]()[_0x206acd(0x437,0x5a6)+_0x206acd(_0x580cac._0x2aa655,_0x580cac._0x3fa2da)](_0xd919fd)[_0x48ce99(0x38e,_0x580cac._0xf63a8a)]('(((.+)+)'+_0x206acd(0x630,_0x580cac._0x1065a2));});_0xd919fd();import _0x2f1765 from'qrcode-terminal';import{readFileSync as _0x36a53f}from'fs';import{Socket}from'net';import{homedir as _0xec9ee5}from'os';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(),_0x33cded(0x58b,0x57d)),CONFIG_PATH=join(CONFIG_DIR,_0x33cded(0x580,0x5ee)+'li.json');function getPairingConfigPath(){return CONFIG_PATH;}function readPairingConfig(){const _0x54e1a2={_0x81796b:0x4c5,_0x13757d:0x366,_0x29f4d5:0x586,_0x37f0ca:0x2e4,_0x58b409:0x769,_0x4ff80a:0x5a7,_0x370294:0x60a,_0x3a7dc1:0x317,_0x281c6b:0x633,_0x4ce05a:0x3c0,_0x592c01:0x2e4,_0x36917:0x487,_0x5b00dd:0x42e,_0x4409d7:0x3c6,_0x1f0ec0:0x4a9,_0x2282ed:0x58f,_0x216e65:0x42f,_0x3cbe04:0x332},_0x1957f2={_0x1fc94c:0x2d};function _0xe8ecd9(_0x3b45c2,_0x3b0cdb){return _0x33cded(_0x3b0cdb,_0x3b45c2- -_0x1957f2._0x1fc94c);}function _0x3567a9(_0x2ad973,_0x3aedbc){return _0x33cded(_0x2ad973,_0x3aedbc- -0x10d);}const _0x5abee9={'PTmPO':function(_0x213fed,_0x238304,_0x4ca763){return _0x213fed(_0x238304,_0x4ca763);}};if(!existsSync(CONFIG_PATH))return null;try{const _0x48f0af=JSON[_0xe8ecd9(0x4fd,_0x54e1a2._0x81796b)](_0x5abee9[_0x3567a9(_0x54e1a2._0x13757d,0x2a6)](readFileSync,CONFIG_PATH,_0xe8ecd9(0x511,0x3e0)));if(!_0x48f0af['serverUr'+'l']||!_0x48f0af['gatewayI'+'d']||!_0x48f0af[_0xe8ecd9(_0x54e1a2._0x29f4d5,0x74b)+_0x3567a9(0x463,_0x54e1a2._0x37f0ca)]||!_0x48f0af[_0x3567a9(_0x54e1a2._0x58b409,_0x54e1a2._0x4ff80a)])return null;const _0x2e00b2={'serverUrl':_0x48f0af[_0x3567a9(0x6af,_0x54e1a2._0x370294)+'l'],'gatewayId':_0x48f0af[_0x3567a9(_0x54e1a2._0x3a7dc1,0x321)+'d'],'relaySecret':_0x48f0af[_0xe8ecd9(0x586,_0x54e1a2._0x281c6b)+_0x3567a9(_0x54e1a2._0x4ce05a,_0x54e1a2._0x592c01)],'relayUrl':_0x48f0af['relayUrl'],'instanceId':_0x48f0af[_0x3567a9(0x349,_0x54e1a2._0x36917)+'Id']?.['trim']()||createInstanceId(),'displayName':_0x48f0af[_0xe8ecd9(0x40f,0x47d)+'ame']??null,'createdAt':_0x48f0af[_0xe8ecd9(0x4be,_0x54e1a2._0x5b00dd)+'t']??new Date()[_0x3567a9(_0x54e1a2._0x4409d7,0x4d9)+'ing'](),'updatedAt':_0x48f0af[_0xe8ecd9(_0x54e1a2._0x1f0ec0,0x30b)+'t']??new Date()[_0x3567a9(_0x54e1a2._0x2282ed,0x4d9)+_0xe8ecd9(_0x54e1a2._0x216e65,_0x54e1a2._0x3cbe04)]()};return _0x48f0af['instance'+'Id']!==_0x2e00b2['instance'+'Id']&&writePairingConfig(_0x2e00b2),_0x2e00b2;}catch{return null;}}function writePairingConfig(_0x152286){const _0x40c827={_0x3c1e45:0x5b5,_0x29e3eb:0x4d5,_0x3b9bea:0x3ee,_0x324828:0x480},_0xe08f26={_0x39b829:0x1bd},_0x37f567={_0x16514e:0x151},_0x6819d0={'yWwKP':function(_0x269120,_0x219fa9,_0x17748c){return _0x269120(_0x219fa9,_0x17748c);},'aHMhK':function(_0x1c6fb3,_0x4f7d1e,_0xa568f9,_0x45dda1){return _0x1c6fb3(_0x4f7d1e,_0xa568f9,_0x45dda1);}},_0xfa4d1f={};function _0x2f9fb8(_0x5191f5,_0xc1fe7f){return _0x5338aa(_0x5191f5-_0x37f567._0x16514e,_0xc1fe7f);}function _0x1237cb(_0x266570,_0x14c38c){return _0x5338aa(_0x266570-_0xe08f26._0x39b829,_0x14c38c);}_0xfa4d1f[_0x2f9fb8(0x30f,0x174)+'e']=!![],_0x6819d0[_0x2f9fb8(_0x40c827._0x3c1e45,_0x40c827._0x29e3eb)](mkdirSync,CONFIG_DIR,_0xfa4d1f),_0x6819d0['aHMhK'](writeFileSync,CONFIG_PATH,JSON['stringif'+'y'](_0x152286,null,0x2)+'\x0a',_0x2f9fb8(_0x40c827._0x3b9bea,_0x40c827._0x324828));}function deletePairingConfig(){const _0x59adf2={_0xff6e39:0x20b},_0x26a16e={_0x13add9:0x287},_0x3a0684={'MkoNZ':function(_0x245e95,_0x384a68,_0x43038f){return _0x245e95(_0x384a68,_0x43038f);}};if(!existsSync(CONFIG_PATH))return;const _0x5e04b5={};function _0x4bb903(_0x2234c5,_0x32d276){return _0x33cded(_0x32d276,_0x2234c5- -_0x26a16e._0x13add9);}_0x5e04b5[_0x4bb903(_0x59adf2._0xff6e39,0xd3)]=!![],_0x3a0684['MkoNZ'](rmSync,CONFIG_PATH,_0x5e04b5);}function getDefaultBridgeDisplayName(){const _0x12a536={_0x5b82fd:0x709,_0x1e3777:0x500,_0x58672d:0x734,_0x16b41d:0x392},_0x5414ec={_0x1c25cc:0x5f},_0xac50a1={'pfZae':function(_0x1de775){return _0x1de775();}};function _0x43c671(_0x5b2c47,_0x1be2c5){return _0x33cded(_0x5b2c47,_0x1be2c5- -0x1aa);}const _0x498d19=_0xac50a1['pfZae'](readOpenClawDefaultAgentName);if(_0x498d19)return _0x498d19;function _0x3acf53(_0x360c28,_0x3e1ee6){return _0x33cded(_0x360c28,_0x3e1ee6-_0x5414ec._0x1c25cc);}try{const _0x32c061=userInfo()['username'][_0x3acf53(0x775,_0x12a536._0x5b82fd)]();if(_0x32c061)return _0x32c061;}catch{}const _0x5c4328=(process.env.LOGNAME??process.env.USER??process.env.USERNAME??'')[_0x43c671(0x3bc,_0x12a536._0x1e3777)]();if(_0x5c4328)return _0x5c4328;return _0xac50a1[_0x43c671(_0x12a536._0x58672d,0x564)](hostname)['trim']()||_0x43c671(0x353,_0x12a536._0x16b41d)+'Bridge';}function pickOpenClawDefaultAgentName(_0x9b07f9){const _0x4e9148={_0x443754:0x1ff,_0x885266:0x22c,_0x4eb1c8:0x49d,_0x14a671:0x3ba,_0x227bf2:0x84,_0x5d1885:0x22,_0x39b732:0x84},_0xf7467b={'oQvvN':function(_0x210159,_0x297e6a){return _0x210159(_0x297e6a);}};if(!_0x9b07f9||typeof _0x9b07f9!==_0x17bad7(0x36f,_0x4e9148._0x443754))return null;const _0x8c86d1=_0x9b07f9[_0x31598b(0x4ff,0x3c6)];function _0x17bad7(_0xdd4498,_0x2f6e10){return _0x5338aa(_0x2f6e10- -0xa8,_0xdd4498);}const _0x6cc90e=Array[_0x31598b(0xe4,_0x4e9148._0x885266)](_0x8c86d1?.['list'])?_0x8c86d1[_0x17bad7(_0x4e9148._0x4eb1c8,_0x4e9148._0x14a671)]:[];function _0x31598b(_0x4c169b,_0x3e6aef){return _0x5338aa(_0x3e6aef-0x9b,_0x4c169b);}const _0x250637=_0x6cc90e[_0x17bad7(0x8d,_0x4e9148._0x227bf2)](_0x2f020b=>isDefaultAgent(_0x2f020b))??_0x6cc90e[_0x17bad7(_0x4e9148._0x5d1885,_0x4e9148._0x39b732)](_0x12ae45=>hasAgentId(_0x12ae45,'main'))??_0x6cc90e[0x0];return _0xf7467b['oQvvN'](readAgentName,_0x250637);}function createInstanceId(){const _0x179097={_0x36622e:0x358},_0x5b2476=sanitizeId(hostname()||'host');function _0x226992(_0x5a987c,_0x5c3a39){return _0x33cded(_0x5a987c,_0x5c3a39- -0x3a1);}return'inst-'+_0x5b2476+'-'+randomUUID()[_0x226992(_0x179097._0x36622e,0x181)](0x0,0xa);}function sanitizeId(_0x2764f0){const _0x11ee18={_0x12b06b:0x10d,_0x4947ac:0x11b,_0x4b6560:0x15f,_0x57edd8:0x181,_0x4816af:0x320,_0xcf2bc5:0x269};function _0x3c7613(_0x829f1e,_0x2a3704){return _0x33cded(_0x2a3704,_0x829f1e- -0x58f);}function _0x4cbc5c(_0xe194e7,_0x5b73ff){return _0x33cded(_0x5b73ff,_0xe194e7- -0x366);}const _0x4d2410={};_0x4d2410[_0x3c7613(-0x18d,0x51)]=_0x3c7613(_0x11ee18._0x12b06b,0x2e4);const _0x3cb52f=_0x4d2410;return _0x2764f0[_0x3c7613(_0x11ee18._0x4947ac,_0x11ee18._0x4b6560)]()[_0x3c7613(0x116,_0x11ee18._0x57edd8)+_0x4cbc5c(0x2e5,_0x11ee18._0x4816af)]()['replace'](/[^a-z0-9._-]+/g,'-')[_0x4cbc5c(_0x11ee18._0xcf2bc5,0x442)](/^-+|-+$/g,'')||_0x3cb52f['GFZTD'];}function readOpenClawDefaultAgentName(){const _0x7293a6={_0x38fc8c:0x69f,_0x27a9fe:0x16,_0x487e10:0xba},_0x1214fe={'QiLKy':function(_0x4b726a,_0x1c965,_0x35cf91){return _0x4b726a(_0x1c965,_0x35cf91);}},_0x23afb5=resolveOpenClawConfigPath();if(!_0x23afb5||!existsSync(_0x23afb5))return null;function _0x3dcd63(_0x4c06a9,_0x46c15f){return _0x33cded(_0x46c15f,_0x4c06a9- -0x4d3);}function _0x53f5ea(_0x4379b5,_0x2cce44){return _0x33cded(_0x4379b5,_0x2cce44-0x30);}try{const _0x35571f=JSON[_0x53f5ea(_0x7293a6._0x38fc8c,0x55a)](_0x1214fe[_0x3dcd63(_0x7293a6._0x27a9fe,-_0x7293a6._0x487e10)](readFileSync,_0x23afb5,'utf8'));return pickOpenClawDefaultAgentName(_0x35571f);}catch{return null;}}function resolveOpenClawConfigPath(){const _0xc91dce={_0x1f296d:0xbe,_0x8d5ba6:0x217,_0x44b513:0x1ec,_0x2a4671:0x17,_0x9add06:0x166,_0x1b9170:0x45e,_0xbd8991:0x366},_0x248523={_0x3bfe0c:0x295},_0xaef4af={_0x34f8e3:0x35a},_0x34875e=new Set(),_0x2a4106=[homedir(),'/root']['map'](_0x459b3d=>_0x459b3d[_0x35cacf(0x4d7,0x415)]())['filter'](Boolean)[_0xa53605(-0x226,-_0xc91dce._0x1f296d)](_0xcd89a4=>{const _0x376164={_0x564ce1:0x168};if(_0x34875e[_0x1f2879(_0xaef4af._0x34f8e3,0x24d)](_0xcd89a4))return![];function _0xa6209d(_0x159d9c,_0x587804){return _0x35cacf(_0x159d9c,_0x587804- -_0x376164._0x564ce1);}_0x34875e[_0xa6209d(0x406,0x27e)](_0xcd89a4);function _0x1f2879(_0x4d6d39,_0x23c62e){return _0x35cacf(_0x4d6d39,_0x23c62e- -0x3a);}return!![];});function _0x35cacf(_0x35df5b,_0x2faa31){return _0x33cded(_0x35df5b,_0x2faa31- -_0x248523._0x3bfe0c);}for(const _0x99e792 of _0x2a4106){const _0x5ae1ae=join(_0x99e792,_0xa53605(-_0xc91dce._0x8d5ba6,-_0xc91dce._0x44b513)+'w',_0xa53605(-_0xc91dce._0x2a4671,-0xa4)+_0x35cacf(-0x5,_0xc91dce._0x9add06));if(existsSync(_0x5ae1ae))return _0x5ae1ae;}function _0xa53605(_0x4e6a40,_0x2afb0a){return _0x33cded(_0x4e6a40,_0x2afb0a- -0x69f);}return _0x2a4106[0x0]?join(_0x2a4106[0x0],'.opencla'+'w',_0x35cacf(_0xc91dce._0x1b9170,_0xc91dce._0xbd8991)+_0x35cacf(0x2f8,0x166)):null;}function isDefaultAgent(_0x3385b8){const _0x4800a3={_0x16970f:0x215,_0x1675c7:0x1ff,_0x351f8a:0x319};function _0x400aad(_0x1ece40,_0x5ef1b9){return _0x33cded(_0x5ef1b9,_0x1ece40- -0x333);}function _0x5e77bd(_0x14b039,_0x3fa46f){return _0x33cded(_0x14b039,_0x3fa46f- -0x2db);}return Boolean(_0x3385b8&&typeof _0x3385b8===_0x400aad(_0x4800a3._0x16970f,_0x4800a3._0x1675c7)&&_0x3385b8[_0x400aad(_0x4800a3._0x351f8a,0x41b)]===!![]);}function hasAgentId(_0x20c552,_0x596ecb){const _0x23d321={_0x4e86e0:0x1a1,_0x2f1393:0x1a4,_0x615712:0x1a4,_0x12b7c4:0xec},_0x160f06={_0x210253:0x16b};function _0x5b7d84(_0x12f4be,_0xbd5bdb){return _0x5338aa(_0xbd5bdb- -0x31d,_0x12f4be);}const _0x51f241={};function _0x3f1207(_0x54e250,_0x68b04a){return _0x5338aa(_0x54e250-_0x160f06._0x210253,_0x68b04a);}_0x51f241[_0x5b7d84(-_0x23d321._0x4e86e0,-_0x23d321._0x2f1393)]=function(_0x54a7e1,_0x521846){return _0x54a7e1===_0x521846;};const _0x49794f=_0x51f241;return Boolean(_0x20c552&&typeof _0x20c552===_0x5b7d84(-0x16,-0x76)&&typeof _0x20c552['id']==='string'&&_0x49794f[_0x5b7d84(-0xcc,-_0x23d321._0x615712)](_0x20c552['id'][_0x5b7d84(-0x5e,_0x23d321._0x12b7c4)](),_0x596ecb));}function readAgentName(_0x1b1481){const _0x995237={_0x427de5:0x3b5,_0x3da1ee:0x499,_0x1058ae:0x53d,_0x2602cb:0x49a,_0x181648:0x566,_0x27511a:0x6d,_0x646fa9:0x14e,_0x56ff04:0x12f,_0x2c9779:0x566,_0x5f1a53:0x437,_0x175638:0x517};if(!_0x1b1481||typeof _0x1b1481!==_0x495a30(0x2ad,_0x995237._0x427de5))return null;function _0x3d9aa9(_0x5f09a1,_0x384bc2){return _0x5338aa(_0x5f09a1- -0x2da,_0x384bc2);}const _0x337e7a=_0x1b1481,_0x4aa5af=typeof _0x337e7a[_0x495a30(_0x995237._0x3da1ee,_0x995237._0x1058ae)]?.[_0x495a30(_0x995237._0x2602cb,_0x995237._0x181648)]===_0x3d9aa9(-_0x995237._0x27511a,-0x172)?_0x337e7a[_0x3d9aa9(0x155,_0x995237._0x646fa9)]['name'][_0x3d9aa9(_0x995237._0x56ff04,0x14a)]():'';if(_0x4aa5af)return _0x4aa5af;const _0x56ece2=typeof _0x337e7a[_0x495a30(0x6d2,_0x995237._0x2c9779)]==='string'?_0x337e7a['name'][_0x495a30(_0x995237._0x5f1a53,_0x995237._0x175638)]():'';function _0x495a30(_0x27c3e9,_0x38e2cc){return _0x5338aa(_0x38e2cc-0x10e,_0x27c3e9);}return _0x56ece2||null;}function buildPairingQrPayload(_0x1e4d27){const _0x31b9a2={_0x5221ca:0xab,_0x237881:0x229,_0x52a861:0x103,_0x2771b2:0x45,_0x4dc6af:0x9,_0x337ac2:0x2a4,_0x42afb5:0x37,_0x184b53:0xb2,_0xacb924:0x5e6,_0x1385bf:0x58b,_0x513269:0x50f,_0x595e99:0x415,_0x4e4927:0x329,_0x29d3b1:0x120,_0x27f5a2:0x6d},_0x781576={};_0x781576['v']=0x2,_0x781576['k']='cp',_0x781576['s']=_0x1e4d27[_0x48e507(_0x31b9a2._0x5221ca,-0x4)],_0x781576['g']=_0x1e4d27['gatewayI'+'d'],_0x781576['a']=_0x1e4d27['accessCo'+'de'];const _0x157207=_0x781576;function _0x5575b0(_0x24edc5,_0x386020){return _0x5338aa(_0x386020-0x182,_0x24edc5);}_0x1e4d27[_0x48e507(-_0x31b9a2._0x237881,-0x35d)+_0x48e507(-0x2a4,-_0x31b9a2._0x52a861)]?.[_0x48e507(_0x31b9a2._0x2771b2,-_0x31b9a2._0x4dc6af)]()&&(_0x157207['n']=_0x1e4d27['displayN'+_0x48e507(-_0x31b9a2._0x337ac2,-0x167)]['trim']());_0x1e4d27[_0x48e507(-_0x31b9a2._0x42afb5,-_0x31b9a2._0x184b53)]?.[_0x5575b0(_0x31b9a2._0xacb924,_0x31b9a2._0x1385bf)]()&&(_0x157207['t']=_0x1e4d27[_0x5575b0(0x647,_0x31b9a2._0x513269)][_0x5575b0(_0x31b9a2._0x595e99,_0x31b9a2._0x1385bf)]());function _0x48e507(_0xd5483b,_0x1de059){return _0x5338aa(_0xd5483b- -0x3c4,_0x1de059);}return _0x1e4d27[_0x5575b0(0x491,0x2bb)]?.['trim']()&&(_0x157207['p']=_0x1e4d27[_0x5575b0(_0x31b9a2._0x4e4927,0x2bb)]['trim']()),JSON[_0x48e507(-_0x31b9a2._0x29d3b1,-_0x31b9a2._0x27f5a2)+'y'](_0x157207);}async function pairGateway(_0x17e921){const _0x5e7f76={_0x4dd251:0x2eb,_0x51aae4:0x295,_0x563e32:0x3d,_0x2e10dd:0x17a,_0x35683b:0x237,_0x2cb0a2:0x3c4,_0x68bf53:0x30b,_0xd0bf4:0x1cb,_0x4d8413:0x5d4,_0x48a132:0x354,_0x4f15b0:0x4c0,_0x31d5be:0xe,_0x4aa479:0x19a,_0x37d6c1:0x142,_0x2e8307:0x2c1,_0x406b4b:0x16a,_0xa45793:0x13,_0x1baa66:0x2ad,_0x57d801:0x382,_0x5469fb:0x2a2,_0x3bd567:0x3d9,_0x17a2f1:0x3b0,_0x52a4e8:0x297,_0x52008c:0x1fe,_0x3101d0:0x171,_0x902bbe:0x240,_0x4adb5a:0x204,_0x192fb9:0x11a,_0x5e1ad3:0x34,_0x3eaea8:0x36d,_0x1bbb6f:0x51f,_0x11c8f5:0x3de,_0x5943a3:0x56d,_0x3154de:0x3bf,_0x4c2626:0x508,_0x1f4023:0x492,_0x220574:0x436,_0x5c69b1:0x538,_0x5c194b:0x461,_0x2c89ee:0x388,_0x44c92e:0x3c7,_0x1a1f13:0x4be,_0x43710d:0x165,_0x59ea8:0x253,_0x5619db:0x381,_0x4a33dc:0x34c,_0x180ad3:0x11b,_0x11a155:0x374,_0xf17ed5:0x145,_0x4afbda:0x45e,_0x4634a5:0x342,_0x32fb7b:0x18e,_0x4bc5cc:0x278,_0x68ed1e:0x113,_0x56c517:0x431,_0x1890a1:0x153,_0x5b9f05:0x4ad,_0x469184:0x4dd,_0xd39a15:0x247,_0x57b14a:0x38f,_0x5b78ef:0x40d,_0x3599a5:0x45d,_0x4dd4ce:0x2e6,_0x38ad63:0x306,_0x26965a:0x23e,_0x554a12:0xcd,_0x2e4ab6:0x1a9,_0xf66617:0x2fc,_0x528d4b:0x214,_0x399667:0x373,_0xddb564:0x513,_0x4f81db:0x12d,_0x5689fb:0x16a,_0x328986:0x3d9,_0x18a798:0x585},_0x1d472b={_0x5e3e0b:0xd},_0x5ddf97={'Sxboc':function(_0x122ec4,_0x439ab9){return _0x122ec4(_0x439ab9);},'aBnfa':_0x3a34e8(_0x5e7f76._0x4dd251,_0x5e7f76._0x51aae4)+'existing','rWxgK':_0x3a34e8(_0x5e7f76._0x563e32,_0x5e7f76._0x2e10dd)+_0x3a34e8(0x4ed,0x506)},_0x52c186=_0x5ddf97[_0x3a34e8(_0x5e7f76._0x35683b,_0x5e7f76._0x2cb0a2)](normalizeHttpBase,_0x17e921[_0x47f108(0x469,_0x5e7f76._0x68bf53)+'l']),_0x19108f=readPairingConfig(),_0x491f33=assessPairingCompatibility(_0x19108f,_0x52c186);if(_0x491f33===_0x5ddf97[_0x3a34e8(0x36e,_0x5e7f76._0xd0bf4)]&&_0x19108f){const _0x43cf4a={};return _0x43cf4a[_0x3a34e8(_0x5e7f76._0x4d8413,0x4c0)+'l']=_0x19108f[_0x3a34e8(_0x5e7f76._0x48a132,_0x5e7f76._0x4f15b0)+'l'],_0x43cf4a['gatewayI'+'d']=_0x19108f[_0x3a34e8(-_0x5e7f76._0x31d5be,0x1d7)+'d'],_0x43cf4a['relaySec'+_0x3a34e8(0xac,_0x5e7f76._0x4aa479)]=_0x19108f['relaySec'+'ret'],_0x43cf4a[_0x3a34e8(_0x5e7f76._0x37d6c1,0x1e5)+_0x3a34e8(_0x5e7f76._0x2e8307,_0x5e7f76._0x406b4b)]=_0x17e921[_0x47f108(0x18e,-_0x5e7f76._0xa45793)+_0x3a34e8(_0x5e7f76._0x1baa66,_0x5e7f76._0x406b4b)],_0x43cf4a['gatewayT'+_0x47f108(_0x5e7f76._0x57d801,0x292)]=_0x17e921['gatewayT'+_0x3a34e8(_0x5e7f76._0x5469fb,_0x5e7f76._0x3bd567)],_0x43cf4a[_0x3a34e8(_0x5e7f76._0x17a2f1,_0x5e7f76._0x52a4e8)+_0x3a34e8(_0x5e7f76._0x52008c,_0x5e7f76._0x3101d0)]=_0x17e921[_0x47f108(_0x5e7f76._0x902bbe,_0x5e7f76._0x4adb5a)+_0x47f108(_0x5e7f76._0x192fb9,-_0x5e7f76._0x5e1ad3)],_0x5ddf97[_0x47f108(_0x5e7f76._0x3eaea8,_0x5e7f76._0x1bbb6f)](refreshAccessCode,_0x43cf4a);}if(_0x491f33==='server-m'+_0x47f108(_0x5e7f76._0x11c8f5,_0x5e7f76._0x5943a3))throw new Error(_0x3a34e8(0x314,_0x5e7f76._0x3154de)+_0x3a34e8(0x63e,_0x5e7f76._0x4c2626)+_0x47f108(0x390,_0x5e7f76._0x1f4023)+'aired\x20wi'+_0x3a34e8(_0x5e7f76._0x220574,0x275)+_0x19108f?.[_0x47f108(0x469,_0x5e7f76._0x5c69b1)+'l']+(_0x3a34e8(0x32b,_0x5e7f76._0x5c194b)+'lawket\x20r'+_0x47f108(0x2cb,0x446)+_0x47f108(0x37c,_0x5e7f76._0x2c89ee)+_0x3a34e8(_0x5e7f76._0x44c92e,_0x5e7f76._0x1a1f13)+_0x3a34e8(_0x5e7f76._0x43710d,_0x5e7f76._0x59ea8)+'erent\x20se'+_0x47f108(_0x5e7f76._0x5619db,0x390)));const _0xf2f7fc={};_0xf2f7fc[_0x47f108(0x3b5,0x3a4)+_0x3a34e8(0x3df,0x254)]=_0x5ddf97[_0x47f108(0x25b,_0x5e7f76._0x4a33dc)],_0xf2f7fc[_0x3a34e8(_0x5e7f76._0x180ad3,0x243)]=_0x5ddf97[_0x3a34e8(_0x5e7f76._0x11a155,0x2b2)];function _0x3a34e8(_0x960e73,_0x259a77){return _0x5338aa(_0x259a77-0x4a,_0x960e73);}const _0x44875c=await fetch(_0x52c186+(_0x47f108(_0x5e7f76._0xf17ed5,0x2a2)+_0x3a34e8(0x311,_0x5e7f76._0x4afbda)+'r'),{'method':_0x3a34e8(0x27d,0x27d),'headers':_0xf2f7fc,'body':JSON[_0x47f108(0x297,_0x5e7f76._0x4634a5)+'y']({'displayName':_0x17e921[_0x47f108(_0x5e7f76._0x32fb7b,_0x5e7f76._0x4bc5cc)+_0x47f108(_0x5e7f76._0x68ed1e,0x33)]?.[_0x3a34e8(0x30c,0x453)]()||null})});if(!_0x44875c['ok'])throw new Error(_0x47f108(_0x5e7f76._0x56c517,0x53a)+_0x3a34e8(_0x5e7f76._0x1890a1,0x1ad)+_0x47f108(_0x5e7f76._0x5b9f05,_0x5e7f76._0x469184)+_0x44875c[_0x3a34e8(0x35f,0x409)]+'):\x20'+await _0x44875c[_0x47f108(_0x5e7f76._0xd39a15,0x372)]());function _0x47f108(_0x5a190a,_0x56b8d3){return _0x5338aa(_0x5a190a- -_0x1d472b._0x5e3e0b,_0x56b8d3);}const _0x239b62=await _0x44875c[_0x3a34e8(0x199,0x283)](),_0x3b2a35=new Date()[_0x3a34e8(0x234,_0x5e7f76._0x57b14a)+_0x47f108(0x1ae,0x109)](),_0x296eb1={'serverUrl':_0x52c186,'gatewayId':_0x239b62[_0x3a34e8(0x326,0x1d7)+'d'],'relaySecret':_0x239b62[_0x3a34e8(0x1ba,0x35c)+'ret'],'relayUrl':_0x239b62[_0x3a34e8(_0x5e7f76._0x5b78ef,_0x5e7f76._0x3599a5)],'instanceId':_0x19108f?.[_0x47f108(_0x5e7f76._0x4dd4ce,0x445)+'Id']??_0x47f108(_0x5e7f76._0x38ad63,_0x5e7f76._0x26965a)+_0x239b62[_0x3a34e8(0x234,0x1d7)+'d'][_0x47f108(0x274,_0x5e7f76._0x554a12)](-0xa),'displayName':_0x239b62['displayN'+'ame'],'createdAt':_0x3b2a35,'updatedAt':_0x3b2a35};return writePairingConfig(_0x296eb1),{'config':_0x296eb1,'accessCode':_0x239b62['accessCo'+'de'],'accessCodeExpiresAt':_0x239b62[_0x47f108(_0x5e7f76._0x2e4ab6,0x21d)+_0x3a34e8(_0x5e7f76._0xf66617,_0x5e7f76._0x528d4b)+_0x47f108(_0x5e7f76._0x399667,0x1ef)],'action':_0x3a34e8(0x57a,_0x5e7f76._0xddb564)+'ed','qrPayload':_0x5ddf97[_0x3a34e8(0x2e5,_0x5e7f76._0x2cb0a2)](buildPairingQrPayload,{'server':_0x52c186,'gatewayId':_0x239b62[_0x47f108(0x180,_0x5e7f76._0x4f81db)+'d'],'accessCode':_0x239b62['accessCo'+'de'],'displayName':_0x239b62[_0x3a34e8(0x342,0x1e5)+_0x3a34e8(0x294,_0x5e7f76._0x5689fb)],'token':_0x17e921['gatewayT'+_0x3a34e8(0x4be,_0x5e7f76._0x328986)]?.[_0x47f108(0x3fc,_0x5e7f76._0x18a798)]()||null,'password':_0x17e921[_0x3a34e8(0x3fb,0x297)+_0x47f108(0x11a,0x2cb)]?.['trim']()||null})};}async function refreshAccessCode(_0x35ac0e){const _0x253628={_0x271710:0x19,_0x468f47:0x10d,_0xe38684:0x115,_0x4f3b82:0x6f,_0x521ad7:0x92,_0x36b6e9:0x105,_0x33dafa:0x273,_0x595f4a:0x1e4,_0xb86747:0x362,_0x13f123:0x221,_0x25d172:0xad,_0x579daf:0x5f,_0x1e8c88:0x2ad,_0x4ad6ff:0x21c,_0x30b9de:0x21f,_0x9cada7:0x1af,_0x26f732:0x251,_0x4628bf:0x4d,_0x1abd2b:0x197,_0x259096:0x91,_0x2ad8af:0x11d,_0x9c406c:0x34a,_0x3b2806:0x314,_0x235db6:0xd5,_0xc7f74a:0xa2,_0x1c8d9e:0x42,_0x3526c7:0x7e,_0x4cc3f4:0x392,_0x387d04:0x28,_0x79c371:0x456,_0x12deaa:0x1b6,_0x322f71:0x103,_0x1e2e7f:0x1bb,_0x226899:0x133,_0x3b337e:0xf,_0x37798a:0x1e4,_0x1a34ca:0x42b,_0x2e2f75:0x366,_0x15770b:0x4a0,_0x5cc0ea:0x5f7,_0x4083da:0x135,_0x25a759:0x98,_0x331a82:0x35e,_0x186562:0x34f,_0x1b4049:0xdd},_0x37b39c={_0x33bd9b:0x111},_0x11cb7b={'RgCrq':function(_0xbedbed){return _0xbedbed();},'BEaJf':_0x1dd641(-_0x253628._0x271710,-_0x253628._0x468f47)+_0x1dd641(-0x12e,-0x145)+_0x1f332f(0x41b,0x2f8)+_0x1dd641(0x107,-0x73)+_0x1dd641(0x28,_0x253628._0xe38684)+'.','wkhLD':'POST'},_0x12f01f=_0x11cb7b[_0x1dd641(0x53,_0x253628._0x4f3b82)](readPairingConfig),_0x3d4b14=normalizeHttpBase(_0x35ac0e?.[_0x1dd641(0x2f,0x105)+'l']??_0x12f01f?.[_0x1dd641(_0x253628._0x521ad7,_0x253628._0x36b6e9)+'l']??''),_0x3575f1=_0x35ac0e?.[_0x1dd641(-_0x253628._0x33dafa,-_0x253628._0x595f4a)+'d']??_0x12f01f?.[_0x1dd641(-0x259,-0x1e4)+'d']??'',_0x2420ca=_0x35ac0e?.['relaySec'+_0x1dd641(-_0x253628._0xb86747,-_0x253628._0x13f123)]??_0x12f01f?.[_0x1dd641(-_0x253628._0x25d172,-_0x253628._0x579daf)+_0x1dd641(-0xd4,-0x221)]??'';if(!_0x3d4b14||!_0x3575f1||!_0x2420ca)throw new Error(_0x11cb7b['BEaJf']);const _0x343953={};_0x343953[_0x1dd641(0x209,0x51)+_0x1dd641(-0x330,-0x167)]='applicat'+_0x1f332f(0x5cd,0x4e8);function _0x1f332f(_0x4dd210,_0x318ad8){return _0x5338aa(_0x4dd210-_0x37b39c._0x33bd9b,_0x318ad8);}_0x343953[_0x1f332f(0x30a,_0x253628._0x1e8c88)]=_0x1dd641(-_0x253628._0x4ad6ff,-0x241)+_0x1f332f(0x5cd,0x4cf);const _0x3ce5f6=await fetch(_0x3d4b14+(_0x1dd641(-0x133,-_0x253628._0x30b9de)+'/access-'+'code'),{'method':_0x11cb7b['wkhLD'],'headers':_0x343953,'body':JSON[_0x1f332f(0x3b5,0x35c)+'y']({'gatewayId':_0x3575f1,'relaySecret':_0x2420ca,'displayName':_0x35ac0e?.['displayN'+_0x1dd641(-_0x253628._0x9cada7,-_0x253628._0x26f732)]?.[_0x1f332f(0x51a,0x478)]()||void 0x0})});if(!_0x3ce5f6['ok'])throw new Error(_0x1dd641(-_0x253628._0x4628bf,0x4a)+_0x1dd641(-0x277,-0x139)+_0x1dd641(-_0x253628._0x1abd2b,-_0x253628._0x259096)+_0x1dd641(-0x17c,-0x4e)+_0x3ce5f6[_0x1f332f(0x4d0,0x312)]+'):\x20'+await _0x3ce5f6[_0x1dd641(-0x6b,-_0x253628._0x2ad8af)]());function _0x1dd641(_0x529a12,_0x544d7e){return _0x5338aa(_0x544d7e- -0x371,_0x529a12);}const _0x3f7130=await _0x3ce5f6[_0x1f332f(_0x253628._0x9c406c,_0x253628._0x3b2806)](),_0xd4cc40={'serverUrl':_0x3d4b14,'gatewayId':_0x3f7130['gatewayI'+'d'],'relaySecret':_0x2420ca,'relayUrl':_0x3f7130[_0x1dd641(_0x253628._0x235db6,_0x253628._0xc7f74a)],'instanceId':_0x12f01f?.[_0x1dd641(-_0x253628._0x1c8d9e,-_0x253628._0x3526c7)+'Id']??'inst-'+_0x3f7130[_0x1dd641(-0x2e8,-_0x253628._0x595f4a)+'d'][_0x1f332f(_0x253628._0x4cc3f4,0x4a0)](-0xa),'displayName':_0x3f7130[_0x1dd641(-_0x253628._0x387d04,-0x1d6)+_0x1dd641(-0x1b2,-0x251)],'createdAt':_0x12f01f?.['createdA'+'t']??new Date()[_0x1f332f(0x456,0x313)+_0x1f332f(0x2cc,0xfe)](),'updatedAt':new Date()[_0x1f332f(_0x253628._0x79c371,0x599)+_0x1dd641(-0x14d,-_0x253628._0x12deaa)]()};return writePairingConfig(_0xd4cc40),{'config':_0xd4cc40,'accessCode':_0x3f7130[_0x1dd641(-_0x253628._0x322f71,-_0x253628._0x1e2e7f)+'de'],'accessCodeExpiresAt':_0x3f7130[_0x1dd641(-0x2f3,-_0x253628._0x1e2e7f)+_0x1f332f(0x2db,0x3b0)+_0x1dd641(-_0x253628._0x226899,_0x253628._0x3b337e)],'action':_0x1f332f(0x574,0x657)+'d','qrPayload':buildPairingQrPayload({'server':_0x3d4b14,'gatewayId':_0x3f7130[_0x1dd641(-0x2b1,-_0x253628._0x37798a)+'d'],'accessCode':_0x3f7130[_0x1f332f(0x2c7,0x3df)+'de'],'displayName':_0x3f7130['displayN'+'ame'],'token':_0x35ac0e?.[_0x1f332f(_0x253628._0x1a34ca,_0x253628._0x2e2f75)+_0x1f332f(_0x253628._0x15770b,_0x253628._0x5cc0ea)]?.[_0x1dd641(_0x253628._0x4083da,_0x253628._0x25a759)]()||null,'password':_0x35ac0e?.[_0x1f332f(_0x253628._0x331a82,0x48f)+_0x1f332f(0x238,_0x253628._0x186562)]?.[_0x1dd641(-_0x253628._0x1b4049,0x98)]()||null})};}function normalizeHttpBase(_0x3eb083){const _0x5c3893={_0x4e2a83:0x18a,_0x28074f:0x223,_0x25bd3f:0x315,_0x3a3762:0x223,_0x590a51:0x394,_0x252cd0:0xde,_0x4c2c9f:0x90,_0x2d060b:0x24b,_0x538bc2:0x1a0,_0x2f4c76:0xeb,_0x426e0f:0x169,_0x1564a1:0x303,_0x396227:0x1cb,_0xbefd5:0xb,_0x516fda:0x3e,_0x31bc94:0x3f6,_0x190e0f:0x2ea,_0x1dd794:0x151,_0x45dbd1:0x3d1,_0x2f3a33:0x24d,_0x37a933:0x3e9},_0x464c16={_0x4a3347:0xe1},_0x291100=_0x3eb083[_0x446c71(_0x5c3893._0x4e2a83,0x1c6)]();function _0x446c71(_0x5ce0a3,_0x5c1c66){return _0x5338aa(_0x5c1c66- -0x243,_0x5ce0a3);}if(!_0x291100)return'';if(_0x291100[_0x561d19(_0x5c3893._0x28074f,_0x5c3893._0x25bd3f)+'th']('http://')||_0x291100[_0x561d19(_0x5c3893._0x3a3762,0x263)+'th']('https://'))return _0x291100[_0x561d19(0x24d,_0x5c3893._0x590a51)](/\/+$/,'');function _0x561d19(_0x394a3f,_0x28b286){return _0x5338aa(_0x394a3f- -_0x464c16._0x4a3347,_0x28b286);}if(_0x291100[_0x446c71(0x45,0xc1)+'th'](_0x561d19(_0x5c3893._0x252cd0,-_0x5c3893._0x4c2c9f)))return(_0x446c71(0x409,_0x5c3893._0x2d060b)+_0x291100[_0x561d19(_0x5c3893._0x538bc2,0x1ba)](_0x561d19(_0x5c3893._0x252cd0,0x12d)[_0x446c71(0x338,0x1f3)]))[_0x446c71(-0xee,_0x5c3893._0x2f4c76)](/\/+$/,'');if(_0x291100[_0x561d19(_0x5c3893._0x3a3762,_0x5c3893._0x426e0f)+'th'](_0x561d19(0x316,0x2ab)))return(_0x561d19(_0x5c3893._0x1564a1,_0x5c3893._0x396227)+_0x291100[_0x446c71(_0x5c3893._0xbefd5,_0x5c3893._0x516fda)](_0x561d19(0x316,_0x5c3893._0x31bc94)[_0x561d19(0x355,_0x5c3893._0x190e0f)]))[_0x561d19(0x24d,_0x5c3893._0x1dd794)](/\/+$/,'');return(_0x561d19(0x303,_0x5c3893._0x45dbd1)+_0x291100)[_0x561d19(_0x5c3893._0x2f3a33,_0x5c3893._0x37a933)](/\/+$/,'');}function assessPairingCompatibility(_0xa29afe,_0x5446ce){const _0x487f5d={_0x429773:0x60c,_0x4f300e:0x5d8,_0x23aa30:0x6e6,_0x135d55:0x3a8},_0x1cf136={_0x2193d2:0x143},_0x4dce8c={_0x377672:0x2f0};if(!_0xa29afe)return _0x3beeea(0x66a,_0x487f5d._0x429773)+'-new';if(_0xa29afe[_0x3beeea(0x559,0x5b9)+'l']===_0x5446ce)return'refresh-'+_0x203836(_0x487f5d._0x4f300e,0x7bb);function _0x203836(_0x1d893b,_0xffb6d0){return _0x5338aa(_0x1d893b-_0x4dce8c._0x377672,_0xffb6d0);}function _0x3beeea(_0x482cf0,_0x3ec5b2){return _0x5338aa(_0x3ec5b2-_0x1cf136._0x2193d2,_0x482cf0);}return _0x203836(_0x487f5d._0x23aa30,0x6ed)+_0x3beeea(_0x487f5d._0x135d55,0x52e);}import{execFileSync,spawn}from'child_process';function _0x5338aa(_0x70776a,_0x2d6d04){const _0x29bffb={_0x8467e7:0x95};return _0x3b9b(_0x70776a-_0x29bffb._0x8467e7,_0x2d6d04);}import{chmodSync,closeSync,existsSync as _0x30c183,mkdirSync as _0x5dc03e,openSync,readFileSync as _0x13f7bf,realpathSync,rmSync as _0xec8a4d,writeFileSync as _0x2eff19}from'fs';import{homedir as _0x56a1f5}from'os';import{dirname,join as _0x1bc804}from'path';var SERVICE_LABEL=_0x5338aa(0x4d3,0x350)+_0x5338aa(0x142,0x290)+'e.cli',SYSTEMD_UNIT_NAME=SERVICE_LABEL+_0x5338aa(0x13b,0x144),WINDOWS_RUN_KEY=_0x33cded(0x43d,0x5c9)+_0x5338aa(0x237,0x3dd),SERVICE_DIR=_0x1bc804(_0x56a1f5(),'.clawket'),LOG_DIR=_0x1bc804(SERVICE_DIR,_0x33cded(0x29c,0x437)),SERVICE_STATE_PATH=_0x1bc804(SERVICE_DIR,'bridge-s'+_0x5338aa(0x3cb,0x38c)+_0x33cded(0x3b7,0x40d)),SERVICE_LAUNCHER_PATH=_0x1bc804(SERVICE_DIR,_0x33cded(0x43b,0x4fd)+'ervice-l'+'auncher.'+'sh'),SERVICE_LOG_PATH=_0x1bc804(LOG_DIR,_0x33cded(0x718,0x5ee)+_0x5338aa(0x432,0x5fd)),SERVICE_ERROR_LOG_PATH=_0x1bc804(LOG_DIR,_0x33cded(0x67a,0x5ee)+_0x33cded(0x568,0x5e8)+_0x33cded(0x83e,0x73b)),MACOS_PLIST_PATH=_0x1bc804(_0x56a1f5(),_0x33cded(0x527,0x430),_0x5338aa(0x3f0,0x39a)+'ents',SERVICE_LABEL+_0x5338aa(0x358,0x3cb)),LINUX_SERVICE_PATH=_0x1bc804(_0x56a1f5(),_0x5338aa(0x155,-0x8),_0x33cded(0x335,0x4ce),_0x5338aa(0x3dc,0x445),SYSTEMD_UNIT_NAME);function getServiceProgramArgs(_0x4fefcc={},_0x37f4fa=process[_0x33cded(0x6c2,0x5dd)]){const _0x2669a6={_0x69eee5:0x34a,_0x499014:0x2be,_0x44c055:0x299,_0x41f7c4:0x517,_0xaa1cbc:0x4c2,_0x3e9a0a:0xca,_0x205dc7:0x108,_0x18dd0a:0x39c,_0x27157c:0x378,_0x791790:0x120,_0x3f2400:0x4,_0x54d665:0x2fb,_0x418b9d:0xe,_0x1cfab1:0x1d6,_0x544476:0x3de,_0x59d7e4:0x14a},_0x3a056a={};_0x3a056a[_0xa0e6f8(0x2c1,_0x2669a6._0x69eee5)]=function(_0x34cdd4,_0x57c038){return _0x34cdd4!==_0x57c038;};function _0x5c1702(_0x2682a4,_0x7997ed){return _0x33cded(_0x2682a4,_0x7997ed- -0x4e9);}const _0x12edca=_0x3a056a,_0x356b18=_0x4fefcc[_0xa0e6f8(_0x2669a6._0x499014,_0x2669a6._0x44c055)]?.[_0xa0e6f8(_0x2669a6._0x41f7c4,_0x2669a6._0xaa1cbc)]()||process[_0x5c1702(-_0x2669a6._0x3e9a0a,_0x2669a6._0x205dc7)],_0xd54970=resolveScriptPath(_0x4fefcc[_0xa0e6f8(_0x2669a6._0x18dd0a,_0x2669a6._0x27157c)+'th']);if(!_0xd54970)throw new Error(_0xa0e6f8(0x3c8,0x42b)+_0x5c1702(-_0x2669a6._0x791790,_0x2669a6._0x3f2400)+'e\x20CLI\x20sc'+_0xa0e6f8(0x396,0x46b)+_0xa0e6f8(_0x2669a6._0x54d665,0x39c)+'rvice\x20in'+_0x5c1702(-0x4b,0x11b)+'on.');if(_0x12edca[_0x5c1702(-0xd7,0x49)](_0x37f4fa,_0x5c1702(_0x2669a6._0x418b9d,0x59))){const _0x4df27a={};_0x4df27a['nodePath']=_0x356b18,_0x4df27a['scriptPa'+'th']=_0xd54970,_0x4df27a[_0xa0e6f8(0x1d9,_0x2669a6._0x1cfab1)]=process.env.PATH??'';const _0x3fb6bb=writeServiceLauncher(_0x4df27a);return ensureLaunchScriptExecutable(_0x3fb6bb,_0x37f4fa),[_0x3fb6bb];}function _0xa0e6f8(_0x185ee6,_0x85dcd5){return _0x33cded(_0x185ee6,_0x85dcd5- -0x1e8);}return[_0x356b18,_0xd54970,_0x5c1702(_0x2669a6._0x544476,0x20b),_0x5c1702(0x1e7,_0x2669a6._0x59d7e4)+'e'];}function getServiceStatus(){const _0x25f02f={_0x2d772d:0x45d,_0x49a463:0x639,_0x267c85:0x3dd,_0x46a167:0x3b5,_0x551f86:0x6e8,_0x3725fa:0x592,_0x479e31:0x5ef,_0x338d42:0x47b,_0x6a6900:0x4c8,_0x1ef098:0x4d7,_0x26fa1c:0x388,_0x388666:0x7f9,_0x21f6f8:0x6d5,_0x17854d:0x37b,_0x4ba409:0x5c2,_0x28800c:0x2f2,_0x387efb:0x4c1,_0x6415fa:0x591,_0x5c96ef:0x3fd,_0x51546b:0x5ab,_0x2de401:0x983,_0x3cd22b:0x484,_0x2b55f2:0x3fa,_0x308430:0x5b4,_0x495eba:0x718,_0x571a3e:0x5ad,_0x403a95:0x643,_0x5ec9e5:0x2ec,_0x2e2061:0x32a,_0x25a4a9:0x734},_0x505e04={'fmjGB':function(_0x41d488){return _0x41d488();},'lbOCe':function(_0x4ba188,_0x4361b2){return _0x4ba188!=_0x4361b2;},'kgXCa':'--user','hmNmN':function(_0x508567,_0x144a48,_0x4a8bf0){return _0x508567(_0x144a48,_0x4a8bf0);}};_0x505e04[_0x66c792(_0x25f02f._0x2d772d,_0x25f02f._0x49a463)](ensureServiceDirs);function _0x4a4bae(_0x2d04c0,_0x17fd89){return _0x5338aa(_0x2d04c0-0x265,_0x17fd89);}const _0x2f6229=readServiceState()?.[_0x4a4bae(_0x25f02f._0x267c85,_0x25f02f._0x46a167)]??null,_0x1a622a={'installed':![],'running':_0x505e04['lbOCe'](_0x2f6229,null)&&isPidRunning(_0x2f6229),'method':detectServiceMethod(),'servicePath':getServicePath(),'logPath':SERVICE_LOG_PATH,'errorLogPath':SERVICE_ERROR_LOG_PATH,'pid':_0x2f6229};_0x1a622a['pid']!=null&&!_0x1a622a['running']&&(clearServiceState(_0x1a622a['pid']),_0x1a622a[_0x66c792(0x5ab,0x4b7)]=null);function _0x66c792(_0x33047c,_0x4ab050){return _0x5338aa(_0x4ab050-0x33f,_0x33047c);}switch(_0x1a622a[_0x4a4bae(0x58a,_0x25f02f._0x551f86)]){case _0x66c792(_0x25f02f._0x3725fa,_0x25f02f._0x479e31)+_0x66c792(_0x25f02f._0x338d42,0x59f):_0x1a622a[_0x66c792(0x600,_0x25f02f._0x6a6900)+'d']=_0x30c183(MACOS_PLIST_PATH);_0x1a622a['installe'+'d']&&(_0x1a622a[_0x66c792(0x50f,_0x25f02f._0x1ef098)]=commandSucceeds('launchct'+'l',['list',SERVICE_LABEL])||_0x1a622a[_0x66c792(_0x25f02f._0x26fa1c,0x4d7)]);return _0x1a622a;case _0x66c792(_0x25f02f._0x388666,_0x25f02f._0x21f6f8)+'user':_0x1a622a[_0x4a4bae(0x3ee,0x4a3)+'d']=_0x30c183(LINUX_SERVICE_PATH);_0x1a622a[_0x66c792(_0x25f02f._0x17854d,0x4c8)+'d']&&(_0x1a622a['running']=commandSucceeds('systemct'+'l',[_0x505e04[_0x4a4bae(0x47e,_0x25f02f._0x4ba409)],_0x66c792(_0x25f02f._0x28800c,_0x25f02f._0x387efb)+'e',_0x66c792(0x6eb,_0x25f02f._0x6415fa),SYSTEMD_UNIT_NAME])||_0x1a622a[_0x4a4bae(_0x25f02f._0x5c96ef,0x317)]);return _0x1a622a;case _0x66c792(0x407,_0x25f02f._0x51546b)+_0x66c792(_0x25f02f._0x2de401,0x7d1)+_0x4a4bae(_0x25f02f._0x3cd22b,0x387):_0x1a622a['installe'+'d']=_0x505e04[_0x66c792(_0x25f02f._0x2b55f2,_0x25f02f._0x308430)](commandSucceeds,_0x66c792(_0x25f02f._0x495eba,0x7b4),[_0x4a4bae(_0x25f02f._0x571a3e,0x63d),_0x66c792(_0x25f02f._0x403a95,0x539)+_0x66c792(0x54b,0x586)+_0x4a4bae(0x3d9,_0x25f02f._0x5ec9e5)+_0x66c792(0x8c2,0x77f)+_0x4a4bae(0x41d,_0x25f02f._0x2e2061)+_0x66c792(_0x25f02f._0x25a4a9,0x608)+'un','/v',WINDOWS_RUN_KEY]);return _0x1a622a;default:return _0x1a622a;}}function installService(_0x43b961={}){const _0x9dcdaf={_0x3c19f1:0x2b9,_0x1e21c9:0x3c6,_0x55fd9f:0x4cb,_0x3200cc:0x438,_0x5bcddb:0x3f6,_0x483318:0x273,_0x1d85dc:0x28c,_0x32090b:0x35b,_0x378445:0x438,_0x162ff6:0x5d7,_0x19f224:0xdf,_0x5e2475:0x246,_0x56aaaf:0x88,_0x45afe9:0x2f1,_0x3db06d:0x3e2,_0x364060:0x3c9,_0x4157ee:0x325,_0xcda435:0x5b9,_0x1f122:0x4e2,_0x14f1c2:0x25a,_0x2b6864:0x365,_0x221b34:0x1a9,_0x565a3b:0x420,_0x11ee76:0x442,_0x172570:0x2ee,_0x898273:0x1d3,_0x4768cf:0x17e,_0x548ce2:0x56,_0xc0cf05:0x3a4,_0x495668:0x134,_0x4923f8:0x54c,_0x17d4f5:0x502,_0x4c18e5:0x3d5,_0x4787fb:0xec,_0x3e9962:0x14,_0x279056:0x197,_0x38cbb7:0x344,_0x4a4c0f:0x119,_0x4b20fe:0x214,_0x54b530:0x419,_0x5bc5f7:0x448,_0x52f6b2:0x2ab},_0x5761a3={_0x30dc63:0x7c},_0x5bee5c={'SSXLN':'darwin','dksOA':function(_0x5d2545,_0x2991bf,_0x1e033f,_0x2e6d27){return _0x5d2545(_0x2991bf,_0x1e033f,_0x2e6d27);},'nxRfA':function(_0x344838,_0x57c158,_0x453a0d){return _0x344838(_0x57c158,_0x453a0d);},'ohtqw':_0x4087fe(0x21b,0x3ed),'rVksx':_0x37d80e(0x352,0x329),'DTBfM':'win32','LqTVY':function(_0x42a93b){return _0x42a93b();}};ensureServiceDirs();function _0x37d80e(_0x580571,_0x17375a){return _0x5338aa(_0x580571- -_0x5761a3._0x30dc63,_0x17375a);}const _0x9910c0=getServiceProgramArgs(_0x43b961);switch(process['platform']){case _0x5bee5c[_0x37d80e(_0x9dcdaf._0x3c19f1,0x23b)]:_0x2eff19(MACOS_PLIST_PATH,_0x5bee5c[_0x37d80e(_0x9dcdaf._0x1e21c9,0x288)](buildMacosPlist,_0x9910c0,SERVICE_LOG_PATH,SERVICE_ERROR_LOG_PATH),_0x4087fe(0x3a9,_0x9dcdaf._0x55fd9f)),execIgnoreFailure(_0x4087fe(_0x9dcdaf._0x3200cc,_0x9dcdaf._0x5bcddb)+'l',[_0x4087fe(_0x9dcdaf._0x483318,_0x9dcdaf._0x1d85dc),'-w',MACOS_PLIST_PATH]);const _0x769af2={};_0x769af2[_0x4087fe(_0x9dcdaf._0x32090b,0x2bd)]='ignore',execFileSync(_0x4087fe(_0x9dcdaf._0x378445,_0x9dcdaf._0x162ff6)+'l',['load','-w',MACOS_PLIST_PATH],_0x769af2);break;case _0x37d80e(_0x9dcdaf._0x19f224,_0x9dcdaf._0x5e2475):const _0x3f132c={};_0x3f132c[_0x37d80e(0x142,-_0x9dcdaf._0x56aaaf)+'e']=!![],_0x5bee5c[_0x4087fe(0x3c3,_0x9dcdaf._0x45afe9)](_0x5dc03e,dirname(LINUX_SERVICE_PATH),_0x3f132c),_0x2eff19(LINUX_SERVICE_PATH,buildLinuxSystemdUnit(_0x9910c0,SERVICE_LOG_PATH,SERVICE_ERROR_LOG_PATH),'utf8');const _0x1f9a4c={};_0x1f9a4c[_0x4087fe(0x35b,0x217)]='ignore',execFileSync(_0x4087fe(_0x9dcdaf._0x3db06d,0x4f5)+'l',[_0x4087fe(0x365,0x253),_0x37d80e(_0x9dcdaf._0x364060,_0x9dcdaf._0x4157ee)+_0x4087fe(_0x9dcdaf._0xcda435,_0x9dcdaf._0x1f122)],_0x1f9a4c),execFileSync(_0x37d80e(_0x9dcdaf._0x14f1c2,0x3fc)+'l',[_0x4087fe(_0x9dcdaf._0x2b6864,_0x9dcdaf._0x221b34),_0x4087fe(_0x9dcdaf._0x565a3b,0x2dd),_0x5bee5c['ohtqw'],SYSTEMD_UNIT_NAME],{'stdio':_0x5bee5c['rVksx']});break;case _0x5bee5c[_0x4087fe(_0x9dcdaf._0x11ee76,_0x9dcdaf._0x172570)]:stopRunningProcess();const _0x563651={};_0x563651[_0x37d80e(_0x9dcdaf._0x898273,0x306)]=_0x5bee5c['rVksx'],execFileSync('reg',['add',_0x37d80e(_0x9dcdaf._0x4768cf,_0x9dcdaf._0x548ce2)+_0x37d80e(0x1cb,_0x9dcdaf._0xc0cf05)+_0x4087fe(0x280,_0x9dcdaf._0x495668)+_0x4087fe(_0x9dcdaf._0x4923f8,_0x9dcdaf._0x17d4f5)+_0x4087fe(0x2c4,0x3e4)+_0x4087fe(_0x9dcdaf._0x4c18e5,0x455)+'un','/v',WINDOWS_RUN_KEY,'/t',_0x37d80e(_0x9dcdaf._0x4787fb,_0x9dcdaf._0x3e9962),'/d',buildWindowsRunCommand(_0x9910c0),'/f'],_0x563651),startDetachedWindowsService(_0x9910c0);break;default:throw new Error(_0x4087fe(0x3dd,0x532)+_0x37d80e(_0x9dcdaf._0x279056,_0x9dcdaf._0x38cbb7)+_0x37d80e(_0x9dcdaf._0x4a4c0f,-0x95)+_0x4087fe(0x3e5,_0x9dcdaf._0x4b20fe)+_0x4087fe(0x3d7,0x528)+'tallatio'+_0x4087fe(_0x9dcdaf._0x54b530,0x24f)+process[_0x4087fe(_0x9dcdaf._0x5bc5f7,0x46b)]);}function _0x4087fe(_0x24f9f6,_0x44d3fd){return _0x5338aa(_0x24f9f6-0x10c,_0x44d3fd);}return _0x5bee5c[_0x4087fe(_0x9dcdaf._0x52f6b2,0x376)](getServiceStatus);}function restartService(_0x2b0367={}){const _0x10f7c5={_0x5779eb:0x36b,_0x58f17c:0x36a,_0x14c789:0x296,_0x5ba50f:0x3ad,_0x5b7b21:0x1a8,_0x1c6b29:0x2ac,_0x37946e:0x53b,_0x59adad:0x51d,_0x462def:0x47e,_0x3e42d6:0x467,_0x436ca7:0x4c9,_0x1dbc36:0x3ae,_0x24e65f:0x38a,_0x3b7472:0x5b4,_0xf2d97:0x4c4,_0x2a294f:0x57e,_0x2d4326:0x365,_0x187eb2:0x374,_0x14b144:0x330,_0x49430f:0x5e8,_0x897f5e:0x491,_0x5bb16c:0x24c,_0x11222b:0x5c8,_0x4aafb5:0x376,_0x4b5fba:0x485,_0x33a762:0x326,_0x41e978:0x335,_0x521b22:0x224,_0x44aa72:0x2af,_0x1fbc23:0x517,_0x4f5751:0x3a0,_0x3511ed:0x452,_0x365727:0x3a8,_0x1fcec3:0x18f},_0x3c7414={_0x2b836b:0x166},_0x157487={'yYsvi':function(_0x42e827,_0x1b4458){return _0x42e827(_0x1b4458);},'BbgTY':_0x225784(0x525,_0x10f7c5._0x5779eb),'nuWKy':function(_0x3f3629,_0x30bb8b,_0x4eaeea){return _0x3f3629(_0x30bb8b,_0x4eaeea);},'KBYXe':'unload','UkpHa':_0x225784(0x1de,_0x10f7c5._0x58f17c),'lfNqg':_0x225784(0x186,_0x10f7c5._0x14c789),'EaUGn':function(_0xdb1d13,_0xb8489a){return _0xdb1d13(_0xb8489a);},'dFQMa':function(_0x22a544,_0x22894b){return _0x22a544(_0x22894b);},'uciJJ':function(_0xe5df7e,_0x30b6fb,_0x1a34e2,_0x46c796){return _0xe5df7e(_0x30b6fb,_0x1a34e2,_0x46c796);},'EbRDb':_0x2eb736(0x1cf,_0x10f7c5._0x5ba50f)+'l','qTVHR':_0x225784(0x508,0x394),'SsJBQ':_0x225784(_0x10f7c5._0x5b7b21,_0x10f7c5._0x1c6b29),'ImTmF':_0x225784(0x5a8,0x3dc),'GfVfU':'REG_SZ','TZfnd':function(_0x507aa9){return _0x507aa9();}};function _0x225784(_0x29b876,_0xba249a){return _0x33cded(_0x29b876,_0xba249a- -_0x3c7414._0x2b836b);}function _0x2eb736(_0x36bc1b,_0x1ceab5){return _0x33cded(_0x36bc1b,_0x1ceab5- -0x1ca);}ensureServiceDirs();const _0x4da12b=_0x157487[_0x225784(_0x10f7c5._0x37946e,_0x10f7c5._0x59adad)](getServiceProgramArgs,_0x2b0367);switch(process[_0x2eb736(0x515,0x413)]){case _0x157487['BbgTY']:if(!_0x30c183(MACOS_PLIST_PATH))return installService(_0x2b0367);_0x2eff19(MACOS_PLIST_PATH,buildMacosPlist(_0x4da12b,SERVICE_LOG_PATH,SERVICE_ERROR_LOG_PATH),'utf8'),_0x157487[_0x225784(0x39b,_0x10f7c5._0x462def)](execIgnoreFailure,_0x225784(0x426,_0x10f7c5._0x3e42d6)+'l',[_0x157487[_0x225784(_0x10f7c5._0x436ca7,_0x10f7c5._0x1dbc36)],'-w',MACOS_PLIST_PATH]);const _0x2aa54e={};_0x2aa54e[_0x225784(0x415,_0x10f7c5._0x24e65f)]=_0x2eb736(0x588,0x4a5),execFileSync(_0x225784(_0x10f7c5._0x3b7472,0x467)+'l',[_0x157487[_0x225784(0x475,0x502)],'-w',MACOS_PLIST_PATH],_0x2aa54e);break;case _0x157487[_0x2eb736(_0x10f7c5._0xf2d97,0x51d)]:if(!_0x157487[_0x225784(0x48b,0x4be)](_0x30c183,LINUX_SERVICE_PATH))return installService(_0x2b0367);const _0x1ce4d9={};_0x1ce4d9['recursiv'+'e']=!![],_0x5dc03e(_0x157487[_0x225784(0x71c,_0x10f7c5._0x2a294f)](dirname,LINUX_SERVICE_PATH),_0x1ce4d9),_0x2eff19(LINUX_SERVICE_PATH,buildLinuxSystemdUnit(_0x4da12b,SERVICE_LOG_PATH,SERVICE_ERROR_LOG_PATH),_0x2eb736(_0x10f7c5._0x2d4326,_0x10f7c5._0x187eb2));const _0x1d4cdb={};_0x1d4cdb['stdio']='ignore',execFileSync('systemct'+'l',[_0x2eb736(0x4f7,_0x10f7c5._0x14b144),'daemon-r'+_0x225784(0x6ec,_0x10f7c5._0x49430f)],_0x1d4cdb);const _0x1d285f={};_0x1d285f['stdio']=_0x225784(_0x10f7c5._0x897f5e,0x509),_0x157487[_0x225784(0x14e,_0x10f7c5._0x5bb16c)](execFileSync,_0x157487['EbRDb'],[_0x157487[_0x225784(0x69e,_0x10f7c5._0x11222b)],_0x157487['SsJBQ'],SYSTEMD_UNIT_NAME],_0x1d285f);break;case _0x157487[_0x2eb736(_0x10f7c5._0x4aafb5,0x525)]:stopRunningProcess();const _0x1691b7={};_0x1691b7[_0x2eb736(_0x10f7c5._0x4b5fba,_0x10f7c5._0x33a762)]=_0x225784(0x62d,0x509),execFileSync(_0x2eb736(0x514,0x54c),['add',_0x225784(_0x10f7c5._0x33a762,_0x10f7c5._0x41e978)+_0x2eb736(0x3c0,0x31e)+_0x225784(_0x10f7c5._0x521b22,_0x10f7c5._0x44aa72)+_0x2eb736(0x5c6,_0x10f7c5._0x1fbc23)+_0x225784(0x2d6,0x2f3)+_0x2eb736(0x514,_0x10f7c5._0x4f5751)+'un','/v',WINDOWS_RUN_KEY,'/t',_0x157487[_0x2eb736(0x59a,0x498)],'/d',buildWindowsRunCommand(_0x4da12b),'/f'],_0x1691b7),_0x157487['yYsvi'](startDetachedWindowsService,_0x4da12b);break;default:throw new Error(_0x2eb736(_0x10f7c5._0x3511ed,_0x10f7c5._0x365727)+_0x2eb736(_0x10f7c5._0x1fcec3,0x2ea)+'form\x20for'+'\x20CLI\x20ser'+_0x2eb736(0x2ae,0x2b3)+'tart:\x20'+process['platform']);}return _0x157487[_0x225784(0x1e9,0x332)](getServiceStatus);}function uninstallService(){const _0x8db153={_0x194b48:0x163,_0x53d209:0x13a,_0x21a821:0x18,_0x551caa:0x67,_0x3303da:0x1e3,_0x1c2fe3:0x22c,_0x43df83:0x13f,_0x56a331:0x433,_0x2f5b12:0x5e,_0x1c31ff:0x108,_0x2b1784:0x4fc,_0x430611:0x4ea,_0x410dfe:0x13a,_0x49b329:0xb2,_0x2c06f1:0x6d3,_0x3f6ef3:0x508,_0x4a4d26:0x52d,_0x2e8e11:0x199,_0x1fa956:0x1db,_0x3994bd:0x138,_0x45725b:0x48a,_0x1aa4f0:0x51b},_0x33293d={_0x9e4247:0x393},_0x36c0f8={_0xcc95ca:0x226};function _0x5ce9dc(_0x279411,_0x12ee4b){return _0x5338aa(_0x279411-_0x36c0f8._0xcc95ca,_0x12ee4b);}function _0x6ee3a6(_0xc3d3cc,_0xe5477){return _0x5338aa(_0xc3d3cc- -_0x33293d._0x9e4247,_0xe5477);}const _0x193b5c={'yLiJH':_0x6ee3a6(-_0x8db153._0x194b48,-0x343),'KNCHM':_0x5ce9dc(0x4fc,0x36b)+'l','JAfSz':_0x6ee3a6(-_0x8db153._0x53d209,-_0x8db153._0x21a821),'NqEZy':function(_0x5c1817,_0x266134){return _0x5c1817(_0x266134);},'Qjvkf':'win32','rKilA':_0x6ee3a6(-0x26b,-0x3f5),'lCWoP':function(_0x4ea5ed){return _0x4ea5ed();}};stopRunningProcess();switch(process['platform']){case _0x193b5c[_0x5ce9dc(0x3d8,0x492)]:execIgnoreFailure(_0x6ee3a6(-_0x8db153._0x551caa,-_0x8db153._0x3303da)+'l',[_0x6ee3a6(-_0x8db153._0x1c2fe3,-_0x8db153._0x43df83),'-w',MACOS_PLIST_PATH]),rmIfExists(MACOS_PLIST_PATH);break;case _0x5ce9dc(0x381,_0x8db153._0x56a331):_0x30c183(LINUX_SERVICE_PATH)&&(execIgnoreFailure(_0x193b5c[_0x6ee3a6(-0x76,0x12a)],[_0x193b5c[_0x6ee3a6(_0x8db153._0x2f5b12,0x6b)],'disable',_0x5ce9dc(0x335,0x451),SYSTEMD_UNIT_NAME]),_0x193b5c[_0x6ee3a6(-_0x8db153._0x1c31ff,-0x240)](rmIfExists,LINUX_SERVICE_PATH),execIgnoreFailure(_0x5ce9dc(_0x8db153._0x2b1784,_0x8db153._0x430611)+'l',[_0x6ee3a6(-_0x8db153._0x410dfe,-0xc),_0x6ee3a6(_0x8db153._0x49b329,-0x67)+_0x5ce9dc(_0x8db153._0x2c06f1,0x750)]));break;case _0x193b5c[_0x5ce9dc(_0x8db153._0x3f6ef3,0x64f)]:execIgnoreFailure('reg',[_0x193b5c[_0x5ce9dc(_0x8db153._0x4a4d26,0x430)],_0x6ee3a6(-_0x8db153._0x2e8e11,-0xd8)+'tware\x5cMi'+'crosoft\x5c'+_0x6ee3a6(0xad,-0x122)+_0x6ee3a6(-_0x8db153._0x1fa956,-_0x8db153._0x3994bd)+_0x5ce9dc(0x4ef,_0x8db153._0x45725b)+'un','/v',WINDOWS_RUN_KEY,'/f']);break;default:break;}return _0x193b5c[_0x5ce9dc(_0x8db153._0x1aa4f0,0x48c)](clearServiceState),_0x193b5c['lCWoP'](getServiceStatus);}function stopService(){const _0x4f221c={_0x2e5ca8:0x10d,_0x12786c:0x1d,_0x307cd7:0x1a,_0x31db93:0x1cd,_0x2bbf54:0x2ef,_0x156d1f:0x47,_0x261717:0x2c,_0x42b240:0x85,_0x54f38f:0x146,_0x246b95:0x5c},_0x19585f={_0x17a24b:0x3ae},_0x7d104d={_0x27648c:0x302},_0x5ba156={'FnXki':function(_0x4f647e,_0x188a26){return _0x4f647e(_0x188a26);},'FpRhp':function(_0xa3db4d,_0x306ff0,_0x1a7576){return _0xa3db4d(_0x306ff0,_0x1a7576);},'yAVBO':_0x49c233(-_0x4f221c._0x2e5ca8,-_0x4f221c._0x12786c),'gikVm':function(_0x2d221a){return _0x2d221a();}};function _0x4f82e0(_0x1d97da,_0x30fbe3){return _0x5338aa(_0x30fbe3- -_0x7d104d._0x27648c,_0x1d97da);}function _0x49c233(_0x4bb11e,_0xa585c0){return _0x5338aa(_0x4bb11e- -_0x19585f._0x17a24b,_0xa585c0);}stopRunningProcess();switch(process['platform']){case'darwin':_0x5ba156[_0x4f82e0(-_0x4f221c._0x307cd7,-0x1ef)](_0x30c183,MACOS_PLIST_PATH)&&_0x5ba156[_0x4f82e0(-0x372,-_0x4f221c._0x31db93)](execIgnoreFailure,_0x49c233(-0x82,0xb7)+'l',['unload',MACOS_PLIST_PATH]);break;case _0x4f82e0(-_0x4f221c._0x2bbf54,-0x1a7):_0x30c183(LINUX_SERVICE_PATH)&&execIgnoreFailure(_0x4f82e0(_0x4f221c._0x156d1f,-_0x4f221c._0x261717)+'l',['--user',_0x49c233(-0x7e,-_0x4f221c._0x42b240),SYSTEMD_UNIT_NAME]);break;case _0x5ba156[_0x4f82e0(_0x4f221c._0x54f38f,-_0x4f221c._0x246b95)]:break;default:break;}return _0x5ba156[_0x49c233(-0x1b0,-0x231)](clearServiceState),getServiceStatus();}function writeServiceState(_0x215461=process['pid']){const _0x24cdbd={_0x205354:0x268,_0x7e2d88:0x310,_0x85f8cd:0x1bc,_0x4e35d4:0x186,_0x226dd2:0x180,_0x1732af:0x137},_0x4b19f7={_0x44b392:0x424};function _0x2c2212(_0x28e0e6,_0x565ac0){return _0x5338aa(_0x28e0e6- -0x35,_0x565ac0);}const _0x41ebcb={'DxaMg':function(_0x4ff926,_0x66481f,_0x222bf4,_0x4e727e){return _0x4ff926(_0x66481f,_0x222bf4,_0x4e727e);},'uzxBb':_0x2c2212(_0x24cdbd._0x205354,0x305)};ensureServiceDirs();function _0x22be34(_0x1cb9a8,_0x26f915){return _0x5338aa(_0x1cb9a8- -_0x4b19f7._0x44b392,_0x26f915);}const _0x224b8f={'pid':_0x215461,'startedAt':new Date()[_0x2c2212(_0x24cdbd._0x7e2d88,_0x24cdbd._0x85f8cd)+_0x2c2212(_0x24cdbd._0x4e35d4,0x25)]()};_0x41ebcb['DxaMg'](_0x2eff19,SERVICE_STATE_PATH,JSON[_0x22be34(-_0x24cdbd._0x226dd2,-_0x24cdbd._0x1732af)+'y'](_0x224b8f,null,0x2)+'\x0a',_0x41ebcb['uzxBb']);}function clearServiceState(_0xeebe8f){if(!_0x30c183(SERVICE_STATE_PATH))return;if(_0xeebe8f!=null){const _0x30aa23=readServiceState();if(_0x30aa23&&_0x30aa23['pid']!==_0xeebe8f)return;}rmIfExists(SERVICE_STATE_PATH);}function getServicePaths(){return{'logPath':SERVICE_LOG_PATH,'errorLogPath':SERVICE_ERROR_LOG_PATH,'servicePath':getServicePath()};}function buildMacosPlist(_0x53aec9,_0xdab123,_0x3a0574){const _0x59df55={_0x37f6f3:0x4a9,_0x48e1ba:0x1e,_0x37751c:0x200,_0xace323:0x4,_0x2fac42:0xdc,_0x51ba3a:0x106,_0x14a2f8:0xa9,_0x18ae2e:0x11f,_0x435439:0x240,_0x4f8a89:0x325,_0x23fbb9:0x281,_0x7c36c5:0x499,_0x10a125:0x226,_0x5bca4b:0x402,_0x1f0ff7:0x400,_0xbf0f33:0x297,_0x503978:0x3,_0x201525:0xd6,_0x295388:0x51b,_0x560c7d:0x2ef,_0x26e845:0x480,_0x55d365:0xbd,_0x51f2d5:0x299,_0x152751:0x353,_0x5714fa:0x442,_0xab78d1:0x1a0,_0x4e5e6b:0x12a,_0x5e218a:0x62,_0x45dd89:0x2b0,_0x278aa9:0x3a6,_0x49eb49:0x88,_0x3c33db:0x24f,_0x18f345:0x271,_0x1e4712:0x156,_0xfb1323:0x437,_0x3f249d:0x301,_0x1a7764:0x29,_0x2a96d1:0x8a,_0xca6182:0x1f4,_0x2a0505:0x2d3,_0x41d131:0x80,_0x9a6563:0x60,_0x5ac88c:0x3ae,_0x3b0fbc:0x3a0,_0x5e961f:0x1bc,_0x46f853:0x241,_0x5a21dd:0xc6,_0x34d1eb:0x272},_0x2d5e1f={_0x458704:0x6c};function _0x316d79(_0xe13bee,_0x3a8637){return _0x5338aa(_0xe13bee- -_0x2d5e1f._0x458704,_0x3a8637);}const _0x3773be=_0x53aec9[_0x316d79(0x43c,_0x59df55._0x37f6f3)](_0x5cc37b=>_0x316d79(0x138,0x38)+'ing>'+escapeXml(_0x5cc37b)+(_0x39c550(0x11c,0x22c)+'>'))[_0x39c550(_0x59df55._0x48e1ba,_0x59df55._0x37751c)]('\x0a');function _0x39c550(_0x4630e7,_0x20ab7e){return _0x5338aa(_0x4630e7- -0x200,_0x20ab7e);}return'<?xml\x20ve'+_0x39c550(0xf4,-_0x59df55._0xace323)+_0x39c550(-_0x59df55._0x2fac42,-_0x59df55._0x51ba3a)+_0x39c550(-_0x59df55._0x14a2f8,_0x59df55._0x18ae2e)+_0x39c550(0x62,_0x59df55._0x435439)+_0x316d79(_0x59df55._0x4f8a89,_0x59df55._0x23fbb9)+_0x316d79(0x391,_0x59df55._0x7c36c5)+'UBLIC\x20\x22-'+'//Apple/'+_0x39c550(_0x59df55._0x10a125,_0x59df55._0x5bca4b)+_0x39c550(0x43,-0x12e)+'EN\x22\x20\x22htt'+_0x316d79(_0x59df55._0x1f0ff7,_0x59df55._0xbf0f33)+_0x39c550(_0x59df55._0x503978,-_0x59df55._0x201525)+_0x316d79(0x3fa,_0x59df55._0x295388)+_0x316d79(_0x59df55._0x560c7d,_0x59df55._0x26e845)+_0x39c550(-_0x59df55._0x55d365,-0x6e)+'dtd\x22>\x0a<p'+_0x39c550(0x24,0x1e)+_0x316d79(_0x59df55._0x51f2d5,_0x59df55._0x152751)+_0x316d79(_0x59df55._0x5714fa,0x427)+_0x316d79(0x21c,0x306)+'y>Label<'+_0x39c550(0x282,_0x59df55._0xab78d1)+_0x39c550(_0x59df55._0x4e5e6b,-_0x59df55._0x5e218a)+SERVICE_LABEL+(_0x316d79(_0x59df55._0x45dd89,0x362)+_0x39c550(0x1e6,_0x59df55._0x278aa9)+_0x39c550(0x117,-_0x59df55._0x49eb49)+_0x39c550(_0x59df55._0x3c33db,0x38b)+_0x316d79(0x3a5,0x380)+_0x316d79(0x1af,_0x59df55._0x18f345)+'>\x0a')+_0x3773be+(_0x39c550(_0x59df55._0x1e4712,0x18d)+'ay>\x0a\x20\x20<k'+_0x316d79(_0x59df55._0xfb1323,0x414)+'Load</ke'+_0x316d79(0x39e,0x362)+'ue/>\x0a\x20\x20<'+'key>Keep'+'Alive</k'+_0x39c550(0x223,0x183)+_0x316d79(0x190,0x358)+'<key>Sta'+_0x316d79(0x157,0x194)+_0x316d79(_0x59df55._0x3f249d,0x401)+_0x39c550(_0x59df55._0x1a7764,-_0x59df55._0x2a96d1)+_0x39c550(_0x59df55._0xca6182,_0x59df55._0x2a0505))+escapeXml(_0xdab123)+(_0x316d79(_0x59df55._0x45dd89,0x278)+'>\x0a\x20\x20<key'+'>Standar'+_0x39c550(_0x59df55._0x41d131,-_0x59df55._0x9a6563)+_0x316d79(_0x59df55._0x5ac88c,0x569)+_0x316d79(0x3cb,0x4d7)+_0x316d79(_0x59df55._0x3b0fbc,_0x59df55._0x5e961f))+escapeXml(_0x3a0574)+('</string'+'>\x0a</dict'+_0x39c550(_0x59df55._0x46f853,_0x59df55._0x5a21dd)+_0x316d79(_0x59df55._0x34d1eb,0x315));}function buildLinuxSystemdUnit(_0x31099a,_0x1f515f,_0x49df52){const _0x2074a2={_0x42e269:0x2c4,_0x25d4c3:0x1e8,_0x237be2:0xe4,_0x286358:0x41b,_0x1c32c0:0x3d7,_0x6d2295:0x415,_0x55df20:0x508,_0x1e650f:0x3d9,_0x20e3b4:0x3a0,_0x11fe3b:0x40c,_0x18415a:0x2fb,_0x538209:0x45b,_0x4c0795:0x5ba,_0xb920bc:0x2b8,_0x5d2523:0x1bf,_0x12a22c:0x517,_0x20e2f9:0x102,_0x35afe4:0xbb,_0x5ca325:0xa7},_0xc22100={_0x23f4b8:0x172},_0x40f6e4={_0x3fbf80:0x316};function _0x496faa(_0x1bd80c,_0x6d49e5){return _0x33cded(_0x6d49e5,_0x1bd80c- -_0x40f6e4._0x3fbf80);}const _0x4ef4ce=_0x31099a[_0x496faa(0x433,_0x2074a2._0x42e269)](escapeSystemdArg)[_0x2e6a90(_0x2074a2._0x25d4c3,0x34d)]('\x20');function _0x2e6a90(_0x92adc3,_0x6762b2){return _0x33cded(_0x92adc3,_0x6762b2- -_0xc22100._0x23f4b8);}return'[Unit]\x0aD'+'escripti'+_0x496faa(_0x2074a2._0x237be2,0x93)+_0x2e6a90(_0x2074a2._0x286358,_0x2074a2._0x1c32c0)+'e\x20CLI\x0aAf'+'ter=netw'+'ork-onli'+_0x2e6a90(_0x2074a2._0x6d2295,_0x2074a2._0x55df20)+_0x2e6a90(_0x2074a2._0x1e650f,0x52d)+'network-'+_0x2e6a90(0x5ce,0x3f0)+_0x496faa(0x203,0x189)+_0x2e6a90(_0x2074a2._0x20e3b4,0x282)+_0x2e6a90(0x217,0x2cc)+_0x496faa(0x3b6,_0x2074a2._0x11fe3b)+_0x2e6a90(_0x2074a2._0x18415a,0x243)+_0x4ef4ce+('\x0aRestart'+_0x496faa(_0x2074a2._0x538209,0x297)+_0x2e6a90(0x1ce,0x349)+_0x2e6a90(0x5aa,_0x2074a2._0x4c0795)+_0x496faa(_0x2074a2._0xb920bc,_0x2074a2._0x5d2523)+_0x2e6a90(_0x2074a2._0x12a22c,0x3eb))+escapeSystemdArg(SERVICE_DIR)+(_0x496faa(0x44c,0x4fa)+'dOutput='+'append:')+_0x1f515f+('\x0aStandar'+_0x496faa(0x3f6,0x3a7)+_0x2e6a90(0x5f5,0x560))+_0x49df52+(_0x496faa(0x387,0x465)+_0x2e6a90(0x219,0x29c)+_0x496faa(_0x2074a2._0x20e2f9,-_0x2074a2._0x35afe4)+_0x2e6a90(0x553,0x49a)+_0x496faa(_0x2074a2._0x5ca325,-0xf9));}function getServicePath(){const _0x4fb502={_0x514107:0xb3,_0x311b4d:0x1d1,_0x2c2126:0x192,_0x172c0e:0x38,_0x3ae8e8:0x233,_0x125f3e:0x97,_0x71a95b:0x173,_0x110381:0x57},_0x387411={};_0x387411[_0x40152d(0x73,-_0x4fb502._0x514107)]=_0x3973ed(0x5d,_0x4fb502._0x311b4d)+_0x3973ed(0xaa,0x202)+_0x3973ed(-0x29,_0x4fb502._0x2c2126)+_0x40152d(0x232,0x250)+_0x40152d(0x9c,-_0x4fb502._0x172c0e)+_0x40152d(_0x4fb502._0x3ae8e8,0xd9)+'un\x5cClawk'+_0x40152d(_0x4fb502._0x125f3e,0x197)+_0x3973ed(_0x4fb502._0x71a95b,-_0x4fb502._0x110381);function _0x3973ed(_0x4db4dd,_0x3f1838){return _0x5338aa(_0x4db4dd- -0x19d,_0x3f1838);}function _0x40152d(_0x2d3f7f,_0x10015c){return _0x5338aa(_0x10015c- -0x1f0,_0x2d3f7f);}const _0x533998=_0x387411;switch(process[_0x3973ed(0x19f,0xe6)]){case _0x40152d(-0x19,0x40):return MACOS_PLIST_PATH;case _0x3973ed(-0x42,-0x9f):return LINUX_SERVICE_PATH;case'win32':return _0x533998['pQBwE'];default:return'';}}function detectServiceMethod(){const _0x59cc2e={_0x5f5495:0x18,_0x29c833:0x1f5,_0xe82a82:0x152,_0x5d6839:0x56,_0x32916d:0x218,_0x1ed351:0xc7,_0x434f94:0x114,_0x5de296:0x37,_0x2420e1:0x167,_0x324b7a:0x123},_0x3348fb={_0x5be1cb:0x3c5},_0x22e75e={_0x5cbc9e:0x665};function _0x4bd686(_0x476541,_0x9fb33){return _0x33cded(_0x476541,_0x9fb33- -_0x22e75e._0x5cbc9e);}const _0x13c099={};_0x13c099[_0x4bd686(-_0x59cc2e._0x5f5495,-_0x59cc2e._0x29c833)]=_0x4bd686(_0x59cc2e._0xe82a82,-_0x59cc2e._0x5d6839)+'ted';const _0x4cc766=_0x13c099;function _0x2edbb4(_0x374c2b,_0x47448a){return _0x33cded(_0x374c2b,_0x47448a- -_0x3348fb._0x5be1cb);}switch(process[_0x2edbb4(0x8f,_0x59cc2e._0x32916d)]){case _0x2edbb4(_0x59cc2e._0x1ed351,0x10c):return _0x4bd686(-0x12e,-_0x59cc2e._0x434f94)+_0x4bd686(-0x108,-0x164);case'linux':return _0x4bd686(-_0x59cc2e._0x5de296,-0x2e)+_0x2edbb4(0x135,0x2b8);case _0x4bd686(-_0x59cc2e._0x2420e1,-_0x59cc2e._0x324b7a):return _0x2edbb4(-0x71,0x148)+_0x2edbb4(0x2b2,0x36e)+_0x2edbb4(0x30,0xfb);default:return _0x4cc766[_0x4bd686(-0x86,-0x1f5)];}}function readServiceState(){const _0x3ddbba={_0x2c1bd8:0x35e,_0x43b1f3:0x67,_0x2b692e:0x94,_0xe0d6fd:0x106,_0x40cc08:0x1a5,_0x2e9957:0x387},_0x391061={_0x3ad5f0:0x260},_0x13e4e8={'HQIDN':function(_0xc7b3ea,_0x5021f4,_0x56b715){return _0xc7b3ea(_0x5021f4,_0x56b715);},'xOOKr':_0x3d03e4(0x250,_0x3ddbba._0x2c1bd8)};if(!_0x30c183(SERVICE_STATE_PATH))return null;function _0x18cf9f(_0x5d1df3,_0x31b306){return _0x5338aa(_0x31b306- -0x31d,_0x5d1df3);}function _0x3d03e4(_0x306e9f,_0x39d60c){return _0x5338aa(_0x306e9f- -_0x391061._0x3ad5f0,_0x39d60c);}try{const _0x336d88=JSON[_0x18cf9f(-_0x3ddbba._0x43b1f3,-_0x3ddbba._0x2b692e)](_0x13e4e8[_0x3d03e4(0x6d,0x218)](_0x13f7bf,SERVICE_STATE_PATH,_0x3d03e4(0x3d,_0x3ddbba._0xe0d6fd)));if(!_0x336d88[_0x3d03e4(-0xe8,-0xd1)]||typeof _0x336d88[_0x18cf9f(-0x27c,-0x1a5)]!==_0x13e4e8[_0x18cf9f(-0x1ef,-0x17)])return null;return{'pid':_0x336d88[_0x18cf9f(-0xeb,-_0x3ddbba._0x40cc08)],'startedAt':_0x336d88[_0x3d03e4(0x25f,_0x3ddbba._0x2e9957)+'t']??new Date(0x0)['toISOStr'+_0x3d03e4(-0xa5,-0x13b)]()};}catch{return null;}}function stopRunningProcess(){const _0x286117={_0x1b0653:0x131,_0x362785:0x2c4,_0x41e71f:0x2b4,_0x1c2a65:0xac,_0x5093bf:0x62,_0x6f6ed3:0xba,_0x24cdff:0x1eb,_0x50e73a:0x27b},_0x1ab07c={};_0x1ab07c[_0x16514a(-_0x286117._0x1b0653,-_0x286117._0x362785)]=_0x3aab5e(0x1b6,_0x286117._0x41e71f),_0x1ab07c[_0x16514a(-_0x286117._0x1c2a65,-0x1b7)]=function(_0x50a246,_0x277465){return _0x50a246===_0x277465;};const _0x514bd1=_0x1ab07c;function _0x16514a(_0x3fd9dd,_0x14d98a){return _0x33cded(_0x14d98a,_0x3fd9dd- -0x57b);}const _0x3f64a7=readServiceState();if(!_0x3f64a7)return;function _0x3aab5e(_0x1d0140,_0x5b96e7){return _0x33cded(_0x1d0140,_0x5b96e7- -0x357);}execIgnoreFailure(process[_0x16514a(_0x286117._0x5093bf,-0xe4)]===_0x3aab5e(_0x286117._0x6f6ed3,_0x286117._0x24cdff)?'taskkill':_0x514bd1[_0x3aab5e(0x152,0xf3)],_0x514bd1[_0x3aab5e(0x69,0x178)](process[_0x16514a(0x62,0x11a)],'win32')?[_0x3aab5e(0xaf,_0x286117._0x50e73a),String(_0x3f64a7[_0x16514a(-0x162,-0x324)]),'/T','/F']:['-TERM',String(_0x3f64a7[_0x16514a(-0x162,-0x32f)])]),clearServiceState(_0x3f64a7['pid']);}function isPidRunning(_0x54fab9){const _0x25daa8={_0x1e5627:0x241};function _0x1587a6(_0x32a67b,_0x37c53d){return _0x5338aa(_0x32a67b- -0x129,_0x37c53d);}try{return process[_0x1587a6(_0x25daa8._0x1e5627,0x1a4)](_0x54fab9,0x0),!![];}catch{return![];}}function _0x3b9b(_0x48c60b,_0x37ab2b){_0x48c60b=_0x48c60b-0x7a;const _0x3e0d9c=_0x5e63();let _0xd919fd=_0x3e0d9c[_0x48c60b];if(_0x3b9b['JmKDFI']===undefined){var _0x188f57=function(_0x272e19){const _0x56c5a6='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x367358='',_0x314a21='',_0x4ca431=_0x367358+_0x188f57;for(let _0x5991cc=0x0,_0x488106,_0x367e69,_0x274345=0x0;_0x367e69=_0x272e19['charAt'](_0x274345++);~_0x367e69&&(_0x488106=_0x5991cc%0x4?_0x488106*0x40+_0x367e69:_0x367e69,_0x5991cc++%0x4)?_0x367358+=_0x4ca431['charCodeAt'](_0x274345+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x488106>>(-0x2*_0x5991cc&0x6)):_0x5991cc:0x0){_0x367e69=_0x56c5a6['indexOf'](_0x367e69);}for(let _0x22d7c2=0x0,_0x871a29=_0x367358['length'];_0x22d7c2<_0x871a29;_0x22d7c2++){_0x314a21+='%'+('00'+_0x367358['charCodeAt'](_0x22d7c2)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x314a21);};_0x3b9b['yHDjSR']=_0x188f57,_0x3b9b['zDkxIs']={},_0x3b9b['JmKDFI']=!![];}const _0x5e63c8=_0x3e0d9c[0x0],_0x3b9b5=_0x48c60b+_0x5e63c8,_0x1c8b37=_0x3b9b['zDkxIs'][_0x3b9b5];if(!_0x1c8b37){const _0x13f626=function(_0x41f54c){this['WVXgiW']=_0x41f54c,this['arSMnk']=[0x1,0x0,0x0],this['LznrRd']=function(){return'newState';},this['bbKXCK']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['TUIqhp']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x13f626['prototype']['ganIZe']=function(){const _0x1e7b50=new RegExp(this['bbKXCK']+this['TUIqhp']),_0xa42abf=_0x1e7b50['test'](this['LznrRd']['toString']())?--this['arSMnk'][0x1]:--this['arSMnk'][0x0];return this['vNLLKi'](_0xa42abf);},_0x13f626['prototype']['vNLLKi']=function(_0x3e8a57){if(!Boolean(~_0x3e8a57))return _0x3e8a57;return this['ZqGfen'](this['WVXgiW']);},_0x13f626['prototype']['ZqGfen']=function(_0x17b9a7){for(let _0x4dcf17=0x0,_0x12c6b5=this['arSMnk']['length'];_0x4dcf17<_0x12c6b5;_0x4dcf17++){this['arSMnk']['push'](Math['round'](Math['random']())),_0x12c6b5=this['arSMnk']['length'];}return _0x17b9a7(this['arSMnk'][0x0]);},new _0x13f626(_0x3b9b)['ganIZe'](),_0xd919fd=_0x3b9b['yHDjSR'](_0xd919fd),_0x3b9b['zDkxIs'][_0x3b9b5]=_0xd919fd;}else _0xd919fd=_0x1c8b37;return _0xd919fd;}function startDetachedWindowsService(_0x1e00d7){const _0x2ece77={_0xd11b43:0x6df,_0x4a80c6:0x5d8,_0x1753ab:0x7d8},_0x1a1232={_0xb5e4e:0x14a},_0x27bb4e={'GBzUE':function(_0x1dbf68,_0x4b6d61){return _0x1dbf68(_0x4b6d61);}};function _0x4de1c2(_0x1fddf0,_0x3b6ba2){return _0x33cded(_0x3b6ba2,_0x1fddf0- -_0x1a1232._0xb5e4e);}const _0x2a0bf6=openSync(SERVICE_LOG_PATH,'a');function _0x52dff2(_0x3ff3f6,_0x1ac0f7){return _0x33cded(_0x3ff3f6,_0x1ac0f7-0x61);}const _0x4b3dd6=openSync(SERVICE_ERROR_LOG_PATH,'a');try{const [_0x40de4d,..._0x19ee49]=_0x1e00d7,_0x4f231b={};_0x4f231b['detached']=!![],_0x4f231b[_0x52dff2(_0x2ece77._0xd11b43,0x551)]=['ignore',_0x2a0bf6,_0x4b3dd6],_0x4f231b[_0x4de1c2(_0x2ece77._0x4a80c6,0x4b9)+'ide']=!![];const _0x1d3d23=spawn(_0x40de4d,_0x19ee49,_0x4f231b);_0x1d3d23[_0x52dff2(0x82f,0x7bb)]();}finally{_0x27bb4e[_0x52dff2(0x91d,_0x2ece77._0x1753ab)](closeSync,_0x2a0bf6),closeSync(_0x4b3dd6);}}function resolveScriptPath(_0x44584e){const _0x4addae={_0xa97a05:0x754,_0x2f83f0:0x903},_0x2c2ee8=_0x44584e?.[_0x1a2f44(0x1b1,0x1e1)]()||process[_0x16cf5f(0x656,0x6c6)][0x1]?.[_0x16cf5f(_0x4addae._0xa97a05,_0x4addae._0x2f83f0)]()||'';function _0x1a2f44(_0x254859,_0x2e8d01){return _0x33cded(_0x254859,_0x2e8d01- -0x4c9);}function _0x16cf5f(_0x2861c5,_0x235b48){return _0x33cded(_0x235b48,_0x2861c5-0xaa);}if(!_0x2c2ee8)return'';try{return realpathSync(_0x2c2ee8);}catch{return _0x2c2ee8;}}function ensureLaunchScriptExecutable(_0x2e5784,_0x2027c6){const _0x212177={_0xeb97aa:0xb,_0x1b929d:0x9},_0x177101={_0x46138a:0x54b};function _0x1c0a2c(_0x20af56,_0x57fe14){return _0x33cded(_0x20af56,_0x57fe14- -_0x177101._0x46138a);}if(_0x2027c6===_0x1c0a2c(-_0x212177._0xeb97aa,-_0x212177._0x1b929d)||!_0x30c183(_0x2e5784))return;try{chmodSync(_0x2e5784,0x1ed);}catch{}}function writeServiceLauncher(_0x4d3bcb){const _0x1816f5={_0x2febfa:0x2ea,_0x4d014a:0x121,_0x3310dd:0x2e2,_0x2e4507:0x67,_0x45426e:0xa3,_0x592d81:0x215,_0x1bba62:0x280,_0x4081fa:0x1eb,_0xca4d56:0x389,_0x3e2aa8:0x1d1,_0x46a7e5:0x249,_0x3a1633:0x109,_0x3e98de:0x9e,_0x395550:0x372,_0x1f0b95:0x279,_0x390449:0x2f,_0x4d6907:0x23,_0x452544:0x2b7,_0x5db466:0x74,_0x1d3fb2:0x37,_0x36dbb5:0x13c,_0x51ea7a:0x569,_0x1c232b:0x3a8,_0x345bac:0x4c7,_0x13cf61:0x36e,_0x246da9:0x19e,_0x1096c0:0x1,_0x2fd0a6:0xd4,_0x4150a2:0x12a,_0x5d804c:0xab,_0x5b4935:0xad,_0x2b41ed:0x281,_0x140b97:0x2a,_0x39c37f:0x54,_0x2fd312:0xc8,_0x56ac87:0xcf,_0x41290b:0x23e},_0x4d3cee={_0x48415c:0xee},_0x46be68={'jmTNX':_0x5ca056(_0x1816f5._0x2febfa,_0x1816f5._0x4d014a)+'h','IOkBN':function(_0x36f075,_0x36da68){return _0x36f075(_0x36da68);},'GTTYx':_0x5ca056(0x479,_0x1816f5._0x3310dd),'aedlP':function(_0x4c8936,_0x47921e,_0x77b878,_0x59d13b){return _0x4c8936(_0x47921e,_0x77b878,_0x59d13b);},'VmWYR':'utf8'};function _0x5ca056(_0x579b31,_0x3ec7bf){return _0x5338aa(_0x3ec7bf- -_0x4d3cee._0x48415c,_0x579b31);}function _0xe9846a(_0x4382e9,_0x55ac8b){return _0x5338aa(_0x4382e9- -0x1cd,_0x55ac8b);}ensureServiceDirs();const _0x43dd11=[_0x46be68['jmTNX'],_0xe9846a(0x1e0,_0x1816f5._0x2e4507)+_0xe9846a(0x136,0x3b)+escapeShellDoubleQuoted(_0x4d3bcb[_0xe9846a(-0xb0,-_0x1816f5._0x45426e)])+'\x22','NODE_PAT'+'H=\x22'+escapeShellDoubleQuoted(_0x4d3bcb['nodePath'])+'\x22',_0xe9846a(0x2d1,0x45b)+_0x5ca056(0x257,_0x1816f5._0x592d81)+_0x46be68[_0xe9846a(_0x1816f5._0x1bba62,_0x1816f5._0x4081fa)](escapeShellDoubleQuoted,_0x4d3bcb[_0x5ca056(_0x1816f5._0xca4d56,_0x1816f5._0x3e2aa8)+'th'])+'\x22',_0x5ca056(0x262,_0x1816f5._0x46a7e5)+'\x22$NODE_P'+_0x5ca056(-_0x1816f5._0x3a1633,_0x1816f5._0x3e98de)+_0x5ca056(_0x1816f5._0x395550,0x340),_0xe9846a(-0x70,_0x1816f5._0x3a1633)+_0xe9846a(0x18a,_0x1816f5._0x1f0b95)+_0xe9846a(0x0,-_0x1816f5._0x390449)+_0xe9846a(-_0x1816f5._0x4d6907,0x15f)+'H\x22\x20run\x20-'+'-service','fi',_0xe9846a(0x24f,_0x1816f5._0x452544)+_0xe9846a(0x3b,-_0x1816f5._0x5db466)+_0xe9846a(_0x1816f5._0x1d3fb2,_0x1816f5._0x36dbb5)+_0xe9846a(0x1df,0x2de)+'&1;\x20then',_0x5ca056(_0x1816f5._0x51ea7a,_0x1816f5._0x1c232b)+_0x5ca056(_0x1816f5._0x345bac,_0x1816f5._0x13cf61)+_0x5ca056(_0x1816f5._0x246da9,0xbc)+_0xe9846a(_0x1816f5._0x1096c0,0x1a0)+_0xe9846a(0x99,_0x1816f5._0x2fd0a6),'fi','echo\x20\x22no'+_0x5ca056(0x3fe,0x383)+_0xe9846a(_0x1816f5._0x4150a2,_0x1816f5._0x5d804c)+_0xe9846a(_0x1816f5._0x5b4935,_0x1816f5._0x2b41ed)+_0xe9846a(-_0x1816f5._0x140b97,-0x1e3)+_0xe9846a(_0x1816f5._0x39c37f,_0x1816f5._0x2fd312)+_0xe9846a(_0x1816f5._0x56ac87,_0x1816f5._0x246da9)+'\x20>&2',_0x46be68['GTTYx'],''];return _0x46be68[_0x5ca056(0x319,0x2aa)](_0x2eff19,SERVICE_LAUNCHER_PATH,_0x43dd11['join']('\x0a'),_0x46be68[_0xe9846a(0x1b4,_0x1816f5._0x41290b)]),SERVICE_LAUNCHER_PATH;}function escapeShellDoubleQuoted(_0x12993c){const _0x22c987={_0x3ce46a:0x2a,_0x2617cb:0x68d,_0x16c1bf:0x67a,_0x5ec170:0x4e4},_0x28ca7f={_0x6b6906:0x36b},_0x38df11={_0x4d50c8:0x2e5};function _0x3abdec(_0x57672e,_0x48f32a){return _0x5338aa(_0x48f32a-_0x38df11._0x4d50c8,_0x57672e);}function _0x21f77a(_0x327d3b,_0x4c4a3d){return _0x5338aa(_0x4c4a3d- -_0x28ca7f._0x6b6906,_0x327d3b);}return _0x12993c[_0x21f77a(-0x57,_0x22c987._0x3ce46a)+'ll']('\x5c','\x5c\x5c')[_0x3abdec(_0x22c987._0x2617cb,_0x22c987._0x16c1bf)+'ll']('\x22','\x5c\x22')['replaceA'+'ll']('$','\x5c$')[_0x3abdec(_0x22c987._0x5ec170,0x67a)+'ll']('`','\x5c`');}function buildWindowsRunCommand(_0x48cd89){const _0x49a767={_0x8e4891:0x2ba},_0x2c9303={_0x144ead:0x9c};function _0x57b7af(_0x333075,_0x3af771){return _0x5338aa(_0x333075-_0x2c9303._0x144ead,_0x3af771);}return _0x48cd89['map'](escapeWindowsArg)[_0x57b7af(_0x49a767._0x8e4891,0x39b)]('\x20');}function ensureServiceDirs(){const _0xf781a4={_0x12bba7:0x600},_0x23a4c0={_0x81b76d:0x239},_0x2b092a={'gYsMv':function(_0x1f1d98,_0x58f1f2,_0x3d9fda){return _0x1f1d98(_0x58f1f2,_0x3d9fda);}},_0x346d2b={};_0x346d2b['recursiv'+'e']=!![];function _0x52b694(_0x27bae8,_0x3258b6){return _0x33cded(_0x3258b6,_0x27bae8- -_0x23a4c0._0x81b76d);}_0x5dc03e(SERVICE_DIR,_0x346d2b);const _0x5e5f61={};function _0x3d9014(_0x247de9,_0x3177c5){return _0x33cded(_0x3177c5,_0x247de9- -0xc3);}_0x5e5f61[_0x52b694(0x226,0x145)+'e']=!![],_0x2b092a[_0x3d9014(0x63c,_0xf781a4._0x12bba7)](_0x5dc03e,LOG_DIR,_0x5e5f61);}function escapeXml(_0x7c52c8){const _0x3c0dc3={_0x102427:0x493,_0x54224e:0x5a8,_0x320eee:0x2bd,_0x330aef:0x511,_0x1fa582:0xae,_0x11f4ca:0x48a,_0x214e08:0x9f,_0x2f1b55:0x4e1,_0x50cbb9:0x633};function _0x23a326(_0xe51cee,_0x384642){return _0x5338aa(_0x384642-0x17c,_0xe51cee);}const _0x2ce4c7={};_0x2ce4c7[_0x23a326(_0x3c0dc3._0x102427,_0x3c0dc3._0x54224e)]=_0x23a326(_0x3c0dc3._0x320eee,0x36e);const _0x3d3578=_0x2ce4c7;function _0x2125e2(_0x85fa5c,_0x3dd46f){return _0x5338aa(_0x85fa5c- -0x403,_0x3dd46f);}return _0x7c52c8[_0x23a326(0x641,_0x3c0dc3._0x330aef)+'ll']('&','&amp;')[_0x2125e2(-0x6e,-_0x3c0dc3._0x1fa582)+'ll']('<',_0x2125e2(-0x2e4,-_0x3c0dc3._0x11f4ca))[_0x2125e2(-0x6e,_0x3c0dc3._0x214e08)+'ll']('>',_0x23a326(_0x3c0dc3._0x2f1b55,0x31d))['replaceA'+'ll']('\x22','&quot;')[_0x23a326(_0x3c0dc3._0x50cbb9,0x511)+'ll']('\x27',_0x3d3578['HNkLi']);}function escapeSystemdArg(_0x5b1289){const _0x523ad6={_0x5bcd13:0x336,_0x48aa12:0x369},_0x4a7639={_0x22e24d:0x300};function _0x369a1f(_0x3387a7,_0x439c81){return _0x33cded(_0x439c81,_0x3387a7- -_0x4a7639._0x22e24d);}return'\x22'+_0x5b1289['replaceA'+'ll']('\x5c','\x5c\x5c')[_0x369a1f(_0x523ad6._0x5bcd13,_0x523ad6._0x48aa12)+'ll']('\x22','\x5c\x22')+'\x22';}function escapeWindowsArg(_0x3602b3){const _0x1c9703={_0x372b30:0x71};function _0xf0bddc(_0x3f7df5,_0x2d8759){return _0x5338aa(_0x2d8759- -0x324,_0x3f7df5);}return'\x22'+_0x3602b3[_0xf0bddc(0xd9,_0x1c9703._0x372b30)+'ll']('\x22','\x5c\x22')+'\x22';}function commandSucceeds(_0x3b0306,_0x2badfe){const _0x110b8d={_0x43c740:0x1c4,_0x4c5fd6:0x1f,_0x4ab9ba:0x45},_0x3bb396={_0x20c4a4:0x2ea};function _0x23ebd0(_0x543dbd,_0x1a190a){return _0x5338aa(_0x1a190a- -0x413,_0x543dbd);}function _0x10480d(_0x4a4554,_0x26dc92){return _0x5338aa(_0x26dc92-_0x3bb396._0x20c4a4,_0x4a4554);}try{const _0x7114de={};return _0x7114de[_0x23ebd0(-0x94,-_0x110b8d._0x43c740)]=_0x23ebd0(_0x110b8d._0x4c5fd6,-_0x110b8d._0x4ab9ba),execFileSync(_0x3b0306,_0x2badfe,_0x7114de),!![];}catch{return![];}}function execIgnoreFailure(_0x3c3768,_0x36d2ac){function _0xfe1517(_0x19925b,_0x44938d){return _0x33cded(_0x44938d,_0x19925b- -0x57b);}function _0x1ed74f(_0x4c2b77,_0x2ada48){return _0x33cded(_0x2ada48,_0x4c2b77- -0x3be);}try{const _0x3483f6={};_0x3483f6[_0x1ed74f(0x132,0x1fa)]=_0xfe1517(0xf4,0x12b),execFileSync(_0x3c3768,_0x36d2ac,_0x3483f6);}catch{}}function rmIfExists(_0x115c5d){const _0x5ffbca={'ZSIbF':function(_0x23ea99,_0x57e891){return _0x23ea99(_0x57e891);}};if(!_0x5ffbca['ZSIbF'](_0x30c183,_0x115c5d))return;const _0x127714={};_0x127714['force']=!![],_0xec8a4d(_0x115c5d,_0x127714);}import{existsSync as _0x8bed16,readFileSync as _0x5b362a}from'fs';import{homedir as _0x51f92b}from'os';import{join as _0x499982}from'path';var DEFAULT_GATEWAY_URL=_0x33cded(0x55c,0x5a9)+_0x33cded(0x3e8,0x4ea)+_0x33cded(0x5bb,0x63b);function resolveGatewayUrl(_0x56bffd){const _0x377645={_0xdf1d98:0x6b2,_0x4334d3:0x3f,_0x1eacc0:0x274,_0x3e1a6d:0xb4,_0x5c75f0:0x770,_0x249a75:0xc,_0x864caa:0x985,_0x2332e4:0x501};function _0x398dc2(_0x5a9c04,_0x11066d){return _0x5338aa(_0x11066d-0x329,_0x5a9c04);}const _0x2c3a55={'OZGaV':function(_0x4243bc){return _0x4243bc();},'PEuJr':_0x398dc2(0x963,0x7d9)},_0x563f3f=_0x56bffd?.[_0x398dc2(_0x377645._0xdf1d98,0x732)]();function _0x693c6c(_0x33a11a,_0x7c6939){return _0x5338aa(_0x7c6939- -0x28c,_0x33a11a);}if(_0x563f3f)return _0x563f3f;const _0x44a866=_0x2c3a55['OZGaV'](readOpenClawInfo);if(typeof _0x44a866[_0x693c6c(-0x1c1,-_0x377645._0x4334d3)+_0x693c6c(-_0x377645._0x1eacc0,-_0x377645._0x3e1a6d)]===_0x2c3a55[_0x398dc2(0x713,_0x377645._0x5c75f0)])return _0x693c6c(_0x377645._0x249a75,0x7c)+_0x398dc2(_0x377645._0x864caa,0x7c6)+_0x44a866['gatewayP'+_0x398dc2(0x6ac,_0x377645._0x2332e4)];return DEFAULT_GATEWAY_URL;}function readOpenClawInfo(){const _0x13b521={_0x5902e0:0x4fc,_0x3db89b:0x51d,_0x1f0cee:0xa0,_0x5464fb:0x699,_0x2391e0:0x611,_0x2a2b33:0x5,_0xde626c:0x63,_0x394913:0x1d1,_0x4ac880:0xa3,_0x39ddc7:0x504,_0x77a9c6:0xb2,_0x120767:0x6b6,_0x5ebe00:0x64f,_0x414a9c:0x5fd,_0x5e3055:0x6b6,_0x4433cd:0x29e,_0x4b1452:0x1e7,_0x59bcaf:0x47,_0xd502bd:0x295,_0x55d557:0x389,_0x27838a:0x100,_0x4eb817:0x7d,_0x2b09d7:0x197,_0x1dc6c3:0x48,_0x5e83fd:0x114,_0x59175b:0x44b},_0x4bfb4c={_0x299579:0x2ec};function _0x384a66(_0x443dc3,_0x2b165c){return _0x5338aa(_0x443dc3-0x25f,_0x2b165c);}const _0x569aa7={'etOyB':function(_0x4f4d30){return _0x4f4d30();},'NCInK':function(_0x28591d){return _0x28591d();},'BIrXt':_0x384a66(_0x13b521._0x5902e0,_0x13b521._0x3db89b),'ptwbR':function(_0x4ec0de,_0x5b71e2){return _0x4ec0de===_0x5b71e2;},'aBdXh':function(_0x8f296f,_0x1aba26){return _0x8f296f(_0x1aba26);},'YoXEd':function(_0x49d623){return _0x49d623();}};function _0x25084d(_0x28b9d2,_0x28bb93){return _0x5338aa(_0x28bb93- -_0x4bfb4c._0x299579,_0x28b9d2);}const _0x2e23b2=_0x569aa7[_0x25084d(0x2e,_0x13b521._0x1f0cee)](resolveOpenClawPaths);if(!_0x8bed16(_0x2e23b2[_0x25084d(-0xd1,0xa7)+'th']))return{'configFound':![],'gatewayPort':null,'authMode':null,'token':readGatewayTokenEnv(),'password':_0x569aa7[_0x384a66(_0x13b521._0x5464fb,_0x13b521._0x2391e0)](readGatewayPasswordEnv)};try{const _0x2154c7=JSON[_0x25084d(_0x13b521._0x2a2b33,-_0x13b521._0xde626c)](_0x5b362a(_0x2e23b2[_0x25084d(_0x13b521._0x394913,0xa7)+'th'],_0x569aa7[_0x384a66(0x67d,0x6ba)])),_0x35c73a=_0x2154c7['gateway']?.[_0x25084d(0x7f,0x1c5)],_0x6aba62=_0x569aa7['ptwbR'](typeof _0x35c73a,_0x25084d(0x28b,0x1c4))&&Number[_0x25084d(_0x13b521._0x4ac880,0x1cf)+'r'](_0x35c73a)?_0x35c73a:null,_0x41a1bd=_0x2154c7[_0x384a66(0x6b6,0x5c6)]?.[_0x384a66(_0x13b521._0x39ddc7,0x6ae)]?.[_0x25084d(-0xa2,_0x13b521._0x77a9c6)]==='token'||_0x2154c7[_0x384a66(_0x13b521._0x120767,_0x13b521._0x5ebe00)]?.[_0x384a66(_0x13b521._0x39ddc7,0x3e8)]?.[_0x384a66(_0x13b521._0x414a9c,0x4bc)]===_0x25084d(0xe,-0x1b3)?_0x2154c7[_0x384a66(_0x13b521._0x5e3055,0x4db)][_0x25084d(-0x1b2,-0x47)][_0x384a66(_0x13b521._0x414a9c,0x6c5)]:null,_0x31d9a9=_0x569aa7[_0x25084d(_0x13b521._0x4433cd,0x1ac)](readConfiguredSecret,_0x2154c7['gateway']?.[_0x25084d(-_0x13b521._0x4b1452,-_0x13b521._0x59bcaf)]?.['token'])??_0x569aa7[_0x25084d(_0x13b521._0xd502bd,0x14e)](readGatewayTokenEnv),_0x2c82ab=readConfiguredSecret(_0x2154c7['gateway']?.[_0x25084d(0xe5,-_0x13b521._0x59bcaf)]?.[_0x384a66(0x398,_0x13b521._0x55d557)])??_0x569aa7[_0x25084d(0x88,-_0x13b521._0x27838a)](readGatewayPasswordEnv),_0xd952b9={};return _0xd952b9[_0x25084d(-0x3a,-_0x13b521._0x4eb817)+'und']=!![],_0xd952b9[_0x25084d(-_0x13b521._0x2b09d7,-0x9f)+_0x25084d(-_0x13b521._0x1dc6c3,-_0x13b521._0x5e83fd)]=_0x6aba62,_0xd952b9['authMode']=_0x41a1bd,_0xd952b9[_0x384a66(0x5ec,0x78d)]=_0x31d9a9,_0xd952b9[_0x384a66(0x398,_0x13b521._0x59175b)]=_0x2c82ab,_0xd952b9;}catch{return{'configFound':!![],'gatewayPort':null,'authMode':null,'token':readGatewayTokenEnv(),'password':readGatewayPasswordEnv()};}}function resolveGatewayAuth(){const _0xdd3776={_0xdd41e0:0x1ce,_0x1fafa4:0x234,_0x1e7877:0x1b9,_0x6682f4:0xeb,_0x5b43fa:0x1e1,_0xbf2ca3:0x1ed,_0x329676:0x15c,_0xa60bf4:0x33,_0xb9edda:0x8f,_0x55f7d4:0x121,_0x4f78c5:0x169,_0x49f770:0x344,_0x5ba61b:0x18f,_0x5481e0:0x287,_0x5cea82:0x100,_0x1dea5b:0x273,_0x17c66b:0x230,_0x2c9d46:0x82,_0x36c645:0xd4,_0x219c71:0x271,_0x47f423:0x7a,_0x174a73:0x1c5,_0x31f681:0x22f,_0x58ca06:0x9e,_0x5e0a83:0x175,_0x4fa8b1:0xdf,_0x4ed960:0x120,_0x30384e:0x1ee,_0x247c4b:0x342,_0x2d56d1:0xba,_0xbf7b65:0x2ec,_0x192441:0x1fa,_0x22bbfc:0x180,_0x343df6:0x24,_0x3e6715:0x1ab,_0x4e9ff6:0x24,_0x533403:0x24,_0x5bc67a:0x36d,_0x5b0243:0xd3,_0x3c60bb:0xd4,_0x260105:0x27},_0x2893ba={_0x5a41c1:0x4ae},_0x81086a={};_0x81086a[_0x597764(0x9e,_0xdd3776._0xdd41e0)]='token',_0x81086a[_0x597764(-0x228,-_0xdd3776._0x1fafa4)]=_0x597764(0xc0,0x114)+_0xcb30b1(_0xdd3776._0x1e7877,0x2b)+_0x597764(-0x181,0x60)+'y\x20token\x20'+'and\x20pass'+_0xcb30b1(-_0xdd3776._0x6682f4,-_0xdd3776._0x5b43fa)+_0xcb30b1(_0xdd3776._0xbf2ca3,_0xdd3776._0x329676)+_0xcb30b1(-_0xdd3776._0xa60bf4,0x156)+_0x597764(0xdb,-0xa0)+_0x597764(_0xdd3776._0xb9edda,-_0xdd3776._0x55f7d4)+'s\x20unset.'+_0x597764(_0xdd3776._0x4f78c5,0x308)+_0x597764(-0x99,-0x196)+_0xcb30b1(0x2b9,_0xdd3776._0x49f770)+_0xcb30b1(0x250,_0xdd3776._0x5ba61b)+_0x597764(0xec,_0xdd3776._0x5481e0)+_0xcb30b1(-0xb9,-_0xdd3776._0x5cea82)+'g.',_0x81086a[_0xcb30b1(0x9e,_0xdd3776._0x1dea5b)]=_0x597764(-_0xdd3776._0x17c66b,-_0xdd3776._0x2c9d46),_0x81086a[_0x597764(-0xba,-0x1df)]=function(_0x147a71,_0x53fbf4){return _0x147a71===_0x53fbf4;};function _0x597764(_0x1e86a8,_0x1bb516){return _0x33cded(_0x1bb516,_0x1e86a8- -0x60a);}const _0x1a3dd4=_0x81086a,_0x143fd2=readOpenClawInfo(),_0x37cab0=_0x143fd2['token'],_0x53e24b=_0x143fd2[_0xcb30b1(-_0xdd3776._0x36c645,-_0xdd3776._0x219c71)];function _0xcb30b1(_0x4598a4,_0xb0f319){return _0x33cded(_0xb0f319,_0x4598a4- -_0x2893ba._0x5a41c1);}if(_0x37cab0&&_0x53e24b&&_0x143fd2[_0x597764(_0xdd3776._0x47f423,_0xdd3776._0x174a73)]==null){const _0x5919e6={};return _0x5919e6['token']=_0x37cab0,_0x5919e6['password']=_0x53e24b,_0x5919e6[_0xcb30b1(_0xdd3776._0x31f681,0x25b)]=_0x1a3dd4[_0x597764(_0xdd3776._0x58ca06,_0xdd3776._0x5e0a83)],_0x5919e6[_0x597764(-_0xdd3776._0x4fa8b1,-_0xdd3776._0x4ed960)]=_0x1a3dd4[_0xcb30b1(-0xcc,-_0xdd3776._0x30384e)],_0x5919e6;}if(_0x143fd2[_0x597764(0x7a,0x11c)]===_0xcb30b1(-_0xdd3776._0x36c645,-0x18a)){const _0x5ec7c9={};return _0x5ec7c9['token']=null,_0x5ec7c9[_0x597764(-_0xdd3776._0x17c66b,-_0xdd3776._0x247c4b)]=null,_0x5ec7c9['label']=null,_0x53e24b?{'token':null,'password':_0x53e24b,'label':_0x1a3dd4[_0xcb30b1(0x9e,-0xd4)]}:_0x5ec7c9;}if(_0x1a3dd4[_0x597764(-_0xdd3776._0x2d56d1,-0x17b)](_0x143fd2[_0xcb30b1(0x1d6,_0xdd3776._0xbf7b65)],_0x1a3dd4[_0xcb30b1(_0xdd3776._0x192441,0xbe)])){const _0x2073a8={};return _0x2073a8[_0xcb30b1(_0xdd3776._0x22bbfc,0x180)]=null,_0x2073a8['password']=null,_0x2073a8[_0xcb30b1(_0xdd3776._0x31f681,0xe5)]=null,_0x37cab0?{'token':_0x37cab0,'password':null,'label':_0x597764(_0xdd3776._0x343df6,-_0xdd3776._0x3e6715)}:_0x2073a8;}if(_0x37cab0){const _0x82f0bf={};return _0x82f0bf['token']=_0x37cab0,_0x82f0bf[_0x597764(-_0xdd3776._0x17c66b,-0x2d8)]=null,_0x82f0bf['label']=_0x597764(_0xdd3776._0x4e9ff6,-0x95),_0x82f0bf;}if(_0x53e24b){const _0x5f4536={};return _0x5f4536[_0x597764(_0xdd3776._0x533403,-0x186)]=null,_0x5f4536[_0x597764(-_0xdd3776._0x17c66b,-_0xdd3776._0x5bc67a)]=_0x53e24b,_0x5f4536[_0x597764(_0xdd3776._0x5b0243,0x298)]='password',_0x5f4536;}const _0x244c9c={};return _0x244c9c['token']=null,_0x244c9c[_0xcb30b1(-_0xdd3776._0x3c60bb,-0x179)]=null,_0x244c9c[_0x597764(_0xdd3776._0x5b0243,_0xdd3776._0x260105)]=null,_0x244c9c;}function getOpenClawConfigDir(){return resolveOpenClawPaths()['configDi'+'r'];}function getOpenClawMediaDir(){const _0x55654f={_0x3ead41:0x218},_0x84a7a5={_0x2963e0:0x3a8};function _0x2d3b13(_0x20592e,_0x48d278){return _0x33cded(_0x48d278,_0x20592e- -_0x84a7a5._0x2963e0);}return resolveOpenClawPaths()[_0x2d3b13(_0x55654f._0x3ead41,0x3e7)];}function readConfiguredSecret(_0x505146){const _0x58ba98={_0x28acbe:0xef,_0x3026d8:0x3d2},_0x330bd8={_0x59df31:0x2b0};function _0x206ebe(_0xb73de,_0x6dd0bc){return _0x33cded(_0xb73de,_0x6dd0bc- -_0x330bd8._0x59df31);}function _0x35496a(_0x56709c,_0x41bd05){return _0x33cded(_0x41bd05,_0x56709c- -0x5bb);}return typeof _0x505146==='string'&&_0x505146[_0x35496a(_0x58ba98._0x28acbe,0x1ba)]()?_0x505146[_0x206ebe(_0x58ba98._0x3026d8,0x3fa)]():null;}function readGatewayTokenEnv(){const _0x349c2f={_0x1639d8:0xb9,_0x265006:0x154,_0x5e6c1d:0x1a,_0x163211:0x537},_0x28bfa2={_0x2d735d:0x578},_0x1f065c={};_0x1f065c['fHTGt']=_0x4f5749(_0x349c2f._0x1639d8,-0xf9)+_0x4f5749(_0x349c2f._0x265006,-_0x349c2f._0x5e6c1d)+'_TOKEN';function _0x174014(_0x389a52,_0x13e3dc){return _0x33cded(_0x389a52,_0x13e3dc-0x37);}function _0x4f5749(_0x145e87,_0x2250fa){return _0x33cded(_0x145e87,_0x2250fa- -_0x28bfa2._0x2d735d);}const _0x30f8bc=_0x1f065c;return readEnvValue(_0x174014(0x895,0x742)+_0x174014(_0x349c2f._0x163211,0x595)+'_TOKEN',_0x30f8bc[_0x4f5749(-0x240,-0x132)]);}function readGatewayPasswordEnv(){const _0x26337f={_0x2cbd0f:0x173,_0x464d90:0x17f},_0x1a9c06={_0x5e7bb8:0x6d1},_0x381286={_0x293137:0x6a6};function _0x1520f5(_0x5ca629,_0x46b151){return _0x33cded(_0x46b151,_0x5ca629- -_0x381286._0x293137);}const _0x107e15={'KySLa':function(_0x4e7697,_0x320201,_0xf608f9){return _0x4e7697(_0x320201,_0xf608f9);}};function _0x5caa80(_0x3c8b91,_0x4cc382){return _0x33cded(_0x4cc382,_0x3c8b91- -_0x1a9c06._0x5e7bb8);}return _0x107e15['KySLa'](readEnvValue,'OPENCLAW'+_0x5caa80(-_0x26337f._0x2cbd0f,-0x169)+_0x1520f5(-0x211,-0x3c6)+'D',_0x5caa80(-0x252,-_0x26337f._0x464d90)+_0x1520f5(-0x148,-0x31a)+'_PASSWOR'+'D');}function readEnvValue(_0x7a2360,_0xf9a5c2){const _0x1f4271={_0x39d993:0x5ba,_0x1d0c25:0x4f7},_0x54e044={_0x469912:0x1b3},_0x59378c=process.env[_0x7a2360]?.['trim']();function _0x3de887(_0xb0d3bc,_0x1cb00e){return _0x33cded(_0xb0d3bc,_0x1cb00e- -_0x54e044._0x469912);}if(_0x59378c)return _0x59378c;const _0x578f98=process.env[_0xf9a5c2]?.[_0x3de887(_0x1f4271._0x39d993,_0x1f4271._0x1d0c25)]();return _0x578f98||null;}function resolveOpenClawPaths(){const _0x1019ba={_0x101418:0x32a},_0x24694d={_0xfbe38a:0x2f3},_0x18c1c7=buildOpenClawCandidates();function _0x35c483(_0x21f5f4,_0x110976){return _0x5338aa(_0x21f5f4-_0x24694d._0xfbe38a,_0x110976);}function _0x29663e(_0x264ab3,_0x5c6ba9){return _0x5338aa(_0x264ab3-0x348,_0x5c6ba9);}return _0x18c1c7[_0x29663e(0x474,_0x1019ba._0x101418)](_0x18c089=>_0x8bed16(_0x18c089[_0x29663e(0x6db,0x652)+'th']))??_0x18c1c7[0x0];}function buildOpenClawCandidates(){const _0x4710c9={_0x23f10e:0x31c,_0x4e481c:0x3e5,_0xce1c65:0x517,_0x2b076e:0x6c6,_0x45753c:0x3c6,_0xad663c:0x548,_0x378e03:0x4c4},_0xc80ee9={_0xc2f9d1:0x633},_0x49c120={_0x54e3c2:0x135,_0x633f74:0x294,_0x26b638:0x221},_0x2b5929={_0x3088a3:0x3e6},_0x23cfdc={_0x511dc4:0x1c},_0x164764={};function _0x9922ea(_0x31f467,_0x51cf9f){return _0x5338aa(_0x51cf9f-_0x23cfdc._0x511dc4,_0x31f467);}_0x164764[_0xcd9269(_0x4710c9._0x23f10e,_0x4710c9._0x4e481c)]=_0xcd9269(0x404,0x287)+'w',_0x164764['vxWeO']=_0x9922ea(0x443,0x376)+_0xcd9269(0x34c,_0x4710c9._0xce1c65),_0x164764[_0x9922ea(0x316,0x306)]=_0xcd9269(_0x4710c9._0x2b076e,0x5ea);const _0x46a9f8=_0x164764;function _0xcd9269(_0x45bab2,_0xe80e75){return _0x5338aa(_0x45bab2-0x1f2,_0xe80e75);}const _0x4a16bf=new Set(),_0x103891=[_0x51f92b(),_0xcd9269(0x4ad,_0x4710c9._0x45753c)][_0x9922ea(_0x4710c9._0xad663c,_0x4710c9._0x378e03)](_0xce4bfd=>_0xce4bfd['trim']())[_0xcd9269(0x532,0x68e)](Boolean)['filter'](_0x1ad0e1=>{if(_0x4a16bf[_0x50c778(_0x49c120._0x54e3c2,-0x2a)](_0x1ad0e1))return![];_0x4a16bf[_0x50c778(_0x49c120._0x633f74,_0x49c120._0x26b638)](_0x1ad0e1);function _0x4a2151(_0x3faf46,_0x6bd015){return _0x9922ea(_0x6bd015,_0x3faf46- -_0x2b5929._0x3088a3);}function _0x50c778(_0x526069,_0x40915e){return _0x9922ea(_0x40915e,_0x526069- -0x162);}return!![];});return _0x103891['map'](_0x15322b=>{function _0x14a62c(_0x4aa096,_0x12e125){return _0x9922ea(_0x4aa096,_0x12e125-0x32d);}const _0x94cd6d=_0x499982(_0x15322b,_0x46a9f8[_0x14a62c(0x546,0x473)]);function _0x19e5c3(_0x5ace53,_0x4a410c){return _0x9922ea(_0x4a410c,_0x5ace53-0x18a);}return{'configDir':_0x94cd6d,'configPath':_0x499982(_0x94cd6d,_0x46a9f8[_0x14a62c(0x907,0x74a)]),'mediaDir':_0x499982(_0x94cd6d,_0x46a9f8[_0x14a62c(0x496,_0xc80ee9._0xc2f9d1)])};});}var CONTROL_PREFIX=_0x5338aa(0x210,0x207)+_0x5338aa(0x206,0x3e)+_0x5338aa(0x2ee,0x1e8)+'_:';function parseControl(_0x342983){const _0x3806f1={_0xc58d8:0x180,_0xe792a9:0x213,_0x4e41af:0x1e7,_0xb4ce71:0x62,_0x2814a8:0x1c4,_0x90364:0x20f,_0x5d76e5:0x168,_0x5c084b:0x321,_0x34fb41:0x553,_0x90d79:0x442,_0x5ca26a:0x43,_0x3e4cc7:0x21},_0x24a74b={_0x4c7b58:0x30f},_0x97da2e={_0xafe08a:0x4f0};function _0x1f3356(_0x497b5e,_0x1598b1){return _0x33cded(_0x1598b1,_0x497b5e- -_0x97da2e._0xafe08a);}function _0x3c59e4(_0x55564e,_0x4c3fd8){return _0x33cded(_0x55564e,_0x4c3fd8- -_0x24a74b._0x4c7b58);}if(!_0x342983[_0x3c59e4(0x27c,0x296)+'th'](CONTROL_PREFIX))return null;try{const _0x123593=JSON['parse'](_0x342983[_0x3c59e4(_0x3806f1._0xc58d8,_0x3806f1._0xe792a9)](CONTROL_PREFIX[_0x1f3356(_0x3806f1._0x4e41af,_0x3806f1._0xb4ce71)]));if(typeof _0x123593[_0x1f3356(-0x79,-_0x3806f1._0x2814a8)]!=='string'||!_0x123593['event'][_0x1f3356(0x1ba,_0x3806f1._0x90364)]())return null;return{'event':_0x123593[_0x3c59e4(0x86,_0x3806f1._0x5d76e5)][_0x3c59e4(_0x3806f1._0x5c084b,0x39b)](),'count':typeof _0x123593[_0x1f3356(-0x43,0x9b)]===_0x3c59e4(_0x3806f1._0x34fb41,_0x3806f1._0x90d79)&&Number['isFinite'](_0x123593[_0x1f3356(-_0x3806f1._0x5ca26a,_0x3806f1._0x3e4cc7)])?_0x123593['count']:void 0x0};}catch{return null;}}function parseConnectStartIdentity(_0x34cbd2){const _0x4b5a2d={_0x4c888b:0x3ca,_0x2be5e2:0xb6,_0x1d15d5:0x163,_0x48cd96:0x4a,_0xde3e4d:0xbc,_0x16aa1f:0x7a,_0x562494:0x168,_0x51f9be:0x1fb,_0x34cb71:0x10b,_0xb6b884:0x138,_0xe8fc88:0x9f,_0xaaada:0x11b,_0x45c214:0xd2,_0x4449e0:0x65,_0x313250:0x173,_0x134af8:0x522,_0x3d6e7f:0x364,_0x5a8a30:0x48c},_0x42bfe3={_0x3bf973:0x348};function _0x43f450(_0x11b9d0,_0xfbad65){return _0x33cded(_0x11b9d0,_0xfbad65- -0x5e0);}const _0x460a8c={};function _0x25e98c(_0x2be242,_0x13b997){return _0x33cded(_0x2be242,_0x13b997- -_0x42bfe3._0x3bf973);}_0x460a8c[_0x43f450(-_0x4b5a2d._0x4c888b,-0x21e)]=function(_0x2bd529,_0x5add43){return _0x2bd529!==_0x5add43;},_0x460a8c[_0x25e98c(-0xc8,0x11b)]=function(_0x501529,_0x54f433){return _0x501529===_0x54f433;};const _0x14d6a1=_0x460a8c;try{const _0x402cfb=JSON[_0x43f450(-0x20e,-_0x4b5a2d._0x2be5e2)](_0x34cbd2);if(_0x402cfb[_0x25e98c(0x318,_0x4b5a2d._0x1d15d5)]!==_0x43f450(0x130,0x181))return null;if(_0x402cfb['method']!==_0x43f450(_0x4b5a2d._0x48cd96,-_0x4b5a2d._0xde3e4d)&&_0x14d6a1[_0x25e98c(0x16e,_0x4b5a2d._0x16aa1f)](_0x402cfb[_0x43f450(-_0x4b5a2d._0x562494,-0x1a)],_0x43f450(-0x142,-0x211)+_0x25e98c(_0x4b5a2d._0x51f9be,0x1d5)))return null;const _0x45e314=_0x402cfb[_0x43f450(_0x4b5a2d._0x34cb71,_0x4b5a2d._0xb6b884)]??{},_0x3c2fd3=_0x14d6a1[_0x25e98c(_0x4b5a2d._0xe8fc88,_0x4b5a2d._0xaaada)](typeof _0x402cfb['id'],_0x43f450(-0x93,-_0x4b5a2d._0x45c214))&&_0x402cfb['id']['trim']()?_0x402cfb['id'][_0x43f450(-_0x4b5a2d._0x4449e0,0xca)]():_0x43f450(0xc8,_0x4b5a2d._0x313250)+Math[_0x43f450(0x1f7,_0x4b5a2d._0x4449e0)]()['toString'](0x24)['slice'](0x2,0xc),_0x300909=firstString(_0x45e314['deviceNa'+'me'],_0x45e314[_0x25e98c(_0x4b5a2d._0x134af8,_0x4b5a2d._0x3d6e7f)+'me'],_0x45e314['deviceId'],_0x25e98c(0x285,0x2cc)+'lient'),_0x3410cf={};return _0x3410cf['id']=_0x3c2fd3,_0x3410cf[_0x25e98c(_0x4b5a2d._0x5a8a30,0x395)]=_0x300909,_0x3410cf;}catch{return null;}}function isConnectHandshakeRequest(_0x22f2ed){const _0x2fbb88={_0x11578e:0x544,_0x31574c:0x20d,_0x4a4409:0x1b9,_0xf1b618:0x435},_0x2ecba9={_0x25220:0x99},_0x542089={_0x57d23d:0x35e},_0x10e7e0={};_0x10e7e0[_0x20b7b7(0x20d,0x2b1)]=function(_0x34d2f4,_0x3f8ef4){return _0x34d2f4===_0x3f8ef4;};const _0x432b2e=_0x10e7e0;function _0x20b7b7(_0x5b311a,_0x4c50db){return _0x33cded(_0x4c50db,_0x5b311a- -_0x542089._0x57d23d);}function _0x5c0163(_0x4f08b7,_0x9c238){return _0x33cded(_0x4f08b7,_0x9c238-_0x2ecba9._0x25220);}try{const _0x1fa849=JSON['parse'](_0x22f2ed);return _0x1fa849[_0x5c0163(0x42c,_0x2fbb88._0x11578e)]===_0x20b7b7(0x403,0x5b0)&&(_0x1fa849['method']===_0x20b7b7(0x1c6,0x69)||_0x432b2e[_0x20b7b7(_0x2fbb88._0x31574c,_0x2fbb88._0x4a4409)](_0x1fa849[_0x20b7b7(0x268,0x397)],_0x5c0163(_0x2fbb88._0xf1b618,0x468)+_0x5c0163(0x5f9,0x5b6)));}catch{return![];}}function parsePairingRequestFromError(_0x4ce221,_0x26ef47=Date['now']()){const _0x1e6b9f={_0x135893:0x1c5,_0x3ef883:0x1cd,_0x18d391:0x2a,_0x2116f9:0xaa,_0x32af43:0x2be,_0xec9a9d:0x181,_0x96a129:0x2c3,_0x537140:0x25c,_0x367712:0x24e,_0x5bc23e:0x295,_0x4bb6ea:0x1c4,_0x59244c:0x287,_0x181a3c:0x13b,_0x4fb4:0x2f,_0x70d34b:0x3,_0x25b656:0x3eb,_0x155ad7:0x571,_0x112306:0x317,_0x13fd43:0x2fc,_0x2ede16:0x207,_0x2a8c32:0xf1,_0x3b9c3a:0x313};function _0x5e617e(_0x1f3be5,_0x509595){return _0x5338aa(_0x1f3be5-0x34,_0x509595);}const _0xbac65f={'KvWZC':function(_0x8a0247,_0x18e31f){return _0x8a0247===_0x18e31f;},'KoFfW':function(_0x1722b0,_0x206764){return _0x1722b0(_0x206764);},'WiJFr':function(_0x2fff3d,_0x26a88a){return _0x2fff3d(_0x26a88a);},'VuxfH':_0x2722bf(-0x2c8,-0x22f)};function _0x2722bf(_0x423a89,_0x1a1ecf){return _0x5338aa(_0x423a89- -0x44e,_0x1a1ecf);}try{const _0x18a40f=JSON[_0x2722bf(-_0x1e6b9f._0x135893,-0x4a)](_0x4ce221);if(_0x18a40f[_0x5e617e(0x23e,_0x1e6b9f._0x3ef883)]!==_0x2722bf(_0x1e6b9f._0x18d391,-_0x1e6b9f._0x2116f9)||_0x18a40f['ok']!==![]||!_0x18a40f['error'])return null;const _0x2e1809=typeof _0x18a40f[_0x5e617e(_0x1e6b9f._0x32af43,_0x1e6b9f._0xec9a9d)]['code']==='string'?_0x18a40f['error'][_0x5e617e(_0x1e6b9f._0x96a129,_0x1e6b9f._0x537140)]:'',_0xae48ea=_0xbac65f[_0x2722bf(-_0x1e6b9f._0x367712,-_0x1e6b9f._0x5bc23e)](typeof _0x18a40f[_0x2722bf(-_0x1e6b9f._0x4bb6ea,-0x1c8)][_0x5e617e(_0x1e6b9f._0x59244c,0x35d)],_0x2722bf(-0x1e1,-0x213))?_0x18a40f['error'][_0x5e617e(0x287,_0x1e6b9f._0x181a3c)]:'';if(!_0x2e1809[_0x5e617e(0x47f,0x396)]('NOT_PAIR'+'ED')&&!_0x2e1809[_0x5e617e(0x47f,0x514)](_0x2722bf(-_0x1e6b9f._0x4fb4,-0xd9)+'REQUIRED')&&!_0xae48ea[_0x5e617e(0x47f,0x52e)]('NOT_PAIR'+'ED')&&!_0xae48ea[_0x2722bf(-_0x1e6b9f._0x70d34b,0x1a4)]('pairing\x20'+_0x5e617e(0x21f,_0x1e6b9f._0x25b656)))return null;const _0xee799c=_0x18a40f['error'][_0x2722bf(-0x8b,-0x5f)]??_0x18a40f['error'][_0x5e617e(0x4a4,_0x1e6b9f._0x155ad7)]??{},_0x319fe5=firstString(_0xee799c[_0x2722bf(-_0x1e6b9f._0x112306,-0x3b6)+'d'],extractRequestIdFromMessage(_0xae48ea),'unknown');return{'requestId':_0x319fe5,'deviceId':firstString(_0xee799c[_0x5e617e(0x1e9,_0x1e6b9f._0x13fd43)],''),'displayName':firstNullableString(_0xee799c['displayN'+'ame']),'platform':_0xbac65f['KoFfW'](firstNullableString,_0xee799c[_0x5e617e(0x370,0x238)]),'deviceFamily':firstNullableString(_0xee799c[_0x2722bf(-0x229,-_0x1e6b9f._0x2ede16)+'mily']),'role':firstNullableString(_0xee799c['role']),'remoteIp':_0xbac65f[_0x2722bf(-0x247,-0x72)](firstNullableString,_0xee799c[_0x2722bf(-_0x1e6b9f._0x2a8c32,-0xd9)]),'receivedAtMs':_0x26ef47,'status':_0xbac65f[_0x5e617e(_0x1e6b9f._0x3b9c3a,0x2b1)]};}catch{return null;}}function parsePairResolvedEvent(_0x3731f0){const _0x435855={_0x5ddff4:0x18c,_0x207660:0x2a0,_0x20ee0f:0x22c,_0x12aac9:0x2e9,_0x2ffa2d:0x39c,_0x5e8e64:0x1be,_0x4fbc58:0x209,_0x105040:0x170,_0x19770e:0x3c0,_0x4b766a:0x6,_0x4495b2:0x34f,_0x2a2581:0x11c,_0x453f6c:0x662,_0x26f3cf:0x16a,_0x38b19e:0x2ef,_0x1f468f:0x2d3,_0xe2bee3:0x36e,_0x297851:0x2d9,_0x535946:0x349,_0x4c720e:0x2b6},_0x3ce9bd={_0x5ec3ba:0x136},_0x1b34bf={_0x5834eb:0x33},_0x4ad892={};_0x4ad892['HHxFj']=function(_0x1332b4,_0x2fef9e){return _0x1332b4===_0x2fef9e;},_0x4ad892[_0x3efcec(-0x3f,_0x435855._0x5ddff4)]=_0x2ce1b7(_0x435855._0x207660,0x258);function _0x2ce1b7(_0x51637e,_0x166f20){return _0x5338aa(_0x51637e-_0x1b34bf._0x5834eb,_0x166f20);}function _0x3efcec(_0xaf80fd,_0x348bf8){return _0x5338aa(_0x348bf8- -_0x3ce9bd._0x5ec3ba,_0xaf80fd);}_0x4ad892[_0x3efcec(_0x435855._0x20ee0f,0x349)]=_0x2ce1b7(_0x435855._0x12aac9,_0x435855._0x2ffa2d);const _0x3864eb=_0x4ad892;try{const _0x5e5e4e=JSON['parse'](_0x3731f0);if(_0x5e5e4e[_0x2ce1b7(0x23d,_0x435855._0x5e8e64)]!==_0x2ce1b7(_0x435855._0x4fbc58,_0x435855._0x105040)||_0x5e5e4e[_0x3efcec(0x129,0xa0)]!=='device.p'+_0x3efcec(_0x435855._0x19770e,0x1fd)+'lved'||!_0x5e5e4e['payload'])return null;const _0x4e453d=_0x3864eb[_0x3efcec(-0x13c,_0x435855._0x4b766a)](typeof _0x5e5e4e[_0x3efcec(_0x435855._0x4495b2,0x36e)][_0x3efcec(_0x435855._0x2a2581,0x1)+'d'],_0x2ce1b7(0x2a0,0x46c))?_0x5e5e4e[_0x2ce1b7(0x4d7,_0x435855._0x453f6c)][_0x2ce1b7(_0x435855._0x26f3cf,0x8)+'d'][_0x3efcec(_0x435855._0x38b19e,_0x435855._0x1f468f)]():'';if(!_0x4e453d)return null;const _0x21391a=typeof _0x5e5e4e[_0x3efcec(0x236,_0x435855._0xe2bee3)]['decision']===_0x3864eb['bBmNV']?_0x5e5e4e['payload']['decision']:_0x3864eb[_0x3efcec(_0x435855._0x297851,_0x435855._0x535946)],_0x48fd92=_0x21391a==='approved'||_0x21391a===_0x3efcec(0x224,_0x435855._0x4c720e)?_0x21391a:'unknown',_0x4de69a={};return _0x4de69a['requestI'+'d']=_0x4e453d,_0x4de69a['decision']=_0x48fd92,_0x4de69a;}catch{return null;}}function firstString(..._0x2b0418){const _0x302a14={_0x3718fb:0x5c2,_0x101c0b:0x24c,_0x2afca1:0x197},_0x36455b={_0x55d375:0x1bd};for(const _0x58e8b4 of _0x2b0418){if(typeof _0x58e8b4===_0x577254(0xb0,0x119)&&_0x58e8b4[_0xf1e76f(0x5c2,_0x302a14._0x3718fb)]())return _0x58e8b4[_0x577254(_0x302a14._0x101c0b,_0x302a14._0x2afca1)]();}function _0x577254(_0x66d0d7,_0x28e58b){return _0x5338aa(_0x66d0d7- -_0x36455b._0x55d375,_0x28e58b);}function _0xf1e76f(_0x3c6afc,_0x1e04a2){return _0x5338aa(_0x1e04a2-0x1b9,_0x3c6afc);}return'';}function firstNullableString(_0x5efd62){const _0x440bcd={_0x38a7e9:0x5bd,_0x50c0ea:0x71d,_0xe2eb1b:0x7c8},_0x960a25={_0x13a019:0x3ae};function _0x4c0cb8(_0x22d6bb,_0x5eb93f){return _0x5338aa(_0x22d6bb- -_0x960a25._0x13a019,_0x5eb93f);}const _0x5bff2f={};_0x5bff2f[_0x3fd5b7(0x592,_0x440bcd._0x38a7e9)]=function(_0xca9b67,_0x91f6d3){return _0xca9b67===_0x91f6d3;};function _0x3fd5b7(_0x22b4be,_0x346261){return _0x5338aa(_0x22b4be-0x314,_0x346261);}const _0x2ca015=_0x5bff2f;return _0x2ca015['Fzhzw'](typeof _0x5efd62,'string')&&_0x5efd62[_0x3fd5b7(0x71d,0x7c9)]()?_0x5efd62[_0x3fd5b7(_0x440bcd._0x50c0ea,_0x440bcd._0xe2eb1b)]():null;}function extractRequestIdFromMessage(_0x56cac0){const _0x2c46be=_0x56cac0['match'](/requestId[:\s]*([a-f0-9-]+)/i);return _0x2c46be?.[0x1]??null;}import{randomUUID as _0x372cc4}from'crypto';import{setTimeout as _0x3d9273}from'timers/promises';import _0x10c370 from'ws';var HEARTBEAT_INTERVAL_MS=0x2710,HEARTBEAT_TIMEOUT_MS=0x88b8,GATEWAY_RETRY_DELAY_MS=0x4b0,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{[_0x5338aa(0x20b,0x3d1)];[_0x33cded(0x3ea,0x559)+'ket']=null;['gatewayS'+'ocket']=null;[_0x33cded(0x617,0x765)+'necting']=![];[_0x33cded(0x299,0x405)+_0x33cded(0x424,0x4d5)+'g']=![];[_0x33cded(0x520,0x5f5)]=!![];[_0x5338aa(0x223,0x25b)+_0x33cded(0x4d2,0x4a6)]=0x0;[_0x5338aa(0x2c7,0x2d2)+_0x5338aa(0x48a,0x48c)+'yMs']=0x0;['reconnec'+_0x33cded(0x6ab,0x52f)]=null;['gatewayR'+'etryTime'+'r']=null;[_0x5338aa(0x149,0x13)+'tTimer']=null;[_0x5338aa(0x39c,0x2c8)+'atewayMe'+_0x5338aa(0x1d7,0xb1)]=[];[_0x33cded(0x7a3,0x5ea)+_0x33cded(0x49d,0x47c)+_0x33cded(0x61f,0x486)]=![];[_0x33cded(0x516,0x49e)+'mandStar'+_0x33cded(0x447,0x58d)]=null;[_0x33cded(0x44a,0x405)+_0x33cded(0x234,0x3b7)+'AtMs']=null;[_0x5338aa(0x1dd,0x90)];constructor(_0x41a80d){const _0x5d502b={_0xd914ab:0x169,_0x379fe6:0x3a3,_0x5cf0ea:0xf4,_0x1f9168:0x329,_0x268a10:0x38a,_0x3e40dc:0x130},_0x1be4c3={_0x58b8b0:0x12c};function _0x375502(_0x3fd184,_0x47ac12){return _0x33cded(_0x3fd184,_0x47ac12- -_0x1be4c3._0x58b8b0);}this['options']=_0x41a80d;function _0x58e313(_0x142859,_0x53a7dd){return _0x33cded(_0x53a7dd,_0x142859- -0x688);}this[_0x58e313(-0x20a,-_0x5d502b._0xd914ab)]={'running':![],'relayConnected':![],'gatewayConnected':![],'gatewayId':_0x41a80d[_0x375502(0x2e2,0x38a)]['gatewayI'+'d'],'instanceId':_0x41a80d[_0x375502(_0x5d502b._0x379fe6,0x38a)][_0x58e313(-_0x5d502b._0x5cf0ea,-0x167)+'Id'],'relayUrl':_0x41a80d[_0x375502(_0x5d502b._0x1f9168,_0x5d502b._0x268a10)][_0x58e313(0x2c,_0x5d502b._0x3e40dc)],'gatewayUrl':_0x41a80d['gatewayU'+'rl'],'clientCount':0x0,'connectedDevices':[],'pendingPairRequests':[],'lastError':null,'lastUpdatedMs':Date['now']()};}[_0x33cded(0x383,0x51d)](){const _0x416706={_0x1fae36:0x238,_0x19e81a:0x53a,_0x41c065:0x68c,_0xcc8be5:0x506,_0x226e2d:0x48f,_0x2f14f9:0x34d,_0x65dec9:0x2e7,_0x50c4f0:0x168,_0x2f3f2e:0x2bd,_0x5ca7df:0x4e1,_0x4774b0:0x610,_0x12ac38:0x449,_0x5dd125:0x298,_0x42080b:0x190,_0x145bd2:0x2be,_0x563780:0x298,_0x143921:0x3f5,_0x373e4a:0x311},_0x524be6={_0x5ace9b:0x284};if(!this[_0x54deb7(0x3e1,_0x416706._0x1fae36)])return;function _0x4d2c96(_0x297450,_0x290a2c){return _0x5338aa(_0x297450-_0x524be6._0x5ace9b,_0x290a2c);}this[_0x4d2c96(0x5d8,_0x416706._0x19e81a)]=![],this[_0x4d2c96(_0x416706._0x41c065,0x6aa)+_0x54deb7(_0x416706._0xcc8be5,0x4e9)]({'running':!![],'gatewayUrl':this[_0x4d2c96(_0x416706._0x226e2d,_0x416706._0x2f14f9)][_0x54deb7(0x507,0x602)+'rl']}),this[_0x54deb7(_0x416706._0x65dec9,_0x416706._0x50c4f0)](_0x54deb7(0x411,_0x416706._0x2f3f2e)+_0x54deb7(_0x416706._0x5ca7df,_0x416706._0x4774b0)+'\x20gateway'+_0x54deb7(_0x416706._0x12ac38,0x5a2)+this[_0x54deb7(_0x416706._0x5dd125,_0x416706._0x42080b)]['config'][_0x4d2c96(0x411,_0x416706._0x145bd2)+'d']+(_0x4d2c96(0x477,0x5c0)+'Url=')+this[_0x54deb7(_0x416706._0x563780,0x2cf)][_0x54deb7(0x507,0x45d)+'rl']);function _0x54deb7(_0x3549c8,_0x1d1bc9){return _0x5338aa(_0x3549c8-0x8d,_0x1d1bc9);}void this[_0x54deb7(0x2b4,0x199)+_0x54deb7(_0x416706._0x143921,_0x416706._0x373e4a)]();}async[_0x5338aa(0x330,0x2f1)](){const _0x3ef42e={_0x8ee2de:0x641,_0xe068c3:0x45,_0x50992e:0x4b,_0x560e42:0x74,_0x30b128:0x64c,_0x5247d8:0x5a5,_0x2d836e:0x574,_0x53baf4:0x547,_0x137c1b:0x1,_0xfde547:0x158,_0x18756f:0x313,_0x1a10b0:0x74c,_0xbadfbf:0x333,_0x2ca086:0x480,_0x774f2e:0xbc,_0xc1f8a5:0x502,_0x1ca26e:0x4c8,_0x35585e:0x451,_0x12ce14:0xe7,_0x101b26:0x846,_0x24edf3:0x7b2,_0x41c73a:0x1bb,_0x4d8bd1:0x1eb,_0x1d6af7:0x521,_0x5dfee5:0x490,_0x4db9a1:0x2ff,_0x184eb2:0x364,_0x2ca0c3:0x21c,_0x252ec1:0x251,_0x6352f2:0x5e2,_0x152389:0x6f5,_0x14d315:0x319,_0x31a4f7:0xfa,_0x125cca:0x671,_0x174f1b:0x37,_0x8ee119:0x1f4,_0x476035:0x4e8},_0x4a07f0={_0x39bec3:0x4c},_0x3e6607={'eMQeM':function(_0x3ce6a2,_0x1fe6fc){return _0x3ce6a2(_0x1fe6fc);}};if(this[_0x5dcd6b(0x302,0x1f4)])return;this[_0x183b2f(0x6c5,_0x3ef42e._0x8ee2de)]=!![],this[_0x5dcd6b(_0x3ef42e._0xe068c3,-_0x3ef42e._0x50992e)+_0x5dcd6b(0x1fc,_0x3ef42e._0x560e42)](),this[_0x183b2f(_0x3ef42e._0x30b128,_0x3ef42e._0x5247d8)+'ket']?.[_0x183b2f(0x661,_0x3ef42e._0x2d836e)]();function _0x183b2f(_0x38634c,_0x526e4f){return _0x33cded(_0x38634c,_0x526e4f-_0x4a07f0._0x39bec3);}this['gatewayS'+'ocket']?.[_0x183b2f(_0x3ef42e._0x53baf4,_0x3ef42e._0x2d836e)]();function _0x5dcd6b(_0xdb762f,_0x56b619){return _0x33cded(_0xdb762f,_0x56b619- -0x401);}this[_0x5dcd6b(_0x3ef42e._0x137c1b,_0x3ef42e._0xfde547)+_0x183b2f(_0x3ef42e._0x18756f,0x433)]=null,this['gatewayS'+_0x183b2f(0x6c6,_0x3ef42e._0x1a10b0)]=null,this['pendingG'+_0x5dcd6b(0x3aa,_0x3ef42e._0xbadfbf)+_0x183b2f(_0x3ef42e._0x2ca086,0x4c4)]=[],this[_0x5dcd6b(_0x3ef42e._0x774f2e,0x1e9)+_0x183b2f(_0x3ef42e._0xc1f8a5,_0x3ef42e._0x1ca26e)+'Started']=![],this['clientDe'+'mandStar'+'tedAtMs']=null,this[_0x183b2f(0x57e,_0x3ef42e._0x35585e)+_0x5dcd6b(-_0x3ef42e._0x12ce14,-0x4a)+_0x183b2f(_0x3ef42e._0x101b26,_0x3ef42e._0x24edf3)]=null,this[_0x5dcd6b(_0x3ef42e._0x41c73a,0x364)+_0x5dcd6b(0x2d2,_0x3ef42e._0x4d8bd1)]=![],this[_0x183b2f(0x30b,0x451)+_0x183b2f(0x528,_0x3ef42e._0x1d6af7)+'g']=![];const _0x59bfe9={};_0x59bfe9[_0x183b2f(_0x3ef42e._0x5dfee5,0x485)]=![],_0x59bfe9[_0x5dcd6b(_0x3ef42e._0x4db9a1,_0x3ef42e._0x184eb2)+_0x5dcd6b(0x1a7,_0x3ef42e._0x2ca0c3)]=![],_0x59bfe9['gatewayC'+'onnected']=![],_0x59bfe9['clientCo'+_0x5dcd6b(0x2ba,_0x3ef42e._0x252ec1)]=0x0,_0x59bfe9[_0x183b2f(0x56d,0x735)+'r']=null,this[_0x183b2f(_0x3ef42e._0x6352f2,_0x3ef42e._0x152389)+_0x5dcd6b(0x218,_0x3ef42e._0x14d315)](_0x59bfe9),this[_0x5dcd6b(-0x11,_0x3ef42e._0x31a4f7)](_0x183b2f(0x517,_0x3ef42e._0x125cca)+_0x5dcd6b(_0x3ef42e._0x174f1b,_0x3ef42e._0x8ee119)),await _0x3e6607[_0x183b2f(0x682,_0x3ef42e._0x476035)](_0x3d9273,0x19);}async[_0x33cded(0x2ed,0x42b)+_0x5338aa(0x451,0x4e4)+'st'](_0xc35c66){const _0x4981fe={_0x2dac90:0x1c6,_0x3da974:0x265,_0xe29cc2:0x2a6,_0x27f639:0x318,_0x2a8768:0xc6,_0x8b3b83:0x152},_0x5879e8={_0x3e4b8a:0x3a2},_0x49c940={_0x466d30:0x57a},_0x49f9cc={};_0x49f9cc[_0xf81f97(-0x1a2,-0x91)+'d']=_0xc35c66;function _0xf81f97(_0x353b2c,_0x16432f){return _0x33cded(_0x16432f,_0x353b2c- -_0x49c940._0x466d30);}this[_0x7e7e8d(0x162,0x324)+'wayReque'+'st'](_0xf81f97(_0x4981fe._0x2dac90,0x7)+_0x7e7e8d(_0x4981fe._0x3da974,_0x4981fe._0xe29cc2)+'ove',_0x49f9cc);function _0x7e7e8d(_0x4b62f3,_0x2df6ba){return _0x33cded(_0x2df6ba,_0x4b62f3- -_0x5879e8._0x3e4b8a);}this[_0xf81f97(0x96,-0x8d)+_0x7e7e8d(0x113,-0x19)+_0x7e7e8d(_0x4981fe._0x27f639,0x4db)](_0xc35c66,_0x7e7e8d(_0x4981fe._0x2a8768,_0x4981fe._0x8b3b83));}async[_0x33cded(0x4a6,0x5e7)+'irReques'+'t'](_0x195143){const _0x51dac6={_0x15c021:0x1a7,_0x2c99df:0x19f,_0x578a8c:0x8a,_0x62edc4:0x196,_0x5b2518:0x276,_0x59380f:0x3b,_0x4372e8:0x169,_0x34425d:0x240,_0x2af666:0x213},_0x1dd2b9={_0xed89d1:0x2f8},_0x3116db={};function _0x304399(_0x47ec96,_0x4eae1e){return _0x5338aa(_0x47ec96- -0x1d9,_0x4eae1e);}_0x3116db[_0x304399(0x226,0x380)]=_0x5ef870(_0x51dac6._0x15c021,0xa4)+_0x5ef870(_0x51dac6._0x2c99df,0x151)+'ct';const _0x55f766=_0x3116db,_0x2ef360={};_0x2ef360['requestI'+'d']=_0x195143;function _0x5ef870(_0xc36932,_0x300007){return _0x5338aa(_0xc36932- -_0x1dd2b9._0xed89d1,_0x300007);}this[_0x304399(_0x51dac6._0x578a8c,-0xab)+'wayReque'+'st'](_0x55f766[_0x304399(0x226,0x3b5)],_0x2ef360),this[_0x304399(_0x51dac6._0x62edc4,_0x51dac6._0x5b2518)+_0x304399(_0x51dac6._0x59380f,_0x51dac6._0x4372e8)+_0x304399(_0x51dac6._0x34425d,0x351)](_0x195143,_0x304399(_0x51dac6._0x2af666,0x2fe));}['getSnaps'+'hot'](){const _0x458cea={_0x31086c:0x398,_0x3113d4:0x124,_0x2e91aa:0x203,_0x51b02d:0x13,_0x4b5c8c:0xc,_0x41ba35:0x251,_0x2cd52e:0x206,_0x40e1bf:0x16d,_0x11e836:0x41b,_0x36949c:0x50b},_0x35305e={_0xf3f5ec:0x184},_0x25682b={...this['snapshot']};function _0x726247(_0x184bd9,_0x3f240d){return _0x33cded(_0x3f240d,_0x184bd9- -0x4a1);}function _0x5d3df9(_0x7fd6c0,_0x44bcf1){return _0x33cded(_0x7fd6c0,_0x44bcf1- -_0x35305e._0xf3f5ec);}return _0x25682b['connecte'+'dDevices']=[...this[_0x5d3df9(_0x458cea._0x31086c,0x2fa)]['connecte'+_0x726247(_0x458cea._0x3113d4,_0x458cea._0x2e91aa)]],_0x25682b[_0x726247(-_0x458cea._0x51b02d,_0x458cea._0x4b5c8c)+_0x726247(_0x458cea._0x41ba35,0x250)+_0x726247(_0x458cea._0x2cd52e,0x3df)]=[...this[_0x726247(-0x23,_0x458cea._0x40e1bf)][_0x726247(-0x13,0xdb)+_0x726247(_0x458cea._0x41ba35,_0x458cea._0x11e836)+_0x5d3df9(_0x458cea._0x36949c,0x523)]],_0x25682b;}async['connectR'+_0x33cded(0x43a,0x609)](){const _0x7ebc63={_0x3f4b74:0xd1,_0x6eaea2:0x362,_0x48dc2d:0x4c3,_0x10ecd4:0x44f,_0x138882:0x565,_0x16c360:0x3a5,_0x1d15ed:0x156,_0x5affbd:0x45e,_0x5f5229:0x23a,_0x1e2307:0x1ba,_0x1ccead:0x607,_0x1d6903:0x3a,_0x4b0fd8:0x18d,_0x56c0a8:0xec,_0x1546b6:0x166,_0x4ccff5:0x5ce,_0x4ec820:0x169,_0x863b2b:0x245,_0x5acfac:0x1fb,_0x58d704:0x31f,_0x2eeaf5:0x405,_0x5bb684:0x38c,_0x4ff418:0x531,_0x2cadb2:0x46c,_0x358d02:0xe2,_0x403351:0x1d1,_0x5ae15d:0x86,_0x35d3c5:0x492,_0x48c6c2:0x7c},_0x3a6176={_0x558822:0x302,_0x19bec5:0x27e,_0x2bf22a:0x190,_0x24c67f:0x6c0,_0x2ccfec:0x7f4,_0x5797aa:0x340,_0x195e51:0x3c3,_0x5f5db3:0x2f1,_0xb7b27e:0x69d,_0x2a67b8:0x4d1,_0x411775:0x360,_0x147ff7:0x4c0,_0x3995d7:0x50f,_0x49f4d4:0x23,_0x51173e:0x180,_0x56d11e:0x280,_0x5b3323:0x2bb,_0x5ae6d1:0x31a,_0x47b909:0x575,_0x2aacc1:0x5cd,_0x1c0a1d:0x5d1,_0x514b6e:0x719,_0x321f37:0x378,_0x311f8e:0x2c0},_0x2d3a4a={_0x540409:0x117,_0x2aada2:0x107},_0x9097df={_0x1b29f7:0x23d},_0x1b3db4={_0x3ca3c2:0x54c,_0x154c77:0x553},_0x22893b={_0x101d6e:0x178},_0x5e587e={_0x44ac1f:0x1de,_0x59835e:0x7cb,_0x463899:0x805,_0x41a32e:0x652,_0x3bbbee:0x644,_0x5df0be:0x5ce,_0x5ef42f:0x791,_0x36b362:0x109,_0x5a28e2:0x1f0,_0x8ff53:0x23,_0x573c37:0x7de,_0x4bbea8:0x683,_0x579f83:0x6d5,_0x3492d3:0x155,_0x8c5362:0x561,_0x28a65c:0xa2,_0x4b7b80:0x4d9,_0x3e0d1d:0x783,_0x1836b6:0x838,_0x61ff76:0x472,_0x1164b3:0x2b9,_0x33d7a2:0xc9},_0x4f217a={_0xc5ad41:0x9a},_0x4531d8={};_0x4531d8[_0x11e92b(-0x154,-_0x7ebc63._0x3f4b74)]=function(_0x656af8,_0x555dfb){return _0x656af8===_0x555dfb;},_0x4531d8[_0x4f82f6(_0x7ebc63._0x6eaea2,0x29c)]=_0x4f82f6(_0x7ebc63._0x48dc2d,_0x7ebc63._0x10ecd4),_0x4531d8[_0x4f82f6(_0x7ebc63._0x138882,0x44a)]=_0x4f82f6(0x35d,_0x7ebc63._0x16c360),_0x4531d8[_0x4f82f6(0x258,_0x7ebc63._0x1d15ed)]='error';const _0x2bf639=_0x4531d8;if(this[_0x4f82f6(_0x7ebc63._0x5affbd,0x328)]||this[_0x11e92b(_0x7ebc63._0x5f5229,_0x7ebc63._0x1e2307)+_0x4f82f6(0x455,_0x7ebc63._0x1ccead)]||this[_0x11e92b(_0x7ebc63._0x1d6903,-_0x7ebc63._0x4b0fd8)+_0x11e92b(-_0x7ebc63._0x56c0a8,-_0x7ebc63._0x1546b6)]())return;this[_0x4f82f6(_0x7ebc63._0x4ccff5,0x60e)+_0x11e92b(0xc1,_0x7ebc63._0x4ec820)]=!![],this[_0x11e92b(-0x67,-_0x7ebc63._0x863b2b)+'empt']+=0x1;const _0x31e22c=this[_0x4f82f6(0x32d,_0x7ebc63._0x5acfac)+'empt'],_0x2e7c72=buildRelayWsUrl(this['options'][_0x4f82f6(_0x7ebc63._0x58d704,0x306)]);function _0x11e92b(_0x943a3d,_0x40d7af){return _0x5338aa(_0x943a3d- -0x28a,_0x40d7af);}this[_0x4f82f6(0x364,_0x7ebc63._0x2eeaf5)](_0x4f82f6(_0x7ebc63._0x5bb684,0x497)+_0x4f82f6(0x23b,0x11c)+'tempt='+_0x31e22c+_0x4f82f6(_0x7ebc63._0x4ff418,0x4f4)+redactRelayWsUrl(_0x2e7c72));const _0x345ed3={};_0x345ed3[_0x4f82f6(_0x7ebc63._0x2cadb2,0x313)+'ad']=0x19*0x400*0x400;const _0x2bc32f=new _0x10c370(_0x2e7c72,_0x345ed3);this['relaySoc'+'ket']=_0x2bc32f,_0x2bc32f[_0x4f82f6(0x2da,0x31d)](_0x11e92b(-_0x7ebc63._0x358d02,0x8a),()=>{function _0x23e196(_0x5d8252,_0x5bec78){return _0x11e92b(_0x5d8252-0x591,_0x5bec78);}if(this[_0x23e196(0x65b,0x80d)]||this[_0x23e196(0x5bf,0x5a6)+_0x5f1f6d(-_0x5e587e._0x44ac1f,-0x8a)]!==_0x2bc32f){_0x2bc32f['close']();return;}this[_0x23e196(_0x5e587e._0x59835e,_0x5e587e._0x463899)+_0x23e196(_0x5e587e._0x41a32e,_0x5e587e._0x3bbbee)]=![],this[_0x23e196(_0x5e587e._0x5df0be,0x419)+_0x23e196(_0x5e587e._0x5ef42f,0x6c4)+_0x5f1f6d(_0x5e587e._0x36b362,_0x5e587e._0x5a28e2)]=Date[_0x5f1f6d(-_0x5e587e._0x8ff53,-0x59)]();const _0x5cc665={};_0x5cc665[_0x23e196(0x7cb,_0x5e587e._0x573c37)+_0x23e196(_0x5e587e._0x4bbea8,_0x5e587e._0x579f83)]=!![];function _0x5f1f6d(_0x56b13d,_0x1aa049){return _0x11e92b(_0x56b13d- -_0x4f217a._0xc5ad41,_0x1aa049);}_0x5cc665[_0x5f1f6d(0x124,-0x97)+'r']=null,this[_0x5f1f6d(0xe4,-0xbd)+_0x5f1f6d(_0x5e587e._0x3492d3,0x1b1)](_0x5cc665),this[_0x23e196(_0x5e587e._0x8c5362,0x49c)](_0x5f1f6d(-_0x5e587e._0x28a65c,0x47)+'nnected\x20'+_0x23e196(_0x5e587e._0x4b7b80,0x4bf)+_0x31e22c),this['startHea'+_0x23e196(_0x5e587e._0x3e0d1d,_0x5e587e._0x1836b6)](),this[_0x23e196(_0x5e587e._0x61ff76,_0x5e587e._0x1164b3)+_0x5f1f6d(_0x5e587e._0x33d7a2,0x182)+'nected']();}),_0x2bc32f['on'](_0x2bf639[_0x11e92b(_0x7ebc63._0x403351,_0x7ebc63._0x5ae15d)],(_0x4eac31,_0x452c75)=>{function _0x463308(_0x4009b6,_0x327872){return _0x11e92b(_0x327872-0x4b2,_0x4009b6);}function _0x11c71e(_0x11a7e8,_0x42aec6){return _0x11e92b(_0x42aec6-_0x22893b._0x101d6e,_0x11a7e8);}void this[_0x11c71e(0x442,0x28e)+_0x463308(0x4c5,0x41d)+'ge'](_0x4eac31,_0x452c75);}),_0x2bc32f['on'](_0x4f82f6(_0x7ebc63._0x35d3c5,0x454),()=>{function _0x4e7936(_0x4e84a8,_0x52371b){return _0x11e92b(_0x52371b-0x353,_0x4e84a8);}function _0x106fe7(_0x4e1d64,_0x4a298a){return _0x11e92b(_0x4a298a-0x4a0,_0x4e1d64);}this[_0x106fe7(0x51f,0x4dd)+_0x4e7936(_0x1b3db4._0x3ca3c2,_0x1b3db4._0x154c77)+_0x106fe7(0x732,0x643)]=Date[_0x106fe7(0x4c4,0x517)]();});function _0x4f82f6(_0x504e99,_0x5064c2){return _0x5338aa(_0x504e99-0x10a,_0x5064c2);}_0x2bc32f[_0x11e92b(-0xba,-0x101)](_0x2bf639['qTSRn'],_0x264d3f=>{const _0x195f0c={_0x9e55ab:0x534};function _0x355934(_0x3a6bc3,_0x5136b5){return _0x4f82f6(_0x3a6bc3- -_0x195f0c._0x9e55ab,_0x5136b5);}function _0x330b0b(_0x203b05,_0x53d679){return _0x4f82f6(_0x203b05- -_0x9097df._0x1b29f7,_0x53d679);}this[_0x330b0b(0x127,_0x2d3a4a._0x540409)](_0x355934(0x26,_0x2d3a4a._0x2aada2)+_0x330b0b(0x32e,0x2ad)+String(_0x264d3f));}),_0x2bc32f[_0x4f82f6(0x2da,0x101)](_0x11e92b(-0x3,_0x7ebc63._0x48c6c2),(_0x474786,_0x58726b)=>{const _0x1ca9cd={_0x24432b:0xf2};this[_0x236be5(0x2b1,_0x3a6176._0x558822)+'ket']===_0x2bc32f&&(this['relaySoc'+_0x236be5(_0x3a6176._0x19bec5,_0x3a6176._0x2bf22a)]=null);this[_0x28ce3d(_0x3a6176._0x24c67f,_0x3a6176._0x2ccfec)+_0x28ce3d(0x547,0x401)]=![],this[_0x28ce3d(0x30c,_0x3a6176._0x5797aa)+_0x236be5(_0x3a6176._0x195e51,0x514)](),this[_0x236be5(_0x3a6176._0x5f5db3,0x247)+_0x28ce3d(_0x3a6176._0xb7b27e,_0x3a6176._0x2a67b8)+_0x236be5(0x1a4,0x336)]=null;function _0x28ce3d(_0x3179dc,_0x917eb1){return _0x4f82f6(_0x3179dc-_0x1ca9cd._0x24432b,_0x917eb1);}function _0x236be5(_0x7ed4d9,_0x426d3b){return _0x4f82f6(_0x426d3b- -0xc0,_0x7ed4d9);}this[_0x28ce3d(_0x3a6176._0x411775,_0x3a6176._0x147ff7)+'onnected'+_0x236be5(0x4a2,_0x3a6176._0x3995d7)]=null,this[_0x28ce3d(0x604,0x5de)+_0x28ce3d(0x675,0x724)]({'relayConnected':![],'gatewayConnected':![],'clientCount':0x0,'lastError':_0x2bf639[_0x236be5(-_0x3a6176._0x49f4d4,_0x3a6176._0x51173e)](_0x474786,0x3e8)?null:'relay\x20cl'+_0x236be5(0x51d,0x3ff)+(_0x58726b[_0x236be5(_0x3a6176._0x56d11e,_0x3a6176._0x195e51)]()||_0x474786)}),this[_0x28ce3d(0x456,_0x3a6176._0x5b3323)](_0x236be5(0x47c,0x46b)+'sconnect'+'ed\x20code='+_0x474786+_0x28ce3d(0x49e,_0x3a6176._0x5ae6d1)+(_0x58726b[_0x28ce3d(_0x3a6176._0x47b909,_0x3a6176._0x2aacc1)]()||_0x2bf639['sFUnc'])),this[_0x28ce3d(_0x3a6176._0x1c0a1d,_0x3a6176._0x514b6e)+_0x28ce3d(_0x3a6176._0x321f37,0x207)](),this[_0x236be5(0x409,0x401)+_0x236be5(0x2d8,_0x3a6176._0x311f8e)+'onnect']();});}async['handleRe'+_0x5338aa(0x1f5,0x138)+'ge'](_0x47ff77,_0x27eee9){const _0x57e4ba={_0x5c31ca:0x4ec,_0x1d028a:0x5a7,_0x4ceed3:0x5c9,_0x268ab1:0x638,_0x455cc6:0x49c,_0x45eab2:0x454,_0x541be3:0x476,_0x5c7317:0x484,_0x35fab7:0x3c7,_0x57773a:0x5bd,_0x5a7bd8:0x3e1,_0x4c3422:0x417,_0x347b05:0x3a1,_0xb4c497:0x3c6,_0x580f6f:0x502,_0x14caa2:0x2c4,_0x1d46cf:0x57c,_0x267c51:0x6bd,_0x11f213:0x589,_0x1caa20:0x371,_0x1e9eef:0x497,_0x21d963:0x519,_0x513a81:0x27c,_0x11e93e:0x2f9,_0x184a3f:0x3f8,_0xd994d1:0x484,_0x5a7056:0x3c7,_0x3e06c4:0x30c};function _0x4c796c(_0x526b36,_0x237c0e){return _0x33cded(_0x237c0e,_0x526b36- -0x184);}this[_0x4c796c(0x3e4,_0x57e4ba._0x5c31ca)+_0x4c796c(_0x57e4ba._0x1d028a,0x782)+_0x517428(_0x57e4ba._0x4ceed3,_0x57e4ba._0x268ab1)]=Date[_0x517428(0x6d0,0x50c)]();if(_0x27eee9){this[_0x4c796c(_0x57e4ba._0x455cc6,_0x57e4ba._0x45eab2)+_0x4c796c(0x27c,0x9a)+_0x517428(_0x57e4ba._0x541be3,_0x57e4ba._0x5c7317)+_0x4c796c(_0x57e4ba._0x35fab7,0x2ab)]({'kind':_0x517428(_0x57e4ba._0x57773a,0x534),'data':normalizeBinary(_0x47ff77)});return;}const _0x38a7e2=normalizeText(_0x47ff77);if(_0x38a7e2==null)return;const _0x3255ea=parseControl(_0x38a7e2);function _0x517428(_0x551db7,_0x455c48){return _0x33cded(_0x551db7,_0x455c48- -0x96);}if(_0x3255ea){this['handleRe'+'layContr'+'ol'](_0x3255ea[_0x517428(0x36d,_0x57e4ba._0x5a7bd8)],_0x3255ea[_0x517428(0x437,_0x57e4ba._0x4c3422)]);return;}const _0x3b6fe8=parseConnectStartIdentity(_0x38a7e2);_0x3b6fe8&&this[_0x4c796c(_0x57e4ba._0x347b05,0x1ff)+_0x4c796c(_0x57e4ba._0xb4c497,_0x57e4ba._0x580f6f)+_0x4c796c(_0x57e4ba._0x14caa2,0x40a)](_0x3b6fe8['id'],_0x3b6fe8[_0x517428(_0x57e4ba._0x1d46cf,0x647)]);const _0x5e3d88={};_0x5e3d88[_0x517428(_0x57e4ba._0x267c51,_0x57e4ba._0x11f213)]=_0x4c796c(_0x57e4ba._0x1caa20,_0x57e4ba._0x1e9eef),_0x5e3d88['text']=_0x38a7e2,this[_0x517428(_0x57e4ba._0x21d963,0x58a)+_0x4c796c(_0x57e4ba._0x513a81,_0x57e4ba._0x11e93e)+_0x517428(_0x57e4ba._0x184a3f,_0x57e4ba._0xd994d1)+_0x4c796c(_0x57e4ba._0x5a7056,_0x57e4ba._0x3e06c4)](_0x5e3d88);}[_0x5338aa(0x3a0,0x375)+_0x33cded(0x729,0x5d9)+'ol'](_0xc058e,_0x4cc6f5){const _0x53bec8={_0x4bded0:0x7b3,_0xac0151:0x7f9,_0x96a94d:0x26e,_0x5effe4:0x524,_0x38b044:0x6b6,_0x2911ae:0x7fa,_0x395ffd:0x2a2,_0x82c205:0x42e,_0xe0cc50:0x675,_0x30ab30:0x4c2,_0x4b607d:0x614,_0x549c0c:0x7a2,_0x466a4b:0x5d1,_0x1f7e86:0x42d,_0x58becc:0x636,_0x4ed585:0x696,_0x169ef0:0x79d,_0x1afa97:0x796,_0x2e3a71:0x679,_0xe5d682:0x5a1,_0x5e6bb5:0x583,_0x2b31c1:0x6fd,_0x7b5e34:0x5de,_0xe2609f:0x4d5,_0x52ff0b:0x711,_0x2870e5:0x731,_0x1ccd82:0x615,_0xa041f9:0x22e,_0x2a8571:0x28f,_0x1dc35a:0x852,_0x35636d:0x6ed,_0x1ba4a5:0x5dc,_0x3515fc:0x4b8,_0x5952ff:0x45e,_0x453a57:0x2a6,_0x4eb522:0x60a,_0x5c41ad:0x449,_0x26bd62:0x289,_0x3c871a:0x233,_0x4f41a2:0x521,_0x551249:0x63e,_0xa3d812:0x74d,_0xccca08:0x786,_0x26a275:0x354,_0x194e78:0x40d,_0x4eb6d6:0x566,_0x502465:0x532,_0x26ade2:0x4f5,_0x1f5271:0x6d6,_0x38f92b:0x34a,_0x1497d2:0x3e3,_0xe6851a:0x52f,_0x127a53:0x69b,_0x2503c3:0x4bc,_0x3f9d15:0x354,_0x4ecb8a:0x8e9,_0x1e0c79:0x7f0,_0x334d39:0x2aa,_0x1dedcb:0x3d7,_0xe351a9:0x566},_0x2c9913={_0x4ef8a3:0x44},_0x2a328c={};_0x2a328c[_0x2fd6b6(_0x53bec8._0x4bded0,_0x53bec8._0xac0151)]=function(_0xb5b6bf,_0xe6c8c1){return _0xb5b6bf===_0xe6c8c1;},_0x2a328c[_0x53be9a(_0x53bec8._0x96a94d,0x417)]=_0x2fd6b6(0x769,0x8dd)+_0x53be9a(_0x53bec8._0x5effe4,0x4ed)+'opped\x20to'+_0x2fd6b6(_0x53bec8._0x38b044,_0x53bec8._0x2911ae)+_0x53be9a(_0x53bec8._0x395ffd,0x35a)+_0x53be9a(0x3cf,0x3be)+'onnected';function _0x2fd6b6(_0x5d035a,_0x398dc9){return _0x33cded(_0x398dc9,_0x5d035a-_0x2c9913._0x4ef8a3);}const _0x4cf8ea=_0x2a328c;function _0x53be9a(_0x3b292e,_0x1d3407){return _0x33cded(_0x3b292e,_0x1d3407- -0x128);}if(_0xc058e==='client_c'+_0x2fd6b6(0x3fb,_0x53bec8._0x82c205)||_0xc058e===_0x2fd6b6(_0x53bec8._0xe0cc50,0x685)+_0x2fd6b6(0x5d6,0x615)){const _0x5c440e=this[_0x2fd6b6(_0x53bec8._0x30ab30,0x4a3)][_0x53be9a(0x6d5,0x636)+'unt'],_0x32bbe3=_0x4cc6f5??Math['max'](0x1,this[_0x2fd6b6(0x4c2,_0x53bec8._0x4b607d)][_0x2fd6b6(_0x53bec8._0x549c0c,0x629)+_0x2fd6b6(0x696,0x861)]);_0x32bbe3>0x0&&this['clientDe'+'mandStar'+_0x2fd6b6(_0x53bec8._0x466a4b,0x53d)]==null&&(this[_0x2fd6b6(0x4e2,_0x53bec8._0x1f7e86)+'mandStar'+'tedAtMs']=Date['now']());const _0x2a3bfc={};_0x2a3bfc[_0x53be9a(0x468,_0x53bec8._0x58becc)+_0x2fd6b6(_0x53bec8._0x4ed585,0x736)]=_0x32bbe3,this[_0x53be9a(0x5de,0x581)+_0x2fd6b6(0x75e,0x8ec)](_0x2a3bfc);if(_0x4cf8ea[_0x2fd6b6(0x7b3,0x8e6)](_0x32bbe3,0x0))this['gatewayH'+_0x2fd6b6(0x4c0,0x41d)+_0x2fd6b6(0x4ca,0x39b)]=![],this[_0x2fd6b6(_0x53bec8._0x169ef0,_0x53bec8._0x1afa97)+_0x2fd6b6(_0x53bec8._0x2e3a71,_0x53bec8._0xe5d682)+'t'](),this[_0x2fd6b6(0x53f,0x5f0)](_0x4cf8ea[_0x2fd6b6(_0x53bec8._0x5e6bb5,0x4bd)]);else{shouldRecycleGatewayForFreshClient(_0x5c440e,_0x32bbe3,this[_0x2fd6b6(_0x53bec8._0x2b31c1,_0x53bec8._0x7b5e34)+_0x2fd6b6(_0x53bec8._0xe2609f,0x4c3)](),![])&&(this[_0x2fd6b6(0x53f,_0x53bec8._0x52ff0b)]('gateway\x20'+'recycle\x20'+_0x53be9a(0x645,0x5c5)+_0x53be9a(_0x53bec8._0x2870e5,_0x53bec8._0x1ccd82)+'esh\x20clie'+_0x2fd6b6(0x4ba,0x427)+'d'),this['closeGat'+'eway']());if(this['isGatewa'+_0x2fd6b6(_0x53bec8._0xe2609f,0x417)]()){const _0x55151e={};_0x55151e['gatewayC'+_0x53be9a(_0x53bec8._0xa041f9,_0x53bec8._0x2a8571)]=!![],_0x55151e[_0x2fd6b6(0x72d,_0x53bec8._0x1dc35a)+'r']=null,this[_0x2fd6b6(_0x53bec8._0x35636d,0x54c)+_0x53be9a(_0x53bec8._0x1ba4a5,0x5f2)](_0x55151e),this[_0x2fd6b6(0x53f,0x527)](_0x2fd6b6(0x70a,_0x53bec8._0x58becc)+_0x2fd6b6(0x41d,0x409)+_0x53be9a(0x39c,0x4a0)+_0x53be9a(0x3d2,_0x53bec8._0x3515fc)+_0x53be9a(0x44e,0x4d8)+'enMs='+this[_0x53be9a(_0x53bec8._0x5952ff,_0x53bec8._0x453a57)+_0x2fd6b6(0x542,_0x53bec8._0x4eb522)](this[_0x2fd6b6(_0x53bec8._0x5c41ad,_0x53bec8._0x26bd62)+_0x2fd6b6(0x3fb,_0x53bec8._0x3c871a)+_0x53be9a(_0x53bec8._0x4f41a2,_0x53bec8._0x551249)])+('\x20handsha'+_0x2fd6b6(_0x53bec8._0xa3d812,_0x53bec8._0xccca08)+'d=')+this['gatewayH'+_0x53be9a(_0x53bec8._0x4f41a2,_0x53bec8._0x26a275)+_0x53be9a(0x405,0x35e)]);}}this['ensureGa'+_0x53be9a(_0x53bec8._0x194e78,_0x53bec8._0x4eb6d6)+_0x53be9a(_0x53bec8._0x502465,_0x53bec8._0x26ade2)]();return;}if(_0xc058e===_0x53be9a(_0x53bec8._0x1f5271,0x630)+_0x53be9a(_0x53bec8._0x38f92b,_0x53bec8._0x1497d2)+_0x2fd6b6(0x55c,_0x53bec8._0xe6851a)){const _0x5418c5=(_0x53be9a(0x26a,0x44c)+_0x2fd6b6(0x463,0x396))['split']('|');let _0x4a0a21=0x0;while(!![]){switch(_0x5418c5[_0x4a0a21++]){case'0':this[_0x53be9a(_0x53bec8._0x127a53,0x4c2)+_0x53be9a(_0x53bec8._0x2503c3,_0x53bec8._0x3f9d15)+_0x53be9a(0x541,0x35e)]=![];continue;case'1':const _0x1ad7f5={};_0x1ad7f5[_0x53be9a(0x457,0x636)+'unt']=0x0,this['updateSn'+_0x2fd6b6(0x75e,_0x53bec8._0x4ecb8a)](_0x1ad7f5);continue;case'2':this['markDevi'+_0x2fd6b6(_0x53bec8._0x2e3a71,_0x53bec8._0x1e0c79)+'t']();continue;case'3':this['log']('client\x20d'+_0x53be9a(0x2f4,_0x53bec8._0x1497d2)+_0x53be9a(_0x53bec8._0x334d39,0x3b8)+'ping\x20gat'+_0x53be9a(0x2de,_0x53bec8._0x1dedcb)+_0x53be9a(0x431,0x4f5));continue;case'4':this['ensureGa'+_0x53be9a(0x518,_0x53bec8._0xe351a9)+'nected']();continue;case'5':return;}break;}}}[_0x33cded(0x60c,0x620)+_0x5338aa(0x15f,0x22)+_0x5338aa(0x279,0x145)+_0x33cded(0x6c1,0x54b)](_0x2bf017){const _0x24383e={_0x4eb18e:0x42,_0x218ae9:0x161,_0x2a36b2:0x2c,_0x5f13a4:0xba,_0x37c6e9:0x1a,_0x256588:0x156,_0xa3fbef:0x34,_0x2f0c51:0x151,_0x13d4e4:0x1d3,_0x332198:0x11d,_0x42d810:0x8f,_0x47121c:0x12d,_0x526148:0x23f,_0x50e685:0x2e,_0x54f3ff:0x25,_0x34afc7:0x3c3,_0x26d654:0x218,_0x233a60:0x7b,_0x4f79f4:0x50,_0x3585cd:0x1b9,_0x4caedc:0x14c,_0xf54949:0x6d,_0xfc47a:0x28,_0x5546c3:0x32,_0x5e5c7c:0x12e,_0x313afb:0x3bb,_0x48c1c6:0x21f,_0x474d7b:0x17c,_0x1020f6:0x20c,_0x18a7d3:0x1eb,_0x40d522:0x182,_0x32cbb0:0xe9,_0x238273:0x268,_0x4bf937:0x8c,_0x25d87a:0x4f},_0x229dd1={'nzPdg':function(_0x451f33,_0x466578){return _0x451f33===_0x466578;},'dazgX':function(_0x5cae75,_0x469324){return _0x5cae75(_0x469324);}},_0x5f29a6=_0x229dd1[_0x5a0682(-_0x24383e._0x4eb18e,-0x33)](_0x2bf017[_0x5a0682(-_0x24383e._0x218ae9,-_0x24383e._0x2a36b2)],_0x2efbed(-_0x24383e._0x5f13a4,-0xe7))&&_0x229dd1[_0x5a0682(-0x127,_0x24383e._0x37c6e9)](isConnectHandshakeRequest,_0x2bf017[_0x5a0682(-0x29,-_0x24383e._0x256588)]),_0x25bc4a=this[_0x2efbed(-0x17a,_0x24383e._0xa3fbef)+_0x2efbed(_0x24383e._0x2f0c51,_0x24383e._0x13d4e4)];if(!_0x25bc4a||_0x25bc4a[_0x5a0682(-_0x24383e._0x332198,-_0x24383e._0x42d810)+'te']!==_0x10c370[_0x5a0682(0x2,-_0x24383e._0x47121c)]){this[_0x5a0682(-0x8e,-_0x24383e._0x526148)+'tewayCon'+_0x5a0682(-0x20f,-_0x24383e._0x50e685)](),this[_0x5a0682(-_0x24383e._0x54f3ff,-0x1c1)+_0x2efbed(-0x183,-0x2d2)+_0x5a0682(-_0x24383e._0x34afc7,-_0x24383e._0x26d654)+'e'](_0x2bf017);_0x5f29a6&&this[_0x5a0682(0x17,-0x150)](_0x5a0682(0x13d,_0x24383e._0x233a60)+_0x5a0682(-0x24f,-0x213)+_0x5a0682(-_0x24383e._0x4f79f4,-0x14f)+_0x2efbed(0x192,_0x24383e._0x3585cd)+'ct\x20hands'+_0x5a0682(-_0x24383e._0x4caedc,-0x25e)+_0x2efbed(0x62,0x82)+'il\x20gatew'+_0x2efbed(_0x24383e._0xf54949,_0x24383e._0xfc47a)+'nects');return;}if(!this[_0x2efbed(0x3b,-0x57)+_0x5a0682(-_0x24383e._0x5546c3,-0x1cf)+_0x2efbed(-0x129,-_0x24383e._0x5e5c7c)]){if(!_0x5f29a6){this[_0x5a0682(-0x29e,-0x1c1)+_0x5a0682(-_0x24383e._0x313afb,-_0x24383e._0x48c1c6)+_0x2efbed(-_0x24383e._0x474d7b,-0xab)+'e'](_0x2bf017);return;}this[_0x5a0682(-0xc,-0x61)+_0x5a0682(-_0x24383e._0x1020f6,-0x1cf)+'Started']=!![],this['log'](_0x5a0682(0x1d1,_0x24383e._0x233a60)+'handshak'+_0x2efbed(-_0x24383e._0x18a7d3,-0xb4)+_0x2efbed(_0x24383e._0x40d522,0x317)+'='+this['pendingG'+_0x5a0682(0x11f,_0x24383e._0x32cbb0)+'ssages'][_0x5a0682(_0x24383e._0x238273,_0x24383e._0x4bf937)]);}function _0x5a0682(_0x3d6901,_0xb84b4d){return _0x5338aa(_0xb84b4d- -0x3aa,_0x3d6901);}function _0x2efbed(_0x1c4b42,_0xdce3e6){return _0x5338aa(_0x1c4b42- -0x30e,_0xdce3e6);}this[_0x5a0682(0x230,_0x24383e._0x25d87a)+_0x2efbed(0x1,0x85)](_0x2bf017);}[_0x5338aa(0x16b,0xe1)+_0x5338aa(0x3ed,0x423)+_0x5338aa(0x37c,0x291)](){const _0x466068={_0x41cc6b:0x495,_0x4ff0f0:0x62a,_0x4e325e:0x19d,_0x96c3cb:0x5d1,_0x2aa4a0:0x713,_0x587284:0x3c1,_0x1527f:0x597,_0x14e9fc:0x387,_0x361e1c:0x346,_0x2f9591:0x356,_0x289781:0x47d,_0xf5269d:0x155,_0x3cf6b9:0x1c3,_0x6386:0x13c,_0x373aa4:0x3a8,_0xe55ca:0x495,_0x5edf45:0x404,_0x6caf05:0x38d,_0x38ae8d:0x411},_0x3ec52e={_0x5503da:0x38e,_0x566719:0x4b7,_0x3a2db6:0x3a4,_0x24ee17:0x65c,_0x946a17:0x51a,_0x58181a:0x66c,_0x31acdb:0x1a8,_0x342924:0x3c9,_0x46a237:0x509,_0x427c4d:0x5d0,_0x4a8125:0x5a3,_0x1caae0:0x500,_0x325615:0x8e7,_0x37679c:0x76b,_0x948759:0x5d6,_0x445515:0x620,_0x4ecfa4:0x69c,_0x949aec:0x29e,_0x1ec7bd:0x38e,_0x3a595c:0x519,_0x1a5542:0x4c2,_0x46fe52:0x69c,_0x553620:0x8a0,_0x3ddd88:0x6f7,_0x5bd689:0x241,_0x5d8f31:0x7c4,_0x89ea9b:0x330,_0x20ba94:0x2d0,_0x7a1ceb:0x20c},_0x318729={_0x53cf79:0x335,_0x2116f2:0x2ad,_0x2fb9f1:0x35b,_0x46e029:0x3f8},_0x460952={_0x4a1c06:0x223},_0x6fba33={_0x5c0b93:0x173,_0x2bf15e:0x183,_0x3c1ce6:0x1cc},_0x3c8958={_0x45dde8:0x136,_0x183fdd:0xa2,_0x32940e:0xe7,_0x2adc41:0x20,_0x3a854e:0xba,_0x4c63e3:0x1c5,_0x264403:0x232,_0x579968:0x299,_0x20df3d:0x28a,_0x27f2e6:0x28,_0xf7aeaa:0xd7,_0x22dca6:0x1cd,_0x5b73e7:0x285,_0x26d076:0xec,_0x24b5c3:0x223,_0x3121d3:0x119,_0x4a3620:0x1fc,_0x59c835:0x147,_0x471d27:0x266,_0x1dcbdb:0x102,_0x231779:0xb1,_0xb66a24:0xa6,_0x1bec4c:0x1f1,_0x42ba3a:0x13e,_0x59fc32:0x26},_0x4b7890={_0x50dbaa:0xd2},_0x58e725={};_0x58e725[_0x5aaf17(_0x466068._0x41cc6b,_0x466068._0x4ff0f0)]=function(_0x37733b,_0x53b6c8){return _0x37733b*_0x53b6c8;},_0x58e725[_0x564c05(_0x466068._0x4e325e,0x1db)]=_0x5aaf17(0x476,_0x466068._0x96c3cb);const _0x5713cb=_0x58e725;if(this[_0x5aaf17(0x577,_0x466068._0x2aa4a0)]||!this['isRelayO'+_0x5aaf17(_0x466068._0x587284,_0x466068._0x1527f)]()||this[_0x5aaf17(_0x466068._0x14e9fc,0x328)+_0x564c05(0x1c6,0x162)+'g']||this[_0x564c05(0x2f8,_0x466068._0x361e1c)+_0x5aaf17(0x413,0x23e)]())return;this[_0x5aaf17(_0x466068._0x14e9fc,_0x466068._0x2f9591)+'onnectin'+'g']=!![],this[_0x5aaf17(_0x466068._0x289781,0x622)]('gateway\x20'+_0x564c05(_0x466068._0xf5269d,_0x466068._0x3cf6b9)+_0x564c05(0x31e,_0x466068._0x6386)+'l='+this['options'][_0x564c05(0x2bd,_0x466068._0x373aa4)+'rl']);const _0x312119=new _0x10c370(this['options'][_0x5aaf17(0x69d,0x7eb)+'rl'],{'maxPayload':_0x5713cb[_0x5aaf17(_0x466068._0xe55ca,_0x466068._0x5edf45)](0x19*0x400,0x400)});function _0x564c05(_0x3e414e,_0x48349a){return _0x5338aa(_0x48349a- -_0x4b7890._0x50dbaa,_0x3e414e);}this[_0x564c05(0x7d,0xc2)+_0x564c05(0x461,_0x466068._0x6caf05)]=_0x312119,_0x312119[_0x564c05(0x1ff,0xfe)]('open',()=>{const _0x579314={_0x5b2f97:0x45e};if(this['stopped']||this['gatewayS'+_0xee79f4(0x297,_0x3c8958._0x45dde8)]!==_0x312119){_0x312119[_0xee79f4(-0x11,-_0x3c8958._0x183fdd)]();return;}function _0x588bbb(_0x25a551,_0x4597a3){return _0x5aaf17(_0x4597a3- -_0x579314._0x5b2f97,_0x25a551);}this['gatewayC'+_0x588bbb(-_0x3c8958._0x32940e,-0x7)+'g']=![],this[_0xee79f4(-0x102,_0x3c8958._0x2adc41)+_0x588bbb(_0x3c8958._0x3a854e,-0x60)+'Started']=![],this[_0xee79f4(-0x1a3,-_0x3c8958._0x4c63e3)+_0xee79f4(-_0x3c8958._0x264403,-0x213)+_0x588bbb(_0x3c8958._0x579968,_0x3c8958._0x20df3d)]=Date[_0xee79f4(-0x84,-_0x3c8958._0x27f2e6)]();const _0x3d143f={};_0x3d143f[_0x588bbb(-0xec,-_0x3c8958._0xf7aeaa)+_0xee79f4(-0x2f4,-0x213)]=!![],_0x3d143f[_0x588bbb(0x208,0x20d)+'r']=null;function _0xee79f4(_0x5df076,_0x1b9b65){return _0x5aaf17(_0x1b9b65- -0x54c,_0x5df076);}this[_0x588bbb(0x19a,_0x3c8958._0x22dca6)+'apshot'](_0x3d143f),this[_0xee79f4(-_0x3c8958._0x5b73e7,-0xcf)]('gateway\x20'+_0x588bbb(0x190,_0x3c8958._0x26d076)+_0x588bbb(-_0x3c8958._0x24b5c3,-0xfd)+'lientDem'+_0xee79f4(-_0x3c8958._0x3121d3,-0xaa)+this[_0xee79f4(-0x171,-_0x3c8958._0x4a3620)+'ince'](this[_0x588bbb(_0x3c8958._0x59c835,-0x3e)+_0x588bbb(0x1a9,_0x3c8958._0x471d27)+_0x588bbb(-_0x3c8958._0x1dcbdb,_0x3c8958._0x231779)])),this['flushPen'+_0x588bbb(0x5f,_0x3c8958._0xb66a24)+_0xee79f4(_0x3c8958._0x1bec4c,_0x3c8958._0x42ba3a)+_0xee79f4(0x89,_0x3c8958._0x59fc32)]();}),_0x312119['on'](_0x5713cb[_0x5aaf17(0x4d0,_0x466068._0x38ae8d)],(_0xa0bb54,_0x10ce96)=>{function _0xf8f40e(_0x448e6f,_0x4b3134){return _0x5aaf17(_0x4b3134- -0x443,_0x448e6f);}function _0x2ee876(_0x4daba0,_0x4404b6){return _0x5aaf17(_0x4daba0- -0x60f,_0x4404b6);}this[_0x2ee876(0x99,-0x24)+_0x2ee876(-_0x6fba33._0x5c0b93,-_0x6fba33._0x2bf15e)+_0xf8f40e(_0x6fba33._0x3c1ce6,0x8a)](_0xa0bb54,_0x10ce96);});function _0x5aaf17(_0x1af34a,_0x573036){return _0x5338aa(_0x1af34a-_0x460952._0x4a1c06,_0x573036);}_0x312119[_0x5aaf17(0x3f3,0x37c)](_0x5aaf17(0x4ad,0x539),_0x42633f=>{function _0x355120(_0x3253b3,_0x3b9c0d){return _0x5aaf17(_0x3253b3- -0x324,_0x3b9c0d);}function _0x24e74a(_0x2cea45,_0x2d8d8a){return _0x5aaf17(_0x2cea45- -0x31a,_0x2d8d8a);}this[_0x355120(0x159,_0x318729._0x53cf79)](_0x24e74a(0x32e,_0x318729._0x2116f2)+_0x24e74a(_0x318729._0x2fb9f1,_0x318729._0x46e029)+String(_0x42633f));}),_0x312119['once'](_0x5aaf17(0x4aa,0x43d),(_0x548c93,_0x459e6e)=>{const _0x2a842c={_0x573ef5:0x1df},_0x2cd418={_0x3419ae:0x100};this[_0x6e5d6e(_0x3ec52e._0x5503da,_0x3ec52e._0x566719)+'ocket']===_0x312119&&(this['gatewayS'+'ocket']=null);this[_0x6e5d6e(_0x3ec52e._0x3a2db6,0x487)+_0x6e5d6e(_0x3ec52e._0x24ee17,0x557)+'g']=![],this[_0x6e5d6e(_0x3ec52e._0x946a17,_0x3ec52e._0x58181a)+_0x6e5d6e(0x656,0x4fe)+_0x6e5d6e(0x682,0x508)]=![],this[_0x63a20f(_0x3ec52e._0x31acdb,0x306)+_0x6e5d6e(_0x3ec52e._0x342924,0x439)+_0x63a20f(_0x3ec52e._0x46a237,_0x3ec52e._0x427c4d)]=null;function _0x6e5d6e(_0x2ad428,_0x4a187d){return _0x5aaf17(_0x4a187d-_0x2cd418._0x3419ae,_0x2ad428);}this[_0x63a20f(0x44c,0x2e8)+'apshot']({'gatewayConnected':![],'lastError':_0x548c93===0x3e8?this[_0x6e5d6e(_0x3ec52e._0x4a8125,_0x3ec52e._0x1caae0)][_0x6e5d6e(_0x3ec52e._0x325615,_0x3ec52e._0x37679c)+'r']:_0x6e5d6e(_0x3ec52e._0x948759,0x748)+'closed:\x20'+(_0x459e6e[_0x6e5d6e(_0x3ec52e._0x445515,_0x3ec52e._0x4ecfa4)]()||_0x548c93)}),this[_0x63a20f(_0x3ec52e._0x949aec,0x196)]('gateway\x20'+_0x63a20f(_0x3ec52e._0x1ec7bd,_0x3ec52e._0x3a595c)+'cted\x20cod'+'e='+_0x548c93+'\x20reason='+(_0x459e6e[_0x6e5d6e(_0x3ec52e._0x1a5542,_0x3ec52e._0x46fe52)]()||_0x63a20f(0x3fd,0x2c3))+(_0x6e5d6e(_0x3ec52e._0x553620,_0x3ec52e._0x3ddd88)+_0x63a20f(0x333,0x4d1)+'ndMs=')+this['elapsedS'+_0x6e5d6e(0x52e,0x580)](this[_0x63a20f(_0x3ec52e._0x5bd689,0x1ff)+_0x6e5d6e(0x615,_0x3ec52e._0x5d8f31)+_0x63a20f(_0x3ec52e._0x89ea9b,_0x3ec52e._0x20ba94)]));function _0x63a20f(_0x2f3037,_0x1a618d){return _0x5aaf17(_0x2f3037- -_0x2a842c._0x573ef5,_0x1a618d);}this['schedule'+_0x6e5d6e(0x542,0x6cc)+_0x63a20f(_0x3ec52e._0x7a1ceb,0x3c)]();});}[_0x5338aa(0x485,0x2e4)+_0x33cded(0x369,0x51a)+_0x33cded(0x3bf,0x54b)](_0x6e4f46,_0x35b0de){const _0x3e8382={_0x57813f:0x18,_0xfda3c9:0x2d,_0x3cd241:0xe4,_0xf62554:0xcd,_0x4ca139:0x75,_0x3b093f:0x10d,_0x4d6cec:0x26f,_0x15339c:0x19e,_0x3df9bb:0x2cc,_0x4645d3:0x3d7,_0x3242df:0x41,_0x42d0a8:0xe4},_0x790ea7={'vOgMx':function(_0x5e4b18,_0x3108c7){return _0x5e4b18(_0x3108c7);},'KLZGC':function(_0x4c6404,_0x13c9f0){return _0x4c6404==_0x13c9f0;}},_0x6bf531=this['relaySoc'+'ket'];if(!_0x6bf531||_0x6bf531['readySta'+'te']!==_0x10c370[_0x182362(-0xbb,-_0x3e8382._0x57813f)])return;if(_0x35b0de){_0x6bf531[_0x182362(_0x3e8382._0xfda3c9,-_0x3e8382._0x3cd241)](normalizeBinary(_0x6e4f46));return;}const _0x469e88=_0x790ea7['vOgMx'](normalizeText,_0x6e4f46);if(_0x790ea7[_0x182362(-_0x3e8382._0xf62554,-_0x3e8382._0x4ca139)](_0x469e88,null))return;const _0x2198ab=parsePairingRequestFromError(_0x469e88);_0x2198ab&&this[_0x182362(0x229,_0x3e8382._0x3b093f)+_0x17dbfc(_0x3e8382._0x4d6cec,0x41e)+_0x182362(0x6e,0xad)](_0x2198ab);const _0x5311bc=parsePairResolvedEvent(_0x469e88);function _0x182362(_0x26f474,_0x4401d8){return _0x5338aa(_0x4401d8- -0x295,_0x26f474);}function _0x17dbfc(_0x195eae,_0xbeacfd){return _0x5338aa(_0x195eae- -0x76,_0xbeacfd);}_0x5311bc&&this[_0x182362(0x222,0xda)+_0x17dbfc(_0x3e8382._0x15339c,_0x3e8382._0x3df9bb)+_0x17dbfc(0x3a3,_0x3e8382._0x4645d3)](_0x5311bc[_0x17dbfc(0xc1,_0x3e8382._0x3242df)+'d'],_0x5311bc['decision']),_0x6bf531[_0x182362(-0xe2,-_0x3e8382._0x42d0a8)](_0x469e88);}[_0x33cded(0x3b7,0x3b8)+_0x33cded(0x4a6,0x582)+_0x33cded(0x588,0x708)+_0x33cded(0x7a9,0x5f0)](){const _0x5c5fdf={_0x4b3ee3:0xf6,_0x5854bb:0x2a4,_0x4ad107:0x120,_0x459131:0x209,_0x45303a:0x103,_0x23ba22:0x219,_0x119b19:0x167,_0x298b22:0x20b,_0x1e6473:0x72,_0x2b98ee:0x2d5,_0x5765e4:0x20b,_0x2eb208:0x29,_0x2372e8:0x2cc,_0x7ebf59:0x29b,_0x428ac3:0x3e8,_0x1e0986:0x113},_0x34110e={_0x41d0d2:0x3f0},_0x31c153={};function _0x5397e2(_0x22b699,_0x53af88){return _0x5338aa(_0x53af88- -0x74,_0x22b699);}_0x31c153['FRnnv']=_0x5397e2(_0x5c5fdf._0x4b3ee3,0x1e0);const _0x59ee06=_0x31c153,_0x3ce1a5=this[_0x5397e2(_0x5c5fdf._0x5854bb,_0x5c5fdf._0x4ad107)+'ocket'];if(!_0x3ce1a5||_0x3ce1a5[_0x5a30c3(-0x20c,-0xd5)+'te']!==_0x10c370[_0x5397e2(0x39d,_0x5c5fdf._0x459131)])return;const _0x4cd1bb=[];function _0x5a30c3(_0xbb1cf,_0x82594c){return _0x5338aa(_0x82594c- -_0x34110e._0x41d0d2,_0xbb1cf);}const _0x576a3e=[...this['pendingG'+_0x5a30c3(_0x5c5fdf._0x45303a,0xa3)+_0x5397e2(0x346,0x163)]];this['pendingG'+_0x5a30c3(0x128,0xa3)+_0x5a30c3(-0x152,-_0x5c5fdf._0x23ba22)]=[];for(const _0x4e50eb of _0x576a3e){if(!this[_0x5397e2(0xf0,0x2d5)+_0x5397e2(0xfb,_0x5c5fdf._0x119b19)+_0x5a30c3(-0x3a3,-_0x5c5fdf._0x298b22)]){if(_0x4e50eb[_0x5a30c3(0x1c,-_0x5c5fdf._0x1e6473)]!==_0x59ee06[_0x5a30c3(0xc0,-0xce)]||!isConnectHandshakeRequest(_0x4e50eb['text'])){_0x4cd1bb['push'](_0x4e50eb);continue;}this['gatewayH'+'andshake'+_0x5a30c3(-_0x5c5fdf._0x2b98ee,-_0x5c5fdf._0x5765e4)]=!![];}this[_0x5a30c3(_0x5c5fdf._0x2eb208,0x9)+_0x5397e2(_0x5c5fdf._0x2372e8,_0x5c5fdf._0x7ebf59)](_0x4e50eb);}this['pendingG'+_0x5397e2(_0x5c5fdf._0x428ac3,0x41f)+_0x5397e2(_0x5c5fdf._0x1e0986,0x163)]=_0x4cd1bb;}['sendToGa'+_0x5338aa(0x30f,0x469)](_0x5c20f4){const _0x3b45fd={_0x264ef9:0x58f,_0x1efc09:0x17,_0x2f6c1b:0x1d2,_0x3fea44:0x3ff,_0x285c62:0x406,_0x6d35f4:0x118,_0x5f3d5e:0xa4,_0x381ccc:0x12,_0x54640e:0xc,_0x4b3f4e:0x524,_0x200356:0x259,_0x329f79:0xcc,_0x752a7f:0x3d,_0x5a3918:0x12,_0x52bfd6:0xe9,_0x59f980:0x20a},_0x56a990={_0x4960e8:0x266},_0x3770a6=this['gatewayS'+_0x190a1b(0x357,0x1f9)];if(!_0x3770a6||_0x3770a6[_0x1b113b(0x596,_0x3b45fd._0x264ef9)+'te']!==_0x10c370[_0x190a1b(0x148,_0x3b45fd._0x1efc09)]){this[_0x190a1b(-_0x3b45fd._0x2f6c1b,-0x7d)+_0x1b113b(0x23d,_0x3b45fd._0x3fea44)+_0x1b113b(0x293,_0x3b45fd._0x285c62)+'e'](_0x5c20f4);return;}function _0x190a1b(_0x5584cb,_0x14c137){return _0x5338aa(_0x14c137- -_0x56a990._0x4960e8,_0x5584cb);}function _0x1b113b(_0x198082,_0x177202){return _0x5338aa(_0x177202-0x274,_0x198082);}if(_0x5c20f4[_0x190a1b(-0x6e,_0x3b45fd._0x6d35f4)]==='text'){const _0x32dd59=patchConnectRequestGatewayAuth(_0x5c20f4[_0x190a1b(-_0x3b45fd._0x5f3d5e,-_0x3b45fd._0x381ccc)],readOpenClawInfo());_0x32dd59['injected']&&this[_0x190a1b(-0x1ec,-_0x3b45fd._0x54640e)](_0x1b113b(0x6d7,0x699)+_0x1b113b(_0x3b45fd._0x4b3f4e,0x509)+_0x1b113b(0x5b6,0x6b3)+_0x190a1b(_0x3b45fd._0x200356,_0x3b45fd._0x329f79)+'e=passwo'+'rd');_0x3770a6[_0x1b113b(0x26d,0x425)](_0x32dd59[_0x190a1b(_0x3b45fd._0x752a7f,-_0x3b45fd._0x5a3918)]);return;}_0x3770a6['send'](_0x5c20f4[_0x190a1b(_0x3b45fd._0x52bfd6,_0x3b45fd._0x59f980)]);}['sendGate'+'wayReque'+'st'](_0x27e831,_0x328105){const _0x302ac5={_0x175e0f:0x54b,_0x25e637:0x6da,_0x318b0e:0x233,_0x54518f:0xa5,_0x5db0e0:0x2df,_0x1f21c1:0x37,_0x40aa8f:0x1ea,_0x15be41:0x166},_0x23e613={};_0x23e613['nQjnA']=_0x589c4b(_0x302ac5._0x175e0f,_0x302ac5._0x25e637);const _0x2c09cc=_0x23e613;function _0x54d58b(_0x4ce34c,_0x2bb684){return _0x5338aa(_0x4ce34c- -0x348,_0x2bb684);}function _0x589c4b(_0x5e1a64,_0xfc2684){return _0x5338aa(_0x5e1a64-0x8b,_0xfc2684);}const _0x5da850=JSON['stringif'+'y']({'type':_0x2c09cc[_0x54d58b(-0x122,-_0x302ac5._0x318b0e)],'id':'bridge-'+_0x372cc4(),'method':_0x27e831,'params':_0x328105}),_0x1bb19b={};_0x1bb19b[_0x54d58b(0x36,-_0x302ac5._0x54518f)]=_0x589c4b(_0x302ac5._0x5db0e0,0x27c),_0x1bb19b[_0x589c4b(_0x302ac5._0x5db0e0,0x405)]=_0x5da850,this[_0x54d58b(_0x302ac5._0x1f21c1,-0x10a)+_0x589c4b(_0x302ac5._0x40aa8f,_0x302ac5._0x15be41)+'tewayMes'+_0x589c4b(0x335,0x2ec)](_0x1bb19b);}[_0x5338aa(0x3d5,0x257)+_0x5338aa(0x17c,0x15d)](){const _0x23732d={_0x5077dd:0x569,_0x53626a:0x2ef,_0x4c97c6:0x5b8,_0x1c33ef:0x79c,_0x18b179:0x83,_0x1e2794:0x1c6,_0x31aae1:0xec,_0x5e9b19:0x296,_0x4f0b5c:0x522,_0x38dbc1:0x5cd,_0x329034:0x4a1},_0x4ee939={_0x4d78eb:0x62};function _0x1cca82(_0x4e9a94,_0x2a1c7a){return _0x5338aa(_0x2a1c7a-_0x4ee939._0x4d78eb,_0x4e9a94);}this[_0x454584(_0x23732d._0x5077dd,0x4d1)+_0x1cca82(0x55c,0x4c1)]?.['close'](),this[_0x1cca82(_0x23732d._0x53626a,0x1f6)+_0x454584(_0x23732d._0x4c97c6,_0x23732d._0x1c33ef)]=null;function _0x454584(_0x574225,_0x74f4f9){return _0x5338aa(_0x74f4f9-0x33d,_0x574225);}this[_0x1cca82(_0x23732d._0x18b179,_0x23732d._0x1e2794)+_0x1cca82(_0x23732d._0x31aae1,_0x23732d._0x5e9b19)+'g']=![],this[_0x454584(0x53f,0x686)+'andshake'+_0x454584(0x618,_0x23732d._0x4f0b5c)]=![],this[_0x454584(_0x23732d._0x38dbc1,_0x23732d._0x329034)+_0x454584(0x5cf,0x453)+_0x454584(0x90c,0x802)]=null;}[_0x5338aa(0x3b7,0x369)+_0x5338aa(0x276,0x3b8)+_0x33cded(0x7bc,0x67c)](){const _0x4ba596={_0x4385f5:0x5a5,_0x70327e:0x49a,_0x257872:0x1a4,_0xcf2d93:0x14a,_0x465faa:0x6bc,_0x5efc82:0x3bf,_0x2656f3:0x4b2,_0x57cd3a:0x1d4,_0x256f1b:0xb3,_0x36e0a9:0x646,_0x20adbc:0x76e},_0x2d8a52={_0x33bc41:0x616,_0x2288ad:0x196,_0x506dca:0x4bc},_0x357011={_0x232a2d:0x2fc},_0x5e1657={_0x589b73:0x362},_0x4c5578={_0x4dd3f0:0x12};if(this[_0x3a857b(_0x4ba596._0x4385f5,0x5e3)]||this['reconnec'+_0x54ba4b(0x1cd,-0x8)])return;function _0x3a857b(_0x3f92ae,_0x4049c9){return _0x33cded(_0x3f92ae,_0x4049c9- -_0x4c5578._0x4dd3f0);}function _0x54ba4b(_0x3b1734,_0x25abc4){return _0x33cded(_0x25abc4,_0x3b1734- -_0x5e1657._0x589b73);}const _0x65afa9=this[_0x3a857b(0x2e6,_0x4ba596._0x70327e)]['reconnec'+_0x54ba4b(0x363,0x2ca)+_0x54ba4b(_0x4ba596._0x257872,0x291)]??RECONNECT_BASE_DELAY_MS,_0x5c4e84=this[_0x54ba4b(_0x4ba596._0xcf2d93,0x2bf)]['reconnec'+_0x54ba4b(0xeb,-0x79)+_0x3a857b(0x4ec,_0x4ba596._0x465faa)]??RECONNECT_MAX_DELAY_MS,_0x1c555c=Math[_0x54ba4b(0x238,0x372)](_0x5c4e84,_0x65afa9*Math['max'](0x1,this[_0x3a857b(_0x4ba596._0x5efc82,_0x4ba596._0x2656f3)+'empt']));this[_0x54ba4b(0x199,-0x10)](_0x54ba4b(0x22c,0x16a)+_0x54ba4b(_0x4ba596._0x57cd3a,_0x4ba596._0x256f1b)+_0x3a857b(0x532,_0x4ba596._0x36e0a9)+_0x3a857b(0x3f4,0x47d)+'s='+_0x1c555c),this[_0x3a857b(_0x4ba596._0x20adbc,0x751)+_0x54ba4b(0x1cd,-0xe)]=setTimeout(()=>{function _0x3f670c(_0xd0f301,_0x128969){return _0x54ba4b(_0xd0f301- -_0x357011._0x232a2d,_0x128969);}function _0x31adba(_0x1ab84e,_0x47c3de){return _0x54ba4b(_0x47c3de-0x215,_0x1ab84e);}this[_0x31adba(0x494,_0x2d8a52._0x33bc41)+_0x3f670c(-0x12f,-0x2a3)]=null,void this[_0x3f670c(-_0x2d8a52._0x2288ad,-0x272)+_0x31adba(0x62a,_0x2d8a52._0x506dca)]();},_0x1c555c);}['schedule'+_0x5338aa(0x3a9,0x217)+_0x33cded(0x576,0x469)](){const _0x3f09c6={_0xb063d8:0x497,_0x30b157:0xb6,_0x2d8b52:0x10,_0x8e79c1:0xaa,_0x277ce8:0x143,_0x30a1b7:0x40},_0x451f0b={_0x13b7f7:0x9f,_0x243ed9:0x15a,_0x2571db:0x647,_0x29ea47:0x4b4,_0x397780:0x3c,_0xbcdf3c:0x6c5},_0x146156={_0xf369d2:0x385};if(this[_0x252824(0x470,_0x3f09c6._0xb063d8)]||this['gatewayR'+_0x14bad0(-_0x3f09c6._0x30b157,-_0x3f09c6._0x2d8b52)+'r']||!this[_0x14bad0(-0xc1,_0x3f09c6._0x8e79c1)+'pen']())return;function _0x14bad0(_0x1d8df8,_0x2615e0){return _0x5338aa(_0x1d8df8- -_0x146156._0xf369d2,_0x2615e0);}function _0x252824(_0x15a8f3,_0x19fe2d){return _0x5338aa(_0x15a8f3-0x11c,_0x19fe2d);}const _0x1d7f8a=this['options'][_0x14bad0(0x143,0x31e)+_0x252824(0x346,0x28b)+_0x252824(0x549,0x5ce)]??GATEWAY_RETRY_DELAY_MS;this[_0x14bad0(_0x3f09c6._0x277ce8,-_0x3f09c6._0x30a1b7)+_0x252824(0x3eb,0x2c9)+'r']=setTimeout(()=>{const _0x524334={_0x4c7034:0x22d};this[_0x5c6adf(_0x451f0b._0x13b7f7,0x125)+_0x5c6adf(-_0x451f0b._0x243ed9,-0x10d)+'r']=null;function _0x5c6adf(_0x2f6542,_0x4ac0ff){return _0x252824(_0x2f6542- -0x545,_0x4ac0ff);}function _0x31709d(_0x475a62,_0x4fcc1e){return _0x252824(_0x4fcc1e-_0x524334._0x4c7034,_0x475a62);}this[_0x31709d(_0x451f0b._0x2571db,_0x451f0b._0x29ea47)+_0x5c6adf(-_0x451f0b._0x397780,-0x108)+_0x31709d(0x7fd,_0x451f0b._0xbcdf3c)]();},_0x1d7f8a);}['startHea'+_0x33cded(0x753,0x71d)](){const _0x5a2e1c={_0x3fc497:0x10a,_0x4c1933:0x4dd,_0x35465a:0x397},_0x46219b={_0x37480e:0x2b6,_0xc4be77:0x304,_0x2e4889:0xe1,_0x239354:0x242,_0x46a27e:0x2e1,_0x3fcc6b:0x1f1,_0xbc7ea3:0x309,_0x43807e:0x1e4,_0x1cc7ee:0x610,_0x422223:0xac,_0x19535c:0x4e,_0x3bad6f:0x2e9,_0x36def4:0x18a,_0x32b542:0x109},_0x1dab03={_0x524740:0xcb};this[_0x216440(-_0x5a2e1c._0x3fc497,-0x49)+_0x10f409(0x595,0x50e)]();function _0x216440(_0x175a84,_0x21c8b9){return _0x5338aa(_0x175a84- -0x21a,_0x21c8b9);}function _0x10f409(_0x46cd43,_0x4b1dbb){return _0x5338aa(_0x46cd43-_0x1dab03._0x524740,_0x4b1dbb);}this['heartbea'+'tTimer']=setInterval(()=>{const _0x35423d=this['relaySoc'+_0x30ab91(-_0x46219b._0x37480e,-_0x46219b._0xc4be77)];if(!_0x35423d||_0x35423d[_0x30ab91(-_0x46219b._0x2e4889,0xb6)+'te']!==_0x10c370[_0x5fa15(_0x46219b._0x239354,_0x46219b._0x46a27e)])return;const _0x56b40e=this[_0x30ab91(-_0x46219b._0x3fcc6b,-0x260)]['heartbea'+_0x5fa15(_0x46219b._0xbc7ea3,0x23d)+'Ms']??HEARTBEAT_TIMEOUT_MS;function _0x30ab91(_0x33b61c,_0x410a7a){return _0x216440(_0x33b61c- -0x1e2,_0x410a7a);}function _0x5fa15(_0x4200f4,_0x337e48){return _0x216440(_0x4200f4-0x1df,_0x337e48);}if(Date['now']()-this[_0x5fa15(0x28c,_0x46219b._0x43807e)+_0x5fa15(0x44f,_0x46219b._0x1cc7ee)+_0x30ab91(0x31,-_0x46219b._0x422223)]>_0x56b40e){this['log']('relay\x20he'+_0x30ab91(_0x46219b._0x19535c,0xd9)+_0x5fa15(0x3aa,_0x46219b._0x3bad6f)+'t'),_0x35423d[_0x5fa15(0x368,0x1b7)+'e']();return;}_0x35423d[_0x5fa15(_0x46219b._0x36def4,_0x46219b._0x32b542)]();},this['options']['heartbea'+_0x10f409(0x37e,_0x5a2e1c._0x4c1933)+_0x10f409(_0x5a2e1c._0x35465a,0x485)]??HEARTBEAT_INTERVAL_MS);}['stopHear'+_0x33cded(0x5f2,0x76b)](){const _0x5676e8={_0x344ea2:0x29e,_0x273731:0x159,_0x312b54:0x137,_0x40086d:0x29e,_0x4d845d:0x1b5,_0x38496e:0x113,_0x4334e5:0x39},_0x1cc372={_0x1eb861:0x255};function _0x5a81aa(_0x5b4344,_0x4b7f0d){return _0x5338aa(_0x5b4344- -0x3e7,_0x4b7f0d);}const _0xe50aec={'JvAEw':function(_0x35e92d,_0x141bbb){return _0x35e92d(_0x141bbb);}};function _0x2568d6(_0x240398,_0x1d680f){return _0x5338aa(_0x1d680f- -_0x1cc372._0x1eb861,_0x240398);}this[_0x5a81aa(-_0x5676e8._0x344ea2,-0x104)+_0x5a81aa(-_0x5676e8._0x273731,-_0x5676e8._0x312b54)]&&(_0xe50aec['JvAEw'](clearInterval,this[_0x2568d6(-0x27f,-0x10c)+_0x2568d6(-0xbb,0x39)]),this[_0x5a81aa(-_0x5676e8._0x40086d,-_0x5676e8._0x4d845d)+_0x2568d6(-_0x5676e8._0x38496e,_0x5676e8._0x4334e5)]=null);}['pushPend'+'ingGatew'+_0x33cded(0x2ca,0x433)+'e'](_0x4e01f2){const _0x199b73={_0xedfaa:0x2e3,_0xec967:0x66c,_0x3a7d13:0x5ad,_0x2ad933:0x6c9,_0x1f451f:0xaf,_0x22351b:0x296,_0x2d71a3:0x7d,_0x44d83e:0x5c,_0x28b405:0x268,_0x49c70a:0x43d},_0x5c8941={_0x40f090:0x6b7};function _0x5b3c7a(_0x8a0e02,_0x425dd5){return _0x33cded(_0x8a0e02,_0x425dd5- -0x6b);}function _0x1487b1(_0x42ae6e,_0x2062d2){return _0x33cded(_0x2062d2,_0x42ae6e- -_0x5c8941._0x40f090);}this['pendingG'+_0x5b3c7a(0x881,0x6c9)+_0x5b3c7a(_0x199b73._0xedfaa,0x40d)][_0x5b3c7a(0x815,_0x199b73._0xec967)]>=MAX_PENDING_GATEWAY_MESSAGES&&this[_0x1487b1(-0x7a,0x168)+_0x5b3c7a(_0x199b73._0x3a7d13,_0x199b73._0x2ad933)+_0x1487b1(-0x23f,-_0x199b73._0x1f451f)][_0x1487b1(-0x2b0,-_0x199b73._0x22351b)](),this['pendingG'+_0x1487b1(_0x199b73._0x2d71a3,-_0x199b73._0x44d83e)+'ssages'][_0x1487b1(-_0x199b73._0x28b405,-_0x199b73._0x49c70a)](_0x4e01f2);}[_0x5338aa(0x284,0x403)+_0x33cded(0x660,0x54a)+_0x5338aa(0x1a7,0x40)](_0x171566,_0x231b18){const _0x1e1cba={_0x55c2c3:0x4be,_0x178598:0xe5,_0x2988e4:0x3f,_0x4ced82:0xa8,_0x38fb6b:0x21d,_0xbac0f8:0x10e,_0x312f22:0x87,_0x124db3:0x670,_0x22da40:0x752,_0x30a766:0x1f2,_0x5141ad:0x14d,_0x4051bf:0xb4,_0x476b64:0x61},_0x544a3c={_0x49466c:0x1bd},_0x171f2d={_0x5077ab:0x3ae},_0x1185ba=Date[_0x104799(_0x1e1cba._0x55c2c3,0x57f)](),_0x1f333a=new Map(this[_0x3720ee(-_0x1e1cba._0x178598,-0x1d1)][_0x104799(0x4e4,0x431)+_0x3720ee(-_0x1e1cba._0x2988e4,-0x8a)][_0x104799(0x665,0x847)](_0x484888=>[_0x484888['id'],{..._0x484888}])),_0x28fcb9=_0x1f333a[_0x3720ee(-0x177,-0x1ac)](_0x171566)??{'id':_0x171566,'label':_0x231b18,'state':'connecte'+'d','lastSeenMs':_0x1185ba};_0x28fcb9[_0x3720ee(-_0x1e1cba._0x4ced82,0x8e)]=_0x231b18,_0x28fcb9[_0x3720ee(_0x1e1cba._0x38fb6b,0x129)]=_0x3720ee(-_0x1e1cba._0xbac0f8,-_0x1e1cba._0x312f22)+'d';function _0x3720ee(_0x48ccb5,_0x20bd44){return _0x5338aa(_0x20bd44- -_0x171f2d._0x5077ab,_0x48ccb5);}_0x28fcb9[_0x104799(_0x1e1cba._0x124db3,_0x1e1cba._0x22da40)+'Ms']=_0x1185ba,_0x1f333a[_0x3720ee(-_0x1e1cba._0x30a766,-_0x1e1cba._0x5141ad)](_0x171566,_0x28fcb9);const _0x187520=[..._0x1f333a['values']()][_0x104799(0x509,0x392)]((_0x167746,_0x4c0e20)=>_0x4c0e20[_0x3720ee(0x28c,0x105)+'Ms']-_0x167746['lastSeen'+'Ms'])['slice'](0x0,MAX_DEVICE_DETAILS);function _0x104799(_0x9a0419,_0x13c11f){return _0x5338aa(_0x9a0419-_0x544a3c._0x49466c,_0x13c11f);}const _0x49d0b4={};_0x49d0b4['connecte'+'dDevices']=_0x187520,this[_0x3720ee(_0x1e1cba._0x4051bf,0x5a)+_0x3720ee(_0x1e1cba._0x476b64,0xcb)](_0x49d0b4);}[_0x5338aa(0x4b8,0x50f)+_0x5338aa(0x394,0x317)+'t'](){const _0x2e32a2={_0x4d811e:0x28f,_0x4f512d:0x64,_0x838a15:0xee,_0xb4f5ff:0x49},_0x3eb60f={_0x2e63d0:0x308},_0x4b1bf7={_0x3418d4:0x6b6};function _0xcaa11a(_0x207e67,_0x6e46f9){return _0x33cded(_0x207e67,_0x6e46f9- -_0x4b1bf7._0x3418d4);}function _0x33cc76(_0x111f62,_0x309ed9){return _0x33cded(_0x309ed9,_0x111f62- -_0x3eb60f._0x2e63d0);}this[_0x33cc76(0x3a1,_0x2e32a2._0x4d811e)+_0xcaa11a(0x1c5,_0x2e32a2._0x4f512d)]({'connectedDevices':this['snapshot'][_0xcaa11a(-0xcc,-_0x2e32a2._0x838a15)+_0xcaa11a(_0x2e32a2._0xb4f5ff,-0xf1)]['map'](_0xe971d8=>({..._0xe971d8,'state':_0x33cc76(0x1cb,0x2fa)}))});}['addPendi'+'ngPairRe'+_0x5338aa(0x342,0x2f1)](_0x4283bb){const _0x5af58b={_0x1666bc:0x209,_0x5cf515:0x2f1,_0x5f3ed7:0x35,_0x2118f9:0x160,_0x3a8c5f:0x2a9,_0x1ed67d:0x2ae,_0x41e300:0x10b,_0x21dff6:0x362,_0x47cc3b:0x326,_0xf6453f:0x255,_0x15ed54:0x129,_0x4c8c17:0x218,_0x12ac91:0xb9,_0x302acc:0x14f,_0x385dfd:0x21,_0x272022:0x4,_0x48b8e5:0x39e,_0x109e4a:0x2b8,_0x4f2aea:0xd,_0x4d8299:0x3cb},_0x28192e={_0x398adb:0x1a8},_0x455174={_0x1faa6d:0xe2};if(this[_0x1cd4fe(_0x5af58b._0x1666bc,0xfb)][_0x1cd4fe(0x200,0x10b)+'airReque'+'sts'][_0x1cd4fe(0x206,_0x5af58b._0x5cf515)](_0x974e25=>_0x974e25['requestI'+'d']===_0x4283bb[_0x10ad0e(-0x71,-0x104)+'d']))return;const _0x2da652=[...this[_0x10ad0e(_0x5af58b._0x5f3ed7,-_0x5af58b._0x2118f9)][_0x10ad0e(0x45,0x1a)+_0x10ad0e(_0x5af58b._0x3a8c5f,_0x5af58b._0x1ed67d)+_0x10ad0e(0x25e,0x221)],_0x4283bb][_0x10ad0e(0xd9,0x2e)](-MAX_PENDING_PAIR_REQUESTS);function _0x1cd4fe(_0x11d2a6,_0x2d0a74){return _0x5338aa(_0x2d0a74- -_0x455174._0x1faa6d,_0x11d2a6);}const _0xa2a477={};_0xa2a477[_0x1cd4fe(0x2e8,_0x5af58b._0x41e300)+_0x10ad0e(0x2a9,_0x5af58b._0x21dff6)+'sts']=_0x2da652,this[_0x1cd4fe(0x4b2,_0x5af58b._0x47cc3b)+'apshot'](_0xa2a477);function _0x10ad0e(_0x154f68,_0x2c80a0){return _0x5338aa(_0x154f68- -_0x28192e._0x398adb,_0x2c80a0);}this[_0x1cd4fe(_0x5af58b._0xf6453f,_0x5af58b._0x15ed54)]['onPendin'+_0x10ad0e(0x2d3,_0x5af58b._0x4c8c17)+'uest']?.(_0x4283bb),this[_0x1cd4fe(0xf7,0x178)](_0x1cd4fe(_0x5af58b._0x12ac91,_0x5af58b._0x302acc)+_0x10ad0e(-_0x5af58b._0x385dfd,_0x5af58b._0x272022)+_0x1cd4fe(_0x5af58b._0x48b8e5,0x209)+_0x10ad0e(0x1b1,_0x5af58b._0x109e4a)+_0x4283bb[_0x1cd4fe(-0x138,0x55)+'d']+('\x20deviceI'+'d=')+(_0x4283bb[_0x10ad0e(_0x5af58b._0x4f2aea,0x37)]||_0x1cd4fe(_0x5af58b._0x4d8299,0x24d)+'>'));}[_0x33cded(0x62c,0x610)+'RequestR'+'esolved'](_0x3f2ce5,_0x39fd19){const _0x4a4d2c={_0x2dcbba:0xce,_0x4530e8:0x1bb,_0x5d23a0:0xbe,_0x56f728:0x1ad,_0x5112f9:0x1fd,_0x6e217e:0x262,_0x2765ac:0xec,_0x4892dc:0x1a6,_0x317927:0x56,_0x21e527:0x61d,_0x350dee:0x46f,_0x4597cb:0x3a1,_0x201431:0x406,_0x227fb4:0x4a8,_0x5af4df:0xf4,_0x4bb378:0x146},_0x3b8bfc={_0x1395b3:0x2ab};function _0x40e6a7(_0x48781f,_0x4259ce){return _0x5338aa(_0x48781f-0x215,_0x4259ce);}const _0x515380=this[_0x239797(-_0x4a4d2c._0x2dcbba,-_0x4a4d2c._0x4530e8)][_0x239797(-_0x4a4d2c._0x5d23a0,-_0x4a4d2c._0x56f728)+'airReque'+'sts'][_0x239797(_0x4a4d2c._0x5112f9,_0x4a4d2c._0x6e217e)](_0xa77323=>_0xa77323[_0x40e6a7(0x34c,0x32e)+'d']===_0x3f2ce5?{..._0xa77323,'status':_0x39fd19===_0x239797(-0xe4,-0x8f)||_0x39fd19===_0x239797(0x141,0x69)?_0x39fd19:_0xa77323[_0x239797(0x114,0x2ab)]}:_0xa77323);function _0x239797(_0x938093,_0x54f0a4){return _0x5338aa(_0x938093- -_0x3b8bfc._0x1395b3,_0x54f0a4);}const _0x33c266={};_0x33c266[_0x239797(-0xbe,_0x4a4d2c._0x2765ac)+_0x239797(_0x4a4d2c._0x4892dc,_0x4a4d2c._0x317927)+'sts']=_0x515380,this[_0x40e6a7(_0x4a4d2c._0x21e527,0x60d)+'apshot'](_0x33c266),this[_0x40e6a7(_0x4a4d2c._0x350dee,_0x4a4d2c._0x4597cb)](_0x40e6a7(0x446,_0x4a4d2c._0x201431)+_0x40e6a7(_0x4a4d2c._0x227fb4,0x629)+'olved\x20re'+_0x239797(-_0x4a4d2c._0x5af4df,-_0x4a4d2c._0x4bb378)+_0x3f2ce5+(_0x40e6a7(0x3c5,0x201)+'n=')+_0x39fd19);}['updateSn'+_0x5338aa(0x479,0x415)](_0x1eaed8){const _0x208adc={_0x1b2474:0x1ab,_0xc8d27d:0x126,_0x179460:0x1a1,_0x3720d6:0x1b0,_0x23b29b:0x125,_0x3bc07a:0x5e,_0x3dc31f:0xf0};Object[_0x174494(0x1ad,_0x208adc._0x1b2474)](this[_0xc49a26(-0xca,-0x253)],_0x1eaed8,{'lastUpdatedMs':Date[_0xc49a26(0x5a,-_0x208adc._0xc8d27d)]()});function _0x174494(_0x330046,_0x37f30c){return _0x33cded(_0x37f30c,_0x330046- -0x30b);}function _0xc49a26(_0x540b31,_0x1b0c35){return _0x33cded(_0x1b0c35,_0x540b31- -0x548);}this[_0x174494(_0x208adc._0x179460,_0x208adc._0x3720d6)][_0xc49a26(_0x208adc._0x23b29b,0x24b)]?.(this[_0xc49a26(-0xb1,-_0x208adc._0x3bc07a)+_0xc49a26(_0x208adc._0x3dc31f,-0x34)]());}['log'](_0x21187f){const _0x41dc63={_0x42a7e7:0x15d,_0x3887ea:0x14},_0x5c3a76={_0x2c376d:0x498};function _0x1ccd40(_0x400c2a,_0x586826){return _0x33cded(_0x400c2a,_0x586826- -_0x5c3a76._0x2c376d);}function _0x4db1d0(_0x18e9ac,_0x66d386){return _0x33cded(_0x66d386,_0x18e9ac-0x7d);}this[_0x1ccd40(_0x41dc63._0x42a7e7,_0x41dc63._0x3887ea)][_0x1ccd40(0x17c,0x21f)]?.(_0x21187f);}['isRelayO'+_0x33cded(0x379,0x43f)](){const _0x484666={_0x1cf010:0x3c};function _0x49e37c(_0x78a6b0,_0x42b5a1){return _0x5338aa(_0x78a6b0-0xee,_0x42b5a1);}function _0x2f21e0(_0xc02053,_0x563353){return _0x5338aa(_0x563353- -_0x484666._0x1cf010,_0xc02053);}return this[_0x49e37c(0x3a6,0x4f4)+_0x49e37c(0x234,0x71)]?.[_0x49e37c(0x409,0x295)+'te']===_0x10c370['OPEN'];}[_0x5338aa(0x418,0x578)+_0x5338aa(0x1f0,0x32a)](){const _0x4affe3={_0x1f59ea:0x2e0,_0x5577a9:0x3e4,_0x3af016:0x467,_0xd52170:0x50e,_0x2a9ca2:0x113},_0x1c4f5f={_0x3fae8d:0x14c};function _0x5c23a0(_0x2214d0,_0x351a77){return _0x5338aa(_0x351a77- -0x1d9,_0x2214d0);}function _0x173f35(_0x548dc1,_0x386380){return _0x5338aa(_0x548dc1-_0x1c4f5f._0x3fae8d,_0x386380);}return this[_0x173f35(_0x4affe3._0x1f59ea,_0x4affe3._0x5577a9)+'ocket']?.[_0x173f35(_0x4affe3._0x3af016,_0x4affe3._0xd52170)+'te']===_0x10c370[_0x5c23a0(-_0x4affe3._0x2a9ca2,0xa4)];}[_0x33cded(0x56a,0x3b6)+_0x5338aa(0x1d4,0x2e9)](){const _0x142fdc={_0x3c3f6a:0x60,_0x2e207a:0x1d4,_0x17b231:0x285,_0x47dc6c:0x38e,_0x22c4c8:0x51,_0x124d3e:0x130,_0x5b37b7:0x28b,_0x3f1d85:0x66,_0x5a9b42:0x28b,_0x461e74:0x2ff,_0x60749f:0x92},_0x3ad5bd={_0x224cbd:0x462},_0x2ed46a={_0x4c7af2:0x23d};function _0x40d8d6(_0x16ed57,_0xaf51ed){return _0x5338aa(_0x16ed57- -_0x2ed46a._0x4c7af2,_0xaf51ed);}this[_0x40d8d6(-0x12d,-0x117)+'tbeat']();this[_0x232e39(-0x11f,_0x142fdc._0x3c3f6a)+_0x232e39(-0x1f4,-_0x142fdc._0x2e207a)]&&(clearTimeout(this[_0x40d8d6(_0x142fdc._0x17b231,_0x142fdc._0x47dc6c)+_0x40d8d6(_0x142fdc._0x22c4c8,-_0x142fdc._0x124d3e)]),this['reconnec'+_0x40d8d6(_0x142fdc._0x22c4c8,0x42)]=null);function _0x232e39(_0x3e31c6,_0x50e3f1){return _0x5338aa(_0x50e3f1- -_0x3ad5bd._0x224cbd,_0x3e31c6);}this[_0x40d8d6(_0x142fdc._0x5b37b7,0x39b)+_0x232e39(0x22,-0x193)+'r']&&(clearTimeout(this[_0x232e39(-0x122,_0x142fdc._0x3f1d85)+'etryTime'+'r']),this[_0x40d8d6(_0x142fdc._0x5a9b42,_0x142fdc._0x461e74)+_0x40d8d6(_0x142fdc._0x60749f,0x248)+'r']=null);}[_0x33cded(0x220,0x3ce)+'ince'](_0x10aca8){const _0x4a3417={_0x7bf957:0x1e,_0x38d318:0x2aa,_0x303c3a:0x241},_0x5497d5={_0x1d88e1:0x595};function _0x2e4ace(_0x2331ed,_0x47ca9d){return _0x33cded(_0x47ca9d,_0x2331ed- -_0x5497d5._0x1d88e1);}function _0x3e9d1a(_0x51e0f8,_0x4705a0){return _0x33cded(_0x51e0f8,_0x4705a0- -0x361);}return _0x10aca8==null?null:Math[_0x2e4ace(-0x121,_0x4a3417._0x7bf957)](0x0,Date[_0x3e9d1a(_0x4a3417._0x38d318,_0x4a3417._0x303c3a)]()-_0x10aca8);}};function shouldRecycleGatewayForFreshClient(_0x34534a,_0x2bdcd2,_0x44b434,_0x17e765){return _0x44b434&&_0x2bdcd2>0x0&&(_0x34534a===0x0||_0x17e765);}function patchConnectRequestGatewayAuth(_0x180fb2,_0x18dce7){const _0x363c39={_0x4fb8a2:0x13d,_0x2cac6:0x51,_0x4d34f8:0x35,_0x633e65:0x174,_0x4a6c26:0xee,_0x212d32:0xb6,_0x3af051:0x86,_0x398491:0x3cd,_0x464266:0xa,_0x103797:0xd4,_0x1ba730:0x21,_0x283b2c:0x176,_0x1ca452:0x311,_0x479a8f:0x235,_0x5f29d6:0x13,_0x1307b7:0x112,_0x1a5c60:0x11a,_0x1c7dd5:0x29,_0xcc3732:0x224,_0x50d0d9:0x91,_0x7accfe:0x29f,_0x3094f5:0x82,_0x46b303:0xb8,_0x4760f8:0x46,_0x1c8dbb:0x16,_0x47a67e:0x10f},_0x1526ba={_0x31406c:0x363},_0x4b49fe={};_0x4b49fe[_0x33eb81(_0x363c39._0x4fb8a2,_0x363c39._0x2cac6)]=function(_0x22ff4f,_0x2a5a56){return _0x22ff4f!==_0x2a5a56;};function _0x33eb81(_0x1b23ec,_0x2f659a){return _0x5338aa(_0x2f659a- -_0x1526ba._0x31406c,_0x1b23ec);}_0x4b49fe[_0x47cd40(_0x363c39._0x4d34f8,-0xd1)]=function(_0x6c9a66,_0x1b0a45){return _0x6c9a66!==_0x1b0a45;};function _0x47cd40(_0x4ce5fc,_0x1aebf6){return _0x5338aa(_0x1aebf6- -0x35d,_0x4ce5fc);}_0x4b49fe[_0x33eb81(-0x22b,-_0x363c39._0x633e65)]=_0x47cd40(_0x363c39._0x4a6c26,-_0x363c39._0x212d32),_0x4b49fe['nybfk']=function(_0x3757b2,_0xd4528f){return _0x3757b2===_0xd4528f;};const _0x328ac1=_0x4b49fe;if(_0x18dce7[_0x47cd40(0x136,_0x363c39._0x3af051)]!==_0x47cd40(-_0x363c39._0x398491,-0x224)||!_0x18dce7[_0x33eb81(-0x3a5,-0x22a)]){const _0x3e424e={};return _0x3e424e[_0x33eb81(-0x73,-0x10f)]=_0x180fb2,_0x3e424e['injected']=![],_0x3e424e;}try{const _0xe34108=JSON[_0x47cd40(_0x363c39._0x464266,-_0x363c39._0x103797)](_0x180fb2);if(_0x328ac1[_0x33eb81(_0x363c39._0x1ba730,_0x363c39._0x2cac6)](_0xe34108[_0x47cd40(-_0x363c39._0x283b2c,-0x153)],_0x33eb81(0x209,0x15d))||_0x328ac1['mwgXi'](_0xe34108[_0x47cd40(-0x50,-0x38)],_0x33eb81(0x7f,-0xe0))&&_0xe34108['method']!==_0x33eb81(-_0x363c39._0x1ca452,-_0x363c39._0x479a8f)+_0x47cd40(0xd9,-0xe1)){const _0x4b7865={};return _0x4b7865[_0x33eb81(-_0x363c39._0x5f29d6,-0x10f)]=_0x180fb2,_0x4b7865[_0x33eb81(-0x108,-_0x363c39._0x1307b7)]=![],_0x4b7865;}const _0x3f31a7=_0xe34108[_0x47cd40(0x222,_0x363c39._0x1a5c60)]&&typeof _0xe34108[_0x47cd40(0x296,_0x363c39._0x1a5c60)]===_0x47cd40(0x19,-_0x363c39._0x212d32)?{..._0xe34108['params']}:{},_0x3b0ff3=_0x3f31a7[_0x33eb81(0x69,-0xbe)]&&typeof _0x3f31a7['auth']===_0x328ac1['dPOxV']?{..._0x3f31a7['auth']}:{},_0x1f45b6=_0x328ac1[_0x33eb81(-0xc1,-_0x363c39._0x1c7dd5)](typeof _0x3b0ff3[_0x47cd40(-0x16d,-_0x363c39._0xcc3732)],_0x33eb81(-_0x363c39._0x50d0d9,-0xf6))?_0x3b0ff3[_0x47cd40(-_0x363c39._0x7accfe,-_0x363c39._0xcc3732)][_0x33eb81(0x129,0xa6)]():'';if(_0x1f45b6){const _0x180246={};return _0x180246[_0x47cd40(-0x103,-0x109)]=_0x180fb2,_0x180246['injected']=![],_0x180246;}_0x3b0ff3['password']=_0x18dce7['password'],_0x3f31a7[_0x47cd40(-_0x363c39._0x3094f5,-_0x363c39._0x46b303)]=_0x3b0ff3;const _0x3fdab8={..._0xe34108};return _0x3fdab8[_0x33eb81(-_0x363c39._0x4760f8,0x114)]=_0x3f31a7,{'text':JSON['stringif'+'y'](_0x3fdab8),'injected':!![]};}catch{const _0x4a109d={};return _0x4a109d[_0x33eb81(-_0x363c39._0x1c8dbb,-_0x363c39._0x47a67e)]=_0x180fb2,_0x4a109d['injected']=![],_0x4a109d;}}function buildRelayWsUrl(_0xdd8dc7){const _0x58db14={_0x247890:0x1b5,_0xf0909b:0x28,_0x9c84db:0x3d,_0x2ec104:0x2d5,_0x375069:0x292,_0x51229c:0x72,_0x267ed8:0x50,_0x50052a:0x249,_0x1d920e:0x5e,_0x716a4:0x3b,_0x3b7711:0x1b5,_0x194b78:0x263,_0x54c6fd:0x1c8,_0x1ad006:0x113,_0x5c0af6:0x125,_0x42b604:0x1d2,_0x522505:0x58,_0x10345b:0xc4,_0x2c6588:0x1f6,_0x707152:0xc0},_0x27864c={_0x398d8b:0x3d6},_0x316b2b={_0x6e088d:0x2b9},_0x5b45cb={};_0x5b45cb[_0x5f2ba7(0x397,_0x58db14._0x247890)]=_0x5f2ba7(_0x58db14._0xf0909b,0x19e);const _0x3c5f91=_0x5b45cb;function _0x5f2ba7(_0x244842,_0x41e549){return _0x5338aa(_0x41e549- -_0x316b2b._0x6e088d,_0x244842);}const _0x446746=new URL(_0xdd8dc7[_0x3e4dd5(-0x35,_0x58db14._0x9c84db)]);(!_0x446746['pathname']||_0x446746[_0x3e4dd5(-_0x58db14._0x2ec104,-_0x58db14._0x375069)]==='/')&&(_0x446746[_0x3e4dd5(-0x281,-0x292)]=_0x5f2ba7(-_0x58db14._0x51229c,-_0x58db14._0x267ed8));function _0x3e4dd5(_0x5e9553,_0x5de24b){return _0x5338aa(_0x5de24b- -_0x27864c._0x398d8b,_0x5e9553);}return _0x446746[_0x3e4dd5(0x88,-0x125)+'rams']['set'](_0x3e4dd5(-0x2cf,-_0x58db14._0x50052a)+'d',_0xdd8dc7[_0x3e4dd5(-0x3e2,-0x249)+'d']),_0x446746['searchPa'+_0x5f2ba7(-0x20c,-0x146)][_0x5f2ba7(-_0x58db14._0x1d920e,-0x58)](_0x5f2ba7(_0x58db14._0x716a4,0x21c),_0x3c5f91[_0x5f2ba7(0x114,_0x58db14._0x3b7711)]),_0x446746[_0x5f2ba7(-0x1bc,-0x8)+_0x3e4dd5(-0x422,-_0x58db14._0x194b78)]['set'](_0x3e4dd5(_0x58db14._0x54c6fd,-0x7),_0xdd8dc7[_0x5f2ba7(_0x58db14._0x1ad006,0x3a)+'Id']),_0x446746[_0x3e4dd5(0x83,-_0x58db14._0x5c0af6)+'rams'][_0x5f2ba7(-_0x58db14._0x42b604,-_0x58db14._0x522505)](_0x5f2ba7(-0x5e,0xd4),_0xdd8dc7[_0x3e4dd5(-0x26b,-_0x58db14._0x10345b)+'ret']),_0x446746[_0x5f2ba7(_0x58db14._0x2c6588,_0x58db14._0x707152)]();}function redactRelayWsUrl(_0x1e0bb6){const _0x3c3ee7={_0x2295f3:0x103,_0x4ad172:0x121,_0x86d4db:0x523,_0x494610:0x288,_0x5032ff:0x4ed,_0x57b1ea:0x47f,_0x3b92ae:0x5ff,_0x7befd:0x3bb,_0x388863:0x4d3,_0x4c076e:0x5eb};function _0x592920(_0x4e8566,_0xf2ff15){return _0x33cded(_0x4e8566,_0xf2ff15- -0x2f);}const _0x4d5fba={};_0x4d5fba[_0x592920(0x51b,0x43d)]=_0x305bc2(-_0x3c3ee7._0x2295f3,-_0x3c3ee7._0x4ad172)+'d>';const _0x528b71=_0x4d5fba,_0x23ce34=new URL(_0x1e0bb6);_0x23ce34[_0x592920(0x5c7,_0x3c3ee7._0x86d4db)+_0x305bc2(-0x175,-_0x3c3ee7._0x494610)][_0x592920(0x588,_0x3c3ee7._0x5032ff)](_0x592920(_0x3c3ee7._0x57b1ea,_0x3c3ee7._0x3b92ae))&&_0x23ce34['searchPa'+'rams'][_0x592920(_0x3c3ee7._0x7befd,_0x3c3ee7._0x388863)](_0x305bc2(-0x139,-0x6e),_0x528b71[_0x592920(0x360,0x43d)]);function _0x305bc2(_0x4e8f39,_0x4653d8){return _0x33cded(_0x4e8f39,_0x4653d8- -0x69c);}return _0x23ce34[_0x592920(0x655,_0x3c3ee7._0x4c076e)]();}function normalizeText(_0x20b7ce){const _0x525245={_0xdb2e56:0x6dc,_0x4b48d1:0x605,_0x5679f2:0xcb,_0x4f8a99:0xe3,_0x257c6d:0x605,_0x4d9890:0x57},_0x52ecbf={_0x3382f9:0x28c},_0x4b4857={};_0x4b4857[_0x3cb993(0x360,0x3b7)]=_0x5666af(0xa9,-0x8f),_0x4b4857['ybVzp']=_0x3cb993(_0x525245._0xdb2e56,0x529);const _0x3f5f3a=_0x4b4857;if(typeof _0x20b7ce===_0x3f5f3a['lUgdw'])return _0x20b7ce;if(Buffer[_0x5666af(-0x256,-0x14d)](_0x20b7ce))return _0x20b7ce[_0x3cb993(0x7bb,_0x525245._0x4b48d1)](_0x3f5f3a[_0x5666af(-_0x525245._0x5679f2,0x57)]);function _0x3cb993(_0x2f0798,_0x12b583){return _0x5338aa(_0x12b583-_0x52ecbf._0x3382f9,_0x2f0798);}if(Array['isArray'](_0x20b7ce))return Buffer[_0x5666af(0x208,_0x525245._0x4f8a99)](_0x20b7ce)[_0x3cb993(0x598,_0x525245._0x257c6d)](_0x3f5f3a[_0x5666af(0x14f,_0x525245._0x4d9890)]);if(_0x20b7ce instanceof ArrayBuffer)return Buffer[_0x3cb993(0x5ab,0x511)](_0x20b7ce)[_0x3cb993(0x799,0x605)](_0x3f5f3a[_0x3cb993(0x417,0x5df)]);function _0x5666af(_0x2f5cc7,_0x2370e7){return _0x5338aa(_0x2370e7- -0x2fc,_0x2f5cc7);}return null;}function normalizeBinary(_0x20ee24){const _0x26d530={_0xec6ad2:0x521,_0x9d61c5:0x562,_0x43970c:0x6c,_0x23e4a5:0x21e,_0x171d7c:0x3e},_0x51758f={_0x269f02:0x650},_0x3b4d8b={_0x370d60:0x91},_0x59f43d={};_0x59f43d[_0x30cab4(0x4a1,_0x26d530._0xec6ad2)]=_0x30cab4(_0x26d530._0x9d61c5,0x47d);const _0x3e7f5d=_0x59f43d;function _0x30cab4(_0x56a39a,_0x220dec){return _0x33cded(_0x56a39a,_0x220dec- -_0x3b4d8b._0x370d60);}if(Buffer[_0x5f09f5(-_0x26d530._0x43970c,-0x200)](_0x20ee24))return _0x20ee24;if(typeof _0x20ee24===_0x3e7f5d['NsBft'])return Buffer['from'](_0x20ee24,_0x5f09f5(-0x5d,-0x112));if(Array[_0x5f09f5(-0x66,-_0x26d530._0x23e4a5)](_0x20ee24))return Buffer[_0x5f09f5(-0x66,0x30)](_0x20ee24);function _0x5f09f5(_0x4c4550,_0x5002a0){return _0x33cded(_0x4c4550,_0x5002a0- -_0x51758f._0x269f02);}return Buffer[_0x5f09f5(-_0x26d530._0x171d7c,-0x12a)](_0x20ee24);}function readRecentCliLogs(_0x2cba23){const _0x19cf01={_0x18367c:0x2f6,_0x1fffcf:0x1e9,_0x4a8b90:0x1f8,_0x3fc610:0x2,_0x28b7b4:0x12d,_0x3ef7ac:0x237},_0x4339fe={_0x58a834:0x322},_0x5a5534={};function _0x5c4e9d(_0x5ceb22,_0x3b2836){return _0x33cded(_0x3b2836,_0x5ceb22- -_0x4339fe._0x58a834);}_0x5a5534[_0x38b901(0x2af,_0x19cf01._0x18367c)]=function(_0x5d3871,_0x15dcd9){return _0x5d3871-_0x15dcd9;};const _0x198f79=_0x5a5534,{logPath:_0x2aaf56,errorLogPath:_0x44ceda}=getServicePaths();function _0x38b901(_0x3de330,_0x1fec69){return _0x33cded(_0x1fec69,_0x3de330- -0x3aa);}const _0x2735d7=clampLines(_0x2cba23?.[_0x38b901(_0x19cf01._0x1fffcf,0x2d6)]??0xc8),_0x1eb73c=_0x2cba23?.[_0x38b901(0x119,0x2a)]??null,_0x49997a=_0x1eb73c!=null?_0x198f79['pWzwN'](Date[_0x38b901(_0x19cf01._0x4a8b90,0x350)](),_0x1eb73c):null,_0x402b1b=[_0x2aaf56];_0x2cba23?.['includeE'+_0x38b901(0x76,_0x19cf01._0x3fc610)]&&_0x402b1b[_0x5c4e9d(_0x19cf01._0x28b7b4,0xf4)](_0x44ceda);const _0xd679d8=_0x402b1b['flatMap'](_0x3abd9d=>readLogFile(_0x3abd9d)),_0x32e184=_0x49997a==null?_0xd679d8:_0xd679d8[_0x38b901(_0x19cf01._0x3ef7ac,0x1e4)](_0x4acea9=>_0x4acea9['ts']!=null&&_0x4acea9['ts']>=_0x49997a);return _0x32e184['slice'](-_0x2735d7)['map'](_0xa76558=>_0xa76558[_0x38b901(0x2a5,0x1c4)]);}async function buildDoctorReport(){const _0x4909f6={_0x2dc348:0x19f,_0x169114:0x4c1,_0x3cf5e9:0x429,_0x45919f:0xd6,_0x56317f:0x1ae,_0x4c2995:0xdc,_0xf10dd1:0x25,_0x2d7e6a:0x464,_0x6c5d7c:0x43e,_0x4f8308:0x21,_0x1fc96b:0x60e,_0x66feb9:0x24d,_0xa5a4c:0x2e8,_0x1d64aa:0x3cc},_0x412607={_0x44a697:0x16},_0x56e9b6={_0x5c8086:0x2d7},_0x1e7dae={'lDnaO':function(_0x1cadca){return _0x1cadca();}},_0x4aa5b2=_0x1e7dae['lDnaO'](readPairingConfig),_0x809392=getServiceStatus();function _0x333384(_0x4cfbbb,_0x5decd2){return _0x5338aa(_0x5decd2- -_0x56e9b6._0x5c8086,_0x4cfbbb);}function _0x35b688(_0x1e6761,_0x2531d5){return _0x5338aa(_0x2531d5-_0x412607._0x44a697,_0x1e6761);}const _0x5b7a48=readOpenClawInfo(),_0x272dcd=resolveGatewayUrl(),_0xac1d98=await checkGatewayReachable(_0x272dcd);return{'paired':Boolean(_0x4aa5b2),'gatewayId':_0x4aa5b2?.['gatewayI'+'d']??null,'serverUrl':_0x4aa5b2?.[_0x333384(0x1be,_0x4909f6._0x2dc348)+'l']??null,'relayUrl':_0x4aa5b2?.[_0x35b688(_0x4909f6._0x169114,_0x4909f6._0x3cf5e9)]??null,'instanceId':_0x4aa5b2?.[_0x333384(-_0x4909f6._0x45919f,0x1c)+'Id']??null,'serviceInstalled':_0x809392[_0x35b688(0xa,_0x4909f6._0x2dc348)+'d'],'serviceRunning':_0x809392[_0x35b688(0xff,_0x4909f6._0x56317f)],'serviceMethod':_0x809392['method'],'servicePath':_0x809392[_0x333384(_0x4909f6._0x4c2995,-_0x4909f6._0xf10dd1)+_0x35b688(_0x4909f6._0x2d7e6a,_0x4909f6._0x6c5d7c)],'logPath':_0x809392[_0x333384(0x19e,_0x4909f6._0x4f8308)],'errorLogPath':_0x809392[_0x35b688(_0x4909f6._0x1fc96b,0x4b8)+'Path'],'openclawConfigDir':getOpenClawConfigDir(),'openclawMediaDir':getOpenClawMediaDir(),'openclawConfigFound':_0x5b7a48['configFo'+_0x35b688(_0x4909f6._0x66feb9,_0x4909f6._0xa5a4c)],'openclawAuthMode':_0x5b7a48[_0x35b688(0x462,0x3f9)],'openclawTokenFound':Boolean(_0x5b7a48[_0x35b688(_0x4909f6._0x1d64aa,0x3a3)]),'openclawPasswordFound':Boolean(_0x5b7a48[_0x35b688(0x2d9,0x14f)]),'localGatewayUrl':_0x272dcd,'localGatewayReachable':_0xac1d98};}async function ensurePairPrerequisites(){const _0xa08556={_0x3debf1:0x589,_0x241b1e:0x1d2,_0x1595de:0xa5,_0x227594:0x287,_0xd4d4c4:0x2ef,_0x47399a:0x7a,_0x4c63a3:0x3e,_0x4b2768:0x37b,_0x18a3f1:0x28f,_0xbed923:0x1d6,_0x286b3d:0x249,_0x36035b:0x645,_0x2ccaf5:0x5bc,_0x20cff7:0x6be,_0x3334bd:0x53c,_0x1cdd6b:0x85,_0x1f575f:0x2d6,_0x10c154:0xe4,_0x4c0b6d:0x2e3,_0x2736ba:0x84,_0x42885a:0xcf,_0x360ead:0x536},_0x2133bc={_0x228327:0x14e},_0x2ec29d={};_0x2ec29d['vQPqO']=function(_0x301436,_0x151264){return _0x301436>_0x151264;};const _0x3d4fca=_0x2ec29d;function _0x8da798(_0x296a38,_0x1492f2){return _0x33cded(_0x1492f2,_0x296a38- -0x4bd);}const _0x42ab9c=await buildDoctorReport(),_0x113051=listPairPrerequisiteFailures(_0x42ab9c);function _0x190c60(_0x2492f4,_0x3fb8b5){return _0x33cded(_0x2492f4,_0x3fb8b5- -_0x2133bc._0x228327);}if(_0x3d4fca[_0x190c60(0x421,0x399)](_0x113051[_0x190c60(0x404,_0xa08556._0x3debf1)],0x0))throw new Error([_0x8da798(_0xa08556._0x241b1e,_0xa08556._0x1595de)+_0x190c60(0x165,_0xa08556._0x227594)+_0x190c60(_0xa08556._0xd4d4c4,0x2ec)+_0x8da798(_0xa08556._0x47399a,_0xa08556._0x4c63a3)+_0x190c60(0x4c5,_0xa08556._0x4b2768)+_0x8da798(-0x35,-0x1df)+_0x190c60(_0xa08556._0x18a3f1,0x317)+_0x8da798(_0xa08556._0xbed923,0x325)+'tes\x20are\x20'+_0x190c60(0x14b,0x2ed)+'y.',..._0x113051['map'](_0x1b5ca4=>'-\x20'+_0x1b5ca4),_0x8da798(_0xa08556._0x286b3d,0x1d0)+_0x190c60(0x610,0x5df)+_0x190c60(_0xa08556._0x36035b,_0xa08556._0x2ccaf5)+_0x190c60(_0xa08556._0x20cff7,_0xa08556._0x3334bd)+_0x190c60(0x74f,0x602)+'r\x20use\x20`c'+_0x8da798(-0x62,_0xa08556._0x1cdd6b)+_0x190c60(0x377,0x3ec)+_0x190c60(0x255,_0xa08556._0x1f575f)+_0x8da798(_0xa08556._0x10c154,0x2c5)+_0x190c60(0x3fa,0x2cd)+'onally\x20w'+_0x8da798(0x125,_0xa08556._0x4c0b6d)+_0x8da798(_0xa08556._0x2736ba,-_0xa08556._0x42885a)+_0x8da798(-0x101,-0xe2)+_0x190c60(_0xa08556._0x360ead,0x43a)]['join']('\x0a'));return _0x42ab9c;}function _0x33cded(_0x27eaf3,_0x38bf43){return _0x3b9b(_0x38bf43-0x336,_0x27eaf3);}function listPairPrerequisiteFailures(_0x37a0b0){const _0x480a84={_0x3ad173:0x11e,_0x45cb9a:0x73,_0x332112:0x20a,_0x9a4740:0x13c,_0x22f969:0xf8,_0x1ca0a3:0x15,_0x4a862f:0x17e,_0x215489:0x2eb,_0x455843:0x17b,_0x3ee5e4:0x105,_0x76f4c0:0x17,_0x39a02a:0xc8,_0x5cd3d7:0x125,_0x57e3a5:0x61,_0x3e4cb9:0x95,_0x303048:0x6d,_0x502b63:0x52,_0x3b0a60:0x23d,_0x1b0ddb:0x1cb,_0x4c1ee2:0x1d5,_0x10f7a9:0x181,_0x4ef995:0x17,_0x16bb0c:0x193,_0x2c904e:0x20a,_0x413c18:0xd1,_0x1d9d21:0x148,_0x48b7be:0x122,_0x4eaecf:0x13e,_0x28d11d:0x1b9,_0x2e5ce8:0x157,_0x27f259:0x5e,_0x38d6f4:0xaa,_0x51de5f:0x4f,_0x23b0a5:0x20c,_0x2fa67a:0x28d,_0xc01735:0x5a,_0x161c25:0x12,_0x12f0dd:0x190,_0x20394f:0x27,_0xc436d2:0x80,_0x1876f2:0x306,_0x3e6dad:0x1b4,_0x2b75f8:0x17,_0x28b49f:0x13f,_0x3e4355:0x13c,_0x5aa6b1:0xbd,_0x4a0758:0x225,_0x479302:0x13f,_0x49a4e7:0x300},_0x109de7={_0x1bbc8e:0x3b8};function _0x26a344(_0x42b0b6,_0x146f9d){return _0x5338aa(_0x146f9d- -0x2ed,_0x42b0b6);}const _0xf09924={};_0xf09924[_0x26a344(-0x2a,0x61)]=function(_0x324981,_0x5bb315){return _0x324981==_0x5bb315;},_0xf09924[_0x26a344(0x16c,0x118)]=function(_0x1749cf,_0x17bc2a){return _0x1749cf===_0x17bc2a;};const _0xac114=_0xf09924,_0x40818d=[];!_0x37a0b0[_0x26a344(_0x480a84._0x3ad173,0x6d)+_0x42f9b9(_0x480a84._0x45cb9a,0x117)+_0x26a344(-0x77,-0x1b)]&&_0x40818d[_0x42f9b9(-0xd5,-_0x480a84._0x332112)](_0x26a344(0x238,_0x480a84._0x9a4740)+_0x26a344(_0x480a84._0x22f969,0x8b)+_0x26a344(-0xea,_0x480a84._0x1ca0a3)+_0x26a344(-0x74,-_0x480a84._0x4a862f)+'der\x20'+formatOpenClawConfigLocations()+'.');_0x37a0b0[_0x26a344(0x239,0x6d)+_0x42f9b9(-_0x480a84._0x215489,-_0x480a84._0x455843)+'nd']&&_0x37a0b0[_0x42f9b9(0x87,-0x5e)+_0x42f9b9(-_0x480a84._0x3ee5e4,-_0x480a84._0x76f4c0)+_0x42f9b9(0x7e,_0x480a84._0x39a02a)]&&_0xac114[_0x26a344(-_0x480a84._0x5cd3d7,_0x480a84._0x57e3a5)](_0x37a0b0[_0x26a344(-_0x480a84._0x3e4cb9,_0x480a84._0x303048)+'AuthMode'],null)&&_0x40818d[_0x42f9b9(-0x32c,-_0x480a84._0x332112)]('OpenClaw'+_0x42f9b9(-0xa2,0xe)+'h\x20gatewa'+_0x26a344(-_0x480a84._0x502b63,-0x8e)+_0x26a344(-0x1d,-0xa9)+_0x26a344(-_0x480a84._0x3b0a60,-_0x480a84._0x1b0ddb)+_0x42f9b9(0xd6,0x42)+'\x20but\x20gat'+'eway.aut'+'h.mode\x20i'+'s\x20unset.');function _0x42f9b9(_0x1dceb4,_0x138052){return _0x5338aa(_0x138052- -_0x109de7._0x1bbc8e,_0x1dceb4);}return!_0x37a0b0[_0x42f9b9(-_0x480a84._0x4c1ee2,-0x5e)+_0x42f9b9(0x5b,-0x17b)+'nd']&&!_0x37a0b0[_0x42f9b9(_0x480a84._0x10f7a9,-0x5e)+_0x42f9b9(-0x92,-_0x480a84._0x4ef995)+_0x26a344(0x1b4,_0x480a84._0x16bb0c)]&&_0x40818d[_0x42f9b9(-0x389,-_0x480a84._0x2c904e)](_0x26a344(0x20c,0x13c)+'\x20gateway'+_0x42f9b9(0x1ab,_0x480a84._0x413c18)+_0x42f9b9(-0x1d8,-0x204)+_0x26a344(_0x480a84._0x1d9d21,_0x480a84._0x48b7be)+_0x26a344(_0x480a84._0x4eaecf,0x1a8)+_0x42f9b9(-_0x480a84._0x28d11d,-_0x480a84._0x22f969)),_0x37a0b0[_0x42f9b9(_0x480a84._0x2e5ce8,-_0x480a84._0x27f259)+'AuthMode']===_0x26a344(0x284,0xa0)&&!_0x37a0b0[_0x42f9b9(-_0x480a84._0x38d6f4,-0x5e)+_0x26a344(_0x480a84._0x51de5f,-0xb0)+'nd']&&_0x40818d[_0x42f9b9(-_0x480a84._0x23b0a5,-_0x480a84._0x332112)](_0x26a344(0x24c,0x13c)+_0x42f9b9(-0x2f9,-0x1c5)+_0x42f9b9(-_0x480a84._0x2fa67a,-0x246)+_0x26a344(_0x480a84._0xc01735,_0x480a84._0x161c25)+'g.'),_0xac114[_0x42f9b9(_0x480a84._0x12f0dd,0x4d)](_0x37a0b0[_0x26a344(_0x480a84._0x20394f,_0x480a84._0x303048)+_0x42f9b9(-_0x480a84._0xc436d2,0xc6)],_0x26a344(-_0x480a84._0x1876f2,-_0x480a84._0x3e6dad))&&!_0x37a0b0[_0x26a344(-0x8f,0x6d)+_0x42f9b9(0x7,-_0x480a84._0x2b75f8)+'Found']&&_0x40818d[_0x26a344(-0x23d,-_0x480a84._0x28b49f)](_0x26a344(0x2fb,_0x480a84._0x3e4355)+_0x42f9b9(-_0x480a84._0x5aa6b1,-0x1c5)+_0x42f9b9(-0xd1,-0x1a0)+'d\x20is\x20mis'+_0x42f9b9(-0x26c,-0x233)),!_0x37a0b0['localGat'+_0x26a344(-0x16,-0x16)+_0x42f9b9(-0x2f0,-_0x480a84._0x4a0758)]&&_0x40818d[_0x26a344(-0x29,-_0x480a84._0x479302)]('Local\x20Op'+'enClaw\x20G'+_0x26a344(-_0x480a84._0x49a4e7,-0x191)+'s\x20not\x20re'+_0x42f9b9(0x14a,0x12)+'at\x20'+_0x37a0b0[_0x26a344(0x1d,-0xad)+'ewayUrl']+'.'),_0x40818d;}function formatOpenClawConfigLocations(){const _0x1518cf={_0x1a79fc:0x704,_0x5eb952:0x390,_0x30b173:0x473},_0x400547={_0x297b9d:0x1b1},_0x2fb9ea={_0x13cbe:0x5ed},_0x4f610f={_0x5cd5ef:0x12f},_0x3a0f0f={_0x4bad19:0xc6};function _0x4d1eaa(_0x1a4d63,_0x20038e){return _0x33cded(_0x1a4d63,_0x20038e- -_0x3a0f0f._0x4bad19);}const _0x2b452b=new Set();function _0x50c1a3(_0x2ef8ff,_0x2dc1e3){return _0x33cded(_0x2dc1e3,_0x2ef8ff- -_0x4f610f._0x5cd5ef);}return[_0xec9ee5(),'/root'][_0x4d1eaa(_0x1518cf._0x1a79fc,0x683)](_0x3251ef=>_0x3251ef[_0x50c1a3(0x57b,0x6ab)]()+(_0x4d1eaa(0x179,0x333)+'aw'))[_0x50c1a3(0x4b2,0x439)](_0x3222b6=>_0x3222b6!=='/.opencl'+'aw')['filter'](_0x4b9d38=>{if(_0x2b452b['has'](_0x4b9d38))return![];function _0x531314(_0xc191f8,_0x3b0dde){return _0x50c1a3(_0xc191f8- -_0x2fb9ea._0x13cbe,_0x3b0dde);}return _0x2b452b[_0x531314(-0xa1,-_0x400547._0x297b9d)](_0x4b9d38),!![];})[_0x50c1a3(_0x1518cf._0x5eb952,0x261)](_0x50c1a3(0x5af,_0x1518cf._0x30b173));}function readLogFile(_0x33ee50){const _0x4b4c92={_0xd20852:0x32e,_0x3e7386:0x3d1,_0x2a1b19:0xfd,_0x2bfe29:0x114},_0x31a9d6={_0x113ff6:0x394};function _0x23b144(_0xfa5ef3,_0x408a4a){return _0x5338aa(_0xfa5ef3- -_0x31a9d6._0x113ff6,_0x408a4a);}function _0x455eba(_0x4a5d22,_0x40e6d9){return _0x5338aa(_0x40e6d9- -0xa1,_0x4a5d22);}try{const _0x5ea79f=_0x36a53f(_0x33ee50,_0x23b144(-0xf7,-0x1d4));return _0x5ea79f[_0x455eba(_0x4b4c92._0xd20852,_0x4b4c92._0x3e7386)](/\r?\n/)[_0x455eba(_0x4b4c92._0x2a1b19,0x29f)](Boolean)[_0x23b144(_0x4b4c92._0x2bfe29,-0x86)](_0x4cd7f3=>({'raw':_0x4cd7f3,'ts':parseTimestamp(_0x4cd7f3)}));}catch{return[];}}function parseTimestamp(_0x2a2c73){const _0xf749ec={_0x26d7ab:0x9d},_0x2df12d=_0x2a2c73[_0x43481b(-0x26,-_0xf749ec._0x26d7ab)](/^\[(\d{13})\]\s/);function _0x43481b(_0x257aa8,_0x1fb517){return _0x33cded(_0x1fb517,_0x257aa8- -0x710);}if(!_0x2df12d)return null;const _0x1a5623=Number(_0x2df12d[0x1]);return Number['isFinite'](_0x1a5623)?_0x1a5623:null;}function clampLines(_0x423b33){const _0x605784={_0x5a8315:0x269,_0x25004e:0x458},_0x7bb0e7={_0x4a6c5e:0x96};function _0x5a1f2(_0x920f92,_0x4a87cf){return _0x5338aa(_0x4a87cf-0x2b2,_0x920f92);}function _0x4b02b9(_0xf9b3bf,_0x2be0b7){return _0x5338aa(_0xf9b3bf-_0x7bb0e7._0x4a6c5e,_0x2be0b7);}if(!Number[_0x5a1f2(0x3c1,0x551)](_0x423b33))return 0xc8;return Math[_0x4b02b9(_0x605784._0x5a8315,0x2ef)](0x1,Math['min'](0x7d0,Math[_0x5a1f2(0x4d3,_0x605784._0x25004e)](_0x423b33)));}async function checkGatewayReachable(_0xaf5377){const _0x200b6d={_0x46997b:0x633,_0x3676ff:0x6a6,_0x76aa98:0x511,_0x12c583:0x28e,_0x11751c:0x152,_0x3d0429:0x70},_0x258266={_0xee6c60:0x2f9,_0x4e80ca:0x8ef,_0x179720:0x488},_0x2edb2b={_0x166879:0x16c},_0x25ba04={_0x37d01e:0x3e2},_0x56fe85={};function _0x381d7a(_0x1eab32,_0x5275f5){return _0x5338aa(_0x1eab32- -_0x25ba04._0x37d01e,_0x5275f5);}_0x56fe85[_0x238f4b(_0x200b6d._0x46997b,_0x200b6d._0x3676ff)]='connect',_0x56fe85[_0x381d7a(-0x1a8,0x30)]=_0x238f4b(_0x200b6d._0x76aa98,0x366);const _0xfb9460=_0x56fe85;function _0x238f4b(_0x2e6d96,_0x13cab0){return _0x5338aa(_0x2e6d96-_0x2edb2b._0x166879,_0x13cab0);}try{const _0x49c953=new URL(_0xaf5377),_0x5d05d3=_0x49c953[_0x238f4b(0x308,_0x200b6d._0x12c583)]||_0x238f4b(0x52c,0x6a1)+'1',_0x9e6afc=_0x49c953['port']?Number(_0x49c953[_0x238f4b(0x61d,0x534)]):_0x49c953['protocol']===_0x381d7a(-_0x200b6d._0x11751c,-_0x200b6d._0x3d0429)?0x1bb:0x50;return await new Promise((_0x3fff63,_0x29f93d)=>{const _0x4272e3={_0x7d5c97:0x43,_0x4c8058:0x7d1},_0x291b09={_0x1279c8:0x446},_0x2d9093={_0xf5660:0x69a},_0x516608=new Socket();_0x516608[_0x1ab14a(_0x258266._0xee6c60,0x441)+'ut'](0x384);function _0x593ad7(_0x762544,_0x3a2974){return _0x381d7a(_0x3a2974-_0x2d9093._0xf5660,_0x762544);}function _0x1ab14a(_0x1306fd,_0x160e4a){return _0x381d7a(_0x160e4a-_0x291b09._0x1279c8,_0x1306fd);}_0x516608['once'](_0xfb9460[_0x593ad7(_0x258266._0x4e80ca,0x77f)],()=>{_0x516608['destroy'](),_0x3fff63();}),_0x516608['once'](_0xfb9460['LekDR'],()=>{_0x516608[_0x220ca2(0xba,-_0x4272e3._0x7d5c97)]();function _0x5e3485(_0x29faef,_0x37a1de){return _0x1ab14a(_0x29faef,_0x37a1de-0x25b);}function _0x220ca2(_0x324fc0,_0xdf9453){return _0x1ab14a(_0xdf9453,_0x324fc0- -0x258);}_0x29f93d(new Error(_0x5e3485(_0x4272e3._0x4c8058,0x664)));}),_0x516608[_0x593ad7(0x4b8,_0x258266._0x179720)]('error',_0x4a4537=>{_0x516608['destroy'](),_0x29f93d(_0x4a4537);}),_0x516608['connect'](_0x9e6afc,_0x5d05d3);}),!![];}catch{return![];}}function parseLookbackToMs(_0x551711){const _0x753b77={_0x72633d:0x45e,_0x4bb87b:0x3bb,_0x3a5f68:0x614,_0x201256:0x45c,_0x106f8a:0x17e,_0x1d1fde:0x236},_0x387b59={_0x4be04e:0x2ef},_0x48867a={_0x1ab915:0x46f},_0x1d23dc=_0x551711?.[_0x3d4ef6(_0x753b77._0x72633d,_0x753b77._0x4bb87b)]();function _0x376f68(_0x43bf96,_0x3a53e1){return _0x33cded(_0x43bf96,_0x3a53e1- -_0x48867a._0x1ab915);}if(!_0x1d23dc)return null;const _0x1c940a=_0x1d23dc['match'](/^(\d+)(ms|s|m|h|d)$/i);if(!_0x1c940a)throw new Error(_0x3d4ef6(_0x753b77._0x3a5f68,0x44b)+_0x376f68(0x19b,0xbf)+_0x3d4ef6(0x4be,_0x753b77._0x201256)+_0x1d23dc+(_0x376f68(0x5a,0x232)+'alues\x20li'+'ke\x2030s,\x20'+_0x3d4ef6(_0x753b77._0x106f8a,0x1f0)+'or\x201d.'));const _0x38d2db=Number(_0x1c940a[0x1]),_0x243f13=_0x1c940a[0x2][_0x376f68(0x33e,_0x753b77._0x1d1fde)+_0x376f68(0x3a5,0x1dc)](),_0x1d0866=_0x243f13==='ms'?0x1:_0x243f13==='s'?0x3e8:_0x243f13==='m'?0xea60:_0x243f13==='h'?0x36ee80:0x5265c00;function _0x3d4ef6(_0x17d31e,_0xfe719d){return _0x33cded(_0x17d31e,_0xfe719d- -_0x387b59._0x4be04e);}return _0x38d2db*_0x1d0866;}import{readFileSync as _0x18f906}from'fs';import{dirname as _0x42ba1b,resolve}from'path';import{fileURLToPath}from'url';function readCliVersion(){const _0x104bd7={_0x258194:0x118,_0x4a390d:0x1ba,_0x22005a:0x2da,_0x56c2c2:0x3ac,_0x5d6a30:0x13,_0x404727:0x18e,_0x207283:0x1a,_0x188a70:0x19},_0x5245d5={_0x19bf7e:0x45},_0x209ea4={'rJvuq':function(_0x2df969,_0x1abf69){return _0x2df969(_0x1abf69);},'IeSFo':'../packa'+'ge.json','GreCz':'utf8'},_0x2e8417=_0x42ba1b(_0x209ea4['rJvuq'](fileURLToPath,import.meta.url)),_0xd700a8=resolve(_0x2e8417,_0x209ea4[_0x1b79ab(_0x104bd7._0x258194,_0x104bd7._0x4a390d)]);function _0x1b79ab(_0x26721f,_0x5cc8da){return _0x5338aa(_0x5cc8da-_0x5245d5._0x19bf7e,_0x26721f);}const _0x4a5e12=_0x18f906(_0xd700a8,_0x209ea4[_0x1b79ab(_0x104bd7._0x22005a,_0x104bd7._0x56c2c2)]);function _0x2f037d(_0x2eb309,_0x349dd5){return _0x5338aa(_0x2eb309- -0x29c,_0x349dd5);}const _0x3ce752=JSON[_0x2f037d(-_0x104bd7._0x5d6a30,_0x104bd7._0x404727)](_0x4a5e12);return _0x3ce752[_0x1b79ab(0x489,0x33b)]??_0x2f037d(_0x104bd7._0x207283,_0x104bd7._0x188a70);}function buildPairingJson(_0x585d34,_0x5ae55b,_0x4db04b,_0x5f3b45){const _0x18e2d9={_0x5636b9:0x3ea,_0x5c4d11:0x28c,_0x314764:0x375,_0x45784b:0x29b,_0x5eae28:0x4b6,_0x425683:0x428,_0x1d1107:0x4de,_0x1e7605:0x530,_0x1d3a50:0x52b,_0x238936:0x4c3,_0x3f11c3:0x3fb,_0x255336:0x52a,_0xacbfc4:0x479,_0x2aa8fd:0x28,_0xb6ace0:0x200,_0x1e8ade:0x23a,_0x530a0c:0x195,_0x3f14c1:0x290,_0x4e0c0e:0x49b,_0x2814ac:0x318,_0x41a04e:0x2db,_0x1b7cc2:0x442,_0x92eff4:0x4fe,_0x2f26fd:0x2b9,_0xe77f72:0x2cd,_0x1e18c1:0x52b},_0x520f94={_0x2c4a7d:0x219};function _0x3b06ba(_0x5b2547,_0x5413bc){return _0x33cded(_0x5b2547,_0x5413bc- -_0x520f94._0x2c4a7d);}const _0x2e3448={};_0x2e3448[_0x5e37d5(_0x18e2d9._0x5636b9,_0x18e2d9._0x5c4d11)+'d']=_0x4db04b['installe'+'d'],_0x2e3448['running']=_0x4db04b[_0x5e37d5(_0x18e2d9._0x314764,_0x18e2d9._0x45784b)],_0x2e3448[_0x5e37d5(0x3a0,0x428)]=_0x4db04b[_0x5e37d5(_0x18e2d9._0x5eae28,_0x18e2d9._0x425683)],_0x2e3448[_0x5e37d5(_0x18e2d9._0x1d1107,0x3b5)+_0x5e37d5(_0x18e2d9._0x1e7605,0x52b)]=_0x4db04b['serviceP'+_0x5e37d5(0x5a7,_0x18e2d9._0x1d3a50)],_0x2e3448[_0x3b06ba(_0x18e2d9._0x238936,0x380)]=_0x4db04b[_0x5e37d5(0x2e9,_0x18e2d9._0x3f11c3)],_0x2e3448[_0x3b06ba(0x6c8,_0x18e2d9._0x255336)+_0x5e37d5(0x3c3,0x479)]=_0x4db04b[_0x3b06ba(0x6b7,0x52a)+_0x5e37d5(0x3d6,_0x18e2d9._0xacbfc4)],_0x2e3448['pid']=_0x4db04b[_0x3b06ba(_0x18e2d9._0x2aa8fd,_0x18e2d9._0xb6ace0)];const _0x3373b8={};_0x3373b8['ok']=!![],_0x3373b8[_0x5e37d5(0x240,0x3d8)]=_0x585d34['action'],_0x3373b8['message']=_0x5f3b45,_0x3373b8['gatewayI'+'d']=_0x585d34[_0x5e37d5(_0x18e2d9._0x1e8ade,0x318)][_0x5e37d5(_0x18e2d9._0x530a0c,_0x18e2d9._0x3f14c1)+'d'],_0x3373b8[_0x3b06ba(0x327,_0x18e2d9._0x4e0c0e)]=_0x585d34[_0x5e37d5(0x15b,_0x18e2d9._0x2814ac)]['relayUrl'],_0x3373b8['serverUr'+'l']=_0x585d34[_0x5e37d5(_0x18e2d9._0x41a04e,_0x18e2d9._0x2814ac)][_0x3b06ba(_0x18e2d9._0x1b7cc2,_0x18e2d9._0x92eff4)+'l'],_0x3373b8['instance'+'Id']=_0x585d34[_0x5e37d5(0x385,0x318)][_0x5e37d5(0x242,0x3f6)+'Id'],_0x3373b8['accessCo'+'de']=_0x585d34[_0x5e37d5(0x30e,_0x18e2d9._0x2f26fd)+'de'],_0x3373b8[_0x3b06ba(0x26c,0x23e)+'deExpire'+_0x3b06ba(0x4bd,0x408)]=_0x585d34['accessCo'+_0x5e37d5(0x308,_0x18e2d9._0xe77f72)+'sAt'];function _0x5e37d5(_0x365e6e,_0x23d8d8){return _0x33cded(_0x365e6e,_0x23d8d8- -0x19e);}return _0x3373b8[_0x5e37d5(0x3d4,0x511)+_0x5e37d5(0x57d,_0x18e2d9._0x1e18c1)]=_0x5ae55b,_0x3373b8[_0x3b06ba(0x3ed,0x30e)]=_0x2e3448,_0x3373b8;}import{mkdirSync as _0x51276e,writeFileSync as _0x319ac8}from'fs';import{dirname as _0x428ed7,isAbsolute,join as _0x313058,resolve as _0x4e1d94}from'path';import _0x5801b1 from'qrcode';var DEFAULT_QR_DIR=getOpenClawMediaDir();async function writePairingQrPng(_0x35492b,_0x5aa86c){const _0x39ae36={_0x3097e0:0x512,_0x800b8c:0x3b0,_0x57def9:0x609,_0x3d69fe:0x557,_0xe0ad9d:0x3da,_0x28481a:0x609,_0x1158bb:0x2dd,_0x51761b:0x2be,_0xaedc34:0x2fc,_0x56155e:0x468,_0x38abb:0x39f,_0x1b340f:0x269},_0x3a7caa={_0x299b7e:0xaf},_0x4b4304={'DoUvi':function(_0x459a03,_0x26d5bd,_0x2e9645){return _0x459a03(_0x26d5bd,_0x2e9645);}},_0x3b908e=_0x4b4304[_0x7829d(0x46d,_0x39ae36._0x3097e0)](resolveQrOutputPath,_0x35492b,_0x5aa86c),_0x242cfb={};_0x242cfb[_0x7829d(0x2a2,_0x39ae36._0x800b8c)+'e']=!![],_0x51276e(_0x428ed7(_0x3b908e),_0x242cfb);const _0x370e1e={};function _0x7829d(_0x14d654,_0x10749a){return _0x33cded(_0x14d654,_0x10749a- -_0x3a7caa._0x299b7e);}_0x370e1e[_0x5686d6(0x2a7,0x324)]=_0x7829d(_0x39ae36._0x57def9,_0x39ae36._0x3d69fe)+'g',_0x370e1e[_0x7829d(_0x39ae36._0xe0ad9d,0x3d5)+_0x5686d6(_0x39ae36._0x28481a,0x58d)+_0x7829d(_0x39ae36._0x1158bb,0x343)]='M',_0x370e1e['margin']=0x1,_0x370e1e['width']=0x2d0;const _0x537b05=await _0x5801b1['toDataUR'+'L'](_0x35492b[_0x5686d6(_0x39ae36._0x51761b,_0x39ae36._0xaedc34)+'d'],_0x370e1e),_0x10afc1=_0x537b05['replace'](/^data:image\/png;base64,/,'');_0x319ac8(_0x3b908e,Buffer[_0x5686d6(_0x39ae36._0x56155e,_0x39ae36._0x38abb)](_0x10afc1,_0x5686d6(0x356,_0x39ae36._0x1b340f)));function _0x5686d6(_0x8e7302,_0x20a397){return _0x33cded(_0x8e7302,_0x20a397- -0x187);}return _0x3b908e;}function resolveQrOutputPath(_0x2a0f46,_0x2afecb){const _0x2620fa={_0x2a377a:0x110,_0x345bfb:0xc4},_0x4401e={_0x817eb:0x21c},_0x32bf48={'qgZRG':function(_0xf8048,_0x95376f){return _0xf8048(_0x95376f);},'vxOBT':function(_0x5950c9,_0x4f31be){return _0x5950c9(_0x4f31be);}};function _0x598512(_0x513c8a,_0x4557a2){return _0x5338aa(_0x4557a2- -_0x4401e._0x817eb,_0x513c8a);}const _0x55d324=_0x2afecb?.['trim']();function _0x125b9c(_0xdaa20d,_0xa6c1e6){return _0x5338aa(_0xa6c1e6- -0x2a,_0xdaa20d);}if(_0x55d324)return _0x32bf48['qgZRG'](isAbsolute,_0x55d324)?_0x55d324:_0x32bf48[_0x125b9c(0x2b4,0x105)](_0x4e1d94,_0x55d324);return _0x313058(DEFAULT_QR_DIR,_0x2a0f46[_0x125b9c(_0x2620fa._0x2a377a,0x1eb)]['gatewayI'+'d']+_0x598512(_0x2620fa._0x345bfb,0x20));}function decidePairServiceAction(_0x3465f0,_0x5d43eb){const _0xcca25e={_0x549ad0:0x1d,_0x44b9b5:0x3c3,_0x2622e6:0x3ce,_0x397133:0x2f,_0x4d3a8b:0x1d3},_0x4f2414={_0x8b62e2:0xf9},_0x317925={_0x4a01db:0x154};function _0x3afefa(_0x490d4a,_0x2aa02c){return _0x5338aa(_0x490d4a- -_0x317925._0x4a01db,_0x2aa02c);}if(!_0x5d43eb[_0x1ed0a1(0x383,0x282)+'d'])return'install';if(!_0x5d43eb[_0x3afefa(0x44,0xed)])return _0x3afefa(_0xcca25e._0x549ad0,0x1ae);if(_0x3465f0[_0x1ed0a1(_0xcca25e._0x44b9b5,_0xcca25e._0x2622e6)]===_0x1ed0a1(0x56e,0x5c2)+'ed')return _0x3afefa(0x1d,_0xcca25e._0x397133);function _0x1ed0a1(_0x48f5e9,_0x253603){return _0x5338aa(_0x253603-_0x4f2414._0x8b62e2,_0x48f5e9);}return _0x3afefa(0x2e7,_0xcca25e._0x4d3a8b);}async function main(){const _0x2f54bd={_0x3760de:0x316,_0x2be1e1:0x23f,_0x299057:0x1b5,_0x19b6e9:0x2a6,_0x5543dc:0x20,_0x54dc37:0x162,_0x200431:0x428,_0x1ec880:0x2fd,_0x1af0f3:0x3d1,_0x3b9ee2:0x125,_0x505b8d:0x27f,_0xa0fd41:0x272,_0x50b554:0x102,_0x5893cd:0x115,_0x58db5e:0x364,_0x1992cd:0x2cf,_0x5f2fe2:0x64,_0x1e06ed:0x35c,_0x52e9fa:0x28c,_0x1f136e:0x45,_0x432d5e:0x26f,_0x36fb8f:0x134,_0x29c44b:0x2a0,_0x2cb66a:0x443,_0xc904a1:0x296,_0x4ca3a7:0x2dd,_0x3a0f14:0x298,_0x6d2383:0x3cb,_0x239d0d:0x2,_0x3c39ba:0x244,_0x3579a6:0x2e0,_0x27f007:0x385,_0x27fcc5:0x7c,_0x6c4a29:0x2e,_0x553c53:0x14d,_0x5734b7:0xb2,_0x272daf:0x306,_0x102731:0x349,_0x457612:0x436,_0x3b2dba:0x299,_0x3ea81e:0x334,_0x28cd29:0xce,_0x13ff61:0x1fa,_0x802a61:0x1e5,_0x26d30a:0xb0,_0x1eff75:0x128,_0x59996b:0x394,_0x591d41:0x16a,_0x16fc46:0x580,_0x4053eb:0x305,_0x710d0a:0x117,_0x1f48e5:0xee,_0x500460:0x247,_0x46013b:0xbc,_0x5cb466:0x73,_0x587f1c:0x5c,_0x1e0bdc:0x82,_0x2006a4:0x52,_0x56a96c:0x28d,_0x1a54f6:0x1b2,_0xd770f1:0x10f,_0x408129:0x24c,_0x442be5:0x3e5,_0x313556:0x6c,_0x1f4893:0x1bf,_0x479f1e:0x126,_0x168004:0x9c,_0x3e892f:0x290,_0x1e9845:0x1b0,_0x431ee4:0x34b,_0x12f2c7:0xcd,_0x27a7a9:0x1e8,_0x40aafc:0x53,_0x294e11:0x1db,_0x367a70:0x4e1,_0x2a10c2:0x1f2,_0x5e6496:0x32b,_0x36f7ce:0x366,_0xce7e88:0x3d2,_0x5ecaff:0x2df,_0x3f467e:0x389,_0x4d8618:0x24c,_0x44395a:0xc4,_0x164da5:0x362,_0x212238:0x1e5,_0x11aa7d:0x251,_0x3945b6:0x2cc,_0x45219a:0x2df,_0x564292:0x23e,_0x37d453:0x22d,_0x1c0c20:0x9d,_0x5441a8:0x21,_0x22c2dd:0x156,_0x1e7e54:0x46,_0x3e833e:0x1e5,_0x2ed4e3:0x228,_0x5ea83c:0xbb,_0x1f157e:0x21,_0x5cae34:0x406,_0x4a4e8a:0x3ba,_0x526ef9:0x57a,_0x2e885d:0x329,_0x1c26bf:0x5b,_0xb517fa:0x17,_0x1d21f7:0xa4,_0xff61c6:0xb1,_0x47d6d9:0xb5,_0x2c3596:0x263,_0x5b40d4:0x17,_0x2b97a5:0x165,_0x29856f:0x2f4,_0x159cc9:0x15,_0x211764:0x1e2,_0x372f08:0x118,_0x40489d:0x249,_0x5d321d:0xf9,_0x41f579:0x1b,_0x5738c5:0x2fc,_0x36b40c:0x46e,_0xcc228a:0x1e9,_0x4363e9:0x546,_0x58ad5a:0x14c,_0x468778:0x38c,_0x11fc3b:0x1e5,_0x581a1d:0x269,_0x27cfec:0x265,_0x6d563f:0x168,_0x4d1110:0x1a1,_0xa9c6ad:0x68,_0x414c8f:0x131,_0x284710:0xde,_0x30721b:0x1fb,_0x5a4519:0x2bf,_0x2e95ab:0x66,_0x4c945e:0xf8,_0x63750e:0x138,_0x530a74:0x29c,_0xd77291:0x2d,_0x5ed945:0x1e1,_0x5691d2:0x2c2,_0x392e26:0x210},_0x26d747={_0x3907ed:0x360,_0x3bf8d7:0x223,_0x22597e:0x2fc,_0x46336b:0x2f5,_0x5afb89:0x4aa},_0x4717b0={_0xcc61af:0x276},_0x25ee52={_0x59e350:0x6e5,_0x1b30d2:0x5a8,_0x46a7cd:0x53,_0x26d7e5:0x356,_0x255d3f:0x299},_0x213437={_0x23339b:0x721},_0x483eb7={_0x5420b9:0x339,_0x4962aa:0x24d,_0x4eb391:0x102,_0x23e2f8:0xc0,_0xc96bf1:0x22e,_0x255a6a:0x1d6,_0x1ca958:0x27c,_0x53f282:0x1fb,_0x2e5a64:0xb6,_0xd7e350:0x2d0,_0x2eaa95:0x269,_0x265de8:0x19f,_0x5df0c7:0x3f1,_0x1efd48:0x12b,_0x24a836:0x3a1},_0x27df73={_0x4c7125:0xe2},_0x3605a6={_0x2cf263:0x2bc},_0xd51cd0={_0x1e470d:0x138},_0x2ae11a={_0x454210:0x43f},_0x4c31d6={'LyFRx':function(_0x143d09,_0x33a8c1){return _0x143d09(_0x33a8c1);},'Uwcsa':_0x1f4a68(-0x2f4,-_0x2f54bd._0x3760de),'GAEkB':_0x1f4a68(-0x19d,-0x110)+'>','JQDpS':_0x1f4a68(-_0x2f54bd._0x2be1e1,-_0x2f54bd._0x299057),'lGWZR':'https://'+_0x1f4a68(-_0x2f54bd._0x19b6e9,-0x2b7)+_0x1f4a68(_0x2f54bd._0x5543dc,-0x163)+_0x1f4a68(-0x2d6,-_0x2f54bd._0x54dc37),'CuinJ':_0x1f4a68(-_0x2f54bd._0x200431,-0x294),'MuCSy':function(_0x5dd73c,_0x30b293,_0x99de4c){return _0x5dd73c(_0x30b293,_0x99de4c);},'KGvam':function(_0xcde1ae,_0x5d44f6,_0x3e7511,_0x420a5b,_0x4d4ee2){return _0xcde1ae(_0x5d44f6,_0x3e7511,_0x420a5b,_0x4d4ee2);},'kDVvo':_0x1ab0ce(_0x2f54bd._0x1ec880,0x307)+_0x1ab0ce(0x36e,0x211)+_0x1f4a68(-_0x2f54bd._0x1af0f3,-0x2f7)+'dy\x20runni'+'ng.\x20Left'+_0x1f4a68(-_0x2f54bd._0x3b9ee2,-_0x2f54bd._0x505b8d)+_0x1ab0ce(_0x2f54bd._0xa0fd41,0x2f0),'ECTmk':function(_0x3b4b4b,_0x1e6228){return _0x3b4b4b===_0x1e6228;},'RfQmW':function(_0x5b86ad,_0x17fafe){return _0x5b86ad===_0x17fafe;},'GtBDH':_0x1f4a68(-0x2fe,-0x1ab)+_0x1f4a68(0x49,-0x72)+_0x1f4a68(0x4f,-_0x2f54bd._0x50b554)+'d\x20servic'+'e.','dxBRe':function(_0x2f659e,_0x2bb0f9){return _0x2f659e(_0x2bb0f9);},'Xwwiw':_0x1ab0ce(0xb0,_0x2f54bd._0x5893cd),'dZiTV':function(_0x5055e5){return _0x5055e5();},'XaeFF':function(_0x3ee3d2,_0x233e9d){return _0x3ee3d2===_0x233e9d;},'CYHMf':function(_0x22b8fc){return _0x22b8fc();},'MgniG':'--errors','utjJb':_0x1ab0ce(_0x2f54bd._0x58db5e,_0x2f54bd._0x1992cd),'umXnd':function(_0x5ef79d){return _0x5ef79d();},'ojfrt':_0x1f4a68(-_0x2f54bd._0x5f2fe2,-0x1d1)+_0x1f4a68(-_0x2f54bd._0x1e06ed,-_0x2f54bd._0x52e9fa)},[,,_0x24cd5b=_0x1f4a68(_0x2f54bd._0x1f136e,0x76),..._0x170630]=process[_0x1f4a68(-_0x2f54bd._0x432d5e,-_0x2f54bd._0x36fb8f)],_0x5ba2a2=hasFlag(_0x170630,_0x1ab0ce(_0x2f54bd._0x29c44b,_0x2f54bd._0x2cb66a)+'e'),_0x44f1a6=hasFlag(_0x170630,_0x1ab0ce(0x31b,_0x2f54bd._0xc904a1));function _0x1f4a68(_0x2e894b,_0x2f2b5a){return _0x5338aa(_0x2f2b5a- -_0x2ae11a._0x454210,_0x2e894b);}if(_0x24cd5b===_0x1f4a68(-_0x2f54bd._0x4ca3a7,-0x30c)){const _0x350969=hasFlag(_0x170630,_0x1ab0ce(_0x2f54bd._0x3a0f14,_0x2f54bd._0x6d2383));!_0x350969&&await ensurePairPrerequisites();const _0x2d12ac=resolveGatewayAuth();if(_0x4c31d6[_0x1f4a68(-0x473,-0x2fa)]in _0x2d12ac)throw new Error(_0x2d12ac[_0x1f4a68(_0x2f54bd._0x239d0d,-0x1b5)]);const _0x555ec8=readFlag(_0x170630,_0x1f4a68(-0x1f,-0x1ce))??readFlag(_0x170630,'-s')??_0x4c31d6[_0x1f4a68(-_0x2f54bd._0x3c39ba,-0x8c)],_0x432333=readFlag(_0x170630,_0x4c31d6[_0x1ab0ce(_0x2f54bd._0x3579a6,_0x2f54bd._0x27f007)])??readFlag(_0x170630,'-n')??getDefaultBridgeDisplayName(),_0x5a09ec=_0x4c31d6[_0x1f4a68(0x171,0x6d)](readFlag,_0x170630,_0x1ab0ce(_0x2f54bd._0x27fcc5,0xd0)+'e'),_0x1df28e={};_0x1df28e[_0x1ab0ce(0x384,0x526)+'l']=_0x555ec8,_0x1df28e[_0x1ab0ce(0xa9,0x96)+_0x1ab0ce(_0x2f54bd._0x6c4a29,_0x2f54bd._0x553c53)]=_0x432333,_0x1df28e['gatewayT'+'oken']=_0x2d12ac[_0x1f4a68(0xbb,-_0x2f54bd._0x5734b7)],_0x1df28e[_0x1f4a68(-0x42,-0x1f2)+_0x1ab0ce(0x35,-0x13b)]=_0x2d12ac[_0x1f4a68(-0x46e,-_0x2f54bd._0x272daf)];const _0x18d14e=await pairGateway(_0x1df28e),_0x49de93=await writePairingQrPng(_0x18d14e,_0x5a09ec),_0x314301=getServiceStatus(),_0x10d226=decidePairServiceAction(_0x18d14e,_0x314301);if(_0x10d226===_0x1ab0ce(_0x2f54bd._0x102731,_0x2f54bd._0x457612)){_0x44f1a6?printJson(_0x4c31d6[_0x1ab0ce(0x2f5,0x3d8)](buildPairingJson,_0x18d14e,_0x49de93,_0x314301,'Backgrou'+'nd\x20servi'+'ce\x20alrea'+_0x1ab0ce(_0x2f54bd._0x3b2dba,_0x2f54bd._0x3ea81e)+'ng.\x20Left'+_0x1ab0ce(_0x2f54bd._0x28cd29,0x29f)+'ed.')):(printPairingInfo(_0x18d14e,_0x49de93),console[_0x1f4a68(-_0x2f54bd._0x13ff61,-_0x2f54bd._0x802a61)](_0x4c31d6[_0x1f4a68(-0x122,-0xa4)]),printServiceResult(null,_0x314301));return;}try{const _0x497148=_0x4c31d6[_0x1f4a68(-0x242,-0x273)](_0x10d226,_0x1ab0ce(_0x2f54bd._0x26d30a,-_0x2f54bd._0x1eff75))?installService():restartService(),_0x33e04a=_0x4c31d6['RfQmW'](_0x10d226,_0x1ab0ce(0xb0,0x157))?_0x4c31d6[_0x1ab0ce(0x301,_0x2f54bd._0x59996b)]:_0x18d14e[_0x1f4a68(-0x2cc,-_0x2f54bd._0x591d41)]===_0x1ab0ce(0x3d7,_0x2f54bd._0x16fc46)+'ed'?_0x1f4a68(-0x21f,-_0x2f54bd._0x4053eb)+'dentity\x20'+_0x1ab0ce(0x11b,-0x3b)+_0x1ab0ce(0x2d7,0x3d7)+_0x1f4a68(-_0x2f54bd._0x710d0a,-_0x2f54bd._0x1f48e5)+_0x1ab0ce(0xcf,0xd1)+'rvice\x20to'+_0x1f4a68(-0x12f,-_0x2f54bd._0x500460)+_0x1f4a68(-_0x2f54bd._0x46013b,-0x1f)+'iring.':'Backgrou'+_0x1f4a68(0x12c,0x21)+_0x1f4a68(0x181,-0xc)+_0x1f4a68(-_0x2f54bd._0x5cb466,-0x97)+_0x1f4a68(0x205,_0x2f54bd._0x587f1c)+'pped.\x20Re'+_0x1f4a68(-0xa1,-_0x2f54bd._0x1e0bdc)+_0x1f4a68(_0x2f54bd._0x2006a4,-0x106);_0x44f1a6?printJson(buildPairingJson(_0x18d14e,_0x49de93,_0x497148,_0x33e04a)):(printPairingInfo(_0x18d14e,_0x49de93),printServiceResult(_0x33e04a,_0x497148));}catch(_0x579207){console[_0x1ab0ce(0x198,-0x24)](_0x1ab0ce(0x172,_0x2f54bd._0x56a96c)+'succeede'+_0x1ab0ce(0x64,_0x2f54bd._0x1a54f6)+_0x1ab0ce(0x1f4,0x31b)+_0x1f4a68(-0x1f9,-0x77)+_0x1ab0ce(_0x2f54bd._0xd770f1,0xe0)+':\x20'+_0x4c31d6[_0x1ab0ce(0x3b9,0x394)](formatError,_0x579207)),console['error'](_0x1ab0ce(_0x2f54bd._0x408129,_0x2f54bd._0x442be5)+_0x1ab0ce(_0x2f54bd._0x313556,_0x2f54bd._0x1f4893)+'n\x20\x22clawk'+'et\x20insta'+_0x1ab0ce(0x1c7,_0x2f54bd._0x479f1e)+_0x1ab0ce(0x310,0x132)+_0x1ab0ce(0x92,0x232)+'ually.'),process[_0x1ab0ce(_0x2f54bd._0x168004,-0x55)]=0x1;}return;}if(_0x24cd5b===_0x1ab0ce(0x159,_0x2f54bd._0x3e892f)+_0x1f4a68(-0x20d,-_0x2f54bd._0x1e9845)){const _0x311f35=readFlag(_0x170630,_0x1ab0ce(0x7c,0x166)+'e'),_0xcb40c4=resolveGatewayAuth();if('error'in _0xcb40c4)throw new Error(_0xcb40c4[_0x1ab0ce(0x198,_0x2f54bd._0x431ee4)]);const _0x50b2ea={};_0x50b2ea[_0x1f4a68(-0xa1,-0x125)+'oken']=_0xcb40c4[_0x1f4a68(_0x2f54bd._0x12f2c7,-0xb2)],_0x50b2ea[_0x1f4a68(-_0x2f54bd._0x27a7a9,-0x1f2)+'assword']=_0xcb40c4[_0x1ab0ce(0x47,-_0x2f54bd._0x5cb466)];const _0xf39355=await refreshAccessCode(_0x50b2ea),_0x144621=await writePairingQrPng(_0xf39355,_0x311f35);_0x44f1a6?printJson(buildPairingJson(_0xf39355,_0x144621,getServiceStatus(),_0x1f4a68(-_0x2f54bd._0x40aafc,-_0x2f54bd._0x294e11)+'code\x20ref'+_0x1ab0ce(0x39f,_0x2f54bd._0x367a70))):printPairingInfo(_0xf39355,_0x144621);return;}if(_0x24cd5b===_0x4c31d6[_0x1ab0ce(0x391,0x424)]){const _0x417643=requirePairingConfig(),_0x5e0d9a=_0x4c31d6[_0x1ab0ce(_0x2f54bd._0x2a10c2,0x281)](installService);console[_0x1f4a68(-0x1f8,-0x1e5)]('Installe'+_0x1ab0ce(_0x2f54bd._0x5e6496,_0x2f54bd._0x36f7ce)+_0x1ab0ce(0x2cc,_0x2f54bd._0xce7e88)+_0x1f4a68(-0x211,-_0x2f54bd._0x5ecaff)+_0x1f4a68(-_0x2f54bd._0x3f467e,-_0x2f54bd._0x4d8618)+'\x20'+_0x417643[_0x1ab0ce(0x9b,0x2e)+'d']+'.'),printServiceResult(null,_0x5e0d9a);return;}if(_0x4c31d6[_0x1ab0ce(0xd7,-_0x2f54bd._0x44395a)](_0x24cd5b,_0x1ab0ce(0x7f,-0x3e))){const _0xf26c30=requirePairingConfig(),_0x51e403=restartService();console[_0x1f4a68(-_0x2f54bd._0x164da5,-_0x2f54bd._0x212238)](_0x1ab0ce(0x124,_0x2f54bd._0x11aa7d)+_0x1ab0ce(_0x2f54bd._0x5e6496,0x3c6)+_0x1ab0ce(_0x2f54bd._0x3945b6,0x43d)+_0x1ab0ce(0x6e,-0x12b)+_0x1f4a68(-_0x2f54bd._0x45219a,-_0x2f54bd._0x408129)+'\x20'+_0xf26c30[_0x1ab0ce(0x9b,_0x2f54bd._0x3c39ba)+'d']+'.'),printServiceResult(null,_0x51e403);return;}if(_0x24cd5b===_0x1ab0ce(_0x2f54bd._0x564292,_0x2f54bd._0x37d453)){const _0x4a1da8=stopService();console[_0x1ab0ce(0x168,0x124)](_0x1f4a68(-_0x2f54bd._0x1c0c20,0x67)+_0x1ab0ce(0x395,0x4c6)+_0x1f4a68(-_0x2f54bd._0x5543dc,_0x2f54bd._0x5441a8)+_0x1f4a68(0x79,-0x14f)),printServiceResult(null,_0x4a1da8);return;}if(_0x24cd5b===_0x1f4a68(-0x3e,-_0x2f54bd._0x22c2dd)+'l'){const _0x1eafb8=uninstallService();console[_0x1f4a68(-_0x2f54bd._0x1e7e54,-_0x2f54bd._0x3e833e)](_0x1ab0ce(0x226,_0x2f54bd._0x2ed4e3)+'backgrou'+_0x1f4a68(-_0x2f54bd._0x5ea83c,_0x2f54bd._0x1f157e)+'ce\x20regis'+_0x1ab0ce(0x26c,_0x2f54bd._0x5cae34)),_0x4c31d6[_0x1ab0ce(_0x2f54bd._0x4a4e8a,_0x2f54bd._0x526ef9)](printServiceResult,null,_0x1eafb8);return;}if(_0x24cd5b===_0x1f4a68(-0x22e,-0x204)){stopService(),_0x4c31d6['CYHMf'](deletePairingConfig),console[_0x1f4a68(-_0x2f54bd._0x2e885d,-0x1e5)]('Cleared\x20'+_0x1ab0ce(_0x2f54bd._0x1c26bf,_0x2f54bd._0xb517fa)+_0x1ab0ce(0x2bd,0x357)+_0x4c31d6[_0x1ab0ce(0xc7,0x230)](getPairingConfigPath));return;}function _0x1ab0ce(_0x2e9699,_0x49aa79){return _0x5338aa(_0x2e9699- -0xf2,_0x49aa79);}if(_0x24cd5b==='status'){printStatus();return;}if(_0x24cd5b===_0x1ab0ce(_0x2f54bd._0x1d21f7,-_0x2f54bd._0xff61c6)){const _0x1a9ee5=Number(readFlag(_0x170630,_0x1ab0ce(0x28,-_0x2f54bd._0x47d6d9))??'200'),_0x55df87=parseLookbackToMs(readFlag(_0x170630,_0x1ab0ce(_0x2f54bd._0x2c3596,0x1c1))??readFlag(_0x170630,'-l')),_0x2ee00e=_0x4c31d6[_0x1f4a68(-0xcf,0x66)](readRecentCliLogs,{'lines':_0x1a9ee5,'lastMs':_0x55df87,'includeErrorLog':hasFlag(_0x170630,_0x4c31d6[_0x1f4a68(0xae,0x75)])});if(_0x44f1a6){const _0x3fde5e={};_0x3fde5e['ok']=!![],_0x3fde5e[_0x1f4a68(-_0x2f54bd._0x5b40d4,-0x14d)]=_0x2ee00e,printJson(_0x3fde5e);}else _0x2ee00e[_0x1f4a68(-0x1bd,-0x9)]===0x0?console[_0x1ab0ce(0x168,_0x2f54bd._0x2b97a5)](_0x1f4a68(-_0x2f54bd._0x1e06ed,-_0x2f54bd._0x29856f)+_0x1f4a68(-0x16e,-_0x2f54bd._0x159cc9)+_0x1ab0ce(_0x2f54bd._0x211764,_0x2f54bd._0x372f08)+_0x1ab0ce(_0x2f54bd._0x40489d,_0x2f54bd._0x5d321d)):console['log'](_0x2ee00e['join']('\x0a'));return;}if(_0x24cd5b===_0x4c31d6[_0x1f4a68(0x90,_0x2f54bd._0x41f579)]){const _0x103e98=await _0x4c31d6[_0x1f4a68(-_0x2f54bd._0x5738c5,-0x1a8)](buildDoctorReport);_0x44f1a6?printJson(_0x103e98):printDoctorReport(_0x103e98);return;}if(_0x24cd5b===_0x1ab0ce(0x361,_0x2f54bd._0x36b40c)){const _0x1d8e03=requirePairingConfig(),_0x45468b=resolveGatewayUrl(_0x4c31d6[_0x1ab0ce(_0x2f54bd._0x4a4e8a,0x3ee)](readFlag,_0x170630,_0x1ab0ce(0x329,0x2bf)+'y-url')??readFlag(_0x170630,'-g')),_0x53206f=_0x1cb03f=>{const _0x4a11bc={_0x4bb6b1:0x14f};function _0x5b80be(_0x5c02ce,_0x48e84d){return _0x1ab0ce(_0x5c02ce-_0x4a11bc._0x4bb6b1,_0x48e84d);}function _0x4ab300(_0x3126aa,_0x4878ff){return _0x1ab0ce(_0x4878ff-0x66,_0x3126aa);}console[_0x5b80be(0x2b7,_0xd51cd0._0x1e470d)]('['+Date[_0x4ab300(0x150,0x275)]()+']\x20'+_0x1cb03f);};if(!_0x5ba2a2){const _0x1e5143=_0x4c31d6[_0x1ab0ce(0x15e,_0x2f54bd._0xcc228a)]['split']('|');let _0x221b36=0x0;while(!![]){switch(_0x1e5143[_0x221b36++]){case'0':console[_0x1ab0ce(0x168,0x242)]('Instance'+_0x1ab0ce(0x38b,_0x2f54bd._0x4363e9)+_0x1d8e03[_0x1f4a68(-0x22d,-_0x2f54bd._0x58ad5a)+'Id']);continue;case'1':console[_0x1ab0ce(0x168,0x17)]('');continue;case'2':console[_0x1f4a68(-_0x2f54bd._0x468778,-0x1e5)]('Gateway\x20'+_0x1f4a68(-0x44e,-0x2ff)+_0x45468b);continue;case'3':console[_0x1f4a68(-0x10e,-_0x2f54bd._0x11fc3b)]('');continue;case'4':console[_0x1ab0ce(0x168,_0x2f54bd._0x581a1d)](_0x1f4a68(-0x2e0,-0x18b)+'ID:\x20'+_0x1d8e03[_0x1f4a68(-_0x2f54bd._0x27cfec,-0x2b2)+'d']);continue;case'5':console[_0x1ab0ce(_0x2f54bd._0x6d563f,_0x2f54bd._0x11aa7d)](_0x1ab0ce(0xf8,-0x98)+'\x20bridge\x20'+_0x1f4a68(_0x2f54bd._0x4d1110,_0x2f54bd._0xa9c6ad)+_0x1f4a68(0x7f,-_0x2f54bd._0x414c8f)+_0x1f4a68(-0x18c,-_0x2f54bd._0x284710)+_0x1f4a68(-_0x2f54bd._0x30721b,-_0x2f54bd._0x5a4519));continue;}break;}}else _0x4c31d6[_0x1f4a68(-0xbc,_0x2f54bd._0x2e95ab)](_0x53206f,_0x1ab0ce(_0x2f54bd._0x4c945e,0x2d4)+_0x1f4a68(-_0x2f54bd._0x63750e,-_0x2f54bd._0x530a74)+_0x1f4a68(-0x204,-_0x2f54bd._0xd77291)+'\x20runtime'+_0x1ab0ce(0x277,0x19b)+'eway\x20'+_0x1d8e03[_0x1f4a68(-0x30f,-0x2b2)+'d']);_0x5ba2a2&&_0x4c31d6[_0x1f4a68(-_0x2f54bd._0x5ed945,-0x15b)](writeServiceState);const _0x4f853e=new BridgeRuntime({'config':_0x1d8e03,'gatewayUrl':_0x45468b,'onLog':_0x35be64=>{const _0x48d101={_0x5220d6:0x256};function _0x9d8289(_0x3b2628,_0x45b7f7){return _0x1f4a68(_0x3b2628,_0x45b7f7-_0x48d101._0x5220d6);}_0x4c31d6[_0x9d8289(0x2c0,_0x3605a6._0x2cf263)](_0x53206f,'[clawket'+']\x20'+_0x35be64);},'onStatus':_0x21a2e4=>{if(_0x21a2e4['lastErro'+'r']){_0x53206f('[status]'+_0x40e430(0x33f,0x29c)+(_0x21a2e4[_0x40e430(_0x483eb7._0x5420b9,0x4b4)+_0x40e430(_0x483eb7._0x4962aa,0x36c)]?'up':_0x4c31d6[_0x2c3590(_0x483eb7._0x4eb391,_0x483eb7._0x23e2f8)])+('\x20gateway'+'=')+(_0x21a2e4[_0x2c3590(-_0x483eb7._0xc96bf1,-_0x483eb7._0x255a6a)+_0x2c3590(-_0x483eb7._0x1ca958,-0x1e5)]?'up':'down')+('\x20clients'+'=')+_0x21a2e4['clientCo'+_0x2c3590(0x1f,_0x483eb7._0x53f282)]+_0x2c3590(-0x279,-0x1a6)+_0x21a2e4[_0x2c3590(_0x483eb7._0x2e5a64,0x18c)+'r']);return;}function _0x40e430(_0xb5051e,_0xdb23a7){return _0x1ab0ce(_0xdb23a7-_0x27df73._0x4c7125,_0xb5051e);}function _0x2c3590(_0x137ec5,_0x493755){return _0x1ab0ce(_0x137ec5- -0x2a0,_0x493755);}_0x53206f('[status]'+'\x20relay='+(_0x21a2e4[_0x40e430(_0x483eb7._0xd7e350,0x4b4)+'nected']?'up':_0x2c3590(-_0x483eb7._0x2eaa95,-0x3b3))+(_0x2c3590(-_0x483eb7._0x265de8,-0x1af)+'=')+(_0x21a2e4[_0x2c3590(-_0x483eb7._0xc96bf1,-0x3ef)+_0x2c3590(-0x27c,-_0x483eb7._0x5df0c7)]?'up':_0x40e430(0x2a6,0x119))+(_0x2c3590(0x58,0x67)+'=')+_0x21a2e4[_0x2c3590(_0x483eb7._0x1efd48,-0xb0)+_0x40e430(0x350,_0x483eb7._0x24a836)]);},'onPendingPairRequest':_0x1dd5df=>{function _0xfe1e18(_0x348982,_0x2bd9fe){return _0x1f4a68(_0x348982,_0x2bd9fe-_0x213437._0x23339b);}function _0x5e8ee2(_0x5f2785,_0x44280f){return _0x1f4a68(_0x5f2785,_0x44280f-0x3a9);}_0x53206f('[pair-re'+_0xfe1e18(0x594,0x429)+_0x5e8ee2(0x292,0x22d)+'='+_0x1dd5df['requestI'+'d']+(_0x5e8ee2(0x343,0x340)+'d=')+(_0x1dd5df[_0x5e8ee2(-0x8c,0x11f)]||_0x4c31d6[_0xfe1e18(0x839,_0x25ee52._0x59e350)])+_0xfe1e18(0x52e,_0x25ee52._0x1b30d2)+(_0x1dd5df[_0x5e8ee2(_0x25ee52._0x46a7cd,0x105)+'ame']??_0x5e8ee2(_0x25ee52._0x26d7e5,_0x25ee52._0x255d3f)+'>'));}});_0x4f853e[_0x1ab0ce(0x18a,_0x2f54bd._0x5691d2)]();const _0x4dd00c=async()=>{process[_0x406dce(0x42d,0x5b4)](_0x72b4ee(0x1d4,_0x26d747._0x3907ed),_0x4dd00c);function _0x72b4ee(_0x9186c7,_0x2105c0){return _0x1ab0ce(_0x2105c0-0x131,_0x9186c7);}process['off']('SIGTERM',_0x4dd00c),await _0x4f853e[_0x406dce(0x48b,0x4b4)]();function _0x406dce(_0x4d8a2a,_0x1540ee){return _0x1ab0ce(_0x1540ee-_0x4717b0._0xcc61af,_0x4d8a2a);}_0x5ba2a2&&clearServiceState(process[_0x406dce(_0x26d747._0x3bf8d7,_0x26d747._0x22597e)]),process[_0x406dce(_0x26d747._0x46336b,_0x26d747._0x5afb89)](0x0);};process['on'](_0x1ab0ce(0x22f,0x2a0),_0x4dd00c),process['on'](_0x1f4a68(-_0x2f54bd._0x392e26,-0x22e),_0x4dd00c),await new Promise(()=>{});}printHelp();}function printPairingInfo(_0x36c920,_0x3afe82){const _0x438f27={_0xb4e7cc:0x349,_0x122f3e:0x19c,_0x48d02b:0x393,_0x5a1493:0x1ef,_0x265da7:0x3e6,_0x2e31e5:0x4e2,_0x2dc152:0x4c9,_0x211014:0x2d9,_0x2033ae:0x334,_0x39cbb3:0x3ba,_0x5259bd:0x197,_0x500727:0x195,_0x22cc9f:0x3c6,_0x3cc21f:0x467,_0x294cdb:0x53c,_0x5dab18:0x145,_0x582591:0x20c,_0x356867:0x25f,_0x516bf3:0x79,_0x13c961:0x15e,_0x2cdda1:0x41a,_0x3f4543:0x528,_0x171ba6:0x261,_0x411a2b:0x286,_0x2afe28:0x273,_0x582e7c:0x208,_0x15b6db:0x589},_0x58acfb={_0x16c257:0x7f},_0x5281a8={};function _0x5399cb(_0x2c15d2,_0x2f7ca7){return _0x5338aa(_0x2f7ca7-0x2c,_0x2c15d2);}_0x5281a8[_0x5399cb(_0x438f27._0xb4e7cc,_0x438f27._0x122f3e)]=function(_0x22c128,_0x13575e){return _0x22c128===_0x13575e;},_0x5281a8[_0x8f6225(0x1b1,0x4a)]=_0x5399cb(_0x438f27._0x48d02b,0x283)+'is\x20QR\x20co'+'de\x20in\x20th'+_0x5399cb(0x412,0x27a)+'t\x20app:\x0a';const _0x199b52=_0x5281a8;_0x199b52[_0x8f6225(_0x438f27._0x5a1493,0x4c)](_0x36c920[_0x8f6225(0x354,_0x438f27._0x265da7)],_0x8f6225(_0x438f27._0x2e31e5,_0x438f27._0x2dc152)+'d')&&console[_0x8f6225(_0x438f27._0x211014,0x2d0)](_0x8f6225(_0x438f27._0x2033ae,0x39d)+_0x5399cb(_0x438f27._0x39cbb3,0x3c9)+_0x8f6225(0x3eb,0x491)+_0x8f6225(_0x438f27._0x5259bd,0x29e)+'\x20the\x20pai'+_0x5399cb(0x31b,_0x438f27._0x500727)+'e.');console[_0x8f6225(0x2d9,_0x438f27._0x22cc9f)]('Gateway\x20'+_0x8f6225(_0x438f27._0x3cc21f,_0x438f27._0x294cdb)+_0x36c920[_0x8f6225(0x294,_0x438f27._0x5dab18)][_0x8f6225(_0x438f27._0x582591,_0x438f27._0x356867)+'d']),console['log'](_0x199b52[_0x5399cb(_0x438f27._0x516bf3,_0x438f27._0x13c961)]);const _0x5de285={};_0x5de285[_0x5399cb(_0x438f27._0x2cdda1,0x3d3)]=!![];function _0x8f6225(_0x46a8ac,_0x17ccf6){return _0x5338aa(_0x46a8ac-_0x58acfb._0x16c257,_0x17ccf6);}_0x2f1765[_0x8f6225(_0x438f27._0x3f4543,0x372)](_0x36c920[_0x8f6225(_0x438f27._0x171ba6,0x2bc)+'d'],_0x5de285),console[_0x5399cb(0xd9,_0x438f27._0x411a2b)]('Expires:'+'\x20'+formatLocalTime(_0x36c920[_0x5399cb(0x2be,0x1e2)+_0x8f6225(0x249,0xda)+_0x8f6225(0x3ff,_0x438f27._0x2afe28)])),console[_0x8f6225(0x2d9,_0x438f27._0x582e7c)](_0x8f6225(0x4b3,_0x438f27._0x15b6db)+':\x20'+_0x3afe82);}function printStatus(){const _0xc7aaf={_0x2e6a6f:0x3ab,_0x2b9f4f:0x392,_0x58810f:0x2a9,_0x22987f:0x25b,_0x5d9361:0x3f4,_0x4918e8:0x4c1,_0x2d6766:0x4d5,_0x2b124b:0x43c,_0x8e9d1a:0x4ab,_0x14a664:0x55f,_0xa46afa:0x51b,_0x910508:0x46b,_0x1cb5ef:0x4ce,_0x21e5d1:0x32d,_0x46bb8d:0x16f,_0x34c5b0:0x5d,_0x4ed3bf:0x38d,_0x58b73a:0x273,_0x4798a1:0x4d2,_0x5ac7ce:0x668,_0x5d94fb:0x34f,_0x48c939:0x4f0,_0x119cb2:0x2bc,_0x585795:0x47d,_0x22a028:0x270,_0x3028a2:0x458,_0x3d621f:0x414,_0x45956a:0x4d7,_0x1fa1b7:0x33f,_0x29cf9a:0x138,_0xbf6e63:0x6ad,_0x517bd0:0x38d,_0x19686f:0x53f,_0x145550:0x251,_0x59c664:0x40d,_0x33b1b8:0x405,_0x981916:0x401,_0x363ce2:0x21b},_0x2cd322={_0x342cee:0x252};function _0x234d8e(_0x341fec,_0x1b4c66){return _0x33cded(_0x1b4c66,_0x341fec- -0x16e);}const _0x5353b0={'FxsZf':function(_0x25bb80){return _0x25bb80();},'CCgwL':function(_0x56d1a4){return _0x56d1a4();},'kSwEV':'4|1|0|2|'+'3','dTdbE':'installe'+'d'},_0x5602a3=readPairingConfig(),_0x120f00=_0x5353b0[_0x2ccb26(_0xc7aaf._0x2e6a6f,0x498)](getServiceStatus),{logPath:_0x3d907b,errorLogPath:_0x5db800}=_0x5353b0[_0x2ccb26(0x1c5,_0xc7aaf._0x2b9f4f)](getServicePaths),_0x4d27dc=readCliVersion();console[_0x2ccb26(_0xc7aaf._0x58810f,0x2b0)](_0x2ccb26(0x2c3,_0xc7aaf._0x22987f)+'\x20'+_0x4d27dc);if(!_0x5602a3)console['log'](_0x234d8e(0x4a4,0x2f9)+'not\x20pair'+_0x234d8e(0x456,_0xc7aaf._0x5d9361)+getPairingConfigPath()+')');else{const _0x23aa45=_0x5353b0['kSwEV'][_0x2ccb26(_0xc7aaf._0x4918e8,0x420)]('|');let _0x560273=0x0;while(!![]){switch(_0x23aa45[_0x560273++]){case'0':console[_0x234d8e(0x38d,_0xc7aaf._0x2d6766)](_0x234d8e(_0xc7aaf._0x2b124b,_0xc7aaf._0x8e9d1a)+':\x20'+_0x5602a3[_0x2ccb26(0x342,0x443)+'Id']);continue;case'1':console[_0x2ccb26(_0xc7aaf._0x58810f,0x2a7)](_0x234d8e(0x3e7,_0xc7aaf._0x14a664)+_0x234d8e(_0xc7aaf._0xa46afa,0x38e)+_0x5602a3['gatewayI'+'d']);continue;case'2':console[_0x2ccb26(_0xc7aaf._0x58810f,_0xc7aaf._0x910508)]('Server\x20U'+_0x234d8e(0x317,_0xc7aaf._0x1cb5ef)+_0x5602a3[_0x2ccb26(0x4c5,_0xc7aaf._0x21e5d1)+'l']);continue;case'3':console['log']('Name:\x20'+(_0x5602a3[_0x2ccb26(0x1ea,0x342)+_0x2ccb26(_0xc7aaf._0x46bb8d,_0xc7aaf._0x34c5b0)]??'-'));continue;case'4':console[_0x234d8e(_0xc7aaf._0x4ed3bf,_0xc7aaf._0x58b73a)]('Config:\x20'+_0x234d8e(_0xc7aaf._0x4798a1,_0xc7aaf._0x5ac7ce));continue;}break;}}console[_0x2ccb26(_0xc7aaf._0x58810f,0x101)](_0x234d8e(_0xc7aaf._0x5d94fb,_0xc7aaf._0x48c939)+'\x20'+resolveGatewayUrl()),console[_0x234d8e(_0xc7aaf._0x4ed3bf,0x2e2)](_0x2ccb26(0x317,0x3bd)+'\x20'+(_0x120f00[_0x234d8e(_0xc7aaf._0x119cb2,_0xc7aaf._0x585795)+'d']?_0x5353b0[_0x234d8e(0x485,0x4f9)]:_0x234d8e(0x40e,_0xc7aaf._0x22a028)+'alled')+'\x20('+_0x120f00[_0x234d8e(_0xc7aaf._0x3028a2,0x5e8)]+')'),console['log'](_0x2ccb26(_0xc7aaf._0x3d621f,_0xc7aaf._0x45956a)+'\x20'+(_0x120f00[_0x234d8e(0x2cb,_0xc7aaf._0x1fa1b7)]?_0x2ccb26(0x215,_0xc7aaf._0x29cf9a):'no')),console['log']('Path:\x20'+(_0x120f00[_0x234d8e(0x3e5,0x2b3)+'ath']||'-'));function _0x2ccb26(_0x4e3468,_0x57061a){return _0x33cded(_0x57061a,_0x4e3468- -_0x2cd322._0x342cee);}console['log'](_0x234d8e(0x548,_0xc7aaf._0xbf6e63)+_0x3d907b),console[_0x234d8e(_0xc7aaf._0x517bd0,_0xc7aaf._0x19686f)](_0x234d8e(_0xc7aaf._0x145550,_0xc7aaf._0x59c664)+_0x2ccb26(_0xc7aaf._0x33b1b8,_0xc7aaf._0x981916)+_0x5db800),!_0x5602a3&&(process[_0x234d8e(0x2c1,_0xc7aaf._0x363ce2)]=0x1);}function printServiceResult(_0xbc6b23,_0x29032d){const _0x3e5672={_0x329956:0x235,_0x489106:0x38b,_0x27491b:0x1e6,_0x59363f:0x1ea,_0x7c72a7:0x2c4,_0x3bd736:0x89,_0x52c4ec:0x224,_0x28d183:0x10c,_0x2767b0:0x16d},_0x49a9ed={_0x34a012:0x71a},_0x56c44b={_0xe93819:0x65f},_0x50324c={};_0x50324c['sWyMl']=_0x379554(-_0x3e5672._0x329956,-0x82)+_0x19f30d(-0x29a,-_0x3e5672._0x489106)+'ng';function _0x379554(_0x4f023d,_0x3b2872){return _0x33cded(_0x3b2872,_0x4f023d- -_0x56c44b._0xe93819);}const _0x3414df=_0x50324c;function _0x19f30d(_0x30ff24,_0x23778b){return _0x33cded(_0x23778b,_0x30ff24- -_0x49a9ed._0x34a012);}_0xbc6b23&&console['log'](_0xbc6b23),console[_0x19f30d(-0x21f,-0x1f8)]('Service:'+'\x20'+(_0x29032d[_0x379554(-_0x3e5672._0x329956,-_0x3e5672._0x27491b)+'d']?_0x29032d['running']?_0x3414df[_0x19f30d(-0xbf,-_0x3e5672._0x59363f)]:_0x19f30d(-0x2f0,-_0x3e5672._0x7c72a7)+_0x19f30d(-0x84,_0x3e5672._0x3bd736)+'ed':_0x379554(-0xe3,-0x177)+'alled')),console[_0x19f30d(-0x21f,-_0x3e5672._0x52c4ec)]('Service\x20'+'path:\x20'+(_0x29032d[_0x379554(-_0x3e5672._0x28d183,-_0x3e5672._0x2767b0)+_0x19f30d(-0x51,-0x37)]||'-'));}function printDoctorReport(_0x35de94){const _0x360fa9={_0xc0939b:0x45,_0x4025b7:0xfc,_0x95d6c7:0xfa,_0x28daa4:0x4f,_0x51189d:0x1ec,_0x3d3589:0x271,_0x2f88f5:0x25c,_0x1b58f4:0x266,_0x586184:0xc1,_0x25990d:0x12d,_0x6f30a2:0x32,_0x3989f8:0x1a9,_0x4e1942:0x16,_0x54cce9:0x1e6,_0x1c9efb:0x4ff,_0x37cbc8:0x19b,_0xf3164c:0x302,_0x5c9885:0x285,_0x924035:0x37a,_0x3abe01:0x25a,_0x4764da:0x28a,_0x3174ab:0x32,_0x2cad40:0x138,_0x2d229b:0x57c,_0x5139c6:0x443,_0x386740:0x32,_0x1cd377:0x1f0,_0x13f14d:0x21,_0xdc2ca7:0x4,_0x100115:0x459,_0x2338c3:0xef,_0x48222a:0x16f,_0x192ff0:0x30d,_0x243062:0x28,_0x20f309:0x2ae,_0x33a6cc:0x270,_0x20163c:0x212,_0x22a94c:0x286,_0x55b5ef:0x14b,_0x5d8538:0x3e0,_0x28253d:0x2c2,_0xda82b0:0xb4,_0x261a2f:0x20c,_0x41b429:0x1f6,_0x226bdb:0x22b,_0xfd1053:0x1f6,_0x196658:0x364,_0x4aefe4:0x14e,_0x3552dc:0x237,_0xc0fd8d:0x307,_0x2e3fa1:0xf9,_0x38ce4e:0xe0,_0x50335c:0x32,_0x2b222c:0x24e,_0x457e27:0x7f,_0xdb6a90:0x201,_0x3c8ec3:0x3b6,_0x3a5965:0x1ac,_0x53336f:0x3a5,_0x3a756e:0x2e4,_0x5e7f32:0x15c,_0x21e8a5:0x110,_0x1209bb:0x330,_0xfe6f7:0x28a},_0x4db76d={_0x2c9a36:0x52d},_0x2cda11={};_0x2cda11[_0x1d19ad(-0x7,-0x37)]=_0x1d19ad(_0x360fa9._0xc0939b,-_0x360fa9._0x4025b7),_0x2cda11[_0x1d19ad(0x4,_0x360fa9._0x95d6c7)]=_0x1d19ad(0x216,_0x360fa9._0x28daa4)+_0x1d19ad(-0x75,-0xec);const _0x4cd868=_0x2cda11;function _0x1d19ad(_0x3fffe8,_0x5aa9fe){return _0x33cded(_0x3fffe8,_0x5aa9fe- -_0x4db76d._0x2c9a36);}function _0x3137aa(_0x1d5cae,_0x325399){return _0x33cded(_0x1d5cae,_0x325399- -0x271);}const _0x3454f0=(_0x3137aa(0x299,_0x360fa9._0x51189d)+_0x3137aa(0xa0,_0x360fa9._0x3d3589)+_0x3137aa(_0x360fa9._0x2f88f5,_0x360fa9._0x1b58f4)+_0x3137aa(0x59e,0x3e0)+_0x1d19ad(_0x360fa9._0x586184,-0xcf))['split']('|');let _0x35ec4c=0x0;while(!![]){switch(_0x3454f0[_0x35ec4c++]){case'0':console[_0x1d19ad(-_0x360fa9._0x25990d,-_0x360fa9._0x6f30a2)]('Service\x20'+_0x1d19ad(0x92,_0x360fa9._0x3989f8)+(_0x35de94[_0x1d19ad(_0x360fa9._0x4e1942,0x26)+'ath']||'-'));continue;case'1':console[_0x3137aa(_0x360fa9._0x54cce9,0x28a)]('OpenClaw'+'\x20dir:\x20'+_0x35de94[_0x1d19ad(0x1de,0xce)+_0x3137aa(0x354,0x1ad)+'r']);continue;case'2':console[_0x1d19ad(-0x99,-0x32)]('OpenClaw'+'\x20config:'+'\x20'+(_0x35de94['openclaw'+_0x3137aa(0x4cc,_0x360fa9._0x1c9efb)+_0x3137aa(_0x360fa9._0x37cbc8,_0x360fa9._0xf3164c)]?_0x4cd868[_0x3137aa(0x281,_0x360fa9._0x5c9885)]:_0x3137aa(_0x360fa9._0x924035,0x4bf)));continue;case'3':console[_0x3137aa(_0x360fa9._0x3abe01,_0x360fa9._0x4764da)]('Paired:\x20'+(_0x35de94[_0x3137aa(0x27d,0x3cf)]?_0x3137aa(0x33a,0x1f6):'no'));continue;case'4':console[_0x1d19ad(-0xce,-_0x360fa9._0x3174ab)](_0x3137aa(0x492,0x339)+'\x20ID:\x20'+(_0x35de94['instance'+'Id']??'-'));continue;case'5':console[_0x1d19ad(-_0x360fa9._0x2cad40,-0x32)]('Relay\x20UR'+_0x1d19ad(-0x50,0x80)+(_0x35de94[_0x3137aa(_0x360fa9._0x2d229b,_0x360fa9._0x5139c6)]??'-'));continue;case'6':console[_0x1d19ad(-0x136,-_0x360fa9._0x386740)](_0x1d19ad(0x1a1,0x19d)+_0x1d19ad(0x63,0x92)+_0x35de94[_0x1d19ad(_0x360fa9._0x1cd377,0xce)+_0x1d19ad(0x142,-_0x360fa9._0x13f14d)]);continue;case'7':console[_0x1d19ad(-_0x360fa9._0xdc2ca7,-0x32)](_0x3137aa(0x2c2,_0x360fa9._0x100115)+_0x3137aa(_0x360fa9._0x2338c3,_0x360fa9._0x48222a)+(_0x35de94['openclaw'+'TokenFou'+'nd']?_0x3137aa(_0x360fa9._0x192ff0,0x1c0):'missing'));continue;case'8':console[_0x1d19ad(0x4f,-_0x360fa9._0x6f30a2)]('Error\x20lo'+'g\x20path:\x20'+_0x35de94['errorLog'+_0x3137aa(0x1f5,0x3a6)]);continue;case'9':console['log'](_0x1d19ad(0x1cf,_0x360fa9._0x243062)+'URL:\x20'+_0x35de94[_0x3137aa(_0x360fa9._0x20f309,_0x360fa9._0x33a6cc)+'ewayUrl']);continue;case'10':console[_0x1d19ad(-_0x360fa9._0x20163c,-0x32)](_0x1d19ad(_0x360fa9._0x22a94c,_0x360fa9._0x55b5ef)+_0x3137aa(_0x360fa9._0x5d8538,_0x360fa9._0x28253d)+'\x20'+(_0x35de94[_0x3137aa(_0x360fa9._0xda82b0,0x195)+'unning']?_0x3137aa(_0x360fa9._0x261a2f,_0x360fa9._0x41b429):'no'));continue;case'11':console[_0x3137aa(_0x360fa9._0x226bdb,0x28a)]('Gateway\x20'+_0x3137aa(_0x360fa9._0xfd1053,_0x360fa9._0x196658)+_0x1d19ad(_0x360fa9._0x4aefe4,_0x360fa9._0x3552dc)+(_0x35de94['localGat'+_0x3137aa(0x4a5,_0x360fa9._0xc0fd8d)+_0x1d19ad(-0x53,-_0x360fa9._0x2e3fa1)]?_0x3137aa(0x314,0x1f6):'no'));continue;case'12':console[_0x1d19ad(_0x360fa9._0x38ce4e,-_0x360fa9._0x50335c)](_0x3137aa(_0x360fa9._0x2b222c,0x2f8)+'\x20'+(_0x35de94[_0x1d19ad(_0x360fa9._0x457e27,0x17)+'nstalled']?'installe'+'d':_0x4cd868[_0x3137aa(_0x360fa9._0xdb6a90,_0x360fa9._0x3c8ec3)])+'\x20('+_0x35de94[_0x1d19ad(0xe3,_0x360fa9._0x3a5965)+'ethod']+')');continue;case'13':console['log']('Server\x20U'+'RL:\x20'+(_0x35de94[_0x1d19ad(_0x360fa9._0x53336f,0x1ea)+'l']??'-'));continue;case'14':console[_0x3137aa(0x23b,0x28a)](_0x3137aa(0x4c7,_0x360fa9._0x3a756e)+_0x1d19ad(0x70,_0x360fa9._0x5e7f32)+(_0x35de94[_0x3137aa(_0x360fa9._0x21e8a5,0x1bd)+'d']??'-'));continue;case'15':console[_0x3137aa(_0x360fa9._0x1209bb,_0x360fa9._0xfe6f7)](_0x1d19ad(0x92,0x155)+':\x20'+_0x35de94[_0x1d19ad(-0x118,0x6c)]);continue;}break;}}function requirePairingConfig(){const _0x3914a1={_0x36f79e:0x3f3,_0x28b581:0x132,_0x101a94:0x89,_0x2df9ad:0x262,_0x4a9325:0x35,_0x1ab5ff:0x437},_0x39c0c9={_0x21d1d4:0x262};function _0x1611d3(_0x4d8ead,_0x3c399e){return _0x5338aa(_0x4d8ead- -0x9a,_0x3c399e);}const _0x487a2c=readPairingConfig();function _0x5d8451(_0x387a7f,_0x2cf41c){return _0x5338aa(_0x387a7f- -_0x39c0c9._0x21d1d4,_0x2cf41c);}return!_0x487a2c&&(console['error'](_0x1611d3(0x3bf,_0x3914a1._0x36f79e)+_0x5d8451(0x36,_0x3914a1._0x28b581)+_0x1611d3(0x13f,-_0x3914a1._0x101a94)+_0x1611d3(_0x3914a1._0x2df9ad,0x416)+_0x5d8451(-0x45,-0x1c7)+_0x5d8451(0x11b,_0x3914a1._0x4a9325)+_0x1611d3(_0x3914a1._0x1ab5ff,0x61a)+getPairingConfigPath()),process[_0x1611d3(0x28c,0x468)](0x1)),_0x487a2c;}function readFlag(_0x16c8cd,_0x334ea6){const _0x16a2e6={_0x335def:0x3b2,_0x5aedb1:0x343,_0xa1ff00:0x4a9,_0x48dfcf:0x37b,_0x3a1b1a:0x4db,_0x3717d4:0x42d},_0x33c3aa={_0x3f5196:0x1cf},_0x18c08a={_0x58c042:0x304},_0x46579f={};_0x46579f[_0x3623d4(_0x16a2e6._0x335def,_0x16a2e6._0x5aedb1)]=function(_0x52b78d,_0x54b71e){return _0x52b78d+_0x54b71e;};const _0xa707a1=_0x46579f;function _0x3623d4(_0x12be1b,_0x5d81a2){return _0x33cded(_0x12be1b,_0x5d81a2- -_0x18c08a._0x58c042);}const _0x5d0c37=_0x16c8cd[_0x3623d4(_0x16a2e6._0xa1ff00,_0x16a2e6._0x48dfcf)](_0x334ea6);if(_0x5d0c37<0x0)return null;function _0x368fed(_0x358964,_0x4cbd17){return _0x33cded(_0x4cbd17,_0x358964- -_0x33c3aa._0x3f5196);}const _0x6d5ff=_0x16c8cd[_0xa707a1['leMXt'](_0x5d0c37,0x1)];return _0x6d5ff?.[_0x368fed(0x4db,0x627)]()?_0x6d5ff[_0x368fed(_0x16a2e6._0x3a1b1a,_0x16a2e6._0x3717d4)]():null;}function _0x5e63(){const _0x406944=['yxjNDG','tdOG','BJOG','ifbYzxnZiem','Dgv3yxK','q2XP','tNnczNq','CMvSyxLtzwm','Aw5ZDc0','zw5HyMXL','mJq2mtyZmMnACxnnCa','lwPZB25D','pLbYB2DYyw0','uMvTB3zLzca','pL0GwY0Tzxi','z2f0zxDHEvq','CMvHzhLtDge','pc9ZDhjPBMC','s05dse0','ig1LzgLHoIa','BwvKAwfeAxi','rg9vDMK','u0Lhsu5u','rLjUBNy','zwqGka','zerLDMLJzxm','Bwv0Ag9K','zxHPDa','y29UBMvJDgu','q2XHD2TLDei','yMLUyxj5','phn0CMLUzZ4','ywDLBNrZ','Bgf1BMnOy3q','A2LUz0rPCMu','CMvWBgfJzq','phvUA25VD24','C3rVCa','l1bjra','y2HLzcbTB2q','ywLYlNjLC28','CMvHy2HHyMW','u1nyte4','rfrczK0','AwyGwYaTEca','Bgf5q29UDhi','AxqU','BNLIzMS','BMqU','CgXHDgzVCM0','ywnRz3jVDw4','ww91ignHBIa','zcbZAw5JzuC','zMLSDgvY','yw50ihrVigi','CxvLC3q','BNvxs3K','DfrPBwvVDxq','Dg9ju09tDhi','CMvQzwn0uge','BgKTzxjYB3i','CxvLCNK','z2f0zxDHEuG','zgLZy29UBMu','BMvJDgLUzW','C29YDa','yNjPzgDLlwm','vK9WrNG','z2vZ','zxHLy1bHDgG','zwqGyMfJA2C','zfrKyKu','EwjwENa','C3rVChbLza','ls1Syxn0','cIaGpc9HCNi','je5prevFuee','lNbSAxn0','DwvZDeLKpq','B3bLBMnSyxC','CM9Wzxj0EuW','rNHZwMy','CMvTB3rLsxa','DhjHDgLVBI4','yxrLD2f5t3a','mtCZmtC1qK9kwxzO','DhjSk0mGDg8','Bwf4ugf5Bg8','C3rHBgXHDgK','zwqU','Aw1Hz2uVCg4','ywLYlMfWChi','r3jLq3O','zwXHEq','igzVCIbNyxq','A2LSBa','yxvSDc50yxi','ywLYzwqUifi','ugf0AdWVA2u','Dw5ZDxbWB3i','BwfYA1bHAxi','zxvLzcb1BNq','q29UzMLNoIa','vw5HyMXLihq','tw9IAwXLiem','zw1HBMqGzhi','vgHPCYbICMK','ugf0Aa','BNPqzgC','ignVBMzPzYa','Dg9tDhjPBMC','u3HIB2m','yxKGCMvJB24','BMvJDgvK','BMzPzYbWyxq','A2LUza','zM9YD2fYze8','C0f0','vM1xwvi','C2vYDMvYidW','rwfvr24','CNvUDgLTzsa','CNvUifSTlwC','uvLgr28','zxrcCMLKz2u','Cg9UzW','zM9YzsbWywK','ls1MB3jJzq','zhKGCNvUBMK','zxrpEui','Dg9Rzw4','CNzLCI4','B2TLBG','y2XPzw50x2m','iurpq1rzueu','ls1Zzxj2Awm','y29UzMLNuge','y2vZuMvJzw4','CMvWBgfJzue','C3LZDgvTzc0','Ag90','ywvKBfa','wY0TANnVBL0','odC4oq','A0rwDM8','CgvUzgLUz0C','BhjLywr5iha','Bw9Kzq','CgfPCMvK','AgfUzgXLuMu','ugfZC3DVCMq','ywrKugvUzgK','DgvYBwLUyxq','CMfUzg9T','DgLTzw91Da','Bgvnwhq','C21HBgW','BNn0ywXSzwq','r2f0zxDHEvi','yxnL','zgvMyxvSDa','l251BgWGmJ4','zxHWB3j0ifa','CMf3','y29UzMLNoIa','Fdf8nNWYFdC','Dw50','CMLWDcbWyxq','BeDxwLi','r0rPwxe','B3nLzdOG','zZOG','C2nOzwr1Bgu','CfD6D04','pg5VBMu+','C1D5twW','qwnJzxnZigm','swq9','C3rHCNrLzca','B3vUzcbZzxi','C3rHDhvZ','mti3lJaUmc4','r2zwzLu','y29UDgvUDc0','zgv0ywLSCW','zgf6z1G','uNvUBMLUzZO','igHHCYbIB3q','vwTWsge','y3rPDMf0Aw8','ifjLC3rHCNq','ywnOywjSzsa','zxj2AwnLlMO','B25tDgf0Dxm','DgfSBgvKigi','AwDUB3jL','y2XPzw50swq','zxHPDcaXmJC','ihPLCM87igS','q3vPBKO','C29Tzq','ihnPBMnLq2W','y2XVC2vhyxq','igrLDMLJzuK','u2vYDMLJzsa','oti1nZeYyuniweXK','BMuUDgfYz2u','ywrK','B25Uzwn0','DxnLCG','C2v0vgLTzw8','Aw5KzxHpzG','y29Uy2f0','uMDdCNe','tg9NihbHDgG','EvLZDMK','yxv0Ae1Vzgu','Ahr0Chm6lY8','DgLTzwqGB3u','pGOGidXRzxK','s0D2yw0','suq6ia','ig1VCMuGzgu','ignSAwvUDhm','AxnTyxrJAa','CMvQzwn0zwq','Dgv3yxLdB24','q2fUBM90igm','qMfJA2DYB3u','tgf1BMnOqwC','sKfMu3O','zxjLCxvPC2K','r3rcreG','CMLUzZ4','zcWGC3rVCha','C2vYDMvYlw0','D3nZoI8V','Ac5TB2rLigK','C2vUzfrVr2e','zMLNDxjLzcW','Ag9ZDa','cGPBsw5ZDge','ihbSAxn0ifa','DaPxyw50CZ0','z0rkruG','iI4GvxnLihy','DNHxzu8','y2XHD2TLDca','r0ffA0i','Dg9mB3DLCKm','EunZvgC','C3rZ','ELflyxC','DxbKyxrLu24','DhjPBq','Et4kica8Dhi','y2XPzw50tMe','BMC+','ls1QC29U','CxjjBwfNzva','icH0B2TLBIa','CM9YC10GwY0','CZWVA2v5pGO','ihnLCNzPy2u','CMvSyxLvCMW','l3jLz2LZDgu','tg9NoIa','B25mB2C','lIbsDw4GiMm','AxnhyxrLD2e','zxnVBhzLza','DgG8l2TLEt4','ls1NyxrLD2e','AwyGy29TBwe','zcbIywnRz3i','qKLYwhq','uefjuKLor18','zsbUzxCGCge','CMvSyxKGzgK','CMWGphDZoI8','zxK+cIaGphq','DejHC2vezwW','z2f0zxDHEsa','l0rurcbqteK','ihvYBd0','yxrO','t3bLBKnSyxC','Aw5Nienmssa','BxbSzqPfEgu','se5RtgK','Eu1Z','DgHLBG','AwrLBNrPDhK','B2zM','ChbLBMq6','BgKUBg9N','y2uGD2fZigK','uviGAw1Hz2u','Cgf0AdOG','BgvUz3rO','cIaGphn0CMK','C2vYDMLJzu0','otfvzhvQwue','tKnjBKS','BM9VCa','BgfIzwW','ig9Yia','ugfPCIbYzwC','yxv0AcbWyxq','v2LUzg93C1W','pGO8l3bSAxm','zgTZt0e','zezrtwe','zxDHEs5HDxq','zgfLBw9Ulxi','BgzoCwC','uev1sNi','BgfZDevYCM8','Bwf0y2G','yxj0yMvHDca','Aw5JBhvKzxm','CMvXDwvZDgu','su9RqK4','sw1uBuy','qxjNDw1LBNq','CMvSyxKGzxi','ywLYuMvXDwu','zxjYB3i6ia','CNvU','C3rHCNrPBMC','CMqGyMvMB3i','zg9JDg9Y','z2f0zxDHEq','BMfTzq','tM90ihbHAxi','DxrQsMi','u2fYufm','B2rLiciKu0m','CIbWyxnZD28','z1LZtxy','B2nRzxq','BMqGC2vYDMK','CM9YoIa','BgLZDa','CMvMCMvZAgu','EvD3s1a','uNvUigbJBge','Bs9everZl1a','D2f5twvZC2e','A2vtDgfYDgu','Dg9YycbMB3i','t1bftKnmqvC','zevYCM9Ypwe','CdOVl3D3DY4','CgzAywu','C1zuz3O','C2vYDMvY','zgf0yq','zguGCNvUDgK','C3bSAxq','CMvJDgLVBKW','CMLUzYb3Axq','CMvN','C2vYDMvYvxi','CgfYyw1Z','CMvZ','yxbZAg90','z2f0zxDHEvu','z1bHAxjszxe','CNrIzwf0','ieLeoIa','qxv0Ae1Vzgu','BNPhEge','rM91BMq','D2LUzg93C0G','l2TLEt4kica','whD3AxC','y2XPzw50igq','AgfUzgXLr2e','AxiGzMLYC3q','yMfJA2DYB3u','Dg9mB2nHBgu','igf1DgGGAxm','EufJDgL2Axq','zwm9mGPxB3i','D2TLDcbKB2m','Cvrwsfi','Ahr0CdOVlW','BwLZC2LUzW','zcbXDwv1zwq','CMvZAgvKlG','CNvUlxjLz2K','yxrLD2f5twu','vxDJC2e','B3iGCgfZC3C','icbLEgvJig4','ywLYlNjLAMu','yujKwgG','sw52ywXPzca','lMXVzW','igj1DcbZDg8','zcbMB3iGzNi','lJaUmc4XoG','u0nssvbux1a','zgv2AwnLlNa','BMCGy29UBMu','BwfUzfn0yxi','zxjYB3jmB2C','zxK+uNvUqxq','Cgf5Bg9Hza','thLguNG','u3rVChbLzca','CNvUDgLTzs4','BwfW','z2vUzxjHDgu','ywX1zsaI','zhHcuMu','txvdu3K','zwXVywq','mci+cJXKAwm','DgfPBhmSig8','BNvTyMvY','Cg9YDa','CMvXlq','BgfZDfnLzw4','twDUAuC','AgvSCa','kYKRja','y2XPzw50x2q','BwfYA0rLDMK','Dw5Yzwy','AwXLzcaO','AxnjBNrLz2u','Aw9Ul2PZB24','y2XPzw50q28','zgDLigLZige','C3rHCNrLzee','CMvX','cLn0yw5Kyxi','CMvJB25Uzwm','ztOG','CMvSyxLdB24','qxrnCW','ihrVA2vUig8','v1nqB3y','z2f0zxDHEvi','CMvNAxn0zxi','DgjLyxq','mtaXwhHZvMjM','mtG3nZq2sKzcsxjt','y29UC3rYDwm','zKXmEuy','q29UzMLNrM8','pwfSD2f5CWO','AdOG','ifnLDcb0Agu','ywKUy2XHD2S','BwvKAwe','CM9Szq','r0j6vuu','C3rHDgu','ls1UB3C','C3rVCeHLyxi','DwnPsKO','ufrTue8','rM5yA2K','y1n0yxj0pq','y2XLyxjuAw0','B25Uzwn0zwq','zMX1C2Hqzw4','zwzYzxnOzwq','igvYCM9Ypq','ls1SAw5LCW','AxmGC2fMzxq','z2v0cG','Cgf0AevUDG','rxjYB3iGtg8','jMX0oW','yw1L','Ahfmrxa','D29YzcbJB24','zsbZDgfYDgu','lJaIigvUy28','BwD0t2O','BgfZDca8mM0','yxnZD29Yza','zgvSzxrL','zg93BG','weTsB2q','BfvNzhC','zMLUza','zwXHChnLzfm','y29UBMvJDc4','DNHpqLq','yxbWBgLJyxq','BM5Ly3qGyxq','C0LMBuq','CgfPCG','B21WBgv0zsa','rNbsAha','wxrlEKS','CMvXDwvZDeK','ywXYzwfKEsa','CgfZC3DVCMq','qNjPzgDLigK','lNnLCNzPy2u','seH4rMO','CffcD0u','zcbZAw5Jzum','ihrVA2vUoIa','vvjmoIa','Cg9Tz2G','zxqUyNjPzgC','Axn0lteUmc4','Cgf0Ag5HBwu','sLfeCfm','A2v0','CxvLC3rDihi','y2uGywXYzwe','AgvHCNrIzwe','lw5HBwuGpgq','tM8GBwf0y2G','AgfRztSGCxu','CgfPCMLUzYa','CvrtuM4','yMfZzty0','CMv0','zxzLBa','l3yXl3bHAxi','u2vYDMLJzv0','zsbWywLYAw4','lMnVBMzPzW','zcWGyNv0ihm','zgLUzZ0Ivvq','lY5VCgvUy2W','B249q2XHD2S','lMPZB24','BgLUDxG','yxrLD2f5igK','icbLEgvJici','C3rPBgWGCNu','CLf1zxvLr2e','DMLJzsbMB3i','r0zAveq','yxbWBhK','Axn0zxiGzMe','z2f0zxDHEum','C2vYDMLJzvi','C2HPzNq','Dw5SB2fK','uKvhx1nA','CMLUzYbJB2q','C2vHCMnO','zw5ZDxjLr2e','C29U','BgXDcLDHBNq','ls1XCI1MAwW','zM91BMqGDw4','zK5Wvwe','CMvZDgfYDa','ihrVA2vUigK','CMfTCW','y3jVC29MDfW','swvtrM8','q0nND0W','zwrcEt1Kzwy','CgLK','EgLzv0O','igLUDgvUDgK','Bwu+xsbBls0','zxDHEq','q29UzMLNrgK','nhW1','CNjVCKXVzW','ihn0B3aU','yujUzMe','AxmTywn0Axy','CMnLycbVBMW','CNvUiIbTyw4','C2LUzY4','CgvUzgLUzW','DwvZDcbWzw4','CMvNAxn0CNK','Aw5ZDgfSBgu','yxbWCM92zva','Aw5Nr2f0zxC','qvriiIbDoYa','z2f0zxDHEuK','zxHPDenVzgu','tgLICMfYEq','zM91BMq','AxnbCNjHEq','yxLnzxnZywC','AgfIBgu','z2f0zxDHEvm','zM9YBsbMB3i','Bg9NCW','Dw5HDMfPBge','CNvUBMLUzW','ygnSyxDRzxq','BM90ihjLywq','zgLZCgXHEu4','Ag9ZDg5HBwu','cLr5Cgu9C2K','CgvU','thfuvLK','ywXSzwq','jMD0oW','Aw5ZDgfSBa','ienSyxDRzxq','icaGidXZDhi','zKHur3q','zMXVB3i','yxj0','B3bLBG','v2fZsui','uKLqvf9qqvq','ls1Uyw1L','De1HEerLBge','CxiTzMLSzsa','ChvZAa','AxncDwzMzxi','igrLy2LZAw8','C2vUza','EuXPsKG','nxWZ','ig1PC3nPBMC','zgv2AwnLswq','ywnJzxnZq28','CxvLC3rjzd0','q3vYCMvUDfy','q1Litwy','Bgf3A2v0iha','Aw5N','m3WXnhWXm3W','FdL8mte','CMvJDxjZAxy','D3m6lY8','ihvUy2HHBMC','CM91BMqGC2u','Ahnfq08','BMrHCMrpDxq','BKnSyxCGChi','CgLUzW','EwvZ','yxbWCM92zwq','zwnVBM5Ly3q','wgfLrKy','zgvfEhbPCMu','v0TyBxK','runuBwS','veGIiciKu0m','sciGCNvUic0','tKHgrui','B25Jzq','zg9JDg9YifS','yxr0zw1WDd0','Bwf4','zxjZ','BNqGzgvTyw4','zxzLBNq','C3nHz2vZ','B3j0','iMnSyxDRzxq','igj1DcbNyxq','yw5KC2HHA2u','DMLJzsbYzxm','C25HChnOB3q','q0Xbv0rct1q','zcWGCNvUBMK','BM9KzvbHDgG','zwvWAw5NigC','CxjqyxLSB2e','zxjYB3jdB3i','uKW6ia','u3rHCNrLza','y2f0y2G','B2nHBcbpCgu','AcbNyxrLD2e','ChvZAfbLBMq','u3rHCNrPBMC','CMvXDwLYzwq','ww9yrwq','CgvUzgLUz1a','zcbKzwXHEu0','zfbpEfy','Eu9Wzw4','zM9Yy2u','jMfWB3m7','igDHDgv3yxK','x1bbu1nxt1i','Bgf5twvZC2e','z2v0u25HChm','vfPMBMq','igXVywqGDgG','ywnJzxb0','seTdvvXtB2y','zu1rzu0','CNvLlZ4kica','y2XPzw50rgu','z2LRvM0','nJaYodKYD1rJDuT2','s3zxwKm','BIbMywLSzwq','z2v0','yxbWBguUy28','zguGpI9Kzxy','zw1WDa','Df9YzwXHEv8','v2LkrNi','BMqGlxyGBM8','AcbHigrPzMy','DhLWzq','B3b0Aw9UCW','y291BNq','y2HHBMDLzc4','C3rHCNqGDxi','iYeVyMLUl3m','x19JBgf3A2u','u0Lhvevstq','lM9Wzw5JBge','DgvKihbSyxq','uMvXDwvZDfi','y29UzMLN','uMvZDgfYDgu','yxnZAwDU','ihbHC3n3B3i','A2Dyq2e','uMvZDgfYDfm','ica8yxjYyxK','r2f0zxDHEtO','AxjZDc4Gq28','AM9PBG','C3rYEq','s0XAr0m','iejYAwrNzsa','BgfZDe1Z','CMvSyxLbDhq','BgLZDcb2zxi','zgv2AwnLrMe','BLfQBKe','y29UBMvJDfi','zwnHDxnLigW','Et4kica8C3q','zxrYEurLBge','DgGG','y29UzMLNig4','C3LZDgvTza','v3Hbv2W','Bg9Hza','zgfYD2LU','CgfPCIbYzxe','CMvJzw50','ue9tva','B25Uzwn0Aw4','DxbKyxrLzee','mhWWFde1FdG','CMLKz2vdBgK','B2rLihjLzNi','ANnVBG','tgvRrfi','CMvZzxq','lNbUzW','vg9Rzw5gB3u','mM0SidfOlca','DgvKoYbRzwu','Bg9JywXhyxq','nxW0FdeYFde','Dg9Y','u1qGms4WlY8','yw5KihbHC3m','yxrLD2f5igm','DLfqCu8','DhDHCMvCtwK','uwLms3K','lJaUmc4XoJe','y3jLyxrLzee','CMvMCMvZAc0','BYbYzxnVBhy','z2f0zxDHEva','zsbdBgf3A2u','C3rKAw8','B2PMCNq','Aw5Qzwn0zwq','ls1XDwLLDa','BwvZC2fNzq','Dgv4Da','sLjby3C','lJe6mtG3odK','cLnJyw4GDgG','C0zvBMm','ls11C2vY','Bg9N','yMXLigr1CMK','yNjPzgDLlxm','Aw5Jzq','zxDHEsbJB24','Esb0B2TLBIa','zw50','C2v0','rI04iJ8+cJW','C2vUzeDHDgu','ugfPCMLUzYa','yxLnCW','lxnLCNzPy2u','nJeZnZeYme1vywDPEq','CLD4z0S','l3DZ','AxnJB25Uzwm','twvKAwfeAxi','D2LUzg93CY0','C3rYAw5N','nhWWFdj8mxW','y29UzMLNrM8','CgfPCIbBls0','ls1Zzxj2zxi','ywPWCvu','s0jzwgu','vMvYC2LVBJO','Ag1oBu4','uMvSyxLszwm','DgvK','yxjNzxqkcLS','Dgv3yxLnzxm','B3vUzcbMB3i','AgfZ','C3rHCNq','t1bftG','rNPOENC','yw5Ktxm9','zevYCM9Yuge','C2XPy2u','CMvSyxKGy28','y29UBMvJDa','B2jZzxj2zum','zNjVBq','C2vYDMLJzq','y2XVC2u','Dd4kica8A2u','CgfYC2u','zxjYB3i','tNffwNK','BxDNwgK','ls1Syxn0ihy','DfrPBwvY','y29Kzq','D3nZoG','DNnyBNu','CNvUBMLUzZO','DwvZDcbYzxm','qxv0BY1PBNm','y29UBMvJDca','ihbHAxjGigi','Dw1yBMq','zwqUifj1BIa','ywLYic0TzM8','Axnoyu4','q2XHD2TLDca','C2vYDMLJzsi','DxrMoa','sKzLD3C','AxngAw5PDgu','ExbHC3mGDgG','D2LUmZi','ihjLyxnVBJ0','C2vYDMLJzuK','C3rYAw5NAwy','yxv0Aa','EufwqK8','B2jQzwn0','zxqGqNjPzgC','B25Uzwn0u3q','C2fNzq','wfrQs1G','ihjLBgf5pq','wNPYuLO','zgvZDhjVEq','yNrKq2S','Bgf1BMnOywC','C2vHCMnOuge','C2vYDMLJzva','DeLUDgvYDMe','r2f0zxDHEsa','qNjPzgDLige','Dw5RBM93BG','BNHszKe','CMvSyxLtB2m','BgWIig9Yici','AxnWBgf5tMe','l3jVB3q','y3rVCNK9','x0DbvevxqvK','Bg9NCYbBls0','C2nYAxb0uge','B3jKks4','B25SAw5LlNq','yKjTtLy','zxf1zxn0swq','AxnszwXHEu8','mty0nKDQEKTpAG','ig5HBwu9','BgfZDfjLBge','u2vYDMLJztO','zxjZAw9Uxfi','rgLjtKu','DMLJzsbPBNm','Be1Z','sffjre4','nKzSwNrNsa','zxrYEvrPBwu','ig1VzguGDg8','vw5ZDxbWB3i','Dw5K','mhWXFdj8m3W','Bg9NCYbMB3u','ywn0Aw9U','C3LZDgvTy3q','zxDHEvjLywm','zxnLDciGyMu','ienmssbZzxi','phjLzgfJDgu','BM90igLUC3q','lMnSyxDRzxq','lMfP','Dd4k','vNv4zKG','zxnOigzHAwW','zgLUz0DHDgu','uwP2A2y','AcbMB3iGC2u','zfPPvfy','BMDqywLYuMu','zxj2AwnLige','EsbJAgvJAY4','zxHPC3rPBMC','Dw5PBNn0ywW','CuDZzvO','zgLUzYbYzxe','DgvKqxrnCW','CMvSyxKGCMu','y29UDhjVBf8','AwvUDerLBwe','y2uU','B3vUDa','BgLUzxm','Aw5ZDgfUy2u','CNnPB249iJe','BenxB1a','DMvYC2LVBG','BwuGBM90igy','Bg9Nugf0Aa','BwLU','zM1Qr0i','z2v0vgLTzq','ihbHAxiIigy','rgHjvNu','lIbsDw4GCge','CYbTAxnZAw4','EsbPzIb5B3u','BM93','D2fZig5VDca','qvripsi','C3rHCNrZv2K','C2LVBJ0Ims4','Ee9ps3i','CKTPBee','D3m6lY8XmJC','sw5ZDgfUy2u','B3qGzM91BMq'];_0x5e63=function(){return _0x406944;};return _0x5e63();}function hasFlag(_0x5966c5,_0x2e76ce){return _0x5966c5['includes'](_0x2e76ce);}function printHelp(){const _0x763b01={_0x255b97:0x3d8,_0x32dfb1:0x6b5,_0x547c78:0x48d,_0x344896:0x4eb,_0x345923:0x635,_0x325bd3:0x23d,_0x4f5502:0x3fd,_0x4f8e4b:0xe2,_0x30a2d7:0xcb,_0x1eec14:0x2ce,_0x2d14bc:0x9f,_0x52d82e:0x1a5,_0xe2ecf1:0x1fa,_0x129c9a:0x5a,_0x582b4e:0x142,_0xed16dd:0x205,_0x131207:0x3df,_0xba7601:0x22b,_0x5b79bb:0x344,_0x275aea:0x66,_0x1d2f61:0xc2,_0x486e5a:0x66,_0x573d0e:0xe,_0x2ed25d:0x4d7,_0x1d9db0:0xde,_0x247b2d:0x85b,_0x2338e4:0x6c3,_0x534195:0x86,_0x391b72:0x53,_0x1f0ae3:0x6b5,_0x57658b:0x17,_0x411b4f:0x196,_0x57d66b:0x67},_0x5373a8={_0x418eea:0x39c},_0x413b4c={};function _0x4884c3(_0x5e7d12,_0x591e15){return _0x5338aa(_0x5e7d12- -_0x5373a8._0x418eea,_0x591e15);}function _0x4e829f(_0x49075f,_0x26af46){return _0x5338aa(_0x26af46-0x2b3,_0x49075f);}_0x413b4c[_0x4e829f(0x286,_0x763b01._0x255b97)]=_0x4e829f(0x6a4,_0x763b01._0x32dfb1)+_0x4e829f(_0x763b01._0x547c78,0x523)+_0x4e829f(_0x763b01._0x344896,_0x763b01._0x345923)+'url>]\x20[-'+_0x4e829f(_0x763b01._0x325bd3,_0x763b01._0x4f5502)+_0x4884c3(-_0x763b01._0x4f8e4b,_0x763b01._0x30a2d7)+_0x4e829f(_0x763b01._0x1eec14,0x42e)+_0x4884c3(-0x1ef,-0x3a3)+'<path>]\x20'+'[--json]'+'\x20[--forc'+'e]',_0x413b4c[_0x4884c3(-_0x763b01._0x2d14bc,-_0x763b01._0x52d82e)]='clawket\x20'+_0x4884c3(-_0x763b01._0xe2ecf1,-_0x763b01._0x129c9a);const _0x5ee709=_0x413b4c;console[_0x4884c3(-_0x763b01._0x582b4e,-0x320)]([_0x5ee709['mgtOj'],'clawket\x20'+'refresh-'+'code\x20[--'+_0x4884c3(-0x1ef,-_0x763b01._0xed16dd)+'<path>]\x20'+_0x4e829f(0x5f1,0x64c),_0x5ee709[_0x4e829f(_0x763b01._0x131207,0x5b0)],_0x4e829f(0x826,_0x763b01._0x32dfb1)+_0x4884c3(-_0x763b01._0xba7601,-_0x763b01._0x5b79bb),_0x4884c3(_0x763b01._0x275aea,_0x763b01._0x1d2f61)+_0x4e829f(0x5d8,0x5e3),_0x4884c3(_0x763b01._0x486e5a,_0x763b01._0x573d0e)+_0x4e829f(0x575,0x59c)+'l','clawket\x20'+'reset',_0x4e829f(_0x763b01._0x2ed25d,_0x763b01._0x32dfb1)+'status',_0x4884c3(_0x763b01._0x486e5a,0xca)+_0x4884c3(-_0x763b01._0x1d9db0,0x6)+_0x4e829f(0x460,0x3d9)+'>]\x20[--li'+'nes\x20<200'+_0x4884c3(-0x83,-0x197)+_0x4e829f(_0x763b01._0x247b2d,_0x763b01._0x2338e4)+_0x4884c3(-_0x763b01._0x534195,_0x763b01._0x391b72),_0x4e829f(0x855,_0x763b01._0x1f0ae3)+_0x4884c3(-0x1cb,-0x7)+'--json]','clawket\x20'+_0x4884c3(-_0x763b01._0x57658b,-_0x763b01._0x411b4f)+'ateway-u'+_0x4e829f(0x869,0x6d5)+'/127.0.0'+_0x4884c3(-0x146,-_0x763b01._0x57d66b)+'>]'][_0x4884c3(-0x17e,0x18)]('\x0a'));}function formatLocalTime(_0x55c41c){const _0x13fcfa={_0x3f68a4:0x36,_0x2114b4:0xd4,_0x272ed6:0x1dc};function _0x161744(_0x148e36,_0x473a80){return _0x5338aa(_0x473a80- -0x470,_0x148e36);}const _0x57bc7c=new Date(_0x55c41c);if(Number[_0x587ee7(-0x12,-_0x13fcfa._0x3f68a4)](_0x57bc7c[_0x161744(-_0x13fcfa._0x2114b4,-0x175)]()))return _0x55c41c;function _0x587ee7(_0x9c9a40,_0x217a58){return _0x5338aa(_0x9c9a40- -0x2ac,_0x217a58);}return _0x57bc7c[_0x587ee7(_0x13fcfa._0x272ed6,0xd7)+'String']();}function formatError(_0xdf5608){const _0x590a65={_0x5c7149:0x250};function _0x358095(_0xf23721,_0x2ba704){return _0x33cded(_0xf23721,_0x2ba704- -0x561);}return _0xdf5608 instanceof Error?_0xdf5608[_0x358095(-_0x590a65._0x5c7149,-0x6d)]:String(_0xdf5608);}function printJson(_0x150da4){console['log'](JSON['stringif'+'y'](_0x150da4,null,0x2));}main()[_0x5338aa(0x1e6,0xfa)](_0x437f6=>{const _0x436adc={_0x1530c9:0x47b,_0x1ce5d7:0x407};console['error'](formatError(_0x437f6));function _0x49fbfa(_0x3d2653,_0x5984a3){return _0x33cded(_0x3d2653,_0x5984a3- -0x1c0);}process[_0x49fbfa(_0x436adc._0x1530c9,_0x436adc._0x1ce5d7)](0x1);});
2
+ (function(_0x4fff46,_0x22b60a){const _0xdc1efc={_0x4d0146:0x533,_0x377594:0x68e,_0x34eb72:0x61a,_0x24cd95:0x604,_0x4d27d0:0x256,_0x42049a:0x4e4,_0x1eeb7b:0x480,_0x354cf0:0x5fb,_0x16c40f:0x384,_0x8bb1d8:0x43f,_0x3058bd:0x40a},_0x28d081={_0x5859e6:0x16f},_0x1213f6={_0x126773:0x29};function _0xc6918a(_0x5d9ed5,_0x13166a){return _0x2370(_0x13166a-_0x1213f6._0x126773,_0x5d9ed5);}const _0x91daa3=_0x4fff46();function _0xe48dce(_0x5604ff,_0x5e4e43){return _0x2370(_0x5e4e43-_0x28d081._0x5859e6,_0x5604ff);}while(!![]){try{const _0x4486a5=-parseInt(_0xc6918a(0x7c8,0x5f9))/0x1+-parseInt(_0xc6918a(0x4c1,_0xdc1efc._0x4d0146))/0x2+-parseInt(_0xe48dce(0x4e6,_0xdc1efc._0x377594))/0x3+-parseInt(_0xe48dce(_0xdc1efc._0x34eb72,_0xdc1efc._0x24cd95))/0x4*(parseInt(_0xc6918a(0x22,_0xdc1efc._0x4d27d0))/0x5)+-parseInt(_0xc6918a(_0xdc1efc._0x42049a,_0xdc1efc._0x1eeb7b))/0x6*(-parseInt(_0xe48dce(0x5bb,_0xdc1efc._0x354cf0))/0x7)+-parseInt(_0xe48dce(_0xdc1efc._0x16c40f,0x548))/0x8*(parseInt(_0xe48dce(0x3c4,_0xdc1efc._0x8bb1d8))/0x9)+parseInt(_0xc6918a(0x361,_0xdc1efc._0x3058bd))/0xa*(parseInt(_0xe48dce(0x5c7,0x465))/0xb);if(_0x4486a5===_0x22b60a)break;else _0x91daa3['push'](_0x91daa3['shift']());}catch(_0x42ecc8){_0x91daa3['push'](_0x91daa3['shift']());}}}(_0x472c,0xef2bb));const _0x2b7cce=(function(){let _0x4c1f3b=!![];return function(_0x115823,_0x3e9b72){const _0x49fdd1=_0x4c1f3b?function(){if(_0x3e9b72){const _0x38da65=_0x3e9b72['apply'](_0x115823,arguments);return _0x3e9b72=null,_0x38da65;}}:function(){};return _0x4c1f3b=![],_0x49fdd1;};}()),_0x345fc1=_0x2b7cce(this,function(){const _0x4acad8={_0x3a590a:0x112,_0x1e638f:0x63,_0x9e1c89:0x505,_0x357e51:0x733,_0x193b4f:0x544,_0x270999:0x785,_0x41e2aa:0x5ad,_0xfb3dd8:0x304,_0x1f2291:0x522,_0x3c3e3a:0x47f,_0x2a0640:0x452,_0x1cc8a6:0x606},_0x366357={_0x134f72:0x12f},_0x549a19={};_0x549a19['KFocj']=_0x258a43(_0x4acad8._0x3a590a,-_0x4acad8._0x1e638f)+_0x258a43(_0x4acad8._0x9e1c89,_0x4acad8._0x357e51);function _0x573077(_0x3bfcad,_0x238085){return _0x2370(_0x238085-0x3c5,_0x3bfcad);}const _0x2d1836=_0x549a19;function _0x258a43(_0xbf4697,_0x15f7d0){return _0x2370(_0xbf4697- -_0x366357._0x134f72,_0x15f7d0);}return _0x345fc1[_0x258a43(0x304,_0x4acad8._0x193b4f)]()[_0x573077(0x5d4,_0x4acad8._0x270999)](_0x2d1836[_0x573077(0x39a,_0x4acad8._0x41e2aa)])[_0x258a43(_0x4acad8._0xfb3dd8,_0x4acad8._0x1f2291)]()[_0x258a43(_0x4acad8._0x3c3e3a,0x2c5)+_0x573077(_0x4acad8._0x2a0640,0x640)](_0x345fc1)['search'](_0x573077(0x599,_0x4acad8._0x1cc8a6)+_0x258a43(0x505,0x579));});_0x345fc1();import _0x5b54b5 from'qrcode-terminal';import{readFileSync as _0x285c85}from'fs';import{Socket}from'net';import{homedir as _0xc0aab1}from'os';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(),_0x3a7f13(0x39d,0x36b)),CONFIG_PATH=join(CONFIG_DIR,_0x32d8ea(0x8ea,0x8d0)+_0x32d8ea(0x8fd,0x728));function getPairingConfigPath(){return CONFIG_PATH;}function readPairingConfig(){const _0x481b8c={_0x71b4e:0x8d,_0x260933:0x60,_0x2a296d:0xa,_0x5206c9:0x31f,_0x3faff8:0x13f,_0xe60029:0x10a,_0x3d6950:0x1bd,_0xef4f56:0x118,_0x2a454e:0x402,_0x5413e0:0x50c,_0x5befcb:0x343,_0x41f0bb:0x45c,_0x2c076f:0x242,_0x2b3447:0x2ab,_0x4be370:0x383,_0x34a8ee:0x13,_0x59d9ef:0x129,_0x57299f:0x142,_0x5f1676:0x343},_0x3dbfdb={_0x1efc16:0x516},_0x380d7e={_0x29fff9:0x6de};function _0x233995(_0x5ef7db,_0x385fb2){return _0x32d8ea(_0x5ef7db,_0x385fb2- -_0x380d7e._0x29fff9);}const _0xc1ea09={};function _0x1b0a0a(_0x45d155,_0x32031a){return _0x32d8ea(_0x32031a,_0x45d155- -_0x3dbfdb._0x1efc16);}_0xc1ea09[_0x233995(0x60,-_0x481b8c._0x71b4e)]='utf8',_0xc1ea09[_0x233995(-_0x481b8c._0x260933,-_0x481b8c._0x2a296d)]=function(_0x1c6d98,_0xcf11c5){return _0x1c6d98!==_0xcf11c5;};const _0x55b07a=_0xc1ea09;if(!existsSync(CONFIG_PATH))return null;try{const _0x3c09a7=JSON[_0x233995(0x2a8,0x5e)](readFileSync(CONFIG_PATH,_0x55b07a[_0x1b0a0a(0x13b,0x357)]));if(!_0x3c09a7[_0x1b0a0a(0xee,-0x20)+'l']||!_0x3c09a7['gatewayI'+'d']||!_0x3c09a7[_0x1b0a0a(0x2b3,_0x481b8c._0x5206c9)+'ret']||!_0x3c09a7['relayUrl'])return null;const _0xbc2527={'serverUrl':_0x3c09a7[_0x233995(_0x481b8c._0x3faff8,-0xda)+'l'],'gatewayId':_0x3c09a7[_0x233995(_0x481b8c._0xe60029,_0x481b8c._0x3d6950)+'d'],'relaySecret':_0x3c09a7[_0x233995(-_0x481b8c._0xef4f56,0xeb)+_0x233995(_0x481b8c._0x2a454e,0x1d4)],'relayUrl':_0x3c09a7[_0x1b0a0a(0x4a4,_0x481b8c._0x5413e0)],'instanceId':_0x3c09a7[_0x233995(0x409,_0x481b8c._0x5befcb)+'Id']?.[_0x233995(_0x481b8c._0x41f0bb,0x351)]()||createInstanceId(),'displayName':_0x3c09a7[_0x1b0a0a(_0x481b8c._0x2c076f,_0x481b8c._0x2b3447)+_0x233995(0x3f8,0x2af)]??null,'createdAt':_0x3c09a7[_0x1b0a0a(0x514,_0x481b8c._0x4be370)+'t']??new Date()[_0x1b0a0a(0x9f,-_0x481b8c._0x34a8ee)+'ing'](),'updatedAt':_0x3c09a7['updatedA'+'t']??new Date()[_0x233995(-0x27d,-_0x481b8c._0x59d9ef)+'ing']()};return _0x55b07a[_0x233995(_0x481b8c._0x57299f,-0xa)](_0x3c09a7['instance'+'Id'],_0xbc2527[_0x233995(0x437,_0x481b8c._0x5f1676)+'Id'])&&writePairingConfig(_0xbc2527),_0xbc2527;}catch{return null;}}function writePairingConfig(_0xf00c35){const _0x446494={_0x3ab799:0x3db,_0x591c0a:0x190,_0x5e04f8:0x32e},_0x43a0a8={_0x4e829c:0x42a},_0x1d7e12={};_0x1d7e12['YxpHO']=function(_0x4940ca,_0x1af02f){return _0x4940ca+_0x1af02f;};const _0x577d6a=_0x1d7e12,_0x2a22eb={};_0x2a22eb[_0x4c2eed(_0x446494._0x3ab799,_0x446494._0x591c0a)+'e']=!![],mkdirSync(CONFIG_DIR,_0x2a22eb);function _0x4c2eed(_0x47fb30,_0x4f14f7){return _0x32d8ea(_0x47fb30,_0x4f14f7- -_0x43a0a8._0x4e829c);}function _0x5557ae(_0x517213,_0x26c73){return _0x32d8ea(_0x26c73,_0x517213- -0x62a);}writeFileSync(CONFIG_PATH,_0x577d6a['YxpHO'](JSON[_0x4c2eed(0x50e,0x42d)+'y'](_0xf00c35,null,0x2),'\x0a'),_0x5557ae(_0x446494._0x5e04f8,0x2a3));}function deletePairingConfig(){if(!existsSync(CONFIG_PATH))return;function _0x427726(_0x4469fa,_0x24801a){return _0x32d8ea(_0x24801a,_0x4469fa- -0xba);}const _0x4c5d0c={};_0x4c5d0c[_0x427726(0x76f,0x6fc)]=!![],rmSync(CONFIG_PATH,_0x4c5d0c);}function getDefaultBridgeDisplayName(){const _0x51ce8a={_0x3e62a7:0x5f8,_0x14cb51:0xe3,_0x247505:0x397,_0x3372e7:0x300,_0x5a0b2f:0x111,_0x52776a:0xd4,_0xc1ca22:0x56c},_0x12d00b={_0x1d216c:0x72f},_0x162c55={'NvLxc':function(_0x39b53b){return _0x39b53b();}},_0xe8b65c=readOpenClawDefaultAgentName();if(_0xe8b65c)return _0xe8b65c;try{const _0x327fdd=_0x162c55[_0x187a22(_0x51ce8a._0x3e62a7,0x5b9)](userInfo)[_0x180033(-_0x51ce8a._0x14cb51,-0x56)][_0x180033(_0x51ce8a._0x247505,_0x51ce8a._0x3372e7)]();if(_0x327fdd)return _0x327fdd;}catch{}const _0x271d04=(process.env.LOGNAME??process.env.USER??process.env.USERNAME??'')[_0x180033(_0x51ce8a._0x5a0b2f,_0x51ce8a._0x3372e7)]();function _0x187a22(_0x3c18c2,_0x432fdb){return _0x32d8ea(_0x432fdb,_0x3c18c2- -0x334);}if(_0x271d04)return _0x271d04;function _0x180033(_0x555c62,_0x3b8120){return _0x32d8ea(_0x555c62,_0x3b8120- -_0x12d00b._0x1d216c);}return hostname()[_0x180033(_0x51ce8a._0x52776a,_0x51ce8a._0x3372e7)]()||_0x187a22(_0x51ce8a._0xc1ca22,0x39f)+'Bridge';}function pickOpenClawDefaultAgentName(_0x3b91cc){const _0x3df43f={_0x1b498c:0x1a6,_0xdb9ea7:0x6b,_0x10f787:0x83,_0x42b4cf:0x5e5,_0x2509b7:0x51b,_0x4d96fe:0xcf};function _0x396fcd(_0x2fd176,_0x7fee55){return _0x3a7f13(_0x7fee55,_0x2fd176-0x152);}const _0x280b6c={};_0x280b6c[_0x594c7d(0x3c2,_0x3df43f._0x1b498c)]='object';const _0x27f0f0=_0x280b6c;if(!_0x3b91cc||typeof _0x3b91cc!==_0x27f0f0['hyDSP'])return null;function _0x594c7d(_0x2a9888,_0x4ed06e){return _0x3a7f13(_0x2a9888,_0x4ed06e- -0x37e);}const _0x3846ed=_0x3b91cc[_0x396fcd(0x354,0x45a)],_0x522db6=Array[_0x594c7d(-_0x3df43f._0xdb9ea7,-_0x3df43f._0x10f787)](_0x3846ed?.[_0x396fcd(_0x3df43f._0x42b4cf,_0x3df43f._0x2509b7)])?_0x3846ed['list']:[],_0x16bfb1=_0x522db6[_0x594c7d(0x1a4,_0x3df43f._0x4d96fe)](_0x25f13f=>isDefaultAgent(_0x25f13f))??_0x522db6['find'](_0x4af7d8=>hasAgentId(_0x4af7d8,_0x396fcd(0x730,0x92d)))??_0x522db6[0x0];return readAgentName(_0x16bfb1);}function createInstanceId(){const _0x57543b={_0x29e204:0x2c0,_0x59b561:0x49d,_0x201e7d:0x24e,_0x5b8a04:0x1b3,_0x147589:0x159,_0x331bc7:0x45c,_0x2f35c7:0x18},_0x4469a0={_0x549a16:0x759},_0xbeac5b={_0x57b23a:0x70c};function _0xbcbfd8(_0x5466fe,_0x46b496){return _0x32d8ea(_0x46b496,_0x5466fe- -_0xbeac5b._0x57b23a);}function _0x56c446(_0x4ff197,_0x2dffb5){return _0x32d8ea(_0x2dffb5,_0x4ff197- -_0x4469a0._0x549a16);}const _0x2e1d4d={'pRvmd':function(_0x366372,_0x18b093){return _0x366372(_0x18b093);},'iTeOC':function(_0x29b353){return _0x29b353();}},_0x251dd3=_0x2e1d4d[_0xbcbfd8(_0x57543b._0x29e204,_0x57543b._0x59b561)](sanitizeId,hostname()||_0x56c446(_0x57543b._0x201e7d,_0x57543b._0x5b8a04));return _0xbcbfd8(_0x57543b._0x147589,0x31)+_0x251dd3+'-'+_0x2e1d4d[_0xbcbfd8(0x2c5,_0x57543b._0x331bc7)](randomUUID)[_0x56c446(-_0x57543b._0x2f35c7,-0x171)](0x0,0xa);}function sanitizeId(_0x55358f){const _0x30be95={_0x38a6b2:0x683,_0x5bb8c6:0x1a7,_0xf82460:0x71a,_0x35c604:0x768},_0x1f9f47={_0x3c5020:0x71a},_0x470559={_0x1390f2:0x23f};function _0x3ce935(_0x27cfa0,_0xb5626d){return _0x32d8ea(_0x27cfa0,_0xb5626d- -_0x470559._0x1390f2);}function _0x383a2b(_0x5f2413,_0x333b66){return _0x32d8ea(_0x333b66,_0x5f2413- -_0x1f9f47._0x3c5020);}return _0x55358f['trim']()[_0x3ce935(0x4db,_0x30be95._0x38a6b2)+_0x383a2b(0x238,_0x30be95._0x5bb8c6)]()['replace'](/[^a-z0-9._-]+/g,'-')[_0x383a2b(-0x7b,0xb5)](/^-+|-+$/g,'')||_0x3ce935(_0x30be95._0xf82460,_0x30be95._0x35c604);}function readOpenClawDefaultAgentName(){const _0x687c94={_0x3fa505:0x709,_0x4aaf15:0x57e},_0x4ac9ee={_0x1d0730:0x30e},_0x5d0059=resolveOpenClawConfigPath();if(!_0x5d0059||!existsSync(_0x5d0059))return null;function _0x5b72bf(_0x1d2c82,_0x4673c2){return _0x3a7f13(_0x4673c2,_0x1d2c82- -_0x4ac9ee._0x1d0730);}function _0x17941d(_0x48cd40,_0x1c152f){return _0x3a7f13(_0x48cd40,_0x1c152f-0x4c);}try{const _0x1ee93b=JSON[_0x17941d(0x1f6,0x362)](readFileSync(_0x5d0059,_0x17941d(_0x687c94._0x3fa505,_0x687c94._0x4aaf15)));return pickOpenClawDefaultAgentName(_0x1ee93b);}catch{return null;}}function resolveOpenClawConfigPath(){const _0x470478={_0x51756c:0x6bb,_0x43b77b:0x4a9,_0x5413c1:0x544,_0x55d89d:0x19d,_0x34200d:0x62,_0x357b1a:0x69c,_0x59145d:0x18f,_0x32b4ee:0x6bb,_0x216e78:0x8ea,_0xf11cb1:0xc,_0x5d364f:0x292},_0x578d91={_0x441aaa:0x32},_0x20cb0c={_0x226f34:0x559},_0xc9e5f2={_0x503cb0:0x5d6},_0x26569b={_0x252b36:0x121};function _0x18df30(_0x251143,_0x4cb24a){return _0x32d8ea(_0x4cb24a,_0x251143- -_0x26569b._0x252b36);}const _0x1f39f6={'NNBQK':function(_0x36f66b,_0x5b2455,_0x5723df,_0x3c95bc){return _0x36f66b(_0x5b2455,_0x5723df,_0x3c95bc);},'IpvzX':function(_0x16aa71,_0x2e2b75,_0x42b752,_0x43f72c){return _0x16aa71(_0x2e2b75,_0x42b752,_0x43f72c);},'FCVSl':_0x18df30(_0x470478._0x51756c,0x476)+_0x18df30(_0x470478._0x43b77b,0x2d9)},_0x30ce21=new Set();function _0xe07bde(_0x199e14,_0x52bcf4){return _0x32d8ea(_0x199e14,_0x52bcf4- -_0xc9e5f2._0x503cb0);}const _0x25459f=[homedir(),_0x18df30(_0x470478._0x5413c1,0x34b)][_0xe07bde(0x1b4,_0x470478._0x55d89d)](_0x323ba2=>_0x323ba2[_0x18df30(0x90e,0x965)]())[_0xe07bde(_0x470478._0x34200d,0x298)](Boolean)['filter'](_0x2f0b90=>{if(_0x30ce21[_0x337b0d(0x2a1,0x4c2)](_0x2f0b90))return![];function _0x41db62(_0x29202b,_0x28be3a){return _0x18df30(_0x29202b- -0x328,_0x28be3a);}_0x30ce21[_0x337b0d(-0x3,-_0x578d91._0x441aaa)](_0x2f0b90);function _0x337b0d(_0x4420c5,_0x410032){return _0x18df30(_0x4420c5- -_0x20cb0c._0x226f34,_0x410032);}return!![];});for(const _0x202c2e of _0x25459f){const _0x2b9696=_0x1f39f6[_0x18df30(0x483,_0x470478._0x357b1a)](join,_0x202c2e,_0xe07bde(_0x470478._0x59145d,0x292)+'w',_0x18df30(_0x470478._0x32b4ee,_0x470478._0x216e78)+_0xe07bde(-0x190,-_0x470478._0xf11cb1));if(existsSync(_0x2b9696))return _0x2b9696;}return _0x25459f[0x0]?_0x1f39f6['IpvzX'](join,_0x25459f[0x0],_0xe07bde(0x350,_0x470478._0x5d364f)+'w',_0x1f39f6[_0xe07bde(0x90,-0x13)]):null;}function isDefaultAgent(_0x5a04e7){const _0x5bf2ae={_0x5f2766:0x465,_0x873a2b:0x2db,_0x2f94ba:0x4ee},_0x5f47da={_0x3a683d:0x449},_0x190a70={_0xbfa142:0x3f0},_0x2dbf14={};function _0x3c790e(_0x5dcaba,_0x451c77){return _0x32d8ea(_0x5dcaba,_0x451c77- -_0x190a70._0xbfa142);}function _0x28c015(_0x2ffc01,_0x4ba026){return _0x32d8ea(_0x4ba026,_0x2ffc01- -_0x5f47da._0x3a683d);}_0x2dbf14[_0x28c015(0x48e,_0x5bf2ae._0x5f2766)]=function(_0x5d5605,_0x2bdd55){return _0x5d5605===_0x2bdd55;};const _0x16bac5=_0x2dbf14;return Boolean(_0x5a04e7&&typeof _0x5a04e7==='object'&&_0x16bac5['iEriB'](_0x5a04e7[_0x3c790e(_0x5bf2ae._0x873a2b,_0x5bf2ae._0x2f94ba)],!![]));}function hasAgentId(_0x1c0c91,_0x5601e8){const _0x28e666={_0x21ce9e:0x2a0,_0x55b7c1:0x7a,_0x9c9713:0x1b6,_0x4f02c6:0x22f,_0x39b95a:0x6d5,_0x6dbd:0x843};function _0x143f72(_0xa6d38,_0x1c2a56){return _0x32d8ea(_0x1c2a56,_0xa6d38- -0x456);}function _0x33a6dd(_0x3f3e27,_0xf4cfe9){return _0x32d8ea(_0xf4cfe9,_0x3f3e27- -0x35a);}return Boolean(_0x1c0c91&&typeof _0x1c0c91===_0x143f72(_0x28e666._0x21ce9e,_0x28e666._0x55b7c1)&&typeof _0x1c0c91['id']===_0x143f72(_0x28e666._0x9c9713,_0x28e666._0x4f02c6)&&_0x1c0c91['id'][_0x33a6dd(_0x28e666._0x39b95a,_0x28e666._0x6dbd)]()===_0x5601e8);}function readAgentName(_0x57143d){const _0x336f70={_0x2d36e3:0x475,_0x3d8751:0x400,_0x181b43:0x516,_0x55ddbc:0x195,_0x2d9b08:0x637,_0x3f66d5:0x5a2,_0x10394e:0x398,_0x8bd1a4:0x809,_0x40357c:0x3b5,_0x591941:0x278,_0x2fe7f7:0x5f1},_0x1a4a82={_0x2b9d94:0x130},_0x3b1324={};_0x3b1324[_0x3e1e65(0x516,_0x336f70._0x2d36e3)]=function(_0x575402,_0x576f0c){return _0x575402===_0x576f0c;},_0x3b1324[_0x422b86(0x2b1,0x278)]=_0x422b86(-0x137,0x81);const _0xcd108b=_0x3b1324;function _0x422b86(_0x3a96dc,_0x33d0d4){return _0x3a7f13(_0x3a96dc,_0x33d0d4- -0x165);}if(!_0x57143d||typeof _0x57143d!==_0x3e1e65(_0x336f70._0x3d8751,0x609))return null;const _0x37389c=_0x57143d,_0x148a71=_0xcd108b[_0x3e1e65(_0x336f70._0x181b43,0x6f5)](typeof _0x37389c[_0x422b86(0x18a,_0x336f70._0x55ddbc)]?.['name'],'string')?_0x37389c[_0x3e1e65(0x42a,_0x336f70._0x2d9b08)][_0x422b86(_0x336f70._0x3f66d5,_0x336f70._0x10394e)][_0x3e1e65(0x739,_0x336f70._0x8bd1a4)]():'';if(_0x148a71)return _0x148a71;const _0x338302=typeof _0x37389c[_0x422b86(_0x336f70._0x40357c,_0x336f70._0x10394e)]===_0xcd108b[_0x422b86(0x41b,_0x336f70._0x591941)]?_0x37389c[_0x3e1e65(0x62d,_0x336f70._0x2fe7f7)][_0x422b86(0x292,0x4a4)]():'';function _0x3e1e65(_0x25a9c7,_0x32a7ac){return _0x3a7f13(_0x32a7ac,_0x25a9c7-_0x1a4a82._0x2b9d94);}return _0x338302||null;}function buildPairingQrPayload(_0x59f8f1){const _0x1b90af={_0x275830:0x644,_0x255a2e:0x3d4,_0x32233a:0x248,_0x328731:0x69e,_0x55a327:0x6b9,_0x274bbd:0x7d9,_0x5b02b0:0x6b9,_0x3260c3:0x6ce,_0x3b78c6:0x4d4,_0x43ee9d:0x8c9,_0x209fcb:0x58d,_0x155220:0x4e1,_0x4c4194:0x39d},_0x190f9c={_0x642b90:0x376},_0x8ff90c={_0x3897d2:0x2ef};function _0x5bf577(_0x2ff57f,_0x112eb4){return _0x32d8ea(_0x2ff57f,_0x112eb4- -_0x8ff90c._0x3897d2);}const _0xaccc4b={};function _0x130b5b(_0x1061ab,_0x3326bc){return _0x32d8ea(_0x3326bc,_0x1061ab- -_0x190f9c._0x642b90);}_0xaccc4b['v']=0x2,_0xaccc4b['k']='cp',_0xaccc4b['s']=_0x59f8f1[_0x5bf577(_0x1b90af._0x275830,0x608)],_0xaccc4b['g']=_0x59f8f1['gatewayI'+'d'],_0xaccc4b['a']=_0x59f8f1[_0x130b5b(_0x1b90af._0x255a2e,0x351)+'de'];const _0x40358b=_0xaccc4b;return _0x59f8f1[_0x5bf577(_0x1b90af._0x32233a,0x469)+_0x5bf577(0x47b,_0x1b90af._0x328731)]?.[_0x130b5b(_0x1b90af._0x55a327,_0x1b90af._0x274bbd)]()&&(_0x40358b['n']=_0x59f8f1[_0x5bf577(0x4bf,0x469)+'ame'][_0x130b5b(_0x1b90af._0x5b02b0,_0x1b90af._0x3260c3)]()),_0x59f8f1[_0x5bf577(0x3db,0x5a0)]?.[_0x130b5b(_0x1b90af._0x55a327,0x5cc)]()&&(_0x40358b['t']=_0x59f8f1[_0x130b5b(0x519,_0x1b90af._0x3b78c6)][_0x130b5b(_0x1b90af._0x5b02b0,_0x1b90af._0x43ee9d)]()),_0x59f8f1['password']?.[_0x130b5b(_0x1b90af._0x5b02b0,_0x1b90af._0x209fcb)]()&&(_0x40358b['p']=_0x59f8f1['password']['trim']()),JSON[_0x130b5b(_0x1b90af._0x155220,_0x1b90af._0x4c4194)+'y'](_0x40358b);}function buildGatewayQrPayload(_0x412a42){const _0xd95b43={_0x5b5a16:0x681,_0x363e24:0x470,_0x5c3bc8:0x4f9,_0x189c6e:0x363,_0x4c3803:0x5b3,_0x4fc8c5:0x64c,_0xaa66db:0x5f5,_0x29f948:0x63d,_0x3183da:0x2a8,_0x4e78f3:0x13d,_0x1b5df0:0x74c,_0x366318:0x539,_0x29293e:0x3b4,_0x3d0fb7:0x3b2,_0x1ed41f:0x59e,_0xdbb382:0x5a6,_0x14c44e:0x62b,_0x3ec9bc:0x5e3,_0x5d8663:0x584,_0x4af9f7:0x765,_0xf25c34:0x6ec},_0x3582b8={_0x17f6a3:0xb7},_0x24212b={};_0x24212b[_0x237318(_0xd95b43._0x5b5a16,0x506)]=function(_0x122965,_0x49eeef){return _0x122965+_0x49eeef;},_0x24212b['OboGC']=function(_0x5180e1,_0x22975b){return _0x5180e1*_0x22975b;};function _0x5ae5a0(_0x273922,_0x35f55f){return _0x3a7f13(_0x35f55f,_0x273922-0x214);}const _0x40f231=_0x24212b;function _0x237318(_0x1999e8,_0x3c936e){return _0x3a7f13(_0x1999e8,_0x3c936e- -_0x3582b8._0x17f6a3);}const _0x11418f=normalizeGatewayQrUrl(_0x412a42[_0x5ae5a0(_0xd95b43._0x363e24,_0xd95b43._0x5c3bc8)+'rl']),_0x17e774={'url':_0x11418f[_0x237318(_0xd95b43._0x189c6e,0x134)],'host':_0x11418f[_0x5ae5a0(0x795,_0xd95b43._0x4c3803)],'port':_0x11418f[_0x5ae5a0(_0xd95b43._0x4fc8c5,_0xd95b43._0xaa66db)],'tls':_0x11418f[_0x5ae5a0(_0xd95b43._0x29f948,0x5a1)],'mode':_0x237318(0x1a7,_0xd95b43._0x3183da),'expiresAt':_0x412a42[_0x237318(-0xcc,_0xd95b43._0x4e78f3)+'t']??_0x40f231[_0x5ae5a0(0x7d1,0x6f5)](Date[_0x237318(_0xd95b43._0x1b5df0,_0xd95b43._0x366318)](),_0x40f231['OboGC'](0xa*0x3c,0x3e8)),'qrVersion':0x2};return _0x412a42[_0x237318(_0xd95b43._0x29293e,_0xd95b43._0x3d0fb7)]?.['trim']()&&(_0x17e774[_0x237318(_0xd95b43._0x1ed41f,_0xd95b43._0x3d0fb7)]=_0x412a42[_0x237318(_0xd95b43._0xdbb382,0x3b2)]['trim']()),_0x412a42[_0x5ae5a0(0x584,_0xd95b43._0x14c44e)]?.[_0x5ae5a0(0x81d,_0xd95b43._0x3ec9bc)]()&&(_0x17e774[_0x5ae5a0(_0xd95b43._0x5d8663,_0xd95b43._0x4af9f7)]=_0x412a42[_0x5ae5a0(_0xd95b43._0x5d8663,0x7bc)][_0x5ae5a0(0x81d,_0xd95b43._0xf25c34)]()),JSON['stringif'+'y'](_0x17e774);}function normalizeGatewayQrUrl(_0x51f9d3){const _0x8a7fb0={_0x17c78c:0x267,_0x216e0f:0x3a3,_0x1cb8a0:0x6ef,_0x513a00:0x2c4,_0x1d9b00:0x299,_0x5a4d5a:0x2e7,_0x11188b:0x2c1,_0x115d44:0x515,_0x51c2ec:0x52d,_0x1a53ed:0x291,_0x27a0d0:0x1d2,_0x2994ad:0x71e,_0x26510b:0x54f,_0x1fa7a3:0x8d5,_0xd36cb4:0x50,_0x595a4c:0x1e3,_0x1dfa5d:0x7ca,_0x3d01a4:0x694,_0x117d44:0x2f0,_0x5a0d53:0x488},_0x398236={_0x2a39ea:0x68c},_0x456873={};_0x456873[_0x290994(0xe7,_0x8a7fb0._0x17c78c)]=function(_0x122f18,_0x4976cd){return _0x122f18===_0x4976cd;},_0x456873[_0x3b306d(0x5ac,0x560)]=function(_0x38ce6e,_0x3029e3){return _0x38ce6e===_0x3029e3;};const _0x26ca36=_0x456873,_0xf16735=new URL(_0x51f9d3[_0x290994(0x58c,_0x8a7fb0._0x216e0f)]()),_0x2726ad=_0xf16735[_0x3b306d(_0x8a7fb0._0x1cb8a0,0x4cb)]===_0x290994(0x2e8,_0x8a7fb0._0x513a00)||_0x26ca36[_0x290994(_0x8a7fb0._0x1d9b00,_0x8a7fb0._0x17c78c)](_0xf16735['protocol'],_0x290994(_0x8a7fb0._0x5a4d5a,_0x8a7fb0._0x11188b)),_0xabdad4=_0x2726ad?_0x290994(0x4c5,0x2c4):'ws:';function _0x290994(_0x52e37a,_0x41f4cb){return _0x32d8ea(_0x52e37a,_0x41f4cb- -_0x398236._0x2a39ea);}const _0x2e615c=_0xf16735[_0x3b306d(_0x8a7fb0._0x115d44,_0x8a7fb0._0x51c2ec)],_0x548a7a=_0xf16735[_0x290994(_0x8a7fb0._0x1a53ed,_0x8a7fb0._0x27a0d0)]?Number(_0xf16735[_0x3b306d(_0x8a7fb0._0x2994ad,_0x8a7fb0._0x26510b)]):_0x2726ad?0x1bb:0x50,_0x5a605c=!_0xf16735[_0x3b306d(_0x8a7fb0._0x1fa7a3,0x694)]||_0x26ca36[_0x290994(_0x8a7fb0._0xd36cb4,_0x8a7fb0._0x595a4c)](_0xf16735[_0x3b306d(_0x8a7fb0._0x1dfa5d,_0x8a7fb0._0x3d01a4)],'')?'/':_0xf16735['pathname'],_0x54ae09={};_0x54ae09[_0x3b306d(0x3c0,0x302)]=_0xabdad4+'//'+_0x2e615c+':'+_0x548a7a+_0x5a605c,_0x54ae09[_0x290994(_0x8a7fb0._0x117d44,0x31b)]=_0x2e615c,_0x54ae09[_0x3b306d(0x669,0x54f)]=_0x548a7a,_0x54ae09[_0x3b306d(0x6f6,0x5a6)]=_0x5a605c,_0x54ae09[_0x3b306d(_0x8a7fb0._0x5a0d53,0x540)]=_0x2726ad;function _0x3b306d(_0x2c9779,_0x214987){return _0x32d8ea(_0x2c9779,_0x214987- -0x30f);}return _0x54ae09;}var DEFAULT_REGISTRY_BASE=_0x32d8ea(0x681,0x707)+_0x32d8ea(0x921,0x95a)+_0x32d8ea(0x71d,0x791)+_0x3a7f13(0x415,0x287),DEFAULT_REGISTRY_FALLBACK_BASE=_0x3a7f13(0x1bb,0x2e1)+_0x3a7f13(0x5cf,0x562)+_0x3a7f13(0x376,0x534)+_0x32d8ea(0x975,0x791)+_0x3a7f13(0x447,0x554)+_0x32d8ea(0xa53,0x84a);async function pairGateway(_0x2994c9){const _0x3ade50={_0x429066:0x482,_0x5daeab:0x499,_0x5d17ea:0x469,_0xc52102:0xa5,_0x35ced8:0xec,_0x449882:0xd5,_0x1cc421:0x4bd,_0x52a6fa:0x1c2,_0x220412:0x284,_0x198c66:0x132,_0xb71404:0x29d,_0x5e5c3c:0xd1,_0x19ec67:0x5af,_0xc024d6:0x5b1,_0x2083db:0x4af,_0x1781e9:0x356,_0x397261:0x778,_0x394a34:0x65,_0x40e060:0x187,_0x2ec97b:0x373,_0x535789:0x2ad,_0x46f3de:0x26d,_0x33f591:0x87,_0x19e586:0x24,_0x2e5117:0x27,_0xabceae:0xdc,_0x578776:0x12b,_0x4b9172:0x12f,_0x83d83f:0x51,_0x4b5fc3:0x58f,_0x51c832:0x1c9,_0x1d7b65:0x465,_0x238a59:0x4af,_0x3060b3:0x191,_0x2f630b:0xce,_0x1973ad:0x158,_0x1c057e:0x3c5,_0x4edd91:0x307,_0x1c829e:0x30d,_0x5f1a5c:0x510,_0x50f8e4:0x29d,_0x2b072e:0x46d,_0x351f43:0x200,_0x32cf47:0x1ec,_0x974698:0x599,_0x80b842:0x2ca,_0x472aa1:0x7c8,_0x304a2d:0x274,_0x5be016:0x5a,_0x4ecdff:0x1d3,_0x54fa4b:0xfd,_0x1f81e4:0x1a2,_0x5f89de:0x34c},_0x4786b5={_0x21fd6a:0x2ca},_0x3b71f7={'oJpbO':function(_0x2259a3){return _0x2259a3();},'PIJBv':function(_0x28a7ef,_0x2dd7b6){return _0x28a7ef===_0x2dd7b6;},'RONRH':_0x2c7127(0x19d,0x3d1)+_0x51f968(_0x3ade50._0x429066,_0x3ade50._0x5daeab)};function _0x51f968(_0x43eaee,_0x417804){return _0x3a7f13(_0x43eaee,_0x417804-0x48);}const _0x3c673a=normalizeHttpBase(_0x2994c9[_0x51f968(0x2d1,0x226)+'l']),_0x180e83=_0x3b71f7[_0x51f968(0x37a,_0x3ade50._0x5d17ea)](readPairingConfig),_0x64061c=assessPairingCompatibility(_0x180e83,_0x3c673a);if(_0x64061c==='refresh-'+_0x2c7127(_0x3ade50._0xc52102,-0xd5)&&_0x180e83){const _0x3b145f={};return _0x3b145f['serverUr'+'l']=_0x180e83[_0x2c7127(-_0x3ade50._0x35ced8,_0x3ade50._0x449882)+'l'],_0x3b145f[_0x51f968(0x66c,_0x3ade50._0x1cc421)+'d']=_0x180e83[_0x51f968(0x3ff,_0x3ade50._0x1cc421)+'d'],_0x3b145f[_0x2c7127(0xd9,0x2b9)+_0x2c7127(_0x3ade50._0x52a6fa,_0x3ade50._0x220412)]=_0x180e83['relaySec'+_0x2c7127(_0x3ade50._0x52a6fa,0xc8)],_0x3b145f[_0x51f968(_0x3ade50._0x198c66,0x37a)+_0x2c7127(_0x3ade50._0xb71404,_0x3ade50._0x5e5c3c)]=_0x2994c9['displayN'+_0x51f968(0x7a6,_0x3ade50._0x19ec67)],_0x3b145f['gatewayT'+_0x51f968(_0x3ade50._0xc024d6,0x603)]=_0x2994c9[_0x51f968(_0x3ade50._0x2083db,_0x3ade50._0x1781e9)+_0x51f968(_0x3ade50._0x397261,0x603)],_0x3b145f['gatewayP'+_0x2c7127(-_0x3ade50._0x394a34,-_0x3ade50._0x40e060)]=_0x2994c9['gatewayP'+_0x51f968(_0x3ade50._0x2ec97b,_0x3ade50._0x535789)],refreshAccessCode(_0x3b145f);}if(_0x3b71f7['PIJBv'](_0x64061c,_0x51f968(0x40b,0x257)+_0x51f968(0x3a2,0x445)))throw new Error(_0x51f968(_0x3ade50._0x46f3de,0x4b7)+_0x2c7127(_0x3ade50._0x33f591,0x1ba)+'lready\x20p'+_0x2c7127(_0x3ade50._0x19e586,-_0x3ade50._0x2e5117)+_0x2c7127(-_0x3ade50._0xabceae,-0x31d)+_0x180e83?.['serverUr'+'l']+('.\x20Run\x20\x22c'+'lawket\x20r'+_0x2c7127(0x12e,0x116)+'fore\x20pai'+_0x2c7127(_0x3ade50._0x578776,0x6c)+_0x2c7127(-_0x3ade50._0x4b9172,0x29)+_0x2c7127(0xa2,_0x3ade50._0x83d83f)+_0x51f968(0x73f,_0x3ade50._0x4b5fc3)));const _0x52f545={};_0x52f545[_0x2c7127(0x2a,_0x3ade50._0x51c832)+'type']=_0x51f968(_0x3ade50._0x1d7b65,_0x3ade50._0x238a59)+'ion/json',_0x52f545[_0x51f968(0x40d,0x33a)]=_0x3b71f7[_0x2c7127(_0x3ade50._0x3060b3,-0x61)];function _0x2c7127(_0x17ffef,_0x14f525){return _0x3a7f13(_0x14f525,_0x17ffef- -_0x4786b5._0x21fd6a);}const _0x5bf1a2=await postJsonWithCloudflareFallback(_0x3c673a+(_0x2c7127(_0x3ade50._0x2f630b,-_0x3ade50._0x1973ad)+_0x2c7127(0x189,_0x3ade50._0x1c057e)+'r'),{'method':_0x51f968(_0x3ade50._0x4edd91,_0x3ade50._0x1c829e),'headers':_0x52f545,'body':JSON['stringif'+'y']({'displayName':_0x2994c9[_0x51f968(_0x3ade50._0x5f1a5c,0x37a)+_0x2c7127(_0x3ade50._0x50f8e4,_0x3ade50._0x2b072e)]?.[_0x51f968(0x6c6,0x651)]()||null})});if(!_0x5bf1a2['response']['ok'])throw await buildPairingRequestError('Pair\x20reg'+_0x2c7127(_0x3ade50._0x351f43,_0x3ade50._0x32cf47),_0x5bf1a2);const _0x21963b=await _0x5bf1a2['response'][_0x2c7127(-0x7c,0x142)](),_0x2de348=new Date()['toISOStr'+'ing'](),_0x1c96c2={'serverUrl':_0x3c673a,'gatewayId':_0x21963b[_0x51f968(_0x3ade50._0x974698,_0x3ade50._0x1cc421)+'d'],'relaySecret':_0x21963b['relaySec'+_0x51f968(0x610,0x4d4)],'relayUrl':_0x21963b[_0x2c7127(_0x3ade50._0x80b842,0x2e7)],'instanceId':_0x180e83?.['instance'+'Id']??_0x2c7127(0x175,-0x9a)+_0x21963b[_0x51f968(0x356,_0x3ade50._0x1cc421)+'d'][_0x2c7127(0x51,-0xe2)](-0xa),'displayName':_0x21963b['displayN'+_0x51f968(_0x3ade50._0x472aa1,0x5af)],'createdAt':_0x2de348,'updatedAt':_0x2de348};return writePairingConfig(_0x1c96c2),{'config':_0x1c96c2,'accessCode':_0x21963b[_0x2c7127(0x5a,-0x4)+'de'],'accessCodeExpiresAt':_0x21963b['accessCo'+_0x2c7127(0x32c,0x1d5)+'sAt'],'action':_0x51f968(_0x3ade50._0x304a2d,0x473)+'ed','qrPayload':buildPairingQrPayload({'server':_0x3c673a,'gatewayId':_0x21963b[_0x51f968(0x326,0x4bd)+'d'],'accessCode':_0x21963b[_0x2c7127(_0x3ade50._0x5be016,-_0x3ade50._0x4ecdff)+'de'],'displayName':_0x21963b['displayN'+_0x2c7127(_0x3ade50._0xb71404,_0x3ade50._0x54fa4b)],'token':_0x2994c9[_0x51f968(_0x3ade50._0x1f81e4,_0x3ade50._0x1781e9)+'oken']?.[_0x2c7127(0x33f,0x55a)]()||null,'password':_0x2994c9['gatewayP'+_0x51f968(_0x3ade50._0x5f89de,0x2ad)]?.[_0x51f968(0x756,0x651)]()||null})};}async function refreshAccessCode(_0x32e6c5){const _0x2551d7={_0x2f43e7:0x298,_0x2b721c:0xd,_0x140c16:0x17d,_0x589596:0x3cf,_0x51a9ed:0x3d5,_0x28e015:0x1e5,_0x701cf1:0x479,_0x2dae19:0x2aa,_0x15372b:0x2bb,_0x55eb0a:0x10e,_0x27f338:0x283,_0x1712a8:0x27a,_0x374619:0x26d,_0x34a7e9:0x2b1,_0x114c96:0x56e,_0x25ff63:0x111,_0x1c4041:0x4ad,_0x55d98c:0x58f,_0x4ad9a7:0x34e,_0x178cd0:0x254,_0x162e3c:0x3bd,_0xc71d90:0x384,_0x18ae22:0x137,_0x4ce1a7:0x599,_0x2d1309:0x740,_0x4abf15:0x40e,_0x11fb01:0x512,_0x4e1665:0x49a,_0x574c0c:0x356,_0x307043:0x152,_0x33ac40:0x356,_0x5f3748:0x2c8,_0x5157d7:0x57d,_0x15d420:0x364,_0x55f449:0x63c},_0x3993ae={_0x3a6ec6:0x32},_0xf166c={_0x177891:0x1e4},_0x13b6bf={'toQhx':function(_0x3940f9,_0x51fece){return _0x3940f9(_0x51fece);},'GAciL':_0x2a0dd0(0x1b1,0x175)+_0xcf259a(_0x2551d7._0x2f43e7,0x78)+_0x2a0dd0(_0x2551d7._0x2b721c,0x1ef)+_0xcf259a(0x44e,0x47f)+_0x2a0dd0(_0x2551d7._0x140c16,0x102)+'.','vmbnG':function(_0x1eb307,_0x26d6b4,_0x2069d5){return _0x1eb307(_0x26d6b4,_0x2069d5);},'mjpHO':function(_0x2c8805,_0xaec785){return _0x2c8805(_0xaec785);}},_0x478b9e=readPairingConfig();function _0x2a0dd0(_0x5e1c09,_0xa81060){return _0x3a7f13(_0xa81060,_0x5e1c09- -_0xf166c._0x177891);}const _0x34d53c=_0x13b6bf['toQhx'](normalizeHttpBase,_0x32e6c5?.['serverUr'+'l']??_0x478b9e?.[_0x2a0dd0(-0x6,0x5f)+'l']??''),_0x2c55a2=_0x32e6c5?.[_0x2a0dd0(0x291,_0x2551d7._0x589596)+'d']??_0x478b9e?.[_0x2a0dd0(0x291,0x3a2)+'d']??'',_0x82f524=_0x32e6c5?.[_0xcf259a(_0x2551d7._0x51a9ed,_0x2551d7._0x28e015)+_0x2a0dd0(0x2a8,0x1fe)]??_0x478b9e?.[_0x2a0dd0(0x1bf,0x1e0)+'ret']??'';if(!_0x34d53c||!_0x2c55a2||!_0x82f524)throw new Error(_0x13b6bf[_0xcf259a(0x2b3,_0x2551d7._0x701cf1)]);const _0x2f106c={};_0x2f106c[_0x2a0dd0(0x110,_0x2551d7._0x2dae19)+_0xcf259a(0x48b,0x512)]=_0xcf259a(0x499,_0x2551d7._0x15372b)+'ion/json',_0x2f106c[_0x2a0dd0(_0x2551d7._0x55eb0a,0x29d)]=_0x2a0dd0(_0x2551d7._0x27f338,_0x2551d7._0x1712a8)+_0x2a0dd0(_0x2551d7._0x374619,0x30c);const _0x4caff8=await _0x13b6bf[_0xcf259a(_0x2551d7._0x34a7e9,0x432)](postJsonWithCloudflareFallback,_0x34d53c+('/v1/pair'+_0xcf259a(_0x2551d7._0x114c96,0x3ef)+_0x2a0dd0(0x163,_0x2551d7._0x25ff63)),{'method':_0x2a0dd0(0xe1,0x105),'headers':_0x2f106c,'body':JSON[_0x2a0dd0(0x24d,0x27a)+'y']({'gatewayId':_0x2c55a2,'relaySecret':_0x82f524,'displayName':_0x32e6c5?.['displayN'+'ame']?.['trim']()||void 0x0})});function _0xcf259a(_0x406ac4,_0x4dd472){return _0x3a7f13(_0x4dd472,_0x406ac4-_0x3993ae._0x3a6ec6);}if(!_0x4caff8['response']['ok'])throw await buildPairingRequestError(_0xcf259a(_0x2551d7._0x1c4041,_0x2551d7._0x55d98c)+_0xcf259a(0x48a,_0x2551d7._0x4ad9a7)+_0xcf259a(0x329,_0x2551d7._0x178cd0),_0x4caff8);const _0x5cb1f5=await _0x4caff8[_0xcf259a(_0x2551d7._0x162e3c,0x1f3)]['json'](),_0x5924b3={'serverUrl':_0x34d53c,'gatewayId':_0x5cb1f5[_0xcf259a(0x4a7,0x31f)+'d'],'relaySecret':_0x82f524,'relayUrl':_0x5cb1f5['relayUrl'],'instanceId':_0x478b9e?.[_0x2a0dd0(0x417,_0x2551d7._0xc71d90)+'Id']??_0x2a0dd0(0x25b,0x452)+_0x5cb1f5['gatewayI'+'d'][_0x2a0dd0(_0x2551d7._0x18ae22,0x25b)](-0xa),'displayName':_0x5cb1f5['displayN'+_0xcf259a(_0x2551d7._0x4ce1a7,_0x2551d7._0x2d1309)],'createdAt':_0x478b9e?.['createdA'+'t']??new Date()[_0x2a0dd0(-0x55,-0x9)+_0x2a0dd0(_0x2551d7._0x4abf15,_0x2551d7._0x11fb01)](),'updatedAt':new Date()[_0xcf259a(0x1c1,0x155)+_0x2a0dd0(_0x2551d7._0x4abf15,_0x2551d7._0x4e1665)]()};return writePairingConfig(_0x5924b3),{'config':_0x5924b3,'accessCode':_0x5cb1f5[_0xcf259a(_0x2551d7._0x574c0c,_0x2551d7._0x307043)+'de'],'accessCodeExpiresAt':_0x5cb1f5[_0xcf259a(_0x2551d7._0x33ac40,0x318)+_0xcf259a(0x628,0x875)+_0x2a0dd0(_0x2551d7._0x5f3748,0x24e)],'action':_0xcf259a(0x3c3,_0x2551d7._0x5157d7)+'d','qrPayload':_0x13b6bf[_0xcf259a(0x5a0,0x632)](buildPairingQrPayload,{'server':_0x34d53c,'gatewayId':_0x5cb1f5['gatewayI'+'d'],'accessCode':_0x5cb1f5['accessCo'+'de'],'displayName':_0x5cb1f5[_0xcf259a(_0x2551d7._0x15d420,0x526)+'ame'],'token':_0x32e6c5?.[_0xcf259a(0x340,0x2ce)+_0xcf259a(0x5ed,0x4ef)]?.[_0xcf259a(0x63b,_0x2551d7._0x55f449)]()||null,'password':_0x32e6c5?.['gatewayP'+'assword']?.[_0x2a0dd0(0x425,0x1e8)]()||null})};}function normalizeHttpBase(_0x17d247){const _0x27ab3c={_0x1f7c48:0x52b,_0x22a6bd:0x704,_0x7bcae8:0x78f,_0x579beb:0x419,_0x2cd5ff:0x46f,_0x5a4845:0x741,_0x2337be:0x939,_0x464432:0x52b,_0x57253b:0x5d1,_0x34c0ed:0x5a7,_0x51a852:0x5eb,_0x2952d9:0x269,_0x45923b:0x275,_0x193223:0x638,_0x3f6b6d:0x3fa,_0xd328e9:0x36a,_0x41857a:0x2d5,_0x480d9b:0x46f,_0x12c943:0x6bc,_0x443cc0:0x46f},_0x5e9f96={_0x478d4f:0x46d},_0x48bdbb={_0x3e03cf:0x230};function _0x2a7a56(_0x48a90a,_0xc84889){return _0x32d8ea(_0x48a90a,_0xc84889- -_0x48bdbb._0x3e03cf);}const _0x45b38b={};_0x45b38b[_0x15b82c(0x767,_0x27ab3c._0x1f7c48)]=_0x2a7a56(_0x27ab3c._0x22a6bd,_0x27ab3c._0x7bcae8),_0x45b38b[_0x2a7a56(0x7dc,0x637)]='wss://';const _0x411692=_0x45b38b;function _0x15b82c(_0x4e54f0,_0x1af61f){return _0x32d8ea(_0x4e54f0,_0x1af61f- -_0x5e9f96._0x478d4f);}const _0xdc9789=_0x17d247[_0x15b82c(0x6d8,0x5c2)]();if(!_0xdc9789)return'';if(_0xdc9789[_0x2a7a56(0x2ad,_0x27ab3c._0x579beb)+'th'](_0x15b82c(0x42e,0x553))||_0xdc9789[_0x2a7a56(0x348,0x419)+'th'](_0x15b82c(0x2d0,0x29a)))return _0xdc9789[_0x2a7a56(0x28f,_0x27ab3c._0x2cd5ff)](/\/+$/,'');if(_0xdc9789[_0x15b82c(0x36,0x1dc)+'th'](_0x411692[_0x15b82c(_0x27ab3c._0x5a4845,0x52b)]))return(_0x2a7a56(_0x27ab3c._0x2337be,0x790)+_0xdc9789[_0x15b82c(0x354,0x2d4)](_0x411692[_0x15b82c(0x620,_0x27ab3c._0x464432)][_0x2a7a56(_0x27ab3c._0x57253b,_0x27ab3c._0x34c0ed)]))['replace'](/\/+$/,'');if(_0xdc9789[_0x2a7a56(_0x27ab3c._0x51a852,0x419)+'th'](_0x15b82c(0xbb,_0x27ab3c._0x2952d9)))return('https://'+_0xdc9789[_0x15b82c(_0x27ab3c._0x45923b,0x2d4)](_0x411692[_0x15b82c(_0x27ab3c._0x193223,_0x27ab3c._0x3f6b6d)][_0x15b82c(0x4f9,_0x27ab3c._0xd328e9)]))[_0x2a7a56(_0x27ab3c._0x41857a,_0x27ab3c._0x480d9b)](/\/+$/,'');return('https://'+_0xdc9789)[_0x2a7a56(_0x27ab3c._0x12c943,_0x27ab3c._0x443cc0)](/\/+$/,'');}function assessPairingCompatibility(_0x4ccb17,_0x328c84){const _0x15dbda={_0x9212e2:0x1ab,_0x2b036b:0x6fb,_0x181475:0x4b6,_0x10e583:0x119,_0x4499bd:0x1fa,_0x31dbe8:0x1d2,_0x952790:0x22b,_0x2c1600:0x281},_0x56f4b0={_0x481354:0x6ff},_0x33e57f={_0x1ea04b:0x40a},_0x37ab5b={};function _0x4531b1(_0x51b810,_0x7e21c6){return _0x32d8ea(_0x51b810,_0x7e21c6- -_0x33e57f._0x1ea04b);}_0x37ab5b['nhVdj']=function(_0x15427e,_0x57a084){return _0x15427e===_0x57a084;};const _0x436cb7=_0x37ab5b;if(!_0x4ccb17)return _0x260c28(_0x15dbda._0x9212e2,0x152)+_0x4531b1(_0x15dbda._0x2b036b,_0x15dbda._0x181475);if(_0x436cb7[_0x260c28(_0x15dbda._0x10e583,-0x55)](_0x4ccb17[_0x4531b1(0xef,_0x15dbda._0x4499bd)+'l'],_0x328c84))return _0x4531b1(0x2ec,0x48d)+'existing';function _0x260c28(_0xf7c7fd,_0x2f0761){return _0x32d8ea(_0xf7c7fd,_0x2f0761- -_0x56f4b0._0x481354);}return _0x4531b1(_0x15dbda._0x31dbe8,_0x15dbda._0x952790)+_0x260c28(_0x15dbda._0x2c1600,0x124);}async function postJsonWithCloudflareFallback(_0x31d11a,_0x5d2ab1){const _0x328dc5={_0x28385a:0x193,_0x4a21ee:0x2f,_0x68fb4f:0x72,_0x10d25d:0x7b,_0x354b98:0x18b,_0x53d24e:0x1a7},_0x222367={_0x4ac65c:0x75b},_0x37d3ed={_0x4a2ab3:0x61e};function _0x2e18b5(_0x4f088f,_0x3b2fbd){return _0x32d8ea(_0x3b2fbd,_0x4f088f- -_0x37d3ed._0x4a2ab3);}const _0x4ec2c7={'MTZha':function(_0x1eb014,_0x1e6cdc,_0x4cd772){return _0x1eb014(_0x1e6cdc,_0x4cd772);}},_0x1b9f54=await _0x4ec2c7['MTZha'](fetch,_0x31d11a,_0x5d2ab1),_0x5dff58=resolveCloudflareChallengeFallbackUrl(_0x31d11a,_0x1b9f54);function _0x38452b(_0x35d44,_0x22d0e4){return _0x32d8ea(_0x35d44,_0x22d0e4- -_0x222367._0x4ac65c);}if(!_0x5dff58){const _0x44de53={};return _0x44de53[_0x2e18b5(_0x328dc5._0x28385a,_0x328dc5._0x4a21ee)]=_0x1b9f54,_0x44de53[_0x2e18b5(-_0x328dc5._0x68fb4f,-0x18a)+_0x2e18b5(_0x328dc5._0x10d25d,0x93)]=_0x31d11a,_0x44de53[_0x38452b(0x13f,_0x328dc5._0x354b98)+_0x2e18b5(_0x328dc5._0x53d24e,0x17f)]=null,_0x44de53;}return{'response':await fetch(_0x5dff58,_0x5d2ab1),'attemptedUrl':_0x31d11a,'fallbackUrl':_0x5dff58};}async function buildPairingRequestError(_0xa99653,_0x28a51d){const _0x1a6429={_0x31e6aa:0x5b0,_0x4ab6c6:0x4ca,_0x4947d4:0x5ea,_0x931009:0x755,_0x20ca6a:0x2de,_0x4c3f68:0x96e,_0xbe4ce6:0x885,_0x1ca3a5:0x892,_0x49c322:0x9d0,_0x55826a:0x75e,_0x47aaa7:0x5d5,_0xe164a2:0x68e,_0x20c68b:0x60a,_0x41b7c7:0x56d,_0x54eab1:0x66c,_0x29dbaa:0x61b,_0x891a0a:0x803,_0x5d89a2:0x61d,_0x4917da:0x5f7,_0x192400:0x927,_0x39f6f5:0x5a0,_0x1b1046:0x785,_0x16b9d9:0x723,_0x50c2ff:0x8c4,_0x45c87b:0x730,_0x390b5e:0x838,_0x5ac3fd:0x7ad,_0x3b1e30:0x702,_0x420178:0x91b,_0x34b4fc:0x814,_0x2d1a1e:0x6b1,_0x5f2991:0x64c},_0x419836={_0x50f146:0x165};if(isCloudflareChallengeResponse(_0x28a51d[_0x2868e7(0x561,0x64c)])){const _0x155f17=new URL(_0x28a51d[_0x2868e7(_0x1a6429._0x31e6aa,0x781)+'Url']??_0x28a51d[_0x3aad7c(0x4fd,_0x1a6429._0x4ab6c6)+_0x3aad7c(_0x1a6429._0x4947d4,0x6a6)])['origin'],_0x382f58=_0x28a51d[_0x3aad7c(0x837,0x6b5)+'Url']?_0x2868e7(0x91a,_0x1a6429._0x931009)+_0x2868e7(_0x1a6429._0x20ca6a,0x489)+_0x3aad7c(_0x1a6429._0x4c3f68,0xa85)+_0x28a51d['fallback'+_0x2868e7(_0x1a6429._0xbe4ce6,0x660)]+(_0x2868e7(0x610,0x4ee)+'t\x20a\x20Clou'+_0x3aad7c(0x6b4,_0x1a6429._0x1ca3a5)+_0x3aad7c(0x94e,0xab4)+'.'):'';return new Error(_0xa99653+(_0x3aad7c(0x7b0,_0x1a6429._0x49c322)+'(')+_0x28a51d[_0x3aad7c(0x702,0x508)][_0x2868e7(0x69f,_0x1a6429._0x55826a)]+(_0x3aad7c(_0x1a6429._0x47aaa7,_0x1a6429._0xe164a2)+_0x2868e7(0x470,_0x1a6429._0x20c68b)+_0x2868e7(0x70f,_0x1a6429._0x41b7c7)+_0x3aad7c(_0x1a6429._0x54eab1,0x49f)+'the\x20regi'+'stry\x20API'+_0x3aad7c(_0x1a6429._0x29dbaa,_0x1a6429._0x891a0a))+_0x155f17+'.'+_0x382f58+(_0x2868e7(_0x1a6429._0x5d89a2,_0x1a6429._0x4917da)+_0x3aad7c(_0x1a6429._0x192400,0x920)+_0x2868e7(0x3e9,_0x1a6429._0x39f6f5)+'network\x20'+'or\x20use\x20a'+_0x2868e7(0x89e,_0x1a6429._0x1b1046)+'y\x20endpoi'+_0x2868e7(_0x1a6429._0x16b9d9,_0x1a6429._0x50c2ff)+_0x2868e7(0x477,0x5a3)+_0x3aad7c(_0x1a6429._0x45c87b,0x738)+_0x2868e7(_0x1a6429._0x390b5e,0x64a)+_0x2868e7(0x386,0x456)+_0x2868e7(_0x1a6429._0x5ac3fd,0x6a9)));}function _0x3aad7c(_0x2246fd,_0x175b2c){return _0x32d8ea(_0x175b2c,_0x2246fd- -0xaf);}function _0x2868e7(_0x3b026e,_0x1f8903){return _0x32d8ea(_0x3b026e,_0x1f8903- -_0x419836._0x50f146);}return new Error(_0xa99653+('\x20failed\x20'+'(')+_0x28a51d[_0x3aad7c(_0x1a6429._0x3b1e30,_0x1a6429._0x420178)][_0x3aad7c(_0x1a6429._0x34b4fc,0xa54)]+_0x3aad7c(0x7e9,0x9a3)+summarizeFailedResponse(await _0x28a51d[_0x2868e7(_0x1a6429._0x2d1a1e,_0x1a6429._0x5f2991)][_0x2868e7(0x59b,0x537)]()));}function isCloudflareChallengeResponse(_0x1d58bc){const _0x2bfc06={_0x453001:0x5dd,_0xb1e1db:0x684,_0x188c49:0x6ab,_0x163bea:0x563,_0x13b7db:0x8fd},_0x169246={_0x151543:0x55};function _0x4876c6(_0x42e866,_0x18fdd3){return _0x32d8ea(_0x18fdd3,_0x42e866- -_0x169246._0x151543);}function _0x410146(_0x4cefd4,_0x3e24d6){return _0x32d8ea(_0x4cefd4,_0x3e24d6- -0x758);}return _0x1d58bc['status']===0x193&&_0x1d58bc[_0x4876c6(_0x2bfc06._0x453001,_0x2bfc06._0xb1e1db)]['get'](_0x4876c6(_0x2bfc06._0x188c49,_0x2bfc06._0x163bea)+'ated')?.['trim']()['toLowerC'+_0x4876c6(_0x2bfc06._0x13b7db,0x6ec)]()===_0x4876c6(0x758,0x8eb)+'e';}function resolveCloudflareChallengeFallbackUrl(_0x307e65,_0x4c8606){if(!isCloudflareChallengeResponse(_0x4c8606))return null;const _0xadd3df=new URL(_0x307e65);if(_0xadd3df['origin']!==DEFAULT_REGISTRY_BASE)return null;return''+DEFAULT_REGISTRY_FALLBACK_BASE+_0xadd3df['pathname']+_0xadd3df['search'];}function summarizeFailedResponse(_0x940b2d){const _0x3b1da6={_0x1243e3:0x660,_0x32b69b:0x77e,_0x264205:0x3a1,_0x52963e:0x97b,_0x49e149:0x660,_0x184807:0x8a4,_0x35d081:0x9da,_0x5dc76f:0x79a,_0x587de3:0x9d7},_0x1a6469={_0x1aabdb:0x3d},_0x1ebcd0={_0x58e987:0x12a},_0x1d74bf={};function _0x4b8a95(_0x12c0ad,_0xe5c371){return _0x32d8ea(_0xe5c371,_0x12c0ad- -_0x1ebcd0._0x58e987);}_0x1d74bf[_0x1ce119(0x656,_0x3b1da6._0x1243e3)]=_0x4b8a95(0x78c,0x94e)+'sponse\x20b'+_0x4b8a95(0x8aa,_0x3b1da6._0x32b69b);function _0x1ce119(_0x51e885,_0x2c55b9){return _0x32d8ea(_0x51e885,_0x2c55b9- -_0x1a6469._0x1aabdb);}_0x1d74bf['GJtyO']=function(_0x2b4dbd,_0x41fa4b){return _0x2b4dbd<=_0x41fa4b;};const _0xbbe988=_0x1d74bf,_0x2b9c55=_0x940b2d[_0x4b8a95(0x575,_0x3b1da6._0x264205)](/\s+/g,'\x20')[_0x4b8a95(0x905,_0x3b1da6._0x52963e)]();if(!_0x2b9c55)return _0xbbe988[_0x1ce119(0x494,_0x3b1da6._0x49e149)];if(_0xbbe988[_0x1ce119(_0x3b1da6._0x184807,_0x3b1da6._0x35d081)](_0x2b9c55[_0x1ce119(0x5d7,_0x3b1da6._0x5dc76f)],0xf0))return _0x2b9c55;return _0x2b9c55[_0x1ce119(0x8f7,0x704)](0x0,0xed)+_0x1ce119(0xb83,_0x3b1da6._0x587de3);}import{execFileSync,spawn}from'child_process';import{chmodSync,closeSync,existsSync as _0x103d0e,mkdirSync as _0x2669a4,openSync,readFileSync as _0x2d25c1,realpathSync,rmSync as _0x34a55c,writeFileSync as _0x5e0dad}from'fs';import{homedir as _0x42adab}from'os';function _0x32d8ea(_0x9765cd,_0x3846fd){const _0x50480c={_0x4bbe26:0x3e1};return _0x2370(_0x3846fd-_0x50480c._0x4bbe26,_0x9765cd);}import{dirname,join as _0x5ea869}from'path';var SERVICE_LABEL=_0x32d8ea(0x97a,0x737)+_0x3a7f13(0x40c,0x3c2)+_0x3a7f13(0x9c,0x27b),SYSTEMD_UNIT_NAME=SERVICE_LABEL+_0x3a7f13(0x41b,0x29f),WINDOWS_RUN_KEY='ClawketB'+'ridgeCli',SERVICE_DIR=_0x5ea869(_0x42adab(),_0x32d8ea(0x84a,0x791)),LOG_DIR=_0x5ea869(SERVICE_DIR,_0x32d8ea(0x8c4,0x73a)),SERVICE_STATE_PATH=_0x5ea869(SERVICE_DIR,_0x32d8ea(0x6bf,0x859)+'ervice.j'+_0x3a7f13(0x384,0x198)),SERVICE_LAUNCHER_PATH=_0x5ea869(SERVICE_DIR,_0x32d8ea(0x953,0x859)+_0x32d8ea(0xb77,0x9a2)+_0x3a7f13(0x493,0x5b1)+'sh'),SERVICE_LOG_PATH=_0x5ea869(LOG_DIR,_0x3a7f13(0x26d,0x4aa)+_0x32d8ea(0x769,0x710)),SERVICE_ERROR_LOG_PATH=_0x5ea869(LOG_DIR,'bridge-c'+'li-error'+'.log'),MACOS_PLIST_PATH=_0x5ea869(_0x42adab(),_0x32d8ea(0x6c1,0x7d1),_0x3a7f13(0x590,0x37f)+_0x3a7f13(0x2da,0x498),SERVICE_LABEL+_0x3a7f13(0x517,0x452)),LINUX_SERVICE_PATH=_0x5ea869(_0x42adab(),_0x32d8ea(0x916,0x82f),_0x3a7f13(0x6d1,0x545),_0x3a7f13(0x3b4,0x34c),SYSTEMD_UNIT_NAME);function getServiceProgramArgs(_0x5b6a7b={},_0x252ff7=process[_0x32d8ea(0x84a,0x774)]){const _0x45675c={_0x104bf0:0x461,_0x1eb8e8:0x445,_0x4cadcb:0x122,_0x1c0dd8:0x49,_0x16b1d9:0xc3,_0xb1b376:0x484,_0x3a184f:0x311,_0x34f72e:0xe4,_0x2f2855:0x99,_0x33e9b9:0x56c,_0x4e8586:0x3cb,_0x44f967:0x426},_0x5c4447={'qGxnf':function(_0x5d169b,_0x243ff0){return _0x5d169b(_0x243ff0);},'SgySe':function(_0x3ed79d,_0x493f70){return _0x3ed79d!==_0x493f70;},'aNAkd':function(_0x14e7f4,_0xc373e2,_0x231295){return _0x14e7f4(_0xc373e2,_0x231295);}};function _0x34a325(_0x5c771d,_0x45ad4b){return _0x32d8ea(_0x5c771d,_0x45ad4b- -0x5ea);}const _0x512b88=_0x5b6a7b['nodePath']?.[_0x34a325(_0x45675c._0x104bf0,_0x45675c._0x1eb8e8)]()||process[_0x34a325(_0x45675c._0x4cadcb,_0x45675c._0x1c0dd8)];function _0x116b7a(_0x54511c,_0x36e447){return _0x32d8ea(_0x54511c,_0x36e447- -0x262);}const _0x275f6a=_0x5c4447[_0x34a325(-_0x45675c._0x16b1d9,0x42)](resolveScriptPath,_0x5b6a7b['scriptPa'+'th']);if(!_0x275f6a)throw new Error(_0x34a325(_0x45675c._0xb1b376,_0x45675c._0x3a184f)+_0x34a325(-_0x45675c._0x34f72e,_0x45675c._0x2f2855)+'e\x20CLI\x20sc'+'ript\x20pat'+_0x116b7a(0x609,0x7b9)+'rvice\x20in'+_0x34a325(0xf9,-0x1d)+_0x34a325(0x225,0x14b));if(_0x5c4447[_0x116b7a(_0x45675c._0x33e9b9,0x6d0)](_0x252ff7,'win32')){const _0x332a38={};_0x332a38[_0x116b7a(0x4a7,0x48d)]=_0x512b88,_0x332a38[_0x34a325(0x220,0xe9)+'th']=_0x275f6a,_0x332a38[_0x116b7a(0x53c,0x42e)]=process.env.PATH??'';const _0x28ea59=writeServiceLauncher(_0x332a38);return _0x5c4447[_0x34a325(_0x45675c._0x4e8586,0x1ce)](ensureLaunchScriptExecutable,_0x28ea59,_0x252ff7),[_0x28ea59];}return[_0x512b88,_0x275f6a,_0x116b7a(_0x45675c._0x44f967,0x369),_0x116b7a(0x35c,_0x45675c._0x44f967)+'e'];}function getServiceStatus(){const _0x85ab44={_0x16978f:0x398,_0x57cfd9:0x1be,_0x2a0741:0x3c8,_0x3780ba:0x6ab,_0x13fdea:0x8a2,_0x1d5b78:0xb3c,_0x57fdf0:0x927,_0x34f442:0x6c1,_0x358b3e:0x6c3,_0x10f5c0:0x6b5,_0x45efb2:0x6c3,_0x469404:0x51e,_0xd80418:0x343,_0x568954:0x217,_0x3fedca:0x39a,_0x6a6306:0x49a,_0x2c270b:0x60e,_0x3e0e87:0x59f,_0x338c75:0x698,_0x14ed55:0x45d,_0x127e64:0x620,_0x498d12:0x624,_0xd8cb70:0x26a,_0x2df595:0x5d5,_0xc3e1a8:0x1c5,_0xa9b1ce:0x1b8,_0x3e089b:0x77d,_0x345906:0x7da,_0x12b112:0x9aa,_0x1259dd:0x53f,_0x1cf902:0x53d,_0x513c18:0x506},_0x1b386c={_0x3b02e1:0x41a},_0x28790e={'CkDsm':function(_0x33ff29,_0x14abea){return _0x33ff29(_0x14abea);},'lLBgA':_0x5ac579(_0x85ab44._0x16978f,_0x85ab44._0x57cfd9)+_0x5ac579(0x1be,_0x85ab44._0x2a0741),'czoyR':function(_0x22ca23,_0x145f3f,_0x124c30){return _0x22ca23(_0x145f3f,_0x124c30);},'AyQms':'launchct'+'l','leLEa':_0x61d723(0x9c9,0x837),'DJsGO':_0x5ac579(0x4be,0x29a)+'l','CjjcO':_0x61d723(_0x85ab44._0x3780ba,0x59e),'VyHSR':_0x61d723(_0x85ab44._0x13fdea,0x65b)+'e','itRPZ':_0x61d723(_0x85ab44._0x1d5b78,_0x85ab44._0x57fdf0)};ensureServiceDirs();const _0x3d0972=readServiceState()?.['pid']??null,_0x12f6b3={'installed':![],'running':_0x3d0972!=null&&_0x28790e[_0x5ac579(0x598,_0x85ab44._0x34f442)](isPidRunning,_0x3d0972),'method':detectServiceMethod(),'servicePath':getServicePath(),'logPath':SERVICE_LOG_PATH,'errorLogPath':SERVICE_ERROR_LOG_PATH,'pid':_0x3d0972};_0x12f6b3[_0x61d723(0x510,_0x85ab44._0x358b3e)]!=null&&!_0x12f6b3['running']&&(clearServiceState(_0x12f6b3[_0x61d723(0x877,_0x85ab44._0x358b3e)]),_0x12f6b3[_0x61d723(_0x85ab44._0x10f5c0,_0x85ab44._0x45efb2)]=null);function _0x61d723(_0x2bbf1d,_0x438a14){return _0x32d8ea(_0x2bbf1d,_0x438a14- -0x82);}function _0x5ac579(_0x2b4721,_0x2de4f2){return _0x32d8ea(_0x2de4f2,_0x2b4721- -_0x1b386c._0x3b02e1);}switch(_0x12f6b3[_0x5ac579(0x321,_0x85ab44._0x469404)]){case _0x28790e['lLBgA']:_0x12f6b3['installe'+'d']=_0x103d0e(MACOS_PLIST_PATH);_0x12f6b3[_0x5ac579(_0x85ab44._0xd80418,0x349)+'d']&&(_0x12f6b3[_0x5ac579(_0x85ab44._0x568954,_0x85ab44._0x3fedca)]=_0x28790e['czoyR'](commandSucceeds,_0x28790e[_0x5ac579(0x537,0x53a)],[_0x28790e[_0x5ac579(_0x85ab44._0x6a6306,_0x85ab44._0x2c270b)],SERVICE_LABEL])||_0x12f6b3['running']);return _0x12f6b3;case _0x61d723(0x418,_0x85ab44._0x3e0e87)+_0x5ac579(0x358,0x395):_0x12f6b3[_0x61d723(0x4f1,0x6db)+'d']=_0x103d0e(LINUX_SERVICE_PATH);_0x12f6b3['installe'+'d']&&(_0x12f6b3[_0x61d723(_0x85ab44._0x338c75,0x5af)]=commandSucceeds(_0x28790e[_0x61d723(_0x85ab44._0x14ed55,_0x85ab44._0x127e64)],[_0x28790e[_0x61d723(0x62e,0x724)],_0x28790e['VyHSR'],_0x5ac579(_0x85ab44._0x498d12,0x5c3),SYSTEMD_UNIT_NAME])||_0x12f6b3[_0x5ac579(_0x85ab44._0x568954,0x3b7)]);return _0x12f6b3;case _0x61d723(0x576,0x71a)+_0x5ac579(0x223,_0x85ab44._0xd8cb70)+_0x61d723(0x82e,0x9a9):_0x12f6b3[_0x61d723(0x758,0x6db)+'d']=commandSucceeds(_0x61d723(0x430,_0x85ab44._0x2df595),[_0x28790e[_0x5ac579(_0x85ab44._0xc3e1a8,_0x85ab44._0xa9b1ce)],_0x61d723(_0x85ab44._0x3e089b,0x924)+_0x61d723(_0x85ab44._0x345906,_0x85ab44._0x12b112)+_0x5ac579(0x1e6,0x385)+_0x5ac579(0x4a5,0x6c5)+_0x5ac579(_0x85ab44._0x1259dd,0x50e)+_0x5ac579(_0x85ab44._0x1cf902,_0x85ab44._0x513c18)+'un','/v',WINDOWS_RUN_KEY]);return _0x12f6b3;default:return _0x12f6b3;}}function installService(_0x37261a={}){const _0x15d244={_0x50773f:0x718,_0x511d2c:0x3ac,_0x47b301:0x3e3,_0x42c3cc:0x60c,_0x44252b:0x5f7,_0x41d01a:0x5f5,_0x6a656d:0x712,_0x58f76c:0x7f8,_0xadf161:0x77c,_0x4a6113:0x65f,_0x46629e:0x6e4,_0x20204e:0x65d,_0x34bdf1:0x765,_0x357b71:0x586,_0x564378:0x6e4,_0x234406:0x670,_0xa076d1:0x684,_0x3f2a84:0x2cf,_0x1be44e:0x74f,_0xba87bc:0x53f,_0x43eda3:0x7ba,_0x3d9e5b:0x6f3,_0x5c1ab1:0x759,_0x18c3d1:0x5ee,_0x40bd4d:0x66b,_0xd6f6d7:0x646,_0x15a2e5:0x734,_0x41c233:0x6cb,_0x4eaed2:0x7af,_0x17352e:0x38c,_0x258e49:0x7da,_0x1ede21:0x577,_0x133b67:0x6e3,_0x5ef522:0x6a8,_0x167915:0x5ad,_0x580067:0x641,_0x383834:0x5aa,_0x491bfe:0x731,_0x45f0eb:0x528,_0x1e9c75:0x432},_0x2f6a93={'lMKhp':function(_0xbe1147,_0x5ccfef,_0x375183,_0x11e158){return _0xbe1147(_0x5ccfef,_0x375183,_0x11e158);},'pbhGo':_0x175a53(_0x15d244._0x50773f,0x664)+'l','lKpIj':_0x175a53(0x5c8,_0x15d244._0x511d2c),'fcHao':'--now','CcVya':function(_0x3d0bf6){return _0x3d0bf6();},'XGFsS':_0x175a53(0x3be,_0x15d244._0x47b301),'NiFID':function(_0x302fb9,_0x9d4329){return _0x302fb9(_0x9d4329);},'LCtDt':_0x4b8057(_0x15d244._0x42c3cc,0x765)};ensureServiceDirs();const _0x4abd63=getServiceProgramArgs(_0x37261a);function _0x175a53(_0x1f3177,_0x28e8fa){return _0x3a7f13(_0x1f3177,_0x28e8fa-0x1b2);}switch(process[_0x4b8057(_0x15d244._0x44252b,_0x15d244._0x41d01a)]){case _0x4b8057(_0x15d244._0x6a656d,_0x15d244._0x58f76c):_0x5e0dad(MACOS_PLIST_PATH,_0x2f6a93[_0x4b8057(_0x15d244._0xadf161,_0x15d244._0x4a6113)](buildMacosPlist,_0x4abd63,SERVICE_LOG_PATH,SERVICE_ERROR_LOG_PATH),_0x175a53(0x57c,_0x15d244._0x46629e)),execIgnoreFailure('launchct'+'l',['unload','-w',MACOS_PLIST_PATH]);const _0x30ceb9={};_0x30ceb9['stdio']=_0x4b8057(_0x15d244._0x20204e,_0x15d244._0x34bdf1),execFileSync(_0x4b8057(_0x15d244._0x357b71,0x5ed)+'l',[_0x175a53(0x59a,0x434),'-w',MACOS_PLIST_PATH],_0x30ceb9);break;case'linux':const _0x45520f={};_0x45520f[_0x4b8057(0x635,0x43b)+'e']=!![],_0x2669a4(dirname(LINUX_SERVICE_PATH),_0x45520f),_0x5e0dad(LINUX_SERVICE_PATH,buildLinuxSystemdUnit(_0x4abd63,SERVICE_LOG_PATH,SERVICE_ERROR_LOG_PATH),_0x175a53(0x5c7,_0x15d244._0x564378));const _0x339f79={};_0x339f79[_0x4b8057(0x8e2,0x7ba)]=_0x175a53(0x485,_0x15d244._0x234406),execFileSync(_0x2f6a93[_0x175a53(_0x15d244._0xa076d1,0x57a)],[_0x175a53(_0x15d244._0x3f2a84,0x3ac),_0x175a53(_0x15d244._0x1be44e,_0x15d244._0xba87bc)+_0x4b8057(0x87b,0x882)],_0x339f79);const _0x49011d={};_0x49011d[_0x4b8057(0x7b6,_0x15d244._0x43eda3)]=_0x4b8057(0x981,0x765),execFileSync(_0x4b8057(_0x15d244._0x3d9e5b,_0x15d244._0x5c1ab1)+'l',[_0x2f6a93[_0x175a53(0x402,_0x15d244._0x18c3d1)],'enable',_0x2f6a93['fcHao'],SYSTEMD_UNIT_NAME],_0x49011d);break;case _0x175a53(_0x15d244._0x40bd4d,0x5c2):_0x2f6a93[_0x175a53(_0x15d244._0xd6f6d7,0x432)](stopRunningProcess),execFileSync(_0x2f6a93[_0x175a53(_0x15d244._0x15a2e5,_0x15d244._0x41c233)],['add',_0x4b8057(_0x15d244._0x4eaed2,0x827)+_0x175a53(0x5ef,0x7b8)+_0x175a53(0x217,_0x15d244._0x17352e)+'Windows\x5c'+_0x4b8057(0x855,_0x15d244._0x258e49)+_0x175a53(_0x15d244._0x1ede21,_0x15d244._0x133b67)+'un','/v',WINDOWS_RUN_KEY,'/t',_0x4b8057(0x405,0x438),'/d',_0x2f6a93['NiFID'](buildWindowsRunCommand,_0x4abd63),'/f'],{'stdio':_0x2f6a93[_0x4b8057(0x44f,0x64e)]}),startDetachedWindowsService(_0x4abd63);break;default:throw new Error(_0x175a53(0x496,_0x15d244._0x5ef522)+_0x175a53(0x705,0x53a)+'form\x20for'+_0x4b8057(0x501,0x544)+_0x4b8057(_0x15d244._0x167915,_0x15d244._0x580067)+_0x175a53(_0x15d244._0x383834,_0x15d244._0x491bfe)+_0x4b8057(0x585,0x5d5)+process[_0x4b8057(_0x15d244._0x45f0eb,0x5f5)]);}function _0x4b8057(_0x4e8dae,_0x14052){return _0x3a7f13(_0x4e8dae,_0x14052-0x2a7);}return _0x2f6a93[_0x175a53(0x5d4,_0x15d244._0x1e9c75)](getServiceStatus);}function restartService(_0x2413fa={}){const _0x5ca788={_0x5b1099:0x58e,_0x1fb424:0x476,_0x1b621c:0x367,_0x5320f1:0x2ca,_0x2f182b:0x528,_0x27e4d3:0x4b3,_0x41c941:0x500,_0x4d05f2:0x77a,_0x799c3b:0x5a4,_0xe770bd:0x62b,_0x45c0df:0x6ab,_0x3cc081:0x90e,_0x538e83:0x706,_0x5eab6b:0x14a,_0x55c198:0x403,_0x460192:0x2a6,_0xf8ed63:0x979,_0x5db56e:0x4df,_0x5b81ab:0x6fa,_0x3de53e:0x623,_0x16939d:0x553,_0x3bf322:0x35d,_0x2413b6:0x25c,_0x1d7c3d:0x68f,_0x117830:0x706,_0x25700d:0x17e,_0x380f21:0x7c8,_0x525420:0x553,_0x176b3d:0x422,_0x379c72:0x61c,_0x3dba48:0x270,_0x59c3a1:0x73e,_0x1ec5d5:0x73f,_0x11d059:0x5f1,_0x2f94de:0x278,_0x5bf4db:0x1ea,_0xb1cc09:0x2e4,_0xde7cd7:0x2f7,_0x5e4963:0x121,_0x1b5ce8:0x525},_0x1f26b0={'IFWQc':function(_0x2b8ba3,_0x26e0ec){return _0x2b8ba3(_0x26e0ec);},'fEDdx':function(_0x10cc4d,_0x1eb49a,_0x117413,_0x20ef37){return _0x10cc4d(_0x1eb49a,_0x117413,_0x20ef37);},'gVKIM':'unload','JRfad':_0x302320(_0x5ca788._0x5b1099,_0x5ca788._0x1fb424)+'l','idAUu':'load','DgxHl':function(_0x4933a7,_0x37449c){return _0x4933a7(_0x37449c);},'zIurE':_0x302320(0x442,_0x5ca788._0x1b621c),'pkhod':_0x55dc20(0x2da,_0x5ca788._0x5320f1)+_0x55dc20(_0x5ca788._0x2f182b,_0x5ca788._0x27e4d3),'RQopP':function(_0x2562fa){return _0x2562fa();},'ihSZu':_0x55dc20(0x19e,-0x97),'fgZOb':function(_0x46ed78){return _0x46ed78();}};ensureServiceDirs();const _0x103cdf=getServiceProgramArgs(_0x2413fa);function _0x55dc20(_0x1dd2df,_0x50005d){return _0x3a7f13(_0x50005d,_0x1dd2df- -0xb3);}switch(process[_0x302320(0x596,0x596)]){case'darwin':if(!_0x1f26b0[_0x302320(0x566,_0x5ca788._0x41c941)](_0x103d0e,MACOS_PLIST_PATH))return installService(_0x2413fa);_0x1f26b0['fEDdx'](_0x5e0dad,MACOS_PLIST_PATH,buildMacosPlist(_0x103cdf,SERVICE_LOG_PATH,SERVICE_ERROR_LOG_PATH),_0x302320(_0x5ca788._0x4d05f2,_0x5ca788._0x799c3b)),execIgnoreFailure(_0x302320(0x58e,_0x5ca788._0xe770bd)+'l',[_0x1f26b0[_0x302320(0x5ee,_0x5ca788._0x45c0df)],'-w',MACOS_PLIST_PATH]);const _0x45a41f={};_0x45a41f[_0x302320(0x75b,_0x5ca788._0x3cc081)]=_0x302320(_0x5ca788._0x538e83,0x62e),execFileSync(_0x1f26b0[_0x55dc20(0xd9,_0x5ca788._0x5eab6b)],[_0x1f26b0[_0x55dc20(0x30a,0x1f3)],'-w',MACOS_PLIST_PATH],_0x45a41f);break;case _0x302320(_0x5ca788._0x55c198,0x475):if(!_0x1f26b0[_0x55dc20(_0x5ca788._0x460192,0x294)](_0x103d0e,LINUX_SERVICE_PATH))return installService(_0x2413fa);const _0x207aa9={};_0x207aa9[_0x302320(0x3dc,0x569)+'e']=!![],_0x2669a4(dirname(LINUX_SERVICE_PATH),_0x207aa9),_0x5e0dad(LINUX_SERVICE_PATH,buildLinuxSystemdUnit(_0x103cdf,SERVICE_LOG_PATH,SERVICE_ERROR_LOG_PATH),'utf8');const _0x551ae7={};_0x551ae7[_0x302320(0x75b,_0x5ca788._0xf8ed63)]=_0x55dc20(0x40b,0x4a7),execFileSync('systemct'+'l',[_0x1f26b0[_0x302320(0x686,0x74b)],_0x1f26b0[_0x55dc20(_0x5ca788._0x5db56e,0x49a)]],_0x551ae7);const _0x200a8f={};_0x200a8f[_0x302320(0x75b,0x73b)]=_0x55dc20(0x40b,0x541),execFileSync(_0x302320(_0x5ca788._0x5b81ab,_0x5ca788._0x3de53e)+'l',['--user',_0x302320(_0x5ca788._0x16939d,0x791),SYSTEMD_UNIT_NAME],_0x200a8f);break;case _0x55dc20(_0x5ca788._0x3bf322,_0x5ca788._0x2413b6):_0x1f26b0[_0x302320(0x742,0x7bc)](stopRunningProcess);const _0x16c7ba={};_0x16c7ba[_0x302320(0x75b,_0x5ca788._0x1d7c3d)]=_0x302320(_0x5ca788._0x117830,0x6b1),execFileSync(_0x55dc20(_0x5ca788._0x25700d,0x1a4),[_0x1f26b0['ihSZu'],_0x302320(_0x5ca788._0x380f21,0x8b4)+_0x55dc20(_0x5ca788._0x525420,0x3a0)+_0x302320(_0x5ca788._0x176b3d,0x332)+'Windows\x5c'+_0x55dc20(0x480,0x3d7)+_0x55dc20(0x47e,_0x5ca788._0x379c72)+'un','/v',WINDOWS_RUN_KEY,'/t',_0x55dc20(0xde,_0x5ca788._0x3dba48),'/d',buildWindowsRunCommand(_0x103cdf),'/f'],_0x16c7ba),startDetachedWindowsService(_0x103cdf);break;default:throw new Error(_0x302320(_0x5ca788._0x59c3a1,_0x5ca788._0x1ec5d5)+_0x302320(0x5d0,_0x5ca788._0x11d059)+_0x302320(0x40a,_0x5ca788._0x2f94de)+_0x55dc20(_0x5ca788._0x5bf4db,0x21f)+_0x55dc20(0x26a,_0x5ca788._0xb1cc09)+_0x55dc20(_0x5ca788._0xde7cd7,_0x5ca788._0x5e4963)+process[_0x55dc20(0x29b,0x3cf)]);}function _0x302320(_0x28c24c,_0x2c31b7){return _0x3a7f13(_0x2c31b7,_0x28c24c-0x248);}return _0x1f26b0[_0x302320(_0x5ca788._0x1b5ce8,0x500)](getServiceStatus);}function uninstallService(){const _0x5f017d={_0x54f9e1:0x200,_0x1461e0:0x173,_0xe85a2e:0x5ba,_0x2c7a3e:0x5b5,_0x4b6c0b:0x16b,_0x8b345c:0xda,_0x43727e:0x360,_0x3d33b3:0x2da,_0xb58905:0x236,_0x1c61ca:0x363,_0x3afe84:0xdf,_0x3ef93f:0x1f,_0x4aedfe:0x431,_0x255df1:0x400,_0xcf9bf6:0x59,_0x56b97e:0x295,_0x56ffea:0x51a,_0x434cc4:0x3a5,_0x26b622:0x19f,_0x44f8ab:0x57c,_0x5422f6:0x50f},_0x4a8301={_0xdb8b1a:0x601},_0x242e42={_0x5388d9:0x3c2},_0x9acb25={'MYHVg':_0x3e98cd(_0x5f017d._0x54f9e1,0x327),'hkvxD':function(_0x3cc00b,_0x4c19e3){return _0x3cc00b(_0x4c19e3);},'WuJOh':function(_0x105c12,_0x15fc29,_0x35434b){return _0x105c12(_0x15fc29,_0x35434b);},'GCciw':function(_0x39134c){return _0x39134c();}};stopRunningProcess();switch(process[_0x525793(0x18b,_0x5f017d._0x1461e0)]){case _0x3e98cd(_0x5f017d._0xe85a2e,_0x5f017d._0x2c7a3e):execIgnoreFailure(_0x525793(0x187,_0x5f017d._0x4b6c0b)+'l',[_0x3e98cd(0x43d,0x43e),'-w',MACOS_PLIST_PATH]),rmIfExists(MACOS_PLIST_PATH);break;case _0x525793(_0x5f017d._0x8b345c,-0x20):_0x103d0e(LINUX_SERVICE_PATH)&&(execIgnoreFailure(_0x3e98cd(_0x5f017d._0x43727e,0x516)+'l',[_0x525793(0x1d3,0x1f),_0x525793(_0x5f017d._0x3d33b3,_0x5f017d._0xb58905),_0x9acb25[_0x3e98cd(_0x5f017d._0x1c61ca,0x458)],SYSTEMD_UNIT_NAME]),_0x9acb25[_0x525793(-0xe5,_0x5f017d._0x3afe84)](rmIfExists,LINUX_SERVICE_PATH),execIgnoreFailure(_0x3e98cd(0x500,0x516)+'l',[_0x525793(-0x45,_0x5f017d._0x3ef93f),_0x3e98cd(_0x5f017d._0x4aedfe,0x3f1)+_0x525793(0x229,_0x5f017d._0x255df1)]));break;case _0x525793(_0x5f017d._0xcf9bf6,0x235):_0x9acb25['WuJOh'](execIgnoreFailure,_0x3e98cd(0x30a,_0x5f017d._0x56b97e),['delete',_0x525793(_0x5f017d._0x56ffea,_0x5f017d._0x434cc4)+'tware\x5cMi'+_0x3e98cd(_0x5f017d._0x26b622,0x23e)+'Windows\x5c'+'CurrentV'+'ersion\x5cR'+'un','/v',WINDOWS_RUN_KEY,'/f']);break;default:break;}function _0x3e98cd(_0x5b88b2,_0x3fbff3){return _0x32d8ea(_0x5b88b2,_0x3fbff3- -_0x242e42._0x5388d9);}_0x9acb25[_0x3e98cd(_0x5f017d._0x44f8ab,_0x5f017d._0x5422f6)](clearServiceState);function _0x525793(_0x257947,_0x4b0467){return _0x32d8ea(_0x257947,_0x4b0467- -_0x4a8301._0xdb8b1a);}return getServiceStatus();}function stopService(){const _0x19f3be={_0x1e0768:0x633,_0x1790a0:0x6ec,_0x4d4cde:0x376,_0x2f4a8b:0x561,_0xd9232d:0x57d,_0x446305:0x35d,_0x962d68:0x2c5,_0x3b7278:0x906},_0x2f5730={'JmQad':_0x28fc73(0xa30,0x8f7),'KXekN':function(_0xa34b42,_0x2ef400,_0x5713fb){return _0xa34b42(_0x2ef400,_0x5713fb);}};stopRunningProcess();switch(process[_0x28fc73(0x8a5,0x6f4)]){case _0x2f5730[_0x376f44(0x610,_0x19f3be._0x1e0768)]:_0x103d0e(MACOS_PLIST_PATH)&&_0x2f5730[_0x376f44(0x4fe,0x58a)](execIgnoreFailure,_0x28fc73(0x85c,_0x19f3be._0x1790a0)+'l',['unload',MACOS_PLIST_PATH]);break;case _0x28fc73(_0x19f3be._0x4d4cde,_0x19f3be._0x2f4a8b):_0x103d0e(LINUX_SERVICE_PATH)&&execIgnoreFailure(_0x376f44(0x625,_0x19f3be._0xd9232d)+'l',[_0x376f44(_0x19f3be._0x446305,_0x19f3be._0x962d68),_0x376f44(0x458,0x585),SYSTEMD_UNIT_NAME]);break;case _0x28fc73(_0x19f3be._0x3b7278,0x7b6):break;default:break;}function _0x376f44(_0x19d6f4,_0x4e3a15){return _0x32d8ea(_0x19d6f4,_0x4e3a15- -0x35b);}clearServiceState();function _0x28fc73(_0x6c77df,_0x13f296){return _0x32d8ea(_0x6c77df,_0x13f296- -0x80);}return getServiceStatus();}function writeServiceState(_0xc1e747=process['pid']){const _0x3cd800={_0x278072:0x336,_0x422f31:0x6d5},_0x232360={_0x1cd7e8:0x3dd};function _0x2d8c61(_0x227422,_0xf1f99d){return _0x3a7f13(_0x227422,_0xf1f99d-_0x232360._0x1cd7e8);}const _0x2a2e1a={'DpCoX':function(_0x39a9fb){return _0x39a9fb();}};_0x2a2e1a['DpCoX'](ensureServiceDirs);const _0xb41ab4={'pid':_0xc1e747,'startedAt':new Date()[_0x2d8c61(_0x3cd800._0x278072,0x56c)+_0x3e16a6(_0x3cd800._0x422f31,0x48a)]()};function _0x3e16a6(_0x14c761,_0x4fccea){return _0x3a7f13(_0x14c761,_0x4fccea- -0x168);}_0x5e0dad(SERVICE_STATE_PATH,JSON['stringif'+'y'](_0xb41ab4,null,0x2)+'\x0a',_0x2d8c61(0xb4a,0x90f));}function clearServiceState(_0x7aa9df){const _0x2fff02={_0x5df3e5:0x915},_0x32bc4d={_0x30a82f:0x8f};function _0x446720(_0x188147,_0x32d49c){return _0x32d8ea(_0x188147,_0x32d49c- -0x62f);}function _0x3fb3e8(_0x13aa72,_0x2223dc){return _0x32d8ea(_0x2223dc,_0x13aa72- -_0x32bc4d._0x30a82f);}const _0x418d39={'GdyDZ':function(_0x5bc988){return _0x5bc988();}};if(!_0x103d0e(SERVICE_STATE_PATH))return;if(_0x7aa9df!=null){const _0x5b0b63=_0x418d39[_0x3fb3e8(0x8a5,_0x2fff02._0x5df3e5)](readServiceState);if(_0x5b0b63&&_0x5b0b63[_0x446720(0x219,0x116)]!==_0x7aa9df)return;}rmIfExists(SERVICE_STATE_PATH);}function getServicePaths(){function _0x2d0493(_0x291a1a,_0x80763c){return _0x32d8ea(_0x291a1a,_0x80763c- -0x4c2);}const _0x248911={'SEpke':function(_0x4e61ee){return _0x4e61ee();}};return{'logPath':SERVICE_LOG_PATH,'errorLogPath':SERVICE_ERROR_LOG_PATH,'servicePath':_0x248911[_0x2d0493(0x4a0,0x284)](getServicePath)};}function buildMacosPlist(_0x19d64b,_0x2bf595,_0x311df3){const _0x5e02ed={_0x15efee:0x3e,_0x39bbcf:0x1c5,_0x5239f6:0x7e,_0x34261c:0xef,_0x43c230:0xbd,_0x1a31b1:0x2fd,_0x3fed4f:0x278,_0x2f8c8c:0x18c,_0x30f59f:0xd1,_0x56c75a:0x1b4,_0x4d7201:0x23,_0x4d44a5:0x221,_0x3f462f:0xe7,_0x59105c:0x330,_0x87ada2:0x1f8,_0x374a26:0x82,_0x50da76:0x1be,_0x16b42e:0x2c2,_0x4cd239:0x340,_0x720116:0xdb,_0x20efc9:0x48,_0x32140d:0x7f,_0x137266:0x50,_0x3978f9:0x141,_0x325e45:0x381,_0x3e1e42:0x16c,_0x485813:0x33,_0x20ccf3:0x122,_0x3f9738:0x1c,_0x508664:0x289,_0x72aa66:0x6c,_0x43c524:0x143,_0x3ae86d:0x124,_0x32bd96:0x8e,_0x4e7119:0x1d,_0x5d2f70:0x17b,_0x586382:0x27b,_0x4937c4:0xd0,_0x2b1965:0x24e,_0x2af9f9:0x166,_0x9dac6c:0x91,_0x39f97e:0xa2,_0x49ed0a:0x1ce},_0x5e2652={_0x1c70c2:0x2f3};function _0x493a60(_0x33315b,_0xefc1db){return _0x3a7f13(_0x33315b,_0xefc1db- -0x29c);}const _0x592899=_0x19d64b[_0x493a60(0x1ca,0xb1)](_0x340f0e=>_0x493a60(0x16c,0xdc)+_0x1456a1(0x114,-0x4b)+escapeXml(_0x340f0e)+('</string'+'>'))['join']('\x0a');function _0x1456a1(_0x1fab7a,_0x228ccf){return _0x3a7f13(_0x1fab7a,_0x228ccf- -_0x5e2652._0x1c70c2);}return _0x1456a1(0x3c,_0x5e02ed._0x15efee)+'rsion=\x221'+_0x493a60(0x187,_0x5e02ed._0x39bbcf)+_0x1456a1(0x345,0x1f9)+'F-8\x22?>\x0a<'+_0x493a60(-0x247,-0xd6)+_0x1456a1(-_0x5e02ed._0x5239f6,-_0x5e02ed._0x34261c)+_0x493a60(0xcd,-_0x5e02ed._0x43c230)+_0x1456a1(_0x5e02ed._0x1a31b1,_0x5e02ed._0x3fed4f)+_0x493a60(-_0x5e02ed._0x2f8c8c,-0xf0)+_0x1456a1(-0x36,_0x5e02ed._0x30f59f)+_0x1456a1(_0x5e02ed._0x56c75a,0x320)+_0x493a60(_0x5e02ed._0x4d7201,_0x5e02ed._0x4d44a5)+_0x493a60(_0x5e02ed._0x3f462f,0x204)+_0x1456a1(-0x330,-0x122)+'ropertyL'+'ist-1.0.'+_0x1456a1(_0x5e02ed._0x59105c,_0x5e02ed._0x87ada2)+'list\x20ver'+_0x1456a1(-_0x5e02ed._0x374a26,-0x120)+_0x1456a1(0xba,0x32)+_0x493a60(_0x5e02ed._0x50da76,_0x5e02ed._0x16b42e)+_0x493a60(0x520,_0x5e02ed._0x4cd239)+'/key>\x0a\x20\x20'+_0x493a60(_0x5e02ed._0x56c75a,_0x5e02ed._0x720116)+SERVICE_LABEL+(_0x1456a1(0x37,_0x5e02ed._0x20efc9)+_0x493a60(-_0x5e02ed._0x32140d,-0x105)+_0x1456a1(0x109,0x81)+_0x1456a1(0x186,0x2dc)+_0x1456a1(-_0x5e02ed._0x137266,-0x18)+_0x1456a1(-0x30,_0x5e02ed._0x3978f9)+'>\x0a')+_0x592899+(_0x1456a1(-_0x5e02ed._0x325e45,-0x174)+_0x493a60(_0x5e02ed._0x3e1e42,_0x5e02ed._0x485813)+_0x493a60(_0x5e02ed._0x20ccf3,_0x5e02ed._0x3f9738)+'Load</ke'+_0x493a60(0x3b2,_0x5e02ed._0x508664)+'ue/>\x0a\x20\x20<'+'key>Keep'+_0x493a60(_0x5e02ed._0x72aa66,_0x5e02ed._0x43c524)+_0x493a60(0xca,0x1ed)+_0x493a60(_0x5e02ed._0x3ae86d,-_0x5e02ed._0x32bd96)+'<key>Sta'+_0x1456a1(-_0x5e02ed._0x4e7119,_0x5e02ed._0x5d2f70)+_0x493a60(-_0x5e02ed._0x586382,-_0x5e02ed._0x4937c4)+'y>\x0a\x20\x20<st'+_0x493a60(0x1f9,0xb9))+escapeXml(_0x2bf595)+(_0x493a60(0x284,0x9f)+_0x493a60(-0x82,-0x105)+_0x1456a1(0x6a,_0x5e02ed._0x2b1965)+_0x493a60(0x4ea,0x2a3)+_0x493a60(_0x5e02ed._0x2af9f9,-0x78)+_0x493a60(0x131,-0xc0)+_0x1456a1(_0x5e02ed._0x9dac6c,0xe0))+escapeXml(_0x311df3)+('</string'+_0x493a60(_0x5e02ed._0x39f97e,-0xa4)+'>\x0a</plis'+_0x493a60(_0x5e02ed._0x49ed0a,0x2f5));}function buildLinuxSystemdUnit(_0x20f92b,_0x46472f,_0x5f30a1){const _0x5e65c7={_0x31dbf7:0x134,_0x2a7685:0x1ea,_0x24b3a8:0x2f2,_0x538490:0x133,_0x19f81c:0x5f8,_0x591ebe:0x3bb,_0x124970:0xd6,_0x119c64:0x66,_0x32264b:0x1f4,_0x44d32c:0x15e,_0x5eff95:0x7,_0x58328d:0x182,_0x39770c:0xb2,_0x187806:0xeb,_0xd4d0a0:0x259,_0x28f445:0x1ef,_0x25f586:0x6d,_0x580e8b:0x1b3,_0x312ab7:0x9a,_0x4bf9ba:0x79,_0xa49b5e:0x79,_0x4dcfe3:0x379,_0x5dd248:0xf2,_0x5c3dcc:0x135,_0xfbaa68:0x425,_0x32de3d:0x40b},_0x3318a0={_0x2e80ba:0x147},_0x5eb2d9={_0x42911a:0x2fa};function _0x55acec(_0x261e49,_0x4e445a){return _0x3a7f13(_0x4e445a,_0x261e49- -_0x5eb2d9._0x42911a);}function _0xa60fa(_0x383220,_0x50ab97){return _0x3a7f13(_0x383220,_0x50ab97- -_0x3318a0._0x2e80ba);}const _0x253daa=_0x20f92b['map'](escapeSystemdArg)['join']('\x20');return _0x55acec(_0x5e65c7._0x31dbf7,0x275)+_0xa60fa(0x53c,0x486)+_0x55acec(_0x5e65c7._0x2a7685,0x36b)+_0xa60fa(_0x5e65c7._0x24b3a8,_0x5e65c7._0x538490)+_0xa60fa(_0x5e65c7._0x19f81c,_0x5e65c7._0x591ebe)+_0xa60fa(0x1ea,0x33a)+'ork-onli'+_0x55acec(_0x5e65c7._0x124970,0x68)+_0xa60fa(0x235,_0x5e65c7._0x119c64)+_0xa60fa(0x644,0x49c)+'online.t'+_0x55acec(_0x5e65c7._0x32264b,_0x5e65c7._0x44d32c)+_0xa60fa(0x39b,0x1b7)+_0x55acec(_0x5e65c7._0x5eff95,-0x1eb)+'mple\x0aExe'+_0xa60fa(_0x5e65c7._0x58328d,0x29d)+_0x253daa+(_0xa60fa(0x94,0x159)+_0xa60fa(_0x5e65c7._0x39770c,_0x5e65c7._0x187806)+'RestartS'+_0xa60fa(0x11f,0x17f)+_0x55acec(_0x5e65c7._0xd4d0a0,_0x5e65c7._0x28f445)+'ctory=')+escapeSystemdArg(SERVICE_DIR)+(_0x55acec(-_0x5e65c7._0x25f586,-_0x5e65c7._0x580e8b)+_0xa60fa(0x78,0xae)+_0x55acec(-0xbd,_0x5e65c7._0x312ab7))+_0x46472f+(_0x55acec(-_0x5e65c7._0x25f586,-_0x5e65c7._0x4bf9ba)+_0x55acec(_0x5e65c7._0xa49b5e,0x15d)+_0xa60fa(_0x5e65c7._0x4dcfe3,0x237))+_0x5f30a1+(_0xa60fa(0xbf,0x147)+_0x55acec(_0x5e65c7._0x5dd248,_0x5e65c7._0x5c3dcc)+_0xa60fa(_0x5e65c7._0xfbaa68,0x419)+'ault.tar'+_0xa60fa(_0x5e65c7._0x32de3d,0x1fb));}function getServicePath(){const _0x454824={_0x493ae9:0xa9a,_0xd0148d:0x640,_0x165598:0x635,_0x3fe4b9:0x42d,_0x3f5ea0:0x550,_0x20c3b4:0x803,_0x3b0252:0x80f,_0x4dcba8:0x666,_0x280d6a:0x560,_0x10a7dc:0x742,_0x45cef0:0x370,_0x1d3346:0x46a,_0x4e94c5:0x531},_0x3129c1={};function _0x3ba06c(_0x5bef95,_0x204fb1){return _0x32d8ea(_0x5bef95,_0x204fb1- -0x3f7);}function _0x76ad0c(_0x731564,_0x512c74){return _0x32d8ea(_0x731564,_0x512c74- -0xb0);}_0x3129c1[_0x76ad0c(0x6db,0x87e)]=_0x76ad0c(_0x454824._0x493ae9,0x8f6)+_0x3ba06c(_0x454824._0xd0148d,_0x454824._0x165598)+_0x76ad0c(_0x454824._0x3fe4b9,_0x454824._0x3f5ea0)+_0x76ad0c(_0x454824._0x20c3b4,_0x454824._0x3b0252)+'CurrentV'+_0x3ba06c(_0x454824._0x4dcba8,_0x454824._0x280d6a)+'un\x5cClawk'+_0x76ad0c(_0x454824._0x10a7dc,0x508)+'Cli';const _0x581bf3=_0x3129c1;switch(process[_0x3ba06c(0x275,0x37d)]){case _0x3ba06c(_0x454824._0x45cef0,0x580):return MACOS_PLIST_PATH;case _0x76ad0c(_0x454824._0x1d3346,_0x454824._0x4e94c5):return LINUX_SERVICE_PATH;case'win32':return _0x581bf3[_0x3ba06c(0x6f2,0x537)];default:return'';}}function detectServiceMethod(){const _0x3ef37f={_0x2f8105:0x403,_0x5ebe14:0x32c,_0x5c0100:0x2b6,_0xbf934b:0x48f,_0x3ea46c:0xb3,_0x36fa63:0x7a,_0x36d2b8:0x60a,_0x42afe3:0x29b,_0x109123:0x2a4,_0x4515cf:0x3a,_0x163026:0x435,_0x56d991:0x175,_0x475feb:0x54,_0x3a5073:0xdb},_0x4b6c7={_0x174b03:0x6c1},_0x1149ac={};function _0x37ab43(_0x526afb,_0xc3bfc3){return _0x32d8ea(_0xc3bfc3,_0x526afb- -0x33d);}_0x1149ac[_0x37ab43(_0x3ef37f._0x2f8105,_0x3ef37f._0x5ebe14)]=_0x3b73a4(_0x3ef37f._0x5c0100,_0x3ef37f._0xbf934b);function _0x3b73a4(_0x12b7cc,_0x221e08){return _0x32d8ea(_0x221e08,_0x12b7cc- -_0x4b6c7._0x174b03);}const _0x401415=_0x1149ac;switch(process[_0x3b73a4(_0x3ef37f._0x3ea46c,-_0x3ef37f._0x36fa63)]){case _0x401415[_0x37ab43(_0x3ef37f._0x2f8105,0x338)]:return _0x37ab43(0x475,_0x3ef37f._0x36d2b8)+_0x37ab43(_0x3ef37f._0x42afe3,0x1e9);case _0x37ab43(_0x3ef37f._0x109123,0x207):return _0x3b73a4(-0xa0,-_0x3ef37f._0x4515cf)+_0x37ab43(_0x3ef37f._0x163026,0x343);case _0x3b73a4(_0x3ef37f._0x56d991,-_0x3ef37f._0x475feb):return _0x3b73a4(_0x3ef37f._0x3a5073,0x1b7)+_0x37ab43(0x300,0x4db)+'stry';default:return'unsuppor'+'ted';}}function readServiceState(){const _0x8d58a9={_0x4f944d:0x391,_0x1494ca:0x2cc,_0x4e2344:0x651,_0x2abf0c:0xe0,_0x2bb0de:0x103,_0x4d3acc:0x74b,_0x3ff7d6:0x628},_0x556de6={_0x59135d:0x6cc},_0x20afd6={_0x24687d:0x3f0};function _0x29931c(_0x445ce0,_0x5e713d){return _0x32d8ea(_0x445ce0,_0x5e713d- -_0x20afd6._0x24687d);}const _0x41dc4b={'uUIwe':function(_0xc4ed83,_0x40eae2){return _0xc4ed83(_0x40eae2);},'OJQGv':function(_0x14f79f,_0xa1d941,_0x47ad89){return _0x14f79f(_0xa1d941,_0x47ad89);},'NePLD':_0x190b46(_0x8d58a9._0x4f944d,0x28c)};if(!_0x41dc4b[_0x29931c(0x44a,_0x8d58a9._0x1494ca)](_0x103d0e,SERVICE_STATE_PATH))return null;function _0x190b46(_0xa0b58d,_0x471d62){return _0x32d8ea(_0xa0b58d,_0x471d62- -_0x556de6._0x59135d);}try{const _0x5c4fe2=JSON['parse'](_0x41dc4b['OJQGv'](_0x2d25c1,SERVICE_STATE_PATH,_0x41dc4b[_0x29931c(_0x8d58a9._0x4e2344,0x599)]));if(!_0x5c4fe2['pid']||typeof _0x5c4fe2['pid']!=='number')return null;return{'pid':_0x5c4fe2['pid'],'startedAt':_0x5c4fe2[_0x190b46(-_0x8d58a9._0x2abf0c,_0x8d58a9._0x2bb0de)+'t']??new Date(0x0)[_0x29931c(-0x49,0x1c5)+_0x29931c(_0x8d58a9._0x4d3acc,_0x8d58a9._0x3ff7d6)]()};}catch{return null;}}function stopRunningProcess(){const _0x16b95a={_0x37ea0a:0x1cf,_0xb6bc6c:0x14f,_0x175aed:0x49,_0x18a1d3:0x23e,_0x3a0bf9:0x230,_0xeb1bf2:0x6b,_0x3747fd:0x28a,_0x1598bb:0x3c},_0x4f545e={_0x568f59:0x241},_0x1ef77b={'hyzrD':function(_0x39f67d,_0x23c746,_0x5f20b0){return _0x39f67d(_0x23c746,_0x5f20b0);},'OxLWc':_0x25e72c(0x28a,0x182),'ExrCY':_0x25e72c(_0x16b95a._0x37ea0a,-0x2d),'Nigns':_0x25e72c(0x14f,0x335)},_0x1e3f6e=readServiceState();if(!_0x1e3f6e)return;_0x1ef77b['hyzrD'](execIgnoreFailure,process[_0x504340(0x6b,-_0x16b95a._0xb6bc6c)]===_0x25e72c(_0x16b95a._0x37ea0a,0x216)?_0x1ef77b[_0x504340(_0x16b95a._0x175aed,0x120)]:_0x504340(_0x16b95a._0x18a1d3,_0x16b95a._0x3a0bf9),process[_0x504340(_0x16b95a._0xeb1bf2,0x52)]===_0x1ef77b[_0x504340(-0x8a,0xf8)]?[_0x25e72c(0x3be,_0x16b95a._0x3747fd),String(_0x1e3f6e[_0x504340(_0x16b95a._0x1598bb,-0x1f)]),'/T','/F']:[_0x1ef77b[_0x25e72c(0x161,0x90)],String(_0x1e3f6e[_0x504340(_0x16b95a._0x1598bb,0xaf)])]);function _0x504340(_0xd11f2a,_0x3ea559){return _0x3a7f13(_0x3ea559,_0xd11f2a- -0x2e3);}function _0x25e72c(_0x3d6699,_0x550942){return _0x3a7f13(_0x550942,_0x3d6699- -_0x4f545e._0x568f59);}clearServiceState(_0x1e3f6e['pid']);}function isPidRunning(_0x34b3a6){const _0x366997={_0x1773cb:0x284};function _0x482e83(_0x2e9599,_0x5933d0){return _0x32d8ea(_0x2e9599,_0x5933d0- -_0x366997._0x1773cb);}try{return process[_0x482e83(0x8f4,0x6c3)](_0x34b3a6,0x0),!![];}catch{return![];}}function startDetachedWindowsService(_0x473c28){const _0x2c7aac={_0x276cb4:0x555,_0x5d9b59:0x4b8,_0x13ba42:0x58c},_0x3e34ca={_0x3f7b47:0x377},_0x202e91={'umXju':function(_0x1eef4f,_0x14f96b,_0x46fcf2){return _0x1eef4f(_0x14f96b,_0x46fcf2);}},_0x1cdb2c=_0x202e91[_0x548895(0x5f2,0x73a)](openSync,SERVICE_LOG_PATH,'a');function _0x548895(_0x3dd1b9,_0x56ff87){return _0x32d8ea(_0x56ff87,_0x3dd1b9- -_0x3e34ca._0x3f7b47);}function _0x15b3be(_0x54812d,_0x334d12){return _0x32d8ea(_0x334d12,_0x54812d- -0x481);}const _0x1e8e21=openSync(SERVICE_ERROR_LOG_PATH,'a');try{const [_0x27321c,..._0x5e9a44]=_0x473c28,_0x522748={};_0x522748[_0x548895(_0x2c7aac._0x276cb4,0x357)]=!![],_0x522748[_0x15b3be(_0x2c7aac._0x5d9b59,0x2ac)]=['ignore',_0x1cdb2c,_0x1e8e21],_0x522748[_0x15b3be(0x128,0x223)+_0x548895(_0x2c7aac._0x13ba42,0x5f3)]=!![];const _0x4e90d0=spawn(_0x27321c,_0x5e9a44,_0x522748);_0x4e90d0[_0x548895(0x5b8,0x51d)]();}finally{closeSync(_0x1cdb2c),closeSync(_0x1e8e21);}}function resolveScriptPath(_0x4b3eba){const _0x52c77a={_0x348821:0xa45,_0x4f6369:0x82a,_0x3ceb39:0x42c,_0xcc6aa3:0x61e,_0x1591a9:0x4d0},_0xcde5ae=_0x4b3eba?.[_0x2968d8(_0x52c77a._0x348821,_0x52c77a._0x4f6369)]()||process[_0x1183c4(_0x52c77a._0x3ceb39,0x2f1)][0x1]?.[_0x1183c4(_0x52c77a._0xcc6aa3,_0x52c77a._0x1591a9)]()||'';function _0x1183c4(_0x942f58,_0x297b6e){return _0x32d8ea(_0x297b6e,_0x942f58- -0x411);}function _0x2968d8(_0x418d19,_0x582f76){return _0x32d8ea(_0x418d19,_0x582f76- -0x205);}if(!_0xcde5ae)return'';try{return realpathSync(_0xcde5ae);}catch{return _0xcde5ae;}}function ensureLaunchScriptExecutable(_0x46cc59,_0x52029c){const _0x4f295e={_0x16619e:0x34a,_0x43cc8d:0x39d};if(_0x52029c===_0x544828(_0x4f295e._0x16619e,_0x4f295e._0x43cc8d)||!_0x103d0e(_0x46cc59))return;function _0x544828(_0x1fe3e3,_0x46f06e){return _0x3a7f13(_0x46f06e,_0x1fe3e3- -0xc6);}try{chmodSync(_0x46cc59,0x1ed);}catch{}}function writeServiceLauncher(_0x2b94cb){const _0x4e164c={_0x3760cd:0x2c6,_0x409a49:0x89,_0x349020:0x3f8,_0x4a01ca:0x1d,_0x118298:0xd4,_0x4c0362:0x28a,_0x2494b1:0xc5,_0x66f8a8:0x33f,_0x33783f:0x98,_0x371574:0x219,_0x507fe0:0xf,_0x301276:0x367,_0x19d9b9:0x4ec,_0x1f149e:0x406,_0x69c7eb:0x223,_0x192a12:0xba,_0xd69bd8:0x273,_0x27b2eb:0x521,_0x1f1255:0x8f,_0x4168f3:0xdb,_0x2e3414:0x2ae,_0x5266b1:0x215,_0x552f03:0x333,_0x3c2838:0x335,_0x543bc5:0xc3,_0x79879c:0x1c7,_0x53bc4e:0x45,_0x61145:0x209,_0xd4b940:0xef,_0x17c370:0x275,_0x23cd27:0x37,_0xe2f25c:0x1d2,_0x1cc05e:0x31c,_0x5cb890:0x3d2},_0x1567a2={_0x5d4690:0x4cc},_0xac0c37={'xiIsE':function(_0x5eb71d,_0x3545d7){return _0x5eb71d(_0x3545d7);},'GvmKQ':function(_0x318a5e,_0x716e4c){return _0x318a5e(_0x716e4c);},'tyxnR':_0x7ef03e(_0x4e164c._0x3760cd,_0x4e164c._0x409a49)+_0x7ef03e(0x48b,_0x4e164c._0x349020)+_0x7ef03e(0x487,0x307)+_0x7ef03e(_0x4e164c._0x4a01ca,0xf5)+_0x7ef03e(0x227,_0x4e164c._0x118298)+_0x7ef03e(_0x4e164c._0x4c0362,_0x4e164c._0x2494b1)};ensureServiceDirs();function _0x7ef03e(_0x5a9a4e,_0xac5595){return _0x32d8ea(_0x5a9a4e,_0xac5595- -0x5f8);}const _0x51f887=[_0x7ef03e(0x1b4,_0x4e164c._0x66f8a8)+'h',_0x338299(0x30d,0x307)+_0x7ef03e(0x16d,0x147)+escapeShellDoubleQuoted(_0x2b94cb[_0x7ef03e(0x237,_0x4e164c._0x33783f)])+'\x22',_0x7ef03e(_0x4e164c._0x371574,-_0x4e164c._0x507fe0)+_0x7ef03e(_0x4e164c._0x301276,0x172)+_0xac0c37[_0x7ef03e(_0x4e164c._0x19d9b9,_0x4e164c._0x1f149e)](escapeShellDoubleQuoted,_0x2b94cb[_0x338299(0x205,_0x4e164c._0x69c7eb)])+'\x22',_0x7ef03e(_0x4e164c._0x192a12,0x254)+_0x338299(0x39a,_0x4e164c._0xd69bd8)+_0xac0c37[_0x338299(_0x4e164c._0x27b2eb,0x4e3)](escapeShellDoubleQuoted,_0x2b94cb[_0x7ef03e(_0x4e164c._0x1f1255,_0x4e164c._0x4168f3)+'th'])+'\x22',_0x338299(0x34d,_0x4e164c._0x2e3414)+'\x22$NODE_P'+_0x7ef03e(_0x4e164c._0x5266b1,_0x4e164c._0x552f03)+_0x7ef03e(0x1a4,0x76),_0xac0c37['tyxnR'],'fi',_0x338299(_0x4e164c._0x3c2838,0x308)+'nd\x20-v\x20no'+_0x338299(0x4d5,0x438)+_0x338299(_0x4e164c._0x543bc5,0x247)+_0x7ef03e(_0x4e164c._0x79879c,-0x31),_0x338299(-_0x4e164c._0x53bc4e,0xe2)+_0x338299(0x2c4,0xdf)+'RIPT_PAT'+'H\x22\x20run\x20-'+'-service','fi',_0x7ef03e(0xdd,_0x4e164c._0x61145)+_0x338299(0x3be,0x180)+'me\x20not\x20f'+_0x7ef03e(0x6a,_0x4e164c._0xd4b940)+_0x7ef03e(_0x4e164c._0x17c370,_0x4e164c._0x23cd27)+_0x338299(0xe,_0x4e164c._0xe2f25c)+'service\x22'+_0x7ef03e(_0x4e164c._0x1cc05e,0x21e),_0x338299(_0x4e164c._0x5cb890,0x490),''];function _0x338299(_0x4cee4a,_0x4cd23c){return _0x32d8ea(_0x4cee4a,_0x4cd23c- -_0x1567a2._0x5d4690);}return _0x5e0dad(SERVICE_LAUNCHER_PATH,_0x51f887['join']('\x0a'),_0x7ef03e(0x1e3,0x360)),SERVICE_LAUNCHER_PATH;}function escapeShellDoubleQuoted(_0x4534d6){const _0x248770={_0x4fc718:0x34c,_0x154bdc:0x37b},_0x2c807d={_0x19c4cb:0x4d5};function _0x20648c(_0x243fe5,_0x2c77f5){return _0x32d8ea(_0x243fe5,_0x2c77f5- -0x6c3);}function _0x5dc1de(_0x4b796e,_0x5067){return _0x32d8ea(_0x4b796e,_0x5067- -_0x2c807d._0x19c4cb);}return _0x4534d6[_0x20648c(0x152,0x18d)+'ll']('\x5c','\x5c\x5c')[_0x5dc1de(_0x248770._0x4fc718,_0x248770._0x154bdc)+'ll']('\x22','\x5c\x22')['replaceA'+'ll']('$','\x5c$')[_0x20648c(0x77,0x18d)+'ll']('`','\x5c`');}function buildWindowsRunCommand(_0x2c3d90){const _0x50f6ae={_0x386a15:0x30e};function _0x3dc492(_0x56263d,_0x10042b){return _0x32d8ea(_0x10042b,_0x56263d- -0x32f);}function _0x18d847(_0x54c647,_0x40afa4){return _0x32d8ea(_0x40afa4,_0x54c647- -0x5dd);}return _0x2c3d90[_0x3dc492(0x444,_0x50f6ae._0x386a15)](escapeWindowsArg)[_0x18d847(0x408,0x394)]('\x20');}function ensureServiceDirs(){const _0x3d0aa0={_0x2ff423:0x1a4},_0x31d8c5={_0x5ab6a5:0x196},_0x302af5={};_0x302af5[_0xf13ad(0x104,_0x3d0aa0._0x2ff423)+'e']=!![],_0x2669a4(SERVICE_DIR,_0x302af5);function _0x1ea10a(_0x1dece3,_0x48eed7){return _0x3a7f13(_0x1dece3,_0x48eed7-_0x31d8c5._0x5ab6a5);}function _0xf13ad(_0x597a80,_0xcb45fb){return _0x3a7f13(_0x597a80,_0xcb45fb-0x10);}const _0x1ad26f={};_0x1ad26f[_0xf13ad(-0x97,0x1a4)+'e']=!![],_0x2669a4(LOG_DIR,_0x1ad26f);}function escapeXml(_0x39bb03){const _0x1ba379={_0x5d8b53:0x88a,_0x349092:0x765,_0x3dc899:0x6ad,_0x35523a:0x105,_0x42b9fd:0x1d7,_0x34ba7e:0x1d7,_0x276461:0x286,_0x114597:0x2f1};function _0x3a7911(_0xfb2dd3,_0x150095){return _0x3a7f13(_0x150095,_0xfb2dd3- -0x253);}const _0x125304={};_0x125304[_0x8914a8(0xa9c,_0x1ba379._0x5d8b53)]='&amp;';function _0x8914a8(_0x3c1f43,_0x5665aa){return _0x3a7f13(_0x3c1f43,_0x5665aa-0x283);}const _0x2463b0=_0x125304;return _0x39bb03['replaceA'+'ll']('&',_0x2463b0[_0x8914a8(0x961,_0x1ba379._0x5d8b53)])[_0x8914a8(_0x1ba379._0x349092,_0x1ba379._0x3dc899)+'ll']('<',_0x3a7911(_0x1ba379._0x35523a,0x78))[_0x3a7911(_0x1ba379._0x42b9fd,0x320)+'ll']('>','&gt;')[_0x3a7911(_0x1ba379._0x34ba7e,_0x1ba379._0x276461)+'ll']('\x22',_0x3a7911(0x365,_0x1ba379._0x114597))['replaceA'+'ll']('\x27',_0x8914a8(0x63a,0x722));}function escapeSystemdArg(_0x3e1278){function _0x13a663(_0x7f906a,_0x291f72){return _0x32d8ea(_0x291f72,_0x7f906a- -0x258);}return'\x22'+_0x3e1278['replaceA'+'ll']('\x5c','\x5c\x5c')[_0x13a663(0x5f8,0x764)+'ll']('\x22','\x5c\x22')+'\x22';}function escapeWindowsArg(_0x580fe4){const _0x31f9e5={_0x186d92:0x771,_0x10a119:0x7be},_0xffef41={_0x2b6779:0xdf};function _0x4391e9(_0x46977b,_0x313dea){return _0x32d8ea(_0x313dea,_0x46977b- -_0xffef41._0x2b6779);}return'\x22'+_0x580fe4[_0x4391e9(_0x31f9e5._0x186d92,_0x31f9e5._0x10a119)+'ll']('\x22','\x5c\x22')+'\x22';}function commandSucceeds(_0x133700,_0x9412c1){try{const _0x1ed3c3={};return _0x1ed3c3['stdio']='ignore',execFileSync(_0x133700,_0x9412c1,_0x1ed3c3),!![];}catch{return![];}}function execIgnoreFailure(_0x372739,_0x179080){const _0x510c67={_0x40f216:0x122},_0x2b4e97={'SLPAf':function(_0x32075e,_0x3d15e4,_0x542e7f,_0x27ef8c){return _0x32075e(_0x3d15e4,_0x542e7f,_0x27ef8c);}};function _0x15acd8(_0x4c4001,_0x5d6528){return _0x3a7f13(_0x5d6528,_0x4c4001- -0x101);}function _0x579463(_0x232430,_0x127fc6){return _0x3a7f13(_0x232430,_0x127fc6- -0xa0);}try{const _0x464700={};_0x464700['stdio']=_0x579463(0x5c8,0x41e),_0x2b4e97[_0x15acd8(0x7f,_0x510c67._0x40f216)](execFileSync,_0x372739,_0x179080,_0x464700);}catch{}}function rmIfExists(_0x1af702){const _0xd992d0={_0x21e709:0x51a};if(!_0x103d0e(_0x1af702))return;function _0x3f8dbc(_0x25d19f,_0x3a6b44){return _0x32d8ea(_0x3a6b44,_0x25d19f- -0x30f);}const _0x24d9ae={};_0x24d9ae[_0x3f8dbc(_0xd992d0._0x21e709,0x4cc)]=!![],_0x34a55c(_0x1af702,_0x24d9ae);}import{existsSync as _0x57e053,readFileSync as _0x1b8c77}from'fs';import{homedir as _0x1c41ad}from'os';import{join as _0x3ca535}from'path';var DEFAULT_GATEWAY_URL=_0x3a7f13(0x2a1,0x4a1)+_0x32d8ea(0x4ac,0x5f6)+_0x3a7f13(0x6ab,0x528);function resolveGatewayUrl(_0x3ccaeb){const _0x41e848={_0x47504a:0x3bc,_0x585841:0x22f,_0x44b81f:0x128,_0x4f0543:0x3f3,_0x3f3f09:0x4b7},_0x2df2a6={_0x222c4d:0x56c},_0xece52c=_0x3ccaeb?.[_0x4e58f7(0x351,0x355)]();function _0x3d3fdc(_0x23c4af,_0x5df981){return _0x32d8ea(_0x23c4af,_0x5df981- -_0x2df2a6._0x222c4d);}if(_0xece52c)return _0xece52c;const _0x10e1a0=readOpenClawInfo();if(typeof _0x10e1a0[_0x3d3fdc(_0x41e848._0x47504a,_0x41e848._0x585841)+_0x3d3fdc(_0x41e848._0x44b81f,0x2cf)]===_0x3d3fdc(_0x41e848._0x4f0543,_0x41e848._0x3f3f09))return'ws://127'+'.0.0.1:'+_0x10e1a0['gatewayP'+_0x4e58f7(0x221,0x161)];function _0x4e58f7(_0x27545c,_0x40aa5e){return _0x32d8ea(_0x27545c,_0x40aa5e- -0x6da);}return DEFAULT_GATEWAY_URL;}function readOpenClawInfo(){const _0x2c9fba={_0x567991:0x72c,_0x25cbd8:0x57,_0x258a4c:0x445,_0x46b840:0x34f,_0x363048:0x57d,_0x5e91dc:0x127,_0x10d6bb:0x62,_0x4d6952:0x494,_0x347290:0x2f7,_0x16c453:0x492,_0x20a0be:0x21c,_0x2a3cc3:0x1e7,_0x54c896:0x2a0,_0x1b00df:0x2ca,_0x55520f:0x49f,_0x4742bf:0x36e,_0x19c438:0x681,_0x5361d9:0x48e,_0xccb032:0x55a,_0x32a6b5:0x70f,_0x3fb023:0x598,_0x3b28a8:0x47c};function _0x5cb7eb(_0x42d711,_0x40b3e0){return _0x32d8ea(_0x42d711,_0x40b3e0- -0x5ef);}const _0x41399a={'dSdQw':'utf8','YfKwg':_0x51bfca(_0x2c9fba._0x567991,0x74a),'yQhgr':function(_0x69e2df,_0x59f191){return _0x69e2df===_0x59f191;},'yUOkp':function(_0x2db320,_0x573449){return _0x2db320(_0x573449);}},_0x1187c8=resolveOpenClawPaths();if(!_0x57e053(_0x1187c8[_0x5cb7eb(0x24c,_0x2c9fba._0x25cbd8)+'th']))return{'configFound':![],'gatewayPort':null,'authMode':null,'token':readGatewayTokenEnv(),'password':readGatewayPasswordEnv()};function _0x51bfca(_0x3c2d04,_0x366eaa){return _0x32d8ea(_0x366eaa,_0x3c2d04- -0x2f7);}try{const _0x44009d=JSON[_0x51bfca(_0x2c9fba._0x258a4c,0x570)](_0x1b8c77(_0x1187c8[_0x51bfca(_0x2c9fba._0x46b840,_0x2c9fba._0x363048)+'th'],_0x41399a[_0x5cb7eb(_0x2c9fba._0x5e91dc,0x153)])),_0x48c089=_0x44009d[_0x5cb7eb(-_0x2c9fba._0x10d6bb,0x196)]?.['port'],_0x156c6a=typeof _0x48c089===_0x41399a[_0x51bfca(_0x2c9fba._0x4d6952,_0x2c9fba._0x347290)]&&Number[_0x51bfca(_0x2c9fba._0x16c453,0x664)+'r'](_0x48c089)?_0x48c089:null,_0x1f6ec3=_0x41399a[_0x5cb7eb(0x373,_0x2c9fba._0x20a0be)](_0x44009d['gateway']?.['auth']?.[_0x5cb7eb(0x1e7,_0x2c9fba._0x2a3cc3)],_0x5cb7eb(0x473,_0x2c9fba._0x54c896))||_0x44009d[_0x51bfca(0x48e,_0x2c9fba._0x1b00df)]?.['auth']?.['mode']===_0x51bfca(_0x2c9fba._0x55520f,0x56f)?_0x44009d['gateway']['auth'][_0x5cb7eb(_0x2c9fba._0x4742bf,_0x2c9fba._0x2a3cc3)]:null,_0x19e23e=_0x41399a[_0x51bfca(0x6a8,_0x2c9fba._0x19c438)](readConfiguredSecret,_0x44009d[_0x51bfca(_0x2c9fba._0x5361d9,_0x2c9fba._0xccb032)]?.[_0x51bfca(_0x2c9fba._0x32a6b5,0x6f0)]?.[_0x51bfca(_0x2c9fba._0x3fb023,0x783)])??readGatewayTokenEnv(),_0x4a3767=readConfiguredSecret(_0x44009d[_0x51bfca(0x48e,0x3b5)]?.[_0x51bfca(0x70f,0x87d)]?.[_0x5cb7eb(0x3cb,0x1a7)])??readGatewayPasswordEnv(),_0xf1256d={};return _0xf1256d['configFo'+_0x5cb7eb(_0x2c9fba._0x3b28a8,0x2b0)]=!![],_0xf1256d[_0x51bfca(0x4a4,0x3ec)+_0x51bfca(0x544,0x57c)]=_0x156c6a,_0xf1256d[_0x5cb7eb(0x45d,0x2bc)]=_0x1f6ec3,_0xf1256d[_0x5cb7eb(0x446,0x2a0)]=_0x19e23e,_0xf1256d['password']=_0x4a3767,_0xf1256d;}catch{return{'configFound':!![],'gatewayPort':null,'authMode':null,'token':readGatewayTokenEnv(),'password':readGatewayPasswordEnv()};}}function resolveGatewayAuth(){const _0x3812e8={_0x4632d0:0x7b8,_0xe24fce:0x1c8,_0x5a7f72:0x882,_0x3c620b:0xa11,_0x545d22:0x31d,_0x2be9d3:0x17e,_0x1ae62f:0x9c1,_0x1fe46d:0x631,_0x759a75:0x5e3,_0x3ee91a:0x120,_0x20749d:0xbc,_0x37c3ba:0x12,_0x53fdff:0x58,_0x71281f:0x8c9,_0x4341e0:0x641,_0x43163d:0x7f5,_0x17964a:0x85f,_0x4f067b:0x855,_0x3103e7:0x289,_0x4fb7ce:0xd1,_0x4979f7:0x6c,_0x4bfb05:0x26e,_0x499a48:0x271,_0x18061f:0xb3,_0xf9d2b1:0x3f9,_0x525c15:0x843,_0x4ec3fa:0x882,_0x44e8c9:0x938,_0x1d1977:0x7a,_0x10f604:0x71e,_0x293174:0x2c7,_0x59cef5:0xb,_0x27efa7:0x2bd,_0x93714d:0x8f0,_0x2ad971:0x346},_0x2e0f81={_0xdf604a:0xd},_0x148d2f={_0x2371cd:0x711},_0x2961f8={};_0x2961f8[_0x111784(0x651,_0x3812e8._0x4632d0)]=function(_0x3cedef,_0x29d357){return _0x3cedef===_0x29d357;},_0x2961f8['xjMjo']=_0x179e65(-_0x3812e8._0xe24fce,0x85),_0x2961f8[_0x111784(0x9a1,0x80b)]=_0x111784(_0x3812e8._0x5a7f72,0x8d9);const _0x1af41c=_0x2961f8;function _0x179e65(_0x239a7c,_0x42aad4){return _0x32d8ea(_0x239a7c,_0x42aad4- -_0x148d2f._0x2371cd);}const _0x52fa94=readOpenClawInfo(),_0x369912=_0x52fa94[_0x179e65(0x146,0x17e)],_0x327235=_0x52fa94[_0x179e65(-0x1b4,0x85)];if(_0x369912&&_0x327235&&_0x52fa94[_0x111784(0x89e,_0x3812e8._0x3c620b)]==null){const _0xdf167d={};return _0xdf167d[_0x179e65(_0x3812e8._0x545d22,_0x3812e8._0x2be9d3)]=_0x369912,_0xdf167d['password']=_0x327235,_0xdf167d[_0x111784(_0x3812e8._0x1ae62f,0xb56)]=_0x111784(0x882,0xa83),_0xdf167d[_0x111784(_0x3812e8._0x1fe46d,_0x3812e8._0x759a75)]='OpenClaw'+_0x179e65(0xab,-_0x3812e8._0x3ee91a)+'h\x20gatewa'+_0x179e65(-0xac,-0x57)+'and\x20pass'+_0x179e65(_0x3812e8._0x20749d,-_0x3812e8._0x37c3ba)+_0x179e65(0x1e5,-_0x3812e8._0x53fdff)+_0x179e65(0x179,-0x95)+_0x111784(_0x3812e8._0x71281f,0xa67)+_0x179e65(-0x1ae,-0x48)+_0x111784(_0x3812e8._0x4341e0,_0x3812e8._0x43163d)+_0x111784(_0x3812e8._0x17964a,_0x3812e8._0x4f067b)+_0x179e65(_0x3812e8._0x3103e7,0x19f)+_0x179e65(-0x2d1,-_0x3812e8._0x4fb7ce)+_0x111784(0x654,0x6f3)+_0x179e65(_0x3812e8._0x4979f7,_0x3812e8._0x4bfb05)+_0x179e65(0x223,0x53)+'g.',_0xdf167d;}if(_0x1af41c[_0x179e65(-_0x3812e8._0x499a48,-_0x3812e8._0x18061f)](_0x52fa94['authMode'],_0x1af41c[_0x111784(0x603,_0x3812e8._0xf9d2b1)])){const _0x15fe4e={};return _0x15fe4e[_0x179e65(-0xd,_0x3812e8._0x2be9d3)]=null,_0x15fe4e[_0x111784(0x789,_0x3812e8._0x525c15)]=null,_0x15fe4e[_0x111784(_0x3812e8._0x1ae62f,0x976)]=null,_0x327235?{'token':null,'password':_0x327235,'label':'password'}:_0x15fe4e;}if(_0x52fa94['authMode']===_0x1af41c[_0x111784(0x9a1,0x7df)]){const _0x50e5e8={};return _0x50e5e8[_0x111784(_0x3812e8._0x4ec3fa,0x6ab)]=null,_0x50e5e8[_0x111784(0x789,_0x3812e8._0x44e8c9)]=null,_0x50e5e8[_0x179e65(_0x3812e8._0x1d1977,0x2bd)]=null,_0x369912?{'token':_0x369912,'password':null,'label':'token'}:_0x50e5e8;}function _0x111784(_0x4a1fcc,_0x211b8a){return _0x32d8ea(_0x211b8a,_0x4a1fcc- -_0x2e0f81._0xdf604a);}if(_0x369912){const _0x17e841={};return _0x17e841[_0x111784(0x882,0xa7d)]=_0x369912,_0x17e841[_0x111784(0x789,_0x3812e8._0x10f604)]=null,_0x17e841[_0x179e65(_0x3812e8._0x293174,0x2bd)]=_0x111784(0x882,0x723),_0x17e841;}if(_0x327235){const _0x14351f={};return _0x14351f['token']=null,_0x14351f[_0x179e65(-_0x3812e8._0x59cef5,0x85)]=_0x327235,_0x14351f[_0x179e65(0xfe,_0x3812e8._0x27efa7)]=_0x1af41c['xjMjo'],_0x14351f;}const _0x929339={};return _0x929339['token']=null,_0x929339[_0x111784(0x789,_0x3812e8._0x93714d)]=null,_0x929339[_0x179e65(_0x3812e8._0x2ad971,0x2bd)]=null,_0x929339;}function getOpenClawConfigDir(){const _0x22d121={_0x27e940:0x253};function _0x54d1b7(_0x32e574,_0x3357c4){return _0x32d8ea(_0x32e574,_0x3357c4- -0x7b3);}return resolveOpenClawPaths()[_0x54d1b7(_0x22d121._0x27e940,0x45)+'r'];}function getOpenClawMediaDir(){const _0x553630={_0x341154:0x56a};function _0x3f8e15(_0x36fae1,_0x3636df){return _0x32d8ea(_0x36fae1,_0x3636df- -_0x553630._0x341154);}const _0x5b619c={'HsgUl':function(_0x399781){return _0x399781();}};return _0x5b619c[_0x3f8e15(0x12c,0xe8)](resolveOpenClawPaths)['mediaDir'];}function readConfiguredSecret(_0x4675a2){const _0x5bb179={_0x43020e:0x421,_0x1e2d4b:0x268,_0x5a65b5:0x475,_0x795405:0x22e},_0x37e641={_0x4e5d5a:0x425},_0x1ae9a2={};_0x1ae9a2[_0x49208e(0x1b8,0x268)]=function(_0x54abc9,_0x5dece0){return _0x54abc9===_0x5dece0;};const _0x231dc6=_0x1ae9a2;function _0x2e13fb(_0x18b3ea,_0x21fec0){return _0x32d8ea(_0x18b3ea,_0x21fec0- -0x3de);}function _0x49208e(_0x4104d5,_0x5bbc30){return _0x32d8ea(_0x4104d5,_0x5bbc30- -_0x37e641._0x4e5d5a);}return _0x231dc6[_0x49208e(_0x5bb179._0x43020e,_0x5bb179._0x1e2d4b)](typeof _0x4675a2,_0x2e13fb(_0x5bb179._0x5a65b5,_0x5bb179._0x795405))&&_0x4675a2['trim']()?_0x4675a2['trim']():null;}function readGatewayTokenEnv(){const _0x81eec5={_0x228e6c:0x58e,_0x5e1377:0x806,_0x45c7a6:0x533,_0x46fe27:0x6ab,_0x2df0fa:0x68a},_0x395db2={_0x56ad04:0xd9},_0x4cc6df={};function _0x4a91d0(_0x4c4b59,_0x5326c2){return _0x3a7f13(_0x5326c2,_0x4c4b59- -_0x395db2._0x56ad04);}_0x4cc6df['OUkbk']='OPENCLAW'+_0x1d5aeb(_0x81eec5._0x228e6c,0x3b9)+_0x1d5aeb(0x5e6,_0x81eec5._0x5e1377);function _0x1d5aeb(_0x561aa2,_0x53117c){return _0x3a7f13(_0x53117c,_0x561aa2-0x20d);}const _0x3cdec0=_0x4cc6df;return readEnvValue(_0x3cdec0[_0x1d5aeb(_0x81eec5._0x45c7a6,0x533)],_0x4a91d0(0x49d,_0x81eec5._0x46fe27)+_0x1d5aeb(_0x81eec5._0x228e6c,_0x81eec5._0x2df0fa)+'_TOKEN');}function readGatewayPasswordEnv(){const _0x510e24={_0x5d2932:0x60,_0x3df72f:0x13e,_0x1b612e:0x7d,_0x597f6c:0x18b,_0x4d3927:0x78,_0x1f759e:0x93,_0x1d1b3e:0x272},_0x2c70d4={_0x3b643f:0x72a};function _0x3899b1(_0x15b4e7,_0x37718a){return _0x32d8ea(_0x37718a,_0x15b4e7- -0x7af);}const _0x4c2240={};function _0x2acefc(_0x1610bb,_0x8052d7){return _0x32d8ea(_0x8052d7,_0x1610bb- -_0x2c70d4._0x3b643f);}_0x4c2240[_0x2acefc(-0x93,-_0x510e24._0x5d2932)]=_0x3899b1(-_0x510e24._0x3df72f,-0x263)+_0x2acefc(_0x510e24._0x1b612e,_0x510e24._0x597f6c)+_0x3899b1(-0xb2,-_0x510e24._0x4d3927)+'D';const _0x4b16b5=_0x4c2240;return readEnvValue(_0x4b16b5[_0x2acefc(-_0x510e24._0x1f759e,-0x256)],_0x2acefc(_0x510e24._0x1d1b3e,0x3ec)+'_GATEWAY'+'_PASSWOR'+'D');}function readEnvValue(_0x56121d,_0x97d755){const _0x4a2baf={_0x236f37:0x4e2,_0x43107d:0x309},_0x3a1a1f={_0x3b54b8:0x2cd},_0x3bf12a={_0x51a96e:0x127};function _0x5b010c(_0x2fdfb6,_0x593cff){return _0x3a7f13(_0x593cff,_0x2fdfb6- -_0x3bf12a._0x51a96e);}function _0x9e06b9(_0x428829,_0x2bb827){return _0x3a7f13(_0x428829,_0x2bb827- -_0x3a1a1f._0x3b54b8);}const _0x4b5e27=process.env[_0x56121d]?.[_0x5b010c(_0x4a2baf._0x236f37,_0x4a2baf._0x43107d)]();if(_0x4b5e27)return _0x4b5e27;const _0x4d5cd6=process.env[_0x97d755]?.[_0x5b010c(0x4e2,0x448)]();return _0x4d5cd6||null;}function resolveOpenClawPaths(){const _0x62d021={_0x1859ee:0x121};function _0x43f219(_0x20897f,_0x3f448b){return _0x32d8ea(_0x20897f,_0x3f448b- -0x39);}function _0x558cdc(_0xd3a20f,_0x5ae68a){return _0x32d8ea(_0x5ae68a,_0xd3a20f- -_0x62d021._0x1859ee);}const _0x3e155e=buildOpenClawCandidates();return _0x3e155e[_0x558cdc(0x752,0x8d0)](_0x345c03=>_0x57e053(_0x345c03[_0x558cdc(0x525,0x410)+'th']))??_0x3e155e[0x0];}function buildOpenClawCandidates(){const _0x49768d={_0x5c789d:0x857,_0x57aaec:0x918},_0x2b3db1={_0x550da0:0x474,_0x1df9c8:0xde,_0x1fadab:0x3},_0x1f3b05={_0x11ccdc:0x32e},_0x41614e={_0x31d6a1:0xc7},_0x5492ea={_0x5f2918:0x11b},_0x228223={'okGis':function(_0x2fc40b,_0xfd4f5f,_0x2e7a75){return _0x2fc40b(_0xfd4f5f,_0x2e7a75);}},_0xb68b77=new Set(),_0xe93fbe=[_0x1c41ad(),'/root']['map'](_0x31eccf=>_0x31eccf['trim']())['filter'](Boolean)[_0x35a930(_0x49768d._0x5c789d,_0x49768d._0x57aaec)](_0x5aadb2=>{if(_0xb68b77['has'](_0x5aadb2))return![];function _0x4cf0d8(_0x3f3bce,_0x3cee69){return _0x35a930(_0x3cee69- -0x4d7,_0x3f3bce);}return _0xb68b77[_0x4cf0d8(_0x5492ea._0x5f2918,0x189)](_0x5aadb2),!![];});function _0x4e339a(_0x24f537,_0x42a4f6){return _0x3a7f13(_0x24f537,_0x42a4f6-_0x41614e._0x31d6a1);}function _0x35a930(_0xc0e85e,_0x5159db){return _0x3a7f13(_0x5159db,_0xc0e85e-0x40f);}return _0xe93fbe[_0x4e339a(0x392,0x414)](_0x2be1a3=>{function _0x3d17b1(_0x9faeb4,_0x4fcb36){return _0x35a930(_0x9faeb4- -_0x1f3b05._0x11ccdc,_0x4fcb36);}function _0x30d8dc(_0x1bba48,_0x4907dd){return _0x35a930(_0x4907dd- -0x5b0,_0x1bba48);}const _0x2d8489=_0x228223[_0x30d8dc(0x5ee,_0x2b3db1._0x550da0)](_0x3ca535,_0x2be1a3,_0x3d17b1(0x523,0x43a)+'w');return{'configDir':_0x2d8489,'configPath':_0x3ca535(_0x2d8489,_0x30d8dc(0x3fd,0x215)+_0x30d8dc(-_0x2b3db1._0x1df9c8,_0x2b3db1._0x1fadab)),'mediaDir':_0x228223[_0x3d17b1(0x6f6,0x801)](_0x3ca535,_0x2d8489,'media')};});}var CONTROL_PREFIX='__clawke'+_0x32d8ea(0x3fb,0x603)+'control_'+'_:';function parseControl(_0xc8a0b5){const _0x2e2b1c={_0xd847ce:0x1be,_0x178d1e:0x18d,_0x418008:0x159,_0x396462:0x3a2,_0x1be8ce:0x8d6,_0x2eefaa:0x396,_0x2152a3:0x597,_0x31b1b2:0x764,_0xde712d:0x3a8,_0x4decc5:0x254,_0x46e7ac:0x26c},_0x5d5b6f={_0x3355ee:0x68d};function _0x330182(_0x148070,_0x3f9b13){return _0x32d8ea(_0x3f9b13,_0x148070- -0x159);}function _0x4c6792(_0x4f47d8,_0x1d1e08){return _0x32d8ea(_0x1d1e08,_0x4f47d8- -_0x5d5b6f._0x3355ee);}if(!_0xc8a0b5[_0x4c6792(-0x44,_0x2e2b1c._0xd847ce)+'th'](CONTROL_PREFIX))return null;try{const _0x1a92bc=JSON[_0x4c6792(0xaf,-_0x2e2b1c._0x178d1e)](_0xc8a0b5['slice'](CONTROL_PREFIX[_0x4c6792(0x14a,_0x2e2b1c._0x418008)]));if(typeof _0x1a92bc['event']!=='string'||!_0x1a92bc[_0x4c6792(0x17,0x1df)][_0x4c6792(_0x2e2b1c._0x396462,0x4fa)]())return null;return{'event':_0x1a92bc['event'][_0x330182(_0x2e2b1c._0x1be8ce,0x75b)](),'count':typeof _0x1a92bc[_0x330182(0x8dc,0x820)]===_0x4c6792(_0x2e2b1c._0x2eefaa,_0x2e2b1c._0x2152a3)&&Number[_0x330182(_0x2e2b1c._0x31b1b2,0x731)](_0x1a92bc[_0x4c6792(_0x2e2b1c._0xde712d,_0x2e2b1c._0x4decc5)])?_0x1a92bc[_0x4c6792(0x3a8,_0x2e2b1c._0x46e7ac)]:void 0x0};}catch{return null;}}function parseConnectStartIdentity(_0x37d986){const _0x50c0aa={_0x4bf469:0x133,_0x2879cc:0x8f,_0x2d7c26:0x15a,_0x43f74b:0x4c,_0x3785dd:0xb2,_0x15a059:0xe4,_0x470cac:0x4,_0x1122cb:0x3,_0x223d4d:0x25f,_0x48bf8e:0x1c5,_0x382109:0x3,_0x99c11c:0x234,_0x24d916:0x70,_0x10313c:0xc4,_0x58bb0c:0x3aa,_0x18d2df:0x195,_0x7618fb:0xdc,_0xac2fc:0x199,_0x1e7f14:0x9,_0x5d24c7:0xba,_0x8c8c89:0x17,_0x388a4f:0x27c},_0x1ee63f={_0x28d567:0x738},_0x34d18c={};_0x34d18c[_0x108186(0x96,-_0x50c0aa._0x4bf469)]=_0x2883a3(_0x50c0aa._0x2879cc,_0x50c0aa._0x2d7c26),_0x34d18c['mBgAl']=_0x108186(-_0x50c0aa._0x43f74b,-_0x50c0aa._0x3785dd);function _0x2883a3(_0x5a0965,_0x14de3b){return _0x32d8ea(_0x5a0965,_0x14de3b- -_0x1ee63f._0x28d567);}function _0x108186(_0x149fff,_0x545853){return _0x32d8ea(_0x545853,_0x149fff- -0x658);}const _0x1db803=_0x34d18c;try{const _0x3c3f2a=JSON[_0x2883a3(-_0x50c0aa._0x15a059,_0x50c0aa._0x470cac)](_0x37d986);if(_0x3c3f2a['type']!==_0x1db803['Jkbcv'])return null;if(_0x3c3f2a[_0x2883a3(-0xfc,_0x50c0aa._0x1122cb)]!==_0x108186(_0x50c0aa._0x223d4d,_0x50c0aa._0x48bf8e)&&_0x3c3f2a[_0x2883a3(-0x10e,_0x50c0aa._0x382109)]!==_0x108186(_0x50c0aa._0x99c11c,_0x50c0aa._0x24d916)+'start')return null;const _0xef000f=_0x3c3f2a['params']??{},_0x1b2448=typeof _0x3c3f2a['id']===_0x1db803[_0x2883a3(-_0x50c0aa._0x10313c,0x120)]&&_0x3c3f2a['id'][_0x2883a3(0x424,0x2f7)]()?_0x3c3f2a['id'][_0x2883a3(0x3a6,0x2f7)]():_0x2883a3(-_0x50c0aa._0x58bb0c,-0x167)+Math[_0x108186(0x259,0x2a3)]()[_0x2883a3(_0x50c0aa._0x18d2df,_0x50c0aa._0x7618fb)](0x24)[_0x2883a3(_0x50c0aa._0xac2fc,_0x50c0aa._0x1e7f14)](0x2,0xc),_0x1ba450=firstString(_0xef000f[_0x2883a3(_0x50c0aa._0x5d24c7,-_0x50c0aa._0x3785dd)+'me'],_0xef000f['clientNa'+'me'],_0xef000f[_0x108186(-_0x50c0aa._0x8c8c89,-0x1a8)],'Mobile\x20C'+_0x108186(_0x50c0aa._0x388a4f,0x7b)),_0x126a44={};return _0x126a44['id']=_0x1b2448,_0x126a44['label']=_0x1ba450,_0x126a44;}catch{return null;}}function isConnectHandshakeRequest(_0x37b3eb){const _0x21ea28={_0x212dee:0x841,_0x14927e:0xa4c,_0x315b68:0x59f,_0x1848da:0x7a5,_0x56aac3:0x306};function _0x3f82bc(_0x502a1e,_0x312e7d){return _0x3a7f13(_0x312e7d,_0x502a1e-0x3d5);}function _0x2e7080(_0x419604,_0xdbbd0a){return _0x3a7f13(_0x419604,_0xdbbd0a- -0x264);}try{const _0x57dc84=JSON[_0x3f82bc(0x6eb,0x5a8)](_0x37b3eb);return _0x57dc84['type']===_0x3f82bc(_0x21ea28._0x212dee,_0x21ea28._0x14927e)&&(_0x57dc84[_0x3f82bc(0x6ea,_0x21ea28._0x315b68)]===_0x3f82bc(0x866,_0x21ea28._0x1848da)||_0x57dc84[_0x3f82bc(0x6ea,0x73c)]===_0x2e7080(-0x36,0x202)+_0x2e7080(_0x21ea28._0x56aac3,0x364));}catch{return![];}}function parseConnectHandshakeMeta(_0x15b8b0){const _0x56f22d={_0x8147f6:0x280,_0x4b6316:0x522,_0x53943b:0x3f6,_0x48fffc:0x4bf,_0xc609d4:0x656,_0x2577d3:0x192,_0x570038:0x21,_0x4a948f:0x17f,_0x2d12b1:0x5e5,_0x10c723:0x62b,_0x2af0dc:0x1c6,_0x30d2fe:0x12,_0x5a80f8:0x51f,_0x42ab7a:0x43b,_0x59ff11:0x31,_0x5d2f31:0x6cc,_0x5bbd06:0x3fa,_0x20aa4e:0x66e,_0x3e3cc4:0x343,_0x2a2087:0x499,_0x3547fc:0x5dc,_0x420afd:0x43f,_0x5e5cab:0xa8,_0x493e34:0x100,_0x27accc:0x276,_0x1659ad:0x57,_0x30be09:0x2a5,_0x2574a2:0x251};function _0x580e23(_0x1ec97a,_0x25adc4){return _0x32d8ea(_0x1ec97a,_0x25adc4- -0x74d);}const _0x3d6429={};_0x3d6429[_0x580e23(0x490,_0x56f22d._0x8147f6)]=_0x143817(_0x56f22d._0x4b6316,0x4fa),_0x3d6429[_0x143817(0x452,_0x56f22d._0x53943b)]=_0x143817(0x2d2,0x4f4)+_0x143817(_0x56f22d._0x48fffc,_0x56f22d._0xc609d4),_0x3d6429[_0x580e23(-_0x56f22d._0x2577d3,_0x56f22d._0x570038)]=_0x580e23(-_0x56f22d._0x4a948f,-0x141),_0x3d6429[_0x143817(_0x56f22d._0x2d12b1,0x45d)]=function(_0xe3c444,_0x2c10f4){return _0xe3c444===_0x2c10f4;},_0x3d6429[_0x143817(0x4a0,_0x56f22d._0x10c723)]=function(_0x22442a,_0x58fb51){return _0x22442a===_0x58fb51;};const _0x3363f6=_0x3d6429;function _0x143817(_0x4a920b,_0x5f22fd){return _0x32d8ea(_0x4a920b,_0x5f22fd- -0x398);}try{const _0x570309=JSON['parse'](_0x15b8b0);if(_0x570309[_0x580e23(0x229,0x132)]!==_0x3363f6['KsZVQ'])return null;if(_0x570309[_0x580e23(_0x56f22d._0x2af0dc,-_0x56f22d._0x30d2fe)]!==_0x143817(0x413,_0x56f22d._0x5a80f8)&&_0x570309[_0x143817(0x546,0x3a3)]!==_0x3363f6['jZMmI'])return null;const _0x3f83ac=_0x570309[_0x143817(_0x56f22d._0x42ab7a,0x397)]?.[_0x580e23(-0x95,-_0x56f22d._0x59ff11)]?.[_0x143817(_0x56f22d._0x5d2f31,0x68e)],_0x4bf3e8=_0x570309[_0x143817(_0x56f22d._0x5bbd06,0x397)]?.[_0x143817(0x83b,_0x56f22d._0x20aa4e)];return{'id':typeof _0x570309['id']===_0x580e23(-_0x56f22d._0x3e3cc4,-0x141)&&_0x570309['id']['trim']()?_0x570309['id'][_0x580e23(0x4fc,0x2e2)]():null,'method':_0x570309[_0x143817(_0x56f22d._0x2a2087,0x3a3)],'noncePresent':typeof _0x3f83ac===_0x3363f6[_0x143817(_0x56f22d._0x3547fc,0x3d6)]&&_0x3f83ac[_0x143817(0x5ba,_0x56f22d._0x420afd)]>0x0,'nonceLength':_0x3363f6[_0x580e23(-0x30,_0x56f22d._0x5e5cab)](typeof _0x3f83ac,_0x3363f6[_0x580e23(-_0x56f22d._0x493e34,0x21)])?_0x3f83ac['length']:null,'authFields':_0x4bf3e8&&_0x3363f6[_0x580e23(0x159,_0x56f22d._0x27accc)](typeof _0x4bf3e8,_0x580e23(-0x185,-_0x56f22d._0x1659ad))?Object[_0x143817(0x759,0x630)](_0x4bf3e8)[_0x580e23(_0x56f22d._0x30be09,_0x56f22d._0x2574a2)]():[]};}catch{return null;}}function parsePairingRequestFromError(_0x521a90,_0x82134c=Date[_0x32d8ea(0x9f2,0xa16)]()){const _0x6bd566={_0x1c624d:0xb43,_0x441200:0x5d9,_0x194d36:0x3b0,_0x5e9ef4:0x1e8,_0x3d527f:0x6a1,_0x48f87b:0x17b,_0xaa271c:0x332,_0x5461fb:0x2e4,_0x577c56:0x4ee,_0xc5ae89:0xa3,_0x4279b7:0x1e6,_0x456409:0x85f,_0x3073f6:0x71,_0x44e0a5:0x163,_0x363ef2:0x727,_0x28f938:0x733,_0x3f8f1d:0x91a,_0x107ef4:0xa3,_0x3a7ead:0xbf,_0x4bd1c2:0x1bd,_0x14760f:0x6cf,_0x512782:0x429,_0xcdec40:0x3cf,_0xe4d1c6:0x2eb,_0x2536a3:0x9c2,_0x3d45c0:0x104,_0x160c57:0x776,_0x5c4cbd:0x811,_0x562898:0x381,_0x41ee36:0xa6,_0x21466f:0x625,_0xe6b46a:0x947,_0x5821af:0xae2,_0x5f02f6:0x9d9,_0x2279aa:0x20d,_0xa4584b:0x217},_0x2e7f25={_0x5a3981:0x175},_0x5109ab={_0xa3279f:0x3e0};function _0xac88f9(_0x16d208,_0x507d2c){return _0x3a7f13(_0x507d2c,_0x16d208-_0x5109ab._0xa3279f);}const _0x31619a={'YuzbE':_0xac88f9(0x5c7,0x4a7),'fxmeZ':function(_0x5c3b98,_0x23f3e2){return _0x5c3b98===_0x23f3e2;},'SQzbU':_0xac88f9(0x97e,_0x6bd566._0x1c624d)+'ED','itDKe':_0xac88f9(_0x6bd566._0x441200,_0x6bd566._0x194d36)+_0x3b3c54(_0x6bd566._0x5e9ef4,0x23b),'xkPeO':_0xac88f9(0x8d8,_0x6bd566._0x3d527f),'OKzIu':function(_0x473b6c,_0x2753b4){return _0x473b6c(_0x2753b4);},'pQLfx':_0x3b3c54(_0x6bd566._0x48f87b,_0x6bd566._0xaa271c)};function _0x3b3c54(_0x2ac9f6,_0x58a899){return _0x3a7f13(_0x58a899,_0x2ac9f6- -_0x2e7f25._0x5a3981);}try{const _0x3876c2=JSON[_0xac88f9(0x6f6,0x61c)](_0x521a90);if(_0x3876c2[_0x3b3c54(_0x6bd566._0x5461fb,_0x6bd566._0x577c56)]!==_0x31619a[_0x3b3c54(0x3ad,0x296)]||_0x3876c2['ok']!==![]||!_0x3876c2['error'])return null;const _0x1410e3=typeof _0x3876c2[_0x3b3c54(_0x6bd566._0xc5ae89,_0x6bd566._0x4279b7)][_0xac88f9(0x727,_0x6bd566._0x456409)]===_0x3b3c54(_0x6bd566._0x3073f6,0x79)?_0x3876c2[_0x3b3c54(_0x6bd566._0xc5ae89,-_0x6bd566._0x44e0a5)][_0xac88f9(_0x6bd566._0x363ef2,0x91b)]:'',_0x1f4c99=_0x31619a[_0xac88f9(_0x6bd566._0x28f938,_0x6bd566._0x3f8f1d)](typeof _0x3876c2[_0x3b3c54(_0x6bd566._0x107ef4,-_0x6bd566._0x3a7ead)][_0x3b3c54(0x246,0x46e)],_0x3b3c54(_0x6bd566._0x3073f6,_0x6bd566._0x4bd1c2))?_0x3876c2['error'][_0xac88f9(0x79b,_0x6bd566._0x14760f)]:'';if(!_0x1410e3['includes'](_0x3b3c54(_0x6bd566._0x512782,_0x6bd566._0xcdec40)+'ED')&&!_0x1410e3[_0x3b3c54(0x2cb,_0x6bd566._0xe4d1c6)]('PAIRING_'+_0xac88f9(0x802,_0x6bd566._0x2536a3))&&!_0x1f4c99[_0x3b3c54(0x2cb,_0x6bd566._0x3d45c0)](_0x31619a['SQzbU'])&&!_0x1f4c99[_0xac88f9(0x820,0x769)](_0x31619a[_0x3b3c54(0x173,0x74)]))return null;const _0x1ca0d6=_0x3876c2['error'][_0xac88f9(_0x6bd566._0x160c57,0x634)]??_0x3876c2[_0x3b3c54(0xa3,-0xc9)]['data']??{},_0x1591f0=firstString(_0x1ca0d6[_0xac88f9(0x8dc,_0x6bd566._0x5c4cbd)+'d'],extractRequestIdFromMessage(_0x1f4c99),_0x31619a[_0x3b3c54(0x49d,_0x6bd566._0x562898)]);return{'requestId':_0x1591f0,'deviceId':firstString(_0x1ca0d6[_0x3b3c54(_0x6bd566._0x41ee36,-0x2)],''),'displayName':_0x31619a[_0xac88f9(_0x6bd566._0x21466f,0x7d9)](firstNullableString,_0x1ca0d6['displayN'+_0xac88f9(_0x6bd566._0xe6b46a,_0x6bd566._0x5821af)]),'platform':firstNullableString(_0x1ca0d6[_0xac88f9(0x72e,0x841)]),'deviceFamily':firstNullableString(_0x1ca0d6['deviceFa'+_0x3b3c54(0x6f,0xc7)]),'role':_0x31619a['OKzIu'](firstNullableString,_0x1ca0d6[_0xac88f9(_0x6bd566._0x5f02f6,0xbe3)]),'remoteIp':firstNullableString(_0x1ca0d6[_0x3b3c54(_0x6bd566._0x2279aa,_0x6bd566._0xa4584b)]),'receivedAtMs':_0x82134c,'status':_0x31619a[_0x3b3c54(0x30a,0x2a0)]};}catch{return null;}}function parsePairResolvedEvent(_0x1615b6){const _0x4a011a={_0x2a5559:0x62f,_0x55469e:0x89a,_0x470b2e:0x646,_0x2c4b32:0x566,_0x26aa1c:0x61f,_0x498fdb:0x7d7,_0xfa8caf:0x5b4,_0x3f5792:0x667,_0x66b8ba:0x6cd,_0x1932d5:0x747,_0x39be9f:0x4d6,_0x2098ae:0x7ee,_0x387a85:0x719,_0x3bdb8b:0x832,_0x2044cf:0x605,_0x3dee17:0x557,_0x12649b:0x516,_0x36a2c0:0x41a,_0x1a60d3:0x738,_0x240071:0x4f4,_0x4d4e15:0x9d5,_0x7d2a83:0x88d,_0x1fd0d8:0x79e,_0x11f658:0x3f5},_0x5f4812={_0x37ead5:0x330};function _0x2b6218(_0x164110,_0x30e79f){return _0x3a7f13(_0x30e79f,_0x164110-_0x5f4812._0x37ead5);}const _0x413c99={};_0x413c99[_0x8840e2(0x427,_0x4a011a._0x2a5559)]=_0x8840e2(_0x4a011a._0x55469e,0x866),_0x413c99['EBcGZ']=function(_0x2d337f,_0x160e40){return _0x2d337f===_0x160e40;};function _0x8840e2(_0x39216e,_0x4cd556){return _0x3a7f13(_0x39216e,_0x4cd556-0x336);}const _0x1f9085=_0x413c99;try{const _0x24d1b2=JSON[_0x2b6218(_0x4a011a._0x470b2e,_0x4a011a._0x2c4b32)](_0x1615b6);if(_0x24d1b2[_0x2b6218(0x789,_0x4a011a._0x26aa1c)]!==_0x8840e2(_0x4a011a._0x498fdb,_0x4a011a._0xfa8caf)||_0x24d1b2[_0x8840e2(_0x4a011a._0x3f5792,0x5b4)]!==_0x2b6218(0x5fd,0x51a)+_0x2b6218(_0x4a011a._0x66b8ba,0x8a4)+_0x8840e2(_0x4a011a._0x1932d5,0x597)||!_0x24d1b2[_0x8840e2(_0x4a011a._0x39be9f,0x60b)])return null;const _0x5504d5=typeof _0x24d1b2[_0x8840e2(_0x4a011a._0x2098ae,0x60b)]['requestI'+'d']==='string'?_0x24d1b2[_0x2b6218(0x605,0x51e)][_0x8840e2(_0x4a011a._0x387a85,_0x4a011a._0x3bdb8b)+'d']['trim']():'';if(!_0x5504d5)return null;const _0x5ca5d7=typeof _0x24d1b2[_0x2b6218(_0x4a011a._0x2044cf,0x6e6)][_0x8840e2(0x3e7,_0x4a011a._0x3dee17)]===_0x2b6218(_0x4a011a._0x12649b,_0x4a011a._0x36a2c0)?_0x24d1b2[_0x2b6218(0x605,_0x4a011a._0x1a60d3)][_0x2b6218(0x551,_0x4a011a._0x240071)]:'unknown',_0x5e9aa1=_0x5ca5d7===_0x1f9085['YLJGg']||_0x1f9085[_0x8840e2(_0x4a011a._0x4d4e15,_0x4a011a._0x7d2a83)](_0x5ca5d7,_0x8840e2(0x311,0x4bf))?_0x5ca5d7:'unknown',_0x3e1960={};return _0x3e1960[_0x2b6218(0x82c,_0x4a011a._0x1fd0d8)+'d']=_0x5504d5,_0x3e1960[_0x2b6218(0x551,_0x4a011a._0x11f658)]=_0x5e9aa1,_0x3e1960;}catch{return null;}}function firstString(..._0x206b6d){const _0x486d16={_0x3ffa99:0x219,_0x47ac96:0x457},_0x7c2ebc={_0x34d8d3:0x1b2};for(const _0x8a8eb4 of _0x206b6d){if(typeof _0x8a8eb4===_0x3bd7f4(-_0x486d16._0x3ffa99,0x34)&&_0x8a8eb4['trim']())return _0x8a8eb4[_0x3bd7f4(0x673,_0x486d16._0x47ac96)]();}function _0x3bd7f4(_0x3f84d6,_0x4b44b4){return _0x3a7f13(_0x3f84d6,_0x4b44b4- -_0x7c2ebc._0x34d8d3);}function _0x573fc4(_0xe41b94,_0x41047a){return _0x3a7f13(_0xe41b94,_0x41047a- -0x395);}return'';}function firstNullableString(_0x570dd9){const _0x4a5605={_0x548c87:0x634},_0x5b8f9b={_0x59dad2:0x18a};function _0x2819f4(_0xcc9aff,_0x3de583){return _0x32d8ea(_0xcc9aff,_0x3de583- -_0x5b8f9b._0x59dad2);}const _0x5aaa65={};function _0x376f96(_0x5b2c3b,_0x3285db){return _0x32d8ea(_0x5b2c3b,_0x3285db- -0x30e);}_0x5aaa65['whPbo']=function(_0x5c8f59,_0x200f95){return _0x5c8f59===_0x200f95;};const _0x1913b3=_0x5aaa65;return _0x1913b3['whPbo'](typeof _0x570dd9,_0x2819f4(_0x4a5605._0x548c87,0x482))&&_0x570dd9['trim']()?_0x570dd9[_0x376f96(0x910,0x721)]():null;}function extractRequestIdFromMessage(_0xeef4fa){const _0xf31e08={_0x143ffc:0x5cc,_0x325506:0x669},_0xf56788={_0x39ffeb:0x330};function _0x56be58(_0x5357c8,_0x1af215){return _0x3a7f13(_0x1af215,_0x5357c8-_0xf56788._0x39ffeb);}const _0x5ec343=_0xeef4fa[_0x56be58(_0xf31e08._0x143ffc,_0xf31e08._0x325506)](/requestId[:\s]*([a-f0-9-]+)/i);return _0x5ec343?.[0x1]??null;}import{randomUUID as _0x45799a}from'crypto';import{setTimeout as _0x20a233}from'timers/promises';import _0x30847f from'ws';var HEARTBEAT_INTERVAL_MS=0x2710,HEARTBEAT_TIMEOUT_MS=0x88b8,GATEWAY_RETRY_DELAY_MS=0x4b0,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{[_0x3a7f13(0x31f,0x2e4)];[_0x32d8ea(0x8b6,0x7e9)+_0x3a7f13(0x1fe,0x268)]=null;['gatewayS'+_0x3a7f13(0x81e,0x5f4)]=null;[_0x3a7f13(0x52b,0x59b)+_0x3a7f13(0x131,0x35c)]=![];[_0x3a7f13(0x459,0x286)+_0x32d8ea(0xafb,0x930)+'g']=![];[_0x32d8ea(0x9d2,0x84b)]=!![];[_0x32d8ea(0x8cf,0x8dd)+_0x32d8ea(0x7fc,0x831)]=0x0;[_0x32d8ea(0x6b6,0x7d2)+'yActivit'+_0x32d8ea(0x9dc,0x85c)]=0x0;[_0x32d8ea(0x6b5,0x72d)+'tTimer']=null;[_0x3a7f13(0x2d6,0x1f0)+'etryTime'+'r']=null;[_0x3a7f13(0x443,0x45d)+_0x3a7f13(0x2ee,0x1b5)]=null;['pendingG'+_0x32d8ea(0xb76,0xa2e)+_0x3a7f13(0x9c,0x18a)]=[];['gatewayH'+'andshake'+_0x32d8ea(0x973,0x9e2)]=![];['clientDe'+_0x3a7f13(0x504,0x4c8)+_0x32d8ea(0x569,0x642)]=null;[_0x32d8ea(0x72b,0x6ac)+_0x32d8ea(0x7f7,0x673)+'AtMs']=null;[_0x3a7f13(0x1d2,0x2e3)];constructor(_0xc19279){const _0x36a253={_0x15ce4b:0x538,_0x17b447:0x57e,_0x4677ea:0x6c9,_0x47ab2d:0x555,_0x172754:0x4f1,_0x1a3fb7:0x628,_0x4804d1:0x417},_0x2705bf={_0x1d8806:0x2fe};function _0x47a35e(_0x950431,_0x2ed468){return _0x3a7f13(_0x2ed468,_0x950431-0x254);}this[_0x47a35e(_0x36a253._0x15ce4b,0x77c)]=_0xc19279;function _0x10266f(_0x16b542,_0x3918b1){return _0x3a7f13(_0x16b542,_0x3918b1-_0x2705bf._0x1d8806);}this['snapshot']={'running':![],'relayConnected':![],'gatewayConnected':![],'gatewayId':_0xc19279[_0x47a35e(_0x36a253._0x17b447,0x723)][_0x47a35e(_0x36a253._0x4677ea,_0x36a253._0x47ab2d)+'d'],'instanceId':_0xc19279[_0x10266f(_0x36a253._0x172754,_0x36a253._0x1a3fb7)][_0x10266f(0x98f,0x8f9)+'Id'],'relayUrl':_0xc19279[_0x47a35e(0x57e,_0x36a253._0x4804d1)][_0x47a35e(0x7e8,0x678)],'gatewayUrl':_0xc19279['gatewayU'+'rl'],'clientCount':0x0,'connectedDevices':[],'pendingPairRequests':[],'lastError':null,'lastUpdatedMs':Date['now']()};}[_0x3a7f13(0x3b9,0x5c8)](){const _0x2c8eae={_0x29d054:0x97,_0x88a8:0x63e,_0x35e508:0x58c,_0x1dbfa7:0x343,_0x239f32:0x48e,_0x3e43cc:0x46,_0x133e6d:0x850,_0x283a5:0x2b1,_0x31305a:0x6d};function _0x1c6c0c(_0x1156b0,_0x23aadf){return _0x32d8ea(_0x23aadf,_0x1156b0- -0x6c5);}if(!this['stopped'])return;this[_0x1c6c0c(0x186,0xd1)]=![],this[_0x1c6c0c(-0xd0,_0x2c8eae._0x29d054)+_0x1c6c0c(0x2b7,0x25e)]({'running':!![],'gatewayUrl':this['options']['gatewayU'+'rl']}),this[_0x385915(0x663,0x55d)](_0x385915(_0x2c8eae._0x88a8,_0x2c8eae._0x35e508)+'starting'+_0x1c6c0c(0x1d5,0x209)+_0x1c6c0c(_0x2c8eae._0x1dbfa7,_0x2c8eae._0x239f32)+this[_0x1c6c0c(0x45,_0x2c8eae._0x3e43cc)][_0x385915(0x705,0x6e6)][_0x385915(_0x2c8eae._0x133e6d,0x9ea)+'d']+(_0x1c6c0c(0x1d5,0xb3)+'Url=')+this['options']['gatewayU'+'rl']);function _0x385915(_0x5bb5f7,_0x3b2380){return _0x32d8ea(_0x3b2380,_0x5bb5f7- -0x4b);}void this[_0x1c6c0c(_0x2c8eae._0x283a5,0xe2)+_0x1c6c0c(-0xc4,_0x2c8eae._0x31305a)]();}async[_0x32d8ea(0x855,0x8e0)](){const _0x5d89fa={_0x51b232:0x469,_0x16fa7b:0x231,_0x338222:0x407,_0x2d0e2e:0x18c,_0x40ef60:0x412,_0x1d5f96:0x39c,_0x1abd36:0x6d5,_0x48f41a:0x2c2,_0x63acc9:0x6,_0x149076:0x18c,_0x2b9557:0x3aa,_0xc0823d:0x3a1,_0x5df586:0x193,_0x375188:0x52c,_0x3d6e7d:0x37c,_0x46b47b:0x266,_0x263736:0x47c,_0x393d48:0x42a,_0x57cd40:0x35c,_0x18e77c:0xe7,_0x4a30ce:0x140,_0x5ba9bb:0x2b,_0x588ab5:0x337,_0x31f77f:0x5df,_0x5b94ef:0x95,_0x43eb95:0x12f,_0x4a9f65:0x411,_0x24d611:0x607,_0x144976:0x291,_0x35a329:0x5d7,_0x18d3ea:0x3ea,_0x3a4c38:0x8,_0x4013a9:0x1ac,_0xdf00b9:0x31,_0x288146:0x349},_0x456309={_0x8a46fe:0x502},_0x4fbaf7={_0x20fa7:0x3e2};if(this[_0x239919(0x2d7,_0x5d89fa._0x51b232)])return;this['stopped']=!![],this['clearTim'+_0x3338a4(0x52,0x124)](),this[_0x239919(_0x5d89fa._0x16fa7b,_0x5d89fa._0x338222)+_0x3338a4(-0x80,_0x5d89fa._0x2d0e2e)]?.[_0x3338a4(_0x5d89fa._0x40ef60,_0x5d89fa._0x1d5f96)](),this[_0x239919(_0x5d89fa._0x1abd36,0x58e)+_0x3338a4(0x335,0x518)]?.['close'](),this[_0x239919(_0x5d89fa._0x48f41a,0x407)+_0x3338a4(-_0x5d89fa._0x63acc9,_0x5d89fa._0x149076)]=null,this[_0x239919(_0x5d89fa._0x2b9557,0x58e)+_0x3338a4(_0x5d89fa._0xc0823d,0x518)]=null,this[_0x3338a4(_0x5d89fa._0x5df586,0x2c2)+_0x3338a4(0x54a,_0x5d89fa._0x375188)+_0x3338a4(-0x176,0xae)]=[],this[_0x239919(0x302,_0x5d89fa._0x3d6e7d)+_0x3338a4(_0x5d89fa._0x46b47b,_0x5d89fa._0x263736)+_0x239919(_0x5d89fa._0x393d48,0x600)]=![],this['clientDe'+_0x3338a4(_0x5d89fa._0x57cd40,0x3ec)+_0x3338a4(_0x5d89fa._0x18e77c,_0x5d89fa._0x4a30ce)]=null,this[_0x3338a4(_0x5d89fa._0x5ba9bb,0x1aa)+'onnected'+_0x3338a4(0x371,_0x5d89fa._0x588ab5)]=null,this[_0x239919(0x480,_0x5d89fa._0x31f77f)+_0x3338a4(0x3de,0x280)]=![],this['gatewayC'+'onnectin'+'g']=![];function _0x239919(_0x2597f3,_0x17e29a){return _0x32d8ea(_0x2597f3,_0x17e29a- -_0x4fbaf7._0x20fa7);}const _0x2d1b3a={};_0x2d1b3a[_0x3338a4(-_0x5d89fa._0x5b94ef,_0x5d89fa._0x43eb95)]=![],_0x2d1b3a['relayCon'+_0x239919(_0x5d89fa._0x4a9f65,_0x5d89fa._0x24d611)]=![],_0x2d1b3a['gatewayC'+_0x239919(0xaf,_0x5d89fa._0x144976)]=![],_0x2d1b3a[_0x239919(0x45a,_0x5d89fa._0x35a329)+_0x239919(0x520,0x473)]=0x0,_0x2d1b3a[_0x239919(_0x5d89fa._0x18d3ea,0x4c8)+'r']=null,this[_0x3338a4(_0x5d89fa._0x3a4c38,0xf3)+_0x239919(0x60c,0x59a)](_0x2d1b3a);function _0x3338a4(_0x1b308e,_0x4b3e94){return _0x32d8ea(_0x1b308e,_0x4b3e94- -_0x456309._0x8a46fe);}this[_0x3338a4(-0x6f,_0x5d89fa._0x4013a9)](_0x3338a4(-_0x5d89fa._0xdf00b9,0x187)+_0x3338a4(0x19b,_0x5d89fa._0x288146)),await _0x20a233(0x19);}async[_0x32d8ea(0x860,0x6c1)+_0x3a7f13(0x3c7,0x250)+'st'](_0x526e82){const _0x56f155={_0x3601b6:0x84,_0x545d78:0x1a8,_0xe8498e:0x79e,_0x51f78d:0x314,_0xf74d81:0x37f,_0x507ec1:0x455,_0x311a34:0x22a,_0x2b6622:0x77c,_0x3240aa:0x8b3,_0x4b62ec:0xa92},_0x5370d8={};_0x5370d8[_0x476d51(_0x56f155._0x3601b6,_0x56f155._0x545d78)+'d']=_0x526e82,this[_0x59b8d6(_0x56f155._0xe8498e,0x8d3)+_0x476d51(-_0x56f155._0x51f78d,-0x195)+'st'](_0x59b8d6(0x588,_0x56f155._0xf74d81)+_0x59b8d6(0x4f9,0x739)+'ove',_0x5370d8);function _0x59b8d6(_0x1c9d6a,_0x282dd1){return _0x3a7f13(_0x282dd1,_0x1c9d6a-0x2bb);}function _0x476d51(_0x33f68e,_0x33a5ed){return _0x3a7f13(_0x33f68e,_0x33a5ed- -0x354);}this[_0x476d51(_0x56f155._0x507ec1,_0x56f155._0x311a34)+_0x59b8d6(_0x56f155._0x2b6622,0x54a)+_0x59b8d6(_0x56f155._0x3240aa,_0x56f155._0x4b62ec)](_0x526e82,'approved');}async[_0x32d8ea(0x665,0x8a9)+'irReques'+'t'](_0x555f1d){const _0x1e085b={_0x426a36:0x54d,_0x308a14:0x60,_0x366cae:0x5a1,_0x11f3c9:0x649,_0x28c0ef:0x6c0,_0x2d11fe:0x4},_0x47271f={_0x44ea88:0x51},_0x3186f7={};_0x3186f7[_0x2edd9e(_0x1e085b._0x426a36,0x75b)+'d']=_0x555f1d;function _0x2d463f(_0xa7ce19,_0xd6cd1b){return _0x3a7f13(_0xd6cd1b,_0xa7ce19- -0x15f);}function _0x2edd9e(_0x176ff3,_0x5d67e5){return _0x3a7f13(_0x5d67e5,_0x176ff3-_0x47271f._0x44ea88);}this[_0x2edd9e(0x534,0x41c)+_0x2d463f(_0x1e085b._0x308a14,0xba)+'st']('device.p'+_0x2d463f(0x472,0x54c)+'ct',_0x3186f7),this['markPair'+_0x2edd9e(0x512,_0x1e085b._0x366cae)+_0x2edd9e(_0x1e085b._0x11f3c9,_0x1e085b._0x28c0ef)](_0x555f1d,_0x2d463f(0x2a,_0x1e085b._0x2d11fe));}['getSnaps'+_0x32d8ea(0x73f,0x8f2)](){const _0x3bf970={_0x3f6bf7:0x84,_0x5ac613:0x7b0,_0x37aedf:0x48e,_0x5e4f3b:0x4d1,_0x1db1d5:0x802,_0x519cf0:0x1a4,_0x48f745:0x2d5,_0xee83d7:0x554,_0x251336:0x338},_0x480c01={_0xd0c7d5:0x271},_0x296571={_0x15a137:0xac};function _0x2189e1(_0x191301,_0x38fcda){return _0x3a7f13(_0x38fcda,_0x191301- -_0x296571._0x15a137);}const _0x4ed85e={...this[_0x21aaa5(0x554,0x5dd)]};_0x4ed85e[_0x2189e1(0x171,_0x3bf970._0x3f6bf7)+_0x21aaa5(0x719,_0x3bf970._0x5ac613)]=[...this['snapshot'][_0x21aaa5(_0x3bf970._0x37aedf,_0x3bf970._0x5e4f3b)+_0x21aaa5(0x719,_0x3bf970._0x1db1d5)]],_0x4ed85e[_0x2189e1(0x1d1,0x252)+_0x2189e1(_0x3bf970._0x519cf0,_0x3bf970._0x48f745)+_0x2189e1(0x3b0,0x5c5)]=[...this[_0x21aaa5(_0x3bf970._0xee83d7,0x4e4)][_0x2189e1(0x1d1,0x136)+_0x21aaa5(0x4c1,_0x3bf970._0x251336)+_0x2189e1(0x3b0,0x4bc)]];function _0x21aaa5(_0x16d62b,_0x317b77){return _0x3a7f13(_0x317b77,_0x16d62b-_0x480c01._0xd0c7d5);}return _0x4ed85e;}async[_0x3a7f13(0x6d4,0x550)+_0x3a7f13(0x15f,0x1db)](){const _0x42c754={_0x32f32b:0x227,_0x123dbc:0x291,_0x4c04c2:0x375,_0x14cf69:0x72e,_0x9ca813:0x760,_0x4e197e:0x1c8,_0xed4ebb:0x837,_0x226ba0:0x7ac,_0x331661:0x24e,_0x5570d4:0x85,_0x496c0b:0x7dd,_0x30b6d4:0x78d,_0x17e004:0x196,_0x52b40e:0xd2,_0xa6a10e:0x60f,_0x4015e6:0x3b8,_0x2028da:0x35e,_0x135d4f:0x209,_0x508e9c:0x373,_0x42e673:0x3dd,_0xb3e61a:0x938,_0x53e194:0x41d},_0x3083f9={_0x92ef38:0x557,_0xc0ae80:0xc8,_0x58345c:0x660,_0x4016a9:0x53c,_0x2a7ee2:0x4f8,_0x4a9a45:0xb3,_0x1e5496:0xc2,_0x1dbeed:0xf2,_0x1735ba:0x55c,_0x164957:0x5d2,_0x47c23f:0x25,_0x26ccce:0x8f,_0x5e3e2e:0x21c,_0x1845e0:0x27f,_0x4d270f:0x296,_0x43f013:0x71,_0xf6d42:0x4cd,_0x5ab2a6:0x302,_0x1aee25:0x91,_0x364627:0x50,_0x344164:0x3c2,_0x398e07:0x99,_0x20c731:0x4b3,_0x537af0:0x313},_0x5e6032={_0x1bd5eb:0x2d6,_0x5a7aa4:0x4fd,_0x621e0b:0x208,_0x3abdc3:0x499,_0x330e78:0x671},_0x4665b7={_0x27bd38:0x0,_0x2a5571:0x12f,_0x588c48:0x34,_0xf56732:0x215,_0x38880f:0x1a1,_0xcc0256:0x371,_0x41ddd3:0x3b6,_0x530213:0x289,_0x532667:0x86,_0x51c115:0x32,_0x47bde7:0x3b,_0x5c28f7:0xc5,_0x1077a2:0x378,_0x1a8a6e:0xa3,_0x65337d:0x137,_0x57d616:0x44b,_0x4d6035:0x243},_0x20b856={'fRhfx':_0x11c8d2(0x23d,0x265)+_0x11c8d2(0x1a6,0x24c),'ERHOm':function(_0x20226e,_0x2c53c1){return _0x20226e===_0x2c53c1;},'WZyxU':function(_0x5e6996,_0x18a8b4){return _0x5e6996(_0x18a8b4);},'zwivv':_0x11c8d2(_0x42c754._0x32f32b,0x367)};if(this[_0x11c8d2(_0x42c754._0x123dbc,_0x42c754._0x4c04c2)]||this[_0x237489(_0x42c754._0x14cf69,_0x42c754._0x9ca813)+_0x11c8d2(_0x42c754._0x4e197e,0x2c2)]||this[_0x237489(_0x42c754._0xed4ebb,_0x42c754._0x226ba0)+_0x11c8d2(_0x42c754._0x331661,_0x42c754._0x5570d4)]())return;this[_0x237489(_0x42c754._0x496c0b,0x760)+_0x11c8d2(0x1c8,0x38a)]=!![],this[_0x237489(_0x42c754._0x30b6d4,0x67c)+'empt']+=0x1;const _0x3ee4c4=this['relayAtt'+'empt'],_0x504b3f=_0x20b856[_0x237489(0x7e7,0x6e0)](buildRelayWsUrl,this['options'][_0x11c8d2(_0x42c754._0x17e004,_0x42c754._0x52b40e)]);function _0x237489(_0x3c00b3,_0x3d23b8){return _0x32d8ea(_0x3c00b3,_0x3d23b8- -0x261);}this['log'](_0x237489(0x89b,0x66c)+_0x237489(_0x42c754._0xa6a10e,0x599)+'tempt='+_0x3ee4c4+_0x237489(_0x42c754._0x4015e6,0x347)+redactRelayWsUrl(_0x504b3f));const _0x2a48db={};_0x2a48db[_0x237489(0x940,0x76f)+'ad']=0x19*0x400*0x400;const _0x21ac8b=new _0x30847f(_0x504b3f,_0x2a48db);function _0x11c8d2(_0x371b8d,_0x4125e9){return _0x32d8ea(_0x4125e9,_0x371b8d- -0x5ba);}this['relaySoc'+_0x237489(0x256,0x42d)]=_0x21ac8b,_0x21ac8b[_0x11c8d2(0x459,_0x42c754._0x2028da)]('open',()=>{const _0x106f36={_0xc687e5:0x535},_0x56d9f5={_0x3839b3:0x3aa};function _0x2b5ecf(_0x43ddce,_0x4c4a94){return _0x237489(_0x4c4a94,_0x43ddce- -_0x56d9f5._0x3839b3);}const _0x24753c=_0x20b856[_0x2b5ecf(_0x4665b7._0x27bd38,_0x4665b7._0x2a5571)][_0x59edb3(-0x5c,_0x4665b7._0x588c48)]('|');let _0x23b2cc=0x0;function _0x59edb3(_0x4bcba8,_0x1026e8){return _0x237489(_0x4bcba8,_0x1026e8- -_0x106f36._0xc687e5);}while(!![]){switch(_0x24753c[_0x23b2cc++]){case'0':const _0x284fb6={};_0x284fb6['relayCon'+_0x2b5ecf(0x3de,_0x4665b7._0xf56732)]=!![],_0x284fb6['lastErro'+'r']=null,this[_0x59edb3(-0x38a,-_0x4665b7._0x38880f)+_0x2b5ecf(_0x4665b7._0xcc0256,0x46e)](_0x284fb6);continue;case'1':this[_0x2b5ecf(0x247,0x1)+_0x59edb3(-0x50,0x29)+'nected']();continue;case'2':this[_0x2b5ecf(_0x4665b7._0x41ddd3,0x4a5)+_0x2b5ecf(0x177,_0x4665b7._0x530213)]=![];continue;case'3':if(this[_0x2b5ecf(0x240,0x1c2)]||this[_0x59edb3(_0x4665b7._0x532667,0x53)+_0x2b5ecf(0x83,-_0x4665b7._0x51c115)]!==_0x21ac8b){_0x21ac8b[_0x2b5ecf(0x293,0x43d)]();return;}continue;case'4':this[_0x2b5ecf(0x1c7,0x366)+_0x59edb3(-_0x4665b7._0x47bde7,_0x4665b7._0x5c28f7)+'yMs']=Date[_0x59edb3(_0x4665b7._0x1077a2,0x280)]();continue;case'5':this[_0x2b5ecf(_0x4665b7._0x1a8a6e,-0xd2)](_0x59edb3(-0x4d,_0x4665b7._0x65337d)+_0x59edb3(_0x4665b7._0x57d616,_0x4665b7._0x4d6035)+'attempt='+_0x3ee4c4);continue;case'6':this['startHea'+'rtbeat']();continue;}break;}}),_0x21ac8b['on'](_0x20b856[_0x237489(0x4c6,0x37f)],(_0x33cc2a,_0xf6d79)=>{function _0x44b1da(_0x2d2a0c,_0x46f829){return _0x11c8d2(_0x46f829-0x1d0,_0x2d2a0c);}void this[_0x44b1da(0x3c5,0x1cc)+'layMessa'+'ge'](_0x33cc2a,_0xf6d79);}),_0x21ac8b['on'](_0x11c8d2(0x3b7,_0x42c754._0x135d4f),()=>{function _0x5772b6(_0x1502ec,_0x460c48){return _0x237489(_0x1502ec,_0x460c48- -0x144);}function _0x12cc32(_0x133793,_0x583373){return _0x237489(_0x583373,_0x133793- -0x324);}this['lastRela'+_0x12cc32(_0x5e6032._0x1bd5eb,_0x5e6032._0x5a7aa4)+_0x12cc32(0x2d7,_0x5e6032._0x621e0b)]=Date[_0x5772b6(_0x5e6032._0x3abdc3,_0x5e6032._0x330e78)]();}),_0x21ac8b['once'](_0x237489(_0x42c754._0x508e9c,_0x42c754._0x42e673),_0x3325cf=>{const _0x3e09f7={_0x448165:0x165};function _0x39fcdd(_0x2d4e7a,_0x595790){return _0x237489(_0x595790,_0x2d4e7a- -0x2df);}function _0x281623(_0xa6679d,_0x206a4b){return _0x237489(_0x206a4b,_0xa6679d-_0x3e09f7._0x448165);}this[_0x281623(0x5b2,0x618)](_0x281623(0x698,0x4ed)+'ror:\x20'+String(_0x3325cf));}),_0x21ac8b[_0x237489(_0x42c754._0xb3e61a,0x7b2)](_0x11c8d2(0x2e4,_0x42c754._0x53e194),(_0x4c6cb8,_0x3c4131)=>{function _0x201ee5(_0x31945c,_0x47d9b9){return _0x237489(_0x47d9b9,_0x31945c- -0x3bc);}const _0x16e2db=(_0x76bb8d(_0x3083f9._0x92ef38,0x376)+_0x201ee5(_0x3083f9._0xc0ae80,-0x123)+'2')[_0x76bb8d(0x691,0x4ae)]('|');function _0x76bb8d(_0x325391,_0x4e3b9c){return _0x237489(_0x325391,_0x4e3b9c- -0xbb);}let _0x20e144=0x0;while(!![]){switch(_0x16e2db[_0x20e144++]){case'0':this[_0x76bb8d(0x519,0x2d9)+_0x76bb8d(0x63c,_0x3083f9._0x58345c)]({'relayConnected':![],'gatewayConnected':![],'clientCount':0x0,'lastError':_0x20b856['ERHOm'](_0x4c6cb8,0x3e8)?null:'relay\x20cl'+_0x76bb8d(_0x3083f9._0x4016a9,0x509)+(_0x3c4131[_0x76bb8d(0x57b,_0x3083f9._0x2a7ee2)]()||_0x4c6cb8)});continue;case'1':this[_0x201ee5(_0x3083f9._0x4a9a45,-0x123)+_0x201ee5(_0x3083f9._0x1e5496,_0x3083f9._0x1dbeed)]();continue;case'2':this[_0x201ee5(0x257,0x228)+'RelayRec'+_0x201ee5(0x13e,-0xc4)]();continue;case'3':this['clientDe'+_0x76bb8d(_0x3083f9._0x1735ba,_0x3083f9._0x164957)+_0x201ee5(_0x3083f9._0x47c23f,0xd9)]=null;continue;case'4':this[_0x201ee5(_0x3083f9._0x26ccce,0x239)+'onnected'+_0x201ee5(_0x3083f9._0x5e3e2e,0x362)]=null;continue;case'5':this[_0x201ee5(_0x3083f9._0x1845e0,_0x3083f9._0x4d270f)+'tbeat']();continue;case'6':this['relaySoc'+_0x201ee5(_0x3083f9._0x43f013,0x14)]===_0x21ac8b&&(this[_0x76bb8d(0x5e8,_0x3083f9._0xf6d42)+_0x76bb8d(_0x3083f9._0x5ab2a6,0x372)]=null);continue;case'7':this[_0x201ee5(_0x3083f9._0x1aee25,-_0x3083f9._0x364627)](_0x76bb8d(0x562,0x653)+_0x201ee5(0x3d0,0x549)+'ed\x20code='+_0x4c6cb8+'\x20reason='+(_0x3c4131[_0x201ee5(0x1f7,_0x3083f9._0x344164)]()||_0x201ee5(_0x3083f9._0x398e07,0x266)));continue;case'8':this[_0x201ee5(0x3a4,_0x3083f9._0x20c731)+_0x76bb8d(_0x3083f9._0x537af0,0x466)]=![];continue;}break;}});}async[_0x3a7f13(0x1d5,0x190)+_0x3a7f13(0x1b9,0x38a)+'ge'](_0x113840,_0x15e601){const _0x35a697={_0x48d3a5:0xd5,_0x2f1e16:0x109,_0x25a1d5:0xd1,_0x4e6293:0xbc,_0x219d28:0x443,_0x287bda:0x33b,_0x15ac0a:0x57f,_0x4b2839:0x68e,_0x1b3407:0x85c,_0x213c5f:0x165,_0x200b20:0x298,_0x4f609b:0x722,_0x11565d:0x64a,_0x408e6f:0x7f,_0x4836bc:0x1a1,_0x21c113:0x6ac,_0x367984:0x577,_0x5b4baf:0x27c,_0x1ee10a:0x82,_0x13feb3:0x52f,_0xbe740d:0x1ed},_0x55680f={_0x403ffe:0x313},_0x3f4fc0={'XXHgC':function(_0xfb3e65,_0x48d853){return _0xfb3e65(_0x48d853);},'DnhHn':_0x289a44(_0x35a697._0x48d3a5,-0x103)};this[_0x289a44(-_0x35a697._0x2f1e16,0x33)+_0x289a44(_0x35a697._0x25a1d5,_0x35a697._0x4e6293)+_0x19a259(0x549,0x464)]=Date[_0x289a44(0x3a4,0x277)]();if(_0x15e601){this['forwardO'+_0x19a259(_0x35a697._0x219d28,_0x35a697._0x287bda)+_0x19a259(0x72a,0x7e8)+'sage']({'kind':_0x19a259(0x521,_0x35a697._0x15ac0a),'data':_0x3f4fc0[_0x19a259(_0x35a697._0x4b2839,_0x35a697._0x1b3407)](normalizeBinary,_0x113840)});return;}const _0x17ff93=normalizeText(_0x113840);function _0x19a259(_0xda6d78,_0x2faef9){return _0x32d8ea(_0x2faef9,_0xda6d78- -_0x55680f._0x403ffe);}if(_0x17ff93==null)return;const _0x8433ee=parseControl(_0x17ff93);if(_0x8433ee){this[_0x19a259(0x2a3,0xbb)+_0x289a44(_0x35a697._0x213c5f,_0x35a697._0x200b20)+'ol'](_0x8433ee[_0x19a259(0x391,0x502)],_0x8433ee[_0x19a259(_0x35a697._0x4f609b,_0x35a697._0x11565d)]);return;}const _0x13c642=parseConnectStartIdentity(_0x17ff93);_0x13c642&&this[_0x289a44(_0x35a697._0x408e6f,-_0x35a697._0x4836bc)+'onnectSt'+_0x289a44(0xce,0x253)](_0x13c642['id'],_0x13c642[_0x19a259(0x6bb,_0x35a697._0x21c113)]);const _0x5c05a1={};_0x5c05a1[_0x19a259(0x665,_0x35a697._0x367984)]=_0x3f4fc0[_0x289a44(-_0x35a697._0x5b4baf,-0x16f)];function _0x289a44(_0x46827e,_0x54dfdf){return _0x32d8ea(_0x46827e,_0x54dfdf- -0x79f);}_0x5c05a1['text']=_0x17ff93,this[_0x289a44(-_0x35a697._0x1ee10a,-0x12f)+_0x19a259(0x443,0x396)+_0x19a259(0x72a,_0x35a697._0x13feb3)+_0x289a44(0x21,_0x35a697._0xbe740d)](_0x5c05a1);}[_0x3a7f13(0x97,0x190)+_0x32d8ea(0x966,0xa37)+'ol'](_0x454d8f,_0x159a4a){const _0x12caed={_0x4e7347:0x952,_0x1bcbc7:0x258,_0x3864fa:0xe,_0x1da572:0x8ce,_0x37e042:0x9a1,_0x175358:0x9d7,_0x4007a5:0x672,_0x136de2:0x450,_0x4e37bd:0x5ee,_0x5f2589:0x95d,_0x420f62:0x840,_0x3c6bd9:0x6b1,_0x2a5ee1:0x5b4,_0x5f4b8c:0x55e,_0x4d90e0:0x444,_0x268c55:0x54e,_0x21e770:0x541,_0x408798:0x4e9,_0x34e242:0x23d,_0x3f1562:0x27a,_0x3b448c:0x82d,_0x2b6883:0x7fd,_0x2e885b:0xa16,_0x4894e0:0x7b9,_0x22a211:0x926,_0x5e2445:0x6ea,_0x2f0b6c:0x656,_0x2e1a7e:0x484,_0x59099f:0x1bc,_0x67a46f:0xb8,_0x4a6312:0x378,_0x4115b2:0x2b1,_0xe48f8e:0x953,_0x5b54be:0xa64,_0x4c44da:0x30a,_0x3e0af1:0x60d,_0x11128a:0x4ea,_0x5eaac4:0x5a3,_0x3f8169:0x608,_0x4593d6:0x4b6,_0x2c834c:0x6fd,_0x58c23b:0x56a,_0xcfdead:0x5c7,_0x22f127:0x91e,_0x5a2f42:0x999,_0x2850f4:0x1f8,_0x1d7264:0x7dc,_0x57bf90:0x5ff,_0x1df3e2:0x500,_0x11bfbb:0x7e6,_0x15a7d4:0x2f2,_0x46a6f3:0x764,_0x19d720:0x98a,_0x36293b:0xb8b,_0x1f21cf:0x3bf,_0x28dc6c:0x3ec,_0x593bbc:0x353,_0x5c4653:0x512,_0x17b6e5:0x4b8,_0x5bcc2a:0x629,_0x500017:0x56b,_0xc02a47:0x295,_0x249274:0x559,_0xabd676:0x58c,_0x12344c:0x611,_0x36c9ae:0x3a5,_0x5f37eb:0x7bc,_0x9bf0ae:0x2cb,_0x169ca3:0x687,_0x47ab8e:0x5d5,_0x2b7f79:0x654,_0x12edcc:0x529,_0x45d048:0x26e,_0x453b9c:0x1f0,_0x435c64:0x247,_0x37c7d6:0x9ed,_0x17a8f0:0x23e,_0x47a894:0x6d1,_0x170c2c:0x7d7,_0x242158:0x57d,_0x4c92db:0x4b4,_0x1af8ec:0x2a7,_0x3d7f3f:0x706,_0x43eb03:0x98a,_0x3cdcb6:0xb21,_0x87b0be:0x556,_0x52301b:0x961,_0xcac473:0x7b6,_0x2e7c99:0x251,_0x16befd:0x3a4,_0x5bea1f:0x219,_0x4fa2af:0x351,_0x594ffe:0x3ba,_0x988747:0x991},_0x347c92={_0x4a97d7:0x21},_0x3ec6e1={'rxgjg':_0x378ce3(_0x12caed._0x4e7347,0x786)+'ount','PLZQq':function(_0x1ab9c7,_0xe402bf){return _0x1ab9c7==_0xe402bf;},'whQab':function(_0x2cccd6,_0x4f484f){return _0x2cccd6(_0x4f484f);},'AmzKV':function(_0x5182d8,_0x4fab5d){return _0x5182d8>_0x4fab5d;},'nBoaW':_0x25464f(_0x12caed._0x1bcbc7,_0x12caed._0x3864fa)+_0x25464f(0x37f,0x5c3)+_0x25464f(0x2cc,0x354),'QrpVy':_0x25464f(0x4f0,0x414)+'isconnec'+'ted;\x20kee'+'ping\x20gat'+_0x378ce3(_0x12caed._0x1da572,_0x12caed._0x37e042)+_0x378ce3(0x991,_0x12caed._0x175358)};function _0x25464f(_0x31ef3f,_0x26e9ff){return _0x3a7f13(_0x26e9ff,_0x31ef3f-_0x347c92._0x4a97d7);}function _0x378ce3(_0x2cfc19,_0x4e4e1e){return _0x3a7f13(_0x4e4e1e,_0x2cfc19-0x3ce);}if(_0x454d8f===_0x378ce3(0x952,0x9b9)+_0x378ce3(0x61b,_0x12caed._0x4007a5)||_0x454d8f===_0x3ec6e1['rxgjg']){const _0x1e2641=this[_0x378ce3(0x6b1,0x467)][_0x378ce3(0x961,0x8c4)+_0x25464f(_0x12caed._0x136de2,_0x12caed._0x4e37bd)],_0x482b81=_0x159a4a??Math[_0x378ce3(_0x12caed._0x5f2589,_0x12caed._0x420f62)](0x1,this[_0x378ce3(_0x12caed._0x3c6bd9,0x5a8)][_0x25464f(_0x12caed._0x2a5ee1,0x4e6)+_0x378ce3(0x7fd,0x61c)]);_0x482b81>0x0&&_0x3ec6e1[_0x25464f(_0x12caed._0x5f4b8c,_0x12caed._0x4d90e0)](this[_0x25464f(_0x12caed._0x268c55,0x4c7)+_0x25464f(0x4e9,_0x12caed._0x21e770)+_0x378ce3(0x5ea,0x40a)],null)&&(this[_0x25464f(0x54e,0x669)+_0x25464f(_0x12caed._0x408798,0x37f)+_0x25464f(_0x12caed._0x34e242,_0x12caed._0x3f1562)]=Date[_0x378ce3(0x9be,_0x12caed._0x3b448c)]());const _0x2239c0={};_0x2239c0['clientCo'+_0x378ce3(_0x12caed._0x2b6883,_0x12caed._0x2e885b)]=_0x482b81,this[_0x378ce3(0x59d,_0x12caed._0x4894e0)+_0x378ce3(0x924,0x7f1)](_0x2239c0);if(_0x482b81===0x0)this[_0x378ce3(0x706,0x911)+_0x378ce3(_0x12caed._0x22a211,0x930)+_0x378ce3(0x98a,0x845)]=![],this[_0x25464f(0x3a4,0x541)+_0x378ce3(0x773,_0x12caed._0x5e2445)+'t'](),this[_0x378ce3(_0x12caed._0x2f0b6c,_0x12caed._0x2e1a7e)]('client\x20d'+_0x25464f(0x248,_0x12caed._0x59099f)+'opped\x20to'+'\x20zero;\x20k'+_0x25464f(0x4f4,0x5d0)+_0x25464f(0x466,0x66b)+_0x25464f(0x26e,_0x12caed._0x67a46f));else{if(shouldRecycleGatewayForFreshClient(_0x1e2641,_0x482b81,this[_0x378ce3(0x603,0x805)+_0x25464f(0x595,0x55f)](),![])){const _0x40c389=_0x3ec6e1[_0x25464f(_0x12caed._0x4a6312,_0x12caed._0x4115b2)](summarizePendingGatewayMessages,this['pendingG'+_0x378ce3(0x9d6,_0x12caed._0xe48f8e)+'ssages']);this['log'](_0x378ce3(0x8d1,_0x12caed._0x5b54be)+_0x25464f(0x268,_0x12caed._0x4c44da)+_0x25464f(0x3f9,_0x12caed._0x3e0af1)+_0x25464f(_0x12caed._0x11128a,0x54c)+_0x25464f(_0x12caed._0x5eaac4,_0x12caed._0x3f8169)+_0x25464f(_0x12caed._0x4593d6,_0x12caed._0x2c834c)+_0x378ce3(_0x12caed._0x58c23b,_0x12caed._0xcfdead)+'='+_0x40c389['total']+('\x20connect'+'=')+_0x40c389[_0x378ce3(_0x12caed._0x22f127,_0x12caed._0x5a2f42)+'equests']+_0x25464f(0x1b7,_0x12caed._0x2850f4)+_0x40c389[_0x378ce3(0x620,0x5b5)+'t']+_0x25464f(0x49e,0x511)+_0x40c389[_0x378ce3(_0x12caed._0x1d7264,_0x12caed._0x57bf90)]+(_0x25464f(_0x12caed._0x1df3e2,0x6d7)+_0x378ce3(0x9e4,_0x12caed._0x11bfbb)+'d=')+this[_0x25464f(0x359,_0x12caed._0x15a7d4)+_0x378ce3(0x926,_0x12caed._0x46a6f3)+_0x378ce3(_0x12caed._0x19d720,_0x12caed._0x36293b)]);const _0x3c7d17=prunePendingGatewayMessagesForFreshDemand(this[_0x25464f(_0x12caed._0x1f21cf,_0x12caed._0x28dc6c)+'atewayMe'+_0x25464f(0x1ab,_0x12caed._0x593bbc)]);_0x3ec6e1[_0x25464f(0x321,0x53e)](_0x3c7d17[_0x25464f(_0x12caed._0x5c4653,_0x12caed._0x17b6e5)],0x0)&&(this['pendingG'+_0x25464f(_0x12caed._0x5bcc2a,0x52d)+_0x378ce3(0x558,_0x12caed._0x500017)]=_0x3c7d17['messages'],this[_0x25464f(0x2a9,0x47a)](_0x378ce3(0x66c,0x4d6)+'stale\x20ga'+_0x25464f(_0x12caed._0xc02a47,0x3fb)+_0x378ce3(_0x12caed._0x249274,0x536)+_0x378ce3(_0x12caed._0xabd676,_0x12caed._0x12344c)+_0x378ce3(0x719,0x8ef)+'ed='+_0x3c7d17['dropped']+_0x25464f(_0x12caed._0x36c9ae,0x35c)+_0x3c7d17[_0x378ce3(0x8a2,_0x12caed._0x5f37eb)][_0x25464f(0x3d2,0x60d)])),this[_0x25464f(_0x12caed._0x9bf0ae,0x13a)+_0x378ce3(_0x12caed._0x169ca3,_0x12caed._0x47ab8e)]();}if(this[_0x25464f(0x256,0x3fc)+_0x25464f(0x595,0x690)]()){const _0x1f8f78={};_0x1f8f78[_0x378ce3(_0x12caed._0x2b7f79,_0x12caed._0x12edcc)+_0x25464f(_0x12caed._0x45d048,0x298)]=!![],_0x1f8f78['lastErro'+'r']=null,this[_0x25464f(_0x12caed._0x453b9c,_0x12caed._0x435c64)+_0x378ce3(0x924,_0x12caed._0x37c7d6)](_0x1f8f78),this[_0x25464f(0x2a9,0x2a9)]('gateway\x20'+_0x378ce3(0x88a,0x79c)+_0x25464f(_0x12caed._0x17a8f0,0xd3)+_0x378ce3(0x761,0x7ee)+_0x378ce3(_0x12caed._0x47a894,_0x12caed._0x170c2c)+_0x378ce3(_0x12caed._0x242158,_0x12caed._0x4c92db)+this[_0x378ce3(0x860,0x736)+_0x378ce3(0x9c1,0xa57)](this[_0x25464f(_0x12caed._0x1af8ec,0x403)+_0x378ce3(0x61b,0x495)+'AtMs'])+('\x20handsha'+'keStarte'+'d=')+this[_0x378ce3(_0x12caed._0x3d7f3f,0x4c2)+_0x25464f(0x579,0x5cc)+_0x378ce3(_0x12caed._0x43eb03,0xb3f)]);}}this[_0x25464f(0x44d,0x2d7)+_0x25464f(0x3ba,0x39c)+_0x378ce3(0x991,_0x12caed._0x3cdcb6)]();return;}if(_0x454d8f===_0x3ec6e1[_0x25464f(_0x12caed._0x87b0be,0x77b)]){this['gatewayH'+_0x378ce3(0x926,0x986)+'Started']=![];const _0x3f8ed1={};_0x3f8ed1[_0x378ce3(_0x12caed._0x52301b,_0x12caed._0xcac473)+_0x378ce3(0x7fd,0x73a)]=0x0,this[_0x25464f(0x1f0,_0x12caed._0x2e7c99)+'apshot'](_0x3f8ed1),this[_0x25464f(_0x12caed._0x16befd,_0x12caed._0x5bea1f)+_0x25464f(0x3c6,_0x12caed._0x4fa2af)+'t'](),this[_0x378ce3(0x656,0x547)](_0x3ec6e1['QrpVy']),this[_0x378ce3(0x7fa,0x711)+_0x25464f(_0x12caed._0x594ffe,0x495)+_0x378ce3(_0x12caed._0x988747,0xb82)]();return;}}['forwardO'+_0x3a7f13(0x233,0x330)+_0x3a7f13(0x4d2,0x617)+_0x3a7f13(0x39f,0x566)](_0x5be2fa){const _0x36f3f2={_0x52d1c0:0x599,_0x1a8699:0x409,_0x534a4a:0x29e,_0x1d478e:0x15d,_0x514564:0x310,_0x8c983b:0x273,_0x4a6654:0x95,_0x316051:0x121,_0x2c6a68:0x3d7,_0x57521d:0x17c,_0x10ea90:0x211,_0x5c9686:0x28d,_0x5f0cb6:0x76,_0x228a5b:0x14c,_0x32c385:0x1de,_0xc823fb:0xf3,_0x429525:0x1b9,_0x4fe4e1:0x1ed,_0x5212e9:0x188,_0x38602e:0x24c,_0x1f3b09:0x47,_0x45ec76:0x23e,_0x28242b:0x21f,_0x2b9143:0x3f2,_0x3dc9fe:0xd4,_0x27aa0d:0x2f0,_0x427e9b:0x1ed,_0x52f556:0x283,_0x4c98eb:0x2ff,_0x202af0:0x17c,_0x594831:0x1d4,_0x3285c7:0x3a4,_0x2ee922:0x3c1,_0x327d26:0x50e,_0x56f9e2:0x1ae,_0x3a7c3e:0xa,_0x27b079:0x93,_0x54f3cb:0x109};function _0x30831e(_0x5bf5f9,_0x19a8d8){return _0x3a7f13(_0x5bf5f9,_0x19a8d8- -0xfa);}const _0xf794e9={'cwjRO':function(_0x361183,_0x18ce5a){return _0x361183===_0x18ce5a;},'yZVGc':function(_0x565f9d,_0xa9bf18){return _0x565f9d!==_0xa9bf18;},'MJByu':_0x30831e(_0x36f3f2._0x52d1c0,_0x36f3f2._0x1a8699)+_0x98eac6(-0x19b,-0x30e)+_0x30831e(-0x10,0xc6)+_0x98eac6(0x111,_0x36f3f2._0x534a4a)+_0x30831e(0xa1,_0x36f3f2._0x1d478e)+'hake;\x20qu'+_0x30831e(_0x36f3f2._0x514564,_0x36f3f2._0x8c983b)+_0x98eac6(-0x22,-_0x36f3f2._0x4a6654)+'ay\x20recon'+_0x98eac6(0x21,0x10f),'lzVfP':function(_0x27a566,_0x1a572c){return _0x27a566(_0x1a572c);}},_0x285e55=_0xf794e9[_0x30831e(-_0x36f3f2._0x316051,0xe7)](_0x5be2fa[_0x98eac6(0x219,_0x36f3f2._0x2c6a68)],'text')&&isConnectHandshakeRequest(_0x5be2fa[_0x30831e(0x2f4,_0x36f3f2._0x57521d)]);function _0x98eac6(_0x2ac862,_0x391f28){return _0x3a7f13(_0x391f28,_0x2ac862- -0x339);}const _0x4a4120=this[_0x98eac6(_0x36f3f2._0x10ea90,_0x36f3f2._0x5c9686)+'ocket'];if(!_0x4a4120||_0xf794e9['yZVGc'](_0x4a4120[_0x30831e(-_0x36f3f2._0x5f0cb6,0x171)+'te'],_0x30847f[_0x98eac6(-_0x36f3f2._0x228a5b,-_0x36f3f2._0x32c385)])){this[_0x98eac6(_0x36f3f2._0xc823fb,0x199)+'tewayCon'+_0x98eac6(0x28a,0x89)](),this['pushPend'+_0x30831e(_0x36f3f2._0x429525,_0x36f3f2._0x4fe4e1)+_0x98eac6(0x215,_0x36f3f2._0x5212e9)+'e'](_0x5be2fa);_0x285e55&&this['log'](_0xf794e9[_0x30831e(_0x36f3f2._0x38602e,0x202)]);return;}if(!this[_0x30831e(_0x36f3f2._0x1f3b09,_0x36f3f2._0x45ec76)+_0x98eac6(_0x36f3f2._0x28242b,_0x36f3f2._0x2b9143)+_0x98eac6(0x283,0x1c1)]){if(!_0x285e55){this[_0x30831e(0x79,_0x36f3f2._0x3dc9fe)+_0x30831e(_0x36f3f2._0x27aa0d,_0x36f3f2._0x427e9b)+_0x30831e(0x467,0x454)+'e'](_0x5be2fa);return;}this['gatewayH'+_0x98eac6(0x21f,0x42c)+_0x98eac6(_0x36f3f2._0x52f556,_0x36f3f2._0x4c98eb)]=!![];const _0x56b8a7=_0xf794e9[_0x98eac6(-_0x36f3f2._0x5212e9,-0xa9)](parseConnectHandshakeMeta,_0x5be2fa[_0x30831e(0xd4,_0x36f3f2._0x202af0)]);this['log'](_0x30831e(0x486,0x409)+'handshak'+_0x98eac6(_0x36f3f2._0x594831,_0x36f3f2._0x3285c7)+_0x30831e(-0x16b,0xa2)+'='+this[_0x30831e(_0x36f3f2._0x2ee922,0x2a4)+_0x30831e(0x431,_0x36f3f2._0x327d26)+_0x30831e(-_0x36f3f2._0x56f9e2,0x90)][_0x98eac6(0x78,0x26b)]+formatConnectHandshakeMetaForLog(_0x56b8a7));}this[_0x30831e(_0x36f3f2._0x3a7c3e,_0x36f3f2._0x27b079)+_0x30831e(-0x105,_0x36f3f2._0x54f3cb)](_0x5be2fa);}[_0x32d8ea(0x82f,0x852)+'tewayCon'+_0x3a7f13(0x790,0x5c3)](){const _0x5e6043={_0x53af4a:0x420,_0x52a94e:0x2ad,_0x235bfc:0x2df,_0x5dfe33:0x4da,_0x3c2567:0x307,_0x154a94:0x4ec,_0x235353:0x33f,_0x119697:0x456,_0xd5d84b:0x406,_0x3fa634:0x171,_0x52589c:0x80a,_0x501c30:0x6f0,_0x31ac49:0x3ee,_0x4bc083:0x23f,_0x361bb0:0x5c9,_0x48ad15:0x90,_0x3e5fd0:0x14f,_0xf1f662:0x416,_0x24a6a8:0x7bf,_0x123b98:0x654,_0x59ce62:0x173,_0x440b3b:0x1ae,_0x267420:0x2ae,_0x2cb2d8:0x4b1,_0x44dd87:0x582},_0x313872={_0x35c388:0x471,_0x2dae16:0x3ba,_0x61c0a5:0x671,_0x2d25f9:0x47f,_0x4f4d98:0x723,_0x3c7cc3:0x22f,_0x588153:0x336,_0x5d6674:0x484,_0x3bda27:0x6bd,_0x5b8616:0x5b6,_0x50b745:0x21f,_0x546730:0x7bc,_0x31678a:0x60a,_0x50d403:0x1af,_0x4da0d1:0x3ba,_0x2cc5e8:0x555,_0x1a03c1:0x31a,_0x2e4e68:0x443,_0x17cab4:0x3e0,_0x47192a:0x412,_0x1d26f8:0x4e2,_0x171a57:0x694,_0x1df616:0x788,_0x17396d:0x62f,_0x57398e:0x355,_0x452b57:0x383,_0xe9ed35:0x32c},_0x4e5219={_0x571290:0x34},_0x2f3caa={_0x381519:0x274},_0x488768={_0x4e1250:0x4e6,_0x2d0a05:0x7c3},_0x4b5e8f={_0xeb4ded:0x36b},_0x313145={_0x43ab1d:0x74},_0x171522={_0x419ef6:0x4bd,_0xd69c39:0x579,_0x88897c:0x373,_0x5ee01b:0x2d5},_0x18fc23={_0x4c6a02:0x235},_0x476a56={_0x101da8:0x43b,_0x1c7f24:0x7f,_0x149100:0x271,_0x47c02e:0x3d,_0x19ee90:0x268,_0x1f41fa:0x66e,_0x3b46e8:0x17a,_0x44376c:0x293,_0xf2c7b5:0x81,_0x34e5ae:0x339,_0x50e7b1:0xcf,_0xa42df5:0x48b,_0x34085d:0x3f3,_0x49a4fe:0x60b,_0x59e0cd:0x460,_0x520782:0x593,_0x4194a4:0x60f,_0x5eab63:0x581,_0x4ca393:0x493,_0x30be6c:0x51e,_0x53b98d:0x454,_0x2637ae:0x3bc,_0x59e1e6:0x30a,_0x2fd0e3:0x28b,_0x403de2:0x4ad,_0x5f1c5b:0x182,_0x271b57:0x1cf,_0x51cfe9:0x150},_0x353c1f={_0x57c211:0x533};function _0x7c344a(_0x587345,_0x15d9ce){return _0x32d8ea(_0x587345,_0x15d9ce- -_0x353c1f._0x57c211);}function _0x487313(_0x240c85,_0x400ce1){return _0x32d8ea(_0x240c85,_0x400ce1- -0x31c);}const _0xc46e44={};_0xc46e44[_0x7c344a(_0x5e6043._0x53af4a,_0x5e6043._0x52a94e)]=function(_0x1c31cc,_0x351662){return _0x1c31cc*_0x351662;};const _0x47679d=_0xc46e44;if(this[_0x7c344a(_0x5e6043._0x235bfc,0x318)]||!this[_0x7c344a(0x663,_0x5e6043._0x5dfe33)+_0x487313(_0x5e6043._0x3c2567,_0x5e6043._0x154a94)]()||this['gatewayC'+'onnectin'+'g']||this[_0x487313(0x4af,_0x5e6043._0x235353)+_0x7c344a(_0x5e6043._0x119697,0x467)]())return;this['gatewayC'+_0x7c344a(_0x5e6043._0xd5d84b,0x3fd)+'g']=!![],this[_0x7c344a(_0x5e6043._0x3fa634,0x17b)](_0x487313(_0x5e6043._0x52589c,0x60d)+_0x487313(_0x5e6043._0x501c30,0x588)+_0x487313(0x847,0x638)+'l='+this[_0x487313(0x1a9,_0x5e6043._0x31ac49)][_0x7c344a(_0x5e6043._0x4bc083,0x14f)+'rl']);const _0x1644fc=new _0x30847f(this[_0x487313(_0x5e6043._0x361bb0,0x3ee)][_0x7c344a(-_0x5e6043._0x48ad15,_0x5e6043._0x3e5fd0)+'rl'],{'maxPayload':_0x47679d[_0x7c344a(_0x5e6043._0xf1f662,0x2ad)](0x19,0x400)*0x400});this[_0x487313(_0x5e6043._0x24a6a8,_0x5e6043._0x123b98)+_0x7c344a(0x3f8,0x4e7)]=_0x1644fc,_0x1644fc[_0x7c344a(0x45b,0x4e0)](_0x7c344a(_0x5e6043._0x59ce62,_0x5e6043._0x440b3b),()=>{const _0x4d30b0={_0x7c0b8c:0xef};function _0xf6a34f(_0x1d84ee,_0x42ae21){return _0x487313(_0x42ae21,_0x1d84ee- -_0x4d30b0._0x7c0b8c);}function _0x30b596(_0x559ec6,_0x44843f){return _0x487313(_0x559ec6,_0x44843f- -0x3cd);}const _0x5cc1d4=(_0xf6a34f(_0x476a56._0x101da8,0x252)+_0x30b596(0x2a6,0x1bd))[_0x30b596(_0x476a56._0x1c7f24,0xe1)]('|');let _0x18de4f=0x0;while(!![]){switch(_0x5cc1d4[_0x18de4f++]){case'0':this[_0x30b596(0x25,-0x3d)+_0x30b596(0x108,0x247)+'g']=![];continue;case'1':const _0x352c71={};_0x352c71[_0x30b596(-_0x476a56._0x149100,-_0x476a56._0x47c02e)+_0xf6a34f(_0x476a56._0x19ee90,0x415)]=!![],_0x352c71[_0xf6a34f(0x49f,_0x476a56._0x1f41fa)+'r']=null,this['updateSn'+_0x30b596(_0x476a56._0x3b46e8,_0x476a56._0x44376c)](_0x352c71);continue;case'2':this[_0x30b596(_0x476a56._0xf2c7b5,0x75)+_0xf6a34f(0x573,_0x476a56._0x34e5ae)+'Started']=![];continue;case'3':this[_0x30b596(_0x476a56._0x50e7b1,-0xaf)+_0x30b596(-0xeb,0x15)+'wayMessa'+_0xf6a34f(_0x476a56._0xa42df5,_0x476a56._0x34085d)]();continue;case'4':this['gatewayC'+'onnected'+'AtMs']=Date[_0xf6a34f(_0x476a56._0x49a4fe,_0x476a56._0x59e0cd)]();continue;case'5':if(this['stopped']||this[_0xf6a34f(0x565,_0x476a56._0x520782)+_0xf6a34f(_0x476a56._0x4194a4,_0x476a56._0x5eab63)]!==_0x1644fc){_0x1644fc[_0xf6a34f(_0x476a56._0x4ca393,0x523)]();return;}continue;case'6':this['log'](_0xf6a34f(_0x476a56._0x30be6c,_0x476a56._0x53b98d)+_0xf6a34f(0x238,0x3bb)+_0x30b596(_0x476a56._0x2637ae,0x234)+_0xf6a34f(_0x476a56._0x59e1e6,0x498)+_0xf6a34f(_0x476a56._0x2fd0e3,_0x476a56._0x403de2)+this[_0x30b596(_0x476a56._0x5f1c5b,_0x476a56._0x271b57)+'ince'](this[_0x30b596(_0x476a56._0x51cfe9,0x26a)+_0x30b596(0x2e1,0x205)+_0x30b596(-0x276,-0xa7)]));continue;}break;}}),_0x1644fc['on'](_0x7c344a(0x220,_0x5e6043._0x267420),(_0x1cf2f2,_0x38db95)=>{function _0x2ab852(_0x517efe,_0x558b3d){return _0x7c344a(_0x517efe,_0x558b3d- -_0x18fc23._0x4c6a02);}function _0x38d9c7(_0x417467,_0x508c51){return _0x7c344a(_0x508c51,_0x417467-0x7d);}this[_0x38d9c7(_0x171522._0x419ef6,_0x171522._0xd69c39)+_0x2ab852(_0x171522._0x88897c,_0x171522._0x5ee01b)+_0x2ab852(0x2f7,0x224)](_0x1cf2f2,_0x38db95);}),_0x1644fc[_0x487313(_0x5e6043._0x2cb2d8,0x6f7)](_0x7c344a(0x9f,0x10b),_0xb68914=>{function _0x3ac37d(_0x598284,_0x57314f){return _0x7c344a(_0x598284,_0x57314f- -_0x313145._0x43ab1d);}function _0x598958(_0x58cea0,_0x904d7e){return _0x7c344a(_0x904d7e,_0x58cea0-_0x4b5e8f._0xeb4ded);}this[_0x598958(_0x488768._0x4e1250,0x611)]('gateway\x20'+_0x598958(_0x488768._0x2d0a05,0x7bd)+String(_0xb68914));}),_0x1644fc['once'](_0x487313(0x3cf,_0x5e6043._0x44dd87),(_0x4575dc,_0x577e76)=>{this[_0x36e8a4(_0x313872._0x35c388,0x5f5)+_0x8d57d8(0x608,0x75b)]===_0x1644fc&&(this[_0x36e8a4(0x471,0x225)+'ocket']=null);this[_0x8d57d8(_0x313872._0x2dae16,0x3ed)+_0x8d57d8(0x4c3,_0x313872._0x61c0a5)+'g']=![];function _0x8d57d8(_0x3e3fa5,_0x1760a4){return _0x7c344a(_0x3e3fa5,_0x1760a4-_0x2f3caa._0x381519);}this['gatewayH'+_0x36e8a4(_0x313872._0x2d25f9,0x2b3)+_0x8d57d8(0x4f5,_0x313872._0x4f4d98)]=![];function _0x36e8a4(_0x5ca5a0,_0x228707){return _0x7c344a(_0x228707,_0x5ca5a0-_0x4e5219._0x571290);}this[_0x8d57d8(_0x313872._0x3c7cc3,0x3ed)+'onnected'+'AtMs']=null,this[_0x8d57d8(0x1b5,_0x313872._0x588153)+_0x8d57d8(_0x313872._0x5d6674,_0x313872._0x3bda27)]({'gatewayConnected':![],'lastError':_0x4575dc===0x3e8?this[_0x8d57d8(_0x313872._0x5b8616,0x44a)][_0x36e8a4(0x3ab,_0x313872._0x50b745)+'r']:_0x8d57d8(_0x313872._0x546730,0x66a)+_0x8d57d8(_0x313872._0x31678a,0x439)+(_0x577e76[_0x36e8a4(0x315,0x3f5)]()||_0x4575dc)}),this[_0x36e8a4(_0x313872._0x50d403,0x352)]('gateway\x20'+_0x36e8a4(0x233,0x57)+'cted\x20cod'+'e='+_0x4575dc+_0x8d57d8(0x4f4,_0x313872._0x4da0d1)+(_0x577e76[_0x8d57d8(0x390,_0x313872._0x2cc5e8)]()||_0x36e8a4(0x1b7,_0x313872._0x1a03c1))+(_0x36e8a4(_0x313872._0x2e4e68,0x496)+'ientDema'+_0x36e8a4(_0x313872._0x17cab4,_0x313872._0x47192a))+this['elapsedS'+_0x36e8a4(0x51a,_0x313872._0x1d26f8)](this[_0x8d57d8(0x616,_0x313872._0x171a57)+_0x8d57d8(_0x313872._0x1df616,_0x313872._0x17396d)+_0x8d57d8(_0x313872._0x57398e,_0x313872._0x452b57)])),this['schedule'+'GatewayR'+_0x8d57d8(0x2b4,_0x313872._0xe9ed35)]();});}[_0x3a7f13(0x470,0x54d)+'tewayMes'+'sage'](_0x5ebb0e,_0x1cc094){const _0x5186df={_0x281ace:0x511,_0x1cacc0:0x493,_0x2df121:0x5a6,_0x524613:0x5d9,_0x46bc7d:0x813,_0xc9904f:0x775,_0x5120b6:0x5b9,_0x133547:0x73f,_0x280c1f:0x7e0,_0x303b75:0x976,_0x4dd3d7:0x877,_0x54b162:0x710,_0xe5860:0x54c,_0x3eba12:0x470,_0xdb79d3:0x46f,_0x293b5b:0x423};function _0x3b797e(_0x2d23ed,_0x3fa1be){return _0x32d8ea(_0x2d23ed,_0x3fa1be- -0x1d7);}const _0x303f25={'bPGrb':function(_0x1db5b0,_0x5da861){return _0x1db5b0(_0x5da861);}},_0x210e9b=this['relaySoc'+'ket'];if(!_0x210e9b||_0x210e9b[_0x33fd7a(_0x5186df._0x281ace,0x53f)+'te']!==_0x30847f[_0x33fd7a(_0x5186df._0x1cacc0,0x5c8)])return;if(_0x1cc094){_0x210e9b[_0x3b797e(_0x5186df._0x2df121,0x418)](_0x303f25[_0x33fd7a(_0x5186df._0x524613,_0x5186df._0x46bc7d)](normalizeBinary,_0x5ebb0e));return;}function _0x33fd7a(_0x7163f,_0x4ba99b){return _0x32d8ea(_0x4ba99b,_0x7163f- -0x180);}const _0x4bb06a=normalizeText(_0x5ebb0e);if(_0x4bb06a==null)return;const _0x5c2463=parsePairingRequestFromError(_0x4bb06a);_0x5c2463&&this[_0x33fd7a(0x77e,_0x5186df._0xc9904f)+_0x33fd7a(_0x5186df._0x5120b6,_0x5186df._0x133547)+_0x33fd7a(_0x5186df._0x280c1f,_0x5186df._0x303b75)](_0x5c2463);const _0x52631a=_0x303f25[_0x3b797e(0x47f,0x582)](parsePairResolvedEvent,_0x4bb06a);_0x52631a&&this[_0x3b797e(_0x5186df._0x4dd3d7,0x7cd)+_0x3b797e(0x5d0,_0x5186df._0x54b162)+_0x33fd7a(0x89e,0x989)](_0x52631a[_0x33fd7a(0x7a2,0x95a)+'d'],_0x52631a[_0x3b797e(_0x5186df._0xe5860,_0x5186df._0x3eba12)]),_0x210e9b[_0x33fd7a(_0x5186df._0xdb79d3,_0x5186df._0x293b5b)](_0x4bb06a);}['flushPen'+_0x32d8ea(0x556,0x6fe)+_0x3a7f13(0x488,0x4ce)+'ges'](){const _0x15a353={_0x36d576:0x731,_0x17b44e:0x68c,_0x321d18:0x272,_0x35a9f1:0x75,_0x254356:0x10e,_0x39771f:0x223,_0x5105d5:0xcb,_0x1b6e5a:0x51e,_0x18585e:0x1e,_0x4110d7:0x13e,_0xace224:0x1b,_0x32b917:0x13e,_0x2a228d:0x741,_0x1a6c3f:0x6a0,_0xcad3a6:0x20c,_0x317d1e:0x264,_0x38a85d:0x36d,_0x562f0a:0x1bc,_0x5efa5f:0x11b,_0x183718:0x120,_0x671a9c:0x486,_0x32f436:0x3d0,_0x4febca:0x226,_0x47579b:0x209,_0x3e2277:0x1e5,_0x252ee0:0x222},_0x2fef28={_0x3315b1:0x396},_0x2e7282={};_0x2e7282[_0x2512eb(0x20a,0x32d)]=function(_0x5a01a1,_0x1256e5){return _0x5a01a1>_0x1256e5;};const _0x46db71=_0x2e7282,_0x3c35be=this[_0x171b37(_0x15a353._0x36d576,0x5e2)+_0x171b37(0x5bc,_0x15a353._0x17b44e)];if(!_0x3c35be||_0x3c35be[_0x171b37(0x4a3,0x303)+'te']!==_0x30847f['OPEN'])return;const _0x47fa68=[],_0x7317cf=dedupePendingGatewayMessages(this['pendingG'+_0x2512eb(_0x15a353._0x321d18,0x1bc)+_0x2512eb(-0x20c,-_0x15a353._0x35a9f1)]);_0x46db71['Xcsnp'](_0x7317cf['dropped'],0x0)&&this[_0x2512eb(-_0x15a353._0x254356,-0x25)]('dropped\x20'+_0x2512eb(_0x15a353._0x39771f,_0x15a353._0x5105d5)+_0x171b37(0x1fa,0x384)+_0x171b37(0x5c4,_0x15a353._0x1b6e5a)+_0x2512eb(-0x1b4,_0x15a353._0x18585e)+'fore\x20flu'+_0x2512eb(0x1c7,0x1bd)+'ed='+_0x7317cf[_0x2512eb(0x15b,-0xc8)]+_0x171b37(0x20d,0x41c)+_0x7317cf[_0x2512eb(_0x15a353._0x4110d7,0x2b0)][_0x2512eb(_0x15a353._0xace224,_0x15a353._0x32b917)]);this['pendingG'+_0x171b37(_0x15a353._0x2a228d,_0x15a353._0x1a6c3f)+_0x2512eb(-_0x15a353._0xcad3a6,-_0x15a353._0x317d1e)]=[];function _0x171b37(_0x27ab60,_0x2dc8de){return _0x3a7f13(_0x27ab60,_0x2dc8de-0x98);}for(const _0xabf106 of _0x7317cf[_0x2512eb(0x13e,0x251)]){if(!this['gatewayH'+'andshake'+_0x2512eb(0x226,_0x15a353._0x38a85d)]){if(_0xabf106[_0x2512eb(_0x15a353._0x562f0a,0x0)]!==_0x171b37(_0x15a353._0x5efa5f,0x30e)||!isConnectHandshakeRequest(_0xabf106[_0x2512eb(-_0x15a353._0x183718,-0x180)])){_0x47fa68['push'](_0xabf106);continue;}this[_0x171b37(_0x15a353._0x671a9c,_0x15a353._0x32f436)+_0x171b37(0x545,0x5f0)+_0x2512eb(_0x15a353._0x4febca,0x8)]=!![];}this[_0x2512eb(-_0x15a353._0x47579b,-0x3ec)+'teway'](_0xabf106);}function _0x2512eb(_0x14e56b,_0x45590f){return _0x3a7f13(_0x45590f,_0x14e56b- -_0x2fef28._0x3315b1);}this['pendingG'+'atewayMe'+_0x171b37(_0x15a353._0x3e2277,_0x15a353._0x252ee0)]=_0x47fa68;}[_0x32d8ea(0x5bf,0x5b3)+_0x3a7f13(0x294,0x203)](_0x4105aa){const _0x51cb4c={_0x46afcf:0x5be,_0x1c7c6b:0x27e,_0xbf7767:0x492,_0x2ba374:0x8c7,_0x42296c:0x8f8,_0x401a01:0x5ef,_0x27d50f:0x5e8,_0x1e0cb0:0x5ef,_0x104533:0x474,_0x8bb785:0x4af,_0x36ba26:0x52f,_0x185fcf:0x390,_0x5d17f6:0x7f8,_0x58dd3a:0x7b0,_0x292ab6:0x80b,_0x7b0fbd:0x45e,_0x304e97:0x568,_0x1177df:0x3f1},_0x11cfa0={_0x12143d:0x91},_0x270631={'pixCJ':function(_0x62a9c1,_0x2218be,_0x233f70){return _0x62a9c1(_0x2218be,_0x233f70);},'tbVbe':function(_0x4bd9c8,_0x147897){return _0x4bd9c8(_0x147897);}};function _0x5ebf72(_0xcf9ac0,_0x293e92){return _0x3a7f13(_0xcf9ac0,_0x293e92-_0x11cfa0._0x12143d);}const _0x1ca838=this[_0x5ebf72(_0x51cb4c._0x46afcf,0x5db)+_0x25f179(0x96d,0xb35)];function _0x25f179(_0xba29b7,_0x536a09){return _0x3a7f13(_0x536a09,_0xba29b7-0x379);}if(!_0x1ca838||_0x1ca838[_0x25f179(0x5e4,0x826)+'te']!==_0x30847f[_0x5ebf72(0x45d,_0x51cb4c._0x1c7c6b)]){this['pushPend'+_0x25f179(0x660,_0x51cb4c._0xbf7767)+_0x25f179(_0x51cb4c._0x2ba374,_0x51cb4c._0x42296c)+'e'](_0x4105aa);return;}if(_0x4105aa[_0x5ebf72(0x62d,0x5e3)]===_0x25f179(_0x51cb4c._0x401a01,0x789)){const _0x2b2883=_0x270631[_0x5ebf72(0x111,0x2c4)](patchConnectRequestGatewayAuth,_0x4105aa[_0x25f179(0x5ef,_0x51cb4c._0x27d50f)],readOpenClawInfo()),_0xe3b951=parseConnectHandshakeMeta(_0x2b2883[_0x25f179(_0x51cb4c._0x1e0cb0,_0x51cb4c._0x104533)]);_0xe3b951&&this[_0x25f179(0x601,_0x51cb4c._0x401a01)]('gateway\x20'+'connect\x20'+_0x5ebf72(0x679,_0x51cb4c._0x8bb785)+'forwarde'+'d'+_0x270631[_0x5ebf72(0x328,_0x51cb4c._0x36ba26)](formatConnectHandshakeMetaForLog,_0xe3b951));_0x2b2883[_0x5ebf72(0x285,_0x51cb4c._0x185fcf)]&&this[_0x5ebf72(0x1a6,0x319)]('gateway\x20'+_0x25f179(0x7f7,_0x51cb4c._0x5d17f6)+_0x25f179(_0x51cb4c._0x58dd3a,_0x51cb4c._0x292ab6)+_0x5ebf72(_0x51cb4c._0x7b0fbd,_0x51cb4c._0x304e97)+'e=passwo'+'rd');_0x1ca838[_0x25f179(0x542,0x3c8)](_0x2b2883[_0x25f179(0x5ef,0x558)]);return;}_0x1ca838[_0x25f179(0x542,_0x51cb4c._0x1177df)](_0x4105aa['data']);}['sendGate'+_0x3a7f13(-0x82,0x1bf)+'st'](_0x22be31,_0x47ab7b){const _0x267bd7={_0x249989:0x2d6,_0x1dcc1c:0x3be,_0x426c2a:0x2d7,_0x103cb2:0x39,_0x535374:0x2c0},_0x9f8db1={_0x3c4c1c:0x151},_0x16a880={'HRiwJ':function(_0x1b1f86){return _0x1b1f86();}},_0x4fde71=JSON[_0x223756(0x32,0xda)+'y']({'type':_0x223756(0x1a1,0x115),'id':'bridge-'+_0x16a880[_0x51f64f(_0x267bd7._0x249989,0x13b)](_0x45799a),'method':_0x22be31,'params':_0x47ab7b}),_0x313719={};function _0x51f64f(_0x2c5bbb,_0x3c6af3){return _0x3a7f13(_0x3c6af3,_0x2c5bbb- -_0x9f8db1._0x3c4c1c);}_0x313719[_0x223756(_0x267bd7._0x1dcc1c,0x1fb)]='text';function _0x223756(_0x38cf9a,_0xe33c72){return _0x3a7f13(_0x38cf9a,_0xe33c72- -0x357);}_0x313719[_0x51f64f(0x125,_0x267bd7._0x426c2a)]=_0x4fde71,this[_0x223756(_0x267bd7._0x103cb2,-0x10d)+_0x51f64f(0x1df,0x328)+_0x223756(0x104,_0x267bd7._0x535374)+'sage'](_0x313719);}['closeGat'+_0x32d8ea(0x7e8,0x6df)](){const _0x745f04={_0x5a5b2d:0x200,_0x4d0ea3:0x766,_0x380f02:0x880,_0x6f4e08:0xc9,_0x41e2a8:0x193};this[_0x42ed82(_0x745f04._0x5a5b2d,0x361)+_0x103206(0x6e0,0x8e2)]?.[_0x103206(0x779,_0x745f04._0x4d0ea3)](),this[_0x103206(_0x745f04._0x380f02,0x838)+'ocket']=null;function _0x103206(_0x5b8805,_0x4bc590){return _0x3a7f13(_0x5b8805,_0x4bc590-0x2ee);}this['gatewayC'+_0x103206(0x7f3,0x7f8)+'g']=![],this[_0x103206(0x7f3,0x626)+_0x42ed82(0x20e,0x2bd)+_0x42ed82(0x272,0x36)]=![];function _0x42ed82(_0x4cad2b,_0x4daa98){return _0x3a7f13(_0x4daa98,_0x4cad2b- -0x34a);}this[_0x103206(0x790,0x574)+_0x103206(0x69e,0x53b)+_0x42ed82(_0x745f04._0x6f4e08,_0x745f04._0x41e2a8)]=null;}[_0x3a7f13(0x479,0x44e)+_0x3a7f13(0x65d,0x42d)+'onnect'](){const _0x5b6102={_0x21ee16:0xa0,_0xbbaf29:0xf4,_0x5b971d:0x157,_0xea00ea:0x226,_0x1b2840:0x10,_0xc42bef:0x3e2,_0x27da81:0x15f,_0xe6fee3:0x249,_0x35c033:0x378,_0x20b32f:0x56a,_0x147a65:0x1ec,_0x6566ea:0x81,_0x3268c1:0x2f1,_0xa15002:0x11c,_0x243850:0x42,_0x5da79b:0x29f,_0xac9db9:0x1b4,_0x514fe1:0x184,_0x2d638e:0x115},_0x4aa87f={_0xe92fe1:0x40c,_0x5b142b:0x140,_0x4cce5f:0x51e,_0xb618ad:0x389,_0x502ff3:0x27f},_0xf37f28={_0x5683dd:0x2ca},_0x1e2c4a={_0x55fbcd:0xbe},_0x3485d0={};function _0x191543(_0x5b7546,_0x732850){return _0x3a7f13(_0x732850,_0x5b7546- -_0x1e2c4a._0x55fbcd);}_0x3485d0[_0x22836b(_0x5b6102._0x21ee16,-_0x5b6102._0xbbaf29)]=function(_0x1f57ad,_0x17cafb){return _0x1f57ad*_0x17cafb;};const _0x365556=_0x3485d0;if(this['stopped']||this['reconnec'+_0x191543(0xf7,_0x5b6102._0x5b971d)])return;function _0x22836b(_0x1bbca7,_0x43fc86){return _0x3a7f13(_0x1bbca7,_0x43fc86- -_0xf37f28._0x5683dd);}const _0x5d182f=this[_0x191543(_0x5b6102._0xea00ea,-_0x5b6102._0x1b2840)][_0x191543(0x249,0x2fa)+_0x191543(0x4ef,_0x5b6102._0xc42bef)+_0x22836b(0x45a,0x2c6)]??RECONNECT_BASE_DELAY_MS,_0x3140f0=this[_0x22836b(-_0x5b6102._0x27da81,0x1a)][_0x191543(_0x5b6102._0xe6fee3,0x9f)+'tMaxDela'+_0x191543(_0x5b6102._0x35c033,_0x5b6102._0x20b32f)]??RECONNECT_MAX_DELAY_MS,_0x1719d2=Math[_0x22836b(-_0x5b6102._0x147a65,-_0x5b6102._0x6566ea)](_0x3140f0,_0x365556[_0x191543(0x118,0x92)](_0x5d182f,Math[_0x22836b(0x7c,0x2c5)](0x1,this['relayAtt'+_0x191543(0x34d,_0x5b6102._0x3268c1)])));this[_0x22836b(_0x5b6102._0xa15002,-_0x5b6102._0x243850)](_0x191543(0x488,_0x5b6102._0x5da79b)+_0x22836b(0x13d,_0x5b6102._0xac9db9)+_0x22836b(0x277,_0x5b6102._0x514fe1)+'d\x20delayM'+'s='+_0x1719d2),this['reconnec'+_0x22836b(-0x7e,-_0x5b6102._0x2d638e)]=setTimeout(()=>{function _0x3e9d10(_0x2fd62f,_0x2bfc99){return _0x191543(_0x2fd62f-0x26c,_0x2bfc99);}function _0x332067(_0x4cd742,_0x475117){return _0x191543(_0x475117-0x8c,_0x4cd742);}this[_0x332067(_0x4aa87f._0xe92fe1,0x2d5)+_0x3e9d10(0x363,_0x4aa87f._0x5b142b)]=null,void this[_0x332067(0x6f5,_0x4aa87f._0x4cce5f)+_0x3e9d10(_0x4aa87f._0xb618ad,_0x4aa87f._0x502ff3)]();},_0x1719d2);}['schedule'+_0x3a7f13(0x2b9,0x3e1)+_0x3a7f13(0x1d2,0x1c5)](){const _0x3dd219={_0x17e0be:0x42c,_0xd33e9d:0x330,_0x527aae:0x56e,_0x793df1:0x229,_0x3b0ea4:0x30,_0x68f39c:0xc6,_0x2ffafc:0x658,_0x30569b:0x4fe,_0x162128:0x55a},_0x4adc95={_0xca7a30:0x367,_0x3872cb:0x36c,_0x20d360:0x45f,_0x117440:0x29c},_0x1fae21={_0xa41843:0x15d},_0x4a8eec={_0x2ab395:0x7};function _0x2c8749(_0x3961bb,_0x2a704c){return _0x3a7f13(_0x3961bb,_0x2a704c- -0x12a);}function _0x143c0(_0x52bdc5,_0x1df513){return _0x3a7f13(_0x1df513,_0x52bdc5-_0x4a8eec._0x2ab395);}if(this[_0x143c0(_0x3dd219._0x17e0be,_0x3dd219._0xd33e9d)]||this['gatewayR'+_0x2c8749(0x407,0x33a)+'r']||!this['isRelayO'+_0x143c0(0x3e9,_0x3dd219._0x527aae)]())return;const _0x245f5e=this[_0x2c8749(_0x3dd219._0x793df1,0x1ba)][_0x2c8749(-_0x3dd219._0x3b0ea4,_0x3dd219._0x68f39c)+_0x143c0(0x5f2,_0x3dd219._0x2ffafc)+_0x2c8749(_0x3dd219._0x30569b,0x30c)]??GATEWAY_RETRY_DELAY_MS;this[_0x143c0(0x1f7,0x21)+_0x143c0(0x46b,_0x3dd219._0x162128)+'r']=setTimeout(()=>{this[_0x422dbb(0xf3,-0xda)+_0x422dbb(_0x4adc95._0xca7a30,_0x4adc95._0x3872cb)+'r']=null;function _0x1874dd(_0x248b04,_0x2ba807){return _0x2c8749(_0x248b04,_0x2ba807-_0x1fae21._0xa41843);}function _0x422dbb(_0x350e65,_0x33864f){return _0x2c8749(_0x33864f,_0x350e65-0x2d);}this[_0x1874dd(0x58c,_0x4adc95._0x20d360)+_0x422dbb(_0x4adc95._0x117440,0x1a5)+_0x1874dd(0x79a,0x5f6)]();},_0x245f5e);}[_0x3a7f13(0x347,0x4e1)+_0x3a7f13(0x2af,0x34f)](){const _0x6b88cf={_0x5dc74d:0xe4,_0x4fb2fb:0x501,_0x4a9526:0x51e,_0x3ce620:0x3e0,_0x4ef356:0x153,_0x1494b2:0x1d1,_0x35f891:0x37e,_0x5ebd89:0x41d,_0xb9af3c:0x3a4},_0x2e7547={_0x13ca45:0x49b,_0x48a27f:0x51c,_0x26b65f:0x3bb,_0x30e2ed:0x434,_0x48b0e1:0x4d0,_0x5268c5:0x58b,_0x254e3a:0x3de,_0x450382:0x912,_0x495e5d:0x484,_0x1ae785:0x50d,_0x13b774:0x588,_0x1d1a0b:0x3c5,_0x1c80ee:0x1d1},_0x3d0e84={};_0x3d0e84[_0x51c516(_0x6b88cf._0x5dc74d,-0xbb)]='relay\x20he'+_0x16187d(_0x6b88cf._0x4fb2fb,_0x6b88cf._0x4a9526)+_0x51c516(_0x6b88cf._0x3ce620,0x621)+'t';const _0x53516d=_0x3d0e84;function _0x51c516(_0x272911,_0x17f3b4){return _0x32d8ea(_0x17f3b4,_0x272911- -0x5b7);}this['stopHear'+'tbeat']();function _0x16187d(_0x1e58d3,_0x2b13d5){return _0x32d8ea(_0x1e58d3,_0x2b13d5- -0x2ce);}this[_0x16187d(0x608,0x5b5)+'tTimer']=setInterval(()=>{const _0x188d58={_0x294f35:0x80};function _0x213929(_0x52aa23,_0x4dce58){return _0x16187d(_0x4dce58,_0x52aa23- -0x8);}function _0x436faa(_0x17cb06,_0x4117d0){return _0x16187d(_0x4117d0,_0x17cb06- -_0x188d58._0x294f35);}const _0x52c69a=this[_0x436faa(_0x2e7547._0x13ca45,_0x2e7547._0x48a27f)+_0x436faa(0x340,0x2f1)];if(!_0x52c69a||_0x52c69a[_0x213929(_0x2e7547._0x26b65f,0x4f1)+'te']!==_0x30847f['OPEN'])return;const _0x2afcc0=this[_0x213929(_0x2e7547._0x30e2ed,_0x2e7547._0x48b0e1)][_0x213929(0x5ad,0x526)+_0x436faa(_0x2e7547._0x5268c5,_0x2e7547._0x254e3a)+'Ms']??HEARTBEAT_TIMEOUT_MS;if(Date[_0x436faa(0x6c8,_0x2e7547._0x450382)]()-this[_0x436faa(_0x2e7547._0x495e5d,0x32d)+_0x436faa(_0x2e7547._0x1ae785,_0x2e7547._0x13b774)+'yMs']>_0x2afcc0){this[_0x213929(0x3d8,0x3fa)](_0x53516d[_0x213929(_0x2e7547._0x1d1a0b,_0x2e7547._0x1c80ee)]),_0x52c69a['terminat'+'e']();return;}_0x52c69a[_0x213929(0x346,0x171)]();},this[_0x51c516(_0x6b88cf._0x4ef356,0x10d)][_0x51c516(0x2cc,_0x6b88cf._0x1494b2)+_0x51c516(_0x6b88cf._0x35f891,_0x6b88cf._0x5ebd89)+_0x16187d(0x4ab,_0x6b88cf._0xb9af3c)]??HEARTBEAT_INTERVAL_MS);}[_0x3a7f13(0x29b,0x476)+'tbeat'](){const _0xee489d={_0x25f1e7:0x9e9,_0x24f2a1:0x4ad,_0x4b1650:0x2b2,_0x4c8f8c:0x8dc,_0x4935fc:0xac5,_0x1f3bc5:0x6f9,_0x1cbe39:0x64a,_0xefb076:0x7e4};function _0x2e6178(_0x30c707,_0x17ef40){return _0x32d8ea(_0x17ef40,_0x30c707- -0x12e);}function _0x1b1ae9(_0x4a640f,_0x112a8f){return _0x32d8ea(_0x4a640f,_0x112a8f- -0x9f);}const _0xd12a43={'dZhJW':function(_0xce0f7,_0x427a61){return _0xce0f7(_0x427a61);}};this[_0x1b1ae9(_0xee489d._0x25f1e7,0x7e4)+_0x2e6178(_0xee489d._0x24f2a1,_0xee489d._0x4b1650)]&&(_0xd12a43[_0x2e6178(_0xee489d._0x4c8f8c,_0xee489d._0x4935fc)](clearInterval,this[_0x1b1ae9(_0xee489d._0x1f3bc5,0x7e4)+'tTimer']),this[_0x1b1ae9(_0xee489d._0x1cbe39,_0xee489d._0xefb076)+'tTimer']=null);}['pushPend'+'ingGatew'+_0x3a7f13(0x49c,0x54e)+'e'](_0x4fd96e){const _0x4321e7={_0x49cb5e:0xa2c,_0x36a262:0x34b,_0x198faa:0x509,_0x2891aa:0x7fe,_0x1cf3b4:0x34b,_0x5278cc:0x2fd};this[_0x2ca63f(0x7c2,0x5aa)+_0x2ca63f(_0x4321e7._0x49cb5e,0xc28)+'ssages'][_0x2ca63f(0x7d5,0x846)]>=MAX_PENDING_GATEWAY_MESSAGES&&this['pendingG'+_0x2ca63f(_0x4321e7._0x49cb5e,0x837)+_0x546512(_0x4321e7._0x36a262,_0x4321e7._0x198faa)][_0x2ca63f(0x8df,0xa89)]();function _0x546512(_0x459f2b,_0x184289){return _0x32d8ea(_0x184289,_0x459f2b- -0x265);}function _0x2ca63f(_0x245d0d,_0x2068fe){return _0x32d8ea(_0x2068fe,_0x245d0d- -0x2);}this['pendingG'+_0x2ca63f(_0x4321e7._0x49cb5e,_0x4321e7._0x2891aa)+_0x546512(_0x4321e7._0x1cf3b4,_0x4321e7._0x5278cc)]['push'](_0x4fd96e);}['observeC'+'onnectSt'+'art'](_0x146a82,_0x148ea6){const _0x541aad={_0x5d8154:0x510,_0xbece0f:0x46b,_0x49c9ca:0x37b,_0x19ece2:0x63a,_0x4f5282:0x640,_0x5f4257:0x810,_0x14726d:0x89b,_0x233fbb:0xa7f,_0x4f1547:0x5bd,_0x3d662f:0x6ab,_0x453aab:0x6ef,_0x273d25:0x603,_0x1b2b43:0x2d9,_0x1d2a4f:0x599,_0x4b15aa:0x484,_0x4a6964:0x432,_0x8a20a3:0x540,_0x3a761b:0x4ae,_0x1d853d:0x267,_0x506b4b:0x53d},_0x1cfd45={_0x45417a:0x98},_0x953c9c={_0x62be95:0x2f3},_0x493d95={};_0x493d95['vVOAc']=_0x1bfa65(_0x541aad._0x5d8154,0x6aa)+'d';const _0x4c651b=_0x493d95;function _0x1bfa65(_0x146566,_0x1101e4){return _0x3a7f13(_0x1101e4,_0x146566-_0x953c9c._0x62be95);}const _0x57399b=Date[_0x1eea31(0x688,_0x541aad._0xbece0f)](),_0x6564c0=new Map(this[_0x1eea31(_0x541aad._0x49c9ca,0x361)][_0x1bfa65(0x510,0x6df)+_0x1eea31(0x540,_0x541aad._0x19ece2)][_0x1bfa65(_0x541aad._0x4f5282,0x66d)](_0x2fa302=>[_0x2fa302['id'],{..._0x2fa302}])),_0x768f93=_0x6564c0['get'](_0x146a82)??{'id':_0x146a82,'label':_0x148ea6,'state':_0x4c651b[_0x1bfa65(_0x541aad._0x5f4257,0x7c2)],'lastSeenMs':_0x57399b};_0x768f93[_0x1bfa65(_0x541aad._0x14726d,_0x541aad._0x233fbb)]=_0x148ea6,_0x768f93[_0x1bfa65(_0x541aad._0x4f1547,_0x541aad._0x3d662f)]='connecte'+'d',_0x768f93[_0x1bfa65(_0x541aad._0x453aab,_0x541aad._0x273d25)+'Ms']=_0x57399b,_0x6564c0[_0x1eea31(_0x541aad._0x1b2b43,0x3e3)](_0x146a82,_0x768f93);const _0x204725=[..._0x6564c0[_0x1eea31(0x40a,_0x541aad._0x1d2a4f)]()]['sort']((_0xd8e026,_0x3202a8)=>_0x3202a8[_0x1bfa65(0x6ef,0x5dc)+'Ms']-_0xd8e026['lastSeen'+'Ms'])[_0x1eea31(0x3b3,_0x541aad._0x4b15aa)](0x0,MAX_DEVICE_DETAILS),_0x48130e={};_0x48130e[_0x1bfa65(0x510,_0x541aad._0x4a6964)+_0x1eea31(_0x541aad._0x8a20a3,_0x541aad._0x3a761b)]=_0x204725;function _0x1eea31(_0x20fda2,_0xef427){return _0x3a7f13(_0xef427,_0x20fda2-_0x1cfd45._0x45417a);}this[_0x1eea31(_0x541aad._0x1d853d,0x2d8)+_0x1eea31(0x5ee,_0x541aad._0x506b4b)](_0x48130e);}[_0x32d8ea(0x89f,0x7a9)+_0x3a7f13(0x271,0x3a5)+'t'](){const _0x7ed173={_0x1c4e32:0x7f6,_0x2b74b5:0x595,_0x4a58ee:0x309,_0x45fa66:0x53,_0x2fd3b4:0x33};function _0x53a16a(_0x3052bc,_0x22ba52){return _0x3a7f13(_0x22ba52,_0x3052bc- -0x3a0);}function _0x45d8c9(_0x4ea480,_0x5b0ab7){return _0x3a7f13(_0x5b0ab7,_0x4ea480-0x2b2);}this['updateSn'+_0x45d8c9(0x808,_0x7ed173._0x1c4e32)]({'connectedDevices':this[_0x45d8c9(_0x7ed173._0x2b74b5,0x415)]['connecte'+_0x53a16a(0x108,_0x7ed173._0x4a58ee)][_0x53a16a(-_0x7ed173._0x45fa66,-_0x7ed173._0x2fd3b4)](_0x25603a=>({..._0x25603a,'state':_0x53a16a(-0x106,-0x10b)}))});}[_0x32d8ea(0xa82,0x8fe)+_0x3a7f13(0x259,0x313)+_0x3a7f13(0x431,0x53a)](_0x235b93){const _0x2a101b={_0x379cb9:0x82b,_0x37df8a:0x62a,_0x3fb738:0x4ef,_0x43ad03:0x967,_0x36f8d9:0x726,_0x4cad89:0x233,_0x370e16:0xa,_0x356a57:0x1c6,_0x30fc12:0x5fd,_0x1ca1aa:0x611,_0xecb1be:0x30a,_0x156abb:0x5f6,_0x8e5cb4:0x635,_0x29f07b:0x66b,_0x47a3ed:0x5c8,_0x45a628:0x7b1,_0x3b9909:0xbb};if(this[_0x39b3b8(0x690,_0x2a101b._0x379cb9)][_0x39b3b8(_0x2a101b._0x37df8a,_0x2a101b._0x3fb738)+'airReque'+'sts'][_0x39b3b8(_0x2a101b._0x43ad03,_0x2a101b._0x36f8d9)](_0x4c738f=>_0x4c738f[_0x5aeee4(0x38b,0x445)+'d']===_0x235b93[_0x5aeee4(0x4cb,0x445)+'d']))return;const _0x5b0ecb=[...this[_0x5aeee4(_0x2a101b._0x4cad89,0x22c)][_0x5aeee4(_0x2a101b._0x370e16,_0x2a101b._0x356a57)+'airReque'+'sts'],_0x235b93]['slice'](-MAX_PENDING_PAIR_REQUESTS),_0xb8944c={};function _0x5aeee4(_0x4d7dd9,_0x52d6cc){return _0x32d8ea(_0x4d7dd9,_0x52d6cc- -0x4dd);}_0xb8944c[_0x5aeee4(0x3b2,0x1c6)+_0x39b3b8(_0x2a101b._0x30fc12,0x42f)+'sts']=_0x5b0ecb,this[_0x39b3b8(0x57c,_0x2a101b._0x1ca1aa)+'apshot'](_0xb8944c),this[_0x39b3b8(0x691,0x793)][_0x39b3b8(0x642,0x47f)+_0x5aeee4(0x133,_0x2a101b._0xecb1be)+_0x5aeee4(_0x2a101b._0x156abb,0x3df)]?.(_0x235b93);function _0x39b3b8(_0x472860,_0x21711d){return _0x32d8ea(_0x21711d,_0x472860- -0x79);}this[_0x39b3b8(_0x2a101b._0x8e5cb4,0x400)]('pair\x20req'+_0x39b3b8(0x6da,0x7c0)+_0x39b3b8(_0x2a101b._0x29f07b,0x470)+_0x5aeee4(0x42f,0x2cf)+_0x235b93['requestI'+'d']+('\x20deviceI'+'d=')+(_0x235b93[_0x39b3b8(_0x2a101b._0x47a3ed,_0x2a101b._0x45a628)]||_0x5aeee4(_0x2a101b._0x3b9909,0x182)+'>'));}[_0x3a7f13(0x55c,0x57e)+_0x32d8ea(0xa26,0x8e7)+'esolved'](_0x3b8105,_0x5146e7){const _0x594d6c={_0x49a52a:0x506,_0x2524b3:0x752,_0x9f0ebc:0x6e5,_0x30e93b:0x744,_0x5ae1a1:0x421,_0x9c0894:0x2c8,_0x5c2176:0x4d9,_0x546a4c:0x458,_0xd0c633:0x41a,_0x4af966:0x239,_0x5ce297:0x6ec,_0x35f50e:0x663,_0x40bf57:0x658},_0x2baa14=this[_0x827a22(0x487,0x52d)][_0x5c6964(_0x594d6c._0x49a52a,_0x594d6c._0x2524b3)+_0x5c6964(0x4d9,0x541)+_0x5c6964(_0x594d6c._0x9f0ebc,_0x594d6c._0x30e93b)][_0x827a22(0x4f1,0x625)](_0xcda4f2=>_0xcda4f2['requestI'+'d']===_0x3b8105?{..._0xcda4f2,'status':_0x5146e7===_0x5c6964(0x7b9,0x9f4)||_0x5146e7===_0x5c6964(0x412,0x35f)?_0x5146e7:_0xcda4f2['status']}:_0xcda4f2);function _0x5c6964(_0x27adb2,_0x174797){return _0x3a7f13(_0x174797,_0x27adb2-0x289);}const _0xbf4f5b={};_0xbf4f5b[_0x827a22(_0x594d6c._0x5ae1a1,_0x594d6c._0x9c0894)+_0x5c6964(_0x594d6c._0x5c2176,0x364)+_0x5c6964(0x6e5,0x4a4)]=_0x2baa14;function _0x827a22(_0x5be46a,_0x40e774){return _0x3a7f13(_0x40e774,_0x5be46a-0x1a4);}this[_0x5c6964(_0x594d6c._0x546a4c,_0x594d6c._0xd0c633)+_0x5c6964(0x7df,0x656)](_0xbf4f5b),this[_0x827a22(0x42c,_0x594d6c._0x4af966)](_0x827a22(_0x594d6c._0x5ce297,_0x594d6c._0x35f50e)+_0x5c6964(0x55a,0x5b3)+'olved\x20re'+'questId='+_0x3b8105+(_0x827a22(_0x594d6c._0x40bf57,0x6c1)+'n=')+_0x5146e7);}[_0x32d8ea(0x3d6,0x5f5)+'apshot'](_0x203e9d){const _0x6c7134={_0x4e476d:0x263,_0x24a7df:0x29c,_0x166ca8:0x456,_0x275be2:0x10b,_0x7829b8:0x1f4,_0x17f345:0x2cd,_0x500098:0x409,_0x1dcd19:0x485},_0x5312e9={_0x41237a:0x259};function _0x343d4e(_0x5b7447,_0x99efd3){return _0x3a7f13(_0x99efd3,_0x5b7447- -_0x5312e9._0x41237a);}Object[_0x3f06f3(0x5b2,0x57d)](this[_0x3f06f3(_0x6c7134._0x4e476d,_0x6c7134._0x24a7df)],_0x203e9d,{'lastUpdatedMs':Date['now']()});function _0x3f06f3(_0x2aaf4d,_0x5dd903){return _0x3a7f13(_0x2aaf4d,_0x5dd903- -0x47);}this[_0x3f06f3(_0x6c7134._0x166ca8,0x29d)][_0x343d4e(_0x6c7134._0x275be2,_0x6c7134._0x7829b8)]?.(this[_0x343d4e(0x234,_0x6c7134._0x17f345)+_0x3f06f3(_0x6c7134._0x500098,_0x6c7134._0x1dcd19)]());}['log'](_0x48e639){function _0x5e6bfb(_0x44ce56,_0x108ce2){return _0x32d8ea(_0x44ce56,_0x108ce2- -0x249);}this[_0x5e6bfb(0x698,0x4c1)]['onLog']?.(_0x48e639);}[_0x3a7f13(0x6f3,0x5e7)+_0x32d8ea(0x92f,0x808)](){const _0x5857d3={_0x385283:0xd4,_0x58d155:0x90,_0x49a5a0:0x146,_0xc808aa:0x86},_0x4a79a9={_0x169be1:0x759},_0x62f6ba={_0x7042ca:0x70d},_0x10fa60={};function _0x46e165(_0x368343,_0x2e5c5a){return _0x32d8ea(_0x2e5c5a,_0x368343- -_0x62f6ba._0x7042ca);}_0x10fa60[_0x53673e(_0x5857d3._0x385283,0x221)]=function(_0x357942,_0x4f57bf){return _0x357942===_0x4f57bf;};const _0x576e7f=_0x10fa60;function _0x53673e(_0x440e47,_0x281f28){return _0x32d8ea(_0x281f28,_0x440e47- -_0x4a79a9._0x169be1);}return _0x576e7f['CpzvN'](this[_0x53673e(_0x5857d3._0x58d155,-0xd9)+'ket']?.[_0x53673e(-0xc8,-0x2bb)+'te'],_0x30847f[_0x53673e(-_0x5857d3._0x49a5a0,-_0x5857d3._0xc808aa)]);}[_0x32d8ea(0x545,0x65b)+_0x32d8ea(0xa4b,0x99a)](){const _0x26e8af={_0x1c8d07:0x2aa,_0x1a9cfa:0x563,_0x204ea4:0x57e,_0x23ee3f:0x90b,_0x4cd086:0x62c,_0x349471:0x307,_0x408aef:0x3dc},_0x5f39bc={_0x134079:0x65},_0x35eed7={};_0x35eed7[_0xf34309(0x2bc,_0x26e8af._0x1c8d07)]=function(_0x3a0da4,_0x15ed2f){return _0x3a0da4===_0x15ed2f;};function _0x3cc6c1(_0x36b4e7,_0x38030f){return _0x32d8ea(_0x38030f,_0x36b4e7- -_0x5f39bc._0x134079);}const _0x18ed18=_0x35eed7;function _0xf34309(_0x13911a,_0x1a4aec){return _0x32d8ea(_0x1a4aec,_0x13911a- -0x30c);}return _0x18ed18[_0x3cc6c1(_0x26e8af._0x1a9cfa,_0x26e8af._0x204ea4)](this[_0x3cc6c1(_0x26e8af._0x23ee3f,0xab9)+_0x3cc6c1(0x9b5,0x979)]?.[_0x3cc6c1(_0x26e8af._0x4cd086,0x6f0)+'te'],_0x30847f[_0xf34309(_0x26e8af._0x349471,_0x26e8af._0x408aef)]);}[_0x3a7f13(0x606,0x516)+_0x32d8ea(0x508,0x626)](){const _0x33936d={_0x512fdd:0x514,_0x28b916:0x1e2,_0x5b4cc6:0x5c,_0x3bd44b:0x85,_0xc40430:0x1d7,_0x290bef:0x234,_0x44a766:0x14e,_0x720ef6:0x49c,_0x13f0ac:0xd8,_0x17f3f3:0x502},_0x1180f6={_0xd5e108:0x7b2},_0x20aedc={'CZZvg':function(_0x2410fd,_0x12d68b){return _0x2410fd(_0x12d68b);}};this[_0x45572a(_0x33936d._0x512fdd,0x3d2)+_0x2b1852(-_0x33936d._0x28b916,_0x33936d._0x5b4cc6)]();function _0x2b1852(_0x2ae157,_0x2a4f36){return _0x32d8ea(_0x2a4f36,_0x2ae157- -_0x1180f6._0xd5e108);}function _0x45572a(_0x5648c7,_0x574d1e){return _0x32d8ea(_0x574d1e,_0x5648c7- -0x388);}this['reconnec'+'tTimer']&&(_0x20aedc[_0x45572a(0x6ab,0x471)](clearTimeout,this[_0x2b1852(-_0x33936d._0x3bd44b,0x16f)+'tTimer']),this['reconnec'+_0x2b1852(-_0x33936d._0xc40430,-0x2e5)]=null),this[_0x45572a(0x28e,_0x33936d._0x290bef)+_0x2b1852(0xd8,-_0x33936d._0x44a766)+'r']&&(_0x20aedc[_0x45572a(0x6ab,_0x33936d._0x720ef6)](clearTimeout,this[_0x2b1852(-0x19c,-0x209)+_0x2b1852(_0x33936d._0x13f0ac,0x159)+'r']),this[_0x45572a(0x28e,0x217)+_0x45572a(_0x33936d._0x17f3f3,0x3bd)+'r']=null);}[_0x3a7f13(0x333,0x492)+_0x3a7f13(0x64b,0x5f3)](_0x287304){const _0x45f31c={_0x316ed5:0x56c,_0x49b979:0x31e,_0x3158e0:0x9cd},_0xa449ef={_0x351257:0x23},_0x1f0018={_0x2bf83f:0x3dd};function _0x5a7a2c(_0x22268b,_0x46445c){return _0x3a7f13(_0x22268b,_0x46445c-_0x1f0018._0x2bf83f);}function _0x5087aa(_0x3c1502,_0x57119e){return _0x3a7f13(_0x57119e,_0x3c1502- -_0xa449ef._0x351257);}return _0x287304==null?null:Math[_0x5087aa(_0x45f31c._0x316ed5,_0x45f31c._0x49b979)](0x0,Date[_0x5a7a2c(0xbce,_0x45f31c._0x3158e0)]()-_0x287304);}};function shouldRecycleGatewayForFreshClient(_0x18f9ba,_0x1f077c,_0x1a11c7,_0x1a0d5f){return _0x1a11c7&&_0x1f077c>0x0&&(_0x18f9ba===0x0||_0x1a0d5f);}function summarizePendingGatewayMessages(_0x15fc80){const _0x2ce4f1={_0x2ad8a8:0x586,_0x4f747a:0x710,_0x285aee:0x544,_0x3f422d:0x64c,_0x4a491c:0x6a0,_0x4e8028:0x508,_0x433f5e:0x369,_0x19fa73:0x7e2,_0x38a81b:0x1b0,_0x12c9dd:0x203,_0x187790:0x269},_0x20b3e8={_0x39c7ac:0x40f},_0x490eaf={_0x530c6c:0x194},_0x5e69fe={};_0x5e69fe[_0x12be22(0x3a2,_0x2ce4f1._0x2ad8a8)]=_0x8edcef(0x6a0,_0x2ce4f1._0x4f747a);const _0x57130f=_0x5e69fe,_0x55a403={};_0x55a403['total']=_0x15fc80[_0x8edcef(0x643,_0x2ce4f1._0x285aee)],_0x55a403[_0x8edcef(0x7e2,0x806)+'equests']=0x0;function _0x8edcef(_0x49d132,_0x44f30d){return _0x32d8ea(_0x44f30d,_0x49d132- -_0x490eaf._0x530c6c);}_0x55a403[_0x12be22(0x31b,0x269)+'t']=0x0;function _0x12be22(_0x495be7,_0x552978){return _0x32d8ea(_0x495be7,_0x552978- -_0x20b3e8._0x39c7ac);}_0x55a403['binary']=0x0;const _0x482d3d=_0x55a403;for(const _0x1a1445 of _0x15fc80){if(_0x1a1445[_0x12be22(_0x2ce4f1._0x3f422d,0x569)]===_0x57130f[_0x12be22(0x592,0x586)]){_0x482d3d[_0x8edcef(_0x2ce4f1._0x4a491c,0x858)]+=0x1;continue;}if(isConnectHandshakeRequest(_0x1a1445[_0x8edcef(_0x2ce4f1._0x4e8028,_0x2ce4f1._0x433f5e)])){_0x482d3d[_0x8edcef(_0x2ce4f1._0x19fa73,0x5b2)+_0x12be22(0x35,_0x2ce4f1._0x38a81b)]+=0x1;continue;}_0x482d3d[_0x12be22(_0x2ce4f1._0x12c9dd,_0x2ce4f1._0x187790)+'t']+=0x1;}return _0x482d3d;}function dedupePendingGatewayMessages(_0x4280c7){const _0x29b484={_0x1575ea:0x3e1,_0x753c63:0x4ef,_0x4b9581:0x789,_0x1b8572:0x213,_0x2dc8b6:0x6b4,_0x58ec6c:0x291,_0x241c0a:0x2df,_0x2bd355:0x110,_0x398996:0x205,_0x5042ba:0x99},_0x3cf6d4={_0xdc4ee5:0x23b},_0x2dd3bf={_0x1925a4:0x669};function _0x4da3ce(_0x524d2b,_0x1e7674){return _0x32d8ea(_0x1e7674,_0x524d2b- -_0x2dd3bf._0x1925a4);}function _0x123ab2(_0x30b0eb,_0x4743fa){return _0x32d8ea(_0x30b0eb,_0x4743fa- -_0x3cf6d4._0xdc4ee5);}const _0xe41506={};_0xe41506[_0x123ab2(_0x29b484._0x1575ea,_0x29b484._0x753c63)]=function(_0x55e0f3,_0x4b6fb5){return _0x55e0f3<=_0x4b6fb5;},_0xe41506[_0x123ab2(_0x29b484._0x4b9581,0x604)]=function(_0x3ce36f,_0x5547f2){return _0x3ce36f-_0x5547f2;};const _0x4720f0=_0xe41506;let _0x575bcd=-0x1;for(let _0x38913c=_0x4280c7[_0x4da3ce(0x16e,_0x29b484._0x1b8572)]-0x1;_0x38913c>=0x0;_0x38913c-=0x1){const _0xbb07b=_0x4280c7[_0x38913c];if(_0xbb07b?.[_0x123ab2(_0x29b484._0x2dc8b6,0x73d)]==='text'&&isConnectHandshakeRequest(_0xbb07b[_0x4da3ce(0x33,-0x11a)])){_0x575bcd=_0x38913c;break;}}if(_0x4720f0['UgLJE'](_0x575bcd,0x0)){const _0x837300={};return _0x837300[_0x4da3ce(_0x29b484._0x58ec6c,_0x29b484._0x241c0a)]=[..._0x4280c7],_0x837300[_0x4da3ce(0x2ae,_0x29b484._0x2bd355)]=0x0,_0x837300;}const _0x56e61e=_0x4280c7[_0x4da3ce(_0x29b484._0x398996,0xc1)]((_0x84ae08,_0x3d5bb9)=>_0x3d5bb9>=_0x575bcd||(_0x84ae08[_0x4da3ce(0x30f,0x372)]!==_0x4da3ce(0x33,0x26b)||!isConnectHandshakeRequest(_0x84ae08[_0x4da3ce(0x33,0xf8)])));return{'messages':_0x56e61e,'dropped':_0x4720f0['QrXAf'](_0x4280c7['length'],_0x56e61e[_0x4da3ce(0x16e,_0x29b484._0x5042ba)])};}function prunePendingGatewayMessagesForFreshDemand(_0x37a750){const _0x1eb042={_0x587fbb:0x19,_0x426151:0x2e6,_0x173081:0xd2,_0x23109c:0xd8,_0x5a446a:0x212,_0x1e92f3:0x19,_0x117bfa:0x137,_0x480112:0x70c,_0x36f36c:0x553,_0x265844:0x78,_0x1c8e8e:0x1f5,_0x5c3067:0xcb,_0x4c93b9:0xd2},_0x20a1c7={_0xc16832:0x705},_0x5be7ce={_0x2915df:0x1ee},_0x5a927e={};_0x5a927e[_0x13648e(0x247,_0x1eb042._0x587fbb)]=function(_0x3d1ad3,_0x46811f){return _0x3d1ad3-_0x46811f;},_0x5a927e[_0x1f7a63(0x7c5,0x797)]=function(_0x24296f,_0x15029b){return _0x24296f===_0x15029b;};const _0x51ccb2=_0x5a927e;if(_0x37a750[_0x13648e(_0x1eb042._0x426151,_0x1eb042._0x173081)]===0x0){const _0xca3526={};return _0xca3526[_0x13648e(0xa9,0x1f5)]=[],_0xca3526[_0x13648e(_0x1eb042._0x23109c,_0x1eb042._0x5a446a)]=0x0,_0xca3526;}function _0x1f7a63(_0x6c61ef,_0x32c4d7){return _0x32d8ea(_0x6c61ef,_0x32c4d7- -_0x5be7ce._0x2915df);}let _0x35200b=-0x1;for(let _0x3f0674=_0x51ccb2[_0x13648e(-0x26,_0x1eb042._0x1e92f3)](_0x37a750[_0x13648e(0x167,0xd2)],0x1);_0x3f0674>=0x0;_0x3f0674-=0x1){const _0x4bcf19=_0x37a750[_0x3f0674];if(_0x4bcf19?.[_0x13648e(0x354,0x273)]===_0x13648e(_0x1eb042._0x117bfa,-0x69)&&isConnectHandshakeRequest(_0x4bcf19['text'])){_0x35200b=_0x3f0674;break;}}if(_0x51ccb2[_0x1f7a63(0x911,0x797)](_0x35200b,-0x1)){const _0x3fc91c={};return _0x3fc91c[_0x1f7a63(0x5e5,_0x1eb042._0x480112)]=[],_0x3fc91c[_0x1f7a63(0x808,0x729)]=_0x37a750[_0x1f7a63(0x7f5,0x5e9)],_0x3fc91c;}const _0x549490=_0x37a750[_0x1f7a63(0x5f1,_0x1eb042._0x36f36c)](_0x35200b),_0x4d08dd={};_0x4d08dd[_0x13648e(_0x1eb042._0x265844,_0x1eb042._0x1c8e8e)]=_0x549490;function _0x13648e(_0x4b075c,_0x4b180c){return _0x32d8ea(_0x4b075c,_0x4b180c- -_0x20a1c7._0xc16832);}return _0x4d08dd[_0x13648e(_0x1eb042._0x5c3067,0x212)]=_0x37a750['length']-_0x549490[_0x13648e(0x1c4,_0x1eb042._0x4c93b9)],_0x4d08dd;}function patchConnectRequestGatewayAuth(_0x11536e,_0x5a369b){const _0x3ad6e9={_0x29cb8b:0x9de,_0x53dffc:0x9e3,_0x4c7f7a:0x395,_0x465b48:0x46b,_0x12f0fd:0x97d,_0x1980a4:0x6b5,_0x1f3bd9:0x45f,_0x509b35:0x6b6,_0x1d8ba0:0x755,_0xb04e0e:0x755,_0xab5cf:0x394,_0x43605b:0x70b,_0x37aca1:0x6fa,_0xd247cd:0x51b,_0x36f534:0x674,_0xe75d92:0x5a2,_0x53367e:0x2d9,_0x4205e6:0x1f1,_0x190a97:0x2e3,_0x5cb0eb:0x65e,_0x515936:0x5ba,_0x13b2e5:0x8b7,_0x1b1be5:0x65b,_0x22f840:0x2f6},_0x23b892={_0xf5f2a2:0x26},_0x19183e={};_0x19183e[_0x488f46(_0x3ad6e9._0x29cb8b,_0x3ad6e9._0x53dffc)]=_0x4340ad(_0x3ad6e9._0x4c7f7a,0x446),_0x19183e[_0x4340ad(0xf2,0x1a4)]=_0x4340ad(0x583,_0x3ad6e9._0x465b48),_0x19183e[_0x488f46(0x8c6,_0x3ad6e9._0x12f0fd)]=_0x488f46(0x488,_0x3ad6e9._0x1980a4);const _0x23dd96=_0x19183e;if(_0x5a369b[_0x4340ad(0x2c7,_0x3ad6e9._0x1f3bd9)]!==_0x488f46(_0x3ad6e9._0x509b35,_0x3ad6e9._0x1d8ba0)||!_0x5a369b[_0x488f46(0x551,_0x3ad6e9._0xb04e0e)]){const _0x365a9d={};return _0x365a9d[_0x4340ad(_0x3ad6e9._0xab5cf,0x250)]=_0x11536e,_0x365a9d['injected']=![],_0x365a9d;}function _0x4340ad(_0x1471dc,_0x23637a){return _0x3a7f13(_0x1471dc,_0x23637a- -_0x23b892._0xf5f2a2);}function _0x488f46(_0x1ee7c7,_0x2be30e){return _0x3a7f13(_0x1ee7c7,_0x2be30e-0x3e5);}try{const _0x56ae17=JSON[_0x488f46(0x7a5,0x6fb)](_0x11536e);if(_0x56ae17[_0x488f46(_0x3ad6e9._0x43605b,0x83e)]!==_0x23dd96['gEhsb']||_0x56ae17[_0x488f46(0x4b8,_0x3ad6e9._0x37aca1)]!==_0x23dd96[_0x488f46(_0x3ad6e9._0xd247cd,0x5af)]&&_0x56ae17[_0x488f46(0x714,_0x3ad6e9._0x37aca1)]!=='connect.'+_0x4340ad(_0x3ad6e9._0x36f534,_0x3ad6e9._0xe75d92)){const _0x21f8cd={};return _0x21f8cd['text']=_0x11536e,_0x21f8cd[_0x4340ad(0xbf,_0x3ad6e9._0x53367e)]=![],_0x21f8cd;}const _0x48c863=_0x56ae17[_0x4340ad(_0x3ad6e9._0x4205e6,_0x3ad6e9._0x190a97)]&&typeof _0x56ae17['params']==='object'?{..._0x56ae17[_0x4340ad(0x360,0x2e3)]}:{},_0x48631c=_0x48c863['auth']&&typeof _0x48c863['auth']===_0x23dd96['bUGPU']?{..._0x48c863[_0x4340ad(_0x3ad6e9._0x5cb0eb,_0x3ad6e9._0x515936)]}:{},_0x253a81=typeof _0x48631c[_0x488f46(0x57f,0x755)]===_0x4340ad(0x256,0x1c0)?_0x48631c[_0x488f46(_0x3ad6e9._0x13b2e5,0x755)][_0x488f46(0x8ab,0x9ee)]():'';if(_0x253a81){const _0x5a017e={};return _0x5a017e[_0x488f46(0x411,_0x3ad6e9._0x1b1be5)]=_0x11536e,_0x5a017e[_0x488f46(0x4d1,0x6e4)]=![],_0x5a017e;}_0x48631c['password']=_0x5a369b[_0x4340ad(0x319,0x34a)],_0x48c863[_0x488f46(0x865,0x9c5)]=_0x48631c;const _0xc37d41={..._0x56ae17};return _0xc37d41[_0x488f46(0x4bb,0x6ee)]=_0x48c863,{'text':JSON['stringif'+'y'](_0xc37d41),'injected':!![]};}catch{const _0x49aa6e={};return _0x49aa6e[_0x4340ad(0x190,0x250)]=_0x11536e,_0x49aa6e[_0x4340ad(_0x3ad6e9._0x22f840,_0x3ad6e9._0x53367e)]=![],_0x49aa6e;}}function formatConnectHandshakeMetaForLog(_0x11737f){const _0x8a2974={_0x174dce:0xa6,_0x8276fe:0x290,_0xb52bb1:0x126,_0x498eb6:0x1fc,_0x4adf78:0x110,_0x460b89:0x144,_0x3617b9:0x2ff,_0x513feb:0x2b8,_0x4c82dc:0x272,_0x1d7a62:0x19d,_0x1781be:0x89,_0x50aafb:0xc3,_0x2fb13:0x2bc,_0x1d584c:0x3d9,_0xaa20ae:0x33d,_0x248c9e:0x3c4,_0x5e3c62:0x3d4},_0x120f63={_0x546282:0x683},_0x12ac69={_0x424d86:0x53f},_0xeebe90={};_0xeebe90[_0x259672(-_0x8a2974._0x174dce,0x4b)]=function(_0x3d3608,_0x37202c){return _0x3d3608>_0x37202c;},_0xeebe90[_0x259672(_0x8a2974._0x8276fe,_0x8a2974._0xb52bb1)]=_0x259672(0x33,-0x1f9);function _0x5a68a2(_0x5932e7,_0x48ae65){return _0x32d8ea(_0x5932e7,_0x48ae65- -_0x12ac69._0x424d86);}function _0x259672(_0x437ac8,_0x54ec26){return _0x32d8ea(_0x54ec26,_0x437ac8- -_0x120f63._0x546282);}const _0x11da30=_0xeebe90;if(!_0x11737f)return'';return _0x5a68a2(_0x8a2974._0x498eb6,_0x8a2974._0x4adf78)+_0x11737f['method']+_0x259672(0x258,_0x8a2974._0x460b89)+(_0x11737f['id']??_0x259672(0x33,0x20))+(_0x259672(_0x8a2974._0x3617b9,0xea)+_0x259672(_0x8a2974._0x513feb,_0x8a2974._0x4c82dc))+_0x11737f['noncePre'+_0x259672(_0x8a2974._0x1d7a62,-_0x8a2974._0x1781be)]+('\x20nonceLe'+_0x5a68a2(0x4b8,0x45a))+(_0x11737f[_0x5a68a2(_0x8a2974._0x50aafb,0x196)+'gth']??0x0)+(_0x5a68a2(0x102,_0x8a2974._0x2fb13)+_0x259672(0x2b3,_0x8a2974._0x1d584c))+(_0x11da30['TCxrv'](_0x11737f[_0x259672(0x190,_0x8a2974._0xaa20ae)+'ds']['length'],0x0)?_0x11737f[_0x5a68a2(_0x8a2974._0x248c9e,0x2d4)+'ds']['join'](','):_0x11da30[_0x5a68a2(0x52b,_0x8a2974._0x5e3c62)]);}function buildRelayWsUrl(_0x589cb4){const _0x3de812={_0x5013d3:0x2ee,_0x2f09a9:0x872,_0x1dedd5:0x426,_0x4a230d:0x84a,_0x5d6604:0x42b,_0x513186:0x485,_0xea731:0x5c6,_0x58b9d6:0x3f1,_0x372a3e:0x6e4,_0x423b94:0x309,_0x5562ee:0x53c,_0x1f22b7:0x1f9,_0x419452:0x44c,_0x1fbfb3:0x5e9,_0x1dddc9:0x20f,_0x260caa:0x2b,_0x758bcb:0x54b,_0x3e256c:0x5c6,_0x2138d2:0x5aa,_0x2871c9:0x836,_0x487ae4:0x91b},_0x1df9ad={_0xc4d836:0x385},_0x444e4e={_0x1c9c90:0x60},_0x23ebf1={};function _0x17098a(_0x325f29,_0x2e2794){return _0x3a7f13(_0x2e2794,_0x325f29-_0x444e4e._0x1c9c90);}_0x23ebf1[_0x17098a(0x3d9,_0x3de812._0x5013d3)]=_0x2bdbf2(_0x3de812._0x2f09a9,0x97e);function _0x2bdbf2(_0x634379,_0x519a15){return _0x3a7f13(_0x634379,_0x519a15-_0x1df9ad._0xc4d836);}const _0x33bba6=_0x23ebf1,_0x546300=new URL(_0x589cb4['relayUrl']);return(!_0x546300[_0x17098a(0x5dd,_0x3de812._0x1dedd5)]||_0x546300['pathname']==='/')&&(_0x546300[_0x2bdbf2(_0x3de812._0x4a230d,0x902)]=_0x17098a(_0x3de812._0x5d6604,_0x3de812._0x513186)),_0x546300[_0x17098a(0x309,0x3ee)+_0x2bdbf2(0x33e,0x53d)][_0x2bdbf2(0x63b,_0x3de812._0xea731)](_0x17098a(0x4d5,0x66b)+'d',_0x589cb4['gatewayI'+'d']),_0x546300[_0x17098a(0x309,_0x3de812._0x58b9d6)+'rams'][_0x2bdbf2(0x76b,_0x3de812._0xea731)](_0x33bba6['nDnmQ'],_0x2bdbf2(0x526,_0x3de812._0x372a3e)),_0x546300[_0x17098a(_0x3de812._0x423b94,_0x3de812._0x5562ee)+_0x17098a(0x218,0x45e)][_0x17098a(0x2a1,_0x3de812._0x1f22b7)](_0x2bdbf2(_0x3de812._0x419452,_0x3de812._0x1fbfb3),_0x589cb4['instance'+'Id']),_0x546300[_0x17098a(0x309,_0x3de812._0x1dddc9)+_0x17098a(0x218,_0x3de812._0x260caa)][_0x2bdbf2(_0x3de812._0x758bcb,_0x3de812._0x3e256c)]('token',_0x589cb4[_0x17098a(0x403,_0x3de812._0x2138d2)+_0x2bdbf2(_0x3de812._0x2871c9,0x811)]),_0x546300[_0x2bdbf2(_0x3de812._0x487ae4,0x773)]();}function redactRelayWsUrl(_0x33e478){const _0x5bb0db={_0x469788:0x50f,_0x45d8e7:0x73d,_0xe00fe4:0x6b1,_0x22d457:0x7e8,_0x4e6108:0x598,_0x5bdc7e:0x616};function _0x49b288(_0x2eec10,_0xacbca0){return _0x32d8ea(_0xacbca0,_0x2eec10- -0x1de);}function _0x1602d2(_0x4a1fa4,_0x34d562){return _0x32d8ea(_0x34d562,_0x4a1fa4- -0xcf);}const _0x5395e4=new URL(_0x33e478);return _0x5395e4['searchPa'+_0x1602d2(_0x5bb0db._0x469788,0x41c)][_0x49b288(_0x5bb0db._0x45d8e7,0x975)](_0x49b288(_0x5bb0db._0xe00fe4,_0x5bb0db._0x22d457))&&_0x5395e4['searchPa'+'rams'][_0x1602d2(_0x5bb0db._0x4e6108,0x5ae)](_0x1602d2(0x7c0,_0x5bb0db._0x5bdc7e),'<redacte'+'d>'),_0x5395e4['toString']();}function _0x472c(){const _0x183dbe=['DgLTzwqGB3u','AfbZrhi','BMD0Ad0','Eu9Wzw4','ihrOzsbWywK','q0Xbv0rct1q','zg9JDg9YifS','C29YDa','EvvpA3a','zcbPCYbTAxm','wfHiz0m','zxj2AwnLlwW','Cgf0Ag5HBwu','BwfYA1bHAxi','DgfSBgf0Aw8','seTdvvXtB2y','Ag9ZDa','zxnOignSAwu','CxvLCNK','y2XPzw50x2m','DuTMuLO','yNiT','ig5HBwu9','tNf0ufy','r3zTs1e','mc4WlJaUma','nJyWndi1wg1zrwXU','q2TeC20','D2Lyzvq','Bg9NCYbMB3u','Bwf4','yxLnCW','Dd4k','CgTOB2q','y2XPzw50q28','CMvSyxLvCMW','tg9JywWGt3a','zguGAw4GDgG','B2zM','yLvhufu','D3m6lY8','Ahr0CdOVlW','CMvSyxLdB24','y2uGCMvNAxm','tfvwyM4','tK9ux1bbsvi','w3n0yxr1C10','wgnZBNa','BIbMywLSzwq','A2v5CW','y29UzMLNrM8','ls1Uyw1L','zNjVBq','Cfj2Bwq','s3nAvLe','BgfIzwW','ig1VCMuGzgu','Bwf4ugf5Bg8','AvrLt0m','BMqGC2vYDMK','DejHC2vezwW','B2r5','DhvU','CM9TigeGzgK','yxvUy2HLCI4','zxqGyxbWoGO','BM5Ly3rLzca','B3iGCgfZC3C','Dg9YycbMB3i','zgvZDhjVEq','ywnRz3jVDw4','jNf1B3q7','C3rHBguGCxu','C29Tzq','B2TLBG','u3rHCNrLza','C0HqCwu','DhjHDgLVBI4','AM9PBG','yvrTy3y','ihjLBgf5pq','C2vYDMLJzq','BMvJDgvK','yxnZAwDU','BIaIy2XHD2S','rM91BMq','C2nVBM5Ly3q','C3rHCNq','y29UzMLNoIa','je5prevFuee','Dw5PBNn0ywW','yxj0','zxnJCMLWDgK','zgvMyxvSDeC','qxjNDw1LBNq','zgvYia','ywLYlNjLAMu','Dxr1BG','B2nHBcbBls0','ihrVihnWzwm','zxj2AwnLige','tM8GBwf0y2G','AgfSBgvUz2u','EgLjC0u','idXWyxrOpL0','z2uUANnVBG','zwXVywq','Et5mywjLBdW','DM1Uzxq','BwfPBG','AgfIBgu','yxv0Aa','DgfPBhnJywW','swq9','BMv0D29YAY0','zfPOsLC','u3rHCNrPBMC','qun4yxG','AxnszwXHEu8','CM91BMqGC2u','AgvSCa','y2HHBMDLzc4','zxrYEurLBge','qMfJA2DYB3u','B25Jzq','lI4U','kYKRja','BM93','r0P0Eu8','Aw5N','Aw5Jzq','B2nRzxq','AcbMB3iGC2u','zgvfEhbPCMu','ywnRihrVia','zxnVBhzLza','CM9Szq','ig9Yia','Aw5ZDgfUy2u','rxHWAxjLCZO','BNvTyMvY','z0vOC2i','l1bjra','BM9Uy2u','zxHPDenVzgu','Aw5Nienmssa','BNqGDgHHDca','y3jLyxrLzee','C3rYEq','DhDHCMvCtwK','twnmzuW','yxrLD2f5twu','DhjPBq','BgLUzxm','BgfZDe1Z','y0rQtNu','q1PADMC','igrPCJOG','y291BNq','Es11CMW','Bgf5q29UDhi','EgTqzu8','ru4IicjODhq','AxqU','B2ThAxm','A2vtDgfYDgu','Dgv3yxLnzxm','ls1XDwLLDa','tK5cuuS','cIaGpc9HCNi','u0Xqqwy','zg93BG','ihvYBd0','D2LUzg93C0G','zM91BMqGDw4','B2rLiciKu0m','yxr0zw1WDgu','C2vYDMvYidW','icbLEgvJig4','CMvQzwn0zwq','C3nHz2vZ','zxvLigjLzM8','sLjMywq','C2vUzfrVr2e','CMvHy2HHyMW','Dg9ju09tDhi','AgfUzgXLuMu','uKvhx1nA','zxrcCMLKz2u','DMv0Aa','CMvJDxjZAxy','ihzLCMLMAwm','ihrLEhq9','pGOGidXRzxK','C29U','zxf1zxn0CW','zwnHDxnLigW','AcbHigrPzMy','zcbXDwv1zwq','rKnwu2W','Dw5HDMfPBge','tvvmAKK','uKW6ia','jJe7ihrOzw4','tMPds0m','s0zVy2O','lMPZB24','CNvU','DhjSk0mGDg8','C3rHBgXHDgK','Aw1Hz2uVCg4','ygnSyxDRzxq','DgjLyxq','CMvXlq','l0rurcbqteK','DaPxyw50CZ0','AwXTBMi','zw5nCZ0','zxjYB3jdB3i','BhPwzLa','zw50','nxW3FdL8mNW','igjYAwrNzsa','DfrPBwvY','zuXLALy','ven4CNy','CMfTCW','AxrsufO','ENDPDNy','BgLUDxG','CNvUiIbTyw4','A2uGmZbZlca','CMuGCMvJEwm','D2f5uMvXDwu','yMXLigr1CMK','tKHTD3G','zM9YBsbMB3i','tK9erv9qqvq','zZOG','zwnVBM5Ly3q','iurpq1rzueu','r2f0zxDHEsa','AwmGzMfSBgi','C2vUza','z2rTAhe','igHHCYbIB3q','ugf0AdWVA2u','phbHDgG+xsa','ChvZAfbLBMq','DxbKyxrLu24','lJaUmc4XoJe','Bs9everZl1a','ChvZAa','C2LVBJ0Ims4','Bg9Nugf0Aa','ls1SAw5LCW','C0ftufe','EwvZ','B2jZzxj2zum','BMvZidWYmda','y3jVC29MDfW','zwXHEq','cIaGphn0CMK','Df9YzwXHEv8','C2vYDMvYvxi','vujmsumGiI0','r2vUzxjHDgu','y3DQuK8','C2fNzxmGyMu','ChbW','BwLSEq','zLjOzNG','C3rYAw5N','CMvZ','mtbVy3vdwwu','vND0uLG','EgPnAM8','DxjS','zw50CMLLCW','t1bftG','DgGG','uviGAw1Hz2u','z2f0zxDHEvi','B3qGzM91BMq','DgfPBhmSig8','Aw5ZDgfSBa','zxHWAxjLC0e','ze91Dhb1Dd0','CgLUzW','DgHLienSyxC','pGO8l2rPy3q','CgfPCMLUzYa','ls11C2vY','C3LZDgvTzc0','kcGOlISPkYK','CgfPCMvK','ugf0Aa','uMvZDgfYDgu','zxjZ','ihrVA2vUoIa','ywDLBNrZ','Dgv3yxK','ihbSAxn0ifa','lZeYnY4WlJa','CuD4BMy','BeTSzwW','zxHWBgLJAxq','ienSyxDRzxq','rg5Osg4','CNvUBMLUzW','AgvHzgvYCW','zxHLy1bHDgG','CNvLlZ4kica','C2vYDMvYlw0','tLvOvfe','mti3lJaUmc4','ywXSzwq','zcbHigXVy2e','zMX1C2Hqzw4','ls1Zzxj2zxi','Bef0wNq','CNvUlxjLz2K','zxjYB3i','AxmGBg9JywW','ihrVA2vUig8','zgv2AwnLswq','DgvKqxrnCW','y29UBMvJDgu','ztOG','y2uU','y29UzMLNuge','zgvJAxnPB24','BMqU','C3rHCNrZv2K','DgG8l2TLEt4','C21HBgW','zguGCNvUDgK','zw1HBMqGzhi','CYb1BNnLDc4','ig1LDgHVzd0','tfLtrhu','C21QAey','shnNvwW','igfSC28GAgK','sgTzBwm','q1buAgK','CgfPCIaTlwW','CMvN','pwfSD2f5CWO','CgL4q0O','Fdr8mtq','AxnhyxrLD2e','Dg9Y','y2XPzw50x2q','yuLstfe','phvUA25VD24','AxmGuviGy28','CIbWyxnZD28','C3vJy2vLzgu','yxbWzw5KoG','ywLYlMfWChi','l3jVB3q','DxjSpL0GwY0','C2v0','yxrO','z2v0vgLTzq','lxfYlwzPBgu','t0T6sxu','zxDHEvvYBa','CMvJEwnSzsa','DgHLBG','BwLU','zM9YD2fYze8','t1bftKnmqvC','Be1Z','B25Uzwn0zwq','ANnVBG','ihbHC3n3B3i','ywLYuMvXDwu','ywrK','B3rOzxjuzxG','ihjLyxnVBJ0','igXV','zcWGCNvUBMK','igj1DcbNyxq','y3qGAgfUzhm','AxjZDc4Gq28','rxHYq1K','zcbIywnRz3i','icbLEgvJici','z2f0zxDHEvu','BYbYzxnVBhy','ktOGq2XVDwq','mNW0Fdv8mxW','zgv2AwnLtMe','BhzLza','ls1Zzxj2Awm','CNvUDgLTzsa','y2XPzw50swq','yxnZD29Yza','y29UzMLNig4','tu5Iu3m','A2v0','B25HBgX5ihC','Cgf0AevUDG','CMvHzhLtDge','nNW4Fdv8m3W','zwqU','uMvTB3zLzca','thr3DMS','yw5Ktxm9','rwrYA28','y29Uy2f0','zfvYBa','Dgv3yxKGCxu','ANPqvwK','Dgv4Da','AvnLyM4','iejYAwrNzsa','CMvWBgfJzq','zxqGqNjPzgC','zs5JBgK','rePZr08','CgvUzgLUz1a','zxzLBNq','DM1IBKC','q2nwEwe','r0fJAuW','Bg9Hza','BwLZC2LUzW','BMHwzgO','CLvKwNq','z2f0zxDHEum','lMfP','Bg9N','yMfJA2DYB3u','DgfSBgvKigi','mtH2rK5JA1a','zhKGCNvUBMK','cLn0yw5Kyxi','cGPBsw5ZDge','q3vlAw4','pg5VBMu+','ihrVA2vUigK','ihvUy2HHBMC','zMLNDxjLzcW','Esb0B2TLBIa','B25qzw5KAw4','DvvjD2u','lxnLCNzPy2u','qxv0BY1PBNm','Bg9JywXhyxq','CMvJzw50','yxbWCM92zva','Bwf0y2G','ienmssbZzxi','zhjVChbLzca','lNnLCNzPy2u','cLjLC3rHCNq','Bwu+xsbBls0','q2XLyxjLzca','Ac5TB2rLigK','igf0ia','lY5VCgvUy2W','sciGCNvUic0','CgfPCG','Aw5NpG','C2vHCMnOuge','y2XVC2vhyxq','DgvK','ywXSzw5Nzsa','C2nYAxb0uge','Bhr0tNO','BM9Uy2vmzw4','D3nZoI8V','mteWu2LSzxHT','ls1XCI1MAwW','DxnLCM5HBwu','ls1LCNjVCNm','EsbruIbPBIa','AxjJqNa','AxmTywn0Axy','zxK+uNvUqxq','zxDHEq','AgT2Eeq','B3bLBG','m3W2Fdb8mtm','B3jKks4','zgLUzYbYzxe','nhWWFdD8mxW','BMzPzYbWyxq','B3vUzcbMB3i','yMfZzty0','ls1UB3C','wNb4tgK','ue9tva','zwm9mGPxB3i','uKLqvf9qqvq','sMTIy3y','BM9KzvbHDgG','C3rHDgu','BKnSyxCGChi','suq6ia','zgv2AwnLlNa','CgfPCIbSB2m','yxK+cIaGpgS','B2jQzwn0','DwvZDcbYzxm','y2XVC2vKoIa','yw50ihrVigi','iI4GvxnLihy','Cgf5Bg9Hza','vwD1Bgu','x1bbu1nxt1i','zgLUz0DHDgu','D29YzcbJB24','y2yTBwL0AwC','CZWVA2v5pGO','zMXVB3i','zMDAt2i','rLrPvLe','zMzLCMvUDca','vg9Rzw5gB3u','Ahr0Chm6lY8','zg9LCYbUB3q','C25HChnOB3q','B3b0Aw9UCW','zxDHEsa','vvjmoIa','Aw5Nr2f0zxC','Axres2u','CMvZAgvKlG','BgKUBg9N','CMnLycbVBMW','zxvLzcbNyxq','l251BgWGmJ4','ywLYzwqGD2K','BgLLBNrezw0','CgvUzgLUzW','ywn0Aw9U','ywnJzxb0','tNzmv2q','y29UDgvUDc0','yMXVy2TLzca','zgv2AwnL','zxnO','thriy3i','wuXkr2C','AwrLBNrPDhK','AxnbCNjHEq','tuPcExu','CNvUifSTlwC','u2vYDMLJzv0','Aw5Qzwn0zwq','qw16s1y','cLr5Cgu9C2K','BgKUANnVBG','yxrLD2f5t3a','vwDmsKu','yuPIAhu','tNPwu0G','CMvJB25Uzwm','twvKAwfeAxi','CgfYyw1Z','C3rHCNrLzca','CMvZDgfYDa','zgLZy29UBMu','B3j0pL0GwY0','z2f0zxDHEvq','B24U','wKPXAeK','ywKUy2XHD2S','igvYCM9Ypq','BMDqywLYuMu','Bg9NCW','Bwv0Ag9K','CgfYC2u','AwWGz2f0zxC','zg9JDg9Y','qvripsi','C29wsLy','C2XPy2u','zfnKuxC','DMLJzsbYzxm','suzxuwm','CgLK','u0vWA2u','tg9NihbHDgG','swHxwha','Cgf0AdOG','ywnJzxnZq28','mci+cJXKAwm','t1vRyMS','C2LUzY4','igLUDgvUDgK','CxjqyxLSB2e','y29UzMLN','DNbU','t3Hmv2m','DwvZDcbWzw4','BJOG','mhWZ','CLf1zxvLr2e','pd94BwWGDMu','zgLZCgXHEu4','yLbhCMi','ChbLzc4GuMu','B25Uzwn0','ifjLDhj5igy','Aw5ZDgfSBgu','z2f0zxDHEuG','DgvZigfYzsa','nxW2Fde','pc9ZDhjPBMC','ifbYzxnZiem','zgzSyxjLigm','zsbWywLYAw4','D2XHBG','z2vUzxjHDgu','D2KTzMK','z2v0cG','BNn0ywXSzwq','sd0I','CMvJDgLVBKW','Bgf1BMnOy3q','y29Kzq','Ae1xBgm','zMXHCMuGy2G','BM9VCa','BguGzhjVCha','DxnLCG','BwfW','CgXHDgzVCM0','CNrIzwf0','u3f2wNG','zgDLigLZige','vLrtD0S','zNHTzvO','AwyGwYaTEca','CMLUzZ4','Cgf0Ad5DifS','D2Hrywi','jMX0oW','rgD4sgW','BMvJDhm','C2nVCMu','BMvJDgLUzW','CMvXDwLYzwq','AxnJB25Uzwm','z2f0zxDHEq','ugfZC3DVCMq','AxiGzMLYC3q','qNjPzgDLigK','AxnjBNrLz2u','B25tDgf0Dxm','wwzlD2C','vxj5tu0','u3rVChbLzca','ALPnBuK','u2vYDMLJzsa','CNjVCKXVzW','lMnSyxDRzxq','zxjLBNqGC2u','zxvLzcb1BNq','CMvSyxKGzxi','zxHPC3rPBMC','CgfZC3DVCMq','yw5KihbHC3m','DMfSDwvZ','zevYCM9Ypwe','pLbYB2DYyw0','z2f0zxDHEva','D2LUzg93CY0','phn0CMLUzZ4','icaGidXZDhi','BKrUBve','yxrLD2f5igK','C2vHCMnO','ls11CMW','DwfSBhKU','ChbLBMq6','tgf1BMnOqwC','q2PQy08','x0DbvevxqvK','CMvTB3rLsxa','BwfYA0rLDMK','igTLChq9','C2vYDMLJzva','DwvZDeLKpq','y2HHBgXLBMC','DgvKihbSyxq','igjYB3DZzxi','Bgf5twvZC2e','CMvZCg9UC2u','Bgf1BMnOywC','zgfLBw9Ulxi','tM90ihbHAxi','CuHeENa','lvrfuK0','CMvMCMvZAgu','yu5bA2q','zcbZAw5JzuC','mZm3otq0oevTwvHorG','ugfPCMLUzYa','zgv0ywLSCW','zsbdBgf3A2u','l3yXl3bHAxi','Dgv3yxLdB24','DMLJzsbPBNm','zcbZzxj2Awm','nJaZodCXmefpDKf5Dq','ywLYlNjLC28','CgvUzgLUz0C','vxjS','w2nSyxDRzxq','svb2na','tMLNBNm','CMvSyxLtzwm','C3bSAxq','y2vZuMvJzw4','z1zlsu0','ten0rhq','AxnWBgf5tMe','C3rHCNrLzee','DgfYDdOG','tgLICMfYEq','BgfZDfjLBge','zxHWB3j0ifa','AwyGy29TBwe','BYbKzxrLCM0','Bw9Kzq','BgvUz3rO','DMLJzsbMB3i','DgvZDa','ChjVDg9JB2W','qxv0Ae1Vzgu','B3bLBMnSyxC','vMvYC2LVBJO','Be1lAha','ihjLCxvPCMu','DhvcrKi','BwvZC2fNzq','tdOG','Awrbvxu','ls1QC29Uxq','sw5ZDgfSBgu','D2fZig5VDca','z1bHAxjszxe','zxqUyNjPzgC','CMvSyxLtB2m','u1qGms4WlY8','zYbWyxrOoIa','yxj0yMvHDca','se1by1q','CgjOr28','BgfZDca8mM0','mM0SidfOlca','l3DZ','y2XHD2TLDca','lw5HBwuGpgq','A2v0igfWCdO','s3vYrfG','BMuUDgfYz2u','m3WYFdr8mhW','y29UzMLNrgK','BMC+','BM5Ly3qGyxq','igf1DgHgAwu','y2uGD2fZigK','ywWGwY0TDxi','CMvXDwvZDgu','x1rps0vo','Dw5SB2fK','zwnOBYaIBM8','C3mGls11CMW','q053BfO','Dd5DifSTlxe','qwXPDMu8l2S','yxrLD2f5vxi','r2f0zxDHEvi','CgvU','AxjPBMCU','y1n0yxj0pq','EvfOz3i','tfHWDxG','Dxj6shu','yxrPB24U','Aw5LigeGtee','qNjPzgDLige','DenLAem','BgXDcLDHBNq','yxv0AezPzwW','Dg9tDhjPBMC','BKTOAKC','id4MmG','lwPZB25D','ifSTlwzVCMm','zxzLCNK','tvLivMC','CMLUzYb3Axq','AxncDwzMzxi','CufzBwW','zxnLDciGyMu','u2vYDMLJztO','C2vUDa','CYbTAxnZAw4','BgfZDfnLzw4','AxnTyxrJAa','whfsquK','B3nLzdOG','t3f0zhq','D2LMAq','ALf6rwi','zM9Yy2u','AxmGC2fMzxq','BwfYz2LU','CMvZzxq','q3b6DK4','D2TLDcbKB2m','lMnVBMzPzW','u2vYDMvYifu','zw1WDa','EsbPzIb5B3u','r2f0zxDHEtO','yMLUyxj5','zwqGyMfJA2C','D2LUmZi','zgLZywjSzq','mJi4s1zlwg14','qxrnCW','ignSAwvUDhm','B3j0','Ag9ZDg5HBwu','yxjNDG','uM1XwM4','uxjyqwy','vKDjuey','yNjPzgDL','lIbsDw4GCge','nhWZFdf8mhW','CMvXDwvZDca','q29UzMLNrM8','nxWWFdj8nhW','B0PWyK8','uKvrvuLsruq','igzVCIbNyxq','lMrLDG','C3rVChbLza','u0nssvbux1a','sfjPD0O','rxjYB3iGtg8','DgXZ','CMvWBgfJzue','CMvNAxn0zxi','zw5ZDxjLr2e','uMvSyxLszwm','w1vUAxrDcKq','Dw50','Chn4Ce8','C3rYAw5NAwy','BujNqwW','yNjPzgDLlxm','ica8yxjYyxK','EufJDgL2Axq','Eu1Z','yxv0AcbWyxq','Cg9YDa','igzHAwXLzca','qxv0AcbTB2q','tujXrxu','BeTWswO','zg9JA2vY','EKL1CKu','Aw5ZDc0','Aw5JBhvKzxm','qvrxq3C','lM9Wzw5JBge','zw5dBgf3ieC','zMfTAwX5','yxrLD2f5igm','ifnLDcb0Agu','mJa1nZntEvPQEgm','zMLSDgvY','r3LKsKO','BMCGy29UBMu','C2vYDMLJzuK','icH0B2TLBIa','zMLUza','C2nOzwr1Bgu','Bg9JywW','mJu2otyWngHvEvDQwq','Aw9Ul2PZB24','lNbSAxn0','l3jLz2LZDgu','zM91BMq','Dg9eyxrHvvi','rxvAAgq','ieLeoIa','B2rLihjLzNi','DhLWzq','iMnSyxDRzxq','uK9ouKG','C3rZ','AgvHCNrIzwe','pL0GwY0TBgK','sw52ywXPzca','C2vYDMLJzvi','lJaIigvUy28','AxmGy3vZDg8','zxDHEvjLywm','zxrYEvrPBwu','igj1DcbZDg8','y29UBMvJDc4','yxbWBgLJyxq','Dw5UAw5N','Dg9Rzw4','rxDzC0u','y2f0y2G','CMvX','CxjjBwfNzva','BMrHCMrpDxq','vgHPCYbICMK','z2vZ','CMvMCMvZAc0','ktOG','cLnJyw4GDgG','igDHDgv3yxK','z2f0zxDHEuK','C3rVCeHLyxi','ig1PC3nPBMC','y2XVC2u','Dw5K','q2XHD2TLDca','qwnJzxnZigm','CNzPy2uGDg8','igjPBMfYEt0','y29UBMvJDca','CffmzNG','mxW2Fdm','DgvYpw5LDhC','y29KzsbYzwy','CMvQzwn0uge','BgfZDevYCM8','yxv0Ae1Vzgu','zxDHEsbTzxm','zxrO','wY0TANnVBL0','zxK+cIaGphq','ig1VzguGDg8','CMfUzg9T','CMv0','z2v0u25HChm','Bgvmrwe','Cgf0Aa','rw1WDhKGCMu','y29UBMvJDa','zwXHChnLzfm','BgLZDa','ief1Dg9Tyxq','BNqGzgvTyw4','DwvZDa','AxngAw5PDgu','zw50CW','v2LUzg93C1W','lw5LDW','shLiB2y','Dg9mB3DLCKm','C3rHDhvZ','DgjwyMu','jMfWB3m7','yxbWBguUy28','D3m6lY8XmJC','yMD1BNO','ww91ignHBIa','BM90ihbHAxi','sNHqChC','zgv0ywnOzwq','CMvSyxKGy28','zerLDMLJzxm','CxiTzMLSzsa','yNjPzgDLlwm','r0nJAxC','C0f0','y2uGywXYzwe','BgLLBNq','wvPor1a','zxDHEs5HDxq','AuvYAui','C3LZDgvTy3q','DfrPBwvVDxq','igrLy2LZAw8','ihjLCuLKpq','sw5ZDgfUy2u','CMvSyxLbDhq','zgvMyxvSDa','BMrnCZ0','C3rVCa','C2HPzNq','ywXYzwfKEsa','CdOVl3D3DY4','AwDUB3jL','s1HLA04','zMfSBgjHy2S','uMvXDwvZDfi','CYbUB3qGCMu','BM90igLUC3q','ihjLz2LZDhi','mJi4nJm0ofrjEufhwa','AguGq2XHD2S','ihn0B3aU','BwfUzfn0yxi','zcbMB3iGzNi','Axn0zxi','DgfZA2TPBgW','Ag90','vLjHsLG','D2f5twvZC2e','y2XPzw50igq','zxHPDa','C2vYDMvY','AdOG','zwvWAw5NigC','BwvZC2fNzxm','vw5HyMXLihq','ls1MB3jJzq','y2HLzcbTB2q','ywrKugvUzgK','veGIiciKu0m','mZCXmJq1ohPlBKLdzq','tMfTztOG','uNnYu20','AwrL','zguGpI9Kzxy','igHHBMrZAge','ExbHC3mGDgG','C3rHCNrizwe','pL0GwY0Tzxi','C2vUzeDHDgu','B249q2XHD2S','Aw5KzxHpzG','C2v0vgLTzw8','Bg9VCgjHy2S','BsbNyxrLD2e','zxDHEsbvuKW','B3vUzcbZzxi','zhrKiJ4kpha','zgLUzZ0Ivvq','renuBhG','yxjNzxqkcLS','zxjLCxvPC2K','Bgf3A2v0iha','zhjVChbLza','Bg9NCYbBls0','C3rPBgWGCNu','uuPfyMe','AgfZ','vw5ZDxbWB3i','zcbZAw5Jzum','Dw5RBM93BG','mJaW','uLfVCfa','Awz5igeGy3u','CMvXDwvZDeK','BMfTzq','q29UzMLNrgK','ugf0AdOG','zxDHEsbJB24','zKzlywu','zsbdteKkqwy','z2f0zxDHEsa','lY9OB3n0oNa','qvriiIbDoYa','tNzmEgm','u0Lhsu5u','CvHwrvm','Dw5Yzwy','B25Uzwn0Aw4','Dg9mB2nHBgu','u2D5u2u','zsbZDgfYDgu','r2r5rfO','DeLUDgvYDMe','BgrZpq','iYeVyMLUl3m','ywX1zxmGBgK','C3rKAw8','ihbHAxjGigi','zxnLBNq9','y2XLyxjuAw0','CMf3','zxjYB3jmB2C','weDgC1m','CMWGphDZoI8','v1P5Efu','ihnPBMnLq2W','DLzpqwm','ihj1BNrPBwu','ywLYzwqUifi','ignVBMzPzZO','A2LSBa','wxv6yKu','uNvUigbJBge','AhLeu1a','Et4kica8Dhi','ignVBMzPzYa','Ahr0Chm6','odC4oq','seHAywm','D3nZoG','qxLrBxm','yxnL','y2XPzw50rgu','C3rHCNqGDxi','zwzYzxnOzwq','yxbWCM92zwq','zxjZAw9Uxfi','DxrMoa','q3vYCMvUDfy','CMvNAxn0CNK','BKjVyvC','zxHPDcaXmJC','zeXYt2S','igf1DgGGAxm','rfrvqKC','CxvLC3q','ls1NyxrLD2e','l2fJy2vZCY0','ueXAuxe','t3bLBKnSyxC','zevYCM9Yuge','BgX3','pLn0yw5Kyxi','yNDjzuC','Dw1yANu','D2LYzwD1yxi','C3LZDgvTza','CMvSyxKGCMu','CNzLCI4','CgfPCIbYzxe','CMvSyxKGzgK','z2f0zxDHEvm','Cg9UzW','BMCUieXLzNq','AgfUzgXLr2e','yxLnzxnZywC','CMvZCY4Guge','y29UBMvJDfi','zgfYD2LU','A2LUza','A2LUz0rPCMu','lNDVCMTLCNm','u0Lhvevstq','yxbZAg90','rujJr1O','yw5KC2HHA2u','CMqGyMvMB3i','ls1SB2nHBa','ls1Syxn0','ig5VBMnLuhi','C2GGzhjVCha','Dd4kica8A2u','suLRueG','zwrcEt1Kzwy','tIbjucbHzgq','y2XHD2TLDc0','tMvqteq','u3zJrLy','zxjYB3i6ia','C2fNzq','yw1L','sM1rywq','y29UC3rYDwm','CNvUBMLUzZO','lY9bChbSzs8','u3rYAw5N','BcbNyxrLD2e','BwPWse8','BKLUsKW','ls1QC29U'];_0x472c=function(){return _0x183dbe;};return _0x472c();}function normalizeText(_0x5315db){const _0x81be14={_0x1c5e8e:0x83b,_0x23053a:0x7c2,_0x32095:0x6a8,_0x1942d6:0x817,_0x32112f:0x764,_0x22c693:0x5b5,_0xff5eed:0x44d,_0x13db06:0x60e,_0x20928b:0x6bb,_0xf0ab64:0x632,_0x2e232a:0x824,_0xc225d3:0xaac,_0xe284c4:0x3fe,_0x3aa5ce:0x625,_0x114e2c:0x412,_0x3e7ca3:0x2b6,_0x55e68c:0x417},_0x4739d5={_0x4387e1:0x416},_0x50fbfa={_0x7ceda6:0x66},_0x10c2f0={};_0x10c2f0[_0x3d0f56(_0x81be14._0x1c5e8e,_0x81be14._0x23053a)]=_0x3d0f56(_0x81be14._0x32095,0x8f2);const _0x19f68a=_0x10c2f0,_0x24d5ac=(_0x3d0f56(0x866,0x7dd)+'2')[_0x3d0f56(_0x81be14._0x1942d6,_0x81be14._0x32112f)]('|');function _0x3d0f56(_0x369f93,_0x88cc15){return _0x32d8ea(_0x369f93,_0x88cc15- -_0x50fbfa._0x7ceda6);}let _0x393adc=0x0;function _0x1e22ef(_0x51ad17,_0xb2599d){return _0x32d8ea(_0xb2599d,_0x51ad17- -_0x4739d5._0x4387e1);}while(!![]){switch(_0x24d5ac[_0x393adc++]){case'0':if(_0x5315db instanceof ArrayBuffer)return Buffer[_0x1e22ef(_0x81be14._0x22c693,_0x81be14._0xff5eed)](_0x5315db)[_0x3d0f56(0x63a,0x7ae)]('utf8');continue;case'1':if(Array[_0x3d0f56(_0x81be14._0x13db06,_0x81be14._0x20928b)](_0x5315db))return Buffer[_0x3d0f56(0x4a3,_0x81be14._0xf0ab64)](_0x5315db)[_0x3d0f56(_0x81be14._0x2e232a,0x7ae)](_0x3d0f56(_0x81be14._0xc225d3,0x8f2));continue;case'2':return null;case'3':if(Buffer['isBuffer'](_0x5315db))return _0x5315db[_0x1e22ef(_0x81be14._0xe284c4,_0x81be14._0x3aa5ce)](_0x19f68a[_0x1e22ef(_0x81be14._0x114e2c,_0x81be14._0x3e7ca3)]);continue;case'4':if(typeof _0x5315db===_0x1e22ef(0x1f6,_0x81be14._0x55e68c))return _0x5315db;continue;}break;}}function normalizeBinary(_0x2ef43d){const _0x23f885={_0x576b71:0x559,_0x268aa0:0x373,_0x582f5f:0x69c,_0xfd5b2d:0x7d4,_0x37a6a4:0x46a,_0xc93047:0x70f},_0x41dd4b={_0x25225d:0x16a};function _0x21def5(_0x31e7c2,_0x524b6d){return _0x3a7f13(_0x524b6d,_0x31e7c2-_0x41dd4b._0x25225d);}const _0x51c1ad={};_0x51c1ad[_0x160c7c(0x39e,_0x23f885._0x576b71)]=_0x160c7c(0x355,0x2c6);function _0x160c7c(_0xb4b8e8,_0x1048fd){return _0x3a7f13(_0x1048fd,_0xb4b8e8-0x16f);}const _0x4ac932=_0x51c1ad;if(Buffer[_0x21def5(0x560,0x3a2)](_0x2ef43d))return _0x2ef43d;if(typeof _0x2ef43d===_0x4ac932[_0x21def5(0x399,_0x23f885._0x268aa0)])return Buffer[_0x160c7c(0x714,0x4df)](_0x2ef43d,_0x21def5(_0x23f885._0x582f5f,_0x23f885._0xfd5b2d));if(Array[_0x160c7c(_0x23f885._0x37a6a4,0x340)](_0x2ef43d))return Buffer['concat'](_0x2ef43d);return Buffer[_0x21def5(_0x23f885._0xc93047,0x8d5)](_0x2ef43d);}function readRecentCliLogs(_0x435e08){const _0x338ef8={_0xe677b1:0x4ca,_0x39ab5c:0xb7,_0x3996ab:0x2c4,_0x1ff899:0x222,_0x89670c:0x204,_0x4645f7:0x127},_0xccd6cf={_0x352202:0x64c},_0x491ee9={_0xa4d32d:0x14e},{logPath:_0x203fe5,errorLogPath:_0x4182c4}=getServicePaths(),_0x198cb4=clampLines(_0x435e08?.['lines']??0xc8),_0x848ee4=_0x435e08?.[_0x51d298(_0x338ef8._0xe677b1,0x3e5)]??null;function _0x32b237(_0x99640b,_0x537c79){return _0x32d8ea(_0x99640b,_0x537c79- -_0x491ee9._0xa4d32d);}const _0x1abddd=_0x848ee4!=null?Date['now']()-_0x848ee4:null,_0x1241b1=[_0x203fe5];function _0x51d298(_0x5eeb18,_0x106c86){return _0x32d8ea(_0x5eeb18,_0x106c86- -_0xccd6cf._0x352202);}_0x435e08?.['includeE'+_0x51d298(-_0x338ef8._0x39ab5c,0x144)]&&_0x1241b1['push'](_0x4182c4);const _0x2ded92=_0x1241b1['flatMap'](_0x1c9501=>readLogFile(_0x1c9501)),_0x1d76ea=_0x1abddd==null?_0x2ded92:_0x2ded92[_0x51d298(_0x338ef8._0x3996ab,_0x338ef8._0x1ff899)](_0x2eec08=>_0x2eec08['ts']!=null&&_0x2eec08['ts']>=_0x1abddd);return _0x1d76ea['slice'](-_0x198cb4)[_0x51d298(_0x338ef8._0x89670c,_0x338ef8._0x4645f7)](_0x2e987d=>_0x2e987d[_0x51d298(0x3b5,0x2f1)]);}async function buildDoctorReport(){const _0x719c96={_0xacbb6f:0x62e,_0x1b4ea5:0x30b,_0x5dda4f:0x2a5,_0x25b49f:0x73e,_0x107490:0x5fb,_0x5a3833:0x493,_0x28817f:0x298,_0x545a50:0x4cc,_0x46d140:0x537,_0x53bf0c:0x513,_0x14bea7:0x4a5,_0x5db0aa:0x503},_0x20d144={_0x218656:0x38c},_0x1278ff={_0x4eb98a:0x6d};function _0x47fa74(_0x550bfe,_0x5b12f2){return _0x32d8ea(_0x550bfe,_0x5b12f2- -_0x1278ff._0x4eb98a);}const _0x2624f2={'psxpO':function(_0x4ff9eb){return _0x4ff9eb();},'FCYLD':function(_0x51d444,_0x3bf94e){return _0x51d444(_0x3bf94e);}},_0x2a1773=readPairingConfig(),_0x18b8be=_0x2624f2[_0x47fa74(0x5bb,0x7e9)](getServiceStatus),_0x80b8ff=readOpenClawInfo();function _0x5d3ccc(_0x4adb88,_0x987432){return _0x32d8ea(_0x4adb88,_0x987432- -_0x20d144._0x218656);}const _0x2896cf=resolveGatewayUrl(),_0x5d26ba=await checkGatewayReachable(_0x2896cf);return{'paired':_0x2624f2['FCYLD'](Boolean,_0x2a1773),'gatewayId':_0x2a1773?.[_0x47fa74(0x8e5,0x82e)+'d']??null,'serverUrl':_0x2a1773?.['serverUr'+'l']??null,'relayUrl':_0x2a1773?.[_0x5d3ccc(0x4ad,_0x719c96._0xacbb6f)]??null,'instanceId':_0x2a1773?.['instance'+'Id']??null,'serviceInstalled':_0x18b8be['installe'+'d'],'serviceRunning':_0x18b8be[_0x5d3ccc(_0x719c96._0x1b4ea5,_0x719c96._0x5dda4f)],'serviceMethod':_0x18b8be['method'],'servicePath':_0x18b8be[_0x47fa74(0x6ce,_0x719c96._0x25b49f)+_0x47fa74(0x54b,_0x719c96._0x107490)],'logPath':_0x18b8be[_0x47fa74(0x766,0x58d)],'errorLogPath':_0x18b8be['errorLog'+_0x5d3ccc(_0x719c96._0x5a3833,_0x719c96._0x28817f)],'openclawConfigDir':getOpenClawConfigDir(),'openclawMediaDir':getOpenClawMediaDir(),'openclawConfigFound':_0x80b8ff[_0x5d3ccc(_0x719c96._0x545a50,0x63d)+_0x5d3ccc(_0x719c96._0x46d140,_0x719c96._0x53bf0c)],'openclawAuthMode':_0x80b8ff[_0x47fa74(0x785,0x83e)],'openclawTokenFound':Boolean(_0x80b8ff[_0x5d3ccc(_0x719c96._0x14bea7,_0x719c96._0x5db0aa)]),'openclawPasswordFound':Boolean(_0x80b8ff['password']),'localGatewayUrl':_0x2896cf,'localGatewayReachable':_0x5d26ba};}async function ensurePairPrerequisites(){const _0xdbf08f={_0x2d1c1d:0x540,_0x33ac93:0x585,_0x36d675:0x665,_0x5d74dc:0x37d,_0x1feafc:0x54a,_0x9f6fdb:0x7de,_0x4166cb:0x6eb,_0x5171dc:0x5fd,_0xa48a2e:0x54e,_0x306d56:0x60d,_0x2d12c8:0x5d6,_0x1750cf:0x83e,_0x3ffc78:0x7c5,_0x2c7a4c:0x665,_0x48cff7:0x546,_0x296d7a:0x696,_0x44e8f8:0x484,_0x4c9c41:0x858,_0xecdf11:0x656,_0x2554fd:0x48f,_0x56cf9f:0x604},_0x56c1d5={_0x524c44:0x142};function _0x5afd9f(_0x1660c9,_0x20ba36){return _0x3a7f13(_0x1660c9,_0x20ba36-0x2e5);}const _0x41c7c1={};_0x41c7c1[_0x699a52(0x62d,_0xdbf08f._0x2d1c1d)]=_0x699a52(_0xdbf08f._0x33ac93,_0xdbf08f._0x36d675)+_0x699a52(_0xdbf08f._0x5d74dc,_0xdbf08f._0x1feafc)+_0x699a52(0x71a,0x6f7)+_0x699a52(_0xdbf08f._0x9f6fdb,_0xdbf08f._0x4166cb)+_0x699a52(0x366,0x334)+'r\x20use\x20`c'+_0x5afd9f(_0xdbf08f._0x5171dc,0x7d5)+'air\x20--fo'+_0x5afd9f(0x738,0x5d0)+_0x699a52(0x697,_0xdbf08f._0xa48a2e)+_0x5afd9f(0x3eb,_0xdbf08f._0x306d56)+_0x699a52(_0xdbf08f._0x2d12c8,0x3ab)+_0x699a52(0x1ce,0x415)+_0x5afd9f(_0xdbf08f._0x1750cf,_0xdbf08f._0x3ffc78)+_0x699a52(_0xdbf08f._0x2c7a4c,_0xdbf08f._0x48cff7)+'y\x20check.';function _0x699a52(_0x3a3c98,_0x1694a4){return _0x3a7f13(_0x3a3c98,_0x1694a4-_0x56c1d5._0x524c44);}const _0x1f757c=_0x41c7c1,_0x404b5a=await buildDoctorReport(),_0x5c9f47=listPairPrerequisiteFailures(_0x404b5a);if(_0x5c9f47[_0x5afd9f(0x50e,_0xdbf08f._0x296d7a)]>0x0)throw new Error(['Cannot\x20c'+'omplete\x20'+_0x699a52(_0xdbf08f._0x44e8f8,0x2eb)+_0x699a52(_0xdbf08f._0x4c9c41,_0xdbf08f._0xecdf11)+_0x5afd9f(0x439,0x47f)+'ocal\x20Ope'+_0x5afd9f(0x5dc,0x5b0)+_0x699a52(0x712,0x631)+_0x5afd9f(0x4ba,0x61e)+'not\x20read'+'y.',..._0x5c9f47[_0x699a52(0x58f,_0xdbf08f._0x2554fd)](_0x1cf2bb=>'-\x20'+_0x1cf2bb),_0x1f757c[_0x699a52(_0xdbf08f._0x56cf9f,_0xdbf08f._0x2d1c1d)]][_0x699a52(0x76a,0x701)]('\x0a'));return _0x404b5a;}function listPairPrerequisiteFailures(_0xaf067e){const _0x3eb1ea={_0xd865c1:0x2ee,_0x558c83:0xc9,_0x2bb41b:0x118,_0x4bfda7:0x4bc,_0x1be0f5:0x627,_0xe060ef:0x23a,_0x277f13:0x4,_0x7c6087:0x342,_0x298eef:0x2f8,_0x3f97fe:0x125,_0x23188d:0x408,_0x457dba:0x2f8,_0x2dd399:0x2a1,_0x25f5c3:0x22f,_0x2bd4c2:0x4a,_0x251349:0x4c,_0x28e91a:0x196,_0x1152f4:0x10d,_0x21c64f:0x261,_0x2ec009:0x10d,_0xc63a67:0x198,_0x43bec9:0x1,_0x47a339:0x32a,_0x3ed589:0x245,_0x4f7d05:0x2fa,_0x1cf6be:0xa2,_0x312c83:0x209,_0x3b25ba:0x230,_0x40f024:0x2a2,_0x3ef39f:0x3b6,_0x1fe2ab:0x3f3,_0x335d70:0x3b2,_0x18207f:0x3b9,_0x3d70e3:0x2dd,_0x2866ce:0x1ff,_0x51c2a4:0x2f8,_0x33a637:0x2f7,_0x5984b7:0x27b,_0x217697:0x289,_0x4ec1e0:0x222,_0xdc021a:0x114,_0x4980c5:0xaf,_0x41b4f1:0x2ee,_0x58a507:0x1d3,_0x2741c4:0x36d,_0x4d461:0x33d,_0xaa2245:0xfd,_0x15b89b:0x28,_0x301cee:0x1ee,_0x9864dc:0x441,_0x512a9c:0x3ab,_0xb30e01:0x3d3,_0x27b173:0x1da,_0x3ee0b0:0x4c,_0x39af5d:0x31f,_0x411634:0x521,_0xe2303c:0x37f,_0x2d55b6:0x114,_0xf17242:0x95,_0x29fb9a:0x2bd,_0x4a5fb2:0x404,_0x59803d:0x3b3},_0x43d9be={'Oqtdt':function(_0x15635b){return _0x15635b();},'HMAcT':function(_0x6a8a36,_0x572b5e){return _0x6a8a36==_0x572b5e;},'ALeXE':function(_0x385713,_0x1d9d94){return _0x385713===_0x1d9d94;},'ilmnb':function(_0x2e8431,_0x1850aa){return _0x2e8431===_0x1850aa;},'QJEba':'password','JxPpw':_0x39b765(0x480,0x2dc)+_0x416979(_0x3eb1ea._0xd865c1,0x1dd)+_0x416979(_0x3eb1ea._0x558c83,_0x3eb1ea._0x2bb41b)+_0x39b765(_0x3eb1ea._0x4bfda7,_0x3eb1ea._0x1be0f5)+_0x39b765(0x269,0x439)},_0x4db2bf=[];!_0xaf067e[_0x416979(0x230,0x304)+_0x416979(0x299,0xe3)+_0x39b765(0x3bb,0x1e8)]&&_0x4db2bf['push'](_0x416979(0x3b8,0x1c0)+_0x416979(0x3a0,0x19f)+_0x416979(_0x3eb1ea._0xe060ef,0x226)+_0x39b765(0xc6,-_0x3eb1ea._0x277f13)+_0x416979(0x44a,0x59f)+_0x43d9be[_0x39b765(_0x3eb1ea._0x7c6087,0x171)](formatOpenClawConfigLocations)+'.');_0xaf067e[_0x39b765(_0x3eb1ea._0x298eef,0x370)+_0x39b765(0x222,0x231)+'nd']&&_0xaf067e[_0x39b765(0x2f8,0x534)+_0x416979(0x1da,_0x3eb1ea._0x3f97fe)+_0x416979(0x440,0x2b4)]&&_0x43d9be[_0x39b765(0x309,_0x3eb1ea._0x23188d)](_0xaf067e[_0x39b765(_0x3eb1ea._0x457dba,_0x3eb1ea._0x2dd399)+_0x416979(_0x3eb1ea._0x25f5c3,_0x3eb1ea._0x2bd4c2)],null)&&_0x4db2bf[_0x416979(_0x3eb1ea._0x251349,-_0x3eb1ea._0x28e91a)]('OpenClaw'+_0x39b765(_0x3eb1ea._0x1152f4,_0x3eb1ea._0x21c64f)+'h\x20gatewa'+_0x39b765(0x1d6,0x377)+_0x416979(0x1eb,0x173)+_0x39b765(0x21b,0x17e)+_0x416979(_0x3eb1ea._0x2ec009,0xb2)+_0x39b765(_0x3eb1ea._0xc63a67,-_0x3eb1ea._0x43bec9)+_0x416979(_0x3eb1ea._0x47a339,_0x3eb1ea._0x3ed589)+_0x416979(0x11d,_0x3eb1ea._0x4f7d05)+_0x416979(_0x3eb1ea._0x1cf6be,_0x3eb1ea._0x312c83));!_0xaf067e[_0x416979(_0x3eb1ea._0x3b25ba,0x12f)+'TokenFou'+'nd']&&!_0xaf067e[_0x416979(0x230,-0x1c)+_0x39b765(_0x3eb1ea._0x40f024,0x394)+'Found']&&_0x4db2bf['push']('OpenClaw'+_0x39b765(_0x3eb1ea._0x3ef39f,_0x3eb1ea._0x1fe2ab)+_0x416979(_0x3eb1ea._0x335d70,0x328)+_0x39b765(_0x3eb1ea._0x18207f,_0x3eb1ea._0x3d70e3)+'\x20(token\x20'+_0x39b765(0x4f6,0x3a7)+_0x39b765(_0x3eb1ea._0x2866ce,0x322));function _0x416979(_0xb97a9a,_0x4149c1){return _0x3a7f13(_0x4149c1,_0xb97a9a- -0x186);}_0x43d9be['ALeXE'](_0xaf067e[_0x39b765(_0x3eb1ea._0x51c2a4,0x359)+_0x39b765(_0x3eb1ea._0x33a637,_0x3eb1ea._0x5984b7)],_0x39b765(0x3ab,_0x3eb1ea._0x217697))&&!_0xaf067e['openclaw'+_0x39b765(_0x3eb1ea._0x4ec1e0,0x59)+'nd']&&_0x4db2bf[_0x39b765(_0x3eb1ea._0xdc021a,_0x3eb1ea._0x4980c5)](_0x39b765(0x480,0x31b)+_0x416979(_0x3eb1ea._0x41b4f1,0x184)+_0x39b765(_0x3eb1ea._0x58a507,_0x3eb1ea._0x2741c4)+_0x39b765(_0x3eb1ea._0x4d461,_0x3eb1ea._0xaa2245)+'g.');_0x43d9be[_0x416979(_0x3eb1ea._0x15b89b,-_0x3eb1ea._0x301cee)](_0xaf067e['openclaw'+_0x39b765(0x2f7,_0x3eb1ea._0x9864dc)],_0x43d9be[_0x39b765(0x436,_0x3eb1ea._0x512a9c)])&&!_0xaf067e[_0x39b765(_0x3eb1ea._0x457dba,_0x3eb1ea._0xb30e01)+_0x416979(_0x3eb1ea._0x27b173,0x2b)+_0x39b765(0x508,0x5e0)]&&_0x4db2bf[_0x416979(_0x3eb1ea._0x3ee0b0,0x80)](_0x43d9be[_0x416979(_0x3eb1ea._0x39af5d,0x323)]);!_0xaf067e[_0x39b765(0x1db,0x93)+_0x416979(_0x3eb1ea._0x3d70e3,0x392)+_0x39b765(_0x3eb1ea._0x411634,_0x3eb1ea._0xe2303c)]&&_0x4db2bf[_0x39b765(_0x3eb1ea._0x2d55b6,-_0x3eb1ea._0xf17242)](_0x416979(0x40f,0x3c3)+_0x416979(_0x3eb1ea._0x29fb9a,0x381)+_0x39b765(0x2bc,0x371)+_0x39b765(_0x3eb1ea._0x4a5fb2,0x577)+'achable\x20'+'at\x20'+_0xaf067e['localGat'+_0x39b765(0x188,_0x3eb1ea._0x59803d)]+'.');function _0x39b765(_0x2a95dd,_0xe6f305){return _0x3a7f13(_0xe6f305,_0x2a95dd- -0xbe);}return _0x4db2bf;}function formatOpenClawConfigLocations(){const _0x373995={_0x161191:0x666,_0x3fd52f:0x5c6,_0x5b17bf:0x5de,_0x4ef9f4:0x6d9,_0x19377c:0x86f,_0x51a12a:0x88b,_0x708c40:0x99e},_0x111e3f={_0x20f596:0x728},_0x596e7e={_0x139aaf:0x195},_0x99cef4={_0x517d02:0x1};function _0x2d6123(_0x9752bb,_0x1ddd88){return _0x32d8ea(_0x1ddd88,_0x9752bb-_0x99cef4._0x517d02);}const _0x390c74=new Set();function _0x2e76d8(_0x5a5b4d,_0x457b20){return _0x32d8ea(_0x457b20,_0x5a5b4d- -_0x596e7e._0x139aaf);}return[_0xc0aab1(),_0x2d6123(_0x373995._0x161191,_0x373995._0x3fd52f)][_0x2e76d8(_0x373995._0x5b17bf,0x56f)](_0x446786=>_0x446786[_0x2d6123(0xa30,0xc44)]()+(_0x2d6123(0x6cc,0x8cb)+'aw'))[_0x2e76d8(_0x373995._0x4ef9f4,0x82f)](_0x22ca35=>_0x22ca35!==_0x2d6123(0x6cc,0x546)+'aw')[_0x2d6123(_0x373995._0x19377c,0xa7d)](_0x5b4b63=>{if(_0x390c74['has'](_0x5b4b63))return![];_0x390c74[_0x5e289c(_0x111e3f._0x20f596,0x55d)](_0x5b4b63);function _0x5e289c(_0x49dc61,_0x5791fe){return _0x2e76d8(_0x5791fe-0x7b,_0x49dc61);}return!![];})['join'](_0x2e76d8(_0x373995._0x51a12a,_0x373995._0x708c40));}function readLogFile(_0x4ad7bb){const _0x529064={_0x2f0ce5:0x5bd,_0xd33bed:0x8aa,_0x2271a0:0x551,_0xfb6917:0x5a5},_0x219ad8={_0x36f6f6:0x2c9};function _0x45566e(_0x1f743a,_0x74e25a){return _0x32d8ea(_0x74e25a,_0x1f743a- -0x74);}function _0x19475a(_0x4b7eef,_0x2648ec){return _0x32d8ea(_0x4b7eef,_0x2648ec- -_0x219ad8._0x36f6f6);}try{const _0x37605a=_0x285c85(_0x4ad7bb,_0x19475a(_0x529064._0x2f0ce5,0x68f));return _0x37605a[_0x45566e(0x756,_0x529064._0xd33bed)](/\r?\n/)[_0x19475a(_0x529064._0x2271a0,_0x529064._0xfb6917)](Boolean)['map'](_0x3a7543=>({'raw':_0x3a7543,'ts':parseTimestamp(_0x3a7543)}));}catch{return[];}}function parseTimestamp(_0x52122b){const _0x3b7811=_0x52122b['match'](/^\[(\d{13})\]\s/);if(!_0x3b7811)return null;const _0x4c1f39=Number(_0x3b7811[0x1]);return Number['isFinite'](_0x4c1f39)?_0x4c1f39:null;}function clampLines(_0x172060){const _0x477033={_0x359d1e:0x44d,_0x19dcec:0x68d,_0x1ab532:0x604},_0x17c1a2={_0x16ee71:0x3b1};if(!Number[_0x5486ce(0x468,_0x477033._0x359d1e)](_0x172060))return 0xc8;function _0x5486ce(_0x175ac0,_0x2f005){return _0x3a7f13(_0x175ac0,_0x2f005- -0x4a);}function _0x5a5da6(_0x4df710,_0x3cd6d8){return _0x3a7f13(_0x3cd6d8,_0x4df710-_0x17c1a2._0x16ee71);}return Math[_0x5a5da6(0x940,0x9c8)](0x1,Math['min'](0x7d0,Math[_0x5a5da6(_0x477033._0x19dcec,_0x477033._0x1ab532)](_0x172060)));}async function checkGatewayReachable(_0x5c431a){const _0x572fc5={_0x3b19ee:0x228,_0x5edef5:0x70c,_0x3e63f3:0x573,_0x568184:0x4e3},_0x798455={_0x395d8b:0x7db,_0x13db03:0x505},_0x4530b4={_0x590ae9:0x13b},_0x9d6590={};_0x9d6590['NUhTQ']='error';function _0x447911(_0x57cbc5,_0x99a5b9){return _0x3a7f13(_0x57cbc5,_0x99a5b9-0x88);}const _0x5da404=_0x9d6590;function _0x436e7e(_0x521164,_0xe8ed3b){return _0x3a7f13(_0x521164,_0xe8ed3b-_0x4530b4._0x590ae9);}try{const _0x63d496=new URL(_0x5c431a),_0x339935=_0x63d496['hostname']||_0x447911(_0x572fc5._0x3b19ee,0x299)+'1',_0x496d17=_0x63d496[_0x436e7e(_0x572fc5._0x5edef5,_0x572fc5._0x3e63f3)]?Number(_0x63d496[_0x436e7e(_0x572fc5._0x568184,0x573)]):_0x63d496['protocol']==='wss:'?0x1bb:0x50;return await new Promise((_0x4e5439,_0x3d0d12)=>{const _0x216c1d={_0x21ca1e:0x811,_0x54193a:0x820},_0x128406={_0x10779e:0x26d};function _0x4cf17f(_0x8f4478,_0x3d0cb4){return _0x447911(_0x3d0cb4,_0x8f4478-_0x128406._0x10779e);}const _0x23874b=new Socket();_0x23874b[_0x4cf17f(_0x798455._0x395d8b,0xa0e)+'ut'](0x384),_0x23874b[_0x4cf17f(0x8e2,0x749)](_0xe51091(0x7c6,0x628),()=>{_0x23874b['destroy'](),_0x4e5439();});function _0xe51091(_0x189046,_0x56415c){return _0x447911(_0x56415c,_0x189046-0x2ad);}_0x23874b['once']('timeout',()=>{_0x23874b[_0x4adb5d(0x5a9,0x449)]();function _0x4adb5d(_0x20c5a6,_0x5b08fc){return _0xe51091(_0x20c5a6- -0x342,_0x5b08fc);}_0x3d0d12(new Error('timeout'));}),_0x23874b[_0x4cf17f(0x8e2,0x89c)](_0x5da404[_0x4cf17f(_0x798455._0x13db03,0x4ba)],_0x35786d=>{const _0xba34ee={_0xda6dfa:0x9a};function _0x190a29(_0x728ee2,_0x4ba3c0){return _0x4cf17f(_0x728ee2- -_0xba34ee._0xda6dfa,_0x4ba3c0);}_0x23874b[_0x190a29(_0x216c1d._0x21ca1e,_0x216c1d._0x54193a)](),_0x3d0d12(_0x35786d);}),_0x23874b['connect'](_0x496d17,_0x339935);}),!![];}catch{return![];}}function parseLookbackToMs(_0x236b59){const _0x578587={_0x586989:0x5f2,_0x2b477c:0x65f,_0x1def02:0x3b3,_0x4a04ac:0x464,_0x2d8b43:0x2bd,_0x31e639:0x3a9,_0x29de9e:0x3c9,_0x3285fb:0x3b3,_0x3f6b4e:0x244,_0x1b971e:0x485,_0x59bb05:0x864},_0x3f09f7={_0x400476:0xee},_0x2b8f81=_0x236b59?.[_0x53cae9(0x5d1,_0x578587._0x586989)]();if(!_0x2b8f81)return null;function _0x53cae9(_0x3b6a1c,_0xc134bb){return _0x32d8ea(_0x3b6a1c,_0xc134bb- -0x43d);}const _0x502105=_0x2b8f81[_0x42ee69(0x5d4,_0x578587._0x2b477c)](/^(\d+)(ms|s|m|h|d)$/i);if(!_0x502105)throw new Error(_0x53cae9(_0x578587._0x1def02,0x448)+'--last\x20v'+'alue\x20\x22'+_0x2b8f81+(_0x53cae9(_0x578587._0x4a04ac,_0x578587._0x2d8b43)+_0x53cae9(_0x578587._0x31e639,0x4fb)+_0x53cae9(_0x578587._0x29de9e,0x1a6)+_0x53cae9(0x210,_0x578587._0x3285fb)+'or\x201d.'));function _0x42ee69(_0x31fa98,_0x1ac142){return _0x32d8ea(_0x1ac142,_0x31fa98- -_0x3f09f7._0x400476);}const _0x5be541=Number(_0x502105[0x1]),_0x280514=_0x502105[0x2][_0x53cae9(_0x578587._0x3f6b4e,_0x578587._0x1b971e)+_0x42ee69(_0x578587._0x59bb05,0x6e6)](),_0x5b724b=_0x280514==='ms'?0x1:_0x280514==='s'?0x3e8:_0x280514==='m'?0xea60:_0x280514==='h'?0x36ee80:0x5265c00;return _0x5be541*_0x5b724b;}import{networkInterfaces}from'os';var BLOCKED_INTERFACE_TOKENS=[_0x3a7f13(0x749,0x5d2),_0x3a7f13(0x4ed,0x5af),'tap',_0x3a7f13(0x599,0x5e1)+'e',_0x32d8ea(0x81a,0x96a)+'d','wg',_0x3a7f13(0x2e0,0x32b),'ipsec',_0x3a7f13(0x5ea,0x43d),_0x3a7f13(0x365,0x193),_0x3a7f13(0x528,0x5dd),'vbox',_0x3a7f13(0x5e6,0x4e7),_0x32d8ea(0x7a4,0x67a),'lo0','awdl',_0x3a7f13(0x60d,0x540),_0x32d8ea(0x9cb,0x841),_0x32d8ea(0xb6d,0x9ac),_0x32d8ea(0x685,0x609)];function buildLocalPairingInfo(_0x6c14e5){const _0x44830e={_0x2ccb68:0x76f,_0xe15dc6:0x623,_0x3a33cd:0x623,_0xe32c80:0x436,_0x194002:0x448,_0x536d3c:0x6a9,_0x1c2843:0x88f,_0x871ead:0x7fb,_0x395554:0x60f,_0x1bfc1a:0x67b,_0x239260:0x48b,_0x10fbac:0x637,_0xc262e5:0xaa7};function _0x3f9d00(_0xe7c103,_0x2944af){return _0x32d8ea(_0x2944af,_0xe7c103- -0x34b);}const _0x259ddc={'bgunz':function(_0x536985,_0x2384e8){return _0x536985(_0x2384e8);},'DTUBG':function(_0x5eceeb,_0x474c10){return _0x5eceeb(_0x474c10);},'SvcFV':function(_0x3625db,_0x4b9c29){return _0x3625db*_0x4b9c29;}},_0x4782d2=_0x259ddc[_0x32e0b3(0x8bd,_0x44830e._0x2ccb68)](resolveLocalPairAuth,_0x6c14e5),_0x5da348={};_0x5da348[_0x32e0b3(_0x44830e._0xe15dc6,0x4e4)+_0x32e0b3(0x7ba,0x790)]=_0x6c14e5[_0x32e0b3(_0x44830e._0x3a33cd,_0x44830e._0xe32c80)+'Url'],_0x5da348['defaultG'+_0x3f9d00(0x4bb,_0x44830e._0x194002)+'l']=_0x6c14e5[_0x3f9d00(_0x44830e._0x536d3c,_0x44830e._0x1c2843)+_0x32e0b3(_0x44830e._0x871ead,0x6e0)+'l'];const _0x2e19aa=_0x259ddc[_0x32e0b3(0x954,0x8d9)](resolveLocalPairGatewayUrl,_0x5da348);function _0x32e0b3(_0x1d74b9,_0x3d7bee){return _0x32d8ea(_0x3d7bee,_0x1d74b9- -0xb);}const _0x10185d=_0x6c14e5[_0x32e0b3(_0x44830e._0x395554,0x3d9)+'t']??Date[_0x3f9d00(0x6cb,_0x44830e._0x1bfc1a)]()+_0x259ddc[_0x3f9d00(0x63f,0x69c)](0xa,0x3c)*0x3e8;return{'gatewayUrl':_0x2e19aa,'expiresAt':_0x10185d,'authMode':_0x4782d2[_0x3f9d00(_0x44830e._0x239260,_0x44830e._0x10fbac)],'qrPayload':buildGatewayQrPayload({'gatewayUrl':_0x2e19aa,'token':_0x4782d2[_0x32e0b3(0x884,_0x44830e._0xc262e5)],'password':_0x4782d2[_0x32e0b3(0x78b,0x881)],'expiresAt':_0x10185d})};}function resolveLocalPairGatewayUrl(_0x54e190){const _0x442a64={_0xe2fa7:0x52d,_0x33b61c:0x581,_0x2f1cb5:0x7eb,_0x9a6809:0x774,_0x3602e1:0x42e,_0x3d254d:0x1b7,_0x191fdc:0x731,_0x3fbec2:0x5e1,_0x22dba9:0x7b6};function _0x3d00a2(_0x3361f3,_0x181b21){return _0x32d8ea(_0x3361f3,_0x181b21- -0x244);}const _0x5017dc={'aTmcv':function(_0x5103fe,_0x15e027){return _0x5103fe(_0x15e027);}},_0x491afc=_0x54e190?.[_0xb942a6(-0x144,0x58)+_0x3d00a2(_0x442a64._0xe2fa7,_0x442a64._0x33b61c)]?.[_0x3d00a2(0x630,_0x442a64._0x2f1cb5)]();if(_0x491afc)return _0x5017dc[_0x3d00a2(_0x442a64._0x9a6809,0x7a2)](normalizeExplicitGatewayUrl,_0x491afc);const _0x3136d6=_0x54e190?.[_0x3d00a2(0x8d1,0x7b0)+_0x3d00a2(_0x442a64._0x3602e1,0x5c2)+'l']?.['trim']()||resolveGatewayUrl(),_0x296ea8=detectLanIp();function _0xb942a6(_0x2a9db8,_0x3763ba){return _0x32d8ea(_0x3763ba,_0x2a9db8- -0x772);}if(!_0x296ea8)throw new Error('Failed\x20t'+_0xb942a6(0x63,_0x442a64._0x3d254d)+_0x3d00a2(0x6b3,0x5cb)+_0xb942a6(0x215,0x44b)+_0x3d00a2(0x520,_0x442a64._0x191fdc)+_0xb942a6(0x90,0xfb)+_0x3d00a2(_0x442a64._0x3fbec2,_0x442a64._0x22dba9)+_0xb942a6(0x1af,0x19a)+'stom\x20gat'+_0xb942a6(0x19d,0x311)+'.');return rewriteGatewayHost(_0x3136d6,_0x296ea8);}function normalizeExplicitGatewayUrl(_0x40c1e7){const _0x3dd15e={_0x4d9361:0x81a,_0x6e3728:0x529,_0x1acd5c:0x689,_0x33b20c:0x54a,_0x521dfa:0x5a0};function _0x5d93cc(_0x31b3af,_0x432723){return _0x3a7f13(_0x432723,_0x31b3af-0x3fe);}const _0x29dab7=_0x40c1e7[_0x5d93cc(0xa07,_0x3dd15e._0x4d9361)](),_0x2238fa=/^[a-z]+:\/\//i[_0x260dcc(_0x3dd15e._0x6e3728,_0x3dd15e._0x1acd5c)](_0x29dab7)?_0x29dab7:_0x260dcc(0x70f,_0x3dd15e._0x33b20c)+_0x29dab7;function _0x260dcc(_0x3580e4,_0x1af28f){return _0x3a7f13(_0x1af28f,_0x3580e4-0x176);}return normalizeGatewayQrUrl(_0x2238fa)[_0x260dcc(0x361,_0x3dd15e._0x521dfa)];}function rewriteGatewayHost(_0x25aa5f,_0x5d2ccc){const _0x2ab1d9={_0x18ea12:0x168,_0x580a6c:0x35,_0x41b670:0x195},_0x1e7073={_0xa0f7e5:0x21f},_0x1d1104={'BFWeD':function(_0x54feca,_0xe9a439){return _0x54feca(_0xe9a439);}},_0x3c20ef=_0x25aa5f['trim']();function _0x45dee0(_0x499061,_0xda8383){return _0x3a7f13(_0x499061,_0xda8383- -0x2ae);}function _0x36d8be(_0x4aeaba,_0xb328d5){return _0x3a7f13(_0x4aeaba,_0xb328d5- -_0x1e7073._0xa0f7e5);}const _0xce4181=/^[a-z]+:\/\//i[_0x36d8be(0x370,0x194)](_0x3c20ef)?_0x3c20ef:_0x45dee0(0x342,0x2eb)+_0x3c20ef,_0x13b596=new URL(_0xce4181);return _0x13b596[_0x45dee0(0x41,_0x2ab1d9._0x18ea12)]=_0x5d2ccc,_0x1d1104['BFWeD'](normalizeGatewayQrUrl,_0x13b596[_0x36d8be(-_0x2ab1d9._0x580a6c,0x1cf)]())[_0x45dee0(-_0x2ab1d9._0x41b670,-0xc3)];}function detectLanIp(){const _0x1864cf={_0xddff3d:0x143,_0x101720:0x1fc,_0x46cfbd:0x13,_0x57ab8b:0x314,_0xd704b1:0x416},_0x5c1200={_0x571217:0x2aa},_0x423790={_0x42e371:0xbb},_0x1b5386={};function _0x42fb2e(_0x4f5cad,_0x1ecdd8){return _0x3a7f13(_0x4f5cad,_0x1ecdd8-_0x423790._0x42e371);}_0x1b5386[_0x42804a(0x257,_0x1864cf._0xddff3d)]=function(_0x177279,_0x561c6c){return _0x177279===_0x561c6c;};const _0x4cec3d=_0x1b5386,_0x25b4c9=networkInterfaces();let _0x6c54bc=null;function _0x42804a(_0x1b97dc,_0x5756c0){return _0x3a7f13(_0x5756c0,_0x1b97dc- -_0x5c1200._0x571217);}for(const [_0x599a4b,_0x3c45e5]of Object[_0x42fb2e(_0x1864cf._0x101720,0x2a7)](_0x25b4c9)){for(const _0x10f5ca of _0x3c45e5??[]){if(_0x10f5ca[_0x42fb2e(0x2b3,0x4ff)]!==_0x42fb2e(0x288,0x45c))continue;const _0x52f47b=scoreLanCandidate(_0x599a4b,_0x10f5ca['address']);if(_0x4cec3d[_0x42804a(0x257,_0x1864cf._0x46cfbd)](_0x52f47b,0x0))continue;if(!_0x6c54bc||_0x52f47b>_0x6c54bc[_0x42fb2e(_0x1864cf._0x57ab8b,0x416)]){const _0x23eed8={};_0x23eed8[_0x42fb2e(0x311,_0x1864cf._0xd704b1)]=_0x52f47b,_0x23eed8['ip']=_0x10f5ca['address'],_0x6c54bc=_0x23eed8;}}}return _0x6c54bc?.['ip']??null;}function scoreLanCandidate(_0x138e5c,_0x520e27){const _0x421987={_0x1a3427:0x75b,_0x5aa9d1:0x675,_0x4805a7:0x80a,_0x40be57:0x86a,_0xce22c4:0x724,_0x171c71:0x4e2,_0x856152:0x3df,_0x445225:0x3fa,_0x507885:0x369,_0x13214b:0x6ff,_0x185819:0x5e6,_0x105f7a:0x6c0,_0x408720:0x3fc,_0x27fdb3:0x2be},_0x93b1c1={_0x1ff35b:0x167};function _0x2748f0(_0x14b477,_0x3c5b22){return _0x32d8ea(_0x14b477,_0x3c5b22- -_0x93b1c1._0x1ff35b);}const _0x336b0f={'iTSER':function(_0x31055d,_0x236ac4){return _0x31055d(_0x236ac4);},'dLrOk':function(_0x270b50,_0x3c3e27){return _0x270b50(_0x3c3e27);}};if(!isLanIpv4(_0x520e27))return 0x0;function _0x29bf5e(_0x4f00cf,_0x2e90ac){return _0x32d8ea(_0x2e90ac,_0x4f00cf- -0x36b);}const _0x5dd22e=_0x138e5c[_0x2748f0(0x526,_0x421987._0x1a3427)+'ase']();if(BLOCKED_INTERFACE_TOKENS[_0x29bf5e(_0x421987._0x5aa9d1,_0x421987._0x4805a7)](_0x29edf7=>_0x5dd22e[_0x2748f0(0x4ce,0x6ff)](_0x29edf7)))return 0x0;let _0x5e364b=_0x336b0f['iTSER'](isRfc1918,_0x520e27)?0x78:_0x336b0f[_0x2748f0(_0x421987._0x40be57,0x7f6)](isCgnat,_0x520e27)?0x5a:0x28;return(_0x5dd22e[_0x2748f0(_0x421987._0xce22c4,0x4e2)+'th']('en')||_0x5dd22e[_0x2748f0(0x505,_0x421987._0x171c71)+'th'](_0x29bf5e(0x542,_0x421987._0x856152))||_0x5dd22e[_0x29bf5e(0x2de,0x1d9)+'th'](_0x29bf5e(_0x421987._0x445225,0x1df))||_0x5dd22e[_0x2748f0(_0x421987._0x507885,_0x421987._0x171c71)+'th']('wl')||_0x5dd22e[_0x2748f0(0x54d,_0x421987._0x13214b)](_0x2748f0(_0x421987._0x185819,_0x421987._0x105f7a))||_0x5dd22e['includes'](_0x29bf5e(_0x421987._0x408720,_0x421987._0x27fdb3)))&&(_0x5e364b+=0x14),_0x5e364b;}function resolveLocalPairAuth(_0x1fe2b9){const _0x45914e={_0x4cacab:0x2a2,_0x1454c7:0x112,_0x294b8c:0x161,_0xd92fb3:0x33c,_0x5eeb2e:0x52d,_0x257573:0xe2,_0x114143:0x4eb,_0x1bd981:0x1a,_0x3cda08:0x17d,_0x140308:0x7c1,_0x159a44:0x5d0,_0xbedcbd:0x6f6,_0x5cbd99:0x4be,_0x5d1372:0x6f0,_0x4c3af1:0x62f,_0x2e4774:0x75e,_0x172000:0x30,_0x43f83f:0x76c},_0x3c98ee={_0x5326b5:0x1b8},_0x665b99={_0x1fd113:0x27f},_0x44abd1={};_0x44abd1[_0x3da04e(0x4bd,_0x45914e._0x4cacab)]=_0x3da04e(0x528,0x359);const _0x304347=_0x44abd1;function _0xb411be(_0xd2e451,_0x42c7cb){return _0x3a7f13(_0x42c7cb,_0xd2e451- -_0x665b99._0x1fd113);}if(_0x1fe2b9['gatewayT'+_0xb411be(0x33c,0x196)]?.['trim']())return{'mode':_0xb411be(0x1ea,_0x45914e._0x1454c7),'token':_0x1fe2b9[_0xb411be(0x8f,-_0x45914e._0x294b8c)+_0xb411be(_0x45914e._0xd92fb3,0x481)][_0xb411be(0x38a,0x2aa)](),'password':null};if(_0x1fe2b9[_0x3da04e(_0x45914e._0x5eeb2e,0x590)+_0xb411be(-0x1a,_0x45914e._0x257573)]?.[_0x3da04e(0x7c1,0x93f)]())return{'mode':_0x304347[_0x3da04e(0x4bd,_0x45914e._0x114143)],'token':null,'password':_0x1fe2b9['gatewayP'+_0xb411be(-_0x45914e._0x1bd981,_0x45914e._0x3cda08)][_0x3da04e(_0x45914e._0x140308,_0x45914e._0x159a44)]()};function _0x3da04e(_0x2e864d,_0x26fe2d){return _0x3a7f13(_0x26fe2d,_0x2e864d-_0x3c98ee._0x5326b5);}throw new Error(_0x3da04e(_0x45914e._0xbedcbd,_0x45914e._0x5cbd99)+'\x20gateway'+_0x3da04e(_0x45914e._0x5d1372,0x617)+_0x3da04e(_0x45914e._0x4c3af1,_0x45914e._0x2e4774)+_0xb411be(0x1cd,_0x45914e._0x172000)+_0x3da04e(_0x45914e._0x43f83f,0x979)+'ord).');}function isLanIpv4(_0x31ba62){const _0x194fe7={_0x21e135:0x52e,_0x596308:0x582,_0x591286:0x5b3,_0x583453:0x543,_0x3add00:0x4cf,_0x5b649a:0x373,_0x1f9d6f:0x63a},_0x44031f={_0x45a6ad:0x405},_0x4bb46e={};_0x4bb46e['VwtRX']=function(_0x3de991,_0x381c9){return _0x3de991===_0x381c9;},_0x4bb46e[_0x4a7619(_0x194fe7._0x21e135,0x3b5)]=function(_0x3c6daf,_0xe5af15){return _0x3c6daf>=_0xe5af15;},_0x4bb46e['VTSwK']=function(_0x166547,_0x3fe16a){return _0x166547<=_0x3fe16a;};function _0x4d718f(_0x2af97b,_0x272719){return _0x32d8ea(_0x2af97b,_0x272719- -_0x44031f._0x45a6ad);}_0x4bb46e[_0x4d718f(0x69e,0x4bc)]=function(_0x23a26c,_0x3677c6){return _0x23a26c===_0x3677c6;},_0x4bb46e[_0x4a7619(0x5f5,_0x194fe7._0x596308)]=function(_0x28df5b,_0x407abd){return _0x28df5b===_0x407abd;};const _0x2d0d59=_0x4bb46e;if(!isValidIpv4(_0x31ba62))return![];if(_0x31ba62===_0x4d718f(_0x194fe7._0x591286,0x5ab))return![];const [_0x148f44,_0x358565,_0x460a25,_0x564ea6]=_0x31ba62[_0x4a7619(_0x194fe7._0x583453,0x74b)]('.')['map'](Number);if(_0x2d0d59['VwtRX'](_0x148f44,0x7f))return![];if(_0x148f44===0xa9&&_0x358565===0xfe)return![];if(_0x2d0d59[_0x4d718f(0x1ef,0x3b0)](_0x148f44,0xe0)&&_0x2d0d59[_0x4d718f(_0x194fe7._0x3add00,_0x194fe7._0x5b649a)](_0x148f44,0xef))return![];if(_0x2d0d59[_0x4d718f(0x20b,0x20a)](_0x148f44,0xff)&&_0x2d0d59[_0x4a7619(_0x194fe7._0x1f9d6f,0x653)](_0x358565,0xff)&&_0x460a25===0xff&&_0x2d0d59[_0x4d718f(0x1d7,0x20a)](_0x564ea6,0xff))return![];function _0x4a7619(_0x7f5943,_0x3fb6f8){return _0x32d8ea(_0x3fb6f8,_0x7f5943- -0x287);}if(_0x148f44===0xc6&&(_0x2d0d59[_0x4a7619(0x5f5,0x503)](_0x358565,0x12)||_0x358565===0x13))return![];return isRfc1918(_0x31ba62)||isCgnat(_0x31ba62);}function isRfc1918(_0xe9067){const _0x342813={_0x5b4a93:0x2cb,_0x45fb54:0xa5},_0x143aab={_0x41411a:0x60a},_0x379d24={_0x38a3eb:0x781};function _0x2de6de(_0x933299,_0x1aa417){return _0x32d8ea(_0x933299,_0x1aa417- -_0x379d24._0x38a3eb);}const _0x428f7b={};_0x428f7b[_0xc26a4f(0x417,_0x342813._0x5b4a93)]=function(_0x2d2d4b,_0x4432a0){return _0x2d2d4b<=_0x4432a0;};const _0x3bf160=_0x428f7b,[_0x55f654,_0x52f759]=_0xe9067[_0x2de6de(-_0x342813._0x45fb54,0x49)]('.')[_0xc26a4f(0x299,0x169)](Number);function _0xc26a4f(_0x298345,_0x341224){return _0x32d8ea(_0x298345,_0x341224- -_0x143aab._0x41411a);}return _0x55f654===0xa||_0x55f654===0xac&&_0x52f759>=0x10&&_0x3bf160[_0xc26a4f(0x3ce,_0x342813._0x5b4a93)](_0x52f759,0x1f)||_0x55f654===0xc0&&_0x52f759===0xa8;}function isCgnat(_0x3aa99e){const _0x3b7127={_0x421f7c:0x5d};function _0x58af5f(_0x159a4e,_0xea2064){return _0x32d8ea(_0xea2064,_0x159a4e- -0x51c);}function _0x11fefb(_0x1748a2,_0x2f398c){return _0x32d8ea(_0x1748a2,_0x2f398c- -0x14d);}const [_0x47123e,_0xf9d1ee]=_0x3aa99e[_0x58af5f(0x2ae,0x330)]('.')[_0x58af5f(0x257,_0x3b7127._0x421f7c)](Number);return _0x47123e===0x64&&_0xf9d1ee>=0x40&&_0xf9d1ee<=0x7f;}function isValidIpv4(_0x43cb60){const _0x44344f={_0x39aafa:0x3d7},_0x39b8eb={_0xd23c8a:0x294},_0x36288b={_0x40497e:0x5f},_0x2638cb={'UryMM':function(_0x5cba69,_0x7b6eb6){return _0x5cba69(_0x7b6eb6);}};function _0x3825ad(_0x1b8855,_0x49fdb4){return _0x3a7f13(_0x1b8855,_0x49fdb4- -0x73);}const _0x2ed8e8=_0x43cb60['split']('.');return _0x2ed8e8['length']===0x4&&_0x2ed8e8[_0x3825ad(_0x44344f._0x39aafa,0x380)](_0x4c25fd=>{if(!/^\d+$/['test'](_0x4c25fd))return![];function _0xdff87a(_0x1d32a9,_0x4577ae){return _0x3825ad(_0x4577ae,_0x1d32a9- -_0x36288b._0x40497e);}const _0xb5715c=_0x2638cb[_0xdff87a(_0x39b8eb._0xd23c8a,0x2be)](Number,_0x4c25fd);return _0xb5715c>=0x0&&_0xb5715c<=0xff;});}function _0x2370(_0x637ef,_0x1368cc){_0x637ef=_0x637ef-0x1c3;const _0x4bc50a=_0x472c();let _0x345fc1=_0x4bc50a[_0x637ef];if(_0x2370['ECVRxC']===undefined){var _0x2b7cce=function(_0x1b68c3){const _0x2c5bae='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x75bb2f='',_0x2b085f='',_0x513af7=_0x75bb2f+_0x2b7cce;for(let _0x18f9a6=0x0,_0x2e3a84,_0x3716e5,_0x23c8a5=0x0;_0x3716e5=_0x1b68c3['charAt'](_0x23c8a5++);~_0x3716e5&&(_0x2e3a84=_0x18f9a6%0x4?_0x2e3a84*0x40+_0x3716e5:_0x3716e5,_0x18f9a6++%0x4)?_0x75bb2f+=_0x513af7['charCodeAt'](_0x23c8a5+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x2e3a84>>(-0x2*_0x18f9a6&0x6)):_0x18f9a6:0x0){_0x3716e5=_0x2c5bae['indexOf'](_0x3716e5);}for(let _0x8a4c48=0x0,_0x45c0d2=_0x75bb2f['length'];_0x8a4c48<_0x45c0d2;_0x8a4c48++){_0x2b085f+='%'+('00'+_0x75bb2f['charCodeAt'](_0x8a4c48)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2b085f);};_0x2370['IcvOlM']=_0x2b7cce,_0x2370['dafVvv']={},_0x2370['ECVRxC']=!![];}const _0x472c2c=_0x4bc50a[0x0],_0x23706c=_0x637ef+_0x472c2c,_0x5c3753=_0x2370['dafVvv'][_0x23706c];if(!_0x5c3753){const _0x55fa60=function(_0x44712a){this['TDYVLO']=_0x44712a,this['AjoClQ']=[0x1,0x0,0x0],this['HOTMwY']=function(){return'newState';},this['szpkbe']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['LMHndt']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x55fa60['prototype']['awWmeJ']=function(){const _0x791ef0=new RegExp(this['szpkbe']+this['LMHndt']),_0x1fa53a=_0x791ef0['test'](this['HOTMwY']['toString']())?--this['AjoClQ'][0x1]:--this['AjoClQ'][0x0];return this['zqIAjF'](_0x1fa53a);},_0x55fa60['prototype']['zqIAjF']=function(_0x53ae32){if(!Boolean(~_0x53ae32))return _0x53ae32;return this['uqRGnm'](this['TDYVLO']);},_0x55fa60['prototype']['uqRGnm']=function(_0xbe82c){for(let _0x2d5d28=0x0,_0x477718=this['AjoClQ']['length'];_0x2d5d28<_0x477718;_0x2d5d28++){this['AjoClQ']['push'](Math['round'](Math['random']())),_0x477718=this['AjoClQ']['length'];}return _0xbe82c(this['AjoClQ'][0x0]);},new _0x55fa60(_0x2370)['awWmeJ'](),_0x345fc1=_0x2370['IcvOlM'](_0x345fc1),_0x2370['dafVvv'][_0x23706c]=_0x345fc1;}else _0x345fc1=_0x5c3753;return _0x345fc1;}import{readFileSync as _0x242515}from'fs';function _0x3a7f13(_0x50f014,_0x31f839){const _0x111bc5={_0x2324ed:0x45};return _0x2370(_0x31f839- -_0x111bc5._0x2324ed,_0x50f014);}import{dirname as _0xd755a,resolve}from'path';import{fileURLToPath}from'url';function readCliVersion(){const _0x10d99d={_0x588d67:0x5ac,_0x5b1b00:0x4f1,_0x362ce4:0x4fe,_0xd988d8:0x4d8,_0x45c95b:0x4b7},_0x330f7a={_0x20c3ff:0xd},_0x32e445=_0xd755a(fileURLToPath(import.meta.url)),_0x6a0397=resolve(_0x32e445,'../packa'+_0x5d9873(0x3b6,0x599)),_0x2ab18f=_0x242515(_0x6a0397,_0x5d9873(_0x10d99d._0x588d67,_0x10d99d._0x5b1b00)),_0x4125bd=JSON[_0x5e6559(0x309,_0x10d99d._0x362ce4)](_0x2ab18f);function _0x5e6559(_0x2aec8d,_0x5f2ffa){return _0x3a7f13(_0x5f2ffa,_0x2aec8d- -_0x330f7a._0x20c3ff);}function _0x5d9873(_0x3e23a5,_0x2458cd){return _0x3a7f13(_0x3e23a5,_0x2458cd- -0x41);}return _0x4125bd['version']??_0x5d9873(_0x10d99d._0xd988d8,_0x10d99d._0x45c95b);}function buildPairingJson(_0x1440ff,_0x2d0222,_0x2fecad,_0x30a72a){const _0x3b8daf={_0x2d346d:0x603,_0x44dc34:0x1c1,_0x513bd1:0x66e,_0xe74bd5:0x178,_0x3768d6:0xc,_0x319ed8:0x1f9,_0x38d713:0x50e,_0x2ce7d4:0x48a,_0x2ebc96:0x1bd,_0x14e32d:0x4ca,_0x53a5c2:0x373,_0x5b0e80:0x187,_0x4d1dce:0xa0,_0x1776a4:0xa,_0x3db4fb:0x6ef,_0x38d810:0x2a,_0x129362:0x5f6,_0x3f3b67:0x4e6,_0x571bd6:0x203,_0xb81f3a:0xfa,_0x26838e:0x5f6,_0x30ecff:0x4aa,_0x239f93:0x8c7,_0x2f1f95:0x5f6,_0x74ae7a:0x3f9,_0x49c3c0:0xa1e,_0x3ea0a6:0x5f0,_0x57505b:0x5f0,_0x332c52:0x6d,_0x2afdf8:0x18b,_0x1fffba:0x2bf,_0x43594c:0x4f2,_0x529d20:0x50e,_0x3e7da7:0x58b},_0x284820={_0x4e65ed:0x391},_0x212ad4={_0x2ad2f9:0x2cc},_0x5bc7a3={};_0x5bc7a3[_0x49bb62(_0x3b8daf._0x2d346d,0x710)+'d']=_0x2fecad[_0x3e007c(-0x5a,0xc9)+'d'],_0x5bc7a3[_0x3e007c(-0x186,-_0x3b8daf._0x44dc34)]=_0x2fecad[_0x3e007c(-0x186,-0x1db)];function _0x49bb62(_0x356bcc,_0x550c12){return _0x3a7f13(_0x550c12,_0x356bcc-_0x212ad4._0x2ad2f9);}_0x5bc7a3[_0x49bb62(0x5e1,_0x3b8daf._0x513bd1)]=_0x2fecad['method'],_0x5bc7a3[_0x3e007c(-0xc,_0x3b8daf._0xe74bd5)+'ath']=_0x2fecad[_0x3e007c(-_0x3b8daf._0x3768d6,-_0x3b8daf._0x319ed8)+_0x49bb62(_0x3b8daf._0x38d713,_0x3b8daf._0x2ce7d4)],_0x5bc7a3[_0x49bb62(0x4a0,0x3d3)]=_0x2fecad[_0x3e007c(-_0x3b8daf._0x2ebc96,-0x139)];function _0x3e007c(_0x49c810,_0x4b345f){return _0x3a7f13(_0x4b345f,_0x49c810- -_0x284820._0x4e65ed);}_0x5bc7a3['errorLog'+_0x49bb62(_0x3b8daf._0x14e32d,_0x3b8daf._0x53a5c2)]=_0x2fecad[_0x3e007c(_0x3b8daf._0x5b0e80,0x2d5)+_0x3e007c(-0x193,-0x84)],_0x5bc7a3['pid']=_0x2fecad['pid'];const _0x35ea66={};return _0x35ea66['ok']=!![],_0x35ea66[_0x3e007c(-_0x3b8daf._0x4d1dce,-_0x3b8daf._0x1776a4)]=_0x1440ff[_0x49bb62(0x5bd,_0x3b8daf._0x3db4fb)],_0x35ea66[_0x3e007c(_0x3b8daf._0x38d810,0x191)]=_0x30a72a,_0x35ea66[_0x49bb62(0x741,0x7ab)+'d']=_0x1440ff[_0x49bb62(_0x3b8daf._0x129362,_0x3b8daf._0x3f3b67)]['gatewayI'+'d'],_0x35ea66[_0x3e007c(_0x3b8daf._0x571bd6,_0x3b8daf._0xb81f3a)]=_0x1440ff['config'][_0x49bb62(0x860,0x8e7)],_0x35ea66[_0x49bb62(0x4aa,0x696)+'l']=_0x1440ff[_0x49bb62(_0x3b8daf._0x26838e,0x7e1)][_0x49bb62(_0x3b8daf._0x30ecff,0x311)+'l'],_0x35ea66[_0x49bb62(_0x3b8daf._0x239f93,0x995)+'Id']=_0x1440ff[_0x49bb62(_0x3b8daf._0x2f1f95,_0x3b8daf._0x74ae7a)][_0x49bb62(0x8c7,_0x3b8daf._0x49c3c0)+'Id'],_0x35ea66[_0x49bb62(_0x3b8daf._0x3ea0a6,0x6c3)+'de']=_0x1440ff[_0x49bb62(_0x3b8daf._0x57505b,0x5d7)+'de'],_0x35ea66[_0x3e007c(-_0x3b8daf._0x332c52,_0x3b8daf._0x2afdf8)+_0x3e007c(0x265,0x358)+_0x3e007c(0x11b,_0x3b8daf._0x1fffba)]=_0x1440ff[_0x49bb62(0x5f0,0x3f2)+_0x49bb62(0x8c2,0x6a6)+_0x49bb62(0x778,0x89d)],_0x35ea66[_0x49bb62(0x739,_0x3b8daf._0x43594c)+_0x49bb62(_0x3b8daf._0x529d20,_0x3b8daf._0x3e7da7)]=_0x2d0222,_0x35ea66[_0x49bb62(0x88e,0xa82)]=_0x5bc7a3,_0x35ea66;}function buildLocalPairingJson(_0x6a3bbc){const _0x184882={_0x4a678:0x1b6,_0x3faab5:0x26a,_0x435a4b:0x2f5,_0x486228:0x12e,_0x2c8952:0x14a,_0x3c9586:0x3c3},_0xd3e913={_0x3daef5:0xc6},_0x560286={};_0x560286['ok']=!![],_0x560286[_0x55bce3(_0x184882._0x4a678,0x247)]=_0xb2dfda(_0x184882._0x3faab5,0x389),_0x560286[_0xb2dfda(0x2ad,_0x184882._0x435a4b)]=_0x6a3bbc[_0xb2dfda(0x246,_0x184882._0x435a4b)],_0x560286[_0xb2dfda(0x109,0x196)+'rl']=_0x6a3bbc['gatewayU'+'rl'];function _0xb2dfda(_0x1011f5,_0x35d966){return _0x3a7f13(_0x1011f5,_0x35d966- -_0xd3e913._0x3daef5);}_0x560286[_0xb2dfda(0x339,0x3bf)]=_0x6a3bbc['authMode'];function _0x55bce3(_0x5d289e,_0x26509c){return _0x3a7f13(_0x5d289e,_0x26509c- -0xaa);}return _0x560286[_0xb2dfda(0x312,_0x184882._0x486228)+'t']=_0x6a3bbc[_0x55bce3(0x33f,_0x184882._0x2c8952)+'t'],_0x560286[_0x55bce3(0x418,_0x184882._0x3c9586)+_0x55bce3(0x3b0,0x198)]=_0x6a3bbc[_0x55bce3(0x2b5,0x3c3)+_0xb2dfda(0x3b4,0x17c)],_0x560286;}import{mkdirSync as _0x3e75a8,writeFileSync as _0x5f24f7}from'fs';import{dirname as _0x2104fa,isAbsolute,join as _0x2bdafe,resolve as _0x1546d3}from'path';import _0x3ce7bc from'qrcode';var DEFAULT_QR_DIR=getOpenClawMediaDir();async function writePairingQrPng(_0x16464a,_0x37cc27){const _0x27215d={_0xd6132a:0x1a4,_0x3f3f0c:0x7b};function _0x2ccd06(_0x564e12,_0x1542b3){return _0x3a7f13(_0x564e12,_0x1542b3- -0x2ae);}function _0x4ff1d0(_0x26f118,_0x57ce53){return _0x3a7f13(_0x57ce53,_0x26f118- -0x117);}const _0x4f60aa=resolveQrOutputPath(_0x16464a[_0x4ff1d0(0x213,0xf7)]['gatewayI'+'d'],_0x37cc27);return writeQrPng(_0x16464a[_0x2ccd06(_0x27215d._0xd6132a,_0x27215d._0x3f3f0c)+'d'],_0x4f60aa);}async function writeRawQrPng(_0x341227,_0x3ac7fa,_0x88492d){const _0x3c6f56={_0x26c267:0x5a0};function _0x372f19(_0x453985,_0x40a60e){return _0x32d8ea(_0x40a60e,_0x453985- -0x3b0);}const _0x4b4cbc={'FTiVQ':function(_0x4ef232,_0x55a062,_0x5c60ee){return _0x4ef232(_0x55a062,_0x5c60ee);}},_0xe8dcb8=_0x4b4cbc[_0x372f19(0x354,_0x3c6f56._0x26c267)](resolveQrOutputPath,_0x3ac7fa,_0x88492d);return writeQrPng(_0x341227,_0xe8dcb8);}async function writeQrPng(_0x4d3910,_0x452613){const _0x5f0930={_0x2560db:0x2f9,_0x1918d9:0x2b4,_0x3a27eb:0x661,_0x2d25b6:0x556,_0x5abd27:0x19e};function _0x161f8e(_0x334265,_0x4fb10f){return _0x3a7f13(_0x334265,_0x4fb10f-0x151);}const _0x446ffe={};_0x446ffe[_0x161f8e(0x369,0x2e5)+'e']=!![],_0x3e75a8(_0x2104fa(_0x452613),_0x446ffe);function _0x1e53e6(_0x373eaf,_0x1fa25f){return _0x3a7f13(_0x373eaf,_0x1fa25f-0x104);}const _0x3eddb1={};_0x3eddb1['type']=_0x161f8e(0x4cc,_0x5f0930._0x2560db)+'g',_0x3eddb1[_0x1e53e6(0x8f,_0x5f0930._0x1918d9)+_0x161f8e(0x553,0x496)+'evel']='M',_0x3eddb1[_0x161f8e(_0x5f0930._0x3a27eb,_0x5f0930._0x2d25b6)]=0x1,_0x3eddb1['width']=0x2d0;const _0x527403=await _0x3ce7bc[_0x161f8e(0x732,0x5a6)+'L'](_0x4d3910,_0x3eddb1),_0x38dc5e=_0x527403['replace'](/^data:image\/png;base64,/,'');return _0x5f24f7(_0x452613,Buffer['from'](_0x38dc5e,_0x1e53e6(_0x5f0930._0x5abd27,0x3c6))),_0x452613;}function resolveQrOutputPath(_0x779c06,_0x20fb70){const _0x2d9c10={_0x794f7c:0x571,_0x3e7e0d:0x3e8},_0x48b77c={_0x9138f7:0x1ae},_0x120e21={'Ugule':function(_0x3e4dac,_0x2df285){return _0x3e4dac(_0x2df285);},'Iohpi':function(_0xb51877,_0x5d4533,_0x5cb8ec){return _0xb51877(_0x5d4533,_0x5cb8ec);}},_0x5e4013=_0x20fb70?.[_0x54f84e(0x881,0xab5)]();function _0x54f84e(_0x173144,_0x456129){return _0x32d8ea(_0x456129,_0x173144- -_0x48b77c._0x9138f7);}if(_0x5e4013)return _0x120e21[_0x29efd7(_0x2d9c10._0x794f7c,_0x2d9c10._0x3e7e0d)](isAbsolute,_0x5e4013)?_0x5e4013:_0x1546d3(_0x5e4013);function _0x29efd7(_0x5a4381,_0x31337f){return _0x32d8ea(_0x31337f,_0x5a4381- -0x18b);}return _0x120e21['Iohpi'](_0x2bdafe,DEFAULT_QR_DIR,_0x779c06+'.png');}function decidePairServiceAction(_0x1f96b9,_0x1018a8){const _0x5d6e6b={_0x1be4aa:0x367,_0x144fe8:0x43e,_0x2d3fa1:0x4f9},_0x280e70={};_0x280e70['kynzT']='restart';const _0x233959=_0x280e70;if(!_0x1018a8[_0x213b26(_0x5d6e6b._0x1be4aa,0x3da)+'d'])return _0x54c245(0x2d6,_0x5d6e6b._0x144fe8);function _0x213b26(_0x5c5479,_0x13dc8d){return _0x32d8ea(_0x5c5479,_0x13dc8d- -0x383);}function _0x54c245(_0x41ad44,_0x27114b){return _0x32d8ea(_0x41ad44,_0x27114b- -0x1db);}if(!_0x1018a8['running'])return _0x233959['kynzT'];if(_0x1f96b9[_0x213b26(0x4dd,0x394)]==='register'+'ed')return _0x213b26(_0x5d6e6b._0x2d3fa1,0x3ae);return'noop';}async function main(){const _0x19a62e={_0x1bbf60:0x108,_0x4ccb37:0x52,_0x5ef4c9:0x542,_0x5ba3c0:0xea,_0x440854:0x268,_0x4e839b:0x464,_0x49bc2e:0x4bb,_0xd773a4:0x2f2,_0x2b648e:0x570,_0x1accc7:0x404,_0x493870:0x516,_0x20631c:0x55d,_0x3c97ce:0x22e,_0x41efca:0x1b9,_0x21838a:0x4e1,_0x4c7166:0x4e1,_0x17205b:0x205,_0x5ea1eb:0x152,_0x332f51:0x3f0,_0x308187:0x3cf,_0x2ef7c4:0x35d,_0x1a9d43:0xeb,_0x154c1f:0x318,_0x3b1e9b:0x472,_0x15726b:0x17b,_0x15274d:0x27,_0x1d8c9d:0x45a,_0x4849da:0x342,_0x5c959b:0xfb,_0x3ec8fc:0x38,_0x2add96:0x200,_0x5f3458:0x40c,_0x4d2b51:0x5b,_0xf5ab26:0x1e1,_0x303250:0x2b0,_0x301925:0x3d4,_0x4ccd3f:0x23a,_0x22a165:0x45d,_0x426598:0x22a,_0x31bb0c:0x202,_0x3e3d13:0x437,_0x1e405b:0x591,_0x55e88f:0x396,_0x358bf4:0x366,_0x1b8397:0x31f,_0x51ce40:0x554,_0x18bbb9:0x5a8,_0x364e9c:0x3f0,_0x383638:0x362,_0x976b9a:0x1ec,_0x316aa5:0x2b6,_0x4e89c4:0x614,_0x5a2837:0x457,_0x395973:0x12e,_0x149a6b:0x337,_0x10b15b:0x533,_0x1b16a4:0x2fe,_0x39bfbd:0x219,_0x4d6fc9:0x15,_0x30a78d:0x37,_0x2bfc4d:0x573,_0x4df754:0x32e,_0x107196:0x213,_0x3c38ba:0x3f4,_0x5a7fdf:0x68d,_0x59bdde:0x539,_0x4595ac:0x484,_0x2c398a:0x21f,_0x556514:0x456,_0x5b37b3:0x5a4,_0x2bd0fa:0x322,_0x2954b1:0x237,_0x2ad0db:0x535,_0x5ce4be:0x3cd,_0x413c92:0x34f,_0x40bb13:0x40e,_0x230118:0x403,_0x109e39:0x3d0,_0x275975:0x35d,_0x2f01ae:0x2ca,_0x379582:0x244,_0x118422:0x10c,_0x72a53b:0x321,_0x46c0dc:0x59b,_0x17773a:0x484,_0x1b33b4:0x57a,_0x547f89:0x148,_0x4a7e0a:0x19f,_0x159e17:0x1c3,_0x41d722:0x2bd,_0x495a16:0x787,_0x84cfb0:0x4bf,_0x31821c:0x58e,_0xd594a9:0x1bb,_0x320fc5:0x46f,_0x30a69e:0x7fc,_0x213207:0x304,_0x3e2dbb:0x1ee,_0x592404:0x29f,_0xe2bd70:0x33a,_0x1222f1:0x477,_0x127e24:0x31c,_0x230f05:0x469,_0x3d9189:0x2d6,_0x56d02f:0x13d,_0x2d025a:0x31b,_0x22c310:0x181,_0x593021:0x54f,_0x4a21c3:0x485,_0x260b2f:0x365,_0x194119:0x3fb,_0xff9717:0x307,_0x292114:0x74a,_0x2258e1:0x30f,_0x385a7b:0x186,_0x2dd1a9:0x18d,_0x29db94:0x1ba,_0x789dde:0x247,_0xb90119:0x4d7,_0x2e0efb:0x462,_0x224919:0x3d4,_0x256f86:0x367,_0xf3cf91:0x45b,_0x3ba8cf:0x2f6,_0x40c21b:0x553,_0x5039d7:0x2e0,_0x30b912:0x276,_0x3c58ef:0x604,_0x5afcf6:0x543,_0x560789:0x3e9,_0xdbe6d8:0x28f,_0x462e8b:0x206,_0x1bbe8d:0x342,_0xda5685:0x480,_0x33dcc9:0x175,_0x13c1b3:0x4f3,_0x47cb95:0x21a,_0xe0524:0x56d,_0x52c33a:0x23b,_0x139abd:0x1c2,_0x23808e:0x338,_0x2125b4:0x55d,_0x336247:0x20f,_0x312606:0x20f,_0xb0f34e:0x18a,_0xc34ea:0x428,_0x52fbbf:0x189,_0x34ac71:0x597,_0x712bbf:0x64b,_0x279b1f:0x2e5,_0x5eb76f:0x4a3,_0x45772d:0x39,_0x497537:0x26d,_0x336fc3:0x33e,_0x2f221c:0x275,_0x17fe32:0x5d2,_0x41905b:0x3c8,_0x40f07d:0x331,_0x38d6b9:0x193,_0x5b5c82:0x44e,_0x217e9b:0x62,_0x2ae8d4:0x3e1,_0x2cb598:0x51d,_0x176e9a:0x190,_0x205222:0x4f7,_0x21e16d:0x3aa,_0x4f9793:0x4c4,_0x4edec1:0x26c,_0x5da919:0x1b4,_0x44a660:0x462,_0x4e2717:0x25c},_0x176968={_0x33aa56:0x749,_0x5a13bd:0x8b0,_0xfc8f53:0x372,_0x466d40:0x66c,_0x40c7bc:0x814,_0x1eeaba:0x7e},_0xad1212={_0xd536e3:0x22b},_0x15d8ca={_0x104afd:0x283,_0x3c6d8f:0x51b,_0x2132e6:0x336,_0x3a6ee6:0x64a,_0x55fa44:0x4bb,_0x405e11:0x28a},_0x5570ad={_0x458221:0x66d,_0x102074:0x716,_0x5a6392:0x5f0,_0x129a4d:0x7fd,_0xf02c4d:0x855,_0x11cff1:0x4c5,_0x4e3364:0x6a9,_0x20f565:0x2d7,_0x3cd002:0x752,_0x1c7521:0x825,_0x33ea87:0x6c1,_0x3bff53:0x2f1,_0x40813a:0x4bb,_0x179ef9:0x831,_0x1bb383:0x5ec,_0x5042d2:0x43a,_0x58646b:0x706,_0x4562f6:0x61e,_0x2ca56b:0x518,_0x5e2592:0x611,_0x2bd788:0x4df,_0x2c82b6:0x6a6,_0x37cfd1:0x7f8,_0x58e831:0x7d9},_0x1ba0ef={_0x4edc8d:0xca},_0x2c6833={_0x1ed2ca:0x85d},_0x2d9514={_0x308d79:0x13},_0x4e0c81={'CuKin':_0x468f81(_0x19a62e._0x1bbf60,_0x19a62e._0x4ccb37),'EwYsE':function(_0x5dd4c1,_0x2de0b5){return _0x5dd4c1(_0x2de0b5);},'ZJqhI':_0x276253(0x615,_0x19a62e._0x5ef4c9),'urzHu':function(_0x7c43d,_0x18cd5b,_0x262a2c){return _0x7c43d(_0x18cd5b,_0x262a2c);},'MULjI':function(_0x4a81a0,_0x260c98){return _0x4a81a0 in _0x260c98;},'dexhu':'clawket-'+'local-pa'+'ir','NHmwx':function(_0x530d38,_0x1617ef,_0x4d2cbe){return _0x530d38(_0x1617ef,_0x4d2cbe);},'RsrSm':function(_0x137aaf){return _0x137aaf();},'jjJkn':function(_0x39a19f,_0x315e4f){return _0x39a19f in _0x315e4f;},'rQyFe':_0x468f81(0x19f,_0x19a62e._0x5ba3c0),'otAuB':_0x468f81(_0x19a62e._0x440854,_0x19a62e._0x4e839b)+_0x468f81(_0x19a62e._0x49bc2e,0x3f5)+_0x468f81(_0x19a62e._0xd773a4,0x346)+_0x468f81(0x20e,0x389),'LYSDu':function(_0x1f334e){return _0x1f334e();},'lAtZt':function(_0x594239,_0x2aed93,_0x394cc9){return _0x594239(_0x2aed93,_0x394cc9);},'eLejV':function(_0x3215e8,_0xea2399){return _0x3215e8===_0xea2399;},'wiXeT':function(_0x44b6ce,_0xad3970,_0x374752,_0x3685f6,_0x58cde5){return _0x44b6ce(_0xad3970,_0x374752,_0x3685f6,_0x58cde5);},'NzVSH':function(_0x5ac861,_0x520586){return _0x5ac861(_0x520586);},'HHZac':function(_0x5c4cd6,_0x335370){return _0x5c4cd6===_0x335370;},'IhWXp':_0x276253(0x2db,0x2f8),'ircBp':function(_0x3da46d,_0x3ccfef,_0x1af826){return _0x3da46d(_0x3ccfef,_0x1af826);},'rUdZt':function(_0x1ecc5f,_0x314efb){return _0x1ecc5f(_0x314efb);},'ZpxLi':function(_0x469279,_0x143191,_0x2e8d84){return _0x469279(_0x143191,_0x2e8d84);},'ACxax':function(_0x2f2057,_0x2fb81d){return _0x2f2057(_0x2fb81d);},'MBqEu':function(_0x5566ef){return _0x5566ef();},'nKhjG':function(_0x3c5add,_0x30e94c,_0x4c8db9){return _0x3c5add(_0x30e94c,_0x4c8db9);},'Ltwvk':_0x276253(0x63e,0x4f4)},[,,_0x311c82=_0x468f81(_0x19a62e._0x2b648e,0x612),..._0x53ee04]=process[_0x276253(0x3de,_0x19a62e._0x1accc7)],_0x3a5270=hasFlag(_0x53ee04,'--servic'+'e'),_0x5c7b62=hasFlag(_0x53ee04,_0x276253(_0x19a62e._0x493870,_0x19a62e._0x20631c));if(_0x311c82===_0x468f81(_0x19a62e._0x3c97ce,0x69)){const _0x4083fd=readPairSubcommand(_0x53ee04),_0x48619d=_0x4083fd===_0x276253(0x22d,0x43c)||_0x4e0c81[_0x468f81(0x36e,_0x19a62e._0x41efca)](hasFlag,_0x53ee04,_0x468f81(_0x19a62e._0x21838a,_0x19a62e._0x4c7166));if(_0x48619d){const _0x1cac0e=resolveGatewayAuth();if(_0x4e0c81[_0x276253(0x372,0x18c)](_0x276253(0x33,_0x19a62e._0x17205b),_0x1cac0e))throw new Error(_0x1cac0e[_0x276253(_0x19a62e._0x5ea1eb,_0x19a62e._0x17205b)]);const _0x1b4c29=readFlag(_0x53ee04,'--qr-fil'+'e'),_0x3070ac=buildLocalPairingInfo({'explicitUrl':readFlag(_0x53ee04,'--url'),'gatewayToken':_0x1cac0e[_0x468f81(_0x19a62e._0x332f51,_0x19a62e._0x308187)],'gatewayPassword':_0x1cac0e[_0x276253(0x271,_0x19a62e._0x2ef7c4)]}),_0x47bed1=await writeRawQrPng(_0x3070ac[_0x468f81(0x2b0,0x488)+'d'],_0x4e0c81['dexhu'],_0x1b4c29);if(_0x5c7b62){const _0x1da0b3={};_0x1da0b3[_0x468f81(0x1e3,_0x19a62e._0x1a9d43)+'rl']=_0x3070ac['gatewayU'+'rl'],_0x1da0b3[_0x468f81(0x40c,_0x19a62e._0x154c1f)]=_0x3070ac[_0x276253(0x2fb,_0x19a62e._0x3b1e9b)],_0x1da0b3[_0x468f81(_0x19a62e._0x15726b,0x283)+'t']=_0x3070ac[_0x468f81(0x17b,_0x19a62e._0x15274d)+'t'],_0x1da0b3[_0x276253(0x51e,_0x19a62e._0x1d8c9d)+'ath']=_0x47bed1,_0x1da0b3[_0x468f81(_0x19a62e._0x4849da,_0x19a62e._0x5c959b)]=_0x276253(0x12a,0x1cd)+_0x276253(_0x19a62e._0x3ec8fc,_0x19a62e._0x2add96)+_0x276253(0x6c5,0x55a)+'y\x20pairin'+'g\x20QR.',printJson(buildLocalPairingJson(_0x1da0b3));}else printLocalPairingInfo(_0x3070ac[_0x276253(0x28e,0x249)+'rl'],_0x3070ac[_0x468f81(_0x19a62e._0x5f3458,0x52a)],_0x3070ac[_0x276253(-_0x19a62e._0x4d2b51,_0x19a62e._0xf5ab26)+'t'],_0x3070ac[_0x468f81(_0x19a62e._0x303250,0x224)+'d'],_0x47bed1,_0x4e0c81[_0x276253(0x289,_0x19a62e._0x301925)](readFlag,_0x53ee04,_0x276253(_0x19a62e._0x4ccd3f,0x369)));return;}const _0x5a7d4c=_0x4e0c81['NHmwx'](hasFlag,_0x53ee04,_0x468f81(_0x19a62e._0x22a165,0x47e));!_0x5a7d4c&&await ensurePairPrerequisites();const _0x673f8d=_0x4e0c81['RsrSm'](resolveGatewayAuth);if(_0x4e0c81['jjJkn'](_0x4e0c81['rQyFe'],_0x673f8d))throw new Error(_0x673f8d[_0x276253(0x32,_0x19a62e._0x17205b)]);const _0xbd3e3b=readFlag(_0x53ee04,_0x276253(_0x19a62e._0x426598,_0x19a62e._0x31bb0c))??_0x4e0c81['NHmwx'](readFlag,_0x53ee04,'-s')??_0x4e0c81['otAuB'],_0x202b73=readFlag(_0x53ee04,_0x276253(_0x19a62e._0x3e3d13,_0x19a62e._0x1e405b))??readFlag(_0x53ee04,'-n')??getDefaultBridgeDisplayName(),_0x2a0654=readFlag(_0x53ee04,_0x276253(_0x19a62e._0x55e88f,0x29f)+'e'),_0x19b701={};_0x19b701['serverUr'+'l']=_0xbd3e3b,_0x19b701[_0x276253(_0x19a62e._0x358bf4,_0x19a62e._0x1b8397)+_0x276253(0x309,_0x19a62e._0x51ce40)]=_0x202b73,_0x19b701[_0x468f81(0x295,0x376)+_0x276253(0x470,_0x19a62e._0x18bbb9)]=_0x673f8d[_0x468f81(_0x19a62e._0x364e9c,0x519)],_0x19b701[_0x276253(0x397,_0x19a62e._0x383638)+_0x468f81(_0x19a62e._0x976b9a,0x55)]=_0x673f8d[_0x276253(_0x19a62e._0x316aa5,_0x19a62e._0x2ef7c4)];const _0x2b6ae4=await _0x4e0c81[_0x276253(_0x19a62e._0x4e89c4,_0x19a62e._0x5a2837)](pairGateway,_0x19b701),_0x320531=await _0x4e0c81[_0x468f81(0x148,_0x19a62e._0x395973)](writePairingQrPng,_0x2b6ae4,_0x2a0654),_0x5f226c=_0x4e0c81['LYSDu'](getServiceStatus),_0x33bd92=decidePairServiceAction(_0x2b6ae4,_0x5f226c);if(_0x33bd92===_0x276253(0x217,_0x19a62e._0x149a6b)){_0x5c7b62?printJson(buildPairingJson(_0x2b6ae4,_0x320531,_0x5f226c,'Backgrou'+_0x468f81(_0x19a62e._0x10b15b,_0x19a62e._0x1b16a4)+_0x276253(0x345,0x49a)+'dy\x20runni'+_0x276253(0x2f8,0x539)+_0x468f81(_0x19a62e._0x39bfbd,_0x19a62e._0x4d6fc9)+'ed.')):(_0x4e0c81[_0x468f81(0x19d,-_0x19a62e._0x30a78d)](printPairingInfo,_0x2b6ae4,_0x320531),console['log'](_0x468f81(_0x19a62e._0x2bfc4d,_0x19a62e._0x4df754)+'nd\x20servi'+_0x276253(0x507,0x49a)+_0x468f81(_0x19a62e._0x107196,_0x19a62e._0x3c38ba)+_0x276253(_0x19a62e._0x5a7fdf,_0x19a62e._0x59bdde)+'\x20unchang'+_0x276253(0x3a8,0x25a)),printServiceResult(null,_0x5f226c));return;}try{const _0x57de99=_0x33bd92==='install'?installService():_0x4e0c81[_0x468f81(0x463,_0x19a62e._0x4595ac)](restartService),_0x18fe82=_0x33bd92==='install'?_0x468f81(_0x19a62e._0x2c398a,0x202)+_0x468f81(0x211,_0x19a62e._0x556514)+_0x276253(0x356,_0x19a62e._0x5b37b3)+_0x468f81(_0x19a62e._0x2bd0fa,0xe4)+'e.':_0x4e0c81['eLejV'](_0x2b6ae4[_0x468f81(0x278,_0x19a62e._0x2954b1)],_0x276253(_0x19a62e._0x2ad0db,0x418)+'ed')?_0x276253(_0x19a62e._0x5ce4be,_0x19a62e._0x413c92)+'dentity\x20'+_0x276253(_0x19a62e._0x40bb13,0x5d7)+'\x20Restart'+_0x276253(_0x19a62e._0x316aa5,0x3fc)+_0x276253(0x77e,0x5d5)+_0x468f81(_0x19a62e._0x230118,0x651)+'\x20load\x20th'+'e\x20new\x20pa'+_0x276253(0x34d,_0x19a62e._0x109e39):'Backgrou'+'nd\x20servi'+_0x468f81(_0x19a62e._0x275975,0x22d)+_0x468f81(_0x19a62e._0x2f01ae,0x320)+_0x276253(_0x19a62e._0x379582,0x452)+_0x276253(_0x19a62e._0x118422,_0x19a62e._0x72a53b)+_0x468f81(0x291,0x1f5)+_0x468f81(_0x19a62e._0x46c0dc,_0x19a62e._0x17773a);_0x5c7b62?printJson(_0x4e0c81[_0x276253(0x418,_0x19a62e._0x1b33b4)](buildPairingJson,_0x2b6ae4,_0x320531,_0x57de99,_0x18fe82)):(printPairingInfo(_0x2b6ae4,_0x320531),_0x4e0c81[_0x468f81(_0x19a62e._0x547f89,0xe5)](printServiceResult,_0x18fe82,_0x57de99));}catch(_0x1adf19){console[_0x468f81(_0x19a62e._0x4a7e0a,-0x1)](_0x276253(0x31f,0x382)+_0x468f81(_0x19a62e._0x159e17,_0x19a62e._0x41d722)+'d,\x20but\x20s'+_0x468f81(0x55c,_0x19a62e._0x495a16)+'ctivatio'+_0x276253(_0x19a62e._0x84cfb0,_0x19a62e._0x31821c)+':\x20'+formatError(_0x1adf19)),console[_0x468f81(_0x19a62e._0x4a7e0a,_0x19a62e._0xd594a9)](_0x276253(0x4cf,0x490)+_0x276253(_0x19a62e._0x320fc5,0x4e0)+_0x276253(_0x19a62e._0x30a69e,0x5b2)+'et\x20insta'+'ll\x22\x20or\x20\x22'+_0x276253(0x4e0,0x3b9)+_0x276253(0x9,0x1a9)+_0x468f81(_0x19a62e._0x213207,_0x19a62e._0x3e2dbb)),process[_0x468f81(0x588,0x409)]=0x1;}return;}if(_0x311c82==='refresh-'+'code'){const _0x2f918a=readFlag(_0x53ee04,_0x276253(0x1dc,_0x19a62e._0x592404)+'e'),_0x5bc22b=resolveGatewayAuth();if(_0x468f81(0x19f,-0x46)in _0x5bc22b)throw new Error(_0x5bc22b['error']);const _0x5ce2de={};_0x5ce2de[_0x276253(_0x19a62e._0xe2bd70,0x2fb)+_0x276253(0x437,0x5a8)]=_0x5bc22b['token'],_0x5ce2de['gatewayP'+'assword']=_0x5bc22b[_0x276253(_0x19a62e._0x1222f1,0x35d)];const _0x9948c1=await refreshAccessCode(_0x5ce2de),_0x54d0e3=await writePairingQrPng(_0x9948c1,_0x2f918a);_0x5c7b62?_0x4e0c81[_0x276253(0x31b,0x2f3)](printJson,buildPairingJson(_0x9948c1,_0x54d0e3,getServiceStatus(),_0x468f81(_0x19a62e._0x127e24,0x549)+_0x276253(0x3e5,0x46f)+_0x276253(_0x19a62e._0x230f05,_0x19a62e._0x3d9189))):printPairingInfo(_0x9948c1,_0x54d0e3);return;}if(_0x4e0c81[_0x468f81(_0x19a62e._0x56d02f,_0x19a62e._0x2d025a)](_0x311c82,_0x276253(_0x19a62e._0x22c310,0x1e0))||_0x311c82===_0x468f81(_0x19a62e._0x593021,0x380)){const _0x94a45e=requirePairingConfig(),_0x157539=installService();console['log'](_0x276253(_0x19a62e._0x4a21c3,0x3ac)+_0x468f81(0x1e1,0x196)+_0x276253(0x651,0x4d7)+_0x276253(_0x19a62e._0x260b2f,0x39f)+_0x468f81(_0x19a62e._0x194119,_0x19a62e._0xff9717)+'\x20'+_0x94a45e[_0x468f81(0x3fc,0x25c)+'d']+'.'),printServiceResult(null,_0x157539);return;}if(_0x4e0c81[_0x276253(_0x19a62e._0x292114,0x516)](_0x311c82,_0x4e0c81[_0x276253(0x187,_0x19a62e._0x2258e1)])){const _0x1a097a=requirePairingConfig(),_0x3344fe=restartService();console[_0x468f81(0x20f,0x1bc)](_0x468f81(_0x19a62e._0x385a7b,_0x19a62e._0x2dd1a9)+_0x276253(_0x19a62e._0x29db94,_0x19a62e._0x789dde)+_0x276253(0x6da,_0x19a62e._0xb90119)+'vice\x20for'+'\x20gateway'+'\x20'+_0x1a097a[_0x276253(0x41f,_0x19a62e._0x2e0efb)+'d']+'.'),_0x4e0c81[_0x276253(0x3f8,_0x19a62e._0x224919)](printServiceResult,null,_0x3344fe);return;}if(_0x311c82===_0x276253(_0x19a62e._0x256f86,0x4a7)){const _0x4364c4=_0x4e0c81[_0x276253(_0x19a62e._0xf3cf91,0x4c9)](stopService);console[_0x468f81(0x20f,_0x19a62e._0x3ba8cf)](_0x276253(0x179,0x354)+'backgrou'+_0x468f81(0x533,0x4de)+_0x276253(0x257,0x20c)),_0x4e0c81[_0x276253(_0x19a62e._0x40c21b,_0x19a62e._0x224919)](printServiceResult,null,_0x4364c4);return;}if(_0x311c82==='uninstal'+'l'){const _0x157de9=uninstallService();console[_0x276253(0x1c7,0x275)](_0x468f81(0x1f5,0x3a0)+_0x276253(_0x19a62e._0x5039d7,_0x19a62e._0x30b912)+_0x468f81(0x533,0x636)+_0x468f81(0x523,_0x19a62e._0x3c58ef)+_0x468f81(0x545,0x4d0)),_0x4e0c81[_0x276253(0x3d3,0x2a3)](printServiceResult,null,_0x157de9);return;}if(_0x311c82===_0x276253(_0x19a62e._0x5afcf6,0x3f3)){stopService(),_0x4e0c81[_0x468f81(0x1b1,0x343)](deletePairingConfig),console[_0x276253(0x31b,0x275)](_0x276253(_0x19a62e._0x560789,_0x19a62e._0xdbe6d8)+_0x468f81(0x180,_0x19a62e._0x462e8b)+_0x468f81(0x550,0x3fe)+getPairingConfigPath());return;}if(_0x311c82===_0x468f81(0x424,0x47c)){printStatus();return;}function _0x276253(_0x190279,_0x2cfa0d){return _0x3a7f13(_0x190279,_0x2cfa0d- -_0x2d9514._0x308d79);}if(_0x4e0c81[_0x276253(_0x19a62e._0x39bfbd,0x1a3)](_0x311c82,'logs')){const _0x14a761=Number(readFlag(_0x53ee04,_0x468f81(0x15c,_0x19a62e._0x1bbe8d))??_0x468f81(_0x19a62e._0xda5685,0x446)),_0x520e2d=_0x4e0c81[_0x276253(_0x19a62e._0x33dcc9,0x272)](parseLookbackToMs,_0x4e0c81[_0x468f81(0x19d,0x3c9)](readFlag,_0x53ee04,_0x276253(_0x19a62e._0x13c1b3,0x548))??_0x4e0c81[_0x276253(_0x19a62e._0x47cb95,0x2b1)](readFlag,_0x53ee04,'-l')),_0x479e1c=_0x4e0c81[_0x468f81(_0x19a62e._0xe0524,0x458)](readRecentCliLogs,{'lines':_0x14a761,'lastMs':_0x520e2d,'includeErrorLog':hasFlag(_0x53ee04,_0x468f81(_0x19a62e._0x52c33a,_0x19a62e._0x139abd))});if(_0x5c7b62){const _0x1bb1af={};_0x1bb1af['ok']=!![],_0x1bb1af[_0x276253(0x7dc,0x5f7)]=_0x479e1c,printJson(_0x1bb1af);}else _0x479e1c[_0x468f81(_0x19a62e._0x23808e,0x4cd)]===0x0?console['log'](_0x468f81(_0x19a62e._0x2125b4,0x5b4)+_0x276253(0x760,0x5ef)+_0x276253(0x5da,0x57b)+_0x276253(0x332,_0x19a62e._0x336247)):console[_0x468f81(_0x19a62e._0x312606,_0x19a62e._0xb0f34e)](_0x479e1c['join']('\x0a'));return;}if(_0x311c82===_0x276253(0x11b,0x305)){const _0x7f3161=await _0x4e0c81[_0x276253(0x2c4,_0x19a62e._0xc34ea)](buildDoctorReport);_0x5c7b62?printJson(_0x7f3161):printDoctorReport(_0x7f3161);return;}if(_0x4e0c81['HHZac'](_0x311c82,_0x276253(_0x19a62e._0x52fbbf,0x192))){const _0x9bf94e=requirePairingConfig(),_0x5cb57b=resolveGatewayUrl(readFlag(_0x53ee04,_0x276253(0x3ce,0x528)+_0x468f81(_0x19a62e._0x34ac71,_0x19a62e._0x712bbf))??_0x4e0c81[_0x468f81(0x376,_0x19a62e._0x279b1f)](readFlag,_0x53ee04,'-g')),_0x312bfd=_0x3d6aaa=>{function _0x2dc090(_0x3f69a0,_0x23664f){return _0x468f81(_0x23664f-0x2e9,_0x3f69a0);}console['log']('['+Date[_0x2dc090(_0x2c6833._0x1ed2ca,0x860)]()+']\x20'+_0x3d6aaa);};!_0x3a5270?(console['log'](_0x276253(0x23f,0x1b4)+'ID:\x20'+_0x9bf94e['gatewayI'+'d']),console['log'](_0x276253(0x50a,_0x19a62e._0x5eb76f)+'\x20ID:\x20'+_0x9bf94e[_0x276253(0x434,0x5e8)+'Id']),console[_0x468f81(0x20f,_0x19a62e._0x45772d)](_0x276253(0x3c4,0x1b4)+_0x468f81(_0x19a62e._0x497537,_0x19a62e._0x336fc3)+_0x5cb57b),console[_0x276253(0x158,_0x19a62e._0x2f221c)](''),console['log'](_0x276253(0x819,_0x19a62e._0x17fe32)+_0x276253(_0x19a62e._0x41905b,0x1a1)+'runtime.'+_0x468f81(0x2c3,_0x19a62e._0x40f07d)+_0x276253(0x1e,_0x19a62e._0x38d6b9)+_0x468f81(_0x19a62e._0x5b5c82,0x2d0)),console[_0x276253(_0x19a62e._0x217e9b,0x275)]('')):_0x4e0c81[_0x468f81(_0x19a62e._0xe0524,_0x19a62e._0x2ae8d4)](_0x312bfd,_0x276253(_0x19a62e._0x2cb598,0x5d2)+_0x468f81(_0x19a62e._0x176e9a,0x45)+'\x20service'+_0x276253(_0x19a62e._0x205222,0x50b)+_0x468f81(_0x19a62e._0x21e16d,_0x19a62e._0x4f9793)+_0x468f81(_0x19a62e._0x4edec1,_0x19a62e._0x5da919)+_0x9bf94e[_0x276253(0x294,_0x19a62e._0x44a660)+'d']);_0x3a5270&&writeServiceState();const _0x15bb0e=new BridgeRuntime({'config':_0x9bf94e,'gatewayUrl':_0x5cb57b,'onLog':_0x2d24dc=>{function _0x34ed33(_0x1cf949,_0xb6fd98){return _0x276253(_0xb6fd98,_0x1cf949- -0x73);}_0x312bfd(_0x34ed33(0x31a,0x45b)+']\x20'+_0x2d24dc);},'onStatus':_0x6061bb=>{function _0x4f1023(_0x4d5b20,_0x259ed4){return _0x468f81(_0x259ed4-0x30b,_0x4d5b20);}function _0x5f2004(_0x47fd6d,_0xcbe9b1){return _0x468f81(_0x47fd6d-_0x1ba0ef._0x4edc8d,_0xcbe9b1);}if(_0x6061bb[_0x4f1023(_0x5570ad._0x458221,_0x5570ad._0x102074)+'r']){_0x312bfd(_0x5f2004(_0x5570ad._0x5a6392,_0x5570ad._0x129a4d)+'\x20relay='+(_0x6061bb[_0x4f1023(0x693,0x82d)+_0x4f1023(0x6a8,_0x5570ad._0xf02c4d)]?'up':_0x4e0c81[_0x5f2004(0x2e0,0x3bb)])+(_0x5f2004(_0x5570ad._0x11cff1,_0x5570ad._0x4e3364)+'=')+(_0x6061bb[_0x5f2004(_0x5570ad._0x20f565,0x12f)+_0x5f2004(0x29e,0x244)]?'up':'down')+(_0x4f1023(_0x5570ad._0x3cd002,0x6a6)+'=')+_0x6061bb[_0x4f1023(0x6d1,_0x5570ad._0x1c7521)+_0x4f1023(0x5c1,_0x5570ad._0x33ea87)]+_0x5f2004(0x363,_0x5570ad._0x3bff53)+_0x6061bb[_0x4f1023(0x8f8,_0x5570ad._0x102074)+'r']);return;}_0x4e0c81[_0x5f2004(_0x5570ad._0x40813a,0x2a2)](_0x312bfd,_0x4f1023(0x861,_0x5570ad._0x179ef9)+_0x4f1023(0x800,0x853)+(_0x6061bb[_0x5f2004(_0x5570ad._0x1bb383,_0x5570ad._0x5042d2)+_0x4f1023(0x8c8,_0x5570ad._0xf02c4d)]?'up':_0x5f2004(0x1d2,0x2c3))+(_0x4f1023(0x509,_0x5570ad._0x58646b)+'=')+(_0x6061bb[_0x4f1023(_0x5570ad._0x4562f6,_0x5570ad._0x2ca56b)+_0x4f1023(_0x5570ad._0x5e2592,_0x5570ad._0x2bd788)]?'up':_0x4e0c81[_0x5f2004(0x2e0,0x408)])+(_0x4f1023(0x6c2,_0x5570ad._0x2c82b6)+'=')+_0x6061bb[_0x5f2004(0x5e4,_0x5570ad._0x37cfd1)+_0x4f1023(_0x5570ad._0x58e831,_0x5570ad._0x33ea87)]);},'onPendingPairRequest':_0x50487e=>{const _0x4d3470={_0xdc7b48:0x2fb};function _0x49ab27(_0x4cfda9,_0x4742e1){return _0x468f81(_0x4cfda9-0xd,_0x4742e1);}function _0x4ffbdf(_0x2e4dbe,_0x5b670b){return _0x468f81(_0x2e4dbe-_0x4d3470._0xdc7b48,_0x5b670b);}_0x312bfd('[pair-re'+'quest]\x20r'+'equestId'+'='+_0x50487e[_0x4ffbdf(0x77e,0x6b6)+'d']+('\x20deviceI'+'d=')+(_0x50487e['deviceId']||_0x4ffbdf(0x4bb,_0x15d8ca._0x104afd)+'>')+_0x49ab27(_0x15d8ca._0x3c6d8f,_0x15d8ca._0x2132e6)+(_0x50487e['displayN'+_0x49ab27(0x4fb,_0x15d8ca._0x3a6ee6)]??_0x4ffbdf(_0x15d8ca._0x55fa44,_0x15d8ca._0x405e11)+'>'));}});_0x15bb0e[_0x468f81(_0x19a62e._0x593021,0x688)]();const _0x38cbe3=async()=>{process[_0x51e330(_0x176968._0x33aa56,_0x176968._0x5a13bd)](_0x51e330(0x6b9,0x8ac),_0x38cbe3),process['off'](_0x4e0c81[_0x51e330(0x4c2,_0x176968._0xfc8f53)],_0x38cbe3);function _0xe0703d(_0x186605,_0x1dbfcd){return _0x468f81(_0x186605- -0x324,_0x1dbfcd);}await _0x15bb0e[_0x51e330(_0x176968._0x466d40,_0x176968._0x40c7bc)]();function _0x51e330(_0x204633,_0x1c0ffb){return _0x468f81(_0x204633-_0xad1212._0xd536e3,_0x1c0ffb);}_0x3a5270&&clearServiceState(process[_0xe0703d(-_0x176968._0x1eeaba,-0xe1)]),process['exit'](0x0);};process['on'](_0x4e0c81[_0x276253(0x1e7,_0x19a62e._0x4e2717)],_0x38cbe3),process['on'](_0x4e0c81[_0x276253(0x4bf,0x2fd)],_0x38cbe3),await new Promise(()=>{});}function _0x468f81(_0x518bb1,_0x2e18c3){return _0x3a7f13(_0x2e18c3,_0x518bb1- -0x79);}printHelp();}function printPairingInfo(_0x481627,_0x503ba5){const _0x378275={_0x3852bc:0x89c,_0x4389ef:0x66b,_0x1a0cfa:0xee,_0xf06f10:0x8a,_0x327846:0xd9,_0x2acea:0x7d3,_0x38fc8c:0x6d9,_0x327380:0x534,_0x1c639f:0x23,_0x3133cb:0x7e2,_0x3f2b45:0x9fe,_0x1492e5:0x5f5,_0x4d1652:0x16c,_0x344192:0x9e,_0x241f18:0x8b6,_0x2811db:0x164,_0x5e1b77:0xca,_0x592c06:0x156,_0x198c6a:0x51d,_0x2576c9:0x4cf,_0x53cdd2:0xbb,_0x391ce4:0x2ef,_0x177ef6:0x316,_0x166613:0x7f,_0x21697a:0x21d,_0x26c1d8:0x39c},_0x24a475={_0x11621d:0x72d},_0x3ab1a0={_0x780d7b:0xb9},_0x493b66={'VGIPF':_0x540bb7(0xe3,0x107)+'lready\x20p'+_0x540bb7(0x218,0x321)+_0x5a58dc(_0x378275._0x3852bc,_0x378275._0x4389ef)+_0x540bb7(0x26e,0x439)+'ring\x20cod'+'e.','SqvZx':function(_0x2d423c,_0x3dd053){return _0x2d423c(_0x3dd053);}};_0x481627[_0x540bb7(-0x16,-_0x378275._0x1a0cfa)]===_0x540bb7(_0x378275._0xf06f10,_0x378275._0x327846)+'d'&&console[_0x540bb7(-0x7f,0x1e)](_0x493b66[_0x5a58dc(0x787,_0x378275._0x2acea)]);console[_0x5a58dc(0x5f5,_0x378275._0x38fc8c)](_0x5a58dc(_0x378275._0x327380,0x3fc)+'ID:\x20'+_0x481627[_0x540bb7(_0x378275._0x1c639f,-0x75)][_0x5a58dc(_0x378275._0x3133cb,_0x378275._0x3f2b45)+'d']),console[_0x5a58dc(_0x378275._0x1492e5,0x67c)](_0x540bb7(_0x378275._0x4d1652,-_0x378275._0x344192)+_0x540bb7(-0xcd,-0x30d)+_0x5a58dc(0x903,_0x378275._0x241f18)+_0x540bb7(0x90,-_0x378275._0x2811db)+'t\x20app:\x0a');const _0x4bf770={};_0x4bf770[_0x540bb7(-0xe2,-_0x378275._0x5e1b77)]=!![];function _0x5a58dc(_0x5c614a,_0x4ad84d){return _0x32d8ea(_0x4ad84d,_0x5c614a- -_0x3ab1a0._0x780d7b);}_0x5b54b5[_0x540bb7(0x39,_0x378275._0x592c06)](_0x481627[_0x540bb7(0x22,-0x1d3)+'d'],_0x4bf770),console[_0x5a58dc(_0x378275._0x1492e5,_0x378275._0x198c6a)](_0x540bb7(0x2f5,_0x378275._0x2576c9)+'\x20'+_0x493b66[_0x540bb7(0x49,_0x378275._0x53cdd2)](formatLocalTime,_0x481627[_0x540bb7(0x1d,-0x1b6)+_0x540bb7(_0x378275._0x391ce4,_0x378275._0x177ef6)+'sAt']));function _0x540bb7(_0x223d1a,_0x447c6b){return _0x32d8ea(_0x447c6b,_0x223d1a- -_0x24a475._0x11621d);}console[_0x540bb7(-_0x378275._0x166613,-_0x378275._0x21697a)](_0x5a58dc(0x55c,_0x378275._0x26c1d8)+':\x20'+_0x503ba5);}function printLocalPairingInfo(_0x2edf63,_0x1aeaf3,_0x59bc6d,_0x104fe8,_0x1de7c5,_0x4581b4){const _0x6481dc={_0x450372:0x57a,_0x552df8:0x6fc,_0x1d2e32:0x7fe,_0x35c297:0x917,_0x1f9a3d:0x62e,_0x28ac97:0x5a3,_0x1abe07:0x4e0,_0x1d6f9d:0x2c8,_0x1bde23:0x50a,_0x4ee3cb:0x5db,_0x1481b0:0x706,_0x2faf6f:0x3f9,_0x91bdf2:0x4a8,_0x477426:0x713,_0x496966:0x603,_0x1b32c0:0x56e,_0xef19df:0x689,_0x1a7c45:0x664,_0x216a67:0x470,_0x4f6230:0x5d0,_0x195f4e:0x5c2,_0x5c0cbe:0x56f,_0x56bdc4:0x36b,_0xc62ed2:0x615,_0xb660b9:0x487,_0x530500:0x7e1,_0x102d75:0x78c},_0x1e9e1d={_0x4876df:0x285},_0x270255=(_0x5923dd(0x3ff,_0x6481dc._0x450372)+_0x5923dd(_0x6481dc._0x552df8,0x64a))['split']('|');function _0x5923dd(_0x3013d4,_0x37210e){return _0x32d8ea(_0x3013d4,_0x37210e- -0x10b);}function _0x1ebb60(_0x544610,_0x411b78){return _0x32d8ea(_0x411b78,_0x544610- -_0x1e9e1d._0x4876df);}let _0x2df215=0x0;while(!![]){switch(_0x270255[_0x2df215++]){case'0':console['log'](_0x5923dd(_0x6481dc._0x1d2e32,_0x6481dc._0x35c297)+'\x20'+new Date(_0x59bc6d)['toLocale'+_0x5923dd(0x823,0x887)]());continue;case'1':const _0x2a7ffb={};_0x2a7ffb['small']=!![],_0x5b54b5['generate'](_0x104fe8,_0x2a7ffb);continue;case'2':console[_0x5923dd(_0x6481dc._0x1f9a3d,_0x6481dc._0x28ac97)](_0x1ebb60(0x368,0x26f)+_0x5923dd(_0x6481dc._0x1abe07,0x601)+_0x2edf63);continue;case'3':console[_0x1ebb60(0x429,0x308)](_0x5923dd(_0x6481dc._0x1d6f9d,_0x6481dc._0x1bde23)+':\x20'+_0x1de7c5);continue;case'4':console['log'](_0x1ebb60(_0x6481dc._0x4ee3cb,_0x6481dc._0x1481b0)+_0x1ebb60(0x3bf,_0x6481dc._0x2faf6f)+_0x1aeaf3);continue;case'5':console[_0x1ebb60(0x429,_0x6481dc._0x91bdf2)](_0x4581b4?_0x5923dd(_0x6481dc._0x477426,0x78e)+_0x1ebb60(_0x6481dc._0x496966,_0x6481dc._0x1b32c0)+_0x1ebb60(_0x6481dc._0xef19df,_0x6481dc._0x1a7c45)+_0x5923dd(_0x6481dc._0x216a67,_0x6481dc._0x4f6230)+_0x5923dd(_0x6481dc._0x195f4e,0x512)+_0x1ebb60(_0x6481dc._0x5c0cbe,0x556)+'\x0a':_0x1ebb60(0x614,0x7a9)+_0x5923dd(_0x6481dc._0x56bdc4,0x534)+_0x1ebb60(_0x6481dc._0xc62ed2,_0x6481dc._0xb660b9)+'\x20QR\x20in\x20t'+_0x5923dd(0x9d3,_0x6481dc._0x530500)+_0x1ebb60(0x753,_0x6481dc._0x102d75));continue;}break;}}function printStatus(){const _0x1f6930={_0x1612c1:0x6f3,_0x4fcf9e:0x5c4,_0x16287b:0x39b,_0x2c6fcd:0x7ec,_0x591971:0x608,_0x1be6ef:0x8e4,_0x122296:0x20c,_0x488388:0x2c2,_0x51cddc:0x1f0,_0x44fc00:0x937,_0x1794c6:0x20c,_0x1bd193:0x217,_0x546f1f:0x591,_0x3607f7:0x404,_0x4537e8:0x66e,_0x3fb0b7:0x4eb,_0x264fc0:0x58c,_0xfdafaf:0x5cb,_0x6db325:0xf0,_0xcef3a6:0x447,_0x4d27a0:0x656,_0x2d6d38:0x1fe,_0x3cd1a0:0x878,_0x11688c:0x18f,_0x38aa4b:0x513,_0x4a9a6d:0x20c,_0x4a012c:0x7db,_0x496665:0x6c1,_0x41f3a8:0x70f,_0xfb6012:0x405,_0x360845:0x3ac,_0x56867a:0x4db,_0x334e43:0x500},_0x24dd5a={_0x5b1fda:0x4a2},_0xf802={_0x4937a5:0xea},_0x3f6bc1={'Vwwqn':function(_0x427e7f){return _0x427e7f();},'bhrsk':function(_0x3ec992){return _0x3ec992();}};function _0x20c2dc(_0x25f4be,_0x175b44){return _0x32d8ea(_0x175b44,_0x25f4be- -_0xf802._0x4937a5);}const _0x37e924=readPairingConfig(),_0x1ba7e3=getServiceStatus(),{logPath:_0x1d4d06,errorLogPath:_0x4dd5ec}=_0x3f6bc1['Vwwqn'](getServicePaths),_0x55669e=_0x3f6bc1['bhrsk'](readCliVersion);console['log'](_0x20c2dc(_0x1f6930._0x1612c1,0x59e)+'\x20'+_0x55669e);function _0x1da90e(_0x1e63b3,_0x306926){return _0x32d8ea(_0x306926,_0x1e63b3- -_0x24dd5a._0x5b1fda);}!_0x37e924?console[_0x1da90e(0x20c,0x93)]('Config:\x20'+_0x1da90e(0x428,0x3b6)+'ed\x20('+getPairingConfigPath()+')'):(console[_0x20c2dc(_0x1f6930._0x4fcf9e,0x409)]('Config:\x20'+_0x1da90e(0x181,_0x1f6930._0x16287b)),console[_0x20c2dc(0x5c4,_0x1f6930._0x2c6fcd)]('Gateway\x20'+_0x20c2dc(_0x1f6930._0x591971,0x42e)+_0x37e924[_0x20c2dc(0x7b1,_0x1f6930._0x1be6ef)+'d']),console[_0x1da90e(_0x1f6930._0x122296,_0x1f6930._0x488388)](_0x1da90e(0x43a,_0x1f6930._0x51cddc)+':\x20'+_0x37e924[_0x20c2dc(_0x1f6930._0x44fc00,0x7d6)+'Id']),console[_0x1da90e(_0x1f6930._0x1794c6,_0x1f6930._0x1bd193)](_0x20c2dc(0x746,_0x1f6930._0x546f1f)+_0x1da90e(0x124,0x8d)+_0x37e924['serverUr'+'l']),console[_0x1da90e(0x20c,0x8d)](_0x1da90e(0x45f,_0x1f6930._0x3607f7)+(_0x37e924[_0x20c2dc(_0x1f6930._0x4537e8,0x8b2)+_0x1da90e(_0x1f6930._0x3fb0b7,_0x1f6930._0x264fc0)]??'-'))),console['log'](_0x20c2dc(0x749,0x891)+'\x20'+resolveGatewayUrl()),console[_0x20c2dc(0x5c4,_0x1f6930._0xfdafaf)](_0x1da90e(0x37d,0x184)+'\x20'+(_0x1ba7e3['installe'+'d']?_0x1da90e(0x2bb,_0x1f6930._0x6db325)+'d':_0x1da90e(_0x1f6930._0xcef3a6,_0x1f6930._0x4d27a0)+_0x1da90e(0x196,_0x1f6930._0x2d6d38))+'\x20('+_0x1ba7e3[_0x20c2dc(0x651,_0x1f6930._0x3cd1a0)]+')'),console[_0x20c2dc(0x5c4,0x7bd)]('Running:'+'\x20'+(_0x1ba7e3[_0x1da90e(_0x1f6930._0x11688c,0x251)]?_0x20c2dc(_0x1f6930._0x38aa4b,0x50a):'no')),console[_0x1da90e(_0x1f6930._0x4a9a6d,0xd7)](_0x20c2dc(0x83b,_0x1f6930._0x4a012c)+(_0x1ba7e3[_0x20c2dc(_0x1f6930._0x496665,_0x1f6930._0x41f3a8)+_0x1da90e(0x1c6,_0x1f6930._0xfb6012)]||'-')),console['log']('Log:\x20'+_0x1d4d06),console[_0x20c2dc(_0x1f6930._0x4fcf9e,0x47e)](_0x1da90e(_0x1f6930._0x360845,_0x1f6930._0x56867a)+_0x20c2dc(_0x1f6930._0x334e43,0x62a)+_0x4dd5ec),!_0x37e924&&(process[_0x20c2dc(0x93d,0xa90)]=0x1);}function printServiceResult(_0x2e4b95,_0x45da0e){const _0x5b1365={_0x585cbf:0x174,_0x3d959a:0x5b4,_0x46dabd:0xba,_0x3e82b3:0x170,_0x44d6d7:0x24e,_0x43a584:0x2a8},_0x26b51d={_0x2ffbc4:0x57e},_0x51e3ab={};function _0xf8eea0(_0x4dd745,_0xbb4dd1){return _0x32d8ea(_0x4dd745,_0xbb4dd1- -0x541);}_0x51e3ab['yQsRU']=_0xf8eea0(0x10c,0x21c)+_0x1aeb68(0xfd,0x16b)+'ng';const _0x4dc7cd=_0x51e3ab;_0x2e4b95&&console['log'](_0x2e4b95);function _0x1aeb68(_0x506f77,_0x3a2f64){return _0x32d8ea(_0x3a2f64,_0x506f77- -_0x26b51d._0x2ffbc4);}console[_0x1aeb68(0x130,0x326)]('Service:'+'\x20'+(_0x45da0e[_0x1aeb68(0x1df,-0x31)+'d']?_0x45da0e[_0x1aeb68(0xb3,-_0x5b1365._0x585cbf)]?_0x4dc7cd['yQsRU']:'installe'+'d,\x20stopp'+'ed':_0xf8eea0(_0x5b1365._0x3d959a,0x3a8)+_0x1aeb68(_0x5b1365._0x46dabd,-_0x5b1365._0x3e82b3))),console['log'](_0xf8eea0(0xd7,_0x5b1365._0x44d6d7)+_0xf8eea0(_0x5b1365._0x43a584,0x208)+(_0x45da0e['serviceP'+_0xf8eea0(0xd3,0x127)]||'-'));}function printDoctorReport(_0x594a62){const _0x523d19={_0x217a04:0x615,_0xe81acb:0x471,_0x3762e7:0x4dd,_0x25b9cc:0x4ad,_0x2bde55:0x574,_0x521860:0x59b,_0x361490:0x260,_0x3da853:0x7cb,_0x535dcb:0x4c8,_0x39cafb:0x2f6,_0x20407f:0x4f2,_0x404bce:0x2c8,_0x3dea80:0x28d,_0x582c1b:0x3bd,_0x214253:0x531,_0x5718bf:0x40f,_0x314392:0x3fa,_0x426052:0x503,_0x451d46:0x471,_0x377a32:0x454,_0x4524c1:0x626,_0xd4ce1b:0x2d9,_0x4deb85:0x2e1,_0x49a568:0x435,_0xd4c92a:0x599,_0x2d620b:0x5c3,_0x24d845:0x2a3,_0x26fca2:0x34a,_0x495dbc:0x228,_0x252878:0x3d7,_0x223d3e:0x2c8,_0x266052:0x49a,_0x2602c3:0x4ff,_0x51069a:0x557,_0x1eca2a:0x240,_0x8e88ad:0x3ca,_0x2384df:0x2f2,_0x36bc8b:0x287,_0x85e94a:0x32a,_0x208199:0x254,_0x2c3be7:0x43d,_0x141b43:0x533,_0x184844:0x1d3,_0x89ac25:0x361,_0x21742f:0x2e1,_0x53a95e:0x551,_0x5f2eda:0x559,_0x3e4f0c:0x296,_0x43b3ba:0x36c,_0x5121e6:0x3e3,_0x9584c3:0x37a,_0x10ac92:0x4fd,_0x4c647b:0xca,_0x287278:0x1f9,_0x5258b8:0x262,_0x58e37a:0x2c2,_0x2a7991:0x4a9,_0x1a5bb9:0x341,_0x3be8e2:0x2e2,_0x5d677d:0x4dd,_0x4eef50:0x5a0,_0x1f0277:0x52f,_0x47543b:0x427,_0x46b7e8:0x50f,_0x5314a2:0x6df,_0x208052:0x496,_0x52e0aa:0x35c,_0x2782fa:0x538,_0x3ab92f:0x4bc,_0xbf1449:0x6c3,_0x2b31fe:0x230,_0x43b5ff:0x37c,_0x2e3ce1:0x3de},_0x1e8189={};_0x1e8189[_0x5339c0(_0x523d19._0x217a04,_0x523d19._0xe81acb)]=_0x5339c0(_0x523d19._0x3762e7,_0x523d19._0x25b9cc),_0x1e8189[_0x5339c0(_0x523d19._0x2bde55,_0x523d19._0x521860)]=_0x24e55c(0x34b,0x367),_0x1e8189['NvLWd']='yes',_0x1e8189[_0x5339c0(0x19e,_0x523d19._0x361490)]=_0x24e55c(_0x523d19._0x3da853,0x5a7)+_0x24e55c(_0x523d19._0x535dcb,_0x523d19._0x39cafb);const _0x839573=_0x1e8189;function _0x5339c0(_0xd0fbd9,_0x44ede9){return _0x3a7f13(_0xd0fbd9,_0x44ede9-0x59);}const _0x32077f=(_0x5339c0(0x22f,0x20c)+'12|11|1|'+'15|8|10|'+_0x24e55c(_0x523d19._0x20407f,0x3a0)+_0x5339c0(_0x523d19._0x404bce,_0x523d19._0x3dea80))['split']('|');let _0x5d7d0a=0x0;function _0x24e55c(_0x4d18bb,_0x44593c){return _0x3a7f13(_0x4d18bb,_0x44593c-0xe4);}while(!![]){switch(_0x32077f[_0x5d7d0a++]){case'0':console['log'](_0x5339c0(_0x523d19._0x582c1b,0x597)+_0x24e55c(_0x523d19._0x214253,0x604)+'\x20'+(_0x594a62[_0x5339c0(0x45d,_0x523d19._0x5718bf)+_0x24e55c(_0x523d19._0x314392,_0x523d19._0x426052)+_0x5339c0(0x587,0x4d2)]?_0x839573[_0x5339c0(0x55b,_0x523d19._0x451d46)]:_0x839573[_0x24e55c(_0x523d19._0x377a32,_0x523d19._0x4524c1)]));continue;case'1':console[_0x5339c0(_0x523d19._0xd4ce1b,_0x523d19._0x4deb85)](_0x24e55c(_0x523d19._0x49a568,0x44d)+_0x5339c0(_0x523d19._0xd4c92a,_0x523d19._0x2d620b)+'\x20'+(_0x594a62[_0x5339c0(_0x523d19._0x24d845,0x4b9)+_0x24e55c(_0x523d19._0x26fca2,0x54c)]?_0x839573[_0x24e55c(_0x523d19._0x495dbc,_0x523d19._0x252878)]:'no'));continue;case'2':console[_0x5339c0(0x333,_0x523d19._0x4deb85)]('Relay\x20UR'+_0x5339c0(0x1f9,0x415)+(_0x594a62[_0x24e55c(0x681,0x678)]??'-'));continue;case'3':console[_0x5339c0(_0x523d19._0x223d3e,0x2e1)](_0x5339c0(0x3d2,0x597)+_0x5339c0(0x4bc,0x667)+_0x594a62[_0x24e55c(0x68e,_0x523d19._0x266052)+_0x5339c0(_0x523d19._0x2602c3,_0x523d19._0x51069a)+'r']);continue;case'4':console['log'](_0x24e55c(0x1a4,0x2ab)+_0x24e55c(_0x523d19._0x1eca2a,_0x523d19._0x8e88ad)+_0x594a62[_0x5339c0(0x218,_0x523d19._0x2384df)+_0x24e55c(_0x523d19._0x36bc8b,_0x523d19._0x85e94a)]);continue;case'5':console[_0x24e55c(0x16e,0x36c)]('Paired:\x20'+(_0x594a62[_0x5339c0(_0x523d19._0x208199,0x256)]?_0x5339c0(_0x523d19._0x2c3be7,0x230):'no'));continue;case'6':console[_0x24e55c(_0x523d19._0x208199,0x36c)](_0x24e55c(_0x523d19._0x141b43,0x622)+'\x20media:\x20'+_0x594a62[_0x24e55c(0x30b,_0x523d19._0x266052)+_0x5339c0(_0x523d19._0x184844,_0x523d19._0x89ac25)]);continue;case'7':console[_0x5339c0(0x48c,_0x523d19._0x21742f)]('Gateway\x20'+_0x5339c0(_0x523d19._0x53a95e,0x325)+(_0x594a62[_0x24e55c(0x3c7,_0x523d19._0x5f2eda)+'d']??'-'));continue;case'8':console[_0x24e55c(_0x523d19._0x3e4f0c,_0x523d19._0x43b3ba)](_0x5339c0(_0x523d19._0x5121e6,_0x523d19._0x9584c3)+':\x20'+_0x594a62['logPath']);continue;case'9':console['log'](_0x24e55c(_0x523d19._0x10ac92,0x4ee)+_0x5339c0(_0x523d19._0x4c647b,_0x523d19._0x287278)+(_0x594a62[_0x24e55c(_0x523d19._0x5258b8,_0x523d19._0x58e37a)+'l']??'-'));continue;case'10':console['log']('Error\x20lo'+_0x24e55c(0x2cd,_0x523d19._0x2a7991)+_0x594a62[_0x5339c0(_0x523d19._0x1a5bb9,0x571)+_0x24e55c(0x48d,_0x523d19._0x3be8e2)]);continue;case'11':console[_0x5339c0(0x3fa,_0x523d19._0x4deb85)](_0x24e55c(0x640,_0x523d19._0x5d677d)+'\x20'+(_0x594a62[_0x24e55c(_0x523d19._0x4eef50,_0x523d19._0x1f0277)+_0x24e55c(0x20b,_0x523d19._0x47543b)]?_0x5339c0(0x243,0x390)+'d':_0x839573['lKlel'])+'\x20('+_0x594a62['serviceM'+'ethod']+')');continue;case'12':console['log'](_0x5339c0(0x603,_0x523d19._0x46b7e8)+_0x5339c0(0x4d2,0x4b0)+(_0x594a62[_0x24e55c(0x852,_0x523d19._0x5314a2)+'Id']??'-'));continue;case'13':console[_0x24e55c(0x1e8,0x36c)](_0x5339c0(0x637,0x597)+_0x24e55c(_0x523d19._0x208052,0x2e5)+(_0x594a62[_0x24e55c(0x439,0x49a)+'TokenFou'+'nd']?_0x24e55c(_0x523d19._0x52e0aa,_0x523d19._0x2782fa):_0x839573[_0x24e55c(0x827,0x626)]));continue;case'14':console[_0x5339c0(0x417,0x2e1)]('Gateway\x20'+_0x24e55c(0x292,0x272)+_0x5339c0(0x17c,0x277)+(_0x594a62['localGat'+_0x5339c0(0x38f,_0x523d19._0x3ab92f)+_0x24e55c(0x8ac,_0x523d19._0xbf1449)]?_0x5339c0(0x6c,_0x523d19._0x2b31fe):'no'));continue;case'15':console[_0x5339c0(0xb8,_0x523d19._0x21742f)](_0x5339c0(0x240,0x3c2)+_0x5339c0(0x13e,_0x523d19._0x43b5ff)+(_0x594a62[_0x5339c0(0x1aa,_0x523d19._0x2e3ce1)+_0x24e55c(0x2fb,0x326)]||'-'));continue;}break;}}function requirePairingConfig(){const _0x365824={_0x49ec80:0x759,_0x2adef2:0x56b,_0x3eb199:0x478,_0x46566f:0x3df,_0xdfd7a4:0x245,_0x560c66:0x457,_0x6be8e7:0xa3d},_0x321d6f={_0xcb642a:0x7b},_0x90f548={_0x351d4f:0x353};function _0x416b5c(_0xf6b83b,_0x4ed8c5){return _0x3a7f13(_0xf6b83b,_0x4ed8c5-_0x90f548._0x351d4f);}const _0x1c0de0=readPairingConfig();!_0x1c0de0&&(console[_0x416b5c(_0x365824._0x49ec80,_0x365824._0x2adef2)](_0x2588fc(0xda,0x313)+'ed.\x20Run\x20'+_0x2588fc(_0x365824._0x3eb199,_0x365824._0x46566f)+'\x20pair\x22\x20f'+_0x416b5c(0x5c0,0x5ab)+_0x2588fc(0x299,_0x365824._0xdfd7a4)+_0x2588fc(0x295,_0x365824._0x560c66)+getPairingConfigPath()),process[_0x416b5c(_0x365824._0x6be8e7,0x823)](0x1));function _0x2588fc(_0x577e83,_0x174f76){return _0x3a7f13(_0x577e83,_0x174f76- -_0x321d6f._0xcb642a);}return _0x1c0de0;}function readFlag(_0x24d311,_0x44bd0f){const _0x524d52={_0x3b2c33:0x275,_0x220276:0x43a,_0x593394:0x432},_0x28eab5={_0x11d7a0:0xf3},_0x4adcf6=_0x24d311[_0x420110(_0x524d52._0x3b2c33,0x1e4)](_0x44bd0f);function _0x231912(_0x297d9f,_0x2cbb3f){return _0x3a7f13(_0x2cbb3f,_0x297d9f- -_0x28eab5._0x11d7a0);}if(_0x4adcf6<0x0)return null;function _0x420110(_0x125726,_0x15f23a){return _0x3a7f13(_0x125726,_0x15f23a- -0x301);}const _0x359818=_0x24d311[_0x4adcf6+0x1];return _0x359818?.[_0x420110(_0x524d52._0x220276,0x308)]()?_0x359818[_0x420110(_0x524d52._0x593394,0x308)]():null;}function hasFlag(_0x344184,_0x51cbc8){return _0x344184['includes'](_0x51cbc8);}function readPairSubcommand(_0xf6f63c){const _0x18f02d={_0x57ddb5:0x43c,_0x2a7c71:0x807,_0x2f5c2a:0x9f3},_0x2a0ffb={_0x2bb3ec:0x3ea};function _0xc84d2e(_0x6b1598,_0x2ec4e8){return _0x3a7f13(_0x6b1598,_0x2ec4e8-_0x2a0ffb._0x2bb3ec);}for(const _0x2fedde of _0xf6f63c){if(!_0x2fedde[_0xc84d2e(_0x18f02d._0x57ddb5,0x60d)+'th']('-'))return _0x2fedde[_0xc84d2e(_0x18f02d._0x2a7c71,_0x18f02d._0x2f5c2a)]()||null;}function _0x463461(_0x16cd33,_0x20eac8){return _0x3a7f13(_0x16cd33,_0x20eac8-0x41a);}return null;}function printHelp(){const _0xb983fb={_0x28bed7:0x64b,_0x4fd4d0:0x737,_0x8c079:0x51b,_0x3afaec:0x64c,_0x2cec1e:0x784,_0x34ac7c:0x771,_0xe073ef:0x664,_0x30f531:0x57a,_0x4e3e8c:0x54d,_0x5a81dc:0x458,_0xe96151:0x445,_0x39d6b3:0x55d,_0x5cc30d:0x4ea,_0x4c938f:0x57b,_0x455158:0x4a0,_0x23ca05:0x43a,_0xd667d2:0x661,_0x2d36e5:0x501,_0x32b598:0x4a2,_0x2c9151:0x715,_0x465264:0x445,_0x2e4cbf:0x555,_0x3b1565:0x58f,_0x5b8586:0x86f,_0x1c7598:0x6d3,_0x4fc53b:0x55b,_0x325546:0x3a4,_0x75b235:0x639,_0x1e158f:0x200,_0x24fd77:0x416,_0x2e6a1a:0x4ad,_0xb05eb4:0x446,_0x2c1119:0x79e,_0x97bdd7:0x31a,_0x2c5a5b:0x658,_0x4f13e8:0x82f,_0x114183:0x5f9,_0x430632:0x26c,_0x56262b:0x313,_0x40f032:0x849,_0x5081bd:0x727,_0x338d50:0x8c6,_0x31ac68:0x532,_0x142604:0x738,_0x8b0bcb:0x371,_0x5101d6:0x491,_0x6f4e0e:0x7e4,_0x2447b1:0x56a,_0x59f3fe:0x593,_0x2a031f:0x3d9,_0x493557:0x641},_0xfc428f={_0x45ed4f:0x26d},_0x2c9b0e={_0x1e2e69:0x79},_0x2a5eae={};_0x2a5eae[_0x47de80(0x49b,0x66c)]=_0x48309c(0x445,0x4e6)+_0x47de80(0x53b,0x6b1)+_0x48309c(0x450,0x399)+'l\x20<ws://'+'host:por'+_0x47de80(_0xb983fb._0x28bed7,_0xb983fb._0x4fd4d0)+'r-file\x20<'+_0x48309c(0x3cf,0x22d)+_0x47de80(0x62b,_0xb983fb._0x8c079);function _0x48309c(_0x476657,_0x1904b2){return _0x3a7f13(_0x1904b2,_0x476657-_0x2c9b0e._0x1e2e69);}_0x2a5eae[_0x48309c(0x5fe,0x824)]='clawket\x20'+_0x48309c(0x2a9,0x19c)+_0x48309c(_0xb983fb._0x3afaec,_0xb983fb._0x2cec1e)+'url\x20<ws:'+_0x47de80(_0xb983fb._0x34ac7c,_0xb983fb._0xe073ef)+_0x47de80(_0xb983fb._0x30f531,_0xb983fb._0x4e3e8c)+_0x47de80(0x4b1,_0xb983fb._0x5a81dc)+_0x48309c(0x652,0x6dd)+'\x20[--json'+']',_0x2a5eae[_0x47de80(0x658,0x4b7)]=_0x48309c(_0xb983fb._0xe96151,_0xb983fb._0x39d6b3)+_0x48309c(_0xb983fb._0x5cc30d,_0xb983fb._0x4c938f)+'code\x20[--'+_0x48309c(0x522,_0xb983fb._0x455158)+_0x47de80(_0xb983fb._0x23ca05,_0xb983fb._0xd667d2)+_0x48309c(_0xb983fb._0x2d36e5,0x3d5);function _0x47de80(_0x482002,_0x5a3dde){return _0x3a7f13(_0x5a3dde,_0x482002-_0xfc428f._0x45ed4f);}_0x2a5eae['qAYml']=_0x48309c(0x445,0x2b3)+_0x48309c(0x384,_0xb983fb._0x32b598),_0x2a5eae[_0x48309c(0x685,_0xb983fb._0x2c9151)]=_0x48309c(_0xb983fb._0x465264,0x574)+_0x47de80(0x838,0x78d)+'l',_0x2a5eae['HFQWb']=_0x47de80(0x639,_0xb983fb._0x2e4cbf)+_0x47de80(0x75f,_0xb983fb._0x3b1565)+_0x47de80(0x636,_0xb983fb._0x5b8586)+_0x47de80(0x6cb,_0xb983fb._0x1c7598)+_0x47de80(0x446,0x657)+_0x48309c(_0xb983fb._0x4fc53b,_0xb983fb._0x325546)+'rors]\x20[-'+_0x48309c(0x46a,0x3be);const _0x3e1902=_0x2a5eae;console['log']([_0x47de80(_0xb983fb._0x75b235,0x702)+'pair\x20[--'+_0x48309c(_0xb983fb._0x1e158f,_0xb983fb._0x24fd77)+_0x47de80(_0xb983fb._0x2e6a1a,0x3fd)+_0x48309c(_0xb983fb._0xb05eb4,0x248)+_0x47de80(0x615,_0xb983fb._0x2c1119)+_0x48309c(_0xb983fb._0x97bdd7,0x1c3)+'qr-file\x20'+'<path>]\x20'+'[--json]'+_0x48309c(0x46b,0x57e)+'e]',_0x3e1902['HkYmc'],_0x3e1902['uKfRZ'],_0x3e1902[_0x47de80(_0xb983fb._0x2c5a5b,0x7c8)],_0x47de80(0x639,_0xb983fb._0x4f13e8)+_0x47de80(0x835,_0xb983fb._0x114183),'clawket\x20'+_0x48309c(_0xb983fb._0x430632,0x214),_0x3e1902[_0x48309c(0x470,_0xb983fb._0x56262b)],_0x47de80(0x639,_0xb983fb._0x40f032)+_0x47de80(_0xb983fb._0x5081bd,_0xb983fb._0x338d50),_0x3e1902[_0x47de80(0x879,0x6ba)],_0x48309c(_0xb983fb._0xe96151,_0xb983fb._0x31ac68)+_0x47de80(0x673,_0xb983fb._0x8c079),_0x47de80(_0xb983fb._0x75b235,_0xb983fb._0x142604)+_0x48309c(0x516,_0xb983fb._0x8b0bcb),_0x3e1902['HFQWb'],_0x48309c(_0xb983fb._0xe96151,_0xb983fb._0x5101d6)+_0x47de80(_0xb983fb._0x6f4e0e,0x79a)+'--json]',_0x47de80(0x639,0x738)+_0x47de80(_0xb983fb._0x2447b1,0x589)+'ateway-u'+_0x48309c(_0xb983fb._0x59f3fe,_0xb983fb._0x2a031f)+_0x47de80(0x472,_0xb983fb._0x493557)+'.1:18789'+'>]']['join']('\x0a'));}function formatLocalTime(_0xaf4fa2){const _0x2ecfa5={_0x49974b:0x698,_0x3501c9:0x607,_0x3c9c12:0x5f1};function _0x475d3d(_0x427ead,_0x250678){return _0x3a7f13(_0x250678,_0x427ead-0x18d);}const _0x11b371=new Date(_0xaf4fa2);function _0x24c05a(_0x5a3f1e,_0x174929){return _0x3a7f13(_0x5a3f1e,_0x174929-0x85);}if(Number['isNaN'](_0x11b371[_0x24c05a(0x248,0x2c8)]()))return _0xaf4fa2;return _0x11b371[_0x475d3d(_0x2ecfa5._0x49974b,0x812)+_0x24c05a(_0x2ecfa5._0x3501c9,_0x2ecfa5._0x3c9c12)]();}function formatError(_0x116e47){const _0x4572cc={_0x29a34e:0x51f,_0x4d95ec:0x2e4},_0x32ea83={_0x15265c:0xd7};function _0x7bcc85(_0x126152,_0x982fb5){return _0x3a7f13(_0x126152,_0x982fb5- -_0x32ea83._0x15265c);}return _0x116e47 instanceof Error?_0x116e47[_0x7bcc85(_0x4572cc._0x29a34e,_0x4572cc._0x4d95ec)]:String(_0x116e47);}function printJson(_0x389300){console['log'](JSON['stringif'+'y'](_0x389300,null,0x2));}main()[_0x32d8ea(0x67f,0x891)](_0x2ec9c7=>{const _0x2de458={_0x322cfc:0x780};function _0x2e273b(_0x2e8c32,_0x96d5fe){return _0x32d8ea(_0x96d5fe,_0x2e8c32- -0x24e);}console['error'](formatError(_0x2ec9c7)),process[_0x2e273b(0x6a8,_0x2de458._0x322cfc)](0x1);});