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