@mesh.ai/rabbit 1.19.4 → 1.19.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -13056,20 +13056,20 @@ function Wd(e) {
13056
13056
  function p1(e) {
13057
13057
  return Object.prototype.toString.call(e) === "[object Object]";
13058
13058
  }
13059
- function tt(e) {
13059
+ function nt(e) {
13060
13060
  return Math.abs(e);
13061
13061
  }
13062
13062
  function jd(e) {
13063
13063
  return Math.sign(e);
13064
13064
  }
13065
13065
  function Wi(e, t) {
13066
- return tt(e - t);
13066
+ return nt(e - t);
13067
13067
  }
13068
13068
  function fE(e, t) {
13069
- if (e === 0 || t === 0 || tt(e) <= tt(t))
13069
+ if (e === 0 || t === 0 || nt(e) <= nt(t))
13070
13070
  return 0;
13071
- const n = Wi(tt(e), tt(t));
13072
- return tt(n / e);
13071
+ const n = Wi(nt(e), nt(t));
13072
+ return nt(n / e);
13073
13073
  }
13074
13074
  function ya(e) {
13075
13075
  return ba(e).map(Number);
@@ -13144,7 +13144,7 @@ function hE(e, t) {
13144
13144
  };
13145
13145
  }
13146
13146
  function Fr(e, t) {
13147
- const n = tt(e - t);
13147
+ const n = nt(e - t);
13148
13148
  function r(c) {
13149
13149
  return c < e;
13150
13150
  }
@@ -13177,7 +13177,7 @@ function ev(e, t, n) {
13177
13177
  } = Fr(0, e), o = e + 1;
13178
13178
  let a = i(t);
13179
13179
  function i(p) {
13180
- return n ? tt((o + p) % o) : r(p);
13180
+ return n ? nt((o + p) % o) : r(p);
13181
13181
  }
13182
13182
  function s() {
13183
13183
  return a;
@@ -13271,7 +13271,7 @@ function gE(e, t, n, r, o, a, i, s, l, c, d, f, p, m, h, g, x, b, y, v) {
13271
13271
  }
13272
13272
  function oe(N, ue) {
13273
13273
  const fe = p.add(jd(N) * -1), ye = f.byDistance(N, !g).distance;
13274
- return g || tt(N) < M ? ye : b && ue ? ye * 0.5 : f.byIndex(fe.get(), 0).distance;
13274
+ return g || nt(N) < M ? ye : b && ue ? ye * 0.5 : f.byIndex(fe.get(), 0).distance;
13275
13275
  }
13276
13276
  function re(N) {
13277
13277
  const ue = Jg(N, o);
@@ -13320,7 +13320,7 @@ function vE(e, t) {
13320
13320
  if (!r || !o)
13321
13321
  return 0;
13322
13322
  const p = i(o) - i(r), m = a(f) - a(r), h = a(f) - a(o) > 170, g = p / m;
13323
- return m && !h && tt(g) > 0.1 ? g : 0;
13323
+ return m && !h && nt(g) > 0.1 ? g : 0;
13324
13324
  }
13325
13325
  return {
13326
13326
  pointerDown: s,
@@ -13370,7 +13370,7 @@ function xE(e, t, n, r, o, a, i) {
13370
13370
  function x(y) {
13371
13371
  for (const v of y) {
13372
13372
  const A = v.target === e, w = r.indexOf(v.target), E = A ? l : c[w], P = f(A ? e : r[w]);
13373
- if (tt(P - E) >= 0.5) {
13373
+ if (nt(P - E) >= 0.5) {
13374
13374
  n.requestAnimationFrame(() => {
13375
13375
  g.reInit(), t.emit("resize");
13376
13376
  });
@@ -13399,7 +13399,7 @@ function wE(e, t, n, r, o) {
13399
13399
  }
13400
13400
  function p() {
13401
13401
  const w = n.get() - t.get();
13402
- return tt(w) < 1e-3;
13402
+ return nt(w) < 1e-3;
13403
13403
  }
13404
13404
  function m() {
13405
13405
  return s;
@@ -13444,8 +13444,8 @@ function AE(e, t, n, r, o) {
13444
13444
  function d(m) {
13445
13445
  if (!c())
13446
13446
  return;
13447
- const h = e.reachedMin(t.get()) ? "min" : "max", g = tt(e[h] - t.get()), x = n.get() - t.get(), b = s.constrain(g / i);
13448
- n.subtract(x * b), !m && tt(x) < a && (n.set(e.constrain(n.get())), r.useDuration(25).useBaseFriction());
13447
+ const h = e.reachedMin(t.get()) ? "min" : "max", g = nt(e[h] - t.get()), x = n.get() - t.get(), b = s.constrain(g / i);
13448
+ n.subtract(x * b), !m && nt(x) < a && (n.set(e.constrain(n.get())), r.useDuration(25).useBaseFriction());
13449
13449
  }
13450
13450
  function f(m) {
13451
13451
  l = !m;
@@ -13528,10 +13528,10 @@ function $E(e, t, n, r, o) {
13528
13528
  groupSlides: s
13529
13529
  } = o, l = f().map(t.measure), c = p(), d = m();
13530
13530
  function f() {
13531
- return s(r).map((g) => pn(g)[i] - g[0][a]).map(tt);
13531
+ return s(r).map((g) => pn(g)[i] - g[0][a]).map(nt);
13532
13532
  }
13533
13533
  function p() {
13534
- return r.map((g) => n[a] - g[a]).map((g) => -tt(g));
13534
+ return r.map((g) => n[a] - g[a]).map((g) => -nt(g));
13535
13535
  }
13536
13536
  function m() {
13537
13537
  return s(c).map((g) => g[0]).map((g, x) => g + l[x]);
@@ -13574,13 +13574,13 @@ function PE(e, t, n, r, o) {
13574
13574
  constrain: s
13575
13575
  } = r;
13576
13576
  function l(h) {
13577
- return h.concat().sort((g, x) => tt(g) - tt(x))[0];
13577
+ return h.concat().sort((g, x) => nt(g) - nt(x))[0];
13578
13578
  }
13579
13579
  function c(h) {
13580
13580
  const g = e ? i(h) : s(h), x = t.map((y) => y - g).map((y) => d(y, 0)).map((y, v) => ({
13581
13581
  diff: y,
13582
13582
  index: v
13583
- })).sort((y, v) => tt(y.diff) - tt(v.diff)), {
13583
+ })).sort((y, v) => nt(y.diff) - nt(v.diff)), {
13584
13584
  index: b
13585
13585
  } = x[0];
13586
13586
  return {
@@ -13855,7 +13855,7 @@ function _E(e, t, n, r, o, a) {
13855
13855
  if (!c)
13856
13856
  return 0;
13857
13857
  const y = n[0];
13858
- return tt(t[s] - y[s]);
13858
+ return nt(t[s] - y[s]);
13859
13859
  }
13860
13860
  function g() {
13861
13861
  if (!c)
@@ -13867,7 +13867,7 @@ function _E(e, t, n, r, o, a) {
13867
13867
  return n.map((y, v, A) => {
13868
13868
  const w = !v, E = Vd(A, v);
13869
13869
  return w ? p[v] + d : E ? p[v] + f : A[v + 1][s] - y[s];
13870
- }).map(tt);
13870
+ }).map(nt);
13871
13871
  }
13872
13872
  return {
13873
13873
  slideSizes: p,
@@ -13887,7 +13887,7 @@ function RE(e, t, n, r, o, a, i, s, l) {
13887
13887
  function m(x) {
13888
13888
  return x.length ? ya(x).reduce((b, y) => {
13889
13889
  const v = pn(b) || 0, A = v === 0, w = y === Ra(x), E = a[c] - i[v][c], P = a[c] - i[y][d], $ = !o && A ? t.apply(s) : 0, M = !o && w ? t.apply(l) : 0;
13890
- return tt(P - M - (E + $)) > n && b.push(y), w && b.push(x.length), b;
13890
+ return nt(P - M - (E + $)) > n && b.push(y), w && b.push(x.length), b;
13891
13891
  }, []).map((b, y, v) => {
13892
13892
  const A = Math.max(v[y - 1] || 0);
13893
13893
  return x.slice(A, b);
@@ -14011,7 +14011,7 @@ function LE(e) {
14011
14011
  n.forEach(({
14012
14012
  animation: h
14013
14013
  }) => h.update()), o -= t;
14014
- const m = tt(o / t);
14014
+ const m = nt(o / t);
14015
14015
  n.forEach(({
14016
14016
  animation: h
14017
14017
  }) => h.render(m)), a && e.requestAnimationFrame(i);
@@ -25011,7 +25011,7 @@ const Yn = (e, t, n) => {
25011
25011
  { name: "royal_blue", dark: "#002FDC", light: "#D7DFFF" },
25012
25012
  { name: "magenta", dark: "#B402AA", light: "#FFCEFB" }
25013
25013
  ];
25014
- function nt(e) {
25014
+ function tt(e) {
25015
25015
  return gh[e % gh.length];
25016
25016
  }
25017
25017
  const ki = (e, t) => or.map(e, (n) => da(n) && typeof n.type == "function" && n.type.displayName === t.displayName ? n : null);
@@ -25116,7 +25116,7 @@ function HB({
25116
25116
  connectNulls: r = !1
25117
25117
  }) {
25118
25118
  const o = Ke(Bt), a = r ? e.filter((i) => i.y !== null) : e;
25119
- return /* @__PURE__ */ u(
25119
+ return a.length === 0 ? null : /* @__PURE__ */ u(
25120
25120
  D5,
25121
25121
  {
25122
25122
  data: a,
@@ -25177,7 +25177,7 @@ const YB = ({ x: e, y: t, datum: n, size: r }) => /* @__PURE__ */ u(Fo, { cx: e,
25177
25177
  x: r[U],
25178
25178
  y: W,
25179
25179
  nodeId: M.id,
25180
- color: (L == null ? void 0 : L.color) ?? nt(T)
25180
+ color: (L == null ? void 0 : L.color) ?? tt(T)
25181
25181
  }))
25182
25182
  };
25183
25183
  }).slice(0, p === "mini" ? g : o.length), [o, p, g, e, r]), P = Ae(() => p === "full" ? E.filter((M) => v.includes(M.points[0].nodeId)) : E, [E, v, p]), $ = Ae(() => Math.floor((n - (p === "mini" ? 0 : 150)) / (r.length * 8)), [n, r, p]);
@@ -25326,8 +25326,8 @@ const YB = ({ x: e, y: t, datum: n, size: r }) => /* @__PURE__ */ u(Fo, { cx: e,
25326
25326
  showSideBySide: !!L,
25327
25327
  tooltipTitle: f,
25328
25328
  legendValue: (T == null ? void 0 : T.name) || "",
25329
- legendDarkColor: ((R = M == null ? void 0 : M.nearestDatum) == null ? void 0 : R.datum.color.dark) || nt(0).dark,
25330
- legendLightColor: ((H = M == null ? void 0 : M.nearestDatum) == null ? void 0 : H.datum.color.light) || nt(0).light
25329
+ legendDarkColor: ((R = M == null ? void 0 : M.nearestDatum) == null ? void 0 : R.datum.color.dark) || tt(0).dark,
25330
+ legendLightColor: ((H = M == null ? void 0 : M.nearestDatum) == null ? void 0 : H.datum.color.light) || tt(0).light
25331
25331
  }
25332
25332
  );
25333
25333
  }
@@ -25709,16 +25709,16 @@ function nz({
25709
25709
  Re.Legend,
25710
25710
  {
25711
25711
  value: a.name,
25712
- darkColor: (s = nt((a.index || 0) + 1)) == null ? void 0 : s.dark,
25713
- lightColor: (l = nt((a.index || 0) + 1)) == null ? void 0 : l.light
25712
+ darkColor: (s = tt((a.index || 0) + 1)) == null ? void 0 : s.dark,
25713
+ lightColor: (l = tt((a.index || 0) + 1)) == null ? void 0 : l.light
25714
25714
  }
25715
25715
  ),
25716
25716
  /* @__PURE__ */ u(
25717
25717
  Re.Legend,
25718
25718
  {
25719
25719
  value: i.name,
25720
- darkColor: (c = nt((i.index || 0) + 1)) == null ? void 0 : c.dark,
25721
- lightColor: (d = nt((i.index || 0) + 1)) == null ? void 0 : d.light
25720
+ darkColor: (c = tt((i.index || 0) + 1)) == null ? void 0 : c.dark,
25721
+ lightColor: (d = tt((i.index || 0) + 1)) == null ? void 0 : d.light
25722
25722
  }
25723
25723
  )
25724
25724
  ] });
@@ -25789,7 +25789,7 @@ const Ch = 80, Sh = 20, rz = 30, oz = 12, g4 = Y(
25789
25789
  pointerEvents: "stroke",
25790
25790
  onMouseLeave: () => B(),
25791
25791
  onMouseMove: (R) => U(R, S),
25792
- stroke: nt((S.source.index || 0) + 1).light,
25792
+ stroke: tt((S.source.index || 0) + 1).light,
25793
25793
  strokeWidth: S.width,
25794
25794
  strokeOpacity: W.has(S) ? 0.7 : 0.4
25795
25795
  },
@@ -25807,8 +25807,8 @@ const Ch = 80, Sh = 20, rz = 30, oz = 12, g4 = Y(
25807
25807
  onMouseEnter: () => T(S),
25808
25808
  onMouseLeave: () => L(),
25809
25809
  radius: 2,
25810
- fill: d === S.id ? (R = nt((S.index || 0) + 1)) == null ? void 0 : R.dark : (H = nt((S.index || 0) + 1)) == null ? void 0 : H.light,
25811
- stroke: (z = nt((S.index || 0) + 1)) == null ? void 0 : z.dark,
25810
+ fill: d === S.id ? (R = tt((S.index || 0) + 1)) == null ? void 0 : R.dark : (H = tt((S.index || 0) + 1)) == null ? void 0 : H.light,
25811
+ stroke: (z = tt((S.index || 0) + 1)) == null ? void 0 : z.dark,
25812
25812
  all: !0
25813
25813
  }
25814
25814
  ) }, S.index);
@@ -26129,8 +26129,8 @@ const Mh = 20, Eh = 50, wc = 80, Di = 50, lz = 10, cz = 25, e0 = Y(
26129
26129
  y: v(O.length),
26130
26130
  width: F,
26131
26131
  height: k && k - 1,
26132
- fill: nt(0).light,
26133
- stroke: nt(0).dark,
26132
+ fill: tt(0).light,
26133
+ stroke: tt(0).dark,
26134
26134
  strokeWidth: 1,
26135
26135
  onMouseMove: (Q) => H(Q, O),
26136
26136
  onMouseLeave: () => z()
@@ -26155,8 +26155,8 @@ const Mh = 20, Eh = 50, wc = 80, Di = 50, lz = 10, cz = 25, e0 = Y(
26155
26155
  yValue: E.length,
26156
26156
  tooltipTitle: e,
26157
26157
  legendValue: n,
26158
- legendDarkColor: nt(0).dark,
26159
- legendLightColor: nt(0).light
26158
+ legendDarkColor: tt(0).dark,
26159
+ legendLightColor: tt(0).light
26160
26160
  }
26161
26161
  )
26162
26162
  },
@@ -26437,7 +26437,7 @@ const Fi = { top: 60, left: 20, right: 20, bottom: 20 }, $h = {
26437
26437
  {
26438
26438
  from: M,
26439
26439
  to: z[F],
26440
- stroke: "#CFD7DF",
26440
+ stroke: d.length === 1 ? tt(0).dark : "#CFD7DF",
26441
26441
  strokeWidth: 1
26442
26442
  },
26443
26443
  `radar-line-${Math.random()}`
@@ -26466,9 +26466,9 @@ const Fi = { top: 60, left: 20, right: 20, bottom: 20 }, $h = {
26466
26466
  "polygon",
26467
26467
  {
26468
26468
  points: O(k.data).pointString,
26469
- fill: nt(F).light,
26469
+ fill: tt(F).light,
26470
26470
  fillOpacity: 0.2,
26471
- stroke: nt(F).dark,
26471
+ stroke: tt(F).dark,
26472
26472
  strokeWidth: 1
26473
26473
  },
26474
26474
  `polypath-${Math.random()}`
@@ -26488,8 +26488,8 @@ const Fi = { top: 60, left: 20, right: 20, bottom: 20 }, $h = {
26488
26488
  xAxisValue: d[X],
26489
26489
  yAxisValue: k.data[X],
26490
26490
  xAxisLabel: o ?? "Category",
26491
- legendDarkColor: nt(F).dark,
26492
- legendLightColor: nt(F).light
26491
+ legendDarkColor: tt(F).dark,
26492
+ legendLightColor: tt(F).light
26493
26493
  });
26494
26494
  },
26495
26495
  onMouseOut: W
@@ -26597,7 +26597,7 @@ const fz = ({ x: e, y: t, datum: n }) => /* @__PURE__ */ u(
26597
26597
  x: r[W],
26598
26598
  y: L,
26599
26599
  nodeId: $.id,
26600
- color: (T == null ? void 0 : T.color) ?? nt(M)
26600
+ color: (T == null ? void 0 : T.color) ?? tt(M)
26601
26601
  }))
26602
26602
  };
26603
26603
  }).slice(0, p === "mini" ? h : o.length), [o, p, h, e, r]), E = Ae(() => p === "full" ? w.filter(($) => y.includes($.points[0].nodeId)) : w, [w, y, p]), P = Ae(() => Math.floor((n - (p === "mini" ? 0 : 150)) / (r.length * 8)), [n, r, p]);
@@ -26742,8 +26742,8 @@ const fz = ({ x: e, y: t, datum: n }) => /* @__PURE__ */ u(
26742
26742
  showSideBySide: !!T,
26743
26743
  tooltipTitle: f,
26744
26744
  legendValue: (M == null ? void 0 : M.name) || "",
26745
- legendDarkColor: ((S = $ == null ? void 0 : $.nearestDatum) == null ? void 0 : S.datum.color.dark) || nt(0).dark,
26746
- legendLightColor: ((R = $ == null ? void 0 : $.nearestDatum) == null ? void 0 : R.datum.color.light) || nt(0).light
26745
+ legendDarkColor: ((S = $ == null ? void 0 : $.nearestDatum) == null ? void 0 : S.datum.color.dark) || tt(0).dark,
26746
+ legendLightColor: ((R = $ == null ? void 0 : $.nearestDatum) == null ? void 0 : R.datum.color.light) || tt(0).light
26747
26747
  }
26748
26748
  );
26749
26749
  }
@@ -27006,7 +27006,7 @@ function Mz({
27006
27006
  connectNulls: r = !1
27007
27007
  }) {
27008
27008
  const o = Ke(Bt), a = r ? e.filter((i) => i.y !== null) : e;
27009
- return /* @__PURE__ */ j(Pa, { children: [
27009
+ return a.length === 0 ? null : /* @__PURE__ */ j(Pa, { children: [
27010
27010
  /* @__PURE__ */ u(Sz, { id: "marker-circle", stroke: "#666", size: 6, refX: 7, fill: "transparent", strokeWidth: 2 }),
27011
27011
  /* @__PURE__ */ u(
27012
27012
  wz,
@@ -27083,7 +27083,7 @@ const Ez = ({ x: e, y: t, datum: n, size: r }) => /* @__PURE__ */ u(Fo, { cx: e,
27083
27083
  return {
27084
27084
  id: W.id,
27085
27085
  name: W.name,
27086
- color: nt(L)
27086
+ color: tt(L)
27087
27087
  };
27088
27088
  }).slice(0, f === "mini" ? h : t.length), [t, f, h]), [w, E] = xe(
27089
27089
  () => A.filter((T, L) => f === "full" || L < h).map((T) => T.id)
@@ -27098,7 +27098,7 @@ const Ez = ({ x: e, y: t, datum: n, size: r }) => /* @__PURE__ */ u(Fo, { cx: e,
27098
27098
  y: B,
27099
27099
  pointMetaData: T.pointsMetaData[U],
27100
27100
  nodeId: T.seriesMetaData.employee.id,
27101
- color: nt(L)
27101
+ color: tt(L)
27102
27102
  };
27103
27103
  })
27104
27104
  })).slice(0, f === "mini" ? h : t.length), [t, f, h, v]), $ = Ae(() => f === "full" ? P.filter(({ nodeId: T }) => w.includes(T)) : P, [P, f, w]), M = Ae(() => Math.floor((r - (f === "mini" ? 0 : 150)) / (t[0].xValues.length * 8)), [r, f, t]);