diff --git a/Plugins/BDFDB.js b/Plugins/BDFDB.js
index dfed3745df..6ae9647f37 100644
--- a/Plugins/BDFDB.js
+++ b/Plugins/BDFDB.js
@@ -19,7 +19,7 @@
creationTime: performance.now()
}),
BDv2Api: window.BDFDB && window.BDFDB.BDv2Api || undefined,
- name: "$BDFDB"
+ name: "BDFDB"
};
var loadid = Math.round(Math.random() * 10000000000000000), InternalBDFDB = {};
BDFDB.InternalData.loadid = loadid;
@@ -36,19 +36,13 @@
BDFDB.LogUtils = {};
BDFDB.LogUtils.log = function (string, name) {
- if (typeof string != "string") string = "";
- if (typeof name != "string" || name == "$BDFDB") name = "BDFDB";
- console.log(`%c[${name}]`, "color: #3a71c1; font-weight: 700;", string.trim());
+ console.log(`%c[${typeof name == "string" && name || "BDFDB"}]`, "color: #3a71c1; font-weight: 700;", (typeof string == "string" && string || "").trim());
};
BDFDB.LogUtils.warn = function (string, name) {
- if (typeof string != "string") string = "";
- if (typeof name != "string" || name == "$BDFDB") name = "BDFDB";
- console.warn(`%c[${name}]`, "color: #3a71c1; font-weight: 700;", string.trim());
+ console.warn(`%c[${typeof name == "string" && name || "BDFDB"}]`, "color: #3a71c1; font-weight: 700;", (typeof string == "string" && string || "").trim());
};
BDFDB.LogUtils.error = function (string, name) {
- if (typeof string != "string") string = "";
- if (typeof name != "string" || name == "$BDFDB") name = "BDFDB";
- console.error(`%c[${name}]`, "color: #3a71c1; font-weight: 700;", "Fatal Error: " + string.trim());
+ console.error(`%c[${typeof name == "string" && name || "BDFDB"}]`, "color: #3a71c1; font-weight: 700;", "Fatal Error: " + (typeof string == "string" && string || "").trim());
};
BDFDB.LogUtils.log("Loading library.");
@@ -288,7 +282,7 @@
let settingspanel = BDFDB.DOMUtils.create(`
`);
BDFDB.ReactUtils.render(BDFDB.ReactUtils.createElement(InternalComponents.LibraryComponents.SettingsPanel, {
key: `${plugin.name}-settingspanel`,
- title: plugin.name == "$BDFDB" ? "BDFDB" : plugin.name,
+ title: plugin.name,
children
}), settingspanel);
return settingspanel;
@@ -1123,15 +1117,16 @@
BDFDB.ModuleUtils.isPatched = function (plugin, module, methodName) {
if (!plugin || !BDFDB.ObjectUtils.is(module) || !module.BDFDBpatch || !methodName) return false;
const pluginId = (typeof plugin === "string" ? plugin : plugin.name).toLowerCase();
- return pluginId && module[methodName] && module[methodName].__isBDFDBpatched && module.BDFDBpatch[methodName] && Object.keys(module.BDFDBpatch[methodName]).some(patchfunc => Object.keys(module.BDFDBpatch[methodName][patchfunc]).includes(pluginId));
+ return pluginId && module[methodName] && module[methodName].__isBDFDBpatched && module.BDFDBpatch[methodName] && BDFDB.ObjectUtils.toArray(module.BDFDBpatch[methodName]).some(patchObj => BDFDB.ObjectUtils.toArray(patchObj).some(priorityObj => Object.keys(priorityObj).includes(pluginId)));
};
- BDFDB.ModuleUtils.patch = function (plugin, module, methodNames, patchfunctions, forceRepatch = false) {
- if (!plugin || !BDFDB.ObjectUtils.is(module) || !methodNames || !BDFDB.ObjectUtils.is(patchfunctions)) return null;
- patchfunctions = BDFDB.ObjectUtils.filter(patchfunctions, type => WebModulesData.Patchtypes.includes(type), true);
- if (BDFDB.ObjectUtils.isEmpty(patchfunctions)) return null;
+ BDFDB.ModuleUtils.patch = function (plugin, module, methodNames, patchMethods, forceRepatch = false) {
+ if (!plugin || !BDFDB.ObjectUtils.is(module) || !methodNames || !BDFDB.ObjectUtils.is(patchMethods)) return null;
+ patchMethods = BDFDB.ObjectUtils.filter(patchMethods, type => WebModulesData.Patchtypes.includes(type), true);
+ if (BDFDB.ObjectUtils.isEmpty(patchMethods)) return null;
const pluginName = typeof plugin === "string" ? plugin : plugin.name;
const pluginId = pluginName.toLowerCase();
- if (!module.BDFDBpatch) module.BDFDBpatch = {};
+ const patchPriority = BDFDB.ObjectUtils.is(plugin) && !isNaN(plugin.patchPriority) ? (plugin.patchPriority < 0 ? 0 : (plugin.patchPriority > 10 ? 10 : Math.round(plugin.patchPriority))) : 5;
+ if (!BDFDB.ObjectUtils.is(module.BDFDBpatch)) module.BDFDBpatch = {};
methodNames = [methodNames].flat(10).filter(n => n);
for (let methodName of methodNames) if (module[methodName] == null || typeof module[methodName] == "function") {
let i = 0;
@@ -1155,17 +1150,17 @@
stopOriginalMethodCall: _ => {stopCall = true;}
};
if (module.BDFDBpatch && module.BDFDBpatch[methodName]) {
- if (!BDFDB.ObjectUtils.isEmpty(module.BDFDBpatch[methodName].before)) for (let id in BDFDB.ObjectUtils.sort(module.BDFDBpatch[methodName].before)) {
- BDFDB.TimeUtils.suppress(module.BDFDBpatch[methodName].before[id], `"before" callback of ${methodName} in ${module.constructor ? (module.constructor.displayName || module.constructor.name) : "module"}`, module.BDFDBpatch[methodName].before[id].pluginName)(data);
+ for (let priority in module.BDFDBpatch[methodName].before) for (let id in BDFDB.ObjectUtils.sort(module.BDFDBpatch[methodName].before[priority])) {
+ BDFDB.TimeUtils.suppress(module.BDFDBpatch[methodName].before[priority][id], `"before" callback of ${methodName} in ${module.constructor ? (module.constructor.displayName || module.constructor.name) : "module"}`, module.BDFDBpatch[methodName].before[priority][id].pluginName)(data);
}
- let hasInsteadPatches = !BDFDB.ObjectUtils.isEmpty(module.BDFDBpatch[methodName].instead);
- if (hasInsteadPatches) for (let id in BDFDB.ObjectUtils.sort(module.BDFDBpatch[methodName].instead)) {
- let tempreturn = BDFDB.TimeUtils.suppress(module.BDFDBpatch[methodName].instead[id], `"instead" callback of ${methodName} in ${module.constructor ? (module.constructor.displayName || module.constructor.name) : "module"}`, module.BDFDBpatch[methodName].instead[id].pluginName)(data);
+ let hasInsteadPatches = BDFDB.ObjectUtils.toArray(module.BDFDBpatch[methodName].instead).some(priorityObj => !BDFDB.ObjectUtils.isEmpty(priorityObj));
+ if (hasInsteadPatches) for (let priority in module.BDFDBpatch[methodName].instead) for (let id in BDFDB.ObjectUtils.sort(module.BDFDBpatch[methodName].instead[priority])) {
+ let tempreturn = BDFDB.TimeUtils.suppress(module.BDFDBpatch[methodName].instead[priority][id], `"instead" callback of ${methodName} in ${module.constructor ? (module.constructor.displayName || module.constructor.name) : "module"}`, module.BDFDBpatch[methodName].instead[priority][id].pluginName)(data);
if (tempreturn !== undefined) data.returnValue = tempreturn;
}
if ((!hasInsteadPatches || callInstead) && !stopCall) BDFDB.TimeUtils.suppress(data.callOriginalMethod, `originalMethod of ${methodName} in ${module.constructor ? (module.constructor.displayName || module.constructor.name) : "module"}`)();
- if (!BDFDB.ObjectUtils.isEmpty(module.BDFDBpatch[methodName].after)) for (let id in BDFDB.ObjectUtils.sort(module.BDFDBpatch[methodName].after)) {
- let tempreturn = BDFDB.TimeUtils.suppress(module.BDFDBpatch[methodName].after[id], `"after" callback of ${methodName} in ${module.constructor ? (module.constructor.displayName || module.constructor.name) : "module"}`, module.BDFDBpatch[methodName].after[id].pluginName)(data);
+ for (let priority in module.BDFDBpatch[methodName].after) for (let id in BDFDB.ObjectUtils.sort(module.BDFDBpatch[methodName].after[priority])) {
+ let tempreturn = BDFDB.TimeUtils.suppress(module.BDFDBpatch[methodName].after[priority][id], `"after" callback of ${methodName} in ${module.constructor ? (module.constructor.displayName || module.constructor.name) : "module"}`, module.BDFDBpatch[methodName].after[priority][id].pluginName)(data);
if (tempreturn !== undefined) data.returnValue = tempreturn;
}
}
@@ -1180,9 +1175,10 @@
}
module[methodName].__isBDFDBpatched = true;
}
- for (let type in patchfunctions) if (typeof patchfunctions[type] == "function") {
- module.BDFDBpatch[methodName][type][pluginId] = patchfunctions[type];
- module.BDFDBpatch[methodName][type][pluginId].pluginName = pluginName;
+ for (let type in patchMethods) if (typeof patchMethods[type] == "function") {
+ if (!BDFDB.ObjectUtils.is(module.BDFDBpatch[methodName][type][patchPriority])) module.BDFDBpatch[methodName][type][patchPriority] = {};
+ module.BDFDBpatch[methodName][type][patchPriority][pluginId] = patchMethods[type];
+ module.BDFDBpatch[methodName][type][patchPriority][pluginId].pluginName = pluginName;
}
}
let cancel = _ => {BDFDB.ModuleUtils.unpatch(plugin, module, methodNames);};
@@ -1194,29 +1190,24 @@
};
BDFDB.ModuleUtils.unpatch = function (plugin, module, methodNames) {
if (!module && !methodNames) {
- if (BDFDB.ObjectUtils.is(plugin) && BDFDB.ArrayUtils.is(plugin.patchCancels)) {
- for (let cancel of plugin.patchCancels) cancel();
- plugin.patchCancels = [];
- }
+ if (BDFDB.ObjectUtils.is(plugin) && BDFDB.ArrayUtils.is(plugin.patchCancels)) while (plugin.patchCancels.length) (plugin.patchCancels.pop())();
}
else {
if (!BDFDB.ObjectUtils.is(module) || !module.BDFDBpatch) return;
- const pluginName = !plugin ? null : (typeof plugin === "string" ? plugin : plugin.name).toLowerCase();
+ const pluginId = !plugin ? null : (typeof plugin === "string" ? plugin : plugin.name).toLowerCase();
if (methodNames) {
- for (let methodName of [methodNames].flat(10).filter(n => n)) if (module[methodName] && module.BDFDBpatch[methodName]) unpatch(methodName, pluginName);
+ for (let methodName of [methodNames].flat(10).filter(n => n)) if (module[methodName] && module.BDFDBpatch[methodName]) unpatch(methodName, pluginId);
}
- else for (let patchedfunction of module.BDFDBpatch) unpatch(patchedfunction, pluginName);
+ else for (let patchedMethod of module.BDFDBpatch) unpatch(patchedMethod, pluginId);
}
- function unpatch (func, pluginName) {
+ function unpatch (funcName, pluginId) {
for (let type of WebModulesData.Patchtypes) {
- if (pluginName) delete module.BDFDBpatch[func][type][pluginName];
- else delete module.BDFDBpatch[func][type];
+ if (pluginId) delete module.BDFDBpatch[funcName][type][pluginId];
+ else delete module.BDFDBpatch[funcName][type];
}
- let empty = true;
- for (let type of WebModulesData.Patchtypes) if (!BDFDB.ObjectUtils.isEmpty(module.BDFDBpatch[func][type])) empty = false;
- if (empty) {
- module[func] = module.BDFDBpatch[func].originalMethod;
- delete module.BDFDBpatch[func];
+ if (!BDFDB.ObjectUtils.toArray(module.BDFDBpatch[funcName]).some(patchObj => BDFDB.ObjectUtils.toArray(patchObj).some(priorityObj => !BDFDB.ObjectUtils.isEmpty(priorityObj)))) {
+ module[funcName] = module.BDFDBpatch[funcName].originalMethod;
+ delete module.BDFDBpatch[funcName];
if (BDFDB.ObjectUtils.isEmpty(module.BDFDBpatch)) delete module.BDFDBpatch;
}
}
@@ -1270,8 +1261,8 @@
InternalBDFDB.initiateProcess = function (plugin, type, e) {
if (BDFDB.ObjectUtils.is(plugin) && !plugin.stopping && e.instance) {
// REMOVE
- let isLib = plugin.name == "$BDFDB";
- if (plugin.name == "$BDFDB") plugin = InternalBDFDB;
+ let isLib = plugin == BDFDB;
+ if (isLib) plugin = InternalBDFDB;
type = (type.split(" _ _ ")[1] || type).replace(/[^A-z0-9]|_/g, "");
type = type.charAt(0).toUpperCase() + type.slice(1);
if (typeof plugin["process" + type] == "function") {
@@ -1338,9 +1329,9 @@
instance = exported || InternalBDFDB.isInstanceCorrect(instance, name) || WebModulesData.LoadedInComponents[type] ? instance : (BDFDB.ReactUtils.findConstructor(instance, name) || BDFDB.ReactUtils.findConstructor(instance, name, {up:true}));
if (instance) {
instance = instance._reactInternalFiber && instance._reactInternalFiber.type ? instance._reactInternalFiber.type : instance;
- let patchfunctions = {};
- patchfunctions[patchtype] = e => {InternalBDFDB.initiateProcess(plugin, type, {instance:window != e.thisObject ? e.thisObject : {props:e.methodArguments[0]}, returnvalue:e.returnValue, methodname:e.originalMethodName, patchtypes:[patchtype]})};
- BDFDB.ModuleUtils.patch(plugin, WebModulesData.NonPrototype.includes(name) ? instance : instance.prototype, plugin.patchedModules[patchtype][type], patchfunctions);
+ let patchMethods = {};
+ patchMethods[patchtype] = e => {InternalBDFDB.initiateProcess(plugin, type, {instance:window != e.thisObject ? e.thisObject : {props:e.methodArguments[0]}, returnvalue:e.returnValue, methodname:e.originalMethodName, patchtypes:[patchtype]})};
+ BDFDB.ModuleUtils.patch(plugin, WebModulesData.NonPrototype.includes(name) ? instance : instance.prototype, plugin.patchedModules[patchtype][type], patchMethods);
}
}
}
@@ -2473,7 +2464,7 @@
BDFDB.DataUtils.get = function (plugin, key, id) {
plugin = typeof plugin == "string" ? BDFDB.BDUtils.getPlugin(plugin) : plugin;
if (!BDFDB.ObjectUtils.is(plugin)) return id === undefined ? {} : null;
- let defaults = (plugin.name == "$BDFDB" ? InternalBDFDB : plugin).defaults;
+ let defaults = (plugin == BDFDB && InternalBDFDB || plugin).defaults;
if (!BDFDB.ObjectUtils.is(defaults) || !defaults[key]) return id === undefined ? {} : null;
var oldconfig = BDFDB.DataUtils.load(plugin, key), newconfig = {}, update = false;
for (let k in defaults[key]) {
@@ -9733,6 +9724,8 @@
BDFDB.InternalData.pressedKeys = [];
});
+ BDFDB.patchPriority = 0;
+
BDFDB.patchedModules = {
before: {
MessageContent: "type",
@@ -10327,7 +10320,7 @@
BDFDB.getReactValue = BDFDB.ReactUtils.getValue;
BDFDB.WebModules = Object.assign({}, BDFDB.ModuleUtils);
- BDFDB.WebModules.patch = (module, methodNames, plugin, patchfunctions) => {return BDFDB.ModuleUtils.patch(plugin, module, methodNames, patchfunctions)};
+ BDFDB.WebModules.patch = (module, methodNames, plugin, patchMethods) => {return BDFDB.ModuleUtils.patch(plugin, module, methodNames, patchMethods)};
BDFDB.ModuleUtils.initiateProcess = InternalBDFDB.initiateProcess;
BDFDB.WebModules.initiateProcess = InternalBDFDB.initiateProcess;
diff --git a/Plugins/BDFDB.min.js b/Plugins/BDFDB.min.js
index 472250502d..922ceb0d99 100644
--- a/Plugins/BDFDB.min.js
+++ b/Plugins/BDFDB.min.js
@@ -1 +1 @@
-(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;i5['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=>{i5['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;i5['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,'');i5['fs']['writeFileSync'](i5['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'](Ac['LibraryComponents']['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(zg['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=i8['StreamUtils']['getAllApplicationStreams']()['filter'](cY=>cY['guildId']===cN['guild']['id'])['map'](cZ=>cZ['ownerId']);let d0=cX['map'](d1=>i8['UserStore']['getUser'](d1))['filter'](d2=>d2);let d3=Object['keys'](i8['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'](Ac['LibraryComponents']['GuildComponents']['Badge'],{'guild':cN['guild'],'size':i8['StringUtils']['cssValueToNumber'](z5['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'](Ac['LibraryComponents']['SvgIcon'],{'name':Ac['LibraryComponents']['SvgIcon']['Names']['SPEAKER'],'className':d['disCN']['tooltipactivityicon']}),d['ReactUtils']['createElement'](Ac['LibraryComponents']['UserSummaryItem'],{'users':d3,'max':0x6})]}):null,d0['length']?d['ReactUtils']['createElement']('div',{'className':d['disCN']['tooltiprow'],'children':[d['ReactUtils']['createElement'](Ac['LibraryComponents']['SvgIcon'],{'name':Ac['LibraryComponents']['SvgIcon']['Names']['STREAM'],'className':d['disCN']['tooltipactivityicon']}),d['ReactUtils']['createElement'](Ac['LibraryComponents']['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;let eD=f['getWebModuleReq']();for(let eE in eD['c'])if(eD['c']['hasOwnProperty'](eE)){let 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||typeof eR['__originalMethod']=='function'&&eR['__originalMethod']['toString']()['indexOf'](eS)>-0x1||typeof eR['__originalFunction']=='function'&&eR['__originalFunction']['toString']()['indexOf'](eS)>-0x1)||d['ObjectUtils']['is'](eR)&&typeof eR['type']=='function'&&eR['type']['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['NonRender']=['ContextMenuItem','DiscordTag','InviteModalUserRow','Mention','Message','MessageHeader','MessageTimestamp','NameTag','NowPlayingItem','SystemMessage','SimpleMessageAccessories','UserInfo'];f7['PropsFind']=['UnavailableGuildsButton'];f7['MemoComponent']=['MessageContent','NowPlayingHeader'];f7['NonPrototype']=[]['concat'](f7['NonRender'],f7['PropsFind'],f7['MemoComponent'],['ChannelTextAreaContainer']);f7['LoadedInComponents']={'AutocompleteChannelResult':'LibraryComponents.AutocompleteItems.Channel','AutocompleteUserResult':'LibraryComponents.AutocompleteItems.User','ContextMenuItem':'NativeSubComponents.ContextMenuItem','QuickSwitchChannelResult':'LibraryComponents.QuickSwitchItems.Channel','QuickSwitchGroupDMResult':'LibraryComponents.QuickSwitchItems.GroupDM','QuickSwitchGuildResult':'LibraryComponents.QuickSwitchItems.Guild','QuickSwitchUserResult':'LibraryComponents.QuickSwitchItems.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','Guild':'guildouter','GuildIcon':'avataricon','GuildSettingsBans':'guildsettingsbannedcard','GuildSettingsEmoji':'guildsettingsemojicard','GuildSettingsMembers':'guildsettingsmembercard','GuildSidebar':'guildchannels','I18nLoaderWrapper':'app','InstantInviteModal':'invitemodalwrapper','InvitationCard':'invitemodalinviterow','InviteCard':'guildsettingsinvitecard','PopoutContainer':'popout','Popouts':'popouts','PrivateChannelCall':'callcurrentcontainer','PrivateChannelCallParticipants':'callcurrentcontainer','PrivateChannelRecipientsInvitePopout':'searchpopoutdmaddpopout','PrivateChannelsList':'dmchannelsscroller','QuickSwitchChannelResult':'quickswitchresult','QuickSwitchGuildResult':'quickswitchresult','QuickSwitchResult':'quickswitchresult','MemberCard':'guildsettingsmembercard','Messages':'messages','MessagesPopout':'messagespopout','ModalLayer':'layermodal','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'){let fr=0x0;if(!fi['BDFDBpatch'][fq]||fl&&(!fi[fq]||!fi[fq]['__isBDFDBpatched'])){if(!fi['BDFDBpatch'][fq]){fi['BDFDBpatch'][fq]={};for(let fs of f7['Patchtypes'])fi['BDFDBpatch'][fq][fs]={};}if(!fi[fq])fi[fq]=c=>{};const fu=fi[fq];fi['BDFDBpatch'][fq]['originalMethod']=fu;fi[fq]=function(){let fv=![],fw=![];const fx={'thisObject':this,'methodArguments':arguments,'originalMethod':fu,'originalMethodName':fq,'callOriginalMethod':c=>{if(!fw)fx['returnValue']=fx['originalMethod']['apply'](fx['thisObject'],fx['methodArguments']);},'callOriginalMethodAfterwards':c=>{fv=!![];},'stopOriginalMethodCall':c=>{fw=!![];}};if(fi['BDFDBpatch']&&fi['BDFDBpatch'][fq]){if(!d['ObjectUtils']['isEmpty'](fi['BDFDBpatch'][fq]['before']))for(let fB in d['ObjectUtils']['sort'](fi['BDFDBpatch'][fq]['before'])){d['TimeUtils']['suppress'](fi['BDFDBpatch'][fq]['before'][fB],'\x22before\x22\x20callback\x20of\x20'+fq+'\x20in\x20'+(fi['constructor']?fi['constructor']['displayName']||fi['constructor']['name']:'module'),fi['BDFDBpatch'][fq]['before'][fB]['pluginName'])(fx);}let fC=!d['ObjectUtils']['isEmpty'](fi['BDFDBpatch'][fq]['instead']);if(fC)for(let fB in d['ObjectUtils']['sort'](fi['BDFDBpatch'][fq]['instead'])){let fE=d['TimeUtils']['suppress'](fi['BDFDBpatch'][fq]['instead'][fB],'\x22instead\x22\x20callback\x20of\x20'+fq+'\x20in\x20'+(fi['constructor']?fi['constructor']['displayName']||fi['constructor']['name']:'module'),fi['BDFDBpatch'][fq]['instead'][fB]['pluginName'])(fx);if(fE!==undefined)fx['returnValue']=fE;}if((!fC||fv)&&!fw)d['TimeUtils']['suppress'](fx['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 fB in d['ObjectUtils']['sort'](fi['BDFDBpatch'][fq]['after'])){let fE=d['TimeUtils']['suppress'](fi['BDFDBpatch'][fq]['after'][fB],'\x22after\x22\x20callback\x20of\x20'+fq+'\x20in\x20'+(fi['constructor']?fi['constructor']['displayName']||fi['constructor']['name']:'module'),fi['BDFDBpatch'][fq]['after'][fB]['pluginName'])(fx);if(fE!==undefined)fx['returnValue']=fE;}}else d['TimeUtils']['suppress'](fx['callOriginalMethod'],'originalMethod\x20of\x20'+fq+'\x20in\x20'+(fi['constructor']?fi['constructor']['displayName']||fi['constructor']['name']:'module'))();fv=![],fw=![];return fq=='render'&&fx['returnValue']===undefined?null:fx['returnValue'];};for(let fH of Object['keys'](fu))fi[fq][fH]=fu[fH];if(!fi[fq]['__originalFunction']){let fI=fu['__originalMethod']||fu['__originalFunction']||fu;if(typeof fI=='function')fi[fq]['__originalFunction']=fI;}fi[fq]['__isBDFDBpatched']=!![];}for(let fJ in fk)if(typeof fk[fJ]=='function'){fi['BDFDBpatch'][fq][fJ][fo]=fk[fJ];fi['BDFDBpatch'][fq][fJ][fo]['pluginName']=fn;}}let fK=c=>{d['ModuleUtils']['unpatch'](fh,fi,fj);};if(d['ObjectUtils']['is'](fh)){if(!d['ArrayUtils']['is'](fh['patchCancels']))fh['patchCancels']=[];fh['patchCancels']['push'](fK);}return fK;};d['ModuleUtils']['unpatch']=function(fM,fN,fO){if(!fN&&!fO){if(d['ObjectUtils']['is'](fM)&&d['ArrayUtils']['is'](fM['patchCancels'])){for(let fP of fM['patchCancels'])fP();fM['patchCancels']=[];}}else{if(!d['ObjectUtils']['is'](fN)||!fN['BDFDBpatch'])return;const fQ=!fM?null:(typeof fM==='string'?fM:fM['name'])['toLowerCase']();if(fO){for(let fR of[fO]['flat'](0xa)['filter'](fS=>fS))if(fN[fR]&&fN['BDFDBpatch'][fR])fU(fR,fQ);}else for(let fT of fN['BDFDBpatch'])fU(fT,fQ);}function fU(fV,fW){for(let fX of f7['Patchtypes']){if(fW)delete fN['BDFDBpatch'][fV][fX][fW];else delete fN['BDFDBpatch'][fV][fX];}let fY=!![];for(let fX of f7['Patchtypes'])if(!d['ObjectUtils']['isEmpty'](fN['BDFDBpatch'][fV][fX]))fY=![];if(fY){fN[fV]=fN['BDFDBpatch'][fV]['originalMethod'];delete fN['BDFDBpatch'][fV];if(d['ObjectUtils']['isEmpty'](fN['BDFDBpatch']))delete fN['BDFDBpatch'];}}};d['ModuleUtils']['forceAllUpdates']=function(g0,g1){if(d['ObjectUtils']['is'](g0)&&d['ObjectUtils']['is'](g0['patchedModules'])){const g2=document['querySelector'](d['dotCN']['app']);const g3=document['querySelector']('#bd-settingspane-container\x20'+d['dotCN']['scrollerwrap']);if(g2){let g4=[],g5={};for(let g6 in g0['patchedModules'])for(let g7 in g0['patchedModules'][g6]){let g8=[g0['patchedModules'][g6][g7]]['flat'](0xa)['filter'](g9=>g9);if(g8['includes']('componentDidMount')||g8['includes']('componentDidUpdate')||g8['includes']('render')){g4['push'](g7);let ga=g7['split']('\x20_\x20_\x20')[0x0];if(!g5[ga])g5[ga]=[];g5[ga]['push'](g6);}}g1=[g1]['flat'](0xa)['filter'](gb=>gb);if(g1['length']){g1=g1['map'](gc=>gc&&f7['Patchmap'][gc]?f7['Patchmap'][gc]+'\x20_\x20_\x20'+gc:gc);g4=g4['filter'](gd=>g1['indexOf'](gd)>-0x1);}g4=d['ArrayUtils']['removeCopies'](g4);if(g4['length']){try{const ge=d['ReactUtils']['findOwner'](g2,{'name':g4,'all':!![],'group':!![],'unlimited':!![]});const gf=d['ReactUtils']['findOwner'](g2,{'name':g4,'all':!![],'group':!![],'unlimited':!![],'up':!![]});for(let g7 in ge)for(let gh of ge[g7])f['forceInitiateProcess'](g0,gh,g7,g5[g7]);for(let g7 in gf)for(let gh of gf[g7])f['forceInitiateProcess'](g0,gh,g7,g5[g7]);if(g3){const gk=d['ReactUtils']['findOwner'](g3,{'name':g4,'all':!![],'group':!![],'unlimited':!![]});for(let g7 in gk)for(let gh of gk[g7])f['forceInitiateProcess'](g0,gh,g7,g5[g7]);}}catch(gn){d['LogUtils']['error']('Could\x20not\x20force\x20update\x20components!\x20'+gn,g0['name']);}}}}};f['forceInitiateProcess']=function(go,gp,gq,gr){if(!go||!gp||!gq)return;let gs=[];for(let gt in go['patchedModules'])if(go['patchedModules'][gt][gq])gs['push'](go['patchedModules'][gt][gq]);gs=d['ArrayUtils']['removeCopies'](gs)['flat'](0xa)['filter'](gu=>gu);if(gs['includes']('componentDidMount'))f['initiateProcess'](go,gq,{'instance':gp,'methodname':'componentDidMount','patchtypes':gr});if(gs['includes']('render'))d['ReactUtils']['forceUpdate'](gp);else if(gs['includes']('componentDidUpdate'))f['initiateProcess'](go,gq,{'instance':gp,'methodname':'componentDidUpdate','patchtypes':gr});};f['initiateProcess']=function(gv,gw,gx){if(d['ObjectUtils']['is'](gv)&&!gv['stopping']&&gx['instance']){let gy=gv['name']=='$BDFDB';if(gv['name']=='$BDFDB')gv=f;gw=(gw['split']('\x20_\x20_\x20')[0x1]||gw)['replace'](/[^A-z0-9]|_/g,'');gw=gw['charAt'](0x0)['toUpperCase']()+gw['slice'](0x1);if(typeof gv['process'+gw]=='function'){let gz=!gy&&gv['process'+gw]['toString']()['split']('\x0a')[0x0]['replace'](/ /g,'')['split'](',')['length']>0x1;if(gz){if(gx['methodname']=='render'){if(gx['returnvalue'])gv['process'+gw](gx['instance'],null,gx['returnvalue'],[gx['methodname']]);}else{let gA=d['ReactUtils']['findDOMNode'](gx['instance']);if(gA)gv['process'+gw](gx['instance'],gA,gx['returnvalue'],[gx['methodname']]);else d['TimeUtils']['timeout'](c=>{gA=d['ReactUtils']['findDOMNode'](gx['instance']);if(gA)gv['process'+gw](gx['instance'],gA,gx['returnvalue'],[gx['methodname']]);});}}else{if(typeof gx['methodname']=='string'&&(gx['methodname']['indexOf']('componentDid')==0x0||gx['methodname']['indexOf']('componentWill')==0x0)){gx['node']=d['ReactUtils']['findDOMNode'](gx['instance']);if(gx['node'])gv['process'+gw](gx);else d['TimeUtils']['timeout'](c=>{gx['node']=d['ReactUtils']['findDOMNode'](gx['instance']);if(gx['node'])gv['process'+gw](gx);});}else if(gx['returnvalue']||gx['patchtypes']['includes']('before'))gv['process'+gw](gx);}}}};f['patchPlugin']=function(gD){if(!d['ObjectUtils']['is'](gD)||!d['ObjectUtils']['is'](gD['patchedModules']))return;d['ModuleUtils']['unpatch'](gD);for(let gE in gD['patchedModules'])for(let gF in gD['patchedModules'][gE]){if(f7['GlobalModules'][gF]&&typeof f7['GlobalModules'][gF]=='function')gN(f7['GlobalModules'][gF],gF,gE);else{let gG=gF['split']('\x20_\x20_\x20')[0x1]||gF;let gH=f7['LoadedInComponents'][gF]&&d['ReactUtils']['getValue'](Ac,f7['LoadedInComponents'][gF]);if(gH)gN(f7['NonRender']['includes'](gG)?(d['ModuleUtils']['find'](gI=>gI==gH,![])||{})['exports']:gH,gF,gE);else{let gJ=f7['Patchfinder'][gG];let gK=f7['Patchmap'][gF];let gL=gK?gK+'\x20_\x20_\x20'+gF:gF;let gM=gL['split']('\x20_\x20_\x20')[0x0];if(gK){gD['patchedModules'][gE][gL]=gD['patchedModules'][gE][gF];delete gD['patchedModules'][gE][gF];}if(f7['PropsFind']['includes'](gG))gN((d['ModuleUtils']['findByProperties'](gM,![])||{})['exports'],gL,gE,!![]);else if(f7['NonRender']['includes'](gG))gN((d['ModuleUtils']['findByName'](gM,![])||{})['exports'],gL,gE,!![]);else if(f7['MemoComponent']['includes'](gG))gN((d['ModuleUtils']['findByName'](gM,![])||{'exports':{}})['exports']['default'],gL,gE,!![]);else if(!gJ)gN(d['ModuleUtils']['findByName'](gM),gL,gE);else if(zg[gJ])gV(gJ,gL,gE,f7['ForceObserve']['includes'](gG));}}}function gN(gO,gP,gQ,gR){if(gO){let gS=gP['split']('\x20_\x20_\x20')[0x0];gO=gO['_reactInternalFiber']&&gO['_reactInternalFiber']['type']?gO['_reactInternalFiber']['type']:gO;gO=gR||f['isInstanceCorrect'](gO,gS)||f7['LoadedInComponents'][gP]?gO:d['ReactUtils']['findConstructor'](gO,gS)||d['ReactUtils']['findConstructor'](gO,gS,{'up':!![]});if(gO){gO=gO['_reactInternalFiber']&&gO['_reactInternalFiber']['type']?gO['_reactInternalFiber']['type']:gO;let gT={};gT[gQ]=gU=>{f['initiateProcess'](gD,gP,{'instance':window!=gU['thisObject']?gU['thisObject']:{'props':gU['methodArguments'][0x0]},'returnvalue':gU['returnValue'],'methodname':gU['originalMethodName'],'patchtypes':[gQ]});};d['ModuleUtils']['patch'](gD,f7['NonPrototype']['includes'](gS)?gO:gO['prototype'],gD['patchedModules'][gQ][gP],gT);}}}function gV(gW,gX,gY,gZ){const h0=document['querySelector'](d['dotCN']['app']),h1=document['querySelector']('#bd-settingspane-container\x20'+d['dotCN']['scrollerwrap']);let h2=![];if(!gZ){if(h0){let h3=d['ReactUtils']['findConstructor'](h0,gX,{'unlimited':!![]})||d['ReactUtils']['findConstructor'](h0,gX,{'unlimited':!![],'up':!![]});if(h3&&(h2=!![]))gN(h3,gX,gY);}if(!h2&&h1){let h4=d['ReactUtils']['findConstructor'](h1,gX,{'unlimited':!![]});if(h4&&(h2=!![]))gN(h4,gX,gY);}}if(!h2){let h5=![],h6=d['disCN'][gW],h7=d['dotCN'][gW];for(let h8 of document['querySelectorAll'](h7)){let h9=d['ReactUtils']['getInstance'](h8);if(hg(h9,gX)){h5=!![];gN(h9,gX,gY);d['ModuleUtils']['forceAllUpdates'](gD,gX);break;}}if(!h5){let ha=new MutationObserver(hb=>{hb['forEach'](hc=>{hc['addedNodes']['forEach'](hd=>{if(h5||!hd||!hd['tagName'])return;let h8=null;if((h8=d['DOMUtils']['containsClass'](hd,h6)?hd:hd['querySelector'](h7))!=null){let h9=d['ReactUtils']['getInstance'](h8);if(hg(h9,gX)){h5=!![];ha['disconnect']();gN(h9,gX,gY);d['ModuleUtils']['forceAllUpdates'](gD,gX);}}});});});d['ObserverUtils']['connect'](gD,d['dotCN']['appmount'],{'name':'checkForInstanceObserver','instance':ha,'multi':!![]},{'childList':!![],'subtree':!![]});}}}function hg(hh,hi){if(!hh)return![];hh=hh['_reactInternalFiber']&&hh['_reactInternalFiber']['type']?hh['_reactInternalFiber']['type']:hh;hh=f['isInstanceCorrect'](hh,hi)?hh:d['ReactUtils']['findConstructor'](hh,hi)||d['ReactUtils']['findConstructor'](hh,hi,{'up':!![]});return!!hh;}};f['isInstanceCorrect']=function(hj,hk){return hj&&(hj['type']&&(hj['type']['render']&&hj['type']['render']['displayName']===hk||hj['type']['displayName']===hk||hj['type']['name']===hk||hj['type']===hk)||hj['render']&&(hj['render']['displayName']===hk||hj['render']['name']===hk)||hj['displayName']==hk||hj['name']===hk);};f['addContextListeners']=function(hl){for(let hm of Bu['NormalContextMenus'])if(typeof hl['on'+hm]==='function')f['patchContextMenuPlugin'](hl,hm,Ac['LibraryComponents']['ContextMenus'][hm]);for(let hn of Bu['FluxContextMenus'])if(typeof hl['on'+hn]==='function'){if(d['InternalData']['componentPatchQueries'][hn]['module'])f['patchContextMenuPlugin'](hl,hn,d['InternalData']['componentPatchQueries'][hn]['module']);else{d['InternalData']['componentPatchQueries'][hn]['query']['push'](hl);d['InternalData']['componentPatchQueries'][hn]['query']['sort']((ho,hp)=>{return ho['name']hp['name']?0x1:0x0;});}}for(let hq of Bu['QueuedComponents'])if(typeof hl['on'+hq]==='function'){if(d['InternalData']['componentPatchQueries'][hq]['module'])f['patchExportedContextMenuPlugin'](hl,hq,d['InternalData']['componentPatchQueries'][hq]['module']);else{d['InternalData']['componentPatchQueries'][hq]['query']['push'](hl);d['InternalData']['componentPatchQueries'][hq]['query']['sort']((hr,hs)=>{return hr['name']hs['name']?0x1:0x0;});}}};f['patchContextMenuPlugin']=function(ht,hu,hv){if(hv&&hv['prototype']){let hw=ht['on'+hu]['toString']()['split']('\x0a')[0x0]['replace'](/ /g,'')['split'](',')['length']>0x1;if(hw){d['ModuleUtils']['patch'](ht,hv['prototype'],'render',{'after':hx=>{let hy=hx['thisObject'],hz=d['ReactUtils']['findDOMNode'](hx['thisObject']),hA=hx['returnValue'];if(hy&&hz&&hA&&typeof ht['on'+hu]==='function')ht['on'+hu](hy,hz,hA);}});}else{d['ModuleUtils']['patch'](ht,hv['prototype'],'render',{'after':hB=>{if(hB['thisObject']&&hB['returnValue']&&typeof ht['on'+hu]==='function')ht['on'+hu]({'instance':hB['thisObject'],'returnvalue':hB['returnValue'],'methodname':'render'});}});}}};f['patchExportedContextMenuPlugin']=function(hC,hD,hE){if(hE&&hE['exports']){let hF=hC['on'+hD]['toString']()['split']('\x0a')[0x0]['replace'](/ /g,'')['split'](',')['length']>0x1;if(hF)d['ModuleUtils']['patch'](hC,hE['exports'],'default',{'after':hG=>{if(hG['returnValue']&&typeof hC['on'+hD]==='function')hC['on'+hD]({'props':hG['methodArguments'][0x0]},document,hG['returnValue']);}});else d['ModuleUtils']['patch'](hC,hE['exports'],'default',{'after':hH=>{if(hH['returnValue']&&typeof hC['on'+hD]==='function')hC['on'+hD]({'instance':{'props':hH['methodArguments'][0x0]},'returnvalue':hH['returnValue'],'methodname':'default'});}});}};f['executeExtraPatchedPatches']=function(hI,hJ){if(d['ObjectUtils']['is'](d['InternalData']['componentPatchQueries'][hI])&&d['ArrayUtils']['is'](d['InternalData']['componentPatchQueries'][hI]['query']))for(let hK of d['InternalData']['componentPatchQueries'][hI]['query'])if(hJ['returnvalue']&&typeof hK['on'+hI]==='function')hK['on'+hI](hJ);};f['patchContextMenuLib']=function(hL,hM){if(hL&&hL['prototype']){d['ModuleUtils']['patch'](d,hL['prototype'],'componentDidMount',{'after':hN=>{if(!hN['thisObject']['BDFDBforceRenderTimeout']&&typeof hN['thisObject']['render']=='function')hN['thisObject']['render']();}});d['ModuleUtils']['patch'](d,hL['prototype'],'componentDidUpdate',{'after':hO=>{var hP=d['ReactUtils']['findDOMNode'](hO['thisObject']);if(hP){const hQ=d['ReactUtils']['getValue'](hO,'thisObject._reactInternalFiber.stateNode.props.onHeightUpdate');const hR=d['DOMUtils']['getRects'](hP),hS=d['DOMUtils']['getRects'](document['querySelector'](d['dotCN']['appmount']));if(hQ&&hR['top']+hR['height']>hS['height'])hQ();}}});d['ModuleUtils']['patch'](d,hL['prototype'],'render',{'after':hT=>{if(hT['thisObject']['props']['BDFDBcontextMenu']&&hT['thisObject']['props']['children']&&hT['returnValue']&&hT['returnValue']['props']){hT['returnValue']['props']['children']=hT['thisObject']['props']['children'];delete hT['thisObject']['props']['value'];delete hT['thisObject']['props']['children'];delete hT['thisObject']['props']['BDFDBcontextMenu'];}if(d['ReactUtils']['findDOMNode'](hT['thisObject'])){hT['thisObject']['BDFDBforceRenderTimeout']=!![];d['TimeUtils']['timeout'](c=>{delete hT['thisObject']['BDFDBforceRenderTimeout'];},0x3e8);}if(hM){let hV=d['ReactUtils']['getValue'](hT,'thisObject._reactInternalFiber.child.type');if(hV&&hV['displayName']&&d['InternalData']['componentPatchQueries'][hV['displayName']]&&!d['InternalData']['componentPatchQueries'][hV['displayName']]['module']){d['InternalData']['componentPatchQueries'][hV['displayName']]['module']=hV;f['patchContextMenuLib'](hV,![]);while(d['InternalData']['componentPatchQueries'][hV['displayName']]['query']['length'])f['patchContextMenuPlugin'](d['InternalData']['componentPatchQueries'][hV['displayName']]['query']['pop'](),hV['displayName'],hV);}}}});}};f['patchExportedContextMenuLib']=function(hW,hX,hY){let hZ=d['ModuleUtils']['find'](i0=>i0==hW['type'],![]);if(hZ&&hZ['exports']&&hZ['exports']['default']){if(!Ac['LibraryComponents']['ContextMenus'][hX]){Ac['LibraryComponents']['ContextMenus'][hX]=hZ['exports']['default'];d['LibraryComponents']['ContextMenus'][hX]=hZ['exports']['default'];}if(!Ac['LibraryComponents']['ContextMenus']['_Exports'][hX]){Ac['LibraryComponents']['ContextMenus']['_Exports'][hX]=hZ['exports'];d['LibraryComponents']['ContextMenus']['_Exports'][hX]=hZ['exports'];}if(d['InternalData']['componentPatchQueries'][hX]&&!d['InternalData']['componentPatchQueries'][hX]['module']){d['InternalData']['componentPatchQueries'][hX]['module']=hZ;while(d['InternalData']['componentPatchQueries'][hX]['query']['length'])f['patchExportedContextMenuPlugin'](d['InternalData']['componentPatchQueries'][hX]['query']['pop'](),hX,hZ);let i1=hY&&d['ReactUtils']['getValue'](hW,'memoizedProps.onClose');if(typeof i1=='function')i1();}if(!hZ['exports']['default']['displayName'])hZ['exports']['default']['displayName']=hX;}};f['getContextMenuType']=function(i2,i3){if(i2){if(i2=='MessageContextMenu'&&i3&&i3['type']!=Ac['LibraryComponents']['ContextMenus']['MessageContextMenu'])return'MessageOptionContextMenu';else if(i2['endsWith']('ContextMenu'))return i2;else if(Ac['LibraryComponents']['ContextMenus']['_Types']['includes'](i2)){if(i2['indexOf']('USER_')==0x0)return'UserContextMenu';else if(i2['indexOf']('CHANNEL_')==0x0)return'ChannelContextMenu';else if(i2['indexOf']('GUILD_')==0x0)return'GuildContextMenu';else if(i2['indexOf']('MESSAGE_')==0x0)return'MessageContextMenu';}}return null;};d['DiscordConstants']=d['ModuleUtils']['findByProperties']('Permissions','ActivityTypes');var i4={};i4['Channel']=d['ModuleUtils']['findByPrototypes']('getRecipientId','isManaged','getGuildId');i4['Guild']=d['ModuleUtils']['findByPrototypes']('getIconURL','getMaxEmojiSlots','getRole');i4['Invite']=d['ModuleUtils']['findByPrototypes']('getExpiresAt','isExpired');i4['Message']=d['ModuleUtils']['findByPrototypes']('getReaction','getAuthorName','getChannelId');i4['Messages']=d['ModuleUtils']['findByPrototypes']('jumpToMessage','hasAfterCached','forEach');i4['Timestamp']=d['ModuleUtils']['findByPrototypes']('add','dayOfYear','hasAlignedHourOffset');i4['User']=d['ModuleUtils']['findByPrototypes']('hasFlag','isLocalBot','isClaimed');d['DiscordObjects']=Object['assign']({},i4);var i5={};for(let i6 of['child_process','electron','fs','path','process','request']){try{i5[i6]=require(i6);}catch(i7){}}d['LibraryRequires']=Object['assign']({},i5);var i8={};i8['AckUtils']=d['ModuleUtils']['findByProperties']('localAck','bulkAck');i8['APIUtils']=d['ModuleUtils']['findByProperties']('getAPIBaseURL');i8['AnalyticsUtils']=d['ModuleUtils']['findByProperties']('isThrottled','track');i8['AnimationUtils']=d['ModuleUtils']['findByProperties']('spring','decay');i8['BadgeUtils']=d['ModuleUtils']['findByProperties']('getBadgeCountString','getBadgeWidthForValue');i8['CategoryCollapseStore']=d['ModuleUtils']['findByProperties']('getCollapsedCategories','isCollapsed');i8['CategoryCollapseUtils']=d['ModuleUtils']['findByProperties']('categoryCollapse','categoryCollapseAll');i8['ChannelStore']=d['ModuleUtils']['findByProperties']('getChannel','getChannels');i8['ColorUtils']=d['ModuleUtils']['findByProperties']('hex2int','hex2rgb');i8['ContextMenuUtils']=d['ModuleUtils']['findByProperties']('closeContextMenu','openContextMenu');i8['CopyLinkUtils']=d['ModuleUtils']['findByProperties']('SUPPORTS_COPY','copy');i8['CurrentUserStore']=d['ModuleUtils']['findByProperties']('getCurrentUser');i8['CurrentVoiceUtils']=d['ModuleUtils']['findByProperties']('getAveragePing','isConnected');i8['DirectMessageStore']=d['ModuleUtils']['findByProperties']('getPrivateChannelIds','getPrivateChannelTimestamps');i8['DirectMessageUnreadStore']=d['ModuleUtils']['findByProperties']('getUnreadPrivateChannelIds');i8['DispatchApiUtils']=d['ModuleUtils']['findByProperties']('dirtyDispatch','isDispatching');i8['DispatchUtils']=d['ModuleUtils']['findByProperties']('ComponentDispatch');i8['DirectMessageUtils']=d['ModuleUtils']['findByProperties']('addRecipient','openPrivateChannel');i8['FriendUtils']=d['ModuleUtils']['findByProperties']('getFriendIDs','getRelationships');i8['FolderStore']=d['ModuleUtils']['findByProperties']('getGuildFolderById','getFlattenedGuilds');i8['FolderUtils']=d['ModuleUtils']['findByProperties']('isFolderExpanded','getExpandedFolders');i8['GuildBoostUtils']=d['ModuleUtils']['findByProperties']('getTierName','getUserLevel');i8['GuildChannelStore']=d['ModuleUtils']['findByProperties']('getChannels','getDefaultChannel');i8['GuildEmojiStore']=d['ModuleUtils']['findByProperties']('getGuildEmoji','getDisambiguatedEmojiContext');i8['GuildSettingsUtils']=d['ModuleUtils']['findByProperties']('updateChannelOverrideSettings','updateNotificationSettings');i8['GuildStore']=d['ModuleUtils']['findByProperties']('getGuild','getGuilds');i8['GuildUnavailableStore']=d['ModuleUtils']['findByProperties']('isUnavailable','totalUnavailableGuilds');i8['GuildUtils']=d['ModuleUtils']['findByProperties']('transitionToGuildSync');i8['HistoryUtils']=d['ModuleUtils']['findByProperties']('transitionTo','replaceWith','getHistory');;i8['IconUtils']=d['ModuleUtils']['findByProperties']('getGuildIconURL','getGuildBannerURL');i8['InviteUtils']=d['ModuleUtils']['findByProperties']('acceptInvite','createInvite');i8['KeyCodeUtils']=Object['assign']({},d['ModuleUtils']['findByProperties']('toCombo','keyToCode'));i8['KeyCodeUtils']['getString']=function(i9){return i8['KeyCodeUtils']['toString']([i9]['flat'](0xa)['filter'](ia=>ia)['map'](ib=>[d['DiscordConstants']['KeyboardDeviceTypes']['KEYBOARD_KEY'],ib,d['DiscordConstants']['KeyboardEnvs']['BROWSER']]),!![]);};i8['KeyEvents']=d['ModuleUtils']['findByProperties']('aliases','code','codes');i8['LanguageStore']=d['ModuleUtils']['findByProperties']('getLanguages','Messages');i8['LastChannelStore']=d['ModuleUtils']['findByProperties']('getLastSelectedChannelId');i8['LastGuildStore']=d['ModuleUtils']['findByProperties']('getLastSelectedGuildId');i8['LoginUtils']=d['ModuleUtils']['findByProperties']('login','logout');i8['MemberStore']=d['ModuleUtils']['findByProperties']('getMember','getMembers');i8['MessagePinUtils']=d['ModuleUtils']['findByProperties']('pinMessage','unpinMessage');i8['MessageStore']=d['ModuleUtils']['findByProperties']('getMessage','getMessages');i8['MessageUtils']=d['ModuleUtils']['findByProperties']('receiveMessage','editMessage');i8['ModalUtils']=d['ModuleUtils']['findByProperties']('openModal','hasModalOpen');i8['MutedUtils']=d['ModuleUtils']['findByProperties']('isGuildOrCategoryOrChannelMuted');i8['NoteStore']=d['ModuleUtils']['findByProperties']('getNotes','getNote');i8['NotificationSettingsUtils']=d['ModuleUtils']['findByProperties']('setDesktopType','setTTSType');i8['NotificationSettingsStore']=d['ModuleUtils']['findByProperties']('getDesktopType','getTTSType');i8['PlatformUtils']=d['ModuleUtils']['findByProperties']('isWindows','isLinux');i8['PermissionUtils']=d['ModuleUtils']['findByProperties']('getChannelPermissions','canUser');i8['PermissionRoleUtils']=d['ModuleUtils']['findByProperties']('getHighestRole','can');i8['QuoteUtils']=d['ModuleUtils']['findByProperties']('canQuote','createQuotedText');i8['ReactionUtils']=d['ModuleUtils']['findByProperties']('addReaction','removeReaction');i8['SearchPageUtils']=d['ModuleUtils']['findByProperties']('searchNextPage','searchPreviousPage');i8['SelectChannelUtils']=d['ModuleUtils']['findByProperties']('selectChannel','selectPrivateChannel');i8['SettingsUtils']=d['ModuleUtils']['findByProperties']('updateRemoteSettings','updateLocalSettings');i8['SoundUtils']=d['ModuleUtils']['findByProperties']('playSound','createSound');i8['SpellCheckUtils']=d['ModuleUtils']['findByProperties']('learnWord','toggleSpellcheck');i8['SlateUtils']=d['ModuleUtils']['findByProperties']('serialize','deserialize');i8['SlateSelectionUtils']=d['ModuleUtils']['findByProperties']('serialize','serializeSelection');i8['StateStoreUtils']=d['ModuleUtils']['findByProperties']('useStateFromStores','useStateFromStoresArray');i8['StatusMetaUtils']=d['ModuleUtils']['findByProperties']('getApplicationActivity','getStatus');i8['StoreUtils']=d['ModuleUtils']['findByProperties']('get','set','clear','remove');i8['StreamUtils']=d['ModuleUtils']['findByProperties']('getStreamForUser','getActiveStream');i8['StringUtils']=d['ModuleUtils']['findByProperties']('cssValueToNumber','upperCaseFirstChar');i8['UnreadGuildUtils']=d['ModuleUtils']['findByProperties']('hasUnread','getUnreadGuilds');i8['UnreadChannelUtils']=d['ModuleUtils']['findByProperties']('getUnreadCount','getOldestUnreadMessageId');i8['UploadUtils']=d['ModuleUtils']['findByProperties']('upload','instantBatchUpload');i8['UserNameUtils']=d['ModuleUtils']['findByProperties']('getName','getNickname');i8['UserStore']=d['ModuleUtils']['findByProperties']('getUser','getUsers');i8['Utilities']=d['ModuleUtils']['findByProperties']('flatMap','cloneDeep');i8['VoiceUtils']=d['ModuleUtils']['findByProperties']('getAllVoiceStates','getVoiceStatesForChannel');i8['ZoomUtils']=d['ModuleUtils']['findByProperties']('setZoom','setFontSize');d['LibraryModules']=Object['assign']({},i8);i8['React']=d['ModuleUtils']['findByProperties']('createElement','cloneElement');i8['ReactDOM']=d['ModuleUtils']['findByProperties']('render','findDOMNode');d['ReactUtils']=Object['assign']({},i8['React'],i8['ReactDOM']);d['ReactUtils']['childrenToArray']=function(ic){if(ic&&ic['props']&&ic['props']['children']&&!d['ArrayUtils']['is'](ic['props']['children'])){var id=ic['props']['children'];ic['props']['children']=[];ic['props']['children']['push'](id);}return ic['props']['children'];};d['ReactUtils']['createElement']=function(ie,ig){if(ie&&ie['defaultProps'])for(let ih in ie['defaultProps'])if(ig[ih]==null)ig[ih]=ie['defaultProps'][ih];try{return i8['React']['createElement'](ie||'div',ig||{})||null;}catch(ii){d['LogUtils']['error']('Could\x20not\x20create\x20react\x20element!\x20'+ii);}return null;};d['ReactUtils']['elementToReact']=function(ij){if(d['ReactUtils']['isValidElement'](ij))return ij;else if(!Node['prototype']['isPrototypeOf'](ij))return null;else if(ij['nodeType']==Node['TEXT_NODE'])return ij['nodeValue'];let ik={},il=[];for(let im of ij['attributes'])ik[im['name']]=im['value'];if(ij['attributes']['style'])ik['style']=d['ObjectUtils']['filter'](ij['style'],io=>ij['style'][io]&&isNaN(parseInt(io)),!![]);ik['children']=[];if(ij['style']&&ij['style']['cssText'])for(let ip of ij['style']['cssText']['split'](';'))if(ip['endsWith']('!important')){let iq=ip['split'](':')[0x0];let ir=iq['replace'](/-([a-z]?)/g,(is,it)=>it['toUpperCase']());if(ik['style'][ir]!=null)il['push'](iq);}for(let iu of ij['childNodes'])ik['children']['push'](d['ReactUtils']['elementToReact'](iu));let iv=d['ReactUtils']['createElement'](ij['tagName'],ik);d['ReactUtils']['forceStyle'](iv,il);return iv;};d['ReactUtils']['forceStyle']=function(iw,ix){if(!d['ReactUtils']['isValidElement'](iw)||!d['ObjectUtils']['is'](iw['props']['style'])||!d['ArrayUtils']['is'](ix)||!ix['length'])return;let iy=iw['ref'];iw['ref']=iz=>{if(typeof iy=='function')iy(iz);let iA=d['ReactUtils']['findDOMNode'](iz);if(Node['prototype']['isPrototypeOf'](iA))for(let iB of ix){let iC=iw['props']['style'][iB['replace'](/-([a-z]?)/g,(iD,iE)=>iE['toUpperCase']())];if(iC!=null)iA['style']['setProperty'](iB,iC,'important');}};};d['ReactUtils']['findChildren']=function(iF,iG){if(!iF||!d['ObjectUtils']['is'](iG)||!iG['name']&&!iG['key']&&!iG['props']&&!iG['filter'])return[null,-0x1];var iH=Node['prototype']['isPrototypeOf'](iF)?d['ReactUtils']['getInstance'](iF):iF;if(!d['ObjectUtils']['is'](iH)&&!d['ArrayUtils']['is'](iH))return[null,-0x1];iG['name']=iG['name']&&[iG['name']]['flat']()['filter'](iI=>iI);iG['key']=iG['key']&&[iG['key']]['flat']()['filter'](iJ=>iJ);iG['props']=iG['props']&&[iG['props']]['flat']()['filter'](iK=>iK);iG['filter']=typeof iG['filter']=='function'&&iG['filter'];var iL=firstarray=iH;while(!d['ArrayUtils']['is'](firstarray)&&firstarray['props']&&firstarray['props']['children'])firstarray=firstarray['props']['children'];if(!d['ArrayUtils']['is'](firstarray)){if(iL&&iL['props']){iL['props']['children']=[iL['props']['children']];firstarray=iL['props']['children'];}else firstarray=[];}return iM(iH);function iM(iN){var iO=[firstarray,-0x1];if(!iN)return iO;if(!d['ArrayUtils']['is'](iN)){if(iS(iN))iO=iQ(iN);else if(iN['props']&&iN['props']['children']){iL=iN;iO=iM(iN['props']['children']);}}else{for(let iP=0x0;iO[0x1]==-0x1&&iPf['isInstanceCorrect'](iH,iV))||iG['key']&&iG['key']['some'](iW=>iH['key']==iW)||iU&&iG['props']&&iG['props']['every'](iX=>d['ArrayUtils']['is'](iX)?d['ArrayUtils']['is'](iX[0x1])?iX[0x1]['some'](iY=>iZ(iU,iX[0x0],iY)):iZ(iU,iX[0x0],iX[0x1]):iU[iX]!==undefined)||iG['filter']&&iG['filter'](iH);}function iZ(j0,j1,j2){return j1!=null&&j0[j1]!=null&&j2!=null&&(j1=='className'?('\x20'+j0[j1]+'\x20')['indexOf']('\x20'+j2+'\x20')>-0x1:d['equals'](j0[j1],j2));}};d['ReactUtils']['findConstructor']=function(j3,j4,j5={}){if(!d['ObjectUtils']['is'](j5))return null;if(!j3||!j4)return j5['all']?j5['group']?{}:[]:null;var j6=Node['prototype']['isPrototypeOf'](j3)?d['ReactUtils']['getInstance'](j3):j3;if(!d['ObjectUtils']['is'](j6))return j5['all']?j5['group']?{}:[]:null;j4=j4&&[j4]['flat'](0xa)['filter'](j7=>typeof j7=='string');if(!j4['length'])return j5['all']?j5['group']?{}:[]:null;;var j8=-0x1;var j9=performance['now']();var ja=j5['unlimited']?0x3b9ac9ff:j5['depth']===undefined?0x1e:j5['depth'];var jb=j5['unlimited']?0x3b9ac9ff:j5['time']===undefined?0x96:j5['time'];var jc=j5['up']?{'return':!![],'sibling':!![],'default':!![],'_reactInternalFiber':!![]}:{'child':!![],'sibling':!![],'default':!![],'_reactInternalFiber':!![]};var jd=j5['group']?{}:[];var je=jh(j6);if(j5['all']){for(let jf in jd){if(j5['group'])for(let jg in jd[jf])delete jd[jf][jg]['BDFDBreactSearch'];else delete jd[jf]['BDFDBreactSearch'];}return jd;}else return je;function jh(j6){j8++;var jj=undefined;if(j6&&!Node['prototype']['isPrototypeOf'](j6)&&!d['ReactUtils']['getInstance'](j6)&&j8(j6['type']['render']&&j6['type']['render']['displayName']||j6['type']['displayName']||j6['type']['name'])===jk['split']('\x20_\x20_\x20')[0x0])){if(j5['all']===undefined||!j5['all'])jj=j6['type'];else if(j5['all']){if(!j6['type']['BDFDBreactSearch']){j6['type']['BDFDBreactSearch']=!![];if(j5['group']){if(j6['type']&&(j6['type']['render']&&j6['type']['render']['displayName']||j6['type']['displayName']||j6['type']['name'])){let jl=j5['name']['find'](jm=>(j6['type']['render']&&j6['type']['render']['displayName']||j6['type']['displayName']||j6['type']['name']||j6['type'])['split']('\x20_\x20_\x20')[0x0]==jm)||'Default';if(!d['ArrayUtils']['is'](foundinstances[jl]))foundinstances[jl]=[];foundinstances[jl]['push'](j6['stateNode']);}}else foundinstances['push'](j6['type']);}}}if(jj===undefined){let jn=Object['getOwnPropertyNames'](j6);for(let jo=0x0;jj===undefined&&jojv);jt['key']=jt['key']&&[jt['key']]['flat']()['filter'](jw=>jw);jt['props']=jt['props']&&[jt['props']]['flat']()['filter'](jx=>jx);var jy=-0x1;var jz=performance['now']();var jA=jt['unlimited']?0x3b9ac9ff:jt['depth']===undefined?0x1e:jt['depth'];var jB=jt['unlimited']?0x3b9ac9ff:jt['time']===undefined?0x96:jt['time'];var jC=jt['up']?{'return':!![],'sibling':!![],'_reactInternalFiber':!![]}:{'child':!![],'sibling':!![],'_reactInternalFiber':!![]};var jD=jt['group']?{}:[];var jE=jH(ju);if(jt['all']){for(let jF in jD){if(jt['group'])for(let jG in jD[jF])delete jD[jF][jG]['BDFDBreactSearch'];else delete jD[jF]['BDFDBreactSearch'];}return jD;}else return jE;function jH(ju){jy++;var jJ=undefined;if(ju&&!Node['prototype']['isPrototypeOf'](ju)&&!d['ReactUtils']['getInstance'](ju)&&jyf['isInstanceCorrect'](ju,jL['split']('\x20_\x20_\x20')[0x0]))||jt['key']&&jt['key']['some'](jM=>ju['key']==jM)||jK&&jt['props']&&jt['props']['every'](jN=>d['ArrayUtils']['is'](jN)?d['ArrayUtils']['is'](jN[0x1])?jN[0x1]['some'](jO=>d['equals'](jK[jN[0x0]],jO)):d['equals'](jK[jN[0x0]],jN[0x1]):jK[jN]!==undefined))){if(jt['all']===undefined||!jt['all'])jJ=ju['stateNode'];else if(jt['all']){if(!ju['stateNode']['BDFDBreactSearch']){ju['stateNode']['BDFDBreactSearch']=!![];if(jt['group']){if(jt['name']&&ju['type']&&(ju['type']['render']&&ju['type']['render']['displayName']||ju['type']['displayName']||ju['type']['name']||ju['type'])){let jP=jt['name']['find'](jQ=>(ju['type']['render']&&ju['type']['render']['displayName']||ju['type']['displayName']||ju['type']['name']||ju['type'])['split']('\x20_\x20_\x20')[0x0]==jQ)||'Default';if(!d['ArrayUtils']['is'](jD[jP]))jD[jP]=[];jD[jP]['push'](ju['stateNode']);}}else jD['push'](ju['stateNode']);}}}if(jJ===undefined){let jR=Object['getOwnPropertyNames'](ju);for(let jS=0x0;jJ===undefined&&jSjX);jV['key']=jV['key']&&[jV['key']]['flat']()['filter'](jY=>jY);var jZ=-0x1;var k0=performance['now']();var k1=jV['unlimited']?0x3b9ac9ff:jV['depth']===undefined?0x1e:jV['depth'];var k2=jV['unlimited']?0x3b9ac9ff:jV['time']===undefined?0x96:jV['time'];var k3=jV['up']?{'return':!![],'sibling':!![],'_reactInternalFiber':!![]}:{'child':!![],'sibling':!![],'_reactInternalFiber':!![]};return k4(jW);function k4(jW){jZ++;var k6=undefined;if(jW&&!Node['prototype']['isPrototypeOf'](jW)&&!d['ReactUtils']['getInstance'](jW)&&jZ(jW['type']['render']&&jW['type']['render']['displayName']||jW['type']['displayName']||jW['type']['name']||jW['type'])===k7['split']('\x20_\x20_\x20')[0x0])||jV['key']&&jV['key']['some'](k8=>jW['key']==k8)))k6=jW['memoizedProps'];if(k6===undefined){let k9=Object['getOwnPropertyNames'](jW);for(let ka=0x0;k6===undefined&&kakz))if(ky['updater']&&typeof ky['updater']['isMounted']=='function'&&ky['updater']['isMounted'](ky))ky['forceUpdate']();};d['ReactUtils']['getInstance']=function(kA){if(!d['ObjectUtils']['is'](kA))return null;return kA[Object['keys'](kA)['find'](kB=>kB['startsWith']('__reactInternalInstance'))];};d['ReactUtils']['getValue']=function(kC,kD){if(!kC||!kD)return null;var kE=Node['prototype']['isPrototypeOf'](kC)?d['ReactUtils']['getInstance'](kC):kC;if(!d['ObjectUtils']['is'](kE))return null;var kF=kE,kG=kD['split']('.')['filter'](kH=>kH);for(value of kG){if(!kF)return null;kF=kF[value];}return kF;};d['ReactUtils']['render']=function(kI,kJ){if(!d['ReactUtils']['isValidElement'](kI)||!Node['prototype']['isPrototypeOf'](kJ))return;try{i8['ReactDOM']['render'](kI,kJ);let kK=new MutationObserver(kL=>kL['forEach'](kM=>{let kN=Array['from'](kM['removedNodes']);if(kN['indexOf'](kJ)>-0x1||kN['some'](kO=>kO['contains'](kJ))){kK['disconnect']();d['ReactUtils']['unmountComponentAtNode'](kJ);}}));kK['observe'](document['body'],{'subtree':!![],'childList':!![]});}catch(kP){d['LogUtils']['error']('Could\x20not\x20render\x20react\x20element!\x20'+kP);}};f['setDefaultProps']=function(kQ,kR){if(d['ObjectUtils']['is'](kQ))kQ['defaultProps']=Object['assign']({},kQ['defaultProps'],kR);};d['equals']=function(kS,kT,kU){var kV=-0x1;if(kU===undefined||typeof kU!=='boolean')kU=![];return kW(kS,kT);function kW(kX,kY){kV++;var kZ=!![];if(kV>0x3e8)kZ=null;else{if(typeof kX!==typeof kY)kZ=![];else if(typeof kX==='function')kZ=kX['toString']()==kY['toString']();else if(typeof kX==='undefined')kZ=!![];else if(typeof kX==='symbol')kZ=!![];else if(typeof kX==='boolean')kZ=kX==kY;else if(typeof kX==='string')kZ=kX==kY;else if(typeof kX==='number'){if(isNaN(kX)||isNaN(kY))kZ=isNaN(kX)==isNaN(kY);else kZ=kX==kY;}else if(!kX&&!kY)kZ=!![];else if(!kX||!kY)kZ=![];else if(typeof kX==='object'){var l0=Object['getOwnPropertyNames'](kX);var l1=Object['getOwnPropertyNames'](kY);if(l0['length']!==l1['length'])kZ=![];else for(let l2=0x0;kZ===!![]&&l2{let l5=d['ReactUtils']['findOwner'](document['querySelector'](d['dotCN']['app']),{'name':'Messages','unlimited':!![]});let l6=d['ReactUtils']['getValue'](l5,'_reactInternalFiber.type.prototype');if(l5&&l6){let l7=d['ModuleUtils']['patch']({'name':'tempPatch'},l6,'render',{'after':l8=>{l7();let [l9,la]=d['ReactUtils']['findChildren'](l8['returnValue'],{'props':['message','channel']});if(la>-0x1)for(let lb of l9)if(lb['props']['message'])lb['props']['message']=new d['DiscordObjects']['Message'](lb['props']['message']);}});d['ReactUtils']['forceUpdate'](l5);}},0x3e8);};d['UserUtils']={};var lc=i8['CurrentUserStore']?i8['CurrentUserStore']['getCurrentUser']():null;d['UserUtils']['is']=function(ld){return ld&&ld instanceof d['DiscordObjects']['User'];};d['UserUtils']['me']=new Proxy(lc||{},{'get':function(le,lf){if(!lc)lc=i8['CurrentUserStore']['getCurrentUser']();return lc?lc[lf]:null;}});d['UserUtils']['getStatus']=function(lg=d['UserUtils']['me']['id']){lg=typeof lg=='number'?lg['toFixed']():lg;let lh=d['UserUtils']['getActivitiy'](lg);return lh&&lh['type']==d['DiscordConstants']['ActivityTypes']['STREAMING']?'streaming':i8['StatusMetaUtils']['getStatus'](lg);};d['UserUtils']['getStatusColor']=function(li){li=typeof li=='string'?li['toLowerCase']():null;switch(li){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(lj=d['UserUtils']['me']['id']){for(let lk of i8['StatusMetaUtils']['getActivities'](lj))if(lk['type']!=d['DiscordConstants']['ActivityTypes']['CUSTOM_STATUS'])return lk;return null;};d['UserUtils']['getAvatar']=function(ll=d['UserUtils']['me']['id']){var lm=i8['UserStore']['getUser'](typeof ll=='number'?ll['toFixed']():ll);if(!lm)return window['location']['origin']+'/assets/322c936a8c8be1b803cd94861bdfa868.png';else return((lm['avatar']?'':window['location']['origin'])+i8['IconUtils']['getUserAvatarURL'](lm))['split']('?')[0x0];};d['UserUtils']['can']=function(ln,lo=d['UserUtils']['me']['id'],lp=i8['LastChannelStore']['getChannelId']()){if(!d['DiscordConstants']['Permissions'][ln])d['LogUtils']['warn'](ln+'\x20not\x20found\x20in\x20Permissions');else{var lq=i8['ChannelStore']['getChannel'](lp);if(lq)return i8['PermissionUtils']['canUser'](lo,d['DiscordConstants']['Permissions'][ln],lq);}return![];};d['GuildUtils']={};d['GuildUtils']['is']=function(lr){return lr&&lr instanceof d['DiscordObjects']['Guild'];};d['GuildUtils']['getIcon']=function(ls){var lt=i8['GuildStore']['getGuild'](typeof ls=='number'?ls['toFixed']():ls);if(!lt||!lt['icon'])return null;return i8['IconUtils']['getGuildIconURL'](lt)['split']('?')[0x0];};d['GuildUtils']['getBanner']=function(lu){var lv=i8['GuildStore']['getGuild'](typeof lu=='number'?lu['toFixed']():lu);if(!lv||!lv['banner'])return null;return i8['IconUtils']['getGuildBannerURL'](lv)['split']('?')[0x0];};d['GuildUtils']['getFolder']=function(lw){return d['LibraryModules']['FolderStore']['guildFolders']['filter'](lx=>lx['folderId'])['find'](ly=>ly['guildIds']['includes'](lw));};d['GuildUtils']['getId']=function(lz){if(!Node['prototype']['isPrototypeOf'](lz)||!d['ReactUtils']['getInstance'](lz))return;let lA=d['DOMUtils']['getParent'](d['dotCN']['guildouter'],lz);if(!lA)return;var lB=lA['querySelector'](d['dotCN']['guildiconwrapper']);var lC=lB&&lB['href']?lB['href']['split']('/')['slice'](-0x2)[0x0]:null;return lC&&!isNaN(parseInt(lC))?lC['toString']():null;};d['GuildUtils']['getData']=function(lD){if(!lD)return null;let lE=Node['prototype']['isPrototypeOf'](lD)?d['GuildUtils']['getId'](lD):typeof lD=='object'?lD['id']:lD;lE=typeof lE=='number'?lE['toFixed']():lE;for(let lF of d['GuildUtils']['getAll']())if(lF&&lF['id']==lE)return lF;return null;};d['GuildUtils']['getAll']=function(){var lG=[],lH=[];for(let lI of d['ReactUtils']['findOwner'](document['querySelector'](d['dotCN']['guilds']),{'name':['Guild','GuildIcon'],'all':!![],'unlimited':!![]})){if(lI['props']&&lI['props']['guild'])lH['push'](Object['assign'](new lI['props']['guild']['constructor'](lI['props']['guild']),{'div':lI['handleContextMenu']&&d['ReactUtils']['findDOMNode'](lI),'instance':lI}));}for(let lJ of d['LibraryModules']['FolderStore']['getFlattenedGuildIds']()){let lK=null;for(let lL of lH)if(lL['id']==lJ){lK=lL;break;}if(lK)lG['push'](lK);else{let lM=d['LibraryModules']['GuildStore']['getGuild'](lJ);lG['push'](Object['assign'](new lM['constructor'](lM),{'div':null,'instance':null}));}}return lG;};d['GuildUtils']['getUnread']=function(lN){var lO=[];for(let lP of lN===undefined||!d['ArrayUtils']['is'](lN)?d['GuildUtils']['getAll']():lN){if(!lP)return null;let lQ=Node['prototype']['isPrototypeOf'](lP)?d['GuildUtils']['getId'](lP):typeof lP=='object'?lP['id']:lP;lQ=typeof lQ=='number'?lQ['toFixed']():lQ;if(lQ&&(i8['UnreadGuildUtils']['hasUnread'](lQ)||i8['UnreadGuildUtils']['getMentionCount'](lQ)>0x0))lO['push'](lP);}return lO;};d['GuildUtils']['getPinged']=function(lR){var lS=[];for(let lT of lR===undefined||!d['ArrayUtils']['is'](lR)?d['GuildUtils']['getAll']():lR){if(!lT)return null;let lU=Node['prototype']['isPrototypeOf'](lT)?d['GuildUtils']['getId'](lT):typeof lT=='object'?lT['id']:lT;lU=typeof lU=='number'?lU['toFixed']():lU;if(lU&&i8['UnreadGuildUtils']['getMentionCount'](lU)>0x0)lS['push'](lT);}return lS;};d['GuildUtils']['getMuted']=function(lV){var lW=[];for(let lX of lV===undefined||!d['ArrayUtils']['is'](lV)?d['GuildUtils']['getAll']():lV){if(!lX)return null;let lY=Node['prototype']['isPrototypeOf'](lX)?d['GuildUtils']['getId'](lX):typeof lX=='object'?lX['id']:lX;lY=typeof lY=='number'?lY['toFixed']():lY;if(lY&&i8['MutedUtils']['isGuildOrCategoryOrChannelMuted'](lY))lW['push'](lX);}return lW;};d['GuildUtils']['getSelected']=function(){var lZ=i8['GuildStore']['getGuild'](i8['LastGuildStore']['getGuildId']());if(lZ)return d['GuildUtils']['getData'](lZ['id'])||Object['assign'](new lZ['constructor'](lZ),{'div':null,'instance':null});else return null;};d['GuildUtils']['openMenu']=function(m0,m1=d['InternalData']['mousePosition']){if(!m0)return;let m2=Node['prototype']['isPrototypeOf'](m0)?d['GuildUtils']['getId'](m0):typeof m0=='object'?m0['id']:m0;let m3=i8['GuildStore']['getGuild'](m2);if(m3)i8['ContextMenuUtils']['openContextMenu'](m1,function(m1){return d['ReactUtils']['createElement'](Ac['LibraryComponents']['ContextMenus']['_Exports']['GuildContextMenu']&&Ac['LibraryComponents']['ContextMenus']['_Exports']['GuildContextMenu']['default'],Object['assign']({},m1,{'type':d['DiscordConstants']['ContextMenuTypes']['GUILD_ICON_BAR'],'guild':m3,'badge':i8['UnreadGuildUtils']['getMentionCount'](m3['id']),'link':d['DiscordConstants']['Routes']['CHANNEL'](m3['id'],i8['LastChannelStore']['getChannelId'](m3['id'])),'selected':m3['id']==i8['LastGuildStore']['getGuildId']()}));});};d['GuildUtils']['markAsRead']=function(m5){if(!m5)return;var m6=[];for(let m7 of d['ArrayUtils']['is'](m5)?m5:typeof m5=='string'||typeof m5=='number'?Array['of'](m5):Array['from'](m5)){let m8=Node['prototype']['isPrototypeOf'](m7)?d['GuildUtils']['getId'](m7):m7&&typeof m7=='object'?m7['id']:m7;let m9=m8&&i8['GuildChannelStore']['getChannels'](m8);if(m9)for(let ma in m9)if(d['ArrayUtils']['is'](m9[ma]))for(let mb of m9[ma])m6['push'](mb['channel']['id']);}if(m6['length'])i8['AckUtils']['bulkAck'](m6);};d['FolderUtils']={};d['FolderUtils']['getId']=function(mc){if(!Node['prototype']['isPrototypeOf'](mc)||!d['ReactUtils']['getInstance'](mc))return;mc=d['DOMUtils']['getParent'](d['dotCN']['guildfolderwrapper'],mc);if(!mc)return;return d['ReactUtils']['findValue'](mc,'folderId',{'up':!![]});};d['FolderUtils']['getDefaultName']=function(md){let me=d['LibraryModules']['FolderStore']['getGuildFolderById'](md);if(!me)return'';let mf=0x2*d['DiscordConstants']['MAX_GUILD_FOLDER_NAME_LENGTH'];let mg=[],mh=me['guildIds']['map'](mi=>(d['LibraryModules']['GuildStore']['getGuild'](mi)||{})['name'])['filter'](mj=>mj);for(let i6 of mh)if(i6['length']{i8['AckUtils']['ack'](nf[ni]);},ni*0x3e8);};d['DataUtils']={};d['DataUtils']['cached']=window['BDFDB']&&window['BDFDB']['DataUtils']&&window['BDFDB']['DataUtils']['cached']||{};d['DataUtils']['save']=function(nk,nl,nm,nn){let no,np;if(!d['BDUtils']['isBDv2']()){np=typeof nl==='string'?nl:nl['name'];no=i5['path']['join'](d['BDUtils']['getPluginsFolder'](),np+'.config.json');}else{np=typeof nl==='string'?nl['toLowerCase']():null;let nq=np?d['Plugins'][np]?d['Plugins'][np]['contentPath']:null:nl['contentPath'];if(!nq)return;no=i5['path']['join'](nq,'settings.json');}let nr=d['DataUtils']['cached'][np]!==undefined?d['DataUtils']['cached'][np]:f['readConfig'](no)||{};if(nm===undefined)nr=d['ObjectUtils']['is'](nk)?d['ObjectUtils']['sort'](nk):nk;else{if(nn===undefined)nr[nm]=d['ObjectUtils']['is'](nk)?d['ObjectUtils']['sort'](nk):nk;else{if(!d['ObjectUtils']['is'](nr[nm]))nr[nm]={};nr[nm][nn]=d['ObjectUtils']['is'](nk)?d['ObjectUtils']['sort'](nk):nk;}}let ns=d['ObjectUtils']['is'](nr);if(nm!==undefined&&ns&&d['ObjectUtils']['is'](nr[nm])&&d['ObjectUtils']['isEmpty'](nr[nm]))delete nr[nm];if(d['ObjectUtils']['isEmpty'](nr)){delete d['DataUtils']['cached'][np];if(i5['fs']['existsSync'](no))i5['fs']['unlinkSync'](no);}else{if(ns)nr=d['ObjectUtils']['sort'](nr);d['DataUtils']['cached'][np]=ns?d['ObjectUtils']['deepAssign']({},nr):nr;i5['fs']['writeFileSync'](no,JSON['stringify'](nr,null,'\x09'));}};d['DataUtils']['load']=function(nt,nu,nv){let nw,nx;if(!d['BDUtils']['isBDv2']()){nx=typeof nt==='string'?nt:nt['name'];nw=i5['path']['join'](d['BDUtils']['getPluginsFolder'](),nx+'.config.json');}else{nx=typeof nt==='string'?nt['toLowerCase']():null;let ny=nx?d['Plugins'][nx]?d['Plugins'][nx]['contentPath']:null:nt['contentPath'];if(!ny)return{};nw=i5['path']['join'](ny,'settings.json');}let nz=d['DataUtils']['cached'][nx]!==undefined?d['DataUtils']['cached'][nx]:f['readConfig'](nw)||{};let nA=d['ObjectUtils']['is'](nz);d['DataUtils']['cached'][nx]=nA?d['ObjectUtils']['deepAssign']({},nz):nz;if(nu===undefined)return nz;else{let nB=nA?d['ObjectUtils']['is'](nz[nu])||nz[nu]==undefined?d['ObjectUtils']['deepAssign']({},nz[nu]):nz[nu]:null;if(nv===undefined)return nB;else return!d['ObjectUtils']['is'](nB)||nB[nv]===undefined?null:nB[nv];}};d['DataUtils']['remove']=function(nC,nD,nE){let nF,nG;if(!d['BDUtils']['isBDv2']()){nG=typeof nC==='string'?nC:nC['name'];nF=i5['path']['join'](d['BDUtils']['getPluginsFolder'](),nG+'.config.json');}else{nG=typeof nC==='string'?nC['toLowerCase']():null;let nH=nG?d['Plugins'][nG]?d['Plugins'][nG]['contentPath']:null:nC['contentPath'];if(!nH)return;nF=i5['path']['join'](nH,'settings.json');}let nI=d['DataUtils']['cached'][nG]!==undefined?d['DataUtils']['cached'][nG]:f['readConfig'](nF)||{};let nJ=d['ObjectUtils']['is'](nI);if(nD===undefined||!nJ)nI={};else{if(nE===undefined)delete nI[nD];else if(d['ObjectUtils']['is'](nI[nD]))delete nI[nD][nE];}if(d['ObjectUtils']['is'](nI[nD])&&d['ObjectUtils']['isEmpty'](nI[nD]))delete nI[nD];if(d['ObjectUtils']['isEmpty'](nI)){delete d['DataUtils']['cached'][nG];if(i5['fs']['existsSync'](nF))i5['fs']['unlinkSync'](nF);}else{if(nJ)nI=d['ObjectUtils']['sort'](nI);d['DataUtils']['cached'][nG]=nJ?d['ObjectUtils']['deepAssign']({},nI):nI;i5['fs']['writeFileSync'](nF,JSON['stringify'](nI,null,'\x09'));}};d['DataUtils']['get']=function(nK,nL,nM){nK=typeof nK=='string'?d['BDUtils']['getPlugin'](nK):nK;if(!d['ObjectUtils']['is'](nK))return nM===undefined?{}:null;let nN=(nK['name']=='$BDFDB'?f:nK)['defaults'];if(!d['ObjectUtils']['is'](nN)||!nN[nL])return nM===undefined?{}:null;var nO=d['DataUtils']['load'](nK,nL),nP={},nQ=![];for(let nR in nN[nL]){if(nO[nR]==null){nP[nR]=d['ObjectUtils']['is'](nN[nL][nR]['value'])?d['ObjectUtils']['deepAssign']({},nN[nL][nR]['value']):nN[nL][nR]['value'];nQ=!![];}else nP[nR]=nO[nR];}if(nQ)d['DataUtils']['save'](nP,nK,nL);if(nM===undefined)return nP;else return nP[nM]===undefined?null:nP[nM];};f['readConfig']=function(nS){try{return JSON['parse'](i5['fs']['readFileSync'](nS));}catch(nT){return{};}};d['ColorUtils']={};d['ColorUtils']['convert']=function(nU,nV,nW){if(d['ObjectUtils']['is'](nU)){var nX={};for(let nY in nU)nX[nY]=d['ColorUtils']['convert'](nU[nY],nV,nW);return nX;}else{nV=nV===undefined||!nV?nV='RGBCOMP':nV['toUpperCase']();nW=nW===undefined||!nW||!['RGB','RGBA','RGBCOMP','HSL','HSLA','HSLCOMP','HEX','HEXA','INT']['includes'](nW['toUpperCase']())?d['ColorUtils']['getType'](nU):nW['toUpperCase']();if(nV=='RGBCOMP'){switch(nW){case'RGBCOMP':if(nU['length']==0x3)return oy(nU);else if(nU['length']==0x4){let nZ=oB(nU['pop']());return oy(nU)['concat'](nZ);}break;case'RGB':return oy(nU['replace'](/\s/g,'')['slice'](0x4,-0x1)['split'](','));case'RGBA':let o0=nU['replace'](/\s/g,'')['slice'](0x5,-0x1)['split'](',');let nZ=oB(o0['pop']());return oy(o0)['concat'](nZ);case'HSLCOMP':if(nU['length']==0x3)return d['ColorUtils']['convert']('hsl('+oF(nU)['join'](',')+')','RGBCOMP');else if(nU['length']==0x4){let o2=oB(nU['pop']());return d['ColorUtils']['convert']('hsl('+oF(nU)['join'](',')+')','RGBCOMP')['concat'](o2);}break;case'HSL':var o3=oF(nU['replace'](/\s/g,'')['slice'](0x4,-0x1)['split'](','));var o4,o5,o6,o7,o8,o9,oa,ob;var oc=o3[0x0]/0x168,od=parseInt(o3[0x1])/0x64,oe=parseInt(o3[0x2])/0x64;o7=Math['floor'](oc*0x6);o8=oc*0x6-o7;o9=oe*(0x1-od);oa=oe*(0x1-o8*od);ob=oe*(0x1-(0x1-o8)*od);switch(o7%0x6){case 0x0:o4=oe,o5=ob,o6=o9;break;case 0x1:o4=oa,o5=oe,o6=o9;break;case 0x2:o4=o9,o5=oe,o6=ob;break;case 0x3:o4=o9,o5=oa,o6=oe;break;case 0x4:o4=ob,o5=o9,o6=oe;break;case 0x5:o4=oe,o5=o9,o6=oa;break;}return[Math['round'](o4*0xff),Math['round'](o5*0xff),Math['round'](o6*0xff)];case'HSLA':var o3=nU['replace'](/\s/g,'')['slice'](0x5,-0x1)['split'](',');return d['ColorUtils']['convert']('hsl('+o3['slice'](0x0,0x3)['join'](',')+')','RGBCOMP')['concat'](oB(o3['pop']()));case'HEX':var og=/^#([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'](nU);return[parseInt(og[0x1]+og[0x1]||og[0x4],0x10)['toString'](),parseInt(og[0x2]+og[0x2]||og[0x5],0x10)['toString'](),parseInt(og[0x3]+og[0x3]||og[0x6],0x10)['toString']()];case'HEXA':var og=/^#([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'](nU);return[parseInt(og[0x1]+og[0x1]||og[0x5],0x10)['toString'](),parseInt(og[0x2]+og[0x2]||og[0x6],0x10)['toString'](),parseInt(og[0x3]+og[0x3]||og[0x7],0x10)['toString'](),Math['floor'](d['NumberUtils']['mapRange']([0x0,0xff],[0x0,0x64],parseInt(og[0x4]+og[0x4]||og[0x8],0x10)['toString']()))/0x64];case'INT':nU=oJ(nU);return[(nU>>0x10&0xff)['toString'](),(nU>>0x8&0xff)['toString'](),(nU&0xff)['toString']()];default:return null;}}else{var oi=nW=='RGBCOMP'?nU:d['ColorUtils']['convert'](nU,'RGBCOMP',nW);if(oi)switch(nV){case'RGB':return'rgb('+oy(oi['slice'](0x0,0x3))['join'](',')+')';case'RGBA':oi=oi['slice'](0x0,0x4);var oj=oi['length']==0x4?oB(oi['pop']()):0x1;return'rgba('+oy(oi)['concat'](oj)['join'](',')+')';case'HSLCOMP':var oj=oi['length']==0x4?oB(oi['pop']()):null;var o3=oF(d['ColorUtils']['convert'](oi,'HSL')['replace'](/\s/g,'')['split'](','));return oj!=null?o3['concat'](oj):o3;case'HSL':var o4=ow(oi[0x0]),o5=ow(oi[0x1]),o6=ow(oi[0x2]);var op=Math['max'](o4,o5,o6),oq=Math['min'](o4,o5,o6),or=op-oq,oc,od=op===0x0?0x0:or/op,oe=op/0xff;switch(op){case oq:oc=0x0;break;case o4:oc=o5-o6+or*(o50xff?0xff:o8<0x0?0x0:o8;}};function oy(oz){return oz['map'](o8=>{return ow(o8);});};function oB(oj){if(oj==null){return 0x1;}else{oj=oj['toString']();oj=(oj['indexOf']('%')>-0x1?0.01:0x1)*parseFloat(oj['replace'](/[^0-9\.\-]/g,''));return isNaN(oj)||oj>0x1?0x1:oj<0x0?0x0:oj;}};function oD(oE){if(oE==null){return'100%';}else{oE=parseFloat(oE['toString']()['replace'](/[^0-9\.\-]/g,''));return(isNaN(oE)||oE>0x64?0x64:oE<0x0?0x0:oE)+'%';}};function oF(oG){let oc=parseFloat(oG['shift']()['toString']()['replace'](/[^0-9\.\-]/g,''));oc=isNaN(oc)||oc>0x168?0x168:oc<0x0?0x0:oc;return[oc]['concat'](oG['map'](oI=>{return oD(oI);}));};function oJ(o8){if(o8==null){return 0xffffff;}else{o8=parseInt(o8['toString']()['replace'](/[^0-9]/g,''));return isNaN(o8)||o8>0xffffff?0xffffff:o8<0x0?0x0:o8;}};};d['ColorUtils']['setAlpha']=function(oL,oM,oN){if(d['ObjectUtils']['is'](oL)){var oO={};for(let oP in oL)oO[oP]=d['ColorUtils']['setAlpha'](oL[oP],oM,oN);return oO;}else{var oQ=d['ColorUtils']['convert'](oL,'RGBCOMP');if(oQ){oM=oM['toString']();oM=(oM['indexOf']('%')>-0x1?0.01:0x1)*parseFloat(oM['replace'](/[^0-9\.\-]/g,''));oM=isNaN(oM)||oM>0x1?0x1:oM<0x0?0x0:oM;oQ[0x3]=oM;oN=(oN||d['ColorUtils']['getType'](oL))['toUpperCase']();oN=oN=='RGB'||oN=='HSL'||oN=='HEX'?oN+'A':oN;return d['ColorUtils']['convert'](oQ,oN);}}return null;};d['ColorUtils']['getAlpha']=function(oR){var oS=d['ColorUtils']['convert'](oR,'RGBCOMP');if(oS){if(oS['length']==0x3)return 0x1;else if(oS['length']==0x4){let oT=oS[0x3]['toString']();oT=(oT['indexOf']('%')>-0x1?0.01:0x1)*parseFloat(oT['replace'](/[^0-9\.\-]/g,''));return isNaN(oT)||oT>0x1?0x1:oT<0x0?0x0:oT;}}return null;};d['ColorUtils']['change']=function(oU,oV,oW){oV=parseFloat(oV);if(oU!=null&&typeof oV=='number'&&!isNaN(oV)){if(d['ObjectUtils']['is'](oU)){var oX={};for(let oY in oU)oX[oY]=d['ColorUtils']['change'](oU[oY],oV,oW);return oX;}else{var oZ=d['ColorUtils']['convert'](oU,'RGBCOMP');if(oZ){if(parseInt(oV)!==oV){oV=oV['toString']();oV=(oV['indexOf']('%')>-0x1?0.01:0x1)*parseFloat(oV['replace'](/[^0-9\.\-]/g,''));oV=isNaN(oV)?0x0:oV;return d['ColorUtils']['convert']([Math['round'](oZ[0x0]*(0x1+oV)),Math['round'](oZ[0x1]*(0x1+oV)),Math['round'](oZ[0x2]*(0x1+oV))],oW||d['ColorUtils']['getType'](oU));}else return d['ColorUtils']['convert']([Math['round'](oZ[0x0]+oV),Math['round'](oZ[0x1]+oV),Math['round'](oZ[0x2]+oV)],oW||d['ColorUtils']['getType'](oU));}}}return null;};d['ColorUtils']['invert']=function(p0,p1){if(d['ObjectUtils']['is'](p0)){var p2={};for(let p3 in p0)p2[p3]=d['ColorUtils']['invert'](p0[p3],p1);return p2;}else{var p4=d['ColorUtils']['convert'](p0,'RGBCOMP');if(p4)return d['ColorUtils']['convert']([0xff-p4[0x0],0xff-p4[0x1],0xff-p4[0x2]],p1||d['ColorUtils']['getType'](p0));}return null;};d['ColorUtils']['compare']=function(p5,p6){if(p5&&p6){p5=d['ColorUtils']['convert'](p5,'RGBA');p6=d['ColorUtils']['convert'](p6,'RGBA');if(p5&&p6)return d['equals'](p5,p6);}return null;};d['ColorUtils']['isBright']=function(p7,p8=0xa0){p7=d['ColorUtils']['convert'](p7,'RGBCOMP');if(!p7)return![];return parseInt(p8)