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