diff --git a/Plugins/BDFDB.js b/Plugins/BDFDB.js
index bf16ec4191..ae29cd489a 100644
--- a/Plugins/BDFDB.js
+++ b/Plugins/BDFDB.js
@@ -968,6 +968,7 @@ var BDFDB = {
Note: "usernote",
SearchResults: "searchresultswrap",
TypingUsers: "typing",
+ UnreadDMs: "guildsscroller",
UserPopout: "userpopout",
V2C_ContentColumn: "contentcolumn",
V2C_List: "_repolist",
@@ -1168,7 +1169,7 @@ var BDFDB = {
if (instance) {
var name = type.split(" _ _ ")[0];
instance = instance._reactInternalFiber && instance._reactInternalFiber.type ? instance._reactInternalFiber.type : instance;
- instance = instance.displayName == name || instance.name == name ? instance : BDFDB.ReactUtils.findOwner(instance, {name, up:true});
+ instance = instance.displayName == name || instance.name == name ? instance : (BDFDB.ReactUtils.findOwner(instance, {name}) || BDFDB.ReactUtils.findOwner(instance, {name, up:true}));
if (instance) {
instance = instance._reactInternalFiber && instance._reactInternalFiber.type ? instance._reactInternalFiber.type : instance;
let patchfunctions = {};
@@ -1218,7 +1219,7 @@ var BDFDB = {
function isCorrectInstance(instance, name) {
if (!instance) return false;
instance = instance._reactInternalFiber && instance._reactInternalFiber.type ? instance._reactInternalFiber.type : instance;
- instance = instance.displayName == name || instance.name == name ? instance : BDFDB.ReactUtils.findOwner(instance, {name, up:true});
+ instance = instance.displayName == name || instance.name == name ? instance : (BDFDB.ReactUtils.findOwner(instance, {name}) || BDFDB.ReactUtils.findOwner(instance, {name, up:true}));
return !!instance;
}
};
diff --git a/Plugins/BDFDB.min.js b/Plugins/BDFDB.min.js
index a138e1302a..a6db8079ff 100644
--- a/Plugins/BDFDB.min.js
+++ b/Plugins/BDFDB.min.js
@@ -1 +1 @@
-if(window['BDFDB']&&BDFDB['ListenerUtils']&&typeof BDFDB['ListenerUtils']['remove']=='function')BDFDB['ListenerUtils']['remove'](BDFDB);if(window['BDFDB']&&BDFDB['ObserverUtils']&&typeof BDFDB['ObserverUtils']['disconnect']=='function')BDFDB['ObserverUtils']['disconnect'](BDFDB);if(window['BDFDB']&&BDFDB['ModuleUtils']&&typeof BDFDB['ModuleUtils']['unpatch']=='function')BDFDB['ModuleUtils']['unpatch'](BDFDB);var BDFDB={'myPlugins':BDFDB&&BDFDB['myPlugins']||{},'InternalData':BDFDB&&BDFDB['InternalData']||{'pressedKeys':[],'mousePosition':{'pageX':0x0,'pageY':0x0}},'BDv2Api':BDFDB&&BDFDB['BDv2Api']||undefined,'pressedKeys':[],'mousePosition':{'pageX':0x0,'pageY':0x0},'name':'$BDFDB'};(c=>{var d=Math['round'](Math['random']()*0x2386f26fc10000),e={};BDFDB['InternalData']['loadid']=d;BDFDB['InternalData']['creationTime']=performance['now']();BDFDB['LogUtils']={};BDFDB['LogUtils']['log']=function(f,g){if(typeof f!='string')f='';if(typeof g!='string'||g=='$BDFDB')g='BDFDB';console['log']('%c['+g+']%c','color:\x20#3a71c1;\x20font-weight:\x20700;','',f['trim']());};BDFDB['LogUtils']['warn']=function(h,i){if(typeof h!='string')h='';if(typeof i!='string'||i=='$BDFDB')i='BDFDB';console['warn']('%c['+i+']%c','color:\x20#3a71c1;\x20font-weight:\x20700;','',h['trim']());};BDFDB['LogUtils']['error']=function(j,k){if(typeof j!='string')j='';if(typeof k!='string'||k=='$BDFDB')k='BDFDB';console['error']('%c['+k+']%c','color:\x20#3a71c1;\x20font-weight:\x20700;','','Fatal\x20Error:\x20'+j['trim']());};BDFDB['LogUtils']['log']('Loading\x20library.');BDFDB['PluginUtils']={};BDFDB['PluginUtils']['init']=function(l){l['name']=l['name']||(typeof l['getName']=='function'?l['getName']():null);l['version']=l['version']||(typeof l['getVersion']=='function'?l['getVersion']():null);l['author']=l['author']||(typeof l['getAuthor']=='function'?l['getAuthor']():null);l['description']=l['description']||(typeof l['getDescription']=='function'?l['getDescription']():null);if(l['patchModules']){l['patchedModules']={'after':l['patchModules']};delete l['patchModules'];}l['patchedModules']=BDFDB['ObjectUtils']['filter'](l['patchedModules'],m=>eK['Patchtypes']['includes'](m),!![]);e['clearStartTimeout'](l);var n=BDFDB['LanguageUtils']['LibraryStringsFormat']('toast_plugin_started','v'+l['version']);BDFDB['LogUtils']['log'](n,l['name']);if(!BDFDB['BDUtils']['getSettings']('fork-ps-2'))BDFDB['NotificationUtils']['toast'](l['name']+'\x20'+n,{'nopointer':!![],'selector':'plugin-started-toast'});var o=typeof l['getRawUrl']=='function'&&typeof l['getRawUrl']()=='string'?l['getRawUrl']():'https://mwittrien.github.io/BetterDiscordAddons/Plugins/'+l['name']+'/'+l['name']+'.plugin.js';BDFDB['PluginUtils']['checkUpdate'](l['name'],o);if(BDFDB['ObjectUtils']['is'](l['classes']))e['addPluginClasses'](l);if(typeof l['initConstructor']==='function')BDFDB['TimeUtils']['suppress'](l['initConstructor']['bind'](l),'Could\x20not\x20initiate\x20constructor!',l['name'])();if(typeof l['css']==='string')BDFDB['DOMUtils']['appendLocalStyle'](l['name'],l['css']);e['patchPlugin'](l);e['addOnSettingsClosedListener'](l);e['addOnSwitchListener'](l);e['addContextListeners'](l);BDFDB['PluginUtils']['translate'](l);BDFDB['PluginUtils']['checkChangeLog'](l);if(!window['PluginUpdates']||typeof window['PluginUpdates']!=='object')window['PluginUpdates']={'plugins':{}};window['PluginUpdates']['plugins'][o]={'name':l['name'],'raw':o,'version':l['version']};if(typeof window['PluginUpdates']['interval']==='undefined')window['PluginUpdates']['interval']=BDFDB['TimeUtils']['interval'](c=>{BDFDB['PluginUtils']['checkAllUpdates']();},0x3e8*0x3c*0x3c*0x2);l['started']=!![];delete l['stopping'];for(let q in BDFDB['myPlugins'])if(!BDFDB['myPlugins'][q]['started']&&typeof BDFDB['myPlugins'][q]['initialize']=='function')setImmediate(()=>{BDFDB['TimeUtils']['suppress'](BDFDB['myPlugins'][q]['initialize']['bind'](BDFDB['myPlugins'][q]),'Could\x20not\x20initiate\x20plugin!',q)();});};BDFDB['PluginUtils']['clear']=function(r){e['clearStartTimeout'](r);delete BDFDB['myPlugins'][r['name']];var s=BDFDB['LanguageUtils']['LibraryStringsFormat']('toast_plugin_stopped','v'+r['version']);BDFDB['LogUtils']['log'](s,r['name']);if(!BDFDB['BDUtils']['getSettings']('fork-ps-2'))BDFDB['NotificationUtils']['toast'](r['name']+'\x20'+s,{'nopointer':!![],'selector':'plugin-stopped-toast'});var t=typeof r['getRawUrl']=='function'&&typeof r['getRawUrl']()=='string'?r['getRawUrl']():'https://mwittrien.github.io/BetterDiscordAddons/Plugins/'+r['name']+'/'+r['name']+'.plugin.js';if(BDFDB['ObjectUtils']['is'](r['classes']))e['removePluginClasses'](r);if(typeof r['css']==='string')BDFDB['DOMUtils']['removeLocalStyle'](r['name']);BDFDB['ModuleUtils']['unpatch'](r);BDFDB['ListenerUtils']['remove'](r);BDFDB['ObserverUtils']['disconnect'](r);e['removeOnSwitchListener'](r);for(let u of document['querySelectorAll']('.'+r['name']+'-modal,\x20.'+r['name']['toLowerCase']()+'-modal,\x20.'+r['name']+'-settingsmodal,\x20.'+r['name']['toLowerCase']()+'-settingsmodal')){let v=u['querySelector'](BDFDB['dotCN']['modalclose']);if(v)v['click']();}delete window['PluginUpdates']['plugins'][t];delete r['started'];BDFDB['TimeUtils']['timeout'](()=>{delete r['stopping'];});};BDFDB['PluginUtils']['translate']=function(w){w['labels']={};if(typeof w['setLabelsByLanguage']==='function'||typeof w['changeLanguageStrings']==='function'){if(document['querySelector']('html')['lang'])z();else{var x=BDFDB['TimeUtils']['interval'](c=>{if(document['querySelector']('html')['lang']){BDFDB['TimeUtils']['clear'](x);z();}},0x64);}function z(){var A=BDFDB['LanguageUtils']['getLanguage']();if(typeof w['setLabelsByLanguage']==='function')w['labels']=w['setLabelsByLanguage'](A['id']);if(typeof w['changeLanguageStrings']==='function')w['changeLanguageStrings']();BDFDB['LogUtils']['log'](BDFDB['LanguageUtils']['LibraryStringsFormat']('toast_plugin_translated',A['ownlang']),w['name']);}}};BDFDB['PluginUtils']['checkUpdate']=function(B,C){if(BDFDB['BDUtils']['isBDv2']()||!B||!C)return;hn['request'](C,(D,E,F)=>{if(D)return;var G=F['match'](/['"][0-9]+\.[0-9]+\.[0-9]+['"]/i);if(!G)return;if(BDFDB['NumberUtils']['getVersionDifference'](G[0x0],window['PluginUpdates']['plugins'][C]['version'])>0.2){BDFDB['NotificationUtils']['toast'](B+'\x20will\x20be\x20force\x20updated,\x20because\x20your\x20version\x20is\x20heavily\x20outdated.',{'type':'warn','nopointer':!![],'selector':'plugin-forceupdate-toast'});BDFDB['PluginUtils']['downloadUpdate'](B,C);}else if(BDFDB['NumberUtils']['compareVersions'](G[0x0],window['PluginUpdates']['plugins'][C]['version']))BDFDB['PluginUtils']['showUpdateNotice'](B,C);else BDFDB['PluginUtils']['removeUpdateNotice'](B);});};BDFDB['PluginUtils']['checkAllUpdates']=function(){for(let H in window['PluginUpdates']['plugins']){var I=window['PluginUpdates']['plugins'][H];BDFDB['PluginUtils']['checkUpdate'](I['name'],I['raw']);}};BDFDB['PluginUtils']['showUpdateNotice']=function(J,K){if(!J||!K)return;var L=document['querySelector']('#pluginNotice');if(!L){L=BDFDB['NotificationUtils']['notice']('The\x20following\x20plugins\x20need\x20to\x20be\x20updated: ',{'html':!![],'id':'pluginNotice','type':'info','btn':!BDFDB['BDUtils']['isAutoLoadEnabled']()?'Reload':'','customicon':''});L['style']['setProperty']('display','block','important');L['style']['setProperty']('visibility','visible','important');L['style']['setProperty']('opacity','1','important');L['querySelector'](BDFDB['dotCN']['noticedismiss'])['addEventListener']('click',c=>{BDFDB['DOMUtils']['remove']('.update-clickme-tooltip');});var N=L['querySelector'](BDFDB['dotCN']['noticebutton']);if(N){BDFDB['DOMUtils']['toggle'](N,!![]);N['addEventListener']('click',c=>{window['location']['reload'](![]);});N['addEventListener']('mouseenter',c=>{if(window['PluginUpdates']['downloaded'])BDFDB['TooltipUtils']['create'](N,window['PluginUpdates']['downloaded']['join'](',\x20'),{'type':'bottom','selector':'update-notice-tooltip','style':'max-width:\x20420px'});});}}if(L){var Q=L['querySelector']('#outdatedPlugins');if(Q&&!Q['querySelector']('#'+J+'-notice')){if(Q['querySelector']('span'))Q['appendChild'](BDFDB['DOMUtils']['create'](',\x20'));var R=BDFDB['DOMUtils']['create'](''+J+'');R['addEventListener']('click',c=>{BDFDB['PluginUtils']['downloadUpdate'](J,K);});Q['appendChild'](R);if(!document['querySelector']('.update-clickme-tooltip'))BDFDB['TooltipUtils']['create'](Q,'Click\x20us!',{'type':'bottom','selector':'update-clickme-tooltip','delay':0x1f4});}}};BDFDB['PluginUtils']['removeUpdateNotice']=function(T,U=document['querySelector']('#pluginNotice')){if(!T||!U)return;var V=U['querySelector']('#outdatedPlugins');if(V){var W=V['querySelector']('#'+T+'-notice');if(W){var X=W['nextSibling'];var Y=W['prevSibling'];if(X&&BDFDB['DOMUtils']['containsClass'](X,'separator'))X['remove']();else if(Y&&BDFDB['DOMUtils']['containsClass'](Y,'separator'))Y['remove']();W['remove']();}if(!V['querySelector']('span')){var Z=U['querySelector'](BDFDB['dotCN']['noticebutton']);if(Z){U['querySelector']('.notice-message')['innerText']='To\x20finish\x20updating\x20you\x20need\x20to\x20reload.';BDFDB['DOMUtils']['toggle'](Z,![]);}else U['querySelector'](BDFDB['dotCN']['noticedismiss'])['click']();}}};BDFDB['PluginUtils']['downloadUpdate']=function(a0,a1){if(!a0||!a1)return;hn['request'](a1,(a2,a3,a4)=>{if(a2)return BDFDB['LogUtils']['warn']('Unable\x20to\x20get\x20update\x20for\x20'+a0);BDFDB['InternalData']['creationTime']=0x0;var a5=a4['match'](/['"][0-9]+\.[0-9]+\.[0-9]+['"]/i);a5=a5['toString']()['replace'](/['"]/g,'');hn['fs']['writeFileSync'](hn['path']['join'](BDFDB['BDUtils']['getPluginsFolder'](),a1['split']('/')['slice'](-0x1)[0x0]),a4);BDFDB['NotificationUtils']['toast'](a0+'\x20v'+window['PluginUpdates']['plugins'][a1]['version']+'\x20has\x20been\x20replaced\x20by\x20'+a0+'\x20v'+a5+'.',{'nopointer':!![],'selector':'plugin-updated-toast'});var a6=document['querySelector']('#pluginNotice');if(a6){if(a6['querySelector'](BDFDB['dotCN']['noticebutton'])){window['PluginUpdates']['plugins'][a1]['version']=a5;if(!window['PluginUpdates']['downloaded'])window['PluginUpdates']['downloaded']=[];if(!window['PluginUpdates']['downloaded']['includes'](a0))window['PluginUpdates']['downloaded']['push'](a0);}BDFDB['PluginUtils']['removeUpdateNotice'](a0,a6);}});};BDFDB['PluginUtils']['checkChangeLog']=function(a7){if(!BDFDB['ObjectUtils']['is'](a7)||!a7['changelog'])return;var a8=BDFDB['DataUtils']['load'](a7,'changelog');if(!a8['currentversion']||BDFDB['NumberUtils']['compareVersions'](a7['version'],a8['currentversion'])){a8['currentversion']=a7['version'];BDFDB['DataUtils']['save'](a8,a7,'changelog');BDFDB['PluginUtils']['openChangeLog'](a7);}};BDFDB['PluginUtils']['openChangeLog']=function(a9){if(!BDFDB['ObjectUtils']['is'](a9)||!a9['changelog'])return;var aa='',ab={'added':'New\x20Features','fixed':'Bug\x20Fixes','improved':'Improvements','progress':'Progress'};for(let ac in a9['changelog']){ac=ac['toLowerCase']();var ad=BDFDB['disCN']['changelog'+ac];if(ad){aa+='
'+ab[ac]+'
';for(let ae of a9['changelog'][ac])aa+='- '+ae[0x0]+''+(ae[0x1]?':\x20'+ae[0x1]+'.':'')+'
';aa+='
';}}if(aa)BDFDB['ModalUtils']['open'](a9,{'header':a9['name']+'\x20'+BDFDB['LanguageUtils']['LanguageStrings']['CHANGE_LOG'],'subheader':'Version\x20'+a9['version'],'children':BDFDB['ReactUtils']['elementToReact'](BDFDB['DOMUtils']['create'](aa)),'className':BDFDB['disCN']['modalchangelogmodal'],'contentClassName':BDFDB['disCNS']['changelogcontainer']+BDFDB['disCN']['modalminicontent']});};BDFDB['PluginUtils']['createSettingsPanel']=function(af,ag){if(!BDFDB['ObjectUtils']['is'](af)||!ag||!BDFDB['ReactUtils']['isValidElement'](ag)&&!BDFDB['ArrayUtils']['is'](ag)||BDFDB['ArrayUtils']['is'](ag)&&!ag['length'])return;var ah=BDFDB['DOMUtils']['create']('');BDFDB['ReactUtils']['render'](BDFDB['ReactUtils']['createElement'](yd['SettingsPanel'],{'key':af['name']+'-settingspanel','title':af['name'],'children':ag}),ah);return ah;};e['addPluginClasses']=function(ai){x6['PLUGIN_'+ai['name']]=ai['classes'];for(let aj in ai['classes'])xg['$'+(ai['name']+aj)['toLowerCase']()]=['PLUGIN_'+ai['name'],aj];};e['removePluginClasses']=function(ak){delete x6['PLUGIN_'+ak['name']];xg=BDFDB['ObjectUtils']['filter'](xg,al=>al[0x0]!='PLUGIN_'+ak['name']);};e['clearStartTimeout']=function(am){if(!BDFDB['ObjectUtils']['is'](am))return;BDFDB['TimeUtils']['clear'](am['startTimeout'],am['libLoadTimeout']);delete am['startTimeout'];delete am['libLoadTimeout'];};e['addOnSettingsClosedListener']=function(an){if(BDFDB['ObjectUtils']['is'](an)&&typeof an['onSettingsClosed']==='function'){let ao=BDFDB['ModuleUtils']['findByName']('StandardSidebarView');if(ao)BDFDB['ModuleUtils']['patch'](an,ao['prototype'],'componentWillUnmount',{'after':ap=>{an['onSettingsClosed']();}});}};e['addOnSwitchListener']=function(aq){if(BDFDB['ObjectUtils']['is'](aq)&&typeof aq['onSwitch']==='function'){e['removeOnSwitchListener'](aq);var ar=document['querySelector'](BDFDB['dotCN']['guildswrapper']+'\x20~\x20*\x20>\x20'+BDFDB['dotCN']['chatspacer']);if(ar){var as=new MutationObserver(at=>{at['forEach'](au=>{if(au['target']&&BDFDB['DOMUtils']['containsClass'](au['target'],BDFDB['disCN']['nochannel']))aq['onSwitch']();});});var av=ar['querySelector'](BDFDB['dotCNC']['chat']+BDFDB['dotCN']['nochannel']);if(av)as['observe'](av,{'attributes':!![]});aq['onSwitchFix']=new MutationObserver(aw=>{aw['forEach'](ax=>{if(ax['addedNodes']){ax['addedNodes']['forEach'](ay=>{if(BDFDB['DOMUtils']['containsClass'](ay,BDFDB['disCN']['chat'],BDFDB['disCN']['nochannel'],![]))as['observe'](ay,{'attributes':!![]});});}});});aq['onSwitchFix']['observe'](ar,{'childList':!![]});}}};e['removeOnSwitchListener']=function(az){if(BDFDB['ObjectUtils']['is'](az)&&typeof az['onSwitch']==='function'&&BDFDB['ObjectUtils']['is'](az['onSwitchFix'])){az['onSwitchFix']['disconnect']();delete az['onSwitchFix'];}};BDFDB['ObserverUtils']={};BDFDB['ObserverUtils']['connect']=function(aA,aB,aC,aD={'childList':!![]}){if(!BDFDB['ObjectUtils']['is'](aA)||!aB||!aC)return;if(BDFDB['ObjectUtils']['isEmpty'](aA['observers']))aA['observers']={};if(!BDFDB['ArrayUtils']['is'](aA['observers'][aC['name']]))aA['observers'][aC['name']]=[];if(!aC['multi'])for(let aE of aA['observers'][aC['name']])aE['disconnect']();if(aC['instance'])aA['observers'][aC['name']]['push'](aC['instance']);var aF=aA['observers'][aC['name']][aA['observers'][aC['name']]['length']-0x1];if(aF){var aG=Node['prototype']['isPrototypeOf'](aB)?aB:typeof aB==='string'?document['querySelector'](aB):null;if(aG)aF['observe'](aG,aD);}};BDFDB['ObserverUtils']['disconnect']=function(aH,aI){if(BDFDB['ObjectUtils']['is'](aH)&&!BDFDB['ObjectUtils']['isEmpty'](aH['observers'])){let aJ=typeof aI=='string'?aI:BDFDB['ObjectUtils']['is'](aI)?aI['name']:null;if(!aJ){for(let aI in aH['observers'])for(let aL of aH['observers'][aI])aL['disconnect']();delete aH['observers'];}else if(!BDFDB['ArrayUtils']['is'](aH['observers'][aJ])){for(let aM of aH['observers'][aJ])aM['disconnect']();delete aH['observers'][aJ];}}};BDFDB['ListenerUtils']={};BDFDB['ListenerUtils']['add']=function(aN,aO,aP,aQ,aR){if(!BDFDB['ObjectUtils']['is'](aN)||!Node['prototype']['isPrototypeOf'](aO)&&aO!==window||!aP)return;var aS=typeof aQ=='function';var aT=aS?undefined:aQ;var aU=aS?aQ:aR;if(typeof aU!='function')return;BDFDB['ListenerUtils']['remove'](aN,aO,aP,aT);for(var aV of aP['split']('\x20')){aV=aV['split']('.');var aW=aV['shift']()['toLowerCase']();if(!aW)return;var aX=aW;aW=aW=='mouseenter'||aW=='mouseleave'?'mouseover':aW;var aY=(aV['join']('.')||'')+aN['name'];if(!BDFDB['ArrayUtils']['is'](aN['listeners']))aN['listeners']=[];var aZ=null;if(aT){if(aX=='mouseenter'||aX=='mouseleave'){aZ=b0=>{for(let b1 of b0['path'])if(typeof b1['matches']=='function'&&b1['matches'](aT)&&!b1[aY+'BDFDB'+aX]){b1[aY+'BDFDB'+aX]=!![];if(aX=='mouseenter')aU(BDFDB['ListenerUtils']['copyEvent'](b0,b1));let b2=b3=>{if(b3['target']['contains'](b1)||b3['target']==b1||!b1['contains'](b3['target'])){if(aX=='mouseleave')aU(BDFDB['ListenerUtils']['copyEvent'](b0,b1));delete b1[aY+'BDFDB'+aX];document['removeEventListener']('mouseout',b2);}};document['addEventListener']('mouseout',b2);break;}};}else{aZ=b4=>{for(let b5 of b4['path'])if(typeof b5['matches']=='function'&&b5['matches'](aT)){aU(BDFDB['ListenerUtils']['copyEvent'](b4,b5));break;}};}}else aZ=b6=>{aU(BDFDB['ListenerUtils']['copyEvent'](b6,aO));};aN['listeners']['push']({'ele':aO,'eventname':aW,'origeventname':aX,'namespace':aY,'selector':aT,'eventcallback':aZ});aO['addEventListener'](aW,aZ,!![]);}};BDFDB['ListenerUtils']['remove']=function(b7,b8,b9='',ba){if(!BDFDB['ObjectUtils']['is'](b7)||!BDFDB['ArrayUtils']['is'](b7['listeners']))return;if(Node['prototype']['isPrototypeOf'](b8)||b8===window){for(var bb of b9['split']('\x20')){bb=bb['split']('.');var bc=bb['shift']()['toLowerCase']();var bd=(bb['join']('.')||'')+b7['name'];for(let be of b7['listeners']){let bf=[];if(be['ele']==b8&&(!bc||be['origeventname']==bc)&&be['namespace']==bd&&(ba===undefined||be['selector']==ba)){b8['removeEventListener'](be['eventname'],be['eventcallback'],!![]);bf['push'](be);}if(bf['length'])b7['listeners']=b7['listeners']['filter'](be=>{return bf['indexOf'](be)<0x0;});}}}else if(!b8){for(let bh of b7['listeners'])bh['ele']['removeEventListener'](bh['eventname'],bh['eventcallback'],!![]);b7['listeners']=[];}};BDFDB['ListenerUtils']['multiAdd']=function(bi,bj,bk){if(!Node['prototype']['isPrototypeOf'](bi)||!bj||typeof bk!='function')return;for(var bl of bj['trim']()['split']('\x20')['filter'](bm=>bm))bi['addEventListener'](bl,bk,!![]);};BDFDB['ListenerUtils']['multiRemove']=function(bn,bo,bp){if(!Node['prototype']['isPrototypeOf'](bn)||!bo||typeof bp!='function')return;for(var bq of bo['trim']()['split']('\x20')['filter'](br=>br))bn['removeEventListener'](bq,bp,!![]);};BDFDB['ListenerUtils']['addToChildren']=function(bs,bt,bu,bv){if(!Node['prototype']['isPrototypeOf'](bs)||!bt||!bu||!bu['trim']()||typeof bv!='function')return;for(var bw of bt['trim']()['split']('\x20')['filter'](bx=>bx)){var by=bv;if(bw=='mouseenter'||bw=='mouseleave')by=bz=>{if(bz['target']['matches'](bu))bv(bz);};bs['querySelectorAll'](bu['trim']())['forEach'](bA=>{bA['addEventListener'](bw,by,!![]);});}};BDFDB['ListenerUtils']['copyEvent']=function(bB,bC){if(!bB||!bB['constructor']||!bB['type'])return bB;var bD=new bB['constructor'](bB['type'],bB);Object['defineProperty'](bD,'originalEvent',{'value':bB});Object['defineProperty'](bD,'which',{'value':bB['which']});Object['defineProperty'](bD,'keyCode',{'value':bB['keyCode']});Object['defineProperty'](bD,'path',{'value':bB['path']});Object['defineProperty'](bD,'relatedTarget',{'value':bB['relatedTarget']});Object['defineProperty'](bD,'srcElement',{'value':bB['srcElement']});Object['defineProperty'](bD,'target',{'value':bB['target']});Object['defineProperty'](bD,'toElement',{'value':bB['toElement']});if(bC)Object['defineProperty'](bD,'currentTarget',{'value':bC});return bD;};BDFDB['ListenerUtils']['stopEvent']=function(bE){if(BDFDB['ObjectUtils']['is'](bE)){if(typeof bE['preventDefault']=='function')bE['preventDefault']();if(typeof bE['stopPropagation']=='function')bE['stopPropagation']();if(typeof bE['stopImmediatePropagation']=='function')bE['stopImmediatePropagation']();if(BDFDB['ObjectUtils']['is'](bE['originalEvent'])){if(typeof bE['originalEvent']['preventDefault']=='function')bE['originalEvent']['preventDefault']();if(typeof bE['originalEvent']['stopPropagation']=='function')bE['originalEvent']['stopPropagation']();if(typeof bE['originalEvent']['stopImmediatePropagation']=='function')bE['originalEvent']['stopImmediatePropagation']();}}};var bF=[],bG={'queue':[],'running':![]};BDFDB['NotificationUtils']={};BDFDB['NotificationUtils']['toast']=function(bH,bI={}){var bJ=document['querySelector']('.toasts,\x20.bd-toasts');if(!bJ){var bK=document['querySelector'](BDFDB['dotCN']['channels']+'\x20+\x20div');var bL=bK?BDFDB['DOMUtils']['getRects'](bK):null;var bM=bK?bK['querySelector'](BDFDB['dotCN']['memberswrap']):null;var bN=bL?bL['left']:0x136;var bO=bL?bM?bL['width']-BDFDB['DOMUtils']['getRects'](bM)['width']:bL['width']:window['outerWidth']-0x0;var bP=bK?bK['querySelector']('form'):null;var bQ=bP?BDFDB['DOMUtils']['getRects'](bP)['height']:0x50;bJ=BDFDB['DOMUtils']['create']('');(document['querySelector'](BDFDB['dotCN']['app'])||document['body'])['appendChild'](bJ);}const {type='',icon=!![],timeout=0xbb8,html=![],selector='',nopointer=![],color=''}=bI;var bR=BDFDB['DOMUtils']['create'](''+(html===!![]?bH:BDFDB['StringUtils']['htmlEscape'](bH))+'
');if(type){BDFDB['DOMUtils']['addClass'](bR,'toast-'+type);if(icon)BDFDB['DOMUtils']['addClass'](bR,'icon');}else if(color){var bS=BDFDB['ColorUtils']['convert'](color,'RGB');if(bS)bR['style']['setProperty']('background-color',bS);}BDFDB['DOMUtils']['addClass'](bR,selector);bJ['appendChild'](bR);bR['close']=c=>{if(document['contains'](bR)){BDFDB['DOMUtils']['addClass'](bR,'closing');bR['style']['setProperty']('pointer-events','none','important');BDFDB['TimeUtils']['timeout'](c=>{bR['remove']();if(!bJ['querySelectorAll']('.toast,\x20.bd-toast')['length'])bJ['remove']();},0xbb8);}};if(nopointer)bR['style']['setProperty']('pointer-events','none','important');else bR['addEventListener']('click',bR['close']);BDFDB['TimeUtils']['timeout'](c=>{bR['close']();},timeout>0x0?timeout:0x927c0);return bR;};BDFDB['NotificationUtils']['desktop']=function(bW,bX={}){var bY=c=>{bG['queue']['push']({'parsedcontent':bW,'parsedoptions':bX});c0();};var c0=c=>{if(!bG['running']){var c2=bG['queue']['shift']();if(c2)c3(c2['parsedcontent'],c2['parsedoptions']);}};var c3=(c4,c5)=>{bG['running']=!![];var c6=c5['silent'];c5['silent']=c5['silent']||c5['sound']?!![]:![];var c7=new Notification(c4,c5);var c8=new Audio();var c9=BDFDB['TimeUtils']['timeout'](c=>{cc();},c5['timeout']?c5['timeout']:0xbb8);if(typeof c5['click']=='function')c7['onclick']=c=>{BDFDB['TimeUtils']['clear'](c9);cc();c5['click']();};if(!c6&&c5['sound']){c8['src']=c5['sound'];c8['play']();}var cc=c=>{c8['pause']();c7['close']();bG['running']=![];BDFDB['TimeUtils']['timeout'](c=>{c0();},0x3e8);};};if(!('Notification'in window)){}else if(Notification['permission']==='granted')bY();else if(Notification['permission']!=='denied')Notification['requestPermission'](function(cf){if(cf==='granted')bY();});};BDFDB['NotificationUtils']['notice']=function(cg,ch={}){if(!cg)return;var ci=document['querySelector'](BDFDB['dotCN']['layers']);if(!ci)return;var cj=BDFDB['NumberUtils']['generateId'](bF);var ck=BDFDB['DOMUtils']['create']('');ci['parentElement']['insertBefore'](ck,ci);var cl=ck['querySelector']('.notice-message');if(ch['platform'])for(let cm of ch['platform']['split']('\x20'))if(xg['noticeicon'+cm]){let cn=BDFDB['DOMUtils']['create']('');BDFDB['DOMUtils']['addClass'](cn,BDFDB['disCN']['noticeplatformicon']);BDFDB['DOMUtils']['removeClass'](cn,BDFDB['disCN']['noticeicon']);ck['insertBefore'](cn,cl);}if(ch['customicon']){let co=BDFDB['DOMUtils']['create'](ch['customicon']);let cn=BDFDB['DOMUtils']['create']('');if(co['tagName']=='span'&&!co['firstElementChild'])cn['style']['setProperty']('background','url('+ch['customicon']+')\x20center/cover\x20no-repeat');else cn['appendChild'](co);BDFDB['DOMUtils']['addClass'](cn,BDFDB['disCN']['noticeplatformicon']);BDFDB['DOMUtils']['removeClass'](cn,BDFDB['disCN']['noticeicon']);ck['insertBefore'](cn,cl);}if(ch['btn']||ch['button'])ck['appendChild'](BDFDB['DOMUtils']['create'](''));if(ch['id'])ck['id']=ch['id']['split']('\x20')['join']('');if(ch['selector'])BDFDB['DOMUtils']['addClass'](ck,ch['selector']);if(ch['css'])BDFDB['DOMUtils']['appendLocalStyle']('BDFDBcustomnotificationbar'+cj,ch['css']);if(ch['style'])ck['style']=ch['style'];if(ch['html']===!![])cl['innerHTML']=cg;else{var cq=document['createElement']('a');var cr=[];for(let cs of cg['split']('\x20')){var ct=BDFDB['StringUtils']['htmlEscape'](cs);cq['href']=cs;cr['push'](cq['host']&&cq['host']!==window['location']['host']?'':ct);}cl['innerHTML']=cr['join']('\x20');}var cu=null;if(ch['type']&&!document['querySelector'](BDFDB['dotCNS']['chatbase']+BDFDB['dotCN']['noticestreamer'])){if(cu=BDFDB['disCN']['notice'+ch['type']])BDFDB['DOMUtils']['addClass'](ck,cu);if(ch['type']=='premium'){var cv=ck['querySelector'](BDFDB['dotCN']['noticebutton']);if(cv)BDFDB['DOMUtils']['addClass'](cv,BDFDB['disCN']['noticepremiumaction']);BDFDB['DOMUtils']['addClass'](cl,BDFDB['disCN']['noticepremiumtext']);ck['insertBefore'](BDFDB['DOMUtils']['create'](''),cl);}}if(!cu){var cw=BDFDB['ColorUtils']['convert'](ch['color'],'RGBCOMP');if(cw){var cx=cw[0x0]>0xb4&&cw[0x1]>0xb4&&cw[0x2]>0xb4?'#000':'#FFF';var cy=BDFDB['ColorUtils']['convert'](cw,'HEX');var cz=cw[0x0]>0xb4&&cw[0x1]>0xb4&&cw[0x2]>0xb4?'brightness(0%)':'brightness(100%)';BDFDB['DOMUtils']['appendLocalStyle']('BDFDBcustomnotificationbarColorCorrection'+cj,'.BDFDB-notice.notice-'+cj+'{background-color:'+cy+'\x20!important;}.BDFDB-notice.notice-'+cj+'\x20.notice-message\x20{color:'+cx+'\x20!important;}.BDFDB-notice.notice-'+cj+'\x20'+BDFDB['dotCN']['noticebutton']+'\x20{color:'+cx+'\x20!important;border-color:'+BDFDB['ColorUtils']['setAlpha'](cx,0.25,'RGBA')+'\x20!important;}.BDFDB-notice.notice-'+cj+'\x20'+BDFDB['dotCN']['noticebutton']+':hover\x20{color:'+cy+'\x20!important;background-color:'+cx+'\x20!important;}.BDFDB-notice.notice-'+cj+'\x20'+BDFDB['dotCN']['noticedismiss']+'\x20{filter:'+cz+'\x20!important;}');}else BDFDB['DOMUtils']['addClass'](ck,BDFDB['disCN']['noticedefault']);}ck['style']['setProperty']('height','36px','important');ck['style']['setProperty']('min-width','70vw','important');ck['style']['setProperty']('left','unset','important');ck['style']['setProperty']('right','unset','important');let cA=(BDFDB['DOMUtils']['getWidth'](document['body']['firstElementChild'])-BDFDB['DOMUtils']['getWidth'](ck))/0x2;ck['style']['setProperty']('left',cA+'px','important');ck['style']['setProperty']('right',cA+'px','important');ck['style']['setProperty']('min-width','unset','important');ck['style']['setProperty']('width','unset','important');ck['style']['setProperty']('max-width','calc(100vw\x20-\x20'+cA*0x2+'px)','important');ck['querySelector'](BDFDB['dotCN']['noticedismiss'])['addEventListener']('click',c=>{ck['style']['setProperty']('overflow','hidden','important');ck['style']['setProperty']('height','0px','important');BDFDB['TimeUtils']['timeout'](c=>{BDFDB['ArrayUtils']['remove'](bF,cj);BDFDB['DOMUtils']['removeLocalStyle']('BDFDBcustomnotificationbar'+cj);BDFDB['DOMUtils']['removeLocalStyle']('BDFDBcustomnotificationbarColorCorrection'+cj);ck['remove']();},0x1f4);});return ck;};BDFDB['NotificationUtils']['alert']=function(cD,cE){if(typeof cD=='string'&&typeof cD=='string'&&window['BdApi']&&typeof BdApi['alert']=='function')BdApi['alert'](cD,cE);};var cF=[];BDFDB['TooltipUtils']={};BDFDB['TooltipUtils']['create']=function(cG,cH,cI={}){var cJ=document['querySelector'](BDFDB['dotCN']['appmount']+'\x20>\x20*\x20>\x20'+BDFDB['dotCN']['itemlayercontainer']);if(!cJ||typeof cH!='string'||!Node['prototype']['isPrototypeOf'](cG)||!document['contains'](cG))return null;var cK=document['querySelector']('.BDFDB-itemlayercontainer');if(!cK){cK=cJ['cloneNode']();BDFDB['DOMUtils']['addClass'](cK,'BDFDB-itemlayercontainer');cJ['parentElement']['insertBefore'](cK,cJ['nextSibling']);}var cL=BDFDB['NumberUtils']['generateId'](cF);var cM=BDFDB['DOMUtils']['create']('');cK['appendChild'](cM);var cN=cM['firstElementChild'];if(cI['id'])cN['id']=cI['id']['split']('\x20')['join']('');if(cI['selector'])BDFDB['DOMUtils']['addClass'](cN,cI['selector']);if(cI['style'])cN['style']=cI['style'];if(cI['html']===!![])cN['innerHTML']=cH;else cN['innerText']=cH;if(!cI['type']||!BDFDB['disCN']['tooltip'+cI['type']['toLowerCase']()])cI['type']='top';BDFDB['DOMUtils']['addClass'](cN,BDFDB['disCN']['tooltip'+cI['type']['toLowerCase']()]);cN['position']=cI['type']['toLowerCase']();cN['appendChild'](BDFDB['DOMUtils']['create'](''));if(cN['style']['getPropertyValue']('border-color')&&(cN['style']['getPropertyValue']('background-color')||cN['style']['getPropertyValue']('background-image')))BDFDB['DOMUtils']['addClass'](cN,'tooltip-customcolor');else if(cI['color']&&BDFDB['disCN']['tooltip'+cI['color']['toLowerCase']()])BDFDB['DOMUtils']['addClass'](cN,BDFDB['disCN']['tooltip'+cI['color']['toLowerCase']()]);else BDFDB['DOMUtils']['addClass'](cN,BDFDB['disCN']['tooltipblack']);cN['anker']=cG;if(cI['hide'])BDFDB['DOMUtils']['appendLocalStyle']('BDFDBhideOtherTooltips'+cL,'#app-mount\x20'+BDFDB['dotCN']['tooltip']+':not(.BDFDB-tooltip-'+cL+')\x20{display:\x20none\x20!important;}',cK);var cO=c=>{BDFDB['DOMUtils']['remove'](cM);};cG['addEventListener']('mouseleave',cO);var cQ=new MutationObserver(cR=>{cR['forEach'](cS=>{var cT=Array['from'](cS['removedNodes']);var cU=cT['indexOf'](cM)>-0x1;var cV=cT['indexOf'](cG)>-0x1;var cW=cT['some'](cX=>cX['contains'](cG));if(cU||cV||cW){BDFDB['ArrayUtils']['remove'](cF,cL);cQ['disconnect']();BDFDB['DOMUtils']['remove'](cM);BDFDB['DOMUtils']['removeLocalStyle']('BDFDBhideOtherTooltips'+cL,cK);BDFDB['DOMUtils']['removeLocalStyle']('BDFDBcustomTooltips'+cL,cK);if(!cK['firstElementChild'])BDFDB['DOMUtils']['remove'](cK);cG['removeEventListener']('mouseleave',cO);}});});cQ['observe'](document['body'],{'subtree':!![],'childList':!![]});BDFDB['TooltipUtils']['update'](cN);if(cI['delay']){BDFDB['DOMUtils']['toggle'](cM);BDFDB['TimeUtils']['timeout'](c=>{BDFDB['DOMUtils']['toggle'](cM);},cI['delay']);}return cM;};BDFDB['TooltipUtils']['update']=function(cZ){if(!Node['prototype']['isPrototypeOf'](cZ))return;let d0=BDFDB['DOMUtils']['getParent'](BDFDB['dotCN']['itemlayer'],cZ);if(!Node['prototype']['isPrototypeOf'](d0))return;cZ=d0['querySelector'](BDFDB['dotCN']['tooltip']);if(!Node['prototype']['isPrototypeOf'](cZ)||!Node['prototype']['isPrototypeOf'](cZ['anker'])||!cZ['position'])return;var d1=cZ['querySelector'](BDFDB['dotCN']['tooltippointer']);var d2,d3,d4=BDFDB['DOMUtils']['getRects'](cZ['anker']),d5=BDFDB['DOMUtils']['getRects'](d0),d6=BDFDB['DOMUtils']['getRects'](document['querySelector'](BDFDB['dotCN']['appmount'])),d7={'height':0xa,'width':0xa};switch(cZ['position']){case'top':d3=d4['top']-d5['height']-d7['height']+0x2;d2=d4['left']+(d4['width']-d5['width'])/0x2;break;case'bottom':d3=d4['top']+d4['height']+d7['height']-0x2;d2=d4['left']+(d4['width']-d5['width'])/0x2;break;case'left':d3=d4['top']+(d4['height']-d5['height'])/0x2;d2=d4['left']-d5['width']-d7['width']+0x2;break;case'right':d3=d4['top']+(d4['height']-d5['height'])/0x2;d2=d4['left']+d4['width']+d7['width']-0x2;break;}d0['style']['setProperty']('top',d3+'px');d0['style']['setProperty']('left',d2+'px');d1['style']['removeProperty']('margin-left');d1['style']['removeProperty']('margin-top');if(cZ['position']=='top'||cZ['position']=='bottom'){if(d2<0x0){d0['style']['setProperty']('left','5px');d1['style']['setProperty']('margin-left',d2-0xa+'px');}else{var d8=d6['width']-(d2+d5['width']);if(d8<0x0){d0['style']['setProperty']('left',d6['width']-d5['width']-0x5+'px');d1['style']['setProperty']('margin-left',-0x1*d8+'px');}}}else if(cZ['position']=='left'||cZ['position']=='right'){if(d3<0x0){d0['style']['setProperty']('top','5px');d1['style']['setProperty']('margin-top',d3-0xa+'px');}else{var d9=d6['height']-(d3+d5['height']);if(d9<0x0){d0['style']['setProperty']('top',d6['height']-d5['height']-0x5+'px');d1['style']['setProperty']('margin-top',-0x1*d9+'px');}}}};BDFDB['ObjectUtils']={};BDFDB['ObjectUtils']['is']=function(da){return da&&Object['prototype']['isPrototypeOf'](da)&&!Array['prototype']['isPrototypeOf'](da);};BDFDB['ObjectUtils']['extract']=function(db,...dc){let dd={};if(BDFDB['ObjectUtils']['is'](db))for(let de of dc['flat']()['filter'](df=>df))if(db[de])dd[de]=db[de];return dd;};BDFDB['ObjectUtils']['exclude']=function(dg,...dh){let di=Object['assign']({},dg);BDFDB['ObjectUtils']['delete'](di,...dh);return di;};BDFDB['ObjectUtils']['delete']=function(dj,...dk){if(BDFDB['ObjectUtils']['is'](dj))for(let dl of dk['flat']()['filter'](dm=>dm))delete dj[dl];};BDFDB['ObjectUtils']['sort']=function(dn,dp,dq){if(!BDFDB['ObjectUtils']['is'](dn))return{};var dr={};if(dp===undefined||!dp)for(let ds of Object['keys'](dn)['sort']())dr[ds]=dn[ds];else{let dt=[];for(let ds in dn)dt['push'](dn[ds]);dt=BDFDB['ArrayUtils']['keySort'](dt,dp,dq);for(let dv of dt)for(let ds in dn)if(BDFDB['equals'](dv,dn[ds])){dr[ds]=dv;break;}}return dr;};BDFDB['ObjectUtils']['reverse']=function(dx,dy){if(!BDFDB['ObjectUtils']['is'](dx))return{};var dz={};for(let dA of dy===undefined||!dy?Object['keys'](dx)['reverse']():Object['keys'](dx)['sort']()['reverse']())dz[dA]=dx[dA];return dz;};BDFDB['ObjectUtils']['filter']=function(dB,dC,dD=![]){if(!BDFDB['ObjectUtils']['is'](dB))return{};if(typeof dC!='function')return dB;return Object['keys'](dB)['filter'](dE=>dC(dD?dE:dB[dE]))['reduce']((dF,dG)=>(dF[dG]=dB[dG],dF),{});};BDFDB['ObjectUtils']['push']=function(dH,dI){if(BDFDB['ObjectUtils']['is'](dH))dH[Object['keys'](dH)['length']]=dI;};BDFDB['ObjectUtils']['pop']=function(dJ,dK){if(BDFDB['ObjectUtils']['is'](dJ)){let dL=Object['keys'](dJ);if(!dL['length'])return;let dK=dJ[dL[dL['length']-0x1]];delete dJ[dL[dL['length']-0x1]];return dK;}};BDFDB['ObjectUtils']['map']=function(dN,dO){if(!BDFDB['ObjectUtils']['is'](dN))return{};if(typeof dO!='string'&&typeof dO!='function')return dN;var dP={};for(let dQ in dN)if(BDFDB['ObjectUtils']['is'](dN[dQ]))dP[dQ]=typeof dO=='string'?dN[dQ][dO]:dO(dN[dQ],dQ);return dP;};BDFDB['ObjectUtils']['toArray']=function(dR){if(!BDFDB['ObjectUtils']['is'](dR))return[];return Object['entries'](dR)['map'](dS=>dS[0x1]);};BDFDB['ObjectUtils']['deepAssign']=function(dT,...dU){if(!dU['length'])return dT;var dV=dU['shift']();if(BDFDB['ObjectUtils']['is'](dT)&&BDFDB['ObjectUtils']['is'](dV)){for(var dW in dV){if(BDFDB['ObjectUtils']['is'](dV[dW])){if(!dT[dW])Object['assign'](dT,{[dW]:{}});BDFDB['ObjectUtils']['deepAssign'](dT[dW],dV[dW]);}else Object['assign'](dT,{[dW]:dV[dW]});}}return BDFDB['ObjectUtils']['deepAssign'](dT,...dU);};BDFDB['ObjectUtils']['isEmpty']=function(dX){return!BDFDB['ObjectUtils']['is'](dX)||Object['getOwnPropertyNames'](dX)['length']==0x0;};BDFDB['ArrayUtils']={};BDFDB['ArrayUtils']['is']=function(dY){return dY&&Array['isArray'](dY);};BDFDB['ArrayUtils']['keySort']=function(dZ,e0,e1){if(!BDFDB['ArrayUtils']['is'](dZ))return[];if(e0==null)return dZ;if(e1===undefined)e1=null;return dZ['sort'](function(e2,e3){var e4=e2[e0],e5=e3[e0];if(e4!==e1)return e4e5?0x1:0x0;});};BDFDB['ArrayUtils']['numSort']=function(e6){return e6['sort'](function(e7,e8){return e7e8?0x1:0x0;});};BDFDB['ArrayUtils']['remove']=function(e9,ea,eb=![]){if(!BDFDB['ArrayUtils']['is'](e9))return[];if(!e9['includes'](ea))return e9;if(!eb)e9['splice'](e9['indexOf'](ea),0x1);else while(e9['indexOf'](ea)>-0x1)e9['splice'](e9['indexOf'](ea),0x1);return e9;};BDFDB['ArrayUtils']['getAllIndexes']=function(ec,ed){if(!BDFDB['ArrayUtils']['is'](ec)&&typeof ec!='string')return[];var ee=[],ef=-0x1;while((ef=ec['indexOf'](ed,ef+0x1))!==-0x1)ee['push'](ef);return ee;};BDFDB['ArrayUtils']['removeCopies']=function(eg){if(!BDFDB['ArrayUtils']['is'](eg))return[];return[...new Set(eg)];};BDFDB['ModuleUtils']={};BDFDB['ModuleUtils']['cached']={};BDFDB['ModuleUtils']['find']=function(eh){var ei=e['getWebModuleReq']();for(let ej in ei['c'])if(ei['c']['hasOwnProperty'](ej)){var ek=ei['c'][ej]['exports'];if(ek&&(typeof ek=='object'||typeof ek=='function')&&eh(ek))return ek;if(ek&&ek['__esModule'])for(let el in ek)if(ek[el]&&(typeof ek[el]=='object'||typeof ek[el]=='function')&&eh(ek[el]))return ek[el];}};BDFDB['ModuleUtils']['findByProperties']=function(em){em=BDFDB['ArrayUtils']['is'](em)?em:Array['from'](arguments);var en=JSON['stringify'](em);if(!BDFDB['ObjectUtils']['is'](BDFDB['ModuleUtils']['cached']['prop']))BDFDB['ModuleUtils']['cached']['prop']={};if(BDFDB['ModuleUtils']['cached']['prop'][en])return BDFDB['ModuleUtils']['cached']['prop'][en];else{var eo=BDFDB['ModuleUtils']['find'](eo=>em['every'](eq=>eo[eq]!==undefined));if(eo){BDFDB['ModuleUtils']['cached']['prop'][en]=eo;return eo;}else BDFDB['LogUtils']['warn'](en+'\x20[properties]\x20not\x20found\x20in\x20WebModules');}};BDFDB['ModuleUtils']['findByName']=function(er){var es=JSON['stringify'](er);if(!BDFDB['ObjectUtils']['is'](BDFDB['ModuleUtils']['cached']['name']))BDFDB['ModuleUtils']['cached']['name']={};if(BDFDB['ModuleUtils']['cached']['name'][es])return BDFDB['ModuleUtils']['cached']['name'][es];else{var et=BDFDB['ModuleUtils']['find'](et=>et['displayName']===er);if(et){BDFDB['ModuleUtils']['cached']['name'][es]=et;return et;}else BDFDB['LogUtils']['warn'](es+'\x20[name]\x20not\x20found\x20in\x20WebModules');}};BDFDB['ModuleUtils']['findByString']=function(ev){ev=BDFDB['ArrayUtils']['is'](ev)?ev:Array['from'](arguments);var ew=JSON['stringify'](ev);if(!BDFDB['ObjectUtils']['is'](BDFDB['ModuleUtils']['cached']['string']))BDFDB['ModuleUtils']['cached']['string']={};if(BDFDB['ModuleUtils']['cached']['string'][ew])return BDFDB['ModuleUtils']['cached']['string'][ew];else{var ex=BDFDB['ModuleUtils']['find'](ex=>ev['every'](ez=>typeof ex=='function'&&ex['toString']()['indexOf'](ez)>-0x1));if(ex){BDFDB['ModuleUtils']['cached']['string'][ew]=ex;return ex;}else BDFDB['LogUtils']['warn'](ew+'\x20[string]\x20not\x20found\x20in\x20WebModules');}};BDFDB['ModuleUtils']['findByPrototypes']=function(eA){eA=BDFDB['ArrayUtils']['is'](eA)?eA:Array['from'](arguments);var eB=JSON['stringify'](eA);if(!BDFDB['ObjectUtils']['is'](BDFDB['ModuleUtils']['cached']['proto']))BDFDB['ModuleUtils']['cached']['proto']={};if(BDFDB['ModuleUtils']['cached']['proto'][eB])return BDFDB['ModuleUtils']['cached']['proto'][eB];else{var eC=BDFDB['ModuleUtils']['find'](eC=>eC['prototype']&&eA['every'](eE=>eC['prototype'][eE]!==undefined));if(eC){BDFDB['ModuleUtils']['cached']['proto'][eB]=eC;return eC;}else BDFDB['LogUtils']['warn'](eB+'\x20[prototypes]\x20not\x20found\x20in\x20WebModules');}};e['getWebModuleReq']=function(){if(!e['getWebModuleReq']['req']){const eF='BDFDB-WebModules';const eG=window['webpackJsonp']['push']([[],{[eF]:(eH,eI,eG)=>eH['exports']=eG},[[eF]]]);delete eG['m'][eF];delete eG['c'][eF];e['getWebModuleReq']['req']=eG;}return e['getWebModuleReq']['req'];};var eK={};eK['Patchtypes']=['before','instead','after'];eK['Patchmap']={'BannedCard':'BannedUser','InvitationCard':'InviteRow','InviteCard':'InviteRow','PopoutContainer':'Popout','MemberCard':'Member','WebhookCard':'Webhook'};eK['Patchfinder']={'Account':'accountinfo','App':'app','AuthWrapper':'loginscreen','BannedCard':'guildsettingsbannedcard','ChannelMember':'member','EmojiPicker':'emojipicker','FriendRow':'friendsrow','Guild':'guildouter','InstantInviteModal':'invitemodalwrapper','InvitationCard':'invitemodalinviterow','InviteCard':'guildsettingsinvitecard','PopoutContainer':'popout','PrivateChannelCall':'callcurrentcontainer','PrivateChannelsList':'dmchannelsscroller','MemberCard':'guildsettingsmembercard','NameTag':'nametag','Note':'usernote','SearchResults':'searchresultswrap','TypingUsers':'typing','UserPopout':'userpopout','V2C_ContentColumn':'contentcolumn','V2C_List':'_repolist','V2C_PluginCard':'_repoheader','V2C_ThemeCard':'_repoheader'};eK['GlobalModules']={};try{eK['GlobalModules']['V2C_ContentColumn']=V2C_ContentColumn;}catch(eL){BDFDB['LogUtils']['warn']('Could\x20not\x20find\x20global\x20Module\x20\x22V2C_ContentColumn\x22');}try{eK['GlobalModules']['V2C_List']=V2C_List;}catch(eM){BDFDB['LogUtils']['warn']('Could\x20not\x20find\x20global\x20Module\x20\x22V2C_List\x22');}try{eK['GlobalModules']['V2C_PluginCard']=V2C_PluginCard;}catch(eN){BDFDB['LogUtils']['warn']('Could\x20not\x20find\x20global\x20Module\x20\x22V2C_PluginCard\x22');}try{eK['GlobalModules']['V2C_ThemeCard']=V2C_ThemeCard;}catch(eO){BDFDB['LogUtils']['warn']('Could\x20not\x20find\x20global\x20Module\x20\x22V2C_ThemeCard\x22');}BDFDB['ModuleUtils']['patch']=function(eP,eQ,eR,eS){if(!eP||!eQ||!eR||!BDFDB['ObjectUtils']['is'](eS))return null;eS=BDFDB['ObjectUtils']['filter'](eS,eT=>eK['Patchtypes']['includes'](eT),!![]);if(BDFDB['ObjectUtils']['isEmpty'](eS))return;const eU=typeof eP==='string'?eP:eP['name'];const eV=eU['toLowerCase']();if(!eQ['BDFDBpatch'])eQ['BDFDBpatch']={};eR=[eR]['flat']()['filter'](eW=>eW);for(let eX of eR){if(!eQ[eX])eQ[eX]=c=>{};const eZ=eQ[eX];if(!eQ['BDFDBpatch'][eX]){eQ['BDFDBpatch'][eX]={};for(let f0 of eK['Patchtypes'])eQ['BDFDBpatch'][eX][f0]={};eQ['BDFDBpatch'][eX]['originalMethod']=eZ;eQ[eX]=function(){const f1={'thisObject':this,'methodArguments':arguments,'originalMethod':eZ,'originalMethodName':eX,'callOriginalMethod':c=>f1['returnValue']=f1['originalMethod']['apply'](f1['thisObject'],f1['methodArguments'])};if(window['BDFDB']&&typeof BDFDB==='object'&&BDFDB['loaded']&&eQ['BDFDBpatch'][eX]){if(!BDFDB['ObjectUtils']['isEmpty'](eQ['BDFDBpatch'][eX]['before']))for(let f3 in BDFDB['ObjectUtils']['sort'](eQ['BDFDBpatch'][eX]['before'])){BDFDB['TimeUtils']['suppress'](eQ['BDFDBpatch'][eX]['before'][f3],'\x22before\x22\x20callback\x20of\x20'+eX+'\x20in\x20'+(eQ['constructor']?eQ['constructor']['displayName']||eQ['constructor']['name']:'module'),eQ['BDFDBpatch'][eX]['before'][f3]['pluginname'])(f1);}if(BDFDB['ObjectUtils']['isEmpty'](eQ['BDFDBpatch'][eX]['instead']))BDFDB['TimeUtils']['suppress'](f1['callOriginalMethod'],'originalMethod\x20of\x20'+eX+'\x20in\x20'+(eQ['constructor']?eQ['constructor']['displayName']||eQ['constructor']['name']:'module'))();else for(let f4 in BDFDB['ObjectUtils']['sort'](eQ['BDFDBpatch'][eX]['instead'])){let f5=BDFDB['TimeUtils']['suppress'](eQ['BDFDBpatch'][eX]['instead'][f4],'\x22instead\x22\x20callback\x20of\x20'+eX+'\x20in\x20'+(eQ['constructor']?eQ['constructor']['displayName']||eQ['constructor']['name']:'module'),eQ['BDFDBpatch'][eX]['instead'][f4]['pluginname'])(f1);if(f5!==undefined)f1['returnValue']=f5;}if(!BDFDB['ObjectUtils']['isEmpty'](eQ['BDFDBpatch'][eX]['after']))for(let f6 in BDFDB['ObjectUtils']['sort'](eQ['BDFDBpatch'][eX]['after'])){let f5=BDFDB['TimeUtils']['suppress'](eQ['BDFDBpatch'][eX]['after'][f6],'\x22after\x22\x20callback\x20of\x20'+eX+'\x20in\x20'+(eQ['constructor']?eQ['constructor']['displayName']||eQ['constructor']['name']:'module'),eQ['BDFDBpatch'][eX]['after'][f6]['pluginname'])(f1);if(f5!==undefined)f1['returnValue']=f5;}}else BDFDB['TimeUtils']['suppress'](f1['callOriginalMethod'],'originalMethod\x20of\x20'+eX+'\x20in\x20'+(eQ['constructor']?eQ['constructor']['displayName']||eQ['constructor']['name']:'module'))();return eX=='render'&&f1['returnValue']===undefined?null:f1['returnValue'];};}for(let f8 in eS)if(typeof eS[f8]=='function'){eQ['BDFDBpatch'][eX][f8][eV]=eS[f8];eQ['BDFDBpatch'][eX][f8][eV]['pluginname']=eU;}}let f9=c=>{BDFDB['ModuleUtils']['unpatch'](eP,eQ,eR);};if(eP&&typeof eP=='object'){if(!BDFDB['ArrayUtils']['is'](eP['patchCancels']))eP['patchCancels']=[];eP['patchCancels']['push'](f9);}return f9;};BDFDB['ModuleUtils']['unpatch']=function(fb,fc,fd){if(!fc&&!fd){if(BDFDB['ObjectUtils']['is'](fb)&&BDFDB['ArrayUtils']['is'](fb['patchCancels'])){for(let fe of fb['patchCancels'])fe();fb['patchCancels']=[];}}else{if(!BDFDB['ObjectUtils']['is'](fc)||!fc['BDFDBpatch'])return;const ff=!fb?null:(typeof fb==='string'?fb:fb['name'])['toLowerCase']();if(fd){for(let fg of[fd]['flat']()['filter'](fh=>fh))if(fc[fg]&&fc['BDFDBpatch'][fg])fj(fg,ff);}else for(let fi of fc['BDFDBpatch'])fj(fi,ff);}function fj(fk,fl){for(let fm of eK['Patchtypes']){if(fl)delete fc['BDFDBpatch'][fk][fm][fl];else delete fc['BDFDBpatch'][fk][fm];}var fn=!![];for(let fm of eK['Patchtypes'])if(!BDFDB['ObjectUtils']['isEmpty'](fc['BDFDBpatch'][fk][fm]))fn=![];if(fn){fc[fk]=fc['BDFDBpatch'][fk]['originalMethod'];delete fc['BDFDBpatch'][fk];if(BDFDB['ObjectUtils']['isEmpty'](fc['BDFDBpatch']))delete fc['BDFDBpatch'];}}};BDFDB['ModuleUtils']['forceAllUpdates']=function(fp,fq){if(BDFDB['ObjectUtils']['is'](fp)&&BDFDB['ObjectUtils']['is'](fp['patchedModules'])){const fr=document['querySelector'](BDFDB['dotCN']['app']);const fs=document['querySelector']('#bd-settingspane-container\x20'+BDFDB['dotCN']['scrollerwrap']);if(fr){let ft=[],fu={};for(let fv in fp['patchedModules'])for(let fw in fp['patchedModules'][fv]){let fx=[fp['patchedModules'][fv][fw]]['flat']()['filter'](fy=>fy);if(fx['includes']('componentDidMount')||fx['includes']('componentDidUpdate')||fx['includes']('render')){ft['push'](fw);let fz=fw['split']('\x20_\x20_\x20')[0x0];if(!fu[fz])fu[fz]=[];fu[fz]['push'](fv);}}fq=[fq]['flat']()['filter'](fA=>fA);if(fq['length']){fq=fq['map'](fB=>fB&&eK['Patchmap'][fB]?eK['Patchmap'][fB]+'\x20_\x20_\x20'+fB:fB);ft=ft['filter'](fC=>fq['indexOf'](fC)>-0x1);}ft=BDFDB['ArrayUtils']['removeCopies'](ft);if(ft['length']){try{const fD=BDFDB['ReactUtils']['findOwner'](fr,{'name':ft,'all':!![],'noCopies':!![],'group':!![],'unlimited':!![]});const fE=BDFDB['ReactUtils']['findOwner'](fr,{'name':ft,'all':!![],'noCopies':!![],'group':!![],'unlimited':!![],'up':!![]});for(let fw in fD)for(let fG of fD[fw])e['forceInitiateProcess'](fp,fG,fw,fu[fw]);for(let fw in fE)for(let fG of fE[fw])e['forceInitiateProcess'](fp,fG,fw,fu[fw]);if(fs){const fJ=BDFDB['ReactUtils']['findOwner'](fs,{'name':ft,'all':!![],'noCopies':!![],'group':!![],'unlimited':!![]});for(let fw in fJ)for(let fG of fJ[fw])e['forceInitiateProcess'](fp,fG,fw,fu[fw]);}}catch(fM){BDFDB['LogUtils']['error']('Could\x20not\x20force\x20update\x20components!\x20'+fM,fp['name']);}}}}};e['forceInitiateProcess']=function(fN,fO,fP,fQ){if(!fN||!fO||!fP)return;let fR=[];for(let fS in fN['patchedModules'])if(fN['patchedModules'][fS][fP])fR['push'](fN['patchedModules'][fS][fP]);fR=BDFDB['ArrayUtils']['removeCopies'](fR)['flat']()['filter'](fT=>fT);if(fR['includes']('componentDidMount'))e['initiateProcess'](fN,fP,{'instance':fO,'methodname':'componentDidMount','patchtypes':fQ});if(fR['includes']('render'))BDFDB['ReactUtils']['forceUpdate'](fO);else if(fR['includes']('componentDidUpdate'))e['initiateProcess'](fN,fP,{'instance':fO,'methodname':'componentDidUpdate','patchtypes':fQ});};e['initiateProcess']=function(fU,fV,fW){if(BDFDB['ObjectUtils']['is'](fU)&&!fU['stopping']&&fW['instance']){let fX=fU['name']=='$BDFDB';if(fU['name']=='$BDFDB')fU=Bi;fV=(fV['split']('\x20_\x20_\x20')[0x1]||fV)['replace'](/[^A-z0-9]|_/g,'');fV=fV['charAt'](0x0)['toUpperCase']()+fV['slice'](0x1);if(typeof fU['process'+fV]=='function'){let fY=!fX&&fU['process'+fV]['toString']()['split']('\x0a')[0x0]['replace'](/ /g,'')['split'](',')['length']>0x1;if(fY){if(fW['methodname']=='render'){if(fW['returnvalue'])fU['process'+fV](fW['instance'],null,fW['returnvalue'],[fW['methodname']]);}else{let fZ=BDFDB['ReactUtils']['findDOMNode'](fW['instance']);if(fZ)fU['process'+fV](fW['instance'],fZ,fW['returnvalue'],[fW['methodname']]);else BDFDB['TimeUtils']['timeout'](c=>{fZ=BDFDB['ReactUtils']['findDOMNode'](fW['instance']);if(fZ)fU['process'+fV](fW['instance'],fZ,fW['returnvalue'],[fW['methodname']]);});}}else{if(fW['methodname']=='render'){if(fW['returnvalue']||fW['patchtypes']['includes']('before'))fU['process'+fV](fW);}else{fW['node']=BDFDB['ReactUtils']['findDOMNode'](fW['instance']);if(fW['node'])fU['process'+fV](fW);else BDFDB['TimeUtils']['timeout'](c=>{fW['node']=BDFDB['ReactUtils']['findDOMNode'](fW['instance']);if(fW['node'])fU['process'+fV](fW);});}}}}};e['patchPlugin']=function(g2){if(!BDFDB['ObjectUtils']['is'](g2)||!BDFDB['ObjectUtils']['is'](g2['patchedModules']))return;BDFDB['ModuleUtils']['unpatch'](g2);for(let g3 in g2['patchedModules'])for(let g4 in g2['patchedModules'][g3]){if(eK['GlobalModules'][g4]&&typeof eK['GlobalModules'][g4]=='function')g8(eK['GlobalModules'][g4],g4,g3);else{var g5=eK['Patchmap'][g4];var g6=eK['Patchfinder'][g4['split']('\x20_\x20_\x20')[0x1]||g4];var g7=g5?g5+'\x20_\x20_\x20'+g4:g4;if(g5){g2['patchedModules'][g3][g7]=g2['patchedModules'][g3][g4];delete g2['patchedModules'][g3][g4];}if(!g6)g8(BDFDB['ModuleUtils']['findByName'](g7['split']('\x20_\x20_\x20')[0x0]),g7,g3);else if(xg[g6])gf(g6,g7,g3);}}function g8(g9,g4,g3){if(g9){var gc=g4['split']('\x20_\x20_\x20')[0x0];g9=g9['_reactInternalFiber']&&g9['_reactInternalFiber']['type']?g9['_reactInternalFiber']['type']:g9;g9=g9['displayName']==gc||g9['name']==gc?g9:BDFDB['ReactUtils']['findOwner'](g9,{'name':gc,'up':!![]});if(g9){g9=g9['_reactInternalFiber']&&g9['_reactInternalFiber']['type']?g9['_reactInternalFiber']['type']:g9;let gd={};gd[g3]=ge=>{if(window['BDFDB']&&typeof BDFDB==='object'&&BDFDB['loaded'])e['initiateProcess'](g2,g4,{'instance':ge['thisObject'],'returnvalue':ge['returnValue'],'methodname':ge['originalMethodName'],'patchtypes':[g3]});};BDFDB['ModuleUtils']['patch'](g2,g9['prototype'],g2['patchedModules'][g3][g4],gd);}}}function gf(g6,g4,g3){const gj=document['querySelector'](BDFDB['dotCN']['app']),gk=document['querySelector']('#bd-settingspane-container\x20'+BDFDB['dotCN']['scrollerwrap']);var gl=![];if(gj){var gm=BDFDB['ReactUtils']['findOwner'](gj,{'name':g4,'unlimited':!![]})||BDFDB['ReactUtils']['findOwner'](gj,{'name':g4,'unlimited':!![],'up':!![]});if(gm){gl=!![];g8(gm,g4,g3);}}if(!gl&&gk){var gn=BDFDB['ReactUtils']['findOwner'](gk,{'name':g4,'unlimited':!![]});if(gn){gl=!![];g8(gn,g4,g3);}}if(!gl){let go=![],gp=BDFDB['disCN'][g6],gq=BDFDB['dotCN'][g6];let gr=new MutationObserver(gs=>{gs['forEach'](gt=>{gt['addedNodes']['forEach'](gu=>{if(go||!gu||!gu['tagName'])return;var gv=null;if((gv=BDFDB['DOMUtils']['containsClass'](gu,gp)?gu:gu['querySelector'](gq))!=null){var gw=BDFDB['ReactUtils']['getInstance'](gv);if(gx(gw,g4)){go=!![];gr['disconnect']();g8(gw,g4,g3);BDFDB['ModuleUtils']['forceAllUpdates'](g2,g4);}}});});});BDFDB['ObserverUtils']['connect'](g2,BDFDB['dotCN']['appmount'],{'name':'checkForInstanceObserver','instance':gr,'multi':!![]},{'childList':!![],'subtree':!![]});}}function gx(gy,gz){if(!gy)return![];gy=gy['_reactInternalFiber']&&gy['_reactInternalFiber']['type']?gy['_reactInternalFiber']['type']:gy;gy=gy['displayName']==gz||gy['name']==gz?gy:BDFDB['ReactUtils']['findOwner'](gy,{'name':gz,'up':!![]});return!!gy;}};var gA=['ChannelContextMenu','DeveloperContextMenu','GuildContextMenu','GuildRoleContextMenu','MessageContextMenu','NativeContextMenu','ScreenshareContextMenu','UserContextMenu','UserSettingsCogContextMenu'];var gB=['MessageOptionPopout'];var gC=['ApplicationContextMenu','GroupDMContextMenu'];var gD={};for(let gE of gC)gD[gE]={'query':[],'module':null};e['addContextListeners']=gF=>{if(!BDFDB['ObjectUtils']['is'](gF))return;for(let gG of gA)if(typeof gF['on'+gG]==='function')e['patchContextMenuPlugin'](gF,gG,BDFDB['ModuleUtils']['findByName'](gG));for(let gH of gB)if(typeof gF['on'+gH]==='function')e['patchPopoutPlugin'](gF,gH,BDFDB['ModuleUtils']['findByName'](gH));for(let gI of gC)if(typeof gF['on'+gI]==='function'){if(gD[gI]['module'])e['patchContextMenuPlugin'](gF,gI,gD[gI]['module']);else gD[gI]['query']['push'](gF);}};e['patchContextMenuPlugin']=(gJ,gK,gL)=>{if(gL&&gL['prototype']){let gM=gJ['on'+gK]['toString']()['split']('\x0a')[0x0]['replace'](/ /g,'')['split'](',')['length']>0x1;if(gM){BDFDB['ModuleUtils']['patch'](gJ,gL['prototype'],'render',{'after':gN=>{let gO=gN['thisObject'],gP=BDFDB['ReactUtils']['findDOMNode'](gN['thisObject']),gQ=gN['returnValue'];if(gO&&gP&&gQ&&typeof gJ['on'+gK]==='function')gJ['on'+gK](gO,gP,gQ);}});}else{BDFDB['ModuleUtils']['patch'](gJ,gL['prototype'],'render',{'after':gR=>{if(gR['thisObject']&&gR['returnValue']&&typeof gJ['on'+gK]==='function')gJ['on'+gK]({'instance':gR['thisObject'],'returnvalue':gR['returnValue'],'methodname':'render'});}});}}};e['patchPopoutPlugin']=(gS,gT,gU)=>{if(gU&&gU['prototype']){let gV=gS['on'+gT]['toString']()['split']('\x0a')[0x0]['replace'](/ /g,'')['split'](',')['length']>0x1;if(gV){BDFDB['ModuleUtils']['patch'](gS,gU['prototype'],'render',{'after':gW=>{let gX=gW['thisObject'],gY=BDFDB['ReactUtils']['findDOMNode'](gW['thisObject']),gZ=gW['returnValue'];if(gX&&gY&&gZ&&typeof gS['on'+gT]==='function'){gS['on'+gT](gX,gY,gZ);if(!gX['BDFDBforceUpdateTimeout'])BDFDB['ReactUtils']['forceUpdate'](gX);}}});}else{BDFDB['ModuleUtils']['patch'](gS,gU['prototype'],'render',{'after':h0=>{if(h0['thisObject']&&h0['returnValue']&&typeof gS['on'+gT]==='function')gS['on'+gT]({'instance':h0['thisObject'],'returnvalue':h0['returnValue'],'methodname':'render'});}});}}};e['patchContextMenuLib']=(h1,h2)=>{if(h1&&h1['prototype']){BDFDB['ModuleUtils']['patch'](BDFDB,h1['prototype'],'componentDidMount',{'after':h3=>{if(!h3['thisObject']['BDFDBforceRenderTimeout']&&typeof h3['thisObject']['render']=='function')h3['thisObject']['render']();}});BDFDB['ModuleUtils']['patch'](BDFDB,h1['prototype'],'componentDidUpdate',{'after':h4=>{var h5=BDFDB['ReactUtils']['findDOMNode'](h4['thisObject']);if(h5){const h6=BDFDB['ReactUtils']['getValue'](h4,'thisObject._reactInternalFiber.stateNode.props.onHeightUpdate');const h7=BDFDB['DOMUtils']['getRects'](h5),h8=BDFDB['DOMUtils']['getRects'](document['querySelector'](BDFDB['dotCN']['appmount']));if(h6&&h7['top']+h7['height']>h8['height'])h6();}}});BDFDB['ModuleUtils']['patch'](BDFDB,h1['prototype'],'render',{'after':h9=>{if(h9['thisObject']['props']['BDFDBcontextMenu']&&h9['thisObject']['props']['children']&&h9['returnValue']&&h9['returnValue']['props']){h9['returnValue']['props']['children']=h9['thisObject']['props']['children'];delete h9['thisObject']['props']['value'];delete h9['thisObject']['props']['children'];delete h9['thisObject']['props']['BDFDBcontextMenu'];}if(BDFDB['ReactUtils']['findDOMNode'](h9['thisObject'])){h9['thisObject']['BDFDBforceRenderTimeout']=!![];BDFDB['TimeUtils']['timeout'](c=>{delete h9['thisObject']['BDFDBforceRenderTimeout'];},0x3e8);}if(h2){let hb=BDFDB['ReactUtils']['getValue'](h9,'thisObject._reactInternalFiber.child.type');if(hb&&hb['displayName']&&gD[hb['displayName']]&&!gD[hb['displayName']]['module']){gD[hb['displayName']]['module']=hb;e['patchContextMenuLib'](hb,![]);while(gD[hb['displayName']]['query']['length']){e['patchContextMenuPlugin'](gD[hb['displayName']]['query']['pop'](),hb['displayName'],hb);}}}}});}};e['patchPopoutLib']=(hc,hd)=>{if(hc&&hc['prototype']){BDFDB['ModuleUtils']['patch'](BDFDB,hc['prototype'],'componentDidMount',{'after':he=>{if(!he['thisObject']['BDFDBforceRenderTimeout']&&!he['thisObject']['BDFDBforceUpdateTimeout']&&typeof he['thisObject']['render']=='function')he['thisObject']['render']();}});BDFDB['ModuleUtils']['patch'](BDFDB,hc['prototype'],'componentDidUpdate',{'after':hf=>{const hg=BDFDB['ReactUtils']['getValue'](hf,'thisObject._reactInternalFiber.return.return.return.stateNode.updateOffsets');if(hg)hg();hf['thisObject']['BDFDBforceUpdateTimeout']=!![];BDFDB['TimeUtils']['timeout'](c=>{delete hf['thisObject']['BDFDBforceUpdateTimeout'];},0x3e8);}});BDFDB['ModuleUtils']['patch'](BDFDB,hc['prototype'],'render',{'after':hi=>{if(BDFDB['ReactUtils']['findDOMNode'](hi['thisObject'])){hi['thisObject']['BDFDBforceRenderTimeout']=!![];BDFDB['TimeUtils']['timeout'](c=>{delete hi['thisObject']['BDFDBforceRenderTimeout'];},0x3e8);}if(hi['thisObject']['props']['message']&&!hi['thisObject']['props']['target']){const hk=document['querySelector'](BDFDB['dotCN']['messages']);if(hk)for(let hl of BDFDB['ReactUtils']['findOwner'](hk,{'name':'Message','all':!![],'noCopies':!![],'unlimited':!![]})){if(hi['thisObject']['props']['message']['id']==hl['props']['message']['id']){target=BDFDB['ReactUtils']['findDOMNode'](hl);if(target)hi['thisObject']['props']['target']=target;break;}}}}});}};BDFDB['DiscordConstants']=BDFDB['ModuleUtils']['findByProperties']('Permissions','ActivityTypes');var hm={};hm['Channel']=BDFDB['ModuleUtils']['findByPrototypes']('getRecipientId','getTitleIcon','getGuildId');hm['Guild']=BDFDB['ModuleUtils']['findByPrototypes']('getIconURL','getMaxEmojiSlots','getRole');hm['Message']=BDFDB['ModuleUtils']['findByPrototypes']('getReaction','getAuthorName','getChannelId');hm['Timestamp']=BDFDB['ModuleUtils']['findByPrototypes']('add','dayOfYear','hasAlignedHourOffset');hm['User']=BDFDB['ModuleUtils']['findByPrototypes']('hasFlag','isLocalBot','isClaimed');BDFDB['DiscordObjects']=Object['assign']({},hm);var hn={};for(let ho of['child_process','electron','fs','path','process','request']){try{hn[ho]=require(ho);}catch(hp){}}BDFDB['LibraryRequires']=Object['assign']({},hn);var hq={};hq['AckUtils']=BDFDB['ModuleUtils']['findByProperties']('localAck','bulkAck');hq['APIUtils']=BDFDB['ModuleUtils']['findByProperties']('getAPIBaseURL');hq['AnimationUtils']=BDFDB['ModuleUtils']['findByProperties']('spring','decay');hq['BadgeUtils']=BDFDB['ModuleUtils']['findByProperties']('getBadgeCountString','getBadgeWidthForValue');hq['CategoryCollapseStore']=BDFDB['ModuleUtils']['findByProperties']('getCollapsedCategories','isCollapsed');hq['CategoryCollapseUtils']=BDFDB['ModuleUtils']['findByProperties']('categoryCollapse','categoryCollapseAll');hq['ChannelStore']=BDFDB['ModuleUtils']['findByProperties']('getChannel','getChannels');hq['ColorUtils']=BDFDB['ModuleUtils']['findByProperties']('hex2int','hex2rgb');hq['ContextMenuUtils']=BDFDB['ModuleUtils']['findByProperties']('closeContextMenu','openContextMenu');hq['CopyLinkUtils']=BDFDB['ModuleUtils']['findByProperties']('SUPPORTS_COPY','copy');hq['CurrentUserStore']=BDFDB['ModuleUtils']['findByProperties']('getCurrentUser');hq['DirectMessageUtils']=BDFDB['ModuleUtils']['findByProperties']('addRecipient','openPrivateChannel');hq['FriendUtils']=BDFDB['ModuleUtils']['findByProperties']('getFriendIDs','getRelationships');hq['FolderStore']=BDFDB['ModuleUtils']['findByProperties']('getGuildFolderById','getFlattenedGuilds');hq['FolderUtils']=BDFDB['ModuleUtils']['findByProperties']('isFolderExpanded','getExpandedFolders');hq['GuildBoostUtils']=BDFDB['ModuleUtils']['findByProperties']('getTierName','getUserLevel');hq['GuildChannelStore']=BDFDB['ModuleUtils']['findByProperties']('getChannels','getDefaultChannel');hq['GuildEmojiStore']=BDFDB['ModuleUtils']['findByProperties']('getGuildEmoji','getDisambiguatedEmojiContext');hq['GuildSettingsUtils']=BDFDB['ModuleUtils']['findByProperties']('updateChannelOverrideSettings','updateNotificationSettings');hq['GuildStore']=BDFDB['ModuleUtils']['findByProperties']('getGuild','getGuilds');hq['GuildUtils']=BDFDB['ModuleUtils']['findByProperties']('transitionToGuildSync');hq['HistoryUtils']=BDFDB['ModuleUtils']['findByProperties']('transitionTo','replaceWith','getHistory');;hq['IconUtils']=BDFDB['ModuleUtils']['findByProperties']('getGuildIconURL','getGuildBannerURL');hq['InviteUtils']=BDFDB['ModuleUtils']['findByProperties']('acceptInvite','createInvite');hq['KeyCodeUtils']=Object['assign']({},BDFDB['ModuleUtils']['findByProperties']('toCombo','keyToCode'));hq['KeyCodeUtils']['getString']=hr=>{return hq['KeyCodeUtils']['toString']([hr]['flat']()['filter'](hs=>hs)['map'](ht=>[BDFDB['DiscordConstants']['KeyboardDeviceTypes']['KEYBOARD_KEY'],ht,BDFDB['DiscordConstants']['KeyboardEnvs']['BROWSER']]),!![]);};hq['KeyEvents']=BDFDB['ModuleUtils']['findByProperties']('aliases','code','codes');hq['LanguageStore']=BDFDB['ModuleUtils']['findByProperties']('getLanguages','Messages');hq['LastChannelStore']=BDFDB['ModuleUtils']['findByProperties']('getLastSelectedChannelId');hq['LastGuildStore']=BDFDB['ModuleUtils']['findByProperties']('getLastSelectedGuildId');hq['LoginUtils']=BDFDB['ModuleUtils']['findByProperties']('login','logout');hq['MemberStore']=BDFDB['ModuleUtils']['findByProperties']('getMember','getMembers');hq['MentionUtils']=BDFDB['ModuleUtils']['findByProperties']('getMentionCount','getMentionCounts');hq['MessageCreationUtils']=BDFDB['ModuleUtils']['findByProperties']('parse','isMentioned');hq['MessagePinUtils']=BDFDB['ModuleUtils']['findByProperties']('pinMessage','unpinMessage');hq['MessageStore']=BDFDB['ModuleUtils']['findByProperties']('getMessage','getMessages');hq['MessageUtils']=BDFDB['ModuleUtils']['findByProperties']('receiveMessage','editMessage');hq['ModalUtils']=BDFDB['ModuleUtils']['findByProperties']('openModal','registerModalDispatch');hq['MutedUtils']=BDFDB['ModuleUtils']['findByProperties']('isGuildOrCategoryOrChannelMuted');hq['NoteStore']=BDFDB['ModuleUtils']['findByProperties']('getNotes','getNote');hq['NotificationSettingsUtils']=BDFDB['ModuleUtils']['findByProperties']('setDesktopType','setTTSType');hq['NotificationSettingsStore']=BDFDB['ModuleUtils']['findByProperties']('getDesktopType','getTTSType');hq['PlatformUtils']=BDFDB['ModuleUtils']['findByProperties']('isWindows','isLinux');hq['PermissionUtils']=BDFDB['ModuleUtils']['findByProperties']('getChannelPermissions','canUser');hq['PermissionRoleUtils']=BDFDB['ModuleUtils']['findByProperties']('getHighestRole','can');hq['ReactionUtils']=BDFDB['ModuleUtils']['findByProperties']('addReaction','removeReaction');hq['SearchPageUtils']=BDFDB['ModuleUtils']['findByProperties']('searchNextPage','searchPreviousPage');hq['SelectChannelUtils']=BDFDB['ModuleUtils']['findByProperties']('selectChannel','selectPrivateChannel');hq['SettingsUtils']=BDFDB['ModuleUtils']['findByProperties']('updateRemoteSettings','updateLocalSettings');hq['SoundUtils']=BDFDB['ModuleUtils']['findByProperties']('playSound','createSound');hq['SpellCheckUtils']=BDFDB['ModuleUtils']['findByProperties']('learnWord','toggleSpellcheck');hq['StatusMetaUtils']=BDFDB['ModuleUtils']['findByProperties']('getApplicationActivity','getStatus');hq['StreamUtils']=BDFDB['ModuleUtils']['findByProperties']('getStreamForUser','getActiveStream');hq['UnreadGuildUtils']=BDFDB['ModuleUtils']['findByProperties']('hasUnread','getUnreadGuilds');hq['UnreadChannelUtils']=BDFDB['ModuleUtils']['findByProperties']('getUnreadCount','getOldestUnreadMessageId');hq['UploadUtils']=BDFDB['ModuleUtils']['findByProperties']('upload','instantBatchUpload');hq['UserStore']=BDFDB['ModuleUtils']['findByProperties']('getUser','getUsers');hq['VoiceUtils']=BDFDB['ModuleUtils']['findByProperties']('getAllVoiceStates','getVoiceStatesForChannel');hq['ZoomUtils']=BDFDB['ModuleUtils']['findByProperties']('setZoom','setFontSize');BDFDB['LibraryModules']=Object['assign']({},hq);hq['React']=BDFDB['ModuleUtils']['findByProperties']('createElement','cloneElement');hq['ReactDOM']=BDFDB['ModuleUtils']['findByProperties']('render','findDOMNode');BDFDB['ReactUtils']=Object['assign']({},hq['React'],hq['ReactDOM']);BDFDB['ReactUtils']['createElement']=function(hu,hv){if(hu&&hu['defaultProps'])for(let hw in hu['defaultProps'])if(hv[hw]==null)hv[hw]=hu['defaultProps'][hw];try{return hq['React']['createElement'](hu||'div',hv||{})||null;}catch(hx){BDFDB['LogUtils']['error']('Fatal\x20Error:\x20Could\x20not\x20create\x20react\x20element!\x20'+hx);}return null;};BDFDB['ReactUtils']['elementToReact']=function(hy){if(BDFDB['ReactUtils']['isValidElement'](hy))return hy;else if(!Node['prototype']['isPrototypeOf'](hy))return null;else if(hy['nodeType']==Node['TEXT_NODE'])return hy['nodeValue'];let hz={},hA={};for(let hB of hy['attributes'])hz[hB['name']]=hB['value'];if(hy['attributes']['style'])hz['style']=BDFDB['ObjectUtils']['filter'](hy['style'],hC=>hy['style'][hC]&&isNaN(parseInt(hC)),!![]);hz['children']=[];if(hy['style']&&hy['style']['cssText'])for(let hD of hy['style']['cssText']['split'](';'))if(hD['endsWith']('!important')){let hE=hD['split'](':')[0x0];let hF=hE['replace'](/-([a-z]?)/g,(hG,hH)=>hH['toUpperCase']());if(hz['style'][hF]!=null)hA[hE]=hz['style'][hF];}if(Object['keys'](hA)['length'])hz['ref']=hI=>{let hJ=BDFDB['ReactUtils']['findDOMNode'](hI);if(hJ)for(let hK in hA)hJ['style']['setProperty'](hK,hA[hK],'important');};for(let hL of hy['childNodes'])hz['children']['push'](BDFDB['ReactUtils']['elementToReact'](hL));return BDFDB['ReactUtils']['createElement'](hy['tagName'],hz);};BDFDB['ReactUtils']['findDOMNode']=function(hM){if(Node['prototype']['isPrototypeOf'](hM))return hM;if(!hM||!hM['updater']||typeof hM['updater']['isMounted']!=='function'||!hM['updater']['isMounted'](hM))return null;var hN=hq['ReactDOM']['findDOMNode'](hM)||BDFDB['ReactUtils']['getValue'](hM,'child.stateNode');return Node['prototype']['isPrototypeOf'](hN)?hN:null;};BDFDB['ReactUtils']['childrenToArray']=function(hO){if(hO&&hO['props']&&hO['props']['children']&&!BDFDB['ArrayUtils']['is'](hO['props']['children'])){var hP=hO['props']['children'];hO['props']['children']=[];hO['props']['children']['push'](hP);}return hO['props']['children'];};BDFDB['ReactUtils']['findChildren']=function(hQ,hR){if(!hQ||!BDFDB['ObjectUtils']['is'](hR)||!hR['name']&&!hR['key']&&!hR['props'])return[null,-0x1];var hS=Node['prototype']['isPrototypeOf'](hQ)?BDFDB['ReactUtils']['getInstance'](hQ):hQ;if(!BDFDB['ObjectUtils']['is'](hS)&&!BDFDB['ArrayUtils']['is'](hS))return[null,-0x1];hR['name']=hR['name']&&[hR['name']]['flat']()['filter'](hT=>hT);hR['key']=hR['key']&&[hR['key']]['flat']()['filter'](hU=>hU);hR['props']=hR['props']&&[hR['props']]['flat']()['filter'](hV=>hV);var hW=firstarray=hS;while(!BDFDB['ArrayUtils']['is'](firstarray)&&firstarray['props']&&firstarray['props']['children'])firstarray=firstarray['props']['children'];if(!BDFDB['ArrayUtils']['is'](firstarray)){if(hW&&hW['props']){hW['props']['children']=[hW['props']['children']];firstarray=hW['props']['children'];}else firstarray=[];}return hX(hS);function hX(hY){var hZ=[firstarray,-0x1];if(!hY)return hZ;if(!BDFDB['ArrayUtils']['is'](hY)){if(i3(hY))hZ=i1(hY);else if(hY['props']&&hY['props']['children']){hW=hY;hZ=hX(hY['props']['children']);}}else{for(let i0=0x0;hZ[0x1]==-0x1&&i0(hS['type']['displayName']||hS['type']['name'])===i6)||hR['key']&&hR['key']['some'](i7=>hS['key']==i7)||i5&&hR['props']&&hR['props']['every'](i8=>BDFDB['ArrayUtils']['is'](i8)?BDFDB['ArrayUtils']['is'](i8[0x1])?i8[0x1]['some'](i9=>ia(i5,i8[0x0],i9)):ia(i5,i8[0x0],i8[0x1]):i5[i8]!==undefined);}function ia(ib,ic,id){return ic!=null&&ib[ic]!=null&&id!=null&&(ic=='className'?('\x20'+ib[ic]+'\x20')['indexOf']('\x20'+id+'\x20')>-0x1:BDFDB['equals'](ib[ic],id));}};BDFDB['ReactUtils']['findOwner']=function(ie,ig){if(!BDFDB['ObjectUtils']['is'](ig))return null;if(!ie||!ig['name']&&!ig['key']&&!ig['props'])return ig['all']?ig['group']?{}:[]:null;var ih=Node['prototype']['isPrototypeOf'](ie)?BDFDB['ReactUtils']['getInstance'](ie):ie;if(!BDFDB['ObjectUtils']['is'](ih))return ig['all']?ig['group']?{}:[]:null;ig['name']=ig['name']&&[ig['name']]['flat']()['filter'](ii=>ii);ig['key']=ig['key']&&[ig['key']]['flat']()['filter'](ij=>ij);ig['props']=ig['props']&&[ig['props']]['flat']()['filter'](ik=>ik);var il=-0x1;var im=performance['now']();var io=ig['unlimited']?0x3b9ac9ff:ig['depth']===undefined?0x1e:ig['depth'];var ip=ig['unlimited']?0x3b9ac9ff:ig['time']===undefined?0x96:ig['time'];var iq=ig['up']?{'return':!![],'sibling':!![],'_reactInternalFiber':!![]}:{'child':!![],'sibling':!![],'_reactInternalFiber':!![]};var ir=ig['group']?{}:[];var is=iv(ih);if(ig['all']){for(let it in ir){if(ig['group'])for(let iu in ir[it])delete ir[it][iu]['BDFDBreactSearch'];else delete ir[it]['BDFDBreactSearch'];}return ir;}else return is;function iv(ih){il++;var ix=undefined;if(ih&&!Node['prototype']['isPrototypeOf'](ih)&&!BDFDB['ReactUtils']['getInstance'](ih)&&il(ih['type']['displayName']||ih['type']['name'])===iz['split']('\x20_\x20_\x20')[0x0])||ig['key']&&ig['key']['some'](iA=>ih['key']==iA)||iy&&ig['props']&&ig['props']['every'](iB=>BDFDB['ArrayUtils']['is'](iB)?BDFDB['ArrayUtils']['is'](iB[0x1])?iB[0x1]['some'](iC=>BDFDB['equals'](iy[iB[0x0]],iC)):BDFDB['equals'](iy[iB[0x0]],iB[0x1]):iy[iB]!==undefined))){if(ig['all']===undefined||!ig['all'])ix=ih['stateNode'];else if(ig['all']){if(ig['noCopies']===undefined||!ig['noCopies']||ig['noCopies']&&!ih['stateNode']['BDFDBreactSearch']){ih['stateNode']['BDFDBreactSearch']=!![];if(ig['group']){if(ig['name']&&ih['type']&&(ih['type']['displayName']||ih['type']['name'])){var iD='Default';for(let iE of ig['name'])if(ih['type']['displayName']===iE['split']('\x20_\x20_\x20')[0x0]||ih['type']['name']===iE['split']('\x20_\x20_\x20')[0x0]){iD=iE;break;}if(typeof ir[iD]=='undefined')ir[iD]=[];ir[iD]['push'](ih['stateNode']);}}else ir['push'](ih['stateNode']);}}}if(ix===undefined){let iF=Object['getOwnPropertyNames'](ih);for(let iG=0x0;ix===undefined&&iGiL);iJ['key']=iJ['key']&&[iJ['key']]['flat']()['filter'](iM=>iM);var iN=-0x1;var iO=performance['now']();var iP=iJ['unlimited']?0x3b9ac9ff:iJ['depth']===undefined?0x1e:iJ['depth'];var iQ=iJ['unlimited']?0x3b9ac9ff:iJ['time']===undefined?0x96:iJ['time'];var iR=iJ['up']?{'return':!![],'sibling':!![],'_reactInternalFiber':!![]}:{'child':!![],'sibling':!![],'_reactInternalFiber':!![]};return iS(iK);function iS(iK){iN++;var iU=undefined;if(iK&&!Node['prototype']['isPrototypeOf'](iK)&&!BDFDB['ReactUtils']['getInstance'](iK)&&iN(iK['type']['displayName']||iK['type']['name'])===iV['split']('\x20_\x20_\x20')[0x0])||iJ['key']&&iJ['key']['some'](iW=>iK['key']==iW)))iU=iK['memoizedProps'];if(iU===undefined){let iX=Object['getOwnPropertyNames'](iK);for(let iY=0x0;iU===undefined&&iYjn))if(jm['updater']&&typeof jm['updater']['isMounted']=='function'&&jm['updater']['isMounted'](jm))jm['forceUpdate']();};BDFDB['ReactUtils']['getInstance']=function(jo){if(!BDFDB['ObjectUtils']['is'](jo))return null;return jo[Object['keys'](jo)['find'](jp=>jp['startsWith']('__reactInternalInstance'))];};BDFDB['ReactUtils']['getValue']=function(jq,jr){if(!jq||!jr)return null;var js=Node['prototype']['isPrototypeOf'](jq)?BDFDB['ReactUtils']['getInstance'](jq):jq;if(!BDFDB['ObjectUtils']['is'](js))return null;var jt=js,ju=jr['split']('.')['filter'](jv=>jv);for(value of ju){if(!jt)return null;jt=jt[value];}return jt;};e['setDefaultProps']=function(jw,jx){if(BDFDB['ObjectUtils']['is'](jw))jw['defaultProps']=Object['assign']({},jw['defaultProps'],jx);};BDFDB['equals']=function(jy,jz,jA){var jB=-0x1;if(jA===undefined||typeof jA!=='boolean')jA=![];return jC(jy,jz);function jC(jD,jE){jB++;var jF=!![];if(jB>0x3e8)jF=null;else{if(typeof jD!==typeof jE)jF=![];else if(typeof jD==='undefined')jF=!![];else if(typeof jD==='symbol')jF=!![];else if(typeof jD==='boolean')jF=jD==jE;else if(typeof jD==='string')jF=jD==jE;else if(typeof jD==='number'){if(isNaN(jD)||isNaN(jE))jF=isNaN(jD)==isNaN(jE);else jF=jD==jE;}else if(!jD&&!jE)jF=!![];else if(!jD||!jE)jF=![];else if(typeof jD==='function'||typeof jD==='object'){var jG=Object['getOwnPropertyNames'](jD);var jH=Object['getOwnPropertyNames'](jE);if(jG['length']!==jH['length'])jF=![];else for(let jI=0x0;jF===!![]&&jI0x0))ki['push'](kj);}return ki;};BDFDB['GuildUtils']['getPinged']=function(kl){var km=[];for(let kn of kl===undefined||!BDFDB['ArrayUtils']['is'](kl)?BDFDB['GuildUtils']['getAll']():kl){if(!kn)return null;let ko=Node['prototype']['isPrototypeOf'](kn)?BDFDB['GuildUtils']['getId'](kn):typeof kn=='object'?kn['id']:kn;ko=typeof ko=='number'?ko['toFixed']():ko;if(ko&&hq['MentionUtils']['getMentionCount'](ko)>0x0)km['push'](kn);}return km;};BDFDB['GuildUtils']['getMuted']=function(kp){var kq=[];for(let kr of kp===undefined||!BDFDB['ArrayUtils']['is'](kp)?BDFDB['GuildUtils']['getAll']():kp){if(!kr)return null;let ks=Node['prototype']['isPrototypeOf'](kr)?BDFDB['GuildUtils']['getId'](kr):typeof kr=='object'?kr['id']:kr;ks=typeof ks=='number'?ks['toFixed']():ks;if(ks&&hq['MutedUtils']['isGuildOrCategoryOrChannelMuted'](ks))kq['push'](kr);}return kq;};BDFDB['GuildUtils']['getSelected']=function(){var kt=hq['GuildStore']['getGuild'](hq['LastGuildStore']['getGuildId']());if(kt)return BDFDB['GuildUtils']['getData'](kt['id'])||Object['assign'](new kt['constructor'](kt),{'div':null,'instance':null});else return null;};BDFDB['GuildUtils']['createCopy']=function(ku,kv={'pill':![],'hover':![],'click':![],'menu':![],'size':null}){let kw=typeof ku=='object'?ku['id']:ku;let kx=kw?hq['GuildStore']['getGuild'](kw):null;if(kx){let ky=hq['LastGuildStore']['getGuildId']()==kx['id'];let kz=hq['UnreadGuildUtils']['hasUnread'](kx['id']);let kA=BDFDB['DOMUtils']['create']('');let kB=kA['querySelector'](BDFDB['dotCN']['guildcontainer']);let kC=kA['querySelector'](BDFDB['dotCN']['guildpillitem']);BDFDB['DOMUtils']['toggle'](kC['parentElement'],kv['pill']);if(kv['pill']){kC['style']['setProperty']('opacity',ky?0x1:kz?0.7:0x0);kC['style']['setProperty']('height',ky?'40px':'8px');kC['style']['setProperty']('transform','translate3d(0px,\x200px,\x200px)');BDFDB['DOMUtils']['toggleClass'](kA,BDFDB['disCN']['_bdguildselected'],ky);BDFDB['DOMUtils']['toggleClass'](kA,BDFDB['disCN']['_bdguildunread'],kz);BDFDB['DOMUtils']['toggleClass'](kC,BDFDB['disCN']['_bdguildunread'],kz);}if(kv['hover']){let kD=kA['querySelector'](BDFDB['dotCN']['guildiconwrapper']);let kE=kC['style']['getPropertyValue']('opacity')!=0x0;let kF=new hq['AnimationUtils']['Value'](0x0);kF['interpolate']({'inputRange':[0x0,0x1],'outputRange':[0x32,0x1e]})['addListener'](kG=>{kB['style']['setProperty']('border-radius',kG['value']+'%');});let kH=new hq['AnimationUtils']['Value'](0x0);kH['interpolate']({'inputRange':[0x0,0x1],'outputRange':[0x8,0x14]})['addListener'](kI=>{kC['style']['setProperty']('height',kI['value']+'px');});let kJ=new hq['AnimationUtils']['Value'](0x0);kJ['interpolate']({'inputRange':[0x0,0x1],'outputRange':[0x0,0.7]})['addListener'](kK=>{kC['style']['setProperty']('opacity',''+kK['value']);});let kL=kM=>{hq['AnimationUtils']['parallel']([hq['AnimationUtils']['timing'](kF,{'toValue':kM,'duration':0xc8}),hq['AnimationUtils']['spring'](kH,{'toValue':kM,'friction':0x5})])['start']();};let kN=kO=>{hq['AnimationUtils']['parallel']([hq['AnimationUtils']['timing'](kJ,{'toValue':kO,'duration':0xc8})])['start']();};kB['addEventListener']('mouseenter',c=>{kE=kC['style']['getPropertyValue']('opacity')!=0x0;if(hq['LastGuildStore']['getGuildId']()!=kx['id']){kL(0x1);if(!kE)kN(0x1);}});kB['addEventListener']('mouseleave',c=>{if(hq['LastGuildStore']['getGuildId']()!=kx['id']){kL(0x0);if(!kE)kN(0x0);}});}if(kv['click'])kB['addEventListener']('click',kR=>{BDFDB['ListenerUtils']['stopEvent'](kR);hq['GuildUtils']['transitionToGuildSync'](kx['id']);if(typeof kv['click']=='function')kv['click']();});if(kv['menu'])kB['addEventListener']('contextmenu',kS=>{BDFDB['GuildUtils']['openMenu'](kx['id'],kS);if(typeof kv['menu']=='function')kv['menu']();});if(kv['size']){kA['style']['setProperty']('margin','0','important');kA['style']['setProperty']('width',kv['size']+'px','important');kA['style']['setProperty']('height',kv['size']+'px','important');}return kA;}else return null;};BDFDB['GuildUtils']['openMenu']=function(kT,kU=BDFDB['mousePosition']){if(!kT)return;let kV=Node['prototype']['isPrototypeOf'](kT)?BDFDB['GuildUtils']['getId'](kT):typeof kT=='object'?kT['id']:kT;let kW=hq['GuildStore']['getGuild'](kV);if(kW)hq['ContextMenuUtils']['openContextMenu'](kU,function(kU){return BDFDB['ReactUtils']['createElement'](BDFDB['ModuleUtils']['findByName']('GuildContextMenu'),Object['assign']({},kU,{'type':BDFDB['DiscordConstants']['ContextMenuTypes']['GUILD_ICON_BAR'],'guild':kW,'badge':hq['MentionUtils']['getMentionCount'](kW['id']),'link':BDFDB['DiscordConstants']['Routes']['CHANNEL'](kW['id'],hq['LastChannelStore']['getChannelId'](kW['id'])),'selected':kW['id']==hq['LastGuildStore']['getGuildId']()}));});};BDFDB['GuildUtils']['markAsRead']=function(kY){if(!kY)return;var kZ=[];for(let l0 of BDFDB['ArrayUtils']['is'](kY)?kY:typeof kY=='string'||typeof kY=='number'?Array['of'](kY):Array['from'](kY)){let l1=Node['prototype']['isPrototypeOf'](l0)?BDFDB['GuildUtils']['getId'](l0):l0&&typeof l0=='object'?l0['id']:l0;let l2=l1&&hq['GuildChannelStore']['getChannels'](l1);if(l2)for(let l3 in l2)if(BDFDB['ArrayUtils']['is'](l2[l3]))for(let l4 of l2[l3])kZ['push'](l4['channel']['id']);}if(kZ['length'])hq['AckUtils']['bulkAck'](kZ);};BDFDB['FolderUtils']={};BDFDB['FolderUtils']['getId']=function(l5){if(!Node['prototype']['isPrototypeOf'](l5)||!BDFDB['ReactUtils']['getInstance'](l5))return;l5=BDFDB['DOMUtils']['getParent'](BDFDB['dotCN']['guildfolderwrapper'],l5);if(!l5)return;return BDFDB['ReactUtils']['findValue'](l5,'folderId',{'up':!![]});};BDFDB['FolderUtils']['getDiv']=function(l6){if(!l6)return null;let l7=BDFDB['FolderUtils']['getData'](l6);return l7?l7['div']:null;};BDFDB['FolderUtils']['getData']=function(l8){if(!l8)return null;let l9=Node['prototype']['isPrototypeOf'](l8)?BDFDB['FolderUtils']['getId'](l8):typeof l8=='object'?l8['id']:l8;l9=typeof l9=='number'?l9['toFixed']():l9;for(let la of BDFDB['FolderUtils']['getAll']())if(la&&la['folderId']==l9)return la;return null;};BDFDB['FolderUtils']['getAll']=function(){var lb=[];for(let lc of BDFDB['ReactUtils']['findOwner'](document['querySelector'](BDFDB['dotCN']['guildswrapper']),{'name':'GuildFolder','all':!![],'noCopies':!![],'unlimited':!![]})){if(lc['props']&&lc['props']['folderId'])lb['push'](Object['assign']({},lc['props'],{'div':BDFDB['ReactUtils']['findDOMNode'](lc),'instance':lc}));}return lb;};BDFDB['ChannelUtils']={};BDFDB['ChannelUtils']['getId']=function(ld){if(!Node['prototype']['isPrototypeOf'](ld)||!BDFDB['ReactUtils']['getInstance'](ld))return;ld=BDFDB['DOMUtils']['getParent'](BDFDB['dotCNC']['categorycontainerdefault']+BDFDB['dotCNC']['channelcontainerdefault']+BDFDB['dotCN']['dmchannel'],ld);if(!ld)return;var le=BDFDB['ReactUtils']['findValue'](ld,'channel');return le?le['id']['toString']():null;};BDFDB['ChannelUtils']['getDiv']=function(lf){if(!lf)return null;let lg=BDFDB['ChannelUtils']['getData'](lf);return lg?lg['div']:null;};BDFDB['ChannelUtils']['getData']=function(lh){if(!lh)return null;let li=Node['prototype']['isPrototypeOf'](lh)?BDFDB['ChannelUtils']['getId'](lh):typeof lh=='object'?lh['id']:lh;li=typeof li=='number'?li['toFixed']():li;for(let lj of BDFDB['ChannelUtils']['getAll']())if(lj&&lj['id']==li)return lj;return null;};BDFDB['ChannelUtils']['getAll']=function(){var lk=[];for(let ll of BDFDB['ReactUtils']['findOwner'](document['querySelector'](BDFDB['dotCN']['channels']),{'name':['ChannelCategoryItem','ChannelItem','PrivateChannel'],'all':!![],'noCopies':!![],'unlimited':!![]}))if(ll['props']&&!ll['props']['ispin']&&ll['props']['channel']&&ll['_reactInternalFiber']['return']){var lm=BDFDB['ReactUtils']['findDOMNode'](ll);lm=lm&&BDFDB['DOMUtils']['containsClass'](lm['parentElement'],BDFDB['disCN']['categorycontainerdefault'],BDFDB['disCN']['channelcontainerdefault'],![])?lm['parentElement']:lm;lk['push'](Object['assign'](new ll['props']['channel']['constructor'](ll['props']['channel']),{'div':lm,'instance':ll}));}return lk;};BDFDB['ChannelUtils']['getSelected']=function(){var ln=hq['ChannelStore']['getChannel'](hq['LastChannelStore']['getChannelId']());if(ln)return BDFDB['ChannelUtils']['getData'](ln['id'])||Object['assign'](new ln['constructor'](ln),{'div':null,'instance':null});else return null;};BDFDB['ChannelUtils']['openMenu']=function(lo,lp=BDFDB['mousePosition']){if(!lo)return;let lq=Node['prototype']['isPrototypeOf'](lo)?BDFDB['ChannelUtils']['getId'](lo):typeof lo=='object'?lo['id']:lo;let lr=hq['ChannelStore']['getChannel'](lq);if(lr){let ls=null;for(let lt in BDFDB['DiscordConstants']['ChannelTypes'])if(BDFDB['DiscordConstants']['ChannelTypes'][lt]==lr['type']){ls=BDFDB['DiscordConstants']['ContextMenuTypes'][(lt=='GUILD_CATEGORY'?'CHANNEL_':'CHANNEL_LIST_')+lt['replace']('GUILD_','')];break;}if(ls)hq['ContextMenuUtils']['openContextMenu'](lp,function(lp){return BDFDB['ReactUtils']['createElement'](BDFDB['ModuleUtils']['findByName']('ChannelContextMenu'),Object['assign']({},lp,{'type':ls,'channel':lr,'guild':hq['GuildStore']['getGuild'](lr['guild_id']),'selected':lr['id']==hq['LastChannelStore']['getChannelId']()}));});}};BDFDB['ChannelUtils']['markAsRead']=function(lv){if(!lv)return;var lw=[];for(let lx of lv=BDFDB['ArrayUtils']['is'](lv)?lv:typeof lv=='string'||typeof lv=='number'?Array['of'](lv):Array['from'](lv)){let ly=Node['prototype']['isPrototypeOf'](lx)?BDFDB['ChannelUtils']['getId'](lx):lx&&typeof lx=='object'?lx['id']:lx;if(ly)lw['push'](ly);}if(lw['length'])hq['AckUtils']['bulkAck'](lw);};BDFDB['DMUtils']={};BDFDB['DMUtils']['getIcon']=function(lz){var lA=hq['ChannelStore']['getChannel'](lz=typeof lz=='number'?lz['toFixed']():lz);if(!lA)return null;if(!lA['icon'])return lA['type']==0x1?BDFDB['UserUtils']['getAvatar'](lA['recipients'][0x0]):lA['type']==0x3?'https://discordapp.com/assets/f046e2247d730629309457e902d5c5b3.svg':null;return hq['IconUtils']['getChannelIconURL'](lA)['split']('?')[0x0];};BDFDB['DMUtils']['getId']=function(lB){if(!Node['prototype']['isPrototypeOf'](lB)||!BDFDB['ReactUtils']['getInstance'](lB))return;let lC=BDFDB['DOMUtils']['getParent'](BDFDB['dotCN']['guildouter'],lB);if(!lC)return;var lD=lC['querySelector'](BDFDB['dotCN']['guildiconwrapper']);var lE=lD&&lD['href']?lD['href']['split']('/')['slice'](-0x1)[0x0]:null;return lE&&!isNaN(parseInt(lE))?lE['toString']():null;};BDFDB['DMUtils']['getDiv']=function(lF){if(!lF)return null;if(Node['prototype']['isPrototypeOf'](lF)){var lG=BDFDB['DOMUtils']['getParent'](BDFDB['dotCN']['guildouter'],lF);return lG?lG['parentElement']:lG;}else{let lH=typeof lF=='object'?lF['id']:lF;if(lH){var lG=BDFDB['DOMUtils']['getParent'](BDFDB['dotCN']['guildouter'],document['querySelector'](BDFDB['dotCNS']['guilds']+BDFDB['dotCN']['dmpill']+'\x20+\x20*\x20'+BDFDB['dotCN']['guildiconwrapper']+'[href*=\x22/channels/@me/'+lH+'\x22]'));return lG&&BDFDB?lG['parentElement']:lG;}}return null;};BDFDB['DMUtils']['getData']=function(lJ){if(!lJ)return null;let lK=Node['prototype']['isPrototypeOf'](lJ)?BDFDB['BDFDB']['DMUtils']['getId'](lJ):typeof lJ=='object'?lJ['id']:lJ;lK=typeof lK=='number'?lK['toFixed']():lK;for(let lL of BDFDB['DMUtils']['getAll']())if(lL&&lL['id']==lK)return lL;return null;};BDFDB['DMUtils']['getAll']=function(){var lM=[];for(let lN of BDFDB['ReactUtils']['findOwner'](document['querySelector'](BDFDB['dotCN']['guilds']),{'name':'DirectMessage','all':!![],'noCopies':!![],'unlimited':!![]})){if(lN['props']&&lN['props']['channel'])lM['push'](Object['assign'](new lN['props']['channel']['constructor'](lN['props']['channel']),{'div':BDFDB['ReactUtils']['findDOMNode'](lN),'instance':lN}));}return lM;};BDFDB['DMUtils']['markAsRead']=function(lO){if(!lO)return;var lP=[];for(let lQ of lO=BDFDB['ArrayUtils']['is'](lO)?lO:typeof lO=='string'||typeof lO=='number'?Array['of'](lO):Array['from'](lO)){let lR=Node['prototype']['isPrototypeOf'](lQ)?BDFDB['BDFDB']['DMUtils']['getId'](lQ):lQ&&typeof lQ=='object'?lQ['id']:lQ;if(lR)lP['push'](lR);}for(let lS in lP)BDFDB['TimeUtils']['timeout'](c=>{hq['AckUtils']['ack'](lP[lS]);},lS*0x3e8);};BDFDB['DataUtils']={};BDFDB['DataUtils']['cached']={};BDFDB['DataUtils']['save']=function(lU,lV,lW,lX){var lY,lZ;if(!BDFDB['BDUtils']['isBDv2']()){lZ=typeof lV==='string'?lV:lV['name'];lY=hn['path']['join'](BDFDB['BDUtils']['getPluginsFolder'](),lZ+'.config.json');}else{lZ=typeof lV==='string'?lV['toLowerCase']():null;var m0=lZ?BDFDB['Plugins'][lZ]?BDFDB['Plugins'][lZ]['contentPath']:null:lV['contentPath'];if(!m0)return;lY=hn['path']['join'](m0,'settings.json');}var m1=hn['fs']['existsSync'](lY);var m2=!m1?{}:typeof BDFDB['DataUtils']['cached'][lZ]!=='undefined'?BDFDB['DataUtils']['cached'][lZ]:e['readConfig'](lY);if(lX===undefined)m2[lW]=BDFDB['ObjectUtils']['is'](lU)?BDFDB['ObjectUtils']['sort'](lU):lU;else{if(!BDFDB['ObjectUtils']['is'](m2[lW]))m2[lW]={};m2[lW][lX]=BDFDB['ObjectUtils']['is'](lU)?BDFDB['ObjectUtils']['sort'](lU):lU;}if(BDFDB['ObjectUtils']['isEmpty'](m2[lW]))delete m2[lW];if(BDFDB['ObjectUtils']['isEmpty'](m2)){delete BDFDB['DataUtils']['cached'][lZ];if(m1)hn['fs']['unlinkSync'](lY);}else{m2=BDFDB['ObjectUtils']['sort'](m2);BDFDB['DataUtils']['cached'][lZ]=BDFDB['ObjectUtils']['deepAssign']({},m2);hn['fs']['writeFileSync'](lY,JSON['stringify'](m2,null,'\x09'));}};BDFDB['DataUtils']['load']=function(m3,m4,m5){var m6,m7;if(!BDFDB['BDUtils']['isBDv2']()){m7=typeof m3==='string'?m3:m3['name'];m6=hn['path']['join'](BDFDB['BDUtils']['getPluginsFolder'](),m7+'.config.json');}else{m7=typeof m3==='string'?m3['toLowerCase']():null;var m8=m7?BDFDB['Plugins'][m7]?BDFDB['Plugins'][m7]['contentPath']:null:m3['contentPath'];if(!m8)return{};m6=hn['path']['join'](m8,'settings.json');}if(!hn['fs']['existsSync'](m6)){delete BDFDB['DataUtils']['cached'][m7];return{};}var m9=typeof BDFDB['DataUtils']['cached'][m7]!=='undefined'&&typeof BDFDB['DataUtils']['cached'][m7][m4]!=='undefined'?BDFDB['DataUtils']['cached'][m7]:e['readConfig'](m6);BDFDB['DataUtils']['cached'][m7]=BDFDB['ObjectUtils']['deepAssign']({},m9);let ma=BDFDB['ObjectUtils']['deepAssign']({},m9&&typeof m9[m4]!=='undefined'?m9[m4]:{});if(m5===undefined)return ma;else return ma[m5]===undefined?null:ma[m5];};BDFDB['DataUtils']['remove']=function(mb,mc,md){var me,mf;if(!BDFDB['BDUtils']['isBDv2']()){mf=typeof mb==='string'?mb:mb['name'];me=hn['path']['join'](BDFDB['BDUtils']['getPluginsFolder'](),mf+'.config.json');}else{mf=typeof mb==='string'?mb['toLowerCase']():null;var mg=mf?BDFDB['Plugins'][mf]?BDFDB['Plugins'][mf]['contentPath']:null:mb['contentPath'];if(!mg)return;me=hn['path']['join'](mg,'settings.json');}var mh=hn['fs']['existsSync'](me);var mi=!mh?{}:typeof BDFDB['DataUtils']['cached'][mf]!=='undefined'?BDFDB['DataUtils']['cached'][mf]:e['readConfig'](me);if(md===undefined)delete mi[mc];else if(BDFDB['ObjectUtils']['is'](mi[mc]))delete mi[mc][md];if(BDFDB['ObjectUtils']['isEmpty'](mi[mc]))delete mi[mc];if(BDFDB['ObjectUtils']['isEmpty'](mi)){delete BDFDB['DataUtils']['cached'][mf];if(mh)hn['fs']['unlinkSync'](me);}else{mi=BDFDB['ObjectUtils']['sort'](mi);BDFDB['DataUtils']['cached'][mf]=mi;hn['fs']['writeFileSync'](me,JSON['stringify'](mi,null,'\x09'));}};BDFDB['DataUtils']['get']=function(mj,mk,ml){mj=typeof mj=='string'?BDFDB['BDUtils']['getPlugin'](mj):mj;if(!BDFDB['ObjectUtils']['is'](mj)||!mj['defaults']||!mj['defaults'][mk])return ml===undefined?{}:null;var mm=BDFDB['DataUtils']['load'](mj,mk),mn={},mo=![];for(let mp in mj['defaults'][mk]){if(mm[mp]==null){mn[mp]=BDFDB['ObjectUtils']['is'](mj['defaults'][mk][mp]['value'])?BDFDB['ObjectUtils']['deepAssign']({},mj['defaults'][mk][mp]['value']):mj['defaults'][mk][mp]['value'];mo=!![];}else mn[mp]=mm[mp];}if(mo)BDFDB['DataUtils']['save'](mn,mj,mk);if(ml===undefined)return mn;else return mn[ml]===undefined?null:mn[ml];};e['readConfig']=function(mq){try{return JSON['parse'](hn['fs']['readFileSync'](mq));}catch(mr){return{};}};BDFDB['ColorUtils']={};BDFDB['ColorUtils']['convert']=function(ms,mt,mu){if(ms==null)return null;mt=mt===undefined||!mt?mt='RGBCOMP':mt['toUpperCase']();mu=mu===undefined||!mu||!['RGB','RGBA','RGBCOMP','HSL','HSLA','HSLCOMP','HEX','HEXA','INT']['includes'](mu['toUpperCase']())?BDFDB['ColorUtils']['getType'](ms):mu['toUpperCase']();if(mt=='RGBCOMP'){switch(mu){case'RGBCOMP':if(ms['length']==0x3)return n4(ms);else if(ms['length']==0x4){let mv=n7(ms['pop']());return n4(ms)['concat'](mv);}break;case'RGB':return n4(ms['replace'](/\s/g,'')['slice'](0x4,-0x1)['split'](','));case'RGBA':let mw=ms['replace'](/\s/g,'')['slice'](0x5,-0x1)['split'](',');let mv=n7(mw['pop']());return n4(mw)['concat'](mv);case'HSLCOMP':if(ms['length']==0x3)return BDFDB['ColorUtils']['convert']('hsl('+nb(ms)['join'](',')+')','RGBCOMP');else if(ms['length']==0x4){let my=n7(ms['pop']());return BDFDB['ColorUtils']['convert']('hsl('+nb(ms)['join'](',')+')','RGBCOMP')['concat'](my);}break;case'HSL':var mz=nb(ms['replace'](/\s/g,'')['slice'](0x4,-0x1)['split'](','));var mA,mB,mC,mD,mE,mF,mG,mH;var mI=mz[0x0]/0x168,mJ=parseInt(mz[0x1])/0x64,mK=parseInt(mz[0x2])/0x64;mD=Math['floor'](mI*0x6);mE=mI*0x6-mD;mF=mK*(0x1-mJ);mG=mK*(0x1-mE*mJ);mH=mK*(0x1-(0x1-mE)*mJ);switch(mD%0x6){case 0x0:mA=mK,mB=mH,mC=mF;break;case 0x1:mA=mG,mB=mK,mC=mF;break;case 0x2:mA=mF,mB=mK,mC=mH;break;case 0x3:mA=mF,mB=mG,mC=mK;break;case 0x4:mA=mH,mB=mF,mC=mK;break;case 0x5:mA=mK,mB=mF,mC=mG;break;}return[Math['round'](mA*0xff),Math['round'](mB*0xff),Math['round'](mC*0xff)];case'HSLA':var mz=ms['replace'](/\s/g,'')['slice'](0x5,-0x1)['split'](',');return BDFDB['ColorUtils']['convert']('hsl('+mz['slice'](0x0,0x3)['join'](',')+')','RGBCOMP')['concat'](n7(mz['pop']()));case'HEX':var mM=/^#([a-f\d]{1})([a-f\d]{1})([a-f\d]{1})$|^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i['exec'](ms);return[parseInt(mM[0x1]+mM[0x1]||mM[0x4],0x10)['toString'](),parseInt(mM[0x2]+mM[0x2]||mM[0x5],0x10)['toString'](),parseInt(mM[0x3]+mM[0x3]||mM[0x6],0x10)['toString']()];case'HEXA':var mM=/^#([a-f\d]{1})([a-f\d]{1})([a-f\d]{1})([a-f\d]{1})$|^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i['exec'](ms);return[parseInt(mM[0x1]+mM[0x1]||mM[0x5],0x10)['toString'](),parseInt(mM[0x2]+mM[0x2]||mM[0x6],0x10)['toString'](),parseInt(mM[0x3]+mM[0x3]||mM[0x7],0x10)['toString'](),Math['floor'](BDFDB['NumberUtils']['mapRange']([0x0,0xff],[0x0,0x64],parseInt(mM[0x4]+mM[0x4]||mM[0x8],0x10)['toString']()))/0x64];case'INT':ms=nf(ms);return[(ms>>0x10&0xff)['toString'](),(ms>>0x8&0xff)['toString'](),(ms&0xff)['toString']()];default:return null;}}else{var mO=mu=='RGBCOMP'?ms:BDFDB['ColorUtils']['convert'](ms,'RGBCOMP',mu);if(mO)switch(mt){case'RGB':return'rgb('+n4(mO['slice'](0x0,0x3))['join'](',')+')';case'RGBA':mO=mO['slice'](0x0,0x4);var my=mO['length']==0x4?n7(mO['pop']()):0x1;return'rgba('+n4(mO)['concat'](my)['join'](',')+')';case'HSLCOMP':var my=mO['length']==0x4?n7(mO['pop']()):null;var mz=nb(BDFDB['ColorUtils']['convert'](mO,'HSL')['replace'](/\s/g,'')['split'](','));return my!=null?mz['concat'](my):mz;case'HSL':var mA=n2(mO[0x0]),mB=n2(mO[0x1]),mC=n2(mO[0x2]);var mV=Math['max'](mA,mB,mC),mW=Math['min'](mA,mB,mC),mX=mV-mW,mI,mJ=mV===0x0?0x0:mX/mV,mK=mV/0xff;switch(mV){case mW:mI=0x0;break;case mA:mI=mB-mC+mX*(mB0xff?0xff:mE<0x0?0x0:mE;}};function n4(mw){return mw['map'](mE=>{return n2(mE);});};function n7(my){if(my==null){return 0x1;}else{my=my['toString']();my=(my['indexOf']('%')>-0x1?0.01:0x1)*parseFloat(my['replace'](/[^0-9\.\-]/g,''));return isNaN(my)||my>0x1?0x1:my<0x0?0x0:my;}};function n9(na){if(na==null){return'100%';}else{na=parseFloat(na['toString']()['replace'](/[^0-9\.\-]/g,''));return(isNaN(na)||na>0x64?0x64:na<0x0?0x0:na)+'%';}};function nb(mw){let mI=parseFloat(mw['shift']()['toString']()['replace'](/[^0-9\.\-]/g,''));mI=isNaN(mI)||mI>0x168?0x168:mI<0x0?0x0:mI;return[mI]['concat'](mw['map'](ne=>{return n9(ne);}));};function nf(mE){if(mE==null){return 0xffffff;}else{mE=parseInt(mE['toString']()['replace'](/[^0-9]/g,''));return isNaN(mE)||mE>0xffffff?0xffffff:mE<0x0?0x0:mE;}};};BDFDB['ColorUtils']['setAlpha']=function(nh,ni,nj){if(BDFDB['ObjectUtils']['is'](nh)){var nk={};for(let nl in nh)nk[nl]=nm(nh[nl],ni,nj);return nk;}return nm(nh,ni,nj);function nm(nh){var no=BDFDB['ColorUtils']['convert'](nh,'RGBCOMP');if(no){ni=ni['toString']();ni=(ni['indexOf']('%')>-0x1?0.01:0x1)*parseFloat(ni['replace'](/[^0-9\.\-]/g,''));ni=isNaN(ni)||ni>0x1?0x1:ni<0x0?0x0:ni;no[0x3]=ni;nj=(nj||BDFDB['ColorUtils']['getType'](nh))['toUpperCase']();nj=nj=='RGB'||nj=='HSL'||nj=='HEX'?nj+'A':nj;return BDFDB['ColorUtils']['convert'](no,nj);}return null;}};BDFDB['ColorUtils']['getAlpha']=function(np){var nq=BDFDB['ColorUtils']['convert'](np,'RGBCOMP');if(nq){if(nq['length']==0x3)return 0x1;else if(nq['length']==0x4){let nr=nq[0x3]['toString']();nr=(nr['indexOf']('%')>-0x1?0.01:0x1)*parseFloat(nr['replace'](/[^0-9\.\-]/g,''));return isNaN(nr)||nr>0x1?0x1:nr<0x0?0x0:nr;}}return null;};BDFDB['ColorUtils']['change']=function(ns,nt,nu){nt=parseFloat(nt);if(ns!=null&&typeof nt=='number'&&!isNaN(nt)){if(BDFDB['ObjectUtils']['is'](ns)){var nv={};for(let nw in ns)nv[nw]=nx(ns[nw],nt,nu);return nv;}else return nx(ns,nt,nu);}return null;function nx(ns){var nz=BDFDB['ColorUtils']['convert'](ns,'RGBCOMP');if(nz){if(parseInt(nt)!==nt){nt=nt['toString']();nt=(nt['indexOf']('%')>-0x1?0.01:0x1)*parseFloat(nt['replace'](/[^0-9\.\-]/g,''));nt=isNaN(nt)?0x0:nt;return BDFDB['ColorUtils']['convert']([Math['round'](nz[0x0]*(0x1+nt)),Math['round'](nz[0x1]*(0x1+nt)),Math['round'](nz[0x2]*(0x1+nt))],nu||BDFDB['ColorUtils']['getType'](ns));}else return BDFDB['ColorUtils']['convert']([Math['round'](nz[0x0]+nt),Math['round'](nz[0x1]+nt),Math['round'](nz[0x2]+nt)],nu||BDFDB['ColorUtils']['getType'](ns));}return null;};};BDFDB['ColorUtils']['invert']=function(nA,nB){if(nA!=null){var nC=BDFDB['ColorUtils']['convert'](nA,'RGBCOMP');if(nC)return BDFDB['ColorUtils']['convert']([0xff-nC[0x0],0xff-nC[0x1],0xff-nC[0x2]],nB||BDFDB['ColorUtils']['getType'](nA));}return null;};BDFDB['ColorUtils']['compare']=function(nD,nE){if(nD&&nE){nD=BDFDB['ColorUtils']['convert'](nD,'RGBA');nE=BDFDB['ColorUtils']['convert'](nE,'RGBA');if(nD&&nE)return BDFDB['equals'](nD,nE);}return null;};BDFDB['ColorUtils']['isBright']=function(nF,nG=0xa0){nF=BDFDB['ColorUtils']['convert'](nF,'RGBCOMP');if(!nF)return![];return parseInt(nG)