diff --git a/Plugins/BDFDB.js b/Plugins/BDFDB.js
index 509f98386c..31f3478251 100644
--- a/Plugins/BDFDB.js
+++ b/Plugins/BDFDB.js
@@ -8917,7 +8917,8 @@ var BDFDB = {
let newBadges = ["lowerLeftBadge", "upperLeftBadge"];
BDFDB.ModuleUtils.patch(BDFDB, LibraryComponents.GuildComponents.BlobMask.prototype, "render", {
before: e => {
- for (let type of newBadges) e.thisObject.state[`${type}Mask`] = new LibraryComponents.Animations.Controller({spring: 0})
+ e.thisObject.props = Object.assign({}, LibraryComponents.GuildComponents.BlobMask.defaultProps, e.thisObject.props);
+ for (let type of newBadges) e.thisObject.state[`${type}Mask`] = new LibraryComponents.Animations.Controller({spring: 0});
},
after: e => {
let [children, index] = BDFDB.ReactUtils.findChildren(e.returnValue, {name: "TransitionGroup"});
@@ -9016,7 +9017,9 @@ var BDFDB = {
})
}
};
- InternalBDFDB.setDefaultProps(LibraryComponents.GuildComponents.BlobMask, {lowerLeftBadgeWidth:16, upperLeftBadgeWidth:16});
+ let extraDefaultProps = {};
+ for (let type of newBadges) extraDefaultProps[`${type}Width`] = 16;
+ InternalBDFDB.setDefaultProps(LibraryComponents.GuildComponents.BlobMask, extraDefaultProps);
}
BDFDB.ModuleUtils.patch(BDFDB, LibraryModules.GuildStore, "getGuild", {after: e => {
diff --git a/Plugins/BDFDB.min.js b/Plugins/BDFDB.min.js
index 44d8dda467..bcf0b45d6b 100644
--- a/Plugins/BDFDB.min.js
+++ b/Plugins/BDFDB.min.js
@@ -1 +1 @@
-if(window['BDFDB']&&BDFDB['ListenerUtils']&&typeof BDFDB['ListenerUtils']['remove']=='function')BDFDB['ListenerUtils']['remove'](BDFDB);if(window['BDFDB']&&BDFDB['ObserverUtils']&&typeof BDFDB['ObserverUtils']['disconnect']=='function')BDFDB['ObserverUtils']['disconnect'](BDFDB);if(window['BDFDB']&&BDFDB['ModuleUtils']&&typeof BDFDB['ModuleUtils']['unpatch']=='function')BDFDB['ModuleUtils']['unpatch'](BDFDB);var BDFDB={'myPlugins':BDFDB&&BDFDB['myPlugins']||{},'InternalData':BDFDB&&BDFDB['InternalData']||{'pressedKeys':[],'mousePosition':{'pageX':0x0,'pageY':0x0}},'BDv2Api':BDFDB&&BDFDB['BDv2Api']||undefined,'pressedKeys':[],'mousePosition':{'pageX':0x0,'pageY':0x0},'name':'$BDFDB'};(c=>{var d=Math['round'](Math['random']()*0x2386f26fc10000),e={};BDFDB['InternalData']['loadid']=d;BDFDB['InternalData']['creationTime']=performance['now']();BDFDB['LogUtils']={};BDFDB['LogUtils']['log']=function(f,g){if(typeof f!='string')f='';if(typeof g!='string'||g=='$BDFDB')g='BDFDB';console['log']('%c['+g+']%c','color:\x20#3a71c1;\x20font-weight:\x20700;','',f['trim']());};BDFDB['LogUtils']['warn']=function(h,i){if(typeof h!='string')h='';if(typeof i!='string'||i=='$BDFDB')i='BDFDB';console['warn']('%c['+i+']%c','color:\x20#3a71c1;\x20font-weight:\x20700;','',h['trim']());};BDFDB['LogUtils']['error']=function(j,k){if(typeof j!='string')j='';if(typeof k!='string'||k=='$BDFDB')k='BDFDB';console['error']('%c['+k+']%c','color:\x20#3a71c1;\x20font-weight:\x20700;','','Fatal\x20Error:\x20'+j['trim']());};BDFDB['LogUtils']['log']('Loading\x20library.');BDFDB['PluginUtils']={};BDFDB['PluginUtils']['init']=function(l){l['name']=l['name']||(typeof l['getName']=='function'?l['getName']():null);l['version']=l['version']||(typeof l['getVersion']=='function'?l['getVersion']():null);l['author']=l['author']||(typeof l['getAuthor']=='function'?l['getAuthor']():null);l['description']=l['description']||(typeof l['getDescription']=='function'?l['getDescription']():null);if(l['patchModules']){l['patchedModules']={'after':l['patchModules']};delete l['patchModules'];}l['patchedModules']=BDFDB['ObjectUtils']['filter'](l['patchedModules'],m=>eT['Patchtypes']['includes'](m),!![]);e['clearStartTimeout'](l);var n=BDFDB['LanguageUtils']['LibraryStringsFormat']('toast_plugin_started','v'+l['version']);BDFDB['LogUtils']['log'](n,l['name']);if(!BDFDB['BDUtils']['getSettings']('fork-ps-2'))BDFDB['NotificationUtils']['toast'](l['name']+'\x20'+n,{'nopointer':!![],'selector':'plugin-started-toast'});var o=typeof l['getRawUrl']=='function'&&typeof l['getRawUrl']()=='string'?l['getRawUrl']():'https://mwittrien.github.io/BetterDiscordAddons/Plugins/'+l['name']+'/'+l['name']+'.plugin.js';BDFDB['PluginUtils']['checkUpdate'](l['name'],o);if(BDFDB['ObjectUtils']['is'](l['classes']))e['addPluginClasses'](l);if(typeof l['initConstructor']==='function')BDFDB['TimeUtils']['suppress'](l['initConstructor']['bind'](l),'Could\x20not\x20initiate\x20constructor!',l['name'])();if(typeof l['css']==='string')BDFDB['DOMUtils']['appendLocalStyle'](l['name'],l['css']);e['patchPlugin'](l);e['addOnSettingsClosedListener'](l);e['addOnSwitchListener'](l);e['addContextListeners'](l);BDFDB['PluginUtils']['translate'](l);BDFDB['PluginUtils']['checkChangeLog'](l);if(!window['PluginUpdates']||typeof window['PluginUpdates']!=='object')window['PluginUpdates']={'plugins':{}};window['PluginUpdates']['plugins'][o]={'name':l['name'],'raw':o,'version':l['version']};if(typeof window['PluginUpdates']['interval']==='undefined')window['PluginUpdates']['interval']=BDFDB['TimeUtils']['interval'](c=>{BDFDB['PluginUtils']['checkAllUpdates']();},0x3e8*0x3c*0x3c*0x2);l['started']=!![];delete l['stopping'];for(let q in BDFDB['myPlugins'])if(!BDFDB['myPlugins'][q]['started']&&typeof BDFDB['myPlugins'][q]['initialize']=='function')setImmediate(()=>{BDFDB['TimeUtils']['suppress'](BDFDB['myPlugins'][q]['initialize']['bind'](BDFDB['myPlugins'][q]),'Could\x20not\x20initiate\x20plugin!',q)();});};BDFDB['PluginUtils']['clear']=function(r){e['clearStartTimeout'](r);delete BDFDB['myPlugins'][r['name']];var s=BDFDB['LanguageUtils']['LibraryStringsFormat']('toast_plugin_stopped','v'+r['version']);BDFDB['LogUtils']['log'](s,r['name']);if(!BDFDB['BDUtils']['getSettings']('fork-ps-2'))BDFDB['NotificationUtils']['toast'](r['name']+'\x20'+s,{'nopointer':!![],'selector':'plugin-stopped-toast'});var t=typeof r['getRawUrl']=='function'&&typeof r['getRawUrl']()=='string'?r['getRawUrl']():'https://mwittrien.github.io/BetterDiscordAddons/Plugins/'+r['name']+'/'+r['name']+'.plugin.js';if(BDFDB['ObjectUtils']['is'](r['classes']))e['removePluginClasses'](r);if(typeof r['css']==='string')BDFDB['DOMUtils']['removeLocalStyle'](r['name']);BDFDB['ModuleUtils']['unpatch'](r);BDFDB['ListenerUtils']['remove'](r);BDFDB['ObserverUtils']['disconnect'](r);e['removeOnSwitchListener'](r);for(let u of document['querySelectorAll']('.'+r['name']+'-modal,\x20.'+r['name']['toLowerCase']()+'-modal,\x20.'+r['name']+'-settingsmodal,\x20.'+r['name']['toLowerCase']()+'-settingsmodal')){let v=u['querySelector'](BDFDB['dotCN']['modalclose']);if(v)v['click']();}delete window['PluginUpdates']['plugins'][t];delete r['started'];BDFDB['TimeUtils']['timeout'](()=>{delete r['stopping'];});};BDFDB['PluginUtils']['translate']=function(w){w['labels']={};if(typeof w['setLabelsByLanguage']==='function'||typeof w['changeLanguageStrings']==='function'){if(document['querySelector']('html')['lang'])z();else{var x=BDFDB['TimeUtils']['interval'](c=>{if(document['querySelector']('html')['lang']){BDFDB['TimeUtils']['clear'](x);z();}},0x64);}function z(){var A=BDFDB['LanguageUtils']['getLanguage']();if(typeof w['setLabelsByLanguage']==='function')w['labels']=w['setLabelsByLanguage'](A['id']);if(typeof w['changeLanguageStrings']==='function')w['changeLanguageStrings']();BDFDB['LogUtils']['log'](BDFDB['LanguageUtils']['LibraryStringsFormat']('toast_plugin_translated',A['ownlang']),w['name']);}}};BDFDB['PluginUtils']['checkUpdate']=function(B,C){if(BDFDB['BDUtils']['isBDv2']()||!B||!C)return;hw['request'](C,(D,E,F)=>{if(D)return;var G=F['match'](/['"][0-9]+\.[0-9]+\.[0-9]+['"]/i);if(!G)return;if(BDFDB['NumberUtils']['getVersionDifference'](G[0x0],window['PluginUpdates']['plugins'][C]['version'])>0.2){BDFDB['NotificationUtils']['toast'](B+'\x20will\x20be\x20force\x20updated,\x20because\x20your\x20version\x20is\x20heavily\x20outdated.',{'type':'warn','nopointer':!![],'selector':'plugin-forceupdate-toast'});BDFDB['PluginUtils']['downloadUpdate'](B,C);}else if(BDFDB['NumberUtils']['compareVersions'](G[0x0],window['PluginUpdates']['plugins'][C]['version']))BDFDB['PluginUtils']['showUpdateNotice'](B,C);else BDFDB['PluginUtils']['removeUpdateNotice'](B);});};BDFDB['PluginUtils']['checkAllUpdates']=function(){for(let H in window['PluginUpdates']['plugins']){var I=window['PluginUpdates']['plugins'][H];BDFDB['PluginUtils']['checkUpdate'](I['name'],I['raw']);}};BDFDB['PluginUtils']['showUpdateNotice']=function(J,K){if(!J||!K)return;var L=document['querySelector']('#pluginNotice');if(!L){L=BDFDB['NotificationUtils']['notice']('The\x20following\x20plugins\x20need\x20to\x20be\x20updated: ',{'html':!![],'id':'pluginNotice','type':'info','btn':!BDFDB['BDUtils']['isAutoLoadEnabled']()?'Reload':'','customicon':''});L['style']['setProperty']('display','block','important');L['style']['setProperty']('visibility','visible','important');L['style']['setProperty']('opacity','1','important');L['querySelector'](BDFDB['dotCN']['noticedismiss'])['addEventListener']('click',c=>{BDFDB['DOMUtils']['remove']('.update-clickme-tooltip');});var N=L['querySelector'](BDFDB['dotCN']['noticebutton']);if(N){BDFDB['DOMUtils']['toggle'](N,!![]);N['addEventListener']('click',c=>{window['location']['reload'](![]);});N['addEventListener']('mouseenter',c=>{if(window['PluginUpdates']['downloaded'])BDFDB['TooltipUtils']['create'](N,window['PluginUpdates']['downloaded']['join'](',\x20'),{'type':'bottom','selector':'update-notice-tooltip','style':'max-width:\x20420px'});});}}if(L){var Q=L['querySelector']('#outdatedPlugins');if(Q&&!Q['querySelector']('#'+J+'-notice')){if(Q['querySelector']('span'))Q['appendChild'](BDFDB['DOMUtils']['create'](',\x20'));var R=BDFDB['DOMUtils']['create'](''+J+'');R['addEventListener']('click',c=>{BDFDB['PluginUtils']['downloadUpdate'](J,K);});Q['appendChild'](R);if(!document['querySelector']('.update-clickme-tooltip'))BDFDB['TooltipUtils']['create'](Q,'Click\x20us!',{'type':'bottom','selector':'update-clickme-tooltip','delay':0x1f4});}}};BDFDB['PluginUtils']['removeUpdateNotice']=function(T,U=document['querySelector']('#pluginNotice')){if(!T||!U)return;var V=U['querySelector']('#outdatedPlugins');if(V){var W=V['querySelector']('#'+T+'-notice');if(W){var X=W['nextSibling'];var Y=W['prevSibling'];if(X&&BDFDB['DOMUtils']['containsClass'](X,'separator'))X['remove']();else if(Y&&BDFDB['DOMUtils']['containsClass'](Y,'separator'))Y['remove']();W['remove']();}if(!V['querySelector']('span')){var Z=U['querySelector'](BDFDB['dotCN']['noticebutton']);if(Z){U['querySelector']('.notice-message')['innerText']='To\x20finish\x20updating\x20you\x20need\x20to\x20reload.';BDFDB['DOMUtils']['toggle'](Z,![]);}else U['querySelector'](BDFDB['dotCN']['noticedismiss'])['click']();}}};BDFDB['PluginUtils']['downloadUpdate']=function(a0,a1){if(!a0||!a1)return;hw['request'](a1,(a2,a3,a4)=>{if(a2)return BDFDB['LogUtils']['warn']('Unable\x20to\x20get\x20update\x20for\x20'+a0);BDFDB['InternalData']['creationTime']=0x0;var a5=a4['match'](/['"][0-9]+\.[0-9]+\.[0-9]+['"]/i);a5=a5['toString']()['replace'](/['"]/g,'');hw['fs']['writeFileSync'](hw['path']['join'](BDFDB['BDUtils']['getPluginsFolder'](),a1['split']('/')['slice'](-0x1)[0x0]),a4);BDFDB['NotificationUtils']['toast'](a0+'\x20v'+window['PluginUpdates']['plugins'][a1]['version']+'\x20has\x20been\x20replaced\x20by\x20'+a0+'\x20v'+a5+'.',{'nopointer':!![],'selector':'plugin-updated-toast'});var a6=document['querySelector']('#pluginNotice');if(a6){if(a6['querySelector'](BDFDB['dotCN']['noticebutton'])){window['PluginUpdates']['plugins'][a1]['version']=a5;if(!window['PluginUpdates']['downloaded'])window['PluginUpdates']['downloaded']=[];if(!window['PluginUpdates']['downloaded']['includes'](a0))window['PluginUpdates']['downloaded']['push'](a0);}BDFDB['PluginUtils']['removeUpdateNotice'](a0,a6);}});};BDFDB['PluginUtils']['checkChangeLog']=function(a7){if(!BDFDB['ObjectUtils']['is'](a7)||!a7['changelog'])return;var a8=BDFDB['DataUtils']['load'](a7,'changelog');if(!a8['currentversion']||BDFDB['NumberUtils']['compareVersions'](a7['version'],a8['currentversion'])){a8['currentversion']=a7['version'];BDFDB['DataUtils']['save'](a8,a7,'changelog');BDFDB['PluginUtils']['openChangeLog'](a7);}};BDFDB['PluginUtils']['openChangeLog']=function(a9){if(!BDFDB['ObjectUtils']['is'](a9)||!a9['changelog'])return;var aa='',ab={'added':'New\x20Features','fixed':'Bug\x20Fixes','improved':'Improvements','progress':'Progress'};for(let ac in a9['changelog']){ac=ac['toLowerCase']();var ad=BDFDB['disCN']['changelog'+ac];if(ad){aa+='
'+ab[ac]+'
';for(let ae of a9['changelog'][ac])aa+='- '+ae[0x0]+''+(ae[0x1]?':\x20'+ae[0x1]+'.':'')+'
';aa+='
';}}if(aa)BDFDB['ModalUtils']['open'](a9,{'header':a9['name']+'\x20'+BDFDB['LanguageUtils']['LanguageStrings']['CHANGE_LOG'],'subheader':'Version\x20'+a9['version'],'children':BDFDB['ReactUtils']['elementToReact'](BDFDB['DOMUtils']['create'](aa)),'className':BDFDB['disCN']['modalchangelogmodal'],'contentClassName':BDFDB['disCNS']['changelogcontainer']+BDFDB['disCN']['modalminicontent']});};BDFDB['PluginUtils']['createSettingsPanel']=function(af,ag){if(!BDFDB['ObjectUtils']['is'](af)||!ag||!BDFDB['ReactUtils']['isValidElement'](ag)&&!BDFDB['ArrayUtils']['is'](ag)||BDFDB['ArrayUtils']['is'](ag)&&!ag['length'])return;var ah=BDFDB['DOMUtils']['create']('');BDFDB['ReactUtils']['render'](BDFDB['ReactUtils']['createElement'](yy['SettingsPanel'],{'key':af['name']+'-settingspanel','title':af['name'],'children':ag}),ah);return ah;};e['addPluginClasses']=function(ai){xr['PLUGIN_'+ai['name']]=ai['classes'];for(let aj in ai['classes'])xB['$'+(ai['name']+aj)['toLowerCase']()]=['PLUGIN_'+ai['name'],aj];};e['removePluginClasses']=function(ak){delete xr['PLUGIN_'+ak['name']];xB=BDFDB['ObjectUtils']['filter'](xB,al=>al[0x0]!='PLUGIN_'+ak['name']);};e['clearStartTimeout']=function(am){if(!BDFDB['ObjectUtils']['is'](am))return;BDFDB['TimeUtils']['clear'](am['startTimeout'],am['libLoadTimeout']);delete am['startTimeout'];delete am['libLoadTimeout'];};e['addOnSettingsClosedListener']=function(an){if(BDFDB['ObjectUtils']['is'](an)&&typeof an['onSettingsClosed']==='function'){let ao=BDFDB['ModuleUtils']['findByName']('StandardSidebarView');if(ao)BDFDB['ModuleUtils']['patch'](an,ao['prototype'],'componentWillUnmount',{'after':ap=>{an['onSettingsClosed']();}});}};e['addOnSwitchListener']=function(aq){if(BDFDB['ObjectUtils']['is'](aq)&&typeof aq['onSwitch']==='function'){e['removeOnSwitchListener'](aq);var ar=document['querySelector'](BDFDB['dotCN']['guildswrapper']+'\x20~\x20*\x20>\x20'+BDFDB['dotCN']['chatspacer']);if(ar){var as=new MutationObserver(at=>{at['forEach'](au=>{if(au['target']&&BDFDB['DOMUtils']['containsClass'](au['target'],BDFDB['disCN']['nochannel']))aq['onSwitch']();});});var av=ar['querySelector'](BDFDB['dotCNC']['chat']+BDFDB['dotCN']['nochannel']);if(av)as['observe'](av,{'attributes':!![]});aq['onSwitchFix']=new MutationObserver(aw=>{aw['forEach'](ax=>{if(ax['addedNodes']){ax['addedNodes']['forEach'](ay=>{if(BDFDB['DOMUtils']['containsClass'](ay,BDFDB['disCN']['chat'],BDFDB['disCN']['nochannel'],![]))as['observe'](ay,{'attributes':!![]});});}});});aq['onSwitchFix']['observe'](ar,{'childList':!![]});}}};e['removeOnSwitchListener']=function(az){if(BDFDB['ObjectUtils']['is'](az)&&typeof az['onSwitch']==='function'&&BDFDB['ObjectUtils']['is'](az['onSwitchFix'])){az['onSwitchFix']['disconnect']();delete az['onSwitchFix'];}};BDFDB['ObserverUtils']={};BDFDB['ObserverUtils']['connect']=function(aA,aB,aC,aD={'childList':!![]}){if(!BDFDB['ObjectUtils']['is'](aA)||!aB||!aC)return;if(BDFDB['ObjectUtils']['isEmpty'](aA['observers']))aA['observers']={};if(!BDFDB['ArrayUtils']['is'](aA['observers'][aC['name']]))aA['observers'][aC['name']]=[];if(!aC['multi'])for(let aE of aA['observers'][aC['name']])aE['disconnect']();if(aC['instance'])aA['observers'][aC['name']]['push'](aC['instance']);var aF=aA['observers'][aC['name']][aA['observers'][aC['name']]['length']-0x1];if(aF){var aG=Node['prototype']['isPrototypeOf'](aB)?aB:typeof aB==='string'?document['querySelector'](aB):null;if(aG)aF['observe'](aG,aD);}};BDFDB['ObserverUtils']['disconnect']=function(aH,aI){if(BDFDB['ObjectUtils']['is'](aH)&&!BDFDB['ObjectUtils']['isEmpty'](aH['observers'])){let aJ=typeof aI=='string'?aI:BDFDB['ObjectUtils']['is'](aI)?aI['name']:null;if(!aJ){for(let aI in aH['observers'])for(let aL of aH['observers'][aI])aL['disconnect']();delete aH['observers'];}else if(!BDFDB['ArrayUtils']['is'](aH['observers'][aJ])){for(let aM of aH['observers'][aJ])aM['disconnect']();delete aH['observers'][aJ];}}};BDFDB['ListenerUtils']={};BDFDB['ListenerUtils']['add']=function(aN,aO,aP,aQ,aR){if(!BDFDB['ObjectUtils']['is'](aN)||!Node['prototype']['isPrototypeOf'](aO)&&aO!==window||!aP)return;var aS=typeof aQ=='function';var aT=aS?undefined:aQ;var aU=aS?aQ:aR;if(typeof aU!='function')return;BDFDB['ListenerUtils']['remove'](aN,aO,aP,aT);for(var aV of aP['split']('\x20')){aV=aV['split']('.');var aW=aV['shift']()['toLowerCase']();if(!aW)return;var aX=aW;aW=aW=='mouseenter'||aW=='mouseleave'?'mouseover':aW;var aY=(aV['join']('.')||'')+aN['name'];if(!BDFDB['ArrayUtils']['is'](aN['listeners']))aN['listeners']=[];var aZ=null;if(aT){if(aX=='mouseenter'||aX=='mouseleave'){aZ=b0=>{for(let b1 of b0['path'])if(typeof b1['matches']=='function'&&b1['matches'](aT)&&!b1[aY+'BDFDB'+aX]){b1[aY+'BDFDB'+aX]=!![];if(aX=='mouseenter')aU(BDFDB['ListenerUtils']['copyEvent'](b0,b1));let b2=b3=>{if(b3['target']['contains'](b1)||b3['target']==b1||!b1['contains'](b3['target'])){if(aX=='mouseleave')aU(BDFDB['ListenerUtils']['copyEvent'](b0,b1));delete b1[aY+'BDFDB'+aX];document['removeEventListener']('mouseout',b2);}};document['addEventListener']('mouseout',b2);break;}};}else{aZ=b4=>{for(let b5 of b4['path'])if(typeof b5['matches']=='function'&&b5['matches'](aT)){aU(BDFDB['ListenerUtils']['copyEvent'](b4,b5));break;}};}}else aZ=b6=>{aU(BDFDB['ListenerUtils']['copyEvent'](b6,aO));};aN['listeners']['push']({'ele':aO,'eventname':aW,'origeventname':aX,'namespace':aY,'selector':aT,'eventcallback':aZ});aO['addEventListener'](aW,aZ,!![]);}};BDFDB['ListenerUtils']['remove']=function(b7,b8,b9='',ba){if(!BDFDB['ObjectUtils']['is'](b7)||!BDFDB['ArrayUtils']['is'](b7['listeners']))return;if(Node['prototype']['isPrototypeOf'](b8)||b8===window){for(var bb of b9['split']('\x20')){bb=bb['split']('.');var bc=bb['shift']()['toLowerCase']();var bd=(bb['join']('.')||'')+b7['name'];for(let be of b7['listeners']){let bf=[];if(be['ele']==b8&&(!bc||be['origeventname']==bc)&&be['namespace']==bd&&(ba===undefined||be['selector']==ba)){b8['removeEventListener'](be['eventname'],be['eventcallback'],!![]);bf['push'](be);}if(bf['length'])b7['listeners']=b7['listeners']['filter'](be=>{return bf['indexOf'](be)<0x0;});}}}else if(!b8){for(let bh of b7['listeners'])bh['ele']['removeEventListener'](bh['eventname'],bh['eventcallback'],!![]);b7['listeners']=[];}};BDFDB['ListenerUtils']['multiAdd']=function(bi,bj,bk){if(!Node['prototype']['isPrototypeOf'](bi)||!bj||typeof bk!='function')return;for(var bl of bj['trim']()['split']('\x20')['filter'](bm=>bm))bi['addEventListener'](bl,bk,!![]);};BDFDB['ListenerUtils']['multiRemove']=function(bn,bo,bp){if(!Node['prototype']['isPrototypeOf'](bn)||!bo||typeof bp!='function')return;for(var bq of bo['trim']()['split']('\x20')['filter'](br=>br))bn['removeEventListener'](bq,bp,!![]);};BDFDB['ListenerUtils']['addToChildren']=function(bs,bt,bu,bv){if(!Node['prototype']['isPrototypeOf'](bs)||!bt||!bu||!bu['trim']()||typeof bv!='function')return;for(var bw of bt['trim']()['split']('\x20')['filter'](bx=>bx)){var by=bv;if(bw=='mouseenter'||bw=='mouseleave')by=bz=>{if(bz['target']['matches'](bu))bv(bz);};bs['querySelectorAll'](bu['trim']())['forEach'](bA=>{bA['addEventListener'](bw,by,!![]);});}};BDFDB['ListenerUtils']['copyEvent']=function(bB,bC){if(!bB||!bB['constructor']||!bB['type'])return bB;var bD=new bB['constructor'](bB['type'],bB);Object['defineProperty'](bD,'originalEvent',{'value':bB});Object['defineProperty'](bD,'which',{'value':bB['which']});Object['defineProperty'](bD,'keyCode',{'value':bB['keyCode']});Object['defineProperty'](bD,'path',{'value':bB['path']});Object['defineProperty'](bD,'relatedTarget',{'value':bB['relatedTarget']});Object['defineProperty'](bD,'srcElement',{'value':bB['srcElement']});Object['defineProperty'](bD,'target',{'value':bB['target']});Object['defineProperty'](bD,'toElement',{'value':bB['toElement']});if(bC)Object['defineProperty'](bD,'currentTarget',{'value':bC});return bD;};BDFDB['ListenerUtils']['stopEvent']=function(bE){if(BDFDB['ObjectUtils']['is'](bE)){if(typeof bE['preventDefault']=='function')bE['preventDefault']();if(typeof bE['stopPropagation']=='function')bE['stopPropagation']();if(typeof bE['stopImmediatePropagation']=='function')bE['stopImmediatePropagation']();if(BDFDB['ObjectUtils']['is'](bE['originalEvent'])){if(typeof bE['originalEvent']['preventDefault']=='function')bE['originalEvent']['preventDefault']();if(typeof bE['originalEvent']['stopPropagation']=='function')bE['originalEvent']['stopPropagation']();if(typeof bE['originalEvent']['stopImmediatePropagation']=='function')bE['originalEvent']['stopImmediatePropagation']();}}};var bF=[],bG={'queue':[],'running':![]};BDFDB['NotificationUtils']={};BDFDB['NotificationUtils']['toast']=function(bH,bI={}){var bJ=document['querySelector']('.toasts,\x20.bd-toasts');if(!bJ){var bK=document['querySelector'](BDFDB['dotCN']['channels']+'\x20+\x20div');var bL=bK?BDFDB['DOMUtils']['getRects'](bK):null;var bM=bK?bK['querySelector'](BDFDB['dotCN']['memberswrap']):null;var bN=bL?bL['left']:0x136;var bO=bL?bM?bL['width']-BDFDB['DOMUtils']['getRects'](bM)['width']:bL['width']:window['outerWidth']-0x0;var bP=bK?bK['querySelector']('form'):null;var bQ=bP?BDFDB['DOMUtils']['getRects'](bP)['height']:0x50;bJ=BDFDB['DOMUtils']['create']('');(document['querySelector'](BDFDB['dotCN']['app'])||document['body'])['appendChild'](bJ);}const {type='',icon=!![],timeout=0xbb8,html=![],selector='',nopointer=![],color=''}=bI;var bR=BDFDB['DOMUtils']['create'](''+(html===!![]?bH:BDFDB['StringUtils']['htmlEscape'](bH))+'
');if(type){BDFDB['DOMUtils']['addClass'](bR,'toast-'+type);if(icon)BDFDB['DOMUtils']['addClass'](bR,'icon');}else if(color){var bS=BDFDB['ColorUtils']['convert'](color,'RGB');if(bS)bR['style']['setProperty']('background-color',bS);}BDFDB['DOMUtils']['addClass'](bR,selector);bJ['appendChild'](bR);bR['close']=c=>{if(document['contains'](bR)){BDFDB['DOMUtils']['addClass'](bR,'closing');bR['style']['setProperty']('pointer-events','none','important');BDFDB['TimeUtils']['timeout'](c=>{bR['remove']();if(!bJ['querySelectorAll']('.toast,\x20.bd-toast')['length'])bJ['remove']();},0xbb8);}};if(nopointer)bR['style']['setProperty']('pointer-events','none','important');else bR['addEventListener']('click',bR['close']);BDFDB['TimeUtils']['timeout'](c=>{bR['close']();},timeout>0x0?timeout:0x927c0);return bR;};BDFDB['NotificationUtils']['desktop']=function(bW,bX={}){var bY=c=>{bG['queue']['push']({'parsedcontent':bW,'parsedoptions':bX});c0();};var c0=c=>{if(!bG['running']){var c2=bG['queue']['shift']();if(c2)c3(c2['parsedcontent'],c2['parsedoptions']);}};var c3=(c4,c5)=>{bG['running']=!![];var c6=c5['silent'];c5['silent']=c5['silent']||c5['sound']?!![]:![];var c7=new Notification(c4,c5);var c8=new Audio();var c9=BDFDB['TimeUtils']['timeout'](c=>{cc();},c5['timeout']?c5['timeout']:0xbb8);if(typeof c5['click']=='function')c7['onclick']=c=>{BDFDB['TimeUtils']['clear'](c9);cc();c5['click']();};if(!c6&&c5['sound']){c8['src']=c5['sound'];c8['play']();}var cc=c=>{c8['pause']();c7['close']();bG['running']=![];BDFDB['TimeUtils']['timeout'](c=>{c0();},0x3e8);};};if(!('Notification'in window)){}else if(Notification['permission']==='granted')bY();else if(Notification['permission']!=='denied')Notification['requestPermission'](function(cf){if(cf==='granted')bY();});};BDFDB['NotificationUtils']['notice']=function(cg,ch={}){if(!cg)return;var ci=document['querySelector'](BDFDB['dotCN']['layers']);if(!ci)return;var cj=BDFDB['NumberUtils']['generateId'](bF);var ck=BDFDB['DOMUtils']['create']('');ci['parentElement']['insertBefore'](ck,ci);var cl=ck['querySelector']('.notice-message');if(ch['platform'])for(let cm of ch['platform']['split']('\x20'))if(xB['noticeicon'+cm]){let cn=BDFDB['DOMUtils']['create']('');BDFDB['DOMUtils']['addClass'](cn,BDFDB['disCN']['noticeplatformicon']);BDFDB['DOMUtils']['removeClass'](cn,BDFDB['disCN']['noticeicon']);ck['insertBefore'](cn,cl);}if(ch['customicon']){let co=BDFDB['DOMUtils']['create'](ch['customicon']);let cn=BDFDB['DOMUtils']['create']('');if(co['tagName']=='span'&&!co['firstElementChild'])cn['style']['setProperty']('background','url('+ch['customicon']+')\x20center/cover\x20no-repeat');else cn['appendChild'](co);BDFDB['DOMUtils']['addClass'](cn,BDFDB['disCN']['noticeplatformicon']);BDFDB['DOMUtils']['removeClass'](cn,BDFDB['disCN']['noticeicon']);ck['insertBefore'](cn,cl);}if(ch['btn']||ch['button'])ck['appendChild'](BDFDB['DOMUtils']['create'](''));if(ch['id'])ck['id']=ch['id']['split']('\x20')['join']('');if(ch['selector'])BDFDB['DOMUtils']['addClass'](ck,ch['selector']);if(ch['css'])BDFDB['DOMUtils']['appendLocalStyle']('BDFDBcustomnotificationbar'+cj,ch['css']);if(ch['style'])ck['style']=ch['style'];if(ch['html']===!![])cl['innerHTML']=cg;else{var cq=document['createElement']('a');var cr=[];for(let cs of cg['split']('\x20')){var ct=BDFDB['StringUtils']['htmlEscape'](cs);cq['href']=cs;cr['push'](cq['host']&&cq['host']!==window['location']['host']?'':ct);}cl['innerHTML']=cr['join']('\x20');}var cu=null;if(ch['type']&&!document['querySelector'](BDFDB['dotCNS']['chatbase']+BDFDB['dotCN']['noticestreamer'])){if(cu=BDFDB['disCN']['notice'+ch['type']])BDFDB['DOMUtils']['addClass'](ck,cu);if(ch['type']=='premium'){var cv=ck['querySelector'](BDFDB['dotCN']['noticebutton']);if(cv)BDFDB['DOMUtils']['addClass'](cv,BDFDB['disCN']['noticepremiumaction']);BDFDB['DOMUtils']['addClass'](cl,BDFDB['disCN']['noticepremiumtext']);ck['insertBefore'](BDFDB['DOMUtils']['create'](''),cl);}}if(!cu){var cw=BDFDB['ColorUtils']['convert'](ch['color'],'RGBCOMP');if(cw){var cx=cw[0x0]>0xb4&&cw[0x1]>0xb4&&cw[0x2]>0xb4?'#000':'#FFF';var cy=BDFDB['ColorUtils']['convert'](cw,'HEX');var cz=cw[0x0]>0xb4&&cw[0x1]>0xb4&&cw[0x2]>0xb4?'brightness(0%)':'brightness(100%)';BDFDB['DOMUtils']['appendLocalStyle']('BDFDBcustomnotificationbarColorCorrection'+cj,'.BDFDB-notice.notice-'+cj+'{background-color:'+cy+'\x20!important;}.BDFDB-notice.notice-'+cj+'\x20.notice-message\x20{color:'+cx+'\x20!important;}.BDFDB-notice.notice-'+cj+'\x20'+BDFDB['dotCN']['noticebutton']+'\x20{color:'+cx+'\x20!important;border-color:'+BDFDB['ColorUtils']['setAlpha'](cx,0.25,'RGBA')+'\x20!important;}.BDFDB-notice.notice-'+cj+'\x20'+BDFDB['dotCN']['noticebutton']+':hover\x20{color:'+cy+'\x20!important;background-color:'+cx+'\x20!important;}.BDFDB-notice.notice-'+cj+'\x20'+BDFDB['dotCN']['noticedismiss']+'\x20{filter:'+cz+'\x20!important;}');}else BDFDB['DOMUtils']['addClass'](ck,BDFDB['disCN']['noticedefault']);}ck['style']['setProperty']('height','36px','important');ck['style']['setProperty']('min-width','70vw','important');ck['style']['setProperty']('left','unset','important');ck['style']['setProperty']('right','unset','important');let cA=(BDFDB['DOMUtils']['getWidth'](document['body']['firstElementChild'])-BDFDB['DOMUtils']['getWidth'](ck))/0x2;ck['style']['setProperty']('left',cA+'px','important');ck['style']['setProperty']('right',cA+'px','important');ck['style']['setProperty']('min-width','unset','important');ck['style']['setProperty']('width','unset','important');ck['style']['setProperty']('max-width','calc(100vw\x20-\x20'+cA*0x2+'px)','important');ck['querySelector'](BDFDB['dotCN']['noticedismiss'])['addEventListener']('click',c=>{ck['style']['setProperty']('overflow','hidden','important');ck['style']['setProperty']('height','0px','important');BDFDB['TimeUtils']['timeout'](c=>{BDFDB['ArrayUtils']['remove'](bF,cj);BDFDB['DOMUtils']['removeLocalStyle']('BDFDBcustomnotificationbar'+cj);BDFDB['DOMUtils']['removeLocalStyle']('BDFDBcustomnotificationbarColorCorrection'+cj);ck['remove']();},0x1f4);});return ck;};BDFDB['NotificationUtils']['alert']=function(cD,cE){if(typeof cD=='string'&&typeof cD=='string'&&window['BdApi']&&typeof BdApi['alert']=='function')BdApi['alert'](cD,cE);};var cF=[];BDFDB['TooltipUtils']={};BDFDB['TooltipUtils']['create']=function(cG,cH,cI={}){var cJ=document['querySelector'](BDFDB['dotCN']['appmount']+'\x20>\x20*\x20>\x20'+BDFDB['dotCN']['itemlayercontainer']);if(!cJ||typeof cH!='string'&&!BDFDB['ObjectUtils']['is'](cI['guild'])||!Node['prototype']['isPrototypeOf'](cG)||!document['contains'](cG))return null;var cK=document['querySelector']('.BDFDB-itemlayercontainer');if(!cK){cK=cJ['cloneNode']();BDFDB['DOMUtils']['addClass'](cK,'BDFDB-itemlayercontainer');cJ['parentElement']['insertBefore'](cK,cJ['nextSibling']);}var cL=BDFDB['NumberUtils']['generateId'](cF);var cM=BDFDB['DOMUtils']['create']('');cK['appendChild'](cM);var cN=cM['firstElementChild'];if(cI['id'])cN['id']=cI['id']['split']('\x20')['join']('');if(cI['list']||BDFDB['ObjectUtils']['is'](cI['guild']))BDFDB['DOMUtils']['addClass'](cN,BDFDB['disCN']['tooltiplistitem']);if(cI['selector'])BDFDB['DOMUtils']['addClass'](cN,cI['selector']);if(cI['style'])cN['style']=cI['style'];if(BDFDB['ObjectUtils']['is'](cI['guild'])){let cO=hz['StreamUtils']['getAllApplicationStreams']()['filter'](cP=>cP['guildId']===cI['guild']['id'])['map'](cQ=>cQ['ownerId']);let cR=cO['map'](cS=>hz['UserStore']['getUser'](cS));let cT=Object['keys'](hz['VoiceUtils']['getVoiceStates'](cI['guild']['id']))['map'](cU=>!cO['includes'](cU)&&BDFDB['LibraryModules']['UserStore']['getUser'](cU));let cV=cH||cI['guild']['toString']();BDFDB['ReactUtils']['render'](BDFDB['ReactUtils']['createElement'](BDFDB['ReactUtils']['Fragment'],{'children':[BDFDB['ReactUtils']['createElement']('div',{'className':BDFDB['DOMUtils']['formatClassName'](BDFDB['disCN']['tooltiprow'],BDFDB['disCN']['tooltiprowguildname']),'children':[BDFDB['ReactUtils']['createElement'](yy['GuildComponents']['Badge'],{'guild':cI['guild'],'size':hz['StringUtils']['cssValueToNumber'](xr['TooltipGuild']['iconSize']),'className':BDFDB['disCN']['tooltiprowicon']}),BDFDB['ReactUtils']['createElement']('span',{'className':BDFDB['DOMUtils']['formatClassName'](BDFDB['disCN']['tooltipguildnametext'],(cT['length']||cR['length'])&&BDFDB['disCN']['tooltipguildnametextlimitedsize']),'children':cI['html']?BDFDB['ReactUtils']['elementToReact'](BDFDB['DOMUtils']['create'](cV)):cV})]}),cT['length']?BDFDB['ReactUtils']['createElement']('div',{'className':BDFDB['disCN']['tooltiprow'],'children':[BDFDB['ReactUtils']['createElement'](yy['SvgIcon'],{'name':yy['SvgIcon']['Names']['SPEAKER'],'className':BDFDB['disCN']['tooltipactivityicon']}),BDFDB['ReactUtils']['createElement'](yy['UserSummaryItem'],{'users':cT,'max':0x6})]}):null,cR['length']?BDFDB['ReactUtils']['createElement']('div',{'className':BDFDB['disCN']['tooltiprow'],'children':[BDFDB['ReactUtils']['createElement'](yy['SvgIcon'],{'name':yy['SvgIcon']['Names']['STREAM'],'className':BDFDB['disCN']['tooltipactivityicon']}),BDFDB['ReactUtils']['createElement'](yy['UserSummaryItem'],{'users':cR,'max':0x6})]}):null]['filter'](cW=>cW)}),cN);}else{if(cI['html']===!![])cN['innerHTML']=cH;else cN['innerText']=cH;}if(!cI['type']||!BDFDB['disCN']['tooltip'+cI['type']['toLowerCase']()])cI['type']='top';BDFDB['DOMUtils']['addClass'](cN,BDFDB['disCN']['tooltip'+cI['type']['toLowerCase']()]);cN['position']=cI['type']['toLowerCase']();cN['appendChild'](BDFDB['DOMUtils']['create'](''));if(cN['style']['getPropertyValue']('border-color')&&(cN['style']['getPropertyValue']('background-color')||cN['style']['getPropertyValue']('background-image')))BDFDB['DOMUtils']['addClass'](cN,'tooltip-customcolor');else if(cI['color']&&BDFDB['disCN']['tooltip'+cI['color']['toLowerCase']()])BDFDB['DOMUtils']['addClass'](cN,BDFDB['disCN']['tooltip'+cI['color']['toLowerCase']()]);else BDFDB['DOMUtils']['addClass'](cN,BDFDB['disCN']['tooltipblack']);cN['anker']=cG;if(cI['hide'])BDFDB['DOMUtils']['appendLocalStyle']('BDFDBhideOtherTooltips'+cL,'#app-mount\x20'+BDFDB['dotCN']['tooltip']+':not(.BDFDB-tooltip-'+cL+')\x20{display:\x20none\x20!important;}',cK);var cX=c=>{BDFDB['DOMUtils']['remove'](cM);};cG['addEventListener']('mouseleave',cX);var cZ=new MutationObserver(d0=>{d0['forEach'](d1=>{var d2=Array['from'](d1['removedNodes']);var d3=d2['indexOf'](cM)>-0x1;var d4=d2['indexOf'](cG)>-0x1;var d5=d2['some'](d6=>d6['contains'](cG));if(d3||d4||d5){BDFDB['ArrayUtils']['remove'](cF,cL);cZ['disconnect']();BDFDB['DOMUtils']['remove'](cM);BDFDB['DOMUtils']['removeLocalStyle']('BDFDBhideOtherTooltips'+cL,cK);BDFDB['DOMUtils']['removeLocalStyle']('BDFDBcustomTooltips'+cL,cK);if(!cK['firstElementChild'])BDFDB['DOMUtils']['remove'](cK);cG['removeEventListener']('mouseleave',cX);}});});cZ['observe'](document['body'],{'subtree':!![],'childList':!![]});BDFDB['TooltipUtils']['update'](cN);if(cI['delay']){BDFDB['DOMUtils']['toggle'](cM);BDFDB['TimeUtils']['timeout'](c=>{BDFDB['DOMUtils']['toggle'](cM);},cI['delay']);}return cM;};BDFDB['TooltipUtils']['update']=function(d8){if(!Node['prototype']['isPrototypeOf'](d8))return;let d9=BDFDB['DOMUtils']['getParent'](BDFDB['dotCN']['itemlayer'],d8);if(!Node['prototype']['isPrototypeOf'](d9))return;d8=d9['querySelector'](BDFDB['dotCN']['tooltip']);if(!Node['prototype']['isPrototypeOf'](d8)||!Node['prototype']['isPrototypeOf'](d8['anker'])||!d8['position'])return;var da=d8['querySelector'](BDFDB['dotCN']['tooltippointer']);var db,dc,dd=BDFDB['DOMUtils']['getRects'](d8['anker']),de=BDFDB['DOMUtils']['getRects'](d9),df=BDFDB['DOMUtils']['getRects'](document['querySelector'](BDFDB['dotCN']['appmount'])),dg={'height':0xa,'width':0xa};switch(d8['position']){case'top':dc=dd['top']-de['height']-dg['height']+0x2;db=dd['left']+(dd['width']-de['width'])/0x2;break;case'bottom':dc=dd['top']+dd['height']+dg['height']-0x2;db=dd['left']+(dd['width']-de['width'])/0x2;break;case'left':dc=dd['top']+(dd['height']-de['height'])/0x2;db=dd['left']-de['width']-dg['width']+0x2;break;case'right':dc=dd['top']+(dd['height']-de['height'])/0x2;db=dd['left']+dd['width']+dg['width']-0x2;break;}d9['style']['setProperty']('top',dc+'px');d9['style']['setProperty']('left',db+'px');da['style']['removeProperty']('margin-left');da['style']['removeProperty']('margin-top');if(d8['position']=='top'||d8['position']=='bottom'){if(db<0x0){d9['style']['setProperty']('left','5px');da['style']['setProperty']('margin-left',db-0xa+'px');}else{var dh=df['width']-(db+de['width']);if(dh<0x0){d9['style']['setProperty']('left',df['width']-de['width']-0x5+'px');da['style']['setProperty']('margin-left',-0x1*dh+'px');}}}else if(d8['position']=='left'||d8['position']=='right'){if(dc<0x0){d9['style']['setProperty']('top','5px');da['style']['setProperty']('margin-top',dc-0xa+'px');}else{var di=df['height']-(dc+de['height']);if(di<0x0){d9['style']['setProperty']('top',df['height']-de['height']-0x5+'px');da['style']['setProperty']('margin-top',-0x1*di+'px');}}}};BDFDB['ObjectUtils']={};BDFDB['ObjectUtils']['is']=function(dj){return dj&&Object['prototype']['isPrototypeOf'](dj)&&!Array['prototype']['isPrototypeOf'](dj);};BDFDB['ObjectUtils']['extract']=function(dk,...dl){let dm={};if(BDFDB['ObjectUtils']['is'](dk))for(let dn of dl['flat'](0xa)['filter'](dp=>dp))if(dk[dn])dm[dn]=dk[dn];return dm;};BDFDB['ObjectUtils']['exclude']=function(dq,...dr){let ds=Object['assign']({},dq);BDFDB['ObjectUtils']['delete'](ds,...dr);return ds;};BDFDB['ObjectUtils']['delete']=function(dt,...du){if(BDFDB['ObjectUtils']['is'](dt))for(let dv of du['flat'](0xa)['filter'](dw=>dw))delete dt[dv];};BDFDB['ObjectUtils']['sort']=function(dx,dy,dz){if(!BDFDB['ObjectUtils']['is'](dx))return{};var dA={};if(dy===undefined||!dy)for(let dB of Object['keys'](dx)['sort']())dA[dB]=dx[dB];else{let dC=[];for(let dB in dx)dC['push'](dx[dB]);dC=BDFDB['ArrayUtils']['keySort'](dC,dy,dz);for(let dE of dC)for(let dB in dx)if(BDFDB['equals'](dE,dx[dB])){dA[dB]=dE;break;}}return dA;};BDFDB['ObjectUtils']['reverse']=function(dG,dH){if(!BDFDB['ObjectUtils']['is'](dG))return{};var dI={};for(let dJ of dH===undefined||!dH?Object['keys'](dG)['reverse']():Object['keys'](dG)['sort']()['reverse']())dI[dJ]=dG[dJ];return dI;};BDFDB['ObjectUtils']['filter']=function(dK,dL,dM=![]){if(!BDFDB['ObjectUtils']['is'](dK))return{};if(typeof dL!='function')return dK;return Object['keys'](dK)['filter'](dN=>dL(dM?dN:dK[dN]))['reduce']((dO,dP)=>(dO[dP]=dK[dP],dO),{});};BDFDB['ObjectUtils']['push']=function(dQ,dR){if(BDFDB['ObjectUtils']['is'](dQ))dQ[Object['keys'](dQ)['length']]=dR;};BDFDB['ObjectUtils']['pop']=function(dS,dT){if(BDFDB['ObjectUtils']['is'](dS)){let dU=Object['keys'](dS);if(!dU['length'])return;let dT=dS[dU[dU['length']-0x1]];delete dS[dU[dU['length']-0x1]];return dT;}};BDFDB['ObjectUtils']['map']=function(dW,dX){if(!BDFDB['ObjectUtils']['is'](dW))return{};if(typeof dX!='string'&&typeof dX!='function')return dW;var dY={};for(let dZ in dW)if(BDFDB['ObjectUtils']['is'](dW[dZ]))dY[dZ]=typeof dX=='string'?dW[dZ][dX]:dX(dW[dZ],dZ);return dY;};BDFDB['ObjectUtils']['toArray']=function(e0){if(!BDFDB['ObjectUtils']['is'](e0))return[];return Object['entries'](e0)['map'](e1=>e1[0x1]);};BDFDB['ObjectUtils']['deepAssign']=function(e2,...e3){if(!e3['length'])return e2;var e4=e3['shift']();if(BDFDB['ObjectUtils']['is'](e2)&&BDFDB['ObjectUtils']['is'](e4)){for(var e5 in e4){if(BDFDB['ObjectUtils']['is'](e4[e5])){if(!e2[e5])Object['assign'](e2,{[e5]:{}});BDFDB['ObjectUtils']['deepAssign'](e2[e5],e4[e5]);}else Object['assign'](e2,{[e5]:e4[e5]});}}return BDFDB['ObjectUtils']['deepAssign'](e2,...e3);};BDFDB['ObjectUtils']['isEmpty']=function(e6){return!BDFDB['ObjectUtils']['is'](e6)||Object['getOwnPropertyNames'](e6)['length']==0x0;};BDFDB['ArrayUtils']={};BDFDB['ArrayUtils']['is']=function(e7){return e7&&Array['isArray'](e7);};BDFDB['ArrayUtils']['keySort']=function(e8,e9,ea){if(!BDFDB['ArrayUtils']['is'](e8))return[];if(e9==null)return e8;if(ea===undefined)ea=null;return e8['sort'](function(eb,ec){var ed=eb[e9],ee=ec[e9];if(ed!==ea)return edee?0x1:0x0;});};BDFDB['ArrayUtils']['numSort']=function(ef){return ef['sort'](function(eg,eh){return egeh?0x1:0x0;});};BDFDB['ArrayUtils']['remove']=function(ei,ej,ek=![]){if(!BDFDB['ArrayUtils']['is'](ei))return[];if(!ei['includes'](ej))return ei;if(!ek)ei['splice'](ei['indexOf'](ej),0x1);else while(ei['indexOf'](ej)>-0x1)ei['splice'](ei['indexOf'](ej),0x1);return ei;};BDFDB['ArrayUtils']['getAllIndexes']=function(el,em){if(!BDFDB['ArrayUtils']['is'](el)&&typeof el!='string')return[];var en=[],eo=-0x1;while((eo=el['indexOf'](em,eo+0x1))!==-0x1)en['push'](eo);return en;};BDFDB['ArrayUtils']['removeCopies']=function(ep){if(!BDFDB['ArrayUtils']['is'](ep))return[];return[...new Set(ep)];};BDFDB['ModuleUtils']={};BDFDB['ModuleUtils']['cached']={};BDFDB['ModuleUtils']['find']=function(eq){var er=e['getWebModuleReq']();for(let es in er['c'])if(er['c']['hasOwnProperty'](es)){var et=er['c'][es]['exports'];if(et&&(typeof et=='object'||typeof et=='function')&&eq(et))return et;if(et&&et['__esModule'])for(let eu in et)if(et[eu]&&(typeof et[eu]=='object'||typeof et[eu]=='function')&&eq(et[eu]))return et[eu];}};BDFDB['ModuleUtils']['findByProperties']=function(ev){ev=BDFDB['ArrayUtils']['is'](ev)?ev:Array['from'](arguments);var ew=JSON['stringify'](ev);if(!BDFDB['ObjectUtils']['is'](BDFDB['ModuleUtils']['cached']['prop']))BDFDB['ModuleUtils']['cached']['prop']={};if(BDFDB['ModuleUtils']['cached']['prop'][ew])return BDFDB['ModuleUtils']['cached']['prop'][ew];else{var ex=BDFDB['ModuleUtils']['find'](ex=>ev['every'](ez=>ex[ez]!==undefined));if(ex){BDFDB['ModuleUtils']['cached']['prop'][ew]=ex;return ex;}else BDFDB['LogUtils']['warn'](ew+'\x20[properties]\x20not\x20found\x20in\x20WebModules');}};BDFDB['ModuleUtils']['findByName']=function(eA){var eB=JSON['stringify'](eA);if(!BDFDB['ObjectUtils']['is'](BDFDB['ModuleUtils']['cached']['name']))BDFDB['ModuleUtils']['cached']['name']={};if(BDFDB['ModuleUtils']['cached']['name'][eB])return BDFDB['ModuleUtils']['cached']['name'][eB];else{var eC=BDFDB['ModuleUtils']['find'](eC=>eC['displayName']===eA);if(eC){BDFDB['ModuleUtils']['cached']['name'][eB]=eC;return eC;}else BDFDB['LogUtils']['warn'](eB+'\x20[name]\x20not\x20found\x20in\x20WebModules');}};BDFDB['ModuleUtils']['findByString']=function(eE){eE=BDFDB['ArrayUtils']['is'](eE)?eE:Array['from'](arguments);var eF=JSON['stringify'](eE);if(!BDFDB['ObjectUtils']['is'](BDFDB['ModuleUtils']['cached']['string']))BDFDB['ModuleUtils']['cached']['string']={};if(BDFDB['ModuleUtils']['cached']['string'][eF])return BDFDB['ModuleUtils']['cached']['string'][eF];else{var eG=BDFDB['ModuleUtils']['find'](eG=>eE['every'](eI=>typeof eG=='function'&&eG['toString']()['indexOf'](eI)>-0x1));if(eG){BDFDB['ModuleUtils']['cached']['string'][eF]=eG;return eG;}else BDFDB['LogUtils']['warn'](eF+'\x20[string]\x20not\x20found\x20in\x20WebModules');}};BDFDB['ModuleUtils']['findByPrototypes']=function(eJ){eJ=BDFDB['ArrayUtils']['is'](eJ)?eJ:Array['from'](arguments);var eK=JSON['stringify'](eJ);if(!BDFDB['ObjectUtils']['is'](BDFDB['ModuleUtils']['cached']['proto']))BDFDB['ModuleUtils']['cached']['proto']={};if(BDFDB['ModuleUtils']['cached']['proto'][eK])return BDFDB['ModuleUtils']['cached']['proto'][eK];else{var eL=BDFDB['ModuleUtils']['find'](eL=>eL['prototype']&&eJ['every'](eN=>eL['prototype'][eN]!==undefined));if(eL){BDFDB['ModuleUtils']['cached']['proto'][eK]=eL;return eL;}else BDFDB['LogUtils']['warn'](eK+'\x20[prototypes]\x20not\x20found\x20in\x20WebModules');}};e['getWebModuleReq']=function(){if(!e['getWebModuleReq']['req']){const eO='BDFDB-WebModules';const eP=window['webpackJsonp']['push']([[],{[eO]:(eQ,eR,eP)=>eQ['exports']=eP},[[eO]]]);delete eP['m'][eO];delete eP['c'][eO];e['getWebModuleReq']['req']=eP;}return e['getWebModuleReq']['req'];};var eT={};eT['Patchtypes']=['before','instead','after'];eT['Patchmap']={'BannedCard':'BannedUser','InvitationCard':'InviteRow','InviteCard':'InviteRow','PopoutContainer':'Popout','MemberCard':'Member','WebhookCard':'Webhook'};eT['Patchfinder']={'Account':'accountinfo','App':'app','AppView':'appcontainer','AuthWrapper':'loginscreen','BannedCard':'guildsettingsbannedcard','ChannelMember':'member','EmojiPicker':'emojipicker','FriendRow':'friendsrow','Guild':'guildouter','InstantInviteModal':'invitemodalwrapper','InvitationCard':'invitemodalinviterow','InviteCard':'guildsettingsinvitecard','PopoutContainer':'popout','PrivateChannelCall':'callcurrentcontainer','PrivateChannelsList':'dmchannelsscroller','MemberCard':'guildsettingsmembercard','NameTag':'nametag','Note':'usernote','SearchResults':'searchresultswrap','TypingUsers':'typing','UnreadDMs':'guildsscroller','UserPopout':'userpopout','V2C_ContentColumn':'contentcolumn','V2C_List':'_repolist','V2C_PluginCard':'_repoheader','V2C_ThemeCard':'_repoheader'};eT['GlobalModules']={};try{eT['GlobalModules']['V2C_ContentColumn']=V2C_ContentColumn;}catch(eU){BDFDB['LogUtils']['warn']('Could\x20not\x20find\x20global\x20Module\x20\x22V2C_ContentColumn\x22');}try{eT['GlobalModules']['V2C_List']=V2C_List;}catch(eV){BDFDB['LogUtils']['warn']('Could\x20not\x20find\x20global\x20Module\x20\x22V2C_List\x22');}try{eT['GlobalModules']['V2C_PluginCard']=V2C_PluginCard;}catch(eW){BDFDB['LogUtils']['warn']('Could\x20not\x20find\x20global\x20Module\x20\x22V2C_PluginCard\x22');}try{eT['GlobalModules']['V2C_ThemeCard']=V2C_ThemeCard;}catch(eX){BDFDB['LogUtils']['warn']('Could\x20not\x20find\x20global\x20Module\x20\x22V2C_ThemeCard\x22');}BDFDB['ModuleUtils']['patch']=function(eY,eZ,f0,f1){if(!eY||!eZ||!f0||!BDFDB['ObjectUtils']['is'](f1))return null;f1=BDFDB['ObjectUtils']['filter'](f1,f2=>eT['Patchtypes']['includes'](f2),!![]);if(BDFDB['ObjectUtils']['isEmpty'](f1))return;const f3=typeof eY==='string'?eY:eY['name'];const f4=f3['toLowerCase']();if(!eZ['BDFDBpatch'])eZ['BDFDBpatch']={};f0=[f0]['flat'](0xa)['filter'](f5=>f5);for(let f6 of f0){if(!eZ[f6])eZ[f6]=c=>{};const f8=eZ[f6];if(!eZ['BDFDBpatch'][f6]){eZ['BDFDBpatch'][f6]={};for(let f9 of eT['Patchtypes'])eZ['BDFDBpatch'][f6][f9]={};eZ['BDFDBpatch'][f6]['originalMethod']=f8;eZ[f6]=function(){const fa={'thisObject':this,'methodArguments':arguments,'originalMethod':f8,'originalMethodName':f6,'callOriginalMethod':c=>fa['returnValue']=fa['originalMethod']['apply'](fa['thisObject'],fa['methodArguments'])};if(window['BDFDB']&&typeof BDFDB==='object'&&BDFDB['loaded']&&eZ['BDFDBpatch'][f6]){if(!BDFDB['ObjectUtils']['isEmpty'](eZ['BDFDBpatch'][f6]['before']))for(let fc in BDFDB['ObjectUtils']['sort'](eZ['BDFDBpatch'][f6]['before'])){BDFDB['TimeUtils']['suppress'](eZ['BDFDBpatch'][f6]['before'][fc],'\x22before\x22\x20callback\x20of\x20'+f6+'\x20in\x20'+(eZ['constructor']?eZ['constructor']['displayName']||eZ['constructor']['name']:'module'),eZ['BDFDBpatch'][f6]['before'][fc]['pluginname'])(fa);}if(BDFDB['ObjectUtils']['isEmpty'](eZ['BDFDBpatch'][f6]['instead']))BDFDB['TimeUtils']['suppress'](fa['callOriginalMethod'],'originalMethod\x20of\x20'+f6+'\x20in\x20'+(eZ['constructor']?eZ['constructor']['displayName']||eZ['constructor']['name']:'module'))();else for(let fd in BDFDB['ObjectUtils']['sort'](eZ['BDFDBpatch'][f6]['instead'])){let fe=BDFDB['TimeUtils']['suppress'](eZ['BDFDBpatch'][f6]['instead'][fd],'\x22instead\x22\x20callback\x20of\x20'+f6+'\x20in\x20'+(eZ['constructor']?eZ['constructor']['displayName']||eZ['constructor']['name']:'module'),eZ['BDFDBpatch'][f6]['instead'][fd]['pluginname'])(fa);if(fe!==undefined)fa['returnValue']=fe;}if(!BDFDB['ObjectUtils']['isEmpty'](eZ['BDFDBpatch'][f6]['after']))for(let ff in BDFDB['ObjectUtils']['sort'](eZ['BDFDBpatch'][f6]['after'])){let fe=BDFDB['TimeUtils']['suppress'](eZ['BDFDBpatch'][f6]['after'][ff],'\x22after\x22\x20callback\x20of\x20'+f6+'\x20in\x20'+(eZ['constructor']?eZ['constructor']['displayName']||eZ['constructor']['name']:'module'),eZ['BDFDBpatch'][f6]['after'][ff]['pluginname'])(fa);if(fe!==undefined)fa['returnValue']=fe;}}else BDFDB['TimeUtils']['suppress'](fa['callOriginalMethod'],'originalMethod\x20of\x20'+f6+'\x20in\x20'+(eZ['constructor']?eZ['constructor']['displayName']||eZ['constructor']['name']:'module'))();return f6=='render'&&fa['returnValue']===undefined?null:fa['returnValue'];};}for(let fh in f1)if(typeof f1[fh]=='function'){eZ['BDFDBpatch'][f6][fh][f4]=f1[fh];eZ['BDFDBpatch'][f6][fh][f4]['pluginname']=f3;}}let fi=c=>{BDFDB['ModuleUtils']['unpatch'](eY,eZ,f0);};if(eY&&typeof eY=='object'){if(!BDFDB['ArrayUtils']['is'](eY['patchCancels']))eY['patchCancels']=[];eY['patchCancels']['push'](fi);}return fi;};BDFDB['ModuleUtils']['unpatch']=function(fk,fl,fm){if(!fl&&!fm){if(BDFDB['ObjectUtils']['is'](fk)&&BDFDB['ArrayUtils']['is'](fk['patchCancels'])){for(let fn of fk['patchCancels'])fn();fk['patchCancels']=[];}}else{if(!BDFDB['ObjectUtils']['is'](fl)||!fl['BDFDBpatch'])return;const fo=!fk?null:(typeof fk==='string'?fk:fk['name'])['toLowerCase']();if(fm){for(let fp of[fm]['flat'](0xa)['filter'](fq=>fq))if(fl[fp]&&fl['BDFDBpatch'][fp])fs(fp,fo);}else for(let fr of fl['BDFDBpatch'])fs(fr,fo);}function fs(ft,fu){for(let fv of eT['Patchtypes']){if(fu)delete fl['BDFDBpatch'][ft][fv][fu];else delete fl['BDFDBpatch'][ft][fv];}var fw=!![];for(let fv of eT['Patchtypes'])if(!BDFDB['ObjectUtils']['isEmpty'](fl['BDFDBpatch'][ft][fv]))fw=![];if(fw){fl[ft]=fl['BDFDBpatch'][ft]['originalMethod'];delete fl['BDFDBpatch'][ft];if(BDFDB['ObjectUtils']['isEmpty'](fl['BDFDBpatch']))delete fl['BDFDBpatch'];}}};BDFDB['ModuleUtils']['forceAllUpdates']=function(fy,fz){if(BDFDB['ObjectUtils']['is'](fy)&&BDFDB['ObjectUtils']['is'](fy['patchedModules'])){const fA=document['querySelector'](BDFDB['dotCN']['app']);const fB=document['querySelector']('#bd-settingspane-container\x20'+BDFDB['dotCN']['scrollerwrap']);if(fA){let fC=[],fD={};for(let fE in fy['patchedModules'])for(let fF in fy['patchedModules'][fE]){let fG=[fy['patchedModules'][fE][fF]]['flat'](0xa)['filter'](fH=>fH);if(fG['includes']('componentDidMount')||fG['includes']('componentDidUpdate')||fG['includes']('render')){fC['push'](fF);let fI=fF['split']('\x20_\x20_\x20')[0x0];if(!fD[fI])fD[fI]=[];fD[fI]['push'](fE);}}fz=[fz]['flat'](0xa)['filter'](fJ=>fJ);if(fz['length']){fz=fz['map'](fK=>fK&&eT['Patchmap'][fK]?eT['Patchmap'][fK]+'\x20_\x20_\x20'+fK:fK);fC=fC['filter'](fL=>fz['indexOf'](fL)>-0x1);}fC=BDFDB['ArrayUtils']['removeCopies'](fC);if(fC['length']){try{const fM=BDFDB['ReactUtils']['findOwner'](fA,{'name':fC,'all':!![],'group':!![],'unlimited':!![]});const fN=BDFDB['ReactUtils']['findOwner'](fA,{'name':fC,'all':!![],'group':!![],'unlimited':!![],'up':!![]});for(let fF in fM)for(let fP of fM[fF])e['forceInitiateProcess'](fy,fP,fF,fD[fF]);for(let fF in fN)for(let fP of fN[fF])e['forceInitiateProcess'](fy,fP,fF,fD[fF]);if(fB){const fS=BDFDB['ReactUtils']['findOwner'](fB,{'name':fC,'all':!![],'group':!![],'unlimited':!![]});for(let fF in fS)for(let fP of fS[fF])e['forceInitiateProcess'](fy,fP,fF,fD[fF]);}}catch(fV){BDFDB['LogUtils']['error']('Could\x20not\x20force\x20update\x20components!\x20'+fV,fy['name']);}}}}};e['forceInitiateProcess']=function(fW,fX,fY,fZ){if(!fW||!fX||!fY)return;let g0=[];for(let g1 in fW['patchedModules'])if(fW['patchedModules'][g1][fY])g0['push'](fW['patchedModules'][g1][fY]);g0=BDFDB['ArrayUtils']['removeCopies'](g0)['flat'](0xa)['filter'](g2=>g2);if(g0['includes']('componentDidMount'))e['initiateProcess'](fW,fY,{'instance':fX,'methodname':'componentDidMount','patchtypes':fZ});if(g0['includes']('render'))BDFDB['ReactUtils']['forceUpdate'](fX);else if(g0['includes']('componentDidUpdate'))e['initiateProcess'](fW,fY,{'instance':fX,'methodname':'componentDidUpdate','patchtypes':fZ});};e['initiateProcess']=function(g3,g4,g5){if(BDFDB['ObjectUtils']['is'](g3)&&!g3['stopping']&&g5['instance']){let g6=g3['name']=='$BDFDB';if(g3['name']=='$BDFDB')g3=BN;g4=(g4['split']('\x20_\x20_\x20')[0x1]||g4)['replace'](/[^A-z0-9]|_/g,'');g4=g4['charAt'](0x0)['toUpperCase']()+g4['slice'](0x1);if(typeof g3['process'+g4]=='function'){let g7=!g6&&g3['process'+g4]['toString']()['split']('\x0a')[0x0]['replace'](/ /g,'')['split'](',')['length']>0x1;if(g7){if(g5['methodname']=='render'){if(g5['returnvalue'])g3['process'+g4](g5['instance'],null,g5['returnvalue'],[g5['methodname']]);}else{let g8=BDFDB['ReactUtils']['findDOMNode'](g5['instance']);if(g8)g3['process'+g4](g5['instance'],g8,g5['returnvalue'],[g5['methodname']]);else BDFDB['TimeUtils']['timeout'](c=>{g8=BDFDB['ReactUtils']['findDOMNode'](g5['instance']);if(g8)g3['process'+g4](g5['instance'],g8,g5['returnvalue'],[g5['methodname']]);});}}else{if(g5['methodname']=='render'){if(g5['returnvalue']||g5['patchtypes']['includes']('before'))g3['process'+g4](g5);}else{g5['node']=BDFDB['ReactUtils']['findDOMNode'](g5['instance']);if(g5['node'])g3['process'+g4](g5);else BDFDB['TimeUtils']['timeout'](c=>{g5['node']=BDFDB['ReactUtils']['findDOMNode'](g5['instance']);if(g5['node'])g3['process'+g4](g5);});}}}}};e['patchPlugin']=function(gb){if(!BDFDB['ObjectUtils']['is'](gb)||!BDFDB['ObjectUtils']['is'](gb['patchedModules']))return;BDFDB['ModuleUtils']['unpatch'](gb);for(let gc in gb['patchedModules'])for(let gd in gb['patchedModules'][gc]){if(eT['GlobalModules'][gd]&&typeof eT['GlobalModules'][gd]=='function')gh(eT['GlobalModules'][gd],gd,gc);else{var ge=eT['Patchmap'][gd];var gf=eT['Patchfinder'][gd['split']('\x20_\x20_\x20')[0x1]||gd];var gg=ge?ge+'\x20_\x20_\x20'+gd:gd;if(ge){gb['patchedModules'][gc][gg]=gb['patchedModules'][gc][gd];delete gb['patchedModules'][gc][gd];}if(!gf)gh(BDFDB['ModuleUtils']['findByName'](gg['split']('\x20_\x20_\x20')[0x0]),gg,gc);else if(xB[gf])go(gf,gg,gc);}}function gh(gi,gd,gc){if(gi){var gl=gd['split']('\x20_\x20_\x20')[0x0];gi=gi['_reactInternalFiber']&&gi['_reactInternalFiber']['type']?gi['_reactInternalFiber']['type']:gi;gi=gi['displayName']==gl||gi['name']==gl?gi:BDFDB['ReactUtils']['findOwner'](gi,{'name':gl})||BDFDB['ReactUtils']['findOwner'](gi,{'name':gl,'up':!![]});if(gi){gi=gi['_reactInternalFiber']&&gi['_reactInternalFiber']['type']?gi['_reactInternalFiber']['type']:gi;let gm={};gm[gc]=gn=>{if(window['BDFDB']&&typeof BDFDB==='object'&&BDFDB['loaded'])e['initiateProcess'](gb,gd,{'instance':gn['thisObject'],'returnvalue':gn['returnValue'],'methodname':gn['originalMethodName'],'patchtypes':[gc]});};BDFDB['ModuleUtils']['patch'](gb,gi['prototype'],gb['patchedModules'][gc][gd],gm);}}}function go(gf,gd,gc){const gs=document['querySelector'](BDFDB['dotCN']['app']),gt=document['querySelector']('#bd-settingspane-container\x20'+BDFDB['dotCN']['scrollerwrap']);var gu=![];if(gs){var gv=BDFDB['ReactUtils']['findOwner'](gs,{'name':gd,'unlimited':!![]})||BDFDB['ReactUtils']['findOwner'](gs,{'name':gd,'unlimited':!![],'up':!![]});if(gv){gu=!![];gh(gv,gd,gc);}}if(!gu&>){var gw=BDFDB['ReactUtils']['findOwner'](gt,{'name':gd,'unlimited':!![]});if(gw){gu=!![];gh(gw,gd,gc);}}if(!gu){let gx=![],gy=BDFDB['disCN'][gf],gz=BDFDB['dotCN'][gf];let gA=new MutationObserver(gB=>{gB['forEach'](gC=>{gC['addedNodes']['forEach'](gD=>{if(gx||!gD||!gD['tagName'])return;var gE=null;if((gE=BDFDB['DOMUtils']['containsClass'](gD,gy)?gD:gD['querySelector'](gz))!=null){var gF=BDFDB['ReactUtils']['getInstance'](gE);if(gG(gF,gd)){gx=!![];gA['disconnect']();gh(gF,gd,gc);BDFDB['ModuleUtils']['forceAllUpdates'](gb,gd);}}});});});BDFDB['ObserverUtils']['connect'](gb,BDFDB['dotCN']['appmount'],{'name':'checkForInstanceObserver','instance':gA,'multi':!![]},{'childList':!![],'subtree':!![]});}}function gG(gH,gI){if(!gH)return![];gH=gH['_reactInternalFiber']&&gH['_reactInternalFiber']['type']?gH['_reactInternalFiber']['type']:gH;gH=gH['displayName']==gI||gH['name']==gI?gH:BDFDB['ReactUtils']['findOwner'](gH,{'name':gI})||BDFDB['ReactUtils']['findOwner'](gH,{'name':gI,'up':!![]});return!!gH;}};var gJ=['ChannelContextMenu','DeveloperContextMenu','GuildContextMenu','GuildRoleContextMenu','MessageContextMenu','NativeContextMenu','ScreenshareContextMenu','UserContextMenu','UserSettingsCogContextMenu'];var gK=['MessageOptionPopout'];var gL=['ApplicationContextMenu','GroupDMContextMenu'];var gM={};for(let gN of gL)gM[gN]={'query':[],'module':null};e['addContextListeners']=gO=>{if(!BDFDB['ObjectUtils']['is'](gO))return;for(let gP of gJ)if(typeof gO['on'+gP]==='function')e['patchContextMenuPlugin'](gO,gP,BDFDB['ModuleUtils']['findByName'](gP));for(let gQ of gK)if(typeof gO['on'+gQ]==='function')e['patchPopoutPlugin'](gO,gQ,BDFDB['ModuleUtils']['findByName'](gQ));for(let gR of gL)if(typeof gO['on'+gR]==='function'){if(gM[gR]['module'])e['patchContextMenuPlugin'](gO,gR,gM[gR]['module']);else gM[gR]['query']['push'](gO);}};e['patchContextMenuPlugin']=(gS,gT,gU)=>{if(gU&&gU['prototype']){let gV=gS['on'+gT]['toString']()['split']('\x0a')[0x0]['replace'](/ /g,'')['split'](',')['length']>0x1;if(gV){BDFDB['ModuleUtils']['patch'](gS,gU['prototype'],'render',{'after':gW=>{let gX=gW['thisObject'],gY=BDFDB['ReactUtils']['findDOMNode'](gW['thisObject']),gZ=gW['returnValue'];if(gX&&gY&&gZ&&typeof gS['on'+gT]==='function')gS['on'+gT](gX,gY,gZ);}});}else{BDFDB['ModuleUtils']['patch'](gS,gU['prototype'],'render',{'after':h0=>{if(h0['thisObject']&&h0['returnValue']&&typeof gS['on'+gT]==='function')gS['on'+gT]({'instance':h0['thisObject'],'returnvalue':h0['returnValue'],'methodname':'render'});}});}}};e['patchPopoutPlugin']=(h1,h2,h3)=>{if(h3&&h3['prototype']){let h4=h1['on'+h2]['toString']()['split']('\x0a')[0x0]['replace'](/ /g,'')['split'](',')['length']>0x1;if(h4){BDFDB['ModuleUtils']['patch'](h1,h3['prototype'],'render',{'after':h5=>{let h6=h5['thisObject'],h7=BDFDB['ReactUtils']['findDOMNode'](h5['thisObject']),h8=h5['returnValue'];if(h6&&h7&&h8&&typeof h1['on'+h2]==='function'){h1['on'+h2](h6,h7,h8);if(!h6['BDFDBforceUpdateTimeout'])BDFDB['ReactUtils']['forceUpdate'](h6);}}});}else{BDFDB['ModuleUtils']['patch'](h1,h3['prototype'],'render',{'after':h9=>{if(h9['thisObject']&&h9['returnValue']&&typeof h1['on'+h2]==='function')h1['on'+h2]({'instance':h9['thisObject'],'returnvalue':h9['returnValue'],'methodname':'render'});}});}}};e['patchContextMenuLib']=(ha,hb)=>{if(ha&&ha['prototype']){BDFDB['ModuleUtils']['patch'](BDFDB,ha['prototype'],'componentDidMount',{'after':hc=>{if(!hc['thisObject']['BDFDBforceRenderTimeout']&&typeof hc['thisObject']['render']=='function')hc['thisObject']['render']();}});BDFDB['ModuleUtils']['patch'](BDFDB,ha['prototype'],'componentDidUpdate',{'after':hd=>{var he=BDFDB['ReactUtils']['findDOMNode'](hd['thisObject']);if(he){const hf=BDFDB['ReactUtils']['getValue'](hd,'thisObject._reactInternalFiber.stateNode.props.onHeightUpdate');const hg=BDFDB['DOMUtils']['getRects'](he),hh=BDFDB['DOMUtils']['getRects'](document['querySelector'](BDFDB['dotCN']['appmount']));if(hf&&hg['top']+hg['height']>hh['height'])hf();}}});BDFDB['ModuleUtils']['patch'](BDFDB,ha['prototype'],'render',{'after':hi=>{if(hi['thisObject']['props']['BDFDBcontextMenu']&&hi['thisObject']['props']['children']&&hi['returnValue']&&hi['returnValue']['props']){hi['returnValue']['props']['children']=hi['thisObject']['props']['children'];delete hi['thisObject']['props']['value'];delete hi['thisObject']['props']['children'];delete hi['thisObject']['props']['BDFDBcontextMenu'];}if(BDFDB['ReactUtils']['findDOMNode'](hi['thisObject'])){hi['thisObject']['BDFDBforceRenderTimeout']=!![];BDFDB['TimeUtils']['timeout'](c=>{delete hi['thisObject']['BDFDBforceRenderTimeout'];},0x3e8);}if(hb){let hk=BDFDB['ReactUtils']['getValue'](hi,'thisObject._reactInternalFiber.child.type');if(hk&&hk['displayName']&&gM[hk['displayName']]&&!gM[hk['displayName']]['module']){gM[hk['displayName']]['module']=hk;e['patchContextMenuLib'](hk,![]);while(gM[hk['displayName']]['query']['length']){e['patchContextMenuPlugin'](gM[hk['displayName']]['query']['pop'](),hk['displayName'],hk);}}}}});}};e['patchPopoutLib']=(hl,hm)=>{if(hl&&hl['prototype']){BDFDB['ModuleUtils']['patch'](BDFDB,hl['prototype'],'componentDidMount',{'after':hn=>{if(!hn['thisObject']['BDFDBforceRenderTimeout']&&!hn['thisObject']['BDFDBforceUpdateTimeout']&&typeof hn['thisObject']['render']=='function')hn['thisObject']['render']();}});BDFDB['ModuleUtils']['patch'](BDFDB,hl['prototype'],'componentDidUpdate',{'after':ho=>{const hp=BDFDB['ReactUtils']['getValue'](ho,'thisObject._reactInternalFiber.return.return.return.stateNode.updateOffsets');if(hp)hp();ho['thisObject']['BDFDBforceUpdateTimeout']=!![];BDFDB['TimeUtils']['timeout'](c=>{delete ho['thisObject']['BDFDBforceUpdateTimeout'];},0x3e8);}});BDFDB['ModuleUtils']['patch'](BDFDB,hl['prototype'],'render',{'after':hr=>{if(BDFDB['ReactUtils']['findDOMNode'](hr['thisObject'])){hr['thisObject']['BDFDBforceRenderTimeout']=!![];BDFDB['TimeUtils']['timeout'](c=>{delete hr['thisObject']['BDFDBforceRenderTimeout'];},0x3e8);}if(hr['thisObject']['props']['message']&&!hr['thisObject']['props']['target']){const ht=document['querySelector'](BDFDB['dotCN']['messages']);if(ht)for(let hu of BDFDB['ReactUtils']['findOwner'](ht,{'name':'Message','all':!![],'unlimited':!![]})){if(hr['thisObject']['props']['message']['id']==hu['props']['message']['id']){target=BDFDB['ReactUtils']['findDOMNode'](hu);if(target)hr['thisObject']['props']['target']=target;break;}}}}});}};BDFDB['DiscordConstants']=BDFDB['ModuleUtils']['findByProperties']('Permissions','ActivityTypes');var hv={};hv['Channel']=BDFDB['ModuleUtils']['findByPrototypes']('getRecipientId','getTitleIcon','getGuildId');hv['Guild']=BDFDB['ModuleUtils']['findByPrototypes']('getIconURL','getMaxEmojiSlots','getRole');hv['Message']=BDFDB['ModuleUtils']['findByPrototypes']('getReaction','getAuthorName','getChannelId');hv['Timestamp']=BDFDB['ModuleUtils']['findByPrototypes']('add','dayOfYear','hasAlignedHourOffset');hv['User']=BDFDB['ModuleUtils']['findByPrototypes']('hasFlag','isLocalBot','isClaimed');BDFDB['DiscordObjects']=Object['assign']({},hv);var hw={};for(let hx of['child_process','electron','fs','path','process','request']){try{hw[hx]=require(hx);}catch(hy){}}BDFDB['LibraryRequires']=Object['assign']({},hw);var hz={};hz['AckUtils']=BDFDB['ModuleUtils']['findByProperties']('localAck','bulkAck');hz['APIUtils']=BDFDB['ModuleUtils']['findByProperties']('getAPIBaseURL');hz['AnimationUtils']=BDFDB['ModuleUtils']['findByProperties']('spring','decay');hz['BadgeUtils']=BDFDB['ModuleUtils']['findByProperties']('getBadgeCountString','getBadgeWidthForValue');hz['CategoryCollapseStore']=BDFDB['ModuleUtils']['findByProperties']('getCollapsedCategories','isCollapsed');hz['CategoryCollapseUtils']=BDFDB['ModuleUtils']['findByProperties']('categoryCollapse','categoryCollapseAll');hz['ChannelStore']=BDFDB['ModuleUtils']['findByProperties']('getChannel','getChannels');hz['ColorUtils']=BDFDB['ModuleUtils']['findByProperties']('hex2int','hex2rgb');hz['ContextMenuUtils']=BDFDB['ModuleUtils']['findByProperties']('closeContextMenu','openContextMenu');hz['CopyLinkUtils']=BDFDB['ModuleUtils']['findByProperties']('SUPPORTS_COPY','copy');hz['CurrentUserStore']=BDFDB['ModuleUtils']['findByProperties']('getCurrentUser');hz['DirectMessageUnreadStore']=BDFDB['ModuleUtils']['findByProperties']('getUnreadPrivateChannelIds');hz['DirectMessageUtils']=BDFDB['ModuleUtils']['findByProperties']('addRecipient','openPrivateChannel');hz['FriendUtils']=BDFDB['ModuleUtils']['findByProperties']('getFriendIDs','getRelationships');hz['FolderStore']=BDFDB['ModuleUtils']['findByProperties']('getGuildFolderById','getFlattenedGuilds');hz['FolderUtils']=BDFDB['ModuleUtils']['findByProperties']('isFolderExpanded','getExpandedFolders');hz['GuildBoostUtils']=BDFDB['ModuleUtils']['findByProperties']('getTierName','getUserLevel');hz['GuildChannelStore']=BDFDB['ModuleUtils']['findByProperties']('getChannels','getDefaultChannel');hz['GuildEmojiStore']=BDFDB['ModuleUtils']['findByProperties']('getGuildEmoji','getDisambiguatedEmojiContext');hz['GuildSettingsUtils']=BDFDB['ModuleUtils']['findByProperties']('updateChannelOverrideSettings','updateNotificationSettings');hz['GuildStore']=BDFDB['ModuleUtils']['findByProperties']('getGuild','getGuilds');hz['GuildUtils']=BDFDB['ModuleUtils']['findByProperties']('transitionToGuildSync');hz['HistoryUtils']=BDFDB['ModuleUtils']['findByProperties']('transitionTo','replaceWith','getHistory');;hz['IconUtils']=BDFDB['ModuleUtils']['findByProperties']('getGuildIconURL','getGuildBannerURL');hz['InviteUtils']=BDFDB['ModuleUtils']['findByProperties']('acceptInvite','createInvite');hz['KeyCodeUtils']=Object['assign']({},BDFDB['ModuleUtils']['findByProperties']('toCombo','keyToCode'));hz['KeyCodeUtils']['getString']=hA=>{return hz['KeyCodeUtils']['toString']([hA]['flat'](0xa)['filter'](hB=>hB)['map'](hC=>[BDFDB['DiscordConstants']['KeyboardDeviceTypes']['KEYBOARD_KEY'],hC,BDFDB['DiscordConstants']['KeyboardEnvs']['BROWSER']]),!![]);};hz['KeyEvents']=BDFDB['ModuleUtils']['findByProperties']('aliases','code','codes');hz['LanguageStore']=BDFDB['ModuleUtils']['findByProperties']('getLanguages','Messages');hz['LastChannelStore']=BDFDB['ModuleUtils']['findByProperties']('getLastSelectedChannelId');hz['LastGuildStore']=BDFDB['ModuleUtils']['findByProperties']('getLastSelectedGuildId');hz['LoginUtils']=BDFDB['ModuleUtils']['findByProperties']('login','logout');hz['MemberStore']=BDFDB['ModuleUtils']['findByProperties']('getMember','getMembers');hz['MessageCreationUtils']=BDFDB['ModuleUtils']['findByProperties']('parse','isMentioned');hz['MessagePinUtils']=BDFDB['ModuleUtils']['findByProperties']('pinMessage','unpinMessage');hz['MessageStore']=BDFDB['ModuleUtils']['findByProperties']('getMessage','getMessages');hz['MessageUtils']=BDFDB['ModuleUtils']['findByProperties']('receiveMessage','editMessage');hz['ModalUtils']=BDFDB['ModuleUtils']['findByProperties']('openModal','registerModalDispatch');hz['MutedUtils']=BDFDB['ModuleUtils']['findByProperties']('isGuildOrCategoryOrChannelMuted');hz['NoteStore']=BDFDB['ModuleUtils']['findByProperties']('getNotes','getNote');hz['NotificationSettingsUtils']=BDFDB['ModuleUtils']['findByProperties']('setDesktopType','setTTSType');hz['NotificationSettingsStore']=BDFDB['ModuleUtils']['findByProperties']('getDesktopType','getTTSType');hz['PlatformUtils']=BDFDB['ModuleUtils']['findByProperties']('isWindows','isLinux');hz['PermissionUtils']=BDFDB['ModuleUtils']['findByProperties']('getChannelPermissions','canUser');hz['PermissionRoleUtils']=BDFDB['ModuleUtils']['findByProperties']('getHighestRole','can');hz['ReactionUtils']=BDFDB['ModuleUtils']['findByProperties']('addReaction','removeReaction');hz['SearchPageUtils']=BDFDB['ModuleUtils']['findByProperties']('searchNextPage','searchPreviousPage');hz['SelectChannelUtils']=BDFDB['ModuleUtils']['findByProperties']('selectChannel','selectPrivateChannel');hz['SettingsUtils']=BDFDB['ModuleUtils']['findByProperties']('updateRemoteSettings','updateLocalSettings');hz['SoundUtils']=BDFDB['ModuleUtils']['findByProperties']('playSound','createSound');hz['SpellCheckUtils']=BDFDB['ModuleUtils']['findByProperties']('learnWord','toggleSpellcheck');hz['StateStoreUtils']=BDFDB['ModuleUtils']['findByProperties']('useStateFromStores','useStateFromStoresArray');hz['StatusMetaUtils']=BDFDB['ModuleUtils']['findByProperties']('getApplicationActivity','getStatus');hz['StreamUtils']=BDFDB['ModuleUtils']['findByProperties']('getStreamForUser','getActiveStream');hz['StringUtils']=BDFDB['ModuleUtils']['findByProperties']('cssValueToNumber','upperCaseFirstChar');hz['UnreadGuildUtils']=BDFDB['ModuleUtils']['findByProperties']('hasUnread','getUnreadGuilds');hz['UnreadChannelUtils']=BDFDB['ModuleUtils']['findByProperties']('getUnreadCount','getOldestUnreadMessageId');hz['UploadUtils']=BDFDB['ModuleUtils']['findByProperties']('upload','instantBatchUpload');hz['UserStore']=BDFDB['ModuleUtils']['findByProperties']('getUser','getUsers');hz['Utilities']=BDFDB['ModuleUtils']['findByProperties']('flatMap','cloneDeep');hz['VoiceUtils']=BDFDB['ModuleUtils']['findByProperties']('getAllVoiceStates','getVoiceStatesForChannel');hz['ZoomUtils']=BDFDB['ModuleUtils']['findByProperties']('setZoom','setFontSize');BDFDB['LibraryModules']=Object['assign']({},hz);hz['React']=BDFDB['ModuleUtils']['findByProperties']('createElement','cloneElement');hz['ReactDOM']=BDFDB['ModuleUtils']['findByProperties']('render','findDOMNode');BDFDB['ReactUtils']=Object['assign']({},hz['React'],hz['ReactDOM']);BDFDB['ReactUtils']['createElement']=function(hD,hE){if(hD&&hD['defaultProps'])for(let hF in hD['defaultProps'])if(hE[hF]==null)hE[hF]=hD['defaultProps'][hF];try{return hz['React']['createElement'](hD||'div',hE||{})||null;}catch(hG){BDFDB['LogUtils']['error']('Fatal\x20Error:\x20Could\x20not\x20create\x20react\x20element!\x20'+hG);}return null;};BDFDB['ReactUtils']['elementToReact']=function(hH){if(BDFDB['ReactUtils']['isValidElement'](hH))return hH;else if(!Node['prototype']['isPrototypeOf'](hH))return null;else if(hH['nodeType']==Node['TEXT_NODE'])return hH['nodeValue'];let hI={},hJ={};for(let hK of hH['attributes'])hI[hK['name']]=hK['value'];if(hH['attributes']['style'])hI['style']=BDFDB['ObjectUtils']['filter'](hH['style'],hL=>hH['style'][hL]&&isNaN(parseInt(hL)),!![]);hI['children']=[];if(hH['style']&&hH['style']['cssText'])for(let hM of hH['style']['cssText']['split'](';'))if(hM['endsWith']('!important')){let hN=hM['split'](':')[0x0];let hO=hN['replace'](/-([a-z]?)/g,(hP,hQ)=>hQ['toUpperCase']());if(hI['style'][hO]!=null)hJ[hN]=hI['style'][hO];}if(Object['keys'](hJ)['length'])hI['ref']=hR=>{let hS=BDFDB['ReactUtils']['findDOMNode'](hR);if(hS)for(let hT in hJ)hS['style']['setProperty'](hT,hJ[hT],'important');};for(let hU of hH['childNodes'])hI['children']['push'](BDFDB['ReactUtils']['elementToReact'](hU));return BDFDB['ReactUtils']['createElement'](hH['tagName'],hI);};BDFDB['ReactUtils']['findDOMNode']=function(hV){if(Node['prototype']['isPrototypeOf'](hV))return hV;if(!hV||!hV['updater']||typeof hV['updater']['isMounted']!=='function'||!hV['updater']['isMounted'](hV))return null;var hW=hz['ReactDOM']['findDOMNode'](hV)||BDFDB['ReactUtils']['getValue'](hV,'child.stateNode');return Node['prototype']['isPrototypeOf'](hW)?hW:null;};BDFDB['ReactUtils']['childrenToArray']=function(hX){if(hX&&hX['props']&&hX['props']['children']&&!BDFDB['ArrayUtils']['is'](hX['props']['children'])){var hY=hX['props']['children'];hX['props']['children']=[];hX['props']['children']['push'](hY);}return hX['props']['children'];};BDFDB['ReactUtils']['findChildren']=function(hZ,i0){if(!hZ||!BDFDB['ObjectUtils']['is'](i0)||!i0['name']&&!i0['key']&&!i0['props']&&!i0['filter'])return[null,-0x1];var i1=Node['prototype']['isPrototypeOf'](hZ)?BDFDB['ReactUtils']['getInstance'](hZ):hZ;if(!BDFDB['ObjectUtils']['is'](i1)&&!BDFDB['ArrayUtils']['is'](i1))return[null,-0x1];i0['name']=i0['name']&&[i0['name']]['flat']()['filter'](i2=>i2);i0['key']=i0['key']&&[i0['key']]['flat']()['filter'](i3=>i3);i0['props']=i0['props']&&[i0['props']]['flat']()['filter'](i4=>i4);i0['filter']=typeof i0['filter']=='function'&&i0['filter'];var i5=firstarray=i1;while(!BDFDB['ArrayUtils']['is'](firstarray)&&firstarray['props']&&firstarray['props']['children'])firstarray=firstarray['props']['children'];if(!BDFDB['ArrayUtils']['is'](firstarray)){if(i5&&i5['props']){i5['props']['children']=[i5['props']['children']];firstarray=i5['props']['children'];}else firstarray=[];}return i6(i1);function i6(i7){var i8=[firstarray,-0x1];if(!i7)return i8;if(!BDFDB['ArrayUtils']['is'](i7)){if(ic(i7))i8=ia(i7);else if(i7['props']&&i7['props']['children']){i5=i7;i8=i6(i7['props']['children']);}}else{for(let i9=0x0;i8[0x1]==-0x1&&i9(i1['type']['displayName']||i1['type']['name']||i1['type'])===ig)||i0['key']&&i0['key']['some'](ih=>i1['key']==ih)||ie&&i0['props']&&i0['props']['every'](ii=>BDFDB['ArrayUtils']['is'](ii)?BDFDB['ArrayUtils']['is'](ii[0x1])?ii[0x1]['some'](ij=>ik(ie,ii[0x0],ij)):ik(ie,ii[0x0],ii[0x1]):ie[ii]!==undefined)||i0['filter']&&i0['filter'](i1);}function ik(il,im,io){return im!=null&&il[im]!=null&&io!=null&&(im=='className'?('\x20'+il[im]+'\x20')['indexOf']('\x20'+io+'\x20')>-0x1:BDFDB['equals'](il[im],io));}};BDFDB['ReactUtils']['findOwner']=function(ip,iq){if(!BDFDB['ObjectUtils']['is'](iq))return null;if(!ip||!iq['name']&&!iq['key']&&!iq['props'])return iq['all']?iq['group']?{}:[]:null;var ir=Node['prototype']['isPrototypeOf'](ip)?BDFDB['ReactUtils']['getInstance'](ip):ip;if(!BDFDB['ObjectUtils']['is'](ir))return iq['all']?iq['group']?{}:[]:null;iq['name']=iq['name']&&[iq['name']]['flat']()['filter'](is=>is);iq['key']=iq['key']&&[iq['key']]['flat']()['filter'](it=>it);iq['props']=iq['props']&&[iq['props']]['flat']()['filter'](iu=>iu);var iv=-0x1;var iw=performance['now']();var ix=iq['unlimited']?0x3b9ac9ff:iq['depth']===undefined?0x1e:iq['depth'];var iy=iq['unlimited']?0x3b9ac9ff:iq['time']===undefined?0x96:iq['time'];var iz=iq['up']?{'return':!![],'sibling':!![],'_reactInternalFiber':!![]}:{'child':!![],'sibling':!![],'_reactInternalFiber':!![]};var iA=iq['group']?{}:[];var iB=iE(ir);if(iq['all']){for(let iC in iA){if(iq['group'])for(let iD in iA[iC])delete iA[iC][iD]['BDFDBreactSearch'];else delete iA[iC]['BDFDBreactSearch'];}return iA;}else return iB;function iE(ir){iv++;var iG=undefined;if(ir&&!Node['prototype']['isPrototypeOf'](ir)&&!BDFDB['ReactUtils']['getInstance'](ir)&&iv(ir['type']['displayName']||ir['type']['name']||ir['type'])===iI['split']('\x20_\x20_\x20')[0x0])||iq['key']&&iq['key']['some'](iJ=>ir['key']==iJ)||iH&&iq['props']&&iq['props']['every'](iK=>BDFDB['ArrayUtils']['is'](iK)?BDFDB['ArrayUtils']['is'](iK[0x1])?iK[0x1]['some'](iL=>BDFDB['equals'](iH[iK[0x0]],iL)):BDFDB['equals'](iH[iK[0x0]],iK[0x1]):iH[iK]!==undefined))){if(iq['all']===undefined||!iq['all'])iG=ir['stateNode'];else if(iq['all']){if(!ir['stateNode']['BDFDBreactSearch']){ir['stateNode']['BDFDBreactSearch']=!![];if(iq['group']){if(iq['name']&&ir['type']&&(ir['type']['displayName']||ir['type']['name']||ir['type'])){var iM='Default';for(let iN of iq['name'])if(ir['type']['displayName']===iN['split']('\x20_\x20_\x20')[0x0]||ir['type']['name']===iN['split']('\x20_\x20_\x20')[0x0]){iM=iN;break;}if(typeof iA[iM]=='undefined')iA[iM]=[];iA[iM]['push'](ir['stateNode']);}}else iA['push'](ir['stateNode']);}}}if(iG===undefined){let iO=Object['getOwnPropertyNames'](ir);for(let iP=0x0;iG===undefined&&iPiU);iS['key']=iS['key']&&[iS['key']]['flat']()['filter'](iV=>iV);var iW=-0x1;var iX=performance['now']();var iY=iS['unlimited']?0x3b9ac9ff:iS['depth']===undefined?0x1e:iS['depth'];var iZ=iS['unlimited']?0x3b9ac9ff:iS['time']===undefined?0x96:iS['time'];var j0=iS['up']?{'return':!![],'sibling':!![],'_reactInternalFiber':!![]}:{'child':!![],'sibling':!![],'_reactInternalFiber':!![]};return j1(iT);function j1(iT){iW++;var j3=undefined;if(iT&&!Node['prototype']['isPrototypeOf'](iT)&&!BDFDB['ReactUtils']['getInstance'](iT)&&iW(iT['type']['displayName']||iT['type']['name']||iT['type'])===j4['split']('\x20_\x20_\x20')[0x0])||iS['key']&&iS['key']['some'](j5=>iT['key']==j5)))j3=iT['memoizedProps'];if(j3===undefined){let j6=Object['getOwnPropertyNames'](iT);for(let j7=0x0;j3===undefined&&j7jw))if(jv['updater']&&typeof jv['updater']['isMounted']=='function'&&jv['updater']['isMounted'](jv))jv['forceUpdate']();};BDFDB['ReactUtils']['getInstance']=function(jx){if(!BDFDB['ObjectUtils']['is'](jx))return null;return jx[Object['keys'](jx)['find'](jy=>jy['startsWith']('__reactInternalInstance'))];};BDFDB['ReactUtils']['getValue']=function(jz,jA){if(!jz||!jA)return null;var jB=Node['prototype']['isPrototypeOf'](jz)?BDFDB['ReactUtils']['getInstance'](jz):jz;if(!BDFDB['ObjectUtils']['is'](jB))return null;var jC=jB,jD=jA['split']('.')['filter'](jE=>jE);for(value of jD){if(!jC)return null;jC=jC[value];}return jC;};e['setDefaultProps']=function(jF,jG){if(BDFDB['ObjectUtils']['is'](jF))jF['defaultProps']=Object['assign']({},jF['defaultProps'],jG);};BDFDB['equals']=function(jH,jI,jJ){var jK=-0x1;if(jJ===undefined||typeof jJ!=='boolean')jJ=![];return jL(jH,jI);function jL(jM,jN){jK++;var jO=!![];if(jK>0x3e8)jO=null;else{if(typeof jM!==typeof jN)jO=![];else if(typeof jM==='undefined')jO=!![];else if(typeof jM==='symbol')jO=!![];else if(typeof jM==='boolean')jO=jM==jN;else if(typeof jM==='string')jO=jM==jN;else if(typeof jM==='number'){if(isNaN(jM)||isNaN(jN))jO=isNaN(jM)==isNaN(jN);else jO=jM==jN;}else if(!jM&&!jN)jO=!![];else if(!jM||!jN)jO=![];else if(typeof jM==='function'||typeof jM==='object'){var jP=Object['getOwnPropertyNames'](jM);var jQ=Object['getOwnPropertyNames'](jN);if(jP['length']!==jQ['length'])jO=![];else for(let jR=0x0;jO===!![]&&jRkb['folderId'])['find'](kc=>kc['guildIds']['includes'](ka));};BDFDB['GuildUtils']['getId']=function(kd){if(!Node['prototype']['isPrototypeOf'](kd)||!BDFDB['ReactUtils']['getInstance'](kd))return;let ke=BDFDB['DOMUtils']['getParent'](BDFDB['dotCN']['guildouter'],kd);if(!ke)return;var kf=ke['querySelector'](BDFDB['dotCN']['guildiconwrapper']);var kg=kf&&kf['href']?kf['href']['split']('/')['slice'](-0x2)[0x0]:null;return kg&&!isNaN(parseInt(kg))?kg['toString']():null;};BDFDB['GuildUtils']['getDiv']=function(kh){if(!kh)return null;if(Node['prototype']['isPrototypeOf'](kh))return BDFDB['DOMUtils']['getParent'](BDFDB['dotCN']['guildouter'],kh);else{let ki=typeof kh=='object'?kh['id']:kh;if(ki)return BDFDB['DOMUtils']['getParent'](BDFDB['dotCN']['guildouter'],document['querySelector'](BDFDB['dotCNS']['guilds']+BDFDB['dotCN']['guildiconwrapper']+'[href*=\x22/channels/'+ki+'\x22]'))||BDFDB['GuildUtils']['createCopy'](ki,{'pill':!![],'hover':!![],'click':!![],'menu':!![]});}return null;};BDFDB['GuildUtils']['getData']=function(kj){if(!kj)return null;let kk=Node['prototype']['isPrototypeOf'](kj)?BDFDB['GuildUtils']['getId'](kj):typeof kj=='object'?kj['id']:kj;kk=typeof kk=='number'?kk['toFixed']():kk;for(let kl of BDFDB['GuildUtils']['getAll']())if(kl&&kl['id']==kk)return kl;return null;};BDFDB['GuildUtils']['getAll']=function(){var km=[],kn=[];for(let ko of BDFDB['ReactUtils']['findOwner'](document['querySelector'](BDFDB['dotCN']['guilds']),{'name':['Guild','GuildIcon'],'all':!![],'unlimited':!![]})){if(ko['props']&&ko['props']['guild'])kn['push'](Object['assign'](new ko['props']['guild']['constructor'](ko['props']['guild']),{'div':ko['handleContextMenu']?BDFDB['ReactUtils']['findDOMNode'](ko):BDFDB['GuildUtils']['createCopy'](ko['props']['guild']),'instance':ko}));}for(let kp of BDFDB['LibraryModules']['FolderStore']['getFlattenedGuildIds']()){let kq=null;for(let kr of kn)if(kr['id']==kp){kq=kr;break;}if(kq)km['push'](kq);else{let ks=BDFDB['LibraryModules']['GuildStore']['getGuild'](kp);km['push'](Object['assign'](new ks['constructor'](ks),{'div':BDFDB['GuildUtils']['createCopy'](ks),'instance':null}));}}return km;};BDFDB['GuildUtils']['getUnread']=function(kt){var ku=[];for(let kv of kt===undefined||!BDFDB['ArrayUtils']['is'](kt)?BDFDB['GuildUtils']['getAll']():kt){if(!kv)return null;let kw=Node['prototype']['isPrototypeOf'](kv)?BDFDB['GuildUtils']['getId'](kv):typeof kv=='object'?kv['id']:kv;kw=typeof kw=='number'?kw['toFixed']():kw;if(kw&&(hz['UnreadGuildUtils']['hasUnread'](kw)||hz['UnreadGuildUtils']['getMentionCount'](kw)>0x0))ku['push'](kv);}return ku;};BDFDB['GuildUtils']['getPinged']=function(kx){var ky=[];for(let kz of kx===undefined||!BDFDB['ArrayUtils']['is'](kx)?BDFDB['GuildUtils']['getAll']():kx){if(!kz)return null;let kA=Node['prototype']['isPrototypeOf'](kz)?BDFDB['GuildUtils']['getId'](kz):typeof kz=='object'?kz['id']:kz;kA=typeof kA=='number'?kA['toFixed']():kA;if(kA&&hz['UnreadGuildUtils']['getMentionCount'](kA)>0x0)ky['push'](kz);}return ky;};BDFDB['GuildUtils']['getMuted']=function(kB){var kC=[];for(let kD of kB===undefined||!BDFDB['ArrayUtils']['is'](kB)?BDFDB['GuildUtils']['getAll']():kB){if(!kD)return null;let kE=Node['prototype']['isPrototypeOf'](kD)?BDFDB['GuildUtils']['getId'](kD):typeof kD=='object'?kD['id']:kD;kE=typeof kE=='number'?kE['toFixed']():kE;if(kE&&hz['MutedUtils']['isGuildOrCategoryOrChannelMuted'](kE))kC['push'](kD);}return kC;};BDFDB['GuildUtils']['getSelected']=function(){var kF=hz['GuildStore']['getGuild'](hz['LastGuildStore']['getGuildId']());if(kF)return BDFDB['GuildUtils']['getData'](kF['id'])||Object['assign'](new kF['constructor'](kF),{'div':null,'instance':null});else return null;};BDFDB['GuildUtils']['createCopy']=function(kG,kH={'pill':![],'hover':![],'click':![],'menu':![],'size':null}){let kI=typeof kG=='object'?kG['id']:kG;let kJ=kI?hz['GuildStore']['getGuild'](kI):null;if(kJ){let kK=hz['LastGuildStore']['getGuildId']()==kJ['id'];let kL=hz['UnreadGuildUtils']['hasUnread'](kJ['id']);let kM=BDFDB['DOMUtils']['create']('');let kN=kM['querySelector'](BDFDB['dotCN']['guildcontainer']);let kO=kM['querySelector'](BDFDB['dotCN']['guildpillitem']);BDFDB['DOMUtils']['toggle'](kO['parentElement'],kH['pill']);if(kH['pill']){kO['style']['setProperty']('opacity',kK?0x1:kL?0.7:0x0);kO['style']['setProperty']('height',kK?'40px':'8px');kO['style']['setProperty']('transform','translate3d(0px,\x200px,\x200px)');BDFDB['DOMUtils']['toggleClass'](kM,BDFDB['disCN']['_bdguildselected'],kK);BDFDB['DOMUtils']['toggleClass'](kM,BDFDB['disCN']['_bdguildunread'],kL);BDFDB['DOMUtils']['toggleClass'](kO,BDFDB['disCN']['_bdguildunread'],kL);}if(kH['hover']){let kP=kM['querySelector'](BDFDB['dotCN']['guildiconwrapper']);let kQ=kO['style']['getPropertyValue']('opacity')!=0x0;let kR=new hz['AnimationUtils']['Value'](0x0);kR['interpolate']({'inputRange':[0x0,0x1],'outputRange':[0x32,0x1e]})['addListener'](kS=>{kN['style']['setProperty']('border-radius',kS['value']+'%');});let kT=new hz['AnimationUtils']['Value'](0x0);kT['interpolate']({'inputRange':[0x0,0x1],'outputRange':[0x8,0x14]})['addListener'](kU=>{kO['style']['setProperty']('height',kU['value']+'px');});let kV=new hz['AnimationUtils']['Value'](0x0);kV['interpolate']({'inputRange':[0x0,0x1],'outputRange':[0x0,0.7]})['addListener'](kW=>{kO['style']['setProperty']('opacity',''+kW['value']);});let kX=kY=>{hz['AnimationUtils']['parallel']([hz['AnimationUtils']['timing'](kR,{'toValue':kY,'duration':0xc8}),hz['AnimationUtils']['spring'](kT,{'toValue':kY,'friction':0x5})])['start']();};let kZ=l0=>{hz['AnimationUtils']['parallel']([hz['AnimationUtils']['timing'](kV,{'toValue':l0,'duration':0xc8})])['start']();};kN['addEventListener']('mouseenter',c=>{kQ=kO['style']['getPropertyValue']('opacity')!=0x0;if(hz['LastGuildStore']['getGuildId']()!=kJ['id']){kX(0x1);if(!kQ)kZ(0x1);}});kN['addEventListener']('mouseleave',c=>{if(hz['LastGuildStore']['getGuildId']()!=kJ['id']){kX(0x0);if(!kQ)kZ(0x0);}});}if(kH['click'])kN['addEventListener']('click',l3=>{BDFDB['ListenerUtils']['stopEvent'](l3);hz['GuildUtils']['transitionToGuildSync'](kJ['id']);if(typeof kH['click']=='function')kH['click']();});if(kH['menu'])kN['addEventListener']('contextmenu',l4=>{BDFDB['GuildUtils']['openMenu'](kJ['id'],l4);if(typeof kH['menu']=='function')kH['menu']();});if(kH['size']){kM['style']['setProperty']('margin','0','important');kM['style']['setProperty']('width',kH['size']+'px','important');kM['style']['setProperty']('height',kH['size']+'px','important');}return kM;}else return null;};BDFDB['GuildUtils']['openMenu']=function(l5,l6=BDFDB['mousePosition']){if(!l5)return;let l7=Node['prototype']['isPrototypeOf'](l5)?BDFDB['GuildUtils']['getId'](l5):typeof l5=='object'?l5['id']:l5;let l8=hz['GuildStore']['getGuild'](l7);if(l8)hz['ContextMenuUtils']['openContextMenu'](l6,function(l6){return BDFDB['ReactUtils']['createElement'](BDFDB['ModuleUtils']['findByName']('GuildContextMenu'),Object['assign']({},l6,{'type':BDFDB['DiscordConstants']['ContextMenuTypes']['GUILD_ICON_BAR'],'guild':l8,'badge':hz['UnreadGuildUtils']['getMentionCount'](l8['id']),'link':BDFDB['DiscordConstants']['Routes']['CHANNEL'](l8['id'],hz['LastChannelStore']['getChannelId'](l8['id'])),'selected':l8['id']==hz['LastGuildStore']['getGuildId']()}));});};BDFDB['GuildUtils']['markAsRead']=function(la){if(!la)return;var lb=[];for(let lc of BDFDB['ArrayUtils']['is'](la)?la:typeof la=='string'||typeof la=='number'?Array['of'](la):Array['from'](la)){let ld=Node['prototype']['isPrototypeOf'](lc)?BDFDB['GuildUtils']['getId'](lc):lc&&typeof lc=='object'?lc['id']:lc;let le=ld&&hz['GuildChannelStore']['getChannels'](ld);if(le)for(let lf in le)if(BDFDB['ArrayUtils']['is'](le[lf]))for(let lg of le[lf])lb['push'](lg['channel']['id']);}if(lb['length'])hz['AckUtils']['bulkAck'](lb);};BDFDB['FolderUtils']={};BDFDB['FolderUtils']['getId']=function(lh){if(!Node['prototype']['isPrototypeOf'](lh)||!BDFDB['ReactUtils']['getInstance'](lh))return;lh=BDFDB['DOMUtils']['getParent'](BDFDB['dotCN']['guildfolderwrapper'],lh);if(!lh)return;return BDFDB['ReactUtils']['findValue'](lh,'folderId',{'up':!![]});};BDFDB['FolderUtils']['getDefaultName']=function(li){let lj=BDFDB['LibraryModules']['FolderStore']['getGuildFolderById'](li);if(!lj)return'';let lk=0x2*BDFDB['DiscordConstants']['MAX_GUILD_FOLDER_NAME_LENGTH'];let ll=[],lm=lj['guildIds']['map'](ln=>(BDFDB['LibraryModules']['GuildStore']['getGuild'](ln)||{})['name'])['filter'](lo=>lo);for(let lp of lm)if(lp['length']{hz['AckUtils']['ack'](m9[mc]);},mc*0x3e8);};BDFDB['DataUtils']={};BDFDB['DataUtils']['cached']={};BDFDB['DataUtils']['save']=function(me,mf,mg,mh){var mi,mj;if(!BDFDB['BDUtils']['isBDv2']()){mj=typeof mf==='string'?mf:mf['name'];mi=hw['path']['join'](BDFDB['BDUtils']['getPluginsFolder'](),mj+'.config.json');}else{mj=typeof mf==='string'?mf['toLowerCase']():null;var mk=mj?BDFDB['Plugins'][mj]?BDFDB['Plugins'][mj]['contentPath']:null:mf['contentPath'];if(!mk)return;mi=hw['path']['join'](mk,'settings.json');}var ml=hw['fs']['existsSync'](mi);var mm=!ml?{}:typeof BDFDB['DataUtils']['cached'][mj]!=='undefined'?BDFDB['DataUtils']['cached'][mj]:e['readConfig'](mi);if(mh===undefined)mm[mg]=BDFDB['ObjectUtils']['is'](me)?BDFDB['ObjectUtils']['sort'](me):me;else{if(!BDFDB['ObjectUtils']['is'](mm[mg]))mm[mg]={};mm[mg][mh]=BDFDB['ObjectUtils']['is'](me)?BDFDB['ObjectUtils']['sort'](me):me;}if(BDFDB['ObjectUtils']['isEmpty'](mm[mg]))delete mm[mg];if(BDFDB['ObjectUtils']['isEmpty'](mm)){delete BDFDB['DataUtils']['cached'][mj];if(ml)hw['fs']['unlinkSync'](mi);}else{mm=BDFDB['ObjectUtils']['sort'](mm);BDFDB['DataUtils']['cached'][mj]=BDFDB['ObjectUtils']['deepAssign']({},mm);hw['fs']['writeFileSync'](mi,JSON['stringify'](mm,null,'\x09'));}};BDFDB['DataUtils']['load']=function(mn,mo,mp){var mq,mr;if(!BDFDB['BDUtils']['isBDv2']()){mr=typeof mn==='string'?mn:mn['name'];mq=hw['path']['join'](BDFDB['BDUtils']['getPluginsFolder'](),mr+'.config.json');}else{mr=typeof mn==='string'?mn['toLowerCase']():null;var ms=mr?BDFDB['Plugins'][mr]?BDFDB['Plugins'][mr]['contentPath']:null:mn['contentPath'];if(!ms)return{};mq=hw['path']['join'](ms,'settings.json');}if(!hw['fs']['existsSync'](mq)){delete BDFDB['DataUtils']['cached'][mr];return{};}var mt=typeof BDFDB['DataUtils']['cached'][mr]!=='undefined'&&typeof BDFDB['DataUtils']['cached'][mr][mo]!=='undefined'?BDFDB['DataUtils']['cached'][mr]:e['readConfig'](mq);BDFDB['DataUtils']['cached'][mr]=BDFDB['ObjectUtils']['deepAssign']({},mt);let mu=BDFDB['ObjectUtils']['deepAssign']({},mt&&typeof mt[mo]!=='undefined'?mt[mo]:{});if(mp===undefined)return mu;else return mu[mp]===undefined?null:mu[mp];};BDFDB['DataUtils']['remove']=function(mv,mw,mx){var my,mz;if(!BDFDB['BDUtils']['isBDv2']()){mz=typeof mv==='string'?mv:mv['name'];my=hw['path']['join'](BDFDB['BDUtils']['getPluginsFolder'](),mz+'.config.json');}else{mz=typeof mv==='string'?mv['toLowerCase']():null;var mA=mz?BDFDB['Plugins'][mz]?BDFDB['Plugins'][mz]['contentPath']:null:mv['contentPath'];if(!mA)return;my=hw['path']['join'](mA,'settings.json');}var mB=hw['fs']['existsSync'](my);var mC=!mB?{}:typeof BDFDB['DataUtils']['cached'][mz]!=='undefined'?BDFDB['DataUtils']['cached'][mz]:e['readConfig'](my);if(mx===undefined)delete mC[mw];else if(BDFDB['ObjectUtils']['is'](mC[mw]))delete mC[mw][mx];if(BDFDB['ObjectUtils']['isEmpty'](mC[mw]))delete mC[mw];if(BDFDB['ObjectUtils']['isEmpty'](mC)){delete BDFDB['DataUtils']['cached'][mz];if(mB)hw['fs']['unlinkSync'](my);}else{mC=BDFDB['ObjectUtils']['sort'](mC);BDFDB['DataUtils']['cached'][mz]=mC;hw['fs']['writeFileSync'](my,JSON['stringify'](mC,null,'\x09'));}};BDFDB['DataUtils']['get']=function(mD,mE,mF){mD=typeof mD=='string'?BDFDB['BDUtils']['getPlugin'](mD):mD;if(!BDFDB['ObjectUtils']['is'](mD)||!mD['defaults']||!mD['defaults'][mE])return mF===undefined?{}:null;var mG=BDFDB['DataUtils']['load'](mD,mE),mH={},mI=![];for(let mJ in mD['defaults'][mE]){if(mG[mJ]==null){mH[mJ]=BDFDB['ObjectUtils']['is'](mD['defaults'][mE][mJ]['value'])?BDFDB['ObjectUtils']['deepAssign']({},mD['defaults'][mE][mJ]['value']):mD['defaults'][mE][mJ]['value'];mI=!![];}else mH[mJ]=mG[mJ];}if(mI)BDFDB['DataUtils']['save'](mH,mD,mE);if(mF===undefined)return mH;else return mH[mF]===undefined?null:mH[mF];};e['readConfig']=function(mK){try{return JSON['parse'](hw['fs']['readFileSync'](mK));}catch(mL){return{};}};BDFDB['ColorUtils']={};BDFDB['ColorUtils']['convert']=function(mM,mN,mO){if(BDFDB['ObjectUtils']['is'](mM)){var mP={};for(let mQ in mM)mP[mQ]=BDFDB['ColorUtils']['convert'](mM[mQ],mN,mO);return mP;}else{mN=mN===undefined||!mN?mN='RGBCOMP':mN['toUpperCase']();mO=mO===undefined||!mO||!['RGB','RGBA','RGBCOMP','HSL','HSLA','HSLCOMP','HEX','HEXA','INT']['includes'](mO['toUpperCase']())?BDFDB['ColorUtils']['getType'](mM):mO['toUpperCase']();if(mN=='RGBCOMP'){switch(mO){case'RGBCOMP':if(mM['length']==0x3)return nq(mM);else if(mM['length']==0x4){let mR=nt(mM['pop']());return nq(mM)['concat'](mR);}break;case'RGB':return nq(mM['replace'](/\s/g,'')['slice'](0x4,-0x1)['split'](','));case'RGBA':let mS=mM['replace'](/\s/g,'')['slice'](0x5,-0x1)['split'](',');let mR=nt(mS['pop']());return nq(mS)['concat'](mR);case'HSLCOMP':if(mM['length']==0x3)return BDFDB['ColorUtils']['convert']('hsl('+nx(mM)['join'](',')+')','RGBCOMP');else if(mM['length']==0x4){let mU=nt(mM['pop']());return BDFDB['ColorUtils']['convert']('hsl('+nx(mM)['join'](',')+')','RGBCOMP')['concat'](mU);}break;case'HSL':var mV=nx(mM['replace'](/\s/g,'')['slice'](0x4,-0x1)['split'](','));var mW,mX,mY,mZ,n0,n1,n2,n3;var n4=mV[0x0]/0x168,n5=parseInt(mV[0x1])/0x64,n6=parseInt(mV[0x2])/0x64;mZ=Math['floor'](n4*0x6);n0=n4*0x6-mZ;n1=n6*(0x1-n5);n2=n6*(0x1-n0*n5);n3=n6*(0x1-(0x1-n0)*n5);switch(mZ%0x6){case 0x0:mW=n6,mX=n3,mY=n1;break;case 0x1:mW=n2,mX=n6,mY=n1;break;case 0x2:mW=n1,mX=n6,mY=n3;break;case 0x3:mW=n1,mX=n2,mY=n6;break;case 0x4:mW=n3,mX=n1,mY=n6;break;case 0x5:mW=n6,mX=n1,mY=n2;break;}return[Math['round'](mW*0xff),Math['round'](mX*0xff),Math['round'](mY*0xff)];case'HSLA':var mV=mM['replace'](/\s/g,'')['slice'](0x5,-0x1)['split'](',');return BDFDB['ColorUtils']['convert']('hsl('+mV['slice'](0x0,0x3)['join'](',')+')','RGBCOMP')['concat'](nt(mV['pop']()));case'HEX':var n8=/^#([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'](mM);return[parseInt(n8[0x1]+n8[0x1]||n8[0x4],0x10)['toString'](),parseInt(n8[0x2]+n8[0x2]||n8[0x5],0x10)['toString'](),parseInt(n8[0x3]+n8[0x3]||n8[0x6],0x10)['toString']()];case'HEXA':var n8=/^#([a-f\d]{1})([a-f\d]{1})([a-f\d]{1})([a-f\d]{1})$|^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i['exec'](mM);return[parseInt(n8[0x1]+n8[0x1]||n8[0x5],0x10)['toString'](),parseInt(n8[0x2]+n8[0x2]||n8[0x6],0x10)['toString'](),parseInt(n8[0x3]+n8[0x3]||n8[0x7],0x10)['toString'](),Math['floor'](BDFDB['NumberUtils']['mapRange']([0x0,0xff],[0x0,0x64],parseInt(n8[0x4]+n8[0x4]||n8[0x8],0x10)['toString']()))/0x64];case'INT':mM=nB(mM);return[(mM>>0x10&0xff)['toString'](),(mM>>0x8&0xff)['toString'](),(mM&0xff)['toString']()];default:return null;}}else{var na=mO=='RGBCOMP'?mM:BDFDB['ColorUtils']['convert'](mM,'RGBCOMP',mO);if(na)switch(mN){case'RGB':return'rgb('+nq(na['slice'](0x0,0x3))['join'](',')+')';case'RGBA':na=na['slice'](0x0,0x4);var nb=na['length']==0x4?nt(na['pop']()):0x1;return'rgba('+nq(na)['concat'](nb)['join'](',')+')';case'HSLCOMP':var nb=na['length']==0x4?nt(na['pop']()):null;var mV=nx(BDFDB['ColorUtils']['convert'](na,'HSL')['replace'](/\s/g,'')['split'](','));return nb!=null?mV['concat'](nb):mV;case'HSL':var mW=no(na[0x0]),mX=no(na[0x1]),mY=no(na[0x2]);var nh=Math['max'](mW,mX,mY),ni=Math['min'](mW,mX,mY),nj=nh-ni,n4,n5=nh===0x0?0x0:nj/nh,n6=nh/0xff;switch(nh){case ni:n4=0x0;break;case mW:n4=mX-mY+nj*(mX0xff?0xff:n0<0x0?0x0:n0;}};function nq(nr){return nr['map'](n0=>{return no(n0);});};function nt(nb){if(nb==null){return 0x1;}else{nb=nb['toString']();nb=(nb['indexOf']('%')>-0x1?0.01:0x1)*parseFloat(nb['replace'](/[^0-9\.\-]/g,''));return isNaN(nb)||nb>0x1?0x1:nb<0x0?0x0:nb;}};function nv(nw){if(nw==null){return'100%';}else{nw=parseFloat(nw['toString']()['replace'](/[^0-9\.\-]/g,''));return(isNaN(nw)||nw>0x64?0x64:nw<0x0?0x0:nw)+'%';}};function nx(ny){let n4=parseFloat(ny['shift']()['toString']()['replace'](/[^0-9\.\-]/g,''));n4=isNaN(n4)||n4>0x168?0x168:n4<0x0?0x0:n4;return[n4]['concat'](ny['map'](nA=>{return nv(nA);}));};function nB(n0){if(n0==null){return 0xffffff;}else{n0=parseInt(n0['toString']()['replace'](/[^0-9]/g,''));return isNaN(n0)||n0>0xffffff?0xffffff:n0<0x0?0x0:n0;}};};BDFDB['ColorUtils']['setAlpha']=function(nD,nE,nF){if(BDFDB['ObjectUtils']['is'](nD)){var nG={};for(let nH in nD)nG[nH]=BDFDB['ColorUtils']['setAlpha'](nD[nH],nE,nF);return nG;}else{var nI=BDFDB['ColorUtils']['convert'](nD,'RGBCOMP');if(nI){nE=nE['toString']();nE=(nE['indexOf']('%')>-0x1?0.01:0x1)*parseFloat(nE['replace'](/[^0-9\.\-]/g,''));nE=isNaN(nE)||nE>0x1?0x1:nE<0x0?0x0:nE;nI[0x3]=nE;nF=(nF||BDFDB['ColorUtils']['getType'](nD))['toUpperCase']();nF=nF=='RGB'||nF=='HSL'||nF=='HEX'?nF+'A':nF;return BDFDB['ColorUtils']['convert'](nI,nF);}}return null;};BDFDB['ColorUtils']['getAlpha']=function(nJ){var nK=BDFDB['ColorUtils']['convert'](nJ,'RGBCOMP');if(nK){if(nK['length']==0x3)return 0x1;else if(nK['length']==0x4){let nL=nK[0x3]['toString']();nL=(nL['indexOf']('%')>-0x1?0.01:0x1)*parseFloat(nL['replace'](/[^0-9\.\-]/g,''));return isNaN(nL)||nL>0x1?0x1:nL<0x0?0x0:nL;}}return null;};BDFDB['ColorUtils']['change']=function(nM,nN,nO){nN=parseFloat(nN);if(nM!=null&&typeof nN=='number'&&!isNaN(nN)){if(BDFDB['ObjectUtils']['is'](nM)){var nP={};for(let nQ in nM)nP[nQ]=BDFDB['ColorUtils']['change'](nM[nQ],nN,nO);return nP;}else{var nR=BDFDB['ColorUtils']['convert'](nM,'RGBCOMP');if(nR){if(parseInt(nN)!==nN){nN=nN['toString']();nN=(nN['indexOf']('%')>-0x1?0.01:0x1)*parseFloat(nN['replace'](/[^0-9\.\-]/g,''));nN=isNaN(nN)?0x0:nN;return BDFDB['ColorUtils']['convert']([Math['round'](nR[0x0]*(0x1+nN)),Math['round'](nR[0x1]*(0x1+nN)),Math['round'](nR[0x2]*(0x1+nN))],nO||BDFDB['ColorUtils']['getType'](nM));}else return BDFDB['ColorUtils']['convert']([Math['round'](nR[0x0]+nN),Math['round'](nR[0x1]+nN),Math['round'](nR[0x2]+nN)],nO||BDFDB['ColorUtils']['getType'](nM));}}}return null;};BDFDB['ColorUtils']['invert']=function(nS,nT){if(BDFDB['ObjectUtils']['is'](nS)){var nU={};for(let nV in nS)nU[nV]=BDFDB['ColorUtils']['invert'](nS[nV],nT);return nU;}else{var nW=BDFDB['ColorUtils']['convert'](nS,'RGBCOMP');if(nW)return BDFDB['ColorUtils']['convert']([0xff-nW[0x0],0xff-nW[0x1],0xff-nW[0x2]],nT||BDFDB['ColorUtils']['getType'](nS));}return null;};BDFDB['ColorUtils']['compare']=function(nX,nY){if(nX&&nY){nX=BDFDB['ColorUtils']['convert'](nX,'RGBA');nY=BDFDB['ColorUtils']['convert'](nY,'RGBA');if(nX&&nY)return BDFDB['equals'](nX,nY);}return null;};BDFDB['ColorUtils']['isBright']=function(nZ,o0=0xa0){nZ=BDFDB['ColorUtils']['convert'](nZ,'RGBCOMP');if(!nZ)return![];return parseInt(o0)