import { B as s } from "./index-162fd1aa.mjs";
var n = /* @__PURE__ */ ((e) => (e.change = "change", e))(n || {});
class o extends s {
  constructor() {
    super(...arguments), this._ = n;
  }
  change() {
    this.emit("change", void 0);
  }
}
const t = new o();
class i {
  constructor() {
    this.locked = !1;
  }
  peek() {
    return this.locked;
  }
  lock() {
    const c = this.peek();
    this.locked = !0, this.locked !== c && t.change();
  }
  unlock() {
    const c = this.peek();
    this.locked = !1, this.locked !== c && t.change();
  }
}
const l = new i();
export {
  l as A
};
