@arcgis/charts-components 5.2.0-next.13 → 5.2.0-next.14

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 (89) hide show
  1. package/dist/cdn/{RMJKQIQM.js → 2563R3OI.js} +1 -1
  2. package/dist/cdn/{JCWTD6DG.js → 27Z26FPG.js} +1 -1
  3. package/dist/cdn/{WL5E6TAV.js → 2ATBYUR5.js} +1 -1
  4. package/dist/cdn/{CAYUSURH.js → 2H2FBIZ2.js} +1 -1
  5. package/dist/cdn/{ULUPQFHW.js → 2MS6UDV4.js} +1 -1
  6. package/dist/cdn/{O6JHQR4V.js → 336QQVQ2.js} +1 -1
  7. package/dist/cdn/{X3UPL6NZ.js → 3XFA3QK6.js} +1 -1
  8. package/dist/cdn/{SKG5NCDS.js → 44OQITEZ.js} +1 -1
  9. package/dist/cdn/{JFMBYHTG.js → 475GCHIH.js} +1 -1
  10. package/dist/cdn/{6QPY3WVJ.js → 4OKQVD4Y.js} +1 -1
  11. package/dist/cdn/{MFGMIXHS.js → 5MY4KKZV.js} +1 -1
  12. package/dist/cdn/{GNVJXOOV.js → 5XUJFHKU.js} +1 -1
  13. package/dist/cdn/{TFXFKPTU.js → 72MZJZ6I.js} +1 -1
  14. package/dist/cdn/{2JXQPKO5.js → 73VJACG5.js} +1 -1
  15. package/dist/cdn/{AGIHYXGK.js → ADOT6PAL.js} +1 -1
  16. package/dist/cdn/{TRRB6DUE.js → BLLB6GVU.js} +1 -1
  17. package/dist/cdn/{FMF37DQF.js → BSWOQJUC.js} +1 -1
  18. package/dist/cdn/{OFXDO3EK.js → CEOJDFPK.js} +1 -1
  19. package/dist/cdn/{BES3KNGY.js → CFEXUWMK.js} +1 -1
  20. package/dist/cdn/{4KW327JN.js → CFWCANTF.js} +1 -1
  21. package/dist/cdn/{GN4O3BCI.js → CZFZIEMX.js} +1 -1
  22. package/dist/cdn/{6OEWH6DU.js → DLHFVWHO.js} +1 -1
  23. package/dist/cdn/{CW44UMK6.js → E3EBO7VM.js} +1 -1
  24. package/dist/cdn/{LRNKTAWO.js → E5LBVUWF.js} +1 -1
  25. package/dist/cdn/{KR22STZN.js → EHQCMFMJ.js} +1 -1
  26. package/dist/cdn/{A6ZKJNCI.js → ESEUMJAO.js} +1 -1
  27. package/dist/cdn/{FZDYLJRV.js → F2FUMKHT.js} +1 -1
  28. package/dist/cdn/FLLUECUY.js +3 -0
  29. package/dist/cdn/{VNIK56MD.js → G7EWCEOQ.js} +1 -1
  30. package/dist/cdn/{7QSJHT6K.js → HDAFZ7HZ.js} +1 -1
  31. package/dist/cdn/{CMH6WLB4.js → HYXVFQC4.js} +1 -1
  32. package/dist/cdn/{JMACRJOV.js → I3QPGNX2.js} +1 -1
  33. package/dist/cdn/{3MDFLGUF.js → I7P7Y4AI.js} +1 -1
  34. package/dist/cdn/{INCK5AFZ.js → IBGLMETB.js} +1 -1
  35. package/dist/cdn/{AIPJCK34.js → INWHDZUX.js} +1 -1
  36. package/dist/cdn/{WM36AOX7.js → IOQKEV5U.js} +1 -1
  37. package/dist/cdn/{IKBGE4XH.js → ISN3Z6RD.js} +1 -1
  38. package/dist/cdn/{OZIAUW3A.js → IZBPTSEL.js} +1 -1
  39. package/dist/cdn/{MB36GVIV.js → J25L7DLU.js} +1 -1
  40. package/dist/cdn/{U2GTLQKQ.js → JEJYJTQ3.js} +1 -1
  41. package/dist/cdn/{MNX2OQM7.js → JM2NUARU.js} +16 -16
  42. package/dist/cdn/{H4CCTXTD.js → JQN3RVVS.js} +1 -1
  43. package/dist/cdn/{JK7I63SC.js → JQNUPBDP.js} +1 -1
  44. package/dist/cdn/{BBPUHC7W.js → JRSODGEU.js} +1 -1
  45. package/dist/cdn/{QBKIVOUQ.js → JSX3LKOD.js} +1 -1
  46. package/dist/cdn/{W4XWIKEA.js → K4PTOYP7.js} +1 -1
  47. package/dist/cdn/{IVM77SOL.js → KG34BN4R.js} +1 -1
  48. package/dist/cdn/{2TWHFFC4.js → KMRESWL3.js} +1 -1
  49. package/dist/cdn/{ZNXBQWBM.js → KSLJPKWC.js} +1 -1
  50. package/dist/cdn/{OBEDC3OT.js → LM3WDIMX.js} +1 -1
  51. package/dist/cdn/{E3AWZQWL.js → MBBPNXP3.js} +1 -1
  52. package/dist/cdn/{4PUPQ4ZW.js → MQSBZKCF.js} +1 -1
  53. package/dist/cdn/{64LHZA6T.js → N5M267HE.js} +1 -1
  54. package/dist/cdn/{LZMT7YW7.js → NHFF5CKW.js} +1 -1
  55. package/dist/cdn/{GKRMQS5Q.js → NIXBX2CY.js} +1 -1
  56. package/dist/cdn/{PBOTADC5.js → O32BJPVC.js} +1 -1
  57. package/dist/cdn/{PQGX64RE.js → OFN7VGCU.js} +1 -1
  58. package/dist/cdn/{L4OHTO6S.js → OFZRCSH4.js} +1 -1
  59. package/dist/cdn/{A5TGCD54.js → PACZSOVJ.js} +1 -1
  60. package/dist/cdn/{ZN73TUTH.js → PJR43NZO.js} +1 -1
  61. package/dist/cdn/{K2JOJV52.js → Q4RQQGVC.js} +1 -1
  62. package/dist/cdn/{GRNKGPDQ.js → Q5HENWDN.js} +1 -1
  63. package/dist/cdn/{D6IGHHX3.js → QPLOPDDR.js} +1 -1
  64. package/dist/cdn/{ESYY65PY.js → QUUADWMW.js} +1 -1
  65. package/dist/cdn/{RWRGGCHV.js → RIXNZMGD.js} +1 -1
  66. package/dist/cdn/{CPQGJVLJ.js → RRYPAPCG.js} +1 -1
  67. package/dist/cdn/{OWO3NDGM.js → SLMJ2X57.js} +1 -1
  68. package/dist/cdn/{TR7YC7GX.js → T4Y7PPAF.js} +1 -1
  69. package/dist/cdn/{YXQHE47P.js → T7YPANRB.js} +1 -1
  70. package/dist/cdn/{M4S67KAQ.js → TEE4SFIN.js} +1 -1
  71. package/dist/cdn/{U2CTDP7X.js → TO5ZIEQF.js} +1 -1
  72. package/dist/cdn/{VETKGJXJ.js → TP36RQNC.js} +1 -1
  73. package/dist/cdn/{YG5HX7O4.js → TQHCSPE5.js} +1 -1
  74. package/dist/cdn/{KPXVJR6S.js → U4FMQ72H.js} +1 -1
  75. package/dist/cdn/{2A24D2CL.js → VJXC7G7Z.js} +1 -1
  76. package/dist/cdn/{VS6T5RFW.js → WE5N2DWF.js} +1 -1
  77. package/dist/cdn/{2D43CHPT.js → WH4TRMLQ.js} +1 -1
  78. package/dist/cdn/{O6X4UVEJ.js → WH6E3TRM.js} +1 -1
  79. package/dist/cdn/{US4WU5ZB.js → XAONJJD7.js} +1 -1
  80. package/dist/cdn/{EH3OIMGC.js → YJPAOKRE.js} +1 -1
  81. package/dist/cdn/index.js +1 -1
  82. package/dist/cdn/model/shared/setup-utils.js +1 -1
  83. package/dist/chunks/index2.js +290 -284
  84. package/dist/components/arcgis-chart/customElement.js +1451 -1443
  85. package/dist/docs/api.json +1 -1
  86. package/dist/docs/docs.json +1 -1
  87. package/dist/docs/web-types.json +1 -1
  88. package/package.json +4 -4
  89. package/dist/cdn/4NYV2JV3.js +0 -3
@@ -1,41 +1,41 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import { isEqual as at, sortBy as Ni, cloneDeep as He, memoize as It, isArray as li, isNil as pr, isEmpty as hr } from "lodash-es";
3
- import { u as h, k as Sr, r as D, v as Ke, m as Se, p as ye, n as De, q as Te, g as Z, j as Fr, s as R, t as ee, d as he, a as Ui, G as br } from "./chart-object-literals.js";
4
- import Ti from "@arcgis/core/layers/support/FeatureFilter.js";
2
+ import { isEqual as at, sortBy as Ti, cloneDeep as He, memoize as It, isArray as ui, isNil as pr, isEmpty as hr } from "lodash-es";
3
+ import { u as h, k as Sr, r as D, v as Ke, m as Se, p as ye, n as De, q as Te, g as Z, j as Fr, s as R, t as ee, d as he, a as Yi, G as br } from "./chart-object-literals.js";
4
+ import Ai from "@arcgis/core/layers/support/FeatureFilter.js";
5
5
  import xr from "@arcgis/core/smartMapping/statistics/histogram.js";
6
- import Ai from "@arcgis/core/smartMapping/statistics/summaryStatistics.js";
7
- import * as Yi from "@arcgis/core/geometry/support/jsonUtils.js";
6
+ import wi from "@arcgis/core/smartMapping/statistics/summaryStatistics.js";
7
+ import * as Zi from "@arcgis/core/geometry/support/jsonUtils.js";
8
8
  import Cr from "@arcgis/core/rest/support/AttributeBinsQuery.js";
9
9
  import vr from "@arcgis/core/rest/support/Query.js";
10
10
  import Br from "@arcgis/core/rest/support/StatisticDefinition.js";
11
- import Zi from "@arcgis/core/time/TimeExtent.js";
11
+ import Xi from "@arcgis/core/time/TimeExtent.js";
12
12
  import Nr from "@arcgis/core/layers/FeatureLayer.js";
13
13
  import Tr from "@arcgis/core/layers/support/CodedValueDomain.js";
14
14
  import Ar from "@arcgis/core/layers/support/Field.js";
15
15
  import * as wr from "@arcgis/core/layers/support/fieldUtils.js";
16
16
  import Lr from "@arcgis/core/portal/Portal.js";
17
- import * as Xi from "@arcgis/core/renderers/support/jsonUtils.js";
17
+ import * as Ji from "@arcgis/core/renderers/support/jsonUtils.js";
18
18
  import wt from "@arcgis/core/request.js";
19
- import Ji from "@arcgis/core/rest/support/FeatureSet.js";
19
+ import Ki 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 Ki, l as ui, o as wi, v as ea, d as Xt, x as Pr, g as ta, s as zt, w as Mr, i as Dr, r as Ae, t as Et } from "./index3.js";
21
+ import { F as C, q as oe, C as F, e as Zt, z as ea, l as ci, o as Li, v as ta, d as Xt, x as Pr, g as ia, s as zt, w as Mr, i as Dr, r as Ae, t as Et } from "./index3.js";
22
22
  import Or from "@arcgis/core/Graphic.js";
23
23
  import * as Wt from "@arcgis/core/symbols/support/symbolUtils.js";
24
24
  import { f as Jt, h as et, i as _e, e as se, R as U } from "./rest-js-object-literals.js";
25
25
  import Ir from "@arcgis/core/AttributeBinsGraphic.js";
26
26
  import { substitute as Be } from "@arcgis/core/intl.js";
27
- import { g as qt, L as lt, az as W, j as Q, r as ut, o as Oe, ax as Kt, am as ia, aB as aa, aq as Er, s as Vt, ay as qr, b as Vr, a as Rr } from "./index.js";
27
+ import { g as qt, L as lt, az as W, j as Q, r as ut, o as Oe, ax as Kt, am as aa, aB as ra, aq as Er, s as Vt, ay as qr, b as Vr, a as Rr } from "./index.js";
28
28
  import { unsafeGetElementDirection as $r } from "@arcgis/toolkit/dom";
29
- import { fetchT9nStringsBundle as ft, getElementLocale as ze, supportedLocales as ra } from "@arcgis/toolkit/intl";
30
- import { i as na, b as sa, c as ie, a as mt, f as kr, e as Qr } from "./type-guards.js";
31
- import * as oa from "@arcgis/core/core/promiseUtils.js";
29
+ import { fetchT9nStringsBundle as ft, getElementLocale as ze, supportedLocales as na } from "@arcgis/toolkit/intl";
30
+ import { i as sa, b as oa, c as ie, a as mt, f as kr, e as Qr } from "./type-guards.js";
31
+ import * as la from "@arcgis/core/core/promiseUtils.js";
32
32
  import { g as yt } from "./runtime.js";
33
33
  import { linearRegression as _r, linearRegressionLine as jr, rSquared as Hr } from "simple-statistics";
34
34
  import { sqlLiteral as zr } from "@arcgis/core/core/sql.js";
35
35
  import { DateTime as me } from "luxon";
36
36
  import { computeStatisticsHistograms as Wr, computeRasterAttributeTable as Gr, getCurrentRasterInfo as Rt, fetchPixelFeatureSet as Ur } from "@arcgis/core/applications/Components/imageryUtils.js";
37
37
  import Yr from "@arcgis/core/geometry/Extent.js";
38
- import la from "@arcgis/core/geometry/Point.js";
38
+ import ua from "@arcgis/core/geometry/Point.js";
39
39
  import Zr from "@arcgis/core/layers/ImageryLayer.js";
40
40
  import Xr from "@arcgis/core/layers/ImageryTileLayer.js";
41
41
  import Jr from "@arcgis/core/layers/WCSLayer.js";
@@ -335,22 +335,22 @@ function Fc(t) {
335
335
  function Ee(t) {
336
336
  return t !== void 0 && "view" in t && "layer" in t && t.layer.type === "feature";
337
337
  }
338
- function ua(t) {
338
+ function ca(t) {
339
339
  return t !== void 0 && "type" in t && t.type === "feature";
340
340
  }
341
341
  function bc(t) {
342
342
  return t !== void 0 && "type" in t && t.type === "subtype-group";
343
343
  }
344
- function ca(t) {
344
+ function da(t) {
345
345
  return t !== void 0 && "type" in t && t.type === "subtype-sublayer";
346
346
  }
347
347
  function fn(t) {
348
- return ua(t) || ca(t);
348
+ return ca(t) || da(t);
349
349
  }
350
350
  function ge(t) {
351
- return ca(t) ? t.parent ?? void 0 : t;
351
+ return da(t) ? t.parent ?? void 0 : t;
352
352
  }
353
- function da(t) {
353
+ function fa(t) {
354
354
  return t?.capabilities?.query?.supportsDistance || ge(t)?.sourceJSON?.advancedQueryCapabilities?.supportsQueryWithDistance === !0;
355
355
  }
356
356
  function mn(t) {
@@ -402,10 +402,10 @@ function Bc(t) {
402
402
  let a;
403
403
  if (i) {
404
404
  const r = z(i);
405
- na(r) ? a = {
405
+ sa(r) ? a = {
406
406
  id: r.id,
407
407
  layerType: "ArcGISImageServiceLayer"
408
- } : sa(r) ? a = {
408
+ } : oa(r) ? a = {
409
409
  id: r.id,
410
410
  layerType: "ArcGISTiledImageServiceLayer"
411
411
  } : a = {
@@ -562,12 +562,12 @@ function Tc(t, e) {
562
562
  }
563
563
  function te(t, e) {
564
564
  let i = "";
565
- return t?.includes("=") && (i = e !== !1 ? Ki({ value: t.split("=")[0], escape: !1 }) : t.split("=")[0].trim()), i;
565
+ return t?.includes("=") && (i = e !== !1 ? ea({ value: t.split("=")[0], escape: !1 }) : t.split("=")[0].trim()), i;
566
566
  }
567
567
  function fe(t) {
568
568
  const { where: e, normalize: i, keepSurroundingQuotes: a, escape: r = !1 } = t;
569
569
  let n = "";
570
- 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 = Ki({ value: n, keepSurroundingQuotes: a, escape: r })), n;
570
+ 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 = ea({ value: n, keepSurroundingQuotes: a, escape: r })), n;
571
571
  }
572
572
  function Ie(t) {
573
573
  let e = !1;
@@ -589,11 +589,11 @@ function Le(t) {
589
589
  let o = e;
590
590
  return n !== "" && s !== "" && (s === null ? o = `${n} IS NULL` : o = `${n}=${s}`), o;
591
591
  }
592
- function fa(t) {
592
+ function ma(t) {
593
593
  let e = F.PieFromCategory;
594
594
  return t[0].query?.outStatistics === void 0 ? e = F.PieNoAggregation : t[0].query?.groupByFieldsForStatistics === void 0 && (e = F.PieFromFields), e;
595
595
  }
596
- function ma(t) {
596
+ function ya(t) {
597
597
  let e = F.BarAndLineMonoField;
598
598
  const i = t[0].query?.where;
599
599
  return t[0].query?.groupByFieldsForStatistics === void 0 && (t[0].query?.outStatistics ?? []).length > 0 ? e = F.BarAndLineFromFields : i === void 0 && t[0].query?.outStatistics === void 0 ? e = F.BarAndLineNoAggregation : Ie(i) ? t.length > 1 && (e = F.BarAndLineMultiFields) : e = t[0].query?.outStatistics === void 0 ? F.BarAndLineSplitByNoAggregation : F.BarAndLineSplitBy, e;
@@ -608,13 +608,13 @@ function k(t) {
608
608
  if (t?.[0] !== void 0)
609
609
  switch (_(t)) {
610
610
  case h.PieSeries:
611
- e = fa(t);
611
+ e = ma(t);
612
612
  break;
613
613
  case h.RadarSeries:
614
614
  case h.BarSeries:
615
615
  case h.LineSeries:
616
616
  case h.ComboLineAndBarSeries:
617
- e = ma(t);
617
+ e = ya(t);
618
618
  break;
619
619
  case h.BoxPlotSeries:
620
620
  e = bn(t);
@@ -634,7 +634,7 @@ function Cn(t) {
634
634
  }
635
635
  return e;
636
636
  }
637
- function ya(t) {
637
+ function ga(t) {
638
638
  const { statsMap: e, dataContext: i, chartLimits: a } = t;
639
639
  let r = !1;
640
640
  if (e !== void 0) {
@@ -654,7 +654,7 @@ function vn(t) {
654
654
  r = Cn(i);
655
655
  break;
656
656
  case h.ScatterSeries:
657
- r = ya({ dataContext: e, chartLimits: a });
657
+ r = ga({ dataContext: e, chartLimits: a });
658
658
  break;
659
659
  case h.PieSeries:
660
660
  r = xn(i);
@@ -677,7 +677,7 @@ function Pe(t) {
677
677
  function be(t) {
678
678
  return Sn.includes(t?.type);
679
679
  }
680
- function ga(t) {
680
+ function pa(t) {
681
681
  const { previousConfig: e, newConfig: i, behaviorAfterLimit: a } = t, r = e.series, n = i.series;
682
682
  let s = !1, o = !1;
683
683
  (a === lt.RenderUpToTheLimit || e.orderOptions?.data === void 0 || i.orderOptions?.data === void 0) && (o = !at(
@@ -687,11 +687,11 @@ function ga(t) {
687
687
  const u = (f) => {
688
688
  const m = f.query;
689
689
  return m?.outStatistics?.forEach((y) => {
690
- fi(y) && !("statisticParameters" in y) && (y.statisticParameters = {
690
+ mi(y) && !("statisticParameters" in y) && (y.statisticParameters = {
691
691
  value: W.defaultStatParameterValue
692
692
  });
693
693
  }), m;
694
- }, c = ["where", "outStatistics[0].outStatisticFieldName", "outStatistics[0].onStatisticField"], l = Ni(r.map(u), c), d = Ni(n.map(u), c);
694
+ }, c = ["where", "outStatistics[0].outStatisticFieldName", "outStatistics[0].onStatisticField"], l = Ti(r.map(u), c), d = Ti(n.map(u), c);
695
695
  return s = !at(l, d), s || o;
696
696
  }
697
697
  function Bn(t, e) {
@@ -711,13 +711,13 @@ function Nn(t, e) {
711
711
  }
712
712
  return i;
713
713
  }
714
- function pa(t, e) {
714
+ function ha(t, e) {
715
715
  return (t ?? !1) !== (e ?? !1);
716
716
  }
717
- function ha(t, e) {
717
+ function Sa(t, e) {
718
718
  return be(t.series[0]) && be(e.series[0]) && (t.series[0].binTemporalData ?? C.binTemporalData) !== (e.series[0].binTemporalData ?? C.binTemporalData);
719
719
  }
720
- function Sa(t, e) {
720
+ function Fa(t, e) {
721
721
  const i = t.axes?.[0].valueFormat.type, a = e.axes?.[0].valueFormat.type, r = k(e.series), n = r === F.BarAndLineNoAggregation || r === F.BarAndLineSplitByNoAggregation, s = i === h.DateAxisFormat && a === h.NumberAxisFormat, o = i === h.NumberAxisFormat && a === h.DateAxisFormat;
722
722
  return i !== a && (n || s || o);
723
723
  }
@@ -735,16 +735,16 @@ function Tn(t) {
735
735
  }
736
736
  return { timeBinningChanged: s, newTimeBinningWillBeCalculated: o };
737
737
  }
738
- function Li(t, e) {
738
+ function Pi(t, e) {
739
739
  return e.length !== t.length;
740
740
  }
741
- function Fa(t, e) {
741
+ function ba(t, e) {
742
742
  return st(t) !== st(e);
743
743
  }
744
- function ba(t, e) {
744
+ function xa(t, e) {
745
745
  return JSON.stringify(t.series[0]?.valueConversion) !== JSON.stringify(e.series[0]?.valueConversion);
746
746
  }
747
- function xa(t, e) {
747
+ function Ca(t, e) {
748
748
  return JSON.stringify(t.series[0]?.xTemporalBinning) !== JSON.stringify(e.series[0]?.xTemporalBinning) || JSON.stringify(t.series[0]?.yTemporalBinning) !== JSON.stringify(e.series[0]?.yTemporalBinning) || (t.firstDayOfWeek ?? 7) !== (e.firstDayOfWeek ?? 7) || t.outTimeZone !== e.outTimeZone || (t.nullPolicy ?? Se.Null) !== (e.nullPolicy ?? Se.Null);
749
749
  }
750
750
  function An(t, e) {
@@ -835,7 +835,7 @@ function $c(t, e) {
835
835
  return JSON.stringify(i) !== JSON.stringify(a);
836
836
  }
837
837
  function kc(t, e) {
838
- return wi(t) !== wi(e);
838
+ return Li(t) !== Li(e);
839
839
  }
840
840
  function Qc(t, e) {
841
841
  return (t.showOutliers ?? C.boxPlot.boxPlotOutliersVisibility) !== (e.showOutliers ?? C.boxPlot.boxPlotOutliersVisibility);
@@ -908,18 +908,18 @@ function Gc(t) {
908
908
  tooltipFieldsChanged: !1
909
909
  }
910
910
  };
911
- switch (S.common.queryChanged = ga({
911
+ switch (S.common.queryChanged = pa({
912
912
  previousConfig: e,
913
913
  newConfig: i,
914
914
  behaviorAfterLimit: l?.behaviorAfterLimit
915
- }), S.common.configFiltersChanged = Bn(e, i), S.common.xOrYChanged = Nn(f, d), S.common.filterBySelectionChanged = pa(
915
+ }), S.common.configFiltersChanged = Bn(e, i), S.common.xOrYChanged = Nn(f, d), S.common.filterBySelectionChanged = ha(
916
916
  a,
917
917
  o
918
918
  ), S.common.dataForFilterBySelectionChanged = Pn({
919
919
  previousSelectionOIDs: r,
920
920
  selectionData: u,
921
921
  filterBySelection: o
922
- }), S.common.binTemporalDataChanged = ha(e, i), S.common.valueFormatChangeRequiresNewData = Sa(
922
+ }), S.common.binTemporalDataChanged = Sa(e, i), S.common.valueFormatChangeRequiresNewData = Fa(
923
923
  e,
924
924
  i
925
925
  ), S.common = {
@@ -940,16 +940,16 @@ function Gc(t) {
940
940
  case h.LineSeries:
941
941
  case h.BarSeries:
942
942
  case h.ComboLineAndBarSeries:
943
- S.common.numberOfSeriesChanged = Li(f, d);
943
+ S.common.numberOfSeriesChanged = Pi(f, d);
944
944
  break;
945
945
  case h.BoxPlotSeries:
946
- de(e) && de(i) && (S.common.numberOfSeriesChanged = Li(f, d), S.boxPlot.showMeanChanged = Fa(e, i));
946
+ de(e) && de(i) && (S.common.numberOfSeriesChanged = Pi(f, d), S.boxPlot.showMeanChanged = ba(e, i));
947
947
  break;
948
948
  case h.GaugeSeries:
949
- S.gauge.valueConversionChanged = ba(e, i);
949
+ S.gauge.valueConversionChanged = xa(e, i);
950
950
  break;
951
951
  case h.HeatSeries:
952
- We(e) && We(i) && (S.heatChart.binningChanged = xa(e, i), S.heatChart.hideEmptyRowsAndColumnsChanged = An(
952
+ We(e) && We(i) && (S.heatChart.binningChanged = Ca(e, i), S.heatChart.hideEmptyRowsAndColumnsChanged = An(
953
953
  e,
954
954
  i
955
955
  ), S.heatChart.includeLeapDay = wn(e, i));
@@ -972,7 +972,7 @@ function Uc(t, e) {
972
972
  let n;
973
973
  if (a === !1) {
974
974
  const s = k(i.series);
975
- n = ea(s) ? "splitByValue" : "name";
975
+ n = ta(s) ? "splitByValue" : "name";
976
976
  } else
977
977
  n = "name";
978
978
  i.series.sort((s, o) => {
@@ -988,7 +988,7 @@ function Uc(t, e) {
988
988
  htmlContainer: e
989
989
  }), i;
990
990
  }
991
- function ci(t) {
991
+ function di(t) {
992
992
  let e;
993
993
  const i = t?.orderOptions?.data;
994
994
  return t.series?.length > 0 && i?.orderType === De.MultiAxes && (e = [], e.push({
@@ -1002,10 +1002,10 @@ function ci(t) {
1002
1002
  function Mn(t) {
1003
1003
  const { chartConfig: e, field: i } = t;
1004
1004
  let a;
1005
- const r = ci(e);
1005
+ const r = di(e);
1006
1006
  return r?.length === 2 && (a = i === Q.xField ? r[0]?.orderBy : r[1]?.orderBy), a;
1007
1007
  }
1008
- function Ca(t) {
1008
+ function va(t) {
1009
1009
  const e = k(t.series);
1010
1010
  let i;
1011
1011
  if (t.orderOptions?.data !== void 0) {
@@ -1033,13 +1033,13 @@ function Ca(t) {
1033
1033
  }
1034
1034
  return i;
1035
1035
  }
1036
- function va(t) {
1036
+ function Ba(t) {
1037
1037
  const e = t.series[0], { x: i, y: a } = e, r = k(t.series) === F.PieFromFields, n = k(t.series) === F.BarAndLineFromFields;
1038
1038
  let s, o = "", u;
1039
1039
  if (t.orderOptions?.data !== void 0) {
1040
1040
  const c = t.orderOptions.data && "preferLabel" in t.orderOptions.data ? t.orderOptions.data.preferLabel : !0;
1041
1041
  if (o = t.orderOptions?.data?.orderType ?? De.Category, u = t.orderOptions?.data && "orderBy" in t.orderOptions.data ? t.orderOptions.data.orderBy : void 0, o === De.Category ? r ? o = ce : o = c ? i : gt.originalCategoryValue : o = r ? Ne : [a].flat()[0], o !== void 0 && o !== "") {
1042
- const l = ui(t);
1042
+ const l = ci(t);
1043
1043
  if (_(t.series) !== h.PieSeries && o !== i && t.series?.length > 1)
1044
1044
  switch (l) {
1045
1045
  case Te.Stacked:
@@ -1072,16 +1072,16 @@ function Pt(t) {
1072
1072
  let a;
1073
1073
  switch (i) {
1074
1074
  case h.HeatSeries:
1075
- We(t) && (e = ci(t));
1075
+ We(t) && (e = di(t));
1076
1076
  break;
1077
1077
  case h.BoxPlotSeries:
1078
- de(t) && (a = Ca(t));
1078
+ de(t) && (a = va(t));
1079
1079
  break;
1080
1080
  case h.LineSeries:
1081
1081
  case h.BarSeries:
1082
1082
  case h.RadarSeries:
1083
1083
  case h.PieSeries:
1084
- a = va(t);
1084
+ a = Ba(t);
1085
1085
  break;
1086
1086
  }
1087
1087
  !e && a && (e = [], e.push(a));
@@ -1104,18 +1104,18 @@ function Yc(t) {
1104
1104
  return s;
1105
1105
  }
1106
1106
  const Zc = {
1107
- getPieChartChartSubType: fa,
1108
- getBarLineChartSubType: ma,
1109
- hasQueryChanged: ga,
1110
- hasFilterBySelectionChanged: pa,
1111
- hasBinTemporalDataChanged: ha,
1112
- hasGaugeValueConversionChanged: ba,
1113
- isNewDataRequiredForValueFormatChange: Sa,
1114
- hasShowMeanChanged: Fa,
1115
- hasHeatChartBinningChanged: xa,
1116
- getDataOrderParametersForBoxPlot: Ca,
1117
- getDataOrderParametersForCommonChart: va,
1118
- getDataOrderParametersForHeatChart: ci
1107
+ getPieChartChartSubType: ma,
1108
+ getBarLineChartSubType: ya,
1109
+ hasQueryChanged: pa,
1110
+ hasFilterBySelectionChanged: ha,
1111
+ hasBinTemporalDataChanged: Sa,
1112
+ hasGaugeValueConversionChanged: xa,
1113
+ isNewDataRequiredForValueFormatChange: Fa,
1114
+ hasShowMeanChanged: ba,
1115
+ hasHeatChartBinningChanged: Ca,
1116
+ getDataOrderParametersForBoxPlot: va,
1117
+ getDataOrderParametersForCommonChart: Ba,
1118
+ getDataOrderParametersForHeatChart: di
1119
1119
  };
1120
1120
  function Dn(t) {
1121
1121
  let e;
@@ -1130,7 +1130,7 @@ function Dn(t) {
1130
1130
  t[0]
1131
1131
  )), e;
1132
1132
  }
1133
- function Pi(t) {
1133
+ function Mi(t) {
1134
1134
  const { value: e, dataContext: i, specificField: a, keepNullValues: r = !1, useRendererLabel: n = !1, config: s } = t;
1135
1135
  let o = e;
1136
1136
  const { originalCategoryValue: u, originalDateValue: c } = C;
@@ -1140,7 +1140,7 @@ function Pi(t) {
1140
1140
  }
1141
1141
  return o;
1142
1142
  }
1143
- function di(t) {
1143
+ function fi(t) {
1144
1144
  const { value: e, dataContext: i } = t;
1145
1145
  let a = e;
1146
1146
  const { originalCategoryValue: r, originalDateValue: n } = C;
@@ -1164,13 +1164,13 @@ function pt(t) {
1164
1164
  const c = i === ye.Descending && r !== !0;
1165
1165
  e.sort((l, d) => {
1166
1166
  let f = 0, m = l[a];
1167
- s === !0 && !u && (m = Pi({
1167
+ s === !0 && !u && (m = Mi({
1168
1168
  value: `${l[a]?.toString()}`,
1169
1169
  dataContext: l,
1170
1170
  specificField: o ? C.xAxisField : void 0
1171
1171
  }));
1172
1172
  let y = d[a];
1173
- return s === !0 && !u && (y = Pi({
1173
+ return s === !0 && !u && (y = Mi({
1174
1174
  value: `${d[a]?.toString()}`,
1175
1175
  dataContext: d,
1176
1176
  specificField: o ? C.xAxisField : void 0
@@ -1242,7 +1242,7 @@ function Tt(t) {
1242
1242
  const n = [];
1243
1243
  return typeof e == "number" && Number.isFinite(e) && n.push(e), typeof i == "number" && Number.isFinite(i) && n.push(i * a), n.length > 0 && (r = Math.min(...n)), r;
1244
1244
  }
1245
- function Ba(t, e) {
1245
+ function Na(t, e) {
1246
1246
  let i;
1247
1247
  const {
1248
1248
  maxBarChartSeriesCount: a,
@@ -1298,7 +1298,7 @@ function Ba(t, e) {
1298
1298
  }
1299
1299
  return (v === F.BarAndLineNoAggregation || v === F.BarAndLineMultiFields) && i !== void 0 && (i = Math.ceil(i / b)), i;
1300
1300
  }
1301
- function Mi(t, e) {
1301
+ function Di(t, e) {
1302
1302
  let i = t;
1303
1303
  if (Number.isFinite(t)) {
1304
1304
  const { factor: a, offset: r } = e ?? {};
@@ -1322,7 +1322,7 @@ function Xc(t) {
1322
1322
  }
1323
1323
  return e;
1324
1324
  }
1325
- function Na(t) {
1325
+ function Ta(t) {
1326
1326
  const { stringToTruncate: e, characterLimit: i, ellipsis: a = C.chartEllipsis } = t;
1327
1327
  let r = e;
1328
1328
  return typeof i == "number" && Number.isFinite(i) && i > 0 && i < e.length && (r = e.slice(0, i), r = `${r}${a}`), r;
@@ -1333,7 +1333,7 @@ function Jc(t) {
1333
1333
  if (i > 0 && e.length > i) {
1334
1334
  const r = e.lastIndexOf(" ", i), n = e.lastIndexOf("-", i), s = Math.max(r, n), o = s === n && n > 0, u = s > 0 ? s + (o ? 1 : 0) : i, c = Math.min(i, u), l = e.slice(0, c).trimEnd();
1335
1335
  let d = e.slice(c).trimStart();
1336
- d.length > i && (d = Na({
1336
+ d.length > i && (d = Ta({
1337
1337
  stringToTruncate: d,
1338
1338
  characterLimit: Math.max(1, i - 1)
1339
1339
  })), a = `${l}
@@ -1347,7 +1347,7 @@ function Kc(t, e = ":") {
1347
1347
  function ed(t) {
1348
1348
  return (i) => {
1349
1349
  let a = typeof i != "string" ? i?.toString() ?? "" : i;
1350
- return !oe(a) && a !== C.htmlEmptyContent && (a = Na({
1350
+ return !oe(a) && a !== C.htmlEmptyContent && (a = Ta({
1351
1351
  stringToTruncate: a,
1352
1352
  characterLimit: t
1353
1353
  })), a;
@@ -1443,14 +1443,14 @@ function jn(t) {
1443
1443
  function Hn(t) {
1444
1444
  return t?.type !== void 0 && (t.color !== void 0 || t.label !== void 0 || t.style !== void 0 || t.outline !== void 0);
1445
1445
  }
1446
- function Ta(t) {
1446
+ function Aa(t) {
1447
1447
  const { symbolField: e, dataItem: i, rendererSymbol: a, rendererOrigin: r } = t;
1448
1448
  let n = !1;
1449
1449
  if (!Hn(a))
1450
1450
  delete i[e];
1451
1451
  else {
1452
1452
  const s = { ...a };
1453
- s.color !== void 0 && r === tt.LayerRenderer && (s.color[3] = aa * 255), r === tt.LayerRenderer && (delete s.style, delete s.outline, delete s.label), i[e] = s, n = !0;
1453
+ s.color !== void 0 && r === tt.LayerRenderer && (s.color[3] = ra * 255), r === tt.LayerRenderer && (delete s.style, delete s.outline, delete s.label), i[e] = s, n = !0;
1454
1454
  }
1455
1455
  return n;
1456
1456
  }
@@ -1487,7 +1487,7 @@ function zn(t) {
1487
1487
  type: _e.SMS,
1488
1488
  color: p,
1489
1489
  label: S && y ? y : void 0
1490
- }, c != null && (s.outline = c), Ta({
1490
+ }, c != null && (s.outline = c), Aa({
1491
1491
  dataItem: r,
1492
1492
  symbolField: a === F.BarAndLineFromFields || a === F.PieFromFields ? C.rendererSymbolField : `${C.rendererSymbolField}_${f}`,
1493
1493
  rendererSymbol: s,
@@ -1500,7 +1500,7 @@ function Wn(t) {
1500
1500
  const { seriesConfig: e, chartSubType: i, rendererType: a } = t;
1501
1501
  let n = C.rendererSymbolField;
1502
1502
  if (a === se.UniqueValue) {
1503
- if (ea(i)) {
1503
+ if (ta(i)) {
1504
1504
  const s = fe({
1505
1505
  where: e.query?.where,
1506
1506
  keepSurroundingQuotes: !1,
@@ -1523,7 +1523,7 @@ function Wn(t) {
1523
1523
  }
1524
1524
  return n;
1525
1525
  }
1526
- function Aa(t) {
1526
+ function wa(t) {
1527
1527
  const { seriesConfig: e, chartSubType: i, rendererType: a, dataItem: r } = t;
1528
1528
  let n = Wn({
1529
1529
  seriesConfig: e,
@@ -1537,7 +1537,7 @@ function Gn(t) {
1537
1537
  // TODO: find a better way to copy the layer. For now it's all right as the information we need are not lost with the spread operator
1538
1538
  // eslint-disable-next-line @typescript-eslint/no-misused-spread
1539
1539
  ...z(i),
1540
- renderer: Xi.fromJSON(e)
1540
+ renderer: Ji.fromJSON(e)
1541
1541
  } : z(i);
1542
1542
  return new Or({
1543
1543
  layer: a
@@ -1570,7 +1570,7 @@ async function Un(t) {
1570
1570
  const { x: m } = e[0], y = /* @__PURE__ */ new Map();
1571
1571
  o && o.trim() !== "" ? e.forEach((p) => {
1572
1572
  if (p.type === h.BarSeries || p.type === h.LineSeries || p.type === h.BoxPlotSeries || p.type === h.RadarSeries) {
1573
- const g = Aa({
1573
+ const g = wa({
1574
1574
  seriesConfig: p,
1575
1575
  chartSubType: s,
1576
1576
  rendererType: r,
@@ -1601,7 +1601,7 @@ async function Un(t) {
1601
1601
  const S = a?.uniqueValueInfos;
1602
1602
  for (let b = 0; b < p.length; b += 1) {
1603
1603
  const [v, x] = p[b];
1604
- if (Di({
1604
+ if (Oi({
1605
1605
  mode: "encode",
1606
1606
  x: m,
1607
1607
  splitByField: o,
@@ -1621,12 +1621,12 @@ async function Un(t) {
1621
1621
  }
1622
1622
  l?.set(JSON.stringify(x), d);
1623
1623
  }
1624
- Di({
1624
+ Oi({
1625
1625
  mode: "revert",
1626
1626
  x: m,
1627
1627
  splitByField: o,
1628
1628
  attributes: i
1629
- }), Ta({
1629
+ }), Aa({
1630
1630
  dataItem: i,
1631
1631
  symbolField: v,
1632
1632
  rendererSymbol: d,
@@ -1638,7 +1638,7 @@ async function Un(t) {
1638
1638
  }
1639
1639
  return { rendererSymbol: d, colorMatchApplied: f };
1640
1640
  }
1641
- function Di(t) {
1641
+ function Oi(t) {
1642
1642
  const { splitByField: e, attributes: i, x: a, mode: r } = t;
1643
1643
  [a, e ?? ""].forEach((n) => {
1644
1644
  i[n] === (r === "encode" ? null : C.nullValue) && (i[n] = r === "encode" ? C.nullValue : null);
@@ -1648,7 +1648,7 @@ function Yn(t) {
1648
1648
  const { dataItem: e, seriesConfig: i, chartSubType: a, colorMatch: r, rendererType: n } = t;
1649
1649
  let s;
1650
1650
  if (r && e !== void 0) {
1651
- const o = Aa({
1651
+ const o = wa({
1652
1652
  seriesConfig: i,
1653
1653
  chartSubType: a,
1654
1654
  rendererType: n,
@@ -1661,7 +1661,7 @@ function Yn(t) {
1661
1661
  function sd(t) {
1662
1662
  const { seriesSymbol: e, rendererSymbol: i, colorIndex: a } = t;
1663
1663
  let r = i?.color ?? e.color;
1664
- r = r ?? ia({ colorIndex: a, opacity: aa });
1664
+ r = r ?? aa({ colorIndex: a, opacity: ra });
1665
1665
  const n = {
1666
1666
  ...e,
1667
1667
  color: r
@@ -1679,7 +1679,7 @@ function Zn(t) {
1679
1679
  }
1680
1680
  function od(t, e) {
1681
1681
  let i = !1;
1682
- if (t && e && e.length > 0 && ta(t)) {
1682
+ if (t && e && e.length > 0 && ia(t)) {
1683
1683
  const r = es(t), n = Re(t);
1684
1684
  r ? i = Zn(t).some((o) => e.includes(o)) : i = e.includes(n.x);
1685
1685
  }
@@ -1721,7 +1721,7 @@ function ei(t, e) {
1721
1721
  function ud(t) {
1722
1722
  const { chartConfig: e, queryObject: i, chartData: a } = t;
1723
1723
  let r = [];
1724
- const n = k(e.series), s = ta(e), o = z(i), u = e.chartRenderer ?? o?.renderer?.toJSON();
1724
+ const n = k(e.series), s = ia(e), o = z(i), u = e.chartRenderer ?? o?.renderer?.toJSON();
1725
1725
  return r = e.series.map((c, l) => {
1726
1726
  const d = _([c]);
1727
1727
  let f;
@@ -1731,7 +1731,7 @@ function ud(t) {
1731
1731
  chartSubType: n,
1732
1732
  colorMatch: s,
1733
1733
  rendererType: u?.type
1734
- })?.color : f === void 0 && (f = ia({ colorIndex: l }))), f;
1734
+ })?.color : f === void 0 && (f = aa({ colorIndex: l }))), f;
1735
1735
  }).filter((c) => c !== void 0), r;
1736
1736
  }
1737
1737
  function ti(t) {
@@ -1754,7 +1754,7 @@ function is(t, e) {
1754
1754
  const i = me.now().offset / 60, a = me.now().setZone(t) ?? i, r = a.offset / 60, n = e ? a.setZone(e).offset / 60 : 0;
1755
1755
  return r - n;
1756
1756
  }
1757
- function wa(t) {
1757
+ function La(t) {
1758
1758
  const {
1759
1759
  outTimeZone: e = Intl.DateTimeFormat().resolvedOptions().timeZone,
1760
1760
  dataTimeZone: i = "UTC",
@@ -1771,7 +1771,7 @@ function wa(t) {
1771
1771
  return r;
1772
1772
  }
1773
1773
  function as(t) {
1774
- const { dateFieldName: e, unit: i, runsOnClientQueryEngine: a, outTimeZone: r } = t, n = wa({ runsOnClientQueryEngine: a, outTimeZone: r }), s = `EXTRACT(YEAR FROM ${e} ${n})`, o = `EXTRACT(MONTH FROM ${e} ${n})`, u = `EXTRACT(DAY FROM ${e} ${n})`, c = `EXTRACT(HOUR FROM ${e} ${n})`, l = `EXTRACT(MINUTE FROM ${e} ${n})`, d = `EXTRACT(SECOND FROM ${e} ${n})`;
1774
+ const { dateFieldName: e, unit: i, runsOnClientQueryEngine: a, outTimeZone: r } = t, n = La({ runsOnClientQueryEngine: a, outTimeZone: r }), s = `EXTRACT(YEAR FROM ${e} ${n})`, o = `EXTRACT(MONTH FROM ${e} ${n})`, u = `EXTRACT(DAY FROM ${e} ${n})`, c = `EXTRACT(HOUR FROM ${e} ${n})`, l = `EXTRACT(MINUTE FROM ${e} ${n})`, d = `EXTRACT(SECOND FROM ${e} ${n})`;
1775
1775
  let f = [];
1776
1776
  switch (i) {
1777
1777
  case R.Second:
@@ -1821,7 +1821,7 @@ function ss(t) {
1821
1821
  );
1822
1822
  e.groupByFieldsForStatistics = Array.from(new Set(r));
1823
1823
  }
1824
- function fi(t) {
1824
+ function mi(t) {
1825
1825
  return t.statisticType === D.ContinuousPercentile || t.statisticType === D.DiscretePercentile;
1826
1826
  }
1827
1827
  function os(t) {
@@ -1840,7 +1840,7 @@ function os(t) {
1840
1840
  const { outStatistics: l } = e;
1841
1841
  for (let d = 0; d < l.length; d += 1) {
1842
1842
  const f = l[d];
1843
- f !== void 0 && fi(f) && (s && !rt(u, r) ? (l[d].statisticType = D.Count, delete l[d].statisticParameters) : l[d] = {
1843
+ f !== void 0 && mi(f) && (s && !rt(u, r) ? (l[d].statisticType = D.Count, delete l[d].statisticParameters) : l[d] = {
1844
1844
  ...l[d],
1845
1845
  statisticParameters: l[d].statisticParameters ?? {
1846
1846
  value: W.defaultStatParameterValue
@@ -1922,10 +1922,10 @@ function cs(t) {
1922
1922
  ]);
1923
1923
  }
1924
1924
  }
1925
- function La(t) {
1925
+ function Pa(t) {
1926
1926
  const { chartConfig: e, uniqueQuery: i, chartLimits: a } = t;
1927
1927
  if (a?.behaviorAfterLimit === lt.RenderUpToTheLimit) {
1928
- const r = Ba(e, a);
1928
+ const r = Na(e, a);
1929
1929
  if (r !== void 0) {
1930
1930
  const n = k(e.series);
1931
1931
  if (n === F.PieFromFields || n === F.BarAndLineFromFields) {
@@ -1938,7 +1938,7 @@ function La(t) {
1938
1938
  }
1939
1939
  }
1940
1940
  }
1941
- function mi(t) {
1941
+ function yi(t) {
1942
1942
  const {
1943
1943
  chartConfig: e,
1944
1944
  queryConfig: i,
@@ -2017,7 +2017,7 @@ function mi(t) {
2017
2017
  }
2018
2018
  N.where = M;
2019
2019
  }
2020
- La({ chartConfig: e, uniqueQuery: N, chartLimits: u });
2020
+ Pa({ chartConfig: e, uniqueQuery: N, chartLimits: u });
2021
2021
  const { gdbVersion: T, geometry: w, distance: L, units: A, timeExtent: I, where: P, objectIds: O, spatialRelationship: V } = i;
2022
2022
  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 };
2023
2023
  }
@@ -2098,7 +2098,7 @@ async function ms(t) {
2098
2098
  ), O = L ** P;
2099
2099
  b = m.pixelSize.x * O, v = m.pixelSize.y * O, x = f.spatialReference;
2100
2100
  }
2101
- const B = new la({
2101
+ const B = new ua({
2102
2102
  x: b,
2103
2103
  y: v,
2104
2104
  spatialReference: x
@@ -2188,7 +2188,7 @@ async function gs(t) {
2188
2188
  }
2189
2189
  const ps = (t) => t.series[0].x;
2190
2190
  function hs(t) {
2191
- const { chartConfig: e, layer: i, selectionDataItems: a } = t, r = ii(i, ps(e)), s = a.map((c) => [
2191
+ const { chartConfig: e, layer: i, selectionDataItems: a } = t, r = ai(i, ps(e)), s = a.map((c) => [
2192
2192
  c.minValue,
2193
2193
  c.maxValue
2194
2194
  ]).reduce((c, l, d) => {
@@ -2313,7 +2313,7 @@ async function Cs(t) {
2313
2313
  }
2314
2314
  return m;
2315
2315
  }
2316
- function Pa(t, e) {
2316
+ function Ma(t, e) {
2317
2317
  return {
2318
2318
  lowerBoundaryAlias: `charts_lower_boundary_${t}`,
2319
2319
  upperBoundaryAlias: `charts_upper_boundary_${t}`,
@@ -2393,7 +2393,7 @@ async function Ns(t) {
2393
2393
  async function Ts(t) {
2394
2394
  const { queryConfig: e, x: i, queryObject: a, chartSubType: r, isGaugeByFeature: n, abortSignal: s } = t;
2395
2395
  let o;
2396
- const u = z(a), { idField: c, isTraditionalTypeOID: l } = ve(u), d = pi({ queryObject: a, queryConfig: e });
2396
+ const u = z(a), { idField: c, isTraditionalTypeOID: l } = ve(u), d = hi({ queryObject: a, queryConfig: e });
2397
2397
  d.outFields = n || r === F.PieNoAggregation || r === F.BarAndLineNoAggregation || r === F.BarAndLineSplitByNoAggregation ? [l ? c : "*"] : [i], d.outFields?.[0] === i && (d.returnDistinctValues = !0);
2398
2398
  try {
2399
2399
  o = await a.queryFeatureCount(d, { signal: s });
@@ -2414,7 +2414,7 @@ async function bt(t) {
2414
2414
  };
2415
2415
  });
2416
2416
  i.outStatistics = u, delete i.num, delete i.orderByFields;
2417
- const c = pi({
2417
+ const c = hi({
2418
2418
  queryObject: e,
2419
2419
  queryConfig: i
2420
2420
  });
@@ -2424,7 +2424,7 @@ async function bt(t) {
2424
2424
  signal: n ?? (a !== void 0 ? Ge.get(a)?.signal : void 0)
2425
2425
  });
2426
2426
  } catch (f) {
2427
- if (!oa.isAbortError(f)) {
2427
+ if (!la.isAbortError(f)) {
2428
2428
  const m = r ?? (await ft(
2429
2429
  ze(document.documentElement).t9nLocale,
2430
2430
  yt("./assets/common/t9n"),
@@ -2444,10 +2444,10 @@ async function bt(t) {
2444
2444
  }
2445
2445
  return o;
2446
2446
  }
2447
- async function Ma(t) {
2447
+ async function Da(t) {
2448
2448
  const { queryObject: e, queryConfig: i, returnUniqueIdsOnly: a, abortKey: r, errorStrings: n, abortSignal: s } = t;
2449
2449
  let o = [];
2450
- const u = z(e), c = s || (r !== void 0 ? Ge.get(r)?.signal : void 0), l = bo(u), d = pi({
2450
+ const u = z(e), c = s || (r !== void 0 ? Ge.get(r)?.signal : void 0), l = bo(u), d = hi({
2451
2451
  queryObject: e,
2452
2452
  queryConfig: i,
2453
2453
  maxRecordCountFactor: l
@@ -2465,7 +2465,7 @@ async function Ma(t) {
2465
2465
  else
2466
2466
  o = (await e.queryFeatures(d, { signal: c })).features;
2467
2467
  } catch (f) {
2468
- if (!oa.isAbortError(f)) {
2468
+ if (!la.isAbortError(f)) {
2469
2469
  const m = n ?? (await ft(
2470
2470
  ze(document.documentElement).t9nLocale,
2471
2471
  yt("./assets/common/t9n"),
@@ -2485,7 +2485,7 @@ async function As(t) {
2485
2485
  ...r,
2486
2486
  start: u,
2487
2487
  num: Math.min(a, i - u)
2488
- }, e.push(Ma({ ...l, abortSignal: n })), u += a, o += 1;
2488
+ }, e.push(Da({ ...l, abortSignal: n })), u += a, o += 1;
2489
2489
  }
2490
2490
  return s = (await Promise.all(e)).flat(), s;
2491
2491
  }
@@ -2511,7 +2511,7 @@ async function Fe(t) {
2511
2511
  S.push(v), y += 1;
2512
2512
  }
2513
2513
  c = (await Promise.all(S)).flat();
2514
- } else (Number.isNaN(d) || d >= 0) && (c = await Ma({
2514
+ } else (Number.isNaN(d) || d >= 0) && (c = await Da({
2515
2515
  queryObject: e,
2516
2516
  queryConfig: i,
2517
2517
  returnUniqueIdsOnly: a,
@@ -2539,7 +2539,7 @@ function ws(t) {
2539
2539
  e !== void 0 && e.abort(), Ge.set(t, new AbortController());
2540
2540
  }
2541
2541
  }
2542
- function Da(t) {
2542
+ function Oa(t) {
2543
2543
  return {
2544
2544
  lowerBoundaryAlias: `charts_lower_boundary_${t}`,
2545
2545
  upperBoundaryAlias: `charts_upper_boundary_${t}`
@@ -2670,7 +2670,7 @@ async function Os(t) {
2670
2670
  }
2671
2671
  return { r2: l, trendLinePoints: d };
2672
2672
  }
2673
- function Oa(t) {
2673
+ function Ia(t) {
2674
2674
  const { data: e, chartConfig: i } = t, a = i.series[0], { x: r, y: n } = a;
2675
2675
  let { r2: s, trendLinePoints: o } = C.scatterplotSeries;
2676
2676
  const u = Ds({ data: e, x: r, y: n });
@@ -2680,7 +2680,7 @@ function Oa(t) {
2680
2680
  }
2681
2681
  return { r2: s, trendLinePoints: o };
2682
2682
  }
2683
- async function Ia(t) {
2683
+ async function Ea(t) {
2684
2684
  const e = await Ps(t), { chartConfig: i } = t, a = i.series[0], { x: r, y: n } = a, { r2: s } = C.scatterplotSeries, o = [
2685
2685
  { [r]: Number.NaN, [n]: Number.NaN },
2686
2686
  { [r]: Number.NaN, [n]: Number.NaN }
@@ -2692,7 +2692,7 @@ async function Ia(t) {
2692
2692
  } catch {
2693
2693
  c = !0;
2694
2694
  }
2695
- return (!e || c) && (u = Oa(t)), u;
2695
+ return (!e || c) && (u = Ia(t)), u;
2696
2696
  }
2697
2697
  const Is = 50, Es = 4194304;
2698
2698
  async function qs(t) {
@@ -2742,7 +2742,7 @@ async function Rs(t) {
2742
2742
  sortingField: e.series[0].x,
2743
2743
  orderBy: ye.Ascending
2744
2744
  });
2745
- const l = /* @__PURE__ */ new Map(), { r2: d, trendLinePoints: f } = n !== !1 ? await Ia({
2745
+ const l = /* @__PURE__ */ new Map(), { r2: d, trendLinePoints: f } = n !== !1 ? await Ea({
2746
2746
  data: c,
2747
2747
  statsMap: l,
2748
2748
  queryConfig: i,
@@ -2760,7 +2760,7 @@ function ks(t) {
2760
2760
  const { chartConfig: e, layer: i, selectionDataItems: a } = t;
2761
2761
  let r;
2762
2762
  if (a.length > 0) {
2763
- const { x: n, y: s } = $s(e), o = ii(i, n), u = ii(i, s);
2763
+ const { x: n, y: s } = $s(e), o = ai(i, n), u = ai(i, s);
2764
2764
  if (o !== void 0 && u !== void 0 && o !== u) {
2765
2765
  let c = Number.MAX_SAFE_INTEGER, l = Number.MIN_SAFE_INTEGER, d = Number.MAX_SAFE_INTEGER, f = Number.MIN_SAFE_INTEGER;
2766
2766
  a.forEach((m) => {
@@ -2877,7 +2877,7 @@ function _s(t) {
2877
2877
  }
2878
2878
  return r;
2879
2879
  }
2880
- function Oi(t, e) {
2880
+ function Ii(t, e) {
2881
2881
  let i;
2882
2882
  return t == null && e ? i = {
2883
2883
  groupKey: C.nullValue,
@@ -2891,7 +2891,7 @@ async function js(t) {
2891
2891
  const o = await ct(e, s), u = dt(i) ?? e.fullExtent;
2892
2892
  let c = o?.attributeTable;
2893
2893
  if (a) {
2894
- const l = r ? new la({
2894
+ const l = r ? new ua({
2895
2895
  x: r.resolution,
2896
2896
  y: r.resolution,
2897
2897
  spatialReference: r.spatialReference
@@ -2940,12 +2940,12 @@ async function Hs(t) {
2940
2940
  else {
2941
2941
  const m = i.groupByFieldsForStatistics?.[0] ?? "", y = f.some((S) => S.query?.fetchNullValues), p = /* @__PURE__ */ new Map();
2942
2942
  for (const S of d) {
2943
- const { groupKey: b } = Oi(S.attributes[m], y);
2943
+ const { groupKey: b } = Ii(S.attributes[m], y);
2944
2944
  b === C.nullValue && !y || (p.has(b) || p.set(b, []), p.get(b).push(S.attributes));
2945
2945
  }
2946
2946
  const g = [];
2947
2947
  p.forEach((S) => {
2948
- const b = {}, v = S[0][m], { display: x, original: B } = Oi(v, y);
2948
+ const b = {}, v = S[0][m], { display: x, original: B } = Ii(v, y);
2949
2949
  b[m] = x, b[C.xAxisField] = x, b[C.originalCategoryValue] = B, f.forEach((N) => {
2950
2950
  const T = N.query?.outStatistics?.[0];
2951
2951
  if (!T) {
@@ -3026,7 +3026,7 @@ function Gs(t) {
3026
3026
  }
3027
3027
  return r;
3028
3028
  }
3029
- const Ea = "PixelID", Us = "Pixel ID", Ys = [
3029
+ const ii = "PixelID", Us = "Pixel ID", Ys = [
3030
3030
  h.BarSeries,
3031
3031
  h.HistogramSeries,
3032
3032
  h.ScatterSeries
@@ -3069,8 +3069,14 @@ function Xs(t) {
3069
3069
  function qa(t) {
3070
3070
  if (!t.loaded)
3071
3071
  throw new Error("Raster layer must be loaded to get its ID field name");
3072
- const i = Rt(t)?.attributeTable?.fields.find((a) => a.type === "oid");
3073
- return i ? i.name : Ea;
3072
+ let e;
3073
+ const i = Rt(t);
3074
+ if (i?.attributeTable) {
3075
+ const a = i.attributeTable.fields, r = a.find((n) => n.type === "oid")?.name;
3076
+ r ? e = r : e = a.find((s) => s.name.toLowerCase() === "value")?.name;
3077
+ } else
3078
+ e = ii;
3079
+ return e ?? ii;
3074
3080
  }
3075
3081
  function Va(t) {
3076
3082
  const { layer: e, rasterInfo: i, popupTemplateFieldInfosEnabled: a } = t;
@@ -3095,7 +3101,7 @@ function Va(t) {
3095
3101
  )?.label;
3096
3102
  return d && d !== l.name && (l.alias = d), l;
3097
3103
  }), n = [{
3098
- name: Ea,
3104
+ name: ii,
3099
3105
  alias: Us,
3100
3106
  type: U.OID
3101
3107
  }, ...o];
@@ -3140,7 +3146,7 @@ const Ra = It(
3140
3146
  },
3141
3147
  (t) => JSON.stringify(t, Object.keys(t).sort())
3142
3148
  // stringify with sorted keys
3143
- ), ii = (t, e) => {
3149
+ ), ai = (t, e) => {
3144
3150
  let i = -1;
3145
3151
  if (!t.loaded)
3146
3152
  throw new Error("Raster layer must be loaded to get its band ID by name");
@@ -3196,7 +3202,7 @@ async function Ks(t) {
3196
3202
  maxPixelCount: r,
3197
3203
  skipFactor: a
3198
3204
  }, d = await Ur(u, l, { signal: o });
3199
- s = Ji.fromJSON(d.featureSet).features;
3205
+ s = Ki.fromJSON(d.featureSet).features;
3200
3206
  } catch {
3201
3207
  s = [];
3202
3208
  }
@@ -3234,7 +3240,7 @@ function to(t) {
3234
3240
  let e, i, a;
3235
3241
  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 };
3236
3242
  }
3237
- const yi = It(
3243
+ const gi = It(
3238
3244
  async (t, e) => {
3239
3245
  const i = t.featureCollection;
3240
3246
  let a, r;
@@ -3245,8 +3251,8 @@ const yi = It(
3245
3251
  r = t.layerDefinition;
3246
3252
  const n = {};
3247
3253
  if (a !== void 0) {
3248
- if (n.source = Ji.fromJSON(a).features, r?.fields !== void 0 && (n.fields = r.fields.map((o) => Ar.fromJSON(o))), r?.objectIdField !== void 0 && (n.objectIdField = r.objectIdField), r?.geometryType !== void 0) {
3249
- const o = Yi.fromJSON({
3254
+ if (n.source = Ki.fromJSON(a).features, r?.fields !== void 0 && (n.fields = r.fields.map((o) => Ar.fromJSON(o))), r?.objectIdField !== void 0 && (n.objectIdField = r.objectIdField), r?.geometryType !== void 0) {
3255
+ const o = Zi.fromJSON({
3250
3256
  geometryType: r.geometryType
3251
3257
  });
3252
3258
  o?.type !== void 0 && o?.type !== "extent" && (n.geometryType = o.type);
@@ -3256,7 +3262,7 @@ const yi = It(
3256
3262
  n.id = t.id, r?.id !== void 0 && (n.layerId = r.id), t.url !== void 0 && (n.url = t.url), t.itemId !== void 0 && r?.id !== void 0 && (n.portalItem = { id: t.itemId });
3257
3263
  if (r !== void 0) {
3258
3264
  const o = r.drawingInfo;
3259
- o?.renderer !== void 0 && (n.renderer = Xi.fromJSON(o.renderer));
3265
+ o?.renderer !== void 0 && (n.renderer = Ji.fromJSON(o.renderer));
3260
3266
  }
3261
3267
  const s = new Nr(n);
3262
3268
  return await s.load({ signal: e }), s;
@@ -3268,7 +3274,7 @@ async function Fd(t, e) {
3268
3274
  let i;
3269
3275
  switch (t?.layerType ?? "") {
3270
3276
  case "ArcGISFeatureLayer":
3271
- i = await yi(t, e);
3277
+ i = await gi(t, e);
3272
3278
  break;
3273
3279
  case "ArcGISImageServiceLayer":
3274
3280
  i = await Ra(t, e);
@@ -3291,7 +3297,7 @@ async function bd(t) {
3291
3297
  o = await Zs(t);
3292
3298
  else {
3293
3299
  const u = z(e), c = ge(u);
3294
- c !== void 0 ? r && i !== void 0 && !c.isTable ? (c.outFields = ["*"], o = await i.whenLayerView(c)) : o = e : a?.iLayer && a.iLayer?.layerType === "ArcGISFeatureLayer" && (o = await yi(a.iLayer, n));
3300
+ c !== void 0 ? r && i !== void 0 && !c.isTable ? (c.outFields = ["*"], o = await i.whenLayerView(c)) : o = e : a?.iLayer && a.iLayer?.layerType === "ArcGISFeatureLayer" && (o = await gi(a.iLayer, n));
3295
3301
  }
3296
3302
  return o;
3297
3303
  }
@@ -3369,7 +3375,7 @@ function ao(t) {
3369
3375
  function Nd(t) {
3370
3376
  return t.filter((e) => St(e)).map((e) => e.name);
3371
3377
  }
3372
- function ai(t, e) {
3378
+ function ri(t, e) {
3373
3379
  let i;
3374
3380
  if (e) {
3375
3381
  const r = z(t).getFieldDomain(e);
@@ -3377,13 +3383,13 @@ function ai(t, e) {
3377
3383
  }
3378
3384
  return i;
3379
3385
  }
3380
- function ri(t, e) {
3386
+ function ni(t, e) {
3381
3387
  let i = e?.getName(t?.toString()) ?? e?.getName(t) ?? e?.getName(Number(t));
3382
3388
  return i === null && (i = void 0), i;
3383
3389
  }
3384
- function Ii(t) {
3390
+ function Ei(t) {
3385
3391
  const { queryObject: e, fieldName: i, fieldValue: a } = t;
3386
- return ie(e) ? void 0 : ri(a, ai(e, i));
3392
+ return ie(e) ? void 0 : ni(a, ri(e, i));
3387
3393
  }
3388
3394
  async function ka(t) {
3389
3395
  let e = [];
@@ -3460,7 +3466,7 @@ function _a(t) {
3460
3466
  defaultGeometry: v ?? d,
3461
3467
  ignoreViewExtent: r
3462
3468
  }), 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) => {
3463
- fi(O) && !("statisticParameters" in O) && (O.statisticParameters = {
3469
+ mi(O) && !("statisticParameters" in O) && (O.statisticParameters = {
3464
3470
  value: W.defaultStatParameterValue
3465
3471
  });
3466
3472
  }), P;
@@ -3474,7 +3480,7 @@ async function lo(t, e) {
3474
3480
  let a = [];
3475
3481
  const r = t.series;
3476
3482
  let n = e;
3477
- if (t.iLayer?.layerType === "ArcGISFeatureLayer" && (n = await yi(t.iLayer)), n !== void 0) {
3483
+ if (t.iLayer?.layerType === "ArcGISFeatureLayer" && (n = await gi(t.iLayer)), n !== void 0) {
3478
3484
  const s = r[0].x ?? "", o = r.map((f) => "y" in f ? f.y : "").flat(), u = te(t.series[0].query?.where), c = Dr(t), l = t?.series.map((f) => {
3479
3485
  const m = f.query?.outStatistics?.map((y) => y.onStatisticField) ?? [];
3480
3486
  return m?.length > 0 ? m : "";
@@ -3517,7 +3523,7 @@ const wd = {
3517
3523
  getServerRestInfo: Qa
3518
3524
  };
3519
3525
  async function kt(t, e) {
3520
- await t.load({ signal: e }), (na(t) || sa(t)) && await t.generateRasterInfo(t.rasterFunction, {
3526
+ await t.load({ signal: e }), (sa(t) || oa(t)) && await t.generateRasterInfo(t.rasterFunction, {
3521
3527
  signal: e
3522
3528
  });
3523
3529
  }
@@ -3557,14 +3563,14 @@ function yo(t) {
3557
3563
  }
3558
3564
  function Ld(t) {
3559
3565
  let e;
3560
- return t !== void 0 && (e = new Zi({
3566
+ return t !== void 0 && (e = new Xi({
3561
3567
  start: new Date(t[0]),
3562
3568
  end: new Date(t[1])
3563
3569
  })), e;
3564
3570
  }
3565
3571
  function dt(t) {
3566
3572
  let e;
3567
- return t !== void 0 && (e = Yi.fromJSON(t)), e;
3573
+ return t !== void 0 && (e = Zi.fromJSON(t)), e;
3568
3574
  }
3569
3575
  function Ha(t) {
3570
3576
  return t === void 0 ? ["*"] : Array.from(new Set(t));
@@ -3585,7 +3591,7 @@ function Qt(t) {
3585
3591
  ).map((N) => Br.fromJSON(N));
3586
3592
  }
3587
3593
  const x = dt(l);
3588
- return x !== void 0 && (S.geometry = x, a?.spatialRelationship && (S.spatialRelationship = a.spatialRelationship), da(p) && (d !== void 0 && (S.distance = d), f !== void 0 && (S.units = f))), m && (S.timeExtent = new Zi({
3594
+ return x !== void 0 && (S.geometry = x, a?.spatialRelationship && (S.spatialRelationship = a.spatialRelationship), fa(p) && (d !== void 0 && (S.distance = d), f !== void 0 && (S.units = f))), m && (S.timeExtent = new Xi({
3589
3595
  start: m?.[0],
3590
3596
  end: m?.[1]
3591
3597
  })), fo(S) && (S.cacheHint = !0), S;
@@ -3612,7 +3618,7 @@ function po(t) {
3612
3618
  view: o,
3613
3619
  dateField: r,
3614
3620
  useViewTimeZone: u ?? !1
3615
- }), b = Da(r);
3621
+ }), b = Oa(r);
3616
3622
  if (S.lowerBoundaryAlias = b.lowerBoundaryAlias, S.upperBoundaryAlias = b.upperBoundaryAlias, S.binParameters = {
3617
3623
  type: "date",
3618
3624
  field: r,
@@ -3630,7 +3636,7 @@ function po(t) {
3630
3636
  }
3631
3637
  return S;
3632
3638
  }
3633
- function gi(t) {
3639
+ function pi(t) {
3634
3640
  const {
3635
3641
  field: e,
3636
3642
  fieldType: i,
@@ -3669,7 +3675,7 @@ function gi(t) {
3669
3675
  break;
3670
3676
  }
3671
3677
  if (l) {
3672
- const m = o ? ` ${wa({
3678
+ const m = o ? ` ${La({
3673
3679
  dataTimeZone: n,
3674
3680
  runsOnClientQueryEngine: s,
3675
3681
  outTimeZone: r
@@ -3688,7 +3694,7 @@ function ho(t) {
3688
3694
  let n;
3689
3695
  return e && a.length && i === "DAY" ? n = `CASE WHEN (EXTRACT(MONTH FROM ${a})=2 AND EXTRACT(DAY FROM ${a})=29) THEN 0 ELSE EXTRACT (${i} FROM ${a}${r}) END` : n = `EXTRACT (${i} FROM ${a}${r})`, n;
3690
3696
  }
3691
- function Ei(t) {
3697
+ function qi(t) {
3692
3698
  const {
3693
3699
  temporalBinning: e,
3694
3700
  xOrY: i,
@@ -3700,7 +3706,7 @@ function Ei(t) {
3700
3706
  includeLeapDay: u
3701
3707
  } = t, { unit: c } = e ?? {};
3702
3708
  let l, d, f, m;
3703
- return a === U.Date || a === U.DateOnly || a === U.TimestampOffset ? { expression: d, start: f, end: m } = gi({
3709
+ return a === U.Date || a === U.DateOnly || a === U.TimestampOffset ? { expression: d, start: f, end: m } = pi({
3704
3710
  field: i,
3705
3711
  fieldType: a,
3706
3712
  unit: c,
@@ -3737,7 +3743,7 @@ function So(t) {
3737
3743
  type: "fixed-interval",
3738
3744
  interval: 1
3739
3745
  }, p.lowerBoundaryAlias = W.heatChartLowerBoundaryAlias, p.upperBoundaryAlias = W.heatChartUpperBoundaryAlias, o !== void 0 && (p.binParameters.firstDayOfWeek = o);
3740
- const g = Ei({
3746
+ const g = qi({
3741
3747
  temporalBinning: n,
3742
3748
  xOrY: a,
3743
3749
  xOrYFieldType: m,
@@ -3745,7 +3751,7 @@ function So(t) {
3745
3751
  includeLeapDay: u
3746
3752
  }), { field: S, expression: b, start: v, end: x } = g;
3747
3753
  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)));
3748
- const B = Ei({
3754
+ const B = qi({
3749
3755
  temporalBinning: s,
3750
3756
  xOrY: r,
3751
3757
  xOrYFieldType: y,
@@ -3765,7 +3771,7 @@ function Fo(t) {
3765
3771
  queryObject: e,
3766
3772
  queryConfig: i,
3767
3773
  useViewTimeZone: !1
3768
- }), l = Pa(s, o);
3774
+ }), l = Ma(s, o);
3769
3775
  return c.lowerBoundaryAlias = l.lowerBoundaryAlias, c.upperBoundaryAlias = l.upperBoundaryAlias, c.binParameters = {
3770
3776
  type: "fixed-interval",
3771
3777
  field: s,
@@ -3780,7 +3786,7 @@ function Fo(t) {
3780
3786
  }
3781
3787
  }, c;
3782
3788
  }
3783
- function pi(t) {
3789
+ function hi(t) {
3784
3790
  const { queryObject: e, queryConfig: i, maxRecordCountFactor: a } = t, { groupByFieldsForStatistics: r, orderByFields: n, gdbVersion: s, start: o, num: u, outFields: c } = i ?? {}, l = Qt({
3785
3791
  queryType: "Query",
3786
3792
  queryObject: e,
@@ -3967,27 +3973,27 @@ async function Po(t) {
3967
3973
  abortSignal: u
3968
3974
  });
3969
3975
  let S;
3970
- if (p !== void 0 && (S = new Ti({
3976
+ if (p !== void 0 && (S = new Ai({
3971
3977
  geometry: p.extent
3972
- }), p.extent !== void 0 && da(f))) {
3978
+ }), p.extent !== void 0 && fa(f))) {
3973
3979
  const { distance: A, units: I } = i;
3974
3980
  A !== void 0 && (S.distance = A), I !== void 0 && (S.units = I);
3975
3981
  }
3976
3982
  if (i.timeExtent) {
3977
3983
  const A = { start: i.timeExtent[0], end: i.timeExtent[1] };
3978
- S === void 0 ? S = new Ti({ timeExtent: A }) : S.timeExtent = A;
3984
+ S === void 0 ? S = new Ai({ timeExtent: A }) : S.timeExtent = A;
3979
3985
  }
3980
3986
  g.filter = S;
3981
3987
  let b;
3982
3988
  g.outStatisticTypes = { exclude: ["median"] };
3983
3989
  try {
3984
- b = await Ai(g);
3990
+ b = await wi(g);
3985
3991
  } catch (A) {
3986
3992
  throw new re(le.QueryFeaturesError, o.errors.queryError, A);
3987
3993
  }
3988
3994
  g.outStatisticTypes = { include: ["median"] };
3989
3995
  try {
3990
- const A = await Ai(g);
3996
+ const A = await wi(g);
3991
3997
  A?.median && (b.median = A.median);
3992
3998
  } catch {
3993
3999
  }
@@ -4081,7 +4087,7 @@ async function Mo(t) {
4081
4087
  })) }
4082
4088
  };
4083
4089
  }
4084
- const qi = {
4090
+ const Vi = {
4085
4091
  Count: "count",
4086
4092
  Start: "minValue",
4087
4093
  End: "maxValue"
@@ -4094,7 +4100,7 @@ function Md(t) {
4094
4100
  return _(t.series) !== h.BoxPlotSeries ? C.xAxisField : t.series[0].x;
4095
4101
  }
4096
4102
  function Dd(t) {
4097
- const e = ui(t);
4103
+ const e = ci(t);
4098
4104
  return e === Te.Stacked || e === Te.Stacked100;
4099
4105
  }
4100
4106
  function Od(t, e) {
@@ -4117,7 +4123,7 @@ function Oo(t) {
4117
4123
  return We(t) && we(t?.axes?.[0]?.valueFormat) && we(t?.axes?.[1]?.valueFormat);
4118
4124
  }
4119
4125
  const Io = [
4120
- ...ra,
4126
+ ...na,
4121
4127
  "ar-u-nu-latn",
4122
4128
  "en-AU",
4123
4129
  "en-GB",
@@ -4161,7 +4167,7 @@ function Rd(t, e) {
4161
4167
  return Number.parseFloat(r);
4162
4168
  }
4163
4169
  function Eo(t) {
4164
- const e = Array.from(ra);
4170
+ const e = Array.from(na);
4165
4171
  return Io.includes(t) && !e.includes(t);
4166
4172
  }
4167
4173
  function Ua(t) {
@@ -4353,11 +4359,11 @@ function $d(t) {
4353
4359
  function ot(t, e) {
4354
4360
  return `${e}_${t}`;
4355
4361
  }
4356
- function ni(t) {
4362
+ function si(t) {
4357
4363
  const { value: e, mean: i, stdDev: a } = t;
4358
4364
  return (e - i) / a;
4359
4365
  }
4360
- function hi(t) {
4366
+ function Si(t) {
4361
4367
  const { dataItem: e, chartSubType: i, y: a, splitByValue: r, meanPerField: n, stdDevPerField: s } = t, o = e;
4362
4368
  let u = {
4363
4369
  chartSubType: i,
@@ -4388,7 +4394,7 @@ function hi(t) {
4388
4394
  standardizeValues: !0
4389
4395
  };
4390
4396
  let S = K(u);
4391
- if (o[S] = ni({ mean: d, stdDev: f, value: g }), m === E.Min || m === E.Max) {
4397
+ if (o[S] = si({ mean: d, stdDev: f, value: g }), m === E.Min || m === E.Max) {
4392
4398
  u = {
4393
4399
  ...u,
4394
4400
  key: m,
@@ -4400,7 +4406,7 @@ function hi(t) {
4400
4406
  splitByValue: r
4401
4407
  };
4402
4408
  const b = K(u);
4403
- g = Number(e[b]), Number.isFinite(g) && (o[S] = ni({
4409
+ g = Number(e[b]), Number.isFinite(g) && (o[S] = si({
4404
4410
  mean: d,
4405
4411
  stdDev: f,
4406
4412
  value: g
@@ -4415,7 +4421,7 @@ function Vo(t) {
4415
4421
  return i.forEach((o) => {
4416
4422
  let u = {};
4417
4423
  Object.keys(r).forEach((c) => {
4418
- c.startsWith(o) ? u[c.replace(`${o}_`, "")] = r[c] : c.includes(C.rendererSymbolField) && (u[c] = r[c]), u[C.boxPlot.boxPlotCategory] = o, a && (u = hi({
4424
+ c.startsWith(o) ? u[c.replace(`${o}_`, "")] = r[c] : c.includes(C.rendererSymbolField) && (u[c] = r[c]), u[C.boxPlot.boxPlotCategory] = o, a && (u = Si({
4419
4425
  dataItem: u,
4420
4426
  chartSubType: F.BoxPlotMultiFields
4421
4427
  }));
@@ -4443,7 +4449,7 @@ function $o(t) {
4443
4449
  };
4444
4450
  Object.entries(u).forEach(([f, m]) => {
4445
4451
  f.startsWith(`${l}_`) ? d[`${c}_${f.replace(`${l}_`, "")}`] = m : f.includes(C.rendererSymbolField) ? d[`${f}_${c}`] = m : f === C.boxPlot.boxPlotMeanLineMarkerId && (d[f] = u[f]);
4446
- }), r && (d = hi({
4452
+ }), r && (d = Si({
4447
4453
  dataItem: d,
4448
4454
  chartSubType: F.BoxPlotMultiFieldsAndSplitBy,
4449
4455
  splitByValue: c,
@@ -4460,7 +4466,7 @@ function ko(t) {
4460
4466
  const { data: e, yList: i, calculateZScore: a = !1, meanAndStdDevPerField: r } = t, n = e;
4461
4467
  return a && n.forEach((s) => {
4462
4468
  i.forEach((o) => {
4463
- hi({
4469
+ Si({
4464
4470
  dataItem: s,
4465
4471
  chartSubType: F.BoxPlotMultiFieldsAndCategory,
4466
4472
  y: o,
@@ -4530,7 +4536,7 @@ function jo(t, e) {
4530
4536
  const r = t[e[E.IQR]], n = t[e[E.FirstQuartile]], s = t[e[E.ThirdQuartile]];
4531
4537
  return Number.isFinite(r) && Number.isFinite(n) && Number.isFinite(s) && (i = n - r * 1.5, a = s + r * 1.5), { outlierMinThreshold: i, outlierMaxThreshold: a };
4532
4538
  }
4533
- function Vi(t) {
4539
+ function Ri(t) {
4534
4540
  const { yField: e, xField: i, xValue: a, splitByField: r, splitByValue: n, outlierMaxThreshold: s, outlierMinThreshold: o, target: u } = t;
4535
4541
  let c;
4536
4542
  if (i !== void 0 && a !== void 0) {
@@ -4556,10 +4562,10 @@ function Ya(t) {
4556
4562
  outlierMinThreshold: g,
4557
4563
  outlierMaxThreshold: S
4558
4564
  };
4559
- (r === F.BoxPlotMonoFieldAndCategory || r === F.BoxPlotMultiFieldsAndCategory || r === F.BoxPlotMonoFieldAndCategoryAndSplitBy) && a !== void 0 && a in y && (b.xField = a, b.xValue = di({
4565
+ (r === F.BoxPlotMonoFieldAndCategory || r === F.BoxPlotMultiFieldsAndCategory || r === F.BoxPlotMonoFieldAndCategoryAndSplitBy) && a !== void 0 && a in y && (b.xField = a, b.xValue = fi({
4560
4566
  value: y[a],
4561
4567
  dataContext: y
4562
- })), (r === F.BoxPlotMonoFieldAndSplitBy || r === F.BoxPlotMultiFieldsAndSplitBy || r === F.BoxPlotMonoFieldAndCategoryAndSplitBy) && n !== void 0 && n in y && (b.splitByField = n, b.splitByValue = y[n]), d.push(Vi({ ...b, target: "outliers" })), f.push(Vi({ ...b, target: "alternativeData" })), (m % l === 0 || p === e.length - 1) && (u.push(Y(d, "OR")), c.push(Y(f, "OR")), d = [], f = []);
4568
+ })), (r === F.BoxPlotMonoFieldAndSplitBy || r === F.BoxPlotMultiFieldsAndSplitBy || r === F.BoxPlotMonoFieldAndCategoryAndSplitBy) && n !== void 0 && n in y && (b.splitByField = n, b.splitByValue = y[n]), d.push(Ri({ ...b, target: "outliers" })), f.push(Ri({ ...b, target: "alternativeData" })), (m % l === 0 || p === e.length - 1) && (u.push(Y(d, "OR")), c.push(Y(f, "OR")), d = [], f = []);
4563
4569
  }
4564
4570
  m += 1;
4565
4571
  }), { outliersFilterBatches: u, dataWithoutOutliersFilterBatches: c };
@@ -4677,7 +4683,7 @@ async function zo(t) {
4677
4683
  splitByField: f,
4678
4684
  meanAndStdDevPerField: n
4679
4685
  });
4680
- V !== void 0 && $ !== void 0 && (T[O] = ni({
4686
+ V !== void 0 && $ !== void 0 && (T[O] = si({
4681
4687
  value: A,
4682
4688
  mean: V,
4683
4689
  stdDev: $
@@ -4702,7 +4708,7 @@ async function Wo(t) {
4702
4708
  abortSignal: c
4703
4709
  } = t;
4704
4710
  let l = [];
4705
- const { series: d, showMean: f } = n, m = Ci({ showMean: f, seriesConfig: d }), y = k(d), p = Re(n), { x: g } = p, S = te(p.query?.where), b = [];
4711
+ 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 = [];
4706
4712
  for (let x = 0; x < m.length; x += 1) {
4707
4713
  const B = m[x], { dataWithoutOutliersFilterBatches: N } = Ya({
4708
4714
  data: e,
@@ -4750,7 +4756,7 @@ async function Go(t) {
4750
4756
  let o;
4751
4757
  const { series: u, showMean: c } = a, l = k(u);
4752
4758
  if (l === F.BoxPlotMultiFieldsAndCategory || l === F.BoxPlotMultiFieldsAndSplitBy) {
4753
- const d = Ci({ showMean: c, seriesConfig: u }), f = {
4759
+ const d = vi({ showMean: c, seriesConfig: u }), f = {
4754
4760
  ...i
4755
4761
  };
4756
4762
  delete f.outStatistics, delete f.groupByFieldsForStatistics, delete f.orderByFields;
@@ -4794,7 +4800,7 @@ function Uo(t) {
4794
4800
  });
4795
4801
  }
4796
4802
  function Za(t) {
4797
- const { chartConfig: e, data: i, calculateZScore: a = !1, meanAndStdDevPerField: r } = t, { series: n, showMean: s } = e, o = Re(e), u = k(e.series), { x: c } = o, l = Ci({ showMean: s, seriesConfig: n });
4803
+ const { chartConfig: e, data: i, calculateZScore: a = !1, meanAndStdDevPerField: r } = t, { series: n, showMean: s } = e, o = Re(e), u = k(e.series), { x: c } = o, l = vi({ showMean: s, seriesConfig: n });
4798
4804
  let d = i;
4799
4805
  if (i?.[0] !== void 0) {
4800
4806
  const f = te(o.query?.where);
@@ -4914,7 +4920,7 @@ function Zo(t, e, i) {
4914
4920
  } else i === ye.Descending ? typeof t == "string" && typeof e == "string" ? a = e.localeCompare(t, void 0, { numeric: !0 }) : a = (Number(e) || 0) - (Number(t) || 0) : i === ye.Ascending && (typeof t == "string" && typeof e == "string" ? a = t.localeCompare(e, void 0, { numeric: !0 }) : a = (Number(t) || 0) - (Number(e) || 0));
4915
4921
  return a;
4916
4922
  }
4917
- function Ri(t) {
4923
+ function $i(t) {
4918
4924
  const { chartConfig: e, field: i, chartData: a } = t, r = Mn({ chartConfig: e, field: i }), n = Array.from(
4919
4925
  new Set(a.map((s) => i in s ? s[i] : void 0))
4920
4926
  );
@@ -4923,23 +4929,23 @@ function Ri(t) {
4923
4929
  function Xa(t) {
4924
4930
  const { chartConfig: e, chartData: i } = t;
4925
4931
  return {
4926
- xAxisData: Ri({
4932
+ xAxisData: $i({
4927
4933
  chartConfig: e,
4928
4934
  field: Q.xField,
4929
4935
  chartData: i
4930
4936
  }),
4931
- yAxisData: Ri({
4937
+ yAxisData: $i({
4932
4938
  chartConfig: e,
4933
4939
  field: Q.yField,
4934
4940
  chartData: i
4935
4941
  })
4936
4942
  };
4937
4943
  }
4938
- function $i(t) {
4944
+ function ki(t) {
4939
4945
  const { orderBy: e, axisFormatOptions: i } = t;
4940
4946
  return e !== void 0 && i !== void 0 && (!Array.isArray(e) || i?.type === h.CategoryAxisFormat);
4941
4947
  }
4942
- function ki(t, e, i) {
4948
+ function Qi(t, e, i) {
4943
4949
  let a = 0;
4944
4950
  if (Array.isArray(i)) {
4945
4951
  const r = t?.toString() ?? "", n = e?.toString() ?? "";
@@ -4951,21 +4957,21 @@ function ki(t, e, i) {
4951
4957
  function Xo(t) {
4952
4958
  const { arrayToSort: e, chartConfig: i, dataOrderParameters: a } = t, r = a ?? Pt(i);
4953
4959
  let n, s, o = !1, u = !1, c = !1;
4954
- r && e.length > 1 && ([n, s] = r, o = n && n.sortingField.length > 0 && $i({
4960
+ r && e.length > 1 && ([n, s] = r, o = n && n.sortingField.length > 0 && ki({
4955
4961
  orderBy: n.orderBy,
4956
4962
  axisFormatOptions: i.axes?.[0]?.valueFormat
4957
- }), u = s && s.sortingField.length > 0 && $i({
4963
+ }), u = s && s.sortingField.length > 0 && ki({
4958
4964
  orderBy: s.orderBy,
4959
4965
  axisFormatOptions: i.axes?.[1]?.valueFormat
4960
4966
  }), c = o || u), c && e.sort((l, d) => {
4961
4967
  let f = 0;
4962
4968
  if (o && n?.sortingField) {
4963
4969
  const m = n.orderBy;
4964
- f = ki(l[n.sortingField], d[n.sortingField], m);
4970
+ f = Qi(l[n.sortingField], d[n.sortingField], m);
4965
4971
  }
4966
4972
  if (f === 0 && u && s?.sortingField) {
4967
4973
  const m = s.orderBy;
4968
- f = ki(l[s.sortingField], d[s.sortingField], m);
4974
+ f = Qi(l[s.sortingField], d[s.sortingField], m);
4969
4975
  }
4970
4976
  return f;
4971
4977
  });
@@ -5017,7 +5023,7 @@ function Ot(t) {
5017
5023
  }
5018
5024
  }
5019
5025
  function kd(t) {
5020
- const { alteredConfig: e, dataInfo: i, fieldList: a, options: r, queryObject: n } = t, s = xi(i.data);
5026
+ const { alteredConfig: e, dataInfo: i, fieldList: a, options: r, queryObject: n } = t, s = Ci(i.data);
5021
5027
  if (s && Ot({
5022
5028
  arrayToSort: s,
5023
5029
  chartConfig: e,
@@ -5086,13 +5092,13 @@ async function el(t) {
5086
5092
  let f = [{ [u]: null }];
5087
5093
  if (l)
5088
5094
  f = d.map((m) => {
5089
- Fi(m.attributes, u);
5090
- const y = Mi(m.attributes[u], c);
5095
+ bi(m.attributes, u);
5096
+ const y = Di(m.attributes[u], c);
5091
5097
  return { ...m.attributes, [u]: y };
5092
5098
  });
5093
5099
  else if (d.length > 0) {
5094
5100
  let m = d[0].attributes[u] ?? d[0].attributes[u.toUpperCase()] ?? d[0].attributes[u.toLowerCase()];
5095
- m = Mi(m, c), f = [{ [u]: m }];
5101
+ m = Di(m, c), f = [{ [u]: m }];
5096
5102
  }
5097
5103
  return f;
5098
5104
  }
@@ -5118,7 +5124,7 @@ async function tl(t) {
5118
5124
  Number.isFinite(y) && (p = {
5119
5125
  ...r,
5120
5126
  maxGaugeByFeaturesLimit: y
5121
- }), La({ chartConfig: i, chartLimits: p, uniqueQuery: a });
5127
+ }), Pa({ chartConfig: i, chartLimits: p, uniqueQuery: a });
5122
5128
  }
5123
5129
  if (Number.isNaN(f) || f) {
5124
5130
  const y = await el({
@@ -5247,7 +5253,7 @@ function rl(t) {
5247
5253
  const { dataContext: e, xAxisField: i, yAxisField: a, options: r } = t;
5248
5254
  let n = "";
5249
5255
  const { dataContextXMinField: s, dataContextXMaxField: o, dataContextYMinField: u, dataContextYMaxField: c } = C.scatterplotAggregationFields;
5250
- if (ya({ dataContext: e, chartLimits: r?.chartLimits })) {
5256
+ if (ga({ dataContext: e, chartLimits: r?.chartLimits })) {
5251
5257
  const { [s]: l, [o]: d } = e, f = i !== a ? e[u] : l, m = i !== a ? e[c] : d;
5252
5258
  if (!Number.isNaN(l) && !Number.isNaN(d) && !Number.isNaN(f) && !Number.isNaN(m)) {
5253
5259
  const y = [];
@@ -5260,7 +5266,7 @@ function rl(t) {
5260
5266
  ]);
5261
5267
  return n;
5262
5268
  }
5263
- function Qi(t) {
5269
+ function _i(t) {
5264
5270
  const { fieldsIndex: e, fieldName: i, inputDate: a } = t, r = e.get(i), n = e.getTimeZone(i);
5265
5271
  return zr(new Date(a), { type: "date" }, { type: r, timeZone: n });
5266
5272
  }
@@ -5268,12 +5274,12 @@ function Ja(t) {
5268
5274
  const { xAxisField: e, dataContext: i, queryObject: a } = t;
5269
5275
  let r = "";
5270
5276
  const n = i[C.originalServerBinningRange] ?? i[C.dateBinningRange];
5271
- if (li(n) && n.length === 2) {
5277
+ if (ui(n) && n.length === 2) {
5272
5278
  let [s, o] = n, u = !0;
5273
5279
  const c = Ee(a);
5274
5280
  if (c) {
5275
5281
  const l = z(a), { fieldsIndex: d } = l;
5276
- s = Qi({ fieldsIndex: d, fieldName: e, inputDate: s }), o = Qi({ fieldsIndex: d, fieldName: e, inputDate: o });
5282
+ s = _i({ fieldsIndex: d, fieldName: e, inputDate: s }), o = _i({ fieldsIndex: d, fieldName: e, inputDate: o });
5277
5283
  } else
5278
5284
  typeof s == "number" && typeof o == "number" ? Number.isFinite(s) && Number.isFinite(o) ? (s = nt(s), o = nt(o)) : u = !1 : typeof s == "string" && typeof o == "string" && (s = new Date(s).toISOString(), o = new Date(o).toISOString());
5279
5285
  if (u) {
@@ -5295,7 +5301,7 @@ function er(t) {
5295
5301
  const { xAxisField: e, yAxisField: i, splitBy: a, dataContext: r, xAxisFieldType: n, chartConfig: s } = t;
5296
5302
  let o = "";
5297
5303
  if (e !== void 0 && e !== C.boxPlot.boxPlotCategory) {
5298
- let d = di({
5304
+ let d = fi({
5299
5305
  value: r[e],
5300
5306
  dataContext: r
5301
5307
  });
@@ -5332,7 +5338,7 @@ function nl(t) {
5332
5338
  if (C.dateBinningRange in a)
5333
5339
  o = Ja({ xAxisField: e, dataContext: a, queryObject: s });
5334
5340
  else if (k(n.series) !== F.BarAndLineFromFields) {
5335
- let l = di({
5341
+ let l = fi({
5336
5342
  value: a[e],
5337
5343
  dataContext: a
5338
5344
  });
@@ -5354,10 +5360,10 @@ function sl(t) {
5354
5360
  escape: !0
5355
5361
  });
5356
5362
  }
5357
- function _i(t) {
5363
+ function ji(t) {
5358
5364
  const { field: e, fieldType: i, fieldValue: a, unit: r, outTimeZone: n, dataTimeZone: s, runsOnClientQueryEngine: o } = t;
5359
5365
  let u;
5360
- const { expression: c } = gi({
5366
+ const { expression: c } = pi({
5361
5367
  field: e,
5362
5368
  fieldType: i,
5363
5369
  unit: r,
@@ -5386,7 +5392,7 @@ function ol(t) {
5386
5392
  where: qe(u.x, m ?? f),
5387
5393
  normalize: !1,
5388
5394
  escape: !0
5389
- }) : l = _i({
5395
+ }) : l = ji({
5390
5396
  field: u.x,
5391
5397
  fieldType: e,
5392
5398
  fieldValue: f,
@@ -5398,7 +5404,7 @@ function ol(t) {
5398
5404
  where: qe(u.y, p ?? y),
5399
5405
  normalize: !1,
5400
5406
  escape: !0
5401
- }) : d = _i({
5407
+ }) : d = ji({
5402
5408
  field: u.y,
5403
5409
  fieldType: i,
5404
5410
  fieldValue: y,
@@ -5517,7 +5523,7 @@ async function ul(t) {
5517
5523
  T.push(`${I} IN (${N.join(",")})`);
5518
5524
  }
5519
5525
  const L = T.join(" OR "), A = { ...i };
5520
- A.where = Y([A.where, L]), g = await Si({
5526
+ A.where = Y([A.where, L]), g = await Fi({
5521
5527
  queryObject: e,
5522
5528
  chartConfig: a,
5523
5529
  queryConfig: A,
@@ -5614,7 +5620,7 @@ async function cl(t) {
5614
5620
  ), A = Y(L, "OR");
5615
5621
  T.where = Y([T.where, A]);
5616
5622
  }
5617
- x = await bi({
5623
+ x = await xi({
5618
5624
  queryObject: e,
5619
5625
  queryConfig: T,
5620
5626
  chartConfig: a,
@@ -5660,7 +5666,7 @@ async function cl(t) {
5660
5666
  const { r2: T, trendLinePoints: w } = C.scatterplotSeries;
5661
5667
  x.data = { dataItems: [], r2: T, trendLinePoints: w, count: 0 }, x.count = 0;
5662
5668
  } else {
5663
- const { r2: T, trendLinePoints: w } = Oa({
5669
+ const { r2: T, trendLinePoints: w } = Ia({
5664
5670
  data: B,
5665
5671
  chartConfig: a
5666
5672
  });
@@ -5674,7 +5680,7 @@ async function cl(t) {
5674
5680
  chartConfig: a
5675
5681
  }), x;
5676
5682
  }
5677
- async function Si(t) {
5683
+ async function Fi(t) {
5678
5684
  const {
5679
5685
  queryObject: e,
5680
5686
  chartConfig: i,
@@ -5691,7 +5697,7 @@ async function Si(t) {
5691
5697
  view: m
5692
5698
  } = t;
5693
5699
  let y = { valid: !0 };
5694
- const p = st(i), g = await si({
5700
+ const p = st(i), g = await oi({
5695
5701
  queryObject: e,
5696
5702
  queryConfig: a,
5697
5703
  fetchFullBoxPlotData: !p,
@@ -5712,7 +5718,7 @@ async function Si(t) {
5712
5718
  else {
5713
5719
  const S = { dataItems: [] };
5714
5720
  S.meanLines = g.data.dataItems;
5715
- const b = Do(i), v = (await si({
5721
+ const b = Do(i), v = (await oi({
5716
5722
  queryObject: e,
5717
5723
  queryConfig: a,
5718
5724
  fetchFullBoxPlotData: !0,
@@ -5794,7 +5800,7 @@ async function dl(t) {
5794
5800
  });
5795
5801
  break;
5796
5802
  case h.BoxPlotSeries:
5797
- de(i) && (w = await Si({
5803
+ de(i) && (w = await Fi({
5798
5804
  queryObject: e,
5799
5805
  // @REV: temporary
5800
5806
  chartConfig: i,
@@ -5840,7 +5846,7 @@ async function dl(t) {
5840
5846
  setTimeBinningInfoWhenNotProvided: s,
5841
5847
  seriesConfig: N[0],
5842
5848
  queryObject: e
5843
- }) ? w = await bi(L) : w = await si(L);
5849
+ }) ? w = await xi(L) : w = await oi(L);
5844
5850
  break;
5845
5851
  }
5846
5852
  case h.ScatterSeries:
@@ -6011,7 +6017,7 @@ const tr = [
6011
6017
  F.BoxPlotMonoFieldAndCategory,
6012
6018
  F.BoxPlotMultiFieldsAndCategory,
6013
6019
  F.BoxPlotMonoFieldAndCategoryAndSplitBy
6014
- ], gl = 8e3, ji = [
6020
+ ], gl = 8e3, Hi = [
6015
6021
  {
6016
6022
  unit: R.Second,
6017
6023
  threshold: 6e4,
@@ -6169,7 +6175,7 @@ function bl(t) {
6169
6175
  const { unit: o } = a, u = a.size ?? 1, c = i[0], { x: l } = c;
6170
6176
  let d, f;
6171
6177
  if (be(c) && (f = c.temporalBinning?.nullPolicy, d = c.temporalBinning?.timeAggregationType), u > 1 || o === R.Week || o === R.Month || o === R.Year) {
6172
- const { query: m } = i[0], y = ue(i), { statisticType: p } = m?.outStatistics?.[0] ?? Ui;
6178
+ const { query: m } = i[0], y = ue(i), { statisticType: p } = m?.outStatistics?.[0] ?? Yi;
6173
6179
  let g = !1, S = d === ee.End ? e.length - 1 : 0;
6174
6180
  const b = {
6175
6181
  binFirstOrLastIndex: S,
@@ -6437,7 +6443,7 @@ function* Al(t) {
6437
6443
  }
6438
6444
  }
6439
6445
  async function wl(t) {
6440
- const { queryObject: e, data: i, seriesConfig: a, queryConfig: r, errorStrings: n, abortSignal: s } = t, o = i, { statisticType: u } = a[0].query?.outStatistics?.[0] ?? Ui;
6446
+ const { queryObject: e, data: i, seriesConfig: a, queryConfig: r, errorStrings: n, abortSignal: s } = t, o = i, { statisticType: u } = a[0].query?.outStatistics?.[0] ?? Yi;
6441
6447
  if (u === D.ContinuousPercentile && o.length > 0) {
6442
6448
  const c = Al({
6443
6449
  queryObject: e,
@@ -6463,7 +6469,7 @@ async function wl(t) {
6463
6469
  }
6464
6470
  return o;
6465
6471
  }
6466
- function Hi(t) {
6472
+ function zi(t) {
6467
6473
  const { dataItem: e, nullPolicy: i, statField: a } = t;
6468
6474
  if (a) {
6469
6475
  const r = e[a];
@@ -6482,7 +6488,7 @@ function Hi(t) {
6482
6488
  }
6483
6489
  }
6484
6490
  function Ll(t) {
6485
- const { chartConfig: e, queryResults: i, mapToStatField: a, splitByField: r, x: n, y: s, nullPolicy: o, queryObject: u } = t, c = Da(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;
6491
+ const { chartConfig: e, queryResults: i, mapToStatField: a, splitByField: r, x: n, y: s, nullPolicy: o, queryObject: u } = t, c = Oa(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;
6486
6492
  return i.forEach((g, S) => {
6487
6493
  if (!(y && (S === 0 && p === ee.End || S === i.length - 1 && p === ee.Start))) {
6488
6494
  const { attributes: v, stackedAttributes: x } = g;
@@ -6506,9 +6512,9 @@ function Ll(t) {
6506
6512
  const V = O[r];
6507
6513
  if (V === null || typeof V == "string" || typeof V == "number") {
6508
6514
  const $ = a?.get(V);
6509
- $ !== void 0 && (A[$] = O[W.outStatistics?.outStatisticFieldName ?? ""], Hi({ dataItem: A, statField: $, nullPolicy: o }));
6515
+ $ !== void 0 && (A[$] = O[W.outStatistics?.outStatisticFieldName ?? ""], zi({ dataItem: A, statField: $, nullPolicy: o }));
6510
6516
  }
6511
- }) : typeof s == "string" && Hi({ dataItem: A, statField: s, nullPolicy: o });
6517
+ }) : typeof s == "string" && zi({ dataItem: A, statField: s, nullPolicy: o });
6512
6518
  const { featureExtent: I, featureExtentKey: P } = nr({
6513
6519
  feature: g,
6514
6520
  splitByField: r
@@ -6592,7 +6598,7 @@ function Dl(t) {
6592
6598
  let a, r, { dateMinTimestamp: n, dateMaxTimestamp: s } = e;
6593
6599
  if (n && s) {
6594
6600
  typeof n == "string" && (n = new Date(n).valueOf()), typeof s == "string" && (s = new Date(s).valueOf());
6595
- const o = Ml(i), u = (s - n) / o, c = ji.findIndex((S) => S.threshold > u), l = ji[c], { unitMs: d, preferredIntervalSize: f } = l;
6601
+ const o = Ml(i), u = (s - n) / o, c = Hi.findIndex((S) => S.threshold > u), l = Hi[c], { unitMs: d, preferredIntervalSize: f } = l;
6596
6602
  ({ unit: a } = l);
6597
6603
  const m = u / d, y = f.findIndex(
6598
6604
  (S) => S >= m
@@ -6728,7 +6734,7 @@ function Rl(t, e) {
6728
6734
  }
6729
6735
  return a;
6730
6736
  }
6731
- function Fi(t, e) {
6737
+ function bi(t, e) {
6732
6738
  [e].flat().forEach((i) => {
6733
6739
  i && (t[i] === void 0 && (t[i] = t[i.toUpperCase()] !== void 0 ? t[i.toUpperCase()] : t[i.toLowerCase()]), t[i] !== void 0 ? (i !== i.toUpperCase() && delete t[i.toUpperCase()], i !== i.toLowerCase() && delete t[i.toLowerCase()]) : delete t[i]);
6734
6740
  });
@@ -6739,7 +6745,7 @@ function $l(t, e) {
6739
6745
  new Set(
6740
6746
  e.flatMap((a) => a.query?.outStatistics?.map((r) => r.outStatisticFieldName))
6741
6747
  )
6742
- ), Fi(t, i);
6748
+ ), bi(t, i);
6743
6749
  }
6744
6750
  function kl(t, e) {
6745
6751
  let i = { ...t };
@@ -6829,7 +6835,7 @@ function Gl(t) {
6829
6835
  yAxisValueFormat: d
6830
6836
  } = t;
6831
6837
  let f, m;
6832
- c !== F.PieFromFields && (s && (typeof i == "string" || typeof i == "number") && (f = ri(i, s)), o && u === h.HeatSeries && typeof n == "string" && (typeof a == "string" || typeof a == "number") && (m = ri(a, o)), f !== void 0 && f !== i && (typeof f != "string" || !ne(l)) && (e[C.originalCategoryValue] = e[r], e[r] = f, e[C.xAxisDisplayField] = f), typeof n == "string" && !ne(d) && m !== void 0 && m !== a && (e[C.originalYCategoryValue] = e[n], e[n] = m));
6838
+ c !== F.PieFromFields && (s && (typeof i == "string" || typeof i == "number") && (f = ni(i, s)), o && u === h.HeatSeries && typeof n == "string" && (typeof a == "string" || typeof a == "number") && (m = ni(a, o)), f !== void 0 && f !== i && (typeof f != "string" || !ne(l)) && (e[C.originalCategoryValue] = e[r], e[r] = f, e[C.xAxisDisplayField] = f), typeof n == "string" && !ne(d) && m !== void 0 && m !== a && (e[C.originalYCategoryValue] = e[n], e[n] = m));
6833
6839
  }
6834
6840
  function Ul(t) {
6835
6841
  let e;
@@ -6848,7 +6854,7 @@ function sr(t) {
6848
6854
  showMean: u,
6849
6855
  chartLimits: c,
6850
6856
  fieldList: l
6851
- } = 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 = ai(e, y), N = typeof p == "string" ? ai(e, p) : void 0, w = ao(l ?? []).includes(y), L = [];
6857
+ } = 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 = ao(l ?? []).includes(y), L = [];
6852
6858
  let A = 0;
6853
6859
  const I = /* @__PURE__ */ new Set(), { maxCategoryCount: P } = ut(c), O = zl({ queryResponse: i, chartConfig: a, maxCategoryCount: P });
6854
6860
  for (let V = 0; O[V] && V < O.length && !(o !== void 0 && A >= o); V += 1) {
@@ -6958,7 +6964,7 @@ async function or(t) {
6958
6964
  }
6959
6965
  return n === lt.RenderUpToTheLimit && m !== void 0 && r !== void 0 && r < m && (m = r, f = Math.ceil(m / d)), { categoryOrDateCount: f, elementCount: m };
6960
6966
  }
6961
- async function si(t) {
6967
+ async function oi(t) {
6962
6968
  const {
6963
6969
  chartConfig: e,
6964
6970
  queryConfig: i,
@@ -6983,7 +6989,7 @@ async function si(t) {
6983
6989
  v = _(T) === h.BarSeries ? await Hs(t) : x;
6984
6990
  else {
6985
6991
  if (w !== void 0) {
6986
- const A = _(T), { uniqueQuery: I, mapToStatField: P } = mi({
6992
+ const A = _(T), { uniqueQuery: I, mapToStatField: P } = yi({
6987
6993
  chartConfig: e,
6988
6994
  queryObject: r,
6989
6995
  queryConfig: i,
@@ -7089,7 +7095,7 @@ async function si(t) {
7089
7095
  }
7090
7096
  function Yl(t) {
7091
7097
  let e;
7092
- const { start: i, end: a } = gi({
7098
+ const { start: i, end: a } = pi({
7093
7099
  field: "",
7094
7100
  unit: t,
7095
7101
  addIntervalStatement: !1
@@ -7122,11 +7128,11 @@ function Jl(t) {
7122
7128
  for (const m of a) {
7123
7129
  const y = String(m);
7124
7130
  if (!l.has(`${f}|${y}`)) {
7125
- const p = u ? Ii({
7131
+ const p = u ? Ei({
7126
7132
  queryObject: u,
7127
7133
  fieldName: s,
7128
7134
  fieldValue: f
7129
- }) ?? d : d, g = u ? Ii({
7135
+ }) ?? d : d, g = u ? Ei({
7130
7136
  queryObject: u,
7131
7137
  fieldName: o,
7132
7138
  fieldValue: y
@@ -7143,7 +7149,7 @@ function Jl(t) {
7143
7149
  }
7144
7150
  return c;
7145
7151
  }
7146
- function zi(t) {
7152
+ function Wi(t) {
7147
7153
  const { day: e, month: i, includeLeapDay: a } = t;
7148
7154
  return i === 2 && e > (a ? 29 : 28) || [4, 6, 9, 11].includes(i) && e > 30;
7149
7155
  }
@@ -7250,11 +7256,11 @@ async function lr(t) {
7250
7256
  }), r && P && G.length !== P?.length) {
7251
7257
  const J = P.filter((X) => !G.includes(X.toString()));
7252
7258
  w && (J.length !== P.length || G.length === 0) || J.forEach((X) => {
7253
- Number.isFinite(Number(M[W.heatChartLowerBoundaryAlias])) && Number.isFinite(Number(X)) && (x?.unit === he.DayOfMonth && B?.unit === he.MonthOfYear && zi({
7259
+ Number.isFinite(Number(M[W.heatChartLowerBoundaryAlias])) && Number.isFinite(Number(X)) && (x?.unit === he.DayOfMonth && B?.unit === he.MonthOfYear && Wi({
7254
7260
  day: Number(M[W.heatChartLowerBoundaryAlias]),
7255
7261
  month: Number(X),
7256
7262
  includeLeapDay: e.includeLeapDay
7257
- }) || B?.unit === he.DayOfMonth && x?.unit === he.MonthOfYear && zi({
7263
+ }) || B?.unit === he.DayOfMonth && x?.unit === he.MonthOfYear && Wi({
7258
7264
  day: Number(X),
7259
7265
  month: Number(M[W.heatChartLowerBoundaryAlias]),
7260
7266
  includeLeapDay: e.includeLeapDay
@@ -7283,7 +7289,7 @@ async function lr(t) {
7283
7289
  function Kl(t) {
7284
7290
  const { chartConfig: e, data: i, chartLimits: a } = t, r = e.series;
7285
7291
  let n = i;
7286
- const s = Ba(e, a);
7292
+ const s = Na(e, a);
7287
7293
  if (s !== void 0) {
7288
7294
  const o = ue(r);
7289
7295
  if (o.length === 1)
@@ -7307,7 +7313,7 @@ function Kl(t) {
7307
7313
  }
7308
7314
  return n;
7309
7315
  }
7310
- async function bi(t) {
7316
+ async function xi(t) {
7311
7317
  const {
7312
7318
  chartConfig: e,
7313
7319
  queryConfig: i,
@@ -7339,7 +7345,7 @@ async function bi(t) {
7339
7345
  R.Minute,
7340
7346
  R.Second
7341
7347
  ].includes(L.unit) && (L.unit = R.Day, L.size = 1), B.size = L.size, B.unit = L.unit);
7342
- const { uniqueQuery: O, mapToStatField: V } = mi({
7348
+ const { uniqueQuery: O, mapToStatField: V } = yi({
7343
7349
  chartConfig: e,
7344
7350
  queryConfig: i,
7345
7351
  queryObject: a,
@@ -7423,7 +7429,7 @@ async function bi(t) {
7423
7429
  abortSignal: n
7424
7430
  });
7425
7431
  }
7426
- ua(a) && x && x?.length === gl && (A = !0), y === lt.RenderUpToTheLimit && x && (x = Kl({ chartConfig: e, chartLimits: l, data: x }));
7432
+ ca(a) && x && x?.length === gl && (A = !0), y === lt.RenderUpToTheLimit && x && (x = Kl({ chartConfig: e, chartLimits: l, data: x }));
7427
7433
  }
7428
7434
  $ || (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;
7429
7435
  }
@@ -7446,7 +7452,7 @@ async function eu(t) {
7446
7452
  xAxisValueFormatType: xe(e),
7447
7453
  setTimeBinningInfoWhenNotProvided: n,
7448
7454
  queryObject: a
7449
- }), { uniqueQuery: y, mapToStatField: p } = mi({
7455
+ }), { uniqueQuery: y, mapToStatField: p } = yi({
7450
7456
  chartConfig: e,
7451
7457
  queryObject: a,
7452
7458
  queryConfig: i,
@@ -7489,7 +7495,7 @@ async function tu(t) {
7489
7495
  let m = { valid: !0 };
7490
7496
  if (de(e)) {
7491
7497
  const y = de(e) ? e.showMean : !1;
7492
- m = await Si({
7498
+ m = await Fi({
7493
7499
  queryObject: a,
7494
7500
  chartConfig: e,
7495
7501
  queryConfig: i,
@@ -7662,7 +7668,7 @@ async function ou(t) {
7662
7668
  });
7663
7669
  } else if ($ !== void 0 && M !== void 0) {
7664
7670
  let H = 0;
7665
- const { maxScatterCellsPerQuery: ae, maxScatterCellsPerQueryForStandard: pe } = Vt(), vi = await ro(w, u) ? pe : ae, Bi = [];
7671
+ const { maxScatterCellsPerQuery: ae, maxScatterCellsPerQueryForStandard: pe } = Vt(), Bi = await ro(w, u) ? pe : ae, Ni = [];
7666
7672
  let jt = !0, Xe = v, ke = N, Je = "", xt = 1, Ht = 1, Ct = Number.MAX_SAFE_INTEGER, vt = Number.MIN_SAFE_INTEGER, Bt = Number.MAX_SAFE_INTEGER, Nt = Number.MIN_SAFE_INTEGER;
7667
7673
  for (; Ht <= M && jt; ) {
7668
7674
  for (ke = N, xt = 1; xt <= $ && jt; ) {
@@ -7676,14 +7682,14 @@ async function ou(t) {
7676
7682
  yStep: O,
7677
7683
  endOfRow: xt === $,
7678
7684
  endOfColumn: Ht === M
7679
- }), Xe < Ct && (Ct = Xe), Xe + P > vt && (vt = Xe + P), ke < Bt && (Bt = ke), ke + P > Nt && (Nt = ke + O), H += 1, H % vi === 0 || H === V || H === B) {
7685
+ }), Xe < Ct && (Ct = Xe), Xe + P > vt && (vt = Xe + P), ke < Bt && (Bt = ke), ke + P > Nt && (Nt = ke + O), H += 1, H % Bi === 0 || H === V || H === B) {
7680
7686
  Je = `${Je} ${Ue.groupByCaseEnd}`;
7681
7687
  const gr = {
7682
7688
  ...r,
7683
7689
  groupByFieldsForStatistics: [Je],
7684
7690
  outStatistics: [...q.values()]
7685
7691
  };
7686
- Bi.push(
7692
+ Ni.push(
7687
7693
  su({
7688
7694
  chartConfig: i,
7689
7695
  queryConfig: gr,
@@ -7702,7 +7708,7 @@ async function ou(t) {
7702
7708
  }
7703
7709
  Xe += P, Ht += 1;
7704
7710
  }
7705
- b = (await Promise.all(Bi)).flat();
7711
+ b = (await Promise.all(Ni)).flat();
7706
7712
  }
7707
7713
  }
7708
7714
  }
@@ -7763,7 +7769,7 @@ function uu(t) {
7763
7769
  const { useQueryAttributeBins: e, graphic: i, x: a, y: r, yStep: n } = t, { groupByOutKeyword: s } = Ue, { dataContextXMinField: o, dataContextXMaxField: u, dataContextYMinField: c, dataContextYMaxField: l } = C.scatterplotAggregationFields;
7764
7770
  let d = [];
7765
7771
  if (e && "stackedAttributes" in i && i.stackedAttributes) {
7766
- const f = Pa(a, r), m = i.attributes[f.lowerBoundaryAlias], y = i.attributes[f.upperBoundaryAlias];
7772
+ const f = Ma(a, r), m = i.attributes[f.lowerBoundaryAlias], y = i.attributes[f.upperBoundaryAlias];
7767
7773
  i.stackedAttributes.forEach((p) => {
7768
7774
  let g = p[f.stackAlias], S;
7769
7775
  typeof g == "number" && typeof n == "number" && (g *= n), typeof g == "number" && typeof n == "number" && (S = g + n);
@@ -7807,7 +7813,7 @@ function cu(t) {
7807
7813
  const { chartConfig: e, rawData: i, isAggregationMode: a, yStep: r, useQueryAttributeBins: n } = t, s = e.series[0], { x: o, y: u } = s;
7808
7814
  let l = (Array.isArray(i) ? i : i?.features)?.flatMap((d) => {
7809
7815
  let f = [{ ...d.attributes }];
7810
- return Fi(f[0], [o, u]), a ? f = uu({
7816
+ return bi(f[0], [o, u]), a ? f = uu({
7811
7817
  useQueryAttributeBins: n,
7812
7818
  graphic: d,
7813
7819
  x: o,
@@ -7936,7 +7942,7 @@ async function ur(t) {
7936
7942
  sortingField: e.series[0].x,
7937
7943
  orderBy: ye.Ascending
7938
7944
  });
7939
- const { r2: x, trendLinePoints: B } = n !== !1 ? await Ia({
7945
+ const { r2: x, trendLinePoints: B } = n !== !1 ? await Ea({
7940
7946
  data: v,
7941
7947
  statsMap: d,
7942
7948
  queryConfig: i,
@@ -7966,7 +7972,7 @@ function it(t) {
7966
7972
  function cr(t) {
7967
7973
  return "subType" in t && t.subType === br.FeatureGauge;
7968
7974
  }
7969
- function xi(t) {
7975
+ function Ci(t) {
7970
7976
  let e;
7971
7977
  return t !== void 0 && ("bins" in t ? e = t.bins : "dataItems" in t && (e = t.dataItems)), e;
7972
7978
  }
@@ -8024,7 +8030,7 @@ function ue(t, e) {
8024
8030
  return s !== void 0 && r === F.BarAndLineSplitByNoAggregation && (s = `${s.toString()}_${fe({ where: n.query?.where, keepSurroundingQuotes: !1, escape: !1 })}`), s;
8025
8031
  }).filter((n) => n !== void 0), Array.from(new Set(i.flat()));
8026
8032
  }
8027
- function Ci(t) {
8033
+ function vi(t) {
8028
8034
  const { seriesConfig: e, filteredSeriesIds: i, showMean: a } = t;
8029
8035
  let r = [];
8030
8036
  if (a === !0) {
@@ -8158,13 +8164,13 @@ function hu(t) {
8158
8164
  const { dataItem: e, ...i } = t, a = K({ key: E.Min, ...i }), r = K({ key: E.Max, ...i }), n = e[a], s = e[r];
8159
8165
  return { min: n, max: s };
8160
8166
  }
8161
- function Wi(t) {
8167
+ function Gi(t) {
8162
8168
  let e = Number.NaN, i = Number.NaN, a, r;
8163
8169
  const { chartConfig: n, chartData: s, filteredSeriesIds: o } = t, { series: u } = n;
8164
8170
  if (u?.length > 0) {
8165
8171
  const { x: c } = u[0], l = _(n.series);
8166
8172
  if (l === h.HistogramSeries && s.length > 0) {
8167
- const d = s[0]?.[qi.Start], f = s[s.length - 1]?.[qi.End];
8173
+ const d = s[0]?.[Vi.Start], f = s[s.length - 1]?.[Vi.End];
8168
8174
  a = typeof d == "number" ? d : a, r = typeof f == "number" ? f : r;
8169
8175
  } else {
8170
8176
  const d = s.filter((m) => m[c] !== null);
@@ -8190,7 +8196,7 @@ function Wi(t) {
8190
8196
  });
8191
8197
  });
8192
8198
  } else
8193
- switch (ui(n)) {
8199
+ switch (ci(n)) {
8194
8200
  // we should keep the intention of the function purely as it is, meaning retrieving the min/max values from the stacked series.
8195
8201
  case Te.Stacked100:
8196
8202
  case Te.Stacked: {
@@ -8234,7 +8240,7 @@ function mr(t) {
8234
8240
  }
8235
8241
  return e;
8236
8242
  }
8237
- function oi(t, e) {
8243
+ function li(t, e) {
8238
8244
  let i = !1;
8239
8245
  return Number.isFinite(t) && t !== Number.MAX_SAFE_INTEGER && Number.isFinite(e) && e !== Number.MIN_SAFE_INTEGER && (i = t <= 0 || e <= 0), i;
8240
8246
  }
@@ -8243,22 +8249,22 @@ function yr(t) {
8243
8249
  let r = !1;
8244
8250
  if (a === 0) {
8245
8251
  if (mr(e)) {
8246
- const { minX: n, maxX: s } = Wi({
8252
+ const { minX: n, maxX: s } = Gi({
8247
8253
  chartConfig: e,
8248
8254
  chartData: i
8249
8255
  });
8250
- r = oi(n, s);
8256
+ r = li(n, s);
8251
8257
  }
8252
8258
  } else {
8253
8259
  const n = Su({
8254
8260
  chartConfig: e,
8255
8261
  isSecondValueAxis: a === 2
8256
- }), { minY: s, maxY: o } = Wi({
8262
+ }), { minY: s, maxY: o } = Gi({
8257
8263
  chartConfig: e,
8258
8264
  chartData: i,
8259
8265
  filteredSeriesIds: n
8260
8266
  });
8261
- r = oi(s, o);
8267
+ r = li(s, o);
8262
8268
  }
8263
8269
  return r;
8264
8270
  }
@@ -8272,7 +8278,7 @@ function Fu(t, e) {
8272
8278
  const i = t;
8273
8279
  if (e?.[0] !== void 0 && k(e) === F.PieFromFields) {
8274
8280
  const { x: a, y: r } = e[0];
8275
- (li(t) ? i : i.dataItems).forEach((o) => (ce in o && a !== ce && (o[a] = o[a] !== void 0 ? o[a] : o[ce], delete o[ce]), Ne in o && r !== Ne && (o[r] = o[r] !== void 0 ? o[r] : o[Ne], delete o[Ne]), o));
8281
+ (ui(t) ? i : i.dataItems).forEach((o) => (ce in o && a !== ce && (o[a] = o[a] !== void 0 ? o[a] : o[ce], delete o[ce]), Ne in o && r !== Ne && (o[r] = o[r] !== void 0 ? o[r] : o[Ne], delete o[Ne]), o));
8276
8282
  }
8277
8283
  return i;
8278
8284
  }
@@ -8281,7 +8287,7 @@ function bu(t, e) {
8281
8287
  let a = t;
8282
8288
  const r = e?.[0];
8283
8289
  if ((i === h.PieSeries || i === h.BoxPlotSeries || i === h.LineSeries || i === h.RadarSeries || i === h.BarSeries || i === h.HeatSeries || i === h.ComboLineAndBarSeries) && r !== void 0) {
8284
- const n = li(t);
8290
+ const n = ui(t);
8285
8291
  let s = n ? t : t.dataItems;
8286
8292
  if (t !== void 0) {
8287
8293
  const { originalCategoryValue: o, originalYCategoryValue: u, originalDateValue: c, xAxisField: l } = C, d = i === h.HeatSeries ? Q.xField : r.x, f = i === h.HeatSeries ? Q.yField : void 0;
@@ -8299,7 +8305,7 @@ function bu(t, e) {
8299
8305
  }
8300
8306
  return a;
8301
8307
  }
8302
- function Gi(t) {
8308
+ function Ui(t) {
8303
8309
  const e = { ...t };
8304
8310
  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(
8305
8311
  (r) => r.includes(C.rendererSymbolField)
@@ -8310,7 +8316,7 @@ function Gi(t) {
8310
8316
  function xu(t, e) {
8311
8317
  let i = t;
8312
8318
  const a = _(e);
8313
- let r = xi(i);
8319
+ let r = Ci(i);
8314
8320
  if (r !== void 0)
8315
8321
  switch (a) {
8316
8322
  case h.ComboLineAndBarSeries:
@@ -8319,7 +8325,7 @@ function xu(t, e) {
8319
8325
  case h.RadarSeries:
8320
8326
  case h.PieSeries:
8321
8327
  {
8322
- r = r.map(Gi), i = { dataItems: r };
8328
+ r = r.map(Ui), i = { dataItems: r };
8323
8329
  const { timeIntervalInfo: n, serverLimitReached: s } = t ?? {};
8324
8330
  hr(n) || (i.timeIntervalInfo = n), s !== void 0 && (i.serverLimitReached = s);
8325
8331
  }
@@ -8327,7 +8333,7 @@ function xu(t, e) {
8327
8333
  case h.ScatterSeries:
8328
8334
  i = {
8329
8335
  ...i,
8330
- dataItems: r.map(Gi)
8336
+ dataItems: r.map(Ui)
8331
8337
  };
8332
8338
  break;
8333
8339
  }
@@ -8434,7 +8440,7 @@ async function vu(t) {
8434
8440
  })) {
8435
8441
  const L = He(a);
8436
8442
  "temporalBinning" in L.series[0] && L.series[0].temporalBinning && (L.series[0].temporalBinning.trimIncompleteTimeInterval = !1, rt(o, s) && (delete L.series[0].temporalBinning.start, delete L.series[0].temporalBinning.end)), S.push(
8437
- bi({
8443
+ xi({
8438
8444
  chartConfig: L,
8439
8445
  queryConfig: w,
8440
8446
  queryObject: s,
@@ -8537,7 +8543,7 @@ async function Yd(t) {
8537
8543
  let N;
8538
8544
  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]);
8539
8545
  if (y !== !0 && S !== !1 && B !== void 0 && B.length > 0 && (a === !0 || w || u)) {
8540
- const A = xi(i), I = _a({
8546
+ const A = Ci(i), I = _a({
8541
8547
  queryObject: s,
8542
8548
  chartConfig: e,
8543
8549
  runtimeDataFilters: p,
@@ -8577,7 +8583,7 @@ async function Yd(t) {
8577
8583
  }
8578
8584
  const Zd = {
8579
8585
  shouldCheckDataMinMaxForLogScaleOnXAxis: mr,
8580
- minMaxHasZeroOrNegativeValues: oi,
8586
+ minMaxHasZeroOrNegativeValues: li,
8581
8587
  isChartWithZeroOrNegativeValues: yr
8582
8588
  };
8583
8589
  export {
@@ -8603,21 +8609,21 @@ export {
8603
8609
  Io as S,
8604
8610
  bn as T,
8605
8611
  it as U,
8606
- Ci as V,
8612
+ vi as V,
8607
8613
  K as W,
8608
- gi as X,
8614
+ pi as X,
8609
8615
  k as Y,
8610
8616
  Nc as Z,
8611
- Wi as _,
8617
+ Gi as _,
8612
8618
  dd as a,
8613
8619
  Ec as a$,
8614
8620
  Pt as a0,
8615
8621
  qd as a1,
8616
8622
  Ua as a2,
8617
- yi as a3,
8618
- ai as a4,
8619
- ri as a5,
8620
- Ii as a6,
8623
+ gi as a3,
8624
+ ri as a4,
8625
+ ni as a5,
8626
+ Ei as a6,
8621
8627
  xd as a7,
8622
8628
  Td as a8,
8623
8629
  Mn as a9,
@@ -8647,7 +8653,7 @@ export {
8647
8653
  Pc as aX,
8648
8654
  Dc as aY,
8649
8655
  Hc as aZ,
8650
- Li as a_,
8656
+ Pi as a_,
8651
8657
  Ra as aa,
8652
8658
  $a as ab,
8653
8659
  Fd as ac,
@@ -8662,12 +8668,12 @@ export {
8662
8668
  bo as al,
8663
8669
  ja as am,
8664
8670
  ve as an,
8665
- Pa as ao,
8666
- Da as ap,
8671
+ Ma as ao,
8672
+ Oa as ap,
8667
8673
  yo as aq,
8668
8674
  bd as ar,
8669
8675
  mo as as,
8670
- ii as at,
8676
+ ai as at,
8671
8677
  Gs as au,
8672
8678
  hs as av,
8673
8679
  Va as aw,
@@ -8687,7 +8693,7 @@ export {
8687
8693
  qc as b8,
8688
8694
  Ie as b9,
8689
8695
  po as bA,
8690
- pi as bB,
8696
+ hi as bB,
8691
8697
  dt as bC,
8692
8698
  Ld as bD,
8693
8699
  oo as bE,
@@ -8705,19 +8711,19 @@ export {
8705
8711
  bt as bQ,
8706
8712
  yd as bR,
8707
8713
  xu as bS,
8708
- Gi as bT,
8714
+ Ui as bT,
8709
8715
  bu as bU,
8710
8716
  Fu as bV,
8711
8717
  Gd as bW,
8712
8718
  Ud as bX,
8713
8719
  Uc as bY,
8714
8720
  Ys as bZ,
8715
- ji as b_,
8721
+ Hi as b_,
8716
8722
  vn as ba,
8717
8723
  io as bb,
8718
8724
  zd as bc,
8719
8725
  Fc as bd,
8720
- ua as be,
8726
+ ca as be,
8721
8727
  Ee as bf,
8722
8728
  cr as bg,
8723
8729
  Bd as bh,
@@ -8726,12 +8732,12 @@ export {
8726
8732
  St as bk,
8727
8733
  fo as bl,
8728
8734
  pd as bm,
8729
- ya as bn,
8735
+ ga as bn,
8730
8736
  Pe as bo,
8731
8737
  ro as bp,
8732
8738
  Cd as bq,
8733
8739
  bc as br,
8734
- ca as bs,
8740
+ da as bs,
8735
8741
  fn as bt,
8736
8742
  vd as bu,
8737
8743
  wd as bv,
@@ -8756,7 +8762,7 @@ export {
8756
8762
  il as cC,
8757
8763
  Md as cD,
8758
8764
  Sc as cE,
8759
- Mi as cF,
8765
+ Di as cF,
8760
8766
  sc as cG,
8761
8767
  yc as cH,
8762
8768
  ld as cI,
@@ -8770,8 +8776,8 @@ export {
8770
8776
  Jc as cQ,
8771
8777
  md as cR,
8772
8778
  We as cS,
8773
- qi as cT,
8774
- Na as cU,
8779
+ Vi as cT,
8780
+ Ta as cU,
8775
8781
  Dd as cV,
8776
8782
  ad as cW,
8777
8783
  Hd as cX,
@@ -8787,7 +8793,7 @@ export {
8787
8793
  Kr as cg,
8788
8794
  nc as ch,
8789
8795
  ed as ci,
8790
- Pi as cj,
8796
+ Mi as cj,
8791
8797
  od as ck,
8792
8798
  On as cl,
8793
8799
  st as cm,
@@ -8810,7 +8816,7 @@ export {
8810
8816
  Oo as d2,
8811
8817
  id as d3,
8812
8818
  jn as d4,
8813
- mi as d5,
8819
+ yi as d5,
8814
8820
  or as d6,
8815
8821
  _a as e,
8816
8822
  Zc as f,
@@ -8825,13 +8831,13 @@ export {
8825
8831
  Wc as o,
8826
8832
  Yt as p,
8827
8833
  Gc as q,
8828
- da as r,
8834
+ fa as r,
8829
8835
  Cc as s,
8830
8836
  mn as t,
8831
8837
  yn as u,
8832
8838
  rt as v,
8833
8839
  be as w,
8834
- xi as x,
8840
+ Ci as x,
8835
8841
  uo as y,
8836
8842
  lo as z
8837
8843
  };