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