diff --git a/Plugins/BDFDB.js b/Plugins/BDFDB.js
index 3725a59c34..e7f4a4820c 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','0YzM5cTNxgTN1AzNxUTN5gTO','0AzM2MjMzAjMxkTO5MDM4gTM','ykTNxMzNyUDM4czNxEjMzIjM','1UDNyAzM0MTN2YzN0IzMyMzM','1ADO5YTN1kjMzYDNwgTOzQDN','zkTM2AjN3AzM0YjNyEzN0cjM','0YDN3czN4kjM5ADOyMjN4ADM','zIzN4MDM5gDNygjN1MTN2gzM','0ITM3YzM4YTOyYjM3QTM1MDN']['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']();console['log'](r);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['getLineOfString']=function(cq,cr){if(typeof cq!='string'||typeof cq!='string')return-0x1;let cs=cq['indexOf'](cr);if(cs<0x0)return-0x1;return cq['substring'](0x0,cs)['split']('\x0a')['length'];};BDFDB['sortObject']=function(ct,cu,cv){var cw={};if(cu===undefined||!cu)for(let cx of Object['keys'](ct)['sort']())cw[cx]=ct[cx];else{let cy=[];for(let cx in ct)cy['push'](ct[cx]);cy=BDFDB['sortArrayByKey'](cy,cu,cv);for(let cA of cy)for(let cx in ct)if(BDFDB['equals'](cA,ct[cx])){cw[cx]=cA;break;}}return cw;};BDFDB['reverseObject']=function(cC,cD){var cE={};for(let cF of cD===undefined||!cD?Object['keys'](cC)['reverse']():Object['keys'](cC)['sort']()['reverse']())cE[cF]=cC[cF];return cE;};BDFDB['filterObject']=function(cG,cH){return Object['keys'](cG)['filter'](cI=>cH(cG[cI]))['reduce']((cJ,cK)=>(cJ[cK]=cG[cK],cJ),{});};BDFDB['isObject']=function(cL){return cL&&Object['prototype']['isPrototypeOf'](cL)&&!Array['prototype']['isPrototypeOf'](cL);};BDFDB['isObjectEmpty']=function(cM){return typeof cM!=='object'||Object['getOwnPropertyNames'](cM)['length']==0x0;};BDFDB['pushToObject']=function(cN,cO){if(BDFDB['isObject'](cN))cN[Object['keys'](cN)['length']]=cO;};BDFDB['deepAssign']=function(cP,...cQ){if(!cQ['length'])return cP;var cR=cQ['shift']();if(BDFDB['isObject'](cP)&&BDFDB['isObject'](cR)){for(var cS in cR){if(BDFDB['isObject'](cR[cS])){if(!cP[cS])Object['assign'](cP,{[cS]:{}});BDFDB['deepAssign'](cP[cS],cR[cS]);}else Object['assign'](cP,{[cS]:cR[cS]});}}return BDFDB['deepAssign'](cP,...cQ);};BDFDB['sortArrayByKey']=function(cT,cU,cV){if(cV===undefined)cV=null;return cT['sort'](function(cW,cX){var cY=cW[cU],cZ=cX[cU];if(cY!==cV)return cYcZ?0x1:0x0;});};BDFDB['removeFromArray']=function(d0,d1,d2=![]){if(!d0||!d1||!Array['isArray'](d0)||!d0['includes'](d1))return d0;if(!d2)d0['splice'](d0['indexOf'](d1),0x1);else while(d0['indexOf'](d1)>-0x1)d0['splice'](d0['indexOf'](d1),0x1);return d0;};BDFDB['getAllIndexes']=function(d3,d4){var d5=[],d6=-0x1;while((d6=d3['indexOf'](d4,d6+0x1))!==-0x1)d5['push'](d6);return d5;};BDFDB['removeCopiesFromArray']=function(d7){return[...new Set(d7)];};BDFDB['highlightText']=function(d8,d9){if(!d9||d9['length']<0x1)return d8;var da=0x0,db=d8,dc='',dd='';BDFDB['getAllIndexes'](d8['toUpperCase'](),d9['toUpperCase']())['forEach'](de=>{var df=da*(dc['length']+dd['length']);de=de+df;var dg=de+d9['length'];var dh=[-0x1]['concat'](BDFDB['getAllIndexes'](d8['substring'](0x0,de),'<'));var di=[-0x1]['concat'](BDFDB['getAllIndexes'](d8['substring'](0x0,de),'>'));if(dh[dh['length']-0x1]>di[di['length']-0x1])return;d8=d8['substring'](0x0,de)+dc+d8['substring'](de,dg)+dd+d8['substring'](dg);da++;});return d8?d8:db;};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 dj=setInterval(()=>{if(document['querySelector']('html')['lang']){clearInterval(dj);var dk=BDFDB['getDiscordLanguage']();BDFDB['languages']['$discord']['name']='Discord\x20('+dk['name']+')';BDFDB['languages']['$discord']['id']=dk['id'];BDFDB['languages']['$discord']['ownlang']=dk['ownlang'];}},0x64);BDFDB['getDiscordBuilt']=function(){if(BDFDB['getDiscordBuilt']['built'])return BDFDB['getDiscordBuilt']['built'];else{var dl=null;try{dl=require(require('electron')['remote']['app']['getAppPath']()+'/build_info.json')['releaseChannel']['toLowerCase']();}catch(dm){try{dl=require(require('electron')['remote']['app']['getAppPath']()['replace']('app.asar','')+'/build_info.json')['releaseChannel']['toLowerCase']();}catch(dn){var dp=BDFDB['getDiscordVersion']();if(dp){dp=dp['split']('.');if(dp['length']==0x3&&!isNaN(dp=parseInt(dp[0x2])))dl=dp>0x12c?'stable':da>0xc8?'canary':'ptb';else dl='stable';}else dl='stable';}}BDFDB['getDiscordBuilt']['built']=dl;return dl;}};BDFDB['getDiscordVersion']=function(){if(BDFDB['getDiscordBuilt']['version'])return BDFDB['getDiscordBuilt']['version'];else{var dq=null;try{dq=require('electron')['remote']['app']['getVersion']();}catch(dr){dr='';}BDFDB['getDiscordBuilt']['version']=dq;return dq;}};BDFDB['getDiscordLanguage']=function(){var ds=document['querySelector']('html')['lang']||'en-US';var dt=ds['split']('-');var du=dt[0x0];var dv=dt[0x1]||'';ds=dv&&du['toUpperCase']()!==dv['toUpperCase']()?du+'-'+dv:du;return BDFDB['languages'][ds]||BDFDB['languages'][du]||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 dw=BDFDB['getRects'](document['body']['firstElementChild']);var dx=Math['round'](0x64*global['window']['outerWidth']/dw['width']);var dy=Math['round'](0x64*global['window']['outerHeight']/dw['height']);return dxdA['startsWith']('__reactInternalInstance'))];};BDFDB['getReactValue']=function(dB,dC){if(!dB||!dC)return null;let dD=Node['prototype']['isPrototypeOf'](dB)?BDFDB['getReactInstance'](dB):dB;if(!BDFDB['isObject'](dD))return null;let dE=dD;for(let dF of dC['split']('.')['filter'](dG=>dG)){dE=dE[dF];if(dE==undefined)return null;}return dE;};BDFDB['getOwnerInstance']=function(dH){if(dH===undefined)return null;if(!dH['node']&&!dH['instance']||!dH['name']&&(!dH['props']||!Array['isArray'](dH['props'])))return null;var dI=dH['instance']||BDFDB['getReactInstance'](dH['node']);if(!dI)return null;dH['name']=dH['name']&&!Array['isArray'](dH['name'])?Array['of'](dH['name']):dH['name'];var dJ=-0x1;var dK=dH['depth']===undefined?0xf:dH['depth'];var dL=dH['up']===undefined?![]:dH['up'];var dM=performance['now']();var dN=dH['time']===undefined?0x96:dH['time'];var dO=dL?{'return':!![],'sibling':!![],'_reactInternalFiber':!![]}:{'child':!![],'sibling':!![],'_reactInternalFiber':!![]};var dP={};var dQ=dT(dI);if(dH['all']){for(let dR in dP){if(dH['group'])for(let dI in dP[dR])delete dP[dR][dI]['BDFDBreactSearch'];else delete dP[dR]['BDFDBreactSearch'];}return dP;}else return dQ;function dT(dI){dJ++;if(!dI||Node['prototype']['isPrototypeOf'](dI)||BDFDB['getReactInstance'](dI)||dJ>dK||performance['now']()-dM>dN)dW=null;else{var dV=Object['getOwnPropertyNames'](dI);var dW=null;for(let dX=0x0;dW==null&&dXdI['type']['displayName']===e1['split']('\x20')[0x0]||dI['type']['name']===e1['split']('\x20')[0x0])||dH['props']&&dH['props']['every'](e2=>e0[e2]!==undefined)||dH['defaultProps']&&dH['defaultProps']['every'](e3=>e0[e3]!==undefined))){if(dH['all']===undefined||!dH['all'])dW=e0;else if(dH['all']){if(dH['noCopies']===undefined||!dH['noCopies']||dH['noCopies']&&!e0['BDFDBreactSearch']){e0['BDFDBreactSearch']=!![];if(dH['group']){if(dH['name']&&dI['type']&&(dI['type']['displayName']||dI['type']['name'])){var e4='Default';for(let e5 of dH['name'])if(dI['type']['displayName']===e5['split']('\x20')[0x0]||dI['type']['name']===e5['split']('\x20')[0x0]){e4=e5;break;}if(typeof dP[e4]=='undefined')dP[e4]={};BDFDB['pushToObject'](dP[e4],e0);}}else BDFDB['pushToObject'](dP,e0);}}}if(dW==null&&(typeof dZ==='object'||typeof dZ==='function')&&dO[dY])dW=dT(dZ);}}dJ--;return dW;}};BDFDB['getKeyInformation']=function(e6){if(e6===undefined)return null;if(!e6['node']&&!e6['instance']||!e6['key'])return null;var e7=e6['instance']||BDFDB['getReactInstance'](e6['node']);if(!e7)return null;var e8=-0x1;var e9=e6['depth']===undefined?0xf:e6['depth'];var ea=performance['now']();var eb=e6['time']===undefined?0x96:e6['time'];var ec={'props':!![],'state':!![],'stateNode':!![],'refs':!![],'updater':!![],'prototype':!![],'type':!![],'children':e6['up']?![]:!![],'type':!![],'memoizedProps':!![],'memoizedState':!![],'child':e6['up']?![]:!![],'return':e6['up']?!![]:![],'sibling':e6['up']?![]:!![],'firstEffect':!![]};var ed={'contextSection':!![]};if(typeof e6['whitelist']==='object')Object['assign'](ec,e6['whiteList']);if(typeof e6['blacklist']==='object')Object['assign'](ed,e6['blacklist']);var ee=[];var ef=eg(e7);if(e6['all'])return ee;else return ef;function eg(e7){e8++;if(!e7||Node['prototype']['isPrototypeOf'](e7)||BDFDB['getReactInstance'](e7)||e8>e9||performance['now']()-ea>eb)ej=null;else{var ei=Object['getOwnPropertyNames'](e7);var ej=null;for(let ek=0x0;ej==null&&eket['default']=er},[eq])['default']:global['window']['webpackJsonp']['push']([[],{[eq]:(ev,ew,er)=>ev['exports']=er},[[eq]]]);delete er['m'][eq];delete er['c'][eq];BDFDB['WebModules']['find']['req']=er;}for(let ey in BDFDB['WebModules']['find']['req']['c']){if(BDFDB['WebModules']['find']['req']['c']['hasOwnProperty'](ey)){var ez=BDFDB['WebModules']['find']['req']['c'][ey]['exports'];if(ez&&ez['__esModule']&&ez['default']&&ep(ez['default']))return ez['default'];if(ez&&ep(ez))return ez;}}};BDFDB['WebModules']['cachedData']={'prop':{},'name':{},'proto':{}};BDFDB['WebModules']['findByProperties']=function(eA){eA=Array['isArray'](eA)?eA:Array['from'](arguments);var eB=JSON['stringify'](eA);if(BDFDB['WebModules']['cachedData']['prop'][eB])return BDFDB['WebModules']['cachedData']['prop'][eB];else{var eC=BDFDB['WebModules']['find'](eC=>eA['every'](eE=>eC[eE]!==undefined));if(eC){BDFDB['WebModules']['cachedData']['prop'][eB]=eC;return eC;}else console['warn']('%c[BDFDB]%c','color:\x20#3a71c1;\x20font-weight:\x20700;','',eB+'\x20[properties]\x20not\x20found\x20in\x20WebModules');}};BDFDB['WebModules']['findByName']=function(eF){var eG=JSON['stringify'](eF);if(BDFDB['WebModules']['cachedData']['name'][eG])return BDFDB['WebModules']['cachedData']['name'][eG];else{var eH=BDFDB['WebModules']['find'](eH=>eH['displayName']===eF);if(eH){BDFDB['WebModules']['cachedData']['name'][eG]=eH;return eH;}else console['warn']('%c[BDFDB]%c','color:\x20#3a71c1;\x20font-weight:\x20700;','',eG+'\x20[name]\x20not\x20found\x20in\x20WebModules');}};BDFDB['WebModules']['findByPrototypes']=function(eJ){eJ=Array['isArray'](eJ)?eJ:Array['from'](arguments);var eK=JSON['stringify'](eJ);if(BDFDB['WebModules']['cachedData']['proto'][eK])return BDFDB['WebModules']['cachedData']['proto'][eK];else{var eL=BDFDB['WebModules']['find'](eL=>eL['prototype']&&eJ['every'](eN=>eL['prototype'][eN]!==undefined));if(eL){BDFDB['WebModules']['cachedData']['proto'][eK]=eL;return eL;}else console['warn']('%c[BDFDB]%c','color:\x20#3a71c1;\x20font-weight:\x20700;','',eK+'\x20[prototypes]\x20not\x20found\x20in\x20WebModules');}};BDFDB['WebModules']['patchtypes']=['before','instead','after'];BDFDB['WebModules']['patchmap']={'BannedCard':'BannedUser','InvitationCard':'InviteRow','InviteCard':'InviteRow','Guild':'DropTarget(DragSource(Component))','PopoutContainer':'Popout','MemberCard':'Member','WebhookCard':'Webhook'};BDFDB['WebModules']['notfindablemodules']={'AuthWrapper':'loginscreen','BannedCard':'guildsettingsbannedcard','EmojiPicker':'emojipicker','FriendsOnline':'friendsonline','InstantInviteModal':'invitemodalwrapper','InvitationCard':'invitemodalinviterow','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(eO,eP,eQ,eR){if(!eO||!eP||!eQ||!Object['keys'](eR)['some'](eS=>BDFDB['WebModules']['patchtypes']['includes'](eS)))return null;const eT=(typeof eQ==='string'?eQ:eQ['name'])['toLowerCase']();const eU=(eV,eW)=>(...eX)=>{try{return eV(...eX);}catch(eY){console['error']('Error\x20occurred\x20in\x20'+eW,eY);}};if(!eO['BDFDBpatch'])eO['BDFDBpatch']={};eP=Array['isArray'](eP)?eP:Array['of'](eP);for(let eZ of eP){if(!eO[eZ])eO[eZ]=()=>{};const f0=eO[eZ];if(!eO['BDFDBpatch'][eZ]){eO['BDFDBpatch'][eZ]={};for(let f1 of BDFDB['WebModules']['patchtypes'])eO['BDFDBpatch'][eZ][f1]={};eO['BDFDBpatch'][eZ]['originalMethod']=f0;eO[eZ]=function(){const f2={'thisObject':this,'methodArguments':arguments,'originalMethod':f0,'originalMethodName':eZ,'callOriginalMethod':()=>f2['returnValue']=f2['originalMethod']['apply'](f2['thisObject'],f2['methodArguments'])};if(global['BDFDB']&&typeof BDFDB==='object'&&BDFDB['loaded']&&eO['BDFDBpatch'][eZ]){if(!BDFDB['isObjectEmpty'](eO['BDFDBpatch'][eZ]['before']))for(let f3 in BDFDB['sortObject'](eO['BDFDBpatch'][eZ]['before'])){eU(eO['BDFDBpatch'][eZ]['before'][f3],'`before`\x20callback\x20of\x20'+eO[eZ]['displayName'])(f2);}if(BDFDB['isObjectEmpty'](eO['BDFDBpatch'][eZ]['instead']))f2['callOriginalMethod']();else for(let f4 in BDFDB['sortObject'](eO['BDFDBpatch'][eZ]['instead'])){const f5=eU(eO['BDFDBpatch'][eZ]['instead'][f4],'`instead`\x20callback\x20of\x20'+eO[eZ]['displayName'])(f2);if(f5!==undefined)f2['returnValue']=f5;}if(!BDFDB['isObjectEmpty'](eO['BDFDBpatch'][eZ]['after']))for(let f6 in BDFDB['sortObject'](eO['BDFDBpatch'][eZ]['after'])){eU(eO['BDFDBpatch'][eZ]['after'][f6],'`after`\x20callback\x20of\x20'+eO[eZ]['displayName'])(f2);}}else f2['callOriginalMethod']();return f2['returnValue'];};}for(let f7 of BDFDB['WebModules']['patchtypes'])if(typeof eR[f7]=='function')eO['BDFDBpatch'][eZ][f7][eT]=eR[f7];}const f8=()=>{BDFDB['WebModules']['unpatch'](eO,eP,eQ);};if(eQ&&typeof eQ=='object'){if(!Array['isArray'](eQ['patchCancels']))eQ['patchCancels']=[];eQ['patchCancels']['push'](f8);}return f8;};BDFDB['WebModules']['unpatch']=function(f9,fa,fb){if(!f9||!f9['BDFDBpatch'])return;const fc=!fb?null:(typeof fb==='string'?fb:fb['name'])['toLowerCase']();fa=Array['isArray'](fa)?fa:Array['of'](fa);for(let fd of fa){if(f9[fd]&&f9['BDFDBpatch'][fd]){for(let fe of BDFDB['WebModules']['patchtypes']){if(fc)delete f9['BDFDBpatch'][fd][fe][fc];else delete f9['BDFDBpatch'][fd][fe];}var ff=!![];for(let fe of BDFDB['WebModules']['patchtypes'])if(!BDFDB['isObjectEmpty'](f9['BDFDBpatch'][fd][fe]))ff=![];if(ff){f9[fd]=f9['BDFDBpatch'][fd]['originalMethod'];delete f9['BDFDBpatch'][fd];if(BDFDB['isObjectEmpty'](f9['BDFDBpatch']))delete f9['BDFDBpatch'];}}}};BDFDB['WebModules']['unpatchall']=function(fh){if(BDFDB['isObject'](fh)&&Array['isArray'](fh['patchCancels']))for(let fi of fh['patchCancels'])fi();};BDFDB['WebModules']['forceAllUpdates']=function(fj,fk){fk=fk&&BDFDB['WebModules']['patchmap'][fk]?BDFDB['WebModules']['patchmap'][fk]+'\x20'+fk:fk;if(BDFDB['isObject'](fj)&&BDFDB['isObject'](fj['patchModules'])&&(!fk||fj['patchModules'][fk])){const fl=document['querySelector'](BDFDB['dotCN']['app']);const fm=document['querySelector']('#bd-settingspane-container\x20'+BDFDB['dotCN']['scrollerwrap']);if(fl){var fn=[];for(let fo in fj['patchModules']){var fp=Array['isArray'](fj['patchModules'][fo])?fj['patchModules'][fo]:Array['of'](fj['patchModules'][fo]);if(fp['includes']('componentDidUpdate')||fp['includes']('componentDidMount')||fp['includes']('render'))fn['push'](fo);}fn=fk?fn['filter'](fq=>fq==fk):fn;if(fn['length']>0x0){const fr=BDFDB['getOwnerInstance']({'node':fl,'name':fn,'all':!![],'noCopies':!![],'group':!![],'depth':0x5f5e0ff,'time':0x5f5e0ff});for(let fo in fr)for(let ft in fr[fo])BDFDB['WebModules']['initiateProcess'](fj,fr[fo][ft],fo,['componentDidUpdate','componentDidMount','render']);if(fm){const fu=BDFDB['getOwnerInstance']({'node':fm,'name':fn,'all':!![],'noCopies':!![],'group':!![],'depth':0x5f5e0ff,'time':0x5f5e0ff});for(let fo in fu)for(let ft in fu[fo])BDFDB['WebModules']['initiateProcess'](fj,fu[fo][ft],fo,['componentDidUpdate','componentDidMount','render']);}}}}};BDFDB['WebModules']['patchModules']=function(fx){if(BDFDB['isObject'](fx)&&BDFDB['isObject'](fx['patchModules'])){for(let fy in fx['patchModules']){var fz=BDFDB['WebModules']['patchmap'][fy];if(fz){fx['patchModules'][fz+'\x20'+fy]=fx['patchModules'][fy];delete fx['patchModules'][fy];if(!BDFDB['WebModules']['notfindablemodules'][fy])fC(BDFDB['WebModules']['findByName'](fz),fz+'\x20'+fy);}else if(!BDFDB['WebModules']['notfindablemodules'][fy])fC(BDFDB['WebModules']['findByName'](fy),fy);}for(let fy in BDFDB['WebModules']['notfindablemodules']){var fB=BDFDB['WebModules']['patchmap'][fy]?BDFDB['WebModules']['patchmap'][fy]+'\x20'+fy:fy;if(BDFDB['DiscordClasses'][BDFDB['WebModules']['notfindablemodules'][fy]]&&fx['patchModules'][fB])fJ(BDFDB['WebModules']['notfindablemodules'][fy],fB);}function fC(fD,fy){if(fD){var fB=fy['split']('\x20')[0x0];fD=fD['displayName']==fB?fD:BDFDB['getOwnerInstance']({'instance':fD,'name':fB,'up':!![]});if(fD){var fG=fD['_reactInternalFiber']&&fD['_reactInternalFiber']['type']?fD['_reactInternalFiber']['type']:fD;var fH={};fH[fx['name']=='$BDFDB'?'before':'after']=fI=>{if(global['BDFDB']&&typeof BDFDB==='object'&&BDFDB['loaded'])BDFDB['WebModules']['initiateProcess'](fx,fI['thisObject'],fy,[fI['originalMethodName']]);};BDFDB['WebModules']['patch'](fG['prototype'],fx['patchModules'][fy],fx,fH);}}}function fJ(fK,fy){var fM=BDFDB['getReactInstance'](document['querySelector'](BDFDB['dotCN'][fK]));if(fT(fM,fy))fC(fM,fy);else{var fN=![],fO=new MutationObserver(fP=>{fP['forEach'](fQ=>{fQ['addedNodes']['forEach'](fR=>{var fS=null;if(!fN&&fR['tagName']&&(fS=BDFDB['containsClass'](fR,BDFDB['disCN'][fK])?fR:fR['querySelector'](BDFDB['dotCN'][fK]))!=null){fM=BDFDB['getReactInstance'](fS);if(fT(fM,fy)){fN=!![];fO['disconnect']();fC(fM,fy);BDFDB['WebModules']['forceAllUpdates'](fx,fy);}}});});});BDFDB['addObserver'](fx,BDFDB['dotCN']['appmount'],{'name':'checkForInstanceObserver','instance':fO,'multi':!![]},{'childList':!![],'subtree':!![]});}}function fT(fU,fy){return fU&&(fy!='V2C_PluginCard'&&fy!='V2C_ThemeCard'||fy=='V2C_PluginCard'&&BDFDB['checkWhichRepoPage']()=='plugins'||fy=='V2C_ThemeCard'&&BDFDB['checkWhichRepoPage']()=='themes');}}};BDFDB['WebModules']['initiateProcess']=function(fW,fX,fY,fZ){if(fW&&typeof fW=='object'&&fX){fY=(fY['split']('\x20')[0x1]||fY)['replace'](/[^A-z0-9]|_/g,'');fY=fY[0x0]['toUpperCase']()+fY['slice'](0x1);if(typeof fW['process'+fY]=='function'){var g0=BDFDB['React']['findDOMNodeSafe'](fX);if(g0)fW['process'+fY](fX,g0,fZ);else setImmediate(()=>{g0=BDFDB['React']['findDOMNodeSafe'](fX);if(g0)fW['process'+fY](fX,g0,fZ);});}}};var g1=BDFDB['WebModules']['findByProperties']('createElement','cloneElement');var g2=BDFDB['WebModules']['findByProperties']('render','findDOMNode');if(g1&&g2){BDFDB['React']=Object['assign']({},g1,g2);BDFDB['React']['findDOMNodeSafe']=function(g3){if(!g3||!g3['updater']||typeof g3['updater']['isMounted']!=='function'||!g3['updater']['isMounted'](g3))return null;var g4=g2['findDOMNode'](g3)||BDFDB['getReactValue'](g3,'child.stateNode');return Node['prototype']['isPrototypeOf'](g4)?g4:null;};};BDFDB['addOnSwitchListener']=function(g5){if(typeof g5['onSwitch']==='function'){BDFDB['removeOnSwitchListener'](g5);var g6=document['querySelector'](BDFDB['dotCN']['guildswrapper']+'\x20+\x20*\x20>\x20'+BDFDB['dotCN']['chatspacer']);if(g6){var g7=new MutationObserver(g8=>{g8['forEach'](g9=>{if(g9['target']&&BDFDB['containsClass'](g9['target'],BDFDB['disCN']['nochannel']))g5['onSwitch']();});});var ga=g6['querySelector'](BDFDB['dotCNC']['chat']+BDFDB['dotCN']['nochannel']);if(ga)g7['observe'](ga,{'attributes':!![]});g5['onSwitchFix']=new MutationObserver(gb=>{gb['forEach'](gc=>{if(gc['addedNodes']){gc['addedNodes']['forEach'](gd=>{if(BDFDB['containsClass'](gd,BDFDB['disCN']['chat'],BDFDB['disCN']['nochannel'],![]))g7['observe'](gd,{'attributes':!![]});});}});});g5['onSwitchFix']['observe'](g6,{'childList':!![]});}}};BDFDB['removeOnSwitchListener']=function(ge){if(typeof ge['onSwitch']==='function'&&BDFDB['isObject'](ge['onSwitchFix'])){ge['onSwitchFix']['disconnect']();delete ge['onSwitchFix'];}};BDFDB['addContextListener']=function(gf){for(let gg of['User','Guild','Channel','GroupDM','Message','Native','UserSettingsCog']){if(typeof gf['on'+gg+'Context']==='function'||typeof gf['on'+gg+'ContextMenu']==='function'){if(gg=='GroupDM'){var gh=![],gi=new MutationObserver(gj=>{gj['forEach'](gk=>{gk['addedNodes']['forEach'](gl=>{var gm=null;if(!gh&&gl['tagName']&&(gm=BDFDB['containsClass'](gl,BDFDB['disCN']['contextmenu'])?gl:gl['querySelector'](BDFDB['dotCN']['contextmenu']))!=null){var gn=BDFDB['getReactInstance'](gm);if(gn&&gn['return']&&gn['return']['type']&&gn['return']['type']['displayName']==gg+'ContextMenu'){gh=!![];gi['disconnect']();go(gg,gn['return']['type']);gs(gg,gn['return']['stateNode'],gn['stateNode']);}}});});});BDFDB['addObserver'](gf,BDFDB['dotCN']['appmount'],{'name':'checkForContextObserver','instance':gi,'multi':!![]},{'childList':!![],'subtree':!![]});}else go(gg,BDFDB['WebModules']['findByName'](gg+'ContextMenu'));}}function go(gg,gq){if(gq&&gq['prototype'])BDFDB['WebModules']['patch'](gq['prototype'],'componentDidMount',gf,{'after':gr=>{gs(gg,gr['thisObject'],BDFDB['React']['findDOMNodeSafe'](gr['thisObject']));}});}function gs(gg,gu,gv){if(gu&&gv){if(typeof gf['on'+gg+'Context']==='function')gf['on'+gg+'Context'](gu,gv);if(typeof gf['on'+gg+'ContextMenu']==='function')gf['on'+gg+'ContextMenu'](gu,gv);BDFDB['initElements'](gv,gf);BDFDB['updateContextPosition'](gv);}}};BDFDB['addSettingsButtonListener']=function(gw){if(BDFDB['isBDv2']()&&typeof gw['getSettingsPanel']==='function'){BDFDB['removeSettingsButtonListener'](gw);BDFDB['appendSettingsButton'](gw);var gx=document['querySelector']('.bd-content-region\x20>\x20.bd-content');if(gx){gw['settingsButtonObserver']=new MutationObserver(gy=>{gy['forEach'](gz=>{if(gz['addedNodes']){gz['addedNodes']['forEach'](gA=>{if(gA['tagName']&&BDFDB['containsClass'](gA,'active'))BDFDB['appendSettingsButton'](gw);});}});});gw['settingsButtonObserver']['observe'](gx,{'childList':!![]});}}};BDFDB['appendSettingsButton']=function(gB){var gC=document['querySelector'](BDFDB['dotCN']['_bdv2Card']+'[data-plugin-id='+gB['id']+']');if(gC){var gD=BDFDB['htmlToElement']('');gC['insertBefore'](gD,gC['querySelector'](BDFDB['d']['_bdv2Button']));gD['addEventListener']('mouseenter',()=>{BDFDB['createTooltip']('Settings',gD,{'type':'top'});BDFDB['addClass'](gD,BDFDB['disCN']['_bdv2TooltipOpen']);});gD['addEventListener']('mouseleave',()=>{BDFDB['removeClass'](gD,BDFDB['disCN']['_bdv2TooltipOpen']);});gD['addEventListener']('click',()=>{var gE=BDFDB['htmlToElement'](''+gB['name']+'\x20Settings
');var gF=gB['getSettingsPanel']();gE['querySelector'](BDFDB['dotCN']['modalsubinner'])['appendChild'](typeof gF=='string'?BDFDB['htmlToElement'](gF):gF);if(typeof gB['onSettingsClosed']==='function')BDFDB['addChildEventListener'](gE,'click',BDFDB['dotCNC']['modalclose']+BDFDB['dotCN']['backdrop'],()=>{gB['onSettingsClosed']();});BDFDB['appendModal'](gE);});}};BDFDB['removeSettingsButtonListener']=function(gG){if(BDFDB['isBDv2']()&&typeof gG['settingsButtonObserver']==='object'){BDFDB['removeEles']('.bd-card[data-plugin-id='+gG['id']+']\x20.DevilBro-settingsbutton');gG['settingsButtonObserver']['disconnect']();delete gG['settingsButtonObserver'];}};var gH=BDFDB['WebModules']['findByProperties']('Messages')['Messages'];BDFDB['LanguageStrings']=new Proxy(gH,{'get':function(gI,gJ){if(!gI[gJ])console['warn']('%c[BDFDB]%c','color:\x20#3a71c1;\x20font-weight:\x20700;','',gJ+'\x20not\x20found\x20in\x20BDFDB.LanguageStrings');else{var gK=typeof gI[gJ]=='object'?gI[gJ]['format'](Object['assign']({},BDFDB['LanguageStringsVars'])):gI[gJ];if(typeof gK=='string')return gK;else if(Array['isArray'](gK)){var gL='';for(let gM of gK){if(typeof gM=='string')gL+=BDFDB['encodeToHTML'](gM);else if(BDFDB['isObject'](gM)&&gM['props'])gL+='<'+gM['type']+'>'+BDFDB['encodeToHTML'](gM['props']['children'][0x0]['toString']())+''+gM['type']+'>';}return gL;}else console['warn']('%c[BDFDB]%c','color:\x20#3a71c1;\x20font-weight:\x20700;','',gJ+'\x20could\x20not\x20be\x20parsed\x20from\x20BDFDB.LanguageStrings');}}});BDFDB['LanguageStringsVars']={};for(let gN in BDFDB['WebModules']['findByProperties']('Messages')['Messages']){try{BDFDB['LanguageStrings'][gN];}catch(gO){let gP=gO['toString']()['split']('for:\x20')[0x1];if(gP&&typeof gP=='string')BDFDB['LanguageStringsVars'][gP]='{{'+gP['toLowerCase']()+'}}';}};BDFDB['equals']=function(gQ,gR,gS){var gT=-0x1;if(gS===undefined||typeof gS!=='boolean')gS=![];return gU(gQ,gR);function gU(gV,gW){gT++;var gX=!![];if(gT>0x3e8)gX=null;else{if(typeof gV!==typeof gW)gX=![];else if(typeof gV==='undefined')gX=!![];else if(typeof gV==='symbol')gX=!![];else if(typeof gV==='boolean')gX=gV==gW;else if(typeof gV==='string')gX=gV==gW;else if(typeof gV==='number'){if(isNaN(gV)||isNaN(gW))gX=isNaN(gV)==isNaN(gW);else gX=gV==gW;}else if(!gV&&!gW)gX=!![];else if(!gV||!gW)gX=![];else if(typeof gV==='function'||typeof gV==='object'){var gY=Object['getOwnPropertyNames'](gV);var gZ=Object['getOwnPropertyNames'](gW);if(gY['length']!==gZ['length'])gX=![];else for(let h0=0x0;gX===!![]&&h0hi['length']?hl:hi['length'];};BDFDB['readServerList']=function(){var hm=[],hn=BDFDB['getOwnerInstance']({'node':document['querySelector'](BDFDB['dotCN']['guilds']),'name':'Guild','all':!![],'noCopies':!![],'depth':0x5f5e0ff,'time':0x5f5e0ff});for(let ho in hn)if(hn[ho]['props']&&hn[ho]['props']['guild']&&hn[ho]['_reactInternalFiber']['child'])hm['push'](Object['assign'](new hn[ho]['props']['guild']['constructor'](hn[ho]['props']['guild']),{'div':hn[ho]['_reactInternalFiber']['child']['stateNode'],'instance':hn[ho]}));return hm;};BDFDB['readUnreadServerList']=function(hp){var hq=[];for(let hr of hp===undefined||!Array['isArray'](hp)?BDFDB['readServerList']():hp){let hs=Node['prototype']['isPrototypeOf'](hr)?hr:hr&&hr['div']?hr['div']:null;if(Node['prototype']['isPrototypeOf'](hs)&&(BDFDB['containsClass'](hs,BDFDB['disCN']['guildunread'])||hs['querySelector'](BDFDB['dotCN']['badge'])))hq['push'](hr);}return hq;};BDFDB['getSelectedServer']=function(){var ht=BDFDB['WebModules']['findByProperties']('getGuilds')['getGuild'](BDFDB['WebModules']['findByProperties']('getLastSelectedGuildId')['getGuildId']());if(ht)return BDFDB['getServerData'](ht['id'])||Object['assign'](new ht['constructor'](ht),{'div':null,'instance':null});else return null;};BDFDB['getServerID']=function(hu){if(!Node['prototype']['isPrototypeOf'](hu)||!BDFDB['getReactInstance'](hu))return;let hv=BDFDB['getParentEle'](BDFDB['dotCN']['guild'],hu);if(!hv)return;var hw=hv['querySelector']('a');var hx=hw&&hw['href']?hw['href']['split']('/')['slice'](-0x2)[0x0]:null;return hx&&!isNaN(parseInt(hx))?hx['toString']():null;};BDFDB['getServerDiv']=function(hy){if(!hy)return null;if(Node['prototype']['isPrototypeOf'](hy))return BDFDB['getParentEle'](BDFDB['dotCN']['guild'],hy);else{let hz=typeof hy=='object'?hy['id']:hy;if(hz)return BDFDB['getParentEle'](BDFDB['dotCN']['guild'],document['querySelector'](BDFDB['dotCNS']['guildswrapper']+BDFDB['dotCN']['guild']+'\x20a[href*=\x22/channels/'+hz+'\x22]'));}return null;};BDFDB['getServerData']=function(hA){if(!hA)return null;let hB=Node['prototype']['isPrototypeOf'](hA)?BDFDB['getServerID'](hA):typeof hA=='object'?hA['id']:hA;hB=typeof hB=='number'?hB['toFixed']():hB;for(let hC of BDFDB['readServerList']())if(hC&&hC['id']==hB)return hC;return null;};BDFDB['readChannelList']=function(){var hD=[],hE=BDFDB['getOwnerInstance']({'node':document['querySelector'](BDFDB['dotCN']['channels']),'name':['ChannelCategoryItem','ChannelItem','PrivateChannel'],'all':!![],'noCopies':!![],'depth':0x5f5e0ff,'time':0x5f5e0ff});for(let hF in hE)if(hE[hF]['props']&&!hE[hF]['props']['ispin']&&hE[hF]['props']['channel']&&hE[hF]['_reactInternalFiber']['return'])hD['push'](Object['assign'](new hE[hF]['props']['channel']['constructor'](hE[hF]['props']['channel']),{'div':Node['prototype']['isPrototypeOf'](hE[hF]['_reactInternalFiber']['return']['stateNode'])?hE[hF]['_reactInternalFiber']['return']['stateNode']:hE[hF]['_reactInternalFiber']['child']['child']['stateNode'],'instance':hE[hF]}));return hD;};BDFDB['getSelectedChannel']=function(){var hG=BDFDB['WebModules']['findByProperties']('getChannels')['getChannel'](BDFDB['WebModules']['findByProperties']('getLastSelectedChannelId')['getChannelId']());if(hG)return BDFDB['getChannelData'](hG['id'])||Object['assign'](new hG['constructor'](hG),{'div':null,'instance':null});else return null;};BDFDB['getChannelID']=function(hH){if(!Node['prototype']['isPrototypeOf'](hH)||!BDFDB['getReactInstance'](hH))return;hH=BDFDB['getParentEle'](BDFDB['dotCNC']['categorycontainerdefault']+BDFDB['dotCNC']['channelcontainerdefault']+BDFDB['dotCN']['dmchannel'],hH);if(!hH)return;var hI=BDFDB['getKeyInformation']({'node':hH,'key':'channel'});return hI?hI['id']['toString']():null;};BDFDB['getChannelDiv']=function(hJ){if(!hJ)return null;let hK=BDFDB['getChannelData'](hJ);return hK?hK['div']:null;};BDFDB['getChannelData']=function(hL){if(!hL)return null;let hM=Node['prototype']['isPrototypeOf'](hL)?BDFDB['getChannelID'](hL):typeof hL=='object'?hL['id']:hL;hM=typeof hM=='number'?hM['toFixed']():hM;for(let hN of BDFDB['readChannelList']())if(hN&&hN['id']==hM)return hN;return null;};BDFDB['readDmList']=function(){var hO=[],hP=BDFDB['getOwnerInstance']({'node':document['querySelector'](BDFDB['dotCN']['guilds']),'name':'DirectMessage','all':!![],'noCopies':!![],'depth':0x5f5e0ff,'time':0x5f5e0ff});for(let hQ in hP)if(hP[hQ]['props']&&hP[hQ]['props']['channel']&&hP[hQ]['_reactInternalFiber']['child'])hO['push'](Object['assign'](new hP[hQ]['props']['channel']['constructor'](hP[hQ]['props']['channel']),{'div':hP[hQ]['_reactInternalFiber']['child']['child']['stateNode'],'instance':hP[hQ]}));return hO;};BDFDB['getDmID']=function(hR){if(!Node['prototype']['isPrototypeOf'](hR)||!BDFDB['getReactInstance'](hR))return;let hS=BDFDB['getParentEle'](BDFDB['dotCN']['dmguild'],hR);if(!hS)return;var hT=hS['querySelector']('a');var hU=hT&&hT['href']?hT['href']['split']('/')['slice'](-0x1)[0x0]:null;return hU&&!isNaN(parseInt(hU))?hU['toString']():null;};BDFDB['getDmDiv']=function(hV){if(!hV)return null;if(Node['prototype']['isPrototypeOf'](hV))return BDFDB['getParentEle'](BDFDB['dotCN']['dmguild'],hV);else{let hW=typeof hV=='object'?hV['id']:hV;if(hW)return BDFDB['getParentEle'](BDFDB['dotCN']['dmguild'],document['querySelector'](BDFDB['dotCNS']['dmguild']+BDFDB['dotCN']['dmguildavatarinner']+'[href*=\x22/channels/@me/'+hW+'\x22]'));}return null;};BDFDB['getDmData']=function(hX){if(!hX)return null;let hY=Node['prototype']['isPrototypeOf'](hX)?BDFDB['getDmID'](hX):typeof hX=='object'?hX['id']:hX;hY=typeof hY=='number'?hY['toFixed']():hY;for(let hZ of BDFDB['readDmList']())if(hZ&&hZ['id']==hY)return hZ;return null;};BDFDB['markChannelAsRead']=function(i0){if(!channels)return;var i1=BDFDB['WebModules']['findByProperties']('getOldestUnreadMessageId');var i2=BDFDB['WebModules']['findByProperties']('getAPIBaseURL');var i3=BDFDB['WebModules']['findByProperties']('Permissions','ActivityTypes','StatusTypes');if(!i1||!i2||!i3)return;for(let i4 of Array['isArray'](channels)?channels:typeof channels=='string'||typeof channels=='number'?Array['of'](channels):Array['from'](channels)){let i0=Node['prototype']['isPrototypeOf'](i4)?BDFDB['getChannelID'](i4)||BDFDB['getDmID'](i4):i4&&typeof i4=='object'?i4['id']:i4;if(i0){let i6=i1['getOldestUnreadMessageId'](i0);if(i6)i2['post']({'body':{},'url':i3['Endpoints']['MESSAGES_ACK'](i0,i6)});}}};BDFDB['markGuildAsRead']=function(i7){if(!i7)return;var i8=BDFDB['WebModules']['findByProperties']('markGuildAsRead');if(!i8)return;for(let i9 of Array['isArray'](i7)?i7:typeof i7=='string'||typeof i7=='number'?Array['of'](i7):Array['from'](i7)){let ia=Node['prototype']['isPrototypeOf'](i9)?BDFDB['getServerID'](i9):i9&&typeof i9=='object'?i9['id']:i9;if(ia)i8['markGuildAsRead'](ia);}};BDFDB['saveAllData']=function(ib,ic,id){var ie=require('fs'),ig,ih;if(!BDFDB['isBDv2']()){ih=typeof ic==='string'?ic:ic['name'];ig=require('path')['join'](BDFDB['getPluginsFolder'](),ih+'.config.json');}else{ih=typeof ic==='string'?ic['toLowerCase']():null;var ii=ih?BDFDB['Plugins'][ih]?BDFDB['Plugins'][ih]['contentPath']:null:ic['contentPath'];if(!ii)return;ig=require('path')['join'](ii,'settings.json');}var ij=ie['existsSync'](ig);var ik=!ij?{}:typeof BDFDB['cachedData'][ih]!=='undefined'?BDFDB['cachedData'][ih]:BDFDB['readConfig'](ig);ik[id]=ib;if(BDFDB['isObjectEmpty'](ik[id]))delete ik[id];if(BDFDB['isObjectEmpty'](ik)){delete BDFDB['cachedData'][ih];if(ij)ie['unlinkSync'](ig);}else{BDFDB['cachedData'][ih]=ik;ie['writeFileSync'](ig,JSON['stringify'](ik,null,'\x09'));}};BDFDB['loadAllData']=function(il,im){var io=require('fs'),ip,iq;if(!BDFDB['isBDv2']()){iq=typeof il==='string'?il:il['name'];ip=require('path')['join'](BDFDB['getPluginsFolder'](),iq+'.config.json');}else{iq=typeof il==='string'?il['toLowerCase']():null;var ir=iq?BDFDB['Plugins'][iq]?BDFDB['Plugins'][iq]['contentPath']:null:il['contentPath'];if(!ir)return{};ip=require('path')['join'](ir,'settings.json');}if(!io['existsSync'](ip)){delete BDFDB['cachedData'][iq];return{};}var is=typeof BDFDB['cachedData'][iq]!=='undefined'?BDFDB['cachedData'][iq]:BDFDB['readConfig'](ip);BDFDB['cachedData'][iq]=is;return is&&typeof is[im]!=='undefined'?is[im]:{};};BDFDB['removeAllData']=function(it,iu){var iv=require('fs'),iw,ix;if(!BDFDB['isBDv2']()){ix=typeof it==='string'?it:it['name'];iw=require('path')['join'](BDFDB['getPluginsFolder'](),ix+'.config.json');}else{ix=typeof it==='string'?it['toLowerCase']():null;var iy=ix?BDFDB['Plugins'][ix]?BDFDB['Plugins'][ix]['contentPath']:null:it['contentPath'];if(!iy)return;iw=require('path')['join'](iy,'settings.json');}var iz=iv['existsSync'](iw);var iA=!iz?{}:typeof BDFDB['cachedData'][ix]!=='undefined'?BDFDB['cachedData'][ix]:BDFDB['readConfig'](iw);delete iA[iu];if(BDFDB['isObjectEmpty'](iA)){delete BDFDB['cachedData'][ix];if(iz)iv['unlinkSync'](iw);}else{BDFDB['cachedData'][ix]=iA;iv['writeFileSync'](iw,JSON['stringify'](iA,null,'\x09'));}};BDFDB['getAllData']=function(iB,iC){if(!BDFDB['isObject'](iB)||!iB['defaults']||!iB['defaults'][iC])return{};var iD=BDFDB['loadAllData'](iB,iC),iE={},iF=![];for(let iG in iB['defaults'][iC]){if(iD[iG]==null){iE[iG]=iB['defaults'][iC][iG]['value'];iF=!![];}else iE[iG]=iD[iG];}if(iF)BDFDB['saveAllData'](iE,iB,iC);return iE;};BDFDB['readConfig']=function(iH){try{return JSON['parse'](require('fs')['readFileSync'](iH));}catch(iI){return{};}};BDFDB['saveData']=function(iJ,iK,iL,iM){var iN=BDFDB['loadAllData'](iL,iM);iN[iJ]=iK;BDFDB['saveAllData'](iN,iL,iM);};BDFDB['loadData']=function(iO,iP,iQ){var iR=BDFDB['loadAllData'](iP,iQ);var iS=iR[iO];return iS===undefined?null:iS;};BDFDB['removeData']=function(iT,iU,iV){var iW=BDFDB['loadAllData'](iU,iV);delete iW[iT];BDFDB['saveAllData'](iW,iU,iV);};BDFDB['getData']=function(iX,iY,iZ){var j0=BDFDB['getAllData'](iY,iZ);var j1=j0[iX];return j1===undefined?null:j1;};BDFDB['appendWebScript']=function(j2,j3){if(!j3&&!document['head']['querySelector']('bd-head\x20bd-scripts'))document['head']['appendChild'](BDFDB['htmlToElement'](''));j3=j3||document['head']['querySelector']('bd-head\x20bd-scripts')||document['head'];j3=Node['prototype']['isPrototypeOf'](j3)?j3:document['head'];BDFDB['removeWebScript'](j2,j3);j3['appendChild'](BDFDB['htmlToElement'](''));};BDFDB['removeWebScript']=function(j4,j5){j5=j5||document['head']['querySelector']('bd-head\x20bd-scripts')||document['head'];j5=Node['prototype']['isPrototypeOf'](j5)?j5:document['head'];BDFDB['removeEles'](j5['querySelectorAll']('script[src=\x22'+j4+'\x22]'));};BDFDB['appendWebStyle']=function(j6,j7){if(!j7&&!document['head']['querySelector']('bd-head\x20bd-styles'))document['head']['appendChild'](BDFDB['htmlToElement'](''));j7=j7||document['head']['querySelector']('bd-head\x20bd-styles')||document['head'];j7=Node['prototype']['isPrototypeOf'](j7)?j7:document['head'];BDFDB['removeWebStyle'](j6,j7);j7['appendChild'](BDFDB['htmlToElement'](''));};BDFDB['removeWebStyle']=function(j8,j9){j9=j9||document['head']['querySelector']('bd-head\x20bd-styles')||document['head'];j9=Node['prototype']['isPrototypeOf'](j9)?j9:document['head'];BDFDB['removeEles'](j9['querySelectorAll']('link[href=\x22'+j8+'\x22]'));};BDFDB['appendLocalStyle']=function(ja,jb,jc){if(!jc&&!document['head']['querySelector']('bd-head\x20bd-styles'))document['head']['appendChild'](BDFDB['htmlToElement'](''));jc=jc||document['head']['querySelector']('bd-head\x20bd-styles')||document['head'];jc=Node['prototype']['isPrototypeOf'](jc)?jc:document['head'];BDFDB['removeLocalStyle'](ja,jc);jc['appendChild'](BDFDB['htmlToElement'](''));};BDFDB['removeLocalStyle']=function(jd,je){je=je||document['head']['querySelector']('bd-head\x20bd-styles')||document['head'];je=Node['prototype']['isPrototypeOf'](je)?je:document['head'];BDFDB['removeEles'](je['querySelectorAll']('style[id=\x22'+jd+'CSS\x22]'));};BDFDB['formatBytes']=function(jf,jg){jf=parseInt(jf);if(isNaN(jf)||jf<0x0)return'0\x20Bytes';if(jf==0x1)return'1\x20Byte';var jh=Math['floor'](Math['log'](jf)/Math['log'](0x400));return parseFloat((jf/Math['pow'](0x400,jh))['toFixed'](jg<0x1?0x0:jg>0x14?0x14:jg||0x2))+'\x20'+['Bytes','KB','MB','GB','TB','PB','EB','ZB','YB'][jh];};BDFDB['colorCONVERT']=function(ji,jj,jk){if(!ji)return null;jj=jj===undefined||!jj?jj='RGBCOMP':jj['toUpperCase']();jk=jk===undefined||!jk||!['RGB','RGBA','RGBCOMP','HSL','HSLA','HSLCOMP']['includes'](jk['toUpperCase']())?BDFDB['colorTYPE'](ji):jk['toUpperCase']();if(jj=='RGBCOMP'){switch(jk){case'RGBCOMP':if(ji['length']==0x3)return jU(ji);else if(ji['length']==0x4){var jl=jX(ji['pop']());return jU(ji)['concat'](jl);}case'RGB':return jU(ji['replace'](/\s/g,'')['slice'](0x4,-0x1)['split'](','));case'RGBA':var jm=ji['replace'](/\s/g,'')['slice'](0x5,-0x1)['split'](',');var jl=jX(jm['pop']());return jU(jm)['concat'](jl);case'HSLCOMP':if(ji['length']==0x3)return BDFDB['colorCONVERT']('hsl('+ji['join'](',')+')','RGBCOMP');else if(ji['length']==0x4){var jl=jX(jg['pop']());return BDFDB['colorCONVERT']('hsl('+jg['join'](',')+')','RGBCOMP')['concat'](jl);}case'HSL':var jp=k1(ji['replace'](/\s/g,'')['slice'](0x4,-0x1)['split'](','));var jq,jr,js,jt,ju,jv,jw,jx;var jy=jp[0x0]/0x168,jz=parseInt(jp[0x1])/0x64,jA=parseInt(jp[0x2])/0x64;jt=Math['floor'](jy*0x6);ju=jy*0x6-jt;jv=jA*(0x1-jz);jw=jA*(0x1-ju*jz);jx=jA*(0x1-(0x1-ju)*jz);switch(jt%0x6){case 0x0:jq=jA,jr=jx,js=jv;break;case 0x1:jq=jw,jr=jA,js=jv;break;case 0x2:jq=jv,jr=jA,js=jx;break;case 0x3:jq=jv,jr=jw,js=jA;break;case 0x4:jq=jx,jr=jv,js=jA;break;case 0x5:jq=jA,jr=jv,js=jw;break;}return[Math['round'](jq*0xff),Math['round'](jr*0xff),Math['round'](js*0xff)];case'HSLA':var jp=ji['replace'](/\s/g,'')['slice'](0x5,-0x1)['split'](',');var jl=jX(jp['pop']());return BDFDB['colorCONVERT']('hsl('+jp['join'](',')+')','RGBCOMP')['concat'](jl);case'HEX':var jD=/^#([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'](ji);return[parseInt(jD[0x1]+jD[0x1]||jD[0x4],0x10)['toString'](),parseInt(jD[0x2]+jD[0x2]||jD[0x5],0x10)['toString'](),parseInt(jD[0x3]+jD[0x3]||jD[0x6],0x10)['toString']()];default:return null;}}else{var jE=jk=='RGBCOMP'?ji:BDFDB['colorCONVERT'](ji,'RGBCOMP',jk);if(jE)switch(jj){case'RGB':return'rgb('+jU(jE['slice'](0x0,0x3))['join'](',')+')';case'RGBA':jE=jE['slice'](0x0,0x4);var jl=jE['length']==0x4?jX(jE['pop']()):0x1;return'rgba('+jU(jE)['concat'](jl)['join'](',')+')';case'HSLCOMP':var jl=jE['length']==0x4?jX(jE['pop']()):null;var jp=k1(BDFDB['colorCONVERT'](jE,'HSL')['replace'](/\s/g,'')['split'](','));return jl?jp['concat'](jl):jp;case'HSL':var jq=jS(jE[0x0]),jr=jS(jE[0x1]),js=jS(jE[0x2]);var jL=Math['max'](jq,jr,js),jM=Math['min'](jq,jr,js),jN=jL-jM,jy,jz=jL===0x0?0x0:jN/jL,jA=jL/0xff;switch(jL){case jM:jy=0x0;break;case jq:jy=jr-js+jN*(jr0xff?0xff:ju<0x0?0x0:ju;};function jU(jm){return jm['map'](ju=>{return jS(ju);});};function jX(jl){jl=jl['toString']();jl=(jl['indexOf']('%')>-0x1?0.01:0x1)*parseFloat(jl['replace'](/[^0-9\.\-]/g,''));return isNaN(jl)||jl>0x1?0x1:jl<0x0?0x0:jl;};function jZ(k0){k0=parseFloat(k0['toString']()['replace'](/[^0-9\.\-]/g,''));return(isNaN(k0)||k0>0x64?0x64:k0<0x0?0x0:k0)+'%';};function k1(jm){let jy=parseFloat(jm['shift']()['toString']()['replace'](/[^0-9\.\-]/g,''));jy=isNaN(jy)||jy>0x168?0x168:jy<0x0?0x0:jy;return[jy]['concat'](jm['map'](k4=>{return jZ(k4);}));};};BDFDB['colorSETALPHA']=function(k5,k6,k7){var k8=BDFDB['colorCONVERT'](k5,'RGBCOMP');if(k8){k6=k6['toString']();k6=(k6['indexOf']('%')>-0x1?0.01:0x1)*parseFloat(k6['replace'](/[^0-9\.\-]/g,''));k6=isNaN(k6)||k6>0x1?0x1:k6<0x0?0x0:k6;k8[0x3]=k6;k7=(k7||BDFDB['colorTYPE'](jK))['toUpperCase']();k7=k7=='HSL'||k7=='RGB'?k7+'A':k7;return BDFDB['colorCONVERT'](k8,k7);}return null;};BDFDB['colorCHANGE']=function(k9,ka,kb){ka=parseFloat(ka);if(k9&&typeof ka=='number'&&!isNaN(ka)){var kc=BDFDB['colorCONVERT'](k9,'RGBCOMP');if(kc){if(parseInt(ka)!==ka){ka=ka['toString']();ka=(ka['indexOf']('%')>-0x1?0.01:0x1)*parseFloat(ka['replace'](/[^0-9\.\-]/g,''));ka=isNaN(ka)?0x0:ka;return BDFDB['colorCONVERT']([Math['round'](kc[0x0]*(0x1+ka)),Math['round'](kc[0x1]*(0x1+ka)),Math['round'](kc[0x2]*(0x1+ka))],kb||BDFDB['colorTYPE'](k9));}else return BDFDB['colorCONVERT']([Math['round'](kc[0x0]+ka),Math['round'](kc[0x1]+ka),Math['round'](kc[0x2]+ka)],kb||BDFDB['colorTYPE'](k9));}}return null;};BDFDB['colorINV']=function(kd,ke){if(kd){var kf=BDFDB['colorCONVERT'](kd,'RGBCOMP');if(kf)return BDFDB['colorCONVERT']([0xff-kf[0x0],0xff-kf[0x1],0xff-kf[0x2]],ke||BDFDB['colorTYPE'](kd));}return null;};BDFDB['colorCOMPARE']=function(kg,kh){if(kg&&kh){kg=BDFDB['colorCONVERT'](kg,'RGBCOMP');kh=BDFDB['colorCONVERT'](kh,'RGBCOMP');if(kg&&kh)return BDFDB['equals'](kg,kh);}return null;};BDFDB['colorISBRIGHT']=function(ki,kj=0xa0){ki=BDFDB['colorCONVERT'](ki,'RGBCOMP');if(!ki)return![];return parseInt(kj)