"use strict";functione(e,n,t,r,o,a,u){try{vari=e[a](u),s=i.value}catch(c){returnvoidt(c)}i.done?n(s):Promise.resolve(s).then(r,o)}functionn(n){returnfunction(){vart=this,r=arguments;returnnewPromise(function(o,a){varu=n.apply(t,r);functioni(n){e(u,o,a,i,s,"next",n)}functions(n){e(u,o,a,i,s,"throw",n)}i(void0)})}}functiont(e,n){vart;if("undefined"==typeofSymbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(t=r(e))||n&&e&&"number"==typeofe.length){t&&(e=t);varo=0,a=function(){};return{s:a,n:function(){returno>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throwe},f:a}}thrownewTypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}varu,i=!0,s=!1;return{s:function(){t=e[Symbol.iterator]()},n:function(){vare=t.next();returni=e.done,e},e:function(e){s=!0,u=e},f:function(){try{i||null==t.return||t.return()}finally{if(s)throwu}}}}functionr(e,n){if(e){if("string"==typeofe)returno(e,n);vart=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?o(e,n):void0}}functiono(e,n){(null==n||n>e.length)&&(n=e.length);for(vart=0,r=newArray(n);t<n;t++)r[t]=e[t];returnr}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void0;vara,u,i,s,c,l="1.0.3",f=function(){vare,n=t(document.getElementsByClassName("username-1A8OIy"));try{varr=function(){varn=e.value;if(n.classList.contains("username-added"))return"continue";vart=n.textContent,r=s.find(function(e){returne.nick===t});if(!r)return"continue";varo=a.getUser(r.userId),u=document.createElement("span");u.style.filter="brightness(0.5)",u.style.marginLeft="5px",u.className="author-username",u.textContent="(".concat(o.username,")"),n.appendChild(u),n.classList.add("username-added")};for(n.s();!(e=n.n()).done;)r()}catch(o){n.e(o)}finally{n.f()}},d=function(){s=u.getMembers(i.getGuildId())},m={goosemodHandlers:{onImport:function(){vare=n(regeneratorRuntime.mark(functione(){returnregeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case0:c=[],a=goosemodScope.webpackModules.findByProps("getUser"),u=goosemodScope.webpackModules.findByProps("getNick"),i=goosemodScope.webpackModules.findByProps("getGuildId","getLastSelectedGuildId"),c.push(setInterval(f,300),setInterval(d,5e3)),d();case6:case"end":returne.stop()}},e)}));returnfunction(){returne.apply(this,arguments)}}(),onLoadingFinished:function(){vare=n(regeneratorRuntime.mark(functione(){returnregeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case0:case"end":returne.stop()}},e)}));returnfunction(){returne.apply(this,arguments)}}(),onRemove:function(){vare=n(regeneratorRuntime.mark(functione(){varn,r,o,a,u;returnregeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case0:n=t(c);try{for(n.s();!(r=n.n()).done;)o=r.value,clearInterval(o)}catch(i){n.e(i)}finally{n.f()}s=null,a=t(document.getElementsByClassName("author-username"));try{for(a.s();!(u=a.n()).done;)u.value.remove()}catch(i){a.e(i)}finally{a.f()}case5:case"end":returne.stop()}},e)}));returnfunction(){returne.apply(this,arguments)}}(),logRegionColor:"darkred"}};exports.default=m;