import { M as m, S as i, ad as u, F as d, G as l, l as v, J as a, _ as s, hf as h, hc as w, hg as r } from "./603b75d9.js";
import "react";
import "react-dom";
const c = new m({
  v1: i,
  v2: u
}, (e) => e).setPropertyViewFn(() => /* @__PURE__ */ d(l, {})).build(), n = {
  value: {
    v1: "v1: {{a + 1}}",
    v2: "{{a + 2}}"
  }
}, b = v(c, ["a"]);
describe("withParamsForMap", () => {
  it("performance", () => {
    let e = new b(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(w(n.value));
    expect(t.node() === e.node()).toBeTruthy(), expect(r(t.node()) === r(e.node())).toBeTruthy();
  });
});
