@arcgis/charts-components 5.1.4 → 5.1.6

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