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