'use strict';Registry.require(["promise","helper"],function(){var b=rea.FEATURES,p=Registry.get("helper"),v=Registry.get("promise"),a;a=b.RUNTIME.BROWSER_VERSION;var f=!0;a=b.RUNTIME.CHROME?64<=a?2018:59<=a?2017:47<=a?2015:5:b.RUNTIME.SAFARI?11<=a?2018:10<=a?2017:6<=a?2015:6<=a?5:3:b.RUNTIME.EDGE?16<=a?2017:2016:b.RUNTIME.FIREFOX?58<=a?2018:52<=a?2017:2016:5;var q={};b.RUNTIME.CHROME?(f=!1,console.warn("hint: disable inline ESLint config due to web worker CSP issues","https://bugs.chromium.org/p/chromium/issues/detail?id=777076",
"https://bugs.chromium.org/p/chromium/issues/detail?id=159303")):b.RUNTIME.EDGE?(f=!1,console.warn("hint: disable inline ESLint config due to web worker CSP issues")):window.Worker||(f=!1,console.warn("hint: disable inline ESLint config because web workers are unavailable and this extension's CSP doesn't allow unsafe eval, which is required for ESLint's dynamic reconfigration"));var m={env:{es6:2015<=a,browser:!0},parserOptions:{ecmaVersion:a,sourceType:"script",ecmaFeatures:{globalReturn:!0}},rules:{curly:[1,
"multi-line"],"dot-location":0,"dot-notation":[1,{allowKeywords:!0}],"no-caller":1,"no-case-declarations":2,"no-div-regex":0,"no-empty-pattern":2,"no-eq-null":0,"no-eval":1,"no-extra-bind":1,"no-fallthrough":1,"no-implicit-globals":2,"no-implied-eval":1,"no-lone-blocks":1,"no-loop-func":1,"no-multi-spaces":1,"no-multi-str":1,"no-native-reassign":1,"no-octal-escape":2,"no-octal":2,"no-proto":1,"no-redeclare":2,"no-return-assign":1,"no-sequences":1,"no-undef":1,"no-useless-call":1,"no-useless-concat":1,
"no-with":1}},g={};p.each("uneval unsafeWindow TM_info GM_info GM GM_addStyle GM_deleteValue GM_listValues GM_getValue GM_download GM_log GM_registerMenuCommand GM_unregisterMenuCommand GM_openInTab GM_setValue GM_addValueChangeListener GM_removeValueChangeListener GM_xmlhttpRequest GM_getTab GM_setTab GM_saveTab GM_getTabs GM_setClipboard GM_notification GM_getResourceText GM_getResourceURL".split(" "),function(a){g[a]=!0});m.globals=g;var c,e={},h;Registry.register("hinter","5946",
{hint:function(a,b,w){var k=v(),r=k.promise(),t=w||q,d;b?(d=b,d.globals=g):d=m;if(window.Worker){var u=function(){c=new Worker("worker/lint.js");c.onmessage=function(a){a=a.data;var l=a.id,b,c;l&&(b=e[l])&&(c=b.d)&&(delete e[l],(b=a.results)?(f||(b=b.map(function(a){var b;a.message&&(b=a.message.match(/Configuration for rule "([^"]+)"[\s\S]*evaluate a string as JavaScript[\s\S]*/))&&(a.message='Rule "'+b[1]+'": ESLint inline configuration is not supported by this browser.',a.severity=1);return a})),
c.resolve(b)):c.reject(a.error||"Unknown error"));n(l)};c.postMessage({method:"base_uri",value:rea.extension.getURL("/")});h=null},n=function(a){c||u();if(a)h=null;else if(h)return;var b,d=Date.now();Object.keys(e).forEach(function(a){e[a].ts<=d&&(b=e[a],d=b.ts)});b&&(h=b.id,c.postMessage({method:b.method,id:b.id,config:b.c,options:b.o,text:b.t}))};r.abort=function(){c&&(c.terminate(),c=null,n())};c||u();b=p.createUUID();e[b]={method:"lint",id:b,d:k,t:a,c:d,o:t,ts:Date.now()};n()}else Registry.vendor("vendor/eslint/eslint",
function(){try{var b=(new window.eslint).verify(a,d,t);k.resolve(b||[])}catch(c){k.reject(c)}});return r},globals:g,config:m,options:q,autoHintMaxLength:5E4})});
