import * as index from "../../../../../node_modules/@formulajs/formulajs/lib/esm/index.mjs";
import * as customFunc from "./customFunc.mjs";
const Formula = { ...index, ...customFunc };
class FunctionCore {
  constructor() {
    Object.assign(FunctionCore.prototype, Formula);
  }
  executeFunction(str) {
    const fn = new Function(
      "with(this) { return " + str + "; }"
      // 使用 `with` 来确保从当前实例中查找函数
    ).bind(this);
    return fn();
  }
}
const functionCore = new FunctionCore();
export {
  functionCore as default
};
