fyers-api-v3 1.3.4 → 1.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/HSM/datasocket.min.js +1 -1
- package/HSM/mapper.js +220 -220
- package/HSM_Package/hslib.js +4 -4
- package/README.md +171 -171
- package/apiService/apiService.js +1026 -995
- package/config/config.js +30 -29
- package/errorHandler/errorHandler.js +36 -36
- package/index.js +11 -9
- package/logger/log.js +61 -61
- package/obfuscate.js +24 -24
- package/ordersocket/fyersSocket.js +325 -325
- package/ordersocket/mapper.js +78 -78
- package/package.json +25 -24
- package/sample/api.js +45 -45
- package/sample/datasocket.js +24 -24
- package/sample/ordersocket.js +29 -29
- package/sample/tbtsocket.js +25 -0
- package/tbtsocket/models.js +172 -0
- package/tbtsocket/msg.js +5163 -0
- package/tbtsocket/tbtSocket.js +339 -0
package/HSM_Package/hslib.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const WebSocket = require('ws');
|
|
2
|
-
|
|
3
|
-
'use strict';const a0_0x56c57c=a0_0x44d5;(function(_0x1cd599,_0x48a876){const _0x1cf9c2=a0_0x44d5,_0x144410=_0x1cd599();while(!![]){try{const _0x287573=-parseInt(_0x1cf9c2(0x1af))/0x1+-parseInt(_0x1cf9c2(0xf2))/0x2*(parseInt(_0x1cf9c2(0xf1))/0x3)+-parseInt(_0x1cf9c2(0x1df))/0x4+-parseInt(_0x1cf9c2(0x104))/0x5*(-parseInt(_0x1cf9c2(0x16b))/0x6)+-parseInt(_0x1cf9c2(0x102))/0x7+parseInt(_0x1cf9c2(0x214))/0x8*(-parseInt(_0x1cf9c2(0x227))/0x9)+parseInt(_0x1cf9c2(0x1a1))/0xa;if(_0x287573===_0x48a876)break;else _0x144410['push'](_0x144410['shift']());}catch(_0x50efd7){_0x144410['push'](_0x144410['shift']());}}}(a0_0x106d,0xb3935));class Constants{constructor(){}}Constants[a0_0x56c57c(0x1ee)]=a0_0x56c57c(0x1cf),Constants[a0_0x56c57c(0x15b)]=0x1e,Constants['isSingleLib']=!![],Constants[a0_0x56c57c(0x18f)]=![],Constants[a0_0x56c57c(0x1ad)]=![],Constants[a0_0x56c57c(0xe7)]=0x5dc,Constants[a0_0x56c57c(0xff)]=-0x80000000,Constants[a0_0x56c57c(0x1a7)]=!![],Constants[a0_0x56c57c(0x1c3)]=0x1,Constants['INDEX_LITE_FCOUNT']=0x1;class Log{constructor(){}static[a0_0x56c57c(0x1b4)](_0x445363){const _0x1d6a51=a0_0x56c57c;if(Constants[_0x1d6a51(0x18f)])console[_0x1d6a51(0x14a)](_0x445363);}static[a0_0x56c57c(0x21d)](_0x795e96){const _0x2355b9=a0_0x56c57c;if(Constants[_0x2355b9(0x1ad)])console[_0x2355b9(0x14a)](_0x795e96);}}var RESPONSE_KEYS;(function(_0x426d7b){const _0x5d6afa=a0_0x56c57c;_0x426d7b[_0x5d6afa(0x1b2)]=_0x5d6afa(0x15f),_0x426d7b[_0x5d6afa(0x133)]=_0x5d6afa(0x1dd),_0x426d7b[_0x5d6afa(0xfb)]='msg',_0x426d7b[_0x5d6afa(0x1e1)]=_0x5d6afa(0x17e),_0x426d7b[_0x5d6afa(0x150)]=_0x5d6afa(0x1bb);}(RESPONSE_KEYS||(RESPONSE_KEYS={})));var RESPONSE_VALUES;(function(_0x222b56){const _0x43d5a5=a0_0x56c57c;_0x222b56[_0x43d5a5(0x1d6)]=_0x43d5a5(0x155),_0x222b56['FAILED']=_0x43d5a5(0x12b),_0x222b56[_0x43d5a5(0x225)]=_0x43d5a5(0x15c),_0x222b56[_0x43d5a5(0x12a)]='--';}(RESPONSE_VALUES||(RESPONSE_VALUES={})));var CHANNEL_DATA_MODE;(function(_0x15a332){const _0x106169=a0_0x56c57c;_0x15a332[_0x15a332['LITE']=0x4c]=_0x106169(0x1ec),_0x15a332[_0x15a332[_0x106169(0x1db)]=0x46]=_0x106169(0x1db);}(CHANNEL_DATA_MODE||(CHANNEL_DATA_MODE={})));var ResponseTypes;(function(_0x213309){const _0x23fa6c=a0_0x56c57c;_0x213309[_0x213309[_0x23fa6c(0xfa)]=0x53]=_0x23fa6c(0xfa),_0x213309[_0x213309[_0x23fa6c(0x14c)]=0x55]=_0x23fa6c(0x14c),_0x213309[_0x213309['LITE']=0x4c]=_0x23fa6c(0x1ec);}(ResponseTypes||(ResponseTypes={})));var BinRespStat;(function(_0x440651){_0x440651['OK']='K',_0x440651['NOT_OK']='N';}(BinRespStat||(BinRespStat={})));var STAT;(function(_0x26eb38){const _0x2a0435=a0_0x56c57c;_0x26eb38['OK']='Ok',_0x26eb38[_0x2a0435(0x175)]=_0x2a0435(0x18b);}(STAT||(STAT={})));var TopicTypes;(function(_0x2a55b2){_0x2a55b2['SCRIP']='sf',_0x2a55b2['INDEX']='if',_0x2a55b2['DEPTH']='dp';}(TopicTypes||(TopicTypes={})));var Keys;(function(_0x2a021c){const _0x4c5db5=a0_0x56c57c;_0x2a021c[_0x4c5db5(0x133)]='type',_0x2a021c['USER_ID']='user',_0x2a021c[_0x4c5db5(0x1b7)]=_0x4c5db5(0x1b6),_0x2a021c[_0x4c5db5(0x211)]=_0x4c5db5(0x1ed),_0x2a021c[_0x4c5db5(0x19d)]=_0x4c5db5(0x220),_0x2a021c[_0x4c5db5(0x147)]=_0x4c5db5(0x100),_0x2a021c[_0x4c5db5(0x192)]=_0x4c5db5(0x1ef),_0x2a021c[_0x4c5db5(0x11d)]='redis',_0x2a021c[_0x4c5db5(0x18c)]=_0x4c5db5(0xf0),_0x2a021c[_0x4c5db5(0x156)]=_0x4c5db5(0x1cc),_0x2a021c[_0x4c5db5(0x184)]=_0x4c5db5(0x201),_0x2a021c['OPC_KEY']='key',_0x2a021c[_0x4c5db5(0x1c8)]=_0x4c5db5(0x101),_0x2a021c['SID']='Sid',_0x2a021c[_0x4c5db5(0x19b)]='x-access-token',_0x2a021c[_0x4c5db5(0x20f)]=_0x4c5db5(0x1d5);}(Keys||(Keys={})));var ReqTypeValues;(function(_0x55faee){const _0xa50dbb=a0_0x56c57c;_0x55faee['CONNECTION']='cn',_0x55faee[_0xa50dbb(0xf4)]=_0xa50dbb(0x142),_0x55faee[_0xa50dbb(0x19c)]=_0xa50dbb(0xe3),_0x55faee[_0xa50dbb(0x1e7)]=_0xa50dbb(0x138),_0x55faee[_0xa50dbb(0x20c)]=_0xa50dbb(0x134),_0x55faee[_0xa50dbb(0x204)]=_0xa50dbb(0x210),_0x55faee['DEPTH_UNSUBS']=_0xa50dbb(0x1d4),_0x55faee['CHANNEL_RESUME']='cr',_0x55faee[_0xa50dbb(0x16c)]='cp',_0x55faee['SNAP_MW']=_0xa50dbb(0x10e),_0x55faee[_0xa50dbb(0x11f)]=_0xa50dbb(0x136),_0x55faee[_0xa50dbb(0x1bf)]=_0xa50dbb(0x1c1),_0x55faee[_0xa50dbb(0x216)]=_0xa50dbb(0x122),_0x55faee['LITE']=_0xa50dbb(0x169),_0x55faee[_0xa50dbb(0x1db)]=_0xa50dbb(0x182),_0x55faee[_0xa50dbb(0x13b)]='ti',_0x55faee[_0xa50dbb(0x1f0)]=_0xa50dbb(0xfd),_0x55faee[_0xa50dbb(0x224)]=_0xa50dbb(0x1f9),_0x55faee['LOG']='log';}(ReqTypeValues||(ReqTypeValues={})));var RespTypeValues;(function(_0xac7d25){const _0x25bfe3=a0_0x56c57c;_0xac7d25[_0x25bfe3(0x16f)]='cn',_0xac7d25[_0x25bfe3(0x154)]=_0x25bfe3(0x13e),_0xac7d25[_0x25bfe3(0xf8)]='unsub',_0xac7d25[_0x25bfe3(0xfa)]=_0x25bfe3(0x203),_0xac7d25[_0x25bfe3(0x110)]='cr',_0xac7d25[_0x25bfe3(0xe5)]='cp',_0xac7d25[_0x25bfe3(0x1e8)]=_0x25bfe3(0x122),_0xac7d25[_0x25bfe3(0x1ec)]='lit',_0xac7d25[_0x25bfe3(0x1db)]=_0x25bfe3(0x182);}(RespTypeValues||(RespTypeValues={})));var BinRespTypes;(function(_0x153b2c){const _0x36db24=a0_0x56c57c;_0x153b2c[_0x153b2c['CONNECTION_TYPE']=0x1]=_0x36db24(0x1c0),_0x153b2c[_0x153b2c[_0x36db24(0x222)]=0x2]='THROTTLING_TYPE',_0x153b2c[_0x153b2c[_0x36db24(0x1e4)]=0x3]='ACK_TYPE',_0x153b2c[_0x153b2c[_0x36db24(0xfc)]=0x4]='SUBSCRIBE_TYPE',_0x153b2c[_0x153b2c['UNSUBSCRIBE_TYPE']=0x5]=_0x36db24(0x135),_0x153b2c[_0x153b2c[_0x36db24(0xec)]=0x6]=_0x36db24(0xec),_0x153b2c[_0x153b2c[_0x36db24(0x129)]=0x7]=_0x36db24(0x129),_0x153b2c[_0x153b2c['CHRESUME_TYPE']=0x8]='CHRESUME_TYPE',_0x153b2c[_0x153b2c[_0x36db24(0x173)]=0x9]=_0x36db24(0x173),_0x153b2c[_0x153b2c[_0x36db24(0x195)]=0xa]=_0x36db24(0x195),_0x153b2c[_0x153b2c[_0x36db24(0x20a)]=0xc]='LITE_FULL';}(BinRespTypes||(BinRespTypes={})));var RespCodes;(function(_0x2333f6){const _0x807079=a0_0x56c57c;_0x2333f6[_0x2333f6[_0x807079(0x1d2)]=0xc8]=_0x807079(0x1d2),_0x2333f6[_0x2333f6['CONNECTION_FAILED']=0x2af9]=_0x807079(0x123),_0x2333f6[_0x2333f6[_0x807079(0xea)]=0x2afa]='CONNECTION_INVALID',_0x2333f6[_0x2333f6[_0x807079(0x1a2)]=0x2b03]=_0x807079(0x1a2),_0x2333f6[_0x2333f6[_0x807079(0x181)]=0x2b04]=_0x807079(0x181),_0x2333f6[_0x2333f6['SNAPSHOT_FAILED']=0x2b05]='SNAPSHOT_FAILED',_0x2333f6[_0x2333f6['CHANNELP_FAILED']=0x2b17]='CHANNELP_FAILED',_0x2333f6[_0x2333f6[_0x807079(0x116)]=0x2b18]=_0x807079(0x116);}(RespCodes||(RespCodes={})));var PREFIX;(function(_0x281b16){const _0x83a3f3=a0_0x56c57c;_0x281b16[_0x83a3f3(0x124)]='dp',_0x281b16[_0x83a3f3(0x171)]='sf',_0x281b16[_0x83a3f3(0x228)]='if';}(PREFIX||(PREFIX={})));function a0_0x44d5(_0x35008c,_0x4aa09f){const _0x106dcb=a0_0x106d();return a0_0x44d5=function(_0x44d5a3,_0x5a4abb){_0x44d5a3=_0x44d5a3-0xe3;let _0x1f4f3e=_0x106dcb[_0x44d5a3];return _0x1f4f3e;},a0_0x44d5(_0x35008c,_0x4aa09f);}var SCRIPFID_MAP;(function(_0x55d6b2){const _0x1d06b2=a0_0x56c57c;_0x55d6b2[_0x1d06b2(0xe8)]=_0x1d06b2(0x16a),_0x55d6b2[_0x1d06b2(0x1f7)]=_0x1d06b2(0x10d),_0x55d6b2['TURNOVER']=_0x1d06b2(0x178),_0x55d6b2[_0x1d06b2(0x160)]='s104',_0x55d6b2[_0x1d06b2(0x1a3)]=_0x1d06b2(0x1a6),_0x55d6b2[_0x1d06b2(0x1d0)]=_0x1d06b2(0x157),_0x55d6b2[_0x1d06b2(0x119)]=_0x1d06b2(0x1b0);}(SCRIPFID_MAP||(SCRIPFID_MAP={})));var FieldTypes;(function(_0x16838d){const _0x300e68=a0_0x56c57c;_0x16838d[_0x16838d[_0x300e68(0x106)]=0x0]=_0x300e68(0x106),_0x16838d[_0x16838d[_0x300e68(0x18a)]=0x1]=_0x300e68(0x18a),_0x16838d[_0x16838d['DATE']=0x2]=_0x300e68(0x1e9),_0x16838d[_0x16838d[_0x300e68(0x1ab)]=0x3]=_0x300e68(0x1ab);}(FieldTypes||(FieldTypes={})));var INDEXFID_MAP;(function(_0x3f1434){const _0x50dbe5=a0_0x56c57c;_0x3f1434['LTP']='i102',_0x3f1434[_0x50dbe5(0x1d0)]=_0x50dbe5(0x125),_0x3f1434[_0x50dbe5(0xe8)]=_0x50dbe5(0x151),_0x3f1434[_0x50dbe5(0x1f7)]=_0x50dbe5(0x13f);}(INDEXFID_MAP||(INDEXFID_MAP={})));var SCRIP_INDEX;(function(_0x188b29){const _0x337fe5=a0_0x56c57c;_0x188b29[_0x188b29[_0x337fe5(0x160)]=0x1]=_0x337fe5(0x160),_0x188b29[_0x188b29[_0x337fe5(0x1a3)]=0x0]=_0x337fe5(0x1a3),_0x188b29[_0x188b29[_0x337fe5(0x1d0)]=0x14]=_0x337fe5(0x1d0),_0x188b29[_0x188b29[_0x337fe5(0x119)]=0xb]='VWAP',_0x188b29[_0x188b29['CHANGE']=0x15]=_0x337fe5(0xe8),_0x188b29[_0x188b29['PERCHANGE']=0x16]=_0x337fe5(0x168),_0x188b29[_0x188b29[_0x337fe5(0x219)]=0x17]=_0x337fe5(0x219);}(SCRIP_INDEX||(SCRIP_INDEX={})));var INDEX_INDEX;(function(_0x2858e8){const _0x2aabc3=a0_0x56c57c;_0x2858e8[_0x2858e8[_0x2aabc3(0x1a3)]=0x0]='LTP',_0x2858e8[_0x2858e8[_0x2aabc3(0x1d0)]=0x1]=_0x2aabc3(0x1d0),_0x2858e8[_0x2858e8['CHANGE']=0x6]=_0x2aabc3(0xe8),_0x2858e8[_0x2858e8['PERCHANGE']=0x7]=_0x2aabc3(0x168);}(INDEX_INDEX||(INDEX_INDEX={})));class ByteBuilder{constructor(_0x4b9862){const _0x348a0b=a0_0x56c57c;this[_0x348a0b(0x1b8)]=new Uint8Array(_0x4b9862),this[_0x348a0b(0x146)]=0x2;}[a0_0x56c57c(0x179)](){const _0x379d0a=a0_0x56c57c;this[_0x379d0a(0x146)]=0x0;}[a0_0x56c57c(0x1d7)](){const _0x29fdfc=a0_0x56c57c;return this[_0x29fdfc(0x146)];}[a0_0x56c57c(0x183)](){const _0x134294=a0_0x56c57c;let _0x92f204=this[_0x134294(0x146)]-0x2;return this['data'][0x0]=_0x92f204>>0x8&0xff,this[_0x134294(0x1b8)][0x1]=_0x92f204&0xff,this[_0x134294(0x1b8)];}[a0_0x56c57c(0x1f5)](_0xf9e98c,_0x801718){const _0x5e3110=a0_0x56c57c;_0x801718==undefined?this[_0x5e3110(0x1b8)][this[_0x5e3110(0x146)]++]=_0xf9e98c:this[_0x5e3110(0x1b8)][_0x801718]=_0xf9e98c;}[a0_0x56c57c(0x188)](_0x5d128c,_0x29709f){const _0x4463a3=a0_0x56c57c;_0x29709f==undefined?this['data'][this['pos']++]=_0x5d128c:this[_0x4463a3(0x1b8)][_0x29709f]=_0x5d128c;}['appendShort'](_0x4bda95){const _0x2e3002=a0_0x56c57c;this['data'][this[_0x2e3002(0x146)]++]=_0x4bda95>>0x8&0xff,this[_0x2e3002(0x1b8)][this[_0x2e3002(0x146)]++]=_0x4bda95&0xff;}['appendInt'](_0x25cf5f){const _0x176940=a0_0x56c57c;this[_0x176940(0x1b8)][this[_0x176940(0x146)]++]=_0x25cf5f>>0x18&0xff,this[_0x176940(0x1b8)][this['pos']++]=_0x25cf5f>>0x10&0xff,this[_0x176940(0x1b8)][this[_0x176940(0x146)]++]=_0x25cf5f>>0x8&0xff,this[_0x176940(0x1b8)][this[_0x176940(0x146)]++]=_0x25cf5f&0xff;}['appendLong'](_0x1cb590){const _0x347695=a0_0x56c57c;this['data'][this[_0x347695(0x146)]++]=_0x1cb590>>0x38&0xff,this[_0x347695(0x1b8)][this[_0x347695(0x146)]++]=_0x1cb590>>0x30&0xff,this['data'][this[_0x347695(0x146)]++]=_0x1cb590>>0x28&0xff,this[_0x347695(0x1b8)][this[_0x347695(0x146)]++]=_0x1cb590>>0x20&0xff,this['data'][this['pos']++]=_0x1cb590>>0x18&0xff,this['data'][this[_0x347695(0x146)]++]=_0x1cb590>>0x10&0xff,this[_0x347695(0x1b8)][this[_0x347695(0x146)]++]=_0x1cb590>>0x8&0xff,this['data'][this['pos']++]=_0x1cb590&0xff;}[a0_0x56c57c(0x1ea)](_0x462ef1){const _0x5d23f0=a0_0x56c57c,_0x5978bc=BigInt(_0x462ef1);this[_0x5d23f0(0x1b8)][this['pos']++]=Number(_0x5978bc>>BigInt(0x38)&BigInt(0xff)),this[_0x5d23f0(0x1b8)][this[_0x5d23f0(0x146)]++]=Number(_0x5978bc>>BigInt(0x30)&BigInt(0xff)),this[_0x5d23f0(0x1b8)][this[_0x5d23f0(0x146)]++]=Number(_0x5978bc>>BigInt(0x28)&BigInt(0xff)),this['data'][this[_0x5d23f0(0x146)]++]=Number(_0x5978bc>>BigInt(0x20)&BigInt(0xff)),this[_0x5d23f0(0x1b8)][this[_0x5d23f0(0x146)]++]=Number(_0x5978bc>>BigInt(0x18)&BigInt(0xff)),this[_0x5d23f0(0x1b8)][this['pos']++]=Number(_0x5978bc>>BigInt(0x10)&BigInt(0xff)),this[_0x5d23f0(0x1b8)][this[_0x5d23f0(0x146)]++]=Number(_0x5978bc>>BigInt(0x8)&BigInt(0xff)),this[_0x5d23f0(0x1b8)][this[_0x5d23f0(0x146)]++]=Number(_0x5978bc&BigInt(0xff));}[a0_0x56c57c(0x21b)](_0x4653f8){const _0x3c8df8=a0_0x56c57c;for(let _0x4931bd=0x0;_0x4931bd<_0x4653f8[_0x3c8df8(0x1eb)];_0x4931bd++)this['data'][this[_0x3c8df8(0x146)]++]=_0x4653f8[_0x3c8df8(0x218)](_0x4931bd);}[a0_0x56c57c(0x21c)](_0x36aec0,_0x5366a5){const _0x5b412f=a0_0x56c57c;let _0x5a04f2=_0x5366a5==undefined?_0x36aec0['length']:_0x5366a5;for(let _0x52a65c=0x0;_0x52a65c<_0x5a04f2;_0x52a65c++)this[_0x5b412f(0x1b8)][this[_0x5b412f(0x146)]++]=_0x36aec0[_0x52a65c];}}class FieldData{constructor(_0x18b853,_0x4531f7,_0x1f71dd,_0xce1967){const _0x9faf0a=a0_0x56c57c;this['fId']=_0x18b853,this[_0x9faf0a(0x139)]=_0x4531f7,this[_0x9faf0a(0x1dd)]=_0x1f71dd,this['desc']=_0xce1967;}}function a0_0x106d(){const _0x56475a=['CLOSE','keys','SUCCESS','pow','dpu','source','SUCCESSFUL','getPosition','hsParser','error','setMultiplierAndPrec','FULL','CHANGE_INDEX','type','\x0aDepth::','959580FzxuGw','Maximum\x20scrips\x20allowed\x20per\x20request\x20is\x20','STAT_CODE','open','^(0{1}[1-9]|[12][0-9]|3[01])/(0{1}[1-9]|1[012])/20\x5cd{2}$','ACK_TYPE','LTP_INDEX','onclose','INDEX_SUBS','OPC','DATE','appendLongAsBigInt','length','LITE','scrips','LIB_VERSION','jwt','STR','packets.length:\x20','Connect...','getMinutes','index:','appendByte','index','PCHANGE','User\x20call','fcn','intervalId','liteFCount','getOpChainSubsRequest',',\x20val:','fcount1:\x20','toString','strJson','lowstk','Cleanup\x20previous\x20connection','snap','DEPTH_SUBS','onerror','WebSocket\x20not\x20initialized!','Number','pingFunction','onopen','LITE_FULL','pingRequest','INDEX_UNSUBS','isScripOK','exchange','SOURCE','dps','SCRIPS','setStringValues','reason','11202584HMSZis','USER_ID','OPC_SUBS','prec:\x20','charCodeAt','TURNOVER','get','appendString','appendByteArray','hsiDebug','setLongValues','appendInt','channelnum','PER_CHANGE_INDEX','THROTTLING_TYPE','_instance','FORCE_CONNECTION','INVD_FLD_COUNT','Invalid\x20topic\x20feed\x20type\x20!','9bqPKtU','INDEX','mwu','buf2Long','CHANNELP','onClose::CloseCode:','MAX_SCRIPS','CHANGE','OPEN','CONNECTION_INVALID','prepareChannelRequest','DATA_TYPE',',\x20WasClean:','Authorization\x20mode\x20is\x20enabled:\x20Authorization\x20or\x20Sid\x20not\x20found\x20!','Conn\x20fCount:','stkprc','3ONZxdx','2003872xLZkzX','set','SCRIP_SUBS','createMapingsMap','prepareJson','counter','UNSUBS','prepareSubsUnSubsRequest','SNAP','MSG','SUBSCRIBE_TYPE','str','hfid','TRASH_VAL','channelnums','Authorization','9666909hTbaBb','Topic\x20Not\x20Available\x20in\x20TopicList!','24615wCosJU','JS_API','FLOAT32','scrip','interval','prepareLiteChannelRequest','prepareConnectionRequest','FAILED','Unable\x20to\x20send\x20request\x20!,\x20Reason:\x20Connection\x20faulty\x20or\x20request\x20not\x20valid\x20!','f102','mwsp','topic\x20Id:\x20','CHANNELR','CLOSE_INDEX','subscription\x20failed','TURNOVER_INDEX','Invalid\x20conn\x20mode\x20!','Processing\x20dynamic\x20mapping....','CHANNELR_FAILED','heartBeatIntervalInMS','onOpen','VWAP','getHours','updates\x20......','SID','REDIS_KEY','push','SNAP_DP','prepareData','Open','opc','CONNECTION_FAILED','DEPTH','i103','onMessage','getMonth','inWS','CHPAUSE_TYPE','NOT_AVL','failed','substring','startPingInterval','Error:\x20Channel\x20values\x20must\x20be\x20in\x20this\x20range\x20\x20[\x20val\x20>\x200\x20&&\x20val\x20<\x2065\x20]','getAcknowledgementReq','sendJsonArrResp',',\x20Reason:','parseData','TYPE','ifu','UNSUBSCRIBE_TYPE','dpsp','LOG','ifs','key','onClose','THROTTLING_INTERVAL','appendShort','readyState','sub','f105','getKey','ConvNumber','mws','\x0aScrip::','getFormatDate2','VOLUME_INDEX','pos','CHANNEL_NUMS','DEPTH_UNSUBS','index_lite','log','INDEX_LITE_FCOUNT','UPDATE','multiplier','leadingZero','feedType','STREAM_DATA_CONFIG','f104','slice','concat','SUBS','successful','HIGH_STK','s121','onError::MSG:','forEach','isConnected','DEFAULT_HEARTBEAT_INTERVAL','invalid\x20field\x20count','buf2String','reqData','stat','VOLUME','getSeconds','precisionValue','fid','fld','fieldDataArray','mappingArray','CHANNELP_FAILED','PERCHANGE','lit','f101','1422IYHOsj','CHANNEL_PAUSE','tSymbol','Invalid\x20Request\x20!','CONN','HSI\x20WebSocket\x20not\x20initialized!','SCRIP','onError','SNAPSHOT','url','NOT_OK','details','precision','f103','clear','binaryType','hsiWs','stringify','send','stCode','prepareConnectionRequestOld','VWAP_INDEX','UNSUBSCRIPTION_FAILED','ful','getBytes','LOW_STK','getInstance','getStringFieldsJson','topicList','appendChar','\x0aIndex::','LONG','NotOk','STK_PRC','connect','blob','HSM_LOG_Flag','wasClean','setSeconds','JWT','ACK:\x20','test','OPC_SUBSCRIBE','updatedFieldsArray','getScripByteArray','topicName:\x20','mode','OPC_KEY','X_ACCESS_TOKEN','SCRIP_UNSUBS','CHANNEL_NUM','getTypeFromString','nameLen:','split','41870370zawcKr','SUBSCRIPTION_FAILED','LTP','stopHearBeat','prepareConnectionRequest2','s105','STREAM_DATA_ENABLED','dataType','code','Invalid\x20ResponseType:\x20','STRING','heartBeatInterval','HSI_LOG_Flag','fields','595106LHGUnP','s113','onmessage','STATUS','StreamDataJson\x20having\x20some\x20issue','hsmDebug','timestamp','sessionid','SESSION_ID','data','getStatus','toFixed','streamDataConfig','CONNECTION','ackNum','isCalled','SNAP_IF','CONNECTION_TYPE','ifsp','hsWS','SCRIP_LITE_FCOUNT','indexOf','getDate','getFormatDate','parse','AUTORIZATION','close','TYPE::\x20','symbol','highstk','arraybuffer','prepareSnapshotRequest','v1.5-ft-5.3.0'];a0_0x106d=function(){return _0x56475a;};return a0_0x106d();}class TopicData{constructor(_0xd25a16){const _0x4cd38b=a0_0x56c57c;this[_0x4cd38b(0x14d)]=0x1,this[_0x4cd38b(0x177)]=0x2,this[_0x4cd38b(0x162)]=0x64,this[_0x4cd38b(0x165)]=new Array(),this['updatedFieldsArray']=new Array(),this['liteFCount']=-0x1,this[_0x4cd38b(0x14f)]=_0xd25a16;}[a0_0x56c57c(0x140)](){const _0x39bab4=a0_0x56c57c;return this[_0x39bab4(0x20e)][_0x39bab4(0x153)]('|',this[_0x39bab4(0x1cb)]);}[a0_0x56c57c(0x21e)](_0x316138,_0x23f1b3){const _0x5c1cc1=a0_0x56c57c;this[_0x5c1cc1(0x165)][_0x316138]!=_0x23f1b3&&_0x23f1b3!=Constants[_0x5c1cc1(0xff)]&&(this[_0x5c1cc1(0x165)][_0x316138]=_0x23f1b3,this[_0x5c1cc1(0x196)][_0x316138]=!![]);}[a0_0x56c57c(0x1da)](_0x2d6bf5,_0xbbecbe){const _0x452b63=a0_0x56c57c;this['precision']=_0xbbecbe,this['precisionValue']=Math[_0x452b63(0x1d3)](0xa,_0xbbecbe),this[_0x452b63(0x14d)]=_0x2d6bf5;}['clearFieldDataArray'](){const _0x31909e=a0_0x56c57c;this[_0x31909e(0x165)]['length']=this[_0x31909e(0x196)]['length']=0x0;}[a0_0x56c57c(0x212)](_0x42cc69,_0x3628b8){const _0x298275=a0_0x56c57c;switch(_0x42cc69){case 0x0:this[_0x298275(0x20e)]=_0x3628b8;break;case 0x1:this[_0x298275(0x1cb)]=_0x3628b8;break;case 0x2:this[_0x298275(0x16d)]=_0x3628b8;break;}}[a0_0x56c57c(0x186)](){const _0x60817e=a0_0x56c57c;if(!this['strJson'])return this['strJson']={'name':this[_0x60817e(0x14f)],'tk':this['symbol'],'e':this['exchange']},Object['assign']({'ts':this[_0x60817e(0x16d)]},this[_0x60817e(0x200)]);return this[_0x60817e(0x200)];}[a0_0x56c57c(0xf6)](_0x4fc9af){const _0x289f84=a0_0x56c57c,_0x118186={};for(let _0x16ca77=0x0;_0x16ca77<_0x4fc9af[_0x289f84(0x1eb)];_0x16ca77++){let _0x5d6a4e=_0x4fc9af[_0x16ca77],_0x360d7d=this[_0x289f84(0x165)][_0x16ca77];if(this[_0x289f84(0x196)][_0x16ca77]&&_0x360d7d!=undefined&&_0x5d6a4e){if(_0x5d6a4e[_0x289f84(0x1dd)]==FieldTypes[_0x289f84(0x106)])_0x360d7d=(_0x360d7d/(this[_0x289f84(0x14d)]*this[_0x289f84(0x162)]))['toFixed'](this[_0x289f84(0x177)]);else _0x5d6a4e[_0x289f84(0x1dd)]==FieldTypes['DATE']&&(_0x360d7d=Util[_0x289f84(0x1c6)](_0x360d7d));Log[_0x289f84(0x1b4)](_0x16ca77+':'+_0x5d6a4e[_0x289f84(0x139)]+':'+_0x360d7d[_0x289f84(0x1ff)]()),_0x118186[_0x5d6a4e[_0x289f84(0x139)]]=_0x360d7d[_0x289f84(0x1ff)]();}}return this[_0x289f84(0x196)]=[],Object[_0x289f84(0x1d1)](_0x118186)[_0x289f84(0x1eb)]>0x0?Object['assign'](_0x118186,this['getStringFieldsJson']()):![];}}class ScripTopicData extends TopicData{constructor(){const _0x5e7f74=a0_0x56c57c;super(TopicTypes[_0x5e7f74(0x171)]);}[a0_0x56c57c(0x120)](){const _0x137bc8=a0_0x56c57c;if(this['updatedFieldsArray'][ScripTopicData[_0x137bc8(0x1e5)]]||this[_0x137bc8(0x196)][ScripTopicData[_0x137bc8(0x111)]]){let _0x305524=this[_0x137bc8(0x165)][ScripTopicData['LTP_INDEX']],_0x517374=this[_0x137bc8(0x165)][ScripTopicData[_0x137bc8(0x111)]];if(_0x305524!=undefined&&_0x517374!=undefined){let _0x34f45d=_0x305524-_0x517374;this['fieldDataArray'][ScripTopicData['CHANGE_INDEX']]=_0x34f45d,this[_0x137bc8(0x196)][ScripTopicData[_0x137bc8(0x1dc)]]=!![],this[_0x137bc8(0x165)][ScripTopicData[_0x137bc8(0x221)]]=+(_0x34f45d/_0x517374*0x64)[_0x137bc8(0x1ba)](this[_0x137bc8(0x177)]),this[_0x137bc8(0x196)][ScripTopicData['PER_CHANGE_INDEX']]=!![];}}if(this[_0x137bc8(0x196)][ScripTopicData['VOLUME_INDEX']]||this['updatedFieldsArray'][ScripTopicData[_0x137bc8(0x180)]]){let _0x43276f=this[_0x137bc8(0x165)][ScripTopicData[_0x137bc8(0x145)]],_0x98ab33=this[_0x137bc8(0x165)][ScripTopicData[_0x137bc8(0x180)]];_0x43276f!=undefined&&_0x98ab33!=undefined&&(this['fieldDataArray'][ScripTopicData[_0x137bc8(0x113)]]=_0x43276f*_0x98ab33,this['updatedFieldsArray'][ScripTopicData[_0x137bc8(0x113)]]=!![]);}return Log[_0x137bc8(0x1b4)](_0x137bc8(0x143)+this[_0x137bc8(0x14f)]+'|'+this[_0x137bc8(0x20e)]+'|'+this[_0x137bc8(0x1cb)]),super[_0x137bc8(0xf6)](ScripTopicData[_0x137bc8(0x166)]);}}class IndexTopicData extends TopicData{constructor(){super(TopicTypes['INDEX']);}[a0_0x56c57c(0x120)](){const _0x5c2b12=a0_0x56c57c;if(this[_0x5c2b12(0x196)][IndexTopicData[_0x5c2b12(0x1e5)]]||this[_0x5c2b12(0x196)][IndexTopicData[_0x5c2b12(0x111)]]){let _0x4477ff=this[_0x5c2b12(0x165)][IndexTopicData[_0x5c2b12(0x1e5)]],_0x4986cd=this[_0x5c2b12(0x165)][IndexTopicData[_0x5c2b12(0x111)]];if(_0x4477ff!=undefined&&_0x4986cd!=undefined){let _0x428a8d=_0x4477ff-_0x4986cd;this[_0x5c2b12(0x165)][IndexTopicData['CHANGE_INDEX']]=_0x428a8d,this[_0x5c2b12(0x196)][IndexTopicData['CHANGE_INDEX']]=!![],this[_0x5c2b12(0x165)][IndexTopicData[_0x5c2b12(0x221)]]=+(_0x428a8d/_0x4986cd*0x64)[_0x5c2b12(0x1ba)](this[_0x5c2b12(0x177)]),this[_0x5c2b12(0x196)][IndexTopicData[_0x5c2b12(0x221)]]=!![];}}return Log[_0x5c2b12(0x1b4)](_0x5c2b12(0x189)+this['feedType']+'|'+this[_0x5c2b12(0x20e)]+'|'+this[_0x5c2b12(0x1cb)]),super[_0x5c2b12(0xf6)](IndexTopicData['mappingArray']);}}class DepthTopicData extends TopicData{constructor(){const _0x41b0c3=a0_0x56c57c;super(TopicTypes[_0x41b0c3(0x124)]);}[a0_0x56c57c(0x120)](){const _0x56c4e3=a0_0x56c57c;return Log[_0x56c4e3(0x1b4)](_0x56c4e3(0x1de)+this[_0x56c4e3(0x14f)]+'|'+this[_0x56c4e3(0x20e)]+'|'+this[_0x56c4e3(0x1cb)]),super[_0x56c4e3(0xf6)](DepthTopicData[_0x56c4e3(0x166)]);}}class Util{constructor(){}static[a0_0x56c57c(0xe4)](_0x49b0ac){const _0x373ec1=a0_0x56c57c;let _0x9ca13=new Uint8Array(_0x49b0ac),_0x3dc76c=0x0,_0x1794cb=_0x9ca13[_0x373ec1(0x1eb)];for(let _0x493651=0x0,_0xaeb45b=_0x1794cb-0x1;_0x493651<_0x1794cb;_0x493651++,_0xaeb45b--){_0x3dc76c+=_0x9ca13[_0xaeb45b]<<_0x493651*0x8;}return _0x3dc76c;}static['buf2Float'](_0x2a5a4e,_0x4be87c){let _0x4d554a=new DataView(_0x2a5a4e,_0x4be87c,0x4);return _0x4d554a['getFloat32'](0x0);}static[a0_0x56c57c(0x15d)](_0x4a9c32){return new TextDecoder('utf-8')['decode'](_0x4a9c32);}static[a0_0x56c57c(0x1c6)](_0x51138c){const _0x55159a=a0_0x56c57c;let _0x3166a1=new Date(_0x51138c*0x3e8),_0x3dc3d7=Util[_0x55159a(0x14e)](_0x3166a1[_0x55159a(0x1c5)]())+'/'+Util['leadingZero'](_0x3166a1[_0x55159a(0x127)]()+0x1)+'/'+_0x3166a1['getFullYear']()+'\x20'+Util[_0x55159a(0x14e)](_0x3166a1['getHours']())+':'+Util[_0x55159a(0x14e)](_0x3166a1[_0x55159a(0x1f3)]())+':'+Util[_0x55159a(0x14e)](_0x3166a1[_0x55159a(0x161)]());return _0x3dc3d7;}static[a0_0x56c57c(0x144)](_0xd58769){const _0x3a1509=a0_0x56c57c;let _0x3bfe1b=new Date(0x7b2,0x0,0x1);_0x3bfe1b[_0x3a1509(0x191)](_0xd58769);let _0x5a29ce=Util['leadingZero'](_0x3bfe1b[_0x3a1509(0x1c5)]())+'/'+Util[_0x3a1509(0x14e)](_0x3bfe1b[_0x3a1509(0x127)]()+0x1)+'/'+_0x3bfe1b['getFullYear']()+'\x20'+Util[_0x3a1509(0x14e)](_0x3bfe1b[_0x3a1509(0x11a)]())+':'+Util[_0x3a1509(0x14e)](_0x3bfe1b[_0x3a1509(0x1f3)]())+':'+Util[_0x3a1509(0x14e)](_0x3bfe1b['getSeconds']());return _0x5a29ce;}static[a0_0x56c57c(0x14e)](_0x53951e){const _0x45f124=a0_0x56c57c;return _0x53951e<0xa?'0'+_0x53951e['toString']():_0x53951e[_0x45f124(0x1ff)]();}static[a0_0x56c57c(0x20d)](_0x5dcb6b){const _0x6a9ce3=a0_0x56c57c;if(_0x5dcb6b[_0x6a9ce3(0x1a0)]('&')['length']>Constants['MAX_SCRIPS'])return console[_0x6a9ce3(0x1d9)](_0x6a9ce3(0x1e0)+Constants[_0x6a9ce3(0xe7)]),![];return!![];}static['checkDateFormat'](_0x7f57bc){const _0x426875=a0_0x56c57c;return new RegExp(_0x426875(0x1e3))[_0x426875(0x194)](_0x7f57bc);}}class BinRequest{constructor(){}static['getAcknowledgementReq'](_0x4ef1f6){const _0x55b6c1=a0_0x56c57c;let _0x8bf10d=new ByteBuilder(0xb);return _0x8bf10d[_0x55b6c1(0x1f5)](BinRespTypes[_0x55b6c1(0x1e4)]),_0x8bf10d[_0x55b6c1(0x1f5)](0x1),_0x8bf10d['appendByte'](0x1),_0x8bf10d[_0x55b6c1(0x13c)](0x4),_0x8bf10d['appendInt'](_0x4ef1f6),_0x8bf10d['getBytes']();}static[a0_0x56c57c(0x17f)](_0x44eff2){const _0x563c02=a0_0x56c57c;let _0xe01669=_0x44eff2['length'],_0x2cc40f=_0x563c02(0x105),_0x312b51=_0x2cc40f['length'],_0x4ba536=new ByteBuilder(_0xe01669+_0x312b51+0xa);return _0x4ba536[_0x563c02(0x1f5)](BinRespTypes['CONNECTION_TYPE']),_0x4ba536['appendByte'](0x2),_0x4ba536['appendByte'](0x1),_0x4ba536[_0x563c02(0x13c)](_0xe01669),_0x4ba536[_0x563c02(0x21b)](_0x44eff2),_0x4ba536[_0x563c02(0x1f5)](0x2),_0x4ba536[_0x563c02(0x13c)](_0x312b51),_0x4ba536[_0x563c02(0x21b)](_0x2cc40f),_0x4ba536[_0x563c02(0x183)]();}static['prepareConnectionRequest'](_0x151272,_0x1fc615){const _0x2d5ef9=a0_0x56c57c;let _0x574f68=_0x151272[_0x2d5ef9(0x1eb)],_0x2731f0=_0x2d5ef9(0x105),_0x27b69a=_0x2731f0[_0x2d5ef9(0x1eb)],_0xe66d3a=new ByteBuilder(_0x574f68+_0x27b69a+0x12);return _0xe66d3a[_0x2d5ef9(0x1f5)](BinRespTypes[_0x2d5ef9(0x1c0)]),_0xe66d3a[_0x2d5ef9(0x1f5)](0x4),_0xe66d3a['appendByte'](0x1),_0xe66d3a['appendShort'](_0x574f68),_0xe66d3a['appendString'](_0x151272),_0xe66d3a[_0x2d5ef9(0x1f5)](0x2),_0xe66d3a[_0x2d5ef9(0x13c)](0x1),_0xe66d3a[_0x2d5ef9(0x1f5)](_0x1fc615['charCodeAt'](0x0)),_0xe66d3a['appendByte'](0x3),_0xe66d3a[_0x2d5ef9(0x13c)](0x1),_0xe66d3a[_0x2d5ef9(0x1f5)](Constants[_0x2d5ef9(0x1a7)]?0x1:0x0),_0xe66d3a[_0x2d5ef9(0x1f5)](0x4),_0xe66d3a[_0x2d5ef9(0x13c)](_0x27b69a),_0xe66d3a[_0x2d5ef9(0x21b)](_0x2731f0),_0xe66d3a['getBytes']();}static[a0_0x56c57c(0x1a5)](_0x2f58e2,_0x1eec77){const _0x8242ad=a0_0x56c57c;let _0xc5c354=_0x8242ad(0x105),_0x22ebb4=_0xc5c354[_0x8242ad(0x1eb)],_0x2569bb=_0x2f58e2[_0x8242ad(0x1eb)],_0x257272=_0x1eec77[_0x8242ad(0x1eb)],_0x52ae35=new ByteBuilder(_0x22ebb4+_0x2569bb+_0x257272+0xd);return _0x52ae35[_0x8242ad(0x1f5)](BinRespTypes[_0x8242ad(0x1c0)]),_0x52ae35[_0x8242ad(0x1f5)](0x3),_0x52ae35['appendByte'](0x1),_0x52ae35[_0x8242ad(0x13c)](_0x2569bb),_0x52ae35[_0x8242ad(0x21b)](_0x2f58e2),_0x52ae35[_0x8242ad(0x1f5)](0x2),_0x52ae35['appendShort'](_0x257272),_0x52ae35[_0x8242ad(0x21b)](_0x1eec77),_0x52ae35[_0x8242ad(0x1f5)](0x3),_0x52ae35[_0x8242ad(0x13c)](_0x22ebb4),_0x52ae35[_0x8242ad(0x21b)](_0xc5c354),_0x52ae35[_0x8242ad(0x183)]();}static[a0_0x56c57c(0xf9)](_0x24da20,_0x118fee,_0x7d1260,_0x45d853){const _0x3e18ad=a0_0x56c57c;if(!Util[_0x3e18ad(0x20d)](_0x24da20))return null;let _0x5dcf2c=BinRequest['getScripByteArray'](_0x24da20,_0x7d1260),_0x160a0b=new ByteBuilder(_0x5dcf2c[_0x3e18ad(0x1eb)]+0xb);return _0x160a0b['appendByte'](_0x118fee),_0x160a0b['appendByte'](0x2),_0x160a0b[_0x3e18ad(0x1f5)](0x1),_0x160a0b[_0x3e18ad(0x13c)](_0x5dcf2c[_0x3e18ad(0x1eb)]),_0x160a0b['appendByteArray'](_0x5dcf2c,_0x5dcf2c[_0x3e18ad(0x1eb)]),_0x160a0b[_0x3e18ad(0x1f5)](0x2),_0x160a0b[_0x3e18ad(0x13c)](0x1),_0x160a0b['appendByte'](_0x45d853),_0x160a0b[_0x3e18ad(0x183)]();}static[a0_0x56c57c(0x109)](_0x204231,_0xb81397,_0x77db0e){const _0x11b3b3=a0_0x56c57c;let _0x2803aa=new ByteBuilder(0x13);_0x2803aa[_0x11b3b3(0x1f5)](_0x204231),_0x2803aa['appendByte'](0x2),_0x2803aa[_0x11b3b3(0x1f5)](0x1),_0x2803aa[_0x11b3b3(0x13c)](0x8);let _0x157aaa=0x0,_0x35adb1=0x0;return _0x77db0e[_0x11b3b3(0x159)](function(_0xd305df){const _0x587d8f=_0x11b3b3;if(_0xd305df>0x0&&_0xd305df<=0x20)_0x157aaa|=0x1<<_0xd305df;else{if(_0xd305df>0x20&&_0xd305df<=0x40)_0x35adb1|=0x1<<_0xd305df;else console[_0x587d8f(0x1d9)]('Error:\x20Channel\x20values\x20must\x20be\x20in\x20this\x20range\x20\x20[\x20val\x20>\x200\x20&&\x20val\x20<\x2065\x20]');}}),_0x2803aa['appendInt'](_0x35adb1),_0x2803aa[_0x11b3b3(0x21f)](_0x157aaa),_0x2803aa[_0x11b3b3(0x1f5)](0x2),_0x2803aa['appendShort'](0x1),_0x2803aa['appendByte'](_0xb81397),_0x2803aa[_0x11b3b3(0x183)]();}static[a0_0x56c57c(0xeb)](_0x54f1af,_0x4d3c9a){const _0xe65e36=a0_0x56c57c;let _0xe9eb38=new ByteBuilder(0xf);_0xe9eb38[_0xe65e36(0x1f5)](_0x54f1af),_0xe9eb38[_0xe65e36(0x1f5)](0x1),_0xe9eb38[_0xe65e36(0x1f5)](0x1),_0xe9eb38['appendShort'](0x8);let _0x4c737f=0x0,_0x5da670=0x0;return _0x4d3c9a[_0xe65e36(0x159)](function(_0xb8b2d0){const _0x123bb3=_0xe65e36;if(_0xb8b2d0>0x0&&_0xb8b2d0<=0x20)_0x4c737f|=0x1<<_0xb8b2d0;else{if(_0xb8b2d0>0x20&&_0xb8b2d0<=0x40)_0x5da670|=0x1<<_0xb8b2d0;else console['error'](_0x123bb3(0x12e));}}),_0xe9eb38['appendInt'](_0x5da670),_0xe9eb38['appendInt'](_0x4c737f),_0xe9eb38[_0xe65e36(0x183)]();}static['prepareSnapshotRequest'](_0x51d9de,_0xcf31a7,_0x5579c1){const _0x5f4f2a=a0_0x56c57c;let _0x431583=BinRequest[_0x5f4f2a(0x197)](_0x51d9de,_0x5579c1),_0x30e3ca=_0x431583[_0x5f4f2a(0x1eb)],_0x4670d8=new ByteBuilder(_0x30e3ca+0x7);return _0x4670d8[_0x5f4f2a(0x1f5)](_0xcf31a7),_0x4670d8[_0x5f4f2a(0x1f5)](0x1),_0x4670d8['appendByte'](0x1),_0x4670d8[_0x5f4f2a(0x13c)](_0x30e3ca),_0x4670d8['appendByteArray'](_0x431583,_0x30e3ca),_0x4670d8[_0x5f4f2a(0x183)]();}static['prepareThrottlingIntervalRequest'](_0x1cc8c2){const _0x24fab9=a0_0x56c57c;let _0x3d71d7=new ByteBuilder(0xb);return _0x3d71d7[_0x24fab9(0x1f5)](BinRespTypes[_0x24fab9(0x222)]),_0x3d71d7[_0x24fab9(0x1f5)](0x1),_0x3d71d7[_0x24fab9(0x1f5)](0x1),_0x3d71d7[_0x24fab9(0x13c)](0x4),_0x3d71d7[_0x24fab9(0x21f)](_0x1cc8c2),_0x3d71d7[_0x24fab9(0x183)]();}static[a0_0x56c57c(0x197)](_0x494dfa,_0x535c03){const _0x27c9ed=a0_0x56c57c;if(_0x494dfa['charCodeAt'](_0x494dfa[_0x27c9ed(0x1eb)]-0x1)==0x26)_0x494dfa=_0x494dfa[_0x27c9ed(0x12c)](0x0,_0x494dfa['length']-0x1);let _0x76d0ad=_0x494dfa[_0x27c9ed(0x1a0)]('&'),_0x3b207d=_0x76d0ad[_0x27c9ed(0x1eb)],_0x563505=0x0;for(let _0xb60306=0x0;_0xb60306<_0x3b207d;_0xb60306++){_0x76d0ad[_0xb60306]=_0x535c03+'|'+_0x76d0ad[_0xb60306],_0x563505+=_0x76d0ad[_0xb60306][_0x27c9ed(0x1eb)]+0x1;}let _0x2fc5cd=new Uint8Array(_0x563505+0x2),_0x215abd=0x0;_0x2fc5cd[_0x215abd++]=_0x3b207d>>0x8&0xff,_0x2fc5cd[_0x215abd++]=_0x3b207d&0xff;for(let _0x12eed5=0x0;_0x12eed5<_0x3b207d;_0x12eed5++){let _0x13a8f9=_0x76d0ad[_0x12eed5],_0x990084=_0x13a8f9[_0x27c9ed(0x1eb)];_0x2fc5cd[_0x215abd++]=_0x990084&0xff;for(let _0x250fce=0x0;_0x250fce<_0x990084;_0x250fce++){_0x2fc5cd[_0x215abd++]=_0x13a8f9[_0x27c9ed(0x218)](_0x250fce);}}return _0x2fc5cd;}static[a0_0x56c57c(0x1fc)](_0x12e1cc,_0xe493d4,_0x5df1c5,_0x1c1634,_0x365047){const _0x446175=a0_0x56c57c;let _0x5590ca=_0x12e1cc[_0x446175(0x1eb)],_0x56a2c6=new ByteBuilder(_0x5590ca+0x1e);return _0x56a2c6[_0x446175(0x1f5)](BinRespTypes['OPC_SUBSCRIBE']),_0x56a2c6[_0x446175(0x1f5)](0x5),_0x56a2c6['appendByte'](0x1),_0x56a2c6['appendShort'](_0x5590ca),_0x56a2c6[_0x446175(0x21b)](_0x12e1cc),_0x56a2c6[_0x446175(0x1f5)](0x2),_0x56a2c6[_0x446175(0x13c)](0x8),_0x56a2c6[_0x446175(0x1ea)](_0xe493d4),_0x56a2c6['appendByte'](0x3),_0x56a2c6[_0x446175(0x13c)](0x1),_0x56a2c6['appendByte'](_0x5df1c5),_0x56a2c6[_0x446175(0x1f5)](0x4),_0x56a2c6['appendShort'](0x1),_0x56a2c6[_0x446175(0x1f5)](_0x1c1634),_0x56a2c6['appendByte'](0x5),_0x56a2c6[_0x446175(0x13c)](0x1),_0x56a2c6[_0x446175(0x1f5)](_0x365047),_0x56a2c6[_0x446175(0x183)]();}}BinRequest[a0_0x56c57c(0x20b)]=new Uint8Array([0x0,0x1,0xb]);class HSWebSocket{constructor(){const _0x46cc2e=a0_0x56c57c;this[_0x46cc2e(0x174)]=null,this['ws']=null,this['hsParser']=null,this[_0x46cc2e(0x118)]=null,this['onClose']=null,this[_0x46cc2e(0x126)]=null,this['onError']=null;}[a0_0x56c57c(0x1c9)](){const _0x157fcb=a0_0x56c57c;this['ws']&&(this['ws'][_0x157fcb(0x1c9)](0x3e8,_0x157fcb(0x1f8)),this['ws']=null);}[a0_0x56c57c(0x15a)](){const _0x33ea10=a0_0x56c57c;return this['ws']?this['ws'][_0x33ea10(0x13d)]==WebSocket['OPEN']:![];}['connect'](_0x403077,_0x522b4e){const _0x38cedb=a0_0x56c57c;Log[_0x38cedb(0x1b4)](_0x38cedb(0x1f2)),this[_0x38cedb(0x174)]=_0x403077;let _0x421b7b=(_0x522b4e?_0x522b4e:Constants[_0x38cedb(0x15b)])*0x3e8;this['ws']&&(this['ws'][_0x38cedb(0x209)]=_0x513a5b=>{},this['ws'][_0x38cedb(0x1b1)]=_0x3cf874=>{},this['ws'][_0x38cedb(0x1e6)]=_0x58ba1a=>{},this['ws'][_0x38cedb(0x205)]=_0x4e9923=>{},this['ws'][_0x38cedb(0x1c9)](0x3e8,_0x38cedb(0x202)));this['ws']=new WebSocket(_0x403077);if(this['ws'])this['ws'][_0x38cedb(0x17a)]=_0x38cedb(0x1cd),this[_0x38cedb(0x1d8)]=new HSParser(this['ws'],this,_0x421b7b);else{console[_0x38cedb(0x1d9)](_0x38cedb(0x206));return;}this['ws']['onopen']=_0x29902d=>{const _0x11a27b=_0x38cedb;Log[_0x11a27b(0x1b4)](_0x11a27b(0x121)),this[_0x11a27b(0x118)]();},this['ws']['onmessage']=_0x2aa829=>{const _0x21c9a5=_0x38cedb;let _0x1f85da=_0x2aa829['data'];if(_0x1f85da instanceof ArrayBuffer){let _0x46bb25=this[_0x21c9a5(0x1d8)][_0x21c9a5(0x132)](_0x1f85da);if(_0x46bb25)this[_0x21c9a5(0x126)](JSON[_0x21c9a5(0x17c)](_0x46bb25));}else this[_0x21c9a5(0x126)](_0x1f85da);},this['ws'][_0x38cedb(0x1e6)]=_0x164d16=>{const _0xea57c6=_0x38cedb;Log[_0xea57c6(0x1b4)](_0xea57c6(0xe6)+_0x164d16[_0xea57c6(0x1a9)]+_0xea57c6(0x131)+_0x164d16[_0xea57c6(0x213)]+_0xea57c6(0xed)+_0x164d16[_0xea57c6(0x190)]),this[_0xea57c6(0x13a)](_0x164d16);},this['ws'][_0x38cedb(0x205)]=_0x50b98d=>{const _0x4494fe=_0x38cedb;Log[_0x4494fe(0x1b4)](_0x4494fe(0x158)+_0x50b98d),this[_0x4494fe(0x172)](_0x50b98d);};}[a0_0x56c57c(0x17d)](_0x143c2a){const _0x3a2d5a=a0_0x56c57c;let _0xee8b4d=JSON[_0x3a2d5a(0x1c7)](_0x143c2a);Log[_0x3a2d5a(0x1b4)](_0xee8b4d);let _0x18e9be=_0xee8b4d[Keys[_0x3a2d5a(0x133)]],_0x261582=null,_0x10781b=_0xee8b4d[Keys[_0x3a2d5a(0x211)]],_0x573440=_0xee8b4d[Keys['CHANNEL_NUM']],_0x326d52=_0xee8b4d[Keys[_0x3a2d5a(0x147)]];switch(_0x18e9be){case ReqTypeValues[_0x3a2d5a(0x1bc)]:let _0xcd773c=_0xee8b4d[_0x3a2d5a(0x199)];if(_0xee8b4d[Keys[_0x3a2d5a(0x215)]]!==undefined&&_0xcd773c!==undefined){let _0x517dc1=_0xee8b4d[Keys['USER_ID']];_0x261582=BinRequest[_0x3a2d5a(0x10a)](_0x517dc1,_0xcd773c);}else{if(_0xee8b4d[Keys[_0x3a2d5a(0x1b7)]]!==undefined&&_0xcd773c!==undefined){let _0x1103a7=_0xee8b4d[Keys[_0x3a2d5a(0x1b7)]];_0x261582=BinRequest[_0x3a2d5a(0x10a)](_0x1103a7,_0xcd773c);}else{if(_0xee8b4d[Keys[_0x3a2d5a(0x1c8)]]!==undefined){let _0x12a925=_0xee8b4d[Keys[_0x3a2d5a(0x1c8)]],_0x4a1333=_0xee8b4d[Keys[_0x3a2d5a(0x11c)]];if(_0x12a925&&_0x4a1333)_0x261582=BinRequest[_0x3a2d5a(0x1a5)](_0x12a925,_0x4a1333);else console[_0x3a2d5a(0x1d9)](_0x3a2d5a(0xee));}else console[_0x3a2d5a(0x1d9)](_0x3a2d5a(0x114));}}break;case ReqTypeValues['SCRIP_SUBS']:_0x261582=BinRequest[_0x3a2d5a(0xf9)](_0x10781b,BinRespTypes[_0x3a2d5a(0xfc)],PREFIX[_0x3a2d5a(0x171)],_0x573440);break;case ReqTypeValues[_0x3a2d5a(0x19c)]:_0x261582=BinRequest[_0x3a2d5a(0xf9)](_0x10781b,BinRespTypes['UNSUBSCRIBE_TYPE'],PREFIX[_0x3a2d5a(0x171)],_0x573440);break;case ReqTypeValues[_0x3a2d5a(0x1e7)]:_0x261582=BinRequest[_0x3a2d5a(0xf9)](_0x10781b,BinRespTypes[_0x3a2d5a(0xfc)],PREFIX['INDEX'],_0x573440);break;case ReqTypeValues[_0x3a2d5a(0x20c)]:_0x261582=BinRequest[_0x3a2d5a(0xf9)](_0x10781b,BinRespTypes[_0x3a2d5a(0x135)],PREFIX[_0x3a2d5a(0x228)],_0x573440);break;case ReqTypeValues[_0x3a2d5a(0x204)]:_0x261582=BinRequest[_0x3a2d5a(0xf9)](_0x10781b,BinRespTypes[_0x3a2d5a(0xfc)],PREFIX[_0x3a2d5a(0x124)],_0x573440);break;case ReqTypeValues[_0x3a2d5a(0x148)]:_0x261582=BinRequest[_0x3a2d5a(0xf9)](_0x10781b,BinRespTypes[_0x3a2d5a(0x135)],PREFIX[_0x3a2d5a(0x124)],_0x573440);break;case ReqTypeValues[_0x3a2d5a(0x16c)]:_0x261582=BinRequest['prepareChannelRequest'](BinRespTypes['CHPAUSE_TYPE'],_0x326d52);break;case ReqTypeValues['CHANNEL_RESUME']:_0x261582=BinRequest[_0x3a2d5a(0xeb)](BinRespTypes['CHRESUME_TYPE'],_0x326d52);break;case ReqTypeValues['SNAP_MW']:_0x261582=BinRequest[_0x3a2d5a(0x1ce)](_0x10781b,BinRespTypes[_0x3a2d5a(0x173)],PREFIX[_0x3a2d5a(0x171)]);break;case ReqTypeValues[_0x3a2d5a(0x11f)]:_0x261582=BinRequest[_0x3a2d5a(0x1ce)](_0x10781b,BinRespTypes[_0x3a2d5a(0x173)],PREFIX[_0x3a2d5a(0x124)]);break;case ReqTypeValues[_0x3a2d5a(0x1bf)]:_0x261582=BinRequest[_0x3a2d5a(0x1ce)](_0x10781b,BinRespTypes[_0x3a2d5a(0x173)],PREFIX[_0x3a2d5a(0x228)]);break;case ReqTypeValues[_0x3a2d5a(0x216)]:_0x261582=BinRequest[_0x3a2d5a(0x1fc)](_0xee8b4d[Keys[_0x3a2d5a(0x19a)]],_0xee8b4d[Keys['STK_PRC']],_0xee8b4d[Keys[_0x3a2d5a(0x156)]],_0xee8b4d[Keys[_0x3a2d5a(0x184)]],_0x573440);break;case ReqTypeValues[_0x3a2d5a(0x137)]:break;case ReqTypeValues['LITE']:_0x261582=BinRequest[_0x3a2d5a(0x109)](BinRespTypes[_0x3a2d5a(0x20a)],CHANNEL_DATA_MODE['LITE'],_0x326d52);break;case ReqTypeValues[_0x3a2d5a(0x1db)]:_0x261582=BinRequest[_0x3a2d5a(0x109)](BinRespTypes['LITE_FULL'],CHANNEL_DATA_MODE[_0x3a2d5a(0x1db)],_0x326d52);break;case ReqTypeValues[_0x3a2d5a(0x1f0)]:_0x261582=_0x10781b;break;default:_0x261582=null;break;}if(this['ws']&&_0x261582)this['ws'][_0x3a2d5a(0x17d)](_0x261582);else console[_0x3a2d5a(0x1d9)](_0x3a2d5a(0x10c));}}class HSParser{constructor(_0x58e0f0,_0x39f8a1,_0x292cf4){const _0x1cfecc=a0_0x56c57c;this[_0x1cfecc(0x1c2)]=null,this[_0x1cfecc(0x128)]=null,this[_0x1cfecc(0x187)]=new Array(),this[_0x1cfecc(0xf7)]=0x0,this['ackNum']=0x0,this[_0x1cfecc(0x1fa)]=0x0,this['inWS']=_0x58e0f0,this[_0x1cfecc(0x1c2)]=_0x39f8a1,this[_0x1cfecc(0x117)]=_0x292cf4;}[a0_0x56c57c(0x132)](_0x535acb){const _0x35ce2f=a0_0x56c57c;let _0x329689=0x0,_0x514809=Util[_0x35ce2f(0xe4)](_0x535acb[_0x35ce2f(0x152)](_0x329689,0x2));Log[_0x35ce2f(0x1b4)](_0x35ce2f(0x1f1)+_0x514809),_0x329689+=0x2;let _0x15d55c=Util[_0x35ce2f(0xe4)](_0x535acb[_0x35ce2f(0x152)](_0x329689,_0x329689+0x1));_0x329689+=0x1,Log[_0x35ce2f(0x1b4)](_0x35ce2f(0x1ca)+_0x15d55c);if(_0x15d55c==BinRespTypes['CONNECTION_TYPE']){const _0x532d16={};let _0x3f1e20=Util[_0x35ce2f(0xe4)](_0x535acb[_0x35ce2f(0x152)](_0x329689,_0x329689+0x1));Log['hsmDebug'](_0x35ce2f(0xef)+_0x3f1e20),_0x329689+=0x1;let _0x525704=Util[_0x35ce2f(0xe4)](_0x535acb[_0x35ce2f(0x152)](_0x329689,_0x329689+0x1));_0x329689+=0x1;let _0x267e1a=Util['buf2Long'](_0x535acb[_0x35ce2f(0x152)](_0x329689,_0x329689+0x2));_0x329689+=0x2;let _0x42783b=Util[_0x35ce2f(0x15d)](_0x535acb['slice'](_0x329689,_0x329689+_0x267e1a));_0x329689+=_0x267e1a;let _0x2cd51c=0x0;if(_0x3f1e20>=0x2){_0x525704=Util['buf2Long'](_0x535acb[_0x35ce2f(0x152)](_0x329689,_0x329689+0x1)),_0x329689+=0x1,_0x267e1a=Util[_0x35ce2f(0xe4)](_0x535acb['slice'](_0x329689,_0x329689+0x2)),_0x329689+=0x2,_0x2cd51c=Util[_0x35ce2f(0xe4)](_0x535acb[_0x35ce2f(0x152)](_0x329689,_0x329689+_0x267e1a)),_0x329689+=_0x267e1a;if(_0x3f1e20>=0x3){_0x525704=Util['buf2Long'](_0x535acb[_0x35ce2f(0x152)](_0x329689,_0x329689+0x1)),_0x329689+=0x1,_0x267e1a=Util[_0x35ce2f(0xe4)](_0x535acb['slice'](_0x329689,_0x329689+0x2)),_0x329689+=0x2;let _0x51e300=JSON[_0x35ce2f(0x1c7)](Util[_0x35ce2f(0x15d)](_0x535acb[_0x35ce2f(0x152)](_0x329689,_0x329689+_0x267e1a)));_0x329689+=_0x267e1a,this[_0x35ce2f(0xf5)](_0x51e300);}Log['hsmDebug'](_0x35ce2f(0x193)+_0x2cd51c);switch(_0x42783b){case BinRespStat['OK']:_0x532d16[RESPONSE_KEYS[_0x35ce2f(0x1b2)]]=STAT['OK'],_0x532d16[RESPONSE_KEYS[_0x35ce2f(0x133)]]=RespTypeValues[_0x35ce2f(0x16f)],_0x532d16[RESPONSE_KEYS[_0x35ce2f(0xfb)]]=RESPONSE_VALUES[_0x35ce2f(0x1d6)],_0x532d16[RESPONSE_KEYS[_0x35ce2f(0x1e1)]]=RespCodes['SUCCESS'],this[_0x35ce2f(0x12d)]();break;case BinRespStat[_0x35ce2f(0x175)]:_0x532d16[RESPONSE_KEYS[_0x35ce2f(0x1b2)]]=STAT['NOT_OK'],_0x532d16[RESPONSE_KEYS[_0x35ce2f(0x133)]]=RespTypeValues[_0x35ce2f(0x16f)],_0x532d16[RESPONSE_KEYS[_0x35ce2f(0xfb)]]=RESPONSE_VALUES['FAILED'],_0x532d16[RESPONSE_KEYS['STAT_CODE']]=RespCodes[_0x35ce2f(0x123)];break;}this['ackNum']=_0x2cd51c;}else{if(_0x3f1e20==0x1)switch(_0x42783b){case BinRespStat['OK']:_0x532d16[RESPONSE_KEYS['STATUS']]=STAT['OK'],_0x532d16[RESPONSE_KEYS['TYPE']]=RespTypeValues[_0x35ce2f(0x16f)],_0x532d16[RESPONSE_KEYS[_0x35ce2f(0xfb)]]=RESPONSE_VALUES[_0x35ce2f(0x1d6)],_0x532d16[RESPONSE_KEYS[_0x35ce2f(0x1e1)]]=RespCodes[_0x35ce2f(0x1d2)],this[_0x35ce2f(0x12d)]();break;case BinRespStat[_0x35ce2f(0x175)]:_0x532d16[RESPONSE_KEYS[_0x35ce2f(0x1b2)]]=STAT[_0x35ce2f(0x175)],_0x532d16[RESPONSE_KEYS['TYPE']]=RespTypeValues[_0x35ce2f(0x16f)],_0x532d16[RESPONSE_KEYS['MSG']]=RESPONSE_VALUES[_0x35ce2f(0x10b)],_0x532d16[RESPONSE_KEYS[_0x35ce2f(0x1e1)]]=RespCodes['CONNECTION_FAILED'];break;}else _0x532d16[RESPONSE_KEYS[_0x35ce2f(0x1b2)]]=STAT[_0x35ce2f(0x175)],_0x532d16[RESPONSE_KEYS['TYPE']]=RespTypeValues[_0x35ce2f(0x16f)],_0x532d16[RESPONSE_KEYS[_0x35ce2f(0xfb)]]=RESPONSE_VALUES[_0x35ce2f(0x225)],_0x532d16[RESPONSE_KEYS['STAT_CODE']]=RespCodes[_0x35ce2f(0xea)];}return this[_0x35ce2f(0x130)](_0x532d16);}else{if(_0x15d55c==BinRespTypes['DATA_TYPE']){let _0xef230a=0x0;if(this[_0x35ce2f(0x1bd)]>0x0){++this['counter'],_0xef230a=Util['buf2Long'](_0x535acb['slice'](_0x329689,_0x329689+0x4)),_0x329689+=0x4;if(this['counter']==this[_0x35ce2f(0x1bd)]){let _0x59ced4=BinRequest[_0x35ce2f(0x12f)](_0xef230a);if(this[_0x35ce2f(0x128)])this['inWS'][_0x35ce2f(0x17d)](_0x59ced4);Log[_0x35ce2f(0x1b4)]('Acknowledgement\x20sent\x20for\x20message\x20num:\x20'+_0xef230a),this[_0x35ce2f(0xf7)]=0x0;}}const _0xd59f4e=[];let _0x59ae17=Util['buf2Long'](_0x535acb['slice'](_0x329689,_0x329689+0x2));_0x329689+=0x2;for(let _0x2c137a=0x0;_0x2c137a<_0x59ae17;_0x2c137a++){let _0xc0c0c3=Util[_0x35ce2f(0xe4)](_0x535acb[_0x35ce2f(0x152)](_0x329689,_0x329689+0x1));Log['hsmDebug']('ResponseType:\x20'+_0xc0c0c3),_0x329689++;if(_0xc0c0c3==ResponseTypes[_0x35ce2f(0xfa)]){let _0x26beae=Util[_0x35ce2f(0xe4)](_0x535acb[_0x35ce2f(0x152)](_0x329689,_0x329689+0x2));_0x329689+=0x2,Log['hsmDebug'](_0x35ce2f(0x10f)+_0x26beae);let _0x355a5b=Util[_0x35ce2f(0xe4)](_0x535acb[_0x35ce2f(0x152)](_0x329689,_0x329689+0x1));_0x329689++,Log['hsmDebug'](_0x35ce2f(0x19f)+_0x355a5b);let _0x53e9c7=Util[_0x35ce2f(0x15d)](_0x535acb[_0x35ce2f(0x152)](_0x329689,_0x329689+_0x355a5b));_0x329689+=_0x355a5b,Log['hsmDebug'](_0x35ce2f(0x198)+_0x53e9c7);let _0x297fb2=this['getNewTopicData'](_0x53e9c7);if(_0x297fb2){this['topicList'][_0x26beae]=_0x297fb2;let _0x2cb4c3=Util[_0x35ce2f(0xe4)](_0x535acb[_0x35ce2f(0x152)](_0x329689,_0x329689+0x1));_0x329689++,Log[_0x35ce2f(0x1b4)](_0x35ce2f(0x1fe)+_0x2cb4c3);for(let _0x2ebf59=0x0;_0x2ebf59<_0x2cb4c3;_0x2ebf59++){let _0x45929f=Util['buf2Long'](_0x535acb[_0x35ce2f(0x152)](_0x329689,_0x329689+0x4));_0x297fb2[_0x35ce2f(0x21e)](_0x2ebf59,_0x45929f),_0x329689+=0x4,Log[_0x35ce2f(0x1b4)](_0x2ebf59+':'+_0x45929f);}_0x329689+=0x2;let _0x22f9cb=Util[_0x35ce2f(0xe4)](_0x535acb[_0x35ce2f(0x152)](_0x329689,_0x329689+0x2));_0x329689+=0x2,Log[_0x35ce2f(0x1b4)]('multi:\x20'+_0x22f9cb);let _0x4dc5d0=Util[_0x35ce2f(0xe4)](_0x535acb[_0x35ce2f(0x152)](_0x329689,_0x329689+0x1));_0x329689++,Log[_0x35ce2f(0x1b4)](_0x35ce2f(0x217)+_0x4dc5d0),_0x297fb2['setMultiplierAndPrec'](_0x22f9cb,_0x4dc5d0);for(let _0x30e68a=0x0;_0x30e68a<0x3;_0x30e68a++){let _0x2721a8=Util[_0x35ce2f(0xe4)](_0x535acb['slice'](_0x329689,_0x329689+0x1));_0x329689++;let _0x571c12=Util[_0x35ce2f(0x15d)](_0x535acb[_0x35ce2f(0x152)](_0x329689,_0x329689+_0x2721a8));_0x329689+=_0x2721a8,_0x297fb2[_0x35ce2f(0x212)](_0x30e68a,_0x571c12),Log[_0x35ce2f(0x1b4)]('strVal:\x20'+_0x571c12);}let _0x5939d9=_0x297fb2[_0x35ce2f(0x120)]();if(_0x5939d9)_0xd59f4e[_0x35ce2f(0x11e)](_0x5939d9);}else Log[_0x35ce2f(0x1b4)](_0x35ce2f(0x226));}else{if(_0xc0c0c3==ResponseTypes[_0x35ce2f(0x14c)]||_0xc0c0c3==ResponseTypes[_0x35ce2f(0x1ec)]){Log[_0x35ce2f(0x1b4)](_0x35ce2f(0x11b)+_0xc0c0c3);let _0xc57fe2=Util[_0x35ce2f(0xe4)](_0x535acb[_0x35ce2f(0x152)](_0x329689,_0x329689+0x2));Log[_0x35ce2f(0x1b4)](_0x35ce2f(0x10f)+_0xc57fe2),_0x329689+=0x2;let _0x3ba997=this['topicList'][_0xc57fe2];if(!_0x3ba997)console[_0x35ce2f(0x1d9)](_0x35ce2f(0x103));else{let _0x1ee219;_0xc0c0c3!=ResponseTypes[_0x35ce2f(0x1ec)]?(_0x1ee219=Util[_0x35ce2f(0xe4)](_0x535acb['slice'](_0x329689,_0x329689+0x1)),_0x329689++):_0x1ee219=_0x3ba997[_0x35ce2f(0x1fb)];Log['hsmDebug'](_0x35ce2f(0x1fe)+_0x1ee219);for(let _0x21b68f=0x0;_0x21b68f<_0x1ee219;_0x21b68f++){let _0x246570=Util[_0x35ce2f(0xe4)](_0x535acb[_0x35ce2f(0x152)](_0x329689,_0x329689+0x4));_0x3ba997[_0x35ce2f(0x21e)](_0x21b68f,_0x246570),Log[_0x35ce2f(0x1b4)](_0x35ce2f(0x1f4)+_0x21b68f+_0x35ce2f(0x1fd)+_0x246570),_0x329689+=0x4;}}let _0x14c428=_0x3ba997[_0x35ce2f(0x120)]();if(_0x14c428)_0xd59f4e['push'](_0x14c428);}else console[_0x35ce2f(0x1d9)](_0x35ce2f(0x1aa)+_0xc0c0c3);}}return _0xd59f4e[_0x35ce2f(0x1eb)]>0x0?_0xd59f4e:null;}else{if(_0x15d55c==BinRespTypes[_0x35ce2f(0xfc)]||_0x15d55c==BinRespTypes[_0x35ce2f(0x135)]){let _0xf09f08=this[_0x35ce2f(0x1b9)](_0x535acb,_0x329689);const _0x57a97e={};switch(_0xf09f08){case BinRespStat['OK']:_0x57a97e[RESPONSE_KEYS[_0x35ce2f(0x1b2)]]=STAT['OK'],_0x57a97e[RESPONSE_KEYS[_0x35ce2f(0x133)]]=_0x15d55c==BinRespTypes[_0x35ce2f(0xfc)]?RespTypeValues[_0x35ce2f(0x154)]:RespTypeValues[_0x35ce2f(0xf8)],_0x57a97e[RESPONSE_KEYS[_0x35ce2f(0xfb)]]=RESPONSE_VALUES[_0x35ce2f(0x1d6)],_0x57a97e[RESPONSE_KEYS['STAT_CODE']]=RespCodes[_0x35ce2f(0x1d2)];break;case BinRespStat[_0x35ce2f(0x175)]:_0x57a97e[RESPONSE_KEYS[_0x35ce2f(0x1b2)]]=STAT[_0x35ce2f(0x175)];_0x15d55c==BinRespTypes[_0x35ce2f(0xfc)]?(_0x57a97e[RESPONSE_KEYS[_0x35ce2f(0x133)]]=RespTypeValues[_0x35ce2f(0x154)],_0x57a97e[RESPONSE_KEYS[_0x35ce2f(0xfb)]]=_0x35ce2f(0x112),_0x57a97e[RESPONSE_KEYS[_0x35ce2f(0x1e1)]]=RespCodes[_0x35ce2f(0x1a2)]):(_0x57a97e[RESPONSE_KEYS[_0x35ce2f(0x133)]]=RespTypeValues[_0x35ce2f(0xf8)],_0x57a97e[RESPONSE_KEYS['MSG']]='unsubscription\x20\x20failed',_0x57a97e[RESPONSE_KEYS['STAT_CODE']]=RespCodes[_0x35ce2f(0x181)]);break;}return this['sendJsonArrResp'](_0x57a97e);}else{if(_0x15d55c==BinRespTypes[_0x35ce2f(0x173)]){let _0x36ff4b=this[_0x35ce2f(0x1b9)](_0x535acb,_0x329689);const _0x4bcd31={};switch(_0x36ff4b){case BinRespStat['OK']:_0x4bcd31[RESPONSE_KEYS[_0x35ce2f(0x1b2)]]=STAT['OK'],_0x4bcd31[RESPONSE_KEYS['TYPE']]=RespTypeValues[_0x35ce2f(0xfa)],_0x4bcd31[RESPONSE_KEYS[_0x35ce2f(0xfb)]]=RESPONSE_VALUES[_0x35ce2f(0x1d6)],_0x4bcd31[RESPONSE_KEYS['STAT_CODE']]=RespCodes['SUCCESS'];break;case BinRespStat[_0x35ce2f(0x175)]:_0x4bcd31[RESPONSE_KEYS[_0x35ce2f(0x1b2)]]=STAT['NOT_OK'],_0x4bcd31[RESPONSE_KEYS[_0x35ce2f(0x133)]]=RespTypeValues[_0x35ce2f(0xfa)],_0x4bcd31[RESPONSE_KEYS[_0x35ce2f(0xfb)]]=RESPONSE_VALUES[_0x35ce2f(0x10b)],_0x4bcd31[RESPONSE_KEYS[_0x35ce2f(0x1e1)]]=RespCodes['SNAPSHOT_FAILED'];break;}return this['sendJsonArrResp'](_0x4bcd31);}else{if(_0x15d55c==BinRespTypes[_0x35ce2f(0x129)]||_0x15d55c==BinRespTypes['CHRESUME_TYPE']){let _0x53b9a2=this[_0x35ce2f(0x1b9)](_0x535acb,_0x329689);const _0x5da942={};switch(_0x53b9a2){case BinRespStat['OK']:_0x5da942[RESPONSE_KEYS[_0x35ce2f(0x1b2)]]=STAT['OK'],_0x5da942[RESPONSE_KEYS[_0x35ce2f(0x133)]]=_0x15d55c==BinRespTypes[_0x35ce2f(0x129)]?RespTypeValues[_0x35ce2f(0xe5)]:RespTypeValues[_0x35ce2f(0x110)],_0x5da942[RESPONSE_KEYS[_0x35ce2f(0xfb)]]=RESPONSE_VALUES['SUCCESSFUL'],_0x5da942[RESPONSE_KEYS['STAT_CODE']]=RespCodes['SUCCESS'];break;case BinRespStat['NOT_OK']:_0x5da942[RESPONSE_KEYS[_0x35ce2f(0x1b2)]]=STAT[_0x35ce2f(0x175)],_0x5da942[RESPONSE_KEYS['TYPE']]=_0x15d55c==BinRespTypes[_0x35ce2f(0x129)]?RespTypeValues[_0x35ce2f(0xe5)]:RespTypeValues[_0x35ce2f(0x110)],_0x5da942[RESPONSE_KEYS['MSG']]=RESPONSE_VALUES[_0x35ce2f(0x10b)],_0x5da942[RESPONSE_KEYS[_0x35ce2f(0x1e1)]]=_0x15d55c==BinRespTypes[_0x35ce2f(0x129)]?RespCodes[_0x35ce2f(0x167)]:RespCodes[_0x35ce2f(0x116)];break;}return this['sendJsonArrResp'](_0x5da942);}else{if(_0x15d55c==BinRespTypes['OPC_SUBSCRIBE']){let _0x35e65a=this[_0x35ce2f(0x1b9)](_0x535acb,_0x329689);_0x329689+=0x5;const _0x1a9034={};switch(_0x35e65a){case BinRespStat['OK']:_0x1a9034[RESPONSE_KEYS['STATUS']]=STAT['OK'],_0x1a9034[RESPONSE_KEYS[_0x35ce2f(0x133)]]=RespTypeValues['OPC'],_0x1a9034[RESPONSE_KEYS[_0x35ce2f(0xfb)]]=RESPONSE_VALUES[_0x35ce2f(0x1d6)],_0x1a9034[RESPONSE_KEYS[_0x35ce2f(0x1e1)]]=RespCodes[_0x35ce2f(0x1d2)];let _0x560df2=Util[_0x35ce2f(0xe4)](_0x535acb[_0x35ce2f(0x152)](_0x329689,++_0x329689)),_0x32f4d7=Util[_0x35ce2f(0xe4)](_0x535acb['slice'](_0x329689,_0x329689+0x2));_0x329689+=0x2;let _0x271b3b=Util[_0x35ce2f(0x15d)](_0x535acb['slice'](_0x329689,_0x329689+_0x32f4d7));_0x329689+=_0x32f4d7,_0x1a9034[_0x35ce2f(0x139)]=_0x271b3b,_0x560df2=Util[_0x35ce2f(0xe4)](_0x535acb[_0x35ce2f(0x152)](_0x329689,++_0x329689)),_0x32f4d7=Util[_0x35ce2f(0xe4)](_0x535acb[_0x35ce2f(0x152)](_0x329689,_0x329689+0x2)),_0x329689+=0x2;let _0x37d663=Util[_0x35ce2f(0x15d)](_0x535acb[_0x35ce2f(0x152)](_0x329689,_0x329689+_0x32f4d7));_0x329689+=_0x32f4d7,_0x1a9034[_0x35ce2f(0x1ed)]=JSON[_0x35ce2f(0x1c7)](_0x37d663)[_0x35ce2f(0x1b8)];break;case BinRespStat[_0x35ce2f(0x175)]:_0x1a9034[RESPONSE_KEYS['STATUS']]=STAT[_0x35ce2f(0x175)],_0x1a9034[RESPONSE_KEYS[_0x35ce2f(0x133)]]=RespTypeValues['OPC'],_0x1a9034[RESPONSE_KEYS[_0x35ce2f(0xfb)]]=RESPONSE_VALUES['FAILED'],_0x1a9034[RESPONSE_KEYS[_0x35ce2f(0x1e1)]]=0x2b20;break;}return this[_0x35ce2f(0x130)](_0x1a9034);}else{if(_0x15d55c==BinRespTypes[_0x35ce2f(0x20a)]){let _0x3fb25d=this[_0x35ce2f(0x1b9)](_0x535acb,_0x329689);const _0x1b1d4a={};switch(_0x3fb25d){case BinRespStat['OK']:_0x1b1d4a[RESPONSE_KEYS[_0x35ce2f(0x1b2)]]=STAT['OK'],_0x1b1d4a[RESPONSE_KEYS[_0x35ce2f(0x133)]]=_0x15d55c==BinRespTypes[_0x35ce2f(0x20a)]?RespTypeValues[_0x35ce2f(0x1ec)]:RespTypeValues[_0x35ce2f(0x1db)],_0x1b1d4a[RESPONSE_KEYS[_0x35ce2f(0xfb)]]=RESPONSE_VALUES[_0x35ce2f(0x1d6)],_0x1b1d4a[RESPONSE_KEYS['STAT_CODE']]=RespCodes[_0x35ce2f(0x1d2)];break;case BinRespStat['NOT_OK']:_0x1b1d4a[RESPONSE_KEYS[_0x35ce2f(0x1b2)]]=STAT[_0x35ce2f(0x175)],_0x1b1d4a[RESPONSE_KEYS[_0x35ce2f(0x133)]]=_0x15d55c==BinRespTypes['LITE_FULL']?RespTypeValues['LITE']:RespTypeValues['FULL'],_0x1b1d4a[RESPONSE_KEYS[_0x35ce2f(0xfb)]]=RESPONSE_VALUES[_0x35ce2f(0x10b)],_0x1b1d4a[RESPONSE_KEYS[_0x35ce2f(0x1e1)]]=0x2ee1;break;}return this['sendJsonArrResp'](_0x1b1d4a);}else return null;}}}}}}}[a0_0x56c57c(0x1b9)](_0x5d89ce,_0x5cd477){const _0x2d5792=a0_0x56c57c;let _0x571ae1=BinRespStat['NOT_OK'][_0x2d5792(0x1ff)](),_0x3d03d3=Util[_0x2d5792(0xe4)](_0x5d89ce[_0x2d5792(0x152)](_0x5cd477,++_0x5cd477));if(_0x3d03d3>0x0){let _0x1addcc=Util[_0x2d5792(0xe4)](_0x5d89ce[_0x2d5792(0x152)](_0x5cd477,++_0x5cd477)),_0x11c51e=Util[_0x2d5792(0xe4)](_0x5d89ce[_0x2d5792(0x152)](_0x5cd477,_0x5cd477+0x2));_0x5cd477+=0x2,_0x571ae1=Util[_0x2d5792(0x15d)](_0x5d89ce[_0x2d5792(0x152)](_0x5cd477,_0x5cd477+_0x11c51e)),_0x5cd477+=_0x11c51e;}return _0x571ae1;}['getNewTopicData'](_0x418bb5){const _0x2c140a=a0_0x56c57c;let _0x2e4436=_0x418bb5['split']('|')[0x0],_0x252d09=null;switch(_0x2e4436){case TopicTypes[_0x2c140a(0x171)]:_0x252d09=new ScripTopicData(),_0x252d09[_0x2c140a(0x1fb)]=Constants['SCRIP_LITE_FCOUNT'];break;case TopicTypes[_0x2c140a(0x228)]:_0x252d09=new IndexTopicData(),_0x252d09[_0x2c140a(0x1fb)]=Constants[_0x2c140a(0x14b)];break;case TopicTypes[_0x2c140a(0x124)]:_0x252d09=new DepthTopicData();break;}return _0x252d09;}[a0_0x56c57c(0xf5)](_0x2a98a0){const _0x235e24=a0_0x56c57c;if(_0x2a98a0){Log['hsmDebug'](_0x235e24(0x115)),ScripTopicData[_0x235e24(0x166)]=new Array(),IndexTopicData[_0x235e24(0x166)]=new Array(),DepthTopicData[_0x235e24(0x166)]=new Array();let _0xdacd=new Map();_0x2a98a0[_0x235e24(0x1ae)][_0x235e24(0x159)](function(_0x37c6ac){const _0x158a53=_0x235e24;_0xdacd[_0x158a53(0xf3)](_0x37c6ac['fid'],_0x37c6ac);}),Constants[_0x235e24(0x1c3)]=_0x2a98a0['scrip_lite']['hfid'],Constants[_0x235e24(0x14b)]=_0x2a98a0[_0x235e24(0x149)][_0x235e24(0xfe)],_0x2a98a0[_0x235e24(0x107)][_0x235e24(0x11e)](SCRIPFID_MAP[_0x235e24(0xe8)]),_0x2a98a0[_0x235e24(0x107)][_0x235e24(0x11e)](SCRIPFID_MAP[_0x235e24(0x1f7)]),_0x2a98a0['scrip']['push'](SCRIPFID_MAP[_0x235e24(0x219)]),_0x2a98a0[_0x235e24(0x1f6)][_0x235e24(0x11e)](INDEXFID_MAP[_0x235e24(0xe8)]),_0x2a98a0[_0x235e24(0x1f6)]['push'](INDEXFID_MAP[_0x235e24(0x1f7)]),ScripTopicData['LTP_INDEX']=_0x2a98a0['scrip'][_0x235e24(0x1c4)](SCRIPFID_MAP[_0x235e24(0x1a3)]),ScripTopicData['VOLUME_INDEX']=_0x2a98a0['scrip'][_0x235e24(0x1c4)](SCRIPFID_MAP[_0x235e24(0x160)]),ScripTopicData[_0x235e24(0x180)]=_0x2a98a0['scrip']['indexOf'](SCRIPFID_MAP[_0x235e24(0x119)]),ScripTopicData['CHANGE_INDEX']=_0x2a98a0[_0x235e24(0x107)]['indexOf'](SCRIPFID_MAP[_0x235e24(0xe8)]),ScripTopicData[_0x235e24(0x221)]=_0x2a98a0[_0x235e24(0x107)][_0x235e24(0x1c4)](SCRIPFID_MAP['PCHANGE']),ScripTopicData['CLOSE_INDEX']=_0x2a98a0[_0x235e24(0x107)][_0x235e24(0x1c4)](SCRIPFID_MAP[_0x235e24(0x1d0)]),ScripTopicData['TURNOVER_INDEX']=_0x2a98a0[_0x235e24(0x107)][_0x235e24(0x1c4)](SCRIPFID_MAP[_0x235e24(0x219)]),IndexTopicData[_0x235e24(0x1e5)]=_0x2a98a0[_0x235e24(0x1f6)][_0x235e24(0x1c4)](INDEXFID_MAP[_0x235e24(0x1a3)]),IndexTopicData[_0x235e24(0x111)]=_0x2a98a0['index'][_0x235e24(0x1c4)](INDEXFID_MAP[_0x235e24(0x1d0)]),IndexTopicData[_0x235e24(0x1dc)]=_0x2a98a0[_0x235e24(0x1f6)]['indexOf'](INDEXFID_MAP[_0x235e24(0xe8)]),IndexTopicData[_0x235e24(0x221)]=_0x2a98a0['index'][_0x235e24(0x1c4)](INDEXFID_MAP[_0x235e24(0x1f7)]);let _0x21d9de=_0x2a98a0[_0x235e24(0x107)];for(let _0x49791e=0x0;_0x49791e<_0x21d9de[_0x235e24(0x1eb)];_0x49791e++){let _0x3ebde0=_0xdacd[_0x235e24(0x21a)](_0x21d9de[_0x49791e]),_0x3a1519=this[_0x235e24(0x19e)](_0x3ebde0[_0x235e24(0x1a8)]);ScripTopicData[_0x235e24(0x166)][_0x49791e]=new FieldData(_0x3ebde0[_0x235e24(0x163)],_0x3ebde0[_0x235e24(0x164)],_0x3a1519,_0x3ebde0[_0x235e24(0x176)]);}let _0x829d88=_0x2a98a0[_0x235e24(0x1f6)];for(let _0x1efe7f=0x0;_0x1efe7f<_0x829d88['length'];_0x1efe7f++){let _0x3157b7=_0xdacd[_0x235e24(0x21a)](_0x829d88[_0x1efe7f]),_0x48f416=this[_0x235e24(0x19e)](_0x3157b7[_0x235e24(0x1a8)]);IndexTopicData[_0x235e24(0x166)][_0x1efe7f]=new FieldData(_0x3157b7['fid'],_0x3157b7[_0x235e24(0x164)],_0x48f416,_0x3157b7[_0x235e24(0x176)]);}let _0x316c44=_0x2a98a0['depth'];for(let _0x631e65=0x0;_0x631e65<_0x316c44[_0x235e24(0x1eb)];_0x631e65++){let _0x3be555=_0xdacd['get'](_0x316c44[_0x631e65]),_0x425398=this[_0x235e24(0x19e)](_0x3be555[_0x235e24(0x1a8)]);DepthTopicData[_0x235e24(0x166)][_0x631e65]=new FieldData(_0x3be555['fid'],_0x3be555[_0x235e24(0x164)],_0x425398,_0x3be555['details']);}}else console[_0x235e24(0x1d9)](_0x235e24(0x1b3));}[a0_0x56c57c(0x19e)](_0x47b2ba){const _0x5ecd59=a0_0x56c57c;let _0x36649d=FieldTypes[_0x5ecd59(0x1ab)];switch(_0x47b2ba){case _0x5ecd59(0x141):_0x36649d=FieldTypes[_0x5ecd59(0x106)];break;case _0x5ecd59(0x1b5):_0x36649d=FieldTypes[_0x5ecd59(0x1e9)];break;case _0x5ecd59(0x207):_0x36649d=FieldTypes[_0x5ecd59(0x18a)];break;}return _0x36649d;}[a0_0x56c57c(0x130)](_0x5abc1d){let _0x174e71=[];return _0x174e71['push'](_0x5abc1d),_0x174e71;}['startPingInterval'](){const _0x5c0eca=a0_0x56c57c;this[_0x5c0eca(0x1fa)]=setInterval(this[_0x5c0eca(0x208)],this[_0x5c0eca(0x117)],this);}['pingFunction'](_0x56a639){const _0x27bb1b=a0_0x56c57c;if(this['inWS']?.[_0x27bb1b(0x13d)]==WebSocket[_0x27bb1b(0xe9)]&&_0x56a639['inWS'])_0x56a639[_0x27bb1b(0x128)][_0x27bb1b(0x17d)](BinRequest['pingRequest']);else{if(_0x56a639['intervalId'])clearInterval(_0x56a639[_0x27bb1b(0x1fa)]);}}}class HSIWebSocket{constructor(){const _0x483542=a0_0x56c57c;this['isCalled']=!![],this[_0x483542(0x15b)]=0x1e;}static[a0_0x56c57c(0x185)](){const _0x5016d9=a0_0x56c57c;return this[_0x5016d9(0x223)]||(this[_0x5016d9(0x223)]=new HSIWebSocket());}['close'](){const _0x8ea8f9=a0_0x56c57c;this['stopHearBeat'](),this[_0x8ea8f9(0x17b)][_0x8ea8f9(0x1c9)]();}[a0_0x56c57c(0x18d)](_0x5365af,_0x13fea3){const _0x55d94d=a0_0x56c57c;this[_0x55d94d(0x174)]=_0x5365af,this[_0x55d94d(0x1ac)]=(_0x13fea3?_0x13fea3:this[_0x55d94d(0x15b)])*0x3e8;this[_0x55d94d(0x17b)]&&(this['hsiWs'][_0x55d94d(0x209)]=function(_0x382d6e){},this['hsiWs']['onmessage']=function(_0x5b8631){},this['hsiWs'][_0x55d94d(0x1e6)]=function(_0xa73830){},this[_0x55d94d(0x17b)][_0x55d94d(0x205)]=function(_0x3613e9){},this[_0x55d94d(0x17b)][_0x55d94d(0x1c9)]());this[_0x55d94d(0x17b)]=new WebSocket(_0x5365af);if(this[_0x55d94d(0x17b)])this[_0x55d94d(0x17b)][_0x55d94d(0x17a)]=_0x55d94d(0x18e);else console['error'](_0x55d94d(0x170));this['hsiWs'][_0x55d94d(0x209)]=function(){const _0x3d76e2=_0x55d94d;Log[_0x3d76e2(0x21d)](_0x3d76e2(0x1e2)),HSIWebSocket[_0x3d76e2(0x223)][_0x3d76e2(0x118)]();},this['hsiWs'][_0x55d94d(0x1b1)]=function(_0x21ca56){const _0x337103=_0x55d94d;Log['hsiDebug'](_0x21ca56);let _0x198824=_0x21ca56[_0x337103(0x1b8)],_0x433da5=JSON[_0x337103(0x1c7)](_0x198824);if(_0x433da5&&_0x433da5['task']=='cn'&&_0x433da5['ak']=='ok'){let _0x3480ee={'type':'hb'};HSIWebSocket[_0x337103(0x223)][_0x337103(0x108)]=setInterval(function(){const _0xbbd4ff=_0x337103;HSIWebSocket[_0xbbd4ff(0x223)]['isCalled']=!![],HSIWebSocket['_instance'][_0xbbd4ff(0x17b)][_0xbbd4ff(0x17d)](JSON[_0xbbd4ff(0x17c)](_0x3480ee));},_0x13fea3);}Log[_0x337103(0x21d)](_0x198824);if(_0x198824)HSIWebSocket[_0x337103(0x223)]['onMessage'](_0x198824);},this['hsiWs'][_0x55d94d(0x1e6)]=function(){const _0x9fa969=_0x55d94d;HSIWebSocket[_0x9fa969(0x223)][_0x9fa969(0x1a4)](),HSIWebSocket[_0x9fa969(0x223)]['onClose']();},this[_0x55d94d(0x17b)][_0x55d94d(0x205)]=function(){const _0x1c8e3d=_0x55d94d;HSIWebSocket[_0x1c8e3d(0x223)][_0x1c8e3d(0x1a4)](),HSIWebSocket[_0x1c8e3d(0x223)][_0x1c8e3d(0x172)]();};}[a0_0x56c57c(0x17d)](_0x169b4d){const _0x1b5765=a0_0x56c57c;let _0x3f86d2=JSON[_0x1b5765(0x1c7)](_0x169b4d);Log['hsiDebug'](_0x3f86d2);let _0x539f=_0x3f86d2['type'],_0x3f90b0;if(_0x539f===ReqTypeValues[_0x1b5765(0x1bc)]){if(_0x3f86d2[Keys[_0x1b5765(0x1c8)]]!==undefined&&_0x3f86d2[Keys[_0x1b5765(0x11c)]]!==undefined&&_0x3f86d2[Keys[_0x1b5765(0x20f)]]!==undefined)_0x3f90b0={'type':'cn','Authorization':_0x3f86d2[Keys[_0x1b5765(0x1c8)]],'Sid':_0x3f86d2[Keys['SID']],'src':_0x3f86d2[Keys[_0x1b5765(0x20f)]]},this[_0x1b5765(0x15e)]=_0x3f90b0;else{if(_0x3f86d2[Keys['X_ACCESS_TOKEN']]!==undefined&&_0x3f86d2[Keys[_0x1b5765(0x20f)]]!==undefined)_0x3f90b0={'type':'cn','x-access-token':_0x3f86d2[Keys['X_ACCESS_TOKEN']],'src':_0x3f86d2[Keys[_0x1b5765(0x20f)]]},this['reqData']=_0x3f90b0;else console[_0x1b5765(0x1d9)]('Invalid\x20connection\x20mode\x20!');}}else{if(_0x539f===ReqTypeValues[_0x1b5765(0x224)])this[_0x1b5765(0x15e)]=this[_0x1b5765(0x15e)]['type']=_0x1b5765(0x1f9),_0x3f90b0=this[_0x1b5765(0x15e)];else{if(_0x539f===ReqTypeValues[_0x1b5765(0x137)]){}else{if(_0x539f===ReqTypeValues['STR'])_0x3f90b0=_0x3f86d2[_0x1b5765(0x1b8)];else console[_0x1b5765(0x1d9)](_0x1b5765(0x16e));}}}if(this[_0x1b5765(0x17b)]&&_0x3f90b0)this[_0x1b5765(0x17b)][_0x1b5765(0x17d)](JSON[_0x1b5765(0x17c)](_0x3f90b0));else console[_0x1b5765(0x1d9)](_0x1b5765(0x10c));}['stopHearBeat'](){const _0x3da4d2=a0_0x56c57c;this[_0x3da4d2(0x1be)]&&(this[_0x3da4d2(0x1be)]=![],this['interval']&&clearInterval(this[_0x3da4d2(0x108)]));}}
|
|
4
|
-
|
|
1
|
+
const WebSocket = require('ws');
|
|
2
|
+
|
|
3
|
+
'use strict';const a0_0x56c57c=a0_0x44d5;(function(_0x1cd599,_0x48a876){const _0x1cf9c2=a0_0x44d5,_0x144410=_0x1cd599();while(!![]){try{const _0x287573=-parseInt(_0x1cf9c2(0x1af))/0x1+-parseInt(_0x1cf9c2(0xf2))/0x2*(parseInt(_0x1cf9c2(0xf1))/0x3)+-parseInt(_0x1cf9c2(0x1df))/0x4+-parseInt(_0x1cf9c2(0x104))/0x5*(-parseInt(_0x1cf9c2(0x16b))/0x6)+-parseInt(_0x1cf9c2(0x102))/0x7+parseInt(_0x1cf9c2(0x214))/0x8*(-parseInt(_0x1cf9c2(0x227))/0x9)+parseInt(_0x1cf9c2(0x1a1))/0xa;if(_0x287573===_0x48a876)break;else _0x144410['push'](_0x144410['shift']());}catch(_0x50efd7){_0x144410['push'](_0x144410['shift']());}}}(a0_0x106d,0xb3935));class Constants{constructor(){}}Constants[a0_0x56c57c(0x1ee)]=a0_0x56c57c(0x1cf),Constants[a0_0x56c57c(0x15b)]=0x1e,Constants['isSingleLib']=!![],Constants[a0_0x56c57c(0x18f)]=![],Constants[a0_0x56c57c(0x1ad)]=![],Constants[a0_0x56c57c(0xe7)]=0x5dc,Constants[a0_0x56c57c(0xff)]=-0x80000000,Constants[a0_0x56c57c(0x1a7)]=!![],Constants[a0_0x56c57c(0x1c3)]=0x1,Constants['INDEX_LITE_FCOUNT']=0x1;class Log{constructor(){}static[a0_0x56c57c(0x1b4)](_0x445363){const _0x1d6a51=a0_0x56c57c;if(Constants[_0x1d6a51(0x18f)])console[_0x1d6a51(0x14a)](_0x445363);}static[a0_0x56c57c(0x21d)](_0x795e96){const _0x2355b9=a0_0x56c57c;if(Constants[_0x2355b9(0x1ad)])console[_0x2355b9(0x14a)](_0x795e96);}}var RESPONSE_KEYS;(function(_0x426d7b){const _0x5d6afa=a0_0x56c57c;_0x426d7b[_0x5d6afa(0x1b2)]=_0x5d6afa(0x15f),_0x426d7b[_0x5d6afa(0x133)]=_0x5d6afa(0x1dd),_0x426d7b[_0x5d6afa(0xfb)]='msg',_0x426d7b[_0x5d6afa(0x1e1)]=_0x5d6afa(0x17e),_0x426d7b[_0x5d6afa(0x150)]=_0x5d6afa(0x1bb);}(RESPONSE_KEYS||(RESPONSE_KEYS={})));var RESPONSE_VALUES;(function(_0x222b56){const _0x43d5a5=a0_0x56c57c;_0x222b56[_0x43d5a5(0x1d6)]=_0x43d5a5(0x155),_0x222b56['FAILED']=_0x43d5a5(0x12b),_0x222b56[_0x43d5a5(0x225)]=_0x43d5a5(0x15c),_0x222b56[_0x43d5a5(0x12a)]='--';}(RESPONSE_VALUES||(RESPONSE_VALUES={})));var CHANNEL_DATA_MODE;(function(_0x15a332){const _0x106169=a0_0x56c57c;_0x15a332[_0x15a332['LITE']=0x4c]=_0x106169(0x1ec),_0x15a332[_0x15a332[_0x106169(0x1db)]=0x46]=_0x106169(0x1db);}(CHANNEL_DATA_MODE||(CHANNEL_DATA_MODE={})));var ResponseTypes;(function(_0x213309){const _0x23fa6c=a0_0x56c57c;_0x213309[_0x213309[_0x23fa6c(0xfa)]=0x53]=_0x23fa6c(0xfa),_0x213309[_0x213309[_0x23fa6c(0x14c)]=0x55]=_0x23fa6c(0x14c),_0x213309[_0x213309['LITE']=0x4c]=_0x23fa6c(0x1ec);}(ResponseTypes||(ResponseTypes={})));var BinRespStat;(function(_0x440651){_0x440651['OK']='K',_0x440651['NOT_OK']='N';}(BinRespStat||(BinRespStat={})));var STAT;(function(_0x26eb38){const _0x2a0435=a0_0x56c57c;_0x26eb38['OK']='Ok',_0x26eb38[_0x2a0435(0x175)]=_0x2a0435(0x18b);}(STAT||(STAT={})));var TopicTypes;(function(_0x2a55b2){_0x2a55b2['SCRIP']='sf',_0x2a55b2['INDEX']='if',_0x2a55b2['DEPTH']='dp';}(TopicTypes||(TopicTypes={})));var Keys;(function(_0x2a021c){const _0x4c5db5=a0_0x56c57c;_0x2a021c[_0x4c5db5(0x133)]='type',_0x2a021c['USER_ID']='user',_0x2a021c[_0x4c5db5(0x1b7)]=_0x4c5db5(0x1b6),_0x2a021c[_0x4c5db5(0x211)]=_0x4c5db5(0x1ed),_0x2a021c[_0x4c5db5(0x19d)]=_0x4c5db5(0x220),_0x2a021c[_0x4c5db5(0x147)]=_0x4c5db5(0x100),_0x2a021c[_0x4c5db5(0x192)]=_0x4c5db5(0x1ef),_0x2a021c[_0x4c5db5(0x11d)]='redis',_0x2a021c[_0x4c5db5(0x18c)]=_0x4c5db5(0xf0),_0x2a021c[_0x4c5db5(0x156)]=_0x4c5db5(0x1cc),_0x2a021c[_0x4c5db5(0x184)]=_0x4c5db5(0x201),_0x2a021c['OPC_KEY']='key',_0x2a021c[_0x4c5db5(0x1c8)]=_0x4c5db5(0x101),_0x2a021c['SID']='Sid',_0x2a021c[_0x4c5db5(0x19b)]='x-access-token',_0x2a021c[_0x4c5db5(0x20f)]=_0x4c5db5(0x1d5);}(Keys||(Keys={})));var ReqTypeValues;(function(_0x55faee){const _0xa50dbb=a0_0x56c57c;_0x55faee['CONNECTION']='cn',_0x55faee[_0xa50dbb(0xf4)]=_0xa50dbb(0x142),_0x55faee[_0xa50dbb(0x19c)]=_0xa50dbb(0xe3),_0x55faee[_0xa50dbb(0x1e7)]=_0xa50dbb(0x138),_0x55faee[_0xa50dbb(0x20c)]=_0xa50dbb(0x134),_0x55faee[_0xa50dbb(0x204)]=_0xa50dbb(0x210),_0x55faee['DEPTH_UNSUBS']=_0xa50dbb(0x1d4),_0x55faee['CHANNEL_RESUME']='cr',_0x55faee[_0xa50dbb(0x16c)]='cp',_0x55faee['SNAP_MW']=_0xa50dbb(0x10e),_0x55faee[_0xa50dbb(0x11f)]=_0xa50dbb(0x136),_0x55faee[_0xa50dbb(0x1bf)]=_0xa50dbb(0x1c1),_0x55faee[_0xa50dbb(0x216)]=_0xa50dbb(0x122),_0x55faee['LITE']=_0xa50dbb(0x169),_0x55faee[_0xa50dbb(0x1db)]=_0xa50dbb(0x182),_0x55faee[_0xa50dbb(0x13b)]='ti',_0x55faee[_0xa50dbb(0x1f0)]=_0xa50dbb(0xfd),_0x55faee[_0xa50dbb(0x224)]=_0xa50dbb(0x1f9),_0x55faee['LOG']='log';}(ReqTypeValues||(ReqTypeValues={})));var RespTypeValues;(function(_0xac7d25){const _0x25bfe3=a0_0x56c57c;_0xac7d25[_0x25bfe3(0x16f)]='cn',_0xac7d25[_0x25bfe3(0x154)]=_0x25bfe3(0x13e),_0xac7d25[_0x25bfe3(0xf8)]='unsub',_0xac7d25[_0x25bfe3(0xfa)]=_0x25bfe3(0x203),_0xac7d25[_0x25bfe3(0x110)]='cr',_0xac7d25[_0x25bfe3(0xe5)]='cp',_0xac7d25[_0x25bfe3(0x1e8)]=_0x25bfe3(0x122),_0xac7d25[_0x25bfe3(0x1ec)]='lit',_0xac7d25[_0x25bfe3(0x1db)]=_0x25bfe3(0x182);}(RespTypeValues||(RespTypeValues={})));var BinRespTypes;(function(_0x153b2c){const _0x36db24=a0_0x56c57c;_0x153b2c[_0x153b2c['CONNECTION_TYPE']=0x1]=_0x36db24(0x1c0),_0x153b2c[_0x153b2c[_0x36db24(0x222)]=0x2]='THROTTLING_TYPE',_0x153b2c[_0x153b2c[_0x36db24(0x1e4)]=0x3]='ACK_TYPE',_0x153b2c[_0x153b2c[_0x36db24(0xfc)]=0x4]='SUBSCRIBE_TYPE',_0x153b2c[_0x153b2c['UNSUBSCRIBE_TYPE']=0x5]=_0x36db24(0x135),_0x153b2c[_0x153b2c[_0x36db24(0xec)]=0x6]=_0x36db24(0xec),_0x153b2c[_0x153b2c[_0x36db24(0x129)]=0x7]=_0x36db24(0x129),_0x153b2c[_0x153b2c['CHRESUME_TYPE']=0x8]='CHRESUME_TYPE',_0x153b2c[_0x153b2c[_0x36db24(0x173)]=0x9]=_0x36db24(0x173),_0x153b2c[_0x153b2c[_0x36db24(0x195)]=0xa]=_0x36db24(0x195),_0x153b2c[_0x153b2c[_0x36db24(0x20a)]=0xc]='LITE_FULL';}(BinRespTypes||(BinRespTypes={})));var RespCodes;(function(_0x2333f6){const _0x807079=a0_0x56c57c;_0x2333f6[_0x2333f6[_0x807079(0x1d2)]=0xc8]=_0x807079(0x1d2),_0x2333f6[_0x2333f6['CONNECTION_FAILED']=0x2af9]=_0x807079(0x123),_0x2333f6[_0x2333f6[_0x807079(0xea)]=0x2afa]='CONNECTION_INVALID',_0x2333f6[_0x2333f6[_0x807079(0x1a2)]=0x2b03]=_0x807079(0x1a2),_0x2333f6[_0x2333f6[_0x807079(0x181)]=0x2b04]=_0x807079(0x181),_0x2333f6[_0x2333f6['SNAPSHOT_FAILED']=0x2b05]='SNAPSHOT_FAILED',_0x2333f6[_0x2333f6['CHANNELP_FAILED']=0x2b17]='CHANNELP_FAILED',_0x2333f6[_0x2333f6[_0x807079(0x116)]=0x2b18]=_0x807079(0x116);}(RespCodes||(RespCodes={})));var PREFIX;(function(_0x281b16){const _0x83a3f3=a0_0x56c57c;_0x281b16[_0x83a3f3(0x124)]='dp',_0x281b16[_0x83a3f3(0x171)]='sf',_0x281b16[_0x83a3f3(0x228)]='if';}(PREFIX||(PREFIX={})));function a0_0x44d5(_0x35008c,_0x4aa09f){const _0x106dcb=a0_0x106d();return a0_0x44d5=function(_0x44d5a3,_0x5a4abb){_0x44d5a3=_0x44d5a3-0xe3;let _0x1f4f3e=_0x106dcb[_0x44d5a3];return _0x1f4f3e;},a0_0x44d5(_0x35008c,_0x4aa09f);}var SCRIPFID_MAP;(function(_0x55d6b2){const _0x1d06b2=a0_0x56c57c;_0x55d6b2[_0x1d06b2(0xe8)]=_0x1d06b2(0x16a),_0x55d6b2[_0x1d06b2(0x1f7)]=_0x1d06b2(0x10d),_0x55d6b2['TURNOVER']=_0x1d06b2(0x178),_0x55d6b2[_0x1d06b2(0x160)]='s104',_0x55d6b2[_0x1d06b2(0x1a3)]=_0x1d06b2(0x1a6),_0x55d6b2[_0x1d06b2(0x1d0)]=_0x1d06b2(0x157),_0x55d6b2[_0x1d06b2(0x119)]=_0x1d06b2(0x1b0);}(SCRIPFID_MAP||(SCRIPFID_MAP={})));var FieldTypes;(function(_0x16838d){const _0x300e68=a0_0x56c57c;_0x16838d[_0x16838d[_0x300e68(0x106)]=0x0]=_0x300e68(0x106),_0x16838d[_0x16838d[_0x300e68(0x18a)]=0x1]=_0x300e68(0x18a),_0x16838d[_0x16838d['DATE']=0x2]=_0x300e68(0x1e9),_0x16838d[_0x16838d[_0x300e68(0x1ab)]=0x3]=_0x300e68(0x1ab);}(FieldTypes||(FieldTypes={})));var INDEXFID_MAP;(function(_0x3f1434){const _0x50dbe5=a0_0x56c57c;_0x3f1434['LTP']='i102',_0x3f1434[_0x50dbe5(0x1d0)]=_0x50dbe5(0x125),_0x3f1434[_0x50dbe5(0xe8)]=_0x50dbe5(0x151),_0x3f1434[_0x50dbe5(0x1f7)]=_0x50dbe5(0x13f);}(INDEXFID_MAP||(INDEXFID_MAP={})));var SCRIP_INDEX;(function(_0x188b29){const _0x337fe5=a0_0x56c57c;_0x188b29[_0x188b29[_0x337fe5(0x160)]=0x1]=_0x337fe5(0x160),_0x188b29[_0x188b29[_0x337fe5(0x1a3)]=0x0]=_0x337fe5(0x1a3),_0x188b29[_0x188b29[_0x337fe5(0x1d0)]=0x14]=_0x337fe5(0x1d0),_0x188b29[_0x188b29[_0x337fe5(0x119)]=0xb]='VWAP',_0x188b29[_0x188b29['CHANGE']=0x15]=_0x337fe5(0xe8),_0x188b29[_0x188b29['PERCHANGE']=0x16]=_0x337fe5(0x168),_0x188b29[_0x188b29[_0x337fe5(0x219)]=0x17]=_0x337fe5(0x219);}(SCRIP_INDEX||(SCRIP_INDEX={})));var INDEX_INDEX;(function(_0x2858e8){const _0x2aabc3=a0_0x56c57c;_0x2858e8[_0x2858e8[_0x2aabc3(0x1a3)]=0x0]='LTP',_0x2858e8[_0x2858e8[_0x2aabc3(0x1d0)]=0x1]=_0x2aabc3(0x1d0),_0x2858e8[_0x2858e8['CHANGE']=0x6]=_0x2aabc3(0xe8),_0x2858e8[_0x2858e8['PERCHANGE']=0x7]=_0x2aabc3(0x168);}(INDEX_INDEX||(INDEX_INDEX={})));class ByteBuilder{constructor(_0x4b9862){const _0x348a0b=a0_0x56c57c;this[_0x348a0b(0x1b8)]=new Uint8Array(_0x4b9862),this[_0x348a0b(0x146)]=0x2;}[a0_0x56c57c(0x179)](){const _0x379d0a=a0_0x56c57c;this[_0x379d0a(0x146)]=0x0;}[a0_0x56c57c(0x1d7)](){const _0x29fdfc=a0_0x56c57c;return this[_0x29fdfc(0x146)];}[a0_0x56c57c(0x183)](){const _0x134294=a0_0x56c57c;let _0x92f204=this[_0x134294(0x146)]-0x2;return this['data'][0x0]=_0x92f204>>0x8&0xff,this[_0x134294(0x1b8)][0x1]=_0x92f204&0xff,this[_0x134294(0x1b8)];}[a0_0x56c57c(0x1f5)](_0xf9e98c,_0x801718){const _0x5e3110=a0_0x56c57c;_0x801718==undefined?this[_0x5e3110(0x1b8)][this[_0x5e3110(0x146)]++]=_0xf9e98c:this[_0x5e3110(0x1b8)][_0x801718]=_0xf9e98c;}[a0_0x56c57c(0x188)](_0x5d128c,_0x29709f){const _0x4463a3=a0_0x56c57c;_0x29709f==undefined?this['data'][this['pos']++]=_0x5d128c:this[_0x4463a3(0x1b8)][_0x29709f]=_0x5d128c;}['appendShort'](_0x4bda95){const _0x2e3002=a0_0x56c57c;this['data'][this[_0x2e3002(0x146)]++]=_0x4bda95>>0x8&0xff,this[_0x2e3002(0x1b8)][this[_0x2e3002(0x146)]++]=_0x4bda95&0xff;}['appendInt'](_0x25cf5f){const _0x176940=a0_0x56c57c;this[_0x176940(0x1b8)][this[_0x176940(0x146)]++]=_0x25cf5f>>0x18&0xff,this[_0x176940(0x1b8)][this['pos']++]=_0x25cf5f>>0x10&0xff,this[_0x176940(0x1b8)][this[_0x176940(0x146)]++]=_0x25cf5f>>0x8&0xff,this[_0x176940(0x1b8)][this[_0x176940(0x146)]++]=_0x25cf5f&0xff;}['appendLong'](_0x1cb590){const _0x347695=a0_0x56c57c;this['data'][this[_0x347695(0x146)]++]=_0x1cb590>>0x38&0xff,this[_0x347695(0x1b8)][this[_0x347695(0x146)]++]=_0x1cb590>>0x30&0xff,this['data'][this[_0x347695(0x146)]++]=_0x1cb590>>0x28&0xff,this[_0x347695(0x1b8)][this[_0x347695(0x146)]++]=_0x1cb590>>0x20&0xff,this['data'][this['pos']++]=_0x1cb590>>0x18&0xff,this['data'][this[_0x347695(0x146)]++]=_0x1cb590>>0x10&0xff,this[_0x347695(0x1b8)][this[_0x347695(0x146)]++]=_0x1cb590>>0x8&0xff,this['data'][this['pos']++]=_0x1cb590&0xff;}[a0_0x56c57c(0x1ea)](_0x462ef1){const _0x5d23f0=a0_0x56c57c,_0x5978bc=BigInt(_0x462ef1);this[_0x5d23f0(0x1b8)][this['pos']++]=Number(_0x5978bc>>BigInt(0x38)&BigInt(0xff)),this[_0x5d23f0(0x1b8)][this[_0x5d23f0(0x146)]++]=Number(_0x5978bc>>BigInt(0x30)&BigInt(0xff)),this[_0x5d23f0(0x1b8)][this[_0x5d23f0(0x146)]++]=Number(_0x5978bc>>BigInt(0x28)&BigInt(0xff)),this['data'][this[_0x5d23f0(0x146)]++]=Number(_0x5978bc>>BigInt(0x20)&BigInt(0xff)),this[_0x5d23f0(0x1b8)][this[_0x5d23f0(0x146)]++]=Number(_0x5978bc>>BigInt(0x18)&BigInt(0xff)),this[_0x5d23f0(0x1b8)][this['pos']++]=Number(_0x5978bc>>BigInt(0x10)&BigInt(0xff)),this[_0x5d23f0(0x1b8)][this[_0x5d23f0(0x146)]++]=Number(_0x5978bc>>BigInt(0x8)&BigInt(0xff)),this[_0x5d23f0(0x1b8)][this[_0x5d23f0(0x146)]++]=Number(_0x5978bc&BigInt(0xff));}[a0_0x56c57c(0x21b)](_0x4653f8){const _0x3c8df8=a0_0x56c57c;for(let _0x4931bd=0x0;_0x4931bd<_0x4653f8[_0x3c8df8(0x1eb)];_0x4931bd++)this['data'][this[_0x3c8df8(0x146)]++]=_0x4653f8[_0x3c8df8(0x218)](_0x4931bd);}[a0_0x56c57c(0x21c)](_0x36aec0,_0x5366a5){const _0x5b412f=a0_0x56c57c;let _0x5a04f2=_0x5366a5==undefined?_0x36aec0['length']:_0x5366a5;for(let _0x52a65c=0x0;_0x52a65c<_0x5a04f2;_0x52a65c++)this[_0x5b412f(0x1b8)][this[_0x5b412f(0x146)]++]=_0x36aec0[_0x52a65c];}}class FieldData{constructor(_0x18b853,_0x4531f7,_0x1f71dd,_0xce1967){const _0x9faf0a=a0_0x56c57c;this['fId']=_0x18b853,this[_0x9faf0a(0x139)]=_0x4531f7,this[_0x9faf0a(0x1dd)]=_0x1f71dd,this['desc']=_0xce1967;}}function a0_0x106d(){const _0x56475a=['CLOSE','keys','SUCCESS','pow','dpu','source','SUCCESSFUL','getPosition','hsParser','error','setMultiplierAndPrec','FULL','CHANGE_INDEX','type','\x0aDepth::','959580FzxuGw','Maximum\x20scrips\x20allowed\x20per\x20request\x20is\x20','STAT_CODE','open','^(0{1}[1-9]|[12][0-9]|3[01])/(0{1}[1-9]|1[012])/20\x5cd{2}$','ACK_TYPE','LTP_INDEX','onclose','INDEX_SUBS','OPC','DATE','appendLongAsBigInt','length','LITE','scrips','LIB_VERSION','jwt','STR','packets.length:\x20','Connect...','getMinutes','index:','appendByte','index','PCHANGE','User\x20call','fcn','intervalId','liteFCount','getOpChainSubsRequest',',\x20val:','fcount1:\x20','toString','strJson','lowstk','Cleanup\x20previous\x20connection','snap','DEPTH_SUBS','onerror','WebSocket\x20not\x20initialized!','Number','pingFunction','onopen','LITE_FULL','pingRequest','INDEX_UNSUBS','isScripOK','exchange','SOURCE','dps','SCRIPS','setStringValues','reason','11202584HMSZis','USER_ID','OPC_SUBS','prec:\x20','charCodeAt','TURNOVER','get','appendString','appendByteArray','hsiDebug','setLongValues','appendInt','channelnum','PER_CHANGE_INDEX','THROTTLING_TYPE','_instance','FORCE_CONNECTION','INVD_FLD_COUNT','Invalid\x20topic\x20feed\x20type\x20!','9bqPKtU','INDEX','mwu','buf2Long','CHANNELP','onClose::CloseCode:','MAX_SCRIPS','CHANGE','OPEN','CONNECTION_INVALID','prepareChannelRequest','DATA_TYPE',',\x20WasClean:','Authorization\x20mode\x20is\x20enabled:\x20Authorization\x20or\x20Sid\x20not\x20found\x20!','Conn\x20fCount:','stkprc','3ONZxdx','2003872xLZkzX','set','SCRIP_SUBS','createMapingsMap','prepareJson','counter','UNSUBS','prepareSubsUnSubsRequest','SNAP','MSG','SUBSCRIBE_TYPE','str','hfid','TRASH_VAL','channelnums','Authorization','9666909hTbaBb','Topic\x20Not\x20Available\x20in\x20TopicList!','24615wCosJU','JS_API','FLOAT32','scrip','interval','prepareLiteChannelRequest','prepareConnectionRequest','FAILED','Unable\x20to\x20send\x20request\x20!,\x20Reason:\x20Connection\x20faulty\x20or\x20request\x20not\x20valid\x20!','f102','mwsp','topic\x20Id:\x20','CHANNELR','CLOSE_INDEX','subscription\x20failed','TURNOVER_INDEX','Invalid\x20conn\x20mode\x20!','Processing\x20dynamic\x20mapping....','CHANNELR_FAILED','heartBeatIntervalInMS','onOpen','VWAP','getHours','updates\x20......','SID','REDIS_KEY','push','SNAP_DP','prepareData','Open','opc','CONNECTION_FAILED','DEPTH','i103','onMessage','getMonth','inWS','CHPAUSE_TYPE','NOT_AVL','failed','substring','startPingInterval','Error:\x20Channel\x20values\x20must\x20be\x20in\x20this\x20range\x20\x20[\x20val\x20>\x200\x20&&\x20val\x20<\x2065\x20]','getAcknowledgementReq','sendJsonArrResp',',\x20Reason:','parseData','TYPE','ifu','UNSUBSCRIBE_TYPE','dpsp','LOG','ifs','key','onClose','THROTTLING_INTERVAL','appendShort','readyState','sub','f105','getKey','ConvNumber','mws','\x0aScrip::','getFormatDate2','VOLUME_INDEX','pos','CHANNEL_NUMS','DEPTH_UNSUBS','index_lite','log','INDEX_LITE_FCOUNT','UPDATE','multiplier','leadingZero','feedType','STREAM_DATA_CONFIG','f104','slice','concat','SUBS','successful','HIGH_STK','s121','onError::MSG:','forEach','isConnected','DEFAULT_HEARTBEAT_INTERVAL','invalid\x20field\x20count','buf2String','reqData','stat','VOLUME','getSeconds','precisionValue','fid','fld','fieldDataArray','mappingArray','CHANNELP_FAILED','PERCHANGE','lit','f101','1422IYHOsj','CHANNEL_PAUSE','tSymbol','Invalid\x20Request\x20!','CONN','HSI\x20WebSocket\x20not\x20initialized!','SCRIP','onError','SNAPSHOT','url','NOT_OK','details','precision','f103','clear','binaryType','hsiWs','stringify','send','stCode','prepareConnectionRequestOld','VWAP_INDEX','UNSUBSCRIPTION_FAILED','ful','getBytes','LOW_STK','getInstance','getStringFieldsJson','topicList','appendChar','\x0aIndex::','LONG','NotOk','STK_PRC','connect','blob','HSM_LOG_Flag','wasClean','setSeconds','JWT','ACK:\x20','test','OPC_SUBSCRIBE','updatedFieldsArray','getScripByteArray','topicName:\x20','mode','OPC_KEY','X_ACCESS_TOKEN','SCRIP_UNSUBS','CHANNEL_NUM','getTypeFromString','nameLen:','split','41870370zawcKr','SUBSCRIPTION_FAILED','LTP','stopHearBeat','prepareConnectionRequest2','s105','STREAM_DATA_ENABLED','dataType','code','Invalid\x20ResponseType:\x20','STRING','heartBeatInterval','HSI_LOG_Flag','fields','595106LHGUnP','s113','onmessage','STATUS','StreamDataJson\x20having\x20some\x20issue','hsmDebug','timestamp','sessionid','SESSION_ID','data','getStatus','toFixed','streamDataConfig','CONNECTION','ackNum','isCalled','SNAP_IF','CONNECTION_TYPE','ifsp','hsWS','SCRIP_LITE_FCOUNT','indexOf','getDate','getFormatDate','parse','AUTORIZATION','close','TYPE::\x20','symbol','highstk','arraybuffer','prepareSnapshotRequest','v1.5-ft-5.3.0'];a0_0x106d=function(){return _0x56475a;};return a0_0x106d();}class TopicData{constructor(_0xd25a16){const _0x4cd38b=a0_0x56c57c;this[_0x4cd38b(0x14d)]=0x1,this[_0x4cd38b(0x177)]=0x2,this[_0x4cd38b(0x162)]=0x64,this[_0x4cd38b(0x165)]=new Array(),this['updatedFieldsArray']=new Array(),this['liteFCount']=-0x1,this[_0x4cd38b(0x14f)]=_0xd25a16;}[a0_0x56c57c(0x140)](){const _0x39bab4=a0_0x56c57c;return this[_0x39bab4(0x20e)][_0x39bab4(0x153)]('|',this[_0x39bab4(0x1cb)]);}[a0_0x56c57c(0x21e)](_0x316138,_0x23f1b3){const _0x5c1cc1=a0_0x56c57c;this[_0x5c1cc1(0x165)][_0x316138]!=_0x23f1b3&&_0x23f1b3!=Constants[_0x5c1cc1(0xff)]&&(this[_0x5c1cc1(0x165)][_0x316138]=_0x23f1b3,this[_0x5c1cc1(0x196)][_0x316138]=!![]);}[a0_0x56c57c(0x1da)](_0x2d6bf5,_0xbbecbe){const _0x452b63=a0_0x56c57c;this['precision']=_0xbbecbe,this['precisionValue']=Math[_0x452b63(0x1d3)](0xa,_0xbbecbe),this[_0x452b63(0x14d)]=_0x2d6bf5;}['clearFieldDataArray'](){const _0x31909e=a0_0x56c57c;this[_0x31909e(0x165)]['length']=this[_0x31909e(0x196)]['length']=0x0;}[a0_0x56c57c(0x212)](_0x42cc69,_0x3628b8){const _0x298275=a0_0x56c57c;switch(_0x42cc69){case 0x0:this[_0x298275(0x20e)]=_0x3628b8;break;case 0x1:this[_0x298275(0x1cb)]=_0x3628b8;break;case 0x2:this[_0x298275(0x16d)]=_0x3628b8;break;}}[a0_0x56c57c(0x186)](){const _0x60817e=a0_0x56c57c;if(!this['strJson'])return this['strJson']={'name':this[_0x60817e(0x14f)],'tk':this['symbol'],'e':this['exchange']},Object['assign']({'ts':this[_0x60817e(0x16d)]},this[_0x60817e(0x200)]);return this[_0x60817e(0x200)];}[a0_0x56c57c(0xf6)](_0x4fc9af){const _0x289f84=a0_0x56c57c,_0x118186={};for(let _0x16ca77=0x0;_0x16ca77<_0x4fc9af[_0x289f84(0x1eb)];_0x16ca77++){let _0x5d6a4e=_0x4fc9af[_0x16ca77],_0x360d7d=this[_0x289f84(0x165)][_0x16ca77];if(this[_0x289f84(0x196)][_0x16ca77]&&_0x360d7d!=undefined&&_0x5d6a4e){if(_0x5d6a4e[_0x289f84(0x1dd)]==FieldTypes[_0x289f84(0x106)])_0x360d7d=(_0x360d7d/(this[_0x289f84(0x14d)]*this[_0x289f84(0x162)]))['toFixed'](this[_0x289f84(0x177)]);else _0x5d6a4e[_0x289f84(0x1dd)]==FieldTypes['DATE']&&(_0x360d7d=Util[_0x289f84(0x1c6)](_0x360d7d));Log[_0x289f84(0x1b4)](_0x16ca77+':'+_0x5d6a4e[_0x289f84(0x139)]+':'+_0x360d7d[_0x289f84(0x1ff)]()),_0x118186[_0x5d6a4e[_0x289f84(0x139)]]=_0x360d7d[_0x289f84(0x1ff)]();}}return this[_0x289f84(0x196)]=[],Object[_0x289f84(0x1d1)](_0x118186)[_0x289f84(0x1eb)]>0x0?Object['assign'](_0x118186,this['getStringFieldsJson']()):![];}}class ScripTopicData extends TopicData{constructor(){const _0x5e7f74=a0_0x56c57c;super(TopicTypes[_0x5e7f74(0x171)]);}[a0_0x56c57c(0x120)](){const _0x137bc8=a0_0x56c57c;if(this['updatedFieldsArray'][ScripTopicData[_0x137bc8(0x1e5)]]||this[_0x137bc8(0x196)][ScripTopicData[_0x137bc8(0x111)]]){let _0x305524=this[_0x137bc8(0x165)][ScripTopicData['LTP_INDEX']],_0x517374=this[_0x137bc8(0x165)][ScripTopicData[_0x137bc8(0x111)]];if(_0x305524!=undefined&&_0x517374!=undefined){let _0x34f45d=_0x305524-_0x517374;this['fieldDataArray'][ScripTopicData['CHANGE_INDEX']]=_0x34f45d,this[_0x137bc8(0x196)][ScripTopicData[_0x137bc8(0x1dc)]]=!![],this[_0x137bc8(0x165)][ScripTopicData[_0x137bc8(0x221)]]=+(_0x34f45d/_0x517374*0x64)[_0x137bc8(0x1ba)](this[_0x137bc8(0x177)]),this[_0x137bc8(0x196)][ScripTopicData['PER_CHANGE_INDEX']]=!![];}}if(this[_0x137bc8(0x196)][ScripTopicData['VOLUME_INDEX']]||this['updatedFieldsArray'][ScripTopicData[_0x137bc8(0x180)]]){let _0x43276f=this[_0x137bc8(0x165)][ScripTopicData[_0x137bc8(0x145)]],_0x98ab33=this[_0x137bc8(0x165)][ScripTopicData[_0x137bc8(0x180)]];_0x43276f!=undefined&&_0x98ab33!=undefined&&(this['fieldDataArray'][ScripTopicData[_0x137bc8(0x113)]]=_0x43276f*_0x98ab33,this['updatedFieldsArray'][ScripTopicData[_0x137bc8(0x113)]]=!![]);}return Log[_0x137bc8(0x1b4)](_0x137bc8(0x143)+this[_0x137bc8(0x14f)]+'|'+this[_0x137bc8(0x20e)]+'|'+this[_0x137bc8(0x1cb)]),super[_0x137bc8(0xf6)](ScripTopicData[_0x137bc8(0x166)]);}}class IndexTopicData extends TopicData{constructor(){super(TopicTypes['INDEX']);}[a0_0x56c57c(0x120)](){const _0x5c2b12=a0_0x56c57c;if(this[_0x5c2b12(0x196)][IndexTopicData[_0x5c2b12(0x1e5)]]||this[_0x5c2b12(0x196)][IndexTopicData[_0x5c2b12(0x111)]]){let _0x4477ff=this[_0x5c2b12(0x165)][IndexTopicData[_0x5c2b12(0x1e5)]],_0x4986cd=this[_0x5c2b12(0x165)][IndexTopicData[_0x5c2b12(0x111)]];if(_0x4477ff!=undefined&&_0x4986cd!=undefined){let _0x428a8d=_0x4477ff-_0x4986cd;this[_0x5c2b12(0x165)][IndexTopicData['CHANGE_INDEX']]=_0x428a8d,this[_0x5c2b12(0x196)][IndexTopicData['CHANGE_INDEX']]=!![],this[_0x5c2b12(0x165)][IndexTopicData[_0x5c2b12(0x221)]]=+(_0x428a8d/_0x4986cd*0x64)[_0x5c2b12(0x1ba)](this[_0x5c2b12(0x177)]),this[_0x5c2b12(0x196)][IndexTopicData[_0x5c2b12(0x221)]]=!![];}}return Log[_0x5c2b12(0x1b4)](_0x5c2b12(0x189)+this['feedType']+'|'+this[_0x5c2b12(0x20e)]+'|'+this[_0x5c2b12(0x1cb)]),super[_0x5c2b12(0xf6)](IndexTopicData['mappingArray']);}}class DepthTopicData extends TopicData{constructor(){const _0x41b0c3=a0_0x56c57c;super(TopicTypes[_0x41b0c3(0x124)]);}[a0_0x56c57c(0x120)](){const _0x56c4e3=a0_0x56c57c;return Log[_0x56c4e3(0x1b4)](_0x56c4e3(0x1de)+this[_0x56c4e3(0x14f)]+'|'+this[_0x56c4e3(0x20e)]+'|'+this[_0x56c4e3(0x1cb)]),super[_0x56c4e3(0xf6)](DepthTopicData[_0x56c4e3(0x166)]);}}class Util{constructor(){}static[a0_0x56c57c(0xe4)](_0x49b0ac){const _0x373ec1=a0_0x56c57c;let _0x9ca13=new Uint8Array(_0x49b0ac),_0x3dc76c=0x0,_0x1794cb=_0x9ca13[_0x373ec1(0x1eb)];for(let _0x493651=0x0,_0xaeb45b=_0x1794cb-0x1;_0x493651<_0x1794cb;_0x493651++,_0xaeb45b--){_0x3dc76c+=_0x9ca13[_0xaeb45b]<<_0x493651*0x8;}return _0x3dc76c;}static['buf2Float'](_0x2a5a4e,_0x4be87c){let _0x4d554a=new DataView(_0x2a5a4e,_0x4be87c,0x4);return _0x4d554a['getFloat32'](0x0);}static[a0_0x56c57c(0x15d)](_0x4a9c32){return new TextDecoder('utf-8')['decode'](_0x4a9c32);}static[a0_0x56c57c(0x1c6)](_0x51138c){const _0x55159a=a0_0x56c57c;let _0x3166a1=new Date(_0x51138c*0x3e8),_0x3dc3d7=Util[_0x55159a(0x14e)](_0x3166a1[_0x55159a(0x1c5)]())+'/'+Util['leadingZero'](_0x3166a1[_0x55159a(0x127)]()+0x1)+'/'+_0x3166a1['getFullYear']()+'\x20'+Util[_0x55159a(0x14e)](_0x3166a1['getHours']())+':'+Util[_0x55159a(0x14e)](_0x3166a1[_0x55159a(0x1f3)]())+':'+Util[_0x55159a(0x14e)](_0x3166a1[_0x55159a(0x161)]());return _0x3dc3d7;}static[a0_0x56c57c(0x144)](_0xd58769){const _0x3a1509=a0_0x56c57c;let _0x3bfe1b=new Date(0x7b2,0x0,0x1);_0x3bfe1b[_0x3a1509(0x191)](_0xd58769);let _0x5a29ce=Util['leadingZero'](_0x3bfe1b[_0x3a1509(0x1c5)]())+'/'+Util[_0x3a1509(0x14e)](_0x3bfe1b[_0x3a1509(0x127)]()+0x1)+'/'+_0x3bfe1b['getFullYear']()+'\x20'+Util[_0x3a1509(0x14e)](_0x3bfe1b[_0x3a1509(0x11a)]())+':'+Util[_0x3a1509(0x14e)](_0x3bfe1b[_0x3a1509(0x1f3)]())+':'+Util[_0x3a1509(0x14e)](_0x3bfe1b['getSeconds']());return _0x5a29ce;}static[a0_0x56c57c(0x14e)](_0x53951e){const _0x45f124=a0_0x56c57c;return _0x53951e<0xa?'0'+_0x53951e['toString']():_0x53951e[_0x45f124(0x1ff)]();}static[a0_0x56c57c(0x20d)](_0x5dcb6b){const _0x6a9ce3=a0_0x56c57c;if(_0x5dcb6b[_0x6a9ce3(0x1a0)]('&')['length']>Constants['MAX_SCRIPS'])return console[_0x6a9ce3(0x1d9)](_0x6a9ce3(0x1e0)+Constants[_0x6a9ce3(0xe7)]),![];return!![];}static['checkDateFormat'](_0x7f57bc){const _0x426875=a0_0x56c57c;return new RegExp(_0x426875(0x1e3))[_0x426875(0x194)](_0x7f57bc);}}class BinRequest{constructor(){}static['getAcknowledgementReq'](_0x4ef1f6){const _0x55b6c1=a0_0x56c57c;let _0x8bf10d=new ByteBuilder(0xb);return _0x8bf10d[_0x55b6c1(0x1f5)](BinRespTypes[_0x55b6c1(0x1e4)]),_0x8bf10d[_0x55b6c1(0x1f5)](0x1),_0x8bf10d['appendByte'](0x1),_0x8bf10d[_0x55b6c1(0x13c)](0x4),_0x8bf10d['appendInt'](_0x4ef1f6),_0x8bf10d['getBytes']();}static[a0_0x56c57c(0x17f)](_0x44eff2){const _0x563c02=a0_0x56c57c;let _0xe01669=_0x44eff2['length'],_0x2cc40f=_0x563c02(0x105),_0x312b51=_0x2cc40f['length'],_0x4ba536=new ByteBuilder(_0xe01669+_0x312b51+0xa);return _0x4ba536[_0x563c02(0x1f5)](BinRespTypes['CONNECTION_TYPE']),_0x4ba536['appendByte'](0x2),_0x4ba536['appendByte'](0x1),_0x4ba536[_0x563c02(0x13c)](_0xe01669),_0x4ba536[_0x563c02(0x21b)](_0x44eff2),_0x4ba536[_0x563c02(0x1f5)](0x2),_0x4ba536[_0x563c02(0x13c)](_0x312b51),_0x4ba536[_0x563c02(0x21b)](_0x2cc40f),_0x4ba536[_0x563c02(0x183)]();}static['prepareConnectionRequest'](_0x151272,_0x1fc615){const _0x2d5ef9=a0_0x56c57c;let _0x574f68=_0x151272[_0x2d5ef9(0x1eb)],_0x2731f0=_0x2d5ef9(0x105),_0x27b69a=_0x2731f0[_0x2d5ef9(0x1eb)],_0xe66d3a=new ByteBuilder(_0x574f68+_0x27b69a+0x12);return _0xe66d3a[_0x2d5ef9(0x1f5)](BinRespTypes[_0x2d5ef9(0x1c0)]),_0xe66d3a[_0x2d5ef9(0x1f5)](0x4),_0xe66d3a['appendByte'](0x1),_0xe66d3a['appendShort'](_0x574f68),_0xe66d3a['appendString'](_0x151272),_0xe66d3a[_0x2d5ef9(0x1f5)](0x2),_0xe66d3a[_0x2d5ef9(0x13c)](0x1),_0xe66d3a[_0x2d5ef9(0x1f5)](_0x1fc615['charCodeAt'](0x0)),_0xe66d3a['appendByte'](0x3),_0xe66d3a[_0x2d5ef9(0x13c)](0x1),_0xe66d3a[_0x2d5ef9(0x1f5)](Constants[_0x2d5ef9(0x1a7)]?0x1:0x0),_0xe66d3a[_0x2d5ef9(0x1f5)](0x4),_0xe66d3a[_0x2d5ef9(0x13c)](_0x27b69a),_0xe66d3a[_0x2d5ef9(0x21b)](_0x2731f0),_0xe66d3a['getBytes']();}static[a0_0x56c57c(0x1a5)](_0x2f58e2,_0x1eec77){const _0x8242ad=a0_0x56c57c;let _0xc5c354=_0x8242ad(0x105),_0x22ebb4=_0xc5c354[_0x8242ad(0x1eb)],_0x2569bb=_0x2f58e2[_0x8242ad(0x1eb)],_0x257272=_0x1eec77[_0x8242ad(0x1eb)],_0x52ae35=new ByteBuilder(_0x22ebb4+_0x2569bb+_0x257272+0xd);return _0x52ae35[_0x8242ad(0x1f5)](BinRespTypes[_0x8242ad(0x1c0)]),_0x52ae35[_0x8242ad(0x1f5)](0x3),_0x52ae35['appendByte'](0x1),_0x52ae35[_0x8242ad(0x13c)](_0x2569bb),_0x52ae35[_0x8242ad(0x21b)](_0x2f58e2),_0x52ae35[_0x8242ad(0x1f5)](0x2),_0x52ae35['appendShort'](_0x257272),_0x52ae35[_0x8242ad(0x21b)](_0x1eec77),_0x52ae35[_0x8242ad(0x1f5)](0x3),_0x52ae35[_0x8242ad(0x13c)](_0x22ebb4),_0x52ae35[_0x8242ad(0x21b)](_0xc5c354),_0x52ae35[_0x8242ad(0x183)]();}static[a0_0x56c57c(0xf9)](_0x24da20,_0x118fee,_0x7d1260,_0x45d853){const _0x3e18ad=a0_0x56c57c;if(!Util[_0x3e18ad(0x20d)](_0x24da20))return null;let _0x5dcf2c=BinRequest['getScripByteArray'](_0x24da20,_0x7d1260),_0x160a0b=new ByteBuilder(_0x5dcf2c[_0x3e18ad(0x1eb)]+0xb);return _0x160a0b['appendByte'](_0x118fee),_0x160a0b['appendByte'](0x2),_0x160a0b[_0x3e18ad(0x1f5)](0x1),_0x160a0b[_0x3e18ad(0x13c)](_0x5dcf2c[_0x3e18ad(0x1eb)]),_0x160a0b['appendByteArray'](_0x5dcf2c,_0x5dcf2c[_0x3e18ad(0x1eb)]),_0x160a0b[_0x3e18ad(0x1f5)](0x2),_0x160a0b[_0x3e18ad(0x13c)](0x1),_0x160a0b['appendByte'](_0x45d853),_0x160a0b[_0x3e18ad(0x183)]();}static[a0_0x56c57c(0x109)](_0x204231,_0xb81397,_0x77db0e){const _0x11b3b3=a0_0x56c57c;let _0x2803aa=new ByteBuilder(0x13);_0x2803aa[_0x11b3b3(0x1f5)](_0x204231),_0x2803aa['appendByte'](0x2),_0x2803aa[_0x11b3b3(0x1f5)](0x1),_0x2803aa[_0x11b3b3(0x13c)](0x8);let _0x157aaa=0x0,_0x35adb1=0x0;return _0x77db0e[_0x11b3b3(0x159)](function(_0xd305df){const _0x587d8f=_0x11b3b3;if(_0xd305df>0x0&&_0xd305df<=0x20)_0x157aaa|=0x1<<_0xd305df;else{if(_0xd305df>0x20&&_0xd305df<=0x40)_0x35adb1|=0x1<<_0xd305df;else console[_0x587d8f(0x1d9)]('Error:\x20Channel\x20values\x20must\x20be\x20in\x20this\x20range\x20\x20[\x20val\x20>\x200\x20&&\x20val\x20<\x2065\x20]');}}),_0x2803aa['appendInt'](_0x35adb1),_0x2803aa[_0x11b3b3(0x21f)](_0x157aaa),_0x2803aa[_0x11b3b3(0x1f5)](0x2),_0x2803aa['appendShort'](0x1),_0x2803aa['appendByte'](_0xb81397),_0x2803aa[_0x11b3b3(0x183)]();}static[a0_0x56c57c(0xeb)](_0x54f1af,_0x4d3c9a){const _0xe65e36=a0_0x56c57c;let _0xe9eb38=new ByteBuilder(0xf);_0xe9eb38[_0xe65e36(0x1f5)](_0x54f1af),_0xe9eb38[_0xe65e36(0x1f5)](0x1),_0xe9eb38[_0xe65e36(0x1f5)](0x1),_0xe9eb38['appendShort'](0x8);let _0x4c737f=0x0,_0x5da670=0x0;return _0x4d3c9a[_0xe65e36(0x159)](function(_0xb8b2d0){const _0x123bb3=_0xe65e36;if(_0xb8b2d0>0x0&&_0xb8b2d0<=0x20)_0x4c737f|=0x1<<_0xb8b2d0;else{if(_0xb8b2d0>0x20&&_0xb8b2d0<=0x40)_0x5da670|=0x1<<_0xb8b2d0;else console['error'](_0x123bb3(0x12e));}}),_0xe9eb38['appendInt'](_0x5da670),_0xe9eb38['appendInt'](_0x4c737f),_0xe9eb38[_0xe65e36(0x183)]();}static['prepareSnapshotRequest'](_0x51d9de,_0xcf31a7,_0x5579c1){const _0x5f4f2a=a0_0x56c57c;let _0x431583=BinRequest[_0x5f4f2a(0x197)](_0x51d9de,_0x5579c1),_0x30e3ca=_0x431583[_0x5f4f2a(0x1eb)],_0x4670d8=new ByteBuilder(_0x30e3ca+0x7);return _0x4670d8[_0x5f4f2a(0x1f5)](_0xcf31a7),_0x4670d8[_0x5f4f2a(0x1f5)](0x1),_0x4670d8['appendByte'](0x1),_0x4670d8[_0x5f4f2a(0x13c)](_0x30e3ca),_0x4670d8['appendByteArray'](_0x431583,_0x30e3ca),_0x4670d8[_0x5f4f2a(0x183)]();}static['prepareThrottlingIntervalRequest'](_0x1cc8c2){const _0x24fab9=a0_0x56c57c;let _0x3d71d7=new ByteBuilder(0xb);return _0x3d71d7[_0x24fab9(0x1f5)](BinRespTypes[_0x24fab9(0x222)]),_0x3d71d7[_0x24fab9(0x1f5)](0x1),_0x3d71d7[_0x24fab9(0x1f5)](0x1),_0x3d71d7[_0x24fab9(0x13c)](0x4),_0x3d71d7[_0x24fab9(0x21f)](_0x1cc8c2),_0x3d71d7[_0x24fab9(0x183)]();}static[a0_0x56c57c(0x197)](_0x494dfa,_0x535c03){const _0x27c9ed=a0_0x56c57c;if(_0x494dfa['charCodeAt'](_0x494dfa[_0x27c9ed(0x1eb)]-0x1)==0x26)_0x494dfa=_0x494dfa[_0x27c9ed(0x12c)](0x0,_0x494dfa['length']-0x1);let _0x76d0ad=_0x494dfa[_0x27c9ed(0x1a0)]('&'),_0x3b207d=_0x76d0ad[_0x27c9ed(0x1eb)],_0x563505=0x0;for(let _0xb60306=0x0;_0xb60306<_0x3b207d;_0xb60306++){_0x76d0ad[_0xb60306]=_0x535c03+'|'+_0x76d0ad[_0xb60306],_0x563505+=_0x76d0ad[_0xb60306][_0x27c9ed(0x1eb)]+0x1;}let _0x2fc5cd=new Uint8Array(_0x563505+0x2),_0x215abd=0x0;_0x2fc5cd[_0x215abd++]=_0x3b207d>>0x8&0xff,_0x2fc5cd[_0x215abd++]=_0x3b207d&0xff;for(let _0x12eed5=0x0;_0x12eed5<_0x3b207d;_0x12eed5++){let _0x13a8f9=_0x76d0ad[_0x12eed5],_0x990084=_0x13a8f9[_0x27c9ed(0x1eb)];_0x2fc5cd[_0x215abd++]=_0x990084&0xff;for(let _0x250fce=0x0;_0x250fce<_0x990084;_0x250fce++){_0x2fc5cd[_0x215abd++]=_0x13a8f9[_0x27c9ed(0x218)](_0x250fce);}}return _0x2fc5cd;}static[a0_0x56c57c(0x1fc)](_0x12e1cc,_0xe493d4,_0x5df1c5,_0x1c1634,_0x365047){const _0x446175=a0_0x56c57c;let _0x5590ca=_0x12e1cc[_0x446175(0x1eb)],_0x56a2c6=new ByteBuilder(_0x5590ca+0x1e);return _0x56a2c6[_0x446175(0x1f5)](BinRespTypes['OPC_SUBSCRIBE']),_0x56a2c6[_0x446175(0x1f5)](0x5),_0x56a2c6['appendByte'](0x1),_0x56a2c6['appendShort'](_0x5590ca),_0x56a2c6[_0x446175(0x21b)](_0x12e1cc),_0x56a2c6[_0x446175(0x1f5)](0x2),_0x56a2c6[_0x446175(0x13c)](0x8),_0x56a2c6[_0x446175(0x1ea)](_0xe493d4),_0x56a2c6['appendByte'](0x3),_0x56a2c6[_0x446175(0x13c)](0x1),_0x56a2c6['appendByte'](_0x5df1c5),_0x56a2c6[_0x446175(0x1f5)](0x4),_0x56a2c6['appendShort'](0x1),_0x56a2c6[_0x446175(0x1f5)](_0x1c1634),_0x56a2c6['appendByte'](0x5),_0x56a2c6[_0x446175(0x13c)](0x1),_0x56a2c6[_0x446175(0x1f5)](_0x365047),_0x56a2c6[_0x446175(0x183)]();}}BinRequest[a0_0x56c57c(0x20b)]=new Uint8Array([0x0,0x1,0xb]);class HSWebSocket{constructor(){const _0x46cc2e=a0_0x56c57c;this[_0x46cc2e(0x174)]=null,this['ws']=null,this['hsParser']=null,this[_0x46cc2e(0x118)]=null,this['onClose']=null,this[_0x46cc2e(0x126)]=null,this['onError']=null;}[a0_0x56c57c(0x1c9)](){const _0x157fcb=a0_0x56c57c;this['ws']&&(this['ws'][_0x157fcb(0x1c9)](0x3e8,_0x157fcb(0x1f8)),this['ws']=null);}[a0_0x56c57c(0x15a)](){const _0x33ea10=a0_0x56c57c;return this['ws']?this['ws'][_0x33ea10(0x13d)]==WebSocket['OPEN']:![];}['connect'](_0x403077,_0x522b4e){const _0x38cedb=a0_0x56c57c;Log[_0x38cedb(0x1b4)](_0x38cedb(0x1f2)),this[_0x38cedb(0x174)]=_0x403077;let _0x421b7b=(_0x522b4e?_0x522b4e:Constants[_0x38cedb(0x15b)])*0x3e8;this['ws']&&(this['ws'][_0x38cedb(0x209)]=_0x513a5b=>{},this['ws'][_0x38cedb(0x1b1)]=_0x3cf874=>{},this['ws'][_0x38cedb(0x1e6)]=_0x58ba1a=>{},this['ws'][_0x38cedb(0x205)]=_0x4e9923=>{},this['ws'][_0x38cedb(0x1c9)](0x3e8,_0x38cedb(0x202)));this['ws']=new WebSocket(_0x403077);if(this['ws'])this['ws'][_0x38cedb(0x17a)]=_0x38cedb(0x1cd),this[_0x38cedb(0x1d8)]=new HSParser(this['ws'],this,_0x421b7b);else{console[_0x38cedb(0x1d9)](_0x38cedb(0x206));return;}this['ws']['onopen']=_0x29902d=>{const _0x11a27b=_0x38cedb;Log[_0x11a27b(0x1b4)](_0x11a27b(0x121)),this[_0x11a27b(0x118)]();},this['ws']['onmessage']=_0x2aa829=>{const _0x21c9a5=_0x38cedb;let _0x1f85da=_0x2aa829['data'];if(_0x1f85da instanceof ArrayBuffer){let _0x46bb25=this[_0x21c9a5(0x1d8)][_0x21c9a5(0x132)](_0x1f85da);if(_0x46bb25)this[_0x21c9a5(0x126)](JSON[_0x21c9a5(0x17c)](_0x46bb25));}else this[_0x21c9a5(0x126)](_0x1f85da);},this['ws'][_0x38cedb(0x1e6)]=_0x164d16=>{const _0xea57c6=_0x38cedb;Log[_0xea57c6(0x1b4)](_0xea57c6(0xe6)+_0x164d16[_0xea57c6(0x1a9)]+_0xea57c6(0x131)+_0x164d16[_0xea57c6(0x213)]+_0xea57c6(0xed)+_0x164d16[_0xea57c6(0x190)]),this[_0xea57c6(0x13a)](_0x164d16);},this['ws'][_0x38cedb(0x205)]=_0x50b98d=>{const _0x4494fe=_0x38cedb;Log[_0x4494fe(0x1b4)](_0x4494fe(0x158)+_0x50b98d),this[_0x4494fe(0x172)](_0x50b98d);};}[a0_0x56c57c(0x17d)](_0x143c2a){const _0x3a2d5a=a0_0x56c57c;let _0xee8b4d=JSON[_0x3a2d5a(0x1c7)](_0x143c2a);Log[_0x3a2d5a(0x1b4)](_0xee8b4d);let _0x18e9be=_0xee8b4d[Keys[_0x3a2d5a(0x133)]],_0x261582=null,_0x10781b=_0xee8b4d[Keys[_0x3a2d5a(0x211)]],_0x573440=_0xee8b4d[Keys['CHANNEL_NUM']],_0x326d52=_0xee8b4d[Keys[_0x3a2d5a(0x147)]];switch(_0x18e9be){case ReqTypeValues[_0x3a2d5a(0x1bc)]:let _0xcd773c=_0xee8b4d[_0x3a2d5a(0x199)];if(_0xee8b4d[Keys[_0x3a2d5a(0x215)]]!==undefined&&_0xcd773c!==undefined){let _0x517dc1=_0xee8b4d[Keys['USER_ID']];_0x261582=BinRequest[_0x3a2d5a(0x10a)](_0x517dc1,_0xcd773c);}else{if(_0xee8b4d[Keys[_0x3a2d5a(0x1b7)]]!==undefined&&_0xcd773c!==undefined){let _0x1103a7=_0xee8b4d[Keys[_0x3a2d5a(0x1b7)]];_0x261582=BinRequest[_0x3a2d5a(0x10a)](_0x1103a7,_0xcd773c);}else{if(_0xee8b4d[Keys[_0x3a2d5a(0x1c8)]]!==undefined){let _0x12a925=_0xee8b4d[Keys[_0x3a2d5a(0x1c8)]],_0x4a1333=_0xee8b4d[Keys[_0x3a2d5a(0x11c)]];if(_0x12a925&&_0x4a1333)_0x261582=BinRequest[_0x3a2d5a(0x1a5)](_0x12a925,_0x4a1333);else console[_0x3a2d5a(0x1d9)](_0x3a2d5a(0xee));}else console[_0x3a2d5a(0x1d9)](_0x3a2d5a(0x114));}}break;case ReqTypeValues['SCRIP_SUBS']:_0x261582=BinRequest[_0x3a2d5a(0xf9)](_0x10781b,BinRespTypes[_0x3a2d5a(0xfc)],PREFIX[_0x3a2d5a(0x171)],_0x573440);break;case ReqTypeValues[_0x3a2d5a(0x19c)]:_0x261582=BinRequest[_0x3a2d5a(0xf9)](_0x10781b,BinRespTypes['UNSUBSCRIBE_TYPE'],PREFIX[_0x3a2d5a(0x171)],_0x573440);break;case ReqTypeValues[_0x3a2d5a(0x1e7)]:_0x261582=BinRequest[_0x3a2d5a(0xf9)](_0x10781b,BinRespTypes[_0x3a2d5a(0xfc)],PREFIX['INDEX'],_0x573440);break;case ReqTypeValues[_0x3a2d5a(0x20c)]:_0x261582=BinRequest[_0x3a2d5a(0xf9)](_0x10781b,BinRespTypes[_0x3a2d5a(0x135)],PREFIX[_0x3a2d5a(0x228)],_0x573440);break;case ReqTypeValues[_0x3a2d5a(0x204)]:_0x261582=BinRequest[_0x3a2d5a(0xf9)](_0x10781b,BinRespTypes[_0x3a2d5a(0xfc)],PREFIX[_0x3a2d5a(0x124)],_0x573440);break;case ReqTypeValues[_0x3a2d5a(0x148)]:_0x261582=BinRequest[_0x3a2d5a(0xf9)](_0x10781b,BinRespTypes[_0x3a2d5a(0x135)],PREFIX[_0x3a2d5a(0x124)],_0x573440);break;case ReqTypeValues[_0x3a2d5a(0x16c)]:_0x261582=BinRequest['prepareChannelRequest'](BinRespTypes['CHPAUSE_TYPE'],_0x326d52);break;case ReqTypeValues['CHANNEL_RESUME']:_0x261582=BinRequest[_0x3a2d5a(0xeb)](BinRespTypes['CHRESUME_TYPE'],_0x326d52);break;case ReqTypeValues['SNAP_MW']:_0x261582=BinRequest[_0x3a2d5a(0x1ce)](_0x10781b,BinRespTypes[_0x3a2d5a(0x173)],PREFIX[_0x3a2d5a(0x171)]);break;case ReqTypeValues[_0x3a2d5a(0x11f)]:_0x261582=BinRequest[_0x3a2d5a(0x1ce)](_0x10781b,BinRespTypes[_0x3a2d5a(0x173)],PREFIX[_0x3a2d5a(0x124)]);break;case ReqTypeValues[_0x3a2d5a(0x1bf)]:_0x261582=BinRequest[_0x3a2d5a(0x1ce)](_0x10781b,BinRespTypes[_0x3a2d5a(0x173)],PREFIX[_0x3a2d5a(0x228)]);break;case ReqTypeValues[_0x3a2d5a(0x216)]:_0x261582=BinRequest[_0x3a2d5a(0x1fc)](_0xee8b4d[Keys[_0x3a2d5a(0x19a)]],_0xee8b4d[Keys['STK_PRC']],_0xee8b4d[Keys[_0x3a2d5a(0x156)]],_0xee8b4d[Keys[_0x3a2d5a(0x184)]],_0x573440);break;case ReqTypeValues[_0x3a2d5a(0x137)]:break;case ReqTypeValues['LITE']:_0x261582=BinRequest[_0x3a2d5a(0x109)](BinRespTypes[_0x3a2d5a(0x20a)],CHANNEL_DATA_MODE['LITE'],_0x326d52);break;case ReqTypeValues[_0x3a2d5a(0x1db)]:_0x261582=BinRequest[_0x3a2d5a(0x109)](BinRespTypes['LITE_FULL'],CHANNEL_DATA_MODE[_0x3a2d5a(0x1db)],_0x326d52);break;case ReqTypeValues[_0x3a2d5a(0x1f0)]:_0x261582=_0x10781b;break;default:_0x261582=null;break;}if(this['ws']&&_0x261582)this['ws'][_0x3a2d5a(0x17d)](_0x261582);else console[_0x3a2d5a(0x1d9)](_0x3a2d5a(0x10c));}}class HSParser{constructor(_0x58e0f0,_0x39f8a1,_0x292cf4){const _0x1cfecc=a0_0x56c57c;this[_0x1cfecc(0x1c2)]=null,this[_0x1cfecc(0x128)]=null,this[_0x1cfecc(0x187)]=new Array(),this[_0x1cfecc(0xf7)]=0x0,this['ackNum']=0x0,this[_0x1cfecc(0x1fa)]=0x0,this['inWS']=_0x58e0f0,this[_0x1cfecc(0x1c2)]=_0x39f8a1,this[_0x1cfecc(0x117)]=_0x292cf4;}[a0_0x56c57c(0x132)](_0x535acb){const _0x35ce2f=a0_0x56c57c;let _0x329689=0x0,_0x514809=Util[_0x35ce2f(0xe4)](_0x535acb[_0x35ce2f(0x152)](_0x329689,0x2));Log[_0x35ce2f(0x1b4)](_0x35ce2f(0x1f1)+_0x514809),_0x329689+=0x2;let _0x15d55c=Util[_0x35ce2f(0xe4)](_0x535acb[_0x35ce2f(0x152)](_0x329689,_0x329689+0x1));_0x329689+=0x1,Log[_0x35ce2f(0x1b4)](_0x35ce2f(0x1ca)+_0x15d55c);if(_0x15d55c==BinRespTypes['CONNECTION_TYPE']){const _0x532d16={};let _0x3f1e20=Util[_0x35ce2f(0xe4)](_0x535acb[_0x35ce2f(0x152)](_0x329689,_0x329689+0x1));Log['hsmDebug'](_0x35ce2f(0xef)+_0x3f1e20),_0x329689+=0x1;let _0x525704=Util[_0x35ce2f(0xe4)](_0x535acb[_0x35ce2f(0x152)](_0x329689,_0x329689+0x1));_0x329689+=0x1;let _0x267e1a=Util['buf2Long'](_0x535acb[_0x35ce2f(0x152)](_0x329689,_0x329689+0x2));_0x329689+=0x2;let _0x42783b=Util[_0x35ce2f(0x15d)](_0x535acb['slice'](_0x329689,_0x329689+_0x267e1a));_0x329689+=_0x267e1a;let _0x2cd51c=0x0;if(_0x3f1e20>=0x2){_0x525704=Util['buf2Long'](_0x535acb[_0x35ce2f(0x152)](_0x329689,_0x329689+0x1)),_0x329689+=0x1,_0x267e1a=Util[_0x35ce2f(0xe4)](_0x535acb['slice'](_0x329689,_0x329689+0x2)),_0x329689+=0x2,_0x2cd51c=Util[_0x35ce2f(0xe4)](_0x535acb[_0x35ce2f(0x152)](_0x329689,_0x329689+_0x267e1a)),_0x329689+=_0x267e1a;if(_0x3f1e20>=0x3){_0x525704=Util['buf2Long'](_0x535acb[_0x35ce2f(0x152)](_0x329689,_0x329689+0x1)),_0x329689+=0x1,_0x267e1a=Util[_0x35ce2f(0xe4)](_0x535acb['slice'](_0x329689,_0x329689+0x2)),_0x329689+=0x2;let _0x51e300=JSON[_0x35ce2f(0x1c7)](Util[_0x35ce2f(0x15d)](_0x535acb[_0x35ce2f(0x152)](_0x329689,_0x329689+_0x267e1a)));_0x329689+=_0x267e1a,this[_0x35ce2f(0xf5)](_0x51e300);}Log['hsmDebug'](_0x35ce2f(0x193)+_0x2cd51c);switch(_0x42783b){case BinRespStat['OK']:_0x532d16[RESPONSE_KEYS[_0x35ce2f(0x1b2)]]=STAT['OK'],_0x532d16[RESPONSE_KEYS[_0x35ce2f(0x133)]]=RespTypeValues[_0x35ce2f(0x16f)],_0x532d16[RESPONSE_KEYS[_0x35ce2f(0xfb)]]=RESPONSE_VALUES[_0x35ce2f(0x1d6)],_0x532d16[RESPONSE_KEYS[_0x35ce2f(0x1e1)]]=RespCodes['SUCCESS'],this[_0x35ce2f(0x12d)]();break;case BinRespStat[_0x35ce2f(0x175)]:_0x532d16[RESPONSE_KEYS[_0x35ce2f(0x1b2)]]=STAT['NOT_OK'],_0x532d16[RESPONSE_KEYS[_0x35ce2f(0x133)]]=RespTypeValues[_0x35ce2f(0x16f)],_0x532d16[RESPONSE_KEYS[_0x35ce2f(0xfb)]]=RESPONSE_VALUES['FAILED'],_0x532d16[RESPONSE_KEYS['STAT_CODE']]=RespCodes[_0x35ce2f(0x123)];break;}this['ackNum']=_0x2cd51c;}else{if(_0x3f1e20==0x1)switch(_0x42783b){case BinRespStat['OK']:_0x532d16[RESPONSE_KEYS['STATUS']]=STAT['OK'],_0x532d16[RESPONSE_KEYS['TYPE']]=RespTypeValues[_0x35ce2f(0x16f)],_0x532d16[RESPONSE_KEYS[_0x35ce2f(0xfb)]]=RESPONSE_VALUES[_0x35ce2f(0x1d6)],_0x532d16[RESPONSE_KEYS[_0x35ce2f(0x1e1)]]=RespCodes[_0x35ce2f(0x1d2)],this[_0x35ce2f(0x12d)]();break;case BinRespStat[_0x35ce2f(0x175)]:_0x532d16[RESPONSE_KEYS[_0x35ce2f(0x1b2)]]=STAT[_0x35ce2f(0x175)],_0x532d16[RESPONSE_KEYS['TYPE']]=RespTypeValues[_0x35ce2f(0x16f)],_0x532d16[RESPONSE_KEYS['MSG']]=RESPONSE_VALUES[_0x35ce2f(0x10b)],_0x532d16[RESPONSE_KEYS[_0x35ce2f(0x1e1)]]=RespCodes['CONNECTION_FAILED'];break;}else _0x532d16[RESPONSE_KEYS[_0x35ce2f(0x1b2)]]=STAT[_0x35ce2f(0x175)],_0x532d16[RESPONSE_KEYS['TYPE']]=RespTypeValues[_0x35ce2f(0x16f)],_0x532d16[RESPONSE_KEYS[_0x35ce2f(0xfb)]]=RESPONSE_VALUES[_0x35ce2f(0x225)],_0x532d16[RESPONSE_KEYS['STAT_CODE']]=RespCodes[_0x35ce2f(0xea)];}return this[_0x35ce2f(0x130)](_0x532d16);}else{if(_0x15d55c==BinRespTypes['DATA_TYPE']){let _0xef230a=0x0;if(this[_0x35ce2f(0x1bd)]>0x0){++this['counter'],_0xef230a=Util['buf2Long'](_0x535acb['slice'](_0x329689,_0x329689+0x4)),_0x329689+=0x4;if(this['counter']==this[_0x35ce2f(0x1bd)]){let _0x59ced4=BinRequest[_0x35ce2f(0x12f)](_0xef230a);if(this[_0x35ce2f(0x128)])this['inWS'][_0x35ce2f(0x17d)](_0x59ced4);Log[_0x35ce2f(0x1b4)]('Acknowledgement\x20sent\x20for\x20message\x20num:\x20'+_0xef230a),this[_0x35ce2f(0xf7)]=0x0;}}const _0xd59f4e=[];let _0x59ae17=Util['buf2Long'](_0x535acb['slice'](_0x329689,_0x329689+0x2));_0x329689+=0x2;for(let _0x2c137a=0x0;_0x2c137a<_0x59ae17;_0x2c137a++){let _0xc0c0c3=Util[_0x35ce2f(0xe4)](_0x535acb[_0x35ce2f(0x152)](_0x329689,_0x329689+0x1));Log['hsmDebug']('ResponseType:\x20'+_0xc0c0c3),_0x329689++;if(_0xc0c0c3==ResponseTypes[_0x35ce2f(0xfa)]){let _0x26beae=Util[_0x35ce2f(0xe4)](_0x535acb[_0x35ce2f(0x152)](_0x329689,_0x329689+0x2));_0x329689+=0x2,Log['hsmDebug'](_0x35ce2f(0x10f)+_0x26beae);let _0x355a5b=Util[_0x35ce2f(0xe4)](_0x535acb[_0x35ce2f(0x152)](_0x329689,_0x329689+0x1));_0x329689++,Log['hsmDebug'](_0x35ce2f(0x19f)+_0x355a5b);let _0x53e9c7=Util[_0x35ce2f(0x15d)](_0x535acb[_0x35ce2f(0x152)](_0x329689,_0x329689+_0x355a5b));_0x329689+=_0x355a5b,Log['hsmDebug'](_0x35ce2f(0x198)+_0x53e9c7);let _0x297fb2=this['getNewTopicData'](_0x53e9c7);if(_0x297fb2){this['topicList'][_0x26beae]=_0x297fb2;let _0x2cb4c3=Util[_0x35ce2f(0xe4)](_0x535acb[_0x35ce2f(0x152)](_0x329689,_0x329689+0x1));_0x329689++,Log[_0x35ce2f(0x1b4)](_0x35ce2f(0x1fe)+_0x2cb4c3);for(let _0x2ebf59=0x0;_0x2ebf59<_0x2cb4c3;_0x2ebf59++){let _0x45929f=Util['buf2Long'](_0x535acb[_0x35ce2f(0x152)](_0x329689,_0x329689+0x4));_0x297fb2[_0x35ce2f(0x21e)](_0x2ebf59,_0x45929f),_0x329689+=0x4,Log[_0x35ce2f(0x1b4)](_0x2ebf59+':'+_0x45929f);}_0x329689+=0x2;let _0x22f9cb=Util[_0x35ce2f(0xe4)](_0x535acb[_0x35ce2f(0x152)](_0x329689,_0x329689+0x2));_0x329689+=0x2,Log[_0x35ce2f(0x1b4)]('multi:\x20'+_0x22f9cb);let _0x4dc5d0=Util[_0x35ce2f(0xe4)](_0x535acb[_0x35ce2f(0x152)](_0x329689,_0x329689+0x1));_0x329689++,Log[_0x35ce2f(0x1b4)](_0x35ce2f(0x217)+_0x4dc5d0),_0x297fb2['setMultiplierAndPrec'](_0x22f9cb,_0x4dc5d0);for(let _0x30e68a=0x0;_0x30e68a<0x3;_0x30e68a++){let _0x2721a8=Util[_0x35ce2f(0xe4)](_0x535acb['slice'](_0x329689,_0x329689+0x1));_0x329689++;let _0x571c12=Util[_0x35ce2f(0x15d)](_0x535acb[_0x35ce2f(0x152)](_0x329689,_0x329689+_0x2721a8));_0x329689+=_0x2721a8,_0x297fb2[_0x35ce2f(0x212)](_0x30e68a,_0x571c12),Log[_0x35ce2f(0x1b4)]('strVal:\x20'+_0x571c12);}let _0x5939d9=_0x297fb2[_0x35ce2f(0x120)]();if(_0x5939d9)_0xd59f4e[_0x35ce2f(0x11e)](_0x5939d9);}else Log[_0x35ce2f(0x1b4)](_0x35ce2f(0x226));}else{if(_0xc0c0c3==ResponseTypes[_0x35ce2f(0x14c)]||_0xc0c0c3==ResponseTypes[_0x35ce2f(0x1ec)]){Log[_0x35ce2f(0x1b4)](_0x35ce2f(0x11b)+_0xc0c0c3);let _0xc57fe2=Util[_0x35ce2f(0xe4)](_0x535acb[_0x35ce2f(0x152)](_0x329689,_0x329689+0x2));Log[_0x35ce2f(0x1b4)](_0x35ce2f(0x10f)+_0xc57fe2),_0x329689+=0x2;let _0x3ba997=this['topicList'][_0xc57fe2];if(!_0x3ba997)console[_0x35ce2f(0x1d9)](_0x35ce2f(0x103));else{let _0x1ee219;_0xc0c0c3!=ResponseTypes[_0x35ce2f(0x1ec)]?(_0x1ee219=Util[_0x35ce2f(0xe4)](_0x535acb['slice'](_0x329689,_0x329689+0x1)),_0x329689++):_0x1ee219=_0x3ba997[_0x35ce2f(0x1fb)];Log['hsmDebug'](_0x35ce2f(0x1fe)+_0x1ee219);for(let _0x21b68f=0x0;_0x21b68f<_0x1ee219;_0x21b68f++){let _0x246570=Util[_0x35ce2f(0xe4)](_0x535acb[_0x35ce2f(0x152)](_0x329689,_0x329689+0x4));_0x3ba997[_0x35ce2f(0x21e)](_0x21b68f,_0x246570),Log[_0x35ce2f(0x1b4)](_0x35ce2f(0x1f4)+_0x21b68f+_0x35ce2f(0x1fd)+_0x246570),_0x329689+=0x4;}}let _0x14c428=_0x3ba997[_0x35ce2f(0x120)]();if(_0x14c428)_0xd59f4e['push'](_0x14c428);}else console[_0x35ce2f(0x1d9)](_0x35ce2f(0x1aa)+_0xc0c0c3);}}return _0xd59f4e[_0x35ce2f(0x1eb)]>0x0?_0xd59f4e:null;}else{if(_0x15d55c==BinRespTypes[_0x35ce2f(0xfc)]||_0x15d55c==BinRespTypes[_0x35ce2f(0x135)]){let _0xf09f08=this[_0x35ce2f(0x1b9)](_0x535acb,_0x329689);const _0x57a97e={};switch(_0xf09f08){case BinRespStat['OK']:_0x57a97e[RESPONSE_KEYS[_0x35ce2f(0x1b2)]]=STAT['OK'],_0x57a97e[RESPONSE_KEYS[_0x35ce2f(0x133)]]=_0x15d55c==BinRespTypes[_0x35ce2f(0xfc)]?RespTypeValues[_0x35ce2f(0x154)]:RespTypeValues[_0x35ce2f(0xf8)],_0x57a97e[RESPONSE_KEYS[_0x35ce2f(0xfb)]]=RESPONSE_VALUES[_0x35ce2f(0x1d6)],_0x57a97e[RESPONSE_KEYS['STAT_CODE']]=RespCodes[_0x35ce2f(0x1d2)];break;case BinRespStat[_0x35ce2f(0x175)]:_0x57a97e[RESPONSE_KEYS[_0x35ce2f(0x1b2)]]=STAT[_0x35ce2f(0x175)];_0x15d55c==BinRespTypes[_0x35ce2f(0xfc)]?(_0x57a97e[RESPONSE_KEYS[_0x35ce2f(0x133)]]=RespTypeValues[_0x35ce2f(0x154)],_0x57a97e[RESPONSE_KEYS[_0x35ce2f(0xfb)]]=_0x35ce2f(0x112),_0x57a97e[RESPONSE_KEYS[_0x35ce2f(0x1e1)]]=RespCodes[_0x35ce2f(0x1a2)]):(_0x57a97e[RESPONSE_KEYS[_0x35ce2f(0x133)]]=RespTypeValues[_0x35ce2f(0xf8)],_0x57a97e[RESPONSE_KEYS['MSG']]='unsubscription\x20\x20failed',_0x57a97e[RESPONSE_KEYS['STAT_CODE']]=RespCodes[_0x35ce2f(0x181)]);break;}return this['sendJsonArrResp'](_0x57a97e);}else{if(_0x15d55c==BinRespTypes[_0x35ce2f(0x173)]){let _0x36ff4b=this[_0x35ce2f(0x1b9)](_0x535acb,_0x329689);const _0x4bcd31={};switch(_0x36ff4b){case BinRespStat['OK']:_0x4bcd31[RESPONSE_KEYS[_0x35ce2f(0x1b2)]]=STAT['OK'],_0x4bcd31[RESPONSE_KEYS['TYPE']]=RespTypeValues[_0x35ce2f(0xfa)],_0x4bcd31[RESPONSE_KEYS[_0x35ce2f(0xfb)]]=RESPONSE_VALUES[_0x35ce2f(0x1d6)],_0x4bcd31[RESPONSE_KEYS['STAT_CODE']]=RespCodes['SUCCESS'];break;case BinRespStat[_0x35ce2f(0x175)]:_0x4bcd31[RESPONSE_KEYS[_0x35ce2f(0x1b2)]]=STAT['NOT_OK'],_0x4bcd31[RESPONSE_KEYS[_0x35ce2f(0x133)]]=RespTypeValues[_0x35ce2f(0xfa)],_0x4bcd31[RESPONSE_KEYS[_0x35ce2f(0xfb)]]=RESPONSE_VALUES[_0x35ce2f(0x10b)],_0x4bcd31[RESPONSE_KEYS[_0x35ce2f(0x1e1)]]=RespCodes['SNAPSHOT_FAILED'];break;}return this['sendJsonArrResp'](_0x4bcd31);}else{if(_0x15d55c==BinRespTypes[_0x35ce2f(0x129)]||_0x15d55c==BinRespTypes['CHRESUME_TYPE']){let _0x53b9a2=this[_0x35ce2f(0x1b9)](_0x535acb,_0x329689);const _0x5da942={};switch(_0x53b9a2){case BinRespStat['OK']:_0x5da942[RESPONSE_KEYS[_0x35ce2f(0x1b2)]]=STAT['OK'],_0x5da942[RESPONSE_KEYS[_0x35ce2f(0x133)]]=_0x15d55c==BinRespTypes[_0x35ce2f(0x129)]?RespTypeValues[_0x35ce2f(0xe5)]:RespTypeValues[_0x35ce2f(0x110)],_0x5da942[RESPONSE_KEYS[_0x35ce2f(0xfb)]]=RESPONSE_VALUES['SUCCESSFUL'],_0x5da942[RESPONSE_KEYS['STAT_CODE']]=RespCodes['SUCCESS'];break;case BinRespStat['NOT_OK']:_0x5da942[RESPONSE_KEYS[_0x35ce2f(0x1b2)]]=STAT[_0x35ce2f(0x175)],_0x5da942[RESPONSE_KEYS['TYPE']]=_0x15d55c==BinRespTypes[_0x35ce2f(0x129)]?RespTypeValues[_0x35ce2f(0xe5)]:RespTypeValues[_0x35ce2f(0x110)],_0x5da942[RESPONSE_KEYS['MSG']]=RESPONSE_VALUES[_0x35ce2f(0x10b)],_0x5da942[RESPONSE_KEYS[_0x35ce2f(0x1e1)]]=_0x15d55c==BinRespTypes[_0x35ce2f(0x129)]?RespCodes[_0x35ce2f(0x167)]:RespCodes[_0x35ce2f(0x116)];break;}return this['sendJsonArrResp'](_0x5da942);}else{if(_0x15d55c==BinRespTypes['OPC_SUBSCRIBE']){let _0x35e65a=this[_0x35ce2f(0x1b9)](_0x535acb,_0x329689);_0x329689+=0x5;const _0x1a9034={};switch(_0x35e65a){case BinRespStat['OK']:_0x1a9034[RESPONSE_KEYS['STATUS']]=STAT['OK'],_0x1a9034[RESPONSE_KEYS[_0x35ce2f(0x133)]]=RespTypeValues['OPC'],_0x1a9034[RESPONSE_KEYS[_0x35ce2f(0xfb)]]=RESPONSE_VALUES[_0x35ce2f(0x1d6)],_0x1a9034[RESPONSE_KEYS[_0x35ce2f(0x1e1)]]=RespCodes[_0x35ce2f(0x1d2)];let _0x560df2=Util[_0x35ce2f(0xe4)](_0x535acb[_0x35ce2f(0x152)](_0x329689,++_0x329689)),_0x32f4d7=Util[_0x35ce2f(0xe4)](_0x535acb['slice'](_0x329689,_0x329689+0x2));_0x329689+=0x2;let _0x271b3b=Util[_0x35ce2f(0x15d)](_0x535acb['slice'](_0x329689,_0x329689+_0x32f4d7));_0x329689+=_0x32f4d7,_0x1a9034[_0x35ce2f(0x139)]=_0x271b3b,_0x560df2=Util[_0x35ce2f(0xe4)](_0x535acb[_0x35ce2f(0x152)](_0x329689,++_0x329689)),_0x32f4d7=Util[_0x35ce2f(0xe4)](_0x535acb[_0x35ce2f(0x152)](_0x329689,_0x329689+0x2)),_0x329689+=0x2;let _0x37d663=Util[_0x35ce2f(0x15d)](_0x535acb[_0x35ce2f(0x152)](_0x329689,_0x329689+_0x32f4d7));_0x329689+=_0x32f4d7,_0x1a9034[_0x35ce2f(0x1ed)]=JSON[_0x35ce2f(0x1c7)](_0x37d663)[_0x35ce2f(0x1b8)];break;case BinRespStat[_0x35ce2f(0x175)]:_0x1a9034[RESPONSE_KEYS['STATUS']]=STAT[_0x35ce2f(0x175)],_0x1a9034[RESPONSE_KEYS[_0x35ce2f(0x133)]]=RespTypeValues['OPC'],_0x1a9034[RESPONSE_KEYS[_0x35ce2f(0xfb)]]=RESPONSE_VALUES['FAILED'],_0x1a9034[RESPONSE_KEYS[_0x35ce2f(0x1e1)]]=0x2b20;break;}return this[_0x35ce2f(0x130)](_0x1a9034);}else{if(_0x15d55c==BinRespTypes[_0x35ce2f(0x20a)]){let _0x3fb25d=this[_0x35ce2f(0x1b9)](_0x535acb,_0x329689);const _0x1b1d4a={};switch(_0x3fb25d){case BinRespStat['OK']:_0x1b1d4a[RESPONSE_KEYS[_0x35ce2f(0x1b2)]]=STAT['OK'],_0x1b1d4a[RESPONSE_KEYS[_0x35ce2f(0x133)]]=_0x15d55c==BinRespTypes[_0x35ce2f(0x20a)]?RespTypeValues[_0x35ce2f(0x1ec)]:RespTypeValues[_0x35ce2f(0x1db)],_0x1b1d4a[RESPONSE_KEYS[_0x35ce2f(0xfb)]]=RESPONSE_VALUES[_0x35ce2f(0x1d6)],_0x1b1d4a[RESPONSE_KEYS['STAT_CODE']]=RespCodes[_0x35ce2f(0x1d2)];break;case BinRespStat['NOT_OK']:_0x1b1d4a[RESPONSE_KEYS[_0x35ce2f(0x1b2)]]=STAT[_0x35ce2f(0x175)],_0x1b1d4a[RESPONSE_KEYS[_0x35ce2f(0x133)]]=_0x15d55c==BinRespTypes['LITE_FULL']?RespTypeValues['LITE']:RespTypeValues['FULL'],_0x1b1d4a[RESPONSE_KEYS[_0x35ce2f(0xfb)]]=RESPONSE_VALUES[_0x35ce2f(0x10b)],_0x1b1d4a[RESPONSE_KEYS[_0x35ce2f(0x1e1)]]=0x2ee1;break;}return this['sendJsonArrResp'](_0x1b1d4a);}else return null;}}}}}}}[a0_0x56c57c(0x1b9)](_0x5d89ce,_0x5cd477){const _0x2d5792=a0_0x56c57c;let _0x571ae1=BinRespStat['NOT_OK'][_0x2d5792(0x1ff)](),_0x3d03d3=Util[_0x2d5792(0xe4)](_0x5d89ce[_0x2d5792(0x152)](_0x5cd477,++_0x5cd477));if(_0x3d03d3>0x0){let _0x1addcc=Util[_0x2d5792(0xe4)](_0x5d89ce[_0x2d5792(0x152)](_0x5cd477,++_0x5cd477)),_0x11c51e=Util[_0x2d5792(0xe4)](_0x5d89ce[_0x2d5792(0x152)](_0x5cd477,_0x5cd477+0x2));_0x5cd477+=0x2,_0x571ae1=Util[_0x2d5792(0x15d)](_0x5d89ce[_0x2d5792(0x152)](_0x5cd477,_0x5cd477+_0x11c51e)),_0x5cd477+=_0x11c51e;}return _0x571ae1;}['getNewTopicData'](_0x418bb5){const _0x2c140a=a0_0x56c57c;let _0x2e4436=_0x418bb5['split']('|')[0x0],_0x252d09=null;switch(_0x2e4436){case TopicTypes[_0x2c140a(0x171)]:_0x252d09=new ScripTopicData(),_0x252d09[_0x2c140a(0x1fb)]=Constants['SCRIP_LITE_FCOUNT'];break;case TopicTypes[_0x2c140a(0x228)]:_0x252d09=new IndexTopicData(),_0x252d09[_0x2c140a(0x1fb)]=Constants[_0x2c140a(0x14b)];break;case TopicTypes[_0x2c140a(0x124)]:_0x252d09=new DepthTopicData();break;}return _0x252d09;}[a0_0x56c57c(0xf5)](_0x2a98a0){const _0x235e24=a0_0x56c57c;if(_0x2a98a0){Log['hsmDebug'](_0x235e24(0x115)),ScripTopicData[_0x235e24(0x166)]=new Array(),IndexTopicData[_0x235e24(0x166)]=new Array(),DepthTopicData[_0x235e24(0x166)]=new Array();let _0xdacd=new Map();_0x2a98a0[_0x235e24(0x1ae)][_0x235e24(0x159)](function(_0x37c6ac){const _0x158a53=_0x235e24;_0xdacd[_0x158a53(0xf3)](_0x37c6ac['fid'],_0x37c6ac);}),Constants[_0x235e24(0x1c3)]=_0x2a98a0['scrip_lite']['hfid'],Constants[_0x235e24(0x14b)]=_0x2a98a0[_0x235e24(0x149)][_0x235e24(0xfe)],_0x2a98a0[_0x235e24(0x107)][_0x235e24(0x11e)](SCRIPFID_MAP[_0x235e24(0xe8)]),_0x2a98a0[_0x235e24(0x107)][_0x235e24(0x11e)](SCRIPFID_MAP[_0x235e24(0x1f7)]),_0x2a98a0['scrip']['push'](SCRIPFID_MAP[_0x235e24(0x219)]),_0x2a98a0[_0x235e24(0x1f6)][_0x235e24(0x11e)](INDEXFID_MAP[_0x235e24(0xe8)]),_0x2a98a0[_0x235e24(0x1f6)]['push'](INDEXFID_MAP[_0x235e24(0x1f7)]),ScripTopicData['LTP_INDEX']=_0x2a98a0['scrip'][_0x235e24(0x1c4)](SCRIPFID_MAP[_0x235e24(0x1a3)]),ScripTopicData['VOLUME_INDEX']=_0x2a98a0['scrip'][_0x235e24(0x1c4)](SCRIPFID_MAP[_0x235e24(0x160)]),ScripTopicData[_0x235e24(0x180)]=_0x2a98a0['scrip']['indexOf'](SCRIPFID_MAP[_0x235e24(0x119)]),ScripTopicData['CHANGE_INDEX']=_0x2a98a0[_0x235e24(0x107)]['indexOf'](SCRIPFID_MAP[_0x235e24(0xe8)]),ScripTopicData[_0x235e24(0x221)]=_0x2a98a0[_0x235e24(0x107)][_0x235e24(0x1c4)](SCRIPFID_MAP['PCHANGE']),ScripTopicData['CLOSE_INDEX']=_0x2a98a0[_0x235e24(0x107)][_0x235e24(0x1c4)](SCRIPFID_MAP[_0x235e24(0x1d0)]),ScripTopicData['TURNOVER_INDEX']=_0x2a98a0[_0x235e24(0x107)][_0x235e24(0x1c4)](SCRIPFID_MAP[_0x235e24(0x219)]),IndexTopicData[_0x235e24(0x1e5)]=_0x2a98a0[_0x235e24(0x1f6)][_0x235e24(0x1c4)](INDEXFID_MAP[_0x235e24(0x1a3)]),IndexTopicData[_0x235e24(0x111)]=_0x2a98a0['index'][_0x235e24(0x1c4)](INDEXFID_MAP[_0x235e24(0x1d0)]),IndexTopicData[_0x235e24(0x1dc)]=_0x2a98a0[_0x235e24(0x1f6)]['indexOf'](INDEXFID_MAP[_0x235e24(0xe8)]),IndexTopicData[_0x235e24(0x221)]=_0x2a98a0['index'][_0x235e24(0x1c4)](INDEXFID_MAP[_0x235e24(0x1f7)]);let _0x21d9de=_0x2a98a0[_0x235e24(0x107)];for(let _0x49791e=0x0;_0x49791e<_0x21d9de[_0x235e24(0x1eb)];_0x49791e++){let _0x3ebde0=_0xdacd[_0x235e24(0x21a)](_0x21d9de[_0x49791e]),_0x3a1519=this[_0x235e24(0x19e)](_0x3ebde0[_0x235e24(0x1a8)]);ScripTopicData[_0x235e24(0x166)][_0x49791e]=new FieldData(_0x3ebde0[_0x235e24(0x163)],_0x3ebde0[_0x235e24(0x164)],_0x3a1519,_0x3ebde0[_0x235e24(0x176)]);}let _0x829d88=_0x2a98a0[_0x235e24(0x1f6)];for(let _0x1efe7f=0x0;_0x1efe7f<_0x829d88['length'];_0x1efe7f++){let _0x3157b7=_0xdacd[_0x235e24(0x21a)](_0x829d88[_0x1efe7f]),_0x48f416=this[_0x235e24(0x19e)](_0x3157b7[_0x235e24(0x1a8)]);IndexTopicData[_0x235e24(0x166)][_0x1efe7f]=new FieldData(_0x3157b7['fid'],_0x3157b7[_0x235e24(0x164)],_0x48f416,_0x3157b7[_0x235e24(0x176)]);}let _0x316c44=_0x2a98a0['depth'];for(let _0x631e65=0x0;_0x631e65<_0x316c44[_0x235e24(0x1eb)];_0x631e65++){let _0x3be555=_0xdacd['get'](_0x316c44[_0x631e65]),_0x425398=this[_0x235e24(0x19e)](_0x3be555[_0x235e24(0x1a8)]);DepthTopicData[_0x235e24(0x166)][_0x631e65]=new FieldData(_0x3be555['fid'],_0x3be555[_0x235e24(0x164)],_0x425398,_0x3be555['details']);}}else console[_0x235e24(0x1d9)](_0x235e24(0x1b3));}[a0_0x56c57c(0x19e)](_0x47b2ba){const _0x5ecd59=a0_0x56c57c;let _0x36649d=FieldTypes[_0x5ecd59(0x1ab)];switch(_0x47b2ba){case _0x5ecd59(0x141):_0x36649d=FieldTypes[_0x5ecd59(0x106)];break;case _0x5ecd59(0x1b5):_0x36649d=FieldTypes[_0x5ecd59(0x1e9)];break;case _0x5ecd59(0x207):_0x36649d=FieldTypes[_0x5ecd59(0x18a)];break;}return _0x36649d;}[a0_0x56c57c(0x130)](_0x5abc1d){let _0x174e71=[];return _0x174e71['push'](_0x5abc1d),_0x174e71;}['startPingInterval'](){const _0x5c0eca=a0_0x56c57c;this[_0x5c0eca(0x1fa)]=setInterval(this[_0x5c0eca(0x208)],this[_0x5c0eca(0x117)],this);}['pingFunction'](_0x56a639){const _0x27bb1b=a0_0x56c57c;if(this['inWS']?.[_0x27bb1b(0x13d)]==WebSocket[_0x27bb1b(0xe9)]&&_0x56a639['inWS'])_0x56a639[_0x27bb1b(0x128)][_0x27bb1b(0x17d)](BinRequest['pingRequest']);else{if(_0x56a639['intervalId'])clearInterval(_0x56a639[_0x27bb1b(0x1fa)]);}}}class HSIWebSocket{constructor(){const _0x483542=a0_0x56c57c;this['isCalled']=!![],this[_0x483542(0x15b)]=0x1e;}static[a0_0x56c57c(0x185)](){const _0x5016d9=a0_0x56c57c;return this[_0x5016d9(0x223)]||(this[_0x5016d9(0x223)]=new HSIWebSocket());}['close'](){const _0x8ea8f9=a0_0x56c57c;this['stopHearBeat'](),this[_0x8ea8f9(0x17b)][_0x8ea8f9(0x1c9)]();}[a0_0x56c57c(0x18d)](_0x5365af,_0x13fea3){const _0x55d94d=a0_0x56c57c;this[_0x55d94d(0x174)]=_0x5365af,this[_0x55d94d(0x1ac)]=(_0x13fea3?_0x13fea3:this[_0x55d94d(0x15b)])*0x3e8;this[_0x55d94d(0x17b)]&&(this['hsiWs'][_0x55d94d(0x209)]=function(_0x382d6e){},this['hsiWs']['onmessage']=function(_0x5b8631){},this['hsiWs'][_0x55d94d(0x1e6)]=function(_0xa73830){},this[_0x55d94d(0x17b)][_0x55d94d(0x205)]=function(_0x3613e9){},this[_0x55d94d(0x17b)][_0x55d94d(0x1c9)]());this[_0x55d94d(0x17b)]=new WebSocket(_0x5365af);if(this[_0x55d94d(0x17b)])this[_0x55d94d(0x17b)][_0x55d94d(0x17a)]=_0x55d94d(0x18e);else console['error'](_0x55d94d(0x170));this['hsiWs'][_0x55d94d(0x209)]=function(){const _0x3d76e2=_0x55d94d;Log[_0x3d76e2(0x21d)](_0x3d76e2(0x1e2)),HSIWebSocket[_0x3d76e2(0x223)][_0x3d76e2(0x118)]();},this['hsiWs'][_0x55d94d(0x1b1)]=function(_0x21ca56){const _0x337103=_0x55d94d;Log['hsiDebug'](_0x21ca56);let _0x198824=_0x21ca56[_0x337103(0x1b8)],_0x433da5=JSON[_0x337103(0x1c7)](_0x198824);if(_0x433da5&&_0x433da5['task']=='cn'&&_0x433da5['ak']=='ok'){let _0x3480ee={'type':'hb'};HSIWebSocket[_0x337103(0x223)][_0x337103(0x108)]=setInterval(function(){const _0xbbd4ff=_0x337103;HSIWebSocket[_0xbbd4ff(0x223)]['isCalled']=!![],HSIWebSocket['_instance'][_0xbbd4ff(0x17b)][_0xbbd4ff(0x17d)](JSON[_0xbbd4ff(0x17c)](_0x3480ee));},_0x13fea3);}Log[_0x337103(0x21d)](_0x198824);if(_0x198824)HSIWebSocket[_0x337103(0x223)]['onMessage'](_0x198824);},this['hsiWs'][_0x55d94d(0x1e6)]=function(){const _0x9fa969=_0x55d94d;HSIWebSocket[_0x9fa969(0x223)][_0x9fa969(0x1a4)](),HSIWebSocket[_0x9fa969(0x223)]['onClose']();},this[_0x55d94d(0x17b)][_0x55d94d(0x205)]=function(){const _0x1c8e3d=_0x55d94d;HSIWebSocket[_0x1c8e3d(0x223)][_0x1c8e3d(0x1a4)](),HSIWebSocket[_0x1c8e3d(0x223)][_0x1c8e3d(0x172)]();};}[a0_0x56c57c(0x17d)](_0x169b4d){const _0x1b5765=a0_0x56c57c;let _0x3f86d2=JSON[_0x1b5765(0x1c7)](_0x169b4d);Log['hsiDebug'](_0x3f86d2);let _0x539f=_0x3f86d2['type'],_0x3f90b0;if(_0x539f===ReqTypeValues[_0x1b5765(0x1bc)]){if(_0x3f86d2[Keys[_0x1b5765(0x1c8)]]!==undefined&&_0x3f86d2[Keys[_0x1b5765(0x11c)]]!==undefined&&_0x3f86d2[Keys[_0x1b5765(0x20f)]]!==undefined)_0x3f90b0={'type':'cn','Authorization':_0x3f86d2[Keys[_0x1b5765(0x1c8)]],'Sid':_0x3f86d2[Keys['SID']],'src':_0x3f86d2[Keys[_0x1b5765(0x20f)]]},this[_0x1b5765(0x15e)]=_0x3f90b0;else{if(_0x3f86d2[Keys['X_ACCESS_TOKEN']]!==undefined&&_0x3f86d2[Keys[_0x1b5765(0x20f)]]!==undefined)_0x3f90b0={'type':'cn','x-access-token':_0x3f86d2[Keys['X_ACCESS_TOKEN']],'src':_0x3f86d2[Keys[_0x1b5765(0x20f)]]},this['reqData']=_0x3f90b0;else console[_0x1b5765(0x1d9)]('Invalid\x20connection\x20mode\x20!');}}else{if(_0x539f===ReqTypeValues[_0x1b5765(0x224)])this[_0x1b5765(0x15e)]=this[_0x1b5765(0x15e)]['type']=_0x1b5765(0x1f9),_0x3f90b0=this[_0x1b5765(0x15e)];else{if(_0x539f===ReqTypeValues[_0x1b5765(0x137)]){}else{if(_0x539f===ReqTypeValues['STR'])_0x3f90b0=_0x3f86d2[_0x1b5765(0x1b8)];else console[_0x1b5765(0x1d9)](_0x1b5765(0x16e));}}}if(this[_0x1b5765(0x17b)]&&_0x3f90b0)this[_0x1b5765(0x17b)][_0x1b5765(0x17d)](JSON[_0x1b5765(0x17c)](_0x3f90b0));else console[_0x1b5765(0x1d9)](_0x1b5765(0x10c));}['stopHearBeat'](){const _0x3da4d2=a0_0x56c57c;this[_0x3da4d2(0x1be)]&&(this[_0x3da4d2(0x1be)]=![],this['interval']&&clearInterval(this[_0x3da4d2(0x108)]));}}
|
|
4
|
+
|
|
5
5
|
module.exports = HSWebSocket
|