{"version":3,"sources":["jsdelivr-header.js","/npm/es2020@1.1.9/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,MAAM,OAAS,QAAQ,uBACjB,QAAU,QAAQ,YAClB,MAAQ,QAAQ,cAMtB,SAAS,OAAQ,EAAU,GACzB,GAAI,WAAW,KAAK,GAAW,OAAO,UACtC,MAAM,EAAO,GAEb,OADwB,SAGxB,SAAgB,EAAK,EAAK,GACxB,EAAK,KAAK,GACV,GACF,IAEA,WACE,MAAM,EAAM,OAAO,OAAO,GAAM,SAAS,QACzC,IACE,IAAI,EAAM,MAAM,UAAU,EAAK,CAC7B,QAAS,OAAO,QAChB,aAAY,EAAQ,OAAO,OAAQ,SACnC,SAAU,EACV,SAAS,GAEb,CAAE,MAAO,GAEP,YADA,KAAK,KAAK,QAAS,EAErB,CACA,KAAK,KAAK,EAAI,MACd,KAAK,KAAK,KACZ,GACF,CA/BA,OAAO,QAAU","file":"/npm/es2020@1.1.9/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/es2020@1.1.9/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","const preset = require('babel-preset-es2020')\nconst through = require('through2')\nconst babel = require('babel-core')\n\nmodule.exports = es2020\n\n// In hindsight we can do without most of ES6\n// (str, obj) -> transformStream\nfunction es2020 (filename, options) {\n  if (/\\.json$/i.test(filename)) return through()\n  const bufs = []\n  const transformStream = through(write, end)\n  return transformStream\n\n  function write (buf, enc, next) {\n    bufs.push(buf)\n    next()\n  }\n\n  function end () {\n    const src = Buffer.concat(bufs).toString('utf8')\n    try {\n      var res = babel.transform(src, {\n        plugins: preset.plugins,\n        sourceMaps: options._flags.debug ? 'inline' : false,\n        filename: filename,\n        compact: false\n      })\n    } catch (err) {\n      this.emit('error', err)\n      return\n    }\n    this.push(res.code)\n    this.push(null)\n  }\n}\n"]}