{"version":3,"sources":["jsdelivr-header.js","/npm/karma-static-server@2.0.0/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACLA,MAAM,YAAc,QAAQ,gBAEtB,8BAAgC,SAAS,EAAQ,GACrD,MAAM,EAAM,EAAO,OAAO,uBACpB,EAAU,OAAO,OAAO,CAC5B,KAAM,EAAO,SAEb,KAAK,EAAO,UACZ,MAAO,CAAC,aAAc,cACpB,EAAO,aAAe,CAAC,GAEvB,EAAQ,KACV,EAAI,KAAK,2BAA2B,EAAQ,QAG9C,MAAM,EAAQ,YAAY,EAAQ,KAAM,GAExC,OAAO,SAAS,EAAS,EAAU,GAQjC,OAPI,EAAQ,KACV,EAAS,YAAY,UAAU,KACD,MAAxB,EAAS,YACX,EAAI,KAAK,IAAI,EAAS,eAAe,EAAQ,MAC/C,IAGG,EAAM,EAAS,EAAU,EAClC,CACF,EAGA,8BAA8B,QAAU,CAAC,SAAU,UAEnD,OAAO,QAAU,CACf,0BAA2B,CAAC,UAAW","file":"/npm/karma-static-server@2.0.0/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/karma-static-server@2.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","/* eslint-disable no-console */\nconst serveStatic = require('serve-static');\n\nconst StaticServerMiddlewareFactory = function(config, logger) {\n  const log = logger.create('karma-static-server');\n  const options = Object.assign({\n    root: config.basePath,\n    // do not log during singleRun\n    log: config.singleRun ? false : true,\n    index: ['index.html', 'index.htm']\n  }, (config.serveStatic || {}));\n\n  if (options.log) {\n    log.info(`serving static files in ${options.root}`);\n  }\n\n  const serve = serveStatic(options.root, options);\n\n  return function(request, response, next) {\n    if (options.log) {\n      response.addListener('finish', () => {\n        if (response.statusCode !== 404) {\n          log.info(`[${response.statusCode}] ${request.url}`);\n        }\n      });\n    }\n    return serve(request, response, next);\n  };\n};\n\n// inject karma runner config\nStaticServerMiddlewareFactory.$inject = ['config', 'logger'];\n\nmodule.exports = {\n  'middleware:staticServer': ['factory', StaticServerMiddlewareFactory]\n};\n"]}