@arcgis/charts-components 5.2.0-next.64 → 5.2.0-next.66

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 (135) hide show
  1. package/dist/cdn/{DBL7YAA3.js → 2TJIWV5F.js} +1 -1
  2. package/dist/cdn/{TTP4J64D.js → 5XXUPM5P.js} +1 -1
  3. package/dist/cdn/{ER3EOKSB.js → 7HUL35PU.js} +1 -1
  4. package/dist/cdn/{R6DTHFYW.js → ALCVBLC3.js} +1 -1
  5. package/dist/cdn/{C4ECGYJQ.js → AVDYAU62.js} +1 -1
  6. package/dist/cdn/{GEET3CQC.js → BPK3PD5M.js} +1 -1
  7. package/dist/cdn/{6KVXTLIC.js → BYD5Z33P.js} +1 -1
  8. package/dist/cdn/{5QYGNJZZ.js → DO2EWRXG.js} +1 -1
  9. package/dist/cdn/{HKUVYTBA.js → DWRQVHUB.js} +1 -1
  10. package/dist/cdn/{MDYXKBBD.js → EIXBC2RU.js} +1 -1
  11. package/dist/cdn/{7YYGELLZ.js → EMGSXQME.js} +1 -1
  12. package/dist/cdn/{COLQXDK7.js → ES2EMZAG.js} +1 -1
  13. package/dist/cdn/{25YKUXSB.js → FAAWFOLV.js} +1 -1
  14. package/dist/cdn/{NVHBKDPY.js → GCZ6DFXI.js} +1 -1
  15. package/dist/cdn/{SZKPEUN5.js → GDDDGPAU.js} +1 -1
  16. package/dist/cdn/{QPY7Y5TQ.js → GJL4IRBS.js} +1 -1
  17. package/dist/cdn/{U2B6RADM.js → GLSEW7NT.js} +1 -1
  18. package/dist/cdn/{FZJIUJA5.js → GOE2U47L.js} +1 -1
  19. package/dist/cdn/{TNP5SEQB.js → GQCETYSQ.js} +1 -1
  20. package/dist/cdn/{X32ZF5ZW.js → HQA6T34B.js} +1 -1
  21. package/dist/cdn/{5S6KE7ZK.js → IIDIJAAE.js} +1 -1
  22. package/dist/cdn/{KQVRPDUR.js → J6SJWHVL.js} +1 -1
  23. package/dist/cdn/{2MAAPBYT.js → JG7NKECK.js} +1 -1
  24. package/dist/cdn/JKBOZKG3.js +2 -0
  25. package/dist/cdn/{WHL2M7QL.js → JLCPLGX7.js} +1 -1
  26. package/dist/cdn/{H574T3WF.js → JP22TFCC.js} +22 -22
  27. package/dist/cdn/{FQXTBPWM.js → JPT4AHGX.js} +1 -1
  28. package/dist/cdn/{MIJFC5AH.js → JR7H3QP3.js} +1 -1
  29. package/dist/cdn/{5LWQLRYG.js → JVKBKQVH.js} +1 -1
  30. package/dist/cdn/{RFDSBNKF.js → KBFQXCDZ.js} +1 -1
  31. package/dist/cdn/{PJTM63EA.js → KIN7EK6A.js} +1 -1
  32. package/dist/cdn/{5ULER4YN.js → KKJXMY7J.js} +1 -1
  33. package/dist/cdn/{TH2NZINL.js → KW36EC35.js} +1 -1
  34. package/dist/cdn/{K2PVH6WC.js → L5MHZ4XS.js} +1 -1
  35. package/dist/cdn/{JCHZJK2Y.js → LEHLFA4M.js} +1 -1
  36. package/dist/cdn/{BDHKWS47.js → LJNSQDP4.js} +1 -1
  37. package/dist/cdn/{CR3AO65Y.js → LYH6FAVN.js} +1 -1
  38. package/dist/cdn/{WW7VTR4G.js → MKWYVBKT.js} +1 -1
  39. package/dist/cdn/{SR3ZVQU3.js → MN4IWNOW.js} +1 -1
  40. package/dist/cdn/{QO6DZX5X.js → MQL76WZU.js} +1 -1
  41. package/dist/cdn/{B5EBQSZO.js → N5EWBVEP.js} +1 -1
  42. package/dist/cdn/{Q3JWIFPJ.js → NERP6IQJ.js} +1 -1
  43. package/dist/cdn/{EC74URPL.js → NRP7JZ2N.js} +1 -1
  44. package/dist/cdn/{BUN3G5US.js → NS4DTKTX.js} +1 -1
  45. package/dist/cdn/{VXPINEQQ.js → O5TF56YM.js} +1 -1
  46. package/dist/cdn/{BASOJPOL.js → OOFDCJTZ.js} +1 -1
  47. package/dist/cdn/{WJVFKW47.js → P2FVU6TM.js} +1 -1
  48. package/dist/cdn/{M5ZGHJP4.js → P66FIZ3I.js} +1 -1
  49. package/dist/cdn/{NTDDQAKJ.js → PYPCKQIM.js} +1 -1
  50. package/dist/cdn/{QH67KX5R.js → PZTO7HAL.js} +2 -2
  51. package/dist/cdn/{GF6SKP3D.js → Q4QBDDTZ.js} +1 -1
  52. package/dist/cdn/{HLFZHWSK.js → RB4M4A3A.js} +1 -1
  53. package/dist/cdn/{LX7DEKHW.js → RC3EE625.js} +1 -1
  54. package/dist/cdn/{LVKFQ36J.js → RCXEKJIO.js} +1 -1
  55. package/dist/cdn/{PGO2EPCC.js → RFC5H2U3.js} +1 -1
  56. package/dist/cdn/{EMJQHL2T.js → RHMWRE52.js} +1 -1
  57. package/dist/cdn/{XHLNNBJC.js → RKY6MJXO.js} +2 -2
  58. package/dist/cdn/{JFGIGXOO.js → RMAADG2K.js} +1 -1
  59. package/dist/cdn/{6VNIZLPT.js → S3QRGN6V.js} +1 -1
  60. package/dist/cdn/{GPPFULKZ.js → SJ62ZS3H.js} +1 -1
  61. package/dist/cdn/{KRQLN2QY.js → SLPFRGJW.js} +1 -1
  62. package/dist/cdn/{RCI3EBQ4.js → SSLW7SXN.js} +1 -1
  63. package/dist/cdn/{ML3E4VVC.js → SYK7CNXD.js} +1 -1
  64. package/dist/cdn/{XCSDBTBL.js → SZX7IBPD.js} +1 -1
  65. package/dist/cdn/{5SQUKJMS.js → TGZFKDPC.js} +1 -1
  66. package/dist/cdn/{JGGBN4YB.js → TLN3DUDJ.js} +1 -1
  67. package/dist/cdn/{3OPHROOV.js → TZKCYATE.js} +1 -1
  68. package/dist/cdn/{6EO2NURO.js → UBRIQVHZ.js} +1 -1
  69. package/dist/cdn/{BQB66RIJ.js → UY3733IE.js} +1 -1
  70. package/dist/cdn/{54XEAJ7U.js → VK6FNPKY.js} +1 -1
  71. package/dist/cdn/{YWRJTKES.js → VQ2EMCYL.js} +1 -1
  72. package/dist/cdn/{KNVQY6ET.js → VSJK5RTD.js} +1 -1
  73. package/dist/cdn/{WGKEYRHI.js → W6VVXP6G.js} +1 -1
  74. package/dist/cdn/{5WWQNPXJ.js → XGNDVHWJ.js} +1 -1
  75. package/dist/cdn/{6OOWQDFB.js → XLUNDGEL.js} +1 -1
  76. package/dist/cdn/{B2NT7BMA.js → XVMQD75T.js} +1 -1
  77. package/dist/cdn/{7QCFIGAG.js → XZVQQOEN.js} +1 -1
  78. package/dist/cdn/{YM3PEBYW.js → ZGFZTSYD.js} +1 -1
  79. package/dist/cdn/{PN62LQYN.js → ZJMTZWFM.js} +1 -1
  80. package/dist/cdn/{743FPGT4.js → ZP2WKE5B.js} +1 -1
  81. package/dist/cdn/{IRG22MBH.js → ZW7RPK6D.js} +1 -1
  82. package/dist/cdn/index.js +1 -1
  83. package/dist/cdn/model/shared/setup-utils.js +1 -1
  84. package/dist/chunks/index2.js +1500 -1491
  85. package/dist/chunks/index4.js +11 -7
  86. package/dist/chunks/serial-chart-data.js +325 -326
  87. package/dist/components/arcgis-chart/customElement.d.ts +247 -69
  88. package/dist/components/arcgis-chart/customElement.js +2877 -2864
  89. package/dist/docs/api.json +1 -1
  90. package/dist/docs/docs.json +1 -1
  91. package/dist/docs/vscode.html-custom-data.json +1 -1
  92. package/dist/docs/web-types.json +1 -1
  93. package/dist/json-schema/index.d.ts +4 -0
  94. package/dist/spec/data-source.d.ts +2 -0
  95. package/package.json +5 -5
  96. package/dist/cdn/SUUDJODL.js +0 -2
  97. /package/dist/cdn/{EXS2KOEA.js → 274L47ID.js} +0 -0
  98. /package/dist/cdn/{GP3LPIRJ.js → 3QPQ3RE5.js} +0 -0
  99. /package/dist/cdn/{A2NFOGT2.js → 47E3TKSH.js} +0 -0
  100. /package/dist/cdn/{3FZCVKWJ.js → 4BQ22DKZ.js} +0 -0
  101. /package/dist/cdn/{IUOORM26.js → 64F7QNUM.js} +0 -0
  102. /package/dist/cdn/{CL5G6D6W.js → 6LACIKDG.js} +0 -0
  103. /package/dist/cdn/{UB36FUCN.js → 6PDO75JM.js} +0 -0
  104. /package/dist/cdn/{TSSN2OW3.js → 6WJKLKEZ.js} +0 -0
  105. /package/dist/cdn/{DJPMW6UC.js → 7PC3VBMY.js} +0 -0
  106. /package/dist/cdn/{CHMLTTRN.js → 7XHAJY6Q.js} +0 -0
  107. /package/dist/cdn/{ASZ6YFIL.js → ACRMB7MU.js} +0 -0
  108. /package/dist/cdn/{MZ2RZ62O.js → B4RCAP3J.js} +0 -0
  109. /package/dist/cdn/{HQMOMCWF.js → BJC2AIS3.js} +0 -0
  110. /package/dist/cdn/{D3KIBJKD.js → C3A3UXVR.js} +0 -0
  111. /package/dist/cdn/{3CGAUDYD.js → CKIF4L44.js} +0 -0
  112. /package/dist/cdn/{3GVTYZ2I.js → DWYBKGOM.js} +0 -0
  113. /package/dist/cdn/{PEEVY5UG.js → EQD2B3I6.js} +0 -0
  114. /package/dist/cdn/{VT6X6QMA.js → FBLOPEXC.js} +0 -0
  115. /package/dist/cdn/{HSQ32NUA.js → GBOCN364.js} +0 -0
  116. /package/dist/cdn/{HBOYEK6P.js → HDYL2BOC.js} +0 -0
  117. /package/dist/cdn/{CVJSVWF3.js → HP3GIDT5.js} +0 -0
  118. /package/dist/cdn/{OSUM4CWA.js → IR2W7UQ3.js} +0 -0
  119. /package/dist/cdn/{TGEHTOWR.js → J3VAMS5Z.js} +0 -0
  120. /package/dist/cdn/{LHDBHPXR.js → JWEGCP5P.js} +0 -0
  121. /package/dist/cdn/{V7AEHY25.js → K2PVLPOV.js} +0 -0
  122. /package/dist/cdn/{AZMQPJO3.js → LC4YFJSM.js} +0 -0
  123. /package/dist/cdn/{VNNTABNO.js → MGAMMXJW.js} +0 -0
  124. /package/dist/cdn/{7WVTY3XI.js → MSB6J66X.js} +0 -0
  125. /package/dist/cdn/{CDJRYMBP.js → NWHLFMAD.js} +0 -0
  126. /package/dist/cdn/{22WGB4CQ.js → PMAHEVYY.js} +0 -0
  127. /package/dist/cdn/{4EBMUPEV.js → PQVUA4T4.js} +0 -0
  128. /package/dist/cdn/{KOCZJFY6.js → Q2OIHROC.js} +0 -0
  129. /package/dist/cdn/{4VL2SBHK.js → Q2WDEGUQ.js} +0 -0
  130. /package/dist/cdn/{WKQB6Z7Z.js → XDNGNOOK.js} +0 -0
  131. /package/dist/cdn/{AZKX3FMB.js → XJVFIGWI.js} +0 -0
  132. /package/dist/cdn/{PAQGR4DD.js → Y2NESTSK.js} +0 -0
  133. /package/dist/cdn/{MVCB4RM7.js → YFHCD7R2.js} +0 -0
  134. /package/dist/cdn/{CMGCZ4MF.js → YW6IZCRW.js} +0 -0
  135. /package/dist/cdn/{JZ5HUNM5.js → ZK2KMZEI.js} +0 -0
@@ -1,20 +1,20 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import { substitute as w } from "@arcgis/core/intl.js";
3
- import { cloneDeep as G, isEmpty as Ye, memoize as We } from "lodash-es";
4
- import { S as ne } from "./common.js";
5
- import { s as D, u as E, a as Ie, g as ye, b as Le, c as He, d as Xe, e as pe } from "./utils.js";
6
- import { w as I, i as Ue, di as W, cn as je, bC as Ke, a$ as De, x as Ze, Y as J, cS as _e, cR as Qe, p as ze, aJ as me, ct as Ge, d as Je, aI as et, I as tt, a7 as st, bx as it, W as at, e as rt, bI as nt, ds as ot, v as lt, dy as fe, cb as ut, dz as ct, c7 as dt, B as yt, N as Se, bL as Z, dv as mt, bj as Y, bP as _, ap as U, a6 as Ne, bd as P, bc as gt, k as oe, bt as pt, bB as ft, bs as O, bA as V, bp as Fe, br as xe } from "./index2.js";
7
- import { a as M, s as ge, g as ee, b as he, c as St } from "./data.js";
2
+ import { substitute as E } from "@arcgis/core/intl.js";
3
+ import { cloneDeep as J, isEmpty as Ye, memoize as We } from "lodash-es";
4
+ import { S as oe } from "./common.js";
5
+ import { s as D, u as $, a as Ie, g as ye, b as Le, c as He, d as Xe, e as pe } from "./utils.js";
6
+ import { w as I, i as Ue, di as W, cn as je, bC as Ke, a$ as De, x as Ze, Y as ee, cS as _e, cR as Qe, p as ze, aJ as me, ct as Ge, d as Je, aI as et, I as tt, a7 as st, bx as it, W as at, e as rt, bI as nt, ds as ot, v as lt, dy as fe, cb as ct, dz as ut, c7 as dt, B as yt, N as Se, bL as _, dv as mt, bj as q, bP as Q, ap as j, a6 as Ne, bd as M, bc as gt, k as U, bt as pt, bB as ft, bs as O, bA as V, bp as Fe, br as xe } from "./index2.js";
7
+ import { a as P, s as ge, g as te, b as he, c as St } from "./data.js";
8
8
  import { u as T, r as v, k as Ft, d as k, n as L, m as H, p as xt, t as ht, s as le } from "./chart-object-literals.js";
9
9
  import { R as Oe, i as Tt } from "./rest-js-object-literals.js";
10
- import { i as te } from "./index4.js";
11
- import { aD as Bt, K as Q, F as ue, w as Ct, $ as bt, ac as At, ao as vt, A as It, a2 as Lt } from "./index.js";
12
- import { C as q, F as X, d as R } from "./index3.js";
10
+ import { i as se } from "./index4.js";
11
+ import { aD as Bt, K as z, F as ce, w as Ct, $ as bt, ac as At, ao as vt, A as It, a2 as Lt } from "./index.js";
12
+ import { C as w, F as X, d as R } from "./index3.js";
13
13
  import { g as Ve, s as Dt } from "./series-types.js";
14
14
  import { convertChartSpec as Nt } from "../utils/chart-config/converter/index.js";
15
- import { d as ce, f as Ot } from "./type-guards.js";
15
+ import { d as ue, f as Ot } from "./type-guards.js";
16
16
  import { C as Vt, m as kt } from "./model-setter.js";
17
- import { g as se } from "./utils2.js";
17
+ import { g as ie } from "./utils2.js";
18
18
  import { a as Rt, b as qt } from "./series-length.js";
19
19
  const Ds = (s) => {
20
20
  let e;
@@ -59,9 +59,9 @@ const Ds = (s) => {
59
59
  }, Mt = (s) => {
60
60
  Pt(0, s);
61
61
  };
62
- var $t = Object.defineProperty, Yt = Object.getOwnPropertyDescriptor, Wt = (s, e, t, a) => {
63
- for (var i = Yt(e, t), r = s.length - 1, n; r >= 0; r--)
64
- (n = s[r]) && (i = n(e, t, i) || i);
62
+ var $t = Object.defineProperty, Yt = Object.getOwnPropertyDescriptor, Wt = (s, e, t, r) => {
63
+ for (var i = Yt(e, t), a = s.length - 1, n; a >= 0; a--)
64
+ (n = s[a]) && (i = n(e, t, i) || i);
65
65
  return i && $t(e, t, i), i;
66
66
  };
67
67
  const Ht = (s) => {
@@ -71,8 +71,8 @@ const Ht = (s) => {
71
71
  }), e || (e = s?.axes?.[0]?.valueFormat.type === T.DateAxisFormat ? s.axes[0].valueFormat.intlOptions.timeZone : void 0), e;
72
72
  }, ke = (s, e) => {
73
73
  const t = Ue(s);
74
- W(e) ? s ? e.outTimeZone = t : delete e.outTimeZone : e?.series.forEach((a) => {
75
- (a.type === T.BarSeries || a.type === T.RadarSeries || a.type === T.LineSeries) && (s ? (a.temporalBinning ??= {}, a.temporalBinning.outTimeZone = t) : a.temporalBinning && delete a.temporalBinning.outTimeZone);
74
+ W(e) ? s ? e.outTimeZone = t : delete e.outTimeZone : e?.series.forEach((r) => {
75
+ (r.type === T.BarSeries || r.type === T.RadarSeries || r.type === T.LineSeries) && (s ? (r.temporalBinning ??= {}, r.temporalBinning.outTimeZone = t) : r.temporalBinning && delete r.temporalBinning.outTimeZone);
76
76
  }), e?.axes?.[0]?.valueFormat.type === T.DateAxisFormat && (s ? e.axes[0].valueFormat.intlOptions.timeZone = t : delete e.axes[0].valueFormat.intlOptions.timeZone);
77
77
  };
78
78
  class Xt extends Vt {
@@ -109,59 +109,59 @@ function Ms(s, e) {
109
109
  return e != null || De(s);
110
110
  }
111
111
  async function $s(s) {
112
- const { config: e, layer: t, abortSignal: a } = s;
112
+ const { config: e, layer: t, abortSignal: r } = s;
113
113
  let i = !1;
114
- return ce(t) || Ot(e) ? e && ce(t) && (i = await Ke({ config: e, layer: t, abortSignal: a })) : i = !0, i;
114
+ return ue(t) || Ot(e) ? e && ue(t) && (i = await Ke({ config: e, layer: t, abortSignal: r })) : i = !0, i;
115
115
  }
116
116
  async function jt(s) {
117
117
  const {
118
118
  queryObject: e,
119
119
  chartConfig: t,
120
- splitByField: a,
120
+ splitByField: r,
121
121
  errorStrings: i,
122
- abortSignal: r,
122
+ abortSignal: a,
123
123
  runtimeDataFilters: n,
124
124
  ignoreViewExtent: o,
125
125
  setTimeBinningInfoWhenNotProvided: l,
126
- returnFeaturesExtent: c,
126
+ returnFeaturesExtent: u,
127
127
  chartLimits: p
128
128
  } = s;
129
129
  let g = [], d;
130
- const m = G(t), y = m.series[0], u = rt({
130
+ const m = J(t), y = m.series[0], c = rt({
131
131
  queryObject: e,
132
132
  chartConfig: m,
133
133
  runtimeDataFilters: n,
134
134
  ignoreViewExtent: o
135
135
  });
136
- if (u.outStatistics?.[0]?.outStatisticFieldName && (u.outStatistics[0].outStatisticFieldName = Bt.outStatistics.outStatisticFieldName), I(y) && nt({
136
+ if (c.outStatistics?.[0]?.outStatisticFieldName && (c.outStatistics[0].outStatisticFieldName = Bt.outStatistics.outStatisticFieldName), I(y) && nt({
137
137
  xAxisValueFormatType: ot(m),
138
138
  setTimeBinningInfoWhenNotProvided: l,
139
139
  seriesConfig: y,
140
140
  queryObject: e
141
- }) && lt(a, e)) {
141
+ }) && lt(r, e)) {
142
142
  const { temporalBinning: S, x: F } = y, { uniqueQuery: x } = fe({
143
143
  chartConfig: m,
144
- queryConfig: u,
144
+ queryConfig: c,
145
145
  queryObject: e,
146
146
  setTimeBinningInfoWhenNotProvided: l,
147
- returnFeaturesExtent: c,
147
+ returnFeaturesExtent: u,
148
148
  chartLimits: p
149
149
  }), f = t.axes?.[0].valueFormat.type === T.DateAxisFormat ? t.axes[0].valueFormat.intlOptions.timeZone : void 0;
150
- d = await ut({
150
+ d = await ct({
151
151
  queryObject: e,
152
152
  dateField: F,
153
- splitByField: a,
153
+ splitByField: r,
154
154
  queryConfig: x,
155
155
  axisTimeZone: f,
156
156
  temporalBinning: S,
157
157
  errorStrings: i,
158
- abortSignal: r
158
+ abortSignal: a
159
159
  }), g = Array.from(
160
160
  new Set(
161
- d.flatMap((A) => {
162
- const { stackedAttributes: b } = A;
161
+ d.flatMap((b) => {
162
+ const { stackedAttributes: C } = b;
163
163
  let B = [];
164
- return b && (B = b.map((C) => C[a]).filter((C) => C !== void 0)), B;
164
+ return C && (B = C.map((A) => A[r]).filter((A) => A !== void 0)), B;
165
165
  })
166
166
  ).values()
167
167
  );
@@ -169,27 +169,27 @@ async function jt(s) {
169
169
  const { uniqueQuery: S } = fe({
170
170
  chartConfig: m,
171
171
  queryObject: e,
172
- queryConfig: u,
172
+ queryConfig: c,
173
173
  setTimeBinningInfoWhenNotProvided: l,
174
- returnFeaturesExtent: c,
174
+ returnFeaturesExtent: u,
175
175
  chartLimits: p
176
- }), { elementCount: F } = await ct({
176
+ }), { elementCount: F } = await ut({
177
177
  chartConfig: m,
178
178
  queryObject: e,
179
- queryConfig: u,
179
+ queryConfig: c,
180
180
  behaviorAfterLimit: p?.behaviorAfterLimit,
181
181
  numberMaxOfFeaturesToFetch: S.num,
182
- abortSignal: r
182
+ abortSignal: a
183
183
  });
184
184
  d = await dt({
185
185
  queryObject: e,
186
186
  queryConfig: S,
187
187
  featureCount: F,
188
188
  errorStrings: i,
189
- abortSignal: r
189
+ abortSignal: a
190
190
  }), g = Array.from(
191
191
  new Set(
192
- d.map((x) => x.attributes[a]).filter((x) => x !== void 0)
192
+ d.map((x) => x.attributes[r]).filter((x) => x !== void 0)
193
193
  ).values()
194
194
  );
195
195
  }
@@ -197,9 +197,9 @@ async function jt(s) {
197
197
  }
198
198
  function Kt(s, e) {
199
199
  const t = /* @__PURE__ */ new Map();
200
- return s.series.forEach((a) => {
200
+ return s.series.forEach((r) => {
201
201
  let i = me({
202
- where: a.query?.where,
202
+ where: r.query?.where,
203
203
  // normalize the value so it matches what we get from getAllValues()
204
204
  // Refer to https://devtopia.esri.com/WebGIS/arcgis-charts/issues/8127
205
205
  normalize: !0,
@@ -208,85 +208,85 @@ function Kt(s, e) {
208
208
  escape: !1
209
209
  });
210
210
  e && i !== null && (i = Number(i));
211
- const r = Ve([a]);
212
- r !== void 0 && t.set(r, [
213
- ...t.get(r) ?? [],
211
+ const a = Ve([r]);
212
+ a !== void 0 && t.set(a, [
213
+ ...t.get(a) ?? [],
214
214
  i
215
215
  ]);
216
216
  }), t;
217
217
  }
218
218
  function Zt(s) {
219
- const { allValues: e, configUniqueValuesPerSeriesType: t, initialConfigWasEmpty: a } = s, i = /* @__PURE__ */ new Map();
220
- return Array.from(t.keys()).forEach((r) => {
221
- const n = t.get(r) ?? [];
219
+ const { allValues: e, configUniqueValuesPerSeriesType: t, initialConfigWasEmpty: r } = s, i = /* @__PURE__ */ new Map();
220
+ return Array.from(t.keys()).forEach((a) => {
221
+ const n = t.get(a) ?? [];
222
222
  let o = [];
223
- a ? o = e : e.forEach((l) => {
223
+ r ? o = e : e.forEach((l) => {
224
224
  n.includes(l) || o.push(l);
225
- }), i.set(r, o);
225
+ }), i.set(a, o);
226
226
  }), i;
227
227
  }
228
228
  function _t(s) {
229
- const { chartConfig: e, missingValue: t, splitByField: a, seriesTemplate: i } = s, r = JSON.parse(
229
+ const { chartConfig: e, missingValue: t, splitByField: r, seriesTemplate: i } = s, a = JSON.parse(
230
230
  JSON.stringify({
231
231
  ...e.series[0],
232
232
  ...i
233
233
  })
234
234
  );
235
- if (r.query) {
236
- if (t === null ? r.id = X.nullValue : t === "" ? r.id = X.emptyStringValue : r.id = `${t}`, r.name = `${t}`, r.query.outStatistics?.[0] !== void 0) {
237
- const o = r.id;
238
- r.query.outStatistics[0].outStatisticFieldName = o, "y" in r && (r.y = o);
235
+ if (a.query) {
236
+ if (t === null ? a.id = X.nullValue : t === "" ? a.id = X.emptyStringValue : a.id = `${t}`, a.name = `${t}`, a.query.outStatistics?.[0] !== void 0) {
237
+ const o = a.id;
238
+ a.query.outStatistics[0].outStatisticFieldName = o, "y" in a && (a.y = o);
239
239
  }
240
240
  const n = typeof t == "number" || t === null ? t : `'${t}'`;
241
- r.query.where = `${a}=${n}`;
241
+ a.query.where = `${r}=${n}`;
242
242
  }
243
- return r;
243
+ return a;
244
244
  }
245
245
  async function Qt(s) {
246
246
  const {
247
247
  updateSplitBySeries: e,
248
248
  config: t,
249
- queryObject: a,
249
+ queryObject: r,
250
250
  errorStrings: i,
251
- abortSignal: r,
251
+ abortSignal: a,
252
252
  runtimeDataFilters: n,
253
253
  ignoreViewExtent: o,
254
254
  setTimeBinningInfoWhenNotProvided: l,
255
- returnFeaturesExtent: c,
255
+ returnFeaturesExtent: u,
256
256
  chartLimits: p
257
257
  } = s, { seriesTemplate: g } = e ?? {};
258
258
  let d;
259
- if (a && !ce(a) && e !== void 0 && t !== void 0 && (t.series.length > 0 || g !== void 0) && e.addMissingSeries) {
259
+ if (r && !ue(r) && e !== void 0 && t !== void 0 && (t.series.length > 0 || g !== void 0) && e.addMissingSeries) {
260
260
  const m = t.series.length === 0;
261
261
  t.series.length === 0 && g !== void 0 && t.series.push(g);
262
- const y = J(t.series);
263
- if (y === q.BoxPlotMonoFieldAndSplitBy || y === q.BoxPlotMultiFieldsAndSplitBy || y === q.BoxPlotMonoFieldAndCategoryAndSplitBy || y === q.BarAndLineSplitBy || y === q.BarAndLineSplitByNoAggregation) {
264
- const u = et(t.series[0]?.query?.where), S = tt(a), F = st(u, S), x = F ? it(F) : !1, f = await jt({
265
- queryObject: a,
262
+ const y = ee(t.series);
263
+ if (y === w.BoxPlotMonoFieldAndSplitBy || y === w.BoxPlotMultiFieldsAndSplitBy || y === w.BoxPlotMonoFieldAndCategoryAndSplitBy || y === w.BarAndLineSplitBy || y === w.BarAndLineSplitByNoAggregation) {
264
+ const c = et(t.series[0]?.query?.where), S = tt(r), F = st(c, S), x = F ? it(F) : !1, f = await jt({
265
+ queryObject: r,
266
266
  chartConfig: t,
267
- splitByField: u,
268
- abortSignal: r,
267
+ splitByField: c,
268
+ abortSignal: a,
269
269
  runtimeDataFilters: n,
270
270
  ignoreViewExtent: o,
271
271
  setTimeBinningInfoWhenNotProvided: l,
272
- returnFeaturesExtent: c,
272
+ returnFeaturesExtent: u,
273
273
  chartLimits: p,
274
274
  errorStrings: i
275
- }), { allValues: A } = f;
276
- if ({ preFetchedQueryResponse: d } = f, A.length > 0) {
277
- const b = Kt(t, x), B = Zt({
278
- allValues: A,
279
- configUniqueValuesPerSeriesType: b,
275
+ }), { allValues: b } = f;
276
+ if ({ preFetchedQueryResponse: d } = f, b.length > 0) {
277
+ const C = Kt(t, x), B = Zt({
278
+ allValues: b,
279
+ configUniqueValuesPerSeriesType: C,
280
280
  initialConfigWasEmpty: m
281
281
  });
282
- Array.from(B.keys()).forEach((C) => {
283
- (B.get(C) ?? []).forEach(($) => {
282
+ Array.from(B.keys()).forEach((A) => {
283
+ (B.get(A) ?? []).forEach((Y) => {
284
284
  t.series.push(
285
285
  _t({
286
286
  chartConfig: t,
287
287
  seriesTemplate: g,
288
- missingValue: $,
289
- splitByField: u
288
+ missingValue: Y,
289
+ splitByField: c
290
290
  })
291
291
  );
292
292
  }), m && t.series.shift();
@@ -303,57 +303,57 @@ async function Ys(s) {
303
303
  const {
304
304
  configToAlter: e,
305
305
  layer: t,
306
- addMissingSeries: a,
306
+ addMissingSeries: r,
307
307
  updateSplitBySeries: i,
308
- chartContainer: r,
308
+ chartContainer: a,
309
309
  queryObject: n,
310
310
  abortSignal: o,
311
311
  runtimeDataFilters: l,
312
- ignoreViewExtent: c,
312
+ ignoreViewExtent: u,
313
313
  setTimeBinningInfoWhenNotProvided: p,
314
314
  returnFeaturesExtent: g,
315
315
  chartLimits: d,
316
316
  timeZone: m,
317
317
  errorStrings: y
318
318
  } = s;
319
- let u = e, S;
320
- return u && (zt(t, u), u = await Nt(u, t, void 0, o), a && n && (S = await Qt({
319
+ let c = e, S;
320
+ return c && (zt(t, c), c = await Nt(c, t, void 0, o), r && n && (S = await Qt({
321
321
  updateSplitBySeries: i,
322
- config: u,
322
+ config: c,
323
323
  queryObject: n,
324
324
  errorStrings: y,
325
325
  abortSignal: o,
326
326
  runtimeDataFilters: l,
327
- ignoreViewExtent: c,
327
+ ignoreViewExtent: u,
328
328
  setTimeBinningInfoWhenNotProvided: p,
329
329
  returnFeaturesExtent: g,
330
330
  chartLimits: d
331
- })), u = je(u, r), ke(m, u)), { alteredConfig: u, preFetchedQueryResponse: S };
331
+ })), c = je(c, a), ke(m, c)), { alteredConfig: c, preFetchedQueryResponse: S };
332
332
  }
333
333
  function Gt(s, e) {
334
334
  let t = !1;
335
335
  if (e !== void 0) {
336
- const a = at({ key: yt.Average, splitBy: e });
337
- t = Number.isFinite(s[a]);
336
+ const r = at({ key: yt.Average, splitBy: e });
337
+ t = Number.isFinite(s[r]);
338
338
  }
339
339
  return t;
340
340
  }
341
341
  function Ws(s) {
342
- const { data: e, config: t, showEmptySeries: a } = s, i = t.series.length, r = G(t);
342
+ const { data: e, config: t, showEmptySeries: r } = s, i = t.series.length, a = J(t);
343
343
  let n = !1;
344
- if (!a && i > 1 && e) {
345
- const o = Ze(e), l = Ve(t?.series), c = J(t?.series), p = /* @__PURE__ */ new Set();
344
+ if (!r && i > 1 && e) {
345
+ const o = Ze(e), l = Ve(t?.series), u = ee(t?.series), p = /* @__PURE__ */ new Set();
346
346
  switch (l) {
347
347
  case T.ComboLineAndBarSeries:
348
348
  case T.BarSeries:
349
349
  case T.RadarSeries:
350
350
  case T.LineSeries: {
351
- r.series.forEach((d) => {
351
+ a.series.forEach((d) => {
352
352
  if (Array.isArray(o)) {
353
353
  let m = "";
354
- "y" in d && (m = Array.isArray(d.y) ? d.y[0] : d.y, c === q.BarAndLineSplitByNoAggregation && (m = `${m}_${me({ where: d.query?.where, keepSurroundingQuotes: !1, escape: !1 })}`), o.some(
355
- (u) => Ge({
356
- dataItem: u,
354
+ "y" in d && (m = Array.isArray(d.y) ? d.y[0] : d.y, u === w.BarAndLineSplitByNoAggregation && (m = `${m}_${me({ where: d.query?.where, keepSurroundingQuotes: !1, escape: !1 })}`), o.some(
355
+ (c) => Ge({
356
+ dataItem: c,
357
357
  x: d.x,
358
358
  y: m,
359
359
  aggregationType: t.series[0].query?.outStatistics?.[0]?.statisticType
@@ -367,25 +367,25 @@ function Ws(s) {
367
367
  if (_e(t)) {
368
368
  const d = Qe(t);
369
369
  t.series.forEach((m) => {
370
- let y, u;
371
- m.type === T.BoxPlotSeries ? (y = e.dataItems, u = y?.some(
370
+ let y, c;
371
+ m.type === T.BoxPlotSeries ? (y = e.dataItems, c = y?.some(
372
372
  (S) => ze({
373
373
  dataItem: S,
374
374
  splitBy: m.query?.where,
375
375
  showOutliers: d
376
376
  })
377
- )) : m.type === T.LineSeries && (y = e.meanLines, u = y?.some(
377
+ )) : m.type === T.LineSeries && (y = e.meanLines, c = y?.some(
378
378
  (S) => Gt(S, m.query?.where)
379
- )), u && p.add(m);
379
+ )), c && p.add(m);
380
380
  });
381
381
  }
382
382
  break;
383
383
  }
384
384
  }
385
385
  const g = Array.from(p.values());
386
- n = g.length > 0 && g.length < i, n && (r.series = g);
386
+ n = g.length > 0 && g.length < i, n && (a.series = g);
387
387
  }
388
- return { seriesFilteredOut: n, filteredConfig: r };
388
+ return { seriesFilteredOut: n, filteredConfig: a };
389
389
  }
390
390
  const Hs = (s) => s.hideEmptyRowsAndColumns, Xs = (s, e) => {
391
391
  s.hideEmptyRowsAndColumns = e;
@@ -396,47 +396,47 @@ const Hs = (s) => s.hideEmptyRowsAndColumns, Xs = (s, e) => {
396
396
  const t = s.series[0];
397
397
  t.gradientRules = e;
398
398
  }, Zs = (s) => s.series[0].gradientRules, _s = (s) => {
399
- const { yField: e, config: t, layerInfo: a, commonStrings: i } = s, { layerFieldsInfo: r } = a, n = se(1, t), o = Jt(t), l = te(t), c = t.series[0];
400
- if (typeof e == "string" && o !== e && c) {
401
- if (c.y = e, Ut(t), o === n || l) {
402
- const p = R(r, e);
403
- E(t, 1, p);
399
+ const { yField: e, config: t, layerInfo: r, commonStrings: i } = s, { layerFieldsInfo: a } = r, n = ie(1, t), o = Jt(t), l = se(t), u = t.series[0];
400
+ if (typeof e == "string" && o !== e && u) {
401
+ if (u.y = e, Ut(t), o === n || l) {
402
+ const p = R(a, e);
403
+ $(t, 1, p);
404
404
  }
405
- Re({ commonStrings: i, config: t, layerInfo: a });
405
+ Re({ commonStrings: i, config: t, layerInfo: r });
406
406
  }
407
407
  }, Jt = (s) => s.series[0].y ?? "", Qs = (s) => {
408
- const { binning: e, config: t, commonStrings: a } = s, i = t.series[0];
409
- if (i.xTemporalBinning = e, e?.unit !== void 0 && e.unit in a.utilsStrings.heatChartCalendarDatePartsUnits) {
410
- const r = a.utilsStrings.heatChartCalendarDatePartsUnits[e.unit];
411
- E(t, 0, r);
408
+ const { binning: e, config: t, commonStrings: r } = s, i = t.series[0];
409
+ if (i.xTemporalBinning = e, e?.unit !== void 0 && e.unit in r.utilsStrings.heatChartCalendarDatePartsUnits) {
410
+ const a = r.utilsStrings.heatChartCalendarDatePartsUnits[e.unit];
411
+ $(t, 0, a);
412
412
  }
413
- z({ axisIndex: 0, commonStrings: a, config: t });
413
+ G({ axisIndex: 0, commonStrings: r, config: t });
414
414
  }, es = (s) => s.series[0].xTemporalBinning, zs = (s) => {
415
- const { binning: e, config: t, commonStrings: a } = s, i = t.series[0];
416
- if (i.yTemporalBinning = e, e?.unit !== void 0 && e.unit in a.utilsStrings.heatChartCalendarDatePartsUnits) {
417
- const r = a.utilsStrings.heatChartCalendarDatePartsUnits[e.unit];
418
- E(t, 1, r);
415
+ const { binning: e, config: t, commonStrings: r } = s, i = t.series[0];
416
+ if (i.yTemporalBinning = e, e?.unit !== void 0 && e.unit in r.utilsStrings.heatChartCalendarDatePartsUnits) {
417
+ const a = r.utilsStrings.heatChartCalendarDatePartsUnits[e.unit];
418
+ $(t, 1, a);
419
419
  }
420
- z({ axisIndex: 1, commonStrings: a, config: t });
420
+ G({ axisIndex: 1, commonStrings: r, config: t });
421
421
  }, ts = (s) => s.series[0].yTemporalBinning, ss = (s, e) => {
422
422
  e.orderOptions ??= {};
423
- const t = e.axes?.[0]?.valueFormat?.type === "category" ? L.Category : L.YValue, a = de(e)[0], i = e.axes?.[1]?.valueFormat?.type === "category" ? L.Category : L.YValue, r = de(e)[1], n = {
423
+ const t = e.axes?.[0]?.valueFormat?.type === "category" ? L.Category : L.YValue, r = de(e)[0], i = e.axes?.[1]?.valueFormat?.type === "category" ? L.Category : L.YValue, a = de(e)[1], n = {
424
424
  ...e.orderOptions.data ?? {},
425
425
  orderType: L.MultiAxes
426
426
  };
427
- a === ne.customSort && t === L.Category && (n.orderByX = [...s]), r === ne.customSort && i === L.Category && (n.orderByY = [...s]), Object.keys(n).length > 1 && (e.orderOptions.data = n);
427
+ r === oe.customSort && t === L.Category && (n.orderByX = [...s]), a === oe.customSort && i === L.Category && (n.orderByY = [...s]), Object.keys(n).length > 1 && (e.orderOptions.data = n);
428
428
  }, Gs = (s, e) => {
429
429
  const t = e.series[0];
430
430
  t.gridLine && (t.gridLine.width = s);
431
431
  }, Js = (s) => s.series[0].gridLine?.width, ei = (s, e) => {
432
- const t = e.series[0], a = s?.length === 4 && s.every((i) => typeof i == "number");
433
- t.gridLine && a && (t.gridLine.color = s);
432
+ const t = e.series[0], r = s?.length === 4 && s.every((i) => typeof i == "number");
433
+ t.gridLine && r && (t.gridLine.color = s);
434
434
  }, ti = (s) => s.series[0].gridLine?.color, si = (s, e) => {
435
435
  const t = e.legend;
436
436
  t && (t.position = s);
437
437
  }, ii = (s) => s.legend?.position ?? Ft.Bottom, ai = (s) => s.series[0].query?.outStatistics?.[0]?.onStatisticField, ri = (s) => {
438
- const { field: e, config: t, layerInfo: a, commonStrings: i } = s, r = t.series[0].query?.outStatistics?.[0], n = re(t, a, i);
439
- r ? (r.onStatisticField = e, r.outStatisticFieldName = `${r.statisticType}_${e}`) : t.series[0].query = {
438
+ const { field: e, config: t, layerInfo: r, commonStrings: i } = s, a = t.series[0].query?.outStatistics?.[0], n = ne(t, r, i);
439
+ a ? (a.onStatisticField = e, a.outStatisticFieldName = `${a.statisticType}_${e}`) : t.series[0].query = {
440
440
  outStatistics: [
441
441
  {
442
442
  onStatisticField: e,
@@ -444,13 +444,13 @@ const Hs = (s) => s.hideEmptyRowsAndColumns, Xs = (s, e) => {
444
444
  statisticType: v.Count
445
445
  }
446
446
  ]
447
- }, n && t.title && (t.title.content.text = j(t, a, i));
447
+ }, n && t.title && (t.title.content.text = K(t, r, i));
448
448
  }, ni = (s) => s.series[0].query?.outStatistics?.[0].statisticType ?? v.Count, oi = (s) => {
449
- const { aggregationType: e, config: t, layerInfo: a, commonStrings: i } = s, r = t.series[0]?.query?.outStatistics?.[0], n = re(t, a, i);
450
- r && e !== v.NoAggregation && (r.statisticType = e, r.outStatisticFieldName = `${e}_${r.onStatisticField}`), (e === v.Count || e === v.Sum) && is(H.Zero, t), n && t.title && (t.title.content.text = j(t, a, i));
449
+ const { aggregationType: e, config: t, layerInfo: r, commonStrings: i } = s, a = t.series[0]?.query?.outStatistics?.[0], n = ne(t, r, i);
450
+ a && e !== v.NoAggregation && (a.statisticType = e, a.outStatisticFieldName = `${e}_${a.onStatisticField}`), (e === v.Count || e === v.Sum) && is(H.Zero, t), n && t.title && (t.title.content.text = K(t, r, i));
451
451
  }, li = (s) => s.nullPolicy, is = (s, e) => {
452
452
  e.nullPolicy = s;
453
- }, ui = (s) => s.series[0].emptyCells, ci = (s, e) => {
453
+ }, ci = (s) => s.series[0].emptyCells, ui = (s, e) => {
454
454
  e.series[0].emptyCells = s;
455
455
  }, di = (s) => s.series[0].emptyCells?.text, yi = (s, e) => {
456
456
  e.series[0].emptyCells ? e.series[0].emptyCells.text = s : e.series[0].emptyCells = { text: s };
@@ -519,10 +519,10 @@ const as = [
519
519
  k.MonthOfYear
520
520
  ], Te = (s) => {
521
521
  let e;
522
- return Z(s) ? e = ue() : (Y(s) || _(s)) && (e = Q()), e;
523
- }, Be = (s) => Y(s) || _(s), Ce = (s) => {
524
- const { axisIndex: e, commonStrings: t, config: a, valueFormat: i } = s, r = a.axes?.[e]?.valueFormat;
525
- i !== void 0 && r?.type !== i.type && Ie({ config: a, commonStrings: t, valueFormat: i, axisIndex: e });
522
+ return _(s) ? e = ce() : (q(s) || Q(s)) && (e = z()), e;
523
+ }, Be = (s) => q(s) || Q(s), Ce = (s) => {
524
+ const { axisIndex: e, commonStrings: t, config: r, valueFormat: i } = s, a = r.axes?.[e]?.valueFormat;
525
+ i !== void 0 && a?.type !== i.type && Ie({ config: r, commonStrings: t, valueFormat: i, axisIndex: e });
526
526
  }, rs = (s, e) => {
527
527
  let t;
528
528
  return e === 0 ? t = s.series[0]?.xTemporalBinning : e === 1 && (t = s.series[0]?.yTemporalBinning), t;
@@ -548,7 +548,7 @@ const as = [
548
548
  e = { month: "short" };
549
549
  break;
550
550
  default:
551
- e = Q().intlOptions;
551
+ e = z().intlOptions;
552
552
  break;
553
553
  }
554
554
  return {
@@ -556,14 +556,14 @@ const as = [
556
556
  intlOptions: e
557
557
  };
558
558
  }, ve = (s) => {
559
- const { axisIndex: e, binning: t, commonStrings: a, config: i, fieldName: r, layerInfo: n } = s, o = i.series[0], l = se(e, i), c = R(n.layerFieldsInfo, r);
560
- e === 0 ? o.xTemporalBinning = t : e === 1 && (o.yTemporalBinning = t), t !== void 0 && (l === "" || l === c || l === be(a, t.unit) || l === a.xAxis) && E(i, e, be(a, t.unit));
561
- }, z = (s) => {
562
- const { axisIndex: e, commonStrings: t, config: a } = s, i = rs(a, e), r = i ? ns(i) : void 0;
563
- Ie({ config: a, commonStrings: t, valueFormat: r, axisIndex: e });
559
+ const { axisIndex: e, binning: t, commonStrings: r, config: i, fieldName: a, layerInfo: n } = s, o = i.series[0], l = ie(e, i), u = R(n.layerFieldsInfo, a);
560
+ e === 0 ? o.xTemporalBinning = t : e === 1 && (o.yTemporalBinning = t), t !== void 0 && (l === "" || l === u || l === be(r, t.unit) || l === r.xAxis) && $(i, e, be(r, t.unit));
561
+ }, G = (s) => {
562
+ const { axisIndex: e, commonStrings: t, config: r } = s, i = rs(r, e), a = i ? ns(i) : void 0;
563
+ Ie({ config: r, commonStrings: t, valueFormat: a, axisIndex: e });
564
564
  }, Re = (s) => {
565
- const { commonStrings: e, config: t, layerInfo: a } = s, i = t.series[0]?.x ?? "", r = t.series[0]?.y ?? "", n = Se(a.layerFieldsInfo, i), o = Se(a.layerFieldsInfo, r), l = Te(n), c = Te(o), p = Be(n) && Be(o), g = Z(n) && Z(o);
566
- if (Ce({ axisIndex: 0, commonStrings: e, config: t, valueFormat: l }), Ce({ axisIndex: 1, commonStrings: e, config: t, valueFormat: c }), p) {
565
+ const { commonStrings: e, config: t, layerInfo: r } = s, i = t.series[0]?.x ?? "", a = t.series[0]?.y ?? "", n = Se(r.layerFieldsInfo, i), o = Se(r.layerFieldsInfo, a), l = Te(n), u = Te(o), p = Be(n) && Be(o), g = _(n) && _(o);
566
+ if (Ce({ axisIndex: 0, commonStrings: e, config: t, valueFormat: l }), Ce({ axisIndex: 1, commonStrings: e, config: t, valueFormat: u }), p) {
567
567
  const d = es(t) === void 0, m = ts(t) === void 0;
568
568
  d && (ve({
569
569
  axisIndex: 0,
@@ -571,8 +571,8 @@ const as = [
571
571
  commonStrings: e,
572
572
  config: t,
573
573
  fieldName: i,
574
- layerInfo: a
575
- }), z({
574
+ layerInfo: r
575
+ }), G({
576
576
  axisIndex: 0,
577
577
  commonStrings: e,
578
578
  config: t
@@ -581,9 +581,9 @@ const as = [
581
581
  binning: Ae(1, t.series[0].xTemporalBinning),
582
582
  commonStrings: e,
583
583
  config: t,
584
- fieldName: r,
585
- layerInfo: a
586
- }), z({
584
+ fieldName: a,
585
+ layerInfo: r
586
+ }), G({
587
587
  axisIndex: 1,
588
588
  commonStrings: e,
589
589
  config: t
@@ -597,16 +597,16 @@ function os(s) {
597
597
  Dt(t) && "nullCategory" in t && t.nullCategory !== void 0 && (e.text ??= t.nullCategory.text, t.type === T.BarSeries ? e.fillSymbol ??= t.nullCategory.fillSymbol : e.markerSymbol ??= t.nullCategory.markerSymbol);
598
598
  }), e.text || e.fillSymbol || e.markerSymbol ? e : void 0;
599
599
  }
600
- function ie(s) {
601
- const { seriesIndex: e, xAxisField: t, aggregationType: a, config: i, layerInfo: r, commonStrings: n } = s, o = U(r?.layer).idField;
600
+ function ae(s) {
601
+ const { seriesIndex: e, xAxisField: t, aggregationType: r, config: i, layerInfo: a, commonStrings: n } = s, o = j(a?.layer).idField;
602
602
  let l;
603
- const c = i.series[e ?? 0];
603
+ const u = i.series[e ?? 0];
604
604
  let p = !1, g = !1, d = !1;
605
- if (c === void 0) {
605
+ if (u === void 0) {
606
606
  const B = i.series;
607
- p = B.slice(0, e).every((C) => O(C)), g = B.slice(0, e).every((C) => V(C)), d = B.slice(0, e).every((C) => Fe(C));
607
+ p = B.slice(0, e).every((A) => O(A)), g = B.slice(0, e).every((A) => V(A)), d = B.slice(0, e).every((A) => Fe(A));
608
608
  } else
609
- p = O(c), g = V(c), d = Fe(c);
609
+ p = O(u), g = V(u), d = Fe(u);
610
610
  p ? l = bt({
611
611
  commonStrings: n,
612
612
  seriesIndex: e,
@@ -620,7 +620,7 @@ function ie(s) {
620
620
  objectIDField: o,
621
621
  commonStrings: n
622
622
  });
623
- const m = i.series[0]?.dataLabels, y = "nullCategory" in i.series[0] ? os(i) : void 0, u = "binTemporalData" in i.series[0] ? i.series[0].binTemporalData : void 0, S = "classBreakRules" in i.series[0] ? i.series[0].classBreakRules : void 0, F = "xTemporalBinning" in i.series[0] ? i.series[0].xTemporalBinning : void 0, x = "yTemporalBinning" in i.series[0] ? i.series[0].yTemporalBinning : void 0, f = "emptyCells" in i.series[0] ? i.series[0].emptyCells : void 0, A = i.series[0].query && "fetchNullValues" in i.series[0].query ? i.series[0].query?.fetchNullValues : void 0, b = {
623
+ const m = i.series[0]?.dataLabels, y = "nullCategory" in i.series[0] ? os(i) : void 0, c = "binTemporalData" in i.series[0] ? i.series[0].binTemporalData : void 0, S = "classBreakRules" in i.series[0] ? i.series[0].classBreakRules : void 0, F = "xTemporalBinning" in i.series[0] ? i.series[0].xTemporalBinning : void 0, x = "yTemporalBinning" in i.series[0] ? i.series[0].yTemporalBinning : void 0, f = "emptyCells" in i.series[0] ? i.series[0].emptyCells : void 0, b = i.series[0].query && "fetchNullValues" in i.series[0].query ? i.series[0].query?.fetchNullValues : void 0, C = {
624
624
  ...l,
625
625
  x: t,
626
626
  y: "",
@@ -631,88 +631,88 @@ function ie(s) {
631
631
  visible: m?.visible ?? !1
632
632
  },
633
633
  ...y !== void 0 ? { nullCategory: y } : {},
634
- ...u !== void 0 ? { binTemporalData: u } : {},
634
+ ...c !== void 0 ? { binTemporalData: c } : {},
635
635
  ...S !== void 0 ? { classBreakRules: S } : {},
636
636
  ...F !== void 0 ? { xTemporalBinning: F } : {},
637
637
  ...x !== void 0 ? { yTemporalBinning: x } : {},
638
638
  ...f !== void 0 ? { emptyCells: f } : {}
639
639
  };
640
- if (b.query = {
640
+ if (C.query = {
641
641
  groupByFieldsForStatistics: [t],
642
- ...A !== void 0 ? { fetchNullValues: A } : {}
643
- }, a !== v.NoAggregation && o !== void 0) {
644
- const B = `${a}_${o}_0`.toUpperCase();
645
- b.y = B, b.query.outStatistics = [
642
+ ...b !== void 0 ? { fetchNullValues: b } : {}
643
+ }, r !== v.NoAggregation && o !== void 0) {
644
+ const B = `${r}_${o}_0`.toUpperCase();
645
+ C.y = B, C.query.outStatistics = [
646
646
  {
647
- statisticType: a,
647
+ statisticType: r,
648
648
  onStatisticField: o,
649
649
  outStatisticFieldName: B
650
650
  }
651
651
  ];
652
652
  }
653
- if (I(i.series[0]) && I(b)) {
653
+ if (I(i.series[0]) && I(C)) {
654
654
  let B = wt(i);
655
- B === le.Quarter && (B = le.Month), b.temporalBinning = {
655
+ B === le.Quarter && (B = le.Month), C.temporalBinning = {
656
656
  ...i.series[0]?.temporalBinning,
657
657
  unit: B
658
658
  };
659
659
  }
660
- return G(b);
660
+ return J(C);
661
661
  }
662
- function j(s, e, t) {
663
- const { layerFieldsInfo: a } = e, { idField: i, isTraditionalTypeOID: r } = U(e.layer), n = M(s), o = K(s), l = we(s), c = ae(s), p = r && (o.length === 0 || o.includes(i)), g = Ct(l, t), d = p ? "" : o.map((f) => R(a ?? [], f)).join(", "), m = R(a ?? [], n), y = R(a ?? [], c), u = s.series.some((f) => P(f)), S = u ? "category" : "xAxisField", F = m;
662
+ function K(s, e, t) {
663
+ const { layerFieldsInfo: r } = e, { idField: i, isTraditionalTypeOID: a } = j(e.layer), n = P(s), o = Z(s), l = we(s), u = re(s), p = a && (o.length === 0 || o.includes(i)), g = Ct(l, t), d = p ? "" : o.map((f) => R(r ?? [], f)).join(", "), m = R(r ?? [], n), y = R(r ?? [], u), c = s.series.some((f) => M(f)), S = c ? "category" : "xAxisField", F = m;
664
664
  let x = "";
665
665
  if (ge({
666
666
  fieldName: n,
667
667
  numericFields: o,
668
- fieldList: a
668
+ fieldList: r
669
669
  }))
670
- x = w(t.titleLabels.aggrTypeOfAggrFields, {
670
+ x = E(t.titleLabels.aggrTypeOfAggrFields, {
671
671
  aggregationType: g,
672
672
  aggregationFields: d
673
673
  });
674
674
  else if (l === v.NoAggregation) {
675
675
  const f = p ? i : d;
676
- if (c === "") {
677
- const A = u ? "aggrTypeCategory" : "aggrTypeXAxisField";
678
- x = w(t.titleLabels[A], {
676
+ if (u === "") {
677
+ const b = c ? "aggrTypeCategory" : "aggrTypeXAxisField";
678
+ x = E(t.titleLabels[b], {
679
679
  aggregationType: f,
680
680
  [S]: F
681
681
  });
682
682
  } else {
683
- const A = u ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
684
- x = w(t.titleLabels[A], {
683
+ const b = c ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
684
+ x = E(t.titleLabels[b], {
685
685
  aggregationType: f,
686
686
  [S]: F,
687
687
  splitByField: y
688
688
  });
689
689
  }
690
690
  } else if (l === v.Count)
691
- if (c === "") {
692
- const f = u ? "aggrTypeCategory" : "aggrTypeXAxisField";
693
- x = w(t.titleLabels[f], {
691
+ if (u === "") {
692
+ const f = c ? "aggrTypeCategory" : "aggrTypeXAxisField";
693
+ x = E(t.titleLabels[f], {
694
694
  aggregationType: g,
695
695
  [S]: F
696
696
  });
697
697
  } else {
698
- const f = u ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
699
- x = w(t.titleLabels[f], {
698
+ const f = c ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
699
+ x = E(t.titleLabels[f], {
700
700
  aggregationType: g,
701
701
  [S]: F,
702
702
  splitByField: y
703
703
  });
704
704
  }
705
- else if (c !== "") {
706
- const f = u ? "aggrTypeOfAggrFieldByCategoryBySplitByField" : "aggrTypeOfAggrFieldByXAxisFieldBySplitByField";
707
- x = w(t.titleLabels[f], {
705
+ else if (u !== "") {
706
+ const f = c ? "aggrTypeOfAggrFieldByCategoryBySplitByField" : "aggrTypeOfAggrFieldByXAxisFieldBySplitByField";
707
+ x = E(t.titleLabels[f], {
708
708
  aggregationType: g,
709
709
  aggregationField: d,
710
710
  [S]: F,
711
711
  splitByField: y
712
712
  });
713
713
  } else if (o.length > 0) {
714
- const f = u ? "aggrTypeOfAggrFieldsByCategory" : "aggrTypeOfAggrFieldsByXAxisField";
715
- x = w(t.titleLabels[f], {
714
+ const f = c ? "aggrTypeOfAggrFieldsByCategory" : "aggrTypeOfAggrFieldsByXAxisField";
715
+ x = E(t.titleLabels[f], {
716
716
  aggregationType: g,
717
717
  aggregationFields: d,
718
718
  [S]: F
@@ -724,150 +724,150 @@ const qe = (s) => me({
724
724
  where: s.query?.where,
725
725
  normalize: !1,
726
726
  escape: !1
727
- }) ?? "", we = (s) => s?.series?.[0]?.query?.outStatistics?.[0]?.statisticType ?? v.NoAggregation, ae = We(
727
+ }) ?? "", we = (s) => s?.series?.[0]?.query?.outStatistics?.[0]?.statisticType ?? v.NoAggregation, re = We(
728
728
  (s) => {
729
729
  const e = s?.series?.[0]?.query?.where?.split("=")[0].trim() ?? "";
730
730
  return gt(s?.series?.[0]?.query?.where) ? "" : e;
731
731
  },
732
732
  (s) => s?.series?.[0]?.query?.where
733
- ), K = (s) => {
733
+ ), Z = (s) => {
734
734
  let e = [];
735
- if (ae(s) === "")
735
+ if (re(s) === "")
736
736
  e = s?.series.map((t) => {
737
- const a = t.query?.outStatistics?.map((i) => i.onStatisticField) ?? [];
738
- return a?.length > 0 ? a : t.y;
737
+ const r = t.query?.outStatistics?.map((i) => i.onStatisticField) ?? [];
738
+ return r?.length > 0 ? r : t.y;
739
739
  }).flat() ?? [];
740
740
  else {
741
- const t = s?.series?.[0], a = t?.query?.outStatistics?.[0]?.onStatisticField ?? [t?.y].flat()[0];
742
- e = a !== void 0 ? [a] : [];
741
+ const t = s?.series?.[0], r = t?.query?.outStatistics?.[0]?.onStatisticField ?? [t?.y].flat()[0];
742
+ e = r !== void 0 ? [r] : [];
743
743
  }
744
744
  return e.filter((t) => t !== "");
745
745
  };
746
746
  function Pe(s) {
747
- const { splitByField: e, numericFields: t, layer: a, seriesIndex: i } = s, r = U(a).idField ?? "";
748
- return e === "" ? t[i] ?? r : t[0] ?? r;
747
+ const { splitByField: e, numericFields: t, layer: r, seriesIndex: i } = s, a = j(r).idField ?? "";
748
+ return e === "" ? t[i] ?? a : t[0] ?? a;
749
749
  }
750
750
  function ls(s) {
751
- const { numericFields: e, aggregationType: t, config: a, layerInfo: i } = s;
752
- let r = !1;
753
- t === v.Count ? r = !0 : t === v.NoAggregation && (r = e.every((l) => {
754
- const c = i.layerFieldsInfo.find((p) => p.name === l);
755
- return c !== void 0 ? xe(c) : !1;
756
- })), pe(a, 1, r);
757
- const n = a.series.some((l) => O(l)), o = a.series.some((l) => V(l));
751
+ const { numericFields: e, aggregationType: t, config: r, layerInfo: i } = s;
752
+ let a = !1;
753
+ t === v.Count ? a = !0 : t === v.NoAggregation && (a = e.every((l) => {
754
+ const u = i.layerFieldsInfo.find((p) => p.name === l);
755
+ return u !== void 0 ? xe(u) : !1;
756
+ })), pe(r, 1, a);
757
+ const n = r.series.some((l) => O(l)), o = r.series.some((l) => V(l));
758
758
  if (n || o) {
759
- const l = M(a), c = i.layerFieldsInfo.find((g) => g.name === l), p = c !== void 0 && xe(c);
760
- pe(a, 0, p);
759
+ const l = P(r), u = i.layerFieldsInfo.find((g) => g.name === l), p = u !== void 0 && xe(u);
760
+ pe(r, 0, p);
761
761
  }
762
762
  }
763
763
  const de = (s) => {
764
764
  let e;
765
765
  if (W(s)) {
766
- const t = s.orderOptions?.data?.orderByX ?? [""], a = s.orderOptions?.data?.orderByY ?? [""], i = s.axes?.[0]?.valueFormat?.type === "category" ? L.Category : L.YValue, r = s.axes?.[1]?.valueFormat?.type === "category" ? L.Category : L.YValue;
767
- e = [he(t, i), he(a, r)];
766
+ const t = s.orderOptions?.data?.orderByX ?? [""], r = s.orderOptions?.data?.orderByY ?? [""], i = s.axes?.[0]?.valueFormat?.type === "category" ? L.Category : L.YValue, a = s.axes?.[1]?.valueFormat?.type === "category" ? L.Category : L.YValue;
767
+ e = [he(t, i), he(r, a)];
768
768
  } else {
769
- const t = s.orderOptions?.data?.orderType ?? L.Category, a = s.orderOptions?.data && "orderBy" in s.orderOptions.data ? s.orderOptions.data.orderBy : xt.Ascending;
770
- e = [St(a, t)];
769
+ const t = s.orderOptions?.data?.orderType ?? L.Category, r = s.orderOptions?.data && "orderBy" in s.orderOptions.data ? s.orderOptions.data.orderBy : xt.Ascending;
770
+ e = [St(r, t)];
771
771
  }
772
772
  return e;
773
773
  };
774
- function us(s) {
775
- const { xAxisField: e, numericFields: t, aggregationType: a, config: i, layerInfo: r, commonStrings: n } = s, { layerFieldsInfo: o } = r, l = ie({
774
+ function cs(s) {
775
+ const { xAxisField: e, numericFields: t, aggregationType: r, config: i, layerInfo: a, commonStrings: n } = s, { layerFieldsInfo: o } = a, l = ae({
776
776
  config: i,
777
777
  xAxisField: e,
778
- aggregationType: a,
779
- layerInfo: r,
778
+ aggregationType: r,
779
+ layerInfo: a,
780
780
  seriesIndex: 0,
781
781
  commonStrings: n
782
- }), c = ee({
782
+ }), u = te({
783
783
  config: i,
784
784
  xAxisField: e,
785
785
  numericFields: t,
786
- aggregationType: a,
787
- layer: r.layer,
786
+ aggregationType: r,
787
+ layer: a.layer,
788
788
  fieldList: o
789
- }).name, p = M(i), g = K(i), d = ge({
789
+ }).name, p = P(i), g = Z(i), d = ge({
790
790
  fieldName: p,
791
791
  numericFields: g,
792
792
  fieldList: o
793
- }) ? i.series[0] : void 0, m = `series_${Date.now()}`, y = d?.id ?? m, u = d?.name ?? n.axisLabels.values, F = {
793
+ }) ? i.series[0] : void 0, m = `series_${Date.now()}`, y = d?.id ?? m, c = d?.name ?? n.axisLabels.values, F = {
794
794
  ...d ?? l,
795
795
  id: y,
796
- name: u,
797
- x: oe,
798
- y: c
796
+ name: c,
797
+ x: U,
798
+ y: u
799
799
  }, x = [];
800
800
  for (const f of t)
801
801
  x.push({
802
802
  onStatisticField: f,
803
803
  outStatisticFieldName: `${f}_0`.toUpperCase(),
804
- statisticType: a
804
+ statisticType: r
805
805
  });
806
- return F.query = { outStatistics: x }, i.series.length === 1 && ((O(F) || V(F)) && Me(F, i.series[0]), P(F) ? F.fillSymbol = i.series[0].fillSymbol : (O(F) || V(F)) && (F.lineSymbol = i.series[0].lineSymbol, F.markerSymbol = i.series[0].markerSymbol)), [F];
806
+ return F.query = { outStatistics: x }, i.series.length === 1 && ((O(F) || V(F)) && Me(F, i.series[0]), M(F) ? F.fillSymbol = i.series[0].fillSymbol : (O(F) || V(F)) && (F.lineSymbol = i.series[0].lineSymbol, F.markerSymbol = i.series[0].markerSymbol)), [F];
807
807
  }
808
808
  function Ee(s) {
809
- const { xAxisField: e, numericFields: t, aggregationType: a, config: i, layerInfo: r, commonStrings: n } = s, { layerFieldsInfo: o } = r, l = U(r.layer).idField, c = [];
809
+ const { xAxisField: e, numericFields: t, aggregationType: r, config: i, layerInfo: a, commonStrings: n } = s, { layerFieldsInfo: o } = a, l = j(a.layer).idField, u = [];
810
810
  for (let y = 0; y < t.length; y += 1) {
811
- const u = ie({
811
+ const c = ae({
812
812
  config: i,
813
813
  xAxisField: e,
814
- aggregationType: a,
815
- layerInfo: r,
814
+ aggregationType: r,
815
+ layerInfo: a,
816
816
  seriesIndex: y,
817
817
  commonStrings: n
818
- }), S = i.series[y]?.y, F = typeof S == "string" && S.trim() !== "" && !o.find((N) => N.name === S) ? S : ee({
818
+ }), S = i.series[y]?.y, F = typeof S == "string" && S.trim() !== "" && !o.find((N) => N.name === S) ? S : te({
819
819
  config: i,
820
820
  xAxisField: e,
821
821
  numericFields: t,
822
- aggregationType: a,
823
- layer: r.layer,
822
+ aggregationType: r,
823
+ layer: a.layer,
824
824
  numericFieldIndex: y,
825
825
  fieldList: o
826
826
  }).name, x = t[y], f = i.series.find(
827
827
  (N) => N.query?.where === void 0 && (N.query?.outStatistics?.length === 1 && N.query?.outStatistics?.[0]?.onStatisticField === x || N.query?.outStatistics === void 0 && (N.y === x || N.x === x))
828
- ), A = x !== l ? x : u.id, b = f?.id ?? A, B = f?.name ?? R(o, x) ?? b, C = f ?? u, h = {
829
- ...C,
830
- id: b,
828
+ ), b = x !== l ? x : c.id, C = f?.id ?? b, B = f?.name ?? R(o, x) ?? C, A = f ?? c, h = {
829
+ ...A,
830
+ id: C,
831
831
  name: B
832
832
  };
833
- let $ = x;
834
- h.query !== void 0 && (a !== v.NoAggregation ? ($ = h.type === T.HeatSeries && f?.type === T.HeatSeries ? x : F, h.query.outStatistics = [
833
+ let Y = x;
834
+ h.query !== void 0 && (r !== v.NoAggregation ? (Y = h.type === T.HeatSeries && f?.type === T.HeatSeries ? x : F, h.query.outStatistics = [
835
835
  {
836
- ...C.query?.outStatistics?.[0] ?? {},
836
+ ...A.query?.outStatistics?.[0] ?? {},
837
837
  onStatisticField: x,
838
838
  outStatisticFieldName: F,
839
- statisticType: a
839
+ statisticType: r
840
840
  }
841
- ]) : delete h.query.outStatistics), h.y = $, c.push(h);
841
+ ]) : delete h.query.outStatistics), h.y = Y, u.push(h);
842
842
  }
843
- const p = c.filter((y) => P(y)), g = c.filter(
843
+ const p = u.filter((y) => M(y)), g = u.filter(
844
844
  (y) => O(y) || V(y)
845
- ), d = i.series.filter((y) => P(y)), m = i.series.filter(
845
+ ), d = i.series.filter((y) => M(y)), m = i.series.filter(
846
846
  (y) => O(y) || V(y)
847
847
  );
848
- return d.length === 1 && p.length === 1 && P(d[0]) && P(p[0]) && (p[0].fillSymbol = d[0].fillSymbol), m.length === 1 && g.length === 1 && ((O(m[0]) && O(g[0]) || V(m[0]) && V(g[0])) && Me(g[0], m[0]), (O(m[0]) && O(g[0]) || V(m[0]) && V(g[0])) && (g[0].lineSymbol = m[0].lineSymbol, g[0].markerSymbol = m[0].markerSymbol)), c;
848
+ return d.length === 1 && p.length === 1 && M(d[0]) && M(p[0]) && (p[0].fillSymbol = d[0].fillSymbol), m.length === 1 && g.length === 1 && ((O(m[0]) && O(g[0]) || V(m[0]) && V(g[0])) && Me(g[0], m[0]), (O(m[0]) && O(g[0]) || V(m[0]) && V(g[0])) && (g[0].lineSymbol = m[0].lineSymbol, g[0].markerSymbol = m[0].markerSymbol)), u;
849
849
  }
850
850
  function Di(s) {
851
- const { aggregationType: e, config: t, layerInfo: a, commonStrings: i } = s, { layerFieldsInfo: r, layer: n } = a, o = M(t), l = K(t), c = ae(t), p = re(t, a, i), g = $e(t, a, i);
851
+ const { aggregationType: e, config: t, layerInfo: r, commonStrings: i } = s, { layerFieldsInfo: a, layer: n } = r, o = P(t), l = Z(t), u = re(t), p = ne(t, r, i), g = $e(t, r, i);
852
852
  if (t.series.forEach((d, m) => {
853
- const y = ee({
853
+ const y = te({
854
854
  config: t,
855
855
  xAxisField: o,
856
856
  numericFields: l,
857
857
  aggregationType: e,
858
- splitByField: c,
858
+ splitByField: u,
859
859
  layer: n,
860
860
  seriesIndex: m,
861
861
  numericFieldIndex: m,
862
- fieldList: r
862
+ fieldList: a
863
863
  }).name;
864
864
  d.y = y;
865
- const u = Pe({
866
- splitByField: c,
865
+ const c = Pe({
866
+ splitByField: u,
867
867
  numericFields: l,
868
868
  layer: n,
869
869
  seriesIndex: m
870
- }), S = d.query?.outStatistics?.[0]?.onStatisticField ?? u;
870
+ }), S = d.query?.outStatistics?.[0]?.onStatisticField ?? c;
871
871
  d.query = {
872
872
  ...d.query,
873
873
  outStatistics: e === v.NoAggregation ? void 0 : [
@@ -879,73 +879,73 @@ function Di(s) {
879
879
  }
880
880
  ]
881
881
  }, "temporalBinning" in d && d.temporalBinning !== void 0 && (d.temporalBinning.nullPolicy = e === v.NoAggregation ? H.Interpolate : H.Null), e === v.NoAggregation && Mt(t);
882
- }), p && t.title && (t.title.content.text = j(t, a, i)), g && t.series[0].type !== T.HeatSeries) {
882
+ }), p && t.title && (t.title.content.text = K(t, r, i)), g && t.series[0].type !== T.HeatSeries) {
883
883
  const d = ye({
884
884
  config: t,
885
- layerInfo: a,
885
+ layerInfo: r,
886
886
  commonStrings: i,
887
887
  numericFields: l,
888
888
  aggregationType: e
889
889
  });
890
- E(t, 1, d);
890
+ $(t, 1, d);
891
891
  }
892
892
  }
893
- function cs(s) {
893
+ function us(s) {
894
894
  const {
895
895
  splitByField: e,
896
896
  xAxisField: t,
897
- numericFields: a,
897
+ numericFields: r,
898
898
  aggregationType: i,
899
- config: r,
899
+ config: a,
900
900
  layerInfo: n,
901
901
  commonStrings: o,
902
902
  splitByFieldInfos: l
903
- } = s, { layer: c, layerFieldsInfo: p } = n, { categoriesArray: g, splitByFieldType: d } = l, m = Pe({
903
+ } = s, { layer: u, layerFieldsInfo: p } = n, { categoriesArray: g, splitByFieldType: d } = l, m = Pe({
904
904
  splitByField: e,
905
- numericFields: a,
906
- layer: c,
905
+ numericFields: r,
906
+ layer: u,
907
907
  seriesIndex: 0
908
908
  });
909
909
  let y = [];
910
910
  if (g.length === 0) {
911
911
  y = Ee({
912
912
  xAxisField: t,
913
- numericFields: a,
913
+ numericFields: r,
914
914
  aggregationType: i,
915
- config: r,
915
+ config: a,
916
916
  layerInfo: n,
917
917
  commonStrings: o
918
918
  });
919
- for (const u of y)
920
- u.query && (u.query.where = `${e}=''`);
919
+ for (const c of y)
920
+ c.query && (c.query.where = `${e}=''`);
921
921
  } else
922
- for (let u = 0; u < g.length; u += 1) {
923
- const S = g[u], F = ee({
924
- config: r,
922
+ for (let c = 0; c < g.length; c += 1) {
923
+ const S = g[c], F = te({
924
+ config: a,
925
925
  xAxisField: t,
926
- numericFields: a,
926
+ numericFields: r,
927
927
  aggregationType: i,
928
928
  layer: n.layer,
929
- seriesIndex: u,
929
+ seriesIndex: c,
930
930
  splitByField: e,
931
931
  fieldList: p
932
- }).name, x = ie({
933
- config: r,
932
+ }).name, x = ae({
933
+ config: a,
934
934
  xAxisField: t,
935
935
  aggregationType: i,
936
936
  layerInfo: n,
937
- seriesIndex: u,
937
+ seriesIndex: c,
938
938
  commonStrings: o
939
939
  }), f = Ne({
940
940
  queryObject: n.layer,
941
941
  fieldName: e,
942
942
  fieldValue: S ?? ""
943
- }), A = `${S}`, b = r.series.find(
944
- (N) => String(qe(N)).trim().replace(/'/gu, "") === A
945
- ), B = b?.id ?? A, C = b?.name ?? f ?? B, h = b ?? x, $ = {
943
+ }), b = `${S}`, C = a.series.find(
944
+ (N) => String(qe(N)).trim().replace(/'/gu, "") === b
945
+ ), B = C?.id ?? b, A = C?.name ?? f ?? B, h = C ?? x, Y = {
946
946
  ...h,
947
947
  id: B,
948
- name: C,
948
+ name: A,
949
949
  y: F,
950
950
  query: {
951
951
  ...h.query,
@@ -960,7 +960,7 @@ function cs(s) {
960
960
  ] : void 0
961
961
  }
962
962
  };
963
- y.push($);
963
+ y.push(Y);
964
964
  }
965
965
  return y;
966
966
  }
@@ -968,67 +968,66 @@ const Ni = (s) => {
968
968
  const {
969
969
  xAxisFieldName: e,
970
970
  splitByField: t,
971
- numericFields: a,
971
+ numericFields: r,
972
972
  aggregationType: i,
973
- config: r,
973
+ config: a,
974
974
  layerInfo: n,
975
975
  commonStrings: o,
976
976
  splitByFieldInfos: l
977
- } = s, { layerFieldsInfo: c } = n ?? {}, p = G(r), g = Rt(r), d = M(p), m = c.find((h) => h.name === d), y = r.series[0]?.query === void 0, u = c.find((h) => h.name === e), S = re(p, n, o), F = $e(p, n, o), x = ds(p, n);
978
- let f = Le(r);
979
- const A = p.series.some((h) => P(h)), b = pt(p.series), B = ft(p.series);
980
- let C = !1;
981
- if (Z(u) ? f = ue() : !_(m) && _(u) ? (f = Q(), C = !0) : !Y(m) && Y(u) ? (f = Q(), C = !0) : Y(m) && !Y(u) && (A ? f = ue() : f = Lt(), C = !0), f !== void 0 && Xe(r, o, f), g === 0 && (r.series = [
982
- ie({ config: r, xAxisField: e, aggregationType: i, layerInfo: n, commonStrings: o })
983
- ]), r.series.forEach((h) => {
977
+ } = s, { layerFieldsInfo: u } = n ?? {}, p = J(a), g = Rt(a), d = P(p), m = u.find((h) => h.name === d), y = a.series[0]?.query === void 0, c = u.find((h) => h.name === e), S = ne(p, n, o), F = $e(p, n, o), x = ds({ config: p, layerInfo: n, commonStrings: o });
978
+ let f = Le(a);
979
+ const b = p.series.some((h) => M(h)), C = pt(p.series), B = ft(p.series), A = q(m) || q(c);
980
+ if (_(c) ? f = ce() : !Q(m) && Q(c) ? f = z() : !q(m) && q(c) ? f = z() : q(m) && !q(c) && (b ? f = ce() : f = Lt()), f !== void 0 && Xe(a, o, f), g === 0 && (a.series = [
981
+ ae({ config: a, xAxisField: e, aggregationType: i, layerInfo: n, commonStrings: o })
982
+ ]), a.series.forEach((h) => {
984
983
  h.x = e, h.query !== void 0 && (h.query.groupByFieldsForStatistics = [e]);
985
- }), t === "" || a.length > 1 ? ge({
984
+ }), t === "" || r.length > 1 ? ge({
986
985
  fieldName: e,
987
- numericFields: a,
988
- fieldList: c
989
- }) ? r.series = us({
990
- config: r,
986
+ numericFields: r,
987
+ fieldList: u
988
+ }) ? a.series = cs({
989
+ config: a,
991
990
  layerInfo: n,
992
991
  xAxisField: e,
993
- numericFields: a,
992
+ numericFields: r,
994
993
  aggregationType: i,
995
994
  commonStrings: o
996
- }) : r.series = Ee({
997
- config: r,
995
+ }) : a.series = Ee({
996
+ config: a,
998
997
  layerInfo: n,
999
998
  xAxisField: e,
1000
- numericFields: a,
999
+ numericFields: r,
1001
1000
  aggregationType: i,
1002
1001
  commonStrings: o
1003
- }) : l && (r.series = cs({
1004
- config: r,
1002
+ }) : l && (a.series = us({
1003
+ config: a,
1005
1004
  layerInfo: n,
1006
1005
  splitByField: t,
1007
1006
  xAxisField: e,
1008
- numericFields: a,
1007
+ numericFields: r,
1009
1008
  aggregationType: i,
1010
1009
  commonStrings: o,
1011
1010
  splitByFieldInfos: l
1012
- })), x && r.series[0].type !== T.HeatSeries) {
1013
- const h = R(c, e);
1014
- E(r, 0, h);
1011
+ })), x && e !== U && a.series[0].type !== T.HeatSeries) {
1012
+ const h = R(u, e);
1013
+ $(a, 0, h);
1015
1014
  }
1016
- if (F && r.series[0].type !== T.HeatSeries) {
1015
+ if (F && a.series[0].type !== T.HeatSeries) {
1017
1016
  const h = ye({
1018
- config: r,
1017
+ config: a,
1019
1018
  layerInfo: n,
1020
1019
  commonStrings: o,
1021
- numericFields: a,
1020
+ numericFields: r,
1022
1021
  aggregationType: i
1023
1022
  });
1024
- E(r, 1, h);
1023
+ $(a, 1, h);
1025
1024
  }
1026
- if (S && r.title && (r.title.content.text = j(r, n, o)), D({ config: r, value: null, axisIndex: 1, isMax: !1 }), D({ config: r, value: null, axisIndex: 1, isMax: !0 }), ls({ numericFields: a, aggregationType: i, config: r, layerInfo: n }), (b || B) && (D({ config: r, value: null, axisIndex: 0, isMax: !1 }), D({ config: r, value: null, axisIndex: 0, isMax: !0 }), C && i !== v.NoAggregation && !W(p))) {
1027
- const h = f?.type === T.DateAxisFormat ? H.Null : H.Interpolate;
1028
- Et(h, r);
1025
+ if (S && a.title && (a.title.content.text = K(a, n, o)), D({ config: a, value: null, axisIndex: 1, isMax: !1 }), D({ config: a, value: null, axisIndex: 1, isMax: !0 }), ls({ numericFields: r, aggregationType: i, config: a, layerInfo: n }), (C || B) && (D({ config: a, value: null, axisIndex: 0, isMax: !1 }), D({ config: a, value: null, axisIndex: 0, isMax: !0 }), A && i !== v.NoAggregation && !W(p))) {
1026
+ const h = q(c) ? H.Null : H.Interpolate;
1027
+ Et(h, a);
1029
1028
  }
1030
- W(r) && Re({ commonStrings: o, config: r, layerInfo: n }), r.series.forEach((h) => {
1031
- y && delete h.query, I(h) && h.binTemporalData === void 0 && u?.type === Oe.TimeOnly && (h.binTemporalData = !1);
1029
+ W(a) && Re({ commonStrings: o, config: a, layerInfo: n }), a.series.forEach((h) => {
1030
+ y && delete h.query, I(h) && h.binTemporalData === void 0 && c?.type === Oe.TimeOnly && (h.binTemporalData = !1);
1032
1031
  });
1033
1032
  }, Me = (s, e) => {
1034
1033
  s.markerVisible = e.markerVisible, s.lineSmoothed = e.lineSmoothed, s.showArea = e.showArea, s.areaColor = e.areaColor, s.stackNegativeValuesToBaseline = e.stackNegativeValuesToBaseline, e.lineSymbol && (s.lineSymbol = { ...e.lineSymbol, color: s.lineSymbol?.color }), e.markerSymbol && (s.markerSymbol = {
@@ -1036,60 +1035,60 @@ const Ni = (s) => {
1036
1035
  color: s.markerSymbol?.color
1037
1036
  });
1038
1037
  }, Oi = (s) => {
1039
- const { config: e, seriesIndex: t, layerInfo: a, commonStrings: i } = s, r = e.series?.[t], n = ae(e);
1038
+ const { config: e, seriesIndex: t, layerInfo: r, commonStrings: i } = s, a = e.series?.[t], n = re(e);
1040
1039
  let o;
1041
- if (J(e.series) === q.BarAndLineFromFields)
1040
+ if (ee(e.series) === w.BarAndLineFromFields)
1042
1041
  o = i.axisLabels.values;
1043
1042
  else if (Ye(n)) {
1044
- const c = r.query?.outStatistics?.[0]?.onStatisticField;
1045
- c !== void 0 && c !== U(a.layer).idField && (o = R(a.layerFieldsInfo, c));
1043
+ const u = a.query?.outStatistics?.[0]?.onStatisticField;
1044
+ u !== void 0 && u !== j(r.layer).idField && (o = R(r.layerFieldsInfo, u));
1046
1045
  } else {
1047
- const c = String(qe(r)).trim().replace(/'/gu, "");
1046
+ const u = String(qe(a)).trim().replace(/'/gu, "");
1048
1047
  o = Ne({
1049
- queryObject: a.layer,
1048
+ queryObject: r.layer,
1050
1049
  fieldName: n,
1051
- fieldValue: c ?? ""
1052
- }) ?? c;
1050
+ fieldValue: u ?? ""
1051
+ }) ?? u;
1053
1052
  }
1054
- return o ?? r.id;
1053
+ return o ?? a.id;
1055
1054
  }, Vi = (s, e) => {
1056
1055
  if (W(e))
1057
1056
  ss(s, e);
1058
1057
  else {
1059
1058
  e.orderOptions ??= {};
1060
1059
  const t = e.orderOptions?.data?.orderType;
1061
- de(e)[0] === ne.customSort && t === L.Category && (e.orderOptions.data = {
1060
+ de(e)[0] === oe.customSort && t === L.Category && (e.orderOptions.data = {
1062
1061
  orderType: L.Category,
1063
1062
  orderBy: [...s]
1064
1063
  });
1065
1064
  }
1066
1065
  }, ki = async (s) => {
1067
- const { config: e, layerInfo: t, errorStrings: a } = s, i = M(e), r = Le(e)?.type, n = K(e), o = J(e.series);
1066
+ const { config: e, layerInfo: t, errorStrings: r } = s, i = P(e), a = Le(e)?.type, n = Z(e), o = ee(e.series);
1068
1067
  let l = [];
1069
- return r === T.CategoryAxisFormat && (o === q.BarAndLineFromFields || i === oe ? l = n.map((c) => R(t?.layerFieldsInfo, c)) : i.trim() !== "" && i !== oe && t !== void 0 && (l = await He({
1068
+ return a === T.CategoryAxisFormat && (o === w.BarAndLineFromFields || i === U ? l = n.map((u) => R(t?.layerFieldsInfo, u)) : i.trim() !== "" && i !== U && t !== void 0 && (l = await He({
1070
1069
  layerInfo: t,
1071
1070
  config: e,
1072
1071
  category: i,
1073
- errorStrings: a
1072
+ errorStrings: r
1074
1073
  }))), l;
1075
1074
  };
1076
- function re(s, e, t) {
1077
- const a = j(s, e, t), i = qt(s), r = te(s);
1078
- return a === i || r;
1075
+ function ne(s, e, t) {
1076
+ const r = K(s, e, t), i = qt(s), a = se(s);
1077
+ return r === i || a;
1079
1078
  }
1080
1079
  function $e(s, e, t) {
1081
- const a = ye({
1080
+ const r = ye({
1082
1081
  config: s,
1083
1082
  layerInfo: e,
1084
1083
  commonStrings: t,
1085
- numericFields: K(s),
1084
+ numericFields: Z(s),
1086
1085
  aggregationType: we(s)
1087
- }), i = se(1, s), r = te(s);
1088
- return a === i || r;
1086
+ }), i = ie(1, s), a = se(s);
1087
+ return r === i || a;
1089
1088
  }
1090
- function ds(s, e) {
1091
- const t = R(e.layerFieldsInfo, M(s)), a = se(0, s), i = te(s);
1092
- return t === a || i;
1089
+ function ds(s) {
1090
+ const { config: e, layerInfo: t, commonStrings: r } = s, i = R(t.layerFieldsInfo, P(e)), a = ie(0, e), n = se(e), o = P(e) === U && (a === "" || a === r.xAxis);
1091
+ return i === a || n || o;
1093
1092
  }
1094
1093
  function Ri(s) {
1095
1094
  return I(s.series[0]) ? s.series[0].binTemporalData ?? !0 : !1;
@@ -1112,7 +1111,7 @@ export {
1112
1111
  Ni as C,
1113
1112
  Ri as D,
1114
1113
  qi as E,
1115
- j as F,
1114
+ K as F,
1116
1115
  Re as G,
1117
1116
  Jt as H,
1118
1117
  _s as I,
@@ -1149,8 +1148,8 @@ export {
1149
1148
  si as ab,
1150
1149
  li as ac,
1151
1150
  is as ad,
1152
- ui as ae,
1153
- ci as af,
1151
+ ci as ae,
1152
+ ui as af,
1154
1153
  di as ag,
1155
1154
  yi as ah,
1156
1155
  mi as ai,
@@ -1161,8 +1160,8 @@ export {
1161
1160
  fi as an,
1162
1161
  ws as b,
1163
1162
  Ps as c,
1164
- K as d,
1165
- ae as e,
1163
+ Z as d,
1164
+ re as e,
1166
1165
  Ws as f,
1167
1166
  we as g,
1168
1167
  Oi as h,