/**
 * Minified by jsDelivr using Terser v5.39.0.
 * Original file: /npm/node-rgb-net@0.1.1/index.js
 *
 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
 */
const DEVICE_TYPE={KEYBOARD:"keyboard",MOUSE:"mouse",GRAPHIC_CARD:"graphiccard",MOTHERBOARD:"motherboard"};var{execFile:execFile}=require("child_process"),path=require("path"),rgbNetApp=path.join(__dirname,"node-rgb-net-win-app","NodeRGBNet","bin","Release","NodeRGBNet.exe");function getRgbDevices(e=null,r){execute(["--getDevices",e],r)}function setColor({deviceType:e=null,color:r=null},i){if(!e)return void i("'deviceType' is required!",null);if(!r)return void i("'deviceType' is required!",null);execute(["--setColor",e,r],i)}function execute(e,r){execFile(rgbNetApp,e,{shell:!0},((e,i,l)=>{if(e)r(e,null);else{if(!l){var o=JSON.parse(i);return o.error?void r(o.error,null):void r(null,o.data)}r(l,null)}}))}module.exports={DEVICE_TYPE:DEVICE_TYPE,getRgbDevices:getRgbDevices,setColor:setColor};
//# sourceMappingURL=/sm/3e49fcbc57f5cf88433420ec20128157cdf09be929fd0d886fe7720e4e4deec7.map