@adyen/lume-vue3 1.9.0 → 1.9.1

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.
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { defineComponent as W, ref as R, openBlock as y, createElementBlock as x, mergeProps as G, createElementVNode as C, toDisplayString as oe, createCommentVNode as Z, isRef as Ct, computed as v, watch as U, toRefs as te, inject as Pe, reactive as Fe, onMounted as _e, unref as d, Fragment as q, renderList as z, createBlock as X, normalizeClass as ne, normalizeStyle as Gt, onBeforeUnmount as jt, watchEffect as Vt, renderSlot as M, createTextVNode as ce, useSlots as re, withDirectives as sn, withCtx as V, createSlots as de, vShow as cn, pushScopeId as dn, popScopeId as vn, provide as Ke, createVNode as ie, nextTick as kt, toHandlers as ae, normalizeProps as pe, guardReactiveProps as he, defineAsyncComponent as Je, resolveDynamicComponent as mn } from "vue";
1
+ import { defineComponent as W, ref as G, openBlock as y, createElementBlock as O, mergeProps as j, createElementVNode as R, toDisplayString as oe, createCommentVNode as Z, isRef as Rt, computed as v, watch as U, toRefs as te, inject as Pe, reactive as Fe, onMounted as _e, unref as d, Fragment as q, renderList as z, createBlock as X, normalizeClass as ne, normalizeStyle as jt, onBeforeUnmount as Vt, watchEffect as Ct, renderSlot as M, createTextVNode as ce, useSlots as re, withDirectives as sn, withCtx as C, createSlots as de, vShow as cn, pushScopeId as dn, popScopeId as vn, provide as Ke, createVNode as ie, nextTick as kt, toHandlers as ae, normalizeProps as pe, guardReactiveProps as he, defineAsyncComponent as Je, resolveDynamicComponent as mn } from "vue";
2
2
  import { format as fn, ticks as pn, scaleBand as Be, scaleLinear as Me, link as hn, line as gn, area as _n } from "d3";
3
3
  import { createPopper as yn } from "@popperjs/core";
4
4
  import { sankeyLinkHorizontal as kn, sankey as bn, sankeyJustify as An } from "d3-sankey";
@@ -44,8 +44,8 @@ const Tn = {
44
44
  },
45
45
  emits: ["click", "mouseenter"],
46
46
  setup(e, { expose: n, emit: t }) {
47
- const o = t, a = R(null);
48
- return n({ ref: a }), (u, l) => (y(), x("g", G(e.group, {
47
+ const o = t, a = G(null);
48
+ return n({ ref: a }), (u, l) => (y(), O("g", j(e.group, {
49
49
  class: ["axis__tick", {
50
50
  "axis__tick--hovered": e.isHovered,
51
51
  "axis__tick--hidden": e.isHidden
@@ -54,18 +54,18 @@ const Tn = {
54
54
  onMouseenter: l[0] || (l[0] = (i) => o("mouseenter", i)),
55
55
  onClick: l[1] || (l[1] = (i) => o("click", i))
56
56
  }), [
57
- C("g", Tn, [
58
- C("rect", G(e.ghost, {
57
+ R("g", Tn, [
58
+ R("rect", j(e.ghost, {
59
59
  class: "axis__ghost",
60
60
  fill: "url(#lume-tick-gradient)"
61
61
  }), null, 16),
62
- C("text", G(e.label, {
62
+ R("text", j(e.label, {
63
63
  ref_key: "labelRef",
64
64
  ref: a,
65
65
  class: "axis__label"
66
66
  }), oe(e.value), 17)
67
67
  ]),
68
- e.withGridlines ? (y(), x("line", G({ key: 0 }, e.gridline, { class: "axis__grid-line" }), null, 16)) : Z("", !0)
68
+ e.withGridlines ? (y(), O("line", j({ key: 0 }, e.gridline, { class: "axis__grid-line" }), null, 16)) : Z("", !0)
69
69
  ], 16));
70
70
  }
71
71
  });
@@ -74,7 +74,7 @@ const ee = (e, n) => {
74
74
  for (const [o, a] of n)
75
75
  t[o] = a;
76
76
  return t;
77
- }, bt = /* @__PURE__ */ ee(Ln, [["__scopeId", "data-v-59ddc0a6"]]), On = [
77
+ }, bt = /* @__PURE__ */ ee(Ln, [["__scopeId", "data-v-59ddc0a6"]]), $n = [
78
78
  "controls",
79
79
  "legend",
80
80
  "axes",
@@ -93,7 +93,7 @@ function Ft(e) {
93
93
  function it(e) {
94
94
  return e.length === 1;
95
95
  }
96
- function $n(e) {
96
+ function xn(e) {
97
97
  return !!e && e.every(
98
98
  (n) => "color" in n
99
99
  );
@@ -107,7 +107,7 @@ function zt(e, n) {
107
107
  t[o] = Qe(e[o]) && Qe(a) ? zt(e[o], a) : a;
108
108
  }), t;
109
109
  }
110
- function xn(e) {
110
+ function On(e) {
111
111
  return e != null && Qe(e) && "value" in e;
112
112
  }
113
113
  function ve(e) {
@@ -139,7 +139,7 @@ function En(e, n) {
139
139
  ).values[n]) == null ? void 0 : t.value) || 0;
140
140
  }
141
141
  function Wt(e) {
142
- const n = Ct(e) ? e.value : e;
142
+ const n = Rt(e) ? e.value : e;
143
143
  if (!n)
144
144
  throw new Error("No empty array can be created from specified data value");
145
145
  const t = Math.max(
@@ -172,7 +172,7 @@ function Bn(e) {
172
172
  return Object.assign(
173
173
  {},
174
174
  ...Object.keys(e).map(
175
- (n) => On.includes(n) ? {} : { [n]: e[n] }
175
+ (n) => $n.includes(n) ? {} : { [n]: e[n] }
176
176
  )
177
177
  );
178
178
  }
@@ -190,7 +190,7 @@ const Sn = "[lume] ";
190
190
  function ge(e, n = !0) {
191
191
  n && Pt() || console.warn(Sn + "Warning: " + e);
192
192
  }
193
- const je = (e) => {
193
+ const Ve = (e) => {
194
194
  let n = null;
195
195
  switch (typeof e) {
196
196
  case "string":
@@ -218,13 +218,13 @@ const je = (e) => {
218
218
  });
219
219
  function fe(e, n) {
220
220
  return { allOptions: v(() => {
221
- const o = Ct(n) ? n == null ? void 0 : n.value : n;
221
+ const o = Rt(n) ? n == null ? void 0 : n.value : n;
222
222
  return o ? zt(o, e.value) : e.value;
223
223
  }) };
224
224
  }
225
- const Rn = 0.2;
226
- function Cn(e, n, t) {
227
- const o = R(), a = v(() => Math.max(...e.value.range())), u = v(() => n.value.length);
225
+ const Gn = 0.2;
226
+ function Rn(e, n, t) {
227
+ const o = G(), a = v(() => Math.max(...e.value.range())), u = v(() => n.value.length);
228
228
  function l() {
229
229
  if (!n.value)
230
230
  return;
@@ -232,7 +232,7 @@ function Cn(e, n, t) {
232
232
  (f, r) => f + r.ref.getBoundingClientRect().width,
233
233
  0
234
234
  ), s = Math.ceil(c / u.value);
235
- o.value = s + s * Rn;
235
+ o.value = s + s * Gn;
236
236
  }
237
237
  function i(c) {
238
238
  if (!n.value)
@@ -245,15 +245,15 @@ function Cn(e, n, t) {
245
245
  }
246
246
  return U(n, l), { showTick: i };
247
247
  }
248
- var se = /* @__PURE__ */ ((e) => (e.Skyblue = "skyblue", e.Royalblue = "royalblue", e.Violet = "violet", e.Darkteal = "darkteal", e.Gold = "gold", e))(se || {}), Zt = /* @__PURE__ */ ((e) => (e.Skyblue10 = "skyblue-10", e.Skyblue20 = "skyblue-20", e.Skyblue30 = "skyblue-30", e.Skyblue40 = "skyblue-40", e.Skyblue50 = "skyblue-50", e.Skyblue60 = "skyblue-60", e.Skyblue70 = "skyblue-70", e.Skyblue80 = "skyblue-80", e.Skyblue90 = "skyblue-90", e.Skyblue100 = "skyblue-100", e.Royalblue10 = "royalblue-10", e.Royalblue20 = "royalblue-20", e.Royalblue30 = "royalblue-30", e.Royalblue40 = "royalblue-40", e.Royalblue50 = "royalblue-50", e.Royalblue60 = "royalblue-60", e.Royalblue70 = "royalblue-70", e.Royalblue80 = "royalblue-80", e.Royalblue90 = "royalblue-90", e.Royalblue100 = "royalblue-100", e.Violet10 = "violet-10", e.Violet20 = "violet-20", e.Violet30 = "violet-30", e.Violet40 = "violet-40", e.Violet50 = "violet-50", e.Violet60 = "violet-60", e.Violet70 = "violet-70", e.Violet80 = "violet-80", e.Violet90 = "violet-90", e.Violet100 = "violet-100", e.Darkteal10 = "darkteal-10", e.Darkteal20 = "darkteal-20", e.Darkteal30 = "darkteal-30", e.Darkteal40 = "darkteal-40", e.Darkteal50 = "darkteal-50", e.Darkteal60 = "darkteal-60", e.Darkteal70 = "darkteal-70", e.Darkteal80 = "darkteal-80", e.Darkteal90 = "darkteal-90", e.Darkteal100 = "darkteal-100", e.Gold10 = "gold-10", e.Gold20 = "gold-20", e.Gold30 = "gold-30", e.Gold40 = "gold-40", e.Gold50 = "gold-50", e.Gold60 = "gold-60", e.Gold70 = "gold-70", e.Gold80 = "gold-80", e.Gold90 = "gold-90", e.Gold100 = "gold-100", e))(Zt || {}), ct = /* @__PURE__ */ ((e) => (e.SkyTeal = "skyblue-darkteal", e.VioletRoyal = "violet-royalblue", e.VioletTeal = "violet-darkteal", e.GoldTeal = "gold-darkteal", e.GoldRoyal = "gold-royalblue", e))(ct || {}), dt = /* @__PURE__ */ ((e) => (e.Grey = "grey", e.Green = "green", e.Orange = "orange", e.Red = "red", e))(dt || {}), vt = /* @__PURE__ */ ((e) => (e["01"] = "01", e["02"] = "02", e["03"] = "03", e["04"] = "04", e["05"] = "05", e["06"] = "06", e["07"] = "07", e["08"] = "08", e["09"] = "09", e))(vt || {});
248
+ var se = /* @__PURE__ */ ((e) => (e.Skyblue = "skyblue", e.Royalblue = "royalblue", e.Violet = "violet", e.Darkteal = "darkteal", e.Gold = "gold", e))(se || {}), Zt = /* @__PURE__ */ ((e) => (e.Skyblue10 = "skyblue-10", e.Skyblue20 = "skyblue-20", e.Skyblue30 = "skyblue-30", e.Skyblue40 = "skyblue-40", e.Skyblue50 = "skyblue-50", e.Skyblue60 = "skyblue-60", e.Skyblue70 = "skyblue-70", e.Skyblue80 = "skyblue-80", e.Skyblue90 = "skyblue-90", e.Skyblue100 = "skyblue-100", e.Royalblue10 = "royalblue-10", e.Royalblue20 = "royalblue-20", e.Royalblue30 = "royalblue-30", e.Royalblue40 = "royalblue-40", e.Royalblue50 = "royalblue-50", e.Royalblue60 = "royalblue-60", e.Royalblue70 = "royalblue-70", e.Royalblue80 = "royalblue-80", e.Royalblue90 = "royalblue-90", e.Royalblue100 = "royalblue-100", e.Violet10 = "violet-10", e.Violet20 = "violet-20", e.Violet30 = "violet-30", e.Violet40 = "violet-40", e.Violet50 = "violet-50", e.Violet60 = "violet-60", e.Violet70 = "violet-70", e.Violet80 = "violet-80", e.Violet90 = "violet-90", e.Violet100 = "violet-100", e.Darkteal10 = "darkteal-10", e.Darkteal20 = "darkteal-20", e.Darkteal30 = "darkteal-30", e.Darkteal40 = "darkteal-40", e.Darkteal50 = "darkteal-50", e.Darkteal60 = "darkteal-60", e.Darkteal70 = "darkteal-70", e.Darkteal80 = "darkteal-80", e.Darkteal90 = "darkteal-90", e.Darkteal100 = "darkteal-100", e.Gold10 = "gold-10", e.Gold20 = "gold-20", e.Gold30 = "gold-30", e.Gold40 = "gold-40", e.Gold50 = "gold-50", e.Gold60 = "gold-60", e.Gold70 = "gold-70", e.Gold80 = "gold-80", e.Gold90 = "gold-90", e.Gold100 = "gold-100", e))(Zt || {}), ct = /* @__PURE__ */ ((e) => (e.SkyTeal = "skyblue-darkteal", e.VioletRoyal = "violet-royalblue", e.VioletTeal = "violet-darkteal", e.GoldTeal = "gold-darkteal", e.GoldRoyal = "gold-royalblue", e))(ct || {}), dt = /* @__PURE__ */ ((e) => (e.White = "white", e.Black = "black", e.Green = "green", e.Orange = "orange", e.Red = "red", e.Grey = "grey", e.Grey10 = "grey-10", e.Grey20 = "grey-20", e.Grey30 = "grey-30", e.Grey40 = "grey-40", e.Grey50 = "grey-50", e.Grey60 = "grey-60", e.Grey70 = "grey-70", e.Grey80 = "grey-80", e.Grey90 = "grey-90", e.Grey100 = "grey-100", e))(dt || {}), vt = /* @__PURE__ */ ((e) => (e["01"] = "01", e["02"] = "02", e["03"] = "03", e["04"] = "04", e["05"] = "05", e["06"] = "06", e["07"] = "07", e["08"] = "08", e["09"] = "09", e))(vt || {});
249
249
  const B = {
250
250
  HORIZONTAL: "horizontal",
251
251
  VERTICAL: "vertical"
252
- }, Gn = {
252
+ }, jn = {
253
253
  SINGLE: "single",
254
254
  GROUPED: "grouped",
255
255
  STACKED: "stacked"
256
- }, Ut = "No data", Tt = 20, Xt = 0.33, Yt = 0.5, Kt = 12, Re = 8, jn = 1, Vn = [
256
+ }, Ut = "No data", Tt = 20, Xt = 0.33, Yt = 0.5, Kt = 12, Ge = 8, Vn = 1, Cn = [
257
257
  "auto",
258
258
  "auto-start",
259
259
  "auto-end",
@@ -312,7 +312,7 @@ const Jt = {
312
312
  return {
313
313
  x: -(s - e.value.step()) / 2,
314
314
  width: s,
315
- height: t.value.tickPadding + Kt + Re
315
+ height: t.value.tickPadding + Kt + Ge
316
316
  };
317
317
  }
318
318
  function l() {
@@ -347,7 +347,7 @@ const Jt = {
347
347
  }
348
348
  function u(c) {
349
349
  var f;
350
- const s = (c ? (f = c.getComputedTextLength) == null ? void 0 : f.call(c) : 42) + t.value.tickPadding + Re;
350
+ const s = (c ? (f = c.getComputedTextLength) == null ? void 0 : f.call(c) : 42) + t.value.tickPadding + Ge;
351
351
  return {
352
352
  x: -s,
353
353
  width: s,
@@ -388,7 +388,7 @@ const Jt = {
388
388
  }
389
389
  function u() {
390
390
  return {
391
- height: t.value.tickPadding + Kt + Re,
391
+ height: t.value.tickPadding + Kt + Ge,
392
392
  width: o.value,
393
393
  x: -(o.value / 2)
394
394
  };
@@ -423,7 +423,7 @@ const Jt = {
423
423
  }
424
424
  function u(c) {
425
425
  var f;
426
- const s = (((f = c == null ? void 0 : c.getComputedTextLength) == null ? void 0 : f.call(c)) || 0) + t.value.tickPadding + Re;
426
+ const s = (((f = c == null ? void 0 : c.getComputedTextLength) == null ? void 0 : f.call(c)) || 0) + t.value.tickPadding + Ge;
427
427
  return {
428
428
  width: s,
429
429
  height: o.value,
@@ -454,20 +454,20 @@ const Jt = {
454
454
  "y-band-scale-axis": Wn,
455
455
  "x-linear-scale-axis": Zn,
456
456
  "y-linear-scale-axis": Un
457
- }, Yn = ["transform"], Kn = { key: 0 }, Jn = /* @__PURE__ */ C("linearGradient", { id: "lume-tick-gradient" }, [
458
- /* @__PURE__ */ C("stop", {
457
+ }, Yn = ["transform"], Kn = { key: 0 }, Jn = /* @__PURE__ */ R("linearGradient", { id: "lume-tick-gradient" }, [
458
+ /* @__PURE__ */ R("stop", {
459
459
  offset: "0%",
460
460
  "stop-color": "rgba(255,255,255,0)"
461
461
  }),
462
- /* @__PURE__ */ C("stop", {
462
+ /* @__PURE__ */ R("stop", {
463
463
  offset: "10%",
464
464
  "stop-color": "var(--lume-chart-background-color)"
465
465
  }),
466
- /* @__PURE__ */ C("stop", {
466
+ /* @__PURE__ */ R("stop", {
467
467
  offset: "90%",
468
468
  "stop-color": "var(--lume-chart-background-color)"
469
469
  }),
470
- /* @__PURE__ */ C("stop", {
470
+ /* @__PURE__ */ R("stop", {
471
471
  offset: "100%",
472
472
  "stop-color": "rgba(255,255,255,0)"
473
473
  })
@@ -508,7 +508,7 @@ const Lt = /* @__PURE__ */ W({
508
508
  },
509
509
  emits: ["mouseenter", "click", "mouseleave", "lume__internal--axis-size"],
510
510
  setup(e, { emit: n }) {
511
- const o = e, a = n, { scale: u, containerSize: l, hoveredIndex: i, options: c, orientation: s } = te(o), f = Pe("isEmpty", R(!1)), r = Fe({}), m = R(null), g = R(null), p = R(null), b = v(
511
+ const o = e, a = n, { scale: u, containerSize: l, hoveredIndex: i, options: c, orientation: s } = te(o), f = Pe("isEmpty", G(!1)), r = Fe({}), m = G(null), g = G(null), p = G(null), b = v(
512
512
  () => o.type ? qe[o.type] : o.position
513
513
  ), L = v(
514
514
  () => o.type || (b.value === "left" ? "y" : "x")
@@ -517,7 +517,7 @@ const Lt = /* @__PURE__ */ W({
517
517
  ), { allOptions: h } = fe(
518
518
  c,
519
519
  L.value === "x" ? Pn : Fn
520
- ), { showTick: $ } = Cn(u, m, h), N = v(() => {
520
+ ), { showTick: x } = Rn(u, m, h), N = v(() => {
521
521
  var S, k, E, _;
522
522
  return L.value === "y" && f.value && (!u.value || At(u.value)) ? `translate(0, ${((S = l.value) == null ? void 0 : S.height) / 2})` : L.value === "x" && f.value && (!u.value || At(u.value)) ? `translate(-${((k = l.value) == null ? void 0 : k.width) / 2}, ${(E = l.value) == null ? void 0 : E.height})` : `translate(0, ${L.value === "x" ? (_ = l.value) == null ? void 0 : _.height : 0})`;
523
523
  }), D = v(() => {
@@ -529,11 +529,11 @@ const Lt = /* @__PURE__ */ W({
529
529
  return pn(k, E, S);
530
530
  }), P = v(() => {
531
531
  const { tickFormat: S } = h.value;
532
- return je(S);
532
+ return Ve(S);
533
533
  }), w = v(
534
534
  () => h.value.withHover && A.value && i.value > -1
535
535
  ), H = v(
536
- () => h.value.tickPadding + Re || 16
536
+ () => h.value.tickPadding + Ge || 16
537
537
  ), Y = v(() => L.value === "x" ? (
538
538
  // If x axis, get the tick height
539
539
  Math.max(
@@ -584,7 +584,7 @@ const Lt = /* @__PURE__ */ W({
584
584
  function ke() {
585
585
  p.value && p.value.map((S) => (S.gridline = r.getGridLinesAttributes(), S));
586
586
  }
587
- function Oe() {
587
+ function $e() {
588
588
  if (!u.value)
589
589
  return;
590
590
  const S = u.value.step ? "bandScale" : "linearScale", k = Xn[`${L.value}-${Qt[S]}`];
@@ -594,7 +594,7 @@ const Lt = /* @__PURE__ */ W({
594
594
  }
595
595
  );
596
596
  }
597
- return U(u, Oe, { flush: "sync", immediate: !0 }), U(u, Le, { immediate: !0 }), U(m, Le), U(Y, (S) => a("lume__internal--axis-size", S)), U(o.containerSize, ke), _e(() => ze(g.value)), (S, k) => d(u) ? (y(), x("g", {
597
+ return U(u, $e, { flush: "sync", immediate: !0 }), U(u, Le, { immediate: !0 }), U(m, Le), U(Y, (S) => a("lume__internal--axis-size", S)), U(o.containerSize, ke), _e(() => ze(g.value)), (S, k) => d(u) ? (y(), O("g", {
598
598
  key: 0,
599
599
  ref_key: "root",
600
600
  ref: g,
@@ -603,19 +603,19 @@ const Lt = /* @__PURE__ */ W({
603
603
  "data-j-axis": "",
604
604
  onMouseleave: k[1] || (k[1] = (E) => a("mouseleave", E))
605
605
  }, [
606
- L.value === "x" ? (y(), x("defs", Kn, Qn)) : Z("", !0),
607
- (y(!0), x(q, null, z(p.value, (E, _) => (y(), X(d(bt), G({
606
+ L.value === "x" ? (y(), O("defs", Kn, Qn)) : Z("", !0),
607
+ (y(!0), O(q, null, z(p.value, (E, _) => (y(), X(d(bt), j({
608
608
  key: `${E.value}_${_}`,
609
609
  ref_for: !0,
610
610
  ref_key: "tickRefs",
611
611
  ref: m
612
612
  }, E, {
613
- "is-hidden": d(h).skip && !d($)(_),
613
+ "is-hidden": d(h).skip && !d(x)(_),
614
614
  "with-gridlines": d(h).gridLines,
615
- onMouseenter: (j) => Q(_, E.value, j),
616
- onClick: (j) => F(_, E.value, j)
615
+ onMouseenter: (V) => Q(_, E.value, V),
616
+ onClick: (V) => F(_, E.value, V)
617
617
  }), null, 16, ["is-hidden", "with-gridlines", "onMouseenter", "onClick"]))), 128)),
618
- w.value ? (y(), X(d(bt), G({ key: 1 }, p.value[d(i)], {
618
+ w.value ? (y(), X(d(bt), j({ key: 1 }, p.value[d(i)], {
619
619
  "with-gridlines": !1,
620
620
  "is-hovered": "",
621
621
  onClick: k[0] || (k[0] = (E) => F(
@@ -640,7 +640,7 @@ function qn(e, n, t, o) {
640
640
  return { computedX: l, computedY: i, shouldHaveMinWidth: a, shouldHaveMinHeight: u };
641
641
  }
642
642
  function eo(e, n, t, o) {
643
- const a = R(0), u = R(0), l = v(() => `${e.value + t.value / 2}px ${n.value + o.value / 2}px`);
643
+ const a = G(0), u = G(0), l = v(() => `${e.value + t.value / 2}px ${n.value + o.value / 2}px`);
644
644
  return _e(() => {
645
645
  a.value = t.value, u.value = o.value;
646
646
  }), U(t, (i) => a.value = i), U(o, (i) => u.value = i), { computedWidth: a, computedHeight: u, transformOrigin: l };
@@ -683,10 +683,10 @@ const to = ["x", "y", "width", "height"], no = /* @__PURE__ */ W({
683
683
  },
684
684
  emits: ["click", "mouseover", "mouseleave"],
685
685
  setup(e, { emit: n }) {
686
- const t = e, o = n, { x: a, y: u, width: l, height: i, transition: c, classList: s } = te(t), f = R(null), r = v(
686
+ const t = e, o = n, { x: a, y: u, width: l, height: i, transition: c, classList: s } = te(t), f = G(null), r = v(
687
687
  () => typeof s.value == "string" ? [s.value] : s.value
688
- ), m = v(() => c.value === "width"), g = v(() => c.value === "height"), p = eo(a, u, l, i), { computedX: b, computedY: L, shouldHaveMinWidth: A, shouldHaveMinHeight: h } = qn(a, u, l, i), $ = v(() => A.value ? 1 : (m.value ? p.computedWidth : l).value), N = v(() => h.value ? 1 : (g.value ? p.computedHeight : i).value), D = m.value || g.value ? p.transformOrigin : null;
689
- return _e(() => ze(f.value)), (P, w) => (y(), x("rect", {
688
+ ), m = v(() => c.value === "width"), g = v(() => c.value === "height"), p = eo(a, u, l, i), { computedX: b, computedY: L, shouldHaveMinWidth: A, shouldHaveMinHeight: h } = qn(a, u, l, i), x = v(() => A.value ? 1 : (m.value ? p.computedWidth : l).value), N = v(() => h.value ? 1 : (g.value ? p.computedHeight : i).value), D = m.value || g.value ? p.transformOrigin : null;
689
+ return _e(() => ze(f.value)), (P, w) => (y(), O("rect", {
690
690
  ref_key: "root",
691
691
  ref: f,
692
692
  class: ne(["lume-bar", [
@@ -698,10 +698,10 @@ const to = ["x", "y", "width", "height"], no = /* @__PURE__ */ W({
698
698
  },
699
699
  ...r.value
700
700
  ]]),
701
- style: Gt({ transformOrigin: d(D) }),
701
+ style: jt({ transformOrigin: d(D) }),
702
702
  x: d(b),
703
703
  y: d(L),
704
- width: $.value,
704
+ width: x.value,
705
705
  height: N.value,
706
706
  "data-j-bar": "",
707
707
  onClick: w[0] || (w[0] = (H) => o("click", H)),
@@ -712,7 +712,7 @@ const to = ["x", "y", "width", "height"], no = /* @__PURE__ */ W({
712
712
  });
713
713
  const mt = /* @__PURE__ */ ee(no, [["__scopeId", "data-v-8e8f732a"]]);
714
714
  function oo() {
715
- const e = R(), n = Fe({
715
+ const e = G(), n = Fe({
716
716
  dimensions: {}
717
717
  }), t = new ResizeObserver((o) => {
718
718
  o.forEach((a) => {
@@ -721,7 +721,7 @@ function oo() {
721
721
  });
722
722
  return _e(() => {
723
723
  t.observe(e.value);
724
- }), jt(() => {
724
+ }), Vt(() => {
725
725
  t.unobserve(e.value);
726
726
  }), { resizeState: n, resizeRef: e };
727
727
  }
@@ -747,10 +747,10 @@ const ao = ["height"], lo = ["transform"], uo = /* @__PURE__ */ W({
747
747
  },
748
748
  emits: ["click", "mouseenter", "mouseleave", "resize"],
749
749
  setup(e, { emit: n }) {
750
- const t = e, o = n, { margins: a, containerSize: u } = te(t), l = R(null), { resizeRef: i, resizeState: c } = oo(), s = v(
750
+ const t = e, o = n, { margins: a, containerSize: u } = te(t), l = G(null), { resizeRef: i, resizeState: c } = oo(), s = v(
751
751
  () => u.value.height + a.value.top + a.value.bottom
752
752
  );
753
- return Vt(() => {
753
+ return Ct(() => {
754
754
  if (!l.value)
755
755
  return;
756
756
  const { width: f } = c.dimensions, { height: r } = l.value.getBoundingClientRect();
@@ -763,7 +763,7 @@ const ao = ["height"], lo = ["transform"], uo = /* @__PURE__ */ W({
763
763
  outerHeight: r
764
764
  };
765
765
  o("resize", p);
766
- }), (f, r) => (y(), x("div", {
766
+ }), (f, r) => (y(), O("div", {
767
767
  ref_key: "resizeRef",
768
768
  ref: i,
769
769
  class: ne(["lume-chart-container", {
@@ -772,7 +772,7 @@ const ao = ["height"], lo = ["transform"], uo = /* @__PURE__ */ W({
772
772
  "data-j-chart-container": ""
773
773
  }, [
774
774
  M(f.$slots, "header", {}, void 0, !0),
775
- (y(), x("svg", {
775
+ (y(), O("svg", {
776
776
  ref_key: "root",
777
777
  ref: l,
778
778
  class: ne(["lume-chart-container__svg", {
@@ -784,7 +784,7 @@ const ao = ["height"], lo = ["transform"], uo = /* @__PURE__ */ W({
784
784
  onMouseenter: r[1] || (r[1] = (m) => o("mouseenter", m)),
785
785
  onMouseleave: r[2] || (r[2] = (m) => o("mouseleave", m))
786
786
  }, [
787
- C("g", {
787
+ R("g", {
788
788
  transform: `translate(${d(a).left}, ${d(a).top})`,
789
789
  class: "lume-chart-container__group",
790
790
  "data-j-chart-container__group": ""
@@ -802,19 +802,19 @@ const ro = /* @__PURE__ */ ee(uo, [["__scopeId", "data-v-2c7d0302"]]), io = ["on
802
802
  props: {
803
803
  data: {
804
804
  type: Array,
805
- validator: $n,
805
+ validator: xn,
806
806
  required: !0
807
807
  }
808
808
  },
809
809
  emits: ["click", "mouseenter", "mouseleave"],
810
810
  setup(e, { emit: n }) {
811
811
  const t = n;
812
- return (o, a) => (y(), x("div", {
812
+ return (o, a) => (y(), O("div", {
813
813
  class: "lume-chart-legend",
814
814
  "data-j-chart-legend": "",
815
815
  onMouseleave: a[0] || (a[0] = (u) => t("mouseleave"))
816
816
  }, [
817
- (y(!0), x(q, null, z(e.data, (u, l) => (y(), x("div", {
817
+ (y(!0), O(q, null, z(e.data, (u, l) => (y(), O("div", {
818
818
  key: `legend-item-${l}`,
819
819
  class: "lume-chart-legend__item lume-typography--body",
820
820
  tabindex: "0",
@@ -822,7 +822,7 @@ const ro = /* @__PURE__ */ ee(uo, [["__scopeId", "data-v-2c7d0302"]]), io = ["on
822
822
  onClick: (i) => t("click", { index: l, dataset: u, event: i }),
823
823
  onMouseenter: (i) => t("mouseenter", { index: l, dataset: u, event: i })
824
824
  }, [
825
- C("span", {
825
+ R("span", {
826
826
  class: ne(["lume-chart-legend__symbol", `lume-background-color--${u.color}`]),
827
827
  "data-j-chart-legend__symbol": ""
828
828
  }, null, 2),
@@ -831,13 +831,13 @@ const ro = /* @__PURE__ */ ee(uo, [["__scopeId", "data-v-2c7d0302"]]), io = ["on
831
831
  ], 32));
832
832
  }
833
833
  });
834
- const Ot = /* @__PURE__ */ ee(so, [["__scopeId", "data-v-f8ebd3b9"]]);
834
+ const $t = /* @__PURE__ */ ee(so, [["__scopeId", "data-v-f8ebd3b9"]]);
835
835
  const co = {}, vo = {
836
836
  class: "lume-tooltip__title",
837
837
  "data-j-tooltip__title": ""
838
838
  };
839
839
  function mo(e, n) {
840
- return y(), x("div", vo, [
840
+ return y(), O("div", vo, [
841
841
  M(e.$slots, "default", {}, void 0, !0)
842
842
  ]);
843
843
  }
@@ -847,11 +847,11 @@ const po = {}, ho = {
847
847
  "data-j-tooltip__summary-item": ""
848
848
  }, go = { class: "lume-tooltip__value" };
849
849
  function _o(e, n) {
850
- return y(), x("li", ho, [
851
- C("span", null, [
850
+ return y(), O("li", ho, [
851
+ R("span", null, [
852
852
  M(e.$slots, "default", {}, void 0, !0)
853
853
  ]),
854
- C("strong", go, [
854
+ R("strong", go, [
855
855
  M(e.$slots, "value", {}, void 0, !0)
856
856
  ])
857
857
  ]);
@@ -871,25 +871,25 @@ const yo = /* @__PURE__ */ ee(po, [["render", _o], ["__scopeId", "data-v-4ed7ec1
871
871
  }
872
872
  },
873
873
  setup(e) {
874
- return (n, t) => (y(), x("li", ko, [
875
- e.color ? (y(), x("span", {
874
+ return (n, t) => (y(), O("li", ko, [
875
+ e.color ? (y(), O("span", {
876
876
  key: 0,
877
877
  class: ne([[`lume-background-color--${e.color}`], "lume-tooltip__symbol"]),
878
878
  "data-j-tooltip__item__symbol": ""
879
879
  }, null, 2)) : Z("", !0),
880
- C("span", bo, [
880
+ R("span", bo, [
881
881
  M(n.$slots, "label", {}, void 0, !0)
882
882
  ]),
883
- C("strong", Ao, [
883
+ R("strong", Ao, [
884
884
  M(n.$slots, "value", {}, void 0, !0)
885
885
  ])
886
886
  ]));
887
887
  }
888
888
  });
889
- const Lo = /* @__PURE__ */ ee(To, [["__scopeId", "data-v-4f995c3c"]]), Oo = (e) => (dn("data-v-e0426df7"), e = e(), vn(), e), $o = { class: "lume-tooltip__items" }, xo = {
889
+ const Lo = /* @__PURE__ */ ee(To, [["__scopeId", "data-v-4f995c3c"]]), $o = (e) => (dn("data-v-e0426df7"), e = e(), vn(), e), xo = { class: "lume-tooltip__items" }, Oo = {
890
890
  key: 0,
891
891
  class: "lume-tooltip__break"
892
- }, Io = /* @__PURE__ */ Oo(() => /* @__PURE__ */ C("hr", null, null, -1)), wo = [
892
+ }, Io = /* @__PURE__ */ $o(() => /* @__PURE__ */ R("hr", null, null, -1)), wo = [
893
893
  Io
894
894
  ], Eo = /* @__PURE__ */ W({
895
895
  __name: "lume-tooltip",
@@ -909,7 +909,7 @@ const Lo = /* @__PURE__ */ ee(To, [["__scopeId", "data-v-4f995c3c"]]), Oo = (e)
909
909
  position: {
910
910
  type: String,
911
911
  default: "auto",
912
- validator: (e) => Vn.includes(e)
912
+ validator: (e) => Cn.includes(e)
913
913
  },
914
914
  fixedPositioning: {
915
915
  type: Boolean,
@@ -935,7 +935,7 @@ const Lo = /* @__PURE__ */ ee(To, [["__scopeId", "data-v-4f995c3c"]]), Oo = (e)
935
935
  },
936
936
  emits: ["opened", "moved", "closed", "tooltip-mouseenter", "tooltip-mouseleave"],
937
937
  setup(e, { emit: n }) {
938
- const t = e, o = n, a = R(null), { items: u, options: l } = te(t), i = re(), c = R(null), { allOptions: s } = fe(l), f = v(
938
+ const t = e, o = n, a = G(null), { items: u, options: l } = te(t), i = re(), c = G(null), { allOptions: s } = fe(l), f = v(
939
939
  () => s.value.fixedPositioning ?? t.fixedPositioning
940
940
  ), r = v(
941
941
  () => f.value ? "fixed" : "absolute"
@@ -954,7 +954,7 @@ const Lo = /* @__PURE__ */ ee(To, [["__scopeId", "data-v-4f995c3c"]]), Oo = (e)
954
954
  ...t.modifiers || []
955
955
  ]), g = v(
956
956
  () => s.value.showTitle !== !1 && t.title != null
957
- ), p = v(() => je(s.value.valueFormat)), b = v(() => je(s.value.titleFormat)), L = v(
957
+ ), p = v(() => Ve(s.value.valueFormat)), b = v(() => Ve(s.value.titleFormat)), L = v(
958
958
  () => {
959
959
  var P;
960
960
  return ((P = u.value) == null ? void 0 : P.find((w) => w.isSummary)) || {
@@ -962,7 +962,7 @@ const Lo = /* @__PURE__ */ ee(To, [["__scopeId", "data-v-4f995c3c"]]), Oo = (e)
962
962
  };
963
963
  }
964
964
  ), A = v(() => i.summary || L.value.label), h = v(() => t.inverse || s.value.inverse ? [...u.value].reverse() : u.value);
965
- function $() {
965
+ function x() {
966
966
  t.targetElement && a.value && (c.value = yn(t.targetElement, a.value, {
967
967
  placement: t.position,
968
968
  strategy: r.value,
@@ -980,9 +980,9 @@ const Lo = /* @__PURE__ */ ee(To, [["__scopeId", "data-v-4f995c3c"]]), Oo = (e)
980
980
  return U(
981
981
  () => t.targetElement,
982
982
  (P, w) => {
983
- !w && P ? $() : D();
983
+ !w && P ? x() : D();
984
984
  }
985
- ), _e($), jt(N), (P, w) => sn((y(), x("div", {
985
+ ), _e(x), Vt(N), (P, w) => sn((y(), O("div", {
986
986
  ref_key: "root",
987
987
  ref: a,
988
988
  class: ne(["lume-tooltip lume-typography--caption", {
@@ -995,39 +995,39 @@ const Lo = /* @__PURE__ */ ee(To, [["__scopeId", "data-v-4f995c3c"]]), Oo = (e)
995
995
  M(P.$slots, "default", {}, () => [
996
996
  M(P.$slots, "title", {}, () => [
997
997
  g.value ? (y(), X(d(fo), { key: 0 }, {
998
- default: V(() => [
998
+ default: C(() => [
999
999
  ce(oe(b.value(e.title)), 1)
1000
1000
  ]),
1001
1001
  _: 1
1002
1002
  })) : Z("", !0)
1003
1003
  ], !0),
1004
- C("ul", $o, [
1004
+ R("ul", xo, [
1005
1005
  M(P.$slots, "summary", {}, () => [
1006
1006
  A.value ? (y(), X(d(yo), { key: 0 }, de({
1007
- default: V(() => [
1007
+ default: C(() => [
1008
1008
  ce(oe(L.value.label) + " ", 1)
1009
1009
  ]),
1010
1010
  _: 2
1011
1011
  }, [
1012
1012
  L.value.value ? {
1013
1013
  name: "value",
1014
- fn: V(() => [
1014
+ fn: C(() => [
1015
1015
  ce(oe(p.value(L.value.value)), 1)
1016
1016
  ]),
1017
1017
  key: "0"
1018
1018
  } : void 0
1019
1019
  ]), 1024)) : Z("", !0)
1020
1020
  ], !0),
1021
- A.value ? (y(), x("li", xo, wo)) : Z("", !0),
1021
+ A.value ? (y(), O("li", Oo, wo)) : Z("", !0),
1022
1022
  M(P.$slots, "items", {}, () => [
1023
- (y(!0), x(q, null, z(h.value, (H) => (y(), X(d(Lo), {
1023
+ (y(!0), O(q, null, z(h.value, (H) => (y(), X(d(Lo), {
1024
1024
  key: H.label,
1025
1025
  color: H.color
1026
1026
  }, {
1027
- label: V(() => [
1027
+ label: C(() => [
1028
1028
  ce(oe(H.label), 1)
1029
1029
  ]),
1030
- value: V(() => [
1030
+ value: C(() => [
1031
1031
  ce(oe(p.value(H.value)), 1)
1032
1032
  ]),
1033
1033
  _: 2
@@ -1042,14 +1042,14 @@ const Lo = /* @__PURE__ */ ee(To, [["__scopeId", "data-v-4f995c3c"]]), Oo = (e)
1042
1042
  });
1043
1043
  const No = /* @__PURE__ */ ee(Eo, [["__scopeId", "data-v-e0426df7"]]);
1044
1044
  var be = /* @__PURE__ */ ((e) => (e.Categorical = "categorical", e.Sequential = "sequential", e.Divergent = "divergent", e))(be || {});
1045
- const Do = be.Categorical, Ce = se.Skyblue, Ho = ct.SkyTeal;
1045
+ const Do = be.Categorical, Re = se.Skyblue, Ho = ct.SkyTeal;
1046
1046
  function Bo(e) {
1047
- return e === be.Divergent ? Ho : Ce;
1047
+ return e === be.Divergent ? Ho : Re;
1048
1048
  }
1049
1049
  function Mo(e) {
1050
1050
  return Object.values(vt).includes(e);
1051
1051
  }
1052
- function $t(e, n) {
1052
+ function xt(e, n) {
1053
1053
  return n === be.Divergent ? Object.values(ct).includes(e) : Object.values({
1054
1054
  ...se,
1055
1055
  ...Zt,
@@ -1061,32 +1061,32 @@ function So(e, n) {
1061
1061
  const t = Object.values(se).indexOf(e);
1062
1062
  return Hn(Object.values(se), t > -1 ? t : 0)[n];
1063
1063
  }
1064
- function Ro(e, n) {
1064
+ function Go(e, n) {
1065
1065
  const t = 50 + n * 10;
1066
1066
  return `${e}-${t}`;
1067
1067
  }
1068
- function Co(e, n) {
1068
+ function Ro(e, n) {
1069
1069
  const t = (n + 1) * 10;
1070
1070
  return `${e}-${t}`;
1071
1071
  }
1072
- function xt(e, n, t) {
1072
+ function Ot(e, n, t) {
1073
1073
  switch (n) {
1074
1074
  default:
1075
1075
  case be.Categorical:
1076
1076
  return Mo(e) ? e : So(e, t);
1077
1077
  case be.Sequential:
1078
- return Ro(e, t);
1078
+ return Go(e, t);
1079
1079
  case be.Divergent:
1080
- return Co(e, t);
1080
+ return Ro(e, t);
1081
1081
  }
1082
1082
  }
1083
- function Go(e, n, t = Do, o) {
1084
- return $t(e, t) ? e : (o > 4 && (ge(me.ColorLoop), o = o % 5), $t(n, t) ? xt(n, t, o) : xt(Bo(t), t, o));
1085
- }
1086
- function jo(e) {
1087
- return e.map((n) => xn(n) ? n : { value: n });
1083
+ function jo(e, n, t = Do, o) {
1084
+ return xt(e, t) ? e : (o > 4 && (ge(me.ColorLoop), o = o % 5), xt(n, t) ? Ot(n, t, o) : Ot(Bo(t), t, o));
1088
1085
  }
1089
1086
  function Vo(e) {
1087
+ return e.map((n) => On(n) ? n : { value: n });
1088
+ }
1089
+ function Co(e) {
1090
1090
  return e.__internal === !0;
1091
1091
  }
1092
1092
  const ft = (e = null) => ({
@@ -1116,9 +1116,9 @@ function pt(e, n, t, o, a) {
1116
1116
  var f;
1117
1117
  return e.value.length > 5 && ge(me.DatasetLength), (f = e.value) == null ? void 0 : f.map(
1118
1118
  (r, m) => {
1119
- if (Vo(r))
1119
+ if (Co(r))
1120
1120
  return r;
1121
- const g = jo(r.values), p = Go(
1121
+ const g = Vo(r.values), p = jo(
1122
1122
  r.color,
1123
1123
  t == null ? void 0 : t.value,
1124
1124
  o == null ? void 0 : o.value.colorPalette,
@@ -1156,7 +1156,7 @@ const Po = () => ({
1156
1156
  }
1157
1157
  });
1158
1158
  function Fo(e, n, t, o, a) {
1159
- const u = R(null), l = R(null);
1159
+ const u = G(null), l = G(null);
1160
1160
  function i() {
1161
1161
  var f, r, m, g;
1162
1162
  const { width: c, height: s } = t;
@@ -1182,7 +1182,7 @@ function Fo(e, n, t, o, a) {
1182
1182
  a.value.startOnZero
1183
1183
  ) : null));
1184
1184
  }
1185
- return Vt(i), { xScale: u, yScale: l };
1185
+ return Ct(i), { xScale: u, yScale: l };
1186
1186
  }
1187
1187
  function It(e, n, t, o) {
1188
1188
  const a = [0, n], { padding: u, paddingInner: l, paddingOuter: i } = o, c = u ?? (t === B.HORIZONTAL ? Yt : Xt);
@@ -1308,8 +1308,8 @@ const Ee = (e, n = !0) => ({
1308
1308
  transform: `translate(${L}, 0)`
1309
1309
  };
1310
1310
  }
1311
- return (f, r) => (y(), x("g", Wo, [
1312
- (y(!0), x(q, null, z(c.value, (m, g) => (y(), X(d(mt), G(s(g), {
1311
+ return (f, r) => (y(), O("g", Wo, [
1312
+ (y(!0), O(q, null, z(c.value, (m, g) => (y(), X(d(mt), j(s(g), {
1313
1313
  key: `overlay-${g}`,
1314
1314
  "data-j-lume-overlay-group": g,
1315
1315
  transition: !1,
@@ -1466,8 +1466,8 @@ const oa = { class: "lume-chart__header" }, aa = { class: "lume-chart__header-se
1466
1466
  }
1467
1467
  },
1468
1468
  setup(e, { emit: n }) {
1469
- const t = e, o = re(), a = n, { data: u, labels: l, color: i, options: c, orientation: s, chartType: f } = te(t), r = R(-1), m = R(null), g = R(null), p = R([]), b = R(null), L = R(0), A = R(0), { allOptions: h } = fe(c), { internalData: $, computedLabels: N, containerSize: D, updateSize: P, chartID: w } = pt(u, l, i, h, s), { xScale: H, yScale: Y } = Fo(
1470
- $,
1469
+ const t = e, o = re(), a = n, { data: u, labels: l, color: i, options: c, orientation: s, chartType: f } = te(t), r = G(-1), m = G(null), g = G(null), p = G([]), b = G(null), L = G(0), A = G(0), { allOptions: h } = fe(c), { internalData: x, computedLabels: N, containerSize: D, updateSize: P, chartID: w } = pt(u, l, i, h, s), { xScale: H, yScale: Y } = Fo(
1470
+ x,
1471
1471
  N,
1472
1472
  D,
1473
1473
  s,
@@ -1478,11 +1478,11 @@ const oa = { class: "lume-chart__header" }, aa = { class: "lume-chart__header-se
1478
1478
  bottom: ta(h.value.margins, L.value),
1479
1479
  left: na(h.value.margins, A.value)
1480
1480
  })), Q = v(() => {
1481
- var O;
1482
- return t.xScale ? Et(t.xScale) ? t.xScale : (O = t.xScale) == null ? void 0 : O.call(t, $.value, l.value, D) : H.value;
1481
+ var $;
1482
+ return t.xScale ? Et(t.xScale) ? t.xScale : ($ = t.xScale) == null ? void 0 : $.call(t, x.value, l.value, D) : H.value;
1483
1483
  }), F = v(() => {
1484
- var O;
1485
- return t.yScale ? Et(t.yScale) ? t.yScale : (O = t.yScale) == null ? void 0 : O.call(t, $.value, l.value, D) : Y.value;
1484
+ var $;
1485
+ return t.yScale ? Et(t.yScale) ? t.yScale : ($ = t.yScale) == null ? void 0 : $.call(t, x.value, l.value, D) : Y.value;
1486
1486
  }), ue = v(() => ({
1487
1487
  ...h.value.xAxisOptions,
1488
1488
  withHover: s.value === B.VERTICAL
@@ -1490,23 +1490,23 @@ const oa = { class: "lume-chart__header" }, aa = { class: "lume-chart__header-se
1490
1490
  ...h.value.yAxisOptions,
1491
1491
  withHover: s.value === B.HORIZONTAL
1492
1492
  })), ke = v(() => {
1493
- var O;
1494
- return (O = h.value.xAxisOptions) == null ? void 0 : O.title;
1495
- }), Oe = v(() => {
1496
- var O;
1497
- return (O = h.value.yAxisOptions) == null ? void 0 : O.title;
1493
+ var $;
1494
+ return ($ = h.value.xAxisOptions) == null ? void 0 : $.title;
1495
+ }), $e = v(() => {
1496
+ var $;
1497
+ return ($ = h.value.yAxisOptions) == null ? void 0 : $.title;
1498
1498
  }), S = v(() => {
1499
- var O;
1500
- return ((O = h.value.xAxisOptions) == null ? void 0 : O.withTitle) !== !1 && ke.value;
1499
+ var $;
1500
+ return (($ = h.value.xAxisOptions) == null ? void 0 : $.withTitle) !== !1 && ke.value;
1501
1501
  }), k = v(() => {
1502
- var O;
1503
- return ((O = h.value.yAxisOptions) == null ? void 0 : O.withTitle) !== !1 && Oe.value;
1502
+ var $;
1503
+ return (($ = h.value.yAxisOptions) == null ? void 0 : $.withTitle) !== !1 && $e.value;
1504
1504
  }), E = v(
1505
- () => u.value.every((O) => !O.values.length)
1505
+ () => u.value.every(($) => !$.values.length)
1506
1506
  ), _ = v(() => {
1507
- const O = [], { noBaseScales: T } = h.value;
1508
- return !T && !E.value && O.push(() => !!(Q.value && F.value)), O.every((I) => I() === !0);
1509
- }), { hasNegativeValues: j } = Uo($), { negativeBarAttributes: J } = Xo(
1507
+ const $ = [], { noBaseScales: T } = h.value;
1508
+ return !T && !E.value && $.push(() => !!(Q.value && F.value)), $.every((I) => I() === !0);
1509
+ }), { hasNegativeValues: V } = Uo(x), { negativeBarAttributes: J } = Xo(
1510
1510
  D,
1511
1511
  Q,
1512
1512
  F,
@@ -1518,69 +1518,69 @@ const oa = { class: "lume-chart__header" }, aa = { class: "lume-chart__header-se
1518
1518
  F,
1519
1519
  l,
1520
1520
  s,
1521
- $,
1521
+ x,
1522
1522
  f
1523
- ), { tooltipConfig: De, showTooltip: Ze, hideTooltip: Ue } = Jo(), { getTooltipItems: $e } = Qo($), He = v(
1523
+ ), { tooltipConfig: De, showTooltip: Ze, hideTooltip: Ue } = Jo(), { getTooltipItems: xe } = Qo(x), He = v(
1524
1524
  () => {
1525
- var O;
1526
- return ((O = h.value.tooltipOptions) == null ? void 0 : O.position) || "top";
1525
+ var $;
1526
+ return (($ = h.value.tooltipOptions) == null ? void 0 : $.position) || "top";
1527
1527
  }
1528
- ), xe = v(() => {
1528
+ ), Oe = v(() => {
1529
1529
  var T;
1530
- const O = (T = h.value.tooltipOptions) == null ? void 0 : T.withPointerEvents;
1531
- return De.opened && (!O || O && b.value === !1);
1530
+ const $ = (T = h.value.tooltipOptions) == null ? void 0 : T.withPointerEvents;
1531
+ return De.opened && (!$ || $ && b.value === !1);
1532
1532
  });
1533
- function Ge(O) {
1533
+ function je($) {
1534
1534
  var I;
1535
- if (O === r.value)
1535
+ if ($ === r.value)
1536
1536
  return;
1537
1537
  const T = r.value;
1538
- if (h.value.withHover !== !1 && (r.value = O), h.value.withTooltip !== !1) {
1539
- const Ye = (I = h.value.tooltipOptions) != null && I.targetElement ? h.value.tooltipOptions.targetElement === "self" ? g.value.$el : h.value.tooltipOptions.targetElement : m.value[O];
1538
+ if (h.value.withHover !== !1 && (r.value = $), h.value.withTooltip !== !1) {
1539
+ const Ye = (I = h.value.tooltipOptions) != null && I.targetElement ? h.value.tooltipOptions.targetElement === "self" ? g.value.$el : h.value.tooltipOptions.targetElement : m.value[$];
1540
1540
  Ze(Ye);
1541
1541
  }
1542
- a("hovered-index-changed", { newIndex: O, oldIndex: T }), a("update:hoveredIndex", O);
1542
+ a("hovered-index-changed", { newIndex: $, oldIndex: T }), a("update:hoveredIndex", $);
1543
1543
  }
1544
1544
  function Xe() {
1545
1545
  Ue(), r.value = -1, a("update:hoveredIndex", -1);
1546
1546
  }
1547
- function gt(O) {
1547
+ function gt($) {
1548
1548
  if (!u.value.some(
1549
- ({ values: I }) => O <= I.length - 1
1549
+ ({ values: I }) => $ <= I.length - 1
1550
1550
  )) {
1551
1551
  ge(me.InvalidHoveredIndex);
1552
1552
  return;
1553
1553
  }
1554
- O == null || O === -1 ? Xe() : Ge(O);
1554
+ $ == null || $ === -1 ? Xe() : je($);
1555
1555
  }
1556
1556
  function rn() {
1557
1557
  setTimeout(() => {
1558
- xe.value && Xe(), a("chart-mouseleave");
1558
+ Oe.value && Xe(), a("chart-mouseleave");
1559
1559
  }, 0);
1560
1560
  }
1561
- function _t({ index: O, value: T, event: I }) {
1562
- O !== null && Ge(O), a("axis-mouseenter", { index: O, value: T, event: I });
1561
+ function _t({ index: $, value: T, event: I }) {
1562
+ $ !== null && je($), a("axis-mouseenter", { index: $, value: T, event: I });
1563
1563
  }
1564
- function yt({ index: O, value: T, event: I }) {
1565
- a("axis-click", { index: O, value: T, event: I });
1564
+ function yt({ index: $, value: T, event: I }) {
1565
+ a("axis-click", { index: $, value: T, event: I });
1566
1566
  }
1567
1567
  return U(
1568
1568
  u,
1569
- (O, T) => a("data-changed", { newValue: O, oldValue: T })
1569
+ ($, T) => a("data-changed", { newValue: $, oldValue: T })
1570
1570
  ), U(
1571
1571
  l,
1572
- (O, T) => a("labels-changed", { newValue: O, oldValue: T })
1573
- ), U(E, (O) => O && ge(me.Empty), { immediate: !0 }), U(() => t.hoveredIndex, gt), U(
1572
+ ($, T) => a("labels-changed", { newValue: $, oldValue: T })
1573
+ ), U(E, ($) => $ && ge(me.Empty), { immediate: !0 }), U(() => t.hoveredIndex, gt), U(
1574
1574
  p,
1575
- (O) => {
1576
- O && t.hoveredIndex != null && r.value === -1 && gt(t.hoveredIndex);
1575
+ ($) => {
1576
+ $ && t.hoveredIndex != null && r.value === -1 && gt(t.hoveredIndex);
1577
1577
  },
1578
1578
  { flush: "post" }
1579
- ), U(b, (O) => {
1580
- O === !1 && De.opened && Xe();
1579
+ ), U(b, ($) => {
1580
+ $ === !1 && De.opened && Xe();
1581
1581
  }), _e(async () => {
1582
1582
  a("rendered"), o.groups || console.error('"groups" `<slot>` must have content.');
1583
- }), Ke("chartID", w), Ke("isEmpty", E), Ke("tooltipAnchorAttributes", p), (O, T) => (y(), X(d(ro), {
1583
+ }), Ke("chartID", w), Ke("isEmpty", E), Ke("tooltipAnchorAttributes", p), ($, T) => (y(), X(d(ro), {
1584
1584
  id: `lume-chart_${d(w)}`,
1585
1585
  ref_key: "chartContainer",
1586
1586
  ref: g,
@@ -1594,20 +1594,20 @@ const oa = { class: "lume-chart__header" }, aa = { class: "lume-chart__header-se
1594
1594
  onMouseenter: T[25] || (T[25] = (I) => a("chart-mouseenter", I)),
1595
1595
  onMouseleave: rn
1596
1596
  }, {
1597
- header: V(() => [
1598
- C("div", oa, [
1599
- C("div", aa, [
1600
- O.title ? (y(), x("h1", la, oe(O.title), 1)) : Z("", !0),
1601
- C("div", ua, [
1602
- M(O.$slots, "controls", {}, void 0, !0)
1597
+ header: C(() => [
1598
+ R("div", oa, [
1599
+ R("div", aa, [
1600
+ $.title ? (y(), O("h1", la, oe($.title), 1)) : Z("", !0),
1601
+ R("div", ua, [
1602
+ M($.$slots, "controls", {}, void 0, !0)
1603
1603
  ])
1604
1604
  ]),
1605
- C("div", ra, [
1606
- k.value ? (y(), x("h3", ia, oe(Oe.value), 1)) : Z("", !0),
1607
- M(O.$slots, "legend", { data: d($) }, () => [
1608
- d(h).withLegend !== !1 && d(h).legendPosition !== "bottom" ? (y(), X(d(Ot), {
1605
+ R("div", ra, [
1606
+ k.value ? (y(), O("h3", ia, oe($e.value), 1)) : Z("", !0),
1607
+ M($.$slots, "legend", { data: d(x) }, () => [
1608
+ d(h).withLegend !== !1 && d(h).legendPosition !== "bottom" ? (y(), X(d($t), {
1609
1609
  key: 0,
1610
- data: d($),
1610
+ data: d(x),
1611
1611
  class: "lume-chart__legend",
1612
1612
  "data-j-lume-chart__legend": "",
1613
1613
  onClick: T[0] || (T[0] = (I) => a("legend-click", I)),
@@ -1618,11 +1618,11 @@ const oa = { class: "lume-chart__header" }, aa = { class: "lume-chart__header-se
1618
1618
  ])
1619
1619
  ])
1620
1620
  ]),
1621
- footer: V(() => [
1622
- S.value ? (y(), x("h3", da, oe(ke.value), 1)) : Z("", !0),
1623
- d(h).withLegend !== !1 && d(h).legendPosition == "bottom" ? (y(), X(d(Ot), {
1621
+ footer: C(() => [
1622
+ S.value ? (y(), O("h3", da, oe(ke.value), 1)) : Z("", !0),
1623
+ d(h).withLegend !== !1 && d(h).legendPosition == "bottom" ? (y(), X(d($t), {
1624
1624
  key: 1,
1625
- data: d($),
1625
+ data: d(x),
1626
1626
  class: "lume-chart__legend lume-chart__legend--bottom",
1627
1627
  "data-j-lume-chart__legend": "",
1628
1628
  onClick: T[16] || (T[16] = (I) => a("legend-click", I)),
@@ -1630,12 +1630,12 @@ const oa = { class: "lume-chart__header" }, aa = { class: "lume-chart__header-se
1630
1630
  onMouseleave: T[18] || (T[18] = (I) => a("legend-mouseleave"))
1631
1631
  }, null, 8, ["data"])) : Z("", !0)
1632
1632
  ]),
1633
- extra: V(() => [
1634
- M(O.$slots, "tooltip", G(d(De), {
1635
- data: d($),
1633
+ extra: C(() => [
1634
+ M($.$slots, "tooltip", j(d(De), {
1635
+ data: d(x),
1636
1636
  labels: d(N),
1637
1637
  title: d(N)[r.value],
1638
- items: d($e)(r.value),
1638
+ items: d(xe)(r.value),
1639
1639
  position: He.value,
1640
1640
  withTooltip: d(h).withTooltip !== !1,
1641
1641
  hoveredIndex: r.value,
@@ -1643,10 +1643,10 @@ const oa = { class: "lume-chart__header" }, aa = { class: "lume-chart__header-se
1643
1643
  handleMouseLeave: () => b.value = !1,
1644
1644
  options: d(h).tooltipOptions
1645
1645
  }), () => [
1646
- d(h).withTooltip !== !1 ? (y(), X(d(No), G({ key: 0 }, d(De), {
1646
+ d(h).withTooltip !== !1 ? (y(), X(d(No), j({ key: 0 }, d(De), {
1647
1647
  position: He.value,
1648
1648
  title: d(N)[r.value],
1649
- items: d($e)(r.value),
1649
+ items: d(xe)(r.value),
1650
1650
  options: d(h).tooltipOptions,
1651
1651
  "data-j-lume-chart__tooltip": "",
1652
1652
  onOpened: T[19] || (T[19] = (I) => a("tooltip-opened", {
@@ -1661,9 +1661,9 @@ const oa = { class: "lume-chart__header" }, aa = { class: "lume-chart__header-se
1661
1661
  onTooltipMouseenter: T[22] || (T[22] = (I) => b.value = !0),
1662
1662
  onTooltipMouseleave: T[23] || (T[23] = (I) => b.value = !1)
1663
1663
  }), {
1664
- default: V(() => [
1665
- M(O.$slots, "tooltip-content", {
1666
- data: d($),
1664
+ default: C(() => [
1665
+ M($.$slots, "tooltip-content", {
1666
+ data: d(x),
1667
1667
  labels: d(N),
1668
1668
  hoveredIndex: r.value
1669
1669
  }, void 0, !0)
@@ -1672,14 +1672,14 @@ const oa = { class: "lume-chart__header" }, aa = { class: "lume-chart__header-se
1672
1672
  }, 16, ["position", "title", "items", "options"])) : Z("", !0)
1673
1673
  ], !0)
1674
1674
  ]),
1675
- default: V(() => [
1676
- _.value ? (y(), x(q, { key: 0 }, [
1677
- d(j) ? (y(), X(d(mt), G({ key: 0 }, d(J), {
1675
+ default: C(() => [
1676
+ _.value ? (y(), O(q, { key: 0 }, [
1677
+ d(V) ? (y(), X(d(mt), j({ key: 0 }, d(J), {
1678
1678
  "class-list": "lume-fill--negative",
1679
1679
  transition: !1,
1680
1680
  "data-j-lume-chart__negative-values": ""
1681
1681
  }), null, 16)) : Z("", !0),
1682
- d(h).withAxes !== !1 ? M(O.$slots, "axes", {
1682
+ d(h).withAxes !== !1 ? M($.$slots, "axes", {
1683
1683
  key: 1,
1684
1684
  xScale: Q.value,
1685
1685
  yScale: F.value,
@@ -1716,25 +1716,25 @@ const oa = { class: "lume-chart__header" }, aa = { class: "lume-chart__header-se
1716
1716
  ], !0) : Z("", !0),
1717
1717
  d(h).withHover !== !1 ? (y(), X(d(Zo), {
1718
1718
  key: 2,
1719
- data: d($),
1719
+ data: d(x),
1720
1720
  orientation: d(s),
1721
1721
  "x-scale": Q.value,
1722
1722
  "y-scale": F.value,
1723
1723
  "data-j-lume-chart__overlay-group": "",
1724
- "onLume__internal-Hover": Ge
1724
+ "onLume__internal-Hover": je
1725
1725
  }, null, 8, ["data", "orientation", "x-scale", "y-scale"])) : Z("", !0),
1726
- d(le) ? (y(), x("g", sa, [
1727
- (y(!0), x(q, null, z(p.value, (I, Ye) => (y(), x("circle", G(I, {
1726
+ d(le) ? (y(), O("g", sa, [
1727
+ (y(!0), O(q, null, z(p.value, (I, Ye) => (y(), O("circle", j(I, {
1728
1728
  ref_for: !0,
1729
1729
  ref_key: "tooltipAnchor",
1730
1730
  ref: m,
1731
1731
  key: `anchor_${Ye}`,
1732
- r: d(jn),
1732
+ r: d(Vn),
1733
1733
  class: "lume-fill--transparent"
1734
1734
  }), null, 16, ca))), 128))
1735
1735
  ])) : Z("", !0),
1736
- M(O.$slots, "groups", {
1737
- data: d($),
1736
+ M($.$slots, "groups", {
1737
+ data: d(x),
1738
1738
  labels: d(N),
1739
1739
  options: d(h),
1740
1740
  orientation: d(s),
@@ -1743,7 +1743,7 @@ const oa = { class: "lume-chart__header" }, aa = { class: "lume-chart__header-se
1743
1743
  hoveredIndex: r.value,
1744
1744
  containerSize: d(D),
1745
1745
  transition: d(h).withTransition !== !1,
1746
- classList: O.classList,
1746
+ classList: $.classList,
1747
1747
  onNodeClick: T[7] || (T[7] = (I) => a("node-click", I)),
1748
1748
  onNodeMouseenter: T[8] || (T[8] = (I) => a("node-mouseenter", I)),
1749
1749
  onNodeMouseleave: T[9] || (T[9] = (I) => a("node-mouseleave", I)),
@@ -1753,7 +1753,7 @@ const oa = { class: "lume-chart__header" }, aa = { class: "lume-chart__header-se
1753
1753
  onBarClick: T[13] || (T[13] = (I) => a("bar-click", I)),
1754
1754
  onLineClick: T[14] || (T[14] = (I) => a("line-click", I)),
1755
1755
  onPointClick: T[15] || (T[15] = (I) => a("point-click", I)),
1756
- "onLume__internal-Hover": Ge
1756
+ "onLume__internal-Hover": je
1757
1757
  }, void 0, !0)
1758
1758
  ], 64)) : Z("", !0)
1759
1759
  ]),
@@ -1770,7 +1770,7 @@ const Ne = /* @__PURE__ */ ee(va, [["__scopeId", "data-v-14e6a8a3"]]), Ht = 8, m
1770
1770
  },
1771
1771
  emits: ["lume__internal--node-resize"],
1772
1772
  setup(e, { emit: n }) {
1773
- const t = e, o = n, a = R(null), u = R(t.maxWidth), l = R(1);
1773
+ const t = e, o = n, a = G(null), u = G(t.maxWidth), l = G(1);
1774
1774
  return U(
1775
1775
  [a, () => t.maxWidth],
1776
1776
  async ([i, c]) => {
@@ -1783,7 +1783,7 @@ const Ne = /* @__PURE__ */ ee(va, [["__scopeId", "data-v-14e6a8a3"]]), Ht = 8, m
1783
1783
  { immediate: !0 }
1784
1784
  ), U(u, async (i) => {
1785
1785
  i !== t.maxWidth && (await kt(), o("lume__internal--node-resize"));
1786
- }), (i, c) => e.maxWidth ? (y(), x("foreignObject", {
1786
+ }), (i, c) => e.maxWidth ? (y(), O("foreignObject", {
1787
1787
  key: 1,
1788
1788
  class: "lume-alluvial-group__node-foreign",
1789
1789
  y: e.bottom ? "0.1em" : -l.value + 1,
@@ -1791,8 +1791,8 @@ const Ne = /* @__PURE__ */ ee(va, [["__scopeId", "data-v-14e6a8a3"]]), Ht = 8, m
1791
1791
  width: u.value,
1792
1792
  height: l.value
1793
1793
  }, [
1794
- C("div", ga, [
1795
- C("span", {
1794
+ R("div", ga, [
1795
+ R("span", {
1796
1796
  ref_key: "text",
1797
1797
  ref: a,
1798
1798
  class: "lume-alluvial-group__node-label"
@@ -1800,7 +1800,7 @@ const Ne = /* @__PURE__ */ ee(va, [["__scopeId", "data-v-14e6a8a3"]]), Ht = 8, m
1800
1800
  M(i.$slots, "default", {}, void 0, !0)
1801
1801
  ], 512)
1802
1802
  ])
1803
- ], 8, ha)) : (y(), x("text", {
1803
+ ], 8, ha)) : (y(), O("text", {
1804
1804
  key: 0,
1805
1805
  class: "lume-alluvial-group__node-label",
1806
1806
  dy: e.bottom ? ".2em" : "-.2em",
@@ -1816,7 +1816,7 @@ const ya = /* @__PURE__ */ ee(_a, [["__scopeId", "data-v-7126dfdb"]]), ka = ["y"
1816
1816
  bottom: { type: Boolean, default: !0 }
1817
1817
  },
1818
1818
  setup(e) {
1819
- return (n, t) => (y(), x("text", {
1819
+ return (n, t) => (y(), O("text", {
1820
1820
  class: "lume-alluvial-group__node-value",
1821
1821
  y: e.bottom ? ".2em" : "-.2em",
1822
1822
  "dominant-baseline": e.bottom ? "hanging" : "auto"
@@ -1825,38 +1825,38 @@ const ya = /* @__PURE__ */ ee(_a, [["__scopeId", "data-v-7126dfdb"]]), ka = ["y"
1825
1825
  ], 8, ka));
1826
1826
  }
1827
1827
  });
1828
- const Aa = /* @__PURE__ */ ee(ba, [["__scopeId", "data-v-b4fc758b"]]), Ta = ["transform"], La = ["transform"], Oa = ["transform"], $a = /* @__PURE__ */ W({
1828
+ const Aa = /* @__PURE__ */ ee(ba, [["__scopeId", "data-v-b4fc758b"]]), Ta = ["transform"], La = ["transform"], $a = ["transform"], xa = /* @__PURE__ */ W({
1829
1829
  __name: "lume-alluvial-node-header",
1830
1830
  props: {
1831
1831
  x: { type: Number, required: !0 },
1832
1832
  y: { type: Number, required: !0 }
1833
1833
  },
1834
1834
  setup(e) {
1835
- const n = R(null), t = v(
1835
+ const n = G(null), t = v(
1836
1836
  () => n.value && `translate(${-n.value.getBBox().width / 2}, 0)`
1837
1837
  ), o = v(
1838
1838
  () => n.value && `translate(${n.value.getBBox().width / 2}, 0)`
1839
1839
  );
1840
- return (a, u) => (y(), x("g", {
1840
+ return (a, u) => (y(), O("g", {
1841
1841
  transform: `translate(${e.x}, ${e.y})`
1842
1842
  }, [
1843
- C("g", { transform: t.value }, [
1843
+ R("g", { transform: t.value }, [
1844
1844
  M(a.$slots, "before", {}, void 0, !0)
1845
1845
  ], 8, La),
1846
- C("text", {
1846
+ R("text", {
1847
1847
  ref_key: "textRef",
1848
1848
  ref: n,
1849
1849
  class: "lume-alluvial-group__node-header lume-typography--caption"
1850
1850
  }, [
1851
1851
  M(a.$slots, "default", {}, void 0, !0)
1852
1852
  ], 512),
1853
- C("g", { transform: o.value }, [
1853
+ R("g", { transform: o.value }, [
1854
1854
  M(a.$slots, "after", {}, void 0, !0)
1855
- ], 8, Oa)
1855
+ ], 8, $a)
1856
1856
  ], 8, Ta));
1857
1857
  }
1858
1858
  });
1859
- const xa = /* @__PURE__ */ ee($a, [["__scopeId", "data-v-0e483453"]]);
1859
+ const Oa = /* @__PURE__ */ ee(xa, [["__scopeId", "data-v-0e483453"]]);
1860
1860
  function Mt(e, n) {
1861
1861
  return {
1862
1862
  x0: 0 + (n ? n.left : 0),
@@ -1866,13 +1866,13 @@ function Mt(e, n) {
1866
1866
  };
1867
1867
  }
1868
1868
  function Ia(e) {
1869
- const n = R(Mt(e));
1869
+ const n = G(Mt(e));
1870
1870
  function t(o) {
1871
1871
  n.value = Mt(e, o);
1872
1872
  }
1873
1873
  return { extents: n, updateExtents: t };
1874
1874
  }
1875
- var Ve = /* @__PURE__ */ ((e) => (e.GraphProblem = "There was an issue generating your alluvial graph.", e.BarScaleDomainAbove0 = "Bar linear scale domain cannot start above 0!", e.BarScaleNull = "Bar linear scale cannot be `null`", e))(Ve || {});
1875
+ var Ce = /* @__PURE__ */ ((e) => (e.GraphProblem = "There was an issue generating your alluvial graph.", e.BarScaleDomainAbove0 = "Bar linear scale domain cannot start above 0!", e.BarScaleNull = "Bar linear scale cannot be `null`", e))(Ce || {});
1876
1876
  const wa = "[lume] ";
1877
1877
  function lt(e, n, t = !0) {
1878
1878
  t && Pt() || console.error(wa + "Error: " + e, n);
@@ -1930,16 +1930,16 @@ function Ma(e) {
1930
1930
  function Sa(e) {
1931
1931
  return [e.target.x0, e.y1];
1932
1932
  }
1933
- function Ra(e) {
1933
+ function Ga(e) {
1934
1934
  return e.curveFunction ? hn(e.curveFunction).source(Ma).target(Sa) : kn();
1935
1935
  }
1936
- function Ca(e) {
1936
+ function Ra(e) {
1937
1937
  return e.map((n) => {
1938
1938
  var t;
1939
1939
  return {
1940
1940
  id: n.id,
1941
- color: n.color || ((t = n.source) == null ? void 0 : t.color) || Ce,
1942
- d: Ra(n)(n),
1941
+ color: n.color || ((t = n.source) == null ? void 0 : t.color) || Re,
1942
+ d: Ga(n)(n),
1943
1943
  strokeWidth: Math.max(1, n.width),
1944
1944
  link: n
1945
1945
  };
@@ -1962,21 +1962,21 @@ function St(e, n, t, o, a) {
1962
1962
  };
1963
1963
  requestAnimationFrame(i);
1964
1964
  }
1965
- const Ga = {
1965
+ const ja = {
1966
1966
  nodes: [],
1967
1967
  links: []
1968
1968
  };
1969
- function Rt(e, n) {
1969
+ function Gt(e, n) {
1970
1970
  return n.find((t) => t.every((o) => o.x0 === e.x0));
1971
1971
  }
1972
- function ja(e, n, t) {
1973
- const o = R(null), a = v(() => {
1972
+ function Va(e, n, t) {
1973
+ const o = G(null), a = v(() => {
1974
1974
  var r, m;
1975
1975
  return (m = (r = e.value) == null ? void 0 : r[0]) == null ? void 0 : m.values.map(
1976
1976
  ({ label: g, color: p, value: b, deriveColorFromIncomingLinks: L, offset: A }) => ({
1977
1977
  label: g || b.toString(),
1978
1978
  color: p,
1979
- fallbackColor: p || Ce,
1979
+ fallbackColor: p || Re,
1980
1980
  id: b,
1981
1981
  deriveColorFromIncomingLinks: L,
1982
1982
  offset: A
@@ -2005,14 +2005,14 @@ function ja(e, n, t) {
2005
2005
  var r;
2006
2006
  return (r = o.value) == null ? void 0 : r.nodes.reduce(
2007
2007
  (m, g) => {
2008
- const p = Rt(g, m);
2008
+ const p = Gt(g, m);
2009
2009
  return p ? (p.push(g), p.sort((b, L) => (b._y0 || b.y0) - (L._y0 || L.y0))) : m.push([g]), m;
2010
2010
  },
2011
2011
  []
2012
2012
  );
2013
2013
  });
2014
2014
  function c(r) {
2015
- const { offset: m } = r, g = Rt(r, i.value);
2015
+ const { offset: m } = r, g = Gt(r, i.value);
2016
2016
  if (!g)
2017
2017
  return;
2018
2018
  const p = g[g.findIndex((L) => L.id === r.id) - 1], b = p && g.length !== 1 ? p.y1 + m : m;
@@ -2020,11 +2020,11 @@ function ja(e, n, t) {
2020
2020
  }
2021
2021
  function s(r, m) {
2022
2022
  const { id: g, _y0: p, y0: b } = r, L = m.links.filter(
2023
- ($) => $.source.id === g
2023
+ (x) => x.source.id === g
2024
2024
  ), A = m.links.filter(
2025
- ($) => $.target.id === g
2025
+ (x) => x.target.id === g
2026
2026
  ), h = b - p;
2027
- L.forEach(($) => $.y0 += h), A.forEach(($) => $.y1 += h);
2027
+ L.forEach((x) => x.y0 += h), A.forEach((x) => x.y1 += h);
2028
2028
  }
2029
2029
  const f = v(() => {
2030
2030
  var r;
@@ -2040,7 +2040,7 @@ function ja(e, n, t) {
2040
2040
  [g, p]
2041
2041
  ])({ nodes: a.value, links: u.value });
2042
2042
  } catch (r) {
2043
- lt(Ve.GraphProblem, r), o.value = Ga;
2043
+ lt(Ce.GraphProblem, r), o.value = ja;
2044
2044
  }
2045
2045
  }), { columns: i, graph: f };
2046
2046
  }
@@ -2060,7 +2060,7 @@ function rt(e, n) {
2060
2060
  );
2061
2061
  }), n;
2062
2062
  }
2063
- function Va(e, n) {
2063
+ function Ca(e, n) {
2064
2064
  return n.links.reduce((t, o) => (o.source.id in e && o.target.id in e && t.push(o.id), t), []);
2065
2065
  }
2066
2066
  const Pa = (e, n) => {
@@ -2075,7 +2075,7 @@ const Pa = (e, n) => {
2075
2075
  ...ut(e.source),
2076
2076
  ...rt(e.target)
2077
2077
  };
2078
- const o = Va(t, n);
2078
+ const o = Ca(t, n);
2079
2079
  return { nodes: t, links: o };
2080
2080
  }, Fa = (e) => {
2081
2081
  if (nn(e)) {
@@ -2097,7 +2097,7 @@ const Pa = (e, n) => {
2097
2097
  };
2098
2098
  };
2099
2099
  function za(e, n, t) {
2100
- const o = R(null), a = v(() => o.value ? typeof n.value.highlightedElements == "function" ? n.value.highlightedElements(
2100
+ const o = G(null), a = v(() => o.value ? typeof n.value.highlightedElements == "function" ? n.value.highlightedElements(
2101
2101
  o.value,
2102
2102
  t.value
2103
2103
  ) : n.value.highlightedElements === "closest" ? Fa(o.value, t.value) : Pa(o.value, t.value) : { nodes: {}, links: [] });
@@ -2138,15 +2138,15 @@ const Wa = {
2138
2138
  },
2139
2139
  emits: ["node-click", "node-mouseenter", "node-mouseleave", "link-click", "link-mouseenter", "link-mouseleave"],
2140
2140
  setup(e, { emit: n }) {
2141
- const t = e, o = n, a = Pe("chartID"), { data: u, options: l } = te(t), i = R([]), c = R([]), s = R(null), { extents: f, updateExtents: r } = Ia(t.containerSize), { columns: m, graph: g } = ja(u, l, f), { hoveredElement: p, highlightedElements: b } = za(
2141
+ const t = e, o = n, a = Pe("chartID"), { data: u, options: l } = te(t), i = G([]), c = G([]), s = G(null), { extents: f, updateExtents: r } = Ia(t.containerSize), { columns: m, graph: g } = Va(u, l, f), { hoveredElement: p, highlightedElements: b } = za(
2142
2142
  i,
2143
2143
  l,
2144
2144
  g
2145
- ), L = v(() => je(l.value.valueFormat)), A = v(
2145
+ ), L = v(() => Ve(l.value.valueFormat)), A = v(
2146
2146
  () => Object.keys(b.value.nodes)
2147
2147
  ), h = v(() => m.value ? m.value.map(
2148
2148
  (k) => k[0].x0 + l.value.nodeWidth / 2
2149
- ) : []), $ = v(() => {
2149
+ ) : []), x = v(() => {
2150
2150
  if (!(!l.value.nodeHeaders || !l.value.nodeHeaders.length))
2151
2151
  return l.value.nodeHeaders.slice(0, h.value.length).map((k, E) => ({
2152
2152
  label: k,
@@ -2157,12 +2157,12 @@ const Wa = {
2157
2157
  ), D = v(() => {
2158
2158
  if (!(!l.value.gradient || !g.value))
2159
2159
  return g.value.links.reduce((k, E) => {
2160
- const { source: _, target: j } = E, J = _.color || _.fallbackColor, le = j.deriveColorFromIncomingLinks ? J : j.color || j.fallbackColor;
2160
+ const { source: _, target: V } = E, J = _.color || _.fallbackColor, le = V.deriveColorFromIncomingLinks ? J : V.color || V.fallbackColor;
2161
2161
  return k[E.id] = {
2162
2162
  source: J,
2163
2163
  target: le,
2164
2164
  x1: _.x1,
2165
- x2: j.x0
2165
+ x2: V.x0
2166
2166
  }, k;
2167
2167
  }, {});
2168
2168
  }), P = v(() => {
@@ -2170,21 +2170,21 @@ const Wa = {
2170
2170
  (_) => F(_)
2171
2171
  ), E = [];
2172
2172
  return k.forEach((_) => {
2173
- const j = [];
2173
+ const V = [];
2174
2174
  c.value.filter(({ link: J }) => J.target.id === _.node.id).reverse().reduce((J, le, De, Ze) => {
2175
2175
  const Ue = le.link.target.y1 - le.link.target.y0 > we;
2176
- let $e, He, xe;
2177
- return Ue ? ($e = le.link.target.y1 - le.link.target.y0, He = le.link.value / _.node.value, xe = He * $e) : ($e = we, xe = we / Ze.length), j.push({
2176
+ let xe, He, Oe;
2177
+ return Ue ? (xe = le.link.target.y1 - le.link.target.y0, He = le.link.value / _.node.value, Oe = He * xe) : (xe = we, Oe = we / Ze.length), V.push({
2178
2178
  x: _.x,
2179
2179
  y: _.y + J,
2180
- height: xe,
2180
+ height: Oe,
2181
2181
  width: _.width,
2182
2182
  key: `node-block-${_.node.id}-source-link-${le.link.source.id}`,
2183
- class: `lume-alluvial-group__node-block lume-fill--${le.link.source.color || Ce}`
2184
- }), J + xe;
2183
+ class: `lume-alluvial-group__node-block lume-fill--${le.link.source.color || Re}`
2184
+ }), J + Oe;
2185
2185
  }, 0), E.push({
2186
2186
  id: _.node.id,
2187
- subNodes: j
2187
+ subNodes: V
2188
2188
  });
2189
2189
  }), E;
2190
2190
  });
@@ -2225,7 +2225,7 @@ const Wa = {
2225
2225
  }
2226
2226
  p.value = E;
2227
2227
  }
2228
- function Oe(k) {
2228
+ function $e(k) {
2229
2229
  var E;
2230
2230
  return ((E = P.value.find(({ id: _ }) => k === _)) == null ? void 0 : E.subNodes) ?? [];
2231
2231
  }
@@ -2234,50 +2234,50 @@ const Wa = {
2234
2234
  r(k);
2235
2235
  }
2236
2236
  return U(g, (k) => {
2237
- i.value = Ba(k.nodes), c.value = Ca(k.links).reverse(), p.value == null && t.hoveredElementId != null && ke(t.hoveredElementId);
2237
+ i.value = Ba(k.nodes), c.value = Ra(k.links).reverse(), p.value == null && t.hoveredElementId != null && ke(t.hoveredElementId);
2238
2238
  }), U([t.containerSize, s], () => {
2239
2239
  t.containerSize.width && t.containerSize.height && S();
2240
- }), U(() => t.hoveredElementId, ke), (k, E) => (y(), x("g", Wa, [
2241
- $.value ? (y(), x("g", Za, [
2242
- (y(!0), x(q, null, z($.value, (_, j) => M(k.$slots, `node-header-${j}`, {
2240
+ }), U(() => t.hoveredElementId, ke), (k, E) => (y(), O("g", Wa, [
2241
+ x.value ? (y(), O("g", Za, [
2242
+ (y(!0), O(q, null, z(x.value, (_, V) => M(k.$slots, `node-header-${V}`, {
2243
2243
  x: _.x,
2244
2244
  y: -N.value
2245
2245
  }, () => [
2246
- (y(), X(d(xa), {
2246
+ (y(), X(d(Oa), {
2247
2247
  key: `header_${_.x}`,
2248
2248
  x: _.x,
2249
2249
  y: -N.value
2250
2250
  }, {
2251
- default: V(() => [
2251
+ default: C(() => [
2252
2252
  ce(oe(_.label), 1)
2253
2253
  ]),
2254
2254
  _: 2
2255
2255
  }, 1032, ["x", "y"]))
2256
2256
  ], !0)), 256))
2257
2257
  ])) : Z("", !0),
2258
- C("g", {
2258
+ R("g", {
2259
2259
  class: "lume-alluvial-link-group",
2260
2260
  onMouseleave: Le
2261
2261
  }, [
2262
- d(l).gradient ? (y(), x("defs", Ua, [
2263
- (y(!0), x(q, null, z(D.value, (_, j) => (y(), x("linearGradient", {
2264
- id: `${d(a)}_${j}`,
2265
- key: j,
2262
+ d(l).gradient ? (y(), O("defs", Ua, [
2263
+ (y(!0), O(q, null, z(D.value, (_, V) => (y(), O("linearGradient", {
2264
+ id: `${d(a)}_${V}`,
2265
+ key: V,
2266
2266
  gradientUnits: "userSpaceOnUse",
2267
2267
  x1: _.x1,
2268
2268
  x2: _.x2
2269
2269
  }, [
2270
- C("stop", {
2270
+ R("stop", {
2271
2271
  offset: "0%",
2272
2272
  "stop-color": `var(--lume-color--${_.source})`
2273
2273
  }, null, 8, Ya),
2274
- C("stop", {
2274
+ R("stop", {
2275
2275
  offset: "100%",
2276
2276
  "stop-color": `var(--lume-color--${_.target})`
2277
2277
  }, null, 8, Ka)
2278
2278
  ], 8, Xa))), 128))
2279
2279
  ])) : Z("", !0),
2280
- (y(!0), x(q, null, z(c.value, (_) => (y(), x("path", {
2280
+ (y(!0), O(q, null, z(c.value, (_) => (y(), O("path", {
2281
2281
  key: `link-ghost_${_.id}`,
2282
2282
  class: ne(["lume-alluvial-group__link", [
2283
2283
  "lume-stroke--transparent",
@@ -2286,10 +2286,10 @@ const Wa = {
2286
2286
  d: _.d,
2287
2287
  "stroke-width": _.strokeWidth + d(ma),
2288
2288
  "data-j-alluvial-ghost": "",
2289
- onClick: (j) => o("link-click", { link: _.link, event: j }),
2290
- onMouseover: (j) => ue(_.link, j)
2289
+ onClick: (V) => o("link-click", { link: _.link, event: V }),
2290
+ onMouseover: (V) => ue(_.link, V)
2291
2291
  }, null, 40, Ja))), 128)),
2292
- (y(!0), x(q, null, z(c.value, (_) => (y(), x("path", {
2292
+ (y(!0), O(q, null, z(c.value, (_) => (y(), O("path", {
2293
2293
  key: `link_${_.id}`,
2294
2294
  class: ne(["lume-alluvial-group__link", {
2295
2295
  [`lume-stroke--${_.color}`]: !d(l).gradient && _.color,
@@ -2303,31 +2303,31 @@ const Wa = {
2303
2303
  "stroke-width": _.strokeWidth,
2304
2304
  "data-j-alluvial-path": "",
2305
2305
  "data-id": _.id,
2306
- onClick: (j) => o("link-click", { link: _.link, event: j }),
2307
- onMouseover: (j) => ue(_.link, j)
2306
+ onClick: (V) => o("link-click", { link: _.link, event: V }),
2307
+ onMouseover: (V) => ue(_.link, V)
2308
2308
  }, null, 42, Qa))), 128))
2309
2309
  ], 32),
2310
- (y(!0), x(q, null, z(i.value, (_, j) => (y(), x("g", {
2311
- key: `node-block_${j}`,
2310
+ (y(!0), O(q, null, z(i.value, (_, V) => (y(), O("g", {
2311
+ key: `node-block_${V}`,
2312
2312
  class: ne(["lume-alluvial-group__node", {
2313
2313
  "lume-alluvial-group__node--faded": H(_.node.id),
2314
2314
  "lume-alluvial-group__node--focused": Y(_.node.id)
2315
2315
  }]),
2316
2316
  "data-j-alluvial-group__node-block": ""
2317
2317
  }, [
2318
- C("g", {
2318
+ R("g", {
2319
2319
  onClick: (J) => o("node-click", { node: _.node, event: J }),
2320
2320
  onMouseenter: (J) => o("node-mouseenter", { node: _.node, event: J }),
2321
2321
  onMouseleave: (J) => o("node-mouseleave", { node: _.node, event: J }),
2322
2322
  onMouseover: (J) => p.value = _.node,
2323
2323
  onMouseout: E[0] || (E[0] = (J) => p.value = null)
2324
2324
  }, [
2325
- F(_) ? (y(!0), x(q, { key: 0 }, z(Oe(
2325
+ F(_) ? (y(!0), O(q, { key: 0 }, z($e(
2326
2326
  _.node.id
2327
- ), (J) => (y(), x("rect", G(J, {
2327
+ ), (J) => (y(), O("rect", j(J, {
2328
2328
  key: J.key,
2329
2329
  "data-j-alluvial-sub-nodes": ""
2330
- }), null, 16))), 128)) : (y(), x("rect", {
2330
+ }), null, 16))), 128)) : (y(), O("rect", {
2331
2331
  key: 1,
2332
2332
  class: ne(["lume-alluvial-group__node-block", `lume-fill--${_.node.color || _.node.fallbackColor}`]),
2333
2333
  x: _.x,
@@ -2335,7 +2335,7 @@ const Wa = {
2335
2335
  height: _.height,
2336
2336
  width: _.width
2337
2337
  }, null, 10, el)),
2338
- C("g", {
2338
+ R("g", {
2339
2339
  ref_for: !0,
2340
2340
  ref_key: "nodeTextRefs",
2341
2341
  ref: s,
@@ -2359,7 +2359,7 @@ const Wa = {
2359
2359
  "max-width": d(l).nodeLabelMaxWidth,
2360
2360
  "onLume__internal-NodeResize": S
2361
2361
  }, {
2362
- default: V(() => [
2362
+ default: C(() => [
2363
2363
  ce(oe(_.node.label), 1)
2364
2364
  ]),
2365
2365
  _: 2
@@ -2367,7 +2367,7 @@ const Wa = {
2367
2367
  ie(d(Aa), {
2368
2368
  bottom: !d(l).switchText
2369
2369
  }, {
2370
- default: V(() => [
2370
+ default: C(() => [
2371
2371
  ce(oe(L.value(
2372
2372
  _.node.transitionValue || _.node.value,
2373
2373
  _.node.value
@@ -2415,15 +2415,15 @@ const ol = /* @__PURE__ */ ee(nl, [["__scopeId", "data-v-02af69f2"]]), al = {
2415
2415
  // Alluvial chart never uses base scales
2416
2416
  };
2417
2417
  }
2418
- return (s, f) => (y(), X(d(Ne), G({ ...t, ...s.$attrs }, {
2418
+ return (s, f) => (y(), X(d(Ne), j({ ...t, ...s.$attrs }, {
2419
2419
  options: c(d(i)),
2420
2420
  "data-j-alluvial-diagram": ""
2421
2421
  }, ae(d(o))), de({
2422
- groups: V((r) => [
2423
- ie(d(ol), G(r, { "hovered-element-id": s.hoveredElement }, ae(d(o))), de({ _: 2 }, [
2422
+ groups: C((r) => [
2423
+ ie(d(ol), j(r, { "hovered-element-id": s.hoveredElement }, ae(d(o))), de({ _: 2 }, [
2424
2424
  z(d(u), (m, g) => ({
2425
2425
  name: g,
2426
- fn: V((p) => [
2426
+ fn: C((p) => [
2427
2427
  M(s.$slots, g, pe(he(p || {})))
2428
2428
  ])
2429
2429
  }))
@@ -2433,7 +2433,7 @@ const ol = /* @__PURE__ */ ee(nl, [["__scopeId", "data-v-02af69f2"]]), al = {
2433
2433
  }, [
2434
2434
  z(d(a), (r, m) => ({
2435
2435
  name: m,
2436
- fn: V((g) => [
2436
+ fn: C((g) => [
2437
2437
  M(s.$slots, m, pe(he(g || {})))
2438
2438
  ])
2439
2439
  }))
@@ -2481,12 +2481,12 @@ const Xl = /* @__PURE__ */ W({
2481
2481
  throw new Error("Bar chart needs a type when there's multiple datasets.");
2482
2482
  return u.get(l.type);
2483
2483
  });
2484
- return (r, m) => (y(), X(mn(f.value), G({ ...l, ...r.$attrs }, {
2484
+ return (r, m) => (y(), X(mn(f.value), j({ ...l, ...r.$attrs }, {
2485
2485
  options: s(r.options)
2486
2486
  }, ae(d(i))), de({ _: 2 }, [
2487
2487
  z(d(c), (g, p) => ({
2488
2488
  name: p,
2489
- fn: V((b) => [
2489
+ fn: C((b) => [
2490
2490
  M(r.$slots, p, pe(he(b || {})))
2491
2491
  ])
2492
2492
  }))
@@ -2494,7 +2494,7 @@ const Xl = /* @__PURE__ */ W({
2494
2494
  }
2495
2495
  });
2496
2496
  function ll(e) {
2497
- return Object.values(Gn).includes(e) || e == null;
2497
+ return Object.values(jn).includes(e) || e == null;
2498
2498
  }
2499
2499
  function ul(e) {
2500
2500
  return Object.values(B).includes(e);
@@ -2542,7 +2542,7 @@ function sl(e, n, t) {
2542
2542
  () => t.value === B.HORIZONTAL
2543
2543
  );
2544
2544
  function a(i) {
2545
- i || lt(Ve.BarScaleNull), Math.min(...i.domain()) > 0 && lt(Ve.BarScaleDomainAbove0);
2545
+ i || lt(Ce.BarScaleNull), Math.min(...i.domain()) > 0 && lt(Ce.BarScaleDomainAbove0);
2546
2546
  }
2547
2547
  const u = v(() => o.value ? (() => (a(e.value), e.value))() : e.value), l = v(() => o.value ? n.value : (() => (a(n.value), n.value))());
2548
2548
  return { barXScale: u, barYScale: l };
@@ -2570,11 +2570,11 @@ function dl(e, n, t, o, a, u) {
2570
2570
  function f(r, m, g) {
2571
2571
  if (!(n.value && t.value))
2572
2572
  return cl;
2573
- const { value: b, color: L } = r, A = L ?? e.value[m].color ?? Ce, { x: h, y: $ } = i(b, g), N = c(b), D = s(b);
2573
+ const { value: b, color: L } = r, A = L ?? e.value[m].color ?? Re, { x: h, y: x } = i(b, g), N = c(b), D = s(b);
2574
2574
  return {
2575
2575
  classList: [`lume-fill--${A}`, ...u],
2576
2576
  x: h,
2577
- y: $,
2577
+ y: x,
2578
2578
  width: N,
2579
2579
  height: D,
2580
2580
  isFaded: a.value !== -1 && a.value !== g,
@@ -2615,7 +2615,7 @@ function ml(e, n, t, o, a, u) {
2615
2615
  function g(p, b, L) {
2616
2616
  if (!(n.value && t.value))
2617
2617
  return vl;
2618
- const { value: h, color: $ } = p, N = $ ?? e.value[b].color ?? Object.values(se)[b], D = s(h, L, b), P = f(h, L, b), w = r(h), H = m(h);
2618
+ const { value: h, color: x } = p, N = x ?? e.value[b].color ?? Object.values(se)[b], D = s(h, L, b), P = f(h, L, b), w = r(h), H = m(h);
2619
2619
  return {
2620
2620
  classList: [`lume-fill--${N}`, ...u],
2621
2621
  x: D,
@@ -2675,9 +2675,9 @@ function pl(e, n, t, o, a, u) {
2675
2675
  ), c = v(
2676
2676
  () => e.value.map((A) => A.values.map((h) => h == null ? void 0 : h.value))
2677
2677
  );
2678
- function s(A, h, $) {
2678
+ function s(A, h, x) {
2679
2679
  let N, D;
2680
- return l.value ? (N = n.value(A >= 0 ? 0 + $ : A + $), D = t.value(i.value[h])) : (N = n.value(i.value[h]), D = t.value(A >= 0 ? A + $ : 0 + $)), { x: N, y: D };
2680
+ return l.value ? (N = n.value(A >= 0 ? 0 + x : A + x), D = t.value(i.value[h])) : (N = n.value(i.value[h]), D = t.value(A >= 0 ? A + x : 0 + x)), { x: N, y: D };
2681
2681
  }
2682
2682
  function f(A) {
2683
2683
  return l.value ? n.value(A) - n.value(0) : n.value.bandwidth();
@@ -2692,20 +2692,20 @@ function pl(e, n, t, o, a, u) {
2692
2692
  return l.value ? t.value.bandwidth() : t.value(A) - t.value(0);
2693
2693
  }
2694
2694
  function p(A, h) {
2695
- return A ? c.value.reduce(($, N, D) => (D < A && N[h] >= 0 && ($ += N[h]), $), 0) : 0;
2695
+ return A ? c.value.reduce((x, N, D) => (D < A && N[h] >= 0 && (x += N[h]), x), 0) : 0;
2696
2696
  }
2697
2697
  function b(A, h) {
2698
- return A ? c.value.reduce(($, N, D) => (D < A && N[h] < 0 && ($ += N[h]), $), 0) : 0;
2698
+ return A ? c.value.reduce((x, N, D) => (D < A && N[h] < 0 && (x += N[h]), x), 0) : 0;
2699
2699
  }
2700
- function L(A, h, $) {
2701
- const { value: N, color: D } = A, P = N >= 0 ? f(N) : r(N), w = N >= 0 ? m(N) : g(N), H = N >= 0 ? p(h, $) : b(h, $), { x: Y, y: K } = s(N, $, H);
2700
+ function L(A, h, x) {
2701
+ const { value: N, color: D } = A, P = N >= 0 ? f(N) : r(N), w = N >= 0 ? m(N) : g(N), H = N >= 0 ? p(h, x) : b(h, x), { x: Y, y: K } = s(N, x, H);
2702
2702
  return {
2703
2703
  classList: [`lume-fill--${D ?? e.value[h].color ?? Object.values(se)[h]}`, ...u],
2704
2704
  width: P,
2705
2705
  height: w,
2706
2706
  x: Y,
2707
2707
  y: K,
2708
- isFaded: a.value !== -1 && a.value !== $,
2708
+ isFaded: a.value !== -1 && a.value !== x,
2709
2709
  isNegative: N < 0
2710
2710
  };
2711
2711
  }
@@ -2756,21 +2756,21 @@ const hl = {
2756
2756
  A.value
2757
2757
  );
2758
2758
  return P;
2759
- }), $ = v(() => {
2759
+ }), x = v(() => {
2760
2760
  if (i.value)
2761
2761
  return l.value === B.HORIZONTAL ? "width" : "height";
2762
2762
  });
2763
2763
  async function N(D) {
2764
2764
  o("lume__internal--hover", D), g("lume__internal--hover", D);
2765
2765
  }
2766
- return (D, P) => (y(), x("g", hl, [
2767
- (y(!0), x(q, null, z(d(p), (w, H) => (y(), x("g", {
2766
+ return (D, P) => (y(), O("g", hl, [
2767
+ (y(!0), O(q, null, z(d(p), (w, H) => (y(), O("g", {
2768
2768
  key: H,
2769
2769
  onMouseenter: (Y) => N(H)
2770
2770
  }, [
2771
- (y(!0), x(q, null, z(w, (Y, K) => (y(), X(d(mt), G(h.value(Y, K, H, w), {
2771
+ (y(!0), O(q, null, z(w, (Y, K) => (y(), X(d(mt), j(h.value(Y, K, H, w), {
2772
2772
  key: `bar-${K}`,
2773
- transition: $.value,
2773
+ transition: x.value,
2774
2774
  "data-j-lume-bar": "",
2775
2775
  onClick: (Q) => o("bar-click", {
2776
2776
  index: H,
@@ -2804,19 +2804,19 @@ const hl = {
2804
2804
  () => yl[u.value || B.VERTICAL]
2805
2805
  // needs to be computed so that default options are reactive
2806
2806
  ), { allOptions: c } = fe(l, i);
2807
- return (s, f) => (y(), X(d(Ne), G({ ...t, ...s.$attrs }, {
2807
+ return (s, f) => (y(), X(d(Ne), j({ ...t, ...s.$attrs }, {
2808
2808
  "chart-type": "single-bar",
2809
2809
  options: d(c),
2810
2810
  "data-j-single-bar-chart": ""
2811
2811
  }, ae(d(o))), de({
2812
- groups: V((r) => [
2813
- ie(d(ht), G(r, { orientation: d(u) }, ae(d(o))), null, 16, ["orientation"])
2812
+ groups: C((r) => [
2813
+ ie(d(ht), j(r, { orientation: d(u) }, ae(d(o))), null, 16, ["orientation"])
2814
2814
  ]),
2815
2815
  _: 2
2816
2816
  }, [
2817
2817
  z(d(a), (r, m) => ({
2818
2818
  name: m,
2819
- fn: V((g) => [
2819
+ fn: C((g) => [
2820
2820
  M(s.$slots, m, pe(he(g || {})))
2821
2821
  ])
2822
2822
  }))
@@ -2849,19 +2849,19 @@ const hl = {
2849
2849
  l,
2850
2850
  i
2851
2851
  );
2852
- return (s, f) => (y(), X(d(Ne), G({ ...t, ...s.$attrs }, {
2852
+ return (s, f) => (y(), X(d(Ne), j({ ...t, ...s.$attrs }, {
2853
2853
  "chart-type": "grouped-bar",
2854
2854
  options: d(c),
2855
2855
  "data-j-grouped-bar-chart": ""
2856
2856
  }, ae(d(o))), de({
2857
- groups: V((r) => [
2858
- ie(d(ht), G(r, { type: "grouped" }, ae(d(o))), null, 16)
2857
+ groups: C((r) => [
2858
+ ie(d(ht), j(r, { type: "grouped" }, ae(d(o))), null, 16)
2859
2859
  ]),
2860
2860
  _: 2
2861
2861
  }, [
2862
2862
  z(d(a), (r, m) => ({
2863
2863
  name: m,
2864
- fn: V((g) => [
2864
+ fn: C((g) => [
2865
2865
  M(s.$slots, m, pe(he(g || {})))
2866
2866
  ])
2867
2867
  }))
@@ -2899,21 +2899,21 @@ const hl = {
2899
2899
  l,
2900
2900
  i
2901
2901
  ), b = v(() => t.xScale || g), L = v(() => t.yScale || p);
2902
- return (A, h) => (y(), X(d(Ne), G({ ...t, ...A.$attrs }, {
2902
+ return (A, h) => (y(), X(d(Ne), j({ ...t, ...A.$attrs }, {
2903
2903
  "chart-type": "stacked-bar",
2904
2904
  options: d(f),
2905
2905
  "x-scale": b.value,
2906
2906
  "y-scale": L.value,
2907
2907
  "data-j-stacked-bar-chart": ""
2908
2908
  }, ae(d(o))), de({
2909
- groups: V(($) => [
2910
- ie(d(ht), G($, { type: "stacked" }, ae(d(o))), null, 16)
2909
+ groups: C((x) => [
2910
+ ie(d(ht), j(x, { type: "stacked" }, ae(d(o))), null, 16)
2911
2911
  ]),
2912
2912
  _: 2
2913
2913
  }, [
2914
- z(d(a), ($, N) => ({
2914
+ z(d(a), (x, N) => ({
2915
2915
  name: N,
2916
- fn: V((D) => [
2916
+ fn: C((D) => [
2917
2917
  M(A.$slots, N, pe(he(D || {})))
2918
2918
  ])
2919
2919
  }))
@@ -2953,8 +2953,8 @@ const hl = {
2953
2953
  },
2954
2954
  emits: ["click"],
2955
2955
  setup(e, { emit: n }) {
2956
- const t = n, o = R(null);
2957
- return _e(() => ze(o.value)), (a, u) => (y(), x("path", {
2956
+ const t = n, o = G(null);
2957
+ return _e(() => ze(o.value)), (a, u) => (y(), O("path", {
2958
2958
  ref_key: "root",
2959
2959
  ref: o,
2960
2960
  class: ne(["lume-line", {
@@ -2964,7 +2964,7 @@ const hl = {
2964
2964
  }]),
2965
2965
  d: e.pathDefinition,
2966
2966
  "stroke-width": e.width,
2967
- style: Gt({
2967
+ style: jt({
2968
2968
  animationDelay: e.transition && e.animationDelay + "s",
2969
2969
  animationDuration: e.transition && e.animationDuration + "s"
2970
2970
  }),
@@ -2973,7 +2973,7 @@ const hl = {
2973
2973
  }, null, 14, Al));
2974
2974
  }
2975
2975
  });
2976
- const Ol = /* @__PURE__ */ ee(Ll, [["__scopeId", "data-v-08896455"]]), $l = ["cx", "cy", "r", "stroke-width"], xl = 4, Il = /* @__PURE__ */ W({
2976
+ const $l = /* @__PURE__ */ ee(Ll, [["__scopeId", "data-v-08896455"]]), xl = ["cx", "cy", "r", "stroke-width"], Ol = 4, Il = /* @__PURE__ */ W({
2977
2977
  __name: "lume-point",
2978
2978
  props: {
2979
2979
  x: { type: Number, required: !0 },
@@ -2984,7 +2984,7 @@ const Ol = /* @__PURE__ */ ee(Ll, [["__scopeId", "data-v-08896455"]]), $l = ["cx
2984
2984
  },
2985
2985
  radius: {
2986
2986
  type: Number,
2987
- default: xl
2987
+ default: Ol
2988
2988
  },
2989
2989
  active: {
2990
2990
  type: Boolean,
@@ -2993,8 +2993,8 @@ const Ol = /* @__PURE__ */ ee(Ll, [["__scopeId", "data-v-08896455"]]), $l = ["cx
2993
2993
  },
2994
2994
  emits: ["click"],
2995
2995
  setup(e, { emit: n }) {
2996
- const t = e, o = n, a = R(null), u = v(() => t.radius / 2);
2997
- return _e(() => ze(a.value)), (l, i) => (y(), x("circle", {
2996
+ const t = e, o = n, a = G(null), u = v(() => t.radius / 2);
2997
+ return _e(() => ze(a.value)), (l, i) => (y(), O("circle", {
2998
2998
  ref_key: "root",
2999
2999
  ref: a,
3000
3000
  class: ne(["lume-point", `lume-stroke--${e.color}`]),
@@ -3004,7 +3004,7 @@ const Ol = /* @__PURE__ */ ee(Ll, [["__scopeId", "data-v-08896455"]]), $l = ["cx
3004
3004
  "stroke-width": u.value,
3005
3005
  "data-j-point": "",
3006
3006
  onClick: i[0] || (i[0] = (c) => o("click", c))
3007
- }, null, 10, $l));
3007
+ }, null, 10, xl));
3008
3008
  }
3009
3009
  });
3010
3010
  const wl = /* @__PURE__ */ ee(Il, [["__scopeId", "data-v-b6745177"]]);
@@ -3072,7 +3072,7 @@ const Hl = {
3072
3072
  key: 0,
3073
3073
  class: "lume-line-group__points",
3074
3074
  "data-j-lume-line-group__points": ""
3075
- }, Sl = 1, Rl = /* @__PURE__ */ W({
3075
+ }, Sl = 1, Gl = /* @__PURE__ */ W({
3076
3076
  __name: "lume-line-group",
3077
3077
  props: {
3078
3078
  ...We(),
@@ -3130,7 +3130,7 @@ const Hl = {
3130
3130
  function h(w) {
3131
3131
  return r.value[w].values;
3132
3132
  }
3133
- function $(w, H) {
3133
+ function x(w, H) {
3134
3134
  var K, Q;
3135
3135
  const Y = w === 0 ? [] : [
3136
3136
  (K = h(H)[w - 1]) == null ? void 0 : K.value,
@@ -3160,28 +3160,28 @@ const Hl = {
3160
3160
  function P(w) {
3161
3161
  return t.hoveredIndex === w;
3162
3162
  }
3163
- return (w, H) => (y(), x("g", Hl, [
3164
- C("path", G(m.value, {
3163
+ return (w, H) => (y(), O("g", Hl, [
3164
+ R("path", j(m.value, {
3165
3165
  class: "lume-line-group__overlay-line",
3166
3166
  "data-j-lume-line-group__overlay-line": ""
3167
3167
  }), null, 16),
3168
- (y(!0), x(q, null, z(r.value, (Y, K) => (y(), x("g", {
3168
+ (y(!0), O(q, null, z(r.value, (Y, K) => (y(), O("g", {
3169
3169
  key: Y.label,
3170
3170
  class: "lume-line-group__group"
3171
3171
  }, [
3172
- C("g", Bl, [
3173
- (y(!0), x(q, null, z(Y.values, (Q, F) => (y(), X(d(Ol), G(N(F), {
3172
+ R("g", Bl, [
3173
+ (y(!0), O(q, null, z(Y.values, (Q, F) => (y(), X(d($l), j(N(F), {
3174
3174
  key: `line-${F}`,
3175
3175
  color: Y.color,
3176
3176
  dashed: Y.isDashed(F),
3177
- "path-definition": $(F, K),
3177
+ "path-definition": x(F, K),
3178
3178
  transition: e.transition,
3179
3179
  width: d(u).lineWidth,
3180
3180
  onClick: (ue) => o("line-click", { index: F, datasetIndex: K, event: ue })
3181
3181
  }), null, 16, ["color", "dashed", "path-definition", "transition", "width", "onClick"]))), 128))
3182
3182
  ]),
3183
- A.value ? (y(), x("g", Ml, [
3184
- (y(!0), x(q, null, z(Y.values, (Q, F) => (y(), X(d(wl), G(D(F, K), {
3183
+ A.value ? (y(), O("g", Ml, [
3184
+ (y(!0), O(q, null, z(Y.values, (Q, F) => (y(), X(d(wl), j(D(F, K), {
3185
3185
  key: `point-${F}`,
3186
3186
  active: P(F),
3187
3187
  color: Y.color,
@@ -3194,7 +3194,7 @@ const Hl = {
3194
3194
  ]));
3195
3195
  }
3196
3196
  });
3197
- const un = /* @__PURE__ */ ee(Rl, [["__scopeId", "data-v-44ba7be1"]]), Cl = {
3197
+ const un = /* @__PURE__ */ ee(Gl, [["__scopeId", "data-v-44ba7be1"]]), Rl = {
3198
3198
  margins: Ae.VERTICAL,
3199
3199
  startOnZero: !0,
3200
3200
  withTooltip: !0,
@@ -3206,27 +3206,27 @@ const un = /* @__PURE__ */ ee(Rl, [["__scopeId", "data-v-44ba7be1"]]), Cl = {
3206
3206
  ...Ee(null, !1)
3207
3207
  },
3208
3208
  setup(e, { emit: n }) {
3209
- const t = e, { componentEventPropagator: o } = ye(), a = Te(re()), { options: u } = te(t), { allOptions: l } = fe(u, Cl);
3210
- return (i, c) => (y(), X(d(Ne), G({ ...t, ...i.$attrs }, {
3209
+ const t = e, { componentEventPropagator: o } = ye(), a = Te(re()), { options: u } = te(t), { allOptions: l } = fe(u, Rl);
3210
+ return (i, c) => (y(), X(d(Ne), j({ ...t, ...i.$attrs }, {
3211
3211
  "chart-type": "line",
3212
3212
  options: d(l),
3213
3213
  "data-j-lume-line-chart": ""
3214
3214
  }, ae(d(o))), de({
3215
- groups: V((s) => [
3216
- ie(d(un), G(s, ae(d(o))), null, 16)
3215
+ groups: C((s) => [
3216
+ ie(d(un), j(s, ae(d(o))), null, 16)
3217
3217
  ]),
3218
3218
  _: 2
3219
3219
  }, [
3220
3220
  z(d(a), (s, f) => ({
3221
3221
  name: f,
3222
- fn: V((r) => [
3222
+ fn: C((r) => [
3223
3223
  M(i.$slots, f, pe(he(r || {})))
3224
3224
  ])
3225
3225
  }))
3226
3226
  ]), 1040, ["options"]));
3227
3227
  }
3228
3228
  });
3229
- function Gl(e) {
3229
+ function jl(e) {
3230
3230
  return { areaPathDefinition: v(
3231
3231
  () => function(t, o) {
3232
3232
  if (!t || !o || ve(t) || ve(o))
@@ -3236,7 +3236,7 @@ function Gl(e) {
3236
3236
  }
3237
3237
  ) };
3238
3238
  }
3239
- const jl = {
3239
+ const Vl = {
3240
3240
  margins: {
3241
3241
  top: 0,
3242
3242
  right: 0,
@@ -3250,14 +3250,14 @@ const jl = {
3250
3250
  tooltipOptions: {
3251
3251
  showTitle: !1
3252
3252
  }
3253
- }, Vl = ["d"], Pl = /* @__PURE__ */ W({
3253
+ }, Cl = ["d"], Pl = /* @__PURE__ */ W({
3254
3254
  __name: "lume-sparkline-chart",
3255
3255
  props: {
3256
3256
  ...ft(null),
3257
3257
  ...Se()
3258
3258
  },
3259
3259
  setup(e, { expose: n, emit: t }) {
3260
- const o = e, { componentEventPropagator: a } = ye(), u = Te(re()), { data: l, options: i } = te(o), { internalData: c } = pt(l), { allOptions: s } = fe(i, jl), { computedLineData: f } = ln(c), { areaPathDefinition: r } = Gl(f), m = v(() => {
3260
+ const o = e, { componentEventPropagator: a } = ye(), u = Te(re()), { data: l, options: i } = te(o), { internalData: c } = pt(l), { allOptions: s } = fe(i, Vl), { computedLineData: f } = ln(c), { areaPathDefinition: r } = jl(f), m = v(() => {
3261
3261
  var L, A;
3262
3262
  return (A = (L = c.value) == null ? void 0 : L[0]) == null ? void 0 : A.color;
3263
3263
  }), g = v(
@@ -3278,13 +3278,13 @@ const jl = {
3278
3278
  }
3279
3279
  return n({
3280
3280
  areaPathDefinition: r
3281
- }), (L, A) => (y(), X(d(Ne), G(o, {
3281
+ }), (L, A) => (y(), X(d(Ne), j(o, {
3282
3282
  "chart-type": "line",
3283
3283
  options: p(d(s)),
3284
3284
  "x-scale": b
3285
3285
  }, ae(d(a))), de({
3286
- groups: V((h) => [
3287
- d(s).showArea ? (y(), x("path", {
3286
+ groups: C((h) => [
3287
+ d(s).showArea ? (y(), O("path", {
3288
3288
  key: 0,
3289
3289
  class: ne([
3290
3290
  "sparkline-chart__area",
@@ -3294,15 +3294,15 @@ const jl = {
3294
3294
  ]),
3295
3295
  d: d(r)(h.xScale, h.yScale),
3296
3296
  "data-j-sparkline__area": ""
3297
- }, null, 10, Vl)) : Z("", !0),
3298
- ie(d(un), G(h, { "with-points": !1 }, ae(d(a))), null, 16)
3297
+ }, null, 10, Cl)) : Z("", !0),
3298
+ ie(d(un), j(h, { "with-points": !1 }, ae(d(a))), null, 16)
3299
3299
  ]),
3300
3300
  _: 2
3301
3301
  }, [
3302
- z(d(u), (h, $) => ({
3303
- name: $,
3304
- fn: V((N) => [
3305
- M(L.$slots, $, pe(he(N || {})), void 0, !0)
3302
+ z(d(u), (h, x) => ({
3303
+ name: x,
3304
+ fn: C((N) => [
3305
+ M(L.$slots, x, pe(he(N || {})), void 0, !0)
3306
3306
  ])
3307
3307
  }))
3308
3308
  ]), 1040, ["options"]));
@@ -3312,7 +3312,7 @@ const ql = /* @__PURE__ */ ee(Pl, [["__scopeId", "data-v-bda226a1"]]);
3312
3312
  export {
3313
3313
  Ul as LumeAlluvialDiagram,
3314
3314
  ol as LumeAlluvialGroup,
3315
- xa as LumeAlluvialNodeHeader,
3315
+ Oa as LumeAlluvialNodeHeader,
3316
3316
  ya as LumeAlluvialNodeLabel,
3317
3317
  Aa as LumeAlluvialNodeValue,
3318
3318
  Lt as LumeAxis,
@@ -3321,9 +3321,9 @@ export {
3321
3321
  ht as LumeBarGroup,
3322
3322
  Ne as LumeChart,
3323
3323
  ro as LumeChartContainer,
3324
- Ot as LumeChartLegend,
3324
+ $t as LumeChartLegend,
3325
3325
  Kl as LumeGroupedBarChart,
3326
- Ol as LumeLine,
3326
+ $l as LumeLine,
3327
3327
  Ql as LumeLineChart,
3328
3328
  un as LumeLineGroup,
3329
3329
  Zo as LumeOverlayGroup,