import { __commonJS, __require } from "../../../../_virtual/rolldown_runtime.mjs";
import { require_js } from "./js.mjs";
import { require_io } from "./io.mjs";
import { require_node12 } from "./node12.mjs";

//#region ../../node_modules/node-rsa/src/encryptEngines/encryptEngines.js
var require_encryptEngines = /* @__PURE__ */ __commonJS({ "../../node_modules/node-rsa/src/encryptEngines/encryptEngines.js": ((exports, module) => {
	var crypt = __require("crypto");
	module.exports = { getEngine: function(keyPair, options) {
		var engine = require_js();
		if (options.environment === "node") {
			if (typeof crypt.publicEncrypt === "function" && typeof crypt.privateDecrypt === "function") if (typeof crypt.privateEncrypt === "function" && typeof crypt.publicDecrypt === "function") engine = require_io();
			else engine = require_node12();
		}
		return engine(keyPair, options);
	} };
}) });

//#endregion
export default require_encryptEngines();

export { require_encryptEngines };
//# sourceMappingURL=encryptEngines.mjs.map