{"version":3,"sources":["jsdelivr-header.js","/npm/robotjs@0.7.1/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,IAAI,QAAU,QAAQ,gCAMtB,SAAS,OAAO,EAAO,EAAQ,EAAW,EAAc,EAAe,GAEnE,KAAK,MAAQ,EACb,KAAK,OAAS,EACd,KAAK,UAAY,EACjB,KAAK,aAAe,EACpB,KAAK,cAAgB,EACrB,KAAK,MAAQ,EAEb,KAAK,QAAU,SAAS,EAAG,GAEvB,OAAO,QAAQ,SAAS,KAAM,EAAG,EACrC,CAEJ,CAlBA,OAAO,QAAU,QAEjB,OAAO,QAAQ,OAAS,CAAC,EAkBzB,OAAO,QAAQ,OAAO,QAAU,SAAS,EAAG,EAAG,EAAO,GAYlD,OAPI,OAFa,IAAN,QAAkC,IAAN,QAAsC,IAAV,QAA2C,IAAX,EAE3F,QAAQ,cAAc,EAAG,EAAG,EAAO,GAInC,QAAQ,gBAGT,IAAI,OAAO,EAAE,MAAO,EAAE,OAAQ,EAAE,UAAW,EAAE,aAAc,EAAE,cAAe,EAAE,MACzF","file":"/npm/robotjs@0.7.1/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.48.0.\n * Original file: /npm/robotjs@0.7.1/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","var robotjs = require('./build/Release/robotjs.node');\n\nmodule.exports = robotjs;\n\nmodule.exports.screen = {};\n\nfunction bitmap(width, height, byteWidth, bitsPerPixel, bytesPerPixel, image) \n{\n    this.width = width;\n    this.height = height;\n    this.byteWidth = byteWidth;\n    this.bitsPerPixel = bitsPerPixel;\n    this.bytesPerPixel = bytesPerPixel;\n    this.image = image;\n\n    this.colorAt = function(x, y)\n    {\n        return robotjs.getColor(this, x, y);\n    };\n\n}\n\nmodule.exports.screen.capture = function(x, y, width, height)\n{\n    //If coords have been passed, use them.\n    if (typeof x !== \"undefined\" && typeof y !== \"undefined\" && typeof width !== \"undefined\" && typeof height !== \"undefined\")\n    {\n        b = robotjs.captureScreen(x, y, width, height);\n    }\n    else \n    {\n        b = robotjs.captureScreen();\n    }\n\n    return new bitmap(b.width, b.height, b.byteWidth, b.bitsPerPixel, b.bytesPerPixel, b.image);\n};\n"]}