{"version":3,"sources":["jsdelivr-header.js","/npm/webrtc-scalable-broadcast@1.0.5/server.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACFA,IAAI,GAAK,QAAQ,MACb,KAAO,QAAQ,QAEf,IAAM,QAAQ,QAAQ,cAAa,SAAU,EAAS,GACtD,IAAI,EAAM,QAAQ,OAAO,MAAM,EAAQ,KAAK,SACxC,EAAW,KAAK,KAAK,QAAQ,MAAO,GAEpC,IAAU,QAAQ,SAAS,MAAM,QAEjC,GAAG,SAAS,GAAU,gBAEjB,GADD,EACa,eADM,eAI3B,GAAG,OAAO,GAAU,SAAU,GAC1B,IAAK,EAMD,OALA,EAAS,UAAU,IAAK,CACpB,eAAgB,eAEpB,EAAS,MAAM,kBAAoB,EAAW,WAC9C,EAAS,MAIb,GAAG,SAAS,EAAU,UAAU,SAAU,EAAK,GAC3C,GAAI,EAMA,OALA,EAAS,UAAU,IAAK,CACpB,eAAgB,eAEpB,EAAS,MAAM,EAAM,WACrB,EAAS,MAIb,EAAS,UAAU,KACnB,EAAS,MAAM,EAAM,UACrB,EAAS,KACb,GACJ,GACJ,IAEA,IAAM,IAAI,OAAO,QAAQ,IAAI,MAAQ,KAAM,QAAQ,IAAI,IAAM,WAAW,WACpE,IAAI,EAAO,IAAI,UACf,QAAQ,IAAI,sBAAuB,EAAK,QAAU,IAAM,EAAK,KACjE,IAEA,QAAQ,iCAAR,CAA0C","file":"/npm/webrtc-scalable-broadcast@1.0.5/server.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/webrtc-scalable-broadcast@1.0.5/server.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","// Muaz Khan   - www.MuazKhan.com\n// MIT License - www.WebRTC-Experiment.com/licence\n// Source Code - https://github.com/muaz-khan/WebRTC-Scalable-Broadcast\n\nvar fs = require(\"fs\");\nvar path = require('path');\n\nvar app = require('http').createServer(function (request, response) {\n    var uri = require('url').parse(request.url).pathname,\n        filename = path.join(process.cwd(), uri);\n\n    var isWin = !!process.platform.match(/^win/);\n\n    if (fs.statSync(filename).isDirectory()) {\n        if(!isWin) filename += '/index.html';\n        else filename += '\\\\index.html';\n    }\n\n    fs.exists(filename, function (exists) {\n        if (!exists) {\n            response.writeHead(404, {\n                \"Content-Type\": \"text/plain\"\n            });\n            response.write('404 Not Found: ' + filename + '\\n');\n            response.end();\n            return;\n        }\n\n        fs.readFile(filename, 'binary', function (err, file) {\n            if (err) {\n                response.writeHead(500, {\n                    \"Content-Type\": \"text/plain\"\n                });\n                response.write(err + \"\\n\");\n                response.end();\n                return;\n            }\n\n            response.writeHead(200);\n            response.write(file, 'binary');\n            response.end();\n        });\n    });\n});\n\napp = app.listen(process.env.PORT || 8888, process.env.IP || \"0.0.0.0\", function() {\n    var addr = app.address();\n    console.log(\"Server listening at\", addr.address + \":\" + addr.port);\n});\n\nrequire('./WebRTC-Scalable-Broadcast.js')(app);\n"]}