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=>eJ['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(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(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;hk['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;hk['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,'');hk['fs']['writeFileSync'](hk['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':BDFDB['LanguageUtils']['LanguageStrings']['CHANGE_LOG'],'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'](ya['SettingsPanel'],{'key':af['name']+'-settingspanel','title':af['name'],'children':ag}),ah);return ah;};e['clearStartTimeout']=function(ai){if(!BDFDB['ObjectUtils']['is'](ai))return;BDFDB['TimeUtils']['clear'](ai['startTimeout'],ai['libLoadTimeout']);delete ai['startTimeout'];delete ai['libLoadTimeout'];};e['addOnSettingsClosedListener']=function(aj){if(BDFDB['ObjectUtils']['is'](aj)&&typeof aj['onSettingsClosed']==='function'){let ak=BDFDB['ModuleUtils']['findByName']('StandardSidebarView');if(ak)BDFDB['ModuleUtils']['patch'](aj,ak['prototype'],'componentWillUnmount',{'after':al=>{aj['onSettingsClosed']();}});}};e['addOnSwitchListener']=function(am){if(BDFDB['ObjectUtils']['is'](am)&&typeof am['onSwitch']==='function'){e['removeOnSwitchListener'](am);var an=document['querySelector'](BDFDB['dotCN']['guildswrapper']+'\x20~\x20*\x20>\x20'+BDFDB['dotCN']['chatspacer']);if(an){var ao=new MutationObserver(ap=>{ap['forEach'](aq=>{if(aq['target']&&BDFDB['DOMUtils']['containsClass'](aq['target'],BDFDB['disCN']['nochannel']))am['onSwitch']();});});var ar=an['querySelector'](BDFDB['dotCNC']['chat']+BDFDB['dotCN']['nochannel']);if(ar)ao['observe'](ar,{'attributes':!![]});am['onSwitchFix']=new MutationObserver(as=>{as['forEach'](at=>{if(at['addedNodes']){at['addedNodes']['forEach'](au=>{if(BDFDB['DOMUtils']['containsClass'](au,BDFDB['disCN']['chat'],BDFDB['disCN']['nochannel'],![]))ao['observe'](au,{'attributes':!![]});});}});});am['onSwitchFix']['observe'](an,{'childList':!![]});}}};e['removeOnSwitchListener']=function(av){if(BDFDB['ObjectUtils']['is'](av)&&typeof av['onSwitch']==='function'&&BDFDB['ObjectUtils']['is'](av['onSwitchFix'])){av['onSwitchFix']['disconnect']();delete av['onSwitchFix'];}};BDFDB['ObserverUtils']={};BDFDB['ObserverUtils']['connect']=function(aw,ax,ay,az={'childList':!![]}){if(!BDFDB['ObjectUtils']['is'](aw)||!ax||!ay)return;if(BDFDB['ObjectUtils']['isEmpty'](aw['observers']))aw['observers']={};if(!BDFDB['ArrayUtils']['is'](aw['observers'][ay['name']]))aw['observers'][ay['name']]=[];if(!ay['multi'])for(let aA of aw['observers'][ay['name']])aA['disconnect']();if(ay['instance'])aw['observers'][ay['name']]['push'](ay['instance']);var aB=aw['observers'][ay['name']][aw['observers'][ay['name']]['length']-0x1];if(aB){var aC=Node['prototype']['isPrototypeOf'](ax)?ax:typeof ax==='string'?document['querySelector'](ax):null;if(aC)aB['observe'](aC,az);}};BDFDB['ObserverUtils']['disconnect']=function(aD,aE){if(BDFDB['ObjectUtils']['is'](aD)&&!BDFDB['ObjectUtils']['isEmpty'](aD['observers'])){let aF=typeof aE=='string'?aE:BDFDB['ObjectUtils']['is'](aE)?aE['name']:null;if(!aF){for(let aE in aD['observers'])for(let aH of aD['observers'][aE])aH['disconnect']();delete aD['observers'];}else if(!BDFDB['ArrayUtils']['is'](aD['observers'][aF])){for(let aI of aD['observers'][aF])aI['disconnect']();delete aD['observers'][aF];}}};BDFDB['ListenerUtils']={};BDFDB['ListenerUtils']['add']=function(aJ,aK,aL,aM,aN){if(!BDFDB['ObjectUtils']['is'](aJ)||!Node['prototype']['isPrototypeOf'](aK)&&aK!==window||!aL)return;var aO=typeof aM=='function';var aP=aO?undefined:aM;var aQ=aO?aM:aN;if(typeof aQ!='function')return;BDFDB['ListenerUtils']['remove'](aJ,aK,aL,aP);for(var aR of aL['split']('\x20')){aR=aR['split']('.');var aS=aR['shift']()['toLowerCase']();if(!aS)return;var aT=aS;aS=aS=='mouseenter'||aS=='mouseleave'?'mouseover':aS;var aU=(aR['join']('.')||'')+aJ['name'];if(!BDFDB['ArrayUtils']['is'](aJ['listeners']))aJ['listeners']=[];var aV=null;if(aP){if(aT=='mouseenter'||aT=='mouseleave'){aV=aW=>{for(let aX of aW['path'])if(typeof aX['matches']=='function'&&aX['matches'](aP)&&!aX[aU+'BDFDB'+aT]){aX[aU+'BDFDB'+aT]=!![];if(aT=='mouseenter')aQ(BDFDB['ListenerUtils']['copyEvent'](aW,aX));let aY=aZ=>{if(aZ['target']['contains'](aX)||aZ['target']==aX||!aX['contains'](aZ['target'])){if(aT=='mouseleave')aQ(BDFDB['ListenerUtils']['copyEvent'](aW,aX));delete aX[aU+'BDFDB'+aT];document['removeEventListener']('mouseout',aY);}};document['addEventListener']('mouseout',aY);break;}};}else{aV=b0=>{for(let b1 of b0['path'])if(typeof b1['matches']=='function'&&b1['matches'](aP)){aQ(BDFDB['ListenerUtils']['copyEvent'](b0,b1));break;}};}}else aV=b2=>{aQ(BDFDB['ListenerUtils']['copyEvent'](b2,aK));};aJ['listeners']['push']({'ele':aK,'eventname':aS,'origeventname':aT,'namespace':aU,'selector':aP,'eventcallback':aV});aK['addEventListener'](aS,aV,!![]);}};BDFDB['ListenerUtils']['remove']=function(b3,b4,b5='',b6){if(!BDFDB['ObjectUtils']['is'](b3)||!BDFDB['ArrayUtils']['is'](b3['listeners']))return;if(Node['prototype']['isPrototypeOf'](b4)||b4===window){for(var b7 of b5['split']('\x20')){b7=b7['split']('.');var b8=b7['shift']()['toLowerCase']();var b9=(b7['join']('.')||'')+b3['name'];for(let ba of b3['listeners']){let bb=[];if(ba['ele']==b4&&(!b8||ba['origeventname']==b8)&&ba['namespace']==b9&&(b6===undefined||ba['selector']==b6)){b4['removeEventListener'](ba['eventname'],ba['eventcallback'],!![]);bb['push'](ba);}if(bb['length'])b3['listeners']=b3['listeners']['filter'](ba=>{return bb['indexOf'](ba)<0x0;});}}}else if(!b4){for(let bd of b3['listeners'])bd['ele']['removeEventListener'](bd['eventname'],bd['eventcallback'],!![]);b3['listeners']=[];}};BDFDB['ListenerUtils']['multiAdd']=function(be,bf,bg){if(!Node['prototype']['isPrototypeOf'](be)||!bf||typeof bg!='function')return;for(var bh of bf['trim']()['split']('\x20')['filter'](bi=>bi))be['addEventListener'](bh,bg,!![]);};BDFDB['ListenerUtils']['multiRemove']=function(bj,bk,bl){if(!Node['prototype']['isPrototypeOf'](bj)||!bk||typeof bl!='function')return;for(var bm of bk['trim']()['split']('\x20')['filter'](bn=>bn))bj['removeEventListener'](bm,bl,!![]);};BDFDB['ListenerUtils']['addToChildren']=function(bo,bp,bq,br){if(!Node['prototype']['isPrototypeOf'](bo)||!bp||!bq||!bq['trim']()||typeof br!='function')return;for(var bs of bp['trim']()['split']('\x20')['filter'](bt=>bt)){var bu=br;if(bs=='mouseenter'||bs=='mouseleave')bu=bv=>{if(bv['target']['matches'](bq))br(bv);};bo['querySelectorAll'](bq['trim']())['forEach'](bw=>{bw['addEventListener'](bs,bu,!![]);});}};BDFDB['ListenerUtils']['copyEvent']=function(bx,by){if(!bx||!bx['constructor']||!bx['type'])return bx;var bz=new bx['constructor'](bx['type'],bx);Object['defineProperty'](bz,'originalEvent',{'value':bx});Object['defineProperty'](bz,'which',{'value':bx['which']});Object['defineProperty'](bz,'keyCode',{'value':bx['keyCode']});Object['defineProperty'](bz,'path',{'value':bx['path']});Object['defineProperty'](bz,'relatedTarget',{'value':bx['relatedTarget']});Object['defineProperty'](bz,'srcElement',{'value':bx['srcElement']});Object['defineProperty'](bz,'target',{'value':bx['target']});Object['defineProperty'](bz,'toElement',{'value':bx['toElement']});if(by)Object['defineProperty'](bz,'currentTarget',{'value':by});return bz;};BDFDB['ListenerUtils']['stopEvent']=function(bA){if(BDFDB['ObjectUtils']['is'](bA)){if(typeof bA['preventDefault']=='function')bA['preventDefault']();if(typeof bA['stopPropagation']=='function')bA['stopPropagation']();if(typeof bA['stopImmediatePropagation']=='function')bA['stopImmediatePropagation']();if(BDFDB['ObjectUtils']['is'](bA['originalEvent'])){if(typeof bA['originalEvent']['preventDefault']=='function')bA['originalEvent']['preventDefault']();if(typeof bA['originalEvent']['stopPropagation']=='function')bA['originalEvent']['stopPropagation']();if(typeof bA['originalEvent']['stopImmediatePropagation']=='function')bA['originalEvent']['stopImmediatePropagation']();}}};var bB=[],bC={'queue':[],'running':![]};BDFDB['NotificationUtils']={};BDFDB['NotificationUtils']['toast']=function(bD,bE={}){var bF=document['querySelector']('.toasts,\x20.bd-toasts');if(!bF){var bG=document['querySelector'](BDFDB['dotCN']['channels']+'\x20+\x20div');var bH=bG?BDFDB['DOMUtils']['getRects'](bG):null;var bI=bG?bG['querySelector'](BDFDB['dotCN']['memberswrap']):null;var bJ=bH?bH['left']:0x136;var bK=bH?bI?bH['width']-BDFDB['DOMUtils']['getRects'](bI)['width']:bH['width']:window['outerWidth']-0x0;var bL=bG?bG['querySelector']('form'):null;var bM=bL?BDFDB['DOMUtils']['getRects'](bL)['height']:0x50;bF=BDFDB['DOMUtils']['create']('');(document['querySelector'](BDFDB['dotCN']['app'])||document['body'])['appendChild'](bF);}const {type='',icon=!![],timeout=0xbb8,html=![],selector='',nopointer=![],color=''}=bE;var bN=BDFDB['DOMUtils']['create'](''+(html===!![]?bD:BDFDB['StringUtils']['htmlEscape'](bD))+'
');if(type){BDFDB['DOMUtils']['addClass'](bN,'toast-'+type);if(icon)BDFDB['DOMUtils']['addClass'](bN,'icon');}else if(color){var bO=BDFDB['ColorUtils']['convert'](color,'RGB');if(bO)bN['style']['setProperty']('background-color',bO);}BDFDB['DOMUtils']['addClass'](bN,selector);bF['appendChild'](bN);bN['close']=c=>{if(document['contains'](bN)){BDFDB['DOMUtils']['addClass'](bN,'closing');bN['style']['setProperty']('pointer-events','none','important');BDFDB['TimeUtils']['timeout'](c=>{bN['remove']();if(!bF['querySelectorAll']('.toast,\x20.bd-toast')['length'])bF['remove']();},0xbb8);}};if(nopointer)bN['style']['setProperty']('pointer-events','none','important');else bN['addEventListener']('click',bN['close']);BDFDB['TimeUtils']['timeout'](c=>{bN['close']();},timeout>0x0?timeout:0x927c0);return bN;};BDFDB['NotificationUtils']['desktop']=function(bS,bT={}){var bU=c=>{bC['queue']['push']({'parsedcontent':bS,'parsedoptions':bT});bW();};var bW=c=>{if(!bC['running']){var bY=bC['queue']['shift']();if(bY)bZ(bY['parsedcontent'],bY['parsedoptions']);}};var bZ=(c0,c1)=>{bC['running']=!![];var c2=c1['silent'];c1['silent']=c1['silent']||c1['sound']?!![]:![];var c3=new Notification(c0,c1);var c4=new Audio();var c5=BDFDB['TimeUtils']['timeout'](c=>{c8();},c1['timeout']?c1['timeout']:0xbb8);if(typeof c1['click']=='function')c3['onclick']=c=>{BDFDB['TimeUtils']['clear'](c5);c8();c1['click']();};if(!c2&&c1['sound']){c4['src']=c1['sound'];c4['play']();}var c8=c=>{c4['pause']();c3['close']();bC['running']=![];BDFDB['TimeUtils']['timeout'](c=>{bW();},0x3e8);};};if(!('Notification'in window)){}else if(Notification['permission']==='granted')bU();else if(Notification['permission']!=='denied')Notification['requestPermission'](function(cb){if(cb==='granted')bU();});};BDFDB['NotificationUtils']['notice']=function(cc,cd={}){if(!cc)return;var ce=document['querySelector'](BDFDB['dotCN']['layers']);if(!ce)return;var cf=BDFDB['NumberUtils']['generateId'](bB);var cg=BDFDB['DOMUtils']['create']('');ce['parentElement']['insertBefore'](cg,ce);var ch=cg['querySelector']('.notice-message');if(cd['platform'])for(let ci of cd['platform']['split']('\x20'))if(xd['noticeicon'+ci]){let cj=BDFDB['DOMUtils']['create']('');BDFDB['DOMUtils']['addClass'](cj,BDFDB['disCN']['noticeplatformicon']);BDFDB['DOMUtils']['removeClass'](cj,BDFDB['disCN']['noticeicon']);cg['insertBefore'](cj,ch);}if(cd['customicon']){let ck=BDFDB['DOMUtils']['create'](cd['customicon']);let cj=BDFDB['DOMUtils']['create']('');if(ck['tagName']=='span'&&!ck['firstElementChild'])cj['style']['setProperty']('background','url('+cd['customicon']+')\x20center/cover\x20no-repeat');else cj['appendChild'](ck);BDFDB['DOMUtils']['addClass'](cj,BDFDB['disCN']['noticeplatformicon']);BDFDB['DOMUtils']['removeClass'](cj,BDFDB['disCN']['noticeicon']);cg['insertBefore'](cj,ch);}if(cd['btn']||cd['button'])cg['appendChild'](BDFDB['DOMUtils']['create'](''));if(cd['id'])cg['id']=cd['id']['split']('\x20')['join']('');if(cd['selector'])BDFDB['DOMUtils']['addClass'](cg,cd['selector']);if(cd['css'])BDFDB['DOMUtils']['appendLocalStyle']('BDFDBcustomnotificationbar'+cf,cd['css']);if(cd['style'])cg['style']=cd['style'];if(cd['html']===!![])ch['innerHTML']=cc;else{var cm=document['createElement']('a');var cn=[];for(let co of cc['split']('\x20')){var cp=BDFDB['StringUtils']['htmlEscape'](co);cm['href']=co;cn['push'](cm['host']&&cm['host']!==window['location']['host']?'':cp);}ch['innerHTML']=cn['join']('\x20');}var cq=null;if(cd['type']&&!document['querySelector'](BDFDB['dotCNS']['chatbase']+BDFDB['dotCN']['noticestreamer'])){if(cq=BDFDB['disCN']['notice'+cd['type']])BDFDB['DOMUtils']['addClass'](cg,cq);if(cd['type']=='premium'){var cr=cg['querySelector'](BDFDB['dotCN']['noticebutton']);if(cr)BDFDB['DOMUtils']['addClass'](cr,BDFDB['disCN']['noticepremiumaction']);BDFDB['DOMUtils']['addClass'](ch,BDFDB['disCN']['noticepremiumtext']);cg['insertBefore'](BDFDB['DOMUtils']['create'](''),ch);}}if(!cq){var cs=BDFDB['ColorUtils']['convert'](cd['color'],'RGBCOMP');if(cs){var ct=cs[0x0]>0xb4&&cs[0x1]>0xb4&&cs[0x2]>0xb4?'#000':'#FFF';var cu=BDFDB['ColorUtils']['convert'](cs,'HEX');var cv=cs[0x0]>0xb4&&cs[0x1]>0xb4&&cs[0x2]>0xb4?'brightness(0%)':'brightness(100%)';BDFDB['DOMUtils']['appendLocalStyle']('BDFDBcustomnotificationbarColorCorrection'+cf,'.BDFDB-notice.notice-'+cf+'{background-color:'+cu+'\x20!important;}.BDFDB-notice.notice-'+cf+'\x20.notice-message\x20{color:'+ct+'\x20!important;}.BDFDB-notice.notice-'+cf+'\x20'+BDFDB['dotCN']['noticebutton']+'\x20{color:'+ct+'\x20!important;border-color:'+BDFDB['ColorUtils']['setAlpha'](ct,0.25,'RGBA')+'\x20!important;}.BDFDB-notice.notice-'+cf+'\x20'+BDFDB['dotCN']['noticebutton']+':hover\x20{color:'+cu+'\x20!important;background-color:'+ct+'\x20!important;}.BDFDB-notice.notice-'+cf+'\x20'+BDFDB['dotCN']['noticedismiss']+'\x20{filter:'+cv+'\x20!important;}');}else BDFDB['DOMUtils']['addClass'](cg,BDFDB['disCN']['noticedefault']);}cg['style']['setProperty']('height','36px','important');cg['style']['setProperty']('min-width','70vw','important');cg['style']['setProperty']('left','unset','important');cg['style']['setProperty']('right','unset','important');let cw=(BDFDB['DOMUtils']['getWidth'](document['body']['firstElementChild'])-BDFDB['DOMUtils']['getWidth'](cg))/0x2;cg['style']['setProperty']('left',cw+'px','important');cg['style']['setProperty']('right',cw+'px','important');cg['style']['setProperty']('min-width','unset','important');cg['style']['setProperty']('width','unset','important');cg['style']['setProperty']('max-width','calc(100vw\x20-\x20'+cw*0x2+'px)','important');cg['querySelector'](BDFDB['dotCN']['noticedismiss'])['addEventListener']('click',c=>{cg['style']['setProperty']('overflow','hidden','important');cg['style']['setProperty']('height','0px','important');BDFDB['TimeUtils']['timeout'](c=>{BDFDB['ArrayUtils']['remove'](bB,cf);BDFDB['DOMUtils']['removeLocalStyle']('BDFDBcustomnotificationbar'+cf);BDFDB['DOMUtils']['removeLocalStyle']('BDFDBcustomnotificationbarColorCorrection'+cf);cg['remove']();},0x1f4);});return cg;};BDFDB['NotificationUtils']['alert']=function(cz,cA){if(typeof cz=='string'&&typeof cz=='string'&&window['BdApi']&&typeof BdApi['alert']=='function')BdApi['alert'](cz,cA);};var cB=[];BDFDB['TooltipUtils']={};BDFDB['TooltipUtils']['create']=function(cC,cD,cE={}){var cF=document['querySelector'](BDFDB['dotCN']['appmount']+'\x20>\x20*\x20>\x20'+BDFDB['dotCN']['itemlayercontainer']);if(!cF||typeof cD!='string'||!Node['prototype']['isPrototypeOf'](cC)||!document['contains'](cC))return null;var cG=document['querySelector']('.BDFDB-itemlayercontainer');if(!cG){cG=cF['cloneNode']();BDFDB['DOMUtils']['addClass'](cG,'BDFDB-itemlayercontainer');cF['parentElement']['insertBefore'](cG,cF['nextSibling']);}var cH=BDFDB['NumberUtils']['generateId'](cB);var cI=BDFDB['DOMUtils']['create']('');cG['appendChild'](cI);var cJ=cI['firstElementChild'];if(cE['id'])cJ['id']=cE['id']['split']('\x20')['join']('');if(cE['selector'])BDFDB['DOMUtils']['addClass'](cJ,cE['selector']);if(cE['style'])cJ['style']=cE['style'];if(cE['html']===!![])cJ['innerHTML']=cD;else cJ['innerText']=cD;if(!cE['type']||!BDFDB['disCN']['tooltip'+cE['type']['toLowerCase']()])cE['type']='top';BDFDB['DOMUtils']['addClass'](cJ,BDFDB['disCN']['tooltip'+cE['type']['toLowerCase']()]);cJ['position']=cE['type']['toLowerCase']();cJ['appendChild'](BDFDB['DOMUtils']['create'](''));if(cJ['style']['getPropertyValue']('border-color')&&(cJ['style']['getPropertyValue']('background-color')||cJ['style']['getPropertyValue']('background-image')))BDFDB['DOMUtils']['addClass'](cJ,'tooltip-customcolor');else if(cE['color']&&BDFDB['disCN']['tooltip'+cE['color']['toLowerCase']()])BDFDB['DOMUtils']['addClass'](cJ,BDFDB['disCN']['tooltip'+cE['color']['toLowerCase']()]);else BDFDB['DOMUtils']['addClass'](cJ,BDFDB['disCN']['tooltipblack']);cJ['anker']=cC;if(cE['hide'])BDFDB['DOMUtils']['appendLocalStyle']('BDFDBhideOtherTooltips'+cH,'#app-mount\x20'+BDFDB['dotCN']['tooltip']+':not(.BDFDB-tooltip-'+cH+')\x20{display:\x20none\x20!important;}',cG);var cK=c=>{BDFDB['DOMUtils']['remove'](cI);};cC['addEventListener']('mouseleave',cK);var cM=new MutationObserver(cN=>{cN['forEach'](cO=>{var cP=Array['from'](cO['removedNodes']);var cQ=cP['indexOf'](cI)>-0x1;var cR=cP['indexOf'](cC)>-0x1;var cS=cP['some'](cT=>cT['contains'](cC));if(cQ||cR||cS){BDFDB['ArrayUtils']['remove'](cB,cH);cM['disconnect']();BDFDB['DOMUtils']['remove'](cI);BDFDB['DOMUtils']['removeLocalStyle']('BDFDBhideOtherTooltips'+cH,cG);BDFDB['DOMUtils']['removeLocalStyle']('BDFDBcustomTooltips'+cH,cG);if(!cG['firstElementChild'])BDFDB['DOMUtils']['remove'](cG);cC['removeEventListener']('mouseleave',cK);}});});cM['observe'](document['body'],{'subtree':!![],'childList':!![]});BDFDB['TooltipUtils']['update'](cJ);if(cE['delay']){BDFDB['DOMUtils']['toggle'](cI);BDFDB['TimeUtils']['timeout'](c=>{BDFDB['DOMUtils']['toggle'](cI);},cE['delay']);}return cI;};BDFDB['TooltipUtils']['update']=function(cV){if(!Node['prototype']['isPrototypeOf'](cV))return;let cW=BDFDB['DOMUtils']['getParent'](BDFDB['dotCN']['itemlayer'],cV);if(!Node['prototype']['isPrototypeOf'](cW))return;cV=cW['querySelector'](BDFDB['dotCN']['tooltip']);if(!Node['prototype']['isPrototypeOf'](cV)||!Node['prototype']['isPrototypeOf'](cV['anker'])||!cV['position'])return;var cX=cV['querySelector'](BDFDB['dotCN']['tooltippointer']);var cY,cZ,d0=BDFDB['DOMUtils']['getRects'](cV['anker']),d1=BDFDB['DOMUtils']['getRects'](cW),d2=BDFDB['DOMUtils']['getRects'](document['querySelector'](BDFDB['dotCN']['appmount'])),d3={'height':0xa,'width':0xa};switch(cV['position']){case'top':cZ=d0['top']-d1['height']-d3['height']+0x2;cY=d0['left']+(d0['width']-d1['width'])/0x2;break;case'bottom':cZ=d0['top']+d0['height']+d3['height']-0x2;cY=d0['left']+(d0['width']-d1['width'])/0x2;break;case'left':cZ=d0['top']+(d0['height']-d1['height'])/0x2;cY=d0['left']-d1['width']-d3['width']+0x2;break;case'right':cZ=d0['top']+(d0['height']-d1['height'])/0x2;cY=d0['left']+d0['width']+d3['width']-0x2;break;}cW['style']['setProperty']('top',cZ+'px');cW['style']['setProperty']('left',cY+'px');cX['style']['removeProperty']('margin-left');cX['style']['removeProperty']('margin-top');if(cV['position']=='top'||cV['position']=='bottom'){if(cY<0x0){cW['style']['setProperty']('left','5px');cX['style']['setProperty']('margin-left',cY-0xa+'px');}else{var d4=d2['width']-(cY+d1['width']);if(d4<0x0){cW['style']['setProperty']('left',d2['width']-d1['width']-0x5+'px');cX['style']['setProperty']('margin-left',-0x1*d4+'px');}}}else if(cV['position']=='left'||cV['position']=='right'){if(cZ<0x0){cW['style']['setProperty']('top','5px');cX['style']['setProperty']('margin-top',cZ-0xa+'px');}else{var d5=d2['height']-(cZ+d1['height']);if(d5<0x0){cW['style']['setProperty']('top',d2['height']-d1['height']-0x5+'px');cX['style']['setProperty']('margin-top',-0x1*d5+'px');}}}};BDFDB['ObjectUtils']={};BDFDB['ObjectUtils']['is']=function(d6){return d6&&Object['prototype']['isPrototypeOf'](d6)&&!Array['prototype']['isPrototypeOf'](d6);};BDFDB['ObjectUtils']['extract']=function(d7,...d8){let d9={};if(BDFDB['ObjectUtils']['is'](d7))for(let da of d8['flat']()['filter'](db=>db))if(d7[da])d9[da]=d7[da];return d9;};BDFDB['ObjectUtils']['exclude']=function(dc,...dd){let de=Object['assign']({},dc);BDFDB['ObjectUtils']['delete'](de,...dd);return de;};BDFDB['ObjectUtils']['delete']=function(df,...dg){if(BDFDB['ObjectUtils']['is'](df))for(let dh of dg['flat']()['filter'](di=>di))delete df[dh];};BDFDB['ObjectUtils']['sort']=function(dj,dk,dl){if(!BDFDB['ObjectUtils']['is'](dj))return{};var dm={};if(dk===undefined||!dk)for(let dn of Object['keys'](dj)['sort']())dm[dn]=dj[dn];else{let dp=[];for(let dn in dj)dp['push'](dj[dn]);dp=BDFDB['ArrayUtils']['keySort'](dp,dk,dl);for(let dr of dp)for(let dn in dj)if(BDFDB['equals'](dr,dj[dn])){dm[dn]=dr;break;}}return dm;};BDFDB['ObjectUtils']['reverse']=function(dt,du){if(!BDFDB['ObjectUtils']['is'](dt))return{};var dv={};for(let dw of du===undefined||!du?Object['keys'](dt)['reverse']():Object['keys'](dt)['sort']()['reverse']())dv[dw]=dt[dw];return dv;};BDFDB['ObjectUtils']['filter']=function(dx,dy,dz=![]){if(!BDFDB['ObjectUtils']['is'](dx))return{};if(typeof dy!='function')return dx;return Object['keys'](dx)['filter'](dA=>dy(dz?dA:dx[dA]))['reduce']((dB,dC)=>(dB[dC]=dx[dC],dB),{});};BDFDB['ObjectUtils']['push']=function(dD,dE){if(BDFDB['ObjectUtils']['is'](dD))dD[Object['keys'](dD)['length']]=dE;};BDFDB['ObjectUtils']['pop']=function(dF,dG){if(BDFDB['ObjectUtils']['is'](dF)){let dH=Object['keys'](dF);if(!dH['length'])return;let dG=dF[dH[dH['length']-0x1]];delete dF[dH[dH['length']-0x1]];return dG;}};BDFDB['ObjectUtils']['map']=function(dJ,dK){if(!BDFDB['ObjectUtils']['is'](dJ))return{};if(typeof dK!='string'&&typeof dK!='function')return dJ;var dL={};for(let dM in dJ)if(BDFDB['ObjectUtils']['is'](dJ[dM]))dL[dM]=typeof dK=='string'?dJ[dM][dK]:dK(dJ[dM],dM);return dL;};BDFDB['ObjectUtils']['toArray']=function(dN){if(!BDFDB['ObjectUtils']['is'](dN))return[];return Object['entries'](dN)['map'](dO=>dO[0x1]);};BDFDB['ObjectUtils']['deepAssign']=function(dP,...dQ){if(!dQ['length'])return dP;var dR=dQ['shift']();if(BDFDB['ObjectUtils']['is'](dP)&&BDFDB['ObjectUtils']['is'](dR)){for(var dS in dR){if(BDFDB['ObjectUtils']['is'](dR[dS])){if(!dP[dS])Object['assign'](dP,{[dS]:{}});BDFDB['ObjectUtils']['deepAssign'](dP[dS],dR[dS]);}else Object['assign'](dP,{[dS]:dR[dS]});}}return BDFDB['ObjectUtils']['deepAssign'](dP,...dQ);};BDFDB['ObjectUtils']['isEmpty']=function(dT){return!BDFDB['ObjectUtils']['is'](dT)||Object['getOwnPropertyNames'](dT)['length']==0x0;};BDFDB['ArrayUtils']={};BDFDB['ArrayUtils']['is']=function(dU){return dU&&Array['isArray'](dU);};BDFDB['ArrayUtils']['keySort']=function(dV,dW,dX){if(!BDFDB['ArrayUtils']['is'](dV))return[];if(dW==null)return dV;if(dX===undefined)dX=null;return dV['sort'](function(dY,dZ){var e0=dY[dW],e1=dZ[dW];if(e0!==dX)return e0e1?0x1:0x0;});};BDFDB['ArrayUtils']['numSort']=function(e2){return e2['sort'](function(e3,e4){return e3e4?0x1:0x0;});};BDFDB['ArrayUtils']['remove']=function(e5,e6,e7=![]){if(!BDFDB['ArrayUtils']['is'](e5))return[];if(!e5['includes'](e6))return e5;if(!e7)e5['splice'](e5['indexOf'](e6),0x1);else while(e5['indexOf'](e6)>-0x1)e5['splice'](e5['indexOf'](e6),0x1);return e5;};BDFDB['ArrayUtils']['getAllIndexes']=function(e8,e9){if(!BDFDB['ArrayUtils']['is'](e8)&&typeof e8!='string')return[];var ea=[],eb=-0x1;while((eb=e8['indexOf'](e9,eb+0x1))!==-0x1)ea['push'](eb);return ea;};BDFDB['ArrayUtils']['removeCopies']=function(ec){if(!BDFDB['ArrayUtils']['is'](ec))return[];return[...new Set(ec)];};BDFDB['ModuleUtils']={};BDFDB['ModuleUtils']['cached']={};BDFDB['ModuleUtils']['find']=function(ed){var ee=e['getWebModuleReq']();for(let ef in ee['c'])if(ee['c']['hasOwnProperty'](ef)){var eg=ee['c'][ef]['exports'];if(eg&&(typeof eg=='object'||typeof eg=='function')&&ed(eg))return eg;if(eg&&eg['__esModule'])for(let eh in eg)if(eg[eh]&&(typeof eg[eh]=='object'||typeof eg[eh]=='function')&&ed(eg[eh]))return eg[eh];}};BDFDB['ModuleUtils']['findByProperties']=function(ei){ei=BDFDB['ArrayUtils']['is'](ei)?ei:Array['from'](arguments);var ej=JSON['stringify'](ei);if(!BDFDB['ObjectUtils']['is'](BDFDB['ModuleUtils']['cached']['prop']))BDFDB['ModuleUtils']['cached']['prop']={};if(BDFDB['ModuleUtils']['cached']['prop'][ej])return BDFDB['ModuleUtils']['cached']['prop'][ej];else{var ek=BDFDB['ModuleUtils']['find'](ek=>ei['every'](em=>ek[em]!==undefined));if(ek){BDFDB['ModuleUtils']['cached']['prop'][ej]=ek;return ek;}else BDFDB['LogUtils']['warn'](ej+'\x20[properties]\x20not\x20found\x20in\x20WebModules');}};BDFDB['ModuleUtils']['findByName']=function(en){var eo=JSON['stringify'](en);if(!BDFDB['ObjectUtils']['is'](BDFDB['ModuleUtils']['cached']['name']))BDFDB['ModuleUtils']['cached']['name']={};if(BDFDB['ModuleUtils']['cached']['name'][eo])return BDFDB['ModuleUtils']['cached']['name'][eo];else{var ep=BDFDB['ModuleUtils']['find'](ep=>ep['displayName']===en);if(ep){BDFDB['ModuleUtils']['cached']['name'][eo]=ep;return ep;}else BDFDB['LogUtils']['warn'](eo+'\x20[name]\x20not\x20found\x20in\x20WebModules');}};BDFDB['ModuleUtils']['findByString']=function(er){er=BDFDB['ArrayUtils']['is'](er)?er:Array['from'](arguments);var es=JSON['stringify'](er);if(!BDFDB['ObjectUtils']['is'](BDFDB['ModuleUtils']['cached']['string']))BDFDB['ModuleUtils']['cached']['string']={};if(BDFDB['ModuleUtils']['cached']['string'][es])return BDFDB['ModuleUtils']['cached']['string'][es];else{var et=BDFDB['ModuleUtils']['find'](et=>er['every'](ev=>typeof et=='function'&&et['toString']()['indexOf'](ev)>-0x1));if(et){BDFDB['ModuleUtils']['cached']['string'][es]=et;return et;}else BDFDB['LogUtils']['warn'](es+'\x20[string]\x20not\x20found\x20in\x20WebModules');}};BDFDB['ModuleUtils']['findByPrototypes']=function(ew){ew=BDFDB['ArrayUtils']['is'](ew)?ew:Array['from'](arguments);var ex=JSON['stringify'](ew);if(!BDFDB['ObjectUtils']['is'](BDFDB['ModuleUtils']['cached']['proto']))BDFDB['ModuleUtils']['cached']['proto']={};if(BDFDB['ModuleUtils']['cached']['proto'][ex])return BDFDB['ModuleUtils']['cached']['proto'][ex];else{var ey=BDFDB['ModuleUtils']['find'](ey=>ey['prototype']&&ew['every'](eA=>ey['prototype'][eA]!==undefined));if(ey){BDFDB['ModuleUtils']['cached']['proto'][ex]=ey;return ey;}else BDFDB['LogUtils']['warn'](ex+'\x20[prototypes]\x20not\x20found\x20in\x20WebModules');}};e['getWebModuleReq']=function(){if(!e['getWebModuleReq']['req']){const eB='BDFDB-WebModules';const eC=typeof window['webpackJsonp']=='function'?window['webpackJsonp']([],{[eB]:(eD,eE,eC)=>eE['default']=eC},[eB])['default']:window['webpackJsonp']['push']([[],{[eB]:(eG,eH,eC)=>eG['exports']=eC},[[eB]]]);delete eC['m'][eB];delete eC['c'][eB];e['getWebModuleReq']['req']=eC;}return e['getWebModuleReq']['req'];};var eJ={};eJ['Patchtypes']=['before','instead','after'];eJ['Patchmap']={'BannedCard':'BannedUser','InvitationCard':'InviteRow','InviteCard':'InviteRow','PopoutContainer':'Popout','MemberCard':'Member','WebhookCard':'Webhook'};eJ['Patchfinder']={'Account':'accountinfo','App':'app','AuthWrapper':'loginscreen','BannedCard':'guildsettingsbannedcard','ChannelMember':'member','EmojiPicker':'emojipicker','FriendRow':'friendsrow','Guild':'guildouter','InstantInviteModal':'invitemodalwrapper','InvitationCard':'invitemodalinviterow','InviteCard':'guildsettingsinvitecard','PopoutContainer':'popout','PrivateChannelCall':'callcurrentcontainer','MemberCard':'guildsettingsmembercard','NameTag':'nametag','Note':'usernote','SearchResults':'searchresultswrap','TypingUsers':'typing','UserPopout':'userpopout','V2C_ContentColumn':'contentcolumn','V2C_List':'_repolist','V2C_PluginCard':'_repoheader','V2C_ThemeCard':'_repoheader'};eJ['GlobalModules']={};try{eJ['GlobalModules']['V2C_ContentColumn']=V2C_ContentColumn;}catch(eK){BDFDB['LogUtils']['warn']('Could\x20not\x20find\x20global\x20Module\x20\x22V2C_ContentColumn\x22');}try{eJ['GlobalModules']['V2C_List']=V2C_List;}catch(eL){BDFDB['LogUtils']['warn']('Could\x20not\x20find\x20global\x20Module\x20\x22V2C_List\x22');}try{eJ['GlobalModules']['V2C_PluginCard']=V2C_PluginCard;}catch(eM){BDFDB['LogUtils']['warn']('Could\x20not\x20find\x20global\x20Module\x20\x22V2C_PluginCard\x22');}try{eJ['GlobalModules']['V2C_ThemeCard']=V2C_ThemeCard;}catch(eN){BDFDB['LogUtils']['warn']('Could\x20not\x20find\x20global\x20Module\x20\x22V2C_ThemeCard\x22');}BDFDB['ModuleUtils']['patch']=function(eO,eP,eQ,eR){if(!eO||!eP||!eQ||!BDFDB['ObjectUtils']['is'](eR))return null;eR=BDFDB['ObjectUtils']['filter'](eR,eS=>eJ['Patchtypes']['includes'](eS),!![]);if(BDFDB['ObjectUtils']['isEmpty'](eR))return;const eT=typeof eO==='string'?eO:eO['name'];const eU=eT['toLowerCase']();if(!eP['BDFDBpatch'])eP['BDFDBpatch']={};eQ=[eQ]['flat']()['filter'](eV=>eV);for(let eW of eQ){if(!eP[eW])eP[eW]=c=>{};const eY=eP[eW];if(!eP['BDFDBpatch'][eW]){eP['BDFDBpatch'][eW]={};for(let eZ of eJ['Patchtypes'])eP['BDFDBpatch'][eW][eZ]={};eP['BDFDBpatch'][eW]['originalMethod']=eY;eP[eW]=function(){const f0={'thisObject':this,'methodArguments':arguments,'originalMethod':eY,'originalMethodName':eW,'callOriginalMethod':c=>f0['returnValue']=f0['originalMethod']['apply'](f0['thisObject'],f0['methodArguments'])};if(window['BDFDB']&&typeof BDFDB==='object'&&BDFDB['loaded']&&eP['BDFDBpatch'][eW]){if(!BDFDB['ObjectUtils']['isEmpty'](eP['BDFDBpatch'][eW]['before']))for(let f2 in BDFDB['ObjectUtils']['sort'](eP['BDFDBpatch'][eW]['before'])){BDFDB['TimeUtils']['suppress'](eP['BDFDBpatch'][eW]['before'][f2],'\x22before\x22\x20callback\x20of\x20'+eW+'\x20in\x20'+(eP['constructor']?eP['constructor']['displayName']||eP['constructor']['name']:'module'),eP['BDFDBpatch'][eW]['before'][f2]['pluginname'])(f0);}if(BDFDB['ObjectUtils']['isEmpty'](eP['BDFDBpatch'][eW]['instead']))BDFDB['TimeUtils']['suppress'](f0['callOriginalMethod'],'originalMethod\x20of\x20'+eW+'\x20in\x20'+(eP['constructor']?eP['constructor']['displayName']||eP['constructor']['name']:'module'))();else for(let f3 in BDFDB['ObjectUtils']['sort'](eP['BDFDBpatch'][eW]['instead'])){let f4=BDFDB['TimeUtils']['suppress'](eP['BDFDBpatch'][eW]['instead'][f3],'\x22instead\x22\x20callback\x20of\x20'+eW+'\x20in\x20'+(eP['constructor']?eP['constructor']['displayName']||eP['constructor']['name']:'module'),eP['BDFDBpatch'][eW]['instead'][f3]['pluginname'])(f0);if(f4!==undefined)f0['returnValue']=f4;}if(!BDFDB['ObjectUtils']['isEmpty'](eP['BDFDBpatch'][eW]['after']))for(let f5 in BDFDB['ObjectUtils']['sort'](eP['BDFDBpatch'][eW]['after'])){let f4=BDFDB['TimeUtils']['suppress'](eP['BDFDBpatch'][eW]['after'][f5],'\x22after\x22\x20callback\x20of\x20'+eW+'\x20in\x20'+(eP['constructor']?eP['constructor']['displayName']||eP['constructor']['name']:'module'),eP['BDFDBpatch'][eW]['after'][f5]['pluginname'])(f0);if(f4!==undefined)f0['returnValue']=f4;}}else BDFDB['TimeUtils']['suppress'](f0['callOriginalMethod'],'originalMethod\x20of\x20'+eW+'\x20in\x20'+(eP['constructor']?eP['constructor']['displayName']||eP['constructor']['name']:'module'))();return eW=='render'&&f0['returnValue']===undefined?null:f0['returnValue'];};}for(let f7 in eR)if(typeof eR[f7]=='function'){eP['BDFDBpatch'][eW][f7][eU]=eR[f7];eP['BDFDBpatch'][eW][f7][eU]['pluginname']=eT;}}let f8=c=>{BDFDB['ModuleUtils']['unpatch'](eO,eP,eQ);};if(eO&&typeof eO=='object'){if(!BDFDB['ArrayUtils']['is'](eO['patchCancels']))eO['patchCancels']=[];eO['patchCancels']['push'](f8);}return f8;};BDFDB['ModuleUtils']['unpatch']=function(fa,fb,fc){if(!fb&&!fc){if(BDFDB['ObjectUtils']['is'](fa)&&BDFDB['ArrayUtils']['is'](fa['patchCancels'])){for(let fd of fa['patchCancels'])fd();fa['patchCancels']=[];}}else{if(!BDFDB['ObjectUtils']['is'](fb)||!fb['BDFDBpatch'])return;const fe=!fa?null:(typeof fa==='string'?fa:fa['name'])['toLowerCase']();if(fc){for(let ff of[fc]['flat']()['filter'](fg=>fg))if(fb[ff]&&fb['BDFDBpatch'][ff])fi(ff,fe);}else for(let fh of fb['BDFDBpatch'])fi(fh,fe);}function fi(fj,fk){for(let fl of eJ['Patchtypes']){if(fk)delete fb['BDFDBpatch'][fj][fl][fk];else delete fb['BDFDBpatch'][fj][fl];}var fm=!![];for(let fl of eJ['Patchtypes'])if(!BDFDB['ObjectUtils']['isEmpty'](fb['BDFDBpatch'][fj][fl]))fm=![];if(fm){fb[fj]=fb['BDFDBpatch'][fj]['originalMethod'];delete fb['BDFDBpatch'][fj];if(BDFDB['ObjectUtils']['isEmpty'](fb['BDFDBpatch']))delete fb['BDFDBpatch'];}}};BDFDB['ModuleUtils']['forceAllUpdates']=function(fo,fp){if(BDFDB['ObjectUtils']['is'](fo)&&BDFDB['ObjectUtils']['is'](fo['patchedModules'])){const fq=document['querySelector'](BDFDB['dotCN']['app']);const fr=document['querySelector']('#bd-settingspane-container\x20'+BDFDB['dotCN']['scrollerwrap']);if(fq){let fs=[],ft={};for(let fu in fo['patchedModules'])for(let fv in fo['patchedModules'][fu]){let fw=[fo['patchedModules'][fu][fv]]['flat']()['filter'](fx=>fx);if(fw['includes']('componentDidMount')||fw['includes']('componentDidUpdate')||fw['includes']('render')){fs['push'](fv);let fy=fv['split']('\x20_\x20_\x20')[0x0];if(!ft[fy])ft[fy]=[];ft[fy]['push'](fu);}}fp=[fp]['flat']()['filter'](fz=>fz);if(fp['length']){fp=fp['map'](fA=>fA&&eJ['Patchmap'][fA]?eJ['Patchmap'][fA]+'\x20_\x20_\x20'+fA:fA);fs=fs['filter'](fB=>fp['indexOf'](fB)>-0x1);}fs=BDFDB['ArrayUtils']['removeCopies'](fs);if(fs['length']){try{const fC=BDFDB['ReactUtils']['findOwner'](fq,{'name':fs,'all':!![],'noCopies':!![],'group':!![],'unlimited':!![]});const fD=BDFDB['ReactUtils']['findOwner'](fq,{'name':fs,'all':!![],'noCopies':!![],'group':!![],'unlimited':!![],'up':!![]});for(let fv in fC)for(let fF of fC[fv])e['forceInitiateProcess'](fo,fF,fv,ft[fv]);for(let fv in fD)for(let fF of fD[fv])e['forceInitiateProcess'](fo,fF,fv,ft[fv]);if(fr){const fI=BDFDB['ReactUtils']['findOwner'](fr,{'name':fs,'all':!![],'noCopies':!![],'group':!![],'unlimited':!![]});for(let fv in fI)for(let fF of fI[fv])e['forceInitiateProcess'](fo,fF,fv,ft[fv]);}}catch(fL){BDFDB['LogUtils']['error']('Could\x20not\x20force\x20update\x20components!\x20'+fL,fo['name']);}}}}};e['forceInitiateProcess']=function(fM,fN,fO,fP){if(!fM||!fN||!fO)return;let fQ=[];for(let fR in fM['patchedModules'])if(fM['patchedModules'][fR][fO])fQ['push'](fM['patchedModules'][fR][fO]);fQ=BDFDB['ArrayUtils']['removeCopies'](fQ)['flat']()['filter'](fS=>fS);if(fQ['includes']('componentDidMount'))e['initiateProcess'](fM,fO,{'instance':fN,'methodname':'componentDidMount','patchtypes':fP});if(fQ['includes']('render'))BDFDB['ReactUtils']['forceUpdate'](fN);else if(fQ['includes']('componentDidUpdate'))e['initiateProcess'](fM,fO,{'instance':fN,'methodname':'componentDidUpdate','patchtypes':fP});};e['initiateProcess']=function(fT,fU,fV){if(BDFDB['ObjectUtils']['is'](fT)&&!fT['stopping']&&fV['instance']){let fW=fT['name']=='$BDFDB';if(fT['name']=='$BDFDB')fT=Bf;fU=(fU['split']('\x20_\x20_\x20')[0x1]||fU)['replace'](/[^A-z0-9]|_/g,'');fU=fU['charAt'](0x0)['toUpperCase']()+fU['slice'](0x1);if(typeof fT['process'+fU]=='function'){let fX=!fW&&fT['process'+fU]['toString']()['split']('\x0a')[0x0]['replace'](/ /g,'')['split'](',')['length']>0x1;if(fX){if(fV['methodname']=='render'){if(fV['returnvalue'])fT['process'+fU](fV['instance'],null,fV['returnvalue'],[fV['methodname']]);}else{let fY=BDFDB['ReactUtils']['findDOMNode'](fV['instance']);if(fY)fT['process'+fU](fV['instance'],fY,fV['returnvalue'],[fV['methodname']]);else BDFDB['TimeUtils']['timeout'](c=>{fY=BDFDB['ReactUtils']['findDOMNode'](fV['instance']);if(fY)fT['process'+fU](fV['instance'],fY,fV['returnvalue'],[fV['methodname']]);});}}else{if(fV['methodname']=='render'){if(fV['returnvalue']||fV['patchtypes']['includes']('before'))fT['process'+fU](fV);}else{fV['node']=BDFDB['ReactUtils']['findDOMNode'](fV['instance']);if(fV['node'])fT['process'+fU](fV);else BDFDB['TimeUtils']['timeout'](c=>{fV['node']=BDFDB['ReactUtils']['findDOMNode'](fV['instance']);if(fV['node'])fT['process'+fU](fV);});}}}}};e['patchPlugin']=function(g1){if(!BDFDB['ObjectUtils']['is'](g1)||!BDFDB['ObjectUtils']['is'](g1['patchedModules']))return;BDFDB['ModuleUtils']['unpatch'](g1);for(let g2 in g1['patchedModules'])for(let g3 in g1['patchedModules'][g2]){if(eJ['GlobalModules'][g3]&&typeof eJ['GlobalModules'][g3]=='function')g7(eJ['GlobalModules'][g3],g3,g2);else{var g4=eJ['Patchmap'][g3];var g5=eJ['Patchfinder'][g3['split']('\x20_\x20_\x20')[0x1]||g3];var g6=g4?g4+'\x20_\x20_\x20'+g3:g3;if(g4){g1['patchedModules'][g2][g6]=g1['patchedModules'][g2][g3];delete g1['patchedModules'][g2][g3];}if(!g5)g7(BDFDB['ModuleUtils']['findByName'](g6['split']('\x20_\x20_\x20')[0x0]),g6,g2);else if(xd[g5])ge(g5,g6,g2);}}function g7(g8,g3,g2){if(g8){var gb=g3['split']('\x20_\x20_\x20')[0x0];g8=g8['_reactInternalFiber']&&g8['_reactInternalFiber']['type']?g8['_reactInternalFiber']['type']:g8;g8=g8['displayName']==gb||g8['name']==gb?g8:BDFDB['ReactUtils']['findOwner'](g8,{'name':gb,'up':!![]});if(g8){g8=g8['_reactInternalFiber']&&g8['_reactInternalFiber']['type']?g8['_reactInternalFiber']['type']:g8;let gc={};gc[g2]=gd=>{if(window['BDFDB']&&typeof BDFDB==='object'&&BDFDB['loaded'])e['initiateProcess'](g1,g3,{'instance':gd['thisObject'],'returnvalue':gd['returnValue'],'methodname':gd['originalMethodName'],'patchtypes':[g2]});};BDFDB['ModuleUtils']['patch'](g1,g8['prototype'],g1['patchedModules'][g2][g3],gc);}}}function ge(g5,g3,g2){const gi=document['querySelector'](BDFDB['dotCN']['app']),gj=document['querySelector']('#bd-settingspane-container\x20'+BDFDB['dotCN']['scrollerwrap']);var gk=![];if(gi){var gl=BDFDB['ReactUtils']['findOwner'](gi,{'name':g3,'unlimited':!![]})||BDFDB['ReactUtils']['findOwner'](gi,{'name':g3,'unlimited':!![],'up':!![]});if(gl){gk=!![];g7(gl,g3,g2);}}if(!gk&&gj){var gm=BDFDB['ReactUtils']['findOwner'](gj,{'name':g3,'unlimited':!![]});if(gm){gk=!![];g7(gm,g3,g2);}}if(!gk){var gn=![],go=new MutationObserver(gp=>{gp['forEach'](gq=>{gq['addedNodes']['forEach'](gr=>{if(gn||!gr||!gr['tagName'])return;var gs=null;if((gs=BDFDB['DOMUtils']['containsClass'](gr,BDFDB['disCN'][g5])?gr:gr['querySelector'](BDFDB['dotCN'][g5]))!=null){var gt=BDFDB['ReactUtils']['getInstance'](gs);if(gu(gt,g3)){gn=!![];go['disconnect']();g7(gt,g3,g2);BDFDB['ModuleUtils']['forceAllUpdates'](g1,g3);}}});});});BDFDB['ObserverUtils']['connect'](g1,BDFDB['dotCN']['appmount'],{'name':'checkForInstanceObserver','instance':go,'multi':!![]},{'childList':!![],'subtree':!![]});}}function gu(gv,gw){if(!gv)return![];gv=gv['_reactInternalFiber']&&gv['_reactInternalFiber']['type']?gv['_reactInternalFiber']['type']:gv;gv=gv['displayName']==gw||gv['name']==gw?gv:BDFDB['ReactUtils']['findOwner'](gv,{'name':gw,'up':!![]});return!!gv;}};var gx=['ChannelContextMenu','DeveloperContextMenu','GuildContextMenu','GuildRoleContextMenu','MessageContextMenu','NativeContextMenu','ScreenshareContextMenu','UserContextMenu','UserSettingsCogContextMenu'];var gy=['MessageOptionPopout'];var gz=['ApplicationContextMenu','GroupDMContextMenu'];var gA={};for(let gB of gz)gA[gB]={'query':[],'module':null};e['addContextListeners']=gC=>{if(!BDFDB['ObjectUtils']['is'](gC))return;for(let gD of gx)if(typeof gC['on'+gD]==='function')e['patchContextMenuPlugin'](gC,gD,BDFDB['ModuleUtils']['findByName'](gD));for(let gE of gy)if(typeof gC['on'+gE]==='function')e['patchPopoutPlugin'](gC,gE,BDFDB['ModuleUtils']['findByName'](gE));for(let gF of gz)if(typeof gC['on'+gF]==='function'){if(gA[gF]['module'])e['patchContextMenuPlugin'](gC,gF,gA[gF]['module']);else gA[gF]['query']['push'](gC);}};e['patchContextMenuPlugin']=(gG,gH,gI)=>{if(gI&&gI['prototype']){let gJ=gG['on'+gH]['toString']()['split']('\x0a')[0x0]['replace'](/ /g,'')['split'](',')['length']>0x1;if(gJ){BDFDB['ModuleUtils']['patch'](gG,gI['prototype'],'render',{'after':gK=>{let gL=gK['thisObject'],gM=BDFDB['ReactUtils']['findDOMNode'](gK['thisObject']),gN=gK['returnValue'];if(gL&&gM&&gN&&typeof gG['on'+gH]==='function')gG['on'+gH](gL,gM,gN);}});}else{BDFDB['ModuleUtils']['patch'](gG,gI['prototype'],'render',{'after':gO=>{if(gO['thisObject']&&gO['returnValue']&&typeof gG['on'+gH]==='function')gG['on'+gH]({'instance':gO['thisObject'],'returnvalue':gO['returnValue'],'methodname':'render'});}});}}};e['patchPopoutPlugin']=(gP,gQ,gR)=>{if(gR&&gR['prototype']){let gS=gP['on'+gQ]['toString']()['split']('\x0a')[0x0]['replace'](/ /g,'')['split'](',')['length']>0x1;if(gS){BDFDB['ModuleUtils']['patch'](gP,gR['prototype'],'render',{'after':gT=>{let gU=gT['thisObject'],gV=BDFDB['ReactUtils']['findDOMNode'](gT['thisObject']),gW=gT['returnValue'];if(gU&&gV&&gW&&typeof gP['on'+gQ]==='function'){gP['on'+gQ](gU,gV,gW);if(!gU['BDFDBforceUpdateTimeout'])BDFDB['ReactUtils']['forceUpdate'](gU);}}});}else{BDFDB['ModuleUtils']['patch'](gP,gR['prototype'],'render',{'after':gX=>{if(gX['thisObject']&&gX['returnValue']&&typeof gP['on'+gQ]==='function')gP['on'+gQ]({'instance':gX['thisObject'],'returnvalue':gX['returnValue'],'methodname':'render'});}});}}};e['patchContextMenuLib']=(gY,gZ)=>{if(gY&&gY['prototype']){BDFDB['ModuleUtils']['patch'](BDFDB,gY['prototype'],'componentDidMount',{'after':h0=>{if(!h0['thisObject']['BDFDBforceRenderTimeout']&&typeof h0['thisObject']['render']=='function')h0['thisObject']['render']();}});BDFDB['ModuleUtils']['patch'](BDFDB,gY['prototype'],'componentDidUpdate',{'after':h1=>{var h2=BDFDB['ReactUtils']['findDOMNode'](h1['thisObject']);if(h2){const h3=BDFDB['ReactUtils']['getValue'](h1,'thisObject._reactInternalFiber.stateNode.props.onHeightUpdate');const h4=BDFDB['DOMUtils']['getRects'](h2),h5=BDFDB['DOMUtils']['getRects'](document['querySelector'](BDFDB['dotCN']['appmount']));if(h3&&h4['top']+h4['height']>h5['height'])h3();}}});BDFDB['ModuleUtils']['patch'](BDFDB,gY['prototype'],'render',{'after':h6=>{if(h6['thisObject']['props']['BDFDBcontextMenu']&&h6['thisObject']['props']['children']&&h6['returnValue']&&h6['returnValue']['props']){h6['returnValue']['props']['children']=h6['thisObject']['props']['children'];delete h6['thisObject']['props']['value'];delete h6['thisObject']['props']['children'];delete h6['thisObject']['props']['BDFDBcontextMenu'];}if(BDFDB['ReactUtils']['findDOMNode'](h6['thisObject'])){h6['thisObject']['BDFDBforceRenderTimeout']=!![];BDFDB['TimeUtils']['timeout'](c=>{delete h6['thisObject']['BDFDBforceRenderTimeout'];},0x3e8);}if(gZ){let h8=BDFDB['ReactUtils']['getValue'](h6,'thisObject._reactInternalFiber.child.type');if(h8&&h8['displayName']&&gA[h8['displayName']]&&!gA[h8['displayName']]['module']){gA[h8['displayName']]['module']=h8;e['patchContextMenuLib'](h8,![]);while(gA[h8['displayName']]['query']['length']){e['patchContextMenuPlugin'](gA[h8['displayName']]['query']['pop'](),h8['displayName'],h8);}}}}});}};e['patchPopoutLib']=(h9,ha)=>{if(h9&&h9['prototype']){BDFDB['ModuleUtils']['patch'](BDFDB,h9['prototype'],'componentDidMount',{'after':hb=>{if(!hb['thisObject']['BDFDBforceRenderTimeout']&&!hb['thisObject']['BDFDBforceUpdateTimeout']&&typeof hb['thisObject']['render']=='function')hb['thisObject']['render']();}});BDFDB['ModuleUtils']['patch'](BDFDB,h9['prototype'],'componentDidUpdate',{'after':hc=>{const hd=BDFDB['ReactUtils']['getValue'](hc,'thisObject._reactInternalFiber.return.return.return.stateNode.updateOffsets');if(hd)hd();hc['thisObject']['BDFDBforceUpdateTimeout']=!![];BDFDB['TimeUtils']['timeout'](c=>{delete hc['thisObject']['BDFDBforceUpdateTimeout'];},0x3e8);}});BDFDB['ModuleUtils']['patch'](BDFDB,h9['prototype'],'render',{'after':hf=>{if(BDFDB['ReactUtils']['findDOMNode'](hf['thisObject'])){hf['thisObject']['BDFDBforceRenderTimeout']=!![];BDFDB['TimeUtils']['timeout'](c=>{delete hf['thisObject']['BDFDBforceRenderTimeout'];},0x3e8);}if(hf['thisObject']['props']['message']&&!hf['thisObject']['props']['target']){const hh=document['querySelector'](BDFDB['dotCN']['messages']);if(hh)for(let hi of BDFDB['ReactUtils']['findOwner'](hh,{'name':'Message','all':!![],'noCopies':!![],'unlimited':!![]})){if(hf['thisObject']['props']['message']['id']==hi['props']['message']['id']){target=BDFDB['ReactUtils']['findDOMNode'](hi);if(target)hf['thisObject']['props']['target']=target;break;}}}}});}};BDFDB['DiscordConstants']=BDFDB['ModuleUtils']['findByProperties']('Permissions','ActivityTypes');var hj={};hj['Channel']=BDFDB['ModuleUtils']['findByPrototypes']('getRecipientId','getTitleIcon','getGuildId');hj['Guild']=BDFDB['ModuleUtils']['findByPrototypes']('getIconURL','getMaxEmojiSlots','getRole');hj['Message']=BDFDB['ModuleUtils']['findByPrototypes']('getReaction','getAuthorName','getChannelId');hj['Timestamp']=BDFDB['ModuleUtils']['findByPrototypes']('add','dayOfYear','hasAlignedHourOffset');hj['User']=BDFDB['ModuleUtils']['findByPrototypes']('hasFlag','isLocalBot','isClaimed');BDFDB['DiscordObjects']=Object['assign']({},hj);var hk={};for(let hl of['child_process','electron','fs','path','process','request']){try{hk[hl]=require(hl);}catch(hm){}}BDFDB['LibraryRequires']=Object['assign']({},hk);var hn={};hn['AckUtils']=BDFDB['ModuleUtils']['findByProperties']('localAck','bulkAck');hn['APIUtils']=BDFDB['ModuleUtils']['findByProperties']('getAPIBaseURL');hn['AnimationUtils']=BDFDB['ModuleUtils']['findByProperties']('spring','decay');hn['BadgeUtils']=BDFDB['ModuleUtils']['findByProperties']('getBadgeCountString','getBadgeWidthForValue');hn['CategoryCollapseStore']=BDFDB['ModuleUtils']['findByProperties']('getCollapsedCategories','isCollapsed');hn['CategoryCollapseUtils']=BDFDB['ModuleUtils']['findByProperties']('categoryCollapse','categoryCollapseAll');hn['ChannelStore']=BDFDB['ModuleUtils']['findByProperties']('getChannel','getChannels');hn['ColorUtils']=BDFDB['ModuleUtils']['findByProperties']('hex2int','hex2rgb');hn['ContextMenuUtils']=BDFDB['ModuleUtils']['findByProperties']('closeContextMenu','openContextMenu');hn['CopyLinkUtils']=BDFDB['ModuleUtils']['findByProperties']('SUPPORTS_COPY','copy');hn['CurrentUserStore']=BDFDB['ModuleUtils']['findByProperties']('getCurrentUser');hn['DirectMessageUtils']=BDFDB['ModuleUtils']['findByProperties']('addRecipient','openPrivateChannel');hn['FriendUtils']=BDFDB['ModuleUtils']['findByProperties']('getFriendIDs','getRelationships');hn['FolderStore']=BDFDB['ModuleUtils']['findByProperties']('getGuildFolderById','getFlattenedGuilds');hn['FolderUtils']=BDFDB['ModuleUtils']['findByProperties']('isFolderExpanded','getExpandedFolders');hn['GuildBoostUtils']=BDFDB['ModuleUtils']['findByProperties']('getTierName','getUserLevel');hn['GuildChannelStore']=BDFDB['ModuleUtils']['findByProperties']('getChannels','getDefaultChannel');hn['GuildEmojiStore']=BDFDB['ModuleUtils']['findByProperties']('getGuildEmoji','getDisambiguatedEmojiContext');hn['GuildSettingsUtils']=BDFDB['ModuleUtils']['findByProperties']('updateChannelOverrideSettings','updateNotificationSettings');hn['GuildStore']=BDFDB['ModuleUtils']['findByProperties']('getGuild','getGuilds');hn['GuildUtils']=BDFDB['ModuleUtils']['findByProperties']('transitionToGuildSync');hn['HistoryUtils']=BDFDB['ModuleUtils']['findByProperties']('transitionTo','replaceWith','getHistory');;hn['IconUtils']=BDFDB['ModuleUtils']['findByProperties']('getGuildIconURL','getGuildBannerURL');hn['InviteUtils']=BDFDB['ModuleUtils']['findByProperties']('acceptInvite','createInvite');hn['KeyCodeUtils']=Object['assign']({},BDFDB['ModuleUtils']['findByProperties']('toCombo','keyToCode'));hn['KeyCodeUtils']['getString']=ho=>{return hn['KeyCodeUtils']['toString']([ho]['flat']()['filter'](hp=>hp)['map'](hq=>[BDFDB['DiscordConstants']['KeyboardDeviceTypes']['KEYBOARD_KEY'],hq,hn['KeyCodeUtils']['getEnv']()]),!![]);};hn['KeyEvents']=BDFDB['ModuleUtils']['findByProperties']('aliases','code','codes');hn['LanguageStore']=BDFDB['ModuleUtils']['findByProperties']('getLanguages','Messages');hn['LastChannelStore']=BDFDB['ModuleUtils']['findByProperties']('getLastSelectedChannelId');hn['LastGuildStore']=BDFDB['ModuleUtils']['findByProperties']('getLastSelectedGuildId');hn['LoginUtils']=BDFDB['ModuleUtils']['findByProperties']('login','logout');hn['MemberStore']=BDFDB['ModuleUtils']['findByProperties']('getMember','getMembers');hn['MentionUtils']=BDFDB['ModuleUtils']['findByProperties']('getMentionCount','getMentionCounts');hn['MessageCreationUtils']=BDFDB['ModuleUtils']['findByProperties']('parse','isMentioned');hn['MessagePinUtils']=BDFDB['ModuleUtils']['findByProperties']('pinMessage','unpinMessage');hn['MessageStore']=BDFDB['ModuleUtils']['findByProperties']('getMessage','getMessages');hn['MessageUtils']=BDFDB['ModuleUtils']['findByProperties']('receiveMessage','editMessage');hn['ModalUtils']=BDFDB['ModuleUtils']['findByProperties']('openModal','registerModalDispatch');hn['MutedUtils']=BDFDB['ModuleUtils']['findByProperties']('isGuildOrCategoryOrChannelMuted');hn['NoteStore']=BDFDB['ModuleUtils']['findByProperties']('getNotes','getNote');hn['NotificationSettingsUtils']=BDFDB['ModuleUtils']['findByProperties']('setDesktopType','setTTSType');hn['NotificationSettingsStore']=BDFDB['ModuleUtils']['findByProperties']('getDesktopType','getTTSType');hn['PlatformUtils']=BDFDB['ModuleUtils']['findByProperties']('isWindows','isLinux');hn['PermissionUtils']=BDFDB['ModuleUtils']['findByProperties']('getChannelPermissions','canUser');hn['PermissionRoleUtils']=BDFDB['ModuleUtils']['findByProperties']('getHighestRole','can');hn['ReactionUtils']=BDFDB['ModuleUtils']['findByProperties']('addReaction','removeReaction');hn['SearchPageUtils']=BDFDB['ModuleUtils']['findByProperties']('searchNextPage','searchPreviousPage');hn['SelectChannelUtils']=BDFDB['ModuleUtils']['findByProperties']('selectChannel','selectPrivateChannel');hn['SettingsUtils']=BDFDB['ModuleUtils']['findByProperties']('updateRemoteSettings','updateLocalSettings');hn['SoundUtils']=BDFDB['ModuleUtils']['findByProperties']('playSound','createSound');hn['SpellCheckUtils']=BDFDB['ModuleUtils']['findByProperties']('learnWord','toggleSpellcheck');hn['StatusMetaUtils']=BDFDB['ModuleUtils']['findByProperties']('getApplicationActivity','getStatus');hn['StreamUtils']=BDFDB['ModuleUtils']['findByProperties']('getStreamForUser','getActiveStream');hn['UnreadGuildUtils']=BDFDB['ModuleUtils']['findByProperties']('hasUnread','getUnreadGuilds');hn['UnreadChannelUtils']=BDFDB['ModuleUtils']['findByProperties']('getUnreadCount','getOldestUnreadMessageId');hn['UploadUtils']=BDFDB['ModuleUtils']['findByProperties']('upload','instantBatchUpload');hn['UserStore']=BDFDB['ModuleUtils']['findByProperties']('getUser','getUsers');hn['VoiceUtils']=BDFDB['ModuleUtils']['findByProperties']('getAllVoiceStates','getVoiceStatesForChannel');hn['ZoomUtils']=BDFDB['ModuleUtils']['findByProperties']('setZoom','setFontSize');BDFDB['LibraryModules']=Object['assign']({},hn);hn['React']=BDFDB['ModuleUtils']['findByProperties']('createElement','cloneElement');hn['ReactDOM']=BDFDB['ModuleUtils']['findByProperties']('render','findDOMNode');BDFDB['ReactUtils']=Object['assign']({},hn['React'],hn['ReactDOM']);BDFDB['ReactUtils']['createElement']=function(hr,hs){if(hr&&hr['defaultProps'])for(let ht in hr['defaultProps'])if(hs[ht]==null)hs[ht]=hr['defaultProps'][ht];try{return hn['React']['createElement'](hr||'div',hs||{})||null;}catch(hu){BDFDB['LogUtils']['error']('Fatal\x20Error:\x20Could\x20not\x20create\x20react\x20element!\x20'+hu);}return null;};BDFDB['ReactUtils']['elementToReact']=function(hv){if(BDFDB['ReactUtils']['isValidElement'](hv))return hv;else if(!Node['prototype']['isPrototypeOf'](hv))return null;else if(hv['nodeType']==Node['TEXT_NODE'])return hv['nodeValue'];let hw={},hx={};for(let hy of hv['attributes'])hw[hy['name']]=hy['value'];if(hv['attributes']['style'])hw['style']=BDFDB['ObjectUtils']['filter'](hv['style'],hz=>hv['style'][hz]&&isNaN(parseInt(hz)),!![]);hw['children']=[];if(hv['style']&&hv['style']['cssText'])for(let hA of hv['style']['cssText']['split'](';'))if(hA['endsWith']('!important')){let hB=hA['split'](':')[0x0];let hC=hB['replace'](/-([a-z]?)/g,(hD,hE)=>hE['toUpperCase']());if(hw['style'][hC]!=null)hx[hB]=hw['style'][hC];}if(Object['keys'](hx)['length'])hw['ref']=hF=>{let hG=BDFDB['ReactUtils']['findDOMNode'](hF);if(hG)for(let hH in hx)hG['style']['setProperty'](hH,hx[hH],'important');};for(let hI of hv['childNodes'])hw['children']['push'](BDFDB['ReactUtils']['elementToReact'](hI));return BDFDB['ReactUtils']['createElement'](hv['tagName'],hw);};BDFDB['ReactUtils']['findDOMNode']=function(hJ){if(Node['prototype']['isPrototypeOf'](hJ))return hJ;if(!hJ||!hJ['updater']||typeof hJ['updater']['isMounted']!=='function'||!hJ['updater']['isMounted'](hJ))return null;var hK=hn['ReactDOM']['findDOMNode'](hJ)||BDFDB['ReactUtils']['getValue'](hJ,'child.stateNode');return Node['prototype']['isPrototypeOf'](hK)?hK:null;};BDFDB['ReactUtils']['childrenToArray']=function(hL){if(hL&&hL['props']&&hL['props']['children']&&!BDFDB['ArrayUtils']['is'](hL['props']['children'])){var hM=hL['props']['children'];hL['props']['children']=[];hL['props']['children']['push'](hM);}return hL['props']['children'];};BDFDB['ReactUtils']['findChildren']=function(hN,hO){if(!hN||!BDFDB['ObjectUtils']['is'](hO)||!hO['name']&&!hO['key']&&!hO['props'])return[null,-0x1];var hP=Node['prototype']['isPrototypeOf'](hN)?BDFDB['ReactUtils']['getInstance'](hN):hN;if(!BDFDB['ObjectUtils']['is'](hP)&&!BDFDB['ArrayUtils']['is'](hP))return[null,-0x1];hO['name']=hO['name']&&[hO['name']]['flat']()['filter'](hQ=>hQ);hO['key']=hO['key']&&[hO['key']]['flat']()['filter'](hR=>hR);hO['props']=hO['props']&&[hO['props']]['flat']()['filter'](hS=>hS);var hT=firstarray=hP;while(!BDFDB['ArrayUtils']['is'](firstarray)&&firstarray['props']&&firstarray['props']['children'])firstarray=firstarray['props']['children'];if(!BDFDB['ArrayUtils']['is'](firstarray)){if(hT&&hT['props']){hT['props']['children']=[hT['props']['children']];firstarray=hT['props']['children'];}else firstarray=[];}return hU(hP);function hU(hV){var hW=[firstarray,-0x1];if(!hV)return hW;if(!BDFDB['ArrayUtils']['is'](hV)){if(i0(hV))hW=hY(hV);else if(hV['props']&&hV['props']['children']){hT=hV;hW=hU(hV['props']['children']);}}else{for(let hX=0x0;hW[0x1]==-0x1&&hX(hP['type']['displayName']||hP['type']['name'])===i3)||hO['key']&&hO['key']['some'](i4=>hP['key']==i4)||i2&&hO['props']&&hO['props']['every'](i5=>BDFDB['ArrayUtils']['is'](i5)?BDFDB['ArrayUtils']['is'](i5[0x1])?i5[0x1]['some'](i6=>i7(i2,i5[0x0],i6)):i7(i2,i5[0x0],i5[0x1]):i2[i5]!==undefined);}function i7(i8,i9,ia){return i9!=null&&i8[i9]!=null&&ia!=null&&(i9=='className'?('\x20'+i8[i9]+'\x20')['indexOf']('\x20'+ia+'\x20')>-0x1:BDFDB['equals'](i8[i9],ia));}};BDFDB['ReactUtils']['findOwner']=function(ib,ic){if(!BDFDB['ObjectUtils']['is'](ic))return null;if(!ib||!ic['name']&&!ic['key']&&!ic['props'])return ic['all']?ic['group']?{}:[]:null;var id=Node['prototype']['isPrototypeOf'](ib)?BDFDB['ReactUtils']['getInstance'](ib):ib;if(!BDFDB['ObjectUtils']['is'](id))return ic['all']?ic['group']?{}:[]:null;ic['name']=ic['name']&&[ic['name']]['flat']()['filter'](ie=>ie);ic['key']=ic['key']&&[ic['key']]['flat']()['filter'](ig=>ig);ic['props']=ic['props']&&[ic['props']]['flat']()['filter'](ih=>ih);var ii=-0x1;var ij=performance['now']();var ik=ic['unlimited']?0x3b9ac9ff:ic['depth']===undefined?0x1e:ic['depth'];var il=ic['unlimited']?0x3b9ac9ff:ic['time']===undefined?0x96:ic['time'];var im=ic['up']?{'return':!![],'sibling':!![],'_reactInternalFiber':!![]}:{'child':!![],'sibling':!![],'_reactInternalFiber':!![]};var io=ic['group']?{}:[];var ip=is(id);if(ic['all']){for(let iq in io){if(ic['group'])for(let ir in io[iq])delete io[iq][ir]['BDFDBreactSearch'];else delete io[iq]['BDFDBreactSearch'];}return io;}else return ip;function is(id){ii++;var iu=undefined;if(id&&!Node['prototype']['isPrototypeOf'](id)&&!BDFDB['ReactUtils']['getInstance'](id)&&ii(id['type']['displayName']||id['type']['name'])===iw['split']('\x20_\x20_\x20')[0x0])||ic['key']&&ic['key']['some'](ix=>id['key']==ix)||iv&&ic['props']&&ic['props']['every'](iy=>BDFDB['ArrayUtils']['is'](iy)?BDFDB['ArrayUtils']['is'](iy[0x1])?iy[0x1]['some'](iz=>BDFDB['equals'](iv[iy[0x0]],iz)):BDFDB['equals'](iv[iy[0x0]],iy[0x1]):iv[iy]!==undefined))){if(ic['all']===undefined||!ic['all'])iu=id['stateNode'];else if(ic['all']){if(ic['noCopies']===undefined||!ic['noCopies']||ic['noCopies']&&!id['stateNode']['BDFDBreactSearch']){id['stateNode']['BDFDBreactSearch']=!![];if(ic['group']){if(ic['name']&&id['type']&&(id['type']['displayName']||id['type']['name'])){var iA='Default';for(let iB of ic['name'])if(id['type']['displayName']===iB['split']('\x20_\x20_\x20')[0x0]||id['type']['name']===iB['split']('\x20_\x20_\x20')[0x0]){iA=iB;break;}if(typeof io[iA]=='undefined')io[iA]=[];io[iA]['push'](id['stateNode']);}}else io['push'](id['stateNode']);}}}if(iu===undefined){let iC=Object['getOwnPropertyNames'](id);for(let iD=0x0;iu===undefined&&iDiI);iG['key']=iG['key']&&[iG['key']]['flat']()['filter'](iJ=>iJ);var iK=-0x1;var iL=performance['now']();var iM=iG['unlimited']?0x3b9ac9ff:iG['depth']===undefined?0x1e:iG['depth'];var iN=iG['unlimited']?0x3b9ac9ff:iG['time']===undefined?0x96:iG['time'];var iO=iG['up']?{'return':!![],'sibling':!![],'_reactInternalFiber':!![]}:{'child':!![],'sibling':!![],'_reactInternalFiber':!![]};return iP(iH);function iP(iH){iK++;var iR=undefined;if(iH&&!Node['prototype']['isPrototypeOf'](iH)&&!BDFDB['ReactUtils']['getInstance'](iH)&&iK(iH['type']['displayName']||iH['type']['name'])===iS['split']('\x20_\x20_\x20')[0x0])||iG['key']&&iG['key']['some'](iT=>iH['key']==iT)))iR=iH['memoizedProps'];if(iR===undefined){let iU=Object['getOwnPropertyNames'](iH);for(let iV=0x0;iR===undefined&&iVjk))if(jj['updater']&&typeof jj['updater']['isMounted']=='function'&&jj['updater']['isMounted'](jj))jj['forceUpdate']();};BDFDB['ReactUtils']['getInstance']=function(jl){if(!BDFDB['ObjectUtils']['is'](jl))return null;return jl[Object['keys'](jl)['find'](jm=>jm['startsWith']('__reactInternalInstance'))];};BDFDB['ReactUtils']['getValue']=function(jn,jo){if(!jn||!jo)return null;var jp=Node['prototype']['isPrototypeOf'](jn)?BDFDB['ReactUtils']['getInstance'](jn):jn;if(!BDFDB['ObjectUtils']['is'](jp))return null;var jq=jp,jr=jo['split']('.')['filter'](js=>js);for(value of jr){if(!jq)return null;jq=jq[value];}return jq;};e['setDefaultProps']=function(jt,ju){if(BDFDB['ObjectUtils']['is'](jt))jt['defaultProps']=Object['assign']({},jt['defaultProps'],ju);};BDFDB['equals']=function(jv,jw,jx){var jy=-0x1;if(jx===undefined||typeof jx!=='boolean')jx=![];return jz(jv,jw);function jz(jA,jB){jy++;var jC=!![];if(jy>0x3e8)jC=null;else{if(typeof jA!==typeof jB)jC=![];else if(typeof jA==='undefined')jC=!![];else if(typeof jA==='symbol')jC=!![];else if(typeof jA==='boolean')jC=jA==jB;else if(typeof jA==='string')jC=jA==jB;else if(typeof jA==='number'){if(isNaN(jA)||isNaN(jB))jC=isNaN(jA)==isNaN(jB);else jC=jA==jB;}else if(!jA&&!jB)jC=!![];else if(!jA||!jB)jC=![];else if(typeof jA==='function'||typeof jA==='object'){var jD=Object['getOwnPropertyNames'](jA);var jE=Object['getOwnPropertyNames'](jB);if(jD['length']!==jE['length'])jC=![];else for(let jF=0x0;jC===!![]&&jF0x0))kf['push'](kg);}return kf;};BDFDB['GuildUtils']['getPinged']=function(ki){var kj=[];for(let kk of ki===undefined||!BDFDB['ArrayUtils']['is'](ki)?BDFDB['GuildUtils']['getAll']():ki){if(!kk)return null;let kl=Node['prototype']['isPrototypeOf'](kk)?BDFDB['GuildUtils']['getId'](kk):typeof kk=='object'?kk['id']:kk;kl=typeof kl=='number'?kl['toFixed']():kl;if(kl&&hn['MentionUtils']['getMentionCount'](kl)>0x0)kj['push'](kk);}return kj;};BDFDB['GuildUtils']['getMuted']=function(km){var kn=[];for(let ko of km===undefined||!BDFDB['ArrayUtils']['is'](km)?BDFDB['GuildUtils']['getAll']():km){if(!ko)return null;let kp=Node['prototype']['isPrototypeOf'](ko)?BDFDB['GuildUtils']['getId'](ko):typeof ko=='object'?ko['id']:ko;kp=typeof kp=='number'?kp['toFixed']():kp;if(kp&&hn['MutedUtils']['isGuildOrCategoryOrChannelMuted'](kp))kn['push'](ko);}return kn;};BDFDB['GuildUtils']['getSelected']=function(){var kq=hn['GuildStore']['getGuild'](hn['LastGuildStore']['getGuildId']());if(kq)return BDFDB['GuildUtils']['getData'](kq['id'])||Object['assign'](new kq['constructor'](kq),{'div':null,'instance':null});else return null;};BDFDB['GuildUtils']['createCopy']=function(kr,ks={'pill':![],'hover':![],'click':![],'menu':![],'size':null}){let kt=typeof kr=='object'?kr['id']:kr;let ku=kt?hn['GuildStore']['getGuild'](kt):null;if(ku){let kv=hn['LastGuildStore']['getGuildId']()==ku['id'];let kw=hn['UnreadGuildUtils']['hasUnread'](ku['id']);let kx=BDFDB['DOMUtils']['create']('');let ky=kx['querySelector'](BDFDB['dotCN']['guildcontainer']);let kz=kx['querySelector'](BDFDB['dotCN']['guildpillitem']);BDFDB['DOMUtils']['toggle'](kz['parentElement'],ks['pill']);if(ks['pill']){kz['style']['setProperty']('opacity',kv?0x1:kw?0.7:0x0);kz['style']['setProperty']('height',kv?'40px':'8px');kz['style']['setProperty']('transform','translate3d(0px,\x200px,\x200px)');BDFDB['DOMUtils']['toggleClass'](kx,BDFDB['disCN']['_bdguildselected'],kv);BDFDB['DOMUtils']['toggleClass'](kx,BDFDB['disCN']['_bdguildunread'],kw);BDFDB['DOMUtils']['toggleClass'](kz,BDFDB['disCN']['_bdguildunread'],kw);}if(ks['hover']){let kA=kx['querySelector'](BDFDB['dotCN']['guildiconwrapper']);let kB=kz['style']['getPropertyValue']('opacity')!=0x0;let kC=new hn['AnimationUtils']['Value'](0x0);kC['interpolate']({'inputRange':[0x0,0x1],'outputRange':[0x32,0x1e]})['addListener'](kD=>{ky['style']['setProperty']('border-radius',kD['value']+'%');});let kE=new hn['AnimationUtils']['Value'](0x0);kE['interpolate']({'inputRange':[0x0,0x1],'outputRange':[0x8,0x14]})['addListener'](kF=>{kz['style']['setProperty']('height',kF['value']+'px');});let kG=new hn['AnimationUtils']['Value'](0x0);kG['interpolate']({'inputRange':[0x0,0x1],'outputRange':[0x0,0.7]})['addListener'](kH=>{kz['style']['setProperty']('opacity',''+kH['value']);});let kI=kJ=>{hn['AnimationUtils']['parallel']([hn['AnimationUtils']['timing'](kC,{'toValue':kJ,'duration':0xc8}),hn['AnimationUtils']['spring'](kE,{'toValue':kJ,'friction':0x5})])['start']();};let kK=kL=>{hn['AnimationUtils']['parallel']([hn['AnimationUtils']['timing'](kG,{'toValue':kL,'duration':0xc8})])['start']();};ky['addEventListener']('mouseenter',c=>{kB=kz['style']['getPropertyValue']('opacity')!=0x0;if(hn['LastGuildStore']['getGuildId']()!=ku['id']){kI(0x1);if(!kB)kK(0x1);}});ky['addEventListener']('mouseleave',c=>{if(hn['LastGuildStore']['getGuildId']()!=ku['id']){kI(0x0);if(!kB)kK(0x0);}});}if(ks['click'])ky['addEventListener']('click',kO=>{BDFDB['ListenerUtils']['stopEvent'](kO);hn['GuildUtils']['transitionToGuildSync'](ku['id']);if(typeof ks['click']=='function')ks['click']();});if(ks['menu'])ky['addEventListener']('contextmenu',kP=>{BDFDB['GuildUtils']['openMenu'](ku['id'],kP);if(typeof ks['menu']=='function')ks['menu']();});if(ks['size']){kx['style']['setProperty']('margin','0','important');kx['style']['setProperty']('width',ks['size']+'px','important');kx['style']['setProperty']('height',ks['size']+'px','important');}return kx;}else return null;};BDFDB['GuildUtils']['openMenu']=function(kQ,kR=BDFDB['mousePosition']){if(!kQ)return;let kS=Node['prototype']['isPrototypeOf'](kQ)?BDFDB['GuildUtils']['getId'](kQ):typeof kQ=='object'?kQ['id']:kQ;let kT=hn['GuildStore']['getGuild'](kS);if(kT)hn['ContextMenuUtils']['openContextMenu'](kR,function(kR){return BDFDB['ReactUtils']['createElement'](BDFDB['ModuleUtils']['findByName']('GuildContextMenu'),Object['assign']({},kR,{'type':BDFDB['DiscordConstants']['ContextMenuTypes']['GUILD_ICON_BAR'],'guild':kT,'badge':hn['MentionUtils']['getMentionCount'](kT['id']),'link':BDFDB['DiscordConstants']['Routes']['CHANNEL'](kT['id'],hn['LastChannelStore']['getChannelId'](kT['id'])),'selected':kT['id']==hn['LastGuildStore']['getGuildId']()}));});};BDFDB['GuildUtils']['markAsRead']=function(kV){if(!kV)return;var kW=[];for(let kX of BDFDB['ArrayUtils']['is'](kV)?kV:typeof kV=='string'||typeof kV=='number'?Array['of'](kV):Array['from'](kV)){let kY=Node['prototype']['isPrototypeOf'](kX)?BDFDB['GuildUtils']['getId'](kX):kX&&typeof kX=='object'?kX['id']:kX;let kZ=kY&&hn['GuildChannelStore']['getChannels'](kY);if(kZ)for(let l0 in kZ)if(BDFDB['ArrayUtils']['is'](kZ[l0]))for(let l1 of kZ[l0])kW['push'](l1['channel']['id']);}if(kW['length'])hn['AckUtils']['bulkAck'](kW);};BDFDB['FolderUtils']={};BDFDB['FolderUtils']['getId']=function(l2){if(!Node['prototype']['isPrototypeOf'](l2)||!BDFDB['ReactUtils']['getInstance'](l2))return;l2=BDFDB['DOMUtils']['getParent'](BDFDB['dotCN']['guildfolderwrapper'],l2);if(!l2)return;return BDFDB['ReactUtils']['findValue'](l2,'folderId',{'up':!![]});};BDFDB['FolderUtils']['getDiv']=function(l3){if(!l3)return null;let l4=BDFDB['FolderUtils']['getData'](l3);return l4?l4['div']:null;};BDFDB['FolderUtils']['getData']=function(l5){if(!l5)return null;let l6=Node['prototype']['isPrototypeOf'](l5)?BDFDB['FolderUtils']['getId'](l5):typeof l5=='object'?l5['id']:l5;l6=typeof l6=='number'?l6['toFixed']():l6;for(let l7 of BDFDB['FolderUtils']['getAll']())if(l7&&l7['folderId']==l6)return l7;return null;};BDFDB['FolderUtils']['getAll']=function(){var l8=[];for(let l9 of BDFDB['ReactUtils']['findOwner'](document['querySelector'](BDFDB['dotCN']['guildswrapper']),{'name':'GuildFolder','all':!![],'noCopies':!![],'unlimited':!![]})){if(l9['props']&&l9['props']['folderId'])l8['push'](Object['assign']({},l9['props'],{'div':BDFDB['ReactUtils']['findDOMNode'](l9),'instance':l9}));}return l8;};BDFDB['ChannelUtils']={};BDFDB['ChannelUtils']['getId']=function(la){if(!Node['prototype']['isPrototypeOf'](la)||!BDFDB['ReactUtils']['getInstance'](la))return;la=BDFDB['DOMUtils']['getParent'](BDFDB['dotCNC']['categorycontainerdefault']+BDFDB['dotCNC']['channelcontainerdefault']+BDFDB['dotCN']['dmchannel'],la);if(!la)return;var lb=BDFDB['ReactUtils']['findValue'](la,'channel');return lb?lb['id']['toString']():null;};BDFDB['ChannelUtils']['getDiv']=function(lc){if(!lc)return null;let ld=BDFDB['ChannelUtils']['getData'](lc);return ld?ld['div']:null;};BDFDB['ChannelUtils']['getData']=function(le){if(!le)return null;let lf=Node['prototype']['isPrototypeOf'](le)?BDFDB['ChannelUtils']['getId'](le):typeof le=='object'?le['id']:le;lf=typeof lf=='number'?lf['toFixed']():lf;for(let lg of BDFDB['ChannelUtils']['getAll']())if(lg&&lg['id']==lf)return lg;return null;};BDFDB['ChannelUtils']['getAll']=function(){var lh=[];for(let li of BDFDB['ReactUtils']['findOwner'](document['querySelector'](BDFDB['dotCN']['channels']),{'name':['ChannelCategoryItem','ChannelItem','PrivateChannel'],'all':!![],'noCopies':!![],'unlimited':!![]}))if(li['props']&&!li['props']['ispin']&&li['props']['channel']&&li['_reactInternalFiber']['return']){var lj=BDFDB['ReactUtils']['findDOMNode'](li);lj=lj&&BDFDB['DOMUtils']['containsClass'](lj['parentElement'],BDFDB['disCN']['categorycontainerdefault'],BDFDB['disCN']['channelcontainerdefault'],![])?lj['parentElement']:lj;lh['push'](Object['assign'](new li['props']['channel']['constructor'](li['props']['channel']),{'div':lj,'instance':li}));}return lh;};BDFDB['ChannelUtils']['getSelected']=function(){var lk=hn['ChannelStore']['getChannel'](hn['LastChannelStore']['getChannelId']());if(lk)return BDFDB['ChannelUtils']['getData'](lk['id'])||Object['assign'](new lk['constructor'](lk),{'div':null,'instance':null});else return null;};BDFDB['ChannelUtils']['openMenu']=function(ll,lm=BDFDB['mousePosition']){if(!ll)return;let ln=Node['prototype']['isPrototypeOf'](ll)?BDFDB['ChannelUtils']['getId'](ll):typeof ll=='object'?ll['id']:ll;let lo=hn['ChannelStore']['getChannel'](ln);if(lo){let lp=null;for(let lq in BDFDB['DiscordConstants']['ChannelTypes'])if(BDFDB['DiscordConstants']['ChannelTypes'][lq]==lo['type']){lp=BDFDB['DiscordConstants']['ContextMenuTypes'][(lq=='GUILD_CATEGORY'?'CHANNEL_':'CHANNEL_LIST_')+lq['replace']('GUILD_','')];break;}if(lp)hn['ContextMenuUtils']['openContextMenu'](lm,function(lm){return BDFDB['ReactUtils']['createElement'](BDFDB['ModuleUtils']['findByName']('ChannelContextMenu'),Object['assign']({},lm,{'type':lp,'channel':lo,'guild':hn['GuildStore']['getGuild'](lo['guild_id']),'selected':lo['id']==hn['LastChannelStore']['getChannelId']()}));});}};BDFDB['ChannelUtils']['markAsRead']=function(ls){if(!ls)return;var lt=[];for(let lu of ls=BDFDB['ArrayUtils']['is'](ls)?ls:typeof ls=='string'||typeof ls=='number'?Array['of'](ls):Array['from'](ls)){let lv=Node['prototype']['isPrototypeOf'](lu)?BDFDB['ChannelUtils']['getId'](lu):lu&&typeof lu=='object'?lu['id']:lu;if(lv)lt['push'](lv);}if(lt['length'])hn['AckUtils']['bulkAck'](lt);};BDFDB['DMUtils']={};BDFDB['DMUtils']['getIcon']=function(lw){var lx=hn['ChannelStore']['getChannel'](lw=typeof lw=='number'?lw['toFixed']():lw);if(!lx)return null;if(!lx['icon'])return lx['type']==0x1?BDFDB['UserUtils']['getAvatar'](lx['recipients'][0x0]):lx['type']==0x3?'https://discordapp.com/assets/f046e2247d730629309457e902d5c5b3.svg':null;return hn['IconUtils']['getChannelIconURL'](lx)['split']('?')[0x0];};BDFDB['DMUtils']['getId']=function(ly){if(!Node['prototype']['isPrototypeOf'](ly)||!BDFDB['ReactUtils']['getInstance'](ly))return;let lz=BDFDB['DOMUtils']['getParent'](BDFDB['dotCN']['guildouter'],ly);if(!lz)return;var lA=lz['querySelector'](BDFDB['dotCN']['guildiconwrapper']);var lB=lA&&lA['href']?lA['href']['split']('/')['slice'](-0x1)[0x0]:null;return lB&&!isNaN(parseInt(lB))?lB['toString']():null;};BDFDB['DMUtils']['getDiv']=function(lC){if(!lC)return null;if(Node['prototype']['isPrototypeOf'](lC)){var lD=BDFDB['DOMUtils']['getParent'](BDFDB['dotCN']['guildouter'],lC);return lD?lD['parentElement']:lD;}else{let lE=typeof lC=='object'?lC['id']:lC;if(lE){var lD=BDFDB['DOMUtils']['getParent'](BDFDB['dotCN']['guildouter'],document['querySelector'](BDFDB['dotCNS']['guilds']+BDFDB['dotCN']['dmpill']+'\x20+\x20*\x20'+BDFDB['dotCN']['guildiconwrapper']+'[href*=\x22/channels/@me/'+lE+'\x22]'));return lD&&BDFDB?lD['parentElement']:lD;}}return null;};BDFDB['DMUtils']['getData']=function(lG){if(!lG)return null;let lH=Node['prototype']['isPrototypeOf'](lG)?BDFDB['BDFDB']['DMUtils']['getId'](lG):typeof lG=='object'?lG['id']:lG;lH=typeof lH=='number'?lH['toFixed']():lH;for(let lI of BDFDB['DMUtils']['getAll']())if(lI&&lI['id']==lH)return lI;return null;};BDFDB['DMUtils']['getAll']=function(){var lJ=[];for(let lK of BDFDB['ReactUtils']['findOwner'](document['querySelector'](BDFDB['dotCN']['guilds']),{'name':'DirectMessage','all':!![],'noCopies':!![],'unlimited':!![]})){if(lK['props']&&lK['props']['channel'])lJ['push'](Object['assign'](new lK['props']['channel']['constructor'](lK['props']['channel']),{'div':BDFDB['ReactUtils']['findDOMNode'](lK),'instance':lK}));}return lJ;};BDFDB['DMUtils']['markAsRead']=function(lL){if(!lL)return;var lM=[];for(let lN of lL=BDFDB['ArrayUtils']['is'](lL)?lL:typeof lL=='string'||typeof lL=='number'?Array['of'](lL):Array['from'](lL)){let lO=Node['prototype']['isPrototypeOf'](lN)?BDFDB['BDFDB']['DMUtils']['getId'](lN):lN&&typeof lN=='object'?lN['id']:lN;if(lO)lM['push'](lO);}for(let lP in lM)BDFDB['TimeUtils']['timeout'](c=>{hn['AckUtils']['ack'](lM[lP]);},lP*0x3e8);};BDFDB['DataUtils']={};BDFDB['DataUtils']['cached']={};BDFDB['DataUtils']['save']=function(lR,lS,lT,lU){var lV,lW;if(!BDFDB['BDUtils']['isBDv2']()){lW=typeof lS==='string'?lS:lS['name'];lV=hk['path']['join'](BDFDB['BDUtils']['getPluginsFolder'](),lW+'.config.json');}else{lW=typeof lS==='string'?lS['toLowerCase']():null;var lX=lW?BDFDB['Plugins'][lW]?BDFDB['Plugins'][lW]['contentPath']:null:lS['contentPath'];if(!lX)return;lV=hk['path']['join'](lX,'settings.json');}var lY=hk['fs']['existsSync'](lV);var lZ=!lY?{}:typeof BDFDB['DataUtils']['cached'][lW]!=='undefined'?BDFDB['DataUtils']['cached'][lW]:e['readConfig'](lV);if(lU===undefined)lZ[lT]=BDFDB['ObjectUtils']['is'](lR)?BDFDB['ObjectUtils']['sort'](lR):lR;else{if(!BDFDB['ObjectUtils']['is'](lZ[lT]))lZ[lT]={};lZ[lT][lU]=BDFDB['ObjectUtils']['is'](lR)?BDFDB['ObjectUtils']['sort'](lR):lR;}if(BDFDB['ObjectUtils']['isEmpty'](lZ[lT]))delete lZ[lT];if(BDFDB['ObjectUtils']['isEmpty'](lZ)){delete BDFDB['DataUtils']['cached'][lW];if(lY)hk['fs']['unlinkSync'](lV);}else{lZ=BDFDB['ObjectUtils']['sort'](lZ);BDFDB['DataUtils']['cached'][lW]=BDFDB['ObjectUtils']['deepAssign']({},lZ);hk['fs']['writeFileSync'](lV,JSON['stringify'](lZ,null,'\x09'));}};BDFDB['DataUtils']['load']=function(m0,m1,m2){var m3,m4;if(!BDFDB['BDUtils']['isBDv2']()){m4=typeof m0==='string'?m0:m0['name'];m3=hk['path']['join'](BDFDB['BDUtils']['getPluginsFolder'](),m4+'.config.json');}else{m4=typeof m0==='string'?m0['toLowerCase']():null;var m5=m4?BDFDB['Plugins'][m4]?BDFDB['Plugins'][m4]['contentPath']:null:m0['contentPath'];if(!m5)return{};m3=hk['path']['join'](m5,'settings.json');}if(!hk['fs']['existsSync'](m3)){delete BDFDB['DataUtils']['cached'][m4];return{};}var m6=typeof BDFDB['DataUtils']['cached'][m4]!=='undefined'&&typeof BDFDB['DataUtils']['cached'][m4][m1]!=='undefined'?BDFDB['DataUtils']['cached'][m4]:e['readConfig'](m3);BDFDB['DataUtils']['cached'][m4]=BDFDB['ObjectUtils']['deepAssign']({},m6);let m7=BDFDB['ObjectUtils']['deepAssign']({},m6&&typeof m6[m1]!=='undefined'?m6[m1]:{});if(m2===undefined)return m7;else return m7[m2]===undefined?null:m7[m2];};BDFDB['DataUtils']['remove']=function(m8,m9,ma){var mb,mc;if(!BDFDB['BDUtils']['isBDv2']()){mc=typeof m8==='string'?m8:m8['name'];mb=hk['path']['join'](BDFDB['BDUtils']['getPluginsFolder'](),mc+'.config.json');}else{mc=typeof m8==='string'?m8['toLowerCase']():null;var md=mc?BDFDB['Plugins'][mc]?BDFDB['Plugins'][mc]['contentPath']:null:m8['contentPath'];if(!md)return;mb=hk['path']['join'](md,'settings.json');}var me=hk['fs']['existsSync'](mb);var mf=!me?{}:typeof BDFDB['DataUtils']['cached'][mc]!=='undefined'?BDFDB['DataUtils']['cached'][mc]:e['readConfig'](mb);if(ma===undefined)delete mf[m9];else if(BDFDB['ObjectUtils']['is'](mf[m9]))delete mf[m9][ma];if(BDFDB['ObjectUtils']['isEmpty'](mf[m9]))delete mf[m9];if(BDFDB['ObjectUtils']['isEmpty'](mf)){delete BDFDB['DataUtils']['cached'][mc];if(me)hk['fs']['unlinkSync'](mb);}else{mf=BDFDB['ObjectUtils']['sort'](mf);BDFDB['DataUtils']['cached'][mc]=mf;hk['fs']['writeFileSync'](mb,JSON['stringify'](mf,null,'\x09'));}};BDFDB['DataUtils']['get']=function(mg,mh,mi){mg=typeof mg=='string'?BDFDB['BDUtils']['getPlugin'](mg):mg;if(!BDFDB['ObjectUtils']['is'](mg)||!mg['defaults']||!mg['defaults'][mh])return mi===undefined?{}:null;var mj=BDFDB['DataUtils']['load'](mg,mh),mk={},ml=![];for(let mm in mg['defaults'][mh]){if(mj[mm]==null){mk[mm]=BDFDB['ObjectUtils']['is'](mg['defaults'][mh][mm]['value'])?BDFDB['ObjectUtils']['deepAssign']({},mg['defaults'][mh][mm]['value']):mg['defaults'][mh][mm]['value'];ml=!![];}else mk[mm]=mj[mm];}if(ml)BDFDB['DataUtils']['save'](mk,mg,mh);if(mi===undefined)return mk;else return mk[mi]===undefined?null:mk[mi];};e['readConfig']=function(mn){try{return JSON['parse'](hk['fs']['readFileSync'](mn));}catch(mo){return{};}};BDFDB['ColorUtils']={};BDFDB['ColorUtils']['convert']=function(mp,mq,mr){if(mp==null)return null;mq=mq===undefined||!mq?mq='RGBCOMP':mq['toUpperCase']();mr=mr===undefined||!mr||!['RGB','RGBA','RGBCOMP','HSL','HSLA','HSLCOMP','HEX','HEXA','INT']['includes'](mr['toUpperCase']())?BDFDB['ColorUtils']['getType'](mp):mr['toUpperCase']();if(mq=='RGBCOMP'){switch(mr){case'RGBCOMP':if(mp['length']==0x3)return n1(mp);else if(mp['length']==0x4){let ms=n4(mp['pop']());return n1(mp)['concat'](ms);}break;case'RGB':return n1(mp['replace'](/\s/g,'')['slice'](0x4,-0x1)['split'](','));case'RGBA':let mt=mp['replace'](/\s/g,'')['slice'](0x5,-0x1)['split'](',');let ms=n4(mt['pop']());return n1(mt)['concat'](ms);case'HSLCOMP':if(mp['length']==0x3)return BDFDB['ColorUtils']['convert']('hsl('+n8(mp)['join'](',')+')','RGBCOMP');else if(mp['length']==0x4){let mv=n4(mp['pop']());return BDFDB['ColorUtils']['convert']('hsl('+n8(mp)['join'](',')+')','RGBCOMP')['concat'](mv);}break;case'HSL':var mw=n8(mp['replace'](/\s/g,'')['slice'](0x4,-0x1)['split'](','));var mx,my,mz,mA,mB,mC,mD,mE;var mF=mw[0x0]/0x168,mG=parseInt(mw[0x1])/0x64,mH=parseInt(mw[0x2])/0x64;mA=Math['floor'](mF*0x6);mB=mF*0x6-mA;mC=mH*(0x1-mG);mD=mH*(0x1-mB*mG);mE=mH*(0x1-(0x1-mB)*mG);switch(mA%0x6){case 0x0:mx=mH,my=mE,mz=mC;break;case 0x1:mx=mD,my=mH,mz=mC;break;case 0x2:mx=mC,my=mH,mz=mE;break;case 0x3:mx=mC,my=mD,mz=mH;break;case 0x4:mx=mE,my=mC,mz=mH;break;case 0x5:mx=mH,my=mC,mz=mD;break;}return[Math['round'](mx*0xff),Math['round'](my*0xff),Math['round'](mz*0xff)];case'HSLA':var mw=mp['replace'](/\s/g,'')['slice'](0x5,-0x1)['split'](',');return BDFDB['ColorUtils']['convert']('hsl('+mw['slice'](0x0,0x3)['join'](',')+')','RGBCOMP')['concat'](n4(mw['pop']()));case'HEX':var mJ=/^#([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'](mp);return[parseInt(mJ[0x1]+mJ[0x1]||mJ[0x4],0x10)['toString'](),parseInt(mJ[0x2]+mJ[0x2]||mJ[0x5],0x10)['toString'](),parseInt(mJ[0x3]+mJ[0x3]||mJ[0x6],0x10)['toString']()];case'HEXA':var mJ=/^#([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'](mp);return[parseInt(mJ[0x1]+mJ[0x1]||mJ[0x5],0x10)['toString'](),parseInt(mJ[0x2]+mJ[0x2]||mJ[0x6],0x10)['toString'](),parseInt(mJ[0x3]+mJ[0x3]||mJ[0x7],0x10)['toString'](),Math['floor'](BDFDB['NumberUtils']['mapRange']([0x0,0xff],[0x0,0x64],parseInt(mJ[0x4]+mJ[0x4]||mJ[0x8],0x10)['toString']()))/0x64];case'INT':mp=nc(mp);return[(mp>>0x10&0xff)['toString'](),(mp>>0x8&0xff)['toString'](),(mp&0xff)['toString']()];default:return null;}}else{var mL=mr=='RGBCOMP'?mp:BDFDB['ColorUtils']['convert'](mp,'RGBCOMP',mr);if(mL)switch(mq){case'RGB':return'rgb('+n1(mL['slice'](0x0,0x3))['join'](',')+')';case'RGBA':mL=mL['slice'](0x0,0x4);var mv=mL['length']==0x4?n4(mL['pop']()):0x1;return'rgba('+n1(mL)['concat'](mv)['join'](',')+')';case'HSLCOMP':var mv=mL['length']==0x4?n4(mL['pop']()):null;var mw=n8(BDFDB['ColorUtils']['convert'](mL,'HSL')['replace'](/\s/g,'')['split'](','));return mv!=null?mw['concat'](mv):mw;case'HSL':var mx=mZ(mL[0x0]),my=mZ(mL[0x1]),mz=mZ(mL[0x2]);var mS=Math['max'](mx,my,mz),mT=Math['min'](mx,my,mz),mU=mS-mT,mF,mG=mS===0x0?0x0:mU/mS,mH=mS/0xff;switch(mS){case mT:mF=0x0;break;case mx:mF=my-mz+mU*(my0xff?0xff:mB<0x0?0x0:mB;}};function n1(mt){return mt['map'](mB=>{return mZ(mB);});};function n4(mv){if(mv==null){return 0x1;}else{mv=mv['toString']();mv=(mv['indexOf']('%')>-0x1?0.01:0x1)*parseFloat(mv['replace'](/[^0-9\.\-]/g,''));return isNaN(mv)||mv>0x1?0x1:mv<0x0?0x0:mv;}};function n6(n7){if(n7==null){return'100%';}else{n7=parseFloat(n7['toString']()['replace'](/[^0-9\.\-]/g,''));return(isNaN(n7)||n7>0x64?0x64:n7<0x0?0x0:n7)+'%';}};function n8(mt){let mF=parseFloat(mt['shift']()['toString']()['replace'](/[^0-9\.\-]/g,''));mF=isNaN(mF)||mF>0x168?0x168:mF<0x0?0x0:mF;return[mF]['concat'](mt['map'](nb=>{return n6(nb);}));};function nc(mB){if(mB==null){return 0xffffff;}else{mB=parseInt(mB['toString']()['replace'](/[^0-9]/g,''));return isNaN(mB)||mB>0xffffff?0xffffff:mB<0x0?0x0:mB;}};};BDFDB['ColorUtils']['setAlpha']=function(ne,nf,ng){if(BDFDB['ObjectUtils']['is'](ne)){var nh={};for(let ni in ne)nh[ni]=nj(ne[ni],nf,ng);return nh;}return nj(ne,nf,ng);function nj(ne){var nl=BDFDB['ColorUtils']['convert'](ne,'RGBCOMP');if(nl){nf=nf['toString']();nf=(nf['indexOf']('%')>-0x1?0.01:0x1)*parseFloat(nf['replace'](/[^0-9\.\-]/g,''));nf=isNaN(nf)||nf>0x1?0x1:nf<0x0?0x0:nf;nl[0x3]=nf;ng=(ng||BDFDB['ColorUtils']['getType'](ne))['toUpperCase']();ng=ng=='RGB'||ng=='HSL'||ng=='HEX'?ng+'A':ng;return BDFDB['ColorUtils']['convert'](nl,ng);}return null;}};BDFDB['ColorUtils']['getAlpha']=function(nm){var nn=BDFDB['ColorUtils']['convert'](nm,'RGBCOMP');if(nn){if(nn['length']==0x3)return 0x1;else if(nn['length']==0x4){let no=nn[0x3]['toString']();no=(no['indexOf']('%')>-0x1?0.01:0x1)*parseFloat(no['replace'](/[^0-9\.\-]/g,''));return isNaN(no)||no>0x1?0x1:no<0x0?0x0:no;}}return null;};BDFDB['ColorUtils']['change']=function(np,nq,nr){nq=parseFloat(nq);if(np!=null&&typeof nq=='number'&&!isNaN(nq)){if(BDFDB['ObjectUtils']['is'](np)){var ns={};for(let nt in np)ns[nt]=nu(np[nt],nq,nr);return ns;}else return nu(np,nq,nr);}return null;function nu(np){var nw=BDFDB['ColorUtils']['convert'](np,'RGBCOMP');if(nw){if(parseInt(nq)!==nq){nq=nq['toString']();nq=(nq['indexOf']('%')>-0x1?0.01:0x1)*parseFloat(nq['replace'](/[^0-9\.\-]/g,''));nq=isNaN(nq)?0x0:nq;return BDFDB['ColorUtils']['convert']([Math['round'](nw[0x0]*(0x1+nq)),Math['round'](nw[0x1]*(0x1+nq)),Math['round'](nw[0x2]*(0x1+nq))],nr||BDFDB['ColorUtils']['getType'](np));}else return BDFDB['ColorUtils']['convert']([Math['round'](nw[0x0]+nq),Math['round'](nw[0x1]+nq),Math['round'](nw[0x2]+nq)],nr||BDFDB['ColorUtils']['getType'](np));}return null;};};BDFDB['ColorUtils']['invert']=function(nx,ny){if(nx!=null){var nz=BDFDB['ColorUtils']['convert'](nx,'RGBCOMP');if(nz)return BDFDB['ColorUtils']['convert']([0xff-nz[0x0],0xff-nz[0x1],0xff-nz[0x2]],ny||BDFDB['ColorUtils']['getType'](nx));}return null;};BDFDB['ColorUtils']['compare']=function(nA,nB){if(nA&&nB){nA=BDFDB['ColorUtils']['convert'](nA,'RGBA');nB=BDFDB['ColorUtils']['convert'](nB,'RGBA');if(nA&&nB)return BDFDB['equals'](nA,nB);}return null;};BDFDB['ColorUtils']['isBright']=function(nC,nD=0xa0){nC=BDFDB['ColorUtils']['convert'](nC,'RGBCOMP');if(!nC)return![];return parseInt(nD)