matter-history
Version:
Matterbridge history module
1 lines • 105 kB
JavaScript
const _0x5d3104=_0x2c71;(function(_0x16edb0,_0x56467d){const _0x6c3622=_0x2c71,_0x2519a7=_0x16edb0();while(!![]){try{const _0x284524=-parseInt(_0x6c3622(0x2b2))/0x1*(-parseInt(_0x6c3622(0x26c))/0x2)+parseInt(_0x6c3622(0x19b))/0x3+-parseInt(_0x6c3622(0x2af))/0x4+parseInt(_0x6c3622(0x446))/0x5*(-parseInt(_0x6c3622(0x456))/0x6)+-parseInt(_0x6c3622(0x347))/0x7+parseInt(_0x6c3622(0x2a0))/0x8*(parseInt(_0x6c3622(0x20f))/0x9)+-parseInt(_0x6c3622(0x423))/0xa*(-parseInt(_0x6c3622(0x21c))/0xb);if(_0x284524===_0x56467d)break;else _0x2519a7['push'](_0x2519a7['shift']());}catch(_0x4e93a0){_0x2519a7['push'](_0x2519a7['shift']());}}}(_0xdd9f,0x46f4e));function _0xdd9f(){const _0x217908=['AirPressur','ries:','d\x20reload','always00','secsToDate','404711052a','pow','c\x20lastEven','for','maybeNumbe','rsion','writeUInt8','attributes','readHistor','format','ns\x20for\x20','OnSetHisto','DD-MM-YYYY','s\x20for\x20','duration','0101700101','endpoint\x20','queuedEntr','StringSinc','ded\x20so\x20ret','\x20to\x20histor','onOff','StatusFaul',']\x20[','osition','0001500b02','eMeasureme','historySta','EveEnergyC','lastValueK','Creating\x20M','motion','arkness','deviceOnli','now','emperature','Get)','toAverageE','teEntry()\x20','36428199de','Set)','vents','History\x20lo','3031313932','2.7.3','\x20queuedEnt','getMonth','keys','code','error','ition','OnGetLastE','Error\x20read','>LED\x20on\x20Mo','EveMotionC','this.decod','addStatusA','Entry','d:\x20','set()\x20call','ataTags','HoldPositi','ToString','LOW','single','lastValues','signature:','historyLog','riting\x20alr','Opened','MOTION','asHours','ogress.\x20Re','getFirstEn','ataGet','atterHisto','State','uint32','2LE','encodeConf','join','fore\x20histo','History\x20fi','050000000e','()\x20started','table\x20leng','veRoom\x20his','tlvDataToV','time','EveRoom','setDeviceO','MEDIUM','0101','\x20with\x20','bool','historyWri','SUN','s\x20[','assign','\x20tag:\x20','ntry:\x20','OnGetHisto','y\x20Cluster','ace','2171970bbcPQT','historyLoa','ryFile(..)','014b043408','number','padEnd','pilot*:','ion','31354d314d','decodeConf','Entry:\x20','00014d0b02','ault','params','Current','addImmedia','\x20to\x20fileVe','a(this.con','leVersion:','getLastEve','*Preparing','Error\x20upda','mer\x20lastVa','dEntry()\x20','warn','revision','0000004609','memoryUsed','\x20serialNum','veWeather\x20','ryEntries','RW\x20VO','RLoc','\x20order','ndetected','5zHbxLa','ColorTempP','HistoryEnt','Lux','OnGetimesO','r\x20so\x20retur','historyReq','rsion:\x20','secondsSin','Max\x20temp:\x20','prototype','istory','c\x20historyS','getEntry','ToHex','name','978906aSXnpJ','taSet:\x20his','ory:\x20unkno','or:\x20','relativeHu','c\x20timesOpe','addResetTo','uint8Array','last\x20entry','ries','aded\x20with\x20','BLANK','tvocMeasur','rySetTime','log','dress','nline','configData','door\x20type','try\x20not\x20<=','yVersion:\x20','ENOENT','owerOn','c\x20configDa','\x20for\x20','Schedule49','etTime:\x20hi','mask:','oString','lly\x20update','...)\x20[','p01','field','quest','productId','fileVersio','addEntry()','Cluster','for\x20endpoi','createMoti','.)\x20history','ry\x20is\x20load','\x20minutes\x20','6823780000','eDisplayUn','properties','00000075df','readInt16L','Darkness\x20T','1139319PJANUJ','eConfigDat','data','0500000000','enableDebu','pm25','itivity','setLastEve','ryEntries(','teEntry','signatureT','History\x20fo','initialTim','\x20is\x20only\x20t','readUInt8','c\x20historyE','threadstat','ly\x20wrote\x20h','\x27\x1b[0m','..)\x20produc','rom(value)','fileName*:','\x20timerMinu','withInterf','OnGetLastR','currentEnt','forEach','OnGetConfi','ision','tlvConfigD','lux','tusToStrin','ory\x20is\x20loa','memorySize','--\x20entry:\x20','EndMarkWit','MaxTemp','voc','mption','addToTimes','internalsO','istoryFile','lastEntry','ascii','UpDown','addAverage','7102090072','copyBytesF','Sensitivit','\x20factor:','figDataGet','this.tlvCo','padStart','resetTotal','hasOwnProp','\x20of\x20','current','oryRequest',')\x20called\x20b','FeatureMap','fileName','ed\x20entries','call','9c0100ff04','\x20an\x20even\x20l','already\x20cl','tId:\x20','le\x20','alloc','usedMemory','\x20minutes','register','room','EveMotion','Complete','ry\x20already','ROOM','ate','hreshold\x20','setMatterH','serialNumb','max','ConfigData','d\x20historyF','OnSetConfi','ceNoon','unix','\x20is\x20out\x20of','enableConf','history','\x20-\x20','setMaxMinT','FAHRENHEIT','subarray','features','\x20is\x20after\x20','3131393734','push','OnSetLastR','ing\x20from\x20f','optionalPa','dHistoryRe','Component','filePath','gData\x20=\x20th','\x20setting\x20d','figData,\x20t','\x0afield:\x20','g\x20for\x20','writeUInt1','timeOffset','\x20entries\x20f','\x20historyLo','erver','asMinutes','003c000000','27351rCSUIT','tags','enableAuto','RAIN_WIND','\x20since\x20is\x20','le\x20from\x20fi','\x20history\x20a','ength','\x20length:\x20','this.confi','DataTags(.','istory\x20aut','6LE','11aAOoXy','action','21fc219622','addTimesOp','value','Elevation','entries:\x20','\x1b[0m','\x20to\x20update','3036393138','\x20already\x20c','\x20found\x20bit','WeatherTre','ed\x20for\x20','historySet','its','LastReset:','file\x20error','ime','HistorySta','19040c5156','\x20file\x20erro','t:\x20history','asDays','ryClusterS','\x20firstEntr','historyEnt','ened','Base','writingTim','dEntry(..)','al:\x20histor','s:\x20','ries\x20inter','19040c5256','find','omponent','HistorySet','EveHistory','uest\x20force','erty','Successful','gData','ry\x20','8001441105','ed:\x20starti','addEntry(.','not\x20change','ber:\x20','c\x20resetTot','readUInt16','first\x20entr','ryStatus','tal','sion:\x20','min','er:\x20','getEntryAd','\x20endpoint\x20','diffToStri','statusFaul','veMotion\x20h','y\x20for\x20','logHistory','1c0005033c','uestToStri',']\x20currentE','herEveHist','entryNameM','EveRoomCom','readInt32L','Consumptio','setConfigD','eady\x20in\x20pr','status',')\x20error\x20en','addLastEve','Extensions','\x20must\x20have','mer\x20result','40666nFTbjS','ResetTotal','story\x20','decodeHist','d004000000','d007','ting:\x20','ry:\x20[','get','energy','queue:\x20','totalMemor','Feature','\x20fileName:','humidity','\x20loaded\x20fo','behaviors','son','formaldehy','32324d314d','createEner','stance','t:\x20','or\x20','symbol','R\x20V','offset:','uest:\x20[','timesOpene','toString','tag','tus\x20forced','=tag80','oryStatus','gify','utf8','statusActi','eveEpoch','Temperatur','taGet:\x20fab','verbose','weather','firstEntry','boolean','Starting\x20h','0000420649','\x1b[38;5;35m','dHistorySt','includes','vent','rams','\x20lastEntry','104piEHaJ','\x20called\x20be','targetposi','historyVer','tory\x20','ze:\x20','HIGH','immediate','applicatio','from','Time','eys','\x20HH:mm:ss','<Only\x20In\x20D','ClusterIns','998284bSYixp','orySetTime','urns\x20for\x20','19LNjtTc','CompleteIn','WEATHER','Set\x20dynami','temperatur','tion','ver','precision','rns\x20for\x20','rmoConfig','bitmask','getTimeOff','door','a(Buffer.f','ryFile()\x20w','internal','pm10','sed','ready\x20clos','\x20data:\x20[','DOOR','sigTable','Set','always01','writeInt16','(..)\x20histo','initialize','ystoryType','setEntry','getDate','efault\x20to\x20','ing\x20JSON\x20f','floor','Time:\x20[','unlinkSync','Get','nfigDataGe','tus','alue','createRoom','String','ntries','Schedule\x20d','Transition','addStatusF','>CoverMove','e:\x20','und\x20','yFile','tch','so\x20returns','firmwareVe','power','WeatherThe','losed\x20for\x20','--clusterS','eEveEpoch','0100ff0401','\x20ms.','g*:','tagsMap','\x20softwareV','lastEvent:','obstructio','erStart','h0Length','entryStrin','immediateK','airquality','ataSet','0b0200009c','n:\x20','string','type','010207c4f9','getFullYea','igData','Average\x20ti','ataFields','writeHisto','00000302fb','addEntry','ryToString','setRefTime','Server:\x20in','\x20doesn\x27t\x20e','octstr','ded','ryRequest','ntries:\x20','entry2addr','consumptio','map','dEntry','lastEvent','signature\x20','EveDoorCom','\x1b[38;5;220','ommands','\x20queue\x20for','onfigData(','historyDeb','historyFil','ned:\x20histo','copy','pressure','Schedule4a','0001590b02','\x20skipped\x20k','\x20days','clamp','e*:','historyTim','eset','factor','\x20from\x20hist','historySiz','averageTim','smoke','averagedKe','fabric','teEntry(..','pressureMe','Schedule\x20c','ile\x20','lready\x20clo','Voltage','equest:\x20hi','ry\x20for\x20','ENERGY','positionst','contact','ceil','\x20historySi','>CoverSpee','writeUInt3','EveDoor','00000302fa','ess(','MotionSens','FromHex','):\x20[','currentpos','signature','th\x20','Time()\x20cal','OFF','yFile(..)\x20','ClusterRev','2236108iRDDvJ','0000004a06','supported','EveWeather','setDate','tance','updated','4b04000000','<LED\x20on\x20Mo','Schedule47','veDoor\x20his','encodeHist','historyErr','ex\x20','\x20length:','\x20Min\x20temp:','040000ffff','Schedule\x20e','c\x20historyR','voltage','EveEnergy',',\x20this.tlv','0045050500','veEnergy\x20h','round','entries','\x20fabricInd','debug','ting','pened','TimesOpene','efore\x20hist','06050c0810','ies','RAIN','Supports\x20E','ponent','wn\x20type\x20','ClusterSer','always0000','ensing','length','illuminanc','ceMidnight','history\x20al','xist.\x20Read','writeUint1','>CoverSetu','tory','WeatherMin','ng\x20entries','entryName','ctive','tatus:\x20his','atus','booleanSta','filePath*:','historyClo','is.encodeC','erver:\x20','require','timerMinut','lues\x20resul','with','queueTimeo','0102012cf9','autoPilot','Internal','try\x20in\x20500','CLOUDS_SUN','info','getInitial','readUInt32','erCallback','ervers\x20for','Get\x20dynami','ryFile','getFakeLev','endpoint','CELSIUS','hex','0000','\x20it.','\x20name:','TimeToStri','ValvePosit','Error\x20pars','airQuality','\x20reload','igData*:','nDetected','oryEntry','HistoryReq','sion','ays','stringify','forceReloa','riesToStri','createWeat','\x20updated:\x20','ed\x20before\x20','33384c3141','19040c5a56','Server','getLastEnt','eVersion:\x20','readFile','Eve\x20Histor',':\x20[','_history.j','eout'];_0xdd9f=function(){return _0x217908;};return _0xdd9f();}var _=Object['defineProp'+_0x5d3104(0x244)],Y=(_0x11eb89,_0x2d4ab0,_0x141742)=>_0x2d4ab0 in _0x11eb89?_(_0x11eb89,_0x2d4ab0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x141742}):_0x11eb89[_0x2d4ab0]=_0x141742,h=(_0x3c12bb,_0x3300a6,_0x29bb82)=>Y(_0x3c12bb,typeof _0x3300a6!=_0x5d3104(0x284)?_0x3300a6+'':_0x3300a6,_0x29bb82);import{db as _0x5619ec,dn as _0x39927b,or as _0x165f2e,rs as _0x2530a3}from'matterbridge/logger';import*as _0xd6ccaf from'node:fs';import _0x439727 from'node:assert';import _0x3c9860 from'node:path';import _0x47239b from'moment';import{colorStringify as _0x1ad28c,historyStringify as _0x3ee4a5,id as _0x133467,rs as _0x1fd86a,db as _0x461066,dn as _0x512b50,wr as _0x2eb0d8,er as _0x347d6e,or as _0xa7561}from'node-ansi-logger';var G;(function(_0x37e9a1){const _0x2a1f00=_0x5d3104;_0x37e9a1[_0x37e9a1[_0x2a1f00(0x175)]=0x0]='BLANK',_0x37e9a1[_0x37e9a1[_0x2a1f00(0x41b)]=0x1]=_0x2a1f00(0x41b),_0x37e9a1[_0x37e9a1[_0x2a1f00(0x38c)]=0x3]=_0x2a1f00(0x38c),_0x37e9a1[_0x37e9a1['RAIN']=0x5]=_0x2a1f00(0x369),_0x37e9a1[_0x37e9a1['RAIN_WIND']=0xc]=_0x2a1f00(0x212);}(G||(G={})));var B;(function(_0x1abf7e){const _0x225f5b=_0x5d3104;_0x1abf7e[_0x1abf7e[_0x225f5b(0x2a6)]=0x0]=_0x225f5b(0x2a6),_0x1abf7e[_0x1abf7e[_0x225f5b(0x416)]=0x4]=_0x225f5b(0x416),_0x1abf7e[_0x1abf7e[_0x225f5b(0x3fa)]=0x7]='LOW';}(B||(B={})));function _0x2c71(_0x53d540,_0x182ee5){_0x53d540=_0x53d540-0x16d;const _0xdd9fee=_0xdd9f();let _0x2c7113=_0xdd9fee[_0x53d540];return _0x2c7113;}var H;(function(_0x13e91c){const _0x31ac31=_0x5d3104;_0x13e91c[_0x13e91c[_0x31ac31(0x396)]=0x0]=_0x31ac31(0x396),_0x13e91c[_0x13e91c[_0x31ac31(0x1f7)]=0x1]='FAHRENHEIT';}(H||(H={})));var V=class{constructor(_0x313b72,_0x2cc3d7,_0x449f4f){const _0x29cb97=_0x5d3104;h(this,_0x29cb97(0x178)),h(this,_0x29cb97(0x455)),h(this,_0x29cb97(0x1ff)+_0x29cb97(0x29e)),h(this,_0x29cb97(0x430)),h(this,_0x29cb97(0x291),0x3a4fc880),h(this,_0x29cb97(0x1a7)+'e',0x0),h(this,_0x29cb97(0x209),0x0),h(this,_0x29cb97(0x1bc),0x0),h(this,'firstEntry',0x0),h(this,_0x29cb97(0x1b4)+'ry',-0x1),h(this,_0x29cb97(0x1c5),0x0),h(this,_0x29cb97(0x18d)+'n','1.5'),h(this,_0x29cb97(0x2a3)+_0x29cb97(0x3a4),_0x29cb97(0x3e7)),h(this,'resetTotal',0x0),h(this,_0x29cb97(0x310),0x0),h(this,_0x29cb97(0x288)+'d',0x0),h(this,_0x29cb97(0x17b),Buffer[_0x29cb97(0x2a9)]('','hex')),h(this,_0x29cb97(0x1b8)+_0x29cb97(0x405),[]),h(this,_0x29cb97(0x1b8)+_0x29cb97(0x2f7),[]),h(this,'firmwareDa'+'ta',Buffer[_0x29cb97(0x2a9)]('',_0x29cb97(0x397))),h(this,_0x29cb97(0x424)+_0x29cb97(0x309),!0x1),h(this,_0x29cb97(0x317)+'ug',!0x1),h(this,_0x29cb97(0x353)+'or',!0x1),h(this,_0x29cb97(0x380)+_0x29cb97(0x2c3),!0x1),h(this,_0x29cb97(0x305),!0x1),h(this,_0x29cb97(0x41a)+'ting',!0x1),h(this,_0x29cb97(0x3a7)+_0x29cb97(0x29b)+_0x29cb97(0x37d),!0x1),h(this,_0x29cb97(0x3a7)+'dHistoryRe'+_0x29cb97(0x18b),!0x1),h(this,_0x29cb97(0x3dc)+'ne',!0x0),h(this,_0x29cb97(0x170)+'tal',!0x1),h(this,_0x29cb97(0x268)+'nt',!0x1),h(this,'addTimesOp'+_0x29cb97(0x237),!0x1),h(this,_0x29cb97(0x2de)+_0x29cb97(0x42f),!0x1),h(this,_0x29cb97(0x258)+'t',0x0),h(this,_0x29cb97(0x3f3)+_0x29cb97(0x37b),!0x1),h(this,_0x29cb97(0x290)+'ve',!0x0),h(this,'addFakeSwi'+_0x29cb97(0x2e3),!0x1),h(this,_0x29cb97(0x341),Buffer[_0x29cb97(0x2a9)]('',_0x29cb97(0x397))),h(this,'sigTable',[]),h(this,_0x29cb97(0x210),[{'tag':0x1,'length':0x2,'factor':0x64,'precision':0x2,'entryName':_0x29cb97(0x2b6)+'e'},{'tag':0x2,'length':0x2,'factor':0x64,'precision':0x2,'entryName':'humidity'},{'tag':0x3,'length':0x2,'factor':0xa,'precision':0x0,'entryName':_0x29cb97(0x31b)},{'tag':0x6,'length':0x1,'factor':0x1,'precision':0x0,'entryName':'contact'},{'tag':0x7,'length':0x2,'factor':0xa,'precision':0x2,'entryName':_0x29cb97(0x30d)+'n'},{'tag':0xb,'length':0x2,'factor':0xa,'precision':0x2,'entryName':_0x29cb97(0x2e6)},{'tag':0xc,'length':0x2,'factor':0xa,'precision':0x2,'entryName':_0x29cb97(0x35a)},{'tag':0xd,'length':0x2,'factor':0x64,'precision':0x2,'entryName':_0x29cb97(0x1d3)},{'tag':0xe,'length':0x1,'factor':0x1,'precision':0x0,'entryName':_0x29cb97(0x266)},{'tag':0x13,'length':0x1,'factor':0x1,'precision':0x0,'entryName':_0x29cb97(0x3da)},{'tag':0x17,'length':0x1,'factor':0x1,'precision':0x0,'entryName':_0x29cb97(0x340)+_0x29cb97(0x3ed)},{'tag':0x18,'length':0x1,'factor':0x1,'precision':0x0,'entryName':_0x29cb97(0x2a2)+_0x29cb97(0x2b7)},{'tag':0x19,'length':0x1,'factor':0x1,'precision':0x0,'entryName':_0x29cb97(0x334)+_0x29cb97(0x1e8)},{'tag':0x1a,'length':0x1,'factor':0x1,'precision':0x0,'entryName':_0x29cb97(0x2f1)+_0x29cb97(0x445)},{'tag':0x22,'length':0x2,'factor':0x1,'precision':0x0,'entryName':_0x29cb97(0x1c0)},{'tag':0x24,'length':0x1,'factor':0x1,'precision':0x0,'entryName':_0x29cb97(0x21d)},{'tag':0x28,'length':0x1,'factor':0x1,'precision':0x0,'entryName':'airquality'},{'tag':0x30,'length':0x2,'factor':0x1,'precision':0x0,'entryName':'lux'}]),h(this,'tagsMap',new Map(this[_0x29cb97(0x210)][_0x29cb97(0x30e)](_0x4819f2=>[_0x4819f2[_0x29cb97(0x28a)],_0x4819f2]))),h(this,_0x29cb97(0x260)+'ap',new Map(this[_0x29cb97(0x210)][_0x29cb97(0x30e)](_0xfe68d4=>[_0xfe68d4[_0x29cb97(0x37a)],_0xfe68d4]))),h(this,_0x29cb97(0x3fe)),h(this,_0x29cb97(0x239)+_0x29cb97(0x3b5)),h(this,_0x29cb97(0x318)+'e',''),h(this,_0x29cb97(0x387)+'ut'),h(this,_0x29cb97(0x3cc)+_0x29cb97(0x368),[]),h(this,_0x29cb97(0x3e0)+_0x29cb97(0x2db),[]),h(this,_0x29cb97(0x3fc)+_0x29cb97(0x3f4),{'time':0x0}),h(this,_0x29cb97(0x2f5)+_0x29cb97(0x2ab),[_0x29cb97(0x266),_0x29cb97(0x3da),_0x29cb97(0x335),'leak',_0x29cb97(0x328),_0x29cb97(0x21d),_0x29cb97(0x340)+_0x29cb97(0x3ed),_0x29cb97(0x2a2)+_0x29cb97(0x2b7),'positionst'+'ate',_0x29cb97(0x2f1)+'ndetected']),h(this,_0x29cb97(0x329)+'ys',[_0x29cb97(0x30d)+'n',_0x29cb97(0x2e6),'voltage',_0x29cb97(0x1d3),'lux',_0x29cb97(0x2b6)+'e',_0x29cb97(0x27a),'pressure',_0x29cb97(0x2f6),_0x29cb97(0x1c0),'co','co2',_0x29cb97(0x27e)+'d',_0x29cb97(0x2c2),_0x29cb97(0x1a0),'lqi']),h(this,_0x29cb97(0x3d8)+_0x29cb97(0x2ab),[_0x29cb97(0x335)]),h(this,_0x29cb97(0x327)+'er',null),h(this,'tlvConfigD'+'ataFields',[{'field':0x0,'type':0x1,'name':_0x29cb97(0x18c)},{'field':0x3,'type':0x2,'name':_0x29cb97(0x2e5)+'rsion'},{'field':0x4,'type':0x0,'name':_0x29cb97(0x1eb)+'er'},{'field':0x20,'type':0x1,'name':'>Status\x20LE'+'D'},{'field':0x60,'type':0x1,'name':'<Status\x20LE'+'D'},{'field':0x30,'type':0x1,'name':_0x29cb97(0x3f0)+'tion'},{'field':0x70,'type':0x1,'name':_0x29cb97(0x34f)+'tion'},{'field':0x71,'type':0x2,'name':_0x29cb97(0x449)},{'field':0x72,'type':0x0,'name':_0x29cb97(0x2ad)+_0x29cb97(0x3db)},{'field':0x80,'type':0x0,'name':'>Only\x20In\x20D'+_0x29cb97(0x3db)},{'field':0xb,'type':0x2,'name':_0x29cb97(0x36e)},{'field':0x9c,'type':0x1,'name':_0x29cb97(0x3b9)},{'field':0xe0,'type':0x1,'name':_0x29cb97(0x338)+'d'},{'field':0xf0,'type':0x1,'name':'>CoverSetP'+_0x29cb97(0x3d3)},{'field':0xf2,'type':0x1,'name':_0x29cb97(0x376)+_0x29cb97(0x189)},{'field':0xf3,'type':0x0,'name':_0x29cb97(0x2df)+_0x29cb97(0x1c7)},{'field':0xf9,'type':0x1,'name':_0x29cb97(0x2c9)},{'field':0xff,'type':0x0,'name':_0x29cb97(0x1ab)+'us'},{'field':0xd0,'type':0x4,'name':_0x29cb97(0x36e)+'0000'},{'field':0x44,'type':0x0,'name':_0x29cb97(0x32d)+_0x29cb97(0x314)},{'field':0x45,'type':0x0,'name':_0x29cb97(0x358)+_0x29cb97(0x3e4)},{'field':0x46,'type':0x0,'name':_0x29cb97(0x2dc)+_0x29cb97(0x3a5)},{'field':0x47,'type':0x0,'name':_0x29cb97(0x350)},{'field':0x48,'type':0x0,'name':'Schedule48'},{'field':0x49,'type':0x0,'name':_0x29cb97(0x183)},{'field':0x4a,'type':0x0,'name':_0x29cb97(0x31c)},{'field':0x4b,'type':0x4,'name':_0x29cb97(0x378)+_0x29cb97(0x1bf)},{'field':0x51,'type':0x1,'name':'Weather01'},{'field':0x65,'type':0x1,'name':_0x29cb97(0x447)+_0x29cb97(0x180)},{'field':0x6a,'type':0x1,'name':_0x29cb97(0x2dd)+'A'},{'field':0x6b,'type':0x1,'name':_0x29cb97(0x2dd)+'B'},{'field':0x6c,'type':0x1,'name':'Transition'+'C'},{'field':0xb1,'type':0x2,'name':_0x29cb97(0x2e7)+_0x29cb97(0x2bb)},{'field':0xd2,'type':0x0,'name':_0x29cb97(0x1be)+_0x29cb97(0x2f3)}]),(this[_0x29cb97(0x178)]=_0x313b72,this['name']=_0x2cc3d7,this[_0x29cb97(0x1ff)+_0x29cb97(0x29e)]=_0x449f4f,this[_0x29cb97(0x430)]=Object[_0x29cb97(0x41d)]({'enableDebug':!0x0,'enableAutopilot':!0x1,'enableConfigData':!0x1,'historySize':0xfc0,'timerMinutes':0xa,'fileName':_0x2cc3d7+(_0x29cb97(0x3b4)+_0x29cb97(0x27d)),'filePath':'.'},_0x449f4f),this['historyFil'+'e']=this[_0x29cb97(0x430)][_0x29cb97(0x202)]?_0x3c9860[_0x29cb97(0x40b)](this[_0x29cb97(0x430)]['filePath'],this[_0x29cb97(0x430)][_0x29cb97(0x1d7)]):this[_0x29cb97(0x430)][_0x29cb97(0x1d7)],this[_0x29cb97(0x1bc)]=this['params'][_0x29cb97(0x326)+'e'],this[_0x29cb97(0x1a7)+'e']=this[_0x29cb97(0x3dd)](),this[_0x29cb97(0x305)]=!0x0,this[_0x29cb97(0x3fe)]={'firstEntry':0x0,'lastEntry':0x0,'memorySize':this[_0x29cb97(0x1bc)],'initialTime':this[_0x29cb97(0x1a7)+'e'],'timeOffset':this[_0x29cb97(0x209)],'resetTotal':0x0,'lastEvent':0x0,'timesOpened':0x0,'fileVersion':this['fileVersio'+'n'],'historyVersion':this[_0x29cb97(0x2a3)+_0x29cb97(0x3a4)],'lastValues':this[_0x29cb97(0x3fc)+_0x29cb97(0x3f4)],'history':[{'time':this[_0x29cb97(0x3dd)](),'setRefTime':0x4}],'extra':void 0x0});}async['close'](){const _0x3415a3=_0x5d3104;this[_0x3415a3(0x327)+'er']&&clearInterval(this[_0x3415a3(0x327)+'er']),this['averageTim'+'er']=null,this[_0x3415a3(0x387)+'ut']&&clearInterval(this[_0x3415a3(0x387)+'ut']),this['queueTimeo'+'ut']=void 0x0,this[_0x3415a3(0x239)+_0x3415a3(0x3b5)]&&clearTimeout(this['writingTim'+_0x3415a3(0x3b5)]),this[_0x3415a3(0x239)+_0x3415a3(0x3b5)]=void 0x0,this[_0x3415a3(0x424)+_0x3415a3(0x309)]=!0x1,this[_0x3415a3(0x353)+'or']=!0x0,this[_0x3415a3(0x380)+'sed']=!0x0;}[_0x5d3104(0x38e)+_0x5d3104(0x2aa)](){const _0x3d8173=_0x5d3104;return this[_0x3d8173(0x424)+_0x3d8173(0x309)]?this[_0x3d8173(0x1a7)+'e']:(this[_0x3d8173(0x178)][_0x3d8173(0x3ec)](_0x3d8173(0x38e)+_0x3d8173(0x343)+'led\x20before'+'\x20history\x20i'+'s\x20loaded\x20f'+_0x3d8173(0x283)+_0x133467+this[_0x3d8173(0x455)]+_0x1fd86a),this[_0x3d8173(0x3dd)]());}[_0x5d3104(0x2bd)+'set'](){const _0x1c0bb6=_0x5d3104;return this['historyLoa'+_0x1c0bb6(0x309)]?this[_0x1c0bb6(0x209)]:(this[_0x1c0bb6(0x178)][_0x1c0bb6(0x3ec)](_0x1c0bb6(0x2bd)+_0x1c0bb6(0x3f6)+_0x1c0bb6(0x3ab)+'history\x20is'+_0x1c0bb6(0x27b)+'r\x20'+_0x133467+this[_0x1c0bb6(0x455)]+_0x1fd86a),0x0);}[_0x5d3104(0x404)+'try'](){const _0x9a2625=_0x5d3104;return this[_0x9a2625(0x296)];}[_0x5d3104(0x3af)+'ry'](){const _0x1bc1e9=_0x5d3104;return this[_0x1bc1e9(0x1c5)];}[_0x5d3104(0x415)+_0x5d3104(0x17a)](_0x5046c5){const _0x550d6c=_0x5d3104;this[_0x550d6c(0x3dc)+'ne']=_0x5046c5;}[_0x5d3104(0x436)+'nt'](){const _0x5898af=_0x5d3104;return this[_0x5898af(0x310)];}[_0x5d3104(0x1a2)+'nt'](){const _0x5d08fd=_0x5d3104;this[_0x5d08fd(0x310)]=this[_0x5d08fd(0x3dd)]()-this[_0x5d08fd(0x38e)+'Time']();}['getTimesOp'+'ened'](){return this['timesOpene'+'d'];}[_0x5d3104(0x1c2)+_0x5d3104(0x400)](){const _0x38ba0c=_0x5d3104;return this[_0x38ba0c(0x288)+'d']=this[_0x38ba0c(0x288)+'d']+0x1;}['getEntryAd'+_0x5d3104(0x179)](_0x41b420){const _0x2d5762=_0x5d3104;return _0x439727(_0x41b420>=this[_0x2d5762(0x296)],_0x347d6e+(_0x2d5762(0x30c)+'ess(')+_0x41b420+(_0x2d5762(0x267)+'try\x20not\x20>='+_0x2d5762(0x235)+_0x2d5762(0x25a))+_0x512b50+this[_0x2d5762(0x455)]+_0x1fd86a),_0x439727(_0x41b420<=this['lastEntry'],_0x347d6e+(_0x2d5762(0x30c)+_0x2d5762(0x33c))+_0x41b420+(_0x2d5762(0x267)+_0x2d5762(0x17d)+_0x2d5762(0x29f)+_0x2d5762(0x182))+_0x512b50+this['name']+_0x1fd86a),this[_0x2d5762(0x296)]>0x0,_0x41b420%this[_0x2d5762(0x1bc)];}[_0x5d3104(0x453)](_0x295bbc){const _0xa9b42=_0x5d3104;return this['historyLog'][_0xa9b42(0x1f4)][this['getEntryAd'+'dress'](_0x295bbc)];}['setEntry'](_0xae686e,_0x384721){const _0x3df49a=_0x5d3104;this[_0x3df49a(0x3fe)]['history'][this[_0x3df49a(0x255)+'dress'](_0xae686e)]=_0x384721;}['tlvDataToV'+'alue'](_0x3bc186,_0x15fe6e){const _0xae5152=_0x5d3104;if(!_0x3bc186||_0x15fe6e[_0xae5152(0x370)]===0x0)return'';switch(_0x3bc186[_0xae5152(0x18a)]){case 0x4:return _0x15fe6e['toString']();case 0x4b:return _0xae5152(0x44f)+_0x15fe6e[_0xae5152(0x24e)+'LE']()/0x64+(_0xae5152(0x356)+'\x20')+_0x15fe6e[_0xae5152(0x24e)+'LE'](0x2)/0x64;case 0x72:return _0x15fe6e[_0xae5152(0x289)](_0xae5152(0x397))==='0000ffff'?_0xae5152(0x344):_0xae5152(0x19a)+_0xae5152(0x1e9)+_0x15fe6e[_0xae5152(0x24e)+'LE'](0x2);}switch(_0x3bc186[_0xae5152(0x2fb)]){case 0x1:return _0x15fe6e[_0xae5152(0x1a9)]();case 0x2:return _0x15fe6e[_0xae5152(0x24e)+'LE']();case 0x4:return _0x15fe6e[_0xae5152(0x38f)+'LE']();default:return'';}}[_0x5d3104(0x40a)+_0x5d3104(0x2fe)](_0x48e100){const _0x19bb06=_0x5d3104;let _0x5e4033=Buffer[_0x19bb06(0x1df)](0x1000),_0x274a6d=0x0;return _0x48e100[_0x19bb06(0x1b5)](_0x43f594=>{const _0x1ed3d2=_0x19bb06;_0x5e4033[_0x1ed3d2(0x3c1)](_0x43f594[_0x1ed3d2(0x18a)],_0x274a6d),_0x274a6d=_0x274a6d+0x1,_0x5e4033['writeUInt8'](_0x43f594[_0x1ed3d2(0x370)],_0x274a6d),_0x274a6d=_0x274a6d+0x1,_0x43f594[_0x1ed3d2(0x19d)]['copy'](_0x5e4033,_0x274a6d),_0x274a6d=_0x274a6d+_0x43f594[_0x1ed3d2(0x370)];}),_0x5e4033=_0x5e4033[_0x19bb06(0x1f8)](0x0,_0x274a6d),_0x5e4033;}[_0x5d3104(0x42c)+'igData'](_0x915a2e,_0x210147=this['tlvConfigD'+'ataGet']){const _0x5ee2b6=_0x5d3104;let _0x54c689='ConfigData'+'('+_0x915a2e[_0x5ee2b6(0x370)]+_0x5ee2b6(0x33f)+_0x915a2e[_0x5ee2b6(0x289)](_0x5ee2b6(0x397))+']';for(let _0x5e5c9d=0x0;_0x5e5c9d<_0x915a2e['length'];){let _0x13f5ad=_0x915a2e[_0x5ee2b6(0x1a9)](_0x5e5c9d),_0xf70169=_0x915a2e[_0x5ee2b6(0x1a9)](_0x5e5c9d+0x1),_0x70db99=Buffer[_0x5ee2b6(0x1df)](_0xf70169);_0x915a2e[_0x5ee2b6(0x31a)](_0x70db99,0x0,_0x5e5c9d+0x2,_0x5e5c9d+0x2+_0xf70169);let _0x20d616=_0x210147[_0x5ee2b6(0x23f)](_0x3550c9=>_0x3550c9['field']===_0x13f5ad);if(_0x20d616){if(_0x20d616[_0x5ee2b6(0x19d)][_0x5ee2b6(0x289)](_0x5ee2b6(0x397))!==_0x70db99[_0x5ee2b6(0x289)]('hex')){_0x20d616['updated']=!0x0;let _0x2e4509=this['tlvConfigD'+'ataFields'][_0x5ee2b6(0x23f)](_0x4aeef2=>_0x4aeef2[_0x5ee2b6(0x18a)]===_0x13f5ad);_0x20d616[_0x5ee2b6(0x220)]=this[_0x5ee2b6(0x412)+'alue'](_0x2e4509,_0x70db99);}_0x20d616[_0x5ee2b6(0x370)]=_0xf70169,_0x20d616[_0x5ee2b6(0x19d)]=_0x70db99;}else{let _0x1f8c49=this[_0x5ee2b6(0x1b8)+_0x5ee2b6(0x300)][_0x5ee2b6(0x23f)](_0x2fc2db=>_0x2fc2db[_0x5ee2b6(0x18a)]===_0x13f5ad),_0x12319c=this[_0x5ee2b6(0x412)+_0x5ee2b6(0x2d8)](_0x1f8c49,_0x70db99);_0x210147[_0x5ee2b6(0x1fc)]({'field':_0x13f5ad,'name':_0x1f8c49?_0x1f8c49[_0x5ee2b6(0x455)]:'','length':_0xf70169,'data':_0x70db99,'updated':!0x1,'value':_0x12319c});}_0x5e5c9d+=_0xf70169+0x2;}return _0x210147[_0x5ee2b6(0x1b5)](_0x21362d=>{const _0x2afc6e=_0x5ee2b6;_0x54c689+=_0x2afc6e(0x206)+_0x21362d[_0x2afc6e(0x18a)][_0x2afc6e(0x289)](0x10)[_0x2afc6e(0x1cf)](0x2,'0')+'\x20name:\x20'+_0x21362d[_0x2afc6e(0x455)][_0x2afc6e(0x428)](0x14,'\x20')+_0x2afc6e(0x217)+_0x21362d['length'][_0x2afc6e(0x289)](0xa)[_0x2afc6e(0x1cf)](0x2,'\x20')+_0x2afc6e(0x3aa)+_0x21362d[_0x2afc6e(0x34d)]+_0x2afc6e(0x2c5)+_0x21362d['data'][_0x2afc6e(0x289)]('hex')+']='+_0x21362d['value'];}),_0x54c689;}[_0x5d3104(0x17b)+_0x5d3104(0x3f9)](_0x2d8f63){const _0x1abc94=_0x5d3104;let _0x225e43=_0x1abc94(0x17b)+':';return _0x2d8f63[_0x1abc94(0x1b5)](_0x1f34a4=>{const _0x27b804=_0x1abc94;_0x225e43=_0x225e43+('\x0afield:\x20'+_0x1f34a4[_0x27b804(0x18a)][_0x27b804(0x289)](0x10)[_0x27b804(0x1cf)](0x2,'0')+'\x20name:\x20'+_0x1f34a4[_0x27b804(0x455)][_0x27b804(0x428)](0x14,'\x20')+'\x20length:\x20'+_0x1f34a4[_0x27b804(0x370)][_0x27b804(0x289)](0xa)[_0x27b804(0x1cf)](0x2,'\x20')+_0x27b804(0x3aa)+_0x1f34a4[_0x27b804(0x34d)]+'\x20data:\x20['+_0x1f34a4[_0x27b804(0x19d)][_0x27b804(0x289)]('hex')+']='+_0x1f34a4['value']);}),_0x225e43;}[_0x5d3104(0x1f6)+_0x5d3104(0x3de)](_0x2bf180,_0x12d8a4){const _0x214214=_0x5d3104;this[_0x214214(0x178)][_0x214214(0x362)](_0x214214(0x1f6)+_0x214214(0x3de)+':',_0x2bf180,_0x12d8a4),_0x2bf180=Math[_0x214214(0x336)](_0x2bf180),_0x12d8a4=Math[_0x214214(0x2d2)](_0x12d8a4);let _0xee69fd=Buffer[_0x214214(0x2a9)](_0x214214(0x34e)+'00',_0x214214(0x397));_0xee69fd[_0x214214(0x208)+_0x214214(0x21b)](_0x2bf180*0x64,0x2),_0xee69fd[_0x214214(0x208)+_0x214214(0x21b)](_0x12d8a4*0x64,0x4),this[_0x214214(0x42c)+_0x214214(0x2fe)](_0xee69fd,this[_0x214214(0x1b8)+_0x214214(0x405)]),this['configData']=this['encodeConf'+_0x214214(0x2fe)](this[_0x214214(0x1b8)+_0x214214(0x405)]),this[_0x214214(0x42c)+_0x214214(0x2fe)](this[_0x214214(0x17b)],this[_0x214214(0x1b8)+_0x214214(0x405)]);}[_0x5d3104(0x26f)+'oryStatus'](_0x23f15f){const _0x26446e=_0x5d3104;this[_0x26446e(0x424)+'ded']=!0x0;let _0x2dff0b=0x1+_0x23f15f[_0x26446e(0x1a9)](0xc)*0x2;this[_0x26446e(0x341)]=_0x23f15f[_0x26446e(0x1f8)](0xc,0xc+_0x2dff0b);let _0x22c99c=0x0;this[_0x26446e(0x2c7)]=[];for(let _0xd93c55=0x0;_0xd93c55<_0x23f15f[_0x26446e(0x1a9)](0xc);_0xd93c55++){let _0x1d0abb=_0x23f15f[_0x26446e(0x1a9)](0xd+_0xd93c55*0x2),_0x494d7e=_0x23f15f[_0x26446e(0x1a9)](0xe+_0xd93c55*0x2),_0xc3bca6={'tag':_0x1d0abb,'length':this['tagsMap'][_0x26446e(0x274)](_0x1d0abb)['length'],'factor':this[_0x26446e(0x2ee)][_0x26446e(0x274)](_0x1d0abb)[_0x26446e(0x324)],'precision':this[_0x26446e(0x2ee)][_0x26446e(0x274)](_0x1d0abb)[_0x26446e(0x2b9)],'bitmask':Math['pow'](0x2,_0x22c99c++),'entryName':this[_0x26446e(0x2ee)][_0x26446e(0x274)](_0x1d0abb)[_0x26446e(0x37a)]};this[_0x26446e(0x2c7)][_0x26446e(0x1fc)](_0xc3bca6);}let _0x3f39a3=_0x23f15f['readUInt32'+'LE'](0x0);this[_0x26446e(0x209)]=_0x23f15f[_0x26446e(0x38f)+'LE'](0x4);let _0x1d148f=_0x23f15f[_0x26446e(0x38f)+'LE'](0x8);this[_0x26446e(0x1a7)+'e']=_0x23f15f['readUInt32'+'LE'](0x8)+this[_0x26446e(0x291)];let _0x35e0eb=_0x23f15f[_0x26446e(0x24e)+'LE'](0xc+_0x2dff0b);this[_0x26446e(0x1bc)]=_0x23f15f[_0x26446e(0x24e)+'LE'](0xe+_0x2dff0b),this[_0x26446e(0x296)]=_0x23f15f[_0x26446e(0x38f)+'LE'](0x10+_0x2dff0b);let _0x54b92f=_0x23f15f[_0x26446e(0x38f)+'LE'](0x14+_0x2dff0b);return this['lastEntry']=this[_0x26446e(0x296)]+_0x35e0eb-0x1,this[_0x26446e(0x3d6)+_0x26446e(0x1ba)+'g'](_0x23f15f);}[_0x5d3104(0x352)+'oryStatus'](){const _0x415033=_0x5d3104;this[_0x415033(0x3a7)+_0x415033(0x29b)+_0x415033(0x37d)]&&this[_0x415033(0x178)][_0x415033(0x43b)](_0x415033(0x22f)+_0x415033(0x28b)+_0x415033(0x39f)+_0x1fd86a);let _0x5303af=0x0,_0xd09d47=Buffer[_0x415033(0x1df)](0x400);return _0xd09d47[_0x415033(0x339)+_0x415033(0x409)](Math['floor'](Date[_0x415033(0x3dd)]()/0x3e8)-this['initialTim'+'e'],_0x5303af),_0x5303af+=0x4,_0xd09d47['writeUInt3'+_0x415033(0x409)](this[_0x415033(0x209)],_0x5303af),_0x5303af+=0x4,_0xd09d47[_0x415033(0x339)+_0x415033(0x409)](this[_0x415033(0x1a7)+'e']-this['eveEpoch'],_0x5303af),_0x5303af+=0x4,this[_0x415033(0x341)]['copy'](_0xd09d47,_0x5303af),_0x5303af+=this[_0x415033(0x341)][_0x415033(0x370)],_0xd09d47['writeUInt1'+_0x415033(0x21b)](this[_0x415033(0x3a7)+_0x415033(0x29b)+_0x415033(0x37d)]?0x1:this[_0x415033(0x1c5)]-this['firstEntry']+0x1,_0x5303af),_0x5303af+=0x2,_0xd09d47[_0x415033(0x208)+_0x415033(0x21b)](this[_0x415033(0x1bc)],_0x5303af),_0x5303af+=0x2,_0xd09d47[_0x415033(0x339)+_0x415033(0x409)](this[_0x415033(0x296)],_0x5303af),_0x5303af+=0x4,_0xd09d47[_0x415033(0x339)+_0x415033(0x409)](this['historyLog']['history'][this[_0x415033(0x255)+_0x415033(0x179)](this['firstEntry'])][_0x415033(0x413)]-this[_0x415033(0x1a7)+'e'],_0x5303af),_0x5303af+=0x4,_0xd09d47[_0x415033(0x3c1)](0x1,_0x5303af),_0x5303af+=0x1,_0xd09d47[_0x415033(0x3c1)](0x0,_0x5303af),_0x5303af+=0x1,_0xd09d47=_0xd09d47[_0x415033(0x1f8)](0x0,_0x5303af),this[_0x415033(0x3a7)+_0x415033(0x29b)+_0x415033(0x37d)]=!0x1,_0xd09d47;}[_0x5d3104(0x3d6)+_0x5d3104(0x1ba)+'g'](_0x18324c){const _0x13192f=_0x5d3104;let _0x5c6e78=0x1+_0x18324c[_0x13192f(0x1a9)](0xc)*0x2,_0xff5a35=_0x18324c[_0x13192f(0x38f)+'LE'](0x8),_0x1ee834=_0x18324c[_0x13192f(0x38f)+'LE'](0x4);return'HistorySta'+'tus:\x20['+_0x18324c['toString']('hex',0x0,0x4)+']'+_0x18324c['readUInt32'+'LE'](0x0)+'='+this[_0x13192f(0x3ba)+_0x13192f(0x2da)](_0x18324c[_0x13192f(0x38f)+'LE'](0x0)+this[_0x13192f(0x291)]+_0xff5a35-_0x1ee834)+'\x20['+_0x18324c[_0x13192f(0x289)](_0x13192f(0x397),0x4,0x8)+']'+_0x18324c[_0x13192f(0x38f)+'LE'](0x4)+'\x20['+_0x18324c[_0x13192f(0x289)]('hex',0x8,0xc)+']'+_0x18324c['readUInt32'+'LE'](0x8)+'='+this[_0x13192f(0x3ba)+_0x13192f(0x3cd)+_0x13192f(0x2ea)](_0x18324c[_0x13192f(0x38f)+'LE'](0x8)-_0x1ee834)+'\x20['+_0x18324c[_0x13192f(0x289)]('hex',0xc,0xc+_0x5c6e78)+_0x13192f(0x3d2)+_0x18324c[_0x13192f(0x289)](_0x13192f(0x397),0xc+_0x5c6e78,0xe+_0x5c6e78)+']'+_0x18324c[_0x13192f(0x24e)+'LE'](0xc+_0x5c6e78)+'\x20['+_0x18324c[_0x13192f(0x289)](_0x13192f(0x397),0xe+_0x5c6e78,0x10+_0x5c6e78)+']'+_0x18324c[_0x13192f(0x24e)+'LE'](0xe+_0x5c6e78)+'\x20['+_0x18324c['toString'](_0x13192f(0x397),0x10+_0x5c6e78,0x14+_0x5c6e78)+']'+_0x18324c[_0x13192f(0x38f)+'LE'](0x10+_0x5c6e78)+'\x20['+_0x18324c[_0x13192f(0x289)](_0x13192f(0x397),0x14+_0x5c6e78,0x18+_0x5c6e78)+']'+_0x18324c[_0x13192f(0x38f)+'LE'](0x14+_0x5c6e78)+'='+this[_0x13192f(0x3ba)+_0x13192f(0x3cd)+_0x13192f(0x2ea)](_0x18324c[_0x13192f(0x38f)+'LE'](0x14+_0x5c6e78)+_0xff5a35-_0x1ee834)+'\x20['+_0x18324c[_0x13192f(0x289)]('hex',0x18+_0x5c6e78,0x19+_0x5c6e78)+']\x20['+_0x18324c[_0x13192f(0x289)](_0x13192f(0x397),0x19+_0x5c6e78,0x1a+_0x5c6e78)+']';}[_0x5d3104(0x26f)+_0x5d3104(0x3a2)](_0x5e1d78){const _0x519d25=_0x5d3104;let _0x5080fa=_0x5e1d78[_0x519d25(0x1a9)](0x0),_0x1d5a6a=_0x5e1d78[_0x519d25(0x38f)+'LE'](0x1),_0x1d3650=_0x5e1d78[_0x519d25(0x38f)+'LE'](0x5),_0x1703e9=_0x5e1d78['readUInt8'](0x9),_0x1e4fc2=0xa,_0x5b9b02={'time':_0x1d3650+this['initialTim'+'e']-this['timeOffset']};return _0x1703e9>0x0&&_0x1703e9<0x80?this[_0x519d25(0x2c7)][_0x519d25(0x1b5)](_0xa55e0e=>{const _0x44ef77=_0x519d25;_0xa55e0e[_0x44ef77(0x2bc)]&_0x1703e9&&(console[_0x44ef77(0x178)](_0x44ef77(0x286)+_0x1e4fc2+(_0x44ef77(0x227)+_0x44ef77(0x185))+_0xa55e0e[_0x44ef77(0x2bc)][_0x44ef77(0x289)](0x2)[_0x44ef77(0x1cf)](0x8,'0')+_0x44ef77(0x41e)+_0xa55e0e[_0x44ef77(0x28a)][_0x44ef77(0x289)](0x10)[_0x44ef77(0x1cf)](0x2,'0')+_0x44ef77(0x355)+_0xa55e0e['length']+_0x44ef77(0x1cc)+_0xa55e0e[_0x44ef77(0x324)]+_0x44ef77(0x39a)+_0xa55e0e[_0x44ef77(0x37a)]),_0xa55e0e['length']===0x1?_0x5b9b02[_0xa55e0e[_0x44ef77(0x37a)]]=_0x5e1d78[_0x44ef77(0x1a9)](_0x1e4fc2)/_0xa55e0e[_0x44ef77(0x324)]:_0xa55e0e[_0x44ef77(0x370)]===0x2?_0x5b9b02[_0xa55e0e[_0x44ef77(0x37a)]]=_0x5e1d78[_0x44ef77(0x199)+'E'](_0x1e4fc2)/_0xa55e0e[_0x44ef77(0x324)]:_0xa55e0e[_0x44ef77(0x370)]===0x4&&(_0x5b9b02[_0xa55e0e['entryName']]=_0x5e1d78[_0x44ef77(0x262)+'E'](_0x1e4fc2)/_0xa55e0e[_0x44ef77(0x324)]),_0x1e4fc2+=_0xa55e0e['length']);}):_0x1703e9>=0x80&&(_0x5b9b02[_0x519d25(0x305)]=_0x1703e9-0x80),console[_0x519d25(0x178)](_0x3ee4a5(_0x5b9b02)),this[_0x519d25(0x1c5)]=_0x1d5a6a,this[_0x519d25(0x296)]=Math[_0x519d25(0x1ec)](0x0,this[_0x519d25(0x1c5)]-this[_0x519d25(0x1bc)]+0x1),this[_0x519d25(0x2ce)](_0x1d5a6a,_0x5b9b02),this['historyEnt'+_0x519d25(0x304)](_0x5e1d78);}[_0x5d3104(0x352)+_0x5d3104(0x3a2)](_0x3e677a){const _0x2b7d4e=_0x5d3104;let _0x1bac01=Buffer[_0x2b7d4e(0x1df)](0x400,0x0),_0x113c00=this[_0x2b7d4e(0x453)](_0x3e677a),_0x121e00=0xa,_0x3b89fd=0x0;return _0x1bac01[_0x2b7d4e(0x339)+_0x2b7d4e(0x409)](_0x3e677a,0x1),_0x1bac01[_0x2b7d4e(0x339)+'2LE'](_0x113c00[_0x2b7d4e(0x413)]-this[_0x2b7d4e(0x1a7)+'e'],0x5),Object[_0x2b7d4e(0x450)][_0x2b7d4e(0x1d1)+_0x2b7d4e(0x244)][_0x2b7d4e(0x1d9)](_0x113c00,_0x2b7d4e(0x305))?(_0x121e00=0x15,_0x3b89fd=0x80+_0x113c00[_0x2b7d4e(0x305)],_0x3b89fd===0x81&&_0x1bac01[_0x2b7d4e(0x339)+_0x2b7d4e(0x409)](_0x113c00[_0x2b7d4e(0x413)]-this[_0x2b7d4e(0x291)],0xa)):Object[_0x2b7d4e(0x360)](this['sigTable'])[_0x2b7d4e(0x1b5)](([_0x127329,_0x1e1280])=>{const _0x453775=_0x2b7d4e;Object[_0x453775(0x450)]['hasOwnProp'+'erty']['call'](_0x113c00,_0x1e1280[_0x453775(0x37a)])&&(_0x1e1280[_0x453775(0x370)]===0x1?_0x1bac01[_0x453775(0x3c1)](this[_0x453775(0x35f)](this[_0x453775(0x320)](_0x113c00[_0x1e1280[_0x453775(0x37a)]]*_0x1e1280[_0x453775(0x324)],0x0,0xff),_0x1e1280[_0x453775(0x2b9)]),_0x121e00):_0x1e1280[_0x453775(0x370)]===0x2?_0x1bac01['writeInt16'+'LE'](this['round'](this[_0x453775(0x320)](_0x113c00[_0x1e1280['entryName']]*_0x1e1280[_0x453775(0x324)],-0x8000,0x7fff),_0x1e1280[_0x453775(0x2b9)]),_0x121e00):_0x1e1280[_0x453775(0x370)]===0x3?_0x1bac01[_0x453775(0x2ca)+'LE'](this[_0x453775(0x35f)](this[_0x453775(0x320)](_0x113c00[_0x1e1280[_0x453775(0x37a)]]*_0x1e1280[_0x453775(0x324)],-0x8000,0x7fff),_0x1e1280[_0x453775(0x2b9)]),_0x121e00):_0x1e1280['length']===0x4&&_0x1bac01['writeInt32'+'LE'](this[_0x453775(0x35f)](this[_0x453775(0x320)](_0x113c00[_0x1e1280[_0x453775(0x37a)]]*_0x1e1280['factor'],-0x80000000,0x7fffffff),_0x1e1280[_0x453775(0x2b9)]),_0x121e00),_0x121e00+=_0x1e1280[_0x453775(0x370)],_0x3b89fd+=_0x1e1280[_0x453775(0x2bc)]);}),_0x1bac01['writeUInt8'](_0x121e00,0x0),_0x1bac01[_0x2b7d4e(0x3c1)](_0x3b89fd,0x9),_0x1bac01=_0x1bac01[_0x2b7d4e(0x1f8)](0x0,_0x121e00),_0x1bac01;}['historyEnt'+'ryToString'](_0x42f0bf){const _0x423ca9=_0x5d3104;let _0x3b303b=_0x423ca9(0x448)+_0x423ca9(0x273)+_0x42f0bf['toString'](_0x423ca9(0x397),0x0,0x1)+']'+_0x42f0bf['readUInt8'](0x0)+'\x20['+_0x42f0bf[_0x423ca9(0x289)](_0x423ca9(0x397),0x1,0x5)+']'+_0xa7561+_0x42f0bf[_0x423ca9(0x38f)+'LE'](0x1)+_0x461066+'\x20['+_0x42f0bf[_0x423ca9(0x289)]('hex',0x5,0x9)+']'+_0x42f0bf[_0x423ca9(0x38f)+'LE'](0x5)+'='+_0xa7561+this[_0x423ca9(0x3ba)+_0x423ca9(0x2da)](_0x42f0bf['readUInt32'+'LE'](0x5)+this[_0x423ca9(0x1a7)+'e']-this['timeOffset'])+_0x461066+'\x20['+_0x42f0bf[_0x423ca9(0x1a9)](0x9)[_0x423ca9(0x289)](0x2)[_0x423ca9(0x1cf)](0x8,'0')+_0x423ca9(0x3d2)+_0x42f0bf[_0x423ca9(0x289)](_0x423ca9(0x397),0xa,0xa+_0x42f0bf['readUInt8'](0x0))+']',_0x132fe8=0xa,_0x354717=_0x42f0bf[_0x423ca9(0x38f)+'LE'](0x5),_0x38fbe4=_0x42f0bf['readUInt8'](0x9),_0x457cf8={'time':_0x354717+this[_0x423ca9(0x1a7)+'e']-this[_0x423ca9(0x209)]};return this['sigTable'][_0x423ca9(0x1b5)](_0x3acdf1=>{const _0x413546=_0x423ca9;_0x3acdf1['bitmask']&_0x38fbe4&&_0x38fbe4>0x0&&_0x38fbe4<0x80&&(_0x3acdf1[_0x413546(0x370)]===0x1?_0x457cf8[_0x3acdf1[_0x413546(0x37a)]]=_0x42f0bf[_0x413546(0x1a9)](_0x132fe8)/_0x3acdf1[_0x413546(0x324)]:_0x3acdf1[_0x413546(0x370)]===0x2?_0x457cf8[_0x3acdf1['entryName']]=_0x42f0bf['readInt16L'+'E'](_0x132fe8)/_0x3acdf1['factor']:_0x3acdf1[_0x413546(0x370)]===0x4&&(_0x457cf8[_0x3acdf1[_0x413546(0x37a)]]=_0x42f0bf[_0x413546(0x262)+'E'](_0x132fe8)/_0x3acdf1[_0x413546(0x324)]),_0x132fe8+=_0x3acdf1[_0x413546(0x370)]);}),_0x38fbe4>0x0&&_0x38fbe4<0x80&&(_0x3b303b+='='+_0x3ee4a5(_0x457cf8)),_0x42f0bf[_0x423ca9(0x1a9)](0x9)===0x80&&(_0x3b303b+=_0x423ca9(0x28c)),_0x42f0bf[_0x423ca9(0x1a9)](0x9)===0x81&&(_0x3b303b+=_0x42f0bf[_0x423ca9(0x38f)+'LE'](0xa)+'='+this[_0x423ca9(0x3ba)+'String'](_0x42f0bf['readUInt32'+'LE'](0xa)+this[_0x423ca9(0x291)])),_0x42f0bf[_0x423ca9(0x1a9)](0x9)===0x84&&(_0x3b303b+='=tag84'),_0x3b303b;}[_0x5d3104(0x236)+'riesToStri'+'ng'](_0xa1beaf){const _0xfff8ca=_0x5d3104;let _0x5dd396=_0xfff8ca(0x448)+_0xfff8ca(0x3b7);for(let _0x26192b=0x0;_0x26192b<_0xa1beaf['length'];){let _0x28e146=Buffer[_0xfff8ca(0x1ca)+'rom'](_0xa1beaf,_0x26192b,_0xa1beaf[_0xfff8ca(0x1a9)](_0x26192b));_0x26192b+=_0xa1beaf[_0xfff8ca(0x1a9)](_0x26192b),_0x5dd396+='\x20['+_0x28e146[_0xfff8ca(0x289)](_0xfff8ca(0x397))+']';}return _0x5dd396;}['decodeHist'+_0x5d3104(0x2b0)](_0x3b6d15){const _0x4482e8=_0x5d3104;return this[_0x4482e8(0x305)]=!0x0,this['historySet'+_0x4482e8(0x39b)+'ng'](_0x3b6d15);}[_0x5d3104(0x352)+_0x5d3104(0x2b0)](_0x3c5a20){const _0x89fd1b=_0x5d3104;let _0x314362=(_0x3c5a20===void 0x0?Math[_0x89fd1b(0x2d2)](Date[_0x89fd1b(0x3dd)]()/0x3e8):_0x3c5a20)-this[_0x89fd1b(0x291)],_0x47c9bd=Buffer[_0x89fd1b(0x1df)](0x4);return _0x47c9bd[_0x89fd1b(0x339)+'2LE'](_0x314362),_0x47c9bd;}[_0x5d3104(0x22a)+'TimeToStri'+'ng'](_0xb20cd6){const _0x187a81=_0x5d3104;return _0x187a81(0x241)+_0x187a81(0x2d3)+_0xb20cd6['toString']('hex',0x0,0x4)+']'+_0xb20cd6[_0x187a81(0x38f)+'LE'](0x0)+'='+this[_0x187a81(0x3ba)+_0x187a81(0x2da)](_0xb20cd6[_0x187a81(0x38f)+'LE'](0x0)+this[_0x187a81(0x291)]);}[_0x5d3104(0x26f)+'oryRequest'](_0x3c9dc3){const _0x59507b=_0x5d3104;return this[_0x59507b(0x1b4)+'ry']=this[_0x59507b(0x320)](_0x3c9dc3[_0x59507b(0x38f)+'LE'](0x2),this[_0x59507b(0x296)],this[_0x59507b(0x1c5)]),this[_0x59507b(0x3a7)+_0x59507b(0x200)+'quest']&&(this[_0x59507b(0x178)][_0x59507b(0x43b)](_0x59507b(0x3a3)+_0x59507b(0x243)+_0x59507b(0x3b8)+_0x1fd86a),this['currentEnt'+'ry']=this[_0x59507b(0x296)],this[_0x59507b(0x3a7)+_0x59507b(0x200)+_0x59507b(0x18b)]=!0x1),this[_0x59507b(0x44c)+_0x59507b(0x25d)+'ng'](_0x3c9dc3);}['encodeHist'+_0x5d3104(0x1d4)](_0x5e76bf){const _0x4ff055=_0x5d3104;let _0x25f00d=Buffer[_0x4ff055(0x1df)](0x7);return _0x25f00d[_0x4ff055(0x3c1)](0x1,0x0),_0x25f00d[_0x4ff055(0x3c1)](0xff,0x1),_0x25f00d[_0x4ff055(0x339)+'2LE'](_0x5e76bf,0x2),_0x25f00d[_0x4ff055(0x3c1)](0x0,0x6),_0x25f00d;}[_0x5d3104(0x44c)+_0x5d3104(0x25d)+'ng'](_0x280621){const _0xd14802=_0x5d3104;return'HistoryReq'+_0xd14802(0x287)+_0x280621[_0xd14802(0x289)]('hex',0x0,0x1)+_0xd14802(0x3d2)+_0x280621[_0xd14802(0x289)](_0xd14802(0x397),0x1,0x2)+_0xd14802(0x3d2)+_0x280621[_0xd14802(0x289)](_0xd14802(0x397),0x2,0x6)+']'+_0x280621[_0xd14802(0x38f)+'LE'](0x2)+'\x20['+_0x280621[_0xd14802(0x289)](_0xd14802(0x397),0x6,0x7)+']';}[_0x5d3104(0x1a5)+_0x5d3104(0x186)](){const _0x3f0042=_0x5d3104;return _0x1ad28c(this[_0x3f0042(0x2c7)]);}[_0x5d3104(0x303)](_0x4f2912){const _0x6ad733=_0x5d3104;if(this[_0x6ad733(0x380)+_0x6ad733(0x2c3)]===!0x0){this[_0x6ad733(0x178)][_0x6ad733(0x3ec)](_0x6ad733(0x24a)+_0x6ad733(0x192)+_0x6ad733(0x226)+_0x6ad733(0x2e8)+_0x133467+this[_0x6ad733(0x455)]+_0x1fd86a);return;}if(this['historyErr'+'or']===!0x0){this['log'][_0x6ad733(0x3ec)]('addEntry(.'+_0x6ad733(0x192)+_0x6ad733(0x231)+_0x6ad733(0x44b)+_0x6ad733(0x3c5)+_0x133467+this['name']+_0x1fd86a);return;}if(this[_0x6ad733(0x424)+_0x6ad733(0x309)]===!0x1){this[_0x6ad733(0x178)][_0x6ad733(0x362)]('addEntry()'+_0x6ad733(0x2a1)+_0x6ad733(0x40c)+_0x6ad733(0x193)+_0x6ad733(0x249)+_0x6ad733(0x379)+_0x6ad733(0x315)+'\x20'+_0x512b50+this['name']+_0x1fd86a),this[_0x6ad733(0x3cc)+_0x6ad733(0x368)][_0x6ad733(0x1fc)](_0x4f2912),this[_0x6ad733(0x387)+'ut']||(this['queueTimeo'+'ut']=setInterval(()=>{const _0x1783db=_0x6ad733;this[_0x1783db(0x178)]['debug'](_0x1783db(0x18e)+_0x1783db(0x3e8)+_0x1783db(0x23d)+'val:\x20entri'+'es\x20in\x20the\x20'+_0x1783db(0x276)+this[_0x1783db(0x3cc)+_0x1783db(0x368)][_0x1783db(0x370)]+(_0x1783db(0x20b)+'aded:\x20')+this[_0x1783db(0x424)+_0x1783db(0x309)]+_0x1783db(0x182)+_0x512b50+this[_0x1783db(0x455)]+_0x1fd86a),this[_0x1783db(0x3cc)+_0x1783db(0x368)]['forEach']((_0x1e0acf,_0x21db65)=>{const _0x3bff6e=_0x1783db;this[_0x3bff6e(0x178)][_0x3bff6e(0x362)](_0x3bff6e(0x18e)+_0x3bff6e(0x3e8)+'ry:\x20'+_0x21db65+'\x20-\x20'+this[_0x3bff6e(0x2f4)+_0x3bff6e(0x28e)](_0x1e0acf)+_0x2eb0d8+_0x3bff6e(0x182)+_0x512b50+this['name']+_0x1fd86a);}),this[_0x1783db(0x424)+_0x1783db(0x309)]&&(clearInterval(this[_0x1783db(0x387)+'ut']),this[_0x1783db(0x387)+'ut']=void 0x0,this[_0x1783db(0x3cc)+_0x1783db(0x368)][_0x1783db(0x1b5)]((_0x49d6e5,_0x48fa5a)=>{const _0x3fe33a=_0x1783db;this[_0x3fe33a(0x303)](_0x49d6e5);}),this[_0x1783db(0x3cc)+_0x1783db(0x368)]['splice'](0x0),this[_0x1783db(0x178)][_0x1783db(0x362)](_0x1783db(0x18e)+'\x20queuedEnt'+_0x1783db(0x23d)+'val:\x20clear'+_0x1783db(0x1d8)+_0x1783db(0x315)+'\x20'+_0x512b50+this[_0x1783db(0x455)]+_0x1fd86a));},0x3e8));return;}this[_0x6ad733(0x178)]['debug']('addEntry()'+'\x20'+this[_0x6ad733(0x2f4)+'gify'](_0x4f2912)+_0x461066+'\x20for\x20'+_0x512b50+this[_0x6ad733(0x455)]);let _0x48b908={'time':_0x4f2912[_0x6ad733(0x413)]},_0x55d375={'time':_0x4f2912[_0x6ad733(0x413)]};Object[_0x6ad733(0x360)](_0x4f2912)[_0x6ad733(0x1b5)](([_0x3c7c14,_0x444026],_0x2716f5)=>{const _0x1eb506=_0x6ad733;this[_0x1eb506(0x1c5)]===0x0||_0x4f2912[_0x1eb506(0x2a7)]===0x1?_0x3c7c14!==_0x1eb506(0x2a7)&&(_0x48b908[_0x3c7c14]=_0x444026):this[_0x1eb506(0x2f5)+_0x1eb506(0x2ab)]['includes'](_0x3c7c14)?_0x444026!==this[_0x1eb506(0x3fc)+_0x1eb506(0x3f4)][_0x3c7c14]?_0x48b908[_0x3c7c14]=_0x444026:this['log'][_0x1eb506(0x362)](_0x1eb506(0x18e)+_0x1eb506(0x31e)+'ey\x20'+_0xa7561+_0x3c7c14+_0x461066+':\x20'+_0xa7561+_0x444026+_0x461066+(_0x1eb506(0x213)+_0x1eb506(0x24b)+'d')):this[_0x1eb506(0x329)+'ys'][_0x1eb506(0x29c)](_0x3c7c14)&&(_0x55d375[_0x3c7c14]=_0x444026);}),Object[_0x6ad733(0x41d)](this[_0x6ad733(0x3fc)+_0x6ad733(0x3f4)],_0x4f2912),delete this[_0x6ad733(0x3fc)+_0x6ad733(0x3f4)][_0x6ad733(0x2a7)],Object[_0x6ad733(0x3ea)](_0x48b908)[_0x6ad733(0x370)]>0x1&&this[_0x6ad733(0x432)+'teEntry'](_0x48b908),Object[_0x6ad733(0x3ea)](_0x55d375)['length']>0x1&&this[_0x6ad733(0x1c8)+'dEntry'](_0x55d375);}[_0x5d3104(0x1c8)+_0x5d3104(0x30f)](_0x138c63){const _0x38a7fe=_0x5d3104;if(this[_0x38a7fe(0x380)+_0x38a7fe(0x2c3)]===!0x0){this[_0x38a7fe(0x178)][_0x38a7fe(0x3ec)](_0x38a7fe(0x1c8)+'dEntry(..)'+_0x38a7fe(0x215)+_0x38a7fe(0x32f)+'sed\x20for\x20'+_0x133467+this[_0x38a7fe(0x455)]+_0x1fd86a);return;}if(this[_0x38a7fe(0x424)+_0x38a7fe(0x309)]===!0x1){this[_0x38a7fe(0x178)][_0x38a7fe(0x3ec)]('addAverage'+_0x38a7fe(0x23a)+_0x38a7fe(0x2a1)+'fore\x20histo'+_0x38a7fe(0x193)+'ed\x20so\x20retu'+_0x38a7fe(0x2ba)+_0x133467+this['name']+_0x1fd86a);return;}if(this[_0x38a7fe(0x353)+'or']===!0x0){this[_0x38a7fe(0x178)]['error'](_0x38a7fe(0x1c8)+_0x38a7fe(0x23a)+'\x20history\x20f'+'ile\x20error\x20'+_0x38a7fe(0x2e4)+'\x20for\x20'+_0x133467+this['name']+_0x1fd86a);return;}this[_0x38a7fe(0x178)][_0x38a7fe(0x362)](_0x38a7fe(0x1c8)+_0x38a7fe(0x43a)+this[_0x38a7fe(0x2f4)+_0x38a7fe(0x28e)](_0x138c63)+_0x461066+'\x20for\x20'+_0x512b50+this[_0x38a7fe(0x455)]),this[_0x38a7fe(0x3e0)+_0x38a7fe(0x2db)][_0x38a7fe(0x1fc)](_0x138c63);}[_0x5d3104(0x432)+'teEntry'](_0x9ccff0){const _0x58aac9=_0x5d3104;if(this[_0x58aac9(0x380)+'sed']===!0x0){this[_0x58aac9(0x178)]['error']('addImmedia'+_0x58aac9(0x32b)+')\x20history\x20'+_0x58aac9(0x1dc)+'osed\x20for\x20'+_0x133467+this[_0x58aac9(0x455)]+_0x1fd86a);return;}if(this['historyLoa'+_0x58aac9(0x309)]===!0x1){this[_0x58aac9(0x178)][_0x58aac9(0x3ec)](_0x58aac9(0x432)+_0x58aac9(0x32b)+_0x58aac9(0x1d5)+_0x58aac9(0x366)+_0x58aac9(0x1bb)+_0x58aac9(0x3ce)+_0x58aac9(0x2b1)+_0x133467+this[_0x58aac9(0x455)]+_0x1fd86a);return;}if(this[_0x58aac9(0x353)+'or']===!0x0){this[_0x58aac9(0x178)][_0x58aac9(0x3ec)](_0x58aac9(0x432)+'teEntry(..'+')\x20history\x20'+_0x58aac9(0x22d)+'\x20so\x20return'+_0x58aac9(0x3c8)+_0x133467+this[_0x58aac9(0x455)]+_0x1fd86a);return;}this[_0x58aac9(0x178)][_0x58aac9(0x362)]('addImmedia'+_0x58aac9(0x3e1)+this[_0x58aac9(0x2f4)+_0x58aac9(0x28e)](_0x9ccff0)+_0x461066+_0x58aac9(0x182)+_0x512b50+this[_0x58aac9(0x455)]),this[_0x58aac9(0x305)]===!0x0&&(this[_0x58aac9(0x305)]=!0x1,this[_0x58aac9(0x1c5)]++,this[_0x58aac9(0x296)]=Math['max'](0x0,this[_0x58aac9(0x1c5)]-this[_0x58aac9(0x1bc)]+0x1),this[_0x58aac9(0x3fe)][_0x58aac9(0x1f4)][this[_0x58aac9(0x255)+_0x58aac9(0x179)](this[_0x58aac9(0x1c5)])]={'time':_0x9ccff0[_0x58aac9(0x413)],'setRefTime':0x1}),this[_0x58aac9(0x1c5)]++,this[_0x58aac9(0x296)]=Math[_0x58aac9(0x1ec)](0x0,this[_0x58aac9(0x1c5)]-this[_0x58aac9(0x1bc)]+0x1),this[_0x58aac9(0x3fe)][_0x58aac9(0x1f4)][this[_0x58aac9(0x255)+_0x58aac9(0x179)](this[_0x58aac9(0x1c5)])]=_0x9ccff0,this['writeHisto'+_0x58aac9(0x393)]();}[_0x5d3104(0x327)+_0x5d3104(0x2f2)](_0xd14928){const _0x1e5146=_0x5d3104;this[_0x1e5146(0x327)+'er']===null&&this[_0x1e5146(0x430)][_0x1e5146(0x384)+'es']>0x0&&(_0xd14928&&this[_0x1e5146(0x327)+_0x1e5146(0x390)](),this[_0x1e5146(0x327)+'er']=setInterval(()=>{this['averageTim'+'erCallback']();},this[_0x1e5146(0x430)][_0x1e5146(0x384)+'es']*0x3c*0x3e8));}['averageTim'+_0x5d3104(0x390)](){const _0xefa451=_0x5d3104;this['log'][_0xefa451(0x362)](_0xefa451(0x327)+_0xefa451(0x390)+_0xefa451(0x40f)+_0xefa451(0x418)+this[_0xefa451(0x3e0)+_0xefa451(0x2db)][_0xefa451(0x370)]+(_0xefa451(0x20a)+_0xefa451(0x283))+_0x512b50+this[_0xefa451(0x455)]+_0x1fd86a),this['toAverageE'+'ntries'][_0xefa451(0x1b5)](_0x13f943=>{const _0x1766cb=_0xefa451;this[_0x1766cb(0x178)][_0x1766cb(0x362)](_0x1766cb(0x1bd)+this[_0x1766cb(0x2f4)+_0x1766cb(0x28e)](_0x13f943));});let _0x5e3a26={'time':this[_0xefa451(0x3dd)]()};for(let _0x490a2f in this[_0xefa451(0x3fc)+'Entry'])this[_0xefa451(0x3d8)+_0xefa451(0x2ab)][_0xefa451(0x29c)](_0x490a2f)&&this['lastValues'+_0xefa451(0x3f4)][_0x490a2f]!==void 0x0&&(_0x5e3a26[_0x490a2f]=this['lastValues'+'Entry'][_0x490a2f]);Object[_0xefa451(0x3ea)](_0x5e3a26)['length']>0x1&&(this[_0xefa451(0x178)][_0xefa451(0x362)](_0xefa451(0x2ff)+_0xefa451(0x439)+_0xefa451(0x385)+_0xefa451(0x282)+this[_0xefa451(0x2f4)+_0xefa451(0x28e)](_0x5e3a26)+'\x20for\x20'+_0x512b50+this['name']+_0x1fd86a),this['addImmedia'+'teEntry'](_0x5e3a26));let _0x15a89b={},_0x24918a={};this[_0xefa451(0x3e0)+_0xefa451(0x2db)][_0xefa451(0x1b5)](_0x3ac321=>{const _0x44ab5b=_0xefa451;for(let _0x1ba0d0 in _0x3ac321)_0x1ba0d0!==_0x44ab5b(0x413)&&(_0x15a89b[_0x1ba0d0]=(_0x15a89b[_0x1ba0d0]||0x0)+_0x3ac321[_0x1ba0d0],_0x24918a[_0x1ba0d0]=(_0x24918a[_0x1ba0d0]||0x0)+0x1);}),this[_0xefa451(0x178)][_0xefa451(0x362)]('Last\x20value'+_0xefa451(0x23c)+this[_0xefa451(0x2f4)+'gify'](this['lastValues'+_0xefa451(0x3f4)])+_0xefa451(0x182)+_0x512b50+this[_0xefa451(0x455)]+_0x1fd86a);let _0x4c444e={'time':this[_0xefa451(0x3dd)]()};for(let _0x51fd04 in this[_0xefa451(0x3fc)+_0xefa451(0x3f4)])this[_0xefa451(0x329)+'ys'][_0xefa451(0x29c)](_0x51fd04)&&this[_0xefa451(0x3fc)+_0xefa451(0x3f4)][_0x51fd04]!==void 0x0&&(_0x4c444e[_0x51fd04]=this['lastValues'+_0xefa451(0x3f4)][_0x51fd04]);for(let _0x4f418a in _0x15a89b)_0x4c444e[_0x4f418a]=this[_0xefa451(0x35f)](_0x15a89b[_0x4f418a]/_0x24918a[_0x4f418a],this[_0xefa451(0x260)+'ap'][_0xefa451(0x274)](_0x4f418a)!==void 0x0?this['entryNameM'+'ap']['get'](_0x4f418a)['precision']:0x0);Object[_0xefa451(0x3ea)](_0x4c444e)[_0xefa451(0x370)]>0x1&&(this[_0xefa451(0x178)][_0xefa451(0x362)](_0xefa451(0x2ff)+_0xefa451(0x26b)+':\x20'+this[_0xefa451(0x2f4)+_0xefa451(0x28e)](_0x4c444e)+_0xefa451(0x182)+_0x512b50+this[_0xefa451(0x455)]+_0x1fd86a),this[_0xefa451(0x432)+_0xefa451(0x1a4)](_0x4c444e)),this[_0xefa451(0x3e0)+'ntries']=[];}['logHistory'](_0x267c31=!0x1){const _0x40074a=_0x5d3104;if(this['historyClo'+_0x40074a(0x2c3)]===!0x0){this[_0x40074a(0x178)][_0x40074a(0x3ec)](_0x40074a(0x25b)+_0x40074a(0x2cb)+_0x40074a(0x1e6)+'\x20closed\x20fo'+'r\x20'+_0x133467+this[_0x40074a(0x455)]+_0x1fd86a);return;}this[_0x40074a(0x178)]['debug'](_0x40074a(0x3e5)+_0x40074a(0x207)+_0x133467+this['name']+_0x1fd86a),this[_0x40074a(0x178)][_0x40074a(0x362)]('enableDebu'+_0x40074a(0x2ed),this[_0x40074a(0x430)]['enableDebu'+'g']),this[_0x40074a(0x178)]['debug'](_0x40074a(0x211)+_0x40074a(0x429),this[_0x40074a(0x430)][_0x40074a(0x211)+'pilot']),this[_0x40074a(0x178)][_0x40074a(0x362)](_0x40074a(0x1f3)+_0x40074a(0x3a0),this['params'][_0x40074a(0x1f3)+_0x40074a(0x2fe)]),this['log'][_0x40074a(0x362)](_0x40074a(0x326)+_0x40074a(0x321),this[_0x40074a(0x430)][_0x40074a(0x326)+'e']),this[_0x40074a(0x178)]['debug'](_0x40074a(0x1b0),this[_0x40074a(0x430)][_0x40074a(0x1d7)]),this[_0x40074a(0x178)][_0x40074a(0x362)](_0x40074a(0x37f),this['params'][_0x40074a(0x202)]),this[_0x40074a(0x178)][_0x40074a(0x362)](_0x40074a(0x384)+'es*:',this['params'][_0x40074a(0x384)+'es']),this['log'][_0x40074a(0x362)](_0x40074a(0x318)+'e:\x20'+this[_0x40074a(0x318)+'e']),this['log'][_0x40074a(0x362)](_0x40074a(0x424)+'ded:\x20'+this['historyLoa'+_0x40074a(0x309)]),this[_0x40074a(0x178)][_0x40074a(0x362)](_0x40074a(0x353)+_0x40074a(0x16d)+(this['historyErr'+'or']?_0x347d6e:_0x461066)+this[_0x40074a(0x353)+'or']),this[_0x40074a(0x178)][_0x40074a(0x362)](_0x40074a(0x322)+_0x40074a(0x254)+this[_0x40074a(0x327)+'er']),this[_0x40074a(0x178)][_0x40074a(0x362)]('setRefTime'+':\x20'+this[_0x40074a(0x305)]),this[_0x40074a(0x178)][_0x40074a(0x362)](_0x40074a(0x41a)+_0x40074a(0x272)+this[_0x40074a(0x41a)+_0x40074a(0x363)]),this[_0x40074a(0x178)]['debug'](_0x40074a(0x296)+':\x20'+this[_0x40074a(0x296)]),this[_0x40074a(0x178)][_0x40074a(0x362)]('lastEntry:'+'\x20'+this[_0x40074a(0x1c5)]),this[_0x40074a(0x178)]['debug'](_0x40074a(0x1bc)+':\x20'+this[_0x40074a(0x1bc)]),this['log'][_0x40074a(0x362)](_0x40074a(0x1a7)+_0x40074a(0x2e0)+this[_0x40074a(0x1a7)+'e']+'\x20'+this[_0x40074