@arcgis/charts-components 4.34.0-next.160 → 4.34.0-next.162

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 (375) hide show
  1. package/dist/cdn/{QKWTBSP5.js → 2AEU3NXD.js} +2 -2
  2. package/dist/cdn/{RYNWQAUV.js → 2EGAWTEM.js} +2 -2
  3. package/dist/cdn/{PVHDR4FL.js → 2I7PVDUS.js} +2 -2
  4. package/dist/cdn/{JKNB73RH.js → 2IS4NCU6.js} +2 -2
  5. package/dist/cdn/{W7E6BK2W.js → 2SLVCU6V.js} +2 -2
  6. package/dist/cdn/{GJSD4PKZ.js → 2XE2AQYT.js} +2 -2
  7. package/dist/cdn/{5B3A7U26.js → 323COVFU.js} +2 -2
  8. package/dist/cdn/{6KBGTWVK.js → 34UHS5UP.js} +2 -2
  9. package/dist/cdn/{CXMGIQJQ.js → 3FQXF452.js} +2 -2
  10. package/dist/cdn/{LBIZMI7N.js → 3GTU7IKT.js} +2 -2
  11. package/dist/cdn/{C4KC6RWP.js → 3HTAU4DK.js} +2 -2
  12. package/dist/cdn/{LCW4BRT5.js → 455UNLML.js} +2 -2
  13. package/dist/cdn/{IUFADMRJ.js → 46BUN3KO.js} +2 -2
  14. package/dist/cdn/{D37XDESW.js → 4AZR3HGT.js} +2 -2
  15. package/dist/cdn/{J3RBLBY6.js → 4BL4QMBH.js} +2 -2
  16. package/dist/cdn/{VUDADXRU.js → 4CYTRYE3.js} +2 -2
  17. package/dist/cdn/{5RCDXHDG.js → 4GELSQQA.js} +2 -2
  18. package/dist/cdn/{6J7D54B6.js → 4K3AE2TQ.js} +2 -2
  19. package/dist/cdn/{TC3KJ5JM.js → 4ZQ2PX7I.js} +2 -2
  20. package/dist/cdn/{EXUYNO2K.js → 56K3DQ7R.js} +2 -2
  21. package/dist/cdn/{SWILRFWF.js → 576FW7YW.js} +2 -2
  22. package/dist/cdn/{A3422VM3.js → 5EGDXMBT.js} +2 -2
  23. package/dist/cdn/{F2XIPODE.js → 5NOLJ5VJ.js} +2 -2
  24. package/dist/cdn/{CCH42UGM.js → 5TXOCYMW.js} +2 -2
  25. package/dist/cdn/{6R2NMJPV.js → 5UGAQWOY.js} +1 -1
  26. package/dist/cdn/{VTSPY4SZ.js → 6MSH4IRN.js} +2 -2
  27. package/dist/cdn/{MS26MQCR.js → 6Q3HJW36.js} +2 -2
  28. package/dist/cdn/{24XBC7ZF.js → 6V2XOZGP.js} +2 -2
  29. package/dist/cdn/{Q4NVO2CJ.js → 6YEHB72D.js} +2 -2
  30. package/dist/cdn/{2LHVSJDX.js → 6YHFVU5O.js} +1 -1
  31. package/dist/cdn/{KG3DDVWK.js → 6ZAC7EBW.js} +2 -2
  32. package/dist/cdn/{FBZPUHHV.js → 7FCNTHYQ.js} +2 -2
  33. package/dist/cdn/{3OT6GQCC.js → 7GRHHQFY.js} +2 -2
  34. package/dist/cdn/{W5LVBUVK.js → 7IDFOHQU.js} +2 -2
  35. package/dist/cdn/{UOXBMQWF.js → AIUTCUQU.js} +2 -2
  36. package/dist/cdn/{ASOC2CYN.js → AJ2XDFWV.js} +2 -2
  37. package/dist/cdn/{2P7EGEQQ.js → AL6CJGJS.js} +2 -2
  38. package/dist/cdn/{PTDD6LGQ.js → ALGDNEED.js} +2 -2
  39. package/dist/cdn/{R5H32ROB.js → ARTE3ZTA.js} +2 -2
  40. package/dist/cdn/{KNN7JJB5.js → BAXHCF4Z.js} +2 -2
  41. package/dist/cdn/{HNUXC4WA.js → BC4BOK4D.js} +2 -2
  42. package/dist/cdn/{W7QU4SFA.js → BEYKBKV7.js} +2 -2
  43. package/dist/cdn/{SM5YCNMH.js → BHEGHMVH.js} +1 -1
  44. package/dist/cdn/{Z3LUP7UQ.js → BIKAP6I5.js} +2 -2
  45. package/dist/cdn/{OJF2LV5Q.js → BMQDW6SM.js} +2 -2
  46. package/dist/cdn/{RTIXCAVR.js → BO5HAYSG.js} +2 -2
  47. package/dist/cdn/{WY2OV2J2.js → BOEGSWOJ.js} +2 -2
  48. package/dist/cdn/{B667IHUO.js → CDEZNIKG.js} +2 -2
  49. package/dist/cdn/{MKSVAHBF.js → CF5RMAZZ.js} +2 -2
  50. package/dist/cdn/{TMVW32TU.js → CHZYONBK.js} +1 -1
  51. package/dist/cdn/{U5SWQ4UA.js → CJIWABHA.js} +2 -2
  52. package/dist/cdn/{EAQIGSTJ.js → CMXG6JI5.js} +2 -2
  53. package/dist/cdn/CZ6YU3NV.js +4 -0
  54. package/dist/cdn/{YKLI6WST.js → CZTIEM4D.js} +2 -2
  55. package/dist/cdn/{OWTR7NSN.js → D3K4XOBP.js} +2 -2
  56. package/dist/cdn/{FRVRZGPW.js → D6GOIHIY.js} +1 -1
  57. package/dist/cdn/{45HPYET2.js → D7PNMG3L.js} +2 -2
  58. package/dist/cdn/{HBUG3F2K.js → DALHL7AV.js} +2 -2
  59. package/dist/cdn/{O2SHLMPN.js → DD7DTTV4.js} +2 -2
  60. package/dist/cdn/{XZ5WWF7Y.js → DMMU7W2M.js} +2 -2
  61. package/dist/cdn/{6ODBLT4Q.js → DTETJK63.js} +2 -2
  62. package/dist/cdn/{3EBLWW7V.js → DVSJUKPD.js} +2 -2
  63. package/dist/cdn/{AFDHXWNX.js → E65KHNXD.js} +2 -2
  64. package/dist/cdn/{V2YQB62I.js → EBGEGUDI.js} +2 -2
  65. package/dist/cdn/{QPPUTYR6.js → EHTJZE6A.js} +2 -2
  66. package/dist/cdn/{BENW7BCP.js → EKJE56I2.js} +2 -2
  67. package/dist/cdn/{X7QGJH24.js → EXHLXJV6.js} +2 -2
  68. package/dist/cdn/{DNE7USH4.js → FAFXFDOM.js} +2 -2
  69. package/dist/cdn/{QYFGULNC.js → FOKCXFWS.js} +2 -2
  70. package/dist/cdn/{2ELMSDWI.js → FOLLC3VZ.js} +2 -2
  71. package/dist/cdn/{DVNJIV2P.js → FYGCQ4DR.js} +2 -2
  72. package/dist/cdn/{2G5HADLO.js → FYIRS2QA.js} +2 -2
  73. package/dist/cdn/{OTWWMARA.js → G7BXBB4Y.js} +2 -2
  74. package/dist/cdn/{UNUES3VG.js → GBGWQQPD.js} +2 -2
  75. package/dist/cdn/GJ73ZTWS.js +4 -0
  76. package/dist/cdn/{SQHRUVT5.js → GK3FXO46.js} +2 -2
  77. package/dist/cdn/{7GEHE2PO.js → GKSA3OYK.js} +2 -2
  78. package/dist/cdn/{G7OFI5Q2.js → H6WZP6YY.js} +2 -2
  79. package/dist/cdn/{WUI3IDOF.js → H7ERPOYO.js} +2 -2
  80. package/dist/cdn/{SNFGWD5N.js → HGKZCE3T.js} +2 -2
  81. package/dist/cdn/{W2447IEP.js → HS7FTNEN.js} +2 -2
  82. package/dist/cdn/{NGQKGOIL.js → HXAFQYBZ.js} +2 -2
  83. package/dist/cdn/{WOURNEMN.js → I2IK25B2.js} +2 -2
  84. package/dist/cdn/{LEYC5KTG.js → I3G7NAWF.js} +2 -2
  85. package/dist/cdn/{DLG2BRF3.js → I6B32BOD.js} +2 -2
  86. package/dist/cdn/{ELZXLXO5.js → IAPKZK6Y.js} +2 -2
  87. package/dist/cdn/{H33NZSEC.js → IC7G5XHY.js} +2 -2
  88. package/dist/cdn/{KN2U6URI.js → IGXKUJJV.js} +2 -2
  89. package/dist/cdn/{WDXDPW3K.js → IP4DJMRN.js} +2 -2
  90. package/dist/cdn/{2SX6EDVF.js → IR25ZAJS.js} +2 -2
  91. package/dist/cdn/{FD3LUXY5.js → ISB4KOR3.js} +2 -2
  92. package/dist/cdn/{PMG52S4K.js → IZ5WQFKS.js} +2 -2
  93. package/dist/cdn/{PPWICDAX.js → J3FFF6V6.js} +2 -2
  94. package/dist/cdn/{PWXCYICW.js → JK7MMLPW.js} +2 -2
  95. package/dist/cdn/{JIVJDHNC.js → JN3Q3GY6.js} +2 -2
  96. package/dist/cdn/{SRLLFS2F.js → JNL2HE4P.js} +2 -2
  97. package/dist/cdn/{Y3T5JX3Y.js → JUPMM5HR.js} +2 -2
  98. package/dist/cdn/{JWUEG53L.js → K6MZFCWY.js} +2 -2
  99. package/dist/cdn/{Y2GFYUDL.js → KCD6IGY4.js} +2 -2
  100. package/dist/cdn/{3QANHSAW.js → KD5UH2PF.js} +2 -2
  101. package/dist/cdn/{R7Z52PWI.js → KDNW5X6I.js} +2 -2
  102. package/dist/cdn/{5SDGBUH4.js → KEMOFUC7.js} +2 -2
  103. package/dist/cdn/{6J5V7WWS.js → KJZV5JIJ.js} +2 -2
  104. package/dist/cdn/{SD7IJN57.js → KLGNJPKJ.js} +2 -2
  105. package/dist/cdn/{IHLDC2D7.js → KWI43WB5.js} +2 -2
  106. package/dist/cdn/{O47HTTQT.js → LE74RF6H.js} +2 -2
  107. package/dist/cdn/{KGZE3YCB.js → LICMCAN5.js} +2 -2
  108. package/dist/cdn/{74ZGFAJY.js → LJ5IVGZA.js} +1 -1
  109. package/dist/cdn/{7YRWYOPE.js → LNU2ND4V.js} +2 -2
  110. package/dist/cdn/{DHPWMLCE.js → LPLQVP4A.js} +2 -2
  111. package/dist/cdn/{O5JIZP5P.js → M55PBKL5.js} +2 -2
  112. package/dist/cdn/{VKBDACG3.js → ME2UULSR.js} +2 -2
  113. package/dist/cdn/{WABENOEY.js → MKEHD5EB.js} +2 -2
  114. package/dist/cdn/{S72XDW5B.js → MLDVFOCO.js} +2 -2
  115. package/dist/cdn/{OKR4H2JR.js → MNW5BXG5.js} +2 -2
  116. package/dist/cdn/{LSJDSVPI.js → MOSWA2ZI.js} +2 -2
  117. package/dist/cdn/{RD3KKRU6.js → MOWNEDUA.js} +2 -2
  118. package/dist/cdn/{6FPD2OO6.js → MXI34ILV.js} +2 -2
  119. package/dist/cdn/{DR62QFXB.js → MXYIZWC7.js} +2 -2
  120. package/dist/cdn/{FBAJWNS5.js → N44DI4Q7.js} +2 -2
  121. package/dist/cdn/{U5LPJ5GY.js → N5A4I64L.js} +2 -2
  122. package/dist/cdn/{E4ATVGXP.js → NFMN3NAZ.js} +2 -2
  123. package/dist/cdn/{AW5ZLWE4.js → NUA674IX.js} +2 -2
  124. package/dist/cdn/{QGHIIMYA.js → NUCHBGCW.js} +1 -1
  125. package/dist/cdn/{XDK3DFHU.js → OAO4DFPO.js} +2 -2
  126. package/dist/cdn/{KZ22DYVD.js → OB4WMK4Y.js} +2 -2
  127. package/dist/cdn/{UI7XSCAS.js → OFKD4M54.js} +2 -2
  128. package/dist/cdn/{DERAGGXU.js → OHLSHBU7.js} +2 -2
  129. package/dist/cdn/{JBS7AJV5.js → OLUZTTSN.js} +2 -2
  130. package/dist/cdn/{X4VLQXPR.js → OS4O3AUE.js} +2 -2
  131. package/dist/cdn/{D2GUGDVX.js → OVWU4JEX.js} +2 -2
  132. package/dist/cdn/{6NMZKBAO.js → PPQE7I5R.js} +1 -1
  133. package/dist/cdn/{UYMQACCO.js → PQNHY7W6.js} +2 -2
  134. package/dist/cdn/{O4QYJFSA.js → PZNL6HZQ.js} +2 -2
  135. package/dist/cdn/{E6N7EI63.js → QCY6IA7S.js} +2 -2
  136. package/dist/cdn/{MGCKTD5L.js → QMMNWVUB.js} +2 -2
  137. package/dist/cdn/{OUGIHRF4.js → QTQYXX4R.js} +2 -2
  138. package/dist/cdn/{LAMIFL65.js → QZWWWGYV.js} +2 -2
  139. package/dist/cdn/{R2YXTEZU.js → R5G7MNTE.js} +2 -2
  140. package/dist/cdn/{TLM2TV4E.js → RANWOOAF.js} +2 -2
  141. package/dist/cdn/{BH6LKGEH.js → SL7PZBKW.js} +2 -2
  142. package/dist/cdn/{2HYVZ2A4.js → SMI45WYC.js} +2 -2
  143. package/dist/cdn/{2AUBGMCH.js → SQC4TW26.js} +2 -2
  144. package/dist/cdn/{SVNAM43K.js → STQCADTW.js} +2 -2
  145. package/dist/cdn/{SDGWH2RH.js → SVLQ7J66.js} +2 -2
  146. package/dist/cdn/{EWI6HMGX.js → SW74JQLA.js} +2 -2
  147. package/dist/cdn/{KNQ75NFS.js → TVSIORSZ.js} +2 -2
  148. package/dist/cdn/{OTEQMMVW.js → U4UDY57C.js} +1 -1
  149. package/dist/cdn/{RDNHS5P5.js → U7VHHE74.js} +2 -2
  150. package/dist/cdn/{NKWDJI5A.js → URK64CSW.js} +2 -2
  151. package/dist/cdn/{JKULIUOF.js → UTLRAQC7.js} +1 -1
  152. package/dist/cdn/{NQCEYDLB.js → UYEIOLIR.js} +2 -2
  153. package/dist/cdn/{ANMZQLSG.js → V3UCCDVU.js} +2 -2
  154. package/dist/cdn/{JM2AJBTA.js → V53E37MV.js} +2 -2
  155. package/dist/cdn/{UD4OAXAN.js → VCYRWLGR.js} +2 -2
  156. package/dist/cdn/{E2GIMSFX.js → VFOTLD7V.js} +2 -2
  157. package/dist/cdn/{AJBURLKI.js → VG4KT4JF.js} +2 -2
  158. package/dist/cdn/{PVMCNGHH.js → VGA7GU4Y.js} +2 -2
  159. package/dist/cdn/{G4YR4TAK.js → VJSQCXSE.js} +2 -2
  160. package/dist/cdn/{Z444GUNQ.js → VLR5TEV6.js} +2 -2
  161. package/dist/cdn/{56CWKZHQ.js → VUSD4DWG.js} +2 -2
  162. package/dist/cdn/{TYZHOFHX.js → VX5TREFX.js} +2 -2
  163. package/dist/cdn/{4N7AGCLJ.js → VZ5ZVUMO.js} +2 -2
  164. package/dist/cdn/{TTGYVAN5.js → W26ZHYI2.js} +2 -2
  165. package/dist/cdn/{ID4MMDC6.js → W5RB5ATS.js} +2 -2
  166. package/dist/cdn/{VLXSGBA3.js → WUGG32VB.js} +2 -2
  167. package/dist/cdn/{BPPRRB6P.js → WYPD2Q4K.js} +2 -2
  168. package/dist/cdn/{72XRJW4V.js → X4PD2VNF.js} +2 -2
  169. package/dist/cdn/{ZIC5YHKY.js → XI6H4DMN.js} +2 -2
  170. package/dist/cdn/{CJBMT3E4.js → XIYEJENA.js} +2 -2
  171. package/dist/cdn/{TFUTQ73S.js → XRUDYMGX.js} +2 -2
  172. package/dist/cdn/{BGVOZTJ3.js → XUIB6BIH.js} +2 -2
  173. package/dist/cdn/{75LM5DLQ.js → XWZWAY4H.js} +2 -2
  174. package/dist/cdn/{A5LDPQGY.js → XXWOH4VU.js} +2 -2
  175. package/dist/cdn/{TZVFZPQA.js → YB7OG6IB.js} +19 -19
  176. package/dist/cdn/{4Y2RCUI3.js → YDZHKWBK.js} +2 -2
  177. package/dist/cdn/{WZ33WPJ6.js → YIZQSTHZ.js} +2 -2
  178. package/dist/cdn/{CJ3SLWVK.js → YN5PBB6V.js} +2 -2
  179. package/dist/cdn/{U4XO7ZWP.js → YSFFEHI4.js} +2 -2
  180. package/dist/cdn/{CZEXT2H3.js → YYFYGKFV.js} +2 -2
  181. package/dist/cdn/{IBJGJZUD.js → ZE6IBDDZ.js} +2 -2
  182. package/dist/cdn/{4BXHNA3Z.js → ZUOGEEZO.js} +2 -2
  183. package/dist/cdn/assets/charts-config-bar-chart-data/t9n/messages.ar.json +1 -1
  184. package/dist/cdn/assets/charts-config-bar-chart-data/t9n/messages.bg.json +1 -1
  185. package/dist/cdn/assets/charts-config-bar-chart-data/t9n/messages.bs.json +1 -1
  186. package/dist/cdn/assets/charts-config-bar-chart-data/t9n/messages.ca.json +1 -1
  187. package/dist/cdn/assets/charts-config-bar-chart-data/t9n/messages.cs.json +1 -1
  188. package/dist/cdn/assets/charts-config-bar-chart-data/t9n/messages.da.json +1 -1
  189. package/dist/cdn/assets/charts-config-bar-chart-data/t9n/messages.de.json +1 -1
  190. package/dist/cdn/assets/charts-config-bar-chart-data/t9n/messages.el.json +1 -1
  191. package/dist/cdn/assets/charts-config-bar-chart-data/t9n/messages.es.json +1 -1
  192. package/dist/cdn/assets/charts-config-bar-chart-data/t9n/messages.et.json +1 -1
  193. package/dist/cdn/assets/charts-config-bar-chart-data/t9n/messages.fi.json +1 -1
  194. package/dist/cdn/assets/charts-config-bar-chart-data/t9n/messages.fr.json +1 -1
  195. package/dist/cdn/assets/charts-config-bar-chart-data/t9n/messages.he.json +1 -1
  196. package/dist/cdn/assets/charts-config-bar-chart-data/t9n/messages.hr.json +1 -1
  197. package/dist/cdn/assets/charts-config-bar-chart-data/t9n/messages.hu.json +1 -1
  198. package/dist/cdn/assets/charts-config-bar-chart-data/t9n/messages.id.json +1 -1
  199. package/dist/cdn/assets/charts-config-bar-chart-data/t9n/messages.it.json +1 -1
  200. package/dist/cdn/assets/charts-config-bar-chart-data/t9n/messages.ja.json +1 -1
  201. package/dist/cdn/assets/charts-config-bar-chart-data/t9n/messages.ko.json +1 -1
  202. package/dist/cdn/assets/charts-config-bar-chart-data/t9n/messages.lt.json +1 -1
  203. package/dist/cdn/assets/charts-config-bar-chart-data/t9n/messages.lv.json +1 -1
  204. package/dist/cdn/assets/charts-config-bar-chart-data/t9n/messages.nl.json +1 -1
  205. package/dist/cdn/assets/charts-config-bar-chart-data/t9n/messages.no.json +1 -1
  206. package/dist/cdn/assets/charts-config-bar-chart-data/t9n/messages.pl.json +1 -1
  207. package/dist/cdn/assets/charts-config-bar-chart-data/t9n/messages.pt-BR.json +1 -1
  208. package/dist/cdn/assets/charts-config-bar-chart-data/t9n/messages.pt-PT.json +1 -1
  209. package/dist/cdn/assets/charts-config-bar-chart-data/t9n/messages.ro.json +1 -1
  210. package/dist/cdn/assets/charts-config-bar-chart-data/t9n/messages.ru.json +1 -1
  211. package/dist/cdn/assets/charts-config-bar-chart-data/t9n/messages.sk.json +1 -1
  212. package/dist/cdn/assets/charts-config-bar-chart-data/t9n/messages.sl.json +1 -1
  213. package/dist/cdn/assets/charts-config-bar-chart-data/t9n/messages.sr.json +1 -1
  214. package/dist/cdn/assets/charts-config-bar-chart-data/t9n/messages.sv.json +1 -1
  215. package/dist/cdn/assets/charts-config-bar-chart-data/t9n/messages.th.json +1 -1
  216. package/dist/cdn/assets/charts-config-bar-chart-data/t9n/messages.tr.json +1 -1
  217. package/dist/cdn/assets/charts-config-bar-chart-data/t9n/messages.uk.json +1 -1
  218. package/dist/cdn/assets/charts-config-bar-chart-data/t9n/messages.vi.json +1 -1
  219. package/dist/cdn/assets/charts-config-bar-chart-data/t9n/messages.zh-CN.json +1 -1
  220. package/dist/cdn/assets/charts-config-bar-chart-data/t9n/messages.zh-HK.json +1 -1
  221. package/dist/cdn/assets/charts-config-bar-chart-data/t9n/messages.zh-TW.json +1 -1
  222. package/dist/cdn/assets/charts-config-bar-chart-series/t9n/messages.ar.json +1 -1
  223. package/dist/cdn/assets/charts-config-bar-chart-series/t9n/messages.bg.json +1 -1
  224. package/dist/cdn/assets/charts-config-bar-chart-series/t9n/messages.bs.json +1 -1
  225. package/dist/cdn/assets/charts-config-bar-chart-series/t9n/messages.ca.json +1 -1
  226. package/dist/cdn/assets/charts-config-bar-chart-series/t9n/messages.cs.json +1 -1
  227. package/dist/cdn/assets/charts-config-bar-chart-series/t9n/messages.da.json +1 -1
  228. package/dist/cdn/assets/charts-config-bar-chart-series/t9n/messages.de.json +1 -1
  229. package/dist/cdn/assets/charts-config-bar-chart-series/t9n/messages.el.json +1 -1
  230. package/dist/cdn/assets/charts-config-bar-chart-series/t9n/messages.es.json +1 -1
  231. package/dist/cdn/assets/charts-config-bar-chart-series/t9n/messages.et.json +1 -1
  232. package/dist/cdn/assets/charts-config-bar-chart-series/t9n/messages.fi.json +1 -1
  233. package/dist/cdn/assets/charts-config-bar-chart-series/t9n/messages.fr.json +1 -1
  234. package/dist/cdn/assets/charts-config-bar-chart-series/t9n/messages.he.json +1 -1
  235. package/dist/cdn/assets/charts-config-bar-chart-series/t9n/messages.hr.json +1 -1
  236. package/dist/cdn/assets/charts-config-bar-chart-series/t9n/messages.hu.json +1 -1
  237. package/dist/cdn/assets/charts-config-bar-chart-series/t9n/messages.id.json +1 -1
  238. package/dist/cdn/assets/charts-config-bar-chart-series/t9n/messages.it.json +1 -1
  239. package/dist/cdn/assets/charts-config-bar-chart-series/t9n/messages.ja.json +1 -1
  240. package/dist/cdn/assets/charts-config-bar-chart-series/t9n/messages.ko.json +1 -1
  241. package/dist/cdn/assets/charts-config-bar-chart-series/t9n/messages.lt.json +1 -1
  242. package/dist/cdn/assets/charts-config-bar-chart-series/t9n/messages.lv.json +1 -1
  243. package/dist/cdn/assets/charts-config-bar-chart-series/t9n/messages.nl.json +1 -1
  244. package/dist/cdn/assets/charts-config-bar-chart-series/t9n/messages.no.json +1 -1
  245. package/dist/cdn/assets/charts-config-bar-chart-series/t9n/messages.pl.json +1 -1
  246. package/dist/cdn/assets/charts-config-bar-chart-series/t9n/messages.pt-BR.json +1 -1
  247. package/dist/cdn/assets/charts-config-bar-chart-series/t9n/messages.pt-PT.json +1 -1
  248. package/dist/cdn/assets/charts-config-bar-chart-series/t9n/messages.ro.json +1 -1
  249. package/dist/cdn/assets/charts-config-bar-chart-series/t9n/messages.ru.json +1 -1
  250. package/dist/cdn/assets/charts-config-bar-chart-series/t9n/messages.sk.json +1 -1
  251. package/dist/cdn/assets/charts-config-bar-chart-series/t9n/messages.sl.json +1 -1
  252. package/dist/cdn/assets/charts-config-bar-chart-series/t9n/messages.sr.json +1 -1
  253. package/dist/cdn/assets/charts-config-bar-chart-series/t9n/messages.sv.json +1 -1
  254. package/dist/cdn/assets/charts-config-bar-chart-series/t9n/messages.th.json +1 -1
  255. package/dist/cdn/assets/charts-config-bar-chart-series/t9n/messages.tr.json +1 -1
  256. package/dist/cdn/assets/charts-config-bar-chart-series/t9n/messages.uk.json +1 -1
  257. package/dist/cdn/assets/charts-config-bar-chart-series/t9n/messages.vi.json +1 -1
  258. package/dist/cdn/assets/charts-config-bar-chart-series/t9n/messages.zh-CN.json +1 -1
  259. package/dist/cdn/assets/charts-config-bar-chart-series/t9n/messages.zh-HK.json +1 -1
  260. package/dist/cdn/assets/charts-config-bar-chart-series/t9n/messages.zh-TW.json +1 -1
  261. package/dist/cdn/index.js +2 -2
  262. package/dist/chart-rendering/common/color-match/renderer-color-match/index.d.ts +0 -1
  263. package/dist/chart-rendering/next/chart-library-elements/line-fill-marker/interfaces.d.ts +0 -1
  264. package/dist/chart-rendering/stable/chart-library-elements/line-fill-marker/interfaces.d.ts +0 -1
  265. package/dist/chunks/action-bar-utils.js +1 -1
  266. package/dist/chunks/axis-model-wrapper.js +1 -1
  267. package/dist/chunks/bar-chart-model.js +1 -1
  268. package/dist/chunks/bar-chart-series.js +1 -1
  269. package/dist/chunks/baseline-stacking.js +1 -1
  270. package/dist/chunks/bg_BG.js +1 -1
  271. package/dist/chunks/bg_BG2.js +1 -1
  272. package/dist/chunks/box-plot-data.js +1 -1
  273. package/dist/chunks/box-plot-model.js +1 -1
  274. package/dist/chunks/chart-ui-utils.js +1 -1
  275. package/dist/chunks/chart-ui-utils2.js +1 -1
  276. package/dist/chunks/combo-bar-line-chart-model.js +1 -1
  277. package/dist/chunks/common.js +1 -1
  278. package/dist/chunks/config-update.js +1055 -1055
  279. package/dist/chunks/data.js +1 -1
  280. package/dist/chunks/default.js +1 -1
  281. package/dist/chunks/gauge-model.js +1 -1
  282. package/dist/chunks/heat-chart-model.js +72 -46
  283. package/dist/chunks/histogram-data.js +1 -1
  284. package/dist/chunks/histogram-model.js +1 -1
  285. package/dist/chunks/index.js +1 -1
  286. package/dist/chunks/index2.js +1 -1
  287. package/dist/chunks/index3.js +1 -1
  288. package/dist/chunks/index4.js +1 -1
  289. package/dist/chunks/index5.js +1 -1
  290. package/dist/chunks/interfaces.js +1 -1
  291. package/dist/chunks/interfaces2.js +1 -1
  292. package/dist/chunks/interfaces3.js +1 -1
  293. package/dist/chunks/interfaces4.js +1 -1
  294. package/dist/chunks/line-chart-model.js +1 -1
  295. package/dist/chunks/model-with-baseline-stacking.js +1 -1
  296. package/dist/chunks/model-with-data-labels.js +1 -1
  297. package/dist/chunks/model-with-multi-axes.js +1 -1
  298. package/dist/chunks/model-with-rotation.js +1 -1
  299. package/dist/chunks/pie-chart-data.js +1 -1
  300. package/dist/chunks/pie-chart-model.js +1 -1
  301. package/dist/chunks/popover-ui-utils.js +1 -1
  302. package/dist/chunks/radar-chart-model.js +1 -1
  303. package/dist/chunks/resource.js +1 -1
  304. package/dist/chunks/rest-js-object-literals.js +1 -1
  305. package/dist/chunks/runtime.js +1 -1
  306. package/dist/chunks/scatterplot-model.js +1 -1
  307. package/dist/chunks/serial-chart-model.js +1 -1
  308. package/dist/chunks/series-types.js +1 -1
  309. package/dist/chunks/series.js +1 -1
  310. package/dist/chunks/sk_SK.js +1 -1
  311. package/dist/chunks/store.js +1 -1
  312. package/dist/chunks/type-guards.js +1 -1
  313. package/dist/chunks/useT9n.js +1 -1
  314. package/dist/chunks/web-component-utils.js +1 -1
  315. package/dist/components/arcgis-chart/customElement.js +35 -49
  316. package/dist/components/arcgis-charts-action-bar/customElement.js +1 -1
  317. package/dist/components/arcgis-charts-config-axes/customElement.js +1 -1
  318. package/dist/components/arcgis-charts-config-axis/customElement.js +1 -1
  319. package/dist/components/arcgis-charts-config-bar-chart/customElement.js +1 -1
  320. package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +1 -1
  321. package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +1 -1
  322. package/dist/components/arcgis-charts-config-bar-chart-series/customElement.js +5 -3
  323. package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.d.ts +1 -1
  324. package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.js +1 -1
  325. package/dist/components/arcgis-charts-config-box-plot/customElement.js +1 -1
  326. package/dist/components/arcgis-charts-config-box-plot-data/customElement.js +1 -1
  327. package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +1 -1
  328. package/dist/components/arcgis-charts-config-box-plot-series/customElement.js +1 -1
  329. package/dist/components/arcgis-charts-config-box-plot-series-popover/customElement.js +1 -1
  330. package/dist/components/arcgis-charts-config-category-format/customElement.js +1 -1
  331. package/dist/components/arcgis-charts-config-chart-rename-popover/customElement.js +1 -1
  332. package/dist/components/arcgis-charts-config-color-style/customElement.js +1 -1
  333. package/dist/components/arcgis-charts-config-colors/customElement.js +1 -1
  334. package/dist/components/arcgis-charts-config-create-flow/customElement.js +1 -1
  335. package/dist/components/arcgis-charts-config-field-select/customElement.js +1 -1
  336. package/dist/components/arcgis-charts-config-font-style/customElement.js +1 -1
  337. package/dist/components/arcgis-charts-config-format/customElement.js +1 -1
  338. package/dist/components/arcgis-charts-config-format-popover/customElement.js +1 -1
  339. package/dist/components/arcgis-charts-config-general/customElement.js +1 -1
  340. package/dist/components/arcgis-charts-config-guide/customElement.js +1 -1
  341. package/dist/components/arcgis-charts-config-guide-popover/customElement.js +1 -1
  342. package/dist/components/arcgis-charts-config-guides/customElement.js +1 -1
  343. package/dist/components/arcgis-charts-config-guides-type-popover/customElement.js +1 -1
  344. package/dist/components/arcgis-charts-config-histogram/customElement.js +1 -1
  345. package/dist/components/arcgis-charts-config-histogram-data/customElement.js +1 -1
  346. package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +1 -1
  347. package/dist/components/arcgis-charts-config-invalid-input-message/customElement.js +1 -1
  348. package/dist/components/arcgis-charts-config-line-chart/customElement.js +1 -1
  349. package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +1 -1
  350. package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +1 -1
  351. package/dist/components/arcgis-charts-config-line-chart-series/customElement.js +1 -1
  352. package/dist/components/arcgis-charts-config-line-chart-series-popover/customElement.js +1 -1
  353. package/dist/components/arcgis-charts-config-line-style/customElement.js +1 -1
  354. package/dist/components/arcgis-charts-config-number-format/customElement.js +1 -1
  355. package/dist/components/arcgis-charts-config-pie-chart/customElement.js +1 -1
  356. package/dist/components/arcgis-charts-config-pie-chart-data/customElement.js +1 -1
  357. package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +1 -1
  358. package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +1 -1
  359. package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.js +1 -1
  360. package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +1 -1
  361. package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +1 -1
  362. package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +1 -1
  363. package/dist/components/arcgis-charts-config-select-chart-type-popover/customElement.js +1 -1
  364. package/dist/components/arcgis-charts-config-view-charts/customElement.js +1 -1
  365. package/dist/docs/api.json +2 -2
  366. package/dist/docs/docs.json +2 -2
  367. package/dist/docs/web-types.json +1 -1
  368. package/dist/index.js +1 -1
  369. package/dist/loader.js +1 -1
  370. package/dist/model/heat-chart-model/heat-chart-model.d.ts +11 -1
  371. package/dist/model/heat-chart-model/utils/heat-chart-data.d.ts +23 -1
  372. package/dist/model.js +1 -1
  373. package/package.json +3 -3
  374. package/dist/cdn/JA6JXXLZ.js +0 -4
  375. package/dist/cdn/ZANGZYAD.js +0 -4
@@ -28,62 +28,62 @@ import { c as Pa } from "./index.js";
28
28
  import { h as La } from "./index4.js";
29
29
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
30
30
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
31
- v4.34.0-next.160 */
32
- async function Ma(i, e) {
33
- const t = e.errors[i];
34
- throw new pt(e.modalHeaders.error, t ?? e.errors.simpleError);
31
+ v4.34.0-next.162 */
32
+ async function Ma(t, e) {
33
+ const i = e.errors[t];
34
+ throw new pt(e.modalHeaders.error, i ?? e.errors.simpleError);
35
35
  }
36
- function ye(i) {
37
- return i.axes?.[0]?.valueFormat?.type;
36
+ function ye(t) {
37
+ return t.axes?.[0]?.valueFormat?.type;
38
38
  }
39
- function oo(i) {
40
- return i.intlOptions;
39
+ function oo(t) {
40
+ return t.intlOptions;
41
41
  }
42
- function J(i) {
43
- return i?.type === S.NumberAxisFormat;
42
+ function J(t) {
43
+ return t?.type === S.NumberAxisFormat;
44
44
  }
45
- function lo(i) {
46
- return J(i) && i.intlOptions?.style === "percent";
45
+ function lo(t) {
46
+ return J(t) && t.intlOptions?.style === "percent";
47
47
  }
48
- function de(i) {
49
- return i?.type === S.CategoryAxisFormat;
48
+ function de(t) {
49
+ return t?.type === S.CategoryAxisFormat;
50
50
  }
51
- function Pe(i) {
52
- return i?.type === S.DateAxisFormat;
51
+ function Pe(t) {
52
+ return t?.type === S.DateAxisFormat;
53
53
  }
54
- function co(i) {
55
- const { oldConfig: e, newConfig: t, rotationChanged: a } = i;
54
+ function co(t) {
55
+ const { oldConfig: e, newConfig: i, rotationChanged: a } = t;
56
56
  return a ? [!0, !0] : [
57
- e.horizontalAxisLabelsBehavior !== t.horizontalAxisLabelsBehavior,
58
- e.verticalAxisLabelsBehavior !== t.verticalAxisLabelsBehavior
57
+ e.horizontalAxisLabelsBehavior !== i.horizontalAxisLabelsBehavior,
58
+ e.verticalAxisLabelsBehavior !== i.verticalAxisLabelsBehavior
59
59
  ];
60
60
  }
61
- function wa(i) {
62
- return J(i?.[1]?.valueFormat) && (i?.[2]?.valueFormat === void 0 || J(i[2].valueFormat));
61
+ function wa(t) {
62
+ return J(t?.[1]?.valueFormat) && (t?.[2]?.valueFormat === void 0 || J(t[2].valueFormat));
63
63
  }
64
- function Da(i) {
65
- return J(i?.[1]?.valueFormat) && (i?.[2]?.valueFormat === void 0 || J(i[2].valueFormat));
64
+ function Da(t) {
65
+ return J(t?.[1]?.valueFormat) && (t?.[2]?.valueFormat === void 0 || J(t[2].valueFormat));
66
66
  }
67
- function Oa(i) {
68
- return (de(i?.[0]?.valueFormat) || Pe(i?.[0]?.valueFormat)) && J(i?.[1]?.valueFormat) && (i?.[2]?.valueFormat === void 0 || J(i[2].valueFormat));
67
+ function Oa(t) {
68
+ return (de(t?.[0]?.valueFormat) || Pe(t?.[0]?.valueFormat)) && J(t?.[1]?.valueFormat) && (t?.[2]?.valueFormat === void 0 || J(t[2].valueFormat));
69
69
  }
70
- function qa(i) {
71
- return de(i?.[0]?.valueFormat) && de(i?.[1]?.valueFormat) || Pe(i?.[0]?.valueFormat) && de(i?.[1]?.valueFormat) || Pe(i?.[0]?.valueFormat) && Pe(i?.[1]?.valueFormat);
70
+ function qa(t) {
71
+ return de(t?.[0]?.valueFormat) && de(t?.[1]?.valueFormat) || Pe(t?.[0]?.valueFormat) && de(t?.[1]?.valueFormat) || Pe(t?.[0]?.valueFormat) && Pe(t?.[1]?.valueFormat);
72
72
  }
73
- function Ea(i) {
74
- return (de(i?.[0]?.valueFormat) || Pe(i?.[0]?.valueFormat)) && J(i?.[1]?.valueFormat);
73
+ function Ea(t) {
74
+ return (de(t?.[0]?.valueFormat) || Pe(t?.[0]?.valueFormat)) && J(t?.[1]?.valueFormat);
75
75
  }
76
- function Va(i) {
77
- return J(i?.[0]?.valueFormat) && J(i?.[1]?.valueFormat);
76
+ function Va(t) {
77
+ return J(t?.[0]?.valueFormat) && J(t?.[1]?.valueFormat);
78
78
  }
79
- function Ia(i) {
80
- return J(i?.[0]?.valueFormat) && J(i?.[1]?.valueFormat);
79
+ function Ia(t) {
80
+ return J(t?.[0]?.valueFormat) && J(t?.[1]?.valueFormat);
81
81
  }
82
- function $a(i) {
83
- return J(i?.[0]?.valueFormat);
82
+ function $a(t) {
83
+ return J(t?.[0]?.valueFormat);
84
84
  }
85
- async function uo(i) {
86
- const { chartType: e, axesConfig: t, errorStrings: a } = i;
85
+ async function uo(t) {
86
+ const { chartType: e, axesConfig: i, errorStrings: a } = t;
87
87
  let n, r;
88
88
  switch (e) {
89
89
  case S.GaugeSeries:
@@ -111,18 +111,18 @@ async function uo(i) {
111
111
  n = qa, r = "invalidValueFormatForHeatChart";
112
112
  break;
113
113
  }
114
- n !== void 0 && r !== void 0 && (n(t) || await Ma(r, a));
114
+ n !== void 0 && r !== void 0 && (n(i) || await Ma(r, a));
115
115
  }
116
- function Ra(i) {
117
- const { isXAxis: e, chartType: t, valueFormat: a, isAxisForHistogramOverlaySeries: n } = i;
118
- return e && (de(a) || t === S.HistogramSeries && !n || t === S.BarSeries && J(a));
116
+ function Ra(t) {
117
+ const { isXAxis: e, chartType: i, valueFormat: a, isAxisForHistogramOverlaySeries: n } = t;
118
+ return e && (de(a) || i === S.HistogramSeries && !n || i === S.BarSeries && J(a));
119
119
  }
120
- function fo(i) {
121
- const { chartConfig: e, isSecondValueAxis: t, seriesIds: a } = i;
120
+ function fo(t) {
121
+ const { chartConfig: e, isSecondValueAxis: i, seriesIds: a } = t;
122
122
  let n = a;
123
123
  return e.axes?.length === 3 && (n = e.series.map((r) => {
124
124
  let s = "";
125
- return (a === void 0 || a.includes(r.id)) && (t === !0 && "assignToSecondValueAxis" in r && r.assignToSecondValueAxis === !0 || t !== !0 && (!("assignToSecondValueAxis" in r) || r.assignToSecondValueAxis !== !0)) && ({ id: s } = r), s;
125
+ return (a === void 0 || a.includes(r.id)) && (i === !0 && "assignToSecondValueAxis" in r && r.assignToSecondValueAxis === !0 || i !== !0 && (!("assignToSecondValueAxis" in r) || r.assignToSecondValueAxis !== !0)) && ({ id: s } = r), s;
126
126
  }).filter((r) => r !== "")), n;
127
127
  }
128
128
  const si = {
@@ -200,24 +200,24 @@ const si = {
200
200
  },
201
201
  heatChartFirstDayOfWeek: 7
202
202
  };
203
- function ka(i, e) {
204
- return i[0].dataTransformationType !== e[0].dataTransformationType;
203
+ function ka(t, e) {
204
+ return t[0].dataTransformationType !== e[0].dataTransformationType;
205
205
  }
206
- function ja(i, e) {
207
- return i[0].binCount !== e[0].binCount;
206
+ function ja(t, e) {
207
+ return t[0].binCount !== e[0].binCount;
208
208
  }
209
- function mo(i, e) {
210
- let t = !0;
211
- const a = W(i?.series), n = W(e?.series);
212
- return a !== n && (t = a === S.ComboLineAndBarSeries && (n === S.BarSeries || n === S.LineSeries) || n === S.ComboLineAndBarSeries && (a === S.BarSeries || a === S.LineSeries) || a === S.BarSeries && n === S.LineSeries || a === S.LineSeries && n === S.BarSeries), t;
209
+ function mo(t, e) {
210
+ let i = !0;
211
+ const a = W(t?.series), n = W(e?.series);
212
+ return a !== n && (i = a === S.ComboLineAndBarSeries && (n === S.BarSeries || n === S.LineSeries) || n === S.ComboLineAndBarSeries && (a === S.BarSeries || a === S.LineSeries) || a === S.BarSeries && n === S.LineSeries || a === S.LineSeries && n === S.BarSeries), i;
213
213
  }
214
- function St(i, e) {
215
- return i !== void 0 && e !== void 0 && e > 0;
214
+ function St(t, e) {
215
+ return t !== void 0 && e !== void 0 && e > 0;
216
216
  }
217
- function go(i) {
218
- const { chartConfig: e, queryObject: t, chartData: a } = i;
217
+ function go(t) {
218
+ const { chartConfig: e, queryObject: i, chartData: a } = t;
219
219
  let n = [];
220
- const r = V(e.series), s = Gt(e), o = z(t), c = e.chartRenderer ?? o?.renderer?.toJSON();
220
+ const r = V(e.series), s = Gt(e), o = z(i), c = e.chartRenderer ?? o?.renderer?.toJSON();
221
221
  return n = e.series.map((l, u) => {
222
222
  const d = W([l]);
223
223
  let f;
@@ -230,69 +230,69 @@ function go(i) {
230
230
  })?.color : f === void 0 && (f = Ut({ colorIndex: u }))), f;
231
231
  }).filter((l) => l !== void 0), n;
232
232
  }
233
- function Ft(i) {
234
- return i !== h.PieNoAggregation && i !== h.BarAndLineNoAggregation && i !== h.BarAndLineSplitByNoAggregation;
233
+ function Ft(t) {
234
+ return t !== h.PieNoAggregation && t !== h.BarAndLineNoAggregation && t !== h.BarAndLineSplitByNoAggregation;
235
235
  }
236
- function Wa(i) {
237
- const e = V(i.series);
236
+ function Wa(t) {
237
+ const e = V(t.series);
238
238
  return e === h.BarAndLineFromFields || e === h.PieFromFields || e === h.BoxPlotMonoField || e === h.BoxPlotMultiFields || e === h.BoxPlotMonoFieldAndSplitBy || e === h.BoxPlotMultiFieldsAndSplitBy;
239
239
  }
240
- function He(i) {
241
- return i && "showMean" in i && typeof i.showMean == "boolean" ? i.showMean : !1;
240
+ function He(t) {
241
+ return t && "showMean" in t && typeof t.showMean == "boolean" ? t.showMean : !1;
242
242
  }
243
- function Qa(i) {
244
- return i && "showOutliers" in i && typeof i.showOutliers == "boolean" ? i.showOutliers : void 0;
243
+ function Qa(t) {
244
+ return t && "showOutliers" in t && typeof t.showOutliers == "boolean" ? t.showOutliers : void 0;
245
245
  }
246
246
  function yo() {
247
247
  return `{name} {${b.originalCategoryValue}} {dateY} {valueX} {dateX} {valueY}`;
248
248
  }
249
- function Ha(i) {
249
+ function Ha(t) {
250
250
  let e;
251
- return i?.[0] !== void 0 && (e = i.reduce(
252
- (t, a) => ({
253
- ...t,
254
- xmin: Math.min(t.xmin, a.xmin),
255
- xmax: Math.max(t.xmax, a.xmax),
256
- ymin: Math.min(t.ymin, a.ymin),
257
- ymax: Math.max(t.ymax, a.ymax)
251
+ return t?.[0] !== void 0 && (e = t.reduce(
252
+ (i, a) => ({
253
+ ...i,
254
+ xmin: Math.min(i.xmin, a.xmin),
255
+ xmax: Math.max(i.xmax, a.xmax),
256
+ ymin: Math.min(i.ymin, a.ymin),
257
+ ymax: Math.max(i.ymax, a.ymax)
258
258
  }),
259
- i[0]
259
+ t[0]
260
260
  )), e;
261
261
  }
262
- function ze(i) {
262
+ function ze(t) {
263
263
  const {
264
264
  value: e,
265
- dataContext: t,
265
+ dataContext: i,
266
266
  specificField: a,
267
267
  preferLabel: n,
268
268
  keepNullValues: r = !1,
269
269
  useRendererLabel: s = !1,
270
270
  config: o
271
- } = i;
271
+ } = t;
272
272
  let c = e;
273
273
  const { originalCategoryValue: l, originalDateValue: u, typeOrDomainIdValue: d } = b;
274
- if (t !== void 0) {
275
- const f = s ? xs(t) : void 0;
276
- a !== void 0 && t[a] !== void 0 ? c = t[a] : f !== void 0 ? c = f : n === !1 && t[d] !== void 0 ? c = t[d] : t[u] !== void 0 ? c = t[u] : t[l] !== void 0 ? c = t[l] : t[ae] !== void 0 && (c = t[ae]), !r && c === null && (c = "null", o?.series?.[0].type === S.BarSeries && (c = o.series?.[0]?.nullCategory?.text ?? si.nullCategory?.text ?? c));
274
+ if (i !== void 0) {
275
+ const f = s ? xs(i) : void 0;
276
+ a !== void 0 && i[a] !== void 0 ? c = i[a] : f !== void 0 ? c = f : n === !1 && i[d] !== void 0 ? c = i[d] : i[u] !== void 0 ? c = i[u] : i[l] !== void 0 ? c = i[l] : i[ae] !== void 0 && (c = i[ae]), !r && c === null && (c = "null", o?.series?.[0].type === S.BarSeries && (c = o.series?.[0]?.nullCategory?.text ?? si.nullCategory?.text ?? c));
277
277
  }
278
278
  return c;
279
279
  }
280
- function za(i) {
281
- return i?.[b.typeOrDomainIdValue] !== void 0 ? i?.[b.typeOrDomainIdValue] : i?.[b.originalCategoryValue];
280
+ function za(t) {
281
+ return t?.[b.typeOrDomainIdValue] !== void 0 ? t?.[b.typeOrDomainIdValue] : t?.[b.originalCategoryValue];
282
282
  }
283
- function Ge(i) {
283
+ function Ge(t) {
284
284
  const {
285
285
  arrayToSort: e,
286
- orderBy: t,
286
+ orderBy: i,
287
287
  sortingField: a,
288
288
  forceAscendingOrder: n,
289
289
  isNonAggregated: r,
290
290
  sortByCategory: s,
291
291
  preferLabel: o,
292
292
  isPieOrByFieldsChart: c
293
- } = i;
293
+ } = t;
294
294
  if (e !== void 0 && e.length > 1) {
295
- const l = t === fe.Descending && n !== !0;
295
+ const l = i === fe.Descending && n !== !0;
296
296
  e.sort((u, d) => {
297
297
  let f = 0, m = u[a];
298
298
  s === !0 && !c && (m = ze({
@@ -309,35 +309,35 @@ function Ge(i) {
309
309
  });
310
310
  }
311
311
  }
312
- function Ga(i) {
313
- const { arrayToSort: e, orderBy: t, sortingField: a, fieldList: n, isByFieldsChart: r, preferLabel: s } = i;
314
- e !== void 0 && e.length > 1 && !Z(a) && t !== void 0 && t.length > 0 && e.sort((o, c) => {
312
+ function Ga(t) {
313
+ const { arrayToSort: e, orderBy: i, sortingField: a, fieldList: n, isByFieldsChart: r, preferLabel: s } = t;
314
+ e !== void 0 && e.length > 1 && !Z(a) && i !== void 0 && i.length > 0 && e.sort((o, c) => {
315
315
  let l = o[a];
316
316
  s && r && typeof l == "string" && (l = ht(n, l));
317
- let u = t.indexOf(l?.toString() ?? "");
318
- u === -1 && (u = t.length);
317
+ let u = i.indexOf(l?.toString() ?? "");
318
+ u === -1 && (u = i.length);
319
319
  let d = c[a];
320
320
  s && r && typeof d == "string" && (d = ht(n, d));
321
- let f = t.indexOf(d?.toString() ?? "");
322
- return f === -1 && (f = t.length), u - f;
321
+ let f = i.indexOf(d?.toString() ?? "");
322
+ return f === -1 && (f = i.length), u - f;
323
323
  });
324
324
  }
325
- function oi(i, e) {
326
- const t = i;
325
+ function oi(t, e) {
326
+ const i = t;
327
327
  if (e?.[0] !== void 0 && V(e) === h.PieFromFields) {
328
328
  const { x: a, y: n } = e[0];
329
- (vt(i) ? t : t.dataItems).forEach((o) => (ae in o && a !== ae && (o[a] = o[a] !== void 0 ? o[a] : o[ae], delete o[ae]), pe in o && n !== pe && (o[n] = o[n] !== void 0 ? o[n] : o[pe], delete o[pe]), o));
329
+ (vt(t) ? i : i.dataItems).forEach((o) => (ae in o && a !== ae && (o[a] = o[a] !== void 0 ? o[a] : o[ae], delete o[ae]), pe in o && n !== pe && (o[n] = o[n] !== void 0 ? o[n] : o[pe], delete o[pe]), o));
330
330
  }
331
- return t;
331
+ return i;
332
332
  }
333
- function li(i, e) {
334
- const t = W(e);
335
- let a = i;
333
+ function li(t, e) {
334
+ const i = W(e);
335
+ let a = t;
336
336
  const n = e?.[0];
337
- if ((t === S.PieSeries || t === S.BoxPlotSeries || t === S.LineSeries || t === S.RadarSeries || t === S.BarSeries || t === S.ComboLineAndBarSeries) && n !== void 0) {
338
- const r = vt(i);
339
- let s = r ? i : i.dataItems;
340
- if (i !== void 0) {
337
+ if ((i === S.PieSeries || i === S.BoxPlotSeries || i === S.LineSeries || i === S.RadarSeries || i === S.BarSeries || i === S.ComboLineAndBarSeries) && n !== void 0) {
338
+ const r = vt(t);
339
+ let s = r ? t : t.dataItems;
340
+ if (t !== void 0) {
341
341
  const { originalCategoryValue: o, originalDateValue: c, xAxisField: l, typeOrDomainIdValue: u } = b, { x: d } = n;
342
342
  s = s.map((f) => {
343
343
  let m = f[d];
@@ -349,18 +349,18 @@ function li(i, e) {
349
349
  }
350
350
  return a;
351
351
  }
352
- function bt(i) {
353
- const e = { ...i };
352
+ function bt(t) {
353
+ const e = { ...t };
354
354
  delete e[b.technicalSortingFieldBySum], delete e[b.technicalSortingFieldByPercent], delete e[b.pieChart.technicalFieldSlicePercent], delete e[b.pieChart.technicalFieldGroupedSlices], delete e[b.typeOrDomainFieldName], delete e[b.lastTemporalBin], delete e[b.originalServerBinningRange], delete e[b.technicalFieldSplitByField], delete e[Y.uniqueIdsName], Object.keys(e).filter(
355
355
  (n) => n.includes(b.rendererSymbolField)
356
356
  ).forEach((n) => delete e[n]);
357
357
  const a = lt(e);
358
358
  return a.isInItem && delete e[a.expr ?? ""], e;
359
359
  }
360
- function Ua(i, e) {
361
- let t = i;
360
+ function Ua(t, e) {
361
+ let i = t;
362
362
  const a = W(e);
363
- let n = _t(t);
363
+ let n = _t(i);
364
364
  if (n !== void 0)
365
365
  switch (a) {
366
366
  case S.ComboLineAndBarSeries:
@@ -369,87 +369,87 @@ function Ua(i, e) {
369
369
  case S.RadarSeries:
370
370
  case S.PieSeries:
371
371
  {
372
- n = n.map(bt), t = { dataItems: n };
373
- const { timeIntervalInfo: r, serverLimitReached: s } = i ?? {};
374
- Ri(r) || (t.timeIntervalInfo = r), s !== void 0 && (t.serverLimitReached = s);
372
+ n = n.map(bt), i = { dataItems: n };
373
+ const { timeIntervalInfo: r, serverLimitReached: s } = t ?? {};
374
+ Ri(r) || (i.timeIntervalInfo = r), s !== void 0 && (i.serverLimitReached = s);
375
375
  }
376
376
  break;
377
377
  case S.ScatterSeries:
378
- t = {
379
- ...t,
378
+ i = {
379
+ ...i,
380
380
  dataItems: n.map(bt)
381
381
  };
382
382
  break;
383
383
  }
384
- return t;
384
+ return i;
385
385
  }
386
- function ci(i) {
387
- const { data: e, seriesConfig: t } = i;
386
+ function ci(t) {
387
+ const { data: e, seriesConfig: i } = t;
388
388
  let a = Ce(e);
389
- return a !== void 0 && (a = li(a, t), a = Ua(a, t), a = oi(a, t)), a;
389
+ return a !== void 0 && (a = li(a, i), a = Ua(a, i), a = oi(a, i)), a;
390
390
  }
391
- function ui(i) {
392
- const { statsMap: e, dataContext: t, chartLimits: a } = i;
391
+ function ui(t) {
392
+ const { statsMap: e, dataContext: i, chartLimits: a } = t;
393
393
  let n = !1;
394
394
  if (e !== void 0) {
395
395
  const { maxScatterPointsBeforeAggregation: r } = Re(a), { queryNumberOfFeatures: s } = b.scatterplotAggregationFields;
396
396
  n = (e.get(s) ?? Number.NaN) >= r;
397
- } else t !== void 0 && (n = b.scatterplotAggregationFields.dataContextXMinField in t);
397
+ } else i !== void 0 && (n = b.scatterplotAggregationFields.dataContextXMinField in i);
398
398
  return n;
399
399
  }
400
- function _a(i) {
400
+ function _a(t) {
401
401
  let e = !0;
402
- const t = W(i.series);
403
- if (t === S.BarSeries || t === S.LineSeries || t === S.ComboLineAndBarSeries) {
404
- const a = V(i.series);
402
+ const i = W(t.series);
403
+ if (i === S.BarSeries || i === S.LineSeries || i === S.ComboLineAndBarSeries) {
404
+ const a = V(t.series);
405
405
  e = a !== h.BarAndLineNoAggregation && a !== h.BarAndLineSplitByNoAggregation;
406
406
  }
407
407
  return e;
408
408
  }
409
- function Ya(i) {
410
- return V(i.series) !== h.PieNoAggregation;
409
+ function Ya(t) {
410
+ return V(t.series) !== h.PieNoAggregation;
411
411
  }
412
- function Ka(i) {
413
- const { dataContext: e, chartConfig: t, chartLimits: a } = i;
412
+ function Ka(t) {
413
+ const { dataContext: e, chartConfig: i, chartLimits: a } = t;
414
414
  let n = !0;
415
- if (t !== void 0)
416
- switch (W(t.series)) {
415
+ if (i !== void 0)
416
+ switch (W(i.series)) {
417
417
  case S.BarSeries:
418
418
  case S.LineSeries:
419
419
  case S.ComboLineAndBarSeries:
420
- n = _a(t);
420
+ n = _a(i);
421
421
  break;
422
422
  case S.ScatterSeries:
423
423
  n = ui({ dataContext: e, chartLimits: a });
424
424
  break;
425
425
  case S.PieSeries:
426
- n = Ya(t);
426
+ n = Ya(i);
427
427
  break;
428
428
  }
429
429
  return n;
430
430
  }
431
- function Ja(i, e) {
432
- let t = i;
431
+ function Ja(t, e) {
432
+ let i = t;
433
433
  switch (e) {
434
434
  case _.Log:
435
- t = `log(${i})`;
435
+ i = `log(${t})`;
436
436
  break;
437
437
  case _.Sqrt:
438
- t = `power(CAST(${i} AS FLOAT),0.5)`;
438
+ i = `power(CAST(${t} AS FLOAT),0.5)`;
439
439
  break;
440
440
  }
441
- return t;
441
+ return i;
442
442
  }
443
- function Ve(i) {
444
- let e = new Date(i).valueOf();
445
- return Number.isNaN(e) || (e = new Intl.DateTimeFormat("en-US", b.dateFormatUTC).format(i).replace(",", "")), e;
443
+ function Ve(t) {
444
+ let e = new Date(t).valueOf();
445
+ return Number.isNaN(e) || (e = new Intl.DateTimeFormat("en-US", b.dateFormatUTC).format(t).replace(",", "")), e;
446
446
  }
447
- function st(i) {
448
- const { dataToConvert: e, x: t, y: a, fieldList: n } = i, r = [], s = e[xe];
447
+ function st(t) {
448
+ const { dataToConvert: e, x: i, y: a, fieldList: n } = t, r = [], s = e[xe];
449
449
  return Object.entries(e).forEach(([o]) => {
450
450
  if (o !== "" && o !== xe && o in e) {
451
451
  const c = {
452
- [t]: ht(n, o),
452
+ [i]: ht(n, o),
453
453
  [a]: e[o],
454
454
  [b.xAxisField]: o,
455
455
  [b.originalCategoryValue]: o
@@ -458,14 +458,14 @@ function st(i) {
458
458
  }
459
459
  }), r;
460
460
  }
461
- function Xa(i, e) {
462
- return JSON.stringify(i.series[0]?.valueConversion) !== JSON.stringify(e.series[0]?.valueConversion);
461
+ function Xa(t, e) {
462
+ return JSON.stringify(t.series[0]?.valueConversion) !== JSON.stringify(e.series[0]?.valueConversion);
463
463
  }
464
- function Za(i, e) {
465
- return JSON.stringify(i.series[0]?.xTemporalBinning) !== JSON.stringify(e.series[0]?.xTemporalBinning) || JSON.stringify(i.series[0]?.yTemporalBinning) !== JSON.stringify(e.series[0]?.yTemporalBinning) || (i.firstDayOfWeek ?? 7) !== (e.firstDayOfWeek ?? 7) || i.outTimeZone !== e.outTimeZone || (i.nullPolicy ?? ne.Null) !== (e.nullPolicy ?? ne.Null);
464
+ function Za(t, e) {
465
+ 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 ?? ne.Null) !== (e.nullPolicy ?? ne.Null);
466
466
  }
467
- function en(i) {
468
- const { oldConfig: e, newConfig: t, fieldList: a } = i, n = e.series[0], r = t.series[0];
467
+ function en(t) {
468
+ const { oldConfig: e, newConfig: i, fieldList: a } = t, n = e.series[0], r = i.series[0];
469
469
  let s = !1;
470
470
  if (n.type === S.ScatterSeries && r.type === S.ScatterSeries && a && a.length > 0) {
471
471
  const o = new Set(n.additionalTooltipFields || []), c = new Set(r.additionalTooltipFields || []);
@@ -476,19 +476,19 @@ function en(i) {
476
476
  }
477
477
  return s;
478
478
  }
479
- function po(i, e) {
480
- return (i.colorMatch ?? !1) !== (e.colorMatch ?? !1);
479
+ function po(t, e) {
480
+ return (t.colorMatch ?? !1) !== (e.colorMatch ?? !1);
481
481
  }
482
- function ho(i, e) {
483
- return (i.legend?.visible ?? !1) !== (e.legend?.visible ?? !1) || JSON.stringify(i.legend?.body) !== JSON.stringify(e.legend?.body);
482
+ function ho(t, e) {
483
+ return (t.legend?.visible ?? !1) !== (e.legend?.visible ?? !1) || JSON.stringify(t.legend?.body) !== JSON.stringify(e.legend?.body);
484
484
  }
485
- function So(i, e) {
486
- return JSON.stringify(i.series[0]?.gradientRules) !== JSON.stringify(e.series[0]?.gradientRules);
485
+ function So(t, e) {
486
+ return JSON.stringify(t.series[0]?.gradientRules) !== JSON.stringify(e.series[0]?.gradientRules);
487
487
  }
488
- function Fo(i) {
489
- const { oldConfig: e, newConfig: t } = i;
488
+ function Fo(t) {
489
+ const { oldConfig: e, newConfig: i } = t;
490
490
  let a = !1;
491
- const n = e.series[0], r = t.series[0], s = W(e.series), o = W(t.series);
491
+ const n = e.series[0], r = i.series[0], s = W(e.series), o = W(i.series);
492
492
  if (s === S.PieSeries && o === S.PieSeries) {
493
493
  const { slices: c, sliceGrouping: l } = n, { slices: u, sliceGrouping: d } = r, f = c?.map((p) => ({
494
494
  sliceId: p.sliceId,
@@ -501,15 +501,15 @@ function Fo(i) {
501
501
  }
502
502
  return a;
503
503
  }
504
- function kt(i, e) {
505
- return e.length !== i.length;
504
+ function kt(t, e) {
505
+ return e.length !== t.length;
506
506
  }
507
- function tn(i) {
508
- const { oldSeries: e, newConfig: t, oldTimeIntervalInfo: a, setTimeBinningInfoWhenNotProvided: n } = i, r = t.series?.[0];
507
+ function tn(t) {
508
+ const { oldSeries: e, newConfig: i, oldTimeIntervalInfo: a, setTimeBinningInfoWhenNotProvided: n } = t, r = i.series?.[0];
509
509
  let s = !1, o = !1, c = !1;
510
510
  if (se(r) && Ne({
511
511
  seriesConfig: r,
512
- xAxisValueFormatType: ye(t),
512
+ xAxisValueFormatType: ye(i),
513
513
  setTimeBinningInfoWhenNotProvided: n
514
514
  })) {
515
515
  const l = e[0];
@@ -517,10 +517,10 @@ function tn(i) {
517
517
  }
518
518
  return { timeBinningChanged: s, timeIntervalUnitChanged: o, newTimeBinningWillBeCalculated: c };
519
519
  }
520
- function an(i) {
521
- const { oldConfig: e, newConfig: t, behaviorAfterLimit: a } = i, n = e.series, r = t.series;
520
+ function an(t) {
521
+ const { oldConfig: e, newConfig: i, behaviorAfterLimit: a } = t, n = e.series, r = i.series;
522
522
  let s = !1, o = !1;
523
- (a === $e.RenderUpToTheLimit || e.orderOptions?.data === void 0 || t.orderOptions?.data === void 0) && (o = !Le(e.orderOptions?.orderByFields, t.orderOptions?.orderByFields));
523
+ (a === $e.RenderUpToTheLimit || e.orderOptions?.data === void 0 || i.orderOptions?.data === void 0) && (o = !Le(e.orderOptions?.orderByFields, i.orderOptions?.orderByFields));
524
524
  const c = Ot(
525
525
  n.map((u) => u.query),
526
526
  ["where", "outStatistics[0].outStatisticFieldName", "outStatistics[0].onStatisticField"]
@@ -530,58 +530,58 @@ function an(i) {
530
530
  );
531
531
  return s = !Le(c, l), s || o;
532
532
  }
533
- function nn(i, e) {
534
- let t = !1;
535
- if (e[0].x !== i[0].x)
536
- t = !0;
533
+ function nn(t, e) {
534
+ let i = !1;
535
+ if (e[0].x !== t[0].x)
536
+ i = !0;
537
537
  else {
538
- const a = W(i);
538
+ const a = W(t);
539
539
  if (a !== S.HistogramSeries && a !== S.GaugeSeries) {
540
- const n = re(i).sort(), r = re(e).sort();
541
- t = JSON.stringify(n) !== JSON.stringify(r);
540
+ const n = re(t).sort(), r = re(e).sort();
541
+ i = JSON.stringify(n) !== JSON.stringify(r);
542
542
  }
543
543
  }
544
- return t;
544
+ return i;
545
545
  }
546
- function rn(i, e) {
547
- return (i ?? !1) !== (e?.filterBySelection ?? !1);
546
+ function rn(t, e) {
547
+ return (t ?? !1) !== (e?.filterBySelection ?? !1);
548
548
  }
549
- function di(i) {
550
- const { currentSelectionOIDs: e, options: t } = i;
549
+ function di(t) {
550
+ const { currentSelectionOIDs: e, options: i } = t;
551
551
  let a = !1;
552
- return t?.filterBySelection === !0 && (a = e?.length !== t?.selectionData?.selectionOIDs?.length || !Le(e, t?.selectionData?.selectionOIDs)), a;
552
+ return i?.filterBySelection === !0 && (a = e?.length !== i?.selectionData?.selectionOIDs?.length || !Le(e, i?.selectionData?.selectionOIDs)), a;
553
553
  }
554
- function sn(i, e) {
555
- return se(i.series[0]) && se(e.series[0]) && (i.series[0].binTemporalData ?? b.binTemporalData) !== (e.series[0].binTemporalData ?? b.binTemporalData);
554
+ function sn(t, e) {
555
+ return se(t.series[0]) && se(e.series[0]) && (t.series[0].binTemporalData ?? b.binTemporalData) !== (e.series[0].binTemporalData ?? b.binTemporalData);
556
556
  }
557
- function bo(i, e) {
558
- return i?.length !== e?.length || i?.some((t, a) => {
559
- const n = me({ where: t?.query?.where }), r = me({ where: e?.[a]?.query?.where });
557
+ function bo(t, e) {
558
+ return t?.length !== e?.length || t?.some((i, a) => {
559
+ const n = me({ where: i?.query?.where }), r = me({ where: e?.[a]?.query?.where });
560
560
  return n !== r;
561
561
  });
562
562
  }
563
- function xo(i, e) {
564
- const t = re(i), a = re(e);
565
- return JSON.stringify(t) !== JSON.stringify(a);
563
+ function xo(t, e) {
564
+ const i = re(t), a = re(e);
565
+ return JSON.stringify(i) !== JSON.stringify(a);
566
566
  }
567
- function on(i, e) {
568
- return He(i) !== He(e);
567
+ function on(t, e) {
568
+ return He(t) !== He(e);
569
569
  }
570
- function ln(i, e) {
571
- const t = i.axes?.[0].valueFormat.type, a = e.axes?.[0].valueFormat.type, n = V(e.series), r = n === h.BarAndLineNoAggregation || n === h.BarAndLineSplitByNoAggregation, s = t === S.DateAxisFormat && a === S.NumberAxisFormat, o = t === S.NumberAxisFormat && a === S.DateAxisFormat;
572
- return t !== a && (r || s || o);
570
+ function ln(t, e) {
571
+ const i = t.axes?.[0].valueFormat.type, a = e.axes?.[0].valueFormat.type, n = V(e.series), r = n === h.BarAndLineNoAggregation || n === h.BarAndLineSplitByNoAggregation, s = i === S.DateAxisFormat && a === S.NumberAxisFormat, o = i === S.NumberAxisFormat && a === S.DateAxisFormat;
572
+ return i !== a && (r || s || o);
573
573
  }
574
- function Co(i) {
574
+ function Co(t) {
575
575
  const {
576
576
  forceDataUpdate: e,
577
- oldConfig: t,
577
+ oldConfig: i,
578
578
  newConfig: a,
579
579
  options: n,
580
580
  formerFilterBySelection: r,
581
581
  timeIntervalInfo: s,
582
582
  currentSelectionOIDs: o,
583
583
  fieldList: c
584
- } = i, { series: l } = a, { series: u } = t, d = W(l);
584
+ } = t, { series: l } = a, { series: u } = i, d = W(l);
585
585
  let f = !1, m = !1, g = !1;
586
586
  const y = {
587
587
  common: {
@@ -608,14 +608,14 @@ function Co(i) {
608
608
  }
609
609
  };
610
610
  switch (y.common.queryChanged = an({
611
- oldConfig: t,
611
+ oldConfig: i,
612
612
  newConfig: a,
613
613
  behaviorAfterLimit: n?.chartLimits?.behaviorAfterLimit
614
- }), y.common.configFiltersChanged = Gi(t, a), y.common.xOrYChanged = nn(u, l), y.common.filterBySelectionChanged = rn(r, n), y.common.dataForFilterBySelectionChanged = di({
614
+ }), y.common.configFiltersChanged = Gi(i, a), y.common.xOrYChanged = nn(u, l), y.common.filterBySelectionChanged = rn(r, n), y.common.dataForFilterBySelectionChanged = di({
615
615
  currentSelectionOIDs: o,
616
616
  options: n
617
- }), y.common.binTemporalDataChanged = sn(t, a), y.common.valueFormatChangeRequiresNewData = ln(
618
- t,
617
+ }), y.common.binTemporalDataChanged = sn(i, a), y.common.valueFormatChangeRequiresNewData = ln(
618
+ i,
619
619
  a
620
620
  ), y.common = {
621
621
  ...y.common,
@@ -635,17 +635,17 @@ function Co(i) {
635
635
  y.common.numberOfSeriesChanged = kt(u, l);
636
636
  break;
637
637
  case S.BoxPlotSeries:
638
- y.common.numberOfSeriesChanged = kt(u, l), y.boxPlot.showMeanChanged = on(t, a);
638
+ y.common.numberOfSeriesChanged = kt(u, l), y.boxPlot.showMeanChanged = on(i, a);
639
639
  break;
640
640
  case S.GaugeSeries:
641
- y.gauge.valueConversionChanged = Xa(t, a);
641
+ y.gauge.valueConversionChanged = Xa(i, a);
642
642
  break;
643
643
  case S.HeatSeries:
644
- y.heatChart.binningChanged = Za(t, a);
644
+ y.heatChart.binningChanged = Za(i, a);
645
645
  break;
646
646
  case S.ScatterSeries:
647
647
  y.scatterPlot.tooltipFieldsChanged = en({
648
- oldConfig: t,
648
+ oldConfig: i,
649
649
  newConfig: a,
650
650
  fieldList: c
651
651
  });
@@ -653,28 +653,28 @@ function Co(i) {
653
653
  }
654
654
  return (y.gauge.valueConversionChanged || y.histogram.dataPropsChanged || y.common.numberOfSeriesChanged || y.common.binTemporalDataChanged || y.boxPlot.showMeanChanged || y.heatChart.binningChanged || y.scatterPlot.tooltipFieldsChanged) && (g = !0), f = e === !0 || m || g, { dataUpdateNeeded: f, updateNeededDetails: y };
655
655
  }
656
- function Bo(i) {
657
- return i.common.timeIntervalUnitChanged || i.common.newTimeBinningWillBeCalculated || i.common.dataForFilterBySelectionChanged || i.common.filterBySelectionChanged || i.common.configFiltersChanged || i.common.numberOfSeriesChanged || i.common.queryChanged || i.common.xOrYChanged;
656
+ function Bo(t) {
657
+ return t.common.timeIntervalUnitChanged || t.common.newTimeBinningWillBeCalculated || t.common.dataForFilterBySelectionChanged || t.common.filterBySelectionChanged || t.common.configFiltersChanged || t.common.numberOfSeriesChanged || t.common.queryChanged || t.common.xOrYChanged;
658
658
  }
659
- function cn(i, e) {
660
- let t = !0;
661
- if (i !== void 0 && i.length > 1 && !Z(e)) {
659
+ function cn(t, e) {
660
+ let i = !0;
661
+ if (t !== void 0 && t.length > 1 && !Z(e)) {
662
662
  let a = 0, n = 0, r = 0;
663
- i.forEach((s) => {
663
+ t.forEach((s) => {
664
664
  const o = s[e];
665
665
  !Ui(o) || o === 0 ? r += 1 : o > 0 ? a += 1 : n += 1;
666
- }), t = r === i.length || a >= 0 && n === 0 || a === 0 && n >= 0;
666
+ }), i = r === t.length || a >= 0 && n === 0 || a === 0 && n >= 0;
667
667
  }
668
- return t;
668
+ return i;
669
669
  }
670
- function it(i) {
671
- const { countTotal: e, countPerSeries: t, numberOfSeries: a } = i;
670
+ function it(t) {
671
+ const { countTotal: e, countPerSeries: i, numberOfSeries: a } = t;
672
672
  let n;
673
673
  const r = [];
674
- return typeof e == "number" && Number.isFinite(e) && r.push(e), typeof t == "number" && Number.isFinite(t) && r.push(t * a), r.length > 0 && (n = Math.min(...r)), n;
674
+ return typeof e == "number" && Number.isFinite(e) && r.push(e), typeof i == "number" && Number.isFinite(i) && r.push(i * a), r.length > 0 && (n = Math.min(...r)), n;
675
675
  }
676
- function fi(i, e) {
677
- let t;
676
+ function fi(t, e) {
677
+ let i;
678
678
  const {
679
679
  maxBarChartSeriesCount: a,
680
680
  maxBarUniqueSeriesCountTotal: n,
@@ -690,36 +690,36 @@ function fi(i, e) {
690
690
  maxLineThreePlusSeriesCountTotal: g,
691
691
  maxPieChartSliceCountTotal: y,
692
692
  maxGaugeByFeaturesLimit: p
693
- } = Re(e), C = W(i.series), F = i.series.length === 0 ? 1 : i.series.length, x = V(i.series);
693
+ } = Re(e), C = W(t.series), F = t.series.length === 0 ? 1 : t.series.length, x = V(t.series);
694
694
  switch (C) {
695
695
  case S.ComboLineAndBarSeries:
696
696
  case S.BarSeries:
697
- F <= a && (F === 1 ? t = n : F === 2 ? t = it({
697
+ F <= a && (F === 1 ? i = n : F === 2 ? i = it({
698
698
  countTotal: s,
699
699
  countPerSeries: r,
700
700
  numberOfSeries: F
701
- }) : F > 2 && (t = it({
701
+ }) : F > 2 && (i = it({
702
702
  countTotal: c,
703
703
  countPerSeries: o,
704
704
  numberOfSeries: F
705
705
  })));
706
706
  break;
707
707
  case S.LineSeries:
708
- F <= l && (F === 1 ? t = u : F === 2 ? t = it({
708
+ F <= l && (F === 1 ? i = u : F === 2 ? i = it({
709
709
  countTotal: f,
710
710
  countPerSeries: d,
711
711
  numberOfSeries: F
712
- }) : F > 2 && (t = it({
712
+ }) : F > 2 && (i = it({
713
713
  countTotal: g,
714
714
  countPerSeries: m,
715
715
  numberOfSeries: F
716
716
  })));
717
717
  break;
718
718
  case S.PieSeries:
719
- t = y;
719
+ i = y;
720
720
  break;
721
721
  case S.GaugeSeries:
722
- t = p;
722
+ i = p;
723
723
  break;
724
724
  case S.ScatterSeries:
725
725
  // handled through the aggregation feature
@@ -727,28 +727,28 @@ function fi(i, e) {
727
727
  // handled through the number of bins
728
728
  case S.BoxPlotSeries:
729
729
  }
730
- return (x === h.BarAndLineNoAggregation || x === h.BarAndLineMultiFields) && t !== void 0 && (t = Math.ceil(t / F)), t;
730
+ return (x === h.BarAndLineNoAggregation || x === h.BarAndLineMultiFields) && i !== void 0 && (i = Math.ceil(i / F)), i;
731
731
  }
732
- function jt(i, e) {
733
- let t = i;
734
- if (Number.isFinite(i)) {
732
+ function jt(t, e) {
733
+ let i = t;
734
+ if (Number.isFinite(t)) {
735
735
  const { factor: a, offset: n } = e ?? {};
736
- Number.isFinite(a) && (t *= a), Number.isFinite(n) && (t += n);
736
+ Number.isFinite(a) && (i *= a), Number.isFinite(n) && (i += n);
737
737
  }
738
- return t;
738
+ return i;
739
739
  }
740
- function un(i) {
740
+ function un(t) {
741
741
  let e = !1;
742
- if (i !== void 0) {
743
- const t = i.replace(" ", ""), a = /^%(0*100{1,1}\.?((?:\.)0*)?$)|(^%0*\d{0,2}\.?((?:\.)\d*)?)$/u, n = /^(0*100{1,1}\.?((?:\.)0*)?%$)|(^0*\d{0,2}\.?((?:\.)\d*)?%)$/u;
744
- e = a.test(t) || n.test(t);
742
+ if (t !== void 0) {
743
+ const i = t.replace(" ", ""), a = /^%(0*100{1,1}\.?((?:\.)0*)?$)|(^%0*\d{0,2}\.?((?:\.)\d*)?)$/u, n = /^(0*100{1,1}\.?((?:\.)0*)?%$)|(^0*\d{0,2}\.?((?:\.)\d*)?%)$/u;
744
+ e = a.test(i) || n.test(i);
745
745
  }
746
746
  return e;
747
747
  }
748
- function vo(i) {
748
+ function vo(t) {
749
749
  let e;
750
- if (un(i)) {
751
- const t = /%(\d{1,3}(.\d+)?)$/u, a = /(\d{1,3}(.\d+)?)%$/u, n = i.replace(" ", ""), r = t.exec(n)?.[1] ?? a.exec(n)?.[1];
750
+ if (un(t)) {
751
+ const i = /%(\d{1,3}(.\d+)?)$/u, a = /(\d{1,3}(.\d+)?)%$/u, n = t.replace(" ", ""), r = i.exec(n)?.[1] ?? a.exec(n)?.[1];
752
752
  r !== void 0 && (e = Number(r));
753
753
  }
754
754
  return e;
@@ -766,55 +766,55 @@ const oe = {
766
766
  BadDataWarningRaise: "arcgisChartsJSBadDataWarningRaise",
767
767
  SeriesOrder: "arcgisChartsJSSeriesOrder"
768
768
  };
769
- function le(i) {
769
+ function le(t) {
770
770
  return {
771
- detail: i,
771
+ detail: t,
772
772
  composed: !0,
773
773
  cancelable: !0,
774
774
  bubbles: !0
775
775
  };
776
776
  }
777
- function No(i) {
778
- const { data: e, seriesConfig: t, htmlContainer: a } = i;
777
+ function No(t) {
778
+ const { data: e, seriesConfig: i, htmlContainer: a } = t;
779
779
  if (a && e) {
780
- const n = ci({ data: e, seriesConfig: t });
780
+ const n = ci({ data: e, seriesConfig: i });
781
781
  a.dispatchEvent(
782
782
  new window.CustomEvent(oe.DataProcessComplete, le(n))
783
783
  );
784
784
  }
785
785
  }
786
- function To(i) {
787
- const { data: e, chartConfig: t, htmlContainer: a } = i;
786
+ function To(t) {
787
+ const { data: e, chartConfig: i, htmlContainer: a } = t;
788
788
  if (a && e) {
789
- const n = gs(e, t);
789
+ const n = gs(e, i);
790
790
  a.dispatchEvent(new window.CustomEvent(oe.DataFetchComplete, le(n)));
791
791
  }
792
792
  }
793
- function Ao(i, e) {
793
+ function Ao(t, e) {
794
794
  e && e.dispatchEvent(
795
- new window.CustomEvent(oe.LegendItemVisibilityChange, le(i))
795
+ new window.CustomEvent(oe.LegendItemVisibilityChange, le(t))
796
796
  );
797
797
  }
798
- function Po(i, e) {
799
- e && e.dispatchEvent(new window.CustomEvent(oe.UpdateComplete, le(i)));
798
+ function Po(t, e) {
799
+ e && e.dispatchEvent(new window.CustomEvent(oe.UpdateComplete, le(t)));
800
800
  }
801
- function Lo(i) {
802
- i && i.dispatchEvent(new window.CustomEvent(oe.RenderingComplete, le()));
801
+ function Lo(t) {
802
+ t && t.dispatchEvent(new window.CustomEvent(oe.RenderingComplete, le()));
803
803
  }
804
- function Mo(i) {
805
- const { data: e, seriesConfig: t, htmlContainer: a } = i;
804
+ function Mo(t) {
805
+ const { data: e, seriesConfig: i, htmlContainer: a } = t;
806
806
  if (a) {
807
807
  const n = e;
808
808
  let r = Ce(e.selectionItems);
809
- r && (r = li(r, t), r = r.map(bt), r = oi(r, t), n.selectionItems = r), a.dispatchEvent(new window.CustomEvent(oe.SelectionComplete, le(n)));
809
+ r && (r = li(r, i), r = r.map(bt), r = oi(r, i), n.selectionItems = r), a.dispatchEvent(new window.CustomEvent(oe.SelectionComplete, le(n)));
810
810
  }
811
811
  }
812
- function wo(i) {
813
- i && i.dispatchEvent(new window.CustomEvent(oe.TooManySelectedElements, le()));
812
+ function wo(t) {
813
+ t && t.dispatchEvent(new window.CustomEvent(oe.TooManySelectedElements, le()));
814
814
  }
815
- function Do(i) {
816
- const { data: e, htmlContainer: t, chartId: a, colorMatchApplied: n } = i;
817
- t && t.dispatchEvent(
815
+ function Do(t) {
816
+ const { data: e, htmlContainer: i, chartId: a, colorMatchApplied: n } = t;
817
+ i && i.dispatchEvent(
818
818
  new window.CustomEvent(
819
819
  oe.SeriesColorsChange,
820
820
  le({
@@ -825,74 +825,74 @@ function Do(i) {
825
825
  )
826
826
  );
827
827
  }
828
- function Oo(i, e) {
829
- e && e.dispatchEvent(new window.CustomEvent(oe.AxesMinMaxChange, le(i)));
828
+ function Oo(t, e) {
829
+ e && e.dispatchEvent(new window.CustomEvent(oe.AxesMinMaxChange, le(t)));
830
830
  }
831
- function qo(i, e) {
832
- e && e.dispatchEvent(new window.CustomEvent(oe.BadDataWarningRaise, le(i)));
831
+ function qo(t, e) {
832
+ e && e.dispatchEvent(new window.CustomEvent(oe.BadDataWarningRaise, le(t)));
833
833
  }
834
- function dn(i) {
835
- const { data: e, htmlContainer: t } = i;
836
- t && e && t.dispatchEvent(new window.CustomEvent(oe.SeriesOrder, le(e)));
834
+ function dn(t) {
835
+ const { data: e, htmlContainer: i } = t;
836
+ i && e && i.dispatchEvent(new window.CustomEvent(oe.SeriesOrder, le(e)));
837
837
  }
838
- function Eo(i, e) {
839
- let t, a, n, r;
840
- return se(i.series[0]) && (t = i.series[0].temporalBinning?.unit, n = i.series[0].temporalBinning?.size), se(e.series[0]) && (a = e.series[0].temporalBinning?.unit, r = e.series[0].temporalBinning?.size), St(t, n) && !St(a, r);
838
+ function Eo(t, e) {
839
+ let i, a, n, r;
840
+ return se(t.series[0]) && (i = t.series[0].temporalBinning?.unit, n = t.series[0].temporalBinning?.size), se(e.series[0]) && (a = e.series[0].temporalBinning?.unit, r = e.series[0].temporalBinning?.size), St(i, n) && !St(a, r);
841
841
  }
842
- function Vo(i, e) {
843
- return i.axes?.length === 3 && e.axes?.length === 2 || i.axes?.length === 2 && e.axes?.length === 3;
842
+ function Vo(t, e) {
843
+ return t.axes?.length === 3 && e.axes?.length === 2 || t.axes?.length === 2 && e.axes?.length === 3;
844
844
  }
845
- function Io(i, e) {
846
- return JSON.stringify(i.series.map((t) => t.assignToSecondValueAxis ?? !1)) !== JSON.stringify(e.series.map((t) => t.assignToSecondValueAxis ?? !1));
845
+ function Io(t, e) {
846
+ return JSON.stringify(t.series.map((i) => i.assignToSecondValueAxis ?? !1)) !== JSON.stringify(e.series.map((i) => i.assignToSecondValueAxis ?? !1));
847
847
  }
848
- function $o(i, e) {
849
- const t = i.axes?.map((n) => n?.guides?.map((r) => r?.above === !0)), a = e.axes?.map((n) => n?.guides?.map((r) => r?.above === !0));
850
- return JSON.stringify(t) !== JSON.stringify(a);
848
+ function $o(t, e) {
849
+ const i = t.axes?.map((n) => n?.guides?.map((r) => r?.above === !0)), a = e.axes?.map((n) => n?.guides?.map((r) => r?.above === !0));
850
+ return JSON.stringify(i) !== JSON.stringify(a);
851
851
  }
852
- function Ro(i, e) {
853
- return qt(i) !== qt(e);
852
+ function Ro(t, e) {
853
+ return qt(t) !== qt(e);
854
854
  }
855
- function ko(i) {
856
- return W(i.series) !== S.BoxPlotSeries ? b.xAxisField : i.series[0].x;
855
+ function ko(t) {
856
+ return W(t.series) !== S.BoxPlotSeries ? b.xAxisField : t.series[0].x;
857
857
  }
858
- function jo(i) {
859
- const e = Yt(i);
858
+ function jo(t) {
859
+ const e = Yt(t);
860
860
  return e === ke.Stacked || e === ke.Stacked100;
861
861
  }
862
- function Wo(i, e) {
863
- return (i.showOutliers ?? b.boxPlot.boxPlotOutliersVisibility) !== (e.showOutliers ?? b.boxPlot.boxPlotOutliersVisibility);
862
+ function Wo(t, e) {
863
+ return (t.showOutliers ?? b.boxPlot.boxPlotOutliersVisibility) !== (e.showOutliers ?? b.boxPlot.boxPlotOutliersVisibility);
864
864
  }
865
- function Qo(i, e) {
866
- return (i.standardizeValues ?? b.boxPlot.boxPlotStandardizeValuesVisibility) !== (e.standardizeValues ?? b.boxPlot.boxPlotStandardizeValuesVisibility);
865
+ function Qo(t, e) {
866
+ return (t.standardizeValues ?? b.boxPlot.boxPlotStandardizeValuesVisibility) !== (e.standardizeValues ?? b.boxPlot.boxPlotStandardizeValuesVisibility);
867
867
  }
868
- function Ho(i, e) {
869
- return JSON.stringify(i.chartRenderer) !== JSON.stringify(e.chartRenderer);
868
+ function Ho(t, e) {
869
+ return JSON.stringify(t.chartRenderer) !== JSON.stringify(e.chartRenderer);
870
870
  }
871
- function zo(i, e) {
872
- const t = i.axes?.[0].valueFormat.type === S.DateAxisFormat ? i.axes[0].valueFormat.intlOptions.timeZone : void 0, a = e.axes?.[0].valueFormat.type === S.DateAxisFormat ? e.axes[0].valueFormat.intlOptions.timeZone : void 0;
873
- return t !== a;
871
+ function zo(t, e) {
872
+ const i = t.axes?.[0].valueFormat.type === S.DateAxisFormat ? t.axes[0].valueFormat.intlOptions.timeZone : void 0, a = e.axes?.[0].valueFormat.type === S.DateAxisFormat ? e.axes[0].valueFormat.intlOptions.timeZone : void 0;
873
+ return i !== a;
874
874
  }
875
- function fn(i, e) {
876
- return i.series.map((t) => t.name).join() !== e.series.map((t) => t.name).join();
875
+ function fn(t, e) {
876
+ return t.series.map((i) => i.name).join() !== e.series.map((i) => i.name).join();
877
877
  }
878
- function mn(i, e) {
879
- const t = i.orderOptions?.series, a = e.orderOptions?.series, n = (t?.orderBy ?? fe.Ascending) !== (a?.orderBy ?? fe.Ascending), r = (t?.preferLabel ?? !0) !== (a?.preferLabel ?? !0);
878
+ function mn(t, e) {
879
+ const i = t.orderOptions?.series, a = e.orderOptions?.series, n = (i?.orderBy ?? fe.Ascending) !== (a?.orderBy ?? fe.Ascending), r = (i?.preferLabel ?? !0) !== (a?.preferLabel ?? !0);
880
880
  return n || r;
881
881
  }
882
- function Go(i, e) {
883
- return mn(i, e) || fn(i, e);
882
+ function Go(t, e) {
883
+ return mn(t, e) || fn(t, e);
884
884
  }
885
- function gn(i) {
886
- const e = V(i.series);
887
- let t;
888
- if (i.orderOptions?.data !== void 0) {
889
- let a = i.orderOptions?.data?.orderType ?? be.Category, n = i.orderOptions?.data?.orderBy;
885
+ function gn(t) {
886
+ const e = V(t.series);
887
+ let i;
888
+ if (t.orderOptions?.data !== void 0) {
889
+ let a = t.orderOptions?.data?.orderType ?? be.Category, n = t.orderOptions?.data?.orderBy;
890
890
  if (a === be.Category)
891
- a = i.series[0].x;
891
+ a = t.series[0].x;
892
892
  else {
893
893
  a === be.Mean ? a = I.Average : a === be.Median && (a = I.Median);
894
- const r = e === h.BoxPlotMultiFieldsAndCategory && typeof i.series[0].y == "string" ? i.series[0].y : void 0, s = K(i.series[0].query?.where), o = me({
895
- where: i.series[0].query?.where
894
+ const r = e === h.BoxPlotMultiFieldsAndCategory && typeof t.series[0].y == "string" ? t.series[0].y : void 0, s = K(t.series[0].query?.where), o = me({
895
+ where: t.series[0].query?.where
896
896
  });
897
897
  a = U({
898
898
  key: a,
@@ -902,32 +902,32 @@ function gn(i) {
902
902
  splitByValue: o
903
903
  }), Array.isArray(n) && (n = fe.Ascending);
904
904
  }
905
- t = {
905
+ i = {
906
906
  sortingField: a,
907
907
  orderBy: n ?? fe.Ascending,
908
- preferLabel: i.orderOptions.data.preferLabel ?? !0
908
+ preferLabel: t.orderOptions.data.preferLabel ?? !0
909
909
  };
910
910
  }
911
- return t;
911
+ return i;
912
912
  }
913
- function yn(i) {
913
+ function yn(t) {
914
914
  let e;
915
- if (!mi(i) && i.series?.length > 0 && i.orderOptions?.data?.orderType === be.Category) {
915
+ if (!mi(t) && t.series?.length > 0 && t.orderOptions?.data?.orderType === be.Category) {
916
916
  let a;
917
- de(i.axes?.[0]?.valueFormat) ? a = k.xField : de(i.axes?.[1]?.valueFormat) && (a = k.yField), a && (e = {
917
+ de(t.axes?.[0]?.valueFormat) ? a = k.xField : de(t.axes?.[1]?.valueFormat) && (a = k.yField), a && (e = {
918
918
  sortingField: a,
919
- orderBy: i.orderOptions?.data?.orderBy ?? fe.Ascending
919
+ orderBy: t.orderOptions?.data?.orderBy ?? fe.Ascending
920
920
  });
921
921
  }
922
922
  return e;
923
923
  }
924
- function pn(i) {
925
- const e = i.series[0], { x: t, y: a } = e, n = V(i.series) === h.PieFromFields, r = V(i.series) === h.BarAndLineFromFields;
924
+ function pn(t) {
925
+ const e = t.series[0], { x: i, y: a } = e, n = V(t.series) === h.PieFromFields, r = V(t.series) === h.BarAndLineFromFields;
926
926
  let s, o = "", c;
927
- if (i.orderOptions?.data !== void 0) {
928
- if (o = i.orderOptions?.data?.orderType ?? be.Category, c = i.orderOptions?.data?.orderBy, o === be.Category ? o = n ? ae : t : o = n ? pe : [a].flat()[0], o !== void 0 && o !== "") {
929
- const l = Yt(i);
930
- if (W(i.series) !== S.PieSeries && o !== t && i.series?.length > 1)
927
+ if (t.orderOptions?.data !== void 0) {
928
+ if (o = t.orderOptions?.data?.orderType ?? be.Category, c = t.orderOptions?.data?.orderBy, o === be.Category ? o = n ? ae : i : o = n ? pe : [a].flat()[0], o !== void 0 && o !== "") {
929
+ const l = Yt(t);
930
+ if (W(t.series) !== S.PieSeries && o !== i && t.series?.length > 1)
931
931
  switch (l) {
932
932
  case ke.Stacked:
933
933
  o = b.technicalSortingFieldBySum;
@@ -942,67 +942,67 @@ function pn(i) {
942
942
  s = {
943
943
  sortingField: o,
944
944
  orderBy: c ?? fe.Ascending,
945
- preferLabel: i.orderOptions.data.preferLabel ?? !0
945
+ preferLabel: t.orderOptions.data.preferLabel ?? !0
946
946
  };
947
947
  }
948
- } else (r || n) && i.series[0].query?.outStatistics && (c = i.series[0].query.outStatistics.map((l) => l.onStatisticField), c?.length > 1 && (s = {
948
+ } else (r || n) && t.series[0].query?.outStatistics && (c = t.series[0].query.outStatistics.map((l) => l.onStatisticField), c?.length > 1 && (s = {
949
949
  sortingField: si.originalCategoryValue,
950
950
  orderBy: c,
951
951
  preferLabel: !1
952
952
  }));
953
953
  return s;
954
954
  }
955
- function xt(i) {
955
+ function xt(t) {
956
956
  let e;
957
- const t = W(i.series);
958
- if (t === S.HeatSeries)
959
- e = yn(i);
960
- else if (i.series?.length > 0)
961
- switch (t) {
957
+ const i = W(t.series);
958
+ if (i === S.HeatSeries)
959
+ e = yn(t);
960
+ else if (t.series?.length > 0)
961
+ switch (i) {
962
962
  case S.BoxPlotSeries:
963
- e = gn(i);
963
+ e = gn(t);
964
964
  break;
965
965
  case S.LineSeries:
966
966
  case S.BarSeries:
967
967
  case S.PieSeries:
968
- e = pn(i);
968
+ e = pn(t);
969
969
  break;
970
970
  }
971
971
  return e;
972
972
  }
973
- function Uo(i) {
974
- const { oldConfig: e, newConfig: t, dataUpdateNeeded: a } = i, n = V(t.series);
973
+ function Uo(t) {
974
+ const { oldConfig: e, newConfig: i, dataUpdateNeeded: a } = t, n = V(i.series);
975
975
  let r = !1, s = !1;
976
- if (n !== h.BoxPlotMonoField && n !== h.BoxPlotMonoFieldAndSplitBy && t.orderOptions?.data !== void 0) {
977
- const o = xt(e), c = xt(t);
978
- s = e.orderOptions?.data?.orderType !== t.orderOptions?.data?.orderType || o?.sortingField !== c?.sortingField || o?.orderBy !== c?.orderBy || (o?.preferLabel ?? !0) !== (c?.preferLabel ?? !0), r = s || a;
976
+ if (n !== h.BoxPlotMonoField && n !== h.BoxPlotMonoFieldAndSplitBy && i.orderOptions?.data !== void 0) {
977
+ const o = xt(e), c = xt(i);
978
+ s = e.orderOptions?.data?.orderType !== i.orderOptions?.data?.orderType || o?.sortingField !== c?.sortingField || o?.orderBy !== c?.orderBy || (o?.preferLabel ?? !0) !== (c?.preferLabel ?? !0), r = s || a;
979
979
  }
980
980
  return r;
981
981
  }
982
- function _o(i, e) {
983
- const t = [], a = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map();
984
- return i.forEach((r, s) => n.set(r.id, s)), e.forEach((r, s) => {
982
+ function _o(t, e) {
983
+ const i = [], a = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map();
984
+ return t.forEach((r, s) => n.set(r.id, s)), e.forEach((r, s) => {
985
985
  let o = n.get(r.id);
986
986
  if (o !== void 0) {
987
987
  const c = /* @__PURE__ */ new Set();
988
988
  for (; a.has(o) && !c.has(o); )
989
989
  c.add(o), o = a.get(o) ?? o;
990
- o !== s && (t.push([o, s]), a.set(s, o));
990
+ o !== s && (i.push([o, s]), a.set(s, o));
991
991
  }
992
- }), t;
992
+ }), i;
993
993
  }
994
- function Yo(i, e) {
995
- const t = Ce(i);
996
- if (t && t.series.length > 1) {
997
- const { preferLabel: a, orderBy: n } = t.orderOptions?.series ?? {};
994
+ function Yo(t, e) {
995
+ const i = Ce(t);
996
+ if (i && i.series.length > 1) {
997
+ const { preferLabel: a, orderBy: n } = i.orderOptions?.series ?? {};
998
998
  if (n !== void 0) {
999
999
  let r;
1000
1000
  if (a === !1) {
1001
- const s = V(t.series);
1001
+ const s = V(i.series);
1002
1002
  r = Kt(s) ? "splitByValue" : "name";
1003
1003
  } else
1004
1004
  r = "name";
1005
- t.series.sort((s, o) => {
1005
+ i.series.sort((s, o) => {
1006
1006
  let c, l;
1007
1007
  r === "splitByValue" ? (c = me({ where: s.query?.where }) ?? "", l = me({ where: o.query?.where }) ?? "") : (c = s.name, l = o.name);
1008
1008
  const [u, d] = n.toUpperCase() === fe.Descending ? [l, c] : [c, l];
@@ -1011,21 +1011,21 @@ function Yo(i, e) {
1011
1011
  }
1012
1012
  }
1013
1013
  return dn({
1014
- data: t?.series.map((a) => a.id),
1014
+ data: i?.series.map((a) => a.id),
1015
1015
  htmlContainer: e
1016
- }), t;
1016
+ }), i;
1017
1017
  }
1018
- function hn(i) {
1019
- const e = { ...i };
1020
- return i.showMean === !0 && (e.series = [e.series[0]], e.series[0].query?.where !== void 0 && delete e.series[0].query.where), e;
1018
+ function hn(t) {
1019
+ const e = { ...t };
1020
+ return t.showMean === !0 && (e.series = [e.series[0]], e.series[0].query?.where !== void 0 && delete e.series[0].query.where), e;
1021
1021
  }
1022
- function mi(i) {
1022
+ function mi(t) {
1023
1023
  let e = !1;
1024
- return i && (e = i.series[0].type === S.HeatSeries && de(i.axes?.[0]?.valueFormat) && de(i.axes?.[1]?.valueFormat)), e;
1024
+ return t && (e = t.series[0].type === S.HeatSeries && de(t.axes?.[0]?.valueFormat) && de(t.axes?.[1]?.valueFormat)), e;
1025
1025
  }
1026
- function ot(i) {
1027
- const { dataInfo: e, chartType: t, subError: a } = i;
1028
- switch (e.valid = !1, t) {
1026
+ function ot(t) {
1027
+ const { dataInfo: e, chartType: i, subError: a } = t;
1028
+ switch (e.valid = !1, i) {
1029
1029
  case S.BarSeries:
1030
1030
  case S.ComboLineAndBarSeries:
1031
1031
  e.invalidType = R.BarElementExceedsLimit;
@@ -1047,13 +1047,13 @@ function ot(i) {
1047
1047
  break;
1048
1048
  }
1049
1049
  }
1050
- function Sn(i, e) {
1051
- i.valid = !1, i.invalidType = e;
1050
+ function Sn(t, e) {
1051
+ t.valid = !1, t.invalidType = e;
1052
1052
  }
1053
- async function Ko(i) {
1053
+ async function Ko(t) {
1054
1054
  const {
1055
1055
  invalidType: e,
1056
- chartLimits: t,
1056
+ chartLimits: i,
1057
1057
  elementCount: a,
1058
1058
  seriesCount: n,
1059
1059
  queryObject: r,
@@ -1061,9 +1061,9 @@ async function Ko(i) {
1061
1061
  formatLocale: o = Ba(document.documentElement),
1062
1062
  isTemporalLineChart: c,
1063
1063
  errorStrings: l
1064
- } = i;
1064
+ } = t;
1065
1065
  let u = l.errors.defaultInvalidChart, d;
1066
- const f = new Intl.NumberFormat(o), m = Re(t), { maxCategoryCount: g } = m;
1066
+ const f = new Intl.NumberFormat(o), m = Re(i), { maxCategoryCount: g } = m;
1067
1067
  let y = l.modalHeaders.invalidChart;
1068
1068
  switch (e) {
1069
1069
  case R.BarElementExceedsLimit: {
@@ -1201,17 +1201,17 @@ async function Ko(i) {
1201
1201
  params: d
1202
1202
  };
1203
1203
  }
1204
- function Ie(i, e) {
1205
- return `${e}_${i}`;
1204
+ function Ie(t, e) {
1205
+ return `${e}_${t}`;
1206
1206
  }
1207
- function Ct(i) {
1208
- const { value: e, mean: t, stdDev: a } = i;
1209
- return (e - t) / a;
1207
+ function Ct(t) {
1208
+ const { value: e, mean: i, stdDev: a } = t;
1209
+ return (e - i) / a;
1210
1210
  }
1211
- function At(i) {
1212
- const { dataItem: e, chartSubType: t, y: a, splitByValue: n, meanPerField: r, stdDevPerField: s } = i, o = e;
1211
+ function At(t) {
1212
+ const { dataItem: e, chartSubType: i, y: a, splitByValue: n, meanPerField: r, stdDevPerField: s } = t, o = e;
1213
1213
  let c = {
1214
- chartSubType: t,
1214
+ chartSubType: i,
1215
1215
  y: a,
1216
1216
  splitByValue: n
1217
1217
  };
@@ -1226,7 +1226,7 @@ function At(i) {
1226
1226
  const g = U({
1227
1227
  key: m,
1228
1228
  y: a,
1229
- chartSubType: t,
1229
+ chartSubType: i,
1230
1230
  splitByValue: n
1231
1231
  }), y = e[g];
1232
1232
  if (y != null) {
@@ -1261,9 +1261,9 @@ function At(i) {
1261
1261
  }
1262
1262
  }), o;
1263
1263
  }
1264
- function Fn(i) {
1265
- const { data: e, yList: t, calculateZScore: a = !1 } = i, n = e[0], r = /* @__PURE__ */ new Map();
1266
- return t.forEach((o) => {
1264
+ function Fn(t) {
1265
+ const { data: e, yList: i, calculateZScore: a = !1 } = t, n = e[0], r = /* @__PURE__ */ new Map();
1266
+ return i.forEach((o) => {
1267
1267
  let c = {};
1268
1268
  Object.keys(n).forEach((l) => {
1269
1269
  l.startsWith(o) ? c[l.replace(`${o}_`, "")] = n[l] : l.includes(b.rendererSymbolField) && (c[l] = n[l]), c[b.boxPlot.boxPlotCategory] = o, a && (c = At({
@@ -1273,20 +1273,20 @@ function Fn(i) {
1273
1273
  }), r.set(o, c);
1274
1274
  }), Array.from(r.values());
1275
1275
  }
1276
- function bn(i) {
1277
- const { data: e, splitByField: t, y: a } = i, n = {
1276
+ function bn(t) {
1277
+ const { data: e, splitByField: i, y: a } = t, n = {
1278
1278
  [b.boxPlot.boxPlotCategory]: a
1279
1279
  };
1280
1280
  return e.forEach((s) => {
1281
- const o = s[t];
1281
+ const o = s[i];
1282
1282
  o !== void 0 && Object.keys(s).forEach((c) => {
1283
1283
  c === b.rendererSymbolField ? n[`${c}_${o?.toString()}`] = s[c] : c === b.boxPlot.boxPlotMeanLineMarkerId ? n[c] = s[c] : n[`${o?.toString()}_${c}`] = s[c];
1284
1284
  });
1285
1285
  }), [n];
1286
1286
  }
1287
- function xn(i) {
1288
- const { splitByField: e, data: t, yList: a, calculateZScore: n = !1, meanAndStdDevPerField: r } = i, s = /* @__PURE__ */ new Map();
1289
- return t.forEach((c) => {
1287
+ function xn(t) {
1288
+ const { splitByField: e, data: i, yList: a, calculateZScore: n = !1, meanAndStdDevPerField: r } = t, s = /* @__PURE__ */ new Map();
1289
+ return i.forEach((c) => {
1290
1290
  const l = c[e];
1291
1291
  a.forEach((u) => {
1292
1292
  let d = {
@@ -1307,10 +1307,10 @@ function xn(i) {
1307
1307
  });
1308
1308
  }), Array.from(s.values());
1309
1309
  }
1310
- function Cn(i) {
1311
- const { data: e, yList: t, calculateZScore: a = !1, meanAndStdDevPerField: n } = i, r = e;
1310
+ function Cn(t) {
1311
+ const { data: e, yList: i, calculateZScore: a = !1, meanAndStdDevPerField: n } = t, r = e;
1312
1312
  return a && r.forEach((s) => {
1313
- t.forEach((o) => {
1313
+ i.forEach((o) => {
1314
1314
  At({
1315
1315
  dataItem: s,
1316
1316
  chartSubType: h.BoxPlotMultiFieldsAndCategory,
@@ -1321,16 +1321,16 @@ function Cn(i) {
1321
1321
  });
1322
1322
  }), r;
1323
1323
  }
1324
- function Bn(i) {
1325
- const { splitByField: e, x: t, data: a } = i, n = /* @__PURE__ */ new Map();
1324
+ function Bn(t) {
1325
+ const { splitByField: e, x: i, data: a } = t, n = /* @__PURE__ */ new Map();
1326
1326
  return a.forEach((s) => {
1327
- const o = s[t], c = { [t]: o }, l = s[e];
1327
+ const o = s[i], c = { [i]: o }, l = s[e];
1328
1328
  Object.entries(s).forEach(([u, d]) => {
1329
1329
  if (u.includes(b.rendererSymbolField))
1330
1330
  c[`${b.rendererSymbolField}_${l?.toString()}`] = d;
1331
1331
  else if (u === b.boxPlot.boxPlotMeanLineMarkerId)
1332
1332
  c[u] = s[u];
1333
- else if (u !== e && u !== t) {
1333
+ else if (u !== e && u !== i) {
1334
1334
  const f = u !== b.xAxisField && u !== b.originalCategoryValue ? `${l?.toString()}_${u}` : u;
1335
1335
  c[f] = d;
1336
1336
  }
@@ -1340,11 +1340,11 @@ function Bn(i) {
1340
1340
  });
1341
1341
  }), Array.from(n.values());
1342
1342
  }
1343
- function vn(i, e) {
1344
- const { series: t } = i, a = t[0], { y: n } = a, r = V(i.series), s = {
1343
+ function vn(t, e) {
1344
+ const { series: i } = t, a = i[0], { y: n } = a, r = V(t.series), s = {
1345
1345
  y: r === h.BoxPlotMultiFieldsAndCategory ? n : void 0,
1346
1346
  chartSubType: r
1347
- }, o = i.series.map((c) => {
1347
+ }, o = t.series.map((c) => {
1348
1348
  let l = me({
1349
1349
  where: c.query?.where,
1350
1350
  normalize: !1,
@@ -1376,17 +1376,17 @@ function vn(i, e) {
1376
1376
  });
1377
1377
  });
1378
1378
  }
1379
- function Nn(i, e) {
1380
- let t, a;
1381
- const n = i[e[I.IQR]], r = i[e[I.FirstQuartile]], s = i[e[I.ThirdQuartile]];
1382
- return Number.isFinite(n) && Number.isFinite(r) && Number.isFinite(s) && (t = r - n * 1.5, a = s + n * 1.5), { outlierMinThreshold: t, outlierMaxThreshold: a };
1379
+ function Nn(t, e) {
1380
+ let i, a;
1381
+ const n = t[e[I.IQR]], r = t[e[I.FirstQuartile]], s = t[e[I.ThirdQuartile]];
1382
+ return Number.isFinite(n) && Number.isFinite(r) && Number.isFinite(s) && (i = r - n * 1.5, a = s + n * 1.5), { outlierMinThreshold: i, outlierMaxThreshold: a };
1383
1383
  }
1384
- function Wt(i) {
1385
- const { yField: e, xField: t, xValue: a, splitByField: n, splitByValue: r, outlierMaxThreshold: s, outlierMinThreshold: o, target: c } = i;
1384
+ function Wt(t) {
1385
+ const { yField: e, xField: i, xValue: a, splitByField: n, splitByValue: r, outlierMaxThreshold: s, outlierMinThreshold: o, target: c } = t;
1386
1386
  let l;
1387
- if (t !== void 0 && a !== void 0) {
1387
+ if (i !== void 0 && a !== void 0) {
1388
1388
  const m = typeof a != "string" ? a : `'${Et(a)}'`;
1389
- l = `${t}=${m.toString()}`;
1389
+ l = `${i}=${m.toString()}`;
1390
1390
  }
1391
1391
  let u;
1392
1392
  if (n !== void 0 && r !== void 0) {
@@ -1396,14 +1396,14 @@ function Wt(i) {
1396
1396
  let d;
1397
1397
  return c === "outliers" && o !== s ? d = `(${e}<${o} OR ${e}>${s})` : c === "alternativeData" && (o === s ? d = `(${e}=${o})` : d = `(${e}>=${o} AND ${e}<=${s})`), [l, u, d].filter((m) => m !== void 0).join(" AND ");
1398
1398
  }
1399
- function gi(i) {
1400
- const { data: e, yField: t, x: a, chartSubType: n, splitByField: r } = i, s = n === h.BoxPlotMonoField || n === h.BoxPlotMonoFieldAndCategory || n === h.BoxPlotMonoFieldAndSplitBy || n === h.BoxPlotMonoFieldAndCategoryAndSplitBy ? void 0 : t, o = je(s), c = [], l = [], { maxOperandsPerWhereClause: u } = Ue();
1399
+ function gi(t) {
1400
+ const { data: e, yField: i, x: a, chartSubType: n, splitByField: r } = t, s = n === h.BoxPlotMonoField || n === h.BoxPlotMonoFieldAndCategory || n === h.BoxPlotMonoFieldAndSplitBy || n === h.BoxPlotMonoFieldAndCategoryAndSplitBy ? void 0 : i, o = je(s), c = [], l = [], { maxOperandsPerWhereClause: u } = Ue();
1401
1401
  let d = [], f = [], m = 1;
1402
1402
  return e.forEach((g, y) => {
1403
1403
  const { outlierMinThreshold: p, outlierMaxThreshold: C } = Nn(g, o);
1404
1404
  if (typeof p == "number" && typeof C == "number") {
1405
1405
  const F = {
1406
- yField: t,
1406
+ yField: i,
1407
1407
  outlierMinThreshold: p,
1408
1408
  outlierMaxThreshold: C
1409
1409
  };
@@ -1417,8 +1417,8 @@ function gi(i) {
1417
1417
  m += 1;
1418
1418
  }), { outliersFilterBatches: c, dataWithoutOutliersFilterBatches: l };
1419
1419
  }
1420
- function Tn(i) {
1421
- const { data: e, outlierDataItem: t, chartSubType: a, x: n, y: r, meanAndStdDevPerField: s, splitByField: o } = i;
1420
+ function Tn(t) {
1421
+ const { data: e, outlierDataItem: i, chartSubType: a, x: n, y: r, meanAndStdDevPerField: s, splitByField: o } = t;
1422
1422
  let c = s?.[Ie(r, P.Average)], l = s?.[Ie(r, P.StandardDeviation)];
1423
1423
  if (c === void 0 && l === void 0)
1424
1424
  switch (a) {
@@ -1428,7 +1428,7 @@ function Tn(i) {
1428
1428
  break;
1429
1429
  }
1430
1430
  case h.BoxPlotMultiFieldsAndCategory: {
1431
- const u = e.find((d) => d[n] === t[n]);
1431
+ const u = e.find((d) => d[n] === i[n]);
1432
1432
  if (u !== void 0) {
1433
1433
  const d = je(r);
1434
1434
  c = Number(u[d[I.Average]]), l = Number(u[d[I.StandardDeviation]]);
@@ -1436,7 +1436,7 @@ function Tn(i) {
1436
1436
  break;
1437
1437
  }
1438
1438
  case h.BoxPlotMultiFieldsAndSplitBy: {
1439
- const u = e.find((d) => d[o] === t[o]);
1439
+ const u = e.find((d) => d[o] === i[o]);
1440
1440
  if (u !== void 0) {
1441
1441
  const d = je(r);
1442
1442
  c = Number(u[d[I.Average]]), l = Number(u[d[I.StandardDeviation]]);
@@ -1446,11 +1446,11 @@ function Tn(i) {
1446
1446
  }
1447
1447
  return { mean: c, stdDev: l };
1448
1448
  }
1449
- async function An(i) {
1450
- const { seriesConfig: e, data: t, uniqueQuery: a, queryObject: n, meanAndStdDevPerField: r, abortKey: s } = i, o = V(e), c = e[0], { x: l } = c, u = K(c.query?.where), d = z(n), f = re(e), m = [];
1449
+ async function An(t) {
1450
+ const { seriesConfig: e, data: i, uniqueQuery: a, queryObject: n, meanAndStdDevPerField: r, abortKey: s } = t, o = V(e), c = e[0], { x: l } = c, u = K(c.query?.where), d = z(n), f = re(e), m = [];
1451
1451
  for (let p = 0; p < f.length; p += 1) {
1452
1452
  const C = f[p], { outliersFilterBatches: F } = gi({
1453
- data: t,
1453
+ data: i,
1454
1454
  yField: C,
1455
1455
  x: l,
1456
1456
  chartSubType: o,
@@ -1520,7 +1520,7 @@ async function An(i) {
1520
1520
  ...N,
1521
1521
  standardizeValues: !0
1522
1522
  }), { mean: M, stdDev: O } = Tn({
1523
- data: t,
1523
+ data: i,
1524
1524
  outlierDataItem: B,
1525
1525
  chartSubType: o,
1526
1526
  x: l,
@@ -1540,8 +1540,8 @@ async function An(i) {
1540
1540
  }
1541
1541
  return Array.from(y.values());
1542
1542
  }
1543
- async function Pn(i) {
1544
- const { data: e, queryObject: t, uniqueQuery: a, elementCount: n, chartConfig: r, chartLimits: s, abortKey: o } = i;
1543
+ async function Pn(t) {
1544
+ const { data: e, queryObject: i, uniqueQuery: a, elementCount: n, chartConfig: r, chartLimits: s, abortKey: o } = t;
1545
1545
  let c = [];
1546
1546
  const { series: l, showMean: u } = r, d = Nt({ showMean: u, seriesConfig: l }), f = V(l), m = we(r), { x: g } = m, y = K(m.query?.where), p = [];
1547
1547
  for (let F = 0; F < d.length; F += 1) {
@@ -1564,7 +1564,7 @@ async function Pn(i) {
1564
1564
  outStatisticFieldName: `${w.outStatisticFieldName}${b.boxPlot.boxPlotOutliersSuffix}`
1565
1565
  }))), p.push(
1566
1566
  ut({
1567
- queryObject: t,
1567
+ queryObject: i,
1568
1568
  uniqueQuery: A,
1569
1569
  chartConfig: r,
1570
1570
  elementCount: n,
@@ -1584,13 +1584,13 @@ async function Pn(i) {
1584
1584
  x: y !== void 0 && y !== "" ? y : g
1585
1585
  })), c;
1586
1586
  }
1587
- async function Ln(i) {
1588
- const { queryObject: e, uniqueQuery: t, chartConfig: a, abortKey: n } = i;
1587
+ async function Ln(t) {
1588
+ const { queryObject: e, uniqueQuery: i, chartConfig: a, abortKey: n } = t;
1589
1589
  let r;
1590
1590
  const { series: s, showMean: o } = a, c = V(s);
1591
1591
  if (c === h.BoxPlotMultiFieldsAndCategory || c === h.BoxPlotMultiFieldsAndSplitBy) {
1592
1592
  const l = Nt({ showMean: o, seriesConfig: s }), u = {
1593
- ...t
1593
+ ...i
1594
1594
  };
1595
1595
  delete u.outStatistics, delete u.groupByFieldsForStatistics, delete u.orderByFields;
1596
1596
  const d = [];
@@ -1620,20 +1620,20 @@ async function Ln(i) {
1620
1620
  }
1621
1621
  return r;
1622
1622
  }
1623
- function Mn(i) {
1624
- const { data: e, additionalData: t, chartConfig: a } = i, n = a.series[0], { x: r } = n, s = K(n.query?.where);
1623
+ function Mn(t) {
1624
+ const { data: e, additionalData: i, chartConfig: a } = t, n = a.series[0], { x: r } = n, s = K(n.query?.where);
1625
1625
  return e.map((o) => {
1626
1626
  let c = o;
1627
- const l = t.find(
1627
+ const l = i.find(
1628
1628
  (u) => u[r] === o[r] && (s === "" ? !0 : u[s] === o[s])
1629
1629
  );
1630
1630
  return l !== void 0 && (c = { ...o, ...l }), c;
1631
1631
  });
1632
1632
  }
1633
- function yi(i) {
1634
- const { chartConfig: e, data: t, calculateZScore: a = !1, meanAndStdDevPerField: n } = i, { series: r, showMean: s } = e, o = we(e), c = V(e.series), { x: l } = o, u = Nt({ showMean: s, seriesConfig: r });
1635
- let d = t;
1636
- if ((o.type === S.LineSeries || o.type === S.BoxPlotSeries) && t?.[0] !== void 0) {
1633
+ function yi(t) {
1634
+ const { chartConfig: e, data: i, calculateZScore: a = !1, meanAndStdDevPerField: n } = t, { series: r, showMean: s } = e, o = we(e), c = V(e.series), { x: l } = o, u = Nt({ showMean: s, seriesConfig: r });
1635
+ let d = i;
1636
+ if ((o.type === S.LineSeries || o.type === S.BoxPlotSeries) && i?.[0] !== void 0) {
1637
1637
  const f = K(o.query?.where);
1638
1638
  switch (c) {
1639
1639
  case h.BoxPlotMonoField:
@@ -1641,14 +1641,14 @@ function yi(i) {
1641
1641
  break;
1642
1642
  case h.BoxPlotMultiFields:
1643
1643
  d = Fn({
1644
- data: t,
1644
+ data: i,
1645
1645
  yList: u,
1646
1646
  calculateZScore: a
1647
1647
  });
1648
1648
  break;
1649
1649
  case h.BoxPlotMonoFieldAndSplitBy:
1650
1650
  d = bn({
1651
- data: t,
1651
+ data: i,
1652
1652
  splitByField: f,
1653
1653
  y: u[0]
1654
1654
  // there's only one `y` value for that query type
@@ -1657,7 +1657,7 @@ function yi(i) {
1657
1657
  case h.BoxPlotMultiFieldsAndSplitBy:
1658
1658
  d = xn({
1659
1659
  splitByField: f,
1660
- data: t,
1660
+ data: i,
1661
1661
  yList: u,
1662
1662
  meanAndStdDevPerField: n,
1663
1663
  calculateZScore: a
@@ -1665,7 +1665,7 @@ function yi(i) {
1665
1665
  break;
1666
1666
  case h.BoxPlotMultiFieldsAndCategory:
1667
1667
  d = Cn({
1668
- data: t,
1668
+ data: i,
1669
1669
  yList: u,
1670
1670
  meanAndStdDevPerField: n,
1671
1671
  calculateZScore: a
@@ -1675,7 +1675,7 @@ function yi(i) {
1675
1675
  d = Bn({
1676
1676
  splitByField: f,
1677
1677
  x: l,
1678
- data: t
1678
+ data: i
1679
1679
  });
1680
1680
  break;
1681
1681
  case h.BoxPlotMonoFieldAndCategory:
@@ -1683,26 +1683,26 @@ function yi(i) {
1683
1683
  }
1684
1684
  return vn(e, d), d;
1685
1685
  }
1686
- async function wn(i) {
1687
- const { data: e, queryObject: t, uniqueQuery: a, fetchFullBoxPlotData: n, chartConfig: r, elementCount: s, chartLimits: o, abortKey: c } = i;
1686
+ async function wn(t) {
1687
+ const { data: e, queryObject: i, uniqueQuery: a, fetchFullBoxPlotData: n, chartConfig: r, elementCount: s, chartLimits: o, abortKey: c } = t;
1688
1688
  let l = e, u = [];
1689
1689
  if (l !== void 0) {
1690
1690
  const { series: d } = r, f = await Ln({
1691
- queryObject: t,
1691
+ queryObject: i,
1692
1692
  uniqueQuery: a,
1693
1693
  chartConfig: r,
1694
1694
  abortKey: c
1695
1695
  });
1696
1696
  if (n !== !1) {
1697
1697
  u = await An({
1698
- queryObject: t,
1698
+ queryObject: i,
1699
1699
  uniqueQuery: a,
1700
1700
  seriesConfig: d,
1701
1701
  data: l,
1702
1702
  abortKey: c
1703
1703
  });
1704
1704
  const m = await Pn({
1705
- queryObject: t,
1705
+ queryObject: i,
1706
1706
  uniqueQuery: a,
1707
1707
  elementCount: s,
1708
1708
  data: e,
@@ -1725,15 +1725,15 @@ async function wn(i) {
1725
1725
  }
1726
1726
  return { dataItems: l, outliers: u };
1727
1727
  }
1728
- function Dn(i) {
1729
- const { whereValue: e, outStatistics: t, y: a } = i;
1728
+ function Dn(t) {
1729
+ const { whereValue: e, outStatistics: i, y: a } = t;
1730
1730
  let n = Y.outStatistics.outStatisticFieldName ?? "";
1731
- return t?.outStatisticFieldName !== void 0 ? n = t.outStatisticFieldName : t?.onStatisticField !== void 0 && t.statisticType !== void 0 ? n = `${t.statisticType}_${t.onStatisticField}_${e}` : a !== void 0 && (n = [a].flat()[0]), n;
1731
+ return i?.outStatisticFieldName !== void 0 ? n = i.outStatisticFieldName : i?.onStatisticField !== void 0 && i.statisticType !== void 0 ? n = `${i.statisticType}_${i.onStatisticField}_${e}` : a !== void 0 && (n = [a].flat()[0]), n;
1732
1732
  }
1733
- function On(i) {
1733
+ function On(t) {
1734
1734
  const e = /* @__PURE__ */ new Map();
1735
- for (let t = 0; t < i.length; t += 1) {
1736
- const a = i[t], n = a.query?.where;
1735
+ for (let i = 0; i < t.length; i += 1) {
1736
+ const a = t[i], n = a.query?.where;
1737
1737
  if (n !== void 0 && "y" in a) {
1738
1738
  const r = me({ where: n, normalize: !0, escape: !1 });
1739
1739
  if (r !== "") {
@@ -1748,28 +1748,28 @@ function On(i) {
1748
1748
  }
1749
1749
  return e;
1750
1750
  }
1751
- function qn(i) {
1752
- const { uniqueQuery: e, splitByField: t, x: a } = i, n = [...e.groupByFieldsForStatistics ?? [], a, t].filter(
1751
+ function qn(t) {
1752
+ const { uniqueQuery: e, splitByField: i, x: a } = t, n = [...e.groupByFieldsForStatistics ?? [], a, i].filter(
1753
1753
  (r) => r !== void 0 && r.trim() !== "" && r !== Jt
1754
1754
  );
1755
1755
  e.groupByFieldsForStatistics = Array.from(new Set(n));
1756
1756
  }
1757
- function En(i) {
1758
- return i.statisticType === P.ContinuousPercentile || i.statisticType === P.DiscretePercentile;
1757
+ function En(t) {
1758
+ return t.statisticType === P.ContinuousPercentile || t.statisticType === P.DiscretePercentile;
1759
1759
  }
1760
- function Vn(i) {
1760
+ function Vn(t) {
1761
1761
  const {
1762
1762
  uniqueQuery: e,
1763
- y: t,
1763
+ y: i,
1764
1764
  useGenericOutStatFieldName: a,
1765
1765
  queryObject: n,
1766
1766
  chartSubType: r,
1767
1767
  isTimeBinningSeries: s,
1768
1768
  returnFeaturesExtent: o,
1769
1769
  splitByField: c
1770
- } = i, l = Y.outStatistics;
1770
+ } = t, l = Y.outStatistics;
1771
1771
  if (e.outStatistics?.[0] !== void 0) {
1772
- r !== h.PieFromFields && r !== h.BarAndLineFromFields && (e.outStatistics[0].outStatisticFieldName = a ? l.outStatisticFieldName : [t].flat()[0]);
1772
+ r !== h.PieFromFields && r !== h.BarAndLineFromFields && (e.outStatistics[0].outStatisticFieldName = a ? l.outStatisticFieldName : [i].flat()[0]);
1773
1773
  const { outStatistics: u } = e;
1774
1774
  for (let d = 0; d < u.length; d += 1) {
1775
1775
  const f = e.outStatistics[d];
@@ -1786,18 +1786,18 @@ function Vn(i) {
1786
1786
  {
1787
1787
  statisticType: l.statisticType,
1788
1788
  onStatisticField: u,
1789
- outStatisticFieldName: a ? l.outStatisticFieldName : [t].flat()[0]
1789
+ outStatisticFieldName: a ? l.outStatisticFieldName : [i].flat()[0]
1790
1790
  }
1791
1791
  ];
1792
1792
  }
1793
1793
  o === !0 && (!s || Z(c)) && e.outStatistics?.push({ statisticType: P.EnvelopeAggregate, onStatisticField: "1" });
1794
1794
  }
1795
- function In(i) {
1796
- const { chartConfig: e, fetchFullBoxPlotData: t } = i, { series: a } = e, n = He(e);
1795
+ function In(t) {
1796
+ const { chartConfig: e, fetchFullBoxPlotData: i } = t, { series: a } = e, n = He(e);
1797
1797
  let r = [
1798
1798
  { statisticType: P.Average, suffix: I.Average }
1799
1799
  ];
1800
- t === !0 && (r = [
1800
+ i === !0 && (r = [
1801
1801
  ...r,
1802
1802
  { statisticType: P.Minimum, suffix: I.Min },
1803
1803
  {
@@ -1832,16 +1832,16 @@ function In(i) {
1832
1832
  })
1833
1833
  );
1834
1834
  }
1835
- function $n(i, e) {
1836
- for (let t = 1; t < e.length; t += 1) {
1837
- const a = { ...e[t].query?.outStatistics?.[0] };
1838
- a !== void 0 && i.outStatistics !== void 0 && i.outStatistics.push(a);
1835
+ function $n(t, e) {
1836
+ for (let i = 1; i < e.length; i += 1) {
1837
+ const a = { ...e[i].query?.outStatistics?.[0] };
1838
+ a !== void 0 && t.outStatistics !== void 0 && t.outStatistics.push(a);
1839
1839
  }
1840
1840
  }
1841
- function Rn(i) {
1842
- const { uniqueQuery: e, x: t, splitByField: a, unit: n, chartSubType: r, objectIdField: s } = i;
1841
+ function Rn(t) {
1842
+ const { uniqueQuery: e, x: i, splitByField: a, unit: n, chartSubType: r, objectIdField: s } = t;
1843
1843
  if (n !== void 0) {
1844
- const o = Ki(t, n);
1844
+ const o = Ki(i, n);
1845
1845
  e.orderByFields = o, e.groupByFieldsForStatistics = o, r === h.BarAndLineSplitBy && !Z(a) ? e.groupByFieldsForStatistics.push(a) : r === h.BarAndLineNoAggregation && (e.groupByFieldsForStatistics.push(s), e.outStatistics = [
1846
1846
  {
1847
1847
  onStatisticField: s,
@@ -1851,10 +1851,10 @@ function Rn(i) {
1851
1851
  ]);
1852
1852
  }
1853
1853
  }
1854
- function pi(i) {
1855
- const { chartConfig: e, options: t, uniqueQuery: a } = i;
1856
- if (t?.chartLimits?.behaviorAfterLimit === $e.RenderUpToTheLimit) {
1857
- const n = fi(e, t?.chartLimits);
1854
+ function pi(t) {
1855
+ const { chartConfig: e, options: i, uniqueQuery: a } = t;
1856
+ if (i?.chartLimits?.behaviorAfterLimit === $e.RenderUpToTheLimit) {
1857
+ const n = fi(e, i?.chartLimits);
1858
1858
  if (n !== void 0) {
1859
1859
  const r = V(e.series);
1860
1860
  if (r === h.PieFromFields || r === h.BarAndLineFromFields) {
@@ -1867,8 +1867,8 @@ function pi(i) {
1867
1867
  }
1868
1868
  }
1869
1869
  }
1870
- async function ct(i) {
1871
- const { chartConfig: e, queryConfig: t, options: a, queryObject: n, timeIntervalInfo: r, fetchFullBoxPlotData: s } = i, { setTimeBinningInfoWhenNotProvided: o, returnFeaturesExtent: c } = a ?? {}, l = e.series, u = V(l), d = we(e), { query: f, x: m } = d, g = "y" in d ? d.y : void 0, y = Ne({
1870
+ async function ct(t) {
1871
+ const { chartConfig: e, queryConfig: i, options: a, queryObject: n, timeIntervalInfo: r, fetchFullBoxPlotData: s } = t, { setTimeBinningInfoWhenNotProvided: o, returnFeaturesExtent: c } = a ?? {}, l = e.series, u = V(l), d = we(e), { query: f, x: m } = d, g = "y" in d ? d.y : void 0, y = Ne({
1872
1872
  xAxisValueFormatType: ye(e),
1873
1873
  setTimeBinningInfoWhenNotProvided: o,
1874
1874
  seriesConfig: d
@@ -1878,7 +1878,7 @@ async function ct(i) {
1878
1878
  v = Ce(f);
1879
1879
  const E = K(f.where);
1880
1880
  let H = "";
1881
- switch (t.fetchNullValues !== !0 && (m !== b.boxPlot.boxPlotCategory && (H = `${m} IS NOT NULL`), E.trim() !== "" && E !== m && !Tt(f.where) && (H = Q([H, `${E} IS NOT NULL`]))), u) {
1881
+ switch (i.fetchNullValues !== !0 && (m !== b.boxPlot.boxPlotCategory && (H = `${m} IS NOT NULL`), E.trim() !== "" && E !== m && !Tt(f.where) && (H = Q([H, `${E} IS NOT NULL`]))), u) {
1882
1882
  case h.BarAndLineSplitBy: {
1883
1883
  p = On(l), B = !0, C = !0, F = !0;
1884
1884
  break;
@@ -1919,7 +1919,7 @@ async function ct(i) {
1919
1919
  isTimeBinningSeries: y,
1920
1920
  returnFeaturesExtent: c,
1921
1921
  splitByField: E
1922
- }), B && qn({ uniqueQuery: v, splitByField: E, x: m }), N && (v.outStatistics = In({ chartConfig: e, fetchFullBoxPlotData: s })), x ? delete v.orderByFields : t.orderByFields !== void 0 && (v.orderByFields = t.orderByFields.filter((Fe) => {
1922
+ }), B && qn({ uniqueQuery: v, splitByField: E, x: m }), N && (v.outStatistics = In({ chartConfig: e, fetchFullBoxPlotData: s })), x ? delete v.orderByFields : i.orderByFields !== void 0 && (v.orderByFields = i.orderByFields.filter((Fe) => {
1923
1923
  const $ = Fe.split(" ");
1924
1924
  return !Z($[0]);
1925
1925
  })), y && se(l[0])) {
@@ -1936,14 +1936,14 @@ async function ct(i) {
1936
1936
  v.where = H;
1937
1937
  }
1938
1938
  pi({ chartConfig: e, options: a, uniqueQuery: v });
1939
- const { gdbVersion: A, geometry: w, distance: L, units: D, timeExtent: M, where: O, objectIds: q, spatialRelationship: T } = t;
1939
+ const { gdbVersion: A, geometry: w, distance: L, units: D, timeExtent: M, where: O, objectIds: q, spatialRelationship: T } = i;
1940
1940
  return A !== void 0 && (v.gdbVersion = A), w !== void 0 && (v.geometry = w), L !== void 0 && (v.distance = L), D !== void 0 && (v.units = D), M !== void 0 && (v.timeExtent = M), q !== void 0 && (v.objectIds = q), T !== void 0 && (v.spatialRelationship = T), O !== void 0 && (v.where = Q([v.where, O])), { uniqueQuery: v, mapToStatField: p };
1941
1941
  }
1942
- async function kn(i) {
1943
- const { queryObject: e, queryConfig: t, chartConfig: a, abortKey: n } = i, r = a.series[0], { x: s, valueConversion: o } = r, c = Xt(a), l = await ge({
1942
+ async function kn(t) {
1943
+ const { queryObject: e, queryConfig: i, chartConfig: a, abortKey: n } = t, r = a.series[0], { x: s, valueConversion: o } = r, c = Xt(a), l = await ge({
1944
1944
  queryObject: e,
1945
- queryConfig: t,
1946
- featureCount: t.num ?? 1,
1945
+ queryConfig: i,
1946
+ featureCount: i.num ?? 1,
1947
1947
  // if a chart limitation has been provided we use it, otherwise we force 1 to avoid the batching
1948
1948
  abortKey: n
1949
1949
  });
@@ -1960,13 +1960,13 @@ async function kn(i) {
1960
1960
  }
1961
1961
  return u;
1962
1962
  }
1963
- async function jn(i) {
1964
- const { queryObject: e, chartConfig: t, queryConfig: a, options: n, abortKey: r } = i, { chartLimits: s } = n ?? {}, o = { valid: !0 };
1963
+ async function jn(t) {
1964
+ const { queryObject: e, chartConfig: i, queryConfig: a, options: n, abortKey: r } = t, { chartLimits: s } = n ?? {}, o = { valid: !0 };
1965
1965
  if (e !== void 0) {
1966
- const { behaviorAfterLimit: c, maxGaugeByFeaturesLimit: l } = s ?? {}, u = Xt(t);
1966
+ const { behaviorAfterLimit: c, maxGaugeByFeaturesLimit: l } = s ?? {}, u = Xt(i);
1967
1967
  let d = !0, f;
1968
1968
  if (u && (f = (await wi({
1969
- chartConfig: t,
1969
+ chartConfig: i,
1970
1970
  queryObject: e,
1971
1971
  queryConfig: a,
1972
1972
  behaviorAfterLimit: c,
@@ -1974,7 +1974,7 @@ async function jn(i) {
1974
1974
  isGaugeByFeature: u
1975
1975
  })).elementCount, n?.chartLimits?.behaviorAfterLimit !== $e.RenderUpToTheLimit && (d = he({
1976
1976
  count: f ?? 0,
1977
- seriesCount: t.series.length,
1977
+ seriesCount: i.series.length,
1978
1978
  chartType: S.GaugeSeries,
1979
1979
  chartLimits: s
1980
1980
  })), n && (Number.isFinite(l) || Number.isFinite(f)))) {
@@ -1982,12 +1982,12 @@ async function jn(i) {
1982
1982
  Number.isFinite(m) && (n.chartLimits = {
1983
1983
  ...s,
1984
1984
  maxGaugeByFeaturesLimit: m
1985
- }), pi({ chartConfig: t, options: n, uniqueQuery: a });
1985
+ }), pi({ chartConfig: i, options: n, uniqueQuery: a });
1986
1986
  }
1987
1987
  if (Number.isNaN(d) || d) {
1988
1988
  const m = await kn({
1989
1989
  queryObject: e,
1990
- chartConfig: t,
1990
+ chartConfig: i,
1991
1991
  queryConfig: a,
1992
1992
  abortKey: r
1993
1993
  });
@@ -2000,8 +2000,8 @@ async function jn(i) {
2000
2000
  }
2001
2001
  return o;
2002
2002
  }
2003
- async function Jo(i) {
2004
- const { queryObject: e, chartConfig: t, queryConfig: a } = i, { minimumFromField: n, maximumFromField: r } = t.axes[0], s = [];
2003
+ async function Jo(t) {
2004
+ const { queryObject: e, chartConfig: i, queryConfig: a } = t, { minimumFromField: n, maximumFromField: r } = i.axes[0], s = [];
2005
2005
  let o = "", c = "";
2006
2006
  n !== void 0 && (typeof n == "string" ? (o = `${P.Minimum}_${n}`, s.push({
2007
2007
  statisticType: P.Minimum,
@@ -2032,37 +2032,37 @@ async function Jo(i) {
2032
2032
  }), d = u.get(o), f = u.get(c);
2033
2033
  return { minimumFromData: d, maximumFromData: f };
2034
2034
  }
2035
- function Wn(i = _.None, e) {
2036
- return i === _.None || i === _.Log && e > 0 || i === _.Sqrt && e >= 0;
2035
+ function Wn(t = _.None, e) {
2036
+ return t === _.None || t === _.Log && e > 0 || t === _.Sqrt && e >= 0;
2037
2037
  }
2038
- function hi(i, e) {
2039
- const t = { valid: !1 };
2040
- return e === !0 ? t.invalidType = R.HistogramEmptyField : i === _.Log ? t.invalidType = R.NegativeValueInLogCalculation : i === _.Sqrt && (t.invalidType = R.NegativeValueInSqrtCalculation), t;
2038
+ function hi(t, e) {
2039
+ const i = { valid: !1 };
2040
+ return e === !0 ? i.invalidType = R.HistogramEmptyField : t === _.Log ? i.invalidType = R.NegativeValueInLogCalculation : t === _.Sqrt && (i.invalidType = R.NegativeValueInSqrtCalculation), i;
2041
2041
  }
2042
- function Qn(i, e) {
2043
- let t = i;
2042
+ function Qn(t, e) {
2043
+ let i = t;
2044
2044
  switch (e) {
2045
2045
  case _.Log:
2046
- t = Math.log(i);
2046
+ i = Math.log(t);
2047
2047
  break;
2048
2048
  case _.Sqrt:
2049
- t = Math.sqrt(i);
2049
+ i = Math.sqrt(t);
2050
2050
  break;
2051
2051
  }
2052
- return t;
2053
- }
2054
- function Hn(i) {
2055
- let e = i;
2056
- const t = i.toString().split(".");
2057
- if (t[1] !== void 0) {
2058
- const n = 10 ** -t[1].length;
2059
- e = i - n;
2052
+ return i;
2053
+ }
2054
+ function Hn(t) {
2055
+ let e = t;
2056
+ const i = t.toString().split(".");
2057
+ if (i[1] !== void 0) {
2058
+ const n = 10 ** -i[1].length;
2059
+ e = t - n;
2060
2060
  }
2061
2061
  return e;
2062
2062
  }
2063
- function Si(i) {
2063
+ function Si(t) {
2064
2064
  let e = "field";
2065
- switch (i) {
2065
+ switch (t) {
2066
2066
  case _.Log:
2067
2067
  e = "natural-log";
2068
2068
  break;
@@ -2073,8 +2073,8 @@ function Si(i) {
2073
2073
  }
2074
2074
  return e;
2075
2075
  }
2076
- async function zn(i) {
2077
- const { queryObject: e, fieldName: t, queryConfig: a, abortKey: n } = i, r = z(e), { objectIdField: s } = r, o = `${P.Count}_${s}`, c = `${P.Count}_${t}`, l = `${P.Minimum}_${t}`, u = `${P.Maximum}_${t}`, d = {
2076
+ async function zn(t) {
2077
+ const { queryObject: e, fieldName: i, queryConfig: a, abortKey: n } = t, r = z(e), { objectIdField: s } = r, o = `${P.Count}_${s}`, c = `${P.Count}_${i}`, l = `${P.Minimum}_${i}`, u = `${P.Maximum}_${i}`, d = {
2078
2078
  ...a,
2079
2079
  outStatistics: [
2080
2080
  {
@@ -2084,17 +2084,17 @@ async function zn(i) {
2084
2084
  },
2085
2085
  {
2086
2086
  statisticType: P.Count,
2087
- onStatisticField: t,
2087
+ onStatisticField: i,
2088
2088
  outStatisticFieldName: c
2089
2089
  },
2090
2090
  {
2091
2091
  statisticType: P.Minimum,
2092
- onStatisticField: t,
2092
+ onStatisticField: i,
2093
2093
  outStatisticFieldName: l
2094
2094
  },
2095
2095
  {
2096
2096
  statisticType: P.Maximum,
2097
- onStatisticField: t,
2097
+ onStatisticField: i,
2098
2098
  outStatisticFieldName: u
2099
2099
  }
2100
2100
  ]
@@ -2105,8 +2105,8 @@ async function zn(i) {
2105
2105
  }), m = f.get(o) ?? Number.NaN, g = f.get(c) ?? Number.NaN, y = f.get(l) ?? Number.NaN, p = f.get(u) ?? Number.NaN;
2106
2106
  return { countExcludingNulls: g, countIncludingNulls: m, min: y, max: p };
2107
2107
  }
2108
- async function Gn(i) {
2109
- const { queryConfig: e, chartConfig: t, queryObject: a, abortKey: n } = i, r = t.series[0], { x: s, dataTransformationType: o } = r;
2108
+ async function Gn(t) {
2109
+ const { queryConfig: e, chartConfig: i, queryObject: a, abortKey: n } = t, r = i.series[0], { x: s, dataTransformationType: o } = r;
2110
2110
  let c = [];
2111
2111
  const { countIncludingNulls: l, countExcludingNulls: u, min: d, max: f } = await zn({
2112
2112
  queryObject: a,
@@ -2122,14 +2122,14 @@ async function Gn(i) {
2122
2122
  countIncludingNulls: l
2123
2123
  };
2124
2124
  }
2125
- function Un(i) {
2126
- const e = { ...i };
2125
+ function Un(t) {
2126
+ const e = { ...t };
2127
2127
  return e.avg = e.avg ?? Number.NaN, e.count = e.count ?? Number.NaN, e.max = e.max ?? Number.NaN, e.min = e.min ?? Number.NaN, e.stddev = e.stddev ?? Number.NaN, e.sum = e.sum ?? Number.NaN, e.variance = e.variance ?? Number.NaN, e.median = e.median ?? Number.NaN, e;
2128
2128
  }
2129
- function _n(i) {
2130
- const { seriesConfig: e, layer: t, useFeaturesInView: a, view: n, queryConfig: r } = i, { x: s, dataTransformationType: o } = e;
2129
+ function _n(t) {
2130
+ const { seriesConfig: e, layer: i, useFeaturesInView: a, view: n, queryConfig: r } = t, { x: s, dataTransformationType: o } = e;
2131
2131
  let c = {
2132
- layer: t,
2132
+ layer: i,
2133
2133
  view: n,
2134
2134
  field: s,
2135
2135
  // excluding the filters like 1=1 from the sqlWhere. It's causing query failures (see https://devtopia.esri.com/WebGIS/arcgis-charts/issues/6677)
@@ -2141,10 +2141,10 @@ function _n(i) {
2141
2141
  normalizationType: Si(o)
2142
2142
  }), c;
2143
2143
  }
2144
- function Yn(i) {
2145
- const { seriesConfig: e, layer: t, useFeaturesInView: a, view: n, minValue: r, maxValue: s, queryConfig: o } = i, { x: c, binCount: l, dataTransformationType: u } = e;
2144
+ function Yn(t) {
2145
+ const { seriesConfig: e, layer: i, useFeaturesInView: a, view: n, minValue: r, maxValue: s, queryConfig: o } = t, { x: c, binCount: l, dataTransformationType: u } = e;
2146
2146
  let d = {
2147
- layer: t,
2147
+ layer: i,
2148
2148
  view: n,
2149
2149
  field: c,
2150
2150
  minValue: r,
@@ -2160,38 +2160,38 @@ function Yn(i) {
2160
2160
  normalizationType: Si(u)
2161
2161
  }), d;
2162
2162
  }
2163
- function Kn(i, e) {
2164
- let t = Number.NaN;
2165
- return i !== void 0 && e !== void 0 && (t = i - e), t;
2163
+ function Kn(t, e) {
2164
+ let i = Number.NaN;
2165
+ return t !== void 0 && e !== void 0 && (i = t - e), i;
2166
2166
  }
2167
- async function Jn(i) {
2167
+ async function Jn(t) {
2168
2168
  const {
2169
2169
  chartConfig: e,
2170
- queryConfig: t,
2170
+ queryConfig: i,
2171
2171
  queryObject: a,
2172
2172
  countExcludingNulls: n,
2173
2173
  countIncludingNulls: r,
2174
2174
  options: s,
2175
2175
  errorStrings: o
2176
- } = i, c = e.series[0], { dataTransformationType: l } = c;
2176
+ } = t, c = e.series[0], { dataTransformationType: l } = c;
2177
2177
  let u = { valid: !0 };
2178
2178
  if (a !== void 0) {
2179
- const d = z(a), m = Ji(t?.geometry)?.extent?.toJSON() !== void 0, g = s?.view, y = _n({
2179
+ const d = z(a), m = Ji(i?.geometry)?.extent?.toJSON() !== void 0, g = s?.view, y = _n({
2180
2180
  seriesConfig: c,
2181
2181
  layer: d,
2182
2182
  view: g,
2183
2183
  useFeaturesInView: m,
2184
- queryConfig: t
2184
+ queryConfig: i
2185
2185
  });
2186
2186
  let p;
2187
2187
  if (g !== void 0 && (p = new $t({
2188
2188
  geometry: g.extent
2189
2189
  }), g.extent !== void 0 && Xi(d))) {
2190
- const { distance: L, units: D } = t;
2190
+ const { distance: L, units: D } = i;
2191
2191
  L !== void 0 && (p.distance = L), D !== void 0 && (p.units = D);
2192
2192
  }
2193
- if (t.timeExtent) {
2194
- const L = { start: t.timeExtent[0], end: t.timeExtent[1] };
2193
+ if (i.timeExtent) {
2194
+ const L = { start: i.timeExtent[0], end: i.timeExtent[1] };
2195
2195
  p === void 0 ? p = new $t({ timeExtent: L }) : p.timeExtent = L;
2196
2196
  }
2197
2197
  y.filter = p;
@@ -2223,7 +2223,7 @@ async function Jn(i) {
2223
2223
  minValue: Hn(N),
2224
2224
  maxValue: v,
2225
2225
  valueExpression: y.valueExpression,
2226
- queryConfig: t
2226
+ queryConfig: i
2227
2227
  });
2228
2228
  L.filter = p;
2229
2229
  let D;
@@ -2248,27 +2248,27 @@ async function Jn(i) {
2248
2248
  }
2249
2249
  return u;
2250
2250
  }
2251
- async function Fi(i) {
2252
- const { chartConfig: e, queryConfig: t, queryObject: a, options: n, abortKey: r, errorStrings: s } = i, { series: o } = e, c = o[0], { rawData: l, dataCompatibleWithTransformation: u, dataCountIncompatible: d, countIncludingNulls: f, countExcludingNulls: m } = await Gn({
2251
+ async function Fi(t) {
2252
+ const { chartConfig: e, queryConfig: i, queryObject: a, options: n, abortKey: r, errorStrings: s } = t, { series: o } = e, c = o[0], { rawData: l, dataCompatibleWithTransformation: u, dataCountIncompatible: d, countIncludingNulls: f, countExcludingNulls: m } = await Gn({
2253
2253
  queryObject: a,
2254
2254
  chartConfig: e,
2255
- queryConfig: t,
2255
+ queryConfig: i,
2256
2256
  abortKey: r
2257
2257
  });
2258
2258
  let g = { valid: !0 };
2259
2259
  return !u || d ? g = hi(c.dataTransformationType, d) : g = await Jn({
2260
2260
  chartConfig: e,
2261
2261
  queryObject: a,
2262
- queryConfig: t,
2262
+ queryConfig: i,
2263
2263
  countIncludingNulls: f,
2264
2264
  countExcludingNulls: m,
2265
2265
  options: n,
2266
2266
  errorStrings: s
2267
2267
  }), g;
2268
2268
  }
2269
- async function Xn(i) {
2270
- const { queryObject: e, queryConfig: t, chartConfig: a, x: n } = i, { series: r } = a, { dataTransformationType: s } = r[0], o = {
2271
- ...t,
2269
+ async function Xn(t) {
2270
+ const { queryObject: e, queryConfig: i, chartConfig: a, x: n } = t, { series: r } = a, { dataTransformationType: s } = r[0], o = {
2271
+ ...i,
2272
2272
  orderByFields: [n],
2273
2273
  outFields: [n]
2274
2274
  };
@@ -2287,8 +2287,8 @@ const Me = {
2287
2287
  groupByOutKeyword: "OUT",
2288
2288
  groupByCaseEnd: "ELSE 'OUT' END"
2289
2289
  }, Zn = "{ groupByFieldsForStatistics } WHEN ({ y } { yMinOperand } { yValue } AND { y } { yMaxOperand } { yValuePlusStep } AND { x } { xMinOperand } { xValue } AND { x } { xMaxOperand } { xValuePlusStep }) THEN '{ xValue }|{ xValuePlusStep}|{ yValue }|{ yValuePlusStep }'";
2290
- async function er(i) {
2291
- const { chartConfig: e, queryObject: t, queryConfig: a, abortKey: n } = i, r = e.series[0], { x: s, y: o } = r, { dataContextCountDistinctX: c, dataContextCountDistinctY: l } = b.scatterplotAggregationFields, u = {
2290
+ async function er(t) {
2291
+ const { chartConfig: e, queryObject: i, queryConfig: a, abortKey: n } = t, r = e.series[0], { x: s, y: o } = r, { dataContextCountDistinctX: c, dataContextCountDistinctY: l } = b.scatterplotAggregationFields, u = {
2292
2292
  ...a,
2293
2293
  outStatistics: [
2294
2294
  {
@@ -2306,13 +2306,13 @@ async function er(i) {
2306
2306
  // this parameters guarantees the 2 count stats bring back distinct values. It has no impact on the other stats.
2307
2307
  };
2308
2308
  return await _e({
2309
- queryObject: t,
2309
+ queryObject: i,
2310
2310
  queryConfig: u,
2311
2311
  abortKey: n
2312
2312
  });
2313
2313
  }
2314
- async function tr(i) {
2315
- const { statsMap: e, chartConfig: t, queryObject: a, options: n, queryConfig: r, abortKey: s } = i, {
2314
+ async function tr(t) {
2315
+ const { statsMap: e, chartConfig: i, queryObject: a, options: n, queryConfig: r, abortKey: s } = t, {
2316
2316
  dataContextXMinField: o,
2317
2317
  dataContextXMaxField: c,
2318
2318
  dataContextYMinField: l,
@@ -2325,19 +2325,19 @@ async function tr(i) {
2325
2325
  if (F != null && B !== void 0 && B !== null && x !== void 0 && x !== null && N !== void 0 && N !== null && !Number.isNaN(F + x + B + N)) {
2326
2326
  const { maxScatterPointsAfterAggregation: v } = Re(n?.chartLimits), w = Math.floor(Math.sqrt(v)), L = await er({
2327
2327
  queryObject: a,
2328
- chartConfig: t,
2328
+ chartConfig: i,
2329
2329
  queryConfig: r,
2330
2330
  abortKey: s
2331
2331
  });
2332
2332
  y = Math.min(L.get(f) ?? Number.NaN, w), p = Math.min(L.get(d) ?? Number.NaN, w), C = p * y, m = x === F ? 0 : (x - F) / (p - 1), g = N === B ? 0 : (N - B) / (y - 1), e.set(b.scatterplotAggregationFields.xStep, m), e.set(b.scatterplotAggregationFields.yStep, g), e.set(b.scatterplotAggregationFields.rowCount, y), e.set(b.scatterplotAggregationFields.columnCount, p), e.set(b.scatterplotAggregationFields.realGridSize, C);
2333
2333
  }
2334
2334
  }
2335
- function ir(i) {
2336
- const { groupByFieldsForStatistics: e, x: t, y: a, xValue: n, yValue: r, xStep: s, yStep: o, endOfRow: c, endOfColumn: l } = i;
2335
+ function ir(t) {
2336
+ const { groupByFieldsForStatistics: e, x: i, y: a, xValue: n, yValue: r, xStep: s, yStep: o, endOfRow: c, endOfColumn: l } = t;
2337
2337
  let u = e === "" ? Me.groupByCaseBegin : e;
2338
2338
  return u = ue(Zn, {
2339
2339
  groupByFieldsForStatistics: u,
2340
- x: t,
2340
+ x: i,
2341
2341
  y: a,
2342
2342
  xValue: `${n}`,
2343
2343
  yValue: `${r}`,
@@ -2353,8 +2353,8 @@ function ir(i) {
2353
2353
  // we use = to catch the last value of the line, < otherwise
2354
2354
  }), u;
2355
2355
  }
2356
- async function ar(i) {
2357
- const { chartConfig: e, queryConfig: t, queryObject: a, xMin: n, xMax: r, yMin: s, yMax: o, abortKey: c } = i, l = e.series[0], { x: u, y: d } = l, f = { ...t };
2356
+ async function ar(t) {
2357
+ const { chartConfig: e, queryConfig: i, queryObject: a, xMin: n, xMax: r, yMin: s, yMax: o, abortKey: c } = t, l = e.series[0], { x: u, y: d } = l, f = { ...i };
2358
2358
  return f.where = Q([f.where, `${u}>=${n}`, `${u}<=${r}`]), u !== d && (f.where = Q([f.where, `${d}>=${s}`, `${d}<=${o}`])), await ge({
2359
2359
  queryObject: a,
2360
2360
  queryConfig: f,
@@ -2364,8 +2364,8 @@ async function ar(i) {
2364
2364
  abortKey: c
2365
2365
  });
2366
2366
  }
2367
- async function nr(i) {
2368
- const { statsMap: e, chartConfig: t, queryObject: a, queryConfig: n, useQueryAttributeBins: r, errorStrings: s, abortKey: o } = i, c = t.series[0], { x: l, y: u } = c, {
2367
+ async function nr(t) {
2368
+ const { statsMap: e, chartConfig: i, queryObject: a, queryConfig: n, useQueryAttributeBins: r, errorStrings: s, abortKey: o } = t, c = i.series[0], { x: l, y: u } = c, {
2369
2369
  dataContextXMinField: d,
2370
2370
  dataContextXMaxField: f,
2371
2371
  dataContextYMinField: m,
@@ -2449,7 +2449,7 @@ async function nr(i) {
2449
2449
  };
2450
2450
  Dt.push(
2451
2451
  ar({
2452
- chartConfig: t,
2452
+ chartConfig: i,
2453
2453
  queryConfig: Vi,
2454
2454
  queryObject: a,
2455
2455
  xMin: Xe,
@@ -2480,34 +2480,34 @@ const rr = {
2480
2480
  interceptPropertyList: ["Intercept", "INTERCEPT", "intercept"],
2481
2481
  r2PropertyList: ["R2", "r2"]
2482
2482
  };
2483
- async function sr(i) {
2484
- const { queryObject: e } = i;
2485
- let t = !1;
2483
+ async function sr(t) {
2484
+ const { queryObject: e } = t;
2485
+ let i = !1;
2486
2486
  const a = ia(e), n = z(e), r = ei(n);
2487
2487
  if (a && r.url !== void 0 && r.url !== null) {
2488
2488
  const s = `${r.url}/${r.layerId}?f=json`;
2489
2489
  try {
2490
2490
  const o = (await Fa(s)).data, c = o?.advancedQueryCapabilities?.supportsQueryAnalytic === !0, l = o?.sqlParserVersion === void 0 || r.version != null && r.version >= 10.91;
2491
- t = c && l;
2491
+ i = c && l;
2492
2492
  } catch {
2493
2493
  }
2494
2494
  }
2495
- return t;
2495
+ return i;
2496
2496
  }
2497
- function or(i) {
2498
- const { x: e, y: t, trendlineXToY: a, data: n } = i, [r, s] = n ? ki(n, (c) => c[e]) : [Number.NaN, Number.NaN];
2497
+ function or(t) {
2498
+ const { x: e, y: i, trendlineXToY: a, data: n } = t, [r, s] = n ? ki(n, (c) => c[e]) : [Number.NaN, Number.NaN];
2499
2499
  return [
2500
- { [e]: r ?? Number.NaN, [t]: a(r ?? Number.NaN) },
2501
- { [e]: s ?? Number.NaN, [t]: a(s ?? Number.NaN) }
2500
+ { [e]: r ?? Number.NaN, [i]: a(r ?? Number.NaN) },
2501
+ { [e]: s ?? Number.NaN, [i]: a(s ?? Number.NaN) }
2502
2502
  ];
2503
2503
  }
2504
- function lr(i) {
2505
- const { data: e, x: t, y: a } = i;
2504
+ function lr(t) {
2505
+ const { data: e, x: i, y: a } = t;
2506
2506
  let n = [];
2507
- return e !== void 0 && (n = e.filter((r) => Number.isFinite(r[t]) && Number.isFinite(r[a])).map((r) => [r[t], r[a]])), n;
2507
+ return e !== void 0 && (n = e.filter((r) => Number.isFinite(r[i]) && Number.isFinite(r[a])).map((r) => [r[i], r[a]])), n;
2508
2508
  }
2509
- async function cr(i) {
2510
- const { statsMap: e, queryObject: t, chartConfig: a, queryConfig: n } = i, r = a.series[0], { x: s, y: o } = r;
2509
+ async function cr(t) {
2510
+ const { statsMap: e, queryObject: i, chartConfig: a, queryConfig: n } = t, r = a.series[0], { x: s, y: o } = r;
2511
2511
  let c = Number.NaN, l = [
2512
2512
  { [s]: Number.NaN, [o]: Number.NaN },
2513
2513
  { [s]: Number.NaN, [o]: Number.NaN }
@@ -2522,7 +2522,7 @@ async function cr(i) {
2522
2522
  interceptPropertyList: p,
2523
2523
  r2PropertyList: C
2524
2524
  } = rr, F = `[{"${f}": "${m}", "${g}":"${s},${o}"}]`, x = await aa({
2525
- queryObject: t,
2525
+ queryObject: i,
2526
2526
  queryConfig: n,
2527
2527
  outputFormat: d,
2528
2528
  dataFormat: u,
@@ -2546,8 +2546,8 @@ async function cr(i) {
2546
2546
  }
2547
2547
  return { r2: c, trendLinePoints: l };
2548
2548
  }
2549
- function bi(i) {
2550
- const { data: e, chartConfig: t } = i, a = t.series[0], { x: n, y: r } = a;
2549
+ function bi(t) {
2550
+ const { data: e, chartConfig: i } = t, a = i.series[0], { x: n, y: r } = a;
2551
2551
  let { r2: s, trendLinePoints: o } = b.scatterplotSeries;
2552
2552
  const c = lr({ data: e, x: n, y: r });
2553
2553
  if (c !== void 0) {
@@ -2556,22 +2556,22 @@ function bi(i) {
2556
2556
  }
2557
2557
  return { r2: s, trendLinePoints: o };
2558
2558
  }
2559
- async function ur(i) {
2560
- const e = await sr(i), { chartConfig: t } = i, a = t.series[0], { x: n, y: r } = a, { r2: s } = b.scatterplotSeries, o = [
2559
+ async function ur(t) {
2560
+ const e = await sr(t), { chartConfig: i } = t, a = i.series[0], { x: n, y: r } = a, { r2: s } = b.scatterplotSeries, o = [
2561
2561
  { [n]: Number.NaN, [r]: Number.NaN },
2562
2562
  { [n]: Number.NaN, [r]: Number.NaN }
2563
2563
  ];
2564
2564
  let c = { r2: s, trendLinePoints: o }, l = !1;
2565
2565
  if (e)
2566
2566
  try {
2567
- c = await cr(i);
2567
+ c = await cr(t);
2568
2568
  } catch {
2569
2569
  l = !0;
2570
2570
  }
2571
- return (!e || l) && (c = bi(i)), c;
2571
+ return (!e || l) && (c = bi(t)), c;
2572
2572
  }
2573
- async function dr(i) {
2574
- const { chartConfig: e, queryConfig: t, queryObject: a, abortKey: n } = i, r = e.series[0], { x: s, y: o } = r;
2573
+ async function dr(t) {
2574
+ const { chartConfig: e, queryConfig: i, queryObject: a, abortKey: n } = t, r = e.series[0], { x: s, y: o } = r;
2575
2575
  let c = /* @__PURE__ */ new Map();
2576
2576
  const {
2577
2577
  dataContextXMinField: l,
@@ -2608,23 +2608,23 @@ async function dr(i) {
2608
2608
  onStatisticField: o
2609
2609
  }
2610
2610
  );
2611
- const p = { ...t };
2611
+ const p = { ...i };
2612
2612
  return p.outStatistics = y, c = await _e({
2613
2613
  queryObject: a,
2614
2614
  queryConfig: p,
2615
2615
  abortKey: n
2616
2616
  }), s === o && (c.set(d, c.get(l) ?? Number.NaN), c.set(f, c.get(u) ?? Number.NaN)), c;
2617
2617
  }
2618
- function at(i) {
2619
- const { value: e, valueMin: t, valueMax: a } = i;
2620
- return e === t || e === a ? e : Math.random() * (a - t) + t;
2618
+ function at(t) {
2619
+ const { value: e, valueMin: i, valueMax: a } = t;
2620
+ return e === i || e === a ? e : Math.random() * (a - i) + i;
2621
2621
  }
2622
- function fr(i) {
2623
- const { useQueryAttributeBins: e, graphic: t, x: a, y: n, yStep: r } = i, { groupByOutKeyword: s } = Me, { dataContextXMinField: o, dataContextXMaxField: c, dataContextYMinField: l, dataContextYMaxField: u } = b.scatterplotAggregationFields;
2622
+ function fr(t) {
2623
+ const { useQueryAttributeBins: e, graphic: i, x: a, y: n, yStep: r } = t, { groupByOutKeyword: s } = Me, { dataContextXMinField: o, dataContextXMaxField: c, dataContextYMinField: l, dataContextYMaxField: u } = b.scatterplotAggregationFields;
2624
2624
  let d = [];
2625
- if (e && "stackedAttributes" in t && t.stackedAttributes) {
2626
- const f = sa(a, n), m = t.attributes[f.lowerBoundaryAlias], g = t.attributes[f.upperBoundaryAlias];
2627
- t.stackedAttributes.forEach((y) => {
2625
+ if (e && "stackedAttributes" in i && i.stackedAttributes) {
2626
+ const f = sa(a, n), m = i.attributes[f.lowerBoundaryAlias], g = i.attributes[f.upperBoundaryAlias];
2627
+ i.stackedAttributes.forEach((y) => {
2628
2628
  let p = y[f.stackAlias], C;
2629
2629
  typeof p == "number" && typeof r == "number" && (p *= r), typeof p == "number" && typeof r == "number" && (C = p + r);
2630
2630
  const F = y[a], x = y[n];
@@ -2639,12 +2639,12 @@ function fr(i) {
2639
2639
  });
2640
2640
  });
2641
2641
  } else {
2642
- const { expr: f, isInItem: m } = lt(t.attributes);
2643
- if (m && f && t.attributes[f] !== s) {
2644
- let [g, y, p, C] = t.attributes[f].split("|");
2642
+ const { expr: f, isInItem: m } = lt(i.attributes);
2643
+ if (m && f && i.attributes[f] !== s) {
2644
+ let [g, y, p, C] = i.attributes[f].split("|");
2645
2645
  g = Math.min(g, y), y = Math.max(g, y), p = Math.min(p, C), C = Math.max(p, C);
2646
2646
  const F = {
2647
- ...t.attributes,
2647
+ ...i.attributes,
2648
2648
  [o]: g,
2649
2649
  [c]: y,
2650
2650
  [l]: p,
@@ -2663,8 +2663,8 @@ function fr(i) {
2663
2663
  }
2664
2664
  return d;
2665
2665
  }
2666
- async function mr(i) {
2667
- const { queryObject: e, chartConfig: t, rawData: a, isAggregationMode: n, yStep: r, useQueryAttributeBins: s } = i, o = t.series[0], { x: c, y: l } = o, d = z(e).objectIdField;
2666
+ async function mr(t) {
2667
+ const { queryObject: e, chartConfig: i, rawData: a, isAggregationMode: n, yStep: r, useQueryAttributeBins: s } = t, o = i.series[0], { x: c, y: l } = o, d = z(e).objectIdField;
2668
2668
  let m = (Array.isArray(a) ? a : a?.features)?.flatMap((g) => {
2669
2669
  let y = [{ ...g.attributes }];
2670
2670
  return Mt(y[0], [c, l]), n ? y = fr({
@@ -2680,8 +2680,8 @@ async function mr(i) {
2680
2680
  return Number.isFinite(g[c]) && Number.isFinite(g[l]) && (y === void 0 || g[y] !== Me.groupByOutKeyword);
2681
2681
  }), m ?? [];
2682
2682
  }
2683
- async function gr(i) {
2684
- const { queryObject: e, queryConfig: t, chartConfig: a, featureCount: n, abortKey: r } = i, s = a.series[0], { x: o, y: c } = s, l = z(e);
2683
+ async function gr(t) {
2684
+ const { queryObject: e, queryConfig: i, chartConfig: a, featureCount: n, abortKey: r } = t, s = a.series[0], { x: o, y: c } = s, l = z(e);
2685
2685
  let u = [];
2686
2686
  const f = ((await Te(e))?.filter((p) => We(p) && p.name !== o && p.name !== c) ?? []).map(
2687
2687
  (p) => p.name
@@ -2693,7 +2693,7 @@ async function gr(i) {
2693
2693
  Z(p) || g.push(p), Z(C) || g.push(C);
2694
2694
  }
2695
2695
  const y = {
2696
- ...t,
2696
+ ...i,
2697
2697
  orderByFields: [`${o} ${fe.Ascending}`],
2698
2698
  outFields: g
2699
2699
  };
@@ -2704,10 +2704,10 @@ async function gr(i) {
2704
2704
  abortKey: r
2705
2705
  }), u;
2706
2706
  }
2707
- async function yr(i) {
2707
+ async function yr(t) {
2708
2708
  let e;
2709
2709
  const {
2710
- chartConfig: t,
2710
+ chartConfig: i,
2711
2711
  queryConfig: a,
2712
2712
  queryObject: n,
2713
2713
  statsMap: r,
@@ -2716,11 +2716,11 @@ async function yr(i) {
2716
2716
  useQueryAttributeBins: c,
2717
2717
  errorStrings: l,
2718
2718
  abortKey: u
2719
- } = i, d = t.series[0], { x: f, y: m } = d;
2719
+ } = t, d = i.series[0], { x: f, y: m } = d;
2720
2720
  if (!Number.isNaN(s) && s > 0) {
2721
2721
  const g = { ...a };
2722
2722
  g.where = Q([g.where, `${f} IS NOT NULL`, `${m} IS NOT NULL`]), o ? e = await nr({
2723
- chartConfig: t,
2723
+ chartConfig: i,
2724
2724
  queryObject: n,
2725
2725
  queryConfig: g,
2726
2726
  statsMap: r,
@@ -2729,7 +2729,7 @@ async function yr(i) {
2729
2729
  abortKey: u
2730
2730
  }) : e = await gr({
2731
2731
  queryObject: n,
2732
- chartConfig: t,
2732
+ chartConfig: i,
2733
2733
  queryConfig: g,
2734
2734
  featureCount: s,
2735
2735
  abortKey: u
@@ -2737,10 +2737,10 @@ async function yr(i) {
2737
2737
  }
2738
2738
  return e;
2739
2739
  }
2740
- async function xi(i) {
2741
- const { chartConfig: e, queryConfig: t, queryObject: a, sortData: n, calculateTrendLine: r, options: s, abortKey: o } = i, c = await dr({
2740
+ async function xi(t) {
2741
+ const { chartConfig: e, queryConfig: i, queryObject: a, sortData: n, calculateTrendLine: r, options: s, abortKey: o } = t, c = await dr({
2742
2742
  chartConfig: e,
2743
- queryConfig: t,
2743
+ queryConfig: i,
2744
2744
  queryObject: a,
2745
2745
  abortKey: o
2746
2746
  }), { queryNumberOfFeatures: l, yStep: u } = b.scatterplotAggregationFields, { maxScatterPointsBeforeAggregation: d } = Re(s?.chartLimits), f = c?.get(l) ?? Number.NaN, m = f >= d, g = na(a);
@@ -2749,11 +2749,11 @@ async function xi(i) {
2749
2749
  chartConfig: e,
2750
2750
  queryObject: a,
2751
2751
  options: s,
2752
- queryConfig: t,
2752
+ queryConfig: i,
2753
2753
  abortKey: o
2754
2754
  });
2755
2755
  const y = await yr({
2756
- ...i,
2756
+ ...t,
2757
2757
  statsMap: c,
2758
2758
  numberOfFeatures: f,
2759
2759
  isAggregationMode: m,
@@ -2774,15 +2774,15 @@ async function xi(i) {
2774
2774
  const { r2: C, trendLinePoints: F } = r !== !1 ? await ur({
2775
2775
  data: p,
2776
2776
  statsMap: c,
2777
- queryConfig: t,
2777
+ queryConfig: i,
2778
2778
  options: s,
2779
2779
  queryObject: a,
2780
2780
  chartConfig: e
2781
2781
  }) : b.scatterplotSeries;
2782
2782
  return { dataItems: p, r2: C, trendLinePoints: F, aggregated: m };
2783
2783
  }
2784
- function pr(i) {
2785
- const { itemsA: e, itemsB: t, isPieFromFields: a, x: n, y: r, outStatisticFieldName: s } = i, o = Ce(e), c = Ce(t);
2784
+ function pr(t) {
2785
+ const { itemsA: e, itemsB: i, isPieFromFields: a, x: n, y: r, outStatisticFieldName: s } = t, o = Ce(e), c = Ce(i);
2786
2786
  let l = !1;
2787
2787
  if (o === void 0 && c !== void 0 || o !== void 0 && c === void 0)
2788
2788
  l = !0;
@@ -2816,19 +2816,19 @@ function pr(i) {
2816
2816
  }
2817
2817
  return l;
2818
2818
  }
2819
- function hr(i) {
2820
- const { chartConfig: e, currentSelectionDataItems: t, options: a } = i, { selectionData: n } = a ?? {};
2819
+ function hr(t) {
2820
+ const { chartConfig: e, currentSelectionDataItems: i, options: a } = t, { selectionData: n } = a ?? {};
2821
2821
  let r = [];
2822
2822
  if (e !== void 0) {
2823
2823
  const s = e.series, o = V(s), { selectionItems: c } = n ?? {};
2824
2824
  if (c !== void 0 && pr({
2825
2825
  itemsA: c,
2826
- itemsB: t,
2826
+ itemsB: i,
2827
2827
  isPieFromFields: V(e.series) === h.PieFromFields,
2828
2828
  x: e.series[0].x,
2829
2829
  y: "y" in e.series[0] ? e.series[0].y.toString() : void 0,
2830
2830
  outStatisticFieldName: e.series[0].query?.outStatistics?.[0]?.outStatisticFieldName
2831
- }) ? r = c : r = t ?? [], s.length > 1 && o !== h.BarAndLineNoAggregation && o !== h.BarAndLineSplitByNoAggregation) {
2831
+ }) ? r = c : r = i ?? [], s.length > 1 && o !== h.BarAndLineNoAggregation && o !== h.BarAndLineSplitByNoAggregation) {
2832
2832
  const l = K(s[0].query?.where);
2833
2833
  r = Lt({ data: r, x: s[0].x, splitByField: l });
2834
2834
  }
@@ -2839,55 +2839,55 @@ function hr(i) {
2839
2839
  }
2840
2840
  return r ?? [];
2841
2841
  }
2842
- function Be(i, e) {
2843
- let t = "";
2844
- if (i.trim() !== "" && e !== void 0)
2842
+ function Be(t, e) {
2843
+ let i = "";
2844
+ if (t.trim() !== "" && e !== void 0)
2845
2845
  if (e === null)
2846
- t = `${i} IS NULL`;
2846
+ i = `${t} IS NULL`;
2847
2847
  else {
2848
2848
  const a = typeof e != "number" ? "'" : "";
2849
- t = `${i}=${a}${e.toString()}${a}`;
2849
+ i = `${t}=${a}${e.toString()}${a}`;
2850
2850
  }
2851
- return t;
2851
+ return i;
2852
2852
  }
2853
- function Sr(i) {
2854
- const { dataContext: e, xAxisField: t, yAxisField: a, options: n } = i;
2853
+ function Sr(t) {
2854
+ const { dataContext: e, xAxisField: i, yAxisField: a, options: n } = t;
2855
2855
  let r = "";
2856
2856
  const { dataContextXMinField: s, dataContextXMaxField: o, dataContextYMinField: c, dataContextYMaxField: l } = b.scatterplotAggregationFields;
2857
2857
  if (ui({ dataContext: e, chartLimits: n?.chartLimits })) {
2858
- const { [s]: u, [o]: d } = e, f = t !== a ? e[c] : u, m = t !== a ? e[l] : d;
2858
+ const { [s]: u, [o]: d } = e, f = i !== a ? e[c] : u, m = i !== a ? e[l] : d;
2859
2859
  if (!Number.isNaN(u) && !Number.isNaN(d) && !Number.isNaN(f) && !Number.isNaN(m)) {
2860
2860
  const g = [];
2861
- u === d ? g.push(`${t}=${u?.toString()}`) : (g.push(`${t}>=${u?.toString()}`), g.push(`${t}<=${d?.toString()}`)), f === m ? g.push(`${a}=${f?.toString()}`) : (g.push(`${a}>=${f?.toString()}`), g.push(`${a}<=${m?.toString()}`)), r = Q(g);
2861
+ u === d ? g.push(`${i}=${u?.toString()}`) : (g.push(`${i}>=${u?.toString()}`), g.push(`${i}<=${d?.toString()}`)), f === m ? g.push(`${a}=${f?.toString()}`) : (g.push(`${a}>=${f?.toString()}`), g.push(`${a}<=${m?.toString()}`)), r = Q(g);
2862
2862
  }
2863
2863
  } else
2864
2864
  r = Q([
2865
- Se({ where: Be(t, e[t]) }),
2865
+ Se({ where: Be(i, e[i]) }),
2866
2866
  a !== void 0 ? Se({ where: Be(a, e[a]) }) : ""
2867
2867
  ]);
2868
2868
  return r;
2869
2869
  }
2870
- function Ci(i, e) {
2871
- let t = "";
2870
+ function Ci(t, e) {
2871
+ let i = "";
2872
2872
  const a = e[b.originalServerBinningRange] ?? e[b.dateBinningRange];
2873
2873
  if (vt(a) && a.length === 2) {
2874
2874
  let [n, r] = a;
2875
2875
  typeof n == "number" && typeof r == "number" && Number.isFinite(n) && Number.isFinite(r) && (n = Ve(n), r = Ve(r));
2876
2876
  const s = e[b.lastTemporalBin] === !0 ? "<=" : "<";
2877
- t = `${i}>='${n}' AND ${i}${s}'${r}'`;
2877
+ i = `${t}>='${n}' AND ${t}${s}'${r}'`;
2878
2878
  }
2879
- return t;
2879
+ return i;
2880
2880
  }
2881
- function Bi(i, e) {
2882
- let t = "";
2883
- if (Number.isFinite(i)) {
2881
+ function Bi(t, e) {
2882
+ let i = "";
2883
+ if (Number.isFinite(t)) {
2884
2884
  const a = 1 / 10 ** b.queryMaxFloatPrecision;
2885
- t = `${e}>=${i - a} AND ${e}<=${i + a}`;
2885
+ i = `${e}>=${t - a} AND ${e}<=${t + a}`;
2886
2886
  }
2887
- return t;
2887
+ return i;
2888
2888
  }
2889
- function vi(i) {
2890
- const { xAxisField: e, yAxisField: t, splitBy: a, dataContext: n, xAxisFieldType: r, chartConfig: s } = i;
2889
+ function vi(t) {
2890
+ const { xAxisField: e, yAxisField: i, splitBy: a, dataContext: n, xAxisFieldType: r, chartConfig: s } = t;
2891
2891
  let o = "";
2892
2892
  if (e !== void 0 && e !== b.boxPlot.boxPlotCategory) {
2893
2893
  let d = ze({
@@ -2905,7 +2905,7 @@ function vi(i) {
2905
2905
  const c = Se({ where: a ?? "", normalize: !1, escape: !0 });
2906
2906
  let l = "";
2907
2907
  if (Qa(s) === !0) {
2908
- const d = V(s.series) === h.BoxPlotMultiFieldsAndCategory ? t : void 0, f = U({
2908
+ const d = V(s.series) === h.BoxPlotMultiFieldsAndCategory ? i : void 0, f = U({
2909
2909
  key: I.Min,
2910
2910
  showOutliers: !0,
2911
2911
  splitBy: a,
@@ -2915,7 +2915,7 @@ function vi(i) {
2915
2915
  showOutliers: !0,
2916
2916
  splitBy: a,
2917
2917
  y: d
2918
- }), g = e === b.boxPlot.boxPlotCategory ? n[e] : t;
2918
+ }), g = e === b.boxPlot.boxPlotCategory ? n[e] : i;
2919
2919
  if (!Z(g)) {
2920
2920
  const y = n[f], p = n[m];
2921
2921
  Number.isFinite(y) && Number.isFinite(p) && (l = `${g?.toString()}>=${y?.toString()} AND ${g?.toString()}<=${p?.toString()}`);
@@ -2923,8 +2923,8 @@ function vi(i) {
2923
2923
  }
2924
2924
  return Q([o, c, l]);
2925
2925
  }
2926
- function Fr(i) {
2927
- const { xAxisField: e, splitBy: t, dataContext: a, xAxisFieldType: n, chartConfig: r } = i;
2926
+ function Fr(t) {
2927
+ const { xAxisField: e, splitBy: i, dataContext: a, xAxisFieldType: n, chartConfig: r } = t;
2928
2928
  let s = "";
2929
2929
  if (b.dateBinningRange in a)
2930
2930
  s = Ci(e, a);
@@ -2941,24 +2941,24 @@ function Fr(i) {
2941
2941
  escape: !0
2942
2942
  }));
2943
2943
  }
2944
- const o = Se({ where: t ?? "", normalize: !1, escape: !0 });
2944
+ const o = Se({ where: i ?? "", normalize: !1, escape: !0 });
2945
2945
  return Q([s, o]);
2946
2946
  }
2947
- function br(i) {
2948
- const { xAxisField: e, dataContext: t, chartConfig: a } = i;
2949
- let n = b.typeOrDomainIdValue in t ? t[b.typeOrDomainIdValue] : t[b.originalCategoryValue];
2950
- return n === void 0 && (n = t[e]), V(a.series) === h.PieFromFields ? "" : Se({
2947
+ function br(t) {
2948
+ const { xAxisField: e, dataContext: i, chartConfig: a } = t;
2949
+ let n = b.typeOrDomainIdValue in i ? i[b.typeOrDomainIdValue] : i[b.originalCategoryValue];
2950
+ return n === void 0 && (n = i[e]), V(a.series) === h.PieFromFields ? "" : Se({
2951
2951
  where: Be(e, n),
2952
2952
  normalize: !1,
2953
2953
  escape: !0
2954
2954
  });
2955
2955
  }
2956
- function Qt(i) {
2957
- const { field: e, fieldType: t, fieldValue: a, unit: n, outTimeZone: r, dataTimeZone: s, runsOnClientQueryEngine: o } = i;
2956
+ function Qt(t) {
2957
+ const { field: e, fieldType: i, fieldValue: a, unit: n, outTimeZone: r, dataTimeZone: s, runsOnClientQueryEngine: o } = t;
2958
2958
  let c;
2959
2959
  const { expression: l } = ti({
2960
2960
  field: e,
2961
- fieldType: t,
2961
+ fieldType: i,
2962
2962
  unit: n,
2963
2963
  addIntervalStatement: !0,
2964
2964
  outTimeZone: r,
@@ -2967,16 +2967,16 @@ function Qt(i) {
2967
2967
  });
2968
2968
  return l && (c = `${l}=${a}`), c;
2969
2969
  }
2970
- function xr(i) {
2970
+ function xr(t) {
2971
2971
  const {
2972
2972
  xAxisFieldType: e,
2973
- yAxisFieldType: t,
2973
+ yAxisFieldType: i,
2974
2974
  dataContext: a,
2975
2975
  chartConfig: n,
2976
2976
  outTimeZone: r,
2977
2977
  dataTimeZone: s,
2978
2978
  runsOnClientQueryEngine: o
2979
- } = i, c = n.series[0];
2979
+ } = t, c = n.series[0];
2980
2980
  let l = "";
2981
2981
  if (c.type === S.HeatSeries) {
2982
2982
  let u, d;
@@ -2999,19 +2999,19 @@ function xr(i) {
2999
2999
  escape: !0
3000
3000
  }) : d = Qt({
3001
3001
  field: c.y,
3002
- fieldType: t,
3002
+ fieldType: i,
3003
3003
  fieldValue: m,
3004
3004
  unit: c.yTemporalBinning?.unit
3005
3005
  }), u && (l = Q([l, u])), d && (l = Q([l, d]));
3006
3006
  }
3007
3007
  return l;
3008
3008
  }
3009
- function Cr(i) {
3010
- const { xAxisField: e, dataContext: t, chartConfig: a } = i;
3009
+ function Cr(t) {
3010
+ const { xAxisField: e, dataContext: i, chartConfig: a } = t;
3011
3011
  let n = "";
3012
- const r = a.series[0], { minValue: s, maxValue: o } = t;
3012
+ const r = a.series[0], { minValue: s, maxValue: o } = i;
3013
3013
  if (Number.isFinite(s) && Number.isFinite(o) && r.type === S.HistogramSeries) {
3014
- const c = Ja(e, r.dataTransformationType), l = t.isLastBin ? "<=" : "<";
3014
+ const c = Ja(e, r.dataTransformationType), l = i.isLastBin ? "<=" : "<";
3015
3015
  n = Q([
3016
3016
  `${c}>=${s?.toString()}`,
3017
3017
  `${c}${l}${o?.toString()}`
@@ -3019,38 +3019,38 @@ function Cr(i) {
3019
3019
  }
3020
3020
  return n;
3021
3021
  }
3022
- function Xo(i) {
3023
- const { chartConfig: e } = i, t = W(e.series);
3022
+ function Xo(t) {
3023
+ const { chartConfig: e } = t, i = W(e.series);
3024
3024
  let a = "";
3025
- switch (t) {
3025
+ switch (i) {
3026
3026
  case S.ScatterSeries:
3027
- a = Sr(i);
3027
+ a = Sr(t);
3028
3028
  break;
3029
3029
  case S.HeatSeries:
3030
- a = xr(i);
3030
+ a = xr(t);
3031
3031
  break;
3032
3032
  case S.RadarSeries:
3033
3033
  case S.BarSeries:
3034
3034
  case S.LineSeries:
3035
3035
  case S.ComboLineAndBarSeries:
3036
- a = Fr(i);
3036
+ a = Fr(t);
3037
3037
  break;
3038
3038
  case S.BoxPlotSeries:
3039
- a = vi(i);
3039
+ a = vi(t);
3040
3040
  break;
3041
3041
  case S.HistogramSeries:
3042
- a = Cr(i);
3042
+ a = Cr(t);
3043
3043
  break;
3044
3044
  case S.PieSeries:
3045
- a = br(i);
3045
+ a = br(t);
3046
3046
  break;
3047
3047
  }
3048
3048
  return a;
3049
3049
  }
3050
- async function Br(i) {
3051
- const { numberOfQueries: e, selectionOIDs: t, chartConfig: a, queryConfig: n, options: r, errorStrings: s, queryObject: o } = i, { setTimeBinningInfoWhenNotProvided: c } = r ?? {}, { series: l } = a, u = W(l), d = [], { maxOIDsPerSelectionQuery: f } = Ue();
3050
+ async function Br(t) {
3051
+ const { numberOfQueries: e, selectionOIDs: i, chartConfig: a, queryConfig: n, options: r, errorStrings: s, queryObject: o } = t, { setTimeBinningInfoWhenNotProvided: c } = r ?? {}, { series: l } = a, u = W(l), d = [], { maxOIDsPerSelectionQuery: f } = Ue();
3052
3052
  for (let g = 0; g < e; g += 1) {
3053
- const y = g * f, p = (g + 1) * f - 1, C = t.slice(y === 0 ? 0 : y - 1, p), F = { ...n };
3053
+ const y = g * f, p = (g + 1) * f - 1, C = i.slice(y === 0 ? 0 : y - 1, p), F = { ...n };
3054
3054
  switch (F.objectIds = C, u) {
3055
3055
  case S.HeatSeries:
3056
3056
  d.push(
@@ -3134,11 +3134,11 @@ async function Br(i) {
3134
3134
  }
3135
3135
  return await Promise.all(d);
3136
3136
  }
3137
- function vr(i) {
3138
- const { dataFetchingResults: e, numberOfQueries: t, series: a } = i, n = W(a), r = V(a);
3137
+ function vr(t) {
3138
+ const { dataFetchingResults: e, numberOfQueries: i, series: a } = t, n = W(a), r = V(a);
3139
3139
  let s = [];
3140
3140
  const o = /* @__PURE__ */ new Map();
3141
- for (let c = 0; c < t; c += 1) {
3141
+ for (let c = 0; c < i; c += 1) {
3142
3142
  const l = e[c];
3143
3143
  if (l !== void 0) {
3144
3144
  let u;
@@ -3150,7 +3150,7 @@ function vr(i) {
3150
3150
  }
3151
3151
  if (u)
3152
3152
  if (a[0].type === S.HeatSeries)
3153
- t > 0 && u.forEach((d) => {
3153
+ i > 0 && u.forEach((d) => {
3154
3154
  o.set(
3155
3155
  `${d[k.xField]}-${d[k.yField]}`,
3156
3156
  d
@@ -3177,17 +3177,17 @@ function vr(i) {
3177
3177
  }
3178
3178
  return o.size > 0 && (s = Array.from(o.values())), s;
3179
3179
  }
3180
- async function Nr(i) {
3180
+ async function Nr(t) {
3181
3181
  const {
3182
3182
  chartConfig: e,
3183
- queryConfig: t,
3183
+ queryConfig: i,
3184
3184
  chartData: a,
3185
3185
  currentSelectionOIDs: n,
3186
3186
  dataWasUpdated: r,
3187
3187
  queryObject: s,
3188
3188
  options: o,
3189
3189
  errorStrings: c
3190
- } = i, { series: l } = e, { selectionData: u, viewExtentUpdated: d, returnSelectionOIDs: f, chartLimits: m } = o ?? {}, { selectionItems: g, selectionOIDs: y } = u ?? {};
3190
+ } = t, { series: l } = e, { selectionData: u, viewExtentUpdated: d, returnSelectionOIDs: f, chartLimits: m } = o ?? {}, { selectionItems: g, selectionOIDs: y } = u ?? {};
3191
3191
  let p;
3192
3192
  const C = W(l), F = C !== S.HistogramSeries && C !== S.HeatSeries && g !== void 0 && g.length > 0 && !(l[0].x in g[0]) && !(ae in g[0]) && !(b.boxPlot.boxPlotCategory in g[0]);
3193
3193
  if (d !== !0 && f !== !1 && y !== void 0 && y.length > 0 && (r === !0 || F || y.length !== n?.length || !Le(y, n))) {
@@ -3197,11 +3197,11 @@ async function Nr(i) {
3197
3197
  const v = N[Y.uniqueIdsName];
3198
3198
  return typeof v == "number" ? y?.includes(v) : !1;
3199
3199
  });
3200
- else if (y?.[0] !== void 0 && t !== void 0) {
3200
+ else if (y?.[0] !== void 0 && i !== void 0) {
3201
3201
  const { maxOIDsPerSelectionQuery: N } = Ue(), v = Math.ceil(y.length / N), A = await Br({
3202
3202
  numberOfQueries: v,
3203
3203
  selectionOIDs: y,
3204
- queryConfig: t,
3204
+ queryConfig: i,
3205
3205
  queryObject: s,
3206
3206
  options: o,
3207
3207
  errorStrings: c,
@@ -3216,19 +3216,19 @@ async function Nr(i) {
3216
3216
  }
3217
3217
  return p;
3218
3218
  }
3219
- function* Tr(i) {
3220
- const { filterList: e, queryObject: t, queryConfig: a } = i;
3219
+ function* Tr(t) {
3220
+ const { filterList: e, queryObject: i, queryConfig: a } = t;
3221
3221
  for (let n = 0; n < e.length; n += 1) {
3222
3222
  const r = { ...a };
3223
3223
  r.where = Q([r.where, e[n]]), yield la({
3224
- queryObject: t,
3224
+ queryObject: i,
3225
3225
  queryConfig: r,
3226
3226
  uniqueFeature: !0
3227
3227
  });
3228
3228
  }
3229
3229
  }
3230
- async function Zo(i) {
3231
- const { whereList: e, queryObject: t, queryFilter: a, queryConfig: n } = i;
3230
+ async function Zo(t) {
3231
+ const { whereList: e, queryObject: i, queryFilter: a, queryConfig: n } = t;
3232
3232
  let r = [];
3233
3233
  if (e.length > 0) {
3234
3234
  const s = Ue().maxElementsPerSelectionQuery, o = [], c = Math.ceil(e.length / s);
@@ -3239,15 +3239,15 @@ async function Zo(i) {
3239
3239
  }
3240
3240
  const l = Tr({
3241
3241
  filterList: o,
3242
- queryObject: t,
3242
+ queryObject: i,
3243
3243
  queryConfig: n
3244
3244
  });
3245
3245
  r = (await Promise.all(l)).flat(), r = Array.from(new Set(r));
3246
3246
  }
3247
3247
  return r;
3248
3248
  }
3249
- async function Ar(i) {
3250
- const { queryObject: e, queryConfig: t, chartConfig: a, currentSelectionDataItems: n, options: r, errorStrings: s, abortKey: o } = i, c = V(a.series);
3249
+ async function Ar(t) {
3250
+ const { queryObject: e, queryConfig: i, chartConfig: a, currentSelectionDataItems: n, options: r, errorStrings: s, abortKey: o } = t, c = V(a.series);
3251
3251
  let l = { valid: !0, data: { dataItems: [] } };
3252
3252
  if (n !== void 0 && n.length > 0) {
3253
3253
  const u = we(a), { x: d } = u, f = "y" in u ? u.y : "";
@@ -3299,7 +3299,7 @@ async function Ar(i) {
3299
3299
  const { objectIdField: x } = p;
3300
3300
  y.push(`${x} IN (${g.join(",")})`);
3301
3301
  }
3302
- const C = y.join(" OR "), F = { ...t };
3302
+ const C = y.join(" OR "), F = { ...i };
3303
3303
  F.where = Q([F.where, C]), l = await Pt({
3304
3304
  queryObject: e,
3305
3305
  chartConfig: a,
@@ -3311,10 +3311,10 @@ async function Ar(i) {
3311
3311
  }
3312
3312
  return l;
3313
3313
  }
3314
- async function Pr(i) {
3314
+ async function Pr(t) {
3315
3315
  const {
3316
3316
  queryObject: e,
3317
- queryConfig: t,
3317
+ queryConfig: i,
3318
3318
  chartConfig: a,
3319
3319
  currentSelectionDataItems: n,
3320
3320
  currentSelectionOIDs: r,
@@ -3322,11 +3322,11 @@ async function Pr(i) {
3322
3322
  options: o,
3323
3323
  errorStrings: c,
3324
3324
  abortKey: l
3325
- } = i, { series: u } = a, d = W(u), f = ye(a);
3325
+ } = t, { series: u } = a, d = W(u), f = ye(a);
3326
3326
  let m = { valid: !0 }, g;
3327
3327
  di({ currentSelectionOIDs: r, options: o }) ? g = await Nr({
3328
3328
  chartConfig: a,
3329
- queryConfig: t,
3329
+ queryConfig: i,
3330
3330
  chartData: s,
3331
3331
  currentSelectionOIDs: r,
3332
3332
  dataWasUpdated: !0,
@@ -3350,7 +3350,7 @@ async function Pr(i) {
3350
3350
  m.count = g.length, y = !0;
3351
3351
  break;
3352
3352
  case S.BoxPlotSeries:
3353
- m = await Ar(i);
3353
+ m = await Ar(t);
3354
3354
  break;
3355
3355
  case S.BarSeries:
3356
3356
  case S.ComboLineAndBarSeries:
@@ -3363,7 +3363,7 @@ async function Pr(i) {
3363
3363
  }))
3364
3364
  m.data = { dataItems: g }, m.count = g.length * u.length, y = !0;
3365
3365
  else {
3366
- const p = { ...t };
3366
+ const p = { ...i };
3367
3367
  if (n !== void 0 && n.length > 0) {
3368
3368
  const F = n.map(
3369
3369
  (B) => Ci(u[0].x, B)
@@ -3392,7 +3392,7 @@ async function Pr(i) {
3392
3392
  const { x: p } = u[0], C = g.map((B, N) => {
3393
3393
  const { minValue: v, maxValue: A } = B, w = N === g.length - 1 ? "<=" : "<";
3394
3394
  return `${p} >= ${v} AND ${p} ${w} ${A}`;
3395
- }), F = Q(C, "OR"), x = { ...t };
3395
+ }), F = Q(C, "OR"), x = { ...i };
3396
3396
  x.where = Q([x.where, F]), m = await Fi({
3397
3397
  queryObject: e,
3398
3398
  chartConfig: a,
@@ -3423,15 +3423,15 @@ async function Pr(i) {
3423
3423
  chartConfig: a
3424
3424
  }), m;
3425
3425
  }
3426
- async function Pt(i) {
3427
- const { queryObject: e, chartConfig: t, queryConfig: a, options: n, errorStrings: r, abortKey: s } = i;
3426
+ async function Pt(t) {
3427
+ const { queryObject: e, chartConfig: i, queryConfig: a, options: n, errorStrings: r, abortKey: s } = t;
3428
3428
  let o = { valid: !0 };
3429
- const c = He(t), l = await Bt({
3429
+ const c = He(i), l = await Bt({
3430
3430
  queryObject: e,
3431
3431
  queryConfig: a,
3432
3432
  fetchFullBoxPlotData: !c,
3433
3433
  options: n,
3434
- chartConfig: t,
3434
+ chartConfig: i,
3435
3435
  abortKey: s
3436
3436
  });
3437
3437
  if (!c)
@@ -3439,7 +3439,7 @@ async function Pt(i) {
3439
3439
  else {
3440
3440
  const u = { dataItems: [] };
3441
3441
  u.meanLines = l.data.dataItems;
3442
- const d = hn(t), f = (await Bt({
3442
+ const d = hn(i), f = (await Bt({
3443
3443
  queryObject: e,
3444
3444
  queryConfig: a,
3445
3445
  fetchFullBoxPlotData: !0,
@@ -3451,18 +3451,18 @@ async function Pt(i) {
3451
3451
  }
3452
3452
  return o;
3453
3453
  }
3454
- async function Lr(i) {
3455
- const { queryObject: e, chartConfig: t, queryConfig: a, binnedServerData: n, options: r, errorStrings: s, abortKey: o, fieldList: c } = i, { series: l } = t, { filterBySelection: u } = r ?? {}, d = W(l);
3454
+ async function Lr(t) {
3455
+ const { queryObject: e, chartConfig: i, queryConfig: a, binnedServerData: n, options: r, errorStrings: s, abortKey: o, fieldList: c } = t, { series: l } = i, { filterBySelection: u } = r ?? {}, d = W(l);
3456
3456
  let f = { valid: !0 };
3457
3457
  if (u === !0)
3458
- f = await Pr(i);
3458
+ f = await Pr(t);
3459
3459
  else
3460
3460
  switch (d) {
3461
3461
  case S.HeatSeries:
3462
- f = await Di(i);
3462
+ f = await Di(t);
3463
3463
  break;
3464
3464
  case S.BoxPlotSeries:
3465
- f = await Pt(i);
3465
+ f = await Pt(t);
3466
3466
  break;
3467
3467
  case S.BarSeries:
3468
3468
  case S.ComboLineAndBarSeries:
@@ -3472,13 +3472,13 @@ async function Lr(i) {
3472
3472
  const m = {
3473
3473
  queryObject: e,
3474
3474
  queryConfig: a,
3475
- chartConfig: t,
3475
+ chartConfig: i,
3476
3476
  options: r,
3477
3477
  abortKey: o,
3478
3478
  fieldList: c
3479
3479
  };
3480
3480
  Ne({
3481
- xAxisValueFormatType: ye(t),
3481
+ xAxisValueFormatType: ye(i),
3482
3482
  setTimeBinningInfoWhenNotProvided: r?.setTimeBinningInfoWhenNotProvided,
3483
3483
  seriesConfig: l[0]
3484
3484
  }) ? (n !== void 0 && (m.binnedServerData = n), f = await wt(m)) : f = await Bt(m);
@@ -3489,7 +3489,7 @@ async function Lr(i) {
3489
3489
  queryObject: e,
3490
3490
  queryConfig: a,
3491
3491
  options: r,
3492
- chartConfig: t,
3492
+ chartConfig: i,
3493
3493
  errorStrings: s,
3494
3494
  abortKey: o
3495
3495
  });
@@ -3498,7 +3498,7 @@ async function Lr(i) {
3498
3498
  f = await Fi({
3499
3499
  queryObject: e,
3500
3500
  queryConfig: a,
3501
- chartConfig: t,
3501
+ chartConfig: i,
3502
3502
  options: r,
3503
3503
  abortKey: o,
3504
3504
  errorStrings: s
@@ -3507,7 +3507,7 @@ async function Lr(i) {
3507
3507
  case S.GaugeSeries:
3508
3508
  f = await jn({
3509
3509
  queryObject: e,
3510
- chartConfig: t,
3510
+ chartConfig: i,
3511
3511
  queryConfig: a,
3512
3512
  options: r,
3513
3513
  abortKey: o
@@ -3516,10 +3516,10 @@ async function Lr(i) {
3516
3516
  }
3517
3517
  return f;
3518
3518
  }
3519
- async function el(i) {
3519
+ async function el(t) {
3520
3520
  const {
3521
3521
  queryObject: e,
3522
- chartConfig: t,
3522
+ chartConfig: i,
3523
3523
  abortKey: a,
3524
3524
  currentSelectionDataItems: n,
3525
3525
  currentSelectionOIDs: r,
@@ -3528,16 +3528,16 @@ async function el(i) {
3528
3528
  options: c,
3529
3529
  errorStrings: l,
3530
3530
  fieldList: u
3531
- } = i;
3531
+ } = t;
3532
3532
  let d = { valid: !0 };
3533
3533
  const f = ii({
3534
3534
  queryObject: e,
3535
- chartConfig: t,
3535
+ chartConfig: i,
3536
3536
  runtimeDataFilters: c?.runtimeDataFilters,
3537
3537
  ignoreViewExtent: c?.ignoreViewExtent
3538
3538
  });
3539
3539
  return ca(a), d = await Lr({
3540
- chartConfig: t,
3540
+ chartConfig: i,
3541
3541
  queryObject: e,
3542
3542
  queryConfig: f,
3543
3543
  currentChartData: s,
@@ -3550,20 +3550,20 @@ async function el(i) {
3550
3550
  fieldList: u
3551
3551
  }), d.queryConfig = f, d;
3552
3552
  }
3553
- function Mr(i, e, t) {
3553
+ function Mr(t, e, i) {
3554
3554
  const a = /* @__PURE__ */ new Map();
3555
- for (let r = 0; r < i.length; r += 1)
3556
- a.set(i[r], { [t]: i[r] });
3555
+ for (let r = 0; r < t.length; r += 1)
3556
+ a.set(t[r], { [i]: t[r] });
3557
3557
  for (let r = 0; r < e.length; r += 1) {
3558
- const s = e[r][t];
3558
+ const s = e[r][i];
3559
3559
  (typeof s == "string" || typeof s == "number") && a.set(s, e[r]);
3560
3560
  }
3561
3561
  return [...a.values()];
3562
3562
  }
3563
- async function wr(i) {
3564
- const { seriesData: e, chartConfig: t, queryConfig: a, queryObject: n, categoryOrDateCount: r, behaviorAfterLimit: s, abortKey: o } = i, { series: c } = t;
3563
+ async function wr(t) {
3564
+ const { seriesData: e, chartConfig: i, queryConfig: a, queryObject: n, categoryOrDateCount: r, behaviorAfterLimit: s, abortKey: o } = t, { series: c } = i;
3565
3565
  let l = e;
3566
- const u = V(c), d = ye(t);
3566
+ const u = V(c), d = ye(i);
3567
3567
  if (s !== $e.RenderUpToTheLimit && n !== void 0 && r !== void 0 && r > e.length && u !== h.BarAndLineFromFields && u !== h.BarAndLineNoAggregation && u !== h.PieNoAggregation && d === S.CategoryAxisFormat) {
3568
3568
  const { x: f } = c[0], m = {
3569
3569
  ...a,
@@ -3581,8 +3581,8 @@ async function wr(i) {
3581
3581
  }
3582
3582
  return l;
3583
3583
  }
3584
- function Dr(i, e) {
3585
- const t = i, { series: a } = e;
3584
+ function Dr(t, e) {
3585
+ const i = t, { series: a } = e;
3586
3586
  if (ye(e) === S.CategoryAxisFormat && a[0].query?.outStatistics?.[0].statisticType === P.Count) {
3587
3587
  const n = a.reduce(
3588
3588
  (r, s) => {
@@ -3591,10 +3591,10 @@ function Dr(i, e) {
3591
3591
  },
3592
3592
  {}
3593
3593
  );
3594
- for (let r = 0; r < i.length; r += 1)
3595
- i[r] = { ...n, ...i[r] };
3594
+ for (let r = 0; r < t.length; r += 1)
3595
+ t[r] = { ...n, ...t[r] };
3596
3596
  }
3597
- return t;
3597
+ return i;
3598
3598
  }
3599
3599
  const Ni = [
3600
3600
  h.BarAndLineMonoField,
@@ -3605,15 +3605,15 @@ const Ni = [
3605
3605
  h.BoxPlotMultiFieldsAndCategory,
3606
3606
  h.BoxPlotMonoFieldAndCategoryAndSplitBy
3607
3607
  ], Or = 8e3;
3608
- function Ti(i, e) {
3609
- let t = i;
3610
- return e === j.Week ? t /= 7 : e === j.Month ? t /= 30 : e === j.Year && (t /= 365), t = Math.ceil(t), t;
3608
+ function Ti(t, e) {
3609
+ let i = t;
3610
+ return e === j.Week ? i /= 7 : e === j.Month ? i /= 30 : e === j.Year && (i /= 365), i = Math.ceil(i), i;
3611
3611
  }
3612
- function ve(i) {
3613
- const { date: e, unit: t, nextOrPrevious: a, size: n } = i;
3612
+ function ve(t) {
3613
+ const { date: e, unit: i, nextOrPrevious: a, size: n } = t;
3614
3614
  if (n !== void 0 && Number.isFinite(n)) {
3615
3615
  const r = a === "next" ? n : -n;
3616
- switch (t) {
3616
+ switch (i) {
3617
3617
  case j.Second:
3618
3618
  return ie.fromMillis(e).plus({ seconds: r }).valueOf();
3619
3619
  case j.Minute:
@@ -3631,8 +3631,8 @@ function ve(i) {
3631
3631
  }
3632
3632
  return e;
3633
3633
  }
3634
- function qr(i) {
3635
- const { binFirstOrLastIndex: e, data: t, x: a, timeIntervalInfo: n } = i, { unit: r, size: s } = n, o = r === j.Week ? (s ?? 1) * 7 : s, c = t[e][a];
3634
+ function qr(t) {
3635
+ const { binFirstOrLastIndex: e, data: i, x: a, timeIntervalInfo: n } = t, { unit: r, size: s } = n, o = r === j.Week ? (s ?? 1) * 7 : s, c = i[e][a];
3636
3636
  let l = e;
3637
3637
  const u = ve({
3638
3638
  date: c,
@@ -3640,18 +3640,18 @@ function qr(i) {
3640
3640
  size: o,
3641
3641
  nextOrPrevious: "next"
3642
3642
  });
3643
- let d = t[l][a];
3644
- for (; l + 1 < t.length && d < u; )
3645
- l += 1, d = t[l]?.[a];
3646
- const f = l + 1 >= t.length;
3643
+ let d = i[l][a];
3644
+ for (; l + 1 < i.length && d < u; )
3645
+ l += 1, d = i[l]?.[a];
3646
+ const f = l + 1 >= i.length;
3647
3647
  let m = l;
3648
- f && t[m] !== void 0 && (m += 1);
3648
+ f && i[m] !== void 0 && (m += 1);
3649
3649
  const g = f ? ve({
3650
3650
  date: c,
3651
3651
  unit: r,
3652
3652
  size: o,
3653
3653
  nextOrPrevious: "next"
3654
- }) : t[l][a];
3654
+ }) : i[l][a];
3655
3655
  return {
3656
3656
  binStartDate: c,
3657
3657
  binEndDate: g,
@@ -3661,8 +3661,8 @@ function qr(i) {
3661
3661
  sliceEndIndex: m
3662
3662
  };
3663
3663
  }
3664
- function Er(i) {
3665
- const { binFirstOrLastIndex: e, data: t, x: a, timeIntervalInfo: n } = i, { unit: r, size: s } = n, o = r === j.Week ? (s ?? 1) * 7 : s, c = t[e][a];
3664
+ function Er(t) {
3665
+ const { binFirstOrLastIndex: e, data: i, x: a, timeIntervalInfo: n } = t, { unit: r, size: s } = n, o = r === j.Week ? (s ?? 1) * 7 : s, c = i[e][a];
3666
3666
  let l = e;
3667
3667
  const u = ve({
3668
3668
  date: c,
@@ -3670,18 +3670,18 @@ function Er(i) {
3670
3670
  size: o,
3671
3671
  nextOrPrevious: "previous"
3672
3672
  });
3673
- let d = t[l][a];
3673
+ let d = i[l][a];
3674
3674
  for (; l - 1 >= 0 && d > u; )
3675
- l -= 1, d = t[l]?.[a];
3675
+ l -= 1, d = i[l]?.[a];
3676
3676
  const f = l - 1 <= 0;
3677
3677
  let m = e;
3678
- return f && t[m] !== void 0 && (m -= 1), f && (l = 0), {
3678
+ return f && i[m] !== void 0 && (m -= 1), f && (l = 0), {
3679
3679
  binStartDate: f ? ve({
3680
3680
  date: c,
3681
3681
  unit: r,
3682
3682
  size: o,
3683
3683
  nextOrPrevious: "previous"
3684
- }) : t[l][a],
3684
+ }) : i[l][a],
3685
3685
  binEndDate: c,
3686
3686
  nextBinFirstOrLastIndex: l,
3687
3687
  sliceStartIndex: l,
@@ -3689,13 +3689,13 @@ function Er(i) {
3689
3689
  last: f
3690
3690
  };
3691
3691
  }
3692
- function Vr(i) {
3693
- const { binsToRegroup: e, statisticType: t, y: a, nullPolicy: n } = i;
3692
+ function Vr(t) {
3693
+ const { binsToRegroup: e, statisticType: i, y: a, nullPolicy: n } = t;
3694
3694
  let r;
3695
3695
  n !== ne.Interpolate && (r = n === ne.Zero ? 0 : null);
3696
3696
  const s = e.filter((o) => Number.isFinite(o[a]));
3697
3697
  if (s.length > 0)
3698
- switch (t) {
3698
+ switch (i) {
3699
3699
  case P.Count:
3700
3700
  case P.Sum:
3701
3701
  r = Hi(s, (o) => o[a]);
@@ -3713,13 +3713,13 @@ function Vr(i) {
3713
3713
  }
3714
3714
  return r;
3715
3715
  }
3716
- function Ir(i) {
3717
- const { data: e, seriesConfig: t, timeIntervalInfo: a, dateMinTimestamp: n, dateMaxTimestamp: r } = i;
3716
+ function Ir(t) {
3717
+ const { data: e, seriesConfig: i, timeIntervalInfo: a, dateMinTimestamp: n, dateMaxTimestamp: r } = t;
3718
3718
  let s = [];
3719
- const { unit: o } = a, c = a.size ?? 1, l = t[0], { x: u } = l;
3719
+ const { unit: o } = a, c = a.size ?? 1, l = i[0], { x: u } = l;
3720
3720
  let d, f;
3721
3721
  if (se(l) && (f = l.temporalBinning?.nullPolicy, d = l.temporalBinning?.timeAggregationType), c > 1 || o === j.Week || o === j.Month || o === j.Year) {
3722
- const { query: m } = t[0], g = re(t), { statisticType: y } = m?.outStatistics?.[0] ?? zt;
3722
+ const { query: m } = i[0], g = re(i), { statisticType: y } = m?.outStatistics?.[0] ?? zt;
3723
3723
  let p = !1, C = d === G.End ? e.length - 1 : 0;
3724
3724
  const F = {
3725
3725
  binFirstOrLastIndex: C,
@@ -3762,12 +3762,12 @@ function Ir(i) {
3762
3762
  }) : s = e;
3763
3763
  return s;
3764
3764
  }
3765
- function Ai(i) {
3766
- const { dateMinTimestamp: e, dateMaxTimestamp: t, timeIntervalInfo: a } = i, { size: n, unit: r } = a;
3765
+ function Ai(t) {
3766
+ const { dateMinTimestamp: e, dateMaxTimestamp: i, timeIntervalInfo: a } = t, { size: n, unit: r } = a;
3767
3767
  let s = 0, o = 0;
3768
- if (n !== void 0 && Number.isFinite(n) && Number.isFinite(e) && Number.isFinite(t)) {
3768
+ if (n !== void 0 && Number.isFinite(n) && Number.isFinite(e) && Number.isFinite(i)) {
3769
3769
  let c = -1;
3770
- const l = ie.fromMillis(e), u = ie.fromMillis(t);
3770
+ const l = ie.fromMillis(e), u = ie.fromMillis(i);
3771
3771
  switch (r) {
3772
3772
  case j.Second:
3773
3773
  c = u.diff(l, "seconds").get("seconds");
@@ -3791,9 +3791,9 @@ function Ai(i) {
3791
3791
  }
3792
3792
  return { numberOfFinalBinsWithinDataRange: s, numberOfSingleBinsWithinDataRange: o };
3793
3793
  }
3794
- function Pi(i) {
3795
- const e = i[0].temporalBinning?.nullPolicy;
3796
- return i.reduce(
3794
+ function Pi(t) {
3795
+ const e = t[0].temporalBinning?.nullPolicy;
3796
+ return t.reduce(
3797
3797
  (a, n) => {
3798
3798
  a[b.dateBinModel] = void 0;
3799
3799
  const r = n.query?.outStatistics?.[0].outStatisticFieldName ?? [n.y].flat()[0];
@@ -3802,18 +3802,18 @@ function Pi(i) {
3802
3802
  {}
3803
3803
  );
3804
3804
  }
3805
- function $r(i) {
3805
+ function $r(t) {
3806
3806
  const {
3807
3807
  dateMaxTimestamp: e,
3808
- numberOfFinalBinsWithinDataRange: t,
3808
+ numberOfFinalBinsWithinDataRange: i,
3809
3809
  numberOfSingleBinsWithinDataRange: a,
3810
3810
  data: n,
3811
3811
  seriesConfig: r,
3812
3812
  timeIntervalInfo: s
3813
- } = i, { size: o, unit: c } = s, { x: l } = r[0], u = r[0].temporalBinning?.timeAggregationType;
3813
+ } = t, { size: o, unit: c } = s, { x: l } = r[0], u = r[0].temporalBinning?.timeAggregationType;
3814
3814
  let d = n[0][l], f = e;
3815
- if (o !== void 0 && Number.isFinite(o) && a / t !== o) {
3816
- let g = Math.ceil(a / t) * t - a;
3815
+ if (o !== void 0 && Number.isFinite(o) && a / i !== o) {
3816
+ let g = Math.ceil(a / i) * i - a;
3817
3817
  c === j.Week && (g *= 7);
3818
3818
  const y = Pi(r);
3819
3819
  if (u === G.End) {
@@ -3848,13 +3848,13 @@ function $r(i) {
3848
3848
  }
3849
3849
  return { newDateMin: d, newDateMax: f };
3850
3850
  }
3851
- function Rr(i) {
3852
- const { numberOfSingleBinsWithinDataRange: e, dataLength: t, unit: a } = i;
3853
- return Ti(t, a) >= e;
3851
+ function Rr(t) {
3852
+ const { numberOfSingleBinsWithinDataRange: e, dataLength: i, unit: a } = t;
3853
+ return Ti(i, a) >= e;
3854
3854
  }
3855
- async function kr(i) {
3856
- const { queryObject: e, queryConfig: t, x: a } = i, n = `MIN_${a}`, r = `MAX_${a}`, s = `COUNT_${a}`, o = {
3857
- ...t,
3855
+ async function kr(t) {
3856
+ const { queryObject: e, queryConfig: i, x: a } = t, n = `MIN_${a}`, r = `MAX_${a}`, s = `COUNT_${a}`, o = {
3857
+ ...i,
3858
3858
  outStatistics: [
3859
3859
  {
3860
3860
  statisticType: P.Minimum,
@@ -3882,24 +3882,24 @@ async function kr(i) {
3882
3882
  const d = c.get(s);
3883
3883
  return typeof l == "string" && (l = new Date(l).valueOf()), typeof u == "string" && (u = new Date(u).valueOf()), { dateRange: { dateMinTimestamp: l, dateMaxTimestamp: u }, numberOfFeatures: d };
3884
3884
  }
3885
- function jr(i) {
3885
+ function jr(t) {
3886
3886
  const {
3887
3887
  newDateMin: e,
3888
- newDateMax: t,
3888
+ newDateMax: i,
3889
3889
  seriesConfig: a,
3890
3890
  data: n,
3891
3891
  numberOfSingleBinsWithinDataRange: r,
3892
3892
  initialNumberOfBins: s,
3893
3893
  timeIntervalInfo: o
3894
- } = i, { unit: c } = o, l = n;
3894
+ } = t, { unit: c } = o, l = n;
3895
3895
  if (!Rr({
3896
3896
  numberOfSingleBinsWithinDataRange: r,
3897
3897
  dataLength: s,
3898
3898
  unit: c
3899
3899
  })) {
3900
3900
  const { x: d } = a[0], f = a[0].temporalBinning?.timeAggregationType, m = Pi(a);
3901
- let y = f === G.End ? t : e, p = f === G.End ? n.length - 1 : 0;
3902
- for (; p < n.length && (f === G.End && y > e || f !== G.End && y < t); )
3901
+ let y = f === G.End ? i : e, p = f === G.End ? n.length - 1 : 0;
3902
+ for (; p < n.length && (f === G.End && y > e || f !== G.End && y < i); )
3903
3903
  y !== n[p][d] ? l.push({
3904
3904
  ...m,
3905
3905
  [d]: y,
@@ -3913,10 +3913,10 @@ function jr(i) {
3913
3913
  }
3914
3914
  return l;
3915
3915
  }
3916
- function Wr(i) {
3917
- const { data: e, seriesConfig: t, dateMinTimestamp: a, dateMaxTimestamp: n } = i, r = e;
3918
- if (t[0].temporalBinning?.trimIncompleteTimeInterval !== !1) {
3919
- const { timeAggregationType: s } = t[0].temporalBinning ?? {}, o = e[0]?.[b.dateBinningRange]?.[0], c = e[e.length - 1]?.[b.dateBinningRange]?.[1];
3916
+ function Wr(t) {
3917
+ const { data: e, seriesConfig: i, dateMinTimestamp: a, dateMaxTimestamp: n } = t, r = e;
3918
+ if (i[0].temporalBinning?.trimIncompleteTimeInterval !== !1) {
3919
+ const { timeAggregationType: s } = i[0].temporalBinning ?? {}, o = e[0]?.[b.dateBinningRange]?.[0], c = e[e.length - 1]?.[b.dateBinningRange]?.[1];
3920
3920
  if (s === G.End ? o < a : c > n)
3921
3921
  if (s === G.End) {
3922
3922
  let u = o;
@@ -3930,12 +3930,12 @@ function Wr(i) {
3930
3930
  }
3931
3931
  return r;
3932
3932
  }
3933
- function Qr(i) {
3934
- const { groupByFieldsForStatistics: e, dateField: t, queryStartDate: a, queryEndDate: n, y: r, binIndex: s, lastBin: o } = i;
3933
+ function Qr(t) {
3934
+ const { groupByFieldsForStatistics: e, dateField: i, queryStartDate: a, queryEndDate: n, y: r, binIndex: s, lastBin: o } = t;
3935
3935
  let c = e === "" ? Me.groupByCaseBegin : e;
3936
3936
  return c = ue(da, {
3937
3937
  groupByFieldsForStatistics: c,
3938
- dateField: t,
3938
+ dateField: i,
3939
3939
  startDate: `${a}`,
3940
3940
  endDate: `${n}`,
3941
3941
  y: [r].flat()[0],
@@ -3944,10 +3944,10 @@ function Qr(i) {
3944
3944
  // we use <= to catch the last bin's value, < otherwise
3945
3945
  }), c;
3946
3946
  }
3947
- function* Hr(i) {
3948
- const { queryObject: e, seriesConfig: t, queryConfig: a, completeData: n } = i;
3949
- for (let r = 0; r < t.length; r += 1) {
3950
- const s = t[r], { query: o, x: c, y: l } = s, d = [
3947
+ function* Hr(t) {
3948
+ const { queryObject: e, seriesConfig: i, queryConfig: a, completeData: n } = t;
3949
+ for (let r = 0; r < i.length; r += 1) {
3950
+ const s = i[r], { query: o, x: c, y: l } = s, d = [
3951
3951
  {
3952
3952
  onStatisticField: o?.outStatistics?.[0]?.onStatisticField ?? "",
3953
3953
  outStatisticFieldName: P.ContinuousPercentile,
@@ -3982,8 +3982,8 @@ function* Hr(i) {
3982
3982
  });
3983
3983
  }
3984
3984
  }
3985
- async function zr(i) {
3986
- const { queryObject: e, data: t, seriesConfig: a, queryConfig: n } = i, r = t, { statisticType: s } = a[0].query?.outStatistics?.[0] ?? zt;
3985
+ async function zr(t) {
3986
+ const { queryObject: e, data: i, seriesConfig: a, queryConfig: n } = t, r = i, { statisticType: s } = a[0].query?.outStatistics?.[0] ?? zt;
3987
3987
  if (s === P.ContinuousPercentile && r.length > 0) {
3988
3988
  const o = Hr({
3989
3989
  queryObject: e,
@@ -4007,10 +4007,10 @@ async function zr(i) {
4007
4007
  }
4008
4008
  return r;
4009
4009
  }
4010
- async function Gr(i) {
4011
- const { chartConfig: e, queryResults: t, mapToStatField: a, splitByField: n, x: r, y: s, nullPolicy: o, queryObject: c } = i, l = ua(r), d = (await Te(c)).find((p) => p.name === r)?.type, f = [], m = e.series[0], g = "temporalBinning" in m ? m.temporalBinning?.trimIncompleteTimeInterval : !1, y = "temporalBinning" in m ? m.temporalBinning?.timeAggregationType : !1;
4012
- return t.forEach((p, C) => {
4013
- if (!(g && (C === 0 && y === G.End || C === t.length - 1 && y === G.Start))) {
4010
+ async function Gr(t) {
4011
+ const { chartConfig: e, queryResults: i, mapToStatField: a, splitByField: n, x: r, y: s, nullPolicy: o, queryObject: c } = t, l = ua(r), d = (await Te(c)).find((p) => p.name === r)?.type, f = [], m = e.series[0], g = "temporalBinning" in m ? m.temporalBinning?.trimIncompleteTimeInterval : !1, y = "temporalBinning" in m ? m.temporalBinning?.timeAggregationType : !1;
4012
+ return i.forEach((p, C) => {
4013
+ if (!(g && (C === 0 && y === G.End || C === i.length - 1 && y === G.Start))) {
4014
4014
  const { attributes: x, stackedAttributes: B } = p;
4015
4015
  let N = x[l.lowerBoundaryAlias], v = x[l.upperBoundaryAlias];
4016
4016
  const A = N, w = v, L = (M, O) => {
@@ -4058,12 +4058,12 @@ async function Gr(i) {
4058
4058
  }
4059
4059
  }), f;
4060
4060
  }
4061
- async function Ur(i) {
4062
- const { queryObject: e, queryResults: t, x: a, queryConfig: n, seriesConfig: r, dateRange: s, timeIntervalInfo: o } = i;
4063
- let c = t;
4061
+ async function Ur(t) {
4062
+ const { queryObject: e, queryResults: i, x: a, queryConfig: n, seriesConfig: r, dateRange: s, timeIntervalInfo: o } = t;
4063
+ let c = i;
4064
4064
  const { dateMinTimestamp: l, dateMaxTimestamp: u } = s;
4065
4065
  if (l && u) {
4066
- const d = t.length;
4066
+ const d = i.length;
4067
4067
  if (Ge({
4068
4068
  arrayToSort: c,
4069
4069
  sortingField: a
@@ -4107,15 +4107,15 @@ async function Ur(i) {
4107
4107
  }
4108
4108
  return c;
4109
4109
  }
4110
- function _r(i) {
4111
- return Math.floor(Math.min(Math.max(8, Math.sqrt(i ?? 8)), 128) + 0.5);
4110
+ function _r(t) {
4111
+ return Math.floor(Math.min(Math.max(8, Math.sqrt(t ?? 8)), 128) + 0.5);
4112
4112
  }
4113
- function Yr(i) {
4114
- const { dateRange: e, numberOfFeatures: t } = i;
4113
+ function Yr(t) {
4114
+ const { dateRange: e, numberOfFeatures: i } = t;
4115
4115
  let a, n, { dateMinTimestamp: r, dateMaxTimestamp: s } = e;
4116
4116
  if (r && s) {
4117
4117
  typeof r == "string" && (r = new Date(r).valueOf()), typeof s == "string" && (s = new Date(s).valueOf());
4118
- const o = _r(t), c = (s - r) / o, l = It.findIndex((C) => C.threshold > c), u = It[l], { unitMs: d, preferredIntervalSize: f } = u;
4118
+ const o = _r(i), c = (s - r) / o, l = It.findIndex((C) => C.threshold > c), u = It[l], { unitMs: d, preferredIntervalSize: f } = u;
4119
4119
  ({ unit: a } = u);
4120
4120
  const m = c / d, g = f.findIndex(
4121
4121
  (C) => C >= m
@@ -4124,19 +4124,19 @@ function Yr(i) {
4124
4124
  }
4125
4125
  return { size: n, unit: a };
4126
4126
  }
4127
- function Kr(i) {
4128
- const { series: e, isTimeBinningSeries: t, setTimeBinningInfoWhenNotProvided: a } = i;
4127
+ function Kr(t) {
4128
+ const { series: e, isTimeBinningSeries: i, setTimeBinningInfoWhenNotProvided: a } = t;
4129
4129
  let n = !1;
4130
- if (se(e) && t) {
4130
+ if (se(e) && i) {
4131
4131
  const { unit: r, size: s } = e.temporalBinning ?? {};
4132
4132
  n = !St(r, s) && a === !0;
4133
4133
  }
4134
4134
  return n;
4135
4135
  }
4136
- function Jr(i) {
4136
+ function Jr(t) {
4137
4137
  const e = [];
4138
- for (let t = 1; t <= 6; t += 1) {
4139
- const a = i[`EXPR_${t}`] ?? i[`Expr${t}`] ?? i[`expr${t}`] ?? i[`EXPR${t}`];
4138
+ for (let i = 1; i <= 6; i += 1) {
4139
+ const a = t[`EXPR_${i}`] ?? t[`Expr${i}`] ?? t[`expr${i}`] ?? t[`EXPR${i}`];
4140
4140
  a !== null && e.push(a);
4141
4141
  }
4142
4142
  return ie.local(
@@ -4148,33 +4148,33 @@ function Jr(i) {
4148
4148
  Number(e[5] ?? 0)
4149
4149
  ).valueOf();
4150
4150
  }
4151
- function Li(i) {
4152
- const { feature: e, splitByField: t, chartSubType: a } = i;
4151
+ function Li(t) {
4152
+ const { feature: e, splitByField: i, chartSubType: a } = t;
4153
4153
  let n;
4154
4154
  e.aggregateGeometries && "Extent" in e.aggregateGeometries ? n = e.aggregateGeometries.Extent : { extent: n } = e.aggregateGeometries ?? e.geometry ?? {};
4155
4155
  const r = n?.toJSON();
4156
4156
  let s = xe;
4157
- return r !== void 0 && t !== void 0 && a !== void 0 && a === h.BarAndLineSplitBy && (s = e.attributes[t] !== void 0 ? `${xe}_${e.attributes[t]}` : xe), { featureExtent: r, featureExtentKey: s };
4157
+ return r !== void 0 && i !== void 0 && a !== void 0 && a === h.BarAndLineSplitBy && (s = e.attributes[i] !== void 0 ? `${xe}_${e.attributes[i]}` : xe), { featureExtent: r, featureExtentKey: s };
4158
4158
  }
4159
- function Xr(i) {
4160
- const { input: e, x: t, splitByField: a } = i;
4161
- return e.reduce((r, s) => (a !== void 0 && a !== t && !(b.technicalFieldSplitByField in s) && delete s[a], Object.assign(r, s)), {});
4159
+ function Xr(t) {
4160
+ const { input: e, x: i, splitByField: a } = t;
4161
+ return e.reduce((r, s) => (a !== void 0 && a !== i && !(b.technicalFieldSplitByField in s) && delete s[a], Object.assign(r, s)), {});
4162
4162
  }
4163
- function Lt(i) {
4164
- const { data: e, x: t, splitByField: a } = i;
4163
+ function Lt(t) {
4164
+ const { data: e, x: i, splitByField: a } = t;
4165
4165
  let n = e;
4166
4166
  return e !== void 0 && e.length > 0 && (n = [...zi(
4167
4167
  e,
4168
- (s) => Xr({ input: s, x: t, splitByField: a }),
4169
- (s) => s[t]
4168
+ (s) => Xr({ input: s, x: i, splitByField: a }),
4169
+ (s) => s[i]
4170
4170
  // the field used to regroup the stats (ex: 'Year' category)
4171
4171
  ).values()]), n;
4172
4172
  }
4173
- function Zr(i, e) {
4174
- const t = i, a = W(e);
4173
+ function Zr(t, e) {
4174
+ const i = t, a = W(e);
4175
4175
  if (a !== S.PieSeries && a !== S.BoxPlotSeries) {
4176
4176
  const n = re(e), r = e[0].y;
4177
- i.forEach((s) => {
4177
+ t.forEach((s) => {
4178
4178
  let o = 0;
4179
4179
  if (n.forEach((c) => {
4180
4180
  const l = s[c];
@@ -4188,72 +4188,72 @@ function Zr(i, e) {
4188
4188
  }
4189
4189
  });
4190
4190
  }
4191
- return t;
4191
+ return i;
4192
4192
  }
4193
- function es(i, e) {
4194
- const t = e, a = re(i), n = a.length === 1;
4193
+ function es(t, e) {
4194
+ const i = e, a = re(t), n = a.length === 1;
4195
4195
  return a.forEach((r) => {
4196
- const s = je(n ? void 0 : r), o = t[s[I.FirstQuartile]], c = t[s[I.ThirdQuartile]];
4197
- Number.isFinite(o) && Number.isFinite(c) && c >= o && (t[s[I.IQR]] = c - o);
4198
- }), t;
4199
- }
4200
- function ts(i, e) {
4201
- const t = e.series[0], a = i;
4202
- if (t.type === S.HeatSeries) {
4203
- const { x: n, y: r } = t;
4196
+ const s = je(n ? void 0 : r), o = i[s[I.FirstQuartile]], c = i[s[I.ThirdQuartile]];
4197
+ Number.isFinite(o) && Number.isFinite(c) && c >= o && (i[s[I.IQR]] = c - o);
4198
+ }), i;
4199
+ }
4200
+ function ts(t, e) {
4201
+ const i = e.series[0], a = t;
4202
+ if (i.type === S.HeatSeries) {
4203
+ const { x: n, y: r } = i;
4204
4204
  a[k.xField] = a[n]?.toString(), delete a[n], a[k.yField] = a[r]?.toString(), delete a[r];
4205
- const s = t.query?.outStatistics?.[0]?.outStatisticFieldName;
4205
+ const s = i.query?.outStatistics?.[0]?.outStatisticFieldName;
4206
4206
  s && (a[k.valueField] = a[s], delete a[s]);
4207
4207
  }
4208
4208
  return a;
4209
4209
  }
4210
- function Mt(i, e) {
4211
- [e].flat().forEach((t) => {
4212
- t && (i[t] === void 0 && (i[t] = i[t.toUpperCase()] !== void 0 ? i[t.toUpperCase()] : i[t.toLowerCase()]), i[t] !== void 0 ? (t !== t.toUpperCase() && delete i[t.toUpperCase()], t !== t.toLowerCase() && delete i[t.toLowerCase()]) : delete i[t]);
4210
+ function Mt(t, e) {
4211
+ [e].flat().forEach((i) => {
4212
+ i && (t[i] === void 0 && (t[i] = t[i.toUpperCase()] !== void 0 ? t[i.toUpperCase()] : t[i.toLowerCase()]), t[i] !== void 0 ? (i !== i.toUpperCase() && delete t[i.toUpperCase()], i !== i.toLowerCase() && delete t[i.toLowerCase()]) : delete t[i]);
4213
4213
  });
4214
4214
  }
4215
- function is(i, e) {
4216
- const t = Array.from(
4215
+ function is(t, e) {
4216
+ const i = Array.from(
4217
4217
  new Set(
4218
4218
  e.flatMap((a) => a.query?.outStatistics?.map((n) => n.outStatisticFieldName))
4219
4219
  )
4220
4220
  );
4221
- t.push(Y.outStatistics.outStatisticFieldName), Mt(i, t);
4221
+ i.push(Y.outStatistics.outStatisticFieldName), Mt(t, i);
4222
4222
  }
4223
- function as(i, e) {
4224
- let t = { ...i };
4225
- return i !== void 0 && e[0] !== void 0 && (t = Object.keys(i).reduce((a, n) => {
4223
+ function as(t, e) {
4224
+ let i = { ...t };
4225
+ return t !== void 0 && e[0] !== void 0 && (i = Object.keys(t).reduce((a, n) => {
4226
4226
  const r = e.find(
4227
4227
  (s) => s.outStatisticFieldName?.toLowerCase() === n.toLowerCase()
4228
4228
  )?.onStatisticField;
4229
- return r !== void 0 && i[n] !== void 0 && r !== n ? a[r] = i[n] : a[n] = i[n], a;
4230
- }, {})), t;
4229
+ return r !== void 0 && t[n] !== void 0 && r !== n ? a[r] = t[n] : a[n] = t[n], a;
4230
+ }, {})), i;
4231
4231
  }
4232
- function ns(i) {
4233
- const { dataItem: e, splitByField: t, y: a } = i;
4234
- if (e !== void 0 && !Z(t) && !Z(a)) {
4235
- const n = e[t], r = `${a}_${n?.toString()}`;
4232
+ function ns(t) {
4233
+ const { dataItem: e, splitByField: i, y: a } = t;
4234
+ if (e !== void 0 && !Z(i) && !Z(a)) {
4235
+ const n = e[i], r = `${a}_${n?.toString()}`;
4236
4236
  e[r] = e[a], delete e[a];
4237
4237
  }
4238
4238
  }
4239
- function rs(i, e) {
4240
- Object.keys(i).forEach((a) => {
4239
+ function rs(t, e) {
4240
+ Object.keys(t).forEach((a) => {
4241
4241
  if (a.startsWith(`${e}_`)) {
4242
4242
  const n = a.slice(e.length + 1);
4243
- i[n] = i[a], delete i[a];
4243
+ t[n] = t[a], delete t[a];
4244
4244
  }
4245
4245
  });
4246
4246
  }
4247
- function ss(i, e) {
4248
- let t = 1;
4249
- switch (i) {
4247
+ function ss(t, e) {
4248
+ let i = 1;
4249
+ switch (t) {
4250
4250
  case h.BarAndLineFromFields:
4251
4251
  case h.PieFromFields:
4252
- t = e.series[0].query?.outStatistics?.length ?? 1;
4252
+ i = e.series[0].query?.outStatistics?.length ?? 1;
4253
4253
  break;
4254
4254
  case h.BoxPlotMultiFields:
4255
4255
  case h.BoxPlotMultiFieldsAndSplitBy:
4256
- t = e.series[0].y.length;
4256
+ i = e.series[0].y.length;
4257
4257
  break;
4258
4258
  case h.BarAndLineNoAggregation:
4259
4259
  case h.BoxPlotMonoField:
@@ -4269,18 +4269,18 @@ function ss(i, e) {
4269
4269
  case h.BarAndLineMultiFields:
4270
4270
  case h.NonSpecific:
4271
4271
  }
4272
- return t;
4272
+ return i;
4273
4273
  }
4274
- function os(i) {
4275
- const { attributes: e, showMean: t, chartSubType: a } = i;
4276
- t && (a === h.BoxPlotMonoFieldAndSplitBy || a === h.BoxPlotMultiFieldsAndSplitBy || a === h.BoxPlotMonoFieldAndCategoryAndSplitBy) && (e[b.boxPlot.boxPlotMeanLineMarkerId] = !0);
4274
+ function os(t) {
4275
+ const { attributes: e, showMean: i, chartSubType: a } = t;
4276
+ i && (a === h.BoxPlotMonoFieldAndSplitBy || a === h.BoxPlotMultiFieldsAndSplitBy || a === h.BoxPlotMonoFieldAndCategoryAndSplitBy) && (e[b.boxPlot.boxPlotMeanLineMarkerId] = !0);
4277
4277
  }
4278
- function ls(i) {
4279
- const { queryResponse: e, chartConfig: t, maxCategoryCount: a } = i, n = V(t.series);
4278
+ function ls(t) {
4279
+ const { queryResponse: e, chartConfig: i, maxCategoryCount: a } = t, n = V(i.series);
4280
4280
  return a && Number.isFinite(a) && a < e.length && Ni.includes(n) ? e.slice(0, a) : e;
4281
4281
  }
4282
- function cs(i) {
4283
- const { attributes: e, uniqueCategoryList: t, maxCategoryCount: a, x: n, chartSubType: r } = i;
4282
+ function cs(t) {
4283
+ const { attributes: e, uniqueCategoryList: i, maxCategoryCount: a, x: n, chartSubType: r } = t;
4284
4284
  let s = !1;
4285
4285
  if (n && a && Number.isFinite(a) && !Ni.includes(r))
4286
4286
  if ((r === h.BarAndLineFromFields || r === h.PieFromFields) && Object.keys(e).length > a)
@@ -4289,14 +4289,14 @@ function cs(i) {
4289
4289
  });
4290
4290
  else {
4291
4291
  const o = e[n];
4292
- o !== void 0 && (t.size === a && !t.has(o) ? s = !0 : t.add(o));
4292
+ o !== void 0 && (i.size === a && !i.has(o) ? s = !0 : i.add(o));
4293
4293
  }
4294
4294
  return s;
4295
4295
  }
4296
- function Mi(i) {
4296
+ function Mi(t) {
4297
4297
  const {
4298
4298
  queryResponse: e,
4299
- chartConfig: t,
4299
+ chartConfig: i,
4300
4300
  mapToStatField: a,
4301
4301
  splitByField: n,
4302
4302
  fieldOID: r,
@@ -4307,11 +4307,11 @@ function Mi(i) {
4307
4307
  showMean: u,
4308
4308
  chartLimits: d,
4309
4309
  fieldList: f
4310
- } = i, { series: m } = t, g = V(m), y = W(m), { x: p } = m[0], C = "y" in m[0] ? m[0].y : void 0, F = m[0].query?.outStatistics ?? [], { originalCategoryValue: x, originalDateValue: B, typeOrDomainFieldName: N, typeOrDomainIdValue: v } = b, A = [];
4310
+ } = t, { series: m } = i, g = V(m), y = W(m), { x: p } = m[0], C = "y" in m[0] ? m[0].y : void 0, F = m[0].query?.outStatistics ?? [], { originalCategoryValue: x, originalDateValue: B, typeOrDomainFieldName: N, typeOrDomainIdValue: v } = b, A = [];
4311
4311
  let w = 0;
4312
- const L = /* @__PURE__ */ new Set(), { maxCategoryCount: D } = Re(d), M = ls({ queryResponse: e, chartConfig: t, maxCategoryCount: D });
4312
+ const L = /* @__PURE__ */ new Set(), { maxCategoryCount: D } = Re(d), M = ls({ queryResponse: e, chartConfig: i, maxCategoryCount: D });
4313
4313
  for (let O = 0; M[O] && O < M.length && !(l !== void 0 && w >= l); O += 1) {
4314
- w += ss(g, t);
4314
+ w += ss(g, i);
4315
4315
  const q = M[O];
4316
4316
  let T = { ...q.attributes };
4317
4317
  if (cs({ attributes: T, uniqueCategoryList: L, maxCategoryCount: D, x: p, chartSubType: g }))
@@ -4326,21 +4326,21 @@ function Mi(i) {
4326
4326
  if (Fe && (T[$] = Fe), g === h.BarAndLineSplitBy && H !== void 0) {
4327
4327
  const ce = T[n], ee = a?.get(ce);
4328
4328
  ee !== void 0 && (ce === n && (T[b.technicalFieldSplitByField] = T[ee]), T[ee] = T[H]), delete T[H];
4329
- } else (g === h.PieNoAggregation || g === h.BarAndLineNoAggregation || g === h.BarAndLineSplitByNoAggregation) && (s ? T[B] = E : E !== b.nullValue && (T[x] = E), Ra({ isXAxis: !0, chartType: y, valueFormat: t.axes?.[0]?.valueFormat }) && (T[b.xAxisField] = `${E}-${O}`), T[Y.uniqueIdsName] = T[r]);
4329
+ } else (g === h.PieNoAggregation || g === h.BarAndLineNoAggregation || g === h.BarAndLineSplitByNoAggregation) && (s ? T[B] = E : E !== b.nullValue && (T[x] = E), Ra({ isXAxis: !0, chartType: y, valueFormat: i.axes?.[0]?.valueFormat }) && (T[b.xAxisField] = `${E}-${O}`), T[Y.uniqueIdsName] = T[r]);
4330
4330
  const X = ha({
4331
4331
  subtypeInfo: c,
4332
4332
  fieldList: f,
4333
4333
  fieldName: p,
4334
4334
  fieldValueToMatch: E
4335
4335
  });
4336
- X !== void 0 && X !== E && g !== h.PieFromFields && (T[x] = X, T[N] = p, T[v] = E), y === S.BoxPlotSeries && (T = es(m, T)), y === S.PieSeries && typeof E == "number" && (T[x] === void 0 && (T[x] = T[p]), E = `${E}`), E !== void 0 && (T[x] === void 0 && (T[x] = T[p]), T[p] = X ?? E, T[p] === null && (T[p] = b.nullValue), T[b.xAxisField] === void 0 && (T[b.xAxisField] = T[v] ?? T[p])), T = ts(T, t), A.push(T);
4336
+ X !== void 0 && X !== E && g !== h.PieFromFields && (T[x] = X, T[N] = p, T[v] = E), y === S.BoxPlotSeries && (T = es(m, T)), y === S.PieSeries && typeof E == "number" && (T[x] === void 0 && (T[x] = T[p]), E = `${E}`), E !== void 0 && (T[x] === void 0 && (T[x] = T[p]), T[p] = X ?? E, T[p] === null && (T[p] = b.nullValue), T[b.xAxisField] === void 0 && (T[b.xAxisField] = T[v] ?? T[p])), T = ts(T, i), A.push(T);
4337
4337
  }
4338
4338
  return A;
4339
4339
  }
4340
- async function ut(i) {
4340
+ async function ut(t) {
4341
4341
  const {
4342
4342
  queryObject: e,
4343
- uniqueQuery: t,
4343
+ uniqueQuery: i,
4344
4344
  chartConfig: a,
4345
4345
  mapToStatField: n,
4346
4346
  abortKey: r,
@@ -4349,11 +4349,11 @@ async function ut(i) {
4349
4349
  showMean: c,
4350
4350
  chartLimits: l,
4351
4351
  usePopupTemplateFieldsInfo: u
4352
- } = i, { series: d } = a, f = V(d);
4352
+ } = t, { series: d } = a, f = V(d);
4353
4353
  let m = [];
4354
4354
  const g = f === h.BarAndLineSplitBy || f === h.BarAndLineSplitByNoAggregation ? K(d[0].query?.where) : "", y = await ge({
4355
4355
  queryObject: e,
4356
- queryConfig: t,
4356
+ queryConfig: i,
4357
4357
  featureCount: s,
4358
4358
  abortKey: r
4359
4359
  }), p = await Te(e, u), F = z(e).objectIdField, x = pa(p), { x: B } = d[0], N = x.includes(B), v = ni(e);
@@ -4367,7 +4367,7 @@ async function ut(i) {
4367
4367
  isTimeBinningSeries: o,
4368
4368
  subtypeInfo: v,
4369
4369
  fieldList: p,
4370
- resultLimit: t.num,
4370
+ resultLimit: i.num,
4371
4371
  showMean: c,
4372
4372
  chartLimits: l
4373
4373
  }), f !== h.BarAndLineSplitByNoAggregation && f !== h.BarAndLineFromFields && (g !== "" && (m = Lt({ data: m, x: B, splitByField: g })), m = Zr(
@@ -4375,21 +4375,21 @@ async function ut(i) {
4375
4375
  d
4376
4376
  )), m;
4377
4377
  }
4378
- async function wi(i) {
4379
- const { chartConfig: e, queryObject: t, queryConfig: a, numberMaxOfFeaturesToFetch: n, behaviorAfterLimit: r, isGaugeByFeature: s } = i, { series: o } = e, c = V(o), { x: l } = o[0], u = o.length;
4378
+ async function wi(t) {
4379
+ const { chartConfig: e, queryObject: i, queryConfig: a, numberMaxOfFeaturesToFetch: n, behaviorAfterLimit: r, isGaugeByFeature: s } = t, { series: o } = e, c = V(o), { x: l } = o[0], u = o.length;
4380
4380
  let d, f;
4381
4381
  if (c === h.BoxPlotMonoField || c === h.BoxPlotMonoFieldAndSplitBy ? (f = u, d = f) : c === h.BoxPlotMultiFields || c === h.BoxPlotMultiFieldsAndSplitBy ? (f = e.series[0].y.length, d = f) : c === h.PieFromFields || c === h.BarAndLineFromFields ? (f = o[0].query?.outStatistics?.filter(
4382
4382
  (m) => m.statisticType !== P.EnvelopeAggregate
4383
- ).length ?? 0, d = f) : d = await ya({ queryObject: t, x: l, chartSubType: c, queryConfig: a, isGaugeByFeature: s }), d !== void 0) {
4383
+ ).length ?? 0, d = f) : d = await ya({ queryObject: i, x: l, chartSubType: c, queryConfig: a, isGaugeByFeature: s }), d !== void 0) {
4384
4384
  const m = c === h.BoxPlotMonoField || c === h.BoxPlotMonoFieldAndCategory || c === h.BoxPlotMonoFieldAndSplitBy;
4385
4385
  f = Ft(c) && !m ? d * u : d;
4386
4386
  }
4387
4387
  return r === $e.RenderUpToTheLimit && f !== void 0 && n !== void 0 && n < f && (f = n, d = Math.ceil(f / u)), { categoryOrDateCount: d, elementCount: f };
4388
4388
  }
4389
- function Ke(i) {
4390
- const { arrayToSort: e, chartConfig: t, fieldList: a, isTimeBinningSeries: n } = i;
4389
+ function Ke(t) {
4390
+ const { arrayToSort: e, chartConfig: i, fieldList: a, isTimeBinningSeries: n } = t;
4391
4391
  if (n !== !0) {
4392
- const { series: r } = t, s = V(r), o = W(r), c = ye(t), l = xt(t);
4392
+ const { series: r } = i, s = V(r), o = W(r), c = ye(i), l = xt(i);
4393
4393
  if (o === S.HeatSeries)
4394
4394
  l !== void 0 && Ge({
4395
4395
  arrayToSort: e,
@@ -4399,7 +4399,7 @@ function Ke(i) {
4399
4399
  else if (l !== void 0 && e !== void 0 && e.length > 1) {
4400
4400
  const { orderBy: u } = l;
4401
4401
  let { sortingField: d } = l;
4402
- const f = t.orderOptions?.data?.orderType === be.Category, m = l.preferLabel !== !1, g = s === h.BarAndLineFromFields || s === h.PieFromFields || s === h.BoxPlotMultiFields || s === h.BoxPlotMultiFieldsAndSplitBy, y = g || o === S.PieSeries, p = s === h.PieNoAggregation || s === h.BarAndLineNoAggregation || s === h.BarAndLineSplitByNoAggregation, C = g ? !1 : e?.length > 0 && e.some((F) => Object.hasOwn(F, b.typeOrDomainIdValue));
4402
+ const f = i.orderOptions?.data?.orderType === be.Category, m = l.preferLabel !== !1, g = s === h.BarAndLineFromFields || s === h.PieFromFields || s === h.BoxPlotMultiFields || s === h.BoxPlotMultiFieldsAndSplitBy, y = g || o === S.PieSeries, p = s === h.PieNoAggregation || s === h.BarAndLineNoAggregation || s === h.BarAndLineSplitByNoAggregation, C = g ? !1 : e?.length > 0 && e.some((F) => Object.hasOwn(F, b.typeOrDomainIdValue));
4403
4403
  if (f && (!m || o === S.LineSeries && c === S.NumberAxisFormat) && (C ? d = b.typeOrDomainIdValue : y && (d = b.originalCategoryValue)), Array.isArray(u))
4404
4404
  Ga({
4405
4405
  arrayToSort: e,
@@ -4425,22 +4425,22 @@ function Ke(i) {
4425
4425
  }
4426
4426
  }
4427
4427
  }
4428
- async function Bt(i) {
4429
- const { chartConfig: e, queryConfig: t, fetchFullBoxPlotData: a, options: n, queryObject: r, abortKey: s, fieldList: o } = i, c = "showMean" in e && typeof e.showMean == "boolean" ? e.showMean : !1, { chartLimits: l, usePopupTemplateFieldsInfo: u } = n ?? {}, d = n?.replaceNoValueCategoryWithZero ?? b.options.replaceNoValueCategoryWithZero, { behaviorAfterLimit: f } = l ?? {}, m = { valid: !0 };
4428
+ async function Bt(t) {
4429
+ const { chartConfig: e, queryConfig: i, fetchFullBoxPlotData: a, options: n, queryObject: r, abortKey: s, fieldList: o } = t, c = "showMean" in e && typeof e.showMean == "boolean" ? e.showMean : !1, { chartLimits: l, usePopupTemplateFieldsInfo: u } = n ?? {}, d = n?.replaceNoValueCategoryWithZero ?? b.options.replaceNoValueCategoryWithZero, { behaviorAfterLimit: f } = l ?? {}, m = { valid: !0 };
4430
4430
  let g, y = !1;
4431
4431
  const p = e.series, C = p[0], F = V(e.series);
4432
4432
  if (C !== void 0 && r !== void 0) {
4433
4433
  const x = W(p), { uniqueQuery: B, mapToStatField: N } = await ct({
4434
4434
  chartConfig: e,
4435
4435
  queryObject: r,
4436
- queryConfig: t,
4436
+ queryConfig: i,
4437
4437
  fetchFullBoxPlotData: a,
4438
4438
  options: n
4439
4439
  });
4440
4440
  let { categoryOrDateCount: v, elementCount: A } = await wi({
4441
4441
  chartConfig: e,
4442
4442
  queryObject: r,
4443
- queryConfig: t,
4443
+ queryConfig: i,
4444
4444
  behaviorAfterLimit: f,
4445
4445
  numberMaxOfFeaturesToFetch: B.num
4446
4446
  });
@@ -4495,7 +4495,7 @@ async function Bt(i) {
4495
4495
  queryObject: r,
4496
4496
  seriesData: g,
4497
4497
  chartConfig: e,
4498
- queryConfig: t,
4498
+ queryConfig: i,
4499
4499
  categoryOrDateCount: v,
4500
4500
  behaviorAfterLimit: f,
4501
4501
  abortKey: s
@@ -4518,21 +4518,21 @@ async function Bt(i) {
4518
4518
  }
4519
4519
  return m;
4520
4520
  }
4521
- function us(i) {
4521
+ function us(t) {
4522
4522
  let e;
4523
- const { start: t, end: a } = ti({ field: "", unit: i, addIntervalStatement: !1 });
4524
- return a && (e = Array.from({ length: a + (t === 0 ? 1 : 0) }, (n, r) => (r + (t ?? 1)).toString())), e;
4523
+ const { start: i, end: a } = ti({ field: "", unit: t, addIntervalStatement: !1 });
4524
+ return a && (e = Array.from({ length: a + (i === 0 ? 1 : 0) }, (n, r) => (r + (i ?? 1)).toString())), e;
4525
4525
  }
4526
- async function Di(i) {
4526
+ async function Di(t) {
4527
4527
  const {
4528
4528
  chartConfig: e,
4529
- queryConfig: t,
4529
+ queryConfig: i,
4530
4530
  queryObject: a,
4531
4531
  completeHeatChartDataset: n = !0,
4532
4532
  errorStrings: r,
4533
4533
  options: s,
4534
4534
  abortKey: o
4535
- } = i, c = { valid: !0 };
4535
+ } = t, c = { valid: !0 };
4536
4536
  let l;
4537
4537
  const u = e.series[0], { nullPolicy: d } = "nullPolicy" in e ? e : {};
4538
4538
  if (u.type === S.HeatSeries) {
@@ -4541,7 +4541,7 @@ async function Di(i) {
4541
4541
  const C = await ma({
4542
4542
  chartConfig: e,
4543
4543
  queryObject: a,
4544
- queryConfig: t,
4544
+ queryConfig: i,
4545
4545
  returnFeaturesExtent: s?.returnFeaturesExtent,
4546
4546
  errorStrings: r,
4547
4547
  abortKey: o
@@ -4563,11 +4563,11 @@ async function Di(i) {
4563
4563
  isDateField: !1,
4564
4564
  isTimeBinningSeries: !1,
4565
4565
  chartLimits: s?.chartLimits,
4566
- resultLimit: t.num,
4566
+ resultLimit: i.num,
4567
4567
  subtypeInfo: x,
4568
4568
  fieldList: F
4569
4569
  });
4570
- const B = await yt({ queryObject: a, queryConfig: t, category: f, abortKey: o }), N = await yt({ queryObject: a, queryConfig: t, category: m, abortKey: o });
4570
+ const B = await yt({ queryObject: a, queryConfig: i, category: f, abortKey: o }), N = await yt({ queryObject: a, queryConfig: i, category: m, abortKey: o });
4571
4571
  if (l.length !== B?.length * N?.length) {
4572
4572
  const v = B.flatMap(
4573
4573
  (A) => N.map((w) => ({
@@ -4590,9 +4590,9 @@ async function Di(i) {
4590
4590
  const C = await ga({
4591
4591
  chartConfig: e,
4592
4592
  queryObject: a,
4593
- queryConfig: t,
4593
+ queryConfig: i,
4594
4594
  errorStrings: r
4595
- }), F = y ? us(y.unit) : await yt({ queryObject: a, queryConfig: t, category: m, abortKey: o });
4595
+ }), F = y ? us(y.unit) : await yt({ queryObject: a, queryConfig: i, category: m, abortKey: o });
4596
4596
  let x = 0;
4597
4597
  l = C?.features.flatMap((B) => {
4598
4598
  const N = [], { attributes: v, stackedAttributes: A } = B, w = [];
@@ -4620,10 +4620,10 @@ async function Di(i) {
4620
4620
  }
4621
4621
  return l && (c.data = { dataItems: l }), c;
4622
4622
  }
4623
- function ds(i) {
4624
- const { chartConfig: e, options: t, data: a } = i, n = e.series;
4623
+ function ds(t) {
4624
+ const { chartConfig: e, options: i, data: a } = t, n = e.series;
4625
4625
  let r = a;
4626
- const s = fi(e, t?.chartLimits);
4626
+ const s = fi(e, i?.chartLimits);
4627
4627
  if (s !== void 0) {
4628
4628
  const o = re(n);
4629
4629
  if (o.length === 1)
@@ -4647,8 +4647,8 @@ function ds(i) {
4647
4647
  }
4648
4648
  return r;
4649
4649
  }
4650
- async function wt(i) {
4651
- const { chartConfig: e, queryConfig: t, queryObject: a, abortKey: n, binnedServerData: r, options: s } = i, { chartLimits: o, usePopupTemplateFieldsInfo: c } = s ?? {}, { behaviorAfterLimit: l } = o ?? {}, u = e.series, d = u[0], { x: f } = d, m = K(d.query?.where), g = { valid: !0 };
4650
+ async function wt(t) {
4651
+ const { chartConfig: e, queryConfig: i, queryObject: a, abortKey: n, binnedServerData: r, options: s } = t, { chartLimits: o, usePopupTemplateFieldsInfo: c } = s ?? {}, { behaviorAfterLimit: l } = o ?? {}, u = e.series, d = u[0], { x: f } = d, m = K(d.query?.where), g = { valid: !0 };
4652
4652
  let y;
4653
4653
  if (se(d)) {
4654
4654
  const { temporalBinning: p } = d;
@@ -4661,14 +4661,14 @@ async function wt(i) {
4661
4661
  setTimeBinningInfoWhenNotProvided: s?.setTimeBinningInfoWhenNotProvided
4662
4662
  });
4663
4663
  let A = r?.timeBinningStats;
4664
- !A && (!Qe(a) || v) && (A = await kr({ queryObject: a, queryConfig: t, x: f })), v && A && A.numberOfFeatures > 0 && A.dateRange.dateMaxTimestamp !== void 0 && A.dateRange.dateMinTimestamp !== void 0 && (B = Yr(A), (await Te(a)).find((q) => q.name === f)?.type === Ye.DateOnly && B.unit !== void 0 && [
4664
+ !A && (!Qe(a) || v) && (A = await kr({ queryObject: a, queryConfig: i, x: f })), v && A && A.numberOfFeatures > 0 && A.dateRange.dateMaxTimestamp !== void 0 && A.dateRange.dateMinTimestamp !== void 0 && (B = Yr(A), (await Te(a)).find((q) => q.name === f)?.type === Ye.DateOnly && B.unit !== void 0 && [
4665
4665
  j.Hour,
4666
4666
  j.Minute,
4667
4667
  j.Second
4668
4668
  ].includes(B.unit) && (B.unit = j.Day, B.size = 1), p.size = B.size, p.unit = B.unit);
4669
4669
  const { uniqueQuery: w, mapToStatField: L } = await ct({
4670
4670
  chartConfig: e,
4671
- queryConfig: t,
4671
+ queryConfig: i,
4672
4672
  queryObject: a,
4673
4673
  timeIntervalInfo: B,
4674
4674
  options: s
@@ -4731,7 +4731,7 @@ async function wt(i) {
4731
4731
  abortKey: n
4732
4732
  }), g.binnedServerData = { data: Ce(y), timeBinningStats: A }, y = await Ur({
4733
4733
  queryObject: a,
4734
- queryConfig: t,
4734
+ queryConfig: i,
4735
4735
  queryResults: y,
4736
4736
  x: f,
4737
4737
  seriesConfig: u,
@@ -4746,8 +4746,8 @@ async function wt(i) {
4746
4746
  }
4747
4747
  return g;
4748
4748
  }
4749
- async function fs(i) {
4750
- const { chartConfig: e, queryConfig: t, queryObject: a, abortKey: n, options: r } = i, s = He(e), { setTimeBinningInfoWhenNotProvided: o, chartLimits: c, usePopupTemplateFieldsInfo: l } = r ?? {}, u = { valid: !0 };
4749
+ async function fs(t) {
4750
+ const { chartConfig: e, queryConfig: i, queryObject: a, abortKey: n, options: r } = t, s = He(e), { setTimeBinningInfoWhenNotProvided: o, chartLimits: c, usePopupTemplateFieldsInfo: l } = r ?? {}, u = { valid: !0 };
4751
4751
  if (a !== void 0) {
4752
4752
  const d = e.series, f = Ne({
4753
4753
  seriesConfig: d[0],
@@ -4756,7 +4756,7 @@ async function fs(i) {
4756
4756
  }), { uniqueQuery: m, mapToStatField: g } = await ct({
4757
4757
  chartConfig: e,
4758
4758
  queryObject: a,
4759
- queryConfig: t,
4759
+ queryConfig: i,
4760
4760
  fetchFullBoxPlotData: !s,
4761
4761
  options: r
4762
4762
  });
@@ -4777,28 +4777,28 @@ async function fs(i) {
4777
4777
  }
4778
4778
  return u;
4779
4779
  }
4780
- async function ms(i) {
4781
- const { chartConfig: e, queryConfig: t, queryObject: a, abortKey: n, options: r, errorStrings: s } = i, o = "showMean" in e ? e.showMean : !1, c = await Pt({
4780
+ async function ms(t) {
4781
+ const { chartConfig: e, queryConfig: i, queryObject: a, abortKey: n, options: r, errorStrings: s } = t, o = "showMean" in e ? e.showMean : !1, c = await Pt({
4782
4782
  queryObject: a,
4783
4783
  chartConfig: e,
4784
- queryConfig: t,
4784
+ queryConfig: i,
4785
4785
  options: r,
4786
4786
  errorStrings: s,
4787
4787
  abortKey: n
4788
4788
  });
4789
4789
  return o && c.data && "dataItems" in c.data && "meanLines" in c.data && c.data.meanLines && (c.data.dataItems = [...c.data.dataItems, ...c.data.meanLines]), c;
4790
4790
  }
4791
- function Oi(i) {
4792
- return i?.[nt.defaultGroupOfSlicesId] === !0;
4791
+ function Oi(t) {
4792
+ return t?.[nt.defaultGroupOfSlicesId] === !0;
4793
4793
  }
4794
- function tl(i, e) {
4795
- const t = i.filter(
4794
+ function tl(t, e) {
4795
+ const i = t.filter(
4796
4796
  (a) => !Oi(a)
4797
4797
  );
4798
- return !Le(t, e);
4798
+ return !Le(i, e);
4799
4799
  }
4800
- function gs(i, e) {
4801
- let t = i.reduce((a, n) => {
4800
+ function gs(t, e) {
4801
+ let i = t.reduce((a, n) => {
4802
4802
  if (n[nt.defaultGroupOfSlicesId] === !0) {
4803
4803
  const r = n[b.pieChart.technicalFieldGroupedSlices];
4804
4804
  r !== void 0 && r.forEach((s) => {
@@ -4809,45 +4809,45 @@ function gs(i, e) {
4809
4809
  return a;
4810
4810
  }, []);
4811
4811
  return Ke({
4812
- arrayToSort: t,
4812
+ arrayToSort: i,
4813
4813
  chartConfig: e
4814
- }), t = ci({
4815
- data: { dataItems: t },
4814
+ }), i = ci({
4815
+ data: { dataItems: i },
4816
4816
  seriesConfig: e.series
4817
- })?.dataItems ?? [], t;
4817
+ })?.dataItems ?? [], i;
4818
4818
  }
4819
- function ys(i) {
4820
- const { stringToTruncate: e, characterLimit: t, ellipsis: a = b.chartEllipsis } = i;
4819
+ function ys(t) {
4820
+ const { stringToTruncate: e, characterLimit: i, ellipsis: a = b.chartEllipsis } = t;
4821
4821
  let n = e;
4822
- return typeof t == "number" && Number.isFinite(t) && t > 0 && t < e.length && (n = e.slice(0, t), n = `${n}${a}`), n;
4822
+ return typeof i == "number" && Number.isFinite(i) && i > 0 && i < e.length && (n = e.slice(0, i), n = `${n}${a}`), n;
4823
4823
  }
4824
- function il(i, e = ":") {
4825
- return i ? `‏${e}` : `‎${e}`;
4824
+ function il(t, e = ":") {
4825
+ return t ? `‏${e}` : `‎${e}`;
4826
4826
  }
4827
- function al(i) {
4828
- return (t) => {
4829
- let a = typeof t != "string" ? t?.toString() ?? "" : t;
4827
+ function al(t) {
4828
+ return (i) => {
4829
+ let a = typeof i != "string" ? i?.toString() ?? "" : i;
4830
4830
  return !Z(a) && a !== b.htmlEmptyContent && (a = ys({
4831
4831
  stringToTruncate: a,
4832
- characterLimit: i
4832
+ characterLimit: t
4833
4833
  })), a;
4834
4834
  };
4835
4835
  }
4836
- function ps(i) {
4837
- const e = /[[]/gu, t = /[\]]/gu, a = /[{]/gu, n = /[}]/gu, r = /[']/gu;
4838
- return i = i.replace(e, "[["), i = i.replace(t, "]]"), i = i.replace(a, "{{"), i = i.replace(n, "}}"), i = i.replace(r, "''"), i;
4836
+ function ps(t) {
4837
+ const e = /[[]/gu, i = /[\]]/gu, a = /[{]/gu, n = /[}]/gu, r = /[']/gu;
4838
+ return t = t.replace(e, "[["), t = t.replace(i, "]]"), t = t.replace(a, "{{"), t = t.replace(n, "}}"), t = t.replace(r, "''"), t;
4839
4839
  }
4840
- function hs(i, e) {
4841
- let t = "";
4842
- return i !== void 0 && (t = `${e === "amChartsV5" ? "fontStyle" : "font-style"}:${i};`), t;
4840
+ function hs(t, e) {
4841
+ let i = "";
4842
+ return t !== void 0 && (i = `${e === "amChartsV5" ? "fontStyle" : "font-style"}:${t};`), i;
4843
4843
  }
4844
- function Ss(i, e) {
4845
- let t = "";
4846
- return i === !0 && (t = `${e === "amChartsV5" ? "letterSpacing" : "letter-spacing"}:1px;`), t;
4844
+ function Ss(t, e) {
4845
+ let i = "";
4846
+ return t === !0 && (i = `${e === "amChartsV5" ? "letterSpacing" : "letter-spacing"}:1px;`), i;
4847
4847
  }
4848
- function nl(i) {
4849
- const { textSymbol: e, placeholderString: t, format: a, axisLabelsBehavior: n, defaults: r } = i, s = hs(e?.font?.style, a), o = Ss(e?.kerning, a);
4850
- let c = t ?? e?.text ?? "";
4848
+ function nl(t) {
4849
+ const { textSymbol: e, placeholderString: i, format: a, axisLabelsBehavior: n, defaults: r } = t, s = hs(e?.font?.style, a), o = Ss(e?.kerning, a);
4850
+ let c = i ?? e?.text ?? "";
4851
4851
  if (a === "html") {
4852
4852
  let { wrap: l, maxWidth: u } = r ?? {};
4853
4853
  n === $i.Wrap && (l = !0, u = u ?? b.xAxisLabelMaxWidth);
@@ -4857,22 +4857,22 @@ function nl(i) {
4857
4857
  c = ps(c), (s !== "" || o !== "") && (c = `[${s}${o}]${c}[/]`);
4858
4858
  return c;
4859
4859
  }
4860
- function Fs(i) {
4861
- return i ? i.replace(/[A-Z]/gu, (e) => `-${e.toLowerCase()}`) : void 0;
4860
+ function Fs(t) {
4861
+ return t ? t.replace(/[A-Z]/gu, (e) => `-${e.toLowerCase()}`) : void 0;
4862
4862
  }
4863
4863
  const Ee = {
4864
4864
  ChartRenderer: 1,
4865
4865
  LayerRenderer: 2
4866
4866
  };
4867
- function rl(i) {
4868
- const { chartConfig: e, queryObject: t } = i;
4867
+ function rl(t) {
4868
+ const { chartConfig: e, queryObject: i } = t;
4869
4869
  let a = !1;
4870
4870
  if (e.chartRenderer)
4871
4871
  a = !0;
4872
4872
  else {
4873
4873
  const { series: n } = e, r = W(n), s = V(n), o = we(e), c = Ne({
4874
4874
  seriesConfig: o
4875
- }), u = z(t)?.renderer;
4875
+ }), u = z(i)?.renderer;
4876
4876
  switch (u?.type) {
4877
4877
  case te.Simple:
4878
4878
  a = r === S.HistogramSeries || r === S.ScatterSeries || s === h.BarAndLineMonoField || s === h.BoxPlotMonoField || s === h.BoxPlotMultiFields || s === h.BoxPlotMonoFieldAndCategory || s === h.BarAndLineNoAggregation && n.length === 1 && !c;
@@ -4897,39 +4897,39 @@ function rl(i) {
4897
4897
  }
4898
4898
  return a;
4899
4899
  }
4900
- function bs(i, e) {
4901
- return Fs(i?.type) ?? e?.type;
4900
+ function bs(t, e) {
4901
+ return Fs(t?.type) ?? e?.type;
4902
4902
  }
4903
- function xs(i) {
4903
+ function xs(t) {
4904
4904
  const e = b.rendererSymbolField;
4905
- let t = e in i ? e : void 0;
4906
- if (!t) {
4907
- const a = i[b.originalCategoryValue];
4908
- t = Object.keys(i).find((n) => {
4909
- const r = i[n];
4905
+ let i = e in t ? e : void 0;
4906
+ if (!i) {
4907
+ const a = t[b.originalCategoryValue];
4908
+ i = Object.keys(t).find((n) => {
4909
+ const r = t[n];
4910
4910
  return n.includes(e) && r?.label && r?.uniqueValue === a;
4911
- }), t || (t = Object.keys(i).find((n) => n.includes(e)) ?? "");
4911
+ }), i || (i = Object.keys(t).find((n) => n.includes(e)) ?? "");
4912
4912
  }
4913
- return i[t]?.label;
4913
+ return t[i]?.label;
4914
4914
  }
4915
- function Cs(i) {
4916
- return i?.type !== void 0 && (i.color !== void 0 || i.label !== void 0 || i.style !== void 0 || i.outline !== void 0);
4915
+ function Cs(t) {
4916
+ return t?.type !== void 0 && (t.color !== void 0 || t.label !== void 0 || t.style !== void 0 || t.outline !== void 0);
4917
4917
  }
4918
- function qi(i) {
4919
- const { symbolField: e, dataItem: t, rendererSymbol: a, rendererOrigin: n } = i;
4918
+ function qi(t) {
4919
+ const { symbolField: e, dataItem: i, rendererSymbol: a, rendererOrigin: n } = t;
4920
4920
  let r = !1;
4921
4921
  if (!Cs(a))
4922
- delete t[e];
4922
+ delete i[e];
4923
4923
  else {
4924
4924
  const s = { ...a };
4925
- s.color !== void 0 && n === Ee.LayerRenderer && (s.color[3] = ri * 255), n === Ee.LayerRenderer && (delete s.style, delete s.outline, delete s.label), t[e] = s, r = !0;
4925
+ s.color !== void 0 && n === Ee.LayerRenderer && (s.color[3] = ri * 255), n === Ee.LayerRenderer && (delete s.style, delete s.outline, delete s.label), i[e] = s, r = !0;
4926
4926
  }
4927
4927
  return r;
4928
4928
  }
4929
- function Bs(i) {
4930
- const { renderer: e, seriesConfig: t, chartSubType: a, dataItem: n, rendererOrigin: r } = i;
4929
+ function Bs(t) {
4930
+ const { renderer: e, seriesConfig: i, chartSubType: a, dataItem: n, rendererOrigin: r } = t;
4931
4931
  let s, o = !1;
4932
- const c = W(t), { outline: l, attributes: u } = e;
4932
+ const c = W(i), { outline: l, attributes: u } = e;
4933
4933
  return u.forEach(
4934
4934
  (d) => {
4935
4935
  let { field: f } = d;
@@ -4943,7 +4943,7 @@ function Bs(i) {
4943
4943
  case S.ComboLineAndBarSeries:
4944
4944
  case S.RadarSeries:
4945
4945
  if (a !== h.BarAndLineFromFields) {
4946
- const F = t.find((x) => x.query?.outStatistics?.[0]?.onStatisticField === f);
4946
+ const F = i.find((x) => x.query?.outStatistics?.[0]?.onStatisticField === f);
4947
4947
  F !== void 0 && "y" in F ? f = [F.y].flat()[0] : f = "";
4948
4948
  }
4949
4949
  p = a !== h.BarAndLineFromFields || f === n[b.originalCategoryValue];
@@ -4952,7 +4952,7 @@ function Bs(i) {
4952
4952
  p = a === h.PieFromFields && f === n[b.originalCategoryValue];
4953
4953
  break;
4954
4954
  case S.BoxPlotSeries:
4955
- a === h.BoxPlotMonoField || a === h.BoxPlotMonoFieldAndCategory ? p = f === t[0].y : f && (a === h.BoxPlotMultiFields || a === h.BoxPlotMultiFieldsAndCategory) && (p = t.map((x) => x.y).flat().includes(f)), C = !1;
4955
+ a === h.BoxPlotMonoField || a === h.BoxPlotMonoFieldAndCategory ? p = f === i[0].y : f && (a === h.BoxPlotMultiFields || a === h.BoxPlotMultiFieldsAndCategory) && (p = i.map((x) => x.y).flat().includes(f)), C = !1;
4956
4956
  break;
4957
4957
  }
4958
4958
  p && y && (s = {
@@ -4968,18 +4968,18 @@ function Bs(i) {
4968
4968
  }
4969
4969
  ), { rendererSymbol: s, colorMatchApplied: o };
4970
4970
  }
4971
- function vs(i) {
4972
- const { seriesConfig: e, chartSubType: t, rendererType: a } = i;
4971
+ function vs(t) {
4972
+ const { seriesConfig: e, chartSubType: i, rendererType: a } = t;
4973
4973
  let r = b.rendererSymbolField;
4974
4974
  if (a === te.UniqueValue) {
4975
- if (Kt(t)) {
4975
+ if (Kt(i)) {
4976
4976
  const s = me({
4977
4977
  where: e.query?.where
4978
4978
  });
4979
- s === null ? r = b.nullValue : t === h.BarAndLineSplitBy && typeof e.y == "string" ? r = e.y : t === h.BarAndLineSplitByNoAggregation && typeof e.y == "string" ? r = `${e.y}_${s}` : r = `${s}`;
4979
+ s === null ? r = b.nullValue : i === h.BarAndLineSplitBy && typeof e.y == "string" ? r = e.y : i === h.BarAndLineSplitByNoAggregation && typeof e.y == "string" ? r = `${e.y}_${s}` : r = `${s}`;
4980
4980
  }
4981
4981
  } else if (a === te.PieChart)
4982
- switch (t) {
4982
+ switch (i) {
4983
4983
  case h.BoxPlotMultiFields:
4984
4984
  r = Array.isArray(e.y) ? e.y.flat() : e.y;
4985
4985
  break;
@@ -4993,30 +4993,30 @@ function vs(i) {
4993
4993
  }
4994
4994
  return r;
4995
4995
  }
4996
- function Ei(i) {
4997
- const { seriesConfig: e, chartSubType: t, rendererType: a, dataItem: n } = i;
4996
+ function Ei(t) {
4997
+ const { seriesConfig: e, chartSubType: i, rendererType: a, dataItem: n } = t;
4998
4998
  let r = vs({
4999
4999
  seriesConfig: e,
5000
- chartSubType: t,
5000
+ chartSubType: i,
5001
5001
  rendererType: a
5002
5002
  });
5003
5003
  return r instanceof Array && e.type === S.BoxPlotSeries && a === te.PieChart && n !== void 0 && (r = r.find((s) => s === n[Jt]) ?? r[0]), r = r !== b.rendererSymbolField ? `${b.rendererSymbolField}_${r.toString()}` : r, r;
5004
5004
  }
5005
- function Ns(i) {
5006
- const { chartRenderer: e, queryObject: t } = i, a = e !== void 0 ? {
5005
+ function Ns(t) {
5006
+ const { chartRenderer: e, queryObject: i } = t, a = e !== void 0 ? {
5007
5007
  // TODO: find a better way to copy the layer. For now it's all right as the information we need are not lost with the spread operator
5008
5008
  // eslint-disable-next-line @typescript-eslint/no-misused-spread
5009
- ...z(t),
5009
+ ...z(i),
5010
5010
  renderer: xa.fromJSON(e)
5011
- } : z(t);
5011
+ } : z(i);
5012
5012
  return new Ca({
5013
5013
  layer: a
5014
5014
  });
5015
5015
  }
5016
- async function Ts(i) {
5016
+ async function Ts(t) {
5017
5017
  const {
5018
5018
  seriesConfig: e,
5019
- dataItem: t,
5019
+ dataItem: i,
5020
5020
  renderer: a,
5021
5021
  rendererType: n,
5022
5022
  rendererOrigin: r,
@@ -5025,18 +5025,18 @@ async function Ts(i) {
5025
5025
  graphicTemplate: c,
5026
5026
  rendererFieldNames: l,
5027
5027
  mapAttributesToSymbol: u
5028
- } = i;
5028
+ } = t;
5029
5029
  let d, f = !1;
5030
5030
  if (n === te.PieChart) {
5031
5031
  const m = Bs({
5032
5032
  renderer: a,
5033
5033
  seriesConfig: e,
5034
5034
  chartSubType: s,
5035
- dataItem: t,
5035
+ dataItem: i,
5036
5036
  rendererOrigin: r
5037
5037
  });
5038
5038
  d = m.rendererSymbol, f = m.colorMatchApplied;
5039
- } else if (!Oi(t)) {
5039
+ } else if (!Oi(i)) {
5040
5040
  const { x: m } = e[0], g = /* @__PURE__ */ new Map();
5041
5041
  o && o.trim() !== "" ? e.forEach((y) => {
5042
5042
  if (y.type === S.BarSeries || y.type === S.LineSeries || y.type === S.BoxPlotSeries || y.type === S.RadarSeries) {
@@ -5044,7 +5044,7 @@ async function Ts(i) {
5044
5044
  seriesConfig: y,
5045
5045
  chartSubType: s,
5046
5046
  rendererType: n,
5047
- dataItem: t
5047
+ dataItem: i
5048
5048
  }), C = me({
5049
5049
  where: y.query?.where,
5050
5050
  normalize: !0,
@@ -5052,13 +5052,13 @@ async function Ts(i) {
5052
5052
  escape: !1
5053
5053
  });
5054
5054
  g.set(p, {
5055
- ...t,
5055
+ ...i,
5056
5056
  [o]: C
5057
5057
  });
5058
5058
  }
5059
5059
  }) : g.set(b.rendererSymbolField, {
5060
- ...t,
5061
- [m]: za(t)
5060
+ ...i,
5061
+ [m]: za(i)
5062
5062
  });
5063
5063
  try {
5064
5064
  const y = Array.from(g.entries()), p = c.clone();
@@ -5087,9 +5087,9 @@ async function Ts(i) {
5087
5087
  mode: "revert",
5088
5088
  x: m,
5089
5089
  splitByField: o,
5090
- attributes: t
5090
+ attributes: i
5091
5091
  }), qi({
5092
- dataItem: t,
5092
+ dataItem: i,
5093
5093
  symbolField: x,
5094
5094
  rendererSymbol: d,
5095
5095
  rendererOrigin: r
@@ -5100,29 +5100,29 @@ async function Ts(i) {
5100
5100
  }
5101
5101
  return { rendererSymbol: d, colorMatchApplied: f };
5102
5102
  }
5103
- function As(i) {
5104
- const e = i;
5105
- return i?.type === "uniqueValue" && (i.uniqueValueInfos = i.uniqueValueInfos.map((t) => {
5106
- const a = t.value === null ? b.nullValue : t.value;
5107
- return { ...t, value: a };
5103
+ function As(t) {
5104
+ const e = t;
5105
+ return t?.type === "uniqueValue" && (t.uniqueValueInfos = t.uniqueValueInfos.map((i) => {
5106
+ const a = i.value === null ? b.nullValue : i.value;
5107
+ return { ...i, value: a };
5108
5108
  })), e;
5109
5109
  }
5110
- function Ht(i) {
5111
- const { splitByField: e, attributes: t, x: a, mode: n } = i;
5110
+ function Ht(t) {
5111
+ const { splitByField: e, attributes: i, x: a, mode: n } = t;
5112
5112
  [a, e ?? ""].forEach((r) => {
5113
- t[r] === (n === "encode" ? null : b.nullValue) && (t[r] = n === "encode" ? b.nullValue : null);
5113
+ i[r] === (n === "encode" ? null : b.nullValue) && (i[r] = n === "encode" ? b.nullValue : null);
5114
5114
  });
5115
5115
  }
5116
- async function sl(i) {
5117
- const { data: e, queryObject: t, chartConfig: a, allowColorMatch: n } = i;
5116
+ async function sl(t) {
5117
+ const { data: e, queryObject: i, chartConfig: a, allowColorMatch: n } = t;
5118
5118
  let r = !1, s = [];
5119
5119
  if (n) {
5120
- const { series: o, chartRenderer: c } = a, l = As(c), u = l ? Ee.ChartRenderer : Ee.LayerRenderer, d = t ? z(t) : void 0, f = l ?? d?.renderer;
5120
+ const { series: o, chartRenderer: c } = a, l = As(c), u = l ? Ee.ChartRenderer : Ee.LayerRenderer, d = i ? z(i) : void 0, f = l ?? d?.renderer;
5121
5121
  let m;
5122
5122
  d && u === Ee.LayerRenderer ? s = await Zt(d) : u === Ee.ChartRenderer && (s = Ms(f));
5123
5123
  const g = bs(l, d?.renderer), y = Ns({
5124
5124
  chartRenderer: c,
5125
- queryObject: t
5125
+ queryObject: i
5126
5126
  }), p = V(o), C = we(a), F = K(C.query?.where);
5127
5127
  m = /* @__PURE__ */ new Map();
5128
5128
  for (let x = 0; x < e.length; x += 1) {
@@ -5143,12 +5143,12 @@ async function sl(i) {
5143
5143
  }
5144
5144
  return { dataItems: e, colorMatchApplied: r, rendererFieldNames: s };
5145
5145
  }
5146
- function Ps(i) {
5147
- const { dataItem: e, seriesConfig: t, chartSubType: a, colorMatch: n, rendererType: r } = i;
5146
+ function Ps(t) {
5147
+ const { dataItem: e, seriesConfig: i, chartSubType: a, colorMatch: n, rendererType: r } = t;
5148
5148
  let s;
5149
5149
  if (n && e !== void 0) {
5150
5150
  const o = Ei({
5151
- seriesConfig: t,
5151
+ seriesConfig: i,
5152
5152
  chartSubType: a,
5153
5153
  rendererType: r,
5154
5154
  dataItem: e
@@ -5157,68 +5157,68 @@ function Ps(i) {
5157
5157
  }
5158
5158
  return s;
5159
5159
  }
5160
- function ol(i) {
5161
- const { seriesSymbol: e, rendererSymbol: t, colorIndex: a, preferSeriesSymbolOverRendererSymbol: n } = i;
5162
- let r = t?.color ?? e.color;
5163
- n && (r = e.color ?? t?.color), r = r ?? Ut({ colorIndex: a, opacity: ri });
5164
- const s = {
5160
+ function ol(t) {
5161
+ const { seriesSymbol: e, rendererSymbol: i, colorIndex: a } = t;
5162
+ let n = i?.color ?? e.color;
5163
+ n = n ?? Ut({ colorIndex: a, opacity: ri });
5164
+ const r = {
5165
5165
  ...e,
5166
- color: r
5166
+ color: n
5167
5167
  };
5168
- return t?.type === e.type && t.style !== void 0 && (s.style = t.style), s.type !== rt.SLS && (s.outline = {
5168
+ return i?.type === e.type && i.style !== void 0 && (r.style = i.style), r.type !== rt.SLS && (r.outline = {
5169
5169
  type: rt.SLS,
5170
- style: t?.outline?.style ?? s.outline?.style,
5171
- width: t?.outline?.width ?? s.outline?.width,
5172
- color: t?.outline?.color ?? s.outline?.color ?? t?.color
5173
- }), s;
5170
+ style: i?.outline?.style ?? r.outline?.style,
5171
+ width: i?.outline?.width ?? r.outline?.width,
5172
+ color: i?.outline?.color ?? r.outline?.color ?? i?.color
5173
+ }), r;
5174
5174
  }
5175
- function Ls(i) {
5175
+ function Ls(t) {
5176
5176
  let e = [];
5177
- return i && (e = i.series.flatMap((t) => t.query?.outStatistics?.map((a) => a.onStatisticField)).filter((t) => t !== void 0), e.length === 0 && (e = re(i.series))), e;
5177
+ return t && (e = t.series.flatMap((i) => i.query?.outStatistics?.map((a) => a.onStatisticField)).filter((i) => i !== void 0), e.length === 0 && (e = re(t.series))), e;
5178
5178
  }
5179
- function ll(i, e) {
5180
- let t = !1;
5181
- if (i && e && e.length > 0 && Gt(i)) {
5182
- const n = Wa(i), r = we(i);
5183
- n ? t = Ls(i).some((o) => e.includes(o)) : t = e.includes(r.x);
5179
+ function ll(t, e) {
5180
+ let i = !1;
5181
+ if (t && e && e.length > 0 && Gt(t)) {
5182
+ const n = Wa(t), r = we(t);
5183
+ n ? i = Ls(t).some((o) => e.includes(o)) : i = e.includes(r.x);
5184
5184
  }
5185
- return t;
5185
+ return i;
5186
5186
  }
5187
- function Ms(i) {
5187
+ function Ms(t) {
5188
5188
  let e = [];
5189
- if (i && "type" in i && typeof i.type == "string")
5190
- switch (i.type) {
5189
+ if (t && "type" in t && typeof t.type == "string")
5190
+ switch (t.type) {
5191
5191
  case "uniqueValue":
5192
- "field1" in i && typeof i.field1 == "string" && (e = [i.field1]);
5192
+ "field1" in t && typeof t.field1 == "string" && (e = [t.field1]);
5193
5193
  break;
5194
5194
  case "classBreaks":
5195
- "field" in i && typeof i.field == "string" && (e = [i.field]);
5195
+ "field" in t && typeof t.field == "string" && (e = [t.field]);
5196
5196
  break;
5197
5197
  case "pieChart":
5198
- "attributes" in i && Array.isArray(i.attributes) && (e = i.attributes.map((t) => t.field));
5198
+ "attributes" in t && Array.isArray(t.attributes) && (e = t.attributes.map((i) => i.field));
5199
5199
  break;
5200
5200
  }
5201
5201
  return e;
5202
5202
  }
5203
- function cl(i, e) {
5204
- let t;
5205
- return e !== void 0 && (t = { ...e }, t.legend !== void 0 && (t.legend.position = i)), t;
5203
+ function cl(t, e) {
5204
+ let i;
5205
+ return e !== void 0 && (i = { ...e }, i.legend !== void 0 && (i.legend.position = t)), i;
5206
5206
  }
5207
- function ul(i, e) {
5208
- let t;
5209
- return e !== void 0 && (t = { ...e }, t.legend !== void 0 && (t.legend.visible = i)), t;
5207
+ function ul(t, e) {
5208
+ let i;
5209
+ return e !== void 0 && (i = { ...e }, i.legend !== void 0 && (i.legend.visible = t)), i;
5210
5210
  }
5211
- function dl(i) {
5211
+ function dl(t) {
5212
5212
  let e;
5213
- return i !== void 0 && (e = { ...i }, delete e.axes?.[0]?.minimum, delete e.axes?.[0]?.maximum, delete e.axes?.[1]?.minimum, delete e.axes?.[1]?.maximum), e;
5213
+ 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;
5214
5214
  }
5215
- function fl(i, e) {
5216
- return e != null || La(i);
5215
+ function fl(t, e) {
5216
+ return e != null || La(t);
5217
5217
  }
5218
- async function ws(i) {
5219
- const { queryObject: e, chartConfig: t, options: a, splitByField: n } = i;
5218
+ async function ws(t) {
5219
+ const { queryObject: e, chartConfig: i, options: a, splitByField: n } = t;
5220
5220
  let r = [];
5221
- const s = t.series[0], o = await Pa(t, e), c = ii({
5221
+ const s = i.series[0], o = await Pa(i, e), c = ii({
5222
5222
  queryObject: e,
5223
5223
  chartConfig: o,
5224
5224
  runtimeDataFilters: a?.runtimeDataFilters,
@@ -5264,9 +5264,9 @@ async function ws(i) {
5264
5264
  }
5265
5265
  return r;
5266
5266
  }
5267
- function Ds(i, e) {
5268
- const t = /* @__PURE__ */ new Map();
5269
- return i.series.forEach((a) => {
5267
+ function Ds(t, e) {
5268
+ const i = /* @__PURE__ */ new Map();
5269
+ return t.series.forEach((a) => {
5270
5270
  let n = me({
5271
5271
  where: a.query?.where,
5272
5272
  // normalize the value so it matches what we get from getAllValues()
@@ -5278,41 +5278,41 @@ function Ds(i, e) {
5278
5278
  });
5279
5279
  e && n !== null && (n = Number(n));
5280
5280
  const r = W([a]);
5281
- r !== void 0 && t.set(r, [
5282
- ...t.get(r) ?? [],
5281
+ r !== void 0 && i.set(r, [
5282
+ ...i.get(r) ?? [],
5283
5283
  n
5284
5284
  ]);
5285
- }), t;
5285
+ }), i;
5286
5286
  }
5287
- function Os(i) {
5288
- const { allValues: e, configUniqueValuesPerSeriesType: t, initialConfigWasEmpty: a } = i, n = /* @__PURE__ */ new Map();
5289
- return Array.from(t.keys()).forEach((r) => {
5290
- const s = t.get(r) ?? [];
5287
+ function Os(t) {
5288
+ const { allValues: e, configUniqueValuesPerSeriesType: i, initialConfigWasEmpty: a } = t, n = /* @__PURE__ */ new Map();
5289
+ return Array.from(i.keys()).forEach((r) => {
5290
+ const s = i.get(r) ?? [];
5291
5291
  let o = [];
5292
5292
  a ? o = e : e.forEach((c) => {
5293
5293
  s.includes(c) || o.push(c);
5294
5294
  }), n.set(r, o);
5295
5295
  }), n;
5296
5296
  }
5297
- function qs(i) {
5298
- const { chartConfig: e, missingValue: t, splitByField: a, seriesTemplate: n } = i, r = JSON.parse(
5297
+ function qs(t) {
5298
+ const { chartConfig: e, missingValue: i, splitByField: a, seriesTemplate: n } = t, r = JSON.parse(
5299
5299
  JSON.stringify({
5300
5300
  ...e.series[0],
5301
5301
  ...n
5302
5302
  })
5303
5303
  );
5304
5304
  if (r.query) {
5305
- if (r.id = `${t}-${e.series.length}-${Date.now()}`, r.name = `${t}`, r.query.outStatistics?.[0] !== void 0) {
5305
+ if (r.id = `${i}-${e.series.length}-${Date.now()}`, r.name = `${i}`, r.query.outStatistics?.[0] !== void 0) {
5306
5306
  const o = r.id;
5307
5307
  r.query.outStatistics[0].outStatisticFieldName = o, "y" in r && (r.y = o);
5308
5308
  }
5309
- const s = typeof t == "number" || t === null ? t : `'${t}'`;
5309
+ const s = typeof i == "number" || i === null ? i : `'${i}'`;
5310
5310
  r.query.where = `${a}=${s}`;
5311
5311
  }
5312
5312
  return r;
5313
5313
  }
5314
- async function ml(i, e, t) {
5315
- const { updateSplitBySeries: a } = i, { seriesTemplate: n } = a ?? {};
5314
+ async function ml(t, e, i) {
5315
+ const { updateSplitBySeries: a } = t, { seriesTemplate: n } = a ?? {};
5316
5316
  if (a !== void 0 && e !== void 0 && (e.series.length > 0 || n !== void 0) && a.addMissingSeries) {
5317
5317
  const r = e.series.length === 0;
5318
5318
  e.series.length === 0 && n !== void 0 && e.series.push(n);
@@ -5320,8 +5320,8 @@ async function ml(i, e, t) {
5320
5320
  if (s === h.BoxPlotMonoFieldAndSplitBy || s === h.BoxPlotMultiFieldsAndSplitBy || s === h.BoxPlotMonoFieldAndCategoryAndSplitBy || s === h.BarAndLineSplitBy || s === h.BarAndLineSplitByNoAggregation) {
5321
5321
  const o = await Sa({
5322
5322
  chartConfig: e,
5323
- layer: i.layer,
5324
- view: i.view
5323
+ layer: t.layer,
5324
+ view: t.view
5325
5325
  });
5326
5326
  if (o !== void 0) {
5327
5327
  const c = K(e.series[0]?.query?.where), l = z(o);
@@ -5330,7 +5330,7 @@ async function ml(i, e, t) {
5330
5330
  queryObject: o,
5331
5331
  chartConfig: e,
5332
5332
  splitByField: c,
5333
- options: t
5333
+ options: i
5334
5334
  });
5335
5335
  if (f.length > 0) {
5336
5336
  const m = Ds(e, d), g = Os({