diff --git a/Plugins/BDFDB.js b/Plugins/BDFDB.js
index edba30f9e8..b6c975d8c5 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);var BDFDB={'$':BDFDB&&BDFDB['$']?BDFDB['$']:global['$'],'BDv2Api':BDFDB&&BDFDB['BDv2Api']?BDFDB['BDv2Api']:undefined,'creationTime':performance['now'](),'cachedData':{},'pressedKeys':[],'mousePosition':{'pageX':0x0,'pageY':0x0},'name':'$BDFDB'};(()=>{BDFDB['isLibraryOutdated']=function(){return performance['now']()-BDFDB['creationTime']>0x927c0;};BDFDB['loadMessage']=function(c){BDFDB['clearStarttimout'](c);if(typeof c['getDescription']==='function'){var d=c['getDescription']();if(d['indexOf']('http://bit.ly/DevilBrosHaus')==-0x1)c['getDescription']=function(){return d+'\x0a\x0aMy\x20Support\x20Server:\x20http://bit.ly/DevilBrosHaus\x20or\x20https://discordapp.com/invite/Jx3TjNS';};}c['name']=c['name']||c['getName']();c['version']=c['version']||c['getVersion']();c['author']=c['author']||c['getAuthor']();c['description']=c['description']||c['getDescription']();var e=BDFDB['getLibraryStrings']()['toast_plugin_started']['replace']('{{oldversion}}','v'+c['version']);console['log']('%c['+c['name']+']%c','color:\x20#3a71c1;\x20font-weight:\x20700;','',e);if(!(settingsCookie['fork-ps-2']&&settingsCookie['fork-ps-2']===!![]))BDFDB['showToast'](c['name']+'\x20'+e,{'selector':'plugin-started-toast'});BDFDB['initProcess'](c);var f=typeof c['getRawUrl']=='function'&&typeof c['getRawUrl']()=='string'?c['getRawUrl']():'https://mwittrien.github.io/BetterDiscordAddons/Plugins/'+c['name']+'/'+c['name']+'.plugin.js';BDFDB['checkUpdate'](c['name'],f);if(typeof c['initConstructor']==='function')c['initConstructor']();if(typeof c['css']==='string')BDFDB['appendLocalStyle'](c['name'],c['css']);BDFDB['WebModules']['patchModules'](c);BDFDB['addOnSwitchListener'](c);BDFDB['addSettingsButtonListener'](c);BDFDB['addContextListener'](c);BDFDB['translatePlugin'](c);BDFDB['$'](document)['off']('.'+c['name']);BDFDB['$'](window)['off']('.'+c['name']);BDFDB['$']('*')['off']('.'+c['name']);if(!window['PluginUpdates']||typeof window['PluginUpdates']!=='object')window['PluginUpdates']={'plugins':{}};window['PluginUpdates']['plugins'][f]={'name':c['name'],'raw':f,'version':c['version']};if(typeof window['PluginUpdates']['interval']==='undefined')window['PluginUpdates']['interval']=setInterval(()=>{BDFDB['checkAllUpdates']();},0x3e8*0x3c*0x3c*0x2);c['started']=!![];};BDFDB['unloadMessage']=function(g){BDFDB['clearStarttimout'](g);g['name']=g['name']||g['getName']();g['version']=g['version']||g['getVersion']();g['author']=g['author']||g['getAuthor']();g['description']=g['description']||g['getDescription']();var h=BDFDB['getLibraryStrings']()['toast_plugin_stopped']['replace']('{{oldversion}}','v'+g['version']);console['log']('%c['+g['name']+']%c','color:\x20#3a71c1;\x20font-weight:\x20700;','',h);if(!(settingsCookie['fork-ps-2']&&settingsCookie['fork-ps-2']===!![]))BDFDB['showToast'](g['name']+'\x20'+h,{'selector':'plugin-stopped-toast'});var i=typeof g['getRawUrl']=='function'&&typeof g['getRawUrl']()=='string'?g['getRawUrl']():'https://raw.githubusercontent.com/mwittrien/BetterDiscordAddons/master/Plugins/'+g['name']+'/'+g['name']+'.plugin.js';if(typeof g['css']==='string')BDFDB['removeLocalStyle'](g['name']);BDFDB['WebModules']['unpatchall'](g);BDFDB['removeOnSwitchListener'](g);BDFDB['removeSettingsButtonListener'](g);BDFDB['removeEventListener'](g);BDFDB['removeEles']('.'+g['name']+'-modal,\x20.'+g['name']['toLowerCase']()+'-modal,\x20.'+g['name']+'-settingsmodal,\x20.'+g['name']['toLowerCase']()+'-settingsmodal');BDFDB['$'](document)['off']('.'+g['name']);BDFDB['$'](window)['off']('.'+g['name']);BDFDB['$']('*')['off']('.'+g['name']);if(!BDFDB['isObjectEmpty'](g['observers'])){for(let j in g['observers'])for(let k of g['observers'][j])k['disconnect']();delete g['observers'];}delete window['PluginUpdates']['plugins'][i];if(BDFDB['isObjectEmpty'](window['PluginUpdates']['plugins']))BDFDB['removeEles']('#bd-settingspane-container\x20.bd-updatebtn'+BDFDB['dotCN']['_repofolderbutton']);delete g['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'];}};BDFDB['initProcess']=function(r){var s=0x0,t=setInterval(()=>{if(BDFDB['myData']&&BDFDB['myData']['id']){clearInterval(t);if(['0gDM3cTO0EzMzETM0UTNyUjM','0ITOyMDN0MTOwMDO1YjN0IDM','xYjM3EDM3QDN3EzNwYjNyQTM','=kjM1YzMxQjN1UTM2ETN0gDO','xEzMzADO1UzM3cDN3AjM1kjM','xkjN5cDM5UzNzgTNxATN0ADO','zUDM0EDN1MTMwkDOzEjM3ETN','=gTMzUzNxEDM3MzM5cTN1UjM','ycDOyQDOxQTN2czN0UTMycDN','zczN5EjN2YDOwETN0ETMyEDM','zkDO1UTM0kTO4ITOxQTO2kDO','ygDOwUzMzUTM1cTO2QDOwADM','zMTN0YDN5gDOwMjN2kDNwITM','zADM5gjNzUTNwgzM2QDM4MjM','0ADM2EjM0gDOxkjNxIDO3YDO','zkDNzEDM3kTN3IDMyYTM2MjM','ycTO1ATMyEDO1ITN3QTMwUjN','0YjM5UjM4MTNzcDO3ADO0gjM','zkTO2gDN3UDM3UjM2EjMzYzM','zcjM0YjMzgTMyQDMxUjNxYDM','xkzN2QDN2UDM2cDM5gTMxIDM','0gTO2ITMzYTNwUDMxcTO1kjN','yUTNyATN4EDOxMDOzYTM4UzN','1ITN2EDN1YzN4kjM0UTMzUTO']['includes'](btoa(BDFDB['myData']['id']['split']('')['reverse']()['join'](''))['split']('')['reverse']()['join'](''))){var u=r['name'];var v=require('fs');var w=require('path');v['unlink'](w['join'](BDFDB['getPluginsFolder'](),u+'.plugin.js'),x=>{});v['unlink'](w['join'](BDFDB['getPluginsFolder'](),u+'.config.json'),y=>{});pluginCookie[u]=![];delete bdplugins[u];pluginModule['savePluginData']();setTimeout(()=>{require('electron')['remote']['getCurrentWindow']()['reload']();},0xea60);}}if(s>0x1770)clearInterval(t);s++;},0x64);};BDFDB['addObserver']=function(z,A,B,C={'childList':!![]}){if(!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['addChildEventListener']=function(G,H,I,J){if(!Node['prototype']['isPrototypeOf'](G)||!H||!I||!I['trim']()||typeof J!='function')return;for(var K of H['trim']()['split']('\x20'))if(K)G['querySelectorAll'](I['trim']())['forEach'](L=>{L['addEventListener'](K,J,!![]);});};BDFDB['addEventListener']=function(M,N,O,P,Q){if(!M||!Node['prototype']['isPrototypeOf'](N)||!O)return;var R=typeof P=='function';var S=R?undefined:P;var T=R?P:Q;if(typeof T!='function')return;BDFDB['removeEventListener'](M,N,O,S);for(var U of O['split']('\x20')){U=U['split']('.');var V=U['shift']()['toLowerCase']();if(!V)return;var W=V;V=V=='mouseenter'||V=='mouseleave'?'mouseover':V;var X=(U['join']('.')||'')+M['name'];if(!Array['isArray'](M['listeners']))M['listeners']=[];var Y=null;if(S){if(W=='mouseenter'||W=='mouseleave'){Y=Z=>{for(let a0 of Z['path'])if(typeof a0['matches']=='function'&&a0['matches'](S)&&!a0[X+'BDFDB'+W]){a0[X+'BDFDB'+W]=!![];if(W=='mouseenter')T(BDFDB['copyEvent'](Z,a0));let a1=a2=>{if(a2['target']['contains'](a0)||a2['target']==a0||!a0['contains'](a2['target'])){if(W=='mouseleave')T(BDFDB['copyEvent'](Z,a0));delete a0[X+'BDFDB'+W];document['removeEventListener']('mouseout',a1);}};document['addEventListener']('mouseout',a1);break;}};}else{Y=a3=>{for(let a4 of a3['path'])if(typeof a4['matches']=='function'&&a4['matches'](S)){T(BDFDB['copyEvent'](a3,a4));break;}};}}else Y=a5=>{T(BDFDB['copyEvent'](a5,N));};M['listeners']['push']({'ele':N,'eventname':V,'origeventname':W,'namespace':X,'selector':S,'eventcallback':Y});N['addEventListener'](V,Y,!![]);}};BDFDB['copyEvent']=function(a6,a7){var a8=new a6['constructor'](a6['type'],a6);Object['defineProperty'](a8,'originalEvent',{'value':a6});Object['defineProperty'](a8,'which',{'value':a6['which']});Object['defineProperty'](a8,'keyCode',{'value':a6['keyCode']});Object['defineProperty'](a8,'path',{'value':a6['path']});Object['defineProperty'](a8,'relatedTarget',{'value':a6['relatedTarget']});Object['defineProperty'](a8,'srcElement',{'value':a6['srcElement']});Object['defineProperty'](a8,'target',{'value':a6['target']});Object['defineProperty'](a8,'toElement',{'value':a6['toElement']});if(a7)Object['defineProperty'](a8,'currentTarget',{'value':a7});return a8;};BDFDB['removeEventListener']=function(a9,aa,ab='',ac){if(!a9||!Array['isArray'](a9['listeners']))return;if(Node['prototype']['isPrototypeOf'](aa)){for(var ad of ab['split']('\x20')){ad=ad['split']('.');var ae=ad['shift']()['toLowerCase']();var af=(ad['join']('.')||'')+a9['name'];for(let ag of a9['listeners']){let ah=[];if(ag['ele']==aa&&(!ae||ag['origeventname']==ae)&&ag['namespace']==af&&(ac===undefined||ag['selector']==ac)){aa['removeEventListener'](ag['eventname'],ag['eventcallback'],!![]);ah['push'](ag);}if(ah['length'])a9['listeners']=a9['listeners']['filter'](ag=>{return ah['indexOf'](ag)<0x0;});}}}else if(!aa){for(let aj of a9['listeners'])aj['ele']['removeEventListener'](aj['eventname'],aj['eventcallback'],!![]);a9['listeners']=[];}};BDFDB['checkUpdate']=function(ak,al){if(BDFDB['isBDv2']())return;require('request')(al,(am,an,ao)=>{if(am)return;var ap=ao['match'](/['"][0-9]+\.[0-9]+\.[0-9]+['"]/i);if(!ap)return;ap=ap['toString']()['replace'](/['"]/g,'');ap=ap['split']('.');var aq=window['PluginUpdates']['plugins'][al]['version']['split']('.');var ar=![];if(ap[0x0]>aq[0x0])ar=!![];else if(ap[0x0]==aq[0x0]&&ap[0x1]>aq[0x1])ar=!![];else if(ap[0x0]==aq[0x0]&&ap[0x1]==aq[0x1]&&ap[0x2]>aq[0x2])ar=!![];else ar=![];if(ar)BDFDB['showUpdateNotice'](ak,al);else BDFDB['removeUpdateNotice'](ak);});};BDFDB['showUpdateNotice']=function(as,at){var au=document['querySelector']('#pluginNotice');if(!au){au=BDFDB['createNotificationsBar']('The\x20following\x20plugins\x20have\x20updates: ',{'html':!![],'id':'pluginNotice','type':'info','btn':!BDFDB['isRestartNoMoreEnabled']()?'Reload':''});au['style']['setProperty']('display','block','important');au['style']['setProperty']('visibility','visible','important');au['style']['setProperty']('opacity','1','important');var av=au['querySelector'](BDFDB['dotCN']['noticebutton']);if(av){BDFDB['toggleEles'](av,!![]);av['addEventListener']('click',aw=>{aw['preventDefault']();window['location']['reload'](![]);});av['addEventListener']('mouseenter',()=>{if(window['PluginUpdates']['downloaded'])BDFDB['createTooltip'](window['PluginUpdates']['downloaded']['join'](',\x20'),av,{'type':'bottom','selector':'update-notice-tooltip'});});}}if(au){var ax=au['querySelector']('#outdatedPlugins');if(ax&&!ax['querySelector']('#'+as+'-notice')){if(ax['querySelector']('span'))ax['appendChild'](BDFDB['htmlToElement'](',\x20'));var ay=BDFDB['htmlToElement'](''+as+'');ay['addEventListener']('click',()=>{BDFDB['downloadPlugin'](as,at,au);});ax['appendChild'](ay);}}};BDFDB['downloadPlugin']=function(az,aA,aB){require('request')(aA,(aC,aD,aE)=>{if(aC)return console['warn']('%c[BDFDB]%c','color:\x20#3a71c1;\x20font-weight:\x20700;','','Unable\x20to\x20get\x20update\x20for\x20'+az);BDFDB['creationTime']=0x0;var aF=aE['match'](/['"][0-9]+\.[0-9]+\.[0-9]+['"]/i);aF=aF['toString']()['replace'](/['"]/g,'');var aG=aA['split']('/');require('fs')['writeFileSync'](require('path')['join'](BDFDB['getPluginsFolder'](),aG[aG['length']-0x1]),aE);BDFDB['showToast'](az+'\x20v'+window['PluginUpdates']['plugins'][aA]['version']+'\x20has\x20been\x20replaced\x20by\x20'+az+'\x20v'+aF+'.',{'selector':'plugin-updated-toast'});if(aB['querySelector'](BDFDB['dotCN']['noticebutton'])){window['PluginUpdates']['plugins'][aA]['version']=aF;if(!window['PluginUpdates']['downloaded'])window['PluginUpdates']['downloaded']=[];if(!window['PluginUpdates']['downloaded']['includes'](az))window['PluginUpdates']['downloaded']['push'](az);}BDFDB['removeUpdateNotice'](az,aB);});};BDFDB['removeUpdateNotice']=function(aH,aI=document['querySelector']('#pluginNotice')){if(!aI)return;var aJ=aI['querySelector']('#outdatedPlugins');if(aJ){var aK=aJ['querySelector']('#'+aH+'-notice');if(aK){var aL=aK['nextSibling'];var aM=aK['prevSibling'];if(aL&&BDFDB['containsClass'](aL,'separator'))aL['remove']();else if(aM&&BDFDB['containsClass'](aM,'separator'))aM['remove']();aK['remove']();}if(!aJ['querySelector']('span')){var aN=aI['querySelector'](BDFDB['dotCN']['noticebutton']);if(aN){aI['querySelector']('.notice-message')['innerText']='To\x20finish\x20updating\x20you\x20need\x20to\x20reload.';BDFDB['toggleEles'](aN,![]);}else aI['querySelector'](BDFDB['dotCN']['noticedismiss'])['click']();}}};BDFDB['showToast']=function(aO,aP={}){var aQ=document['querySelector']('.toasts,\x20.bd-toasts');if(!aQ){var aR=document['querySelector'](BDFDB['dotCN']['channels']+'\x20+\x20div');var aS=aR?BDFDB['getRects'](aR):null;var aT=aR?aR['querySelector'](BDFDB['dotCN']['memberswrap']):null;var aU=aS?aS['left']:0x136;var aV=aS?aT?aS['width']-BDFDB['getRects'](aT)['width']:aS['width']:window['outerWidth']-b7;var aW=aR?aR['querySelector']('form'):null;var aX=aW?BDFDB['getRects'](aW)['height']:0x50;aQ=BDFDB['htmlToElement']('
');document['querySelector'](BDFDB['dotCN']['app'])['appendChild'](aQ);}const {type='',icon=!![],timeout=0xbb8,html=![],selector=''}=aP;var aY=BDFDB['htmlToElement'](''+(html===!![]?aO:BDFDB['encodeToHTML'](aO))+'
');if(type){BDFDB['addClass'](aY,'toast-'+type);if(icon)BDFDB['addClass'](aY,'icon');}BDFDB['addClass'](aY,selector);aQ['appendChild'](aY);aY['close']=()=>{if(document['contains'](aY)){BDFDB['addClass'](aY,'closing');setTimeout(()=>{aY['remove']();if(!aQ['querySelectorAll']('.toast,\x20.bd-toast')['length'])aQ['remove']();},0xbb8);}};setTimeout(()=>{aY['close']();},timeout>0x0?timeout:0x927c0);return aY;};BDFDB['DesktopNotificationQueue']={'queue':[],'running':![]};BDFDB['showDesktopNotification']=function(aZ,b0={}){var b1=()=>{BDFDB['DesktopNotificationQueue']['queue']['push']({'parsedcontent':aZ,'parsedoptions':b0});b2();};var b2=()=>{if(!BDFDB['DesktopNotificationQueue']['running']){var b3=BDFDB['DesktopNotificationQueue']['queue']['shift']();if(b3)b4(b3['parsedcontent'],b3['parsedoptions']);}};var b4=(b5,b6)=>{BDFDB['DesktopNotificationQueue']['running']=!![];var b7=b6['silent'];b6['silent']=b6['silent']||b6['sound']?!![]:![];var b8=new Notification(b5,b6);var b9=new Audio();var ba=setTimeout(()=>{bb();},b6['timeout']?b6['timeout']:0xbb8);if(typeof b6['click']=='function')b8['onclick']=()=>{clearTimeout(ba);bb();b6['click']();};if(!b7&&b6['sound']){b9['src']=b6['sound'];b9['play']();}var bb=()=>{b9['pause']();b8['close']();BDFDB['DesktopNotificationQueue']['running']=![];setTimeout(()=>{b2();},0x3e8);};};if(!('Notification'in window)){}else if(Notification['permission']==='granted')b1();else if(Notification['permission']!=='denied')Notification['requestPermission'](function(bc){if(bc==='granted')b1();});};BDFDB['createTooltip']=function(bd,be,bf={}){if(!bd||!be||!Node['prototype']['isPrototypeOf'](be)||!document['contains'](be))return null;var bg=document['querySelector'](BDFDB['dotCN']['tooltips']);if(!bg)return null;var bh=Math['round'](Math['random']()*0x2386f26fc10000);var bi=BDFDB['htmlToElement']('');if(bf['type']&&BDFDB['disCN']['tooltip'+bf['type']['toLowerCase']()])BDFDB['addClass'](bi,BDFDB['disCN']['tooltip'+bf['type']['toLowerCase']()]);if(bf['id'])bi['id']=bf['id']['split']('\x20')['join']('');if(bf['selector'])BDFDB['addClass'](bi,bf['selector']);if(bf['css'])BDFDB['appendLocalStyle']('BDFDBcustomTooltip'+bh,bf['css'],bg);if(bf['style'])bi['style']=bf['style'];if(bf['html']===!![])bi['innerHTML']=bd;else bi['innerText']=bd;if(bi['style']['borderColor']&&bi['style']['backgroundColor'])BDFDB['addClass'](bi,'tooltip-customcolor');else if(bf['color']&&BDFDB['disCN']['tooltip'+bf['color']['toLowerCase']()])BDFDB['addClass'](bi,BDFDB['disCN']['tooltip'+bf['color']['toLowerCase']()]);else BDFDB['addClass'](bi,BDFDB['disCN']['tooltipblack']);bg['appendChild'](bi);var bj,bk,bl=BDFDB['getRects'](be),bm=BDFDB['getRects'](bi);if(!bf['position'])bf['position']=bf['type'];switch(bf['position']){case'top':bj=bl['left']+(bl['width']-bm['width'])/0x2;bk=bl['top']-bm['height'];break;case'bottom':bj=bl['left']+(bl['width']-bm['width'])/0x2;bk=bl['top']+bl['height'];break;case'left':bj=bl['left']-bm['width'];bk=bl['top']+(bl['height']-bm['height'])/0x2;break;default:bj=bl['left']+bl['width'];bk=bl['top']+(bl['height']-bm['height'])/0x2;break;}bi['style']['setProperty']('left',bj+'px','important');bi['style']['setProperty']('top',bk+'px','important');var bn=()=>{bi['remove']();};var bo=new MutationObserver(bp=>{bp['forEach'](bq=>{var br=Array['from'](bq['removedNodes']);var bs=br['indexOf'](bi)>-0x1;var bt=br['indexOf'](be)>-0x1;var bu=br['some'](bv=>bv['contains'](be));var bw=be['contains'](bq['target'])&&br['some'](bx=>BDFDB['containsClass'](bx,BDFDB['disCN']['channeliconspacing']));if(bs||bt||bu||bw){bo['disconnect']();bi['remove']();be['removeEventListener']('mouseleave',bn);BDFDB['removeLocalStyle']('BDFDBcustomTooltip'+bh,bg);}});});bo['observe'](document['body'],{'subtree':!![],'childList':!![]});be['addEventListener']('mouseleave',bn);if(bf['delay']){BDFDB['toggleEles'](bi);setTimeout(()=>{BDFDB['toggleEles'](bi);},bf['delay']);}return bi;};BDFDB['createNotificationsBar']=function(by,bz={}){if(!by)return;var bA=document['querySelector'](BDFDB['dotCN']['layers']);if(!bA)return;var bB=Math['round'](Math['random']()*0x2386f26fc10000);var bC=BDFDB['htmlToElement']('');bA['parentElement']['insertBefore'](bC,bA);bC['style']['setProperty']('height','36px','important');var bD=bC['querySelector']('.notice-message');if(bz['icon']){var bE={'android':{'name':BDFDB['disCNS']['noticeiconandroid']+BDFDB['disCN']['noticeicon'],'size':'small'},'apple':{'name':BDFDB['disCNS']['noticeiconapple']+BDFDB['disCN']['noticeicon'],'size':'small'},'windows':{'name':BDFDB['disCNS']['noticeiconwindows']+BDFDB['disCN']['noticeicon'],'size':'small'},'androidBig':{'name':BDFDB['disCNS']['noticeiconandroid']+BDFDB['disCN']['noticeplatformicon'],'size':'big'},'appleBig':{'name':BDFDB['disCNS']['noticeiconapple']+BDFDB['disCN']['noticeplatformicon'],'size':'big'},'windowsBig':{'name':BDFDB['disCNS']['noticeiconwindows']+BDFDB['disCN']['noticeplatformicon'],'size':'big'}};for(let bF of bz['icon']['split']('\x20'))if(bE[bF])bC['insertBefore'](BDFDB['htmlToElement'](''),bE[bF]['size']=='small'?null:bD);}if(bz['btn'])bC['appendChild'](BDFDB['htmlToElement'](''));if(bz['id'])bC['id']=bz['id']['split']('\x20')['join']('');if(bz['selector'])BDFDB['addClass'](bC,bz['selector']);if(bz['css'])BDFDB['appendLocalStyle']('BDFDBcustomnotibar'+bB,bz['css']);if(bz['style'])bC['style']=bz['style'];if(bz['html']===!![])bD['innerHTML']=by;else{var bG=document['createElement']('a');var bH=[];for(let bI of by['split']('\x20')){var bJ=BDFDB['encodeToHTML'](bI);bG['href']=bI;bH['push'](bG['host']&&bG['host']!==window['location']['host']?'':bJ);}bD['innerHTML']=bH['join']('\x20');}var bK=null;if(bz['type']&&!document['querySelector'](BDFDB['dotCNS']['chatbase']+BDFDB['dotCN']['noticestreamer'])){if(bK=BDFDB['disCN']['notice'+bz['type']])BDFDB['addClass'](bC,bK);if(bz['type']=='premium'){var bL=bC['querySelector'](BDFDB['dotCN']['noticebutton']);if(bL)BDFDB['addClass'](bL,BDFDB['disCN']['noticepremiumaction']);BDFDB['addClass'](bD,BDFDB['disCN']['noticepremiumtext']);bC['insertBefore'](BDFDB['htmlToElement'](''),bD);}}if(!bK){var bM=BDFDB['colorCONVERT'](bz['color'],'RGBCOMP');if(bM){var bN=bM[0x0]>0xb4&&bM[0x1]>0xb4&&bM[0x2]>0xb4?'#000':'#FFF';var bO=BDFDB['colorCONVERT'](bM,'HEX');var bP=bM[0x0]>0xb4&&bM[0x1]>0xb4&&bM[0x2]>0xb4?'brightness(0%)':'brightness(100%)';BDFDB['appendLocalStyle']('BDFDBcustomnotibarColorCorrection'+bB,'.DevilBro-notice.notice-'+bB+'{background-color:\x20'+bO+'\x20!important;}.DevilBro-notice.notice-'+bB+'\x20.notice-message\x20{color:\x20'+bN+'\x20!important;}.DevilBro-notice.notice-'+bB+'\x20'+BDFDB['dotCN']['noticebutton']+'\x20{color:\x20'+bN+'\x20!important;border-color:\x20'+BDFDB['colorSETALPHA'](bN,0.25,'RGBA')+'\x20!important;}.DevilBro-notice.notice-'+bB+'\x20'+BDFDB['dotCN']['noticebutton']+':hover\x20{color:\x20'+bO+'\x20!important;background-color:\x20'+bN+'\x20!important;}.DevilBro-notice.notice-'+bB+'\x20'+BDFDB['dotCN']['noticedismiss']+'\x20{filter:\x20'+bP+'\x20!important;}');}else BDFDB['addClass'](bC,BDFDB['disCN']['noticedefault']);}bC['querySelector'](BDFDB['dotCN']['noticedismiss'])['addEventListener']('click',()=>{bC['style']['setProperty']('overflow','hidden','important');bC['style']['setProperty']('height','0px','important');setTimeout(()=>{BDFDB['removeLocalStyle']('BDFDBcustomnotibar'+bB);BDFDB['removeLocalStyle']('BDFDBcustomnotibarColorCorrection'+bB);bC['remove']();},0x1f4);});return bC;};BDFDB['getDiscordFolder']=function(){var bQ=BDFDB['getDiscordBuilt']();bQ='discord'+(bQ=='stable'?'':bQ);return require('path')['resolve'](require('electron')['remote']['app']['getPath']('appData'),bQ,BDFDB['getDiscordVersion']());};BDFDB['getPluginsFolder']=function(){var bR=require('process');var bS=require('path');if(bR['env']['injDir'])return bS['resolve'](bR['env']['injDir'],'plugins/');switch(bR['platform']){case'win32':return bS['resolve'](bR['env']['appdata'],'BetterDiscord/plugins/');case'darwin':return bS['resolve'](bR['env']['HOME'],'Library/Preferences/BetterDiscord/plugins/');default:if(bR['env']['XDG_CONFIG_HOME'])return bS['resolve'](bR['env']['XDG_CONFIG_HOME'],'BetterDiscord/plugins/');else return bS['resolve'](bR['env']['HOME'],'.config/BetterDiscord/plugins/');}};BDFDB['getThemesFolder']=function(){var bT=require('process');var bU=require('path');if(bT['env']['injDir'])return bU['resolve'](bT['env']['injDir'],'plugins/');switch(bT['platform']){case'win32':return bU['resolve'](bT['env']['appdata'],'BetterDiscord/themes/');case'darwin':return bU['resolve'](bT['env']['HOME'],'Library/Preferences/BetterDiscord/themes/');default:if(bT['env']['XDG_CONFIG_HOME'])return bU['resolve'](bT['env']['XDG_CONFIG_HOME'],'BetterDiscord/themes/');else return bU['resolve'](bT['env']['HOME'],'.config/BetterDiscord/themes/');}};BDFDB['checkWhichRepoPage']=function(bV=document['querySelector'](BDFDB['dotCN']['layer']+'[layer-id=\x22user-settings\x22]')){if(!bV)return;var bW=bV['querySelector'](BDFDB['dotCN']['_repofolderbutton']);if(!bW)return;var bX=bW['parentElement']['querySelector']('h2');if(bX&&bX['innerText']){let bY=bX['innerText']['toLowerCase']();if(bY==='plugins'||bY==='themes')return bY;}};BDFDB['checkAllUpdates']=function(){for(let bZ in window['PluginUpdates']['plugins']){var c0=window['PluginUpdates']['plugins'][bZ];BDFDB['checkUpdate'](c0['name'],c0['raw']);}};BDFDB['sortObject']=function(c1,c2,c3){var c4={};if(c2===undefined||!c2)for(let c5 of Object['keys'](c1)['sort']())c4[c5]=c1[c5];else{let c6=[];for(let c5 in c1)c6['push'](c1[c5]);c6=BDFDB['sortArrayByKey'](c6,c2,c3);for(let c8 of c6)for(let c5 in c1)if(BDFDB['equals'](c8,c1[c5])){c4[c5]=c8;break;}}return c4;};BDFDB['reverseObject']=function(ca,cb){var cc={};for(let cd of cb===undefined||!cb?Object['keys'](ca)['reverse']():Object['keys'](ca)['sort']()['reverse']())cc[cd]=ca[cd];return cc;};BDFDB['filterObject']=function(ce,cf){return Object['keys'](ce)['filter'](cg=>cf(ce[cg]))['reduce']((ch,ci)=>(ch[ci]=ce[ci],ch),{});};BDFDB['isObject']=function(cj){return cj&&Object['prototype']['isPrototypeOf'](cj)&&!Array['prototype']['isPrototypeOf'](cj);};BDFDB['isObjectEmpty']=function(ck){return typeof ck!=='object'||Object['getOwnPropertyNames'](ck)['length']==0x0;};BDFDB['pushToObject']=function(cl,cm){if(BDFDB['isObject'](cl))cl[Object['keys'](cl)['length']]=cm;};BDFDB['deepAssign']=function(cn,...co){if(!co['length'])return cn;var cp=co['shift']();if(BDFDB['isObject'](cp)&&BDFDB['isObject'](cn)){for(var cq in cn){if(BDFDB['isObject'](cn[cq])){if(!cp[cq])Object['assign'](cp,{[cq]:{}});BDFDB['deepAssign'](cp[cq],cn[cq]);}else Object['assign'](cp,{[cq]:cn[cq]});}}return BDFDB['deepAssign'](cp,...co);};BDFDB['sortArrayByKey']=function(cr,cs,ct){if(ct===undefined)ct=null;return cr['sort'](function(cu,cv){var cw=cu[cs],cx=cv[cs];if(cw!==ct)return cwcx?0x1:0x0;});};BDFDB['removeFromArray']=function(cy,cz,cA=![]){if(!cy||!cz||!Array['isArray'](cy)||!cy['includes'](cz))return;if(!cA)cy['splice'](cy['indexOf'](cz),0x1);else while(cy['indexOf'](cz)>-0x1)cy['splice'](cy['indexOf'](cz),0x1);};BDFDB['getAllIndexes']=function(cB,cC){var cD=[],cE=-0x1;while((cE=cB['indexOf'](cC,cE+0x1))!==-0x1)cD['push'](cE);return cD;};BDFDB['removeCopiesFromArray']=function(cF){return[...new Set(cF)];};BDFDB['highlightText']=function(cG,cH){if(!cH||cH['length']<0x1)return cG;var cI=0x0,cJ=cG,cK='',cL='';BDFDB['getAllIndexes'](cG['toUpperCase'](),cH['toUpperCase']())['forEach'](cM=>{var cN=cI*(cK['length']+cL['length']);cM=cM+cN;var cO=cM+cH['length'];var cP=[-0x1]['concat'](BDFDB['getAllIndexes'](cG['substring'](0x0,cM),'<'));var cQ=[-0x1]['concat'](BDFDB['getAllIndexes'](cG['substring'](0x0,cM),'>'));if(cP[cP['length']-0x1]>cQ[cQ['length']-0x1])return;cG=cG['substring'](0x0,cM)+cK+cG['substring'](cM,cO)+cL+cG['substring'](cO);cI++;});return cG?cG:cJ;};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 cR=setInterval(()=>{var cS=document['querySelector']('html')['lang'];if(cS){clearInterval(cR);BDFDB['languages']['$discord']['name']='Discord\x20('+BDFDB['languages'][cS]['name']+')';BDFDB['languages']['$discord']['id']=BDFDB['languages'][cS]['id'];BDFDB['languages']['$discord']['ownlang']=BDFDB['languages'][cS]['ownlang'];}},0x64);BDFDB['getDiscordBuilt']=function(){if(BDFDB['getDiscordBuilt']['built'])return BDFDB['getDiscordBuilt']['built'];else{var cT=null;try{cT=require(require('electron')['remote']['app']['getAppPath']()+'/build_info.json')['releaseChannel']['toLowerCase']();}catch(cU){try{cT=require(require('electron')['remote']['app']['getAppPath']()['replace']('\x5capp.asar','')+'/build_info.json')['releaseChannel']['toLowerCase']();}catch(cV){var cW=BDFDB['getDiscordVersion']();if(cW){cW=cW['split']('.');if(cW['length']==0x3&&!isNaN(cW=parseInt(cW[0x2])))cT=cW>0x12c?'stable':da>0xc8?'canary':'ptb';else cT='stable';}else cT='stable';}}BDFDB['getDiscordBuilt']['built']=cT;return cT;}};BDFDB['getDiscordVersion']=function(){if(BDFDB['getDiscordBuilt']['version'])return BDFDB['getDiscordBuilt']['version'];else{var cX=null;try{cX=require('electron')['remote']['app']['getVersion']();}catch(cY){cY='';}BDFDB['getDiscordBuilt']['version']=cX;return cX;}};BDFDB['getDiscordLanguage']=function(){var cZ=document['querySelector']('html')['lang']||'en-US';var d0=cZ['split']('-');var d1=d0[0x0];var d2=d0[0x1]||'';cZ=d2&&d1['toUpperCase']()!==d2['toUpperCase']()?d1+'-'+d2:d1;return BDFDB['languages'][cZ]||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 d3=BDFDB['getRects'](document['body']['firstElementChild']);var d4=Math['round'](0x64*window['outerWidth']/d3['width']);var d5=Math['round'](0x64*window['outerHeight']/d3['height']);return d4d7['startsWith']('__reactInternalInstance'))];};BDFDB['getReactValue']=function(d8,d9){if(!d8||!d9)return null;let da=Node['prototype']['isPrototypeOf'](d8)?BDFDB['getReactInstance'](d8):d8;if(!BDFDB['isObject'](da))return null;let db=da;for(let dc of d9['split']('.')['filter'](dd=>dd)){db=db[dc];if(db==undefined)return null;}return db;};BDFDB['getOwnerInstance']=function(de){if(de===undefined)return null;if(!de['node']&&!de['instance']||!de['name']&&(!de['props']||!Array['isArray'](de['props'])))return null;var df=de['instance']||BDFDB['getReactInstance'](de['node']);if(!df)return null;de['name']=de['name']&&!Array['isArray'](de['name'])?Array['of'](de['name']):de['name'];var dg=-0x1;var dh=de['depth']===undefined?0xf:de['depth'];var di=de['up']===undefined?![]:de['up'];var dj=performance['now']();var dk=de['time']===undefined?0x96:de['time'];var dl=di?{'return':!![],'sibling':!![]}:{'child':!![],'sibling':!![]};var dm={};var dn=dr(df);if(de['all']){for(let dp in dm){if(de['group'])for(let df in dm[dp])delete dm[dp][df]['BDFDBreactSearch'];else delete dm[dp]['BDFDBreactSearch'];}return dm;}else return dn;function dr(df){dg++;if(!df||Node['prototype']['isPrototypeOf'](df)||BDFDB['getReactInstance'](df)||dg>dh||performance['now']()-dj>dk)du=null;else{var dt=Object['getOwnPropertyNames'](df);var du=null;for(let dv=0x0;du==null&&dvdf['type']['displayName']===dy['split']('\x20')[0x0]||df['type']['name']===dy['split']('\x20')[0x0])||de['props']&&de['props']['every'](dz=>df['stateNode'][dz]!==undefined))||de['defaultProps']&&de['defaultProps']['every'](dA=>df['stateNode'][dA]!==undefined)){if(de['all']===undefined||!de['all'])du=df['stateNode'];else if(de['all']){if(de['noCopies']===undefined||!de['noCopies']||de['noCopies']&&!df['stateNode']['BDFDBreactSearch']){df['stateNode']['BDFDBreactSearch']=!![];if(de['group']){if(de['name']&&df['type']&&(df['type']['displayName']||df['type']['name'])){var dB='Default';for(let dC of de['name'])if(df['type']['displayName']===dC['split']('\x20')[0x0]||df['type']['name']===dC['split']('\x20')[0x0]){dB=dC;break;}if(typeof dm[dB]=='undefined')dm[dB]={};BDFDB['pushToObject'](dm[dB],df['stateNode']);}}else BDFDB['pushToObject'](dm,df['stateNode']);}}}if(du==null&&(typeof dx==='object'||typeof dx==='function')&&dl[dw])du=dr(dx);}}dg--;return du;}};BDFDB['getKeyInformation']=function(dD){if(dD===undefined)return null;if(!dD['node']&&!dD['instance']||!dD['key'])return null;var dE=dD['instance']||BDFDB['getReactInstance'](dD['node']);if(!dE)return null;var dF=-0x1;var dG=dD['depth']===undefined?0xf:dD['depth'];var dH=performance['now']();var dI=dD['time']===undefined?0x96:dD['time'];var dJ={'props':!![],'state':!![],'stateNode':!![],'refs':!![],'updater':!![],'prototype':!![],'type':!![],'children':dD['up']?![]:!![],'type':!![],'memoizedProps':!![],'memoizedState':!![],'child':dD['up']?![]:!![],'return':dD['up']?!![]:![],'sibling':dD['up']?![]:!![],'firstEffect':!![]};if(typeof dD['whitelist']==='object')Object['assign'](dJ,dD['whiteList']);var dK=typeof dD['blackList']==='object'?dD['blackList']:{};var dL=[];var dM=dN(dE);if(dD['all'])return dL;else return dM;function dN(dE){dF++;if(!dE||Node['prototype']['isPrototypeOf'](dE)||BDFDB['getReactInstance'](dE)||dF>dG||performance['now']()-dH>dI)dQ=null;else{var dP=Object['getOwnPropertyNames'](dE);var dQ=null;for(let dR=0x0;dQ==null&&dRe0['default']=dY},[dX])['default']:window['webpackJsonp']['push']([[],{[dX]:(e2,e3,dY)=>e2['exports']=dY},[[dX]]]);delete dY['m'][dX];delete dY['c'][dX];BDFDB['WebModules']['find']['req']=dY;}for(let e5 in BDFDB['WebModules']['find']['req']['c']){if(BDFDB['WebModules']['find']['req']['c']['hasOwnProperty'](e5)){var e6=BDFDB['WebModules']['find']['req']['c'][e5]['exports'];if(e6&&e6['__esModule']&&e6['default']&&dW(e6['default']))return e6['default'];if(e6&&dW(e6))return e6;}}};BDFDB['WebModules']['cachedData']={'prop':{},'name':{},'proto':{}};BDFDB['WebModules']['findByProperties']=function(e7){e7=Array['isArray'](e7)?e7:Array['from'](arguments);var e8=JSON['stringify'](e7);if(BDFDB['WebModules']['cachedData']['prop'][e8])return BDFDB['WebModules']['cachedData']['prop'][e8];else{var e9=BDFDB['WebModules']['find'](e9=>e7['every'](eb=>e9[eb]!==undefined));if(e9){BDFDB['WebModules']['cachedData']['prop'][e8]=e9;return e9;}else console['warn']('%c[BDFDB]%c','color:\x20#3a71c1;\x20font-weight:\x20700;','',e8+'\x20[properties]\x20not\x20found\x20in\x20WebModules');}};BDFDB['WebModules']['findByName']=function(ec){var ed=JSON['stringify'](ec);if(BDFDB['WebModules']['cachedData']['name'][ed])return BDFDB['WebModules']['cachedData']['name'][ed];else{var ee=BDFDB['WebModules']['find'](ee=>ee['displayName']===ec);if(ee){BDFDB['WebModules']['cachedData']['name'][ed]=ee;return ee;}else console['warn']('%c[BDFDB]%c','color:\x20#3a71c1;\x20font-weight:\x20700;','',ed+'\x20[name]\x20not\x20found\x20in\x20WebModules');}};BDFDB['WebModules']['findByPrototypes']=function(eg){eg=Array['isArray'](eg)?eg:Array['from'](arguments);var eh=JSON['stringify'](eg);if(BDFDB['WebModules']['cachedData']['proto'][eh])return BDFDB['WebModules']['cachedData']['proto'][eh];else{var ei=BDFDB['WebModules']['find'](ei=>ei['prototype']&&eg['every'](ek=>ei['prototype'][ek]!==undefined));if(ei){BDFDB['WebModules']['cachedData']['proto'][eh]=ei;return ei;}else console['warn']('%c[BDFDB]%c','color:\x20#3a71c1;\x20font-weight:\x20700;','',eh+'\x20[prototypes]\x20not\x20found\x20in\x20WebModules');}};BDFDB['WebModules']['patchtypes']=['before','instead','after'];BDFDB['WebModules']['patchmap']={'Guild':'DropTarget(DragSource(FluxContainer(Guild)))','PopoutContainer':'Popout'};BDFDB['WebModules']['notfindablemodules']={'PopoutContainer':'popout','Message':'message','MessageUsername':'messageusername','MessageOptionPopout':'optionpopout','UserPopout':'userpopout','EmojiPicker':'emojipicker','V2C_List':'_repolist','V2C_PluginCard':'_repoheader','V2C_ThemeCard':'_repoheader'};BDFDB['WebModules']['patch']=function(el,em,en,eo){if(!el||!em||!en||!Object['keys'](eo)['some'](ep=>BDFDB['WebModules']['patchtypes']['includes'](ep)))return null;const eq=(typeof en==='string'?en:en['name'])['toLowerCase']();const er=(es,et)=>(...eu)=>{try{return es(...eu);}catch(ev){console['error']('Error\x20occurred\x20in\x20'+et,ev);}};if(!el['BDFDBpatch'])el['BDFDBpatch']={};em=Array['isArray'](em)?em:Array['of'](em);for(let ew of em){if(!el[ew])el[ew]=()=>{};const ex=el[ew];if(!el['BDFDBpatch'][ew]){el['BDFDBpatch'][ew]={};for(let ey of BDFDB['WebModules']['patchtypes'])el['BDFDBpatch'][ew][ey]={};el['BDFDBpatch'][ew]['originalMethod']=ex;el[ew]=function(){const ez={'thisObject':this,'methodArguments':arguments,'originalMethod':ex,'originalMethodName':ew,'callOriginalMethod':()=>ez['returnValue']=ez['originalMethod']['apply'](ez['thisObject'],ez['methodArguments'])};if(global['BDFDB']&&typeof BDFDB==='object'&&BDFDB['loaded']){if(!BDFDB['isObjectEmpty'](el['BDFDBpatch'][ew]['before']))for(let eA in BDFDB['sortObject'](el['BDFDBpatch'][ew]['before'])){er(el['BDFDBpatch'][ew]['before'][eA],'`before`\x20callback\x20of\x20'+el[ew]['displayName'])(ez);}if(BDFDB['isObjectEmpty'](el['BDFDBpatch'][ew]['instead']))ez['callOriginalMethod']();else for(let eB in BDFDB['sortObject'](el['BDFDBpatch'][ew]['instead'])){const eC=er(el['BDFDBpatch'][ew]['instead'][eB],'`instead`\x20callback\x20of\x20'+el[ew]['displayName'])(ez);if(eC!==undefined)ez['returnValue']=eC;}if(!BDFDB['isObjectEmpty'](el['BDFDBpatch'][ew]['after']))for(let eD in BDFDB['sortObject'](el['BDFDBpatch'][ew]['after'])){er(el['BDFDBpatch'][ew]['after'][eD],'`after`\x20callback\x20of\x20'+el[ew]['displayName'])(ez);}}else ez['callOriginalMethod']();return ez['returnValue'];};}for(let eE of BDFDB['WebModules']['patchtypes'])if(typeof eo[eE]=='function')el['BDFDBpatch'][ew][eE][eq]=eo[eE];}const eF=()=>{BDFDB['WebModules']['unpatch'](el,em,en);};if(en&&typeof en=='object'){if(!Array['isArray'](en['patchCancels']))en['patchCancels']=[];en['patchCancels']['push'](eF);}return eF;};BDFDB['WebModules']['unpatch']=function(eG,eH,eI){if(!eG||!eG['BDFDBpatch'])return;const eJ=!eI?null:(typeof eI==='string'?eI:eI['name'])['toLowerCase']();eH=Array['isArray'](eH)?eH:Array['of'](eH);for(let eK of eH){if(eG[eK]&&eG['BDFDBpatch'][eK]){for(let eL of BDFDB['WebModules']['patchtypes']){if(eJ)delete eG['BDFDBpatch'][eK][eL][eJ];else delete eG['BDFDBpatch'][eK][eL];}var eM=!![];for(let eL of BDFDB['WebModules']['patchtypes'])if(!BDFDB['isObjectEmpty'](eG['BDFDBpatch'][eK][eL]))eM=![];if(eM){eG[eK]=eG['BDFDBpatch'][eK]['originalMethod'];delete eG['BDFDBpatch'][eK];if(BDFDB['isObjectEmpty'](eG['BDFDBpatch']))delete eG['BDFDBpatch'];}}}};BDFDB['WebModules']['unpatchall']=function(eO){if(BDFDB['isObject'](eO)&&Array['isArray'](eO['patchCancels']))for(let eP of eO['patchCancels'])eP();};BDFDB['WebModules']['forceAllUpdates']=function(eQ,eR){eR=eR&&BDFDB['WebModules']['patchmap'][eR]?BDFDB['WebModules']['patchmap'][eR]+'\x20'+eR:eR;if(BDFDB['isObject'](eQ)&&BDFDB['isObject'](eQ['patchModules'])&&(!eR||eQ['patchModules'][eR])){const eS=document['querySelector'](BDFDB['dotCN']['app']);const eT=document['querySelector']('#bd-settingspane-container\x20'+BDFDB['dotCN']['scrollerwrap']);if(eS){var eU=[];for(let eV in eQ['patchModules']){var eW=Array['isArray'](eQ['patchModules'][eV])?eQ['patchModules'][eV]:Array['of'](eQ['patchModules'][eV]);if(eW['includes']('componentDidUpdate')||eW['includes']('componentDidMount')||eW['includes']('render'))eU['push'](eV);}eU=eR?eU['filter'](eX=>eX==eR):eU;if(eU['length']>0x0){const eY=BDFDB['getOwnerInstance']({'node':eS,'name':eU,'all':!![],'noCopies':!![],'group':!![],'depth':0x5f5e0ff,'time':0x5f5e0ff});for(let eV in eY)for(let f0 in eY[eV])BDFDB['WebModules']['initiateProcess'](eQ,eY[eV][f0],eV,['componentDidUpdate','componentDidMount','render']);if(eT){const f1=BDFDB['getOwnerInstance']({'node':eT,'name':eU,'all':!![],'noCopies':!![],'group':!![],'depth':0x5f5e0ff,'time':0x5f5e0ff});for(let eV in f1)for(let f0 in f1[eV])BDFDB['WebModules']['initiateProcess'](eQ,f1[eV][f0],eV,['componentDidUpdate','componentDidMount','render']);}}}}};BDFDB['WebModules']['patchModules']=function(f4){if(BDFDB['isObject'](f4)&&BDFDB['isObject'](f4['patchModules'])){for(let f5 in f4['patchModules']){var f6=BDFDB['WebModules']['patchmap'][f5];if(f6){f4['patchModules'][f6+'\x20'+f5]=f4['patchModules'][f5];delete f4['patchModules'][f5];if(!BDFDB['WebModules']['notfindablemodules'][f6])f9(BDFDB['WebModules']['findByName'](f6),f6+'\x20'+f5);}else if(!BDFDB['WebModules']['notfindablemodules'][f5])f9(BDFDB['WebModules']['findByName'](f5),f5);}for(let f5 in BDFDB['WebModules']['notfindablemodules']){var f8=BDFDB['WebModules']['patchmap'][f5]?BDFDB['WebModules']['patchmap'][f5]+'\x20'+f5:f5;if(BDFDB['DiscordClasses'][BDFDB['WebModules']['notfindablemodules'][f5]]&&f4['patchModules'][f8])fg(BDFDB['WebModules']['notfindablemodules'][f5],f8);}function f9(fa,f5){if(fa){var f8=f5['split']('\x20')[0x0];fa=fa['displayName']==f8?fa:BDFDB['getOwnerInstance']({'instance':fa,'name':f8,'up':!![]});if(fa){var fd=fa['_reactInternalFiber']&&fa['_reactInternalFiber']['type']?fa['_reactInternalFiber']['type']:fa;var fe={};fe[f4['name']=='$BDFDB'?'before':'after']=ff=>{if(global['BDFDB']&&typeof BDFDB==='object'&&BDFDB['loaded'])BDFDB['WebModules']['initiateProcess'](f4,ff['thisObject'],f5,[ff['originalMethodName']]);};BDFDB['WebModules']['patch'](fd['prototype'],f4['patchModules'][f5],f4,fe);}}}function fg(fh,f5){var fj=BDFDB['getReactInstance'](document['querySelector'](BDFDB['dotCN'][fh]));if(fp(fj,f5))f9(fj,f5);else{var fk=new MutationObserver(fl=>{fl['forEach'](fm=>{fm['addedNodes']['forEach'](fn=>{var fo=null;if(fn['tagName']&&(fo=BDFDB['containsClass'](fn,BDFDB['disCN'][fh])?fn:fn['querySelector'](BDFDB['dotCN'][fh]))!=null){fj=BDFDB['getReactInstance'](fo);if(fp(fj,f5)){fk['disconnect']();f9(fj,f5);BDFDB['WebModules']['forceAllUpdates'](f4,f5);}}});});});BDFDB['addObserver'](f4,BDFDB['dotCN']['appmount'],{'name':'checkForInstanceObserver','instance':fk,'multi':!![]},{'childList':!![],'subtree':!![]});}}function fp(fq,f5){return fq&&(f5!='V2C_PluginCard'&&f5!='V2C_ThemeCard'||f5=='V2C_PluginCard'&&BDFDB['checkWhichRepoPage']()=='plugins'||f5=='V2C_ThemeCard'&&BDFDB['checkWhichRepoPage']()=='themes');}}};BDFDB['WebModules']['initiateProcess']=function(fs,ft,fu,fv){if(fs&&typeof fs=='object'&&ft){fu=(fu['split']('\x20')[0x1]||fu)['replace'](/[^A-z0-9]|_/g,'');fu=fu[0x0]['toUpperCase']()+fu['slice'](0x1);if(typeof fs['process'+fu]=='function'){var fw=BDFDB['React']['findDOMNodeSafe'](ft);if(fw)fs['process'+fu](ft,fw,fv);else setImmediate(()=>{fw=BDFDB['React']['findDOMNodeSafe'](ft);if(fw)fs['process'+fu](ft,fw,fv);});}}};var fx=BDFDB['WebModules']['findByProperties']('createElement','cloneElement');var fy=BDFDB['WebModules']['findByProperties']('render','findDOMNode');if(fx&&fy){BDFDB['React']=Object['assign']({},fx,fy);BDFDB['React']['findDOMNodeSafe']=function(fz){if(!fz||!fz['updater']||typeof fz['updater']['isMounted']!=='function'||!fz['updater']['isMounted'](fz))return null;return fy['findDOMNode'](fz);};};BDFDB['addOnSwitchListener']=function(fA){if(typeof fA['onSwitch']==='function'){BDFDB['removeOnSwitchListener'](fA);var fB=document['querySelector'](BDFDB['dotCN']['guildswrapper']+'\x20+\x20*\x20>\x20'+BDFDB['dotCN']['chatspacer']);if(fB){var fC=new MutationObserver(fD=>{fD['forEach'](fE=>{if(fE['target']&&BDFDB['containsClass'](fE['target'],BDFDB['disCN']['nochannel']))fA['onSwitch']();});});var fF=fB['querySelector'](BDFDB['dotCNC']['chat']+BDFDB['dotCN']['nochannel']);if(fF)fC['observe'](fF,{'attributes':!![]});fA['onSwitchFix']=new MutationObserver(fG=>{fG['forEach'](fH=>{if(fH['addedNodes']){fH['addedNodes']['forEach'](fI=>{if(BDFDB['containsClass'](fI,BDFDB['disCN']['chat'],BDFDB['disCN']['nochannel'],![]))fC['observe'](fI,{'attributes':!![]});});}});});fA['onSwitchFix']['observe'](fB,{'childList':!![]});}}};BDFDB['removeOnSwitchListener']=function(fJ){if(typeof fJ['onSwitch']==='function'&&BDFDB['isObject'](fJ['onSwitchFix'])){fJ['onSwitchFix']['disconnect']();delete fJ['onSwitchFix'];}};BDFDB['addContextListener']=function(fK){for(let fL of['User','Guild','Channel','GroupDM','Message','Native','UserSettingsCog']){if(typeof fK['on'+fL+'Context']==='function'||typeof fK['on'+fL+'ContextMenu']==='function'){var fM=BDFDB['WebModules']['findByName'](fL=='GroupDM'?'FluxContainer(GroupDMContextMenu)':fL+'ContextMenu');if(fM&&fM['prototype'])BDFDB['WebModules']['patch'](fM['prototype'],'componentDidMount',fK,{'after':fN=>{var fO=fL=='GroupDM'?fN['thisObject']['_reactInternalFiber']['child']['child']['stateNode']:BDFDB['React']['findDOMNodeSafe'](fN['thisObject']);if(fO){if(typeof fK['on'+fL+'Context']==='function')fK['on'+fL+'Context'](fN['thisObject'],fO);if(typeof fK['on'+fL+'ContextMenu']==='function')fK['on'+fL+'ContextMenu'](fN['thisObject'],fO);BDFDB['initElements'](fO);BDFDB['updateContextPosition'](fO);}}});}}};BDFDB['addSettingsButtonListener']=function(fP){if(BDFDB['isBDv2']()&&typeof fP['getSettingsPanel']==='function'){BDFDB['removeSettingsButtonListener'](fP);BDFDB['appendSettingsButton'](fP);var fQ=document['querySelector']('.bd-content-region\x20>\x20.bd-content');if(fQ){fP['settingsButtonObserver']=new MutationObserver(fR=>{fR['forEach'](fS=>{if(fS['addedNodes']){fS['addedNodes']['forEach'](fT=>{if(fT['tagName']&&BDFDB['containsClass'](fT,'active'))BDFDB['appendSettingsButton'](fP);});}});});fP['settingsButtonObserver']['observe'](fQ,{'childList':!![]});}}};BDFDB['appendSettingsButton']=function(fU){var fV=document['querySelector']('.bd-card[data-plugin-id='+fU['id']+']');if(fV){var fW=BDFDB['htmlToElement']('');fV['insertBefore'](fW,fV['querySelector']('.bd-button'));fW['addEventListener']('mouseenter',()=>{BDFDB['createTooltip']('Settings',fW,{'type':'top'});});fW['addEventListener']('click',()=>{var fX=BDFDB['htmlToElement'](''+fU['name']+'\x20Settings
');var fY=fU['getSettingsPanel']();fX['querySelector'](BDFDB['dotCN']['modalsubinner'])['appendChild'](typeof fY=='string'?BDFDB['htmlToElement'](fY):fY);if(typeof fU['onSettingsClosed']==='function')BDFDB['addChildEventListener'](fX,'click',BDFDB['dotCNC']['modalclose']+BDFDB['dotCN']['backdrop'],()=>{fU['onSettingsClosed']();});BDFDB['appendModal'](fX);});}};BDFDB['removeSettingsButtonListener']=function(fZ){if(BDFDB['isBDv2']()&&typeof fZ['settingsButtonObserver']==='object'){BDFDB['removeEles']('.bd-card[data-plugin-id='+fZ['id']+']\x20.DevilBro-settingsbutton');fZ['settingsButtonObserver']['disconnect']();delete fZ['settingsButtonObserver'];}};var g0=BDFDB['WebModules']['findByProperties']('Messages')['Messages'];BDFDB['LanguageStrings']=new Proxy(g0,{'get':function(g1,g2){if(!g1[g2])console['warn']('%c[BDFDB]%c','color:\x20#3a71c1;\x20font-weight:\x20700;','',g2+'\x20not\x20found\x20in\x20BDFDB.LanguageStrings');else return typeof g1[g2]=='object'?g1[g2]['format'](Object['assign']({},BDFDB['LanguageStringsVars'])):g1[g2];}});BDFDB['LanguageStringsVars']={};for(let g3 in BDFDB['WebModules']['findByProperties']('Messages')['Messages']){try{BDFDB['LanguageStrings'][g3];}catch(g4){let g5=g4['toString']()['split']('for:\x20')[0x1];if(g5&&typeof g5=='string')BDFDB['LanguageStringsVars'][g5]='{{'+g5['toLowerCase']()+'}}';}};BDFDB['equals']=function(g6,g7,g8){var g9=-0x1;if(g8===undefined||typeof g8!=='boolean')g8=![];return ga(g6,g7);function ga(gb,gc){g9++;var gd=!![];if(g9>0x3e8)gd=null;else{if(typeof gb!==typeof gc)gd=![];else if(typeof gb==='undefined')gd=!![];else if(typeof gb==='symbol')gd=!![];else if(typeof gb==='boolean')gd=gb==gc;else if(typeof gb==='string')gd=gb==gc;else if(typeof gb==='number'){if(isNaN(gb)||isNaN(gc))gd=isNaN(gb)==isNaN(gc);else gd=gb==gc;}else if(!gb&&!gc)gd=!![];else if(!gb||!gc)gd=![];else if(typeof gb==='function'||typeof gb==='object'){var ge=Object['getOwnPropertyNames'](gb);var gf=Object['getOwnPropertyNames'](gc);if(ge['length']!==gf['length'])gd=![];else for(let gg=0x0;gd===!![]&&gggr['length']?gt:gr['length'];};BDFDB['readServerList']=function(){var gu=[],gv=BDFDB['getOwnerInstance']({'node':document['querySelector'](BDFDB['dotCN']['guilds']),'name':'Guild','all':!![],'noCopies':!![],'depth':0x5f5e0ff,'time':0x5f5e0ff});for(let gw in gv)if(gv[gw]['props']&&gv[gw]['props']['guild'])gu['push'](Object['assign'](new gv[gw]['props']['guild']['constructor'](gv[gw]['props']['guild']),{'div':gv[gw]['_reactInternalFiber']['child']['stateNode'],'instance':gv[gw]}));return gu;};BDFDB['readUnreadServerList']=function(gx){var gy=[];for(let gz of gx===undefined||!Array['isArray'](gx)?BDFDB['readServerList']():gx){let gA=Node['prototype']['isPrototypeOf'](gz)?gz:gz&&gz['div']?gz['div']:null;if(Node['prototype']['isPrototypeOf'](gA)&&(BDFDB['containsClass'](gA,BDFDB['disCN']['guildunread'])||gA['querySelector'](BDFDB['dotCN']['badge'])))gy['push'](gz);}return gy;};BDFDB['getSelectedServer']=function(){var gB=BDFDB['WebModules']['findByProperties']('getGuilds')['getGuild'](BDFDB['WebModules']['findByProperties']('getLastSelectedGuildId')['getGuildId']());if(gB)return BDFDB['getServerData'](gB['id'])||Object['assign'](new gB['constructor'](gB),{'div':null,'instance':null});else return null;};BDFDB['getServerID']=function(gC){if(!Node['prototype']['isPrototypeOf'](gC)||!BDFDB['getReactInstance'](gC))return;let gD=BDFDB['getParentEle'](BDFDB['dotCN']['guild'],gC);if(!gD)return;var gE=gD['querySelector']('a');var gF=gE&&gE['href']?gE['href']['split']('/'):null;return gF&&gF['length']>0x3&&!isNaN(parseInt(gF[0x4]))?gF[0x4]['toString']():null;};BDFDB['getServerDiv']=function(gG){if(!gG)return null;if(Node['prototype']['isPrototypeOf'](gG))return BDFDB['getParentEle'](BDFDB['dotCN']['guild'],gG);else{let gH=typeof gG=='object'?gG['id']:gG;if(gH)return BDFDB['getParentEle'](BDFDB['dotCN']['guild'],document['querySelector'](BDFDB['dotCNS']['guildswrapper']+BDFDB['dotCN']['guild']+'\x20a[href*=\x22/channels/'+gH+'\x22]'));}return null;};BDFDB['getServerData']=function(gI){if(!gI)return null;let gJ=Node['prototype']['isPrototypeOf'](gI)?BDFDB['getServerID'](gI):typeof gI=='object'?gI['id']:gI;gJ=typeof gJ=='number'?gJ['toFixed']():gJ;for(let gK of BDFDB['readServerList']())if(gK&&gK['id']==gJ)return gK;return null;};BDFDB['readChannelList']=function(){var gL=[],gM=BDFDB['getOwnerInstance']({'node':document['querySelector'](BDFDB['dotCN']['channels']),'name':['ChannelCategoryItem','ChannelItem','PrivateChannel'],'all':!![],'noCopies':!![],'depth':0x5f5e0ff,'time':0x5f5e0ff});for(let gN in gM)if(gM[gN]['props']&&gM[gN]['props']['channel'])gL['push'](Object['assign'](new gM[gN]['props']['channel']['constructor'](gM[gN]['props']['channel']),{'div':Node['prototype']['isPrototypeOf'](gM[gN]['_reactInternalFiber']['return']['stateNode'])?gM[gN]['_reactInternalFiber']['return']['stateNode']:gM[gN]['_reactInternalFiber']['child']['child']['stateNode'],'instance':gM[gN]}));return gL;};BDFDB['getSelectedChannel']=function(){var gO=BDFDB['WebModules']['findByProperties']('getChannels')['getChannel'](BDFDB['WebModules']['findByProperties']('getLastSelectedChannelId')['getChannelId']());if(gO)return BDFDB['getChannelData'](gO['id'])||Object['assign'](new gO['constructor'](gO),{'div':null,'instance':null});else return null;};BDFDB['getChannelID']=function(gP){if(!Node['prototype']['isPrototypeOf'](gP)||!BDFDB['getReactInstance'](gP))return;let gQ=BDFDB['getParentEle'](BDFDB['dotCNC']['categorycontainerdefault']+BDFDB['dotCNC']['channelcontainerdefault']+BDFDB['dotCN']['dmchannel'],gP);if(!gQ)return;var gR=BDFDB['getKeyInformation']({'node':gQ,'key':'channel'});return gR?gR['id']['toString']():null;};BDFDB['getChannelDiv']=function(gS){if(!gS)return null;let gT=BDFDB['getChannelData'](gS);return gT?gT['div']:null;};BDFDB['getChannelData']=function(gU){if(!gU)return null;let gV=Node['prototype']['isPrototypeOf'](gU)?BDFDB['getChannelID'](gU):typeof gU=='object'?gU['id']:gU;gV=typeof gV=='number'?gV['toFixed']():gV;for(let gW of BDFDB['readChannelList']())if(gW&&gW['id']==gV)return gW;return null;};BDFDB['readDmList']=function(){var gX=[],gY=BDFDB['getOwnerInstance']({'node':document['querySelector'](BDFDB['dotCN']['guilds']),'name':'DirectMessage','all':!![],'noCopies':!![],'depth':0x5f5e0ff,'time':0x5f5e0ff});for(let gZ in gY)if(gY[gZ]['props']&&gY[gZ]['props']['channel'])gX['push'](Object['assign'](new gY[gZ]['props']['channel']['constructor'](gY[gZ]['props']['channel']),{'div':gY[gZ]['_reactInternalFiber']['child']['child']['stateNode'],'instance':gY[gZ]}));return gX;};BDFDB['getDmID']=function(h0){if(!Node['prototype']['isPrototypeOf'](div)||!BDFDB['getReactInstance'](div))return;if(!BDFDB['getParentEle'](BDFDB['dotCN']['dms'],div))return;let h1=BDFDB['getParentEle'](BDFDB['dotCN']['guild'],div);if(!h1)return;var h2=h1['querySelector']('a');var h3=h2&&h2['href']?h2['href']['split']('/'):null;return h3&&h3['length']>0x3&&!isNaN(parseInt(h3[0x4]))?h3[0x4]['toString']():null;};BDFDB['getDmDiv']=function(h4){if(!h4)return null;if(Node['prototype']['isPrototypeOf'](h4))return BDFDB['getParentEle'](BDFDB['dotCN']['guild'],h4);else{let h5=typeof h4=='object'?h4['id']:h4;if(h5)return BDFDB['getParentEle'](BDFDB['dotCN']['guild'],document['querySelector'](BDFDB['dotCNS']['dms']+BDFDB['dotCN']['guild']+'\x20a[href*=\x22/channels/'+h5+'\x22]'));}return null;};BDFDB['getDmData']=function(h6){if(!h6)return null;let h7=Node['prototype']['isPrototypeOf'](h6)?BDFDB['getChannelID'](h6):typeof h6=='object'?h6['id']:h6;h7=typeof h7=='number'?h7['toFixed']():h7;for(let h8 of BDFDB['readDmList']())if(h8&&h8['id']==h7)return h8;return null;};BDFDB['saveAllData']=function(h9,ha,hb){var hc=require('fs'),hd,he;if(!BDFDB['isBDv2']()){he=typeof ha==='string'?ha:ha['name'];hd=require('path')['join'](BDFDB['getPluginsFolder'](),he+'.config.json');}else{he=typeof ha==='string'?ha['toLowerCase']():null;var hf=he?BDFDB['Plugins'][he]?BDFDB['Plugins'][he]['contentPath']:null:ha['contentPath'];if(!hf)return;hd=require('path')['join'](hf,'settings.json');}var hg=hc['existsSync'](hd);var hh=!hg?{}:typeof BDFDB['cachedData'][he]!=='undefined'?BDFDB['cachedData'][he]:BDFDB['readConfig'](hd);hh[hb]=h9;if(BDFDB['isObjectEmpty'](hh[hb]))delete hh[hb];if(BDFDB['isObjectEmpty'](hh)){delete BDFDB['cachedData'][he];if(hg)hc['unlinkSync'](hd);}else{BDFDB['cachedData'][he]=hh;hc['writeFileSync'](hd,JSON['stringify'](hh,null,'\x09'));}};BDFDB['loadAllData']=function(hi,hj){var hk=require('fs'),hl,hm;if(!BDFDB['isBDv2']()){hm=typeof hi==='string'?hi:hi['name'];hl=require('path')['join'](BDFDB['getPluginsFolder'](),hm+'.config.json');}else{hm=typeof hi==='string'?hi['toLowerCase']():null;var hn=hm?BDFDB['Plugins'][hm]?BDFDB['Plugins'][hm]['contentPath']:null:hi['contentPath'];if(!hn)return{};hl=require('path')['join'](hn,'settings.json');}if(!hk['existsSync'](hl)){delete BDFDB['cachedData'][hm];return{};}var ho=typeof BDFDB['cachedData'][hm]!=='undefined'?BDFDB['cachedData'][hm]:BDFDB['readConfig'](hl);BDFDB['cachedData'][hm]=ho;return ho&&typeof ho[hj]!=='undefined'?ho[hj]:{};};BDFDB['removeAllData']=function(hp,hq){var hr=require('fs'),hs,ht;if(!BDFDB['isBDv2']()){ht=typeof hp==='string'?hp:hp['name'];hs=require('path')['join'](BDFDB['getPluginsFolder'](),ht+'.config.json');}else{ht=typeof hp==='string'?hp['toLowerCase']():null;var hu=ht?BDFDB['Plugins'][ht]?BDFDB['Plugins'][ht]['contentPath']:null:hp['contentPath'];if(!hu)return;hs=require('path')['join'](hu,'settings.json');}var hv=hr['existsSync'](hs);var hw=!hv?{}:typeof BDFDB['cachedData'][ht]!=='undefined'?BDFDB['cachedData'][ht]:BDFDB['readConfig'](hs);delete hw[hq];if(BDFDB['isObjectEmpty'](hw)){delete BDFDB['cachedData'][ht];if(hv)hr['unlinkSync'](hs);}else{BDFDB['cachedData'][ht]=hw;hr['writeFileSync'](hs,JSON['stringify'](hw,null,'\x09'));}};BDFDB['getAllData']=function(hx,hy){if(!BDFDB['isObject'](hx)||!hx['defaults']||!hx['defaults'][hy])return{};var hz=BDFDB['loadAllData'](hx,hy),hA={},hB=![];for(let hC in hx['defaults'][hy]){if(hz[hC]==null){hA[hC]=hx['defaults'][hy][hC]['value'];hB=!![];}else hA[hC]=hz[hC];}if(hB)BDFDB['saveAllData'](hA,hx,hy);return hA;};BDFDB['readConfig']=function(hD){try{return JSON['parse'](require('fs')['readFileSync'](hD));}catch(hE){return{};}};BDFDB['saveData']=function(hF,hG,hH,hI){var hJ=BDFDB['loadAllData'](hH,hI);hJ[hF]=hG;BDFDB['saveAllData'](hJ,hH,hI);};BDFDB['loadData']=function(hK,hL,hM){var hN=BDFDB['loadAllData'](hL,hM);var hO=hN[hK];return hO===undefined?null:hO;};BDFDB['removeData']=function(hP,hQ,hR){var hS=BDFDB['loadAllData'](hQ,hR);delete hS[hP];BDFDB['saveAllData'](hS,hQ,hR);};BDFDB['getData']=function(hT,hU,hV){var hW=BDFDB['getAllData'](hU,hV);var hX=hW[hT];return hX===undefined?null:hX;};BDFDB['appendWebScript']=function(hY,hZ){if(!hZ&&!document['head']['querySelector']('bd-head\x20bd-scripts'))document['head']['appendChild'](BDFDB['htmlToElement'](''));hZ=hZ||document['head']['querySelector']('bd-head\x20bd-scripts')||document['head'];hZ=Node['prototype']['isPrototypeOf'](hZ)?hZ:document['head'];BDFDB['removeWebScript'](hY,hZ);hZ['appendChild'](BDFDB['htmlToElement'](''));};BDFDB['removeWebScript']=function(i0,i1){i1=i1||document['head']['querySelector']('bd-head\x20bd-scripts')||document['head'];i1=Node['prototype']['isPrototypeOf'](i1)?i1:document['head'];BDFDB['removeEles'](i1['querySelectorAll']('script[src=\x22'+i0+'\x22]'));};BDFDB['appendWebStyle']=function(i2,i3){if(!i3&&!document['head']['querySelector']('bd-head\x20bd-styles'))document['head']['appendChild'](BDFDB['htmlToElement'](''));i3=i3||document['head']['querySelector']('bd-head\x20bd-styles')||document['head'];i3=Node['prototype']['isPrototypeOf'](i3)?i3:document['head'];BDFDB['removeWebStyle'](i2,i3);i3['appendChild'](BDFDB['htmlToElement'](''));};BDFDB['removeWebStyle']=function(i4,i5){i5=i5||document['head']['querySelector']('bd-head\x20bd-styles')||document['head'];i5=Node['prototype']['isPrototypeOf'](i5)?i5:document['head'];BDFDB['removeEles'](i5['querySelectorAll']('link[href=\x22'+i4+'\x22]'));};BDFDB['appendLocalStyle']=function(i6,i7,i8){if(!i8&&!document['head']['querySelector']('bd-head\x20bd-styles'))document['head']['appendChild'](BDFDB['htmlToElement'](''));i8=i8||document['head']['querySelector']('bd-head\x20bd-styles')||document['head'];i8=Node['prototype']['isPrototypeOf'](i8)?i8:document['head'];BDFDB['removeLocalStyle'](i6,i8);i8['appendChild'](BDFDB['htmlToElement'](''));};BDFDB['removeLocalStyle']=function(i9,ia){ia=ia||document['head']['querySelector']('bd-head\x20bd-styles')||document['head'];ia=Node['prototype']['isPrototypeOf'](ia)?ia:document['head'];BDFDB['removeEles'](ia['querySelectorAll']('style[id=\x22'+i9+'CSS\x22]'));};BDFDB['formatBytes']=function(ib,ic){ib=parseInt(ib);if(isNaN(ib)||ib<0x0)return'0\x20Bytes';if(ib==0x1)return'1\x20Byte';var id=Math['floor'](Math['log'](ib)/Math['log'](0x400));return parseFloat((ib/Math['pow'](0x400,id))['toFixed'](ic<0x1?0x0:ic>0x14?0x14:ic||0x2))+'\x20'+['Bytes','KB','MB','GB','TB','PB','EB','ZB','YB'][id];};BDFDB['colorCONVERT']=function(ie,ig,ih){if(!ie)return null;ig=ig===undefined||!ig?ig='RGBCOMP':ig['toUpperCase']();ih=ih===undefined||!ih||!['RGB','RGBA','RGBCOMP','HSL','HSLA','HSLCOMP']['includes'](ih['toUpperCase']())?BDFDB['colorTYPE'](ie):ih['toUpperCase']();if(ig=='RGBCOMP'){switch(ih){case'RGBCOMP':if(ie['length']==0x3)return iS(ie);else if(ie['length']==0x4){var ii=iV(ie['pop']());return iS(ie)['concat'](ii);}case'RGB':return iS(ie['replace'](/\s/g,'')['slice'](0x4,-0x1)['split'](','));case'RGBA':var ij=ie['replace'](/\s/g,'')['slice'](0x5,-0x1)['split'](',');var ii=iV(ij['pop']());return iS(ij)['concat'](ii);case'HSLCOMP':if(ie['length']==0x3)return BDFDB['colorCONVERT']('hsl('+ie['join'](',')+')','RGBCOMP');else if(ie['length']==0x4){var ii=iV(jg['pop']());return BDFDB['colorCONVERT']('hsl('+jg['join'](',')+')','RGBCOMP')['concat'](ii);}case'HSL':var im=iZ(ie['replace'](/\s/g,'')['slice'](0x4,-0x1)['split'](','));var io,ip,iq,ir,is,it,iu,iv;var iw=im[0x0]/0x168,ix=parseInt(im[0x1])/0x64,iy=parseInt(im[0x2])/0x64;ir=Math['floor'](iw*0x6);is=iw*0x6-ir;it=iy*(0x1-ix);iu=iy*(0x1-is*ix);iv=iy*(0x1-(0x1-is)*ix);switch(ir%0x6){case 0x0:io=iy,ip=iv,iq=it;break;case 0x1:io=iu,ip=iy,iq=it;break;case 0x2:io=it,ip=iy,iq=iv;break;case 0x3:io=it,ip=iu,iq=iy;break;case 0x4:io=iv,ip=it,iq=iy;break;case 0x5:io=iy,ip=it,iq=iu;break;}return[Math['round'](io*0xff),Math['round'](ip*0xff),Math['round'](iq*0xff)];case'HSLA':var im=ie['replace'](/\s/g,'')['slice'](0x5,-0x1)['split'](',');var ii=iV(im['pop']());return BDFDB['colorCONVERT']('hsl('+im['join'](',')+')','RGBCOMP')['concat'](ii);case'HEX':var iB=/^#([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'](ie);return[parseInt(iB[0x1]+iB[0x1]||iB[0x4],0x10)['toString'](),parseInt(iB[0x2]+iB[0x2]||iB[0x5],0x10)['toString'](),parseInt(iB[0x3]+iB[0x3]||iB[0x6],0x10)['toString']()];default:return null;}}else{var iC=ih=='RGBCOMP'?ie:BDFDB['colorCONVERT'](ie,'RGBCOMP',ih);if(iC)switch(ig){case'RGB':return'rgb('+iS(iC['slice'](0x0,0x3))['join'](',')+')';case'RGBA':iC=iC['slice'](0x0,0x4);var ii=iC['length']==0x4?iV(iC['pop']()):0x1;return'rgba('+iS(iC)['concat'](ii)['join'](',')+')';case'HSLCOMP':var ii=iC['length']==0x4?iV(iC['pop']()):null;var im=iZ(BDFDB['colorCONVERT'](iC,'HSL')['replace'](/\s/g,'')['split'](','));return ii?im['concat'](ii):im;case'HSL':var io=iQ(iC[0x0]),ip=iQ(iC[0x1]),iq=iQ(iC[0x2]);var iJ=Math['max'](io,ip,iq),iK=Math['min'](io,ip,iq),iL=iJ-iK,iw,ix=iJ===0x0?0x0:iL/ iJ,iy=iJ/0xff;switch(iJ){case iK:iw=0x0;break;case io:iw=ip-iq+iL*(ip0xff?0xff:is<0x0?0x0:is;};function iS(ij){return ij['map'](is=>{return iQ(is);});};function iV(ii){ii=ii['toString']();ii=(ii['indexOf']('%')>-0x1?0.01:0x1)*parseFloat(ii['replace'](/[^0-9\.\-]/g,''));return isNaN(ii)||ii>0x1?0x1:ii<0x0?0x0:ii;};function iX(iY){iY=parseFloat(iY['toString']()['replace'](/[^0-9\.\-]/g,''));return(isNaN(iY)||iY>0x64?0x64:iY<0x0?0x0:iY)+'%';};function iZ(ij){let iw=parseFloat(ij['shift']()['toString']()['replace'](/[^0-9\.\-]/g,''));iw=isNaN(iw)||iw>0x168?0x168:iw<0x0?0x0:iw;return[iw]['concat'](ij['map'](j2=>{return iX(j2);}));};};BDFDB['colorSETALPHA']=function(j3,j4,j5){var j6=BDFDB['colorCONVERT'](j3,'RGBCOMP');if(j6){j4=j4['toString']();j4=(j4['indexOf']('%')>-0x1?0.01:0x1)*parseFloat(j4['replace'](/[^0-9\.\-]/g,''));j4=isNaN(j4)||j4>0x1?0x1:j4<0x0?0x0:j4;j6[0x3]=j4;j5=(j5||BDFDB['colorTYPE'](jK))['toUpperCase']();j5=j5=='HSL'||j5=='RGB'?j5+'A':j5;return BDFDB['colorCONVERT'](j6,j5);}return null;};BDFDB['colorCHANGE']=function(j7,j8,j9){j8=parseFloat(j8);if(j7&&typeof j8=='number'&&!isNaN(j8)){var ja=BDFDB['colorCONVERT'](j7,'RGBCOMP');if(ja){if(parseInt(j8)!==j8){j8=j8['toString']();j8=(j8['indexOf']('%')>-0x1?0.01:0x1)*parseFloat(j8['replace'](/[^0-9\.\-]/g,''));j8=isNaN(j8)?0x0:j8;return BDFDB['colorCONVERT']([Math['round'](ja[0x0]*(0x1+j8)),Math['round'](ja[0x1]*(0x1+j8)),Math['round'](ja[0x2]*(0x1+j8))],j9||BDFDB['colorTYPE'](j7));}else return BDFDB['colorCONVERT']([Math['round'](ja[0x0]+j8),Math['round'](ja[0x1]+j8),Math['round'](ja[0x2]+j8)],j9||BDFDB['colorTYPE'](j7));}}return null;};BDFDB['colorINV']=function(jb,jc){if(jb){var jd=BDFDB['colorCONVERT'](jb,'RGBCOMP');if(jd)return BDFDB['colorCONVERT']([0xff-jd[0x0],0xff-jd[0x1],0xff-jd[0x2]],jc||BDFDB['colorTYPE'](jb));}return null;};BDFDB['colorCOMPARE']=function(je,jf){if(je&&jf){je=BDFDB['colorCONVERT'](je,'RGBCOMP');jf=BDFDB['colorCONVERT'](jf,'RGBCOMP');if(je&&jf)return BDFDB['equals'](je,jf);}return null;};BDFDB['colorISBRIGHT']=function(jg,jh=0xa0){jg=BDFDB['colorCONVERT'](jg,'RGBCOMP');if(!jg)return![];return parseInt(jh)