{"version":3,"sources":["jsdelivr-header.js","/npm/gulp-html-minifier@0.1.8/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,aAQA,IAAI,GAAK,QAAQ,gBAChB,QAAU,QAAQ,iBAClB,SAAW,QAAQ,8BAA8B,SACjD,MAAQ,QAAQ,aACjB,OAAO,QAAU,SAAU,GAU1B,SAAS,EAAY,EAAS,GAC7B,OAUD,SAAkB,GACjB,IAAK,MAAM,QAAQ,GAClB,OAAO,EAAM,CAAC,GAAO,GAEtB,OAAO,CACR,CAfQ,CAAQ,GAAS,QAAO,SAAU,EAAM,GAC9C,IAAI,EAAQ,EAMZ,OALK,aAAkB,SACtB,EAAS,EAAO,QAAQ,MAAO,OAC/B,EAAQ,IAAI,OAAO,EAAQ,MAE5B,EAAO,EAAK,QAAQ,EAAO,GAE5B,GAAG,EACJ,CAOA,SAAS,EAAS,GACjB,OAAO,EAAS,QAAQ,MAAO,IAChC,CACA,OA7BA,EAAU,GAAW,CACpB,WAAW,IAGA,OACX,EAAQ,KAAO,IAAI,UAwBb,GAAG,KAAI,SAAU,EAAM,GAC7B,IAGoB,gBAAhB,EAAQ,IACV,EAAK,KAAO,EAAW,EAAQ,WAAY,EAAQ,EAAK,QAExD,EAAK,KAAO,EAAW,EAAQ,WAAY,EAAQ,EAAK,OACxD,EAAK,SAAW,IAAI,OAAO,QAAQ,OAAO,OAAO,EAAK,UAAW,IAEnE,CAAE,MAAO,GACR,OAAO,EAAG,IAAI,MAAM,YAAY,eAAgB,EAAK,GACtD,CACA,EAAG,KAAM,EACV,GACD","file":"/npm/gulp-html-minifier@0.1.8/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/gulp-html-minifier@0.1.8/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/*\n * gulp-html-minifier\n * https://github.com/origin1tech/gulp-html-minifier\n *\n * Copyright (c) 2014 Jon Schlinkert\n * Licensed under the MIT license.\n */\nvar es = require('event-stream'),\n\thtmlmin = require('html-minifier'),\n\tHTMLLint = require('html-minifier/src/htmllint').HTMLLint,\n\tgutil = require('gulp-util');\nmodule.exports = function (options) {\n\toptions = options || {\n\t\tshowStack: false,\n\t};\t\n\n\tif (options.lint) {\n\t\toptions.lint = new HTMLLint();\n\t}\n\t// snipets stripPath, toArray & unixify based on gulp-inject\n\t// https://github.com/klei/gulp-inject/blob/master/index.js\n\tfunction ignorePath (basedir, filepath) {\n\t\treturn toArray(basedir).reduce(function (path, remove) {\n\t\t\tvar regex = remove;\n\t\t\tif(!(remove instanceof RegExp)){\n\t\t\t\tremove = remove.replace(/\\//g, '\\\\/');\n\t\t\t\tregex = new RegExp(remove, 'g');\n\t\t\t}\n\t\t\tpath = path.replace(regex, '');\n\t\t\treturn path;\n\t\t}, filepath);\n\t}\n\tfunction toArray (arr) {\n\t\tif (!Array.isArray(arr)) {\n\t\t\treturn arr ? [arr] : [];\n\t\t}\n\t\treturn arr;\n\t}\n\tfunction unixify (filepath) {\n\t\treturn filepath.replace(/\\\\/g, '/');\n\t}\n\treturn es.map(function (file, cb) {\n\t\ttry {\n\t\t\t// if in dev mode html should not be minified\n\t\t\t// instead only output stream after checking ignore path.\n\t\t\tif(options.env === 'development'){\n\t\t\t\tfile.path = ignorePath(options.ignorePath, unixify(file.path));\n\t\t\t} else {\n\t\t\t\tfile.path = ignorePath(options.ignorePath, unixify(file.path));\n\t\t\t\tfile.contents = new Buffer(htmlmin.minify(String(file.contents), options));\n\t\t\t}\n\t\t} catch (err) {\n\t\t\treturn cb(new gutil.PluginError('gulp-htmlmin', err, options));\n\t\t}\n\t\tcb(null, file);\n\t});\n};\n"]}