OverviewFilesCommitsIssuesDocsReleasesPeers

holepunchto-deps / @holepunchto / keet-store / store / stats / stats.reducer.js

1 lines · javascript ref:
function _0x4b87(_0x416c81,_0xda78c8){const _0x55d770=_0x4139();return _0x4b87=function(_0xe2770,_0x3d5437){_0xe2770=_0xe2770-(0x7*-0x555+-0x13db+0x18d*0x26);let _0x4da152=_0x55d770[_0xe2770];return _0x4da152;},_0x4b87(_0x416c81,_0xda78c8);}(function(_0x15cfb3,_0x2ca66e){const _0x314560={_0x4a1939:0x529,_0x43a3dc:0x48,_0x145649:0x74,_0x1262b6:0x84,_0x155cac:0x4f6,_0x188547:0x510,_0x3dff63:0x50b,_0x82a77e:0x54d,_0x565882:0x534,_0x495716:0x540,_0x243db0:0x527,_0x1ab8e8:0xa2,_0x49aed2:0x99,_0xc4eea4:0x81,_0x1c60e7:0x7a,_0x4b4364:0x518,_0xf766cf:0x50a,_0x40671e:0x4f8,_0xc27766:0x537,_0x597dde:0x51c,_0x11b556:0x536,_0x12e104:0x23,_0x2bd70d:0x2d,_0x460252:0x43,_0x49e002:0x63,_0x235eaa:0x56,_0x3951d5:0x1f},_0xa374ce={_0x47a5eb:0x34c},_0x389f63=_0x15cfb3();function _0x20c26b(_0xa3840b,_0xafe9b2,_0x54c227,_0xc5b093){return _0x4b87(_0xafe9b2-_0xa374ce._0x47a5eb,_0xa3840b);}function _0x3ee29a(_0x1829d1,_0x3269dd,_0x5d7eb7,_0x15e7d3){return _0x4b87(_0x5d7eb7- -0x180,_0x1829d1);}while(!![]){try{const _0x51f64c=parseInt(_0x20c26b(0x52e,0x522,_0x314560._0x4a1939,0x50e))/(0x1a82+0x10*0x149+0x1*-0x2f11)*(-parseInt(_0x3ee29a(_0x314560._0x43a3dc,_0x314560._0x145649,0x6a,_0x314560._0x1262b6))/(0x156d*-0x1+-0x2fb*-0xb+0x2*-0x5ad))+parseInt(_0x20c26b(_0x314560._0x155cac,_0x314560._0x188547,_0x314560._0x3dff63,0x51b))/(0xdc6*-0x2+0x1b45+0x1*0x4a)+-parseInt(_0x20c26b(_0x314560._0x82a77e,_0x314560._0x565882,0x553,_0x314560._0x495716))/(-0x11b3+0x191*0x9+0x39e)*(-parseInt(_0x20c26b(_0x314560._0x243db0,0x533,0x525,0x519))/(-0x186+0x1*0x98e+0x1*-0x803))+-parseInt(_0x3ee29a(_0x314560._0x1ab8e8,_0x314560._0x49aed2,_0x314560._0xc4eea4,_0x314560._0x1c60e7))/(0xfba+-0x191+0xe23*-0x1)*(parseInt(_0x20c26b(_0x314560._0x4b4364,0x519,_0x314560._0xf766cf,_0x314560._0x40671e))/(0x2142+0x1a72+0x3bad*-0x1))+parseInt(_0x20c26b(_0x314560._0xc27766,_0x314560._0x597dde,_0x314560._0x11b556,0x505))/(-0x14a9+0x1a49+-0xb3*0x8)+-parseInt(_0x3ee29a(_0x314560._0x12e104,_0x314560._0x2bd70d,_0x314560._0x460252,_0x314560._0x49e002))/(0x114d*-0x1+-0x1877*0x1+0x29*0x105)+parseInt(_0x3ee29a(_0x314560._0x235eaa,0x29,0x42,_0x314560._0x3951d5))/(0x20e5+-0x101d*0x2+0x1*-0xa1);if(_0x51f64c===_0x2ca66e)break;else _0x389f63['push'](_0x389f63['shift']());}catch(_0x5b2095){_0x389f63['push'](_0x389f63['shift']());}}}(_0x4139,-0x1*0x1967c6+-0xb6d76+0x1*0x330a33));import{createSlice,createAction,createSelector}from'@reduxjs/toolkit';import{prettyBytes}from'../lib/pretty-bytes';import{DEFAULT_STATS_POLL_INTERVAL,CLICKS_TO_UNLOCK}from'./stats.constants';export const STATS_STATE_KEY=_0x477545(0x130,0x12e,0x11c,0x147);function toPercent(_0x37f016,_0x4f2185=0x183*0x17+0xa8d+-0x2d51){const _0x471b66={_0x332d08:0x493,_0x4651e8:0x493,_0x3df45f:0x4b0},_0x1b581c={_0x188577:0x375,_0x1fb29c:0xc1,_0x2f99a6:0x136},_0x482ab8={_0x2179f0:0xa4,_0x11e70f:0xae,_0x2c2e35:0x87,_0x29028a:0x166,_0x349133:0x170,_0x37bfd0:0x183,_0x514ab3:0x175,_0x49852d:0x181,_0x3bd4e0:0x18c,_0x3ff066:0x181,_0x335674:0xc7,_0x3718e9:0xbe,_0x63675e:0xdd,_0x2f70d5:0xbb,_0x409fbf:0xdc,_0x22c06e:0xd8,_0x38603d:0xc0,_0x5aac8b:0xbf,_0x565c74:0xae,_0x13893f:0xb3},_0xeb6bc=(function(){let _0x331e53=!![];return function(_0x491f43,_0x17bcb9){const _0x113169={_0x1a2812:0x5dd,_0x17c29b:0x5ba,_0x44f51f:0x5d1,_0x51b558:0x5bc},_0x384a86=_0x331e53?function(){const _0x2368ea={_0x35c825:0x3c9};function _0x5cb705(_0x57ee80,_0x16d883,_0x1bacb1,_0x31b224){return _0x4b87(_0x16d883-_0x2368ea._0x35c825,_0x57ee80);}if(_0x17bcb9){const _0x576e34=_0x17bcb9[_0x5cb705(_0x113169._0x1a2812,_0x113169._0x17c29b,_0x113169._0x44f51f,_0x113169._0x51b558)](_0x491f43,arguments);return _0x17bcb9=null,_0x576e34;}}:function(){};return _0x331e53=![],_0x384a86;};}()),_0x53a8ae=_0xeb6bc(this,function(){const _0x4c5f44={_0x515071:0x133},_0x37e1e1={_0x5786c4:0x363};function _0x3c0357(_0x45602a,_0x4c1d33,_0x3107e2,_0x4f5a79){return _0x4b87(_0x4c1d33- -_0x37e1e1._0x5786c4,_0x45602a);}function _0x45aeab(_0x329644,_0x256b4b,_0x4b1900,_0x2c2e66){return _0x4b87(_0x329644- -_0x4c5f44._0x515071,_0x2c2e66);}return _0x53a8ae[_0x45aeab(_0x482ab8._0x2179f0,_0x482ab8._0x11e70f,_0x482ab8._0x2c2e35,0xab)]()['search'](_0x3c0357(-_0x482ab8._0x29028a,-_0x482ab8._0x349133,-_0x482ab8._0x37bfd0,-_0x482ab8._0x514ab3)+'+$')[_0x3c0357(-_0x482ab8._0x49852d,-_0x482ab8._0x3bd4e0,-0x19c,-_0x482ab8._0x3ff066)]()[_0x45aeab(_0x482ab8._0x335674,_0x482ab8._0x3718e9,0xa8,_0x482ab8._0x63675e)+'r'](_0x53a8ae)[_0x45aeab(_0x482ab8._0x2f70d5,0xc2,_0x482ab8._0x409fbf,_0x482ab8._0x22c06e)](_0x45aeab(_0x482ab8._0x38603d,_0x482ab8._0x5aac8b,_0x482ab8._0x565c74,_0x482ab8._0x13893f)+'+$');});function _0x95b488(_0x42eb9b,_0x3bf21b,_0x32df1b,_0x589299){return _0x477545(_0x3bf21b-_0x1b581c._0x188577,_0x3bf21b-_0x1b581c._0x1fb29c,_0x32df1b,_0x589299-_0x1b581c._0x2f99a6);}return _0x53a8ae(),(_0x37f016*(-0x1382+-0x1bb0+0x2*0x17cb))[_0x95b488(_0x471b66._0x332d08,_0x471b66._0x4651e8,0x495,_0x471b66._0x3df45f)](_0x4f2185)+'%';}const normaliseStats=_0x1583ac=>({'UIStore':{'Load':_0x1583ac[_0x477545(0x124,0x145,0x11a,0x134)]?.[_0x1eb219(0x37d,0x37f,0x35b,0x382)]||'-','A':(_0x1583ac['store']?.[_0x1eb219(0x375,0x38f,0x360,0x354)]||'-')+'/'+(_0x1583ac[_0x1eb219(0x356,0x35e,0x36b,0x338)]?.[_0x477545(0x12a,0x13d,0x147,0x117)]||'-')+'ms'},'Rooms':{'Active':_0x1583ac['activeRoom'+'s'],'Open':_0x1583ac['openRooms']},'Cores':{'Open':_0x1583ac[_0x1eb219(0x355,0x341,0x373,0x374)],'OpLogs':_0x1583ac[_0x477545(0x137,0x150,0x147,0x11b)],'Appends':_0x1583ac[_0x1eb219(0x35f,0x34a,0x351,0x37c)]},'Swarm':{'Conns':_0x1583ac[_0x477545(0x13a,0x11d,0x130,0x138)+'s']},'Punches':{'Const':_0x1583ac[_0x1eb219(0x361,0x34f,0x366,0x370)]?.[_0x477545(0x14a,0x139,0x161,0x131)]['consistent'],'Rand':_0x1583ac[_0x1eb219(0x361,0x35e,0x352,0x35e)]?.[_0x477545(0x14a,0x145,0x151,0x129)]['random'],'Open':_0x1583ac[_0x477545(0x12f,0x10f,0x123,0x134)]?.[_0x1eb219(0x37c,0x377,0x38a,0x37b)]['open']},'Queries':{'Active':_0x1583ac[_0x1eb219(0x361,0x35d,0x349,0x360)]?.[_0x477545(0x128,0x140,0x12c,0x146)]?.['active'],'Total':_0x1583ac[_0x477545(0x12f,0x12d,0x12c,0x138)]?.[_0x1eb219(0x35a,0x369,0x360,0x356)]?.[_0x1eb219(0x347,0x336,0x362,0x354)]},'Uploads':{'Blocks':_0x1583ac[_0x477545(0x116,0x131,0x104,0x105)],'Bytes':prettyBytes(_0x1583ac[_0x477545(0x140,0x120,0x15f,0x142)+_0x477545(0x142,0x12c,0x162,0x14c)]||0x2107*0x1+0x21f4+-0x42fb*0x1)},'Downloads':{'Blocks':_0x1583ac[_0x477545(0x12e,0x117,0x149,0x112)],'Bytes':prettyBytes(_0x1583ac[_0x477545(0x11f,0x139,0x13f,0x13d)+_0x1eb219(0x378,0x357,0x385,0x35b)]||-0x3*-0x308+-0x13a4+0xa8c)}}),normaliseDeviceStats=_0x54480e=>({'CPU':{'Perc':toPercent(_0x54480e[_0x1eb219(0x36a,0x36c,0x359,0x366)]?.[_0x477545(0x12b,0x10c,0x120,0x14b)]||0x1b*0x7c+-0x2329*0x1+0x1615)},'Heap':{'Used':prettyBytes(_0x54480e[_0x477545(0x114,0x11f,0x129,0x111)]?.['heapUsed']||0x10f5+0x20f3+-0x31e8),'Total':prettyBytes(_0x54480e[_0x1eb219(0x346,0x33c,0x33a,0x34b)]?.[_0x1eb219(0x349,0x339,0x331,0x357)]||-0x1f5a+0x3*0x61a+0x5*0x29c)},'Heap(Cr)':{'Used':prettyBytes(_0x54480e[_0x1eb219(0x36d,0x386,0x373,0x382)][_0x1eb219(0x346,0x352,0x366,0x351)]?.['heapUsed']||0x751+-0x261a+-0xa43*-0x3),'Total':prettyBytes(_0x54480e['chromium'][_0x477545(0x114,0x10b,0x108,0x121)]?.['heapTotal']||-0x1167+0x1250+-0xe9*0x1)}});export const INITIAL_STATE={'stats':{},'deviceStats':{'cpu':null,'memory':null,'chromium':{'memory':null}},'timeStats':{'sendMsg':{'latest':0x0,'average':0x0,'worse':0x0,'count':0x0},'items':[]},'enabled':![],'unlocked':![],'pollInterval':DEFAULT_STATS_POLL_INTERVAL,'clicksToUnlockToggle':CLICKS_TO_UNLOCK};export const statsSlice=createSlice({'name':STATS_STATE_KEY,'initialState':INITIAL_STATE,'reducers':{'enableStats':_0x279a8d=>{const _0x1bf4e4={_0x4f64f1:0x1f0,_0x541c0b:0x1d5,_0xdbe64d:0x1d9},_0x204b98={_0x4f3dea:0x32d};function _0x3661e8(_0x107694,_0x519ce6,_0x49c8ee,_0x18aa3a){return _0x477545(_0x107694- -_0x204b98._0x4f3dea,_0x519ce6-0x1d4,_0x519ce6,_0x18aa3a-0x190);}_0x279a8d[_0x3661e8(-0x1e4,-_0x1bf4e4._0x4f64f1,-_0x1bf4e4._0x541c0b,-_0x1bf4e4._0xdbe64d)]=!![];},'disableStats':_0x3e118a=>{const _0x3c083c={_0x6ebb38:0x4a0,_0x55bb40:0x4a4,_0x41ea13:0x4a5,_0x3c165e:0x556,_0x327777:0x56c,_0x155e4a:0x57d},_0xbf2bfa={_0x2a6f9b:0x14e,_0x1cc5bd:0xed},_0x33f86={_0x566f9b:0x132};function _0x2d2d08(_0x509b7a,_0x90f228,_0x201854,_0x4252a3){return _0x1eb219(_0x201854-0x20a,_0x90f228-0xf,_0x90f228,_0x4252a3-_0x33f86._0x566f9b);}_0x3e118a[_0x1c8cf8(_0x3c083c._0x6ebb38,0x4c0,_0x3c083c._0x55bb40,_0x3c083c._0x41ea13)]=![];function _0x1c8cf8(_0x56ec8a,_0x3cf5cf,_0x55d7e3,_0x25c981){return _0x477545(_0x3cf5cf-0x377,_0x3cf5cf-_0xbf2bfa._0x2a6f9b,_0x55d7e3,_0x25c981-_0xbf2bfa._0x1cc5bd);}_0x3e118a[_0x2d2d08(0x54b,_0x3c083c._0x3c165e,_0x3c083c._0x327777,_0x3c083c._0x155e4a)]={};},'unlockStats':(_0x51aa9a,{payload:payload=!![]})=>{const _0x3d698d={_0x359c3b:0x560,_0x200bee:0x55d},_0x38437f={_0x364ad3:0x87,_0x4c2810:0xa2};function _0x2d4a1c(_0x15a74b,_0x47d30c,_0x3be658,_0x55eb93){return _0x1eb219(_0x55eb93-0x219,_0x47d30c-_0x38437f._0x364ad3,_0x47d30c,_0x55eb93-_0x38437f._0x4c2810);}_0x51aa9a[_0x2d4a1c(0x55d,0x574,_0x3d698d._0x359c3b,_0x3d698d._0x200bee)]=payload;},'unlockClick':_0x39a90e=>{const _0x1553f5={_0xa371e1:0x21,_0x44ab:0x2b,_0x1734cc:0x37,_0x5d68f8:0x491,_0x3e2f97:0x493,_0x19d365:0x486,_0x2ac35f:0x462,_0x4b8a3b:0x4d,_0x23f44f:0x69},_0xb73d9d={_0x56d87b:0x354,_0x32b8fa:0x134,_0x1bb6c1:0xc3},_0x3ce327={_0x29c8a6:0xf2,_0x36f406:0x1c};function _0x4508c5(_0x2a6033,_0x25887a,_0x5b5816,_0x29adde){return _0x477545(_0x2a6033- -_0x3ce327._0x29c8a6,_0x25887a-0xf1,_0x5b5816,_0x29adde-_0x3ce327._0x36f406);}function _0x267454(_0x3e4898,_0x125cfd,_0x1ae8a5,_0x5bf58d){return _0x477545(_0x1ae8a5-_0xb73d9d._0x56d87b,_0x125cfd-_0xb73d9d._0x32b8fa,_0x3e4898,_0x5bf58d-_0xb73d9d._0x1bb6c1);}_0x39a90e[_0x4508c5(_0x1553f5._0xa371e1,0x37,_0x1553f5._0x44ab,_0x1553f5._0x1734cc)+_0x267454(0x49c,_0x1553f5._0x5d68f8,_0x1553f5._0x3e2f97,0x4a6)]>0x159e+-0x1*-0xde9+-0x2387&&(_0x39a90e[_0x267454(_0x1553f5._0x19d365,0x468,0x467,_0x1553f5._0x2ac35f)+_0x4508c5(_0x1553f5._0x4b8a3b,_0x1553f5._0x23f44f,0x4c,0x3e)]-=0x9*0x134+-0x1918+0xe45);},'setPollInterval':(_0x27c312,{payload:{pollInterval:_0xfc278a}})=>{const _0x2d9c8e={_0x61daa5:0x28d,_0x3444b8:0x286,_0x1f1d04:0x28f},_0x128a4b={_0x306d48:0xbc,_0x58fd39:0x15};function _0x5adc94(_0x20c2b3,_0x420b55,_0x429c55,_0x2c113d){return _0x1eb219(_0x2c113d- -_0x128a4b._0x306d48,_0x420b55-0x22,_0x420b55,_0x2c113d-_0x128a4b._0x58fd39);}_0x27c312[_0x5adc94(0x284,_0x2d9c8e._0x61daa5,_0x2d9c8e._0x3444b8,_0x2d9c8e._0x1f1d04)+'al']=_0xfc278a;},'setStatsData':(_0x51379f,{payload:_0x440498})=>{const _0x59d6b6={_0x2bae6f:0xd7,_0x589c1a:0xd4,_0x5f1594:0x7b,_0x1167ac:0x9c,_0x5c7a81:0x85,_0x25158d:0x9a,_0x5507be:0x4ae,_0x4cb42f:0x4c4,_0x1535a9:0x4ab,_0x2abfb5:0x4d1,_0x2dc516:0xcc,_0x15de89:0xc1,_0xa8fdf3:0x4f7,_0x37cb09:0x4e0,_0x4882d7:0x4e7,_0x225661:0xc9,_0x44537c:0x9b,_0x11d5d1:0xbb,_0x416269:0x514,_0xd3d60d:0x4ff,_0x5af890:0x4e8,_0x5ef192:0xda,_0x1cd232:0xe9,_0x35cffc:0xe8,_0x472789:0xc9,_0x54ad5e:0xb5,_0x2fb35d:0xa9,_0x3e5ce3:0xe1,_0x124a95:0xbd,_0x2142ae:0x4cc,_0x4adfc7:0x4de,_0x29883a:0x4ea,_0x59037b:0x4ff,_0x12e804:0x4b1,_0x18aacc:0x4bc,_0x694168:0x4b4,_0x111a08:0x4d3,_0x58997c:0x4e2,_0x404774:0x4f1,_0x121954:0xc8,_0x4b86c3:0xb2,_0x30e4ca:0xc9,_0x434124:0x4c0,_0x4e671e:0x4d5,_0x4904f5:0x7f,_0x3d55bc:0x6c,_0x25fe3a:0x86,_0x31b33b:0xbf,_0x546af3:0xc6,_0xf2c66b:0xc9,_0x25312b:0x7e,_0x5213e3:0x87,_0x4d76ad:0xa9,_0xcd53c5:0xd7,_0xf3f015:0xd9,_0x27b0ee:0xca,_0x1a329c:0x4ca,_0x14ae5f:0x4df,_0xc2eb0:0x4cb,_0x2c6668:0x4c3,_0x29ed05:0x4c5,_0x3a5115:0x9a,_0x4a6fff:0x8b,_0x2c3230:0x6a,_0x380f27:0xa9,_0x5d3621:0x8d,_0x3b701d:0x4df,_0x527cd6:0x4de,_0xe182fe:0x4d6,_0x1be969:0x70,_0x251cd8:0x99,_0x1e6849:0x8e,_0x1509b1:0x98,_0x2c219c:0xa8,_0x56afdd:0xb4,_0x32064d:0x95,_0x231658:0xae,_0x118044:0xa9,_0x128ada:0xc3,_0x183639:0xc9,_0x13ea6d:0xad,_0xfb46b4:0xa5,_0x10836b:0xbb,_0x99d591:0xa1,_0x106c7f:0xc0},_0x3deb06={_0x52a233:0x17e,_0x4299cf:0x1b0},_0x3030e3={_0x4f1134:0x1d5,_0x161fc8:0x2,_0x2c2f45:0x139},{data:_0x152684,cpu:_0x1117df,memory:_0x4d3518,chromium:_0x1e870f,store:_0x71496d}=_0x440498;_0x51379f['deviceStat'+'s']['cpu']=_0x1117df,_0x51379f[_0x4835c3(-0x8c,-0x91,-0x90,-0x8e)+'s'][_0x4835c3(-_0x59d6b6._0x2bae6f,-0xd3,-_0x59d6b6._0x589c1a,-0xc1)]=_0x4d3518;_0x1e870f&&(_0x51379f['deviceStat'+'s'][_0x4835c3(-_0x59d6b6._0x5f1594,-_0x59d6b6._0x1167ac,-_0x59d6b6._0x5c7a81,-_0x59d6b6._0x25158d)][_0x4cbdd1(_0x59d6b6._0x5507be,_0x59d6b6._0x4cb42f,_0x59d6b6._0x1535a9,_0x59d6b6._0x2abfb5)]=_0x1e870f[_0x4835c3(-0xab,-_0x59d6b6._0x2dc516,-_0x59d6b6._0x15de89,-_0x59d6b6._0x15de89)]);function _0x4835c3(_0x305442,_0x5d8230,_0x4e9935,_0x47c5b4){return _0x477545(_0x47c5b4- -_0x3030e3._0x4f1134,_0x5d8230-_0x3030e3._0x161fc8,_0x5d8230,_0x47c5b4-_0x3030e3._0x2c2f45);}function _0x4cbdd1(_0x189ec6,_0xc0501,_0x4896ab,_0x5035b0){return _0x1eb219(_0xc0501-_0x3deb06._0x52a233,_0xc0501-0x18f,_0x189ec6,_0x5035b0-_0x3deb06._0x4299cf);}_0x51379f[_0x4cbdd1(_0x59d6b6._0xa8fdf3,_0x59d6b6._0x37cb09,0x4f8,_0x59d6b6._0x4882d7)]={..._0x152684,'swarm':{'updates':_0x152684?.['swarm']?.[_0x4835c3(-0xa3,-_0x59d6b6._0x225661,-_0x59d6b6._0x44537c,-_0x59d6b6._0x11d5d1)],'connects':{'client':{'opened':_0x152684?.[_0x4cbdd1(_0x59d6b6._0x416269,_0x59d6b6._0xd3d60d,0x4e9,_0x59d6b6._0x5af890)]?.[_0x4835c3(-_0x59d6b6._0x5ef192,-_0x59d6b6._0x1cd232,-_0x59d6b6._0x35cffc,-_0x59d6b6._0x472789)][_0x4835c3(-0xb2,-_0x59d6b6._0x54ad5e,-_0x59d6b6._0x2fb35d,-0xb9)]['opened'],'closed':_0x152684?.['swarm']?.[_0x4835c3(-0xbf,-_0x59d6b6._0x3e5ce3,-_0x59d6b6._0x124a95,-_0x59d6b6._0x225661)][_0x4cbdd1(0x4de,_0x59d6b6._0x2142ae,_0x59d6b6._0x4adfc7,0x4d5)]['closed'],'attempted':_0x152684?.[_0x4cbdd1(_0x59d6b6._0x29883a,_0x59d6b6._0x59037b,_0x59d6b6._0x29883a,0x4ee)]?.[_0x4cbdd1(_0x59d6b6._0x12e804,_0x59d6b6._0x18aacc,_0x59d6b6._0x694168,_0x59d6b6._0x111a08)]['client']['attempted']},'server':{'opened':_0x152684?.[_0x4cbdd1(_0x59d6b6._0x58997c,0x4ff,0x510,_0x59d6b6._0x404774)]?.[_0x4835c3(-_0x59d6b6._0x121954,-_0x59d6b6._0x4b86c3,-_0x59d6b6._0x11d5d1,-_0x59d6b6._0x30e4ca)]['server'][_0x4cbdd1(0x4d8,_0x59d6b6._0x434124,0x4ba,_0x59d6b6._0x4e671e)],'closed':_0x152684?.[_0x4835c3(-_0x59d6b6._0x4904f5,-_0x59d6b6._0x3d55bc,-_0x59d6b6._0x25158d,-_0x59d6b6._0x25fe3a)]?.[_0x4835c3(-_0x59d6b6._0x31b33b,-_0x59d6b6._0x35cffc,-_0x59d6b6._0x546af3,-_0x59d6b6._0xf2c66b)][_0x4835c3(-_0x59d6b6._0x25312b,-_0x59d6b6._0x5f1594,-0x78,-_0x59d6b6._0x5213e3)][_0x4835c3(-_0x59d6b6._0x4d76ad,-_0x59d6b6._0xcd53c5,-_0x59d6b6._0xf3f015,-_0x59d6b6._0x27b0ee)]}}},'dht':{'punches':{'consistent':_0x152684?.[_0x4cbdd1(_0x59d6b6._0x1a329c,_0x59d6b6._0x14ae5f,_0x59d6b6._0xc2eb0,0x4fc)]?.['punches']?.['consistent'],'random':_0x152684?.[_0x4cbdd1(_0x59d6b6._0x2c6668,_0x59d6b6._0x14ae5f,_0x59d6b6._0x29ed05,0x500)]?.[_0x4835c3(-_0x59d6b6._0x25fe3a,-0xa4,-_0x59d6b6._0x3a5115,-_0x59d6b6._0x4a6fff)]?.[_0x4835c3(-_0x59d6b6._0x2c3230,-_0x59d6b6._0x380f27,-0x84,-_0x59d6b6._0x5d3621)],'open':_0x152684?.[_0x4cbdd1(0x4e9,_0x59d6b6._0x3b701d,_0x59d6b6._0x527cd6,_0x59d6b6._0xe182fe)]?.[_0x4835c3(-_0x59d6b6._0x1be969,-_0x59d6b6._0x251cd8,-0x96,-_0x59d6b6._0x4a6fff)]?.[_0x4835c3(-_0x59d6b6._0x1e6849,-0xa4,-0x97,-_0x59d6b6._0x1509b1)]},'queries':{'active':_0x152684?.['dht']?.[_0x4835c3(-_0x59d6b6._0x2c219c,-_0x59d6b6._0x56afdd,-_0x59d6b6._0x32064d,-0xad)]?.[_0x4835c3(-_0x59d6b6._0x231658,-_0x59d6b6._0x5213e3,-_0x59d6b6._0x5213e3,-_0x59d6b6._0x118044)],'total':_0x152684?.['dht']?.[_0x4835c3(-_0x59d6b6._0x128ada,-_0x59d6b6._0x183639,-0x97,-_0x59d6b6._0x13ea6d)]?.[_0x4835c3(-_0x59d6b6._0xfb46b4,-_0x59d6b6._0x10836b,-_0x59d6b6._0x99d591,-_0x59d6b6._0x106c7f)]}},'store':_0x71496d};},'setTimeStatsData':(_0x3a421f,{payload:_0x1b30fd})=>{const _0x22d5f4={_0x13f99a:0x41e,_0x1f8518:0x428,_0x484212:0x400,_0x4607f2:0x40a,_0x81a96c:0x3ee,_0x3c8a65:0x3f8,_0x44aa9f:0x40e,_0x30d7da:0x420,_0x5a3b0c:0x425,_0x6de0e1:0x41c,_0x57e16c:0x432},_0x491287={_0x5929dd:0x111,_0x7f06cd:0xf4},_0x3f3bef={_0xb9ade1:0x323,_0x5ceae7:0x10c,_0x53e450:0x1b2};function _0x591152(_0x1d858c,_0x3f06fd,_0x4d1fe1,_0x4ac6de){return _0x477545(_0x4d1fe1- -_0x3f3bef._0xb9ade1,_0x3f06fd-_0x3f3bef._0x5ceae7,_0x4ac6de,_0x4ac6de-_0x3f3bef._0x53e450);}function _0x369ee1(_0x5668ad,_0x233d24,_0x3b4741,_0x3cf382){return _0x477545(_0x5668ad-0x2f9,_0x233d24-_0x491287._0x5929dd,_0x3b4741,_0x3cf382-_0x491287._0x7f06cd);}if(!Array[_0x369ee1(_0x22d5f4._0x13f99a,_0x22d5f4._0x1f8518,_0x22d5f4._0x484212,0x402)](_0x1b30fd))return;_0x3a421f[_0x369ee1(_0x22d5f4._0x4607f2,_0x22d5f4._0x81a96c,_0x22d5f4._0x3c8a65,_0x22d5f4._0x44aa9f)][_0x369ee1(_0x22d5f4._0x30d7da,_0x22d5f4._0x5a3b0c,_0x22d5f4._0x6de0e1,_0x22d5f4._0x57e16c)]=_0x1b30fd;},'setTimeStatsSendMsg':(_0x484251,{payload:_0x4c5d74})=>{const _0xe85caa={_0x52b0ef:0x65,_0x5b167b:0x77,_0xb14850:0x7b,_0xd25bab:0xb2,_0x37ebde:0x92,_0x20e35b:0xa4,_0x287db4:0x70,_0x1c8e4d:0x183,_0x51215b:0x177,_0x2d4f71:0x1aa,_0x4dccb9:0x1a6,_0x4783d4:0x1b7,_0x218fd9:0x71,_0x29437d:0x91,_0xe1b982:0xa2,_0x5d58ae:0x69,_0x522fa9:0x17b,_0x2bbd0f:0x18b,_0x576962:0x17f,_0x46f386:0x19d,_0x45fc1e:0x1a3,_0x1de656:0x193,_0x5864bb:0x19a,_0x1b4227:0x18c,_0x5dae7a:0xa6,_0x1b57d2:0x93},_0x311cd3={_0x179ef9:0x2c3,_0x134f93:0x1},_0x481609={_0x1a2982:0x3d5,_0x59afb9:0x5b};function _0x277dad(_0x40a279,_0x11a0a6,_0x4bcaa2,_0x161819){return _0x1eb219(_0x11a0a6- -_0x481609._0x1a2982,_0x11a0a6-_0x481609._0x59afb9,_0x40a279,_0x161819-0x1d0);}if(!Number[_0x277dad(-_0xe85caa._0x52b0ef,-0x72,-_0xe85caa._0x5b167b,-_0xe85caa._0xb14850)](_0x4c5d74))return;const {average:_0x42d576,count:_0x3fb293,worse:_0x22b177}=_0x484251['timeStats']['sendMsg'];function _0x2d34cc(_0x4785c5,_0x1ff4fb,_0x183d44,_0x186371){return _0x477545(_0x1ff4fb- -_0x311cd3._0x179ef9,_0x1ff4fb-0x106,_0x183d44,_0x186371-_0x311cd3._0x134f93);}const _0x56df84=_0x3fb293+(-0x781*0x5+0x8*0x280+0x1186);_0x484251[_0x277dad(-_0xe85caa._0xd25bab,-_0xe85caa._0x37ebde,-_0xe85caa._0x20e35b,-_0xe85caa._0x287db4)][_0x2d34cc(-_0xe85caa._0x1c8e4d,-0x182,-0x192,-_0xe85caa._0x51215b)][_0x2d34cc(-_0xe85caa._0x2d4f71,-_0xe85caa._0x4dccb9,-0x1a5,-_0xe85caa._0x4783d4)]=_0x4c5d74,_0x484251[_0x277dad(-_0xe85caa._0x218fd9,-0x92,-_0xe85caa._0x29437d,-_0xe85caa._0xe1b982)][_0x277dad(-0x41,-0x62,-0x70,-_0xe85caa._0x5d58ae)][_0x2d34cc(-_0xe85caa._0x522fa9,-0x17f,-_0xe85caa._0x2bbd0f,-_0xe85caa._0x576962)]=Math[_0x2d34cc(-0x1bf,-_0xe85caa._0x46f386,-_0xe85caa._0x45fc1e,-_0xe85caa._0x1de656)]((_0x42d576*_0x3fb293+_0x4c5d74)/_0x56df84),_0x484251['timeStats']['sendMsg'][_0x2d34cc(-0x17e,-_0xe85caa._0x5864bb,-_0xe85caa._0x4dccb9,-_0xe85caa._0x1b4227)]=_0x56df84,_0x484251[_0x277dad(-0x74,-_0xe85caa._0x37ebde,-_0xe85caa._0x5dae7a,-_0xe85caa._0x1b57d2)]['sendMsg']['worse']=_0x22b177<_0x4c5d74?_0x4c5d74:_0x22b177;},'clearTimeStatsAll':_0x10e8a7=>{const _0x27ef56={_0x52f027:0x45,_0x158683:0x2c,_0x35d32e:0x20,_0x49d362:0x1e},_0x13afec={_0x2d7e55:0xd};function _0x2cade6(_0x5154b7,_0x42d739,_0x3cf6fc,_0x26a78b){return _0x477545(_0x42d739- -0xe5,_0x42d739-0x37,_0x5154b7,_0x26a78b-_0x13afec._0x2d7e55);}_0x10e8a7[_0x2cade6(_0x27ef56._0x52f027,_0x27ef56._0x158683,_0x27ef56._0x35d32e,_0x27ef56._0x49d362)]=INITIAL_STATE['timeStats'];},'clearTimeStatsSendMsg':_0x295407=>{const _0x30a12c={_0x3743c4:0x15e,_0x3ab049:0x190,_0x10ce02:0x174,_0x2f2aa3:0x195,_0x1be5a0:0xb8,_0x32e64d:0xb5,_0x406aa0:0xa7,_0x193fa1:0x85,_0x5da0d2:0xb7,_0xee8a83:0xa8,_0x3cffec:0xb0},_0x451503={_0x90c82b:0x2be,_0x4c7230:0x1a4,_0x4d8d7f:0x1a1},_0x1804e5={_0x2d38ba:0x1cf,_0x5d0bde:0xee,_0x46a1d4:0x1d3};function _0x5b1c03(_0x1f84a5,_0x3fdc88,_0xdc4b97,_0x18478f){return _0x1eb219(_0xdc4b97- -_0x1804e5._0x2d38ba,_0x3fdc88-_0x1804e5._0x5d0bde,_0x3fdc88,_0x18478f-_0x1804e5._0x46a1d4);}function _0x4001af(_0x1da52f,_0xb3ac47,_0x200bcf,_0x29a1a2){return _0x1eb219(_0x29a1a2- -_0x451503._0x90c82b,_0xb3ac47-_0x451503._0x4c7230,_0x200bcf,_0x29a1a2-_0x451503._0x4d8d7f);}_0x295407[_0x5b1c03(_0x30a12c._0x3743c4,_0x30a12c._0x3ab049,_0x30a12c._0x10ce02,_0x30a12c._0x2f2aa3)][_0x4001af(0xb1,0xa7,_0x30a12c._0x1be5a0,_0x30a12c._0x32e64d)]=INITIAL_STATE[_0x4001af(0x66,0x8a,_0x30a12c._0x406aa0,_0x30a12c._0x193fa1)][_0x4001af(_0x30a12c._0x5da0d2,_0x30a12c._0xee8a83,_0x30a12c._0x3cffec,_0x30a12c._0x32e64d)];}}});const getStatsState=_0x267747=>_0x267747[STATS_STATE_KEY];export const getStats=createSelector(getStatsState,({stats:_0x1ce6c6})=>normaliseStats(_0x1ce6c6));export const getDeviceStats=createSelector(getStatsState,({deviceStats:_0x54024b})=>normaliseDeviceStats(_0x54024b));function _0x1eb219(_0x7ebf6b,_0x11013d,_0xaaf203,_0x4058f2){return _0x4b87(_0x7ebf6b-0x17d,_0xaaf203);}function _0x477545(_0x1275be,_0x13d81b,_0x5e3233,_0x1b3143){const _0x2aa70c={_0x2c8bc2:0xb5};return _0x4b87(_0x1275be- -_0x2aa70c._0x2c8bc2,_0x5e3233);}export const getStatsRaw=_0x1a71d3=>getStatsState(_0x1a71d3)[_0x1eb219(0x362,0x360,0x36b,0x354)];export const getStatsUnlocked=_0x298601=>getStatsState(_0x298601)[_0x477545(0x112,0x12d,0x10d,0xf5)];export const getStatsEnabled=_0x364ab7=>getStatsState(_0x364ab7)['enabled'];export const getStatsPollInterval=_0x670af0=>getStatsState(_0x670af0)[_0x477545(0x119,0x114,0x131,0x119)+'al'];export const getClicksToUnlockToggle=_0x1925c3=>getStatsState(_0x1925c3)['clicksToUn'+_0x1eb219(0x371,0x362,0x361,0x382)];export const getStatsTimeItems=_0x986104=>getStatsState(_0x986104)['timeStats'][_0x1eb219(0x359,0x341,0x372,0x360)];export const getStatsTimeSendMsg=_0x53560a=>getStatsState(_0x53560a)[_0x1eb219(0x343,0x34d,0x325,0x35a)][_0x1eb219(0x373,0x365,0x354,0x354)];export const {unlockStats,enableStats,disableStats,unlockClick,setPollInterval,setStatsData,setTimeStatsData,setTimeStatsSendMsg,clearTimeStatsAll,clearTimeStatsSendMsg}=statsSlice['actions'];function _0x4139(){const _0x5a63d8=['sendMsg','ded','actions','average','constructo','oaded','deviceStat','random','enabled','punches','load','12alcSRJ','stats/load','server','swarm','closed','connects','21504730EPtjri','11435742dhLgdZ','3012657xusnUd','opened','timeStats','unlocked','clicksToUn','memory','total','uploaded','heapTotal','5464557CnrSIh','pollInterv','updates','11787616hTwzrR','client','latest','toFixed','bytesDownl','-time-stat','3ZHIWns','toString','openCores','store','isArray','floor','items','queries','count','avgAction','percent','active','appends','downloaded','dht','stats','isInteger','175DpeMgX','106756iUXcfg','stats/togg','1199504BvXpHV','s-data-cmd','ops','cpu','search','connection','chromium','apply','open','(((.+)+)+)','lockToggle','bytesUploa'];_0x4139=function(){return _0x5a63d8;};return _0x4139();}export const toggleStats=createAction(_0x477545(0x134,0x13f,0x138,0x14a)+'le-stats');export const loadTimeStatsDataCmd=createAction(_0x1eb219(0x37f,0x37d,0x391,0x367)+_0x1eb219(0x352,0x370,0x334,0x332)+_0x1eb219(0x368,0x37c,0x38b,0x378));