website/static/worker.js/serializeAst
function serializeAst(ast) {
  return JSON.stringify(
    ast,
    (_, value) =>
      typeof value === "bigint" ? `BigInt('${String(value)}')` : value,
    2
  );
}