@arcgis/charts-components 5.2.0-next.1 → 5.2.0-next.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (253) hide show
  1. package/dist/cdn/{BZCVDNC4.js → 255TSQSE.js} +14 -14
  2. package/dist/cdn/{A5GIBV5W.js → 25YAWDIB.js} +1 -1
  3. package/dist/cdn/{S6PJHEJ7.js → 2A7JZQX5.js} +1 -1
  4. package/dist/cdn/{DYC3Q36R.js → 2HTYRBIX.js} +1 -1
  5. package/dist/cdn/{RG3I5ORH.js → 2PAVNZEM.js} +1 -1
  6. package/dist/cdn/{7IV6GMF7.js → 2XYTPC2V.js} +1 -1
  7. package/dist/cdn/{EUOPRFMU.js → 3376CR53.js} +1 -1
  8. package/dist/cdn/{NS3THLCD.js → 3CFZUVMF.js} +1 -1
  9. package/dist/cdn/{F5Q73CFW.js → 3S3PN7AK.js} +1 -1
  10. package/dist/cdn/3W2A4SAP.js +2 -0
  11. package/dist/cdn/{V2XJSJH4.js → 4ETF22K6.js} +1 -1
  12. package/dist/cdn/{X6WA2KXK.js → 4J6UFQ2Q.js} +1 -1
  13. package/dist/cdn/4YJSRB7R.js +2 -0
  14. package/dist/cdn/{74JAZF7U.js → 5JNEJJU3.js} +1 -1
  15. package/dist/cdn/{H6NH46AS.js → 5OKNLDIJ.js} +1 -1
  16. package/dist/cdn/{YVVQVAJZ.js → 5V3ADOWS.js} +1 -1
  17. package/dist/cdn/{MOMKSNIZ.js → 6MF2R6DJ.js} +1 -1
  18. package/dist/cdn/{KC6CFXB7.js → 6SRJ2VKV.js} +1 -1
  19. package/dist/cdn/{GCSGY6GL.js → 7EEYYP6X.js} +1 -1
  20. package/dist/cdn/{ATIARKAU.js → BER7FMK3.js} +1 -1
  21. package/dist/cdn/{PKMZ6N6M.js → BJRHNVLR.js} +1 -1
  22. package/dist/cdn/{CPPT5HUK.js → CBHWMUGA.js} +26 -26
  23. package/dist/cdn/{I2M6YAUU.js → CDHUW42P.js} +1 -1
  24. package/dist/cdn/{FAQDMSUC.js → CEE2QRZ5.js} +1 -1
  25. package/dist/cdn/{TXSWWAOF.js → CGYB5KPV.js} +1 -1
  26. package/dist/cdn/{WASEMNYV.js → CSAUXIK2.js} +1 -1
  27. package/dist/cdn/{YKGZVYK2.js → DJ5OHPYW.js} +1 -1
  28. package/dist/cdn/EDSF5KGV.js +233 -0
  29. package/dist/cdn/{HUCSTT64.js → EK33HUAH.js} +1 -1
  30. package/dist/cdn/{5MVNVHYG.js → F7Q3XDZH.js} +1 -1
  31. package/dist/cdn/{UT4TYXFO.js → FTOYQNHN.js} +1 -1
  32. package/dist/cdn/{EQVQRZHJ.js → GBDEYCR6.js} +1 -1
  33. package/dist/cdn/{IWVS6SKP.js → GKPMAFU3.js} +1 -1
  34. package/dist/cdn/GNC62GNV.js +2 -0
  35. package/dist/cdn/{V76PIVCF.js → GXC7VLYM.js} +1 -1
  36. package/dist/cdn/{6JGLHOFY.js → H4B3ERFL.js} +1 -1
  37. package/dist/cdn/{RWEUTQWS.js → HD4FP3ZK.js} +1 -1
  38. package/dist/cdn/{FT2K3J7O.js → HFJ4EPET.js} +1 -1
  39. package/dist/cdn/{6PAONFHB.js → I5AALJRN.js} +1 -1
  40. package/dist/cdn/{FCXI523J.js → ICVAXCHZ.js} +1 -1
  41. package/dist/cdn/{7BEC5WZB.js → IHTJSWKK.js} +1 -1
  42. package/dist/cdn/{JILAM6NH.js → IKCVYV5L.js} +1 -1
  43. package/dist/cdn/{PEZCCXQ7.js → JEH22SPH.js} +1 -1
  44. package/dist/cdn/{TTDZKISK.js → JMAVBKEZ.js} +1 -1
  45. package/dist/cdn/{47HHRDX4.js → JQYB4ZDY.js} +1 -1
  46. package/dist/cdn/{DNMVB3A2.js → KB76VF4V.js} +1 -1
  47. package/dist/cdn/{MKQAQDRM.js → KHNP4LWB.js} +1 -1
  48. package/dist/cdn/{B7DM7VT6.js → KKKCWW6G.js} +1 -1
  49. package/dist/cdn/{XMQCH4QI.js → L6ZALCLC.js} +1 -1
  50. package/dist/cdn/{KKWXEF5W.js → LIPUN4CH.js} +1 -1
  51. package/dist/cdn/{XFZX5ULX.js → LO6KKSE4.js} +1 -1
  52. package/dist/cdn/{Z7EBST4A.js → LOZOENFC.js} +1 -1
  53. package/dist/cdn/{7SNOZDAD.js → M6JCOZIE.js} +1 -1
  54. package/dist/cdn/{CUJHGXNK.js → N7NZHIGS.js} +1 -1
  55. package/dist/cdn/{YZQ54BRI.js → NFANBMTU.js} +1 -1
  56. package/dist/cdn/{5HQ2CJEQ.js → NKJC4MT7.js} +1 -1
  57. package/dist/cdn/{ZQCUJ7VE.js → OYCT7CFU.js} +1 -1
  58. package/dist/cdn/{CXQOEN77.js → PJZVDHIF.js} +1 -1
  59. package/dist/cdn/{MRTKZZTF.js → PM6FCUUV.js} +1 -1
  60. package/dist/cdn/{V7MBHG4F.js → PNDFAGEB.js} +1 -1
  61. package/dist/cdn/{45JPWIBI.js → PRPNJEPZ.js} +1 -1
  62. package/dist/cdn/{4OZZXXZF.js → PZKRRAXW.js} +1 -1
  63. package/dist/cdn/{YYK7SPXC.js → QAIY4AMN.js} +1 -1
  64. package/dist/cdn/{UNUPCA4W.js → QF4UBQYT.js} +1 -1
  65. package/dist/cdn/{GWQJXXP3.js → QF6LHQTR.js} +1 -1
  66. package/dist/cdn/QM27URJR.js +2 -0
  67. package/dist/cdn/{P3RM2ACY.js → RA3CZHC7.js} +1 -1
  68. package/dist/cdn/{O4M33ZPK.js → RH4AC577.js} +1 -1
  69. package/dist/cdn/{KV4ZPVWQ.js → SHTFWNG3.js} +1 -1
  70. package/dist/cdn/SPVZ5BND.js +2 -0
  71. package/dist/cdn/SXT5DNXJ.js +4 -0
  72. package/dist/cdn/SYIW6YJN.js +2 -0
  73. package/dist/cdn/{TORIY3OE.js → SZEYHOGG.js} +1 -1
  74. package/dist/cdn/{M75ENKIU.js → TH4OHGTQ.js} +1 -1
  75. package/dist/cdn/{EXTKNE2L.js → U4COKMGA.js} +1 -1
  76. package/dist/cdn/{6LQYOBAL.js → U6USPTQ5.js} +1 -1
  77. package/dist/cdn/UHPAFBYO.js +2 -0
  78. package/dist/cdn/VL2G5M57.js +2 -0
  79. package/dist/cdn/{G6OHBBUT.js → VMS7DT3M.js} +1 -1
  80. package/dist/cdn/{RKKWMNWU.js → VSPTNIIU.js} +1 -1
  81. package/dist/cdn/{UQPFMDJB.js → VW4GW2JT.js} +1 -1
  82. package/dist/cdn/{3FTJIVFE.js → WBJ6NWHX.js} +1 -1
  83. package/dist/cdn/{LKY2A3U6.js → WPPMMVD5.js} +1 -1
  84. package/dist/cdn/{PYKHO4QI.js → X4BYDZDR.js} +1 -1
  85. package/dist/cdn/XACXJMSF.js +3 -0
  86. package/dist/cdn/{P74SXC5B.js → XJ2L7VN4.js} +1 -1
  87. package/dist/cdn/{7YBKGD3V.js → XP5GZU4O.js} +1 -1
  88. package/dist/cdn/{TZ4GOE2Q.js → XUT56VH6.js} +1 -1
  89. package/dist/cdn/{FJPGZEGK.js → XWZYTOHY.js} +1 -1
  90. package/dist/cdn/{GUH6CQE6.js → XXXXO6OB.js} +1 -1
  91. package/dist/cdn/{RKN64EJQ.js → YDJPGFXU.js} +1 -1
  92. package/dist/cdn/{P6SC5DD2.js → YSWV4FZE.js} +1 -1
  93. package/dist/cdn/{45PJ5TQL.js → YXWIKYN4.js} +1 -1
  94. package/dist/cdn/{URYNG6OA.js → Z4HCNLCD.js} +1 -1
  95. package/dist/cdn/{AT2NWWBG.js → Z5VVIVR3.js} +1 -1
  96. package/dist/cdn/{PTFRQF65.js → ZIVPZF6E.js} +1 -1
  97. package/dist/cdn/assets/common/t9n/messages.en.json +1 -1
  98. package/dist/cdn/index.js +1 -1
  99. package/dist/cdn/model/shared/setup-utils.js +2 -0
  100. package/dist/chart-rendering/common/data/utils/summarize-data/interfaces.d.ts +5 -1
  101. package/dist/chart-rendering/common/interfaces.d.ts +8 -8
  102. package/dist/chunks/axis-lines-symbol.js +4 -4
  103. package/dist/chunks/bar-chart-model.js +13 -13
  104. package/dist/chunks/bar-chart-series.js +1 -1
  105. package/dist/chunks/box-plot-data.js +5 -5
  106. package/dist/chunks/box-plot-model.js +18 -18
  107. package/dist/chunks/chart-model.js +170 -138
  108. package/dist/chunks/chart-ui-utils2.js +13 -13
  109. package/dist/chunks/class-breaks.js +21 -21
  110. package/dist/chunks/combo-bar-line-chart-model.js +2 -2
  111. package/dist/chunks/data.js +21 -21
  112. package/dist/chunks/gauge-model.js +14 -14
  113. package/dist/chunks/generate-x-axis-title.js +4 -4
  114. package/dist/chunks/heat-chart-model.js +19 -19
  115. package/dist/chunks/histogram-data.js +2 -2
  116. package/dist/chunks/histogram-model.js +11 -11
  117. package/dist/chunks/index2.js +1655 -1652
  118. package/dist/chunks/index3.js +38 -36
  119. package/dist/chunks/index4.js +10805 -680
  120. package/dist/chunks/index5.js +87 -10782
  121. package/dist/chunks/index6.js +63 -100
  122. package/dist/chunks/interfaces.js +3 -3
  123. package/dist/chunks/line-chart-model.js +2 -2
  124. package/dist/chunks/model-setter.js +11 -11
  125. package/dist/chunks/model-with-x-guides.js +6 -6
  126. package/dist/chunks/model-with-y-guides.js +2 -2
  127. package/dist/chunks/negative-values-stacked-to-baseline.js +2 -2
  128. package/dist/chunks/pie-chart-data.js +2 -2
  129. package/dist/chunks/pie-chart-model.js +2 -2
  130. package/dist/chunks/radar-chart-model.js +2 -2
  131. package/dist/chunks/rotated-state.js +1 -1
  132. package/dist/chunks/scatterplot-model.js +19 -19
  133. package/dist/chunks/serial-chart-data.js +367 -370
  134. package/dist/chunks/serial-chart-model.js +44 -44
  135. package/dist/chunks/series-length.js +2 -2
  136. package/dist/chunks/series.js +2 -2
  137. package/dist/chunks/store.js +5 -5
  138. package/dist/chunks/time-zone.js +1 -1
  139. package/dist/chunks/type-guards3.js +4 -4
  140. package/dist/chunks/utils.js +14 -14
  141. package/dist/chunks/web-component-utils.js +557 -468
  142. package/dist/chunks/x-bounds.js +4 -4
  143. package/dist/components/arcgis-chart/customElement.d.ts +48 -41
  144. package/dist/components/arcgis-chart/customElement.js +4824 -4905
  145. package/dist/components/arcgis-charts-action-bar/customElement.d.ts +4 -0
  146. package/dist/components/arcgis-charts-action-bar/customElement.js +19 -19
  147. package/dist/components/arcgis-charts-config-axis/customElement.js +2 -2
  148. package/dist/components/arcgis-charts-config-bar-chart/customElement.js +2 -2
  149. package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +6 -6
  150. package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +4 -4
  151. package/dist/components/arcgis-charts-config-bar-chart-series/customElement.js +2 -2
  152. package/dist/components/arcgis-charts-config-box-plot/customElement.js +1 -1
  153. package/dist/components/arcgis-charts-config-box-plot-data/customElement.js +4 -4
  154. package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +2 -2
  155. package/dist/components/arcgis-charts-config-box-plot-series/customElement.js +1 -1
  156. package/dist/components/arcgis-charts-config-colors/customElement.js +1 -1
  157. package/dist/components/arcgis-charts-config-create-flow/customElement.js +11 -11
  158. package/dist/components/arcgis-charts-config-format/customElement.js +3 -3
  159. package/dist/components/arcgis-charts-config-general/customElement.js +2 -2
  160. package/dist/components/arcgis-charts-config-guide/customElement.js +13 -13
  161. package/dist/components/arcgis-charts-config-heat-chart/customElement.js +1 -1
  162. package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +5 -5
  163. package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +5 -5
  164. package/dist/components/arcgis-charts-config-histogram/customElement.js +2 -2
  165. package/dist/components/arcgis-charts-config-histogram-data/customElement.js +7 -7
  166. package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +15 -15
  167. package/dist/components/arcgis-charts-config-line-chart/customElement.js +2 -2
  168. package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +3 -3
  169. package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +2 -2
  170. package/dist/components/arcgis-charts-config-line-chart-series/customElement.js +7 -7
  171. package/dist/components/arcgis-charts-config-pie-chart/customElement.js +1 -1
  172. package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +5 -5
  173. package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +3 -3
  174. package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +2 -2
  175. package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +75 -75
  176. package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +2 -2
  177. package/dist/docs/api.json +1 -1
  178. package/dist/docs/docs.json +1 -1
  179. package/dist/docs/vscode.html-custom-data.json +1 -1
  180. package/dist/docs/web-types.json +1 -1
  181. package/dist/index.d.ts +70 -62
  182. package/dist/index.js +476 -471
  183. package/dist/json-schema/index.d.ts +52 -2
  184. package/dist/model/chart-model/chart-model.d.ts +2 -1
  185. package/dist/model/properties/data-tooltip-font-size.d.ts +20 -0
  186. package/dist/model/properties/rotated-state.d.ts +1 -1
  187. package/dist/{model.js → model/shared/setup-utils.js} +12 -12
  188. package/dist/spec/rest-js-object-literals.d.ts +2 -2
  189. package/dist/spec/web-chart.d.ts +6 -0
  190. package/dist/utils/chart-config/converter/index.js +723 -0
  191. package/dist/utils/chart-config/utils/index.d.ts +30 -0
  192. package/dist/utils/chart-config/validator/index.d.ts +1 -0
  193. package/dist/utils/chart-config/validator/interfaces.d.ts +2 -0
  194. package/dist/utils/defaults/index.d.ts +1 -2
  195. package/dist/utils/layer/index.d.ts +3 -3
  196. package/dist/utils/layer/inline-conversion/index.d.ts +3 -0
  197. package/dist/utils/layer/query-parser/index.d.ts +3 -3
  198. package/dist/utils/localization/interfaces.d.ts +4 -0
  199. package/package.json +8 -6
  200. package/dist/cdn/6SRISPQN.js +0 -3
  201. package/dist/cdn/CAJVNPHZ.js +0 -2
  202. package/dist/cdn/D23GGWFM.js +0 -2
  203. package/dist/cdn/HJHMEVMB.js +0 -2
  204. package/dist/cdn/HX4236ZL.js +0 -2
  205. package/dist/cdn/NS7OCROO.js +0 -2
  206. package/dist/cdn/NZR4L5AA.js +0 -2
  207. package/dist/cdn/OVM5QF7Q.js +0 -2
  208. package/dist/cdn/OY6UOUYX.js +0 -2
  209. package/dist/cdn/S3BC57BJ.js +0 -4
  210. package/dist/chunks/index7.js +0 -66
  211. /package/dist/cdn/{ABIVSH72.js → 2OHFSVV5.js} +0 -0
  212. /package/dist/cdn/{TSI3C3OV.js → 2XXW3WF3.js} +0 -0
  213. /package/dist/cdn/{XWKBJDZT.js → 3JYZJUOM.js} +0 -0
  214. /package/dist/cdn/{NHDVOYQ2.js → 3TZEMBXR.js} +0 -0
  215. /package/dist/cdn/{UAZ34KDJ.js → 4OH4NSIW.js} +0 -0
  216. /package/dist/cdn/{XIJ5VLER.js → 5SIAOUPO.js} +0 -0
  217. /package/dist/cdn/{75P3QRL4.js → 7QXRWMUN.js} +0 -0
  218. /package/dist/cdn/{4QQVKRJ5.js → AASL4RKT.js} +0 -0
  219. /package/dist/cdn/{PH6UOHRS.js → ANN3O54W.js} +0 -0
  220. /package/dist/cdn/{N6OT5IBC.js → BDGHBTPU.js} +0 -0
  221. /package/dist/cdn/{ZFM5RGWD.js → FFS73X36.js} +0 -0
  222. /package/dist/cdn/{5AOYADA3.js → FOYOG3G7.js} +0 -0
  223. /package/dist/cdn/{53FG76LL.js → FWAXKDYV.js} +0 -0
  224. /package/dist/cdn/{B4KT2HUE.js → H3EXGCE7.js} +0 -0
  225. /package/dist/cdn/{FLO3N6JD.js → I6UPUSLQ.js} +0 -0
  226. /package/dist/cdn/{WVRBLV5L.js → IVLVCLDE.js} +0 -0
  227. /package/dist/cdn/{NG2IHVZ4.js → IYA7HQMS.js} +0 -0
  228. /package/dist/cdn/{I5VHQW7B.js → L47EGLUH.js} +0 -0
  229. /package/dist/cdn/{OYHKUGS6.js → LROW4Y6O.js} +0 -0
  230. /package/dist/cdn/{DIKQ7BPQ.js → MK5ZYSOD.js} +0 -0
  231. /package/dist/cdn/{RDTBZUT7.js → N4L5KE23.js} +0 -0
  232. /package/dist/cdn/{4JQ2RRLY.js → N5ZUO6F3.js} +0 -0
  233. /package/dist/cdn/{2HGBRW4I.js → OFWEHJDH.js} +0 -0
  234. /package/dist/cdn/{M4AQLWZU.js → OXYJKZEP.js} +0 -0
  235. /package/dist/cdn/{O6SNP6QE.js → QR2OOC4D.js} +0 -0
  236. /package/dist/cdn/{4E7C5QPS.js → RSNZMJ6I.js} +0 -0
  237. /package/dist/cdn/{CODAXMWM.js → S3ZSZXYG.js} +0 -0
  238. /package/dist/cdn/{I36OAVW3.js → SERX6V5M.js} +0 -0
  239. /package/dist/cdn/{AJBEE7WE.js → SSQ3VCZ2.js} +0 -0
  240. /package/dist/cdn/{3V4HRXIT.js → TFPQDMER.js} +0 -0
  241. /package/dist/cdn/{2X75KJPF.js → ULWJ57VT.js} +0 -0
  242. /package/dist/cdn/{LNF44ZGQ.js → UYXCGSXU.js} +0 -0
  243. /package/dist/cdn/{OA7FHTCA.js → VDKFC44J.js} +0 -0
  244. /package/dist/cdn/{YIIPYKTL.js → VRZ2SY6M.js} +0 -0
  245. /package/dist/cdn/{VFM2EV3M.js → WAINRCCJ.js} +0 -0
  246. /package/dist/cdn/{MHG42BA5.js → WNKDEOFZ.js} +0 -0
  247. /package/dist/cdn/{DD4QUBOF.js → X2LW7GTR.js} +0 -0
  248. /package/dist/cdn/{N3VOUI25.js → XDMGH7YU.js} +0 -0
  249. /package/dist/cdn/{7ILH7ZG2.js → XY4TRZCG.js} +0 -0
  250. /package/dist/cdn/{66KSEDOR.js → XYKXBWIT.js} +0 -0
  251. /package/dist/cdn/{O2ERVMSN.js → Y6ZCTPJW.js} +0 -0
  252. /package/dist/cdn/{NFDXH5B3.js → YKDW7ZW3.js} +0 -0
  253. /package/dist/cdn/{SGOYJFLO.js → ZBIVDGNH.js} +0 -0
@@ -1,89 +1,89 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  import { substitute as P } from "@arcgis/core/intl.js";
3
- import { cloneDeep as ae, isEmpty as Ie, memoize as Le } from "lodash-es";
3
+ import { cloneDeep as ae, isEmpty as Le, memoize as qe } from "lodash-es";
4
4
  import { S as J } from "./common.js";
5
- import { s as N, u as E, g as re, d as Fe, e as qe, f as Ve, j as ce } from "./utils.js";
6
- import { w as R, bW as Ne, bl as Re, x as ke, Y, c4 as Oe, c7 as De, p as we, aH as le, c0 as Pe, d as Ee, aG as Me, I as $e, a7 as We, bj as Ye, W as Xe, e as je, bm as He, c8 as Ke, v as Ue, c9 as de, bK as Qe, ca as ze, bG as Ge, B as _e, c5 as Ze, an as X, a6 as he, c3 as ne, b9 as Je, k as ee, bo as et, bs as ye, ba as H, bg as me } from "./index2.js";
7
- import { a as M, c as Te, g as Q, e as ge, f as tt } from "./data.js";
8
- import { g as xe } from "./series-types.js";
9
- import { u as v, r as q, k as st, n as V, m as K, p as it, t as at, s as te } from "./chart-object-literals.js";
10
- import { C as D, d as w, F as U } from "./index3.js";
11
- import { a as rt } from "./index4.js";
12
- import { h as Be, i as O, j as lt, n as nt, g as b, m as A, e as pe } from "./index6.js";
13
- import { c as se, e as ot } from "./type-guards.js";
14
- import { az as ut, t as ct, Y as dt, a9 as yt, al as mt, x as gt, C as fe, H as Se, $ as pt } from "./index.js";
15
- import { g as oe } from "./utils2.js";
16
- import { b as ft, a as St } from "./series-length.js";
17
- import { i as Ft, R as ht } from "./rest-js-object-literals.js";
18
- import { i as z } from "./index5.js";
19
- const ts = (t) => {
5
+ import { s as N, u as E, g as re, a as Fe, b as Ve, c as Ne, d as de } from "./utils.js";
6
+ import { w as R, bY as Re, bm as ke, x as Oe, Y as K, cq as De, cp as we, p as Pe, aH as le, c2 as Ee, d as Me, aG as Ye, I as $e, a7 as We, bk as Xe, W as He, e as Ue, bo as je, cY as Ke, v as Qe, d2 as ye, bM as ze, d3 as _e, bI as Ge, B as Ze, d0 as Je, an as X, a6 as Te, cR as ne, b9 as et, ba as oe, k as ee, bq as tt, bu as me, bb as U, bh as ge } from "./index2.js";
7
+ import { a as M, s as xe, g as Q, b as pe, c as st } from "./data.js";
8
+ import { u as v, r as L, k as it, n as V, m as j, p as at, t as rt, s as te } from "./chart-object-literals.js";
9
+ import { i as lt, R as nt } from "./rest-js-object-literals.js";
10
+ import { i as z } from "./index4.js";
11
+ import { az as ot, t as ut, Y as ct, a9 as dt, al as yt, x as mt, C as fe, H as Se, $ as gt } from "./index.js";
12
+ import { C as w, F as Y, d as D } from "./index3.js";
13
+ import { h as Be, i as O, j as pt, n as ft, g as b, m as A, e as he } from "./index5.js";
14
+ import { convertChartSpec as St } from "../utils/chart-config/converter/index.js";
15
+ import { c as se, e as ht } from "./type-guards.js";
16
+ import { g as Ce } from "./series-types.js";
17
+ import { g as ue } from "./utils2.js";
18
+ import { a as Ft, b as Tt } from "./series-length.js";
19
+ const ss = (t) => {
20
20
  let e;
21
21
  const s = t.series[0];
22
22
  return R(s) && (e = s.temporalBinning?.size), e;
23
- }, Tt = (t) => {
23
+ }, xt = (t) => {
24
24
  let e;
25
25
  const s = t.series[0];
26
26
  return R(s) && (e = s.temporalBinning?.unit), e;
27
- }, ss = (t) => {
27
+ }, is = (t) => {
28
28
  let e;
29
29
  const s = t.series[0];
30
30
  return R(s) && (e = s.temporalBinning?.timeAggregationType), e;
31
- }, is = (t) => {
31
+ }, as = (t) => {
32
32
  let e;
33
33
  const s = t.series[0];
34
34
  return R(s) && (e = s.temporalBinning?.trimIncompleteTimeInterval), e;
35
- }, as = (t) => {
35
+ }, rs = (t) => {
36
36
  let e;
37
37
  const s = t.series[0];
38
38
  return R(s) && (e = s.temporalBinning?.nullPolicy), e;
39
- }, xt = (t, e) => {
39
+ }, Bt = (t, e) => {
40
40
  e?.series?.forEach((s) => {
41
41
  R(s) && (s.temporalBinning ??= {}, s.temporalBinning.size = t);
42
42
  }), N({ config: e, value: null, axisIndex: 1, isMax: !1 }), N({ config: e, value: null, axisIndex: 1, isMax: !0 });
43
- }, Bt = (t, e) => {
43
+ }, Ct = (t, e) => {
44
44
  e?.series?.forEach((s) => {
45
45
  R(s) && (s.temporalBinning ??= {}, s.temporalBinning.nullPolicy = t);
46
46
  }), N({ config: e, value: null, axisIndex: 1, isMax: !1 }), N({ config: e, value: null, axisIndex: 1, isMax: !0 });
47
- }, rs = (t, e) => {
47
+ }, ls = (t, e) => {
48
48
  e.series?.forEach((s) => {
49
49
  R(s) && (s.temporalBinning ??= {}, s.temporalBinning.unit = t);
50
50
  }), N({ config: e, value: null, axisIndex: 1, isMax: !1 }), N({ config: e, value: null, axisIndex: 1, isMax: !0 });
51
- }, ls = (t, e) => {
51
+ }, ns = (t, e) => {
52
52
  e.series?.forEach((s) => {
53
53
  R(s) && (s.temporalBinning ??= {}, s.temporalBinning.timeAggregationType = t);
54
54
  }), N({ config: e, value: null, axisIndex: 1, isMax: !1 }), N({ config: e, value: null, axisIndex: 1, isMax: !0 });
55
- }, ns = (t, e) => {
55
+ }, os = (t, e) => {
56
56
  e.series?.forEach((s) => {
57
57
  R(s) && (s.temporalBinning ??= {}, s.temporalBinning.trimIncompleteTimeInterval = t);
58
58
  }), N({ config: e, value: null, axisIndex: 1, isMax: !1 }), N({ config: e, value: null, axisIndex: 1, isMax: !0 });
59
- }, os = (t) => {
60
- xt(0, t);
59
+ }, us = (t) => {
60
+ Bt(0, t);
61
61
  };
62
- function us(t, e) {
62
+ function cs(t, e) {
63
63
  let s;
64
64
  return e !== void 0 && (s = { ...e }, s.legend !== void 0 && (s.legend.position = t)), s;
65
65
  }
66
- function cs(t, e) {
66
+ function ds(t, e) {
67
67
  let s;
68
68
  return e !== void 0 && (s = { ...e }, s.legend !== void 0 && (s.legend.visible = t)), s;
69
69
  }
70
- function ds(t, e) {
70
+ function ys(t, e) {
71
71
  let s;
72
72
  return e !== void 0 && (s = { ...e, rotated: t }), s;
73
73
  }
74
- function Ct(t) {
74
+ function bt(t) {
75
75
  let e;
76
76
  return t !== void 0 && (e = { ...t }, delete e.axes?.[0]?.minimum, delete e.axes?.[0]?.maximum, delete e.axes?.[1]?.minimum, delete e.axes?.[1]?.maximum), e;
77
77
  }
78
- function ys(t, e) {
78
+ function ms(t, e) {
79
79
  return e != null || Be(t);
80
80
  }
81
- async function ms(t) {
81
+ async function gs(t) {
82
82
  const { config: e, layer: s, abortSignal: r } = t;
83
83
  let a = !1;
84
- return se(s) || ot(e) ? e && se(s) && (a = await Re({ config: e, layer: s, abortSignal: r })) : a = !0, a;
84
+ return se(s) || ht(e) ? e && se(s) && (a = await ke({ config: e, layer: s, abortSignal: r })) : a = !0, a;
85
85
  }
86
- async function bt(t) {
86
+ async function At(t) {
87
87
  const {
88
88
  queryObject: e,
89
89
  chartConfig: s,
@@ -94,67 +94,67 @@ async function bt(t) {
94
94
  ignoreViewExtent: o,
95
95
  setTimeBinningInfoWhenNotProvided: c,
96
96
  returnFeaturesExtent: m,
97
- chartLimits: F
97
+ chartLimits: h
98
98
  } = t;
99
99
  let l = [], g;
100
- const d = ae(s), y = d.series[0], u = je({
100
+ const d = ae(s), y = d.series[0], u = Ue({
101
101
  queryObject: e,
102
102
  chartConfig: d,
103
103
  runtimeDataFilters: n,
104
104
  ignoreViewExtent: o
105
105
  });
106
- if (u.outStatistics?.[0]?.outStatisticFieldName && (u.outStatistics[0].outStatisticFieldName = ut.outStatistics.outStatisticFieldName), R(y) && He({
106
+ if (u.outStatistics?.[0]?.outStatisticFieldName && (u.outStatistics[0].outStatisticFieldName = ot.outStatistics.outStatisticFieldName), R(y) && je({
107
107
  xAxisValueFormatType: Ke(d),
108
108
  setTimeBinningInfoWhenNotProvided: c,
109
109
  seriesConfig: y,
110
110
  queryObject: e
111
- }) && Ue(r, e)) {
112
- const { temporalBinning: p, x: B } = y, { uniqueQuery: C } = de({
111
+ }) && Qe(r, e)) {
112
+ const { temporalBinning: f, x } = y, { uniqueQuery: C } = ye({
113
113
  chartConfig: d,
114
114
  queryConfig: u,
115
115
  queryObject: e,
116
116
  setTimeBinningInfoWhenNotProvided: c,
117
117
  returnFeaturesExtent: m,
118
- chartLimits: F
119
- }), h = s.axes?.[0].valueFormat.type === v.DateAxisFormat ? s.axes[0].valueFormat.intlOptions.timeZone : void 0;
120
- g = await Qe({
118
+ chartLimits: h
119
+ }), F = s.axes?.[0].valueFormat.type === v.DateAxisFormat ? s.axes[0].valueFormat.intlOptions.timeZone : void 0;
120
+ g = await ze({
121
121
  queryObject: e,
122
- dateField: B,
122
+ dateField: x,
123
123
  splitByField: r,
124
124
  queryConfig: C,
125
- axisTimeZone: h,
126
- temporalBinning: p,
125
+ axisTimeZone: F,
126
+ temporalBinning: f,
127
127
  errorStrings: a,
128
128
  abortSignal: i
129
129
  }), l = Array.from(
130
130
  new Set(
131
- g.flatMap((f) => {
132
- const { stackedAttributes: k } = f;
131
+ g.flatMap((p) => {
132
+ const { stackedAttributes: k } = p;
133
133
  let T = [];
134
134
  return k && (T = k.map((S) => S[r]).filter((S) => S !== void 0)), T;
135
135
  })
136
136
  ).values()
137
137
  );
138
138
  } else {
139
- const { uniqueQuery: p } = de({
139
+ const { uniqueQuery: f } = ye({
140
140
  chartConfig: d,
141
141
  queryObject: e,
142
142
  queryConfig: u,
143
143
  setTimeBinningInfoWhenNotProvided: c,
144
144
  returnFeaturesExtent: m,
145
- chartLimits: F
146
- }), { elementCount: B } = await ze({
145
+ chartLimits: h
146
+ }), { elementCount: x } = await _e({
147
147
  chartConfig: d,
148
148
  queryObject: e,
149
149
  queryConfig: u,
150
- behaviorAfterLimit: F?.behaviorAfterLimit,
151
- numberMaxOfFeaturesToFetch: p.num,
150
+ behaviorAfterLimit: h?.behaviorAfterLimit,
151
+ numberMaxOfFeaturesToFetch: f.num,
152
152
  abortSignal: i
153
153
  });
154
154
  g = await Ge({
155
155
  queryObject: e,
156
- queryConfig: p,
157
- featureCount: B,
156
+ queryConfig: f,
157
+ featureCount: x,
158
158
  errorStrings: a,
159
159
  abortSignal: i
160
160
  }), l = Array.from(
@@ -165,7 +165,7 @@ async function bt(t) {
165
165
  }
166
166
  return { allValues: l, preFetchedQueryResponse: g };
167
167
  }
168
- function At(t, e) {
168
+ function vt(t, e) {
169
169
  const s = /* @__PURE__ */ new Map();
170
170
  return t.series.forEach((r) => {
171
171
  let a = le({
@@ -178,14 +178,14 @@ function At(t, e) {
178
178
  escape: !1
179
179
  });
180
180
  e && a !== null && (a = Number(a));
181
- const i = xe([r]);
181
+ const i = Ce([r]);
182
182
  i !== void 0 && s.set(i, [
183
183
  ...s.get(i) ?? [],
184
184
  a
185
185
  ]);
186
186
  }), s;
187
187
  }
188
- function vt(t) {
188
+ function It(t) {
189
189
  const { allValues: e, configUniqueValuesPerSeriesType: s, initialConfigWasEmpty: r } = t, a = /* @__PURE__ */ new Map();
190
190
  return Array.from(s.keys()).forEach((i) => {
191
191
  const n = s.get(i) ?? [];
@@ -195,7 +195,7 @@ function vt(t) {
195
195
  }), a.set(i, o);
196
196
  }), a;
197
197
  }
198
- function It(t) {
198
+ function Lt(t) {
199
199
  const { chartConfig: e, missingValue: s, splitByField: r, seriesTemplate: a } = t, i = JSON.parse(
200
200
  JSON.stringify({
201
201
  ...e.series[0],
@@ -203,7 +203,7 @@ function It(t) {
203
203
  })
204
204
  );
205
205
  if (i.query) {
206
- if (i.id = `${s}-${e.series.length}-${Date.now()}`, i.name = `${s}`, i.query.outStatistics?.[0] !== void 0) {
206
+ if (i.id = s === null ? Y.nullValue : `${s}`, i.name = `${s}`, i.query.outStatistics?.[0] !== void 0) {
207
207
  const o = i.id;
208
208
  i.query.outStatistics[0].outStatisticFieldName = o, "y" in i && (i.y = o);
209
209
  }
@@ -212,7 +212,7 @@ function It(t) {
212
212
  }
213
213
  return i;
214
214
  }
215
- async function Lt(t) {
215
+ async function qt(t) {
216
216
  const {
217
217
  updateSplitBySeries: e,
218
218
  config: s,
@@ -223,15 +223,15 @@ async function Lt(t) {
223
223
  ignoreViewExtent: o,
224
224
  setTimeBinningInfoWhenNotProvided: c,
225
225
  returnFeaturesExtent: m,
226
- chartLimits: F
226
+ chartLimits: h
227
227
  } = t, { seriesTemplate: l } = e ?? {};
228
228
  let g;
229
229
  if (r && !se(r) && e !== void 0 && s !== void 0 && (s.series.length > 0 || l !== void 0) && e.addMissingSeries) {
230
230
  const d = s.series.length === 0;
231
231
  s.series.length === 0 && l !== void 0 && s.series.push(l);
232
- const y = Y(s.series);
233
- if (y === D.BoxPlotMonoFieldAndSplitBy || y === D.BoxPlotMultiFieldsAndSplitBy || y === D.BoxPlotMonoFieldAndCategoryAndSplitBy || y === D.BarAndLineSplitBy || y === D.BarAndLineSplitByNoAggregation) {
234
- const u = Me(s.series[0]?.query?.where), p = $e(r), B = We(u, p), C = B ? Ye(B) : !1, h = await bt({
232
+ const y = K(s.series);
233
+ if (y === w.BoxPlotMonoFieldAndSplitBy || y === w.BoxPlotMultiFieldsAndSplitBy || y === w.BoxPlotMonoFieldAndCategoryAndSplitBy || y === w.BarAndLineSplitBy || y === w.BarAndLineSplitByNoAggregation) {
234
+ const u = Ye(s.series[0]?.query?.where), f = $e(r), x = We(u, f), C = x ? Xe(x) : !1, F = await At({
235
235
  queryObject: r,
236
236
  chartConfig: s,
237
237
  splitByField: u,
@@ -240,22 +240,22 @@ async function Lt(t) {
240
240
  ignoreViewExtent: o,
241
241
  setTimeBinningInfoWhenNotProvided: c,
242
242
  returnFeaturesExtent: m,
243
- chartLimits: F,
243
+ chartLimits: h,
244
244
  errorStrings: a
245
- }), { allValues: f } = h;
246
- if ({ preFetchedQueryResponse: g } = h, f.length > 0) {
247
- const k = At(s, C), T = vt({
248
- allValues: f,
245
+ }), { allValues: p } = F;
246
+ if ({ preFetchedQueryResponse: g } = F, p.length > 0) {
247
+ const k = vt(s, C), T = It({
248
+ allValues: p,
249
249
  configUniqueValuesPerSeriesType: k,
250
250
  initialConfigWasEmpty: d
251
251
  });
252
252
  Array.from(T.keys()).forEach((S) => {
253
- (T.get(S) ?? []).forEach((L) => {
253
+ (T.get(S) ?? []).forEach((q) => {
254
254
  s.series.push(
255
- It({
255
+ Lt({
256
256
  chartConfig: s,
257
257
  seriesTemplate: l,
258
- missingValue: L,
258
+ missingValue: q,
259
259
  splitByField: u
260
260
  })
261
261
  );
@@ -266,10 +266,10 @@ async function Lt(t) {
266
266
  }
267
267
  return g;
268
268
  }
269
- function qt(t, e) {
270
- e && !Be(e) && (e = Ee({ chartConfig: e, queryObject: t }));
269
+ function Vt(t, e) {
270
+ e && !Be(e) && (e = Me({ chartConfig: e, queryObject: t }));
271
271
  }
272
- async function gs(t) {
272
+ async function ps(t) {
273
273
  const {
274
274
  configToAlter: e,
275
275
  layer: s,
@@ -280,13 +280,13 @@ async function gs(t) {
280
280
  abortSignal: o,
281
281
  runtimeDataFilters: c,
282
282
  ignoreViewExtent: m,
283
- setTimeBinningInfoWhenNotProvided: F,
283
+ setTimeBinningInfoWhenNotProvided: h,
284
284
  returnFeaturesExtent: l,
285
285
  chartLimits: g,
286
286
  errorStrings: d
287
287
  } = t;
288
288
  let y = e, u;
289
- return y && (qt(s, y), y = await rt(y, s, void 0, o), r && n && (u = await Lt({
289
+ return y && (Vt(s, y), y = await St(y, s, void 0, o), r && n && (u = await qt({
290
290
  updateSplitBySeries: a,
291
291
  config: y,
292
292
  queryObject: n,
@@ -294,24 +294,24 @@ async function gs(t) {
294
294
  abortSignal: o,
295
295
  runtimeDataFilters: c,
296
296
  ignoreViewExtent: m,
297
- setTimeBinningInfoWhenNotProvided: F,
297
+ setTimeBinningInfoWhenNotProvided: h,
298
298
  returnFeaturesExtent: l,
299
299
  chartLimits: g
300
- })), y = Ne(y, i)), { alteredConfig: y, preFetchedQueryResponse: u };
300
+ })), y = Re(y, i)), { alteredConfig: y, preFetchedQueryResponse: u };
301
301
  }
302
- function Vt(t, e) {
302
+ function Nt(t, e) {
303
303
  let s = !1;
304
304
  if (e !== void 0) {
305
- const r = Xe({ key: _e.Average, splitBy: e });
305
+ const r = He({ key: Ze.Average, splitBy: e });
306
306
  s = Number.isFinite(t[r]);
307
307
  }
308
308
  return s;
309
309
  }
310
- function ps(t) {
310
+ function fs(t) {
311
311
  const { data: e, config: s, showEmptySeries: r } = t, a = s.series.length, i = ae(s);
312
312
  let n = !1;
313
313
  if (!r && a > 1 && e) {
314
- const o = ke(e), c = xe(s?.series), m = Y(s?.series), F = /* @__PURE__ */ new Set();
314
+ const o = Oe(e), c = Ce(s?.series), m = K(s?.series), h = /* @__PURE__ */ new Set();
315
315
  switch (c) {
316
316
  case v.ComboLineAndBarSeries:
317
317
  case v.BarSeries:
@@ -320,141 +320,141 @@ function ps(t) {
320
320
  i.series.forEach((g) => {
321
321
  if (Array.isArray(o)) {
322
322
  let d = "";
323
- "y" in g && (d = Array.isArray(g.y) ? g.y[0] : g.y, m === D.BarAndLineSplitByNoAggregation && (d = `${d}_${le({ where: g.query?.where, keepSurroundingQuotes: !1, escape: !1 })}`), o.some(
324
- (u) => Pe({
323
+ "y" in g && (d = Array.isArray(g.y) ? g.y[0] : g.y, m === w.BarAndLineSplitByNoAggregation && (d = `${d}_${le({ where: g.query?.where, keepSurroundingQuotes: !1, escape: !1 })}`), o.some(
324
+ (u) => Ee({
325
325
  dataItem: u,
326
326
  x: g.x,
327
327
  y: d,
328
328
  aggregationType: s.series[0].query?.outStatistics?.[0]?.statisticType
329
329
  })
330
- ) && F.add(g));
330
+ ) && h.add(g));
331
331
  }
332
332
  });
333
333
  break;
334
334
  }
335
335
  case v.BoxPlotSeries: {
336
- if (Oe(s)) {
337
- const g = De(s);
336
+ if (De(s)) {
337
+ const g = we(s);
338
338
  s.series.forEach((d) => {
339
339
  let y, u;
340
340
  d.type === v.BoxPlotSeries ? (y = e.dataItems, u = y?.some(
341
- (p) => we({
342
- dataItem: p,
341
+ (f) => Pe({
342
+ dataItem: f,
343
343
  splitBy: d.query?.where,
344
344
  showOutliers: g
345
345
  })
346
346
  )) : d.type === v.LineSeries && (y = e.meanLines, u = y?.some(
347
- (p) => Vt(p, d.query?.where)
348
- )), u && F.add(d);
347
+ (f) => Nt(f, d.query?.where)
348
+ )), u && h.add(d);
349
349
  });
350
350
  }
351
351
  break;
352
352
  }
353
353
  }
354
- const l = Array.from(F.values());
354
+ const l = Array.from(h.values());
355
355
  n = l.length > 0 && l.length < a, n && (i.series = l);
356
356
  }
357
357
  return { seriesFilteredOut: n, filteredConfig: i };
358
358
  }
359
- const fs = (t) => t.hideEmptyRowsAndColumns, Ss = (t, e) => {
359
+ const Ss = (t) => t.hideEmptyRowsAndColumns, hs = (t, e) => {
360
360
  t.hideEmptyRowsAndColumns = e;
361
361
  }, Fs = (t, e) => {
362
362
  const s = t.series[0];
363
363
  s.heatRulesType = e;
364
- }, hs = (t) => t.series[0].heatRulesType, Ts = (t, e) => {
364
+ }, Ts = (t) => t.series[0].heatRulesType, xs = (t, e) => {
365
365
  const s = t.series[0];
366
366
  s.gradientRules = e;
367
- }, xs = (t) => t.series[0].gradientRules, Bs = (t) => {
368
- const { yField: e, config: s, layerInfo: r } = t, { layerFieldsInfo: a } = r, i = oe(1, s), n = Nt(s), o = z(s), c = s.series[0];
369
- if (typeof e == "string" && n !== e && c && (c.y = e, Ct(s), n === i || o)) {
370
- const m = w(a, e);
367
+ }, Bs = (t) => t.series[0].gradientRules, Cs = (t) => {
368
+ const { yField: e, config: s, layerInfo: r } = t, { layerFieldsInfo: a } = r, i = ue(1, s), n = Rt(s), o = z(s), c = s.series[0];
369
+ if (typeof e == "string" && n !== e && c && (c.y = e, bt(s), n === i || o)) {
370
+ const m = D(a, e);
371
371
  E(s, 1, m);
372
372
  }
373
- }, Nt = (t) => t.series[0].y ?? "", Cs = (t) => {
373
+ }, Rt = (t) => t.series[0].y ?? "", bs = (t) => {
374
374
  const { binning: e, config: s, commonStrings: r } = t, a = s.series[0];
375
375
  if (a.xTemporalBinning = e, e?.unit !== void 0 && e.unit in r.utilsStrings.heatChartCalendarDatePartsUnits) {
376
376
  const i = r.utilsStrings.heatChartCalendarDatePartsUnits[e.unit];
377
377
  E(s, 0, i);
378
378
  }
379
- }, bs = (t) => t.series[0].xTemporalBinning, As = (t) => {
379
+ }, As = (t) => t.series[0].xTemporalBinning, vs = (t) => {
380
380
  const { binning: e, config: s, commonStrings: r } = t, a = s.series[0];
381
381
  if (a.yTemporalBinning = e, e?.unit !== void 0 && e.unit in r.utilsStrings.heatChartCalendarDatePartsUnits) {
382
382
  const i = r.utilsStrings.heatChartCalendarDatePartsUnits[e.unit];
383
383
  E(s, 1, i);
384
384
  }
385
- }, vs = (t) => t.series[0].yTemporalBinning, Rt = (t, e) => {
385
+ }, Is = (t) => t.series[0].yTemporalBinning, kt = (t, e) => {
386
386
  e.orderOptions ??= {};
387
387
  const s = e.axes?.[0]?.valueFormat?.type === "category" ? V.Category : V.YValue, r = ie(e)[0], a = e.axes?.[1]?.valueFormat?.type === "category" ? V.Category : V.YValue, i = ie(e)[1], n = {
388
388
  ...e.orderOptions.data ?? {},
389
389
  orderType: V.MultiAxes
390
390
  };
391
391
  r === J.customSort && s === V.Category && (n.orderByX = [...t]), i === J.customSort && a === V.Category && (n.orderByY = [...t]), Object.keys(n).length > 1 && (e.orderOptions.data = n);
392
- }, Is = (t, e) => {
392
+ }, Ls = (t, e) => {
393
393
  const s = e.series[0];
394
394
  s.gridLine && (s.gridLine.width = t);
395
- }, Ls = (t) => t.series[0].gridLine?.width, qs = (t, e) => {
395
+ }, qs = (t) => t.series[0].gridLine?.width, Vs = (t, e) => {
396
396
  const s = e.series[0], r = t?.length === 4 && t.every((a) => typeof a == "number");
397
397
  s.gridLine && r && (s.gridLine.color = t);
398
- }, Vs = (t) => t.series[0].gridLine?.color, Ns = (t, e) => {
398
+ }, Ns = (t) => t.series[0].gridLine?.color, Rs = (t, e) => {
399
399
  const s = e.legend;
400
400
  s && (s.position = t);
401
- }, Rs = (t) => t.legend?.position ?? st.Bottom, ks = (t) => t.series[0].query?.outStatistics?.[0]?.onStatisticField, Os = (t) => {
402
- const { field: e, config: s, layerInfo: r, commonStrings: a } = t, i = s.series[0].query?.outStatistics?.[0], n = _(s, r, a);
401
+ }, ks = (t) => t.legend?.position ?? it.Bottom, Os = (t) => t.series[0].query?.outStatistics?.[0]?.onStatisticField, Ds = (t) => {
402
+ const { field: e, config: s, layerInfo: r, commonStrings: a } = t, i = s.series[0].query?.outStatistics?.[0], n = G(s, r, a);
403
403
  i ? (i.onStatisticField = e, i.outStatisticFieldName = `${i.statisticType}_${e}`) : s.series[0].query = {
404
404
  outStatistics: [
405
405
  {
406
406
  onStatisticField: e,
407
- outStatisticFieldName: `${q.Count}_${e}`,
408
- statisticType: q.Count
407
+ outStatisticFieldName: `${L.Count}_${e}`,
408
+ statisticType: L.Count
409
409
  }
410
410
  ]
411
- }, n && s.title && (s.title.content.text = j(s, r, a));
412
- }, Ds = (t) => t.series[0].query?.outStatistics?.[0].statisticType ?? q.Count, ws = (t) => {
413
- const { aggregationType: e, config: s, layerInfo: r, commonStrings: a } = t, i = s.series[0]?.query?.outStatistics?.[0], n = _(s, r, a);
414
- i && e !== q.NoAggregation && (i.statisticType = e, i.outStatisticFieldName = `${e}_${i.onStatisticField}`), (e === q.Count || e === q.Sum) && kt(K.Zero, s), n && s.title && (s.title.content.text = j(s, r, a));
415
- }, Ps = (t) => t.nullPolicy, kt = (t, e) => {
411
+ }, n && s.title && (s.title.content.text = H(s, r, a));
412
+ }, ws = (t) => t.series[0].query?.outStatistics?.[0].statisticType ?? L.Count, Ps = (t) => {
413
+ const { aggregationType: e, config: s, layerInfo: r, commonStrings: a } = t, i = s.series[0]?.query?.outStatistics?.[0], n = G(s, r, a);
414
+ i && e !== L.NoAggregation && (i.statisticType = e, i.outStatisticFieldName = `${e}_${i.onStatisticField}`), (e === L.Count || e === L.Sum) && Ot(j.Zero, s), n && s.title && (s.title.content.text = H(s, r, a));
415
+ }, Es = (t) => t.nullPolicy, Ot = (t, e) => {
416
416
  e.nullPolicy = t;
417
- }, Es = (t) => t.series[0].emptyCells, Ms = (t, e) => {
417
+ }, Ms = (t) => t.series[0].emptyCells, Ys = (t, e) => {
418
418
  e.series[0].emptyCells = t;
419
419
  }, $s = (t) => t.series[0].emptyCells?.text, Ws = (t, e) => {
420
420
  e.series[0].emptyCells ? e.series[0].emptyCells.text = t : e.series[0].emptyCells = { text: t };
421
- }, Ys = (t) => t.includeLeapDay, Xs = (t, e) => {
421
+ }, Xs = (t) => t.includeLeapDay, Hs = (t, e) => {
422
422
  e.includeLeapDay = t;
423
- }, js = (t) => t.series[0].emptyCells?.symbol, Hs = (t, e) => {
423
+ }, Us = (t) => t.series[0].emptyCells?.symbol, js = (t, e) => {
424
424
  e.series[0].emptyCells ? e.series[0].emptyCells.symbol = t : e.series[0].emptyCells = { symbol: t };
425
425
  };
426
426
  function Ks(t) {
427
427
  return t.viewType;
428
428
  }
429
- function Us(t, e) {
430
- Ze(e) || (e.viewType = t);
429
+ function Qs(t, e) {
430
+ Je(e) || (e.viewType = t);
431
431
  }
432
- function Qs(t) {
433
- return t.series[0].classBreaksRules?.breaksCount ?? U.classBreaks.breaksCount;
432
+ function zs(t) {
433
+ return t.series[0].classBreaksRules?.breaksCount ?? Y.classBreaks.breaksCount;
434
434
  }
435
- function zs(t, e) {
436
- e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.breaksCount = t ?? U.classBreaks.breaksCount : e.series[0].classBreaksRules = {
437
- breaksCount: t ?? U.classBreaks.breaksCount
435
+ function _s(t, e) {
436
+ e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.breaksCount = t ?? Y.classBreaks.breaksCount : e.series[0].classBreaksRules = {
437
+ breaksCount: t ?? Y.classBreaks.breaksCount
438
438
  };
439
439
  }
440
440
  function Gs(t) {
441
441
  return t.series[0].classBreaksRules?.classificationMethod;
442
442
  }
443
- function _s(t, e) {
443
+ function Zs(t, e) {
444
444
  e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.classificationMethod = t : e.series[0].classBreaksRules = {
445
445
  classificationMethod: t
446
- }, e.series[0].classBreaksRules.breaksCount = e.series[0].classBreaksRules.breaksCount ?? U.classBreaks.breaksCount;
446
+ }, e.series[0].classBreaksRules.breaksCount = e.series[0].classBreaksRules.breaksCount ?? Y.classBreaks.breaksCount;
447
447
  }
448
- function Zs(t, e) {
448
+ function Js(t, e) {
449
449
  e.firstDayOfWeek = t;
450
450
  }
451
- function Js(t) {
451
+ function ei(t) {
452
452
  return t.firstDayOfWeek;
453
453
  }
454
- function ei(t) {
454
+ function ti(t) {
455
455
  return t.series[0].classBreaksRules?.colorRampInfo?.name;
456
456
  }
457
- function ti(t, e) {
457
+ function si(t, e) {
458
458
  e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.colorRampInfo = {
459
459
  ...e.series[0].classBreaksRules.colorRampInfo,
460
460
  name: t
@@ -465,10 +465,10 @@ function ti(t, e) {
465
465
  }
466
466
  };
467
467
  }
468
- function si(t) {
468
+ function ii(t) {
469
469
  return t.series[0].classBreaksRules?.colorRampInfo?.flipped ?? !1;
470
470
  }
471
- function ii(t, e) {
471
+ function ai(t, e) {
472
472
  e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.colorRampInfo = {
473
473
  ...e.series[0].classBreaksRules.colorRampInfo,
474
474
  flipped: t
@@ -482,21 +482,21 @@ function $(t) {
482
482
  const { seriesIndex: e, xAxisField: s, aggregationType: r, config: a, layerInfo: i, commonStrings: n } = t, o = X(i?.layer).idField;
483
483
  let c;
484
484
  const m = a.series[e ?? 0];
485
- let F = !1, l = !1, g = !1;
485
+ let h = !1, l = !1, g = !1;
486
486
  if (m === void 0) {
487
487
  const u = a.series;
488
- F = u.slice(0, e).every((p) => b(p)), l = u.slice(0, e).every((p) => A(p)), g = u.slice(0, e).every((p) => pe(p));
488
+ h = u.slice(0, e).every((f) => b(f)), l = u.slice(0, e).every((f) => A(f)), g = u.slice(0, e).every((f) => he(f));
489
489
  } else
490
- F = b(m), l = A(m), g = pe(m);
491
- F ? c = dt({
490
+ h = b(m), l = A(m), g = he(m);
491
+ h ? c = ct({
492
492
  commonStrings: n,
493
493
  seriesIndex: e,
494
494
  objectIDField: o
495
- }) : l ? c = yt({
495
+ }) : l ? c = dt({
496
496
  commonStrings: n,
497
497
  seriesIndex: e,
498
498
  objectIDField: o
499
- }) : g ? c = mt(n, o) : c = gt({
499
+ }) : g ? c = yt(n, o) : c = mt({
500
500
  seriesIndex: e,
501
501
  objectIDField: o,
502
502
  commonStrings: n
@@ -508,13 +508,13 @@ function $(t) {
508
508
  dataLabels: {
509
509
  ...c.dataLabels,
510
510
  type: c.dataLabels?.type ?? v.Text,
511
- content: { ...c.dataLabels?.content, ...d?.content, type: Ft.TS },
511
+ content: { ...c.dataLabels?.content, ...d?.content, type: lt.TS },
512
512
  visible: d?.visible ?? !1
513
513
  }
514
514
  };
515
515
  if (y.query = {
516
516
  groupByFieldsForStatistics: [s]
517
- }, r !== q.NoAggregation && o !== void 0) {
517
+ }, r !== L.NoAggregation && o !== void 0) {
518
518
  const u = `${r}_${o}_0`.toUpperCase();
519
519
  y.y = u, y.query.outStatistics = [
520
520
  {
@@ -524,22 +524,19 @@ function $(t) {
524
524
  }
525
525
  ];
526
526
  }
527
- if (R(a.series[0]) && R(y)) {
528
- let u;
529
- if (a?.series?.[0] !== void 0 && (u = Y(a.series)), u !== D.BarAndLineNoAggregation && u !== D.BarAndLineSplitByNoAggregation) {
530
- let p = Tt(a);
531
- p === te.Quarter && (p = te.Month), y.temporalBinning = {
532
- ...a.series[0]?.temporalBinning,
533
- unit: p
534
- };
535
- }
527
+ if (R(a.series[0]) && R(y) && oe({ chartConfig: a })) {
528
+ let u = xt(a);
529
+ u === te.Quarter && (u = te.Month), y.temporalBinning = {
530
+ ...a.series[0]?.temporalBinning,
531
+ unit: u
532
+ };
536
533
  }
537
534
  return ae(y);
538
535
  }
539
- function j(t, e, s) {
540
- const { layerFieldsInfo: r } = e, { idField: a, isTraditionalTypeOID: i } = X(e.layer), n = M(t), o = G(t), c = be(t), m = ue(t), F = i && (o.length === 0 || o.includes(a)), l = ct(c, s), g = F ? "" : o.map((h) => w(r ?? [], h)).join(", "), d = w(r ?? [], n), y = w(r ?? [], m), u = t.series.some((h) => O(h)), p = u ? "category" : "xAxisField", B = d;
536
+ function H(t, e, s) {
537
+ const { layerFieldsInfo: r } = e, { idField: a, isTraditionalTypeOID: i } = X(e.layer), n = M(t), o = _(t), c = Ae(t), m = ce(t), h = i && (o.length === 0 || o.includes(a)), l = ut(c, s), g = h ? "" : o.map((F) => D(r ?? [], F)).join(", "), d = D(r ?? [], n), y = D(r ?? [], m), u = t.series.some((F) => O(F)), f = u ? "category" : "xAxisField", x = d;
541
538
  let C = "";
542
- if (Te({
539
+ if (xe({
543
540
  fieldName: n,
544
541
  numericFields: o,
545
542
  fieldList: r
@@ -548,68 +545,68 @@ function j(t, e, s) {
548
545
  aggregationType: l,
549
546
  aggregationFields: g
550
547
  });
551
- else if (c === q.NoAggregation) {
552
- const h = F ? a : g;
548
+ else if (c === L.NoAggregation) {
549
+ const F = h ? a : g;
553
550
  if (m === "") {
554
- const f = u ? "aggrTypeCategory" : "aggrTypeXAxisField";
555
- C = P(s.titleLabels[f], {
556
- aggregationType: h,
557
- [p]: B
551
+ const p = u ? "aggrTypeCategory" : "aggrTypeXAxisField";
552
+ C = P(s.titleLabels[p], {
553
+ aggregationType: F,
554
+ [f]: x
558
555
  });
559
556
  } else {
560
- const f = u ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
561
- C = P(s.titleLabels[f], {
562
- aggregationType: h,
563
- [p]: B,
557
+ const p = u ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
558
+ C = P(s.titleLabels[p], {
559
+ aggregationType: F,
560
+ [f]: x,
564
561
  splitByField: y
565
562
  });
566
563
  }
567
- } else if (c === q.Count)
564
+ } else if (c === L.Count)
568
565
  if (m === "") {
569
- const h = u ? "aggrTypeCategory" : "aggrTypeXAxisField";
570
- C = P(s.titleLabels[h], {
566
+ const F = u ? "aggrTypeCategory" : "aggrTypeXAxisField";
567
+ C = P(s.titleLabels[F], {
571
568
  aggregationType: l,
572
- [p]: B
569
+ [f]: x
573
570
  });
574
571
  } else {
575
- const h = u ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
576
- C = P(s.titleLabels[h], {
572
+ const F = u ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
573
+ C = P(s.titleLabels[F], {
577
574
  aggregationType: l,
578
- [p]: B,
575
+ [f]: x,
579
576
  splitByField: y
580
577
  });
581
578
  }
582
579
  else if (m !== "") {
583
- const h = u ? "aggrTypeOfAggrFieldByCategoryBySplitByField" : "aggrTypeOfAggrFieldByXAxisFieldBySplitByField";
584
- C = P(s.titleLabels[h], {
580
+ const F = u ? "aggrTypeOfAggrFieldByCategoryBySplitByField" : "aggrTypeOfAggrFieldByXAxisFieldBySplitByField";
581
+ C = P(s.titleLabels[F], {
585
582
  aggregationType: l,
586
583
  aggregationField: g,
587
- [p]: B,
584
+ [f]: x,
588
585
  splitByField: y
589
586
  });
590
587
  } else if (o.length > 0) {
591
- const h = u ? "aggrTypeOfAggrFieldsByCategory" : "aggrTypeOfAggrFieldsByXAxisField";
592
- C = P(s.titleLabels[h], {
588
+ const F = u ? "aggrTypeOfAggrFieldsByCategory" : "aggrTypeOfAggrFieldsByXAxisField";
589
+ C = P(s.titleLabels[F], {
593
590
  aggregationType: l,
594
591
  aggregationFields: g,
595
- [p]: B
592
+ [f]: x
596
593
  });
597
594
  }
598
595
  return C;
599
596
  }
600
- const Ce = (t) => le({
597
+ const be = (t) => le({
601
598
  where: t.query?.where,
602
599
  normalize: !1,
603
600
  escape: !1
604
- }) ?? "", be = (t) => t?.series?.[0]?.query?.outStatistics?.[0]?.statisticType ?? q.NoAggregation, ue = Le(
601
+ }) ?? "", Ae = (t) => t?.series?.[0]?.query?.outStatistics?.[0]?.statisticType ?? L.NoAggregation, ce = qe(
605
602
  (t) => {
606
603
  const e = t?.series?.[0]?.query?.where?.split("=")[0].trim() ?? "";
607
- return Je(t?.series?.[0]?.query?.where) ? "" : e;
604
+ return et(t?.series?.[0]?.query?.where) ? "" : e;
608
605
  },
609
606
  (t) => t?.series?.[0]?.query?.where
610
- ), G = (t) => {
607
+ ), _ = (t) => {
611
608
  let e = [];
612
- if (ue(t) === "")
609
+ if (ce(t) === "")
613
610
  e = t?.series.map((s) => {
614
611
  const r = s.query?.outStatistics?.map((a) => a.onStatisticField) ?? [];
615
612
  return r?.length > 0 ? r : s.y;
@@ -620,31 +617,31 @@ const Ce = (t) => le({
620
617
  }
621
618
  return e.filter((s) => s !== "");
622
619
  };
623
- function Ot(t) {
620
+ function Dt(t) {
624
621
  const { numericFields: e, aggregationType: s, config: r, layerInfo: a } = t;
625
622
  let i = !1;
626
- s === q.Count ? i = !0 : s === q.NoAggregation && (i = e.every((c) => {
627
- const m = a.layerFieldsInfo.find((F) => F.name === c);
628
- return m !== void 0 ? me(m) : !1;
629
- })), ce(r, 1, i);
623
+ s === L.Count ? i = !0 : s === L.NoAggregation && (i = e.every((c) => {
624
+ const m = a.layerFieldsInfo.find((h) => h.name === c);
625
+ return m !== void 0 ? ge(m) : !1;
626
+ })), de(r, 1, i);
630
627
  const n = r.series.some((c) => b(c)), o = r.series.some((c) => A(c));
631
628
  if (n || o) {
632
- const c = M(r), m = a.layerFieldsInfo.find((l) => l.name === c), F = m !== void 0 && me(m);
633
- ce(r, 0, F);
629
+ const c = M(r), m = a.layerFieldsInfo.find((l) => l.name === c), h = m !== void 0 && ge(m);
630
+ de(r, 0, h);
634
631
  }
635
632
  }
636
633
  const ie = (t) => {
637
634
  let e;
638
635
  if (ne(t)) {
639
636
  const s = t.orderOptions?.data?.orderByX ?? [""], r = t.orderOptions?.data?.orderByY ?? [""], a = t.axes?.[0]?.valueFormat?.type === "category" ? V.Category : V.YValue, i = t.axes?.[1]?.valueFormat?.type === "category" ? V.Category : V.YValue;
640
- e = [ge(s, a), ge(r, i)];
637
+ e = [pe(s, a), pe(r, i)];
641
638
  } else {
642
- const s = t.orderOptions?.data?.orderType ?? V.Category, r = t.orderOptions?.data && "orderBy" in t.orderOptions.data ? t.orderOptions.data.orderBy : it.Ascending;
643
- e = [tt(r, s)];
639
+ const s = t.orderOptions?.data?.orderType ?? V.Category, r = t.orderOptions?.data && "orderBy" in t.orderOptions.data ? t.orderOptions.data.orderBy : at.Ascending;
640
+ e = [st(r, s)];
644
641
  }
645
642
  return e;
646
643
  };
647
- function Dt(t) {
644
+ function wt(t) {
648
645
  const { xAxisField: e, numericFields: s, aggregationType: r, config: a, layerInfo: i, commonStrings: n } = t, { layerFieldsInfo: o } = i;
649
646
  let c = !1;
650
647
  const m = $({
@@ -654,7 +651,7 @@ function Dt(t) {
654
651
  layerInfo: i,
655
652
  seriesIndex: 0,
656
653
  commonStrings: n
657
- }), F = Q({
654
+ }), h = Q({
658
655
  config: a,
659
656
  xAxisField: e,
660
657
  numericFields: s,
@@ -666,7 +663,7 @@ function Dt(t) {
666
663
  id: `series_${Date.now()}`,
667
664
  name: n.axisLabels.values,
668
665
  x: ee,
669
- y: F
666
+ y: h
670
667
  }, g = [];
671
668
  for (const y of s)
672
669
  g.push({
@@ -678,18 +675,18 @@ function Dt(t) {
678
675
  const d = a.series[0];
679
676
  return d !== void 0 && (l.id = d.id, (b(l) && b(d) || A(l) && A(d)) && W(l, d), a.colorMatch || (O(d) && O(l) ? l.fillSymbol = d.fillSymbol : (b(l) && b(d) || A(l) && A(d)) && (l.lineSymbol = d.lineSymbol, l.markerSymbol = d.markerSymbol), c = !0), l.id = d.id, d.name !== m.name && (l.name = d.name)), a.series.length === 1 && ((b(l) || A(l)) && W(l, a.series[0]), a.colorMatch || (O(l) ? l.fillSymbol = a.series[0].fillSymbol : (b(l) || A(l)) && (l.lineSymbol = a.series[0].lineSymbol, l.markerSymbol = a.series[0].markerSymbol), c = !0)), a.colorMatch = !c, [l];
680
677
  }
681
- function Ae(t) {
678
+ function ve(t) {
682
679
  const { xAxisField: e, numericFields: s, aggregationType: r, config: a, layerInfo: i, commonStrings: n } = t, { layerFieldsInfo: o } = i, c = X(i.layer).idField, m = [];
683
- let F = !1;
680
+ let h = !1;
684
681
  for (let u = 0; u < s.length; u += 1) {
685
- const p = $({
682
+ const f = $({
686
683
  config: a,
687
684
  xAxisField: e,
688
685
  aggregationType: r,
689
686
  layerInfo: i,
690
687
  seriesIndex: u,
691
688
  commonStrings: n
692
- }), B = a.series[u]?.y, C = typeof B == "string" ? B : Q({
689
+ }), x = a.series[u]?.y, C = typeof x == "string" && x.trim() !== "" && !o.find((S) => S.name === x) ? x : Q({
693
690
  config: a,
694
691
  xAxisField: e,
695
692
  numericFields: s,
@@ -697,32 +694,32 @@ function Ae(t) {
697
694
  layer: i.layer,
698
695
  numericFieldIndex: u,
699
696
  fieldList: o
700
- }).name, h = s[u];
701
- let f = {
702
- ...p,
697
+ }).name, F = s[u];
698
+ let p = {
699
+ ...f,
703
700
  query: {
704
- ...p.query
701
+ ...f.query
705
702
  }
706
703
  };
707
- s && h !== c && (f = {
708
- ...f,
709
- id: h,
710
- name: w(o, h)
704
+ s && F !== c && (p = {
705
+ ...p,
706
+ id: F,
707
+ name: D(o, F)
711
708
  });
712
- let k = h;
713
- f.query !== void 0 && (r !== q.NoAggregation ? (k = C, f.query.outStatistics = [
709
+ let k = F;
710
+ p.query !== void 0 && (r !== L.NoAggregation ? (k = C, p.query.outStatistics = [
714
711
  {
715
- ...p.query?.outStatistics?.[0] ?? {},
716
- onStatisticField: h,
712
+ ...f.query?.outStatistics?.[0] ?? {},
713
+ onStatisticField: F,
717
714
  outStatisticFieldName: C,
718
715
  statisticType: r
719
716
  }
720
- ]) : delete f.query.outStatistics), f.y = k;
717
+ ]) : delete p.query.outStatistics), p.y = k;
721
718
  const T = a.series.find(
722
- (S) => S.query?.outStatistics?.[0]?.onStatisticField === h && S.query.where === void 0 || S.query?.outStatistics === void 0 && (S.y === h || S.x === h)
719
+ (S) => S.query?.outStatistics?.[0]?.onStatisticField === F && S.query.where === void 0 || S.query?.outStatistics === void 0 && (S.y === F || S.x === F)
723
720
  );
724
721
  if (T !== void 0 && typeof T.y == "string" && T.y.trim() !== "") {
725
- (b(f) && b(T) || A(f) && A(T)) && W(f, T), a.colorMatch || (O(f) && O(T) ? f.fillSymbol = T.fillSymbol : (b(f) && b(T) || A(f) && A(T)) && (f.lineSymbol = T.lineSymbol, f.markerSymbol = T.markerSymbol), F = !0);
722
+ (b(p) && b(T) || A(p) && A(T)) && W(p, T), a.colorMatch || (O(p) && O(T) ? p.fillSymbol = T.fillSymbol : (b(p) && b(T) || A(p) && A(T)) && (p.lineSymbol = T.lineSymbol, p.markerSymbol = T.markerSymbol), h = !0);
726
723
  const S = $({
727
724
  config: a,
728
725
  xAxisField: e,
@@ -731,19 +728,19 @@ function Ae(t) {
731
728
  seriesIndex: u,
732
729
  commonStrings: n
733
730
  });
734
- f.id = T.id, T.id !== S.id && T.name !== S.name && (f.id = T.id, f.name = T.name), f.assignToSecondValueAxis = T.assignToSecondValueAxis, f.type === v.HeatSeries && T.type === v.HeatSeries && (f.y = T.y, f.heatRulesType = T.heatRulesType);
731
+ p.id = T.id, T.id !== S.id && T.name !== S.name && (p.id = T.id, p.name = T.name), p.assignToSecondValueAxis = T.assignToSecondValueAxis, p.type === v.HeatSeries && T.type === v.HeatSeries && (p.y = T.y, p.heatRulesType = T.heatRulesType);
735
732
  }
736
- m.push(f);
733
+ m.push(p);
737
734
  }
738
735
  const l = m.filter((u) => O(u)), g = m.filter(
739
736
  (u) => b(u) || A(u)
740
737
  ), d = a.series.filter((u) => O(u)), y = a.series.filter(
741
738
  (u) => b(u) || A(u)
742
739
  );
743
- return d.length === 1 && l.length === 1 && !a.colorMatch && (O(d[0]) && O(l[0]) && (l[0].fillSymbol = d[0].fillSymbol), F = !0), y.length === 1 && g.length === 1 && ((b(y[0]) && b(g[0]) || A(y[0]) && A(g[0])) && W(g[0], y[0]), a.colorMatch || ((b(y[0]) && b(g[0]) || A(y[0]) && A(g[0])) && (g[0].lineSymbol = y[0].lineSymbol, g[0].markerSymbol = y[0].markerSymbol), F = !0)), a.colorMatch = !F, m;
740
+ return d.length === 1 && l.length === 1 && !a.colorMatch && (O(d[0]) && O(l[0]) && (l[0].fillSymbol = d[0].fillSymbol), h = !0), y.length === 1 && g.length === 1 && ((b(y[0]) && b(g[0]) || A(y[0]) && A(g[0])) && W(g[0], y[0]), a.colorMatch || ((b(y[0]) && b(g[0]) || A(y[0]) && A(g[0])) && (g[0].lineSymbol = y[0].lineSymbol, g[0].markerSymbol = y[0].markerSymbol), h = !0)), a.colorMatch = !h, m;
744
741
  }
745
- function ai(t) {
746
- const { aggregationType: e, config: s, layerInfo: r, commonStrings: a } = t, { layerFieldsInfo: i, layer: n } = r, o = M(s), c = G(s), m = _(s, r, a), F = ve(s, r, a);
742
+ function ri(t) {
743
+ const { aggregationType: e, config: s, layerInfo: r, commonStrings: a } = t, { layerFieldsInfo: i, layer: n } = r, o = M(s), c = _(s), m = G(s, r, a), h = Ie(s, r, a);
747
744
  if (s.series.forEach((l, g) => {
748
745
  const d = Q({
749
746
  config: s,
@@ -755,7 +752,7 @@ function ai(t) {
755
752
  numericFieldIndex: g,
756
753
  fieldList: i
757
754
  }).name;
758
- e !== q.NoAggregation ? (l.y = d, l.query = {
755
+ e !== L.NoAggregation ? (l.y = d, l.query = {
759
756
  ...l.query,
760
757
  outStatistics: [
761
758
  {
@@ -765,8 +762,8 @@ function ai(t) {
765
762
  onStatisticField: l.query?.outStatistics?.[0]?.onStatisticField ?? c[g]
766
763
  }
767
764
  ]
768
- }) : (delete l.query?.outStatistics, l.y = c[g]);
769
- }), m && s.title && (s.title.content.text = j(s, r, a)), F && s.series[0].type !== v.HeatSeries) {
765
+ }) : (delete l.query?.outStatistics, l.y = c[g], !oe({ chartConfig: s }) && l.type === v.LineSeries && l.temporalBinning !== void 0 && delete l.temporalBinning);
766
+ }), m && s.title && (s.title.content.text = H(s, r, a)), h && s.series[0].type !== v.HeatSeries) {
770
767
  const l = re({
771
768
  config: s,
772
769
  layerInfo: r,
@@ -777,7 +774,7 @@ function ai(t) {
777
774
  E(s, 1, l);
778
775
  }
779
776
  }
780
- function wt(t) {
777
+ function Pt(t) {
781
778
  const {
782
779
  splitByField: e,
783
780
  xAxisField: s,
@@ -787,10 +784,10 @@ function wt(t) {
787
784
  layerInfo: n,
788
785
  commonStrings: o,
789
786
  splitByFieldInfos: c
790
- } = t, { layer: m, layerFieldsInfo: F } = n, { categoriesArray: l, splitByFieldType: g } = c, d = r.length === 0 ? X(m).idField : r[0];
787
+ } = t, { layer: m, layerFieldsInfo: h } = n, { categoriesArray: l, splitByFieldType: g } = c, d = r.length === 0 ? X(m).idField : r[0];
791
788
  let y = [], u = !1;
792
789
  if (l.length === 0) {
793
- y = Ae({
790
+ y = ve({
794
791
  xAxisField: s,
795
792
  numericFields: r,
796
793
  aggregationType: a,
@@ -798,41 +795,41 @@ function wt(t) {
798
795
  layerInfo: n,
799
796
  commonStrings: o
800
797
  });
801
- for (const p of y)
802
- p.query && (p.query.where = `${e}=''`);
798
+ for (const f of y)
799
+ f.query && (f.query.where = `${e}=''`);
803
800
  } else
804
- for (let p = 0; p < l.length; p += 1) {
805
- const B = l[p], C = Q({
801
+ for (let f = 0; f < l.length; f += 1) {
802
+ const x = l[f], C = Q({
806
803
  config: i,
807
804
  xAxisField: s,
808
805
  numericFields: r,
809
806
  aggregationType: a,
810
807
  layer: n.layer,
811
- seriesIndex: p,
808
+ seriesIndex: f,
812
809
  splitByField: e,
813
- fieldList: F
814
- }).name, h = $({
810
+ fieldList: h
811
+ }).name, F = $({
815
812
  config: i,
816
813
  xAxisField: s,
817
814
  aggregationType: a,
818
815
  layerInfo: n,
819
- seriesIndex: p,
816
+ seriesIndex: f,
820
817
  commonStrings: o
821
- }), f = he({
818
+ }), p = Te({
822
819
  queryObject: n.layer,
823
820
  fieldName: e,
824
- fieldValue: B ?? ""
825
- }), k = `${B}`, S = {
826
- ...h,
821
+ fieldValue: x ?? ""
822
+ }), k = `${x}`, S = {
823
+ ...F,
827
824
  id: k,
828
- name: f ?? k,
825
+ name: p ?? k,
829
826
  y: C,
830
827
  query: {
831
- ...h.query,
832
- where: `${e}=${g === ht.String && B !== null ? `'${B}'` : B}`,
833
- outStatistics: a !== q.NoAggregation ? [
828
+ ...F.query,
829
+ where: `${e}=${g === nt.String && x !== null ? `'${x}'` : x}`,
830
+ outStatistics: a !== L.NoAggregation ? [
834
831
  {
835
- ...h.query?.outStatistics?.[0] ?? {},
832
+ ...F.query?.outStatistics?.[0] ?? {},
836
833
  onStatisticField: d,
837
834
  outStatisticFieldName: C,
838
835
  statisticType: a
@@ -840,15 +837,15 @@ function wt(t) {
840
837
  ] : void 0
841
838
  }
842
839
  };
843
- a === q.NoAggregation && (S.query !== void 0 && (delete S.query.outStatistics, delete S.query.groupByFieldsForStatistics), S.y = d);
840
+ a === L.NoAggregation && (S.query !== void 0 && (delete S.query.outStatistics, delete S.query.groupByFieldsForStatistics), S.y = d);
844
841
  const I = i.series.find(
845
- (L) => String(Ce(L)).trim().replace(/'/gu, "") === k
842
+ (q) => String(be(q)).trim().replace(/'/gu, "") === k
846
843
  );
847
- I !== void 0 && ((b(S) && b(I) || A(S) && A(I)) && W(S, I), i.colorMatch || (O(S) && O(I) ? S.fillSymbol = I.fillSymbol : (b(S) && b(I) || A(S) && A(I)) && (S.lineSymbol = I.lineSymbol, S.markerSymbol = I.markerSymbol), u = !0), S.id = I.id, S.name = I.name, S.assignToSecondValueAxis = I.assignToSecondValueAxis), S.query && (S.query.fetchNullValues = i.series.some((L) => L.query?.fetchNullValues)), y.push(S);
844
+ I !== void 0 && ((b(S) && b(I) || A(S) && A(I)) && W(S, I), i.colorMatch || (O(S) && O(I) ? S.fillSymbol = I.fillSymbol : (b(S) && b(I) || A(S) && A(I)) && (S.lineSymbol = I.lineSymbol, S.markerSymbol = I.markerSymbol), u = !0), S.id = I.id, S.name = I.name, S.assignToSecondValueAxis = I.assignToSecondValueAxis), S.query && (S.query.fetchNullValues = i.series.some((q) => q.query?.fetchNullValues)), y.push(S);
848
845
  }
849
846
  return i.colorMatch = !u, y;
850
847
  }
851
- const ri = (t) => {
848
+ const li = (t) => {
852
849
  const {
853
850
  xAxisFieldName: e,
854
851
  splitByField: s,
@@ -858,34 +855,34 @@ const ri = (t) => {
858
855
  layerInfo: n,
859
856
  commonStrings: o,
860
857
  splitByFieldInfos: c
861
- } = t, { layerFieldsInfo: m } = n ?? {}, F = ft(i), l = M(i), g = m.find((x) => x.name === l), d = i.series[0].query?.fetchNullValues, y = "nullCategory" in i.series?.[0] ? i.series[0].nullCategory : void 0, u = i.series[0]?.query === void 0, p = m.find((x) => x.name === e), B = _(i, n, o), C = ve(i, n, o), h = Pt(i, n);
862
- let f = Fe(i);
863
- const k = i.series.some((x) => O(x)), T = lt(i.series), S = nt(i.series), I = ne(i), L = {};
864
- I && (L.classBreaksRules = i.series[0]?.classBreaksRules, L.xTemporalBinning = i.series[0]?.xTemporalBinning, L.yTemporalBinning = i.series[0]?.yTemporalBinning, L.emptyCells = i.series[0]?.emptyCells, L.nullPolicy = i.nullPolicy);
858
+ } = t, { layerFieldsInfo: m } = n ?? {}, h = Ft(i), l = M(i), g = m.find((B) => B.name === l), d = i.series[0].query?.fetchNullValues, y = "nullCategory" in i.series?.[0] ? i.series[0].nullCategory : void 0, u = i.series[0]?.query === void 0, f = m.find((B) => B.name === e), x = G(i, n, o), C = Ie(i, n, o), F = Et(i, n);
859
+ let p = Fe(i);
860
+ const k = i.series.some((B) => O(B)), T = pt(i.series), S = ft(i.series), I = ne(i), q = {};
861
+ I && (q.classBreaksRules = i.series[0]?.classBreaksRules, q.xTemporalBinning = i.series[0]?.xTemporalBinning, q.yTemporalBinning = i.series[0]?.yTemporalBinning, q.emptyCells = i.series[0]?.emptyCells, q.nullPolicy = i.nullPolicy);
865
862
  let Z = !1;
866
- if (et(p) ? f = fe() : !ye(g) && ye(p) ? f = Se() : !H(g) && H(p) ? (f = Se(), Z = !0) : H(g) && !H(p) && (k ? f = fe() : f = pt(), Z = !0), f !== void 0 && Ve(i, o, f), F === 0 && (i.series = [
863
+ if (tt(f) ? p = fe() : !me(g) && me(f) ? p = Se() : !U(g) && U(f) ? (p = Se(), Z = !0) : U(g) && !U(f) && (k ? p = fe() : p = gt(), Z = !0), p !== void 0 && Ne(i, o, p), h === 0 && (i.series = [
867
864
  $({ config: i, xAxisField: e, aggregationType: a, layerInfo: n, commonStrings: o })
868
- ]), i.series.forEach((x) => {
869
- x.x = e, x.query !== void 0 && (x.query.groupByFieldsForStatistics = [e]);
870
- }), s === "" || r.length > 1 ? Te({
865
+ ]), i.series.forEach((B) => {
866
+ B.x = e, B.query !== void 0 && (B.query.groupByFieldsForStatistics = [e]);
867
+ }), s === "" || r.length > 1 ? xe({
871
868
  fieldName: e,
872
869
  numericFields: r,
873
870
  fieldList: m
874
- }) ? i.series = Dt({
871
+ }) ? i.series = wt({
875
872
  config: i,
876
873
  layerInfo: n,
877
874
  xAxisField: e,
878
875
  numericFields: r,
879
876
  aggregationType: a,
880
877
  commonStrings: o
881
- }) : i.series = Ae({
878
+ }) : i.series = ve({
882
879
  config: i,
883
880
  layerInfo: n,
884
881
  xAxisField: e,
885
882
  numericFields: r,
886
883
  aggregationType: a,
887
884
  commonStrings: o
888
- }) : c && (i.series = wt({
885
+ }) : c && (i.series = Pt({
889
886
  config: i,
890
887
  layerInfo: n,
891
888
  splitByField: s,
@@ -894,56 +891,56 @@ const ri = (t) => {
894
891
  aggregationType: a,
895
892
  commonStrings: o,
896
893
  splitByFieldInfos: c
897
- })), h && i.series[0].type !== v.HeatSeries) {
898
- const x = w(m, e);
899
- E(i, 0, x);
894
+ })), F && i.series[0].type !== v.HeatSeries) {
895
+ const B = D(m, e);
896
+ E(i, 0, B);
900
897
  }
901
898
  if (C && i.series[0].type !== v.HeatSeries) {
902
- const x = re({
899
+ const B = re({
903
900
  config: i,
904
901
  layerInfo: n,
905
902
  commonStrings: o,
906
903
  numericFields: r,
907
904
  aggregationType: a
908
905
  });
909
- E(i, 1, x);
906
+ E(i, 1, B);
910
907
  }
911
- if (B && i.title && (i.title.content.text = j(i, n, o)), N({ config: i, value: null, axisIndex: 1, isMax: !1 }), N({ config: i, value: null, axisIndex: 1, isMax: !0 }), Ot({ numericFields: r, aggregationType: a, config: i, layerInfo: n }), (T || S) && (N({ config: i, value: null, axisIndex: 0, isMax: !1 }), N({ config: i, value: null, axisIndex: 0, isMax: !0 }), Z)) {
912
- const x = f?.type === v.DateAxisFormat ? K.Null : K.Interpolate;
913
- Bt(x, i);
908
+ if (x && i.title && (i.title.content.text = H(i, n, o)), N({ config: i, value: null, axisIndex: 1, isMax: !1 }), N({ config: i, value: null, axisIndex: 1, isMax: !0 }), Dt({ numericFields: r, aggregationType: a, config: i, layerInfo: n }), (T || S) && (N({ config: i, value: null, axisIndex: 0, isMax: !1 }), N({ config: i, value: null, axisIndex: 0, isMax: !0 }), Z && a !== L.NoAggregation)) {
909
+ const B = p?.type === v.DateAxisFormat ? j.Null : j.Interpolate;
910
+ Ct(B, i);
914
911
  }
915
- I && (i.series[0].classBreaksRules = L.classBreaksRules, i.series[0].xTemporalBinning = L.xTemporalBinning, i.series[0].yTemporalBinning = L.yTemporalBinning, i.series[0].emptyCells = L.emptyCells, i.nullPolicy = L.nullPolicy), u ? i.series.forEach((x) => {
916
- delete x.query;
917
- }) : d && i.series.forEach((x) => {
918
- x.query && (x.query.fetchNullValues = d);
919
- }), y && i.series.forEach((x) => {
920
- (x.type === v.BarSeries || x.type === v.LineSeries || x.type === v.RadarSeries) && (x.nullCategory = y);
912
+ I && (i.series[0].classBreaksRules = q.classBreaksRules, i.series[0].xTemporalBinning = q.xTemporalBinning, i.series[0].yTemporalBinning = q.yTemporalBinning, i.series[0].emptyCells = q.emptyCells, i.nullPolicy = q.nullPolicy), u ? i.series.forEach((B) => {
913
+ delete B.query;
914
+ }) : d && i.series.forEach((B) => {
915
+ B.query && (B.query.fetchNullValues = d);
916
+ }), y && i.series.forEach((B) => {
917
+ (B.type === v.BarSeries || B.type === v.LineSeries || B.type === v.RadarSeries) && (B.nullCategory = y);
921
918
  });
922
919
  }, W = (t, e) => {
923
920
  t.markerVisible = e.markerVisible, t.lineSmoothed = e.lineSmoothed, t.showArea = e.showArea, t.areaColor = e.areaColor, t.stackNegativeValuesToBaseline = e.stackNegativeValuesToBaseline, e.lineSymbol && (t.lineSymbol = { ...e.lineSymbol, color: t.lineSymbol?.color }), e.markerSymbol && (t.markerSymbol = {
924
921
  ...e.markerSymbol,
925
922
  color: t.markerSymbol?.color
926
923
  });
927
- }, li = (t) => {
928
- const { config: e, seriesIndex: s, layerInfo: r, commonStrings: a } = t, i = e.series?.[s], n = ue(e);
924
+ }, ni = (t) => {
925
+ const { config: e, seriesIndex: s, layerInfo: r, commonStrings: a } = t, i = e.series?.[s], n = ce(e);
929
926
  let o;
930
- if (Y(e.series) === D.BarAndLineFromFields)
927
+ if (K(e.series) === w.BarAndLineFromFields)
931
928
  o = a.axisLabels.values;
932
- else if (Ie(n)) {
929
+ else if (Le(n)) {
933
930
  const m = i.query?.outStatistics?.[0]?.onStatisticField;
934
- m !== void 0 && m !== X(r.layer).idField && (o = w(r.layerFieldsInfo, m));
931
+ m !== void 0 && m !== X(r.layer).idField && (o = D(r.layerFieldsInfo, m));
935
932
  } else {
936
- const m = String(Ce(i)).trim().replace(/'/gu, "");
937
- o = he({
933
+ const m = String(be(i)).trim().replace(/'/gu, "");
934
+ o = Te({
938
935
  queryObject: r.layer,
939
936
  fieldName: n,
940
937
  fieldValue: m ?? ""
941
938
  }) ?? m;
942
939
  }
943
940
  return o ?? i.id;
944
- }, ni = (t, e) => {
941
+ }, oi = (t, e) => {
945
942
  if (ne(e))
946
- Rt(t, e);
943
+ kt(t, e);
947
944
  else {
948
945
  e.orderOptions ??= {};
949
946
  const s = e.orderOptions?.data?.orderType;
@@ -952,122 +949,122 @@ const ri = (t) => {
952
949
  orderBy: [...t]
953
950
  });
954
951
  }
955
- }, oi = async (t) => {
956
- const { config: e, layerInfo: s, errorStrings: r } = t, a = M(e), i = Fe(e)?.type, n = G(e), o = Y(e.series);
952
+ }, ui = async (t) => {
953
+ const { config: e, layerInfo: s, errorStrings: r } = t, a = M(e), i = Fe(e)?.type, n = _(e), o = K(e.series);
957
954
  let c = [];
958
- return i === v.CategoryAxisFormat && (o === D.BarAndLineFromFields || a === ee ? c = n.map((m) => w(s?.layerFieldsInfo, m)) : a.trim() !== "" && a !== ee && s !== void 0 && (c = await qe({
955
+ return i === v.CategoryAxisFormat && (o === w.BarAndLineFromFields || a === ee ? c = n.map((m) => D(s?.layerFieldsInfo, m)) : a.trim() !== "" && a !== ee && s !== void 0 && (c = await Ve({
959
956
  layerInfo: s,
960
957
  config: e,
961
958
  category: a,
962
959
  errorStrings: r
963
960
  }))), c;
964
961
  };
965
- function _(t, e, s) {
966
- const r = j(t, e, s), a = St(t), i = z(t);
962
+ function G(t, e, s) {
963
+ const r = H(t, e, s), a = Tt(t), i = z(t);
967
964
  return r === a || i;
968
965
  }
969
- function ve(t, e, s) {
966
+ function Ie(t, e, s) {
970
967
  const r = re({
971
968
  config: t,
972
969
  layerInfo: e,
973
970
  commonStrings: s,
974
- numericFields: G(t),
975
- aggregationType: be(t)
976
- }), a = oe(1, t), i = z(t);
971
+ numericFields: _(t),
972
+ aggregationType: Ae(t)
973
+ }), a = ue(1, t), i = z(t);
977
974
  return r === a || i;
978
975
  }
979
- function Pt(t, e) {
980
- const s = w(e.layerFieldsInfo, M(t)), r = oe(0, t), a = z(t);
976
+ function Et(t, e) {
977
+ const s = D(e.layerFieldsInfo, M(t)), r = ue(0, t), a = z(t);
981
978
  return s === r || a;
982
979
  }
983
- function ui(t) {
980
+ function ci(t) {
984
981
  return R(t.series[0]) ? t.series[0].binTemporalData ?? !0 : !1;
985
982
  }
986
- function ci(t, e) {
987
- e?.series.forEach((s) => {
983
+ function di(t, e) {
984
+ oe({ chartConfig: e }) && e?.series.forEach((s) => {
988
985
  (s?.type === v.BarSeries || s?.type === v.LineSeries) && (s.binTemporalData = t, t ? s.temporalBinning = {
989
986
  unit: te.Day,
990
987
  size: 0,
991
- timeAggregationType: at.Start,
988
+ timeAggregationType: rt.Start,
992
989
  trimIncompleteTimeInterval: !0,
993
- nullPolicy: K.Null
990
+ nullPolicy: j.Null
994
991
  } : delete s.temporalBinning);
995
992
  });
996
993
  }
997
994
  export {
998
- rs as $,
999
- qs as A,
1000
- hs as B,
1001
- Fs as C,
1002
- xs as D,
1003
- Ts as E,
1004
- ks as F,
1005
- Os as G,
1006
- Ds as H,
1007
- ws as I,
1008
- Rs as J,
1009
- Ns as K,
1010
- Ps as L,
1011
- kt as M,
1012
- Es as N,
1013
- Ms as O,
1014
- ie as P,
1015
- $s as Q,
1016
- Ws as R,
1017
- Ys as S,
1018
- Xs as T,
1019
- Js as U,
1020
- Zs as V,
1021
- js as W,
1022
- Hs as X,
1023
- ts as Y,
1024
- xt as Z,
1025
- Tt as _,
1026
- G as a,
1027
- ss as a0,
1028
- ls as a1,
1029
- is as a2,
1030
- ns as a3,
1031
- as as a4,
1032
- Bt as a5,
1033
- os as a6,
1034
- ai as a7,
1035
- oi as a8,
1036
- ni as a9,
1037
- ri as aa,
1038
- ui as ab,
1039
- ci as ac,
1040
- gs as ad,
1041
- ms as ae,
1042
- ys as af,
1043
- ds as ag,
1044
- us as ah,
1045
- cs as ai,
1046
- Ct as aj,
1047
- ps as ak,
1048
- ue as b,
1049
- li as c,
1050
- j as d,
1051
- Nt as e,
1052
- Ks as f,
1053
- be as g,
1054
- Us as h,
1055
- bs as i,
1056
- Cs as j,
1057
- vs as k,
1058
- As as l,
1059
- Qs as m,
1060
- zs as n,
1061
- Gs as o,
1062
- _s as p,
1063
- ei as q,
1064
- ti as r,
1065
- Bs as s,
1066
- si as t,
1067
- ii as u,
1068
- fs as v,
1069
- Ss as w,
1070
- Ls as x,
1071
- Is as y,
1072
- Vs as z
995
+ Ts as $,
996
+ oi as A,
997
+ li as B,
998
+ ci as C,
999
+ di as D,
1000
+ H as E,
1001
+ Rt as F,
1002
+ Cs as G,
1003
+ Ks as H,
1004
+ Qs as I,
1005
+ As as J,
1006
+ bs as K,
1007
+ Is as L,
1008
+ vs as M,
1009
+ zs as N,
1010
+ _s as O,
1011
+ Gs as P,
1012
+ Zs as Q,
1013
+ ti as R,
1014
+ si as S,
1015
+ ii as T,
1016
+ ai as U,
1017
+ Ss as V,
1018
+ hs as W,
1019
+ qs as X,
1020
+ Ls as Y,
1021
+ Ns as Z,
1022
+ Vs as _,
1023
+ ms as a,
1024
+ Fs as a0,
1025
+ Bs as a1,
1026
+ xs as a2,
1027
+ Os as a3,
1028
+ Ds as a4,
1029
+ ws as a5,
1030
+ Ps as a6,
1031
+ ks as a7,
1032
+ Rs as a8,
1033
+ Es as a9,
1034
+ Ot as aa,
1035
+ Ms as ab,
1036
+ Ys as ac,
1037
+ $s as ad,
1038
+ Ws as ae,
1039
+ Xs as af,
1040
+ Hs as ag,
1041
+ ei as ah,
1042
+ Js as ai,
1043
+ Us as aj,
1044
+ js as ak,
1045
+ cs as b,
1046
+ ds as c,
1047
+ _ as d,
1048
+ ce as e,
1049
+ fs as f,
1050
+ Ae as g,
1051
+ ni as h,
1052
+ gs as i,
1053
+ ss as j,
1054
+ xt as k,
1055
+ ls as l,
1056
+ is as m,
1057
+ ns as n,
1058
+ as as o,
1059
+ ps as p,
1060
+ os as q,
1061
+ bt as r,
1062
+ Bt as s,
1063
+ rs as t,
1064
+ ys as u,
1065
+ Ct as v,
1066
+ us as w,
1067
+ ri as x,
1068
+ ie as y,
1069
+ ui as z
1073
1070
  };