((t,e)=>{"use strict";e&&!e.verify&&(e=void 0!==e.default?e.default:e.HTMLHint);const r=t=>t.split("\n").length,s=(e,r,s)=>{for(let o=0;o<e.length;++o){let l=e[o];if(l&&l.line>0){let e=l.character-1,o=e+1;if(l.evidence){let t=l.evidence.substring(e).search(/.\b/);t>-1&&(o+=t)}let i=l.line-1+s-1,n={message:l.reason,severity:l.code&&l.code.startsWith("W")?"warning":"error",from:t.Pos(i,e),to:t.Pos(i,o)};r.push(n)}}};t.registerHelper("lint","html",((o,l)=>{l.indent||(l.indent=1);const i=[];return((r,s,o)=>{const l=e.verify(r,s);for(let e=0;e<l.length;e++){let r=l[e],s=r.line-1,i=r.col;o.push({from:t.Pos(r.line-1,r.col-1),to:t.Pos(s,i),message:r.message,severity:r.type})}})(o,l.html.options,i),((e,s,o)=>{const l=e.split(/<style[\s\S]*?>|<\/style>/gi);for(let e=1;e<l.length;e+=2){let i=r(l.slice(0,e).join()),n=CSSLint.verify(l[e],s).messages,f=null;for(let e=0;e<n.length;e++){f=n[e];let r=i-1+f.line-1,s=f.col;o.push({from:t.Pos(i-1+f.line-1,f.col-1),to:t.Pos(r,s),message:f.message,severity:f.type})}}})(o,l.css.options,i),((t,e,o)=>{const l=t.split(/<script[\s\S]*?>|<\/script>/gi);for(let t=1;t<l.length;t+=2)if(l[t].length>1){JSHINT(l[t],e,e.globals);let i=JSHINT.data().errors;i&&s(i,o,r(l.slice(0,t).join()))}})(o,l.javascript.options,i),i}))})(CodeMirror,HTMLHint);