{"version":3,"sources":["jsdelivr-header.js","/npm/vcsurl@0.1.1/lib/vcsurl.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACGA,SAAS,SAAS,EAAK,GACrB,IAAI,EAAM,EAAI,QAAQ,GAAQ,EAAK,OAAS,EACxC,EAAO,EAAI,UAAU,GAIrB,GAFJ,EAAO,EAAK,QAAQ,OAAQ,KAEZ,MAAM,KAEtB,MAAO,WAAa,EAAK,WAAa,IAAM,EAAK,GAAK,IAAM,EAAK,EACnE,CAhBA,OAAO,QAAU,SAAiB,GAChC,OAAI,EAAI,QAAQ,eAAiB,EACxB,SAAS,EAAK,cACd,EAAI,QAAQ,kBAAoB,EAChC,SAAS,EAAK,sBADlB,CAEP","file":"/npm/vcsurl@0.1.1/lib/vcsurl.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.37.0.\n * Original file: /npm/vcsurl@0.1.1/lib/vcsurl.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","\n\nmodule.exports = function vcsurl (url) {\n  if (url.indexOf('github.com') >= 0) \n    return parseUrl(url, 'github.com')\n  else if (url.indexOf('bitbucket.org') >= 0) \n    return parseUrl(url, 'bitbucket.org') \n} \n\nfunction parseUrl(url, site) {\n  var pos = url.indexOf(site) + site.length + 1; //+1 => chop either ':' or '/'\n  var repo = url.substring(pos);\n\n  repo = repo.replace('.git', '')\n\n  var data = repo.split('/')\n\n  return 'https://' + site.toString() + '/' + data[0] + '/' + data[1];\n}"]}