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']['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['log']('%c['+l['name']+']%c','color:\x20#3a71c1;\x20font-weight:\x20700;','','Fatal\x20Error:\x20Could\x20not\x20initiate\x20constructor!');}}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'];}};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');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'});});}}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'});}}};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']-b7;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']('');cm['addClass'](BDFDB['disCN']['noticeplatformicon']);cm['removeClass'](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);cm['addClass'](BDFDB['disCN']['noticeplatformicon']);cm['removeClass'](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','Guild':'FluxContainer(Guild)','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=BDFDB['WebModules']['findByProperties']('Messages')['Messages'];BDFDB['LanguageStrings']=new Proxy(hb,{'get':function(hc,hd){if(!hc[hd])console['warn']('%c[BDFDB]%c','color:#3a71c1;\x20font-weight:700;','',hd+'\x20not\x20found\x20in\x20BDFDB.LanguageStrings');else{var he=typeof hc[hd]=='object'?hc[hd]['format'](Object['assign']({},BDFDB['LanguageStringsVars'])):hc[hd];if(typeof he=='string')return he;else if(Array['isArray'](he)){var hf='';for(let hg of he){if(typeof hg=='string')hf+=BDFDB['encodeToHTML'](hg);else if(BDFDB['isObject'](hg)&&hg['props'])hf+='<'+hg['type']+'>'+BDFDB['encodeToHTML'](hg['props']['children'][0x0]['toString']())+''+hg['type']+'>';}return hf;}else console['warn']('%c[BDFDB]%c','color:#3a71c1;\x20font-weight:700;','',hd+'\x20could\x20not\x20be\x20parsed\x20from\x20BDFDB.LanguageStrings');}}});BDFDB['LanguageStringsVars']={};for(let hh in BDFDB['WebModules']['findByProperties']('Messages')['Messages']){try{BDFDB['LanguageStrings'][hh];}catch(hi){let hj=hi['toString']()['split']('for:\x20')[0x1];if(hj&&typeof hj=='string')BDFDB['LanguageStringsVars'][hj]='{{'+hj['toLowerCase']()+'}}';}};BDFDB['equals']=function(hk,hl,hm){var hn=-0x1;if(hm===undefined||typeof hm!=='boolean')hm=![];return ho(hk,hl);function ho(hp,hq){hn++;var hr=!![];if(hn>0x3e8)hr=null;else{if(typeof hp!==typeof hq)hr=![];else if(typeof hp==='undefined')hr=!![];else if(typeof hp==='symbol')hr=!![];else if(typeof hp==='boolean')hr=hp==hq;else if(typeof hp==='string')hr=hp==hq;else if(typeof hp==='number'){if(isNaN(hp)||isNaN(hq))hr=isNaN(hp)==isNaN(hq);else hr=hp==hq;}else if(!hp&&!hq)hr=!![];else if(!hp||!hq)hr=![];else if(typeof hp==='function'||typeof hp==='object'){var hs=Object['getOwnPropertyNames'](hp);var ht=Object['getOwnPropertyNames'](hq);if(hs['length']!==ht['length'])hr=![];else for(let hu=0x0;hr===!![]&&huhM['length']?hP:hM['length'];};BDFDB['readServerList']=function(){var hQ=[],hR=BDFDB['getOwnerInstance']({'node':document['querySelector'](BDFDB['dotCN']['guilds']),'name':'Guild','all':!![],'noCopies':!![],'depth':0x5f5e0ff,'time':0x5f5e0ff});for(let hS in hR)if(hR[hS]['props']&&hR[hS]['props']['guild']&&hR[hS]['_reactInternalFiber']['child'])hQ['push'](Object['assign'](new hR[hS]['props']['guild']['constructor'](hR[hS]['props']['guild']),{'div':BDFDB['React']['findDOMNodeSafe'](hR[hS]),'instance':hR[hS]}));return hQ;};BDFDB['readUnreadServerList']=function(hT){var hU=[];for(let hV of hT===undefined||!Array['isArray'](hT)?BDFDB['readServerList']():hT){let hW=Node['prototype']['isPrototypeOf'](hV)?hV:hV&&hV['div']?hV['div']:null;let hX=BDFDB['getReactValue'](hW,'return.stateNode.props');if(hX&&(hX['unread']||hX['badge']>0x0))hU['push'](hV);}return hU;};BDFDB['readMutedServerList']=function(hY){var hZ=[],i0=BDFDB['WebModules']['findByProperties']('isGuildOrCategoryOrChannelMuted');for(let i1 of hY===undefined||!Array['isArray'](hY)?BDFDB['readServerList']():hY){let i2=Node['prototype']['isPrototypeOf'](i1)?i1:i1&&i1['div']?i1['div']:null;let i3=BDFDB['getReactValue'](i2,'return.stateNode.props.guild.id');if(i3&&i0['isGuildOrCategoryOrChannelMuted'](i3))hZ['push'](i1);}return hZ;};BDFDB['getSelectedServer']=function(){var i4=BDFDB['WebModules']['findByProperties']('getGuilds')['getGuild'](BDFDB['WebModules']['findByProperties']('getLastSelectedGuildId')['getGuildId']());if(i4)return BDFDB['getServerData'](i4['id'])||Object['assign'](new i4['constructor'](i4),{'div':null,'instance':null});else return null;};BDFDB['getServerID']=function(i5){if(!Node['prototype']['isPrototypeOf'](i5)||!BDFDB['getReactInstance'](i5))return;let i6=BDFDB['getParentEle'](BDFDB['dotCN']['guildouter'],i5);if(!i6)return;var i7=i6['querySelector'](BDFDB['dotCN']['guildiconwrapper']);var i8=i7&&i7['href']?i7['href']['split']('/')['slice'](-0x2)[0x0]:null;return i8&&!isNaN(parseInt(i8))?i8['toString']():null;};BDFDB['getServerDiv']=function(i9){if(!i9)return null;if(Node['prototype']['isPrototypeOf'](i9))return BDFDB['getParentEle'](BDFDB['dotCN']['guildouter'],i9);else{let ia=typeof i9=='object'?i9['id']:i9;if(ia)return BDFDB['getParentEle'](BDFDB['dotCN']['guildouter'],document['querySelector'](BDFDB['dotCNS']['guilds']+BDFDB['dotCN']['guildiconwrapper']+'[href*=\x22/channels/'+ia+'\x22]'));}return null;};BDFDB['getServerData']=function(ib){if(!ib)return null;let ic=Node['prototype']['isPrototypeOf'](ib)?BDFDB['getServerID'](ib):typeof ib=='object'?ib['id']:ib;ic=typeof ic=='number'?ic['toFixed']():ic;for(let id of BDFDB['readServerList']())if(id&&id['id']==ic)return id;return null;};BDFDB['readChannelList']=function(){var ie=[],ig=BDFDB['getOwnerInstance']({'node':document['querySelector'](BDFDB['dotCN']['channels']),'name':['ChannelCategoryItem','ChannelItem','PrivateChannel'],'all':!![],'noCopies':!![],'depth':0x5f5e0ff,'time':0x5f5e0ff});for(let ih in ig)if(ig[ih]['props']&&!ig[ih]['props']['ispin']&&ig[ih]['props']['channel']&&ig[ih]['_reactInternalFiber']['return']){var ii=BDFDB['React']['findDOMNodeSafe'](ig[ih]);ii=ii&&BDFDB['containsClass'](ii['parentElement'],BDFDB['disCN']['categorycontainerdefault'],BDFDB['disCN']['channelcontainerdefault'],![])?ii['parentElement']:ii;ie['push'](Object['assign'](new ig[ih]['props']['channel']['constructor'](ig[ih]['props']['channel']),{'div':ii,'instance':ig[ih]}));}return ie;};BDFDB['getSelectedChannel']=function(){var ij=BDFDB['WebModules']['findByProperties']('getChannels')['getChannel'](BDFDB['WebModules']['findByProperties']('getLastSelectedChannelId')['getChannelId']());if(ij)return BDFDB['getChannelData'](ij['id'])||Object['assign'](new ij['constructor'](ij),{'div':null,'instance':null});else return null;};BDFDB['getChannelID']=function(ik){if(!Node['prototype']['isPrototypeOf'](ik)||!BDFDB['getReactInstance'](ik))return;ik=BDFDB['getParentEle'](BDFDB['dotCNC']['categorycontainerdefault']+BDFDB['dotCNC']['channelcontainerdefault']+BDFDB['dotCN']['dmchannel'],ik);if(!ik)return;var il=BDFDB['getKeyInformation']({'node':ik,'key':'channel'});return il?il['id']['toString']():null;};BDFDB['getChannelDiv']=function(im){if(!im)return null;let io=BDFDB['getChannelData'](im);return io?io['div']:null;};BDFDB['getChannelData']=function(ip){if(!ip)return null;let iq=Node['prototype']['isPrototypeOf'](ip)?BDFDB['getChannelID'](ip):typeof ip=='object'?ip['id']:ip;iq=typeof iq=='number'?iq['toFixed']():iq;for(let ir of BDFDB['readChannelList']())if(ir&&ir['id']==iq)return ir;return null;};BDFDB['readDmList']=function(){var is=[],it=BDFDB['getOwnerInstance']({'node':document['querySelector'](BDFDB['dotCN']['guilds']),'name':'DirectMessage','all':!![],'noCopies':!![],'depth':0x5f5e0ff,'time':0x5f5e0ff});for(let iu in it)if(it[iu]['props']&&it[iu]['props']['channel']&&it[iu]['_reactInternalFiber']['child'])is['push'](Object['assign'](new it[iu]['props']['channel']['constructor'](it[iu]['props']['channel']),{'div':BDFDB['React']['findDOMNodeSafe'](it[iu]),'instance':it[iu]}));return is;};BDFDB['getDmID']=function(iv){if(!Node['prototype']['isPrototypeOf'](iv)||!BDFDB['getReactInstance'](iv))return;let iw=BDFDB['getParentEle'](BDFDB['dotCN']['guildouter'],iv);if(!iw)return;var ix=iw['querySelector'](BDFDB['dotCN']['guildiconwrapper']);var iy=ix&&ix['href']?ix['href']['split']('/')['slice'](-0x1)[0x0]:null;return iy&&!isNaN(parseInt(iy))?iy['toString']():null;};BDFDB['getDmDiv']=function(iz){if(!iz)return null;if(Node['prototype']['isPrototypeOf'](iz)){var iA=BDFDB['getParentEle'](BDFDB['dotCN']['guildouter'],iz);return iA?iA['parentElement']:iA;}else{let iB=typeof iz=='object'?iz['id']:iz;if(iB){var iA=BDFDB['getParentEle'](BDFDB['dotCN']['guildouter'],document['querySelector'](BDFDB['dotCNS']['guilds']+BDFDB['dotCNS']['dmcontainer']+BDFDB['dotCN']['guildiconwrapper']+'[href*=\x22/channels/@me/'+iB+'\x22]'));return iA&&BDFDB?iA['parentElement']:iA;}}return null;};BDFDB['getDmData']=function(iD){if(!iD)return null;let iE=Node['prototype']['isPrototypeOf'](iD)?BDFDB['getDmID'](iD):typeof iD=='object'?iD['id']:iD;iE=typeof iE=='number'?iE['toFixed']():iE;for(let iF of BDFDB['readDmList']())if(iF&&iF['id']==iE)return iF;return null;};BDFDB['markChannelAsRead']=function(iG){if(!iG)return;var iH=BDFDB['WebModules']['findByProperties']('getOldestUnreadMessageId');var iI=BDFDB['WebModules']['findByProperties']('getAPIBaseURL');var iJ=BDFDB['WebModules']['findByProperties']('Permissions','ActivityTypes','StatusTypes');if(!iH||!iI||!iJ)return;for(let iK of Array['isArray'](iG)?iG:typeof iG=='string'||typeof iG=='number'?Array['of'](iG):Array['from'](iG)){let iL=Node['prototype']['isPrototypeOf'](iK)?BDFDB['getChannelID'](iK)||BDFDB['getDmID'](iK):iK&&typeof iK=='object'?iK['id']:iK;if(iL){let iM=iH['getOldestUnreadMessageId'](iL);if(iM)iI['post']({'body':{},'url':iJ['Endpoints']['MESSAGES_ACK'](iL,iM)});}}};BDFDB['markGuildAsRead']=function(iN){if(!iN)return;var iO=BDFDB['WebModules']['findByProperties']('markGuildAsRead');if(!iO)return;for(let iP of Array['isArray'](iN)?iN:typeof iN=='string'||typeof iN=='number'?Array['of'](iN):Array['from'](iN)){let iQ=Node['prototype']['isPrototypeOf'](iP)?BDFDB['getServerID'](iP):iP&&typeof iP=='object'?iP['id']:iP;if(iQ)iO['markGuildAsRead'](iQ);}};BDFDB['saveAllData']=function(iR,iS,iT){var iU=require('fs'),iV,iW;if(!BDFDB['isBDv2']()){iW=typeof iS==='string'?iS:iS['name'];iV=require('path')['join'](BDFDB['getPluginsFolder'](),iW+'.config.json');}else{iW=typeof iS==='string'?iS['toLowerCase']():null;var iX=iW?BDFDB['Plugins'][iW]?BDFDB['Plugins'][iW]['contentPath']:null:iS['contentPath'];if(!iX)return;iV=require('path')['join'](iX,'settings.json');}var iY=iU['existsSync'](iV);var iZ=!iY?{}:typeof BDFDB['cachedData'][iW]!=='undefined'?BDFDB['cachedData'][iW]:BDFDB['readConfig'](iV);iZ[iT]=iR;if(BDFDB['isObjectEmpty'](iZ[iT]))delete iZ[iT];if(BDFDB['isObjectEmpty'](iZ)){delete BDFDB['cachedData'][iW];if(iY)iU['unlinkSync'](iV);}else{BDFDB['cachedData'][iW]=iZ;iU['writeFileSync'](iV,JSON['stringify'](iZ,null,'\x09'));}};BDFDB['loadAllData']=function(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');}if(!j2['existsSync'](j3)){delete BDFDB['cachedData'][j4];return{};}var j6=typeof BDFDB['cachedData'][j4]!=='undefined'?BDFDB['cachedData'][j4]:BDFDB['readConfig'](j3);BDFDB['cachedData'][j4]=j6;return j6&&typeof j6[j1]!=='undefined'?j6[j1]:{};};BDFDB['removeAllData']=function(j7,j8){var j9=require('fs'),ja,jb;if(!BDFDB['isBDv2']()){jb=typeof j7==='string'?j7:j7['name'];ja=require('path')['join'](BDFDB['getPluginsFolder'](),jb+'.config.json');}else{jb=typeof j7==='string'?j7['toLowerCase']():null;var jc=jb?BDFDB['Plugins'][jb]?BDFDB['Plugins'][jb]['contentPath']:null:j7['contentPath'];if(!jc)return;ja=require('path')['join'](jc,'settings.json');}var jd=j9['existsSync'](ja);var je=!jd?{}:typeof BDFDB['cachedData'][jb]!=='undefined'?BDFDB['cachedData'][jb]:BDFDB['readConfig'](ja);delete je[j8];if(BDFDB['isObjectEmpty'](je)){delete BDFDB['cachedData'][jb];if(jd)j9['unlinkSync'](ja);}else{BDFDB['cachedData'][jb]=je;j9['writeFileSync'](ja,JSON['stringify'](je,null,'\x09'));}};BDFDB['getAllData']=function(jf,jg){if(!BDFDB['isObject'](jf)||!jf['defaults']||!jf['defaults'][jg])return{};var jh=BDFDB['loadAllData'](jf,jg),ji={},jj=![];for(let jk in jf['defaults'][jg]){if(jh[jk]==null){ji[jk]=jf['defaults'][jg][jk]['value'];jj=!![];}else ji[jk]=jh[jk];}if(jj)BDFDB['saveAllData'](ji,jf,jg);return ji;};BDFDB['readConfig']=function(jl){try{return JSON['parse'](require('fs')['readFileSync'](jl));}catch(jm){return{};}};BDFDB['saveData']=function(jn,jo,jp,jq){var jr=BDFDB['loadAllData'](jp,jq);jr[jn]=jo;BDFDB['saveAllData'](jr,jp,jq);};BDFDB['loadData']=function(js,jt,ju){var jv=BDFDB['loadAllData'](jt,ju);var jw=jv[js];return jw===undefined?null:jw;};BDFDB['removeData']=function(jx,jy,jz){var jA=BDFDB['loadAllData'](jy,jz);delete jA[jx];BDFDB['saveAllData'](jA,jy,jz);};BDFDB['getData']=function(jB,jC,jD){var jE=BDFDB['getAllData'](jC,jD);var jF=jE[jB];return jF===undefined?null:jF;};BDFDB['appendWebScript']=function(jG,jH){if(!jH&&!document['head']['querySelector']('bd-head\x20bd-scripts'))document['head']['appendChild'](BDFDB['htmlToElement'](''));jH=jH||document['head']['querySelector']('bd-head\x20bd-scripts')||document['head'];jH=Node['prototype']['isPrototypeOf'](jH)?jH:document['head'];BDFDB['removeWebScript'](jG,jH);jH['appendChild'](BDFDB['htmlToElement'](''));};BDFDB['removeWebScript']=function(jI,jJ){jJ=jJ||document['head']['querySelector']('bd-head\x20bd-scripts')||document['head'];jJ=Node['prototype']['isPrototypeOf'](jJ)?jJ:document['head'];BDFDB['removeEles'](jJ['querySelectorAll']('script[src=\x22'+jI+'\x22]'));};BDFDB['appendWebStyle']=function(jK,jL){if(!jL&&!document['head']['querySelector']('bd-head\x20bd-styles'))document['head']['appendChild'](BDFDB['htmlToElement'](''));jL=jL||document['head']['querySelector']('bd-head\x20bd-styles')||document['head'];jL=Node['prototype']['isPrototypeOf'](jL)?jL:document['head'];BDFDB['removeWebStyle'](jK,jL);jL['appendChild'](BDFDB['htmlToElement'](''));};BDFDB['removeWebStyle']=function(jM,jN){jN=jN||document['head']['querySelector']('bd-head\x20bd-styles')||document['head'];jN=Node['prototype']['isPrototypeOf'](jN)?jN:document['head'];BDFDB['removeEles'](jN['querySelectorAll']('link[href=\x22'+jM+'\x22]'));};BDFDB['appendLocalStyle']=function(jO,jP,jQ){if(!jQ&&!document['head']['querySelector']('bd-head\x20bd-styles'))document['head']['appendChild'](BDFDB['htmlToElement'](''));jQ=jQ||document['head']['querySelector']('bd-head\x20bd-styles')||document['head'];jQ=Node['prototype']['isPrototypeOf'](jQ)?jQ:document['head'];BDFDB['removeLocalStyle'](jO,jQ);jQ['appendChild'](BDFDB['htmlToElement'](''));};BDFDB['removeLocalStyle']=function(jR,jS){jS=jS||document['head']['querySelector']('bd-head\x20bd-styles')||document['head'];jS=Node['prototype']['isPrototypeOf'](jS)?jS:document['head'];BDFDB['removeEles'](jS['querySelectorAll']('style[id=\x22'+jR+'CSS\x22]'));};BDFDB['formatBytes']=function(jT,jU){jT=parseInt(jT);if(isNaN(jT)||jT<0x0)return'0\x20Bytes';if(jT==0x1)return'1\x20Byte';var jV=Math['floor'](Math['log'](jT)/Math['log'](0x400));return parseFloat((jT/Math['pow'](0x400,jV))['toFixed'](jU<0x1?0x0:jU>0x14?0x14:jU||0x2))+'\x20'+['Bytes','KB','MB','GB','TB','PB','EB','ZB','YB'][jV];};BDFDB['colorCONVERT']=function(jW,jX,jY){if(!jW)return null;jX=jX===undefined||!jX?jX='RGBCOMP':jX['toUpperCase']();jY=jY===undefined||!jY||!['RGB','RGBA','RGBCOMP','HSL','HSLA','HSLCOMP']['includes'](jY['toUpperCase']())?BDFDB['colorTYPE'](jW):jY['toUpperCase']();if(jX=='RGBCOMP'){switch(jY){case'RGBCOMP':if(jW['length']==0x3)return ky(jW);else if(jW['length']==0x4){var jZ=kB(jW['pop']());return ky(jW)['concat'](jZ);}case'RGB':return ky(jW['replace'](/\s/g,'')['slice'](0x4,-0x1)['split'](','));case'RGBA':var k0=jW['replace'](/\s/g,'')['slice'](0x5,-0x1)['split'](',');var jZ=kB(k0['pop']());return ky(k0)['concat'](jZ);case'HSLCOMP':if(jW['length']==0x3)return BDFDB['colorCONVERT']('hsl('+jW['join'](',')+')','RGBCOMP');else if(jW['length']==0x4){var jZ=kB(jg['pop']());return BDFDB['colorCONVERT']('hsl('+jg['join'](',')+')','RGBCOMP')['concat'](jZ);}case'HSL':var k3=kF(jW['replace'](/\s/g,'')['slice'](0x4,-0x1)['split'](','));var k4,k5,k6,k7,k8,k9,ka,kb;var kc=k3[0x0]/0x168,kd=parseInt(k3[0x1])/0x64,ke=parseInt(k3[0x2])/0x64;k7=Math['floor'](kc*0x6);k8=kc*0x6-k7;k9=ke*(0x1-kd);ka=ke*(0x1-k8*kd);kb=ke*(0x1-(0x1-k8)*kd);switch(k7%0x6){case 0x0:k4=ke,k5=kb,k6=k9;break;case 0x1:k4=ka,k5=ke,k6=k9;break;case 0x2:k4=k9,k5=ke,k6=kb;break;case 0x3:k4=k9,k5=ka,k6=ke;break;case 0x4:k4=kb,k5=k9,k6=ke;break;case 0x5:k4=ke,k5=k9,k6=ka;break;}return[Math['round'](k4*0xff),Math['round'](k5*0xff),Math['round'](k6*0xff)];case'HSLA':var k3=jW['replace'](/\s/g,'')['slice'](0x5,-0x1)['split'](',');var jZ=kB(k3['pop']());return BDFDB['colorCONVERT']('hsl('+k3['join'](',')+')','RGBCOMP')['concat'](jZ);case'HEX':var kh=/^#([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'](jW);return[parseInt(kh[0x1]+kh[0x1]||kh[0x4],0x10)['toString'](),parseInt(kh[0x2]+kh[0x2]||kh[0x5],0x10)['toString'](),parseInt(kh[0x3]+kh[0x3]||kh[0x6],0x10)['toString']()];default:return null;}}else{var ki=jY=='RGBCOMP'?jW:BDFDB['colorCONVERT'](jW,'RGBCOMP',jY);if(ki)switch(jX){case'RGB':return'rgb('+ky(ki['slice'](0x0,0x3))['join'](',')+')';case'RGBA':ki=ki['slice'](0x0,0x4);var jZ=ki['length']==0x4?kB(ki['pop']()):0x1;return'rgba('+ky(ki)['concat'](jZ)['join'](',')+')';case'HSLCOMP':var jZ=ki['length']==0x4?kB(ki['pop']()):null;var k3=kF(BDFDB['colorCONVERT'](ki,'HSL')['replace'](/\s/g,'')['split'](','));return jZ?k3['concat'](jZ):k3;case'HSL':var k4=kw(ki[0x0]),k5=kw(ki[0x1]),k6=kw(ki[0x2]);var kp=Math['max'](k4,k5,k6),kq=Math['min'](k4,k5,k6),kr=kp-kq,kc,kd=kp===0x0?0x0:kr/kp,ke=kp/0xff;switch(kp){case kq:kc=0x0;break;case k4:kc=k5-k6+kr*(k50xff?0xff:k8<0x0?0x0:k8;};function ky(k0){return k0['map'](k8=>{return kw(k8);});};function kB(jZ){jZ=jZ['toString']();jZ=(jZ['indexOf']('%')>-0x1?0.01:0x1)*parseFloat(jZ['replace'](/[^0-9\.\-]/g,''));return isNaN(jZ)||jZ>0x1?0x1:jZ<0x0?0x0:jZ;};function kD(kE){kE=parseFloat(kE['toString']()['replace'](/[^0-9\.\-]/g,''));return(isNaN(kE)||kE>0x64?0x64:kE<0x0?0x0:kE)+'%';};function kF(k0){let kc=parseFloat(k0['shift']()['toString']()['replace'](/[^0-9\.\-]/g,''));kc=isNaN(kc)||kc>0x168?0x168:kc<0x0?0x0:kc;return[kc]['concat'](k0['map'](kI=>{return kD(kI);}));};};BDFDB['colorSETALPHA']=function(kJ,kK,kL){var kM=BDFDB['colorCONVERT'](kJ,'RGBCOMP');if(kM){kK=kK['toString']();kK=(kK['indexOf']('%')>-0x1?0.01:0x1)*parseFloat(kK['replace'](/[^0-9\.\-]/g,''));kK=isNaN(kK)||kK>0x1?0x1:kK<0x0?0x0:kK;kM[0x3]=kK;kL=(kL||BDFDB['colorTYPE'](kJ))['toUpperCase']();kL=kL=='HSL'||kL=='RGB'?kL+'A':kL;return BDFDB['colorCONVERT'](kM,kL);}return null;};BDFDB['colorCHANGE']=function(kN,kO,kP){kO=parseFloat(kO);if(kN&&typeof kO=='number'&&!isNaN(kO)){var kQ=BDFDB['colorCONVERT'](kN,'RGBCOMP');if(kQ){if(parseInt(kO)!==kO){kO=kO['toString']();kO=(kO['indexOf']('%')>-0x1?0.01:0x1)*parseFloat(kO['replace'](/[^0-9\.\-]/g,''));kO=isNaN(kO)?0x0:kO;return BDFDB['colorCONVERT']([Math['round'](kQ[0x0]*(0x1+kO)),Math['round'](kQ[0x1]*(0x1+kO)),Math['round'](kQ[0x2]*(0x1+kO))],kP||BDFDB['colorTYPE'](kN));}else return BDFDB['colorCONVERT']([Math['round'](kQ[0x0]+kO),Math['round'](kQ[0x1]+kO),Math['round'](kQ[0x2]+kO)],kP||BDFDB['colorTYPE'](kN));}}return null;};BDFDB['colorINV']=function(kR,kS){if(kR){var kT=BDFDB['colorCONVERT'](kR,'RGBCOMP');if(kT)return BDFDB['colorCONVERT']([0xff-kT[0x0],0xff-kT[0x1],0xff-kT[0x2]],kS||BDFDB['colorTYPE'](kR));}return null;};BDFDB['colorCOMPARE']=function(kU,kV){if(kU&&kV){kU=BDFDB['colorCONVERT'](kU,'RGBCOMP');kV=BDFDB['colorCONVERT'](kV,'RGBCOMP');if(kU&&kV)return BDFDB['equals'](kU,kV);}return null;};BDFDB['colorISBRIGHT']=function(kW,kX=0xa0){kW=BDFDB['colorCONVERT'](kW,'RGBCOMP');if(!kW)return![];return parseInt(kX)