"use strict";functione(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.")}vari,u=!0,c=!1;return{s:function(){t=e[Symbol.iterator]()},n:function(){vare=t.next();returnu=e.done,e},e:function(e){c=!0,i=e},f:function(){try{u||null==t.return||t.return()}finally{if(c)throwi}}}}functionr(e,r){if(e){if("string"==typeofe)returnn(e,r);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)?n(e,r):void0}}functionn(e,r){(null==r||r>e.length)&&(r=e.length);for(varn=0,t=newArray(r);n<r;n++)t[n]=e[n];returnt}functiont(e,r,n,t,o,a,i){try{varu=e[a](i),c=u.value}catch(s){returnvoidn(s)}u.done?r(c):Promise.resolve(c).then(t,o)}functiono(e){returnfunction(){varr=this,n=arguments;returnnewPromise(function(o,a){vari=e.apply(r,n);functionu(e){t(i,o,a,u,c,"next",e)}functionc(e){t(i,o,a,u,c,"throw",e)}u(void0)})}}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void0;vara,i,u="3.1.2",c=[],s=function(){vare=o(regeneratorRuntime.mark(functione(r){varn,t;returnregeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case0:if(n=r.id,t=document.getElementById("chat-messages-".concat(n))){e.next=4;break}returne.abrupt("return");case4:if(!t.classList.contains("gm-deleted-message")){e.next=6;break}returne.abrupt("return");case6:t.classList.add("gm-deleted-message"),t.style.backgroundColor="rgba(240, 71, 71, 0.1)";case8:case"end":returne.stop()}},e)}));returnfunction(r){returne.apply(this,arguments)}}(),f=function(){varr,n=e(c);try{for(n.s();!(r=n.n()).done;){vart=r.value;s(t)}}catch(o){n.e(o)}finally{n.f()}},d=function(e){returne._orderedActionHandlers.MESSAGE_DELETE.find(function(e){returne.actionHandler.toString().includes("revealedMessageId")})},l=0,m=functione(){varr=goosemodScope.webpackModules.findByProps("register");try{a=d(r)}catch(n){returnsetTimeout(e,3e3)}l=r._orderedActionHandlers.MESSAGE_DELETE.indexOf(d(r)),r._orderedActionHandlers.MESSAGE_DELETE[l]={actionHandler:function(e){c.find(function(r){returnr.id===e.id})||(c.push(e),s(e))},storeDidChange:function(){}}},p={goosemodHandlers:{onImport:function(){vare=o(regeneratorRuntime.mark(functione(){returnregeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case0:case"end":returne.stop()}},e)}));returnfunction(){returne.apply(this,arguments)}}(),onLoadingFinished:function(){vare=o(regeneratorRuntime.mark(functione(){returnregeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case0:i=setInterval(f,300),m();case2:case"end":returne.stop()}},e)}));returnfunction(){returne.apply(this,arguments)}}(),onRemove:function(){varr=o(regeneratorRuntime.mark(functionr(){varn,t;returnregeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case0:clearInterval(i),n=e(document.getElementsByClassName("gm-deleted-message"));try{for(n.s();!(t=n.n()).done;)t.value.remove()}catch(o){n.e(o)}finally{n.f()}goosemodScope.webpackModules.findByProps("register")._orderedActionHandlers.MESSAGE_DELETE[l]=a;case4:case"end":returnr.stop()}},r)}));returnfunction(){returnr.apply(this,arguments)}}(),logRegionColor:"darkred"}};exports.default=p;