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ent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/check-syntax@0.2.0/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","'use strict'\n\nconst vm = require('vm')\nconst Module = require('module')\nvar path = require('path')\nvar fs = require('fs')\nvar dependencyTree = require('dependency-tree')\n\nmodule.exports = checkSyntax\n\nfunction checkSyntax (entry) {\n  return dependencyTree.toList({\n    filename: require.resolve(entry),\n    directory: path.dirname(entry),\n    filter: p => p.indexOf('node_modules') === -1 && !/\\.json$/.test(p)\n  }).map(function (f) {\n    try {\n      checkScriptSyntax(fs.readFileSync(f).toString(), f)\n    } catch (e) {\n      var lines = e.stack.toString().split('\\n')\n      var loc = lines[0]\n      var code = lines[1]\n      var msg = e.message\n      return {\n        loc: loc,\n        code: code,\n        msg: msg\n      }\n    }\n  }).filter(Boolean)\n}\n\nfunction checkScriptSyntax (source, filename) {\n  source = stripShebang(source)\n  source = stripBOM(source)\n  source = Module.wrap(source)\n  // compile the script, this will throw if it fails\n  /* eslint-disable no-new */\n  new vm.Script(source, { displayErrors: true, filename: filename })\n}\n\n/**\n * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM)\n * because the buffer-to-string conversion in `fs.readFileSync()`\n * translates it to FEFF, the UTF-16 BOM.\n */\nfunction stripBOM (content) {\n  if (content.charCodeAt(0) === 0xFEFF) {\n    content = content.slice(1)\n  }\n  return content\n}\n\n/**\n * Find end of shebang line and slice it off\n */\nfunction stripShebang (content) {\n  // Remove shebang\n  var contLen = content.length\n  if (contLen >= 2) {\n    if (content.charCodeAt(0) === 35/* # */ &&\n        content.charCodeAt(1) === 33/*! */) {\n      if (contLen === 2) {\n        // Exact match\n        content = ''\n      } else {\n        // Find end of shebang line and slice it off\n        var i = 2\n        for (; i < contLen; ++i) {\n          var code = content.charCodeAt(i)\n          if (code === 10/* \\n */ || code === 13/* \\r */) { break }\n        }\n        if (i === contLen) { content = '' } else {\n          // Note that this actually includes the newline character(s) in the\n          // new output. This duplicates the behavior of the regular expression\n          // that was previously used to replace the shebang line\n          content = content.slice(i)\n        }\n      }\n    }\n  }\n  return content\n}\n"]}