{"version":3,"sources":["jsdelivr-header.js","/npm/codemirror@5.65.14/addon/lint/html-lint.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,CCCA,SAAU,GACc,iBAAX,SAAwC,iBAAV,OACvC,EAAI,QAAQ,wBAAyB,QAAQ,aACrB,mBAAV,QAAwB,OAAO,IAC7C,OAAO,CAAC,uBAAwB,YAAa,GAE7C,EAAI,WAAY,OAAO,SAC1B,CAPD,EAOG,SAAS,EAAY,GACtB,aAEA,IAAI,EAAe,CACjB,qBAAqB,EACrB,kBAAkB,EAClB,4BAA4B,EAC5B,iBAAiB,EACjB,YAAY,EACZ,oBAAoB,EACpB,aAAa,EACb,iBAAiB,EACjB,uBAAuB,GAGzB,EAAW,eAAe,OAAQ,QAAQ,SAAS,EAAM,GACvD,IAAI,EAAQ,GASZ,GARI,IAAa,EAAS,SAEtB,OAD6B,IAArB,EAAS,QACN,EAAS,QAET,EAAS,UAGnB,IAAU,EAAW,OAAO,WAC5B,EAIH,OAHI,OAAO,SACP,OAAO,QAAQ,MAAM,kIAElB,EAGT,IADA,IAAI,EAAW,EAAS,OAAO,EAAM,GAAW,EAAQ,OAAS,GACxD,EAAI,EAAG,EAAI,EAAS,OAAQ,IAAK,CACxC,IAAI,EAAU,EAAS,GACnB,EAAY,EAAQ,KAAO,EAAG,EAAU,EAAQ,KAAO,EAAG,EAAW,EAAQ,IAAM,EAAG,EAAS,EAAQ,IAC3G,EAAM,KAAK,CACT,KAAM,EAAW,IAAI,EAAW,GAChC,GAAI,EAAW,IAAI,EAAS,GAC5B,QAAS,EAAQ,QACjB,SAAW,EAAQ,MAEvB,CACA,OAAO,CACT,GACF","file":"/npm/codemirror@5.65.14/addon/lint/html-lint.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/codemirror@5.65.14/addon/lint/html-lint.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","// CodeMirror, copyright (c) by Marijn Haverbeke and others\n// Distributed under an MIT license: https://codemirror.net/5/LICENSE\n\n// Depends on htmlhint.js from http://htmlhint.com/js/htmlhint.js\n\n// declare global: HTMLHint\n\n(function(mod) {\n  if (typeof exports == \"object\" && typeof module == \"object\") // CommonJS\n    mod(require(\"../../lib/codemirror\"), require(\"htmlhint\"));\n  else if (typeof define == \"function\" && define.amd) // AMD\n    define([\"../../lib/codemirror\", \"htmlhint\"], mod);\n  else // Plain browser env\n    mod(CodeMirror, window.HTMLHint);\n})(function(CodeMirror, HTMLHint) {\n  \"use strict\";\n\n  var defaultRules = {\n    \"tagname-lowercase\": true,\n    \"attr-lowercase\": true,\n    \"attr-value-double-quotes\": true,\n    \"doctype-first\": false,\n    \"tag-pair\": true,\n    \"spec-char-escape\": true,\n    \"id-unique\": true,\n    \"src-not-empty\": true,\n    \"attr-no-duplication\": true\n  };\n\n  CodeMirror.registerHelper(\"lint\", \"html\", function(text, options) {\n    var found = [];\n    if (HTMLHint && !HTMLHint.verify) {\n      if(typeof HTMLHint.default !== 'undefined') {\n        HTMLHint = HTMLHint.default;\n      } else {\n        HTMLHint = HTMLHint.HTMLHint;\n      }\n    }\n    if (!HTMLHint) HTMLHint = window.HTMLHint;\n    if (!HTMLHint) {\n      if (window.console) {\n          window.console.error(\"Error: HTMLHint not found, not defined on window, or not available through define/require, CodeMirror HTML linting cannot run.\");\n      }\n      return found;\n    }\n    var messages = HTMLHint.verify(text, options && options.rules || defaultRules);\n    for (var i = 0; i < messages.length; i++) {\n      var message = messages[i];\n      var startLine = message.line - 1, endLine = message.line - 1, startCol = message.col - 1, endCol = message.col;\n      found.push({\n        from: CodeMirror.Pos(startLine, startCol),\n        to: CodeMirror.Pos(endLine, endCol),\n        message: message.message,\n        severity : message.type\n      });\n    }\n    return found;\n  });\n});\n"]}