import { M as m, ba as i, cn as u, V as l, bh as d, l as v, gR as a, c1 as s, h5 as h, h3 as b, h6 as r } from "./684d2f28.js";
import "react";
import "react-dom";
const c = new m({
  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 p = h(() => a(e));
    expect(p < 1e4).toBeTruthy();
  }), it("test_node", () => {
    let e = new c({
      value: {
        v1: "",
        v2: "2"
      }
    });
    e = a(e);
    const t = e.reduce(b(n.value));
    expect(t.node() === e.node()).toBeTruthy(), expect(r(t.node()) === r(e.node())).toBeTruthy();
  });
});
