!function(o){"object"==typeof exports&&"object"==typeof module?o(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],o):o(CodeMirror)}(function(i){"use strict";i.registerHelper("lint","json",function(o){var e=[];if(!window.jsonlint)return window.console&&window.console.error("Error: window.jsonlint not defined, CodeMirror JSON linting cannot run."),e;var n=window.jsonlint.parser||window.jsonlint;n.parseError=function(o,n){var r=n.loc;e.push({from:i.Pos(r.first_line-1,r.first_column),to:i.Pos(r.last_line-1,r.last_column),message:o})};try{n.parse(o)}catch(o){}return e})});