import { M as p, X as i, ak as u, H as l, I as d, l as v, L as a, _ as s, gq as g, gm as h, gr as r } from "./56c67d3b.js";
import "react";
import "react-dom";
const c = new p({
  v1: i,
  v2: u
}, (e) => e).setPropertyViewFn(() => /* @__PURE__ */ l(d, {})).build(), n = {
  value: {
    v1: "v1: {{a + 1}}",
    v2: "{{a + 2}}"
  }
}, w = v(c, ["a"]);
describe("withParamsForMap", () => {
  it("performance", () => {
    let e = new w(n);
    e = a(e);
    const t = s.chain(s.range(5e3)).map((o) => [o, {
      a: o
    }]).fromPairs().value();
    e = e.batchSet(t);
    const m = g(() => a(e));
    expect(m < 1e4).toBeTruthy();
  }), it("test_node", () => {
    let e = new c({
      value: {
        v1: "",
        v2: "2"
      }
    });
    e = a(e);
    const t = e.reduce(h(n.value));
    expect(t.node() === e.node()).toBeTruthy(), expect(r(t.node()) === r(e.node())).toBeTruthy();
  });
});
