diff --git a/Plugins/BDFDB.js b/Plugins/BDFDB.js
index aed5d3e5aa..df14d069a0 100644
--- a/Plugins/BDFDB.js
+++ b/Plugins/BDFDB.js
@@ -1 +1 @@
-if(global['BDFDB']&&typeof BDFDB['removeEventListener']=='function')BDFDB['removeEventListener'](BDFDB);if(global['BDFDB']&&BDFDB['WebModules']&&typeof BDFDB['WebModules']['unpatchall']=='function')BDFDB['WebModules']['unpatchall'](BDFDB);if(global['BDFDB']&&typeof BDFDB['killObservers']=='function')BDFDB['killObservers'](BDFDB);var BDFDB={'myPlugins':BDFDB&&BDFDB['myPlugins']?BDFDB['myPlugins']:{},'BDv2Api':BDFDB&&BDFDB['BDv2Api']?BDFDB['BDv2Api']:undefined,'creationTime':performance['now'](),'cachedData':{},'pressedKeys':[],'mousePosition':{'pageX':0x0,'pageY':0x0},'name':'$BDFDB'};(()=>{var c=Math['round'](Math['random']()*0x2386f26fc10000);BDFDB['id']=c;console['log']('%c[BDFDB]%c','color:\x20#3a71c1;\x20font-weight:\x20700;','','loading\x20library.');BDFDB['isLibraryOutdated']=function(){return performance['now']()-BDFDB['creationTime']>0x927c0;};BDFDB['loadMessage']=function(d){BDFDB['clearStarttimout'](d);d['name']=d['name']||(typeof d['getName']=='function'?d['getName']():null);d['version']=d['version']||(typeof d['getVersion']=='function'?d['getVersion']():null);d['author']=d['author']||(typeof d['getAuthor']=='function'?d['getAuthor']():null);d['description']=d['description']||(typeof d['getDescription']=='function'?d['getDescription']():null);var e=BDFDB['getLibraryStrings']()['toast_plugin_started']['replace']('{{oldversion}}','v'+d['version']);console['log']('%c['+d['name']+']%c','color:\x20#3a71c1;\x20font-weight:\x20700;','',e);if(!(window['settingsCookie']['fork-ps-2']&&window['settingsCookie']['fork-ps-2']===!![]))BDFDB['showToast'](d['name']+'\x20'+e,{'nopointer':!![],'selector':'plugin-started-toast'});var f=typeof d['getRawUrl']=='function'&&typeof d['getRawUrl']()=='string'?d['getRawUrl']():'https://mwittrien.github.io/BetterDiscordAddons/Plugins/'+d['name']+'/'+d['name']+'.plugin.js';BDFDB['checkUpdate'](d['name'],f);if(typeof d['initConstructor']==='function'){try{d['initConstructor']();}catch(g){console['error']('%c['+d['name']+']%c','color:\x20#3a71c1;\x20font-weight:\x20700;','','Fatal\x20Error:\x20Could\x20not\x20initiate\x20constructor!\x20'+g);}}if(typeof d['css']==='string')BDFDB['appendLocalStyle'](d['name'],d['css']);BDFDB['WebModules']['patchModules'](d);BDFDB['addOnSwitchListener'](d);BDFDB['addSettingsButtonListener'](d);BDFDB['addContextListener'](d);BDFDB['translatePlugin'](d);BDFDB['checkChangeLog'](d);if(!window['PluginUpdates']||typeof window['PluginUpdates']!=='object')window['PluginUpdates']={'plugins':{}};window['PluginUpdates']['plugins'][f]={'name':d['name'],'raw':f,'version':d['version']};if(typeof window['PluginUpdates']['interval']==='undefined')window['PluginUpdates']['interval']=setInterval(()=>{BDFDB['checkAllUpdates']();},0x3e8*0x3c*0x3c*0x2);d['started']=!![];for(let h in BDFDB['myPlugins'])if(!BDFDB['myPlugins'][h]['started']&&typeof BDFDB['myPlugins'][h]['initialize']=='function')BDFDB['myPlugins'][h]['initialize']();};BDFDB['unloadMessage']=function(i){BDFDB['clearStarttimout'](i);delete BDFDB['myPlugins'][i['name']];var j=BDFDB['getLibraryStrings']()['toast_plugin_stopped']['replace']('{{oldversion}}','v'+i['version']);console['log']('%c['+i['name']+']%c','color:\x20#3a71c1;\x20font-weight:\x20700;','',j);if(!(window['settingsCookie']['fork-ps-2']&&window['settingsCookie']['fork-ps-2']===!![]))BDFDB['showToast'](i['name']+'\x20'+j,{'nopointer':!![],'selector':'plugin-stopped-toast'});var k=typeof i['getRawUrl']=='function'&&typeof i['getRawUrl']()=='string'?i['getRawUrl']():'https://mwittrien.github.io/BetterDiscordAddons/Plugins/'+i['name']+'/'+i['name']+'.plugin.js';if(typeof i['css']==='string')BDFDB['removeLocalStyle'](i['name']);BDFDB['WebModules']['unpatchall'](i);BDFDB['removeOnSwitchListener'](i);BDFDB['removeSettingsButtonListener'](i);BDFDB['removeEventListener'](i);BDFDB['removeEles']('.'+i['name']+'-modal,\x20.'+i['name']['toLowerCase']()+'-modal,\x20.'+i['name']+'-settingsmodal,\x20.'+i['name']['toLowerCase']()+'-settingsmodal');BDFDB['killObservers'](i);delete window['PluginUpdates']['plugins'][k];if(BDFDB['isObjectEmpty'](window['PluginUpdates']['plugins']))BDFDB['removeEles']('#bd-settingspane-container\x20.bd-updatebtn'+BDFDB['dotCN']['_repofolderbutton']);delete i['started'];};BDFDB['translatePlugin']=function(l){if(typeof l['setLabelsByLanguage']==='function'||typeof l['changeLanguageStrings']==='function'){if(document['querySelector']('html')['lang'])n();else{var m=setInterval(()=>{if(document['querySelector']('html')['lang']){clearInterval(m);n();}},0x64);}function n(){var o=BDFDB['getDiscordLanguage']();if(typeof l['setLabelsByLanguage']==='function')l['labels']=l['setLabelsByLanguage'](o['id']);if(typeof l['changeLanguageStrings']==='function')l['changeLanguageStrings']();var p=BDFDB['getLibraryStrings']()['toast_plugin_translated']['replace']('{{ownlang}}',o['ownlang']);console['log']('%c['+l['name']+']%c','color:\x20#3a71c1;\x20font-weight:\x20700;','',p);}}};BDFDB['clearStarttimout']=function(q){if(q['startTimeout']){clearTimeout(q['startTimeout']);delete q['startTimeout'];}if(q['libLoadTimeout']){clearTimeout(q['libLoadTimeout']);delete q['libLoadTimeout'];}};BDFDB['checkChangeLog']=function(r){if(!BDFDB['isObject'](r)||!r['changelog'])return;var s=BDFDB['loadAllData'](r,'changelog');if(!s['currentversion']||BDFDB['checkVersions'](r['version'],s['currentversion'])){s['currentversion']=r['version'];BDFDB['saveAllData'](s,r,'changelog');BDFDB['openChangeLogModal'](r);}};BDFDB['openChangeLogModal']=function(t){if(!BDFDB['isObject'](t)||!t['changelog'])return;var u='';var v={'added':'New\x20Features','fixed':'Bug\x20Fixes','improved':'Improvements','progress':'Progress'};for(let w in t['changelog']){w=w['toLowerCase']();var x=BDFDB['disCN']['changelog'+w];if(x){u+='
'+v[w]+'
';for(let y of t['changelog'][w])u+='- '+y[0x0]+''+(y[0x1]?':\x20'+y[0x1]+'.':'')+'
';u+='
';}}if(u)BDFDB['removeEles'](BDFDB['openConfirmModal'](t,u,BDFDB['LanguageStrings']['CHANGE_LOG'])['querySelectorAll']('.btn-cancel'));};BDFDB['addObserver']=function(z,A,B,C={'childList':!![]}){if(!BDFDB['isObject'](z)||!A||!B)return;if(BDFDB['isObjectEmpty'](z['observers']))z['observers']={};if(!Array['isArray'](z['observers'][B['name']]))z['observers'][B['name']]=[];if(!B['multi'])for(let D of z['observers'][B['name']])D['disconnect']();if(B['instance'])z['observers'][B['name']]['push'](B['instance']);var E=z['observers'][B['name']][z['observers'][B['name']]['length']-0x1];if(E){var F=Node['prototype']['isPrototypeOf'](A)?A:typeof A==='string'?document['querySelector'](A):null;if(F)E['observe'](F,C);}};BDFDB['killObservers']=function(G){if(!BDFDB['isObjectEmpty'](G['observers'])){for(let H in G['observers'])for(let I of G['observers'][H])I['disconnect']();delete G['observers'];}};BDFDB['addChildEventListener']=function(J,K,L,M){if(!Node['prototype']['isPrototypeOf'](J)||!K||!L||!L['trim']()||typeof M!='function')return;for(var N of K['trim']()['split']('\x20'))if(N){var O=M;if(N=='mouseenter'||N=='mouseleave')O=P=>{if(P['target']['matches'](L))M(P);};J['querySelectorAll'](L['trim']())['forEach'](Q=>{Q['addEventListener'](N,O,!![]);});}};BDFDB['addEventListener']=function(R,S,T,U,V){if(!BDFDB['isObject'](R)||!Node['prototype']['isPrototypeOf'](S)&&S!==window||!T)return;var W=typeof U=='function';var X=W?undefined:U;var Y=W?U:V;if(typeof Y!='function')return;BDFDB['removeEventListener'](R,S,T,X);for(var Z of T['split']('\x20')){Z=Z['split']('.');var a0=Z['shift']()['toLowerCase']();if(!a0)return;var a1=a0;a0=a0=='mouseenter'||a0=='mouseleave'?'mouseover':a0;var a2=(Z['join']('.')||'')+R['name'];if(!Array['isArray'](R['listeners']))R['listeners']=[];var a3=null;if(X){if(a1=='mouseenter'||a1=='mouseleave'){a3=a4=>{for(let a5 of a4['path'])if(typeof a5['matches']=='function'&&a5['matches'](X)&&!a5[a2+'BDFDB'+a1]){a5[a2+'BDFDB'+a1]=!![];if(a1=='mouseenter')Y(BDFDB['copyEvent'](a4,a5));let a6=a7=>{if(a7['target']['contains'](a5)||a7['target']==a5||!a5['contains'](a7['target'])){if(a1=='mouseleave')Y(BDFDB['copyEvent'](a4,a5));delete a5[a2+'BDFDB'+a1];document['removeEventListener']('mouseout',a6);}};document['addEventListener']('mouseout',a6);break;}};}else{a3=a8=>{for(let a9 of a8['path'])if(typeof a9['matches']=='function'&&a9['matches'](X)){Y(BDFDB['copyEvent'](a8,a9));break;}};}}else a3=aa=>{Y(BDFDB['copyEvent'](aa,S));};R['listeners']['push']({'ele':S,'eventname':a0,'origeventname':a1,'namespace':a2,'selector':X,'eventcallback':a3});S['addEventListener'](a0,a3,!![]);}};BDFDB['copyEvent']=function(ab,ac){if(!ab||!ab['constructor']||!ab['type'])return ab;var ad=new ab['constructor'](ab['type'],ab);Object['defineProperty'](ad,'originalEvent',{'value':ab});Object['defineProperty'](ad,'which',{'value':ab['which']});Object['defineProperty'](ad,'keyCode',{'value':ab['keyCode']});Object['defineProperty'](ad,'path',{'value':ab['path']});Object['defineProperty'](ad,'relatedTarget',{'value':ab['relatedTarget']});Object['defineProperty'](ad,'srcElement',{'value':ab['srcElement']});Object['defineProperty'](ad,'target',{'value':ab['target']});Object['defineProperty'](ad,'toElement',{'value':ab['toElement']});if(ac)Object['defineProperty'](ad,'currentTarget',{'value':ac});return ad;};BDFDB['stopEvent']=function(ae){if(BDFDB['isObject'](ae)){if(typeof ae['preventDefault']=='function')ae['preventDefault']();if(typeof ae['stopPropagation']=='function')ae['stopPropagation']();if(typeof ae['stopImmediatePropagation']=='function')ae['stopImmediatePropagation']();if(BDFDB['isObject'](ae['originalEvent'])){if(typeof ae['originalEvent']['preventDefault']=='function')ae['originalEvent']['preventDefault']();if(typeof ae['originalEvent']['stopPropagation']=='function')ae['originalEvent']['stopPropagation']();if(typeof ae['originalEvent']['stopImmediatePropagation']=='function')ae['originalEvent']['stopImmediatePropagation']();}}};BDFDB['removeEventListener']=function(af,ag,ah='',ai){if(!BDFDB['isObject'](af)||!Array['isArray'](af['listeners']))return;if(Node['prototype']['isPrototypeOf'](ag)||ag===window){for(var aj of ah['split']('\x20')){aj=aj['split']('.');var ak=aj['shift']()['toLowerCase']();var al=(aj['join']('.')||'')+af['name'];for(let am of af['listeners']){let an=[];if(am['ele']==ag&&(!ak||am['origeventname']==ak)&&am['namespace']==al&&(ai===undefined||am['selector']==ai)){ag['removeEventListener'](am['eventname'],am['eventcallback'],!![]);an['push'](am);}if(an['length'])af['listeners']=af['listeners']['filter'](am=>{return an['indexOf'](am)<0x0;});}}}else if(!ag){for(let ap of af['listeners'])ap['ele']['removeEventListener'](ap['eventname'],ap['eventcallback'],!![]);af['listeners']=[];}};BDFDB['checkUpdate']=function(aq,ar){if(BDFDB['isBDv2']())return;require('request')(ar,(as,at,au)=>{if(as)return;var av=au['match'](/['"][0-9]+\.[0-9]+\.[0-9]+['"]/i);if(!av)return;if(BDFDB['checkVersionDifference'](av[0x0],window['PluginUpdates']['plugins'][ar]['version'])>0.2){BDFDB['showToast'](aq+'\x20will\x20be\x20force\x20updated,\x20because\x20your\x20version\x20is\x20heavily\x20outdated.',{'type':'warn','nopointer':!![],'selector':'plugin-forceupdate-toast'});BDFDB['downloadPlugin'](aq,ar);}else if(BDFDB['checkVersions'](av[0x0],window['PluginUpdates']['plugins'][ar]['version']))BDFDB['showUpdateNotice'](aq,ar);else BDFDB['removeUpdateNotice'](aq);});};BDFDB['checkVersions']=function(aw,ax){if(!aw||!ax)return!![];aw=aw['toString']()['replace'](/["'`]/g,'')['split'](/,|\./g)['map'](ay=>parseInt(ay))['filter'](az=>(az||az==0x0)&&!isNaN(az));ax=ax['toString']()['replace'](/["'`]/g,'')['split'](/,|\./g)['map'](aA=>parseInt(aA))['filter'](aB=>(aB||aB==0x0)&&!isNaN(aB));var aC=Math['max'](aw['length'],ax['length']);if(!aC)return!![];if(aw['length']>ax['length']){var aD=new Array(aw['length']-ax['length']);for(let aE=0x0;aEax[aJ])return!![];}return![];};BDFDB['checkVersionDifference']=function(aK,aL){if(!aK||!aL)return![];aK=aK['toString']()['replace'](/["'`]/g,'')['split'](/,|\./g)['map'](aM=>parseInt(aM))['filter'](aN=>(aN||aN==0x0)&&!isNaN(aN));aL=aL['toString']()['replace'](/["'`]/g,'')['split'](/,|\./g)['map'](aO=>parseInt(aO))['filter'](aP=>(aP||aP==0x0)&&!isNaN(aP));var aQ=Math['max'](aK['length'],aL['length']);if(!aQ)return![];if(aK['length']>aL['length']){var aR=new Array(aK['length']-aL['length']);for(let aS=0x0;aS',{'html':!![],'id':'pluginNotice','type':'info','btn':!BDFDB['isRestartNoMoreEnabled']()?'Reload':'','customicon':''});b1['style']['setProperty']('display','block','important');b1['style']['setProperty']('visibility','visible','important');b1['style']['setProperty']('opacity','1','important');b1['querySelector'](BDFDB['dotCN']['noticedismiss'])['addEventListener']('click',()=>{BDFDB['removeEles']('.update-clickme-tooltip');});var b2=b1['querySelector'](BDFDB['dotCN']['noticebutton']);if(b2){BDFDB['toggleEles'](b2,!![]);b2['addEventListener']('click',()=>{window['location']['reload'](![]);});b2['addEventListener']('mouseenter',()=>{if(window['PluginUpdates']['downloaded'])BDFDB['createTooltip'](window['PluginUpdates']['downloaded']['join'](',\x20'),b2,{'type':'bottom','selector':'update-notice-tooltip','style':'max-width:\x20420px'});});}}if(b1){var b3=b1['querySelector']('#outdatedPlugins');if(b3&&!b3['querySelector']('#'+aZ+'-notice')){if(b3['querySelector']('span'))b3['appendChild'](BDFDB['htmlToElement'](',\x20'));var b4=BDFDB['htmlToElement'](''+aZ+'');b4['addEventListener']('click',()=>{BDFDB['downloadPlugin'](aZ,b0);});b3['appendChild'](b4);if(!document['querySelector']('.update-clickme-tooltip'))BDFDB['createTooltip']('Click\x20us!',b3,{'type':'bottom','selector':'update-clickme-tooltip','delay':0x1f4});}}};BDFDB['downloadPlugin']=function(b5,b6){require('request')(b6,(b7,b8,b9)=>{if(b7)return console['warn']('%c[BDFDB]%c','color:#3a71c1;\x20font-weight:700;','','Unable\x20to\x20get\x20update\x20for\x20'+b5);BDFDB['creationTime']=0x0;var ba=b9['match'](/['"][0-9]+\.[0-9]+\.[0-9]+['"]/i);ba=ba['toString']()['replace'](/['"]/g,'');require('fs')['writeFileSync'](require('path')['join'](BDFDB['getPluginsFolder'](),bdplugins[b5]?bdplugins[b5]['filename']:b6['split']('/')['slice'](-0x1)[0x0]),b9);BDFDB['showToast'](b5+'\x20v'+window['PluginUpdates']['plugins'][b6]['version']+'\x20has\x20been\x20replaced\x20by\x20'+b5+'\x20v'+ba+'.',{'nopointer':!![],'selector':'plugin-updated-toast'});var bb=document['querySelector']('#pluginNotice');if(bb){if(bb['querySelector'](BDFDB['dotCN']['noticebutton'])){window['PluginUpdates']['plugins'][b6]['version']=ba;if(!window['PluginUpdates']['downloaded'])window['PluginUpdates']['downloaded']=[];if(!window['PluginUpdates']['downloaded']['includes'](b5))window['PluginUpdates']['downloaded']['push'](b5);}BDFDB['removeUpdateNotice'](b5,bb);}});};BDFDB['removeUpdateNotice']=function(bc,bd=document['querySelector']('#pluginNotice')){if(!bd)return;var be=bd['querySelector']('#outdatedPlugins');if(be){var bf=be['querySelector']('#'+bc+'-notice');if(bf){var bg=bf['nextSibling'];var bh=bf['prevSibling'];if(bg&&BDFDB['containsClass'](bg,'separator'))bg['remove']();else if(bh&&BDFDB['containsClass'](bh,'separator'))bh['remove']();bf['remove']();}if(!be['querySelector']('span')){var bi=bd['querySelector'](BDFDB['dotCN']['noticebutton']);if(bi){bd['querySelector']('.notice-message')['innerText']='To\x20finish\x20updating\x20you\x20need\x20to\x20reload.';BDFDB['toggleEles'](bi,![]);}else bd['querySelector'](BDFDB['dotCN']['noticedismiss'])['click']();}}};BDFDB['showToast']=function(bj,bk={}){var bl=document['querySelector']('.toasts,\x20.bd-toasts');if(!bl){var bm=document['querySelector'](BDFDB['dotCN']['channels']+'\x20+\x20div');var bn=bm?BDFDB['getRects'](bm):null;var bo=bm?bm['querySelector'](BDFDB['dotCN']['memberswrap']):null;var bp=bn?bn['left']:0x136;var bq=bn?bo?bn['width']-BDFDB['getRects'](bo)['width']:bn['width']:window['outerWidth']-0x0;var br=bm?bm['querySelector']('form'):null;var bs=br?BDFDB['getRects'](br)['height']:0x50;bl=BDFDB['htmlToElement']('');document['querySelector'](BDFDB['dotCN']['app'])['appendChild'](bl);}const {type='',icon=!![],timeout=0xbb8,html=![],selector='',nopointer=![],color=''}=bk;var bt=BDFDB['htmlToElement'](''+(html===!![]?bj:BDFDB['encodeToHTML'](bj))+'
');if(type){BDFDB['addClass'](bt,'toast-'+type);if(icon)BDFDB['addClass'](bt,'icon');}else if(color){var bu=BDFDB['colorCONVERT'](color,'RGB');if(bu)bt['style']['setProperty']('background-color',bu,'important');}BDFDB['addClass'](bt,selector);bl['appendChild'](bt);bt['close']=()=>{if(document['contains'](bt)){BDFDB['addClass'](bt,'closing');setTimeout(()=>{bt['remove']();if(!bl['querySelectorAll']('.toast,\x20.bd-toast')['length'])bl['remove']();},0xbb8);}};if(nopointer)bt['style']['setProperty']('pointer-events','none','important');else bt['addEventListener']('click',bt['close']);setTimeout(()=>{bt['close']();},timeout>0x0?timeout:0x927c0);return bt;};var bv={'queue':[],'running':![]};BDFDB['showDesktopNotification']=function(bw,bx={}){var by=()=>{bv['queue']['push']({'parsedcontent':bw,'parsedoptions':bx});bz();};var bz=()=>{if(!bv['running']){var bA=bv['queue']['shift']();if(bA)bB(bA['parsedcontent'],bA['parsedoptions']);}};var bB=(bC,bD)=>{bv['running']=!![];var bE=bD['silent'];bD['silent']=bD['silent']||bD['sound']?!![]:![];var bF=new Notification(bC,bD);var bG=new Audio();var bH=setTimeout(()=>{bI();},bD['timeout']?bD['timeout']:0xbb8);if(typeof bD['click']=='function')bF['onclick']=()=>{clearTimeout(bH);bI();bD['click']();};if(!bE&&bD['sound']){bG['src']=bD['sound'];bG['play']();}var bI=()=>{bG['pause']();bF['close']();bv['running']=![];setTimeout(()=>{bz();},0x3e8);};};if(!('Notification'in window)){}else if(Notification['permission']==='granted')by();else if(Notification['permission']!=='denied')Notification['requestPermission'](function(bJ){if(bJ==='granted')by();});};BDFDB['createTooltip']=function(bK,bL,bM={}){if(!bK||!bL||!Node['prototype']['isPrototypeOf'](bL)||!document['contains'](bL))return null;var bN=document['querySelector'](BDFDB['dotCN']['tooltips']);if(!bN)return null;var bO=document['querySelector']('.BDFDB-tooltips');if(!bO){bO=bN['cloneNode']();BDFDB['addClass'](bO,'BDFDB-tooltips');bN['parentElement']['insertBefore'](bO,bN['nextSibling']);}var c=Math['round'](Math['random']()*0x2386f26fc10000);var bQ=BDFDB['htmlToElement']('');bQ['anker']=bL;var bR=bQ['firstElementChild']?bQ['firstElementChild']:bQ;if(bM['id'])bQ['id']=bM['id']['split']('\x20')['join']('');if(bM['selector'])BDFDB['addClass'](bQ,bM['selector']);if(bM['css'])BDFDB['appendLocalStyle']('BDFDBcustomTooltip'+c,bM['css'],bO);if(bM['style'])bR['style']=bM['style'];if(bM['html']===!![])bR['innerHTML']=bK;else bR['innerText']=bK;if(bM['type']&&BDFDB['disCN']['tooltip'+bM['type']['toLowerCase']()]){BDFDB['addClass'](bR,BDFDB['disCN']['tooltip'+bM['type']['toLowerCase']()]);bR['appendChild'](BDFDB['htmlToElement'](''));}if(bR['style']['getPropertyValue']('border-color')&&(bR['style']['getPropertyValue']('background-color')||bR['style']['getPropertyValue']('background-image')))BDFDB['addClass'](bR,'tooltip-customcolor');else if(bM['color']&&BDFDB['disCN']['tooltip'+bM['color']['toLowerCase']()])BDFDB['addClass'](bR,BDFDB['disCN']['tooltip'+bM['color']['toLowerCase']()]);else BDFDB['addClass'](bR,BDFDB['disCN']['tooltipblack']);bO['appendChild'](bQ);if(!bM['position']||bM['type'])bM['position']=bM['type'];if(!bM['position']||!['top','bottom','left','right']['includes'](bM['position']['toLowerCase']()))bM['position']='right';bQ['position']=bM['position']['toLowerCase']();BDFDB['updateTooltipPosition'](bQ);var bS=()=>{bQ['remove']();if(!bO['firstElementChild'])BDFDB['removeEles'](bO);};var bT=new MutationObserver(bU=>{bU['forEach'](bV=>{var bW=Array['from'](bV['removedNodes']);var bX=bW['indexOf'](bQ)>-0x1;var bY=bW['indexOf'](bL)>-0x1;var bZ=bW['some'](c0=>c0['contains'](bL));if(bX||bY||bZ){bT['disconnect']();bS();bL['removeEventListener']('mouseleave',bS);BDFDB['removeLocalStyle']('BDFDBcustomTooltip'+c,bO);}});});bT['observe'](document['body'],{'subtree':!![],'childList':!![]});bL['addEventListener']('mouseleave',bS);if(bM['delay']){BDFDB['toggleEles'](bQ);setTimeout(()=>{BDFDB['toggleEles'](bQ);},bM['delay']);}return bQ;};BDFDB['updateTooltipPosition']=function(c1){if(!Node['prototype']['isPrototypeOf'](c1)||!Node['prototype']['isPrototypeOf'](c1['anker'])||!c1['position'])return;var c2,c3,c4=BDFDB['getRects'](c1['anker']),c5=BDFDB['getRects'](c1),c6={'height':0x0,'width':0x0};var c7=c1['querySelector'](BDFDB['dotCN']['tooltippointer']);if(c7)c6=BDFDB['getRects'](c7);switch(c1['position']){case'top':c3=c4['top']-c5['height']-c6['height']+0x2;c2=c4['left']+(c4['width']-c5['width'])/0x2;break;case'bottom':c3=c4['top']+c4['height']+c6['height']-0x2;c2=c4['left']+(c4['width']-c5['width'])/0x2;break;case'left':c3=c4['top']+(c4['height']-c5['height'])/0x2;c2=c4['left']-c5['width']-c6['width']+0x2;break;case'right':c3=c4['top']+(c4['height']-c5['height'])/0x2;c2=c4['left']+c4['width']+c6['width']-0x2;break;}c1['style']['setProperty']('top',c3+'px');c1['style']['setProperty']('left',c2+'px');var c8=BDFDB['getRects'](document['querySelector'](BDFDB['dotCN']['appmount'])),c5=BDFDB['getRects'](c1);var ca=c1['querySelector'](BDFDB['dotCN']['tooltippointer']);if(c1['position']=='top'||c1['position']=='bottom'){if(c5['left']<0x0){c1['style']['setProperty']('left','5px');ca['style']['setProperty']('margin-left',c5['left']-0xa+'px');}else{var cb=c8['width']-(c5['left']+c5['width']);if(cb<0x0){c1['style']['setProperty']('left',c8['width']-c5['width']-0x5+'px');ca['style']['setProperty']('margin-left',-0x1*cb+'px');}}}else if(c1['position']=='left'||c1['position']=='right'){if(c5['top']<0x0){c1['style']['setProperty']('top','5px');ca['style']['setProperty']('margin-top',c5['top']-0xa+'px');}else{var cc=c8['height']-(c5['top']+c5['height']);if(cc<0x0){c1['style']['setProperty']('top',c8['height']-c5['height']-0x5+'px');ca['style']['setProperty']('margin-top',-0x1*cc+'px');}}}};BDFDB['createNotificationsBar']=function(cd,ce={}){if(!cd)return;var cf=document['querySelector'](BDFDB['dotCN']['layers']);if(!cf)return;var c=Math['round'](Math['random']()*0x2386f26fc10000);var ch=BDFDB['htmlToElement']('');cf['parentElement']['insertBefore'](ch,cf);var ci=ch['querySelector']('.notice-message');if(ce['platform'])for(let cj of ce['platform']['split']('\x20'))if(sG['noticeicon'+cj]){let ck=BDFDB['htmlToElement']('');BDFDB['addClass'](ck,BDFDB['disCN']['noticeplatformicon']);BDFDB['removeClass'](ck,BDFDB['disCN']['noticeicon']);ch['insertBefore'](ck,ci);}if(ce['customicon']){let cl=BDFDB['htmlToElement'](ce['customicon']);let ck=BDFDB['htmlToElement']('');if(cl['tagName']=='span'&&!cl['firstElementChild'])ck['style']['setProperty']('background','url('+ce['customicon']+')\x20center/cover\x20no-repeat');else ck['appendChild'](cl);BDFDB['addClass'](ck,BDFDB['disCN']['noticeplatformicon']);BDFDB['removeClass'](ck,BDFDB['disCN']['noticeicon']);ch['insertBefore'](ck,ci);}if(ce['btn'])ch['appendChild'](BDFDB['htmlToElement'](''));if(ce['id'])ch['id']=ce['id']['split']('\x20')['join']('');if(ce['selector'])BDFDB['addClass'](ch,ce['selector']);if(ce['css'])BDFDB['appendLocalStyle']('BDFDBcustomnotibar'+c,ce['css']);if(ce['style'])ch['style']=ce['style'];if(ce['html']===!![])ci['innerHTML']=cd;else{var cn=document['createElement']('a');var co=[];for(let cp of cd['split']('\x20')){var cq=BDFDB['encodeToHTML'](cp);cn['href']=cp;co['push'](cn['host']&&cn['host']!==window['location']['host']?'':cq);}ci['innerHTML']=co['join']('\x20');}var cr=null;if(ce['type']&&!document['querySelector'](BDFDB['dotCNS']['chatbase']+BDFDB['dotCN']['noticestreamer'])){if(cr=BDFDB['disCN']['notice'+ce['type']])BDFDB['addClass'](ch,cr);if(ce['type']=='premium'){var cs=ch['querySelector'](BDFDB['dotCN']['noticebutton']);if(cs)BDFDB['addClass'](cs,BDFDB['disCN']['noticepremiumaction']);BDFDB['addClass'](ci,BDFDB['disCN']['noticepremiumtext']);ch['insertBefore'](BDFDB['htmlToElement'](''),ci);}}if(!cr){var ct=BDFDB['colorCONVERT'](ce['color'],'RGBCOMP');if(ct){var cu=ct[0x0]>0xb4&&ct[0x1]>0xb4&&ct[0x2]>0xb4?'#000':'#FFF';var cv=BDFDB['colorCONVERT'](ct,'HEX');var cw=ct[0x0]>0xb4&&ct[0x1]>0xb4&&ct[0x2]>0xb4?'brightness(0%)':'brightness(100%)';BDFDB['appendLocalStyle']('BDFDBcustomnotibarColorCorrection'+c,'.BDFDB-notice.notice-'+c+'{background-color:'+cv+'\x20!important;}.BDFDB-notice.notice-'+c+'\x20.notice-message\x20{color:'+cu+'\x20!important;}.BDFDB-notice.notice-'+c+'\x20'+BDFDB['dotCN']['noticebutton']+'\x20{color:'+cu+'\x20!important;border-color:'+BDFDB['colorSETALPHA'](cu,0.25,'RGBA')+'\x20!important;}.BDFDB-notice.notice-'+c+'\x20'+BDFDB['dotCN']['noticebutton']+':hover\x20{color:'+cv+'\x20!important;background-color:'+cu+'\x20!important;}.BDFDB-notice.notice-'+c+'\x20'+BDFDB['dotCN']['noticedismiss']+'\x20{filter:'+cw+'\x20!important;}');}else BDFDB['addClass'](ch,BDFDB['disCN']['noticedefault']);}ch['style']['setProperty']('height','36px','important');ch['style']['setProperty']('min-width','70vw','important');ch['style']['setProperty']('left','unset','important');ch['style']['setProperty']('right','unset','important');let cx=(BDFDB['getTotalWidth'](document['body']['firstElementChild'])-BDFDB['getTotalWidth'](ch))/0x2;ch['style']['setProperty']('left',cx+'px','important');ch['style']['setProperty']('right',cx+'px','important');ch['style']['setProperty']('min-width','unset','important');ch['style']['setProperty']('width','unset','important');ch['style']['setProperty']('max-width','calc(100vw\x20-\x20'+cx*0x2+'px)','important');ch['querySelector'](BDFDB['dotCN']['noticedismiss'])['addEventListener']('click',()=>{ch['style']['setProperty']('overflow','hidden','important');ch['style']['setProperty']('height','0px','important');setTimeout(()=>{BDFDB['removeLocalStyle']('BDFDBcustomnotibar'+c);BDFDB['removeLocalStyle']('BDFDBcustomnotibarColorCorrection'+c);ch['remove']();},0x1f4);});return ch;};BDFDB['getDiscordFolder']=function(){var cy=BDFDB['getDiscordBuilt']();cy='discord'+(cy=='stable'?'':cy);return require('path')['resolve'](require('electron')['remote']['app']['getPath']('appData'),cy,BDFDB['getDiscordVersion']());};BDFDB['getPluginsFolder']=function(){var cz=require('process');var cA=require('path');if(cz['env']['injDir'])return cA['resolve'](cz['env']['injDir'],'plugins/');switch(cz['platform']){case'win32':return cA['resolve'](cz['env']['appdata'],'BetterDiscord/plugins/');case'darwin':return cA['resolve'](cz['env']['HOME'],'Library/Preferences/BetterDiscord/plugins/');default:if(cz['env']['XDG_CONFIG_HOME'])return cA['resolve'](cz['env']['XDG_CONFIG_HOME'],'BetterDiscord/plugins/');else return cA['resolve'](cz['env']['HOME'],'.config/BetterDiscord/plugins/');}};BDFDB['getThemesFolder']=function(){var cB=require('process');var cC=require('path');if(cB['env']['injDir'])return cC['resolve'](cB['env']['injDir'],'plugins/');switch(cB['platform']){case'win32':return cC['resolve'](cB['env']['appdata'],'BetterDiscord/themes/');case'darwin':return cC['resolve'](cB['env']['HOME'],'Library/Preferences/BetterDiscord/themes/');default:if(cB['env']['XDG_CONFIG_HOME'])return cC['resolve'](cB['env']['XDG_CONFIG_HOME'],'BetterDiscord/themes/');else return cC['resolve'](cB['env']['HOME'],'.config/BetterDiscord/themes/');}};BDFDB['checkWhichRepoPage']=function(cD=document['querySelector'](BDFDB['dotCN']['layer']+'[layer-id=\x22user-settings\x22]')){if(!cD)return;var cE=cD['querySelector'](BDFDB['dotCN']['_repofolderbutton']);if(!cE)return;var cF=cE['parentElement']['querySelector']('h2');if(cF&&cF['innerText']){let cG=cF['innerText']['toLowerCase']();if(cG==='plugins'||cG==='themes')return cG;}};BDFDB['checkAllUpdates']=function(){for(let cH in window['PluginUpdates']['plugins']){var cI=window['PluginUpdates']['plugins'][cH];BDFDB['checkUpdate'](cI['name'],cI['raw']);}};BDFDB['getLineOfString']=function(cJ,cK){if(typeof cJ!='string'||typeof cJ!='string')return-0x1;let cL=cJ['indexOf'](cK);if(cL<0x0)return-0x1;return cJ['substring'](0x0,cL)['split']('\x0a')['length'];};BDFDB['sortObject']=function(cM,cN,cO){var cP={};if(cN===undefined||!cN)for(let cQ of Object['keys'](cM)['sort']())cP[cQ]=cM[cQ];else{let cR=[];for(let cQ in cM)cR['push'](cM[cQ]);cR=BDFDB['sortArrayByKey'](cR,cN,cO);for(let cT of cR)for(let cQ in cM)if(BDFDB['equals'](cT,cM[cQ])){cP[cQ]=cT;break;}}return cP;};BDFDB['reverseObject']=function(cV,cW){var cX={};for(let cY of cW===undefined||!cW?Object['keys'](cV)['reverse']():Object['keys'](cV)['sort']()['reverse']())cX[cY]=cV[cY];return cX;};BDFDB['filterObject']=function(cZ,d0){return Object['keys'](cZ)['filter'](d1=>d0(cZ[d1]))['reduce']((d2,d3)=>(d2[d3]=cZ[d3],d2),{});};BDFDB['isObject']=function(d4){return d4&&Object['prototype']['isPrototypeOf'](d4)&&!Array['prototype']['isPrototypeOf'](d4);};BDFDB['isObjectEmpty']=function(d5){return typeof d5!=='object'||Object['getOwnPropertyNames'](d5)['length']==0x0;};BDFDB['pushToObject']=function(d6,d7){if(BDFDB['isObject'](d6))d6[Object['keys'](d6)['length']]=d7;};BDFDB['mapObject']=function(d8,d9){var da={};if(BDFDB['isObject'](d8)&&typeof d9=='string')for(let db in d8)if(BDFDB['isObject'](d8[db]))da[db]=d8[db][d9];return da;};BDFDB['deepAssign']=function(dc,...dd){if(!dd['length'])return dc;var de=dd['shift']();if(BDFDB['isObject'](dc)&&BDFDB['isObject'](de)){for(var df in de){if(BDFDB['isObject'](de[df])){if(!dc[df])Object['assign'](dc,{[df]:{}});BDFDB['deepAssign'](dc[df],de[df]);}else Object['assign'](dc,{[df]:de[df]});}}return BDFDB['deepAssign'](dc,...dd);};BDFDB['sortArrayByKey']=function(dg,dh,di){if(di===undefined)di=null;return dg['sort'](function(dj,dk){var dl=dj[dh],dm=dk[dh];if(dl!==di)return dldm?0x1:0x0;});};BDFDB['numSortArray']=function(dn,dp,dq){return dn['sort'](function(dr,ds){return drds?0x1:0x0;});};BDFDB['removeFromArray']=function(dt,du,dv=![]){if(!dt||!du||!Array['isArray'](dt)||!dt['includes'](du))return dt;if(!dv)dt['splice'](dt['indexOf'](du),0x1);else while(dt['indexOf'](du)>-0x1)dt['splice'](dt['indexOf'](du),0x1);return dt;};BDFDB['getAllIndexes']=function(dw,dx){var dy=[],dz=-0x1;while((dz=dw['indexOf'](dx,dz+0x1))!==-0x1)dy['push'](dz);return dy;};BDFDB['removeCopiesFromArray']=function(dA){return[...new Set(dA)];};BDFDB['highlightText']=function(dB,dC){if(!dC||dC['length']<0x1)return dB;var dD=0x0,dE=dB,dF='',dG='';BDFDB['getAllIndexes'](dB['toUpperCase'](),dC['toUpperCase']())['forEach'](dH=>{var dI=dD*(dF['length']+dG['length']);dH=dH+dI;var dJ=dH+dC['length'];var dK=[-0x1]['concat'](BDFDB['getAllIndexes'](dB['substring'](0x0,dH),'<'));var dL=[-0x1]['concat'](BDFDB['getAllIndexes'](dB['substring'](0x0,dH),'>'));if(dK[dK['length']-0x1]>dL[dL['length']-0x1])return;dB=dB['substring'](0x0,dH)+dF+dB['substring'](dH,dJ)+dG+dB['substring'](dJ);dD++;});return dB?dB:dE;};BDFDB['languages']={'$discord':{'name':'Discord\x20(English\x20(US))','id':'en-US','ownlang':'English\x20(US)','integrated':![],'dic':![],'deepl':![]},'af':{'name':'Afrikaans','id':'af','ownlang':'Afrikaans','integrated':![],'dic':!![],'deepl':![]},'sq':{'name':'Albanian','id':'sq','ownlang':'Shqiptar','integrated':![],'dic':![],'deepl':![]},'am':{'name':'Amharic','id':'am','ownlang':'አማርኛ','integrated':![],'dic':![],'deepl':![]},'ar':{'name':'Arabic','id':'ar','ownlang':'اللغة\x20العربية','integrated':![],'dic':![],'deepl':![]},'hy':{'name':'Armenian','id':'hy','ownlang':'Հայերեն','integrated':![],'dic':![],'deepl':![]},'az':{'name':'Azerbaijani','id':'az','ownlang':'آذربایجان\x20دیلی','integrated':![],'dic':![],'deepl':![]},'eu':{'name':'Basque','id':'eu','ownlang':'Euskara','integrated':![],'dic':![],'deepl':![]},'be':{'name':'Belarusian','id':'be','ownlang':'Беларуская','integrated':![],'dic':![],'deepl':![]},'bn':{'name':'Bengali','id':'bn','ownlang':'বাংলা','integrated':![],'dic':![],'deepl':![]},'bs':{'name':'Bosnian','id':'bs','ownlang':'Босански','integrated':![],'dic':![],'deepl':![]},'bg':{'name':'Bulgarian','id':'bg','ownlang':'български','integrated':!![],'dic':![],'deepl':![]},'my':{'name':'Burmese','id':'my','ownlang':'မြန်မာစာ','integrated':![],'dic':![],'deepl':![]},'ca':{'name':'Catalan','id':'ca','ownlang':'Català','integrated':![],'dic':![],'deepl':![]},'ceb':{'name':'Cebuano','id':'ceb','ownlang':'Bisaya','integrated':![],'dic':![],'deepl':![]},'ny':{'name':'Chewa','id':'ny','ownlang':'Nyanja','integrated':![],'dic':![],'deepl':![]},'zh-HK':{'name':'Chinese\x20(Hong\x20Kong)','id':'zh-HK','ownlang':'香港中文','integrated':![],'dic':![],'deepl':![]},'zh-CN':{'name':'Chinese\x20(Simplified)','id':'zh-CN','ownlang':'简体中文','integrated':![],'dic':![],'deepl':![]},'zh-TW':{'name':'Chinese\x20(Traditional)','id':'zh-TW','ownlang':'繁體中文','integrated':!![],'dic':![],'deepl':![]},'co':{'name':'Corsican','id':'co','ownlang':'Corsu','integrated':![],'dic':![],'deepl':![]},'hr':{'name':'Croatian','id':'hr','ownlang':'Hrvatski','integrated':!![],'dic':![],'deepl':![]},'cs':{'name':'Czech','id':'cs','ownlang':'Čeština','integrated':!![],'dic':![],'deepl':![]},'da':{'name':'Danish','id':'da','ownlang':'Dansk','integrated':!![],'dic':!![],'deepl':![]},'nl':{'name':'Dutch','id':'nl','ownlang':'Nederlands','integrated':!![],'dic':!![],'deepl':!![]},'en':{'name':'English','id':'en','ownlang':'English','integrated':![],'dic':!![],'deepl':!![]},'en-GB':{'name':'English\x20(UK)','id':'en-GB','ownlang':'English\x20(UK)','integrated':!![],'dic':!![],'deepl':![]},'en-US':{'name':'English\x20(US)','id':'en-US','ownlang':'English\x20(US)','integrated':!![],'dic':!![],'deepl':![]},'eo':{'name':'Esperanto','id':'eo','ownlang':'Esperanto','integrated':![],'dic':![],'deepl':![]},'et':{'name':'Estonian','id':'et','ownlang':'Eesti','integrated':![],'dic':![],'deepl':![]},'fil':{'name':'Filipino','id':'fil','ownlang':'Wikang\x20Filipino','integrated':![],'dic':![],'deepl':![]},'fi':{'name':'Finnish','id':'fi','ownlang':'Suomi','integrated':!![],'dic':![],'deepl':![]},'fr':{'name':'French','id':'fr','ownlang':'Français','integrated':!![],'dic':!![],'deepl':!![]},'fr-CA':{'name':'French\x20(Canadian)','id':'fr-CA','ownlang':'Français\x20Canadien','integrated':![],'dic':![],'deepl':![]},'fy':{'name':'Frisian','id':'fy','ownlang':'Frysk','integrated':![],'dic':![],'deepl':![]},'gl':{'name':'Galician','id':'gl','ownlang':'Galego','integrated':![],'dic':![],'deepl':![]},'ka':{'name':'Georgian','id':'ka','ownlang':'ქართული','integrated':![],'dic':![],'deepl':![]},'de':{'name':'German','id':'de','ownlang':'Deutsch','integrated':!![],'dic':!![],'deepl':!![]},'de-AT':{'name':'German\x20(Austria)','id':'de-AT','ownlang':'Österreichisch\x20Deutsch','integrated':![],'dic':![],'deepl':![]},'de-CH':{'name':'German\x20(Switzerland)','id':'de-CH','ownlang':'Schweizerdeutsch','integrated':![],'dic':![],'deepl':![]},'el':{'name':'Greek','id':'el','ownlang':'Ελληνικά','integrated':![],'dic':![],'deepl':![]},'gu':{'name':'Gujarati','id':'gu','ownlang':'ગુજરાતી','integrated':![],'dic':![],'deepl':![]},'ht':{'name':'Haitian\x20Creole','id':'ht','ownlang':'Kreyòl\x20Ayisyen','integrated':![],'dic':![],'deepl':![]},'ha':{'name':'Hausa','id':'ha','ownlang':'حَوْسَ','integrated':![],'dic':![],'deepl':![]},'haw':{'name':'Hawaiian','id':'haw','ownlang':'ʻŌlelo\x20Hawaiʻi','integrated':![],'dic':![],'deepl':![]},'iw':{'name':'Hebrew','id':'iw','ownlang':'עברית','integrated':![],'dic':![],'deepl':![]},'hi':{'name':'Hindi','id':'hi','ownlang':'हिन्दी','integrated':![],'dic':![],'deepl':![]},'hmn':{'name':'Hmong','id':'hmn','ownlang':'lol\x20Hmongb','integrated':![],'dic':![],'deepl':![]},'hu':{'name':'Hungarain','id':'hu','ownlang':'Magyar','integrated':![],'dic':![],'deepl':![]},'is':{'name':'Icelandic','id':'is','ownlang':'Íslenska','integrated':![],'dic':![],'deepl':![]},'ig':{'name':'Igbo','id':'ig','ownlang':'Asụsụ\x20Igbo','integrated':![],'dic':![],'deepl':![]},'id':{'name':'Indonesian','id':'id','ownlang':'Bahasa\x20Indonesia','integrated':![],'dic':![],'deepl':![]},'ga':{'name':'Irish','id':'ga','ownlang':'Gaeilge','integrated':![],'dic':![],'deepl':![]},'it':{'name':'Italian','id':'it','ownlang':'Italiano','integrated':!![],'dic':!![],'deepl':!![]},'ja':{'name':'Japanese','id':'ja','ownlang':'日本語','integrated':!![],'dic':![],'deepl':![]},'jv':{'name':'Javanese','id':'jv','ownlang':'ꦧꦱꦗꦮ','integrated':![],'dic':![],'deepl':![]},'kn':{'name':'Kannada','id':'kn','ownlang':'ಕನ್ನಡ','integrated':![],'dic':![],'deepl':![]},'kk':{'name':'Kazakh','id':'kk','ownlang':'Қазақ\x20Tілі','integrated':![],'dic':![],'deepl':![]},'km':{'name':'Khmer','id':'km','ownlang':'ភាសាខ្មែរ','integrated':![],'dic':![],'deepl':![]},'ko':{'name':'Korean','id':'ko','ownlang':'한국어','integrated':!![],'dic':![],'deepl':![]},'ku':{'name':'Kurdish','id':'ku','ownlang':'کوردی','integrated':![],'dic':![],'deepl':![]},'ky':{'name':'Kyrgyz','id':'ky','ownlang':'кыргызча','integrated':![],'dic':![],'deepl':![]},'lo':{'name':'Lao','id':'lo','ownlang':'ພາສາລາວ','integrated':![],'dic':![],'deepl':![]},'la':{'name':'Latin','id':'la','ownlang':'Latina','integrated':![],'dic':![],'deepl':![]},'lv':{'name':'Latvian','id':'lv','ownlang':'Latviešu','integrated':![],'dic':![],'deepl':![]},'lt':{'name':'Lithuanian','id':'lt','ownlang':'Lietuvių','integrated':![],'dic':![],'deepl':![]},'lb':{'name':'Luxembourgish','id':'lb','ownlang':'Lëtzebuergesch','integrated':![],'dic':![],'deepl':![]},'mk':{'name':'Macedonian','id':'mk','ownlang':'Mакедонски','integrated':![],'dic':![],'deepl':![]},'mg':{'name':'Malagasy','id':'mg','ownlang':'Malagasy','integrated':![],'dic':![],'deepl':![]},'ms':{'name':'Malay','id':'ms','ownlang':'بهاس\x20ملايو','integrated':![],'dic':![],'deepl':![]},'ml':{'name':'Malayalam','id':'ml','ownlang':'മലയാളം','integrated':![],'dic':![],'deepl':![]},'mt':{'name':'Maltese','id':'mt','ownlang':'Malti','integrated':![],'dic':![],'deepl':![]},'mi':{'name':'Maori','id':'mi','ownlang':'te\x20Reo\x20Māori','integrated':![],'dic':![],'deepl':![]},'mr':{'name':'Marathi','id':'mr','ownlang':'मराठी','integrated':![],'dic':![],'deepl':![]},'mn':{'name':'Mongolian','id':'mn','ownlang':'Монгол\x20Хэл','integrated':![],'dic':![],'deepl':![]},'ne':{'name':'Nepali','id':'ne','ownlang':'नेपाली','integrated':![],'dic':![],'deepl':![]},'no':{'name':'Norwegian','id':'no','ownlang':'Norsk','integrated':!![],'dic':![],'deepl':![]},'ps':{'name':'Pashto','id':'ps','ownlang':'پښتو','integrated':![],'dic':![],'deepl':![]},'fa':{'name':'Persian','id':'fa','ownlang':'فارسی','integrated':![],'dic':![],'deepl':![]},'pl':{'name':'Polish','id':'pl','ownlang':'Polski','integrated':!![],'dic':![],'deepl':!![]},'pt':{'name':'Portuguese','id':'pt','ownlang':'Português','integrated':![],'dic':!![],'deepl':!![]},'pt-BR':{'name':'Portuguese\x20(Brazil)','id':'pt-BR','ownlang':'Português\x20do\x20Brasil','integrated':!![],'dic':!![],'deepl':![]},'pt-PT':{'name':'Portuguese\x20(Portugal)','id':'pt-PT','ownlang':'Português\x20do\x20Portugal','integrated':![],'dic':![],'deepl':![]},'pa':{'name':'Punjabi','id':'pa','ownlang':'पंजाबी','integrated':![],'dic':![],'deepl':![]},'ro':{'name':'Romanian','id':'ro','ownlang':'Română','integrated':![],'dic':![],'deepl':![]},'ru':{'name':'Russian','id':'ru','ownlang':'Pусский','integrated':!![],'dic':!![],'deepl':!![]},'sm':{'name':'Samoan','id':'sm','ownlang':'Gagana\x20Sāmoa','integrated':![],'dic':![],'deepl':![]},'gd':{'name':'Scottish\x20Gaelic','id':'gd','ownlang':'Gàidhlig','integrated':![],'dic':![],'deepl':![]},'sr':{'name':'Serbian','id':'sr','ownlang':'Српски','integrated':![],'dic':![],'deepl':![]},'st':{'name':'Sotho','id':'st','ownlang':'Sesotho','integrated':![],'dic':![],'deepl':![]},'sn':{'name':'Shona','id':'sn','ownlang':'Shona','integrated':![],'dic':![],'deepl':![]},'sd':{'name':'Sindhi','id':'sd','ownlang':'سنڌي','integrated':![],'dic':![],'deepl':![]},'si':{'name':'Sinhala','id':'si','ownlang':'සිංහල','integrated':![],'dic':![],'deepl':![]},'sk':{'name':'Slovak','id':'sk','ownlang':'Slovenčina','integrated':![],'dic':![],'deepl':![]},'sl':{'name':'Slovenian','id':'sl','ownlang':'Slovenščina','integrated':![],'dic':![],'deepl':![]},'es':{'name':'Spanish','id':'es','ownlang':'Español','integrated':!![],'dic':!![],'deepl':!![]},'es-419':{'name':'Spanish\x20(Latin\x20America)','id':'es-419','ownlang':'Español\x20latinoamericano','integrated':![],'dic':![],'deepl':![]},'sw':{'name':'Swahili','id':'sw','ownlang':'Kiswahili','integrated':![],'dic':![],'deepl':![]},'sv':{'name':'Swedish','id':'sv','ownlang':'Svenska','integrated':!![],'dic':!![],'deepl':![]},'tg':{'name':'Tajik','id':'tg','ownlang':'тоҷикӣ','integrated':![],'dic':![],'deepl':![]},'ta':{'name':'Tamil','id':'ta','ownlang':'தமிழ்','integrated':![],'dic':![],'deepl':![]},'te':{'name':'Telugu','id':'te','ownlang':'తెలుగు','integrated':![],'dic':![],'deepl':![]},'th':{'name':'Thai','id':'th','ownlang':'ภาษาไทย','integrated':![],'dic':![],'deepl':![]},'tr':{'name':'Turkish','id':'tr','ownlang':'Türkçe','integrated':!![],'dic':![],'deepl':![]},'uk':{'name':'Ukrainian','id':'uk','ownlang':'Yкраїнський','integrated':!![],'dic':![],'deepl':![]},'ur':{'name':'Urdu','id':'ur','ownlang':'اُردُو','integrated':![],'dic':![],'deepl':![]},'uz':{'name':'Uzbek','id':'uz','ownlang':'اوزبیک','integrated':![],'dic':![],'deepl':![]},'vi':{'name':'Vietnamese','id':'vi','ownlang':'Tiếng\x20Việt\x20Nam','integrated':![],'dic':![],'deepl':![]},'cy':{'name':'Welsh','id':'cy','ownlang':'Cymraeg','integrated':![],'dic':![],'deepl':![]},'xh':{'name':'Xhosa','id':'xh','ownlang':'Xhosa','integrated':![],'dic':![],'deepl':![]},'yi':{'name':'Yiddish','id':'yi','ownlang':'ייִדיש\x20ייִדיש','integrated':![],'dic':![],'deepl':![]},'yo':{'name':'Yoruba','id':'yo','ownlang':'Èdè\x20Yorùbá','integrated':![],'dic':![],'deepl':![]},'zu':{'name':'Zulu','id':'zu','ownlang':'Zulu','integrated':![],'dic':![],'deepl':![]}};var dM=setInterval(()=>{if(document['querySelector']('html')['lang']){clearInterval(dM);var dN=BDFDB['getDiscordLanguage']();BDFDB['languages']['$discord']['name']='Discord\x20('+dN['name']+')';BDFDB['languages']['$discord']['id']=dN['id'];BDFDB['languages']['$discord']['ownlang']=dN['ownlang'];}},0x64);BDFDB['getDiscordBuilt']=function(){if(BDFDB['getDiscordBuilt']['built'])return BDFDB['getDiscordBuilt']['built'];else{var dO=null;try{dO=require(require('electron')['remote']['app']['getAppPath']()+'/build_info.json')['releaseChannel']['toLowerCase']();}catch(dP){try{dO=require(require('electron')['remote']['app']['getAppPath']()['replace']('app.asar','')+'/build_info.json')['releaseChannel']['toLowerCase']();}catch(dQ){var dR=BDFDB['getDiscordVersion']();if(dR){dR=dR['split']('.');if(dR['length']==0x3&&!isNaN(dR=parseInt(dR[0x2])))dO=dR>0x12c?'stable':da>0xc8?'canary':'ptb';else dO='stable';}else dO='stable';}}BDFDB['getDiscordBuilt']['built']=dO;return dO;}};BDFDB['getDiscordVersion']=function(){if(BDFDB['getDiscordBuilt']['version'])return BDFDB['getDiscordBuilt']['version'];else{var dS=null;try{dS=require('electron')['remote']['app']['getVersion']();}catch(dT){dT='';}BDFDB['getDiscordBuilt']['version']=dS;return dS;}};BDFDB['getDiscordLanguage']=function(){var dU=document['querySelector']('html')['lang']||'en-US';var dV=dU['split']('-');var dW=dV[0x0];var dX=dV[0x1]||'';dU=dX&&dW['toUpperCase']()!==dX['toUpperCase']()?dW+'-'+dX:dW;return BDFDB['languages'][dU]||BDFDB['languages'][dW]||BDFDB['languages']['en-US'];};BDFDB['getDiscordTheme']=function(){return document['querySelectorAll'](BDFDB['dotCN']['themelight'])['length']>=document['querySelectorAll'](BDFDB['dotCN']['themedark'])['length']?BDFDB['disCN']['themelight']:BDFDB['disCN']['themedark'];};BDFDB['getDiscordMode']=function(){return document['querySelectorAll'](BDFDB['dotCN']['messagegroupcompact'])['length']>=document['querySelectorAll'](BDFDB['dotCN']['messagegroupcozy'])['length']?'compact':'cozy';};BDFDB['getDiscordZoomFactor']=function(){var dY=BDFDB['getRects'](document['body']['firstElementChild']);var dZ=Math['round'](0x64*window['outerWidth']/dY['width']);var e0=Math['round'](0x64*window['outerHeight']/dY['height']);return dZe2['startsWith']('__reactInternalInstance'))];};BDFDB['getReactValue']=function(e3,e4){if(!e3||!e4)return null;let e5=Node['prototype']['isPrototypeOf'](e3)?BDFDB['getReactInstance'](e3):e3;if(!BDFDB['isObject'](e5))return null;let e6=e5;for(let e7 of e4['split']('.')['filter'](e8=>e8)){e6=e6[e7];if(e6==undefined)return null;}return e6;};BDFDB['getOwnerInstance']=function(e9){if(e9===undefined)return null;if(!e9['node']&&!e9['instance']||!e9['name']&&(!e9['props']||!Array['isArray'](e9['props'])))return null;var ea=e9['instance']||BDFDB['getReactInstance'](e9['node']);if(!ea)return null;e9['name']=e9['name']&&!Array['isArray'](e9['name'])?Array['of'](e9['name']):e9['name'];var eb=-0x1;var ec=e9['depth']===undefined?0xf:e9['depth'];var ed=e9['up']===undefined?![]:e9['up'];var ee=performance['now']();var ef=e9['time']===undefined?0x96:e9['time'];var eg=ed?{'return':!![],'sibling':!![],'_reactInternalFiber':!![]}:{'child':!![],'sibling':!![],'_reactInternalFiber':!![]};var eh={};var ei=el(ea);if(e9['all']){for(let ej in eh){if(e9['group'])for(let ea in eh[ej])delete eh[ej][ea]['BDFDBreactSearch'];else delete eh[ej]['BDFDBreactSearch'];}return eh;}else return ei;function el(ea){eb++;if(!ea||Node['prototype']['isPrototypeOf'](ea)||BDFDB['getReactInstance'](ea)||eb>ec||performance['now']()-ee>ef)eo=null;else{var en=Object['getOwnPropertyNames'](ea);var eo=null;for(let ep=0x0;eo==null&&epea['type']['displayName']===et['split']('\x20')[0x0]||ea['type']['name']===et['split']('\x20')[0x0])||e9['props']&&e9['props']['every'](eu=>es[eu]!==undefined)||e9['defaultProps']&&e9['defaultProps']['every'](ev=>es[ev]!==undefined))){if(e9['all']===undefined||!e9['all'])eo=es;else if(e9['all']){if(e9['noCopies']===undefined||!e9['noCopies']||e9['noCopies']&&!es['BDFDBreactSearch']){es['BDFDBreactSearch']=!![];if(e9['group']){if(e9['name']&&ea['type']&&(ea['type']['displayName']||ea['type']['name'])){var ew='Default';for(let ex of e9['name'])if(ea['type']['displayName']===ex['split']('\x20')[0x0]||ea['type']['name']===ex['split']('\x20')[0x0]){ew=ex;break;}if(typeof eh[ew]=='undefined')eh[ew]={};BDFDB['pushToObject'](eh[ew],es);}}else BDFDB['pushToObject'](eh,es);}}}if(eo==null&&(typeof er==='object'||typeof er==='function')&&eg[eq])eo=el(er);}}eb--;return eo;}};BDFDB['getKeyInformation']=function(ey){if(ey===undefined)return null;if(!ey['node']&&!ey['instance']||!ey['key'])return null;var ez=ey['instance']||BDFDB['getReactInstance'](ey['node']);if(!ez)return null;var eA=-0x1;var eB=ey['depth']===undefined?0xf:ey['depth'];var eC=performance['now']();var eD=ey['time']===undefined?0x96:ey['time'];var eE={'props':!![],'state':!![],'stateNode':!![],'refs':!![],'updater':!![],'prototype':!![],'type':!![],'children':ey['up']?![]:!![],'type':!![],'memoizedProps':!![],'memoizedState':!![],'child':ey['up']?![]:!![],'return':ey['up']?!![]:![],'sibling':ey['up']?![]:!![],'firstEffect':!![]};var eF={'contextSection':!![]};if(typeof ey['whitelist']==='object')Object['assign'](eE,ey['whiteList']);if(typeof ey['blacklist']==='object')Object['assign'](eF,ey['blacklist']);var eG=[];var eH=eI(ez);if(ey['all'])return eG;else return eH;function eI(ez){eA++;if(!ez||Node['prototype']['isPrototypeOf'](ez)||BDFDB['getReactInstance'](ez)||eA>eB||performance['now']()-eC>eD)eL=null;else{var eK=Object['getOwnPropertyNames'](ez);var eL=null;for(let eM=0x0;eL==null&&eM{if(!eR['req']){const c='BDFDB-WebModules';const eT=typeof window['webpackJsonp']=='function'?window['webpackJsonp']([],{[c]:(eU,eV,eT)=>eV['default']=eT},[c])['default']:window['webpackJsonp']['push']([[],{[c]:(eX,eY,eT)=>eX['exports']=eT},[[c]]]);delete eT['m'][c];delete eT['c'][c];eR['req']=eT;}return eR['req'];};BDFDB['WebModules']={};BDFDB['WebModules']['find']=function(f0){var f1=eR();for(let f2 in f1['c'])if(f1['c']['hasOwnProperty'](f2)){var f3=f1['c'][f2]['exports'];if(f3&&f3['__esModule']&&f3['default']&&f0(f3['default']))return f3['default'];if(f3&&f0(f3))return f3;}};BDFDB['WebModules']['cachedData']={'prop':{},'name':{},'proto':{}};BDFDB['WebModules']['findByProperties']=function(f4){f4=Array['isArray'](f4)?f4:Array['from'](arguments);var f5=JSON['stringify'](f4);if(BDFDB['WebModules']['cachedData']['prop'][f5])return BDFDB['WebModules']['cachedData']['prop'][f5];else{var f6=BDFDB['WebModules']['find'](f6=>f4['every'](f8=>f6[f8]!==undefined));if(f6){BDFDB['WebModules']['cachedData']['prop'][f5]=f6;return f6;}else console['warn']('%c[BDFDB]%c','color:#3a71c1;\x20font-weight:700;','',f5+'\x20[properties]\x20not\x20found\x20in\x20WebModules');}};BDFDB['WebModules']['findByName']=function(f9){var fa=JSON['stringify'](f9);if(BDFDB['WebModules']['cachedData']['name'][fa])return BDFDB['WebModules']['cachedData']['name'][fa];else{var fb=BDFDB['WebModules']['find'](fb=>fb['displayName']===f9);if(fb){BDFDB['WebModules']['cachedData']['name'][fa]=fb;return fb;}else console['warn']('%c[BDFDB]%c','color:#3a71c1;\x20font-weight:700;','',fa+'\x20[name]\x20not\x20found\x20in\x20WebModules');}};BDFDB['WebModules']['findByPrototypes']=function(fd){fd=Array['isArray'](fd)?fd:Array['from'](arguments);var fe=JSON['stringify'](fd);if(BDFDB['WebModules']['cachedData']['proto'][fe])return BDFDB['WebModules']['cachedData']['proto'][fe];else{var ff=BDFDB['WebModules']['find'](ff=>ff['prototype']&&fd['every'](fh=>ff['prototype'][fh]!==undefined));if(ff){BDFDB['WebModules']['cachedData']['proto'][fe]=ff;return ff;}else console['warn']('%c[BDFDB]%c','color:#3a71c1;\x20font-weight:700;','',fe+'\x20[prototypes]\x20not\x20found\x20in\x20WebModules');}};var fi={};fi['AckUtils']=BDFDB['WebModules']['findByProperties']('localAck','bulkAck');fi['APIModule']=BDFDB['WebModules']['findByProperties']('getAPIBaseURL');fi['Animations']=BDFDB['WebModules']['findByProperties']('spring','decay');fi['BadgeUtils']=BDFDB['WebModules']['findByProperties']('getBadgeCountString','getBadgeWidthForValue');fi['ChannelStore']=BDFDB['WebModules']['findByProperties']('getChannel','getChannels');fi['ContextMenuUtils']=BDFDB['WebModules']['findByProperties']('closeContextMenu','openContextMenu');fi['CurrentUserStore']=BDFDB['WebModules']['findByProperties']('getCurrentUser');fi['DirectMessageUtils']=BDFDB['WebModules']['findByProperties']('addRecipient','openPrivateChannel');fi['DiscordConstants']=BDFDB['WebModules']['findByProperties']('Permissions','ActivityTypes');fi['GuildStore']=BDFDB['WebModules']['findByProperties']('getGuild','getGuilds');fi['GuildChannelStore']=BDFDB['WebModules']['findByProperties']('getChannels','getDefaultChannel');fi['GuildUtils']=BDFDB['WebModules']['findByProperties']('transitionToGuildSync');fi['IconUtils']=BDFDB['WebModules']['findByProperties']('getGuildIconURL','getGuildBannerURL');fi['InviteUtils']=BDFDB['WebModules']['findByProperties']('acceptInvite','createInvite');fi['LanguageStore']=BDFDB['WebModules']['findByProperties']('getLanguages','Messages');fi['LastChannelStore']=BDFDB['WebModules']['findByProperties']('getLastSelectedChannelId');fi['LastGuildStore']=BDFDB['WebModules']['findByProperties']('getLastSelectedGuildId');fi['MemberStore']=BDFDB['WebModules']['findByProperties']('getMember','getMembers');fi['MentionUtils']=BDFDB['WebModules']['findByProperties']('getMentionCount','getMentionCounts');fi['MessageStore']=BDFDB['WebModules']['findByProperties']('getMessage','getMessages');fi['MessageUtils']=BDFDB['WebModules']['findByProperties']('parse','isMentioned');fi['MutedUtils']=BDFDB['WebModules']['findByProperties']('isGuildOrCategoryOrChannelMuted');fi['PermissionUtils']=BDFDB['WebModules']['findByProperties']('getChannelPermissions','canUser');fi['SelectChannelUtils']=BDFDB['WebModules']['findByProperties']('selectChannel','selectPrivateChannel');fi['StatusUtils']=BDFDB['WebModules']['findByProperties']('getApplicationActivity','getStatus');fi['StreamingUtils']=BDFDB['WebModules']['findByProperties']('isStreaming');fi['UnreadUtils']=BDFDB['WebModules']['findByProperties']('hasUnread','getUnreadGuilds');fi['UserStore']=BDFDB['WebModules']['findByProperties']('getUser','getUsers');BDFDB['LibraryModules']=Object['assign']({},fi);fi['React']=BDFDB['WebModules']['findByProperties']('createElement','cloneElement');fi['ReactDOM']=BDFDB['WebModules']['findByProperties']('render','findDOMNode');if(fi['React']&&fi['ReactDOM']){BDFDB['React']=Object['assign']({},fi['React'],fi['ReactDOM']);BDFDB['React']['findDOMNodeSafe']=function(fj){if(Node['prototype']['isPrototypeOf'](fj))return fj;if(!fj||!fj['updater']||typeof fj['updater']['isMounted']!=='function'||!fj['updater']['isMounted'](fj))return null;var fk=fi['ReactDOM']['findDOMNode'](fj)||BDFDB['getReactValue'](fj,'child.stateNode');return Node['prototype']['isPrototypeOf'](fk)?fk:null;};};var fl=fi['CurrentUserStore']['getCurrentUser']();BDFDB['myData']=new Proxy(fl||{},{'get':function(fm,fn){if(!fl)fl=fi['CurrentUserStore']['getCurrentUser']();return fl?fl[fn]:null;}});var fo=['before','instead','after'];var fp={'Account':'FluxContainer(Account)','BannedCard':'BannedUser','InvitationCard':'InviteRow','InviteCard':'InviteRow','PopoutContainer':'Popout','MemberCard':'Member','Note':'FluxContainer(Note)','WebhookCard':'Webhook'};var fq={'AuthWrapper':'loginscreen','BannedCard':'guildsettingsbannedcard','ChannelMember':'member','CircleIconButton':'guildbuttoncontainer','EmojiPicker':'emojipicker','FriendsOnline':'friendsonline','FriendRow':'friendsrow','Guild':'guildcontainer','GuildHeader':'guildheader','InstantInviteModal':'invitemodalwrapper','InvitationCard':'invitemodalinviterow','InviteCard':'guildsettingsinvitecard','PopoutContainer':'popout','PrivateChannelCall':'callcurrentcontainer','MemberCard':'guildsettingsmembercard','Message':'message','MessageOptionPopout':'optionpopout','MessageUsername':'messageusername','NameTag':'nametag','SearchResults':'searchresultswrap','TypingUsers':'typing','UserPopout':'userpopout','V2C_List':'_repolist','V2C_PluginCard':'_repoheader','V2C_ThemeCard':'_repoheader'};BDFDB['WebModules']['patch']=function(fr,fs,ft,fu){if(!fr||!fs||!ft||!Object['keys'](fu)['some'](fv=>fo['includes'](fv)))return null;const fw=(typeof ft==='string'?ft:ft['name'])['toLowerCase']();const fx=(fy,fz)=>(...fA)=>{try{return fy(...fA);}catch(fB){console['error']('Error\x20occurred\x20in\x20'+fz,fB);}};if(!fr['BDFDBpatch'])fr['BDFDBpatch']={};fs=Array['isArray'](fs)?fs:Array['of'](fs);for(let fC of fs){if(!fr[fC])fr[fC]=()=>{};const fD=fr[fC];if(!fr['BDFDBpatch'][fC]){fr['BDFDBpatch'][fC]={};for(let fE of fo)fr['BDFDBpatch'][fC][fE]={};fr['BDFDBpatch'][fC]['originalMethod']=fD;fr[fC]=function(){const fF={'thisObject':this,'methodArguments':arguments,'originalMethod':fD,'originalMethodName':fC,'callOriginalMethod':()=>fF['returnValue']=fF['originalMethod']['apply'](fF['thisObject'],fF['methodArguments'])};if(global['BDFDB']&&typeof BDFDB==='object'&&BDFDB['loaded']&&fr['BDFDBpatch'][fC]){if(!BDFDB['isObjectEmpty'](fr['BDFDBpatch'][fC]['before']))for(let c in BDFDB['sortObject'](fr['BDFDBpatch'][fC]['before'])){fx(fr['BDFDBpatch'][fC]['before'][c],'`before`\x20callback\x20of\x20'+fr[fC]['displayName'])(fF);}if(BDFDB['isObjectEmpty'](fr['BDFDBpatch'][fC]['instead']))fF['callOriginalMethod']();else for(let c in BDFDB['sortObject'](fr['BDFDBpatch'][fC]['instead'])){const fI=fx(fr['BDFDBpatch'][fC]['instead'][c],'`instead`\x20callback\x20of\x20'+fr[fC]['displayName'])(fF);if(fI!==undefined)fF['returnValue']=fI;}if(!BDFDB['isObjectEmpty'](fr['BDFDBpatch'][fC]['after']))for(let c in BDFDB['sortObject'](fr['BDFDBpatch'][fC]['after'])){fx(fr['BDFDBpatch'][fC]['after'][c],'`after`\x20callback\x20of\x20'+fr[fC]['displayName'])(fF);}}else fF['callOriginalMethod']();return fF['returnValue'];};}for(let fK of fo)if(typeof fu[fK]=='function')fr['BDFDBpatch'][fC][fK][fw]=fu[fK];}const fL=()=>{BDFDB['WebModules']['unpatch'](fr,fs,ft);};if(ft&&typeof ft=='object'){if(!Array['isArray'](ft['patchCancels']))ft['patchCancels']=[];ft['patchCancels']['push'](fL);}return fL;};BDFDB['WebModules']['unpatch']=function(fM,fN,fO){if(!fM||!fM['BDFDBpatch'])return;const fP=!fO?null:(typeof fO==='string'?fO:fO['name'])['toLowerCase']();fN=Array['isArray'](fN)?fN:Array['of'](fN);for(let fQ of fN){if(fM[fQ]&&fM['BDFDBpatch'][fQ]){for(let fR of fo){if(fP)delete fM['BDFDBpatch'][fQ][fR][fP];else delete fM['BDFDBpatch'][fQ][fR];}var fS=!![];for(let fR of fo)if(!BDFDB['isObjectEmpty'](fM['BDFDBpatch'][fQ][fR]))fS=![];if(fS){fM[fQ]=fM['BDFDBpatch'][fQ]['originalMethod'];delete fM['BDFDBpatch'][fQ];if(BDFDB['isObjectEmpty'](fM['BDFDBpatch']))delete fM['BDFDBpatch'];}}}};BDFDB['WebModules']['unpatchall']=function(fU){if(BDFDB['isObject'](fU)&&Array['isArray'](fU['patchCancels']))for(let fV of fU['patchCancels'])fV();};BDFDB['WebModules']['forceAllUpdates']=function(fW,fX){fX=fX&&fp[fX]?fp[fX]+'\x20'+fX:fX;if(BDFDB['isObject'](fW)&&BDFDB['isObject'](fW['patchModules'])&&(!fX||fW['patchModules'][fX])){const fY=document['querySelector'](BDFDB['dotCN']['app']);const fZ=document['querySelector']('#bd-settingspane-container\x20'+BDFDB['dotCN']['scrollerwrap']);if(fY){var g0=[];for(let g1 in fW['patchModules']){var g2=Array['isArray'](fW['patchModules'][g1])?fW['patchModules'][g1]:Array['of'](fW['patchModules'][g1]);if(g2['includes']('componentDidUpdate')||g2['includes']('componentDidMount')||g2['includes']('render'))g0['push'](g1);}g0=fX?g0['filter'](g3=>g3==fX):g0;if(g0['length']>0x0){const g4=BDFDB['getOwnerInstance']({'node':fY,'name':g0,'all':!![],'noCopies':!![],'group':!![],'depth':0x5f5e0ff,'time':0x5f5e0ff});for(let g1 in g4)for(let g6 in g4[g1])BDFDB['WebModules']['initiateProcess'](fW,g4[g1][g6],g1,['componentDidUpdate','componentDidMount','render']);if(fZ){const g7=BDFDB['getOwnerInstance']({'node':fZ,'name':g0,'all':!![],'noCopies':!![],'group':!![],'depth':0x5f5e0ff,'time':0x5f5e0ff});for(let g1 in g7)for(let g6 in g7[g1])BDFDB['WebModules']['initiateProcess'](fW,g7[g1][g6],g1,['componentDidUpdate','componentDidMount','render']);}}}}};BDFDB['WebModules']['patchModules']=function(ga){if(BDFDB['isObject'](ga)&&BDFDB['isObject'](ga['patchModules'])){for(let gb in ga['patchModules']){var gc=fp[gb];if(gc){ga['patchModules'][gc+'\x20'+gb]=ga['patchModules'][gb];delete ga['patchModules'][gb];if(!fq[gb])gf(BDFDB['WebModules']['findByName'](gc),gc+'\x20'+gb);}else if(!fq[gb])gf(BDFDB['WebModules']['findByName'](gb),gb);}for(let gb in fq){var ge=fp[gb]?fp[gb]+'\x20'+gb:gb;if(sG[fq[gb]]&&ga['patchModules'][ge])gm(fq[gb],ge);}function gf(gg,gb){if(gg){var ge=gb['split']('\x20')[0x0];gg=gg['displayName']==ge?gg:BDFDB['getOwnerInstance']({'instance':gg,'name':ge,'up':!![]});if(gg){var gj=gg['_reactInternalFiber']&&gg['_reactInternalFiber']['type']?gg['_reactInternalFiber']['type']:gg;var gk={};gk[ga['name']=='$BDFDB'?'before':'after']=gl=>{if(global['BDFDB']&&typeof BDFDB==='object'&&BDFDB['loaded'])BDFDB['WebModules']['initiateProcess'](ga,gl['thisObject'],gb,[gl['originalMethodName']]);};BDFDB['WebModules']['patch'](gj['prototype'],ga['patchModules'][gb],ga,gk);}}}function gm(gn,gb){var gp=![];const gq=document['querySelector'](BDFDB['dotCN']['app']);const gr=document['querySelector']('#bd-settingspane-container\x20'+BDFDB['dotCN']['scrollerwrap']);if(gq){var gs=BDFDB['getOwnerInstance']({'node':gq,'name':gb,'depth':0x5f5e0ff,'time':0x5f5e0ff});if(gs){gp=!![];gf(gs,gb);}}if(!gp&&gr){var gt=BDFDB['getOwnerInstance']({'node':gr,'name':gb,'depth':0x5f5e0ff,'time':0x5f5e0ff});if(gt){gp=!![];gf(gt,gb);}}if(!gp){var gu=![],gv=new MutationObserver(gw=>{gw['forEach'](gx=>{gx['addedNodes']['forEach'](gy=>{var gz=null;if(!gu&&gy['tagName']&&(gz=BDFDB['containsClass'](gy,BDFDB['disCN'][gn])?gy:gy['querySelector'](BDFDB['dotCN'][gn]))!=null){instance=BDFDB['getReactInstance'](gz);if(gA(instance,gb)){gu=!![];gv['disconnect']();gf(instance,gb);BDFDB['WebModules']['forceAllUpdates'](ga,gb);}}});});});BDFDB['addObserver'](ga,BDFDB['dotCN']['appmount'],{'name':'checkForInstanceObserver','instance':gv,'multi':!![]},{'childList':!![],'subtree':!![]});}}function gA(gB,gb){if(!gB)return![];gB=gB['displayName']==gb?gB:BDFDB['getOwnerInstance']({'instance':gB,'name':gb,'up':!![]});return gB&&(gb!='V2C_PluginCard'&&gb!='V2C_ThemeCard'||gb=='V2C_PluginCard'&&BDFDB['checkWhichRepoPage']()=='plugins'||gb=='V2C_ThemeCard'&&BDFDB['checkWhichRepoPage']()=='themes');}}};BDFDB['WebModules']['initiateProcess']=function(gD,gE,gF,gG){if(BDFDB['isObject'](gD)&&gE){gD=gD['name']=='$BDFDB'?ta:gD;gF=(gF['split']('\x20')[0x1]||gF)['replace'](/[^A-z0-9]|_/g,'');gF=gF[0x0]['toUpperCase']()+gF['slice'](0x1);if(typeof gD['process'+gF]=='function'){var gH=BDFDB['React']['findDOMNodeSafe'](gE);if(gH)gD['process'+gF](gE,gH,gG);else setImmediate(()=>{gH=BDFDB['React']['findDOMNodeSafe'](gE);if(gH)gD['process'+gF](gE,gH,gG);});}}};BDFDB['addOnSwitchListener']=function(gI){if(typeof gI['onSwitch']==='function'){BDFDB['removeOnSwitchListener'](gI);var gJ=document['querySelector'](BDFDB['dotCN']['guildswrapper']+'\x20+\x20*\x20>\x20'+BDFDB['dotCN']['chatspacer']);if(gJ){var gK=new MutationObserver(gL=>{gL['forEach'](gM=>{if(gM['target']&&BDFDB['containsClass'](gM['target'],BDFDB['disCN']['nochannel']))gI['onSwitch']();});});var gN=gJ['querySelector'](BDFDB['dotCNC']['chat']+BDFDB['dotCN']['nochannel']);if(gN)gK['observe'](gN,{'attributes':!![]});gI['onSwitchFix']=new MutationObserver(gO=>{gO['forEach'](gP=>{if(gP['addedNodes']){gP['addedNodes']['forEach'](gQ=>{if(BDFDB['containsClass'](gQ,BDFDB['disCN']['chat'],BDFDB['disCN']['nochannel'],![]))gK['observe'](gQ,{'attributes':!![]});});}});});gI['onSwitchFix']['observe'](gJ,{'childList':!![]});}}};BDFDB['removeOnSwitchListener']=function(gR){if(typeof gR['onSwitch']==='function'&&BDFDB['isObject'](gR['onSwitchFix'])){gR['onSwitchFix']['disconnect']();delete gR['onSwitchFix'];}};BDFDB['addContextListener']=function(gS){for(let gT of['User','Guild','Channel','GroupDM','Message','Native','UserSettingsCog']){if(typeof gS['on'+gT+'Context']==='function'||typeof gS['on'+gT+'ContextMenu']==='function'){if(gT=='GroupDM'){var gU=![],gV=new MutationObserver(gW=>{gW['forEach'](gX=>{gX['addedNodes']['forEach'](gY=>{var gZ=null;if(!gU&&gY['tagName']&&(gZ=BDFDB['containsClass'](gY,BDFDB['disCN']['contextmenu'])?gY:gY['querySelector'](BDFDB['dotCN']['contextmenu']))!=null){var h0=BDFDB['getReactInstance'](gZ);if(h0&&h0['return']&&h0['return']['type']&&h0['return']['type']['displayName']==gT+'ContextMenu'){gU=!![];gV['disconnect']();h1(gT,h0['return']['type']);h5(gT,h0['return']['stateNode'],h0['stateNode']);}}});});});BDFDB['addObserver'](gS,BDFDB['dotCN']['appmount'],{'name':'checkForContextObserver','instance':gV,'multi':!![]},{'childList':!![],'subtree':!![]});}else h1(gT,BDFDB['WebModules']['findByName'](gT+'ContextMenu'));}}function h1(gT,h3){if(h3&&h3['prototype'])BDFDB['WebModules']['patch'](h3['prototype'],'componentDidMount',gS,{'after':h4=>{h5(gT,h4['thisObject'],BDFDB['React']['findDOMNodeSafe'](h4['thisObject']));}});}function h5(gT,h7,h8){if(h7&&h8){if(typeof gS['on'+gT+'Context']==='function')gS['on'+gT+'Context'](h7,h8);if(typeof gS['on'+gT+'ContextMenu']==='function')gS['on'+gT+'ContextMenu'](h7,h8);BDFDB['initElements'](h8,gS);BDFDB['updateContextPosition'](h8);}}};BDFDB['addSettingsButtonListener']=function(h9){if(BDFDB['isBDv2']()&&typeof h9['getSettingsPanel']==='function'){BDFDB['removeSettingsButtonListener'](h9);BDFDB['appendSettingsButton'](h9);var ha=document['querySelector']('.bd-content-region\x20>\x20.bd-content');if(ha){h9['settingsButtonObserver']=new MutationObserver(hb=>{hb['forEach'](hc=>{if(hc['addedNodes']){hc['addedNodes']['forEach'](hd=>{if(hd['tagName']&&BDFDB['containsClass'](hd,'active'))BDFDB['appendSettingsButton'](h9);});}});});h9['settingsButtonObserver']['observe'](ha,{'childList':!![]});}}};BDFDB['appendSettingsButton']=function(he){var hf=document['querySelector'](BDFDB['dotCN']['_bdv2card']+'[data-plugin-id='+he['id']+']');if(hf){var hg=BDFDB['htmlToElement']('');hf['insertBefore'](hg,hf['querySelector'](BDFDB['d']['_bdv2button']));hg['addEventListener']('mouseenter',()=>{BDFDB['createTooltip']('Settings',hg,{'type':'top'});BDFDB['addClass'](hg,BDFDB['disCN']['_bdv2tooltipopen']);});hg['addEventListener']('mouseleave',()=>{BDFDB['removeClass'](hg,BDFDB['disCN']['_bdv2tooltipopen']);});hg['addEventListener']('click',()=>{var hh=BDFDB['htmlToElement'](''+he['name']+'\x20Settings
');var hi=he['getSettingsPanel']();hh['querySelector'](BDFDB['dotCN']['modalsubinner'])['appendChild'](typeof hi=='string'?BDFDB['htmlToElement'](hi):hi);if(typeof he['onSettingsClosed']==='function')BDFDB['addChildEventListener'](hh,'click',BDFDB['dotCNC']['modalclose']+BDFDB['dotCN']['backdrop'],()=>{he['onSettingsClosed']();});BDFDB['appendModal'](hh);});}};BDFDB['removeSettingsButtonListener']=function(hj){if(BDFDB['isBDv2']()&&typeof hj['settingsButtonObserver']==='object'){BDFDB['removeEles']('.bd-card[data-plugin-id='+hj['id']+']\x20.BDFDB-settingsbutton');hj['settingsButtonObserver']['disconnect']();delete hj['settingsButtonObserver'];}};var hk={},hl=fi['LanguageStore']?Object['assign']({},fi['LanguageStore']['_proxyContext']['defaultMessages']):{};BDFDB['LanguageStrings']=new Proxy(hl,{'get':function(hm,hn){var ho=fi['LanguageStore']['Messages'][hn];if(!ho)console['warn']('%c[BDFDB]%c','color:#3a71c1;\x20font-weight:700;','',hn+'\x20not\x20found\x20in\x20BDFDB.LanguageStrings');else{var hp=typeof ho=='object'?ho['format'](Object['assign']({},hk)):ho;if(typeof hp=='string')return hp;else if(Array['isArray'](hp)){var hq='';for(let hr of hp){if(typeof hr=='string')hq+=BDFDB['encodeToHTML'](hr);else if(BDFDB['isObject'](hr)&&hr['props'])hq+='<'+hr['type']+'>'+BDFDB['encodeToHTML'](hr['props']['children'][0x0]['toString']())+''+hr['type']+'>';}return hq;}else console['warn']('%c[BDFDB]%c','color:#3a71c1;\x20font-weight:700;','',hn+'\x20could\x20not\x20be\x20parsed\x20from\x20BDFDB.LanguageStrings');}return'';}});BDFDB['LanguageStringsCheck']=new Proxy(hl,{'get':function(hs,ht){return fi['LanguageStore']['Messages'][ht];}});BDFDB['LanguageStringsFormat']=function(hu,hv){if(hu&&hv){var hw=fi['LanguageStore']['Messages'][hu];if(hw&&typeof hw=='object'&&typeof hw['format']=='function'){try{var hx={};for(let hy in hk)hx[hy]=hv;var hz=hw['format'](hx);if(typeof hz=='string')return hz;else if(Array['isArray'](hz)){var hA='';for(let hB of hz){if(typeof hB=='string')hA+=BDFDB['encodeToHTML'](hB);else if(BDFDB['isObject'](hB)&&hB['props'])hA+='<'+hB['type']+'>'+BDFDB['encodeToHTML'](hB['props']['children'][0x0]['toString']())+''+hB['type']+'>';}return hA;}}catch(hC){console['warn']('%c[BDFDB]%c','color:#3a71c1;\x20font-weight:700;','',hu+'\x20failed\x20to\x20format\x20string\x20in\x20BDFDB.LanguageStrings');}}else console['warn']('%c[BDFDB]%c','color:#3a71c1;\x20font-weight:700;','',hu+'\x20is\x20not\x20a\x20formatable\x20string\x20in\x20BDFDB.LanguageStrings');}else console['warn']('%c[BDFDB]%c','color:#3a71c1;\x20font-weight:700;','',hu+'\x20enter\x20a\x20valid\x20key\x20and\x20value\x20to\x20format\x20the\x20string');return'';};if(fi['LanguageStore'])for(let hD in hl){try{BDFDB['LanguageStrings'][hD];}catch(hE){let hF=hE['toString']()['split']('for:\x20')[0x1];if(hF&&typeof hF=='string'&&!hk[hF])hk[hF]='{{'+hF['toLowerCase']()+'}}';}};BDFDB['equals']=function(hG,hH,hI){var hJ=-0x1;if(hI===undefined||typeof hI!=='boolean')hI=![];return hK(hG,hH);function hK(hL,hM){hJ++;var hN=!![];if(hJ>0x3e8)hN=null;else{if(typeof hL!==typeof hM)hN=![];else if(typeof hL==='undefined')hN=!![];else if(typeof hL==='symbol')hN=!![];else if(typeof hL==='boolean')hN=hL==hM;else if(typeof hL==='string')hN=hL==hM;else if(typeof hL==='number'){if(isNaN(hL)||isNaN(hM))hN=isNaN(hL)==isNaN(hM);else hN=hL==hM;}else if(!hL&&!hM)hN=!![];else if(!hL||!hM)hN=![];else if(typeof hL==='function'||typeof hL==='object'){var hO=Object['getOwnPropertyNames'](hL);var hP=Object['getOwnPropertyNames'](hM);if(hO['length']!==hP['length'])hN=![];else for(let hQ=0x0;hN===!![]&&hQi5['length']?i8:i5['length'];};BDFDB['readServerList']=function(){var i9=[],ia=BDFDB['getOwnerInstance']({'node':document['querySelector'](BDFDB['dotCN']['guilds']),'name':['Guild','GuildIcon'],'all':!![],'noCopies':!![],'depth':0x5f5e0ff,'time':0x5f5e0ff});for(let ib in ia)if(ia[ib]['props']&&ia[ib]['props']['guild'])i9['push'](Object['assign'](new ia[ib]['props']['guild']['constructor'](ia[ib]['props']['guild']),{'div':ia[ib]['handleContextMenu']?BDFDB['React']['findDOMNodeSafe'](ia[ib]):BDFDB['createServerDivCopy'](ia[ib]['props']['guild']),'instance':ia[ib]}));return i9;};BDFDB['readUnreadServerList']=function(ic){var id=[];for(let ie of ic===undefined||!Array['isArray'](ic)?BDFDB['readServerList']():ic){if(!ie)return null;let c=Node['prototype']['isPrototypeOf'](ie)?BDFDB['getServerID'](ie):typeof ie=='object'?ie['id']:ie;c=typeof c=='number'?c['toFixed']():c;if(c&&(fi['UnreadUtils']['hasUnread'](c)||fi['MentionUtils']['getMentionCount'](c)>0x0))id['push'](ie);}return id;};BDFDB['readMutedServerList']=function(ih){var ii=[];for(let ij of ih===undefined||!Array['isArray'](ih)?BDFDB['readServerList']():ih){if(!ij)return null;let c=Node['prototype']['isPrototypeOf'](ij)?BDFDB['getServerID'](ij):typeof ij=='object'?ij['id']:ij;c=typeof c=='number'?c['toFixed']():c;if(c&&fi['MutedUtils']['isGuildOrCategoryOrChannelMuted'](c))ii['push'](ij);}return ii;};BDFDB['getSelectedServer']=function(){var il=fi['GuildStore']['getGuild'](fi['LastGuildStore']['getGuildId']());if(il)return BDFDB['getServerData'](il['id'])||Object['assign'](new il['constructor'](il),{'div':null,'instance':null});else return null;};BDFDB['getServerID']=function(im){if(!Node['prototype']['isPrototypeOf'](im)||!BDFDB['getReactInstance'](im))return;let io=BDFDB['getParentEle'](BDFDB['dotCN']['guildouter'],im);if(!io)return;var ip=io['querySelector'](BDFDB['dotCN']['guildiconwrapper']);var c=ip&&ip['href']?ip['href']['split']('/')['slice'](-0x2)[0x0]:null;return c&&!isNaN(parseInt(c))?c['toString']():null;};BDFDB['getServerDiv']=function(ir){if(!ir)return null;if(Node['prototype']['isPrototypeOf'](ir))return BDFDB['getParentEle'](BDFDB['dotCN']['guildouter'],ir);else{let c=typeof ir=='object'?ir['id']:ir;if(c)return BDFDB['getParentEle'](BDFDB['dotCN']['guildouter'],document['querySelector'](BDFDB['dotCNS']['guilds']+BDFDB['dotCN']['guildiconwrapper']+'[href*=\x22/channels/'+c+'\x22]'))||BDFDB['createServerDivCopy'](c,{'pill':!![],'hover':!![],'click':!![],'menu':!![]});}return null;};BDFDB['getServerData']=function(it){if(!it)return null;let c=Node['prototype']['isPrototypeOf'](it)?BDFDB['getServerID'](it):typeof it=='object'?it['id']:it;c=typeof c=='number'?c['toFixed']():c;for(let iv of BDFDB['readServerList']())if(iv&&iv['id']==c)return iv;return null;};BDFDB['createServerDivCopy']=function(iw,ix={'pill':![],'hover':![],'click':![],'menu':![],'size':null}){let c=typeof iw=='object'?iw['id']:iw;let iz=c?fi['GuildStore']['getGuild'](c):null;if(iz){let iA=Math['round'](Math['random']()*0x2386f26fc10000);let iB=BDFDB['htmlToElement']('');let iC=iB['querySelector'](BDFDB['dotCN']['guildcontainer']);BDFDB['toggleEles'](iB['querySelector'](BDFDB['dotCN']['guildpillwrapper']),ix['pill']);if(ix['hover']){let iD=iB['querySelector'](BDFDB['dotCN']['guildiconwrapper']);let iE=iB['querySelector'](BDFDB['dotCN']['guildpillitem']);let iF=iE['style']['getPropertyValue']('opacity')!=0x0;let iG=new fi['Animations']['Value'](0x0);iG['interpolate']({'inputRange':[0x0,0x1],'outputRange':[0x32,0x1e]})['addListener'](iH=>{iC['style']['setProperty']('border-radius',iH['value']+'%');});let iI=new fi['Animations']['Value'](0x0);iI['interpolate']({'inputRange':[0x0,0x1],'outputRange':[0x8,0x14]})['addListener'](iJ=>{iE['style']['setProperty']('height',iJ['value']+'px');});let iK=new fi['Animations']['Value'](0x0);iK['interpolate']({'inputRange':[0x0,0x1],'outputRange':[0x0,0.7]})['addListener'](iL=>{iE['style']['setProperty']('opacity',''+iL['value']);});let iM=iN=>{fi['Animations']['parallel']([fi['Animations']['timing'](iG,{'toValue':iN,'duration':0xc8}),fi['Animations']['spring'](iI,{'toValue':iN,'friction':0x5})])['start']();};let iO=iP=>{fi['Animations']['parallel']([fi['Animations']['timing'](iK,{'toValue':iP,'duration':0xc8})])['start']();};iC['addEventListener']('mouseenter',()=>{iF=iE['style']['getPropertyValue']('opacity')!=0x0;if(fi['LastGuildStore']['getGuildId']()!=iz['id']){iM(0x1);if(!iF)iO(0x1);}});iC['addEventListener']('mouseleave',()=>{if(fi['LastGuildStore']['getGuildId']()!=iz['id']){iM(0x0);if(!iF)iO(0x0);}});}if(ix['click'])iC['addEventListener']('click',iQ=>{BDFDB['stopEvent'](iQ);fi['GuildUtils']['transitionToGuildSync'](iz['id']);if(typeof ix['click']=='function')ix['click']();});if(ix['menu'])iC['addEventListener']('contextmenu',iR=>{BDFDB['openGuildContextMenu'](iz['id'],iR);if(typeof ix['menu']=='function')ix['menu']();});if(ix['size']){iB['style']['setProperty']('margin','0','important');iB['style']['setProperty']('width',ix['size']+'px','important');iB['style']['setProperty']('height',ix['size']+'px','important');}return iB;}else return null;};BDFDB['openGuildContextMenu']=function(iS,iT=BDFDB['mousePosition']){let c=Node['prototype']['isPrototypeOf'](iS)?BDFDB['getServerID'](iS):typeof iS=='object'?iS['id']:iS;let iV=fi['GuildStore']['getGuild'](c);if(iV)fi['ContextMenuUtils']['openContextMenu'](iT,function(iT){return BDFDB['React']['createElement'](BDFDB['WebModules']['findByName']('GuildContextMenu'),Object['assign']({},iT,{'type':fi['DiscordConstants']['ContextMenuTypes']['GUILD_ICON_BAR'],'guild':iV,'badge':fi['MentionUtils']['getMentionCount'](iV['id']),'link':fi['DiscordConstants']['Routes']['CHANNEL'](iV['id'],fi['LastChannelStore']['getChannelId'](iV['id'])),'selected':iV['id']==fi['LastGuildStore']['getGuildId']()}));});};BDFDB['readChannelList']=function(){var iX=[],iY=BDFDB['getOwnerInstance']({'node':document['querySelector'](BDFDB['dotCN']['channels']),'name':['ChannelCategoryItem','ChannelItem','PrivateChannel'],'all':!![],'noCopies':!![],'depth':0x5f5e0ff,'time':0x5f5e0ff});for(let iZ in iY)if(iY[iZ]['props']&&!iY[iZ]['props']['ispin']&&iY[iZ]['props']['channel']&&iY[iZ]['_reactInternalFiber']['return']){var j0=BDFDB['React']['findDOMNodeSafe'](iY[iZ]);j0=j0&&BDFDB['containsClass'](j0['parentElement'],BDFDB['disCN']['categorycontainerdefault'],BDFDB['disCN']['channelcontainerdefault'],![])?j0['parentElement']:j0;iX['push'](Object['assign'](new iY[iZ]['props']['channel']['constructor'](iY[iZ]['props']['channel']),{'div':j0,'instance':iY[iZ]}));}return iX;};BDFDB['getSelectedChannel']=function(){var j1=fi['ChannelStore']['getChannel'](fi['LastChannelStore']['getChannelId']());if(j1)return BDFDB['getChannelData'](j1['id'])||Object['assign'](new j1['constructor'](j1),{'div':null,'instance':null});else return null;};BDFDB['getChannelID']=function(j2){if(!Node['prototype']['isPrototypeOf'](j2)||!BDFDB['getReactInstance'](j2))return;j2=BDFDB['getParentEle'](BDFDB['dotCNC']['categorycontainerdefault']+BDFDB['dotCNC']['channelcontainerdefault']+BDFDB['dotCN']['dmchannel'],j2);if(!j2)return;var j3=BDFDB['getKeyInformation']({'node':j2,'key':'channel'});return j3?j3['id']['toString']():null;};BDFDB['getChannelDiv']=function(j4){if(!j4)return null;let j5=BDFDB['getChannelData'](j4);return j5?j5['div']:null;};BDFDB['getChannelData']=function(j6){if(!j6)return null;let c=Node['prototype']['isPrototypeOf'](j6)?BDFDB['getChannelID'](j6):typeof j6=='object'?j6['id']:j6;c=typeof c=='number'?c['toFixed']():c;for(let j8 of BDFDB['readChannelList']())if(j8&&j8['id']==c)return j8;return null;};BDFDB['readDmList']=function(){var j9=[],ja=BDFDB['getOwnerInstance']({'node':document['querySelector'](BDFDB['dotCN']['guilds']),'name':'DirectMessage','all':!![],'noCopies':!![],'depth':0x5f5e0ff,'time':0x5f5e0ff});for(let jb in ja)if(ja[jb]['props']&&ja[jb]['props']['channel']&&ja[jb]['_reactInternalFiber']['child'])j9['push'](Object['assign'](new ja[jb]['props']['channel']['constructor'](ja[jb]['props']['channel']),{'div':BDFDB['React']['findDOMNodeSafe'](ja[jb]),'instance':ja[jb]}));return j9;};BDFDB['getDmID']=function(jc){if(!Node['prototype']['isPrototypeOf'](jc)||!BDFDB['getReactInstance'](jc))return;let jd=BDFDB['getParentEle'](BDFDB['dotCN']['guildouter'],jc);if(!jd)return;var je=jd['querySelector'](BDFDB['dotCN']['guildiconwrapper']);var c=je&&je['href']?je['href']['split']('/')['slice'](-0x1)[0x0]:null;return c&&!isNaN(parseInt(c))?c['toString']():null;};BDFDB['getDmDiv']=function(jg){if(!jg)return null;if(Node['prototype']['isPrototypeOf'](jg)){var jh=BDFDB['getParentEle'](BDFDB['dotCN']['guildouter'],jg);return jh?jh['parentElement']:jh;}else{let c=typeof jg=='object'?jg['id']:jg;if(c){var jh=BDFDB['getParentEle'](BDFDB['dotCN']['guildouter'],document['querySelector'](BDFDB['dotCNS']['guilds']+BDFDB['dotCN']['dmpill']+'\x20+\x20*\x20'+BDFDB['dotCN']['guildiconwrapper']+'[href*=\x22/channels/@me/'+c+'\x22]'));return jh&&BDFDB?jh['parentElement']:jh;}}return null;};BDFDB['getDmData']=function(jk){if(!jk)return null;let c=Node['prototype']['isPrototypeOf'](jk)?BDFDB['getDmID'](jk):typeof jk=='object'?jk['id']:jk;c=typeof c=='number'?c['toFixed']():c;for(let jm of BDFDB['readDmList']())if(jm&&jm['id']==c)return jm;return null;};BDFDB['markChannelAsRead']=function(jn){if(!jn)return;var jo=[];for(let jp of jn=Array['isArray'](jn)?jn:typeof jn=='string'||typeof jn=='number'?Array['of'](jn):Array['from'](jn)){let c=Node['prototype']['isPrototypeOf'](jp)?BDFDB['getChannelID'](jp)||BDFDB['getDmID'](jp):jp&&typeof jp=='object'?jp['id']:jp;if(c)jo['push'](c);}if(jo['length']>0x0)fi['AckUtils']['bulkAck'](jo);};BDFDB['markGuildAsRead']=function(jr){if(!jr)return;var js=[];for(let jt of Array['isArray'](jr)?jr:typeof jr=='string'||typeof jr=='number'?Array['of'](jr):Array['from'](jr)){let c=Node['prototype']['isPrototypeOf'](jt)?BDFDB['getServerID'](jt):jt&&typeof jt=='object'?jt['id']:jt;let jv=c?fi['GuildChannelStore']['getChannels'](c):null;if(jv)for(let jw in jv)if(Array['isArray'](jv[jw]))for(let jx of jv[jw])js['push'](jx['channel']['id']);}if(js['length']>0x0)fi['AckUtils']['bulkAck'](js);};BDFDB['saveAllData']=function(jy,jz,jA){var jB=require('fs'),jC,jD;if(!BDFDB['isBDv2']()){jD=typeof jz==='string'?jz:jz['name'];jC=require('path')['join'](BDFDB['getPluginsFolder'](),jD+'.config.json');}else{jD=typeof jz==='string'?jz['toLowerCase']():null;var jE=jD?BDFDB['Plugins'][jD]?BDFDB['Plugins'][jD]['contentPath']:null:jz['contentPath'];if(!jE)return;jC=require('path')['join'](jE,'settings.json');}var jF=jB['existsSync'](jC);var jG=!jF?{}:typeof BDFDB['cachedData'][jD]!=='undefined'?BDFDB['cachedData'][jD]:BDFDB['readConfig'](jC);jG[jA]=jy;if(BDFDB['isObjectEmpty'](jG[jA]))delete jG[jA];if(BDFDB['isObjectEmpty'](jG)){delete BDFDB['cachedData'][jD];if(jF)jB['unlinkSync'](jC);}else{BDFDB['cachedData'][jD]=jG;jB['writeFileSync'](jC,JSON['stringify'](jG,null,'\x09'));}};BDFDB['loadAllData']=function(jH,jI){var jJ=require('fs'),jK,jL;if(!BDFDB['isBDv2']()){jL=typeof jH==='string'?jH:jH['name'];jK=require('path')['join'](BDFDB['getPluginsFolder'](),jL+'.config.json');}else{jL=typeof jH==='string'?jH['toLowerCase']():null;var jM=jL?BDFDB['Plugins'][jL]?BDFDB['Plugins'][jL]['contentPath']:null:jH['contentPath'];if(!jM)return{};jK=require('path')['join'](jM,'settings.json');}if(!jJ['existsSync'](jK)){delete BDFDB['cachedData'][jL];return{};}var jN=typeof BDFDB['cachedData'][jL]!=='undefined'?BDFDB['cachedData'][jL]:BDFDB['readConfig'](jK);BDFDB['cachedData'][jL]=jN;return jN&&typeof jN[jI]!=='undefined'?jN[jI]:{};};BDFDB['removeAllData']=function(jO,jP){var jQ=require('fs'),jR,jS;if(!BDFDB['isBDv2']()){jS=typeof jO==='string'?jO:jO['name'];jR=require('path')['join'](BDFDB['getPluginsFolder'](),jS+'.config.json');}else{jS=typeof jO==='string'?jO['toLowerCase']():null;var jT=jS?BDFDB['Plugins'][jS]?BDFDB['Plugins'][jS]['contentPath']:null:jO['contentPath'];if(!jT)return;jR=require('path')['join'](jT,'settings.json');}var jU=jQ['existsSync'](jR);var jV=!jU?{}:typeof BDFDB['cachedData'][jS]!=='undefined'?BDFDB['cachedData'][jS]:BDFDB['readConfig'](jR);delete jV[jP];if(BDFDB['isObjectEmpty'](jV)){delete BDFDB['cachedData'][jS];if(jU)jQ['unlinkSync'](jR);}else{BDFDB['cachedData'][jS]=jV;jQ['writeFileSync'](jR,JSON['stringify'](jV,null,'\x09'));}};BDFDB['getAllData']=function(jW,jX){if(!BDFDB['isObject'](jW)||!jW['defaults']||!jW['defaults'][jX])return{};var jY=BDFDB['loadAllData'](jW,jX),jZ={},k0=![];for(let k1 in jW['defaults'][jX]){if(jY[k1]==null){jZ[k1]=jW['defaults'][jX][k1]['value'];k0=!![];}else jZ[k1]=jY[k1];}if(k0)BDFDB['saveAllData'](jZ,jW,jX);return jZ;};BDFDB['readConfig']=function(k2){try{return JSON['parse'](require('fs')['readFileSync'](k2));}catch(k3){return{};}};BDFDB['saveData']=function(c,k5,k6,k7){var k8=BDFDB['loadAllData'](k6,k7);k8[c]=k5;BDFDB['saveAllData'](k8,k6,k7);};BDFDB['loadData']=function(c,ka,kb){var kc=BDFDB['loadAllData'](ka,kb);var kd=kc[c];return kd===undefined?null:kd;};BDFDB['removeData']=function(c,kf,kg){var kh=BDFDB['loadAllData'](kf,kg);delete kh[c];BDFDB['saveAllData'](kh,kf,kg);};BDFDB['getData']=function(c,kj,kk){var kl=BDFDB['getAllData'](kj,kk);var km=kl[c];return km===undefined?null:km;};BDFDB['appendWebScript']=function(kn,ko){if(!ko&&!document['head']['querySelector']('bd-head\x20bd-scripts'))document['head']['appendChild'](BDFDB['htmlToElement'](''));ko=ko||document['head']['querySelector']('bd-head\x20bd-scripts')||document['head'];ko=Node['prototype']['isPrototypeOf'](ko)?ko:document['head'];BDFDB['removeWebScript'](kn,ko);ko['appendChild'](BDFDB['htmlToElement'](''));};BDFDB['removeWebScript']=function(kp,kq){kq=kq||document['head']['querySelector']('bd-head\x20bd-scripts')||document['head'];kq=Node['prototype']['isPrototypeOf'](kq)?kq:document['head'];BDFDB['removeEles'](kq['querySelectorAll']('script[src=\x22'+kp+'\x22]'));};BDFDB['appendWebStyle']=function(kr,ks){if(!ks&&!document['head']['querySelector']('bd-head\x20bd-styles'))document['head']['appendChild'](BDFDB['htmlToElement'](''));ks=ks||document['head']['querySelector']('bd-head\x20bd-styles')||document['head'];ks=Node['prototype']['isPrototypeOf'](ks)?ks:document['head'];BDFDB['removeWebStyle'](kr,ks);ks['appendChild'](BDFDB['htmlToElement'](''));};BDFDB['removeWebStyle']=function(kt,ku){ku=ku||document['head']['querySelector']('bd-head\x20bd-styles')||document['head'];ku=Node['prototype']['isPrototypeOf'](ku)?ku:document['head'];BDFDB['removeEles'](ku['querySelectorAll']('link[href=\x22'+kt+'\x22]'));};BDFDB['appendLocalStyle']=function(c,kw,kx){if(!kx&&!document['head']['querySelector']('bd-head\x20bd-styles'))document['head']['appendChild'](BDFDB['htmlToElement'](''));kx=kx||document['head']['querySelector']('bd-head\x20bd-styles')||document['head'];kx=Node['prototype']['isPrototypeOf'](kx)?kx:document['head'];BDFDB['removeLocalStyle'](c,kx);kx['appendChild'](BDFDB['htmlToElement'](''));};BDFDB['removeLocalStyle']=function(c,kz){kz=kz||document['head']['querySelector']('bd-head\x20bd-styles')||document['head'];kz=Node['prototype']['isPrototypeOf'](kz)?kz:document['head'];BDFDB['removeEles'](kz['querySelectorAll']('style[id=\x22'+c+'CSS\x22]'));};BDFDB['formatBytes']=function(kA,kB){kA=parseInt(kA);if(isNaN(kA)||kA<0x0)return'0\x20Bytes';if(kA==0x1)return'1\x20Byte';var kC=Math['floor'](Math['log'](kA)/Math['log'](0x400));return parseFloat((kA/Math['pow'](0x400,kC))['toFixed'](kB<0x1?0x0:kB>0x14?0x14:kB||0x2))+'\x20'+['Bytes','KB','MB','GB','TB','PB','EB','ZB','YB'][kC];};BDFDB['colorCONVERT']=function(kD,kE,kF){if(!kD)return null;kE=kE===undefined||!kE?kE='RGBCOMP':kE['toUpperCase']();kF=kF===undefined||!kF||!['RGB','RGBA','RGBCOMP','HSL','HSLA','HSLCOMP']['includes'](kF['toUpperCase']())?BDFDB['colorTYPE'](kD):kF['toUpperCase']();if(kE=='RGBCOMP'){switch(kF){case'RGBCOMP':if(kD['length']==0x3)return lf(kD);else if(kD['length']==0x4){var kG=li(kD['pop']());return lf(kD)['concat'](kG);}case'RGB':return lf(kD['replace'](/\s/g,'')['slice'](0x4,-0x1)['split'](','));case'RGBA':var kH=kD['replace'](/\s/g,'')['slice'](0x5,-0x1)['split'](',');var kG=li(kH['pop']());return lf(kH)['concat'](kG);case'HSLCOMP':if(kD['length']==0x3)return BDFDB['colorCONVERT']('hsl('+kD['join'](',')+')','RGBCOMP');else if(kD['length']==0x4){var kG=li(jg['pop']());return BDFDB['colorCONVERT']('hsl('+jg['join'](',')+')','RGBCOMP')['concat'](kG);}case'HSL':var kK=lm(kD['replace'](/\s/g,'')['slice'](0x4,-0x1)['split'](','));var kL,kM,kN,kO,kP,kQ,kR,kS;var kT=kK[0x0]/0x168,kU=parseInt(kK[0x1])/0x64,kV=parseInt(kK[0x2])/0x64;kO=Math['floor'](kT*0x6);kP=kT*0x6-kO;kQ=kV*(0x1-kU);kR=kV*(0x1-kP*kU);kS=kV*(0x1-(0x1-kP)*kU);switch(kO%0x6){case 0x0:kL=kV,kM=kS,kN=kQ;break;case 0x1:kL=kR,kM=kV,kN=kQ;break;case 0x2:kL=kQ,kM=kV,kN=kS;break;case 0x3:kL=kQ,kM=kR,kN=kV;break;case 0x4:kL=kS,kM=kQ,kN=kV;break;case 0x5:kL=kV,kM=kQ,kN=kR;break;}return[Math['round'](kL*0xff),Math['round'](kM*0xff),Math['round'](kN*0xff)];case'HSLA':var kK=kD['replace'](/\s/g,'')['slice'](0x5,-0x1)['split'](',');var kG=li(kK['pop']());return BDFDB['colorCONVERT']('hsl('+kK['join'](',')+')','RGBCOMP')['concat'](kG);case'HEX':var kY=/^#([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'](kD);return[parseInt(kY[0x1]+kY[0x1]||kY[0x4],0x10)['toString'](),parseInt(kY[0x2]+kY[0x2]||kY[0x5],0x10)['toString'](),parseInt(kY[0x3]+kY[0x3]||kY[0x6],0x10)['toString']()];default:return null;}}else{var kZ=kF=='RGBCOMP'?kD:BDFDB['colorCONVERT'](kD,'RGBCOMP',kF);if(kZ)switch(kE){case'RGB':return'rgb('+lf(kZ['slice'](0x0,0x3))['join'](',')+')';case'RGBA':kZ=kZ['slice'](0x0,0x4);var kG=kZ['length']==0x4?li(kZ['pop']()):0x1;return'rgba('+lf(kZ)['concat'](kG)['join'](',')+')';case'HSLCOMP':var kG=kZ['length']==0x4?li(kZ['pop']()):null;var kK=lm(BDFDB['colorCONVERT'](kZ,'HSL')['replace'](/\s/g,'')['split'](','));return kG?kK['concat'](kG):kK;case'HSL':var kL=ld(kZ[0x0]),kM=ld(kZ[0x1]),kN=ld(kZ[0x2]);var l6=Math['max'](kL,kM,kN),l7=Math['min'](kL,kM,kN),l8=l6-l7,kT,kU=l6===0x0?0x0:l8/l6,kV=l6/0xff;switch(l6){case l7:kT=0x0;break;case kL:kT=kM-kN+l8*(kM0xff?0xff:kP<0x0?0x0:kP;};function lf(kH){return kH['map'](kP=>{return ld(kP);});};function li(kG){kG=kG['toString']();kG=(kG['indexOf']('%')>-0x1?0.01:0x1)*parseFloat(kG['replace'](/[^0-9\.\-]/g,''));return isNaN(kG)||kG>0x1?0x1:kG<0x0?0x0:kG;};function lk(ll){ll=parseFloat(ll['toString']()['replace'](/[^0-9\.\-]/g,''));return(isNaN(ll)||ll>0x64?0x64:ll<0x0?0x0:ll)+'%';};function lm(kH){let kT=parseFloat(kH['shift']()['toString']()['replace'](/[^0-9\.\-]/g,''));kT=isNaN(kT)||kT>0x168?0x168:kT<0x0?0x0:kT;return[kT]['concat'](kH['map'](lp=>{return lk(lp);}));};};var lq=(lr,ls,lt)=>{var lu=BDFDB['colorCONVERT'](lr,'RGBCOMP');if(lu){ls=ls['toString']();ls=(ls['indexOf']('%')>-0x1?0.01:0x1)*parseFloat(ls['replace'](/[^0-9\.\-]/g,''));ls=isNaN(ls)||ls>0x1?0x1:ls<0x0?0x0:ls;lu[0x3]=ls;lt=(lt||BDFDB['colorTYPE'](lr))['toUpperCase']();lt=lt=='HSL'||lt=='RGB'?lt+'A':lt;return BDFDB['colorCONVERT'](lu,lt);}return null;};BDFDB['colorSETALPHA']=function(lv,lw,lx){if(BDFDB['isObject'](lv)){var ly={};for(let lz in lv)ly[lz]=lq(lv[lz],lw,lx);return ly;}else return lq(lv,lw,lx);};var lA=(lB,lC,lD)=>{var lE=BDFDB['colorCONVERT'](lB,'RGBCOMP');if(lE){if(parseInt(lC)!==lC){lC=lC['toString']();lC=(lC['indexOf']('%')>-0x1?0.01:0x1)*parseFloat(lC['replace'](/[^0-9\.\-]/g,''));lC=isNaN(lC)?0x0:lC;return BDFDB['colorCONVERT']([Math['round'](lE[0x0]*(0x1+lC)),Math['round'](lE[0x1]*(0x1+lC)),Math['round'](lE[0x2]*(0x1+lC))],lD||BDFDB['colorTYPE'](lB));}else return BDFDB['colorCONVERT']([Math['round'](lE[0x0]+lC),Math['round'](lE[0x1]+lC),Math['round'](lE[0x2]+lC)],lD||BDFDB['colorTYPE'](lB));}return null;};BDFDB['colorCHANGE']=function(lF,lG,lH){lG=parseFloat(lG);if(lF&&typeof lG=='number'&&!isNaN(lG)){if(BDFDB['isObject'](lF)){var lI={};for(let lJ in lF)lI[lJ]=lA(lF[lJ],lG,lH);return lI;}else return lA(lF,lG,lH);}return null;};BDFDB['colorINV']=function(lK,lL){if(lK){var lM=BDFDB['colorCONVERT'](lK,'RGBCOMP');if(lM)return BDFDB['colorCONVERT']([0xff-lM[0x0],0xff-lM[0x1],0xff-lM[0x2]],lL||BDFDB['colorTYPE'](lK));}return null;};BDFDB['colorCOMPARE']=function(lN,lO){if(lN&&lO){lN=BDFDB['colorCONVERT'](lN,'RGBCOMP');lO=BDFDB['colorCONVERT'](lO,'RGBCOMP');if(lN&&lO)return BDFDB['equals'](lN,lO);}return null;};BDFDB['colorISBRIGHT']=function(lP,lQ=0xa0){lP=BDFDB['colorCONVERT'](lP,'RGBCOMP');if(!lP)return![];return parseInt(lQ)