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