import { poseidonFunction as e } from "../../crypto/poseidon.mjs";
import { randomBigInt as t } from "../../functions/web3/etherFunctions.mjs";
import { MerkleTree as n } from "./MerkleTree.mjs";
//#region libs/shared/common/src/data-structures/merkle-tree/getPatchedAccessTokenMerkleTree.ts
var r = (r, i, a, o) => {
	if (!o || a) {
		let r = n.create(e, 0n);
		return r.insert(BigInt(i), r.getStartIndex()), o || r.insert(t(31), r.getStartIndex() + 1n), r;
	}
	return r;
};
//#endregion
export { r as getPatchedAccessTokenMerkleTree };
