{"version":3,"sources":["jsdelivr-header.js","/npm/faustao-errou@1.1.0/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;ACJA,MAAM,MAAQ,QAAQ,iBAAiB,KACjC,KAAO,QAAQ,QACf,GAAK,QAAQ,MAEb,SAAW,KAAK,QAAQ,GAAG,aAAa,aACxC,UAAY,KAAK,KAAK,SAAU,mBAEhC,aAAe,WACjB,MAAM,EAAW,UAAU,UAAU,OAC/B,EAAa,KAAK,KAAK,SAAU,oBAAoB,IAAI,UAAU,OACnE,EAAS,UAAU,UAAU,OAE7B,EAAW,QAAQ,SAEzB,GAAgB,UAAb,EACC,OAAO,EAAK,GAEX,GAAgB,UAAb,EACJ,OAAO,EAAK,GACT,GAAgB,WAAb,EACN,OAAO,EAAK,GAGhB,SAAS,EAAK,GACV,OAAO,MAAM,GAAK,SAAU,EAAO,EAAQ,GACrC,GACC,QAAQ,MAAM,EACrB,GACJ,CACJ,EAEA,OAAO,QAAU,aAEZ,OAAO,QACR","file":"/npm/faustao-errou@1.1.0/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/faustao-errou@1.1.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","#!/usr/bin/env node\n\nconst exect = require('child_process').exec;\nconst path = require('path');\nconst fs = require('fs');\n\nconst mainPath = path.dirname(fs.realpathSync(__filename));\nconst soundPath = path.join(mainPath, './faustao-errou');\n\nconst faustaoErrou = function (){\n    const linuxcmd = 'paplay '+soundPath+'.ogg';\n    const windowscmd = path.join(mainPath, './forWindows.vbs')+' '+soundPath+'.mp3';\n    const maccmd = 'afplay '+soundPath+'.mp3';\n    \n    const platform = process.platform;\n\n    if(platform === 'linux'){\n        return exec(linuxcmd);\n    }\n    else if(platform === 'win32'){\n        return exec(windowscmd);\n    } else if(platform === 'darwin'){\n        return exec(maccmd);\n    }\n\n    function exec(cmd){\n        return exect(cmd, function (error, stdout, stderr) {\n           if(error)\n               console.error(error);\n        });\n    }\n}\n\nmodule.exports = faustaoErrou;\n\nif (!module.parent) {\n    faustaoErrou();\n}\n"]}