@arcgis/charts-components 5.2.0-next.25 → 5.2.0-next.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) hide show
  1. package/dist/cdn/{KCJKQ44K.js → 2A24ACPF.js} +1 -1
  2. package/dist/cdn/{5M57QONK.js → 2ASYBTGM.js} +1 -1
  3. package/dist/cdn/{L6NNUSXU.js → 2B3QBXNI.js} +1 -1
  4. package/dist/cdn/{RBAE74TA.js → 2KCA3K57.js} +1 -1
  5. package/dist/cdn/{5VQQA6MA.js → 3BS7VF2U.js} +1 -1
  6. package/dist/cdn/{MSN54T3T.js → 4AF64XYR.js} +1 -1
  7. package/dist/cdn/{FRSKVY2N.js → 4N3NVAA2.js} +1 -1
  8. package/dist/cdn/{YNHUPD3J.js → 4RJT43K4.js} +1 -1
  9. package/dist/cdn/{J72BLOD2.js → 4XIBUPM6.js} +1 -1
  10. package/dist/cdn/{DNSJAZKI.js → 4YRCWE6Z.js} +1 -1
  11. package/dist/cdn/{QUR7IUKK.js → 5JREGZML.js} +1 -1
  12. package/dist/cdn/{JGSF55NE.js → 5NVUOG5B.js} +1 -1
  13. package/dist/cdn/{U6MMH2LR.js → 5UX2FYTM.js} +1 -1
  14. package/dist/cdn/{6VDLIICW.js → 5W76WCRM.js} +1 -1
  15. package/dist/cdn/{MDMUNG7R.js → 662GFATG.js} +1 -1
  16. package/dist/cdn/{OQWDZSTM.js → 6ODWWOUP.js} +1 -1
  17. package/dist/cdn/{NUIBH3VT.js → 6Y6EK76O.js} +1 -1
  18. package/dist/cdn/{F2N6CMAL.js → 75XWLYW5.js} +1 -1
  19. package/dist/cdn/{GZU5HJCQ.js → 7LI5APDL.js} +1 -1
  20. package/dist/cdn/{EUGGSDEV.js → ADJHTT4M.js} +1 -1
  21. package/dist/cdn/{TLP2PMYA.js → ASEWMED3.js} +1 -1
  22. package/dist/cdn/{KXKOTDCQ.js → AYNWMLFD.js} +1 -1
  23. package/dist/cdn/{FP72YYAO.js → AZZIMLGE.js} +1 -1
  24. package/dist/cdn/{KOKJLIPK.js → BMC75GCV.js} +1 -1
  25. package/dist/cdn/{YMFG2IVU.js → BUUTWPEP.js} +1 -1
  26. package/dist/cdn/{LZMLIBIH.js → D46R6YHX.js} +1 -1
  27. package/dist/cdn/{QQSX47ZE.js → D6GG2ADV.js} +1 -1
  28. package/dist/cdn/{S6SBVFMN.js → DE2LP6LN.js} +1 -1
  29. package/dist/cdn/{XNJIGVQJ.js → DKMTGCWH.js} +1 -1
  30. package/dist/cdn/{NNP5LCX5.js → ECG7HC37.js} +1 -1
  31. package/dist/cdn/{CTXTTI3G.js → FFE3EGXQ.js} +1 -1
  32. package/dist/cdn/{NDBH7YLO.js → GSYV5MTU.js} +1 -1
  33. package/dist/cdn/{NUK4NPOT.js → GW6GNNLA.js} +1 -1
  34. package/dist/cdn/{IOAD36KI.js → GZLTMREM.js} +1 -1
  35. package/dist/cdn/{3RA3JNKB.js → HFSVUO2D.js} +2 -2
  36. package/dist/cdn/{O6CSF6KG.js → HK3P3FUS.js} +1 -1
  37. package/dist/cdn/{G7SXRDMI.js → HPEG72LB.js} +1 -1
  38. package/dist/cdn/{ZERRCOSM.js → ICJALFR4.js} +1 -1
  39. package/dist/cdn/{A3TAYUWE.js → IHJWEEOX.js} +1 -1
  40. package/dist/cdn/{7WMOXCPU.js → IK5VZ54O.js} +1 -1
  41. package/dist/cdn/{JF7YQCM6.js → IP3FZZNM.js} +1 -1
  42. package/dist/cdn/{G5TRNV2I.js → IPECBZP3.js} +1 -1
  43. package/dist/cdn/{RAUYMTSM.js → IUMYBJDG.js} +1 -1
  44. package/dist/cdn/{6UVZ3NXS.js → K7VEKFCK.js} +1 -1
  45. package/dist/cdn/{UYKZWTFH.js → KBUBJ24X.js} +1 -1
  46. package/dist/cdn/{W6CKM3J3.js → L6SM2ORZ.js} +1 -1
  47. package/dist/cdn/{APNALJWN.js → LSF6ITTC.js} +1 -1
  48. package/dist/cdn/{U7ZGT3IG.js → LSKFMUX4.js} +1 -1
  49. package/dist/cdn/{AQIUPTKW.js → MLD566HE.js} +4 -4
  50. package/dist/cdn/{KXGVMPQJ.js → MUG3AZLX.js} +1 -1
  51. package/dist/cdn/{WHBJYAT4.js → N3FUI2RC.js} +1 -1
  52. package/dist/cdn/{6RD22S75.js → N4EH5HUB.js} +1 -1
  53. package/dist/cdn/{WHLDUYAG.js → N4IFMTPA.js} +1 -1
  54. package/dist/cdn/{2V4LOGZL.js → N5AW3HBF.js} +1 -1
  55. package/dist/cdn/{T5NY73Y2.js → N6IOWWIK.js} +1 -1
  56. package/dist/cdn/{XST7FY7F.js → NJAGOS7G.js} +1 -1
  57. package/dist/cdn/{GOZIQ6A2.js → OO5SFCWJ.js} +1 -1
  58. package/dist/cdn/{3XMGXTZB.js → RSYMKZMX.js} +1 -1
  59. package/dist/cdn/{LHGLUPW5.js → SUTVT5OC.js} +1 -1
  60. package/dist/cdn/{NNP7U57T.js → TG4EXCPF.js} +1 -1
  61. package/dist/cdn/{OFP7FIPS.js → TNKGWBUO.js} +1 -1
  62. package/dist/cdn/{QSH4RLKM.js → TS6MWMCQ.js} +1 -1
  63. package/dist/cdn/{NOAJPX72.js → TSQOEJB4.js} +1 -1
  64. package/dist/cdn/{BFIXNPQC.js → UB4O3XGF.js} +1 -1
  65. package/dist/cdn/{XX6OXKZK.js → UFI4PRSB.js} +1 -1
  66. package/dist/cdn/{ZX4AZXEF.js → VD3DRJBH.js} +1 -1
  67. package/dist/cdn/{7LGIXLPP.js → VHY7DPE3.js} +1 -1
  68. package/dist/cdn/{MVNNQWQB.js → VWW6TY7N.js} +1 -1
  69. package/dist/cdn/{OLPU6MNA.js → WJLUWK7Z.js} +1 -1
  70. package/dist/cdn/{GQK23IL4.js → WXWLMWG5.js} +1 -1
  71. package/dist/cdn/{S4SG2V5X.js → WY3UGKLF.js} +1 -1
  72. package/dist/cdn/{UV5LIHCE.js → X4LAYI76.js} +1 -1
  73. package/dist/cdn/{GP5MHPDX.js → XKHA7K4P.js} +1 -1
  74. package/dist/cdn/{YPRIULPN.js → XKJN3WVL.js} +1 -1
  75. package/dist/cdn/{LVSNOD77.js → XWDLT2E4.js} +1 -1
  76. package/dist/cdn/{CU56A45C.js → Y5GMGU4M.js} +1 -1
  77. package/dist/cdn/{YPFJW7NS.js → Y7HYSSRW.js} +1 -1
  78. package/dist/cdn/{YL45GUSC.js → ZB5KGMQ6.js} +1 -1
  79. package/dist/cdn/{C3MXUPEW.js → ZPFHE4XY.js} +1 -1
  80. package/dist/cdn/index.js +1 -1
  81. package/dist/cdn/model/shared/setup-utils.js +1 -1
  82. package/dist/chunks/index2.js +373 -372
  83. package/dist/components/arcgis-chart/customElement.js +89 -89
  84. package/dist/docs/api.json +1 -1
  85. package/dist/docs/docs.json +1 -1
  86. package/dist/docs/web-types.json +1 -1
  87. package/package.json +3 -3
@@ -1,41 +1,41 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import { isEqual as at, sortBy as Ti, cloneDeep as He, memoize as Et, isArray as ui, isNil as hr, isEmpty as Sr } from "lodash-es";
3
- import { u as h, k as Fr, r as D, v as Ke, m as Se, p as ye, n as De, q as Te, g as Z, j as br, s as R, t as ee, d as he, a as Zi, G as xr } from "./chart-object-literals.js";
4
- import Ai from "@arcgis/core/layers/support/FeatureFilter.js";
2
+ import { isEqual as at, sortBy as Ai, cloneDeep as He, memoize as Et, isArray as ui, isNil as hr, isEmpty as Sr } from "lodash-es";
3
+ import { u as h, k as Fr, r as D, v as Ke, m as Se, p as ye, n as De, q as Te, g as Z, j as br, s as R, t as ee, d as he, a as Xi, G as xr } from "./chart-object-literals.js";
4
+ import wi from "@arcgis/core/layers/support/FeatureFilter.js";
5
5
  import Cr from "@arcgis/core/smartMapping/statistics/histogram.js";
6
- import wi from "@arcgis/core/smartMapping/statistics/summaryStatistics.js";
7
- import * as Xi from "@arcgis/core/geometry/support/jsonUtils.js";
6
+ import Li from "@arcgis/core/smartMapping/statistics/summaryStatistics.js";
7
+ import * as Ji from "@arcgis/core/geometry/support/jsonUtils.js";
8
8
  import vr from "@arcgis/core/rest/support/AttributeBinsQuery.js";
9
9
  import Br from "@arcgis/core/rest/support/Query.js";
10
10
  import Nr from "@arcgis/core/rest/support/StatisticDefinition.js";
11
- import Ji from "@arcgis/core/time/TimeExtent.js";
11
+ import Ki from "@arcgis/core/time/TimeExtent.js";
12
12
  import Tr from "@arcgis/core/layers/FeatureLayer.js";
13
13
  import Ar from "@arcgis/core/layers/support/CodedValueDomain.js";
14
14
  import wr from "@arcgis/core/layers/support/Field.js";
15
15
  import * as Lr from "@arcgis/core/layers/support/fieldUtils.js";
16
16
  import Pr from "@arcgis/core/portal/Portal.js";
17
- import * as Ki from "@arcgis/core/renderers/support/jsonUtils.js";
17
+ import * as ea from "@arcgis/core/renderers/support/jsonUtils.js";
18
18
  import Lt from "@arcgis/core/request.js";
19
- import ea from "@arcgis/core/rest/support/FeatureSet.js";
19
+ import ta from "@arcgis/core/rest/support/FeatureSet.js";
20
20
  import { g as _ } from "./series-types.js";
21
- import { F as C, q as oe, C as F, e as Zt, z as ta, l as ci, o as Li, v as ia, d as Xt, x as Mr, g as aa, s as zt, w as Dr, i as Or, r as Ae, t as qt } from "./index3.js";
21
+ import { F as C, q as oe, C as F, e as Zt, z as ia, l as ci, o as Pi, v as aa, d as Xt, x as Mr, g as ra, s as zt, w as Dr, i as Or, r as Ae, t as qt } from "./index3.js";
22
22
  import Ir 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 Er from "@arcgis/core/AttributeBinsGraphic.js";
26
26
  import { substitute as Be } from "@arcgis/core/intl.js";
27
- import { g as Vt, L as lt, az as W, j as Q, r as ut, o as Oe, ax as Kt, am as ra, aB as na, aq as qr, s as Rt, ay as Vr, b as Rr, a as $r } from "./index.js";
27
+ import { g as Vt, L as lt, az as W, j as Q, r as ut, o as Oe, ax as Kt, am as na, aB as sa, aq as qr, s as Rt, ay as Vr, b as Rr, a as $r } from "./index.js";
28
28
  import { unsafeGetElementDirection as kr } from "@arcgis/toolkit/dom";
29
- import { fetchT9nStringsBundle as ft, getElementLocale as ze, supportedLocales as sa } from "@arcgis/toolkit/intl";
30
- import { i as oa, b as la, c as ie, a as mt, f as Qr, e as _r } from "./type-guards.js";
31
- import * as ua from "@arcgis/core/core/promiseUtils.js";
32
- import { g as yt } from "./runtime.js";
29
+ import { fetchT9nStringsBundle as mt, getElementLocale as ze, supportedLocales as oa } from "@arcgis/toolkit/intl";
30
+ import { i as la, b as ua, c as ie, a as yt, f as Qr, e as _r } from "./type-guards.js";
31
+ import * as ca from "@arcgis/core/core/promiseUtils.js";
32
+ import { g as gt } from "./runtime.js";
33
33
  import { linearRegression as jr, linearRegressionLine as Hr, rSquared as zr } from "simple-statistics";
34
34
  import { sqlLiteral as Wr } from "@arcgis/core/core/sql.js";
35
35
  import { DateTime as me } from "luxon";
36
- import { computeStatisticsHistograms as Gr, computeRasterAttributeTable as Ur, getCurrentRasterInfo as bt, fetchPixelFeatureSet as Yr } from "@arcgis/core/applications/Components/imageryUtils.js";
36
+ import { computeStatisticsHistograms as Gr, computeRasterAttributeTable as Ur, getCurrentRasterInfo as ct, fetchPixelFeatureSet as Yr } from "@arcgis/core/applications/Components/imageryUtils.js";
37
37
  import Zr from "@arcgis/core/geometry/Extent.js";
38
- import ca from "@arcgis/core/geometry/Point.js";
38
+ import da from "@arcgis/core/geometry/Point.js";
39
39
  import Xr from "@arcgis/core/layers/ImageryLayer.js";
40
40
  import Jr from "@arcgis/core/layers/ImageryTileLayer.js";
41
41
  import Kr from "@arcgis/core/layers/WCSLayer.js";
@@ -173,7 +173,7 @@ function cc(t, e) {
173
173
  }
174
174
  return i;
175
175
  }
176
- const ce = "arcgis_charts_pie_from_fields_name", Ne = "arcgis_charts_pie_from_fields_value", dc = "arcgis_charts_bar_line_from_fields_name", fc = "arcgis_charts_bar_line_from_fields_value", gt = {
176
+ const ce = "arcgis_charts_pie_from_fields_name", Ne = "arcgis_charts_pie_from_fields_value", dc = "arcgis_charts_bar_line_from_fields_name", fc = "arcgis_charts_bar_line_from_fields_value", pt = {
177
177
  ...C,
178
178
  titleAndSubtitlePaddingBottom: 5,
179
179
  chartPadding: 5,
@@ -332,22 +332,22 @@ function Fc(t) {
332
332
  function Ee(t) {
333
333
  return t !== void 0 && "view" in t && "layer" in t && t.layer.type === "feature";
334
334
  }
335
- function da(t) {
335
+ function fa(t) {
336
336
  return t !== void 0 && "type" in t && t.type === "feature";
337
337
  }
338
338
  function bc(t) {
339
339
  return t !== void 0 && "type" in t && t.type === "subtype-group";
340
340
  }
341
- function fa(t) {
341
+ function ma(t) {
342
342
  return t !== void 0 && "type" in t && t.type === "subtype-sublayer";
343
343
  }
344
344
  function mn(t) {
345
- return da(t) || fa(t);
345
+ return fa(t) || ma(t);
346
346
  }
347
347
  function ge(t) {
348
- return fa(t) ? t.parent ?? void 0 : t;
348
+ return ma(t) ? t.parent ?? void 0 : t;
349
349
  }
350
- function ma(t) {
350
+ function ya(t) {
351
351
  return t?.capabilities?.query?.supportsDistance || ge(t)?.sourceJSON?.advancedQueryCapabilities?.supportsQueryWithDistance === !0;
352
352
  }
353
353
  function yn(t) {
@@ -399,10 +399,10 @@ function Bc(t) {
399
399
  let a;
400
400
  if (i) {
401
401
  const r = z(i);
402
- oa(r) ? a = {
402
+ la(r) ? a = {
403
403
  id: r.id,
404
404
  layerType: "ArcGISImageServiceLayer"
405
- } : la(r) ? a = {
405
+ } : ua(r) ? a = {
406
406
  id: r.id,
407
407
  layerType: "ArcGISTiledImageServiceLayer"
408
408
  } : a = {
@@ -559,12 +559,12 @@ function Tc(t, e) {
559
559
  }
560
560
  function te(t, e) {
561
561
  let i = "";
562
- return t?.includes("=") && (i = e !== !1 ? ta({ value: t.split("=")[0], escape: !1 }) : t.split("=")[0].trim()), i;
562
+ return t?.includes("=") && (i = e !== !1 ? ia({ value: t.split("=")[0], escape: !1 }) : t.split("=")[0].trim()), i;
563
563
  }
564
564
  function fe(t) {
565
565
  const { where: e, normalize: i, keepSurroundingQuotes: a, escape: r = !1 } = t;
566
566
  let n = "";
567
- return e?.includes("=") && (n = e.split("=").slice(1).join("=").trim(), n === "null" ? n = null : n.trim() !== "" && !Number.isNaN(Number(n)) ? n = Number(n) : i === !1 ? r && (n = Zt(n)) : n = ta({ value: n, keepSurroundingQuotes: a, escape: r })), n;
567
+ return e?.includes("=") && (n = e.split("=").slice(1).join("=").trim(), n === "null" ? n = null : n.trim() !== "" && !Number.isNaN(Number(n)) ? n = Number(n) : i === !1 ? r && (n = Zt(n)) : n = ia({ value: n, keepSurroundingQuotes: a, escape: r })), n;
568
568
  }
569
569
  function Ie(t) {
570
570
  let e = !1;
@@ -586,11 +586,11 @@ function Le(t) {
586
586
  let o = e;
587
587
  return n !== "" && s !== "" && (s === null ? o = `${n} IS NULL` : o = `${n}=${s}`), o;
588
588
  }
589
- function ya(t) {
589
+ function ga(t) {
590
590
  let e = F.PieFromCategory;
591
591
  return t[0].query?.outStatistics === void 0 ? e = F.PieNoAggregation : t[0].query?.groupByFieldsForStatistics === void 0 && (e = F.PieFromFields), e;
592
592
  }
593
- function ga(t) {
593
+ function pa(t) {
594
594
  let e = F.BarAndLineMonoField;
595
595
  const i = t[0].query?.where;
596
596
  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;
@@ -605,13 +605,13 @@ function k(t) {
605
605
  if (t?.[0] !== void 0)
606
606
  switch (_(t)) {
607
607
  case h.PieSeries:
608
- e = ya(t);
608
+ e = ga(t);
609
609
  break;
610
610
  case h.RadarSeries:
611
611
  case h.BarSeries:
612
612
  case h.LineSeries:
613
613
  case h.ComboLineAndBarSeries:
614
- e = ga(t);
614
+ e = pa(t);
615
615
  break;
616
616
  case h.BoxPlotSeries:
617
617
  e = xn(t);
@@ -631,7 +631,7 @@ function vn(t) {
631
631
  }
632
632
  return e;
633
633
  }
634
- function pa(t) {
634
+ function ha(t) {
635
635
  const { statsMap: e, dataContext: i, chartLimits: a } = t;
636
636
  let r = !1;
637
637
  if (e !== void 0) {
@@ -651,7 +651,7 @@ function Bn(t) {
651
651
  r = vn(i);
652
652
  break;
653
653
  case h.ScatterSeries:
654
- r = pa({ dataContext: e, chartLimits: a });
654
+ r = ha({ dataContext: e, chartLimits: a });
655
655
  break;
656
656
  case h.PieSeries:
657
657
  r = Cn(i);
@@ -674,7 +674,7 @@ function Pe(t) {
674
674
  function be(t) {
675
675
  return Fn.includes(t?.type);
676
676
  }
677
- function ha(t) {
677
+ function Sa(t) {
678
678
  const { previousConfig: e, newConfig: i, behaviorAfterLimit: a } = t, r = e.series, n = i.series;
679
679
  let s = !1, o = !1;
680
680
  (a === lt.RenderUpToTheLimit || e.orderOptions?.data === void 0 || i.orderOptions?.data === void 0) && (o = !at(
@@ -688,7 +688,7 @@ function ha(t) {
688
688
  value: W.defaultStatParameterValue
689
689
  });
690
690
  }), m;
691
- }, c = ["where", "outStatistics[0].outStatisticFieldName", "outStatistics[0].onStatisticField"], l = Ti(r.map(u), c), d = Ti(n.map(u), c);
691
+ }, c = ["where", "outStatistics[0].outStatisticFieldName", "outStatistics[0].onStatisticField"], l = Ai(r.map(u), c), d = Ai(n.map(u), c);
692
692
  return s = !at(l, d), s || o;
693
693
  }
694
694
  function Nn(t, e) {
@@ -708,13 +708,13 @@ function Tn(t, e) {
708
708
  }
709
709
  return i;
710
710
  }
711
- function Sa(t, e) {
711
+ function Fa(t, e) {
712
712
  return (t ?? !1) !== (e ?? !1);
713
713
  }
714
- function Fa(t, e) {
714
+ function ba(t, e) {
715
715
  return be(t.series[0]) && be(e.series[0]) && (t.series[0].binTemporalData ?? C.binTemporalData) !== (e.series[0].binTemporalData ?? C.binTemporalData);
716
716
  }
717
- function ba(t, e) {
717
+ function xa(t, e) {
718
718
  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;
719
719
  return i !== a && (n || s || o);
720
720
  }
@@ -732,23 +732,23 @@ function An(t) {
732
732
  }
733
733
  return { timeBinningChanged: s, newTimeBinningWillBeCalculated: o };
734
734
  }
735
- function Pi(t, e) {
735
+ function Mi(t, e) {
736
736
  return e.length !== t.length;
737
737
  }
738
- function xa(t, e) {
738
+ function Ca(t, e) {
739
739
  return st(t) !== st(e);
740
740
  }
741
- function Ca(t, e) {
741
+ function va(t, e) {
742
742
  return JSON.stringify(t.series[0]?.valueConversion) !== JSON.stringify(e.series[0]?.valueConversion);
743
743
  }
744
- function va(t, e) {
744
+ function Ba(t, e) {
745
745
  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);
746
746
  }
747
747
  function wn(t, e) {
748
748
  return (t.hideEmptyRowsAndColumns ?? !1) !== (e.hideEmptyRowsAndColumns ?? !1);
749
749
  }
750
750
  function Ln(t, e) {
751
- return (t.includeLeapDay ?? gt.heatChart.includeLeapDay) !== (e.includeLeapDay ?? gt.heatChart.includeLeapDay);
751
+ return (t.includeLeapDay ?? pt.heatChart.includeLeapDay) !== (e.includeLeapDay ?? pt.heatChart.includeLeapDay);
752
752
  }
753
753
  function Pn(t) {
754
754
  const { previousConfig: e, newConfig: i, fieldList: a } = t, r = e.series[0], n = i.series[0];
@@ -757,7 +757,7 @@ function Pn(t) {
757
757
  const o = new Set(r.additionalTooltipFields || []), u = new Set(n.additionalTooltipFields || []);
758
758
  if (!at(o, u)) {
759
759
  const c = Array.from(u).filter((l) => !o.has(l));
760
- c.length > 0 && (s = a?.some((l) => c.includes(l.name) && !St(l)));
760
+ c.length > 0 && (s = a?.some((l) => c.includes(l.name) && !Ft(l)));
761
761
  }
762
762
  }
763
763
  return s;
@@ -770,7 +770,7 @@ function wc(t, e) {
770
770
  }
771
771
  function Pt(t) {
772
772
  const e = { ...t };
773
- return e.position === void 0 && (e.position = gt.heatChart.legend.position), e;
773
+ return e.position === void 0 && (e.position = pt.heatChart.legend.position), e;
774
774
  }
775
775
  function Lc(t, e) {
776
776
  const i = t.legend ?? { type: h.Legend }, a = e.legend ?? { type: h.Legend }, r = Pt(i), n = Pt(a);
@@ -832,7 +832,7 @@ function $c(t, e) {
832
832
  return JSON.stringify(i) !== JSON.stringify(a);
833
833
  }
834
834
  function kc(t, e) {
835
- return Li(t) !== Li(e);
835
+ return Pi(t) !== Pi(e);
836
836
  }
837
837
  function Qc(t, e) {
838
838
  return (t.showOutliers ?? C.boxPlot.boxPlotOutliersVisibility) !== (e.showOutliers ?? C.boxPlot.boxPlotOutliersVisibility);
@@ -905,18 +905,18 @@ function Gc(t) {
905
905
  tooltipFieldsChanged: !1
906
906
  }
907
907
  };
908
- switch (S.common.queryChanged = ha({
908
+ switch (S.common.queryChanged = Sa({
909
909
  previousConfig: e,
910
910
  newConfig: i,
911
911
  behaviorAfterLimit: l?.behaviorAfterLimit
912
- }), S.common.configFiltersChanged = Nn(e, i), S.common.xOrYChanged = Tn(f, d), S.common.filterBySelectionChanged = Sa(
912
+ }), S.common.configFiltersChanged = Nn(e, i), S.common.xOrYChanged = Tn(f, d), S.common.filterBySelectionChanged = Fa(
913
913
  a,
914
914
  o
915
915
  ), S.common.dataForFilterBySelectionChanged = Mn({
916
916
  previousSelectionOIDs: r,
917
917
  selectionData: u,
918
918
  filterBySelection: o
919
- }), S.common.binTemporalDataChanged = Fa(e, i), S.common.valueFormatChangeRequiresNewData = ba(
919
+ }), S.common.binTemporalDataChanged = ba(e, i), S.common.valueFormatChangeRequiresNewData = xa(
920
920
  e,
921
921
  i
922
922
  ), S.common = {
@@ -937,16 +937,16 @@ function Gc(t) {
937
937
  case h.LineSeries:
938
938
  case h.BarSeries:
939
939
  case h.ComboLineAndBarSeries:
940
- S.common.numberOfSeriesChanged = Pi(f, d);
940
+ S.common.numberOfSeriesChanged = Mi(f, d);
941
941
  break;
942
942
  case h.BoxPlotSeries:
943
- de(e) && de(i) && (S.common.numberOfSeriesChanged = Pi(f, d), S.boxPlot.showMeanChanged = xa(e, i));
943
+ de(e) && de(i) && (S.common.numberOfSeriesChanged = Mi(f, d), S.boxPlot.showMeanChanged = Ca(e, i));
944
944
  break;
945
945
  case h.GaugeSeries:
946
- S.gauge.valueConversionChanged = Ca(e, i);
946
+ S.gauge.valueConversionChanged = va(e, i);
947
947
  break;
948
948
  case h.HeatSeries:
949
- We(e) && We(i) && (S.heatChart.binningChanged = va(e, i), S.heatChart.hideEmptyRowsAndColumnsChanged = wn(
949
+ We(e) && We(i) && (S.heatChart.binningChanged = Ba(e, i), S.heatChart.hideEmptyRowsAndColumnsChanged = wn(
950
950
  e,
951
951
  i
952
952
  ), S.heatChart.includeLeapDay = Ln(e, i));
@@ -969,7 +969,7 @@ function Uc(t, e) {
969
969
  let n;
970
970
  if (a === !1) {
971
971
  const s = k(i.series);
972
- n = ia(s) ? "splitByValue" : "name";
972
+ n = aa(s) ? "splitByValue" : "name";
973
973
  } else
974
974
  n = "name";
975
975
  i.series.sort((s, o) => {
@@ -1002,7 +1002,7 @@ function Dn(t) {
1002
1002
  const r = di(e);
1003
1003
  return r?.length === 2 && (a = i === Q.xField ? r[0]?.orderBy : r[1]?.orderBy), a;
1004
1004
  }
1005
- function Ba(t) {
1005
+ function Na(t) {
1006
1006
  const e = k(t.series);
1007
1007
  let i;
1008
1008
  if (t.orderOptions?.data !== void 0) {
@@ -1030,12 +1030,12 @@ function Ba(t) {
1030
1030
  }
1031
1031
  return i;
1032
1032
  }
1033
- function Na(t) {
1033
+ function Ta(t) {
1034
1034
  const e = t.series[0], { x: i, y: a } = e, r = k(t.series) === F.PieFromFields, n = k(t.series) === F.BarAndLineFromFields;
1035
1035
  let s, o = "", u;
1036
1036
  if (t.orderOptions?.data !== void 0) {
1037
1037
  const c = t.orderOptions.data && "preferLabel" in t.orderOptions.data ? t.orderOptions.data.preferLabel : !0;
1038
- 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 !== "") {
1038
+ 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 : pt.originalCategoryValue : o = r ? Ne : [a].flat()[0], o !== void 0 && o !== "") {
1039
1039
  const l = ci(t);
1040
1040
  if (_(t.series) !== h.PieSeries && o !== i && t.series?.length > 1)
1041
1041
  switch (l) {
@@ -1056,7 +1056,7 @@ function Na(t) {
1056
1056
  };
1057
1057
  }
1058
1058
  } else (n || r) && t.series[0].query?.outStatistics && (u = t.series[0].query.outStatistics.map((c) => c.onStatisticField), u?.length > 1 && (s = {
1059
- sortingField: gt.originalCategoryValue,
1059
+ sortingField: pt.originalCategoryValue,
1060
1060
  orderBy: u,
1061
1061
  preferLabel: !1
1062
1062
  }));
@@ -1072,13 +1072,13 @@ function Mt(t) {
1072
1072
  We(t) && (e = di(t));
1073
1073
  break;
1074
1074
  case h.BoxPlotSeries:
1075
- de(t) && (a = Ba(t));
1075
+ de(t) && (a = Na(t));
1076
1076
  break;
1077
1077
  case h.LineSeries:
1078
1078
  case h.BarSeries:
1079
1079
  case h.RadarSeries:
1080
1080
  case h.PieSeries:
1081
- a = Na(t);
1081
+ a = Ta(t);
1082
1082
  break;
1083
1083
  }
1084
1084
  !e && a && (e = [], e.push(a));
@@ -1101,17 +1101,17 @@ function Yc(t) {
1101
1101
  return s;
1102
1102
  }
1103
1103
  const Zc = {
1104
- getPieChartChartSubType: ya,
1105
- getBarLineChartSubType: ga,
1106
- hasQueryChanged: ha,
1107
- hasFilterBySelectionChanged: Sa,
1108
- hasBinTemporalDataChanged: Fa,
1109
- hasGaugeValueConversionChanged: Ca,
1110
- isNewDataRequiredForValueFormatChange: ba,
1111
- hasShowMeanChanged: xa,
1112
- hasHeatChartBinningChanged: va,
1113
- getDataOrderParametersForBoxPlot: Ba,
1114
- getDataOrderParametersForCommonChart: Na,
1104
+ getPieChartChartSubType: ga,
1105
+ getBarLineChartSubType: pa,
1106
+ hasQueryChanged: Sa,
1107
+ hasFilterBySelectionChanged: Fa,
1108
+ hasBinTemporalDataChanged: ba,
1109
+ hasGaugeValueConversionChanged: va,
1110
+ isNewDataRequiredForValueFormatChange: xa,
1111
+ hasShowMeanChanged: Ca,
1112
+ hasHeatChartBinningChanged: Ba,
1113
+ getDataOrderParametersForBoxPlot: Na,
1114
+ getDataOrderParametersForCommonChart: Ta,
1115
1115
  getDataOrderParametersForHeatChart: di
1116
1116
  };
1117
1117
  function On(t) {
@@ -1127,7 +1127,7 @@ function On(t) {
1127
1127
  t[0]
1128
1128
  )), e;
1129
1129
  }
1130
- function Mi(t) {
1130
+ function Di(t) {
1131
1131
  const { value: e, dataContext: i, specificField: a, keepNullValues: r = !1, useRendererLabel: n = !1, config: s } = t;
1132
1132
  let o = e;
1133
1133
  const { originalCategoryValue: u, originalDateValue: c } = C;
@@ -1146,7 +1146,7 @@ function fi(t) {
1146
1146
  function In(t) {
1147
1147
  return t?.[C.originalCategoryValue];
1148
1148
  }
1149
- function pt(t) {
1149
+ function ht(t) {
1150
1150
  const {
1151
1151
  arrayToSort: e,
1152
1152
  orderBy: i,
@@ -1161,13 +1161,13 @@ function pt(t) {
1161
1161
  const c = i === ye.Descending && r !== !0;
1162
1162
  e.sort((l, d) => {
1163
1163
  let f = 0, m = l[a];
1164
- s === !0 && !u && (m = Mi({
1164
+ s === !0 && !u && (m = Di({
1165
1165
  value: `${l[a]?.toString()}`,
1166
1166
  dataContext: l,
1167
1167
  specificField: o ? C.xAxisField : C.originalCategoryValue
1168
1168
  }));
1169
1169
  let y = d[a];
1170
- return s === !0 && !u && (y = Mi({
1170
+ return s === !0 && !u && (y = Di({
1171
1171
  value: `${d[a]?.toString()}`,
1172
1172
  dataContext: d,
1173
1173
  specificField: o ? C.xAxisField : C.originalCategoryValue
@@ -1239,7 +1239,7 @@ function At(t) {
1239
1239
  const n = [];
1240
1240
  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;
1241
1241
  }
1242
- function Ta(t, e) {
1242
+ function Aa(t, e) {
1243
1243
  let i;
1244
1244
  const {
1245
1245
  maxBarChartSeriesCount: a,
@@ -1295,7 +1295,7 @@ function Ta(t, e) {
1295
1295
  }
1296
1296
  return (v === F.BarAndLineNoAggregation || v === F.BarAndLineMultiFields) && i !== void 0 && (i = Math.ceil(i / b)), i;
1297
1297
  }
1298
- function Di(t, e) {
1298
+ function Oi(t, e) {
1299
1299
  let i = t;
1300
1300
  if (Number.isFinite(t)) {
1301
1301
  const { factor: a, offset: r } = e ?? {};
@@ -1319,7 +1319,7 @@ function Xc(t) {
1319
1319
  }
1320
1320
  return e;
1321
1321
  }
1322
- function Aa(t) {
1322
+ function wa(t) {
1323
1323
  const { stringToTruncate: e, characterLimit: i, ellipsis: a = C.chartEllipsis } = t;
1324
1324
  let r = e;
1325
1325
  return typeof i == "number" && Number.isFinite(i) && i > 0 && i < e.length && (r = e.slice(0, i), r = `${r}${a}`), r;
@@ -1330,7 +1330,7 @@ function Jc(t) {
1330
1330
  if (i > 0 && e.length > i) {
1331
1331
  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();
1332
1332
  let d = e.slice(c).trimStart();
1333
- d.length > i && (d = Aa({
1333
+ d.length > i && (d = wa({
1334
1334
  stringToTruncate: d,
1335
1335
  characterLimit: Math.max(1, i - 1)
1336
1336
  })), a = `${l}
@@ -1344,7 +1344,7 @@ function Kc(t, e = ":") {
1344
1344
  function ed(t) {
1345
1345
  return (i) => {
1346
1346
  let a = typeof i != "string" ? i?.toString() ?? "" : i;
1347
- return !oe(a) && a !== C.htmlEmptyContent && (a = Aa({
1347
+ return !oe(a) && a !== C.htmlEmptyContent && (a = wa({
1348
1348
  stringToTruncate: a,
1349
1349
  characterLimit: t
1350
1350
  })), a;
@@ -1440,14 +1440,14 @@ function Hn(t) {
1440
1440
  function zn(t) {
1441
1441
  return t?.type !== void 0 && (t.color !== void 0 || t.label !== void 0 || t.style !== void 0 || t.outline !== void 0);
1442
1442
  }
1443
- function wa(t) {
1443
+ function La(t) {
1444
1444
  const { symbolField: e, dataItem: i, rendererSymbol: a, rendererOrigin: r } = t;
1445
1445
  let n = !1;
1446
1446
  if (!zn(a))
1447
1447
  delete i[e];
1448
1448
  else {
1449
1449
  const s = { ...a };
1450
- s.color !== void 0 && r === tt.LayerRenderer && (s.color[3] = na * 255), r === tt.LayerRenderer && (delete s.style, delete s.outline, delete s.label), i[e] = s, n = !0;
1450
+ s.color !== void 0 && r === tt.LayerRenderer && (s.color[3] = sa * 255), r === tt.LayerRenderer && (delete s.style, delete s.outline, delete s.label), i[e] = s, n = !0;
1451
1451
  }
1452
1452
  return n;
1453
1453
  }
@@ -1484,7 +1484,7 @@ function Wn(t) {
1484
1484
  type: _e.SMS,
1485
1485
  color: p,
1486
1486
  label: S && y ? y : void 0
1487
- }, c != null && (s.outline = c), wa({
1487
+ }, c != null && (s.outline = c), La({
1488
1488
  dataItem: r,
1489
1489
  symbolField: a === F.BarAndLineFromFields || a === F.PieFromFields ? C.rendererSymbolField : `${C.rendererSymbolField}_${f}`,
1490
1490
  rendererSymbol: s,
@@ -1497,7 +1497,7 @@ function Gn(t) {
1497
1497
  const { seriesConfig: e, chartSubType: i, rendererType: a } = t;
1498
1498
  let n = C.rendererSymbolField;
1499
1499
  if (a === se.UniqueValue) {
1500
- if (ia(i)) {
1500
+ if (aa(i)) {
1501
1501
  const s = fe({
1502
1502
  where: e.query?.where,
1503
1503
  keepSurroundingQuotes: !1,
@@ -1520,7 +1520,7 @@ function Gn(t) {
1520
1520
  }
1521
1521
  return n;
1522
1522
  }
1523
- function La(t) {
1523
+ function Pa(t) {
1524
1524
  const { seriesConfig: e, chartSubType: i, rendererType: a, dataItem: r } = t;
1525
1525
  let n = Gn({
1526
1526
  seriesConfig: e,
@@ -1534,7 +1534,7 @@ function Un(t) {
1534
1534
  // 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
1535
1535
  // eslint-disable-next-line @typescript-eslint/no-misused-spread
1536
1536
  ...z(i),
1537
- renderer: Ki.fromJSON(e)
1537
+ renderer: ea.fromJSON(e)
1538
1538
  } : z(i);
1539
1539
  return new Ir({
1540
1540
  layer: a
@@ -1567,7 +1567,7 @@ async function Yn(t) {
1567
1567
  const { x: m } = e[0], y = /* @__PURE__ */ new Map();
1568
1568
  o && o.trim() !== "" ? e.forEach((p) => {
1569
1569
  if (p.type === h.BarSeries || p.type === h.LineSeries || p.type === h.BoxPlotSeries || p.type === h.RadarSeries) {
1570
- const g = La({
1570
+ const g = Pa({
1571
1571
  seriesConfig: p,
1572
1572
  chartSubType: s,
1573
1573
  rendererType: r,
@@ -1598,7 +1598,7 @@ async function Yn(t) {
1598
1598
  const S = a?.uniqueValueInfos;
1599
1599
  for (let b = 0; b < p.length; b += 1) {
1600
1600
  const [v, x] = p[b];
1601
- if (Oi({
1601
+ if (Ii({
1602
1602
  mode: "encode",
1603
1603
  x: m,
1604
1604
  splitByField: o,
@@ -1618,12 +1618,12 @@ async function Yn(t) {
1618
1618
  }
1619
1619
  l?.set(JSON.stringify(x), d);
1620
1620
  }
1621
- Oi({
1621
+ Ii({
1622
1622
  mode: "revert",
1623
1623
  x: m,
1624
1624
  splitByField: o,
1625
1625
  attributes: i
1626
- }), wa({
1626
+ }), La({
1627
1627
  dataItem: i,
1628
1628
  symbolField: v,
1629
1629
  rendererSymbol: d,
@@ -1635,7 +1635,7 @@ async function Yn(t) {
1635
1635
  }
1636
1636
  return { rendererSymbol: d, colorMatchApplied: f };
1637
1637
  }
1638
- function Oi(t) {
1638
+ function Ii(t) {
1639
1639
  const { splitByField: e, attributes: i, x: a, mode: r } = t;
1640
1640
  [a, e ?? ""].forEach((n) => {
1641
1641
  i[n] === (r === "encode" ? null : C.nullValue) && (i[n] = r === "encode" ? C.nullValue : null);
@@ -1645,7 +1645,7 @@ function Zn(t) {
1645
1645
  const { dataItem: e, seriesConfig: i, chartSubType: a, colorMatch: r, rendererType: n } = t;
1646
1646
  let s;
1647
1647
  if (r && e !== void 0) {
1648
- const o = La({
1648
+ const o = Pa({
1649
1649
  seriesConfig: i,
1650
1650
  chartSubType: a,
1651
1651
  rendererType: n,
@@ -1658,7 +1658,7 @@ function Zn(t) {
1658
1658
  function sd(t) {
1659
1659
  const { seriesSymbol: e, rendererSymbol: i, colorIndex: a } = t;
1660
1660
  let r = i?.color ?? e.color;
1661
- r = r ?? ra({ colorIndex: a, opacity: na });
1661
+ r = r ?? na({ colorIndex: a, opacity: sa });
1662
1662
  const n = {
1663
1663
  ...e,
1664
1664
  color: r
@@ -1676,7 +1676,7 @@ function Xn(t) {
1676
1676
  }
1677
1677
  function od(t, e) {
1678
1678
  let i = !1;
1679
- if (t && e && e.length > 0 && aa(t)) {
1679
+ if (t && e && e.length > 0 && ra(t)) {
1680
1680
  const r = ts(t), n = Re(t);
1681
1681
  r ? i = Xn(t).some((o) => e.includes(o)) : i = e.includes(n.x);
1682
1682
  }
@@ -1718,7 +1718,7 @@ function ei(t, e) {
1718
1718
  function ud(t) {
1719
1719
  const { chartConfig: e, queryObject: i, chartData: a } = t;
1720
1720
  let r = [];
1721
- const n = k(e.series), s = aa(e), o = z(i), u = e.chartRenderer ?? o?.renderer?.toJSON();
1721
+ const n = k(e.series), s = ra(e), o = z(i), u = e.chartRenderer ?? o?.renderer?.toJSON();
1722
1722
  return r = e.series.map((c, l) => {
1723
1723
  const d = _([c]);
1724
1724
  let f;
@@ -1728,7 +1728,7 @@ function ud(t) {
1728
1728
  chartSubType: n,
1729
1729
  colorMatch: s,
1730
1730
  rendererType: u?.type
1731
- })?.color : f === void 0 && (f = ra({ colorIndex: l }))), f;
1731
+ })?.color : f === void 0 && (f = na({ colorIndex: l }))), f;
1732
1732
  }).filter((c) => c !== void 0), r;
1733
1733
  }
1734
1734
  function ti(t) {
@@ -1751,7 +1751,7 @@ function as(t, e) {
1751
1751
  const i = me.now().offset / 60, a = me.now().setZone(t) ?? i, r = a.offset / 60, n = e ? a.setZone(e).offset / 60 : 0;
1752
1752
  return r - n;
1753
1753
  }
1754
- function Pa(t) {
1754
+ function Ma(t) {
1755
1755
  const {
1756
1756
  outTimeZone: e = Intl.DateTimeFormat().resolvedOptions().timeZone,
1757
1757
  dataTimeZone: i = "UTC",
@@ -1768,7 +1768,7 @@ function Pa(t) {
1768
1768
  return r;
1769
1769
  }
1770
1770
  function rs(t) {
1771
- const { dateFieldName: e, unit: i, runsOnClientQueryEngine: a, outTimeZone: r } = t, n = Pa({ 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})`;
1771
+ const { dateFieldName: e, unit: i, runsOnClientQueryEngine: a, outTimeZone: r } = t, n = Ma({ 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})`;
1772
1772
  let f = [];
1773
1773
  switch (i) {
1774
1774
  case R.Second:
@@ -1919,10 +1919,10 @@ function ds(t) {
1919
1919
  ]);
1920
1920
  }
1921
1921
  }
1922
- function Ma(t) {
1922
+ function Da(t) {
1923
1923
  const { chartConfig: e, uniqueQuery: i, chartLimits: a } = t;
1924
1924
  if (a?.behaviorAfterLimit === lt.RenderUpToTheLimit) {
1925
- const r = Ta(e, a);
1925
+ const r = Aa(e, a);
1926
1926
  if (r !== void 0) {
1927
1927
  const n = k(e.series);
1928
1928
  if (n === F.PieFromFields || n === F.BarAndLineFromFields) {
@@ -2014,7 +2014,7 @@ function yi(t) {
2014
2014
  }
2015
2015
  N.where = M;
2016
2016
  }
2017
- Ma({ chartConfig: e, uniqueQuery: N, chartLimits: u });
2017
+ Da({ chartConfig: e, uniqueQuery: N, chartLimits: u });
2018
2018
  const { gdbVersion: T, geometry: w, distance: L, units: A, timeExtent: I, where: P, objectIds: O, spatialRelationship: V } = i;
2019
2019
  return T !== void 0 && (N.gdbVersion = T), w !== void 0 && (N.geometry = w), L !== void 0 && (N.distance = L), A !== void 0 && (N.units = A), I !== void 0 && (N.timeExtent = I), O !== void 0 && (N.objectIds = O), V !== void 0 && (N.spatialRelationship = V), P !== void 0 && (N.where = Y([N.where, P])), { uniqueQuery: N, mapToStatField: g };
2020
2020
  }
@@ -2077,10 +2077,10 @@ async function ys(t) {
2077
2077
  if (!ie(f))
2078
2078
  throw new re(le.LayerNotSupported);
2079
2079
  f.loaded || await f.load({ signal: n });
2080
- const m = await ct(f, n);
2080
+ const m = await dt(f, n);
2081
2081
  if (!m)
2082
2082
  throw new Error("Raster info is not available for the layer.");
2083
- const y = dt(e.geometry) ?? f.fullExtent, p = m.bandCount === 1 ? 0 : m.bandInfos.findIndex((b) => b.name === c);
2083
+ const y = ft(e.geometry) ?? f.fullExtent, p = m.bandCount === 1 ? 0 : m.bandInfos.findIndex((b) => b.name === c);
2084
2084
  let g, S;
2085
2085
  if (s !== !0 && (l === void 0 || l === Z.None) && d && Array.isArray(m.histograms) && m.histograms.length > p && m.histograms[p].size % d === 0 && Array.isArray(m.statistics) && m?.statistics?.length > p)
2086
2086
  g = m.histograms[p], S = m.statistics[p];
@@ -2095,7 +2095,7 @@ async function ys(t) {
2095
2095
  ), O = L ** P;
2096
2096
  b = m.pixelSize.x * O, v = m.pixelSize.y * O, x = f.spatialReference;
2097
2097
  }
2098
- const B = new ca({
2098
+ const B = new da({
2099
2099
  x: b,
2100
2100
  y: v,
2101
2101
  spatialReference: x
@@ -2215,7 +2215,7 @@ function Ss(t) {
2215
2215
  pixelRanges: s
2216
2216
  } : void 0;
2217
2217
  }
2218
- function ht(t, e) {
2218
+ function St(t, e) {
2219
2219
  let i, a;
2220
2220
  const r = e ?? ((n) => n);
2221
2221
  for (const n of t) {
@@ -2290,7 +2290,7 @@ async function vs(t) {
2290
2290
  let m;
2291
2291
  const y = z(e), p = ge(y);
2292
2292
  if (p) {
2293
- const S = { where: Y([u, p.definitionExpression]) }, b = { query: S, signal: o }, v = dt(c)?.extent?.toJSON();
2293
+ const S = { where: Y([u, p.definitionExpression]) }, b = { query: S, signal: o }, v = ft(c)?.extent?.toJSON();
2294
2294
  if (v !== void 0) {
2295
2295
  const B = Cs(d), { xmin: N, ymin: T, xmax: w, ymax: L } = v;
2296
2296
  S.geometryType = "esriGeometryEnvelope", S.geometry = `${N},${T},${w},${L}`, l !== void 0 && (S.distance = l.toString()), B !== void 0 && (S.units = B, c?.spatialReference?.wkid != null && (S.inSR = c.spatialReference.wkid.toString()));
@@ -2300,9 +2300,9 @@ async function vs(t) {
2300
2300
  try {
2301
2301
  m = (await Lt(x, b)).data?.features?.[0]?.attributes;
2302
2302
  } catch (B) {
2303
- const N = s ?? (await ft(
2303
+ const N = s ?? (await mt(
2304
2304
  ze(document.documentElement).t9nLocale,
2305
- yt("./assets/common/t9n"),
2305
+ gt("./assets/common/t9n"),
2306
2306
  "messages."
2307
2307
  )).errorStrings;
2308
2308
  throw new re(le.QueryFeaturesError, N.errors.queryError, B);
@@ -2310,7 +2310,7 @@ async function vs(t) {
2310
2310
  }
2311
2311
  return m;
2312
2312
  }
2313
- function Da(t, e) {
2313
+ function Oa(t, e) {
2314
2314
  return {
2315
2315
  lowerBoundaryAlias: `charts_lower_boundary_${t}`,
2316
2316
  upperBoundaryAlias: `charts_upper_boundary_${t}`,
@@ -2421,10 +2421,10 @@ async function xt(t) {
2421
2421
  signal: n ?? (a !== void 0 ? Ge.get(a)?.signal : void 0)
2422
2422
  });
2423
2423
  } catch (f) {
2424
- if (!ua.isAbortError(f)) {
2425
- const m = r ?? (await ft(
2424
+ if (!ca.isAbortError(f)) {
2425
+ const m = r ?? (await mt(
2426
2426
  ze(document.documentElement).t9nLocale,
2427
- yt("./assets/common/t9n"),
2427
+ gt("./assets/common/t9n"),
2428
2428
  "messages."
2429
2429
  )).errorStrings;
2430
2430
  throw new re(le.QueryFeaturesError, m.errors.queryError, f);
@@ -2441,7 +2441,7 @@ async function xt(t) {
2441
2441
  }
2442
2442
  return o;
2443
2443
  }
2444
- async function Oa(t) {
2444
+ async function Ia(t) {
2445
2445
  const { queryObject: e, queryConfig: i, returnUniqueIdsOnly: a, abortKey: r, errorStrings: n, abortSignal: s } = t;
2446
2446
  let o = [];
2447
2447
  const u = z(e), c = s || (r !== void 0 ? Ge.get(r)?.signal : void 0), l = xo(u), d = hi({
@@ -2462,10 +2462,10 @@ async function Oa(t) {
2462
2462
  else
2463
2463
  o = (await e.queryFeatures(d, { signal: c })).features;
2464
2464
  } catch (f) {
2465
- if (!ua.isAbortError(f)) {
2466
- const m = n ?? (await ft(
2465
+ if (!ca.isAbortError(f)) {
2466
+ const m = n ?? (await mt(
2467
2467
  ze(document.documentElement).t9nLocale,
2468
- yt("./assets/common/t9n"),
2468
+ gt("./assets/common/t9n"),
2469
2469
  "messages."
2470
2470
  )).errorStrings;
2471
2471
  throw new re(le.QueryFeaturesError, m.errors.queryError, f);
@@ -2482,14 +2482,14 @@ async function ws(t) {
2482
2482
  ...r,
2483
2483
  start: u,
2484
2484
  num: Math.min(a, i - u)
2485
- }, e.push(Oa({ ...l, abortSignal: n })), u += a, o += 1;
2485
+ }, e.push(Ia({ ...l, abortSignal: n })), u += a, o += 1;
2486
2486
  }
2487
2487
  return s = (await Promise.all(e)).flat(), s;
2488
2488
  }
2489
2489
  async function Fe(t) {
2490
2490
  const { queryObject: e, queryConfig: i, returnUniqueIdsOnly: a, featureCount: r, noBatch: n, errorStrings: s, abortKey: o, abortSignal: u } = t;
2491
2491
  let c = [];
2492
- const l = z(e), d = r ?? 1, f = Ha(l);
2492
+ const l = z(e), d = r ?? 1, f = za(l);
2493
2493
  if (n !== !0 && d > f && l?.capabilities?.query.supportsPagination) {
2494
2494
  let m = 0, y = 0;
2495
2495
  const p = Math.ceil(d / f), g = Math.ceil(p / W.maxParallelRequests), S = [];
@@ -2508,7 +2508,7 @@ async function Fe(t) {
2508
2508
  S.push(v), y += 1;
2509
2509
  }
2510
2510
  c = (await Promise.all(S)).flat();
2511
- } else (Number.isNaN(d) || d >= 0) && (c = await Oa({
2511
+ } else (Number.isNaN(d) || d >= 0) && (c = await Ia({
2512
2512
  queryObject: e,
2513
2513
  queryConfig: i,
2514
2514
  returnUniqueIdsOnly: a,
@@ -2536,7 +2536,7 @@ function Ls(t) {
2536
2536
  e !== void 0 && e.abort(), Ge.set(t, new AbortController());
2537
2537
  }
2538
2538
  }
2539
- function Ia(t) {
2539
+ function Ea(t) {
2540
2540
  return {
2541
2541
  lowerBoundaryAlias: `charts_lower_boundary_${t}`,
2542
2542
  upperBoundaryAlias: `charts_upper_boundary_${t}`
@@ -2573,18 +2573,18 @@ async function Ps(t) {
2573
2573
  d = (await e.queryAttributeBins(y, { signal: l })).features;
2574
2574
  }
2575
2575
  } catch (y) {
2576
- const p = o ?? (await ft(
2576
+ const p = o ?? (await mt(
2577
2577
  ze(document.documentElement).t9nLocale,
2578
- yt("./assets/common/t9n"),
2578
+ gt("./assets/common/t9n"),
2579
2579
  "messages."
2580
2580
  )).errorStrings;
2581
2581
  throw new re(le.QueryFeaturesError, p.errors.queryError, y);
2582
2582
  }
2583
2583
  }
2584
2584
  if (f === !1) {
2585
- const m = o ?? (await ft(
2585
+ const m = o ?? (await mt(
2586
2586
  ze(document.documentElement).t9nLocale,
2587
- yt("./assets/common/t9n"),
2587
+ gt("./assets/common/t9n"),
2588
2588
  "messages."
2589
2589
  )).errorStrings;
2590
2590
  throw new re(
@@ -2613,7 +2613,7 @@ async function Ms(t) {
2613
2613
  return a;
2614
2614
  }
2615
2615
  function Ds(t) {
2616
- const { x: e, y: i, trendlineXToY: a, data: r } = t, { min: n, max: s } = r ? ht(r, (u) => u[e]) : { min: Number.NaN, max: Number.NaN };
2616
+ const { x: e, y: i, trendlineXToY: a, data: r } = t, { min: n, max: s } = r ? St(r, (u) => u[e]) : { min: Number.NaN, max: Number.NaN };
2617
2617
  return [
2618
2618
  { [e]: n ?? Number.NaN, [i]: a(n ?? Number.NaN) },
2619
2619
  { [e]: s ?? Number.NaN, [i]: a(s ?? Number.NaN) }
@@ -2626,7 +2626,7 @@ function Os(t) {
2626
2626
  }
2627
2627
  async function Is(t) {
2628
2628
  const { statsMap: e, queryObject: i, chartConfig: a, queryConfig: r, errorStrings: n, abortSignal: s } = t, o = a.series[0], { x: u, y: c } = o;
2629
- mt(i);
2629
+ yt(i);
2630
2630
  let l = Number.NaN, d = [
2631
2631
  { [u]: Number.NaN, [c]: Number.NaN },
2632
2632
  { [u]: Number.NaN, [c]: Number.NaN }
@@ -2667,7 +2667,7 @@ async function Is(t) {
2667
2667
  }
2668
2668
  return { r2: l, trendLinePoints: d };
2669
2669
  }
2670
- function Ea(t) {
2670
+ function qa(t) {
2671
2671
  const { data: e, chartConfig: i } = t, a = i.series[0], { x: r, y: n } = a;
2672
2672
  let { r2: s, trendLinePoints: o } = C.scatterplotSeries;
2673
2673
  const u = Os({ data: e, x: r, y: n });
@@ -2677,7 +2677,7 @@ function Ea(t) {
2677
2677
  }
2678
2678
  return { r2: s, trendLinePoints: o };
2679
2679
  }
2680
- async function qa(t) {
2680
+ async function Va(t) {
2681
2681
  const e = await Ms(t), { chartConfig: i } = t, a = i.series[0], { x: r, y: n } = a, { r2: s } = C.scatterplotSeries, o = [
2682
2682
  { [r]: Number.NaN, [n]: Number.NaN },
2683
2683
  { [r]: Number.NaN, [n]: Number.NaN }
@@ -2689,13 +2689,13 @@ async function qa(t) {
2689
2689
  } catch {
2690
2690
  c = !0;
2691
2691
  }
2692
- return (!e || c) && (u = Ea(t)), u;
2692
+ return (!e || c) && (u = qa(t)), u;
2693
2693
  }
2694
2694
  const Es = 50, qs = 4194304;
2695
2695
  async function Vs(t) {
2696
2696
  const { layer: e, chartConfig: i, rawData: a } = t;
2697
2697
  let r;
2698
- const n = i.series[0], { x: s, y: o } = n, { idField: u } = ve(e), c = await ct(e);
2698
+ const n = i.series[0], { x: s, y: o } = n, { idField: u } = ve(e), c = await dt(e);
2699
2699
  if (c) {
2700
2700
  const l = c.bandInfos, d = l.length === 1, f = d ? l?.[0].name : "";
2701
2701
  r = a.map((m) => ({
@@ -2734,12 +2734,12 @@ async function $s(t) {
2734
2734
  chartConfig: e,
2735
2735
  rawData: u
2736
2736
  });
2737
- r !== !1 && pt({
2737
+ r !== !1 && ht({
2738
2738
  arrayToSort: c,
2739
2739
  sortingField: e.series[0].x,
2740
2740
  orderBy: ye.Ascending
2741
2741
  });
2742
- const l = /* @__PURE__ */ new Map(), { r2: d, trendLinePoints: f } = n !== !1 ? await qa({
2742
+ const l = /* @__PURE__ */ new Map(), { r2: d, trendLinePoints: f } = n !== !1 ? await Va({
2743
2743
  data: c,
2744
2744
  statsMap: l,
2745
2745
  queryConfig: i,
@@ -2874,7 +2874,7 @@ function js(t) {
2874
2874
  }
2875
2875
  return r;
2876
2876
  }
2877
- function Ii(t, e) {
2877
+ function Ei(t, e) {
2878
2878
  let i;
2879
2879
  return t == null && e ? i = {
2880
2880
  groupKey: C.nullValue,
@@ -2885,10 +2885,10 @@ function Ii(t, e) {
2885
2885
  async function Hs(t) {
2886
2886
  const { layer: e, geometry: i, filterByViewExtent: a, view: r, abortKey: n, abortSignal: s } = t;
2887
2887
  e.loaded || await e.load({ signal: s });
2888
- const o = await ct(e, s), u = dt(i) ?? e.fullExtent;
2888
+ const o = await dt(e, s), u = ft(i) ?? e.fullExtent;
2889
2889
  let c = o?.attributeTable;
2890
2890
  if (a) {
2891
- const l = r ? new ca({
2891
+ const l = r ? new da({
2892
2892
  x: r.resolution,
2893
2893
  y: r.resolution,
2894
2894
  spatialReference: r.spatialReference
@@ -2937,12 +2937,12 @@ async function zs(t) {
2937
2937
  else {
2938
2938
  const m = i.groupByFieldsForStatistics?.[0] ?? "", y = f.some((S) => S.query?.fetchNullValues), p = /* @__PURE__ */ new Map();
2939
2939
  for (const S of d) {
2940
- const { groupKey: b } = Ii(S.attributes[m], y);
2940
+ const { groupKey: b } = Ei(S.attributes[m], y);
2941
2941
  b === C.nullValue && !y || (p.has(b) || p.set(b, []), p.get(b).push(S.attributes));
2942
2942
  }
2943
2943
  const g = [];
2944
2944
  p.forEach((S) => {
2945
- const b = {}, v = S[0][m], { display: x, original: B } = Ii(v, y);
2945
+ const b = {}, v = S[0][m], { display: x, original: B } = Ei(v, y);
2946
2946
  b[m] = x, b[C.xAxisField] = x, b[C.originalCategoryValue] = B, f.forEach((N) => {
2947
2947
  const T = N.query?.outStatistics?.[0];
2948
2948
  if (!T) {
@@ -2971,7 +2971,7 @@ async function zs(t) {
2971
2971
  return u;
2972
2972
  }
2973
2973
  async function gd(t) {
2974
- const { layer: e, category: i, splitByField: a, fetchNullValues: r } = t, o = (await ct(e))?.attributeTable?.features, u = a ?? i;
2974
+ const { layer: e, category: i, splitByField: a, fetchNullValues: r } = t, o = (await dt(e))?.attributeTable?.features, u = a ?? i;
2975
2975
  return Array.from(
2976
2976
  new Set(
2977
2977
  o?.filter((l) => {
@@ -3003,7 +3003,7 @@ function Gs(t, e) {
3003
3003
  function Us(t) {
3004
3004
  const { chartConfig: e, layer: i, selectionDataItems: a } = t;
3005
3005
  let r;
3006
- const n = i.serviceRasterInfo?.attributeTable, s = e.series?.[0]?.x, o = n?.features, u = n?.fields?.find(({ name: c }) => c.toLowerCase() === "value")?.name;
3006
+ const n = i.serviceRasterInfo?.attributeTable ?? ct(i)?.attributeTable, s = e.series?.[0]?.x, o = n?.features, u = n?.fields?.find(({ name: c }) => c.toLowerCase() === "value")?.name;
3007
3007
  if (a.length > 0 && s && o && o.length > 0 && u) {
3008
3008
  const c = new Set(
3009
3009
  a.map((l) => l[s]).filter((l) => l !== void 0)
@@ -3037,7 +3037,7 @@ async function pd(t) {
3037
3037
  if (Dr(Zs, i))
3038
3038
  switch (_(i?.series)) {
3039
3039
  case h.BarSeries:
3040
- a.loaded || await a.load({ signal: r }), e = !!(await ct(a, r))?.attributeTable;
3040
+ a.loaded || await a.load({ signal: r }), e = !!(await dt(a, r))?.attributeTable;
3041
3041
  break;
3042
3042
  case h.HistogramSeries:
3043
3043
  case h.ScatterSeries:
@@ -3049,7 +3049,7 @@ async function pd(t) {
3049
3049
  async function Xs(t) {
3050
3050
  const { layer: e, chartConfig: i } = t;
3051
3051
  let a;
3052
- return ie(e) ? a = e : i?.iLayer?.layerType === "ArcGISImageServiceLayer" ? a = await $a(i.iLayer) : i?.iLayer?.layerType === "ArcGISTiledImageServiceLayer" && (a = await ka(i.iLayer)), a;
3052
+ return ie(e) ? a = e : i?.iLayer?.layerType === "ArcGISImageServiceLayer" ? a = await ka(i.iLayer) : i?.iLayer?.layerType === "ArcGISTiledImageServiceLayer" && (a = await Qa(i.iLayer)), a;
3053
3053
  }
3054
3054
  function Js(t) {
3055
3055
  let e;
@@ -3066,11 +3066,11 @@ function Js(t) {
3066
3066
  }
3067
3067
  return e;
3068
3068
  }
3069
- function Va(t) {
3069
+ function Ra(t) {
3070
3070
  if (!t.loaded)
3071
3071
  throw new Error("Raster layer must be loaded to get its ID field name");
3072
3072
  let e;
3073
- const i = bt(t);
3073
+ const i = ct(t);
3074
3074
  if (i?.attributeTable) {
3075
3075
  const a = i.attributeTable.fields, r = a.find((n) => n.type === "oid")?.name;
3076
3076
  r ? e = r : e = a.find((s) => s.name.toLowerCase() === "value")?.name;
@@ -3078,21 +3078,21 @@ function Va(t) {
3078
3078
  e = ii;
3079
3079
  return e ?? ii;
3080
3080
  }
3081
- function Ra(t) {
3081
+ function $a(t) {
3082
3082
  const { layer: e, chartType: i, rasterInfo: a, popupTemplateFieldInfosEnabled: r } = t;
3083
3083
  if (!e.loaded)
3084
3084
  throw new Error("Raster layer must be loaded to get its fields info");
3085
- const n = a ?? bt(e);
3085
+ const n = a ?? ct(e);
3086
3086
  if (!n)
3087
3087
  throw new Error("Raster info must be provided or generated beforehand to get raster layer fields info");
3088
3088
  let s = [];
3089
- return i !== void 0 ? i !== h.BarSeries ? s = Ei({ layer: e, rasterInfo: n, popupTemplateFieldInfosEnabled: r }) : n.attributeTable && (s = n.attributeTable.fields.map((o) => o.toJSON())) : n.attributeTable ? s = n.attributeTable.fields.map((o) => o.toJSON()) : s = Ei({ layer: e, rasterInfo: n, popupTemplateFieldInfosEnabled: r }), s;
3089
+ return i !== void 0 ? i !== h.BarSeries ? s = qi({ layer: e, rasterInfo: n, popupTemplateFieldInfosEnabled: r }) : n.attributeTable && (s = n.attributeTable.fields.map((o) => o.toJSON())) : n.attributeTable ? s = n.attributeTable.fields.map((o) => o.toJSON()) : s = qi({ layer: e, rasterInfo: n, popupTemplateFieldInfosEnabled: r }), s;
3090
3090
  }
3091
- function Ei(t) {
3091
+ function qi(t) {
3092
3092
  const { layer: e, rasterInfo: i, popupTemplateFieldInfosEnabled: a } = t;
3093
3093
  if (!e.loaded)
3094
3094
  throw new Error("Raster layer must be loaded to get its fields info");
3095
- const r = i ?? bt(e);
3095
+ const r = i ?? ct(e);
3096
3096
  if (!r)
3097
3097
  throw new Error("Raster info must be provided or generated beforehand to get raster layer fields info");
3098
3098
  let n;
@@ -3117,15 +3117,15 @@ function Ei(t) {
3117
3117
  }
3118
3118
  return n;
3119
3119
  }
3120
- async function ct(t, e) {
3121
- return t.loaded || await t.load({ signal: e }), Qr(t) ? bt(t) ?? void 0 : await t.generateRasterInfo(t.rasterFunction, { signal: e });
3120
+ async function dt(t, e) {
3121
+ return t.loaded || await t.load({ signal: e }), Qr(t) ? ct(t) ?? void 0 : await t.generateRasterInfo(t.rasterFunction, { signal: e });
3122
3122
  }
3123
3123
  async function hd(t, e) {
3124
3124
  t.loaded || await t.load();
3125
- const i = await ct(t);
3126
- return Ra({ layer: t, rasterInfo: i, popupTemplateFieldInfosEnabled: e });
3125
+ const i = await dt(t);
3126
+ return $a({ layer: t, rasterInfo: i, popupTemplateFieldInfosEnabled: e });
3127
3127
  }
3128
- const $a = Et(
3128
+ const ka = Et(
3129
3129
  async (t, e) => {
3130
3130
  const i = {}, a = t.layerDefinition;
3131
3131
  i.definitionExpression = a?.definitionExpression, i.id = t.id, t.url !== void 0 && (i.url = t.url), t.itemId !== void 0 && t.layerDefinition?.id !== void 0 && (i.portalItem = { id: t.itemId });
@@ -3134,7 +3134,7 @@ const $a = Et(
3134
3134
  },
3135
3135
  (t) => JSON.stringify(t, Object.keys(t).sort())
3136
3136
  // stringify with sorted keys
3137
- ), ka = Et(
3137
+ ), Qa = Et(
3138
3138
  async (t, e) => {
3139
3139
  const i = {};
3140
3140
  i.id = t.id, t.url !== void 0 && (i.url = t.url), t.itemId !== void 0 && (i.portalItem = { id: t.itemId });
@@ -3156,7 +3156,7 @@ const $a = Et(
3156
3156
  let i = -1;
3157
3157
  if (!t.loaded)
3158
3158
  throw new Error("Raster layer must be loaded to get its band ID by name");
3159
- const a = bt(t)?.bandInfos;
3159
+ const a = ct(t)?.bandInfos;
3160
3160
  if (a?.length === 1)
3161
3161
  i = 0;
3162
3162
  else if (e && a?.length) {
@@ -3203,12 +3203,12 @@ async function eo(t) {
3203
3203
  const o = n && Ge.get(n)?.signal || void 0, u = z(e);
3204
3204
  u.loaded || await kt(u, o);
3205
3205
  const l = {
3206
- geometry: dt(i.geometry) ?? u.fullExtent,
3206
+ geometry: ft(i.geometry) ?? u.fullExtent,
3207
3207
  autoResample: !0,
3208
3208
  maxPixelCount: r,
3209
3209
  skipFactor: a
3210
3210
  }, d = await Yr(u, l, { signal: o });
3211
- s = ea.fromJSON(d.featureSet).features;
3211
+ s = ta.fromJSON(d.featureSet).features;
3212
3212
  } catch {
3213
3213
  s = [];
3214
3214
  }
@@ -3257,8 +3257,8 @@ const gi = Et(
3257
3257
  r = t.layerDefinition;
3258
3258
  const n = {};
3259
3259
  if (a !== void 0) {
3260
- if (n.source = ea.fromJSON(a).features, r?.fields !== void 0 && (n.fields = r.fields.map((o) => wr.fromJSON(o))), r?.objectIdField !== void 0 && (n.objectIdField = r.objectIdField), r?.geometryType !== void 0) {
3261
- const o = Xi.fromJSON({
3260
+ if (n.source = ta.fromJSON(a).features, r?.fields !== void 0 && (n.fields = r.fields.map((o) => wr.fromJSON(o))), r?.objectIdField !== void 0 && (n.objectIdField = r.objectIdField), r?.geometryType !== void 0) {
3261
+ const o = Ji.fromJSON({
3262
3262
  geometryType: r.geometryType
3263
3263
  });
3264
3264
  o?.type !== void 0 && o?.type !== "extent" && (n.geometryType = o.type);
@@ -3268,7 +3268,7 @@ const gi = Et(
3268
3268
  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 });
3269
3269
  if (r !== void 0) {
3270
3270
  const o = r.drawingInfo;
3271
- o?.renderer !== void 0 && (n.renderer = Ki.fromJSON(o.renderer));
3271
+ o?.renderer !== void 0 && (n.renderer = ea.fromJSON(o.renderer));
3272
3272
  }
3273
3273
  const s = new Tr(n);
3274
3274
  return await s.load({ signal: e }), s;
@@ -3283,10 +3283,10 @@ async function Fd(t, e) {
3283
3283
  i = await gi(t, e);
3284
3284
  break;
3285
3285
  case "ArcGISImageServiceLayer":
3286
- i = await $a(t, e);
3286
+ i = await ka(t, e);
3287
3287
  break;
3288
3288
  case "ArcGISTiledImageServiceLayer":
3289
- i = await ka(t, e);
3289
+ i = await Qa(t, e);
3290
3290
  break;
3291
3291
  case "WCS":
3292
3292
  i = await Ks(t, e);
@@ -3312,7 +3312,7 @@ function Ce(t, e) {
3312
3312
  let a = [];
3313
3313
  if (i !== void 0) {
3314
3314
  const r = e === !0 && i?.popupTemplate?.fieldInfos !== void 0;
3315
- ie(i) ? a = Ra({ layer: i, popupTemplateFieldInfosEnabled: e }) : a = i.fields.map((n) => {
3315
+ ie(i) ? a = $a({ layer: i, popupTemplateFieldInfosEnabled: e }) : a = i.fields.map((n) => {
3316
3316
  const s = n.toJSON();
3317
3317
  if (r) {
3318
3318
  const o = i.popupTemplate?.fieldInfos?.find(
@@ -3331,7 +3331,7 @@ function xd(t, e = []) {
3331
3331
  function $t(t) {
3332
3332
  let e, i = !1;
3333
3333
  if (ie(t))
3334
- e = [Va(t)];
3334
+ e = [Ra(t)];
3335
3335
  else {
3336
3336
  const a = ge(t);
3337
3337
  a && ("uniqueIdFields" in a && a.uniqueIdFields && a.uniqueIdFields.length > 0 ? e = a.uniqueIdFields : (e = [a.objectIdField], i = !0));
@@ -3341,14 +3341,14 @@ function $t(t) {
3341
3341
  function ve(t) {
3342
3342
  let e = "", i = !1;
3343
3343
  if (ie(t))
3344
- e = Va(t);
3344
+ e = Ra(t);
3345
3345
  else if (t) {
3346
3346
  const a = $t(t);
3347
3347
  i = a.isTraditionalTypeOID, a.idFields && (e = a.idFields[0]);
3348
3348
  }
3349
3349
  return { idField: e, isTraditionalTypeOID: i };
3350
3350
  }
3351
- function St(t) {
3351
+ function Ft(t) {
3352
3352
  const e = [
3353
3353
  U.Single,
3354
3354
  U.Double,
@@ -3379,7 +3379,7 @@ function ro(t) {
3379
3379
  return t.filter((e) => ao(e)).map((e) => e.name);
3380
3380
  }
3381
3381
  function Nd(t) {
3382
- return t.filter((e) => St(e)).map((e) => e.name);
3382
+ return t.filter((e) => Ft(e)).map((e) => e.name);
3383
3383
  }
3384
3384
  function ri(t, e) {
3385
3385
  let i;
@@ -3393,15 +3393,15 @@ function ni(t, e) {
3393
3393
  let i = e?.getName(t?.toString()) ?? e?.getName(t) ?? e?.getName(Number(t));
3394
3394
  return i === null && (i = void 0), i;
3395
3395
  }
3396
- function qi(t) {
3396
+ function Vi(t) {
3397
3397
  const { queryObject: e, fieldName: i, fieldValue: a } = t;
3398
3398
  return ie(e) ? void 0 : ni(a, ri(e, i));
3399
3399
  }
3400
- async function Qa(t) {
3400
+ async function _a(t) {
3401
3401
  let e = [];
3402
3402
  return t && !ge(t)?.isTable && t.fieldsIndex && (e = await Lr.getRendererFields(t.renderer, t.fieldsIndex)), e;
3403
3403
  }
3404
- function _a(t) {
3404
+ function ja(t) {
3405
3405
  const e = "/rest/services";
3406
3406
  let i = t.toLowerCase();
3407
3407
  const a = i.indexOf(e);
@@ -3411,7 +3411,7 @@ async function no(t, e) {
3411
3411
  let i = !0;
3412
3412
  const a = ".arcgis.com/", r = t?.url, n = r?.includes(a);
3413
3413
  if (r && n && ge(t)?.sourceJSON?.serviceItemId !== void 0) {
3414
- const s = _a(r);
3414
+ const s = ja(r);
3415
3415
  try {
3416
3416
  const o = (await Lt(s, { query: { f: "json" }, signal: e })).data;
3417
3417
  if (o.owningTenant !== void 0 && o.owningSystemUrl !== void 0) {
@@ -3442,7 +3442,7 @@ function lo(t) {
3442
3442
  (n) => so({ queryObject: i, fieldToMatch: n, returnUndefinedIfNotFound: a })
3443
3443
  )), r;
3444
3444
  }
3445
- function ja(t) {
3445
+ function Ha(t) {
3446
3446
  const { queryObject: e, chartConfig: i, runtimeDataFilters: a, ignoreViewExtent: r, view: n } = t, { series: s, dataFilters: o } = i, {
3447
3447
  where: u,
3448
3448
  gdbVersion: c,
@@ -3526,10 +3526,10 @@ function Ad(t) {
3526
3526
  return a;
3527
3527
  }
3528
3528
  const wd = {
3529
- getServerRestInfo: _a
3529
+ getServerRestInfo: ja
3530
3530
  };
3531
3531
  async function kt(t, e) {
3532
- await t.load({ signal: e }), (oa(t) || la(t)) && await t.generateRasterInfo(t.rasterFunction, {
3532
+ await t.load({ signal: e }), (la(t) || ua(t)) && await t.generateRasterInfo(t.rasterFunction, {
3533
3533
  signal: e
3534
3534
  });
3535
3535
  }
@@ -3537,7 +3537,7 @@ function mo(t) {
3537
3537
  const e = !t.geometry || t.geometry.type === "extent", i = (t.where ?? "").toUpperCase(), a = !i.includes("CURRENT_TIMESTAMP") && !i.includes("CURRENT_DATE") && !i.includes("CURRENT_TIME");
3538
3538
  return e && a;
3539
3539
  }
3540
- function Ha(t) {
3540
+ function za(t) {
3541
3541
  let e = W.maxRecords;
3542
3542
  if (t && "sourceJSON" in t && t.sourceJSON?.maxRecordCount) {
3543
3543
  const { sourceJSON: i } = t;
@@ -3569,16 +3569,16 @@ function go(t) {
3569
3569
  }
3570
3570
  function Ld(t) {
3571
3571
  let e;
3572
- return t !== void 0 && (e = new Ji({
3572
+ return t !== void 0 && (e = new Ki({
3573
3573
  start: new Date(t[0]),
3574
3574
  end: new Date(t[1])
3575
3575
  })), e;
3576
3576
  }
3577
- function dt(t) {
3577
+ function ft(t) {
3578
3578
  let e;
3579
- return t !== void 0 && (e = Xi.fromJSON(t)), e;
3579
+ return t !== void 0 && (e = Ji.fromJSON(t)), e;
3580
3580
  }
3581
- function za(t) {
3581
+ function Wa(t) {
3582
3582
  return t === void 0 ? ["*"] : Array.from(new Set(t));
3583
3583
  }
3584
3584
  function Qt(t) {
@@ -3596,8 +3596,8 @@ function Qt(t) {
3596
3596
  (N) => N.statisticType !== D.EnvelopeAggregate || B
3597
3597
  ).map((N) => Nr.fromJSON(N));
3598
3598
  }
3599
- const x = dt(l);
3600
- return x !== void 0 && (S.geometry = x, a?.spatialRelationship && (S.spatialRelationship = a.spatialRelationship), ma(p) && (d !== void 0 && (S.distance = d), f !== void 0 && (S.units = f))), m && (S.timeExtent = new Ji({
3599
+ const x = ft(l);
3600
+ return x !== void 0 && (S.geometry = x, a?.spatialRelationship && (S.spatialRelationship = a.spatialRelationship), ya(p) && (d !== void 0 && (S.distance = d), f !== void 0 && (S.units = f))), m && (S.timeExtent = new Ki({
3601
3601
  start: m?.[0],
3602
3602
  end: m?.[1]
3603
3603
  })), mo(S) && (S.cacheHint = !0), S;
@@ -3624,7 +3624,7 @@ function ho(t) {
3624
3624
  view: o,
3625
3625
  dateField: r,
3626
3626
  useViewTimeZone: u ?? !1
3627
- }), b = Ia(r);
3627
+ }), b = Ea(r);
3628
3628
  if (S.lowerBoundaryAlias = b.lowerBoundaryAlias, S.upperBoundaryAlias = b.upperBoundaryAlias, S.binParameters = {
3629
3629
  type: "date",
3630
3630
  field: r,
@@ -3681,7 +3681,7 @@ function pi(t) {
3681
3681
  break;
3682
3682
  }
3683
3683
  if (l) {
3684
- const m = o ? ` ${Pa({
3684
+ const m = o ? ` ${Ma({
3685
3685
  dataTimeZone: n,
3686
3686
  runsOnClientQueryEngine: s,
3687
3687
  outTimeZone: r
@@ -3700,7 +3700,7 @@ function So(t) {
3700
3700
  let n;
3701
3701
  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;
3702
3702
  }
3703
- function Vi(t) {
3703
+ function Ri(t) {
3704
3704
  const {
3705
3705
  temporalBinning: e,
3706
3706
  xOrY: i,
@@ -3749,7 +3749,7 @@ function Fo(t) {
3749
3749
  type: "fixed-interval",
3750
3750
  interval: 1
3751
3751
  }, p.lowerBoundaryAlias = W.heatChartLowerBoundaryAlias, p.upperBoundaryAlias = W.heatChartUpperBoundaryAlias, o !== void 0 && (p.binParameters.firstDayOfWeek = o);
3752
- const g = Vi({
3752
+ const g = Ri({
3753
3753
  temporalBinning: n,
3754
3754
  xOrY: a,
3755
3755
  xOrYFieldType: m,
@@ -3757,7 +3757,7 @@ function Fo(t) {
3757
3757
  includeLeapDay: u
3758
3758
  }), { field: S, expression: b, start: v, end: x } = g;
3759
3759
  S ? p.binParameters.field = S : b && (p.binParameters.expression = b, p.binParameters.expressionValueType = "integer", p.binParameters.type === "fixed-interval" && (v !== void 0 && (p.binParameters.start = v), x !== void 0 && (p.binParameters.end = x)));
3760
- const B = Vi({
3760
+ const B = Ri({
3761
3761
  temporalBinning: s,
3762
3762
  xOrY: r,
3763
3763
  xOrYFieldType: y,
@@ -3777,7 +3777,7 @@ function bo(t) {
3777
3777
  queryObject: e,
3778
3778
  queryConfig: i,
3779
3779
  useViewTimeZone: !1
3780
- }), l = Da(s, o);
3780
+ }), l = Oa(s, o);
3781
3781
  return c.lowerBoundaryAlias = l.lowerBoundaryAlias, c.upperBoundaryAlias = l.upperBoundaryAlias, c.binParameters = {
3782
3782
  type: "fixed-interval",
3783
3783
  field: s,
@@ -3801,18 +3801,18 @@ function hi(t) {
3801
3801
  });
3802
3802
  l.returnGeometry = !1;
3803
3803
  const d = z(e);
3804
- return l.outFields = za(c), l.groupByFieldsForStatistics = r ?? l.groupByFieldsForStatistics, l.orderByFields = n ?? [], l.objectIds = i?.objectIds, a !== void 0 && (l.maxRecordCountFactor = a), s !== void 0 && s !== "" && (l.gdbVersion = s), u !== void 0 && (l.num = u), o !== void 0 && (l.start = o, l.num = l.num ?? Ha(d)), l;
3804
+ return l.outFields = Wa(c), l.groupByFieldsForStatistics = r ?? l.groupByFieldsForStatistics, l.orderByFields = n ?? [], l.objectIds = i?.objectIds, a !== void 0 && (l.maxRecordCountFactor = a), s !== void 0 && s !== "" && (l.gdbVersion = s), u !== void 0 && (l.num = u), o !== void 0 && (l.start = o, l.num = l.num ?? za(d)), l;
3805
3805
  }
3806
3806
  function xo(t) {
3807
3807
  return t && "sourceJSON" in t && t.sourceJSON?.advancedQueryCapabilities?.supportsMaxRecordCountFactor === !0 ? W.maxRecordCountFactor : void 0;
3808
3808
  }
3809
3809
  const Pd = {
3810
- sanitizeOutFields: za
3810
+ sanitizeOutFields: Wa
3811
3811
  };
3812
3812
  function Co(t = Z.None, e) {
3813
3813
  return t === Z.None || t === Z.Log && e > 0 || t === Z.Sqrt && e >= 0;
3814
3814
  }
3815
- function Wa(t, e) {
3815
+ function Ga(t, e) {
3816
3816
  const i = { valid: !1 };
3817
3817
  return e === !0 ? i.invalidType = j.HistogramEmptyField : t === Z.Log ? i.invalidType = j.NegativeValueInLogCalculation : t === Z.Sqrt && (i.invalidType = j.NegativeValueInSqrtCalculation), i;
3818
3818
  }
@@ -3839,7 +3839,7 @@ function Bo(t) {
3839
3839
  }
3840
3840
  return e;
3841
3841
  }
3842
- function Ga(t) {
3842
+ function Ua(t) {
3843
3843
  let e = "field";
3844
3844
  switch (t) {
3845
3845
  case Z.Log:
@@ -3922,7 +3922,7 @@ function wo(t) {
3922
3922
  };
3923
3923
  return u !== Z.None && (c = {
3924
3924
  ...c,
3925
- normalizationType: Ga(u)
3925
+ normalizationType: Ua(u)
3926
3926
  }), c;
3927
3927
  }
3928
3928
  function Lo(t) {
@@ -3951,7 +3951,7 @@ function Lo(t) {
3951
3951
  };
3952
3952
  return d !== Z.None && (f = {
3953
3953
  ...f,
3954
- normalizationType: Ga(d)
3954
+ normalizationType: Ua(d)
3955
3955
  }), f;
3956
3956
  }
3957
3957
  function Po(t, e) {
@@ -3970,7 +3970,7 @@ async function Mo(t) {
3970
3970
  abortSignal: u
3971
3971
  } = t, c = e.series[0], { dataTransformationType: l } = c;
3972
3972
  let d = { valid: !0 };
3973
- const f = z(a), y = dt(i?.geometry)?.extent?.toJSON() !== void 0, p = s, g = wo({
3973
+ const f = z(a), y = ft(i?.geometry)?.extent?.toJSON() !== void 0, p = s, g = wo({
3974
3974
  seriesConfig: c,
3975
3975
  layer: f,
3976
3976
  view: p,
@@ -3979,27 +3979,27 @@ async function Mo(t) {
3979
3979
  abortSignal: u
3980
3980
  });
3981
3981
  let S;
3982
- if (p !== void 0 && (S = new Ai({
3982
+ if (p !== void 0 && (S = new wi({
3983
3983
  geometry: p.extent
3984
- }), p.extent !== void 0 && ma(f))) {
3984
+ }), p.extent !== void 0 && ya(f))) {
3985
3985
  const { distance: A, units: I } = i;
3986
3986
  A !== void 0 && (S.distance = A), I !== void 0 && (S.units = I);
3987
3987
  }
3988
3988
  if (i.timeExtent) {
3989
3989
  const A = { start: i.timeExtent[0], end: i.timeExtent[1] };
3990
- S === void 0 ? S = new Ai({ timeExtent: A }) : S.timeExtent = A;
3990
+ S === void 0 ? S = new wi({ timeExtent: A }) : S.timeExtent = A;
3991
3991
  }
3992
3992
  g.filter = S;
3993
3993
  let b;
3994
3994
  g.outStatisticTypes = { exclude: ["median"] };
3995
3995
  try {
3996
- b = await wi(g);
3996
+ b = await Li(g);
3997
3997
  } catch (A) {
3998
3998
  throw new re(le.QueryFeaturesError, o.errors.queryError, A);
3999
3999
  }
4000
4000
  g.outStatisticTypes = { include: ["median"] };
4001
4001
  try {
4002
- const A = await wi(g);
4002
+ const A = await Li(g);
4003
4003
  A?.median && (b.median = A.median);
4004
4004
  } catch {
4005
4005
  }
@@ -4007,7 +4007,7 @@ async function Mo(t) {
4007
4007
  const { avg: v, count: x, stddev: B, min: N, max: T, sum: w, median: L } = b;
4008
4008
  if (x === 0)
4009
4009
  d = {
4010
- ...Wa(l)
4010
+ ...Ga(l)
4011
4011
  };
4012
4012
  else {
4013
4013
  const A = Lo({
@@ -4043,7 +4043,7 @@ async function Mo(t) {
4043
4043
  }
4044
4044
  return d;
4045
4045
  }
4046
- async function Ua(t) {
4046
+ async function Ya(t) {
4047
4047
  const { chartConfig: e, queryConfig: i, queryObject: a, abortKey: r, abortSignal: n, errorStrings: s, view: o } = t, { series: u } = e, c = u[0];
4048
4048
  let l;
4049
4049
  if (ie(a))
@@ -4063,7 +4063,7 @@ async function Ua(t) {
4063
4063
  abortKey: r,
4064
4064
  abortSignal: n
4065
4065
  });
4066
- l = { valid: !0 }, !f || m ? l = Wa(c.dataTransformationType, m) : l = await Mo({
4066
+ l = { valid: !0 }, !f || m ? l = Ga(c.dataTransformationType, m) : l = await Mo({
4067
4067
  chartConfig: e,
4068
4068
  queryObject: a,
4069
4069
  queryConfig: i,
@@ -4093,7 +4093,7 @@ async function Do(t) {
4093
4093
  })) }
4094
4094
  };
4095
4095
  }
4096
- const Ri = {
4096
+ const $i = {
4097
4097
  Count: "count",
4098
4098
  Start: "minValue",
4099
4099
  End: "maxValue"
@@ -4129,7 +4129,7 @@ function Io(t) {
4129
4129
  return We(t) && we(t?.axes?.[0]?.valueFormat) && we(t?.axes?.[1]?.valueFormat);
4130
4130
  }
4131
4131
  const Eo = [
4132
- ...sa,
4132
+ ...oa,
4133
4133
  "ar-u-nu-latn",
4134
4134
  "en-AU",
4135
4135
  "en-GB",
@@ -4143,7 +4143,7 @@ const Eo = [
4143
4143
  "it-IT"
4144
4144
  ];
4145
4145
  function Id(t) {
4146
- const { t9nLocale: e } = ze(t ?? document.documentElement), i = Ya(t ?? document.documentElement), a = kr(t ?? document.documentElement) === "rtl";
4146
+ const { t9nLocale: e } = ze(t ?? document.documentElement), i = Za(t ?? document.documentElement), a = kr(t ?? document.documentElement) === "rtl";
4147
4147
  return { locale: e, formatLocale: i, rtl: a };
4148
4148
  }
4149
4149
  function Ed(t) {
@@ -4173,10 +4173,10 @@ function Rd(t, e) {
4173
4173
  return Number.parseFloat(r);
4174
4174
  }
4175
4175
  function qo(t) {
4176
- const e = Array.from(sa);
4176
+ const e = Array.from(oa);
4177
4177
  return Eo.includes(t) && !e.includes(t);
4178
4178
  }
4179
- function Ya(t) {
4179
+ function Za(t) {
4180
4180
  const { lang: e, t9nLocale: i } = ze(t);
4181
4181
  return qo(e) ? e : i;
4182
4182
  }
@@ -4215,7 +4215,7 @@ function $d(t) {
4215
4215
  seriesCount: r,
4216
4216
  queryObject: n,
4217
4217
  filterBySelection: s,
4218
- formatLocale: o = Ya(document.documentElement),
4218
+ formatLocale: o = Za(document.documentElement),
4219
4219
  isTemporalChart: u,
4220
4220
  isGaugeChartByFeature: c,
4221
4221
  errorStrings: l
@@ -4542,7 +4542,7 @@ function Ho(t, e) {
4542
4542
  const r = t[e[E.IQR]], n = t[e[E.FirstQuartile]], s = t[e[E.ThirdQuartile]];
4543
4543
  return Number.isFinite(r) && Number.isFinite(n) && Number.isFinite(s) && (i = n - r * 1.5, a = s + r * 1.5), { outlierMinThreshold: i, outlierMaxThreshold: a };
4544
4544
  }
4545
- function $i(t) {
4545
+ function ki(t) {
4546
4546
  const { yField: e, xField: i, xValue: a, splitByField: r, splitByValue: n, outlierMaxThreshold: s, outlierMinThreshold: o, target: u } = t;
4547
4547
  let c;
4548
4548
  if (i !== void 0 && a !== void 0) {
@@ -4557,7 +4557,7 @@ function $i(t) {
4557
4557
  let d;
4558
4558
  return u === "outliers" && o !== s ? d = `(${e}<${o} OR ${e}>${s})` : u === "alternativeData" && (o === s ? d = `(${e}=${o})` : d = `(${e}>=${o} AND ${e}<=${s})`), [c, l, d].filter((m) => m !== void 0).join(" AND ");
4559
4559
  }
4560
- function Za(t) {
4560
+ function Xa(t) {
4561
4561
  const { data: e, yField: i, x: a, chartSubType: r, splitByField: n } = t, s = r === F.BoxPlotMonoField || r === F.BoxPlotMonoFieldAndCategory || r === F.BoxPlotMonoFieldAndSplitBy || r === F.BoxPlotMonoFieldAndCategoryAndSplitBy ? void 0 : i, o = it(s), u = [], c = [], { maxOperandsPerWhereClause: l } = Rt();
4562
4562
  let d = [], f = [], m = 1;
4563
4563
  return e.forEach((y, p) => {
@@ -4571,7 +4571,7 @@ function Za(t) {
4571
4571
  (r === F.BoxPlotMonoFieldAndCategory || r === F.BoxPlotMultiFieldsAndCategory || r === F.BoxPlotMonoFieldAndCategoryAndSplitBy) && a !== void 0 && a in y && (b.xField = a, b.xValue = fi({
4572
4572
  value: y[a],
4573
4573
  dataContext: y
4574
- })), (r === F.BoxPlotMonoFieldAndSplitBy || r === F.BoxPlotMultiFieldsAndSplitBy || r === F.BoxPlotMonoFieldAndCategoryAndSplitBy) && n !== void 0 && n in y && (b.splitByField = n, b.splitByValue = y[n]), d.push($i({ ...b, target: "outliers" })), f.push($i({ ...b, target: "alternativeData" })), (m % l === 0 || p === e.length - 1) && (u.push(Y(d, "OR")), c.push(Y(f, "OR")), d = [], f = []);
4574
+ })), (r === F.BoxPlotMonoFieldAndSplitBy || r === F.BoxPlotMultiFieldsAndSplitBy || r === F.BoxPlotMonoFieldAndCategoryAndSplitBy) && n !== void 0 && n in y && (b.splitByField = n, b.splitByValue = y[n]), d.push(ki({ ...b, target: "outliers" })), f.push(ki({ ...b, target: "alternativeData" })), (m % l === 0 || p === e.length - 1) && (u.push(Y(d, "OR")), c.push(Y(f, "OR")), d = [], f = []);
4575
4575
  }
4576
4576
  m += 1;
4577
4577
  }), { outliersFilterBatches: u, dataWithoutOutliersFilterBatches: c };
@@ -4608,7 +4608,7 @@ function zo(t) {
4608
4608
  async function Wo(t) {
4609
4609
  const { seriesConfig: e, data: i, uniqueQuery: a, queryObject: r, meanAndStdDevPerField: n, errorStrings: s, abortKey: o, abortSignal: u } = t, c = k(e), l = e[0], { x: d } = l, f = te(l.query?.where), m = z(r), y = ve(m).idField, p = ue(e), g = [];
4610
4610
  for (let v = 0; v < p.length; v += 1) {
4611
- const x = p[v], { outliersFilterBatches: B } = Za({
4611
+ const x = p[v], { outliersFilterBatches: B } = Xa({
4612
4612
  data: i,
4613
4613
  yField: x,
4614
4614
  x: d,
@@ -4676,7 +4676,7 @@ async function Wo(t) {
4676
4676
  if (T[W.uniqueIdsName] = [
4677
4677
  ...P?.[W.uniqueIdsName] ?? [],
4678
4678
  T[y]
4679
- ], delete T[y], fr(c)) {
4679
+ ], delete T[y], mr(c)) {
4680
4680
  const O = K({
4681
4681
  ...w,
4682
4682
  standardizeValues: !0
@@ -4714,9 +4714,9 @@ async function Go(t) {
4714
4714
  abortSignal: c
4715
4715
  } = t;
4716
4716
  let l = [];
4717
- const { series: d, showMean: f } = n, m = vi({ showMean: f, seriesConfig: d }), y = k(d), p = Re(n), { x: g } = p, S = te(p.query?.where), b = [];
4717
+ const { series: d, showMean: f } = n, m = Bi({ showMean: f, seriesConfig: d }), y = k(d), p = Re(n), { x: g } = p, S = te(p.query?.where), b = [];
4718
4718
  for (let x = 0; x < m.length; x += 1) {
4719
- const B = m[x], { dataWithoutOutliersFilterBatches: N } = Za({
4719
+ const B = m[x], { dataWithoutOutliersFilterBatches: N } = Xa({
4720
4720
  data: e,
4721
4721
  yField: B,
4722
4722
  x: g,
@@ -4752,7 +4752,7 @@ async function Go(t) {
4752
4752
  const v = await Promise.all(b);
4753
4753
  for (let x = 0; x < v.length; x += 1)
4754
4754
  l.push(...v[x]);
4755
- return y !== F.BoxPlotMonoFieldAndCategoryAndSplitBy && y !== F.BoxPlotMonoField && (l = Ft({
4755
+ return y !== F.BoxPlotMonoFieldAndCategoryAndSplitBy && y !== F.BoxPlotMonoField && (l = bt({
4756
4756
  data: l,
4757
4757
  x: S !== void 0 && S !== "" ? S : g
4758
4758
  })), l;
@@ -4762,7 +4762,7 @@ async function Uo(t) {
4762
4762
  let o;
4763
4763
  const { series: u, showMean: c } = a, l = k(u);
4764
4764
  if (l === F.BoxPlotMultiFieldsAndCategory || l === F.BoxPlotMultiFieldsAndSplitBy) {
4765
- const d = vi({ showMean: c, seriesConfig: u }), f = {
4765
+ const d = Bi({ showMean: c, seriesConfig: u }), f = {
4766
4766
  ...i
4767
4767
  };
4768
4768
  delete f.outStatistics, delete f.groupByFieldsForStatistics, delete f.orderByFields;
@@ -4805,8 +4805,8 @@ function Yo(t) {
4805
4805
  return c !== void 0 && (u = { ...o, ...c }), u;
4806
4806
  });
4807
4807
  }
4808
- function Xa(t) {
4809
- 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 });
4808
+ function Ja(t) {
4809
+ 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 = Bi({ showMean: s, seriesConfig: n });
4810
4810
  let d = i;
4811
4811
  if (i?.[0] !== void 0) {
4812
4812
  const f = te(o.query?.where);
@@ -4908,7 +4908,7 @@ async function Zo(t) {
4908
4908
  chartConfig: n
4909
4909
  });
4910
4910
  }
4911
- d = Xa({
4911
+ d = Ja({
4912
4912
  chartConfig: n,
4913
4913
  data: d,
4914
4914
  meanAndStdDevPerField: y,
@@ -4926,32 +4926,32 @@ function Xo(t, e, i) {
4926
4926
  } 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));
4927
4927
  return a;
4928
4928
  }
4929
- function ki(t) {
4929
+ function Qi(t) {
4930
4930
  const { chartConfig: e, field: i, chartData: a } = t, r = Dn({ chartConfig: e, field: i }), n = Array.from(
4931
4931
  new Set(a.map((s) => i in s ? s[i] : void 0))
4932
4932
  );
4933
4933
  return r && n.length > 1 && n.sort((s, o) => Xo(s, o, r)), n.map((s) => ({ [i]: s }));
4934
4934
  }
4935
- function Ja(t) {
4935
+ function Ka(t) {
4936
4936
  const { chartConfig: e, chartData: i } = t;
4937
4937
  return {
4938
- xAxisData: ki({
4938
+ xAxisData: Qi({
4939
4939
  chartConfig: e,
4940
4940
  field: Q.xField,
4941
4941
  chartData: i
4942
4942
  }),
4943
- yAxisData: ki({
4943
+ yAxisData: Qi({
4944
4944
  chartConfig: e,
4945
4945
  field: Q.yField,
4946
4946
  chartData: i
4947
4947
  })
4948
4948
  };
4949
4949
  }
4950
- function Qi(t) {
4950
+ function _i(t) {
4951
4951
  const { orderBy: e, axisFormatOptions: i } = t;
4952
4952
  return e !== void 0 && i !== void 0 && (!Array.isArray(e) || i?.type === h.CategoryAxisFormat);
4953
4953
  }
4954
- function _i(t, e, i) {
4954
+ function ji(t, e, i) {
4955
4955
  let a = 0;
4956
4956
  if (Array.isArray(i)) {
4957
4957
  const r = t?.toString() ?? "", n = e?.toString() ?? "";
@@ -4963,28 +4963,28 @@ function _i(t, e, i) {
4963
4963
  function Jo(t) {
4964
4964
  const { arrayToSort: e, chartConfig: i, dataOrderParameters: a } = t, r = a ?? Mt(i);
4965
4965
  let n, s, o = !1, u = !1, c = !1;
4966
- r && e.length > 1 && ([n, s] = r, o = n && n.sortingField.length > 0 && Qi({
4966
+ r && e.length > 1 && ([n, s] = r, o = n && n.sortingField.length > 0 && _i({
4967
4967
  orderBy: n.orderBy,
4968
4968
  axisFormatOptions: i.axes?.[0]?.valueFormat
4969
- }), u = s && s.sortingField.length > 0 && Qi({
4969
+ }), u = s && s.sortingField.length > 0 && _i({
4970
4970
  orderBy: s.orderBy,
4971
4971
  axisFormatOptions: i.axes?.[1]?.valueFormat
4972
4972
  }), c = o || u), c && e.sort((l, d) => {
4973
4973
  let f = 0;
4974
4974
  if (o && n?.sortingField) {
4975
4975
  const m = n.orderBy;
4976
- f = _i(l[n.sortingField], d[n.sortingField], m);
4976
+ f = ji(l[n.sortingField], d[n.sortingField], m);
4977
4977
  }
4978
4978
  if (f === 0 && u && s?.sortingField) {
4979
4979
  const m = s.orderBy;
4980
- f = _i(l[s.sortingField], d[s.sortingField], m);
4980
+ f = ji(l[s.sortingField], d[s.sortingField], m);
4981
4981
  }
4982
4982
  return f;
4983
4983
  });
4984
4984
  }
4985
4985
  function Ko(t) {
4986
4986
  const { chartConfig: e, chartData: i } = t;
4987
- i.heatChartAxesData = Ja({
4987
+ i.heatChartAxesData = Ka({
4988
4988
  chartConfig: e,
4989
4989
  chartData: i.dataItems
4990
4990
  });
@@ -5014,7 +5014,7 @@ function It(t) {
5014
5014
  });
5015
5015
  else {
5016
5016
  const S = u === h.DateAxisFormat && f;
5017
- pt({
5017
+ ht({
5018
5018
  arrayToSort: e,
5019
5019
  orderBy: l,
5020
5020
  sortingField: d,
@@ -5061,7 +5061,7 @@ async function Qd(t) {
5061
5061
  if (r && !ie(i)) {
5062
5062
  const { series: o, chartRenderer: u } = a, c = el(u), l = c ? tt.ChartRenderer : tt.LayerRenderer, d = i ? z(i) : void 0, f = c ?? d?.renderer;
5063
5063
  let m;
5064
- d && l === tt.LayerRenderer ? s = await Qa(d) : l === tt.ChartRenderer && (s = Jn(f));
5064
+ d && l === tt.LayerRenderer ? s = await _a(d) : l === tt.ChartRenderer && (s = Jn(f));
5065
5065
  const y = jn(c, d?.renderer), p = Un({
5066
5066
  chartRenderer: u,
5067
5067
  queryObject: i
@@ -5086,7 +5086,7 @@ async function Qd(t) {
5086
5086
  return { dataItems: e, colorMatchApplied: n, rendererFieldNames: s };
5087
5087
  }
5088
5088
  async function tl(t) {
5089
- const { queryObject: e, queryConfig: i, chartConfig: a, errorStrings: r, abortKey: n, abortSignal: s } = t, o = a.series[0], { x: u, valueConversion: c } = o, l = dr(a), d = await Fe({
5089
+ const { queryObject: e, queryConfig: i, chartConfig: a, errorStrings: r, abortKey: n, abortSignal: s } = t, o = a.series[0], { x: u, valueConversion: c } = o, l = fr(a), d = await Fe({
5090
5090
  queryObject: e,
5091
5091
  queryConfig: i,
5092
5092
  featureCount: i.num ?? 1,
@@ -5099,19 +5099,19 @@ async function tl(t) {
5099
5099
  if (l)
5100
5100
  f = d.map((m) => {
5101
5101
  bi(m.attributes, u);
5102
- const y = Di(m.attributes[u], c);
5102
+ const y = Oi(m.attributes[u], c);
5103
5103
  return { ...m.attributes, [u]: y };
5104
5104
  });
5105
5105
  else if (d.length > 0) {
5106
5106
  let m = d[0].attributes[u] ?? d[0].attributes[u.toUpperCase()] ?? d[0].attributes[u.toLowerCase()];
5107
- m = Di(m, c), f = [{ [u]: m }];
5107
+ m = Oi(m, c), f = [{ [u]: m }];
5108
5108
  }
5109
5109
  return f;
5110
5110
  }
5111
5111
  async function il(t) {
5112
- const { queryObject: e, chartConfig: i, queryConfig: a, chartLimits: r, errorStrings: n, abortKey: s, abortSignal: o } = t, u = { valid: !0 }, { behaviorAfterLimit: c, maxGaugeByFeaturesLimit: l } = r ?? {}, d = dr(i);
5112
+ const { queryObject: e, chartConfig: i, queryConfig: a, chartLimits: r, errorStrings: n, abortKey: s, abortSignal: o } = t, u = { valid: !0 }, { behaviorAfterLimit: c, maxGaugeByFeaturesLimit: l } = r ?? {}, d = fr(i);
5113
5113
  let f = !0, m;
5114
- if (d && (m = (await lr({
5114
+ if (d && (m = (await ur({
5115
5115
  chartConfig: i,
5116
5116
  queryObject: e,
5117
5117
  queryConfig: a,
@@ -5130,7 +5130,7 @@ async function il(t) {
5130
5130
  Number.isFinite(y) && (p = {
5131
5131
  ...r,
5132
5132
  maxGaugeByFeaturesLimit: y
5133
- }), Ma({ chartConfig: i, chartLimits: p, uniqueQuery: a });
5133
+ }), Da({ chartConfig: i, chartLimits: p, uniqueQuery: a });
5134
5134
  }
5135
5135
  if (Number.isNaN(f) || f) {
5136
5136
  const y = await tl({
@@ -5176,7 +5176,7 @@ async function _d(t) {
5176
5176
  fetchNullValues: void 0,
5177
5177
  num: void 0
5178
5178
  };
5179
- mt(e);
5179
+ yt(e);
5180
5180
  const d = await xt({
5181
5181
  queryObject: e,
5182
5182
  queryConfig: l,
@@ -5217,7 +5217,7 @@ function al(t) {
5217
5217
  }), p.push(v), p;
5218
5218
  }, f = (p, g) => JSON.stringify(p).localeCompare(JSON.stringify(g));
5219
5219
  let m = o?.reduce(d, [])?.sort(f), y = u?.reduce(d, [])?.sort(f);
5220
- m && y && r && m.length !== y.length && (m = Ft({ data: m, x: r }), y = Ft({ data: y, x: r })), c = m?.length !== y?.length || !at(m, y);
5220
+ m && y && r && m.length !== y.length && (m = bt({ data: m, x: r }), y = bt({ data: y, x: r })), c = m?.length !== y?.length || !at(m, y);
5221
5221
  }
5222
5222
  return c;
5223
5223
  }
@@ -5235,7 +5235,7 @@ function rl(t) {
5235
5235
  outStatisticFieldName: e.series[0].query?.outStatistics?.[0]?.outStatisticFieldName
5236
5236
  }) ? r = o : r = i ?? [], n.length > 1 && s !== F.BarAndLineNoAggregation && s !== F.BarAndLineSplitByNoAggregation) {
5237
5237
  const u = te(n[0].query?.where);
5238
- r = Ft({ data: r, x: n[0].x, splitByField: u });
5238
+ r = bt({ data: r, x: n[0].x, splitByField: u });
5239
5239
  }
5240
5240
  It({
5241
5241
  arrayToSort: r,
@@ -5259,7 +5259,7 @@ function nl(t) {
5259
5259
  const { dataContext: e, xAxisField: i, yAxisField: a, options: r } = t;
5260
5260
  let n = "";
5261
5261
  const { dataContextXMinField: s, dataContextXMaxField: o, dataContextYMinField: u, dataContextYMaxField: c } = C.scatterplotAggregationFields;
5262
- if (pa({ dataContext: e, chartLimits: r?.chartLimits })) {
5262
+ if (ha({ dataContext: e, chartLimits: r?.chartLimits })) {
5263
5263
  const { [s]: l, [o]: d } = e, f = i !== a ? e[u] : l, m = i !== a ? e[c] : d;
5264
5264
  if (!Number.isNaN(l) && !Number.isNaN(d) && !Number.isNaN(f) && !Number.isNaN(m)) {
5265
5265
  const y = [];
@@ -5272,11 +5272,11 @@ function nl(t) {
5272
5272
  ]);
5273
5273
  return n;
5274
5274
  }
5275
- function ji(t) {
5275
+ function Hi(t) {
5276
5276
  const { fieldsIndex: e, fieldName: i, inputDate: a } = t, r = e.get(i), n = e.getTimeZone(i);
5277
5277
  return Wr(new Date(a), { type: "date" }, { type: r, timeZone: n });
5278
5278
  }
5279
- function Ka(t) {
5279
+ function er(t) {
5280
5280
  const { xAxisField: e, dataContext: i, queryObject: a } = t;
5281
5281
  let r = "";
5282
5282
  const n = i[C.originalServerBinningRange] ?? i[C.dateBinningRange];
@@ -5285,7 +5285,7 @@ function Ka(t) {
5285
5285
  const c = Ee(a);
5286
5286
  if (c) {
5287
5287
  const l = z(a), { fieldsIndex: d } = l;
5288
- s = ji({ fieldsIndex: d, fieldName: e, inputDate: s }), o = ji({ fieldsIndex: d, fieldName: e, inputDate: o });
5288
+ s = Hi({ fieldsIndex: d, fieldName: e, inputDate: s }), o = Hi({ fieldsIndex: d, fieldName: e, inputDate: o });
5289
5289
  } else
5290
5290
  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());
5291
5291
  if (u) {
@@ -5295,7 +5295,7 @@ function Ka(t) {
5295
5295
  }
5296
5296
  return r;
5297
5297
  }
5298
- function er(t, e) {
5298
+ function tr(t, e) {
5299
5299
  let i = "";
5300
5300
  if (Number.isFinite(t)) {
5301
5301
  const a = 1 / 10 ** C.queryMaxFloatPrecision;
@@ -5303,7 +5303,7 @@ function er(t, e) {
5303
5303
  }
5304
5304
  return i;
5305
5305
  }
5306
- function tr(t) {
5306
+ function ir(t) {
5307
5307
  const { xAxisField: e, yAxisField: i, splitBy: a, dataContext: r, xAxisFieldType: n, chartConfig: s } = t;
5308
5308
  let o = "";
5309
5309
  if (e !== void 0 && e !== C.boxPlot.boxPlotCategory) {
@@ -5311,7 +5311,7 @@ function tr(t) {
5311
5311
  value: r[e],
5312
5312
  dataContext: r
5313
5313
  });
5314
- n === U.Double ? o = er(d, e) : (je(s.axes?.[0].valueFormat) && (d = nt(d)), o = Le({
5314
+ n === U.Double ? o = tr(d, e) : (je(s.axes?.[0].valueFormat) && (d = nt(d)), o = Le({
5315
5315
  where: qe(e, d),
5316
5316
  normalize: !1,
5317
5317
  escape: !0
@@ -5342,13 +5342,13 @@ function sl(t) {
5342
5342
  const { xAxisField: e, splitBy: i, dataContext: a, xAxisFieldType: r, chartConfig: n, queryObject: s } = t;
5343
5343
  let o = "";
5344
5344
  if (C.dateBinningRange in a)
5345
- o = Ka({ xAxisField: e, dataContext: a, queryObject: s });
5345
+ o = er({ xAxisField: e, dataContext: a, queryObject: s });
5346
5346
  else if (k(n.series) !== F.BarAndLineFromFields) {
5347
5347
  let l = fi({
5348
5348
  value: a[e],
5349
5349
  dataContext: a
5350
5350
  });
5351
- r === U.Double ? o = er(l, e) : (je(n.axes?.[0].valueFormat) && r !== U.TimeOnly && (l = nt(l)), o = Le({
5351
+ r === U.Double ? o = tr(l, e) : (je(n.axes?.[0].valueFormat) && r !== U.TimeOnly && (l = nt(l)), o = Le({
5352
5352
  where: qe(e, l),
5353
5353
  normalize: !1,
5354
5354
  escape: !0
@@ -5366,7 +5366,7 @@ function ol(t) {
5366
5366
  escape: !0
5367
5367
  });
5368
5368
  }
5369
- function Hi(t) {
5369
+ function zi(t) {
5370
5370
  const { field: e, fieldType: i, fieldValue: a, unit: r, outTimeZone: n, dataTimeZone: s, runsOnClientQueryEngine: o } = t;
5371
5371
  let u;
5372
5372
  const { expression: c } = pi({
@@ -5398,7 +5398,7 @@ function ll(t) {
5398
5398
  where: qe(u.x, m ?? f),
5399
5399
  normalize: !1,
5400
5400
  escape: !0
5401
- }) : l = Hi({
5401
+ }) : l = zi({
5402
5402
  field: u.x,
5403
5403
  fieldType: e,
5404
5404
  fieldValue: f,
@@ -5410,7 +5410,7 @@ function ll(t) {
5410
5410
  where: qe(u.y, p ?? y),
5411
5411
  normalize: !1,
5412
5412
  escape: !0
5413
- }) : d = Hi({
5413
+ }) : d = zi({
5414
5414
  field: u.y,
5415
5415
  fieldType: i,
5416
5416
  fieldValue: y,
@@ -5452,7 +5452,7 @@ function jd(t) {
5452
5452
  a = sl(t);
5453
5453
  break;
5454
5454
  case h.BoxPlotSeries:
5455
- a = tr(t);
5455
+ a = ir(t);
5456
5456
  break;
5457
5457
  case h.HistogramSeries:
5458
5458
  a = ul(t);
@@ -5509,7 +5509,7 @@ async function cl(t) {
5509
5509
  q !== void 0 && ($ = q.replace(M, ""));
5510
5510
  }
5511
5511
  O.length === 0 && O.push(""), O.forEach((M) => {
5512
- const q = tr({
5512
+ const q = ir({
5513
5513
  chartConfig: a,
5514
5514
  xAxisField: b,
5515
5515
  yAxisField: $,
@@ -5566,7 +5566,7 @@ async function dl(t) {
5566
5566
  abortKey: p,
5567
5567
  abortSignal: g
5568
5568
  } = t;
5569
- mt(e);
5569
+ yt(e);
5570
5570
  const { series: S } = a, b = _(S), v = xe(a);
5571
5571
  let x = { valid: !0 }, B = s?.selectionItems ?? [];
5572
5572
  n || (B = rl({ chartConfig: a, currentSelectionDataItems: r, selectionData: s }));
@@ -5618,7 +5618,7 @@ async function dl(t) {
5618
5618
  const T = { ...i };
5619
5619
  if (r !== void 0 && r.length > 0) {
5620
5620
  const L = r.map(
5621
- (I) => Ka({
5621
+ (I) => er({
5622
5622
  xAxisField: S[0].x,
5623
5623
  dataContext: I,
5624
5624
  queryObject: e
@@ -5655,7 +5655,7 @@ async function dl(t) {
5655
5655
  const { minValue: O, maxValue: V } = I, $ = P === B.length - 1 ? "<=" : "<";
5656
5656
  return `${T} >= ${O} AND ${T} ${$} ${V}`;
5657
5657
  }), L = Y(w, "OR"), A = { ...i };
5658
- A.where = Y([A.where, L]), x = await Ua({
5658
+ A.where = Y([A.where, L]), x = await Ya({
5659
5659
  queryObject: e,
5660
5660
  chartConfig: a,
5661
5661
  queryConfig: A,
@@ -5672,7 +5672,7 @@ async function dl(t) {
5672
5672
  const { r2: T, trendLinePoints: w } = C.scatterplotSeries;
5673
5673
  x.data = { dataItems: [], r2: T, trendLinePoints: w, count: 0 }, x.count = 0;
5674
5674
  } else {
5675
- const { r2: T, trendLinePoints: w } = Ea({
5675
+ const { r2: T, trendLinePoints: w } = qa({
5676
5676
  data: B,
5677
5677
  chartConfig: a
5678
5678
  });
@@ -5791,7 +5791,7 @@ async function fl(t) {
5791
5791
  else
5792
5792
  switch (T) {
5793
5793
  case h.HeatSeries:
5794
- mt(e), w = await ur({
5794
+ yt(e), w = await cr({
5795
5795
  chartConfig: i,
5796
5796
  queryConfig: a,
5797
5797
  queryObject: e,
@@ -5856,7 +5856,7 @@ async function fl(t) {
5856
5856
  break;
5857
5857
  }
5858
5858
  case h.ScatterSeries:
5859
- w.data = await cr({
5859
+ w.data = await dr({
5860
5860
  queryObject: e,
5861
5861
  queryConfig: a,
5862
5862
  filterByViewExtent: x,
@@ -5874,7 +5874,7 @@ async function fl(t) {
5874
5874
  });
5875
5875
  break;
5876
5876
  case h.HistogramSeries:
5877
- w = await Ua({
5877
+ w = await Ya({
5878
5878
  queryObject: e,
5879
5879
  queryConfig: a,
5880
5880
  chartConfig: i,
@@ -5885,7 +5885,7 @@ async function fl(t) {
5885
5885
  });
5886
5886
  break;
5887
5887
  case h.GaugeSeries:
5888
- mt(e), w = await il({
5888
+ yt(e), w = await il({
5889
5889
  queryObject: e,
5890
5890
  chartConfig: i,
5891
5891
  queryConfig: a,
@@ -5924,7 +5924,7 @@ async function Hd(t) {
5924
5924
  preFetchedQueryResponse: N
5925
5925
  } = t;
5926
5926
  let T = { valid: !0 };
5927
- const w = ja({
5927
+ const w = Ha({
5928
5928
  queryObject: e,
5929
5929
  chartConfig: i,
5930
5930
  runtimeDataFilters: u,
@@ -6015,7 +6015,7 @@ function gl(t, e) {
6015
6015
  }
6016
6016
  return i;
6017
6017
  }
6018
- const ir = [
6018
+ const ar = [
6019
6019
  F.BarAndLineMonoField,
6020
6020
  F.BarAndLineMultiFields,
6021
6021
  F.PieNoAggregation,
@@ -6023,7 +6023,7 @@ const ir = [
6023
6023
  F.BoxPlotMonoFieldAndCategory,
6024
6024
  F.BoxPlotMultiFieldsAndCategory,
6025
6025
  F.BoxPlotMonoFieldAndCategoryAndSplitBy
6026
- ], pl = 8e3, zi = [
6026
+ ], pl = 8e3, Wi = [
6027
6027
  {
6028
6028
  unit: R.Second,
6029
6029
  threshold: 6e4,
@@ -6067,7 +6067,7 @@ const ir = [
6067
6067
  preferredIntervalSize: [1, 2, 4, 5, 10, 25, 50, 100]
6068
6068
  }
6069
6069
  ], hl = "{ groupByFieldsForStatistics } WHEN { dateField }>='{ startDate }' AND { dateField }{ endDateOperand }'{ endDate }' THEN '{ y }|{ binIndex}'";
6070
- function ar(t, e) {
6070
+ function rr(t, e) {
6071
6071
  let i = t;
6072
6072
  return e === R.Week ? i /= 7 : e === R.Month ? i /= 30 : e === R.Year && (i /= 365), i = Math.ceil(i), i;
6073
6073
  }
@@ -6163,10 +6163,10 @@ function bl(t) {
6163
6163
  n = bs(s, (o) => o[a]);
6164
6164
  break;
6165
6165
  case D.Minimum:
6166
- n = ht(s, (o) => o[a]).min;
6166
+ n = St(s, (o) => o[a]).min;
6167
6167
  break;
6168
6168
  case D.Maximum:
6169
- n = ht(s, (o) => o[a]).max;
6169
+ n = St(s, (o) => o[a]).max;
6170
6170
  break;
6171
6171
  case D.Average:
6172
6172
  n = Fs(s, (o) => o[a]);
@@ -6181,7 +6181,7 @@ function xl(t) {
6181
6181
  const { unit: o } = a, u = a.size ?? 1, c = i[0], { x: l } = c;
6182
6182
  let d, f;
6183
6183
  if (be(c) && (f = c.temporalBinning?.nullPolicy, d = c.temporalBinning?.timeAggregationType), u > 1 || o === R.Week || o === R.Month || o === R.Year) {
6184
- const { query: m } = i[0], y = ue(i), { statisticType: p } = m?.outStatistics?.[0] ?? Zi;
6184
+ const { query: m } = i[0], y = ue(i), { statisticType: p } = m?.outStatistics?.[0] ?? Xi;
6185
6185
  let g = !1, S = d === ee.End ? e.length - 1 : 0;
6186
6186
  const b = {
6187
6187
  binFirstOrLastIndex: S,
@@ -6224,7 +6224,7 @@ function xl(t) {
6224
6224
  }) : s = e;
6225
6225
  return s;
6226
6226
  }
6227
- function rr(t) {
6227
+ function nr(t) {
6228
6228
  const { dateMinTimestamp: e, dateMaxTimestamp: i, timeIntervalInfo: a } = t, { size: r, unit: n } = a;
6229
6229
  let s = 0, o = 0;
6230
6230
  if (r !== void 0 && Number.isFinite(r) && Number.isFinite(e) && Number.isFinite(i)) {
@@ -6253,7 +6253,7 @@ function rr(t) {
6253
6253
  }
6254
6254
  return { numberOfFinalBinsWithinDataRange: s, numberOfSingleBinsWithinDataRange: o };
6255
6255
  }
6256
- function nr(t) {
6256
+ function sr(t) {
6257
6257
  const e = t[0].temporalBinning?.nullPolicy;
6258
6258
  return t.reduce(
6259
6259
  (a, r) => {
@@ -6277,7 +6277,7 @@ function Cl(t) {
6277
6277
  if (o !== void 0 && Number.isFinite(o) && a / i !== o) {
6278
6278
  let y = Math.ceil(a / i) * i - a;
6279
6279
  u === R.Week && (y *= 7);
6280
- const p = nr(n);
6280
+ const p = sr(n);
6281
6281
  if (l === ee.End) {
6282
6282
  let g = r[0][c];
6283
6283
  for (let S = 0; S < y; S += 1)
@@ -6312,7 +6312,7 @@ function Cl(t) {
6312
6312
  }
6313
6313
  function vl(t) {
6314
6314
  const { numberOfSingleBinsWithinDataRange: e, dataLength: i, unit: a } = t;
6315
- return ar(i, a) >= e;
6315
+ return rr(i, a) >= e;
6316
6316
  }
6317
6317
  async function Bl(t) {
6318
6318
  const { queryObject: e, queryConfig: i, x: a, errorStrings: r, abortSignal: n } = t, s = `MIN_${a}`, o = `MAX_${a}`, u = `COUNT_${a}`, c = {
@@ -6361,7 +6361,7 @@ function Nl(t) {
6361
6361
  dataLength: s,
6362
6362
  unit: u
6363
6363
  })) {
6364
- const { x: d } = a[0], f = a[0].temporalBinning?.timeAggregationType, m = nr(a);
6364
+ const { x: d } = a[0], f = a[0].temporalBinning?.timeAggregationType, m = sr(a);
6365
6365
  let p = f === ee.End ? i : e, g = f === ee.End ? r.length - 1 : 0;
6366
6366
  for (; g < r.length && (f === ee.End && p > e || f !== ee.End && p < i); )
6367
6367
  p !== r[g][d] ? c.push({
@@ -6449,7 +6449,7 @@ function* wl(t) {
6449
6449
  }
6450
6450
  }
6451
6451
  async function Ll(t) {
6452
- const { queryObject: e, data: i, seriesConfig: a, queryConfig: r, errorStrings: n, abortSignal: s } = t, o = i, { statisticType: u } = a[0].query?.outStatistics?.[0] ?? Zi;
6452
+ const { queryObject: e, data: i, seriesConfig: a, queryConfig: r, errorStrings: n, abortSignal: s } = t, o = i, { statisticType: u } = a[0].query?.outStatistics?.[0] ?? Xi;
6453
6453
  if (u === D.ContinuousPercentile && o.length > 0) {
6454
6454
  const c = wl({
6455
6455
  queryObject: e,
@@ -6475,7 +6475,7 @@ async function Ll(t) {
6475
6475
  }
6476
6476
  return o;
6477
6477
  }
6478
- function Wi(t) {
6478
+ function Gi(t) {
6479
6479
  const { dataItem: e, nullPolicy: i, statField: a } = t;
6480
6480
  if (a) {
6481
6481
  const r = e[a];
@@ -6494,7 +6494,7 @@ function Wi(t) {
6494
6494
  }
6495
6495
  }
6496
6496
  function Pl(t) {
6497
- const { chartConfig: e, queryResults: i, mapToStatField: a, splitByField: r, x: n, y: s, nullPolicy: o, queryObject: u } = t, c = Ia(n), d = Ce(u).find((g) => g.name === n)?.type, f = [], m = e.series[0], y = "temporalBinning" in m ? m.temporalBinning?.trimIncompleteTimeInterval : !1, p = "temporalBinning" in m ? m.temporalBinning?.timeAggregationType : !1;
6497
+ const { chartConfig: e, queryResults: i, mapToStatField: a, splitByField: r, x: n, y: s, nullPolicy: o, queryObject: u } = t, c = Ea(n), d = Ce(u).find((g) => g.name === n)?.type, f = [], m = e.series[0], y = "temporalBinning" in m ? m.temporalBinning?.trimIncompleteTimeInterval : !1, p = "temporalBinning" in m ? m.temporalBinning?.timeAggregationType : !1;
6498
6498
  return i.forEach((g, S) => {
6499
6499
  if (!(y && (S === 0 && p === ee.End || S === i.length - 1 && p === ee.Start))) {
6500
6500
  const { attributes: v, stackedAttributes: x } = g;
@@ -6518,10 +6518,10 @@ function Pl(t) {
6518
6518
  const V = O[r];
6519
6519
  if (V === null || typeof V == "string" || typeof V == "number") {
6520
6520
  const $ = a?.get(V);
6521
- $ !== void 0 && (A[$] = O[W.outStatistics?.outStatisticFieldName ?? ""], Wi({ dataItem: A, statField: $, nullPolicy: o }));
6521
+ $ !== void 0 && (A[$] = O[W.outStatistics?.outStatisticFieldName ?? ""], Gi({ dataItem: A, statField: $, nullPolicy: o }));
6522
6522
  }
6523
- }) : typeof s == "string" && Wi({ dataItem: A, statField: s, nullPolicy: o });
6524
- const { featureExtent: I, featureExtentKey: P } = sr({
6523
+ }) : typeof s == "string" && Gi({ dataItem: A, statField: s, nullPolicy: o });
6524
+ const { featureExtent: I, featureExtentKey: P } = or({
6525
6525
  feature: g,
6526
6526
  splitByField: r
6527
6527
  });
@@ -6546,11 +6546,11 @@ async function Ml(t) {
6546
6546
  const { dateMinTimestamp: d, dateMaxTimestamp: f } = s;
6547
6547
  if (d && f) {
6548
6548
  const m = i.length;
6549
- if (pt({
6549
+ if (ht({
6550
6550
  arrayToSort: l,
6551
6551
  sortingField: a
6552
6552
  }), m > 1) {
6553
- const { numberOfFinalBinsWithinDataRange: y, numberOfSingleBinsWithinDataRange: p } = rr({
6553
+ const { numberOfFinalBinsWithinDataRange: y, numberOfSingleBinsWithinDataRange: p } = nr({
6554
6554
  dateMinTimestamp: d,
6555
6555
  dateMaxTimestamp: f,
6556
6556
  timeIntervalInfo: o
@@ -6570,7 +6570,7 @@ async function Ml(t) {
6570
6570
  initialNumberOfBins: m,
6571
6571
  numberOfSingleBinsWithinDataRange: p,
6572
6572
  timeIntervalInfo: o
6573
- }), pt({
6573
+ }), ht({
6574
6574
  arrayToSort: l,
6575
6575
  sortingField: a
6576
6576
  }), l = xl({
@@ -6604,7 +6604,7 @@ function Ol(t) {
6604
6604
  let a, r, { dateMinTimestamp: n, dateMaxTimestamp: s } = e;
6605
6605
  if (n && s) {
6606
6606
  typeof n == "string" && (n = new Date(n).valueOf()), typeof s == "string" && (s = new Date(s).valueOf());
6607
- const o = Dl(i), u = (s - n) / o, c = zi.findIndex((S) => S.threshold > u), l = zi[c], { unitMs: d, preferredIntervalSize: f } = l;
6607
+ const o = Dl(i), u = (s - n) / o, c = Wi.findIndex((S) => S.threshold > u), l = Wi[c], { unitMs: d, preferredIntervalSize: f } = l;
6608
6608
  ({ unit: a } = l);
6609
6609
  const m = u / d, y = f.findIndex(
6610
6610
  (S) => S >= m
@@ -6673,7 +6673,7 @@ async function Ut(t) {
6673
6673
  )
6674
6674
  ).sort((b, v) => typeof b == "string" && typeof v == "string" ? b.localeCompare(v) : Number(b) - Number(v));
6675
6675
  }
6676
- function sr(t) {
6676
+ function or(t) {
6677
6677
  const { feature: e, splitByField: i, chartSubType: a } = t;
6678
6678
  let r;
6679
6679
  if (e.aggregateGeometries && "Extent" in e.aggregateGeometries)
@@ -6690,7 +6690,7 @@ function ql(t) {
6690
6690
  const { input: e, x: i, splitByField: a } = t;
6691
6691
  return e.reduce((n, s) => (a !== void 0 && a !== i && !(C.technicalFieldSplitByField in s) && delete s[a], Object.assign(n, s)), {});
6692
6692
  }
6693
- function Ft(t) {
6693
+ function bt(t) {
6694
6694
  const { data: e, x: i, splitByField: a } = t;
6695
6695
  let r = e;
6696
6696
  if (e !== void 0 && e.length > 0) {
@@ -6810,12 +6810,12 @@ function zl(t) {
6810
6810
  }
6811
6811
  function Wl(t) {
6812
6812
  const { queryResponse: e, chartConfig: i, maxCategoryCount: a } = t, r = k(i.series);
6813
- return a && Number.isFinite(a) && a < e.length && ir.includes(r) ? e.slice(0, a) : e;
6813
+ return a && Number.isFinite(a) && a < e.length && ar.includes(r) ? e.slice(0, a) : e;
6814
6814
  }
6815
6815
  function Gl(t) {
6816
6816
  const { attributes: e, uniqueCategoryList: i, maxCategoryCount: a, x: r, chartSubType: n } = t;
6817
6817
  let s = !1;
6818
- if (r && a && Number.isFinite(a) && !ir.includes(n))
6818
+ if (r && a && Number.isFinite(a) && !ar.includes(n))
6819
6819
  if ((n === F.BarAndLineFromFields || n === F.PieFromFields) && Object.keys(e).length > a)
6820
6820
  Object.keys(e).filter((o) => o !== D.EnvelopeAggregate).forEach((o, u) => {
6821
6821
  u >= a && delete e[o];
@@ -6848,7 +6848,7 @@ function Yl(t) {
6848
6848
  const [i, a, r] = t.split(":");
6849
6849
  return Number.isFinite(Number(i)) && Number.isFinite(Number(a)) && Number.isFinite(Number(r)) && (e = new Date(2e3, 0, 1, Number(i), Number(a), Number(r)).valueOf()), e;
6850
6850
  }
6851
- function or(t) {
6851
+ function lr(t) {
6852
6852
  const {
6853
6853
  queryObject: e,
6854
6854
  queryResponse: i,
@@ -6882,7 +6882,7 @@ function or(t) {
6882
6882
  let q = M[y];
6883
6883
  const G = typeof p == "string" ? M[p] : void 0;
6884
6884
  q === null && d[0]?.query?.fetchNullValues === !0 && f !== F.PieFromFields && (M[v] = null, q = C.nullValue), S || (w && typeof q == "string" ? q = new Date(q).valueOf() : s && (q = El(M))), typeof q == "string" && l?.find((ae) => ae.name === y)?.type === U.TimeOnly && (M[v] = q, q = Yl(q));
6885
- const { outStatisticFieldName: J } = W.outStatistics ?? {}, { featureExtent: X, featureExtentKey: H } = sr({ feature: $, splitByField: n, chartSubType: f });
6885
+ const { outStatisticFieldName: J } = W.outStatistics ?? {}, { featureExtent: X, featureExtentKey: H } = or({ feature: $, splitByField: n, chartSubType: f });
6886
6886
  if (X && (M[H] = X), f === F.BarAndLineSplitBy && J !== void 0) {
6887
6887
  const ae = M[n], pe = r?.get(ae);
6888
6888
  pe !== void 0 && (ae === n && (M[C.technicalFieldSplitByField] = M[pe]), M[pe] = M[J]), delete M[J];
@@ -6928,7 +6928,7 @@ async function _t(t) {
6928
6928
  errorStrings: m,
6929
6929
  abortSignal: s
6930
6930
  }), v = Ce(e, d), { x } = y[0];
6931
- return g = or({
6931
+ return g = lr({
6932
6932
  queryObject: e,
6933
6933
  queryResponse: b,
6934
6934
  chartConfig: a,
@@ -6939,12 +6939,12 @@ async function _t(t) {
6939
6939
  resultLimit: i.num,
6940
6940
  showMean: c,
6941
6941
  chartLimits: l
6942
- }), p !== F.BarAndLineSplitByNoAggregation && p !== F.BarAndLineFromFields && (S !== "" && (g = Ft({ data: g, x, splitByField: S })), g = Vl(
6942
+ }), p !== F.BarAndLineSplitByNoAggregation && p !== F.BarAndLineFromFields && (S !== "" && (g = bt({ data: g, x, splitByField: S })), g = Vl(
6943
6943
  g,
6944
6944
  y
6945
6945
  )), g;
6946
6946
  }
6947
- async function lr(t) {
6947
+ async function ur(t) {
6948
6948
  const {
6949
6949
  chartConfig: e,
6950
6950
  queryObject: i,
@@ -7004,7 +7004,7 @@ async function oi(t) {
7004
7004
  returnFeaturesExtent: d,
7005
7005
  chartLimits: f
7006
7006
  });
7007
- let { categoryOrDateCount: O, elementCount: V } = await lr({
7007
+ let { categoryOrDateCount: O, elementCount: V } = await ur({
7008
7008
  chartConfig: e,
7009
7009
  queryObject: r,
7010
7010
  queryConfig: i,
@@ -7134,11 +7134,11 @@ function Kl(t) {
7134
7134
  for (const m of a) {
7135
7135
  const y = String(m);
7136
7136
  if (!l.has(`${f}|${y}`)) {
7137
- const p = u ? qi({
7137
+ const p = u ? Vi({
7138
7138
  queryObject: u,
7139
7139
  fieldName: s,
7140
7140
  fieldValue: f
7141
- }) ?? d : d, g = u ? qi({
7141
+ }) ?? d : d, g = u ? Vi({
7142
7142
  queryObject: u,
7143
7143
  fieldName: o,
7144
7144
  fieldValue: y
@@ -7155,11 +7155,11 @@ function Kl(t) {
7155
7155
  }
7156
7156
  return c;
7157
7157
  }
7158
- function Gi(t) {
7158
+ function Ui(t) {
7159
7159
  const { day: e, month: i, includeLeapDay: a } = t;
7160
7160
  return i === 2 && e > (a ? 29 : 28) || [4, 6, 9, 11].includes(i) && e > 30;
7161
7161
  }
7162
- async function ur(t) {
7162
+ async function cr(t) {
7163
7163
  const {
7164
7164
  chartConfig: e,
7165
7165
  queryConfig: i,
@@ -7196,7 +7196,7 @@ async function ur(t) {
7196
7196
  Ot({ dataInfo: m, chartType: h.HeatSeries });
7197
7197
  else if (typeof I?.[0] == "object") {
7198
7198
  const P = Ce(a, u);
7199
- y = or({
7199
+ y = lr({
7200
7200
  queryObject: a,
7201
7201
  queryResponse: I,
7202
7202
  chartConfig: e,
@@ -7262,11 +7262,11 @@ async function ur(t) {
7262
7262
  }), r && P && G.length !== P?.length) {
7263
7263
  const J = P.filter((X) => !G.includes(X.toString()));
7264
7264
  w && (J.length !== P.length || G.length === 0) || J.forEach((X) => {
7265
- Number.isFinite(Number(M[W.heatChartLowerBoundaryAlias])) && Number.isFinite(Number(X)) && (x?.unit === he.DayOfMonth && B?.unit === he.MonthOfYear && Gi({
7265
+ Number.isFinite(Number(M[W.heatChartLowerBoundaryAlias])) && Number.isFinite(Number(X)) && (x?.unit === he.DayOfMonth && B?.unit === he.MonthOfYear && Ui({
7266
7266
  day: Number(M[W.heatChartLowerBoundaryAlias]),
7267
7267
  month: Number(X),
7268
7268
  includeLeapDay: e.includeLeapDay
7269
- }) || B?.unit === he.DayOfMonth && x?.unit === he.MonthOfYear && Gi({
7269
+ }) || B?.unit === he.DayOfMonth && x?.unit === he.MonthOfYear && Ui({
7270
7270
  day: Number(X),
7271
7271
  month: Number(M[W.heatChartLowerBoundaryAlias]),
7272
7272
  includeLeapDay: e.includeLeapDay
@@ -7287,7 +7287,7 @@ async function ur(t) {
7287
7287
  }
7288
7288
  y && (m.data = {
7289
7289
  dataItems: y,
7290
- heatChartAxesData: Ja({ chartConfig: e, chartData: y })
7290
+ heatChartAxesData: Ka({ chartConfig: e, chartData: y })
7291
7291
  });
7292
7292
  }
7293
7293
  return m;
@@ -7295,7 +7295,7 @@ async function ur(t) {
7295
7295
  function eu(t) {
7296
7296
  const { chartConfig: e, data: i, chartLimits: a } = t, r = e.series;
7297
7297
  let n = i;
7298
- const s = Ta(e, a);
7298
+ const s = Aa(e, a);
7299
7299
  if (s !== void 0) {
7300
7300
  const o = ue(r);
7301
7301
  if (o.length === 1)
@@ -7406,12 +7406,12 @@ async function xi(t) {
7406
7406
  }) || ($ = !1);
7407
7407
  }
7408
7408
  } else if (P?.dateRange.dateMinTimestamp && P.dateRange.dateMaxTimestamp) {
7409
- const { numberOfFinalBinsWithinDataRange: M } = rr({
7409
+ const { numberOfFinalBinsWithinDataRange: M } = nr({
7410
7410
  dateMinTimestamp: P.dateRange.dateMinTimestamp,
7411
7411
  dateMaxTimestamp: P.dateRange.dateMaxTimestamp,
7412
7412
  timeIntervalInfo: L
7413
7413
  });
7414
- w = M * p.length, w = ar(w, L.unit), x = await _t({
7414
+ w = M * p.length, w = rr(w, L.unit), x = await _t({
7415
7415
  queryObject: a,
7416
7416
  uniqueQuery: O,
7417
7417
  chartConfig: e,
@@ -7435,7 +7435,7 @@ async function xi(t) {
7435
7435
  abortSignal: n
7436
7436
  });
7437
7437
  }
7438
- da(a) && x && x?.length === pl && (A = !0), y === lt.RenderUpToTheLimit && x && (x = eu({ chartConfig: e, chartLimits: l, data: x }));
7438
+ fa(a) && x && x?.length === pl && (A = !0), y === lt.RenderUpToTheLimit && x && (x = eu({ chartConfig: e, chartLimits: l, data: x }));
7439
7439
  }
7440
7440
  $ || (v.valid = !1, v.invalidType = j.LineChartExceedsLimit), x && x.length > 0 && (x[x.length - 1][C.lastTemporalBin] = !0), v.data = { dataItems: x, timeIntervalInfo: L, serverLimitReached: A }, v.count = w;
7441
7441
  }
@@ -7481,7 +7481,7 @@ async function tu(t) {
7481
7481
  errorStrings: c,
7482
7482
  abortKey: r
7483
7483
  });
7484
- return de(e) && (g = Xa({ chartConfig: e, data: g, calculateZScore: !1 })), d.data = { dataItems: g }, d;
7484
+ return de(e) && (g = Ja({ chartConfig: e, data: g, calculateZScore: !1 })), d.data = { dataItems: g }, d;
7485
7485
  }
7486
7486
  async function iu(t) {
7487
7487
  const {
@@ -7625,18 +7625,18 @@ async function lu(t) {
7625
7625
  if (v != null && N !== void 0 && N !== null && x !== void 0 && x !== null && T !== void 0 && T !== null && !Number.isNaN(v + x + N + T)) {
7626
7626
  const w = z(a), { idField: L, isTraditionalTypeOID: A } = ve(w), I = A ? L : "*", P = e?.get(C.scatterplotAggregationFields.xStep), O = e?.get(C.scatterplotAggregationFields.yStep), V = e?.get(C.scatterplotAggregationFields.realGridSize), $ = e?.get(C.scatterplotAggregationFields.rowCount), M = e?.get(C.scatterplotAggregationFields.columnCount), q = /* @__PURE__ */ new Map(), G = Ce(a);
7627
7627
  if (G?.forEach((H) => {
7628
- St(H) && q.set(H.name, {
7628
+ Ft(H) && q.set(H.name, {
7629
7629
  onStatisticField: H.name,
7630
7630
  outStatisticFieldName: H.name,
7631
7631
  statisticType: D.Maximum
7632
7632
  });
7633
7633
  }), (G.filter((H) => c?.additionalTooltipFields?.includes(H.name)) ?? [])?.forEach((H) => {
7634
- St(H) || q.set(H.name, {
7634
+ Ft(H) || q.set(H.name, {
7635
7635
  onStatisticField: H.name,
7636
7636
  outStatisticFieldName: H.name,
7637
7637
  statisticType: D.Maximum
7638
7638
  });
7639
- }), (await Qa(w)).forEach((H) => {
7639
+ }), (await _a(w)).forEach((H) => {
7640
7640
  q.set(H, {
7641
7641
  onStatisticField: H,
7642
7642
  outStatisticFieldName: H,
@@ -7674,7 +7674,7 @@ async function lu(t) {
7674
7674
  });
7675
7675
  } else if ($ !== void 0 && M !== void 0) {
7676
7676
  let H = 0;
7677
- const { maxScatterCellsPerQuery: ae, maxScatterCellsPerQueryForStandard: pe } = Rt(), Bi = await no(w, u) ? pe : ae, Ni = [];
7677
+ const { maxScatterCellsPerQuery: ae, maxScatterCellsPerQueryForStandard: pe } = Rt(), Ni = await no(w, u) ? pe : ae, Ti = [];
7678
7678
  let jt = !0, Xe = v, ke = N, Je = "", Ct = 1, Ht = 1, vt = Number.MAX_SAFE_INTEGER, Bt = Number.MIN_SAFE_INTEGER, Nt = Number.MAX_SAFE_INTEGER, Tt = Number.MIN_SAFE_INTEGER;
7679
7679
  for (; Ht <= M && jt; ) {
7680
7680
  for (ke = N, Ct = 1; Ct <= $ && jt; ) {
@@ -7688,14 +7688,14 @@ async function lu(t) {
7688
7688
  yStep: O,
7689
7689
  endOfRow: Ct === $,
7690
7690
  endOfColumn: Ht === M
7691
- }), Xe < vt && (vt = Xe), Xe + P > Bt && (Bt = Xe + P), ke < Nt && (Nt = ke), ke + P > Tt && (Tt = ke + O), H += 1, H % Bi === 0 || H === V || H === B) {
7691
+ }), Xe < vt && (vt = Xe), Xe + P > Bt && (Bt = Xe + P), ke < Nt && (Nt = ke), ke + P > Tt && (Tt = ke + O), H += 1, H % Ni === 0 || H === V || H === B) {
7692
7692
  Je = `${Je} ${Ue.groupByCaseEnd}`;
7693
7693
  const pr = {
7694
7694
  ...r,
7695
7695
  groupByFieldsForStatistics: [Je],
7696
7696
  outStatistics: [...q.values()]
7697
7697
  };
7698
- Ni.push(
7698
+ Ti.push(
7699
7699
  ou({
7700
7700
  chartConfig: i,
7701
7701
  queryConfig: pr,
@@ -7714,7 +7714,7 @@ async function lu(t) {
7714
7714
  }
7715
7715
  Xe += P, Ht += 1;
7716
7716
  }
7717
- b = (await Promise.all(Ni)).flat();
7717
+ b = (await Promise.all(Ti)).flat();
7718
7718
  }
7719
7719
  }
7720
7720
  }
@@ -7775,7 +7775,7 @@ function cu(t) {
7775
7775
  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;
7776
7776
  let d = [];
7777
7777
  if (e && "stackedAttributes" in i && i.stackedAttributes) {
7778
- const f = Da(a, r), m = i.attributes[f.lowerBoundaryAlias], y = i.attributes[f.upperBoundaryAlias];
7778
+ const f = Oa(a, r), m = i.attributes[f.lowerBoundaryAlias], y = i.attributes[f.upperBoundaryAlias];
7779
7779
  i.stackedAttributes.forEach((p) => {
7780
7780
  let g = p[f.stackAlias], S;
7781
7781
  typeof g == "number" && typeof n == "number" && (g *= n), typeof g == "number" && typeof n == "number" && (S = g + n);
@@ -7835,7 +7835,7 @@ function du(t) {
7835
7835
  async function fu(t) {
7836
7836
  const { queryObject: e, queryConfig: i, chartConfig: a, featureCount: r, errorStrings: n, abortKey: s, abortSignal: o } = t, u = a.series[0], { x: c, y: l } = u, d = z(e);
7837
7837
  let f = [];
7838
- const m = Ce(e), y = $t(d).idFields, p = (m?.filter((x) => St(x) && x.name !== c && x.name !== l) ?? []).map(
7838
+ const m = Ce(e), y = $t(d).idFields, p = (m?.filter((x) => Ft(x) && x.name !== c && x.name !== l) ?? []).map(
7839
7839
  (x) => x.name
7840
7840
  ) ?? [], g = u?.additionalTooltipFields ?? [], S = Array.from(
7841
7841
  /* @__PURE__ */ new Set([c, l, ...y ?? [], ...p, ...g])
@@ -7895,7 +7895,7 @@ async function mu(t) {
7895
7895
  }
7896
7896
  return e;
7897
7897
  }
7898
- async function cr(t) {
7898
+ async function dr(t) {
7899
7899
  const {
7900
7900
  chartConfig: e,
7901
7901
  queryConfig: i,
@@ -7943,12 +7943,12 @@ async function cr(t) {
7943
7943
  yStep: d.get(m),
7944
7944
  useQueryAttributeBins: S
7945
7945
  });
7946
- r !== !1 && pt({
7946
+ r !== !1 && ht({
7947
7947
  arrayToSort: v,
7948
7948
  sortingField: e.series[0].x,
7949
7949
  orderBy: ye.Ascending
7950
7950
  });
7951
- const { r2: x, trendLinePoints: B } = n !== !1 ? await qa({
7951
+ const { r2: x, trendLinePoints: B } = n !== !1 ? await Va({
7952
7952
  data: v,
7953
7953
  statsMap: d,
7954
7954
  queryConfig: i,
@@ -7975,20 +7975,20 @@ function it(t) {
7975
7975
  [E.StandardDeviation]: `${e ? "" : `${t}_`}${E.StandardDeviation}`
7976
7976
  };
7977
7977
  }
7978
- function dr(t) {
7978
+ function fr(t) {
7979
7979
  return "subType" in t && t.subType === xr.FeatureGauge;
7980
7980
  }
7981
7981
  function Ci(t) {
7982
7982
  let e;
7983
7983
  return t !== void 0 && ("bins" in t ? e = t.bins : "dataItems" in t && (e = t.dataItems)), e;
7984
7984
  }
7985
- function fr(t) {
7985
+ function mr(t) {
7986
7986
  return t === F.BoxPlotMultiFields || t === F.BoxPlotMultiFieldsAndCategory || t === F.BoxPlotMultiFieldsAndSplitBy;
7987
7987
  }
7988
7988
  function K(t) {
7989
7989
  const { key: e, y: i, chartSubType: a, splitBy: r, splitByValue: n, showOutliers: s, standardizeValues: o } = t;
7990
7990
  let u = n, l = it(i)[e];
7991
- return s === !0 && (e === E.Min || e === E.Max) && (l = `${l}${Rr}`), o === !0 && (fr(a) || e === E.Outlier) && (l = `${l}${$r}`), (n === void 0 || `${n}`.trim() === "") && (u = fe({ where: r, normalize: !0, escape: !1 })), u !== void 0 && `${u}`.trim() !== "" && (l = `${u}${l !== "" ? `_${l}` : ""}`), l;
7991
+ return s === !0 && (e === E.Min || e === E.Max) && (l = `${l}${Rr}`), o === !0 && (mr(a) || e === E.Outlier) && (l = `${l}${$r}`), (n === void 0 || `${n}`.trim() === "") && (u = fe({ where: r, normalize: !0, escape: !1 })), u !== void 0 && `${u}`.trim() !== "" && (l = `${u}${l !== "" ? `_${l}` : ""}`), l;
7992
7992
  }
7993
7993
  function Yt(t) {
7994
7994
  const { dataItem: e, y: i, splitBy: a, showOutliers: r } = t, n = K({ key: E.FirstQuartile, y: i, splitBy: a, showOutliers: r }), s = K({ key: E.ThirdQuartile, y: i, splitBy: a, showOutliers: r });
@@ -8025,18 +8025,18 @@ function yu(t) {
8025
8025
  }
8026
8026
  return s;
8027
8027
  }
8028
- function mr(t) {
8028
+ function vi(t) {
8029
8029
  return t.map((e) => e.id).filter((e) => e !== void 0);
8030
8030
  }
8031
8031
  function ue(t, e) {
8032
8032
  let i = [];
8033
- const a = e ?? mr(t), r = k(t);
8033
+ const a = e ?? vi(t), r = k(t);
8034
8034
  return i = t.filter((n) => a.includes(n.id)).map((n) => {
8035
8035
  let s = "y" in n ? n.y : void 0;
8036
8036
  return s !== void 0 && r === F.BarAndLineSplitByNoAggregation && (s = `${s.toString()}_${fe({ where: n.query?.where, keepSurroundingQuotes: !1, escape: !1 })}`), s;
8037
8037
  }).filter((n) => n !== void 0), Array.from(new Set(i.flat()));
8038
8038
  }
8039
- function vi(t) {
8039
+ function Bi(t) {
8040
8040
  const { seriesConfig: e, filteredSeriesIds: i, showMean: a } = t;
8041
8041
  let r = [];
8042
8042
  if (a === !0) {
@@ -8133,7 +8133,7 @@ function zd(t) {
8133
8133
  return r;
8134
8134
  }
8135
8135
  function pu(t, e) {
8136
- const i = /* @__PURE__ */ new Map(), a = e ?? mr(t);
8136
+ const i = /* @__PURE__ */ new Map(), a = e ?? vi(t);
8137
8137
  return t.forEach((r) => {
8138
8138
  if (a.includes(r.id) && "y" in r) {
8139
8139
  const n = i.get(r.type) ?? [];
@@ -8170,17 +8170,17 @@ function Su(t) {
8170
8170
  const { dataItem: e, ...i } = t, a = K({ key: E.Min, ...i }), r = K({ key: E.Max, ...i }), n = e[a], s = e[r];
8171
8171
  return { min: n, max: s };
8172
8172
  }
8173
- function Ui(t) {
8173
+ function Yi(t) {
8174
8174
  let e = Number.NaN, i = Number.NaN, a, r;
8175
8175
  const { chartConfig: n, chartData: s, filteredSeriesIds: o } = t, { series: u } = n;
8176
8176
  if (u?.length > 0) {
8177
8177
  const { x: c } = u[0], l = _(n.series);
8178
8178
  if (l === h.HistogramSeries && s.length > 0) {
8179
- const d = s[0]?.[Ri.Start], f = s[s.length - 1]?.[Ri.End];
8179
+ const d = s[0]?.[$i.Start], f = s[s.length - 1]?.[$i.End];
8180
8180
  a = typeof d == "number" ? d : a, r = typeof f == "number" ? f : r;
8181
8181
  } else {
8182
8182
  const d = s.filter((m) => m[c] !== null);
8183
- if ({ min: a, max: r } = ht(d, (m) => m[c]), n.axes?.[0]?.valueFormat.type === h.DateAxisFormat && a !== void 0 && r !== void 0 && ([a, r] = [new Date(a).valueOf(), new Date(r).valueOf()]), l === h.BoxPlotSeries) {
8183
+ if ({ min: a, max: r } = St(d, (m) => m[c]), n.axes?.[0]?.valueFormat.type === h.DateAxisFormat && a !== void 0 && r !== void 0 && ([a, r] = [new Date(a).valueOf(), new Date(r).valueOf()]), l === h.BoxPlotSeries) {
8184
8184
  e = Number.MAX_SAFE_INTEGER, i = Number.MIN_SAFE_INTEGER;
8185
8185
  const m = ue(u, o), y = k(u), p = "standardizeValues" in n ? n.standardizeValues === !0 : void 0, g = n.series.map(
8186
8186
  (S) => S.visible !== !1 ? fe({ where: S.query?.where }) : ""
@@ -8217,7 +8217,7 @@ function Ui(t) {
8217
8217
  case Te.Side:
8218
8218
  default: {
8219
8219
  e = Number.MAX_SAFE_INTEGER, i = Number.MIN_SAFE_INTEGER, ue(u, o).forEach((p) => {
8220
- const { min: g, max: S } = ht(
8220
+ const { min: g, max: S } = St(
8221
8221
  d,
8222
8222
  (b) => b[p]
8223
8223
  );
@@ -8255,7 +8255,7 @@ function gr(t) {
8255
8255
  let r = !1;
8256
8256
  if (a === 0) {
8257
8257
  if (yr(e)) {
8258
- const { minX: n, maxX: s } = Ui({
8258
+ const { minX: n, maxX: s } = Yi({
8259
8259
  chartConfig: e,
8260
8260
  chartData: i
8261
8261
  });
@@ -8265,7 +8265,7 @@ function gr(t) {
8265
8265
  const n = Fu({
8266
8266
  chartConfig: e,
8267
8267
  isSecondValueAxis: a === 2
8268
- }), { minY: s, maxY: o } = Ui({
8268
+ }), { minY: s, maxY: o } = Yi({
8269
8269
  chartConfig: e,
8270
8270
  chartData: i,
8271
8271
  filteredSeriesIds: n
@@ -8311,7 +8311,7 @@ function xu(t, e) {
8311
8311
  }
8312
8312
  return a;
8313
8313
  }
8314
- function Yi(t) {
8314
+ function Zi(t) {
8315
8315
  const e = { ...t };
8316
8316
  delete e[C.technicalSortingFieldBySum], delete e[C.technicalSortingFieldByPercent], delete e[C.pieChart.technicalFieldSlicePercent], delete e[C.pieChart.technicalFieldGroupedSlices], delete e[C.lastTemporalBin], delete e[C.originalServerBinningRange], delete e[C.technicalFieldSplitByField], delete e[W.uniqueIdsName], Object.keys(e).filter(
8317
8317
  (r) => r.includes(C.rendererSymbolField)
@@ -8331,7 +8331,7 @@ function Cu(t, e) {
8331
8331
  case h.RadarSeries:
8332
8332
  case h.PieSeries:
8333
8333
  {
8334
- r = r.map(Yi), i = { dataItems: r };
8334
+ r = r.map(Zi), i = { dataItems: r };
8335
8335
  const { timeIntervalInfo: n, serverLimitReached: s } = t ?? {};
8336
8336
  Sr(n) || (i.timeIntervalInfo = n), s !== void 0 && (i.serverLimitReached = s);
8337
8337
  }
@@ -8339,7 +8339,7 @@ function Cu(t, e) {
8339
8339
  case h.ScatterSeries:
8340
8340
  i = {
8341
8341
  ...i,
8342
- dataItems: r.map(Yi)
8342
+ dataItems: r.map(Zi)
8343
8343
  };
8344
8344
  break;
8345
8345
  }
@@ -8419,7 +8419,7 @@ async function Bu(t) {
8419
8419
  switch (w.objectIds = T, g) {
8420
8420
  case h.HeatSeries:
8421
8421
  S.push(
8422
- ur({
8422
+ cr({
8423
8423
  completeHeatChartDataset: !1,
8424
8424
  // we do not want the empty bins to be added for the selection
8425
8425
  chartConfig: a,
@@ -8491,7 +8491,7 @@ async function Bu(t) {
8491
8491
  break;
8492
8492
  case h.ScatterSeries:
8493
8493
  S.push(
8494
- cr({
8494
+ dr({
8495
8495
  queryObject: s,
8496
8496
  chartConfig: a,
8497
8497
  queryConfig: w,
@@ -8549,7 +8549,7 @@ async function Yd(t) {
8549
8549
  let N;
8550
8550
  const T = _(v), w = T !== h.HistogramSeries && T !== h.HeatSeries && x !== void 0 && x.length > 0 && !(v[0].x in x[0]) && !(ce in x[0]) && !(C.boxPlot.boxPlotCategory in x[0]);
8551
8551
  if (y !== !0 && S !== !1 && B !== void 0 && B.length > 0 && (a === !0 || w || u)) {
8552
- const A = Ci(i), I = ja({
8552
+ const A = Ci(i), I = Ha({
8553
8553
  queryObject: s,
8554
8554
  chartConfig: e,
8555
8555
  runtimeDataFilters: p,
@@ -8590,7 +8590,8 @@ async function Yd(t) {
8590
8590
  const Zd = {
8591
8591
  shouldCheckDataMinMaxForLogScaleOnXAxis: yr,
8592
8592
  minMaxHasZeroOrNegativeValues: li,
8593
- isChartWithZeroOrNegativeValues: gr
8593
+ isChartWithZeroOrNegativeValues: gr,
8594
+ getAllSeriesIDs: vi
8594
8595
  };
8595
8596
  export {
8596
8597
  hu as $,
@@ -8604,7 +8605,7 @@ export {
8604
8605
  $s as H,
8605
8606
  Ce as I,
8606
8607
  eo as J,
8607
- ct as K,
8608
+ dt as K,
8608
8609
  hd as L,
8609
8610
  Tc as M,
8610
8611
  oo as N,
@@ -8615,27 +8616,27 @@ export {
8615
8616
  Eo as S,
8616
8617
  xn as T,
8617
8618
  it as U,
8618
- vi as V,
8619
+ Bi as V,
8619
8620
  K as W,
8620
8621
  pi as X,
8621
8622
  k as Y,
8622
8623
  Nc as Z,
8623
- Ui as _,
8624
+ Yi as _,
8624
8625
  dd as a,
8625
8626
  Ec as a$,
8626
8627
  Mt as a0,
8627
8628
  qd as a1,
8628
- Ya as a2,
8629
+ Za as a2,
8629
8630
  gi as a3,
8630
8631
  ri as a4,
8631
8632
  ni as a5,
8632
- qi as a6,
8633
+ Vi as a6,
8633
8634
  xd as a7,
8634
8635
  Td as a8,
8635
8636
  Dn as a9,
8636
8637
  Xs as aA,
8637
8638
  Qs as aB,
8638
- Qa as aC,
8639
+ _a as aC,
8639
8640
  io as aD,
8640
8641
  Yd as aE,
8641
8642
  Re as aF,
@@ -8659,9 +8660,9 @@ export {
8659
8660
  Pc as aX,
8660
8661
  Dc as aY,
8661
8662
  Hc as aZ,
8662
- Pi as a_,
8663
- $a as aa,
8664
- ka as ab,
8663
+ Mi as a_,
8664
+ ka as aa,
8665
+ Qa as ab,
8665
8666
  Fd as ac,
8666
8667
  ro as ad,
8667
8668
  vc as ae,
@@ -8672,18 +8673,18 @@ export {
8672
8673
  Id as aj,
8673
8674
  ge as ak,
8674
8675
  xo as al,
8675
- Ha as am,
8676
+ za as am,
8676
8677
  ve as an,
8677
- Da as ao,
8678
- Ia as ap,
8678
+ Oa as ao,
8679
+ Ea as ap,
8679
8680
  go as aq,
8680
8681
  bd as ar,
8681
8682
  yo as as,
8682
8683
  ai as at,
8683
8684
  Us as au,
8684
8685
  Ss as av,
8685
- Ra as aw,
8686
- Va as ax,
8686
+ $a as aw,
8687
+ Ra as ax,
8687
8688
  Sd as ay,
8688
8689
  to as az,
8689
8690
  Ge as b,
@@ -8700,7 +8701,7 @@ export {
8700
8701
  Ie as b9,
8701
8702
  ho as bA,
8702
8703
  hi as bB,
8703
- dt as bC,
8704
+ ft as bC,
8704
8705
  Ld as bD,
8705
8706
  lo as bE,
8706
8707
  xc as bF,
@@ -8717,33 +8718,33 @@ export {
8717
8718
  xt as bQ,
8718
8719
  yd as bR,
8719
8720
  Cu as bS,
8720
- Yi as bT,
8721
+ Zi as bT,
8721
8722
  xu as bU,
8722
8723
  bu as bV,
8723
8724
  Gd as bW,
8724
8725
  Ud as bX,
8725
8726
  Uc as bY,
8726
8727
  Zs as bZ,
8727
- zi as b_,
8728
+ Wi as b_,
8728
8729
  Bn as ba,
8729
8730
  ao as bb,
8730
8731
  zd as bc,
8731
8732
  Fc as bd,
8732
- da as be,
8733
+ fa as be,
8733
8734
  Ee as bf,
8734
- dr as bg,
8735
+ fr as bg,
8735
8736
  Bd as bh,
8736
- fr as bi,
8737
+ mr as bi,
8737
8738
  Yc as bj,
8738
- St as bk,
8739
+ Ft as bk,
8739
8740
  mo as bl,
8740
8741
  pd as bm,
8741
- pa as bn,
8742
+ ha as bn,
8742
8743
  Pe as bo,
8743
8744
  no as bp,
8744
8745
  Cd as bq,
8745
8746
  bc as br,
8746
- fa as bs,
8747
+ ma as bs,
8747
8748
  mn as bt,
8748
8749
  vd as bu,
8749
8750
  wd as bv,
@@ -8763,11 +8764,11 @@ export {
8763
8764
  sd as c7,
8764
8765
  Qd as c8,
8765
8766
  nd as c9,
8766
- Ft as cA,
8767
+ bt as cA,
8767
8768
  al as cB,
8768
8769
  Md as cC,
8769
8770
  Sc as cD,
8770
- Di as cE,
8771
+ Oi as cE,
8771
8772
  oc as cF,
8772
8773
  yc as cG,
8773
8774
  ld as cH,
@@ -8776,13 +8777,13 @@ export {
8776
8777
  uc as cK,
8777
8778
  ud as cL,
8778
8779
  ti as cM,
8779
- gt as cN,
8780
+ pt as cN,
8780
8781
  dn as cO,
8781
8782
  Jc as cP,
8782
8783
  md as cQ,
8783
8784
  We as cR,
8784
- Ri as cS,
8785
- Aa as cT,
8785
+ $i as cS,
8786
+ wa as cT,
8786
8787
  Dd as cU,
8787
8788
  ad as cV,
8788
8789
  Hd as cW,
@@ -8799,7 +8800,7 @@ export {
8799
8800
  en as cg,
8800
8801
  sc as ch,
8801
8802
  ed as ci,
8802
- Mi as cj,
8803
+ Di as cj,
8803
8804
  od as ck,
8804
8805
  In as cl,
8805
8806
  st as cm,
@@ -8822,8 +8823,8 @@ export {
8822
8823
  id as d2,
8823
8824
  Hn as d3,
8824
8825
  yi as d4,
8825
- lr as d5,
8826
- ja as e,
8826
+ ur as d5,
8827
+ Ha as e,
8827
8828
  Zc as f,
8828
8829
  Qe as g,
8829
8830
  Y as h,
@@ -8836,7 +8837,7 @@ export {
8836
8837
  Wc as o,
8837
8838
  Yt as p,
8838
8839
  Gc as q,
8839
- ma as r,
8840
+ ya as r,
8840
8841
  Cc as s,
8841
8842
  yn as t,
8842
8843
  gn as u,