{"version":3,"sources":["jsdelivr-header.js","/npm/gulp-extract-ar@1.0.0/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACLA,IAAI,KAAM,YAAa,MAAO,GAAI,QAAS,QAE3C,GAAK,QAAQ,MAEb,QAAU,QAAQ,YAElB,YAAc,QAAQ,gBAEtB,MAAQ,QAAQ,SAEhB,KAAO,kBAEP,QAAU,WACR,OAAO,QAAQ,KAAI,SAAS,EAAM,EAAK,GACrC,IAAgB,EAAO,EAAG,EAC1B,GAAI,EAAK,SACP,OAAO,EAAG,KAAM,GAElB,GAAI,EAAK,WAAY,CACnB,IAGE,IADA,EADU,IAAI,GAAG,QAAQ,EAAK,UACd,WACX,EAAI,EAAG,EAAM,EAAM,OAAQ,EAAI,EAAK,IACvC,EAAO,EAAM,GACb,KAAK,KAAK,IAAI,MAAM,CAClB,IAAK,KACL,KAAM,EAAK,OACX,SAAU,EAAK,aAGrB,CAAE,MAAO,GAEP,IAAI,YAAY,KADZ,EAEN,CACA,OAAO,GACT,CACI,EAAK,YACP,IAAI,YAAY,KAAM,8BAExB,EAAG,KAAM,EACX,GACF,EAEA,OAAO,QAAU","file":"/npm/gulp-extract-ar@1.0.0/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/gulp-extract-ar@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","// Generated by CoffeeScript 2.1.1\nvar NAME, PluginError, Vinyl, ar, extract, through;\n\nar = require('ar');\n\nthrough = require('through2');\n\nPluginError = require('plugin-error');\n\nVinyl = require('vinyl');\n\nNAME = 'gulp-extract-ar';\n\nextract = function() {\n  return through.obj(function(file, enc, cb) {\n    var archive, e, files, i, len;\n    if (file.isNull()) {\n      return cb(null, file);\n    }\n    if (file.isBuffer()) {\n      try {\n        archive = new ar.Archive(file.contents);\n        files = archive.getFiles();\n        for (i = 0, len = files.length; i < len; i++) {\n          file = files[i];\n          this.push(new Vinyl({\n            cwd: './',\n            path: file.name(),\n            contents: file.fileData()\n          }));\n        }\n      } catch (error) {\n        e = error;\n        new PluginError(NAME, e);\n      }\n      return cb();\n    }\n    if (file.isStream()) {\n      new PluginError(NAME, 'Streaming isn\\'t supported!');\n    }\n    cb(null, file);\n  });\n};\n\nmodule.exports = extract;\n"]}