{"version":3,"sources":["jsdelivr-header.js","/npm/mcraft-fun-mineflayer@0.1.23/build/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,aACA,OAAO,eAAe,QAAS,aAAc,CAAE,OAAO,IACtD,QAAQ,QAAU,QAAQ,qBAAkB,EAC5C,MAAM,SAAW,QAAQ,YACnB,gBAAkB,CAAC,EAAU,CAAC,IACxB,IAAQ,EAAI,SAAS,8BAA8B,EAAK,GAEpE,QAAQ,gBAAkB,gBAC1B,MAAM,QAAW,GACT,EAAI,UACG,QAAQ,UACZ,IAAI,SAAS,IAChB,EAAI,KAAK,kBAAkB,KACvB,GAAS,GACX,IAGV,QAAQ,QAAU","file":"/npm/mcraft-fun-mineflayer@0.1.23/build/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/mcraft-fun-mineflayer@0.1.23/build/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\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.onReady = exports.viewerConnector = void 0;\nconst server_1 = require(\"./server\");\nconst viewerConnector = (options = {}) => {\n    return (bot) => (0, server_1.createMineflayerPluginServer)(bot, options);\n};\nexports.viewerConnector = viewerConnector;\nconst onReady = (bot) => {\n    if (bot.webViewer)\n        return Promise.resolve();\n    return new Promise((resolve) => {\n        bot.once('inject_allowed', () => {\n            resolve();\n        });\n    });\n};\nexports.onReady = onReady;\n"]}