@arcgis/charts-components 5.2.0-next.12 → 5.2.0-next.13
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.
- package/dist/cdn/{VFUFK3UT.js → 2A24D2CL.js} +1 -1
- package/dist/cdn/{RMBD6ZSC.js → 2D43CHPT.js} +1 -1
- package/dist/cdn/{LJDGLKFL.js → 2JXQPKO5.js} +1 -1
- package/dist/cdn/{7HUD5SQI.js → 2TWHFFC4.js} +1 -1
- package/dist/cdn/{W55GZOYQ.js → 3MDFLGUF.js} +1 -1
- package/dist/cdn/{3T4NYRGX.js → 4KW327JN.js} +1 -1
- package/dist/cdn/4NYV2JV3.js +3 -0
- package/dist/cdn/{BXJZ4YYQ.js → 4PUPQ4ZW.js} +1 -1
- package/dist/cdn/{O363DXQ4.js → 64LHZA6T.js} +1 -1
- package/dist/cdn/{OEOAL6JO.js → 6OEWH6DU.js} +1 -1
- package/dist/cdn/{KUUBYC33.js → 6QPY3WVJ.js} +1 -1
- package/dist/cdn/{SN2GPX3I.js → 7QSJHT6K.js} +1 -1
- package/dist/cdn/{QT3VTHUJ.js → A5TGCD54.js} +1 -1
- package/dist/cdn/{624WBDC3.js → A6ZKJNCI.js} +1 -1
- package/dist/cdn/{66GCPNDR.js → AGIHYXGK.js} +1 -1
- package/dist/cdn/{KL33ETQG.js → AIPJCK34.js} +1 -1
- package/dist/cdn/{ODWDODUY.js → BBPUHC7W.js} +1 -1
- package/dist/cdn/{CTE365PT.js → BES3KNGY.js} +1 -1
- package/dist/cdn/{EYYQKOXI.js → CAYUSURH.js} +1 -1
- package/dist/cdn/{EYF75TH5.js → CMH6WLB4.js} +1 -1
- package/dist/cdn/{2PFDGKA5.js → CPQGJVLJ.js} +1 -1
- package/dist/cdn/{IM5PHXV3.js → CW44UMK6.js} +1 -1
- package/dist/cdn/{NVEIMJJ7.js → D6IGHHX3.js} +1 -1
- package/dist/cdn/{QSBAOCG4.js → E3AWZQWL.js} +1 -1
- package/dist/cdn/{26ESJ72L.js → EH3OIMGC.js} +1 -1
- package/dist/cdn/{DYNPQ2KT.js → ESYY65PY.js} +1 -1
- package/dist/cdn/{IDHDU3DJ.js → FMF37DQF.js} +1 -1
- package/dist/cdn/{RMHGA6AU.js → FZDYLJRV.js} +1 -1
- package/dist/cdn/{3UFVHYX5.js → GKRMQS5Q.js} +1 -1
- package/dist/cdn/{MPSRB65O.js → GN4O3BCI.js} +1 -1
- package/dist/cdn/{HQONJQEW.js → GNVJXOOV.js} +1 -1
- package/dist/cdn/{PGWOWXHQ.js → GRNKGPDQ.js} +1 -1
- package/dist/cdn/{DKRPN24O.js → H4CCTXTD.js} +1 -1
- package/dist/cdn/{T2SFRF7I.js → IKBGE4XH.js} +1 -1
- package/dist/cdn/{LA7COTN7.js → INCK5AFZ.js} +1 -1
- package/dist/cdn/{ZFK3D55V.js → IVM77SOL.js} +1 -1
- package/dist/cdn/{Z2UG6CUL.js → JCWTD6DG.js} +1 -1
- package/dist/cdn/{6VVUN6AX.js → JFMBYHTG.js} +1 -1
- package/dist/cdn/{DOVGECFB.js → JK7I63SC.js} +1 -1
- package/dist/cdn/{N5ZIF7M4.js → JMACRJOV.js} +1 -1
- package/dist/cdn/{V2UF2WVE.js → K2JOJV52.js} +1 -1
- package/dist/cdn/{J47CNZCT.js → KPXVJR6S.js} +1 -1
- package/dist/cdn/{PIONRTCB.js → KR22STZN.js} +1 -1
- package/dist/cdn/{RJSCJBFO.js → L4OHTO6S.js} +1 -1
- package/dist/cdn/{WMXNQ5XH.js → LRNKTAWO.js} +1 -1
- package/dist/cdn/{PGHVUDMJ.js → LZMT7YW7.js} +1 -1
- package/dist/cdn/{W4XQNHSD.js → M4S67KAQ.js} +1 -1
- package/dist/cdn/{U7TKKTUC.js → MB36GVIV.js} +1 -1
- package/dist/cdn/{BJYCLLJL.js → MFGMIXHS.js} +1 -1
- package/dist/cdn/{JKTF2L3L.js → MNX2OQM7.js} +7 -7
- package/dist/cdn/{JQX5EJZV.js → O6JHQR4V.js} +1 -1
- package/dist/cdn/{ZP22BN3G.js → O6X4UVEJ.js} +1 -1
- package/dist/cdn/{KJPXY6NE.js → OBEDC3OT.js} +1 -1
- package/dist/cdn/{5F5N7ZZ6.js → OFXDO3EK.js} +1 -1
- package/dist/cdn/{SNMFJ4CN.js → OWO3NDGM.js} +1 -1
- package/dist/cdn/{5PKMZMGG.js → OZIAUW3A.js} +1 -1
- package/dist/cdn/{ECICE4SU.js → PBOTADC5.js} +1 -1
- package/dist/cdn/{X5PNAE7T.js → PQGX64RE.js} +1 -1
- package/dist/cdn/{KZTGYTHS.js → QBKIVOUQ.js} +1 -1
- package/dist/cdn/{5BADQJ64.js → RMJKQIQM.js} +1 -1
- package/dist/cdn/{4LQHAOMY.js → RWRGGCHV.js} +1 -1
- package/dist/cdn/{DL6PRHZT.js → SKG5NCDS.js} +1 -1
- package/dist/cdn/{MGMUUWSP.js → TFXFKPTU.js} +1 -1
- package/dist/cdn/{SMCXHMTP.js → TR7YC7GX.js} +1 -1
- package/dist/cdn/{YCJIOFQR.js → TRRB6DUE.js} +1 -1
- package/dist/cdn/{K2P5RSE5.js → U2CTDP7X.js} +1 -1
- package/dist/cdn/{IYP3GZSC.js → U2GTLQKQ.js} +1 -1
- package/dist/cdn/{S5EYODWJ.js → ULUPQFHW.js} +1 -1
- package/dist/cdn/{JLWDVTJW.js → US4WU5ZB.js} +1 -1
- package/dist/cdn/{GHLJNZ27.js → VETKGJXJ.js} +1 -1
- package/dist/cdn/{AIFWLINL.js → VNIK56MD.js} +1 -1
- package/dist/cdn/{WVV5DAII.js → VS6T5RFW.js} +1 -1
- package/dist/cdn/{YBN53S4C.js → W4XWIKEA.js} +1 -1
- package/dist/cdn/{CVF3NLTS.js → WL5E6TAV.js} +1 -1
- package/dist/cdn/{SOOQD5FC.js → WM36AOX7.js} +1 -1
- package/dist/cdn/{VP42WLDX.js → X3UPL6NZ.js} +1 -1
- package/dist/cdn/{EEFS6HU7.js → YG5HX7O4.js} +1 -1
- package/dist/cdn/{ISSVKLHV.js → YXQHE47P.js} +1 -1
- package/dist/cdn/{IBKS2NZ3.js → ZN73TUTH.js} +1 -1
- package/dist/cdn/{LL757OZ7.js → ZNXBQWBM.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/model/shared/setup-utils.js +1 -1
- package/dist/chunks/index2.js +1003 -997
- package/dist/components/arcgis-chart/customElement.js +849 -859
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/package.json +3 -3
- package/dist/cdn/73JQ2I2Q.js +0 -3
package/dist/chunks/index2.js
CHANGED
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { isEqual as at, sortBy as Ni, cloneDeep as He, memoize as It, isArray as li, isNil as
|
|
3
|
-
import { u as
|
|
2
|
+
import { isEqual as at, sortBy as Ni, cloneDeep as He, memoize as It, isArray as li, isNil as pr, isEmpty as hr } from "lodash-es";
|
|
3
|
+
import { u as h, k as Sr, r as D, v as Ke, m as Se, p as ye, n as De, q as Te, g as Z, j as Fr, s as R, t as ee, d as he, a as Ui, G as br } from "./chart-object-literals.js";
|
|
4
4
|
import Ti from "@arcgis/core/layers/support/FeatureFilter.js";
|
|
5
|
-
import
|
|
5
|
+
import xr from "@arcgis/core/smartMapping/statistics/histogram.js";
|
|
6
6
|
import Ai from "@arcgis/core/smartMapping/statistics/summaryStatistics.js";
|
|
7
7
|
import * as Yi from "@arcgis/core/geometry/support/jsonUtils.js";
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
8
|
+
import Cr from "@arcgis/core/rest/support/AttributeBinsQuery.js";
|
|
9
|
+
import vr from "@arcgis/core/rest/support/Query.js";
|
|
10
|
+
import Br from "@arcgis/core/rest/support/StatisticDefinition.js";
|
|
11
11
|
import Zi from "@arcgis/core/time/TimeExtent.js";
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import * as
|
|
16
|
-
import
|
|
12
|
+
import Nr from "@arcgis/core/layers/FeatureLayer.js";
|
|
13
|
+
import Tr from "@arcgis/core/layers/support/CodedValueDomain.js";
|
|
14
|
+
import Ar from "@arcgis/core/layers/support/Field.js";
|
|
15
|
+
import * as wr from "@arcgis/core/layers/support/fieldUtils.js";
|
|
16
|
+
import Lr from "@arcgis/core/portal/Portal.js";
|
|
17
17
|
import * as Xi from "@arcgis/core/renderers/support/jsonUtils.js";
|
|
18
18
|
import wt from "@arcgis/core/request.js";
|
|
19
19
|
import Ji from "@arcgis/core/rest/support/FeatureSet.js";
|
|
20
20
|
import { g as _ } from "./series-types.js";
|
|
21
|
-
import { F as C, q as oe, C as F, e as Zt, z as Ki, l as ui, o as wi, v as ea, d as Xt, x as
|
|
22
|
-
import
|
|
21
|
+
import { F as C, q as oe, C as F, e as Zt, z as Ki, l as ui, o as wi, v as ea, d as Xt, x as Pr, g as ta, s as zt, w as Mr, i as Dr, r as Ae, t as Et } from "./index3.js";
|
|
22
|
+
import Or from "@arcgis/core/Graphic.js";
|
|
23
23
|
import * as Wt from "@arcgis/core/symbols/support/symbolUtils.js";
|
|
24
24
|
import { f as Jt, h as et, i as _e, e as se, R as U } from "./rest-js-object-literals.js";
|
|
25
|
-
import
|
|
25
|
+
import Ir from "@arcgis/core/AttributeBinsGraphic.js";
|
|
26
26
|
import { substitute as Be } from "@arcgis/core/intl.js";
|
|
27
|
-
import { g as qt, L as lt, az as W, j as Q, r as ut, o as Oe, ax as Kt, am as ia, aB as aa, aq as
|
|
28
|
-
import { unsafeGetElementDirection as
|
|
27
|
+
import { g as qt, L as lt, az as W, j as Q, r as ut, o as Oe, ax as Kt, am as ia, aB as aa, aq as Er, s as Vt, ay as qr, b as Vr, a as Rr } from "./index.js";
|
|
28
|
+
import { unsafeGetElementDirection as $r } from "@arcgis/toolkit/dom";
|
|
29
29
|
import { fetchT9nStringsBundle as ft, getElementLocale as ze, supportedLocales as ra } from "@arcgis/toolkit/intl";
|
|
30
|
-
import { i as na, b as sa, c as ie, a as mt, f as
|
|
30
|
+
import { i as na, b as sa, c as ie, a as mt, f as kr, e as Qr } from "./type-guards.js";
|
|
31
31
|
import * as oa from "@arcgis/core/core/promiseUtils.js";
|
|
32
32
|
import { g as yt } from "./runtime.js";
|
|
33
|
-
import { linearRegression as
|
|
34
|
-
import { sqlLiteral as
|
|
33
|
+
import { linearRegression as _r, linearRegressionLine as jr, rSquared as Hr } from "simple-statistics";
|
|
34
|
+
import { sqlLiteral as zr } from "@arcgis/core/core/sql.js";
|
|
35
35
|
import { DateTime as me } from "luxon";
|
|
36
|
-
import { computeStatisticsHistograms as
|
|
37
|
-
import
|
|
38
|
-
import
|
|
36
|
+
import { computeStatisticsHistograms as Wr, computeRasterAttributeTable as Gr, getCurrentRasterInfo as Rt, fetchPixelFeatureSet as Ur } from "@arcgis/core/applications/Components/imageryUtils.js";
|
|
37
|
+
import Yr from "@arcgis/core/geometry/Extent.js";
|
|
38
|
+
import la from "@arcgis/core/geometry/Point.js";
|
|
39
39
|
import Zr from "@arcgis/core/layers/ImageryLayer.js";
|
|
40
40
|
import Xr from "@arcgis/core/layers/ImageryTileLayer.js";
|
|
41
41
|
import Jr from "@arcgis/core/layers/WCSLayer.js";
|
|
@@ -62,16 +62,16 @@ function nc(t) {
|
|
|
62
62
|
return t.intlOptions;
|
|
63
63
|
}
|
|
64
64
|
function ne(t) {
|
|
65
|
-
return t?.type ===
|
|
65
|
+
return t?.type === h.NumberAxisFormat;
|
|
66
66
|
}
|
|
67
67
|
function sc(t) {
|
|
68
68
|
return ne(t) && t.intlOptions?.style === "percent";
|
|
69
69
|
}
|
|
70
70
|
function we(t) {
|
|
71
|
-
return t?.type ===
|
|
71
|
+
return t?.type === h.CategoryAxisFormat;
|
|
72
72
|
}
|
|
73
73
|
function je(t) {
|
|
74
|
-
return t?.type ===
|
|
74
|
+
return t?.type === h.DateAxisFormat;
|
|
75
75
|
}
|
|
76
76
|
function oc(t) {
|
|
77
77
|
const { oldConfig: e, newConfig: i, rotationChanged: a } = t;
|
|
@@ -108,28 +108,28 @@ function lc(t) {
|
|
|
108
108
|
const { chartType: e, axesConfig: i, errorStrings: a } = t;
|
|
109
109
|
let r, n;
|
|
110
110
|
switch (e) {
|
|
111
|
-
case
|
|
111
|
+
case h.GaugeSeries:
|
|
112
112
|
r = ln, n = "invalidValueFormatForGauge";
|
|
113
113
|
break;
|
|
114
|
-
case
|
|
114
|
+
case h.ScatterSeries:
|
|
115
115
|
r = sn, n = "invalidValueFormatForScatterplot";
|
|
116
116
|
break;
|
|
117
|
-
case
|
|
117
|
+
case h.HistogramSeries:
|
|
118
118
|
r = on, n = "invalidValueFormatForHistogram";
|
|
119
119
|
break;
|
|
120
|
-
case
|
|
120
|
+
case h.LineSeries:
|
|
121
121
|
r = en, n = "invalidValueFormatForLineChart";
|
|
122
122
|
break;
|
|
123
|
-
case
|
|
123
|
+
case h.BarSeries:
|
|
124
124
|
r = tn, n = "invalidValueFormatForBarChart";
|
|
125
125
|
break;
|
|
126
|
-
case
|
|
126
|
+
case h.ComboLineAndBarSeries:
|
|
127
127
|
r = nn, n = "invalidValueFormatForComboBarLineChart";
|
|
128
128
|
break;
|
|
129
|
-
case
|
|
129
|
+
case h.BoxPlotSeries:
|
|
130
130
|
r = an, n = "invalidValueFormatForBoxPlot";
|
|
131
131
|
break;
|
|
132
|
-
case
|
|
132
|
+
case h.HeatSeries:
|
|
133
133
|
r = rn, n = "invalidValueFormatForHeatChart";
|
|
134
134
|
break;
|
|
135
135
|
}
|
|
@@ -137,16 +137,16 @@ function lc(t) {
|
|
|
137
137
|
}
|
|
138
138
|
function un(t) {
|
|
139
139
|
const { isXAxis: e, chartType: i, valueFormat: a, isAxisForHistogramOverlaySeries: r } = t;
|
|
140
|
-
return e && (we(a) || i ===
|
|
140
|
+
return e && (we(a) || i === h.HistogramSeries && !r || i === h.BarSeries && ne(a));
|
|
141
141
|
}
|
|
142
142
|
function We(t) {
|
|
143
|
-
return _(t?.series) ===
|
|
143
|
+
return _(t?.series) === h.HeatSeries;
|
|
144
144
|
}
|
|
145
145
|
function de(t) {
|
|
146
|
-
return _(t?.series) ===
|
|
146
|
+
return _(t?.series) === h.BoxPlotSeries;
|
|
147
147
|
}
|
|
148
148
|
function uc(t) {
|
|
149
|
-
return _(t?.series) ===
|
|
149
|
+
return _(t?.series) === h.ComboLineAndBarSeries;
|
|
150
150
|
}
|
|
151
151
|
function cn(t) {
|
|
152
152
|
return t !== void 0 && t !== Jt.Solid && t !== Jt.Null;
|
|
@@ -237,7 +237,7 @@ const ce = "arcgis_charts_pie_from_fields_name", Ne = "arcgis_charts_pie_from_fi
|
|
|
237
237
|
// blue
|
|
238
238
|
},
|
|
239
239
|
legend: {
|
|
240
|
-
position:
|
|
240
|
+
position: Sr.Bottom,
|
|
241
241
|
chartPadding: 40,
|
|
242
242
|
legendPadding: 20,
|
|
243
243
|
width: 70,
|
|
@@ -335,22 +335,22 @@ function Fc(t) {
|
|
|
335
335
|
function Ee(t) {
|
|
336
336
|
return t !== void 0 && "view" in t && "layer" in t && t.layer.type === "feature";
|
|
337
337
|
}
|
|
338
|
-
function
|
|
338
|
+
function ua(t) {
|
|
339
339
|
return t !== void 0 && "type" in t && t.type === "feature";
|
|
340
340
|
}
|
|
341
341
|
function bc(t) {
|
|
342
342
|
return t !== void 0 && "type" in t && t.type === "subtype-group";
|
|
343
343
|
}
|
|
344
|
-
function
|
|
344
|
+
function ca(t) {
|
|
345
345
|
return t !== void 0 && "type" in t && t.type === "subtype-sublayer";
|
|
346
346
|
}
|
|
347
347
|
function fn(t) {
|
|
348
|
-
return
|
|
348
|
+
return ua(t) || ca(t);
|
|
349
349
|
}
|
|
350
350
|
function ge(t) {
|
|
351
|
-
return
|
|
351
|
+
return ca(t) ? t.parent ?? void 0 : t;
|
|
352
352
|
}
|
|
353
|
-
function
|
|
353
|
+
function da(t) {
|
|
354
354
|
return t?.capabilities?.query?.supportsDistance || ge(t)?.sourceJSON?.advancedQueryCapabilities?.supportsQueryWithDistance === !0;
|
|
355
355
|
}
|
|
356
356
|
function mn(t) {
|
|
@@ -358,7 +358,7 @@ function mn(t) {
|
|
|
358
358
|
}
|
|
359
359
|
function xc(t) {
|
|
360
360
|
const { chartConfig: e, queryObject: i, options: a } = t, r = _(e?.series), n = te(e?.series[0]?.query?.where);
|
|
361
|
-
return !(r ===
|
|
361
|
+
return !(r === h.HeatSeries || e && Pe({
|
|
362
362
|
xAxisValueFormatType: xe(e),
|
|
363
363
|
setTimeBinningInfoWhenNotProvided: a?.setTimeBinningInfoWhenNotProvided,
|
|
364
364
|
seriesConfig: e.series[0],
|
|
@@ -506,10 +506,10 @@ const Qe = [
|
|
|
506
506
|
"25.0.0",
|
|
507
507
|
"25.1.0"
|
|
508
508
|
], pn = "1.0.0", hn = "unrecognized.version", Sn = [
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
509
|
+
h.LineSeries,
|
|
510
|
+
h.BarSeries,
|
|
511
|
+
h.ComboLineAndBarSeries,
|
|
512
|
+
h.RadarSeries
|
|
513
513
|
];
|
|
514
514
|
function Gt(t, e) {
|
|
515
515
|
let i = 0;
|
|
@@ -553,7 +553,7 @@ function Nc(t) {
|
|
|
553
553
|
}
|
|
554
554
|
function Re(t) {
|
|
555
555
|
const { series: e } = t;
|
|
556
|
-
let a = ("showMean" in t ? t.showMean : !1) === !0 ? e.find((r) => r.type ===
|
|
556
|
+
let a = ("showMean" in t ? t.showMean : !1) === !0 ? e.find((r) => r.type === h.LineSeries) : e[0];
|
|
557
557
|
return a ??= e[0], a;
|
|
558
558
|
}
|
|
559
559
|
function Tc(t, e) {
|
|
@@ -589,34 +589,34 @@ function Le(t) {
|
|
|
589
589
|
let o = e;
|
|
590
590
|
return n !== "" && s !== "" && (s === null ? o = `${n} IS NULL` : o = `${n}=${s}`), o;
|
|
591
591
|
}
|
|
592
|
-
function
|
|
592
|
+
function fa(t) {
|
|
593
593
|
let e = F.PieFromCategory;
|
|
594
594
|
return t[0].query?.outStatistics === void 0 ? e = F.PieNoAggregation : t[0].query?.groupByFieldsForStatistics === void 0 && (e = F.PieFromFields), e;
|
|
595
595
|
}
|
|
596
|
-
function
|
|
596
|
+
function ma(t) {
|
|
597
597
|
let e = F.BarAndLineMonoField;
|
|
598
598
|
const i = t[0].query?.where;
|
|
599
599
|
return t[0].query?.groupByFieldsForStatistics === void 0 && (t[0].query?.outStatistics ?? []).length > 0 ? e = F.BarAndLineFromFields : i === void 0 && t[0].query?.outStatistics === void 0 ? e = F.BarAndLineNoAggregation : Ie(i) ? t.length > 1 && (e = F.BarAndLineMultiFields) : e = t[0].query?.outStatistics === void 0 ? F.BarAndLineSplitByNoAggregation : F.BarAndLineSplitBy, e;
|
|
600
600
|
}
|
|
601
601
|
function bn(t) {
|
|
602
602
|
let e = F.BoxPlotMonoField;
|
|
603
|
-
const i = t.length === 1, a = t.find((o) => o.type ===
|
|
603
|
+
const i = t.length === 1, a = t.find((o) => o.type === h.LineSeries) ?? t[0], { x: r } = a, n = "y" in a ? a.y : "", s = a.query?.where;
|
|
604
604
|
return r === qt ? typeof n == "object" && n.length > 1 ? Ie(s) ? i && (e = F.BoxPlotMultiFields) : e = F.BoxPlotMultiFieldsAndSplitBy : i ? e = F.BoxPlotMonoField : Ie(s) || (e = F.BoxPlotMonoFieldAndSplitBy) : i ? e = F.BoxPlotMonoFieldAndCategory : Ie(s) ? e = F.BoxPlotMultiFieldsAndCategory : e = F.BoxPlotMonoFieldAndCategoryAndSplitBy, e;
|
|
605
605
|
}
|
|
606
606
|
function k(t) {
|
|
607
607
|
let e = F.NonSpecific;
|
|
608
608
|
if (t?.[0] !== void 0)
|
|
609
609
|
switch (_(t)) {
|
|
610
|
-
case
|
|
611
|
-
e =
|
|
610
|
+
case h.PieSeries:
|
|
611
|
+
e = fa(t);
|
|
612
612
|
break;
|
|
613
|
-
case
|
|
614
|
-
case
|
|
615
|
-
case
|
|
616
|
-
case
|
|
617
|
-
e =
|
|
613
|
+
case h.RadarSeries:
|
|
614
|
+
case h.BarSeries:
|
|
615
|
+
case h.LineSeries:
|
|
616
|
+
case h.ComboLineAndBarSeries:
|
|
617
|
+
e = ma(t);
|
|
618
618
|
break;
|
|
619
|
-
case
|
|
619
|
+
case h.BoxPlotSeries:
|
|
620
620
|
e = bn(t);
|
|
621
621
|
break;
|
|
622
622
|
}
|
|
@@ -628,13 +628,13 @@ function xn(t) {
|
|
|
628
628
|
function Cn(t) {
|
|
629
629
|
let e = !0;
|
|
630
630
|
const i = _(t.series);
|
|
631
|
-
if (i ===
|
|
631
|
+
if (i === h.BarSeries || i === h.LineSeries || i === h.ComboLineAndBarSeries) {
|
|
632
632
|
const a = k(t.series);
|
|
633
633
|
e = a !== F.BarAndLineNoAggregation && a !== F.BarAndLineSplitByNoAggregation;
|
|
634
634
|
}
|
|
635
635
|
return e;
|
|
636
636
|
}
|
|
637
|
-
function
|
|
637
|
+
function ya(t) {
|
|
638
638
|
const { statsMap: e, dataContext: i, chartLimits: a } = t;
|
|
639
639
|
let r = !1;
|
|
640
640
|
if (e !== void 0) {
|
|
@@ -648,15 +648,15 @@ function vn(t) {
|
|
|
648
648
|
let r = !0;
|
|
649
649
|
if (i !== void 0)
|
|
650
650
|
switch (_(i.series)) {
|
|
651
|
-
case
|
|
652
|
-
case
|
|
653
|
-
case
|
|
651
|
+
case h.BarSeries:
|
|
652
|
+
case h.LineSeries:
|
|
653
|
+
case h.ComboLineAndBarSeries:
|
|
654
654
|
r = Cn(i);
|
|
655
655
|
break;
|
|
656
|
-
case
|
|
657
|
-
r =
|
|
656
|
+
case h.ScatterSeries:
|
|
657
|
+
r = ya({ dataContext: e, chartLimits: a });
|
|
658
658
|
break;
|
|
659
|
-
case
|
|
659
|
+
case h.PieSeries:
|
|
660
660
|
r = xn(i);
|
|
661
661
|
break;
|
|
662
662
|
}
|
|
@@ -665,7 +665,7 @@ function vn(t) {
|
|
|
665
665
|
function Pe(t) {
|
|
666
666
|
const { seriesConfig: e, xAxisValueFormatType: i, setTimeBinningInfoWhenNotProvided: a, queryObject: r } = t;
|
|
667
667
|
let n = !1;
|
|
668
|
-
if (!ie(r) && !(z(r)?.fields?.find((o) => o.name === e.x)?.type === "time-only") && be(e) && e.binTemporalData !== !1 && i ===
|
|
668
|
+
if (!ie(r) && !(z(r)?.fields?.find((o) => o.name === e.x)?.type === "time-only") && be(e) && e.binTemporalData !== !1 && i === h.DateAxisFormat) {
|
|
669
669
|
const o = k([e]);
|
|
670
670
|
if (e.temporalBinning && o !== F.BarAndLineNoAggregation && o !== F.BarAndLineSplitByNoAggregation) {
|
|
671
671
|
const { unit: u, size: c } = e.temporalBinning;
|
|
@@ -677,7 +677,7 @@ function Pe(t) {
|
|
|
677
677
|
function be(t) {
|
|
678
678
|
return Sn.includes(t?.type);
|
|
679
679
|
}
|
|
680
|
-
function
|
|
680
|
+
function ga(t) {
|
|
681
681
|
const { previousConfig: e, newConfig: i, behaviorAfterLimit: a } = t, r = e.series, n = i.series;
|
|
682
682
|
let s = !1, o = !1;
|
|
683
683
|
(a === lt.RenderUpToTheLimit || e.orderOptions?.data === void 0 || i.orderOptions?.data === void 0) && (o = !at(
|
|
@@ -704,21 +704,21 @@ function Nn(t, e) {
|
|
|
704
704
|
i = !0;
|
|
705
705
|
else {
|
|
706
706
|
const a = _(t);
|
|
707
|
-
if (a !==
|
|
707
|
+
if (a !== h.HistogramSeries && a !== h.GaugeSeries) {
|
|
708
708
|
const r = ue(t).sort(), n = ue(e).sort();
|
|
709
709
|
i = JSON.stringify(r) !== JSON.stringify(n);
|
|
710
710
|
}
|
|
711
711
|
}
|
|
712
712
|
return i;
|
|
713
713
|
}
|
|
714
|
-
function
|
|
714
|
+
function pa(t, e) {
|
|
715
715
|
return (t ?? !1) !== (e ?? !1);
|
|
716
716
|
}
|
|
717
|
-
function
|
|
717
|
+
function ha(t, e) {
|
|
718
718
|
return be(t.series[0]) && be(e.series[0]) && (t.series[0].binTemporalData ?? C.binTemporalData) !== (e.series[0].binTemporalData ?? C.binTemporalData);
|
|
719
719
|
}
|
|
720
|
-
function
|
|
721
|
-
const i = t.axes?.[0].valueFormat.type, a = e.axes?.[0].valueFormat.type, r = k(e.series), n = r === F.BarAndLineNoAggregation || r === F.BarAndLineSplitByNoAggregation, s = i ===
|
|
720
|
+
function Sa(t, e) {
|
|
721
|
+
const i = t.axes?.[0].valueFormat.type, a = e.axes?.[0].valueFormat.type, r = k(e.series), n = r === F.BarAndLineNoAggregation || r === F.BarAndLineSplitByNoAggregation, s = i === h.DateAxisFormat && a === h.NumberAxisFormat, o = i === h.NumberAxisFormat && a === h.DateAxisFormat;
|
|
722
722
|
return i !== a && (n || s || o);
|
|
723
723
|
}
|
|
724
724
|
function Tn(t) {
|
|
@@ -738,13 +738,13 @@ function Tn(t) {
|
|
|
738
738
|
function Li(t, e) {
|
|
739
739
|
return e.length !== t.length;
|
|
740
740
|
}
|
|
741
|
-
function
|
|
741
|
+
function Fa(t, e) {
|
|
742
742
|
return st(t) !== st(e);
|
|
743
743
|
}
|
|
744
|
-
function
|
|
744
|
+
function ba(t, e) {
|
|
745
745
|
return JSON.stringify(t.series[0]?.valueConversion) !== JSON.stringify(e.series[0]?.valueConversion);
|
|
746
746
|
}
|
|
747
|
-
function
|
|
747
|
+
function xa(t, e) {
|
|
748
748
|
return JSON.stringify(t.series[0]?.xTemporalBinning) !== JSON.stringify(e.series[0]?.xTemporalBinning) || JSON.stringify(t.series[0]?.yTemporalBinning) !== JSON.stringify(e.series[0]?.yTemporalBinning) || (t.firstDayOfWeek ?? 7) !== (e.firstDayOfWeek ?? 7) || t.outTimeZone !== e.outTimeZone || (t.nullPolicy ?? Se.Null) !== (e.nullPolicy ?? Se.Null);
|
|
749
749
|
}
|
|
750
750
|
function An(t, e) {
|
|
@@ -756,7 +756,7 @@ function wn(t, e) {
|
|
|
756
756
|
function Ln(t) {
|
|
757
757
|
const { previousConfig: e, newConfig: i, fieldList: a } = t, r = e.series[0], n = i.series[0];
|
|
758
758
|
let s = !1;
|
|
759
|
-
if (r.type ===
|
|
759
|
+
if (r.type === h.ScatterSeries && n.type === h.ScatterSeries && a && a.length > 0) {
|
|
760
760
|
const o = new Set(r.additionalTooltipFields || []), u = new Set(n.additionalTooltipFields || []);
|
|
761
761
|
if (!at(o, u)) {
|
|
762
762
|
const c = Array.from(u).filter((l) => !o.has(l));
|
|
@@ -776,11 +776,11 @@ function Lt(t) {
|
|
|
776
776
|
return e.position === void 0 && (e.position = gt.heatChart.legend.position), e;
|
|
777
777
|
}
|
|
778
778
|
function Lc(t, e) {
|
|
779
|
-
const i = t.legend ?? { type:
|
|
779
|
+
const i = t.legend ?? { type: h.Legend }, a = e.legend ?? { type: h.Legend }, r = Lt(i), n = Lt(a);
|
|
780
780
|
return !at(r, n);
|
|
781
781
|
}
|
|
782
782
|
function Pc(t, e) {
|
|
783
|
-
const i = t.legend ?? { type:
|
|
783
|
+
const i = t.legend ?? { type: h.Legend }, a = e.legend ?? { type: h.Legend }, r = Lt(i), n = Lt(a);
|
|
784
784
|
return r.position !== n.position;
|
|
785
785
|
}
|
|
786
786
|
function Mc(t, e) {
|
|
@@ -793,7 +793,7 @@ function Oc(t) {
|
|
|
793
793
|
const { oldConfig: e, newConfig: i } = t;
|
|
794
794
|
let a = !1;
|
|
795
795
|
const r = e?.series[0], n = i.series[0], s = _(e?.series), o = _(i.series);
|
|
796
|
-
if (s ===
|
|
796
|
+
if (s === h.PieSeries && o === h.PieSeries) {
|
|
797
797
|
const { slices: u, sliceGrouping: c } = r, { slices: l, sliceGrouping: d } = n, f = u?.map((g) => ({
|
|
798
798
|
sliceId: g.sliceId,
|
|
799
799
|
label: g.label
|
|
@@ -847,13 +847,13 @@ function jc(t, e) {
|
|
|
847
847
|
return JSON.stringify(t?.chartRenderer) !== JSON.stringify(e?.chartRenderer);
|
|
848
848
|
}
|
|
849
849
|
function Hc(t, e) {
|
|
850
|
-
const i = t.axes?.[0].valueFormat.type ===
|
|
850
|
+
const i = t.axes?.[0].valueFormat.type === h.DateAxisFormat ? t.axes[0].valueFormat.intlOptions.timeZone : void 0, a = e.axes?.[0].valueFormat.type === h.DateAxisFormat ? e.axes[0].valueFormat.intlOptions.timeZone : void 0;
|
|
851
851
|
return i !== a;
|
|
852
852
|
}
|
|
853
853
|
function zc(t, e) {
|
|
854
854
|
let i = !1;
|
|
855
855
|
const a = t.series[0], r = e.series[0];
|
|
856
|
-
if (a.type ===
|
|
856
|
+
if (a.type === h.ScatterSeries && r.type === h.ScatterSeries) {
|
|
857
857
|
const { sizePolicy: n } = a, { sizePolicy: s } = r;
|
|
858
858
|
i = JSON.stringify(n) !== JSON.stringify(s);
|
|
859
859
|
}
|
|
@@ -862,7 +862,7 @@ function zc(t, e) {
|
|
|
862
862
|
function Wc(t, e) {
|
|
863
863
|
let i = !1;
|
|
864
864
|
const a = t.series[0], r = e.series[0];
|
|
865
|
-
if (a.type ===
|
|
865
|
+
if (a.type === h.ScatterSeries && r.type === h.ScatterSeries) {
|
|
866
866
|
const { sizePolicy: n } = a, { sizePolicy: s } = r;
|
|
867
867
|
i = n === void 0 && s !== void 0 || n !== void 0 && s === void 0 || n?.field !== s?.field;
|
|
868
868
|
}
|
|
@@ -882,7 +882,7 @@ function Gc(t) {
|
|
|
882
882
|
chartLimits: l
|
|
883
883
|
} = t, { series: d } = i, { series: f } = e, m = _(d);
|
|
884
884
|
let y = !1, p = !1, g = !1;
|
|
885
|
-
const
|
|
885
|
+
const S = {
|
|
886
886
|
common: {
|
|
887
887
|
layerChanged: !1,
|
|
888
888
|
queryChanged: !1,
|
|
@@ -908,22 +908,22 @@ function Gc(t) {
|
|
|
908
908
|
tooltipFieldsChanged: !1
|
|
909
909
|
}
|
|
910
910
|
};
|
|
911
|
-
switch (
|
|
911
|
+
switch (S.common.queryChanged = ga({
|
|
912
912
|
previousConfig: e,
|
|
913
913
|
newConfig: i,
|
|
914
914
|
behaviorAfterLimit: l?.behaviorAfterLimit
|
|
915
|
-
}),
|
|
915
|
+
}), S.common.configFiltersChanged = Bn(e, i), S.common.xOrYChanged = Nn(f, d), S.common.filterBySelectionChanged = pa(
|
|
916
916
|
a,
|
|
917
917
|
o
|
|
918
|
-
),
|
|
918
|
+
), S.common.dataForFilterBySelectionChanged = Pn({
|
|
919
919
|
previousSelectionOIDs: r,
|
|
920
920
|
selectionData: u,
|
|
921
921
|
filterBySelection: o
|
|
922
|
-
}),
|
|
922
|
+
}), S.common.binTemporalDataChanged = ha(e, i), S.common.valueFormatChangeRequiresNewData = Sa(
|
|
923
923
|
e,
|
|
924
924
|
i
|
|
925
|
-
),
|
|
926
|
-
...
|
|
925
|
+
), S.common = {
|
|
926
|
+
...S.common,
|
|
927
927
|
...Tn({
|
|
928
928
|
previousSeries: f,
|
|
929
929
|
newConfig: i,
|
|
@@ -931,38 +931,38 @@ function Gc(t) {
|
|
|
931
931
|
queryObject: s
|
|
932
932
|
})
|
|
933
933
|
}, m) {
|
|
934
|
-
case
|
|
935
|
-
|
|
934
|
+
case h.HistogramSeries:
|
|
935
|
+
S.histogram.dataPropsChanged = Kn(f, d) || Jn(
|
|
936
936
|
f,
|
|
937
937
|
d
|
|
938
938
|
);
|
|
939
939
|
break;
|
|
940
|
-
case
|
|
941
|
-
case
|
|
942
|
-
case
|
|
943
|
-
|
|
940
|
+
case h.LineSeries:
|
|
941
|
+
case h.BarSeries:
|
|
942
|
+
case h.ComboLineAndBarSeries:
|
|
943
|
+
S.common.numberOfSeriesChanged = Li(f, d);
|
|
944
944
|
break;
|
|
945
|
-
case
|
|
946
|
-
de(e) && de(i) && (
|
|
945
|
+
case h.BoxPlotSeries:
|
|
946
|
+
de(e) && de(i) && (S.common.numberOfSeriesChanged = Li(f, d), S.boxPlot.showMeanChanged = Fa(e, i));
|
|
947
947
|
break;
|
|
948
|
-
case
|
|
949
|
-
|
|
948
|
+
case h.GaugeSeries:
|
|
949
|
+
S.gauge.valueConversionChanged = ba(e, i);
|
|
950
950
|
break;
|
|
951
|
-
case
|
|
952
|
-
We(e) && We(i) && (
|
|
951
|
+
case h.HeatSeries:
|
|
952
|
+
We(e) && We(i) && (S.heatChart.binningChanged = xa(e, i), S.heatChart.hideEmptyRowsAndColumnsChanged = An(
|
|
953
953
|
e,
|
|
954
954
|
i
|
|
955
|
-
),
|
|
955
|
+
), S.heatChart.includeLeapDay = wn(e, i));
|
|
956
956
|
break;
|
|
957
|
-
case
|
|
958
|
-
|
|
957
|
+
case h.ScatterSeries:
|
|
958
|
+
S.scatterPlot.tooltipFieldsChanged = Ln({
|
|
959
959
|
previousConfig: e,
|
|
960
960
|
newConfig: i,
|
|
961
961
|
fieldList: n
|
|
962
962
|
});
|
|
963
963
|
break;
|
|
964
964
|
}
|
|
965
|
-
return p = Object.values(
|
|
965
|
+
return p = Object.values(S.common).some((b) => b), (S.gauge.valueConversionChanged || S.histogram.dataPropsChanged || S.boxPlot.showMeanChanged || S.heatChart.binningChanged || S.heatChart.hideEmptyRowsAndColumnsChanged || S.heatChart.includeLeapDay || S.scatterPlot.tooltipFieldsChanged) && (g = !0), y = p || g, { dataUpdateNeeded: y, dataUpdateDetails: S };
|
|
966
966
|
}
|
|
967
967
|
function Uc(t, e) {
|
|
968
968
|
const i = He(t);
|
|
@@ -1005,7 +1005,7 @@ function Mn(t) {
|
|
|
1005
1005
|
const r = ci(e);
|
|
1006
1006
|
return r?.length === 2 && (a = i === Q.xField ? r[0]?.orderBy : r[1]?.orderBy), a;
|
|
1007
1007
|
}
|
|
1008
|
-
function
|
|
1008
|
+
function Ca(t) {
|
|
1009
1009
|
const e = k(t.series);
|
|
1010
1010
|
let i;
|
|
1011
1011
|
if (t.orderOptions?.data !== void 0) {
|
|
@@ -1033,14 +1033,14 @@ function va(t) {
|
|
|
1033
1033
|
}
|
|
1034
1034
|
return i;
|
|
1035
1035
|
}
|
|
1036
|
-
function
|
|
1036
|
+
function va(t) {
|
|
1037
1037
|
const e = t.series[0], { x: i, y: a } = e, r = k(t.series) === F.PieFromFields, n = k(t.series) === F.BarAndLineFromFields;
|
|
1038
1038
|
let s, o = "", u;
|
|
1039
1039
|
if (t.orderOptions?.data !== void 0) {
|
|
1040
1040
|
const c = t.orderOptions.data && "preferLabel" in t.orderOptions.data ? t.orderOptions.data.preferLabel : !0;
|
|
1041
1041
|
if (o = t.orderOptions?.data?.orderType ?? De.Category, u = t.orderOptions?.data && "orderBy" in t.orderOptions.data ? t.orderOptions.data.orderBy : void 0, o === De.Category ? r ? o = ce : o = c ? i : gt.originalCategoryValue : o = r ? Ne : [a].flat()[0], o !== void 0 && o !== "") {
|
|
1042
1042
|
const l = ui(t);
|
|
1043
|
-
if (_(t.series) !==
|
|
1043
|
+
if (_(t.series) !== h.PieSeries && o !== i && t.series?.length > 1)
|
|
1044
1044
|
switch (l) {
|
|
1045
1045
|
case Te.Stacked:
|
|
1046
1046
|
o = C.technicalSortingFieldBySum;
|
|
@@ -1071,17 +1071,17 @@ function Pt(t) {
|
|
|
1071
1071
|
if (t?.series && t.series.length > 0) {
|
|
1072
1072
|
let a;
|
|
1073
1073
|
switch (i) {
|
|
1074
|
-
case
|
|
1074
|
+
case h.HeatSeries:
|
|
1075
1075
|
We(t) && (e = ci(t));
|
|
1076
1076
|
break;
|
|
1077
|
-
case
|
|
1078
|
-
de(t) && (a =
|
|
1077
|
+
case h.BoxPlotSeries:
|
|
1078
|
+
de(t) && (a = Ca(t));
|
|
1079
1079
|
break;
|
|
1080
|
-
case
|
|
1081
|
-
case
|
|
1082
|
-
case
|
|
1083
|
-
case
|
|
1084
|
-
a =
|
|
1080
|
+
case h.LineSeries:
|
|
1081
|
+
case h.BarSeries:
|
|
1082
|
+
case h.RadarSeries:
|
|
1083
|
+
case h.PieSeries:
|
|
1084
|
+
a = va(t);
|
|
1085
1085
|
break;
|
|
1086
1086
|
}
|
|
1087
1087
|
!e && a && (e = [], e.push(a));
|
|
@@ -1093,7 +1093,7 @@ function Yc(t) {
|
|
|
1093
1093
|
let s = !1, o = !1;
|
|
1094
1094
|
if (n !== F.BoxPlotMonoField && n !== F.BoxPlotMonoFieldAndSplitBy && i.orderOptions?.data !== void 0) {
|
|
1095
1095
|
const u = Pt(e), c = Pt(i);
|
|
1096
|
-
if (r ===
|
|
1096
|
+
if (r === h.HeatSeries) {
|
|
1097
1097
|
const l = u ? u[0] : void 0, d = c ? c[0] : void 0, f = u ? u[1] : void 0, m = c ? c[1] : void 0;
|
|
1098
1098
|
o = e?.orderOptions?.data?.orderType !== i.orderOptions?.data?.orderType || l?.sortingField !== d?.sortingField || l?.orderBy !== d?.orderBy || f?.sortingField !== m?.sortingField || f?.orderBy !== m?.orderBy, s = o || a;
|
|
1099
1099
|
} else {
|
|
@@ -1104,17 +1104,17 @@ function Yc(t) {
|
|
|
1104
1104
|
return s;
|
|
1105
1105
|
}
|
|
1106
1106
|
const Zc = {
|
|
1107
|
-
getPieChartChartSubType:
|
|
1108
|
-
getBarLineChartSubType:
|
|
1109
|
-
hasQueryChanged:
|
|
1110
|
-
hasFilterBySelectionChanged:
|
|
1111
|
-
hasBinTemporalDataChanged:
|
|
1112
|
-
hasGaugeValueConversionChanged:
|
|
1113
|
-
isNewDataRequiredForValueFormatChange:
|
|
1114
|
-
hasShowMeanChanged:
|
|
1115
|
-
hasHeatChartBinningChanged:
|
|
1116
|
-
getDataOrderParametersForBoxPlot:
|
|
1117
|
-
getDataOrderParametersForCommonChart:
|
|
1107
|
+
getPieChartChartSubType: fa,
|
|
1108
|
+
getBarLineChartSubType: ma,
|
|
1109
|
+
hasQueryChanged: ga,
|
|
1110
|
+
hasFilterBySelectionChanged: pa,
|
|
1111
|
+
hasBinTemporalDataChanged: ha,
|
|
1112
|
+
hasGaugeValueConversionChanged: ba,
|
|
1113
|
+
isNewDataRequiredForValueFormatChange: Sa,
|
|
1114
|
+
hasShowMeanChanged: Fa,
|
|
1115
|
+
hasHeatChartBinningChanged: xa,
|
|
1116
|
+
getDataOrderParametersForBoxPlot: Ca,
|
|
1117
|
+
getDataOrderParametersForCommonChart: va,
|
|
1118
1118
|
getDataOrderParametersForHeatChart: ci
|
|
1119
1119
|
};
|
|
1120
1120
|
function Dn(t) {
|
|
@@ -1136,7 +1136,7 @@ function Pi(t) {
|
|
|
1136
1136
|
const { originalCategoryValue: u, originalDateValue: c } = C;
|
|
1137
1137
|
if (i !== void 0) {
|
|
1138
1138
|
const l = n ? jn(i) : void 0;
|
|
1139
|
-
a !== void 0 && i[a] !== void 0 ? o = i[a] : l !== void 0 ? o = l : i[C.xAxisDisplayField] !== void 0 ? o = i[C.xAxisDisplayField] : i[C.xAxisField] !== void 0 ? o = i[C.xAxisField] : i[C.boxPlot.boxPlotCategory] !== void 0 ? o = i[C.boxPlot.boxPlotCategory] : i[c] !== void 0 ? o = i[c] : i[u] !== void 0 ? o = i[u] : i[ce] !== void 0 && (o = i[ce]), !r && (o === null || o === C.nullValue) && (s?.series?.[0].type ===
|
|
1139
|
+
a !== void 0 && i[a] !== void 0 ? o = i[a] : l !== void 0 ? o = l : i[C.xAxisDisplayField] !== void 0 ? o = i[C.xAxisDisplayField] : i[C.xAxisField] !== void 0 ? o = i[C.xAxisField] : i[C.boxPlot.boxPlotCategory] !== void 0 ? o = i[C.boxPlot.boxPlotCategory] : i[c] !== void 0 ? o = i[c] : i[u] !== void 0 ? o = i[u] : i[ce] !== void 0 && (o = i[ce]), !r && (o === null || o === C.nullValue) && (s?.series?.[0].type === h.BarSeries || s?.series?.[0].type === h.LineSeries ? o = s.series?.[0]?.nullCategory?.text ?? C.nullCategory?.text ?? "null" : o = "null");
|
|
1140
1140
|
}
|
|
1141
1141
|
return o;
|
|
1142
1142
|
}
|
|
@@ -1231,7 +1231,7 @@ function qn(t, e) {
|
|
|
1231
1231
|
let a = 0, r = 0, n = 0;
|
|
1232
1232
|
t.forEach((s) => {
|
|
1233
1233
|
const o = s[e];
|
|
1234
|
-
!
|
|
1234
|
+
!Pr(o) || o === 0 ? n += 1 : o > 0 ? a += 1 : r += 1;
|
|
1235
1235
|
}), i = n === t.length || a >= 0 && r === 0 || a === 0 && r >= 0;
|
|
1236
1236
|
}
|
|
1237
1237
|
return i;
|
|
@@ -1242,7 +1242,7 @@ function Tt(t) {
|
|
|
1242
1242
|
const n = [];
|
|
1243
1243
|
return typeof e == "number" && Number.isFinite(e) && n.push(e), typeof i == "number" && Number.isFinite(i) && n.push(i * a), n.length > 0 && (r = Math.min(...n)), r;
|
|
1244
1244
|
}
|
|
1245
|
-
function
|
|
1245
|
+
function Ba(t, e) {
|
|
1246
1246
|
let i;
|
|
1247
1247
|
const {
|
|
1248
1248
|
maxBarChartSeriesCount: a,
|
|
@@ -1259,44 +1259,44 @@ function Na(t, e) {
|
|
|
1259
1259
|
maxLineThreePlusSeriesCountTotal: y,
|
|
1260
1260
|
maxPieChartSliceCountTotal: p,
|
|
1261
1261
|
maxGaugeByFeaturesLimit: g
|
|
1262
|
-
} = ut(e),
|
|
1263
|
-
switch (
|
|
1264
|
-
case
|
|
1265
|
-
case
|
|
1266
|
-
|
|
1262
|
+
} = ut(e), S = _(t.series), b = t.series.length === 0 ? 1 : t.series.length, v = k(t.series);
|
|
1263
|
+
switch (S) {
|
|
1264
|
+
case h.ComboLineAndBarSeries:
|
|
1265
|
+
case h.BarSeries:
|
|
1266
|
+
b <= a && (b === 1 ? i = r : b === 2 ? i = Tt({
|
|
1267
1267
|
countTotal: s,
|
|
1268
1268
|
countPerSeries: n,
|
|
1269
|
-
numberOfSeries:
|
|
1270
|
-
}) :
|
|
1269
|
+
numberOfSeries: b
|
|
1270
|
+
}) : b > 2 && (i = Tt({
|
|
1271
1271
|
countTotal: u,
|
|
1272
1272
|
countPerSeries: o,
|
|
1273
|
-
numberOfSeries:
|
|
1273
|
+
numberOfSeries: b
|
|
1274
1274
|
})));
|
|
1275
1275
|
break;
|
|
1276
|
-
case
|
|
1277
|
-
|
|
1276
|
+
case h.LineSeries:
|
|
1277
|
+
b <= c && (b === 1 ? i = l : b === 2 ? i = Tt({
|
|
1278
1278
|
countTotal: f,
|
|
1279
1279
|
countPerSeries: d,
|
|
1280
|
-
numberOfSeries:
|
|
1281
|
-
}) :
|
|
1280
|
+
numberOfSeries: b
|
|
1281
|
+
}) : b > 2 && (i = Tt({
|
|
1282
1282
|
countTotal: y,
|
|
1283
1283
|
countPerSeries: m,
|
|
1284
|
-
numberOfSeries:
|
|
1284
|
+
numberOfSeries: b
|
|
1285
1285
|
})));
|
|
1286
1286
|
break;
|
|
1287
|
-
case
|
|
1287
|
+
case h.PieSeries:
|
|
1288
1288
|
i = p;
|
|
1289
1289
|
break;
|
|
1290
|
-
case
|
|
1290
|
+
case h.GaugeSeries:
|
|
1291
1291
|
i = g;
|
|
1292
1292
|
break;
|
|
1293
|
-
case
|
|
1293
|
+
case h.ScatterSeries:
|
|
1294
1294
|
// handled through the aggregation feature
|
|
1295
|
-
case
|
|
1295
|
+
case h.HistogramSeries:
|
|
1296
1296
|
// handled through the number of bins
|
|
1297
|
-
case
|
|
1297
|
+
case h.BoxPlotSeries:
|
|
1298
1298
|
}
|
|
1299
|
-
return (v === F.BarAndLineNoAggregation || v === F.BarAndLineMultiFields) && i !== void 0 && (i = Math.ceil(i /
|
|
1299
|
+
return (v === F.BarAndLineNoAggregation || v === F.BarAndLineMultiFields) && i !== void 0 && (i = Math.ceil(i / b)), i;
|
|
1300
1300
|
}
|
|
1301
1301
|
function Mi(t, e) {
|
|
1302
1302
|
let i = t;
|
|
@@ -1322,7 +1322,7 @@ function Xc(t) {
|
|
|
1322
1322
|
}
|
|
1323
1323
|
return e;
|
|
1324
1324
|
}
|
|
1325
|
-
function
|
|
1325
|
+
function Na(t) {
|
|
1326
1326
|
const { stringToTruncate: e, characterLimit: i, ellipsis: a = C.chartEllipsis } = t;
|
|
1327
1327
|
let r = e;
|
|
1328
1328
|
return typeof i == "number" && Number.isFinite(i) && i > 0 && i < e.length && (r = e.slice(0, i), r = `${r}${a}`), r;
|
|
@@ -1333,7 +1333,7 @@ function Jc(t) {
|
|
|
1333
1333
|
if (i > 0 && e.length > i) {
|
|
1334
1334
|
const r = e.lastIndexOf(" ", i), n = e.lastIndexOf("-", i), s = Math.max(r, n), o = s === n && n > 0, u = s > 0 ? s + (o ? 1 : 0) : i, c = Math.min(i, u), l = e.slice(0, c).trimEnd();
|
|
1335
1335
|
let d = e.slice(c).trimStart();
|
|
1336
|
-
d.length > i && (d =
|
|
1336
|
+
d.length > i && (d = Na({
|
|
1337
1337
|
stringToTruncate: d,
|
|
1338
1338
|
characterLimit: Math.max(1, i - 1)
|
|
1339
1339
|
})), a = `${l}
|
|
@@ -1347,7 +1347,7 @@ function Kc(t, e = ":") {
|
|
|
1347
1347
|
function ed(t) {
|
|
1348
1348
|
return (i) => {
|
|
1349
1349
|
let a = typeof i != "string" ? i?.toString() ?? "" : i;
|
|
1350
|
-
return !oe(a) && a !== C.htmlEmptyContent && (a =
|
|
1350
|
+
return !oe(a) && a !== C.htmlEmptyContent && (a = Na({
|
|
1351
1351
|
stringToTruncate: a,
|
|
1352
1352
|
characterLimit: t
|
|
1353
1353
|
})), a;
|
|
@@ -1370,7 +1370,7 @@ function td(t) {
|
|
|
1370
1370
|
let u = i ?? e?.text ?? "";
|
|
1371
1371
|
if (a === "html") {
|
|
1372
1372
|
let { wrap: c, maxWidth: l } = n ?? {};
|
|
1373
|
-
r ===
|
|
1373
|
+
r === Fr.Wrap && (c = !0, l = l ?? C.xAxisLabelMaxWidth);
|
|
1374
1374
|
const d = c === !0 && Number.isFinite(l) ? `max-width: ${l}px; word-break: break-word;` : "";
|
|
1375
1375
|
u = `<p style="margin:0;${s}${o}${d}">${u}</p>`;
|
|
1376
1376
|
} else
|
|
@@ -1381,12 +1381,12 @@ function Qn(t) {
|
|
|
1381
1381
|
return t ? t.replace(/[A-Z]/gu, (e) => `-${e.toLowerCase()}`) : void 0;
|
|
1382
1382
|
}
|
|
1383
1383
|
const id = [
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1384
|
+
h.BarSeries,
|
|
1385
|
+
h.BoxPlotSeries,
|
|
1386
|
+
h.LineSeries,
|
|
1387
|
+
h.PieSeries,
|
|
1388
|
+
h.HistogramSeries,
|
|
1389
|
+
h.ScatterSeries
|
|
1390
1390
|
], ad = 1, rd = { PNG: "png" }, tt = {
|
|
1391
1391
|
ChartRenderer: 1,
|
|
1392
1392
|
LayerRenderer: 2
|
|
@@ -1403,19 +1403,19 @@ function nd(t) {
|
|
|
1403
1403
|
}), l = z(i)?.renderer;
|
|
1404
1404
|
switch (l?.type) {
|
|
1405
1405
|
case se.Simple:
|
|
1406
|
-
a = n ===
|
|
1406
|
+
a = n === h.HistogramSeries || n === h.ScatterSeries || s === F.BarAndLineMonoField || s === F.BoxPlotMonoField || s === F.BoxPlotMultiFields || s === F.BoxPlotMonoFieldAndCategory || s === F.BarAndLineNoAggregation && r.length === 1 && !u;
|
|
1407
1407
|
break;
|
|
1408
1408
|
case se.UniqueValue:
|
|
1409
1409
|
{
|
|
1410
1410
|
const f = l?.field, m = te(o.query?.where), { x: y } = o;
|
|
1411
|
-
a = (s === F.BoxPlotMonoFieldAndSplitBy || s === F.BoxPlotMultiFieldsAndSplitBy || s === F.BoxPlotMonoFieldAndCategoryAndSplitBy || s === F.BarAndLineSplitByNoAggregation || s === F.BarAndLineSplitBy) && f === m || (s === F.BoxPlotMonoFieldAndCategory || s === F.PieFromCategory || s === F.BarAndLineMonoField) && f === y || s === F.BarAndLineNoAggregation || s === F.PieNoAggregation || n ===
|
|
1411
|
+
a = (s === F.BoxPlotMonoFieldAndSplitBy || s === F.BoxPlotMultiFieldsAndSplitBy || s === F.BoxPlotMonoFieldAndCategoryAndSplitBy || s === F.BarAndLineSplitByNoAggregation || s === F.BarAndLineSplitBy) && f === m || (s === F.BoxPlotMonoFieldAndCategory || s === F.PieFromCategory || s === F.BarAndLineMonoField) && f === y || s === F.BarAndLineNoAggregation || s === F.PieNoAggregation || n === h.ScatterSeries;
|
|
1412
1412
|
}
|
|
1413
1413
|
break;
|
|
1414
1414
|
case se.PieChart:
|
|
1415
1415
|
a = s === F.PieFromFields || s === F.BarAndLineFromFields || s === F.BarAndLineMultiFields || s === F.BarAndLineMonoField || s === F.BoxPlotMonoField || s === F.BoxPlotMultiFields || s === F.BoxPlotMonoFieldAndCategory || s === F.BoxPlotMultiFieldsAndCategory;
|
|
1416
1416
|
break;
|
|
1417
1417
|
case se.ClassBreaks:
|
|
1418
|
-
a = n ===
|
|
1418
|
+
a = n === h.HeatSeries || n === h.ScatterSeries || s === F.BarAndLineNoAggregation || s === F.PieNoAggregation;
|
|
1419
1419
|
break;
|
|
1420
1420
|
case se.Dictionary:
|
|
1421
1421
|
case se.DotDensity:
|
|
@@ -1443,7 +1443,7 @@ function jn(t) {
|
|
|
1443
1443
|
function Hn(t) {
|
|
1444
1444
|
return t?.type !== void 0 && (t.color !== void 0 || t.label !== void 0 || t.style !== void 0 || t.outline !== void 0);
|
|
1445
1445
|
}
|
|
1446
|
-
function
|
|
1446
|
+
function Ta(t) {
|
|
1447
1447
|
const { symbolField: e, dataItem: i, rendererSymbol: a, rendererOrigin: r } = t;
|
|
1448
1448
|
let n = !1;
|
|
1449
1449
|
if (!Hn(a))
|
|
@@ -1464,30 +1464,30 @@ function zn(t) {
|
|
|
1464
1464
|
const { color: m, label: y } = d;
|
|
1465
1465
|
let p;
|
|
1466
1466
|
Array.isArray(m) && m?.length === 4 ? p = m : m && "toRgba" in m && (p = m.toRgba());
|
|
1467
|
-
let g = !1,
|
|
1467
|
+
let g = !1, S = !0;
|
|
1468
1468
|
switch (u) {
|
|
1469
|
-
case
|
|
1470
|
-
case
|
|
1471
|
-
case
|
|
1472
|
-
case
|
|
1469
|
+
case h.BarSeries:
|
|
1470
|
+
case h.LineSeries:
|
|
1471
|
+
case h.ComboLineAndBarSeries:
|
|
1472
|
+
case h.RadarSeries:
|
|
1473
1473
|
if (a !== F.BarAndLineFromFields) {
|
|
1474
|
-
const
|
|
1475
|
-
|
|
1474
|
+
const b = i.find((v) => v.query?.outStatistics?.[0]?.onStatisticField === f);
|
|
1475
|
+
b !== void 0 && "y" in b ? f = [b.y].flat()[0] : f = "";
|
|
1476
1476
|
}
|
|
1477
1477
|
g = a !== F.BarAndLineFromFields || f === r[C.originalCategoryValue];
|
|
1478
1478
|
break;
|
|
1479
|
-
case
|
|
1479
|
+
case h.PieSeries:
|
|
1480
1480
|
g = a === F.PieFromFields && f === r[C.originalCategoryValue];
|
|
1481
1481
|
break;
|
|
1482
|
-
case
|
|
1483
|
-
a === F.BoxPlotMonoField || a === F.BoxPlotMonoFieldAndCategory ? g = f === i[0].y : f && (a === F.BoxPlotMultiFields || a === F.BoxPlotMultiFieldsAndCategory) && (g = i.map((v) => v.y).flat().includes(f)),
|
|
1482
|
+
case h.BoxPlotSeries:
|
|
1483
|
+
a === F.BoxPlotMonoField || a === F.BoxPlotMonoFieldAndCategory ? g = f === i[0].y : f && (a === F.BoxPlotMultiFields || a === F.BoxPlotMultiFieldsAndCategory) && (g = i.map((v) => v.y).flat().includes(f)), S = !1;
|
|
1484
1484
|
break;
|
|
1485
1485
|
}
|
|
1486
1486
|
g && p && (s = {
|
|
1487
1487
|
type: _e.SMS,
|
|
1488
1488
|
color: p,
|
|
1489
|
-
label:
|
|
1490
|
-
}, c != null && (s.outline = c),
|
|
1489
|
+
label: S && y ? y : void 0
|
|
1490
|
+
}, c != null && (s.outline = c), Ta({
|
|
1491
1491
|
dataItem: r,
|
|
1492
1492
|
symbolField: a === F.BarAndLineFromFields || a === F.PieFromFields ? C.rendererSymbolField : `${C.rendererSymbolField}_${f}`,
|
|
1493
1493
|
rendererSymbol: s,
|
|
@@ -1523,14 +1523,14 @@ function Wn(t) {
|
|
|
1523
1523
|
}
|
|
1524
1524
|
return n;
|
|
1525
1525
|
}
|
|
1526
|
-
function
|
|
1526
|
+
function Aa(t) {
|
|
1527
1527
|
const { seriesConfig: e, chartSubType: i, rendererType: a, dataItem: r } = t;
|
|
1528
1528
|
let n = Wn({
|
|
1529
1529
|
seriesConfig: e,
|
|
1530
1530
|
chartSubType: i,
|
|
1531
1531
|
rendererType: a
|
|
1532
1532
|
});
|
|
1533
|
-
return n instanceof Array && e.type ===
|
|
1533
|
+
return n instanceof Array && e.type === h.BoxPlotSeries && a === se.PieChart && r !== void 0 && (n = n.find((s) => s === r[qt]) ?? n[0]), n = n !== C.rendererSymbolField ? `${C.rendererSymbolField}_${n.toString()}` : n, n;
|
|
1534
1534
|
}
|
|
1535
1535
|
function Gn(t) {
|
|
1536
1536
|
const { chartRenderer: e, queryObject: i } = t, a = e !== void 0 ? {
|
|
@@ -1539,7 +1539,7 @@ function Gn(t) {
|
|
|
1539
1539
|
...z(i),
|
|
1540
1540
|
renderer: Xi.fromJSON(e)
|
|
1541
1541
|
} : z(i);
|
|
1542
|
-
return new
|
|
1542
|
+
return new Or({
|
|
1543
1543
|
layer: a
|
|
1544
1544
|
});
|
|
1545
1545
|
}
|
|
@@ -1569,13 +1569,13 @@ async function Un(t) {
|
|
|
1569
1569
|
} else if (i?.[Kt.defaultGroupOfSlicesId] !== !0) {
|
|
1570
1570
|
const { x: m } = e[0], y = /* @__PURE__ */ new Map();
|
|
1571
1571
|
o && o.trim() !== "" ? e.forEach((p) => {
|
|
1572
|
-
if (p.type ===
|
|
1573
|
-
const g =
|
|
1572
|
+
if (p.type === h.BarSeries || p.type === h.LineSeries || p.type === h.BoxPlotSeries || p.type === h.RadarSeries) {
|
|
1573
|
+
const g = Aa({
|
|
1574
1574
|
seriesConfig: p,
|
|
1575
1575
|
chartSubType: s,
|
|
1576
1576
|
rendererType: r,
|
|
1577
1577
|
dataItem: i
|
|
1578
|
-
}),
|
|
1578
|
+
}), S = fe({
|
|
1579
1579
|
where: p.query?.where,
|
|
1580
1580
|
normalize: !0,
|
|
1581
1581
|
keepSurroundingQuotes: !1,
|
|
@@ -1583,13 +1583,13 @@ async function Un(t) {
|
|
|
1583
1583
|
});
|
|
1584
1584
|
y.set(g, {
|
|
1585
1585
|
...i,
|
|
1586
|
-
[o]:
|
|
1586
|
+
[o]: S
|
|
1587
1587
|
});
|
|
1588
1588
|
}
|
|
1589
|
-
}) : e[0].type ===
|
|
1589
|
+
}) : e[0].type === h.HeatSeries && r === se.ClassBreaks ? y.set(C.rendererSymbolField, {
|
|
1590
1590
|
[Q.valueField]: i[Q.valueField]
|
|
1591
1591
|
}) : y.set(
|
|
1592
|
-
_(e) ===
|
|
1592
|
+
_(e) === h.HistogramSeries ? C.rendererSymbolFieldForHistogram : C.rendererSymbolField,
|
|
1593
1593
|
{
|
|
1594
1594
|
...i,
|
|
1595
1595
|
[m]: On(i)
|
|
@@ -1598,18 +1598,18 @@ async function Un(t) {
|
|
|
1598
1598
|
try {
|
|
1599
1599
|
const p = Array.from(y.entries()), g = u.clone();
|
|
1600
1600
|
g.layer = u.layer;
|
|
1601
|
-
const
|
|
1602
|
-
for (let
|
|
1603
|
-
const [v,
|
|
1601
|
+
const S = a?.uniqueValueInfos;
|
|
1602
|
+
for (let b = 0; b < p.length; b += 1) {
|
|
1603
|
+
const [v, x] = p[b];
|
|
1604
1604
|
if (Di({
|
|
1605
1605
|
mode: "encode",
|
|
1606
1606
|
x: m,
|
|
1607
1607
|
splitByField: o,
|
|
1608
|
-
attributes:
|
|
1609
|
-
}), c && c.length > 0 && Object.keys(
|
|
1610
|
-
c.includes(N) || delete
|
|
1611
|
-
}), g.attributes =
|
|
1612
|
-
d = l.get(JSON.stringify(
|
|
1608
|
+
attributes: x
|
|
1609
|
+
}), c && c.length > 0 && Object.keys(x).forEach((N) => {
|
|
1610
|
+
c.includes(N) || delete x[N];
|
|
1611
|
+
}), g.attributes = x, l?.has(JSON.stringify(x)))
|
|
1612
|
+
d = l.get(JSON.stringify(x));
|
|
1613
1613
|
else {
|
|
1614
1614
|
if (d = (await Wt.getDisplayedSymbol(g))?.toJSON(), d != null) {
|
|
1615
1615
|
if (d.color === void 0) {
|
|
@@ -1617,16 +1617,16 @@ async function Un(t) {
|
|
|
1617
1617
|
T && (d.color = T.length === 4 ? T : [...T, 255]);
|
|
1618
1618
|
}
|
|
1619
1619
|
const N = await Wt.getLegendLabel(g);
|
|
1620
|
-
N != null && N !== "" && (d.label = N, d.uniqueValue =
|
|
1620
|
+
N != null && N !== "" && (d.label = N, d.uniqueValue = S?.find((T) => T.label === N)?.value ?? void 0);
|
|
1621
1621
|
}
|
|
1622
|
-
l?.set(JSON.stringify(
|
|
1622
|
+
l?.set(JSON.stringify(x), d);
|
|
1623
1623
|
}
|
|
1624
1624
|
Di({
|
|
1625
1625
|
mode: "revert",
|
|
1626
1626
|
x: m,
|
|
1627
1627
|
splitByField: o,
|
|
1628
1628
|
attributes: i
|
|
1629
|
-
}),
|
|
1629
|
+
}), Ta({
|
|
1630
1630
|
dataItem: i,
|
|
1631
1631
|
symbolField: v,
|
|
1632
1632
|
rendererSymbol: d,
|
|
@@ -1648,7 +1648,7 @@ function Yn(t) {
|
|
|
1648
1648
|
const { dataItem: e, seriesConfig: i, chartSubType: a, colorMatch: r, rendererType: n } = t;
|
|
1649
1649
|
let s;
|
|
1650
1650
|
if (r && e !== void 0) {
|
|
1651
|
-
const o =
|
|
1651
|
+
const o = Aa({
|
|
1652
1652
|
seriesConfig: i,
|
|
1653
1653
|
chartSubType: a,
|
|
1654
1654
|
rendererType: n,
|
|
@@ -1713,7 +1713,7 @@ function Kn(t, e) {
|
|
|
1713
1713
|
function ld(t, e) {
|
|
1714
1714
|
let i = !0;
|
|
1715
1715
|
const a = _(t?.series), r = _(e?.series);
|
|
1716
|
-
return a && a !== r && (i = a ===
|
|
1716
|
+
return a && a !== r && (i = a === h.ComboLineAndBarSeries && (r === h.BarSeries || r === h.LineSeries) || r === h.ComboLineAndBarSeries && (a === h.BarSeries || a === h.LineSeries) || a === h.BarSeries && r === h.LineSeries || a === h.LineSeries && r === h.BarSeries), i;
|
|
1717
1717
|
}
|
|
1718
1718
|
function ei(t, e) {
|
|
1719
1719
|
return t !== void 0 && e !== void 0 && e > 0;
|
|
@@ -1725,7 +1725,7 @@ function ud(t) {
|
|
|
1725
1725
|
return r = e.series.map((c, l) => {
|
|
1726
1726
|
const d = _([c]);
|
|
1727
1727
|
let f;
|
|
1728
|
-
return (d ===
|
|
1728
|
+
return (d === h.BarSeries || d === h.LineSeries || d === h.RadarSeries) && (c.type === h.BarSeries ? f = c.fillSymbol?.color : (c.type === h.RadarSeries || c.type === h.LineSeries) && (f = c.lineSymbol?.color), s ? f = Yn({
|
|
1729
1729
|
dataItem: a[0],
|
|
1730
1730
|
seriesConfig: c,
|
|
1731
1731
|
chartSubType: n,
|
|
@@ -1754,7 +1754,7 @@ function is(t, e) {
|
|
|
1754
1754
|
const i = me.now().offset / 60, a = me.now().setZone(t) ?? i, r = a.offset / 60, n = e ? a.setZone(e).offset / 60 : 0;
|
|
1755
1755
|
return r - n;
|
|
1756
1756
|
}
|
|
1757
|
-
function
|
|
1757
|
+
function wa(t) {
|
|
1758
1758
|
const {
|
|
1759
1759
|
outTimeZone: e = Intl.DateTimeFormat().resolvedOptions().timeZone,
|
|
1760
1760
|
dataTimeZone: i = "UTC",
|
|
@@ -1771,7 +1771,7 @@ function La(t) {
|
|
|
1771
1771
|
return r;
|
|
1772
1772
|
}
|
|
1773
1773
|
function as(t) {
|
|
1774
|
-
const { dateFieldName: e, unit: i, runsOnClientQueryEngine: a, outTimeZone: r } = t, n =
|
|
1774
|
+
const { dateFieldName: e, unit: i, runsOnClientQueryEngine: a, outTimeZone: r } = t, n = wa({ runsOnClientQueryEngine: a, outTimeZone: r }), s = `EXTRACT(YEAR FROM ${e} ${n})`, o = `EXTRACT(MONTH FROM ${e} ${n})`, u = `EXTRACT(DAY FROM ${e} ${n})`, c = `EXTRACT(HOUR FROM ${e} ${n})`, l = `EXTRACT(MINUTE FROM ${e} ${n})`, d = `EXTRACT(SECOND FROM ${e} ${n})`;
|
|
1775
1775
|
let f = [];
|
|
1776
1776
|
switch (i) {
|
|
1777
1777
|
case R.Second:
|
|
@@ -1922,10 +1922,10 @@ function cs(t) {
|
|
|
1922
1922
|
]);
|
|
1923
1923
|
}
|
|
1924
1924
|
}
|
|
1925
|
-
function
|
|
1925
|
+
function La(t) {
|
|
1926
1926
|
const { chartConfig: e, uniqueQuery: i, chartLimits: a } = t;
|
|
1927
1927
|
if (a?.behaviorAfterLimit === lt.RenderUpToTheLimit) {
|
|
1928
|
-
const r =
|
|
1928
|
+
const r = Ba(e, a);
|
|
1929
1929
|
if (r !== void 0) {
|
|
1930
1930
|
const n = k(e.series);
|
|
1931
1931
|
if (n === F.PieFromFields || n === F.BarAndLineFromFields) {
|
|
@@ -1954,26 +1954,26 @@ function mi(t) {
|
|
|
1954
1954
|
seriesConfig: d,
|
|
1955
1955
|
queryObject: a
|
|
1956
1956
|
});
|
|
1957
|
-
let g = /* @__PURE__ */ new Map(),
|
|
1957
|
+
let g = /* @__PURE__ */ new Map(), S = !1, b = !1, v = !1, x = !1, B = !1, N = {};
|
|
1958
1958
|
if (f !== void 0) {
|
|
1959
1959
|
N = He(f);
|
|
1960
1960
|
const $ = te(f.where);
|
|
1961
1961
|
let M = "";
|
|
1962
1962
|
switch (i.fetchNullValues !== !0 && (m !== C.boxPlot.boxPlotCategory && (M = `${m} IS NOT NULL`), $.trim() !== "" && $ !== m && !Ie(f.where) && (M = Y([M, `${$} IS NOT NULL`]))), l) {
|
|
1963
1963
|
case F.BarAndLineSplitBy: {
|
|
1964
|
-
g = ns(c),
|
|
1964
|
+
g = ns(c), x = !0, S = !0, b = !0;
|
|
1965
1965
|
break;
|
|
1966
1966
|
}
|
|
1967
1967
|
case F.BarAndLineMultiFields:
|
|
1968
|
-
us(N, c),
|
|
1968
|
+
us(N, c), b = !0;
|
|
1969
1969
|
break;
|
|
1970
1970
|
case F.PieFromFields:
|
|
1971
1971
|
case F.BarAndLineFromFields:
|
|
1972
|
-
M = "", v = !0,
|
|
1972
|
+
M = "", v = !0, b = !0;
|
|
1973
1973
|
break;
|
|
1974
1974
|
case F.BarAndLineMonoField:
|
|
1975
1975
|
case F.PieFromCategory:
|
|
1976
|
-
|
|
1976
|
+
b = !0;
|
|
1977
1977
|
break;
|
|
1978
1978
|
case F.BoxPlotMonoField:
|
|
1979
1979
|
case F.BoxPlotMultiFields:
|
|
@@ -1984,23 +1984,23 @@ function mi(t) {
|
|
|
1984
1984
|
case F.BoxPlotMonoFieldAndSplitBy:
|
|
1985
1985
|
case F.BoxPlotMonoFieldAndCategoryAndSplitBy:
|
|
1986
1986
|
case F.BoxPlotMultiFieldsAndSplitBy: {
|
|
1987
|
-
B = !0,
|
|
1987
|
+
B = !0, x = !0, v = !0;
|
|
1988
1988
|
break;
|
|
1989
1989
|
}
|
|
1990
1990
|
case F.PieNoAggregation:
|
|
1991
1991
|
case F.BarAndLineNoAggregation:
|
|
1992
1992
|
case F.BarAndLineSplitByNoAggregation:
|
|
1993
1993
|
}
|
|
1994
|
-
if (
|
|
1994
|
+
if (b && os({
|
|
1995
1995
|
uniqueQuery: N,
|
|
1996
1996
|
y,
|
|
1997
|
-
useGenericOutStatFieldName:
|
|
1997
|
+
useGenericOutStatFieldName: S,
|
|
1998
1998
|
queryObject: a,
|
|
1999
1999
|
chartSubType: l,
|
|
2000
2000
|
isTimeBinningSeries: p,
|
|
2001
2001
|
returnFeaturesExtent: o,
|
|
2002
2002
|
splitByField: $
|
|
2003
|
-
}),
|
|
2003
|
+
}), x && ss({ uniqueQuery: N, splitByField: $, x: m }), de(e) && B && (N.outStatistics = ls({ chartConfig: e, fetchFullBoxPlotData: s })), v ? delete N.orderByFields : i.orderByFields !== void 0 && (N.orderByFields = i.orderByFields.filter((q) => {
|
|
2004
2004
|
const G = q.split(" ");
|
|
2005
2005
|
return !oe(G[0]);
|
|
2006
2006
|
})), p && be(c[0])) {
|
|
@@ -2017,9 +2017,9 @@ function mi(t) {
|
|
|
2017
2017
|
}
|
|
2018
2018
|
N.where = M;
|
|
2019
2019
|
}
|
|
2020
|
-
|
|
2021
|
-
const { gdbVersion: T, geometry: w, distance:
|
|
2022
|
-
return T !== void 0 && (N.gdbVersion = T), w !== void 0 && (N.geometry = w),
|
|
2020
|
+
La({ chartConfig: e, uniqueQuery: N, chartLimits: u });
|
|
2021
|
+
const { gdbVersion: T, geometry: w, distance: L, units: A, timeExtent: I, where: P, objectIds: O, spatialRelationship: V } = i;
|
|
2022
|
+
return T !== void 0 && (N.gdbVersion = T), w !== void 0 && (N.geometry = w), L !== void 0 && (N.distance = L), A !== void 0 && (N.units = A), I !== void 0 && (N.timeExtent = I), O !== void 0 && (N.objectIds = O), V !== void 0 && (N.spatialRelationship = V), P !== void 0 && (N.where = Y([N.where, P])), { uniqueQuery: N, mapToStatField: g };
|
|
2023
2023
|
}
|
|
2024
2024
|
const le = {
|
|
2025
2025
|
Default: "defaultError",
|
|
@@ -2076,49 +2076,49 @@ function fs(t) {
|
|
|
2076
2076
|
return e;
|
|
2077
2077
|
}
|
|
2078
2078
|
async function ms(t) {
|
|
2079
|
-
const { queryConfig: e, chartConfig: i, queryObject: a, abortKey: r, abortSignal: n,
|
|
2080
|
-
if (!ie(
|
|
2079
|
+
const { queryConfig: e, chartConfig: i, queryObject: a, abortKey: r, abortSignal: n, filterByViewExtent: s, view: o } = t, u = i.series[0], { x: c, dataTransformationType: l, binCount: d } = u, f = z(a);
|
|
2080
|
+
if (!ie(f))
|
|
2081
2081
|
throw new re(le.LayerNotSupported);
|
|
2082
|
-
|
|
2083
|
-
const
|
|
2084
|
-
if (!
|
|
2082
|
+
f.loaded || await f.load({ signal: n });
|
|
2083
|
+
const m = await ct(f, n);
|
|
2084
|
+
if (!m)
|
|
2085
2085
|
throw new Error("Raster info is not available for the layer.");
|
|
2086
|
-
const
|
|
2087
|
-
let
|
|
2088
|
-
if (s
|
|
2089
|
-
|
|
2086
|
+
const y = dt(e.geometry) ?? f.fullExtent, p = m.bandCount === 1 ? 0 : m.bandInfos.findIndex((b) => b.name === c);
|
|
2087
|
+
let g, S;
|
|
2088
|
+
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)
|
|
2089
|
+
g = m.histograms[p], S = m.statistics[p];
|
|
2090
2090
|
else {
|
|
2091
|
-
let
|
|
2092
|
-
if (
|
|
2093
|
-
|
|
2091
|
+
let b, v, x;
|
|
2092
|
+
if (o)
|
|
2093
|
+
b = o.resolution, v = o.resolution, x = o.spatialReference;
|
|
2094
2094
|
else {
|
|
2095
|
-
const
|
|
2095
|
+
const w = ds, L = 2, A = m.width, I = m.height, P = Math.max(
|
|
2096
2096
|
0,
|
|
2097
|
-
Math.ceil(Math.log(Math.max(
|
|
2098
|
-
),
|
|
2099
|
-
|
|
2097
|
+
Math.ceil(Math.log(Math.max(A, I) / w) / Math.log(L))
|
|
2098
|
+
), O = L ** P;
|
|
2099
|
+
b = m.pixelSize.x * O, v = m.pixelSize.y * O, x = f.spatialReference;
|
|
2100
2100
|
}
|
|
2101
|
-
const
|
|
2102
|
-
x:
|
|
2103
|
-
y:
|
|
2104
|
-
spatialReference:
|
|
2105
|
-
}),
|
|
2106
|
-
|
|
2101
|
+
const B = new la({
|
|
2102
|
+
x: b,
|
|
2103
|
+
y: v,
|
|
2104
|
+
spatialReference: x
|
|
2105
|
+
}), N = fs(l), T = await Wr(
|
|
2106
|
+
f,
|
|
2107
2107
|
{
|
|
2108
|
-
bandIds: [
|
|
2109
|
-
geometry:
|
|
2110
|
-
histogramSize:
|
|
2111
|
-
pixelSize:
|
|
2112
|
-
transformType:
|
|
2108
|
+
bandIds: [p],
|
|
2109
|
+
geometry: y,
|
|
2110
|
+
histogramSize: d ?? void 0,
|
|
2111
|
+
pixelSize: B,
|
|
2112
|
+
transformType: N,
|
|
2113
2113
|
downsampleOnly: !0
|
|
2114
2114
|
},
|
|
2115
2115
|
{
|
|
2116
2116
|
signal: n ?? (r !== void 0 ? Ge.get(r)?.signal : void 0)
|
|
2117
2117
|
}
|
|
2118
2118
|
);
|
|
2119
|
-
|
|
2119
|
+
S = T.statistics[0], g = T.histograms[0];
|
|
2120
2120
|
}
|
|
2121
|
-
return { histogram:
|
|
2121
|
+
return { histogram: g, statistics: S };
|
|
2122
2122
|
}
|
|
2123
2123
|
function ys(t, e) {
|
|
2124
2124
|
const i = [], a = (t.max - t.min) / t.size;
|
|
@@ -2293,15 +2293,15 @@ async function Cs(t) {
|
|
|
2293
2293
|
let m;
|
|
2294
2294
|
const y = z(e), p = ge(y);
|
|
2295
2295
|
if (p) {
|
|
2296
|
-
const
|
|
2296
|
+
const S = { where: Y([u, p.definitionExpression]) }, b = { query: S, signal: o }, v = dt(c)?.extent?.toJSON();
|
|
2297
2297
|
if (v !== void 0) {
|
|
2298
|
-
const B = xs(d), { xmin: N, ymin: T, xmax: w, ymax:
|
|
2299
|
-
|
|
2298
|
+
const B = xs(d), { xmin: N, ymin: T, xmax: w, ymax: L } = v;
|
|
2299
|
+
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
2300
|
}
|
|
2301
|
-
f && (
|
|
2302
|
-
const
|
|
2301
|
+
f && (S.time = `${f[0]},${f[1]}`);
|
|
2302
|
+
const x = `${p.url}/${p.layerId}/queryAnalytic?f=${a}&dataFormat=${r}&outAnalytics=${n}`;
|
|
2303
2303
|
try {
|
|
2304
|
-
m = (await wt(
|
|
2304
|
+
m = (await wt(x, b)).data?.features?.[0]?.attributes;
|
|
2305
2305
|
} catch (B) {
|
|
2306
2306
|
const N = s ?? (await ft(
|
|
2307
2307
|
ze(document.documentElement).t9nLocale,
|
|
@@ -2313,7 +2313,7 @@ async function Cs(t) {
|
|
|
2313
2313
|
}
|
|
2314
2314
|
return m;
|
|
2315
2315
|
}
|
|
2316
|
-
function
|
|
2316
|
+
function Pa(t, e) {
|
|
2317
2317
|
return {
|
|
2318
2318
|
lowerBoundaryAlias: `charts_lower_boundary_${t}`,
|
|
2319
2319
|
upperBoundaryAlias: `charts_upper_boundary_${t}`,
|
|
@@ -2325,7 +2325,7 @@ async function vs(t) {
|
|
|
2325
2325
|
let u;
|
|
2326
2326
|
const c = z(i), l = mn(c);
|
|
2327
2327
|
if (l && i && "queryAttributeBins" in i) {
|
|
2328
|
-
const { x: d, y: f, xTemporalBinning: m, yTemporalBinning: y } = e.series[0], { outTimeZone: p, firstDayOfWeek: g, includeLeapDay:
|
|
2328
|
+
const { x: d, y: f, xTemporalBinning: m, yTemporalBinning: y } = e.series[0], { outTimeZone: p, firstDayOfWeek: g, includeLeapDay: S } = e, b = So({
|
|
2329
2329
|
queryObject: i,
|
|
2330
2330
|
queryConfig: a,
|
|
2331
2331
|
x: d,
|
|
@@ -2334,12 +2334,12 @@ async function vs(t) {
|
|
|
2334
2334
|
yTemporalBinning: y,
|
|
2335
2335
|
configTimeZone: p,
|
|
2336
2336
|
firstDayOfWeek: g,
|
|
2337
|
-
includeLeapDay:
|
|
2337
|
+
includeLeapDay: S,
|
|
2338
2338
|
view: r,
|
|
2339
2339
|
syncViewTimeZone: n
|
|
2340
2340
|
});
|
|
2341
2341
|
try {
|
|
2342
|
-
u = await i.queryAttributeBins(
|
|
2342
|
+
u = await i.queryAttributeBins(b, { signal: o });
|
|
2343
2343
|
} catch (v) {
|
|
2344
2344
|
throw new re(le.QueryFeaturesError, s.errors.queryError, v);
|
|
2345
2345
|
}
|
|
@@ -2444,7 +2444,7 @@ async function bt(t) {
|
|
|
2444
2444
|
}
|
|
2445
2445
|
return o;
|
|
2446
2446
|
}
|
|
2447
|
-
async function
|
|
2447
|
+
async function Ma(t) {
|
|
2448
2448
|
const { queryObject: e, queryConfig: i, returnUniqueIdsOnly: a, abortKey: r, errorStrings: n, abortSignal: s } = t;
|
|
2449
2449
|
let o = [];
|
|
2450
2450
|
const u = z(e), c = s || (r !== void 0 ? Ge.get(r)?.signal : void 0), l = bo(u), d = pi({
|
|
@@ -2485,17 +2485,17 @@ async function As(t) {
|
|
|
2485
2485
|
...r,
|
|
2486
2486
|
start: u,
|
|
2487
2487
|
num: Math.min(a, i - u)
|
|
2488
|
-
}, e.push(
|
|
2488
|
+
}, e.push(Ma({ ...l, abortSignal: n })), u += a, o += 1;
|
|
2489
2489
|
}
|
|
2490
2490
|
return s = (await Promise.all(e)).flat(), s;
|
|
2491
2491
|
}
|
|
2492
2492
|
async function Fe(t) {
|
|
2493
2493
|
const { queryObject: e, queryConfig: i, returnUniqueIdsOnly: a, featureCount: r, noBatch: n, errorStrings: s, abortKey: o, abortSignal: u } = t;
|
|
2494
2494
|
let c = [];
|
|
2495
|
-
const l = z(e), d = r ?? 1, f =
|
|
2495
|
+
const l = z(e), d = r ?? 1, f = ja(l);
|
|
2496
2496
|
if (n !== !0 && d > f && l?.capabilities?.query.supportsPagination) {
|
|
2497
2497
|
let m = 0, y = 0;
|
|
2498
|
-
const p = Math.ceil(d / f), g = Math.ceil(p / W.maxParallelRequests),
|
|
2498
|
+
const p = Math.ceil(d / f), g = Math.ceil(p / W.maxParallelRequests), S = [];
|
|
2499
2499
|
for (; y < g; ) {
|
|
2500
2500
|
m = y * W.maxParallelRequests * f;
|
|
2501
2501
|
const v = As({
|
|
@@ -2508,10 +2508,10 @@ async function Fe(t) {
|
|
|
2508
2508
|
abortKey: o,
|
|
2509
2509
|
abortSignal: u
|
|
2510
2510
|
});
|
|
2511
|
-
|
|
2511
|
+
S.push(v), y += 1;
|
|
2512
2512
|
}
|
|
2513
|
-
c = (await Promise.all(
|
|
2514
|
-
} else (Number.isNaN(d) || d >= 0) && (c = await
|
|
2513
|
+
c = (await Promise.all(S)).flat();
|
|
2514
|
+
} else (Number.isNaN(d) || d >= 0) && (c = await Ma({
|
|
2515
2515
|
queryObject: e,
|
|
2516
2516
|
queryConfig: i,
|
|
2517
2517
|
returnUniqueIdsOnly: a,
|
|
@@ -2539,7 +2539,7 @@ function ws(t) {
|
|
|
2539
2539
|
e !== void 0 && e.abort(), Ge.set(t, new AbortController());
|
|
2540
2540
|
}
|
|
2541
2541
|
}
|
|
2542
|
-
function
|
|
2542
|
+
function Da(t) {
|
|
2543
2543
|
return {
|
|
2544
2544
|
lowerBoundaryAlias: `charts_lower_boundary_${t}`,
|
|
2545
2545
|
upperBoundaryAlias: `charts_upper_boundary_${t}`
|
|
@@ -2640,23 +2640,23 @@ async function Os(t) {
|
|
|
2640
2640
|
typeKey: y,
|
|
2641
2641
|
typeValue: p,
|
|
2642
2642
|
fieldValue: g,
|
|
2643
|
-
slopePropertyList:
|
|
2644
|
-
interceptPropertyList:
|
|
2643
|
+
slopePropertyList: S,
|
|
2644
|
+
interceptPropertyList: b,
|
|
2645
2645
|
r2PropertyList: v
|
|
2646
|
-
} = bs,
|
|
2646
|
+
} = bs, x = `[{"${y}": "${p}", "${g}":"${u},${c}"}]`, B = await Cs({
|
|
2647
2647
|
queryObject: i,
|
|
2648
2648
|
queryConfig: r,
|
|
2649
2649
|
outputFormat: m,
|
|
2650
2650
|
dataFormat: f,
|
|
2651
|
-
outAnalytics:
|
|
2651
|
+
outAnalytics: x,
|
|
2652
2652
|
errorStrings: n,
|
|
2653
2653
|
abortSignal: s
|
|
2654
2654
|
});
|
|
2655
2655
|
if (B !== void 0) {
|
|
2656
2656
|
let N = Number.NaN, T = Number.NaN;
|
|
2657
|
-
const { expr: w } = zt(B,
|
|
2658
|
-
w !== void 0 && Number.isFinite(B[w]) && (N = B[w]),
|
|
2659
|
-
const { dataContextXMinField: I, dataContextXMaxField:
|
|
2657
|
+
const { expr: w } = zt(B, S), { expr: L } = zt(B, b), { expr: A } = zt(B, v);
|
|
2658
|
+
w !== void 0 && Number.isFinite(B[w]) && (N = B[w]), L !== void 0 && Number.isFinite(B[L]) && (T = B[L]), A !== void 0 && Number.isFinite(B[A]) && (l = B[A]);
|
|
2659
|
+
const { dataContextXMinField: I, dataContextXMaxField: P, dataContextYMinField: O, dataContextYMaxField: V } = C.scatterplotAggregationFields, $ = e.get(I) ?? Number.NaN, M = e.get(P) ?? Number.NaN, q = e.get(O) ?? Number.NaN, G = e.get(V) ?? Number.NaN, X = (M - $) / 100;
|
|
2660
2660
|
let H = $ - X, ae = Number.NaN;
|
|
2661
2661
|
for (; !(ae >= q && ae <= G) && H <= M; )
|
|
2662
2662
|
H += X, ae = N * H + T;
|
|
@@ -2670,17 +2670,17 @@ async function Os(t) {
|
|
|
2670
2670
|
}
|
|
2671
2671
|
return { r2: l, trendLinePoints: d };
|
|
2672
2672
|
}
|
|
2673
|
-
function
|
|
2673
|
+
function Oa(t) {
|
|
2674
2674
|
const { data: e, chartConfig: i } = t, a = i.series[0], { x: r, y: n } = a;
|
|
2675
2675
|
let { r2: s, trendLinePoints: o } = C.scatterplotSeries;
|
|
2676
2676
|
const u = Ds({ data: e, x: r, y: n });
|
|
2677
2677
|
if (u !== void 0) {
|
|
2678
|
-
const c =
|
|
2679
|
-
s = c.m === 0 ? 0 :
|
|
2678
|
+
const c = _r(u), l = jr(c);
|
|
2679
|
+
s = c.m === 0 ? 0 : Hr(u, l), o = Ms({ x: r, y: n, trendlineXToY: l, data: e });
|
|
2680
2680
|
}
|
|
2681
2681
|
return { r2: s, trendLinePoints: o };
|
|
2682
2682
|
}
|
|
2683
|
-
async function
|
|
2683
|
+
async function Ia(t) {
|
|
2684
2684
|
const e = await Ps(t), { chartConfig: i } = t, a = i.series[0], { x: r, y: n } = a, { r2: s } = C.scatterplotSeries, o = [
|
|
2685
2685
|
{ [r]: Number.NaN, [n]: Number.NaN },
|
|
2686
2686
|
{ [r]: Number.NaN, [n]: Number.NaN }
|
|
@@ -2692,7 +2692,7 @@ async function Ea(t) {
|
|
|
2692
2692
|
} catch {
|
|
2693
2693
|
c = !0;
|
|
2694
2694
|
}
|
|
2695
|
-
return (!e || c) && (u =
|
|
2695
|
+
return (!e || c) && (u = Oa(t)), u;
|
|
2696
2696
|
}
|
|
2697
2697
|
const Is = 50, Es = 4194304;
|
|
2698
2698
|
async function qs(t) {
|
|
@@ -2742,7 +2742,7 @@ async function Rs(t) {
|
|
|
2742
2742
|
sortingField: e.series[0].x,
|
|
2743
2743
|
orderBy: ye.Ascending
|
|
2744
2744
|
});
|
|
2745
|
-
const l = /* @__PURE__ */ new Map(), { r2: d, trendLinePoints: f } = n !== !1 ? await
|
|
2745
|
+
const l = /* @__PURE__ */ new Map(), { r2: d, trendLinePoints: f } = n !== !1 ? await Ia({
|
|
2746
2746
|
data: c,
|
|
2747
2747
|
statsMap: l,
|
|
2748
2748
|
queryConfig: i,
|
|
@@ -2769,7 +2769,7 @@ function ks(t) {
|
|
|
2769
2769
|
}), c !== Number.MAX_SAFE_INTEGER && l !== Number.MIN_SAFE_INTEGER && d !== Number.MAX_SAFE_INTEGER && f !== Number.MIN_SAFE_INTEGER && (r = {
|
|
2770
2770
|
xBandId: o,
|
|
2771
2771
|
yBandId: u,
|
|
2772
|
-
pixelRanges: new
|
|
2772
|
+
pixelRanges: new Yr({ xmin: c, xmax: l, ymin: d, ymax: f })
|
|
2773
2773
|
});
|
|
2774
2774
|
} else if (o !== void 0 && o === u) {
|
|
2775
2775
|
let c = Number.MAX_SAFE_INTEGER, l = Number.MIN_SAFE_INTEGER;
|
|
@@ -2886,91 +2886,92 @@ function Oi(t, e) {
|
|
|
2886
2886
|
} : i = { groupKey: t, display: t, original: t }, i;
|
|
2887
2887
|
}
|
|
2888
2888
|
async function js(t) {
|
|
2889
|
-
const { layer: e, geometry: i,
|
|
2890
|
-
e.loaded || await e.load({ signal:
|
|
2891
|
-
const
|
|
2892
|
-
let
|
|
2893
|
-
if (
|
|
2894
|
-
const l =
|
|
2895
|
-
x:
|
|
2896
|
-
y:
|
|
2897
|
-
spatialReference:
|
|
2889
|
+
const { layer: e, geometry: i, filterByViewExtent: a, view: r, abortKey: n, abortSignal: s } = t;
|
|
2890
|
+
e.loaded || await e.load({ signal: s });
|
|
2891
|
+
const o = await ct(e, s), u = dt(i) ?? e.fullExtent;
|
|
2892
|
+
let c = o?.attributeTable;
|
|
2893
|
+
if (a) {
|
|
2894
|
+
const l = r ? new la({
|
|
2895
|
+
x: r.resolution,
|
|
2896
|
+
y: r.resolution,
|
|
2897
|
+
spatialReference: r.spatialReference
|
|
2898
2898
|
}) : void 0;
|
|
2899
|
-
|
|
2899
|
+
c = await Gr(
|
|
2900
2900
|
e,
|
|
2901
2901
|
{
|
|
2902
|
-
geometry:
|
|
2902
|
+
geometry: u,
|
|
2903
2903
|
pixelSize: l,
|
|
2904
2904
|
downsampleOnly: !0
|
|
2905
2905
|
},
|
|
2906
2906
|
{
|
|
2907
|
-
signal:
|
|
2907
|
+
signal: s ?? (n !== void 0 ? Ge.get(n)?.signal : void 0)
|
|
2908
2908
|
}
|
|
2909
2909
|
);
|
|
2910
2910
|
}
|
|
2911
|
-
return
|
|
2911
|
+
return c;
|
|
2912
2912
|
}
|
|
2913
2913
|
async function Hs(t) {
|
|
2914
|
-
const { chartConfig: e, queryConfig: i, queryObject: a,
|
|
2915
|
-
let
|
|
2914
|
+
const { chartConfig: e, queryConfig: i, queryObject: a, filterByViewExtent: r, view: n, abortKey: s, abortSignal: o } = t;
|
|
2915
|
+
let u;
|
|
2916
2916
|
if (a === void 0)
|
|
2917
2917
|
throw new Error("QueryObject is undefined!");
|
|
2918
|
-
const
|
|
2919
|
-
if (!ie(
|
|
2918
|
+
const c = z(a);
|
|
2919
|
+
if (!ie(c))
|
|
2920
2920
|
throw new re(le.LayerNotSupported);
|
|
2921
|
-
const
|
|
2922
|
-
layer:
|
|
2921
|
+
const l = await js({
|
|
2922
|
+
layer: c,
|
|
2923
2923
|
geometry: i.geometry,
|
|
2924
|
-
|
|
2925
|
-
|
|
2926
|
-
|
|
2927
|
-
|
|
2928
|
-
|
|
2929
|
-
|
|
2924
|
+
filterByViewExtent: r,
|
|
2925
|
+
view: n,
|
|
2926
|
+
abortKey: s,
|
|
2927
|
+
abortSignal: o
|
|
2928
|
+
}), d = l?.features;
|
|
2929
|
+
if (!l || !d)
|
|
2930
|
+
u = {
|
|
2930
2931
|
valid: !1,
|
|
2931
2932
|
invalidType: j.BadData
|
|
2932
2933
|
};
|
|
2933
2934
|
else {
|
|
2934
|
-
const
|
|
2935
|
-
if (!
|
|
2936
|
-
|
|
2935
|
+
const f = e.series;
|
|
2936
|
+
if (!f || f.length === 0 || d.length === 0)
|
|
2937
|
+
u = {
|
|
2937
2938
|
valid: !0
|
|
2938
2939
|
};
|
|
2939
2940
|
else {
|
|
2940
|
-
const
|
|
2941
|
-
for (const
|
|
2942
|
-
const { groupKey:
|
|
2943
|
-
|
|
2941
|
+
const m = i.groupByFieldsForStatistics?.[0] ?? "", y = f.some((S) => S.query?.fetchNullValues), p = /* @__PURE__ */ new Map();
|
|
2942
|
+
for (const S of d) {
|
|
2943
|
+
const { groupKey: b } = Oi(S.attributes[m], y);
|
|
2944
|
+
b === C.nullValue && !y || (p.has(b) || p.set(b, []), p.get(b).push(S.attributes));
|
|
2944
2945
|
}
|
|
2945
|
-
const
|
|
2946
|
-
|
|
2947
|
-
const
|
|
2948
|
-
|
|
2949
|
-
const
|
|
2950
|
-
if (!
|
|
2951
|
-
const { name:
|
|
2952
|
-
|
|
2946
|
+
const g = [];
|
|
2947
|
+
p.forEach((S) => {
|
|
2948
|
+
const b = {}, v = S[0][m], { display: x, original: B } = Oi(v, y);
|
|
2949
|
+
b[m] = x, b[C.xAxisField] = x, b[C.originalCategoryValue] = B, f.forEach((N) => {
|
|
2950
|
+
const T = N.query?.outStatistics?.[0];
|
|
2951
|
+
if (!T) {
|
|
2952
|
+
const { name: O } = N;
|
|
2953
|
+
b[O] = S[0][O];
|
|
2953
2954
|
return;
|
|
2954
2955
|
}
|
|
2955
|
-
let
|
|
2956
|
-
const
|
|
2957
|
-
|
|
2958
|
-
const
|
|
2959
|
-
|
|
2960
|
-
features:
|
|
2961
|
-
aggregationType:
|
|
2962
|
-
onField:
|
|
2956
|
+
let w = S;
|
|
2957
|
+
const L = N.query?.where;
|
|
2958
|
+
L && (w = S.filter((O) => Qs(O, L)));
|
|
2959
|
+
const A = T.statisticType, I = T.onStatisticField, P = T.outStatisticFieldName;
|
|
2960
|
+
b[P] = _s({
|
|
2961
|
+
features: w,
|
|
2962
|
+
aggregationType: A,
|
|
2963
|
+
onField: I
|
|
2963
2964
|
});
|
|
2964
|
-
}),
|
|
2965
|
-
}),
|
|
2965
|
+
}), g.push(b);
|
|
2966
|
+
}), u = {
|
|
2966
2967
|
valid: !0,
|
|
2967
2968
|
data: {
|
|
2968
|
-
dataItems:
|
|
2969
|
+
dataItems: g
|
|
2969
2970
|
}
|
|
2970
2971
|
};
|
|
2971
2972
|
}
|
|
2972
2973
|
}
|
|
2973
|
-
return
|
|
2974
|
+
return u;
|
|
2974
2975
|
}
|
|
2975
2976
|
async function gd(t) {
|
|
2976
2977
|
const { layer: e, category: i, splitByField: a } = t, s = (await ct(e))?.attributeTable?.features, o = a !== void 0;
|
|
@@ -3025,21 +3026,21 @@ function Gs(t) {
|
|
|
3025
3026
|
}
|
|
3026
3027
|
return r;
|
|
3027
3028
|
}
|
|
3028
|
-
const
|
|
3029
|
-
|
|
3030
|
-
|
|
3031
|
-
|
|
3029
|
+
const Ea = "PixelID", Us = "Pixel ID", Ys = [
|
|
3030
|
+
h.BarSeries,
|
|
3031
|
+
h.HistogramSeries,
|
|
3032
|
+
h.ScatterSeries
|
|
3032
3033
|
];
|
|
3033
3034
|
async function pd(t) {
|
|
3034
3035
|
let e = !1;
|
|
3035
3036
|
const { config: i, layer: a, abortSignal: r } = t;
|
|
3036
|
-
if (
|
|
3037
|
+
if (Mr(Ys, i))
|
|
3037
3038
|
switch (_(i?.series)) {
|
|
3038
|
-
case
|
|
3039
|
+
case h.BarSeries:
|
|
3039
3040
|
a.loaded || await a.load({ signal: r }), e = !!(await ct(a, r))?.attributeTable;
|
|
3040
3041
|
break;
|
|
3041
|
-
case
|
|
3042
|
-
case
|
|
3042
|
+
case h.HistogramSeries:
|
|
3043
|
+
case h.ScatterSeries:
|
|
3043
3044
|
e = !0;
|
|
3044
3045
|
break;
|
|
3045
3046
|
}
|
|
@@ -3048,7 +3049,7 @@ async function pd(t) {
|
|
|
3048
3049
|
async function Zs(t) {
|
|
3049
3050
|
const { layer: e, chartConfig: i } = t;
|
|
3050
3051
|
let a;
|
|
3051
|
-
return ie(e) ? a = e : i?.iLayer?.layerType === "ArcGISImageServiceLayer" ? a = await
|
|
3052
|
+
return ie(e) ? a = e : i?.iLayer?.layerType === "ArcGISImageServiceLayer" ? a = await Ra(i.iLayer) : i?.iLayer?.layerType === "ArcGISTiledImageServiceLayer" && (a = await $a(i.iLayer)), a;
|
|
3052
3053
|
}
|
|
3053
3054
|
function Xs(t) {
|
|
3054
3055
|
let e;
|
|
@@ -3065,13 +3066,13 @@ function Xs(t) {
|
|
|
3065
3066
|
}
|
|
3066
3067
|
return e;
|
|
3067
3068
|
}
|
|
3068
|
-
function
|
|
3069
|
+
function qa(t) {
|
|
3069
3070
|
if (!t.loaded)
|
|
3070
3071
|
throw new Error("Raster layer must be loaded to get its ID field name");
|
|
3071
3072
|
const i = Rt(t)?.attributeTable?.fields.find((a) => a.type === "oid");
|
|
3072
|
-
return i ? i.name :
|
|
3073
|
+
return i ? i.name : Ea;
|
|
3073
3074
|
}
|
|
3074
|
-
function
|
|
3075
|
+
function Va(t) {
|
|
3075
3076
|
const { layer: e, rasterInfo: i, popupTemplateFieldInfosEnabled: a } = t;
|
|
3076
3077
|
if (!e.loaded)
|
|
3077
3078
|
throw new Error("Raster layer must be loaded to get its fields info");
|
|
@@ -3094,7 +3095,7 @@ function Ra(t) {
|
|
|
3094
3095
|
)?.label;
|
|
3095
3096
|
return d && d !== l.name && (l.alias = d), l;
|
|
3096
3097
|
}), n = [{
|
|
3097
|
-
name:
|
|
3098
|
+
name: Ea,
|
|
3098
3099
|
alias: Us,
|
|
3099
3100
|
type: U.OID
|
|
3100
3101
|
}, ...o];
|
|
@@ -3105,14 +3106,14 @@ function Ra(t) {
|
|
|
3105
3106
|
return n;
|
|
3106
3107
|
}
|
|
3107
3108
|
async function ct(t, e) {
|
|
3108
|
-
return t.loaded || await t.load({ signal: e }),
|
|
3109
|
+
return t.loaded || await t.load({ signal: e }), kr(t) ? Rt(t) ?? void 0 : await t.generateRasterInfo(t.rasterFunction, { signal: e });
|
|
3109
3110
|
}
|
|
3110
3111
|
async function hd(t, e) {
|
|
3111
3112
|
t.loaded || await t.load();
|
|
3112
3113
|
const i = await ct(t);
|
|
3113
|
-
return
|
|
3114
|
+
return Va({ layer: t, rasterInfo: i, popupTemplateFieldInfosEnabled: e });
|
|
3114
3115
|
}
|
|
3115
|
-
const
|
|
3116
|
+
const Ra = It(
|
|
3116
3117
|
async (t, e) => {
|
|
3117
3118
|
const i = {}, a = t.layerDefinition;
|
|
3118
3119
|
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 });
|
|
@@ -3121,7 +3122,7 @@ const $a = It(
|
|
|
3121
3122
|
},
|
|
3122
3123
|
(t) => JSON.stringify(t, Object.keys(t).sort())
|
|
3123
3124
|
// stringify with sorted keys
|
|
3124
|
-
),
|
|
3125
|
+
), $a = It(
|
|
3125
3126
|
async (t, e) => {
|
|
3126
3127
|
const i = {};
|
|
3127
3128
|
i.id = t.id, t.url !== void 0 && (i.url = t.url), t.itemId !== void 0 && (i.portalItem = { id: t.itemId });
|
|
@@ -3155,21 +3156,21 @@ const $a = It(
|
|
|
3155
3156
|
const { chartConfig: e, layer: i, selectionDataItems: a } = t, r = _(e.series);
|
|
3156
3157
|
let n;
|
|
3157
3158
|
switch (r) {
|
|
3158
|
-
case
|
|
3159
|
+
case h.BarSeries:
|
|
3159
3160
|
n = Gs({
|
|
3160
3161
|
chartConfig: e,
|
|
3161
3162
|
layer: i,
|
|
3162
3163
|
selectionDataItems: a
|
|
3163
3164
|
});
|
|
3164
3165
|
break;
|
|
3165
|
-
case
|
|
3166
|
+
case h.HistogramSeries:
|
|
3166
3167
|
n = hs({
|
|
3167
3168
|
chartConfig: e,
|
|
3168
3169
|
layer: i,
|
|
3169
3170
|
selectionDataItems: a
|
|
3170
3171
|
});
|
|
3171
3172
|
break;
|
|
3172
|
-
case
|
|
3173
|
+
case h.ScatterSeries:
|
|
3173
3174
|
n = ks({
|
|
3174
3175
|
chartConfig: e,
|
|
3175
3176
|
layer: i,
|
|
@@ -3194,7 +3195,7 @@ async function Ks(t) {
|
|
|
3194
3195
|
autoResample: !0,
|
|
3195
3196
|
maxPixelCount: r,
|
|
3196
3197
|
skipFactor: a
|
|
3197
|
-
}, d = await
|
|
3198
|
+
}, d = await Ur(u, l, { signal: o });
|
|
3198
3199
|
s = Ji.fromJSON(d.featureSet).features;
|
|
3199
3200
|
} catch {
|
|
3200
3201
|
s = [];
|
|
@@ -3244,7 +3245,7 @@ const yi = It(
|
|
|
3244
3245
|
r = t.layerDefinition;
|
|
3245
3246
|
const n = {};
|
|
3246
3247
|
if (a !== void 0) {
|
|
3247
|
-
if (n.source = Ji.fromJSON(a).features, r?.fields !== void 0 && (n.fields = r.fields.map((o) =>
|
|
3248
|
+
if (n.source = Ji.fromJSON(a).features, r?.fields !== void 0 && (n.fields = r.fields.map((o) => Ar.fromJSON(o))), r?.objectIdField !== void 0 && (n.objectIdField = r.objectIdField), r?.geometryType !== void 0) {
|
|
3248
3249
|
const o = Yi.fromJSON({
|
|
3249
3250
|
geometryType: r.geometryType
|
|
3250
3251
|
});
|
|
@@ -3257,7 +3258,7 @@ const yi = It(
|
|
|
3257
3258
|
const o = r.drawingInfo;
|
|
3258
3259
|
o?.renderer !== void 0 && (n.renderer = Xi.fromJSON(o.renderer));
|
|
3259
3260
|
}
|
|
3260
|
-
const s = new
|
|
3261
|
+
const s = new Nr(n);
|
|
3261
3262
|
return await s.load({ signal: e }), s;
|
|
3262
3263
|
},
|
|
3263
3264
|
(t) => JSON.stringify(t)
|
|
@@ -3270,10 +3271,10 @@ async function Fd(t, e) {
|
|
|
3270
3271
|
i = await yi(t, e);
|
|
3271
3272
|
break;
|
|
3272
3273
|
case "ArcGISImageServiceLayer":
|
|
3273
|
-
i = await
|
|
3274
|
+
i = await Ra(t, e);
|
|
3274
3275
|
break;
|
|
3275
3276
|
case "ArcGISTiledImageServiceLayer":
|
|
3276
|
-
i = await
|
|
3277
|
+
i = await $a(t, e);
|
|
3277
3278
|
break;
|
|
3278
3279
|
case "WCS":
|
|
3279
3280
|
i = await Js(t, e);
|
|
@@ -3284,7 +3285,7 @@ async function Fd(t, e) {
|
|
|
3284
3285
|
return i;
|
|
3285
3286
|
}
|
|
3286
3287
|
async function bd(t) {
|
|
3287
|
-
const { layer: e, view: i, chartConfig: a, filterByViewExtent: r, abortSignal: n } = t, s = ie(e) ||
|
|
3288
|
+
const { layer: e, view: i, chartConfig: a, filterByViewExtent: r, abortSignal: n } = t, s = ie(e) || Qr(a);
|
|
3288
3289
|
let o;
|
|
3289
3290
|
if (s)
|
|
3290
3291
|
o = await Zs(t);
|
|
@@ -3299,7 +3300,7 @@ function Ce(t, e) {
|
|
|
3299
3300
|
let a = [];
|
|
3300
3301
|
if (i !== void 0) {
|
|
3301
3302
|
const r = e === !0 && i?.popupTemplate?.fieldInfos !== void 0;
|
|
3302
|
-
ie(i) ? a =
|
|
3303
|
+
ie(i) ? a = Va({ layer: i, popupTemplateFieldInfosEnabled: e }) : a = i.fields.map((n) => {
|
|
3303
3304
|
const s = n.toJSON();
|
|
3304
3305
|
if (r) {
|
|
3305
3306
|
const o = i.popupTemplate?.fieldInfos?.find(
|
|
@@ -3318,7 +3319,7 @@ function xd(t, e = []) {
|
|
|
3318
3319
|
function $t(t) {
|
|
3319
3320
|
let e, i = !1;
|
|
3320
3321
|
if (ie(t))
|
|
3321
|
-
e = [
|
|
3322
|
+
e = [qa(t)];
|
|
3322
3323
|
else {
|
|
3323
3324
|
const a = ge(t);
|
|
3324
3325
|
a && ("uniqueIdFields" in a && a.uniqueIdFields && a.uniqueIdFields.length > 0 ? e = a.uniqueIdFields : (e = [a.objectIdField], i = !0));
|
|
@@ -3328,7 +3329,7 @@ function $t(t) {
|
|
|
3328
3329
|
function ve(t) {
|
|
3329
3330
|
let e = "", i = !1;
|
|
3330
3331
|
if (ie(t))
|
|
3331
|
-
e =
|
|
3332
|
+
e = qa(t);
|
|
3332
3333
|
else if (t) {
|
|
3333
3334
|
const a = $t(t);
|
|
3334
3335
|
i = a.isTraditionalTypeOID, a.idFields && (e = a.idFields[0]);
|
|
@@ -3372,7 +3373,7 @@ function ai(t, e) {
|
|
|
3372
3373
|
let i;
|
|
3373
3374
|
if (e) {
|
|
3374
3375
|
const r = z(t).getFieldDomain(e);
|
|
3375
|
-
r instanceof
|
|
3376
|
+
r instanceof Tr && (i = r);
|
|
3376
3377
|
}
|
|
3377
3378
|
return i;
|
|
3378
3379
|
}
|
|
@@ -3384,11 +3385,11 @@ function Ii(t) {
|
|
|
3384
3385
|
const { queryObject: e, fieldName: i, fieldValue: a } = t;
|
|
3385
3386
|
return ie(e) ? void 0 : ri(a, ai(e, i));
|
|
3386
3387
|
}
|
|
3387
|
-
async function
|
|
3388
|
+
async function ka(t) {
|
|
3388
3389
|
let e = [];
|
|
3389
|
-
return t && !ge(t)?.isTable && t.fieldsIndex && (e = await
|
|
3390
|
+
return t && !ge(t)?.isTable && t.fieldsIndex && (e = await wr.getRendererFields(t.renderer, t.fieldsIndex)), e;
|
|
3390
3391
|
}
|
|
3391
|
-
function
|
|
3392
|
+
function Qa(t) {
|
|
3392
3393
|
const e = "/rest/services";
|
|
3393
3394
|
let i = t.toLowerCase();
|
|
3394
3395
|
const a = i.indexOf(e);
|
|
@@ -3398,7 +3399,7 @@ async function ro(t, e) {
|
|
|
3398
3399
|
let i = !0;
|
|
3399
3400
|
const a = ".arcgis.com/", r = t?.url, n = r?.includes(a);
|
|
3400
3401
|
if (r && n && ge(t)?.sourceJSON?.serviceItemId !== void 0) {
|
|
3401
|
-
const s =
|
|
3402
|
+
const s = Qa(r);
|
|
3402
3403
|
try {
|
|
3403
3404
|
const o = (await wt(s, { query: { f: "json" }, signal: e })).data;
|
|
3404
3405
|
if (o.owningTenant !== void 0 && o.owningSystemUrl !== void 0) {
|
|
@@ -3406,7 +3407,7 @@ async function ro(t, e) {
|
|
|
3406
3407
|
authMode: "auto",
|
|
3407
3408
|
query: { f: "json" },
|
|
3408
3409
|
signal: e
|
|
3409
|
-
})).data, l = new
|
|
3410
|
+
})).data, l = new Lr({ sourceJSON: c });
|
|
3410
3411
|
await l.load({ signal: e }), i = l?.sourceJSON?.subscriptionInfo?.dataStoreLevel === void 0;
|
|
3411
3412
|
}
|
|
3412
3413
|
} catch {
|
|
@@ -3429,7 +3430,7 @@ function oo(t) {
|
|
|
3429
3430
|
(n) => no({ queryObject: i, fieldToMatch: n, returnUndefinedIfNotFound: a })
|
|
3430
3431
|
)), r;
|
|
3431
3432
|
}
|
|
3432
|
-
function
|
|
3433
|
+
function _a(t) {
|
|
3433
3434
|
const { queryObject: e, chartConfig: i, runtimeDataFilters: a, ignoreViewExtent: r, view: n } = t, { series: s, dataFilters: o } = i, {
|
|
3434
3435
|
where: u,
|
|
3435
3436
|
gdbVersion: c,
|
|
@@ -3441,15 +3442,15 @@ function ja(t) {
|
|
|
3441
3442
|
spatialRelationship: p
|
|
3442
3443
|
} = o ?? {}, {
|
|
3443
3444
|
where: g,
|
|
3444
|
-
gdbVersion:
|
|
3445
|
-
timeExtent:
|
|
3445
|
+
gdbVersion: S,
|
|
3446
|
+
timeExtent: b,
|
|
3446
3447
|
geometry: v,
|
|
3447
|
-
distance:
|
|
3448
|
+
distance: x,
|
|
3448
3449
|
units: B,
|
|
3449
3450
|
objectIds: N,
|
|
3450
3451
|
spatialRelationship: T
|
|
3451
|
-
} = a ?? {}, w = s[0], { query:
|
|
3452
|
-
return
|
|
3452
|
+
} = a ?? {}, w = s[0], { query: L } = w, { where: A } = L ?? {}, I = k(s), P = { ...L };
|
|
3453
|
+
return P.where = Y([u, g]), I !== F.BarAndLineSplitBy && I !== F.BoxPlotMonoFieldAndSplitBy && I !== F.BoxPlotMonoFieldAndCategoryAndSplitBy && I !== F.BoxPlotMultiFieldsAndSplitBy && I !== F.BarAndLineSplitByNoAggregation && (P.where = Y([P.where, A])), i.orderOptions?.orderByFields !== void 0 && (P.orderByFields = i.orderOptions.orderByFields), P.gdbVersion = S ?? c, P.timeExtent = mo(n?.timeExtent, b ?? l), P.geometry = ie(e) ? eo({
|
|
3453
3454
|
queryObject: e,
|
|
3454
3455
|
defaultGeometry: v ?? d,
|
|
3455
3456
|
ignoreViewExtent: r,
|
|
@@ -3458,11 +3459,11 @@ function ja(t) {
|
|
|
3458
3459
|
queryObject: e,
|
|
3459
3460
|
defaultGeometry: v ?? d,
|
|
3460
3461
|
ignoreViewExtent: r
|
|
3461
|
-
}),
|
|
3462
|
+
}), P.distance = x ?? f, P.units = B ?? m, P.objectIds = N ?? y, P.spatialRelationship = T ?? p, L?.outStatistics?.[0]?.statisticType === D.Count && (P.returnDistinctValues = L?.returnDistinctValues ?? !1), P?.outStatistics?.forEach((O) => {
|
|
3462
3463
|
fi(O) && !("statisticParameters" in O) && (O.statisticParameters = {
|
|
3463
3464
|
value: W.defaultStatParameterValue
|
|
3464
3465
|
});
|
|
3465
|
-
}),
|
|
3466
|
+
}), P;
|
|
3466
3467
|
}
|
|
3467
3468
|
async function Td(t) {
|
|
3468
3469
|
let e = [];
|
|
@@ -3474,7 +3475,7 @@ async function lo(t, e) {
|
|
|
3474
3475
|
const r = t.series;
|
|
3475
3476
|
let n = e;
|
|
3476
3477
|
if (t.iLayer?.layerType === "ArcGISFeatureLayer" && (n = await yi(t.iLayer)), n !== void 0) {
|
|
3477
|
-
const s = r[0].x ?? "", o = r.map((f) => "y" in f ? f.y : "").flat(), u = te(t.series[0].query?.where), c =
|
|
3478
|
+
const s = r[0].x ?? "", o = r.map((f) => "y" in f ? f.y : "").flat(), u = te(t.series[0].query?.where), c = Dr(t), l = t?.series.map((f) => {
|
|
3478
3479
|
const m = f.query?.outStatistics?.map((y) => y.onStatisticField) ?? [];
|
|
3479
3480
|
return m?.length > 0 ? m : "";
|
|
3480
3481
|
}).flat();
|
|
@@ -3513,7 +3514,7 @@ function Ad(t) {
|
|
|
3513
3514
|
return a;
|
|
3514
3515
|
}
|
|
3515
3516
|
const wd = {
|
|
3516
|
-
getServerRestInfo:
|
|
3517
|
+
getServerRestInfo: Qa
|
|
3517
3518
|
};
|
|
3518
3519
|
async function kt(t, e) {
|
|
3519
3520
|
await t.load({ signal: e }), (na(t) || sa(t)) && await t.generateRasterInfo(t.rasterFunction, {
|
|
@@ -3524,7 +3525,7 @@ function fo(t) {
|
|
|
3524
3525
|
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");
|
|
3525
3526
|
return e && a;
|
|
3526
3527
|
}
|
|
3527
|
-
function
|
|
3528
|
+
function ja(t) {
|
|
3528
3529
|
let e = W.maxRecords;
|
|
3529
3530
|
if (t && "sourceJSON" in t && t.sourceJSON?.maxRecordCount) {
|
|
3530
3531
|
const { sourceJSON: i } = t;
|
|
@@ -3565,29 +3566,29 @@ function dt(t) {
|
|
|
3565
3566
|
let e;
|
|
3566
3567
|
return t !== void 0 && (e = Yi.fromJSON(t)), e;
|
|
3567
3568
|
}
|
|
3568
|
-
function
|
|
3569
|
+
function Ha(t) {
|
|
3569
3570
|
return t === void 0 ? ["*"] : Array.from(new Set(t));
|
|
3570
3571
|
}
|
|
3571
3572
|
function Qt(t) {
|
|
3572
3573
|
const { queryType: e, queryObject: i, queryConfig: a, view: r, configTimeZone: n, dateField: s, useViewTimeZone: o } = t, { where: u, outStatistics: c, geometry: l, distance: d, units: f, timeExtent: m, returnDistinctValues: y } = a ?? {}, p = z(i);
|
|
3573
|
-
let
|
|
3574
|
+
let S = ge(p)?.createQuery() ?? new vr(), b;
|
|
3574
3575
|
const v = $t(p).idFields;
|
|
3575
|
-
if (e === "AttributeBinsQuery" && a?.objectIds?.[0] !== void 0 && v && (
|
|
3576
|
+
if (e === "AttributeBinsQuery" && a?.objectIds?.[0] !== void 0 && v && (b = `${v} IN (${a.objectIds.join(",")})`), e === "AttributeBinsQuery" && (S = new Cr(S.toJSON()), Ce(i).find((T) => T.name === s)?.type !== U.DateOnly)) {
|
|
3576
3577
|
const T = Intl.DateTimeFormat().resolvedOptions().timeZone, w = o && r && "timeZone" in r ? r.timeZone : void 0;
|
|
3577
|
-
let
|
|
3578
|
-
|
|
3578
|
+
let L = n ?? w ?? T;
|
|
3579
|
+
L === "unknown" ? L = "Etc/UTC" : L === "system" && (L = T), S.outTimeZone = L;
|
|
3579
3580
|
}
|
|
3580
|
-
if (
|
|
3581
|
+
if (S.where = Y([S.where, u, b]), "returnDistinctValues" in S && (S.returnDistinctValues = y ?? !1), c !== void 0) {
|
|
3581
3582
|
const B = gn(p);
|
|
3582
|
-
|
|
3583
|
+
S.outStatistics = c.filter(
|
|
3583
3584
|
(N) => N.statisticType !== D.EnvelopeAggregate || B
|
|
3584
|
-
).map((N) =>
|
|
3585
|
+
).map((N) => Br.fromJSON(N));
|
|
3585
3586
|
}
|
|
3586
|
-
const
|
|
3587
|
-
return
|
|
3587
|
+
const x = dt(l);
|
|
3588
|
+
return x !== void 0 && (S.geometry = x, a?.spatialRelationship && (S.spatialRelationship = a.spatialRelationship), da(p) && (d !== void 0 && (S.distance = d), f !== void 0 && (S.units = f))), m && (S.timeExtent = new Zi({
|
|
3588
3589
|
start: m?.[0],
|
|
3589
3590
|
end: m?.[1]
|
|
3590
|
-
})), fo(
|
|
3591
|
+
})), fo(S) && (S.cacheHint = !0), S;
|
|
3591
3592
|
}
|
|
3592
3593
|
function go(t) {
|
|
3593
3594
|
let e;
|
|
@@ -3602,7 +3603,7 @@ function go(t) {
|
|
|
3602
3603
|
return e;
|
|
3603
3604
|
}
|
|
3604
3605
|
function po(t) {
|
|
3605
|
-
const { queryObject: e, queryConfig: i, temporalBinning: a, dateField: r, splitByField: n, axisTimeZone: s, view: o, syncViewTimeZone: u } = t, { unit: c, size: l, timeAggregationType: d, start: f, end: m, offset: y, outTimeZone: p } = a, g = z(e),
|
|
3606
|
+
const { queryObject: e, queryConfig: i, temporalBinning: a, dateField: r, splitByField: n, axisTimeZone: s, view: o, syncViewTimeZone: u } = t, { unit: c, size: l, timeAggregationType: d, start: f, end: m, offset: y, outTimeZone: p } = a, g = z(e), S = Qt({
|
|
3606
3607
|
queryType: "AttributeBinsQuery",
|
|
3607
3608
|
queryObject: e,
|
|
3608
3609
|
queryConfig: i,
|
|
@@ -3611,23 +3612,23 @@ function po(t) {
|
|
|
3611
3612
|
view: o,
|
|
3612
3613
|
dateField: r,
|
|
3613
3614
|
useViewTimeZone: u ?? !1
|
|
3614
|
-
}),
|
|
3615
|
-
if (
|
|
3615
|
+
}), b = Da(r);
|
|
3616
|
+
if (S.lowerBoundaryAlias = b.lowerBoundaryAlias, S.upperBoundaryAlias = b.upperBoundaryAlias, S.binParameters = {
|
|
3616
3617
|
type: "date",
|
|
3617
3618
|
field: r,
|
|
3618
3619
|
interval: { unit: c, value: l },
|
|
3619
3620
|
start: f,
|
|
3620
3621
|
end: m,
|
|
3621
3622
|
offset: y ? { unit: y.unit, value: y.size } : null
|
|
3622
|
-
},
|
|
3623
|
-
const
|
|
3624
|
-
(!
|
|
3623
|
+
}, S.binParameters.type === "date" && (g?.capabilities?.queryAttributeBins?.supportsSnapToData && (S.binParameters.snapToData = go(d)), g?.capabilities?.queryAttributeBins?.supportsReturnFullIntervalBin && (S.binParameters.returnFullIntervalBin = !0)), !oe(n)) {
|
|
3624
|
+
const x = ge(g)?.fields.find((B) => B.name === n)?.type;
|
|
3625
|
+
(!x || x === "string" || x === "integer" || x === "small-integer" || x === "big-integer" || x === "double") && (S.binParameters.stackBy = {
|
|
3625
3626
|
type: "field",
|
|
3626
3627
|
value: n,
|
|
3627
|
-
valueType:
|
|
3628
|
+
valueType: x === "string" ? "string" : "integer"
|
|
3628
3629
|
});
|
|
3629
3630
|
}
|
|
3630
|
-
return
|
|
3631
|
+
return S;
|
|
3631
3632
|
}
|
|
3632
3633
|
function gi(t) {
|
|
3633
3634
|
const {
|
|
@@ -3668,7 +3669,7 @@ function gi(t) {
|
|
|
3668
3669
|
break;
|
|
3669
3670
|
}
|
|
3670
3671
|
if (l) {
|
|
3671
|
-
const m = o ? ` ${
|
|
3672
|
+
const m = o ? ` ${wa({
|
|
3672
3673
|
dataTimeZone: n,
|
|
3673
3674
|
runsOnClientQueryEngine: s,
|
|
3674
3675
|
outTimeZone: r
|
|
@@ -3742,8 +3743,8 @@ function So(t) {
|
|
|
3742
3743
|
xOrYFieldType: m,
|
|
3743
3744
|
addIntervalStatement: !1,
|
|
3744
3745
|
includeLeapDay: u
|
|
3745
|
-
}), { field:
|
|
3746
|
-
|
|
3746
|
+
}), { field: S, expression: b, start: v, end: x } = g;
|
|
3747
|
+
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)));
|
|
3747
3748
|
const B = Ei({
|
|
3748
3749
|
temporalBinning: s,
|
|
3749
3750
|
xOrY: r,
|
|
@@ -3764,7 +3765,7 @@ function Fo(t) {
|
|
|
3764
3765
|
queryObject: e,
|
|
3765
3766
|
queryConfig: i,
|
|
3766
3767
|
useViewTimeZone: !1
|
|
3767
|
-
}), l =
|
|
3768
|
+
}), l = Pa(s, o);
|
|
3768
3769
|
return c.lowerBoundaryAlias = l.lowerBoundaryAlias, c.upperBoundaryAlias = l.upperBoundaryAlias, c.binParameters = {
|
|
3769
3770
|
type: "fixed-interval",
|
|
3770
3771
|
field: s,
|
|
@@ -3788,18 +3789,18 @@ function pi(t) {
|
|
|
3788
3789
|
});
|
|
3789
3790
|
l.returnGeometry = !1;
|
|
3790
3791
|
const d = z(e);
|
|
3791
|
-
return l.outFields =
|
|
3792
|
+
return l.outFields = Ha(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 ?? ja(d)), l;
|
|
3792
3793
|
}
|
|
3793
3794
|
function bo(t) {
|
|
3794
3795
|
return t && "sourceJSON" in t && t.sourceJSON?.advancedQueryCapabilities?.supportsMaxRecordCountFactor === !0 ? W.maxRecordCountFactor : void 0;
|
|
3795
3796
|
}
|
|
3796
3797
|
const Pd = {
|
|
3797
|
-
sanitizeOutFields:
|
|
3798
|
+
sanitizeOutFields: Ha
|
|
3798
3799
|
};
|
|
3799
3800
|
function xo(t = Z.None, e) {
|
|
3800
3801
|
return t === Z.None || t === Z.Log && e > 0 || t === Z.Sqrt && e >= 0;
|
|
3801
3802
|
}
|
|
3802
|
-
function
|
|
3803
|
+
function za(t, e) {
|
|
3803
3804
|
const i = { valid: !1 };
|
|
3804
3805
|
return e === !0 ? i.invalidType = j.HistogramEmptyField : t === Z.Log ? i.invalidType = j.NegativeValueInLogCalculation : t === Z.Sqrt && (i.invalidType = j.NegativeValueInSqrtCalculation), i;
|
|
3805
3806
|
}
|
|
@@ -3826,7 +3827,7 @@ function vo(t) {
|
|
|
3826
3827
|
}
|
|
3827
3828
|
return e;
|
|
3828
3829
|
}
|
|
3829
|
-
function
|
|
3830
|
+
function Wa(t) {
|
|
3830
3831
|
let e = "field";
|
|
3831
3832
|
switch (t) {
|
|
3832
3833
|
case Z.Log:
|
|
@@ -3870,8 +3871,8 @@ async function Bo(t) {
|
|
|
3870
3871
|
errorStrings: r,
|
|
3871
3872
|
abortKey: n,
|
|
3872
3873
|
abortSignal: s
|
|
3873
|
-
}),
|
|
3874
|
-
return { countExcludingNulls:
|
|
3874
|
+
}), S = g.get(d) ?? Number.NaN, b = g.get(f) ?? Number.NaN, v = g.get(m) ?? Number.NaN, x = g.get(y) ?? Number.NaN;
|
|
3875
|
+
return { countExcludingNulls: b, countIncludingNulls: S, min: v, max: x };
|
|
3875
3876
|
}
|
|
3876
3877
|
async function No(t) {
|
|
3877
3878
|
const { queryConfig: e, chartConfig: i, queryObject: a, errorStrings: r, abortKey: n, abortSignal: s } = t, o = i.series[0], { x: u, dataTransformationType: c } = o;
|
|
@@ -3883,8 +3884,8 @@ async function No(t) {
|
|
|
3883
3884
|
errorStrings: r,
|
|
3884
3885
|
abortKey: n,
|
|
3885
3886
|
abortSignal: s
|
|
3886
|
-
}), p = xo(c, m), g = f < 2 || m === y,
|
|
3887
|
-
return
|
|
3887
|
+
}), p = xo(c, m), g = f < 2 || m === y, S = { ...e };
|
|
3888
|
+
return S.where = Y([S.where, `${u} is not null`]), {
|
|
3888
3889
|
rawData: l,
|
|
3889
3890
|
dataCompatibleWithTransformation: p,
|
|
3890
3891
|
dataCountIncompatible: g,
|
|
@@ -3909,7 +3910,7 @@ function Ao(t) {
|
|
|
3909
3910
|
};
|
|
3910
3911
|
return u !== Z.None && (c = {
|
|
3911
3912
|
...c,
|
|
3912
|
-
normalizationType:
|
|
3913
|
+
normalizationType: Wa(u)
|
|
3913
3914
|
}), c;
|
|
3914
3915
|
}
|
|
3915
3916
|
function wo(t) {
|
|
@@ -3929,7 +3930,7 @@ function wo(t) {
|
|
|
3929
3930
|
field: c,
|
|
3930
3931
|
minValue: n,
|
|
3931
3932
|
maxValue: s,
|
|
3932
|
-
numBins: l ??
|
|
3933
|
+
numBins: l ?? Er,
|
|
3933
3934
|
classificationMethod: "equal-interval",
|
|
3934
3935
|
// excluding the filters like 1=tionMethod: "equal-interval",1 from the sqlWhere. It's causing query failures (see https://devtopia.esri.com/WebGIS/arcgis-charts/issues/6677)
|
|
3935
3936
|
sqlWhere: Ie(o.where) ? void 0 : o.where,
|
|
@@ -3938,7 +3939,7 @@ function wo(t) {
|
|
|
3938
3939
|
};
|
|
3939
3940
|
return d !== Z.None && (f = {
|
|
3940
3941
|
...f,
|
|
3941
|
-
normalizationType:
|
|
3942
|
+
normalizationType: Wa(d)
|
|
3942
3943
|
}), f;
|
|
3943
3944
|
}
|
|
3944
3945
|
function Lo(t, e) {
|
|
@@ -3965,36 +3966,36 @@ async function Po(t) {
|
|
|
3965
3966
|
queryConfig: i,
|
|
3966
3967
|
abortSignal: u
|
|
3967
3968
|
});
|
|
3968
|
-
let
|
|
3969
|
-
if (p !== void 0 && (
|
|
3969
|
+
let S;
|
|
3970
|
+
if (p !== void 0 && (S = new Ti({
|
|
3970
3971
|
geometry: p.extent
|
|
3971
|
-
}), p.extent !== void 0 &&
|
|
3972
|
+
}), p.extent !== void 0 && da(f))) {
|
|
3972
3973
|
const { distance: A, units: I } = i;
|
|
3973
|
-
A !== void 0 && (
|
|
3974
|
+
A !== void 0 && (S.distance = A), I !== void 0 && (S.units = I);
|
|
3974
3975
|
}
|
|
3975
3976
|
if (i.timeExtent) {
|
|
3976
3977
|
const A = { start: i.timeExtent[0], end: i.timeExtent[1] };
|
|
3977
|
-
|
|
3978
|
+
S === void 0 ? S = new Ti({ timeExtent: A }) : S.timeExtent = A;
|
|
3978
3979
|
}
|
|
3979
|
-
g.filter =
|
|
3980
|
-
let
|
|
3980
|
+
g.filter = S;
|
|
3981
|
+
let b;
|
|
3981
3982
|
g.outStatisticTypes = { exclude: ["median"] };
|
|
3982
3983
|
try {
|
|
3983
|
-
|
|
3984
|
+
b = await Ai(g);
|
|
3984
3985
|
} catch (A) {
|
|
3985
3986
|
throw new re(le.QueryFeaturesError, o.errors.queryError, A);
|
|
3986
3987
|
}
|
|
3987
3988
|
g.outStatisticTypes = { include: ["median"] };
|
|
3988
3989
|
try {
|
|
3989
3990
|
const A = await Ai(g);
|
|
3990
|
-
A?.median && (
|
|
3991
|
+
A?.median && (b.median = A.median);
|
|
3991
3992
|
} catch {
|
|
3992
3993
|
}
|
|
3993
|
-
|
|
3994
|
-
const { avg: v, count:
|
|
3995
|
-
if (
|
|
3994
|
+
b = To(b);
|
|
3995
|
+
const { avg: v, count: x, stddev: B, min: N, max: T, sum: w, median: L } = b;
|
|
3996
|
+
if (x === 0)
|
|
3996
3997
|
d = {
|
|
3997
|
-
...
|
|
3998
|
+
...za(l)
|
|
3998
3999
|
};
|
|
3999
4000
|
else {
|
|
4000
4001
|
const A = wo({
|
|
@@ -4008,29 +4009,29 @@ async function Po(t) {
|
|
|
4008
4009
|
queryConfig: i,
|
|
4009
4010
|
abortSignal: u
|
|
4010
4011
|
});
|
|
4011
|
-
A.filter =
|
|
4012
|
+
A.filter = S;
|
|
4012
4013
|
let I;
|
|
4013
4014
|
try {
|
|
4014
|
-
I = await
|
|
4015
|
+
I = await xr(A);
|
|
4015
4016
|
} catch (O) {
|
|
4016
4017
|
throw new re(le.QueryFeaturesError, o.errors.queryError, O);
|
|
4017
4018
|
}
|
|
4018
|
-
const
|
|
4019
|
+
const P = Lo(n, r);
|
|
4019
4020
|
d.data = {
|
|
4020
4021
|
mean: v,
|
|
4021
4022
|
stddev: B,
|
|
4022
4023
|
min: N,
|
|
4023
4024
|
max: T,
|
|
4024
|
-
median: Number(
|
|
4025
|
+
median: Number(L),
|
|
4025
4026
|
bins: I?.bins,
|
|
4026
4027
|
count: r,
|
|
4027
|
-
nulls:
|
|
4028
|
+
nulls: P,
|
|
4028
4029
|
sum: w ?? void 0
|
|
4029
4030
|
}, d.data.bins.length > 0 && (d.data.bins[d.data.bins.length - 1].isLastBin = !0);
|
|
4030
4031
|
}
|
|
4031
4032
|
return d;
|
|
4032
4033
|
}
|
|
4033
|
-
async function
|
|
4034
|
+
async function Ga(t) {
|
|
4034
4035
|
const { chartConfig: e, queryConfig: i, queryObject: a, abortKey: r, abortSignal: n, errorStrings: s, view: o } = t, { series: u } = e, c = u[0];
|
|
4035
4036
|
let l;
|
|
4036
4037
|
if (ie(a))
|
|
@@ -4050,7 +4051,7 @@ async function Ua(t) {
|
|
|
4050
4051
|
abortKey: r,
|
|
4051
4052
|
abortSignal: n
|
|
4052
4053
|
});
|
|
4053
|
-
l = { valid: !0 }, !f || m ? l =
|
|
4054
|
+
l = { valid: !0 }, !f || m ? l = za(c.dataTransformationType, m) : l = await Po({
|
|
4054
4055
|
chartConfig: e,
|
|
4055
4056
|
queryObject: a,
|
|
4056
4057
|
queryConfig: i,
|
|
@@ -4090,7 +4091,7 @@ const qi = {
|
|
|
4090
4091
|
groupByCaseEnd: "ELSE 'OUT' END"
|
|
4091
4092
|
};
|
|
4092
4093
|
function Md(t) {
|
|
4093
|
-
return _(t.series) !==
|
|
4094
|
+
return _(t.series) !== h.BoxPlotSeries ? C.xAxisField : t.series[0].x;
|
|
4094
4095
|
}
|
|
4095
4096
|
function Dd(t) {
|
|
4096
4097
|
const e = ui(t);
|
|
@@ -4130,7 +4131,7 @@ const Io = [
|
|
|
4130
4131
|
"it-IT"
|
|
4131
4132
|
];
|
|
4132
4133
|
function Id(t) {
|
|
4133
|
-
const { t9nLocale: e } = ze(t ?? document.documentElement), i =
|
|
4134
|
+
const { t9nLocale: e } = ze(t ?? document.documentElement), i = Ua(t ?? document.documentElement), a = $r(t ?? document.documentElement) === "rtl";
|
|
4134
4135
|
return { locale: e, formatLocale: i, rtl: a };
|
|
4135
4136
|
}
|
|
4136
4137
|
function Ed(t) {
|
|
@@ -4163,30 +4164,30 @@ function Eo(t) {
|
|
|
4163
4164
|
const e = Array.from(ra);
|
|
4164
4165
|
return Io.includes(t) && !e.includes(t);
|
|
4165
4166
|
}
|
|
4166
|
-
function
|
|
4167
|
+
function Ua(t) {
|
|
4167
4168
|
const { lang: e, t9nLocale: i } = ze(t);
|
|
4168
4169
|
return Eo(e) ? e : i;
|
|
4169
4170
|
}
|
|
4170
4171
|
function Dt(t) {
|
|
4171
4172
|
const { dataInfo: e, chartType: i, subError: a } = t;
|
|
4172
4173
|
switch (e.valid = !1, i) {
|
|
4173
|
-
case
|
|
4174
|
-
case
|
|
4174
|
+
case h.BarSeries:
|
|
4175
|
+
case h.ComboLineAndBarSeries:
|
|
4175
4176
|
e.invalidType = j.BarElementExceedsLimit;
|
|
4176
4177
|
break;
|
|
4177
|
-
case
|
|
4178
|
+
case h.LineSeries:
|
|
4178
4179
|
e.invalidType = j.LineChartExceedsLimit;
|
|
4179
4180
|
break;
|
|
4180
|
-
case
|
|
4181
|
+
case h.PieSeries:
|
|
4181
4182
|
e.invalidType = j.PieChartExceedsLimit;
|
|
4182
4183
|
break;
|
|
4183
|
-
case
|
|
4184
|
+
case h.GaugeSeries:
|
|
4184
4185
|
e.invalidType = j.GaugeExceedsLimit;
|
|
4185
4186
|
break;
|
|
4186
|
-
case
|
|
4187
|
+
case h.BoxPlotSeries:
|
|
4187
4188
|
a?.outlierLimit === !0 ? e.invalidType = j.BoxPlotOutliersExceedsLimit : e.invalidType = j.BoxPlotExceedsLimit;
|
|
4188
4189
|
break;
|
|
4189
|
-
case
|
|
4190
|
+
case h.HeatSeries:
|
|
4190
4191
|
e.invalidType = j.HeatChartExceedsLimit;
|
|
4191
4192
|
break;
|
|
4192
4193
|
}
|
|
@@ -4202,7 +4203,7 @@ function $d(t) {
|
|
|
4202
4203
|
seriesCount: r,
|
|
4203
4204
|
queryObject: n,
|
|
4204
4205
|
filterBySelection: s,
|
|
4205
|
-
formatLocale: o =
|
|
4206
|
+
formatLocale: o = Ua(document.documentElement),
|
|
4206
4207
|
isTemporalChart: u,
|
|
4207
4208
|
isGaugeChartByFeature: c,
|
|
4208
4209
|
errorStrings: l
|
|
@@ -4213,16 +4214,16 @@ function $d(t) {
|
|
|
4213
4214
|
switch (e) {
|
|
4214
4215
|
case j.BarElementExceedsLimit: {
|
|
4215
4216
|
g = l.modalHeaders.tooManyFeatures;
|
|
4216
|
-
let
|
|
4217
|
-
r !== void 0 && (r <= y.maxBarChartSeriesCount ? r === 1 ? (
|
|
4218
|
-
const B = m.format(
|
|
4219
|
-
d = Be(
|
|
4217
|
+
let b = Number.NaN, v = Number.NaN, x = "";
|
|
4218
|
+
r !== void 0 && (r <= y.maxBarChartSeriesCount ? r === 1 ? (x = l.errors.uniqueSeriesBarCountCannotExceedLimit, b = y.maxBarUniqueSeriesCountTotal) : r === 2 ? (x = l.errors.twoSeriesBarCountCannotExceedLimit, b = y.maxBarTwoSeriesCountTotal, v = y.maxBarTwoSeriesCountPerSeries) : r > 2 && (x = l.errors.threePlusSeriesBarCountCannotExceedLimit, b = y.maxBarThreePlusSeriesCountTotal, v = y.maxBarThreePlusSeriesCountPerSeries) : (x = l.errors.barSeriesCountCannotExceedLimit, v = y.maxBarChartSeriesCount));
|
|
4219
|
+
const B = m.format(b), N = m.format(v), T = a !== void 0 ? m.format(a) : "";
|
|
4220
|
+
d = Be(x, {
|
|
4220
4221
|
totalLimit: B,
|
|
4221
4222
|
seriesLimit: N,
|
|
4222
4223
|
elementCount: T
|
|
4223
4224
|
}), f = {
|
|
4224
4225
|
actualCount: a ?? Number.NaN,
|
|
4225
|
-
totalLimit:
|
|
4226
|
+
totalLimit: b,
|
|
4226
4227
|
seriesLimit: v
|
|
4227
4228
|
};
|
|
4228
4229
|
break;
|
|
@@ -4230,16 +4231,16 @@ function $d(t) {
|
|
|
4230
4231
|
case j.LineChartExceedsLimit:
|
|
4231
4232
|
{
|
|
4232
4233
|
g = l.modalHeaders.tooManyFeatures;
|
|
4233
|
-
let
|
|
4234
|
-
r !== void 0 && (r <= y.maxLineChartSeriesCount ? r === 1 ? (
|
|
4235
|
-
const B = m.format(
|
|
4236
|
-
d = Be(
|
|
4234
|
+
let b = Number.NaN, v = Number.NaN, x = "";
|
|
4235
|
+
r !== void 0 && (r <= y.maxLineChartSeriesCount ? r === 1 ? (x = u ? l.errors.uniqueTemporalSeriesLineCountCannotExceedLimit : l.errors.uniqueSeriesLineCountCannotExceedLimit, b = y.maxLineUniqueSeriesCountTotal) : r === 2 ? (x = u ? l.errors.twoTemporalSeriesLineCountCannotExceedLimit : l.errors.twoSeriesLineCountCannotExceedLimit, b = y.maxLineTwoSeriesCountTotal, v = y.maxLineTwoSeriesCountPerSeries) : r > 2 && (x = u ? l.errors.threePlusTemporalSeriesLineCountCannotExceedLimit : l.errors.threePlusSeriesLineCountCannotExceedLimit, b = y.maxLineThreePlusSeriesCountTotal, v = y.maxLineThreePlusSeriesCountPerSeries) : (x = l.errors.lineSeriesCountCannotExceedLimit, v = y.maxLineChartSeriesCount));
|
|
4236
|
+
const B = m.format(b), N = m.format(v), T = a !== void 0 ? m.format(a) : "";
|
|
4237
|
+
d = Be(x, {
|
|
4237
4238
|
elementCount: T,
|
|
4238
4239
|
seriesLimit: N,
|
|
4239
4240
|
totalLimit: B
|
|
4240
4241
|
}), f = {
|
|
4241
4242
|
actualCount: a ?? Number.NaN,
|
|
4242
|
-
totalLimit:
|
|
4243
|
+
totalLimit: b,
|
|
4243
4244
|
seriesLimit: v
|
|
4244
4245
|
};
|
|
4245
4246
|
}
|
|
@@ -4247,16 +4248,16 @@ function $d(t) {
|
|
|
4247
4248
|
case j.BoxPlotExceedsLimit:
|
|
4248
4249
|
{
|
|
4249
4250
|
g = l.modalHeaders.tooManyFeatures;
|
|
4250
|
-
let
|
|
4251
|
-
r !== void 0 && (r <= y.maxBoxPlotSeriesCount ? r === 1 ? (
|
|
4252
|
-
const B = m.format(
|
|
4253
|
-
d = Be(
|
|
4251
|
+
let b = Number.NaN, v = Number.NaN, x = "";
|
|
4252
|
+
r !== void 0 && (r <= y.maxBoxPlotSeriesCount ? r === 1 ? (x = l.errors.uniqueSeriesBoxCountCannotExceedLimit, b = y.maxBoxUniqueSeriesCountTotal) : r === 2 ? (x = l.errors.twoSeriesBoxCountCannotExceedLimit, b = y.maxBoxTwoSeriesCountTotal, v = y.maxBoxTwoSeriesCountPerSeries) : r > 2 && (x = l.errors.threePlusBoxLineCountCannotExceedLimit, b = y.maxBoxThreePlusSeriesCountTotal, v = y.maxBoxThreePlusSeriesCountPerSeries) : (x = l.errors.boxSeriesCountCannotExceedLimit, v = y.maxBoxPlotSeriesCount));
|
|
4253
|
+
const B = m.format(b), N = m.format(v), T = a !== void 0 ? m.format(a) : "";
|
|
4254
|
+
d = Be(x, {
|
|
4254
4255
|
elementCount: T,
|
|
4255
4256
|
seriesLimit: N,
|
|
4256
4257
|
totalLimit: B
|
|
4257
4258
|
}), f = {
|
|
4258
4259
|
actualCount: a ?? Number.NaN,
|
|
4259
|
-
totalLimit:
|
|
4260
|
+
totalLimit: b,
|
|
4260
4261
|
seriesLimit: v
|
|
4261
4262
|
};
|
|
4262
4263
|
}
|
|
@@ -4264,19 +4265,19 @@ function $d(t) {
|
|
|
4264
4265
|
case j.BoxPlotOutliersExceedsLimit:
|
|
4265
4266
|
{
|
|
4266
4267
|
g = l.modalHeaders.tooManyFeatures;
|
|
4267
|
-
const
|
|
4268
|
-
d = Be(
|
|
4269
|
-
totalLimit:
|
|
4268
|
+
const b = l.errors.boxSeriesOutlierCannotExceedLimit, v = y.maxBoxPlotOutlierLimit, x = m.format(v);
|
|
4269
|
+
d = Be(b, {
|
|
4270
|
+
totalLimit: x
|
|
4270
4271
|
}), f = { actualCount: a ?? Number.NaN, totalLimit: v };
|
|
4271
4272
|
}
|
|
4272
4273
|
break;
|
|
4273
4274
|
case j.HeatChartExceedsLimit:
|
|
4274
4275
|
{
|
|
4275
4276
|
g = l.modalHeaders.tooManyFeatures;
|
|
4276
|
-
const
|
|
4277
|
-
d = Be(
|
|
4277
|
+
const b = l.errors.heatChartCannotExceedLimit, v = y.maxHeatChartCellLimit, x = m.format(v), B = a !== void 0 ? m.format(a) : "";
|
|
4278
|
+
d = Be(b, {
|
|
4278
4279
|
featureCount: B,
|
|
4279
|
-
totalLimit:
|
|
4280
|
+
totalLimit: x
|
|
4280
4281
|
}), f = {
|
|
4281
4282
|
actualCount: a ?? Number.NaN,
|
|
4282
4283
|
totalLimit: v
|
|
@@ -4286,10 +4287,10 @@ function $d(t) {
|
|
|
4286
4287
|
case j.PieChartExceedsLimit:
|
|
4287
4288
|
{
|
|
4288
4289
|
g = l.modalHeaders.tooManyFeatures;
|
|
4289
|
-
const
|
|
4290
|
-
d = Be(
|
|
4290
|
+
const b = l.errors.pieChartSlicesCannotExceedLimit, v = y.maxPieChartSliceCountTotal, x = m.format(v), B = a !== void 0 ? m.format(a) : "";
|
|
4291
|
+
d = Be(b, {
|
|
4291
4292
|
sliceCount: B,
|
|
4292
|
-
totalLimit:
|
|
4293
|
+
totalLimit: x
|
|
4293
4294
|
}), f = {
|
|
4294
4295
|
actualCount: a ?? Number.NaN,
|
|
4295
4296
|
totalLimit: v
|
|
@@ -4299,10 +4300,10 @@ function $d(t) {
|
|
|
4299
4300
|
case j.GaugeExceedsLimit:
|
|
4300
4301
|
{
|
|
4301
4302
|
g = l.modalHeaders.tooManyFeatures;
|
|
4302
|
-
const
|
|
4303
|
-
d = Be(
|
|
4303
|
+
const b = l.errors.gaugeCannotExceedLimit, v = y.maxGaugeByFeaturesLimit, x = m.format(v), B = a !== void 0 ? m.format(a) : "";
|
|
4304
|
+
d = Be(b, {
|
|
4304
4305
|
featureCount: B,
|
|
4305
|
-
totalLimit:
|
|
4306
|
+
totalLimit: x
|
|
4306
4307
|
}), f = {
|
|
4307
4308
|
actualCount: a ?? Number.NaN,
|
|
4308
4309
|
totalLimit: v
|
|
@@ -4336,9 +4337,9 @@ function $d(t) {
|
|
|
4336
4337
|
case j.BadData:
|
|
4337
4338
|
}
|
|
4338
4339
|
if (d === l.errors.defaultInvalidChart && (e === j.BarElementExceedsLimit || e === j.LineChartExceedsLimit || e === j.HeatChartExceedsLimit || e === j.PieChartExceedsLimit || e === j.GaugeExceedsLimit || e === j.BoxPlotExceedsLimit) && typeof a == "number" && typeof r == "number" && a / r > p) {
|
|
4339
|
-
const
|
|
4340
|
+
const b = a / r;
|
|
4340
4341
|
d = Be(l.errors.categoryCountCannotExceedLimit, {
|
|
4341
|
-
categoryCount: m.format(
|
|
4342
|
+
categoryCount: m.format(b),
|
|
4342
4343
|
maxCategoryCount: m.format(p)
|
|
4343
4344
|
});
|
|
4344
4345
|
}
|
|
@@ -4386,20 +4387,20 @@ function hi(t) {
|
|
|
4386
4387
|
showOutliers: !1,
|
|
4387
4388
|
standardizeValues: !0
|
|
4388
4389
|
};
|
|
4389
|
-
let
|
|
4390
|
-
if (o[
|
|
4390
|
+
let S = K(u);
|
|
4391
|
+
if (o[S] = ni({ mean: d, stdDev: f, value: g }), m === E.Min || m === E.Max) {
|
|
4391
4392
|
u = {
|
|
4392
4393
|
...u,
|
|
4393
4394
|
key: m,
|
|
4394
4395
|
showOutliers: !0,
|
|
4395
4396
|
standardizeValues: !0
|
|
4396
|
-
},
|
|
4397
|
+
}, S = K(u), u = {
|
|
4397
4398
|
...u,
|
|
4398
4399
|
standardizeValues: !1,
|
|
4399
4400
|
splitByValue: r
|
|
4400
4401
|
};
|
|
4401
|
-
const
|
|
4402
|
-
g = Number(e[
|
|
4402
|
+
const b = K(u);
|
|
4403
|
+
g = Number(e[b]), Number.isFinite(g) && (o[S] = ni({
|
|
4403
4404
|
mean: d,
|
|
4404
4405
|
stdDev: f,
|
|
4405
4406
|
value: g
|
|
@@ -4544,21 +4545,21 @@ function Vi(t) {
|
|
|
4544
4545
|
let d;
|
|
4545
4546
|
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 ");
|
|
4546
4547
|
}
|
|
4547
|
-
function
|
|
4548
|
+
function Ya(t) {
|
|
4548
4549
|
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 } = Vt();
|
|
4549
4550
|
let d = [], f = [], m = 1;
|
|
4550
4551
|
return e.forEach((y, p) => {
|
|
4551
|
-
const { outlierMinThreshold: g, outlierMaxThreshold:
|
|
4552
|
-
if (typeof g == "number" && typeof
|
|
4553
|
-
const
|
|
4552
|
+
const { outlierMinThreshold: g, outlierMaxThreshold: S } = jo(y, o);
|
|
4553
|
+
if (typeof g == "number" && typeof S == "number") {
|
|
4554
|
+
const b = {
|
|
4554
4555
|
yField: i,
|
|
4555
4556
|
outlierMinThreshold: g,
|
|
4556
|
-
outlierMaxThreshold:
|
|
4557
|
+
outlierMaxThreshold: S
|
|
4557
4558
|
};
|
|
4558
|
-
(r === F.BoxPlotMonoFieldAndCategory || r === F.BoxPlotMultiFieldsAndCategory || r === F.BoxPlotMonoFieldAndCategoryAndSplitBy) && a !== void 0 && a in y && (
|
|
4559
|
+
(r === F.BoxPlotMonoFieldAndCategory || r === F.BoxPlotMultiFieldsAndCategory || r === F.BoxPlotMonoFieldAndCategoryAndSplitBy) && a !== void 0 && a in y && (b.xField = a, b.xValue = di({
|
|
4559
4560
|
value: y[a],
|
|
4560
4561
|
dataContext: y
|
|
4561
|
-
})), (r === F.BoxPlotMonoFieldAndSplitBy || r === F.BoxPlotMultiFieldsAndSplitBy || r === F.BoxPlotMonoFieldAndCategoryAndSplitBy) && n !== void 0 && n in y && (
|
|
4562
|
+
})), (r === F.BoxPlotMonoFieldAndSplitBy || r === F.BoxPlotMultiFieldsAndSplitBy || r === F.BoxPlotMonoFieldAndCategoryAndSplitBy) && n !== void 0 && n in y && (b.splitByField = n, b.splitByValue = y[n]), d.push(Vi({ ...b, target: "outliers" })), f.push(Vi({ ...b, target: "alternativeData" })), (m % l === 0 || p === e.length - 1) && (u.push(Y(d, "OR")), c.push(Y(f, "OR")), d = [], f = []);
|
|
4562
4563
|
}
|
|
4563
4564
|
m += 1;
|
|
4564
4565
|
}), { outliersFilterBatches: u, dataWithoutOutliersFilterBatches: c };
|
|
@@ -4595,9 +4596,9 @@ function Ho(t) {
|
|
|
4595
4596
|
async function zo(t) {
|
|
4596
4597
|
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 = [];
|
|
4597
4598
|
for (let v = 0; v < p.length; v += 1) {
|
|
4598
|
-
const
|
|
4599
|
+
const x = p[v], { outliersFilterBatches: B } = Ya({
|
|
4599
4600
|
data: i,
|
|
4600
|
-
yField:
|
|
4601
|
+
yField: x,
|
|
4601
4602
|
x: d,
|
|
4602
4603
|
chartSubType: c,
|
|
4603
4604
|
splitByField: f
|
|
@@ -4606,8 +4607,8 @@ async function zo(t) {
|
|
|
4606
4607
|
const T = B[N];
|
|
4607
4608
|
if (T !== "") {
|
|
4608
4609
|
const w = [];
|
|
4609
|
-
d !== C.boxPlot.boxPlotCategory && w.push(d), w.push(
|
|
4610
|
-
const
|
|
4610
|
+
d !== C.boxPlot.boxPlotCategory && w.push(d), w.push(x), f !== "" && w.push(f), w.push(y);
|
|
4611
|
+
const L = {
|
|
4611
4612
|
...a,
|
|
4612
4613
|
where: Y([a.where, T]),
|
|
4613
4614
|
groupByFieldsForStatistics: void 0,
|
|
@@ -4619,7 +4620,7 @@ async function zo(t) {
|
|
|
4619
4620
|
g.push(
|
|
4620
4621
|
Fe({
|
|
4621
4622
|
queryObject: r,
|
|
4622
|
-
queryConfig:
|
|
4623
|
+
queryConfig: L,
|
|
4623
4624
|
featureCount: 1,
|
|
4624
4625
|
// TODO: pre-count to trigger batching
|
|
4625
4626
|
errorStrings: s,
|
|
@@ -4630,10 +4631,10 @@ async function zo(t) {
|
|
|
4630
4631
|
}
|
|
4631
4632
|
}
|
|
4632
4633
|
}
|
|
4633
|
-
const
|
|
4634
|
-
for (let v = 0; v <
|
|
4635
|
-
const
|
|
4636
|
-
|
|
4634
|
+
const S = await Promise.all(g), b = /* @__PURE__ */ new Map();
|
|
4635
|
+
for (let v = 0; v < S.length; v += 1) {
|
|
4636
|
+
const x = S[v], B = p[v];
|
|
4637
|
+
x.forEach((N) => {
|
|
4637
4638
|
const T = { ...N.attributes };
|
|
4638
4639
|
if (T[B] !== void 0) {
|
|
4639
4640
|
d === C.boxPlot.boxPlotCategory && (T[C.boxPlot.boxPlotCategory] = B);
|
|
@@ -4657,13 +4658,13 @@ async function zo(t) {
|
|
|
4657
4658
|
};
|
|
4658
4659
|
break;
|
|
4659
4660
|
}
|
|
4660
|
-
const
|
|
4661
|
-
T[
|
|
4662
|
-
const I = `${T[d]}-${T[f]}-${A}`,
|
|
4661
|
+
const L = K(w), A = T[B];
|
|
4662
|
+
T[L] = A;
|
|
4663
|
+
const I = `${T[d]}-${T[f]}-${A}`, P = b.get(I);
|
|
4663
4664
|
if (T[W.uniqueIdsName] = [
|
|
4664
|
-
...
|
|
4665
|
+
...P?.[W.uniqueIdsName] ?? [],
|
|
4665
4666
|
T[y]
|
|
4666
|
-
], delete T[y],
|
|
4667
|
+
], delete T[y], dr(c)) {
|
|
4667
4668
|
const O = K({
|
|
4668
4669
|
...w,
|
|
4669
4670
|
standardizeValues: !0
|
|
@@ -4682,11 +4683,11 @@ async function zo(t) {
|
|
|
4682
4683
|
stdDev: $
|
|
4683
4684
|
}));
|
|
4684
4685
|
}
|
|
4685
|
-
delete T[B], T[C.boxPlot.boxPlotOutlierId] = !0,
|
|
4686
|
+
delete T[B], T[C.boxPlot.boxPlotOutlierId] = !0, b.set(I, T);
|
|
4686
4687
|
}
|
|
4687
4688
|
});
|
|
4688
4689
|
}
|
|
4689
|
-
return Array.from(
|
|
4690
|
+
return Array.from(b.values());
|
|
4690
4691
|
}
|
|
4691
4692
|
async function Wo(t) {
|
|
4692
4693
|
const {
|
|
@@ -4701,29 +4702,29 @@ async function Wo(t) {
|
|
|
4701
4702
|
abortSignal: c
|
|
4702
4703
|
} = t;
|
|
4703
4704
|
let l = [];
|
|
4704
|
-
const { series: d, showMean: f } = n, m = Ci({ showMean: f, seriesConfig: d }), y = k(d), p = Re(n), { x: g } = p,
|
|
4705
|
-
for (let
|
|
4706
|
-
const B = m[
|
|
4705
|
+
const { series: d, showMean: f } = n, m = Ci({ showMean: f, seriesConfig: d }), y = k(d), p = Re(n), { x: g } = p, S = te(p.query?.where), b = [];
|
|
4706
|
+
for (let x = 0; x < m.length; x += 1) {
|
|
4707
|
+
const B = m[x], { dataWithoutOutliersFilterBatches: N } = Ya({
|
|
4707
4708
|
data: e,
|
|
4708
4709
|
yField: B,
|
|
4709
4710
|
x: g,
|
|
4710
4711
|
chartSubType: y,
|
|
4711
|
-
splitByField:
|
|
4712
|
+
splitByField: S
|
|
4712
4713
|
});
|
|
4713
4714
|
for (let T = 0; T < N.length; T += 1) {
|
|
4714
|
-
const w = N[T],
|
|
4715
|
+
const w = N[T], L = {
|
|
4715
4716
|
...a,
|
|
4716
4717
|
where: Y([a.where, w])
|
|
4717
4718
|
};
|
|
4718
|
-
|
|
4719
|
+
L.outStatistics !== void 0 && (L.outStatistics = L.outStatistics?.filter(
|
|
4719
4720
|
(A) => (A.statisticType === D.Minimum || A.statisticType === D.Maximum) && A.onStatisticField === B
|
|
4720
4721
|
).map((A) => ({
|
|
4721
4722
|
...A,
|
|
4722
4723
|
outStatisticFieldName: `${A.outStatisticFieldName}${C.boxPlot.boxPlotOutliersSuffix}`
|
|
4723
|
-
}))),
|
|
4724
|
+
}))), b.push(
|
|
4724
4725
|
_t({
|
|
4725
4726
|
queryObject: i,
|
|
4726
|
-
uniqueQuery:
|
|
4727
|
+
uniqueQuery: L,
|
|
4727
4728
|
chartConfig: n,
|
|
4728
4729
|
elementCount: r,
|
|
4729
4730
|
isTimeBinningSeries: !1,
|
|
@@ -4736,12 +4737,12 @@ async function Wo(t) {
|
|
|
4736
4737
|
);
|
|
4737
4738
|
}
|
|
4738
4739
|
}
|
|
4739
|
-
const v = await Promise.all(
|
|
4740
|
-
for (let
|
|
4741
|
-
l.push(...v[
|
|
4740
|
+
const v = await Promise.all(b);
|
|
4741
|
+
for (let x = 0; x < v.length; x += 1)
|
|
4742
|
+
l.push(...v[x]);
|
|
4742
4743
|
return y !== F.BoxPlotMonoFieldAndCategoryAndSplitBy && y !== F.BoxPlotMonoField && (l = Ft({
|
|
4743
4744
|
data: l,
|
|
4744
|
-
x:
|
|
4745
|
+
x: S !== void 0 && S !== "" ? S : g
|
|
4745
4746
|
})), l;
|
|
4746
4747
|
}
|
|
4747
4748
|
async function Go(t) {
|
|
@@ -4792,7 +4793,7 @@ function Uo(t) {
|
|
|
4792
4793
|
return c !== void 0 && (u = { ...o, ...c }), u;
|
|
4793
4794
|
});
|
|
4794
4795
|
}
|
|
4795
|
-
function
|
|
4796
|
+
function Za(t) {
|
|
4796
4797
|
const { chartConfig: e, data: i, calculateZScore: a = !1, meanAndStdDevPerField: r } = t, { series: n, showMean: s } = e, o = Re(e), u = k(e.series), { x: c } = o, l = Ci({ showMean: s, seriesConfig: n });
|
|
4797
4798
|
let d = i;
|
|
4798
4799
|
if (i?.[0] !== void 0) {
|
|
@@ -4895,7 +4896,7 @@ async function Yo(t) {
|
|
|
4895
4896
|
chartConfig: n
|
|
4896
4897
|
});
|
|
4897
4898
|
}
|
|
4898
|
-
d =
|
|
4899
|
+
d = Za({
|
|
4899
4900
|
chartConfig: n,
|
|
4900
4901
|
data: d,
|
|
4901
4902
|
meanAndStdDevPerField: y,
|
|
@@ -4919,7 +4920,7 @@ function Ri(t) {
|
|
|
4919
4920
|
);
|
|
4920
4921
|
return r && n.length > 1 && n.sort((s, o) => Zo(s, o, r)), n.map((s) => ({ [i]: s }));
|
|
4921
4922
|
}
|
|
4922
|
-
function
|
|
4923
|
+
function Xa(t) {
|
|
4923
4924
|
const { chartConfig: e, chartData: i } = t;
|
|
4924
4925
|
return {
|
|
4925
4926
|
xAxisData: Ri({
|
|
@@ -4936,7 +4937,7 @@ function Ja(t) {
|
|
|
4936
4937
|
}
|
|
4937
4938
|
function $i(t) {
|
|
4938
4939
|
const { orderBy: e, axisFormatOptions: i } = t;
|
|
4939
|
-
return e !== void 0 && i !== void 0 && (!Array.isArray(e) || i?.type ===
|
|
4940
|
+
return e !== void 0 && i !== void 0 && (!Array.isArray(e) || i?.type === h.CategoryAxisFormat);
|
|
4940
4941
|
}
|
|
4941
4942
|
function ki(t, e, i) {
|
|
4942
4943
|
let a = 0;
|
|
@@ -4971,7 +4972,7 @@ function Xo(t) {
|
|
|
4971
4972
|
}
|
|
4972
4973
|
function Jo(t) {
|
|
4973
4974
|
const { chartConfig: e, chartData: i } = t;
|
|
4974
|
-
i.heatChartAxesData =
|
|
4975
|
+
i.heatChartAxesData = Xa({
|
|
4975
4976
|
chartConfig: e,
|
|
4976
4977
|
chartData: i.dataItems
|
|
4977
4978
|
});
|
|
@@ -4989,8 +4990,8 @@ function Ot(t) {
|
|
|
4989
4990
|
else if (c?.[0] !== void 0 && e !== void 0 && e.length > 1) {
|
|
4990
4991
|
const { orderBy: l } = c[0];
|
|
4991
4992
|
let { sortingField: d } = c[0];
|
|
4992
|
-
const f = i.orderOptions?.data?.orderType === De.Category, m = c[0].preferLabel !== !1, y = s === F.BarAndLineFromFields || s === F.PieFromFields || s === F.BoxPlotMultiFields || s === F.BoxPlotMultiFieldsAndSplitBy, p = y || o ===
|
|
4993
|
-
if (f && p && (!m || (o ===
|
|
4993
|
+
const f = i.orderOptions?.data?.orderType === De.Category, m = c[0].preferLabel !== !1, y = s === F.BarAndLineFromFields || s === F.PieFromFields || s === F.BoxPlotMultiFields || s === F.BoxPlotMultiFieldsAndSplitBy, p = y || o === h.PieSeries, g = s === F.PieNoAggregation || s === F.BarAndLineNoAggregation || s === F.BarAndLineSplitByNoAggregation;
|
|
4994
|
+
if (f && p && (!m || (o === h.LineSeries || o === h.RadarSeries) && u === h.NumberAxisFormat) && (d = C.originalCategoryValue), Array.isArray(l))
|
|
4994
4995
|
In({
|
|
4995
4996
|
arrayToSort: e,
|
|
4996
4997
|
orderBy: l,
|
|
@@ -5000,12 +5001,12 @@ function Ot(t) {
|
|
|
5000
5001
|
preferLabel: m
|
|
5001
5002
|
});
|
|
5002
5003
|
else {
|
|
5003
|
-
const
|
|
5004
|
+
const S = u === h.DateAxisFormat && f;
|
|
5004
5005
|
pt({
|
|
5005
5006
|
arrayToSort: e,
|
|
5006
5007
|
orderBy: l,
|
|
5007
5008
|
sortingField: d,
|
|
5008
|
-
forceAscendingOrder:
|
|
5009
|
+
forceAscendingOrder: S,
|
|
5009
5010
|
isNonAggregated: g,
|
|
5010
5011
|
sortByCategory: f,
|
|
5011
5012
|
preferLabel: m,
|
|
@@ -5048,20 +5049,20 @@ async function Qd(t) {
|
|
|
5048
5049
|
if (r && !ie(i)) {
|
|
5049
5050
|
const { series: o, chartRenderer: u } = a, c = Ko(u), l = c ? tt.ChartRenderer : tt.LayerRenderer, d = i ? z(i) : void 0, f = c ?? d?.renderer;
|
|
5050
5051
|
let m;
|
|
5051
|
-
d && l === tt.LayerRenderer ? s = await
|
|
5052
|
+
d && l === tt.LayerRenderer ? s = await ka(d) : l === tt.ChartRenderer && (s = Xn(f));
|
|
5052
5053
|
const y = _n(c, d?.renderer), p = Gn({
|
|
5053
5054
|
chartRenderer: u,
|
|
5054
5055
|
queryObject: i
|
|
5055
|
-
}), g = _(o),
|
|
5056
|
+
}), g = _(o), S = k(o), b = Re(a), v = te(b.query?.where);
|
|
5056
5057
|
m = /* @__PURE__ */ new Map();
|
|
5057
|
-
for (let
|
|
5058
|
-
const B = e[
|
|
5058
|
+
for (let x = 0; x < (g === h.HistogramSeries && e.length > 0 ? 1 : e.length); x += 1) {
|
|
5059
|
+
const B = e[x], N = await Un({
|
|
5059
5060
|
seriesConfig: a.series,
|
|
5060
5061
|
dataItem: B,
|
|
5061
5062
|
renderer: f,
|
|
5062
5063
|
rendererType: y,
|
|
5063
5064
|
rendererOrigin: l,
|
|
5064
|
-
chartSubType:
|
|
5065
|
+
chartSubType: S,
|
|
5065
5066
|
splitByField: v,
|
|
5066
5067
|
graphicTemplate: p,
|
|
5067
5068
|
mapAttributesToSymbol: m,
|
|
@@ -5073,7 +5074,7 @@ async function Qd(t) {
|
|
|
5073
5074
|
return { dataItems: e, colorMatchApplied: n, rendererFieldNames: s };
|
|
5074
5075
|
}
|
|
5075
5076
|
async function el(t) {
|
|
5076
|
-
const { queryObject: e, queryConfig: i, chartConfig: a, errorStrings: r, abortKey: n, abortSignal: s } = t, o = a.series[0], { x: u, valueConversion: c } = o, l =
|
|
5077
|
+
const { queryObject: e, queryConfig: i, chartConfig: a, errorStrings: r, abortKey: n, abortSignal: s } = t, o = a.series[0], { x: u, valueConversion: c } = o, l = cr(a), d = await Fe({
|
|
5077
5078
|
queryObject: e,
|
|
5078
5079
|
queryConfig: i,
|
|
5079
5080
|
featureCount: i.num ?? 1,
|
|
@@ -5096,9 +5097,9 @@ async function el(t) {
|
|
|
5096
5097
|
return f;
|
|
5097
5098
|
}
|
|
5098
5099
|
async function tl(t) {
|
|
5099
|
-
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 =
|
|
5100
|
+
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 = cr(i);
|
|
5100
5101
|
let f = !0, m;
|
|
5101
|
-
if (d && (m = (await
|
|
5102
|
+
if (d && (m = (await or({
|
|
5102
5103
|
chartConfig: i,
|
|
5103
5104
|
queryObject: e,
|
|
5104
5105
|
queryConfig: a,
|
|
@@ -5109,7 +5110,7 @@ async function tl(t) {
|
|
|
5109
5110
|
})).elementCount, r?.behaviorAfterLimit !== lt.RenderUpToTheLimit && (f = Ae({
|
|
5110
5111
|
count: m ?? 0,
|
|
5111
5112
|
seriesCount: i.series.length,
|
|
5112
|
-
chartType:
|
|
5113
|
+
chartType: h.GaugeSeries,
|
|
5113
5114
|
chartLimits: r
|
|
5114
5115
|
})), r && (Number.isFinite(l) || Number.isFinite(m)))) {
|
|
5115
5116
|
const y = Math.min(l ?? Number.NaN, m ?? Number.NaN);
|
|
@@ -5117,7 +5118,7 @@ async function tl(t) {
|
|
|
5117
5118
|
Number.isFinite(y) && (p = {
|
|
5118
5119
|
...r,
|
|
5119
5120
|
maxGaugeByFeaturesLimit: y
|
|
5120
|
-
}),
|
|
5121
|
+
}), La({ chartConfig: i, chartLimits: p, uniqueQuery: a });
|
|
5121
5122
|
}
|
|
5122
5123
|
if (Number.isNaN(f) || f) {
|
|
5123
5124
|
const y = await el({
|
|
@@ -5132,7 +5133,7 @@ async function tl(t) {
|
|
|
5132
5133
|
} else
|
|
5133
5134
|
u.count = m, Dt({
|
|
5134
5135
|
dataInfo: u,
|
|
5135
|
-
chartType:
|
|
5136
|
+
chartType: h.GaugeSeries
|
|
5136
5137
|
});
|
|
5137
5138
|
return u;
|
|
5138
5139
|
}
|
|
@@ -5192,15 +5193,15 @@ function il(t) {
|
|
|
5192
5193
|
C.technicalFieldSplitByField,
|
|
5193
5194
|
W.uniqueIdsName,
|
|
5194
5195
|
Q.valueField,
|
|
5195
|
-
...
|
|
5196
|
+
...qr
|
|
5196
5197
|
], d = (p, g) => {
|
|
5197
|
-
const
|
|
5198
|
-
|
|
5199
|
-
const
|
|
5200
|
-
|
|
5198
|
+
const S = g[C.originalCategoryValue];
|
|
5199
|
+
S !== void 0 && r && (g[r] = S);
|
|
5200
|
+
const b = g[C.originalYCategoryValue];
|
|
5201
|
+
b !== void 0 && n && (g[n] = b), r && g[Q.xField] !== void 0 && (g[r] = g[C.originalCategoryValue] !== void 0 ? g[C.originalCategoryValue] : g[Q.xField], delete g[Q.xField]), n && g[Q.yField] !== void 0 && (g[n] = g[C.originalYCategoryValue] !== void 0 ? g[C.originalYCategoryValue] : g[Q.yField], delete g[Q.yField]), s && g[Q.valueField] !== void 0 && (g[s] = g[Q.valueField], delete g[Q.valueField]);
|
|
5201
5202
|
const v = {};
|
|
5202
|
-
return Object.keys(g).forEach((
|
|
5203
|
-
!l.includes(
|
|
5203
|
+
return Object.keys(g).forEach((x) => {
|
|
5204
|
+
!l.includes(x) && !x.includes(C.rendererSymbolField) && (v[x] = g[x]);
|
|
5204
5205
|
}), p.push(v), p;
|
|
5205
5206
|
}, f = (p, g) => JSON.stringify(p).localeCompare(JSON.stringify(g));
|
|
5206
5207
|
let m = o?.reduce(d, [])?.sort(f), y = u?.reduce(d, [])?.sort(f);
|
|
@@ -5246,7 +5247,7 @@ function rl(t) {
|
|
|
5246
5247
|
const { dataContext: e, xAxisField: i, yAxisField: a, options: r } = t;
|
|
5247
5248
|
let n = "";
|
|
5248
5249
|
const { dataContextXMinField: s, dataContextXMaxField: o, dataContextYMinField: u, dataContextYMaxField: c } = C.scatterplotAggregationFields;
|
|
5249
|
-
if (
|
|
5250
|
+
if (ya({ dataContext: e, chartLimits: r?.chartLimits })) {
|
|
5250
5251
|
const { [s]: l, [o]: d } = e, f = i !== a ? e[u] : l, m = i !== a ? e[c] : d;
|
|
5251
5252
|
if (!Number.isNaN(l) && !Number.isNaN(d) && !Number.isNaN(f) && !Number.isNaN(m)) {
|
|
5252
5253
|
const y = [];
|
|
@@ -5261,9 +5262,9 @@ function rl(t) {
|
|
|
5261
5262
|
}
|
|
5262
5263
|
function Qi(t) {
|
|
5263
5264
|
const { fieldsIndex: e, fieldName: i, inputDate: a } = t, r = e.get(i), n = e.getTimeZone(i);
|
|
5264
|
-
return
|
|
5265
|
+
return zr(new Date(a), { type: "date" }, { type: r, timeZone: n });
|
|
5265
5266
|
}
|
|
5266
|
-
function
|
|
5267
|
+
function Ja(t) {
|
|
5267
5268
|
const { xAxisField: e, dataContext: i, queryObject: a } = t;
|
|
5268
5269
|
let r = "";
|
|
5269
5270
|
const n = i[C.originalServerBinningRange] ?? i[C.dateBinningRange];
|
|
@@ -5282,7 +5283,7 @@ function Ka(t) {
|
|
|
5282
5283
|
}
|
|
5283
5284
|
return r;
|
|
5284
5285
|
}
|
|
5285
|
-
function
|
|
5286
|
+
function Ka(t, e) {
|
|
5286
5287
|
let i = "";
|
|
5287
5288
|
if (Number.isFinite(t)) {
|
|
5288
5289
|
const a = 1 / 10 ** C.queryMaxFloatPrecision;
|
|
@@ -5290,7 +5291,7 @@ function er(t, e) {
|
|
|
5290
5291
|
}
|
|
5291
5292
|
return i;
|
|
5292
5293
|
}
|
|
5293
|
-
function
|
|
5294
|
+
function er(t) {
|
|
5294
5295
|
const { xAxisField: e, yAxisField: i, splitBy: a, dataContext: r, xAxisFieldType: n, chartConfig: s } = t;
|
|
5295
5296
|
let o = "";
|
|
5296
5297
|
if (e !== void 0 && e !== C.boxPlot.boxPlotCategory) {
|
|
@@ -5298,7 +5299,7 @@ function tr(t) {
|
|
|
5298
5299
|
value: r[e],
|
|
5299
5300
|
dataContext: r
|
|
5300
5301
|
});
|
|
5301
|
-
n === U.Double ? o =
|
|
5302
|
+
n === U.Double ? o = Ka(d, e) : (je(s.axes?.[0].valueFormat) && (d = nt(d)), o = Le({
|
|
5302
5303
|
where: qe(e, d),
|
|
5303
5304
|
normalize: !1,
|
|
5304
5305
|
escape: !0
|
|
@@ -5329,13 +5330,13 @@ function nl(t) {
|
|
|
5329
5330
|
const { xAxisField: e, splitBy: i, dataContext: a, xAxisFieldType: r, chartConfig: n, queryObject: s } = t;
|
|
5330
5331
|
let o = "";
|
|
5331
5332
|
if (C.dateBinningRange in a)
|
|
5332
|
-
o =
|
|
5333
|
+
o = Ja({ xAxisField: e, dataContext: a, queryObject: s });
|
|
5333
5334
|
else if (k(n.series) !== F.BarAndLineFromFields) {
|
|
5334
5335
|
let l = di({
|
|
5335
5336
|
value: a[e],
|
|
5336
5337
|
dataContext: a
|
|
5337
5338
|
});
|
|
5338
|
-
r === U.Double ? o =
|
|
5339
|
+
r === U.Double ? o = Ka(l, e) : (je(n.axes?.[0].valueFormat) && r !== U.TimeOnly && (l = nt(l)), o = Le({
|
|
5339
5340
|
where: qe(e, l),
|
|
5340
5341
|
normalize: !1,
|
|
5341
5342
|
escape: !0
|
|
@@ -5378,10 +5379,10 @@ function ol(t) {
|
|
|
5378
5379
|
runsOnClientQueryEngine: o
|
|
5379
5380
|
} = t, u = r.series[0];
|
|
5380
5381
|
let c = "";
|
|
5381
|
-
if (u.type ===
|
|
5382
|
+
if (u.type === h.HeatSeries) {
|
|
5382
5383
|
let l, d;
|
|
5383
|
-
const f = a[Q.xField], m = a[C.originalCategoryValue], y = a[Q.yField], p = a[C.originalYCategoryValue], g = r.axes?.[0]?.valueFormat?.type,
|
|
5384
|
-
g ===
|
|
5384
|
+
const f = a[Q.xField], m = a[C.originalCategoryValue], y = a[Q.yField], p = a[C.originalYCategoryValue], g = r.axes?.[0]?.valueFormat?.type, S = r.axes?.[1]?.valueFormat?.type;
|
|
5385
|
+
g === h.CategoryAxisFormat ? l = Le({
|
|
5385
5386
|
where: qe(u.x, m ?? f),
|
|
5386
5387
|
normalize: !1,
|
|
5387
5388
|
escape: !0
|
|
@@ -5393,7 +5394,7 @@ function ol(t) {
|
|
|
5393
5394
|
outTimeZone: n,
|
|
5394
5395
|
dataTimeZone: s,
|
|
5395
5396
|
runsOnClientQueryEngine: o
|
|
5396
|
-
}),
|
|
5397
|
+
}), S === h.CategoryAxisFormat ? d = Le({
|
|
5397
5398
|
where: qe(u.y, p ?? y),
|
|
5398
5399
|
normalize: !1,
|
|
5399
5400
|
escape: !0
|
|
@@ -5413,7 +5414,7 @@ function ll(t) {
|
|
|
5413
5414
|
const { xAxisField: e, dataContext: i, chartConfig: a } = t;
|
|
5414
5415
|
let r = "";
|
|
5415
5416
|
const n = a.series[0], { minValue: s, maxValue: o } = i;
|
|
5416
|
-
if (Number.isFinite(s) && Number.isFinite(o) && n.type ===
|
|
5417
|
+
if (Number.isFinite(s) && Number.isFinite(o) && n.type === h.HistogramSeries) {
|
|
5417
5418
|
const u = En(e, n.dataTransformationType), c = i.isLastBin ? "<=" : "<";
|
|
5418
5419
|
r = Y([
|
|
5419
5420
|
`${u}>=${s?.toString()}`,
|
|
@@ -5426,25 +5427,25 @@ function jd(t) {
|
|
|
5426
5427
|
const { chartConfig: e } = t, i = _(e.series);
|
|
5427
5428
|
let a = "";
|
|
5428
5429
|
switch (i) {
|
|
5429
|
-
case
|
|
5430
|
+
case h.ScatterSeries:
|
|
5430
5431
|
a = rl(t);
|
|
5431
5432
|
break;
|
|
5432
|
-
case
|
|
5433
|
+
case h.HeatSeries:
|
|
5433
5434
|
a = ol(t);
|
|
5434
5435
|
break;
|
|
5435
|
-
case
|
|
5436
|
-
case
|
|
5437
|
-
case
|
|
5438
|
-
case
|
|
5436
|
+
case h.RadarSeries:
|
|
5437
|
+
case h.BarSeries:
|
|
5438
|
+
case h.LineSeries:
|
|
5439
|
+
case h.ComboLineAndBarSeries:
|
|
5439
5440
|
a = nl(t);
|
|
5440
5441
|
break;
|
|
5441
|
-
case
|
|
5442
|
-
a =
|
|
5442
|
+
case h.BoxPlotSeries:
|
|
5443
|
+
a = er(t);
|
|
5443
5444
|
break;
|
|
5444
|
-
case
|
|
5445
|
+
case h.HistogramSeries:
|
|
5445
5446
|
a = ll(t);
|
|
5446
5447
|
break;
|
|
5447
|
-
case
|
|
5448
|
+
case h.PieSeries:
|
|
5448
5449
|
a = sl(t);
|
|
5449
5450
|
break;
|
|
5450
5451
|
}
|
|
@@ -5469,18 +5470,18 @@ async function ul(t) {
|
|
|
5469
5470
|
} = t, p = k(a.series);
|
|
5470
5471
|
let g = { valid: !0, data: { dataItems: [] } };
|
|
5471
5472
|
if (r !== void 0 && r.length > 0) {
|
|
5472
|
-
const
|
|
5473
|
-
(I,
|
|
5473
|
+
const S = Re(a), { x: b } = S, v = "y" in S ? S.y : "", B = Ce(e).find((I) => I.name === b)?.type, N = [], T = r.reduce(
|
|
5474
|
+
(I, P) => {
|
|
5474
5475
|
const O = [];
|
|
5475
|
-
if (W.uniqueIdsName in
|
|
5476
|
-
N.push(
|
|
5476
|
+
if (W.uniqueIdsName in P)
|
|
5477
|
+
N.push(P[W.uniqueIdsName]);
|
|
5477
5478
|
else {
|
|
5478
5479
|
switch (p) {
|
|
5479
5480
|
case F.BoxPlotMonoFieldAndSplitBy:
|
|
5480
5481
|
case F.BoxPlotMultiFieldsAndSplitBy:
|
|
5481
5482
|
case F.BoxPlotMonoFieldAndCategoryAndSplitBy: {
|
|
5482
|
-
const M = te(
|
|
5483
|
-
Object.keys(
|
|
5483
|
+
const M = te(S.query?.where ?? ""), q = `_${E.Average}`;
|
|
5484
|
+
Object.keys(P).forEach((G) => {
|
|
5484
5485
|
if (G.includes(q)) {
|
|
5485
5486
|
const J = G.replace(q, "");
|
|
5486
5487
|
J.trim() !== "" && O.push(qe(M, J));
|
|
@@ -5492,16 +5493,16 @@ async function ul(t) {
|
|
|
5492
5493
|
const V = [v].flat();
|
|
5493
5494
|
let $ = V.length === 1 ? V[0] : "";
|
|
5494
5495
|
if (p === F.BoxPlotMultiFieldsAndCategory) {
|
|
5495
|
-
const M = `_${E.FirstQuartile}`, q = Object.keys(
|
|
5496
|
+
const M = `_${E.FirstQuartile}`, q = Object.keys(P).find((G) => G.includes(M));
|
|
5496
5497
|
q !== void 0 && ($ = q.replace(M, ""));
|
|
5497
5498
|
}
|
|
5498
5499
|
O.length === 0 && O.push(""), O.forEach((M) => {
|
|
5499
|
-
const q =
|
|
5500
|
+
const q = er({
|
|
5500
5501
|
chartConfig: a,
|
|
5501
|
-
xAxisField:
|
|
5502
|
+
xAxisField: b,
|
|
5502
5503
|
yAxisField: $,
|
|
5503
5504
|
splitBy: M,
|
|
5504
|
-
dataContext:
|
|
5505
|
+
dataContext: P,
|
|
5505
5506
|
xAxisFieldType: B
|
|
5506
5507
|
});
|
|
5507
5508
|
I.push(q);
|
|
@@ -5515,8 +5516,8 @@ async function ul(t) {
|
|
|
5515
5516
|
const I = ve(w).idField;
|
|
5516
5517
|
T.push(`${I} IN (${N.join(",")})`);
|
|
5517
5518
|
}
|
|
5518
|
-
const
|
|
5519
|
-
A.where = Y([A.where,
|
|
5519
|
+
const L = T.join(" OR "), A = { ...i };
|
|
5520
|
+
A.where = Y([A.where, L]), g = await Si({
|
|
5520
5521
|
queryObject: e,
|
|
5521
5522
|
chartConfig: a,
|
|
5522
5523
|
queryConfig: A,
|
|
@@ -5554,26 +5555,26 @@ async function cl(t) {
|
|
|
5554
5555
|
abortSignal: g
|
|
5555
5556
|
} = t;
|
|
5556
5557
|
mt(e);
|
|
5557
|
-
const { series:
|
|
5558
|
-
let
|
|
5558
|
+
const { series: S } = a, b = _(S), v = xe(a);
|
|
5559
|
+
let x = { valid: !0 }, B = s?.selectionItems ?? [];
|
|
5559
5560
|
n || (B = al({ chartConfig: a, currentSelectionDataItems: r, selectionData: s }));
|
|
5560
5561
|
let N = !1;
|
|
5561
|
-
switch (
|
|
5562
|
-
case
|
|
5563
|
-
|
|
5562
|
+
switch (b) {
|
|
5563
|
+
case h.HeatSeries:
|
|
5564
|
+
x.data = { dataItems: B };
|
|
5564
5565
|
break;
|
|
5565
|
-
case
|
|
5566
|
+
case h.PieSeries:
|
|
5566
5567
|
if (k(a.series) === F.PieFromFields) {
|
|
5567
|
-
const { x: T, y: w } = a.series[0],
|
|
5568
|
-
|
|
5568
|
+
const { x: T, y: w } = a.series[0], L = He(B);
|
|
5569
|
+
L.forEach((A) => {
|
|
5569
5570
|
T in A && (A[ce] = A[T], delete A[T]), w in A && (A[Ne] = A[w], delete A[w]);
|
|
5570
|
-
}),
|
|
5571
|
+
}), x.data = { dataItems: L };
|
|
5571
5572
|
} else
|
|
5572
|
-
|
|
5573
|
-
|
|
5573
|
+
x.data = { dataItems: B };
|
|
5574
|
+
x.count = B.length, N = !0;
|
|
5574
5575
|
break;
|
|
5575
|
-
case
|
|
5576
|
-
de(a) && (
|
|
5576
|
+
case h.BoxPlotSeries:
|
|
5577
|
+
de(a) && (x = await ul({
|
|
5577
5578
|
queryObject: e,
|
|
5578
5579
|
queryConfig: i,
|
|
5579
5580
|
chartConfig: a,
|
|
@@ -5590,30 +5591,30 @@ async function cl(t) {
|
|
|
5590
5591
|
abortSignal: g
|
|
5591
5592
|
}));
|
|
5592
5593
|
break;
|
|
5593
|
-
case
|
|
5594
|
-
case
|
|
5595
|
-
case
|
|
5596
|
-
case
|
|
5594
|
+
case h.BarSeries:
|
|
5595
|
+
case h.ComboLineAndBarSeries:
|
|
5596
|
+
case h.RadarSeries:
|
|
5597
|
+
case h.LineSeries:
|
|
5597
5598
|
if (B.length === 0 || !Pe({
|
|
5598
5599
|
xAxisValueFormatType: v,
|
|
5599
5600
|
setTimeBinningInfoWhenNotProvided: o,
|
|
5600
|
-
seriesConfig:
|
|
5601
|
+
seriesConfig: S[0],
|
|
5601
5602
|
queryObject: e
|
|
5602
5603
|
}))
|
|
5603
|
-
|
|
5604
|
+
x.data = { dataItems: B }, x.count = B.length * S.length, N = !0;
|
|
5604
5605
|
else {
|
|
5605
5606
|
const T = { ...i };
|
|
5606
5607
|
if (r !== void 0 && r.length > 0) {
|
|
5607
|
-
const
|
|
5608
|
-
(I) =>
|
|
5609
|
-
xAxisField:
|
|
5608
|
+
const L = r.map(
|
|
5609
|
+
(I) => Ja({
|
|
5610
|
+
xAxisField: S[0].x,
|
|
5610
5611
|
dataContext: I,
|
|
5611
5612
|
queryObject: e
|
|
5612
5613
|
})
|
|
5613
|
-
), A = Y(
|
|
5614
|
+
), A = Y(L, "OR");
|
|
5614
5615
|
T.where = Y([T.where, A]);
|
|
5615
5616
|
}
|
|
5616
|
-
|
|
5617
|
+
x = await bi({
|
|
5617
5618
|
queryObject: e,
|
|
5618
5619
|
queryConfig: T,
|
|
5619
5620
|
chartConfig: a,
|
|
@@ -5627,22 +5628,22 @@ async function cl(t) {
|
|
|
5627
5628
|
});
|
|
5628
5629
|
}
|
|
5629
5630
|
break;
|
|
5630
|
-
case
|
|
5631
|
+
case h.HistogramSeries: {
|
|
5631
5632
|
if (B.length === 0)
|
|
5632
|
-
|
|
5633
|
+
x.data = {
|
|
5633
5634
|
mean: Number.NaN,
|
|
5634
5635
|
median: Number.NaN,
|
|
5635
5636
|
stddev: Number.NaN,
|
|
5636
5637
|
max: Number.NaN,
|
|
5637
5638
|
min: Number.NaN,
|
|
5638
5639
|
bins: []
|
|
5639
|
-
},
|
|
5640
|
+
}, x.count = 0;
|
|
5640
5641
|
else {
|
|
5641
|
-
const { x: T } =
|
|
5642
|
-
const { minValue: O, maxValue: V } = I, $ =
|
|
5642
|
+
const { x: T } = S[0], w = B.map((I, P) => {
|
|
5643
|
+
const { minValue: O, maxValue: V } = I, $ = P === B.length - 1 ? "<=" : "<";
|
|
5643
5644
|
return `${T} >= ${O} AND ${T} ${$} ${V}`;
|
|
5644
|
-
}),
|
|
5645
|
-
A.where = Y([A.where,
|
|
5645
|
+
}), L = Y(w, "OR"), A = { ...i };
|
|
5646
|
+
A.where = Y([A.where, L]), x = await Ga({
|
|
5646
5647
|
queryObject: e,
|
|
5647
5648
|
chartConfig: a,
|
|
5648
5649
|
queryConfig: A,
|
|
@@ -5654,24 +5655,24 @@ async function cl(t) {
|
|
|
5654
5655
|
}
|
|
5655
5656
|
break;
|
|
5656
5657
|
}
|
|
5657
|
-
case
|
|
5658
|
+
case h.ScatterSeries: {
|
|
5658
5659
|
if (B.length === 0) {
|
|
5659
5660
|
const { r2: T, trendLinePoints: w } = C.scatterplotSeries;
|
|
5660
|
-
|
|
5661
|
+
x.data = { dataItems: [], r2: T, trendLinePoints: w, count: 0 }, x.count = 0;
|
|
5661
5662
|
} else {
|
|
5662
|
-
const { r2: T, trendLinePoints: w } =
|
|
5663
|
+
const { r2: T, trendLinePoints: w } = Oa({
|
|
5663
5664
|
data: B,
|
|
5664
5665
|
chartConfig: a
|
|
5665
5666
|
});
|
|
5666
|
-
|
|
5667
|
+
x.data = { dataItems: B, r2: T, trendLinePoints: w }, x.count = B.length;
|
|
5667
5668
|
}
|
|
5668
5669
|
break;
|
|
5669
5670
|
}
|
|
5670
5671
|
}
|
|
5671
|
-
return N &&
|
|
5672
|
-
arrayToSort: "dataItems" in
|
|
5672
|
+
return N && x.data !== void 0 && Ot({
|
|
5673
|
+
arrayToSort: "dataItems" in x.data ? x.data.dataItems : x.data,
|
|
5673
5674
|
chartConfig: a
|
|
5674
|
-
}),
|
|
5675
|
+
}), x;
|
|
5675
5676
|
}
|
|
5676
5677
|
async function Si(t) {
|
|
5677
5678
|
const {
|
|
@@ -5709,9 +5710,9 @@ async function Si(t) {
|
|
|
5709
5710
|
if (!p)
|
|
5710
5711
|
y = g;
|
|
5711
5712
|
else {
|
|
5712
|
-
const
|
|
5713
|
-
|
|
5714
|
-
const
|
|
5713
|
+
const S = { dataItems: [] };
|
|
5714
|
+
S.meanLines = g.data.dataItems;
|
|
5715
|
+
const b = Do(i), v = (await si({
|
|
5715
5716
|
queryObject: e,
|
|
5716
5717
|
queryConfig: a,
|
|
5717
5718
|
fetchFullBoxPlotData: !0,
|
|
@@ -5723,11 +5724,11 @@ async function Si(t) {
|
|
|
5723
5724
|
replaceNoValueCategoryWithZero: f,
|
|
5724
5725
|
view: m,
|
|
5725
5726
|
errorStrings: r,
|
|
5726
|
-
chartConfig:
|
|
5727
|
+
chartConfig: b,
|
|
5727
5728
|
abortKey: n,
|
|
5728
5729
|
abortSignal: s
|
|
5729
5730
|
})).data;
|
|
5730
|
-
|
|
5731
|
+
S.dataItems = v.dataItems, S.outliers = v.outliers, y.data = S;
|
|
5731
5732
|
}
|
|
5732
5733
|
return y;
|
|
5733
5734
|
}
|
|
@@ -5749,18 +5750,19 @@ async function dl(t) {
|
|
|
5749
5750
|
errorStrings: y,
|
|
5750
5751
|
abortKey: p,
|
|
5751
5752
|
abortSignal: g,
|
|
5752
|
-
fieldList:
|
|
5753
|
-
currentSelectionDataItems:
|
|
5753
|
+
fieldList: S,
|
|
5754
|
+
currentSelectionDataItems: b,
|
|
5754
5755
|
dataForFilterBySelectionChanged: v,
|
|
5755
|
-
|
|
5756
|
-
|
|
5757
|
-
|
|
5756
|
+
filterByViewExtent: x,
|
|
5757
|
+
preFetchedQueryResponse: B
|
|
5758
|
+
} = t, { series: N } = i, T = _(N);
|
|
5759
|
+
let w = { valid: !0 };
|
|
5758
5760
|
if (r)
|
|
5759
|
-
|
|
5761
|
+
w = await cl({
|
|
5760
5762
|
queryObject: e,
|
|
5761
5763
|
queryConfig: a,
|
|
5762
5764
|
chartConfig: i,
|
|
5763
|
-
currentSelectionDataItems:
|
|
5765
|
+
currentSelectionDataItems: b,
|
|
5764
5766
|
dataForFilterBySelectionChanged: v,
|
|
5765
5767
|
selectionData: n,
|
|
5766
5768
|
setTimeBinningInfoWhenNotProvided: s,
|
|
@@ -5775,9 +5777,9 @@ async function dl(t) {
|
|
|
5775
5777
|
abortSignal: g
|
|
5776
5778
|
});
|
|
5777
5779
|
else
|
|
5778
|
-
switch (
|
|
5779
|
-
case
|
|
5780
|
-
mt(e),
|
|
5780
|
+
switch (T) {
|
|
5781
|
+
case h.HeatSeries:
|
|
5782
|
+
mt(e), w = await lr({
|
|
5781
5783
|
chartConfig: i,
|
|
5782
5784
|
queryConfig: a,
|
|
5783
5785
|
queryObject: e,
|
|
@@ -5791,8 +5793,8 @@ async function dl(t) {
|
|
|
5791
5793
|
abortSignal: g
|
|
5792
5794
|
});
|
|
5793
5795
|
break;
|
|
5794
|
-
case
|
|
5795
|
-
de(i) && (
|
|
5796
|
+
case h.BoxPlotSeries:
|
|
5797
|
+
de(i) && (w = await Si({
|
|
5796
5798
|
queryObject: e,
|
|
5797
5799
|
// @REV: temporary
|
|
5798
5800
|
chartConfig: i,
|
|
@@ -5809,16 +5811,17 @@ async function dl(t) {
|
|
|
5809
5811
|
abortSignal: g
|
|
5810
5812
|
}));
|
|
5811
5813
|
break;
|
|
5812
|
-
case
|
|
5813
|
-
case
|
|
5814
|
-
case
|
|
5815
|
-
case
|
|
5816
|
-
case
|
|
5817
|
-
const
|
|
5814
|
+
case h.BarSeries:
|
|
5815
|
+
case h.ComboLineAndBarSeries:
|
|
5816
|
+
case h.PieSeries:
|
|
5817
|
+
case h.RadarSeries:
|
|
5818
|
+
case h.LineSeries: {
|
|
5819
|
+
const L = {
|
|
5818
5820
|
queryObject: e,
|
|
5819
5821
|
// @REV: temporary
|
|
5820
5822
|
queryConfig: a,
|
|
5821
5823
|
chartConfig: i,
|
|
5824
|
+
filterByViewExtent: x,
|
|
5822
5825
|
errorStrings: y,
|
|
5823
5826
|
setTimeBinningInfoWhenNotProvided: s,
|
|
5824
5827
|
returnFeaturesExtent: o,
|
|
@@ -5829,21 +5832,22 @@ async function dl(t) {
|
|
|
5829
5832
|
view: f,
|
|
5830
5833
|
abortKey: p,
|
|
5831
5834
|
abortSignal: g,
|
|
5832
|
-
fieldList:
|
|
5833
|
-
preFetchedQueryResponse:
|
|
5835
|
+
fieldList: S,
|
|
5836
|
+
preFetchedQueryResponse: B
|
|
5834
5837
|
};
|
|
5835
5838
|
Pe({
|
|
5836
5839
|
xAxisValueFormatType: xe(i),
|
|
5837
5840
|
setTimeBinningInfoWhenNotProvided: s,
|
|
5838
|
-
seriesConfig:
|
|
5841
|
+
seriesConfig: N[0],
|
|
5839
5842
|
queryObject: e
|
|
5840
|
-
}) ?
|
|
5843
|
+
}) ? w = await bi(L) : w = await si(L);
|
|
5841
5844
|
break;
|
|
5842
5845
|
}
|
|
5843
|
-
case
|
|
5844
|
-
|
|
5846
|
+
case h.ScatterSeries:
|
|
5847
|
+
w.data = await ur({
|
|
5845
5848
|
queryObject: e,
|
|
5846
5849
|
queryConfig: a,
|
|
5850
|
+
filterByViewExtent: x,
|
|
5847
5851
|
setTimeBinningInfoWhenNotProvided: s,
|
|
5848
5852
|
returnFeaturesExtent: o,
|
|
5849
5853
|
chartLimits: u,
|
|
@@ -5857,8 +5861,8 @@ async function dl(t) {
|
|
|
5857
5861
|
abortSignal: g
|
|
5858
5862
|
});
|
|
5859
5863
|
break;
|
|
5860
|
-
case
|
|
5861
|
-
|
|
5864
|
+
case h.HistogramSeries:
|
|
5865
|
+
w = await Ga({
|
|
5862
5866
|
queryObject: e,
|
|
5863
5867
|
queryConfig: a,
|
|
5864
5868
|
chartConfig: i,
|
|
@@ -5868,8 +5872,8 @@ async function dl(t) {
|
|
|
5868
5872
|
errorStrings: y
|
|
5869
5873
|
});
|
|
5870
5874
|
break;
|
|
5871
|
-
case
|
|
5872
|
-
mt(e),
|
|
5875
|
+
case h.GaugeSeries:
|
|
5876
|
+
mt(e), w = await tl({
|
|
5873
5877
|
queryObject: e,
|
|
5874
5878
|
chartConfig: i,
|
|
5875
5879
|
queryConfig: a,
|
|
@@ -5880,7 +5884,7 @@ async function dl(t) {
|
|
|
5880
5884
|
});
|
|
5881
5885
|
break;
|
|
5882
5886
|
}
|
|
5883
|
-
return
|
|
5887
|
+
return w;
|
|
5884
5888
|
}
|
|
5885
5889
|
async function Hd(t) {
|
|
5886
5890
|
const {
|
|
@@ -5890,52 +5894,54 @@ async function Hd(t) {
|
|
|
5890
5894
|
abortSignal: r,
|
|
5891
5895
|
currentSelectionDataItems: n,
|
|
5892
5896
|
dataForFilterBySelectionChanged: s,
|
|
5893
|
-
|
|
5894
|
-
|
|
5895
|
-
|
|
5896
|
-
|
|
5897
|
-
|
|
5898
|
-
|
|
5899
|
-
|
|
5900
|
-
|
|
5901
|
-
|
|
5902
|
-
|
|
5903
|
-
|
|
5904
|
-
|
|
5905
|
-
|
|
5906
|
-
|
|
5907
|
-
|
|
5897
|
+
filterByViewExtent: o,
|
|
5898
|
+
runtimeDataFilters: u,
|
|
5899
|
+
ignoreViewExtent: c,
|
|
5900
|
+
filterBySelection: l,
|
|
5901
|
+
selectionData: d,
|
|
5902
|
+
setTimeBinningInfoWhenNotProvided: f,
|
|
5903
|
+
returnFeaturesExtent: m,
|
|
5904
|
+
chartLimits: y,
|
|
5905
|
+
popupTemplateFieldInfosEnabled: p,
|
|
5906
|
+
hideZeroCountCategories: g,
|
|
5907
|
+
replaceNoValueCategoryWithZero: S,
|
|
5908
|
+
view: b,
|
|
5909
|
+
syncViewTimeZone: v,
|
|
5910
|
+
errorStrings: x,
|
|
5911
|
+
fieldList: B,
|
|
5912
|
+
preFetchedQueryResponse: N
|
|
5908
5913
|
} = t;
|
|
5909
|
-
let
|
|
5910
|
-
const
|
|
5914
|
+
let T = { valid: !0 };
|
|
5915
|
+
const w = _a({
|
|
5911
5916
|
queryObject: e,
|
|
5912
5917
|
chartConfig: i,
|
|
5913
|
-
runtimeDataFilters:
|
|
5914
|
-
ignoreViewExtent:
|
|
5915
|
-
view:
|
|
5918
|
+
runtimeDataFilters: u,
|
|
5919
|
+
ignoreViewExtent: c,
|
|
5920
|
+
view: b
|
|
5916
5921
|
});
|
|
5917
|
-
return ws(a),
|
|
5922
|
+
return ws(a), T = await dl({
|
|
5918
5923
|
chartConfig: i,
|
|
5919
5924
|
queryObject: e,
|
|
5920
|
-
queryConfig:
|
|
5925
|
+
queryConfig: w,
|
|
5921
5926
|
currentSelectionDataItems: n,
|
|
5922
5927
|
dataForFilterBySelectionChanged: s,
|
|
5923
|
-
|
|
5924
|
-
|
|
5925
|
-
|
|
5926
|
-
|
|
5927
|
-
|
|
5928
|
-
|
|
5929
|
-
|
|
5930
|
-
|
|
5931
|
-
|
|
5932
|
-
|
|
5928
|
+
filterByViewExtent: o,
|
|
5929
|
+
filterBySelection: l,
|
|
5930
|
+
selectionData: d,
|
|
5931
|
+
setTimeBinningInfoWhenNotProvided: f,
|
|
5932
|
+
returnFeaturesExtent: m,
|
|
5933
|
+
chartLimits: y,
|
|
5934
|
+
popupTemplateFieldInfosEnabled: p,
|
|
5935
|
+
hideZeroCountCategories: g,
|
|
5936
|
+
replaceNoValueCategoryWithZero: S,
|
|
5937
|
+
view: b,
|
|
5938
|
+
syncViewTimeZone: v,
|
|
5933
5939
|
abortKey: a,
|
|
5934
5940
|
abortSignal: r,
|
|
5935
|
-
errorStrings:
|
|
5936
|
-
fieldList:
|
|
5937
|
-
preFetchedQueryResponse:
|
|
5938
|
-
}),
|
|
5941
|
+
errorStrings: x,
|
|
5942
|
+
fieldList: B,
|
|
5943
|
+
preFetchedQueryResponse: N
|
|
5944
|
+
}), T.queryConfig = w, T;
|
|
5939
5945
|
}
|
|
5940
5946
|
function fl(t, e, i) {
|
|
5941
5947
|
const a = /* @__PURE__ */ new Map();
|
|
@@ -5963,28 +5969,28 @@ async function ml(t) {
|
|
|
5963
5969
|
} = t, { series: l } = i;
|
|
5964
5970
|
let d = e;
|
|
5965
5971
|
const f = k(l), m = xe(i);
|
|
5966
|
-
if (s !== lt.RenderUpToTheLimit && n !== void 0 && n > e.length && f !== F.BarAndLineFromFields && f !== F.BarAndLineNoAggregation && f !== F.PieNoAggregation && m ===
|
|
5972
|
+
if (s !== lt.RenderUpToTheLimit && n !== void 0 && n > e.length && f !== F.BarAndLineFromFields && f !== F.BarAndLineNoAggregation && f !== F.PieNoAggregation && m === h.CategoryAxisFormat) {
|
|
5967
5973
|
const { x: y } = l[0], p = {
|
|
5968
5974
|
...a,
|
|
5969
5975
|
returnDistinctValues: !0,
|
|
5970
5976
|
outFields: [y]
|
|
5971
5977
|
};
|
|
5972
5978
|
delete p.outStatistics, delete p.orderByFields, delete p.groupByFieldsForStatistics;
|
|
5973
|
-
const
|
|
5979
|
+
const S = (await Fe({
|
|
5974
5980
|
queryObject: r,
|
|
5975
5981
|
queryConfig: p,
|
|
5976
5982
|
featureCount: n,
|
|
5977
5983
|
errorStrings: o,
|
|
5978
5984
|
abortKey: u,
|
|
5979
5985
|
abortSignal: c
|
|
5980
|
-
})).map((
|
|
5981
|
-
|
|
5986
|
+
})).map((b) => b.attributes[y]).filter((b) => b != null);
|
|
5987
|
+
S.length > e.length && (d = fl(S, e, y));
|
|
5982
5988
|
}
|
|
5983
5989
|
return d;
|
|
5984
5990
|
}
|
|
5985
5991
|
function yl(t, e) {
|
|
5986
5992
|
const i = t, { series: a } = e;
|
|
5987
|
-
if (xe(e) ===
|
|
5993
|
+
if (xe(e) === h.CategoryAxisFormat && a[0].query?.outStatistics?.[0].statisticType === D.Count) {
|
|
5988
5994
|
const r = a.reduce(
|
|
5989
5995
|
(n, s) => {
|
|
5990
5996
|
const o = s.query?.outStatistics?.[0].outStatisticFieldName ?? [s.y].flat()[0];
|
|
@@ -5997,7 +6003,7 @@ function yl(t, e) {
|
|
|
5997
6003
|
}
|
|
5998
6004
|
return i;
|
|
5999
6005
|
}
|
|
6000
|
-
const
|
|
6006
|
+
const tr = [
|
|
6001
6007
|
F.BarAndLineMonoField,
|
|
6002
6008
|
F.BarAndLineMultiFields,
|
|
6003
6009
|
F.PieNoAggregation,
|
|
@@ -6049,7 +6055,7 @@ const ir = [
|
|
|
6049
6055
|
preferredIntervalSize: [1, 2, 4, 5, 10, 25, 50, 100]
|
|
6050
6056
|
}
|
|
6051
6057
|
], pl = "{ groupByFieldsForStatistics } WHEN { dateField }>='{ startDate }' AND { dateField }{ endDateOperand }'{ endDate }' THEN '{ y }|{ binIndex}'";
|
|
6052
|
-
function
|
|
6058
|
+
function ir(t, e) {
|
|
6053
6059
|
let i = t;
|
|
6054
6060
|
return e === R.Week ? i /= 7 : e === R.Month ? i /= 30 : e === R.Year && (i /= 365), i = Math.ceil(i), i;
|
|
6055
6061
|
}
|
|
@@ -6164,31 +6170,31 @@ function bl(t) {
|
|
|
6164
6170
|
let d, f;
|
|
6165
6171
|
if (be(c) && (f = c.temporalBinning?.nullPolicy, d = c.temporalBinning?.timeAggregationType), u > 1 || o === R.Week || o === R.Month || o === R.Year) {
|
|
6166
6172
|
const { query: m } = i[0], y = ue(i), { statisticType: p } = m?.outStatistics?.[0] ?? Ui;
|
|
6167
|
-
let g = !1,
|
|
6168
|
-
const
|
|
6169
|
-
binFirstOrLastIndex:
|
|
6173
|
+
let g = !1, S = d === ee.End ? e.length - 1 : 0;
|
|
6174
|
+
const b = {
|
|
6175
|
+
binFirstOrLastIndex: S,
|
|
6170
6176
|
data: e,
|
|
6171
6177
|
x: l,
|
|
6172
6178
|
timeIntervalInfo: a
|
|
6173
6179
|
};
|
|
6174
6180
|
for (; !g; ) {
|
|
6175
6181
|
let v = {};
|
|
6176
|
-
const { binStartDate:
|
|
6182
|
+
const { binStartDate: x, binEndDate: B, last: N, nextBinFirstOrLastIndex: T, sliceStartIndex: w, sliceEndIndex: L } = d === ee.End ? (
|
|
6177
6183
|
// When grouping from the end we'll start from the last date and move backward to create the bins
|
|
6178
|
-
Sl(
|
|
6184
|
+
Sl(b)
|
|
6179
6185
|
) : (
|
|
6180
6186
|
// When grouping from the start we'll start from the first date and move forward to create the bins
|
|
6181
|
-
hl(
|
|
6187
|
+
hl(b)
|
|
6182
6188
|
);
|
|
6183
|
-
if (g = N, v = d === ee.End ? v = e[
|
|
6184
|
-
const A = e.slice(w,
|
|
6189
|
+
if (g = N, v = d === ee.End ? v = e[L - 1] : v = e[S], B > n && x < n || x < r && B > r || x >= r && B <= n) {
|
|
6190
|
+
const A = e.slice(w, L).filter((O) => !(C.dateBinModel in O));
|
|
6185
6191
|
y.forEach((O) => {
|
|
6186
6192
|
v[O] = Fl({ binsToRegroup: A, statisticType: p, y: O, nullPolicy: f });
|
|
6187
6193
|
});
|
|
6188
|
-
const I = A.map((O) => O[Oe]).filter((O) => O !== void 0),
|
|
6189
|
-
|
|
6194
|
+
const I = A.map((O) => O[Oe]).filter((O) => O !== void 0), P = Dn(I);
|
|
6195
|
+
P !== void 0 && (v[Oe] = P), v[l] = x, v[C.xAxisField] = x, v[C.dateBinningRange] = [x, B], delete v[C.dateBinModel], s.push(v);
|
|
6190
6196
|
} else N && d !== ee.End && s.length > 0 && (s[s.length - 1][C.dateBinningRange][1] = s[s.length - 1][C.dateBinningRange][1] + 1);
|
|
6191
|
-
|
|
6197
|
+
S = T, b.binFirstOrLastIndex = T;
|
|
6192
6198
|
}
|
|
6193
6199
|
d === ee.End && (s = s.reverse());
|
|
6194
6200
|
} else u === 1 ? s = e.map((m, y) => {
|
|
@@ -6206,7 +6212,7 @@ function bl(t) {
|
|
|
6206
6212
|
}) : s = e;
|
|
6207
6213
|
return s;
|
|
6208
6214
|
}
|
|
6209
|
-
function
|
|
6215
|
+
function ar(t) {
|
|
6210
6216
|
const { dateMinTimestamp: e, dateMaxTimestamp: i, timeIntervalInfo: a } = t, { size: r, unit: n } = a;
|
|
6211
6217
|
let s = 0, o = 0;
|
|
6212
6218
|
if (r !== void 0 && Number.isFinite(r) && Number.isFinite(e) && Number.isFinite(i)) {
|
|
@@ -6235,7 +6241,7 @@ function rr(t) {
|
|
|
6235
6241
|
}
|
|
6236
6242
|
return { numberOfFinalBinsWithinDataRange: s, numberOfSingleBinsWithinDataRange: o };
|
|
6237
6243
|
}
|
|
6238
|
-
function
|
|
6244
|
+
function rr(t) {
|
|
6239
6245
|
const e = t[0].temporalBinning?.nullPolicy;
|
|
6240
6246
|
return t.reduce(
|
|
6241
6247
|
(a, r) => {
|
|
@@ -6259,10 +6265,10 @@ function xl(t) {
|
|
|
6259
6265
|
if (o !== void 0 && Number.isFinite(o) && a / i !== o) {
|
|
6260
6266
|
let y = Math.ceil(a / i) * i - a;
|
|
6261
6267
|
u === R.Week && (y *= 7);
|
|
6262
|
-
const p =
|
|
6268
|
+
const p = rr(n);
|
|
6263
6269
|
if (l === ee.End) {
|
|
6264
6270
|
let g = r[0][c];
|
|
6265
|
-
for (let
|
|
6271
|
+
for (let S = 0; S < y; S += 1)
|
|
6266
6272
|
g = Ve({
|
|
6267
6273
|
date: g,
|
|
6268
6274
|
unit: u,
|
|
@@ -6276,7 +6282,7 @@ function xl(t) {
|
|
|
6276
6282
|
y > 0 && (d = r[r.length - 1][c]);
|
|
6277
6283
|
} else {
|
|
6278
6284
|
let g = r[r.length - 1][c];
|
|
6279
|
-
for (let
|
|
6285
|
+
for (let S = 0; S < y; S += 1)
|
|
6280
6286
|
g = Ve({
|
|
6281
6287
|
date: g,
|
|
6282
6288
|
unit: u,
|
|
@@ -6294,7 +6300,7 @@ function xl(t) {
|
|
|
6294
6300
|
}
|
|
6295
6301
|
function Cl(t) {
|
|
6296
6302
|
const { numberOfSingleBinsWithinDataRange: e, dataLength: i, unit: a } = t;
|
|
6297
|
-
return
|
|
6303
|
+
return ir(i, a) >= e;
|
|
6298
6304
|
}
|
|
6299
6305
|
async function vl(t) {
|
|
6300
6306
|
const { queryObject: e, queryConfig: i, x: a, errorStrings: r, abortSignal: n } = t, s = `MIN_${a}`, o = `MAX_${a}`, u = `COUNT_${a}`, c = {
|
|
@@ -6343,7 +6349,7 @@ function Bl(t) {
|
|
|
6343
6349
|
dataLength: s,
|
|
6344
6350
|
unit: u
|
|
6345
6351
|
})) {
|
|
6346
|
-
const { x: d } = a[0], f = a[0].temporalBinning?.timeAggregationType, m =
|
|
6352
|
+
const { x: d } = a[0], f = a[0].temporalBinning?.timeAggregationType, m = rr(a);
|
|
6347
6353
|
let p = f === ee.End ? i : e, g = f === ee.End ? r.length - 1 : 0;
|
|
6348
6354
|
for (; g < r.length && (f === ee.End && p > e || f !== ee.End && p < i); )
|
|
6349
6355
|
p !== r[g][d] ? c.push({
|
|
@@ -6403,10 +6409,10 @@ function* Al(t) {
|
|
|
6403
6409
|
];
|
|
6404
6410
|
let y = Ue.groupByCaseBegin;
|
|
6405
6411
|
for (let g = 0; g < r.length; g += 1) {
|
|
6406
|
-
const
|
|
6412
|
+
const S = r[g], [b, v] = S[C.dateBinningRange], x = nt(b), B = nt(v);
|
|
6407
6413
|
y = Tl({
|
|
6408
6414
|
groupByFieldsForStatistics: y,
|
|
6409
|
-
queryStartDate:
|
|
6415
|
+
queryStartDate: x,
|
|
6410
6416
|
queryEndDate: B,
|
|
6411
6417
|
dateField: l,
|
|
6412
6418
|
y: [d].flat()[0],
|
|
@@ -6448,8 +6454,8 @@ async function wl(t) {
|
|
|
6448
6454
|
if (y !== void 0) {
|
|
6449
6455
|
const [p, g] = y.split("|");
|
|
6450
6456
|
if (g !== void 0) {
|
|
6451
|
-
const
|
|
6452
|
-
o[g][`${p}`] =
|
|
6457
|
+
const S = m.attributes[D.ContinuousPercentile];
|
|
6458
|
+
o[g][`${p}`] = S;
|
|
6453
6459
|
}
|
|
6454
6460
|
}
|
|
6455
6461
|
});
|
|
@@ -6476,38 +6482,38 @@ function Hi(t) {
|
|
|
6476
6482
|
}
|
|
6477
6483
|
}
|
|
6478
6484
|
function Ll(t) {
|
|
6479
|
-
const { chartConfig: e, queryResults: i, mapToStatField: a, splitByField: r, x: n, y: s, nullPolicy: o, queryObject: u } = t, c =
|
|
6480
|
-
return i.forEach((g,
|
|
6481
|
-
if (!(y && (
|
|
6482
|
-
const { attributes: v, stackedAttributes:
|
|
6485
|
+
const { chartConfig: e, queryResults: i, mapToStatField: a, splitByField: r, x: n, y: s, nullPolicy: o, queryObject: u } = t, c = Da(n), d = Ce(u).find((g) => g.name === n)?.type, f = [], m = e.series[0], y = "temporalBinning" in m ? m.temporalBinning?.trimIncompleteTimeInterval : !1, p = "temporalBinning" in m ? m.temporalBinning?.timeAggregationType : !1;
|
|
6486
|
+
return i.forEach((g, S) => {
|
|
6487
|
+
if (!(y && (S === 0 && p === ee.End || S === i.length - 1 && p === ee.Start))) {
|
|
6488
|
+
const { attributes: v, stackedAttributes: x } = g;
|
|
6483
6489
|
let B = v[c.lowerBoundaryAlias], N = v[c.upperBoundaryAlias];
|
|
6484
|
-
const T = B, w = N,
|
|
6485
|
-
let
|
|
6490
|
+
const T = B, w = N, L = (A, I) => {
|
|
6491
|
+
let P = A;
|
|
6486
6492
|
if (I === U.DateOnly && (typeof A == "string" && A.length === 10 || typeof A == "number"))
|
|
6487
6493
|
if (typeof A == "string") {
|
|
6488
6494
|
const O = A.split("-");
|
|
6489
|
-
O.length === 3 && (
|
|
6495
|
+
O.length === 3 && (P = me.local(Number(O[0]), Number(O[1]), Number(O[2])).valueOf());
|
|
6490
6496
|
} else
|
|
6491
|
-
|
|
6497
|
+
P = new Date(A), P = new Date(P.valueOf() + P.getTimezoneOffset() * 6e4), P = me.local(P.getFullYear(), P.getMonth() + 1, P.getDate()).valueOf();
|
|
6492
6498
|
else typeof A == "string" && ["+", "-"].forEach((O) => {
|
|
6493
|
-
O && A.lastIndexOf(O) === A.length - 6 && (
|
|
6499
|
+
O && A.lastIndexOf(O) === A.length - 6 && (P = new Date(A.slice(0, A.lastIndexOf(O))).valueOf());
|
|
6494
6500
|
});
|
|
6495
|
-
return
|
|
6501
|
+
return P;
|
|
6496
6502
|
};
|
|
6497
|
-
if (B =
|
|
6503
|
+
if (B = L(B, d), N = L(N, d), typeof B == "number" && typeof N == "number") {
|
|
6498
6504
|
const A = { ...v };
|
|
6499
|
-
A[C.originalServerBinningRange] = [T, w], A[n] = B, A[C.xAxisField] = B, A[C.dateBinningRange] = [B, N], delete A[c.lowerBoundaryAlias], delete A[c.upperBoundaryAlias],
|
|
6505
|
+
A[C.originalServerBinningRange] = [T, w], A[n] = B, A[C.xAxisField] = B, A[C.dateBinningRange] = [B, N], delete A[c.lowerBoundaryAlias], delete A[c.upperBoundaryAlias], x && r && !oe(r) && a ? x.forEach((O) => {
|
|
6500
6506
|
const V = O[r];
|
|
6501
6507
|
if (V === null || typeof V == "string" || typeof V == "number") {
|
|
6502
6508
|
const $ = a?.get(V);
|
|
6503
6509
|
$ !== void 0 && (A[$] = O[W.outStatistics?.outStatisticFieldName ?? ""], Hi({ dataItem: A, statField: $, nullPolicy: o }));
|
|
6504
6510
|
}
|
|
6505
6511
|
}) : typeof s == "string" && Hi({ dataItem: A, statField: s, nullPolicy: o });
|
|
6506
|
-
const { featureExtent: I, featureExtentKey:
|
|
6512
|
+
const { featureExtent: I, featureExtentKey: P } = nr({
|
|
6507
6513
|
feature: g,
|
|
6508
6514
|
splitByField: r
|
|
6509
6515
|
});
|
|
6510
|
-
I && (A[
|
|
6516
|
+
I && (A[P] = I), f.push(A);
|
|
6511
6517
|
}
|
|
6512
6518
|
}
|
|
6513
6519
|
}), f;
|
|
@@ -6532,11 +6538,11 @@ async function Pl(t) {
|
|
|
6532
6538
|
arrayToSort: l,
|
|
6533
6539
|
sortingField: a
|
|
6534
6540
|
}), m > 1) {
|
|
6535
|
-
const { numberOfFinalBinsWithinDataRange: y, numberOfSingleBinsWithinDataRange: p } =
|
|
6541
|
+
const { numberOfFinalBinsWithinDataRange: y, numberOfSingleBinsWithinDataRange: p } = ar({
|
|
6536
6542
|
dateMinTimestamp: d,
|
|
6537
6543
|
dateMaxTimestamp: f,
|
|
6538
6544
|
timeIntervalInfo: o
|
|
6539
|
-
}), { newDateMin: g, newDateMax:
|
|
6545
|
+
}), { newDateMin: g, newDateMax: S } = xl({
|
|
6540
6546
|
dateMaxTimestamp: f,
|
|
6541
6547
|
data: l,
|
|
6542
6548
|
numberOfFinalBinsWithinDataRange: y,
|
|
@@ -6546,7 +6552,7 @@ async function Pl(t) {
|
|
|
6546
6552
|
});
|
|
6547
6553
|
l = Bl({
|
|
6548
6554
|
newDateMin: g,
|
|
6549
|
-
newDateMax:
|
|
6555
|
+
newDateMax: S,
|
|
6550
6556
|
seriesConfig: n,
|
|
6551
6557
|
data: l,
|
|
6552
6558
|
initialNumberOfBins: m,
|
|
@@ -6586,10 +6592,10 @@ function Dl(t) {
|
|
|
6586
6592
|
let a, r, { dateMinTimestamp: n, dateMaxTimestamp: s } = e;
|
|
6587
6593
|
if (n && s) {
|
|
6588
6594
|
typeof n == "string" && (n = new Date(n).valueOf()), typeof s == "string" && (s = new Date(s).valueOf());
|
|
6589
|
-
const o = Ml(i), u = (s - n) / o, c = ji.findIndex((
|
|
6595
|
+
const o = Ml(i), u = (s - n) / o, c = ji.findIndex((S) => S.threshold > u), l = ji[c], { unitMs: d, preferredIntervalSize: f } = l;
|
|
6590
6596
|
({ unit: a } = l);
|
|
6591
6597
|
const m = u / d, y = f.findIndex(
|
|
6592
|
-
(
|
|
6598
|
+
(S) => S >= m
|
|
6593
6599
|
), p = f[y], g = y === 0 ? f[0] : f[y - 1];
|
|
6594
6600
|
r = p - m < m - g ? p : g;
|
|
6595
6601
|
}
|
|
@@ -6651,11 +6657,11 @@ async function Ut(t) {
|
|
|
6651
6657
|
});
|
|
6652
6658
|
return Array.from(
|
|
6653
6659
|
new Set(
|
|
6654
|
-
g.map((
|
|
6660
|
+
g.map((b) => b.attributes[c ? r : a])
|
|
6655
6661
|
)
|
|
6656
|
-
).sort((
|
|
6662
|
+
).sort((b, v) => typeof b == "string" && typeof v == "string" ? b.localeCompare(v) : Number(b) - Number(v));
|
|
6657
6663
|
}
|
|
6658
|
-
function
|
|
6664
|
+
function nr(t) {
|
|
6659
6665
|
const { feature: e, splitByField: i, chartSubType: a } = t;
|
|
6660
6666
|
let r;
|
|
6661
6667
|
if (e.aggregateGeometries && "Extent" in e.aggregateGeometries)
|
|
@@ -6687,7 +6693,7 @@ function Ft(t) {
|
|
|
6687
6693
|
}
|
|
6688
6694
|
function ql(t, e) {
|
|
6689
6695
|
const i = t, a = _(e);
|
|
6690
|
-
if (a !==
|
|
6696
|
+
if (a !== h.PieSeries && a !== h.BoxPlotSeries) {
|
|
6691
6697
|
const r = ue(e), n = e[0].y;
|
|
6692
6698
|
t.forEach((s) => {
|
|
6693
6699
|
let o = 0;
|
|
@@ -6714,7 +6720,7 @@ function Vl(t, e) {
|
|
|
6714
6720
|
}
|
|
6715
6721
|
function Rl(t, e) {
|
|
6716
6722
|
const i = e.series[0], a = t;
|
|
6717
|
-
if (i.type ===
|
|
6723
|
+
if (i.type === h.HeatSeries) {
|
|
6718
6724
|
const { x: r, y: n } = i;
|
|
6719
6725
|
a[Q.xField] = a[r]?.toString(), delete a[r], a[Q.yField] = a[n]?.toString(), delete a[n];
|
|
6720
6726
|
const s = i.query?.outStatistics?.[0]?.outStatisticFieldName;
|
|
@@ -6792,12 +6798,12 @@ function Hl(t) {
|
|
|
6792
6798
|
}
|
|
6793
6799
|
function zl(t) {
|
|
6794
6800
|
const { queryResponse: e, chartConfig: i, maxCategoryCount: a } = t, r = k(i.series);
|
|
6795
|
-
return a && Number.isFinite(a) && a < e.length &&
|
|
6801
|
+
return a && Number.isFinite(a) && a < e.length && tr.includes(r) ? e.slice(0, a) : e;
|
|
6796
6802
|
}
|
|
6797
6803
|
function Wl(t) {
|
|
6798
6804
|
const { attributes: e, uniqueCategoryList: i, maxCategoryCount: a, x: r, chartSubType: n } = t;
|
|
6799
6805
|
let s = !1;
|
|
6800
|
-
if (r && a && Number.isFinite(a) && !
|
|
6806
|
+
if (r && a && Number.isFinite(a) && !tr.includes(n))
|
|
6801
6807
|
if ((n === F.BarAndLineFromFields || n === F.PieFromFields) && Object.keys(e).length > a)
|
|
6802
6808
|
Object.keys(e).filter((o) => o !== D.EnvelopeAggregate).forEach((o, u) => {
|
|
6803
6809
|
u >= a && delete e[o];
|
|
@@ -6823,14 +6829,14 @@ function Gl(t) {
|
|
|
6823
6829
|
yAxisValueFormat: d
|
|
6824
6830
|
} = t;
|
|
6825
6831
|
let f, m;
|
|
6826
|
-
c !== F.PieFromFields && (s && (typeof i == "string" || typeof i == "number") && (f = ri(i, s)), o && u ===
|
|
6832
|
+
c !== F.PieFromFields && (s && (typeof i == "string" || typeof i == "number") && (f = ri(i, s)), o && u === h.HeatSeries && typeof n == "string" && (typeof a == "string" || typeof a == "number") && (m = ri(a, o)), f !== void 0 && f !== i && (typeof f != "string" || !ne(l)) && (e[C.originalCategoryValue] = e[r], e[r] = f, e[C.xAxisDisplayField] = f), typeof n == "string" && !ne(d) && m !== void 0 && m !== a && (e[C.originalYCategoryValue] = e[n], e[n] = m));
|
|
6827
6833
|
}
|
|
6828
6834
|
function Ul(t) {
|
|
6829
6835
|
let e;
|
|
6830
6836
|
const [i, a, r] = t.split(":");
|
|
6831
6837
|
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;
|
|
6832
6838
|
}
|
|
6833
|
-
function
|
|
6839
|
+
function sr(t) {
|
|
6834
6840
|
const {
|
|
6835
6841
|
queryObject: e,
|
|
6836
6842
|
queryResponse: i,
|
|
@@ -6842,14 +6848,14 @@ function or(t) {
|
|
|
6842
6848
|
showMean: u,
|
|
6843
6849
|
chartLimits: c,
|
|
6844
6850
|
fieldList: l
|
|
6845
|
-
} = t, { series: d } = a, f = k(d), m = _(d), { x: y } = d[0], p = "y" in d[0] ? d[0].y : void 0, g = d[0].query?.outStatistics ?? [],
|
|
6851
|
+
} = t, { series: d } = a, f = k(d), m = _(d), { x: y } = d[0], p = "y" in d[0] ? d[0].y : void 0, g = d[0].query?.outStatistics ?? [], S = we(a?.axes?.[0]?.valueFormat), { originalYCategoryValue: b, originalCategoryValue: v, originalDateValue: x } = C, B = ai(e, y), N = typeof p == "string" ? ai(e, p) : void 0, w = ao(l ?? []).includes(y), L = [];
|
|
6846
6852
|
let A = 0;
|
|
6847
|
-
const I = /* @__PURE__ */ new Set(), { maxCategoryCount:
|
|
6853
|
+
const I = /* @__PURE__ */ new Set(), { maxCategoryCount: P } = ut(c), O = zl({ queryResponse: i, chartConfig: a, maxCategoryCount: P });
|
|
6848
6854
|
for (let V = 0; O[V] && V < O.length && !(o !== void 0 && A >= o); V += 1) {
|
|
6849
6855
|
A += jl(f, a);
|
|
6850
6856
|
const $ = O[V];
|
|
6851
6857
|
let M = { ...$.attributes };
|
|
6852
|
-
if (Wl({ attributes: M, uniqueCategoryList: I, maxCategoryCount:
|
|
6858
|
+
if (Wl({ attributes: M, uniqueCategoryList: I, maxCategoryCount: P, x: y, chartSubType: f }))
|
|
6853
6859
|
continue;
|
|
6854
6860
|
if ($l(M, d), f === F.PieFromFields || f === F.BarAndLineFromFields)
|
|
6855
6861
|
M = kl(M, g);
|
|
@@ -6863,13 +6869,13 @@ function or(t) {
|
|
|
6863
6869
|
Hl({ attributes: M, showMean: u, chartSubType: f });
|
|
6864
6870
|
let q = M[y];
|
|
6865
6871
|
const G = typeof p == "string" ? M[p] : void 0;
|
|
6866
|
-
q === null && d[0]?.query?.fetchNullValues === !0 && f !== F.PieFromFields && (M[v] = null, q = C.nullValue),
|
|
6867
|
-
const { outStatisticFieldName: J } = W.outStatistics ?? {}, { featureExtent: X, featureExtentKey: H } =
|
|
6872
|
+
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 = Il(M))), typeof q == "string" && l?.find((ae) => ae.name === y)?.type === U.TimeOnly && (M[v] = q, q = Ul(q));
|
|
6873
|
+
const { outStatisticFieldName: J } = W.outStatistics ?? {}, { featureExtent: X, featureExtentKey: H } = nr({ feature: $, splitByField: n, chartSubType: f });
|
|
6868
6874
|
if (X && (M[H] = X), f === F.BarAndLineSplitBy && J !== void 0) {
|
|
6869
6875
|
const ae = M[n], pe = r?.get(ae);
|
|
6870
6876
|
pe !== void 0 && (ae === n && (M[C.technicalFieldSplitByField] = M[pe]), M[pe] = M[J]), delete M[J];
|
|
6871
|
-
} else (f === F.PieNoAggregation || f === F.BarAndLineNoAggregation || f === F.BarAndLineSplitByNoAggregation) && (w ? M[
|
|
6872
|
-
m ===
|
|
6877
|
+
} else (f === F.PieNoAggregation || f === F.BarAndLineNoAggregation || f === F.BarAndLineSplitByNoAggregation) && (w ? M[x] = q : q !== C.nullValue && (M[v] = q), un({ isXAxis: !0, chartType: m, valueFormat: a.axes?.[0]?.valueFormat }) && (M[C.xAxisField] = `${q}-${V}`, M[C.xAxisDisplayField] = q), M[W.uniqueIdsName] = $.getObjectId());
|
|
6878
|
+
m === h.BoxPlotSeries && (M = Vl(d, M)), m === h.PieSeries && typeof q == "number" && (M[v] === void 0 && (M[v] = M[y]), q = `${q}`), q !== void 0 && (M[v] === void 0 && (M[v] = M[y]), M[y] === null ? M[y] = m === h.HeatSeries ? "null" : C.nullValue : M[y] = q, Gl({
|
|
6873
6879
|
attributes: M,
|
|
6874
6880
|
xValue: q,
|
|
6875
6881
|
yValue: G,
|
|
@@ -6881,9 +6887,9 @@ function or(t) {
|
|
|
6881
6887
|
chartSubType: f,
|
|
6882
6888
|
xAxisValueFormat: a.axes?.[0].valueFormat,
|
|
6883
6889
|
yAxisValueFormat: a.axes?.[1]?.valueFormat
|
|
6884
|
-
}), m ===
|
|
6890
|
+
}), m === h.HeatSeries && typeof p == "string" && M[p] === null && (M[p] = "null", M[b] = null), M[C.xAxisField] === void 0 && (M[C.xAxisField] = M[y])), M = Rl(M, a), L.push(M);
|
|
6885
6891
|
}
|
|
6886
|
-
return
|
|
6892
|
+
return L;
|
|
6887
6893
|
}
|
|
6888
6894
|
async function _t(t) {
|
|
6889
6895
|
const {
|
|
@@ -6902,31 +6908,31 @@ async function _t(t) {
|
|
|
6902
6908
|
errorStrings: m
|
|
6903
6909
|
} = t, { series: y } = a, p = k(y);
|
|
6904
6910
|
let g = [];
|
|
6905
|
-
const
|
|
6911
|
+
const S = p === F.BarAndLineSplitBy || p === F.BarAndLineSplitByNoAggregation ? te(y[0].query?.where) : "", b = f ?? await Fe({
|
|
6906
6912
|
queryObject: e,
|
|
6907
6913
|
queryConfig: i,
|
|
6908
6914
|
featureCount: o,
|
|
6909
6915
|
abortKey: n,
|
|
6910
6916
|
errorStrings: m,
|
|
6911
6917
|
abortSignal: s
|
|
6912
|
-
}), v = Ce(e, d), { x
|
|
6913
|
-
return g =
|
|
6918
|
+
}), v = Ce(e, d), { x } = y[0];
|
|
6919
|
+
return g = sr({
|
|
6914
6920
|
queryObject: e,
|
|
6915
|
-
queryResponse:
|
|
6921
|
+
queryResponse: b,
|
|
6916
6922
|
chartConfig: a,
|
|
6917
6923
|
mapToStatField: r,
|
|
6918
|
-
splitByField:
|
|
6924
|
+
splitByField: S,
|
|
6919
6925
|
isTimeBinningSeries: u,
|
|
6920
6926
|
fieldList: v,
|
|
6921
6927
|
resultLimit: i.num,
|
|
6922
6928
|
showMean: c,
|
|
6923
6929
|
chartLimits: l
|
|
6924
|
-
}), p !== F.BarAndLineSplitByNoAggregation && p !== F.BarAndLineFromFields && (
|
|
6930
|
+
}), p !== F.BarAndLineSplitByNoAggregation && p !== F.BarAndLineFromFields && (S !== "" && (g = Ft({ data: g, x, splitByField: S })), g = ql(
|
|
6925
6931
|
g,
|
|
6926
6932
|
y
|
|
6927
6933
|
)), g;
|
|
6928
6934
|
}
|
|
6929
|
-
async function
|
|
6935
|
+
async function or(t) {
|
|
6930
6936
|
const {
|
|
6931
6937
|
chartConfig: e,
|
|
6932
6938
|
queryObject: i,
|
|
@@ -6968,16 +6974,16 @@ async function si(t) {
|
|
|
6968
6974
|
chartLimits: f,
|
|
6969
6975
|
popupTemplateFieldInfosEnabled: m,
|
|
6970
6976
|
hideZeroCountCategories: y
|
|
6971
|
-
} = t, p = st(e), g = t.replaceNoValueCategoryWithZero ?? C.options.replaceNoValueCategoryWithZero,
|
|
6977
|
+
} = t, p = st(e), g = t.replaceNoValueCategoryWithZero ?? C.options.replaceNoValueCategoryWithZero, S = !(y ?? !g), { behaviorAfterLimit: b } = f ?? {};
|
|
6972
6978
|
let v;
|
|
6973
|
-
const
|
|
6979
|
+
const x = { valid: !0 };
|
|
6974
6980
|
let B, N = !1;
|
|
6975
|
-
const T = e.series, w = T[0],
|
|
6981
|
+
const T = e.series, w = T[0], L = k(e.series);
|
|
6976
6982
|
if (ie(r))
|
|
6977
|
-
v = _(T) ===
|
|
6983
|
+
v = _(T) === h.BarSeries ? await Hs(t) : x;
|
|
6978
6984
|
else {
|
|
6979
6985
|
if (w !== void 0) {
|
|
6980
|
-
const A = _(T), { uniqueQuery: I, mapToStatField:
|
|
6986
|
+
const A = _(T), { uniqueQuery: I, mapToStatField: P } = mi({
|
|
6981
6987
|
chartConfig: e,
|
|
6982
6988
|
queryObject: r,
|
|
6983
6989
|
queryConfig: i,
|
|
@@ -6986,11 +6992,11 @@ async function si(t) {
|
|
|
6986
6992
|
returnFeaturesExtent: d,
|
|
6987
6993
|
chartLimits: f
|
|
6988
6994
|
});
|
|
6989
|
-
let { categoryOrDateCount: O, elementCount: V } = await
|
|
6995
|
+
let { categoryOrDateCount: O, elementCount: V } = await or({
|
|
6990
6996
|
chartConfig: e,
|
|
6991
6997
|
queryObject: r,
|
|
6992
6998
|
queryConfig: i,
|
|
6993
|
-
behaviorAfterLimit:
|
|
6999
|
+
behaviorAfterLimit: b,
|
|
6994
7000
|
numberMaxOfFeaturesToFetch: I.num,
|
|
6995
7001
|
abortSignal: c
|
|
6996
7002
|
});
|
|
@@ -7006,7 +7012,7 @@ async function si(t) {
|
|
|
7006
7012
|
uniqueQuery: I,
|
|
7007
7013
|
chartConfig: e,
|
|
7008
7014
|
preFetchedQueryResponse: o,
|
|
7009
|
-
mapToStatField:
|
|
7015
|
+
mapToStatField: P,
|
|
7010
7016
|
elementCount: V,
|
|
7011
7017
|
isTimeBinningSeries: !1,
|
|
7012
7018
|
showMean: p,
|
|
@@ -7015,7 +7021,7 @@ async function si(t) {
|
|
|
7015
7021
|
errorStrings: u,
|
|
7016
7022
|
abortKey: n,
|
|
7017
7023
|
abortSignal: c
|
|
7018
|
-
}), de(e) && B !== void 0 && (
|
|
7024
|
+
}), de(e) && B !== void 0 && (x.data = await Yo({
|
|
7019
7025
|
data: B,
|
|
7020
7026
|
queryObject: r,
|
|
7021
7027
|
fetchFullBoxPlotData: a,
|
|
@@ -7026,22 +7032,22 @@ async function si(t) {
|
|
|
7026
7032
|
errorStrings: u,
|
|
7027
7033
|
abortKey: n,
|
|
7028
7034
|
abortSignal: c
|
|
7029
|
-
}), f?.maxBoxPlotOutlierLimit !== void 0 && (M = (
|
|
7035
|
+
}), f?.maxBoxPlotOutlierLimit !== void 0 && (M = (x.data.outliers ?? []).length <= f.maxBoxPlotOutlierLimit, N = !M)), $ && (O = B.length, V = ti(L) ? O * T.length : O, M = Ae({
|
|
7030
7036
|
count: V,
|
|
7031
7037
|
seriesCount: T.length,
|
|
7032
7038
|
chartType: A,
|
|
7033
7039
|
chartLimits: f
|
|
7034
7040
|
})), M)) {
|
|
7035
|
-
if (A ===
|
|
7036
|
-
|
|
7041
|
+
if (A === h.PieSeries) {
|
|
7042
|
+
L === F.PieFromFields && (B = Mt({
|
|
7037
7043
|
dataToConvert: B[0],
|
|
7038
7044
|
x: ce,
|
|
7039
7045
|
y: Ne,
|
|
7040
7046
|
fieldList: s
|
|
7041
7047
|
}));
|
|
7042
7048
|
let q = "";
|
|
7043
|
-
|
|
7044
|
-
} else if ((A ===
|
|
7049
|
+
L === F.PieFromFields ? q = Ne : "y" in w && typeof w.y == "string" && (q = w.y), qn(B, q) ? x.data = { dataItems: B } : qo(x, j.PieChartMixOfNegativePositiveSlices);
|
|
7050
|
+
} else if ((A === h.RadarSeries || A === h.BarSeries || A === h.LineSeries || A === h.ComboLineAndBarSeries) && (L === F.BarAndLineFromFields && "y" in w && typeof w.y == "string" ? B = Mt({
|
|
7045
7051
|
dataToConvert: B[0],
|
|
7046
7052
|
x: w.x,
|
|
7047
7053
|
y: w.y,
|
|
@@ -7052,32 +7058,32 @@ async function si(t) {
|
|
|
7052
7058
|
chartConfig: e,
|
|
7053
7059
|
queryConfig: i,
|
|
7054
7060
|
categoryOrDateCount: O,
|
|
7055
|
-
behaviorAfterLimit:
|
|
7061
|
+
behaviorAfterLimit: b,
|
|
7056
7062
|
errorStrings: u,
|
|
7057
7063
|
abortKey: n,
|
|
7058
7064
|
abortSignal: c
|
|
7059
|
-
}), V = ti(
|
|
7065
|
+
}), V = ti(L) ? B.length * T.length : B.length, M = Ae({
|
|
7060
7066
|
count: V,
|
|
7061
7067
|
seriesCount: T.length,
|
|
7062
7068
|
chartType: A,
|
|
7063
7069
|
chartLimits: f
|
|
7064
7070
|
}), M)) {
|
|
7065
|
-
|
|
7071
|
+
S && (B = yl(B, e));
|
|
7066
7072
|
let q = {};
|
|
7067
7073
|
if (be(w)) {
|
|
7068
7074
|
const { size: G, unit: J } = w.temporalBinning ?? {};
|
|
7069
7075
|
G !== void 0 && J !== void 0 && (q = { size: G, unit: J });
|
|
7070
7076
|
}
|
|
7071
|
-
|
|
7077
|
+
x.data = { dataItems: B, timeIntervalInfo: q };
|
|
7072
7078
|
}
|
|
7073
7079
|
}
|
|
7074
7080
|
M || Dt({
|
|
7075
|
-
dataInfo:
|
|
7081
|
+
dataInfo: x,
|
|
7076
7082
|
chartType: A,
|
|
7077
7083
|
subError: { outlierLimit: N }
|
|
7078
|
-
}),
|
|
7084
|
+
}), x.count = V;
|
|
7079
7085
|
}
|
|
7080
|
-
v =
|
|
7086
|
+
v = x;
|
|
7081
7087
|
}
|
|
7082
7088
|
return v;
|
|
7083
7089
|
}
|
|
@@ -7141,7 +7147,7 @@ function zi(t) {
|
|
|
7141
7147
|
const { day: e, month: i, includeLeapDay: a } = t;
|
|
7142
7148
|
return i === 2 && e > (a ? 29 : 28) || [4, 6, 9, 11].includes(i) && e > 30;
|
|
7143
7149
|
}
|
|
7144
|
-
async function
|
|
7150
|
+
async function lr(t) {
|
|
7145
7151
|
const {
|
|
7146
7152
|
chartConfig: e,
|
|
7147
7153
|
queryConfig: i,
|
|
@@ -7158,7 +7164,7 @@ async function ur(t) {
|
|
|
7158
7164
|
} = t, m = { valid: !0 };
|
|
7159
7165
|
let y;
|
|
7160
7166
|
if (We(e)) {
|
|
7161
|
-
const { nullPolicy: p } = e, g = e.series[0], { x:
|
|
7167
|
+
const { nullPolicy: p } = e, g = e.series[0], { x: S, y: b, query: v, xTemporalBinning: x, yTemporalBinning: B } = g, N = v?.outStatistics?.[0]?.outStatisticFieldName ?? "", T = v?.outStatistics?.[0]?.statisticType ?? D.Count, w = Zl(e), L = Q.valueField, A = p === Se.Zero ? 0 : null;
|
|
7162
7168
|
if (Oo(e)) {
|
|
7163
7169
|
const I = await Bs({
|
|
7164
7170
|
chartConfig: e,
|
|
@@ -7172,13 +7178,13 @@ async function ur(t) {
|
|
|
7172
7178
|
if (!Ae({
|
|
7173
7179
|
count: I?.length ?? 0,
|
|
7174
7180
|
seriesCount: 1,
|
|
7175
|
-
chartType:
|
|
7181
|
+
chartType: h.HeatSeries,
|
|
7176
7182
|
chartLimits: o
|
|
7177
7183
|
}))
|
|
7178
|
-
Dt({ dataInfo: m, chartType:
|
|
7184
|
+
Dt({ dataInfo: m, chartType: h.HeatSeries });
|
|
7179
7185
|
else if (typeof I?.[0] == "object") {
|
|
7180
|
-
const
|
|
7181
|
-
y =
|
|
7186
|
+
const P = Ce(a, u);
|
|
7187
|
+
y = sr({
|
|
7182
7188
|
queryObject: a,
|
|
7183
7189
|
queryResponse: I,
|
|
7184
7190
|
chartConfig: e,
|
|
@@ -7186,19 +7192,19 @@ async function ur(t) {
|
|
|
7186
7192
|
isTimeBinningSeries: !1,
|
|
7187
7193
|
chartLimits: o,
|
|
7188
7194
|
resultLimit: i.num,
|
|
7189
|
-
fieldList:
|
|
7195
|
+
fieldList: P
|
|
7190
7196
|
});
|
|
7191
7197
|
const O = await Ut({
|
|
7192
7198
|
queryObject: a,
|
|
7193
7199
|
queryConfig: i,
|
|
7194
|
-
category:
|
|
7200
|
+
category: S,
|
|
7195
7201
|
errorStrings: n,
|
|
7196
7202
|
abortKey: d,
|
|
7197
7203
|
abortSignal: f
|
|
7198
7204
|
}), V = await Ut({
|
|
7199
7205
|
queryObject: a,
|
|
7200
7206
|
queryConfig: i,
|
|
7201
|
-
category:
|
|
7207
|
+
category: b,
|
|
7202
7208
|
errorStrings: n,
|
|
7203
7209
|
abortKey: d,
|
|
7204
7210
|
abortSignal: f
|
|
@@ -7209,15 +7215,15 @@ async function ur(t) {
|
|
|
7209
7215
|
dataItems: y,
|
|
7210
7216
|
xUniqueValues: O,
|
|
7211
7217
|
yUniqueValues: V,
|
|
7212
|
-
valueField:
|
|
7218
|
+
valueField: L,
|
|
7213
7219
|
emptyCellValue: A,
|
|
7214
|
-
x:
|
|
7215
|
-
y:
|
|
7220
|
+
x: S,
|
|
7221
|
+
y: b,
|
|
7216
7222
|
queryObject: a
|
|
7217
7223
|
})
|
|
7218
7224
|
], w && (y = Xl({
|
|
7219
7225
|
dataItems: y,
|
|
7220
|
-
valueField:
|
|
7226
|
+
valueField: L,
|
|
7221
7227
|
filterOutZero: T === D.Count
|
|
7222
7228
|
})));
|
|
7223
7229
|
}
|
|
@@ -7230,32 +7236,32 @@ async function ur(t) {
|
|
|
7230
7236
|
syncViewTimeZone: l,
|
|
7231
7237
|
errorStrings: n,
|
|
7232
7238
|
abortSignal: f
|
|
7233
|
-
}),
|
|
7239
|
+
}), P = B ? Yl(B.unit) : await Ut({ queryObject: a, queryConfig: i, category: b, errorStrings: n, abortKey: d, abortSignal: f });
|
|
7234
7240
|
let O = 0;
|
|
7235
7241
|
y = I?.features.flatMap((V) => {
|
|
7236
7242
|
const $ = [], { attributes: M, stackedAttributes: q } = V, G = [];
|
|
7237
7243
|
if (q?.forEach((J) => {
|
|
7238
|
-
const X = `${J[
|
|
7244
|
+
const X = `${J[b]}`;
|
|
7239
7245
|
G.push(X), $.push({
|
|
7240
7246
|
[Q.xField]: `${M[W.heatChartLowerBoundaryAlias]}`,
|
|
7241
7247
|
[Q.yField]: X,
|
|
7242
|
-
[
|
|
7248
|
+
[L]: J[N]
|
|
7243
7249
|
});
|
|
7244
|
-
}), r &&
|
|
7245
|
-
const J =
|
|
7246
|
-
w && (J.length !==
|
|
7247
|
-
Number.isFinite(Number(M[W.heatChartLowerBoundaryAlias])) && Number.isFinite(Number(X)) && (
|
|
7250
|
+
}), r && P && G.length !== P?.length) {
|
|
7251
|
+
const J = P.filter((X) => !G.includes(X.toString()));
|
|
7252
|
+
w && (J.length !== P.length || G.length === 0) || J.forEach((X) => {
|
|
7253
|
+
Number.isFinite(Number(M[W.heatChartLowerBoundaryAlias])) && Number.isFinite(Number(X)) && (x?.unit === he.DayOfMonth && B?.unit === he.MonthOfYear && zi({
|
|
7248
7254
|
day: Number(M[W.heatChartLowerBoundaryAlias]),
|
|
7249
7255
|
month: Number(X),
|
|
7250
7256
|
includeLeapDay: e.includeLeapDay
|
|
7251
|
-
}) || B?.unit === he.DayOfMonth &&
|
|
7257
|
+
}) || B?.unit === he.DayOfMonth && x?.unit === he.MonthOfYear && zi({
|
|
7252
7258
|
day: Number(X),
|
|
7253
7259
|
month: Number(M[W.heatChartLowerBoundaryAlias]),
|
|
7254
7260
|
includeLeapDay: e.includeLeapDay
|
|
7255
7261
|
})) || $.push({
|
|
7256
7262
|
[Q.xField]: `${M[W.heatChartLowerBoundaryAlias]}`,
|
|
7257
7263
|
[Q.yField]: X,
|
|
7258
|
-
[
|
|
7264
|
+
[L]: p === Se.Zero ? 0 : null
|
|
7259
7265
|
});
|
|
7260
7266
|
});
|
|
7261
7267
|
}
|
|
@@ -7263,13 +7269,13 @@ async function ur(t) {
|
|
|
7263
7269
|
}), Ae({
|
|
7264
7270
|
count: O,
|
|
7265
7271
|
seriesCount: 1,
|
|
7266
|
-
chartType:
|
|
7272
|
+
chartType: h.HeatSeries,
|
|
7267
7273
|
chartLimits: o
|
|
7268
|
-
}) || Dt({ dataInfo: m, chartType:
|
|
7274
|
+
}) || Dt({ dataInfo: m, chartType: h.HeatSeries });
|
|
7269
7275
|
}
|
|
7270
7276
|
y && (m.data = {
|
|
7271
7277
|
dataItems: y,
|
|
7272
|
-
heatChartAxesData:
|
|
7278
|
+
heatChartAxesData: Xa({ chartConfig: e, chartData: y })
|
|
7273
7279
|
});
|
|
7274
7280
|
}
|
|
7275
7281
|
return m;
|
|
@@ -7277,7 +7283,7 @@ async function ur(t) {
|
|
|
7277
7283
|
function Kl(t) {
|
|
7278
7284
|
const { chartConfig: e, data: i, chartLimits: a } = t, r = e.series;
|
|
7279
7285
|
let n = i;
|
|
7280
|
-
const s =
|
|
7286
|
+
const s = Ba(e, a);
|
|
7281
7287
|
if (s !== void 0) {
|
|
7282
7288
|
const o = ue(r);
|
|
7283
7289
|
if (o.length === 1)
|
|
@@ -7316,28 +7322,28 @@ async function bi(t) {
|
|
|
7316
7322
|
popupTemplateFieldInfosEnabled: d,
|
|
7317
7323
|
view: f,
|
|
7318
7324
|
syncViewTimeZone: m
|
|
7319
|
-
} = t, { behaviorAfterLimit: y } = l ?? {}, p = e.series, g = p[0], { x:
|
|
7320
|
-
let
|
|
7325
|
+
} = t, { behaviorAfterLimit: y } = l ?? {}, p = e.series, g = p[0], { x: S } = g, b = te(g.query?.where), v = { valid: !0 };
|
|
7326
|
+
let x;
|
|
7321
7327
|
if (be(g)) {
|
|
7322
7328
|
const { temporalBinning: B } = g;
|
|
7323
7329
|
if (a && B) {
|
|
7324
7330
|
const { unit: N, size: T } = B;
|
|
7325
|
-
let w = 1,
|
|
7331
|
+
let w = 1, L = { unit: N, size: T }, A = !1;
|
|
7326
7332
|
const I = Ol({
|
|
7327
7333
|
series: g,
|
|
7328
7334
|
isTimeBinningSeries: !0,
|
|
7329
7335
|
setTimeBinningInfoWhenNotProvided: u
|
|
7330
|
-
}),
|
|
7331
|
-
I &&
|
|
7336
|
+
}), P = !rt(b, a) || I ? await vl({ queryObject: a, queryConfig: i, x: S, errorStrings: o, abortSignal: n }) : void 0;
|
|
7337
|
+
I && P && P.numberOfFeatures > 0 && P.dateRange.dateMaxTimestamp !== void 0 && P.dateRange.dateMinTimestamp !== void 0 && (L = Dl(P), Ce(a).find((G) => G.name === S)?.type === U.DateOnly && L.unit !== void 0 && [
|
|
7332
7338
|
R.Hour,
|
|
7333
7339
|
R.Minute,
|
|
7334
7340
|
R.Second
|
|
7335
|
-
].includes(
|
|
7341
|
+
].includes(L.unit) && (L.unit = R.Day, L.size = 1), B.size = L.size, B.unit = L.unit);
|
|
7336
7342
|
const { uniqueQuery: O, mapToStatField: V } = mi({
|
|
7337
7343
|
chartConfig: e,
|
|
7338
7344
|
queryConfig: i,
|
|
7339
7345
|
queryObject: a,
|
|
7340
|
-
timeIntervalInfo:
|
|
7346
|
+
timeIntervalInfo: L,
|
|
7341
7347
|
setTimeBinningInfoWhenNotProvided: u,
|
|
7342
7348
|
returnFeaturesExtent: c,
|
|
7343
7349
|
chartLimits: l
|
|
@@ -7345,15 +7351,15 @@ async function bi(t) {
|
|
|
7345
7351
|
let $ = Ae({
|
|
7346
7352
|
count: w ?? 0,
|
|
7347
7353
|
seriesCount: p.length,
|
|
7348
|
-
chartType:
|
|
7354
|
+
chartType: h.LineSeries,
|
|
7349
7355
|
chartLimits: l
|
|
7350
7356
|
});
|
|
7351
7357
|
if ($) {
|
|
7352
|
-
if (rt(
|
|
7353
|
-
const M = e.axes?.[0].valueFormat.type ===
|
|
7358
|
+
if (rt(b, a)) {
|
|
7359
|
+
const M = e.axes?.[0].valueFormat.type === h.DateAxisFormat ? e.axes[0].valueFormat.intlOptions.timeZone : void 0, q = s?.[0] instanceof Ir ? s : await Ls({
|
|
7354
7360
|
queryObject: a,
|
|
7355
|
-
dateField:
|
|
7356
|
-
splitByField:
|
|
7361
|
+
dateField: S,
|
|
7362
|
+
splitByField: b,
|
|
7357
7363
|
queryConfig: O,
|
|
7358
7364
|
axisTimeZone: M,
|
|
7359
7365
|
temporalBinning: B,
|
|
@@ -7362,38 +7368,38 @@ async function bi(t) {
|
|
|
7362
7368
|
syncViewTimeZone: m,
|
|
7363
7369
|
abortSignal: n
|
|
7364
7370
|
}), G = "y" in g && typeof g.y == "string" ? g.y : void 0;
|
|
7365
|
-
if (
|
|
7371
|
+
if (x = Ll({
|
|
7366
7372
|
chartConfig: e,
|
|
7367
7373
|
queryResults: q,
|
|
7368
7374
|
mapToStatField: V,
|
|
7369
|
-
splitByField:
|
|
7370
|
-
x:
|
|
7375
|
+
splitByField: b,
|
|
7376
|
+
x: S,
|
|
7371
7377
|
y: G,
|
|
7372
7378
|
nullPolicy: B.nullPolicy,
|
|
7373
7379
|
queryObject: a
|
|
7374
7380
|
}), !Ae({
|
|
7375
|
-
count:
|
|
7381
|
+
count: x.length,
|
|
7376
7382
|
seriesCount: p.length,
|
|
7377
|
-
chartType:
|
|
7383
|
+
chartType: h.LineSeries,
|
|
7378
7384
|
chartLimits: l
|
|
7379
7385
|
})) {
|
|
7380
|
-
const J = ue(p), X =
|
|
7386
|
+
const J = ue(p), X = x.filter(
|
|
7381
7387
|
(H) => J.some((ae) => ae in H && Number.isFinite(H[ae]))
|
|
7382
7388
|
).length;
|
|
7383
7389
|
Ae({
|
|
7384
7390
|
count: X,
|
|
7385
7391
|
seriesCount: p.length,
|
|
7386
|
-
chartType:
|
|
7392
|
+
chartType: h.LineSeries,
|
|
7387
7393
|
chartLimits: l
|
|
7388
7394
|
}) || ($ = !1);
|
|
7389
7395
|
}
|
|
7390
|
-
} else if (
|
|
7391
|
-
const { numberOfFinalBinsWithinDataRange: M } =
|
|
7392
|
-
dateMinTimestamp:
|
|
7393
|
-
dateMaxTimestamp:
|
|
7394
|
-
timeIntervalInfo:
|
|
7396
|
+
} else if (P?.dateRange.dateMinTimestamp && P.dateRange.dateMaxTimestamp) {
|
|
7397
|
+
const { numberOfFinalBinsWithinDataRange: M } = ar({
|
|
7398
|
+
dateMinTimestamp: P.dateRange.dateMinTimestamp,
|
|
7399
|
+
dateMaxTimestamp: P.dateRange.dateMaxTimestamp,
|
|
7400
|
+
timeIntervalInfo: L
|
|
7395
7401
|
});
|
|
7396
|
-
w = M * p.length, w =
|
|
7402
|
+
w = M * p.length, w = ir(w, L.unit), x = await _t({
|
|
7397
7403
|
queryObject: a,
|
|
7398
7404
|
uniqueQuery: O,
|
|
7399
7405
|
chartConfig: e,
|
|
@@ -7405,21 +7411,21 @@ async function bi(t) {
|
|
|
7405
7411
|
errorStrings: o,
|
|
7406
7412
|
abortKey: r,
|
|
7407
7413
|
abortSignal: n
|
|
7408
|
-
}),
|
|
7414
|
+
}), x = await Pl({
|
|
7409
7415
|
queryObject: a,
|
|
7410
7416
|
queryConfig: i,
|
|
7411
|
-
queryResults:
|
|
7412
|
-
x:
|
|
7417
|
+
queryResults: x,
|
|
7418
|
+
x: S,
|
|
7413
7419
|
seriesConfig: p,
|
|
7414
|
-
dateRange:
|
|
7415
|
-
timeIntervalInfo:
|
|
7420
|
+
dateRange: P.dateRange,
|
|
7421
|
+
timeIntervalInfo: L,
|
|
7416
7422
|
errorStrings: o,
|
|
7417
7423
|
abortSignal: n
|
|
7418
7424
|
});
|
|
7419
7425
|
}
|
|
7420
|
-
|
|
7426
|
+
ua(a) && x && x?.length === gl && (A = !0), y === lt.RenderUpToTheLimit && x && (x = Kl({ chartConfig: e, chartLimits: l, data: x }));
|
|
7421
7427
|
}
|
|
7422
|
-
$ || (v.valid = !1, v.invalidType = j.LineChartExceedsLimit),
|
|
7428
|
+
$ || (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;
|
|
7423
7429
|
}
|
|
7424
7430
|
}
|
|
7425
7431
|
return v;
|
|
@@ -7463,7 +7469,7 @@ async function eu(t) {
|
|
|
7463
7469
|
errorStrings: c,
|
|
7464
7470
|
abortKey: r
|
|
7465
7471
|
});
|
|
7466
|
-
return de(e) && (g =
|
|
7472
|
+
return de(e) && (g = Za({ chartConfig: e, data: g, calculateZScore: !1 })), d.data = { dataItems: g }, d;
|
|
7467
7473
|
}
|
|
7468
7474
|
async function tu(t) {
|
|
7469
7475
|
const {
|
|
@@ -7536,9 +7542,9 @@ async function ru(t) {
|
|
|
7536
7542
|
dataContextCountDistinctX: m,
|
|
7537
7543
|
dataContextCountDistinctY: y
|
|
7538
7544
|
} = C.scatterplotAggregationFields;
|
|
7539
|
-
let p, g,
|
|
7540
|
-
const
|
|
7541
|
-
if (
|
|
7545
|
+
let p, g, S, b, v;
|
|
7546
|
+
const x = e.get(c), B = e.get(l), N = e.get(d), T = e.get(f);
|
|
7547
|
+
if (x != null && N !== void 0 && N !== null && B !== void 0 && B !== null && T !== void 0 && T !== null && !Number.isNaN(x + B + N + T)) {
|
|
7542
7548
|
const { maxScatterPointsAfterAggregation: w } = ut(r), A = Math.floor(Math.sqrt(w)), I = await au({
|
|
7543
7549
|
queryObject: a,
|
|
7544
7550
|
chartConfig: i,
|
|
@@ -7547,7 +7553,7 @@ async function ru(t) {
|
|
|
7547
7553
|
abortKey: o,
|
|
7548
7554
|
abortSignal: u
|
|
7549
7555
|
});
|
|
7550
|
-
|
|
7556
|
+
S = Math.min(I.get(y) ?? Number.NaN, A), b = Math.min(I.get(m) ?? Number.NaN, A), v = b * S, p = B === x ? 0 : (B - x) / (b - 1), g = T === N ? 0 : (T - N) / (S - 1), e.set(C.scatterplotAggregationFields.xStep, p), e.set(C.scatterplotAggregationFields.yStep, g), e.set(C.scatterplotAggregationFields.rowCount, S), e.set(C.scatterplotAggregationFields.columnCount, b), e.set(C.scatterplotAggregationFields.realGridSize, v);
|
|
7551
7557
|
}
|
|
7552
7558
|
}
|
|
7553
7559
|
function nu(t) {
|
|
@@ -7600,12 +7606,12 @@ async function ou(t) {
|
|
|
7600
7606
|
dataContextYMinField: y,
|
|
7601
7607
|
dataContextYMaxField: p,
|
|
7602
7608
|
queryNumberOfFeatures: g,
|
|
7603
|
-
queryNumberOfAggregatedFeatures:
|
|
7609
|
+
queryNumberOfAggregatedFeatures: S
|
|
7604
7610
|
} = C.scatterplotAggregationFields;
|
|
7605
|
-
let
|
|
7606
|
-
const v = e?.get(f) ?? Number.NaN,
|
|
7607
|
-
if (v != null && N !== void 0 && N !== null &&
|
|
7608
|
-
const w = z(a), { idField:
|
|
7611
|
+
let b;
|
|
7612
|
+
const v = e?.get(f) ?? Number.NaN, x = e?.get(m) ?? Number.NaN, B = e?.get(g) ?? Number.NaN, N = e?.get(y) ?? v, T = e?.get(p) ?? x;
|
|
7613
|
+
if (v != null && N !== void 0 && N !== null && x !== void 0 && x !== null && T !== void 0 && T !== null && !Number.isNaN(v + x + N + T)) {
|
|
7614
|
+
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);
|
|
7609
7615
|
if (G?.forEach((H) => {
|
|
7610
7616
|
St(H) && q.set(H.name, {
|
|
7611
7617
|
onStatisticField: H.name,
|
|
@@ -7618,15 +7624,15 @@ async function ou(t) {
|
|
|
7618
7624
|
outStatisticFieldName: H.name,
|
|
7619
7625
|
statisticType: D.Maximum
|
|
7620
7626
|
});
|
|
7621
|
-
}), (await
|
|
7627
|
+
}), (await ka(w)).forEach((H) => {
|
|
7622
7628
|
q.set(H, {
|
|
7623
7629
|
onStatisticField: H,
|
|
7624
7630
|
outStatisticFieldName: H,
|
|
7625
7631
|
statisticType: D.Maximum
|
|
7626
7632
|
});
|
|
7627
|
-
}),
|
|
7633
|
+
}), L !== "" && q.set(L, {
|
|
7628
7634
|
onStatisticField: I,
|
|
7629
|
-
outStatisticFieldName:
|
|
7635
|
+
outStatisticFieldName: S,
|
|
7630
7636
|
statisticType: D.Count
|
|
7631
7637
|
}), q.set(l, {
|
|
7632
7638
|
onStatisticField: l,
|
|
@@ -7636,18 +7642,18 @@ async function ou(t) {
|
|
|
7636
7642
|
onStatisticField: d,
|
|
7637
7643
|
outStatisticFieldName: d,
|
|
7638
7644
|
statisticType: D.Maximum
|
|
7639
|
-
}),
|
|
7645
|
+
}), P !== void 0 && O !== void 0) {
|
|
7640
7646
|
if (n) {
|
|
7641
7647
|
const H = {
|
|
7642
7648
|
...r,
|
|
7643
7649
|
outStatistics: [...q.values()]
|
|
7644
7650
|
};
|
|
7645
|
-
|
|
7651
|
+
b = await Ns({
|
|
7646
7652
|
queryObject: a,
|
|
7647
7653
|
queryConfig: H,
|
|
7648
|
-
xStep:
|
|
7654
|
+
xStep: P,
|
|
7649
7655
|
xMin: v,
|
|
7650
|
-
xMax:
|
|
7656
|
+
xMax: x,
|
|
7651
7657
|
x: l,
|
|
7652
7658
|
y: d,
|
|
7653
7659
|
yStep: O,
|
|
@@ -7666,13 +7672,13 @@ async function ou(t) {
|
|
|
7666
7672
|
y: d,
|
|
7667
7673
|
xValue: Xe,
|
|
7668
7674
|
yValue: ke,
|
|
7669
|
-
xStep:
|
|
7675
|
+
xStep: P,
|
|
7670
7676
|
yStep: O,
|
|
7671
7677
|
endOfRow: xt === $,
|
|
7672
7678
|
endOfColumn: Ht === M
|
|
7673
|
-
}), Xe < Ct && (Ct = Xe), Xe +
|
|
7679
|
+
}), Xe < Ct && (Ct = Xe), Xe + P > vt && (vt = Xe + P), ke < Bt && (Bt = ke), ke + P > Nt && (Nt = ke + O), H += 1, H % vi === 0 || H === V || H === B) {
|
|
7674
7680
|
Je = `${Je} ${Ue.groupByCaseEnd}`;
|
|
7675
|
-
const
|
|
7681
|
+
const gr = {
|
|
7676
7682
|
...r,
|
|
7677
7683
|
groupByFieldsForStatistics: [Je],
|
|
7678
7684
|
outStatistics: [...q.values()]
|
|
@@ -7680,7 +7686,7 @@ async function ou(t) {
|
|
|
7680
7686
|
Bi.push(
|
|
7681
7687
|
su({
|
|
7682
7688
|
chartConfig: i,
|
|
7683
|
-
queryConfig:
|
|
7689
|
+
queryConfig: gr,
|
|
7684
7690
|
queryObject: a,
|
|
7685
7691
|
xMin: Ct,
|
|
7686
7692
|
xMax: vt,
|
|
@@ -7694,13 +7700,13 @@ async function ou(t) {
|
|
|
7694
7700
|
}
|
|
7695
7701
|
ke += O, xt += 1;
|
|
7696
7702
|
}
|
|
7697
|
-
Xe +=
|
|
7703
|
+
Xe += P, Ht += 1;
|
|
7698
7704
|
}
|
|
7699
|
-
|
|
7705
|
+
b = (await Promise.all(Bi)).flat();
|
|
7700
7706
|
}
|
|
7701
7707
|
}
|
|
7702
7708
|
}
|
|
7703
|
-
return
|
|
7709
|
+
return b;
|
|
7704
7710
|
}
|
|
7705
7711
|
async function lu(t) {
|
|
7706
7712
|
const { chartConfig: e, queryConfig: i, queryObject: a, errorStrings: r, abortKey: n, abortSignal: s } = t, o = e.series[0], { x: u, y: c } = o;
|
|
@@ -7711,10 +7717,10 @@ async function lu(t) {
|
|
|
7711
7717
|
dataContextYMinField: m,
|
|
7712
7718
|
dataContextYMaxField: y,
|
|
7713
7719
|
queryNumberOfFeatures: p
|
|
7714
|
-
} = C.scatterplotAggregationFields, { idField: g, isTraditionalTypeOID:
|
|
7720
|
+
} = C.scatterplotAggregationFields, { idField: g, isTraditionalTypeOID: S } = ve(z(a)), b = S ? g : "*", v = [
|
|
7715
7721
|
{
|
|
7716
7722
|
statisticType: D.Count,
|
|
7717
|
-
onStatisticField:
|
|
7723
|
+
onStatisticField: b,
|
|
7718
7724
|
outStatisticFieldName: p
|
|
7719
7725
|
},
|
|
7720
7726
|
{
|
|
@@ -7740,10 +7746,10 @@ async function lu(t) {
|
|
|
7740
7746
|
onStatisticField: c
|
|
7741
7747
|
}
|
|
7742
7748
|
);
|
|
7743
|
-
const
|
|
7744
|
-
return
|
|
7749
|
+
const x = { ...i };
|
|
7750
|
+
return x.outStatistics = v, l = await bt({
|
|
7745
7751
|
queryObject: a,
|
|
7746
|
-
queryConfig:
|
|
7752
|
+
queryConfig: x,
|
|
7747
7753
|
errorStrings: r,
|
|
7748
7754
|
abortKey: n,
|
|
7749
7755
|
abortSignal: s
|
|
@@ -7757,42 +7763,42 @@ function uu(t) {
|
|
|
7757
7763
|
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;
|
|
7758
7764
|
let d = [];
|
|
7759
7765
|
if (e && "stackedAttributes" in i && i.stackedAttributes) {
|
|
7760
|
-
const f =
|
|
7766
|
+
const f = Pa(a, r), m = i.attributes[f.lowerBoundaryAlias], y = i.attributes[f.upperBoundaryAlias];
|
|
7761
7767
|
i.stackedAttributes.forEach((p) => {
|
|
7762
|
-
let g = p[f.stackAlias],
|
|
7763
|
-
typeof g == "number" && typeof n == "number" && (g *= n), typeof g == "number" && typeof n == "number" && (
|
|
7764
|
-
const
|
|
7765
|
-
typeof g == "number" && typeof
|
|
7768
|
+
let g = p[f.stackAlias], S;
|
|
7769
|
+
typeof g == "number" && typeof n == "number" && (g *= n), typeof g == "number" && typeof n == "number" && (S = g + n);
|
|
7770
|
+
const b = p[a], v = p[r];
|
|
7771
|
+
typeof g == "number" && typeof S == "number" && typeof b == "number" && typeof v == "number" && d.push({
|
|
7766
7772
|
...p,
|
|
7767
|
-
[a]: At({ value:
|
|
7768
|
-
[r]: At({ value: v, valueMin: g, valueMax:
|
|
7773
|
+
[a]: At({ value: b, valueMin: m, valueMax: y }),
|
|
7774
|
+
[r]: At({ value: v, valueMin: g, valueMax: S }),
|
|
7769
7775
|
[o]: Math.min(m, y),
|
|
7770
7776
|
[u]: Math.max(m, y),
|
|
7771
7777
|
[c]: g,
|
|
7772
|
-
[l]:
|
|
7778
|
+
[l]: S
|
|
7773
7779
|
});
|
|
7774
7780
|
});
|
|
7775
7781
|
} else {
|
|
7776
7782
|
const { expr: f, isInItem: m } = Et(i.attributes);
|
|
7777
7783
|
if (m && f && i.attributes[f] !== s) {
|
|
7778
|
-
let [y, p, g,
|
|
7779
|
-
y = Math.min(y, p), p = Math.max(y, p), g = Math.min(g,
|
|
7780
|
-
const
|
|
7784
|
+
let [y, p, g, S] = i.attributes[f].split("|");
|
|
7785
|
+
y = Math.min(y, p), p = Math.max(y, p), g = Math.min(g, S), S = Math.max(g, S);
|
|
7786
|
+
const b = {
|
|
7781
7787
|
...i.attributes,
|
|
7782
7788
|
[o]: y,
|
|
7783
7789
|
[u]: p,
|
|
7784
7790
|
[c]: g,
|
|
7785
|
-
[l]:
|
|
7791
|
+
[l]: S
|
|
7786
7792
|
};
|
|
7787
|
-
|
|
7788
|
-
value:
|
|
7793
|
+
b[a] = At({
|
|
7794
|
+
value: b[a],
|
|
7789
7795
|
valueMin: y,
|
|
7790
7796
|
valueMax: p
|
|
7791
|
-
}),
|
|
7792
|
-
value:
|
|
7797
|
+
}), b[r] = At({
|
|
7798
|
+
value: b[r],
|
|
7793
7799
|
valueMin: g,
|
|
7794
|
-
valueMax:
|
|
7795
|
-
}), d = [
|
|
7800
|
+
valueMax: S
|
|
7801
|
+
}), d = [b];
|
|
7796
7802
|
}
|
|
7797
7803
|
}
|
|
7798
7804
|
return d;
|
|
@@ -7817,19 +7823,19 @@ function cu(t) {
|
|
|
7817
7823
|
async function du(t) {
|
|
7818
7824
|
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);
|
|
7819
7825
|
let f = [];
|
|
7820
|
-
const m = Ce(e), y = $t(d).idFields, p = (m?.filter((
|
|
7821
|
-
(
|
|
7822
|
-
) ?? [], g = u?.additionalTooltipFields ?? [],
|
|
7826
|
+
const m = Ce(e), y = $t(d).idFields, p = (m?.filter((x) => St(x) && x.name !== c && x.name !== l) ?? []).map(
|
|
7827
|
+
(x) => x.name
|
|
7828
|
+
) ?? [], g = u?.additionalTooltipFields ?? [], S = Array.from(
|
|
7823
7829
|
/* @__PURE__ */ new Set([c, l, ...y ?? [], ...p, ...g])
|
|
7824
|
-
),
|
|
7825
|
-
if (
|
|
7826
|
-
const { rendererField:
|
|
7827
|
-
oe(
|
|
7830
|
+
), b = ge(d);
|
|
7831
|
+
if (b && !b.isTable) {
|
|
7832
|
+
const { rendererField: x, rendererNormalizationField: B } = to(d?.renderer ?? void 0);
|
|
7833
|
+
oe(x) || S.push(x), oe(B) || S.push(B);
|
|
7828
7834
|
}
|
|
7829
7835
|
const v = {
|
|
7830
7836
|
...i,
|
|
7831
7837
|
orderByFields: [`${c} ${ye.Ascending}`],
|
|
7832
|
-
outFields:
|
|
7838
|
+
outFields: S
|
|
7833
7839
|
};
|
|
7834
7840
|
return f = await Fe({
|
|
7835
7841
|
queryObject: e,
|
|
@@ -7877,7 +7883,7 @@ async function fu(t) {
|
|
|
7877
7883
|
}
|
|
7878
7884
|
return e;
|
|
7879
7885
|
}
|
|
7880
|
-
async function
|
|
7886
|
+
async function ur(t) {
|
|
7881
7887
|
const {
|
|
7882
7888
|
chartConfig: e,
|
|
7883
7889
|
queryConfig: i,
|
|
@@ -7900,7 +7906,7 @@ async function cr(t) {
|
|
|
7900
7906
|
errorStrings: o,
|
|
7901
7907
|
abortKey: u,
|
|
7902
7908
|
abortSignal: c
|
|
7903
|
-
}), { queryNumberOfFeatures: f, yStep: m } = C.scatterplotAggregationFields, { maxScatterPointsBeforeAggregation: y } = ut(s), p = d?.get(f) ?? Number.NaN, g = p >= y,
|
|
7909
|
+
}), { queryNumberOfFeatures: f, yStep: m } = C.scatterplotAggregationFields, { maxScatterPointsBeforeAggregation: y } = ut(s), p = d?.get(f) ?? Number.NaN, g = p >= y, S = yn(a);
|
|
7904
7910
|
g && await ru({
|
|
7905
7911
|
statsMap: d,
|
|
7906
7912
|
chartConfig: e,
|
|
@@ -7911,26 +7917,26 @@ async function cr(t) {
|
|
|
7911
7917
|
abortKey: u,
|
|
7912
7918
|
abortSignal: c
|
|
7913
7919
|
});
|
|
7914
|
-
const
|
|
7920
|
+
const b = await fu({
|
|
7915
7921
|
...t,
|
|
7916
7922
|
queryObject: a,
|
|
7917
7923
|
statsMap: d,
|
|
7918
7924
|
numberOfFeatures: p,
|
|
7919
7925
|
isAggregationMode: g,
|
|
7920
|
-
useQueryAttributeBins:
|
|
7926
|
+
useQueryAttributeBins: S
|
|
7921
7927
|
}), v = cu({
|
|
7922
7928
|
chartConfig: e,
|
|
7923
|
-
rawData:
|
|
7929
|
+
rawData: b,
|
|
7924
7930
|
isAggregationMode: g,
|
|
7925
7931
|
yStep: d.get(m),
|
|
7926
|
-
useQueryAttributeBins:
|
|
7932
|
+
useQueryAttributeBins: S
|
|
7927
7933
|
});
|
|
7928
7934
|
r !== !1 && pt({
|
|
7929
7935
|
arrayToSort: v,
|
|
7930
7936
|
sortingField: e.series[0].x,
|
|
7931
7937
|
orderBy: ye.Ascending
|
|
7932
7938
|
});
|
|
7933
|
-
const { r2:
|
|
7939
|
+
const { r2: x, trendLinePoints: B } = n !== !1 ? await Ia({
|
|
7934
7940
|
data: v,
|
|
7935
7941
|
statsMap: d,
|
|
7936
7942
|
queryConfig: i,
|
|
@@ -7939,7 +7945,7 @@ async function cr(t) {
|
|
|
7939
7945
|
errorStrings: o,
|
|
7940
7946
|
abortSignal: c
|
|
7941
7947
|
}) : C.scatterplotSeries;
|
|
7942
|
-
l = { dataItems: v, r2:
|
|
7948
|
+
l = { dataItems: v, r2: x, trendLinePoints: B, aggregated: g };
|
|
7943
7949
|
}
|
|
7944
7950
|
return l;
|
|
7945
7951
|
}
|
|
@@ -7957,20 +7963,20 @@ function it(t) {
|
|
|
7957
7963
|
[E.StandardDeviation]: `${e ? "" : `${t}_`}${E.StandardDeviation}`
|
|
7958
7964
|
};
|
|
7959
7965
|
}
|
|
7960
|
-
function
|
|
7961
|
-
return "subType" in t && t.subType ===
|
|
7966
|
+
function cr(t) {
|
|
7967
|
+
return "subType" in t && t.subType === br.FeatureGauge;
|
|
7962
7968
|
}
|
|
7963
7969
|
function xi(t) {
|
|
7964
7970
|
let e;
|
|
7965
7971
|
return t !== void 0 && ("bins" in t ? e = t.bins : "dataItems" in t && (e = t.dataItems)), e;
|
|
7966
7972
|
}
|
|
7967
|
-
function
|
|
7973
|
+
function dr(t) {
|
|
7968
7974
|
return t === F.BoxPlotMultiFields || t === F.BoxPlotMultiFieldsAndCategory || t === F.BoxPlotMultiFieldsAndSplitBy;
|
|
7969
7975
|
}
|
|
7970
7976
|
function K(t) {
|
|
7971
7977
|
const { key: e, y: i, chartSubType: a, splitBy: r, splitByValue: n, showOutliers: s, standardizeValues: o } = t;
|
|
7972
7978
|
let u = n, l = it(i)[e];
|
|
7973
|
-
return s === !0 && (e === E.Min || e === E.Max) && (l = `${l}${
|
|
7979
|
+
return s === !0 && (e === E.Min || e === E.Max) && (l = `${l}${Vr}`), o === !0 && (dr(a) || e === E.Outlier) && (l = `${l}${Rr}`), (n === void 0 || `${n}`.trim() === "") && (u = fe({ where: r, normalize: !0, escape: !1 })), u !== void 0 && `${u}`.trim() !== "" && (l = `${u}${l !== "" ? `_${l}` : ""}`), l;
|
|
7974
7980
|
}
|
|
7975
7981
|
function Yt(t) {
|
|
7976
7982
|
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 });
|
|
@@ -8007,12 +8013,12 @@ function mu(t) {
|
|
|
8007
8013
|
}
|
|
8008
8014
|
return s;
|
|
8009
8015
|
}
|
|
8010
|
-
function
|
|
8016
|
+
function fr(t) {
|
|
8011
8017
|
return t.map((e) => e.id).filter((e) => e !== void 0);
|
|
8012
8018
|
}
|
|
8013
8019
|
function ue(t, e) {
|
|
8014
8020
|
let i = [];
|
|
8015
|
-
const a = e ??
|
|
8021
|
+
const a = e ?? fr(t), r = k(t);
|
|
8016
8022
|
return i = t.filter((n) => a.includes(n.id)).map((n) => {
|
|
8017
8023
|
let s = "y" in n ? n.y : void 0;
|
|
8018
8024
|
return s !== void 0 && r === F.BarAndLineSplitByNoAggregation && (s = `${s.toString()}_${fe({ where: n.query?.where, keepSurroundingQuotes: !1, escape: !1 })}`), s;
|
|
@@ -8022,7 +8028,7 @@ function Ci(t) {
|
|
|
8022
8028
|
const { seriesConfig: e, filteredSeriesIds: i, showMean: a } = t;
|
|
8023
8029
|
let r = [];
|
|
8024
8030
|
if (a === !0) {
|
|
8025
|
-
const n = e.find((s) => s.type ===
|
|
8031
|
+
const n = e.find((s) => s.type === h.BoxPlotSeries);
|
|
8026
8032
|
n !== void 0 && "y" in n && (r = [n.y].flat());
|
|
8027
8033
|
} else
|
|
8028
8034
|
r = ue(e, i);
|
|
@@ -8047,22 +8053,22 @@ function zd(t) {
|
|
|
8047
8053
|
r = !a.some((o) => {
|
|
8048
8054
|
let u = !1;
|
|
8049
8055
|
switch (n) {
|
|
8050
|
-
case
|
|
8056
|
+
case h.HistogramSeries:
|
|
8051
8057
|
{
|
|
8052
8058
|
const c = o;
|
|
8053
8059
|
u = Me(c.minValue, i) && Me(c.maxValue, i);
|
|
8054
8060
|
}
|
|
8055
8061
|
break;
|
|
8056
|
-
case
|
|
8062
|
+
case h.ScatterSeries:
|
|
8057
8063
|
{
|
|
8058
8064
|
const c = o, { x: l, y: d } = e.series[0];
|
|
8059
8065
|
u = Me(c[l], i) && Me(c[d], i);
|
|
8060
8066
|
}
|
|
8061
8067
|
break;
|
|
8062
|
-
case
|
|
8063
|
-
case
|
|
8064
|
-
case
|
|
8065
|
-
case
|
|
8068
|
+
case h.ComboLineAndBarSeries:
|
|
8069
|
+
case h.RadarSeries:
|
|
8070
|
+
case h.LineSeries:
|
|
8071
|
+
case h.BarSeries: {
|
|
8066
8072
|
const c = o, { x: l } = e.series[0];
|
|
8067
8073
|
u = s.some(
|
|
8068
8074
|
(d) => yu({
|
|
@@ -8075,7 +8081,7 @@ function zd(t) {
|
|
|
8075
8081
|
);
|
|
8076
8082
|
break;
|
|
8077
8083
|
}
|
|
8078
|
-
case
|
|
8084
|
+
case h.BoxPlotSeries: {
|
|
8079
8085
|
if (de(e)) {
|
|
8080
8086
|
const c = e.series;
|
|
8081
8087
|
u = mu({
|
|
@@ -8087,22 +8093,22 @@ function zd(t) {
|
|
|
8087
8093
|
}
|
|
8088
8094
|
break;
|
|
8089
8095
|
}
|
|
8090
|
-
case
|
|
8096
|
+
case h.PieSeries:
|
|
8091
8097
|
{
|
|
8092
8098
|
const c = o;
|
|
8093
8099
|
let { x: l, y: d } = e.series[0];
|
|
8094
8100
|
k(e.series) === F.PieFromFields && (l = ce, d = Ne);
|
|
8095
8101
|
const f = c[d];
|
|
8096
|
-
u = c[l] !== void 0 && c[l] !== null && !
|
|
8102
|
+
u = c[l] !== void 0 && c[l] !== null && !pr(f) && Me(Number(f), i);
|
|
8097
8103
|
}
|
|
8098
8104
|
break;
|
|
8099
|
-
case
|
|
8105
|
+
case h.GaugeSeries:
|
|
8100
8106
|
{
|
|
8101
8107
|
const { x: c } = e.series[0];
|
|
8102
8108
|
u = Me(o[c], i);
|
|
8103
8109
|
}
|
|
8104
8110
|
break;
|
|
8105
|
-
case
|
|
8111
|
+
case h.HeatSeries:
|
|
8106
8112
|
u = a.some(
|
|
8107
8113
|
(c) => Me(c[Q.valueField], i)
|
|
8108
8114
|
);
|
|
@@ -8115,7 +8121,7 @@ function zd(t) {
|
|
|
8115
8121
|
return r;
|
|
8116
8122
|
}
|
|
8117
8123
|
function gu(t, e) {
|
|
8118
|
-
const i = /* @__PURE__ */ new Map(), a = e ??
|
|
8124
|
+
const i = /* @__PURE__ */ new Map(), a = e ?? fr(t);
|
|
8119
8125
|
return t.forEach((r) => {
|
|
8120
8126
|
if (a.includes(r.id) && "y" in r) {
|
|
8121
8127
|
const n = i.get(r.type) ?? [];
|
|
@@ -8125,7 +8131,7 @@ function gu(t, e) {
|
|
|
8125
8131
|
}
|
|
8126
8132
|
function pu(t) {
|
|
8127
8133
|
const { seriesConfig: e, filteredSeriesIds: i, filteredData: a } = t, r = gu(e, i), n = e.find(
|
|
8128
|
-
(c) => c.type ===
|
|
8134
|
+
(c) => c.type === h.LineSeries || c.type === h.RadarSeries
|
|
8129
8135
|
)?.stackNegativeValuesToBaseline ?? !0;
|
|
8130
8136
|
let s = Number.MIN_SAFE_INTEGER, o = Number.MAX_SAFE_INTEGER, u = !1;
|
|
8131
8137
|
return a.forEach((c) => {
|
|
@@ -8157,27 +8163,27 @@ function Wi(t) {
|
|
|
8157
8163
|
const { chartConfig: n, chartData: s, filteredSeriesIds: o } = t, { series: u } = n;
|
|
8158
8164
|
if (u?.length > 0) {
|
|
8159
8165
|
const { x: c } = u[0], l = _(n.series);
|
|
8160
|
-
if (l ===
|
|
8166
|
+
if (l === h.HistogramSeries && s.length > 0) {
|
|
8161
8167
|
const d = s[0]?.[qi.Start], f = s[s.length - 1]?.[qi.End];
|
|
8162
8168
|
a = typeof d == "number" ? d : a, r = typeof f == "number" ? f : r;
|
|
8163
8169
|
} else {
|
|
8164
8170
|
const d = s.filter((m) => m[c] !== null);
|
|
8165
|
-
if ({ min: a, max: r } = ht(d, (m) => m[c]), n.axes?.[0]?.valueFormat.type ===
|
|
8171
|
+
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) {
|
|
8166
8172
|
e = Number.MAX_SAFE_INTEGER, i = Number.MIN_SAFE_INTEGER;
|
|
8167
8173
|
const m = ue(u, o), y = k(u), p = "standardizeValues" in n ? n.standardizeValues === !0 : void 0, g = n.series.map(
|
|
8168
|
-
(
|
|
8174
|
+
(S) => S.visible !== !1 ? fe({ where: S.query?.where }) : ""
|
|
8169
8175
|
);
|
|
8170
|
-
g.length === 0 && g.push(" "), d.forEach((
|
|
8171
|
-
m.forEach((
|
|
8172
|
-
const v = y === F.BoxPlotMultiFieldsAndCategory ?
|
|
8173
|
-
g.forEach((
|
|
8176
|
+
g.length === 0 && g.push(" "), d.forEach((S) => {
|
|
8177
|
+
m.forEach((b) => {
|
|
8178
|
+
const v = y === F.BoxPlotMultiFieldsAndCategory ? b : void 0;
|
|
8179
|
+
g.forEach((x) => {
|
|
8174
8180
|
const { min: B, max: N } = hu({
|
|
8175
8181
|
y: v,
|
|
8176
|
-
splitByValue:
|
|
8182
|
+
splitByValue: x,
|
|
8177
8183
|
chartSubType: y,
|
|
8178
8184
|
showOutliers: !1,
|
|
8179
8185
|
standardizeValues: p,
|
|
8180
|
-
dataItem:
|
|
8186
|
+
dataItem: S
|
|
8181
8187
|
});
|
|
8182
8188
|
B != null && B < e && (e = B), N != null && N > i && (i = N);
|
|
8183
8189
|
});
|
|
@@ -8199,11 +8205,11 @@ function Wi(t) {
|
|
|
8199
8205
|
case Te.Side:
|
|
8200
8206
|
default: {
|
|
8201
8207
|
e = Number.MAX_SAFE_INTEGER, i = Number.MIN_SAFE_INTEGER, ue(u, o).forEach((p) => {
|
|
8202
|
-
const { min: g, max:
|
|
8208
|
+
const { min: g, max: S } = ht(
|
|
8203
8209
|
d,
|
|
8204
|
-
(
|
|
8210
|
+
(b) => b[p]
|
|
8205
8211
|
);
|
|
8206
|
-
g !== void 0 && g < e && (e = g),
|
|
8212
|
+
g !== void 0 && g < e && (e = g), S !== void 0 && S > i && (i = S);
|
|
8207
8213
|
});
|
|
8208
8214
|
break;
|
|
8209
8215
|
}
|
|
@@ -8220,11 +8226,11 @@ function Su(t) {
|
|
|
8220
8226
|
return (a === void 0 || a.includes(n.id)) && (i === !0 && "assignToSecondValueAxis" in n && n.assignToSecondValueAxis === !0 || i !== !0 && (!("assignToSecondValueAxis" in n) || n.assignToSecondValueAxis !== !0)) && ({ id: s } = n), s;
|
|
8221
8227
|
}).filter((n) => n !== "")), r;
|
|
8222
8228
|
}
|
|
8223
|
-
function
|
|
8229
|
+
function mr(t) {
|
|
8224
8230
|
let e = !1;
|
|
8225
8231
|
if (t) {
|
|
8226
8232
|
const i = t.axes?.[0], a = i?.isLogarithmic === !0, r = i?.valueFormat?.type;
|
|
8227
|
-
e = (r ===
|
|
8233
|
+
e = (r === h.NumberAxisFormat || r === h.DateAxisFormat) && a;
|
|
8228
8234
|
}
|
|
8229
8235
|
return e;
|
|
8230
8236
|
}
|
|
@@ -8232,11 +8238,11 @@ function oi(t, e) {
|
|
|
8232
8238
|
let i = !1;
|
|
8233
8239
|
return Number.isFinite(t) && t !== Number.MAX_SAFE_INTEGER && Number.isFinite(e) && e !== Number.MIN_SAFE_INTEGER && (i = t <= 0 || e <= 0), i;
|
|
8234
8240
|
}
|
|
8235
|
-
function
|
|
8241
|
+
function yr(t) {
|
|
8236
8242
|
const { chartConfig: e, chartData: i, axisConfigIndex: a } = t;
|
|
8237
8243
|
let r = !1;
|
|
8238
8244
|
if (a === 0) {
|
|
8239
|
-
if (
|
|
8245
|
+
if (mr(e)) {
|
|
8240
8246
|
const { minX: n, maxX: s } = Wi({
|
|
8241
8247
|
chartConfig: e,
|
|
8242
8248
|
chartData: i
|
|
@@ -8260,7 +8266,7 @@ function Wd(t) {
|
|
|
8260
8266
|
const { chartConfig: e, axisConfigIndex: i, chartData: a } = t;
|
|
8261
8267
|
let r = !0;
|
|
8262
8268
|
const n = e?.axes?.[i];
|
|
8263
|
-
return e && a && n?.isLogarithmic === !0 && (r = !
|
|
8269
|
+
return e && a && n?.isLogarithmic === !0 && (r = !yr({ chartConfig: e, chartData: a, axisConfigIndex: i })), r;
|
|
8264
8270
|
}
|
|
8265
8271
|
function Fu(t, e) {
|
|
8266
8272
|
const i = t;
|
|
@@ -8274,11 +8280,11 @@ function bu(t, e) {
|
|
|
8274
8280
|
const i = _(e);
|
|
8275
8281
|
let a = t;
|
|
8276
8282
|
const r = e?.[0];
|
|
8277
|
-
if ((i ===
|
|
8283
|
+
if ((i === h.PieSeries || i === h.BoxPlotSeries || i === h.LineSeries || i === h.RadarSeries || i === h.BarSeries || i === h.HeatSeries || i === h.ComboLineAndBarSeries) && r !== void 0) {
|
|
8278
8284
|
const n = li(t);
|
|
8279
8285
|
let s = n ? t : t.dataItems;
|
|
8280
8286
|
if (t !== void 0) {
|
|
8281
|
-
const { originalCategoryValue: o, originalYCategoryValue: u, originalDateValue: c, xAxisField: l } = C, d = i ===
|
|
8287
|
+
const { originalCategoryValue: o, originalYCategoryValue: u, originalDateValue: c, xAxisField: l } = C, d = i === h.HeatSeries ? Q.xField : r.x, f = i === h.HeatSeries ? Q.yField : void 0;
|
|
8282
8288
|
s = s.map((m) => {
|
|
8283
8289
|
let y = m[d];
|
|
8284
8290
|
m[c] !== void 0 ? y = m[c] : m[o] !== void 0 && (y = m[o]);
|
|
@@ -8307,18 +8313,18 @@ function xu(t, e) {
|
|
|
8307
8313
|
let r = xi(i);
|
|
8308
8314
|
if (r !== void 0)
|
|
8309
8315
|
switch (a) {
|
|
8310
|
-
case
|
|
8311
|
-
case
|
|
8312
|
-
case
|
|
8313
|
-
case
|
|
8314
|
-
case
|
|
8316
|
+
case h.ComboLineAndBarSeries:
|
|
8317
|
+
case h.BarSeries:
|
|
8318
|
+
case h.LineSeries:
|
|
8319
|
+
case h.RadarSeries:
|
|
8320
|
+
case h.PieSeries:
|
|
8315
8321
|
{
|
|
8316
8322
|
r = r.map(Gi), i = { dataItems: r };
|
|
8317
8323
|
const { timeIntervalInfo: n, serverLimitReached: s } = t ?? {};
|
|
8318
|
-
|
|
8324
|
+
hr(n) || (i.timeIntervalInfo = n), s !== void 0 && (i.serverLimitReached = s);
|
|
8319
8325
|
}
|
|
8320
8326
|
break;
|
|
8321
|
-
case
|
|
8327
|
+
case h.ScatterSeries:
|
|
8322
8328
|
i = {
|
|
8323
8329
|
...i,
|
|
8324
8330
|
dataItems: r.map(Gi)
|
|
@@ -8344,21 +8350,21 @@ function Cu(t) {
|
|
|
8344
8350
|
const c = e[u];
|
|
8345
8351
|
if (c !== void 0) {
|
|
8346
8352
|
let l;
|
|
8347
|
-
if (r ===
|
|
8353
|
+
if (r === h.ScatterSeries)
|
|
8348
8354
|
l = c.dataItems;
|
|
8349
8355
|
else if ("data" in c && c.data) {
|
|
8350
8356
|
const d = c.data;
|
|
8351
8357
|
"dataItems" in d && (l = d.dataItems), "outliers" in d && d.outliers && s.push(...d.outliers), "meanLines" in d && d.meanLines && s.push(...d.meanLines);
|
|
8352
8358
|
}
|
|
8353
8359
|
if (l)
|
|
8354
|
-
if (a[0].type ===
|
|
8360
|
+
if (a[0].type === h.HeatSeries)
|
|
8355
8361
|
i > 0 && l.forEach((d) => {
|
|
8356
8362
|
o.set(
|
|
8357
8363
|
`${d[Q.xField]}-${d[Q.yField]}`,
|
|
8358
8364
|
d
|
|
8359
8365
|
);
|
|
8360
8366
|
});
|
|
8361
|
-
else if (a[0].type ===
|
|
8367
|
+
else if (a[0].type === h.ScatterSeries) {
|
|
8362
8368
|
const { x: d, y: f } = a[0];
|
|
8363
8369
|
s.push(
|
|
8364
8370
|
...l.map((m) => ({
|
|
@@ -8395,13 +8401,13 @@ async function vu(t) {
|
|
|
8395
8401
|
returnFeaturesExtent: f,
|
|
8396
8402
|
popupTemplateFieldInfosEnabled: m,
|
|
8397
8403
|
view: y
|
|
8398
|
-
} = t, { series: p } = a, g = _(p),
|
|
8399
|
-
for (let
|
|
8400
|
-
const B =
|
|
8404
|
+
} = t, { series: p } = a, g = _(p), S = [], { maxOIDsPerSelectionQuery: b } = Vt();
|
|
8405
|
+
for (let x = 0; x < e; x += 1) {
|
|
8406
|
+
const B = x * b, N = (x + 1) * b - 1, T = i.slice(B === 0 ? 0 : B - 1, N), w = { ...r };
|
|
8401
8407
|
switch (w.objectIds = T, g) {
|
|
8402
|
-
case
|
|
8403
|
-
|
|
8404
|
-
|
|
8408
|
+
case h.HeatSeries:
|
|
8409
|
+
S.push(
|
|
8410
|
+
lr({
|
|
8405
8411
|
completeHeatChartDataset: !1,
|
|
8406
8412
|
// we do not want the empty bins to be added for the selection
|
|
8407
8413
|
chartConfig: a,
|
|
@@ -8415,21 +8421,21 @@ async function vu(t) {
|
|
|
8415
8421
|
})
|
|
8416
8422
|
);
|
|
8417
8423
|
break;
|
|
8418
|
-
case
|
|
8419
|
-
case
|
|
8420
|
-
case
|
|
8421
|
-
case
|
|
8422
|
-
case
|
|
8424
|
+
case h.PieSeries:
|
|
8425
|
+
case h.BarSeries:
|
|
8426
|
+
case h.LineSeries:
|
|
8427
|
+
case h.RadarSeries:
|
|
8428
|
+
case h.ComboLineAndBarSeries:
|
|
8423
8429
|
if (Pe({
|
|
8424
8430
|
xAxisValueFormatType: xe(a),
|
|
8425
8431
|
setTimeBinningInfoWhenNotProvided: d,
|
|
8426
8432
|
seriesConfig: p[0],
|
|
8427
8433
|
queryObject: s
|
|
8428
8434
|
})) {
|
|
8429
|
-
const
|
|
8430
|
-
"temporalBinning" in
|
|
8435
|
+
const L = He(a);
|
|
8436
|
+
"temporalBinning" in L.series[0] && L.series[0].temporalBinning && (L.series[0].temporalBinning.trimIncompleteTimeInterval = !1, rt(o, s) && (delete L.series[0].temporalBinning.start, delete L.series[0].temporalBinning.end)), S.push(
|
|
8431
8437
|
bi({
|
|
8432
|
-
chartConfig:
|
|
8438
|
+
chartConfig: L,
|
|
8433
8439
|
queryConfig: w,
|
|
8434
8440
|
queryObject: s,
|
|
8435
8441
|
chartLimits: l,
|
|
@@ -8441,7 +8447,7 @@ async function vu(t) {
|
|
|
8441
8447
|
})
|
|
8442
8448
|
);
|
|
8443
8449
|
} else
|
|
8444
|
-
|
|
8450
|
+
S.push(
|
|
8445
8451
|
eu({
|
|
8446
8452
|
queryObject: s,
|
|
8447
8453
|
chartConfig: a,
|
|
@@ -8454,8 +8460,8 @@ async function vu(t) {
|
|
|
8454
8460
|
})
|
|
8455
8461
|
);
|
|
8456
8462
|
break;
|
|
8457
|
-
case
|
|
8458
|
-
|
|
8463
|
+
case h.BoxPlotSeries:
|
|
8464
|
+
S.push(
|
|
8459
8465
|
tu({
|
|
8460
8466
|
queryObject: s,
|
|
8461
8467
|
chartConfig: a,
|
|
@@ -8471,9 +8477,9 @@ async function vu(t) {
|
|
|
8471
8477
|
})
|
|
8472
8478
|
);
|
|
8473
8479
|
break;
|
|
8474
|
-
case
|
|
8475
|
-
|
|
8476
|
-
|
|
8480
|
+
case h.ScatterSeries:
|
|
8481
|
+
S.push(
|
|
8482
|
+
ur({
|
|
8477
8483
|
queryObject: s,
|
|
8478
8484
|
chartConfig: a,
|
|
8479
8485
|
queryConfig: w,
|
|
@@ -8492,8 +8498,8 @@ async function vu(t) {
|
|
|
8492
8498
|
})
|
|
8493
8499
|
);
|
|
8494
8500
|
break;
|
|
8495
|
-
case
|
|
8496
|
-
|
|
8501
|
+
case h.HistogramSeries:
|
|
8502
|
+
S.push(
|
|
8497
8503
|
Mo({
|
|
8498
8504
|
queryObject: s,
|
|
8499
8505
|
queryConfig: w,
|
|
@@ -8505,7 +8511,7 @@ async function vu(t) {
|
|
|
8505
8511
|
break;
|
|
8506
8512
|
}
|
|
8507
8513
|
}
|
|
8508
|
-
return await Promise.all(
|
|
8514
|
+
return await Promise.all(S);
|
|
8509
8515
|
}
|
|
8510
8516
|
async function Yd(t) {
|
|
8511
8517
|
const {
|
|
@@ -8525,13 +8531,13 @@ async function Yd(t) {
|
|
|
8525
8531
|
viewExtentUpdated: y,
|
|
8526
8532
|
runtimeDataFilters: p,
|
|
8527
8533
|
ignoreViewExtent: g,
|
|
8528
|
-
returnSelectionOIDs:
|
|
8529
|
-
selectionData:
|
|
8530
|
-
} = t, { series: v } = e, { selectionItems:
|
|
8534
|
+
returnSelectionOIDs: S,
|
|
8535
|
+
selectionData: b
|
|
8536
|
+
} = t, { series: v } = e, { selectionItems: x, selectionOIDs: B } = b ?? {};
|
|
8531
8537
|
let N;
|
|
8532
|
-
const T = _(v), w = T !==
|
|
8533
|
-
if (y !== !0 &&
|
|
8534
|
-
const A = xi(i), I =
|
|
8538
|
+
const T = _(v), w = T !== h.HistogramSeries && T !== h.HeatSeries && x !== void 0 && x.length > 0 && !(v[0].x in x[0]) && !(ce in x[0]) && !(C.boxPlot.boxPlotCategory in x[0]);
|
|
8539
|
+
if (y !== !0 && S !== !1 && B !== void 0 && B.length > 0 && (a === !0 || w || u)) {
|
|
8540
|
+
const A = xi(i), I = _a({
|
|
8535
8541
|
queryObject: s,
|
|
8536
8542
|
chartConfig: e,
|
|
8537
8543
|
runtimeDataFilters: p,
|
|
@@ -8539,12 +8545,12 @@ async function Yd(t) {
|
|
|
8539
8545
|
view: m
|
|
8540
8546
|
});
|
|
8541
8547
|
if (A !== void 0 && !vn({ dataContext: A[0], chartConfig: e, chartLimits: c }))
|
|
8542
|
-
N = A.filter((
|
|
8543
|
-
const O =
|
|
8548
|
+
N = A.filter((P) => {
|
|
8549
|
+
const O = P[W.uniqueIdsName];
|
|
8544
8550
|
return typeof O == "number" || typeof O == "string" ? B?.includes(O) : !1;
|
|
8545
8551
|
});
|
|
8546
8552
|
else if (B?.[0] !== void 0 && I !== void 0) {
|
|
8547
|
-
const { maxOIDsPerSelectionQuery:
|
|
8553
|
+
const { maxOIDsPerSelectionQuery: P } = Vt(), O = Math.ceil(B.length / P), V = te(e.series[0]?.query?.where), $ = await vu({
|
|
8548
8554
|
numberOfQueries: O,
|
|
8549
8555
|
selectionOIDs: B,
|
|
8550
8556
|
queryConfig: I,
|
|
@@ -8570,9 +8576,9 @@ async function Yd(t) {
|
|
|
8570
8576
|
return N;
|
|
8571
8577
|
}
|
|
8572
8578
|
const Zd = {
|
|
8573
|
-
shouldCheckDataMinMaxForLogScaleOnXAxis:
|
|
8579
|
+
shouldCheckDataMinMaxForLogScaleOnXAxis: mr,
|
|
8574
8580
|
minMaxHasZeroOrNegativeValues: oi,
|
|
8575
|
-
isChartWithZeroOrNegativeValues:
|
|
8581
|
+
isChartWithZeroOrNegativeValues: yr
|
|
8576
8582
|
};
|
|
8577
8583
|
export {
|
|
8578
8584
|
pu as $,
|
|
@@ -8607,7 +8613,7 @@ export {
|
|
|
8607
8613
|
Ec as a$,
|
|
8608
8614
|
Pt as a0,
|
|
8609
8615
|
qd as a1,
|
|
8610
|
-
|
|
8616
|
+
Ua as a2,
|
|
8611
8617
|
yi as a3,
|
|
8612
8618
|
ai as a4,
|
|
8613
8619
|
ri as a5,
|
|
@@ -8617,7 +8623,7 @@ export {
|
|
|
8617
8623
|
Mn as a9,
|
|
8618
8624
|
Zs as aA,
|
|
8619
8625
|
ks as aB,
|
|
8620
|
-
|
|
8626
|
+
ka as aC,
|
|
8621
8627
|
to as aD,
|
|
8622
8628
|
Yd as aE,
|
|
8623
8629
|
Re as aF,
|
|
@@ -8642,8 +8648,8 @@ export {
|
|
|
8642
8648
|
Dc as aY,
|
|
8643
8649
|
Hc as aZ,
|
|
8644
8650
|
Li as a_,
|
|
8645
|
-
|
|
8646
|
-
|
|
8651
|
+
Ra as aa,
|
|
8652
|
+
$a as ab,
|
|
8647
8653
|
Fd as ac,
|
|
8648
8654
|
ao as ad,
|
|
8649
8655
|
vc as ae,
|
|
@@ -8654,18 +8660,18 @@ export {
|
|
|
8654
8660
|
Id as aj,
|
|
8655
8661
|
ge as ak,
|
|
8656
8662
|
bo as al,
|
|
8657
|
-
|
|
8663
|
+
ja as am,
|
|
8658
8664
|
ve as an,
|
|
8659
|
-
|
|
8660
|
-
|
|
8665
|
+
Pa as ao,
|
|
8666
|
+
Da as ap,
|
|
8661
8667
|
yo as aq,
|
|
8662
8668
|
bd as ar,
|
|
8663
8669
|
mo as as,
|
|
8664
8670
|
ii as at,
|
|
8665
8671
|
Gs as au,
|
|
8666
8672
|
hs as av,
|
|
8667
|
-
|
|
8668
|
-
|
|
8673
|
+
Va as aw,
|
|
8674
|
+
qa as ax,
|
|
8669
8675
|
Sd as ay,
|
|
8670
8676
|
eo as az,
|
|
8671
8677
|
Ge as b,
|
|
@@ -8711,21 +8717,21 @@ export {
|
|
|
8711
8717
|
io as bb,
|
|
8712
8718
|
zd as bc,
|
|
8713
8719
|
Fc as bd,
|
|
8714
|
-
|
|
8720
|
+
ua as be,
|
|
8715
8721
|
Ee as bf,
|
|
8716
|
-
|
|
8722
|
+
cr as bg,
|
|
8717
8723
|
Bd as bh,
|
|
8718
|
-
|
|
8724
|
+
dr as bi,
|
|
8719
8725
|
Yc as bj,
|
|
8720
8726
|
St as bk,
|
|
8721
8727
|
fo as bl,
|
|
8722
8728
|
pd as bm,
|
|
8723
|
-
|
|
8729
|
+
ya as bn,
|
|
8724
8730
|
Pe as bo,
|
|
8725
8731
|
ro as bp,
|
|
8726
8732
|
Cd as bq,
|
|
8727
8733
|
bc as br,
|
|
8728
|
-
|
|
8734
|
+
ca as bs,
|
|
8729
8735
|
fn as bt,
|
|
8730
8736
|
vd as bu,
|
|
8731
8737
|
wd as bv,
|
|
@@ -8765,7 +8771,7 @@ export {
|
|
|
8765
8771
|
md as cR,
|
|
8766
8772
|
We as cS,
|
|
8767
8773
|
qi as cT,
|
|
8768
|
-
|
|
8774
|
+
Na as cU,
|
|
8769
8775
|
Dd as cV,
|
|
8770
8776
|
ad as cW,
|
|
8771
8777
|
Hd as cX,
|
|
@@ -8805,8 +8811,8 @@ export {
|
|
|
8805
8811
|
id as d3,
|
|
8806
8812
|
jn as d4,
|
|
8807
8813
|
mi as d5,
|
|
8808
|
-
|
|
8809
|
-
|
|
8814
|
+
or as d6,
|
|
8815
|
+
_a as e,
|
|
8810
8816
|
Zc as f,
|
|
8811
8817
|
Qe as g,
|
|
8812
8818
|
Y as h,
|
|
@@ -8819,7 +8825,7 @@ export {
|
|
|
8819
8825
|
Wc as o,
|
|
8820
8826
|
Yt as p,
|
|
8821
8827
|
Gc as q,
|
|
8822
|
-
|
|
8828
|
+
da as r,
|
|
8823
8829
|
Cc as s,
|
|
8824
8830
|
mn as t,
|
|
8825
8831
|
yn as u,
|