{"version":3,"sources":["jsdelivr-header.js","/npm/copy-dereference@1.0.0/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,IAAI,GAAK,QAAQ,MACb,KAAO,QAAQ,QAGnB,SAAS,kBACP,MAAM,IAAI,MAAM,qEAClB,CAGA,SAAS,oBAAqB,EAAK,GAGjC,IAAI,EAAW,GAAG,SAAS,GAC3B,GAAI,EAAS,cAAe,CAK1B,GAAG,UAAU,GAEb,IADA,IAAI,EAAU,GAAG,YAAY,GAAK,OACzB,EAAI,EAAG,EAAI,EAAQ,OAAQ,IAClC,oBAAoB,EAAM,KAAK,IAAM,EAAQ,GAAI,EAAO,KAAK,IAAM,EAAQ,GAE/E,KAAO,KAAI,EAAS,SAIlB,MAAM,IAAI,MAAM,4BAA8B,GAH9C,IAAI,EAAW,GAAG,aAAa,GAC/B,GAAG,cAAc,EAAM,EAAU,CAAE,KAAM,KAAM,KAAM,EAAS,MAGhE,CACA,GAAG,WAAW,EAAM,EAAS,MAAO,EAAS,MAC/C,CA3BA,OAAO,QAAU,gBAKjB,OAAO,QAAQ,KAAO","file":"/npm/copy-dereference@1.0.0/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/copy-dereference@1.0.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","var fs = require('fs')\nvar path = require('path')\n\nmodule.exports = copyDereference\nfunction copyDereference () {\n  throw new Error(\"This function does not exist. Use require('copy-dereference').sync\")\n}\n\nmodule.exports.sync = copyDereferenceSync\nfunction copyDereferenceSync (src, dest) {\n  // We could try readdir'ing and catching ENOTDIR exceptions, but that is 3x\n  // slower than stat'ing in the common case that we have a file.\n  var srcStats = fs.statSync(src)\n  if (srcStats.isDirectory()) {\n    // We do not copy the directory mode by passing a second argument to\n    // mkdirSync, because we wouldn't be able to populate read-only\n    // directories. If we really wanted to preserve directory modes, we could\n    // call chmodSync at the end.\n    fs.mkdirSync(dest)\n    var entries = fs.readdirSync(src).sort()\n    for (var i = 0; i < entries.length; i++) {\n      copyDereferenceSync(src + path.sep + entries[i], dest + path.sep + entries[i])\n    }\n  } else if (srcStats.isFile()) {\n    var contents = fs.readFileSync(src)\n    fs.writeFileSync(dest, contents, { flag: 'wx', mode: srcStats.mode })\n  } else {\n    throw new Error('Unexpected file type for ' + src)\n  }\n  fs.utimesSync(dest, srcStats.atime, srcStats.mtime)\n}\n"]}