@blueprint-chart/lib 2.2.1 → 2.2.3

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.
@@ -66,17 +66,17 @@ var c = Object.create, l = Object.defineProperty, u = Object.getOwnPropertyDescr
66
66
  return e.Both = "both", e.Vertical = "vertical", e.Horizontal = "horizontal", e;
67
67
  }({}), V = /* @__PURE__ */ function(e) {
68
68
  return e.Solid = "solid", e.Dashed = "dashed", e.Dotted = "dotted", e;
69
- }({}), ee = /* @__PURE__ */ function(e) {
70
- return e.Normal = "normal", e.Percent = "percent", e;
71
69
  }({}), H = /* @__PURE__ */ function(e) {
72
- return e.Solid = "solid", e.Dashed = "dashed", e.Dotted = "dotted", e.None = "none", e;
70
+ return e.Normal = "normal", e.Percent = "percent", e;
73
71
  }({}), U = /* @__PURE__ */ function(e) {
74
- return e.Colors = "colors", e.Boolean = "boolean", e.Select = "select", e.Text = "text", e.NumberFormat = "numberFormat", e.DateFormat = "dateFormat", e;
72
+ return e.Solid = "solid", e.Dashed = "dashed", e.Dotted = "dotted", e.None = "none", e;
75
73
  }({}), W = /* @__PURE__ */ function(e) {
76
- return e.Off = "", e.Auto = "auto", e.Outside = "outside", e.Inside = "inside", e;
74
+ return e.Colors = "colors", e.Boolean = "boolean", e.Select = "select", e.Text = "text", e.NumberFormat = "numberFormat", e.DateFormat = "dateFormat", e;
77
75
  }({}), G = /* @__PURE__ */ function(e) {
78
- return e.Linear = "linear", e.MonotoneX = "monotoneX", e.Step = "step", e.StepBefore = "stepBefore", e.StepAfter = "stepAfter", e.Basis = "basis", e.Cardinal = "cardinal", e.CatmullRom = "catmullRom", e;
76
+ return e.Off = "", e.Auto = "auto", e.Outside = "outside", e.Inside = "inside", e;
79
77
  }({}), K = /* @__PURE__ */ function(e) {
78
+ return e.Linear = "linear", e.MonotoneX = "monotoneX", e.Step = "step", e.StepBefore = "stepBefore", e.StepAfter = "stepAfter", e.Basis = "basis", e.Cardinal = "cardinal", e.CatmullRom = "catmullRom", e;
79
+ }({}), ee = /* @__PURE__ */ function(e) {
80
80
  return e.Property = "property", e.Data = "data", e.Colorize = "colorize", e.Highlight = "highlight", e.AreaFill = "area-fill", e.Annotation = "annotation", e.Series = "series", e.Scene = "scene", e.Transform = "transform", e.Chart = "chart", e;
81
81
  }({}), te = /* @__PURE__ */ function(e) {
82
82
  return e.Sort = "sort", e.Filter = "filter", e.HideColumns = "hide-columns", e.Transpose = "transpose", e.Parse = "parse", e.Rename = "rename", e.GroupBy = "group-by", e.Computed = "computed", e;
@@ -162,7 +162,7 @@ var c = Object.create, l = Object.defineProperty, u = Object.getOwnPropertyDescr
162
162
  });
163
163
  }
164
164
  };
165
- function re(e) {
165
+ function Y(e) {
166
166
  let t = [];
167
167
  return e.title && t.push({
168
168
  tag: "h3",
@@ -174,7 +174,7 @@ function re(e) {
174
174
  text: e.description
175
175
  }), t;
176
176
  }
177
- function ie(e) {
177
+ function re(e) {
178
178
  let t = [];
179
179
  return e.byline && t.push({
180
180
  tag: "span",
@@ -188,7 +188,7 @@ function ie(e) {
188
188
  href: e.sourceUrl || void 0
189
189
  }), t;
190
190
  }
191
- function Y() {
191
+ function ie() {
192
192
  return [{
193
193
  tag: "a",
194
194
  className: "bc-frame-credit",
@@ -238,9 +238,9 @@ function de(t, n) {
238
238
  };
239
239
  let r = n ?? {};
240
240
  new ne(e.select(t)).draw({
241
- headerItems: re(r),
242
- footerLeftItems: ie(r),
243
- footerRightItems: Y()
241
+ headerItems: Y(r),
242
+ footerLeftItems: re(r),
243
+ footerRightItems: ie()
244
244
  });
245
245
  let i = t.querySelector(".bc-frame"), a = i.querySelector(".bc-frame-header"), o = i.querySelector(".bc-frame-body"), s = i.querySelector(".bc-frame-note"), c = i.querySelector(".bc-frame-footer");
246
246
  if (r.padding) {
@@ -3231,22 +3231,22 @@ function Fi(t, n, r = {}, i = !1) {
3231
3231
  options: L
3232
3232
  }
3233
3233
  }), !M && N < 0 && P > 0 && e.select(_).append("line").attr("class", "bc-zero-baseline").attr("x1", 0).attr("x2", v).attr("y1", F(0)).attr("y2", F(0)).attr("stroke", "#666").attr("stroke-width", 1);
3234
- let R = Ar(r.colorizes), B = fi(r.highlights, A), V = _.ownerSVGElement, ee = Ir(V, t, "bars", {
3234
+ let R = Ar(r.colorizes), B = fi(r.highlights, A), V = _.ownerSVGElement, H = Ir(V, t, "bars", {
3235
3235
  x: 0,
3236
3236
  y: 0,
3237
3237
  width: v,
3238
3238
  height: S
3239
- }), H = e.select(V).select("defs"), U = ee.replace(/^bc-clip-/, ""), W = e.select(_).append("g").attr("clip-path", `url(#${ee})`);
3239
+ }), U = e.select(V).select("defs"), W = H.replace(/^bc-clip-/, ""), G = e.select(_).append("g").attr("clip-path", `url(#${H})`);
3240
3240
  if (r.barBackground) {
3241
3241
  let e = (r.colors ?? Mi)[0], t = O ? A : E.map((e) => e.label);
3242
- W.selectAll(".bc-bar-bg").data(t, (e) => e).enter().append("rect").attr("class", "bc-bar-bg").attr("x", (e) => j(e) ?? 0).attr("y", 0).attr("width", j.bandwidth()).attr("height", S).attr("fill", e).attr("opacity", .18);
3242
+ G.selectAll(".bc-bar-bg").data(t, (e) => e).enter().append("rect").attr("class", "bc-bar-bg").attr("x", (e) => j(e) ?? 0).attr("y", 0).attr("width", j.bandwidth()).attr("height", S).attr("fill", e).attr("opacity", .18);
3243
3243
  }
3244
- let G = O ? A : E.map((e) => e.label);
3245
- if (r.barSeparators && G.length > 1) {
3244
+ let K = O ? A : E.map((e) => e.label);
3245
+ if (r.barSeparators && K.length > 1) {
3246
3246
  let e = j.step();
3247
- for (let t = 1; t < G.length; t++) {
3248
- let n = (j(G[t - 1]) ?? 0) + j.bandwidth() + (e - j.bandwidth()) / 2;
3249
- W.append("line").attr("class", "bc-bar-separator").attr("x1", n).attr("x2", n).attr("y1", 0).attr("y2", S).attr("stroke", "currentColor").attr("opacity", .15);
3247
+ for (let t = 1; t < K.length; t++) {
3248
+ let n = (j(K[t - 1]) ?? 0) + j.bandwidth() + (e - j.bandwidth()) / 2;
3249
+ G.append("line").attr("class", "bc-bar-separator").attr("x1", n).attr("x2", n).attr("y1", 0).attr("y2", S).attr("stroke", "currentColor").attr("opacity", .15);
3250
3250
  }
3251
3251
  }
3252
3252
  if (!O && r.connectedColumns && E.length > 1) {
@@ -3257,13 +3257,13 @@ function Fi(t, n, r = {}, i = !1) {
3257
3257
  let a = (j(r.label) ?? 0) + j.bandwidth(), o = j(i.label) ?? 0, s = Math.min(F(0), F(r.value)), c = Math.min(F(0), F(i.value)), l = F(0), u = R.get(r.label) ?? e[0], d = R.get(i.label) ?? e[0], f;
3258
3258
  if (u === d) f = u;
3259
3259
  else {
3260
- let e = `bc-conn-grad-${U}-${n}`, t = H.append("linearGradient").attr("id", e).attr("x1", "0%").attr("x2", "100%").attr("y1", "0%").attr("y2", "0%");
3260
+ let e = `bc-conn-grad-${W}-${n}`, t = U.append("linearGradient").attr("id", e).attr("x1", "0%").attr("x2", "100%").attr("y1", "0%").attr("y2", "0%");
3261
3261
  t.append("stop").attr("offset", "0%").attr("stop-color", u), t.append("stop").attr("offset", "100%").attr("stop-color", d), f = `url(#${e})`;
3262
3262
  }
3263
- W.append("polygon").attr("class", "bc-bar-connection").attr("points", `${a},${s} ${o},${c} ${o},${l} ${a},${l}`).attr("fill", f).attr("opacity", t).attr("pointer-events", "none");
3263
+ G.append("polygon").attr("class", "bc-bar-connection").attr("points", `${a},${s} ${o},${c} ${o},${l} ${a},${l}`).attr("fill", f).attr("opacity", t).attr("pointer-events", "none");
3264
3264
  }
3265
3265
  }
3266
- let K = e.select(_).append("g");
3266
+ let ee = e.select(_).append("g");
3267
3267
  if (O) {
3268
3268
  let e = r.colors ?? Mi, t = "#333";
3269
3269
  if (r.connectedColumns && k.length > 1) {
@@ -3274,26 +3274,26 @@ function Fi(t, n, r = {}, i = !1) {
3274
3274
  let a = (j(r.label) ?? 0) + j.bandwidth(), o = j(i.label) ?? 0, s = F(r.y1), c = F(i.y1), l = F(r.y0), u = F(i.y0), d = R.get(r.label) ?? e[0], f = R.get(i.label) ?? e[0], p;
3275
3275
  if (d === f) p = d;
3276
3276
  else {
3277
- let e = `bc-conn-grad-${U}-${n}`, t = H.append("linearGradient").attr("id", e).attr("x1", "0%").attr("x2", "100%").attr("y1", "0%").attr("y2", "0%");
3277
+ let e = `bc-conn-grad-${W}-${n}`, t = U.append("linearGradient").attr("id", e).attr("x1", "0%").attr("x2", "100%").attr("y1", "0%").attr("y2", "0%");
3278
3278
  t.append("stop").attr("offset", "0%").attr("stop-color", d), t.append("stop").attr("offset", "100%").attr("stop-color", f), p = `url(#${e})`;
3279
3279
  }
3280
- W.append("polygon").attr("class", "bc-bar-connection").attr("points", `${a},${s} ${o},${c} ${o},${u} ${a},${l}`).attr("fill", p).attr("opacity", t).attr("pointer-events", "none");
3280
+ G.append("polygon").attr("class", "bc-bar-connection").attr("points", `${a},${s} ${o},${c} ${o},${u} ${a},${l}`).attr("fill", p).attr("opacity", t).attr("pointer-events", "none");
3281
3281
  }
3282
3282
  }
3283
3283
  for (let e = 0; e < k.length - 1; e++) {
3284
3284
  let t = k[e], n = k[e + 1];
3285
3285
  if (n.isTotal) break;
3286
- W.append("line").attr("class", "bc-waterfall-connector").attr("x1", (j(t.label) ?? 0) + j.bandwidth()).attr("x2", j(n.label) ?? 0).attr("y1", F(t.y1)).attr("y2", F(t.y1)).attr("stroke", "currentColor").attr("stroke-dasharray", "2,2").attr("opacity", .3);
3286
+ G.append("line").attr("class", "bc-waterfall-connector").attr("x1", (j(t.label) ?? 0) + j.bandwidth()).attr("x2", j(n.label) ?? 0).attr("y1", F(t.y1)).attr("y2", F(t.y1)).attr("stroke", "currentColor").attr("stroke-dasharray", "2,2").attr("opacity", .3);
3287
3287
  }
3288
- if (W.selectAll(".bc-bar").data(k, (e) => e.label).enter().append("rect").attr("class", "bc-bar").attr("x", (e) => j(e.label) ?? 0).attr("y", (e) => Math.min(F(e.y0), F(e.y1))).attr("width", j.bandwidth()).attr("height", (e) => Math.abs(F(e.y0) - F(e.y1))).attr("fill", (n) => n.isTotal ? t : R.get(n.label) ?? e[0]).attr("opacity", (e) => B.size > 0 ? pi(B, e.label) : null), r.valueLabels) {
3288
+ if (G.selectAll(".bc-bar").data(k, (e) => e.label).enter().append("rect").attr("class", "bc-bar").attr("x", (e) => j(e.label) ?? 0).attr("y", (e) => Math.min(F(e.y0), F(e.y1))).attr("width", j.bandwidth()).attr("height", (e) => Math.abs(F(e.y0) - F(e.y1))).attr("fill", (n) => n.isTotal ? t : R.get(n.label) ?? e[0]).attr("opacity", (e) => B.size > 0 ? pi(B, e.label) : null), r.valueLabels) {
3289
3289
  let n = r.valueLabelPosition ?? z.Auto, i = me(r.verticalAxis?.numberFormat ?? ""), a = (e) => i ? i(e) : String(e);
3290
- K.selectAll(".bc-value-label").data(k, (e) => e.label).enter().append("text").attr("class", "bc-value-label").attr("font-size", "11px").attr("x", (e) => (j(e.label) ?? 0) + j.bandwidth() / 2).attr("y", (e) => {
3290
+ ee.selectAll(".bc-value-label").data(k, (e) => e.label).enter().append("text").attr("class", "bc-value-label").attr("font-size", "11px").attr("x", (e) => (j(e.label) ?? 0) + j.bandwidth() / 2).attr("y", (e) => {
3291
3291
  let t = Math.min(F(e.y0), F(e.y1)), r = Math.abs(F(e.y0) - F(e.y1));
3292
3292
  return n === z.Inside ? t + r / 2 : t - 4;
3293
3293
  }).attr("text-anchor", "middle").attr("dominant-baseline", n === z.Inside ? "central" : "auto").attr("fill", (r) => n === z.Inside ? Ke(r.isTotal ? t : R.get(r.label) ?? e[0]) : "currentColor").text((e) => D ? e.label : a(e.isTotal ? e.y1 : e.value));
3294
3294
  }
3295
3295
  } else {
3296
- let n = Ur(t), a = W.append("g").node();
3296
+ let n = Ur(t), a = G.append("g").node();
3297
3297
  if (i) for (let e of l) a.appendChild(e);
3298
3298
  ti(n, {
3299
3299
  role: "mark-per-category",
@@ -3312,13 +3312,13 @@ function Fi(t, n, r = {}, i = !1) {
3312
3312
  })
3313
3313
  }), li(n, {
3314
3314
  svg: V,
3315
- clipId: ee,
3315
+ clipId: H,
3316
3316
  group: _,
3317
3317
  from: c,
3318
3318
  to: w,
3319
3319
  active: i && l.length > 0
3320
3320
  });
3321
- let s = Rr(W);
3321
+ let s = Rr(G);
3322
3322
  r.tooltips && s.use(zn({ numberFormat: r.verticalAxis?.numberFormat })), r.crosshair && s.use(Vn({
3323
3323
  width: v,
3324
3324
  height: S,
@@ -3338,7 +3338,7 @@ function Fi(t, n, r = {}, i = !1) {
3338
3338
  let u = () => s.draw(E);
3339
3339
  if (n.state === "committing" ? n.register(u) : u(), r.valueLabels) {
3340
3340
  let t = me(r.verticalAxis?.numberFormat ?? "");
3341
- Li(K, E, j, F, {
3341
+ Li(ee, E, j, F, {
3342
3342
  position: r.valueLabelPosition,
3343
3343
  colorOverrides: R,
3344
3344
  colors: r.colors ?? Mi,
@@ -3363,7 +3363,7 @@ function Fi(t, n, r = {}, i = !1) {
3363
3363
  chartType: "bar-vertical",
3364
3364
  margin: b,
3365
3365
  plotRect: w
3366
- }), a && (Dt(W.node()), Ot(t, a));
3366
+ }), a && (Dt(G.node()), Ot(t, a));
3367
3367
  }
3368
3368
  function Ii(e, t, n, r, i) {
3369
3369
  let a = (t(e.label) ?? 0) + t.bandwidth() / 2, o = "middle", s = (e) => Math.max(0, Math.min(i.plotHeight, e)), c = s(Math.min(n(0), n(e.value))), l = s(Math.max(n(0), n(e.value))), u = e.value < 0, d = n(e.value), f = d < 0 || d > i.plotHeight, p = u ? l + Ni : c - Ni, m = u ? p + Pi <= i.plotHeight + i.marginBottom : p - Pi >= -i.marginTop, h = l - c, g = (r === z.Inside || f || !m) && h >= 12;
@@ -3478,7 +3478,7 @@ function Vi(t, n, r = {}, i = !1) {
3478
3478
  })() : {
3479
3479
  ...r.verticalAxis,
3480
3480
  topPadding: T.top
3481
- }, ee = m ? {
3481
+ }, H = m ? {
3482
3482
  ...V,
3483
3483
  labelPosition: x.Off,
3484
3484
  ...p ? { showAxis: !1 } : {}
@@ -3495,16 +3495,16 @@ function Vi(t, n, r = {}, i = !1) {
3495
3495
  vertical: {
3496
3496
  scale: R,
3497
3497
  height: w,
3498
- options: ee
3498
+ options: H
3499
3499
  },
3500
3500
  order: "horizontal-first"
3501
3501
  }), !N && P < 0 && F > 0 && e.select(S).append("line").attr("class", "bc-zero-baseline").attr("x1", I(0)).attr("x2", I(0)).attr("y1", 0).attr("y2", w).attr("stroke", "#666").attr("stroke-width", 1);
3502
- let H = Ar(r.colorizes), U = fi(r.highlights, L), W = S.ownerSVGElement, G = Ir(W, t, "bars", {
3502
+ let U = Ar(r.colorizes), W = fi(r.highlights, L), G = S.ownerSVGElement, K = Ir(G, t, "bars", {
3503
3503
  x: 0,
3504
3504
  y: 0,
3505
3505
  width: C,
3506
3506
  height: w
3507
- }), K = e.select(W).select("defs"), te = G.replace(/^bc-clip-/, ""), q = e.select(S).append("g").attr("clip-path", `url(#${G})`);
3507
+ }), ee = e.select(G).select("defs"), te = K.replace(/^bc-clip-/, ""), q = e.select(S).append("g").attr("clip-path", `url(#${K})`);
3508
3508
  if (r.barBackground) {
3509
3509
  let e = (r.colors ?? zi)[0], t = A ? L : k.map((e) => e.label);
3510
3510
  q.selectAll(".bc-bar-bg").data(t, (e) => e).enter().append("rect").attr("class", "bc-bar-bg").attr("x", 0).attr("y", (e) => (R(e) ?? 0) + B).attr("width", C).attr("height", R.bandwidth() - B).attr("fill", e).attr("opacity", .18);
@@ -3522,10 +3522,10 @@ function Vi(t, n, r = {}, i = !1) {
3522
3522
  for (let n = 0; n < k.length - 1; n++) {
3523
3523
  let r = k[n], i = k[n + 1];
3524
3524
  if (r.value == null || i.value == null || Number.isNaN(r.value) || Number.isNaN(i.value) || r.value === 0 || i.value === 0) continue;
3525
- let a = (R(r.label) ?? 0) + R.bandwidth(), o = (R(i.label) ?? 0) + B, s = Math.max(I(0), I(r.value)), c = Math.max(I(0), I(i.value)), l = I(0), u = H.get(r.label) ?? e[0], d = H.get(i.label) ?? e[0], f;
3525
+ let a = (R(r.label) ?? 0) + R.bandwidth(), o = (R(i.label) ?? 0) + B, s = Math.max(I(0), I(r.value)), c = Math.max(I(0), I(i.value)), l = I(0), u = U.get(r.label) ?? e[0], d = U.get(i.label) ?? e[0], f;
3526
3526
  if (u === d) f = u;
3527
3527
  else {
3528
- let e = `bc-conn-grad-${te}-${n}`, t = K.append("linearGradient").attr("id", e).attr("x1", "0%").attr("x2", "0%").attr("y1", "0%").attr("y2", "100%");
3528
+ let e = `bc-conn-grad-${te}-${n}`, t = ee.append("linearGradient").attr("id", e).attr("x1", "0%").attr("x2", "0%").attr("y1", "0%").attr("y2", "100%");
3529
3529
  t.append("stop").attr("offset", "0%").attr("stop-color", u), t.append("stop").attr("offset", "100%").attr("stop-color", d), f = `url(#${e})`;
3530
3530
  }
3531
3531
  q.append("polygon").attr("class", "bc-bar-connection").attr("points", `${s},${a} ${c},${o} ${l},${o} ${l},${a}`).attr("fill", f).attr("opacity", t).attr("pointer-events", "none");
@@ -3538,10 +3538,10 @@ function Vi(t, n, r = {}, i = !1) {
3538
3538
  for (let n = 0; n < M.length - 1; n++) {
3539
3539
  let r = M[n], i = M[n + 1];
3540
3540
  if (i.isTotal || r.value == null || i.value == null || Number.isNaN(r.value) || Number.isNaN(i.value) || r.value === 0 || i.value === 0) continue;
3541
- let a = (R(r.label) ?? 0) + R.bandwidth(), o = (R(i.label) ?? 0) + B, s = I(r.x1), c = I(i.x1), l = I(r.x0), u = I(i.x0), d = H.get(r.label) ?? e[0], f = H.get(i.label) ?? e[0], p;
3541
+ let a = (R(r.label) ?? 0) + R.bandwidth(), o = (R(i.label) ?? 0) + B, s = I(r.x1), c = I(i.x1), l = I(r.x0), u = I(i.x0), d = U.get(r.label) ?? e[0], f = U.get(i.label) ?? e[0], p;
3542
3542
  if (d === f) p = d;
3543
3543
  else {
3544
- let e = `bc-conn-grad-${te}-${n}`, t = K.append("linearGradient").attr("id", e).attr("x1", "0%").attr("x2", "0%").attr("y1", "0%").attr("y2", "100%");
3544
+ let e = `bc-conn-grad-${te}-${n}`, t = ee.append("linearGradient").attr("id", e).attr("x1", "0%").attr("x2", "0%").attr("y1", "0%").attr("y2", "100%");
3545
3545
  t.append("stop").attr("offset", "0%").attr("stop-color", d), t.append("stop").attr("offset", "100%").attr("stop-color", f), p = `url(#${e})`;
3546
3546
  }
3547
3547
  q.append("polygon").attr("class", "bc-bar-connection").attr("points", `${s},${a} ${c},${o} ${u},${o} ${l},${a}`).attr("fill", p).attr("opacity", t).attr("pointer-events", "none");
@@ -3552,12 +3552,12 @@ function Vi(t, n, r = {}, i = !1) {
3552
3552
  if (n.isTotal) break;
3553
3553
  q.append("line").attr("class", "bc-waterfall-connector").attr("x1", I(t.x1)).attr("x2", I(t.x1)).attr("y1", (R(t.label) ?? 0) + R.bandwidth()).attr("y2", (R(n.label) ?? 0) + B).attr("stroke", "currentColor").attr("stroke-dasharray", "2,2").attr("opacity", .3);
3554
3554
  }
3555
- if (q.selectAll(".bc-bar").data(M, (e) => e.label).enter().append("rect").attr("class", "bc-bar").attr("x", (e) => Math.min(I(e.x0), I(e.x1))).attr("y", (e) => (R(e.label) ?? 0) + B).attr("width", (e) => Math.abs(I(e.x1) - I(e.x0))).attr("height", R.bandwidth() - B).attr("fill", (e) => e.isTotal ? n : H.get(e.label) ?? t[0]).attr("opacity", (e) => U.size > 0 ? pi(U, e.label) : null), r.valueLabels) {
3555
+ if (q.selectAll(".bc-bar").data(M, (e) => e.label).enter().append("rect").attr("class", "bc-bar").attr("x", (e) => Math.min(I(e.x0), I(e.x1))).attr("y", (e) => (R(e.label) ?? 0) + B).attr("width", (e) => Math.abs(I(e.x1) - I(e.x0))).attr("height", R.bandwidth() - B).attr("fill", (e) => e.isTotal ? n : U.get(e.label) ?? t[0]).attr("opacity", (e) => W.size > 0 ? pi(W, e.label) : null), r.valueLabels) {
3556
3556
  let r = _;
3557
3557
  e.select(S).append("g").selectAll(".bc-value-label").data(M, (e) => e.label).enter().append("text").attr("class", "bc-value-label").attr("font-size", "11px").attr("dominant-baseline", "central").attr("y", (e) => (R(e.label) ?? 0) + B + (R.bandwidth() - B) / 2).attr("x", (e) => {
3558
3558
  let t = Math.max(I(e.x0), I(e.x1));
3559
3559
  return r === z.Inside ? t - 4 : t + 4;
3560
- }).attr("text-anchor", r === z.Inside ? "end" : "start").attr("fill", (e) => r === z.Inside ? Ke(e.isTotal ? n : H.get(e.label) ?? t[0]) : "currentColor").text((e) => v ? e.label : b(e.isTotal ? e.x1 : e.value));
3560
+ }).attr("text-anchor", r === z.Inside ? "end" : "start").attr("fill", (e) => r === z.Inside ? Ke(e.isTotal ? n : U.get(e.label) ?? t[0]) : "currentColor").text((e) => v ? e.label : b(e.isTotal ? e.x1 : e.value));
3561
3561
  }
3562
3562
  } else {
3563
3563
  let n = Ur(t), a = q.append("g").node();
@@ -3574,12 +3574,12 @@ function Vi(t, n, r = {}, i = !1) {
3574
3574
  y: (R(e.label) ?? 0) + B,
3575
3575
  width: Math.abs(I(e.value) - I(0)),
3576
3576
  height: R.bandwidth() - B,
3577
- fill: H.get(e.label) ?? (r.colors ?? zi)[0],
3578
- opacity: pi(U, e.label)
3577
+ fill: U.get(e.label) ?? (r.colors ?? zi)[0],
3578
+ opacity: pi(W, e.label)
3579
3579
  })
3580
3580
  }), li(n, {
3581
- svg: W,
3582
- clipId: G,
3581
+ svg: G,
3582
+ clipId: K,
3583
3583
  group: S,
3584
3584
  from: l,
3585
3585
  to: E,
@@ -3607,7 +3607,7 @@ function Vi(t, n, r = {}, i = !1) {
3607
3607
  let u = () => s.draw(k);
3608
3608
  n.state === "committing" ? n.register(u) : u(), r.valueLabels && Ui(e.select(S).append("g"), k, I, R, {
3609
3609
  position: _,
3610
- colorOverrides: H,
3610
+ colorOverrides: U,
3611
3611
  colors: r.colors ?? zi,
3612
3612
  transition: i,
3613
3613
  swapLabelValue: v,
@@ -3770,34 +3770,34 @@ function sa(t, n, r = {}, i = !1) {
3770
3770
  for (let e of t.querySelectorAll(".bc-frame .bc-annotations, .bc-frame .bc-annotations-range")) for (let [t, n] of Un(e)) o.set(t, n);
3771
3771
  t.replaceChildren();
3772
3772
  }
3773
- let { body: d } = de(t, r.frame), f = n.series ?? [], p = f.filter((e) => !Qi(e.name, r.seriesOverrides)), m = p.map((e) => e.name), h = Ki(r.colors ?? ra, f.length), g = r.seriesOverrides, _ = r.directLabelling === !0 || r.directLabelling === "auto" && r.legend !== !0 || !!r.directLabelling && r.directLabelling !== "auto", v = _ ? "direct" : r.legend === !1 ? "none" : "legend", y = r.valueLabels ?? !1, b = r.valueLabelPosition ?? z.Auto, x = typeof r.directLabelling == "string" ? r.directLabelling : r.directLabelling ? W.Auto : W.Off, S = r.legend !== !1 && !_, C = bt(d).width, w = r.legendPosition ?? "top", T = C > 0 && C < 350 && (w === "left" || w === "right") ? "top" : w, E = r.legendAnchor ?? "start", D = p.flatMap((e) => e.values), O = _t(D, r.verticalAxis?.range, r.verticalAxis?.numberFormat, r.verticalAxis?.scaleType), k = vt(C, r.verticalAxis?.labelPosition, r.horizontalAxis?.labelPosition, r.verticalAxis?.direction, O), A = Math.max(0, C - (k.left ?? 50) - (k.right ?? 20)), j = rn(n.labels, A, r.horizontalAxis);
3774
- j !== void 0 && (k.bottom = j);
3775
- let M = k.top != null, N = Math.max(0, C - (k.left ?? 50) - (k.right ?? 20)), P = S ? yn(m, T, N) : {
3773
+ let { body: d } = de(t, r.frame), f = n.series ?? [], p = f.filter((e) => !Qi(e.name, r.seriesOverrides)), m = p.map((e) => e.name), h = Ki(r.colors ?? ra, f.length), g = r.seriesOverrides, _ = r.directLabelling === !0 || r.directLabelling === "auto" && r.legend !== !0 || !!r.directLabelling && r.directLabelling !== "auto", v = _ ? "direct" : r.legend === !1 ? "none" : "legend", y = r.valueLabels ?? !1, b = r.valueLabelPosition ?? z.Auto, x = typeof r.directLabelling == "string" ? r.directLabelling : r.directLabelling ? G.Auto : G.Off, S = r.legend !== !1 && !_, C = bt(d).width, w = r.legendPosition ?? "top", T = C > 0 && C < 350 && (w === "left" || w === "right") ? "top" : w, E = r.legendAnchor ?? "start", D = p.flatMap((e) => e.values), O = _t(D, r.verticalAxis?.range, r.verticalAxis?.numberFormat, r.verticalAxis?.scaleType), k = vt(C, r.verticalAxis?.labelPosition, r.horizontalAxis?.labelPosition, r.verticalAxis?.direction, O), A = k.top != null, j = Math.max(0, C - (k.left ?? 50) - (k.right ?? 20)), M = S ? yn(m, T, j) : {
3776
3774
  width: 0,
3777
3775
  height: 0
3778
- }, F = S ? P.height + 15 : 0, I = { ...k };
3779
- S && T === "top" && (I.top = F + (M ? 15 : 0)), S && T === "bottom" && (I.bottom = (I.bottom ?? 24) + F), S && T === "left" && (I.left = (I.left ?? 50) + P.width + 10), S && T === "right" && (I.right = (I.right ?? 20) + P.width + 10);
3780
- let L = _ || !!g?.some((e) => e.labelMode === "direct"), R = y !== !1 || !!g?.some((e) => e.valueLabels), B = L && x !== W.Inside, V = R && b !== z.Inside, ee = B && V ? aa : ia;
3781
- (B || V) && (I.top = (I.top ?? 0) + ee + oa);
3782
- let { chartArea: H, width: U, height: G, margin: K } = St(d, I), te = st(s, K), [q, J] = ke(D, r.verticalAxis?.range, r.verticalAxis?.scaleType);
3783
- if (r.valueLabels && q < 0 && r.verticalAxis?.range?.min == null) {
3784
- let e = J - q;
3785
- q -= e * .1;
3786
- }
3787
- let ne = n.labels;
3776
+ }, N = S ? M.height + 15 : 0, P = { ...k };
3777
+ S && T === "top" && (P.top = N + (A ? 15 : 0)), S && T === "left" && (P.left = (P.left ?? 50) + M.width + 10), S && T === "right" && (P.right = (P.right ?? 20) + M.width + 10);
3778
+ let F = Math.max(0, C - (P.left ?? 50) - (P.right ?? 20));
3779
+ P.bottom = (rn(n.labels, F, r.horizontalAxis) ?? Math.max(P.bottom ?? 24, 24)) + (T === "bottom" ? N : 0);
3780
+ let I = _ || !!g?.some((e) => e.labelMode === "direct"), L = y !== !1 || !!g?.some((e) => e.valueLabels), R = I && x !== G.Inside, B = L && b !== z.Inside, V = R && B ? aa : ia;
3781
+ (R || B) && (P.top = (P.top ?? 0) + V + oa);
3782
+ let { chartArea: H, width: U, height: W, margin: K } = St(d, P), ee = st(s, K), [te, q] = ke(D, r.verticalAxis?.range, r.verticalAxis?.scaleType);
3783
+ if (r.valueLabels && te < 0 && r.verticalAxis?.range?.min == null) {
3784
+ let e = q - te;
3785
+ te -= e * .1;
3786
+ }
3787
+ let J = n.labels;
3788
3788
  if (r.sortMode === "total") {
3789
3789
  let e = n.labels.map((e, t) => ({
3790
3790
  label: e,
3791
3791
  index: t,
3792
3792
  total: p.reduce((e, n) => e + (n.values[t] ?? 0), 0)
3793
3793
  }));
3794
- e.sort((e, t) => t.total - e.total), ne = e.map((e) => e.label);
3794
+ e.sort((e, t) => t.total - e.total), J = e.map((e) => e.label);
3795
3795
  }
3796
- let re = e.scaleBand().domain(ne).range([0, U]).padding(Oe(r.barGap)), ie = e.scaleBand().domain(m).range([0, re.bandwidth()]).padding(.05), Y = r.verticalAxis?.scaleType === "log", ae = Y ? e.scaleSymlog().domain([q, J]).nice().range([G, 0]) : e.scaleLinear().domain([q, J]).nice().range([G, 0]);
3797
- u.attach(H, te), u.update({
3796
+ let ne = e.scaleBand().domain(J).range([0, U]).padding(Oe(r.barGap)), Y = e.scaleBand().domain(m).range([0, ne.bandwidth()]).padding(.05), re = r.verticalAxis?.scaleType === "log", ie = re ? e.scaleSymlog().domain([te, q]).nice().range([W, 0]) : e.scaleLinear().domain([te, q]).nice().range([W, 0]);
3797
+ u.attach(H, ee), u.update({
3798
3798
  vertical: {
3799
- scale: ae,
3800
- height: G,
3799
+ scale: ie,
3800
+ height: W,
3801
3801
  options: {
3802
3802
  ...r.verticalAxis,
3803
3803
  gridWidth: U,
@@ -3805,29 +3805,29 @@ function sa(t, n, r = {}, i = !1) {
3805
3805
  }
3806
3806
  },
3807
3807
  horizontal: {
3808
- scale: re,
3809
- height: G,
3808
+ scale: ne,
3809
+ height: W,
3810
3810
  options: {
3811
3811
  ...r.horizontalAxis,
3812
3812
  width: U
3813
3813
  }
3814
3814
  }
3815
- }), !Y && q < 0 && J > 0 && e.select(H).append("line").attr("class", "bc-zero-baseline").attr("x1", 0).attr("x2", U).attr("y1", ae(0)).attr("y2", ae(0)).attr("stroke", "#666").attr("stroke-width", 1);
3816
- let oe = /* @__PURE__ */ new Map();
3815
+ }), !re && te < 0 && q > 0 && e.select(H).append("line").attr("class", "bc-zero-baseline").attr("x1", 0).attr("x2", U).attr("y1", ie(0)).attr("y2", ie(0)).attr("stroke", "#666").attr("stroke-width", 1);
3816
+ let ae = /* @__PURE__ */ new Map();
3817
3817
  r.sortMode === "within-groups" && n.labels.forEach((e, t) => {
3818
3818
  let n = p.map((e) => ({
3819
3819
  name: e.name,
3820
3820
  value: e.values[t]
3821
3821
  }));
3822
3822
  n.sort((e, t) => t.value - e.value), n.forEach((t, n) => {
3823
- oe.set(`${e}\0${t.name}`, m[n]);
3823
+ ae.set(`${e}\0${t.name}`, m[n]);
3824
3824
  });
3825
3825
  });
3826
- let se = [];
3826
+ let oe = [];
3827
3827
  n.labels.forEach((e, t) => {
3828
3828
  p.forEach((n) => {
3829
- let i = f.findIndex((e) => e.name === n.name), a = r.sortMode === "within-groups" ? oe.get(`${e}\0${n.name}`) ?? n.name : n.name;
3830
- se.push({
3829
+ let i = f.findIndex((e) => e.name === n.name), a = r.sortMode === "within-groups" ? ae.get(`${e}\0${n.name}`) ?? n.name : n.name;
3830
+ oe.push({
3831
3831
  label: e,
3832
3832
  series: a,
3833
3833
  seriesName: n.name,
@@ -3836,53 +3836,53 @@ function sa(t, n, r = {}, i = !1) {
3836
3836
  });
3837
3837
  });
3838
3838
  });
3839
- let ce = H.ownerSVGElement, le = Ir(ce, t, "bars", {
3839
+ let se = H.ownerSVGElement, ce = Ir(se, t, "bars", {
3840
3840
  x: 0,
3841
3841
  y: 0,
3842
3842
  width: U,
3843
- height: G
3844
- }), ue = e.select(H).append("g").attr("clip-path", `url(#${le})`), fe = Ur(t), pe = fi(r.highlights, se.map((e) => e.seriesName)), me = Ar(r.colorizes), he = ue.append("g").node();
3845
- if (i) for (let e of c) e.removeAttribute("opacity"), e.removeAttribute("fill-opacity"), he.appendChild(e);
3846
- ti(fe, {
3843
+ height: W
3844
+ }), le = e.select(H).append("g").attr("clip-path", `url(#${ce})`), ue = Ur(t), fe = fi(r.highlights, oe.map((e) => e.seriesName)), pe = Ar(r.colorizes), me = le.append("g").node();
3845
+ if (i) for (let e of c) e.removeAttribute("opacity"), e.removeAttribute("fill-opacity"), me.appendChild(e);
3846
+ ti(ue, {
3847
3847
  role: "mark-per-cell",
3848
- parent: he,
3848
+ parent: me,
3849
3849
  selector: ".bc-bar-multi",
3850
- data: se,
3850
+ data: oe,
3851
3851
  key: (e) => `${e.label}\0${e.seriesName}`,
3852
3852
  insert: (e) => e.append("rect").attr("class", "bc-bar bc-bar-multi"),
3853
3853
  attrs: (e) => {
3854
3854
  let t = Ji(e.seriesName, e.seriesIndex, h, g), n = ta(e.seriesName, g), r = {
3855
3855
  "data-series": e.seriesName,
3856
- x: (re(e.label) ?? 0) + (ie(e.series) ?? 0),
3857
- y: Math.min(ae(0), ae(e.value)),
3858
- width: ie.bandwidth(),
3859
- height: Math.abs(ae(e.value) - ae(0)),
3860
- fill: me.get(e.seriesName) ?? t
3856
+ x: (ne(e.label) ?? 0) + (Y(e.series) ?? 0),
3857
+ y: Math.min(ie(0), ie(e.value)),
3858
+ width: Y.bandwidth(),
3859
+ height: Math.abs(ie(e.value) - ie(0)),
3860
+ fill: pe.get(e.seriesName) ?? t
3861
3861
  };
3862
- return n < 1 && (r["fill-opacity"] = n), pe.size > 0 ? {
3862
+ return n < 1 && (r["fill-opacity"] = n), fe.size > 0 ? {
3863
3863
  ...r,
3864
- opacity: pi(pe, e.seriesName)
3864
+ opacity: pi(fe, e.seriesName)
3865
3865
  } : r;
3866
3866
  }
3867
3867
  });
3868
- let ge = {
3868
+ let he = {
3869
3869
  left: K.left,
3870
3870
  top: K.top,
3871
3871
  width: U,
3872
- height: G
3872
+ height: W
3873
3873
  };
3874
- li(fe, {
3875
- svg: ce,
3876
- clipId: le,
3874
+ li(ue, {
3875
+ svg: se,
3876
+ clipId: ce,
3877
3877
  group: H,
3878
3878
  from: l,
3879
- to: ge,
3879
+ to: he,
3880
3880
  active: i && c.length > 0
3881
3881
  });
3882
- let _e = Rr(ue);
3883
- if (r.tooltips && _e.use(zn({ numberFormat: r.verticalAxis?.numberFormat })), r.crosshair && _e.use(Vn({
3882
+ let ge = Rr(le);
3883
+ if (r.tooltips && ge.use(zn({ numberFormat: r.verticalAxis?.numberFormat })), r.crosshair && ge.use(Vn({
3884
3884
  width: U,
3885
- height: G,
3885
+ height: W,
3886
3886
  direction: r.crosshairDirection,
3887
3887
  style: r.crosshairStyle,
3888
3888
  color: r.crosshairColor
@@ -3891,64 +3891,64 @@ function sa(t, n, r = {}, i = !1) {
3891
3891
  label: e,
3892
3892
  value: Math.max(...p.map((e) => e.values[t] ?? 0))
3893
3893
  }));
3894
- _e.use(kr(r.annotations, {
3895
- scaleX: re,
3896
- scaleY: ae,
3894
+ ge.use(kr(r.annotations, {
3895
+ scaleX: ne,
3896
+ scaleY: ie,
3897
3897
  data: e,
3898
3898
  width: U,
3899
- height: G,
3899
+ height: W,
3900
3900
  backgroundColor: Xe(t),
3901
3901
  transition: i,
3902
3902
  priorAnnotations: o
3903
3903
  }));
3904
3904
  }
3905
- let ve = () => _e.draw(se);
3906
- fe.state === "committing" ? fe.register(ve) : ve(), Nr(t, {
3905
+ let _e = () => ge.draw(oe);
3906
+ ue.state === "committing" ? ue.register(_e) : _e(), Nr(t, {
3907
3907
  chartType: "bar-multi",
3908
3908
  margin: K,
3909
- plotRect: ge
3910
- }), a && (Dt(ue.node()), Ot(t, a));
3911
- let ye = /* @__PURE__ */ new Set();
3909
+ plotRect: he
3910
+ }), a && (Dt(le.node()), Ot(t, a));
3911
+ let ve = /* @__PURE__ */ new Set();
3912
3912
  p.forEach((e) => {
3913
- $i(e.name, v, g) === "direct" && ye.add(e.name);
3913
+ $i(e.name, v, g) === "direct" && ve.add(e.name);
3914
3914
  });
3915
- let be = ye.size > 0, xe = Xe(t), Se = r.directLabelAnchor ?? "middle";
3916
- function Ce() {
3915
+ let ye = ve.size > 0, be = Xe(t), xe = r.directLabelAnchor ?? "middle";
3916
+ function Se() {
3917
3917
  return b === z.Inside ? z.Inside : (z.Outside, z.Outside);
3918
3918
  }
3919
- function we(e) {
3920
- return x === W.Inside ? z.Inside : x === W.Outside ? z.Outside : y ? Ce() : z.Outside;
3919
+ function Ce(e) {
3920
+ return x === G.Inside ? z.Inside : x === G.Outside ? z.Outside : y ? Se() : z.Outside;
3921
3921
  }
3922
- function Te(e, t, n) {
3922
+ function we(e, t, n) {
3923
3923
  return n === "start" ? e + 12 : n === "end" ? e + t - 4 : e + t / 2;
3924
3924
  }
3925
- let Ee = e.select(H).append("g").attr("class", "bc-value-labels");
3926
- se.forEach((e) => {
3925
+ let Te = e.select(H).append("g").attr("class", "bc-value-labels");
3926
+ oe.forEach((e) => {
3927
3927
  if (!ea(e.seriesName, y, g)) return;
3928
- let t = (re(e.label) ?? 0) + (ie(e.series) ?? 0) + ie.bandwidth() / 2, n = Math.min(ae(0), ae(e.value)), r = Math.abs(ae(e.value) - ae(0)), i = Ce(), a = be && ye.has(e.seriesName), o = e.value < 0, s = n + r, c, l, u;
3929
- i === z.Inside ? (l = Ke(Ji(e.seriesName, e.seriesIndex, h, g)), u = "central", c = a && we(r) === z.Inside ? Te(n, r, Se) + 14 : n + r / 2) : (l = "currentColor", o ? (c = a && we(r) === z.Outside ? s + aa : s + ia, u = "hanging") : (c = a && we(r) === z.Outside ? n - aa : n - ia, u = "auto")), xi({
3928
+ let t = (ne(e.label) ?? 0) + (Y(e.series) ?? 0) + Y.bandwidth() / 2, n = Math.min(ie(0), ie(e.value)), r = Math.abs(ie(e.value) - ie(0)), i = Se(), a = ye && ve.has(e.seriesName), o = e.value < 0, s = n + r, c, l, u;
3929
+ i === z.Inside ? (l = Ke(Ji(e.seriesName, e.seriesIndex, h, g)), u = "central", c = a && Ce(r) === z.Inside ? we(n, r, xe) + 14 : n + r / 2) : (l = "currentColor", o ? (c = a && Ce(r) === z.Outside ? s + aa : s + ia, u = "hanging") : (c = a && Ce(r) === z.Outside ? n - aa : n - ia, u = "auto")), xi({
3930
3930
  text: String(e.value),
3931
3931
  placement: i === z.Inside ? "inside" : "outside",
3932
3932
  orientation: "vertical",
3933
- barWidth: ie.bandwidth(),
3933
+ barWidth: Y.bandwidth(),
3934
3934
  barHeight: r
3935
- }) && Ee.append("text").attr("class", "bc-value-label").attr("data-series", e.seriesName).attr("x", t).attr("y", c).attr("text-anchor", "middle").attr("dominant-baseline", u).attr("font-size", "11px").attr("fill", l).text(String(e.value));
3936
- }), se.forEach((t) => {
3937
- if (!ye.has(t.seriesName)) return;
3938
- let n = (re(t.label) ?? 0) + (ie(t.series) ?? 0) + ie.bandwidth() / 2, r = Math.min(ae(0), ae(t.value)), i = Math.abs(ae(t.value) - ae(0)), a = g?.find((e) => e.name === t.seriesName)?.labelText || t.seriesName, o = we(i), s = Ji(t.seriesName, t.seriesIndex, h, g), c = e.select(H).append("text").attr("class", "bc-direct-label").attr("data-series", t.seriesName).attr("x", n).attr("text-anchor", "middle").attr("font-size", "10px").text(a);
3935
+ }) && Te.append("text").attr("class", "bc-value-label").attr("data-series", e.seriesName).attr("x", t).attr("y", c).attr("text-anchor", "middle").attr("dominant-baseline", u).attr("font-size", "11px").attr("fill", l).text(String(e.value));
3936
+ }), oe.forEach((t) => {
3937
+ if (!ve.has(t.seriesName)) return;
3938
+ let n = (ne(t.label) ?? 0) + (Y(t.series) ?? 0) + Y.bandwidth() / 2, r = Math.min(ie(0), ie(t.value)), i = Math.abs(ie(t.value) - ie(0)), a = g?.find((e) => e.name === t.seriesName)?.labelText || t.seriesName, o = Ce(i), s = Ji(t.seriesName, t.seriesIndex, h, g), c = e.select(H).append("text").attr("class", "bc-direct-label").attr("data-series", t.seriesName).attr("x", n).attr("text-anchor", "middle").attr("font-size", "10px").text(a);
3939
3939
  if (o === z.Inside) {
3940
- let e = Te(r, i, Se);
3941
- c.attr("y", e).attr("fill", Ke(s)), Se === "middle" && c.attr("dominant-baseline", "central");
3942
- } else c.attr("y", r - ia).attr("fill", Ze(s, xe));
3940
+ let e = we(r, i, xe);
3941
+ c.attr("y", e).attr("fill", Ke(s)), xe === "middle" && c.attr("dominant-baseline", "central");
3942
+ } else c.attr("y", r - ia).attr("fill", Ze(s, be));
3943
3943
  });
3944
- let De = m.filter((e) => $i(e, v, g) === "legend");
3945
- if (S && De.length > 0) {
3946
- let e = De.map((e) => Ji(e, f.findIndex((t) => t.name === e), h, g)), t = 0, n = 0;
3944
+ let Ee = m.filter((e) => $i(e, v, g) === "legend");
3945
+ if (S && Ee.length > 0) {
3946
+ let e = Ee.map((e) => Ji(e, f.findIndex((t) => t.name === e), h, g)), t = 0, n = 0;
3947
3947
  if (T === "top") {
3948
- let e = M ? 15 : 0;
3949
- n = -(P.height + 10 + e);
3950
- } else T === "bottom" ? n = G + 25 : T === "left" ? t = -(P.width + 10) : T === "right" && (t = U + 10);
3951
- En(H, De, e, n, T, E, U, G, t, [], {
3948
+ let e = A ? 15 : 0;
3949
+ n = -(M.height + 10 + e);
3950
+ } else T === "bottom" ? n = W + Math.max(K.bottom - N, 0) : T === "left" ? t = -(M.width + 10) : T === "right" && (t = U + 10);
3951
+ En(H, Ee, e, n, T, E, U, W, t, [], {
3952
3952
  left: K.left,
3953
3953
  right: K.right
3954
3954
  });
@@ -4115,7 +4115,7 @@ function ba(t, n, r = {}, i = !1) {
4115
4115
  y: -1,
4116
4116
  width: y + 2,
4117
4117
  height: b + 2
4118
- }), z = e.select(v).append("g").attr("clip-path", `url(#${R})`), B = z.node(), V = r.colors?.[0] ?? "#4e79a7", ee = la(r.interpolation), H = r.areaFill ?? !1, U = r.areaFillOpacity ?? .2, W = (e) => Number.isFinite(e.value), G = e.area().curve(ee).defined(W).x((e) => A(e)).y0(b).y1((e) => P(e.value)), K = e.line().curve(ee).defined(W).x((e) => A(e)).y((e) => P(e.value)), te = e.select(B).append("g").node(), q = e.select(B).append("g").node();
4118
+ }), z = e.select(v).append("g").attr("clip-path", `url(#${R})`), B = z.node(), V = r.colors?.[0] ?? "#4e79a7", H = la(r.interpolation), U = r.areaFill ?? !1, W = r.areaFillOpacity ?? .2, G = (e) => Number.isFinite(e.value), K = e.area().curve(H).defined(G).x((e) => A(e)).y0(b).y1((e) => P(e.value)), ee = e.line().curve(H).defined(G).x((e) => A(e)).y((e) => P(e.value)), te = e.select(B).append("g").node(), q = e.select(B).append("g").node();
4119
4119
  if (i) {
4120
4120
  for (let e of a) te.appendChild(e);
4121
4121
  for (let e of o) q.appendChild(e);
@@ -4128,13 +4128,13 @@ function ba(t, n, r = {}, i = !1) {
4128
4128
  role: "series-area",
4129
4129
  parent: te,
4130
4130
  selector: ".bc-area",
4131
- data: H ? ne : [],
4131
+ data: U ? ne : [],
4132
4132
  key: (e) => e.name,
4133
4133
  insert: (e) => e.append("path").attr("class", "bc-area"),
4134
4134
  attrs: (e) => ({
4135
- d: G(e.points) ?? "",
4135
+ d: K(e.points) ?? "",
4136
4136
  fill: V,
4137
- opacity: U
4137
+ opacity: W
4138
4138
  })
4139
4139
  }), ti(J, {
4140
4140
  role: "series-line",
@@ -4144,12 +4144,12 @@ function ba(t, n, r = {}, i = !1) {
4144
4144
  key: (e) => e.name,
4145
4145
  insert: (e) => e.append("path").attr("class", "bc-line"),
4146
4146
  attrs: (e) => ({
4147
- d: K(e.points) ?? "",
4147
+ d: ee(e.points) ?? "",
4148
4148
  fill: "none",
4149
4149
  stroke: V
4150
4150
  })
4151
4151
  }), e.select(B).append("g").selectAll(".bc-dot").data(D, (e) => e.label).enter().append("circle").attr("class", "bc-dot").attr("cx", (e) => A(e)).attr("cy", (e) => P(e.value)).attr("r", 3).attr("fill", V).attr("fill-opacity", 0).attr("stroke-opacity", 0).attr("pointer-events", "none");
4152
- let re = {
4152
+ let Y = {
4153
4153
  left: x.left,
4154
4154
  top: x.top,
4155
4155
  width: y + 2,
@@ -4160,7 +4160,7 @@ function ba(t, n, r = {}, i = !1) {
4160
4160
  clipId: R,
4161
4161
  group: v,
4162
4162
  from: d,
4163
- to: re,
4163
+ to: Y,
4164
4164
  active: i && (a.length > 0 || o.length > 0)
4165
4165
  }), r.annotations?.length && Or(v, r.annotations, {
4166
4166
  scaleX: k,
@@ -4208,7 +4208,7 @@ function ba(t, n, r = {}, i = !1) {
4208
4208
  Nr(t, {
4209
4209
  chartType: "line",
4210
4210
  margin: x,
4211
- plotRect: re
4211
+ plotRect: Y
4212
4212
  }), c && (Dt(z.node()), Ot(t, c));
4213
4213
  }
4214
4214
  //#endregion
@@ -4360,14 +4360,12 @@ function Pa(t, n, r = {}, i = !1) {
4360
4360
  let j = g.flatMap((e) => e.values), F = _t(j, r.verticalAxis?.range, r.verticalAxis?.numberFormat, r.verticalAxis?.scaleType), I = vt(T, r.verticalAxis?.labelPosition, r.horizontalAxis?.labelPosition, r.verticalAxis?.direction, F), L = C.length > 0 ? bn(C) : 0, R = I.top != null, z = Math.max(0, T - (I.left ?? 50) - (I.right ?? 20) - L), B = w ? yn(v, D, z) : {
4361
4361
  width: 0,
4362
4362
  height: 0
4363
- }, V = w ? B.height + 15 : 0, ee = { ...I };
4364
- w && D === "top" && (ee.top = V + (R ? 15 : 0)), w && D === "bottom" && (ee.bottom = (ee.bottom ?? 24) + V), w && D === "left" && (ee.left = (ee.left ?? 50) + B.width + 10), w && D === "right" && (ee.right = (ee.right ?? 20) + B.width + 10), L > 0 && (ee.right = (ee.right ?? 20) + L);
4365
- let H = rn(a.labels, Math.max(0, bt(m).width - (ee.left ?? 50) - (ee.right ?? 20)), r.horizontalAxis);
4366
- H !== void 0 && (ee.bottom = H);
4367
- let { chartArea: U, width: W, height: G, margin: K } = St(m, ee), te = st(d, K), [q, J] = ke(j, r.verticalAxis?.range, r.verticalAxis?.scaleType, !1), ne = e.scalePoint().domain(a.labels).range([0, W]).padding(r.edgePadding ? .6 : 0), re = ne, ie = (e) => ne(a.labels[e]) ?? 0, Y = r.verticalAxis?.scaleType === "log" ? e.scaleSymlog().domain([q, J]).nice().range([G, 0]) : e.scaleLinear().domain([q, J]).nice().range([G, 0]), ae = Y.domain(), oe = ae[0] < 0 && ae[1] > 0 ? Y(0) : void 0;
4368
- p.attach(U, te), p.update({
4363
+ }, V = w ? B.height + 15 : 0, H = { ...I };
4364
+ w && D === "top" && (H.top = V + (R ? 15 : 0)), w && D === "left" && (H.left = (H.left ?? 50) + B.width + 10), w && D === "right" && (H.right = (H.right ?? 20) + B.width + 10), L > 0 && (H.right = (H.right ?? 20) + L), H.bottom = (rn(a.labels, Math.max(0, T - (H.left ?? 50) - (H.right ?? 20)), r.horizontalAxis) ?? Math.max(H.bottom ?? 24, 24)) + (D === "bottom" ? V : 0);
4365
+ let { chartArea: U, width: W, height: G, margin: K } = St(m, H), ee = st(d, K), [te, q] = ke(j, r.verticalAxis?.range, r.verticalAxis?.scaleType, !1), J = e.scalePoint().domain(a.labels).range([0, W]).padding(r.edgePadding ? .6 : 0), ne = J, Y = (e) => J(a.labels[e]) ?? 0, re = r.verticalAxis?.scaleType === "log" ? e.scaleSymlog().domain([te, q]).nice().range([G, 0]) : e.scaleLinear().domain([te, q]).nice().range([G, 0]), ie = re.domain(), ae = ie[0] < 0 && ie[1] > 0 ? re(0) : void 0;
4366
+ p.attach(U, ee), p.update({
4369
4367
  vertical: {
4370
- scale: Y,
4368
+ scale: re,
4371
4369
  height: G,
4372
4370
  options: {
4373
4371
  ...r.verticalAxis,
@@ -4376,30 +4374,30 @@ function Pa(t, n, r = {}, i = !1) {
4376
4374
  }
4377
4375
  },
4378
4376
  horizontal: {
4379
- scale: re,
4377
+ scale: ne,
4380
4378
  height: G,
4381
4379
  options: {
4382
4380
  ...r.horizontalAxis,
4383
4381
  width: W,
4384
- zeroY: oe
4382
+ zeroY: ae
4385
4383
  }
4386
4384
  }
4387
4385
  });
4388
- let se = U.ownerSVGElement, ce = Ir(se, t, "plot", {
4386
+ let oe = U.ownerSVGElement, se = Ir(oe, t, "plot", {
4389
4387
  x: 0,
4390
4388
  y: 0,
4391
4389
  width: W,
4392
4390
  height: G
4393
- }), le = e.select(U).append("g").attr("clip-path", `url(#${ce})`), ue = le.node(), fe = g.map((e) => ({
4391
+ }), ce = e.select(U).append("g").attr("clip-path", `url(#${se})`), le = ce.node(), ue = g.map((e) => ({
4394
4392
  name: e.name,
4395
4393
  values: e.values,
4396
4394
  colorIndex: h.findIndex((t) => t.name === e.name)
4397
- })), pe = la(r.interpolation);
4398
- r.areaFills?.length && Fa(ue, r.areaFills, g, ie, a.labels.length, Y, pe);
4399
- let me = (e) => Number.isFinite(e), he = [];
4395
+ })), fe = la(r.interpolation);
4396
+ r.areaFills?.length && Fa(le, r.areaFills, g, Y, a.labels.length, re, fe);
4397
+ let pe = (e) => Number.isFinite(e), me = [];
4400
4398
  g.forEach((e, t) => {
4401
4399
  a.labels.forEach((n, r) => {
4402
- me(e.values[r]) && he.push({
4400
+ pe(e.values[r]) && me.push({
4403
4401
  label: n,
4404
4402
  value: e.values[r],
4405
4403
  series: e.name,
@@ -4407,65 +4405,65 @@ function Pa(t, n, r = {}, i = !1) {
4407
4405
  });
4408
4406
  });
4409
4407
  });
4410
- let ge = r.lineSymbols, _e = {
4408
+ let he = r.lineSymbols, ge = {
4411
4409
  solid: "",
4412
4410
  dotted: "2,4",
4413
4411
  dashed: "8,4",
4414
4412
  "dash-dot": "8,4,2,4"
4415
- }, ve = r.valueLabels ?? !1, ye = fi(r.highlights, v), be = r.areaFill ?? !1, xe = r.areaFillOpacity ?? .2, Se = (e) => y.get(e.name) ?? Ji(e.name, e.colorIndex, _, b), Ce = e.area().curve(pe).defined(me).x((e, t) => ie(t)).y0(G).y1((e) => Y(e)), we = Ur(t), Te = e.select(ue).append("g").node(), De = e.select(ue).append("g").node(), Oe = new Set(fe.map((e) => e.name));
4413
+ }, _e = r.valueLabels ?? !1, ve = fi(r.highlights, v), ye = r.areaFill ?? !1, be = r.areaFillOpacity ?? .2, xe = (e) => y.get(e.name) ?? Ji(e.name, e.colorIndex, _, b), Se = e.area().curve(fe).defined(pe).x((e, t) => Y(t)).y0(G).y1((e) => re(e)), Ce = Ur(t), we = e.select(le).append("g").node(), Te = e.select(le).append("g").node(), De = new Set(ue.map((e) => e.name));
4416
4414
  if (i) {
4417
- for (let e of o) Oe.has(e.__data__?.name ?? "") && Te.appendChild(e);
4418
- for (let e of s) Oe.has(e.__data__?.name ?? "") && De.appendChild(e);
4415
+ for (let e of o) De.has(e.__data__?.name ?? "") && we.appendChild(e);
4416
+ for (let e of s) De.has(e.__data__?.name ?? "") && Te.appendChild(e);
4419
4417
  }
4420
- ti(we, {
4418
+ ti(Ce, {
4421
4419
  role: "series-area",
4422
- parent: Te,
4420
+ parent: we,
4423
4421
  selector: ".bc-area",
4424
- data: be ? fe : [],
4422
+ data: ye ? ue : [],
4425
4423
  key: (e) => e.name,
4426
4424
  insert: (e) => e.append("path").attr("class", "bc-area"),
4427
4425
  attrs: (e) => ({
4428
4426
  "data-series": e.name,
4429
- d: Ce(e.values) ?? "",
4430
- fill: Se(e),
4431
- opacity: pi(ye, e.name, xe)
4427
+ d: Se(e.values) ?? "",
4428
+ fill: xe(e),
4429
+ opacity: pi(ve, e.name, be)
4432
4430
  })
4433
- }), ti(we, {
4431
+ }), ti(Ce, {
4434
4432
  role: "series-line",
4435
- parent: De,
4433
+ parent: Te,
4436
4434
  selector: ".bc-line",
4437
- data: fe,
4435
+ data: ue,
4438
4436
  key: (e) => e.name,
4439
4437
  insert: (e) => e.append("path").attr("class", "bc-line"),
4440
4438
  attrs: (t) => {
4441
- let n = Zi(t.name, r.interpolation ?? "linear", b), i = e.line().curve(la(n)).defined(me).x((e, t) => ie(t)).y((e) => Y(e));
4439
+ let n = Zi(t.name, r.interpolation ?? "linear", b), i = e.line().curve(la(n)).defined(pe).x((e, t) => Y(t)).y((e) => re(e));
4442
4440
  return {
4443
4441
  "data-series": t.name,
4444
4442
  d: i(t.values) ?? "",
4445
4443
  fill: "none",
4446
- stroke: Se(t),
4444
+ stroke: xe(t),
4447
4445
  style: `stroke-width:${Xi(t.name, b)}`,
4448
- "stroke-dasharray": _e[Yi(t.name, b)] ?? "",
4449
- opacity: pi(ye, t.name, 1)
4446
+ "stroke-dasharray": ge[Yi(t.name, b)] ?? "",
4447
+ opacity: pi(ve, t.name, 1)
4450
4448
  };
4451
4449
  }
4452
- }), e.select(ue).append("g").selectAll(".bc-dot").data(he, (e) => e.label + "\0" + e.series).enter().append("circle").attr("class", "bc-dot").attr("data-series", (e) => e.series).attr("cx", (e) => ie(a.labels.indexOf(e.label))).attr("cy", (e) => Y(e.value)).attr("r", 3).attr("fill", (e) => Se({
4450
+ }), e.select(le).append("g").selectAll(".bc-dot").data(me, (e) => e.label + "\0" + e.series).enter().append("circle").attr("class", "bc-dot").attr("data-series", (e) => e.series).attr("cx", (e) => Y(a.labels.indexOf(e.label))).attr("cy", (e) => re(e.value)).attr("r", 3).attr("fill", (e) => xe({
4453
4451
  name: e.series,
4454
4452
  values: [],
4455
4453
  colorIndex: e.colorIndex
4456
4454
  })).attr("fill-opacity", 0).attr("stroke-opacity", 0).attr("pointer-events", "none");
4457
- let Ae = {
4455
+ let Oe = {
4458
4456
  left: K.left,
4459
4457
  top: K.top,
4460
4458
  width: W,
4461
4459
  height: G
4462
4460
  };
4463
- if (li(we, {
4464
- svg: se,
4465
- clipId: ce,
4461
+ if (li(Ce, {
4462
+ svg: oe,
4463
+ clipId: se,
4466
4464
  group: U,
4467
4465
  from: f,
4468
- to: Ae,
4466
+ to: Oe,
4469
4467
  active: i && (s.length > 0 || o.length > 0)
4470
4468
  }), r.annotations?.length) {
4471
4469
  let e = a.labels.map((e, t) => ({
@@ -4473,8 +4471,8 @@ function Pa(t, n, r = {}, i = !1) {
4473
4471
  value: g[0]?.values[t] ?? 0
4474
4472
  }));
4475
4473
  Or(U, r.annotations, {
4476
- scaleX: re,
4477
- scaleY: Y,
4474
+ scaleX: ne,
4475
+ scaleY: re,
4478
4476
  data: e,
4479
4477
  width: W,
4480
4478
  height: G,
@@ -4483,21 +4481,21 @@ function Pa(t, n, r = {}, i = !1) {
4483
4481
  priorAnnotations: u
4484
4482
  });
4485
4483
  }
4486
- let je = e.select(U).insert("g", () => ue.nextSibling).attr("class", "bc-value-labels");
4487
- he.forEach((e) => {
4488
- if (!ea(e.series, ve, b)) return;
4489
- let t = ie(a.labels.indexOf(e.label)), n = Y(e.value), r = Di(String(e.value), t, n, {
4484
+ let Ae = e.select(U).insert("g", () => le.nextSibling).attr("class", "bc-value-labels");
4485
+ me.forEach((e) => {
4486
+ if (!ea(e.series, _e, b)) return;
4487
+ let t = Y(a.labels.indexOf(e.label)), n = re(e.value), r = Di(String(e.value), t, n, {
4490
4488
  width: W,
4491
4489
  height: G,
4492
4490
  margin: K
4493
4491
  });
4494
- je.append("text").attr("class", "bc-value-label").attr("data-series", e.series).attr("x", r.x).attr("y", r.y).attr("text-anchor", "middle").attr("font-size", "11px").attr("fill", "currentColor").text(String(e.value));
4492
+ Ae.append("text").attr("class", "bc-value-label").attr("data-series", e.series).attr("x", r.x).attr("y", r.y).attr("text-anchor", "middle").attr("font-size", "11px").attr("fill", "currentColor").text(String(e.value));
4495
4493
  }), (r.tooltips || r.crosshair) && ha(U, {
4496
4494
  width: W,
4497
4495
  height: G,
4498
- points: he.map((e) => ({
4499
- cx: ie(a.labels.indexOf(e.label)),
4500
- cy: Y(e.value),
4496
+ points: me.map((e) => ({
4497
+ cx: Y(a.labels.indexOf(e.label)),
4498
+ cy: re(e.value),
4501
4499
  label: e.label,
4502
4500
  value: e.value,
4503
4501
  series: e.series,
@@ -4511,59 +4509,59 @@ function Pa(t, n, r = {}, i = !1) {
4511
4509
  numberFormat: r.verticalAxis?.numberFormat,
4512
4510
  container: t
4513
4511
  });
4514
- let Me = ge ? {
4512
+ let je = he ? {
4515
4513
  name: "",
4516
4514
  lineSymbols: !0,
4517
- symbolShape: ge.symbol,
4518
- symbolShowOn: ge.showOn,
4519
- symbolStyle: ge.style,
4520
- symbolSize: ge.size,
4521
- symbolOpacity: ge.opacity
4522
- } : void 0, Ne = a.labels.length;
4515
+ symbolShape: he.symbol,
4516
+ symbolShowOn: he.showOn,
4517
+ symbolStyle: he.style,
4518
+ symbolSize: he.size,
4519
+ symbolOpacity: he.opacity
4520
+ } : void 0, Me = a.labels.length;
4523
4521
  g.forEach((t, n) => {
4524
- let r = na(t.name, Me, b);
4522
+ let r = na(t.name, je, b);
4525
4523
  if (!r) return;
4526
4524
  let o = {
4527
- symbol: r.symbolShape ?? ge?.symbol ?? M.Circle,
4528
- showOn: r.symbolShowOn ?? ge?.showOn ?? N.FirstLast,
4529
- style: r.symbolStyle ?? ge?.style ?? P.Filled,
4530
- size: r.symbolSize ?? ge?.size ?? 3.5,
4531
- opacity: r.symbolOpacity ?? ge?.opacity ?? 1
4525
+ symbol: r.symbolShape ?? he?.symbol ?? M.Circle,
4526
+ showOn: r.symbolShowOn ?? he?.showOn ?? N.FirstLast,
4527
+ style: r.symbolStyle ?? he?.style ?? P.Filled,
4528
+ size: r.symbolSize ?? he?.size ?? 3.5,
4529
+ opacity: r.symbolOpacity ?? he?.opacity ?? 1
4532
4530
  }, s = a.labels.map((e, r) => ({
4533
- cx: ie(r),
4534
- cy: Y(t.values[r]),
4531
+ cx: Y(r),
4532
+ cy: re(t.values[r]),
4535
4533
  color: Ji(t.name, n, _, b),
4536
4534
  index: r
4537
4535
  })).filter((e) => Number.isFinite(e.cy)), l = c.find((e) => e.getAttribute("data-series-name") === t.name), u, d = !1;
4538
- l ? (U.appendChild(l), u = e.select(l), d = !0) : u = e.select(U).append("g").attr("class", "bc-symbols").attr("data-series", t.name).attr("data-series-name", t.name), ya(u, s, Ne, o, i && d);
4536
+ l ? (U.appendChild(l), u = e.select(l), d = !0) : u = e.select(U).append("g").attr("class", "bc-symbols").attr("data-series", t.name).attr("data-series-name", t.name), ya(u, s, Me, o, i && d);
4539
4537
  });
4540
- let Pe = a.labels.length - 1, Fe = ie(Pe) + 6, Ie = [];
4538
+ let Ne = a.labels.length - 1, Pe = Y(Ne) + 6, Fe = [];
4541
4539
  if (g.forEach((e, t) => {
4542
4540
  if ($i(e.name, S, b) !== "direct") return;
4543
- let n = e.values[Pe];
4541
+ let n = e.values[Ne];
4544
4542
  if (!Number.isFinite(n)) return;
4545
4543
  let r = b?.find((t) => t.name === e.name)?.labelText || e.name;
4546
- Ie.push({
4544
+ Fe.push({
4547
4545
  name: e.name,
4548
4546
  index: t,
4549
- naturalY: Y(n),
4547
+ naturalY: re(n),
4550
4548
  text: r
4551
4549
  });
4552
- }), Ie.length > 0) {
4553
- Ie.sort((e, t) => e.naturalY - t.naturalY);
4554
- let t = Ea(Ie.map((e) => e.naturalY), 0, G, 14);
4555
- Ie.forEach((n, r) => {
4556
- e.select(U).append("text").attr("class", "bc-direct-label").attr("data-series", n.name).attr("x", Fe).attr("y", t[r]).attr("dy", "0.35em").attr("font-size", "11px").attr("fill", Ji(n.name, n.index, _, b)).text(n.text);
4550
+ }), Fe.length > 0) {
4551
+ Fe.sort((e, t) => e.naturalY - t.naturalY);
4552
+ let t = Ea(Fe.map((e) => e.naturalY), 0, G, 14);
4553
+ Fe.forEach((n, r) => {
4554
+ e.select(U).append("text").attr("class", "bc-direct-label").attr("data-series", n.name).attr("x", Pe).attr("y", t[r]).attr("dy", "0.35em").attr("font-size", "11px").attr("fill", Ji(n.name, n.index, _, b)).text(n.text);
4557
4555
  });
4558
4556
  }
4559
- let Le = v.filter((e) => $i(e, S, b) === "legend");
4560
- if (w && Le.length > 0) {
4561
- let e = Le.map((e) => Ji(e, h.findIndex((t) => t.name === e), _, b)), t = 0, n = 0;
4557
+ let Ie = v.filter((e) => $i(e, S, b) === "legend");
4558
+ if (w && Ie.length > 0) {
4559
+ let e = Ie.map((e) => Ji(e, h.findIndex((t) => t.name === e), _, b)), t = 0, n = 0;
4562
4560
  if (D === "top") {
4563
4561
  let e = R ? 15 : 0;
4564
4562
  n = -(B.height + 10 + e);
4565
- } else D === "bottom" ? n = G + 25 : D === "left" ? t = -(B.width + 10) : D === "right" && (t = W + 10);
4566
- En(U, Le, e, n, D, O, W, G, t, [], {
4563
+ } else D === "bottom" ? n = G + Math.max(K.bottom - V, 0) : D === "left" ? t = -(B.width + 10) : D === "right" && (t = W + 10);
4564
+ En(U, Ie, e, n, D, O, W, G, t, [], {
4567
4565
  left: K.left,
4568
4566
  right: K.right
4569
4567
  });
@@ -4571,8 +4569,8 @@ function Pa(t, n, r = {}, i = !1) {
4571
4569
  Nr(t, {
4572
4570
  chartType: "line-multi",
4573
4571
  margin: K,
4574
- plotRect: Ae
4575
- }), l && (Dt(le.node()), Ot(t, l));
4572
+ plotRect: Oe
4573
+ }), l && (Dt(ce.node()), Ot(t, l));
4576
4574
  }
4577
4575
  function Fa(t, n, r, i, a, o, s) {
4578
4576
  let c = e.select(t).append("g").attr("class", "bc-area-fills");
@@ -4696,7 +4694,7 @@ function Ha(t, n, r, i, a = !1) {
4696
4694
  })).sort((e, t) => t.value - e.value || e.i - t.i), n = t.slice(0, e).sort((e, t) => e.i - t.i), i = t.slice(e).reduce((e, t) => e + t.value, 0);
4697
4695
  l = [...n.map((e) => e.label), r.sliceGroupLabel ?? "Others"], u = [...n.map((e) => e.value), i];
4698
4696
  }
4699
- let d = u.reduce((e, t) => e + t, 0), f = u.map((e) => d > 0 ? e / d * 100 : 0), p = Ki(r.colors ?? Ra, l.length), m = typeof r.directLabelling == "string" ? r.directLabelling : r.directLabelling ? W.Auto : W.Off, h = !!m && (m !== W.Auto || r.legend !== !0), g = (r.showValues ?? !0) && !h ? u.map((e, t) => `(${r.displayAsPercentage ? `${Math.round(f[t])}%` : za(e)})`) : [], _ = r.legend !== !1 && !h, v = bt(c).width, y = r.legendPosition ?? "top", b = v > 0 && v < 350 && (y === "left" || y === "right") ? "top" : y, x = r.legendAnchor ?? "start", S = g.length > 0 ? l.map((e, t) => `${e} ${g[t]}`) : l, C = Math.max(0, v - 50 - 20), w = _ ? yn(S, b, C) : {
4697
+ let d = u.reduce((e, t) => e + t, 0), f = u.map((e) => d > 0 ? e / d * 100 : 0), p = Ki(r.colors ?? Ra, l.length), m = typeof r.directLabelling == "string" ? r.directLabelling : r.directLabelling ? G.Auto : G.Off, h = !!m && (m !== G.Auto || r.legend !== !0), g = (r.showValues ?? !0) && !h ? u.map((e, t) => `(${r.displayAsPercentage ? `${Math.round(f[t])}%` : za(e)})`) : [], _ = r.legend !== !1 && !h, v = bt(c).width, y = r.legendPosition ?? "top", b = v > 0 && v < 350 && (y === "left" || y === "right") ? "top" : y, x = r.legendAnchor ?? "start", S = g.length > 0 ? l.map((e, t) => `${e} ${g[t]}`) : l, C = Math.max(0, v - 50 - 20), w = _ ? yn(S, b, C) : {
4700
4698
  width: 0,
4701
4699
  height: 0
4702
4700
  }, T = _ ? w.height + 15 : 0, E = {};
@@ -4722,7 +4720,7 @@ function Ha(t, n, r, i, a = !1) {
4722
4720
  value: u[t],
4723
4721
  arc: e,
4724
4722
  color: R.get(l[t]) ?? N(l[t])
4725
- })), V = Ur(t), ee = fi(r.highlights, l);
4723
+ })), V = Ur(t), H = fi(r.highlights, l);
4726
4724
  ti(V, {
4727
4725
  role: "mark-per-category",
4728
4726
  parent: L.append("g").node(),
@@ -4736,14 +4734,14 @@ function Ha(t, n, r, i, a = !1) {
4736
4734
  d: I(e.arc) ?? "",
4737
4735
  fill: e.color
4738
4736
  };
4739
- return ee.size > 0 ? {
4737
+ return H.size > 0 ? {
4740
4738
  ...t,
4741
- opacity: pi(ee, e.label)
4739
+ opacity: pi(H, e.label)
4742
4740
  } : t;
4743
4741
  }
4744
4742
  });
4745
- let H = new Ba(L);
4746
- if (r.tooltips && H.use(zn()), H.draw(B), r.annotations?.length) {
4743
+ let U = new Ba(L);
4744
+ if (r.tooltips && U.use(zn()), U.draw(B), r.annotations?.length) {
4747
4745
  let n = r.annotations.filter((e) => e.kind === "range");
4748
4746
  n.length && console.warn(`[blueprint-chart] Range annotations have no meaning on an arc chart; ignoring ${n.length}.`);
4749
4747
  let i = new Map(B.map((e) => [e.label, I.centroid(e.arc)])), o = r.annotations.filter((e) => e.kind !== "range");
@@ -4779,7 +4777,7 @@ function Ha(t, n, r, i, a = !1) {
4779
4777
  chartHeight: k,
4780
4778
  bgColor: Xe(t)
4781
4779
  };
4782
- m === W.Inside ? ka(n, e, i) : m === W.Auto ? Aa(n, e, i) : Da(n, e, i);
4780
+ m === G.Inside ? ka(n, e, i) : m === G.Auto ? Aa(n, e, i) : Da(n, e, i);
4783
4781
  }
4784
4782
  if (r.showTotal && i > 0 && !r.displayAsPercentage) {
4785
4783
  let e = za(d);
@@ -4839,9 +4837,9 @@ function Wa(t, n, r = {}, i = !1) {
4839
4837
  y: 0,
4840
4838
  width: y,
4841
4839
  height: b
4842
- }), z = e.select(v).append("g").attr("clip-path", `url(#${R})`), B = z.node(), V = r.colors?.[0] ?? "#4e79a7", ee = la(r.interpolation ?? "monotoneX"), H = r.areaFillOpacity ?? .25, U = (e) => Number.isFinite(e.value), W = e.area().curve(ee).defined(U).x((e) => A(e)).y0(b).y1((e) => P(e.value)), G = e.line().curve(ee).defined(U).x((e) => A(e)).y((e) => P(e.value)), K = e.select(B).append("g").node(), te = e.select(B).append("g").node();
4840
+ }), z = e.select(v).append("g").attr("clip-path", `url(#${R})`), B = z.node(), V = r.colors?.[0] ?? "#4e79a7", H = la(r.interpolation ?? "monotoneX"), U = r.areaFillOpacity ?? .25, W = (e) => Number.isFinite(e.value), G = e.area().curve(H).defined(W).x((e) => A(e)).y0(b).y1((e) => P(e.value)), K = e.line().curve(H).defined(W).x((e) => A(e)).y((e) => P(e.value)), ee = e.select(B).append("g").node(), te = e.select(B).append("g").node();
4843
4841
  if (i) {
4844
- for (let e of a) K.appendChild(e);
4842
+ for (let e of a) ee.appendChild(e);
4845
4843
  for (let e of o) te.appendChild(e);
4846
4844
  }
4847
4845
  let q = Ur(t), J = [{
@@ -4850,15 +4848,15 @@ function Wa(t, n, r = {}, i = !1) {
4850
4848
  }];
4851
4849
  ti(q, {
4852
4850
  role: "series-area",
4853
- parent: K,
4851
+ parent: ee,
4854
4852
  selector: ".bc-area",
4855
4853
  data: J,
4856
4854
  key: (e) => e.name,
4857
4855
  insert: (e) => e.append("path").attr("class", "bc-area"),
4858
4856
  attrs: (e) => ({
4859
- d: W(e.points) ?? "",
4857
+ d: G(e.points) ?? "",
4860
4858
  fill: V,
4861
- opacity: H
4859
+ opacity: U
4862
4860
  })
4863
4861
  }), ti(q, {
4864
4862
  role: "series-line",
@@ -4868,7 +4866,7 @@ function Wa(t, n, r = {}, i = !1) {
4868
4866
  key: (e) => e.name,
4869
4867
  insert: (e) => e.append("path").attr("class", "bc-line"),
4870
4868
  attrs: (e) => ({
4871
- d: G(e.points) ?? "",
4869
+ d: K(e.points) ?? "",
4872
4870
  fill: "none",
4873
4871
  stroke: V,
4874
4872
  "stroke-width": 2
@@ -4995,7 +4993,7 @@ function Ja(t, n, r = {}, i = !1) {
4995
4993
  series: t
4996
4994
  };
4997
4995
  }
4998
- let h = Gi(a), g = h.filter((e) => !Qi(e.name, r.seriesOverrides)), _ = Ki(r.colors ?? qa, h.length), v = g.map((e) => e.name), b = v.filter(Boolean), x = r.seriesOverrides, S = Ar(r.colorizes), C = r.directLabelling === !0 || r.directLabelling === "auto" && r.legend !== !0 || !!r.directLabelling && r.directLabelling !== "auto", w = C ? "direct" : r.legend === !1 ? "none" : "legend", T = v.filter((e) => $i(e, w, x) === "direct"), E = r.legend !== !1 && !C, D = bt(p).width, O = r.legendPosition ?? "top", k = D > 0 && D < 350 && (O === "left" || O === "right") ? "top" : O, A = r.legendAnchor ?? "start", j = r.stacked !== !1, M = r.stackPercent === !0 || r.stackMode === ee.Percent, N = r.areaSortMode ?? F.None, P = r.areaLines !== !1, I = [...g];
4996
+ let h = Gi(a), g = h.filter((e) => !Qi(e.name, r.seriesOverrides)), _ = Ki(r.colors ?? qa, h.length), v = g.map((e) => e.name), b = v.filter(Boolean), x = r.seriesOverrides, S = Ar(r.colorizes), C = r.directLabelling === !0 || r.directLabelling === "auto" && r.legend !== !0 || !!r.directLabelling && r.directLabelling !== "auto", w = C ? "direct" : r.legend === !1 ? "none" : "legend", T = v.filter((e) => $i(e, w, x) === "direct"), E = r.legend !== !1 && !C, D = bt(p).width, O = r.legendPosition ?? "top", k = D > 0 && D < 350 && (O === "left" || O === "right") ? "top" : O, A = r.legendAnchor ?? "start", j = r.stacked !== !1, M = r.stackPercent === !0 || r.stackMode === H.Percent, N = r.areaSortMode ?? F.None, P = r.areaLines !== !1, I = [...g];
4999
4997
  if (N !== F.None) {
5000
4998
  let e = new Map(I.map((e) => [e.name, e.values.reduce((e, t) => e + t, 0)]));
5001
4999
  I.sort((t, n) => {
@@ -5011,108 +5009,106 @@ function Ja(t, n, r = {}, i = !1) {
5011
5009
  if (j) for (let e of R) for (let t of e) t[1] > z && (z = t[1]);
5012
5010
  else for (let e of I) for (let t of e.values) t > z && (z = t);
5013
5011
  M && (z = 100);
5014
- let B = [0, z], V = r.verticalAxis?.numberFormat ?? (M ? "|d|%" : void 0), H = _t(B, r.verticalAxis?.range, V, r.verticalAxis?.scaleType), U = vt(D, r.verticalAxis?.labelPosition, r.horizontalAxis?.labelPosition, r.verticalAxis?.direction, H), W = T.length > 0 ? bn(T) : 0, G = U.top != null, K = Math.max(0, D - (U.left ?? 50) - (U.right ?? 20) - W), te = E ? yn(b, k, K) : {
5012
+ let B = [0, z], V = r.verticalAxis?.numberFormat ?? (M ? "|d|%" : void 0), U = _t(B, r.verticalAxis?.range, V, r.verticalAxis?.scaleType), W = vt(D, r.verticalAxis?.labelPosition, r.horizontalAxis?.labelPosition, r.verticalAxis?.direction, U), G = T.length > 0 ? bn(T) : 0, K = W.top != null, ee = Math.max(0, D - (W.left ?? 50) - (W.right ?? 20) - G), te = E ? yn(b, k, ee) : {
5015
5013
  width: 0,
5016
5014
  height: 0
5017
- }, q = E ? te.height + 15 : 0, J = { ...U };
5018
- E && k === "top" && (J.top = q + (G ? 15 : 0)), E && k === "bottom" && (J.bottom = (J.bottom ?? 24) + q), E && k === "left" && (J.left = (J.left ?? 50) + te.width + 10), E && k === "right" && (J.right = (J.right ?? 20) + te.width + 10), W > 0 && (J.right = (J.right ?? 20) + W);
5019
- let ne = rn(a.labels, Math.max(0, bt(p).width - (J.left ?? 50) - (J.right ?? 20)), r.horizontalAxis);
5020
- ne !== void 0 && (J.bottom = ne);
5021
- let { chartArea: re, width: ie, height: Y, margin: ae } = St(p, J), oe = st(u, ae), se = e.scalePoint().domain(a.labels).range([0, ie]).padding(r.edgePadding ? .6 : 0), ce = se, le = (e) => se(a.labels[e]) ?? 0, [ue, fe] = ke(B, r.verticalAxis?.range, r.verticalAxis?.scaleType), pe = (r.verticalAxis?.scaleType === y.Log ? e.scaleSymlog() : e.scaleLinear()).domain([ue, fe]).nice().range([Y, 0]);
5022
- f.attach(re, oe), f.update({
5015
+ }, q = E ? te.height + 15 : 0, J = { ...W };
5016
+ E && k === "top" && (J.top = q + (K ? 15 : 0)), E && k === "left" && (J.left = (J.left ?? 50) + te.width + 10), E && k === "right" && (J.right = (J.right ?? 20) + te.width + 10), G > 0 && (J.right = (J.right ?? 20) + G), J.bottom = (rn(a.labels, Math.max(0, D - (J.left ?? 50) - (J.right ?? 20)), r.horizontalAxis) ?? Math.max(J.bottom ?? 24, 24)) + (k === "bottom" ? q : 0);
5017
+ let { chartArea: ne, width: Y, height: re, margin: ie } = St(p, J), ae = st(u, ie), oe = e.scalePoint().domain(a.labels).range([0, Y]).padding(r.edgePadding ? .6 : 0), se = oe, ce = (e) => oe(a.labels[e]) ?? 0, [le, ue] = ke(B, r.verticalAxis?.range, r.verticalAxis?.scaleType), fe = (r.verticalAxis?.scaleType === y.Log ? e.scaleSymlog() : e.scaleLinear()).domain([le, ue]).nice().range([re, 0]);
5018
+ f.attach(ne, ae), f.update({
5023
5019
  vertical: {
5024
- scale: pe,
5025
- height: Y,
5020
+ scale: fe,
5021
+ height: re,
5026
5022
  options: {
5027
5023
  ...r.verticalAxis,
5028
5024
  numberFormat: V,
5029
- gridWidth: ie,
5030
- topPadding: ae.top
5025
+ gridWidth: Y,
5026
+ topPadding: ie.top
5031
5027
  }
5032
5028
  },
5033
5029
  horizontal: {
5034
- scale: ce,
5035
- height: Y,
5030
+ scale: se,
5031
+ height: re,
5036
5032
  options: {
5037
5033
  ...r.horizontalAxis,
5038
- width: ie
5034
+ width: Y
5039
5035
  }
5040
5036
  }
5041
5037
  });
5042
- let me = re.ownerSVGElement, he = Ir(me, t, "plot", {
5038
+ let pe = ne.ownerSVGElement, me = Ir(pe, t, "plot", {
5043
5039
  x: 0,
5044
5040
  y: 0,
5045
- width: ie,
5046
- height: Y
5047
- }), ge = e.select(re).append("g").attr("clip-path", `url(#${he})`), _e = ge.node(), ve = la(r.interpolation ?? "monotoneX"), ye = R.map((e) => {
5041
+ width: Y,
5042
+ height: re
5043
+ }), he = e.select(ne).append("g").attr("clip-path", `url(#${me})`), ge = he.node(), _e = la(r.interpolation ?? "monotoneX"), ve = R.map((e) => {
5048
5044
  let t = h.findIndex((t) => t.name === e.key), n;
5049
- return n = j ? Array.from(e).map((e) => [pe(e[0]), pe(e[1])]) : (I.find((t) => t.name === e.key)?.values ?? []).map((e) => [pe(0), pe(e)]), {
5045
+ return n = j ? Array.from(e).map((e) => [fe(e[0]), fe(e[1])]) : (I.find((t) => t.name === e.key)?.values ?? []).map((e) => [fe(0), fe(e)]), {
5050
5046
  name: e.key,
5051
5047
  points: n,
5052
5048
  colorIndex: t >= 0 ? t : 0
5053
5049
  };
5054
- }), be = fi(r.highlights, ye.map((e) => e.name)), xe = be.size > 0, Se = r.areaFillOpacity == null ? .85 : r.areaFillOpacity, Ce = (e) => S.get(e.name) ?? Ji(e.name, e.colorIndex, _, x), we = e.area().curve(ve).x((e, t) => le(t)).y0((e) => e[0]).y1((e) => e[1]), Te = e.select(_e).append("g").node(), De = e.select(_e).append("g").node();
5050
+ }), ye = fi(r.highlights, ve.map((e) => e.name)), be = ye.size > 0, xe = r.areaFillOpacity == null ? .85 : r.areaFillOpacity, Se = (e) => S.get(e.name) ?? Ji(e.name, e.colorIndex, _, x), Ce = e.area().curve(_e).x((e, t) => ce(t)).y0((e) => e[0]).y1((e) => e[1]), we = e.select(ge).append("g").node(), Te = e.select(ge).append("g").node();
5055
5051
  if (i) {
5056
- for (let e of o) Te.appendChild(e);
5057
- for (let e of s) De.appendChild(e);
5052
+ for (let e of o) we.appendChild(e);
5053
+ for (let e of s) Te.appendChild(e);
5058
5054
  }
5059
- let Oe = Ur(t);
5060
- ti(Oe, {
5055
+ let De = Ur(t);
5056
+ ti(De, {
5061
5057
  role: "series-area",
5062
- parent: Te,
5058
+ parent: we,
5063
5059
  selector: ".bc-area",
5064
- data: ye,
5060
+ data: ve,
5065
5061
  key: (e) => e.name,
5066
5062
  insert: (e) => e.append("path").attr("class", "bc-area"),
5067
5063
  attrs: (e) => ({
5068
5064
  "data-series": e.name,
5069
- d: we(e.points) ?? "",
5070
- fill: Ce(e),
5071
- opacity: xe ? pi(be, e.name, Se) : Se
5065
+ d: Ce(e.points) ?? "",
5066
+ fill: Se(e),
5067
+ opacity: be ? pi(ye, e.name, xe) : xe
5072
5068
  })
5073
- }), ti(Oe, {
5069
+ }), ti(De, {
5074
5070
  role: "series-line",
5075
- parent: De,
5071
+ parent: Te,
5076
5072
  selector: ".bc-line",
5077
- data: P ? ye : [],
5073
+ data: P ? ve : [],
5078
5074
  key: (e) => e.name,
5079
5075
  insert: (e) => e.append("path").attr("class", "bc-line"),
5080
5076
  attrs: (t) => {
5081
- let n = Zi(t.name, r.interpolation ?? "monotoneX", x), i = e.line().curve(la(n)).x((e, t) => le(t)).y((e) => e[1]);
5077
+ let n = Zi(t.name, r.interpolation ?? "monotoneX", x), i = e.line().curve(la(n)).x((e, t) => ce(t)).y((e) => e[1]);
5082
5078
  return {
5083
5079
  "data-series": t.name,
5084
5080
  d: i(t.points) ?? "",
5085
5081
  fill: "none",
5086
- stroke: Ce(t),
5082
+ stroke: Se(t),
5087
5083
  "stroke-width": 1,
5088
- opacity: xe ? pi(be, t.name, 1) : 1
5084
+ opacity: be ? pi(ye, t.name, 1) : 1
5089
5085
  };
5090
5086
  }
5091
5087
  });
5092
- let Ae = {
5093
- left: ae.left,
5094
- top: ae.top,
5095
- width: ie,
5096
- height: Y
5088
+ let Oe = {
5089
+ left: ie.left,
5090
+ top: ie.top,
5091
+ width: Y,
5092
+ height: re
5097
5093
  };
5098
- if (li(Oe, {
5099
- svg: me,
5100
- clipId: he,
5101
- group: re,
5094
+ if (li(De, {
5095
+ svg: pe,
5096
+ clipId: me,
5097
+ group: ne,
5102
5098
  from: d,
5103
- to: Ae,
5099
+ to: Oe,
5104
5100
  active: i && (o.length > 0 || s.length > 0)
5105
5101
  }), r.annotations?.length) {
5106
5102
  let e = a.labels.map((e, t) => ({
5107
5103
  label: e,
5108
5104
  value: g[0]?.values[t] ?? 0
5109
5105
  }));
5110
- Or(re, r.annotations, {
5111
- scaleX: ce,
5112
- scaleY: pe,
5106
+ Or(ne, r.annotations, {
5107
+ scaleX: se,
5108
+ scaleY: fe,
5113
5109
  data: e,
5114
- width: ie,
5115
- height: Y,
5110
+ width: Y,
5111
+ height: re,
5116
5112
  backgroundColor: Xe(t),
5117
5113
  transition: i,
5118
5114
  priorAnnotations: l
@@ -5125,17 +5121,17 @@ function Ja(t, n, r = {}, i = !1) {
5125
5121
  Array.from(t).forEach((r, i) => {
5126
5122
  let o = r[1] - r[0];
5127
5123
  e.push({
5128
- cx: le(i),
5129
- cy: pe(r[1]),
5124
+ cx: ce(i),
5125
+ cy: fe(r[1]),
5130
5126
  label: a.labels[i],
5131
5127
  value: Math.round(o * 100) / 100,
5132
5128
  series: t.key,
5133
5129
  color: Ji(t.key, n, _, x)
5134
5130
  });
5135
5131
  });
5136
- }), ha(re, {
5137
- width: ie,
5138
- height: Y,
5132
+ }), ha(ne, {
5133
+ width: Y,
5134
+ height: re,
5139
5135
  points: e,
5140
5136
  tooltip: r.tooltips,
5141
5137
  crosshair: r.crosshair,
@@ -5146,44 +5142,44 @@ function Ja(t, n, r = {}, i = !1) {
5146
5142
  container: t
5147
5143
  });
5148
5144
  }
5149
- let je = a.labels.length - 1, Me = le(je) + 6, Ne = [];
5145
+ let Ae = a.labels.length - 1, je = ce(Ae) + 6, Me = [];
5150
5146
  if (g.forEach((e, t) => {
5151
5147
  if ($i(e.name, w, x) !== "direct") return;
5152
5148
  let n = R.find((t) => t.key === e.name);
5153
5149
  if (!n) return;
5154
- let r = n[je];
5150
+ let r = n[Ae];
5155
5151
  if (!r) return;
5156
- let i = pe((r[0] + r[1]) / 2), a = x?.find((t) => t.name === e.name)?.labelText || e.name;
5157
- Ne.push({
5152
+ let i = fe((r[0] + r[1]) / 2), a = x?.find((t) => t.name === e.name)?.labelText || e.name;
5153
+ Me.push({
5158
5154
  name: e.name,
5159
5155
  index: t,
5160
5156
  naturalY: i,
5161
5157
  text: a
5162
5158
  });
5163
- }), Ne.length > 0) {
5164
- Ne.sort((e, t) => e.naturalY - t.naturalY);
5165
- let t = Ea(Ne.map((e) => e.naturalY), 0, Y, 14);
5166
- Ne.forEach((n, r) => {
5167
- e.select(re).append("text").attr("class", "bc-direct-label").attr("data-series", n.name).attr("x", Me).attr("y", t[r]).attr("dy", "0.35em").attr("font-size", "11px").attr("fill", Ji(n.name, n.index, _, x)).text(n.text);
5159
+ }), Me.length > 0) {
5160
+ Me.sort((e, t) => e.naturalY - t.naturalY);
5161
+ let t = Ea(Me.map((e) => e.naturalY), 0, re, 14);
5162
+ Me.forEach((n, r) => {
5163
+ e.select(ne).append("text").attr("class", "bc-direct-label").attr("data-series", n.name).attr("x", je).attr("y", t[r]).attr("dy", "0.35em").attr("font-size", "11px").attr("fill", Ji(n.name, n.index, _, x)).text(n.text);
5168
5164
  });
5169
5165
  }
5170
- let Pe = b.filter((e) => $i(e, w, x) === "legend");
5171
- if (E && Pe.length > 0) {
5172
- let e = Pe.map((e) => Ji(e, h.findIndex((t) => t.name === e), _, x)), t = 0, n = 0;
5166
+ let Ne = b.filter((e) => $i(e, w, x) === "legend");
5167
+ if (E && Ne.length > 0) {
5168
+ let e = Ne.map((e) => Ji(e, h.findIndex((t) => t.name === e), _, x)), t = 0, n = 0;
5173
5169
  if (k === "top") {
5174
- let e = G ? 15 : 0;
5170
+ let e = K ? 15 : 0;
5175
5171
  n = -(te.height + 10 + e);
5176
- } else k === "bottom" ? n = Y + 25 : k === "left" ? t = -(te.width + 10) : k === "right" && (t = ie + 10);
5177
- En(re, Pe, e, n, k, A, ie, Y, t, [], {
5178
- left: ae.left,
5179
- right: ae.right
5172
+ } else k === "bottom" ? n = re + Math.max(ie.bottom - q, 0) : k === "left" ? t = -(te.width + 10) : k === "right" && (t = Y + 10);
5173
+ En(ne, Ne, e, n, k, A, Y, re, t, [], {
5174
+ left: ie.left,
5175
+ right: ie.right
5180
5176
  });
5181
5177
  }
5182
5178
  Nr(t, {
5183
5179
  chartType: "area-stacked",
5184
- margin: ae,
5185
- plotRect: Ae
5186
- }), c && (Dt(ge.node()), Ot(t, c));
5180
+ margin: ie,
5181
+ plotRect: Oe
5182
+ }), c && (Dt(he.node()), Ot(t, c));
5187
5183
  }
5188
5184
  //#endregion
5189
5185
  //#region src/charts/types/column-stacked/column-stacked.ts
@@ -5228,14 +5224,14 @@ function Za(t, n, r = {}, i = !1) {
5228
5224
  labels: n.labels,
5229
5225
  values: n.values,
5230
5226
  series: p
5231
- }, w = r.stackMode === ee.Percent, T = Xa(w ? Ka(C) : Ga(C), n.labels, f), E = w ? 100 : e.max(T, (e) => e.y1) ?? 0, D = w ? Math.min(0, e.min(T, (e) => e.y0) ?? 0) : 0, O = w ? [D, E] : T.flatMap((e) => [e.y0, e.y1]), k = _t(O, r.verticalAxis?.range, r.verticalAxis?.numberFormat, r.verticalAxis?.scaleType), A = vt(v, r.verticalAxis?.labelPosition, r.horizontalAxis?.labelPosition, r.verticalAxis?.direction, k), j = Math.max(0, v - (A.left ?? 50) - (A.right ?? 20)), M = rn(n.labels, j, r.horizontalAxis);
5232
- M !== void 0 && (A.bottom = M);
5233
- let N = A.top != null, P = Math.max(0, v - (A.left ?? 50) - (A.right ?? 20)), F = _ ? yn(m, x, P) : {
5227
+ }, w = r.stackMode === H.Percent, T = Xa(w ? Ka(C) : Ga(C), n.labels, f), E = w ? 100 : e.max(T, (e) => e.y1) ?? 0, D = w ? Math.min(0, e.min(T, (e) => e.y0) ?? 0) : 0, O = w ? [D, E] : T.flatMap((e) => [e.y0, e.y1]), k = _t(O, r.verticalAxis?.range, r.verticalAxis?.numberFormat, r.verticalAxis?.scaleType), A = vt(v, r.verticalAxis?.labelPosition, r.horizontalAxis?.labelPosition, r.verticalAxis?.direction, k), j = A.top != null, M = Math.max(0, v - (A.left ?? 50) - (A.right ?? 20)), N = _ ? yn(m, x, M) : {
5234
5228
  width: 0,
5235
5229
  height: 0
5236
- }, I = _ ? F.height + 15 : 0, L = { ...A };
5237
- _ && x === "top" && (L.top = I + (N ? 15 : 0)), _ && x === "bottom" && (L.bottom = (L.bottom ?? 24) + I), _ && x === "left" && (L.left = (L.left ?? 50) + F.width + 10), _ && x === "right" && (L.right = (L.right ?? 20) + F.width + 10);
5238
- let { chartArea: R, width: z, height: B, margin: V } = St(d, L), H = st(c, V), U = n.labels;
5230
+ }, P = _ ? N.height + 15 : 0, F = { ...A };
5231
+ _ && x === "top" && (F.top = P + (j ? 15 : 0)), _ && x === "left" && (F.left = (F.left ?? 50) + N.width + 10), _ && x === "right" && (F.right = (F.right ?? 20) + N.width + 10);
5232
+ let I = Math.max(0, v - (F.left ?? 50) - (F.right ?? 20));
5233
+ F.bottom = (rn(n.labels, I, r.horizontalAxis) ?? Math.max(F.bottom ?? 24, 24)) + (x === "bottom" ? P : 0);
5234
+ let { chartArea: L, width: R, height: z, margin: B } = St(d, F), V = st(c, B), U = n.labels;
5239
5235
  if (r.sortMode === "total") {
5240
5236
  let e = n.labels.map((e, t) => ({
5241
5237
  label: e,
@@ -5244,70 +5240,70 @@ function Za(t, n, r = {}, i = !1) {
5244
5240
  }));
5245
5241
  e.sort((e, t) => t.total - e.total), U = e.map((e) => e.label);
5246
5242
  }
5247
- let W = e.scaleBand().domain(U).range([0, z]).padding(Oe(r.barGap)), [G, K] = ke(O, r.verticalAxis?.range, r.verticalAxis?.scaleType), te = (r.verticalAxis?.scaleType === y.Log ? e.scaleSymlog() : e.scaleLinear()).domain([G, K]).nice().range([B, 0]);
5248
- u.attach(R, H), u.update({
5243
+ let W = e.scaleBand().domain(U).range([0, R]).padding(Oe(r.barGap)), [G, K] = ke(O, r.verticalAxis?.range, r.verticalAxis?.scaleType), ee = (r.verticalAxis?.scaleType === y.Log ? e.scaleSymlog() : e.scaleLinear()).domain([G, K]).nice().range([z, 0]);
5244
+ u.attach(L, V), u.update({
5249
5245
  vertical: {
5250
- scale: te,
5251
- height: B,
5246
+ scale: ee,
5247
+ height: z,
5252
5248
  options: {
5253
5249
  ...r.verticalAxis,
5254
- gridWidth: z,
5255
- topPadding: V.top
5250
+ gridWidth: R,
5251
+ topPadding: B.top
5256
5252
  }
5257
5253
  },
5258
5254
  horizontal: {
5259
5255
  scale: W,
5260
- height: B,
5256
+ height: z,
5261
5257
  options: {
5262
5258
  ...r.horizontalAxis,
5263
- width: z
5259
+ width: R
5264
5260
  }
5265
5261
  }
5266
5262
  });
5267
- let q = R.ownerSVGElement, J = Ir(q, t, "bars", {
5263
+ let te = L.ownerSVGElement, q = Ir(te, t, "bars", {
5268
5264
  x: 0,
5269
5265
  y: 0,
5270
- width: z,
5271
- height: B
5272
- }), ne = e.select(R).append("g").attr("clip-path", `url(#${J})`), re = U === n.labels ? T : U.flatMap((e) => T.filter((t) => t.label === e)), ie = Ar(r.colorizes), Y = fi(r.highlights, T.map((e) => e.seriesName)), ae = Ur(t), oe = ne.append("g").node();
5273
- if (i) for (let e of a) e.removeAttribute("opacity"), e.removeAttribute("fill-opacity"), oe.appendChild(e);
5274
- ti(ae, {
5266
+ width: R,
5267
+ height: z
5268
+ }), J = e.select(L).append("g").attr("clip-path", `url(#${q})`), ne = U === n.labels ? T : U.flatMap((e) => T.filter((t) => t.label === e)), Y = Ar(r.colorizes), re = fi(r.highlights, T.map((e) => e.seriesName)), ie = Ur(t), ae = J.append("g").node();
5269
+ if (i) for (let e of a) e.removeAttribute("opacity"), e.removeAttribute("fill-opacity"), ae.appendChild(e);
5270
+ ti(ie, {
5275
5271
  role: "mark-per-cell",
5276
- parent: oe,
5272
+ parent: ae,
5277
5273
  selector: ".bc-bar-stacked",
5278
- data: re,
5274
+ data: ne,
5279
5275
  key: (e) => e.label + "\0" + e.seriesName,
5280
5276
  insert: (e) => e.append("rect").attr("class", "bc-bar bc-bar-stacked"),
5281
5277
  attrs: (e) => {
5282
- let t = ie.get(e.seriesName) ?? Ji(e.seriesName, e.seriesIndex, h, g), n = ta(e.seriesName, g), r = {
5278
+ let t = Y.get(e.seriesName) ?? Ji(e.seriesName, e.seriesIndex, h, g), n = ta(e.seriesName, g), r = {
5283
5279
  "data-series": e.seriesName,
5284
5280
  x: W(e.label) ?? 0,
5285
- y: te(e.y1),
5281
+ y: ee(e.y1),
5286
5282
  width: W.bandwidth(),
5287
- height: te(e.y0) - te(e.y1),
5283
+ height: ee(e.y0) - ee(e.y1),
5288
5284
  fill: t
5289
5285
  };
5290
- return n < 1 && (r["fill-opacity"] = n), Y.size > 0 && (r.opacity = pi(Y, e.seriesName)), r;
5286
+ return n < 1 && (r["fill-opacity"] = n), re.size > 0 && (r.opacity = pi(re, e.seriesName)), r;
5291
5287
  }
5292
5288
  });
5293
- let se = {
5294
- left: V.left,
5295
- top: V.top,
5296
- width: z,
5297
- height: B
5289
+ let oe = {
5290
+ left: B.left,
5291
+ top: B.top,
5292
+ width: R,
5293
+ height: z
5298
5294
  };
5299
- li(ae, {
5300
- svg: q,
5301
- clipId: J,
5302
- group: R,
5295
+ li(ie, {
5296
+ svg: te,
5297
+ clipId: q,
5298
+ group: L,
5303
5299
  from: l,
5304
- to: se,
5300
+ to: oe,
5305
5301
  active: i && a.length > 0
5306
5302
  });
5307
- let ce = Rr(ne);
5308
- if (r.tooltips && ce.use(zn({ numberFormat: r.verticalAxis?.numberFormat })), r.crosshair && ce.use(Vn({
5309
- width: z,
5310
- height: B,
5303
+ let se = Rr(J);
5304
+ if (r.tooltips && se.use(zn({ numberFormat: r.verticalAxis?.numberFormat })), r.crosshair && se.use(Vn({
5305
+ width: R,
5306
+ height: z,
5311
5307
  direction: r.crosshairDirection,
5312
5308
  style: r.crosshairStyle,
5313
5309
  color: r.crosshairColor
@@ -5316,27 +5312,27 @@ function Za(t, n, r = {}, i = !1) {
5316
5312
  label: e,
5317
5313
  value: p.reduce((e, n) => e + (n.values[t] ?? 0), 0)
5318
5314
  }));
5319
- ce.use(kr(r.annotations, {
5315
+ se.use(kr(r.annotations, {
5320
5316
  scaleX: W,
5321
- scaleY: te,
5317
+ scaleY: ee,
5322
5318
  data: e,
5323
- width: z,
5324
- height: B,
5319
+ width: R,
5320
+ height: z,
5325
5321
  backgroundColor: Xe(t),
5326
5322
  transition: i,
5327
5323
  priorAnnotations: s
5328
5324
  }));
5329
5325
  }
5330
- let le = () => ce.draw(re);
5331
- ae.state === "committing" ? ae.register(le) : le(), Nr(t, {
5326
+ let ce = () => se.draw(ne);
5327
+ ie.state === "committing" ? ie.register(ce) : ce(), Nr(t, {
5332
5328
  chartType: "column-stacked",
5333
- margin: V,
5334
- plotRect: se
5335
- }), o && (Dt(ne.node()), Ot(t, o));
5336
- let ue = r.valueLabels ?? !1, fe = e.rollup(re, (t) => e.max(t, (e) => e.y1) ?? 0, (e) => e.label), pe = e.select(R).append("g").attr("class", "bc-value-labels");
5337
- if (re.forEach((e) => {
5338
- if (!ea(e.seriesName, ue, g)) return;
5339
- let t = (W(e.label) ?? 0) + W.bandwidth() / 2, n = Math.abs(te(e.y0) - te(e.y1)), i = te(e.y0) - n / 2, a = w ? `${Math.round(e.y0 < 0 ? -e.value : e.value)}%` : r.valueLabels === "percent" ? he(e.value, fe.get(e.label) ?? 0) : String(Math.round(e.value * 100) / 100);
5329
+ margin: B,
5330
+ plotRect: oe
5331
+ }), o && (Dt(J.node()), Ot(t, o));
5332
+ let le = r.valueLabels ?? !1, ue = e.rollup(ne, (t) => e.max(t, (e) => e.y1) ?? 0, (e) => e.label), fe = e.select(L).append("g").attr("class", "bc-value-labels");
5333
+ if (ne.forEach((e) => {
5334
+ if (!ea(e.seriesName, le, g)) return;
5335
+ let t = (W(e.label) ?? 0) + W.bandwidth() / 2, n = Math.abs(ee(e.y0) - ee(e.y1)), i = ee(e.y0) - n / 2, a = w ? `${Math.round(e.y0 < 0 ? -e.value : e.value)}%` : r.valueLabels === "percent" ? he(e.value, ue.get(e.label) ?? 0) : String(Math.round(e.value * 100) / 100);
5340
5336
  if (!xi({
5341
5337
  text: a,
5342
5338
  placement: "inside",
@@ -5344,17 +5340,17 @@ function Za(t, n, r = {}, i = !1) {
5344
5340
  barWidth: W.bandwidth(),
5345
5341
  barHeight: n
5346
5342
  })) return;
5347
- let o = ie.get(e.seriesName) ?? Ji(e.seriesName, e.seriesIndex, h, g);
5348
- pe.append("text").attr("class", "bc-value-label").attr("data-series", e.seriesName).attr("x", t).attr("y", i).attr("text-anchor", "middle").attr("dominant-baseline", "central").attr("font-size", "11px").attr("fill", Ke(o)).text(a);
5343
+ let o = Y.get(e.seriesName) ?? Ji(e.seriesName, e.seriesIndex, h, g);
5344
+ fe.append("text").attr("class", "bc-value-label").attr("data-series", e.seriesName).attr("x", t).attr("y", i).attr("text-anchor", "middle").attr("dominant-baseline", "central").attr("font-size", "11px").attr("fill", Ke(o)).text(a);
5349
5345
  }), _ && m.length > 0) {
5350
5346
  let e = m.map((e) => Ji(e, f.findIndex((t) => t.name === e), h, g)), t = 0, n = 0;
5351
5347
  if (x === "top") {
5352
- let e = N ? 15 : 0;
5353
- n = -(F.height + 10 + e);
5354
- } else x === "bottom" ? n = B + 25 : x === "left" ? t = -(F.width + 10) : x === "right" && (t = z + 10);
5355
- En(R, m, e, n, x, S, z, B, t, [], {
5356
- left: V.left,
5357
- right: V.right
5348
+ let e = j ? 15 : 0;
5349
+ n = -(N.height + 10 + e);
5350
+ } else x === "bottom" ? n = z + Math.max(B.bottom - P, 0) : x === "left" ? t = -(N.width + 10) : x === "right" && (t = R + 10);
5351
+ En(L, m, e, n, x, S, R, z, t, [], {
5352
+ left: B.left,
5353
+ right: B.right
5358
5354
  });
5359
5355
  }
5360
5356
  }
@@ -5401,25 +5397,25 @@ function eo(t, n, r = {}, i = !1) {
5401
5397
  labels: n.labels,
5402
5398
  values: n.values,
5403
5399
  series: p
5404
- }, T = r.stackMode === ee.Percent, E = $a(T ? Ka(w) : Ga(w), n.labels, f), D = T ? 100 : e.max(E, (e) => e.y1) ?? 0, O = T ? Math.min(0, e.min(E, (e) => e.y0) ?? 0) : 0, k = ji(v, r.verticalAxis?.labelPosition), A = r.categoryLabelLine === !0 || k, M = Q(n.labels), N = vt(v, A ? x.Off : r.verticalAxis?.labelPosition, r.horizontalAxis?.labelPosition, r.verticalAxis?.direction, M, r.horizontalAxis?.showAxis), P = N.top != null, F = Math.max(0, v - (N.left ?? 50) - (N.right ?? 20)), I = _ ? yn(m, S, F) : {
5400
+ }, T = r.stackMode === H.Percent, E = $a(T ? Ka(w) : Ga(w), n.labels, f), D = T ? 100 : e.max(E, (e) => e.y1) ?? 0, O = T ? Math.min(0, e.min(E, (e) => e.y0) ?? 0) : 0, k = ji(v, r.verticalAxis?.labelPosition), A = r.categoryLabelLine === !0 || k, M = Q(n.labels), N = vt(v, A ? x.Off : r.verticalAxis?.labelPosition, r.horizontalAxis?.labelPosition, r.verticalAxis?.direction, M, r.horizontalAxis?.showAxis), P = N.top != null, F = Math.max(0, v - (N.left ?? 50) - (N.right ?? 20)), I = _ ? yn(m, S, F) : {
5405
5401
  width: 0,
5406
5402
  height: 0
5407
5403
  }, L = _ ? I.height + 15 : 0, R = { ...N };
5408
5404
  _ && S === "top" && (R.top = L + (P ? 15 : 0)), _ && S === "bottom" && (R.bottom = (R.bottom ?? 24) + L), _ && S === "left" && (R.left = (R.left ?? 50) + I.width + 10), _ && S === "right" && (R.right = (R.right ?? 20) + I.width + 10);
5409
- let { chartArea: B, width: V, height: H, margin: U } = St(d, R), W = st(c, U), G = n.labels;
5405
+ let { chartArea: B, width: V, height: U, margin: W } = St(d, R), G = st(c, W), K = n.labels;
5410
5406
  if (r.sortMode === "total") {
5411
5407
  let e = n.labels.map((e, t) => ({
5412
5408
  label: e,
5413
5409
  index: t,
5414
5410
  total: p.reduce((e, n) => e + (n.values[t] ?? 0), 0)
5415
5411
  }));
5416
- e.sort((e, t) => t.total - e.total), G = e.map((e) => e.label);
5412
+ e.sort((e, t) => t.total - e.total), K = e.map((e) => e.label);
5417
5413
  }
5418
- let [K, te] = ke(T ? [O, D] : E.flatMap((e) => [e.y0, e.y1]), r.horizontalAxis?.range, r.horizontalAxis?.scaleType), q = (r.horizontalAxis?.scaleType === y.Log ? e.scaleSymlog() : e.scaleLinear()).domain([K, te]).nice().range([0, V]), J = e.scaleBand().domain(G).range([0, H]).padding(Oe(r.barGap));
5419
- u.attach(B, W), u.update({
5414
+ let [ee, te] = ke(T ? [O, D] : E.flatMap((e) => [e.y0, e.y1]), r.horizontalAxis?.range, r.horizontalAxis?.scaleType), q = (r.horizontalAxis?.scaleType === y.Log ? e.scaleSymlog() : e.scaleLinear()).domain([ee, te]).nice().range([0, V]), J = e.scaleBand().domain(K).range([0, U]).padding(Oe(r.barGap));
5415
+ u.attach(B, G), u.update({
5420
5416
  horizontal: {
5421
5417
  scale: q,
5422
- height: H,
5418
+ height: U,
5423
5419
  options: {
5424
5420
  ...r.horizontalAxis,
5425
5421
  width: V
@@ -5427,28 +5423,28 @@ function eo(t, n, r = {}, i = !1) {
5427
5423
  },
5428
5424
  vertical: {
5429
5425
  scale: J,
5430
- height: H,
5426
+ height: U,
5431
5427
  options: {
5432
5428
  ...r.verticalAxis,
5433
5429
  labelPosition: A ? x.Off : r.verticalAxis?.labelPosition,
5434
- topPadding: U.top,
5430
+ topPadding: W.top,
5435
5431
  ...k ? { showAxis: !1 } : {}
5436
5432
  }
5437
5433
  },
5438
5434
  order: "horizontal-first"
5439
5435
  });
5440
- let ne = B.ownerSVGElement, re = Ir(ne, t, "bars", {
5436
+ let ne = B.ownerSVGElement, Y = Ir(ne, t, "bars", {
5441
5437
  x: 0,
5442
5438
  y: 0,
5443
5439
  width: V,
5444
- height: H
5445
- }), ie = e.select(B).append("g").attr("clip-path", `url(#${re})`), Y = G === n.labels ? E : G.flatMap((e) => E.filter((t) => t.label === e)), ae = A ? ki(J.bandwidth()) : 0, oe = Ar(r.colorizes), se = fi(r.highlights, E.map((e) => e.seriesName)), ce = Ur(t), le = ie.append("g").node();
5440
+ height: U
5441
+ }), re = e.select(B).append("g").attr("clip-path", `url(#${Y})`), ie = K === n.labels ? E : K.flatMap((e) => E.filter((t) => t.label === e)), ae = A ? ki(J.bandwidth()) : 0, oe = Ar(r.colorizes), se = fi(r.highlights, E.map((e) => e.seriesName)), ce = Ur(t), le = re.append("g").node();
5446
5442
  if (i) for (let e of a) e.removeAttribute("opacity"), e.removeAttribute("fill-opacity"), le.appendChild(e);
5447
5443
  ti(ce, {
5448
5444
  role: "mark-per-cell",
5449
5445
  parent: le,
5450
5446
  selector: ".bc-bar-stacked",
5451
- data: Y,
5447
+ data: ie,
5452
5448
  key: (e) => e.label + "\0" + e.seriesName,
5453
5449
  insert: (e) => e.append("rect").attr("class", "bc-bar bc-bar-stacked"),
5454
5450
  attrs: (e) => {
@@ -5464,23 +5460,23 @@ function eo(t, n, r = {}, i = !1) {
5464
5460
  }
5465
5461
  });
5466
5462
  let ue = {
5467
- left: U.left,
5468
- top: U.top,
5463
+ left: W.left,
5464
+ top: W.top,
5469
5465
  width: V,
5470
- height: H
5466
+ height: U
5471
5467
  };
5472
5468
  li(ce, {
5473
5469
  svg: ne,
5474
- clipId: re,
5470
+ clipId: Y,
5475
5471
  group: B,
5476
5472
  from: l,
5477
5473
  to: ue,
5478
5474
  active: i && a.length > 0
5479
5475
  });
5480
- let fe = Rr(ie);
5476
+ let fe = Rr(re);
5481
5477
  if (r.tooltips && fe.use(zn({ numberFormat: r.verticalAxis?.numberFormat })), r.crosshair && fe.use(Vn({
5482
5478
  width: V,
5483
- height: H,
5479
+ height: U,
5484
5480
  direction: r.crosshairDirection,
5485
5481
  style: r.crosshairStyle,
5486
5482
  color: r.crosshairColor,
@@ -5495,28 +5491,28 @@ function eo(t, n, r = {}, i = !1) {
5495
5491
  scaleY: q,
5496
5492
  data: e,
5497
5493
  width: V,
5498
- height: H,
5494
+ height: U,
5499
5495
  backgroundColor: Xe(t),
5500
5496
  orientation: j.Horizontal,
5501
5497
  transition: i,
5502
5498
  priorAnnotations: s
5503
5499
  }));
5504
5500
  }
5505
- let pe = () => fe.draw(Y);
5501
+ let pe = () => fe.draw(ie);
5506
5502
  if (ce.state === "committing" ? ce.register(pe) : pe(), Nr(t, {
5507
5503
  chartType: "bar-stacked",
5508
- margin: U,
5504
+ margin: W,
5509
5505
  plotRect: ue
5510
- }), o && (Dt(ie.node()), Ot(t, o)), A) {
5506
+ }), o && (Dt(re.node()), Ot(t, o)), A) {
5511
5507
  let t = e.select(B).append("g").attr("class", "bc-category-labels");
5512
- for (let e of G) {
5508
+ for (let e of K) {
5513
5509
  let n = J(e) ?? 0;
5514
5510
  t.append("text").attr("class", "bc-category-label").attr("x", 2).attr("y", n + 13 / 2).attr("text-anchor", "start").attr("dominant-baseline", "central").attr("font-size", "10px").attr("font-weight", "600").attr("fill", "currentColor").text(e);
5515
5511
  }
5516
5512
  }
5517
5513
  let me = r.valueLabels ?? !1, ge = r.valueLabelPosition ?? z.Auto, _e = /* @__PURE__ */ new Set(), ve = /* @__PURE__ */ new Map();
5518
- for (let e of G) {
5519
- let t = Y.filter((t) => t.label === e).sort((e, t) => e.y1 - t.y1);
5514
+ for (let e of K) {
5515
+ let t = ie.filter((t) => t.label === e).sort((e, t) => e.y1 - t.y1);
5520
5516
  if (t.length > 0) {
5521
5517
  let e = t[t.length - 1];
5522
5518
  _e.add(e.label + "\0" + e.seriesName);
@@ -5526,8 +5522,8 @@ function eo(t, n, r = {}, i = !1) {
5526
5522
  }
5527
5523
  }
5528
5524
  }
5529
- let ye = /* @__PURE__ */ new Map(), be = e.rollup(Y, (t) => e.max(t, (e) => e.y1) ?? 0, (e) => e.label), xe = e.select(B).append("g").attr("class", "bc-value-labels");
5530
- if (Y.forEach((e) => {
5525
+ let ye = /* @__PURE__ */ new Map(), be = e.rollup(ie, (t) => e.max(t, (e) => e.y1) ?? 0, (e) => e.label), xe = e.select(B).append("g").attr("class", "bc-value-labels");
5526
+ if (ie.forEach((e) => {
5531
5527
  if (!ea(e.seriesName, me, g)) return;
5532
5528
  let t = T ? `${Math.round(e.y0 < 0 ? -e.value : e.value)}%` : r.valueLabels === "percent" ? he(e.value, be.get(e.label) ?? 0) : String(Math.round(e.value * 100) / 100), n = q(e.y1) - q(e.y0), i = t.length * 6.5 + 8, a = n >= i, o = (J(e.label) ?? 0) + ae + (J.bandwidth() - ae) / 2, s = Ji(e.seriesName, e.seriesIndex, h, g), c = _e.has(e.label + "\0" + e.seriesName), l = ge === z.Outside || ge === z.Auto && !a && c, u = xi({
5533
5529
  text: t,
@@ -5542,7 +5538,7 @@ function eo(t, n, r = {}, i = !1) {
5542
5538
  if (l) {
5543
5539
  if (ge === z.Inside) d();
5544
5540
  else {
5545
- let n = q(e.y1) + 4, r = ye.get(e.label) ?? 0, a = ve.get(e.label + "\0" + e.seriesName), s = n < r, c = a !== void 0 && i + 4 > a, l = V + U.right - 2, f = n + i > l;
5541
+ let n = q(e.y1) + 4, r = ye.get(e.label) ?? 0, a = ve.get(e.label + "\0" + e.seriesName), s = n < r, c = a !== void 0 && i + 4 > a, l = V + W.right - 2, f = n + i > l;
5546
5542
  s || c || f || !u ? d() : (ye.set(e.label, n + i), xe.append("text").attr("class", "bc-value-label").attr("data-series", e.seriesName).attr("x", n).attr("y", o).attr("text-anchor", "start").attr("dominant-baseline", "central").attr("font-size", "11px").attr("fill", "currentColor").text(t));
5547
5543
  }
5548
5544
  } else if (!a || !u) d();
@@ -5555,10 +5551,10 @@ function eo(t, n, r = {}, i = !1) {
5555
5551
  if (S === "top") {
5556
5552
  let e = P ? 15 : 0;
5557
5553
  n = -(I.height + 10 + e);
5558
- } else S === "bottom" ? n = H + 25 : S === "left" ? t = -(I.width + 10) : S === "right" && (t = V + 10);
5559
- En(B, m, e, n, S, C, V, H, t, [], {
5560
- left: U.left,
5561
- right: U.right
5554
+ } else S === "bottom" ? n = U + 25 : S === "left" ? t = -(I.width + 10) : S === "right" && (t = V + 10);
5555
+ En(B, m, e, n, S, C, V, U, t, [], {
5556
+ left: W.left,
5557
+ right: W.right
5562
5558
  });
5563
5559
  }
5564
5560
  }
@@ -5651,25 +5647,25 @@ function uo(t, n, r = {}, i = !1) {
5651
5647
  },
5652
5648
  order: "horizontal-first"
5653
5649
  });
5654
- let V = co(p, f, N, r.sharedScale === !0, r.horizontalAxis), ee = e.select(M).append("g").attr("class", "bc-split-axes");
5655
- for (let e of V) dn(ee.append("g").attr("transform", `translate(${e.xOffset},0)`).node(), e.xScale, P, {
5650
+ let V = co(p, f, N, r.sharedScale === !0, r.horizontalAxis), H = e.select(M).append("g").attr("class", "bc-split-axes");
5651
+ for (let e of V) dn(H.append("g").attr("transform", `translate(${e.xOffset},0)`).node(), e.xScale, P, {
5656
5652
  ...r.horizontalAxis,
5657
5653
  width: e.panelWidth
5658
5654
  });
5659
- let H = M.ownerSVGElement, U = Ir(H, t, "bars", {
5655
+ let U = M.ownerSVGElement, W = Ir(U, t, "bars", {
5660
5656
  x: 0,
5661
5657
  y: 0,
5662
5658
  width: N,
5663
5659
  height: P
5664
- }), W = e.select(M).append("g").attr("clip-path", `url(#${U})`), G = e.select(M).append("g").attr("class", "bc-split-headers");
5665
- for (let e of V) G.append("text").attr("class", "bc-split-header").attr("x", e.xOffset + e.panelWidth / 2).attr("y", -10).attr("text-anchor", "middle").attr("dominant-baseline", "central").attr("font-size", "11px").attr("font-weight", "600").attr("fill", "currentColor").text(so(e.seriesName, e.panelWidth));
5666
- let K = lo(V, L, n.labels, f), te = fi(r.highlights, K.map((e) => e.seriesName)), q = Ar(r.colorizes), J = Ur(t), ne = W.append("g").node();
5660
+ }), G = e.select(M).append("g").attr("clip-path", `url(#${W})`), K = e.select(M).append("g").attr("class", "bc-split-headers");
5661
+ for (let e of V) K.append("text").attr("class", "bc-split-header").attr("x", e.xOffset + e.panelWidth / 2).attr("y", -10).attr("text-anchor", "middle").attr("dominant-baseline", "central").attr("font-size", "11px").attr("font-weight", "600").attr("fill", "currentColor").text(so(e.seriesName, e.panelWidth));
5662
+ let ee = lo(V, L, n.labels, f), te = fi(r.highlights, ee.map((e) => e.seriesName)), q = Ar(r.colorizes), J = Ur(t), ne = G.append("g").node();
5667
5663
  if (i) for (let e of a) e.removeAttribute("opacity"), e.removeAttribute("fill-opacity"), ne.appendChild(e);
5668
5664
  ti(J, {
5669
5665
  role: "mark-per-cell",
5670
5666
  parent: ne,
5671
5667
  selector: ".bc-bar-split",
5672
- data: K,
5668
+ data: ee,
5673
5669
  key: (e) => e.label + "\0" + e.seriesName,
5674
5670
  insert: (e) => e.append("rect").attr("class", "bc-bar bc-bar-split"),
5675
5671
  attrs: (e) => {
@@ -5684,22 +5680,22 @@ function uo(t, n, r = {}, i = !1) {
5684
5680
  return n < 1 && (r["fill-opacity"] = n), te.size > 0 && (r.opacity = pi(te, e.seriesName)), r;
5685
5681
  }
5686
5682
  });
5687
- let re = {
5683
+ let Y = {
5688
5684
  left: F.left,
5689
5685
  top: F.top,
5690
5686
  width: N,
5691
5687
  height: P
5692
5688
  };
5693
5689
  li(J, {
5694
- svg: H,
5695
- clipId: U,
5690
+ svg: U,
5691
+ clipId: W,
5696
5692
  group: M,
5697
5693
  from: c,
5698
- to: re,
5694
+ to: Y,
5699
5695
  active: i && a.length > 0
5700
5696
  });
5701
- let ie = Rr(W);
5702
- if (r.tooltips && ie.use(zn({ numberFormat: r.verticalAxis?.numberFormat })), r.crosshair && ie.use(Vn({
5697
+ let re = Rr(G);
5698
+ if (r.tooltips && re.use(zn({ numberFormat: r.verticalAxis?.numberFormat })), r.crosshair && re.use(Vn({
5703
5699
  width: N,
5704
5700
  height: P,
5705
5701
  direction: r.crosshairDirection,
@@ -5711,7 +5707,7 @@ function uo(t, n, r = {}, i = !1) {
5711
5707
  label: e,
5712
5708
  value: a?.values[t] ?? 0
5713
5709
  }));
5714
- ie.use(kr(r.annotations, {
5710
+ re.use(kr(r.annotations, {
5715
5711
  scaleX: R,
5716
5712
  scaleY: e.xScale,
5717
5713
  data: o,
@@ -5723,12 +5719,12 @@ function uo(t, n, r = {}, i = !1) {
5723
5719
  priorAnnotations: l
5724
5720
  }));
5725
5721
  }
5726
- let Y = () => ie.draw(K);
5727
- if (J.state === "committing" ? J.register(Y) : Y(), Nr(t, {
5722
+ let ie = () => re.draw(ee);
5723
+ if (J.state === "committing" ? J.register(ie) : ie(), Nr(t, {
5728
5724
  chartType: "bar-split",
5729
5725
  margin: F,
5730
- plotRect: re
5731
- }), o && (Dt(W.node()), Ot(t, o)), w) {
5726
+ plotRect: Y
5727
+ }), o && (Dt(G.node()), Ot(t, o)), w) {
5732
5728
  let t = e.select(M).append("g").attr("class", "bc-category-labels");
5733
5729
  for (let e of L) {
5734
5730
  let n = R(e) ?? 0;
@@ -5736,7 +5732,7 @@ function uo(t, n, r = {}, i = !1) {
5736
5732
  }
5737
5733
  }
5738
5734
  let ae = r.valueLabels ?? !0, oe = r.valueLabelPosition ?? z.Auto, se = e.select(M).append("g").attr("class", "bc-value-labels");
5739
- if (K.forEach((e) => {
5735
+ if (ee.forEach((e) => {
5740
5736
  if (!ea(e.seriesName, ae, g)) return;
5741
5737
  let t = V.find((t) => t.seriesName === e.seriesName);
5742
5738
  if (!t) return;
@@ -5792,7 +5788,7 @@ function po(t, n, r = {}, i = !1) {
5792
5788
  }));
5793
5789
  e.sort((e, t) => t.total - e.total), B = e.map((e) => e.label);
5794
5790
  }
5795
- let V = e.scaleBand().domain(B).range([0, I]).paddingInner(Oe(r.barGap)).paddingOuter(.05), ee = E ? ki(V.bandwidth()) : 0, H = Math.max(0, V.bandwidth() - ee), U = e.scaleBand().domain(m).range([0, H]).padding(.05), [W, G] = ke(p.flatMap((e) => e.values), r.horizontalAxis?.range, r.horizontalAxis?.scaleType), K = (r.horizontalAxis?.scaleType === y.Log ? e.scaleSymlog() : e.scaleLinear()).domain([W, G]).nice().range([0, F]);
5791
+ let V = e.scaleBand().domain(B).range([0, I]).paddingInner(Oe(r.barGap)).paddingOuter(.05), H = E ? ki(V.bandwidth()) : 0, U = Math.max(0, V.bandwidth() - H), W = e.scaleBand().domain(m).range([0, U]).padding(.05), [G, K] = ke(p.flatMap((e) => e.values), r.horizontalAxis?.range, r.horizontalAxis?.scaleType), ee = (r.horizontalAxis?.scaleType === y.Log ? e.scaleSymlog() : e.scaleLinear()).domain([G, K]).nice().range([0, F]);
5796
5792
  u.attach(P, R), u.update({
5797
5793
  vertical: {
5798
5794
  scale: V,
@@ -5805,7 +5801,7 @@ function po(t, n, r = {}, i = !1) {
5805
5801
  }
5806
5802
  },
5807
5803
  horizontal: {
5808
- scale: K,
5804
+ scale: ee,
5809
5805
  height: I,
5810
5806
  options: {
5811
5807
  ...r.horizontalAxis,
@@ -5822,7 +5818,7 @@ function po(t, n, r = {}, i = !1) {
5822
5818
  }), J = e.select(P).append("g").attr("clip-path", `url(#${q})`);
5823
5819
  if (r.barBackground) {
5824
5820
  let e = (r.colors ?? fo)[0];
5825
- J.selectAll(".bc-bar-bg").data(B, (e) => e).enter().append("rect").attr("class", "bc-bar-bg").attr("x", 0).attr("y", (e) => (V(e) ?? 0) + ee).attr("width", F).attr("height", V.bandwidth() - ee).attr("fill", e).attr("opacity", .18);
5821
+ J.selectAll(".bc-bar-bg").data(B, (e) => e).enter().append("rect").attr("class", "bc-bar-bg").attr("x", 0).attr("y", (e) => (V(e) ?? 0) + H).attr("width", F).attr("height", V.bandwidth() - H).attr("fill", e).attr("opacity", .18);
5826
5822
  }
5827
5823
  if (r.barSeparators && B.length > 1) {
5828
5824
  let e = V.step();
@@ -5844,9 +5840,9 @@ function po(t, n, r = {}, i = !1) {
5844
5840
  });
5845
5841
  }
5846
5842
  }
5847
- let re = fi(r.highlights, ne.map((e) => e.seriesName)), ie = Ar(r.colorizes), Y = Ur(t), ae = J.append("g").node();
5843
+ let Y = fi(r.highlights, ne.map((e) => e.seriesName)), re = Ar(r.colorizes), ie = Ur(t), ae = J.append("g").node();
5848
5844
  if (i) for (let e of a) e.removeAttribute("opacity"), e.removeAttribute("fill-opacity"), ae.appendChild(e);
5849
- ti(Y, {
5845
+ ti(ie, {
5850
5846
  role: "mark-per-cell",
5851
5847
  parent: ae,
5852
5848
  selector: ".bc-bar-grouped",
@@ -5854,15 +5850,15 @@ function po(t, n, r = {}, i = !1) {
5854
5850
  key: (e) => e.label + "\0" + e.seriesName,
5855
5851
  insert: (e) => e.append("rect").attr("class", "bc-bar bc-bar-grouped"),
5856
5852
  attrs: (e) => {
5857
- let t = ie.get(e.seriesName) ?? Ji(e.seriesName, e.seriesIndex, g, _), n = ta(e.seriesName, _), r = {
5853
+ let t = re.get(e.seriesName) ?? Ji(e.seriesName, e.seriesIndex, g, _), n = ta(e.seriesName, _), r = {
5858
5854
  "data-series": e.seriesName,
5859
- x: K(0),
5860
- y: (V(e.label) ?? 0) + ee + (U(e.seriesName) ?? 0),
5861
- width: Math.max(0, K(e.value) - K(0)),
5862
- height: U.bandwidth(),
5855
+ x: ee(0),
5856
+ y: (V(e.label) ?? 0) + H + (W(e.seriesName) ?? 0),
5857
+ width: Math.max(0, ee(e.value) - ee(0)),
5858
+ height: W.bandwidth(),
5863
5859
  fill: t
5864
5860
  };
5865
- return n < 1 && (r["fill-opacity"] = n), re.size > 0 && (r.opacity = pi(re, e.seriesName)), r;
5861
+ return n < 1 && (r["fill-opacity"] = n), Y.size > 0 && (r.opacity = pi(Y, e.seriesName)), r;
5866
5862
  }
5867
5863
  });
5868
5864
  let oe = {
@@ -5871,7 +5867,7 @@ function po(t, n, r = {}, i = !1) {
5871
5867
  width: F,
5872
5868
  height: I
5873
5869
  };
5874
- li(Y, {
5870
+ li(ie, {
5875
5871
  svg: te,
5876
5872
  clipId: q,
5877
5873
  group: P,
@@ -5894,7 +5890,7 @@ function po(t, n, r = {}, i = !1) {
5894
5890
  }));
5895
5891
  se.use(kr(r.annotations, {
5896
5892
  scaleX: V,
5897
- scaleY: K,
5893
+ scaleY: ee,
5898
5894
  data: e,
5899
5895
  width: F,
5900
5896
  height: I,
@@ -5905,7 +5901,7 @@ function po(t, n, r = {}, i = !1) {
5905
5901
  }));
5906
5902
  }
5907
5903
  let ce = () => se.draw(ne);
5908
- if (Y.state === "committing" ? Y.register(ce) : ce(), Nr(t, {
5904
+ if (ie.state === "committing" ? ie.register(ce) : ce(), Nr(t, {
5909
5905
  chartType: "bar-grouped",
5910
5906
  margin: L,
5911
5907
  plotRect: oe
@@ -5919,13 +5915,13 @@ function po(t, n, r = {}, i = !1) {
5919
5915
  let le = r.valueLabels ?? !0, ue = r.valueLabelPosition ?? z.Auto, fe = e.select(P).append("g").attr("class", "bc-value-labels");
5920
5916
  if (ne.forEach((e) => {
5921
5917
  if (!ea(e.seriesName, le, _)) return;
5922
- let t = Ji(e.seriesName, e.seriesIndex, g, _), n = Math.max(0, K(e.value) - K(0)), r = K(0) + n, i = (V(e.label) ?? 0) + ee + (U(e.seriesName) ?? 0) + U.bandwidth() / 2, a = ue === z.Inside || ue === z.Auto && n > 30;
5918
+ let t = Ji(e.seriesName, e.seriesIndex, g, _), n = Math.max(0, ee(e.value) - ee(0)), r = ee(0) + n, i = (V(e.label) ?? 0) + H + (W(e.seriesName) ?? 0) + W.bandwidth() / 2, a = ue === z.Inside || ue === z.Auto && n > 30;
5923
5919
  if (!xi({
5924
5920
  text: String(e.value),
5925
5921
  placement: a ? "inside" : "outside",
5926
5922
  orientation: "horizontal",
5927
5923
  barWidth: n,
5928
- barHeight: U.bandwidth()
5924
+ barHeight: W.bandwidth()
5929
5925
  })) return;
5930
5926
  let o, s, c;
5931
5927
  a ? (o = r - 4, s = "end", c = Ke(t)) : (o = r + 4, s = "start", c = "currentColor"), fe.append("text").attr("class", "bc-value-label").attr("data-series", e.seriesName).attr("x", o).attr("y", i).attr("text-anchor", s).attr("dominant-baseline", "central").attr("font-size", "11px").attr("fill", c).text(String(e.value));
@@ -5974,11 +5970,11 @@ var yo = [
5974
5970
  }
5975
5971
  ], bo = {
5976
5972
  key: "colors",
5977
- type: U.Colors,
5973
+ type: W.Colors,
5978
5974
  label: "Colors"
5979
5975
  }, xo = {
5980
5976
  key: "colorPalette",
5981
- type: U.Select,
5977
+ type: W.Select,
5982
5978
  label: "Color palette",
5983
5979
  default: "Blueprint",
5984
5980
  choices: [{
@@ -5990,22 +5986,22 @@ var yo = [
5990
5986
  }))]
5991
5987
  }, So = {
5992
5988
  key: "autoContrast",
5993
- type: U.Boolean,
5989
+ type: W.Boolean,
5994
5990
  label: "Auto-adjust contrast",
5995
5991
  default: !1
5996
5992
  }, Co = {
5997
5993
  key: "allowDarkMode",
5998
- type: U.Boolean,
5994
+ type: W.Boolean,
5999
5995
  label: "Allow dark mode",
6000
5996
  default: !0
6001
5997
  }, wo = {
6002
5998
  key: "legend",
6003
- type: U.Boolean,
5999
+ type: W.Boolean,
6004
6000
  label: "Show legend",
6005
6001
  default: !0
6006
6002
  }, To = {
6007
6003
  key: "legendPosition",
6008
- type: U.Select,
6004
+ type: W.Select,
6009
6005
  label: "Legend position",
6010
6006
  default: L.Top,
6011
6007
  choices: [
@@ -6028,7 +6024,7 @@ var yo = [
6028
6024
  ]
6029
6025
  }, Eo = {
6030
6026
  key: "legendAnchor",
6031
- type: U.Select,
6027
+ type: W.Select,
6032
6028
  label: "Legend anchor",
6033
6029
  default: R.Start,
6034
6030
  choices: [
@@ -6047,30 +6043,30 @@ var yo = [
6047
6043
  ]
6048
6044
  }, Do = {
6049
6045
  key: "directLabelling",
6050
- type: U.Select,
6046
+ type: W.Select,
6051
6047
  label: "Direct labelling",
6052
- default: W.Off,
6048
+ default: G.Off,
6053
6049
  choices: [
6054
6050
  {
6055
- value: W.Off,
6051
+ value: G.Off,
6056
6052
  text: "Off"
6057
6053
  },
6058
6054
  {
6059
- value: W.Auto,
6055
+ value: G.Auto,
6060
6056
  text: "Auto"
6061
6057
  },
6062
6058
  {
6063
- value: W.Outside,
6059
+ value: G.Outside,
6064
6060
  text: "Outside"
6065
6061
  },
6066
6062
  {
6067
- value: W.Inside,
6063
+ value: G.Inside,
6068
6064
  text: "Inside"
6069
6065
  }
6070
6066
  ]
6071
6067
  }, Oo = {
6072
6068
  key: "directLabelAnchor",
6073
- type: U.Select,
6069
+ type: W.Select,
6074
6070
  label: "Label anchor",
6075
6071
  default: R.Middle,
6076
6072
  choices: [
@@ -6089,12 +6085,12 @@ var yo = [
6089
6085
  ]
6090
6086
  }, ko = {
6091
6087
  key: "valueLabels",
6092
- type: U.Boolean,
6088
+ type: W.Boolean,
6093
6089
  label: "Value labels",
6094
6090
  default: !1
6095
6091
  }, Ao = {
6096
6092
  key: "valueLabelPosition",
6097
- type: U.Select,
6093
+ type: W.Select,
6098
6094
  label: "Label position",
6099
6095
  default: z.Auto,
6100
6096
  choices: [
@@ -6113,17 +6109,17 @@ var yo = [
6113
6109
  ]
6114
6110
  }, jo = {
6115
6111
  key: "tooltips",
6116
- type: U.Boolean,
6112
+ type: W.Boolean,
6117
6113
  label: "Tooltips",
6118
6114
  default: !1
6119
6115
  }, Mo = {
6120
6116
  key: "crosshair",
6121
- type: U.Boolean,
6117
+ type: W.Boolean,
6122
6118
  label: "Crosshair",
6123
6119
  default: !1
6124
6120
  }, No = {
6125
6121
  key: "crosshairDirection",
6126
- type: U.Select,
6122
+ type: W.Select,
6127
6123
  label: "Crosshair direction",
6128
6124
  default: B.Both,
6129
6125
  choices: [
@@ -6142,7 +6138,7 @@ var yo = [
6142
6138
  ]
6143
6139
  }, Po = {
6144
6140
  key: "crosshairStyle",
6145
- type: U.Select,
6141
+ type: W.Select,
6146
6142
  label: "Crosshair style",
6147
6143
  default: V.Dashed,
6148
6144
  choices: [
@@ -6161,18 +6157,18 @@ var yo = [
6161
6157
  ]
6162
6158
  }, Fo = {
6163
6159
  key: "crosshairColor",
6164
- type: U.Text,
6160
+ type: W.Text,
6165
6161
  label: "Crosshair color",
6166
6162
  default: "#999",
6167
6163
  placeholder: "#999"
6168
6164
  }, Io = {
6169
6165
  key: "lineSymbols",
6170
- type: U.Boolean,
6166
+ type: W.Boolean,
6171
6167
  label: "Show line symbols",
6172
6168
  default: !1
6173
6169
  }, Lo = {
6174
6170
  key: "lineSymbolShape",
6175
- type: U.Select,
6171
+ type: W.Select,
6176
6172
  label: "Symbol",
6177
6173
  default: M.Circle,
6178
6174
  choices: [
@@ -6207,7 +6203,7 @@ var yo = [
6207
6203
  ]
6208
6204
  }, Ro = {
6209
6205
  key: "lineSymbolShowOn",
6210
- type: U.Select,
6206
+ type: W.Select,
6211
6207
  label: "Show on",
6212
6208
  default: N.FirstLast,
6213
6209
  choices: [
@@ -6230,7 +6226,7 @@ var yo = [
6230
6226
  ]
6231
6227
  }, zo = {
6232
6228
  key: "lineSymbolStyle",
6233
- type: U.Select,
6229
+ type: W.Select,
6234
6230
  label: "Style",
6235
6231
  default: P.Filled,
6236
6232
  choices: [{
@@ -6242,19 +6238,19 @@ var yo = [
6242
6238
  }]
6243
6239
  }, Bo = {
6244
6240
  key: "lineSymbolSize",
6245
- type: U.Text,
6241
+ type: W.Text,
6246
6242
  label: "Size",
6247
6243
  default: "3.5",
6248
6244
  placeholder: "3.5"
6249
6245
  }, Vo = {
6250
6246
  key: "lineSymbolOpacity",
6251
- type: U.Text,
6247
+ type: W.Text,
6252
6248
  label: "Opacity",
6253
6249
  default: "1",
6254
6250
  placeholder: "1"
6255
6251
  }, Ho = {
6256
6252
  key: "sortMode",
6257
- type: U.Select,
6253
+ type: W.Select,
6258
6254
  label: "Sort mode",
6259
6255
  default: I.None,
6260
6256
  choices: [
@@ -6273,128 +6269,128 @@ var yo = [
6273
6269
  ]
6274
6270
  }, Uo = {
6275
6271
  key: "edgePadding",
6276
- type: U.Boolean,
6272
+ type: W.Boolean,
6277
6273
  label: "Edge padding",
6278
6274
  default: !1
6279
6275
  }, Wo = {
6280
6276
  key: "waterfall",
6281
- type: U.Boolean,
6277
+ type: W.Boolean,
6282
6278
  label: "Waterfall",
6283
6279
  default: !1
6284
6280
  }, Go = {
6285
6281
  key: "waterfallTotal",
6286
- type: U.Boolean,
6282
+ type: W.Boolean,
6287
6283
  label: "Waterfall total",
6288
6284
  default: !1
6289
6285
  }, Ko = {
6290
6286
  key: "barBackground",
6291
- type: U.Boolean,
6287
+ type: W.Boolean,
6292
6288
  label: "Bar background",
6293
6289
  default: !1
6294
6290
  }, qo = {
6295
6291
  key: "barGap",
6296
- type: U.Text,
6292
+ type: W.Text,
6297
6293
  label: "Bar gap",
6298
6294
  default: "60",
6299
6295
  placeholder: "60"
6300
6296
  }, Jo = {
6301
6297
  key: "barSeparators",
6302
- type: U.Boolean,
6298
+ type: W.Boolean,
6303
6299
  label: "Bar separators",
6304
6300
  default: !1
6305
6301
  }, Yo = {
6306
6302
  key: "connectedColumns",
6307
- type: U.Boolean,
6303
+ type: W.Boolean,
6308
6304
  label: "Connected columns",
6309
6305
  default: !1
6310
6306
  }, Xo = {
6311
6307
  key: "connectionsOpacity",
6312
- type: U.Text,
6308
+ type: W.Text,
6313
6309
  label: "Opacity",
6314
6310
  default: "0.15",
6315
6311
  placeholder: "0.15"
6316
6312
  }, Zo = {
6317
6313
  key: "swapLabelValue",
6318
- type: U.Boolean,
6314
+ type: W.Boolean,
6319
6315
  label: "Swap labels and values",
6320
6316
  default: !1
6321
6317
  }, Qo = {
6322
6318
  key: "stackMode",
6323
- type: U.Select,
6319
+ type: W.Select,
6324
6320
  label: "Stack mode",
6325
- default: ee.Normal,
6321
+ default: H.Normal,
6326
6322
  choices: [{
6327
- value: ee.Normal,
6323
+ value: H.Normal,
6328
6324
  text: "Normal"
6329
6325
  }, {
6330
- value: ee.Percent,
6326
+ value: H.Percent,
6331
6327
  text: "Percentage (100%)"
6332
6328
  }]
6333
6329
  }, $o = {
6334
6330
  key: "sharedScale",
6335
- type: U.Boolean,
6331
+ type: W.Boolean,
6336
6332
  label: "Shared scale",
6337
6333
  default: !1
6338
6334
  }, es = {
6339
6335
  key: "categoryLabelLine",
6340
- type: U.Boolean,
6336
+ type: W.Boolean,
6341
6337
  label: "Labels on separate line",
6342
6338
  default: !1
6343
6339
  }, ts = {
6344
6340
  key: "displayAsPercentage",
6345
- type: U.Boolean,
6341
+ type: W.Boolean,
6346
6342
  label: "Display as percentage",
6347
6343
  default: !1
6348
6344
  }, ns = {
6349
6345
  key: "showTotal",
6350
- type: U.Boolean,
6346
+ type: W.Boolean,
6351
6347
  label: "Show total",
6352
6348
  default: !1
6353
6349
  }, rs = {
6354
6350
  key: "showLabels",
6355
- type: U.Boolean,
6351
+ type: W.Boolean,
6356
6352
  label: "Show labels",
6357
6353
  default: !0
6358
6354
  }, is = {
6359
6355
  key: "showValues",
6360
- type: U.Boolean,
6356
+ type: W.Boolean,
6361
6357
  label: "Show values",
6362
6358
  default: !0
6363
6359
  }, as = {
6364
6360
  key: "sliceMax",
6365
- type: U.Text,
6361
+ type: W.Text,
6366
6362
  label: "Max slices",
6367
6363
  default: "6"
6368
6364
  }, os = {
6369
6365
  key: "sliceGroupLabel",
6370
- type: U.Text,
6366
+ type: W.Text,
6371
6367
  label: "Group label",
6372
6368
  default: "Others",
6373
6369
  placeholder: "Others"
6374
6370
  }, ss = {
6375
6371
  key: "areaFillOpacity",
6376
- type: U.Text,
6372
+ type: W.Text,
6377
6373
  label: "Opacity",
6378
6374
  default: "0.85",
6379
6375
  placeholder: "0.85"
6380
6376
  }, cs = {
6381
6377
  key: "stacked",
6382
- type: U.Boolean,
6378
+ type: W.Boolean,
6383
6379
  label: "Stack areas",
6384
6380
  default: !0
6385
6381
  }, ls = {
6386
6382
  key: "stackPercent",
6387
- type: U.Boolean,
6383
+ type: W.Boolean,
6388
6384
  label: "Stack to 100%",
6389
6385
  default: !1
6390
6386
  }, us = {
6391
6387
  key: "areaLines",
6392
- type: U.Boolean,
6388
+ type: W.Boolean,
6393
6389
  label: "Separate areas with lines",
6394
6390
  default: !0
6395
6391
  }, ds = {
6396
6392
  key: "areaSortMode",
6397
- type: U.Select,
6393
+ type: W.Select,
6398
6394
  label: "Sort areas",
6399
6395
  default: F.None,
6400
6396
  choices: [
@@ -6413,40 +6409,40 @@ var yo = [
6413
6409
  ]
6414
6410
  }, fs = {
6415
6411
  key: "interpolation",
6416
- type: U.Select,
6412
+ type: W.Select,
6417
6413
  label: "Line interpolation",
6418
- default: G.Linear,
6414
+ default: K.Linear,
6419
6415
  choices: [
6420
6416
  {
6421
- value: G.Linear,
6417
+ value: K.Linear,
6422
6418
  text: "Linear"
6423
6419
  },
6424
6420
  {
6425
- value: G.MonotoneX,
6421
+ value: K.MonotoneX,
6426
6422
  text: "Monotone"
6427
6423
  },
6428
6424
  {
6429
- value: G.Step,
6425
+ value: K.Step,
6430
6426
  text: "Step"
6431
6427
  },
6432
6428
  {
6433
- value: G.StepBefore,
6429
+ value: K.StepBefore,
6434
6430
  text: "Step (before)"
6435
6431
  },
6436
6432
  {
6437
- value: G.StepAfter,
6433
+ value: K.StepAfter,
6438
6434
  text: "Step (after)"
6439
6435
  },
6440
6436
  {
6441
- value: G.Basis,
6437
+ value: K.Basis,
6442
6438
  text: "Basis"
6443
6439
  },
6444
6440
  {
6445
- value: G.Cardinal,
6441
+ value: K.Cardinal,
6446
6442
  text: "Cardinal"
6447
6443
  },
6448
6444
  {
6449
- value: G.CatmullRom,
6445
+ value: K.CatmullRom,
6450
6446
  text: "Catmull-Rom"
6451
6447
  }
6452
6448
  ]
@@ -6491,13 +6487,13 @@ function gs(e) {
6491
6487
  return [
6492
6488
  {
6493
6489
  key: "showVerticalAxis",
6494
- type: U.Boolean,
6490
+ type: W.Boolean,
6495
6491
  label: "Show vertical axis",
6496
6492
  default: e.showVerticalAxis ?? !0
6497
6493
  },
6498
6494
  {
6499
6495
  key: "verticalAxisDirection",
6500
- type: U.Select,
6496
+ type: W.Select,
6501
6497
  label: "Vertical axis side",
6502
6498
  default: v.Left,
6503
6499
  choices: [{
@@ -6510,117 +6506,117 @@ function gs(e) {
6510
6506
  },
6511
6507
  {
6512
6508
  key: "showVerticalTicks",
6513
- type: U.Boolean,
6509
+ type: W.Boolean,
6514
6510
  label: "Show vertical ticks",
6515
6511
  default: e.showVerticalTicks
6516
6512
  },
6517
6513
  {
6518
6514
  key: "verticalLabelPosition",
6519
- type: U.Select,
6515
+ type: W.Select,
6520
6516
  label: "Vertical labels",
6521
6517
  default: e.valueAxisLabelsOff && e.valueAxis === "vertical" ? x.Off : x.Auto,
6522
6518
  choices: ms
6523
6519
  },
6524
6520
  {
6525
6521
  key: "verticalGridStyle",
6526
- type: U.Select,
6522
+ type: W.Select,
6527
6523
  label: "Vertical grid style",
6528
6524
  default: e.verticalGrid,
6529
6525
  choices: yo
6530
6526
  },
6531
6527
  {
6532
6528
  key: "verticalNumberFormat",
6533
- type: U.NumberFormat,
6529
+ type: W.NumberFormat,
6534
6530
  label: "Vertical number format"
6535
6531
  },
6536
6532
  ...e.valueAxis === "vertical" ? [
6537
6533
  {
6538
6534
  key: "verticalScaleType",
6539
- type: U.Select,
6535
+ type: W.Select,
6540
6536
  label: "Vertical scale",
6541
6537
  default: y.Linear,
6542
6538
  choices: ps
6543
6539
  },
6544
6540
  {
6545
6541
  key: "verticalRangeMin",
6546
- type: U.Text,
6542
+ type: W.Text,
6547
6543
  label: "Vertical min",
6548
6544
  placeholder: "auto"
6549
6545
  },
6550
6546
  {
6551
6547
  key: "verticalRangeMax",
6552
- type: U.Text,
6548
+ type: W.Text,
6553
6549
  label: "Vertical max",
6554
6550
  placeholder: "auto"
6555
6551
  }
6556
6552
  ] : [],
6557
6553
  {
6558
6554
  key: "showHorizontalAxis",
6559
- type: U.Boolean,
6555
+ type: W.Boolean,
6560
6556
  label: "Show horizontal axis",
6561
6557
  default: e.showHorizontalAxis ?? !0
6562
6558
  },
6563
6559
  {
6564
6560
  key: "showHorizontalTicks",
6565
- type: U.Boolean,
6561
+ type: W.Boolean,
6566
6562
  label: "Show horizontal ticks",
6567
6563
  default: e.showHorizontalTicks
6568
6564
  },
6569
6565
  {
6570
6566
  key: "horizontalLabelPosition",
6571
- type: U.Select,
6567
+ type: W.Select,
6572
6568
  label: "Horizontal labels",
6573
6569
  default: e.valueAxisLabelsOff && e.valueAxis === "horizontal" ? x.Off : x.Auto,
6574
6570
  choices: ms
6575
6571
  },
6576
6572
  {
6577
6573
  key: "horizontalLabelRotation",
6578
- type: U.Select,
6574
+ type: W.Select,
6579
6575
  label: "Horizontal label rotation",
6580
6576
  default: S.Horizontal,
6581
6577
  choices: hs
6582
6578
  },
6583
6579
  {
6584
6580
  key: "horizontalGridStyle",
6585
- type: U.Select,
6581
+ type: W.Select,
6586
6582
  label: "Horizontal grid style",
6587
6583
  default: e.horizontalGrid,
6588
6584
  choices: yo
6589
6585
  },
6590
6586
  {
6591
6587
  key: "horizontalNumberFormat",
6592
- type: U.NumberFormat,
6588
+ type: W.NumberFormat,
6593
6589
  label: "Horizontal number format"
6594
6590
  },
6595
6591
  ...e.valueAxis === "horizontal" ? [
6596
6592
  {
6597
6593
  key: "horizontalScaleType",
6598
- type: U.Select,
6594
+ type: W.Select,
6599
6595
  label: "Horizontal scale",
6600
6596
  default: y.Linear,
6601
6597
  choices: ps
6602
6598
  },
6603
6599
  {
6604
6600
  key: "horizontalRangeMin",
6605
- type: U.Text,
6601
+ type: W.Text,
6606
6602
  label: "Horizontal min",
6607
6603
  placeholder: "auto"
6608
6604
  },
6609
6605
  {
6610
6606
  key: "horizontalRangeMax",
6611
- type: U.Text,
6607
+ type: W.Text,
6612
6608
  label: "Horizontal max",
6613
6609
  placeholder: "auto"
6614
6610
  }
6615
6611
  ] : [],
6616
6612
  ...e.horizontalRange ? [{
6617
6613
  key: "horizontalRangeMin",
6618
- type: U.Text,
6614
+ type: W.Text,
6619
6615
  label: "Horizontal min",
6620
6616
  placeholder: "auto"
6621
6617
  }, {
6622
6618
  key: "horizontalRangeMax",
6623
- type: U.Text,
6619
+ type: W.Text,
6624
6620
  label: "Horizontal max",
6625
6621
  placeholder: "auto"
6626
6622
  }] : []
@@ -6660,7 +6656,7 @@ var _s = gs({
6660
6656
  horizontalRange: !0
6661
6657
  }), xs = {
6662
6658
  ...fs,
6663
- default: G.MonotoneX
6659
+ default: K.MonotoneX
6664
6660
  }, Ss = {
6665
6661
  ...No,
6666
6662
  default: B.Vertical
@@ -6690,7 +6686,7 @@ var _s = gs({
6690
6686
  default: !0
6691
6687
  }, js = {
6692
6688
  ...Do,
6693
- default: W.Auto
6689
+ default: G.Auto
6694
6690
  }, Ms = {
6695
6691
  ...wo,
6696
6692
  default: !1
@@ -7335,7 +7331,7 @@ function xc(e, t) {
7335
7331
  "{",
7336
7332
  "}",
7337
7333
  "="
7338
- ], !0, !1, !1), L = xt("colorize", !1), R = xt("highlight", !1), z = xt("area-fill", !1), B = xt("annotation", !1), V = xt("range", !1), ee = xt("note", !1), H = xt("series", !1), U = xt("scene", !1), W = xt("transform", !1), G = xt("%", !1), K = Tt("identifier"), te = St([
7334
+ ], !0, !1, !1), L = xt("colorize", !1), R = xt("highlight", !1), z = xt("area-fill", !1), B = xt("annotation", !1), V = xt("range", !1), H = xt("note", !1), U = xt("series", !1), W = xt("scene", !1), G = xt("transform", !1), K = xt("%", !1), ee = Tt("identifier"), te = St([
7339
7335
  ["a", "z"],
7340
7336
  ["A", "Z"],
7341
7337
  "_",
@@ -7347,7 +7343,7 @@ function xc(e, t) {
7347
7343
  "_",
7348
7344
  "#",
7349
7345
  "-"
7350
- ], !1, !1, !1), J = xt("-", !1), ne = xt(".", !1), re = St([["0", "9"]], !1, !1, !1), ie = St(["e", "E"], !1, !1, !1), Y = St(["+", "-"], !1, !1, !1), ae = Tt("string"), oe = xt("\"", !1), se = xt("\\", !1), ce = St(["\"", "\\"], !0, !1, !1), le = xt("n", !1), ue = xt("r", !1), de = xt("t", !1), fe = xt("u", !1), pe = St([
7346
+ ], !1, !1, !1), J = xt("-", !1), ne = xt(".", !1), Y = St([["0", "9"]], !1, !1, !1), re = St(["e", "E"], !1, !1, !1), ie = St(["+", "-"], !1, !1, !1), ae = Tt("string"), oe = xt("\"", !1), se = xt("\\", !1), ce = St(["\"", "\\"], !0, !1, !1), le = xt("n", !1), ue = xt("r", !1), de = xt("t", !1), fe = xt("u", !1), pe = St([
7351
7347
  ["0", "9"],
7352
7348
  ["a", "f"],
7353
7349
  ["A", "F"]
@@ -7842,7 +7838,7 @@ function xc(e, t) {
7842
7838
  }
7843
7839
  function Ut() {
7844
7840
  let t, r, i, a, o, s;
7845
- if (t = X, e.substr(X, 4) === p ? (r = p, X += 4) : (r = n, Q === 0 && $(ee)), r !== n) {
7841
+ if (t = X, e.substr(X, 4) === p ? (r = p, X += 4) : (r = n, Q === 0 && $(H)), r !== n) {
7846
7842
  if (dn(), e.charCodeAt(X) === 123 ? (i = "{", X++) : (i = n, Q === 0 && $(k)), i !== n) {
7847
7843
  for (a = [], o = Jt(); o !== n;) a.push(o), o = Jt();
7848
7844
  o = cn(), e.charCodeAt(X) === 125 ? (s = "}", X++) : (s = n, Q === 0 && $(A)), s === n ? (X = t, t = n) : (Z = t, t = Ue(a, o));
@@ -7852,7 +7848,7 @@ function xc(e, t) {
7852
7848
  }
7853
7849
  function Wt() {
7854
7850
  let t, r, i, a, o, s, c, l;
7855
- if (t = X, e.substr(X, 6) === m ? (r = m, X += 6) : (r = n, Q === 0 && $(H)), r !== n) {
7851
+ if (t = X, e.substr(X, 6) === m ? (r = m, X += 6) : (r = n, Q === 0 && $(U)), r !== n) {
7856
7852
  if (i = un(), i !== n) {
7857
7853
  if (a = en(), a !== n) {
7858
7854
  if (dn(), e.charCodeAt(X) === 123 ? (o = "{", X++) : (o = n, Q === 0 && $(k)), o !== n) {
@@ -7862,11 +7858,11 @@ function xc(e, t) {
7862
7858
  } else X = t, t = n;
7863
7859
  } else X = t, t = n;
7864
7860
  } else X = t, t = n;
7865
- return t === n && (t = X, e.substr(X, 6) === m ? (r = m, X += 6) : (r = n, Q === 0 && $(H)), r === n ? (X = t, t = n) : (i = dn(), e.charCodeAt(X) === 123 ? (a = "{", X++) : (a = n, Q === 0 && $(k)), a === n ? (X = t, t = n) : (Z = t, t = Ge()))), t;
7861
+ return t === n && (t = X, e.substr(X, 6) === m ? (r = m, X += 6) : (r = n, Q === 0 && $(U)), r === n ? (X = t, t = n) : (i = dn(), e.charCodeAt(X) === 123 ? (a = "{", X++) : (a = n, Q === 0 && $(k)), a === n ? (X = t, t = n) : (Z = t, t = Ge()))), t;
7866
7862
  }
7867
7863
  function Gt() {
7868
7864
  let t, r, i, a, o, s, c, l;
7869
- if (t = X, e.substr(X, 5) === h ? (r = h, X += 5) : (r = n, Q === 0 && $(U)), r !== n) {
7865
+ if (t = X, e.substr(X, 5) === h ? (r = h, X += 5) : (r = n, Q === 0 && $(W)), r !== n) {
7870
7866
  if (i = un(), i !== n) {
7871
7867
  if (a = en(), a === n && (a = null), dn(), e.charCodeAt(X) === 123 ? (o = "{", X++) : (o = n, Q === 0 && $(k)), o !== n) {
7872
7868
  for (s = [], c = qt(); c !== n;) s.push(c), c = qt();
@@ -7878,7 +7874,7 @@ function xc(e, t) {
7878
7874
  }
7879
7875
  function Kt() {
7880
7876
  let t, r, i, a, o, s, c, l;
7881
- if (t = X, e.substr(X, 9) === g ? (r = g, X += 9) : (r = n, Q === 0 && $(W)), r !== n) {
7877
+ if (t = X, e.substr(X, 9) === g ? (r = g, X += 9) : (r = n, Q === 0 && $(G)), r !== n) {
7882
7878
  if (i = un(), i !== n) {
7883
7879
  if (a = Qt(), a !== n) {
7884
7880
  if (dn(), e.charCodeAt(X) === 123 ? (o = "{", X++) : (o = n, Q === 0 && $(k)), o !== n) {
@@ -7916,7 +7912,7 @@ function xc(e, t) {
7916
7912
  }
7917
7913
  function Zt() {
7918
7914
  let t, r, i;
7919
- return t = X, r = $t(), r === n ? (X = t, t = n) : (e.charCodeAt(X) === 37 ? (i = "%", X++) : (i = n, Q === 0 && $(G)), i === n ? (X = t, t = n) : (Z = t, t = Ze(r))), t === n && (t = X, r = $t(), r !== n && (Z = t, r = Qe(r)), t = r, t === n && (t = X, r = en(), r !== n && (Z = t, r = $e(r)), t = r, t === n && (t = X, r = Qt(), r !== n && (Z = t, r = et(r)), t = r))), t;
7915
+ return t = X, r = $t(), r === n ? (X = t, t = n) : (e.charCodeAt(X) === 37 ? (i = "%", X++) : (i = n, Q === 0 && $(K)), i === n ? (X = t, t = n) : (Z = t, t = Ze(r))), t === n && (t = X, r = $t(), r !== n && (Z = t, r = Qe(r)), t = r, t === n && (t = X, r = en(), r !== n && (Z = t, r = $e(r)), t = r, t === n && (t = X, r = Qt(), r !== n && (Z = t, r = et(r)), t = r))), t;
7920
7916
  }
7921
7917
  function Qt() {
7922
7918
  let t, r, i, a, o;
@@ -7924,29 +7920,29 @@ function xc(e, t) {
7924
7920
  for (a = [], o = e.charAt(X), b.test(o) ? X++ : (o = n, Q === 0 && $(q)); o !== n;) a.push(o), o = e.charAt(X), b.test(o) ? X++ : (o = n, Q === 0 && $(q));
7925
7921
  i = [i, a], r = i;
7926
7922
  } else X = r, r = n;
7927
- return t = r === n ? r : e.substring(t, X), Q--, t === n && (r = n, Q === 0 && $(K)), t;
7923
+ return t = r === n ? r : e.substring(t, X), Q--, t === n && (r = n, Q === 0 && $(ee)), t;
7928
7924
  }
7929
7925
  function $t() {
7930
7926
  let t, r, i, a, o, s, c, l, u, d;
7931
7927
  if (t = X, r = X, i = X, e.charCodeAt(X) === 45 ? (a = "-", X++) : (a = n, Q === 0 && $(J)), a === n && (a = null), o = X, e.charCodeAt(X) === 46 ? (s = ".", X++) : (s = n, Q === 0 && $(ne)), s !== n) {
7932
- if (c = [], l = e.charAt(X), x.test(l) ? X++ : (l = n, Q === 0 && $(re)), l !== n) for (; l !== n;) c.push(l), l = e.charAt(X), x.test(l) ? X++ : (l = n, Q === 0 && $(re));
7928
+ if (c = [], l = e.charAt(X), x.test(l) ? X++ : (l = n, Q === 0 && $(Y)), l !== n) for (; l !== n;) c.push(l), l = e.charAt(X), x.test(l) ? X++ : (l = n, Q === 0 && $(Y));
7933
7929
  else c = n;
7934
7930
  c === n ? (X = o, o = n) : (s = [s, c], o = s);
7935
7931
  } else X = o, o = n;
7936
7932
  if (o === n) {
7937
- if (o = X, s = [], c = e.charAt(X), x.test(c) ? X++ : (c = n, Q === 0 && $(re)), c !== n) for (; c !== n;) s.push(c), c = e.charAt(X), x.test(c) ? X++ : (c = n, Q === 0 && $(re));
7933
+ if (o = X, s = [], c = e.charAt(X), x.test(c) ? X++ : (c = n, Q === 0 && $(Y)), c !== n) for (; c !== n;) s.push(c), c = e.charAt(X), x.test(c) ? X++ : (c = n, Q === 0 && $(Y));
7938
7934
  else s = n;
7939
7935
  if (s !== n) {
7940
7936
  if (c = X, e.charCodeAt(X) === 46 ? (l = ".", X++) : (l = n, Q === 0 && $(ne)), l !== n) {
7941
- for (u = [], d = e.charAt(X), x.test(d) ? X++ : (d = n, Q === 0 && $(re)); d !== n;) u.push(d), d = e.charAt(X), x.test(d) ? X++ : (d = n, Q === 0 && $(re));
7937
+ for (u = [], d = e.charAt(X), x.test(d) ? X++ : (d = n, Q === 0 && $(Y)); d !== n;) u.push(d), d = e.charAt(X), x.test(d) ? X++ : (d = n, Q === 0 && $(Y));
7942
7938
  l = [l, u], c = l;
7943
7939
  } else X = c, c = n;
7944
7940
  c === n && (c = null), s = [s, c], o = s;
7945
7941
  } else X = o, o = n;
7946
7942
  }
7947
7943
  if (o !== n) {
7948
- if (s = X, c = e.charAt(X), S.test(c) ? X++ : (c = n, Q === 0 && $(ie)), c !== n) {
7949
- if (l = e.charAt(X), C.test(l) ? X++ : (l = n, Q === 0 && $(Y)), l === n && (l = null), u = [], d = e.charAt(X), x.test(d) ? X++ : (d = n, Q === 0 && $(re)), d !== n) for (; d !== n;) u.push(d), d = e.charAt(X), x.test(d) ? X++ : (d = n, Q === 0 && $(re));
7944
+ if (s = X, c = e.charAt(X), S.test(c) ? X++ : (c = n, Q === 0 && $(re)), c !== n) {
7945
+ if (l = e.charAt(X), C.test(l) ? X++ : (l = n, Q === 0 && $(ie)), l === n && (l = null), u = [], d = e.charAt(X), x.test(d) ? X++ : (d = n, Q === 0 && $(Y)), d !== n) for (; d !== n;) u.push(d), d = e.charAt(X), x.test(d) ? X++ : (d = n, Q === 0 && $(Y));
7950
7946
  else u = n;
7951
7947
  u === n ? (X = s, s = n) : (c = [
7952
7948
  c,
@@ -8082,7 +8078,7 @@ function Tc(e, t) {
8082
8078
  let n = wc(t), r = _o(e), i = new Set(r.map((e) => e.key)), a = {};
8083
8079
  for (let e of r) {
8084
8080
  let t = n.get(e.key);
8085
- t !== void 0 && i.has(e.key) && (e.type === U.Colors ? a[e.key] = Qs(String(t)).map((e) => e.trim()).filter(Boolean) : e.type === U.Boolean ? e.key === "valueLabels" && String(t).toLowerCase() === "percent" ? a[e.key] = "percent" : a[e.key] = Cc(t) : a[e.key] = String(t));
8081
+ t !== void 0 && i.has(e.key) && (e.type === W.Colors ? a[e.key] = Qs(String(t)).map((e) => e.trim()).filter(Boolean) : e.type === W.Boolean ? e.key === "valueLabels" && String(t).toLowerCase() === "percent" ? a[e.key] = "percent" : a[e.key] = Cc(t) : a[e.key] = String(t));
8086
8082
  }
8087
8083
  return a;
8088
8084
  }
@@ -9312,4 +9308,4 @@ function cu(e, t, n) {
9312
9308
  }
9313
9309
  }
9314
9310
  //#endregion
9315
- export { Mr as $, Tc as A, q as At, Ws as B, A as Bt, Yc as C, U as Ct, Nc as D, V as Dt, Mc as E, B as Et, hc as F, S as Ft, Qi as G, D as Gt, _o as H, F as Ht, gc as I, L as It, ti as J, P as Jt, Ji as K, M as Kt, pc as L, H as Lt, wc as M, b as Mt, Cc as N, G as Nt, Lc as O, W as Ot, Sc as P, x as Pt, zr as Q, ic as R, j as Rt, Xc as S, v as St, Pc as T, T as Tt, vo as U, I as Ut, go as V, y as Vt, ho as W, ee as Wt, Gr as X, te as Xt, Jr as Y, C as Yt, Ur as Z, z as Zt, wl as _, ue as _t, Pl as a, Ot as at, Qc as b, O as bt, Al as c, $ as ct, Tl as d, Xe as dt, An as et, vl as f, qe as ft, xl as g, de as gt, yl as h, Oe as ht, Hl as i, Pt as it, Oc as j, w as jt, Dc as k, K as kt, Dl as l, St as lt, _l as m, De as mt, ou as n, En as nt, El as o, Dt as ot, bl as p, Je as pt, Zi as q, N as qt, tu as r, dn as rt, kl as s, Ct as st, cu as t, kn as tt, Ol as u, nt as ut, ol as v, k as vt, Ic as w, _ as wt, Zc as x, E as xt, al as y, R as yt, Ys as z, J as zt };
9311
+ export { Mr as $, Tc as A, q as At, Ws as B, A as Bt, Yc as C, W as Ct, Nc as D, V as Dt, Mc as E, B as Et, hc as F, S as Ft, Qi as G, D as Gt, _o as H, F as Ht, gc as I, L as It, ti as J, P as Jt, Ji as K, M as Kt, pc as L, U as Lt, wc as M, b as Mt, Cc as N, K as Nt, Lc as O, G as Ot, Sc as P, x as Pt, zr as Q, ic as R, j as Rt, Xc as S, v as St, Pc as T, T as Tt, vo as U, I as Ut, go as V, y as Vt, ho as W, H as Wt, Gr as X, te as Xt, Jr as Y, C as Yt, Ur as Z, z as Zt, wl as _, ue as _t, Pl as a, Ot as at, Qc as b, O as bt, Al as c, $ as ct, Tl as d, Xe as dt, An as et, vl as f, qe as ft, xl as g, de as gt, yl as h, Oe as ht, Hl as i, Pt as it, Oc as j, w as jt, Dc as k, ee as kt, Dl as l, St as lt, _l as m, De as mt, ou as n, En as nt, El as o, Dt as ot, bl as p, Je as pt, Zi as q, N as qt, tu as r, dn as rt, kl as s, Ct as st, cu as t, kn as tt, Ol as u, nt as ut, ol as v, k as vt, Ic as w, _ as wt, Zc as x, E as xt, al as y, R as yt, Ys as z, J as zt };