@arcgis/charts-components 5.2.0-next.27 → 5.2.0-next.28

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.
Files changed (87) hide show
  1. package/dist/cdn/{I4NVKM3H.js → 2ODYZG66.js} +1 -1
  2. package/dist/cdn/{54F7CW76.js → 2SPGX6AF.js} +1 -1
  3. package/dist/cdn/{6OC4X4GP.js → 2SPURZEN.js} +1 -1
  4. package/dist/cdn/{JIHUDUXV.js → 35NSJ3NJ.js} +1 -1
  5. package/dist/cdn/{HOZ4AHQR.js → 3QO6REDF.js} +1 -1
  6. package/dist/cdn/{3QFCHMXP.js → 3UTF2CB3.js} +1 -1
  7. package/dist/cdn/{H4VTKKBN.js → 3YN4EKSJ.js} +1 -1
  8. package/dist/cdn/{SBP4RBXK.js → 4BEGCEGA.js} +1 -1
  9. package/dist/cdn/{A3DHDZLR.js → 4P7URPRQ.js} +1 -1
  10. package/dist/cdn/{MMPHPV2C.js → 5XCU5SR2.js} +1 -1
  11. package/dist/cdn/{HYDDSP4M.js → 6ANVHVX4.js} +1 -1
  12. package/dist/cdn/{VQFCYPDR.js → 6CB5R4QQ.js} +1 -1
  13. package/dist/cdn/{CEBE6KZ5.js → 6GV2QPKV.js} +1 -1
  14. package/dist/cdn/{3HT2XHTE.js → 6OCDFMFB.js} +1 -1
  15. package/dist/cdn/{E4OZ432W.js → 6VK54DG5.js} +1 -1
  16. package/dist/cdn/{LLICYFCD.js → 6XIDALQU.js} +1 -1
  17. package/dist/cdn/{DEN7277X.js → 7VQXBQMZ.js} +1 -1
  18. package/dist/cdn/{WINZ53K3.js → 7Z7NOIH2.js} +1 -1
  19. package/dist/cdn/{YFYTXRLW.js → ADYDCO3M.js} +1 -1
  20. package/dist/cdn/{OZEARYZA.js → AICTKGE3.js} +1 -1
  21. package/dist/cdn/{F5NJPXUK.js → AXRHJ55P.js} +1 -1
  22. package/dist/cdn/BJBNELDD.js +3 -0
  23. package/dist/cdn/{OPMJTZOV.js → BKU72IQC.js} +1 -1
  24. package/dist/cdn/{FVGXWZBY.js → BQXXD2HU.js} +1 -1
  25. package/dist/cdn/{PA5GXXDY.js → BZFGE4LO.js} +1 -1
  26. package/dist/cdn/{POPYMWVR.js → C4TQOUPO.js} +1 -1
  27. package/dist/cdn/{CTTLJGLV.js → CLN32L2L.js} +1 -1
  28. package/dist/cdn/{U35HGES6.js → DAF2U7TN.js} +1 -1
  29. package/dist/cdn/{RMF3UYFS.js → DRFJC64L.js} +1 -1
  30. package/dist/cdn/{D2LXXBP5.js → DVAQXOL6.js} +1 -1
  31. package/dist/cdn/{S44GNLAE.js → EXQXLQRA.js} +1 -1
  32. package/dist/cdn/{5LVCC5LO.js → G5EGTXMY.js} +1 -1
  33. package/dist/cdn/{3M2I2DRI.js → GCRQHIGQ.js} +1 -1
  34. package/dist/cdn/{K473JQIX.js → HBS6O3P3.js} +1 -1
  35. package/dist/cdn/{ICFXSFV6.js → HIW5WRHR.js} +1 -1
  36. package/dist/cdn/{K2H47DLO.js → IWMWJN7M.js} +1 -1
  37. package/dist/cdn/{6WZLNZJI.js → JBR6IJMK.js} +1 -1
  38. package/dist/cdn/{FAOLLBXF.js → JIV6BQKG.js} +1 -1
  39. package/dist/cdn/{JPNGKMXS.js → K27GKXGP.js} +1 -1
  40. package/dist/cdn/{I4CGHGFK.js → KFPJI52X.js} +1 -1
  41. package/dist/cdn/{R4F7L2HV.js → KQLAAGKI.js} +1 -1
  42. package/dist/cdn/{WF76CIN2.js → L5PCPBED.js} +1 -1
  43. package/dist/cdn/{QGJNZGQX.js → LFXRCL7K.js} +1 -1
  44. package/dist/cdn/{PHAOZ7SV.js → M4ZJRIYM.js} +1 -1
  45. package/dist/cdn/{ATQN27OC.js → MBPFBE3E.js} +1 -1
  46. package/dist/cdn/{6EX4GDM3.js → MEA74C44.js} +1 -1
  47. package/dist/cdn/{6N4SYUQV.js → MRNQGHRD.js} +1 -1
  48. package/dist/cdn/{TR4ULKH5.js → MVUIKY5Y.js} +1 -1
  49. package/dist/cdn/{JAJUMMUL.js → N673JFHK.js} +1 -1
  50. package/dist/cdn/{2CCG5VRK.js → NKVZYKL5.js} +1 -1
  51. package/dist/cdn/{RFU52ORA.js → O5NKLK7V.js} +1 -1
  52. package/dist/cdn/{VRF5VORO.js → PEYVSFSE.js} +1 -1
  53. package/dist/cdn/{3FDSEXHU.js → PKQOLKTW.js} +1 -1
  54. package/dist/cdn/{HFCAMEBX.js → Q2GW5LB7.js} +1 -1
  55. package/dist/cdn/{HWUT7IFD.js → QGEFY4ND.js} +1 -1
  56. package/dist/cdn/{TYJZR25X.js → QV3NMKKZ.js} +1 -1
  57. package/dist/cdn/{7ZQHAWKS.js → REZ2QR42.js} +1 -1
  58. package/dist/cdn/{2VERKODU.js → RKG6CXUU.js} +1 -1
  59. package/dist/cdn/{FSJ6RT4T.js → SAYLTYWY.js} +1 -1
  60. package/dist/cdn/{4X7O5PV4.js → SOGVYNPI.js} +1 -1
  61. package/dist/cdn/{DINELIBX.js → SSKHF7PO.js} +1 -1
  62. package/dist/cdn/{7UMBIDWG.js → T5TFLMQL.js} +1 -1
  63. package/dist/cdn/{MP4N4SFB.js → TOFVWGTG.js} +1 -1
  64. package/dist/cdn/{54UV746F.js → TSA7UMSZ.js} +1 -1
  65. package/dist/cdn/{EJEUMMWZ.js → U3MRRFML.js} +1 -1
  66. package/dist/cdn/{UU2LYQUI.js → VWTJHXHI.js} +1 -1
  67. package/dist/cdn/{525WSDKI.js → WHVW3P3O.js} +1 -1
  68. package/dist/cdn/{S6MDSIET.js → WJHIJTWS.js} +1 -1
  69. package/dist/cdn/{OOVQ6IVC.js → WU62O2AU.js} +1 -1
  70. package/dist/cdn/{4UG5VYOC.js → X7YEBHBF.js} +1 -1
  71. package/dist/cdn/{DL77MIWY.js → X7Z4LEZH.js} +1 -1
  72. package/dist/cdn/{ZO27SWFU.js → XRP6IFM4.js} +1 -1
  73. package/dist/cdn/{6E2WAXRT.js → Y6CFEFZM.js} +1 -1
  74. package/dist/cdn/{EA7AXGJI.js → YF6HKRXX.js} +1 -1
  75. package/dist/cdn/{SZ3VH4UZ.js → YFHB2EFH.js} +1 -1
  76. package/dist/cdn/{BRG2PBG4.js → YQIFZJTZ.js} +1 -1
  77. package/dist/cdn/{RKZ2IOOP.js → YWCIV7ZZ.js} +1 -1
  78. package/dist/cdn/{Q5VREFP6.js → YWKPGNHB.js} +1 -1
  79. package/dist/cdn/{ODTCEPEL.js → Z43DVT6G.js} +1 -1
  80. package/dist/cdn/index.js +1 -1
  81. package/dist/cdn/model/shared/setup-utils.js +1 -1
  82. package/dist/chunks/index2.js +710 -706
  83. package/dist/docs/api.json +1 -1
  84. package/dist/docs/docs.json +1 -1
  85. package/dist/docs/web-types.json +1 -1
  86. package/package.json +3 -3
  87. package/dist/cdn/BFVFX476.js +0 -3
@@ -1,5 +1,5 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import { isEqual as at, sortBy as Ai, cloneDeep as He, memoize as Et, isArray as ui, isNil as hr, isEmpty as Sr } from "lodash-es";
2
+ import { isEqual as at, sortBy as Ai, cloneDeep as He, memoize as qt, isArray as ui, isNil as hr, isEmpty as Sr } from "lodash-es";
3
3
  import { u as h, k as Fr, r as D, v as Ke, m as Se, p as ye, n as De, q as Te, g as Z, j as br, s as R, t as ee, d as he, a as Xi, G as xr } from "./chart-object-literals.js";
4
4
  import wi from "@arcgis/core/layers/support/FeatureFilter.js";
5
5
  import Cr from "@arcgis/core/smartMapping/statistics/histogram.js";
@@ -18,13 +18,13 @@ import * as ea from "@arcgis/core/renderers/support/jsonUtils.js";
18
18
  import Lt from "@arcgis/core/request.js";
19
19
  import ta from "@arcgis/core/rest/support/FeatureSet.js";
20
20
  import { g as _ } from "./series-types.js";
21
- import { F as C, q as oe, C as F, e as Zt, z as ia, l as ci, o as Pi, v as aa, d as Xt, x as Mr, g as ra, s as zt, w as Dr, i as Or, r as Ae, t as qt } from "./index3.js";
21
+ import { F as C, q as oe, C as F, e as Xt, z as ia, l as ci, o as Pi, v as aa, d as Jt, x as Mr, g as ra, s as Wt, w as Dr, i as Or, r as Ae, t as Vt } from "./index3.js";
22
22
  import Ir from "@arcgis/core/Graphic.js";
23
- import * as Wt from "@arcgis/core/symbols/support/symbolUtils.js";
24
- import { f as Jt, h as et, i as _e, e as se, R as U } from "./rest-js-object-literals.js";
23
+ import * as Gt from "@arcgis/core/symbols/support/symbolUtils.js";
24
+ import { f as Kt, h as et, i as _e, e as se, R as U } from "./rest-js-object-literals.js";
25
25
  import Er from "@arcgis/core/AttributeBinsGraphic.js";
26
26
  import { substitute as Be } from "@arcgis/core/intl.js";
27
- import { g as Vt, L as lt, az as W, j as Q, r as ut, o as Oe, ax as Kt, am as na, aB as sa, aq as qr, s as Rt, ay as Vr, b as Rr, a as $r } from "./index.js";
27
+ import { g as Rt, L as lt, az as W, j as Q, r as ut, o as Oe, ax as ei, am as na, aB as sa, aq as qr, s as $t, ay as Vr, b as Rr, a as $r } from "./index.js";
28
28
  import { unsafeGetElementDirection as kr } from "@arcgis/toolkit/dom";
29
29
  import { fetchT9nStringsBundle as mt, getElementLocale as ze, supportedLocales as oa } from "@arcgis/toolkit/intl";
30
30
  import { i as la, b as ua, c as ie, a as yt, f as Qr, e as _r } from "./type-guards.js";
@@ -146,7 +146,7 @@ function de(t) {
146
146
  return _(t?.series) === h.BoxPlotSeries;
147
147
  }
148
148
  function dn(t) {
149
- return t !== void 0 && t !== Jt.Solid && t !== Jt.Null;
149
+ return t !== void 0 && t !== Kt.Solid && t !== Kt.Null;
150
150
  }
151
151
  function cc(t, e) {
152
152
  let i = "";
@@ -248,7 +248,7 @@ const ce = "arcgis_charts_pie_from_fields_name", Ne = "arcgis_charts_pie_from_fi
248
248
  emptyCells: {
249
249
  symbol: {
250
250
  type: _e.SFS,
251
- style: Jt.Solid,
251
+ style: Kt.Solid,
252
252
  color: C.grayColor
253
253
  },
254
254
  text: "null"
@@ -508,7 +508,7 @@ const Qe = [
508
508
  h.ComboLineAndBarSeries,
509
509
  h.RadarSeries
510
510
  ];
511
- function Gt(t, e) {
511
+ function Ut(t, e) {
512
512
  let i = 0;
513
513
  if (t !== e) {
514
514
  const a = t.split("."), r = e.split(".");
@@ -532,13 +532,13 @@ function bn(t) {
532
532
  function Nc(t) {
533
533
  let e = Ke.Same, i = [];
534
534
  if (bn(t) && t !== void 0) {
535
- Qe.sort(Gt);
536
- const r = Gt(t, Qe[Qe.length - 1]);
535
+ Qe.sort(Ut);
536
+ const r = Ut(t, Qe[Qe.length - 1]);
537
537
  if (r === 1 ? e = Ke.Newer : r === -1 && (e = Ke.Older), e === Ke.Newer || e === Ke.Same)
538
538
  i.push(t);
539
539
  else {
540
540
  for (let n = Qe.length - 2; n >= 0; n -= 1)
541
- if (Gt(t, Qe[n]) >= 0) {
541
+ if (Ut(t, Qe[n]) >= 0) {
542
542
  i = Qe.slice(n, Qe.length);
543
543
  break;
544
544
  }
@@ -564,7 +564,7 @@ function te(t, e) {
564
564
  function fe(t) {
565
565
  const { where: e, normalize: i, keepSurroundingQuotes: a, escape: r = !1 } = t;
566
566
  let n = "";
567
- return e?.includes("=") && (n = e.split("=").slice(1).join("=").trim(), n === "null" ? n = null : n.trim() !== "" && !Number.isNaN(Number(n)) ? n = Number(n) : i === !1 ? r && (n = Zt(n)) : n = ia({ value: n, keepSurroundingQuotes: a, escape: r })), n;
567
+ return e?.includes("=") && (n = e.split("=").slice(1).join("=").trim(), n === "null" ? n = null : n.trim() !== "" && !Number.isNaN(Number(n)) ? n = Number(n) : i === !1 ? r && (n = Xt(n)) : n = ia({ value: n, keepSurroundingQuotes: a, escape: r })), n;
568
568
  }
569
569
  function Ie(t) {
570
570
  let e = !1;
@@ -598,7 +598,7 @@ function pa(t) {
598
598
  function xn(t) {
599
599
  let e = F.BoxPlotMonoField;
600
600
  const i = t.length === 1, a = t.find((o) => o.type === h.LineSeries) ?? t[0], { x: r } = a, n = "y" in a ? a.y : "", s = a.query?.where;
601
- return r === Vt ? typeof n == "object" && n.length > 1 ? Ie(s) ? i && (e = F.BoxPlotMultiFields) : e = F.BoxPlotMultiFieldsAndSplitBy : i ? e = F.BoxPlotMonoField : Ie(s) || (e = F.BoxPlotMonoFieldAndSplitBy) : i ? e = F.BoxPlotMonoFieldAndCategory : Ie(s) ? e = F.BoxPlotMultiFieldsAndCategory : e = F.BoxPlotMonoFieldAndCategoryAndSplitBy, e;
601
+ return r === Rt ? typeof n == "object" && n.length > 1 ? Ie(s) ? i && (e = F.BoxPlotMultiFields) : e = F.BoxPlotMultiFieldsAndSplitBy : i ? e = F.BoxPlotMonoField : Ie(s) || (e = F.BoxPlotMonoFieldAndSplitBy) : i ? e = F.BoxPlotMonoFieldAndCategory : Ie(s) ? e = F.BoxPlotMultiFieldsAndCategory : e = F.BoxPlotMonoFieldAndCategoryAndSplitBy, e;
602
602
  }
603
603
  function k(t) {
604
604
  let e = F.NonSpecific;
@@ -791,14 +791,14 @@ function Oc(t) {
791
791
  let a = !1;
792
792
  const r = e?.series[0], n = i.series[0], s = _(e?.series), o = _(i.series);
793
793
  if (s === h.PieSeries && o === h.PieSeries) {
794
- const { slices: u, sliceGrouping: c } = r, { slices: l, sliceGrouping: d } = n, f = u?.map((g) => ({
795
- sliceId: g.sliceId,
796
- label: g.label
797
- })), m = l?.map((g) => ({
798
- sliceId: g.sliceId,
799
- label: g.label
800
- })), y = c?.label, p = d?.label;
801
- a = JSON.stringify(f) !== JSON.stringify(m) || JSON.stringify(y) !== JSON.stringify(p);
794
+ const { slices: u, sliceGrouping: c } = r, { slices: l, sliceGrouping: d } = n, f = u?.map((p) => ({
795
+ sliceId: p.sliceId,
796
+ label: p.label
797
+ })), m = l?.map((p) => ({
798
+ sliceId: p.sliceId,
799
+ label: p.label
800
+ })), y = c?.label, g = d?.label;
801
+ a = JSON.stringify(f) !== JSON.stringify(m) || JSON.stringify(y) !== JSON.stringify(g);
802
802
  }
803
803
  return a;
804
804
  }
@@ -819,7 +819,7 @@ function Ec(t, e) {
819
819
  }
820
820
  function qc(t, e) {
821
821
  let i, a, r, n;
822
- return be(t.series[0]) && (i = t.series[0].temporalBinning?.unit, r = t.series[0].temporalBinning?.size), be(e.series[0]) && (a = e.series[0].temporalBinning?.unit, n = e.series[0].temporalBinning?.size), ei(i, r) && !ei(a, n);
822
+ return be(t.series[0]) && (i = t.series[0].temporalBinning?.unit, r = t.series[0].temporalBinning?.size), be(e.series[0]) && (a = e.series[0].temporalBinning?.unit, n = e.series[0].temporalBinning?.size), ti(i, r) && !ti(a, n);
823
823
  }
824
824
  function Vc(t, e) {
825
825
  return t.axes?.length === 3 && e.axes?.length === 2 || t.axes?.length === 2 && e.axes?.length === 3;
@@ -878,7 +878,7 @@ function Gc(t) {
878
878
  setTimeBinningInfoWhenNotProvided: c,
879
879
  chartLimits: l
880
880
  } = t, { series: d } = i, { series: f } = e, m = _(d);
881
- let y = !1, p = !1, g = !1;
881
+ let y = !1, g = !1, p = !1;
882
882
  const S = {
883
883
  common: {
884
884
  layerChanged: !1,
@@ -959,7 +959,7 @@ function Gc(t) {
959
959
  });
960
960
  break;
961
961
  }
962
- return p = Object.values(S.common).some((b) => b), (S.gauge.valueConversionChanged || S.histogram.dataPropsChanged || S.boxPlot.showMeanChanged || S.heatChart.binningChanged || S.heatChart.hideEmptyRowsAndColumnsChanged || S.heatChart.includeLeapDay || S.scatterPlot.tooltipFieldsChanged) && (g = !0), y = p || g, { dataUpdateNeeded: y, dataUpdateDetails: S };
962
+ return g = Object.values(S.common).some((x) => x), (S.gauge.valueConversionChanged || S.histogram.dataPropsChanged || S.boxPlot.showMeanChanged || S.heatChart.binningChanged || S.heatChart.hideEmptyRowsAndColumnsChanged || S.heatChart.includeLeapDay || S.scatterPlot.tooltipFieldsChanged) && (p = !0), y = g || p, { dataUpdateNeeded: y, dataUpdateDetails: S };
963
963
  }
964
964
  function Uc(t, e) {
965
965
  const i = He(t);
@@ -1172,7 +1172,7 @@ function ht(t) {
1172
1172
  value: `${d[a]?.toString()}`,
1173
1173
  dataContext: d,
1174
1174
  specificField: o ? C.xAxisField : C.originalCategoryValue
1175
- })), n === !0 && c && s === !0 && (m = Number.isNaN(Number.parseFloat(`${m?.toString()}`)) ? m : Number.parseFloat(m), y = Number.isNaN(Number.parseFloat(`${y?.toString()}`)) ? y : Number.parseFloat(y)), s === !0 && (l[C.originalCategoryValue] === null || m === null) || l[Kt.defaultGroupOfSlicesId] === !0 ? f = 1 : s === !0 && (d[C.originalCategoryValue] === null || y === null) || d[Kt.defaultGroupOfSlicesId] === !0 ? f = -1 : typeof m == "string" && typeof y == "string" ? (f = m.localeCompare(y, void 0, { numeric: !0 }), c && (f *= -1)) : m === void 0 ? f = c ? -1 : 1 : y === void 0 ? f = c ? 1 : -1 : m !== null && y !== null && (m > y ? f = c ? -1 : 1 : m < y && (f = c ? 1 : -1)), f;
1175
+ })), n === !0 && c && s === !0 && (m = Number.isNaN(Number.parseFloat(`${m?.toString()}`)) ? m : Number.parseFloat(m), y = Number.isNaN(Number.parseFloat(`${y?.toString()}`)) ? y : Number.parseFloat(y)), s === !0 && (l[C.originalCategoryValue] === null || m === null) || l[ei.defaultGroupOfSlicesId] === !0 ? f = 1 : s === !0 && (d[C.originalCategoryValue] === null || y === null) || d[ei.defaultGroupOfSlicesId] === !0 ? f = -1 : typeof m == "string" && typeof y == "string" ? (f = m.localeCompare(y, void 0, { numeric: !0 }), c && (f *= -1)) : m === void 0 ? f = c ? -1 : 1 : y === void 0 ? f = c ? 1 : -1 : m !== null && y !== null && (m > y ? f = c ? -1 : 1 : m < y && (f = c ? 1 : -1)), f;
1176
1176
  });
1177
1177
  }
1178
1178
  }
@@ -1180,11 +1180,11 @@ function En(t) {
1180
1180
  const { arrayToSort: e, orderBy: i, sortingField: a, fieldList: r, isByFieldsChart: n, preferLabel: s } = t;
1181
1181
  e !== void 0 && e.length > 1 && !oe(a) && i !== void 0 && i.length > 0 && e.sort((o, u) => {
1182
1182
  let c = o[a];
1183
- s && n && typeof c == "string" && (c = Xt(r, c));
1183
+ s && n && typeof c == "string" && (c = Jt(r, c));
1184
1184
  let l = i.indexOf(c?.toString() ?? "");
1185
1185
  l === -1 && (l = i.length);
1186
1186
  let d = u[a];
1187
- s && n && typeof d == "string" && (d = Xt(r, d));
1187
+ s && n && typeof d == "string" && (d = Jt(r, d));
1188
1188
  let f = i.indexOf(d?.toString() ?? "");
1189
1189
  return f === -1 && (f = i.length), l - f;
1190
1190
  });
@@ -1212,7 +1212,7 @@ function Dt(t) {
1212
1212
  Object.entries(e).forEach(([o]) => {
1213
1213
  if (o !== "" && o !== Oe && o in e) {
1214
1214
  const u = {
1215
- [i]: Xt(r, o),
1215
+ [i]: Jt(r, o),
1216
1216
  [a]: e[o],
1217
1217
  [C.xAxisField]: o,
1218
1218
  [C.originalCategoryValue]: o
@@ -1255,38 +1255,38 @@ function Aa(t, e) {
1255
1255
  maxLineTwoSeriesCountTotal: f,
1256
1256
  maxLineThreePlusSeriesCountPerSeries: m,
1257
1257
  maxLineThreePlusSeriesCountTotal: y,
1258
- maxPieChartSliceCountTotal: p,
1259
- maxGaugeByFeaturesLimit: g
1260
- } = ut(e), S = _(t.series), b = t.series.length === 0 ? 1 : t.series.length, v = k(t.series);
1258
+ maxPieChartSliceCountTotal: g,
1259
+ maxGaugeByFeaturesLimit: p
1260
+ } = ut(e), S = _(t.series), x = t.series.length === 0 ? 1 : t.series.length, v = k(t.series);
1261
1261
  switch (S) {
1262
1262
  case h.ComboLineAndBarSeries:
1263
1263
  case h.BarSeries:
1264
- b <= a && (b === 1 ? i = r : b === 2 ? i = At({
1264
+ x <= a && (x === 1 ? i = r : x === 2 ? i = At({
1265
1265
  countTotal: s,
1266
1266
  countPerSeries: n,
1267
- numberOfSeries: b
1268
- }) : b > 2 && (i = At({
1267
+ numberOfSeries: x
1268
+ }) : x > 2 && (i = At({
1269
1269
  countTotal: u,
1270
1270
  countPerSeries: o,
1271
- numberOfSeries: b
1271
+ numberOfSeries: x
1272
1272
  })));
1273
1273
  break;
1274
1274
  case h.LineSeries:
1275
- b <= c && (b === 1 ? i = l : b === 2 ? i = At({
1275
+ x <= c && (x === 1 ? i = l : x === 2 ? i = At({
1276
1276
  countTotal: f,
1277
1277
  countPerSeries: d,
1278
- numberOfSeries: b
1279
- }) : b > 2 && (i = At({
1278
+ numberOfSeries: x
1279
+ }) : x > 2 && (i = At({
1280
1280
  countTotal: y,
1281
1281
  countPerSeries: m,
1282
- numberOfSeries: b
1282
+ numberOfSeries: x
1283
1283
  })));
1284
1284
  break;
1285
1285
  case h.PieSeries:
1286
- i = p;
1286
+ i = g;
1287
1287
  break;
1288
1288
  case h.GaugeSeries:
1289
- i = g;
1289
+ i = p;
1290
1290
  break;
1291
1291
  case h.ScatterSeries:
1292
1292
  // handled through the aggregation feature
@@ -1294,7 +1294,7 @@ function Aa(t, e) {
1294
1294
  // handled through the number of bins
1295
1295
  case h.BoxPlotSeries:
1296
1296
  }
1297
- return (v === F.BarAndLineNoAggregation || v === F.BarAndLineMultiFields) && i !== void 0 && (i = Math.ceil(i / b)), i;
1297
+ return (v === F.BarAndLineNoAggregation || v === F.BarAndLineMultiFields) && i !== void 0 && (i = Math.ceil(i / x)), i;
1298
1298
  }
1299
1299
  function Oi(t, e) {
1300
1300
  let i = t;
@@ -1460,30 +1460,30 @@ function Wn(t) {
1460
1460
  (d) => {
1461
1461
  let { field: f } = d;
1462
1462
  const { color: m, label: y } = d;
1463
- let p;
1464
- Array.isArray(m) && m?.length === 4 ? p = m : m && "toRgba" in m && (p = m.toRgba());
1465
- let g = !1, S = !0;
1463
+ let g;
1464
+ Array.isArray(m) && m?.length === 4 ? g = m : m && "toRgba" in m && (g = m.toRgba());
1465
+ let p = !1, S = !0;
1466
1466
  switch (u) {
1467
1467
  case h.BarSeries:
1468
1468
  case h.LineSeries:
1469
1469
  case h.ComboLineAndBarSeries:
1470
1470
  case h.RadarSeries:
1471
1471
  if (a !== F.BarAndLineFromFields) {
1472
- const b = i.find((v) => v.query?.outStatistics?.[0]?.onStatisticField === f);
1473
- b !== void 0 && "y" in b ? f = [b.y].flat()[0] : f = "";
1472
+ const x = i.find((v) => v.query?.outStatistics?.[0]?.onStatisticField === f);
1473
+ x !== void 0 && "y" in x ? f = [x.y].flat()[0] : f = "";
1474
1474
  }
1475
- g = a !== F.BarAndLineFromFields || f === r[C.originalCategoryValue];
1475
+ p = a !== F.BarAndLineFromFields || f === r[C.originalCategoryValue];
1476
1476
  break;
1477
1477
  case h.PieSeries:
1478
- g = a === F.PieFromFields && f === r[C.originalCategoryValue];
1478
+ p = a === F.PieFromFields && f === r[C.originalCategoryValue];
1479
1479
  break;
1480
1480
  case h.BoxPlotSeries:
1481
- a === F.BoxPlotMonoField || a === F.BoxPlotMonoFieldAndCategory ? g = f === i[0].y : f && (a === F.BoxPlotMultiFields || a === F.BoxPlotMultiFieldsAndCategory) && (g = i.map((v) => v.y).flat().includes(f)), S = !1;
1481
+ a === F.BoxPlotMonoField || a === F.BoxPlotMonoFieldAndCategory ? p = f === i[0].y : f && (a === F.BoxPlotMultiFields || a === F.BoxPlotMultiFieldsAndCategory) && (p = i.map((v) => v.y).flat().includes(f)), S = !1;
1482
1482
  break;
1483
1483
  }
1484
- g && p && (s = {
1484
+ p && g && (s = {
1485
1485
  type: _e.SMS,
1486
- color: p,
1486
+ color: g,
1487
1487
  label: S && y ? y : void 0
1488
1488
  }, c != null && (s.outline = c), La({
1489
1489
  dataItem: r,
@@ -1528,7 +1528,7 @@ function Pa(t) {
1528
1528
  chartSubType: i,
1529
1529
  rendererType: a
1530
1530
  });
1531
- return n instanceof Array && e.type === h.BoxPlotSeries && a === se.PieChart && r !== void 0 && (n = n.find((s) => s === r[Vt]) ?? n[0]), n = n !== C.rendererSymbolField ? `${C.rendererSymbolField}_${n.toString()}` : n, n;
1531
+ return n instanceof Array && e.type === h.BoxPlotSeries && a === se.PieChart && r !== void 0 && (n = n.find((s) => s === r[Rt]) ?? n[0]), n = n !== C.rendererSymbolField ? `${C.rendererSymbolField}_${n.toString()}` : n, n;
1532
1532
  }
1533
1533
  function Un(t) {
1534
1534
  const { chartRenderer: e, queryObject: i } = t, a = e !== void 0 ? {
@@ -1564,22 +1564,22 @@ async function Yn(t) {
1564
1564
  rendererOrigin: n
1565
1565
  });
1566
1566
  d = m.rendererSymbol, f = m.colorMatchApplied;
1567
- } else if (i?.[Kt.defaultGroupOfSlicesId] !== !0) {
1567
+ } else if (i?.[ei.defaultGroupOfSlicesId] !== !0) {
1568
1568
  const { x: m } = e[0], y = /* @__PURE__ */ new Map();
1569
- o && o.trim() !== "" ? e.forEach((p) => {
1570
- if (p.type === h.BarSeries || p.type === h.LineSeries || p.type === h.BoxPlotSeries || p.type === h.RadarSeries) {
1571
- const g = Pa({
1572
- seriesConfig: p,
1569
+ o && o.trim() !== "" ? e.forEach((g) => {
1570
+ if (g.type === h.BarSeries || g.type === h.LineSeries || g.type === h.BoxPlotSeries || g.type === h.RadarSeries) {
1571
+ const p = Pa({
1572
+ seriesConfig: g,
1573
1573
  chartSubType: s,
1574
1574
  rendererType: r,
1575
1575
  dataItem: i
1576
1576
  }), S = fe({
1577
- where: p.query?.where,
1577
+ where: g.query?.where,
1578
1578
  normalize: !0,
1579
1579
  keepSurroundingQuotes: !1,
1580
1580
  escape: !1
1581
1581
  });
1582
- y.set(g, {
1582
+ y.set(p, {
1583
1583
  ...i,
1584
1584
  [o]: S
1585
1585
  });
@@ -1594,30 +1594,30 @@ async function Yn(t) {
1594
1594
  }
1595
1595
  );
1596
1596
  try {
1597
- const p = Array.from(y.entries()), g = u.clone();
1598
- g.layer = u.layer;
1597
+ const g = Array.from(y.entries()), p = u.clone();
1598
+ p.layer = u.layer;
1599
1599
  const S = a?.uniqueValueInfos;
1600
- for (let b = 0; b < p.length; b += 1) {
1601
- const [v, x] = p[b];
1600
+ for (let x = 0; x < g.length; x += 1) {
1601
+ const [v, b] = g[x];
1602
1602
  if (Ii({
1603
1603
  mode: "encode",
1604
1604
  x: m,
1605
1605
  splitByField: o,
1606
- attributes: x
1607
- }), c && c.length > 0 && Object.keys(x).forEach((N) => {
1608
- c.includes(N) || delete x[N];
1609
- }), g.attributes = x, l?.has(JSON.stringify(x)))
1610
- d = l.get(JSON.stringify(x));
1606
+ attributes: b
1607
+ }), c && c.length > 0 && Object.keys(b).forEach((N) => {
1608
+ c.includes(N) || delete b[N];
1609
+ }), p.attributes = b, l?.has(JSON.stringify(b)))
1610
+ d = l.get(JSON.stringify(b));
1611
1611
  else {
1612
- if (d = (await Wt.getDisplayedSymbol(g))?.toJSON(), d != null) {
1612
+ if (d = (await Gt.getDisplayedSymbol(p))?.toJSON(), d != null) {
1613
1613
  if (d.color === void 0) {
1614
- const T = (await Wt.getDisplayedColor(g))?.toJSON();
1614
+ const T = (await Gt.getDisplayedColor(p))?.toJSON();
1615
1615
  T && (d.color = T.length === 4 ? T : [...T, 255]);
1616
1616
  }
1617
- const N = await Wt.getLegendLabel(g);
1617
+ const N = await Gt.getLegendLabel(p);
1618
1618
  N != null && N !== "" && (d.label = N, d.uniqueValue = S?.find((T) => T.label === N)?.value ?? void 0);
1619
1619
  }
1620
- l?.set(JSON.stringify(x), d);
1620
+ l?.set(JSON.stringify(b), d);
1621
1621
  }
1622
1622
  Ii({
1623
1623
  mode: "revert",
@@ -1713,7 +1713,7 @@ function ld(t, e) {
1713
1713
  const a = _(t?.series), r = _(e?.series);
1714
1714
  return a && a !== r && (i = a === h.ComboLineAndBarSeries && (r === h.BarSeries || r === h.LineSeries) || r === h.ComboLineAndBarSeries && (a === h.BarSeries || a === h.LineSeries) || a === h.BarSeries && r === h.LineSeries || a === h.LineSeries && r === h.BarSeries), i;
1715
1715
  }
1716
- function ei(t, e) {
1716
+ function ti(t, e) {
1717
1717
  return t !== void 0 && e !== void 0 && e > 0;
1718
1718
  }
1719
1719
  function ud(t) {
@@ -1732,7 +1732,7 @@ function ud(t) {
1732
1732
  })?.color : f === void 0 && (f = na({ colorIndex: l }))), f;
1733
1733
  }).filter((c) => c !== void 0), r;
1734
1734
  }
1735
- function ti(t) {
1735
+ function ii(t) {
1736
1736
  return t !== F.PieNoAggregation && t !== F.BarAndLineNoAggregation && t !== F.BarAndLineSplitByNoAggregation;
1737
1737
  }
1738
1738
  function ts(t) {
@@ -1815,7 +1815,7 @@ function ss(t) {
1815
1815
  }
1816
1816
  function os(t) {
1817
1817
  const { uniqueQuery: e, splitByField: i, x: a } = t, r = [...e.groupByFieldsForStatistics ?? [], a, i].filter(
1818
- (n) => n !== void 0 && n.trim() !== "" && n !== Vt
1818
+ (n) => n !== void 0 && n.trim() !== "" && n !== Rt
1819
1819
  );
1820
1820
  e.groupByFieldsForStatistics = Array.from(new Set(r));
1821
1821
  }
@@ -1946,32 +1946,32 @@ function yi(t) {
1946
1946
  fetchFullBoxPlotData: s,
1947
1947
  returnFeaturesExtent: o,
1948
1948
  chartLimits: u
1949
- } = t, c = e.series, l = k(c), d = Re(e), { query: f, x: m } = d, y = "y" in d ? d.y : void 0, p = Pe({
1949
+ } = t, c = e.series, l = k(c), d = Re(e), { query: f, x: m } = d, y = "y" in d ? d.y : void 0, g = Pe({
1950
1950
  xAxisValueFormatType: xe(e),
1951
1951
  setTimeBinningInfoWhenNotProvided: n,
1952
1952
  seriesConfig: d,
1953
1953
  queryObject: a
1954
1954
  });
1955
- let g = /* @__PURE__ */ new Map(), S = !1, b = !1, v = !1, x = !1, B = !1, N = {};
1955
+ let p = /* @__PURE__ */ new Map(), S = !1, x = !1, v = !1, b = !1, B = !1, N = {};
1956
1956
  if (f !== void 0) {
1957
1957
  N = He(f);
1958
1958
  const $ = te(f.where);
1959
1959
  let M = "";
1960
1960
  switch (i.fetchNullValues !== !0 && (m !== C.boxPlot.boxPlotCategory && (M = `${m} IS NOT NULL`), $.trim() !== "" && $ !== m && !Ie(f.where) && (M = Y([M, `${$} IS NOT NULL`]))), l) {
1961
1961
  case F.BarAndLineSplitBy: {
1962
- g = ss(c), x = !0, S = !0, b = !0;
1962
+ p = ss(c), b = !0, S = !0, x = !0;
1963
1963
  break;
1964
1964
  }
1965
1965
  case F.BarAndLineMultiFields:
1966
- cs(N, c), b = !0;
1966
+ cs(N, c), x = !0;
1967
1967
  break;
1968
1968
  case F.PieFromFields:
1969
1969
  case F.BarAndLineFromFields:
1970
- M = "", v = !0, b = !0;
1970
+ M = "", v = !0, x = !0;
1971
1971
  break;
1972
1972
  case F.BarAndLineMonoField:
1973
1973
  case F.PieFromCategory:
1974
- b = !0;
1974
+ x = !0;
1975
1975
  break;
1976
1976
  case F.BoxPlotMonoField:
1977
1977
  case F.BoxPlotMultiFields:
@@ -1982,27 +1982,27 @@ function yi(t) {
1982
1982
  case F.BoxPlotMonoFieldAndSplitBy:
1983
1983
  case F.BoxPlotMonoFieldAndCategoryAndSplitBy:
1984
1984
  case F.BoxPlotMultiFieldsAndSplitBy: {
1985
- B = !0, x = !0, v = !0;
1985
+ B = !0, b = !0, v = !0;
1986
1986
  break;
1987
1987
  }
1988
1988
  case F.PieNoAggregation:
1989
1989
  case F.BarAndLineNoAggregation:
1990
1990
  case F.BarAndLineSplitByNoAggregation:
1991
1991
  }
1992
- if (b && ls({
1992
+ if (x && ls({
1993
1993
  uniqueQuery: N,
1994
1994
  y,
1995
1995
  useGenericOutStatFieldName: S,
1996
1996
  queryObject: a,
1997
1997
  chartSubType: l,
1998
- isTimeBinningSeries: p,
1998
+ isTimeBinningSeries: g,
1999
1999
  returnFeaturesExtent: o,
2000
2000
  splitByField: $
2001
- }), x && os({ uniqueQuery: N, splitByField: $, x: m }), de(e) && B && (N.outStatistics = us({ chartConfig: e, fetchFullBoxPlotData: s })), v ? delete N.orderByFields : i.orderByFields !== void 0 && (N.orderByFields = i.orderByFields.filter((q) => {
2001
+ }), b && os({ uniqueQuery: N, splitByField: $, x: m }), de(e) && B && (N.outStatistics = us({ chartConfig: e, fetchFullBoxPlotData: s })), v ? delete N.orderByFields : i.orderByFields !== void 0 && (N.orderByFields = i.orderByFields.filter((q) => {
2002
2002
  const G = q.split(" ");
2003
2003
  return !oe(G[0]);
2004
- })), p && be(c[0])) {
2005
- const q = z(a), { idFields: G } = $t(q);
2004
+ })), g && be(c[0])) {
2005
+ const q = z(a), { idFields: G } = kt(q);
2006
2006
  Ce(a).find((H) => H.name === m)?.type !== U.DateOnly && G && ds({
2007
2007
  uniqueQuery: N,
2008
2008
  x: m,
@@ -2017,7 +2017,7 @@ function yi(t) {
2017
2017
  }
2018
2018
  Da({ chartConfig: e, uniqueQuery: N, chartLimits: u });
2019
2019
  const { gdbVersion: T, geometry: w, distance: L, units: A, timeExtent: I, where: P, objectIds: O, spatialRelationship: V } = i;
2020
- return T !== void 0 && (N.gdbVersion = T), w !== void 0 && (N.geometry = w), L !== void 0 && (N.distance = L), A !== void 0 && (N.units = A), I !== void 0 && (N.timeExtent = I), O !== void 0 && (N.objectIds = O), V !== void 0 && (N.spatialRelationship = V), P !== void 0 && (N.where = Y([N.where, P])), { uniqueQuery: N, mapToStatField: g };
2020
+ return T !== void 0 && (N.gdbVersion = T), w !== void 0 && (N.geometry = w), L !== void 0 && (N.distance = L), A !== void 0 && (N.units = A), I !== void 0 && (N.timeExtent = I), O !== void 0 && (N.objectIds = O), V !== void 0 && (N.spatialRelationship = V), P !== void 0 && (N.where = Y([N.where, P])), { uniqueQuery: N, mapToStatField: p };
2021
2021
  }
2022
2022
  const le = {
2023
2023
  Default: "defaultError",
@@ -2074,36 +2074,38 @@ function ms(t) {
2074
2074
  return e;
2075
2075
  }
2076
2076
  async function ys(t) {
2077
- const { queryConfig: e, chartConfig: i, queryObject: a, abortKey: r, abortSignal: n, filterByViewExtent: s, view: o } = t, u = i.series[0], { x: c, dataTransformationType: l, binCount: d } = u, f = z(a);
2077
+ const { chartConfig: e, queryConfig: i, queryObject: a, filterByViewExtent: r, view: n, abortKey: s, abortSignal: o } = t, u = e.series[0], { x: c, dataTransformationType: l, binCount: d } = u, f = z(a);
2078
2078
  if (!ie(f))
2079
2079
  throw new re(le.LayerNotSupported);
2080
- f.loaded || await f.load({ signal: n });
2081
- const m = await dt(f, n);
2080
+ f.loaded || await f.load({ signal: o });
2081
+ const m = await dt(f, o);
2082
2082
  if (!m)
2083
2083
  throw new Error("Raster info is not available for the layer.");
2084
- const y = ft(e.geometry) ?? f.fullExtent, p = m.bandCount === 1 ? 0 : m.bandInfos.findIndex((b) => b.name === c);
2085
- let g, S;
2086
- if (s !== !0 && (l === void 0 || l === Z.None) && d && Array.isArray(m.histograms) && m.histograms.length > p && m.histograms[p].size % d === 0 && Array.isArray(m.statistics) && m?.statistics?.length > p)
2087
- g = m.histograms[p], S = m.statistics[p];
2084
+ const y = ft(i.geometry) ?? f.fullExtent, g = Ot(f, c);
2085
+ if (g < 0)
2086
+ throw new Error("Band ID not found for `${x}`.");
2087
+ let p, S;
2088
+ if (!r && (l === void 0 || l === Z.None) && d && Array.isArray(m.histograms) && m.histograms.length > g && m.histograms[g].size % d === 0 && Array.isArray(m.statistics) && m?.statistics?.length > g)
2089
+ p = m.histograms[g], S = m.statistics[g];
2088
2090
  else {
2089
- let b, v, x;
2090
- if (o)
2091
- b = o.resolution, v = o.resolution, x = o.spatialReference;
2091
+ let x, v, b;
2092
+ if (r && n)
2093
+ x = n.resolution, v = n.resolution, b = n.spatialReference;
2092
2094
  else {
2093
2095
  const w = fs, L = 2, A = m.width, I = m.height, P = Math.max(
2094
2096
  0,
2095
2097
  Math.ceil(Math.log(Math.max(A, I) / w) / Math.log(L))
2096
2098
  ), O = L ** P;
2097
- b = m.pixelSize.x * O, v = m.pixelSize.y * O, x = f.spatialReference;
2099
+ x = m.pixelSize.x * O, v = m.pixelSize.y * O, b = f.spatialReference;
2098
2100
  }
2099
2101
  const B = new da({
2100
- x: b,
2102
+ x,
2101
2103
  y: v,
2102
- spatialReference: x
2104
+ spatialReference: b
2103
2105
  }), N = ms(l), T = await Gr(
2104
2106
  f,
2105
2107
  {
2106
- bandIds: [p],
2108
+ bandIds: [g],
2107
2109
  geometry: y,
2108
2110
  histogramSize: d ?? void 0,
2109
2111
  pixelSize: B,
@@ -2111,12 +2113,12 @@ async function ys(t) {
2111
2113
  downsampleOnly: !0
2112
2114
  },
2113
2115
  {
2114
- signal: n ?? (r !== void 0 ? Ge.get(r)?.signal : void 0)
2116
+ signal: o ?? (s !== void 0 ? Ge.get(s)?.signal : void 0)
2115
2117
  }
2116
2118
  );
2117
- S = T.statistics[0], g = T.histograms[0];
2119
+ S = T.statistics[0], p = T.histograms[0];
2118
2120
  }
2119
- return { histogram: g, statistics: S };
2121
+ return { histogram: p, statistics: S };
2120
2122
  }
2121
2123
  function gs(t, e) {
2122
2124
  const i = [], a = (t.max - t.min) / t.size;
@@ -2146,47 +2148,48 @@ function gs(t, e) {
2146
2148
  return i;
2147
2149
  }
2148
2150
  async function ps(t) {
2149
- const { chartConfig: e, queryConfig: i, queryObject: a, abortKey: r, abortSignal: n, view: s } = t;
2151
+ const { chartConfig: e, queryConfig: i, queryObject: a, filterByViewExtent: r, abortKey: n, abortSignal: s, view: o } = t;
2150
2152
  if (a === void 0)
2151
2153
  throw new Error("QueryObject is undefined!");
2152
- let o;
2153
- const { statistics: u, histogram: c } = await ys({
2154
+ let u;
2155
+ const { statistics: c, histogram: l } = await ys({
2154
2156
  queryObject: a,
2155
2157
  chartConfig: e,
2156
2158
  queryConfig: i,
2157
- view: s,
2158
- abortKey: r,
2159
- abortSignal: n
2159
+ filterByViewExtent: r,
2160
+ view: o,
2161
+ abortKey: n,
2162
+ abortSignal: s
2160
2163
  });
2161
- if (u && c) {
2162
- const l = e.series[0].binCount ?? void 0, d = gs(c, l);
2163
- d.length > 0 ? o = {
2164
+ if (c && l) {
2165
+ const d = e.series[0].binCount ?? void 0, f = gs(l, d);
2166
+ f.length > 0 ? u = {
2164
2167
  valid: !0,
2165
- count: d.length,
2168
+ count: f.length,
2166
2169
  data: {
2167
- bins: d,
2168
- min: u.min,
2169
- max: u.max,
2170
- mean: u.avg,
2171
- median: u.median,
2172
- stddev: u.stddev,
2173
- sum: u.sum ?? u.avg * u.count,
2174
- count: u.count
2170
+ bins: f,
2171
+ min: c.min,
2172
+ max: c.max,
2173
+ mean: c.avg,
2174
+ median: c.median,
2175
+ stddev: c.stddev,
2176
+ sum: c.sum ?? c.avg * c.count,
2177
+ count: c.count
2175
2178
  }
2176
- } : o = {
2179
+ } : u = {
2177
2180
  valid: !1,
2178
2181
  invalidType: j.EmptyDataSet
2179
2182
  };
2180
2183
  } else
2181
- o = {
2184
+ u = {
2182
2185
  valid: !1,
2183
2186
  invalidType: j.BadData
2184
2187
  };
2185
- return o;
2188
+ return u;
2186
2189
  }
2187
2190
  const hs = (t) => t.series[0].x;
2188
2191
  function Ss(t) {
2189
- const { chartConfig: e, layer: i, selectionDataItems: a } = t, r = ai(i, hs(e)), s = a.map((c) => [
2192
+ const { chartConfig: e, layer: i, selectionDataItems: a } = t, r = Ot(i, hs(e)), s = a.map((c) => [
2190
2193
  c.minValue,
2191
2194
  c.maxValue
2192
2195
  ]).reduce((c, l, d) => {
@@ -2289,17 +2292,17 @@ function Cs(t) {
2289
2292
  async function vs(t) {
2290
2293
  const { queryObject: e, queryConfig: i, outputFormat: a, dataFormat: r, outAnalytics: n, errorStrings: s, abortSignal: o } = t, { where: u, geometry: c, distance: l, units: d, timeExtent: f } = i;
2291
2294
  let m;
2292
- const y = z(e), p = ge(y);
2293
- if (p) {
2294
- const S = { where: Y([u, p.definitionExpression]) }, b = { query: S, signal: o }, v = ft(c)?.extent?.toJSON();
2295
+ const y = z(e), g = ge(y);
2296
+ if (g) {
2297
+ const S = { where: Y([u, g.definitionExpression]) }, x = { query: S, signal: o }, v = ft(c)?.extent?.toJSON();
2295
2298
  if (v !== void 0) {
2296
2299
  const B = Cs(d), { xmin: N, ymin: T, xmax: w, ymax: L } = v;
2297
2300
  S.geometryType = "esriGeometryEnvelope", S.geometry = `${N},${T},${w},${L}`, l !== void 0 && (S.distance = l.toString()), B !== void 0 && (S.units = B, c?.spatialReference?.wkid != null && (S.inSR = c.spatialReference.wkid.toString()));
2298
2301
  }
2299
2302
  f && (S.time = `${f[0]},${f[1]}`);
2300
- const x = `${p.url}/${p.layerId}/queryAnalytic?f=${a}&dataFormat=${r}&outAnalytics=${n}`;
2303
+ const b = `${g.url}/${g.layerId}/queryAnalytic?f=${a}&dataFormat=${r}&outAnalytics=${n}`;
2301
2304
  try {
2302
- m = (await Lt(x, b)).data?.features?.[0]?.attributes;
2305
+ m = (await Lt(b, x)).data?.features?.[0]?.attributes;
2303
2306
  } catch (B) {
2304
2307
  const N = s ?? (await mt(
2305
2308
  ze(document.documentElement).t9nLocale,
@@ -2323,21 +2326,21 @@ async function Bs(t) {
2323
2326
  let u;
2324
2327
  const c = z(i), l = yn(c);
2325
2328
  if (l && i && "queryAttributeBins" in i) {
2326
- const { x: d, y: f, xTemporalBinning: m, yTemporalBinning: y } = e.series[0], { outTimeZone: p, firstDayOfWeek: g, includeLeapDay: S } = e, b = Fo({
2329
+ const { x: d, y: f, xTemporalBinning: m, yTemporalBinning: y } = e.series[0], { outTimeZone: g, firstDayOfWeek: p, includeLeapDay: S } = e, x = Fo({
2327
2330
  queryObject: i,
2328
2331
  queryConfig: a,
2329
2332
  x: d,
2330
2333
  y: f,
2331
2334
  xTemporalBinning: m,
2332
2335
  yTemporalBinning: y,
2333
- configTimeZone: p,
2334
- firstDayOfWeek: g,
2336
+ configTimeZone: g,
2337
+ firstDayOfWeek: p,
2335
2338
  includeLeapDay: S,
2336
2339
  view: r,
2337
2340
  syncViewTimeZone: n
2338
2341
  });
2339
2342
  try {
2340
- u = await i.queryAttributeBins(b, { signal: o });
2343
+ u = await i.queryAttributeBins(x, { signal: o });
2341
2344
  } catch (v) {
2342
2345
  throw new re(le.QueryFeaturesError, s.errors.queryError, v);
2343
2346
  }
@@ -2404,11 +2407,11 @@ async function xt(t) {
2404
2407
  const { queryObject: e, queryConfig: i, abortKey: a, errorStrings: r, abortSignal: n } = t, { outStatistics: s } = i, o = /* @__PURE__ */ new Map();
2405
2408
  if (s !== void 0 && s.length > 0) {
2406
2409
  const u = s.map((f) => {
2407
- const { statisticType: m, onStatisticField: y, outStatisticFieldName: p } = f;
2410
+ const { statisticType: m, onStatisticField: y, outStatisticFieldName: g } = f;
2408
2411
  return {
2409
2412
  statisticType: m,
2410
2413
  onStatisticField: y,
2411
- outStatisticFieldName: p?.toUpperCase()
2414
+ outStatisticFieldName: g?.toUpperCase()
2412
2415
  };
2413
2416
  });
2414
2417
  i.outStatistics = u, delete i.num, delete i.orderByFields;
@@ -2458,7 +2461,7 @@ async function Ia(t) {
2458
2461
  const { idField: f, isTraditionalTypeOID: m } = ve(u), y = m ? f : "*";
2459
2462
  d.outFields = [y], o = (await e.queryFeatures(d, {
2460
2463
  signal: c
2461
- })).features.map((g) => g.getObjectId());
2464
+ })).features.map((p) => p.getObjectId());
2462
2465
  }
2463
2466
  else
2464
2467
  o = (await e.queryFeatures(d, { signal: c })).features;
@@ -2493,8 +2496,8 @@ async function Fe(t) {
2493
2496
  const l = z(e), d = r ?? 1, f = za(l);
2494
2497
  if (n !== !0 && d > f && l?.capabilities?.query.supportsPagination) {
2495
2498
  let m = 0, y = 0;
2496
- const p = Math.ceil(d / f), g = Math.ceil(p / W.maxParallelRequests), S = [];
2497
- for (; y < g; ) {
2499
+ const g = Math.ceil(d / f), p = Math.ceil(g / W.maxParallelRequests), S = [];
2500
+ for (; y < p; ) {
2498
2501
  m = y * W.maxParallelRequests * f;
2499
2502
  const v = ws({
2500
2503
  queryConfig: { ...i, start: m },
@@ -2574,12 +2577,12 @@ async function Ps(t) {
2574
2577
  d = (await e.queryAttributeBins(y, { signal: l })).features;
2575
2578
  }
2576
2579
  } catch (y) {
2577
- const p = o ?? (await mt(
2580
+ const g = o ?? (await mt(
2578
2581
  ze(document.documentElement).t9nLocale,
2579
2582
  gt("./assets/common/t9n"),
2580
2583
  "messages."
2581
2584
  )).errorStrings;
2582
- throw new re(le.QueryFeaturesError, p.errors.queryError, y);
2585
+ throw new re(le.QueryFeaturesError, g.errors.queryError, y);
2583
2586
  }
2584
2587
  }
2585
2588
  if (f === !1) {
@@ -2636,23 +2639,23 @@ async function Is(t) {
2636
2639
  dataFormat: f,
2637
2640
  outputFormat: m,
2638
2641
  typeKey: y,
2639
- typeValue: p,
2640
- fieldValue: g,
2642
+ typeValue: g,
2643
+ fieldValue: p,
2641
2644
  slopePropertyList: S,
2642
- interceptPropertyList: b,
2645
+ interceptPropertyList: x,
2643
2646
  r2PropertyList: v
2644
- } = xs, x = `[{"${y}": "${p}", "${g}":"${u},${c}"}]`, B = await vs({
2647
+ } = xs, b = `[{"${y}": "${g}", "${p}":"${u},${c}"}]`, B = await vs({
2645
2648
  queryObject: i,
2646
2649
  queryConfig: r,
2647
2650
  outputFormat: m,
2648
2651
  dataFormat: f,
2649
- outAnalytics: x,
2652
+ outAnalytics: b,
2650
2653
  errorStrings: n,
2651
2654
  abortSignal: s
2652
2655
  });
2653
2656
  if (B !== void 0) {
2654
2657
  let N = Number.NaN, T = Number.NaN;
2655
- const { expr: w } = zt(B, S), { expr: L } = zt(B, b), { expr: A } = zt(B, v);
2658
+ const { expr: w } = Wt(B, S), { expr: L } = Wt(B, x), { expr: A } = Wt(B, v);
2656
2659
  w !== void 0 && Number.isFinite(B[w]) && (N = B[w]), L !== void 0 && Number.isFinite(B[L]) && (T = B[L]), A !== void 0 && Number.isFinite(B[A]) && (l = B[A]);
2657
2660
  const { dataContextXMinField: I, dataContextXMaxField: P, dataContextYMinField: O, dataContextYMaxField: V } = C.scatterplotAggregationFields, $ = e.get(I) ?? Number.NaN, M = e.get(P) ?? Number.NaN, q = e.get(O) ?? Number.NaN, G = e.get(V) ?? Number.NaN, X = (M - $) / 100;
2658
2661
  let H = $ - X, ae = Number.NaN;
@@ -2758,12 +2761,12 @@ function Qs(t) {
2758
2761
  const { chartConfig: e, layer: i, selectionDataItems: a } = t;
2759
2762
  let r;
2760
2763
  if (a.length > 0) {
2761
- const { x: n, y: s } = ks(e), o = ai(i, n), u = ai(i, s);
2764
+ const { x: n, y: s } = ks(e), o = Ot(i, n), u = Ot(i, s);
2762
2765
  if (o !== void 0 && u !== void 0 && o !== u) {
2763
2766
  let c = Number.MAX_SAFE_INTEGER, l = Number.MIN_SAFE_INTEGER, d = Number.MAX_SAFE_INTEGER, f = Number.MIN_SAFE_INTEGER;
2764
2767
  a.forEach((m) => {
2765
- const y = m[n], p = m[s];
2766
- typeof y == "number" && (y < c && (c = y), y > l && (l = y)), typeof p == "number" && (p < d && (d = p), p > f && (f = p));
2768
+ const y = m[n], g = m[s];
2769
+ typeof y == "number" && (y < c && (c = y), y > l && (l = y)), typeof g == "number" && (g < d && (d = g), g > f && (f = g));
2767
2770
  }), c !== Number.MAX_SAFE_INTEGER && l !== Number.MIN_SAFE_INTEGER && d !== Number.MAX_SAFE_INTEGER && f !== Number.MIN_SAFE_INTEGER && (r = {
2768
2771
  xBandId: o,
2769
2772
  yBandId: u,
@@ -2936,35 +2939,35 @@ async function zs(t) {
2936
2939
  valid: !0
2937
2940
  };
2938
2941
  else {
2939
- const m = i.groupByFieldsForStatistics?.[0] ?? "", y = f.some((S) => S.query?.fetchNullValues), p = /* @__PURE__ */ new Map();
2942
+ const m = i.groupByFieldsForStatistics?.[0] ?? "", y = f.some((S) => S.query?.fetchNullValues), g = /* @__PURE__ */ new Map();
2940
2943
  for (const S of d) {
2941
- const { groupKey: b } = Ei(S.attributes[m], y);
2942
- b === C.nullValue && !y || (p.has(b) || p.set(b, []), p.get(b).push(S.attributes));
2944
+ const { groupKey: x } = Ei(S.attributes[m], y);
2945
+ x === C.nullValue && !y || (g.has(x) || g.set(x, []), g.get(x).push(S.attributes));
2943
2946
  }
2944
- const g = [];
2945
- p.forEach((S) => {
2946
- const b = {}, v = S[0][m], { display: x, original: B } = Ei(v, y);
2947
- b[m] = x, b[C.xAxisField] = x, b[C.originalCategoryValue] = B, f.forEach((N) => {
2947
+ const p = [];
2948
+ g.forEach((S) => {
2949
+ const x = {}, v = S[0][m], { display: b, original: B } = Ei(v, y);
2950
+ x[m] = b, x[C.xAxisField] = b, x[C.originalCategoryValue] = B, f.forEach((N) => {
2948
2951
  const T = N.query?.outStatistics?.[0];
2949
2952
  if (!T) {
2950
2953
  const { name: O } = N;
2951
- b[O] = S[0][O];
2954
+ x[O] = S[0][O];
2952
2955
  return;
2953
2956
  }
2954
2957
  let w = S;
2955
2958
  const L = N.query?.where;
2956
2959
  L && (w = S.filter((O) => _s(O, L)));
2957
2960
  const A = T.statisticType, I = T.onStatisticField, P = T.outStatisticFieldName;
2958
- b[P] = js({
2961
+ x[P] = js({
2959
2962
  features: w,
2960
2963
  aggregationType: A,
2961
2964
  onField: I
2962
2965
  });
2963
- }), g.push(b);
2966
+ }), p.push(x);
2964
2967
  }), u = {
2965
2968
  valid: !0,
2966
2969
  data: {
2967
- dataItems: g
2970
+ dataItems: p
2968
2971
  }
2969
2972
  };
2970
2973
  }
@@ -3027,7 +3030,7 @@ function Us(t) {
3027
3030
  }
3028
3031
  return r;
3029
3032
  }
3030
- const ii = "PixelID", Ys = "Pixel ID", Zs = [
3033
+ const ai = "PixelID", Ys = "Pixel ID", Zs = [
3031
3034
  h.BarSeries,
3032
3035
  h.HistogramSeries,
3033
3036
  h.ScatterSeries
@@ -3076,8 +3079,8 @@ function Ra(t) {
3076
3079
  const a = i.attributeTable.fields, r = a.find((n) => n.type === "oid")?.name;
3077
3080
  r ? e = r : e = a.find((s) => s.name.toLowerCase() === "value")?.name;
3078
3081
  } else
3079
- e = ii;
3080
- return e ?? ii;
3082
+ e = ai;
3083
+ return e ?? ai;
3081
3084
  }
3082
3085
  function $a(t) {
3083
3086
  const { layer: e, chartType: i, rasterInfo: a, popupTemplateFieldInfosEnabled: r } = t;
@@ -3109,7 +3112,7 @@ function qi(t) {
3109
3112
  )?.label;
3110
3113
  return d && d !== l.name && (l.alias = d), l;
3111
3114
  }), n = [{
3112
- name: ii,
3115
+ name: ai,
3113
3116
  alias: Ys,
3114
3117
  type: U.OID
3115
3118
  }, ...o];
@@ -3126,34 +3129,34 @@ async function hd(t, e) {
3126
3129
  const i = await dt(t);
3127
3130
  return $a({ layer: t, rasterInfo: i, popupTemplateFieldInfosEnabled: e });
3128
3131
  }
3129
- const ka = Et(
3132
+ const ka = qt(
3130
3133
  async (t, e) => {
3131
3134
  const i = {}, a = t.layerDefinition;
3132
3135
  i.definitionExpression = a?.definitionExpression, i.id = t.id, t.url !== void 0 && (i.url = t.url), t.itemId !== void 0 && t.layerDefinition?.id !== void 0 && (i.portalItem = { id: t.itemId });
3133
3136
  const r = new Xr(i);
3134
- return await kt(r, e), r;
3137
+ return await Qt(r, e), r;
3135
3138
  },
3136
3139
  (t) => JSON.stringify(t, Object.keys(t).sort())
3137
3140
  // stringify with sorted keys
3138
- ), Qa = Et(
3141
+ ), Qa = qt(
3139
3142
  async (t, e) => {
3140
3143
  const i = {};
3141
3144
  i.id = t.id, t.url !== void 0 && (i.url = t.url), t.itemId !== void 0 && (i.portalItem = { id: t.itemId });
3142
3145
  const a = new Jr(i);
3143
- return await kt(a, e), a;
3146
+ return await Qt(a, e), a;
3144
3147
  },
3145
3148
  (t) => JSON.stringify(t, Object.keys(t).sort())
3146
3149
  // stringify with sorted keys
3147
- ), Ks = Et(
3150
+ ), Ks = qt(
3148
3151
  async (t, e) => {
3149
3152
  const i = {};
3150
3153
  i.id = t.id, t.url !== void 0 && (i.url = t.url), t.itemId !== void 0 && (i.portalItem = { id: t.itemId });
3151
3154
  const a = new Kr(i);
3152
- return await kt(a, e), a;
3155
+ return await Qt(a, e), a;
3153
3156
  },
3154
3157
  (t) => JSON.stringify(t, Object.keys(t).sort())
3155
3158
  // stringify with sorted keys
3156
- ), ai = (t, e) => {
3159
+ ), Ot = (t, e) => {
3157
3160
  let i = -1;
3158
3161
  if (!t.loaded)
3159
3162
  throw new Error("Raster layer must be loaded to get its band ID by name");
@@ -3202,7 +3205,7 @@ async function eo(t) {
3202
3205
  if (e !== void 0)
3203
3206
  try {
3204
3207
  const o = n && Ge.get(n)?.signal || void 0, u = z(e);
3205
- u.loaded || await kt(u, o);
3208
+ u.loaded || await Qt(u, o);
3206
3209
  const l = {
3207
3210
  geometry: ft(i.geometry) ?? u.fullExtent,
3208
3211
  autoResample: !0,
@@ -3247,7 +3250,7 @@ function io(t) {
3247
3250
  let e, i, a;
3248
3251
  return t !== void 0 && (e = t.type, (e === se.UniqueValue || e === se.ClassBreaks) && (i = t.field ?? void 0, e === se.ClassBreaks && (a = t.normalizationField ?? void 0))), { rendererType: e, rendererField: i, rendererNormalizationField: a };
3249
3252
  }
3250
- const gi = Et(
3253
+ const gi = qt(
3251
3254
  async (t, e) => {
3252
3255
  const i = t.featureCollection;
3253
3256
  let a, r;
@@ -3329,7 +3332,7 @@ function Ce(t, e) {
3329
3332
  function xd(t, e = []) {
3330
3333
  return e.find((i) => i.name === t);
3331
3334
  }
3332
- function $t(t) {
3335
+ function kt(t) {
3333
3336
  let e, i = !1;
3334
3337
  if (ie(t))
3335
3338
  e = [Ra(t)];
@@ -3344,7 +3347,7 @@ function ve(t) {
3344
3347
  if (ie(t))
3345
3348
  e = Ra(t);
3346
3349
  else if (t) {
3347
- const a = $t(t);
3350
+ const a = kt(t);
3348
3351
  i = a.isTraditionalTypeOID, a.idFields && (e = a.idFields[0]);
3349
3352
  }
3350
3353
  return { idField: e, isTraditionalTypeOID: i };
@@ -3452,18 +3455,18 @@ function Ha(t) {
3452
3455
  distance: f,
3453
3456
  units: m,
3454
3457
  objectIds: y,
3455
- spatialRelationship: p
3458
+ spatialRelationship: g
3456
3459
  } = o ?? {}, {
3457
- where: g,
3460
+ where: p,
3458
3461
  gdbVersion: S,
3459
- timeExtent: b,
3462
+ timeExtent: x,
3460
3463
  geometry: v,
3461
- distance: x,
3464
+ distance: b,
3462
3465
  units: B,
3463
3466
  objectIds: N,
3464
3467
  spatialRelationship: T
3465
3468
  } = a ?? {}, w = s[0], { query: L } = w, { where: A } = L ?? {}, I = k(s), P = { ...L };
3466
- return P.where = Y([u, g]), I !== F.BarAndLineSplitBy && I !== F.BoxPlotMonoFieldAndSplitBy && I !== F.BoxPlotMonoFieldAndCategoryAndSplitBy && I !== F.BoxPlotMultiFieldsAndSplitBy && I !== F.BarAndLineSplitByNoAggregation && (P.where = Y([P.where, A])), i.orderOptions?.orderByFields !== void 0 && (P.orderByFields = i.orderOptions.orderByFields), P.gdbVersion = S ?? c, P.timeExtent = yo(n?.timeExtent, b ?? l), P.geometry = ie(e) ? to({
3469
+ return P.where = Y([u, p]), I !== F.BarAndLineSplitBy && I !== F.BoxPlotMonoFieldAndSplitBy && I !== F.BoxPlotMonoFieldAndCategoryAndSplitBy && I !== F.BoxPlotMultiFieldsAndSplitBy && I !== F.BarAndLineSplitByNoAggregation && (P.where = Y([P.where, A])), i.orderOptions?.orderByFields !== void 0 && (P.orderByFields = i.orderOptions.orderByFields), P.gdbVersion = S ?? c, P.timeExtent = yo(n?.timeExtent, x ?? l), P.geometry = ie(e) ? to({
3467
3470
  queryObject: e,
3468
3471
  defaultGeometry: v ?? d,
3469
3472
  ignoreViewExtent: r,
@@ -3472,7 +3475,7 @@ function Ha(t) {
3472
3475
  queryObject: e,
3473
3476
  defaultGeometry: v ?? d,
3474
3477
  ignoreViewExtent: r
3475
- }), P.distance = x ?? f, P.units = B ?? m, P.objectIds = N ?? y, P.spatialRelationship = T ?? p, L?.outStatistics?.[0]?.statisticType === D.Count && (P.returnDistinctValues = L?.returnDistinctValues ?? !1), P?.outStatistics?.forEach((O) => {
3478
+ }), P.distance = b ?? f, P.units = B ?? m, P.objectIds = N ?? y, P.spatialRelationship = T ?? g, L?.outStatistics?.[0]?.statisticType === D.Count && (P.returnDistinctValues = L?.returnDistinctValues ?? !1), P?.outStatistics?.forEach((O) => {
3476
3479
  mi(O) && !("statisticParameters" in O) && (O.statisticParameters = {
3477
3480
  value: W.defaultStatParameterValue
3478
3481
  });
@@ -3529,7 +3532,7 @@ function Ad(t) {
3529
3532
  const wd = {
3530
3533
  getServerRestInfo: ja
3531
3534
  };
3532
- async function kt(t, e) {
3535
+ async function Qt(t, e) {
3533
3536
  await t.load({ signal: e }), (la(t) || ua(t)) && await t.generateRasterInfo(t.rasterFunction, {
3534
3537
  signal: e
3535
3538
  });
@@ -3582,23 +3585,23 @@ function ft(t) {
3582
3585
  function Wa(t) {
3583
3586
  return t === void 0 ? ["*"] : Array.from(new Set(t));
3584
3587
  }
3585
- function Qt(t) {
3586
- const { queryType: e, queryObject: i, queryConfig: a, view: r, configTimeZone: n, dateField: s, useViewTimeZone: o } = t, { where: u, outStatistics: c, geometry: l, distance: d, units: f, timeExtent: m, returnDistinctValues: y } = a ?? {}, p = z(i);
3587
- let S = ge(p)?.createQuery() ?? new Br(), b;
3588
- const v = $t(p).idFields;
3589
- if (e === "AttributeBinsQuery" && a?.objectIds?.[0] !== void 0 && v && (b = `${v} IN (${a.objectIds.join(",")})`), e === "AttributeBinsQuery" && (S = new vr(S.toJSON()), Ce(i).find((T) => T.name === s)?.type !== U.DateOnly)) {
3588
+ function _t(t) {
3589
+ const { queryType: e, queryObject: i, queryConfig: a, view: r, configTimeZone: n, dateField: s, useViewTimeZone: o } = t, { where: u, outStatistics: c, geometry: l, distance: d, units: f, timeExtent: m, returnDistinctValues: y } = a ?? {}, g = z(i);
3590
+ let S = ge(g)?.createQuery() ?? new Br(), x;
3591
+ const v = kt(g).idFields;
3592
+ if (e === "AttributeBinsQuery" && a?.objectIds?.[0] !== void 0 && v && (x = `${v} IN (${a.objectIds.join(",")})`), e === "AttributeBinsQuery" && (S = new vr(S.toJSON()), Ce(i).find((T) => T.name === s)?.type !== U.DateOnly)) {
3590
3593
  const T = Intl.DateTimeFormat().resolvedOptions().timeZone, w = o && r && "timeZone" in r ? r.timeZone : void 0;
3591
3594
  let L = n ?? w ?? T;
3592
3595
  L === "unknown" ? L = "Etc/UTC" : L === "system" && (L = T), S.outTimeZone = L;
3593
3596
  }
3594
- if (S.where = Y([S.where, u, b]), "returnDistinctValues" in S && (S.returnDistinctValues = y ?? !1), c !== void 0) {
3595
- const B = pn(p);
3597
+ if (S.where = Y([S.where, u, x]), "returnDistinctValues" in S && (S.returnDistinctValues = y ?? !1), c !== void 0) {
3598
+ const B = pn(g);
3596
3599
  S.outStatistics = c.filter(
3597
3600
  (N) => N.statisticType !== D.EnvelopeAggregate || B
3598
3601
  ).map((N) => Nr.fromJSON(N));
3599
3602
  }
3600
- const x = ft(l);
3601
- return x !== void 0 && (S.geometry = x, a?.spatialRelationship && (S.spatialRelationship = a.spatialRelationship), ya(p) && (d !== void 0 && (S.distance = d), f !== void 0 && (S.units = f))), m && (S.timeExtent = new Ki({
3603
+ const b = ft(l);
3604
+ return b !== void 0 && (S.geometry = b, a?.spatialRelationship && (S.spatialRelationship = a.spatialRelationship), ya(g) && (d !== void 0 && (S.distance = d), f !== void 0 && (S.units = f))), m && (S.timeExtent = new Ki({
3602
3605
  start: m?.[0],
3603
3606
  end: m?.[1]
3604
3607
  })), mo(S) && (S.cacheHint = !0), S;
@@ -3616,29 +3619,29 @@ function po(t) {
3616
3619
  return e;
3617
3620
  }
3618
3621
  function ho(t) {
3619
- const { queryObject: e, queryConfig: i, temporalBinning: a, dateField: r, splitByField: n, axisTimeZone: s, view: o, syncViewTimeZone: u } = t, { unit: c, size: l, timeAggregationType: d, start: f, end: m, offset: y, outTimeZone: p } = a, g = z(e), S = Qt({
3622
+ const { queryObject: e, queryConfig: i, temporalBinning: a, dateField: r, splitByField: n, axisTimeZone: s, view: o, syncViewTimeZone: u } = t, { unit: c, size: l, timeAggregationType: d, start: f, end: m, offset: y, outTimeZone: g } = a, p = z(e), S = _t({
3620
3623
  queryType: "AttributeBinsQuery",
3621
3624
  queryObject: e,
3622
3625
  queryConfig: i,
3623
3626
  // we look first into the outTimeZone defined at the series level (deprecated), then the tz coming from the axis config
3624
- configTimeZone: p ?? s,
3627
+ configTimeZone: g ?? s,
3625
3628
  view: o,
3626
3629
  dateField: r,
3627
3630
  useViewTimeZone: u ?? !1
3628
- }), b = Ea(r);
3629
- if (S.lowerBoundaryAlias = b.lowerBoundaryAlias, S.upperBoundaryAlias = b.upperBoundaryAlias, S.binParameters = {
3631
+ }), x = Ea(r);
3632
+ if (S.lowerBoundaryAlias = x.lowerBoundaryAlias, S.upperBoundaryAlias = x.upperBoundaryAlias, S.binParameters = {
3630
3633
  type: "date",
3631
3634
  field: r,
3632
3635
  interval: { unit: c, value: l },
3633
3636
  start: f,
3634
3637
  end: m,
3635
3638
  offset: y ? { unit: y.unit, value: y.size } : null
3636
- }, S.binParameters.type === "date" && (g?.capabilities?.queryAttributeBins?.supportsSnapToData && (S.binParameters.snapToData = po(d)), g?.capabilities?.queryAttributeBins?.supportsReturnFullIntervalBin && (S.binParameters.returnFullIntervalBin = !0)), !oe(n)) {
3637
- const x = ge(g)?.fields.find((B) => B.name === n)?.type;
3638
- (!x || x === "string" || x === "integer" || x === "small-integer" || x === "big-integer" || x === "double") && (S.binParameters.stackBy = {
3639
+ }, S.binParameters.type === "date" && (p?.capabilities?.queryAttributeBins?.supportsSnapToData && (S.binParameters.snapToData = po(d)), p?.capabilities?.queryAttributeBins?.supportsReturnFullIntervalBin && (S.binParameters.returnFullIntervalBin = !0)), !oe(n)) {
3640
+ const b = ge(p)?.fields.find((B) => B.name === n)?.type;
3641
+ (!b || b === "string" || b === "integer" || b === "small-integer" || b === "big-integer" || b === "double") && (S.binParameters.stackBy = {
3639
3642
  type: "field",
3640
3643
  value: n,
3641
- valueType: x === "string" ? "string" : "integer"
3644
+ valueType: b === "string" ? "string" : "integer"
3642
3645
  });
3643
3646
  }
3644
3647
  return S;
@@ -3737,7 +3740,7 @@ function Fo(t) {
3737
3740
  configTimeZone: c,
3738
3741
  view: l,
3739
3742
  syncViewTimeZone: d
3740
- } = t, f = Ce(e), m = f.find((N) => N.name === a)?.type, y = f.find((N) => N.name === r)?.type, p = Qt({
3743
+ } = t, f = Ce(e), m = f.find((N) => N.name === a)?.type, y = f.find((N) => N.name === r)?.type, g = _t({
3741
3744
  queryType: "AttributeBinsQuery",
3742
3745
  queryObject: e,
3743
3746
  queryConfig: i,
@@ -3746,18 +3749,18 @@ function Fo(t) {
3746
3749
  dateField: a,
3747
3750
  useViewTimeZone: d ?? !1
3748
3751
  });
3749
- p.binParameters = {
3752
+ g.binParameters = {
3750
3753
  type: "fixed-interval",
3751
3754
  interval: 1
3752
- }, p.lowerBoundaryAlias = W.heatChartLowerBoundaryAlias, p.upperBoundaryAlias = W.heatChartUpperBoundaryAlias, o !== void 0 && (p.binParameters.firstDayOfWeek = o);
3753
- const g = Ri({
3755
+ }, g.lowerBoundaryAlias = W.heatChartLowerBoundaryAlias, g.upperBoundaryAlias = W.heatChartUpperBoundaryAlias, o !== void 0 && (g.binParameters.firstDayOfWeek = o);
3756
+ const p = Ri({
3754
3757
  temporalBinning: n,
3755
3758
  xOrY: a,
3756
3759
  xOrYFieldType: m,
3757
3760
  addIntervalStatement: !1,
3758
3761
  includeLeapDay: u
3759
- }), { field: S, expression: b, start: v, end: x } = g;
3760
- S ? p.binParameters.field = S : b && (p.binParameters.expression = b, p.binParameters.expressionValueType = "integer", p.binParameters.type === "fixed-interval" && (v !== void 0 && (p.binParameters.start = v), x !== void 0 && (p.binParameters.end = x)));
3762
+ }), { field: S, expression: x, start: v, end: b } = p;
3763
+ S ? g.binParameters.field = S : x && (g.binParameters.expression = x, g.binParameters.expressionValueType = "integer", g.binParameters.type === "fixed-interval" && (v !== void 0 && (g.binParameters.start = v), b !== void 0 && (g.binParameters.end = b)));
3761
3764
  const B = Ri({
3762
3765
  temporalBinning: s,
3763
3766
  xOrY: r,
@@ -3765,15 +3768,15 @@ function Fo(t) {
3765
3768
  addIntervalStatement: !1,
3766
3769
  includeLeapDay: u
3767
3770
  });
3768
- return B.field ? p.binParameters.stackBy = { type: "field", value: B.field } : B.expression && (p.binParameters.stackBy = {
3771
+ return B.field ? g.binParameters.stackBy = { type: "field", value: B.field } : B.expression && (g.binParameters.stackBy = {
3769
3772
  type: "expression",
3770
3773
  value: B.expression,
3771
3774
  valueType: "integer",
3772
3775
  alias: r
3773
- }), p;
3776
+ }), g;
3774
3777
  }
3775
3778
  function bo(t) {
3776
- const { queryObject: e, queryConfig: i, xStep: a, xMin: r, xMax: n, x: s, y: o, yStep: u } = t, c = Qt({
3779
+ const { queryObject: e, queryConfig: i, xStep: a, xMin: r, xMax: n, x: s, y: o, yStep: u } = t, c = _t({
3777
3780
  queryType: "AttributeBinsQuery",
3778
3781
  queryObject: e,
3779
3782
  queryConfig: i,
@@ -3794,7 +3797,7 @@ function bo(t) {
3794
3797
  }, c;
3795
3798
  }
3796
3799
  function hi(t) {
3797
- const { queryObject: e, queryConfig: i, maxRecordCountFactor: a } = t, { groupByFieldsForStatistics: r, orderByFields: n, gdbVersion: s, start: o, num: u, outFields: c } = i ?? {}, l = Qt({
3800
+ const { queryObject: e, queryConfig: i, maxRecordCountFactor: a } = t, { groupByFieldsForStatistics: r, orderByFields: n, gdbVersion: s, start: o, num: u, outFields: c } = i ?? {}, l = _t({
3798
3801
  queryType: "Query",
3799
3802
  queryObject: e,
3800
3803
  queryConfig: i,
@@ -3854,7 +3857,7 @@ function Ua(t) {
3854
3857
  return e;
3855
3858
  }
3856
3859
  async function No(t) {
3857
- const { queryObject: e, fieldName: i, queryConfig: a, errorStrings: r, abortKey: n, abortSignal: s } = t, o = z(e), { idField: u, isTraditionalTypeOID: c } = ve(o), l = c ? u : "*", d = `${D.Count}_${u}`, f = `${D.Count}_${i}`, m = `${D.Minimum}_${i}`, y = `${D.Maximum}_${i}`, p = {
3860
+ const { queryObject: e, fieldName: i, queryConfig: a, errorStrings: r, abortKey: n, abortSignal: s } = t, o = z(e), { idField: u, isTraditionalTypeOID: c } = ve(o), l = c ? u : "*", d = `${D.Count}_${u}`, f = `${D.Count}_${i}`, m = `${D.Minimum}_${i}`, y = `${D.Maximum}_${i}`, g = {
3858
3861
  ...a,
3859
3862
  outStatistics: [
3860
3863
  {
@@ -3878,14 +3881,14 @@ async function No(t) {
3878
3881
  outStatisticFieldName: y
3879
3882
  }
3880
3883
  ]
3881
- }, g = await xt({
3884
+ }, p = await xt({
3882
3885
  queryObject: e,
3883
- queryConfig: p,
3886
+ queryConfig: g,
3884
3887
  errorStrings: r,
3885
3888
  abortKey: n,
3886
3889
  abortSignal: s
3887
- }), S = g.get(d) ?? Number.NaN, b = g.get(f) ?? Number.NaN, v = g.get(m) ?? Number.NaN, x = g.get(y) ?? Number.NaN;
3888
- return { countExcludingNulls: b, countIncludingNulls: S, min: v, max: x };
3890
+ }), S = p.get(d) ?? Number.NaN, x = p.get(f) ?? Number.NaN, v = p.get(m) ?? Number.NaN, b = p.get(y) ?? Number.NaN;
3891
+ return { countExcludingNulls: x, countIncludingNulls: S, min: v, max: b };
3889
3892
  }
3890
3893
  async function To(t) {
3891
3894
  const { queryConfig: e, chartConfig: i, queryObject: a, errorStrings: r, abortKey: n, abortSignal: s } = t, o = i.series[0], { x: u, dataTransformationType: c } = o;
@@ -3897,11 +3900,11 @@ async function To(t) {
3897
3900
  errorStrings: r,
3898
3901
  abortKey: n,
3899
3902
  abortSignal: s
3900
- }), p = Co(c, m), g = f < 2 || m === y, S = { ...e };
3903
+ }), g = Co(c, m), p = f < 2 || m === y, S = { ...e };
3901
3904
  return S.where = Y([S.where, `${u} is not null`]), {
3902
3905
  rawData: l,
3903
- dataCompatibleWithTransformation: p,
3904
- dataCountIncompatible: g,
3906
+ dataCompatibleWithTransformation: g,
3907
+ dataCountIncompatible: p,
3905
3908
  countExcludingNulls: f,
3906
3909
  countIncludingNulls: d
3907
3910
  };
@@ -3971,18 +3974,18 @@ async function Mo(t) {
3971
3974
  abortSignal: u
3972
3975
  } = t, c = e.series[0], { dataTransformationType: l } = c;
3973
3976
  let d = { valid: !0 };
3974
- const f = z(a), y = ft(i?.geometry)?.extent?.toJSON() !== void 0, p = s, g = wo({
3977
+ const f = z(a), y = ft(i?.geometry)?.extent?.toJSON() !== void 0, g = s, p = wo({
3975
3978
  seriesConfig: c,
3976
3979
  layer: f,
3977
- view: p,
3980
+ view: g,
3978
3981
  useFeaturesInView: y,
3979
3982
  queryConfig: i,
3980
3983
  abortSignal: u
3981
3984
  });
3982
3985
  let S;
3983
- if (p !== void 0 && (S = new wi({
3984
- geometry: p.extent
3985
- }), p.extent !== void 0 && ya(f))) {
3986
+ if (g !== void 0 && (S = new wi({
3987
+ geometry: g.extent
3988
+ }), g.extent !== void 0 && ya(f))) {
3986
3989
  const { distance: A, units: I } = i;
3987
3990
  A !== void 0 && (S.distance = A), I !== void 0 && (S.units = I);
3988
3991
  }
@@ -3990,23 +3993,23 @@ async function Mo(t) {
3990
3993
  const A = { start: i.timeExtent[0], end: i.timeExtent[1] };
3991
3994
  S === void 0 ? S = new wi({ timeExtent: A }) : S.timeExtent = A;
3992
3995
  }
3993
- g.filter = S;
3994
- let b;
3995
- g.outStatisticTypes = { exclude: ["median"] };
3996
+ p.filter = S;
3997
+ let x;
3998
+ p.outStatisticTypes = { exclude: ["median"] };
3996
3999
  try {
3997
- b = await Li(g);
4000
+ x = await Li(p);
3998
4001
  } catch (A) {
3999
4002
  throw new re(le.QueryFeaturesError, o.errors.queryError, A);
4000
4003
  }
4001
- g.outStatisticTypes = { include: ["median"] };
4004
+ p.outStatisticTypes = { include: ["median"] };
4002
4005
  try {
4003
- const A = await Li(g);
4004
- A?.median && (b.median = A.median);
4006
+ const A = await Li(p);
4007
+ A?.median && (x.median = A.median);
4005
4008
  } catch {
4006
4009
  }
4007
- b = Ao(b);
4008
- const { avg: v, count: x, stddev: B, min: N, max: T, sum: w, median: L } = b;
4009
- if (x === 0)
4010
+ x = Ao(x);
4011
+ const { avg: v, count: b, stddev: B, min: N, max: T, sum: w, median: L } = x;
4012
+ if (b === 0)
4010
4013
  d = {
4011
4014
  ...Ga(l)
4012
4015
  };
@@ -4014,11 +4017,11 @@ async function Mo(t) {
4014
4017
  const A = Lo({
4015
4018
  seriesConfig: c,
4016
4019
  layer: f,
4017
- view: p,
4020
+ view: g,
4018
4021
  useFeaturesInView: y,
4019
4022
  minValue: Bo(N),
4020
4023
  maxValue: T,
4021
- valueExpression: g.valueExpression,
4024
+ valueExpression: p.valueExpression,
4022
4025
  queryConfig: i,
4023
4026
  abortSignal: u
4024
4027
  });
@@ -4055,7 +4058,7 @@ async function Ya(t) {
4055
4058
  dataCompatibleWithTransformation: f,
4056
4059
  dataCountIncompatible: m,
4057
4060
  countIncludingNulls: y,
4058
- countExcludingNulls: p
4061
+ countExcludingNulls: g
4059
4062
  } = await To({
4060
4063
  queryObject: a,
4061
4064
  chartConfig: e,
@@ -4069,7 +4072,7 @@ async function Ya(t) {
4069
4072
  queryObject: a,
4070
4073
  queryConfig: i,
4071
4074
  countIncludingNulls: y,
4072
- countExcludingNulls: p,
4075
+ countExcludingNulls: g,
4073
4076
  view: o,
4074
4077
  abortSignal: n,
4075
4078
  errorStrings: s
@@ -4181,7 +4184,7 @@ function Za(t) {
4181
4184
  const { lang: e, t9nLocale: i } = ze(t);
4182
4185
  return qo(e) ? e : i;
4183
4186
  }
4184
- function Ot(t) {
4187
+ function It(t) {
4185
4188
  const { dataInfo: e, chartType: i, subError: a } = t;
4186
4189
  switch (e.valid = !1, i) {
4187
4190
  case h.BarSeries:
@@ -4222,75 +4225,75 @@ function $d(t) {
4222
4225
  errorStrings: l
4223
4226
  } = t;
4224
4227
  let d = l.errors.defaultInvalidChart, f;
4225
- const m = new Intl.NumberFormat(o), y = ut(i), { maxCategoryCount: p } = y;
4226
- let g = l.modalHeaders.invalidChart;
4228
+ const m = new Intl.NumberFormat(o), y = ut(i), { maxCategoryCount: g } = y;
4229
+ let p = l.modalHeaders.invalidChart;
4227
4230
  switch (e) {
4228
4231
  case j.BarElementExceedsLimit: {
4229
- g = l.modalHeaders.tooManyFeatures;
4230
- let b = Number.NaN, v = Number.NaN, x = "";
4231
- r !== void 0 && (r <= y.maxBarChartSeriesCount ? r === 1 ? (x = l.errors.uniqueSeriesBarCountCannotExceedLimit, b = y.maxBarUniqueSeriesCountTotal) : r === 2 ? (x = l.errors.twoSeriesBarCountCannotExceedLimit, b = y.maxBarTwoSeriesCountTotal, v = y.maxBarTwoSeriesCountPerSeries) : r > 2 && (x = l.errors.threePlusSeriesBarCountCannotExceedLimit, b = y.maxBarThreePlusSeriesCountTotal, v = y.maxBarThreePlusSeriesCountPerSeries) : (x = l.errors.barSeriesCountCannotExceedLimit, v = y.maxBarChartSeriesCount));
4232
- const B = m.format(b), N = m.format(v), T = a !== void 0 ? m.format(a) : "";
4233
- d = Be(x, {
4232
+ p = l.modalHeaders.tooManyFeatures;
4233
+ let x = Number.NaN, v = Number.NaN, b = "";
4234
+ r !== void 0 && (r <= y.maxBarChartSeriesCount ? r === 1 ? (b = l.errors.uniqueSeriesBarCountCannotExceedLimit, x = y.maxBarUniqueSeriesCountTotal) : r === 2 ? (b = l.errors.twoSeriesBarCountCannotExceedLimit, x = y.maxBarTwoSeriesCountTotal, v = y.maxBarTwoSeriesCountPerSeries) : r > 2 && (b = l.errors.threePlusSeriesBarCountCannotExceedLimit, x = y.maxBarThreePlusSeriesCountTotal, v = y.maxBarThreePlusSeriesCountPerSeries) : (b = l.errors.barSeriesCountCannotExceedLimit, v = y.maxBarChartSeriesCount));
4235
+ const B = m.format(x), N = m.format(v), T = a !== void 0 ? m.format(a) : "";
4236
+ d = Be(b, {
4234
4237
  totalLimit: B,
4235
4238
  seriesLimit: N,
4236
4239
  elementCount: T
4237
4240
  }), f = {
4238
4241
  actualCount: a ?? Number.NaN,
4239
- totalLimit: b,
4242
+ totalLimit: x,
4240
4243
  seriesLimit: v
4241
4244
  };
4242
4245
  break;
4243
4246
  }
4244
4247
  case j.LineChartExceedsLimit:
4245
4248
  {
4246
- g = l.modalHeaders.tooManyFeatures;
4247
- let b = Number.NaN, v = Number.NaN, x = "";
4248
- r !== void 0 && (r <= y.maxLineChartSeriesCount ? r === 1 ? (x = u ? l.errors.uniqueTemporalSeriesLineCountCannotExceedLimit : l.errors.uniqueSeriesLineCountCannotExceedLimit, b = y.maxLineUniqueSeriesCountTotal) : r === 2 ? (x = u ? l.errors.twoTemporalSeriesLineCountCannotExceedLimit : l.errors.twoSeriesLineCountCannotExceedLimit, b = y.maxLineTwoSeriesCountTotal, v = y.maxLineTwoSeriesCountPerSeries) : r > 2 && (x = u ? l.errors.threePlusTemporalSeriesLineCountCannotExceedLimit : l.errors.threePlusSeriesLineCountCannotExceedLimit, b = y.maxLineThreePlusSeriesCountTotal, v = y.maxLineThreePlusSeriesCountPerSeries) : (x = l.errors.lineSeriesCountCannotExceedLimit, v = y.maxLineChartSeriesCount));
4249
- const B = m.format(b), N = m.format(v), T = a !== void 0 ? m.format(a) : "";
4250
- d = Be(x, {
4249
+ p = l.modalHeaders.tooManyFeatures;
4250
+ let x = Number.NaN, v = Number.NaN, b = "";
4251
+ r !== void 0 && (r <= y.maxLineChartSeriesCount ? r === 1 ? (b = u ? l.errors.uniqueTemporalSeriesLineCountCannotExceedLimit : l.errors.uniqueSeriesLineCountCannotExceedLimit, x = y.maxLineUniqueSeriesCountTotal) : r === 2 ? (b = u ? l.errors.twoTemporalSeriesLineCountCannotExceedLimit : l.errors.twoSeriesLineCountCannotExceedLimit, x = y.maxLineTwoSeriesCountTotal, v = y.maxLineTwoSeriesCountPerSeries) : r > 2 && (b = u ? l.errors.threePlusTemporalSeriesLineCountCannotExceedLimit : l.errors.threePlusSeriesLineCountCannotExceedLimit, x = y.maxLineThreePlusSeriesCountTotal, v = y.maxLineThreePlusSeriesCountPerSeries) : (b = l.errors.lineSeriesCountCannotExceedLimit, v = y.maxLineChartSeriesCount));
4252
+ const B = m.format(x), N = m.format(v), T = a !== void 0 ? m.format(a) : "";
4253
+ d = Be(b, {
4251
4254
  elementCount: T,
4252
4255
  seriesLimit: N,
4253
4256
  totalLimit: B
4254
4257
  }), f = {
4255
4258
  actualCount: a ?? Number.NaN,
4256
- totalLimit: b,
4259
+ totalLimit: x,
4257
4260
  seriesLimit: v
4258
4261
  };
4259
4262
  }
4260
4263
  break;
4261
4264
  case j.BoxPlotExceedsLimit:
4262
4265
  {
4263
- g = l.modalHeaders.tooManyFeatures;
4264
- let b = Number.NaN, v = Number.NaN, x = "";
4265
- r !== void 0 && (r <= y.maxBoxPlotSeriesCount ? r === 1 ? (x = l.errors.uniqueSeriesBoxCountCannotExceedLimit, b = y.maxBoxUniqueSeriesCountTotal) : r === 2 ? (x = l.errors.twoSeriesBoxCountCannotExceedLimit, b = y.maxBoxTwoSeriesCountTotal, v = y.maxBoxTwoSeriesCountPerSeries) : r > 2 && (x = l.errors.threePlusBoxLineCountCannotExceedLimit, b = y.maxBoxThreePlusSeriesCountTotal, v = y.maxBoxThreePlusSeriesCountPerSeries) : (x = l.errors.boxSeriesCountCannotExceedLimit, v = y.maxBoxPlotSeriesCount));
4266
- const B = m.format(b), N = m.format(v), T = a !== void 0 ? m.format(a) : "";
4267
- d = Be(x, {
4266
+ p = l.modalHeaders.tooManyFeatures;
4267
+ let x = Number.NaN, v = Number.NaN, b = "";
4268
+ r !== void 0 && (r <= y.maxBoxPlotSeriesCount ? r === 1 ? (b = l.errors.uniqueSeriesBoxCountCannotExceedLimit, x = y.maxBoxUniqueSeriesCountTotal) : r === 2 ? (b = l.errors.twoSeriesBoxCountCannotExceedLimit, x = y.maxBoxTwoSeriesCountTotal, v = y.maxBoxTwoSeriesCountPerSeries) : r > 2 && (b = l.errors.threePlusBoxLineCountCannotExceedLimit, x = y.maxBoxThreePlusSeriesCountTotal, v = y.maxBoxThreePlusSeriesCountPerSeries) : (b = l.errors.boxSeriesCountCannotExceedLimit, v = y.maxBoxPlotSeriesCount));
4269
+ const B = m.format(x), N = m.format(v), T = a !== void 0 ? m.format(a) : "";
4270
+ d = Be(b, {
4268
4271
  elementCount: T,
4269
4272
  seriesLimit: N,
4270
4273
  totalLimit: B
4271
4274
  }), f = {
4272
4275
  actualCount: a ?? Number.NaN,
4273
- totalLimit: b,
4276
+ totalLimit: x,
4274
4277
  seriesLimit: v
4275
4278
  };
4276
4279
  }
4277
4280
  break;
4278
4281
  case j.BoxPlotOutliersExceedsLimit:
4279
4282
  {
4280
- g = l.modalHeaders.tooManyFeatures;
4281
- const b = l.errors.boxSeriesOutlierCannotExceedLimit, v = y.maxBoxPlotOutlierLimit, x = m.format(v);
4282
- d = Be(b, {
4283
- totalLimit: x
4283
+ p = l.modalHeaders.tooManyFeatures;
4284
+ const x = l.errors.boxSeriesOutlierCannotExceedLimit, v = y.maxBoxPlotOutlierLimit, b = m.format(v);
4285
+ d = Be(x, {
4286
+ totalLimit: b
4284
4287
  }), f = { actualCount: a ?? Number.NaN, totalLimit: v };
4285
4288
  }
4286
4289
  break;
4287
4290
  case j.HeatChartExceedsLimit:
4288
4291
  {
4289
- g = l.modalHeaders.tooManyFeatures;
4290
- const b = l.errors.heatChartCannotExceedLimit, v = y.maxHeatChartCellLimit, x = m.format(v), B = a !== void 0 ? m.format(a) : "";
4291
- d = Be(b, {
4292
+ p = l.modalHeaders.tooManyFeatures;
4293
+ const x = l.errors.heatChartCannotExceedLimit, v = y.maxHeatChartCellLimit, b = m.format(v), B = a !== void 0 ? m.format(a) : "";
4294
+ d = Be(x, {
4292
4295
  featureCount: B,
4293
- totalLimit: x
4296
+ totalLimit: b
4294
4297
  }), f = {
4295
4298
  actualCount: a ?? Number.NaN,
4296
4299
  totalLimit: v
@@ -4299,11 +4302,11 @@ function $d(t) {
4299
4302
  break;
4300
4303
  case j.PieChartExceedsLimit:
4301
4304
  {
4302
- g = l.modalHeaders.tooManyFeatures;
4303
- const b = l.errors.pieChartSlicesCannotExceedLimit, v = y.maxPieChartSliceCountTotal, x = m.format(v), B = a !== void 0 ? m.format(a) : "";
4304
- d = Be(b, {
4305
+ p = l.modalHeaders.tooManyFeatures;
4306
+ const x = l.errors.pieChartSlicesCannotExceedLimit, v = y.maxPieChartSliceCountTotal, b = m.format(v), B = a !== void 0 ? m.format(a) : "";
4307
+ d = Be(x, {
4305
4308
  sliceCount: B,
4306
- totalLimit: x
4309
+ totalLimit: b
4307
4310
  }), f = {
4308
4311
  actualCount: a ?? Number.NaN,
4309
4312
  totalLimit: v
@@ -4312,11 +4315,11 @@ function $d(t) {
4312
4315
  break;
4313
4316
  case j.GaugeExceedsLimit:
4314
4317
  {
4315
- g = l.modalHeaders.tooManyFeatures;
4316
- const b = l.errors.gaugeCannotExceedLimit, v = y.maxGaugeByFeaturesLimit, x = m.format(v), B = a !== void 0 ? m.format(a) : "";
4317
- d = Be(b, {
4318
+ p = l.modalHeaders.tooManyFeatures;
4319
+ const x = l.errors.gaugeCannotExceedLimit, v = y.maxGaugeByFeaturesLimit, b = m.format(v), B = a !== void 0 ? m.format(a) : "";
4320
+ d = Be(x, {
4318
4321
  featureCount: B,
4319
- totalLimit: x
4322
+ totalLimit: b
4320
4323
  }), f = {
4321
4324
  actualCount: a ?? Number.NaN,
4322
4325
  totalLimit: v
@@ -4324,22 +4327,22 @@ function $d(t) {
4324
4327
  }
4325
4328
  break;
4326
4329
  case j.PieChartMixOfNegativePositiveSlices:
4327
- g = l.modalHeaders.cannotCombineNegativeAndPositiveSlices, d = l.errors.pieChartCannotHaveMixtureOfPositiveAndNegativeSlices;
4330
+ p = l.modalHeaders.cannotCombineNegativeAndPositiveSlices, d = l.errors.pieChartCannotHaveMixtureOfPositiveAndNegativeSlices;
4328
4331
  break;
4329
4332
  case j.NegativeValueInSqrtCalculation:
4330
- g = l.modalHeaders.invalidData, d = l.errors.negativeValueInDataForSqrtTransformation;
4333
+ p = l.modalHeaders.invalidData, d = l.errors.negativeValueInDataForSqrtTransformation;
4331
4334
  break;
4332
4335
  case j.NegativeValueInLogCalculation:
4333
- g = l.modalHeaders.invalidData, d = l.errors.negativeValueInDataForLogTransformation;
4336
+ p = l.modalHeaders.invalidData, d = l.errors.negativeValueInDataForLogTransformation;
4334
4337
  break;
4335
4338
  case j.HistogramEmptyField:
4336
- s === !0 ? (g = l.modalHeaders.noDataAvailable, d = l.errors.noDataFBSMessage) : Ee(n) ? (g = l.modalHeaders.noDataAvailable, d = l.errors.noDataFBEMessage) : (g = l.modalHeaders.invalidChart, d = l.errors.histogramEmptyField);
4339
+ s === !0 ? (p = l.modalHeaders.noDataAvailable, d = l.errors.noDataFBSMessage) : Ee(n) ? (p = l.modalHeaders.noDataAvailable, d = l.errors.noDataFBEMessage) : (p = l.modalHeaders.invalidChart, d = l.errors.histogramEmptyField);
4337
4340
  break;
4338
4341
  case j.EmptyDataSet:
4339
- g = l.modalHeaders.noDataAvailable, s === !0 ? d = l.errors.noDataFBSMessage : Ee(n) ? d = l.errors.noDataFBEMessage : d = l.errors.noDataMessage;
4342
+ p = l.modalHeaders.noDataAvailable, s === !0 ? d = l.errors.noDataFBSMessage : Ee(n) ? d = l.errors.noDataFBEMessage : d = l.errors.noDataMessage;
4340
4343
  break;
4341
4344
  case j.NoValue:
4342
- c && a && (g = void 0, d = l.errors.noValue);
4345
+ c && a && (p = void 0, d = l.errors.noValue);
4343
4346
  break;
4344
4347
  case j.NegativeValueInXAxisLogScale:
4345
4348
  d = l.errors.logarithmicXAxisNotPossible;
@@ -4349,16 +4352,16 @@ function $d(t) {
4349
4352
  break;
4350
4353
  case j.BadData:
4351
4354
  }
4352
- if (d === l.errors.defaultInvalidChart && (e === j.BarElementExceedsLimit || e === j.LineChartExceedsLimit || e === j.HeatChartExceedsLimit || e === j.PieChartExceedsLimit || e === j.GaugeExceedsLimit || e === j.BoxPlotExceedsLimit) && typeof a == "number" && typeof r == "number" && a / r > p) {
4353
- const b = a / r;
4355
+ if (d === l.errors.defaultInvalidChart && (e === j.BarElementExceedsLimit || e === j.LineChartExceedsLimit || e === j.HeatChartExceedsLimit || e === j.PieChartExceedsLimit || e === j.GaugeExceedsLimit || e === j.BoxPlotExceedsLimit) && typeof a == "number" && typeof r == "number" && a / r > g) {
4356
+ const x = a / r;
4354
4357
  d = Be(l.errors.categoryCountCannotExceedLimit, {
4355
- categoryCount: m.format(b),
4356
- maxCategoryCount: m.format(p)
4358
+ categoryCount: m.format(x),
4359
+ maxCategoryCount: m.format(g)
4357
4360
  });
4358
4361
  }
4359
4362
  return {
4360
4363
  keyword: e ?? j.BadData,
4361
- header: g,
4364
+ header: p,
4362
4365
  message: d,
4363
4366
  params: f
4364
4367
  };
@@ -4390,10 +4393,10 @@ function Si(t) {
4390
4393
  y: a,
4391
4394
  chartSubType: i,
4392
4395
  splitByValue: r
4393
- }), p = e[y];
4394
- if (p != null) {
4395
- let g = Number(p);
4396
- if (Number.isFinite(g)) {
4396
+ }), g = e[y];
4397
+ if (g != null) {
4398
+ let p = Number(g);
4399
+ if (Number.isFinite(p)) {
4397
4400
  u = {
4398
4401
  ...u,
4399
4402
  key: m,
@@ -4401,7 +4404,7 @@ function Si(t) {
4401
4404
  standardizeValues: !0
4402
4405
  };
4403
4406
  let S = K(u);
4404
- if (o[S] = si({ mean: d, stdDev: f, value: g }), m === E.Min || m === E.Max) {
4407
+ if (o[S] = si({ mean: d, stdDev: f, value: p }), m === E.Min || m === E.Max) {
4405
4408
  u = {
4406
4409
  ...u,
4407
4410
  key: m,
@@ -4412,11 +4415,11 @@ function Si(t) {
4412
4415
  standardizeValues: !1,
4413
4416
  splitByValue: r
4414
4417
  };
4415
- const b = K(u);
4416
- g = Number(e[b]), Number.isFinite(g) && (o[S] = si({
4418
+ const x = K(u);
4419
+ p = Number(e[x]), Number.isFinite(p) && (o[S] = si({
4417
4420
  mean: d,
4418
4421
  stdDev: f,
4419
- value: g
4422
+ value: p
4420
4423
  }));
4421
4424
  }
4422
4425
  }
@@ -4547,32 +4550,32 @@ function ki(t) {
4547
4550
  const { yField: e, xField: i, xValue: a, splitByField: r, splitByValue: n, outlierMaxThreshold: s, outlierMinThreshold: o, target: u } = t;
4548
4551
  let c;
4549
4552
  if (i !== void 0 && a !== void 0) {
4550
- const m = typeof a != "string" ? a : `'${Zt(a)}'`;
4553
+ const m = typeof a != "string" ? a : `'${Xt(a)}'`;
4551
4554
  c = `${i}=${m.toString()}`;
4552
4555
  }
4553
4556
  let l;
4554
4557
  if (r !== void 0 && n !== void 0) {
4555
- const m = typeof n != "string" ? n : `'${Zt(n)}'`;
4558
+ const m = typeof n != "string" ? n : `'${Xt(n)}'`;
4556
4559
  l = `${r}=${m.toString()}`;
4557
4560
  }
4558
4561
  let d;
4559
4562
  return u === "outliers" && o !== s ? d = `(${e}<${o} OR ${e}>${s})` : u === "alternativeData" && (o === s ? d = `(${e}=${o})` : d = `(${e}>=${o} AND ${e}<=${s})`), [c, l, d].filter((m) => m !== void 0).join(" AND ");
4560
4563
  }
4561
4564
  function Xa(t) {
4562
- const { data: e, yField: i, x: a, chartSubType: r, splitByField: n } = t, s = r === F.BoxPlotMonoField || r === F.BoxPlotMonoFieldAndCategory || r === F.BoxPlotMonoFieldAndSplitBy || r === F.BoxPlotMonoFieldAndCategoryAndSplitBy ? void 0 : i, o = it(s), u = [], c = [], { maxOperandsPerWhereClause: l } = Rt();
4565
+ const { data: e, yField: i, x: a, chartSubType: r, splitByField: n } = t, s = r === F.BoxPlotMonoField || r === F.BoxPlotMonoFieldAndCategory || r === F.BoxPlotMonoFieldAndSplitBy || r === F.BoxPlotMonoFieldAndCategoryAndSplitBy ? void 0 : i, o = it(s), u = [], c = [], { maxOperandsPerWhereClause: l } = $t();
4563
4566
  let d = [], f = [], m = 1;
4564
- return e.forEach((y, p) => {
4565
- const { outlierMinThreshold: g, outlierMaxThreshold: S } = Ho(y, o);
4566
- if (typeof g == "number" && typeof S == "number") {
4567
- const b = {
4567
+ return e.forEach((y, g) => {
4568
+ const { outlierMinThreshold: p, outlierMaxThreshold: S } = Ho(y, o);
4569
+ if (typeof p == "number" && typeof S == "number") {
4570
+ const x = {
4568
4571
  yField: i,
4569
- outlierMinThreshold: g,
4572
+ outlierMinThreshold: p,
4570
4573
  outlierMaxThreshold: S
4571
4574
  };
4572
- (r === F.BoxPlotMonoFieldAndCategory || r === F.BoxPlotMultiFieldsAndCategory || r === F.BoxPlotMonoFieldAndCategoryAndSplitBy) && a !== void 0 && a in y && (b.xField = a, b.xValue = fi({
4575
+ (r === F.BoxPlotMonoFieldAndCategory || r === F.BoxPlotMultiFieldsAndCategory || r === F.BoxPlotMonoFieldAndCategoryAndSplitBy) && a !== void 0 && a in y && (x.xField = a, x.xValue = fi({
4573
4576
  value: y[a],
4574
4577
  dataContext: y
4575
- })), (r === F.BoxPlotMonoFieldAndSplitBy || r === F.BoxPlotMultiFieldsAndSplitBy || r === F.BoxPlotMonoFieldAndCategoryAndSplitBy) && n !== void 0 && n in y && (b.splitByField = n, b.splitByValue = y[n]), d.push(ki({ ...b, target: "outliers" })), f.push(ki({ ...b, target: "alternativeData" })), (m % l === 0 || p === e.length - 1) && (u.push(Y(d, "OR")), c.push(Y(f, "OR")), d = [], f = []);
4578
+ })), (r === F.BoxPlotMonoFieldAndSplitBy || r === F.BoxPlotMultiFieldsAndSplitBy || r === F.BoxPlotMonoFieldAndCategoryAndSplitBy) && n !== void 0 && n in y && (x.splitByField = n, x.splitByValue = y[n]), d.push(ki({ ...x, target: "outliers" })), f.push(ki({ ...x, target: "alternativeData" })), (m % l === 0 || g === e.length - 1) && (u.push(Y(d, "OR")), c.push(Y(f, "OR")), d = [], f = []);
4576
4579
  }
4577
4580
  m += 1;
4578
4581
  }), { outliersFilterBatches: u, dataWithoutOutliersFilterBatches: c };
@@ -4607,11 +4610,11 @@ function zo(t) {
4607
4610
  return { mean: u, stdDev: c };
4608
4611
  }
4609
4612
  async function Wo(t) {
4610
- const { seriesConfig: e, data: i, uniqueQuery: a, queryObject: r, meanAndStdDevPerField: n, errorStrings: s, abortKey: o, abortSignal: u } = t, c = k(e), l = e[0], { x: d } = l, f = te(l.query?.where), m = z(r), y = ve(m).idField, p = ue(e), g = [];
4611
- for (let v = 0; v < p.length; v += 1) {
4612
- const x = p[v], { outliersFilterBatches: B } = Xa({
4613
+ const { seriesConfig: e, data: i, uniqueQuery: a, queryObject: r, meanAndStdDevPerField: n, errorStrings: s, abortKey: o, abortSignal: u } = t, c = k(e), l = e[0], { x: d } = l, f = te(l.query?.where), m = z(r), y = ve(m).idField, g = ue(e), p = [];
4614
+ for (let v = 0; v < g.length; v += 1) {
4615
+ const b = g[v], { outliersFilterBatches: B } = Xa({
4613
4616
  data: i,
4614
- yField: x,
4617
+ yField: b,
4615
4618
  x: d,
4616
4619
  chartSubType: c,
4617
4620
  splitByField: f
@@ -4620,7 +4623,7 @@ async function Wo(t) {
4620
4623
  const T = B[N];
4621
4624
  if (T !== "") {
4622
4625
  const w = [];
4623
- d !== C.boxPlot.boxPlotCategory && w.push(d), w.push(x), f !== "" && w.push(f), w.push(y);
4626
+ d !== C.boxPlot.boxPlotCategory && w.push(d), w.push(b), f !== "" && w.push(f), w.push(y);
4624
4627
  const L = {
4625
4628
  ...a,
4626
4629
  where: Y([a.where, T]),
@@ -4630,7 +4633,7 @@ async function Wo(t) {
4630
4633
  num: void 0,
4631
4634
  outFields: w
4632
4635
  };
4633
- g.push(
4636
+ p.push(
4634
4637
  Fe({
4635
4638
  queryObject: r,
4636
4639
  queryConfig: L,
@@ -4644,10 +4647,10 @@ async function Wo(t) {
4644
4647
  }
4645
4648
  }
4646
4649
  }
4647
- const S = await Promise.all(g), b = /* @__PURE__ */ new Map();
4650
+ const S = await Promise.all(p), x = /* @__PURE__ */ new Map();
4648
4651
  for (let v = 0; v < S.length; v += 1) {
4649
- const x = S[v], B = p[v];
4650
- x.forEach((N) => {
4652
+ const b = S[v], B = g[v];
4653
+ b.forEach((N) => {
4651
4654
  const T = { ...N.attributes };
4652
4655
  if (T[B] !== void 0) {
4653
4656
  d === C.boxPlot.boxPlotCategory && (T[C.boxPlot.boxPlotCategory] = B);
@@ -4673,7 +4676,7 @@ async function Wo(t) {
4673
4676
  }
4674
4677
  const L = K(w), A = T[B];
4675
4678
  T[L] = A;
4676
- const I = `${T[d]}-${T[f]}-${A}`, P = b.get(I);
4679
+ const I = `${T[d]}-${T[f]}-${A}`, P = x.get(I);
4677
4680
  if (T[W.uniqueIdsName] = [
4678
4681
  ...P?.[W.uniqueIdsName] ?? [],
4679
4682
  T[y]
@@ -4696,11 +4699,11 @@ async function Wo(t) {
4696
4699
  stdDev: $
4697
4700
  }));
4698
4701
  }
4699
- delete T[B], T[C.boxPlot.boxPlotOutlierId] = !0, b.set(I, T);
4702
+ delete T[B], T[C.boxPlot.boxPlotOutlierId] = !0, x.set(I, T);
4700
4703
  }
4701
4704
  });
4702
4705
  }
4703
- return Array.from(b.values());
4706
+ return Array.from(x.values());
4704
4707
  }
4705
4708
  async function Go(t) {
4706
4709
  const {
@@ -4715,12 +4718,12 @@ async function Go(t) {
4715
4718
  abortSignal: c
4716
4719
  } = t;
4717
4720
  let l = [];
4718
- const { series: d, showMean: f } = n, m = Bi({ showMean: f, seriesConfig: d }), y = k(d), p = Re(n), { x: g } = p, S = te(p.query?.where), b = [];
4719
- for (let x = 0; x < m.length; x += 1) {
4720
- const B = m[x], { dataWithoutOutliersFilterBatches: N } = Xa({
4721
+ const { series: d, showMean: f } = n, m = Bi({ showMean: f, seriesConfig: d }), y = k(d), g = Re(n), { x: p } = g, S = te(g.query?.where), x = [];
4722
+ for (let b = 0; b < m.length; b += 1) {
4723
+ const B = m[b], { dataWithoutOutliersFilterBatches: N } = Xa({
4721
4724
  data: e,
4722
4725
  yField: B,
4723
- x: g,
4726
+ x: p,
4724
4727
  chartSubType: y,
4725
4728
  splitByField: S
4726
4729
  });
@@ -4734,8 +4737,8 @@ async function Go(t) {
4734
4737
  ).map((A) => ({
4735
4738
  ...A,
4736
4739
  outStatisticFieldName: `${A.outStatisticFieldName}${C.boxPlot.boxPlotOutliersSuffix}`
4737
- }))), b.push(
4738
- _t({
4740
+ }))), x.push(
4741
+ jt({
4739
4742
  queryObject: i,
4740
4743
  uniqueQuery: L,
4741
4744
  chartConfig: n,
@@ -4750,12 +4753,12 @@ async function Go(t) {
4750
4753
  );
4751
4754
  }
4752
4755
  }
4753
- const v = await Promise.all(b);
4754
- for (let x = 0; x < v.length; x += 1)
4755
- l.push(...v[x]);
4756
+ const v = await Promise.all(x);
4757
+ for (let b = 0; b < v.length; b += 1)
4758
+ l.push(...v[b]);
4756
4759
  return y !== F.BoxPlotMonoFieldAndCategoryAndSplitBy && y !== F.BoxPlotMonoField && (l = bt({
4757
4760
  data: l,
4758
- x: S !== void 0 && S !== "" ? S : g
4761
+ x: S !== void 0 && S !== "" ? S : p
4759
4762
  })), l;
4760
4763
  }
4761
4764
  async function Uo(t) {
@@ -4768,18 +4771,18 @@ async function Uo(t) {
4768
4771
  };
4769
4772
  delete f.outStatistics, delete f.groupByFieldsForStatistics, delete f.orderByFields;
4770
4773
  const m = [];
4771
- for (let p = 0; p < d.length; p += 1) {
4772
- const g = d[p];
4774
+ for (let g = 0; g < d.length; g += 1) {
4775
+ const p = d[g];
4773
4776
  m.push(
4774
4777
  {
4775
4778
  statisticType: D.Average,
4776
- onStatisticField: g,
4777
- outStatisticFieldName: `${D.Average}_${g}`
4779
+ onStatisticField: p,
4780
+ outStatisticFieldName: `${D.Average}_${p}`
4778
4781
  },
4779
4782
  {
4780
4783
  statisticType: D.StandardDeviation,
4781
- onStatisticField: g,
4782
- outStatisticFieldName: `${D.StandardDeviation}_${g}`
4784
+ onStatisticField: p,
4785
+ outStatisticFieldName: `${D.StandardDeviation}_${p}`
4783
4786
  }
4784
4787
  );
4785
4788
  }
@@ -4892,7 +4895,7 @@ async function Zo(t) {
4892
4895
  abortKey: c,
4893
4896
  abortSignal: l
4894
4897
  });
4895
- const p = await Go({
4898
+ const g = await Go({
4896
4899
  queryObject: i,
4897
4900
  uniqueQuery: a,
4898
4901
  elementCount: s,
@@ -4905,7 +4908,7 @@ async function Zo(t) {
4905
4908
  });
4906
4909
  d = Yo({
4907
4910
  data: d,
4908
- additionalData: p,
4911
+ additionalData: g,
4909
4912
  chartConfig: n
4910
4913
  });
4911
4914
  }
@@ -4990,7 +4993,7 @@ function Ko(t) {
4990
4993
  chartData: i.dataItems
4991
4994
  });
4992
4995
  }
4993
- function It(t) {
4996
+ function Et(t) {
4994
4997
  const { arrayToSort: e, chartConfig: i, fieldList: a, isTimeBinningSeries: r } = t;
4995
4998
  if (r !== !0 && e[0] !== void 0) {
4996
4999
  const { series: n } = i, s = k(n), o = _(n), u = xe(i), c = Mt(i);
@@ -5003,8 +5006,8 @@ function It(t) {
5003
5006
  else if (c?.[0] !== void 0 && e !== void 0 && e.length > 1) {
5004
5007
  const { orderBy: l } = c[0];
5005
5008
  let { sortingField: d } = c[0];
5006
- const f = i.orderOptions?.data?.orderType === De.Category, m = c[0].preferLabel !== !1, y = s === F.BarAndLineFromFields || s === F.PieFromFields || s === F.BoxPlotMultiFields || s === F.BoxPlotMultiFieldsAndSplitBy, p = y || o === h.PieSeries, g = s === F.PieNoAggregation || s === F.BarAndLineNoAggregation || s === F.BarAndLineSplitByNoAggregation;
5007
- if (f && p && (!m || (o === h.LineSeries || o === h.RadarSeries) && u === h.NumberAxisFormat) && (d = C.originalCategoryValue), Array.isArray(l))
5009
+ const f = i.orderOptions?.data?.orderType === De.Category, m = c[0].preferLabel !== !1, y = s === F.BarAndLineFromFields || s === F.PieFromFields || s === F.BoxPlotMultiFields || s === F.BoxPlotMultiFieldsAndSplitBy, g = y || o === h.PieSeries, p = s === F.PieNoAggregation || s === F.BarAndLineNoAggregation || s === F.BarAndLineSplitByNoAggregation;
5010
+ if (f && g && (!m || (o === h.LineSeries || o === h.RadarSeries) && u === h.NumberAxisFormat) && (d = C.originalCategoryValue), Array.isArray(l))
5008
5011
  En({
5009
5012
  arrayToSort: e,
5010
5013
  orderBy: l,
@@ -5020,10 +5023,10 @@ function It(t) {
5020
5023
  orderBy: l,
5021
5024
  sortingField: d,
5022
5025
  forceAscendingOrder: S,
5023
- isNonAggregated: g,
5026
+ isNonAggregated: p,
5024
5027
  sortByCategory: f,
5025
5028
  preferLabel: m,
5026
- isPieOrByFieldsChart: p
5029
+ isPieOrByFieldsChart: g
5027
5030
  });
5028
5031
  }
5029
5032
  }
@@ -5031,7 +5034,7 @@ function It(t) {
5031
5034
  }
5032
5035
  function kd(t) {
5033
5036
  const { alteredConfig: e, dataInfo: i, fieldList: a, options: r, queryObject: n } = t, s = Ci(i.data);
5034
- if (s && It({
5037
+ if (s && Et({
5035
5038
  arrayToSort: s,
5036
5039
  chartConfig: e,
5037
5040
  fieldList: a,
@@ -5043,7 +5046,7 @@ function kd(t) {
5043
5046
  })
5044
5047
  }), de(e)) {
5045
5048
  const o = i?.data && "meanLines" in i.data ? i.data.meanLines : void 0;
5046
- o && It({
5049
+ o && Et({
5047
5050
  arrayToSort: o,
5048
5051
  chartConfig: e
5049
5052
  });
@@ -5063,13 +5066,13 @@ async function Qd(t) {
5063
5066
  const { series: o, chartRenderer: u } = a, c = el(u), l = c ? tt.ChartRenderer : tt.LayerRenderer, d = i ? z(i) : void 0, f = c ?? d?.renderer;
5064
5067
  let m;
5065
5068
  d && l === tt.LayerRenderer ? s = await _a(d) : l === tt.ChartRenderer && (s = Jn(f));
5066
- const y = jn(c, d?.renderer), p = Un({
5069
+ const y = jn(c, d?.renderer), g = Un({
5067
5070
  chartRenderer: u,
5068
5071
  queryObject: i
5069
- }), g = _(o), S = k(o), b = Re(a), v = te(b.query?.where);
5072
+ }), p = _(o), S = k(o), x = Re(a), v = te(x.query?.where);
5070
5073
  m = /* @__PURE__ */ new Map();
5071
- for (let x = 0; x < (g === h.HistogramSeries && e.length > 0 ? 1 : e.length); x += 1) {
5072
- const B = e[x], N = await Yn({
5074
+ for (let b = 0; b < (p === h.HistogramSeries && e.length > 0 ? 1 : e.length); b += 1) {
5075
+ const B = e[b], N = await Yn({
5073
5076
  seriesConfig: a.series,
5074
5077
  dataItem: B,
5075
5078
  renderer: f,
@@ -5077,7 +5080,7 @@ async function Qd(t) {
5077
5080
  rendererOrigin: l,
5078
5081
  chartSubType: S,
5079
5082
  splitByField: v,
5080
- graphicTemplate: p,
5083
+ graphicTemplate: g,
5081
5084
  mapAttributesToSymbol: m,
5082
5085
  rendererFieldNames: s
5083
5086
  });
@@ -5127,11 +5130,11 @@ async function il(t) {
5127
5130
  chartLimits: r
5128
5131
  })), r && (Number.isFinite(l) || Number.isFinite(m)))) {
5129
5132
  const y = Math.min(l ?? Number.NaN, m ?? Number.NaN);
5130
- let p = r;
5131
- Number.isFinite(y) && (p = {
5133
+ let g = r;
5134
+ Number.isFinite(y) && (g = {
5132
5135
  ...r,
5133
5136
  maxGaugeByFeaturesLimit: y
5134
- }), Da({ chartConfig: i, chartLimits: p, uniqueQuery: a });
5137
+ }), Da({ chartConfig: i, chartLimits: g, uniqueQuery: a });
5135
5138
  }
5136
5139
  if (Number.isNaN(f) || f) {
5137
5140
  const y = await tl({
@@ -5144,7 +5147,7 @@ async function il(t) {
5144
5147
  });
5145
5148
  u.data = { dataItems: y }, u.count = y.length;
5146
5149
  } else
5147
- u.count = m, Ot({
5150
+ u.count = m, It({
5148
5151
  dataInfo: u,
5149
5152
  chartType: h.GaugeSeries
5150
5153
  });
@@ -5207,16 +5210,16 @@ function al(t) {
5207
5210
  W.uniqueIdsName,
5208
5211
  Q.valueField,
5209
5212
  ...Vr
5210
- ], d = (p, g) => {
5211
- const S = g[C.originalCategoryValue];
5212
- S !== void 0 && r && (g[r] = S);
5213
- const b = g[C.originalYCategoryValue];
5214
- b !== void 0 && n && (g[n] = b), r && g[Q.xField] !== void 0 && (g[r] = g[C.originalCategoryValue] !== void 0 ? g[C.originalCategoryValue] : g[Q.xField], delete g[Q.xField]), n && g[Q.yField] !== void 0 && (g[n] = g[C.originalYCategoryValue] !== void 0 ? g[C.originalYCategoryValue] : g[Q.yField], delete g[Q.yField]), s && g[Q.valueField] !== void 0 && (g[s] = g[Q.valueField], delete g[Q.valueField]);
5213
+ ], d = (g, p) => {
5214
+ const S = p[C.originalCategoryValue];
5215
+ S !== void 0 && r && (p[r] = S);
5216
+ const x = p[C.originalYCategoryValue];
5217
+ x !== void 0 && n && (p[n] = x), r && p[Q.xField] !== void 0 && (p[r] = p[C.originalCategoryValue] !== void 0 ? p[C.originalCategoryValue] : p[Q.xField], delete p[Q.xField]), n && p[Q.yField] !== void 0 && (p[n] = p[C.originalYCategoryValue] !== void 0 ? p[C.originalYCategoryValue] : p[Q.yField], delete p[Q.yField]), s && p[Q.valueField] !== void 0 && (p[s] = p[Q.valueField], delete p[Q.valueField]);
5215
5218
  const v = {};
5216
- return Object.keys(g).forEach((x) => {
5217
- !l.includes(x) && !x.includes(C.rendererSymbolField) && (v[x] = g[x]);
5218
- }), p.push(v), p;
5219
- }, f = (p, g) => JSON.stringify(p).localeCompare(JSON.stringify(g));
5219
+ return Object.keys(p).forEach((b) => {
5220
+ !l.includes(b) && !b.includes(C.rendererSymbolField) && (v[b] = p[b]);
5221
+ }), g.push(v), g;
5222
+ }, f = (g, p) => JSON.stringify(g).localeCompare(JSON.stringify(p));
5220
5223
  let m = o?.reduce(d, [])?.sort(f), y = u?.reduce(d, [])?.sort(f);
5221
5224
  m && y && r && m.length !== y.length && (m = bt({ data: m, x: r }), y = bt({ data: y, x: r })), c = m?.length !== y?.length || !at(m, y);
5222
5225
  }
@@ -5238,7 +5241,7 @@ function rl(t) {
5238
5241
  const u = te(n[0].query?.where);
5239
5242
  r = bt({ data: r, x: n[0].x, splitByField: u });
5240
5243
  }
5241
- It({
5244
+ Et({
5242
5245
  arrayToSort: r,
5243
5246
  chartConfig: e
5244
5247
  });
@@ -5333,8 +5336,8 @@ function ir(t) {
5333
5336
  y: d
5334
5337
  }), y = e === C.boxPlot.boxPlotCategory ? r[e] : i;
5335
5338
  if (!oe(y)) {
5336
- const p = r[f], g = r[m];
5337
- Number.isFinite(p) && Number.isFinite(g) && (c = `${y?.toString()}>=${p?.toString()} AND ${y?.toString()}<=${g?.toString()}`);
5339
+ const g = r[f], p = r[m];
5340
+ Number.isFinite(g) && Number.isFinite(p) && (c = `${y?.toString()}>=${g?.toString()} AND ${y?.toString()}<=${p?.toString()}`);
5338
5341
  }
5339
5342
  }
5340
5343
  return Y([o, u, c]);
@@ -5394,8 +5397,8 @@ function ll(t) {
5394
5397
  let c = "";
5395
5398
  if (u.type === h.HeatSeries) {
5396
5399
  let l, d;
5397
- const f = a[Q.xField], m = a[C.originalCategoryValue], y = a[Q.yField], p = a[C.originalYCategoryValue], g = r.axes?.[0]?.valueFormat?.type, S = r.axes?.[1]?.valueFormat?.type;
5398
- g === h.CategoryAxisFormat ? l = Le({
5400
+ const f = a[Q.xField], m = a[C.originalCategoryValue], y = a[Q.yField], g = a[C.originalYCategoryValue], p = r.axes?.[0]?.valueFormat?.type, S = r.axes?.[1]?.valueFormat?.type;
5401
+ p === h.CategoryAxisFormat ? l = Le({
5399
5402
  where: qe(u.x, m ?? f),
5400
5403
  normalize: !1,
5401
5404
  escape: !0
@@ -5408,7 +5411,7 @@ function ll(t) {
5408
5411
  dataTimeZone: s,
5409
5412
  runsOnClientQueryEngine: o
5410
5413
  }), S === h.CategoryAxisFormat ? d = Le({
5411
- where: qe(u.y, p ?? y),
5414
+ where: qe(u.y, g ?? y),
5412
5415
  normalize: !1,
5413
5416
  escape: !0
5414
5417
  }) : d = zi({
@@ -5480,16 +5483,16 @@ async function cl(t) {
5480
5483
  errorStrings: f,
5481
5484
  abortKey: m,
5482
5485
  abortSignal: y
5483
- } = t, p = k(a.series);
5484
- let g = { valid: !0, data: { dataItems: [] } };
5486
+ } = t, g = k(a.series);
5487
+ let p = { valid: !0, data: { dataItems: [] } };
5485
5488
  if (r !== void 0 && r.length > 0) {
5486
- const S = Re(a), { x: b } = S, v = "y" in S ? S.y : "", B = Ce(e).find((I) => I.name === b)?.type, N = [], T = r.reduce(
5489
+ const S = Re(a), { x } = S, v = "y" in S ? S.y : "", B = Ce(e).find((I) => I.name === x)?.type, N = [], T = r.reduce(
5487
5490
  (I, P) => {
5488
5491
  const O = [];
5489
5492
  if (W.uniqueIdsName in P)
5490
5493
  N.push(P[W.uniqueIdsName]);
5491
5494
  else {
5492
- switch (p) {
5495
+ switch (g) {
5493
5496
  case F.BoxPlotMonoFieldAndSplitBy:
5494
5497
  case F.BoxPlotMultiFieldsAndSplitBy:
5495
5498
  case F.BoxPlotMonoFieldAndCategoryAndSplitBy: {
@@ -5505,14 +5508,14 @@ async function cl(t) {
5505
5508
  }
5506
5509
  const V = [v].flat();
5507
5510
  let $ = V.length === 1 ? V[0] : "";
5508
- if (p === F.BoxPlotMultiFieldsAndCategory) {
5511
+ if (g === F.BoxPlotMultiFieldsAndCategory) {
5509
5512
  const M = `_${E.FirstQuartile}`, q = Object.keys(P).find((G) => G.includes(M));
5510
5513
  q !== void 0 && ($ = q.replace(M, ""));
5511
5514
  }
5512
5515
  O.length === 0 && O.push(""), O.forEach((M) => {
5513
5516
  const q = ir({
5514
5517
  chartConfig: a,
5515
- xAxisField: b,
5518
+ xAxisField: x,
5516
5519
  yAxisField: $,
5517
5520
  splitBy: M,
5518
5521
  dataContext: P,
@@ -5530,7 +5533,7 @@ async function cl(t) {
5530
5533
  T.push(`${I} IN (${N.join(",")})`);
5531
5534
  }
5532
5535
  const L = T.join(" OR "), A = { ...i };
5533
- A.where = Y([A.where, L]), g = await Fi({
5536
+ A.where = Y([A.where, L]), p = await Fi({
5534
5537
  queryObject: e,
5535
5538
  chartConfig: a,
5536
5539
  queryConfig: A,
@@ -5546,7 +5549,7 @@ async function cl(t) {
5546
5549
  abortSignal: y
5547
5550
  });
5548
5551
  }
5549
- return g;
5552
+ return p;
5550
5553
  }
5551
5554
  async function dl(t) {
5552
5555
  const {
@@ -5564,30 +5567,30 @@ async function dl(t) {
5564
5567
  replaceNoValueCategoryWithZero: f,
5565
5568
  view: m,
5566
5569
  errorStrings: y,
5567
- abortKey: p,
5568
- abortSignal: g
5570
+ abortKey: g,
5571
+ abortSignal: p
5569
5572
  } = t;
5570
5573
  yt(e);
5571
- const { series: S } = a, b = _(S), v = xe(a);
5572
- let x = { valid: !0 }, B = s?.selectionItems ?? [];
5574
+ const { series: S } = a, x = _(S), v = xe(a);
5575
+ let b = { valid: !0 }, B = s?.selectionItems ?? [];
5573
5576
  n || (B = rl({ chartConfig: a, currentSelectionDataItems: r, selectionData: s }));
5574
5577
  let N = !1;
5575
- switch (b) {
5578
+ switch (x) {
5576
5579
  case h.HeatSeries:
5577
- x.data = { dataItems: B };
5580
+ b.data = { dataItems: B };
5578
5581
  break;
5579
5582
  case h.PieSeries:
5580
5583
  if (k(a.series) === F.PieFromFields) {
5581
5584
  const { x: T, y: w } = a.series[0], L = He(B);
5582
5585
  L.forEach((A) => {
5583
5586
  T in A && (A[ce] = A[T], delete A[T]), w in A && (A[Ne] = A[w], delete A[w]);
5584
- }), x.data = { dataItems: L };
5587
+ }), b.data = { dataItems: L };
5585
5588
  } else
5586
- x.data = { dataItems: B };
5587
- x.count = B.length, N = !0;
5589
+ b.data = { dataItems: B };
5590
+ b.count = B.length, N = !0;
5588
5591
  break;
5589
5592
  case h.BoxPlotSeries:
5590
- de(a) && (x = await cl({
5593
+ de(a) && (b = await cl({
5591
5594
  queryObject: e,
5592
5595
  queryConfig: i,
5593
5596
  chartConfig: a,
@@ -5600,8 +5603,8 @@ async function dl(t) {
5600
5603
  replaceNoValueCategoryWithZero: f,
5601
5604
  view: m,
5602
5605
  errorStrings: y,
5603
- abortKey: p,
5604
- abortSignal: g
5606
+ abortKey: g,
5607
+ abortSignal: p
5605
5608
  }));
5606
5609
  break;
5607
5610
  case h.BarSeries:
@@ -5614,7 +5617,7 @@ async function dl(t) {
5614
5617
  seriesConfig: S[0],
5615
5618
  queryObject: e
5616
5619
  }))
5617
- x.data = { dataItems: B }, x.count = B.length * S.length, N = !0;
5620
+ b.data = { dataItems: B }, b.count = B.length * S.length, N = !0;
5618
5621
  else {
5619
5622
  const T = { ...i };
5620
5623
  if (r !== void 0 && r.length > 0) {
@@ -5627,7 +5630,7 @@ async function dl(t) {
5627
5630
  ), A = Y(L, "OR");
5628
5631
  T.where = Y([T.where, A]);
5629
5632
  }
5630
- x = await xi({
5633
+ b = await xi({
5631
5634
  queryObject: e,
5632
5635
  queryConfig: T,
5633
5636
  chartConfig: a,
@@ -5637,33 +5640,33 @@ async function dl(t) {
5637
5640
  chartLimits: c,
5638
5641
  popupTemplateFieldInfosEnabled: l,
5639
5642
  view: m,
5640
- abortSignal: g
5643
+ abortSignal: p
5641
5644
  });
5642
5645
  }
5643
5646
  break;
5644
5647
  case h.HistogramSeries: {
5645
5648
  if (B.length === 0)
5646
- x.data = {
5649
+ b.data = {
5647
5650
  mean: Number.NaN,
5648
5651
  median: Number.NaN,
5649
5652
  stddev: Number.NaN,
5650
5653
  max: Number.NaN,
5651
5654
  min: Number.NaN,
5652
5655
  bins: []
5653
- }, x.count = 0;
5656
+ }, b.count = 0;
5654
5657
  else {
5655
5658
  const { x: T } = S[0], w = B.map((I, P) => {
5656
5659
  const { minValue: O, maxValue: V } = I, $ = P === B.length - 1 ? "<=" : "<";
5657
5660
  return `${T} >= ${O} AND ${T} ${$} ${V}`;
5658
5661
  }), L = Y(w, "OR"), A = { ...i };
5659
- A.where = Y([A.where, L]), x = await Ya({
5662
+ A.where = Y([A.where, L]), b = await Ya({
5660
5663
  queryObject: e,
5661
5664
  chartConfig: a,
5662
5665
  queryConfig: A,
5663
5666
  view: m,
5664
5667
  errorStrings: y,
5665
- abortKey: p,
5666
- abortSignal: g
5668
+ abortKey: g,
5669
+ abortSignal: p
5667
5670
  });
5668
5671
  }
5669
5672
  break;
@@ -5671,21 +5674,21 @@ async function dl(t) {
5671
5674
  case h.ScatterSeries: {
5672
5675
  if (B.length === 0) {
5673
5676
  const { r2: T, trendLinePoints: w } = C.scatterplotSeries;
5674
- x.data = { dataItems: [], r2: T, trendLinePoints: w, count: 0 }, x.count = 0;
5677
+ b.data = { dataItems: [], r2: T, trendLinePoints: w, count: 0 }, b.count = 0;
5675
5678
  } else {
5676
5679
  const { r2: T, trendLinePoints: w } = qa({
5677
5680
  data: B,
5678
5681
  chartConfig: a
5679
5682
  });
5680
- x.data = { dataItems: B, r2: T, trendLinePoints: w }, x.count = B.length;
5683
+ b.data = { dataItems: B, r2: T, trendLinePoints: w }, b.count = B.length;
5681
5684
  }
5682
5685
  break;
5683
5686
  }
5684
5687
  }
5685
- return N && x.data !== void 0 && It({
5686
- arrayToSort: "dataItems" in x.data ? x.data.dataItems : x.data,
5688
+ return N && b.data !== void 0 && Et({
5689
+ arrayToSort: "dataItems" in b.data ? b.data.dataItems : b.data,
5687
5690
  chartConfig: a
5688
- }), x;
5691
+ }), b;
5689
5692
  }
5690
5693
  async function Fi(t) {
5691
5694
  const {
@@ -5704,10 +5707,10 @@ async function Fi(t) {
5704
5707
  view: m
5705
5708
  } = t;
5706
5709
  let y = { valid: !0 };
5707
- const p = st(i), g = await oi({
5710
+ const g = st(i), p = await oi({
5708
5711
  queryObject: e,
5709
5712
  queryConfig: a,
5710
- fetchFullBoxPlotData: !p,
5713
+ fetchFullBoxPlotData: !g,
5711
5714
  chartConfig: i,
5712
5715
  errorStrings: r,
5713
5716
  abortKey: n,
@@ -5720,12 +5723,12 @@ async function Fi(t) {
5720
5723
  replaceNoValueCategoryWithZero: f,
5721
5724
  view: m
5722
5725
  });
5723
- if (!p)
5724
- y = g;
5726
+ if (!g)
5727
+ y = p;
5725
5728
  else {
5726
5729
  const S = { dataItems: [] };
5727
- S.meanLines = g.data.dataItems;
5728
- const b = Oo(i), v = (await oi({
5730
+ S.meanLines = p.data.dataItems;
5731
+ const x = Oo(i), v = (await oi({
5729
5732
  queryObject: e,
5730
5733
  queryConfig: a,
5731
5734
  fetchFullBoxPlotData: !0,
@@ -5737,7 +5740,7 @@ async function Fi(t) {
5737
5740
  replaceNoValueCategoryWithZero: f,
5738
5741
  view: m,
5739
5742
  errorStrings: r,
5740
- chartConfig: b,
5743
+ chartConfig: x,
5741
5744
  abortKey: n,
5742
5745
  abortSignal: s
5743
5746
  })).data;
@@ -5761,12 +5764,12 @@ async function fl(t) {
5761
5764
  view: f,
5762
5765
  syncViewTimeZone: m,
5763
5766
  errorStrings: y,
5764
- abortKey: p,
5765
- abortSignal: g,
5767
+ abortKey: g,
5768
+ abortSignal: p,
5766
5769
  fieldList: S,
5767
- currentSelectionDataItems: b,
5770
+ currentSelectionDataItems: x,
5768
5771
  dataForFilterBySelectionChanged: v,
5769
- filterByViewExtent: x,
5772
+ filterByViewExtent: b,
5770
5773
  preFetchedQueryResponse: B
5771
5774
  } = t, { series: N } = i, T = _(N);
5772
5775
  let w = { valid: !0 };
@@ -5775,7 +5778,7 @@ async function fl(t) {
5775
5778
  queryObject: e,
5776
5779
  queryConfig: a,
5777
5780
  chartConfig: i,
5778
- currentSelectionDataItems: b,
5781
+ currentSelectionDataItems: x,
5779
5782
  dataForFilterBySelectionChanged: v,
5780
5783
  selectionData: n,
5781
5784
  setTimeBinningInfoWhenNotProvided: s,
@@ -5786,8 +5789,8 @@ async function fl(t) {
5786
5789
  replaceNoValueCategoryWithZero: d,
5787
5790
  view: f,
5788
5791
  errorStrings: y,
5789
- abortKey: p,
5790
- abortSignal: g
5792
+ abortKey: g,
5793
+ abortSignal: p
5791
5794
  });
5792
5795
  else
5793
5796
  switch (T) {
@@ -5802,8 +5805,8 @@ async function fl(t) {
5802
5805
  popupTemplateFieldInfosEnabled: c,
5803
5806
  view: f,
5804
5807
  syncViewTimeZone: m,
5805
- abortKey: p,
5806
- abortSignal: g
5808
+ abortKey: g,
5809
+ abortSignal: p
5807
5810
  });
5808
5811
  break;
5809
5812
  case h.BoxPlotSeries:
@@ -5820,8 +5823,8 @@ async function fl(t) {
5820
5823
  replaceNoValueCategoryWithZero: d,
5821
5824
  view: f,
5822
5825
  errorStrings: y,
5823
- abortKey: p,
5824
- abortSignal: g
5826
+ abortKey: g,
5827
+ abortSignal: p
5825
5828
  }));
5826
5829
  break;
5827
5830
  case h.BarSeries:
@@ -5834,7 +5837,7 @@ async function fl(t) {
5834
5837
  // @REV: temporary
5835
5838
  queryConfig: a,
5836
5839
  chartConfig: i,
5837
- filterByViewExtent: x,
5840
+ filterByViewExtent: b,
5838
5841
  errorStrings: y,
5839
5842
  setTimeBinningInfoWhenNotProvided: s,
5840
5843
  returnFeaturesExtent: o,
@@ -5843,8 +5846,8 @@ async function fl(t) {
5843
5846
  hideZeroCountCategories: l,
5844
5847
  replaceNoValueCategoryWithZero: d,
5845
5848
  view: f,
5846
- abortKey: p,
5847
- abortSignal: g,
5849
+ abortKey: g,
5850
+ abortSignal: p,
5848
5851
  fieldList: S,
5849
5852
  preFetchedQueryResponse: B
5850
5853
  };
@@ -5860,7 +5863,7 @@ async function fl(t) {
5860
5863
  w.data = await dr({
5861
5864
  queryObject: e,
5862
5865
  queryConfig: a,
5863
- filterByViewExtent: x,
5866
+ filterByViewExtent: b,
5864
5867
  setTimeBinningInfoWhenNotProvided: s,
5865
5868
  returnFeaturesExtent: o,
5866
5869
  chartLimits: u,
@@ -5870,8 +5873,8 @@ async function fl(t) {
5870
5873
  view: f,
5871
5874
  chartConfig: i,
5872
5875
  errorStrings: y,
5873
- abortKey: p,
5874
- abortSignal: g
5876
+ abortKey: g,
5877
+ abortSignal: p
5875
5878
  });
5876
5879
  break;
5877
5880
  case h.HistogramSeries:
@@ -5879,9 +5882,10 @@ async function fl(t) {
5879
5882
  queryObject: e,
5880
5883
  queryConfig: a,
5881
5884
  chartConfig: i,
5885
+ filterByViewExtent: b,
5882
5886
  view: f,
5883
- abortKey: p,
5884
- abortSignal: g,
5887
+ abortKey: g,
5888
+ abortSignal: p,
5885
5889
  errorStrings: y
5886
5890
  });
5887
5891
  break;
@@ -5892,8 +5896,8 @@ async function fl(t) {
5892
5896
  queryConfig: a,
5893
5897
  chartLimits: u,
5894
5898
  errorStrings: y,
5895
- abortKey: p,
5896
- abortSignal: g
5899
+ abortKey: g,
5900
+ abortSignal: p
5897
5901
  });
5898
5902
  break;
5899
5903
  }
@@ -5915,12 +5919,12 @@ async function Hd(t) {
5915
5919
  setTimeBinningInfoWhenNotProvided: f,
5916
5920
  returnFeaturesExtent: m,
5917
5921
  chartLimits: y,
5918
- popupTemplateFieldInfosEnabled: p,
5919
- hideZeroCountCategories: g,
5922
+ popupTemplateFieldInfosEnabled: g,
5923
+ hideZeroCountCategories: p,
5920
5924
  replaceNoValueCategoryWithZero: S,
5921
- view: b,
5925
+ view: x,
5922
5926
  syncViewTimeZone: v,
5923
- errorStrings: x,
5927
+ errorStrings: b,
5924
5928
  fieldList: B,
5925
5929
  preFetchedQueryResponse: N
5926
5930
  } = t;
@@ -5930,7 +5934,7 @@ async function Hd(t) {
5930
5934
  chartConfig: i,
5931
5935
  runtimeDataFilters: u,
5932
5936
  ignoreViewExtent: c,
5933
- view: b
5937
+ view: x
5934
5938
  });
5935
5939
  return Ls(a), T = await fl({
5936
5940
  chartConfig: i,
@@ -5944,14 +5948,14 @@ async function Hd(t) {
5944
5948
  setTimeBinningInfoWhenNotProvided: f,
5945
5949
  returnFeaturesExtent: m,
5946
5950
  chartLimits: y,
5947
- popupTemplateFieldInfosEnabled: p,
5948
- hideZeroCountCategories: g,
5951
+ popupTemplateFieldInfosEnabled: g,
5952
+ hideZeroCountCategories: p,
5949
5953
  replaceNoValueCategoryWithZero: S,
5950
- view: b,
5954
+ view: x,
5951
5955
  syncViewTimeZone: v,
5952
5956
  abortKey: a,
5953
5957
  abortSignal: r,
5954
- errorStrings: x,
5958
+ errorStrings: b,
5955
5959
  fieldList: B,
5956
5960
  preFetchedQueryResponse: N
5957
5961
  }), T.queryConfig = w, T;
@@ -5983,20 +5987,20 @@ async function yl(t) {
5983
5987
  let d = e;
5984
5988
  const f = k(l), m = xe(i);
5985
5989
  if (s !== lt.RenderUpToTheLimit && n !== void 0 && n > e.length && f !== F.BarAndLineFromFields && f !== F.BarAndLineNoAggregation && f !== F.PieNoAggregation && m === h.CategoryAxisFormat) {
5986
- const { x: y } = l[0], p = {
5990
+ const { x: y } = l[0], g = {
5987
5991
  ...a,
5988
5992
  returnDistinctValues: !0,
5989
5993
  outFields: [y]
5990
5994
  };
5991
- delete p.outStatistics, delete p.orderByFields, delete p.groupByFieldsForStatistics;
5995
+ delete g.outStatistics, delete g.orderByFields, delete g.groupByFieldsForStatistics;
5992
5996
  const S = (await Fe({
5993
5997
  queryObject: r,
5994
- queryConfig: p,
5998
+ queryConfig: g,
5995
5999
  featureCount: n,
5996
6000
  errorStrings: o,
5997
6001
  abortKey: u,
5998
6002
  abortSignal: c
5999
- })).map((b) => b.attributes[y]).filter((b) => b != null);
6003
+ })).map((x) => x.attributes[y]).filter((x) => x != null);
6000
6004
  S.length > e.length && (d = ml(S, e, y));
6001
6005
  }
6002
6006
  return d;
@@ -6182,45 +6186,45 @@ function xl(t) {
6182
6186
  const { unit: o } = a, u = a.size ?? 1, c = i[0], { x: l } = c;
6183
6187
  let d, f;
6184
6188
  if (be(c) && (f = c.temporalBinning?.nullPolicy, d = c.temporalBinning?.timeAggregationType), u > 1 || o === R.Week || o === R.Month || o === R.Year) {
6185
- const { query: m } = i[0], y = ue(i), { statisticType: p } = m?.outStatistics?.[0] ?? Xi;
6186
- let g = !1, S = d === ee.End ? e.length - 1 : 0;
6187
- const b = {
6189
+ const { query: m } = i[0], y = ue(i), { statisticType: g } = m?.outStatistics?.[0] ?? Xi;
6190
+ let p = !1, S = d === ee.End ? e.length - 1 : 0;
6191
+ const x = {
6188
6192
  binFirstOrLastIndex: S,
6189
6193
  data: e,
6190
6194
  x: l,
6191
6195
  timeIntervalInfo: a
6192
6196
  };
6193
- for (; !g; ) {
6197
+ for (; !p; ) {
6194
6198
  let v = {};
6195
- const { binStartDate: x, binEndDate: B, last: N, nextBinFirstOrLastIndex: T, sliceStartIndex: w, sliceEndIndex: L } = d === ee.End ? (
6199
+ const { binStartDate: b, binEndDate: B, last: N, nextBinFirstOrLastIndex: T, sliceStartIndex: w, sliceEndIndex: L } = d === ee.End ? (
6196
6200
  // When grouping from the end we'll start from the last date and move backward to create the bins
6197
- Fl(b)
6201
+ Fl(x)
6198
6202
  ) : (
6199
6203
  // When grouping from the start we'll start from the first date and move forward to create the bins
6200
- Sl(b)
6204
+ Sl(x)
6201
6205
  );
6202
- if (g = N, v = d === ee.End ? v = e[L - 1] : v = e[S], B > n && x < n || x < r && B > r || x >= r && B <= n) {
6206
+ if (p = N, v = d === ee.End ? v = e[L - 1] : v = e[S], B > n && b < n || b < r && B > r || b >= r && B <= n) {
6203
6207
  const A = e.slice(w, L).filter((O) => !(C.dateBinModel in O));
6204
6208
  y.forEach((O) => {
6205
- v[O] = bl({ binsToRegroup: A, statisticType: p, y: O, nullPolicy: f });
6209
+ v[O] = bl({ binsToRegroup: A, statisticType: g, y: O, nullPolicy: f });
6206
6210
  });
6207
6211
  const I = A.map((O) => O[Oe]).filter((O) => O !== void 0), P = On(I);
6208
- P !== void 0 && (v[Oe] = P), v[l] = x, v[C.xAxisField] = x, v[C.dateBinningRange] = [x, B], delete v[C.dateBinModel], s.push(v);
6212
+ P !== void 0 && (v[Oe] = P), v[l] = b, v[C.xAxisField] = b, v[C.dateBinningRange] = [b, B], delete v[C.dateBinModel], s.push(v);
6209
6213
  } else N && d !== ee.End && s.length > 0 && (s[s.length - 1][C.dateBinningRange][1] = s[s.length - 1][C.dateBinningRange][1] + 1);
6210
- S = T, b.binFirstOrLastIndex = T;
6214
+ S = T, x.binFirstOrLastIndex = T;
6211
6215
  }
6212
6216
  d === ee.End && (s = s.reverse());
6213
6217
  } else u === 1 ? s = e.map((m, y) => {
6214
- const p = m[l];
6215
- let g = e[y + 1]?.[l];
6216
- return g = typeof g == "number" ? g - 1 : Ve({
6217
- date: p,
6218
+ const g = m[l];
6219
+ let p = e[y + 1]?.[l];
6220
+ return p = typeof p == "number" ? p - 1 : Ve({
6221
+ date: g,
6218
6222
  unit: o,
6219
6223
  size: u,
6220
6224
  nextOrPrevious: "next"
6221
6225
  }), {
6222
6226
  ...m,
6223
- [C.dateBinningRange]: [p, g]
6227
+ [C.dateBinningRange]: [g, p]
6224
6228
  };
6225
6229
  }) : s = e;
6226
6230
  return s;
@@ -6278,33 +6282,33 @@ function Cl(t) {
6278
6282
  if (o !== void 0 && Number.isFinite(o) && a / i !== o) {
6279
6283
  let y = Math.ceil(a / i) * i - a;
6280
6284
  u === R.Week && (y *= 7);
6281
- const p = sr(n);
6285
+ const g = sr(n);
6282
6286
  if (l === ee.End) {
6283
- let g = r[0][c];
6287
+ let p = r[0][c];
6284
6288
  for (let S = 0; S < y; S += 1)
6285
- g = Ve({
6286
- date: g,
6289
+ p = Ve({
6290
+ date: p,
6287
6291
  unit: u,
6288
6292
  size: 1,
6289
6293
  nextOrPrevious: "previous"
6290
6294
  }), r.push({
6291
- ...p,
6292
- [c]: g,
6293
- [C.xAxisField]: g
6295
+ ...g,
6296
+ [c]: p,
6297
+ [C.xAxisField]: p
6294
6298
  });
6295
6299
  y > 0 && (d = r[r.length - 1][c]);
6296
6300
  } else {
6297
- let g = r[r.length - 1][c];
6301
+ let p = r[r.length - 1][c];
6298
6302
  for (let S = 0; S < y; S += 1)
6299
- g = Ve({
6300
- date: g,
6303
+ p = Ve({
6304
+ date: p,
6301
6305
  unit: u,
6302
6306
  size: 1,
6303
6307
  nextOrPrevious: "next"
6304
6308
  }), r.push({
6305
- ...p,
6306
- [c]: g,
6307
- [C.xAxisField]: g
6309
+ ...g,
6310
+ [c]: p,
6311
+ [C.xAxisField]: p
6308
6312
  });
6309
6313
  f = r[r.length - 1][c];
6310
6314
  }
@@ -6363,14 +6367,14 @@ function Nl(t) {
6363
6367
  unit: u
6364
6368
  })) {
6365
6369
  const { x: d } = a[0], f = a[0].temporalBinning?.timeAggregationType, m = sr(a);
6366
- let p = f === ee.End ? i : e, g = f === ee.End ? r.length - 1 : 0;
6367
- for (; g < r.length && (f === ee.End && p > e || f !== ee.End && p < i); )
6368
- p !== r[g][d] ? c.push({
6370
+ let g = f === ee.End ? i : e, p = f === ee.End ? r.length - 1 : 0;
6371
+ for (; p < r.length && (f === ee.End && g > e || f !== ee.End && g < i); )
6372
+ g !== r[p][d] ? c.push({
6369
6373
  ...m,
6370
- [d]: p,
6371
- [C.xAxisField]: p
6372
- }) : g = f === ee.End ? g - 1 : g + 1, p = Ve({
6373
- date: p,
6374
+ [d]: g,
6375
+ [C.xAxisField]: g
6376
+ }) : p = f === ee.End ? p - 1 : p + 1, g = Ve({
6377
+ date: g,
6374
6378
  unit: u === R.Month || u === R.Year ? R.Day : u,
6375
6379
  size: 1,
6376
6380
  nextOrPrevious: f === ee.End ? "previous" : "next"
@@ -6421,20 +6425,20 @@ function* wl(t) {
6421
6425
  }
6422
6426
  ];
6423
6427
  let y = Ue.groupByCaseBegin;
6424
- for (let g = 0; g < r.length; g += 1) {
6425
- const S = r[g], [b, v] = S[C.dateBinningRange], x = nt(b), B = nt(v);
6428
+ for (let p = 0; p < r.length; p += 1) {
6429
+ const S = r[p], [x, v] = S[C.dateBinningRange], b = nt(x), B = nt(v);
6426
6430
  y = Al({
6427
6431
  groupByFieldsForStatistics: y,
6428
- queryStartDate: x,
6432
+ queryStartDate: b,
6429
6433
  queryEndDate: B,
6430
6434
  dateField: l,
6431
6435
  y: [d].flat()[0],
6432
- binIndex: g,
6433
- lastBin: g === r.length - 1
6436
+ binIndex: p,
6437
+ lastBin: p === r.length - 1
6434
6438
  });
6435
6439
  }
6436
6440
  y = `${y} ${Ue.groupByCaseEnd}`;
6437
- const p = {
6441
+ const g = {
6438
6442
  ...a,
6439
6443
  groupByFieldsForStatistics: [y],
6440
6444
  outStatistics: m,
@@ -6442,7 +6446,7 @@ function* wl(t) {
6442
6446
  };
6443
6447
  yield Fe({
6444
6448
  queryObject: e,
6445
- queryConfig: p,
6449
+ queryConfig: g,
6446
6450
  noBatch: !0,
6447
6451
  errorStrings: n,
6448
6452
  abortSignal: s
@@ -6461,14 +6465,14 @@ async function Ll(t) {
6461
6465
  abortSignal: s
6462
6466
  }), l = (await Promise.all(c)).flat();
6463
6467
  if (l.length > 0) {
6464
- const { isInItem: d, expr: f } = qt(l[0].attributes);
6468
+ const { isInItem: d, expr: f } = Vt(l[0].attributes);
6465
6469
  d && l.forEach((m) => {
6466
6470
  const y = m.attributes[`${f}`];
6467
6471
  if (y !== void 0) {
6468
- const [p, g] = y.split("|");
6469
- if (g !== void 0) {
6472
+ const [g, p] = y.split("|");
6473
+ if (p !== void 0) {
6470
6474
  const S = m.attributes[D.ContinuousPercentile];
6471
- o[g][`${p}`] = S;
6475
+ o[p][`${g}`] = S;
6472
6476
  }
6473
6477
  }
6474
6478
  });
@@ -6495,10 +6499,10 @@ function Gi(t) {
6495
6499
  }
6496
6500
  }
6497
6501
  function Pl(t) {
6498
- const { chartConfig: e, queryResults: i, mapToStatField: a, splitByField: r, x: n, y: s, nullPolicy: o, queryObject: u } = t, c = Ea(n), d = Ce(u).find((g) => g.name === n)?.type, f = [], m = e.series[0], y = "temporalBinning" in m ? m.temporalBinning?.trimIncompleteTimeInterval : !1, p = "temporalBinning" in m ? m.temporalBinning?.timeAggregationType : !1;
6499
- return i.forEach((g, S) => {
6500
- if (!(y && (S === 0 && p === ee.End || S === i.length - 1 && p === ee.Start))) {
6501
- const { attributes: v, stackedAttributes: x } = g;
6502
+ const { chartConfig: e, queryResults: i, mapToStatField: a, splitByField: r, x: n, y: s, nullPolicy: o, queryObject: u } = t, c = Ea(n), d = Ce(u).find((p) => p.name === n)?.type, f = [], m = e.series[0], y = "temporalBinning" in m ? m.temporalBinning?.trimIncompleteTimeInterval : !1, g = "temporalBinning" in m ? m.temporalBinning?.timeAggregationType : !1;
6503
+ return i.forEach((p, S) => {
6504
+ if (!(y && (S === 0 && g === ee.End || S === i.length - 1 && g === ee.Start))) {
6505
+ const { attributes: v, stackedAttributes: b } = p;
6502
6506
  let B = v[c.lowerBoundaryAlias], N = v[c.upperBoundaryAlias];
6503
6507
  const T = B, w = N, L = (A, I) => {
6504
6508
  let P = A;
@@ -6515,7 +6519,7 @@ function Pl(t) {
6515
6519
  };
6516
6520
  if (B = L(B, d), N = L(N, d), typeof B == "number" && typeof N == "number") {
6517
6521
  const A = { ...v };
6518
- A[C.originalServerBinningRange] = [T, w], A[n] = B, A[C.xAxisField] = B, A[C.dateBinningRange] = [B, N], delete A[c.lowerBoundaryAlias], delete A[c.upperBoundaryAlias], x && r && !oe(r) && a ? x.forEach((O) => {
6522
+ A[C.originalServerBinningRange] = [T, w], A[n] = B, A[C.xAxisField] = B, A[C.dateBinningRange] = [B, N], delete A[c.lowerBoundaryAlias], delete A[c.upperBoundaryAlias], b && r && !oe(r) && a ? b.forEach((O) => {
6519
6523
  const V = O[r];
6520
6524
  if (V === null || typeof V == "string" || typeof V == "number") {
6521
6525
  const $ = a?.get(V);
@@ -6523,7 +6527,7 @@ function Pl(t) {
6523
6527
  }
6524
6528
  }) : typeof s == "string" && Gi({ dataItem: A, statField: s, nullPolicy: o });
6525
6529
  const { featureExtent: I, featureExtentKey: P } = or({
6526
- feature: g,
6530
+ feature: p,
6527
6531
  splitByField: r
6528
6532
  });
6529
6533
  I && (A[P] = I), f.push(A);
@@ -6551,25 +6555,25 @@ async function Ml(t) {
6551
6555
  arrayToSort: l,
6552
6556
  sortingField: a
6553
6557
  }), m > 1) {
6554
- const { numberOfFinalBinsWithinDataRange: y, numberOfSingleBinsWithinDataRange: p } = nr({
6558
+ const { numberOfFinalBinsWithinDataRange: y, numberOfSingleBinsWithinDataRange: g } = nr({
6555
6559
  dateMinTimestamp: d,
6556
6560
  dateMaxTimestamp: f,
6557
6561
  timeIntervalInfo: o
6558
- }), { newDateMin: g, newDateMax: S } = Cl({
6562
+ }), { newDateMin: p, newDateMax: S } = Cl({
6559
6563
  dateMaxTimestamp: f,
6560
6564
  data: l,
6561
6565
  numberOfFinalBinsWithinDataRange: y,
6562
- numberOfSingleBinsWithinDataRange: p,
6566
+ numberOfSingleBinsWithinDataRange: g,
6563
6567
  seriesConfig: n,
6564
6568
  timeIntervalInfo: o
6565
6569
  });
6566
6570
  l = Nl({
6567
- newDateMin: g,
6571
+ newDateMin: p,
6568
6572
  newDateMax: S,
6569
6573
  seriesConfig: n,
6570
6574
  data: l,
6571
6575
  initialNumberOfBins: m,
6572
- numberOfSingleBinsWithinDataRange: p,
6576
+ numberOfSingleBinsWithinDataRange: g,
6573
6577
  timeIntervalInfo: o
6574
6578
  }), ht({
6575
6579
  arrayToSort: l,
@@ -6609,8 +6613,8 @@ function Ol(t) {
6609
6613
  ({ unit: a } = l);
6610
6614
  const m = u / d, y = f.findIndex(
6611
6615
  (S) => S >= m
6612
- ), p = f[y], g = y === 0 ? f[0] : f[y - 1];
6613
- r = p - m < m - g ? p : g;
6616
+ ), g = f[y], p = y === 0 ? f[0] : f[y - 1];
6617
+ r = g - m < m - p ? g : p;
6614
6618
  }
6615
6619
  return { size: r, unit: a };
6616
6620
  }
@@ -6619,7 +6623,7 @@ function Il(t) {
6619
6623
  let r = !1;
6620
6624
  if (be(e) && i) {
6621
6625
  const { unit: n, size: s } = e.temporalBinning ?? {};
6622
- r = !ei(n, s) && a === !0;
6626
+ r = !ti(n, s) && a === !0;
6623
6627
  }
6624
6628
  return r;
6625
6629
  }
@@ -6638,10 +6642,10 @@ function El(t) {
6638
6642
  Number(e[5] ?? 0)
6639
6643
  ).valueOf();
6640
6644
  }
6641
- async function Ut(t) {
6642
- const { queryObject: e, queryConfig: i, category: a, splitByField: r, chartLimits: n, errorStrings: s, abortKey: o, abortSignal: u } = t, c = r !== void 0, l = a !== Vt ? [a] : [];
6645
+ async function Yt(t) {
6646
+ const { queryObject: e, queryConfig: i, category: a, splitByField: r, chartLimits: n, errorStrings: s, abortKey: o, abortSignal: u } = t, c = r !== void 0, l = a !== Rt ? [a] : [];
6643
6647
  c && l.push(r);
6644
- const d = z(e), { idField: f, isTraditionalTypeOID: m } = ve(d), y = m ? f : "*", p = {
6648
+ const d = z(e), { idField: f, isTraditionalTypeOID: m } = ve(d), y = m ? f : "*", g = {
6645
6649
  ...i,
6646
6650
  groupByFieldsForStatistics: Array.from(new Set(l)),
6647
6651
  outStatistics: [
@@ -6659,20 +6663,20 @@ async function Ut(t) {
6659
6663
  // state, using the `returnDistinctValues` on a specific field.
6660
6664
  // Refer to: https://devtopia.esri.com/WebGIS/arcgis-charts/issues/8208
6661
6665
  num: n?.maxBarThreePlusSeriesCountTotal
6662
- }, g = await Fe({
6666
+ }, p = await Fe({
6663
6667
  queryObject: e,
6664
6668
  featureCount: 1,
6665
6669
  // skipping the count
6666
- queryConfig: p,
6670
+ queryConfig: g,
6667
6671
  errorStrings: s,
6668
6672
  abortKey: o,
6669
6673
  abortSignal: u
6670
6674
  });
6671
6675
  return Array.from(
6672
6676
  new Set(
6673
- g.map((b) => b.attributes[c ? r : a])
6677
+ p.map((x) => x.attributes[c ? r : a])
6674
6678
  )
6675
- ).sort((b, v) => typeof b == "string" && typeof v == "string" ? b.localeCompare(v) : Number(b) - Number(v));
6679
+ ).sort((x, v) => typeof x == "string" && typeof v == "string" ? x.localeCompare(v) : Number(x) - Number(v));
6676
6680
  }
6677
6681
  function or(t) {
6678
6682
  const { feature: e, splitByField: i, chartSubType: a } = t;
@@ -6861,7 +6865,7 @@ function lr(t) {
6861
6865
  showMean: u,
6862
6866
  chartLimits: c,
6863
6867
  fieldList: l
6864
- } = t, { series: d } = a, f = k(d), m = _(d), { x: y } = d[0], p = "y" in d[0] ? d[0].y : void 0, g = d[0].query?.outStatistics ?? [], S = we(a?.axes?.[0]?.valueFormat), { originalYCategoryValue: b, originalCategoryValue: v, originalDateValue: x } = C, B = ri(e, y), N = typeof p == "string" ? ri(e, p) : void 0, w = ro(l ?? []).includes(y), L = [];
6868
+ } = t, { series: d } = a, f = k(d), m = _(d), { x: y } = d[0], g = "y" in d[0] ? d[0].y : void 0, p = d[0].query?.outStatistics ?? [], S = we(a?.axes?.[0]?.valueFormat), { originalYCategoryValue: x, originalCategoryValue: v, originalDateValue: b } = C, B = ri(e, y), N = typeof g == "string" ? ri(e, g) : void 0, w = ro(l ?? []).includes(y), L = [];
6865
6869
  let A = 0;
6866
6870
  const I = /* @__PURE__ */ new Set(), { maxCategoryCount: P } = ut(c), O = Wl({ queryResponse: i, chartConfig: a, maxCategoryCount: P });
6867
6871
  for (let V = 0; O[V] && V < O.length && !(o !== void 0 && A >= o); V += 1) {
@@ -6871,40 +6875,40 @@ function lr(t) {
6871
6875
  if (Gl({ attributes: M, uniqueCategoryList: I, maxCategoryCount: P, x: y, chartSubType: f }))
6872
6876
  continue;
6873
6877
  if (kl(M, d), f === F.PieFromFields || f === F.BarAndLineFromFields)
6874
- M = Ql(M, g);
6875
- else if (typeof p == "string" && f === F.BarAndLineSplitByNoAggregation) {
6878
+ M = Ql(M, p);
6879
+ else if (typeof g == "string" && f === F.BarAndLineSplitByNoAggregation) {
6876
6880
  const ae = z(e), { idField: pe, isTraditionalTypeOID: $e } = ve(ae);
6877
- _l({ dataItem: M, splitByField: n, y: p, fieldOID: $e ? pe : void 0 });
6878
- } else p && (f === F.BoxPlotMonoField || f === F.BoxPlotMonoFieldAndCategory || f === F.BoxPlotMonoFieldAndSplitBy || f === F.BoxPlotMonoFieldAndCategoryAndSplitBy) && jl(
6881
+ _l({ dataItem: M, splitByField: n, y: g, fieldOID: $e ? pe : void 0 });
6882
+ } else g && (f === F.BoxPlotMonoField || f === F.BoxPlotMonoFieldAndCategory || f === F.BoxPlotMonoFieldAndSplitBy || f === F.BoxPlotMonoFieldAndCategoryAndSplitBy) && jl(
6879
6883
  M,
6880
- typeof p == "string" ? p : p[0]
6884
+ typeof g == "string" ? g : g[0]
6881
6885
  );
6882
6886
  zl({ attributes: M, showMean: u, chartSubType: f });
6883
6887
  let q = M[y];
6884
- const G = typeof p == "string" ? M[p] : void 0;
6888
+ const G = typeof g == "string" ? M[g] : void 0;
6885
6889
  q === null && d[0]?.query?.fetchNullValues === !0 && f !== F.PieFromFields && (M[v] = null, q = C.nullValue), S || (w && typeof q == "string" ? q = new Date(q).valueOf() : s && (q = El(M))), typeof q == "string" && l?.find((ae) => ae.name === y)?.type === U.TimeOnly && (M[v] = q, q = Yl(q));
6886
6890
  const { outStatisticFieldName: J } = W.outStatistics ?? {}, { featureExtent: X, featureExtentKey: H } = or({ feature: $, splitByField: n, chartSubType: f });
6887
6891
  if (X && (M[H] = X), f === F.BarAndLineSplitBy && J !== void 0) {
6888
6892
  const ae = M[n], pe = r?.get(ae);
6889
6893
  pe !== void 0 && (ae === n && (M[C.technicalFieldSplitByField] = M[pe]), M[pe] = M[J]), delete M[J];
6890
- } else (f === F.PieNoAggregation || f === F.BarAndLineNoAggregation || f === F.BarAndLineSplitByNoAggregation) && (w ? M[x] = q : q !== C.nullValue && (M[v] = q), cn({ isXAxis: !0, chartType: m, valueFormat: a.axes?.[0]?.valueFormat }) && (M[C.xAxisField] = `${q}-${V}`, M[C.xAxisDisplayField] = q), M[W.uniqueIdsName] = $.getObjectId());
6894
+ } else (f === F.PieNoAggregation || f === F.BarAndLineNoAggregation || f === F.BarAndLineSplitByNoAggregation) && (w ? M[b] = q : q !== C.nullValue && (M[v] = q), cn({ isXAxis: !0, chartType: m, valueFormat: a.axes?.[0]?.valueFormat }) && (M[C.xAxisField] = `${q}-${V}`, M[C.xAxisDisplayField] = q), M[W.uniqueIdsName] = $.getObjectId());
6891
6895
  m === h.BoxPlotSeries && (M = Rl(d, M)), m === h.PieSeries && typeof q == "number" && (M[v] === void 0 && (M[v] = M[y]), q = `${q}`), q !== void 0 && (M[v] === void 0 && (M[v] = M[y]), M[y] === null ? M[y] = m === h.HeatSeries ? "null" : C.nullValue : M[y] = q, Ul({
6892
6896
  attributes: M,
6893
6897
  xValue: q,
6894
6898
  yValue: G,
6895
6899
  x: y,
6896
- y: p,
6900
+ y: g,
6897
6901
  xFieldDomain: B,
6898
6902
  yFieldDomain: N,
6899
6903
  chartType: m,
6900
6904
  chartSubType: f,
6901
6905
  xAxisValueFormat: a.axes?.[0].valueFormat,
6902
6906
  yAxisValueFormat: a.axes?.[1]?.valueFormat
6903
- }), m === h.HeatSeries && typeof p == "string" && M[p] === null && (M[p] = "null", M[b] = null), M[C.xAxisField] === void 0 && (M[C.xAxisField] = M[y])), M = $l(M, a), L.push(M);
6907
+ }), m === h.HeatSeries && typeof g == "string" && M[g] === null && (M[g] = "null", M[x] = null), M[C.xAxisField] === void 0 && (M[C.xAxisField] = M[y])), M = $l(M, a), L.push(M);
6904
6908
  }
6905
6909
  return L;
6906
6910
  }
6907
- async function _t(t) {
6911
+ async function jt(t) {
6908
6912
  const {
6909
6913
  queryObject: e,
6910
6914
  uniqueQuery: i,
@@ -6919,19 +6923,19 @@ async function _t(t) {
6919
6923
  popupTemplateFieldInfosEnabled: d,
6920
6924
  preFetchedQueryResponse: f,
6921
6925
  errorStrings: m
6922
- } = t, { series: y } = a, p = k(y);
6923
- let g = [];
6924
- const S = p === F.BarAndLineSplitBy || p === F.BarAndLineSplitByNoAggregation ? te(y[0].query?.where) : "", b = f ?? await Fe({
6926
+ } = t, { series: y } = a, g = k(y);
6927
+ let p = [];
6928
+ const S = g === F.BarAndLineSplitBy || g === F.BarAndLineSplitByNoAggregation ? te(y[0].query?.where) : "", x = f ?? await Fe({
6925
6929
  queryObject: e,
6926
6930
  queryConfig: i,
6927
6931
  featureCount: o,
6928
6932
  abortKey: n,
6929
6933
  errorStrings: m,
6930
6934
  abortSignal: s
6931
- }), v = Ce(e, d), { x } = y[0];
6932
- return g = lr({
6935
+ }), v = Ce(e, d), { x: b } = y[0];
6936
+ return p = lr({
6933
6937
  queryObject: e,
6934
- queryResponse: b,
6938
+ queryResponse: x,
6935
6939
  chartConfig: a,
6936
6940
  mapToStatField: r,
6937
6941
  splitByField: S,
@@ -6940,10 +6944,10 @@ async function _t(t) {
6940
6944
  resultLimit: i.num,
6941
6945
  showMean: c,
6942
6946
  chartLimits: l
6943
- }), p !== F.BarAndLineSplitByNoAggregation && p !== F.BarAndLineFromFields && (S !== "" && (g = bt({ data: g, x, splitByField: S })), g = Vl(
6944
- g,
6947
+ }), g !== F.BarAndLineSplitByNoAggregation && g !== F.BarAndLineFromFields && (S !== "" && (p = bt({ data: p, x: b, splitByField: S })), p = Vl(
6948
+ p,
6945
6949
  y
6946
- )), g;
6950
+ )), p;
6947
6951
  }
6948
6952
  async function ur(t) {
6949
6953
  const {
@@ -6967,7 +6971,7 @@ async function ur(t) {
6967
6971
  abortSignal: o
6968
6972
  }), f !== void 0) {
6969
6973
  const y = c === F.BoxPlotMonoField || c === F.BoxPlotMonoFieldAndCategory || c === F.BoxPlotMonoFieldAndSplitBy;
6970
- m = ti(c) && !y ? f * d : f;
6974
+ m = ii(c) && !y ? f * d : f;
6971
6975
  }
6972
6976
  return n === lt.RenderUpToTheLimit && m !== void 0 && r !== void 0 && r < m && (m = r, f = Math.ceil(m / d)), { categoryOrDateCount: f, elementCount: m };
6973
6977
  }
@@ -6987,13 +6991,13 @@ async function oi(t) {
6987
6991
  chartLimits: f,
6988
6992
  popupTemplateFieldInfosEnabled: m,
6989
6993
  hideZeroCountCategories: y
6990
- } = t, p = st(e), g = t.replaceNoValueCategoryWithZero ?? C.options.replaceNoValueCategoryWithZero, S = !(y ?? !g), { behaviorAfterLimit: b } = f ?? {};
6994
+ } = t, g = st(e), p = t.replaceNoValueCategoryWithZero ?? C.options.replaceNoValueCategoryWithZero, S = !(y ?? !p), { behaviorAfterLimit: x } = f ?? {};
6991
6995
  let v;
6992
- const x = { valid: !0 };
6996
+ const b = { valid: !0 };
6993
6997
  let B, N = !1;
6994
6998
  const T = e.series, w = T[0], L = k(e.series);
6995
6999
  if (ie(r))
6996
- v = _(T) === h.BarSeries ? await zs(t) : x;
7000
+ v = _(T) === h.BarSeries ? await zs(t) : b;
6997
7001
  else {
6998
7002
  if (w !== void 0) {
6999
7003
  const A = _(T), { uniqueQuery: I, mapToStatField: P } = yi({
@@ -7009,7 +7013,7 @@ async function oi(t) {
7009
7013
  chartConfig: e,
7010
7014
  queryObject: r,
7011
7015
  queryConfig: i,
7012
- behaviorAfterLimit: b,
7016
+ behaviorAfterLimit: x,
7013
7017
  numberMaxOfFeaturesToFetch: I.num,
7014
7018
  abortSignal: c
7015
7019
  });
@@ -7020,7 +7024,7 @@ async function oi(t) {
7020
7024
  chartType: A,
7021
7025
  chartLimits: f
7022
7026
  });
7023
- if (M && (B = await _t({
7027
+ if (M && (B = await jt({
7024
7028
  queryObject: r,
7025
7029
  uniqueQuery: I,
7026
7030
  chartConfig: e,
@@ -7028,13 +7032,13 @@ async function oi(t) {
7028
7032
  mapToStatField: P,
7029
7033
  elementCount: V,
7030
7034
  isTimeBinningSeries: !1,
7031
- showMean: p,
7035
+ showMean: g,
7032
7036
  chartLimits: f,
7033
7037
  popupTemplateFieldInfosEnabled: m,
7034
7038
  errorStrings: u,
7035
7039
  abortKey: n,
7036
7040
  abortSignal: c
7037
- }), de(e) && B !== void 0 && (x.data = await Zo({
7041
+ }), de(e) && B !== void 0 && (b.data = await Zo({
7038
7042
  data: B,
7039
7043
  queryObject: r,
7040
7044
  fetchFullBoxPlotData: a,
@@ -7045,7 +7049,7 @@ async function oi(t) {
7045
7049
  errorStrings: u,
7046
7050
  abortKey: n,
7047
7051
  abortSignal: c
7048
- }), f?.maxBoxPlotOutlierLimit !== void 0 && (M = (x.data.outliers ?? []).length <= f.maxBoxPlotOutlierLimit, N = !M)), $ && (O = B.length, V = ti(L) ? O * T.length : O, M = Ae({
7052
+ }), f?.maxBoxPlotOutlierLimit !== void 0 && (M = (b.data.outliers ?? []).length <= f.maxBoxPlotOutlierLimit, N = !M)), $ && (O = B.length, V = ii(L) ? O * T.length : O, M = Ae({
7049
7053
  count: V,
7050
7054
  seriesCount: T.length,
7051
7055
  chartType: A,
@@ -7059,7 +7063,7 @@ async function oi(t) {
7059
7063
  fieldList: s
7060
7064
  }));
7061
7065
  let q = "";
7062
- L === F.PieFromFields ? q = Ne : "y" in w && typeof w.y == "string" && (q = w.y), Vn(B, q) ? x.data = { dataItems: B } : Vo(x, j.PieChartMixOfNegativePositiveSlices);
7066
+ L === F.PieFromFields ? q = Ne : "y" in w && typeof w.y == "string" && (q = w.y), Vn(B, q) ? b.data = { dataItems: B } : Vo(b, j.PieChartMixOfNegativePositiveSlices);
7063
7067
  } else if ((A === h.RadarSeries || A === h.BarSeries || A === h.LineSeries || A === h.ComboLineAndBarSeries) && (L === F.BarAndLineFromFields && "y" in w && typeof w.y == "string" ? B = Dt({
7064
7068
  dataToConvert: B[0],
7065
7069
  x: w.x,
@@ -7071,11 +7075,11 @@ async function oi(t) {
7071
7075
  chartConfig: e,
7072
7076
  queryConfig: i,
7073
7077
  categoryOrDateCount: O,
7074
- behaviorAfterLimit: b,
7078
+ behaviorAfterLimit: x,
7075
7079
  errorStrings: u,
7076
7080
  abortKey: n,
7077
7081
  abortSignal: c
7078
- }), V = ti(L) ? B.length * T.length : B.length, M = Ae({
7082
+ }), V = ii(L) ? B.length * T.length : B.length, M = Ae({
7079
7083
  count: V,
7080
7084
  seriesCount: T.length,
7081
7085
  chartType: A,
@@ -7087,16 +7091,16 @@ async function oi(t) {
7087
7091
  const { size: G, unit: J } = w.temporalBinning ?? {};
7088
7092
  G !== void 0 && J !== void 0 && (q = { size: G, unit: J });
7089
7093
  }
7090
- x.data = { dataItems: B, timeIntervalInfo: q };
7094
+ b.data = { dataItems: B, timeIntervalInfo: q };
7091
7095
  }
7092
7096
  }
7093
- M || Ot({
7094
- dataInfo: x,
7097
+ M || It({
7098
+ dataInfo: b,
7095
7099
  chartType: A,
7096
7100
  subError: { outlierLimit: N }
7097
- }), x.count = V;
7101
+ }), b.count = V;
7098
7102
  }
7099
- v = x;
7103
+ v = b;
7100
7104
  }
7101
7105
  return v;
7102
7106
  }
@@ -7135,11 +7139,11 @@ function Kl(t) {
7135
7139
  for (const m of a) {
7136
7140
  const y = String(m);
7137
7141
  if (!l.has(`${f}|${y}`)) {
7138
- const p = u ? Vi({
7142
+ const g = u ? Vi({
7139
7143
  queryObject: u,
7140
7144
  fieldName: s,
7141
7145
  fieldValue: f
7142
- }) ?? d : d, g = u ? Vi({
7146
+ }) ?? d : d, p = u ? Vi({
7143
7147
  queryObject: u,
7144
7148
  fieldName: o,
7145
7149
  fieldValue: y
@@ -7147,8 +7151,8 @@ function Kl(t) {
7147
7151
  c.push({
7148
7152
  [C.originalCategoryValue]: d === null ? null : d,
7149
7153
  [C.originalYCategoryValue]: m === null ? null : m,
7150
- [Q.xField]: d === null ? "null" : p,
7151
- [Q.yField]: m === null ? "null" : g,
7154
+ [Q.xField]: d === null ? "null" : g,
7155
+ [Q.yField]: m === null ? "null" : p,
7152
7156
  [r]: n
7153
7157
  });
7154
7158
  }
@@ -7177,7 +7181,7 @@ async function cr(t) {
7177
7181
  } = t, m = { valid: !0 };
7178
7182
  let y;
7179
7183
  if (We(e)) {
7180
- const { nullPolicy: p } = e, g = e.series[0], { x: S, y: b, query: v, xTemporalBinning: x, yTemporalBinning: B } = g, N = v?.outStatistics?.[0]?.outStatisticFieldName ?? "", T = v?.outStatistics?.[0]?.statisticType ?? D.Count, w = Xl(e), L = Q.valueField, A = p === Se.Zero ? 0 : null;
7184
+ const { nullPolicy: g } = e, p = e.series[0], { x: S, y: x, query: v, xTemporalBinning: b, yTemporalBinning: B } = p, N = v?.outStatistics?.[0]?.outStatisticFieldName ?? "", T = v?.outStatistics?.[0]?.statisticType ?? D.Count, w = Xl(e), L = Q.valueField, A = g === Se.Zero ? 0 : null;
7181
7185
  if (Io(e)) {
7182
7186
  const I = await Ns({
7183
7187
  chartConfig: e,
@@ -7194,7 +7198,7 @@ async function cr(t) {
7194
7198
  chartType: h.HeatSeries,
7195
7199
  chartLimits: o
7196
7200
  }))
7197
- Ot({ dataInfo: m, chartType: h.HeatSeries });
7201
+ It({ dataInfo: m, chartType: h.HeatSeries });
7198
7202
  else if (typeof I?.[0] == "object") {
7199
7203
  const P = Ce(a, u);
7200
7204
  y = lr({
@@ -7207,17 +7211,17 @@ async function cr(t) {
7207
7211
  resultLimit: i.num,
7208
7212
  fieldList: P
7209
7213
  });
7210
- const O = await Ut({
7214
+ const O = await Yt({
7211
7215
  queryObject: a,
7212
7216
  queryConfig: i,
7213
7217
  category: S,
7214
7218
  errorStrings: n,
7215
7219
  abortKey: d,
7216
7220
  abortSignal: f
7217
- }), V = await Ut({
7221
+ }), V = await Yt({
7218
7222
  queryObject: a,
7219
7223
  queryConfig: i,
7220
- category: b,
7224
+ category: x,
7221
7225
  errorStrings: n,
7222
7226
  abortKey: d,
7223
7227
  abortSignal: f
@@ -7231,7 +7235,7 @@ async function cr(t) {
7231
7235
  valueField: L,
7232
7236
  emptyCellValue: A,
7233
7237
  x: S,
7234
- y: b,
7238
+ y: x,
7235
7239
  queryObject: a
7236
7240
  })
7237
7241
  ], w && (y = Jl({
@@ -7249,12 +7253,12 @@ async function cr(t) {
7249
7253
  syncViewTimeZone: l,
7250
7254
  errorStrings: n,
7251
7255
  abortSignal: f
7252
- }), P = B ? Zl(B.unit) : await Ut({ queryObject: a, queryConfig: i, category: b, errorStrings: n, abortKey: d, abortSignal: f });
7256
+ }), P = B ? Zl(B.unit) : await Yt({ queryObject: a, queryConfig: i, category: x, errorStrings: n, abortKey: d, abortSignal: f });
7253
7257
  let O = 0;
7254
7258
  y = I?.features.flatMap((V) => {
7255
7259
  const $ = [], { attributes: M, stackedAttributes: q } = V, G = [];
7256
7260
  if (q?.forEach((J) => {
7257
- const X = `${J[b]}`;
7261
+ const X = `${J[x]}`;
7258
7262
  G.push(X), $.push({
7259
7263
  [Q.xField]: `${M[W.heatChartLowerBoundaryAlias]}`,
7260
7264
  [Q.yField]: X,
@@ -7263,18 +7267,18 @@ async function cr(t) {
7263
7267
  }), r && P && G.length !== P?.length) {
7264
7268
  const J = P.filter((X) => !G.includes(X.toString()));
7265
7269
  w && (J.length !== P.length || G.length === 0) || J.forEach((X) => {
7266
- Number.isFinite(Number(M[W.heatChartLowerBoundaryAlias])) && Number.isFinite(Number(X)) && (x?.unit === he.DayOfMonth && B?.unit === he.MonthOfYear && Ui({
7270
+ Number.isFinite(Number(M[W.heatChartLowerBoundaryAlias])) && Number.isFinite(Number(X)) && (b?.unit === he.DayOfMonth && B?.unit === he.MonthOfYear && Ui({
7267
7271
  day: Number(M[W.heatChartLowerBoundaryAlias]),
7268
7272
  month: Number(X),
7269
7273
  includeLeapDay: e.includeLeapDay
7270
- }) || B?.unit === he.DayOfMonth && x?.unit === he.MonthOfYear && Ui({
7274
+ }) || B?.unit === he.DayOfMonth && b?.unit === he.MonthOfYear && Ui({
7271
7275
  day: Number(X),
7272
7276
  month: Number(M[W.heatChartLowerBoundaryAlias]),
7273
7277
  includeLeapDay: e.includeLeapDay
7274
7278
  })) || $.push({
7275
7279
  [Q.xField]: `${M[W.heatChartLowerBoundaryAlias]}`,
7276
7280
  [Q.yField]: X,
7277
- [L]: p === Se.Zero ? 0 : null
7281
+ [L]: g === Se.Zero ? 0 : null
7278
7282
  });
7279
7283
  });
7280
7284
  }
@@ -7284,7 +7288,7 @@ async function cr(t) {
7284
7288
  seriesCount: 1,
7285
7289
  chartType: h.HeatSeries,
7286
7290
  chartLimits: o
7287
- }) || Ot({ dataInfo: m, chartType: h.HeatSeries });
7291
+ }) || It({ dataInfo: m, chartType: h.HeatSeries });
7288
7292
  }
7289
7293
  y && (m.data = {
7290
7294
  dataItems: y,
@@ -7335,18 +7339,18 @@ async function xi(t) {
7335
7339
  popupTemplateFieldInfosEnabled: d,
7336
7340
  view: f,
7337
7341
  syncViewTimeZone: m
7338
- } = t, { behaviorAfterLimit: y } = l ?? {}, p = e.series, g = p[0], { x: S } = g, b = te(g.query?.where), v = { valid: !0 };
7339
- let x;
7340
- if (be(g)) {
7341
- const { temporalBinning: B } = g;
7342
+ } = t, { behaviorAfterLimit: y } = l ?? {}, g = e.series, p = g[0], { x: S } = p, x = te(p.query?.where), v = { valid: !0 };
7343
+ let b;
7344
+ if (be(p)) {
7345
+ const { temporalBinning: B } = p;
7342
7346
  if (a && B) {
7343
7347
  const { unit: N, size: T } = B;
7344
7348
  let w = 1, L = { unit: N, size: T }, A = !1;
7345
7349
  const I = Il({
7346
- series: g,
7350
+ series: p,
7347
7351
  isTimeBinningSeries: !0,
7348
7352
  setTimeBinningInfoWhenNotProvided: u
7349
- }), P = !rt(b, a) || I ? await Bl({ queryObject: a, queryConfig: i, x: S, errorStrings: o, abortSignal: n }) : void 0;
7353
+ }), P = !rt(x, a) || I ? await Bl({ queryObject: a, queryConfig: i, x: S, errorStrings: o, abortSignal: n }) : void 0;
7350
7354
  I && P && P.numberOfFeatures > 0 && P.dateRange.dateMaxTimestamp !== void 0 && P.dateRange.dateMinTimestamp !== void 0 && (L = Ol(P), Ce(a).find((G) => G.name === S)?.type === U.DateOnly && L.unit !== void 0 && [
7351
7355
  R.Hour,
7352
7356
  R.Minute,
@@ -7363,16 +7367,16 @@ async function xi(t) {
7363
7367
  });
7364
7368
  let $ = Ae({
7365
7369
  count: w ?? 0,
7366
- seriesCount: p.length,
7370
+ seriesCount: g.length,
7367
7371
  chartType: h.LineSeries,
7368
7372
  chartLimits: l
7369
7373
  });
7370
7374
  if ($) {
7371
- if (rt(b, a)) {
7375
+ if (rt(x, a)) {
7372
7376
  const M = e.axes?.[0].valueFormat.type === h.DateAxisFormat ? e.axes[0].valueFormat.intlOptions.timeZone : void 0, q = s?.[0] instanceof Er ? s : await Ps({
7373
7377
  queryObject: a,
7374
7378
  dateField: S,
7375
- splitByField: b,
7379
+ splitByField: x,
7376
7380
  queryConfig: O,
7377
7381
  axisTimeZone: M,
7378
7382
  temporalBinning: B,
@@ -7380,28 +7384,28 @@ async function xi(t) {
7380
7384
  view: f,
7381
7385
  syncViewTimeZone: m,
7382
7386
  abortSignal: n
7383
- }), G = "y" in g && typeof g.y == "string" ? g.y : void 0;
7384
- if (x = Pl({
7387
+ }), G = "y" in p && typeof p.y == "string" ? p.y : void 0;
7388
+ if (b = Pl({
7385
7389
  chartConfig: e,
7386
7390
  queryResults: q,
7387
7391
  mapToStatField: V,
7388
- splitByField: b,
7392
+ splitByField: x,
7389
7393
  x: S,
7390
7394
  y: G,
7391
7395
  nullPolicy: B.nullPolicy,
7392
7396
  queryObject: a
7393
7397
  }), !Ae({
7394
- count: x.length,
7395
- seriesCount: p.length,
7398
+ count: b.length,
7399
+ seriesCount: g.length,
7396
7400
  chartType: h.LineSeries,
7397
7401
  chartLimits: l
7398
7402
  })) {
7399
- const J = ue(p), X = x.filter(
7403
+ const J = ue(g), X = b.filter(
7400
7404
  (H) => J.some((ae) => ae in H && Number.isFinite(H[ae]))
7401
7405
  ).length;
7402
7406
  Ae({
7403
7407
  count: X,
7404
- seriesCount: p.length,
7408
+ seriesCount: g.length,
7405
7409
  chartType: h.LineSeries,
7406
7410
  chartLimits: l
7407
7411
  }) || ($ = !1);
@@ -7412,7 +7416,7 @@ async function xi(t) {
7412
7416
  dateMaxTimestamp: P.dateRange.dateMaxTimestamp,
7413
7417
  timeIntervalInfo: L
7414
7418
  });
7415
- w = M * p.length, w = rr(w, L.unit), x = await _t({
7419
+ w = M * g.length, w = rr(w, L.unit), b = await jt({
7416
7420
  queryObject: a,
7417
7421
  uniqueQuery: O,
7418
7422
  chartConfig: e,
@@ -7424,21 +7428,21 @@ async function xi(t) {
7424
7428
  errorStrings: o,
7425
7429
  abortKey: r,
7426
7430
  abortSignal: n
7427
- }), x = await Ml({
7431
+ }), b = await Ml({
7428
7432
  queryObject: a,
7429
7433
  queryConfig: i,
7430
- queryResults: x,
7434
+ queryResults: b,
7431
7435
  x: S,
7432
- seriesConfig: p,
7436
+ seriesConfig: g,
7433
7437
  dateRange: P.dateRange,
7434
7438
  timeIntervalInfo: L,
7435
7439
  errorStrings: o,
7436
7440
  abortSignal: n
7437
7441
  });
7438
7442
  }
7439
- fa(a) && x && x?.length === pl && (A = !0), y === lt.RenderUpToTheLimit && x && (x = eu({ chartConfig: e, chartLimits: l, data: x }));
7443
+ fa(a) && b && b?.length === pl && (A = !0), y === lt.RenderUpToTheLimit && b && (b = eu({ chartConfig: e, chartLimits: l, data: b }));
7440
7444
  }
7441
- $ || (v.valid = !1, v.invalidType = j.LineChartExceedsLimit), x && x.length > 0 && (x[x.length - 1][C.lastTemporalBin] = !0), v.data = { dataItems: x, timeIntervalInfo: L, serverLimitReached: A }, v.count = w;
7445
+ $ || (v.valid = !1, v.invalidType = j.LineChartExceedsLimit), b && b.length > 0 && (b[b.length - 1][C.lastTemporalBin] = !0), v.data = { dataItems: b, timeIntervalInfo: L, serverLimitReached: A }, v.count = w;
7442
7446
  }
7443
7447
  }
7444
7448
  return v;
@@ -7459,7 +7463,7 @@ async function tu(t) {
7459
7463
  xAxisValueFormatType: xe(e),
7460
7464
  setTimeBinningInfoWhenNotProvided: n,
7461
7465
  queryObject: a
7462
- }), { uniqueQuery: y, mapToStatField: p } = yi({
7466
+ }), { uniqueQuery: y, mapToStatField: g } = yi({
7463
7467
  chartConfig: e,
7464
7468
  queryObject: a,
7465
7469
  queryConfig: i,
@@ -7468,13 +7472,13 @@ async function tu(t) {
7468
7472
  returnFeaturesExtent: s,
7469
7473
  chartLimits: o
7470
7474
  });
7471
- let g = await _t({
7475
+ let p = await jt({
7472
7476
  queryObject: a,
7473
7477
  uniqueQuery: y,
7474
7478
  elementCount: 1,
7475
7479
  // this will skip the query counting the number of features, not needed for selection
7476
7480
  chartConfig: e,
7477
- mapToStatField: p,
7481
+ mapToStatField: g,
7478
7482
  isTimeBinningSeries: m,
7479
7483
  showMean: l,
7480
7484
  chartLimits: o,
@@ -7482,7 +7486,7 @@ async function tu(t) {
7482
7486
  errorStrings: c,
7483
7487
  abortKey: r
7484
7488
  });
7485
- return de(e) && (g = Ja({ chartConfig: e, data: g, calculateZScore: !1 })), d.data = { dataItems: g }, d;
7489
+ return de(e) && (p = Ja({ chartConfig: e, data: p, calculateZScore: !1 })), d.data = { dataItems: p }, d;
7486
7490
  }
7487
7491
  async function iu(t) {
7488
7492
  const {
@@ -7555,9 +7559,9 @@ async function nu(t) {
7555
7559
  dataContextCountDistinctX: m,
7556
7560
  dataContextCountDistinctY: y
7557
7561
  } = C.scatterplotAggregationFields;
7558
- let p, g, S, b, v;
7559
- const x = e.get(c), B = e.get(l), N = e.get(d), T = e.get(f);
7560
- if (x != null && N !== void 0 && N !== null && B !== void 0 && B !== null && T !== void 0 && T !== null && !Number.isNaN(x + B + N + T)) {
7562
+ let g, p, S, x, v;
7563
+ const b = e.get(c), B = e.get(l), N = e.get(d), T = e.get(f);
7564
+ if (b != null && N !== void 0 && N !== null && B !== void 0 && B !== null && T !== void 0 && T !== null && !Number.isNaN(b + B + N + T)) {
7561
7565
  const { maxScatterPointsAfterAggregation: w } = ut(r), A = Math.floor(Math.sqrt(w)), I = await ru({
7562
7566
  queryObject: a,
7563
7567
  chartConfig: i,
@@ -7566,7 +7570,7 @@ async function nu(t) {
7566
7570
  abortKey: o,
7567
7571
  abortSignal: u
7568
7572
  });
7569
- S = Math.min(I.get(y) ?? Number.NaN, A), b = Math.min(I.get(m) ?? Number.NaN, A), v = b * S, p = B === x ? 0 : (B - x) / (b - 1), g = T === N ? 0 : (T - N) / (S - 1), e.set(C.scatterplotAggregationFields.xStep, p), e.set(C.scatterplotAggregationFields.yStep, g), e.set(C.scatterplotAggregationFields.rowCount, S), e.set(C.scatterplotAggregationFields.columnCount, b), e.set(C.scatterplotAggregationFields.realGridSize, v);
7573
+ S = Math.min(I.get(y) ?? Number.NaN, A), x = Math.min(I.get(m) ?? Number.NaN, A), v = x * S, g = B === b ? 0 : (B - b) / (x - 1), p = T === N ? 0 : (T - N) / (S - 1), e.set(C.scatterplotAggregationFields.xStep, g), e.set(C.scatterplotAggregationFields.yStep, p), e.set(C.scatterplotAggregationFields.rowCount, S), e.set(C.scatterplotAggregationFields.columnCount, x), e.set(C.scatterplotAggregationFields.realGridSize, v);
7570
7574
  }
7571
7575
  }
7572
7576
  function su(t) {
@@ -7617,13 +7621,13 @@ async function lu(t) {
7617
7621
  dataContextXMinField: f,
7618
7622
  dataContextXMaxField: m,
7619
7623
  dataContextYMinField: y,
7620
- dataContextYMaxField: p,
7621
- queryNumberOfFeatures: g,
7624
+ dataContextYMaxField: g,
7625
+ queryNumberOfFeatures: p,
7622
7626
  queryNumberOfAggregatedFeatures: S
7623
7627
  } = C.scatterplotAggregationFields;
7624
- let b;
7625
- const v = e?.get(f) ?? Number.NaN, x = e?.get(m) ?? Number.NaN, B = e?.get(g) ?? Number.NaN, N = e?.get(y) ?? v, T = e?.get(p) ?? x;
7626
- if (v != null && N !== void 0 && N !== null && x !== void 0 && x !== null && T !== void 0 && T !== null && !Number.isNaN(v + x + N + T)) {
7628
+ let x;
7629
+ const v = e?.get(f) ?? Number.NaN, b = e?.get(m) ?? Number.NaN, B = e?.get(p) ?? Number.NaN, N = e?.get(y) ?? v, T = e?.get(g) ?? b;
7630
+ if (v != null && N !== void 0 && N !== null && b !== void 0 && b !== null && T !== void 0 && T !== null && !Number.isNaN(v + b + N + T)) {
7627
7631
  const w = z(a), { idField: L, isTraditionalTypeOID: A } = ve(w), I = A ? L : "*", P = e?.get(C.scatterplotAggregationFields.xStep), O = e?.get(C.scatterplotAggregationFields.yStep), V = e?.get(C.scatterplotAggregationFields.realGridSize), $ = e?.get(C.scatterplotAggregationFields.rowCount), M = e?.get(C.scatterplotAggregationFields.columnCount), q = /* @__PURE__ */ new Map(), G = Ce(a);
7628
7632
  if (G?.forEach((H) => {
7629
7633
  Ft(H) && q.set(H.name, {
@@ -7661,12 +7665,12 @@ async function lu(t) {
7661
7665
  ...r,
7662
7666
  outStatistics: [...q.values()]
7663
7667
  };
7664
- b = await Ts({
7668
+ x = await Ts({
7665
7669
  queryObject: a,
7666
7670
  queryConfig: H,
7667
7671
  xStep: P,
7668
7672
  xMin: v,
7669
- xMax: x,
7673
+ xMax: b,
7670
7674
  x: l,
7671
7675
  y: d,
7672
7676
  yStep: O,
@@ -7675,10 +7679,10 @@ async function lu(t) {
7675
7679
  });
7676
7680
  } else if ($ !== void 0 && M !== void 0) {
7677
7681
  let H = 0;
7678
- const { maxScatterCellsPerQuery: ae, maxScatterCellsPerQueryForStandard: pe } = Rt(), Ni = await no(w, u) ? pe : ae, Ti = [];
7679
- let jt = !0, Xe = v, ke = N, Je = "", Ct = 1, Ht = 1, vt = Number.MAX_SAFE_INTEGER, Bt = Number.MIN_SAFE_INTEGER, Nt = Number.MAX_SAFE_INTEGER, Tt = Number.MIN_SAFE_INTEGER;
7680
- for (; Ht <= M && jt; ) {
7681
- for (ke = N, Ct = 1; Ct <= $ && jt; ) {
7682
+ const { maxScatterCellsPerQuery: ae, maxScatterCellsPerQueryForStandard: pe } = $t(), Ni = await no(w, u) ? pe : ae, Ti = [];
7683
+ let Ht = !0, Xe = v, ke = N, Je = "", Ct = 1, zt = 1, vt = Number.MAX_SAFE_INTEGER, Bt = Number.MIN_SAFE_INTEGER, Nt = Number.MAX_SAFE_INTEGER, Tt = Number.MIN_SAFE_INTEGER;
7684
+ for (; zt <= M && Ht; ) {
7685
+ for (ke = N, Ct = 1; Ct <= $ && Ht; ) {
7682
7686
  if (Je = su({
7683
7687
  groupByFieldsForStatistics: Je,
7684
7688
  x: l,
@@ -7688,7 +7692,7 @@ async function lu(t) {
7688
7692
  xStep: P,
7689
7693
  yStep: O,
7690
7694
  endOfRow: Ct === $,
7691
- endOfColumn: Ht === M
7695
+ endOfColumn: zt === M
7692
7696
  }), Xe < vt && (vt = Xe), Xe + P > Bt && (Bt = Xe + P), ke < Nt && (Nt = ke), ke + P > Tt && (Tt = ke + O), H += 1, H % Ni === 0 || H === V || H === B) {
7693
7697
  Je = `${Je} ${Ue.groupByCaseEnd}`;
7694
7698
  const pr = {
@@ -7709,17 +7713,17 @@ async function lu(t) {
7709
7713
  abortKey: o,
7710
7714
  abortSignal: u
7711
7715
  })
7712
- ), vt = Number.MAX_SAFE_INTEGER, Bt = Number.MIN_SAFE_INTEGER, Nt = Number.MAX_SAFE_INTEGER, Tt = Number.MIN_SAFE_INTEGER, Je = "", H === V && (jt = !1);
7716
+ ), vt = Number.MAX_SAFE_INTEGER, Bt = Number.MIN_SAFE_INTEGER, Nt = Number.MAX_SAFE_INTEGER, Tt = Number.MIN_SAFE_INTEGER, Je = "", H === V && (Ht = !1);
7713
7717
  }
7714
7718
  ke += O, Ct += 1;
7715
7719
  }
7716
- Xe += P, Ht += 1;
7720
+ Xe += P, zt += 1;
7717
7721
  }
7718
- b = (await Promise.all(Ti)).flat();
7722
+ x = (await Promise.all(Ti)).flat();
7719
7723
  }
7720
7724
  }
7721
7725
  }
7722
- return b;
7726
+ return x;
7723
7727
  }
7724
7728
  async function uu(t) {
7725
7729
  const { chartConfig: e, queryConfig: i, queryObject: a, errorStrings: r, abortKey: n, abortSignal: s } = t, o = e.series[0], { x: u, y: c } = o;
@@ -7729,12 +7733,12 @@ async function uu(t) {
7729
7733
  dataContextXMaxField: f,
7730
7734
  dataContextYMinField: m,
7731
7735
  dataContextYMaxField: y,
7732
- queryNumberOfFeatures: p
7733
- } = C.scatterplotAggregationFields, { idField: g, isTraditionalTypeOID: S } = ve(z(a)), b = S ? g : "*", v = [
7736
+ queryNumberOfFeatures: g
7737
+ } = C.scatterplotAggregationFields, { idField: p, isTraditionalTypeOID: S } = ve(z(a)), x = S ? p : "*", v = [
7734
7738
  {
7735
7739
  statisticType: D.Count,
7736
- onStatisticField: b,
7737
- outStatisticFieldName: p
7740
+ onStatisticField: x,
7741
+ outStatisticFieldName: g
7738
7742
  },
7739
7743
  {
7740
7744
  statisticType: D.Minimum,
@@ -7759,10 +7763,10 @@ async function uu(t) {
7759
7763
  onStatisticField: c
7760
7764
  }
7761
7765
  );
7762
- const x = { ...i };
7763
- return x.outStatistics = v, l = await xt({
7766
+ const b = { ...i };
7767
+ return b.outStatistics = v, l = await xt({
7764
7768
  queryObject: a,
7765
- queryConfig: x,
7769
+ queryConfig: b,
7766
7770
  errorStrings: r,
7767
7771
  abortKey: n,
7768
7772
  abortSignal: s
@@ -7777,41 +7781,41 @@ function cu(t) {
7777
7781
  let d = [];
7778
7782
  if (e && "stackedAttributes" in i && i.stackedAttributes) {
7779
7783
  const f = Oa(a, r), m = i.attributes[f.lowerBoundaryAlias], y = i.attributes[f.upperBoundaryAlias];
7780
- i.stackedAttributes.forEach((p) => {
7781
- let g = p[f.stackAlias], S;
7782
- typeof g == "number" && typeof n == "number" && (g *= n), typeof g == "number" && typeof n == "number" && (S = g + n);
7783
- const b = p[a], v = p[r];
7784
- typeof g == "number" && typeof S == "number" && typeof b == "number" && typeof v == "number" && d.push({
7785
- ...p,
7786
- [a]: wt({ value: b, valueMin: m, valueMax: y }),
7787
- [r]: wt({ value: v, valueMin: g, valueMax: S }),
7784
+ i.stackedAttributes.forEach((g) => {
7785
+ let p = g[f.stackAlias], S;
7786
+ typeof p == "number" && typeof n == "number" && (p *= n), typeof p == "number" && typeof n == "number" && (S = p + n);
7787
+ const x = g[a], v = g[r];
7788
+ typeof p == "number" && typeof S == "number" && typeof x == "number" && typeof v == "number" && d.push({
7789
+ ...g,
7790
+ [a]: wt({ value: x, valueMin: m, valueMax: y }),
7791
+ [r]: wt({ value: v, valueMin: p, valueMax: S }),
7788
7792
  [o]: Math.min(m, y),
7789
7793
  [u]: Math.max(m, y),
7790
- [c]: g,
7794
+ [c]: p,
7791
7795
  [l]: S
7792
7796
  });
7793
7797
  });
7794
7798
  } else {
7795
- const { expr: f, isInItem: m } = qt(i.attributes);
7799
+ const { expr: f, isInItem: m } = Vt(i.attributes);
7796
7800
  if (m && f && i.attributes[f] !== s) {
7797
- let [y, p, g, S] = i.attributes[f].split("|");
7798
- y = Math.min(y, p), p = Math.max(y, p), g = Math.min(g, S), S = Math.max(g, S);
7799
- const b = {
7801
+ let [y, g, p, S] = i.attributes[f].split("|");
7802
+ y = Math.min(y, g), g = Math.max(y, g), p = Math.min(p, S), S = Math.max(p, S);
7803
+ const x = {
7800
7804
  ...i.attributes,
7801
7805
  [o]: y,
7802
- [u]: p,
7803
- [c]: g,
7806
+ [u]: g,
7807
+ [c]: p,
7804
7808
  [l]: S
7805
7809
  };
7806
- b[a] = wt({
7807
- value: b[a],
7810
+ x[a] = wt({
7811
+ value: x[a],
7808
7812
  valueMin: y,
7809
- valueMax: p
7810
- }), b[r] = wt({
7811
- value: b[r],
7812
- valueMin: g,
7813
+ valueMax: g
7814
+ }), x[r] = wt({
7815
+ value: x[r],
7816
+ valueMin: p,
7813
7817
  valueMax: S
7814
- }), d = [b];
7818
+ }), d = [x];
7815
7819
  }
7816
7820
  }
7817
7821
  return d;
@@ -7829,21 +7833,21 @@ function du(t) {
7829
7833
  }) : f[0][W.uniqueIdsName] = d.getObjectId(), f;
7830
7834
  });
7831
7835
  return l = l?.filter((d) => {
7832
- const { expr: f } = qt(d);
7836
+ const { expr: f } = Vt(d);
7833
7837
  return Number.isFinite(d[o]) && Number.isFinite(d[u]) && (f === void 0 || d[f] !== Ue.groupByOutKeyword);
7834
7838
  }), l ?? [];
7835
7839
  }
7836
7840
  async function fu(t) {
7837
7841
  const { queryObject: e, queryConfig: i, chartConfig: a, featureCount: r, errorStrings: n, abortKey: s, abortSignal: o } = t, u = a.series[0], { x: c, y: l } = u, d = z(e);
7838
7842
  let f = [];
7839
- const m = Ce(e), y = $t(d).idFields, p = (m?.filter((x) => Ft(x) && x.name !== c && x.name !== l) ?? []).map(
7840
- (x) => x.name
7841
- ) ?? [], g = u?.additionalTooltipFields ?? [], S = Array.from(
7842
- /* @__PURE__ */ new Set([c, l, ...y ?? [], ...p, ...g])
7843
- ), b = ge(d);
7844
- if (b && !b.isTable) {
7845
- const { rendererField: x, rendererNormalizationField: B } = io(d?.renderer ?? void 0);
7846
- oe(x) || S.push(x), oe(B) || S.push(B);
7843
+ const m = Ce(e), y = kt(d).idFields, g = (m?.filter((b) => Ft(b) && b.name !== c && b.name !== l) ?? []).map(
7844
+ (b) => b.name
7845
+ ) ?? [], p = u?.additionalTooltipFields ?? [], S = Array.from(
7846
+ /* @__PURE__ */ new Set([c, l, ...y ?? [], ...g, ...p])
7847
+ ), x = ge(d);
7848
+ if (x && !x.isTable) {
7849
+ const { rendererField: b, rendererNormalizationField: B } = io(d?.renderer ?? void 0);
7850
+ oe(b) || S.push(b), oe(B) || S.push(B);
7847
7851
  }
7848
7852
  const v = {
7849
7853
  ...i,
@@ -7874,11 +7878,11 @@ async function mu(t) {
7874
7878
  abortSignal: d
7875
7879
  } = t, f = i.series[0], { x: m, y } = f;
7876
7880
  if (!Number.isNaN(s) && s > 0) {
7877
- const p = { ...a };
7878
- p.where = Y([p.where, `${m} IS NOT NULL`, `${y} IS NOT NULL`]), o ? e = await lu({
7881
+ const g = { ...a };
7882
+ g.where = Y([g.where, `${m} IS NOT NULL`, `${y} IS NOT NULL`]), o ? e = await lu({
7879
7883
  chartConfig: i,
7880
7884
  queryObject: r,
7881
- queryConfig: p,
7885
+ queryConfig: g,
7882
7886
  statsMap: n,
7883
7887
  useQueryAttributeBins: u,
7884
7888
  errorStrings: c,
@@ -7887,7 +7891,7 @@ async function mu(t) {
7887
7891
  }) : e = await fu({
7888
7892
  queryObject: r,
7889
7893
  chartConfig: i,
7890
- queryConfig: p,
7894
+ queryConfig: g,
7891
7895
  featureCount: s,
7892
7896
  errorStrings: c,
7893
7897
  abortKey: l,
@@ -7919,8 +7923,8 @@ async function dr(t) {
7919
7923
  errorStrings: o,
7920
7924
  abortKey: u,
7921
7925
  abortSignal: c
7922
- }), { queryNumberOfFeatures: f, yStep: m } = C.scatterplotAggregationFields, { maxScatterPointsBeforeAggregation: y } = ut(s), p = d?.get(f) ?? Number.NaN, g = p >= y, S = gn(a);
7923
- g && await nu({
7926
+ }), { queryNumberOfFeatures: f, yStep: m } = C.scatterplotAggregationFields, { maxScatterPointsBeforeAggregation: y } = ut(s), g = d?.get(f) ?? Number.NaN, p = g >= y, S = gn(a);
7927
+ p && await nu({
7924
7928
  statsMap: d,
7925
7929
  chartConfig: e,
7926
7930
  queryObject: a,
@@ -7930,17 +7934,17 @@ async function dr(t) {
7930
7934
  abortKey: u,
7931
7935
  abortSignal: c
7932
7936
  });
7933
- const b = await mu({
7937
+ const x = await mu({
7934
7938
  ...t,
7935
7939
  queryObject: a,
7936
7940
  statsMap: d,
7937
- numberOfFeatures: p,
7938
- isAggregationMode: g,
7941
+ numberOfFeatures: g,
7942
+ isAggregationMode: p,
7939
7943
  useQueryAttributeBins: S
7940
7944
  }), v = du({
7941
7945
  chartConfig: e,
7942
- rawData: b,
7943
- isAggregationMode: g,
7946
+ rawData: x,
7947
+ isAggregationMode: p,
7944
7948
  yStep: d.get(m),
7945
7949
  useQueryAttributeBins: S
7946
7950
  });
@@ -7949,7 +7953,7 @@ async function dr(t) {
7949
7953
  sortingField: e.series[0].x,
7950
7954
  orderBy: ye.Ascending
7951
7955
  });
7952
- const { r2: x, trendLinePoints: B } = n !== !1 ? await Va({
7956
+ const { r2: b, trendLinePoints: B } = n !== !1 ? await Va({
7953
7957
  data: v,
7954
7958
  statsMap: d,
7955
7959
  queryConfig: i,
@@ -7958,7 +7962,7 @@ async function dr(t) {
7958
7962
  errorStrings: o,
7959
7963
  abortSignal: c
7960
7964
  }) : C.scatterplotSeries;
7961
- l = { dataItems: v, r2: x, trendLinePoints: B, aggregated: g };
7965
+ l = { dataItems: v, r2: b, trendLinePoints: B, aggregated: p };
7962
7966
  }
7963
7967
  return l;
7964
7968
  }
@@ -7991,7 +7995,7 @@ function K(t) {
7991
7995
  let u = n, l = it(i)[e];
7992
7996
  return s === !0 && (e === E.Min || e === E.Max) && (l = `${l}${Rr}`), o === !0 && (mr(a) || e === E.Outlier) && (l = `${l}${$r}`), (n === void 0 || `${n}`.trim() === "") && (u = fe({ where: r, normalize: !0, escape: !1 })), u !== void 0 && `${u}`.trim() !== "" && (l = `${u}${l !== "" ? `_${l}` : ""}`), l;
7993
7997
  }
7994
- function Yt(t) {
7998
+ function Zt(t) {
7995
7999
  const { dataItem: e, y: i, splitBy: a, showOutliers: r } = t, n = K({ key: E.FirstQuartile, y: i, splitBy: a, showOutliers: r }), s = K({ key: E.ThirdQuartile, y: i, splitBy: a, showOutliers: r });
7996
8000
  return Number.isFinite(e[n]) || Number.isFinite(e[s]);
7997
8001
  }
@@ -8002,18 +8006,18 @@ function yu(t) {
8002
8006
  case F.BoxPlotMonoField:
8003
8007
  case F.BoxPlotMultiFields:
8004
8008
  case F.BoxPlotMonoFieldAndCategory:
8005
- s = Yt({ dataItem: i, showOutliers: r });
8009
+ s = Zt({ dataItem: i, showOutliers: r });
8006
8010
  break;
8007
8011
  case F.BoxPlotMultiFieldsAndCategory:
8008
8012
  s = a.some(
8009
- (o) => Yt({ dataItem: i, y: o, showOutliers: r })
8013
+ (o) => Zt({ dataItem: i, y: o, showOutliers: r })
8010
8014
  );
8011
8015
  break;
8012
8016
  case F.BoxPlotMonoFieldAndSplitBy:
8013
8017
  case F.BoxPlotMultiFieldsAndSplitBy:
8014
8018
  case F.BoxPlotMonoFieldAndCategoryAndSplitBy:
8015
8019
  s = e.some(
8016
- (o) => Yt({
8020
+ (o) => Zt({
8017
8021
  dataItem: i,
8018
8022
  splitBy: o.query?.where,
8019
8023
  showOutliers: r
@@ -8151,9 +8155,9 @@ function hu(t) {
8151
8155
  r.forEach((l) => {
8152
8156
  if (n) {
8153
8157
  let d = 0, f = 0, m = !1, y = !1;
8154
- for (let p = 0; p < l.length; p += 1) {
8155
- const g = c[l[p]];
8156
- Number.isFinite(g) && (g < 0 ? (f += g, y = !0, u = !0) : (d += g, m = !0));
8158
+ for (let g = 0; g < l.length; g += 1) {
8159
+ const p = c[l[g]];
8160
+ Number.isFinite(p) && (p < 0 ? (f += p, y = !0, u = !0) : (d += p, m = !0));
8157
8161
  }
8158
8162
  s = m ? Math.max(s, d) : s, o = y ? Math.min(o, f) : o, m && !y && (o = Math.min(o, d)), !m && y && (s = Math.max(s, f)), m && d <= 0 && (u = !0);
8159
8163
  } else {
@@ -8183,19 +8187,19 @@ function Yi(t) {
8183
8187
  const d = s.filter((m) => m[c] !== null);
8184
8188
  if ({ min: a, max: r } = St(d, (m) => m[c]), n.axes?.[0]?.valueFormat.type === h.DateAxisFormat && a !== void 0 && r !== void 0 && ([a, r] = [new Date(a).valueOf(), new Date(r).valueOf()]), l === h.BoxPlotSeries) {
8185
8189
  e = Number.MAX_SAFE_INTEGER, i = Number.MIN_SAFE_INTEGER;
8186
- const m = ue(u, o), y = k(u), p = "standardizeValues" in n ? n.standardizeValues === !0 : void 0, g = n.series.map(
8190
+ const m = ue(u, o), y = k(u), g = "standardizeValues" in n ? n.standardizeValues === !0 : void 0, p = n.series.map(
8187
8191
  (S) => S.visible !== !1 ? fe({ where: S.query?.where }) : ""
8188
8192
  );
8189
- g.length === 0 && g.push(" "), d.forEach((S) => {
8190
- m.forEach((b) => {
8191
- const v = y === F.BoxPlotMultiFieldsAndCategory ? b : void 0;
8192
- g.forEach((x) => {
8193
+ p.length === 0 && p.push(" "), d.forEach((S) => {
8194
+ m.forEach((x) => {
8195
+ const v = y === F.BoxPlotMultiFieldsAndCategory ? x : void 0;
8196
+ p.forEach((b) => {
8193
8197
  const { min: B, max: N } = Su({
8194
8198
  y: v,
8195
- splitByValue: x,
8199
+ splitByValue: b,
8196
8200
  chartSubType: y,
8197
8201
  showOutliers: !1,
8198
- standardizeValues: p,
8202
+ standardizeValues: g,
8199
8203
  dataItem: S
8200
8204
  });
8201
8205
  B != null && B < e && (e = B), N != null && N > i && (i = N);
@@ -8207,22 +8211,22 @@ function Yi(t) {
8207
8211
  // we should keep the intention of the function purely as it is, meaning retrieving the min/max values from the stacked series.
8208
8212
  case Te.Stacked100:
8209
8213
  case Te.Stacked: {
8210
- const { stackedMinY: y, stackedMaxY: p } = hu({
8214
+ const { stackedMinY: y, stackedMaxY: g } = hu({
8211
8215
  seriesConfig: u,
8212
8216
  filteredData: d,
8213
8217
  filteredSeriesIds: o
8214
8218
  });
8215
- e = y, i = p;
8219
+ e = y, i = g;
8216
8220
  break;
8217
8221
  }
8218
8222
  case Te.Side:
8219
8223
  default: {
8220
- e = Number.MAX_SAFE_INTEGER, i = Number.MIN_SAFE_INTEGER, ue(u, o).forEach((p) => {
8221
- const { min: g, max: S } = St(
8224
+ e = Number.MAX_SAFE_INTEGER, i = Number.MIN_SAFE_INTEGER, ue(u, o).forEach((g) => {
8225
+ const { min: p, max: S } = St(
8222
8226
  d,
8223
- (b) => b[p]
8227
+ (x) => x[g]
8224
8228
  );
8225
- g !== void 0 && g < e && (e = g), S !== void 0 && S > i && (i = S);
8229
+ p !== void 0 && p < e && (e = p), S !== void 0 && S > i && (i = S);
8226
8230
  });
8227
8231
  break;
8228
8232
  }
@@ -8301,12 +8305,12 @@ function xu(t, e) {
8301
8305
  s = s.map((m) => {
8302
8306
  let y = m[d];
8303
8307
  m[c] !== void 0 ? y = m[c] : m[o] !== void 0 && (y = m[o]);
8304
- let p = { ...m, [d]: y };
8305
- if (delete p[c], delete p[o], delete p[l], f) {
8306
- let g = m[f];
8307
- m[u] !== void 0 && (g = m[u]), p = { ...p, [f]: g }, delete p[u];
8308
+ let g = { ...m, [d]: y };
8309
+ if (delete g[c], delete g[o], delete g[l], f) {
8310
+ let p = m[f];
8311
+ m[u] !== void 0 && (p = m[u]), g = { ...g, [f]: p }, delete g[u];
8308
8312
  }
8309
- return p;
8313
+ return g;
8310
8314
  }), n ? a = s : "dataItems" in a && (a.dataItems = s);
8311
8315
  }
8312
8316
  }
@@ -8317,7 +8321,7 @@ function Zi(t) {
8317
8321
  delete e[C.technicalSortingFieldBySum], delete e[C.technicalSortingFieldByPercent], delete e[C.pieChart.technicalFieldSlicePercent], delete e[C.pieChart.technicalFieldGroupedSlices], delete e[C.lastTemporalBin], delete e[C.originalServerBinningRange], delete e[C.technicalFieldSplitByField], delete e[W.uniqueIdsName], Object.keys(e).filter(
8318
8322
  (r) => r.includes(C.rendererSymbolField)
8319
8323
  ).forEach((r) => delete e[r]);
8320
- const a = qt(e);
8324
+ const a = Vt(e);
8321
8325
  return a.isInItem && delete e[a.expr ?? ""], e;
8322
8326
  }
8323
8327
  function Cu(t, e) {
@@ -8414,10 +8418,10 @@ async function Bu(t) {
8414
8418
  returnFeaturesExtent: f,
8415
8419
  popupTemplateFieldInfosEnabled: m,
8416
8420
  view: y
8417
- } = t, { series: p } = a, g = _(p), S = [], { maxOIDsPerSelectionQuery: b } = Rt();
8418
- for (let x = 0; x < e; x += 1) {
8419
- const B = x * b, N = (x + 1) * b - 1, T = i.slice(B === 0 ? 0 : B - 1, N), w = { ...r };
8420
- switch (w.objectIds = T, g) {
8421
+ } = t, { series: g } = a, p = _(g), S = [], { maxOIDsPerSelectionQuery: x } = $t();
8422
+ for (let b = 0; b < e; b += 1) {
8423
+ const B = b * x, N = (b + 1) * x - 1, T = i.slice(B === 0 ? 0 : B - 1, N), w = { ...r };
8424
+ switch (w.objectIds = T, p) {
8421
8425
  case h.HeatSeries:
8422
8426
  S.push(
8423
8427
  cr({
@@ -8442,7 +8446,7 @@ async function Bu(t) {
8442
8446
  if (Pe({
8443
8447
  xAxisValueFormatType: xe(a),
8444
8448
  setTimeBinningInfoWhenNotProvided: d,
8445
- seriesConfig: p[0],
8449
+ seriesConfig: g[0],
8446
8450
  queryObject: s
8447
8451
  })) {
8448
8452
  const L = He(a);
@@ -8517,7 +8521,7 @@ async function Bu(t) {
8517
8521
  queryObject: s,
8518
8522
  queryConfig: w,
8519
8523
  chartConfig: a,
8520
- x: p[0].x,
8524
+ x: g[0].x,
8521
8525
  errorStrings: n
8522
8526
  })
8523
8527
  );
@@ -8542,19 +8546,19 @@ async function Yd(t) {
8542
8546
  popupTemplateFieldInfosEnabled: f,
8543
8547
  view: m,
8544
8548
  viewExtentUpdated: y,
8545
- runtimeDataFilters: p,
8546
- ignoreViewExtent: g,
8549
+ runtimeDataFilters: g,
8550
+ ignoreViewExtent: p,
8547
8551
  returnSelectionOIDs: S,
8548
- selectionData: b
8549
- } = t, { series: v } = e, { selectionItems: x, selectionOIDs: B } = b ?? {};
8552
+ selectionData: x
8553
+ } = t, { series: v } = e, { selectionItems: b, selectionOIDs: B } = x ?? {};
8550
8554
  let N;
8551
- const T = _(v), w = T !== h.HistogramSeries && T !== h.HeatSeries && x !== void 0 && x.length > 0 && !(v[0].x in x[0]) && !(ce in x[0]) && !(C.boxPlot.boxPlotCategory in x[0]);
8555
+ const T = _(v), w = T !== h.HistogramSeries && T !== h.HeatSeries && b !== void 0 && b.length > 0 && !(v[0].x in b[0]) && !(ce in b[0]) && !(C.boxPlot.boxPlotCategory in b[0]);
8552
8556
  if (y !== !0 && S !== !1 && B !== void 0 && B.length > 0 && (a === !0 || w || u)) {
8553
8557
  const A = Ci(i), I = Ha({
8554
8558
  queryObject: s,
8555
8559
  chartConfig: e,
8556
- runtimeDataFilters: p,
8557
- ignoreViewExtent: g,
8560
+ runtimeDataFilters: g,
8561
+ ignoreViewExtent: p,
8558
8562
  view: m
8559
8563
  });
8560
8564
  if (A !== void 0 && !Bn({ dataContext: A[0], chartConfig: e, chartLimits: c }))
@@ -8563,7 +8567,7 @@ async function Yd(t) {
8563
8567
  return typeof O == "number" || typeof O == "string" ? B?.includes(O) : !1;
8564
8568
  });
8565
8569
  else if (B?.[0] !== void 0 && I !== void 0) {
8566
- const { maxOIDsPerSelectionQuery: P } = Rt(), O = Math.ceil(B.length / P), V = te(e.series[0]?.query?.where), $ = await Bu({
8570
+ const { maxOIDsPerSelectionQuery: P } = $t(), O = Math.ceil(B.length / P), V = te(e.series[0]?.query?.where), $ = await Bu({
8567
8571
  numberOfQueries: O,
8568
8572
  selectionOIDs: B,
8569
8573
  queryConfig: I,
@@ -8670,7 +8674,7 @@ export {
8670
8674
  z as af,
8671
8675
  Nd as ag,
8672
8676
  pn as ah,
8673
- $t as ai,
8677
+ kt as ai,
8674
8678
  Id as aj,
8675
8679
  ge as ak,
8676
8680
  xo as al,
@@ -8681,7 +8685,7 @@ export {
8681
8685
  go as aq,
8682
8686
  bd as ar,
8683
8687
  yo as as,
8684
- ai as at,
8688
+ Ot as at,
8685
8689
  Us as au,
8686
8690
  Ss as av,
8687
8691
  $a as aw,
@@ -8749,13 +8753,13 @@ export {
8749
8753
  mn as bt,
8750
8754
  vd as bu,
8751
8755
  wd as bv,
8752
- kt as bw,
8756
+ Qt as bw,
8753
8757
  Rd as bx,
8754
8758
  Fo as by,
8755
8759
  bo as bz,
8756
8760
  Ls as c,
8757
8761
  kd as c$,
8758
- Ut as c0,
8762
+ Yt as c0,
8759
8763
  Sn as c1,
8760
8764
  gu as c2,
8761
8765
  Fn as c3,
@@ -8777,7 +8781,7 @@ export {
8777
8781
  Od as cJ,
8778
8782
  uc as cK,
8779
8783
  ud as cL,
8780
- ti as cM,
8784
+ ii as cM,
8781
8785
  pt as cN,
8782
8786
  dn as cO,
8783
8787
  Jc as cP,
@@ -8793,7 +8797,7 @@ export {
8793
8797
  xe as cZ,
8794
8798
  $d as c_,
8795
8799
  Zn as ca,
8796
- It as cb,
8800
+ Et as cb,
8797
8801
  cn as cc,
8798
8802
  je as cd,
8799
8803
  ne as ce,
@@ -8836,7 +8840,7 @@ export {
8836
8840
  ce as m,
8837
8841
  Ne as n,
8838
8842
  Wc as o,
8839
- Yt as p,
8843
+ Zt as p,
8840
8844
  Gc as q,
8841
8845
  ya as r,
8842
8846
  Cc as s,