(c=>{if(window['BDFDB']&&window['BDFDB']['ListenerUtils']&&typeof window['BDFDB']['ListenerUtils']['remove']=='function')window['BDFDB']['ListenerUtils']['remove'](window['BDFDB']);if(window['BDFDB']&&window['BDFDB']['ObserverUtils']&&typeof window['BDFDB']['ObserverUtils']['disconnect']=='function')window['BDFDB']['ObserverUtils']['disconnect'](window['BDFDB']);if(window['BDFDB']&&window['BDFDB']['ModuleUtils']&&typeof window['BDFDB']['ModuleUtils']['unpatch']=='function')window['BDFDB']['ModuleUtils']['unpatch'](window['BDFDB']);if(window['BDFDB']&&window['BDFDB']['WindowUtils']&&typeof window['BDFDB']['WindowUtils']['closeAll']=='function')window['BDFDB']['WindowUtils']['closeAll'](window['BDFDB']);if(window['BDFDB']&&window['BDFDB']['WindowUtils']&&typeof window['BDFDB']['WindowUtils']['removeListener']=='function')window['BDFDB']['WindowUtils']['removeListener'](window['BDFDB']);var d={'myPlugins':Object['assign']({},window['BDFDB']&&window['BDFDB']['myPlugins']),'InternalData':Object['assign']({'pressedKeys':[],'mousePosition':{'pageX':0x0,'pageY':0x0},'componentPatchQueries':{}},window['BDFDB']&&window['BDFDB']['InternalData'],{'creationTime':performance['now']()}),'BDv2Api':window['BDFDB']&&window['BDFDB']['BDv2Api']||undefined,'name':'$BDFDB'};var e=Math['round'](Math['random']()*0x2386f26fc10000),f={};d['InternalData']['loadid']=e;if(typeof Array['prototype']['flat']!='function')Array['prototype']['flat']=function(){return this;};f['defaults']={'settings':{'showToasts':{'value':!![],'description':'Show\x20Plugin\x20start\x20and\x20stop\x20Toasts'},'showSupportBadges':{'value':!![],'description':'Show\x20little\x20Badges\x20for\x20Users\x20who\x20support\x20my\x20Patreon'},'addSupportLinks':{'value':!![],'description':'Add\x20PayPal/Patreon\x20links\x20to\x20my\x20Plugin\x20Entries'}}};d['LogUtils']={};d['LogUtils']['log']=function(g,h){if(typeof g!='string')g='';if(typeof h!='string'||h=='$BDFDB')h='BDFDB';console['log']('%c['+h+']','color:\x20#3a71c1;\x20font-weight:\x20700;',g['trim']());};d['LogUtils']['warn']=function(i,j){if(typeof i!='string')i='';if(typeof j!='string'||j=='$BDFDB')j='BDFDB';console['warn']('%c['+j+']','color:\x20#3a71c1;\x20font-weight:\x20700;',i['trim']());};d['LogUtils']['error']=function(k,l){if(typeof k!='string')k='';if(typeof l!='string'||l=='$BDFDB')l='BDFDB';console['error']('%c['+l+']','color:\x20#3a71c1;\x20font-weight:\x20700;','Fatal\x20Error:\x20'+k['trim']());};d['LogUtils']['log']('Loading\x20library.');d['PluginUtils']={};d['PluginUtils']['init']=function(m){m['name']=m['name']||(typeof m['getName']=='function'?m['getName']():null);m['version']=m['version']||(typeof m['getVersion']=='function'?m['getVersion']():null);m['author']=m['author']||(typeof m['getAuthor']=='function'?m['getAuthor']():null);m['description']=m['description']||(typeof m['getDescription']=='function'?m['getDescription']():null);if(m['patchModules']){m['patchedModules']={'after':m['patchModules']};delete m['patchModules'];}m['patchedModules']=d['ObjectUtils']['filter'](m['patchedModules'],n=>f7['Patchtypes']['includes'](n),!![]);f['clearStartTimeout'](m);let o=d['LanguageUtils']['LibraryStringsFormat']('toast_plugin_started','v'+m['version']);d['LogUtils']['log'](o,m['name']);if(!d['BDUtils']['getSettings']('fork-ps-2')&&d['DataUtils']['get'](d,'settings','showToasts'))d['NotificationUtils']['toast'](m['name']+'\x20'+o,{'nopointer':!![],'selector':'plugin-started-toast'});let p=typeof m['getRawUrl']=='function'&&typeof m['getRawUrl']()=='string'?m['getRawUrl']():'https://mwittrien.github.io/BetterDiscordAddons/Plugins/'+m['name']+'/'+m['name']+'.plugin.js';d['PluginUtils']['checkUpdate'](m['name'],p);if(d['ObjectUtils']['is'](m['classes']))f['addPluginClasses'](m);if(typeof m['initConstructor']==='function')d['TimeUtils']['suppress'](m['initConstructor']['bind'](m),'Could\x20not\x20initiate\x20constructor!',m['name'])();if(typeof m['css']==='string')d['DOMUtils']['appendLocalStyle'](m['name'],m['css']);f['patchPlugin'](m);f['addSpecialListeners'](m);d['PluginUtils']['translate'](m);d['PluginUtils']['checkChangeLog'](m);if(!window['PluginUpdates']||typeof window['PluginUpdates']!=='object')window['PluginUpdates']={'plugins':{}};window['PluginUpdates']['plugins'][p]={'name':m['name'],'raw':p,'version':m['version']};if(typeof window['PluginUpdates']['interval']==='undefined')window['PluginUpdates']['interval']=d['TimeUtils']['interval'](c=>{d['PluginUtils']['checkAllUpdates']();},0x3e8*0x3c*0x3c*0x2);m['started']=!![];delete m['stopping'];for(let r in d['myPlugins'])if(!d['myPlugins'][r]['started']&&typeof d['myPlugins'][r]['initialize']=='function')setImmediate(c=>{d['TimeUtils']['suppress'](d['myPlugins'][r]['initialize']['bind'](d['myPlugins'][r]),'Could\x20not\x20initiate\x20plugin!',r)();});};d['PluginUtils']['clear']=function(t){f['clearStartTimeout'](t);delete d['myPlugins'][t['name']];let u=d['LanguageUtils']['LibraryStringsFormat']('toast_plugin_stopped','v'+t['version']);d['LogUtils']['log'](u,t['name']);if(!d['BDUtils']['getSettings']('fork-ps-2')&&d['DataUtils']['get'](d,'settings','showToasts'))d['NotificationUtils']['toast'](t['name']+'\x20'+u,{'nopointer':!![],'selector':'plugin-stopped-toast'});let v=typeof t['getRawUrl']=='function'&&typeof t['getRawUrl']()=='string'?t['getRawUrl']():'https://mwittrien.github.io/BetterDiscordAddons/Plugins/'+t['name']+'/'+t['name']+'.plugin.js';if(d['ObjectUtils']['is'](t['classes']))f['removePluginClasses'](t);if(typeof t['css']==='string')d['DOMUtils']['removeLocalStyle'](t['name']);d['ModuleUtils']['unpatch'](t);d['ListenerUtils']['remove'](t);d['ObserverUtils']['disconnect'](t);d['WindowUtils']['closeAll'](t);d['WindowUtils']['removeListener'](t);for(let w in d['InternalData']['componentPatchQueries'])d['ArrayUtils']['remove'](d['InternalData']['componentPatchQueries'][w]['query'],t,!![]);for(let x of document['querySelectorAll']('.'+t['name']+'-modal,\x20.'+t['name']['toLowerCase']()+'-modal,\x20.'+t['name']+'-settingsmodal,\x20.'+t['name']['toLowerCase']()+'-settingsmodal')){let y=x['querySelector'](d['dotCN']['modalclose']);if(y)y['click']();}delete d['DataUtils']['cached'][t['name']];delete window['PluginUpdates']['plugins'][v];delete t['started'];d['TimeUtils']['timeout'](c=>{delete t['stopping'];});};d['PluginUtils']['translate']=function(A){A['labels']={};if(typeof A['setLabelsByLanguage']==='function'||typeof A['changeLanguageStrings']==='function'){if(document['querySelector']('html')['lang'])D();else{var B=d['TimeUtils']['interval'](c=>{if(document['querySelector']('html')['lang']){d['TimeUtils']['clear'](B);D();}},0x64);}function D(){var E=d['LanguageUtils']['getLanguage']();if(typeof A['setLabelsByLanguage']==='function')A['labels']=A['setLabelsByLanguage'](E['id']);if(typeof A['changeLanguageStrings']==='function')A['changeLanguageStrings']();d['LogUtils']['log'](d['LanguageUtils']['LibraryStringsFormat']('toast_plugin_translated',E['ownlang']),A['name']);}}};d['PluginUtils']['checkUpdate']=function(F,G){if(d['BDUtils']['isBDv2']()||!F||!G)return;i0['request'](G,(H,I,J)=>{if(H)return;var K=J['match'](/['"][0-9]+\.[0-9]+\.[0-9]+['"]/i);if(!K)return;if(d['NumberUtils']['getVersionDifference'](K[0x0],window['PluginUpdates']['plugins'][G]['version'])>0.2){d['NotificationUtils']['toast'](F+'\x20will\x20be\x20force\x20updated,\x20because\x20your\x20version\x20is\x20heavily\x20outdated.',{'type':'warn','nopointer':!![],'selector':'plugin-forceupdate-toast'});d['PluginUtils']['downloadUpdate'](F,G);}else if(d['NumberUtils']['compareVersions'](K[0x0],window['PluginUpdates']['plugins'][G]['version']))d['PluginUtils']['showUpdateNotice'](F,G);else d['PluginUtils']['removeUpdateNotice'](F);});};d['PluginUtils']['checkAllUpdates']=function(){for(let L in window['PluginUpdates']['plugins']){var M=window['PluginUpdates']['plugins'][L];d['PluginUtils']['checkUpdate'](M['name'],M['raw']);}};d['PluginUtils']['showUpdateNotice']=function(N,O){if(!N||!O)return;var P=document['querySelector']('#pluginNotice');if(!P){P=d['NotificationUtils']['notice']('The\x20following\x20plugins\x20need\x20to\x20be\x20updated: ',{'html':!![],'id':'pluginNotice','type':'info','btn':!d['BDUtils']['isAutoLoadEnabled']()?'Reload':'','customicon':''});P['style']['setProperty']('display','block','important');P['style']['setProperty']('visibility','visible','important');P['style']['setProperty']('opacity','1','important');P['querySelector'](d['dotCN']['noticedismiss'])['addEventListener']('click',c=>{d['DOMUtils']['remove']('.update-clickme-tooltip');});let R=P['querySelector'](d['dotCN']['noticebutton']);if(R){d['DOMUtils']['toggle'](R,!![]);R['addEventListener']('click',c=>{i0['electron']['remote']['getCurrentWindow']()['reload']();});R['addEventListener']('mouseenter',c=>{if(window['PluginUpdates']['downloaded'])d['TooltipUtils']['create'](R,window['PluginUpdates']['downloaded']['join'](',\x20'),{'type':'bottom','selector':'update-notice-tooltip','style':'max-width:\x20420px'});});}}if(P){var U=P['querySelector']('#outdatedPlugins');if(U&&!U['querySelector']('#'+N+'-notice')){if(U['querySelector']('span'))U['appendChild'](d['DOMUtils']['create'](',\x20'));var V=d['DOMUtils']['create'](''+N+'');V['addEventListener']('click',c=>{d['PluginUtils']['downloadUpdate'](N,O);});U['appendChild'](V);if(!document['querySelector']('.update-clickme-tooltip'))d['TooltipUtils']['create'](U,'Click\x20us!',{'type':'bottom','selector':'update-clickme-tooltip','delay':0x1f4});}}};d['PluginUtils']['removeUpdateNotice']=function(X,Y=document['querySelector']('#pluginNotice')){if(!X||!Y)return;var Z=Y['querySelector']('#outdatedPlugins');if(Z){var a0=Z['querySelector']('#'+X+'-notice');if(a0){var a1=a0['nextSibling'];var a2=a0['prevSibling'];if(a1&&d['DOMUtils']['containsClass'](a1,'separator'))a1['remove']();else if(a2&&d['DOMUtils']['containsClass'](a2,'separator'))a2['remove']();a0['remove']();}if(!Z['querySelector']('span')){var a3=Y['querySelector'](d['dotCN']['noticebutton']);if(a3){Y['querySelector']('.notice-message')['innerText']='To\x20finish\x20updating\x20you\x20need\x20to\x20reload.';d['DOMUtils']['toggle'](a3,![]);}else Y['querySelector'](d['dotCN']['noticedismiss'])['click']();}}};d['PluginUtils']['downloadUpdate']=function(a4,a5){if(!a4||!a5)return;i0['request'](a5,(a6,a7,a8)=>{if(a6)return d['LogUtils']['warn']('Unable\x20to\x20get\x20update\x20for\x20'+a4);d['InternalData']['creationTime']=0x0;var a9=a8['match'](/['"][0-9]+\.[0-9]+\.[0-9]+['"]/i);a9=a9['toString']()['replace'](/['"]/g,'');i0['fs']['writeFileSync'](i0['path']['join'](d['BDUtils']['getPluginsFolder'](),a5['split']('/')['slice'](-0x1)[0x0]),a8);d['NotificationUtils']['toast'](a4+'\x20v'+window['PluginUpdates']['plugins'][a5]['version']+'\x20has\x20been\x20replaced\x20by\x20'+a4+'\x20v'+a9+'.',{'nopointer':!![],'selector':'plugin-updated-toast'});var aa=document['querySelector']('#pluginNotice');if(aa){if(aa['querySelector'](d['dotCN']['noticebutton'])){window['PluginUpdates']['plugins'][a5]['version']=a9;if(!window['PluginUpdates']['downloaded'])window['PluginUpdates']['downloaded']=[];if(!window['PluginUpdates']['downloaded']['includes'](a4))window['PluginUpdates']['downloaded']['push'](a4);}d['PluginUtils']['removeUpdateNotice'](a4,aa);}});};d['PluginUtils']['checkChangeLog']=function(ab){if(!d['ObjectUtils']['is'](ab)||!ab['changelog'])return;var ac=d['DataUtils']['load'](ab,'changelog');if(!ac['currentversion']||d['NumberUtils']['compareVersions'](ab['version'],ac['currentversion'])){ac['currentversion']=ab['version'];d['DataUtils']['save'](ac,ab,'changelog');d['PluginUtils']['openChangeLog'](ab);}};d['PluginUtils']['openChangeLog']=function(ad){if(!d['ObjectUtils']['is'](ad)||!ad['changelog'])return;var ae='',af={'added':'New\x20Features','fixed':'Bug\x20Fixes','improved':'Improvements','progress':'Progress'};for(let ag in ad['changelog']){ag=ag['toLowerCase']();var ah=d['disCN']['changelog'+ag];if(ah){ae+='
'+af[ag]+'
';for(let ai of ad['changelog'][ag])ae+='- '+ai[0x0]+''+(ai[0x1]?':\x20'+ai[0x1]+'.':'')+'
';ae+='
';}}if(ae)d['ModalUtils']['open'](ad,{'header':ad['name']+'\x20'+d['LanguageUtils']['LanguageStrings']['CHANGE_LOG'],'subheader':'Version\x20'+ad['version'],'children':d['ReactUtils']['elementToReact'](d['DOMUtils']['create'](ae)),'className':d['disCN']['modalchangelogmodal'],'contentClassName':d['disCNS']['changelogcontainer']+d['disCN']['modalminicontent']});};d['PluginUtils']['addLoadingIcon']=function(aj){if(!Node['prototype']['isPrototypeOf'](aj))return;d['DOMUtils']['addClass'](aj,d['disCN']['loadingicon']);let ak=document['querySelector'](d['dotCN']['app']+'>'+d['dotCN']['loadingiconwrapper']);if(!ak){ak=d['DOMUtils']['create']('');document['querySelector'](d['dotCN']['app'])['appendChild'](ak);let al=new MutationObserver(am=>{if(!ak['firstElementChild'])d['DOMUtils']['remove'](ak);});al['observe'](ak,{'childList':!![]});}ak['appendChild'](aj);};d['PluginUtils']['createSettingsPanel']=function(an,ao){if(!d['ObjectUtils']['is'](an)||!ao||!d['ReactUtils']['isValidElement'](ao)&&!d['ArrayUtils']['is'](ao)||d['ArrayUtils']['is'](ao)&&!ao['length'])return;let ap=d['DOMUtils']['create']('');d['ReactUtils']['render'](d['ReactUtils']['createElement'](Ao['SettingsPanel'],{'key':an['name']+'-settingspanel','title':an['name']=='$BDFDB'?'BDFDB':an['name'],'children':ao}),ap);return ap;};d['PluginUtils']['refreshSettingsPanel']=function(aq,ar,...as){if(!d['ObjectUtils']['is'](aq)||typeof aq['getSettingsPanel']!='function'||!Node['prototype']['isPrototypeOf'](ar)||!ar['parentElement'])return;ar['parentElement']['appendChild'](aq['getSettingsPanel'](...as));ar['remove']();};f['clearStartTimeout']=function(at){if(!d['ObjectUtils']['is'](at))return;d['TimeUtils']['clear'](at['startTimeout'],at['libLoadTimeout']);delete at['startTimeout'];delete at['libLoadTimeout'];};f['addSpecialListeners']=function(au){if(d['ObjectUtils']['is'](au)){if(typeof au['onSettingsClosed']==='function'){let av=d['ModuleUtils']['findByName']('StandardSidebarView');if(av)d['ModuleUtils']['patch'](au,av['prototype'],'componentWillUnmount',{'after':aw=>{au['onSettingsClosed']();}});}if(typeof au['onSwitch']==='function'){let ax=document['querySelector'](d['dotCN']['guildswrapper']+'\x20~\x20*\x20>\x20'+d['dotCN']['chatspacer']);if(ax){let ay=new MutationObserver(az=>{az['forEach'](aA=>{if(aA['target']&&d['DOMUtils']['containsClass'](aA['target'],d['disCN']['nochannel']))au['onSwitch']();});});d['ObserverUtils']['connect'](au,ax['querySelector'](d['dotCNC']['chat']+d['dotCN']['nochannel']),{'name':'switchFixNoChannelObserver','instance':ay},{'attributes':!![]});let aB=new MutationObserver(aC=>{aC['forEach'](aD=>{if(aD['addedNodes']){aD['addedNodes']['forEach'](aE=>{if(d['DOMUtils']['containsClass'](aE,d['disCN']['chat'],d['disCN']['nochannel'],![])){d['ObserverUtils']['connect'](au,aE,{'name':'switchFixNoChannelObserver','instance':ay},{'attributes':!![]});}});}});});d['ObserverUtils']['connect'](au,ax,{'name':'switchFixSpacerObserver','instance':aB},{'childList':!![]});}}f['addContextListeners'](au);}};d['ObserverUtils']={};d['ObserverUtils']['connect']=function(aF,aG,aH,aI={'childList':!![]}){if(!d['ObjectUtils']['is'](aF)||!aG||!aH)return;if(d['ObjectUtils']['isEmpty'](aF['observers']))aF['observers']={};if(!d['ArrayUtils']['is'](aF['observers'][aH['name']]))aF['observers'][aH['name']]=[];if(!aH['multi'])for(let aJ of aF['observers'][aH['name']])aJ['disconnect']();if(aH['instance'])aF['observers'][aH['name']]['push'](aH['instance']);var aK=aF['observers'][aH['name']][aF['observers'][aH['name']]['length']-0x1];if(aK){var aL=Node['prototype']['isPrototypeOf'](aG)?aG:typeof aG==='string'?document['querySelector'](aG):null;if(aL)aK['observe'](aL,aI);}};d['ObserverUtils']['disconnect']=function(aM,aN){if(d['ObjectUtils']['is'](aM)&&!d['ObjectUtils']['isEmpty'](aM['observers'])){let aO=typeof aN=='string'?aN:d['ObjectUtils']['is'](aN)?aN['name']:null;if(!aO){for(let aN in aM['observers'])for(let aQ of aM['observers'][aN])aQ['disconnect']();delete aM['observers'];}else if(!d['ArrayUtils']['is'](aM['observers'][aO])){for(let aR of aM['observers'][aO])aR['disconnect']();delete aM['observers'][aO];}}};d['ListenerUtils']={};d['ListenerUtils']['add']=function(aS,aT,aU,aV,aW){if(!d['ObjectUtils']['is'](aS)||!Node['prototype']['isPrototypeOf'](aT)&&aT!==window||!aU)return;var aX=typeof aV=='function';var aY=aX?undefined:aV;var aZ=aX?aV:aW;if(typeof aZ!='function')return;d['ListenerUtils']['remove'](aS,aT,aU,aY);for(var b0 of aU['split']('\x20')){b0=b0['split']('.');var b1=b0['shift']()['toLowerCase']();if(!b1)return;var b2=b1;b1=b1=='mouseenter'||b1=='mouseleave'?'mouseover':b1;var b3=(b0['join']('.')||'')+aS['name'];if(!d['ArrayUtils']['is'](aS['listeners']))aS['listeners']=[];var b4=null;if(aY){if(b2=='mouseenter'||b2=='mouseleave'){b4=b5=>{for(let b6 of b5['path'])if(typeof b6['matches']=='function'&&b6['matches'](aY)&&!b6[b3+'BDFDB'+b2]){b6[b3+'BDFDB'+b2]=!![];if(b2=='mouseenter')aZ(d['ListenerUtils']['copyEvent'](b5,b6));let b7=b8=>{if(b8['target']['contains'](b6)||b8['target']==b6||!b6['contains'](b8['target'])){if(b2=='mouseleave')aZ(d['ListenerUtils']['copyEvent'](b5,b6));delete b6[b3+'BDFDB'+b2];document['removeEventListener']('mouseout',b7);}};document['addEventListener']('mouseout',b7);break;}};}else{b4=b9=>{for(let ba of b9['path'])if(typeof ba['matches']=='function'&&ba['matches'](aY)){aZ(d['ListenerUtils']['copyEvent'](b9,ba));break;}};}}else b4=bb=>{aZ(d['ListenerUtils']['copyEvent'](bb,aT));};aS['listeners']['push']({'ele':aT,'eventname':b1,'origeventname':b2,'namespace':b3,'selector':aY,'eventcallback':b4});aT['addEventListener'](b1,b4,!![]);}};d['ListenerUtils']['remove']=function(bc,bd,be='',bf){if(!d['ObjectUtils']['is'](bc)||!d['ArrayUtils']['is'](bc['listeners']))return;if(Node['prototype']['isPrototypeOf'](bd)||bd===window){for(var bg of be['split']('\x20')){bg=bg['split']('.');var bh=bg['shift']()['toLowerCase']();var bi=(bg['join']('.')||'')+bc['name'];for(let bj of bc['listeners']){let bk=[];if(bj['ele']==bd&&(!bh||bj['origeventname']==bh)&&bj['namespace']==bi&&(bf===undefined||bj['selector']==bf)){bd['removeEventListener'](bj['eventname'],bj['eventcallback'],!![]);bk['push'](bj);}if(bk['length'])bc['listeners']=bc['listeners']['filter'](bj=>{return bk['indexOf'](bj)<0x0;});}}}else if(!bd){for(let bm of bc['listeners'])bm['ele']['removeEventListener'](bm['eventname'],bm['eventcallback'],!![]);bc['listeners']=[];}};d['ListenerUtils']['multiAdd']=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['addEventListener'](bq,bp,!![]);};d['ListenerUtils']['multiRemove']=function(bs,bt,bu){if(!Node['prototype']['isPrototypeOf'](bs)||!bt||typeof bu!='function')return;for(var bv of bt['trim']()['split']('\x20')['filter'](bw=>bw))bs['removeEventListener'](bv,bu,!![]);};d['ListenerUtils']['addToChildren']=function(bx,by,bz,bA){if(!Node['prototype']['isPrototypeOf'](bx)||!by||!bz||!bz['trim']()||typeof bA!='function')return;for(var bB of by['trim']()['split']('\x20')['filter'](bC=>bC)){var bD=bA;if(bB=='mouseenter'||bB=='mouseleave')bD=bE=>{if(bE['target']['matches'](bz))bA(bE);};bx['querySelectorAll'](bz['trim']())['forEach'](bF=>{bF['addEventListener'](bB,bD,!![]);});}};d['ListenerUtils']['copyEvent']=function(bG,bH){if(!bG||!bG['constructor']||!bG['type'])return bG;var bI=new bG['constructor'](bG['type'],bG);Object['defineProperty'](bI,'originalEvent',{'value':bG});Object['defineProperty'](bI,'which',{'value':bG['which']});Object['defineProperty'](bI,'keyCode',{'value':bG['keyCode']});Object['defineProperty'](bI,'path',{'value':bG['path']});Object['defineProperty'](bI,'relatedTarget',{'value':bG['relatedTarget']});Object['defineProperty'](bI,'srcElement',{'value':bG['srcElement']});Object['defineProperty'](bI,'target',{'value':bG['target']});Object['defineProperty'](bI,'toElement',{'value':bG['toElement']});if(bH)Object['defineProperty'](bI,'currentTarget',{'value':bH});return bI;};d['ListenerUtils']['stopEvent']=function(bJ){if(d['ObjectUtils']['is'](bJ)){if(typeof bJ['preventDefault']=='function')bJ['preventDefault']();if(typeof bJ['stopPropagation']=='function')bJ['stopPropagation']();if(typeof bJ['stopImmediatePropagation']=='function')bJ['stopImmediatePropagation']();if(d['ObjectUtils']['is'](bJ['originalEvent'])){if(typeof bJ['originalEvent']['preventDefault']=='function')bJ['originalEvent']['preventDefault']();if(typeof bJ['originalEvent']['stopPropagation']=='function')bJ['originalEvent']['stopPropagation']();if(typeof bJ['originalEvent']['stopImmediatePropagation']=='function')bJ['originalEvent']['stopImmediatePropagation']();}}};var bK=[],bL={'queue':[],'running':![]};d['NotificationUtils']={};d['NotificationUtils']['toast']=function(bM,bN={}){let bO=document['querySelector']('.toasts,\x20.bd-toasts');if(!bO){let bP=document['querySelector'](d['dotCN']['channels']+'\x20+\x20div');let bQ=bP?d['DOMUtils']['getRects'](bP):null;let bR=bP?bP['querySelector'](d['dotCN']['memberswrap']):null;let bS=bQ?bQ['left']:0x136;let bT=bQ?bR?bQ['width']-d['DOMUtils']['getRects'](bR)['width']:bQ['width']:window['outerWidth']-0x0;let bU=bP?bP['querySelector']('form'):null;let bV=bU?d['DOMUtils']['getRects'](bU)['height']:0x50;bO=d['DOMUtils']['create']('');(document['querySelector'](d['dotCN']['app'])||document['body'])['appendChild'](bO);}const {type='',icon=!![],timeout=0xbb8,html=![],selector='',nopointer=![],color=''}=bN;let bW=d['DOMUtils']['create'](''+(html===!![]?bM:d['StringUtils']['htmlEscape'](bM))+'
');if(type){d['DOMUtils']['addClass'](bW,'toast-'+type);if(icon)d['DOMUtils']['addClass'](bW,'icon');}else if(color){let bX=d['ColorUtils']['convert'](color,'RGB');if(bX)bW['style']['setProperty']('background-color',bX);}d['DOMUtils']['addClass'](bW,selector);bO['appendChild'](bW);bW['close']=c=>{if(document['contains'](bW)){d['DOMUtils']['addClass'](bW,'closing');bW['style']['setProperty']('pointer-events','none','important');d['TimeUtils']['timeout'](c=>{bW['remove']();if(!bO['querySelectorAll']('.toast,\x20.bd-toast')['length'])bO['remove']();},0xbb8);}};if(nopointer)bW['style']['setProperty']('pointer-events','none','important');else bW['addEventListener']('click',bW['close']);d['TimeUtils']['timeout'](c=>{bW['close']();},timeout>0x0?timeout:0x927c0);return bW;};d['NotificationUtils']['desktop']=function(c1,c2={}){var c3=c=>{bL['queue']['push']({'parsedcontent':c1,'parsedoptions':c2});c5();};var c5=c=>{if(!bL['running']){var c7=bL['queue']['shift']();if(c7)c8(c7['parsedcontent'],c7['parsedoptions']);}};var c8=(c9,ca)=>{bL['running']=!![];var cb=ca['silent'];ca['silent']=ca['silent']||ca['sound']?!![]:![];var cc=new Notification(c9,ca);var cd=new Audio();var ce=d['TimeUtils']['timeout'](c=>{ch();},ca['timeout']?ca['timeout']:0xbb8);if(typeof ca['click']=='function')cc['onclick']=c=>{d['TimeUtils']['clear'](ce);ch();ca['click']();};if(!cb&&ca['sound']){cd['src']=ca['sound'];cd['play']();}var ch=c=>{cd['pause']();cc['close']();bL['running']=![];d['TimeUtils']['timeout'](c=>{c5();},0x3e8);};};if(!('Notification'in window)){}else if(Notification['permission']==='granted')c3();else if(Notification['permission']!=='denied')Notification['requestPermission'](function(ck){if(ck==='granted')c3();});};d['NotificationUtils']['notice']=function(cl,cm={}){if(!cl)return;var cn=document['querySelector'](d['dotCN']['layers']);if(!cn)return;var co=d['NumberUtils']['generateId'](bK);var cp=d['DOMUtils']['create']('');cn['parentElement']['insertBefore'](cp,cn);var cq=cp['querySelector']('.notice-message');if(cm['platform'])for(let cr of cm['platform']['split']('\x20'))if(zr['noticeicon'+cr]){let cs=d['DOMUtils']['create']('');d['DOMUtils']['addClass'](cs,d['disCN']['noticeplatformicon']);d['DOMUtils']['removeClass'](cs,d['disCN']['noticeicon']);cp['insertBefore'](cs,cq);}if(cm['customicon']){let ct=d['DOMUtils']['create'](cm['customicon']);let cs=d['DOMUtils']['create']('');if(ct['tagName']=='span'&&!ct['firstElementChild'])cs['style']['setProperty']('background','url('+cm['customicon']+')\x20center/cover\x20no-repeat');else cs['appendChild'](ct);d['DOMUtils']['addClass'](cs,d['disCN']['noticeplatformicon']);d['DOMUtils']['removeClass'](cs,d['disCN']['noticeicon']);cp['insertBefore'](cs,cq);}if(cm['btn']||cm['button'])cp['appendChild'](d['DOMUtils']['create'](''));if(cm['id'])cp['id']=cm['id']['split']('\x20')['join']('');if(cm['selector'])d['DOMUtils']['addClass'](cp,cm['selector']);if(cm['css'])d['DOMUtils']['appendLocalStyle']('BDFDBcustomnotificationbar'+co,cm['css']);if(cm['style'])cp['style']=cm['style'];if(cm['html']===!![])cq['innerHTML']=cl;else{var cv=document['createElement']('a');var cw=[];for(let cx of cl['split']('\x20')){var cy=d['StringUtils']['htmlEscape'](cx);cv['href']=cx;cw['push'](cv['host']&&cv['host']!==window['location']['host']?'':cy);}cq['innerHTML']=cw['join']('\x20');}var cz=null;if(cm['type']&&!document['querySelector'](d['dotCNS']['chatbase']+d['dotCN']['noticestreamer'])){if(cz=d['disCN']['notice'+cm['type']])d['DOMUtils']['addClass'](cp,cz);if(cm['type']=='premium'){var cA=cp['querySelector'](d['dotCN']['noticebutton']);if(cA)d['DOMUtils']['addClass'](cA,d['disCN']['noticepremiumaction']);d['DOMUtils']['addClass'](cq,d['disCN']['noticepremiumtext']);cp['insertBefore'](d['DOMUtils']['create'](''),cq);}}if(!cz){var cB=d['ColorUtils']['convert'](cm['color'],'RGBCOMP');if(cB){var cC=cB[0x0]>0xb4&&cB[0x1]>0xb4&&cB[0x2]>0xb4?'#000':'#FFF';var cD=d['ColorUtils']['convert'](cB,'HEX');var cE=cB[0x0]>0xb4&&cB[0x1]>0xb4&&cB[0x2]>0xb4?'brightness(0%)':'brightness(100%)';d['DOMUtils']['appendLocalStyle']('BDFDBcustomnotificationbarColorCorrection'+co,d['dotCN']['noticewrapper']+'[notice-id=\x22'+co+'\x22]{background-color:'+cD+'\x20!important;}'+d['dotCN']['noticewrapper']+'[notice-id=\x22'+co+'\x22]\x20.notice-message\x20{color:'+cC+'\x20!important;}'+d['dotCN']['noticewrapper']+'[notice-id=\x22'+co+'\x22]\x20'+d['dotCN']['noticebutton']+'\x20{color:'+cC+'\x20!important;border-color:'+d['ColorUtils']['setAlpha'](cC,0.25,'RGBA')+'\x20!important;}'+d['dotCN']['noticewrapper']+'[notice-id=\x22'+co+'\x22]\x20'+d['dotCN']['noticebutton']+':hover\x20{color:'+cD+'\x20!important;background-color:'+cC+'\x20!important;}'+d['dotCN']['noticewrapper']+'[notice-id=\x22'+co+'\x22]\x20'+d['dotCN']['noticedismiss']+'\x20{filter:'+cE+'\x20!important;}');}else d['DOMUtils']['addClass'](cp,d['disCN']['noticedefault']);}cp['style']['setProperty']('height','36px','important');cp['style']['setProperty']('min-width','70vw','important');cp['style']['setProperty']('left','unset','important');cp['style']['setProperty']('right','unset','important');let cF=(d['DOMUtils']['getWidth'](document['body']['firstElementChild'])-d['DOMUtils']['getWidth'](cp))/0x2;cp['style']['setProperty']('left',cF+'px','important');cp['style']['setProperty']('right',cF+'px','important');cp['style']['setProperty']('min-width','unset','important');cp['style']['setProperty']('width','unset','important');cp['style']['setProperty']('max-width','calc(100vw\x20-\x20'+cF*0x2+'px)','important');cp['querySelector'](d['dotCN']['noticedismiss'])['addEventListener']('click',c=>{cp['style']['setProperty']('overflow','hidden','important');cp['style']['setProperty']('height','0px','important');d['TimeUtils']['timeout'](c=>{d['ArrayUtils']['remove'](bK,co);d['DOMUtils']['removeLocalStyle']('BDFDBcustomnotificationbar'+co);d['DOMUtils']['removeLocalStyle']('BDFDBcustomnotificationbarColorCorrection'+co);cp['remove']();},0x1f4);});return cp;};d['NotificationUtils']['alert']=function(cI,cJ){if(typeof cI=='string'&&typeof cI=='string'&&window['BdApi']&&typeof BdApi['alert']=='function')BdApi['alert'](cI,cJ);};var cK=[];d['TooltipUtils']={};d['TooltipUtils']['create']=function(cL,cM,cN={}){var cO=document['querySelector'](d['dotCN']['appmount']+'\x20>\x20*\x20>\x20'+d['dotCN']['itemlayercontainer']);if(!cO||typeof cM!='string'&&!d['ObjectUtils']['is'](cN['guild'])||!Node['prototype']['isPrototypeOf'](cL)||!document['contains'](cL))return null;var cP=d['NumberUtils']['generateId'](cK);var cQ=d['DOMUtils']['create']('');cO['appendChild'](cQ);var cR=cQ['firstElementChild'];if(cN['id'])cR['id']=cN['id']['split']('\x20')['join']('');if(!cN['type']||!d['disCN']['tooltip'+cN['type']['toLowerCase']()])cN['type']='top';d['DOMUtils']['addClass'](cR,d['disCN']['tooltip'+cN['type']['toLowerCase']()]);cR['type']=cN['type']['toLowerCase']();let cS=![],cT=![],cU='';if(cN['style'])cU+=cN['style'];if(cN['fontColor']){cS=d['ObjectUtils']['is'](cN['fontColor']);if(!cS)cU=(cU?cU+'\x20':'')+('color:\x20'+d['ColorUtils']['convert'](cN['fontColor'],'RGBA')+'\x20!important;');}if(cN['backgroundColor']){cT=!![];let cV=d['ObjectUtils']['is'](cN['backgroundColor']);let cW=!cV?d['ColorUtils']['convert'](cN['backgroundColor'],'RGBA'):d['ColorUtils']['createGradient'](cN['backgroundColor']);cU=(cU?cU+'\x20':'')+('background:\x20'+cW+'\x20!important;\x20border-color:\x20'+(cV?d['ColorUtils']['convert'](cN['backgroundColor'][cN['type']=='left'?0x64:0x0],'RGBA'):cW)+'\x20!important;');}if(cU)cR['style']=cU;if(cT)d['DOMUtils']['addClass'](cR,d['disCN']['tooltipcustom']);else if(cN['color']&&d['disCN']['tooltip'+cN['color']['toLowerCase']()])d['DOMUtils']['addClass'](cR,d['disCN']['tooltip'+cN['color']['toLowerCase']()]);else d['DOMUtils']['addClass'](cR,d['disCN']['tooltipblack']);if(cN['list']||d['ObjectUtils']['is'](cN['guild']))d['DOMUtils']['addClass'](cR,d['disCN']['tooltiplistitem']);if(cN['selector'])d['DOMUtils']['addClass'](cR,cN['selector']);if(d['ObjectUtils']['is'](cN['guild'])){let cX=i3['StreamUtils']['getAllApplicationStreams']()['filter'](cY=>cY['guildId']===cN['guild']['id'])['map'](cZ=>cZ['ownerId']);let d0=cX['map'](d1=>i3['UserStore']['getUser'](d1))['filter'](d2=>d2);let d3=Object['keys'](i3['VoiceUtils']['getVoiceStates'](cN['guild']['id']))['map'](d4=>!cX['includes'](d4)&&d['LibraryModules']['UserStore']['getUser'](d4))['filter'](d5=>d5);let d6=cM||cN['guild']['toString']();if(cS)d6=''+d['StringUtils']['htmlEscape'](d6)+'';d['ReactUtils']['render'](d['ReactUtils']['createElement'](d['ReactUtils']['Fragment'],{'children':[d['ReactUtils']['createElement']('div',{'className':d['DOMUtils']['formatClassName'](d['disCN']['tooltiprow'],d['disCN']['tooltiprowguildname']),'children':[d['ReactUtils']['createElement'](Ao['GuildComponents']['Badge'],{'guild':cN['guild'],'size':i3['StringUtils']['cssValueToNumber'](zg['TooltipGuild']['iconSize']),'className':d['disCN']['tooltiprowicon']}),d['ReactUtils']['createElement']('span',{'className':d['DOMUtils']['formatClassName'](d['disCN']['tooltipguildnametext'],(d3['length']||d0['length'])&&d['disCN']['tooltipguildnametextlimitedsize']),'children':cS||cN['html']?d['ReactUtils']['elementToReact'](d['DOMUtils']['create'](d6)):d6})]}),d3['length']?d['ReactUtils']['createElement']('div',{'className':d['disCN']['tooltiprow'],'children':[d['ReactUtils']['createElement'](Ao['SvgIcon'],{'name':Ao['SvgIcon']['Names']['SPEAKER'],'className':d['disCN']['tooltipactivityicon']}),d['ReactUtils']['createElement'](Ao['UserSummaryItem'],{'users':d3,'max':0x6})]}):null,d0['length']?d['ReactUtils']['createElement']('div',{'className':d['disCN']['tooltiprow'],'children':[d['ReactUtils']['createElement'](Ao['SvgIcon'],{'name':Ao['SvgIcon']['Names']['STREAM'],'className':d['disCN']['tooltipactivityicon']}),d['ReactUtils']['createElement'](Ao['UserSummaryItem'],{'users':d0,'max':0x6})]}):null]['filter'](d7=>d7)}),cR);}else{if(cS)cR['innerHTML']=''+d['StringUtils']['htmlEscape'](cM)+'';else if(cN['html']===!![])cR['innerHTML']=cM;else cR['innerText']=cM;}cR['appendChild'](d['DOMUtils']['create'](''));cR['anker']=cL;if(cN['hide'])d['DOMUtils']['appendLocalStyle']('BDFDBhideOtherTooltips'+cP,'#app-mount\x20'+d['dotCN']['tooltip']+':not([tooltip-id=\x22'+cP+'\x22])\x20{display:\x20none\x20!important;}',cO);let d8=c=>{d['DOMUtils']['remove'](cQ);};cL['addEventListener']('mouseleave',d8);let da=new MutationObserver(db=>db['forEach'](dc=>{let dd=Array['from'](dc['removedNodes']);if(dd['indexOf'](cQ)>-0x1||dd['indexOf'](cL)>-0x1||dd['some'](de=>de['contains'](cL))){d['ArrayUtils']['remove'](cK,cP);da['disconnect']();d['DOMUtils']['remove'](cQ);d['DOMUtils']['removeLocalStyle']('BDFDBhideOtherTooltips'+cP,cO);cL['removeEventListener']('mouseleave',d8);}}));da['observe'](document['body'],{'subtree':!![],'childList':!![]});d['TooltipUtils']['update'](cR);if(cN['delay']){d['DOMUtils']['toggle'](cQ);d['TimeUtils']['timeout'](c=>{d['DOMUtils']['toggle'](cQ);},cN['delay']);}return cQ;};d['TooltipUtils']['update']=function(dg){if(!Node['prototype']['isPrototypeOf'](dg))return;let dh=d['DOMUtils']['getParent'](d['dotCN']['itemlayer'],dg);if(!Node['prototype']['isPrototypeOf'](dh))return;dg=dh['querySelector'](d['dotCN']['tooltip']);if(!Node['prototype']['isPrototypeOf'](dg)||!Node['prototype']['isPrototypeOf'](dg['anker'])||!dg['type'])return;var di=dg['querySelector'](d['dotCN']['tooltippointer']);var dj,dk,dl=d['DOMUtils']['getRects'](dg['anker']),dm=d['DOMUtils']['getRects'](dh),dn=d['DOMUtils']['getRects'](document['querySelector'](d['dotCN']['appmount'])),dp={'height':0xa,'width':0xa};switch(dg['type']){case'top':dk=dl['top']-dm['height']-dp['height']+0x2;dj=dl['left']+(dl['width']-dm['width'])/0x2;break;case'bottom':dk=dl['top']+dl['height']+dp['height']-0x2;dj=dl['left']+(dl['width']-dm['width'])/0x2;break;case'left':dk=dl['top']+(dl['height']-dm['height'])/0x2;dj=dl['left']-dm['width']-dp['width']+0x2;break;case'right':dk=dl['top']+(dl['height']-dm['height'])/0x2;dj=dl['left']+dl['width']+dp['width']-0x2;break;}dh['style']['setProperty']('top',dk+'px');dh['style']['setProperty']('left',dj+'px');di['style']['removeProperty']('margin-left');di['style']['removeProperty']('margin-top');if(dg['type']=='top'||dg['type']=='bottom'){if(dj<0x0){dh['style']['setProperty']('left','5px');di['style']['setProperty']('margin-left',dj-0xa+'px');}else{var dq=dn['width']-(dj+dm['width']);if(dq<0x0){dh['style']['setProperty']('left',dn['width']-dm['width']-0x5+'px');di['style']['setProperty']('margin-left',-0x1*dq+'px');}}}else if(dg['type']=='left'||dg['type']=='right'){if(dk<0x0){dh['style']['setProperty']('top','5px');di['style']['setProperty']('margin-top',dk-0xa+'px');}else{var dr=dn['height']-(dk+dm['height']);if(dr<0x0){dh['style']['setProperty']('top',dn['height']-dm['height']-0x5+'px');di['style']['setProperty']('margin-top',-0x1*dr+'px');}}}};d['ObjectUtils']={};d['ObjectUtils']['is']=function(ds){return ds&&Object['prototype']['isPrototypeOf'](ds)&&!Array['prototype']['isPrototypeOf'](ds);};d['ObjectUtils']['extract']=function(dt,...du){let dv={};if(d['ObjectUtils']['is'](dt))for(let dw of du['flat'](0xa)['filter'](dx=>dx))if(dt[dw])dv[dw]=dt[dw];return dv;};d['ObjectUtils']['exclude']=function(dy,...dz){let dA=Object['assign']({},dy);d['ObjectUtils']['delete'](dA,...dz);return dA;};d['ObjectUtils']['delete']=function(dB,...dC){if(d['ObjectUtils']['is'](dB))for(let dD of dC['flat'](0xa)['filter'](dE=>dE))delete dB[dD];};d['ObjectUtils']['sort']=function(dF,dG,dH){if(!d['ObjectUtils']['is'](dF))return{};var dI={};if(dG===undefined||!dG)for(let dJ of Object['keys'](dF)['sort']())dI[dJ]=dF[dJ];else{let dK=[];for(let dJ in dF)dK['push'](dF[dJ]);dK=d['ArrayUtils']['keySort'](dK,dG,dH);for(let dM of dK)for(let dJ in dF)if(d['equals'](dM,dF[dJ])){dI[dJ]=dM;break;}}return dI;};d['ObjectUtils']['reverse']=function(dO,dP){if(!d['ObjectUtils']['is'](dO))return{};var dQ={};for(let dR of dP===undefined||!dP?Object['keys'](dO)['reverse']():Object['keys'](dO)['sort']()['reverse']())dQ[dR]=dO[dR];return dQ;};d['ObjectUtils']['filter']=function(dS,dT,dU=![]){if(!d['ObjectUtils']['is'](dS))return{};if(typeof dT!='function')return dS;return Object['keys'](dS)['filter'](dV=>dT(dU?dV:dS[dV]))['reduce']((dW,dX)=>(dW[dX]=dS[dX],dW),{});};d['ObjectUtils']['push']=function(dY,dZ){if(d['ObjectUtils']['is'](dY))dY[Object['keys'](dY)['length']]=dZ;};d['ObjectUtils']['pop']=function(e0,e1){if(d['ObjectUtils']['is'](e0)){let e2=Object['keys'](e0);if(!e2['length'])return;let e1=e0[e2[e2['length']-0x1]];delete e0[e2[e2['length']-0x1]];return e1;}};d['ObjectUtils']['map']=function(e4,e5){if(!d['ObjectUtils']['is'](e4))return{};if(typeof e5!='string'&&typeof e5!='function')return e4;var e6={};for(let e7 in e4)if(d['ObjectUtils']['is'](e4[e7]))e6[e7]=typeof e5=='string'?e4[e7][e5]:e5(e4[e7],e7);return e6;};d['ObjectUtils']['toArray']=function(e8){if(!d['ObjectUtils']['is'](e8))return[];return Object['entries'](e8)['map'](e9=>e9[0x1]);};d['ObjectUtils']['deepAssign']=function(ea,...eb){if(!eb['length'])return ea;let ec=eb['shift']();if(d['ObjectUtils']['is'](ea)&&d['ObjectUtils']['is'](ec)){for(let ed in ec){if(d['ObjectUtils']['is'](ec[ed])){if(!ea[ed])Object['assign'](ea,{[ed]:{}});d['ObjectUtils']['deepAssign'](ea[ed],ec[ed]);}else Object['assign'](ea,{[ed]:ec[ed]});}}return d['ObjectUtils']['deepAssign'](ea,...eb);};d['ObjectUtils']['isEmpty']=function(ee){return!d['ObjectUtils']['is'](ee)||Object['getOwnPropertyNames'](ee)['length']==0x0;};d['ArrayUtils']={};d['ArrayUtils']['is']=function(ef){return ef&&Array['isArray'](ef);};d['ArrayUtils']['sum']=function(eg){return Array['isArray'](eg)?eg['reduce']((eh,ei)=>eh+Math['round'](ei),0x0):0x0;};d['ArrayUtils']['keySort']=function(ej,ek,el){if(!d['ArrayUtils']['is'](ej))return[];if(ek==null)return ej;if(el===undefined)el=null;return ej['sort']((em,en)=>{var eo=em[ek],ep=en[ek];if(eo!==el)return eoep?0x1:0x0;});};d['ArrayUtils']['numSort']=function(eq){return eq['sort']((er,es)=>{return eres?0x1:0x0;});};d['ArrayUtils']['remove']=function(et,eu,ev=![]){if(!d['ArrayUtils']['is'](et))return[];if(!et['includes'](eu))return et;if(!ev)et['splice'](et['indexOf'](eu),0x1);else while(et['indexOf'](eu)>-0x1)et['splice'](et['indexOf'](eu),0x1);return et;};d['ArrayUtils']['getAllIndexes']=function(ew,ex){if(!d['ArrayUtils']['is'](ew)&&typeof ew!='string')return[];var ey=[],ez=-0x1;while((ez=ew['indexOf'](ex,ez+0x1))!==-0x1)ey['push'](ez);return ey;};d['ArrayUtils']['removeCopies']=function(eA){if(!d['ArrayUtils']['is'](eA))return[];return[...new Set(eA)];};d['ModuleUtils']={};d['ModuleUtils']['cached']=window['BDFDB']&&window['BDFDB']['ModuleUtils']&&window['BDFDB']['ModuleUtils']['cached']||{};d['ModuleUtils']['find']=function(eB,eC){eC=typeof eC!='boolean'?!![]:eC;var eD=f['getWebModuleReq']();for(let eE in eD['c'])if(eD['c']['hasOwnProperty'](eE)){var eF=eD['c'][eE]['exports'];if(eF&&(typeof eF=='object'||typeof eF=='function')&&eB(eF))return eC?eF:eD['c'][eE];if(eF&&eF['__esModule']){for(let eG in eF)if(eF[eG]&&(typeof eF[eG]=='object'||typeof eF[eG]=='function')&&eB(eF[eG]))return eC?eF[eG]:eD['c'][eE];if(eF['default']&&(typeof eF['default']=='object'||typeof eF['default']=='function'))for(let eH in eF['default'])if(eF['default'][eH]&&(typeof eF['default'][eH]=='object'||typeof eF['default'][eH]=='function')&&eB(eF['default'][eH]))return eC?eF['default'][eH]:eD['c'][eE];}}};d['ModuleUtils']['findByProperties']=function(...eI){eI=eI['flat'](0xa);let eJ=eI['pop']();if(typeof eJ!='boolean'){eI['push'](eJ);eJ=!![];}return f['findModule']('prop',JSON['stringify'](eI),eK=>eI['every'](eL=>eK[eL]!==undefined),eJ);};d['ModuleUtils']['findByName']=function(eM,eN){return f['findModule']('name',JSON['stringify'](eM),eO=>eO['displayName']===eM||eO['render']&&eO['render']['displayName']===eM,typeof eN!='boolean'?!![]:eN);};d['ModuleUtils']['findByString']=function(...eP){eP=eP['flat'](0xa);let eQ=eP['pop']();if(typeof eQ!='boolean'){eP['push'](eQ);eQ=!![];}return f['findModule']('string',JSON['stringify'](eP),eR=>eP['every'](eS=>typeof eR=='function'&&(eR['toString']()['indexOf'](eS)>-0x1||eR['__originalMethod']&&eR['__originalMethod']['toString']()['indexOf'](eS)>-0x1||eR['__originalFunction']&&eR['__originalFunction']['toString']()['indexOf'](eS)>-0x1)||d['ObjectUtils']['is'](eR)&&typeof eR['type']=='function'&&(eR['type']['toString']()['indexOf'](eS)>-0x1||eR['type']['__originalMethod']&&eR['type']['__originalMethod']['toString']()['indexOf'](eS)>-0x1||eR['type']['__originalFunction']&&eR['type']['__originalFunction']['toString']()['indexOf'](eS)>-0x1)),eQ);};d['ModuleUtils']['findByPrototypes']=function(...eT){eT=eT['flat'](0xa);let eU=eT['pop']();if(typeof eU!='boolean'){eT['push'](eU);eU=!![];}return f['findModule']('proto',JSON['stringify'](eT),eV=>eV['prototype']&&eT['every'](eW=>eV['prototype'][eW]!==undefined),eU);};f['findModule']=function(eX,eY,eZ,f0){if(!d['ObjectUtils']['is'](d['ModuleUtils']['cached'][eX]))d['ModuleUtils']['cached'][eX]={'module':{},'export':{}};if(f0&&d['ModuleUtils']['cached'][eX]['export'][eY])return d['ModuleUtils']['cached'][eX]['export'][eY];else if(!f0&&d['ModuleUtils']['cached'][eX]['module'][eY])return d['ModuleUtils']['cached'][eX]['module'][eY];else{var f1=d['ModuleUtils']['find'](eZ,f0);if(f1){if(f0)d['ModuleUtils']['cached'][eX]['export'][eY]=f1;else d['ModuleUtils']['cached'][eX]['module'][eY]=f1;return f1;}else d['LogUtils']['warn'](eY+'\x20['+eX+']\x20not\x20found\x20in\x20WebModules');}};f['getWebModuleReq']=function(){if(!f['getWebModuleReq']['req']){const f2='BDFDB-WebModules';const f3=window['webpackJsonp']['push']([[],{[f2]:(f4,f5,f3)=>f4['exports']=f3},[[f2]]]);delete f3['m'][f2];delete f3['c'][f2];f['getWebModuleReq']['req']=f3;}return f['getWebModuleReq']['req'];};var f7={};f7['Patchtypes']=['before','instead','after'];f7['Patchmap']={'BannedCard':'BannedUser','ChannelWindow':'Channel','InvitationCard':'InviteRow','InviteCard':'InviteRow','MemberCard':'Member','PopoutContainer':'Popout','QuickSwitchResult':'Result','UserProfile':'UserProfileBody','WebhookCard':'Webhook'};f7['ForceObserve']=['DirectMessage','GuildIcon'];f7['DefaultRender']=['DiscordTag','InviteModalUserRow','NameTag','Mention','Message','MessageHeader','MessageTimestamp','SystemMessage','SimpleMessageAccessories','UserInfo'];f7['MemoComponent']=['MessageContent'];f7['NonPrototype']=[]['concat'](f7['DefaultRender'],f7['MemoComponent'],['ChannelTextAreaContainer']);f7['LoadedInComponents']={'AutocompleteChannelResult':'AutocompleteComponents.Channel','AutocompleteUserResult':'AutocompleteComponents.User','QuickSwitchChannelResult':'QuickSwitchComponents.Channel','QuickSwitchGroupDMResult':'QuickSwitchComponents.GroupDM','QuickSwitchGuildResult':'QuickSwitchComponents.Guild','QuickSwitchUserResult':'QuickSwitchComponents.User'};f7['Patchfinder']={'Account':'accountinfo','App':'app','AppSkeleton':'app','AppView':'appcontainer','AuthWrapper':'loginscreen','BannedCard':'guildsettingsbannedcard','ChannelMember':'member','ChannelTextAreaForm':'chatform','ChannelWindow':'chatcontent','DirectMessage':'guildouter','EmojiPicker':'emojipicker','FriendRow':'friendsrow','Guild':'guildouter','GuildIcon':'avataricon','GuildSettingsBans':'guildsettingsbannedcard','GuildSettingsEmoji':'guildsettingsemojicard','GuildSettingsMembers':'guildsettingsmembercard','GuildSidebar':'guildchannels','I18nLoaderWrapper':'app','InstantInviteModal':'invitemodalwrapper','InvitationCard':'invitemodalinviterow','InviteCard':'guildsettingsinvitecard','PopoutContainer':'popout','PrivateChannelCall':'callcurrentcontainer','PrivateChannelCallParticipants':'callcurrentcontainer','PrivateChannelRecipientsInvitePopout':'searchpopoutdmaddpopout','PrivateChannelsList':'dmchannelsscroller','QuickSwitchChannelResult':'quickswitchresult','QuickSwitchGuildResult':'quickswitchresult','QuickSwitchResult':'quickswitchresult','MemberCard':'guildsettingsmembercard','Messages':'messages','MessagesPopout':'messagespopout','MutualGuilds':'userprofilebody','MutualFriends':'userprofilebody','NameTag':'nametag','Note':'usernote','SearchResults':'searchresultswrap','TypingUsers':'typing','UnreadDMs':'guildsscroller','Upload':'uploadmodal','UserHook':'auditloguserhook','UserPopout':'userpopout','UserProfile':'userprofile','V2C_ContentColumn':'contentcolumn','V2C_List':'_repolist','V2C_PluginCard':'_repoheader','V2C_ThemeCard':'_repoheader'};f7['GlobalModules']={};try{f7['GlobalModules']['V2C_ContentColumn']=V2C_ContentColumn;}catch(f8){d['LogUtils']['warn']('Could\x20not\x20find\x20global\x20Module\x20\x22V2C_ContentColumn\x22');}try{f7['GlobalModules']['V2C_List']=V2C_List;}catch(f9){d['LogUtils']['warn']('Could\x20not\x20find\x20global\x20Module\x20\x22V2C_List\x22');}try{f7['GlobalModules']['V2C_PluginCard']=V2C_PluginCard;}catch(fa){d['LogUtils']['warn']('Could\x20not\x20find\x20global\x20Module\x20\x22V2C_PluginCard\x22');}try{f7['GlobalModules']['V2C_ThemeCard']=V2C_ThemeCard;}catch(fb){d['LogUtils']['warn']('Could\x20not\x20find\x20global\x20Module\x20\x22V2C_ThemeCard\x22');}d['ModuleUtils']['isPatched']=function(fc,fd,fe){if(!fc||!d['ObjectUtils']['is'](fd)||!fd['BDFDBpatch']||!fe)return![];const ff=(typeof fc==='string'?fc:fc['name'])['toLowerCase']();return ff&&fd[fe]&&fd[fe]['__isBDFDBpatched']&&fd['BDFDBpatch'][fe]&&Object['keys'](fd['BDFDBpatch'][fe])['some'](fg=>Object['keys'](fd['BDFDBpatch'][fe][fg])['includes'](ff));};d['ModuleUtils']['patch']=function(fh,fi,fj,fk,fl=![]){if(!fh||!d['ObjectUtils']['is'](fi)||!fj||!d['ObjectUtils']['is'](fk))return null;fk=d['ObjectUtils']['filter'](fk,fm=>f7['Patchtypes']['includes'](fm),!![]);if(d['ObjectUtils']['isEmpty'](fk))return null;const fn=typeof fh==='string'?fh:fh['name'];const fo=fn['toLowerCase']();if(!fi['BDFDBpatch'])fi['BDFDBpatch']={};fj=[fj]['flat'](0xa)['filter'](fp=>fp);for(let fq of fj)if(fi[fq]==null||typeof fi[fq]=='function'){if(!fi['BDFDBpatch'][fq]||fl&&(!fi[fq]||!fi[fq]['__isBDFDBpatched'])){if(!fi['BDFDBpatch'][fq]){fi['BDFDBpatch'][fq]={};for(let fr of f7['Patchtypes'])fi['BDFDBpatch'][fq][fr]={};}if(!fi[fq])fi[fq]=c=>{};const ft=fi[fq];fi['BDFDBpatch'][fq]['originalMethod']=ft;fi[fq]=function(){let fu=![],fv=![];const fw={'thisObject':this,'methodArguments':arguments,'originalMethod':ft,'originalMethodName':fq,'callOriginalMethod':c=>{if(!fv)fw['returnValue']=fw['originalMethod']['apply'](fw['thisObject'],fw['methodArguments']);},'callOriginalMethodAfterwards':c=>{fu=!![];},'stopOriginalMethodCall':c=>{fv=!![];}};if(fi['BDFDBpatch']&&fi['BDFDBpatch'][fq]){if(!d['ObjectUtils']['isEmpty'](fi['BDFDBpatch'][fq]['before']))for(let fA in d['ObjectUtils']['sort'](fi['BDFDBpatch'][fq]['before'])){d['TimeUtils']['suppress'](fi['BDFDBpatch'][fq]['before'][fA],'\x22before\x22\x20callback\x20of\x20'+fq+'\x20in\x20'+(fi['constructor']?fi['constructor']['displayName']||fi['constructor']['name']:'module'),fi['BDFDBpatch'][fq]['before'][fA]['pluginName'])(fw);}let fB=!d['ObjectUtils']['isEmpty'](fi['BDFDBpatch'][fq]['instead']);if(fB)for(let fA in d['ObjectUtils']['sort'](fi['BDFDBpatch'][fq]['instead'])){let fD=d['TimeUtils']['suppress'](fi['BDFDBpatch'][fq]['instead'][fA],'\x22instead\x22\x20callback\x20of\x20'+fq+'\x20in\x20'+(fi['constructor']?fi['constructor']['displayName']||fi['constructor']['name']:'module'),fi['BDFDBpatch'][fq]['instead'][fA]['pluginName'])(fw);if(fD!==undefined)fw['returnValue']=fD;}if((!fB||fu)&&!fv)d['TimeUtils']['suppress'](fw['callOriginalMethod'],'originalMethod\x20of\x20'+fq+'\x20in\x20'+(fi['constructor']?fi['constructor']['displayName']||fi['constructor']['name']:'module'))();if(!d['ObjectUtils']['isEmpty'](fi['BDFDBpatch'][fq]['after']))for(let fA in d['ObjectUtils']['sort'](fi['BDFDBpatch'][fq]['after'])){let fD=d['TimeUtils']['suppress'](fi['BDFDBpatch'][fq]['after'][fA],'\x22after\x22\x20callback\x20of\x20'+fq+'\x20in\x20'+(fi['constructor']?fi['constructor']['displayName']||fi['constructor']['name']:'module'),fi['BDFDBpatch'][fq]['after'][fA]['pluginName'])(fw);if(fD!==undefined)fw['returnValue']=fD;}}else d['TimeUtils']['suppress'](fw['callOriginalMethod'],'originalMethod\x20of\x20'+fq+'\x20in\x20'+(fi['constructor']?fi['constructor']['displayName']||fi['constructor']['name']:'module'))();fu=![],fv=![];return fq=='render'&&fw['returnValue']===undefined?null:fw['returnValue'];};for(let fG of Object['keys'](ft))fi[fq][fG]=ft[fG];fi[fq]['__originalMethod']=ft;fi[fq]['__isBDFDBpatched']=!![];}for(let fH in fk)if(typeof fk[fH]=='function'){fi['BDFDBpatch'][fq][fH][fo]=fk[fH];fi['BDFDBpatch'][fq][fH][fo]['pluginName']=fn;}}let fI=c=>{d['ModuleUtils']['unpatch'](fh,fi,fj);};if(d['ObjectUtils']['is'](fh)){if(!d['ArrayUtils']['is'](fh['patchCancels']))fh['patchCancels']=[];fh['patchCancels']['push'](fI);}return fI;};d['ModuleUtils']['unpatch']=function(fK,fL,fM){if(!fL&&!fM){if(d['ObjectUtils']['is'](fK)&&d['ArrayUtils']['is'](fK['patchCancels'])){for(let fN of fK['patchCancels'])fN();fK['patchCancels']=[];}}else{if(!d['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 f7['Patchtypes']){if(fU)delete fL['BDFDBpatch'][fT][fV][fU];else delete fL['BDFDBpatch'][fT][fV];}let fW=!![];for(let fV of f7['Patchtypes'])if(!d['ObjectUtils']['isEmpty'](fL['BDFDBpatch'][fT][fV]))fW=![];if(fW){fL[fT]=fL['BDFDBpatch'][fT]['originalMethod'];delete fL['BDFDBpatch'][fT];if(d['ObjectUtils']['isEmpty'](fL['BDFDBpatch']))delete fL['BDFDBpatch'];}}};d['ModuleUtils']['forceAllUpdates']=function(fY,fZ){if(d['ObjectUtils']['is'](fY)&&d['ObjectUtils']['is'](fY['patchedModules'])){const g0=document['querySelector'](d['dotCN']['app']);const g1=document['querySelector']('#bd-settingspane-container\x20'+d['dotCN']['scrollerwrap']);if(g0){let g2=[],g3={};for(let g4 in fY['patchedModules'])for(let g5 in fY['patchedModules'][g4]){let g6=[fY['patchedModules'][g4][g5]]['flat'](0xa)['filter'](g7=>g7);if(g6['includes']('componentDidMount')||g6['includes']('componentDidUpdate')||g6['includes']('render')){g2['push'](g5);let g8=g5['split']('\x20_\x20_\x20')[0x0];if(!g3[g8])g3[g8]=[];g3[g8]['push'](g4);}}fZ=[fZ]['flat'](0xa)['filter'](g9=>g9);if(fZ['length']){fZ=fZ['map'](ga=>ga&&f7['Patchmap'][ga]?f7['Patchmap'][ga]+'\x20_\x20_\x20'+ga:ga);g2=g2['filter'](gb=>fZ['indexOf'](gb)>-0x1);}g2=d['ArrayUtils']['removeCopies'](g2);if(g2['length']){try{const gc=d['ReactUtils']['findOwner'](g0,{'name':g2,'all':!![],'group':!![],'unlimited':!![]});const gd=d['ReactUtils']['findOwner'](g0,{'name':g2,'all':!![],'group':!![],'unlimited':!![],'up':!![]});for(let g5 in gc)for(let gf of gc[g5])f['forceInitiateProcess'](fY,gf,g5,g3[g5]);for(let g5 in gd)for(let gf of gd[g5])f['forceInitiateProcess'](fY,gf,g5,g3[g5]);if(g1){const gi=d['ReactUtils']['findOwner'](g1,{'name':g2,'all':!![],'group':!![],'unlimited':!![]});for(let g5 in gi)for(let gf of gi[g5])f['forceInitiateProcess'](fY,gf,g5,g3[g5]);}}catch(gl){d['LogUtils']['error']('Could\x20not\x20force\x20update\x20components!\x20'+gl,fY['name']);}}}}};f['forceInitiateProcess']=function(gm,gn,go,gp){if(!gm||!gn||!go)return;let gq=[];for(let gr in gm['patchedModules'])if(gm['patchedModules'][gr][go])gq['push'](gm['patchedModules'][gr][go]);gq=d['ArrayUtils']['removeCopies'](gq)['flat'](0xa)['filter'](gs=>gs);if(gq['includes']('componentDidMount'))f['initiateProcess'](gm,go,{'instance':gn,'methodname':'componentDidMount','patchtypes':gp});if(gq['includes']('render'))d['ReactUtils']['forceUpdate'](gn);else if(gq['includes']('componentDidUpdate'))f['initiateProcess'](gm,go,{'instance':gn,'methodname':'componentDidUpdate','patchtypes':gp});};f['initiateProcess']=function(gt,gu,gv){if(d['ObjectUtils']['is'](gt)&&!gt['stopping']&&gv['instance']){let gw=gt['name']=='$BDFDB';if(gt['name']=='$BDFDB')gt=f;gu=(gu['split']('\x20_\x20_\x20')[0x1]||gu)['replace'](/[^A-z0-9]|_/g,'');gu=gu['charAt'](0x0)['toUpperCase']()+gu['slice'](0x1);if(typeof gt['process'+gu]=='function'){let gx=!gw&>['process'+gu]['toString']()['split']('\x0a')[0x0]['replace'](/ /g,'')['split'](',')['length']>0x1;if(gx){if(gv['methodname']=='render'){if(gv['returnvalue'])gt['process'+gu](gv['instance'],null,gv['returnvalue'],[gv['methodname']]);}else{let gy=d['ReactUtils']['findDOMNode'](gv['instance']);if(gy)gt['process'+gu](gv['instance'],gy,gv['returnvalue'],[gv['methodname']]);else d['TimeUtils']['timeout'](c=>{gy=d['ReactUtils']['findDOMNode'](gv['instance']);if(gy)gt['process'+gu](gv['instance'],gy,gv['returnvalue'],[gv['methodname']]);});}}else{if(typeof gv['methodname']=='string'&&(gv['methodname']['indexOf']('componentDid')==0x0||gv['methodname']['indexOf']('componentWill')==0x0)){gv['node']=d['ReactUtils']['findDOMNode'](gv['instance']);if(gv['node'])gt['process'+gu](gv);else d['TimeUtils']['timeout'](c=>{gv['node']=d['ReactUtils']['findDOMNode'](gv['instance']);if(gv['node'])gt['process'+gu](gv);});}else if(gv['returnvalue']||gv['patchtypes']['includes']('before'))gt['process'+gu](gv);}}}};f['patchPlugin']=function(gB){if(!d['ObjectUtils']['is'](gB)||!d['ObjectUtils']['is'](gB['patchedModules']))return;d['ModuleUtils']['unpatch'](gB);for(let gC in gB['patchedModules'])for(let gD in gB['patchedModules'][gC]){if(f7['GlobalModules'][gD]&&typeof f7['GlobalModules'][gD]=='function')gI(f7['GlobalModules'][gD],gD,gC);else{let gE=f7['LoadedInComponents'][gD]&&d['ReactUtils']['getValue'](Ao,f7['LoadedInComponents'][gD]);if(gE)gI(gE,gD,gC);else{let gF=f7['Patchmap'][gD];let gG=f7['Patchfinder'][gD['split']('\x20_\x20_\x20')[0x1]||gD];let gH=gF?gF+'\x20_\x20_\x20'+gD:gD;if(gF){gB['patchedModules'][gC][gH]=gB['patchedModules'][gC][gD];delete gB['patchedModules'][gC][gD];}if(f7['DefaultRender']['includes'](gD['split']('\x20_\x20_\x20')[0x1]||gD))gI((d['ModuleUtils']['findByName'](gH['split']('\x20_\x20_\x20')[0x0],![])||{})['exports'],gH,gC,!![]);else if(f7['MemoComponent']['includes'](gD['split']('\x20_\x20_\x20')[0x1]||gD))gI((d['ModuleUtils']['findByName'](gH['split']('\x20_\x20_\x20')[0x0],![])||{'exports':{}})['exports']['default'],gH,gC,!![]);else if(!gG)gI(d['ModuleUtils']['findByName'](gH['split']('\x20_\x20_\x20')[0x0]),gH,gC);else if(zr[gG])gQ(gG,gH,gC,f7['ForceObserve']['includes'](gD['split']('\x20_\x20_\x20')[0x1]||gD));}}}function gI(gJ,gK,gL,gM){if(gJ){let gN=gK['split']('\x20_\x20_\x20')[0x0];gJ=gJ['_reactInternalFiber']&&gJ['_reactInternalFiber']['type']?gJ['_reactInternalFiber']['type']:gJ;gJ=gM||f['isInstanceCorrect'](gJ,gN)||f7['LoadedInComponents'][gK]?gJ:d['ReactUtils']['findConstructor'](gJ,gN)||d['ReactUtils']['findConstructor'](gJ,gN,{'up':!![]});if(gJ){gJ=gJ['_reactInternalFiber']&&gJ['_reactInternalFiber']['type']?gJ['_reactInternalFiber']['type']:gJ;let gO={};gO[gL]=gP=>{f['initiateProcess'](gB,gK,{'instance':window!=gP['thisObject']?gP['thisObject']:{'props':gP['methodArguments'][0x0]},'returnvalue':gP['returnValue'],'methodname':gP['originalMethodName'],'patchtypes':[gL]});};d['ModuleUtils']['patch'](gB,f7['NonPrototype']['includes'](gN)?gJ:gJ['prototype'],gB['patchedModules'][gL][gK],gO);}}}function gQ(gR,gS,gT,gU){const gV=document['querySelector'](d['dotCN']['app']),gW=document['querySelector']('#bd-settingspane-container\x20'+d['dotCN']['scrollerwrap']);let gX=![];if(!gU){if(gV){let gY=d['ReactUtils']['findConstructor'](gV,gS,{'unlimited':!![]})||d['ReactUtils']['findConstructor'](gV,gS,{'unlimited':!![],'up':!![]});if(gY&&(gX=!![]))gI(gY,gS,gT);}if(!gX&&gW){let gZ=d['ReactUtils']['findConstructor'](gW,gS,{'unlimited':!![]});if(gZ&&(gX=!![]))gI(gZ,gS,gT);}}if(!gX){let h0=![],h1=d['disCN'][gR],h2=d['dotCN'][gR];for(let h3 of document['querySelectorAll'](h2)){let h4=d['ReactUtils']['getInstance'](h3);if(hb(h4,gS)){h0=!![];gI(h4,gS,gT);d['ModuleUtils']['forceAllUpdates'](gB,gS);break;}}if(!h0){let h5=new MutationObserver(h6=>{h6['forEach'](h7=>{h7['addedNodes']['forEach'](h8=>{if(h0||!h8||!h8['tagName'])return;let h3=null;if((h3=d['DOMUtils']['containsClass'](h8,h1)?h8:h8['querySelector'](h2))!=null){let h4=d['ReactUtils']['getInstance'](h3);if(hb(h4,gS)){h0=!![];h5['disconnect']();gI(h4,gS,gT);d['ModuleUtils']['forceAllUpdates'](gB,gS);}}});});});d['ObserverUtils']['connect'](gB,d['dotCN']['appmount'],{'name':'checkForInstanceObserver','instance':h5,'multi':!![]},{'childList':!![],'subtree':!![]});}}}function hb(hc,hd){if(!hc)return![];hc=hc['_reactInternalFiber']&&hc['_reactInternalFiber']['type']?hc['_reactInternalFiber']['type']:hc;hc=f['isInstanceCorrect'](hc,hd)?hc:d['ReactUtils']['findConstructor'](hc,hd)||d['ReactUtils']['findConstructor'](hc,hd,{'up':!![]});return!!hc;}};f['isInstanceCorrect']=function(he,hf){return he&&(he['type']&&(he['type']['render']&&he['type']['render']['displayName']===hf||he['type']['displayName']===hf||he['type']['name']===hf||he['type']===hf)||he['render']&&(he['render']['displayName']===hf||he['render']['name']===hf)||he['displayName']==hf||he['name']===hf);};f['addContextListeners']=function(hg){for(let hh of Bv['NormalContextMenus'])if(typeof hg['on'+hh]==='function')f['patchContextMenuPlugin'](hg,hh,Ao['ContextMenus'][hh]);for(let hi of Bv['FluxContextMenus'])if(typeof hg['on'+hi]==='function'){if(d['InternalData']['componentPatchQueries'][hi]['module'])f['patchContextMenuPlugin'](hg,hi,d['InternalData']['componentPatchQueries'][hi]['module']);else{d['InternalData']['componentPatchQueries'][hi]['query']['push'](hg);d['InternalData']['componentPatchQueries'][hi]['query']['sort']((hj,hk)=>{return hj['name']hk['name']?0x1:0x0;});}}for(let hl of Bv['QueuedComponents'])if(typeof hg['on'+hl]==='function'){if(d['InternalData']['componentPatchQueries'][hl]['module'])f['patchExportedContextMenuPlugin'](hg,hl,d['InternalData']['componentPatchQueries'][hl]['module']);else{d['InternalData']['componentPatchQueries'][hl]['query']['push'](hg);d['InternalData']['componentPatchQueries'][hl]['query']['sort']((hm,hn)=>{return hm['name']hn['name']?0x1:0x0;});}}};f['patchContextMenuPlugin']=function(ho,hp,hq){if(hq&&hq['prototype']){let hr=ho['on'+hp]['toString']()['split']('\x0a')[0x0]['replace'](/ /g,'')['split'](',')['length']>0x1;if(hr){d['ModuleUtils']['patch'](ho,hq['prototype'],'render',{'after':hs=>{let ht=hs['thisObject'],hu=d['ReactUtils']['findDOMNode'](hs['thisObject']),hv=hs['returnValue'];if(ht&&hu&&hv&&typeof ho['on'+hp]==='function')ho['on'+hp](ht,hu,hv);}});}else{d['ModuleUtils']['patch'](ho,hq['prototype'],'render',{'after':hw=>{if(hw['thisObject']&&hw['returnValue']&&typeof ho['on'+hp]==='function')ho['on'+hp]({'instance':hw['thisObject'],'returnvalue':hw['returnValue'],'methodname':'render'});}});}}};f['patchExportedContextMenuPlugin']=function(hx,hy,hz){if(hz&&hz['exports']){let hA=hx['on'+hy]['toString']()['split']('\x0a')[0x0]['replace'](/ /g,'')['split'](',')['length']>0x1;if(hA)d['ModuleUtils']['patch'](hx,hz['exports'],'default',{'after':hB=>{if(hB['returnValue']&&typeof hx['on'+hy]==='function')hx['on'+hy]({'props':hB['methodArguments'][0x0]},document,hB['returnValue']);}});else d['ModuleUtils']['patch'](hx,hz['exports'],'default',{'after':hC=>{if(hC['returnValue']&&typeof hx['on'+hy]==='function')hx['on'+hy]({'instance':{'props':hC['methodArguments'][0x0]},'returnvalue':hC['returnValue'],'methodname':'default'});}});}};f['executeExtraPatchedPatches']=function(hD,hE){if(d['ObjectUtils']['is'](d['InternalData']['componentPatchQueries'][hD])&&d['ArrayUtils']['is'](d['InternalData']['componentPatchQueries'][hD]['query']))for(let hF of d['InternalData']['componentPatchQueries'][hD]['query'])if(hE['returnvalue']&&typeof hF['on'+hD]==='function')hF['on'+hD](hE);};f['patchContextMenuLib']=function(hG,hH){if(hG&&hG['prototype']){d['ModuleUtils']['patch'](d,hG['prototype'],'componentDidMount',{'after':hI=>{if(!hI['thisObject']['BDFDBforceRenderTimeout']&&typeof hI['thisObject']['render']=='function')hI['thisObject']['render']();}});d['ModuleUtils']['patch'](d,hG['prototype'],'componentDidUpdate',{'after':hJ=>{var hK=d['ReactUtils']['findDOMNode'](hJ['thisObject']);if(hK){const hL=d['ReactUtils']['getValue'](hJ,'thisObject._reactInternalFiber.stateNode.props.onHeightUpdate');const hM=d['DOMUtils']['getRects'](hK),hN=d['DOMUtils']['getRects'](document['querySelector'](d['dotCN']['appmount']));if(hL&&hM['top']+hM['height']>hN['height'])hL();}}});d['ModuleUtils']['patch'](d,hG['prototype'],'render',{'after':hO=>{if(hO['thisObject']['props']['BDFDBcontextMenu']&&hO['thisObject']['props']['children']&&hO['returnValue']&&hO['returnValue']['props']){hO['returnValue']['props']['children']=hO['thisObject']['props']['children'];delete hO['thisObject']['props']['value'];delete hO['thisObject']['props']['children'];delete hO['thisObject']['props']['BDFDBcontextMenu'];}if(d['ReactUtils']['findDOMNode'](hO['thisObject'])){hO['thisObject']['BDFDBforceRenderTimeout']=!![];d['TimeUtils']['timeout'](c=>{delete hO['thisObject']['BDFDBforceRenderTimeout'];},0x3e8);}if(hH){let hQ=d['ReactUtils']['getValue'](hO,'thisObject._reactInternalFiber.child.type');if(hQ&&hQ['displayName']&&d['InternalData']['componentPatchQueries'][hQ['displayName']]&&!d['InternalData']['componentPatchQueries'][hQ['displayName']]['module']){d['InternalData']['componentPatchQueries'][hQ['displayName']]['module']=hQ;f['patchContextMenuLib'](hQ,![]);while(d['InternalData']['componentPatchQueries'][hQ['displayName']]['query']['length'])f['patchContextMenuPlugin'](d['InternalData']['componentPatchQueries'][hQ['displayName']]['query']['pop'](),hQ['displayName'],hQ);}}}});}};f['patchExportedContextMenuLib']=function(hR,hS,hT){let hU=d['ModuleUtils']['find'](hV=>hV==hR['type'],![]);if(hU&&hU['exports']&&hU['exports']['default']){if(!Ao['ContextMenus'][hS]){Ao['ContextMenus'][hS]=hU['exports']['default'];d['LibraryComponents']['ContextMenus'][hS]=hU['exports']['default'];}if(!Ao['ContextMenus']['_Exports'][hS]){Ao['ContextMenus']['_Exports'][hS]=hU['exports'];d['LibraryComponents']['ContextMenus']['_Exports'][hS]=hU['exports'];}if(d['InternalData']['componentPatchQueries'][hS]&&!d['InternalData']['componentPatchQueries'][hS]['module']){d['InternalData']['componentPatchQueries'][hS]['module']=hU;while(d['InternalData']['componentPatchQueries'][hS]['query']['length'])f['patchExportedContextMenuPlugin'](d['InternalData']['componentPatchQueries'][hS]['query']['pop'](),hS,hU);let hW=hT&&d['ReactUtils']['getValue'](hR,'memoizedProps.onClose');if(typeof hW=='function')hW();}if(!hU['exports']['default']['displayName'])hU['exports']['default']['displayName']=hS;}};f['getContextMenuType']=function(hX,hY){if(hX){if(hX=='MessageContextMenu'&&hY&&hY['type']!=Ao['ContextMenus']['MessageContextMenu'])return'MessageOptionContextMenu';else if(hX['endsWith']('ContextMenu'))return hX;else if(Ao['ContextMenus']['_Types']['includes'](hX)){if(hX['indexOf']('USER_')==0x0)return'UserContextMenu';else if(hX['indexOf']('CHANNEL_')==0x0)return'ChannelContextMenu';else if(hX['indexOf']('GUILD_')==0x0)return'GuildContextMenu';}}return null;};d['DiscordConstants']=d['ModuleUtils']['findByProperties']('Permissions','ActivityTypes');var hZ={};hZ['Channel']=d['ModuleUtils']['findByPrototypes']('getRecipientId','isManaged','getGuildId');hZ['Guild']=d['ModuleUtils']['findByPrototypes']('getIconURL','getMaxEmojiSlots','getRole');hZ['Invite']=d['ModuleUtils']['findByPrototypes']('getExpiresAt','isExpired');hZ['Message']=d['ModuleUtils']['findByPrototypes']('getReaction','getAuthorName','getChannelId');hZ['Messages']=d['ModuleUtils']['findByPrototypes']('jumpToMessage','hasAfterCached','forEach');hZ['Timestamp']=d['ModuleUtils']['findByPrototypes']('add','dayOfYear','hasAlignedHourOffset');hZ['User']=d['ModuleUtils']['findByPrototypes']('hasFlag','isLocalBot','isClaimed');d['DiscordObjects']=Object['assign']({},hZ);var i0={};for(let i1 of['child_process','electron','fs','path','process','request']){try{i0[i1]=require(i1);}catch(i2){}}d['LibraryRequires']=Object['assign']({},i0);var i3={};i3['AckUtils']=d['ModuleUtils']['findByProperties']('localAck','bulkAck');i3['APIUtils']=d['ModuleUtils']['findByProperties']('getAPIBaseURL');i3['AnalyticsUtils']=d['ModuleUtils']['findByProperties']('isThrottled','track');i3['AnimationUtils']=d['ModuleUtils']['findByProperties']('spring','decay');i3['BadgeUtils']=d['ModuleUtils']['findByProperties']('getBadgeCountString','getBadgeWidthForValue');i3['CategoryCollapseStore']=d['ModuleUtils']['findByProperties']('getCollapsedCategories','isCollapsed');i3['CategoryCollapseUtils']=d['ModuleUtils']['findByProperties']('categoryCollapse','categoryCollapseAll');i3['ChannelStore']=d['ModuleUtils']['findByProperties']('getChannel','getChannels');i3['ColorUtils']=d['ModuleUtils']['findByProperties']('hex2int','hex2rgb');i3['ContextMenuUtils']=d['ModuleUtils']['findByProperties']('closeContextMenu','openContextMenu');i3['CopyLinkUtils']=d['ModuleUtils']['findByProperties']('SUPPORTS_COPY','copy');i3['CurrentUserStore']=d['ModuleUtils']['findByProperties']('getCurrentUser');i3['CurrentVoiceUtils']=d['ModuleUtils']['findByProperties']('getAveragePing','isConnected');i3['DirectMessageStore']=d['ModuleUtils']['findByProperties']('getPrivateChannelIds','getPrivateChannelTimestamps');i3['DirectMessageUnreadStore']=d['ModuleUtils']['findByProperties']('getUnreadPrivateChannelIds');i3['DispatchApiUtils']=d['ModuleUtils']['findByProperties']('dirtyDispatch','isDispatching');i3['DispatchUtils']=d['ModuleUtils']['findByProperties']('ComponentDispatch');i3['DirectMessageUtils']=d['ModuleUtils']['findByProperties']('addRecipient','openPrivateChannel');i3['FriendUtils']=d['ModuleUtils']['findByProperties']('getFriendIDs','getRelationships');i3['FolderStore']=d['ModuleUtils']['findByProperties']('getGuildFolderById','getFlattenedGuilds');i3['FolderUtils']=d['ModuleUtils']['findByProperties']('isFolderExpanded','getExpandedFolders');i3['GuildBoostUtils']=d['ModuleUtils']['findByProperties']('getTierName','getUserLevel');i3['GuildChannelStore']=d['ModuleUtils']['findByProperties']('getChannels','getDefaultChannel');i3['GuildEmojiStore']=d['ModuleUtils']['findByProperties']('getGuildEmoji','getDisambiguatedEmojiContext');i3['GuildSettingsUtils']=d['ModuleUtils']['findByProperties']('updateChannelOverrideSettings','updateNotificationSettings');i3['GuildStore']=d['ModuleUtils']['findByProperties']('getGuild','getGuilds');i3['GuildUtils']=d['ModuleUtils']['findByProperties']('transitionToGuildSync');i3['HistoryUtils']=d['ModuleUtils']['findByProperties']('transitionTo','replaceWith','getHistory');;i3['IconUtils']=d['ModuleUtils']['findByProperties']('getGuildIconURL','getGuildBannerURL');i3['InviteUtils']=d['ModuleUtils']['findByProperties']('acceptInvite','createInvite');i3['KeyCodeUtils']=Object['assign']({},d['ModuleUtils']['findByProperties']('toCombo','keyToCode'));i3['KeyCodeUtils']['getString']=function(i4){return i3['KeyCodeUtils']['toString']([i4]['flat'](0xa)['filter'](i5=>i5)['map'](i6=>[d['DiscordConstants']['KeyboardDeviceTypes']['KEYBOARD_KEY'],i6,d['DiscordConstants']['KeyboardEnvs']['BROWSER']]),!![]);};i3['KeyEvents']=d['ModuleUtils']['findByProperties']('aliases','code','codes');i3['LanguageStore']=d['ModuleUtils']['findByProperties']('getLanguages','Messages');i3['LastChannelStore']=d['ModuleUtils']['findByProperties']('getLastSelectedChannelId');i3['LastGuildStore']=d['ModuleUtils']['findByProperties']('getLastSelectedGuildId');i3['LoginUtils']=d['ModuleUtils']['findByProperties']('login','logout');i3['MemberStore']=d['ModuleUtils']['findByProperties']('getMember','getMembers');i3['MessagePinUtils']=d['ModuleUtils']['findByProperties']('pinMessage','unpinMessage');i3['MessageStore']=d['ModuleUtils']['findByProperties']('getMessage','getMessages');i3['MessageUtils']=d['ModuleUtils']['findByProperties']('receiveMessage','editMessage');i3['ModalUtils']=d['ModuleUtils']['findByProperties']('openModal','hasModalOpen');i3['MutedUtils']=d['ModuleUtils']['findByProperties']('isGuildOrCategoryOrChannelMuted');i3['NoteStore']=d['ModuleUtils']['findByProperties']('getNotes','getNote');i3['NotificationSettingsUtils']=d['ModuleUtils']['findByProperties']('setDesktopType','setTTSType');i3['NotificationSettingsStore']=d['ModuleUtils']['findByProperties']('getDesktopType','getTTSType');i3['PlatformUtils']=d['ModuleUtils']['findByProperties']('isWindows','isLinux');i3['PermissionUtils']=d['ModuleUtils']['findByProperties']('getChannelPermissions','canUser');i3['PermissionRoleUtils']=d['ModuleUtils']['findByProperties']('getHighestRole','can');i3['QuoteUtils']=d['ModuleUtils']['findByProperties']('canQuote','createQuotedText');i3['ReactionUtils']=d['ModuleUtils']['findByProperties']('addReaction','removeReaction');i3['SearchPageUtils']=d['ModuleUtils']['findByProperties']('searchNextPage','searchPreviousPage');i3['SelectChannelUtils']=d['ModuleUtils']['findByProperties']('selectChannel','selectPrivateChannel');i3['SettingsUtils']=d['ModuleUtils']['findByProperties']('updateRemoteSettings','updateLocalSettings');i3['SoundUtils']=d['ModuleUtils']['findByProperties']('playSound','createSound');i3['SpellCheckUtils']=d['ModuleUtils']['findByProperties']('learnWord','toggleSpellcheck');i3['SlateUtils']=d['ModuleUtils']['findByProperties']('serialize','deserialize');i3['SlateSelectionUtils']=d['ModuleUtils']['findByProperties']('serialize','serializeSelection');i3['StateStoreUtils']=d['ModuleUtils']['findByProperties']('useStateFromStores','useStateFromStoresArray');i3['StatusMetaUtils']=d['ModuleUtils']['findByProperties']('getApplicationActivity','getStatus');i3['StoreUtils']=d['ModuleUtils']['findByProperties']('get','set','clear','remove');i3['StreamUtils']=d['ModuleUtils']['findByProperties']('getStreamForUser','getActiveStream');i3['StringUtils']=d['ModuleUtils']['findByProperties']('cssValueToNumber','upperCaseFirstChar');i3['UnreadGuildUtils']=d['ModuleUtils']['findByProperties']('hasUnread','getUnreadGuilds');i3['UnreadChannelUtils']=d['ModuleUtils']['findByProperties']('getUnreadCount','getOldestUnreadMessageId');i3['UploadUtils']=d['ModuleUtils']['findByProperties']('upload','instantBatchUpload');i3['UserNameUtils']=d['ModuleUtils']['findByProperties']('getName','getNickname');i3['UserStore']=d['ModuleUtils']['findByProperties']('getUser','getUsers');i3['Utilities']=d['ModuleUtils']['findByProperties']('flatMap','cloneDeep');i3['VoiceUtils']=d['ModuleUtils']['findByProperties']('getAllVoiceStates','getVoiceStatesForChannel');i3['ZoomUtils']=d['ModuleUtils']['findByProperties']('setZoom','setFontSize');d['LibraryModules']=Object['assign']({},i3);i3['React']=d['ModuleUtils']['findByProperties']('createElement','cloneElement');i3['ReactDOM']=d['ModuleUtils']['findByProperties']('render','findDOMNode');d['ReactUtils']=Object['assign']({},i3['React'],i3['ReactDOM']);d['ReactUtils']['childrenToArray']=function(i7){if(i7&&i7['props']&&i7['props']['children']&&!d['ArrayUtils']['is'](i7['props']['children'])){var i8=i7['props']['children'];i7['props']['children']=[];i7['props']['children']['push'](i8);}return i7['props']['children'];};d['ReactUtils']['createElement']=function(i9,ia){if(i9&&i9['defaultProps'])for(let ib in i9['defaultProps'])if(ia[ib]==null)ia[ib]=i9['defaultProps'][ib];try{return i3['React']['createElement'](i9||'div',ia||{})||null;}catch(ic){d['LogUtils']['error']('Fatal\x20Error:\x20Could\x20not\x20create\x20react\x20element!\x20'+ic);}return null;};d['ReactUtils']['elementToReact']=function(id){if(d['ReactUtils']['isValidElement'](id))return id;else if(!Node['prototype']['isPrototypeOf'](id))return null;else if(id['nodeType']==Node['TEXT_NODE'])return id['nodeValue'];let ie={},ig=[];for(let ih of id['attributes'])ie[ih['name']]=ih['value'];if(id['attributes']['style'])ie['style']=d['ObjectUtils']['filter'](id['style'],ii=>id['style'][ii]&&isNaN(parseInt(ii)),!![]);ie['children']=[];if(id['style']&&id['style']['cssText'])for(let ij of id['style']['cssText']['split'](';'))if(ij['endsWith']('!important')){let ik=ij['split'](':')[0x0];let il=ik['replace'](/-([a-z]?)/g,(im,io)=>io['toUpperCase']());if(ie['style'][il]!=null)ig['push'](ik);}for(let ip of id['childNodes'])ie['children']['push'](d['ReactUtils']['elementToReact'](ip));let iq=d['ReactUtils']['createElement'](id['tagName'],ie);d['ReactUtils']['forceStyle'](iq,ig);return iq;};d['ReactUtils']['forceStyle']=function(ir,is){if(!d['ReactUtils']['isValidElement'](ir)||!d['ObjectUtils']['is'](ir['props']['style'])||!d['ArrayUtils']['is'](is)||!is['length'])return;let it=ir['ref'];ir['ref']=iu=>{if(typeof it=='function')it(iu);let iv=d['ReactUtils']['findDOMNode'](iu);if(Node['prototype']['isPrototypeOf'](iv))for(let iw of is){let ix=ir['props']['style'][iw['replace'](/-([a-z]?)/g,(iy,iz)=>iz['toUpperCase']())];if(ix!=null)iv['style']['setProperty'](iw,ix,'important');}};};d['ReactUtils']['findChildren']=function(iA,iB){if(!iA||!d['ObjectUtils']['is'](iB)||!iB['name']&&!iB['key']&&!iB['props']&&!iB['filter'])return[null,-0x1];var iC=Node['prototype']['isPrototypeOf'](iA)?d['ReactUtils']['getInstance'](iA):iA;if(!d['ObjectUtils']['is'](iC)&&!d['ArrayUtils']['is'](iC))return[null,-0x1];iB['name']=iB['name']&&[iB['name']]['flat']()['filter'](iD=>iD);iB['key']=iB['key']&&[iB['key']]['flat']()['filter'](iE=>iE);iB['props']=iB['props']&&[iB['props']]['flat']()['filter'](iF=>iF);iB['filter']=typeof iB['filter']=='function'&&iB['filter'];var iG=firstarray=iC;while(!d['ArrayUtils']['is'](firstarray)&&firstarray['props']&&firstarray['props']['children'])firstarray=firstarray['props']['children'];if(!d['ArrayUtils']['is'](firstarray)){if(iG&&iG['props']){iG['props']['children']=[iG['props']['children']];firstarray=iG['props']['children'];}else firstarray=[];}return iH(iC);function iH(iI){var iJ=[firstarray,-0x1];if(!iI)return iJ;if(!d['ArrayUtils']['is'](iI)){if(iN(iI))iJ=iL(iI);else if(iI['props']&&iI['props']['children']){iG=iI;iJ=iH(iI['props']['children']);}}else{for(let iK=0x0;iJ[0x1]==-0x1&&iKf['isInstanceCorrect'](iC,iQ))||iB['key']&&iB['key']['some'](iR=>iC['key']==iR)||iP&&iB['props']&&iB['props']['every'](iS=>d['ArrayUtils']['is'](iS)?d['ArrayUtils']['is'](iS[0x1])?iS[0x1]['some'](iT=>iU(iP,iS[0x0],iT)):iU(iP,iS[0x0],iS[0x1]):iP[iS]!==undefined)||iB['filter']&&iB['filter'](iC);}function iU(iV,iW,iX){return iW!=null&&iV[iW]!=null&&iX!=null&&(iW=='className'?('\x20'+iV[iW]+'\x20')['indexOf']('\x20'+iX+'\x20')>-0x1:d['equals'](iV[iW],iX));}};d['ReactUtils']['findConstructor']=function(iY,iZ,j0={}){if(!d['ObjectUtils']['is'](j0))return null;if(!iY||!iZ)return j0['all']?j0['group']?{}:[]:null;var j1=Node['prototype']['isPrototypeOf'](iY)?d['ReactUtils']['getInstance'](iY):iY;if(!d['ObjectUtils']['is'](j1))return j0['all']?j0['group']?{}:[]:null;iZ=iZ&&[iZ]['flat'](0xa)['filter'](j2=>typeof j2=='string');if(!iZ['length'])return j0['all']?j0['group']?{}:[]:null;;var j3=-0x1;var j4=performance['now']();var j5=j0['unlimited']?0x3b9ac9ff:j0['depth']===undefined?0x1e:j0['depth'];var j6=j0['unlimited']?0x3b9ac9ff:j0['time']===undefined?0x96:j0['time'];var j7=j0['up']?{'return':!![],'sibling':!![],'default':!![],'_reactInternalFiber':!![]}:{'child':!![],'sibling':!![],'default':!![],'_reactInternalFiber':!![]};var j8=j0['group']?{}:[];var j9=jc(j1);if(j0['all']){for(let ja in j8){if(j0['group'])for(let jb in j8[ja])delete j8[ja][jb]['BDFDBreactSearch'];else delete j8[ja]['BDFDBreactSearch'];}return j8;}else return j9;function jc(j1){j3++;var je=undefined;if(j1&&!Node['prototype']['isPrototypeOf'](j1)&&!d['ReactUtils']['getInstance'](j1)&&j3(j1['type']['render']&&j1['type']['render']['displayName']||j1['type']['displayName']||j1['type']['name'])===jf['split']('\x20_\x20_\x20')[0x0])){if(j0['all']===undefined||!j0['all'])je=j1['type'];else if(j0['all']){if(!j1['type']['BDFDBreactSearch']){j1['type']['BDFDBreactSearch']=!![];if(j0['group']){if(j1['type']&&(j1['type']['render']&&j1['type']['render']['displayName']||j1['type']['displayName']||j1['type']['name'])){let jg=j0['name']['find'](jh=>(j1['type']['render']&&j1['type']['render']['displayName']||j1['type']['displayName']||j1['type']['name']||j1['type'])['split']('\x20_\x20_\x20')[0x0]==jh)||'Default';if(!d['ArrayUtils']['is'](foundinstances[jg]))foundinstances[jg]=[];foundinstances[jg]['push'](j1['stateNode']);}}else foundinstances['push'](j1['type']);}}}if(je===undefined){let ji=Object['getOwnPropertyNames'](j1);for(let jj=0x0;je===undefined&&jjjq);jo['key']=jo['key']&&[jo['key']]['flat']()['filter'](jr=>jr);jo['props']=jo['props']&&[jo['props']]['flat']()['filter'](js=>js);var jt=-0x1;var ju=performance['now']();var jv=jo['unlimited']?0x3b9ac9ff:jo['depth']===undefined?0x1e:jo['depth'];var jw=jo['unlimited']?0x3b9ac9ff:jo['time']===undefined?0x96:jo['time'];var jx=jo['up']?{'return':!![],'sibling':!![],'_reactInternalFiber':!![]}:{'child':!![],'sibling':!![],'_reactInternalFiber':!![]};var jy=jo['group']?{}:[];var jz=jC(jp);if(jo['all']){for(let jA in jy){if(jo['group'])for(let jB in jy[jA])delete jy[jA][jB]['BDFDBreactSearch'];else delete jy[jA]['BDFDBreactSearch'];}return jy;}else return jz;function jC(jp){jt++;var jE=undefined;if(jp&&!Node['prototype']['isPrototypeOf'](jp)&&!d['ReactUtils']['getInstance'](jp)&&jtf['isInstanceCorrect'](jp,jG['split']('\x20_\x20_\x20')[0x0]))||jo['key']&&jo['key']['some'](jH=>jp['key']==jH)||jF&&jo['props']&&jo['props']['every'](jI=>d['ArrayUtils']['is'](jI)?d['ArrayUtils']['is'](jI[0x1])?jI[0x1]['some'](jJ=>d['equals'](jF[jI[0x0]],jJ)):d['equals'](jF[jI[0x0]],jI[0x1]):jF[jI]!==undefined))){if(jo['all']===undefined||!jo['all'])jE=jp['stateNode'];else if(jo['all']){if(!jp['stateNode']['BDFDBreactSearch']){jp['stateNode']['BDFDBreactSearch']=!![];if(jo['group']){if(jo['name']&&jp['type']&&(jp['type']['render']&&jp['type']['render']['displayName']||jp['type']['displayName']||jp['type']['name']||jp['type'])){let jK=jo['name']['find'](jL=>(jp['type']['render']&&jp['type']['render']['displayName']||jp['type']['displayName']||jp['type']['name']||jp['type'])['split']('\x20_\x20_\x20')[0x0]==jL)||'Default';if(!d['ArrayUtils']['is'](jy[jK]))jy[jK]=[];jy[jK]['push'](jp['stateNode']);}}else jy['push'](jp['stateNode']);}}}if(jE===undefined){let jM=Object['getOwnPropertyNames'](jp);for(let jN=0x0;jE===undefined&&jNjS);jQ['key']=jQ['key']&&[jQ['key']]['flat']()['filter'](jT=>jT);var jU=-0x1;var jV=performance['now']();var jW=jQ['unlimited']?0x3b9ac9ff:jQ['depth']===undefined?0x1e:jQ['depth'];var jX=jQ['unlimited']?0x3b9ac9ff:jQ['time']===undefined?0x96:jQ['time'];var jY=jQ['up']?{'return':!![],'sibling':!![],'_reactInternalFiber':!![]}:{'child':!![],'sibling':!![],'_reactInternalFiber':!![]};return jZ(jR);function jZ(jR){jU++;var k1=undefined;if(jR&&!Node['prototype']['isPrototypeOf'](jR)&&!d['ReactUtils']['getInstance'](jR)&&jU(jR['type']['render']&&jR['type']['render']['displayName']||jR['type']['displayName']||jR['type']['name']||jR['type'])===k2['split']('\x20_\x20_\x20')[0x0])||jQ['key']&&jQ['key']['some'](k3=>jR['key']==k3)))k1=jR['memoizedProps'];if(k1===undefined){let k4=Object['getOwnPropertyNames'](jR);for(let k5=0x0;k1===undefined&&k5ku))if(kt['updater']&&typeof kt['updater']['isMounted']=='function'&&kt['updater']['isMounted'](kt))kt['forceUpdate']();};d['ReactUtils']['getInstance']=function(kv){if(!d['ObjectUtils']['is'](kv))return null;return kv[Object['keys'](kv)['find'](kw=>kw['startsWith']('__reactInternalInstance'))];};d['ReactUtils']['getValue']=function(kx,ky){if(!kx||!ky)return null;var kz=Node['prototype']['isPrototypeOf'](kx)?d['ReactUtils']['getInstance'](kx):kx;if(!d['ObjectUtils']['is'](kz))return null;var kA=kz,kB=ky['split']('.')['filter'](kC=>kC);for(value of kB){if(!kA)return null;kA=kA[value];}return kA;};d['ReactUtils']['render']=function(kD,kE){if(!d['ReactUtils']['isValidElement'](kD)||!Node['prototype']['isPrototypeOf'](kE))return;try{i3['ReactDOM']['render'](kD,kE);let kF=new MutationObserver(kG=>kG['forEach'](kH=>{let kI=Array['from'](kH['removedNodes']);if(kI['indexOf'](kE)>-0x1||kI['some'](kJ=>kJ['contains'](kE))){kF['disconnect']();d['ReactUtils']['unmountComponentAtNode'](kE);}}));kF['observe'](document['body'],{'subtree':!![],'childList':!![]});}catch(kK){d['LogUtils']['error']('Fatal\x20Error:\x20Could\x20not\x20render\x20react\x20element!\x20'+kK);}};f['setDefaultProps']=function(kL,kM){if(d['ObjectUtils']['is'](kL))kL['defaultProps']=Object['assign']({},kL['defaultProps'],kM);};d['equals']=function(kN,kO,kP){var kQ=-0x1;if(kP===undefined||typeof kP!=='boolean')kP=![];return kR(kN,kO);function kR(kS,kT){kQ++;var kU=!![];if(kQ>0x3e8)kU=null;else{if(typeof kS!==typeof kT)kU=![];else if(typeof kS==='function')kU=kS['toString']()==kT['toString']();else if(typeof kS==='undefined')kU=!![];else if(typeof kS==='symbol')kU=!![];else if(typeof kS==='boolean')kU=kS==kT;else if(typeof kS==='string')kU=kS==kT;else if(typeof kS==='number'){if(isNaN(kS)||isNaN(kT))kU=isNaN(kS)==isNaN(kT);else kU=kS==kT;}else if(!kS&&!kT)kU=!![];else if(!kS||!kT)kU=![];else if(typeof kS==='object'){var kV=Object['getOwnPropertyNames'](kS);var kW=Object['getOwnPropertyNames'](kT);if(kV['length']!==kW['length'])kU=![];else for(let kX=0x0;kU===!![]&&kX{let l0=d['ReactUtils']['findOwner'](document['querySelector'](d['dotCN']['app']),{'name':'Messages','unlimited':!![]});let l1=d['ReactUtils']['getValue'](l0,'_reactInternalFiber.type.prototype');if(l0&&l1){let l2=d['ModuleUtils']['patch']({'name':'tempPatch'},l1,'render',{'after':l3=>{l2();let [l4,l5]=d['ReactUtils']['findChildren'](l3['returnValue'],{'props':['message','channel']});if(l5>-0x1){for(let l6 in l4)l4[l6]['props']['message']=new d['DiscordObjects']['Message']({'author':new d['DiscordObjects']['User']({})});d['ReactUtils']['forceUpdate'](l3['thisObject']);}}});d['ReactUtils']['forceUpdate'](l0);}},0xbb8);};d['UserUtils']={};var l7=i3['CurrentUserStore']?i3['CurrentUserStore']['getCurrentUser']():null;d['UserUtils']['is']=function(l8){return l8&&l8 instanceof d['DiscordObjects']['User'];};d['UserUtils']['me']=new Proxy(l7||{},{'get':function(l9,la){if(!l7)l7=i3['CurrentUserStore']['getCurrentUser']();return l7?l7[la]:null;}});d['UserUtils']['getStatus']=function(lb=d['UserUtils']['me']['id']){lb=typeof lb=='number'?lb['toFixed']():lb;let lc=d['UserUtils']['getActivitiy'](lb);return lc&&lc['type']==d['DiscordConstants']['ActivityTypes']['STREAMING']?'streaming':i3['StatusMetaUtils']['getStatus'](lb);};d['UserUtils']['getStatusColor']=function(ld){ld=typeof ld=='string'?ld['toLowerCase']():null;switch(ld){case'online':return d['DiscordConstants']['Colors']['STATUS_GREEN'];case'mobile':return d['DiscordConstants']['Colors']['STATUS_GREEN'];case'idle':return d['DiscordConstants']['Colors']['STATUS_YELLOW'];case'dnd':return d['DiscordConstants']['Colors']['STATUS_RED'];case'playing':return d['DiscordConstants']['Colors']['BRAND'];case'listening':return d['DiscordConstants']['Colors']['SPOTIFY'];case'streaming':return d['DiscordConstants']['Colors']['TWITCH'];default:return d['DiscordConstants']['Colors']['STATUS_GREY'];}};d['UserUtils']['getActivitiy']=function(le=d['UserUtils']['me']['id']){for(let lf of i3['StatusMetaUtils']['getActivities'](le))if(lf['type']!=d['DiscordConstants']['ActivityTypes']['CUSTOM_STATUS'])return lf;return null;};d['UserUtils']['getAvatar']=function(lg=d['UserUtils']['me']['id']){var lh=i3['UserStore']['getUser'](typeof lg=='number'?lg['toFixed']():lg);if(!lh)return window['location']['origin']+'/assets/322c936a8c8be1b803cd94861bdfa868.png';else return((lh['avatar']?'':window['location']['origin'])+i3['IconUtils']['getUserAvatarURL'](lh))['split']('?')[0x0];};d['UserUtils']['can']=function(li,lj=d['UserUtils']['me']['id'],lk=i3['LastChannelStore']['getChannelId']()){if(!d['DiscordConstants']['Permissions'][li])d['LogUtils']['warn'](li+'\x20not\x20found\x20in\x20Permissions');else{var ll=i3['ChannelStore']['getChannel'](lk);if(ll)return i3['PermissionUtils']['canUser'](lj,d['DiscordConstants']['Permissions'][li],ll);}return![];};d['GuildUtils']={};d['GuildUtils']['is']=function(lm){return lm&&lm instanceof d['DiscordObjects']['Guild'];};d['GuildUtils']['getIcon']=function(ln){var lo=i3['GuildStore']['getGuild'](typeof ln=='number'?ln['toFixed']():ln);if(!lo||!lo['icon'])return null;return i3['IconUtils']['getGuildIconURL'](lo)['split']('?')[0x0];};d['GuildUtils']['getBanner']=function(lp){var lq=i3['GuildStore']['getGuild'](typeof lp=='number'?lp['toFixed']():lp);if(!lq||!lq['banner'])return null;return i3['IconUtils']['getGuildBannerURL'](lq)['split']('?')[0x0];};d['GuildUtils']['getFolder']=function(lr){return d['LibraryModules']['FolderStore']['guildFolders']['filter'](ls=>ls['folderId'])['find'](lt=>lt['guildIds']['includes'](lr));};d['GuildUtils']['getId']=function(lu){if(!Node['prototype']['isPrototypeOf'](lu)||!d['ReactUtils']['getInstance'](lu))return;let lv=d['DOMUtils']['getParent'](d['dotCN']['guildouter'],lu);if(!lv)return;var lw=lv['querySelector'](d['dotCN']['guildiconwrapper']);var lx=lw&&lw['href']?lw['href']['split']('/')['slice'](-0x2)[0x0]:null;return lx&&!isNaN(parseInt(lx))?lx['toString']():null;};d['GuildUtils']['getData']=function(ly){if(!ly)return null;let lz=Node['prototype']['isPrototypeOf'](ly)?d['GuildUtils']['getId'](ly):typeof ly=='object'?ly['id']:ly;lz=typeof lz=='number'?lz['toFixed']():lz;for(let lA of d['GuildUtils']['getAll']())if(lA&&lA['id']==lz)return lA;return null;};d['GuildUtils']['getAll']=function(){var lB=[],lC=[];for(let lD of d['ReactUtils']['findOwner'](document['querySelector'](d['dotCN']['guilds']),{'name':['Guild','GuildIcon'],'all':!![],'unlimited':!![]})){if(lD['props']&&lD['props']['guild'])lC['push'](Object['assign'](new lD['props']['guild']['constructor'](lD['props']['guild']),{'div':lD['handleContextMenu']&&d['ReactUtils']['findDOMNode'](lD),'instance':lD}));}for(let lE of d['LibraryModules']['FolderStore']['getFlattenedGuildIds']()){let lF=null;for(let lG of lC)if(lG['id']==lE){lF=lG;break;}if(lF)lB['push'](lF);else{let lH=d['LibraryModules']['GuildStore']['getGuild'](lE);lB['push'](Object['assign'](new lH['constructor'](lH),{'div':null,'instance':null}));}}return lB;};d['GuildUtils']['getUnread']=function(lI){var lJ=[];for(let lK of lI===undefined||!d['ArrayUtils']['is'](lI)?d['GuildUtils']['getAll']():lI){if(!lK)return null;let lL=Node['prototype']['isPrototypeOf'](lK)?d['GuildUtils']['getId'](lK):typeof lK=='object'?lK['id']:lK;lL=typeof lL=='number'?lL['toFixed']():lL;if(lL&&(i3['UnreadGuildUtils']['hasUnread'](lL)||i3['UnreadGuildUtils']['getMentionCount'](lL)>0x0))lJ['push'](lK);}return lJ;};d['GuildUtils']['getPinged']=function(lM){var lN=[];for(let lO of lM===undefined||!d['ArrayUtils']['is'](lM)?d['GuildUtils']['getAll']():lM){if(!lO)return null;let lP=Node['prototype']['isPrototypeOf'](lO)?d['GuildUtils']['getId'](lO):typeof lO=='object'?lO['id']:lO;lP=typeof lP=='number'?lP['toFixed']():lP;if(lP&&i3['UnreadGuildUtils']['getMentionCount'](lP)>0x0)lN['push'](lO);}return lN;};d['GuildUtils']['getMuted']=function(lQ){var lR=[];for(let lS of lQ===undefined||!d['ArrayUtils']['is'](lQ)?d['GuildUtils']['getAll']():lQ){if(!lS)return null;let lT=Node['prototype']['isPrototypeOf'](lS)?d['GuildUtils']['getId'](lS):typeof lS=='object'?lS['id']:lS;lT=typeof lT=='number'?lT['toFixed']():lT;if(lT&&i3['MutedUtils']['isGuildOrCategoryOrChannelMuted'](lT))lR['push'](lS);}return lR;};d['GuildUtils']['getSelected']=function(){var lU=i3['GuildStore']['getGuild'](i3['LastGuildStore']['getGuildId']());if(lU)return d['GuildUtils']['getData'](lU['id'])||Object['assign'](new lU['constructor'](lU),{'div':null,'instance':null});else return null;};d['GuildUtils']['openMenu']=function(lV,lW=d['InternalData']['mousePosition']){if(!lV)return;let lX=Node['prototype']['isPrototypeOf'](lV)?d['GuildUtils']['getId'](lV):typeof lV=='object'?lV['id']:lV;let lY=i3['GuildStore']['getGuild'](lX);if(lY)i3['ContextMenuUtils']['openContextMenu'](lW,function(lW){return d['ReactUtils']['createElement'](Ao['ContextMenus']['_Exports']['GuildContextMenu']&&Ao['ContextMenus']['_Exports']['GuildContextMenu']['default'],Object['assign']({},lW,{'type':d['DiscordConstants']['ContextMenuTypes']['GUILD_ICON_BAR'],'guild':lY,'badge':i3['UnreadGuildUtils']['getMentionCount'](lY['id']),'link':d['DiscordConstants']['Routes']['CHANNEL'](lY['id'],i3['LastChannelStore']['getChannelId'](lY['id'])),'selected':lY['id']==i3['LastGuildStore']['getGuildId']()}));});};d['GuildUtils']['markAsRead']=function(m0){if(!m0)return;var m1=[];for(let m2 of d['ArrayUtils']['is'](m0)?m0:typeof m0=='string'||typeof m0=='number'?Array['of'](m0):Array['from'](m0)){let m3=Node['prototype']['isPrototypeOf'](m2)?d['GuildUtils']['getId'](m2):m2&&typeof m2=='object'?m2['id']:m2;let m4=m3&&i3['GuildChannelStore']['getChannels'](m3);if(m4)for(let m5 in m4)if(d['ArrayUtils']['is'](m4[m5]))for(let m6 of m4[m5])m1['push'](m6['channel']['id']);}if(m1['length'])i3['AckUtils']['bulkAck'](m1);};d['FolderUtils']={};d['FolderUtils']['getId']=function(m7){if(!Node['prototype']['isPrototypeOf'](m7)||!d['ReactUtils']['getInstance'](m7))return;m7=d['DOMUtils']['getParent'](d['dotCN']['guildfolderwrapper'],m7);if(!m7)return;return d['ReactUtils']['findValue'](m7,'folderId',{'up':!![]});};d['FolderUtils']['getDefaultName']=function(m8){let m9=d['LibraryModules']['FolderStore']['getGuildFolderById'](m8);if(!m9)return'';let ma=0x2*d['DiscordConstants']['MAX_GUILD_FOLDER_NAME_LENGTH'];let mb=[],mc=m9['guildIds']['map'](md=>(d['LibraryModules']['GuildStore']['getGuild'](md)||{})['name'])['filter'](me=>me);for(let i1 of mc)if(i1['length']{i3['AckUtils']['ack'](na[nd]);},nd*0x3e8);};d['DataUtils']={};d['DataUtils']['cached']=window['BDFDB']&&window['BDFDB']['DataUtils']&&window['BDFDB']['DataUtils']['cached']||{};d['DataUtils']['save']=function(nf,ng,nh,ni){let nj,nk;if(!d['BDUtils']['isBDv2']()){nk=typeof ng==='string'?ng:ng['name'];nj=i0['path']['join'](d['BDUtils']['getPluginsFolder'](),nk+'.config.json');}else{nk=typeof ng==='string'?ng['toLowerCase']():null;let nl=nk?d['Plugins'][nk]?d['Plugins'][nk]['contentPath']:null:ng['contentPath'];if(!nl)return;nj=i0['path']['join'](nl,'settings.json');}let nm=d['DataUtils']['cached'][nk]!==undefined?d['DataUtils']['cached'][nk]:f['readConfig'](nj)||{};if(nh===undefined)nm=d['ObjectUtils']['is'](nf)?d['ObjectUtils']['sort'](nf):nf;else{if(ni===undefined)nm[nh]=d['ObjectUtils']['is'](nf)?d['ObjectUtils']['sort'](nf):nf;else{if(!d['ObjectUtils']['is'](nm[nh]))nm[nh]={};nm[nh][ni]=d['ObjectUtils']['is'](nf)?d['ObjectUtils']['sort'](nf):nf;}}let nn=d['ObjectUtils']['is'](nm);if(nh!==undefined&&nn&&d['ObjectUtils']['is'](nm[nh])&&d['ObjectUtils']['isEmpty'](nm[nh]))delete nm[nh];if(d['ObjectUtils']['isEmpty'](nm)){delete d['DataUtils']['cached'][nk];if(i0['fs']['existsSync'](nj))i0['fs']['unlinkSync'](nj);}else{if(nn)nm=d['ObjectUtils']['sort'](nm);d['DataUtils']['cached'][nk]=nn?d['ObjectUtils']['deepAssign']({},nm):nm;i0['fs']['writeFileSync'](nj,JSON['stringify'](nm,null,'\x09'));}};d['DataUtils']['load']=function(no,np,nq){let nr,ns;if(!d['BDUtils']['isBDv2']()){ns=typeof no==='string'?no:no['name'];nr=i0['path']['join'](d['BDUtils']['getPluginsFolder'](),ns+'.config.json');}else{ns=typeof no==='string'?no['toLowerCase']():null;let nt=ns?d['Plugins'][ns]?d['Plugins'][ns]['contentPath']:null:no['contentPath'];if(!nt)return{};nr=i0['path']['join'](nt,'settings.json');}let nu=d['DataUtils']['cached'][ns]!==undefined?d['DataUtils']['cached'][ns]:f['readConfig'](nr)||{};let nv=d['ObjectUtils']['is'](nu);d['DataUtils']['cached'][ns]=nv?d['ObjectUtils']['deepAssign']({},nu):nu;if(np===undefined)return nu;else{let nw=nv?d['ObjectUtils']['is'](nu[np])||nu[np]==undefined?d['ObjectUtils']['deepAssign']({},nu[np]):nu[np]:null;if(nq===undefined)return nw;else return!d['ObjectUtils']['is'](nw)||nw[nq]===undefined?null:nw[nq];}};d['DataUtils']['remove']=function(nx,ny,nz){let nA,nB;if(!d['BDUtils']['isBDv2']()){nB=typeof nx==='string'?nx:nx['name'];nA=i0['path']['join'](d['BDUtils']['getPluginsFolder'](),nB+'.config.json');}else{nB=typeof nx==='string'?nx['toLowerCase']():null;let nC=nB?d['Plugins'][nB]?d['Plugins'][nB]['contentPath']:null:nx['contentPath'];if(!nC)return;nA=i0['path']['join'](nC,'settings.json');}let nD=d['DataUtils']['cached'][nB]!==undefined?d['DataUtils']['cached'][nB]:f['readConfig'](nA)||{};let nE=d['ObjectUtils']['is'](nD);if(ny===undefined||!nE)nD={};else{if(nz===undefined)delete nD[ny];else if(d['ObjectUtils']['is'](nD[ny]))delete nD[ny][nz];}if(d['ObjectUtils']['is'](nD[ny])&&d['ObjectUtils']['isEmpty'](nD[ny]))delete nD[ny];if(d['ObjectUtils']['isEmpty'](nD)){delete d['DataUtils']['cached'][nB];if(i0['fs']['existsSync'](nA))i0['fs']['unlinkSync'](nA);}else{if(nE)nD=d['ObjectUtils']['sort'](nD);d['DataUtils']['cached'][nB]=nE?d['ObjectUtils']['deepAssign']({},nD):nD;i0['fs']['writeFileSync'](nA,JSON['stringify'](nD,null,'\x09'));}};d['DataUtils']['get']=function(nF,nG,nH){nF=typeof nF=='string'?d['BDUtils']['getPlugin'](nF):nF;if(!d['ObjectUtils']['is'](nF))return nH===undefined?{}:null;let nI=(nF['name']=='$BDFDB'?f:nF)['defaults'];if(!d['ObjectUtils']['is'](nI)||!nI[nG])return nH===undefined?{}:null;var nJ=d['DataUtils']['load'](nF,nG),nK={},nL=![];for(let nM in nI[nG]){if(nJ[nM]==null){nK[nM]=d['ObjectUtils']['is'](nI[nG][nM]['value'])?d['ObjectUtils']['deepAssign']({},nI[nG][nM]['value']):nI[nG][nM]['value'];nL=!![];}else nK[nM]=nJ[nM];}if(nL)d['DataUtils']['save'](nK,nF,nG);if(nH===undefined)return nK;else return nK[nH]===undefined?null:nK[nH];};f['readConfig']=function(nN){try{return JSON['parse'](i0['fs']['readFileSync'](nN));}catch(nO){return{};}};d['ColorUtils']={};d['ColorUtils']['convert']=function(nP,nQ,nR){if(d['ObjectUtils']['is'](nP)){var nS={};for(let nT in nP)nS[nT]=d['ColorUtils']['convert'](nP[nT],nQ,nR);return nS;}else{nQ=nQ===undefined||!nQ?nQ='RGBCOMP':nQ['toUpperCase']();nR=nR===undefined||!nR||!['RGB','RGBA','RGBCOMP','HSL','HSLA','HSLCOMP','HEX','HEXA','INT']['includes'](nR['toUpperCase']())?d['ColorUtils']['getType'](nP):nR['toUpperCase']();if(nQ=='RGBCOMP'){switch(nR){case'RGBCOMP':if(nP['length']==0x3)return ot(nP);else if(nP['length']==0x4){let nU=ow(nP['pop']());return ot(nP)['concat'](nU);}break;case'RGB':return ot(nP['replace'](/\s/g,'')['slice'](0x4,-0x1)['split'](','));case'RGBA':let nV=nP['replace'](/\s/g,'')['slice'](0x5,-0x1)['split'](',');let nU=ow(nV['pop']());return ot(nV)['concat'](nU);case'HSLCOMP':if(nP['length']==0x3)return d['ColorUtils']['convert']('hsl('+oA(nP)['join'](',')+')','RGBCOMP');else if(nP['length']==0x4){let nX=ow(nP['pop']());return d['ColorUtils']['convert']('hsl('+oA(nP)['join'](',')+')','RGBCOMP')['concat'](nX);}break;case'HSL':var nY=oA(nP['replace'](/\s/g,'')['slice'](0x4,-0x1)['split'](','));var nZ,o0,o1,o2,o3,o4,o5,o6;var o7=nY[0x0]/0x168,o8=parseInt(nY[0x1])/0x64,o9=parseInt(nY[0x2])/0x64;o2=Math['floor'](o7*0x6);o3=o7*0x6-o2;o4=o9*(0x1-o8);o5=o9*(0x1-o3*o8);o6=o9*(0x1-(0x1-o3)*o8);switch(o2%0x6){case 0x0:nZ=o9,o0=o6,o1=o4;break;case 0x1:nZ=o5,o0=o9,o1=o4;break;case 0x2:nZ=o4,o0=o9,o1=o6;break;case 0x3:nZ=o4,o0=o5,o1=o9;break;case 0x4:nZ=o6,o0=o4,o1=o9;break;case 0x5:nZ=o9,o0=o4,o1=o5;break;}return[Math['round'](nZ*0xff),Math['round'](o0*0xff),Math['round'](o1*0xff)];case'HSLA':var nY=nP['replace'](/\s/g,'')['slice'](0x5,-0x1)['split'](',');return d['ColorUtils']['convert']('hsl('+nY['slice'](0x0,0x3)['join'](',')+')','RGBCOMP')['concat'](ow(nY['pop']()));case'HEX':var ob=/^#([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'](nP);return[parseInt(ob[0x1]+ob[0x1]||ob[0x4],0x10)['toString'](),parseInt(ob[0x2]+ob[0x2]||ob[0x5],0x10)['toString'](),parseInt(ob[0x3]+ob[0x3]||ob[0x6],0x10)['toString']()];case'HEXA':var ob=/^#([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'](nP);return[parseInt(ob[0x1]+ob[0x1]||ob[0x5],0x10)['toString'](),parseInt(ob[0x2]+ob[0x2]||ob[0x6],0x10)['toString'](),parseInt(ob[0x3]+ob[0x3]||ob[0x7],0x10)['toString'](),Math['floor'](d['NumberUtils']['mapRange']([0x0,0xff],[0x0,0x64],parseInt(ob[0x4]+ob[0x4]||ob[0x8],0x10)['toString']()))/0x64];case'INT':nP=oE(nP);return[(nP>>0x10&0xff)['toString'](),(nP>>0x8&0xff)['toString'](),(nP&0xff)['toString']()];default:return null;}}else{var od=nR=='RGBCOMP'?nP:d['ColorUtils']['convert'](nP,'RGBCOMP',nR);if(od)switch(nQ){case'RGB':return'rgb('+ot(od['slice'](0x0,0x3))['join'](',')+')';case'RGBA':od=od['slice'](0x0,0x4);var oe=od['length']==0x4?ow(od['pop']()):0x1;return'rgba('+ot(od)['concat'](oe)['join'](',')+')';case'HSLCOMP':var oe=od['length']==0x4?ow(od['pop']()):null;var nY=oA(d['ColorUtils']['convert'](od,'HSL')['replace'](/\s/g,'')['split'](','));return oe!=null?nY['concat'](oe):nY;case'HSL':var nZ=or(od[0x0]),o0=or(od[0x1]),o1=or(od[0x2]);var ok=Math['max'](nZ,o0,o1),ol=Math['min'](nZ,o0,o1),om=ok-ol,o7,o8=ok===0x0?0x0:om/ok,o9=ok/0xff;switch(ok){case ol:o7=0x0;break;case nZ:o7=o0-o1+om*(o00xff?0xff:o3<0x0?0x0:o3;}};function ot(ou){return ou['map'](o3=>{return or(o3);});};function ow(oe){if(oe==null){return 0x1;}else{oe=oe['toString']();oe=(oe['indexOf']('%')>-0x1?0.01:0x1)*parseFloat(oe['replace'](/[^0-9\.\-]/g,''));return isNaN(oe)||oe>0x1?0x1:oe<0x0?0x0:oe;}};function oy(oz){if(oz==null){return'100%';}else{oz=parseFloat(oz['toString']()['replace'](/[^0-9\.\-]/g,''));return(isNaN(oz)||oz>0x64?0x64:oz<0x0?0x0:oz)+'%';}};function oA(oB){let o7=parseFloat(oB['shift']()['toString']()['replace'](/[^0-9\.\-]/g,''));o7=isNaN(o7)||o7>0x168?0x168:o7<0x0?0x0:o7;return[o7]['concat'](oB['map'](oD=>{return oy(oD);}));};function oE(o3){if(o3==null){return 0xffffff;}else{o3=parseInt(o3['toString']()['replace'](/[^0-9]/g,''));return isNaN(o3)||o3>0xffffff?0xffffff:o3<0x0?0x0:o3;}};};d['ColorUtils']['setAlpha']=function(oG,oH,oI){if(d['ObjectUtils']['is'](oG)){var oJ={};for(let oK in oG)oJ[oK]=d['ColorUtils']['setAlpha'](oG[oK],oH,oI);return oJ;}else{var oL=d['ColorUtils']['convert'](oG,'RGBCOMP');if(oL){oH=oH['toString']();oH=(oH['indexOf']('%')>-0x1?0.01:0x1)*parseFloat(oH['replace'](/[^0-9\.\-]/g,''));oH=isNaN(oH)||oH>0x1?0x1:oH<0x0?0x0:oH;oL[0x3]=oH;oI=(oI||d['ColorUtils']['getType'](oG))['toUpperCase']();oI=oI=='RGB'||oI=='HSL'||oI=='HEX'?oI+'A':oI;return d['ColorUtils']['convert'](oL,oI);}}return null;};d['ColorUtils']['getAlpha']=function(oM){var oN=d['ColorUtils']['convert'](oM,'RGBCOMP');if(oN){if(oN['length']==0x3)return 0x1;else if(oN['length']==0x4){let oO=oN[0x3]['toString']();oO=(oO['indexOf']('%')>-0x1?0.01:0x1)*parseFloat(oO['replace'](/[^0-9\.\-]/g,''));return isNaN(oO)||oO>0x1?0x1:oO<0x0?0x0:oO;}}return null;};d['ColorUtils']['change']=function(oP,oQ,oR){oQ=parseFloat(oQ);if(oP!=null&&typeof oQ=='number'&&!isNaN(oQ)){if(d['ObjectUtils']['is'](oP)){var oS={};for(let oT in oP)oS[oT]=d['ColorUtils']['change'](oP[oT],oQ,oR);return oS;}else{var oU=d['ColorUtils']['convert'](oP,'RGBCOMP');if(oU){if(parseInt(oQ)!==oQ){oQ=oQ['toString']();oQ=(oQ['indexOf']('%')>-0x1?0.01:0x1)*parseFloat(oQ['replace'](/[^0-9\.\-]/g,''));oQ=isNaN(oQ)?0x0:oQ;return d['ColorUtils']['convert']([Math['round'](oU[0x0]*(0x1+oQ)),Math['round'](oU[0x1]*(0x1+oQ)),Math['round'](oU[0x2]*(0x1+oQ))],oR||d['ColorUtils']['getType'](oP));}else return d['ColorUtils']['convert']([Math['round'](oU[0x0]+oQ),Math['round'](oU[0x1]+oQ),Math['round'](oU[0x2]+oQ)],oR||d['ColorUtils']['getType'](oP));}}}return null;};d['ColorUtils']['invert']=function(oV,oW){if(d['ObjectUtils']['is'](oV)){var oX={};for(let oY in oV)oX[oY]=d['ColorUtils']['invert'](oV[oY],oW);return oX;}else{var oZ=d['ColorUtils']['convert'](oV,'RGBCOMP');if(oZ)return d['ColorUtils']['convert']([0xff-oZ[0x0],0xff-oZ[0x1],0xff-oZ[0x2]],oW||d['ColorUtils']['getType'](oV));}return null;};d['ColorUtils']['compare']=function(p0,p1){if(p0&&p1){p0=d['ColorUtils']['convert'](p0,'RGBA');p1=d['ColorUtils']['convert'](p1,'RGBA');if(p0&&p1)return d['equals'](p0,p1);}return null;};d['ColorUtils']['isBright']=function(p2,p3=0xa0){p2=d['ColorUtils']['convert'](p2,'RGBCOMP');if(!p2)return![];return parseInt(p3)