{"version":3,"sources":["jsdelivr-header.js","/npm/headless-gl@3.0.7/browser_index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,aAEA,SAAS,cAAe,EAAO,EAAQ,GACrC,IAII,EAJA,EAAS,SAAS,cAAc,UACpC,IAAK,EACH,OAAO,KAGT,EAAO,MAAQ,EACf,EAAO,OAAS,EAEhB,IACE,EAAK,EAAO,WAAW,qBAAsB,EAC/C,CAAE,MAAO,GAAI,CACb,IACE,EAAK,EAAO,WAAW,QAAS,EAClC,CAAE,MAAO,GAAI,CAUb,OARI,IACF,EAAG,OAAS,SAAU,EAAG,GACvB,EAAO,MAAQ,EACf,EAAO,OAAS,CAClB,EACA,EAAG,QAAU,WAAa,GAGrB,GAAM,IACf,CAEA,OAAO,QAAU","file":"/npm/headless-gl@3.0.7/browser_index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/headless-gl@3.0.7/browser_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\nfunction createContext (width, height, options) {\n  var canvas = document.createElement('canvas')\n  if (!canvas) {\n    return null\n  }\n  var gl\n  canvas.width = width\n  canvas.height = height\n\n  try {\n    gl = canvas.getContext('experimental-webgl', options)\n  } catch (e) {}\n  try {\n    gl = canvas.getContext('webgl', options)\n  } catch (e) {}\n\n  if (gl) {\n    gl.resize = function (w, h) {\n      canvas.width = w\n      canvas.height = h\n    }\n    gl.destroy = function () {}\n  }\n\n  return gl || null\n}\n\nmodule.exports = createContext\n"]}