mirror of
https://github.com/shufflewzc/faker3.git
synced 2024-11-10 17:49:19 +08:00
30 lines
21 KiB
JavaScript
30 lines
21 KiB
JavaScript
/*
|
||
一个强大的推送通知库,主要用于汇总多条账号消息后集中推送通知
|
||
默认情况下账号消息指的是单一账号的消息,它由“<前缀><用户名><消息内容>”组成,其中消息内容由一条或多条组成最后用指定字符拼接成一条合并内容
|
||
脚本最终汇总多条账号消息后集中触发推送通知业务,每个账号的消息占用一行,排列顺序以优先触发记录为原则
|
||
此库封装了多条方法,推送通知业务调用自 sendNotify.js,可引用此模块来平替引用它,支持单消息推送
|
||
|
||
账号消息自定义功能如下(环境变量)
|
||
1。关键词匹配(白名单),触发时推送对应单条账号消息,另外定义后不再适用于黑名单关键词过滤 JD_NOTIFY_MATCH_KEYWORDS
|
||
例:export JD_NOTIFY_MATCH_KEYWORDS="积分",多个关键词用@分割
|
||
2。关键词过滤(黑名单),触发时不推送对应单条账号消息 JD_NOTIFY_FILTER_KEYWORDS
|
||
例:export JD_NOTIFY_FILTER_KEYWORDS="空气@会员",多个关键词用@分割
|
||
3。关键词清除,触发时会清除消息内容中的对应关键字 JD_NOTIFY_CLEAR_KEYWORDS
|
||
例:export JD_NOTIFY_CLEAR_KEYWORDS="" # 例:"空气",多个关键词用|分割,如果你不想在账号消息中看到某些字样则可以使用此功能
|
||
4。消息内容分隔符 JD_NOTIFY_SEPARATOR,默认为中文逗号
|
||
例:export JD_NOTIFY_SEPARATOR="、",此分隔符用于分隔多条账号消息
|
||
5。设置用户名昵称 JD_NOTIFY_NICKNAMES
|
||
例:export JD_NOTIFY_NICKNAMES="userpin_α@哥哥,userpin_β@弟弟",多个昵称配置用英文逗号分割,用户名和昵称用@分割
|
||
6。是否展示用户名 JD_NOTIFY_SHOW_USERNAME(true/false),默认展示
|
||
例:export JD_NOTIFY_SHOW_USERNAME="false"
|
||
7. 设置推送通知的用户名是否脱敏 JD_NOTIFY_USERNAME_MASKING(true/false),默认不脱敏,根据用户名长度动态将部分字符用*替换
|
||
例:JD_NOTIFY_USERNAME_MASKING="true"
|
||
8。设置消息前缀格式 JD_NOTIFY_PREFIX_FORMAT,默认为 "【京东账号<序号>】<用户名>:"
|
||
例:export JD_NOTIFY_PREFIX_FORMAT="账号%【@】",%代表账号序号、@代表用户名
|
||
9。设置自动合并消息中用数字开头表示数量的内容 JD_NOTIFY_AUTO_MERGE_TYPE
|
||
例:export JD_NOTIFY_AUTO_MERGE_TYPE="积分",多个规则用@分割,正则匹配
|
||
|
||
new Env('Rebels_sendJDNotify');
|
||
*/
|
||
|
||
const _0xd9dfef=_0x3306;(function(_0x33130e,_0x2569a3){const _0x2025fd=_0x3306,_0x33ce15=_0x33130e();while(!![]){try{const _0x321f30=-parseInt(_0x2025fd(0x1ff,'yRQz'))/0x1+parseInt(_0x2025fd(0x1d4,'R[]7'))/0x2*(-parseInt(_0x2025fd(0x232,'OQ4#'))/0x3)+-parseInt(_0x2025fd(0x1bc,'j9WF'))/0x4*(-parseInt(_0x2025fd(0x1b9,'OQ4#'))/0x5)+-parseInt(_0x2025fd(0x22d,'h(YY'))/0x6+-parseInt(_0x2025fd(0x1cc,'h(YY'))/0x7*(-parseInt(_0x2025fd(0x1c6,'lEi%'))/0x8)+-parseInt(_0x2025fd(0x1f6,'5y9G'))/0x9+parseInt(_0x2025fd(0x214,'uI$*'))/0xa*(parseInt(_0x2025fd(0x231,'#A)4'))/0xb);if(_0x321f30===_0x2569a3)break;else _0x33ce15['push'](_0x33ce15['shift']());}catch(_0x1fdb37){_0x33ce15['push'](_0x33ce15['shift']());}}}(_0x1716,0xdae73));function _0x3306(_0x1a0d42,_0x7d21e6){const _0x17166b=_0x1716();return _0x3306=function(_0x3306d2,_0x489262){_0x3306d2=_0x3306d2-0x1a3;let _0x54f0f2=_0x17166b[_0x3306d2];if(_0x3306['NvUdcK']===undefined){var _0x27177b=function(_0x347e7f){const _0x2b674f='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x423fb='',_0xa88d03='';for(let _0x19ab71=0x0,_0x4e3ea4,_0x3a05ac,_0x18f0b3=0x0;_0x3a05ac=_0x347e7f['charAt'](_0x18f0b3++);~_0x3a05ac&&(_0x4e3ea4=_0x19ab71%0x4?_0x4e3ea4*0x40+_0x3a05ac:_0x3a05ac,_0x19ab71++%0x4)?_0x423fb+=String['fromCharCode'](0xff&_0x4e3ea4>>(-0x2*_0x19ab71&0x6)):0x0){_0x3a05ac=_0x2b674f['indexOf'](_0x3a05ac);}for(let _0x3b621a=0x0,_0x453517=_0x423fb['length'];_0x3b621a<_0x453517;_0x3b621a++){_0xa88d03+='%'+('00'+_0x423fb['charCodeAt'](_0x3b621a)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0xa88d03);};const _0x176f44=function(_0x3152b6,_0xe54139){let _0x3827fa=[],_0x478e29=0x0,_0x39c8c0,_0x477698='';_0x3152b6=_0x27177b(_0x3152b6);let _0xd87c95;for(_0xd87c95=0x0;_0xd87c95<0x100;_0xd87c95++){_0x3827fa[_0xd87c95]=_0xd87c95;}for(_0xd87c95=0x0;_0xd87c95<0x100;_0xd87c95++){_0x478e29=(_0x478e29+_0x3827fa[_0xd87c95]+_0xe54139['charCodeAt'](_0xd87c95%_0xe54139['length']))%0x100,_0x39c8c0=_0x3827fa[_0xd87c95],_0x3827fa[_0xd87c95]=_0x3827fa[_0x478e29],_0x3827fa[_0x478e29]=_0x39c8c0;}_0xd87c95=0x0,_0x478e29=0x0;for(let _0x54f7da=0x0;_0x54f7da<_0x3152b6['length'];_0x54f7da++){_0xd87c95=(_0xd87c95+0x1)%0x100,_0x478e29=(_0x478e29+_0x3827fa[_0xd87c95])%0x100,_0x39c8c0=_0x3827fa[_0xd87c95],_0x3827fa[_0xd87c95]=_0x3827fa[_0x478e29],_0x3827fa[_0x478e29]=_0x39c8c0,_0x477698+=String['fromCharCode'](_0x3152b6['charCodeAt'](_0x54f7da)^_0x3827fa[(_0x3827fa[_0xd87c95]+_0x3827fa[_0x478e29])%0x100]);}return _0x477698;};_0x3306['pHoaZR']=_0x176f44,_0x1a0d42=arguments,_0x3306['NvUdcK']=!![];}const _0x242e69=_0x17166b[0x0],_0x48abe4=_0x3306d2+_0x242e69,_0x1f28fa=_0x1a0d42[_0x48abe4];return!_0x1f28fa?(_0x3306['JhXGfp']===undefined&&(_0x3306['JhXGfp']=!![]),_0x54f0f2=_0x3306['pHoaZR'](_0x54f0f2,_0x489262),_0x1a0d42[_0x48abe4]=_0x54f0f2):_0x54f0f2=_0x1f28fa,_0x54f0f2;},_0x3306(_0x1a0d42,_0x7d21e6);}function _0x1716(){const _0x5887e3=['smo+W4KOWPjUWPxcRW','kCo3AM7dOSknWOpcKuZcMHJcH8k1d8oGW6FdRG','ESoOW5i0WOrCWOpcUCouWPDusCoj','WOvIkG','W6ZcUY7cKCoLeIWOWRq8va','W7fRWPZcRSkD','WPjPlgpcGmoNia','W4BcUc/cNSo1oqaZWRmUsmkCoq','a8o0FhJdPCk4WO3cGhpcMG','W43dP8kaW7u4WRP7','w8osW4OiWOfxrHFcVmo/W4RcMIddRa','qCoWdCkQaSobW4JcS8knqJVdP1dcH8kxbmkauwqm','bSkXWOyRCCoAkf4dWP3cP1hdISkRWPFdMIFcT8oHpv8','wSkeuv1hz8oApCoGaSk2eSkl','rWbhWPiQW4WliwCHdrVdUYeDWOiuz3JcVCo0nCkgWRiOW6BcV13cLZdcJvHPuG','W4FcUGrAEq','bY4iW6tdOJuZaXBcSq','i8oyzSoN','WRfEW6LY','W5hcLctdQNKlW5/cNa','W6ZcPs7cJmoYpsq5WO4/xCktp8oHWPGTsW','W5RcPGLs','WPVdImkRBHxcNYC','W5TvgCo5','W7yymcK','C8kkmf/cU8kNFCkrrSoWaCkKWQC','zuhcK8k8exHOW49uW5rXx8oRxG','D8opW4mtWPi','W77dH3RdR8k8WRHA','WQbiWPtcJ2z+WOtdGI1SW5RdSbm','W7LKWP4','WPnJmwO','WQBcNCkNW518x8kmxeFdIsDynSo6DJ/cRW','W4BdJd5GW63dL8k5WPddQ8oqrCkB','qSktecrnW7W/zSofxLpdOq','WPRcIqy0WP3dSKS','cv8TWQu','tKZdN8kig8oSW6vMWOH5W4iXdKeHxXtdSH8zW57cOmoqW484xq','Emkada','WPNdK3xdNSkQWQfefmoFlXaRWQ0KW7/cRGOxW4zM','W6ZcPs7cJmoYpsq5WPa7wCkrjColWOK7tSkZzHv4','WQ5EW6LXfmoh','W6pcNZ7dUNmcW5VcGSojW78','W4O9WPlcVLBcNSoIcMJdNG','W5/cNJNdRx0cW44','v8o+W4O+WPj9','oSkUWOy5DSoE','WO7cHrOSWPNdOW','W4BcPJJcMSo1ccOOWRe/','WRfxW651bq','W6NdMXCS','fevCW4dcMsvg','W6tdJmkXW48sWObgkSoNWONcKMeCW5TszuldHmkZiCosewe','xvuCW4JdVNZdLq','hrNcH8kPWQO4k8otWOlcMhX0ra','WR8bW6lcOdO0smoGySol','WO7dGshdVh4aW4lcMa','ue/cMCkX','WPXTWQddGCoVuqVcOxBcTSkTW6rw','W4LiaSorW5u4Ea','w2NdO8kLo8onW4juWQjNW6uqkMO','WQTvW6r6fColnXa','FtfRWRq','WRGaW6dcPh5nq8ovvSozWR50','w0hdMSo5','44gh5lIg5lIt6lAS5y6IW6hJGOZcQo++QG','WPJcQNiSWPr/ha','ExCDd0NdGW','W6OilsBcHmo6','W6iemdhcN8oHW4y','vKxcNSk4cMu','WPjDWPxcMwfWWPNdTW','W7mEjJpcVSoZW457','CCkmkSoWrJCdhWDn','W6iemdhcN8oHW4zCW6Cvy8oGvSo6','W5hcKcC','WRBcNCkGW4f2','qg4dhKRdMbddKwz/WQ/dGHC','wSkbuf1tqmodfSoQpCk6amkuzCosqa','BSkEfSoWkW','yZZdUmkgWQbxWR01DCkDBCoFyW','Dmo7aCkI','W4dcRsxcM8opmZC1WRSJ','e1VcHmo1WPzUbIqVWRe','tW93W7n/tSoOiMPNWQW','WP4FsCoeW60yFCopsG','w8osW4OjWPvtBbFcJmoGW47cNdFdLmoogSoPWO3dT2VdOq','WQPia0hcRSoqdmkGiJFcM8kVW57cP8kUW5/dMSoTpmkdWPK+bSox','W6ZcUdNcMSoNntSAWRiOqmktoq','W59Rs8ojW65zW7K','dc4sW47dSY4','iSoxArVdQCo9pa','xeNcImk6gG','ySkBn8oq','w1qe','mh4CWO8jv8oMlfbCWRxdJ8kFfMtcVJ3dQCkti8okp0tcNCo1','W7bkfCoNW4C6D8ozAqv3W63cICkFWQRdR8kIW5veWO3dOK4','h8o0A3JdQq','W4BdJXeWydPVmmoXywCZWRDk','tKZdN8kig8oSW6vMWOH5W5eRb0CQtaBdVaunW4JcVmojW4iL','tuOEW5xdRW','WP3cLCkHW5L8yCkmBfNdUqbenmoX','l0jgW5pcNtHcW4ZdQSk7','y23dTmkspComW4bf','oxNcOCouW74iW4i+xmkprSo5yhO','l0fkW4pcHtDeW4tdNmkTwSoun3rmta4','D8kzlSoytsaZeq5ClmkChG','mSoxAGO','oMHWW77cUqjQW6FdLSkxz8o0evzWFdDQhSkkgXXXbW','W7bVWOBcQSkbWR4','W7pcVgmKuZKQW5qvWRVdS8k3wvZcIJWcW6/dGgr9W4e','nwtcPSovW74b','WQTiW5eM','ymowW5WkWOLbBJpcO8oGW6BcMdBdRmokbmo7','WQVcMSkWW4HR','ESo2W58PWPrSWR3cUCovWQPuq8ojWOm','pmkYWPu','WQv0WRZdGa','WP1AW6r1d8oApbCmeSkFW6BcKYC','tSo7W7a0WQLMqJtcLSotW6BcVbhdNmoJpmovWQFdNfJdNColW4v8','WRZcMMC5','BCorW4WwWPnwBGe','yZ3dSmkbWQ8jW6SrE8kgzq','D0pdKSoVW65OFSoyWPxcMejwsNXeWQuTW53dReVcUG','WObBW5SOdSkvsCokW4BdHcLMB3a','w8oEW5OoWOL/BGdcQmoPW7/cHdxdUG','saH0W7fXn8kAb31bWRBdV8ke','BxSbf03dKG0','a1XdW5NcLtm','W6aMAW','W7fRWPG','ruVdHmoVW7XUFmoo','W6pcKdtdUNCzW5tcM8oFW43cUSkDkSkd','DNavhLq','BmkAr11z','W5xdLsHP','ASo9hmkGbG','CCkgsLu','W4RcT3qsvZqX','aSoOzNa','WPZcNH81','W7hdRSkbW7mWWRv7lCoDWRNcTeCNW79avwldSSkacmo2','WR3cM2SMW5qAvXq','W4JcVq5B','W47cLcFdTxKpW58','mh4CWO8jv8oMlfbCWRddN8khehBcUIZdVSkg','WQVcMSk3W4fMsmkmBq','W7eHACovrG','lCkUWOO1','WRbiW5eScmkoASoBW4BdTJPZA3O','W4JcSxuNwsq8','fSolvq','p0VcMCo0WQPpeYaSWOv/BwzGwNO','WOH/W5Hyl8o7gYuMdmk9W4BcTXHKyNlcR8kahNVcKConWQS','W4NcGJldQ1ynW5FcIG','mSoDAqS','ymkvEvZdG8kx','W5hdKI5K','WRJdK8ktWR/cQ191WQtdHmk7','sCkipCoEtdeEcHnPo8kac8o4','sCkammouvWCFeazblG','W63dHXaOAG','W7ZdGbi','WPNdRtjLdXOEW7ucWRBdKq','WQ0YW5hcNCkSWPxdICkNW5y','WP0xbSoXW5i3Amol','WObuW5eOcSkorSotW5ddTG','WRRcJx44W7SyxW','WP7dRtnJb2u+W4KTWPhdSmkK','W6XCWRVdTa','v8kQjCoxemkKW4KrW6iyWRJdH8k0gLxdImkBEmkgWRtcIN3cLSkc','W6XCWRNdPcOn','W4lcSq5yDCkF','WOPlWOpcMe52WPhdOq','W6aelZxcLCoG','W4ddJI0','FIHXWR8a','WQtcQhKRWOjWd8oTWRhdVu7dG8ojySkYWRFcPW','sfXfW6FcGtPr','W5dcLdNdVMWe','WO3dH2tcQc1EW5/cOCoPW7tcVmko','WRFcGrmQWPVdTgpdR8kpCCkgqCk9W78','aCoauham','jCkhW5GAWQO','ytNdSmkkWQfxWR4uymk+Dmo5Aa','W4bXWORdNGaRBCoNq8ofWOzBbSoonmojvSoMW7fivqNcJr3cSG','p8k1WO8Sz8oj','EtzXWRe','hCoUumoegSkqW5tcRSoPWQZdQmk2WQ0tW4tdNCoxW79x','WR9HoxZcKSoLiSkdpqhcTmkxW77cLmk3W6xdQmoFcSkMWRiF','cK8WWQK','ENah','emkTWOjPW4TMWPtcLSoYWQn3','iSkfW50E','W4BdNHyHAr5Ybmo5DL4RWRm','wSkvqfToE8omd8o8mCkPaCkEDq','W69MWOhcRSkq','W4BdMXCHFtLRl8oZsvi5WQXgWRul','WOJcSmklW6nCEmkGwgFdGXP0b8oFwrpcH2DM','WRnFW5ySfCki','W6KTC8oEv8on'];_0x1716=function(){return _0x5887e3;};return _0x1716();}class Notification{constructor(){const _0x470f79=_0x3306;this[_0x470f79(0x229,'Z8D6')]='',this[_0x470f79(0x1e6,'!p2b')]='',this[_0x470f79(0x1e1,'@blE')]=require('../sendNotify')[_0x470f79(0x22f,'@blE')],this[_0x470f79(0x219,'S!Ez')]=[],this[_0x470f79(0x1de,'PZRP')]='',this[_0x470f79(0x205,'@blE')]=[],this[_0x470f79(0x1d1,'jQX1')]=[],this['_messageClearKeywords']=[],this[_0x470f79(0x1df,'R[]7')]=!![],this[_0x470f79(0x1d9,'$B#k')]=![],this[_0x470f79(0x1ba,'YMfJ')]={},this[_0x470f79(0x22a,'4)BN')]='',this[_0x470f79(0x1e8,'hxgB')]=_0x470f79(0x21e,'k9SK'),this['_autoMergeType']='',this[_0x470f79(0x1b4,'Ye7(')]();}['_initConfig'](){const _0x3ce9cf=_0x3306;process[_0x3ce9cf(0x1d3,'4)BN')][_0x3ce9cf(0x249,'lEi%')]&&(this['_messageMatchKeywords']=process['env'][_0x3ce9cf(0x254,'#HSw')][_0x3ce9cf(0x22c,'iD(W')]('@')[_0x3ce9cf(0x228,'pWW#')](_0x176f44=>_0x176f44[_0x3ce9cf(0x269,'NXTI')]())[_0x3ce9cf(0x1c2,'zcL6')](Boolean));process[_0x3ce9cf(0x23b,'AUUI')][_0x3ce9cf(0x240,'S!Ez')]&&(this['_messageFilterKeywords']=process[_0x3ce9cf(0x1ab,'yRQz')]['JD_NOTIFY_FILTER_KEYWORDS'][_0x3ce9cf(0x241,'AUUI')]('@')[_0x3ce9cf(0x25f,'!u@k')](_0x347e7f=>_0x347e7f[_0x3ce9cf(0x1f4,'OQ4#')]())[_0x3ce9cf(0x220,'4)BN')](Boolean));process['env'][_0x3ce9cf(0x234,'jQX1')]&&(this[_0x3ce9cf(0x233,'#HSw')]=process[_0x3ce9cf(0x251,'y)5n')][_0x3ce9cf(0x1be,'iD(W')]['split']('|')[_0x3ce9cf(0x1bf,'uI$*')](Boolean));this[_0x3ce9cf(0x246,'lEi%')]=process[_0x3ce9cf(0x1b6,'$B#k')]['JD_NOTIFY_SEPARATOR']||process[_0x3ce9cf(0x1c3,'j1QQ')][_0x3ce9cf(0x1a5,'#A)4')]||',';if(process[_0x3ce9cf(0x1e0,'jQX1')][_0x3ce9cf(0x1da,'Z8D6')]){const _0x2b674f=process[_0x3ce9cf(0x1fb,'!u@k')][_0x3ce9cf(0x1d0,'k9SK')][_0x3ce9cf(0x1f8,'#HSw')](',');_0x2b674f[_0x3ce9cf(0x236,'FZJT')](_0x423fb=>{const _0x5c5383=_0x3ce9cf;let _0xa88d03=_0x423fb['split']('@');_0xa88d03[_0x5c5383(0x223,'JB(N')]===0x2&&_0xa88d03[0x0]&&_0xa88d03[0x1]&&(this[_0x5c5383(0x208,']Q7Y')][_0xa88d03[0x0]]=_0xa88d03[0x1]);});}this['_showUserName']=!(process[_0x3ce9cf(0x1d3,'4)BN')][_0x3ce9cf(0x211,'!p2b')]==='false'),this[_0x3ce9cf(0x22b,'#cB0')]=(process['env'][_0x3ce9cf(0x202,'S!Ez')]||process[_0x3ce9cf(0x1ab,'yRQz')][_0x3ce9cf(0x1eb,'ASM0')])===_0x3ce9cf(0x1b1,'j1QQ'),this[_0x3ce9cf(0x1ea,'#cB0')]=process['env']['JD_NOTIFY_PREFIX_FORMAT']||process[_0x3ce9cf(0x25e,'CCWx')][_0x3ce9cf(0x1ad,'20UJ')]||this['_defaultPrefixFormat'],process[_0x3ce9cf(0x203,'iD(W')][_0x3ce9cf(0x23c,'#A)4')]&&(this['_autoMergeType']=process[_0x3ce9cf(0x25e,'CCWx')][_0x3ce9cf(0x1cd,'uI$*')]);}[_0xd9dfef(0x24c,'h(YY')]({title:_0x19ab71,content:_0x4e3ea4,messageSeparator:_0x3a05ac}){const _0x1665b2=_0xd9dfef;_0x19ab71!==undefined&&(this[_0x1665b2(0x265,'hxgB')]=_0x19ab71),_0x4e3ea4!==undefined&&(this['content']=_0x4e3ea4),_0x3a05ac!==undefined&&(this['_messageSeparator']=_0x3a05ac);}['setTitle'](_0x18f0b3){const _0x23bf16=_0xd9dfef;this[_0x23bf16(0x229,'Z8D6')]=_0x18f0b3;}[_0xd9dfef(0x20d,'@blE')](){const _0x148320=_0xd9dfef;this[_0x148320(0x1a7,'CCWx')]='';}[_0xd9dfef(0x244,'S!Ez')](){const _0x349806=_0xd9dfef;return this[_0x349806(0x1b5,'$B#k')];}[_0xd9dfef(0x1b2,'w#DA')](_0x3b621a){const _0x67ea7d=_0xd9dfef;this[_0x67ea7d(0x21f,'kz*w')]=_0x3b621a;}[_0xd9dfef(0x247,'Ye7(')](_0x453517){const _0x38d2e3=_0xd9dfef;this[_0x38d2e3(0x212,'AUUI')]+=_0x453517;}[_0xd9dfef(0x1fe,'j1QQ')](){const _0x52299f=_0xd9dfef;this[_0x52299f(0x1e6,'!p2b')]='';}['getContent'](){const _0xc93004=_0xd9dfef;return this[_0xc93004(0x209,'pWW#')];}[_0xd9dfef(0x1e4,'@blE')](_0x3152b6){const _0xee3c97=_0xd9dfef;this[_0xee3c97(0x238,'5y9G')]=_0x3152b6;}[_0xd9dfef(0x20b,'y)5n')](_0xe54139,_0x3827fa){const _0x13ca00=_0xd9dfef,_0x478e29=this[_0x13ca00(0x258,'wf$i')],_0x39c8c0=this[_0x13ca00(0x23d,'OQ4#')],_0x477698=this[_0x13ca00(0x1e9,'y)5n')],_0xd87c95=this[_0x13ca00(0x1fa,'fzp6')],_0x54f7da=this[_0x13ca00(0x207,'pWW#')];_0xe54139===undefined&&(_0xe54139='');const _0x3e1efa={'index':''+_0xe54139,'userName':_0x3827fa,'fixed':![],'messages':[],'originMessages':[],'insert'(_0x48de84){const _0x30fe9e=_0x13ca00;if(!_0x48de84)return;if(_0x3e1efa[_0x30fe9e(0x239,'JB(N')])return;_0x3e1efa['originMessages'][_0x30fe9e(0x20f,'$B#k')](_0x48de84[_0x30fe9e(0x1a8,'y)5n')]());if(_0x478e29[_0x30fe9e(0x1b0,'[CBH')]>0x0&&!_0x478e29[_0x30fe9e(0x248,'5y9G')](_0x48adf3=>_0x48de84[_0x30fe9e(0x21a,'20UJ')](_0x48adf3)))return;else{if(_0x39c8c0[_0x30fe9e(0x1c7,'pWW#')]>0x0&&_0x39c8c0[_0x30fe9e(0x1fc,'jQX1')](_0x459a5a=>_0x48de84[_0x30fe9e(0x256,'#HSw')](_0x459a5a)))return;}_0x477698[_0x30fe9e(0x1db,'YMfJ')]>0x0&&_0x477698['forEach'](_0x55d659=>{const _0xfb9e72=_0x30fe9e;_0x48de84=_0x48de84[_0xfb9e72(0x25c,'4)BN')](new RegExp(_0x55d659,'g'),'');}),_0x3e1efa[_0x30fe9e(0x224,'fzp6')]['push'](_0x48de84[_0x30fe9e(0x1cf,'ASM0')]());},'fix'(_0x508d23){const _0x216db6=_0x13ca00;if(!_0x508d23)return;_0x3e1efa['fixed']=!![],_0x3e1efa[_0x216db6(0x245,'h(YY')]=[_0x508d23[_0x216db6(0x268,'PZRP')]()];if(_0x478e29[_0x216db6(0x1dc,'CCWx')]>0x0&&!_0x478e29[_0x216db6(0x21d,'wf$i')](_0x150dc7=>_0x508d23['includes'](_0x150dc7)))return;else{if(_0x39c8c0['length']>0x0&&_0x39c8c0['some'](_0x1ca76f=>_0x508d23['includes'](_0x1ca76f)))return;}_0x477698[_0x216db6(0x24a,'!u@k')]>0x0&&_0x477698[_0x216db6(0x267,'j9WF')](_0x5c9b17=>{const _0x21c16a=_0x216db6;_0x508d23=_0x508d23[_0x21c16a(0x200,'NXTI')](new RegExp(_0x5c9b17,'g'),'');}),_0x3e1efa[_0x216db6(0x1dd,'R[]7')]=[_0x508d23[_0x216db6(0x266,'#cB0')]()];},'updateIndex'(_0x72b83a){const _0x96f5df=_0x13ca00;_0x3e1efa[_0x96f5df(0x262,'4)BN')]=''+_0x72b83a;},'updateUsername'(_0x5cd5af){const _0x59dd00=_0x13ca00;_0x3e1efa[_0x59dd00(0x26b,'GSOe')]=_0x5cd5af;},'getInlineContent'(){const _0x514ba0=_0x13ca00;let _0x5c61bf=this[_0x514ba0(0x1a9,'YMfJ')][_0x514ba0(0x22e,'hxgB')](this[_0x514ba0(0x1f1,'@blE')])[_0x514ba0(0x1d5,'gtqm')]();this[_0x514ba0(0x25a,'#HSw')]&&(_0x5c61bf=this[_0x514ba0(0x1c9,'NXTI')](_0x5c61bf,this[_0x514ba0(0x242,'Z8D6')]));const _0x16affc=decodeURIComponent(_0x54f7da[this['userName']]||this[_0x514ba0(0x225,'zcL6')]),_0xe414ea=_0xd87c95['replace'](/%/g,this[_0x514ba0(0x23e,'PZRP')])['replace'](/@/g,_0x16affc);return''+_0xe414ea+(_0x5c61bf||'无');}};return this[_0x13ca00(0x259,'YMfJ')][_0x13ca00(0x264,'j1QQ')](_0x3e1efa),_0x3e1efa;}[_0xd9dfef(0x210,'lEi%')](_0x55f401){this['_accountsArray']=this['_accountsArray']['filter'](_0x169e93=>_0x169e93!==_0x55f401);}[_0xd9dfef(0x1fd,'Z8D6')](_0xdc52c9){const _0x45bb0a=_0xd9dfef,_0x4e2e0f=this[_0x45bb0a(0x1d7,'#cB0')][_0x45bb0a(0x1bd,'uI$*')](_0x54ff48=>decodeURIComponent(_0x54ff48[_0x45bb0a(0x1c1,'fzp6')])===decodeURIComponent(_0xdc52c9));_0x4e2e0f&&this[_0x45bb0a(0x1aa,'j9WF')](_0x4e2e0f);}[_0xd9dfef(0x227,'zcL6')](_0x23fdf5){const _0x1a315a=_0xd9dfef,_0x844313=this[_0x1a315a(0x1b3,'Ye7(')][_0x1a315a(0x252,'wG[u')](_0x400664=>_0x400664[_0x1a315a(0x1ec,'nS*b')]===''+_0x23fdf5);_0x844313&&this[_0x1a315a(0x222,'zcL6')](_0x844313);}[_0xd9dfef(0x24e,'#HSw')](){const _0x29d1f7=_0xd9dfef;this[_0x29d1f7(0x1f7,'JB(N')]=[];}[_0xd9dfef(0x1ed,'GR1N')](_0x40691d=![]){const _0x3d8fa0=_0xd9dfef;if(this[_0x3d8fa0(0x259,'YMfJ')][_0x3d8fa0(0x221,'zcL6')]===0x0)return'';this[_0x3d8fa0(0x26a,'!p2b')]();if(this[_0x3d8fa0(0x253,'20UJ')][_0x3d8fa0(0x206,'20UJ')]===0x0)return'';let _0x1144d5=[];const _0x22f6d4=this[_0x3d8fa0(0x1ac,'^ldz')],_0x148c02=this['_showUserName'],_0xae1302=!_0x148c02&&this[_0x3d8fa0(0x1d6,'$B#k')]===this[_0x3d8fa0(0x204,'@dFk')]?this[_0x3d8fa0(0x235,'@blE')][_0x3d8fa0(0x1e3,'jQX1')](/:$/,''):this[_0x3d8fa0(0x217,'wG[u')];for(const {userName:_0x1fd323,index:_0x5dade7,messages:_0x1a4c27}of this[_0x3d8fa0(0x261,'pWW#')]){let _0x1eaaae='';if(_0x148c02){const _0x43b74d=decodeURIComponent(this[_0x3d8fa0(0x243,'lEi%')][_0x1fd323]||_0x1fd323);_0x22f6d4&&_0x40691d?_0x1eaaae=this['_desensitizingUserName'](_0x43b74d):_0x1eaaae=_0x43b74d;}const _0x4f2ccf=_0xae1302[_0x3d8fa0(0x1bb,'GSOe')](/%/g,_0x5dade7)[_0x3d8fa0(0x1a4,'pWW#')](/@/g,_0x1eaaae),_0x183452=_0x1a4c27[_0x3d8fa0(0x216,'JB(N')](this[_0x3d8fa0(0x1c5,'kz*w')])[_0x3d8fa0(0x23a,'Ye7(')]();_0x1144d5[_0x3d8fa0(0x1d2,'#A)4')](''+_0x4f2ccf+_0x183452);}return _0x1144d5['join']('\x0a')[_0x3d8fa0(0x255,'GSOe')]();}[_0xd9dfef(0x1ca,'yRQz')](){const _0x21d38d=_0xd9dfef;this[_0x21d38d(0x1e5,'PZRP')](),this['clearContent'](),this['disposeAllMessage']();}async[_0xd9dfef(0x1ef,'20UJ')](_0x4a3bea,_0x14a277){await this['_sendNotify'](_0x4a3bea,_0x14a277);}async[_0xd9dfef(0x230,'^ldz')](_0x2cd4aa,_0x3478a){const _0x622dc5=_0xd9dfef;await this[_0x622dc5(0x1af,'5y9G')](_0x2cd4aa,_0x3478a);}async[_0xd9dfef(0x21b,'ASM0')](){const _0x415fc2=_0xd9dfef;let _0x475c98=this[_0x415fc2(0x1f3,'TG#^')][_0x415fc2(0x1f2,'nS*b')]();const _0x540ee6=this[_0x415fc2(0x226,'Ye7(')](!![]);if(_0x540ee6)_0x475c98=_0x540ee6[_0x415fc2(0x1ee,'k9SK')]()+'\x0a\x0a'+_0x475c98;await this[_0x415fc2(0x201,'#A)4')](this['title'],_0x475c98);}[_0xd9dfef(0x1e7,'#HSw')](_0x506d09,_0x3e8e70){const _0x1121eb=_0xd9dfef;try{function _0x1b3a22(_0x469caf){const _0x55f548=_0x3306,_0x3c6e8e=_0x469caf[_0x55f548(0x1e2,'!u@k')](/(\d+)(.+)/);return _0x3c6e8e?{'count':parseInt(_0x3c6e8e[0x1]),'name':_0x3c6e8e[0x2][_0x55f548(0x24d,'YMfJ')]()}:{'count':null,'name':_0x469caf};}function _0x13cef1(_0x1a8e3e,_0x11128a,_0x42df67){const _0x34f610=_0x3306;return _0x11128a!==null&&_0x42df67[_0x34f610(0x1cb,'gtqm')]('@')[_0x34f610(0x1a6,'Z8D6')](_0x1a8e3e);}for(let _0x156165=0x0;_0x156165<_0x506d09['length'];_0x156165++){const {count:_0x235a4b,name:_0x10f10b}=_0x1b3a22(_0x506d09[_0x156165]);if(_0x13cef1(_0x10f10b,_0x235a4b,_0x3e8e70))for(let _0x4460ec=_0x156165+0x1;_0x4460ec<_0x506d09[_0x1121eb(0x237,'GR1N')];_0x4460ec++){const {count:_0x342008,name:_0x46e13d}=_0x1b3a22(_0x506d09[_0x4460ec]);_0x10f10b===_0x46e13d&&(_0x506d09[_0x156165]=''+(_0x235a4b+_0x342008)+_0x10f10b,_0x506d09[_0x1121eb(0x25d,'lEi%')](_0x4460ec,0x1),_0x4460ec--);}}return _0x506d09;}catch{return _0x506d09;}}[_0xd9dfef(0x24b,'j9WF')](_0x512fb3){const _0x1f5570=_0xd9dfef;let _0x26106a='';if(_0x512fb3['length']<0x5)switch(_0x512fb3['length']){case 0x1:_0x26106a=_0x512fb3;break;case 0x2:_0x26106a=_0x512fb3['slice'](0x0,0x1)+'*';break;case 0x3:_0x26106a=_0x512fb3[_0x1f5570(0x20e,'20UJ')](0x0,0x1)+'*'+_0x512fb3[_0x1f5570(0x1c4,'ASM0')](-0x1);break;case 0x4:_0x26106a=_0x512fb3[_0x1f5570(0x1d8,'!u@k')](0x0,0x2)+'**';break;}else _0x26106a=_0x512fb3['slice'](0x0,0x2)+'*'[_0x1f5570(0x20a,'R[]7')](_0x512fb3[_0x1f5570(0x1c0,'nS*b')]-0x4)+_0x512fb3['slice'](-0x2);return _0x26106a;}['_formatAcountsMessage'](){const _0x2cd83d=_0xd9dfef;let _0x49a7c5=[];for(let {userName:_0x1b7cad,index:_0x282e65,messages:_0x401d57}of this['_accountsArray']){_0x401d57=_0x401d57[_0x2cd83d(0x20c,'NXTI')](_0x11ba94=>_0x11ba94!==null&&_0x11ba94!==undefined&&_0x11ba94!=='');const _0x28f557=_0x49a7c5[_0x2cd83d(0x1a3,'nS*b')](_0x2a7086=>_0x2a7086[_0x2cd83d(0x1ae,'pWW#')]===_0x1b7cad);_0x28f557?(_0x28f557[_0x2cd83d(0x24f,'Z8D6')]===''&&(_0x28f557[_0x2cd83d(0x263,'#cB0')]=_0x282e65),_0x401d57['length']>0x0&&_0x28f557[_0x2cd83d(0x224,'fzp6')]['push'](..._0x401d57)):_0x49a7c5[_0x2cd83d(0x1f5,'zcL6')]({'userName':_0x1b7cad,'index':_0x282e65,'messages':_0x401d57});}_0x49a7c5=_0x49a7c5[_0x2cd83d(0x1ce,'y)5n')](_0x24dcb1=>_0x24dcb1[_0x2cd83d(0x260,'wf$i')][_0x2cd83d(0x223,'JB(N')]>0x0),this[_0x2cd83d(0x23f,'$B#k')]&&_0x49a7c5[_0x2cd83d(0x218,'OQ4#')](_0x12179d=>{const _0x52068a=_0x2cd83d;_0x12179d['messages']=this[_0x52068a(0x250,'R[]7')](_0x12179d[_0x52068a(0x1f0,'pWW#')],this['_autoMergeType']);}),this['_accountsArray']=_0x49a7c5;}}module['exports']=new Notification(); |