import { CIRCOM_P as e } from "../../constants/protocol.constants.mjs";
//#region libs/shared/common/src/functions/utils/bigint-math.utils.ts
var t = (t, n = e) => {
	let r = t % n;
	return r >= 0n ? r : r + n;
}, n = (e, n, r) => {
	let i = 1n, a = t(e, r), o = n;
	for (; o > 0n;) o % 2n == 1n && (i = i * a % r), o /= 2n, a = a * a % r;
	return i;
};
//#endregion
export { t as mod, n as modpow };
