function prefixVarsInFormula(str, arg = "d", ignore = ["aq", "op"]) {
let shift = 0;
const add = `${arg}.`;
for (const { type, start, end, name } of P.parseCell(str).references) {
if (type === "Identifier" && name !== arg && !ignore.includes(name)) {
str = str.slice(0, start + shift) + add + name + str.slice(end + shift);
shift += add.length;
}
}
return str;
}