!function(){function t(t,e){for(var r=0,n=t.length;n>r;++r)e(t[r])}function e(t,e){if(!Array.prototype.indexOf){for(var r=t.length;r--;)if(t[r]===e)return!0;return!1}return-1!=t.indexOf(e)}function r(t,e,r,n){var i=t.getCursor(),o=r(t,i),f=o;o.state=CodeMirror.innerMode(t.getMode(),o.state).state;/^[\w$_]*$/.test(o.string)||(o=f={start:i.ch,end:i.ch,string:"",state:o.state,type:"."==o.string?"property":null});for(;"property"==f.type;){f=r(t,a(i.line,f.start));if("."!=f.string)return;f=r(t,a(i.line,f.start));if(")"==f.string){var l=1;do{f=r(t,a(i.line,f.start));switch(f.string){case")":l++;break;case"(":l--}}while(l>0);f=r(t,a(i.line,f.start));if(0!==f.type.indexOf("variable"))return;f.type="function"}if(!c)var c=[];c.push(f)}return{list:s(o,c,e,n),from:a(i.line,o.start),to:a(i.line,o.end)}}function n(t,e){return r(t,u,function(t,e){return t.getTokenAt(e)},e)}function i(t,e){var r=t.getTokenAt(e);if(e.ch==r.start+1&&"."==r.string.charAt(0)){r.end=r.start;r.string=".";r.type="property"}else if(/^\.[\w$_]*$/.test(r.string)){r.type="property";r.start++;r.string=r.string.replace(/\./,"")}return r}function o(t,e){return r(t,p,i,e)}function s(r,n,i,o){function s(t){0!=t.indexOf(p)||e(u,t)||u.push(t)}function a(e){"string"==typeof e?t(f,s):e instanceof Array?t(l,s):e instanceof Function&&t(c,s);for(var r in e)s(r)}var u=[],p=r.string;if(n){var d,g=n.pop();if(0===g.type.indexOf("variable")){o&&o.additionalContext&&(d=o.additionalContext[g.string]);d=d||window[g.string]}else"string"==g.type?d="":"atom"==g.type?d=1:"function"==g.type&&(null==window.jQuery||"$"!=g.string&&"jQuery"!=g.string||"function"!=typeof window.jQuery?null!=window._&&"_"==g.string&&"function"==typeof window._&&(d=window._()):d=window.jQuery());for(;null!=d&&n.length;)d=d[n.pop().string];null!=d&&a(d)}else{for(var h=r.state.localVars;h;h=h.next)s(h.name);for(var h=r.state.globalVars;h;h=h.next)s(h.name);a(window);t(i,s)}return u}var a=CodeMirror.Pos;CodeMirror.javascriptHint=n;CodeMirror.registerHelper("hint","javascript",n);CodeMirror.coffeescriptHint=o;CodeMirror.registerHelper("hint","coffeescript",o);var f="charAt charCodeAt indexOf lastIndexOf substring substr slice trim trimLeft trimRight toUpperCase toLowerCase split concat match replace search".split(" "),l="length concat join splice push pop shift unshift slice reverse sort indexOf lastIndexOf every some filter forEach map reduce reduceRight ".split(" "),c="prototype apply call bind".split(" "),u="break case catch continue debugger default delete do else false finally for function if in instanceof new null return switch throw true try typeof var void while with".split(" "),p="and break catch class continue delete do else extends false finally for if in instanceof isnt new no not null of off on or return switch then throw true try typeof until void while with yes".split(" ")}();