import { poseidonHolder as e } from "./poseidon.mjs";
import { jubHolder as t } from "./babyJub.mjs";
import { eddsaHolder as n } from "./eddsa.mjs";
import r from "libsodium-wrappers";
import i from "process";
import { Buffer as a } from "buffer";
//#region libs/shared/common/src/crypto/preProcessing.ts
var o = async (o = !1) => {
	(typeof window < "u" || typeof self < "u") && (typeof window < "u" && (window.global = window), globalThis.Buffer = a, globalThis.process = i), await Promise.all([
		r.ready,
		e.init(),
		t.init(),
		...o ? [] : [n.init()]
	]);
};
//#endregion
export { o as preProcessing };
