import { Scope as s, ClassAttributor as d } from "../../../../parchment@3.0.0/node_modules/parchment/dist/parchment.mjs";
class i extends d {
  add(t, e) {
    let r = 0;
    if (e === "+1" || e === "-1") {
      const n = this.value(t) || 0;
      r = e === "+1" ? n + 1 : n - 1;
    } else
      typeof e == "number" && (r = e);
    return r === 0 ? (this.remove(t), !0) : super.add(t, r.toString());
  }
  canAdd(t, e) {
    return super.canAdd(t, e) || super.canAdd(t, parseInt(e, 10));
  }
  value(t) {
    return parseInt(super.value(t), 10) || void 0;
  }
}
const o = new i("indent", "ql-indent", {
  scope: s.BLOCK,
  // @ts-expect-error
  whitelist: [1, 2, 3, 4, 5, 6, 7, 8]
});
export {
  o as default
};
