@nova-lab/charts 1.0.3-dev.34 → 1.0.4-dev.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,12 +1,12 @@
1
- var Gt = Object.defineProperty;
2
- var Ht = (e, i, t) => i in e ? Gt(e, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[i] = t;
3
- var C = (e, i, t) => Ht(e, typeof i != "symbol" ? i + "" : i, t);
4
- import { Nova as Mt, reconcileNovaTemplateChildren as Yt, NovaNode as Xt, RaphSchedulerType as Zt, RendererType as je } from "@nova-lab/core";
5
- import { normalizeCommonProps as ke, finiteNumber as R, NOVA_UI_COMMON_FIELD_DEFINITIONS as Jt, NOVA_UI_COMMON_DIRTY_POLICY as dt, commonMeasureBounds as Qt, NovaUiComponentNode as ei, buildBoxSchema as ti, Root as ii, normalizeRootProps as ri } from "@nova-lab/ui-kit";
6
- import { toZonedTime as Ft, fromZonedTime as ni } from "date-fns-tz";
7
- import { c as ut } from "./internal-I5BDhahD.js";
8
- import { C as ai, c as ht, s as he, a as Ke, r as V } from "./state-C5pICb11.js";
9
- const si = Mt.createContextToken("NovaCharts.Runtime");
1
+ var Yt = Object.defineProperty;
2
+ var Gt = (e, i, t) => i in e ? Yt(e, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[i] = t;
3
+ var C = (e, i, t) => Gt(e, typeof i != "symbol" ? i + "" : i, t);
4
+ import { Nova as Ft, reconcileNovaTemplateChildren as Xt, NovaNode as Zt, RaphSchedulerType as Jt, RendererType as je } from "@nova-lab/core";
5
+ import { normalizeCommonProps as ke, finiteNumber as R, NOVA_UI_COMMON_FIELD_DEFINITIONS as Qt, NOVA_UI_COMMON_DIRTY_POLICY as ut, commonMeasureBounds as ei, NovaUiComponentNode as ti, buildBoxSchema as ii, Root as ri, normalizeRootProps as ni } from "@nova-lab/ui-kit";
6
+ import { TZDate as Nt, tzOffset as Ke } from "@date-fns/tz";
7
+ import { c as ht } from "./internal-I5BDhahD.js";
8
+ import { C as ai, c as ft, s as he, a as Ue, r as V } from "./state-C5pICb11.js";
9
+ const si = Ft.createContextToken("NovaCharts.Runtime");
10
10
  function nn(e) {
11
11
  return typeof e == "object" && e !== null && typeof e.getNovaChartRuntime == "function";
12
12
  }
@@ -162,7 +162,7 @@ const oi = [
162
162
  "ScatterSeries::point": { opacity: 0.96 }
163
163
  }
164
164
  })
165
- }, ft = new Map(Object.entries(li));
165
+ }, mt = new Map(Object.entries(li));
166
166
  function be(e) {
167
167
  var i;
168
168
  return {
@@ -174,8 +174,8 @@ function be(e) {
174
174
  styles: { ...e.styles ?? {} }
175
175
  };
176
176
  }
177
- function mt(e) {
178
- const i = ft.get(e ?? "dashboard") ?? ft.get("dashboard");
177
+ function gt(e) {
178
+ const i = mt.get(e ?? "dashboard") ?? mt.get("dashboard");
179
179
  return be(i);
180
180
  }
181
181
  const ci = {
@@ -227,7 +227,7 @@ const ci = {
227
227
  Tooltip: { surface: "tooltipSurface", content: "tooltipContent" },
228
228
  Viewport: { track: "viewportTrack", thumb: "viewportThumb" }
229
229
  };
230
- class gt {
230
+ class yt {
231
231
  constructor(i) {
232
232
  C(this, "_rules");
233
233
  C(this, "_cache", /* @__PURE__ */ new Map());
@@ -285,8 +285,8 @@ function fi(e) {
285
285
  const s = r.trim();
286
286
  if (s.includes("::")) {
287
287
  const [c, d] = s.split("::"), f = c == null ? void 0 : c.trim(), g = d == null ? void 0 : d.trim();
288
- f && (i.component = Xe(f)), g && (i.part = xi(i.component, g));
289
- } else s && (i.component = Xe(s));
288
+ f && (i.component = Ze(f)), g && (i.part = xi(i.component, g));
289
+ } else s && (i.component = Ze(s));
290
290
  return i.component || i.part || i.id || i.classes.length || Object.keys(i.attrs).length ? i : null;
291
291
  }
292
292
  function mi(e) {
@@ -317,9 +317,9 @@ function gi(e, i) {
317
317
  }
318
318
  function yi(e, i) {
319
319
  var r;
320
- if (e.component && Xe(i.componentName) !== e.component || e.part && e.part !== i.part || e.state && e.state !== i.state || e.id && e.id !== i.componentId)
320
+ if (e.component && Ze(i.componentName) !== e.component || e.part && e.part !== i.part || e.state && e.state !== i.state || e.id && e.id !== i.componentId)
321
321
  return !1;
322
- const t = new Set(Nt(i.className));
322
+ const t = new Set(Dt(i.className));
323
323
  for (const n of e.classes)
324
324
  if (!t.has(n))
325
325
  return !1;
@@ -358,12 +358,12 @@ function _i(e) {
358
358
  e.componentId,
359
359
  e.part,
360
360
  e.state,
361
- Nt(e.className).join("."),
361
+ Dt(e.className).join("."),
362
362
  Object.entries(e.attrs ?? {}).map(([i, t]) => `${i}=${String(t)}`).sort().join("&"),
363
363
  JSON.stringify(e.tokens)
364
364
  ].join("|");
365
365
  }
366
- function Xe(e) {
366
+ function Ze(e) {
367
367
  if (e)
368
368
  return e.replace(/^NovaCharts\./, "");
369
369
  }
@@ -371,15 +371,15 @@ function xi(e, i) {
371
371
  var t;
372
372
  return ((t = ui[e ?? ""]) == null ? void 0 : t[i]) ?? i;
373
373
  }
374
- function Nt(e) {
374
+ function Dt(e) {
375
375
  return Array.isArray(e) ? e.flatMap((i) => i.split(/\s+/)).filter(Boolean) : (e == null ? void 0 : e.split(/\s+/).filter(Boolean)) ?? [];
376
376
  }
377
377
  class pi {
378
378
  constructor(i, t) {
379
379
  C(this, "_cleanupPlugins", []);
380
- C(this, "_styleSheet", new gt());
380
+ C(this, "_styleSheet", new yt());
381
381
  C(this, "_bridge");
382
- C(this, "visualPreset", mt());
382
+ C(this, "visualPreset", gt());
383
383
  C(this, "tokens", { ...this.visualPreset.tokens ?? {} });
384
384
  C(this, "plugins", []);
385
385
  C(this, "contextualStyles", !1);
@@ -388,7 +388,7 @@ class pi {
388
388
  }
389
389
  configure(i, t) {
390
390
  var r, n;
391
- this.dispose(), this.revision++, this._bridge = t, this.visualPreset = mt(i.visualPreset), this.tokens = { ...this.visualPreset.tokens ?? {} }, this._styleSheet = new gt(i.styleSheet), this.plugins = [...i.plugins ?? []].sort(
391
+ this.dispose(), this.revision++, this._bridge = t, this.visualPreset = gt(i.visualPreset), this.tokens = { ...this.visualPreset.tokens ?? {} }, this._styleSheet = new yt(i.styleSheet), this.plugins = [...i.plugins ?? []].sort(
392
392
  (a, o) => (a.order ?? 0) - (o.order ?? 0)
393
393
  ), this.contextualStyles = !!((r = i.styleSheet) != null && r.trim() || this.plugins.some((a) => a.resolveMarkStyle)) || Object.values(this.visualPreset.styles ?? {}).some((a) => typeof a == "function" || Object.values(a).some((o) => typeof o == "function"));
394
394
  for (const a of this.plugins) {
@@ -421,7 +421,7 @@ class pi {
421
421
  const r = [];
422
422
  for (const o of this.plugins) {
423
423
  const s = i === "underlay" ? (n = o.renderUnderlay) == null ? void 0 : n.call(o, { ...t, tokens: this.tokens }) : (a = o.renderOverlay) == null ? void 0 : a.call(o, { ...t, tokens: this.tokens });
424
- Dt(r, s);
424
+ Rt(r, s);
425
425
  }
426
426
  return r;
427
427
  }
@@ -460,7 +460,7 @@ function an(e, i, t) {
460
460
  var r, n, a, o, s, c, d;
461
461
  return t.disabled ? "disabled" : ((r = t.attrs) == null ? void 0 : r.focused) === !0 || ((n = t.attrs) == null ? void 0 : n["data-state"]) === "focused" ? "focused" : ((a = t.attrs) == null ? void 0 : a.selected) === !0 || ((o = t.attrs) == null ? void 0 : o["data-state"]) === "selected" ? "selected" : ((s = t.attrs) == null ? void 0 : s.muted) === !0 || ((c = t.attrs) == null ? void 0 : c["data-state"]) === "muted" ? "muted" : ((d = t.hovered) == null ? void 0 : d.seriesId) === e && (!i || t.hovered.key === i) ? "hovered" : "normal";
462
462
  }
463
- function Dt(e, i) {
463
+ function Rt(e, i) {
464
464
  i && (Array.isArray(i) ? e.push(...i) : e.push(i));
465
465
  }
466
466
  function sn(e, i, t, r) {
@@ -469,7 +469,7 @@ function sn(e, i, t, r) {
469
469
  return;
470
470
  }
471
471
  const n = i({ ...t, defaultSchema: r });
472
- n !== null && Dt(e, n ?? r);
472
+ n !== null && Rt(e, n ?? r);
473
473
  }
474
474
  function wi(e, i) {
475
475
  if (!e)
@@ -888,7 +888,7 @@ class Ii {
888
888
  }
889
889
  }
890
890
  const Mi = [0, 1];
891
- class G {
891
+ class H {
892
892
  /**
893
893
  * Создает категориальную шкалу с band geometry.
894
894
  */
@@ -971,7 +971,7 @@ class G {
971
971
  y !== void 0 && d.push({
972
972
  value: y,
973
973
  position: this.center(y),
974
- label: Rt(y, i),
974
+ label: Tt(y, i),
975
975
  major: !0
976
976
  });
977
977
  }
@@ -1044,7 +1044,7 @@ function Fi(e, i, t) {
1044
1044
  return Number.isFinite(a) ? [{
1045
1045
  value: n,
1046
1046
  position: a,
1047
- label: Di(r) ?? Rt(n, t),
1047
+ label: Di(r) ?? Tt(n, t),
1048
1048
  major: Ri(r)
1049
1049
  }] : [];
1050
1050
  });
@@ -1058,12 +1058,12 @@ function Di(e) {
1058
1058
  function Ri(e) {
1059
1059
  return typeof e == "object" ? e.major ?? !0 : !0;
1060
1060
  }
1061
- function Rt(e, i) {
1061
+ function Tt(e, i) {
1062
1062
  var t, r;
1063
1063
  return ((t = i.labels) == null ? void 0 : t[e]) ?? ((r = i.formatter) == null ? void 0 : r.call(i, e)) ?? e;
1064
1064
  }
1065
1065
  const Ti = [0, 1];
1066
- class Tt {
1066
+ class Et {
1067
1067
  /**
1068
1068
  * Создает числовую шкалу с доменом данных и пиксельным диапазоном.
1069
1069
  */
@@ -1107,7 +1107,7 @@ class Tt {
1107
1107
  const [t, r] = this._domain, [n, a] = this._range, o = r - t;
1108
1108
  if (o === 0)
1109
1109
  return n;
1110
- const s = (i - t) / o, c = this._clampValues ? yt(s, 0, 1) : s;
1110
+ const s = (i - t) / o, c = this._clampValues ? bt(s, 0, 1) : s;
1111
1111
  return n + c * (a - n);
1112
1112
  }
1113
1113
  /**
@@ -1117,7 +1117,7 @@ class Tt {
1117
1117
  const [t, r] = this._domain, [n, a] = this._range, o = a - n;
1118
1118
  if (o === 0)
1119
1119
  return t;
1120
- const s = (i - n) / o, c = this._clampValues ? yt(s, 0, 1) : s;
1120
+ const s = (i - n) / o, c = this._clampValues ? bt(s, 0, 1) : s;
1121
1121
  return t + c * (r - t);
1122
1122
  }
1123
1123
  /**
@@ -1133,7 +1133,7 @@ class Tt {
1133
1133
  S.push({
1134
1134
  value: m,
1135
1135
  position: this.toPx(m),
1136
- label: Et(m, i),
1136
+ label: Pt(m, i),
1137
1137
  major: !0
1138
1138
  });
1139
1139
  }
@@ -1146,7 +1146,7 @@ function Ei(e, i, t) {
1146
1146
  return typeof n != "number" || !Number.isFinite(n) ? [] : [{
1147
1147
  value: n,
1148
1148
  position: e.toPx(n),
1149
- label: zi(r) ?? Et(n, t),
1149
+ label: zi(r) ?? Pt(n, t),
1150
1150
  major: Ai(r)
1151
1151
  }];
1152
1152
  });
@@ -1160,14 +1160,14 @@ function zi(e) {
1160
1160
  function Ai(e) {
1161
1161
  return typeof e == "object" ? e.major ?? !0 : !0;
1162
1162
  }
1163
- function Et(e, i) {
1163
+ function Pt(e, i) {
1164
1164
  var t, r;
1165
1165
  return ((t = i.labels) == null ? void 0 : t[String(e)]) ?? ((r = i.formatter) == null ? void 0 : r.call(i, e)) ?? String(e);
1166
1166
  }
1167
1167
  function $i(e) {
1168
1168
  return e.length === 2 && typeof e[0] == "number" && typeof e[1] == "number";
1169
1169
  }
1170
- function yt(e, i, t) {
1170
+ function bt(e, i, t) {
1171
1171
  return Math.max(i, Math.min(t, e));
1172
1172
  }
1173
1173
  function Li(e, i, t) {
@@ -1190,7 +1190,7 @@ const Oi = [
1190
1190
  "month",
1191
1191
  "quarter",
1192
1192
  "year"
1193
- ], bt = {
1193
+ ], vt = {
1194
1194
  millisecond: 1,
1195
1195
  second: 1e3,
1196
1196
  minute: 6e4,
@@ -1201,11 +1201,11 @@ const Oi = [
1201
1201
  quarter: 7776e6,
1202
1202
  year: 31536e6
1203
1203
  };
1204
- function vt(e) {
1204
+ function St(e) {
1205
1205
  return Oi.indexOf(e);
1206
1206
  }
1207
- function St(e, i, t = "UTC", r = 1) {
1208
- const n = zt(e, t);
1207
+ function _t(e, i, t = "UTC", r = 1) {
1208
+ const n = At(e, t);
1209
1209
  if (i === "year") {
1210
1210
  const o = Math.floor(n.year / r) * r;
1211
1211
  return ae({ year: o, month: 1, day: 1, hour: 0, minute: 0, second: 0, millisecond: 0 }, t);
@@ -1219,8 +1219,8 @@ function St(e, i, t = "UTC", r = 1) {
1219
1219
  return ae({ ...n, month: o, day: 1, hour: 0, minute: 0, second: 0, millisecond: 0 }, t);
1220
1220
  }
1221
1221
  if (i === "week") {
1222
- const o = ae({ ...n, hour: 0, minute: 0, second: 0, millisecond: 0 }, t), s = Ft(o, t).getDay(), c = s === 0 ? 6 : s - 1;
1223
- return Pt(o, "day", -c, t);
1222
+ const o = ae({ ...n, hour: 0, minute: 0, second: 0, millisecond: 0 }, t), s = new Nt(o, t).getDay(), c = s === 0 ? 6 : s - 1;
1223
+ return zt(o, "day", -c, t);
1224
1224
  }
1225
1225
  if (i === "day")
1226
1226
  return ae({ ...n, hour: 0, minute: 0, second: 0, millisecond: 0 }, t);
@@ -1239,8 +1239,8 @@ function St(e, i, t = "UTC", r = 1) {
1239
1239
  const a = Math.floor(n.millisecond / r) * r;
1240
1240
  return ae({ ...n, millisecond: a }, t);
1241
1241
  }
1242
- function Pt(e, i, t, r = "UTC") {
1243
- const n = zt(e, r), a = new Date(Date.UTC(
1242
+ function zt(e, i, t, r = "UTC") {
1243
+ const n = At(e, r), a = new Date(Date.UTC(
1244
1244
  n.year,
1245
1245
  n.month - 1,
1246
1246
  n.day,
@@ -1259,8 +1259,8 @@ function Pt(e, i, t, r = "UTC") {
1259
1259
  millisecond: a.getUTCMilliseconds()
1260
1260
  }, r);
1261
1261
  }
1262
- function zt(e, i = "UTC") {
1263
- const t = Ft(new Date(e), i);
1262
+ function At(e, i = "UTC") {
1263
+ const t = new Nt(e, i);
1264
1264
  return {
1265
1265
  year: t.getFullYear(),
1266
1266
  month: t.getMonth() + 1,
@@ -1272,22 +1272,13 @@ function zt(e, i = "UTC") {
1272
1272
  };
1273
1273
  }
1274
1274
  function ae(e, i = "UTC") {
1275
- const t = [
1276
- `${e.year}`.padStart(4, "0"),
1277
- "-",
1278
- `${e.month}`.padStart(2, "0"),
1279
- "-",
1280
- `${e.day}`.padStart(2, "0"),
1281
- "T",
1282
- `${e.hour}`.padStart(2, "0"),
1283
- ":",
1284
- `${e.minute}`.padStart(2, "0"),
1285
- ":",
1286
- `${e.second}`.padStart(2, "0"),
1287
- ".",
1288
- `${e.millisecond}`.padStart(3, "0")
1289
- ].join("");
1290
- return ni(t, i).getTime();
1275
+ const t = /* @__PURE__ */ new Date(0);
1276
+ t.setUTCFullYear(e.year, e.month - 1, e.day), t.setUTCHours(e.hour, e.minute, e.second, e.millisecond);
1277
+ const r = t.getTime(), n = Ke(i, t), a = r - n * 6e4, o = Ke(i, new Date(a));
1278
+ if (n === o)
1279
+ return a;
1280
+ const s = r - o * 6e4;
1281
+ return o === Ke(i, new Date(s)) ? s : Math.max(a, s);
1291
1282
  }
1292
1283
  const Bi = [0, 1], ji = [
1293
1284
  { unit: "second", step: 1 },
@@ -1308,7 +1299,7 @@ const Bi = [0, 1], ji = [
1308
1299
  { unit: "quarter", step: 1 },
1309
1300
  { unit: "year", step: 1 }
1310
1301
  ];
1311
- class Ki extends Tt {
1302
+ class Ki extends Et {
1312
1303
  /**
1313
1304
  * Создает временную шкалу с IANA timezone для форматирования и календарных шагов.
1314
1305
  */
@@ -1336,7 +1327,7 @@ class Ki extends Tt {
1336
1327
  var k;
1337
1328
  if ((k = t.values) != null && k.length)
1338
1329
  return this._createExplicitTicks(t.values, t);
1339
- const [r, n] = this.getDomain(), a = this._resolveTickUnit(t), o = t.timezone ?? this._timezone, s = this._createFormatter(t, a.unit), c = this._createMajorFormatter(t, a.unit), d = [], f = St(Math.min(r, n), a.unit, o, a.step), g = Math.max(r, n);
1330
+ const [r, n] = this.getDomain(), a = this._resolveTickUnit(t), o = t.timezone ?? this._timezone, s = this._createFormatter(t, a.unit), c = this._createMajorFormatter(t, a.unit), d = [], f = _t(Math.min(r, n), a.unit, o, a.step), g = Math.max(r, n);
1340
1331
  let y = f, S = 0;
1341
1332
  for (; y <= g && S < 1e4; ) {
1342
1333
  if (y >= Math.min(r, n)) {
@@ -1348,7 +1339,7 @@ class Ki extends Tt {
1348
1339
  major: x
1349
1340
  });
1350
1341
  }
1351
- y = Pt(y, a.unit, a.step, o), S += 1;
1342
+ y = zt(y, a.unit, a.step, o), S += 1;
1352
1343
  }
1353
1344
  return d;
1354
1345
  }
@@ -1379,11 +1370,11 @@ class Ki extends Tt {
1379
1370
  };
1380
1371
  const [r, n] = this.getDomain(), [a, o] = this.getRange(), s = Math.abs(n - r), c = Math.max(1, Math.abs(o - a)), d = t.minStepPx ?? 64, f = t.maxCount ?? Math.max(1, Math.floor(c / d));
1381
1372
  for (const y of ji) {
1382
- const S = s / (bt[y.unit] * y.step), k = c / Math.max(1, S);
1373
+ const S = s / (vt[y.unit] * y.step), k = c / Math.max(1, S);
1383
1374
  if (S <= f && k >= d)
1384
1375
  return y;
1385
1376
  }
1386
- return { unit: "year", step: Math.max(1, Math.ceil(s / bt.year / f)) };
1377
+ return { unit: "year", step: Math.max(1, Math.ceil(s / vt.year / f)) };
1387
1378
  }
1388
1379
  /**
1389
1380
  * Создает formatter обычного tick label.
@@ -1414,7 +1405,7 @@ class Ki extends Tt {
1414
1405
  */
1415
1406
  _isMajorTick(t, r, n, a) {
1416
1407
  const o = n ?? Wi(r);
1417
- return vt(o) <= vt(r) ? !0 : St(t, o, a, 1) === t;
1408
+ return St(o) <= St(r) ? !0 : _t(t, o, a, 1) === t;
1418
1409
  }
1419
1410
  }
1420
1411
  function Ui(e) {
@@ -1426,32 +1417,32 @@ function qi(e) {
1426
1417
  function Wi(e) {
1427
1418
  return e === "millisecond" || e === "second" || e === "minute" ? "hour" : e === "hour" ? "day" : e === "day" || e === "week" ? "month" : "year";
1428
1419
  }
1429
- function Ue(e) {
1430
- return e.type === "linear" ? new Tt(e.id, e) : e.type === "time" ? new Ki(e.id, e) : new G(e.id, e);
1420
+ function qe(e) {
1421
+ return e.type === "linear" ? new Et(e.id, e) : e.type === "time" ? new Ki(e.id, e) : new H(e.id, e);
1431
1422
  }
1432
1423
  function on(e, i, t) {
1433
- const r = At(i, t);
1434
- return i.scaleType === "band" ? Ue({
1424
+ const r = $t(i, t);
1425
+ return i.scaleType === "band" ? qe({
1435
1426
  id: e,
1436
1427
  type: "band",
1437
1428
  domain: r,
1438
1429
  paddingInner: i.paddingInner,
1439
1430
  paddingOuter: i.paddingOuter
1440
- }) : i.scaleType === "time" ? Ue({
1431
+ }) : i.scaleType === "time" ? qe({
1441
1432
  id: e,
1442
1433
  type: "time",
1443
1434
  domain: r,
1444
1435
  clamp: i.clamp,
1445
1436
  locale: i.locale,
1446
1437
  timezone: i.timezone
1447
- }) : Ue({
1438
+ }) : qe({
1448
1439
  id: e,
1449
1440
  type: "linear",
1450
1441
  domain: r,
1451
1442
  clamp: i.clamp
1452
1443
  });
1453
1444
  }
1454
- function At(e, i) {
1445
+ function $t(e, i) {
1455
1446
  if (e.domain)
1456
1447
  return e.domain;
1457
1448
  if (e.scaleType === "band")
@@ -1459,12 +1450,12 @@ function At(e, i) {
1459
1450
  const t = e.field ? i.numericExtent(e.field) : [0, 1];
1460
1451
  let [r, n] = t;
1461
1452
  if (e.zero && (r = Math.min(0, r), n = Math.max(0, n)), e.nice) {
1462
- const a = Gi(r, n);
1453
+ const a = Hi(r, n);
1463
1454
  r = a[0], n = a[1];
1464
1455
  }
1465
1456
  return r === n && (r -= 1, n += 1), [r, n];
1466
1457
  }
1467
- function Gi(e, i) {
1458
+ function Hi(e, i) {
1468
1459
  if (!Number.isFinite(e) || !Number.isFinite(i))
1469
1460
  return [0, 1];
1470
1461
  const t = Math.abs(i - e);
@@ -1484,13 +1475,13 @@ const Fe = {
1484
1475
  aggregation: "auto"
1485
1476
  };
1486
1477
  function ln(e) {
1487
- const i = xe(), t = xe(), { props: r, dataStore: n } = e, a = Ne(e), o = n.getData(), s = $t(a), c = ar(a, Re(e), r.virtualization.overscanPx), d = Math.max(0, c.endIndex - c.startIndex + 1), f = Qi(e, o), g = xe() - t, y = xe();
1478
+ const i = xe(), t = xe(), { props: r, dataStore: n } = e, a = Ne(e), o = n.getData(), s = Lt(a), c = ar(a, Re(e), r.virtualization.overscanPx), d = Math.max(0, c.endIndex - c.startIndex + 1), f = Qi(e, o), g = xe() - t, y = xe();
1488
1479
  let S = "direct", k = 0, x = o.length, m;
1489
1480
  const N = r.mode === "single" && !r.seriesField;
1490
1481
  if (!r.virtualization.enabled)
1491
- m = _t(e, o.map((L, D) => D), f);
1482
+ m = xt(e, o.map((L, D) => D), f);
1492
1483
  else {
1493
- const L = a instanceof G ? a.bandwidth() : Number.POSITIVE_INFINITY, D = Math.min(o.length, d * Math.max(1, f.length));
1484
+ const L = a instanceof H ? a.bandwidth() : Number.POSITIVE_INFINITY, D = Math.min(o.length, d * Math.max(1, f.length));
1494
1485
  if (N && (L < r.virtualization.minBarWidthPx || D > r.virtualization.maxRenderedBars)) {
1495
1486
  S = "aggregated";
1496
1487
  const A = Zi(e, s, c, f);
@@ -1502,7 +1493,7 @@ function ln(e) {
1502
1493
  c.startIndex,
1503
1494
  c.endIndex
1504
1495
  );
1505
- S = A.length < o.length ? "windowed" : "direct", x = A.length, m = _t(e, A, f);
1496
+ S = A.length < o.length ? "windowed" : "direct", x = A.length, m = xt(e, A, f);
1506
1497
  }
1507
1498
  }
1508
1499
  if (r.virtualization.enabled && m.length > r.virtualization.maxRenderedBars) {
@@ -1530,33 +1521,33 @@ function ln(e) {
1530
1521
  diagnostics: q
1531
1522
  };
1532
1523
  }
1533
- function _t(e, i, t) {
1524
+ function xt(e, i, t) {
1534
1525
  const r = Ji(e, i);
1535
- return e.props.mode === "stacked" ? Xi(e, r, t) : e.props.mode === "grouped" ? Yi(e, r, t) : Hi(e, r, t);
1526
+ return e.props.mode === "stacked" ? Xi(e, r, t) : e.props.mode === "grouped" ? Gi(e, r, t) : Yi(e, r, t);
1536
1527
  }
1537
- function Hi(e, i, t) {
1538
- const r = Ne(e), n = De(e), a = we(n, 0), o = r instanceof G ? Math.max(0, r.bandwidth()) : Math.max(1, Re(e) / Math.max(1, i.length));
1528
+ function Yi(e, i, t) {
1529
+ const r = Ne(e), n = De(e), a = we(n, 0), o = r instanceof H ? Math.max(0, r.bandwidth()) : Math.max(1, Re(e) / Math.max(1, i.length));
1539
1530
  return i.map((s) => {
1540
1531
  const c = r.toPx(s.category);
1541
1532
  return Le(e, s, t, c, o, a, s.value, 0);
1542
- }).filter(Je);
1533
+ }).filter(Qe);
1543
1534
  }
1544
- function Yi(e, i, t) {
1545
- const r = Ne(e), n = De(e), a = we(n, 0), o = r instanceof G ? Math.max(0, r.bandwidth()) : Math.max(1, Re(e) / Math.max(1, i.length)), s = Math.min(3, Math.max(0, o * 0.08)), c = Math.max(1, (o - s * Math.max(0, t.length - 1)) / Math.max(1, t.length)), d = new Map(t.map((f, g) => [f.id, g]));
1535
+ function Gi(e, i, t) {
1536
+ const r = Ne(e), n = De(e), a = we(n, 0), o = r instanceof H ? Math.max(0, r.bandwidth()) : Math.max(1, Re(e) / Math.max(1, i.length)), s = Math.min(3, Math.max(0, o * 0.08)), c = Math.max(1, (o - s * Math.max(0, t.length - 1)) / Math.max(1, t.length)), d = new Map(t.map((f, g) => [f.id, g]));
1546
1537
  return i.map((f) => {
1547
1538
  const g = d.get(f.seriesKey) ?? 0, y = r.toPx(f.category) + g * (c + s);
1548
1539
  return Le(e, f, t, y, c, a, f.value, 0);
1549
- }).filter(Je);
1540
+ }).filter(Qe);
1550
1541
  }
1551
1542
  function Xi(e, i, t) {
1552
- const r = Ne(e), n = De(e), a = we(n, 0), o = r instanceof G ? Math.max(0, r.bandwidth()) : Math.max(1, Re(e) / Math.max(1, i.length)), s = /* @__PURE__ */ new Map(), c = [];
1543
+ const r = Ne(e), n = De(e), a = we(n, 0), o = r instanceof H ? Math.max(0, r.bandwidth()) : Math.max(1, Re(e) / Math.max(1, i.length)), s = /* @__PURE__ */ new Map(), c = [];
1553
1544
  for (const d of i) {
1554
1545
  let f = s.get(d.category);
1555
1546
  f || (f = { positive: 0, negative: 0 }, s.set(d.category, f));
1556
1547
  const g = d.value >= 0 ? f.positive : f.negative;
1557
1548
  d.value >= 0 ? f.positive += d.value : f.negative += d.value;
1558
1549
  const y = r.toPx(d.category), S = Le(e, d, t, y, o, a, g + d.value, g);
1559
- Je(S) && c.push(S);
1550
+ Qe(S) && c.push(S);
1560
1551
  }
1561
1552
  return c;
1562
1553
  }
@@ -1605,7 +1596,7 @@ function Zi(e, i, t, r) {
1605
1596
  return { items: [], bucketCount: 0, visibleRows: 0 };
1606
1597
  const d = Math.max(1, Math.floor(Re(e) / Math.max(1, n.virtualization.minBarWidthPx))), f = Math.min(n.virtualization.maxRenderedBars, d, c), g = Math.max(1, Math.ceil(c / f)), y = ir(f), S = a.getData();
1607
1598
  let k = 0;
1608
- o instanceof G && S.forEach((N, E) => {
1599
+ o instanceof H && S.forEach((N, E) => {
1609
1600
  const q = String(a.readField(N, E, n.categoryField) ?? ""), L = o.indexOf(q);
1610
1601
  if (L < t.startIndex || L > t.endIndex)
1611
1602
  return;
@@ -1624,7 +1615,7 @@ function Zi(e, i, t, r) {
1624
1615
  const q = Math.min(t.endIndex, E + g - 1), L = y[N], D = L ? nr(L, n.virtualization.aggregation) : null;
1625
1616
  if (D === null)
1626
1617
  continue;
1627
- const U = i[E] ?? "", A = i[q] ?? U, $ = o.toPx(U), z = o instanceof G ? o.toPx(A) + o.bandwidth() : $ + 1, Y = {
1618
+ const U = i[E] ?? "", A = i[q] ?? U, $ = o.toPx(U), z = o instanceof H ? o.toPx(A) + o.bandwidth() : $ + 1, G = {
1628
1619
  row: void 0,
1629
1620
  rowIndex: -1,
1630
1621
  key: `bucket:${E}:${q}`,
@@ -1632,8 +1623,8 @@ function Zi(e, i, t, r) {
1632
1623
  value: D,
1633
1624
  seriesKey: "__default",
1634
1625
  seriesLabel: "Value"
1635
- }, J = Le(e, Y, r, $, Math.max(1, z - $), x, D, 0);
1636
- J.row = void 0, J.label = Y.category, m.push(J);
1626
+ }, J = Le(e, G, r, $, Math.max(1, z - $), x, D, 0);
1627
+ J.row = void 0, J.label = G.category, m.push(J);
1637
1628
  }
1638
1629
  return { items: m, bucketCount: m.length, visibleRows: k };
1639
1630
  }
@@ -1741,17 +1732,17 @@ function De(e) {
1741
1732
  function Re(e) {
1742
1733
  return e.props.orientation === "horizontal" ? e.height : e.width;
1743
1734
  }
1744
- function $t(e) {
1735
+ function Lt(e) {
1745
1736
  const i = e.getDomain();
1746
1737
  return i.every((t) => typeof t == "string") ? i : [];
1747
1738
  }
1748
1739
  function ar(e, i, t) {
1749
- return e instanceof G ? e.visibleIndexRange(-t, i + t) : { startIndex: 0, endIndex: $t(e).length - 1 };
1740
+ return e instanceof H ? e.visibleIndexRange(-t, i + t) : { startIndex: 0, endIndex: Lt(e).length - 1 };
1750
1741
  }
1751
1742
  function we(e, i) {
1752
1743
  return e.toPx(i);
1753
1744
  }
1754
- function Je(e) {
1745
+ function Qe(e) {
1755
1746
  return Number.isFinite(e.x) && Number.isFinite(e.y) && e.width > 0 && e.height > 0;
1756
1747
  }
1757
1748
  function sr(e) {
@@ -1760,7 +1751,7 @@ function sr(e) {
1760
1751
  function xe() {
1761
1752
  return typeof performance < "u" ? performance.now() : Date.now();
1762
1753
  }
1763
- function Lt(e, i, t = !0) {
1754
+ function Vt(e, i, t = !0) {
1764
1755
  if (e.length <= i)
1765
1756
  return [...e];
1766
1757
  if (!t) {
@@ -1805,7 +1796,7 @@ function Lt(e, i, t = !0) {
1805
1796
  }
1806
1797
  return r;
1807
1798
  }
1808
- const qe = {
1799
+ const We = {
1809
1800
  enabled: !0,
1810
1801
  overscanPx: 64,
1811
1802
  maxRenderedPoints: 5e4
@@ -1841,7 +1832,7 @@ function or(e, i = e.dataStore.getData()) {
1841
1832
  }
1842
1833
  function cn(e) {
1843
1834
  const i = e.dataStore.getData();
1844
- if (e.xScale instanceof G) {
1835
+ if (e.xScale instanceof H) {
1845
1836
  const t = /* @__PURE__ */ new Set(), r = [];
1846
1837
  return i.forEach((n, a) => {
1847
1838
  const o = String(e.dataStore.readField(n, a, e.xField) ?? "");
@@ -1946,7 +1937,7 @@ function fn(e, i) {
1946
1937
  return t.filter((n) => Number.isFinite(n.x1) && Number.isFinite(n.y1) && Number.isFinite(n.x2) && Number.isFinite(n.y2));
1947
1938
  }
1948
1939
  function lr(e, i) {
1949
- return e instanceof G ? e.center(String(i)) : Number(e.toPx(i));
1940
+ return e instanceof H ? e.center(String(i)) : Number(e.toPx(i));
1950
1941
  }
1951
1942
  function mn(e) {
1952
1943
  let i = Number.POSITIVE_INFINITY, t = Number.NEGATIVE_INFINITY;
@@ -1956,13 +1947,13 @@ function mn(e) {
1956
1947
  }
1957
1948
  function cr(e, i, t) {
1958
1949
  const r = e.dataStore.readField(i, t, e.xField);
1959
- return e.xScale instanceof G ? String(r ?? "") : Number(r);
1950
+ return e.xScale instanceof H ? String(r ?? "") : Number(r);
1960
1951
  }
1961
1952
  function dr(e, i) {
1962
1953
  return lr(e, i);
1963
1954
  }
1964
1955
  function ur(e, i, t) {
1965
- if (e instanceof G) {
1956
+ if (e instanceof H) {
1966
1957
  const n = e.indexOf(String(i));
1967
1958
  return n >= 0 ? n : t;
1968
1959
  }
@@ -2006,7 +1997,7 @@ function gr(e, i, t, r) {
2006
1997
  }
2007
1998
  return e.filter((o) => a.has(o));
2008
1999
  }
2009
- return Lt(e, i, r);
2000
+ return Vt(e, i, r);
2010
2001
  }
2011
2002
  function yr(e, i) {
2012
2003
  if (e.length <= i)
@@ -2037,12 +2028,12 @@ function vr(e, i) {
2037
2028
  return e.seriesKey !== i.seriesKey ? e.seriesKey.localeCompare(i.seriesKey) : e.segmentGroup !== i.segmentGroup ? e.segmentGroup - i.segmentGroup : e.order - i.order || e.rowIndex - i.rowIndex;
2038
2029
  }
2039
2030
  function Sr(e, i) {
2040
- if (!e.virtualization.enabled || e.xScale instanceof G || e.seriesField || e.labelField || e.defined || e.colorField || typeof e.xField == "function" || typeof e.yField == "function")
2031
+ if (!e.virtualization.enabled || e.xScale instanceof H || e.seriesField || e.labelField || e.defined || e.colorField || typeof e.xField == "function" || typeof e.yField == "function")
2041
2032
  return null;
2042
2033
  const t = e.dataStore.numericColumn(e.xField);
2043
2034
  if (!t.ordered)
2044
2035
  return null;
2045
- const r = e.dataStore.numericColumn(e.yField), n = r.values, a = e.dataStore.getData(), o = e.xScale.getDomain(), s = Math.abs(o[1] - o[0]) * e.virtualization.overscanPx / Math.max(1, e.width), c = Math.max(0, xt(t.values, o[0] - s) - 1), d = Math.min(a.length, xt(t.values, o[1] + s) + 1), f = Math.max(4, e.virtualization.maxRenderedPoints), g = Math.max(1, Math.ceil((d - c) / Math.max(1, Math.floor(f / 4)))), y = [];
2036
+ const r = e.dataStore.numericColumn(e.yField), n = r.values, a = e.dataStore.getData(), o = e.xScale.getDomain(), s = Math.abs(o[1] - o[0]) * e.virtualization.overscanPx / Math.max(1, e.width), c = Math.max(0, pt(t.values, o[0] - s) - 1), d = Math.min(a.length, pt(t.values, o[1] + s) + 1), f = Math.max(4, e.virtualization.maxRenderedPoints), g = Math.max(1, Math.ceil((d - c) / Math.max(1, Math.floor(f / 4)))), y = [];
2046
2037
  let S = 0, k = 0, x = -1, m = -1, N = -1, E = -1;
2047
2038
  const q = (D) => {
2048
2039
  const U = a[D], A = t.values[D], $ = n[D];
@@ -2068,7 +2059,7 @@ function Sr(e, i) {
2068
2059
  }
2069
2060
  return { points: y, visibleCount: k, skippedCount: r.invalidCount };
2070
2061
  }
2071
- function xt(e, i) {
2062
+ function pt(e, i) {
2072
2063
  let t = 0, r = e.length;
2073
2064
  for (; t < r; ) {
2074
2065
  const n = t + r >>> 1;
@@ -2083,13 +2074,13 @@ function _r(e, i, t) {
2083
2074
  const c = (n.y - a.y) / Math.max(1, n.x - a.x), d = (o.y - r.y) / Math.max(1, o.x - r.x), f = (2 * t ** 3 - 3 * t ** 2 + 1) * r.y + (t ** 3 - 2 * t ** 2 + t) * s * c + (-2 * t ** 3 + 3 * t ** 2) * n.y + (t ** 3 - t ** 2) * s * d;
2084
2075
  return Math.max(Math.min(r.y, n.y), Math.min(Math.max(r.y, n.y), f));
2085
2076
  }
2086
- const We = {
2077
+ const He = {
2087
2078
  enabled: !0,
2088
2079
  overscanPx: 64,
2089
2080
  maxRenderedPoints: 5e4
2090
2081
  };
2091
2082
  function gn(e) {
2092
- const i = pe(), t = pe(), r = e.dataStore.getData(), n = Vt(e, r), a = pe() - t, o = pe(), s = typeof e.props.colors.stroke == "function" ? null : Sr({ ...e, ...e.props, virtualization: { ...e.props.virtualization, sampling: "stride" }, palette: e.props.colors.palette, defaultColor: e.props.stroke, colorField: e.props.colors.colorField }, e.props.colors.stroke ?? n[0].color), c = (s == null ? void 0 : s.points) ?? xr(e, r), d = e.props.virtualization.enabled ? c.filter((x) => x.visible) : c, g = (s || !e.props.virtualization.enabled ? c : Dr(d, e.props.virtualization.maxRenderedPoints)).filter(Tr), y = pr(e, g), S = pe() - o, k = {
2083
+ const i = pe(), t = pe(), r = e.dataStore.getData(), n = Ot(e, r), a = pe() - t, o = pe(), s = typeof e.props.colors.stroke == "function" ? null : Sr({ ...e, ...e.props, virtualization: { ...e.props.virtualization, sampling: "stride" }, palette: e.props.colors.palette, defaultColor: e.props.stroke, colorField: e.props.colors.colorField }, e.props.colors.stroke ?? n[0].color), c = (s == null ? void 0 : s.points) ?? xr(e, r), d = e.props.virtualization.enabled ? c.filter((x) => x.visible) : c, g = (s || !e.props.virtualization.enabled ? c : Dr(d, e.props.virtualization.maxRenderedPoints)).filter(Tr), y = pr(e, g), S = pe() - o, k = {
2093
2084
  kind: "line",
2094
2085
  inputRows: r.length,
2095
2086
  visibleRows: (s == null ? void 0 : s.visibleCount) ?? d.length,
@@ -2112,7 +2103,7 @@ function gn(e) {
2112
2103
  }
2113
2104
  function yn(e) {
2114
2105
  const i = e.dataStore.getData();
2115
- if (e.xScale instanceof G) {
2106
+ if (e.xScale instanceof H) {
2116
2107
  const t = /* @__PURE__ */ new Set(), r = [];
2117
2108
  return i.forEach((n, a) => {
2118
2109
  const o = String(e.dataStore.readField(n, a, e.props.xField) ?? "");
@@ -2125,7 +2116,7 @@ function bn(e) {
2125
2116
  return [...e.dataStore.numericExtent(e.props.yField)];
2126
2117
  }
2127
2118
  function xr(e, i) {
2128
- const t = [], r = wr(Vt(e, i)), n = /* @__PURE__ */ new Map();
2119
+ const t = [], r = wr(Ot(e, i)), n = /* @__PURE__ */ new Map();
2129
2120
  return i.forEach((a, o) => {
2130
2121
  const s = e.dataStore.readField(a, o, e.props.yField), c = s == null ? NaN : Number(s), d = kr(e, a, o), f = e.props.seriesField ? e.dataStore.readField(a, o, e.props.seriesField) : void 0, g = f == null ? "__default" : String(f), y = e.props.labelField ? e.dataStore.readField(a, o, e.props.labelField) : void 0, S = y == null ? g : String(y), k = {
2131
2122
  row: a,
@@ -2169,7 +2160,7 @@ function pr(e, i) {
2169
2160
  if (e.props.seriesField || e.props.curve === "smooth") {
2170
2161
  const n = /* @__PURE__ */ new Map();
2171
2162
  for (const a of i) {
2172
- const o = `${a.seriesKey}:${Ge(a)}`, s = n.get(o) ?? [];
2163
+ const o = `${a.seriesKey}:${Ye(a)}`, s = n.get(o) ?? [];
2173
2164
  s.push(a), n.set(o, s);
2174
2165
  }
2175
2166
  r = n.values();
@@ -2180,7 +2171,7 @@ function pr(e, i) {
2180
2171
  const a = n[0].seriesKey;
2181
2172
  for (let o = 1; o < n.length; o += 1) {
2182
2173
  const s = n[o - 1], c = n[o];
2183
- if (!(!s || !c) && Ge(s) === Ge(c)) {
2174
+ if (!(!s || !c) && Ye(s) === Ye(c)) {
2184
2175
  if (e.props.curve === "smooth") {
2185
2176
  let d = s.x, f = s.y;
2186
2177
  for (let g = 1; g <= 5; g++) {
@@ -2224,7 +2215,7 @@ function pr(e, i) {
2224
2215
  }
2225
2216
  return t.filter(Er);
2226
2217
  }
2227
- function Vt(e, i) {
2218
+ function Ot(e, i) {
2228
2219
  if (!e.props.seriesField)
2229
2220
  return [{ id: "__default", kind: "line", scaleIds: { x: e.props.xScaleId, y: e.props.yScaleId }, label: "Line", color: e.props.colors.palette[0] ?? e.props.stroke, visible: !0 }];
2230
2221
  const t = /* @__PURE__ */ new Set(), r = [];
@@ -2258,13 +2249,13 @@ function wr(e) {
2258
2249
  }
2259
2250
  function kr(e, i, t) {
2260
2251
  const r = e.dataStore.readField(i, t, e.props.xField);
2261
- return e.xScale instanceof G ? String(r ?? "") : Number(r);
2252
+ return e.xScale instanceof H ? String(r ?? "") : Number(r);
2262
2253
  }
2263
2254
  function Cr(e, i) {
2264
- return e instanceof G ? e.center(String(i)) : Number(e.toPx(i));
2255
+ return e instanceof H ? e.center(String(i)) : Number(e.toPx(i));
2265
2256
  }
2266
2257
  function Ir(e, i, t) {
2267
- if (e instanceof G) {
2258
+ if (e instanceof H) {
2268
2259
  const n = e.indexOf(String(i));
2269
2260
  return n >= 0 ? n : t;
2270
2261
  }
@@ -2287,7 +2278,7 @@ function Fr(e, i, t) {
2287
2278
  }
2288
2279
  return (t == null ? void 0 : t.color) ?? e.props.stroke;
2289
2280
  }
2290
- function Ge(e) {
2281
+ function Ye(e) {
2291
2282
  return e.segmentGroup ?? 0;
2292
2283
  }
2293
2284
  function Nr(e, i, t) {
@@ -2295,7 +2286,7 @@ function Nr(e, i, t) {
2295
2286
  return i >= -r && i <= e.width + r && t >= -r && t <= e.height + r;
2296
2287
  }
2297
2288
  function Dr(e, i) {
2298
- return e.length <= i ? e : Lt(e, i);
2289
+ return e.length <= i ? e : Vt(e, i);
2299
2290
  }
2300
2291
  function Rr(e, i, t) {
2301
2292
  return e.props.virtualization.enabled ? t < i ? "sampled" : i < e.dataStore.rowCount ? "windowed" : "direct" : "direct";
@@ -2310,7 +2301,7 @@ function pe() {
2310
2301
  return typeof performance < "u" ? performance.now() : Date.now();
2311
2302
  }
2312
2303
  const Pr = {
2313
- ...Jt,
2304
+ ...Qt,
2314
2305
  styleSheet: { type: "string" },
2315
2306
  visualPreset: { type: "string" },
2316
2307
  plugins: { type: "array" },
@@ -2319,9 +2310,9 @@ const Pr = {
2319
2310
  parts: { type: "record" },
2320
2311
  renderers: { type: "record" }
2321
2312
  }, zr = {
2322
- ...dt,
2313
+ ...ut,
2323
2314
  render: [
2324
- ...dt.render ?? [],
2315
+ ...ut.render ?? [],
2325
2316
  "styleSheet",
2326
2317
  "visualPreset",
2327
2318
  "plugins",
@@ -2335,7 +2326,7 @@ function Te(e, i) {
2335
2326
  const { motion: t, style: r, ...n } = e;
2336
2327
  return ke(n, i);
2337
2328
  }
2338
- function Ze(e = {}) {
2329
+ function Je(e = {}) {
2339
2330
  return {
2340
2331
  ...ke(e, {
2341
2332
  width: 720,
@@ -2421,7 +2412,7 @@ function xn(e = {}) {
2421
2412
  };
2422
2413
  }
2423
2414
  function pn(e) {
2424
- var n, a, o, s, c, d, f, g, y, S, k, x, m, N, E, q, L, D, U, A, $, z, Y, J, se, ve, ie, O, Z, X, j;
2415
+ var n, a, o, s, c, d, f, g, y, S, k, x, m, N, E, q, L, D, U, A, $, z, G, J, se, ve, ie, O, Z, X, j;
2425
2416
  const i = e.orientation ?? "vertical", t = e.categoryField ?? e.xField, r = e.valueField ?? e.yField;
2426
2417
  if (!t)
2427
2418
  throw new Error("[NovaCharts] BarSeries requires categoryField or xField");
@@ -2467,7 +2458,7 @@ function pn(e) {
2467
2458
  labels: {
2468
2459
  visible: (($ = e.labels) == null ? void 0 : $.visible) ?? !1,
2469
2460
  position: ((z = e.labels) == null ? void 0 : z.position) ?? "outside",
2470
- color: ((Y = e.labels) == null ? void 0 : Y.color) ?? "#0f172a",
2461
+ color: ((G = e.labels) == null ? void 0 : G.color) ?? "#0f172a",
2471
2462
  fontSize: Math.max(8, R((J = e.labels) == null ? void 0 : J.fontSize, 11)),
2472
2463
  fontWeight: ((se = e.labels) == null ? void 0 : se.fontWeight) ?? "700",
2473
2464
  formatter: (ve = e.labels) == null ? void 0 : ve.formatter
@@ -2540,11 +2531,11 @@ function wn(e) {
2540
2531
  connectNulls: e.connectNulls ?? !1,
2541
2532
  hitRadiusPx: Math.max(0, R(e.hitRadiusPx, 12)),
2542
2533
  virtualization: {
2543
- enabled: ((g = e.virtualization) == null ? void 0 : g.enabled) ?? We.enabled,
2544
- overscanPx: R((y = e.virtualization) == null ? void 0 : y.overscanPx, We.overscanPx),
2534
+ enabled: ((g = e.virtualization) == null ? void 0 : g.enabled) ?? He.enabled,
2535
+ overscanPx: R((y = e.virtualization) == null ? void 0 : y.overscanPx, He.overscanPx),
2545
2536
  maxRenderedPoints: Math.max(2, Math.trunc(R(
2546
2537
  (S = e.virtualization) == null ? void 0 : S.maxRenderedPoints,
2547
- We.maxRenderedPoints
2538
+ He.maxRenderedPoints
2548
2539
  )))
2549
2540
  },
2550
2541
  style: e.style,
@@ -2598,7 +2589,7 @@ function kn(e) {
2598
2589
  radiusDelta: R((g = e.highlight) == null ? void 0 : g.radiusDelta, 0)
2599
2590
  },
2600
2591
  hitRadiusPx: Math.max(0, R(e.hitRadiusPx, 12)),
2601
- virtualization: Qe(e.virtualization),
2592
+ virtualization: et(e.virtualization),
2602
2593
  style: e.style,
2603
2594
  states: e.states ? { ...e.states } : void 0,
2604
2595
  parts: e.parts ? { ...e.parts } : void 0,
@@ -2657,7 +2648,7 @@ function Cn(e) {
2657
2648
  defined: e.defined,
2658
2649
  connectNulls: e.connectNulls ?? !1,
2659
2650
  hitRadiusPx: Math.max(0, R(e.hitRadiusPx, 12)),
2660
- virtualization: Qe(e.virtualization),
2651
+ virtualization: et(e.virtualization),
2661
2652
  style: e.style,
2662
2653
  states: e.states ? { ...e.states } : void 0,
2663
2654
  parts: e.parts ? { ...e.parts } : void 0,
@@ -2713,7 +2704,7 @@ function In(e) {
2713
2704
  radiusDelta: R((k = e.highlight) == null ? void 0 : k.radiusDelta, 0)
2714
2705
  },
2715
2706
  hitRadiusPx: Math.max(0, R(e.hitRadiusPx, 8)),
2716
- virtualization: Qe(e.virtualization),
2707
+ virtualization: et(e.virtualization),
2717
2708
  style: e.style,
2718
2709
  states: e.states ? { ...e.states } : void 0,
2719
2710
  parts: e.parts ? { ...e.parts } : void 0,
@@ -2721,13 +2712,13 @@ function In(e) {
2721
2712
  motion: e.motion
2722
2713
  };
2723
2714
  }
2724
- function Qe(e) {
2715
+ function et(e) {
2725
2716
  return {
2726
- enabled: (e == null ? void 0 : e.enabled) ?? qe.enabled,
2727
- overscanPx: R(e == null ? void 0 : e.overscanPx, qe.overscanPx),
2717
+ enabled: (e == null ? void 0 : e.enabled) ?? We.enabled,
2718
+ overscanPx: R(e == null ? void 0 : e.overscanPx, We.overscanPx),
2728
2719
  maxRenderedPoints: Math.max(2, Math.trunc(R(
2729
2720
  e == null ? void 0 : e.maxRenderedPoints,
2730
- qe.maxRenderedPoints
2721
+ We.maxRenderedPoints
2731
2722
  ))),
2732
2723
  sampling: (e == null ? void 0 : e.sampling) === "lttb" ? "lttb" : "stride"
2733
2724
  };
@@ -2759,12 +2750,12 @@ function Lr(e) {
2759
2750
  keyField: { type: "field" },
2760
2751
  refScope: { type: "record" }
2761
2752
  },
2762
- normalize: (t) => Ze(t.props),
2763
- measureBounds: (t, r) => Qt(r, Ze)
2753
+ normalize: (t) => Je(t.props),
2754
+ measureBounds: (t, r) => ei(r, Je)
2764
2755
  };
2765
2756
  }
2766
2757
  const Vr = Lr();
2767
- class Or extends ei {
2758
+ class Or extends ti {
2768
2759
  /**
2769
2760
  * Создает экземпляр ChartRoot и подготавливает базовое состояние.
2770
2761
  */
@@ -2926,14 +2917,14 @@ class Or extends ei {
2926
2917
  * Выполняет отрисовку ChartRoot.
2927
2918
  */
2928
2919
  render() {
2929
- const t = ti(this.props, this.width, this.height);
2920
+ const t = ii(this.props, this.width, this.height);
2930
2921
  t.length > 0 && this.renderer.schema(t), this.props.clip && this.renderer.clip(0, 0, this.width, this.height), this._syncRootSemantics();
2931
2922
  }
2932
2923
  /**
2933
2924
  * Обновляет значение состояния ChartRoot.
2934
2925
  */
2935
2926
  setChildren(t) {
2936
- const r = Yt(this, this._managedChildren, t, this.props.refScope);
2927
+ const r = Xt(this, this._managedChildren, t, this.props.refScope);
2937
2928
  this._managedChildren.length = 0, this._managedChildren.push(...r.nodes), this._applyChildrenRect(), this._refresh("children");
2938
2929
  }
2939
2930
  /**
@@ -3025,8 +3016,8 @@ class Or extends ei {
3025
3016
  * Публикует вклад series в source domain общей шкалы.
3026
3017
  */
3027
3018
  _setScaleDomainContribution(t) {
3028
- const r = pt(t), n = this._scaleDomainContributions.get(r.id);
3029
- n && n.scaleId === r.scaleId && wt(n.domain) === wt(r.domain) || (this._scaleDomainContributions.set(r.id, r), this._refreshScale(r.scaleId));
3019
+ const r = wt(t), n = this._scaleDomainContributions.get(r.id);
3020
+ n && n.scaleId === r.scaleId && kt(n.domain) === kt(r.domain) || (this._scaleDomainContributions.set(r.id, r), this._refreshScale(r.scaleId));
3030
3021
  }
3031
3022
  /**
3032
3023
  * Удаляет вклад series из source domain шкалы.
@@ -3039,7 +3030,7 @@ class Or extends ei {
3039
3030
  * Возвращает contributions для scale-first mixed charts.
3040
3031
  */
3041
3032
  _getScaleDomainContributions(t) {
3042
- return Array.from(this._scaleDomainContributions.values()).filter((r) => t === void 0 || r.scaleId === t).map(pt);
3033
+ return Array.from(this._scaleDomainContributions.values()).filter((r) => t === void 0 || r.scaleId === t).map(wt);
3043
3034
  }
3044
3035
  _exportChart(t = {}) {
3045
3036
  return this.nova.exportImage({
@@ -3281,7 +3272,7 @@ class Or extends ei {
3281
3272
  * Собирает полный source domain шкалы из base domain и contributions.
3282
3273
  */
3283
3274
  _resolveScaleSourceDomain(t) {
3284
- const r = At(t.props, this._dataStore);
3275
+ const r = $t(t.props, this._dataStore);
3285
3276
  if (t.props.domain)
3286
3277
  return [...r];
3287
3278
  const n = this._getScaleDomainContributions(t.id).map((o) => o.domain);
@@ -3290,7 +3281,7 @@ class Or extends ei {
3290
3281
  if (t.props.scaleType === "band")
3291
3282
  return Wr(r, n);
3292
3283
  const a = t.props.field ? [r, ...n] : n;
3293
- return Gr(a, t.props.zero, t.props.nice);
3284
+ return Hr(a, t.props.zero, t.props.nice);
3294
3285
  }
3295
3286
  /**
3296
3287
  * Синхронизирует актуальное состояние ChartRoot.
@@ -3385,7 +3376,7 @@ function qr(e, i) {
3385
3376
  }
3386
3377
  });
3387
3378
  }
3388
- function pt(e) {
3379
+ function wt(e) {
3389
3380
  return {
3390
3381
  ...e,
3391
3382
  domain: [...e.domain]
@@ -3400,7 +3391,7 @@ function Wr(e, i) {
3400
3391
  }
3401
3392
  return r;
3402
3393
  }
3403
- function Gr(e, i, t) {
3394
+ function Hr(e, i, t) {
3404
3395
  let r = Number.POSITIVE_INFINITY, n = Number.NEGATIVE_INFINITY;
3405
3396
  for (const a of e) {
3406
3397
  if (a.length < 2)
@@ -3409,12 +3400,12 @@ function Gr(e, i, t) {
3409
3400
  !Number.isFinite(o) || !Number.isFinite(s) || (r = Math.min(r, o, s), n = Math.max(n, o, s));
3410
3401
  }
3411
3402
  if ((r === Number.POSITIVE_INFINITY || n === Number.NEGATIVE_INFINITY) && (r = 0, n = 1), i && (r = Math.min(0, r), n = Math.max(0, n)), t) {
3412
- const a = Hr(r, n);
3403
+ const a = Yr(r, n);
3413
3404
  r = a[0], n = a[1];
3414
3405
  }
3415
3406
  return r === n && (r -= 1, n += 1), [r, n];
3416
3407
  }
3417
- function Hr(e, i) {
3408
+ function Yr(e, i) {
3418
3409
  if (!Number.isFinite(e) || !Number.isFinite(i))
3419
3410
  return [0, 1];
3420
3411
  const t = Math.abs(i - e);
@@ -3426,10 +3417,10 @@ function Hr(e, i) {
3426
3417
  Math.ceil(i / n) * n
3427
3418
  ];
3428
3419
  }
3429
- function wt(e) {
3420
+ function kt(e) {
3430
3421
  return e.map((i) => String(i)).join("");
3431
3422
  }
3432
- function Ot(e) {
3423
+ function Bt(e) {
3433
3424
  if ((e == null ? void 0 : e.size) !== void 0 && (!Number.isFinite(e.size) || e.size <= 0))
3434
3425
  throw new RangeError("[NovaCharts] Font size must be finite and positive");
3435
3426
  if ((e == null ? void 0 : e.family) !== void 0 && (typeof e.family != "string" || !e.family.trim()))
@@ -3437,7 +3428,7 @@ function Ot(e) {
3437
3428
  if ((e == null ? void 0 : e.weight) !== void 0 && !["normal", "bold", "100", "200", "300", "400", "500", "600", "700", "800", "900"].includes(e.weight))
3438
3429
  throw new TypeError("[NovaCharts] Invalid font weight");
3439
3430
  }
3440
- class Yr {
3431
+ class Gr {
3441
3432
  constructor() {
3442
3433
  C(this, "_listeners", /* @__PURE__ */ new Map());
3443
3434
  C(this, "_queued", /* @__PURE__ */ new Map());
@@ -3506,10 +3497,10 @@ class Yr {
3506
3497
  this._listeners.clear(), this._queued.clear();
3507
3498
  }
3508
3499
  }
3509
- function He(e, i) {
3500
+ function Ge(e, i) {
3510
3501
  const t = e.surface.renderPolicy.cache === "texture", r = t ? e.nova.createSurface(`${e.componentId}:overlay`) : e.surface;
3511
3502
  t && r.options({ zIndex: e.surface.weight + 100 });
3512
- class n extends Xt {
3503
+ class n extends Zt {
3513
3504
  render() {
3514
3505
  e.visible && (t && (this.renderer.setTransform(e.matrix), this.renderer.clip(0, 0, e.width, e.height)), this.renderer.schema(i()));
3515
3506
  }
@@ -3534,8 +3525,8 @@ function He(e, i) {
3534
3525
  }
3535
3526
  function Xr(e, i, t, r) {
3536
3527
  let n, a;
3537
- const o = {}, s = e.root.getNovaChartRuntime(), c = s.dataStore, d = new Yr(), f = /* @__PURE__ */ new Map(), g = [], y = /* @__PURE__ */ new Set(), S = /* @__PURE__ */ new Set(), k = /* @__PURE__ */ new Map(), x = /* @__PURE__ */ new Map();
3538
- let m = { ...t }, N = !1, E = !1, q = 0, L = !1, D = !1, U = 0, A = { type: "ready" }, $ = null, z = null, Y = { item: null, visible: !1 }, J, se, ve = {};
3528
+ const o = {}, s = e.root.getNovaChartRuntime(), c = s.dataStore, d = new Gr(), f = /* @__PURE__ */ new Map(), g = [], y = /* @__PURE__ */ new Set(), S = /* @__PURE__ */ new Set(), k = /* @__PURE__ */ new Map(), x = /* @__PURE__ */ new Map();
3529
+ let m = { ...t }, N = !1, E = !1, q = 0, L = !1, D = !1, U = 0, A = { type: "ready" }, $ = null, z = null, G = { item: null, visible: !1 }, J, se, ve = {};
3539
3530
  const ie = /* @__PURE__ */ new Map(), O = e.canvas, Z = O.ownerDocument, X = O.parentElement, j = Z.createElement("div");
3540
3531
  j.style.cssText = "position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap", j.setAttribute("role", "listbox"), j.setAttribute("aria-multiselectable", "true"), j.tabIndex = 0;
3541
3532
  const Ee = Z.createElement("p"), oe = Z.createElement("div");
@@ -3548,17 +3539,17 @@ function Xr(e, i, t, r) {
3548
3539
  let me;
3549
3540
  const W = Z.createElement("div");
3550
3541
  W.setAttribute("role", "group"), W.setAttribute("aria-label", "Легенда диаграммы"), W.style.cssText = "position:absolute;display:flex;gap:8px;flex-wrap:wrap;z-index:1;max-height:72px;overflow:auto;font:12px Arial", X == null || X.append(W);
3551
- function et() {
3542
+ function tt() {
3552
3543
  var l, u, h;
3553
3544
  for (const v of [Q, W, le])
3554
3545
  v.style.fontFamily = ((l = m.font) == null ? void 0 : l.family) ?? "Arial", v.style.fontSize = `${((u = m.font) == null ? void 0 : u.size) ?? (v === le ? 14 : 12)}px`, v.style.fontWeight = ((h = m.font) == null ? void 0 : h.weight) ?? "normal";
3555
3546
  }
3556
- et();
3557
- let re, ce = 0, ge, tt = new Intl.NumberFormat(m.locale ?? "ru-RU");
3547
+ tt();
3548
+ let re, ce = 0, ge, it = new Intl.NumberFormat(m.locale ?? "ru-RU");
3558
3549
  g.push(e.app.onFrameSubmitted(() => {
3559
3550
  !N && E && (U++, Ce());
3560
3551
  }));
3561
- const it = () => {
3552
+ const rt = () => {
3562
3553
  if (N)
3563
3554
  throw new Error(`[NovaCharts] Instance "${e.root.componentId}" has been destroyed`);
3564
3555
  }, Pe = (l) => typeof r == "function" ? r(l) : l[r], ee = (l, u, h, v = {}) => {
@@ -3583,14 +3574,14 @@ function Xr(e, i, t, r) {
3583
3574
  return { ...u, brush: { ranges: h } };
3584
3575
  }, (l, u, h, v) => {
3585
3576
  i.applyState(l, u), D = !0, d.batch(() => {
3586
- d.has("viewStateChange") && d.emit("viewStateChange", { previous: ht(l), current: ht(u), origin: h.origin ?? "api", requestId: h.requestId });
3577
+ d.has("viewStateChange") && d.emit("viewStateChange", { previous: ft(l), current: ft(u), origin: h.origin ?? "api", requestId: h.requestId });
3587
3578
  for (const [p, T] of Object.entries({ selection: "selectionChange", visibility: "visibilityChange", viewport: "viewportChange", camera: "cameraChange", navigation: "drilldownChange", playback: "playbackChange", detail: "detailChange", graph: "graphChange", brush: "brushChange" })) {
3588
3579
  const _ = p;
3589
- he(l[_], u[_]) || (d.has(T) && d.emit(T, { previous: Ke(_, l[_]), current: Ke(_, u[_]), origin: h.origin ?? "api", requestId: h.requestId }), Se(p, v));
3580
+ he(l[_], u[_]) || (d.has(T) && d.emit(T, { previous: Ue(_, l[_]), current: Ue(_, u[_]), origin: h.origin ?? "api", requestId: h.requestId }), Se(p, v));
3590
3581
  }
3591
3582
  te();
3592
3583
  });
3593
- }), rt = {
3584
+ }), nt = {
3594
3585
  root: e.root,
3595
3586
  store: c,
3596
3587
  readState: () => P.peek(),
@@ -3613,19 +3604,19 @@ function Xr(e, i, t, r) {
3613
3604
  const { scaleId: h, span: v } = u.viewport.followTail, p = s.getScaleSourceDomain(h);
3614
3605
  p && typeof p[1] == "number" && P.request("viewport", { ...u.viewport, ranges: { ...u.viewport.ranges, [h]: [p[1] - v, p[1]] } });
3615
3606
  }
3616
- $ && !i.getItem($) && n.clearHover(), z && !i.getItem(z) && n.focus(null), Y.item && !i.getItem(Y.item) && n.hideTooltip();
3607
+ $ && !i.getItem($) && n.clearHover(), z && !i.getItem(z) && n.focus(null), G.item && !i.getItem(G.item) && n.hideTooltip();
3617
3608
  for (const [h, v] of ie) {
3618
3609
  const p = v.filter((T) => i.getItem(T));
3619
3610
  p.length !== v.length && n.highlight(h, p);
3620
3611
  }
3621
- s.refresh("data.change"), jt(), D = !0;
3612
+ s.refresh("data.change"), Kt(), D = !0;
3622
3613
  }
3623
- D && (D = !1, Ce(), Oe(), st(), se == null || se.invalidate());
3614
+ D && (D = !1, Ce(), Oe(), ot(), se == null || se.invalidate());
3624
3615
  }
3625
3616
  }
3626
3617
  function Ce(l = !1) {
3627
3618
  var M, F, B;
3628
- if (at(), j.hidden = m.accessibility === !1, m.accessibility === !1 && !l) {
3619
+ if (st(), j.hidden = m.accessibility === !1, m.accessibility === !1 && !l) {
3629
3620
  if (ue.size || j.childNodes.length !== 2 || j.lastChild !== oe) {
3630
3621
  for (const K of ue)
3631
3622
  e.app.semantics.remove(K);
@@ -3642,10 +3633,10 @@ function Xr(e, i, t, r) {
3642
3633
  oe.textContent = (h == null ? void 0 : h.label) ?? "Выберите элемент стрелками", oe.setAttribute("aria-selected", String(!!(z && P.peek().selection.some((K) => V(K) === V(z)))));
3643
3634
  const v = P.peek(), p = Math.max(1, Math.floor(((B = m.accessibility || void 0) == null ? void 0 : B.maxItems) ?? 80)), T = i.getVisibleItems(), _ = z ? T.findIndex((K) => V(K.ref) === V(z)) : -1, w = Math.max(0, Math.min(T.length - p, _ - Math.floor(p / 2))), I = /* @__PURE__ */ new Set(), b = Z.createDocumentFragment();
3644
3635
  for (let K = w; K < Math.min(T.length, w + p); K++) {
3645
- const H = T[K], ye = `${n.id}:semantic:${encodeURIComponent(V(H.ref))}`, Me = v.selection.some(($e) => V($e) === V(H.ref));
3646
- I.add(ye), e.app.semantics.register({ id: ye, role: "mark", label: Ie(H), bounds: H.bounds, scope: n.id, order: K + 1, focusable: !0, state: { selected: Me, focused: z !== null && V(z) === V(H.ref) }, source: { type: "synthetic", componentId: n.id, part: "public-item" }, data: { ref: H.ref, value: H.value } });
3636
+ const Y = T[K], ye = `${n.id}:semantic:${encodeURIComponent(V(Y.ref))}`, Me = v.selection.some(($e) => V($e) === V(Y.ref));
3637
+ I.add(ye), e.app.semantics.register({ id: ye, role: "mark", label: Ie(Y), bounds: Y.bounds, scope: n.id, order: K + 1, focusable: !0, state: { selected: Me, focused: z !== null && V(z) === V(Y.ref) }, source: { type: "synthetic", componentId: n.id, part: "public-item" }, data: { ref: Y.ref, value: Y.value } });
3647
3638
  const ne = Z.createElement("div");
3648
- ne.id = ye, ne.setAttribute("role", "option"), ne.setAttribute("aria-selected", String(Me)), ne.setAttribute("aria-posinset", String(K + 1)), ne.setAttribute("aria-setsize", String(T.length)), ne.textContent = Ie(H), z && V(z) === V(H.ref) && j.setAttribute("aria-activedescendant", ye), b.append(ne);
3639
+ ne.id = ye, ne.setAttribute("role", "option"), ne.setAttribute("aria-selected", String(Me)), ne.setAttribute("aria-posinset", String(K + 1)), ne.setAttribute("aria-setsize", String(T.length)), ne.textContent = Ie(Y), z && V(z) === V(Y.ref) && j.setAttribute("aria-activedescendant", ye), b.append(ne);
3649
3640
  }
3650
3641
  for (const K of ue)
3651
3642
  I.has(K) || e.app.semantics.remove(K);
@@ -3654,7 +3645,7 @@ function Xr(e, i, t, r) {
3654
3645
  ue.add(K);
3655
3646
  j.replaceChildren(Ee, b), (!z || !I.has(`${n.id}:semantic:${encodeURIComponent(V(z))}`)) && j.removeAttribute("aria-activedescendant"), me = { options: m, key: u };
3656
3647
  }
3657
- function jt() {
3648
+ function Kt() {
3658
3649
  var u;
3659
3650
  if (!E || !m.motion || m.motion.respectReducedMotion !== !1 && ((u = globalThis.matchMedia) != null && u.call(globalThis, "(prefers-reduced-motion: reduce)").matches))
3660
3651
  return;
@@ -3667,7 +3658,7 @@ function Xr(e, i, t, r) {
3667
3658
  var u, h;
3668
3659
  return ((h = (u = m.formatters) == null ? void 0 : u.label) == null ? void 0 : h.call(u, l)) ?? l.label;
3669
3660
  }
3670
- function Kt() {
3661
+ function Ut() {
3671
3662
  var u;
3672
3663
  if (i.getLegendItems)
3673
3664
  return i.getLegendItems();
@@ -3677,16 +3668,16 @@ function Xr(e, i, t, r) {
3677
3668
  return { id: V(v), label: p ? Ie(p) : String(Pe(h)), visible: P.peek().visibility[V(v)] !== !1 };
3678
3669
  }) : [];
3679
3670
  }
3680
- function nt() {
3671
+ function at() {
3681
3672
  const l = P.peek().visibility;
3682
- return (!ge || ge.dataRevision !== c.revision || ge.options !== m || !he(ge.visibility, l)) && (ge = { dataRevision: c.revision, options: m, visibility: l, items: Kt() }), ge.items;
3673
+ return (!ge || ge.dataRevision !== c.revision || ge.options !== m || !he(ge.visibility, l)) && (ge = { dataRevision: c.revision, options: m, visibility: l, items: Ut() }), ge.items;
3683
3674
  }
3684
- function at() {
3675
+ function st() {
3685
3676
  var b;
3686
3677
  const l = m.legend === !1 || !m.legend;
3687
3678
  if ((W.hidden !== l || !W.style.display) && (W.hidden = l, W.style.display = l ? "none" : "flex"), W.hidden)
3688
3679
  return;
3689
- const u = nt(), h = Math.max(1, Math.ceil(u.length / 100));
3680
+ const u = at(), h = Math.max(1, Math.ceil(u.length / 100));
3690
3681
  ce = Math.min(ce, h - 1);
3691
3682
  const v = u.slice(ce * 100, (ce + 1) * 100), p = m.legend && m.legend.position || "bottom", T = p === "left" || p === "right", _ = T ? Math.min(180, e.root.width / 3) : Math.max(1, e.root.width - 16), w = Be({ x: p === "right" ? e.root.width - _ - 8 : 8, y: p === "bottom" ? Math.max(0, e.root.height - 72) : 8 });
3692
3683
  if (re && re.items === u && re.page === ce && re.options === m && re.x === w[0] && re.y === w[1] && re.width === e.root.width && re.height === e.root.height)
@@ -3703,7 +3694,7 @@ function Xr(e, i, t, r) {
3703
3694
  for (const [M, F] of [["Назад", -1], ["Далее", 1]]) {
3704
3695
  const B = Z.createElement("button");
3705
3696
  B.type = "button", B.textContent = M, B.setAttribute("aria-label", `${M}: страницы легенды`), B.disabled = ce + F < 0 || ce + F >= h, B.onclick = () => {
3706
- ce += F, at();
3697
+ ce += F, st();
3707
3698
  }, I.append(B);
3708
3699
  }
3709
3700
  W.replaceChildren(I);
@@ -3743,10 +3734,10 @@ function Xr(e, i, t, r) {
3743
3734
  for (const _ of [l.width, l.height])
3744
3735
  if (_ !== void 0 && (!Number.isFinite(_) || _ <= 0))
3745
3736
  throw new RangeError("[NovaCharts] Dimensions must be finite and positive");
3746
- const h = n.getOptions(), v = Bt(m, l);
3747
- Ot(v.font);
3737
+ const h = n.getOptions(), v = jt(m, l);
3738
+ Bt(v.font);
3748
3739
  const p = /* @__PURE__ */ new Set(["id", "data", "tooltip", "legend", "motion", "interaction", "accessibility", "title", "description", "events", "plugins"]), T = Object.keys(l).some((_) => !p.has(_));
3749
- if (T && i.configure(v), m = v, et(), tt = new Intl.NumberFormat(m.locale ?? "ru-RU"), Object.hasOwn(l, "events") && ot(), m.motion === !1 && (e.app.motion.cancel(e.root), e.root.options({ opacity: 1 })), m.tooltip === !1 && n.hideTooltip(), Object.hasOwn(l, "plugins")) {
3740
+ if (T && i.configure(v), m = v, tt(), it = new Intl.NumberFormat(m.locale ?? "ru-RU"), Object.hasOwn(l, "events") && lt(), m.motion === !1 && (e.app.motion.cancel(e.root), e.root.options({ opacity: 1 })), m.tooltip === !1 && n.hideTooltip(), Object.hasOwn(l, "plugins")) {
3750
3741
  const _ = new Map((v.plugins ?? []).map((w) => [w.id, w]));
3751
3742
  for (const [w, I] of [...x])
3752
3743
  _.get(w) !== I.plugin && I.dispose();
@@ -3756,7 +3747,7 @@ function Xr(e, i, t, r) {
3756
3747
  l.data !== void 0 && n.setData(l.data, u), T && e.root.setProps({ background: m.background ?? (m.theme === "dark" ? "#141d28" : "#ffffff"), styleSheet: m.styleSheet }), (l.width !== void 0 || l.height !== void 0) && (e.resize({ width: l.width, height: l.height }), i.resize()), ee("optionsChange", h, n.getOptions(), u), L || (L = T), D = !0, te();
3757
3748
  },
3758
3749
  batch(l) {
3759
- return it(), q++, d.batch(() => {
3750
+ return rt(), q++, d.batch(() => {
3760
3751
  try {
3761
3752
  return e.root.runtime.batch(() => l(n));
3762
3753
  } finally {
@@ -3781,7 +3772,7 @@ function Xr(e, i, t, r) {
3781
3772
  destroy() {
3782
3773
  if (!N)
3783
3774
  try {
3784
- lt();
3775
+ ct();
3785
3776
  } finally {
3786
3777
  e.destroy();
3787
3778
  }
@@ -3824,7 +3815,7 @@ function Xr(e, i, t, r) {
3824
3815
  clearSelection: (l) => {
3825
3816
  P.request("selection", [], l == null ? void 0 : l.origin);
3826
3817
  },
3827
- getLegendItems: () => nt().map((l) => ({ ...l })),
3818
+ getLegendItems: () => at().map((l) => ({ ...l })),
3828
3819
  getVisibility: () => ({ ...P.peek().visibility }),
3829
3820
  setVisibility: (l, u) => {
3830
3821
  if (Object.entries(l).some(([h, v]) => !h.trim() || typeof v != "boolean"))
@@ -3859,16 +3850,16 @@ function Xr(e, i, t, r) {
3859
3850
  },
3860
3851
  showTooltip(l, u, h) {
3861
3852
  var w, I;
3862
- const v = i.getItem(_e([l])[0]), p = Y;
3863
- Y = { item: { ...l }, visible: !0 }, Q.textContent = m.tooltip && m.tooltip.format ? m.tooltip.format(v) : `${Ie(v)}${v.value === void 0 ? "" : `: ${((I = (w = m.formatters) == null ? void 0 : w.value) == null ? void 0 : I.call(w, v.value, v)) ?? tt.format(v.value)}`}`;
3853
+ const v = i.getItem(_e([l])[0]), p = G;
3854
+ G = { item: { ...l }, visible: !0 }, Q.textContent = m.tooltip && m.tooltip.format ? m.tooltip.format(v) : `${Ie(v)}${v.value === void 0 ? "" : `: ${((I = (w = m.formatters) == null ? void 0 : w.value) == null ? void 0 : I.call(w, v.value, v)) ?? it.format(v.value)}`}`;
3864
3855
  const T = u ?? v.point ?? { x: 0, y: 0 }, _ = Be(T);
3865
- Q.style.left = `${_[0] + 12}px`, Q.style.top = `${_[1] + 12}px`, Q.style.display = "block", j.setAttribute("aria-describedby", Q.id), ee("tooltipChange", { ...p, item: p.item ? { ...p.item } : null }, { ...Y, item: { ...l } }, h);
3856
+ Q.style.left = `${_[0] + 12}px`, Q.style.top = `${_[1] + 12}px`, Q.style.display = "block", j.setAttribute("aria-describedby", Q.id), ee("tooltipChange", { ...p, item: p.item ? { ...p.item } : null }, { ...G, item: { ...l } }, h);
3866
3857
  },
3867
3858
  hideTooltip(l) {
3868
- if (!Y.visible)
3859
+ if (!G.visible)
3869
3860
  return;
3870
- const u = Y;
3871
- Y = { item: null, visible: !1 }, Q.style.display = "none", j.removeAttribute("aria-describedby"), ee("tooltipChange", { ...u, item: u.item ? { ...u.item } : null }, { ...Y }, l);
3861
+ const u = G;
3862
+ G = { item: null, visible: !1 }, Q.style.display = "none", j.removeAttribute("aria-describedby"), ee("tooltipChange", { ...u, item: u.item ? { ...u.item } : null }, { ...G }, l);
3872
3863
  },
3873
3864
  setTheme: (l) => n.setOptions({ theme: l }),
3874
3865
  setPalette: (l) => n.setOptions({ palette: l }),
@@ -3900,7 +3891,7 @@ function Xr(e, i, t, r) {
3900
3891
  return new Blob([JSON.stringify(T)], { type: "application/json;charset=utf-8" });
3901
3892
  if (!Array.isArray(T))
3902
3893
  throw new TypeError("[NovaCharts] CSV requires tabular data; choose JSON for scene data");
3903
- const _ = l.fields ?? Object.keys(T[0] ?? {}), w = [_.map(kt).join(","), ...T.map((I) => _.map((b) => kt(I[b])).join(","))];
3894
+ const _ = l.fields ?? Object.keys(T[0] ?? {}), w = [_.map(Ct).join(","), ...T.map((I) => _.map((b) => Ct(I[b])).join(","))];
3904
3895
  return new Blob([w.join(`\r
3905
3896
  `)], { type: "text/csv;charset=utf-8" });
3906
3897
  },
@@ -3921,13 +3912,13 @@ function Xr(e, i, t, r) {
3921
3912
  return ((_ = i.plotBounds) == null ? void 0 : _.call(i)) ?? { x: 0, y: 0, width: e.root.width, height: e.root.height };
3922
3913
  },
3923
3914
  overlay(_) {
3924
- const w = He(e.root, _);
3915
+ const w = Ge(e.root, _);
3925
3916
  return u.push(w.dispose), w;
3926
3917
  },
3927
3918
  pointer(_) {
3928
3919
  const w = (M) => {
3929
- const F = M, B = e.app.events.getCanvasMousePosition(F), [K, H] = e.root.toLocal(B.x, B.y);
3930
- _(F, { x: K, y: H });
3920
+ const F = M, B = e.app.events.getCanvasMousePosition(F), [K, Y] = e.root.toLocal(B.x, B.y);
3921
+ _(F, { x: K, y: Y });
3931
3922
  }, I = ["pointerdown", "pointermove", "pointerup", "pointercancel", "pointerleave"];
3932
3923
  for (const M of I)
3933
3924
  O.addEventListener(M, w, { capture: !0, passive: !1 });
@@ -3958,7 +3949,7 @@ function Xr(e, i, t, r) {
3958
3949
  throw new Error("[NovaCharts] Plugin requires a Cartesian scale");
3959
3950
  return w.getAxis();
3960
3951
  },
3961
- request: rt.request,
3952
+ request: nt.request,
3962
3953
  notify: Se,
3963
3954
  port(_, w) {
3964
3955
  const I = o[_];
@@ -4029,15 +4020,15 @@ function Xr(e, i, t, r) {
4029
4020
  return h.type === "in" ? h.values.some((T) => Object.is(T, p)) : p != null && Number.isFinite(Number(p)) && (h.min === void 0 || Number(p) >= h.min) && (h.max === void 0 || Number(p) <= h.max);
4030
4021
  })), L = !0, ee("filtersChange", u, ve, l), Se("filters"), te();
4031
4022
  }
4032
- const Ut = i.defaults();
4023
+ const qt = i.defaults();
4033
4024
  for (const l of ["selection", "visibility", "viewport", "camera", "navigation", "playback", "detail", "graph"])
4034
- Ut[l] !== void 0 && (o[l] = { read: () => Ke(l, P.peek()[l]), write: (u, h) => P.request(l, u, "sync", h), equals: he, meta: { kind: i.capabilities.kind, getItem: i.getItem, getItems: i.getVisibleItems } });
4025
+ qt[l] !== void 0 && (o[l] = { read: () => Ue(l, P.peek()[l]), write: (u, h) => P.request(l, u, "sync", h), equals: he, meta: { kind: i.capabilities.kind, getItem: i.getItem, getItems: i.getVisibleItems } });
4035
4026
  o.cursor = { read: () => $ ? { ...$ } : null, write: (l) => n.setHover(l, { origin: "sync" }), equals: he }, i.capabilities.rows && (o.filters = { read: () => ze.getFilters(), write: (l) => n.batch(() => {
4036
4027
  ze.clearFilters({ origin: "sync" });
4037
4028
  for (const [u, h] of Object.entries(l))
4038
4029
  ze.setFilter(u, h, { origin: "sync" });
4039
4030
  }), equals: he });
4040
- const qt = {
4031
+ const Wt = {
4041
4032
  id: n.id,
4042
4033
  ports: o,
4043
4034
  subscribe(l) {
@@ -4051,9 +4042,9 @@ function Xr(e, i, t, r) {
4051
4042
  };
4052
4043
  }
4053
4044
  };
4054
- a = Object.assign(n, i.capabilities.rows ? ze : {}, i.extend(n, rt));
4045
+ a = Object.assign(n, i.capabilities.rows ? ze : {}, i.extend(n, nt));
4055
4046
  function Oe() {
4056
- !J && ($ || z || P.peek().selection.length || [...ie.values()].some((l) => l.length)) && (J = He(e.root, () => {
4047
+ !J && ($ || z || P.peek().selection.length || [...ie.values()].some((l) => l.length)) && (J = Ge(e.root, () => {
4057
4048
  var h, v, p, T;
4058
4049
  const l = [], u = /* @__PURE__ */ new Map();
4059
4050
  for (const _ of [...ie.values()].flat())
@@ -4073,9 +4064,9 @@ function Xr(e, i, t, r) {
4073
4064
  }), g.push(J.dispose)), J == null || J.invalidate();
4074
4065
  }
4075
4066
  Oe();
4076
- function st() {
4067
+ function ot() {
4077
4068
  var l;
4078
- se || !((l = m.labels) != null && l.visible) || ["donut", "rose", "treemap", "funnel", "radar", "tree", "graph"].includes(n.kind) || (se = He(e.root, () => {
4069
+ se || !((l = m.labels) != null && l.visible) || ["donut", "rose", "treemap", "funnel", "radar", "tree", "graph"].includes(n.kind) || (se = Ge(e.root, () => {
4079
4070
  var u;
4080
4071
  return (u = m.labels) != null && u.visible ? i.getVisibleItems().flatMap((h) => {
4081
4072
  var v, p, T, _, w, I, b;
@@ -4083,14 +4074,14 @@ function Xr(e, i, t, r) {
4083
4074
  }) : [];
4084
4075
  }), g.push(se.dispose));
4085
4076
  }
4086
- st();
4077
+ ot();
4087
4078
  for (const [l, u] of Object.entries(a)) {
4088
4079
  if (typeof u != "function" || l === "destroy")
4089
4080
  continue;
4090
4081
  const h = !l.startsWith("get") && !l.startsWith("export") && l !== "hitTest" && l !== "on";
4091
- Object.assign(a, { [l]: (...v) => (it(), h ? d.batch(() => Reflect.apply(u, a, v)) : Reflect.apply(u, a, v)) });
4082
+ Object.assign(a, { [l]: (...v) => (rt(), h ? d.batch(() => Reflect.apply(u, a, v)) : Reflect.apply(u, a, v)) });
4092
4083
  }
4093
- ut.set(a, qt), i.applyState(i.defaults(), P.peek()), g.push(e.root.onDispose(lt)), Wt(), ot(), g.push(() => {
4084
+ ht.set(a, Wt), i.applyState(i.defaults(), P.peek()), g.push(e.root.onDispose(ct)), Ht(), lt(), g.push(() => {
4094
4085
  for (const l of f.values())
4095
4086
  l();
4096
4087
  f.clear();
@@ -4098,14 +4089,14 @@ function Xr(e, i, t, r) {
4098
4089
  for (const l of t.plugins ?? [])
4099
4090
  a.use(l);
4100
4091
  return E = !0, a;
4101
- function ot() {
4092
+ function lt() {
4102
4093
  for (const l of f.values())
4103
4094
  l();
4104
4095
  f.clear();
4105
4096
  for (const [l, u] of Object.entries(m.events ?? {}))
4106
4097
  u && f.set(l, d.on(l, u));
4107
4098
  }
4108
- function lt() {
4099
+ function ct() {
4109
4100
  if (N)
4110
4101
  return;
4111
4102
  N = !0, P.dispose(), e.app.motion.cancel(e.root);
@@ -4128,7 +4119,7 @@ function Xr(e, i, t, r) {
4128
4119
  } catch (h) {
4129
4120
  l.push(h);
4130
4121
  }
4131
- y.clear(), S.clear(), ut.delete(a);
4122
+ y.clear(), S.clear(), ht.delete(a);
4132
4123
  try {
4133
4124
  i.dispose();
4134
4125
  } catch (u) {
@@ -4151,7 +4142,7 @@ function Xr(e, i, t, r) {
4151
4142
  const u = e.root.matrix;
4152
4143
  return [u[0] * l.x + u[3] * l.y + u[6], u[1] * l.x + u[4] * l.y + u[7]];
4153
4144
  }
4154
- function Wt() {
4145
+ function Ht() {
4155
4146
  const l = (b) => {
4156
4147
  const M = e.app.events.getCanvasMousePosition(b), [F, B] = e.root.toLocal(M.x, M.y);
4157
4148
  return { x: F, y: B };
@@ -4189,14 +4180,14 @@ function Xr(e, i, t, r) {
4189
4180
  var M, F;
4190
4181
  ((b == null ? void 0 : b.type) !== "pointerleave" || !h || !((M = O.hasPointerCapture) != null && M.call(O, h.id))) && (h && ((F = O.hasPointerCapture) != null && F.call(O, h.id)) && O.releasePointerCapture(h.id), h = null), n.clearHover({ origin: "user" }), n.hideTooltip({ origin: "user" });
4191
4182
  }, w = (b) => {
4192
- var ye, Me, ne, $e, ct;
4183
+ var ye, Me, ne, $e, dt;
4193
4184
  const M = l(b), F = ((ye = m.interaction) == null ? void 0 : ye.wheel) ?? "modified";
4194
4185
  if (!u(M) || F === "none" || !("zoomAt" in a) || F === "modified" && !b.ctrlKey && !b.metaKey)
4195
4186
  return;
4196
4187
  const B = ((Me = m.interaction) == null ? void 0 : Me.preventDefault) ?? "handled";
4197
4188
  B === "always" && b.preventDefault();
4198
- const K = P.revision, H = b.deltaY * (b.deltaMode === 1 ? 16 : b.deltaMode === 2 ? e.root.height : 1);
4199
- F === "pan" && ((ne = m.interaction) == null ? void 0 : ne.pan) !== !1 ? a.panBy({ x: -b.deltaX, y: -H }, { origin: "user" }) : (($e = m.interaction) == null ? void 0 : $e.zoom) !== !1 && a.zoomAt(Math.exp(-Math.max(-300, Math.min(300, H)) * 2e-3 * (((ct = m.interaction) == null ? void 0 : ct.speed) ?? 1)), M, { origin: "user" }), (P.revision !== K || P.pendingCount > 0) && B === "handled" && b.preventDefault();
4189
+ const K = P.revision, Y = b.deltaY * (b.deltaMode === 1 ? 16 : b.deltaMode === 2 ? e.root.height : 1);
4190
+ F === "pan" && ((ne = m.interaction) == null ? void 0 : ne.pan) !== !1 ? a.panBy({ x: -b.deltaX, y: -Y }, { origin: "user" }) : (($e = m.interaction) == null ? void 0 : $e.zoom) !== !1 && a.zoomAt(Math.exp(-Math.max(-300, Math.min(300, Y)) * 2e-3 * (((dt = m.interaction) == null ? void 0 : dt.speed) ?? 1)), M, { origin: "user" }), (P.revision !== K || P.pendingCount > 0) && B === "handled" && b.preventDefault();
4200
4191
  }, I = (b) => {
4201
4192
  var M;
4202
4193
  if (!(m.accessibility === !1 || ((M = m.accessibility) == null ? void 0 : M.keyboard) === !1)) {
@@ -4208,7 +4199,7 @@ function Xr(e, i, t, r) {
4208
4199
  const F = i.getVisibleItems();
4209
4200
  if (!F.length)
4210
4201
  return;
4211
- const B = z ? F.findIndex((H) => V(H.ref) === V(z)) : -1, K = b.key === "Home" ? 0 : b.key === "End" ? F.length - 1 : Math.max(0, Math.min(F.length - 1, B + (b.key === "ArrowLeft" || b.key === "ArrowUp" ? -1 : 1)));
4202
+ const B = z ? F.findIndex((Y) => V(Y.ref) === V(z)) : -1, K = b.key === "Home" ? 0 : b.key === "End" ? F.length - 1 : Math.max(0, Math.min(F.length - 1, B + (b.key === "ArrowLeft" || b.key === "ArrowUp" ? -1 : 1)));
4212
4203
  n.focus(F[K].ref, { origin: "user" });
4213
4204
  } else
4214
4205
  return;
@@ -4220,29 +4211,29 @@ function Xr(e, i, t, r) {
4220
4211
  j.addEventListener("keydown", I), g.push(() => j.removeEventListener("keydown", I));
4221
4212
  }
4222
4213
  }
4223
- function Bt(e, i) {
4214
+ function jt(e, i) {
4224
4215
  const t = { ...e };
4225
4216
  for (const [r, n] of Object.entries(i))
4226
4217
  if (n !== void 0 && typeof n == "object" && n !== null && !Array.isArray(n)) {
4227
4218
  const a = e[r];
4228
- t[r] = a && typeof a == "object" && !Array.isArray(a) ? Bt(a, n) : n;
4219
+ t[r] = a && typeof a == "object" && !Array.isArray(a) ? jt(a, n) : n;
4229
4220
  } else
4230
4221
  t[r] = n;
4231
4222
  return t;
4232
4223
  }
4233
- function kt(e) {
4224
+ function Ct(e) {
4234
4225
  return `"${String(e ?? "").replaceAll('"', '""')}"`;
4235
4226
  }
4236
- let Ct = 0;
4237
- const Ye = /* @__PURE__ */ new WeakMap();
4227
+ let It = 0;
4228
+ const Xe = /* @__PURE__ */ new WeakMap();
4238
4229
  function Mn(e) {
4239
4230
  const i = (t, r, n) => {
4240
4231
  var f, g;
4241
- Ot(r.font);
4242
- const a = r.id ?? `nova-chart-${++Ct}`;
4232
+ Bt(r.font);
4233
+ const a = r.id ?? `nova-chart-${++It}`;
4243
4234
  if (!a.trim())
4244
4235
  throw new Error("[NovaCharts] Chart id must be nonempty");
4245
- const o = r.width ?? t.app.width, s = r.height ?? t.app.height, c = new Or(t.app, t.surface, Ze({
4236
+ const o = r.width ?? t.app.width, s = r.height ?? t.app.height, c = new Or(t.app, t.surface, Je({
4246
4237
  width: o,
4247
4238
  height: s,
4248
4239
  data: [...e.rows(r)],
@@ -4278,7 +4269,7 @@ function Mn(e) {
4278
4269
  const n = typeof t == "string" ? document.querySelector(t) : t;
4279
4270
  if (!(n instanceof HTMLElement))
4280
4271
  throw new TypeError(`[NovaCharts] Mount target was not found: ${String(t)}`);
4281
- if (Ye.has(n))
4272
+ if (Xe.has(n))
4282
4273
  throw new Error("[NovaCharts] Mount target already owns a chart");
4283
4274
  const a = document.createElement("div");
4284
4275
  a.style.cssText = "position:relative;overflow:hidden;width:100%;height:100%", r.width !== void 0 && (a.style.width = `${r.width}px`), r.height !== void 0 && (a.style.height = `${r.height}px`);
@@ -4286,22 +4277,22 @@ function Mn(e) {
4286
4277
  o.style.cssText = "display:block;width:100%;height:100%;touch-action:none", a.append(o), n.append(a);
4287
4278
  let s = null, c = null, d = !1;
4288
4279
  const f = (g = {}) => ({
4289
- width: It(g.width ?? a.clientWidth, n.clientWidth, r.width, 720),
4290
- height: It(g.height ?? a.clientHeight, n.clientHeight, r.height, 420)
4280
+ width: Mt(g.width ?? a.clientWidth, n.clientWidth, r.width, 720),
4281
+ height: Mt(g.height ?? a.clientHeight, n.clientHeight, r.height, 420)
4291
4282
  });
4292
4283
  try {
4293
- s = Mt.createApp({
4284
+ s = Ft.createApp({
4294
4285
  target: o,
4295
4286
  size: { ...f(), maxDpr: r.maxDpr ?? 2 },
4296
4287
  renderer: { main: r.renderer === "webgl" ? je.WebGL : je.Web2D },
4297
- scheduler: { type: Zt.AnimationFrame, loop: !1 },
4288
+ scheduler: { type: Jt.AnimationFrame, loop: !1 },
4298
4289
  sound: { enabled: !1 },
4299
4290
  input: { pointer: { enabled: !0, capture: !0 }, keyboard: { enabled: !0, scope: "focused", preventDefault: "handled", ignoreEditableTargets: !0 } },
4300
4291
  debug: { enabled: !1, telemetry: !1 }
4301
4292
  });
4302
- const g = s.createSurface(`charts:${r.id ?? Ct + 1}`);
4293
+ const g = s.createSurface(`charts:${r.id ?? It + 1}`);
4303
4294
  s.mainRendererType === je.Web2D && (g.renderPolicy = { cache: "texture" });
4304
- const y = g.createNode(ii, ri(f()));
4295
+ const y = g.createNode(ri, ni(f()));
4305
4296
  let S;
4306
4297
  S = i({ app: s, surface: g, parent: y }, r, { target: n, canvas: o, resize: (N = {}) => {
4307
4298
  N.width !== void 0 && (a.style.width = `${N.width}px`), N.height !== void 0 && (a.style.height = `${N.height}px`);
@@ -4309,7 +4300,7 @@ function Mn(e) {
4309
4300
  s == null || s.options(E), y.applyLayoutRect({ x: 0, y: 0, ...E }), S == null || S.root.applyLayoutRect({ x: 0, y: 0, ...E }), y.relayout();
4310
4301
  }, destroy: () => {
4311
4302
  if (!d) {
4312
- d = !0, c == null || c.disconnect(), c = null, Ye.delete(n);
4303
+ d = !0, c == null || c.disconnect(), c = null, Xe.delete(n);
4313
4304
  try {
4314
4305
  s == null || s.destroy();
4315
4306
  } finally {
@@ -4318,7 +4309,7 @@ function Mn(e) {
4318
4309
  }
4319
4310
  } });
4320
4311
  const m = S.handle;
4321
- return y.relayout(), typeof ResizeObserver < "u" && (c = new ResizeObserver(() => m.resize()), c.observe(a)), Ye.set(n, m), m;
4312
+ return y.relayout(), typeof ResizeObserver < "u" && (c = new ResizeObserver(() => m.resize()), c.observe(a)), Xe.set(n, m), m;
4322
4313
  } catch (g) {
4323
4314
  c == null || c.disconnect();
4324
4315
  try {
@@ -4331,7 +4322,7 @@ function Mn(e) {
4331
4322
  }
4332
4323
  };
4333
4324
  }
4334
- function It(...e) {
4325
+ function Mt(...e) {
4335
4326
  for (const i of e)
4336
4327
  if (i !== void 0 && Number.isFinite(i) && i > 0)
4337
4328
  return Math.floor(i);
@@ -4339,7 +4330,7 @@ function It(...e) {
4339
4330
  }
4340
4331
  export {
4341
4332
  xn as A,
4342
- G as B,
4333
+ H as B,
4343
4334
  Sn as C,
4344
4335
  vn as D,
4345
4336
  on as E,
@@ -4348,7 +4339,7 @@ export {
4348
4339
  zr as b,
4349
4340
  Mn as c,
4350
4341
  ln as d,
4351
- Dt as e,
4342
+ Rt as e,
4352
4343
  an as f,
4353
4344
  wn as g,
4354
4345
  yn as h,