@adyen/lume 0.3.1 → 0.3.2

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.
@@ -1,7 +1,7 @@
1
- import q, { isRef as Kt, reactive as it, computed as d, ref as L, watch as R, defineComponent as k, toRefs as S, onMounted as H, onBeforeUnmount as Jt, watchEffect as Qt, useSlots as j, defineAsyncComponent as ht } from "vue";
2
- import { sankeyLinkHorizontal as Oe, sankey as xe, sankeyJustify as Le } from "d3-sankey";
3
- import { format as $e, ticks as ke, scaleBand as J, scaleLinear as Q, line as we, area as Se } from "d3";
4
- import { createPopper as Ce } from "@popperjs/core";
1
+ import U, { isRef as Yt, reactive as it, computed as d, ref as L, watch as D, defineComponent as $, toRefs as I, onMounted as B, onBeforeUnmount as Kt, watchEffect as Jt, useSlots as H, defineAsyncComponent as ht } from "vue";
2
+ import { sankeyLinkHorizontal as Oe, sankey as ke, sankeyJustify as xe } from "d3-sankey";
3
+ import { format as Le, ticks as $e, scaleBand as Q, scaleLinear as q, line as we, area as Ie } from "d3";
4
+ import { createPopper as Se } from "@popperjs/core";
5
5
  function rt(e) {
6
6
  return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? rt = function(t) {
7
7
  return typeof t;
@@ -9,10 +9,10 @@ function rt(e) {
9
9
  return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
10
10
  }, rt(e);
11
11
  }
12
- function Ie(e) {
13
- return Re(e) || Pe(e) || De();
14
- }
15
12
  function Re(e) {
13
+ return De(e) || Pe(e) || Ee();
14
+ }
15
+ function De(e) {
16
16
  if (Array.isArray(e)) {
17
17
  for (var t = 0, r = new Array(e.length); t < e.length; t++)
18
18
  r[t] = e[t];
@@ -23,11 +23,11 @@ function Pe(e) {
23
23
  if (Symbol.iterator in Object(e) || Object.prototype.toString.call(e) === "[object Arguments]")
24
24
  return Array.from(e);
25
25
  }
26
- function De() {
26
+ function Ee() {
27
27
  throw new TypeError("Invalid attempt to spread non-iterable instance");
28
28
  }
29
29
  var nt = typeof window < "u";
30
- function Ee(e) {
30
+ function Ce(e) {
31
31
  return Array.isArray(e) || rt(e) === "object" ? Object.freeze(e) : e;
32
32
  }
33
33
  function Ne(e) {
@@ -46,17 +46,17 @@ function Be(e, t) {
46
46
  return r[1];
47
47
  });
48
48
  }
49
- function Nt(e, t) {
49
+ function Et(e, t) {
50
50
  return t.reduce(function(r, n) {
51
51
  return e.hasOwnProperty(n) && (r[n] = e[n]), r;
52
52
  }, {});
53
53
  }
54
- var te = {}, He = {}, je = {}, Ve = q.extend({
54
+ var Qt = {}, He = {}, Ge = {}, Ve = U.extend({
55
55
  data: function() {
56
56
  return {
57
- transports: te,
57
+ transports: Qt,
58
58
  targets: He,
59
- sources: je,
59
+ sources: Ge,
60
60
  trackInstances: nt
61
61
  };
62
62
  },
@@ -68,10 +68,10 @@ var te = {}, He = {}, je = {}, Ve = q.extend({
68
68
  var i = {
69
69
  to: r,
70
70
  from: n,
71
- passengers: Ee(a),
71
+ passengers: Ce(a),
72
72
  order: s
73
73
  }, l = Object.keys(this.transports);
74
- l.indexOf(r) === -1 && q.set(this.transports, r, []);
74
+ l.indexOf(r) === -1 && U.set(this.transports, r, []);
75
75
  var u = this.$_getTransportIndex(i), c = this.transports[r].slice(0);
76
76
  u === -1 ? c.push(i) : c[u] = i, this.transports[r] = Be(c, function(f, _) {
77
77
  return f.order - _.order;
@@ -121,7 +121,7 @@ var te = {}, He = {}, je = {}, Ve = q.extend({
121
121
  return -1;
122
122
  }
123
123
  }
124
- }), I = new Ve(te), Fe = 1, Lt = q.extend({
124
+ }), R = new Ve(Qt), je = 1, qt = U.extend({
125
125
  name: "portal",
126
126
  props: {
127
127
  disabled: {
@@ -130,7 +130,7 @@ var te = {}, He = {}, je = {}, Ve = q.extend({
130
130
  name: {
131
131
  type: String,
132
132
  default: function() {
133
- return String(Fe++);
133
+ return String(je++);
134
134
  }
135
135
  },
136
136
  order: {
@@ -160,7 +160,7 @@ var te = {}, He = {}, je = {}, Ve = q.extend({
160
160
  created: function() {
161
161
  var t = this;
162
162
  this.$nextTick(function() {
163
- I.registerSource(t.name, t);
163
+ R.registerSource(t.name, t);
164
164
  });
165
165
  },
166
166
  mounted: function() {
@@ -170,7 +170,7 @@ var te = {}, He = {}, je = {}, Ve = q.extend({
170
170
  this.disabled ? this.clear() : this.sendUpdate();
171
171
  },
172
172
  beforeDestroy: function() {
173
- I.unregisterSource(this.name), this.clear();
173
+ R.unregisterSource(this.name), this.clear();
174
174
  },
175
175
  watch: {
176
176
  to: function(t, r) {
@@ -183,7 +183,7 @@ var te = {}, He = {}, je = {}, Ve = q.extend({
183
183
  from: this.name,
184
184
  to: t || this.to
185
185
  };
186
- I.close(r);
186
+ R.close(r);
187
187
  },
188
188
  normalizeSlots: function() {
189
189
  return this.$scopedSlots.default ? [this.$scopedSlots.default] : this.$slots.default;
@@ -197,10 +197,10 @@ var te = {}, He = {}, je = {}, Ve = q.extend({
197
197
  var r = {
198
198
  from: this.name,
199
199
  to: this.to,
200
- passengers: Ie(t),
200
+ passengers: Re(t),
201
201
  order: this.order
202
202
  };
203
- I.open(r);
203
+ R.open(r);
204
204
  } else
205
205
  this.clear();
206
206
  }
@@ -217,7 +217,7 @@ var te = {}, He = {}, je = {}, Ve = q.extend({
217
217
  key: "v-portal-placeholder"
218
218
  });
219
219
  }
220
- }), $t = q.extend({
220
+ }), te = U.extend({
221
221
  name: "portalTarget",
222
222
  props: {
223
223
  multiple: {
@@ -248,14 +248,14 @@ var te = {}, He = {}, je = {}, Ve = q.extend({
248
248
  },
249
249
  data: function() {
250
250
  return {
251
- transports: I.transports,
251
+ transports: R.transports,
252
252
  firstRender: !0
253
253
  };
254
254
  },
255
255
  created: function() {
256
256
  var t = this;
257
257
  this.$nextTick(function() {
258
- I.registerTarget(t.name, t);
258
+ R.registerTarget(t.name, t);
259
259
  });
260
260
  },
261
261
  watch: {
@@ -263,7 +263,7 @@ var te = {}, He = {}, je = {}, Ve = q.extend({
263
263
  this.$emit("change", this.children().length > 0);
264
264
  },
265
265
  name: function(t, r) {
266
- I.unregisterTarget(r), I.registerTarget(t, this);
266
+ R.unregisterTarget(r), R.registerTarget(t, this);
267
267
  }
268
268
  },
269
269
  mounted: function() {
@@ -273,7 +273,7 @@ var te = {}, He = {}, je = {}, Ve = q.extend({
273
273
  });
274
274
  },
275
275
  beforeDestroy: function() {
276
- I.unregisterTarget(this.name);
276
+ R.unregisterTarget(this.name);
277
277
  },
278
278
  computed: {
279
279
  ownTransports: function() {
@@ -304,8 +304,8 @@ var te = {}, He = {}, je = {}, Ve = q.extend({
304
304
  }
305
305
  }, n);
306
306
  }
307
- }), Ge = 0, Me = ["disabled", "name", "order", "slim", "slotProps", "tag", "to"], ze = ["multiple", "transition"];
308
- q.extend({
307
+ }), Fe = 0, Me = ["disabled", "name", "order", "slim", "slotProps", "tag", "to"], ze = ["multiple", "transition"];
308
+ U.extend({
309
309
  name: "MountingPortal",
310
310
  inheritAttrs: !1,
311
311
  props: {
@@ -325,7 +325,7 @@ q.extend({
325
325
  name: {
326
326
  type: String,
327
327
  default: function() {
328
- return "mounted_" + String(Ge++);
328
+ return "mounted_" + String(Fe++);
329
329
  }
330
330
  },
331
331
  order: {
@@ -380,9 +380,9 @@ q.extend({
380
380
  return;
381
381
  }
382
382
  var r = this.$props;
383
- if (I.targets[r.name]) {
383
+ if (R.targets[r.name]) {
384
384
  r.bail ? console.warn("[portal-vue]: Target ".concat(r.name, ` is already mounted.
385
- Aborting because 'bail: true' is set`)) : this.portalTarget = I.targets[r.name];
385
+ Aborting because 'bail: true' is set`)) : this.portalTarget = R.targets[r.name];
386
386
  return;
387
387
  }
388
388
  var n = r.append;
@@ -390,8 +390,8 @@ q.extend({
390
390
  var a = typeof n == "string" ? n : "DIV", o = document.createElement(a);
391
391
  t.appendChild(o), t = o;
392
392
  }
393
- var s = Nt(this.$props, ze);
394
- s.slim = this.targetSlim, s.tag = this.targetTag, s.slotProps = this.targetSlotProps, s.name = this.to, this.portalTarget = new $t({
393
+ var s = Et(this.$props, ze);
394
+ s.slim = this.targetSlim, s.tag = this.targetTag, s.slotProps = this.targetSlotProps, s.name = this.to, this.portalTarget = new te({
395
395
  el: t,
396
396
  parent: this.$parent || this,
397
397
  propsData: s
@@ -410,8 +410,8 @@ q.extend({
410
410
  if (!this.portalTarget)
411
411
  return console.warn("[portal-vue] Target wasn't mounted"), t();
412
412
  if (!this.$scopedSlots.manual) {
413
- var r = Nt(this.$props, Me);
414
- return t(Lt, {
413
+ var r = Et(this.$props, Me);
414
+ return t(qt, {
415
415
  props: r,
416
416
  attrs: this.$attrs,
417
417
  on: this.$listeners,
@@ -424,7 +424,7 @@ q.extend({
424
424
  return Array.isArray(n) && (n = n[0]), n || t();
425
425
  }
426
426
  });
427
- var E = /* @__PURE__ */ ((e) => (e.Skyblue = "skyblue", e.Royalblue = "royalblue", e.Violet = "violet", e.Darkteal = "darkteal", e.Gold = "gold", e))(E || {}), kt = /* @__PURE__ */ ((e) => (e.SkyTeal = "skyblue-darkteal", e.VioletRoyal = "violet-royalblue", e.VioletTeal = "violet-darkteal", e.GoldTeal = "gold-darkteal", e.GoldRoyal = "gold-royalblue", e))(kt || {}), ee = /* @__PURE__ */ ((e) => (e.Grey = "grey", e.Green = "green", e.Orange = "orange", e.Red = "red", e))(ee || {}), wt = /* @__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))(wt || {});
427
+ var E = /* @__PURE__ */ ((e) => (e.Skyblue = "skyblue", e.Royalblue = "royalblue", e.Violet = "violet", e.Darkteal = "darkteal", e.Gold = "gold", e))(E || {}), ee = /* @__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))(ee || {}), xt = /* @__PURE__ */ ((e) => (e.SkyTeal = "skyblue-darkteal", e.VioletRoyal = "violet-royalblue", e.VioletTeal = "violet-darkteal", e.GoldTeal = "gold-darkteal", e.GoldRoyal = "gold-royalblue", e))(xt || {}), ne = /* @__PURE__ */ ((e) => (e.Grey = "grey", e.Green = "green", e.Orange = "orange", e.Red = "red", e))(ne || {}), Lt = /* @__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))(Lt || {});
428
428
  const b = {
429
429
  HORIZONTAL: "horizontal",
430
430
  VERTICAL: "vertical"
@@ -432,7 +432,7 @@ const b = {
432
432
  SINGLE: "single",
433
433
  GROUPED: "grouped",
434
434
  STACKED: "stacked"
435
- }, G = {
435
+ }, M = {
436
436
  VERTICAL: {
437
437
  top: 16,
438
438
  right: 0,
@@ -445,7 +445,7 @@ const b = {
445
445
  bottom: 28,
446
446
  left: 24
447
447
  }
448
- }, ne = "No data", Ze = 20, Xe = 0.33, Ue = 0.5, qe = 1, Ye = [
448
+ }, re = "No data", Ze = 20, Xe = 0.33, Ue = 0.5, Ye = 1, Ke = [
449
449
  "auto",
450
450
  "auto-start",
451
451
  "auto-end",
@@ -463,36 +463,36 @@ const b = {
463
463
  "left-end"
464
464
  ];
465
465
  var F = /* @__PURE__ */ ((e) => (e.Categorical = "categorical", e.Sequential = "sequential", e.Divergent = "divergent", e))(F || {});
466
- function re() {
466
+ function ae() {
467
467
  return process.env.NODE_ENV === "production";
468
468
  }
469
- function ae(e) {
469
+ function oe(e) {
470
470
  return (e == null ? void 0 : e.map(
471
471
  (t) => t.values.map((r) => r == null ? void 0 : r.value).flat()
472
472
  ).flat()) || [];
473
473
  }
474
- function St(e) {
474
+ function $t(e) {
475
475
  return e.length === 1;
476
476
  }
477
477
  function mt(e) {
478
478
  return !!e && typeof e == "object" && !Array.isArray(e);
479
479
  }
480
- function oe(e, t) {
480
+ function se(e, t) {
481
481
  const r = { ...e };
482
482
  return Object.entries(t).forEach(([n, a]) => {
483
- r[n] = mt(e[n]) && mt(a) ? oe(e[n], a) : a;
483
+ r[n] = mt(e[n]) && mt(a) ? se(e[n], a) : a;
484
484
  }), r;
485
485
  }
486
- function Ke(e) {
486
+ function Je(e) {
487
487
  return e != null && mt(e) && "value" in e;
488
488
  }
489
- function M(e) {
489
+ function z(e) {
490
490
  return (e == null ? void 0 : e.bandwidth) !== void 0;
491
491
  }
492
- function Ct(e) {
493
- return M(e) ? e.bandwidth() : Math.max(...e.range()) / Math.max(...e.domain());
492
+ function wt(e) {
493
+ return z(e) ? e.bandwidth() : Math.max(...e.range()) / Math.max(...e.domain());
494
494
  }
495
- const Je = (e, t) => {
495
+ const Qe = (e, t) => {
496
496
  if (!e)
497
497
  throw new Error("Data is not a valid array");
498
498
  if (e.length === 0)
@@ -502,9 +502,9 @@ const Je = (e, t) => {
502
502
  throw new Error("Index exceeds length of at least one of the datasets");
503
503
  });
504
504
  };
505
- function Qe(e, t) {
505
+ function qe(e, t) {
506
506
  var r;
507
- return Je(e, t), ((r = e.reduce(
507
+ return Qe(e, t), ((r = e.reduce(
508
508
  (n, a) => {
509
509
  var o, s, i, l;
510
510
  return ((s = (o = n.values[t]) == null ? void 0 : o.value) != null ? s : 0) > ((l = (i = a.values[t]) == null ? void 0 : i.value) != null ? l : 0) ? n : a;
@@ -512,7 +512,7 @@ function Qe(e, t) {
512
512
  ).values[t]) == null ? void 0 : r.value) || 0;
513
513
  }
514
514
  function gt(e) {
515
- const t = Kt(e) ? e.value : e;
515
+ const t = Yt(e) ? e.value : e;
516
516
  if (!t)
517
517
  throw new Error("No empty array can be created from specified data value");
518
518
  const r = Math.max(
@@ -522,7 +522,7 @@ function gt(e) {
522
522
  return Array(r).fill(null);
523
523
  }
524
524
  function tn(e) {
525
- return M(e) ? e.domain().length : Math.max(...e.domain());
525
+ return z(e) ? e.domain().length : Math.max(...e.domain());
526
526
  }
527
527
  function en(e, t) {
528
528
  return (r) => Math.round(e * (1 - r) + t * r);
@@ -531,7 +531,7 @@ function nn(e, t, r) {
531
531
  const n = r ? e.length - t : t, a = e.slice(0, n);
532
532
  return e.slice(n).concat(a);
533
533
  }
534
- function z(e) {
534
+ function W(e) {
535
535
  if (e.groups) {
536
536
  const t = Object.keys(e);
537
537
  return Object.assign(
@@ -549,19 +549,22 @@ var tt = /* @__PURE__ */ ((e) => (e.DatasetLength = `Our guidelines highly recom
549
549
  Learn more: https://lume.design/guidelines/datasets`, e.ColorLoop = "Colors will loop around after the 5th dataset. You can prevent this by setting specific colors for your datasets.", e.InvalidFormat = "The string provided to format is invalid. Please refer to https://github.com/d3/d3-format for valid arguments.", e.NotContainedInSvg = "This component is an `SVGElement`, thus it is required to be inside an `<svg>` container.", e))(tt || {});
550
550
  const an = "[lume] ";
551
551
  function ut(e, t = !0) {
552
- t && re() || console.warn(an + "Warning: " + e);
552
+ t && ae() || console.warn(an + "Warning: " + e);
553
553
  }
554
- const on = F.Categorical, lt = E.Skyblue, sn = kt.SkyTeal;
554
+ const on = F.Categorical, lt = E.Skyblue, sn = xt.SkyTeal;
555
555
  function un(e) {
556
556
  return e === F.Divergent ? sn : lt;
557
557
  }
558
558
  function ln(e) {
559
- return Object.values(wt).includes(e);
559
+ return Object.values(Lt).includes(e);
560
560
  }
561
- function Bt(e, t) {
562
- return t === F.Divergent ? Object.values(kt).includes(e) : Object.values({ ...E, ...ee, ...wt }).includes(
563
- e
564
- );
561
+ function Ct(e, t) {
562
+ return t === F.Divergent ? Object.values(xt).includes(e) : Object.values({
563
+ ...E,
564
+ ...ee,
565
+ ...ne,
566
+ ...Lt
567
+ }).includes(e);
565
568
  }
566
569
  function cn(e, t) {
567
570
  const r = Object.values(E).indexOf(e);
@@ -575,7 +578,7 @@ function pn(e, t) {
575
578
  const r = (t + 1) * 10;
576
579
  return `${e}-${r}`;
577
580
  }
578
- function Ht(e, t, r) {
581
+ function Nt(e, t, r) {
579
582
  switch (t) {
580
583
  default:
581
584
  case F.Categorical:
@@ -587,15 +590,15 @@ function Ht(e, t, r) {
587
590
  }
588
591
  }
589
592
  function fn(e, t, r = on, n) {
590
- return Bt(e, r) ? e : (n > 4 && (ut(tt.ColorLoop), n = n % 5), Bt(t, r) ? Ht(t, r, n) : Ht(un(r), r, n));
593
+ return Ct(e, r) ? e : (n > 4 && (ut(tt.ColorLoop), n = n % 5), Ct(t, r) ? Nt(t, r, n) : Nt(un(r), r, n));
591
594
  }
592
595
  function vn(e) {
593
- return e.map((t) => Ke(t) ? t : { value: t });
596
+ return e.map((t) => Je(t) ? t : { value: t });
594
597
  }
595
598
  function _n(e) {
596
599
  return e.__internal === !0;
597
600
  }
598
- const se = (e = null) => ({
601
+ const ie = (e = null) => ({
599
602
  data: {
600
603
  type: Array,
601
604
  required: !0,
@@ -652,7 +655,7 @@ const It = (e) => {
652
655
  switch (typeof e) {
653
656
  case "string":
654
657
  try {
655
- t = $e(e);
658
+ t = Le(e);
656
659
  } catch {
657
660
  ut(tt.InvalidFormat), t = null;
658
661
  }
@@ -673,10 +676,10 @@ const It = (e) => {
673
676
  default: () => ({})
674
677
  }
675
678
  });
676
- function N(e, t) {
679
+ function C(e, t) {
677
680
  return { allOptions: d(() => {
678
- const n = Kt(t) ? t == null ? void 0 : t.value : t;
679
- return n ? oe(n, e.value) : e.value;
681
+ const n = Yt(t) ? t == null ? void 0 : t.value : t;
682
+ return n ? se(n, e.value) : e.value;
680
683
  }) };
681
684
  }
682
685
  const hn = 0.15;
@@ -700,12 +703,12 @@ function mn(e, t, r) {
700
703
  const c = a.value / u, f = typeof r == "number" && r > 0 && r + 1 || Math.ceil(n.value / c);
701
704
  return l % f === 0;
702
705
  }
703
- return R(t, s), { showTick: i };
706
+ return D(t, s), { showTick: i };
704
707
  }
705
708
  function pt(e) {
706
709
  e != null && e.closest("svg") || ut(tt.NotContainedInSvg);
707
710
  }
708
- const ie = {
711
+ const ue = {
709
712
  gridLines: !1,
710
713
  withTitle: !0,
711
714
  showTicks: !0,
@@ -713,11 +716,11 @@ const ie = {
713
716
  tickFormat: null,
714
717
  tickPadding: 8
715
718
  }, gn = {
716
- ...ie,
719
+ ...ue,
717
720
  withTitle: !1,
718
721
  skip: !0
719
722
  }, yn = {
720
- ...ie,
723
+ ...ue,
721
724
  gridLines: !0
722
725
  }, bn = 12, Tn = 8, An = function(e, t, r) {
723
726
  const n = d(() => e.value.step() * e.value.paddingInner() / 2);
@@ -794,7 +797,7 @@ const ie = {
794
797
  getTickGroupAttributes: a,
795
798
  getTickLabelAttributes: i
796
799
  };
797
- }, xn = function(e, t, r) {
800
+ }, kn = function(e, t, r) {
798
801
  function n(i) {
799
802
  return {
800
803
  transform: `translate(${e.value(i)}, 0)`
@@ -821,7 +824,7 @@ const ie = {
821
824
  getTickGroupAttributes: n,
822
825
  getTickLabelAttributes: s
823
826
  };
824
- }, Ln = function(e, t, r) {
827
+ }, xn = function(e, t, r) {
825
828
  function n(i) {
826
829
  return {
827
830
  transform: `translate(0, ${e.value(i)})`
@@ -848,14 +851,14 @@ const ie = {
848
851
  getTickGroupAttributes: n,
849
852
  getTickLabelAttributes: s
850
853
  };
851
- }, $n = {
854
+ }, Ln = {
852
855
  "x-band-scale-axis": An,
853
856
  "y-band-scale-axis": On,
854
- "x-linear-scale-axis": xn,
855
- "y-linear-scale-axis": Ln
857
+ "x-linear-scale-axis": kn,
858
+ "y-linear-scale-axis": xn
856
859
  };
857
860
  var yt = /* @__PURE__ */ ((e) => (e.bandScale = "band-scale-axis", e.linearScale = "linear-scale-axis", e))(yt || {}), bt = /* @__PURE__ */ ((e) => (e.left = "left", e.bottom = "bottom", e))(bt || {}), at = /* @__PURE__ */ ((e) => (e.x = "bottom", e.y = "left", e))(at || {});
858
- const kn = /* @__PURE__ */ k({
861
+ const $n = /* @__PURE__ */ $({
859
862
  __name: "lume-axis",
860
863
  props: {
861
864
  scale: {
@@ -888,13 +891,13 @@ const kn = /* @__PURE__ */ k({
888
891
  },
889
892
  emits: ["tick-mouseover"],
890
893
  setup(e, { emit: t }) {
891
- const r = e, { scale: n, containerSize: a, hoveredIndex: o, options: s, orientation: i } = S(r), l = it({}), u = L(null), c = L(null), f = L(null), { chartID: _ } = ct(), m = d(
894
+ const r = e, { scale: n, containerSize: a, hoveredIndex: o, options: s, orientation: i } = I(r), l = it({}), u = L(null), c = L(null), f = L(null), { chartID: _ } = ct(), m = d(
892
895
  () => r.type ? at[r.type] : r.position
893
896
  ), p = d(
894
897
  () => r.type || (m.value === "left" ? "y" : "x")
895
898
  ), h = d(
896
899
  () => p.value === "x" && i.value === b.VERTICAL || p.value === "y" && i.value === b.HORIZONTAL
897
- ), { allOptions: g } = N(
900
+ ), { allOptions: g } = C(
898
901
  s,
899
902
  p.value === "x" ? gn : yn
900
903
  ), { showTick: v } = mn(n, u, g.value.skip), y = d(
@@ -902,59 +905,59 @@ const kn = /* @__PURE__ */ k({
902
905
  var x;
903
906
  return `translate(0, ${p.value === "x" ? (x = a.value) == null ? void 0 : x.height : 0})`;
904
907
  }
905
- ), O = d(() => {
906
- if (M(n.value))
908
+ ), A = d(() => {
909
+ if (z(n.value))
907
910
  return n.value.labels || n.value.domain();
908
- const { tickCount: x } = g.value, [C, K] = n.value.domain();
909
- return ke(C, K, x);
911
+ const { tickCount: x } = g.value, [S, J] = n.value.domain();
912
+ return $e(S, J, x);
910
913
  }), T = d(() => {
911
914
  const { tickFormat: x } = g.value;
912
915
  return It(x);
913
916
  });
914
- function $(x) {
915
- const { showTicks: C } = g.value;
916
- return C === !1 ? "" : T.value(x);
917
+ function k(x) {
918
+ const { showTicks: S } = g.value;
919
+ return S === !1 ? "" : T.value(x);
917
920
  }
918
921
  function P(x) {
919
922
  h.value && t("tick-mouseover", x);
920
923
  }
921
- function D(x) {
924
+ function G(x) {
922
925
  return g.value.withHover && h.value && o.value === x;
923
926
  }
924
- function B(x) {
927
+ function N(x) {
925
928
  return `${_}-${p.value}-tick--${x}`;
926
929
  }
927
- function Z(x) {
930
+ function V(x) {
928
931
  if (!!u.value)
929
- return u.value.find((C) => +C.dataset.index === x);
932
+ return u.value.find((S) => +S.dataset.index === x);
930
933
  }
931
- function V() {
932
- f.value = O.value.map((x, C) => ({
934
+ function j() {
935
+ f.value = A.value.map((x, S) => ({
933
936
  value: x,
934
- group: l.getTickGroupAttributes(x, C),
935
- ghost: l.getTickGhostAttributes(Z(C)),
937
+ group: l.getTickGroupAttributes(x, S),
938
+ ghost: l.getTickGhostAttributes(V(S)),
936
939
  label: l.getTickLabelAttributes(),
937
940
  gridLine: l.getGridLinesAttributes()
938
941
  }));
939
942
  }
940
- function X() {
941
- const x = n.value.step ? "bandScale" : "linearScale", C = $n[`${p.value}-${yt[x]}`];
942
- Object.entries(C(n, a, g) || []).forEach(
943
- ([K, vt]) => {
944
- l[K] = vt;
943
+ function K() {
944
+ const x = n.value.step ? "bandScale" : "linearScale", S = Ln[`${p.value}-${yt[x]}`];
945
+ Object.entries(S(n, a, g) || []).forEach(
946
+ ([J, vt]) => {
947
+ l[J] = vt;
945
948
  }
946
949
  );
947
950
  }
948
- return R(n, X, { flush: "sync", immediate: !0 }), R(
951
+ return D(n, K, { flush: "sync", immediate: !0 }), D(
949
952
  [
950
- O,
953
+ A,
951
954
  u,
952
955
  () => a.value.width,
953
956
  () => a.value.height
954
957
  ],
955
- V,
958
+ j,
956
959
  { immediate: !0 }
957
- ), H(() => pt(c.value)), { __sfc: !0, SCALE_MIXIN_MAP: yt, POSITIONS: bt, TYPES: at, props: r, emit: t, scale: n, containerSize: a, hoveredIndex: o, options: s, orientation: i, mixins: l, tickRefs: u, root: c, ticksWithAttributes: f, chartID: _, computedPosition: m, computedType: p, shouldHover: h, allOptions: g, showTick: v, axisTransform: y, ticks: O, tickFormatter: T, formatTick: $, onTickMouseover: P, isHovering: D, getTickId: B, getTextNode: Z, setTicks: V, init: X, VuePortal: Lt, VuePortalTarget: $t };
960
+ ), B(() => pt(c.value)), { __sfc: !0, SCALE_MIXIN_MAP: yt, POSITIONS: bt, TYPES: at, props: r, emit: t, scale: n, containerSize: a, hoveredIndex: o, options: s, orientation: i, mixins: l, tickRefs: u, root: c, ticksWithAttributes: f, chartID: _, computedPosition: m, computedType: p, shouldHover: h, allOptions: g, showTick: v, axisTransform: y, ticks: A, tickFormatter: T, formatTick: k, onTickMouseover: P, isHovering: G, getTickId: N, getTextNode: V, setTicks: j, init: K, VuePortal: qt, VuePortalTarget: te };
958
961
  }
959
962
  });
960
963
  function w(e, t, r, n, a, o, s, i) {
@@ -994,18 +997,18 @@ var wn = function() {
994
997
  return n.onTickMouseover(o);
995
998
  } } }, [r("rect", t._b({ staticClass: "axis__ghost", attrs: { fill: "url(#lume-tick-gradient)" } }, "rect", a.ghost, !1)), r("text", t._b({ ref: "tickRefs", refInFor: !0, staticClass: "axis__label", attrs: { "data-index": o } }, "text", a.label, !1), [t._v(" " + t._s(n.formatTick(a.value)) + " ")])]), n.allOptions.gridLines ? r("line", t._b({ staticClass: "axis__grid-line" }, "line", a.gridLine, !1)) : t._e()])]);
996
999
  }), r(n.VuePortalTarget, { attrs: { name: `${n.chartID}-${n.computedType}-hovered-portal`, slim: "" } })], 2) : t._e();
997
- }, Sn = [], Cn = /* @__PURE__ */ w(
998
- kn,
1000
+ }, In = [], Sn = /* @__PURE__ */ w(
1001
+ $n,
999
1002
  wn,
1000
- Sn,
1003
+ In,
1001
1004
  !1,
1002
1005
  null,
1003
1006
  "44f74829",
1004
1007
  null,
1005
1008
  null
1006
1009
  );
1007
- const In = Cn.exports;
1008
- function Rn() {
1010
+ const Rn = Sn.exports;
1011
+ function Dn() {
1009
1012
  const e = L(), t = it({
1010
1013
  dimensions: {}
1011
1014
  }), r = new ResizeObserver((n) => {
@@ -1013,13 +1016,13 @@ function Rn() {
1013
1016
  t.dimensions = a.contentRect;
1014
1017
  });
1015
1018
  });
1016
- return H(() => {
1019
+ return B(() => {
1017
1020
  r.observe(e.value);
1018
- }), Jt(() => {
1021
+ }), Kt(() => {
1019
1022
  r.unobserve(e.value);
1020
1023
  }), { resizeState: t, resizeRef: e };
1021
1024
  }
1022
- const Pn = /* @__PURE__ */ k({
1025
+ const Pn = /* @__PURE__ */ $({
1023
1026
  __name: "lume-chart-container",
1024
1027
  props: {
1025
1028
  margins: {
@@ -1046,13 +1049,13 @@ const Pn = /* @__PURE__ */ k({
1046
1049
  right: 0,
1047
1050
  top: 0,
1048
1051
  bottom: 0
1049
- }, { margins: a, containerSize: o } = S(r), s = L(null), { resizeRef: i, resizeState: l } = Rn(), u = d(() => ({
1052
+ }, { margins: a, containerSize: o } = I(r), s = L(null), { resizeRef: i, resizeState: l } = Dn(), u = d(() => ({
1050
1053
  ...n,
1051
1054
  ...a.value
1052
1055
  })), c = d(
1053
1056
  () => o.value.height + u.value.top + u.value.bottom
1054
1057
  );
1055
- return Qt(() => {
1058
+ return Jt(() => {
1056
1059
  if (!s.value)
1057
1060
  return;
1058
1061
  const { width: f } = l.dimensions, { height: _ } = s.value.getBoundingClientRect();
@@ -1068,7 +1071,7 @@ const Pn = /* @__PURE__ */ k({
1068
1071
  }), { __sfc: !0, BASE_MARGINS: n, props: r, emit: t, margins: a, containerSize: o, root: s, resizeRef: i, resizeState: l, computedMargins: u, svgHeight: c };
1069
1072
  }
1070
1073
  });
1071
- var Dn = function() {
1074
+ var En = function() {
1072
1075
  var t = this, r = t._self._c, n = t._self._setupProxy;
1073
1076
  return r("div", { ref: "resizeRef", staticClass: "lume-chart-container", class: {
1074
1077
  "lume-chart-container--minimum": !t.noMinSize
@@ -1077,17 +1080,17 @@ var Dn = function() {
1077
1080
  }, attrs: { height: n.svgHeight, "data-j-chart-container__root": "" }, on: { mouseleave: function(a) {
1078
1081
  return t.$emit("mouseleave", a);
1079
1082
  } } }, [r("g", { staticClass: "lume-chart-container__group", attrs: { transform: `translate(${n.computedMargins.left}, ${n.computedMargins.top})`, "data-j-chart-container__group": "" } }, [t._t("default")], 2)]), t._t("footer"), t._t("extra")], 2);
1080
- }, En = [], Nn = /* @__PURE__ */ w(
1083
+ }, Cn = [], Nn = /* @__PURE__ */ w(
1081
1084
  Pn,
1082
- Dn,
1083
1085
  En,
1086
+ Cn,
1084
1087
  !1,
1085
1088
  null,
1086
1089
  "136a2456",
1087
1090
  null,
1088
1091
  null
1089
1092
  );
1090
- const Bn = Nn.exports, Hn = /* @__PURE__ */ k({
1093
+ const Bn = Nn.exports, Hn = /* @__PURE__ */ $({
1091
1094
  __name: "lume-chart-legend",
1092
1095
  props: {
1093
1096
  data: {
@@ -1101,16 +1104,16 @@ const Bn = Nn.exports, Hn = /* @__PURE__ */ k({
1101
1104
  return { __sfc: !0, emit: t };
1102
1105
  }
1103
1106
  });
1104
- var jn = function() {
1107
+ var Gn = function() {
1105
1108
  var t = this, r = t._self._c, n = t._self._setupProxy;
1106
1109
  return r("div", { staticClass: "lume-chart-legend", attrs: { "data-j-chart-legend": "" } }, t._l(t.data, function(a, o) {
1107
1110
  return r("div", { key: `legend-item-${o}`, staticClass: "lume-chart-legend__item lume-typography--body", attrs: { tabindex: "0", "data-j-chart-legend__symbol-wrapper": "" }, on: { click: function(s) {
1108
1111
  return n.emit("click", o);
1109
1112
  } } }, [r("span", { staticClass: "lume-chart-legend__symbol", class: `lume-background-color--${a.color}`, attrs: { "data-j-chart-legend__symbol": "" } }), t._v(" " + t._s(a.label) + " ")]);
1110
1113
  }), 0);
1111
- }, Vn = [], Fn = /* @__PURE__ */ w(
1114
+ }, Vn = [], jn = /* @__PURE__ */ w(
1112
1115
  Hn,
1113
- jn,
1116
+ Gn,
1114
1117
  Vn,
1115
1118
  !1,
1116
1119
  null,
@@ -1118,7 +1121,7 @@ var jn = function() {
1118
1121
  null,
1119
1122
  null
1120
1123
  );
1121
- const Gn = Fn.exports, Mn = /* @__PURE__ */ k({
1124
+ const Fn = jn.exports, Mn = /* @__PURE__ */ $({
1122
1125
  __name: "lume-tooltip",
1123
1126
  props: {
1124
1127
  targetElement: {
@@ -1132,7 +1135,7 @@ const Gn = Fn.exports, Mn = /* @__PURE__ */ k({
1132
1135
  position: {
1133
1136
  type: String,
1134
1137
  default: "auto",
1135
- validator: (e) => Ye.includes(e)
1138
+ validator: (e) => Ke.includes(e)
1136
1139
  },
1137
1140
  fixedPositioning: {
1138
1141
  type: Boolean,
@@ -1153,7 +1156,7 @@ const Gn = Fn.exports, Mn = /* @__PURE__ */ k({
1153
1156
  ...dt()
1154
1157
  },
1155
1158
  setup(e) {
1156
- const t = e, r = L(null), { items: n, options: a } = S(t), o = L(null), { allOptions: s } = N(a), i = d(
1159
+ const t = e, r = L(null), { items: n, options: a } = I(t), o = L(null), { allOptions: s } = C(a), i = d(
1157
1160
  () => {
1158
1161
  var g;
1159
1162
  return (g = s.value.fixedPositioning) != null ? g : t.fixedPositioning;
@@ -1183,7 +1186,7 @@ const Gn = Fn.exports, Mn = /* @__PURE__ */ k({
1183
1186
  }
1184
1187
  );
1185
1188
  function m() {
1186
- t.targetElement && r.value && (o.value = Ce(t.targetElement, r.value, {
1189
+ t.targetElement && r.value && (o.value = Se(t.targetElement, r.value, {
1187
1190
  placement: t.position,
1188
1191
  strategy: l.value,
1189
1192
  modifiers: u.value
@@ -1197,7 +1200,7 @@ const Gn = Fn.exports, Mn = /* @__PURE__ */ k({
1197
1200
  o.value.state.elements.reference = t.targetElement, o.value.update();
1198
1201
  }() : p());
1199
1202
  }
1200
- return R(() => t.targetElement, h), H(m), Jt(p), { __sfc: !0, props: t, root: r, items: n, options: a, popper: o, allOptions: s, computedFixedPositioning: i, strategy: l, allModifiers: u, showTitle: c, formatValue: f, summaryItem: _, initPopper: m, destroyPopper: p, updatePopper: h };
1203
+ return D(() => t.targetElement, h), B(m), Kt(p), { __sfc: !0, props: t, root: r, items: n, options: a, popper: o, allOptions: s, computedFixedPositioning: i, strategy: l, allModifiers: u, showTitle: c, formatValue: f, summaryItem: _, initPopper: m, destroyPopper: p, updatePopper: h };
1201
1204
  }
1202
1205
  });
1203
1206
  var zn = function() {
@@ -1231,13 +1234,13 @@ function Un(e, t, r, n) {
1231
1234
  );
1232
1235
  return { computedX: s, computedY: i, shouldHaveMinWidth: a, shouldHaveMinHeight: o };
1233
1236
  }
1234
- function qn(e, t, r, n) {
1237
+ function Yn(e, t, r, n) {
1235
1238
  const a = L(0), o = L(0), s = d(() => `${e.value + r.value / 2}px ${t.value + n.value / 2}px`);
1236
- return H(() => {
1239
+ return B(() => {
1237
1240
  a.value = r.value, o.value = n.value;
1238
- }), R(r, (i) => a.value = i), R(n, (i) => o.value = i), { computedWidth: a, computedHeight: o, transformOrigin: s };
1241
+ }), D(r, (i) => a.value = i), D(n, (i) => o.value = i), { computedWidth: a, computedHeight: o, transformOrigin: s };
1239
1242
  }
1240
- const Yn = /* @__PURE__ */ k({
1243
+ const Kn = /* @__PURE__ */ $({
1241
1244
  __name: "lume-bar",
1242
1245
  props: {
1243
1246
  x: {
@@ -1274,13 +1277,13 @@ const Yn = /* @__PURE__ */ k({
1274
1277
  }
1275
1278
  },
1276
1279
  setup(e) {
1277
- const t = e, { x: r, y: n, width: a, height: o, transition: s, classList: i } = S(t), l = L(null), u = d(
1280
+ const t = e, { x: r, y: n, width: a, height: o, transition: s, classList: i } = I(t), l = L(null), u = d(
1278
1281
  () => typeof i.value == "string" ? [i.value] : i.value
1279
- ), c = d(() => s.value === "width"), f = d(() => s.value === "height"), _ = qn(r, n, a, o), { computedX: m, computedY: p, shouldHaveMinWidth: h, shouldHaveMinHeight: g } = Un(r, n, a, o), v = d(() => h.value ? 1 : (c.value ? _.computedWidth : a).value), y = d(() => g.value ? 1 : (f.value ? _.computedHeight : o).value), O = c.value || f.value ? _.transformOrigin : null;
1280
- return H(() => pt(l.value)), { __sfc: !0, props: t, x: r, y: n, width: a, height: o, transition: s, classList: i, root: l, computedClasses: u, shouldTransitionWidth: c, shouldTransitionHeight: f, transitionProps: _, computedX: m, computedY: p, shouldHaveMinWidth: h, shouldHaveMinHeight: g, computedWidth: v, computedHeight: y, transformOrigin: O };
1282
+ ), c = d(() => s.value === "width"), f = d(() => s.value === "height"), _ = Yn(r, n, a, o), { computedX: m, computedY: p, shouldHaveMinWidth: h, shouldHaveMinHeight: g } = Un(r, n, a, o), v = d(() => h.value ? 1 : (c.value ? _.computedWidth : a).value), y = d(() => g.value ? 1 : (f.value ? _.computedHeight : o).value), A = c.value || f.value ? _.transformOrigin : null;
1283
+ return B(() => pt(l.value)), { __sfc: !0, props: t, x: r, y: n, width: a, height: o, transition: s, classList: i, root: l, computedClasses: u, shouldTransitionWidth: c, shouldTransitionHeight: f, transitionProps: _, computedX: m, computedY: p, shouldHaveMinWidth: h, shouldHaveMinHeight: g, computedWidth: v, computedHeight: y, transformOrigin: A };
1281
1284
  }
1282
1285
  });
1283
- var Kn = function() {
1286
+ var Jn = function() {
1284
1287
  var t = this, r = t._self._c, n = t._self._setupProxy;
1285
1288
  return r("rect", { ref: "root", staticClass: "lume-bar", class: [
1286
1289
  {
@@ -1291,17 +1294,17 @@ var Kn = function() {
1291
1294
  },
1292
1295
  ...n.computedClasses
1293
1296
  ], style: { transformOrigin: n.transformOrigin }, attrs: { x: n.computedX, y: n.computedY, width: n.computedWidth, height: n.computedHeight, "data-j-bar": "" } });
1294
- }, Jn = [], Qn = /* @__PURE__ */ w(
1295
- Yn,
1297
+ }, Qn = [], qn = /* @__PURE__ */ w(
1296
1298
  Kn,
1297
1299
  Jn,
1300
+ Qn,
1298
1301
  !1,
1299
1302
  null,
1300
1303
  "08915152",
1301
1304
  null,
1302
1305
  null
1303
1306
  );
1304
- const Rt = Qn.exports, jt = 2, tr = /* @__PURE__ */ k({
1307
+ const St = qn.exports, Bt = 2, tr = /* @__PURE__ */ $({
1305
1308
  __name: "lume-line",
1306
1309
  props: {
1307
1310
  pathDefinition: {
@@ -1310,7 +1313,7 @@ const Rt = Qn.exports, jt = 2, tr = /* @__PURE__ */ k({
1310
1313
  },
1311
1314
  width: {
1312
1315
  type: Number,
1313
- default: jt
1316
+ default: Bt
1314
1317
  },
1315
1318
  color: {
1316
1319
  type: String,
@@ -1335,7 +1338,7 @@ const Rt = Qn.exports, jt = 2, tr = /* @__PURE__ */ k({
1335
1338
  },
1336
1339
  setup(e) {
1337
1340
  const t = L(null);
1338
- return H(() => pt(t.value)), { __sfc: !0, DEFAULT_LINE_WIDTH: jt, root: t };
1341
+ return B(() => pt(t.value)), { __sfc: !0, DEFAULT_LINE_WIDTH: Bt, root: t };
1339
1342
  }
1340
1343
  });
1341
1344
  var er = function() {
@@ -1358,7 +1361,7 @@ var er = function() {
1358
1361
  null,
1359
1362
  null
1360
1363
  );
1361
- const ar = rr.exports, Vt = 4, or = /* @__PURE__ */ k({
1364
+ const ar = rr.exports, Ht = 4, or = /* @__PURE__ */ $({
1362
1365
  __name: "lume-point",
1363
1366
  props: {
1364
1367
  x: { type: Number, required: !0 },
@@ -1369,7 +1372,7 @@ const ar = rr.exports, Vt = 4, or = /* @__PURE__ */ k({
1369
1372
  },
1370
1373
  radius: {
1371
1374
  type: Number,
1372
- default: Vt
1375
+ default: Ht
1373
1376
  },
1374
1377
  active: {
1375
1378
  type: Boolean,
@@ -1378,7 +1381,7 @@ const ar = rr.exports, Vt = 4, or = /* @__PURE__ */ k({
1378
1381
  },
1379
1382
  setup(e) {
1380
1383
  const t = e, r = L(null), n = d(() => t.radius / 2);
1381
- return H(() => pt(r.value)), { __sfc: !0, DEFAULT_RADIUS: Vt, props: t, root: r, strokeWidth: n };
1384
+ return B(() => pt(r.value)), { __sfc: !0, DEFAULT_RADIUS: Ht, props: t, root: r, strokeWidth: n };
1382
1385
  }
1383
1386
  });
1384
1387
  var sr = function() {
@@ -1408,39 +1411,39 @@ function dr(e, t, r, n, a) {
1408
1411
  const o = L(null), s = L(null);
1409
1412
  function i() {
1410
1413
  const { width: l, height: u } = r;
1411
- !l && !u || !t.value || !e.value || (n.value === b.HORIZONTAL ? (o.value = Gt(
1414
+ !l && !u || !t.value || !e.value || (n.value === b.HORIZONTAL ? (o.value = Vt(
1412
1415
  e.value,
1413
1416
  l,
1414
1417
  n.value,
1415
1418
  a.value.startOnZero
1416
- ), s.value = Ft(t.value, u)) : (o.value = Ft(t.value, l), s.value = Gt(
1419
+ ), s.value = Gt(t.value, u)) : (o.value = Gt(t.value, l), s.value = Vt(
1417
1420
  e.value,
1418
1421
  u,
1419
1422
  n.value,
1420
1423
  a.value.startOnZero
1421
1424
  )));
1422
1425
  }
1423
- return Qt(i), { xScale: o, yScale: s };
1426
+ return Jt(i), { xScale: o, yScale: s };
1424
1427
  }
1425
- function Ft(e, t) {
1428
+ function Gt(e, t) {
1426
1429
  const r = [0, t];
1427
1430
  return Object.assign(
1428
- J().range(r).domain(e.map((n, a) => a)),
1431
+ Q().range(r).domain(e.map((n, a) => a)),
1429
1432
  { labels: e }
1430
1433
  );
1431
1434
  }
1432
- function Gt(e, t, r, n) {
1433
- const a = ae(e).filter((c) => c != null), o = [0, t];
1435
+ function Vt(e, t, r, n) {
1436
+ const a = oe(e).filter((c) => c != null), o = [0, t];
1434
1437
  if (a.length === 0)
1435
- return Q().range(o).domain([0, 0]).nice();
1438
+ return q().range(o).domain([0, 0]).nice();
1436
1439
  const s = Math.min(...a), i = n && s > 0 ? 0 : s, l = Math.max(...a), u = r === b.HORIZONTAL ? [i, l] : [l, i];
1437
- return Q().range(o).domain(u).nice();
1440
+ return q().range(o).domain(u).nice();
1438
1441
  }
1439
- function Mt(e) {
1442
+ function jt(e) {
1440
1443
  return (e == null ? void 0 : e.range) !== void 0 || (e == null ? void 0 : e.copy) !== void 0;
1441
1444
  }
1442
1445
  function Tt(e, t) {
1443
- return M(e) ? e.bandwidth() / 2 + e(e.domain()[t]) : e(t);
1446
+ return z(e) ? e.bandwidth() / 2 + e(e.domain()[t]) : e(t);
1444
1447
  }
1445
1448
  function ot(e, t, {
1446
1449
  padding: r,
@@ -1450,11 +1453,11 @@ function ot(e, t, {
1450
1453
  const o = r != null ? r : t === b.HORIZONTAL ? Ue : Xe;
1451
1454
  return e.copy().paddingInner(n != null ? n : o).paddingOuter(a != null ? a : o / 2);
1452
1455
  }
1453
- function ue(e) {
1456
+ function le(e) {
1454
1457
  return Object.values(b).includes(e);
1455
1458
  }
1456
- const W = (e, t = !0, r = !0) => ({
1457
- ...se(e),
1459
+ const Z = (e, t = !0, r = !0) => ({
1460
+ ...ie(e),
1458
1461
  ...r ? cr() : {},
1459
1462
  ...dt(),
1460
1463
  title: {
@@ -1465,7 +1468,7 @@ const W = (e, t = !0, r = !0) => ({
1465
1468
  orientation: {
1466
1469
  type: String,
1467
1470
  default: b.VERTICAL,
1468
- validator: ue
1471
+ validator: le
1469
1472
  }
1470
1473
  } : {},
1471
1474
  classList: {
@@ -1488,7 +1491,7 @@ const W = (e, t = !0, r = !0) => ({
1488
1491
  orientation: {
1489
1492
  type: String,
1490
1493
  default: b.VERTICAL,
1491
- validator: ue
1494
+ validator: le
1492
1495
  },
1493
1496
  xScale: {
1494
1497
  type: Function,
@@ -1514,7 +1517,7 @@ const W = (e, t = !0, r = !0) => ({
1514
1517
  type: [String, Array],
1515
1518
  default: () => []
1516
1519
  }
1517
- }), pr = /* @__PURE__ */ k({
1520
+ }), pr = /* @__PURE__ */ $({
1518
1521
  __name: "lume-overlay-group",
1519
1522
  props: {
1520
1523
  ...ft(),
@@ -1525,9 +1528,9 @@ const W = (e, t = !0, r = !0) => ({
1525
1528
  },
1526
1529
  emits: ["mouseover"],
1527
1530
  setup(e, { emit: t }) {
1528
- const r = e, { data: n, orientation: a, xScale: o, yScale: s } = S(r), i = d(() => gt(n));
1531
+ const r = e, { data: n, orientation: a, xScale: o, yScale: s } = I(r), i = d(() => gt(n));
1529
1532
  function l(u) {
1530
- const c = a.value === b.HORIZONTAL ? s.value : o.value, f = c.domain(), _ = Ct(c), m = M(c) ? c(f[u]) : c(u) - _ / 2;
1533
+ const c = a.value === b.HORIZONTAL ? s.value : o.value, f = c.domain(), _ = wt(c), m = z(c) ? c(f[u]) : c(u) - _ / 2;
1531
1534
  return a.value === b.HORIZONTAL ? {
1532
1535
  width: Math.max(...o.value.range()),
1533
1536
  height: _,
@@ -1538,7 +1541,7 @@ const W = (e, t = !0, r = !0) => ({
1538
1541
  transform: `translate(${m}, 0)`
1539
1542
  };
1540
1543
  }
1541
- return { __sfc: !0, props: r, emit: t, data: n, orientation: a, xScale: o, yScale: s, overlayData: i, getOverlayBarAttributes: l, LumeBar: Rt };
1544
+ return { __sfc: !0, props: r, emit: t, data: n, orientation: a, xScale: o, yScale: s, overlayData: i, getOverlayBarAttributes: l, LumeBar: St };
1542
1545
  }
1543
1546
  });
1544
1547
  var fr = function() {
@@ -1561,7 +1564,7 @@ var fr = function() {
1561
1564
  const hr = _r.exports;
1562
1565
  function mr(e) {
1563
1566
  return { hasNegativeValues: d(
1564
- () => ae(e.value).some((r) => r < 0)
1567
+ () => oe(e.value).some((r) => r < 0)
1565
1568
  ) };
1566
1569
  }
1567
1570
  function gr(e, t, r, n) {
@@ -1601,24 +1604,24 @@ function br(e) {
1601
1604
  return t[a] ? n.value + t[a] : (o = n.value) != null ? o : 0;
1602
1605
  }), []);
1603
1606
  }
1604
- const zt = {
1607
+ const Ft = {
1605
1608
  "stacked-bar": br
1606
- }, Wt = L(null);
1607
- function le(e, t, r, n, a) {
1609
+ }, Mt = L(null);
1610
+ function ce(e, t, r, n, a) {
1608
1611
  function o(s) {
1609
- const i = (a == null ? void 0 : a.value) && zt[a.value] ? zt[a.value](s) : yr(s);
1610
- Wt.value = i.map((l, u) => ({
1612
+ const i = (a == null ? void 0 : a.value) && Ft[a.value] ? Ft[a.value](s) : yr(s);
1613
+ Mt.value = i.map((l, u) => ({
1611
1614
  cx: (r == null ? void 0 : r.value) === b.HORIZONTAL ? e.value(l) : Tt(e.value, u),
1612
1615
  cy: (r == null ? void 0 : r.value) === b.HORIZONTAL ? Tt(t.value, u) : t.value(l)
1613
1616
  }));
1614
1617
  }
1615
- return R(
1618
+ return D(
1616
1619
  [e, t],
1617
1620
  () => {
1618
1621
  e.value && t.value && (n == null ? void 0 : n.value) && o(n.value);
1619
1622
  },
1620
1623
  { immediate: !0 }
1621
- ), { tooltipAnchorAttributes: Wt, updateTooltipAnchorAttributes: o };
1624
+ ), { tooltipAnchorAttributes: Mt, updateTooltipAnchorAttributes: o };
1622
1625
  }
1623
1626
  function Tr() {
1624
1627
  const e = it({
@@ -1638,15 +1641,15 @@ function Ar(e) {
1638
1641
  return {
1639
1642
  color: ((s = o[r]) == null ? void 0 : s.color) || n,
1640
1643
  label: a,
1641
- value: (c = (u = (i = o[r]) == null ? void 0 : i.label) != null ? u : (l = o[r]) == null ? void 0 : l.value) != null ? c : ne
1644
+ value: (c = (u = (i = o[r]) == null ? void 0 : i.label) != null ? u : (l = o[r]) == null ? void 0 : l.value) != null ? c : re
1642
1645
  };
1643
1646
  })
1644
1647
  ) };
1645
1648
  }
1646
- const Or = /* @__PURE__ */ k({
1649
+ const Or = /* @__PURE__ */ $({
1647
1650
  __name: "lume-chart",
1648
1651
  props: {
1649
- ...W(),
1652
+ ...Z(),
1650
1653
  chartType: {
1651
1654
  type: String,
1652
1655
  default: null
@@ -1654,85 +1657,95 @@ const Or = /* @__PURE__ */ k({
1654
1657
  },
1655
1658
  emits: ["click"],
1656
1659
  setup(e, { emit: t }) {
1657
- const r = e, n = j(), a = qe, { data: o, labels: s, color: i, options: l, orientation: u, chartType: c } = S(r), f = L(-1), _ = L(null), m = L(null), { allOptions: p } = N(l), { internalData: h, computedLabels: g, containerSize: v, updateSize: y, chartID: O } = ct(o, s, i, p, u), { xScale: T, yScale: $ } = dr(
1660
+ const r = e, n = H(), a = Ye, { data: o, labels: s, color: i, options: l, orientation: u, chartType: c } = I(r), f = L(-1), _ = L(null), m = L(null), { allOptions: p } = C(l), { internalData: h, computedLabels: g, containerSize: v, updateSize: y } = ct(
1661
+ o,
1662
+ s,
1663
+ i,
1664
+ p,
1665
+ u
1666
+ ), { xScale: A, yScale: T } = dr(
1658
1667
  h,
1659
1668
  g,
1660
1669
  v,
1661
1670
  u,
1662
1671
  p
1663
- ), P = d(() => {
1664
- var A;
1665
- return r.xScale ? Mt(r.xScale) ? r.xScale : (A = r.xScale) == null ? void 0 : A.call(r, h.value, s.value, v) : T.value;
1666
- }), D = d(() => {
1667
- var A;
1668
- return r.yScale ? Mt(r.yScale) ? r.yScale : (A = r.yScale) == null ? void 0 : A.call(r, h.value, s.value, v) : $.value;
1669
- }), B = d(() => ({
1672
+ ), k = d(() => {
1673
+ var O;
1674
+ return r.xScale ? jt(r.xScale) ? r.xScale : (O = r.xScale) == null ? void 0 : O.call(r, h.value, s.value, v) : A.value;
1675
+ }), P = d(() => {
1676
+ var O;
1677
+ return r.yScale ? jt(r.yScale) ? r.yScale : (O = r.yScale) == null ? void 0 : O.call(r, h.value, s.value, v) : T.value;
1678
+ }), G = d(() => ({
1670
1679
  ...p.value.xAxisOptions,
1671
1680
  withHover: u.value === b.VERTICAL
1672
- })), Z = d(() => ({
1681
+ })), N = d(() => ({
1673
1682
  ...p.value.yAxisOptions,
1674
1683
  withHover: u.value === b.HORIZONTAL
1675
1684
  })), V = d(() => {
1676
- var A;
1677
- return (A = p.value.xAxisOptions) == null ? void 0 : A.title;
1678
- }), X = d(() => {
1679
- var A;
1680
- return (A = p.value.yAxisOptions) == null ? void 0 : A.title;
1685
+ var O;
1686
+ return (O = p.value.xAxisOptions) == null ? void 0 : O.title;
1687
+ }), j = d(() => {
1688
+ var O;
1689
+ return (O = p.value.yAxisOptions) == null ? void 0 : O.title;
1690
+ }), K = d(() => {
1691
+ var O;
1692
+ return ((O = p.value.xAxisOptions) == null ? void 0 : O.withTitle) !== !1 && V.value;
1681
1693
  }), x = d(() => {
1682
- var A;
1683
- return ((A = p.value.xAxisOptions) == null ? void 0 : A.withTitle) !== !1 && V.value;
1684
- }), C = d(() => {
1685
- var A;
1686
- return ((A = p.value.yAxisOptions) == null ? void 0 : A.withTitle) !== !1 && X.value;
1687
- }), K = d(
1694
+ var O;
1695
+ return ((O = p.value.yAxisOptions) == null ? void 0 : O.withTitle) !== !1 && j.value;
1696
+ }), S = d(
1688
1697
  () => {
1689
- var A;
1690
- return p.value.withTooltip !== !1 && !((A = p.value.tooltipOptions) != null && A.targetElement);
1698
+ var O;
1699
+ return p.value.withTooltip !== !1 && !((O = p.value.tooltipOptions) != null && O.targetElement);
1691
1700
  }
1692
- ), vt = d(() => {
1693
- const A = [], { noBaseScales: et } = p.value;
1694
- return et || A.push(() => !!(P.value && D.value)), A.every((_t) => _t() === !0);
1695
- }), { hasNegativeValues: _e } = mr(h), { negativeBarAttributes: he } = gr(
1701
+ ), J = d(() => {
1702
+ const O = [], { noBaseScales: et } = p.value;
1703
+ return et || O.push(() => !!(k.value && P.value)), O.every((_t) => _t() === !0);
1704
+ }), { hasNegativeValues: vt } = mr(h), { negativeBarAttributes: he } = gr(
1696
1705
  v,
1706
+ k,
1697
1707
  P,
1698
- D,
1699
1708
  u
1700
- ), { tooltipAnchorAttributes: me } = le(
1709
+ ), { tooltipAnchorAttributes: me } = ce(
1710
+ k,
1701
1711
  P,
1702
- D,
1703
1712
  u,
1704
1713
  h,
1705
1714
  c
1706
- ), { tooltipConfig: ge, showTooltip: Dt, hideTooltip: Et } = Tr(), { getTooltipItems: ye } = Ar(h), be = d(
1715
+ ), { tooltipConfig: ge, showTooltip: Dt, hideTooltip: Pt } = Tr(), { getTooltipItems: ye } = Ar(h), be = d(
1707
1716
  () => {
1708
- var A;
1709
- return ((A = p.value.tooltipOptions) == null ? void 0 : A.position) || "top";
1717
+ var O;
1718
+ return ((O = p.value.tooltipOptions) == null ? void 0 : O.position) || "top";
1710
1719
  }
1711
1720
  );
1712
- function Te(A) {
1721
+ function Te(O) {
1713
1722
  var et;
1714
- if (p.value.withHover !== !1 && (f.value = A), p.value.withTooltip !== !1) {
1715
- const _t = (et = p.value.tooltipOptions) != null && et.targetElement ? p.value.tooltipOptions.targetElement === "self" ? m.value.$el : p.value.tooltipOptions.targetElement : _.value[A];
1723
+ if (p.value.withHover !== !1 && (f.value = O), p.value.withTooltip !== !1) {
1724
+ const _t = (et = p.value.tooltipOptions) != null && et.targetElement ? p.value.tooltipOptions.targetElement === "self" ? m.value.$el : p.value.tooltipOptions.targetElement : _.value[O];
1716
1725
  Dt(_t);
1717
1726
  }
1718
1727
  }
1719
1728
  function Ae() {
1720
- Et(), f.value = -1;
1729
+ Pt(), f.value = -1;
1721
1730
  }
1722
- return H(() => {
1723
- var A;
1724
- (A = n.groups) != null && A.call(n) || console.error('"groups" `<slot>` must have content.');
1725
- }), { __sfc: !0, props: r, slots: n, emit: t, tooltipAnchorRadius: a, data: o, labels: s, color: i, options: l, orientation: u, chartType: c, hoveredIndex: f, tooltipAnchor: _, chartContainer: m, allOptions: p, internalData: h, computedLabels: g, containerSize: v, updateSize: y, chartID: O, xScale: T, yScale: $, computedXScale: P, computedYScale: D, computedXAxisOptions: B, computedYAxisOptions: Z, xAxisTitle: V, yAxisTitle: X, showXAxisTitle: x, showYAxisTitle: C, shouldGenerateTooltipAnchors: K, isReady: vt, hasNegativeValues: _e, negativeBarAttributes: he, tooltipAnchorAttributes: me, tooltipConfig: ge, showTooltip: Dt, hideTooltip: Et, getTooltipItems: ye, tooltipPosition: be, mouseOverHandler: Te, handleMouseleave: Ae, VuePortal: Lt, VuePortalTarget: $t, LumeAxis: In, LumeBar: Rt, LumeChartContainer: Bn, LumeChartLegend: Gn, LumeTooltip: Xn, LumeOverlayGroup: hr };
1731
+ return B(() => {
1732
+ var O;
1733
+ (O = n.groups) != null && O.call(n) || console.error('"groups" `<slot>` must have content.');
1734
+ }), { __sfc: !0, props: r, slots: n, emit: t, tooltipAnchorRadius: a, data: o, labels: s, color: i, options: l, orientation: u, chartType: c, hoveredIndex: f, tooltipAnchor: _, chartContainer: m, allOptions: p, internalData: h, computedLabels: g, containerSize: v, updateSize: y, xScale: A, yScale: T, computedXScale: k, computedYScale: P, computedXAxisOptions: G, computedYAxisOptions: N, xAxisTitle: V, yAxisTitle: j, showXAxisTitle: K, showYAxisTitle: x, shouldGenerateTooltipAnchors: S, isReady: J, hasNegativeValues: vt, negativeBarAttributes: he, tooltipAnchorAttributes: me, tooltipConfig: ge, showTooltip: Dt, hideTooltip: Pt, getTooltipItems: ye, tooltipPosition: be, mouseOverHandler: Te, handleMouseleave: Ae, LumeAxis: Rn, LumeBar: St, LumeChartContainer: Bn, LumeChartLegend: Fn, LumeTooltip: Xn, LumeOverlayGroup: hr };
1726
1735
  }
1727
1736
  });
1728
- var xr = function() {
1737
+ var kr = function() {
1729
1738
  var t = this, r = t._self._c, n = t._self._setupProxy;
1730
1739
  return r(n.LumeChartContainer, { ref: "chartContainer", attrs: { margins: n.allOptions.margins, "container-size": n.containerSize, "no-min-size": n.allOptions.noMinSize, "transparent-background": n.allOptions.transparentBackground, "data-j-lume-chart": "" }, on: { resize: n.updateSize, mouseleave: n.handleMouseleave }, scopedSlots: t._u([{ key: "header", fn: function() {
1731
- return [r("div", { staticClass: "lume-chart__header" }, [r("div", { staticClass: "lume-chart__header-section" }, [t.title ? r("h1", { staticClass: "lume-chart__title lume-chart-title lume-typography--display" }, [t._v(" " + t._s(t.title) + " ")]) : t._e(), r("div", { staticClass: "lume-chart__controls" }, [t._t("controls")], 2)]), r("div", { staticClass: "lume-chart__header-section" }, [n.showYAxisTitle ? r("h3", { staticClass: "lume-chart__axis-title lume-axis-title lume-typography--body" }, [t._v(" " + t._s(n.yAxisTitle) + " ")]) : t._e(), n.allOptions.withLegend !== !1 ? r(n.VuePortal, { attrs: { disabled: n.allOptions.legendPosition !== "bottom", to: `legend-bottom-${n.chartID}`, slim: "" } }, [r(n.LumeChartLegend, { staticClass: "lume-chart__legend", attrs: { data: n.internalData, "data-j-lume-chart__legend": "" }, on: { click: function(a) {
1732
- return n.emit("click", a);
1733
- } } })], 1) : t._e()], 1)])];
1740
+ return [r("div", { staticClass: "lume-chart__header" }, [r("div", { staticClass: "lume-chart__header-section" }, [t.title ? r("h1", { staticClass: "lume-chart__title lume-chart-title lume-typography--display" }, [t._v(" " + t._s(t.title) + " ")]) : t._e(), r("div", { staticClass: "lume-chart__controls" }, [t._t("controls")], 2)]), r("div", { staticClass: "lume-chart__header-section" }, [n.showYAxisTitle ? r("h3", { staticClass: "lume-chart__axis-title lume-axis-title lume-typography--body" }, [t._v(" " + t._s(n.yAxisTitle) + " ")]) : t._e(), t._t("legend", function() {
1741
+ return [n.allOptions.withLegend !== !1 && n.allOptions.legendPosition !== "bottom" ? r(n.LumeChartLegend, { staticClass: "lume-chart__legend", attrs: { data: n.internalData, "data-j-lume-chart__legend": "" }, on: { click: function(a) {
1742
+ return n.emit("click", a);
1743
+ } } }) : t._e()];
1744
+ }, { data: n.internalData })], 2)])];
1734
1745
  }, proxy: !0 }, { key: "footer", fn: function() {
1735
- return [n.showXAxisTitle ? r("h3", { staticClass: "lume-chart__axis-title lume-chart__axis-title--centered lume-axis-title" }, [t._v(" " + t._s(n.xAxisTitle) + " ")]) : t._e(), r(n.VuePortalTarget, { attrs: { name: `legend-bottom-${n.chartID}`, slim: "" } })];
1746
+ return [n.showXAxisTitle ? r("h3", { staticClass: "lume-chart__axis-title lume-chart__axis-title--centered lume-axis-title" }, [t._v(" " + t._s(n.xAxisTitle) + " ")]) : t._e(), n.allOptions.withLegend !== !1 && n.allOptions.legendPosition == "bottom" ? r(n.LumeChartLegend, { staticClass: "lume-chart__legend lume-chart__legend--bottom", attrs: { data: n.internalData, "data-j-lume-chart__legend": "" }, on: { click: function(a) {
1747
+ return n.emit("click", a);
1748
+ } } }) : t._e()];
1736
1749
  }, proxy: !0 }, { key: "extra", fn: function() {
1737
1750
  return [t._t("tooltip", function() {
1738
1751
  return [n.allOptions.withTooltip !== !1 && n.tooltipConfig.opened ? r(n.LumeTooltip, t._b({ attrs: { position: n.tooltipPosition, title: n.computedLabels[n.hoveredIndex], items: n.getTooltipItems(n.hoveredIndex), options: n.allOptions.tooltipOptions, "data-j-lume-chart__tooltip": "" } }, "lume-tooltip", n.tooltipConfig, !1), [t._t("tooltip-content", null, { data: n.internalData, labels: n.computedLabels, hoveredIndex: n.hoveredIndex })], 2) : t._e()];
@@ -1746,18 +1759,18 @@ var xr = function() {
1746
1759
  }, { xScale: n.computedXScale, yScale: n.computedYScale, containerSize: n.containerSize, options: n.allOptions, hoveredIndex: n.hoveredIndex }) : t._e(), t._t("groups", null, { data: n.internalData, labels: n.computedLabels, options: n.allOptions, orientation: n.orientation, xScale: n.computedXScale, yScale: n.computedYScale, hoveredIndex: n.hoveredIndex, containerSize: n.containerSize, transition: n.allOptions.withTransition !== !1, classList: t.classList }), n.allOptions.withHover !== !1 ? r(n.LumeOverlayGroup, { attrs: { data: n.internalData, orientation: n.orientation, "x-scale": n.computedXScale, "y-scale": n.computedYScale, "data-j-lume-chart__overlay-group": "" }, on: { mouseover: n.mouseOverHandler } }) : t._e(), n.shouldGenerateTooltipAnchors ? r("g", t._l(n.tooltipAnchorAttributes, function(a) {
1747
1760
  return r("circle", t._b({ key: `anchor-${a.cx}${a.cy}`, ref: "tooltipAnchor", refInFor: !0, staticClass: "lume-fill--transparent", attrs: { r: n.tooltipAnchorRadius } }, "circle", a, !1));
1748
1761
  }), 0) : t._e()] : t._e()], 2);
1749
- }, Lr = [], $r = /* @__PURE__ */ w(
1762
+ }, xr = [], Lr = /* @__PURE__ */ w(
1750
1763
  Or,
1764
+ kr,
1751
1765
  xr,
1752
- Lr,
1753
1766
  !1,
1754
1767
  null,
1755
- "64922cd3",
1768
+ "7da3eff9",
1756
1769
  null,
1757
1770
  null
1758
1771
  );
1759
- const Y = $r.exports;
1760
- function Zt(e, t) {
1772
+ const Y = Lr.exports;
1773
+ function zt(e, t) {
1761
1774
  return {
1762
1775
  x0: 0 + (t ? t.left : 0),
1763
1776
  y0: 0 + (t ? t.top : 0),
@@ -1765,32 +1778,32 @@ function Zt(e, t) {
1765
1778
  y1: e.height - (t ? t.bottom : 0)
1766
1779
  };
1767
1780
  }
1768
- function kr(e) {
1769
- const t = L(Zt(e));
1781
+ function $r(e) {
1782
+ const t = L(zt(e));
1770
1783
  function r(n) {
1771
- t.value = Zt(e, n);
1784
+ t.value = zt(e, n);
1772
1785
  }
1773
1786
  return { extents: t, updateExtents: r };
1774
1787
  }
1775
- var ce = /* @__PURE__ */ ((e) => (e.GraphProblem = "There was an issue generating your alluvial graph.", e))(ce || {});
1788
+ var de = /* @__PURE__ */ ((e) => (e.GraphProblem = "There was an issue generating your alluvial graph.", e))(de || {});
1776
1789
  const wr = "[lume] ";
1777
- function Sr(e, t, r = !0) {
1778
- r && re() || console.error(wr + "Error: " + e, t);
1790
+ function Ir(e, t, r = !0) {
1791
+ r && ae() || console.error(wr + "Error: " + e, t);
1779
1792
  }
1780
- const Xt = 8, Cr = 8, Ir = 200;
1781
- function U(e) {
1793
+ const Wt = 8, Sr = 8, Rr = 200;
1794
+ function X(e) {
1782
1795
  var t;
1783
1796
  return typeof e == "string" || typeof e == "number" ? e : (t = e.id) != null ? t : e.label;
1784
1797
  }
1785
1798
  function st(e) {
1786
1799
  return e.source.id + ":" + e.target.id;
1787
1800
  }
1788
- function de(e) {
1801
+ function pe(e) {
1789
1802
  return Boolean(
1790
1803
  e.sourceLinks && e.targetLinks
1791
1804
  );
1792
1805
  }
1793
- function Rr(e, t) {
1806
+ function Dr(e, t) {
1794
1807
  if (!t)
1795
1808
  return;
1796
1809
  const r = e.nodes.filter((s) => s.targetLinks.length === 0).map((s) => `${s.id}`), n = e.nodes.filter((s) => s.sourceLinks.length === 0).map((s) => `${s.id}`), a = t.filter((s) => r.includes(s.dataset.id)).reduce(
@@ -1814,13 +1827,13 @@ function Pr(e) {
1814
1827
  width: t.x1 - t.x0,
1815
1828
  height: t.y1 - t.y0,
1816
1829
  textTransform: {
1817
- x: t.depth > 0 ? t.x1 + Xt : t.x0 - Xt,
1830
+ x: t.depth > 0 ? t.x1 + Wt : t.x0 - Wt,
1818
1831
  y: (t.y1 + t.y0) / 2
1819
1832
  },
1820
1833
  node: t
1821
1834
  }));
1822
1835
  }
1823
- function Dr(e) {
1836
+ function Er(e) {
1824
1837
  const t = Oe();
1825
1838
  return e.map((r) => {
1826
1839
  var n;
@@ -1833,14 +1846,14 @@ function Dr(e) {
1833
1846
  };
1834
1847
  });
1835
1848
  }
1836
- function Ut(e, t, r) {
1849
+ function Zt(e, t, r) {
1837
1850
  const n = Date.now(), a = en(t, r), o = () => {
1838
- let i = (Date.now() - n) / Ir;
1839
- i > 1 && (i = 1), q.set(e.node, "transitionValue", a(i)), i < 1 && requestAnimationFrame(o);
1851
+ let i = (Date.now() - n) / Rr;
1852
+ i > 1 && (i = 1), U.set(e.node, "transitionValue", a(i)), i < 1 && requestAnimationFrame(o);
1840
1853
  };
1841
1854
  requestAnimationFrame(o);
1842
1855
  }
1843
- const Er = {
1856
+ const Cr = {
1844
1857
  nodes: [],
1845
1858
  links: []
1846
1859
  };
@@ -1868,8 +1881,8 @@ function Nr(e, t, r) {
1868
1881
  });
1869
1882
  }
1870
1883
  ).filter(Boolean).flat();
1871
- }), s = d(() => xe().nodeId(U).nodeAlign(t.value.nodeAlign).nodePadding(t.value.nodePadding).nodeSort(t.value.nodeSort).nodeWidth(t.value.nodeWidth));
1872
- return R([s, r], () => {
1884
+ }), s = d(() => ke().nodeId(X).nodeAlign(t.value.nodeAlign).nodePadding(t.value.nodePadding).nodeSort(t.value.nodeSort).nodeWidth(t.value.nodeWidth));
1885
+ return D([s, r], () => {
1873
1886
  try {
1874
1887
  const { x0: i, y0: l, x1: u, y1: c } = r.value;
1875
1888
  n.value = s.value.extent([
@@ -1877,7 +1890,7 @@ function Nr(e, t, r) {
1877
1890
  [u, c]
1878
1891
  ])({ nodes: a.value, links: o.value });
1879
1892
  } catch (i) {
1880
- Sr(ce.GraphProblem, i), n.value = Er;
1893
+ Ir(de.GraphProblem, i), n.value = Cr;
1881
1894
  }
1882
1895
  }), { graph: n };
1883
1896
  }
@@ -1896,7 +1909,7 @@ function Br(e, t) {
1896
1909
  }
1897
1910
  const Hr = (e, t) => {
1898
1911
  let r;
1899
- de(e) ? r = {
1912
+ pe(e) ? r = {
1900
1913
  [e.id]: e.value,
1901
1914
  ...At(e),
1902
1915
  ...Ot(e)
@@ -1908,21 +1921,21 @@ const Hr = (e, t) => {
1908
1921
  };
1909
1922
  const n = Br(r, t);
1910
1923
  return { nodes: r, links: n };
1911
- }, jr = (e) => {
1912
- if (de(e)) {
1924
+ }, Gr = (e) => {
1925
+ if (pe(e)) {
1913
1926
  const t = [...e.sourceLinks, ...e.targetLinks];
1914
1927
  return {
1915
1928
  nodes: t.reduce(
1916
- (r, { source: n, target: a, value: o }) => n === e ? { ...r, [U(a)]: o } : { ...r, [U(n)]: o },
1917
- { [U(e)]: e.value }
1929
+ (r, { source: n, target: a, value: o }) => n === e ? { ...r, [X(a)]: o } : { ...r, [X(n)]: o },
1930
+ { [X(e)]: e.value }
1918
1931
  ),
1919
1932
  links: t.map((r) => st(r))
1920
1933
  };
1921
1934
  }
1922
1935
  return {
1923
1936
  nodes: {
1924
- [U(e.target)]: e.value,
1925
- [U(e.source)]: e.source.value
1937
+ [X(e.target)]: e.value,
1938
+ [X(e.source)]: e.source.value
1926
1939
  },
1927
1940
  links: [st(e)]
1928
1941
  };
@@ -1931,11 +1944,11 @@ function Vr(e, t, r) {
1931
1944
  const n = L(null), a = d(() => n.value ? typeof t.value.highlightedElements == "function" ? t.value.highlightedElements(
1932
1945
  n.value,
1933
1946
  r.value
1934
- ) : t.value.highlightedElements === "closest" ? jr(n.value, r.value) : Hr(n.value, r.value) : { nodes: {}, links: [] });
1935
- return R(a, (o, s) => {
1947
+ ) : t.value.highlightedElements === "closest" ? Gr(n.value, r.value) : Hr(n.value, r.value) : { nodes: {}, links: [] });
1948
+ return D(a, (o, s) => {
1936
1949
  if (o.links.length === 0 && Object.keys(o.nodes).length === 0) {
1937
1950
  e.value.forEach((i) => {
1938
- i.node.id in s.nodes && Ut(
1951
+ i.node.id in s.nodes && Zt(
1939
1952
  i,
1940
1953
  s.nodes[i.node.id],
1941
1954
  i.node.value
@@ -1944,7 +1957,7 @@ function Vr(e, t, r) {
1944
1957
  return;
1945
1958
  }
1946
1959
  e.value.forEach((i) => {
1947
- i.node.id in o.nodes && Ut(
1960
+ i.node.id in o.nodes && Zt(
1948
1961
  i,
1949
1962
  i.node.value,
1950
1963
  o.nodes[i.node.id]
@@ -1952,13 +1965,13 @@ function Vr(e, t, r) {
1952
1965
  });
1953
1966
  }), { highlightedElements: a, hoveredElement: n };
1954
1967
  }
1955
- const Fr = /* @__PURE__ */ k({
1968
+ const jr = /* @__PURE__ */ $({
1956
1969
  __name: "lume-alluvial-group",
1957
1970
  props: {
1958
1971
  ...ft()
1959
1972
  },
1960
1973
  setup(e) {
1961
- const t = e, { data: r, options: n } = S(t), a = L([]), o = L([]), s = L(null), { extents: i, updateExtents: l } = kr(t.containerSize), { graph: u } = Nr(r, n, i), { hoveredElement: c, highlightedElements: f } = Vr(
1974
+ const t = e, { data: r, options: n } = I(t), a = L([]), o = L([]), s = L(null), { extents: i, updateExtents: l } = $r(t.containerSize), { graph: u } = Nr(r, n, i), { hoveredElement: c, highlightedElements: f } = Vr(
1962
1975
  a,
1963
1976
  n,
1964
1977
  u
@@ -1971,17 +1984,17 @@ const Fr = /* @__PURE__ */ k({
1971
1984
  function h(g) {
1972
1985
  return f.value.links.length > 0 && !f.value.links.includes(g);
1973
1986
  }
1974
- return R(u, (g) => {
1975
- a.value = Pr(g.nodes), o.value = Dr(g.links);
1976
- }), R([t.containerSize, s], () => {
1987
+ return D(u, (g) => {
1988
+ a.value = Pr(g.nodes), o.value = Er(g.links);
1989
+ }), D([t.containerSize, s], () => {
1977
1990
  if (t.containerSize.width && t.containerSize.height) {
1978
- const g = Rr(u.value, s.value);
1991
+ const g = Dr(u.value, s.value);
1979
1992
  l(g);
1980
1993
  }
1981
- }), { __sfc: !0, props: t, data: r, options: n, nodeBlocks: a, linkPaths: o, nodeTextRefs: s, extents: i, updateExtents: l, graph: u, hoveredElement: c, highlightedElements: f, formatValue: _, hoveredNodeIds: m, isNodeFaded: p, isLinkFaded: h, GHOST_STROKE_WIDTH_OFFSET: Cr, DEFAULT_COLOR: lt };
1994
+ }), { __sfc: !0, props: t, data: r, options: n, nodeBlocks: a, linkPaths: o, nodeTextRefs: s, extents: i, updateExtents: l, graph: u, hoveredElement: c, highlightedElements: f, formatValue: _, hoveredNodeIds: m, isNodeFaded: p, isLinkFaded: h, GHOST_STROKE_WIDTH_OFFSET: Sr, DEFAULT_COLOR: lt };
1982
1995
  }
1983
1996
  });
1984
- var Gr = function() {
1997
+ var Fr = function() {
1985
1998
  var t = this, r = t._self._c, n = t._self._setupProxy;
1986
1999
  return r("g", { staticClass: "lume-alluvial-group", attrs: { "data-j-alluvial-group": "" } }, [t._l(n.nodeBlocks, function(a, o) {
1987
2000
  return r("g", { key: `node-block_${o}`, staticClass: "lume-alluvial-group__node", class: {
@@ -2015,8 +2028,8 @@ var Gr = function() {
2015
2028
  } } });
2016
2029
  })], 2)], 2);
2017
2030
  }, Mr = [], zr = /* @__PURE__ */ w(
2031
+ jr,
2018
2032
  Fr,
2019
- Gr,
2020
2033
  Mr,
2021
2034
  !1,
2022
2035
  null,
@@ -2038,19 +2051,19 @@ const Wr = zr.exports, Zr = {
2038
2051
  highlightedElements: "full",
2039
2052
  nodePadding: 16,
2040
2053
  nodeWidth: 16,
2041
- nodeAlign: Le,
2054
+ nodeAlign: xe,
2042
2055
  valueFormat: (e) => String(e)
2043
- }, Xr = /* @__PURE__ */ k({
2056
+ }, Xr = /* @__PURE__ */ $({
2044
2057
  __name: "lume-alluvial-diagram",
2045
2058
  props: {
2046
- ...W(
2047
- St,
2059
+ ...Z(
2060
+ $t,
2048
2061
  !1,
2049
2062
  !1
2050
2063
  )
2051
2064
  },
2052
2065
  setup(e) {
2053
- const t = e, r = z(j()), { options: n } = S(t), { allOptions: a } = N(n, Zr);
2066
+ const t = e, r = W(H()), { options: n } = I(t), { allOptions: a } = C(n, Zr);
2054
2067
  function o(s) {
2055
2068
  return {
2056
2069
  ...s,
@@ -2069,40 +2082,40 @@ var Ur = function() {
2069
2082
  return [t._t(o, null, null, s || {})];
2070
2083
  } };
2071
2084
  })], null, !0) }, "lume-chart", n.props, !1));
2072
- }, qr = [], Yr = /* @__PURE__ */ w(
2085
+ }, Yr = [], Kr = /* @__PURE__ */ w(
2073
2086
  Xr,
2074
2087
  Ur,
2075
- qr,
2088
+ Yr,
2076
2089
  !1,
2077
2090
  null,
2078
2091
  null,
2079
2092
  null,
2080
2093
  null
2081
2094
  );
2082
- const Ka = Yr.exports;
2083
- var xt = /* @__PURE__ */ ((e) => (e.grouped = "grouped", e.stacked = "stacked", e))(xt || {});
2084
- const Kr = /* @__PURE__ */ k({
2095
+ const Ja = Kr.exports;
2096
+ var kt = /* @__PURE__ */ ((e) => (e.grouped = "grouped", e.stacked = "stacked", e))(kt || {});
2097
+ const Jr = /* @__PURE__ */ $({
2085
2098
  __name: "lume-bar-chart",
2086
2099
  props: {
2087
- ...W(),
2100
+ ...Z(),
2088
2101
  type: {
2089
2102
  type: String,
2090
2103
  default: null,
2091
- validator: (e) => e in xt || e == null
2104
+ validator: (e) => e in kt || e == null
2092
2105
  }
2093
2106
  },
2094
2107
  setup(e) {
2095
2108
  const t = e, r = ht(
2096
- () => import("./5808bcb2.js")
2109
+ () => import("./be9b5401.js")
2097
2110
  ), n = ht(
2098
- () => import("./5b8dd513.js")
2111
+ () => import("./bd928433.js")
2099
2112
  ), a = ht(
2100
- () => import("./9fc6a6b2.js")
2113
+ () => import("./1612c2b0.js")
2101
2114
  ), o = /* @__PURE__ */ new Map([
2102
2115
  ["single", r],
2103
2116
  ["grouped", n],
2104
2117
  ["stacked", a]
2105
- ]), s = z(j());
2118
+ ]), s = W(H());
2106
2119
  function i(u) {
2107
2120
  return {
2108
2121
  ...u,
@@ -2115,34 +2128,34 @@ const Kr = /* @__PURE__ */ k({
2115
2128
  }
2116
2129
  const l = d(() => {
2117
2130
  if (!!t.data) {
2118
- if (St(t.data))
2131
+ if ($t(t.data))
2119
2132
  return o.get("single");
2120
2133
  if (!t.type)
2121
2134
  throw new Error("Bar chart needs a type when there's multiple datasets.");
2122
2135
  return o.get(t.type);
2123
2136
  }
2124
2137
  });
2125
- return { __sfc: !0, TYPES: xt, LumeSingleBarChart: r, LumeGroupedBarChart: n, LumeStackedBarChart: a, COMPONENT_MAP: o, props: t, slots: s, getBarChartOptions: i, component: l };
2138
+ return { __sfc: !0, TYPES: kt, LumeSingleBarChart: r, LumeGroupedBarChart: n, LumeStackedBarChart: a, COMPONENT_MAP: o, props: t, slots: s, getBarChartOptions: i, component: l };
2126
2139
  }
2127
2140
  });
2128
- var Jr = function() {
2141
+ var Qr = function() {
2129
2142
  var t = this, r = t._self._c, n = t._self._setupProxy;
2130
2143
  return r(n.component, t._b({ tag: "component", attrs: { options: n.getBarChartOptions(t.options) }, scopedSlots: t._u([t._l(n.slots, function(a, o) {
2131
2144
  return { key: o, fn: function(s) {
2132
2145
  return [t._t(o, null, null, s || {})];
2133
2146
  } };
2134
2147
  })], null, !0) }, "component", { ...n.props, ...t.$attrs }, !1));
2135
- }, Qr = [], ta = /* @__PURE__ */ w(
2136
- Kr,
2148
+ }, qr = [], ta = /* @__PURE__ */ w(
2137
2149
  Jr,
2138
2150
  Qr,
2151
+ qr,
2139
2152
  !1,
2140
2153
  null,
2141
2154
  null,
2142
2155
  null,
2143
2156
  null
2144
2157
  );
2145
- const Ja = ta.exports;
2158
+ const Qa = ta.exports;
2146
2159
  function ea(e) {
2147
2160
  return Object.values(We).includes(e) || e == null;
2148
2161
  }
@@ -2163,7 +2176,7 @@ const ra = (e = !1) => ({
2163
2176
  }
2164
2177
  } : {}
2165
2178
  });
2166
- function pe(e) {
2179
+ function fe(e) {
2167
2180
  const t = d(() => e.value.map((n) => ({
2168
2181
  ...n,
2169
2182
  values: n.values.map((a) => ({
@@ -2220,13 +2233,13 @@ function sa(e, t, r, n, a, o) {
2220
2233
  return s.value ? r.value.bandwidth() : f < 0 ? r.value(f) - r.value(0) : r.value(0) - r.value(f);
2221
2234
  }
2222
2235
  function c(f, _, m) {
2223
- var $;
2224
- const { value: p, color: h } = f, g = ($ = h != null ? h : e.value[_].color) != null ? $ : lt, { x: v, y } = i(p, m), O = l(p), T = u(p);
2236
+ var k;
2237
+ const { value: p, color: h } = f, g = (k = h != null ? h : e.value[_].color) != null ? k : lt, { x: v, y } = i(p, m), A = l(p), T = u(p);
2225
2238
  return {
2226
2239
  classList: [`lume-fill--${g}`, ...o],
2227
2240
  x: v,
2228
2241
  y,
2229
- width: O,
2242
+ width: A,
2230
2243
  height: T,
2231
2244
  isFaded: a.value !== -1 && a.value !== m,
2232
2245
  isNegative: p < 0
@@ -2237,7 +2250,7 @@ function sa(e, t, r, n, a, o) {
2237
2250
  function ia(e, t, r, n, a, o) {
2238
2251
  const s = d(
2239
2252
  () => n.value === b.HORIZONTAL
2240
- ), i = d(() => J().domain(e.value.map((p, h) => h)).range([0, t.value.bandwidth()]).padding(0)), l = d(() => J().domain(e.value.map((p, h) => h)).range([0, r.value.bandwidth()]).padding(0));
2253
+ ), i = d(() => Q().domain(e.value.map((p, h) => h)).range([0, t.value.bandwidth()]).padding(0)), l = d(() => Q().domain(e.value.map((p, h) => h)).range([0, r.value.bandwidth()]).padding(0));
2241
2254
  function u(p, h, g) {
2242
2255
  if (s.value)
2243
2256
  return p >= 0 ? t.value(0) : t.value(p);
@@ -2258,14 +2271,14 @@ function ia(e, t, r, n, a, o) {
2258
2271
  return s.value ? l.value.bandwidth() : p < 0 ? r.value(p) - r.value(0) : r.value(0) - r.value(p);
2259
2272
  }
2260
2273
  function m(p, h, g) {
2261
- var B;
2262
- const { value: v, color: y } = p, O = (B = y != null ? y : e.value[h].color) != null ? B : Object.values(E)[h], T = u(v, g, h), $ = c(v, g, h), P = f(v), D = _(v);
2274
+ var N;
2275
+ const { value: v, color: y } = p, A = (N = y != null ? y : e.value[h].color) != null ? N : Object.values(E)[h], T = u(v, g, h), k = c(v, g, h), P = f(v), G = _(v);
2263
2276
  return {
2264
- classList: [`lume-fill--${O}`, ...o],
2277
+ classList: [`lume-fill--${A}`, ...o],
2265
2278
  x: T,
2266
- y: $,
2279
+ y: k,
2267
2280
  width: P,
2268
- height: D,
2281
+ height: G,
2269
2282
  isFaded: a.value !== -1 && a.value !== g,
2270
2283
  isNegative: v < 0
2271
2284
  };
@@ -2290,9 +2303,9 @@ function ua(e, t) {
2290
2303
  return Math.max(...i);
2291
2304
  });
2292
2305
  function o(i, l, u) {
2293
- return r.value ? Q().domain([n.value, a.value]).range([0, u.width]) : Object.assign(
2306
+ return r.value ? q().domain([n.value, a.value]).range([0, u.width]) : Object.assign(
2294
2307
  ot(
2295
- J().domain(l.map((c, f) => f)).range([0, u.width])
2308
+ Q().domain(l.map((c, f) => f)).range([0, u.width])
2296
2309
  ),
2297
2310
  { labels: l }
2298
2311
  );
@@ -2300,10 +2313,10 @@ function ua(e, t) {
2300
2313
  function s(i, l, u) {
2301
2314
  return r.value ? Object.assign(
2302
2315
  ot(
2303
- J().domain(l.map((c, f) => f)).range([0, u.height])
2316
+ Q().domain(l.map((c, f) => f)).range([0, u.height])
2304
2317
  ),
2305
2318
  { labels: l }
2306
- ) : Q().domain([a.value, n.value]).range([0, u.height]);
2319
+ ) : q().domain([a.value, n.value]).range([0, u.height]);
2307
2320
  }
2308
2321
  return { stackedXScaleGenerator: o, stackedYScaleGenerator: s };
2309
2322
  }
@@ -2315,9 +2328,9 @@ function la(e, t, r, n, a, o) {
2315
2328
  ), l = d(
2316
2329
  () => e.value.map((v) => v.values.map((y) => y == null ? void 0 : y.value))
2317
2330
  );
2318
- function u(v, y, O) {
2319
- let T, $;
2320
- return s.value ? (T = t.value(v >= 0 ? 0 + O : v + O), $ = r.value(i.value[y])) : (T = t.value(i.value[y]), $ = r.value(v >= 0 ? v + O : 0 + O)), { x: T, y: $ };
2331
+ function u(v, y, A) {
2332
+ let T, k;
2333
+ return s.value ? (T = t.value(v >= 0 ? 0 + A : v + A), k = r.value(i.value[y])) : (T = t.value(i.value[y]), k = r.value(v >= 0 ? v + A : 0 + A)), { x: T, y: k };
2321
2334
  }
2322
2335
  function c(v) {
2323
2336
  return s.value ? t.value(v) - t.value(0) : t.value.bandwidth();
@@ -2332,31 +2345,31 @@ function la(e, t, r, n, a, o) {
2332
2345
  return s.value ? r.value.bandwidth() : r.value(v) - r.value(0);
2333
2346
  }
2334
2347
  function p(v, y) {
2335
- return v ? l.value.reduce((O, T, $) => ($ < v && T[y] >= 0 && (O += T[y]), O), 0) : 0;
2348
+ return v ? l.value.reduce((A, T, k) => (k < v && T[y] >= 0 && (A += T[y]), A), 0) : 0;
2336
2349
  }
2337
2350
  function h(v, y) {
2338
- return v ? l.value.reduce((O, T, $) => ($ < v && T[y] < 0 && (O += T[y]), O), 0) : 0;
2351
+ return v ? l.value.reduce((A, T, k) => (k < v && T[y] < 0 && (A += T[y]), A), 0) : 0;
2339
2352
  }
2340
- function g(v, y, O) {
2353
+ function g(v, y, A) {
2341
2354
  var x;
2342
- const { value: T, color: $ } = v, P = T >= 0 ? c(T) : f(T), D = T >= 0 ? _(T) : m(T), B = T >= 0 ? p(y, O) : h(y, O), { x: Z, y: V } = u(T, O, B);
2355
+ const { value: T, color: k } = v, P = T >= 0 ? c(T) : f(T), G = T >= 0 ? _(T) : m(T), N = T >= 0 ? p(y, A) : h(y, A), { x: V, y: j } = u(T, A, N);
2343
2356
  return {
2344
- classList: [`lume-fill--${(x = $ != null ? $ : e.value[y].color) != null ? x : Object.values(E)[y]}`, ...o],
2357
+ classList: [`lume-fill--${(x = k != null ? k : e.value[y].color) != null ? x : Object.values(E)[y]}`, ...o],
2345
2358
  width: P,
2346
- height: D,
2347
- x: Z,
2348
- y: V,
2349
- isFaded: a.value !== -1 && a.value !== O,
2359
+ height: G,
2360
+ x: V,
2361
+ y: j,
2362
+ isFaded: a.value !== -1 && a.value !== A,
2350
2363
  isNegative: T < 0
2351
2364
  };
2352
2365
  }
2353
2366
  return { barAttributeGenerator: g };
2354
2367
  }
2355
- const qt = {
2368
+ const Xt = {
2356
2369
  single: sa,
2357
2370
  grouped: ia,
2358
2371
  stacked: la
2359
- }, ca = /* @__PURE__ */ k({
2372
+ }, ca = /* @__PURE__ */ $({
2360
2373
  __name: "lume-bar-group",
2361
2374
  props: {
2362
2375
  ...ft(),
@@ -2381,13 +2394,13 @@ const qt = {
2381
2394
  xScale: l,
2382
2395
  yScale: u,
2383
2396
  classList: c
2384
- } = S(t), { groupedData: f } = pe(r), { barXScale: _, barYScale: m } = oa(
2397
+ } = I(t), { groupedData: f } = fe(r), { barXScale: _, barYScale: m } = oa(
2385
2398
  l,
2386
2399
  u,
2387
2400
  a,
2388
2401
  o
2389
2402
  ), p = d(() => typeof c.value == "string" ? [c.value] : c.value), h = d(() => {
2390
- const v = aa(r, i), { barAttributeGenerator: y } = qt[v](
2403
+ const v = aa(r, i), { barAttributeGenerator: y } = Xt[v](
2391
2404
  r,
2392
2405
  _,
2393
2406
  m,
@@ -2400,7 +2413,7 @@ const qt = {
2400
2413
  if (!!s.value)
2401
2414
  return o.value === b.HORIZONTAL ? "width" : "height";
2402
2415
  });
2403
- return { __sfc: !0, MIXIN_MAP: qt, props: t, data: r, hoveredIndex: n, options: a, orientation: o, transition: s, type: i, xScale: l, yScale: u, classList: c, groupedData: f, barXScale: _, barYScale: m, computedClasses: p, getBarAttributes: h, computedTransition: g, LumeBar: Rt };
2416
+ return { __sfc: !0, MIXIN_MAP: Xt, props: t, data: r, hoveredIndex: n, options: a, orientation: o, transition: s, type: i, xScale: l, yScale: u, classList: c, groupedData: f, barXScale: _, barYScale: m, computedClasses: p, getBarAttributes: h, computedTransition: g, LumeBar: St };
2404
2417
  }
2405
2418
  });
2406
2419
  var da = function() {
@@ -2420,29 +2433,29 @@ var da = function() {
2420
2433
  null,
2421
2434
  null
2422
2435
  );
2423
- const Pt = fa.exports, va = {
2436
+ const Rt = fa.exports, va = {
2424
2437
  [b.VERTICAL]: {
2425
2438
  withTooltip: !0,
2426
2439
  xAxisOptions: {},
2427
2440
  yAxisOptions: { gridLines: !0 },
2428
- margins: G.VERTICAL
2441
+ margins: M.VERTICAL
2429
2442
  },
2430
2443
  [b.HORIZONTAL]: {
2431
2444
  withTooltip: !0,
2432
2445
  xAxisOptions: { gridLines: !0 },
2433
2446
  yAxisOptions: { gridLines: !1 },
2434
- margins: G.HORIZONTAL
2447
+ margins: M.HORIZONTAL
2435
2448
  }
2436
- }, _a = /* @__PURE__ */ k({
2449
+ }, _a = /* @__PURE__ */ $({
2437
2450
  __name: "lume-single-bar-chart",
2438
2451
  props: {
2439
- ...W(St)
2452
+ ...Z($t)
2440
2453
  },
2441
2454
  setup(e) {
2442
- const t = e, r = z(j()), { orientation: n, options: a } = S(t), o = d(
2455
+ const t = e, r = W(H()), { orientation: n, options: a } = I(t), o = d(
2443
2456
  () => va[n.value || b.VERTICAL]
2444
- ), { allOptions: s } = N(a, o);
2445
- return { __sfc: !0, props: t, slots: r, orientation: n, options: a, baseOptions: o, allOptions: s, LumeChart: Y, LumeBarGroup: Pt };
2457
+ ), { allOptions: s } = C(a, o);
2458
+ return { __sfc: !0, props: t, slots: r, orientation: n, options: a, baseOptions: o, allOptions: s, LumeChart: Y, LumeBarGroup: Rt };
2446
2459
  }
2447
2460
  });
2448
2461
  var ha = function() {
@@ -2464,30 +2477,30 @@ var ha = function() {
2464
2477
  null,
2465
2478
  null
2466
2479
  );
2467
- const Qa = ga.exports, ya = {
2480
+ const qa = ga.exports, ya = {
2468
2481
  [b.VERTICAL]: {
2469
2482
  withTooltip: !0,
2470
2483
  xAxisOptions: {},
2471
2484
  yAxisOptions: { gridLines: !0 },
2472
- margins: G.VERTICAL
2485
+ margins: M.VERTICAL
2473
2486
  },
2474
2487
  [b.HORIZONTAL]: {
2475
2488
  withTooltip: !0,
2476
2489
  xAxisOptions: { gridLines: !0 },
2477
2490
  yAxisOptions: { gridLines: !1 },
2478
- margins: G.HORIZONTAL,
2491
+ margins: M.HORIZONTAL,
2479
2492
  tooltipOptions: { position: "right" }
2480
2493
  }
2481
- }, ba = /* @__PURE__ */ k({
2494
+ }, ba = /* @__PURE__ */ $({
2482
2495
  __name: "lume-grouped-bar-chart",
2483
2496
  props: {
2484
- ...W()
2497
+ ...Z()
2485
2498
  },
2486
2499
  setup(e) {
2487
- const t = e, r = z(j()), { orientation: n, options: a } = S(t), o = d(
2500
+ const t = e, r = W(H()), { orientation: n, options: a } = I(t), o = d(
2488
2501
  () => ya[n.value || b.VERTICAL]
2489
- ), { allOptions: s } = N(a, o);
2490
- return { __sfc: !0, props: t, slots: r, orientation: n, options: a, baseOptions: o, allOptions: s, LumeChart: Y, LumeBarGroup: Pt };
2502
+ ), { allOptions: s } = C(a, o);
2503
+ return { __sfc: !0, props: t, slots: r, orientation: n, options: a, baseOptions: o, allOptions: s, LumeChart: Y, LumeBarGroup: Rt };
2491
2504
  }
2492
2505
  });
2493
2506
  var Ta = function() {
@@ -2509,36 +2522,36 @@ var Ta = function() {
2509
2522
  null,
2510
2523
  null
2511
2524
  );
2512
- const to = Oa.exports, xa = {
2525
+ const to = Oa.exports, ka = {
2513
2526
  [b.VERTICAL]: {
2514
2527
  withTooltip: !0,
2515
2528
  xAxisOptions: {},
2516
2529
  yAxisOptions: { gridLines: !0 },
2517
- margins: G.VERTICAL
2530
+ margins: M.VERTICAL
2518
2531
  },
2519
2532
  [b.HORIZONTAL]: {
2520
2533
  withTooltip: !0,
2521
2534
  xAxisOptions: { gridLines: !0 },
2522
2535
  yAxisOptions: { gridLines: !1 },
2523
- margins: G.HORIZONTAL,
2536
+ margins: M.HORIZONTAL,
2524
2537
  tooltipOptions: { position: "right" }
2525
2538
  }
2526
- }, La = /* @__PURE__ */ k({
2539
+ }, xa = /* @__PURE__ */ $({
2527
2540
  __name: "lume-stacked-bar-chart",
2528
2541
  props: {
2529
- ...W()
2542
+ ...Z()
2530
2543
  },
2531
2544
  setup(e) {
2532
- const t = e, r = z(j()), { data: n, orientation: a, options: o } = S(t), s = d(
2533
- () => xa[a.value || b.VERTICAL]
2534
- ), { allOptions: i } = N(o, s), { internalData: l } = ct(n), { groupedData: u } = pe(l), { stackedXScaleGenerator: c, stackedYScaleGenerator: f } = ua(
2545
+ const t = e, r = W(H()), { data: n, orientation: a, options: o } = I(t), s = d(
2546
+ () => ka[a.value || b.VERTICAL]
2547
+ ), { allOptions: i } = C(o, s), { internalData: l } = ct(n), { groupedData: u } = fe(l), { stackedXScaleGenerator: c, stackedYScaleGenerator: f } = ua(
2535
2548
  u,
2536
2549
  a
2537
2550
  );
2538
- return { __sfc: !0, props: t, slots: r, data: n, orientation: a, options: o, baseOptions: s, allOptions: i, internalData: l, groupedData: u, stackedXScaleGenerator: c, stackedYScaleGenerator: f, LumeChart: Y, LumeBarGroup: Pt };
2551
+ return { __sfc: !0, props: t, slots: r, data: n, orientation: a, options: o, baseOptions: s, allOptions: i, internalData: l, groupedData: u, stackedXScaleGenerator: c, stackedYScaleGenerator: f, LumeChart: Y, LumeBarGroup: Rt };
2539
2552
  }
2540
2553
  });
2541
- var $a = function() {
2554
+ var La = function() {
2542
2555
  var t = this, r = t._self._c, n = t._self._setupProxy;
2543
2556
  return r(n.LumeChart, t._b({ attrs: { "chart-type": "stacked-bar", options: n.allOptions, "x-scale": n.stackedXScaleGenerator, "y-scale": n.stackedYScaleGenerator, "data-j-stacked-bar-chart": "" }, scopedSlots: t._u([{ key: "groups", fn: function(a) {
2544
2557
  return [r(n.LumeBarGroup, t._b({ attrs: { type: "stacked" } }, "lume-bar-group", a, !1))];
@@ -2547,10 +2560,10 @@ var $a = function() {
2547
2560
  return [t._t(o, null, null, s || {})];
2548
2561
  } };
2549
2562
  })], null, !0) }, "lume-chart", n.props, !1));
2550
- }, ka = [], wa = /* @__PURE__ */ w(
2563
+ }, $a = [], wa = /* @__PURE__ */ w(
2564
+ xa,
2551
2565
  La,
2552
2566
  $a,
2553
- ka,
2554
2567
  !1,
2555
2568
  null,
2556
2569
  null,
@@ -2558,7 +2571,7 @@ var $a = function() {
2558
2571
  null
2559
2572
  );
2560
2573
  const eo = wa.exports;
2561
- function fe(e) {
2574
+ function ve(e) {
2562
2575
  function t(o) {
2563
2576
  let s = null;
2564
2577
  return o == null ? void 0 : o.reduce((i, l, u) => (l == null || l.value == null ? (s ? s.push(u) : s = [u], u === (o == null ? void 0 : o.length) - 1 && i.push(s)) : s && (i.push(s), s = null), i), []);
@@ -2594,7 +2607,7 @@ function fe(e) {
2594
2607
  u.length,
2595
2608
  u.indexOf(l)
2596
2609
  ),
2597
- label: ne
2610
+ label: re
2598
2611
  };
2599
2612
  }
2600
2613
  return i;
@@ -2602,19 +2615,19 @@ function fe(e) {
2602
2615
  };
2603
2616
  })) };
2604
2617
  }
2605
- function Sa(e, t) {
2606
- const r = Ct(e) / 2;
2618
+ function Ia(e, t) {
2619
+ const r = wt(e) / 2;
2607
2620
  return (n, a) => e(e.domain()[t + (a - 1)]) + r;
2608
2621
  }
2609
- function Ca(e, t) {
2622
+ function Sa(e, t) {
2610
2623
  return (r, n) => e(t + (n - 1));
2611
2624
  }
2612
- function Ia(e, t, r, n) {
2625
+ function Ra(e, t, r, n) {
2613
2626
  return we().x(
2614
- M(r) ? Sa(r, e) : Ca(r, e)
2627
+ z(r) ? Ia(r, e) : Sa(r, e)
2615
2628
  ).y((o) => n(o))(t);
2616
2629
  }
2617
- const Yt = 1, Ra = /* @__PURE__ */ k({
2630
+ const Ut = 1, Da = /* @__PURE__ */ $({
2618
2631
  __name: "lume-line-group",
2619
2632
  props: {
2620
2633
  ...ft(),
@@ -2628,19 +2641,19 @@ const Yt = 1, Ra = /* @__PURE__ */ k({
2628
2641
  }
2629
2642
  },
2630
2643
  setup(e) {
2631
- const t = e, { data: r, options: n, xScale: a, yScale: o } = S(t), s = d(() => {
2644
+ const t = e, { data: r, options: n, xScale: a, yScale: o } = I(t), s = d(() => {
2632
2645
  if (r.value.every((y) => y.isDashed))
2633
2646
  return r.value;
2634
- const { computedLineData: v } = fe(r);
2647
+ const { computedLineData: v } = ve(r);
2635
2648
  if (n.value.withTooltip !== !1) {
2636
- const { updateTooltipAnchorAttributes: y } = le(a, o);
2649
+ const { updateTooltipAnchorAttributes: y } = ce(a, o);
2637
2650
  y(v.value);
2638
2651
  }
2639
2652
  return v.value;
2640
2653
  }), i = d(() => {
2641
2654
  if (t.hoveredIndex === -1)
2642
2655
  return;
2643
- const v = Qe(
2656
+ const v = qe(
2644
2657
  s.value,
2645
2658
  t.hoveredIndex
2646
2659
  );
@@ -2649,25 +2662,25 @@ const Yt = 1, Ra = /* @__PURE__ */ k({
2649
2662
  V ${o.value(v)}`
2650
2663
  };
2651
2664
  }), l = d(
2652
- () => a.value && Yt / (tn(a.value) - 1)
2665
+ () => a.value && Ut / (tn(a.value) - 1)
2653
2666
  ), u = d(
2654
2667
  () => {
2655
2668
  var v;
2656
2669
  return ((v = n.value) == null ? void 0 : v.lineWidth) * 2 || void 0;
2657
2670
  }
2658
- ), c = d(() => Ct(a.value) / 2), f = d(() => a.value.domain());
2671
+ ), c = d(() => wt(a.value) / 2), f = d(() => a.value.domain());
2659
2672
  function _(v) {
2660
2673
  return s.value[v].values;
2661
2674
  }
2662
2675
  function m(v, y) {
2663
- var T, $;
2664
- const O = v === 0 ? [] : [
2676
+ var T, k;
2677
+ const A = v === 0 ? [] : [
2665
2678
  (T = _(y)[v - 1]) == null ? void 0 : T.value,
2666
- ($ = _(y)[v]) == null ? void 0 : $.value
2679
+ (k = _(y)[v]) == null ? void 0 : k.value
2667
2680
  ];
2668
- return Ia(
2681
+ return Ra(
2669
2682
  v,
2670
- O,
2683
+ A,
2671
2684
  a.value,
2672
2685
  o.value
2673
2686
  ) || "";
@@ -2680,16 +2693,16 @@ const Yt = 1, Ra = /* @__PURE__ */ k({
2680
2693
  }
2681
2694
  function h(v, y) {
2682
2695
  var T;
2683
- const O = (T = _(y)[v]) == null ? void 0 : T.value;
2696
+ const A = (T = _(y)[v]) == null ? void 0 : T.value;
2684
2697
  return {
2685
- x: M(a.value) ? t.xScale(f.value[v]) + c.value : t.xScale(v),
2686
- y: o.value(O)
2698
+ x: z(a.value) ? t.xScale(f.value[v]) + c.value : t.xScale(v),
2699
+ y: o.value(A)
2687
2700
  };
2688
2701
  }
2689
2702
  function g(v) {
2690
2703
  return t.hoveredIndex === v;
2691
2704
  }
2692
- return { __sfc: !0, LUME_TRANSITION_TIME_FULL: Yt, props: t, data: r, options: n, xScale: a, yScale: o, computedGroupData: s, overlayLineAttributes: i, animationDuration: l, pointRadius: u, xAxisOffset: c, domain: f, getValuesFromDataset: _, getPathDefinition: m, getLineTransitionParams: p, getPointPosition: h, isPointActive: g, LumeLine: ar, LumePoint: lr };
2705
+ return { __sfc: !0, LUME_TRANSITION_TIME_FULL: Ut, props: t, data: r, options: n, xScale: a, yScale: o, computedGroupData: s, overlayLineAttributes: i, animationDuration: l, pointRadius: u, xAxisOffset: c, domain: f, getValuesFromDataset: _, getPathDefinition: m, getLineTransitionParams: p, getPointPosition: h, isPointActive: g, LumeLine: ar, LumePoint: lr };
2693
2706
  }
2694
2707
  });
2695
2708
  var Pa = function() {
@@ -2701,30 +2714,30 @@ var Pa = function() {
2701
2714
  return r(n.LumePoint, t._b({ key: `point-${i}`, attrs: { active: n.isPointActive(i), color: a.color, index: i, radius: n.pointRadius } }, "lume-point", n.getPointPosition(i, o), !1));
2702
2715
  }), 1) : t._e()]);
2703
2716
  })], 2);
2704
- }, Da = [], Ea = /* @__PURE__ */ w(
2705
- Ra,
2706
- Pa,
2717
+ }, Ea = [], Ca = /* @__PURE__ */ w(
2707
2718
  Da,
2719
+ Pa,
2720
+ Ea,
2708
2721
  !1,
2709
2722
  null,
2710
2723
  "d5c53b3e",
2711
2724
  null,
2712
2725
  null
2713
2726
  );
2714
- const ve = Ea.exports, Na = {
2715
- margins: G.VERTICAL,
2727
+ const _e = Ca.exports, Na = {
2728
+ margins: M.VERTICAL,
2716
2729
  startOnZero: !0,
2717
2730
  withTooltip: !0,
2718
2731
  xAxisOptions: {},
2719
2732
  yAxisOptions: { gridLines: !0 }
2720
- }, Ba = /* @__PURE__ */ k({
2733
+ }, Ba = /* @__PURE__ */ $({
2721
2734
  __name: "lume-line-chart",
2722
2735
  props: {
2723
- ...W(null, !1)
2736
+ ...Z(null, !1)
2724
2737
  },
2725
2738
  setup(e) {
2726
- const t = e, r = z(j()), { options: n } = S(t), { allOptions: a } = N(n, Na);
2727
- return { __sfc: !0, props: t, slots: r, options: n, allOptions: a, LumeChart: Y, LumeLineGroup: ve };
2739
+ const t = e, r = W(H()), { options: n } = I(t), { allOptions: a } = C(n, Na);
2740
+ return { __sfc: !0, props: t, slots: r, options: n, allOptions: a, LumeChart: Y, LumeLineGroup: _e };
2728
2741
  }
2729
2742
  });
2730
2743
  var Ha = function() {
@@ -2736,10 +2749,10 @@ var Ha = function() {
2736
2749
  return [t._t(o, null, null, s || {})];
2737
2750
  } };
2738
2751
  })], null, !0) }, "lume-chart", n.props, !1));
2739
- }, ja = [], Va = /* @__PURE__ */ w(
2752
+ }, Ga = [], Va = /* @__PURE__ */ w(
2740
2753
  Ba,
2741
2754
  Ha,
2742
- ja,
2755
+ Ga,
2743
2756
  !1,
2744
2757
  null,
2745
2758
  null,
@@ -2747,17 +2760,17 @@ var Ha = function() {
2747
2760
  null
2748
2761
  );
2749
2762
  const no = Va.exports;
2750
- function Fa(e) {
2763
+ function ja(e) {
2751
2764
  return { areaPathDefinition: d(
2752
2765
  () => function(r, n) {
2753
2766
  if (!r || !n)
2754
2767
  return;
2755
2768
  const a = e.value[0].values;
2756
- return Se().x((o, s) => r(s)).y0(n(Math.min(...n.domain()))).y1((o) => n(o.value))(a);
2769
+ return Ie().x((o, s) => r(s)).y0(n(Math.min(...n.domain()))).y1((o) => n(o.value))(a);
2757
2770
  }
2758
2771
  ) };
2759
2772
  }
2760
- const Ga = {
2773
+ const Fa = {
2761
2774
  margins: {
2762
2775
  top: 0,
2763
2776
  right: 0,
@@ -2771,14 +2784,14 @@ const Ga = {
2771
2784
  tooltipOptions: {
2772
2785
  showTitle: !1
2773
2786
  }
2774
- }, Ma = /* @__PURE__ */ k({
2787
+ }, Ma = /* @__PURE__ */ $({
2775
2788
  __name: "lume-sparkline-chart",
2776
2789
  props: {
2777
- ...se(null),
2790
+ ...ie(null),
2778
2791
  ...dt()
2779
2792
  },
2780
2793
  setup(e, { expose: t }) {
2781
- const r = e, n = z(j()), { data: a, options: o } = S(r), { internalData: s } = ct(a), { allOptions: i } = N(o, Ga), { computedLineData: l } = fe(s), { areaPathDefinition: u } = Fa(l), c = d(() => s.value[0].color), f = d(
2794
+ const r = e, n = W(H()), { data: a, options: o } = I(r), { internalData: s } = ct(a), { allOptions: i } = C(o, Fa), { computedLineData: l } = ve(s), { areaPathDefinition: u } = ja(l), c = d(() => s.value[0].color), f = d(
2782
2795
  () => a.value[0].areaColor || c.value
2783
2796
  );
2784
2797
  function _(p) {
@@ -2788,11 +2801,11 @@ const Ga = {
2788
2801
  };
2789
2802
  }
2790
2803
  function m(p, h, g) {
2791
- return Q().range([0, g.width]).domain([0, p[0].values.length - 1]);
2804
+ return q().range([0, g.width]).domain([0, p[0].values.length - 1]);
2792
2805
  }
2793
2806
  return t({
2794
2807
  areaPathDefinition: u
2795
- }), { __sfc: !0, props: r, slots: n, data: a, options: o, internalData: s, allOptions: i, computedLineData: l, areaPathDefinition: u, computedColor: c, areaColor: f, getSparklineOptions: _, xScaleGenerator: m, LumeChart: Y, LumeLineGroup: ve };
2808
+ }), { __sfc: !0, props: r, slots: n, data: a, options: o, internalData: s, allOptions: i, computedLineData: l, areaPathDefinition: u, computedColor: c, areaColor: f, getSparklineOptions: _, xScaleGenerator: m, LumeChart: Y, LumeLineGroup: _e };
2796
2809
  }
2797
2810
  });
2798
2811
  var za = function() {
@@ -2820,24 +2833,24 @@ var za = function() {
2820
2833
  );
2821
2834
  const ro = Za.exports;
2822
2835
  export {
2823
- In as L,
2824
- Ja as a,
2825
- Qa as b,
2836
+ Rn as L,
2837
+ Qa as a,
2838
+ qa as b,
2826
2839
  to as c,
2827
2840
  eo as d,
2828
2841
  no as e,
2829
2842
  ro as f,
2830
2843
  Y as g,
2831
2844
  Bn as h,
2832
- Gn as i,
2845
+ Fn as i,
2833
2846
  Xn as j,
2834
- Rt as k,
2835
- Ka as l,
2847
+ St as k,
2848
+ Ja as l,
2836
2849
  ar as m,
2837
2850
  lr as n,
2838
2851
  Wr as o,
2839
- Pt as p,
2840
- ve as q,
2852
+ Rt as p,
2853
+ _e as q,
2841
2854
  hr as r
2842
2855
  };
2843
- //# sourceMappingURL=26830389.js.map
2856
+ //# sourceMappingURL=bb1b9da1.js.map