import l from "../../../../../@babel/runtime/helpers/esm/classCallCheck.mjs";
import u from "../../../../../@babel/runtime/helpers/esm/createClass.mjs";
import f from "../../../../../@babel/runtime/helpers/esm/inherits.mjs";
import a from "../../../../../@babel/runtime/helpers/esm/createSuper.mjs";
import o from "./calculator.mjs";
let v = /* @__PURE__ */ function(s) {
  f(e, s);
  var i = a(e);
  function e(r) {
    var t;
    return l(this, e), t = i.call(this), t.result = 0, r instanceof e ? t.result = r.result : typeof r == "number" && (t.result = r), t;
  }
  return u(e, [{
    key: "add",
    value: function(t) {
      return t instanceof e ? this.result += t.result : typeof t == "number" && (this.result += t), this;
    }
  }, {
    key: "sub",
    value: function(t) {
      return t instanceof e ? this.result -= t.result : typeof t == "number" && (this.result -= t), this;
    }
  }, {
    key: "mul",
    value: function(t) {
      return t instanceof e ? this.result *= t.result : typeof t == "number" && (this.result *= t), this;
    }
  }, {
    key: "div",
    value: function(t) {
      return t instanceof e ? this.result /= t.result : typeof t == "number" && (this.result /= t), this;
    }
  }, {
    key: "equal",
    value: function() {
      return this.result;
    }
  }]), e;
}(o);
export {
  v as default
};
