superchats
Version:
SuperChats is a premium library with unique features that control Whatsapp functions. With Superchats you can build service bots, multiservice chats or any system that uses whatsapp
1 lines • 9.39 kB
JavaScript
;const a21_0x4dfaad=a21_0x3ffe;(function(_0x10d573,_0x68f1cb){const _0x1b8ff0=a21_0x3ffe,_0x2123e9=_0x10d573();while(!![]){try{const _0x1e48b3=-parseInt(_0x1b8ff0(0x16d))/0x1*(parseInt(_0x1b8ff0(0x188))/0x2)+parseInt(_0x1b8ff0(0x180))/0x3+parseInt(_0x1b8ff0(0x159))/0x4*(-parseInt(_0x1b8ff0(0x183))/0x5)+parseInt(_0x1b8ff0(0x163))/0x6*(-parseInt(_0x1b8ff0(0x187))/0x7)+-parseInt(_0x1b8ff0(0x181))/0x8*(-parseInt(_0x1b8ff0(0x170))/0x9)+parseInt(_0x1b8ff0(0x185))/0xa+-parseInt(_0x1b8ff0(0x184))/0xb;if(_0x1e48b3===_0x68f1cb)break;else _0x2123e9['push'](_0x2123e9['shift']());}catch(_0x174789){_0x2123e9['push'](_0x2123e9['shift']());}}}(a21_0x2b0a,0x2cf31));function a21_0x3ffe(_0x54a3c8,_0x457634){const _0x2b0af8=a21_0x2b0a();return a21_0x3ffe=function(_0x3ffe73,_0xf1b7fe){_0x3ffe73=_0x3ffe73-0x159;let _0x642a4e=_0x2b0af8[_0x3ffe73];return _0x642a4e;},a21_0x3ffe(_0x54a3c8,_0x457634);}var __createBinding=this&&this[a21_0x4dfaad(0x167)]||(Object['create']?function(_0x5b012d,_0x1e99cb,_0x2bf71d,_0x3b724d){const _0x251332=a21_0x4dfaad;if(_0x3b724d===undefined)_0x3b724d=_0x2bf71d;var _0x52931a=Object[_0x251332(0x18d)](_0x1e99cb,_0x2bf71d);(!_0x52931a||(_0x251332(0x174)in _0x52931a?!_0x1e99cb[_0x251332(0x15e)]:_0x52931a[_0x251332(0x175)]||_0x52931a[_0x251332(0x169)]))&&(_0x52931a={'enumerable':!![],'get':function(){return _0x1e99cb[_0x2bf71d];}}),Object['defineProperty'](_0x5b012d,_0x3b724d,_0x52931a);}:function(_0xc5d088,_0x579209,_0x42d879,_0x3f6126){if(_0x3f6126===undefined)_0x3f6126=_0x42d879;_0xc5d088[_0x3f6126]=_0x579209[_0x42d879];}),__setModuleDefault=this&&this['__setModuleDefault']||(Object[a21_0x4dfaad(0x171)]?function(_0x2e6c29,_0x2292dc){const _0x2df901=a21_0x4dfaad;Object[_0x2df901(0x177)](_0x2e6c29,_0x2df901(0x168),{'enumerable':!![],'value':_0x2292dc});}:function(_0x3b4735,_0x292803){const _0x3b8016=a21_0x4dfaad;_0x3b4735[_0x3b8016(0x168)]=_0x292803;}),__importStar=this&&this['__importStar']||function(_0x3ac528){const _0x2d6487=a21_0x4dfaad;if(_0x3ac528&&_0x3ac528[_0x2d6487(0x15e)])return _0x3ac528;var _0x39d970={};if(_0x3ac528!=null){for(var _0x849ca in _0x3ac528)if(_0x849ca!==_0x2d6487(0x168)&&Object[_0x2d6487(0x162)][_0x2d6487(0x173)][_0x2d6487(0x15a)](_0x3ac528,_0x849ca))__createBinding(_0x39d970,_0x3ac528,_0x849ca);}return __setModuleDefault(_0x39d970,_0x3ac528),_0x39d970;};Object[a21_0x4dfaad(0x177)](exports,a21_0x4dfaad(0x15e),{'value':!![]}),exports[a21_0x4dfaad(0x17c)]=exports['decodeDecompressedBinaryNode']=exports['decompressingIfRequired']=void 0x0;const util_1=require('util'),zlib_1=require(a21_0x4dfaad(0x17e)),constants=__importStar(require('./constants')),jid_utils_1=require(a21_0x4dfaad(0x166)),inflatePromise=(0x0,util_1[a21_0x4dfaad(0x15b)])(zlib_1[a21_0x4dfaad(0x179)]),decompressingIfRequired=async _0x27c081=>{const _0x4326d4=a21_0x4dfaad;return 0x2&_0x27c081['readUInt8']()?_0x27c081=await inflatePromise(_0x27c081['slice'](0x1)):_0x27c081=_0x27c081[_0x4326d4(0x186)](0x1),_0x27c081;};exports[a21_0x4dfaad(0x172)]=decompressingIfRequired;const decodeDecompressedBinaryNode=(_0x514c3c,_0x1a36ea,_0x5a2b74={'index':0x0})=>{const _0xbea533=a21_0x4dfaad,{DOUBLE_BYTE_TOKENS:_0x455fce,SINGLE_BYTE_TOKENS:_0x411393,TAGS:_0x346e18}=_0x1a36ea,_0x6f8227=_0x264417=>{const _0x2e544e=a21_0x3ffe;if(_0x5a2b74[_0x2e544e(0x18c)]+_0x264417>_0x514c3c['length'])throw null;},_0x3d50ac=()=>{const _0x48b3f9=a21_0x3ffe,_0x7d1e7d=_0x514c3c[_0x5a2b74[_0x48b3f9(0x18c)]];return _0x5a2b74[_0x48b3f9(0x18c)]+=0x1,_0x7d1e7d;},_0x53ce84=()=>{return _0x6f8227(0x1),_0x3d50ac();},_0x164426=_0x5b785e=>{const _0x7c5f40=a21_0x3ffe;_0x6f8227(_0x5b785e);const _0x110fc5=_0x514c3c[_0x7c5f40(0x186)](_0x5a2b74[_0x7c5f40(0x18c)],_0x5a2b74[_0x7c5f40(0x18c)]+_0x5b785e);return _0x5a2b74[_0x7c5f40(0x18c)]+=_0x5b785e,_0x110fc5;},_0x4d1e8c=_0x4445db=>{const _0x3cef3c=a21_0x3ffe;return _0x164426(_0x4445db)[_0x3cef3c(0x189)](_0x3cef3c(0x15f));},_0x51599d=(_0x1ffa44,_0x5b8f06=![])=>{_0x6f8227(_0x1ffa44);let _0x152c17=0x0;for(let _0x1ac9c5=0x0;_0x1ac9c5<_0x1ffa44;_0x1ac9c5++){const _0x1a5a72=_0x5b8f06?_0x1ac9c5:_0x1ffa44-0x1-_0x1ac9c5;_0x152c17|=_0x3d50ac()<<_0x1a5a72*0x8;}return _0x152c17;},_0x37a682=()=>{return _0x6f8227(0x3),((_0x3d50ac()&0xf)<<0x10)+(_0x3d50ac()<<0x8)+_0x3d50ac();},_0x23272f=_0x54cf1f=>{const _0x4e1768=a21_0x3ffe;if(_0x54cf1f>=0x0&&_0x54cf1f<0x10)return _0x54cf1f<0xa?'0'[_0x4e1768(0x160)](0x0)+_0x54cf1f:'A'[_0x4e1768(0x160)](0x0)+_0x54cf1f-0xa;throw null;},_0xd6d85b=_0x17f7af=>{const _0x3574cf=a21_0x3ffe;if(_0x17f7af>=0x0&&_0x17f7af<=0x9)return'0'[_0x3574cf(0x160)](0x0)+_0x17f7af;switch(_0x17f7af){case 0xa:return'-'['charCodeAt'](0x0);case 0xb:return'.'[_0x3574cf(0x160)](0x0);case 0xf:return'\x00'['charCodeAt'](0x0);default:throw null;}},_0x5be9e9=(_0x501161,_0x428098)=>{const _0x21b89f=a21_0x3ffe;if(_0x501161===_0x346e18[_0x21b89f(0x15c)])return _0xd6d85b(_0x428098);else{if(_0x501161===_0x346e18[_0x21b89f(0x18b)])return _0x23272f(_0x428098);else throw null;}},_0x384ca1=_0x225715=>{const _0x4949ea=a21_0x3ffe,_0x2311ea=_0x53ce84();let _0x58b614='';for(let _0x5686be=0x0;_0x5686be<(_0x2311ea&0x7f);_0x5686be++){const _0x587161=_0x53ce84();_0x58b614+=String[_0x4949ea(0x176)](_0x5be9e9(_0x225715,(_0x587161&0xf0)>>0x4)),_0x58b614+=String[_0x4949ea(0x176)](_0x5be9e9(_0x225715,_0x587161&0xf));}return _0x2311ea>>0x7!==0x0&&(_0x58b614=_0x58b614[_0x4949ea(0x186)](0x0,-0x1)),_0x58b614;},_0x15289c=_0x9e96fc=>{const _0x4ebeef=a21_0x3ffe;return _0x9e96fc===_0x346e18[_0x4ebeef(0x16a)]||_0x9e96fc===_0x346e18['LIST_8']||_0x9e96fc===_0x346e18['LIST_16'];},_0x5093d9=_0x2764b1=>{const _0x444759=a21_0x3ffe;switch(_0x2764b1){case _0x346e18[_0x444759(0x16a)]:return 0x0;case _0x346e18['LIST_8']:return _0x53ce84();case _0x346e18[_0x444759(0x182)]:return _0x51599d(0x2);default:throw null;}},_0x516055=()=>{const _0x30bf50=_0x3d779d(_0x53ce84()),_0x45fc4c=_0x3d779d(_0x53ce84());if(_0x45fc4c)return(_0x30bf50||'')+'@'+_0x45fc4c;throw null;},_0x3dca34=()=>{const _0x3ac9e6=a21_0x3ffe,_0x2b7be4=_0x53ce84(),_0x32b4e2=_0x53ce84(),_0x5fd061=_0x3d779d(_0x53ce84());return(0x0,jid_utils_1['jidEncode'])(_0x5fd061,_0x2b7be4===0x0?_0x3ac9e6(0x17b):_0x3ac9e6(0x15d),_0x32b4e2);},_0x3d779d=_0x167374=>{const _0x2ade18=a21_0x3ffe;if(_0x167374>=0x1&&_0x167374<_0x411393[_0x2ade18(0x17f)])return _0x411393[_0x167374]||'';switch(_0x167374){case _0x346e18[_0x2ade18(0x161)]:case _0x346e18[_0x2ade18(0x16b)]:case _0x346e18[_0x2ade18(0x17a)]:case _0x346e18[_0x2ade18(0x178)]:return _0x4adaac(_0x167374-_0x346e18['DICTIONARY_0'],_0x53ce84());case _0x346e18[_0x2ade18(0x16a)]:return'';case _0x346e18[_0x2ade18(0x16f)]:return _0x4d1e8c(_0x53ce84());case _0x346e18[_0x2ade18(0x18a)]:return _0x4d1e8c(_0x37a682());case _0x346e18['BINARY_32']:return _0x4d1e8c(_0x51599d(0x4));case _0x346e18[_0x2ade18(0x165)]:return _0x516055();case _0x346e18[_0x2ade18(0x17d)]:return _0x3dca34();case _0x346e18[_0x2ade18(0x18b)]:case _0x346e18['NIBBLE_8']:return _0x384ca1(_0x167374);default:throw null;}},_0x36724e=_0x1a72ac=>{const _0x39f06e=[],_0x58c6b8=_0x5093d9(_0x1a72ac);for(let _0xfb66fd=0x0;_0xfb66fd<_0x58c6b8;_0xfb66fd++){_0x39f06e['push']((0x0,exports['decodeDecompressedBinaryNode'])(_0x514c3c,_0x1a36ea,_0x5a2b74));}return _0x39f06e;},_0x4adaac=(_0x3a5aac,_0x436935)=>{const _0x5d4f1f=a21_0x3ffe,_0x633cb1=_0x455fce[_0x3a5aac];if(!_0x633cb1)throw null;const _0x163dbf=_0x633cb1[_0x436935];if(typeof _0x163dbf===_0x5d4f1f(0x164))throw null;return _0x163dbf;},_0x1db6c8=_0x5093d9(_0x53ce84()),_0x21e349=_0x3d779d(_0x53ce84());if(!_0x1db6c8||!_0x21e349[_0xbea533(0x17f)])throw null;const _0x272481={};let _0x19304b;if(_0x1db6c8===0x0||!_0x21e349)throw null;const _0xbcf1bc=_0x1db6c8-0x1>>0x1;for(let _0x3c0be5=0x0;_0x3c0be5<_0xbcf1bc;_0x3c0be5++){const _0x5727ec=_0x3d779d(_0x53ce84()),_0x25c0d8=_0x3d779d(_0x53ce84());_0x272481[_0x5727ec]=_0x25c0d8;}if(_0x1db6c8%0x2===0x0){const _0x2ca969=_0x53ce84();if(_0x15289c(_0x2ca969))_0x19304b=_0x36724e(_0x2ca969);else{let _0x3da372;switch(_0x2ca969){case _0x346e18[_0xbea533(0x16f)]:_0x3da372=_0x164426(_0x53ce84());break;case _0x346e18[_0xbea533(0x18a)]:_0x3da372=_0x164426(_0x37a682());break;case _0x346e18[_0xbea533(0x16c)]:_0x3da372=_0x164426(_0x51599d(0x4));break;default:_0x3da372=_0x3d779d(_0x2ca969);break;}_0x19304b=_0x3da372;}}return{'tag':_0x21e349,'attrs':_0x272481,'content':_0x19304b};};exports[a21_0x4dfaad(0x16e)]=decodeDecompressedBinaryNode;const decodeBinaryNode=async _0x23f0b3=>{const _0x47715f=a21_0x4dfaad,_0x195e88=await(0x0,exports[_0x47715f(0x172)])(_0x23f0b3);return(0x0,exports['decodeDecompressedBinaryNode'])(_0x195e88,constants);};function a21_0x2b0a(){const _0x4766f4=['DICTIONARY_3','inflate','DICTIONARY_2','s.whatsapp.net','decodeBinaryNode','AD_JID','zlib','length','975714yufTGg','11768EBpPpI','LIST_16','5HwTwqp','2677785qnzvlv','2304650pMoaFG','slice','68943tQvPdg','30XRCiuz','toString','BINARY_20','HEX_8','index','getOwnPropertyDescriptor','156292IQKZlh','call','promisify','NIBBLE_8','lid','__esModule','utf-8','charCodeAt','DICTIONARY_0','prototype','60mhEkCi','undefined','JID_PAIR','./jid-utils','__createBinding','default','configurable','LIST_EMPTY','DICTIONARY_1','BINARY_32','20261uIruWo','decodeDecompressedBinaryNode','BINARY_8','1917oNVgyo','create','decompressingIfRequired','hasOwnProperty','get','writable','fromCharCode','defineProperty'];a21_0x2b0a=function(){return _0x4766f4;};return a21_0x2b0a();}exports[a21_0x4dfaad(0x17c)]=decodeBinaryNode;