Registry.require(["layout","i18n"],function(){var c=Registry.get("i18n"),e=Registry.get("layout");c.init();window.sendMessage=function(a,b){a.origin="action";rea.extension.sendMessage(a,function(a){if(a&&a.i18n)return c.setLocale(a.i18n).always(function(){b(a)});b(a)})};var a=null,b=null,d=function(){a&&window.clearTimeout(a);a=null;b&&b.parentNode.removeChild(b);b=null},a=window.setTimeout(function(){$("#action").append($('<div class="lds-css ng-scope"><div class="lds-dual-ring"><div></div><div></div></div>'))},
500);e.init("action.js",{suc:d,fail:function(){d();confirm(c.getMessage("An_internal_error_occured_Do_you_want_to_visit_the_forum_"))&&window.open("https://www.tampermonkey.net/bug")}})});
