@arcgis/charts-components 5.0.0-next.11 → 5.0.0-next.12

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 (312) hide show
  1. package/dist/cdn/{QOAT6QM6.js → 22IB55EB.js} +2 -2
  2. package/dist/cdn/{UH7PA6U4.js → 2C3MKHKR.js} +2 -2
  3. package/dist/cdn/{KEBUXLNN.js → 2OXTTDB4.js} +2 -2
  4. package/dist/cdn/{YXBR3T5O.js → 2S2W3AHP.js} +2 -2
  5. package/dist/cdn/{VLFOAUH3.js → 2SWDLR7G.js} +2 -2
  6. package/dist/cdn/{PBYDUI2E.js → 33GIYOKG.js} +2 -2
  7. package/dist/cdn/{P3O325UL.js → 3HDMN2HJ.js} +2 -2
  8. package/dist/cdn/{4ND247GN.js → 3JZ44T2W.js} +2 -2
  9. package/dist/cdn/{PZQOPPMQ.js → 3NIZ4BN4.js} +2 -2
  10. package/dist/cdn/{BIOQHHP2.js → 3W3TWGQH.js} +2 -2
  11. package/dist/cdn/{46OGDGHD.js → 4JIZKUME.js} +2 -2
  12. package/dist/cdn/{KE26GDCF.js → 56JQI4D2.js} +2 -2
  13. package/dist/cdn/{6EHHS6AH.js → 5E5Z2QMR.js} +2 -2
  14. package/dist/cdn/5I4UMBK4.js +4 -0
  15. package/dist/cdn/{76VI7AXS.js → 5OLA4ZRE.js} +2 -2
  16. package/dist/cdn/{GAOA5W3Y.js → 5UWN34G6.js} +2 -2
  17. package/dist/cdn/{HNW6IK54.js → 5YSV2K7R.js} +2 -2
  18. package/dist/cdn/{KYLEA675.js → 5Z7UMLPL.js} +1 -1
  19. package/dist/cdn/{PCMJEB7U.js → 64SVF7GP.js} +2 -2
  20. package/dist/cdn/{TYVR72K3.js → 64T7WSPH.js} +2 -2
  21. package/dist/cdn/{ESAWPDZ5.js → 65E6A2OO.js} +2 -2
  22. package/dist/cdn/{ZTVAQU5G.js → 6GTYZKJ5.js} +2 -2
  23. package/dist/cdn/{MS3O6FVR.js → 6H755NF6.js} +2 -2
  24. package/dist/cdn/{GX3H4RK7.js → 6KG7OWXY.js} +2 -2
  25. package/dist/cdn/{MQGBSL73.js → 6QYVP6ES.js} +2 -2
  26. package/dist/cdn/{UUINEBF7.js → 74ZFZ6O2.js} +2 -2
  27. package/dist/cdn/{XZDKT5H5.js → 7FTRD5WA.js} +2 -2
  28. package/dist/cdn/{DKXTZT5G.js → 7NQBB57M.js} +2 -2
  29. package/dist/cdn/{ZTX5WVGN.js → 7YJIUSST.js} +2 -2
  30. package/dist/cdn/{Q7BE5M2H.js → 7Z2AGBY3.js} +2 -2
  31. package/dist/cdn/{GA7Y3R46.js → A6RAU3DT.js} +2 -2
  32. package/dist/cdn/{SDUWO3I3.js → AADNTWG6.js} +2 -2
  33. package/dist/cdn/{L5EVKZ46.js → AG5QFTCY.js} +2 -2
  34. package/dist/cdn/{NICGPDPS.js → AG63GBD4.js} +2 -2
  35. package/dist/cdn/{VFUIZ3L5.js → AKGFWH5D.js} +2 -2
  36. package/dist/cdn/AVUD3TS3.js +4 -0
  37. package/dist/cdn/{XJLGPQUE.js → AYQOIEGG.js} +2 -2
  38. package/dist/cdn/{FNQYHKET.js → B65MBETP.js} +2 -2
  39. package/dist/cdn/{GFXDEMFH.js → B7RB5ZSV.js} +2 -2
  40. package/dist/cdn/{WX4A2XLN.js → B7RYRRNX.js} +2 -2
  41. package/dist/cdn/{HTPDFS7C.js → BA3R2UGR.js} +2 -2
  42. package/dist/cdn/{YUARE4LG.js → BCL33Z7L.js} +2 -2
  43. package/dist/cdn/{TAUW75R7.js → BI2C4GOI.js} +2 -2
  44. package/dist/cdn/{T3DQKITI.js → BIONU7A4.js} +2 -2
  45. package/dist/cdn/{6D46UHB4.js → BOPXZV2B.js} +2 -2
  46. package/dist/cdn/{FNWAMQNA.js → BQK5ZYBJ.js} +2 -2
  47. package/dist/cdn/{ZBK5OBNY.js → BSBBZAFU.js} +2 -2
  48. package/dist/cdn/{A46SJYR4.js → BSC3HMLF.js} +2 -2
  49. package/dist/cdn/BTW7QYPY.js +4 -0
  50. package/dist/cdn/BVMXKDIA.js +4 -0
  51. package/dist/cdn/{75P3DL5U.js → BXEYZKCK.js} +2 -2
  52. package/dist/cdn/{VKKSNM74.js → C55MEH5I.js} +2 -2
  53. package/dist/cdn/{IG5LDS4Y.js → C6A6MGAY.js} +2 -2
  54. package/dist/cdn/{YDCNNUIW.js → DEIX6GIQ.js} +2 -2
  55. package/dist/cdn/DH2NSV4P.js +4 -0
  56. package/dist/cdn/{I62ZZ5D3.js → DH4V3K32.js} +2 -2
  57. package/dist/cdn/{2XBCLUWH.js → DL463G3N.js} +1 -1
  58. package/dist/cdn/{KZFBZ4CR.js → E27H2XY7.js} +2 -2
  59. package/dist/cdn/{FUSF5ZJW.js → EAYNJ5AO.js} +2 -2
  60. package/dist/cdn/{46AQB4RN.js → EECTIMWO.js} +2 -2
  61. package/dist/cdn/{VOWYESAI.js → EHJ3WL66.js} +2 -2
  62. package/dist/cdn/{YNLJ5KYY.js → ERIN6JQ5.js} +2 -2
  63. package/dist/cdn/{EX7NWIQI.js → ETEJECER.js} +2 -2
  64. package/dist/cdn/{ANHR5HDI.js → EU4QSJBL.js} +2 -2
  65. package/dist/cdn/{WBTM4N6F.js → EXEYTQUM.js} +2 -2
  66. package/dist/cdn/{G5H2TEHV.js → EXHTMS6X.js} +2 -2
  67. package/dist/cdn/{D7KVD74Z.js → F72SPKP6.js} +2 -2
  68. package/dist/cdn/{QIRL44NY.js → FYZNX663.js} +2 -2
  69. package/dist/cdn/{YLPMJC4J.js → G2E7M5DL.js} +2 -2
  70. package/dist/cdn/{544A757B.js → GHBELWWV.js} +2 -2
  71. package/dist/cdn/{BEOI623J.js → GN5UM7AR.js} +2 -2
  72. package/dist/cdn/{R3MH4BTS.js → GR2YDGSB.js} +2 -2
  73. package/dist/cdn/{VC3AFSMA.js → GUOEC2KW.js} +20 -20
  74. package/dist/cdn/{WA7XJCBI.js → GUTOSBOV.js} +1 -1
  75. package/dist/cdn/{7BTVYU5I.js → GV4LDHU3.js} +2 -2
  76. package/dist/cdn/{PRYG5NDO.js → H3EX6WII.js} +2 -2
  77. package/dist/cdn/{7EIEE7CY.js → HCUYSWSJ.js} +2 -2
  78. package/dist/cdn/{GZYJKRRH.js → HKAFIYXH.js} +2 -2
  79. package/dist/cdn/{E3PU5M4B.js → HNJC2DDD.js} +2 -2
  80. package/dist/cdn/{2YYJBTA7.js → HOFVTVUG.js} +2 -2
  81. package/dist/cdn/{KGFCBC6J.js → HPV6VPJO.js} +2 -2
  82. package/dist/cdn/{HWOI3JHY.js → HVLM6CNI.js} +2 -2
  83. package/dist/cdn/{L44RKUV4.js → HWTRDFNM.js} +2 -2
  84. package/dist/cdn/{C4AT54AS.js → I5YHSYQS.js} +2 -2
  85. package/dist/cdn/{57UGHJXZ.js → IPO64FZF.js} +2 -2
  86. package/dist/cdn/{354XZGLO.js → IREM73Z4.js} +2 -2
  87. package/dist/cdn/{MOQGNLBN.js → IZNICEPC.js} +2 -2
  88. package/dist/cdn/{6KAYWIQD.js → JAQB6CAY.js} +2 -2
  89. package/dist/cdn/{R2HNCNQQ.js → JC2EN7UR.js} +2 -2
  90. package/dist/cdn/{T7SHGQEL.js → JDGI6HGG.js} +2 -2
  91. package/dist/cdn/{YU4FEQUO.js → JFJVRDN2.js} +2 -2
  92. package/dist/cdn/{INGWKMWM.js → JJVF47IJ.js} +2 -2
  93. package/dist/cdn/{RGD2IITK.js → JNOAFULY.js} +2 -2
  94. package/dist/cdn/{FCGB6WZP.js → JVXLHPIT.js} +2 -2
  95. package/dist/cdn/{NQ2OLZZP.js → JZ4MUN6S.js} +2 -2
  96. package/dist/cdn/{OC2NUSTD.js → K6YBXQFQ.js} +2 -2
  97. package/dist/cdn/{TZ3BFZSU.js → KHZGJ6EJ.js} +2 -2
  98. package/dist/cdn/{DXXE2FCU.js → KMGG327W.js} +2 -2
  99. package/dist/cdn/KMGGRJY3.js +4 -0
  100. package/dist/cdn/{O5IJQHTR.js → KS2XUMT7.js} +2 -2
  101. package/dist/cdn/{TIPC63VI.js → KTPQKBVU.js} +2 -2
  102. package/dist/cdn/{4RFFJ3NA.js → L4K6PVG6.js} +1 -1
  103. package/dist/cdn/{2CCWCSJX.js → LK4QUAWM.js} +2 -2
  104. package/dist/cdn/{CXK3VEMG.js → LL3DJZYY.js} +2 -2
  105. package/dist/cdn/{ROBXAUE5.js → LNTBMXGZ.js} +2 -2
  106. package/dist/cdn/{E5HVGUO3.js → LNXCZDFF.js} +2 -2
  107. package/dist/cdn/{RRPSOR5G.js → M6JQULWR.js} +2 -2
  108. package/dist/cdn/{BG3JEWEK.js → MAQ3BQBQ.js} +2 -2
  109. package/dist/cdn/{RZCXUAIQ.js → MJEZRDLA.js} +2 -2
  110. package/dist/cdn/{MDNWPBKX.js → MKLHHQDW.js} +2 -2
  111. package/dist/cdn/{S37EGL7I.js → MYHIOBRJ.js} +2 -2
  112. package/dist/cdn/{H7RL7LD5.js → NENCSBWP.js} +2 -2
  113. package/dist/cdn/{KNHIYMGH.js → NGOKMUHU.js} +2 -2
  114. package/dist/cdn/{4GR57BDP.js → NIC2FQFP.js} +1 -1
  115. package/dist/cdn/{EO2Q75OQ.js → NJEE2YX3.js} +1 -1
  116. package/dist/cdn/{4VX2V4JT.js → NSR7MQVM.js} +2 -2
  117. package/dist/cdn/{KGROUKCZ.js → OAI4TB6K.js} +2 -2
  118. package/dist/cdn/{DTUFD5TQ.js → OEXIDIAB.js} +2 -2
  119. package/dist/cdn/{WM56S2PE.js → OK66ZTMY.js} +2 -2
  120. package/dist/cdn/{M7MVIXQ4.js → OKM3TERJ.js} +2 -2
  121. package/dist/cdn/{VLXSSM5Y.js → OP5YQOKF.js} +2 -2
  122. package/dist/cdn/{6UN6D5CT.js → OQNIAWXM.js} +2 -2
  123. package/dist/cdn/{ONB6IGUB.js → ORZOPEOT.js} +2 -2
  124. package/dist/cdn/{KGTMO3CH.js → OVDBSOMI.js} +2 -2
  125. package/dist/cdn/{2ETVMCCV.js → OW2RBVIX.js} +2 -2
  126. package/dist/cdn/{HC5ZOQM3.js → OXUH3KV5.js} +2 -2
  127. package/dist/cdn/{EPXSCO3K.js → OY3LIXLM.js} +2 -2
  128. package/dist/cdn/{GLK4BO3G.js → OZXWI5SO.js} +1 -1
  129. package/dist/cdn/Q4J5F5KF.js +4 -0
  130. package/dist/cdn/{CP3XQSAG.js → QJDOU4OX.js} +2 -2
  131. package/dist/cdn/{EWATEM45.js → QTIKZWJY.js} +2 -2
  132. package/dist/cdn/{YX7K5U7W.js → RAAO4LTQ.js} +2 -2
  133. package/dist/cdn/{2LQWBSIA.js → RLMD2QSH.js} +1 -1
  134. package/dist/cdn/{CR4S2VO7.js → RPA6PPH2.js} +2 -2
  135. package/dist/cdn/{3UJKZHME.js → RTDUUVHQ.js} +2 -2
  136. package/dist/cdn/{5YROLBVM.js → RVC7X533.js} +2 -2
  137. package/dist/cdn/{HYT4U6SF.js → RYVUHOFA.js} +2 -2
  138. package/dist/cdn/{T24D5D3W.js → RZJV3MLI.js} +2 -2
  139. package/dist/cdn/{2NOHOL6O.js → SJCFW5C2.js} +2 -2
  140. package/dist/cdn/{NFSGP5QH.js → SKAUGJF4.js} +2 -2
  141. package/dist/cdn/{RUSJGRU7.js → SMLIAVED.js} +2 -2
  142. package/dist/cdn/{2AFJANUY.js → SOUD6I5A.js} +2 -2
  143. package/dist/cdn/{5SXZTEAS.js → STMOAC2M.js} +2 -2
  144. package/dist/cdn/{UMY3Y4W7.js → STNAE3OA.js} +2 -2
  145. package/dist/cdn/{CRWGSUPS.js → SVGOJZWQ.js} +2 -2
  146. package/dist/cdn/{HRKXBFCS.js → TCQRJQOM.js} +2 -2
  147. package/dist/cdn/{TREVNDOA.js → TIFA2X4Z.js} +2 -2
  148. package/dist/cdn/{RLLJLWLF.js → TUGHNK3D.js} +2 -2
  149. package/dist/cdn/{U5WW5LSY.js → TVVC65FJ.js} +2 -2
  150. package/dist/cdn/{CAFXEHI3.js → U4UMDYKQ.js} +2 -2
  151. package/dist/cdn/{OAOMMFL6.js → UD73TXFE.js} +1 -1
  152. package/dist/cdn/{KBQW3W74.js → UJS6GFEO.js} +2 -2
  153. package/dist/cdn/{3ONM62LY.js → UKCTNQYO.js} +2 -2
  154. package/dist/cdn/{HEG6SOBH.js → UL4KVAYS.js} +2 -2
  155. package/dist/cdn/{WOESM47T.js → UMSRV2K4.js} +2 -2
  156. package/dist/cdn/{LH3EV4QA.js → UOPASKCG.js} +2 -2
  157. package/dist/cdn/{22Y6COWF.js → UXPU4Y2J.js} +2 -2
  158. package/dist/cdn/{LY5KA7FN.js → VAWSAPOU.js} +2 -2
  159. package/dist/cdn/{X5AZW6SE.js → VBPIBHRL.js} +2 -2
  160. package/dist/cdn/VHZGCXHC.js +42 -0
  161. package/dist/cdn/{32OELYJN.js → VRFM5JOQ.js} +2 -2
  162. package/dist/cdn/VX7NI77V.js +4 -0
  163. package/dist/cdn/{B6JO6FDZ.js → VXDIAOEX.js} +2 -2
  164. package/dist/cdn/{7H5NKR74.js → VYLCP4LD.js} +2 -2
  165. package/dist/cdn/{WLOIP6DT.js → W6PGLPBY.js} +2 -2
  166. package/dist/cdn/{DJDYODBC.js → WO2Z2LJQ.js} +2 -2
  167. package/dist/cdn/{KZ7FVUOD.js → XBJL7LFX.js} +2 -2
  168. package/dist/cdn/{EJJFMTXQ.js → XCCFBZWO.js} +1 -1
  169. package/dist/cdn/{VCY7RETK.js → XLVY443C.js} +2 -2
  170. package/dist/cdn/{U2OX5FFG.js → XMVL337M.js} +2 -2
  171. package/dist/cdn/{HEGDV26E.js → XZ7YSCBL.js} +2 -2
  172. package/dist/cdn/{R6EA33MV.js → YKVUAVYM.js} +2 -2
  173. package/dist/cdn/{GNQULEHX.js → YPZWBASE.js} +2 -2
  174. package/dist/cdn/{A7CZNCPA.js → YQAOOVTO.js} +2 -2
  175. package/dist/cdn/{QKA3LRCS.js → YRC3SBCB.js} +2 -2
  176. package/dist/cdn/{3YKN5KCT.js → YSICO7J3.js} +2 -2
  177. package/dist/cdn/{CYBCAU4M.js → ZDEWHMLB.js} +2 -2
  178. package/dist/cdn/{CKSUQO3A.js → ZMTBJMWN.js} +2 -2
  179. package/dist/cdn/{COSVAIWF.js → ZN2GO7FR.js} +2 -2
  180. package/dist/cdn/{ONPCH72P.js → ZPQJ4OHR.js} +2 -2
  181. package/dist/cdn/{MKQNXY55.js → ZQQSRS5N.js} +2 -2
  182. package/dist/cdn/{QZEDD2W6.js → ZZUXTTIM.js} +2 -2
  183. package/dist/cdn/index.js +2 -2
  184. package/dist/chart-rendering/common/data/selection/filter/index.d.ts +9 -0
  185. package/dist/chart-rendering/common/data/selection/filter/interfaces.d.ts +3 -0
  186. package/dist/chart-rendering/common/data/utils/query-parser/time-binning/index.d.ts +13 -0
  187. package/dist/chunks/action-bar-utils.js +1 -1
  188. package/dist/chunks/axis-model-wrapper.js +1 -1
  189. package/dist/chunks/bar-chart-model.js +1 -1
  190. package/dist/chunks/bar-chart-series.js +1 -1
  191. package/dist/chunks/baseline-stacking.js +1 -1
  192. package/dist/chunks/bg_BG.js +1 -1
  193. package/dist/chunks/bg_BG2.js +1 -1
  194. package/dist/chunks/box-plot-data.js +1 -1
  195. package/dist/chunks/box-plot-model.js +1 -1
  196. package/dist/chunks/chart-ui-utils.js +1 -1
  197. package/dist/chunks/chart-ui-utils2.js +1 -1
  198. package/dist/chunks/combo-bar-line-chart-model.js +31 -45
  199. package/dist/chunks/common.js +1 -1
  200. package/dist/chunks/config-update.js +1672 -1677
  201. package/dist/chunks/data.js +1 -1
  202. package/dist/chunks/default.js +1 -1
  203. package/dist/chunks/gauge-model.js +1 -1
  204. package/dist/chunks/heat-chart-model.js +1 -1
  205. package/dist/chunks/histogram-data.js +1 -1
  206. package/dist/chunks/histogram-model.js +1 -1
  207. package/dist/chunks/index.js +439 -5952
  208. package/dist/chunks/index2.js +1 -1
  209. package/dist/chunks/index3.js +1 -1
  210. package/dist/chunks/index4.js +1 -1
  211. package/dist/chunks/index5.js +1 -1
  212. package/dist/chunks/interfaces.js +7828 -2254
  213. package/dist/chunks/interfaces2.js +1 -1
  214. package/dist/chunks/interfaces3.js +1 -1
  215. package/dist/chunks/interfaces4.js +1 -1
  216. package/dist/chunks/line-chart-model.js +1 -1
  217. package/dist/chunks/model-with-baseline-stacking.js +18 -28
  218. package/dist/chunks/model-with-data-labels.js +1 -1
  219. package/dist/chunks/model-with-multi-axes.js +6 -10
  220. package/dist/chunks/model-with-rotation.js +1 -1
  221. package/dist/chunks/pie-chart-data.js +1 -1
  222. package/dist/chunks/pie-chart-model.js +5 -4
  223. package/dist/chunks/popover-ui-utils.js +1 -1
  224. package/dist/chunks/radar-chart-model.js +1 -1
  225. package/dist/chunks/resource.js +1 -1
  226. package/dist/chunks/rest-js-object-literals.js +1 -1
  227. package/dist/chunks/runtime.js +1 -1
  228. package/dist/chunks/scatterplot-model.js +1 -1
  229. package/dist/chunks/serial-chart-model.js +1 -1
  230. package/dist/chunks/series-types.js +1 -1
  231. package/dist/chunks/series.js +1 -1
  232. package/dist/chunks/sk_SK.js +1 -1
  233. package/dist/chunks/store.js +1 -1
  234. package/dist/chunks/type-guards.js +1 -1
  235. package/dist/chunks/useT9n.js +1 -1
  236. package/dist/chunks/web-component-utils.js +1 -1
  237. package/dist/components/arcgis-chart/customElement.js +2266 -2263
  238. package/dist/components/arcgis-charts-action-bar/customElement.js +1 -1
  239. package/dist/components/arcgis-charts-config-axes/customElement.js +1 -1
  240. package/dist/components/arcgis-charts-config-axis/customElement.js +1 -1
  241. package/dist/components/arcgis-charts-config-bar-chart/customElement.js +1 -1
  242. package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +1 -1
  243. package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +1 -1
  244. package/dist/components/arcgis-charts-config-bar-chart-series/customElement.js +1 -1
  245. package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.js +1 -1
  246. package/dist/components/arcgis-charts-config-box-plot/customElement.js +1 -1
  247. package/dist/components/arcgis-charts-config-box-plot-data/customElement.js +1 -1
  248. package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +1 -1
  249. package/dist/components/arcgis-charts-config-box-plot-series/customElement.js +1 -1
  250. package/dist/components/arcgis-charts-config-box-plot-series-popover/customElement.js +1 -1
  251. package/dist/components/arcgis-charts-config-category-format/customElement.js +1 -1
  252. package/dist/components/arcgis-charts-config-chart-rename-popover/customElement.js +1 -1
  253. package/dist/components/arcgis-charts-config-color-style/customElement.js +1 -1
  254. package/dist/components/arcgis-charts-config-colors/customElement.js +1 -1
  255. package/dist/components/arcgis-charts-config-create-flow/customElement.js +1 -1
  256. package/dist/components/arcgis-charts-config-field-select/customElement.js +1 -1
  257. package/dist/components/arcgis-charts-config-font-style/customElement.js +1 -1
  258. package/dist/components/arcgis-charts-config-format/customElement.js +1 -1
  259. package/dist/components/arcgis-charts-config-format-popover/customElement.js +1 -1
  260. package/dist/components/arcgis-charts-config-general/customElement.js +1 -1
  261. package/dist/components/arcgis-charts-config-guide/customElement.js +1 -1
  262. package/dist/components/arcgis-charts-config-guide-popover/customElement.js +1 -1
  263. package/dist/components/arcgis-charts-config-guides/customElement.js +1 -1
  264. package/dist/components/arcgis-charts-config-guides-type-popover/customElement.js +1 -1
  265. package/dist/components/arcgis-charts-config-histogram/customElement.js +1 -1
  266. package/dist/components/arcgis-charts-config-histogram-data/customElement.js +1 -1
  267. package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +1 -1
  268. package/dist/components/arcgis-charts-config-invalid-input-message/customElement.js +1 -1
  269. package/dist/components/arcgis-charts-config-line-chart/customElement.js +1 -1
  270. package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +1 -1
  271. package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +1 -1
  272. package/dist/components/arcgis-charts-config-line-chart-series/customElement.js +1 -1
  273. package/dist/components/arcgis-charts-config-line-chart-series-popover/customElement.js +1 -1
  274. package/dist/components/arcgis-charts-config-line-style/customElement.js +1 -1
  275. package/dist/components/arcgis-charts-config-number-format/customElement.js +1 -1
  276. package/dist/components/arcgis-charts-config-pie-chart/customElement.js +1 -1
  277. package/dist/components/arcgis-charts-config-pie-chart-data/customElement.js +1 -1
  278. package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +1 -1
  279. package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +1 -1
  280. package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.js +1 -1
  281. package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +1 -1
  282. package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +34 -31
  283. package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +1 -1
  284. package/dist/components/arcgis-charts-config-select-chart-type-popover/customElement.js +1 -1
  285. package/dist/components/arcgis-charts-config-view-charts/customElement.js +1 -1
  286. package/dist/docs/api.json +2 -2
  287. package/dist/docs/docs.json +2 -2
  288. package/dist/docs/web-types.json +1 -1
  289. package/dist/index.js +1 -1
  290. package/dist/loader.js +1 -1
  291. package/dist/model/chart-model/chart-model.d.ts +4 -9
  292. package/dist/model/combo-bar-line-chart-model/combo-bar-line-chart-model.d.ts +30 -43
  293. package/dist/model/mixins/model-with-baseline-stacking.d.ts +4 -10
  294. package/dist/model/mixins/model-with-line-marker-styling.d.ts +13 -17
  295. package/dist/model/mixins/model-with-multi-axes.d.ts +1 -0
  296. package/dist/model/mixins/utils/baseline-stacking.d.ts +5 -11
  297. package/dist/model/mixins/utils/line-marker-styling.d.ts +18 -23
  298. package/dist/model/pie-chart-model/pie-chart-model.d.ts +5 -2
  299. package/dist/model.js +1 -1
  300. package/dist/spec/web-chart.d.ts +1 -1
  301. package/dist/utils/layer/query-parser/index.d.ts +8 -0
  302. package/dist/utils/layer/utils/index.d.ts +3 -3
  303. package/package.json +3 -3
  304. package/dist/cdn/5CBRD6OP.js +0 -42
  305. package/dist/cdn/6PRX5AZT.js +0 -4
  306. package/dist/cdn/H4X5IWSK.js +0 -4
  307. package/dist/cdn/LBFV3EAT.js +0 -4
  308. package/dist/cdn/P5T4BOUW.js +0 -4
  309. package/dist/cdn/QTDQPHYL.js +0 -4
  310. package/dist/cdn/RTN6F2OD.js +0 -4
  311. package/dist/cdn/VAPQXZKI.js +0 -4
  312. package/dist/cdn/XD5WBCUT.js +0 -4
@@ -1,4 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/5.0/esri/copyright.txt for details.
3
- v5.0.0-next.11 */
4
- import c from"./LBFV3EAT.js";import b from"./VAPQXZKI.js";import{c as W,d as q}from"./H7RL7LD5.js";import a from"./5CBRD6OP.js";import{f as E,w as h}from"./WA7XJCBI.js";import{c as C,d as A}from"./4RFFJ3NA.js";import{i as g}from"./EJJFMTXQ.js";import{a as _,p as S}from"./OAOMMFL6.js";import{G as N,z as B}from"./2LQWBSIA.js";export default $arcgis.t(([,,,,,,,,{F:x,H:d,I:X,J:m,K:R,Q:P,Ya:H,fc:j,hc:$,ib:Y,nb:Z,p:s},{A:de,B:pe,C:ue,D:xe,E:F,F:T,G:me,H:ve,I:be,J:ye,Ja:Ne,K:we,Ka:Ee,L:ze,La:Xe,M:L,Ma:Re,N:I,Na:Pe,O:O,P:U,Q:_e,R:Se,S:Ce,T:Ae,U:ke,V:Fe,W:Te,X:Le,Y:Ie,Z:Oe,d:p,e:v,f:J,j:a,k:K,l:ee,m:te,n:ie,o:ce,p:ae,q:b,qa:y,r:re,s:oe,sa:Ue,t:ne,ta:Ve,u:k,ua:Ge,v:le,va:De,w:se,wa:Me,x:ge,xa:Be,y:fe,z:he},{b:Q}])=>{var Qe="calcite-mode-auto",Je="calcite-mode-dark";function He(){let{classList:i}=document.body,e=window.matchMedia("(prefers-color-scheme: dark)").matches,t=()=>i.contains(Je)||i.contains(Qe)&&e?"dark":"light",c=l=>document.body.dispatchEvent(new CustomEvent("calciteModeChange",{bubbles:!0,detail:{mode:l}})),o=l=>{r!==l&&c(l),r=l},r=t();c(r),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",l=>o(l.matches?"dark":"light")),new MutationObserver(()=>o(t())).observe(document.body,{attributes:!0,attributeFilter:["class"]})}var u=globalThis.calciteConfig,$t=u?.focusTrapStack||[],Wt=u?.logLevel||"info",Ye="3.3.1",Ke="2025-09-30",et="f8b8c09e0";function tt(){if(u&&u.version)return;console.info(`Using Calcite Components ${Ye} [Date: ${Ke}, Revision: ${et}]`);let i=u||globalThis.calciteConfig||{};Object.defineProperty(i,"version",{value:Ye,writable:!1}),globalThis.calciteConfig=i}document.readyState==="interactive"?He():document.addEventListener("DOMContentLoaded",He,{once:!0});queueMicrotask(tt);var it=B({defaultAssetPath:"https://js.arcgis.com/calcite-components/3.3.1/",hydratedAttribute:"calcite-hydrated"}),{customElement:qt,getAssetPath:V,setAssetPath:ct}=it;var at=i=>i.title?.content,rt=(i,e)=>{if(i){let t=b(e);e.title===void 0&&(e.title=m({text:"",visible:!0,font:d(s.ChartTitle),type:s.ChartTitle})),e.title.content=i,e.title.content.text=t}},ot=i=>i.subtitle?.content,nt=(i,e)=>{if(i){let t=b(e);e.subtitle===void 0&&(e.subtitle=m({text:"",visible:!0,font:d(s.ChartSubtitle),type:s.ChartSubtitle})),e.subtitle.content=i,e.subtitle.content.text=t}},lt=i=>i.footer?.content,st=(i,e)=>{if(i){let t=k(e);e.footer===void 0&&(e.footer=m({text:"",visible:!0,font:d(s.DescriptionText),type:s.DescriptionText})),e.footer.content=i,e.footer.content.text=t}},gt=i=>i.background,ft=(i,e)=>{e.background=i},w=class extends EventTarget{constructor(){super(...arguments),this.dirtyAsyncSetters=[],this.asyncConfigUpdateInProgress=!1,this.dataStore={},this.setupFinished=new Promise(e=>{this.resolveSetup=e})}isSameChartAs(e){let t=e?.layer;return t!==void 0&&this._config.id===e?.chartId&&this.layerInfo?.layer.id===t.id}get config(){return this._config}set config(e){this.guardSetterFromAsyncOverwrite(()=>{this._config=e,this.emitConfigUpdate("config")})}get chartType(){return this._chartType}get layer(){return this.layerInfo?.layer}get chartId(){return this._config.id}set chartId(e){this._config.id=e}get version(){return ae(this._config)}get titleText(){return b(this._config)}set titleText(e){this.guardSetterFromAsyncOverwrite(()=>{re(e,this._config),this.emitConfigUpdate("titleText")})}get subtitleText(){return oe(this._config)}set subtitleText(e){this.guardSetterFromAsyncOverwrite(()=>{ne(e,this._config),this.emitConfigUpdate("subtitleText")})}get descriptionText(){return k(this._config)}set descriptionText(e){this.guardSetterFromAsyncOverwrite(()=>{le(e,this._config),this.emitConfigUpdate("descriptionText")})}get chartTitleVisibility(){return se(this._config)}set chartTitleVisibility(e){this.guardSetterFromAsyncOverwrite(()=>{ge(e,this._config),this.emitConfigUpdate("chartTitleVisibility")})}get chartSubtitleVisibility(){return fe(this._config)}set chartSubtitleVisibility(e){this.guardSetterFromAsyncOverwrite(()=>{he(e,this._config),this.emitConfigUpdate("chartSubtitleVisibility")})}get descriptionVisibility(){return de(this._config)}set descriptionVisibility(e){this.guardSetterFromAsyncOverwrite(()=>{pe(e,this._config),this.emitConfigUpdate("descriptionVisibility")})}get chartRenderer(){return ue(this._config)}set chartRenderer(e){this.guardSetterFromAsyncOverwrite(()=>{xe(e,this._config),this.emitConfigUpdate("chartRenderer")})}get titleSymbol(){return at(this._config)}set titleSymbol(e){this.guardSetterFromAsyncOverwrite(()=>{rt(e,this._config),this.emitConfigUpdate("titleSymbol")})}get subtitleSymbol(){return ot(this._config)}set subtitleSymbol(e){this.guardSetterFromAsyncOverwrite(()=>{nt(e,this._config),this.emitConfigUpdate("subtitleSymbol")})}get descriptionSymbol(){return lt(this._config)}set descriptionSymbol(e){this.guardSetterFromAsyncOverwrite(()=>{st(e,this._config),this.emitConfigUpdate("descriptionSymbol")})}get backgroundColor(){return gt(this._config)}set backgroundColor(e){this.guardSetterFromAsyncOverwrite(()=>{ft(e,this._config),this.emitConfigUpdate("backgroundColor")})}getSeriesVisibility(e){return De(e,this._config)}setSeriesVisibility(e){this.guardSetterFromAsyncOverwrite(()=>{H({detail:e},this._config),this.emitConfigUpdate("setSeriesVisibility")})}getSeriesId(e){return Ue(e,this._config)}getSeriesIndex(e){return Ve(e,this._config)}get seriesLength(){return Ge(this._config)}get chartSubType(){return Z(this._config.series)}getDataTooltipValueFormat(e){return Me(this._config.series,e)}setDataTooltipValueFormat(e,t){this.guardSetterFromAsyncOverwrite(()=>{Be({series:this._config.series,seriesIndex:e,valueFormat:t})})}get fetchNULLValues(){return Ee(this._config)}set fetchNULLValues(e){this.guardSetterFromAsyncOverwrite(()=>{Ne(e,this._config),this.emitConfigUpdate("fetchNULLValues")})}get splitByValues(){return Xe(this._config)}getDataFilters(){return Re(this._config)}async setDataFilters(e){Pe(e,this._config),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange")),this.emitConfigUpdate("setDataFilters")}emitConfigUpdate(e){this.dispatchEvent(new CustomEvent("arcgisChartsModelConfigChange",{detail:{config:this._config,setterName:e}}))}async loadConfigFromLayer(e){let{layer:t,iLayer:c,config:o}=e;this.commonStrings=await C(A(document.documentElement).t9nLocale,N("./assets/common/t9n"),"messages.");let r=t;if(!r&&c&&(r=await j(c)),r){let l=await $(r,!0),{objectIdField:We}=r;this.layerInfo={layer:r,layerFieldsInfo:l,objectIdField:We}}this._config=o!==void 0?await Q(o):this.generateDefaultConfig(),this._config.legend!==void 0&&this._config.legend?.title===void 0&&(this._config.legend.title=P().title),c&&(this._config.iLayer=c)}async guardSetterFromAsyncOverwrite(e){e(),this.asyncConfigUpdateInProgress&&(await this.setupFinished,e())}},z=class extends w{get xAxisTitleText(){return L(0,this._config)}set xAxisTitleText(e){this.guardSetterFromAsyncOverwrite(()=>{I(e,0,this._config),this.emitConfigUpdate("xAxisTitleText")})}get xAxisTitleVisibility(){return O(0,this._config)}set xAxisTitleVisibility(e){this.guardSetterFromAsyncOverwrite(()=>{U(e,0,this._config),this.emitConfigUpdate("xAxisTitleVisibility")})}get maxXBound(){return p({config:this._config,axisIndex:0,isMax:!0})}set maxXBound(e){this.guardSetterFromAsyncOverwrite(()=>{v({config:this._config,value:e,axisIndex:0,isMax:!0}),this.emitConfigUpdate("maxXBound")})}get minXBound(){return p({config:this._config,axisIndex:0,isMax:!1})}set minXBound(e){this.guardSetterFromAsyncOverwrite(()=>{J(this._config,e),this.emitConfigUpdate("minXBound")})}get xAxisTitleSymbol(){return F(this._config,0)}set xAxisTitleSymbol(e){this.guardSetterFromAsyncOverwrite(()=>{T({symbol:e,axisIndex:0,config:this._config}),this.emitConfigUpdate("xAxisTitleSymbol")})}get axisLabelsSymbol(){return me(this._config)}set axisLabelsSymbol(e){this.guardSetterFromAsyncOverwrite(()=>{ve(e,this._config),this.emitConfigUpdate("axisLabelsSymbol")})}get axisLinesSymbol(){return be(this._config)}set axisLinesSymbol(e){this.guardSetterFromAsyncOverwrite(()=>{ye(e,this._config),this.emitConfigUpdate("axisLinesSymbol")})}},ht=i=>{for(let e of i.axes??[])for(let t of e?.guides??[])if(t.label!==void 0)return t.label},dt=(i,e)=>{for(let t of e.axes??[])for(let c of t?.guides??[]){let o=c.label?.text??"";c.label=E(i),c.label!==void 0&&(c.label.text=o)}};function n(i){return{...i,axis:i.orientation===g.X?i.config.axes?.[0]:i.config.axes?.[1],index:i.index??0,orientation:i.orientation??g.Y}}var pt=i=>{let{axis:e,index:t}=n(i);return e?.guides?.[t]?.visible??!0},ut=i=>{let{visible:e,axis:t,index:c}=n(i);t?.guides?.[c]!==void 0&&(t.guides[c].visible=e)},Ze=i=>{let e=Y(i.start,i.end);q(i.style)&&e===h.SFS?i.style={type:h.SFS,color:i.style.color}:W(i.style)&&e===h.SLS&&(i.style={type:h.SLS,color:i.style.color})},xt=i=>{let{axis:e,index:t}=n(i);return e?.guides?.[t]?.start??null},mt=i=>{let{start:e,axis:t,index:c}=n(i);t?.guides?.[c]!==void 0&&(t.guides[c].start=e,Ze(t.guides[c]))},vt=i=>{let{axis:e,index:t}=n(i);return e?.guides?.[t]?.end},bt=i=>{let{end:e,axis:t,index:c}=n(i);t?.guides?.[c]!==void 0&&(t.guides[c].end=e,Ze(t.guides[c]))},yt=i=>{let{axis:e,index:t}=n(i);return e?.guides?.[t]?.name},wt=i=>{let{name:e,axis:t,index:c}=n(i);t?.guides?.[c]!==void 0&&(t.guides[c].name=e)},zt=i=>{let{axis:e,index:t}=n(i);return e?.guides?.[t]?.label?.text},_t=i=>{let{labelText:e,axis:t,index:c}=n(i),o=t?.guides?.[c]?.label??X(e,d(s.GuideLabel),s.GuideLabel);t?.guides?.[c]!==void 0&&(t.guides[c].label={...o,text:e})},St=i=>{let{axis:e,index:t}=n(i);return e?.guides?.[t]?.above??!1},Ct=i=>{let{above:e,axis:t,index:c}=n(i);t?.guides?.[c]!==void 0&&(t.guides[c].above=e)},At=i=>{let{axis:e,index:t}=n(i);return e?.guides?.[t]?.style},kt=i=>{let{style:e,axis:t,index:c}=n(i);t?.guides?.[c]!==void 0&&(t.guides[c].style=e)},je=i=>{let{config:e,name:t,index:c,orientation:o}=i,r=o===g.X?e.axes?.[0]:e.axes?.[1];if(r!==void 0){r.guides=r.guides??[];let l={type:_.Guide,name:t,start:r.valueFormat.type===_.DateAxisFormat?"":0,style:R()};c!==void 0&&c<r.guides.length?r.guides.splice(c,0,l):r.guides.push(l)}},$e=i=>{let{config:e,index:t,orientation:c}=i,o=c===g.X?e.axes?.[0]:e.axes?.[1];o?.guides!==void 0&&(t!==void 0&&t<o.guides.length?o.guides.splice(t,1):o.guides.pop())},Ft=i=>{let{axis:e,index:t}=n(i);return e?.guides?.[t]?.tooltipReverseColor??!1},Tt=i=>{let{reverseColor:e,axis:t,index:c}=n(i);t?.guides?.[c]!==void 0&&(t.guides[c].tooltipReverseColor=e)},f=class extends w{get guideLabelsSymbol(){return ht(this._config)}set guideLabelsSymbol(e){this.guardSetterFromAsyncOverwrite(()=>{dt(e,this._config),this.emitConfigUpdate("guideLabelsSymbol")})}getGuideVisibility(e,t){return pt({config:this._config,index:e,orientation:t})}setGuideVisibility(e,t,c){this.guardSetterFromAsyncOverwrite(()=>{ut({visible:e,config:this._config,index:t,orientation:c}),this.emitConfigUpdate("setGuideVisibility")})}getGuideStart(e,t){return xt({config:this._config,index:e,orientation:t})}setGuideStart(e,t,c){this.guardSetterFromAsyncOverwrite(()=>{mt({start:e,config:this._config,index:t,orientation:c}),this.emitConfigUpdate("setGuideStart")})}getGuideEnd(e,t){return vt({config:this._config,index:e,orientation:t})}setGuideEnd(e,t,c){this.guardSetterFromAsyncOverwrite(()=>{bt({end:e,config:this._config,index:t,orientation:c}),this.emitConfigUpdate("setGuideEnd")})}getGuideName(e,t){return yt({config:this._config,index:e,orientation:t})}setGuideName(e,t,c){this.guardSetterFromAsyncOverwrite(()=>{wt({name:e,config:this._config,index:t,orientation:c}),this.emitConfigUpdate("setGuideName")})}getGuideLabelText(e,t){return zt({config:this._config,index:e,orientation:t})}setGuideLabelText(e,t,c){this.guardSetterFromAsyncOverwrite(()=>{_t({labelText:e,config:this._config,index:t,orientation:c}),this.emitConfigUpdate("setGuideLabelText")})}getGuideAbove(e,t){return St({config:this._config,index:e,orientation:t})}setGuideAbove(e,t,c){this.guardSetterFromAsyncOverwrite(()=>{Ct({above:e,config:this._config,index:t,orientation:c}),this.emitConfigUpdate("setGuideAbove")})}getGuideStyle(e,t){return At({config:this._config,index:e,orientation:t})}setGuideStyle(e,t,c){this.guardSetterFromAsyncOverwrite(()=>{kt({style:e,config:this._config,index:t,orientation:c}),this.emitConfigUpdate("setGuideStyle")})}getTooltipReverseColor(e,t){return Ft({config:this._config,index:e,orientation:t})}setTooltipReverseColor(e,t,c){this.guardSetterFromAsyncOverwrite(()=>{Tt({reverseColor:e,config:this._config,index:t,orientation:c}),this.emitConfigUpdate("setTooltipReverseColor")})}},G=class extends f{getXGuidesLength(){return this._config.axes?.[0]?.guides?.length}addXAxisGuide(e,t){this.guardSetterFromAsyncOverwrite(()=>{je({config:this._config,name:e,index:t,orientation:g.X}),this.emitConfigUpdate("addXAxisGuide")})}deleteXAxisGuide(e){this.guardSetterFromAsyncOverwrite(()=>{$e({config:this._config,index:e,orientation:g.X}),this.emitConfigUpdate("deleteXAxisGuide")})}};y(G,[f]);var D=class extends f{getYGuidesLength(){return this._config.axes?.[1]?.guides?.length}addYAxisGuide(e,t){this.guardSetterFromAsyncOverwrite(()=>{je({config:this._config,name:e,index:t,orientation:g.Y}),this.emitConfigUpdate("addYAxisGuide")})}deleteYAxisGuide(e){this.guardSetterFromAsyncOverwrite(()=>{$e({config:this._config,index:e,orientation:g.Y}),this.emitConfigUpdate("deleteYAxisGuide")})}};y(D,[f]);var Lt=i=>i.horizontalAxisLabelsBehavior??S.Rotate,It=(i,e)=>{e.horizontalAxisLabelsBehavior=i},Ot=i=>i.verticalAxisLabelsBehavior??S.Wrap,Ut=(i,e)=>{e.verticalAxisLabelsBehavior=i},Vt=i=>i.cursorCrosshair?.horizontalLineVisible??!1,Gt=(i,e)=>{e.cursorCrosshair===void 0&&(e.cursorCrosshair=x()),e.cursorCrosshair.horizontalLineVisible=i},Dt=i=>i.cursorCrosshair?.verticalLineVisible??!1,Mt=(i,e)=>{e.cursorCrosshair===void 0&&(e.cursorCrosshair=x()),e.cursorCrosshair.verticalLineVisible=i},Bt=i=>i.cursorCrosshair?.style,Nt=(i,e)=>{e.cursorCrosshair===void 0&&(e.cursorCrosshair=x()),e.cursorCrosshair.style=i},Et=i=>i.cursorCrosshair,Xt=(i,e)=>{e.cursorCrosshair=i},M=class extends z{getAxisTitleText(e){return a({config:this._config,axisIndex:e,func:t=>L(t,this._config)})??""}setAxisTitleText(e,t){this.guardSetterFromAsyncOverwrite(()=>{a({config:this._config,axisIndex:t,func:c=>{I(e,c,this._config),this.emitConfigUpdate("setAxisTitleText")}})})}getAxisTitleVisibility(e){return a({config:this._config,axisIndex:e,func:t=>O(t,this._config)})??!1}setAxisTitleVisibility(e,t){this.guardSetterFromAsyncOverwrite(()=>{a({config:this._config,axisIndex:t,func:c=>{U(e,c,this._config),this.emitConfigUpdate("setAxisTitleVisibility")}})})}getMaxBound(e){return a({config:this._config,axisIndex:e,func:t=>p({config:this._config,axisIndex:t,isMax:!0})})??Number.NaN}setMaxBound(e,t){this.guardSetterFromAsyncOverwrite(()=>{a({config:this._config,axisIndex:t,func:c=>{v({config:this._config,value:e,axisIndex:c,isMax:!0}),this.emitConfigUpdate("setMaxBound")}})})}getMinBound(e){return a({config:this._config,axisIndex:e,func:t=>p({config:this._config,axisIndex:t,isMax:!1})})??Number.NaN}setMinBound(e,t){this.guardSetterFromAsyncOverwrite(()=>{a({config:this._config,axisIndex:t,func:c=>{v({config:this._config,value:e,axisIndex:c,isMax:!1}),this.emitConfigUpdate("setMinBound")}})})}getAxisValueFormat(e){return a({config:this._config,axisIndex:e,func:t=>K(t,this._config)})}setAxisValueFormat(e,t){this.guardSetterFromAsyncOverwrite(()=>{a({config:this._config,axisIndex:e,func:c=>{ee({config:this._config,valueFormat:t,axisIndex:c,commonStrings:this.commonStrings}),this.emitConfigUpdate("setAxisValueFormat")}})})}getLogarithmic(e){return a({config:this._config,axisIndex:e,func:t=>te(this._config,t)})??!1}setLogarithmic(e,t){this.guardSetterFromAsyncOverwrite(()=>{a({config:this._config,axisIndex:t,func:c=>{ie({config:this._config,isLogarithmic:e,axisIndex:c}),this.emitConfigUpdate("setLogarithmic")}})})}getAxisScrollbar(e){return a({config:this._config,axisIndex:e,func:t=>this._config.axes?.[t]?.scrollbar})}setAxisScrollbar(e,t){this.guardSetterFromAsyncOverwrite(()=>{a({config:this._config,axisIndex:t,func:c=>{ce({config:this._config,scrollbar:e,axisIndex:c}),this.emitConfigUpdate("setAxisScrollbar")}})})}getAxisTitleSymbol(e){return a({config:this._config,axisIndex:e,func:t=>F(this._config,t)})}setAxisTitleSymbol(e,t){this.guardSetterFromAsyncOverwrite(()=>{a({config:this._config,axisIndex:t,func:c=>{T({symbol:e,config:this._config,axisIndex:c}),this.emitConfigUpdate("setAxisTitleSymbol")}})})}getHorizontalAxisLabelsBehavior(){return Lt(this._config)}setHorizontalAxisLabelsBehavior(e){this.guardSetterFromAsyncOverwrite(()=>{It(e,this._config),this.emitConfigUpdate("setHorizontalAxisLabelsBehavior")})}getVerticalAxisLabelsBehavior(){return Ot(this._config)}setVerticalAxisLabelsBehavior(e){this.guardSetterFromAsyncOverwrite(()=>{Ut(e,this._config),this.emitConfigUpdate("setVerticalAxisLabelsBehavior")})}getGridLinesSymbol(){return we(this._config)}setGridLinesSymbol(e,t){this.guardSetterFromAsyncOverwrite(()=>{Array.isArray(t)&&ze(e,this._config,t),this.emitConfigUpdate("setGridLinesSymbol")})}async getDefaultXAxisTitleText(){return(await C(A(document.documentElement).t9nLocale,V("./assets/common/t9n"),"messages.")).utilsStrings.statistics.count}getDisplayZeroLine(e){return a({config:this._config,axisIndex:e,func:t=>_e(this._config,t)})??!1}setDisplayZeroLine(e,t){this.guardSetterFromAsyncOverwrite(()=>{a({config:this._config,axisIndex:t,func:c=>{Se(this._config,e,c),this.emitConfigUpdate("setDisplayZeroLine")}})})}getDisplayCursorTooltip(e){return a({config:this._config,axisIndex:e,func:t=>Ce(this._config,t)})??!1}setDisplayCursorTooltip(e,t){this.guardSetterFromAsyncOverwrite(()=>{a({config:this._config,axisIndex:t,func:c=>{Ae({config:this._config,displayCursorTooltip:e,axisIndex:c}),this.emitConfigUpdate("setDisplayCursorTooltip")}})})}getBuffer(e){return a({config:this._config,axisIndex:e,func:t=>ke(this._config,t)})??!1}setBuffer(e,t){this.guardSetterFromAsyncOverwrite(()=>{a({config:this._config,axisIndex:t,func:c=>{Fe({config:this._config,buffer:e,axisIndex:c}),this.emitConfigUpdate("setBuffer")}})})}getTickSpacing(e){return Te(this._config,e)}setTickSpacing(e,t){this.guardSetterFromAsyncOverwrite(()=>{a({config:this._config,axisIndex:t,func:c=>{Le({config:this._config,tickSpacing:e,axisIndex:c}),this.emitConfigUpdate("setTickSpacing")}})})}getIntegerOnlyValues(e){return a({config:this._config,axisIndex:e,func:t=>Ie(this._config,t)})??!1}setIntegerOnlyValues(e,t){this.guardSetterFromAsyncOverwrite(()=>{a({config:this._config,axisIndex:t,func:c=>{Oe({config:this._config,integerOnlyValues:e,axisIndex:c}),this.emitConfigUpdate("setIntegerOnlyValues")}})})}get cursorCrosshairHorizontalLineVisibility(){return Vt(this._config)}set cursorCrosshairHorizontalLineVisibility(e){this.guardSetterFromAsyncOverwrite(()=>{Gt(e,this._config),this.emitConfigUpdate("cursorCrosshairHorizontalLineVisibility")})}get cursorCrosshairVerticalLineVisibility(){return Dt(this._config)}set cursorCrosshairVerticalLineVisibility(e){this.guardSetterFromAsyncOverwrite(()=>{Mt(e,this._config),this.emitConfigUpdate("cursorCrosshairVerticalLineVisibility")})}get cursorCrosshairStyle(){return Bt(this._config)}set cursorCrosshairStyle(e){e&&this.guardSetterFromAsyncOverwrite(()=>{Nt(e,this._config),this.emitConfigUpdate("cursorCrosshairStyle")})}get cursorCrosshair(){return Et(this._config)}set cursorCrosshair(e){e&&this.guardSetterFromAsyncOverwrite(()=>{Xt(e,this._config),this.emitConfigUpdate("cursorCrosshair")})}};y(M,[z]);return{a:w,b:z,c:G,d:D,e:M}},"geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/Query","rest/support/StatisticDefinition","time/TimeExtent","core/promiseUtils","request","intl",a,b,c)
@@ -1,4 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/5.0/esri/copyright.txt for details.
3
- v5.0.0-next.11 */
4
- import l from"./KZ7FVUOD.js";import k from"./RGD2IITK.js";import j from"./YDCNNUIW.js";import i from"./7BTVYU5I.js";import g from"./TZ3BFZSU.js";import f from"./T3DQKITI.js";import e from"./6PRX5AZT.js";import d from"./LBFV3EAT.js";import c from"./VAPQXZKI.js";import{i as r,k as a,l as h}from"./H7RL7LD5.js";import b from"./5CBRD6OP.js";import"./WA7XJCBI.js";import"./4RFFJ3NA.js";import"./EJJFMTXQ.js";import{a as n}from"./OAOMMFL6.js";import"./2LQWBSIA.js";import"./KYLEA675.js";export default $arcgis.t(([,,,,,,,{$:c,ca:l,ja:d},,,,,,,{c:S,d:m},{a:f,b:y,c:p,d:u,e:_,f:b,g:v,h:C,i:k,j:F,k:L,l:O,m:A,n:g,o:I,p:w,q:B,t:M,u:U},{a:V,b:z,c:j,d:D}])=>{var T=class extends m{constructor(){super(...arguments),this._chartType=n.ComboLineAndBarSeries}get config(){return this._config}async setup(e){await this.loadConfigFromLayer(e),this.setupLocalProps(),e.config!==void 0&&(h(e.config?.series)&&this.initDefaultSeries(),await this.updateSeriesFromLayerFilter()),typeof this.resolveSetup=="function"&&this.resolveSetup()}generateDefaultConfig(){let e=d(this.commonStrings);return e.series=[l({commonStrings:this.commonStrings,objectIDField:this.layerInfo?.objectIdField})],e}initDefaultSeries(){this.defaultSeries=c({commonStrings:this.commonStrings,objectIDField:this.layerInfo?.objectIdField})}setSeriesType(e,i){this.guardSetterFromAsyncOverwrite(()=>{if(e<this._config.series.length&&e>=0){let t=this._config.series[e],o;if(i===n.BarSeries&&r(t)){let s={...t};delete s.lineSymbol,delete s.markerSymbol,delete s.lineSmoothed,delete s.markerVisible,delete s.areaColor,delete s.stackNegativeValuesToBaseline,o={...l({commonStrings:this.commonStrings,objectIDField:this.layerInfo?.objectIdField}),...s,type:n.BarSeries,y:[t.y].flat()[0]},o.fillSymbol&&(o.fillSymbol={...o.fillSymbol,color:t.lineSymbol?.color})}else if(i===n.LineSeries&&a(t)){let s={...t};delete s.fillSymbol,delete s.hideOversizedStackedLabels,delete s.hideOversizedSideBySideLabels,o={...c({commonStrings:this.commonStrings,objectIDField:this.layerInfo?.objectIdField}),...s,type:n.LineSeries},o.lineSymbol&&(o.lineSymbol={...o.lineSymbol,color:t.fillSymbol?.color})}o!==void 0&&(this._config.series[e]=o,this.emitConfigUpdate("setSeriesType"))}})}getSeriesLineStyle(e){return f(e,this._config)}setSeriesLineStyle(e,i){this.guardSetterFromAsyncOverwrite(()=>{let t=this._config.series?.[i];r(t)&&(y(e,i,this._config),this.emitConfigUpdate("setSeriesLineStyle"))})}getSeriesLineWidth(e){return p(e,this._config)}setSeriesLineWidth(e,i){this.guardSetterFromAsyncOverwrite(()=>{let t=this._config.series?.[i];r(t)&&(u(e,i,this._config),this.emitConfigUpdate("setSeriesLineWidth"))})}getSeriesMarkerColor(e){return _(e,this._config)}setSeriesMarkerColor(e,i){this.guardSetterFromAsyncOverwrite(()=>{let t=this._config.series?.[i];r(t)&&(b(e,i,this._config),this.emitConfigUpdate("setSeriesMarkerColor"))})}getSeriesMarkerStyle(e){return v(e,this._config)}setSeriesMarkerStyle(e,i){this.guardSetterFromAsyncOverwrite(()=>{let t=this._config.series?.[i];r(t)&&(C(e,i,this._config),this.emitConfigUpdate("setSeriesMarkerStyle"))})}getSeriesMarkerSize(e){return k(e,this._config)}setSeriesMarkerSize(e,i){this.guardSetterFromAsyncOverwrite(()=>{let t=this._config.series?.[i];r(t)&&(F(e,i,this._config),this.emitConfigUpdate("setSeriesMarkerSize"))})}isLineSmoothed(e){return L(e,this._config)}setLineSmoothed(e,i){this.guardSetterFromAsyncOverwrite(()=>{let t=this._config.series?.[i];r(t)&&(O({smoothed:e,seriesIndex:i,config:this._config}),this.emitConfigUpdate("setLineSmoothed"))})}isAreaVisible(e){return A(e,this._config)}setAreaVisible(e,i){this.guardSetterFromAsyncOverwrite(()=>{let t=this._config.series?.[i];r(t)&&(g({visible:e,seriesIndex:i,config:this._config}),this.emitConfigUpdate("setAreaVisible"))})}isMarkerVisible(e){return I(e,this._config)}setMarkerVisible(e,i){this.guardSetterFromAsyncOverwrite(()=>{let t=this._config.series?.[i];r(t)&&(w({visible:e,seriesIndex:i,config:this._config}),this.emitConfigUpdate("setMarkerVisible"))})}getAreaColor(e){return B(e,this._config)}setAreaColor(e,i){this.guardSetterFromAsyncOverwrite(()=>{let t=this._config.series?.[i];r(t)&&(g({visible:!0,seriesIndex:i,config:this._config}),S(e,i,this._config),this.emitConfigUpdate("setAreaColor"))})}isNegativeValuesStackedToBaseline(e){return M(e,this._config)}setNegativeValuesStackedToBaseline(e,i){this.guardSetterFromAsyncOverwrite(()=>{let t=this._config.series?.[i];r(t)&&(U({stackNegativeValuesToBaseline:e,seriesIndex:i,config:this._config}),this.emitConfigUpdate("setNegativeValuesStackedToBaseline"))})}getSeriesHideOversizedSideBySideLabels(e){return V(e,this._config)}setSeriesHideOversizedSideBySideLabels(e,i){this.guardSetterFromAsyncOverwrite(()=>{let t=this._config.series?.[i];a(t)&&(z(e,i,this._config),this.emitConfigUpdate("setSeriesHideOversizedSideBySideLabels"))})}getSeriesHideOversizedStackedLabels(e){return j(e,this._config)}setSeriesHideOversizedStackedLabels(e,i){this.guardSetterFromAsyncOverwrite(()=>{let t=this._config.series?.[i];a(t)&&(D(e,i,this._config),this.emitConfigUpdate("setSeriesHideOversizedStackedLabels"))})}};return T},"geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/Query","rest/support/StatisticDefinition","time/TimeExtent","core/promiseUtils","request",b,c,d,e,f,g,i,j,k,l)
@@ -1,4 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/5.0/esri/copyright.txt for details.
3
- v5.0.0-next.11 */
4
- import{a as rr,b as nr,g as sr}from"./H7RL7LD5.js";import a from"./5CBRD6OP.js";import{f as y,i as W}from"./WA7XJCBI.js";import{d as zt}from"./4RFFJ3NA.js";import{a as T,b as ne,d as At,h as V,k as H,p as Qe,q as Xe,v as B,w as j}from"./OAOMMFL6.js";export default $arcgis.t(([{A:Ut,Ga:b,Ob:_t,Ta:Ke,ab:ve,bc:er,eb:_e,fb:Yt,fc:tr,gb:Gt,h:jt,i:Ie,ia:Ht,jb:Jt,kb:Qt,nb:Se,pb:Xt,sb:Kt,sc:R,tc:et,z:Pt,za:Rt}])=>{var U=class extends Error{},ct=class extends U{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}},dt=class extends U{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}},ht=class extends U{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}},J=class extends U{},qe=class extends U{constructor(e){super(`Invalid unit ${e}`)}},x=class extends U{},z=class extends U{constructor(){super("Zone is an abstract class")}},c="numeric",A="short",I="long",Ae={year:c,month:c,day:c},tn={year:c,month:A,day:c},us={year:c,month:A,day:c,weekday:A},rn={year:c,month:I,day:c},nn={year:c,month:I,day:c,weekday:I},sn={hour:c,minute:c},on={hour:c,minute:c,second:c},an={hour:c,minute:c,second:c,timeZoneName:A},un={hour:c,minute:c,second:c,timeZoneName:I},ln={hour:c,minute:c,hourCycle:"h23"},cn={hour:c,minute:c,second:c,hourCycle:"h23"},dn={hour:c,minute:c,second:c,hourCycle:"h23",timeZoneName:A},hn={hour:c,minute:c,second:c,hourCycle:"h23",timeZoneName:I},mn={year:c,month:c,day:c,hour:c,minute:c},fn={year:c,month:c,day:c,hour:c,minute:c,second:c},yn={year:c,month:A,day:c,hour:c,minute:c},gn={year:c,month:A,day:c,hour:c,minute:c,second:c},ls={year:c,month:A,day:c,weekday:A,hour:c,minute:c},pn={year:c,month:I,day:c,hour:c,minute:c,timeZoneName:A},wn={year:c,month:I,day:c,hour:c,minute:c,second:c,timeZoneName:A},vn={year:c,month:I,day:c,weekday:I,hour:c,minute:c,timeZoneName:I},Sn={year:c,month:I,day:c,weekday:I,hour:c,minute:c,second:c,timeZoneName:I},te=class{get type(){throw new z}get name(){throw new z}get ianaName(){return this.name}get isUniversal(){throw new z}offsetName(e,r){throw new z}formatOffset(e,r){throw new z}offset(e){throw new z}equals(e){throw new z}get isValid(){throw new z}},tt=null,ze=class t extends te{static get instance(){return tt===null&&(tt=new t),tt}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:r,locale:n}){return Vn(e,r,n)}formatOffset(e,r){return be(this.offset(e),r)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}},mt=new Map;function cs(t){let e=mt.get(t);return e===void 0&&(e=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}),mt.set(t,e)),e}var ds={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function hs(t,e){let r=t.format(e).replace(/\u200E/g,""),n=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(r),[,s,i,o,a,u,l,d]=n;return[o,s,i,a,u,l,d]}function ms(t,e){let r=t.formatToParts(e),n=[];for(let s=0;s<r.length;s++){let{type:i,value:o}=r[s],a=ds[i];i==="era"?n[a]=o:f(a)||(n[a]=parseInt(o,10))}return n}var rt=new Map,X=class t extends te{static create(e){let r=rt.get(e);return r===void 0&&rt.set(e,r=new t(e)),r}static resetCache(){rt.clear(),mt.clear()}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch{return!1}}constructor(e){super(),this.zoneName=e,this.valid=t.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:r,locale:n}){return Vn(e,r,n,this.name)}formatOffset(e,r){return be(this.offset(e),r)}offset(e){if(!this.valid)return NaN;let r=new Date(e);if(isNaN(r))return NaN;let n=cs(this.name),[s,i,o,a,u,l,d]=n.formatToParts?ms(n,r):hs(n,r);a==="BC"&&(s=-Math.abs(s)+1);let h=Ye({year:s,month:i,day:o,hour:u===24?0:u,minute:l,second:d,millisecond:0}),g=+r,m=g%1e3;return g-=m>=0?m:1e3+m,(h-g)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}},ir={};function fs(t,e={}){let r=JSON.stringify([t,e]),n=ir[r];return n||(n=new Intl.ListFormat(t,e),ir[r]=n),n}var ft=new Map;function yt(t,e={}){let r=JSON.stringify([t,e]),n=ft.get(r);return n===void 0&&(n=new Intl.DateTimeFormat(t,e),ft.set(r,n)),n}var gt=new Map;function ys(t,e={}){let r=JSON.stringify([t,e]),n=gt.get(r);return n===void 0&&(n=new Intl.NumberFormat(t,e),gt.set(r,n)),n}var pt=new Map;function gs(t,e={}){let{base:r,...n}=e,s=JSON.stringify([t,n]),i=pt.get(s);return i===void 0&&(i=new Intl.RelativeTimeFormat(t,e),pt.set(s,i)),i}var $e=null;function ps(){return $e||($e=new Intl.DateTimeFormat().resolvedOptions().locale,$e)}var wt=new Map;function kn(t){let e=wt.get(t);return e===void 0&&(e=new Intl.DateTimeFormat(t).resolvedOptions(),wt.set(t,e)),e}var vt=new Map;function ws(t){let e=vt.get(t);if(!e){let r=new Intl.Locale(t);e="getWeekInfo"in r?r.getWeekInfo():r.weekInfo,"minimalDays"in e||(e={...Tn,...e}),vt.set(t,e)}return e}function vs(t){let e=t.indexOf("-x-");e!==-1&&(t=t.substring(0,e));let r=t.indexOf("-u-");if(r===-1)return[t];{let n,s;try{n=yt(t).resolvedOptions(),s=t}catch{let a=t.substring(0,r);n=yt(a).resolvedOptions(),s=a}let{numberingSystem:i,calendar:o}=n;return[s,i,o]}}function Ss(t,e,r){return(r||e)&&(t.includes("-u-")||(t+="-u"),r&&(t+=`-ca-${r}`),e&&(t+=`-nu-${e}`)),t}function ks(t){let e=[];for(let r=1;r<=12;r++){let n=S.utc(2009,r,1);e.push(t(n))}return e}function Ts(t){let e=[];for(let r=1;r<=7;r++){let n=S.utc(2016,11,13+r);e.push(t(n))}return e}function Ve(t,e,r,n){let s=t.listingMode();return s==="error"?null:s==="en"?r(e):n(e)}function Os(t){return t.numberingSystem&&t.numberingSystem!=="latn"?!1:t.numberingSystem==="latn"||!t.locale||t.locale.startsWith("en")||kn(t.locale).numberingSystem==="latn"}var St=class{constructor(e,r,n){this.padTo=n.padTo||0,this.floor=n.floor||!1;let{padTo:s,floor:i,...o}=n;if(!r||Object.keys(o).length>0){let a={useGrouping:!1,...n};n.padTo>0&&(a.minimumIntegerDigits=n.padTo),this.inf=ys(e,a)}}format(e){if(this.inf){let r=this.floor?Math.floor(e):e;return this.inf.format(r)}else{let r=this.floor?Math.floor(e):Et(e,3);return O(r,this.padTo)}}},kt=class{constructor(e,r,n){this.opts=n,this.originalZone=void 0;let s;if(this.opts.timeZone)this.dt=e;else if(e.zone.type==="fixed"){let o=-1*(e.offset/60),a=o>=0?`Etc/GMT+${o}`:`Etc/GMT${o}`;e.offset!==0&&X.create(a).valid?(s=a,this.dt=e):(s="UTC",this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else e.zone.type==="system"?this.dt=e:e.zone.type==="iana"?(this.dt=e,s=e.zone.name):(s="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);let i={...this.opts};i.timeZone=i.timeZone||s,this.dtf=yt(r,i)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){let e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(r=>{if(r.type==="timeZoneName"){let n=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...r,value:n}}else return r}):e}resolvedOptions(){return this.dtf.resolvedOptions()}},Tt=class{constructor(e,r,n){this.opts={style:"long",...n},!r&&Fn()&&(this.rtf=gs(e,n))}format(e,r){return this.rtf?this.rtf.format(e,r):Us(r,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,r){return this.rtf?this.rtf.formatToParts(e,r):[]}},Tn={firstDay:1,minimalDays:4,weekend:[6,7]},w=class t{static fromOpts(e){return t.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,r,n,s,i=!1){let o=e||v.defaultLocale,a=o||(i?"en-US":ps()),u=r||v.defaultNumberingSystem,l=n||v.defaultOutputCalendar,d=xt(s)||v.defaultWeekSettings;return new t(a,u,l,d,o)}static resetCache(){$e=null,ft.clear(),gt.clear(),pt.clear(),wt.clear(),vt.clear()}static fromObject({locale:e,numberingSystem:r,outputCalendar:n,weekSettings:s}={}){return t.create(e,r,n,s)}constructor(e,r,n,s,i){let[o,a,u]=vs(e);this.locale=o,this.numberingSystem=r||a||null,this.outputCalendar=n||u||null,this.weekSettings=s,this.intl=Ss(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=i,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=Os(this)),this.fastNumbersCached}listingMode(){let e=this.isEnglish(),r=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&r?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:t.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,xt(e.weekSettings)||this.weekSettings,e.defaultToEN||!1)}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,r=!1){return Ve(this,e,Ln,()=>{let n=this.intl==="ja"||this.intl.startsWith("ja-");r&=!n;let s=r?{month:e,day:"numeric"}:{month:e},i=r?"format":"standalone";if(!this.monthsCache[i][e]){let o=n?a=>this.dtFormatter(a,s).format():a=>this.extract(a,s,"month");this.monthsCache[i][e]=ks(o)}return this.monthsCache[i][e]})}weekdays(e,r=!1){return Ve(this,e,Bn,()=>{let n=r?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},s=r?"format":"standalone";return this.weekdaysCache[s][e]||(this.weekdaysCache[s][e]=Ts(i=>this.extract(i,n,"weekday"))),this.weekdaysCache[s][e]})}meridiems(){return Ve(this,void 0,()=>Zn,()=>{if(!this.meridiemCache){let e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[S.utc(2016,11,13,9),S.utc(2016,11,13,19)].map(r=>this.extract(r,e,"dayperiod"))}return this.meridiemCache})}eras(e){return Ve(this,e,qn,()=>{let r={era:e};return this.eraCache[e]||(this.eraCache[e]=[S.utc(-40,1,1),S.utc(2017,1,1)].map(n=>this.extract(n,r,"era"))),this.eraCache[e]})}extract(e,r,n){let s=this.dtFormatter(e,r),i=s.formatToParts(),o=i.find(a=>a.type.toLowerCase()===n);return o?o.value:null}numberFormatter(e={}){return new St(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,r={}){return new kt(e,this.intl,r)}relFormatter(e={}){return new Tt(this.intl,this.isEnglish(),e)}listFormatter(e={}){return fs(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||kn(this.intl).locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:In()?ws(this.locale):Tn}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}},nt=null,$=class t extends te{static get utcInstance(){return nt===null&&(nt=new t(0)),nt}static instance(e){return e===0?t.utcInstance:new t(e)}static parseSpecifier(e){if(e){let r=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(r)return new t(Ge(r[1],r[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${be(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${be(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,r){return be(this.fixed,r)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}},Ot=class extends te{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}};function G(t,e){if(f(t)||t===null)return e;if(t instanceof te)return t;if(Fs(t)){let r=t.toLowerCase();return r==="default"?e:r==="local"||r==="system"?ze.instance:r==="utc"||r==="gmt"?$.utcInstance:$.parseSpecifier(r)||X.create(t)}else return Q(t)?$.instance(t):typeof t=="object"&&"offset"in t&&typeof t.offset=="function"?t:new Ot(t)}var Ft={arab:"[\u0660-\u0669]",arabext:"[\u06F0-\u06F9]",bali:"[\u1B50-\u1B59]",beng:"[\u09E6-\u09EF]",deva:"[\u0966-\u096F]",fullwide:"[\uFF10-\uFF19]",gujr:"[\u0AE6-\u0AEF]",hanidec:"[\u3007|\u4E00|\u4E8C|\u4E09|\u56DB|\u4E94|\u516D|\u4E03|\u516B|\u4E5D]",khmr:"[\u17E0-\u17E9]",knda:"[\u0CE6-\u0CEF]",laoo:"[\u0ED0-\u0ED9]",limb:"[\u1946-\u194F]",mlym:"[\u0D66-\u0D6F]",mong:"[\u1810-\u1819]",mymr:"[\u1040-\u1049]",orya:"[\u0B66-\u0B6F]",tamldec:"[\u0BE6-\u0BEF]",telu:"[\u0C66-\u0C6F]",thai:"[\u0E50-\u0E59]",tibt:"[\u0F20-\u0F29]",latn:"\\d"},or={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},bs=Ft.hanidec.replace(/[\[|\]]/g,"").split("");function xs(t){let e=parseInt(t,10);if(isNaN(e)){e="";for(let r=0;r<t.length;r++){let n=t.charCodeAt(r);if(t[r].search(Ft.hanidec)!==-1)e+=bs.indexOf(t[r]);else for(let s in or){let[i,o]=or[s];n>=i&&n<=o&&(e+=n-i)}}return parseInt(e,10)}else return e}var bt=new Map;function Ms(){bt.clear()}function Z({numberingSystem:t},e=""){let r=t||"latn",n=bt.get(r);n===void 0&&(n=new Map,bt.set(r,n));let s=n.get(e);return s===void 0&&(s=new RegExp(`${Ft[r]}${e}`),n.set(e,s)),s}var ar=()=>Date.now(),ur="system",lr=null,cr=null,dr=null,hr=60,mr,fr=null,v=class{static get now(){return ar}static set now(e){ar=e}static set defaultZone(e){ur=e}static get defaultZone(){return G(ur,ze.instance)}static get defaultLocale(){return lr}static set defaultLocale(e){lr=e}static get defaultNumberingSystem(){return cr}static set defaultNumberingSystem(e){cr=e}static get defaultOutputCalendar(){return dr}static set defaultOutputCalendar(e){dr=e}static get defaultWeekSettings(){return fr}static set defaultWeekSettings(e){fr=xt(e)}static get twoDigitCutoffYear(){return hr}static set twoDigitCutoffYear(e){hr=e%100}static get throwOnInvalid(){return mr}static set throwOnInvalid(e){mr=e}static resetCaches(){w.resetCache(),X.resetCache(),S.resetCache(),Ms()}},F=class{constructor(e,r){this.reason=e,this.explanation=r}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}},On=[0,31,59,90,120,151,181,212,243,273,304,334],bn=[0,31,60,91,121,152,182,213,244,274,305,335];function E(t,e){return new F("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`)}function It(t,e,r){let n=new Date(Date.UTC(t,e-1,r));t<100&&t>=0&&n.setUTCFullYear(n.getUTCFullYear()-1900);let s=n.getUTCDay();return s===0?7:s}function xn(t,e,r){return r+(Me(t)?bn:On)[e-1]}function Mn(t,e){let r=Me(t)?bn:On,n=r.findIndex(i=>i<e),s=e-r[n];return{month:n+1,day:s}}function Vt(t,e){return(t-e+7)%7+1}function je(t,e=4,r=1){let{year:n,month:s,day:i}=t,o=xn(n,s,i),a=Vt(It(n,s,i),r),u=Math.floor((o-a+14-e)/7),l;return u<1?(l=n-1,u=xe(l,e,r)):u>xe(n,e,r)?(l=n+1,u=1):l=n,{weekYear:l,weekNumber:u,weekday:a,...Je(t)}}function yr(t,e=4,r=1){let{weekYear:n,weekNumber:s,weekday:i}=t,o=Vt(It(n,1,e),r),a=ue(n),u=s*7+i-o-7+e,l;u<1?(l=n-1,u+=ue(l)):u>a?(l=n+1,u-=ue(n)):l=n;let{month:d,day:h}=Mn(l,u);return{year:l,month:d,day:h,...Je(t)}}function st(t){let{year:e,month:r,day:n}=t,s=xn(e,r,n);return{year:e,ordinal:s,...Je(t)}}function gr(t){let{year:e,ordinal:r}=t,{month:n,day:s}=Mn(e,r);return{year:e,month:n,day:s,...Je(t)}}function pr(t,e){if(!f(t.localWeekday)||!f(t.localWeekNumber)||!f(t.localWeekYear)){if(!f(t.weekday)||!f(t.weekNumber)||!f(t.weekYear))throw new J("Cannot mix locale-based week fields with ISO-based week fields");return f(t.localWeekday)||(t.weekday=t.localWeekday),f(t.localWeekNumber)||(t.weekNumber=t.localWeekNumber),f(t.localWeekYear)||(t.weekYear=t.localWeekYear),delete t.localWeekday,delete t.localWeekNumber,delete t.localWeekYear,{minDaysInFirstWeek:e.getMinDaysInFirstWeek(),startOfWeek:e.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function Ds(t,e=4,r=1){let n=Re(t.weekYear),s=L(t.weekNumber,1,xe(t.weekYear,e,r)),i=L(t.weekday,1,7);return n?s?i?!1:E("weekday",t.weekday):E("week",t.weekNumber):E("weekYear",t.weekYear)}function Ns(t){let e=Re(t.year),r=L(t.ordinal,1,ue(t.year));return e?r?!1:E("ordinal",t.ordinal):E("year",t.year)}function Dn(t){let e=Re(t.year),r=L(t.month,1,12),n=L(t.day,1,Pe(t.year,t.month));return e?r?n?!1:E("day",t.day):E("month",t.month):E("year",t.year)}function Nn(t){let{hour:e,minute:r,second:n,millisecond:s}=t,i=L(e,0,23)||e===24&&r===0&&n===0&&s===0,o=L(r,0,59),a=L(n,0,59),u=L(s,0,999);return i?o?a?u?!1:E("millisecond",s):E("second",n):E("minute",r):E("hour",e)}function f(t){return typeof t>"u"}function Q(t){return typeof t=="number"}function Re(t){return typeof t=="number"&&t%1===0}function Fs(t){return typeof t=="string"}function Is(t){return Object.prototype.toString.call(t)==="[object Date]"}function Fn(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function In(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function Vs(t){return Array.isArray(t)?t:[t]}function wr(t,e,r){if(t.length!==0)return t.reduce((n,s)=>{let i=[e(s),s];return n&&r(n[0],i[0])===n[0]?n:i},null)[1]}function Cs(t,e){return e.reduce((r,n)=>(r[n]=t[n],r),{})}function de(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function xt(t){if(t==null)return null;if(typeof t!="object")throw new x("Week settings must be an object");if(!L(t.firstDay,1,7)||!L(t.minimalDays,1,7)||!Array.isArray(t.weekend)||t.weekend.some(e=>!L(e,1,7)))throw new x("Invalid week settings");return{firstDay:t.firstDay,minimalDays:t.minimalDays,weekend:Array.from(t.weekend)}}function L(t,e,r){return Re(t)&&t>=e&&t<=r}function Es(t,e){return t-e*Math.floor(t/e)}function O(t,e=2){let r=t<0,n;return r?n="-"+(""+-t).padStart(e,"0"):n=(""+t).padStart(e,"0"),n}function Y(t){if(!(f(t)||t===null||t===""))return parseInt(t,10)}function K(t){if(!(f(t)||t===null||t===""))return parseFloat(t)}function Ct(t){if(!(f(t)||t===null||t==="")){let e=parseFloat("0."+t)*1e3;return Math.floor(e)}}function Et(t,e,r="round"){let n=10**e;switch(r){case"expand":return t>0?Math.ceil(t*n)/n:Math.floor(t*n)/n;case"trunc":return Math.trunc(t*n)/n;case"round":return Math.round(t*n)/n;case"floor":return Math.floor(t*n)/n;case"ceil":return Math.ceil(t*n)/n;default:throw new RangeError(`Value rounding ${r} is out of range`)}}function Me(t){return t%4===0&&(t%100!==0||t%400===0)}function ue(t){return Me(t)?366:365}function Pe(t,e){let r=Es(e-1,12)+1,n=t+(e-r)/12;return r===2?Me(n)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}function Ye(t){let e=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&t.year>=0&&(e=new Date(e),e.setUTCFullYear(t.year,t.month-1,t.day)),+e}function vr(t,e,r){return-Vt(It(t,1,e),r)+e-1}function xe(t,e=4,r=1){let n=vr(t,e,r),s=vr(t+1,e,r);return(ue(t)-n+s)/7}function Mt(t){return t>99?t:t>v.twoDigitCutoffYear?1900+t:2e3+t}function Vn(t,e,r,n=null){let s=new Date(t),i={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};n&&(i.timeZone=n);let o={timeZoneName:e,...i},a=new Intl.DateTimeFormat(r,o).formatToParts(s).find(u=>u.type.toLowerCase()==="timezonename");return a?a.value:null}function Ge(t,e){let r=parseInt(t,10);Number.isNaN(r)&&(r=0);let n=parseInt(e,10)||0,s=r<0||Object.is(r,-0)?-n:n;return r*60+s}function Cn(t){let e=Number(t);if(typeof t=="boolean"||t===""||!Number.isFinite(e))throw new x(`Invalid unit value ${t}`);return e}function Ue(t,e){let r={};for(let n in t)if(de(t,n)){let s=t[n];if(s==null)continue;r[e(n)]=Cn(s)}return r}function be(t,e){let r=Math.trunc(Math.abs(t/60)),n=Math.trunc(Math.abs(t%60)),s=t>=0?"+":"-";switch(e){case"short":return`${s}${O(r,2)}:${O(n,2)}`;case"narrow":return`${s}${r}${n>0?`:${n}`:""}`;case"techie":return`${s}${O(r,2)}${O(n,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function Je(t){return Cs(t,["hour","minute","second","millisecond"])}var Ls=["January","February","March","April","May","June","July","August","September","October","November","December"],En=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],$s=["J","F","M","A","M","J","J","A","S","O","N","D"];function Ln(t){switch(t){case"narrow":return[...$s];case"short":return[...En];case"long":return[...Ls];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}var $n=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Wn=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Ws=["M","T","W","T","F","S","S"];function Bn(t){switch(t){case"narrow":return[...Ws];case"short":return[...Wn];case"long":return[...$n];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}var Zn=["AM","PM"],Bs=["Before Christ","Anno Domini"],Zs=["BC","AD"],qs=["B","A"];function qn(t){switch(t){case"narrow":return[...qs];case"short":return[...Zs];case"long":return[...Bs];default:return null}}function As(t){return Zn[t.hour<12?0:1]}function zs(t,e){return Bn(e)[t.weekday-1]}function js(t,e){return Ln(e)[t.month-1]}function Ps(t,e){return qn(e)[t.year<0?0:1]}function Us(t,e,r="always",n=!1){let s={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},i=["hours","minutes","seconds"].indexOf(t)===-1;if(r==="auto"&&i){let h=t==="days";switch(e){case 1:return h?"tomorrow":`next ${s[t][0]}`;case-1:return h?"yesterday":`last ${s[t][0]}`;case 0:return h?"today":`this ${s[t][0]}`}}let o=Object.is(e,-0)||e<0,a=Math.abs(e),u=a===1,l=s[t],d=n?u?l[1]:l[2]||l[1]:u?s[t][0]:t;return o?`${a} ${d} ago`:`in ${a} ${d}`}function Sr(t,e){let r="";for(let n of t)n.literal?r+=n.val:r+=e(n.val);return r}var Hs={D:Ae,DD:tn,DDD:rn,DDDD:nn,t:sn,tt:on,ttt:an,tttt:un,T:ln,TT:cn,TTT:dn,TTTT:hn,f:mn,ff:yn,fff:pn,ffff:vn,F:fn,FF:gn,FFF:wn,FFFF:Sn},N=class t{static create(e,r={}){return new t(e,r)}static parseFormat(e){let r=null,n="",s=!1,i=[];for(let o=0;o<e.length;o++){let a=e.charAt(o);a==="'"?((n.length>0||s)&&i.push({literal:s||/^\s+$/.test(n),val:n===""?"'":n}),r=null,n="",s=!s):s||a===r?n+=a:(n.length>0&&i.push({literal:/^\s+$/.test(n),val:n}),n=a,r=a)}return n.length>0&&i.push({literal:s||/^\s+$/.test(n),val:n}),i}static macroTokenToFormatOpts(e){return Hs[e]}constructor(e,r){this.opts=r,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,r){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...r}).format()}dtFormatter(e,r={}){return this.loc.dtFormatter(e,{...this.opts,...r})}formatDateTime(e,r){return this.dtFormatter(e,r).format()}formatDateTimeParts(e,r){return this.dtFormatter(e,r).formatToParts()}formatInterval(e,r){return this.dtFormatter(e.start,r).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,r){return this.dtFormatter(e,r).resolvedOptions()}num(e,r=0,n=void 0){if(this.opts.forceSimple)return O(e,r);let s={...this.opts};return r>0&&(s.padTo=r),n&&(s.signDisplay=n),this.loc.numberFormatter(s).format(e)}formatDateTimeFromString(e,r){let n=this.loc.listingMode()==="en",s=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",i=(m,k)=>this.loc.extract(e,m,k),o=m=>e.isOffsetFixed&&e.offset===0&&m.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,m.format):"",a=()=>n?As(e):i({hour:"numeric",hourCycle:"h12"},"dayperiod"),u=(m,k)=>n?js(e,m):i(k?{month:m}:{month:m,day:"numeric"},"month"),l=(m,k)=>n?zs(e,m):i(k?{weekday:m}:{weekday:m,month:"long",day:"numeric"},"weekday"),d=m=>{let k=t.macroTokenToFormatOpts(m);return k?this.formatWithSystemDefault(e,k):m},h=m=>n?Ps(e,m):i({era:m},"era"),g=m=>{switch(m){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return o({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return o({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return o({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return a();case"d":return s?i({day:"numeric"},"day"):this.num(e.day);case"dd":return s?i({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return l("short",!0);case"cccc":return l("long",!0);case"ccccc":return l("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return l("short",!1);case"EEEE":return l("long",!1);case"EEEEE":return l("narrow",!1);case"L":return s?i({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return s?i({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return u("short",!0);case"LLLL":return u("long",!0);case"LLLLL":return u("narrow",!0);case"M":return s?i({month:"numeric"},"month"):this.num(e.month);case"MM":return s?i({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return u("short",!1);case"MMMM":return u("long",!1);case"MMMMM":return u("narrow",!1);case"y":return s?i({year:"numeric"},"year"):this.num(e.year);case"yy":return s?i({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return s?i({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return s?i({year:"numeric"},"year"):this.num(e.year,6);case"G":return h("short");case"GG":return h("long");case"GGGGG":return h("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return d(m)}};return Sr(t.parseFormat(r),g)}formatDurationFromString(e,r){let n=this.opts.signMode==="negativeLargestOnly"?-1:1,s=d=>{switch(d[0]){case"S":return"milliseconds";case"s":return"seconds";case"m":return"minutes";case"h":return"hours";case"d":return"days";case"w":return"weeks";case"M":return"months";case"y":return"years";default:return null}},i=(d,h)=>g=>{let m=s(g);if(m){let k=h.isNegativeDuration&&m!==h.largestUnit?n:1,D;return this.opts.signMode==="negativeLargestOnly"&&m!==h.largestUnit?D="never":this.opts.signMode==="all"?D="always":D="auto",this.num(d.get(m)*k,g.length,D)}else return g},o=t.parseFormat(r),a=o.reduce((d,{literal:h,val:g})=>h?d:d.concat(g),[]),u=e.shiftTo(...a.map(s).filter(d=>d)),l={isNegativeDuration:u<0,largestUnit:Object.keys(u.values)[0]};return Sr(o,i(u,l))}},An=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function he(...t){let e=t.reduce((r,n)=>r+n.source,"");return RegExp(`^${e}$`)}function me(...t){return e=>t.reduce(([r,n,s],i)=>{let[o,a,u]=i(e,s);return[{...r,...o},a||n,u]},[{},null,1]).slice(0,2)}function fe(t,...e){if(t==null)return[null,null];for(let[r,n]of e){let s=r.exec(t);if(s)return n(s)}return[null,null]}function zn(...t){return(e,r)=>{let n={},s;for(s=0;s<t.length;s++)n[t[s]]=Y(e[r+s]);return[n,null,r+s]}}var jn=/(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/,Rs=`(?:${jn.source}?(?:\\[(${An.source})\\])?)?`,Lt=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,Pn=RegExp(`${Lt.source}${Rs}`),$t=RegExp(`(?:[Tt]${Pn.source})?`),Ys=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,Gs=/(\d{4})-?W(\d\d)(?:-?(\d))?/,Js=/(\d{4})-?(\d{3})/,Qs=zn("weekYear","weekNumber","weekDay"),Xs=zn("year","ordinal"),Ks=/(\d{4})-(\d\d)-(\d\d)/,Un=RegExp(`${Lt.source} ?(?:${jn.source}|(${An.source}))?`),_s=RegExp(`(?: ${Un.source})?`);function le(t,e,r){let n=t[e];return f(n)?r:Y(n)}function ei(t,e){return[{year:le(t,e),month:le(t,e+1,1),day:le(t,e+2,1)},null,e+3]}function ye(t,e){return[{hours:le(t,e,0),minutes:le(t,e+1,0),seconds:le(t,e+2,0),milliseconds:Ct(t[e+3])},null,e+4]}function De(t,e){let r=!t[e]&&!t[e+1],n=Ge(t[e+1],t[e+2]),s=r?null:$.instance(n);return[{},s,e+3]}function Ne(t,e){let r=t[e]?X.create(t[e]):null;return[{},r,e+1]}var ti=RegExp(`^T?${Lt.source}$`),ri=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function ni(t){let[e,r,n,s,i,o,a,u,l]=t,d=e[0]==="-",h=u&&u[0]==="-",g=(m,k=!1)=>m!==void 0&&(k||m&&d)?-m:m;return[{years:g(K(r)),months:g(K(n)),weeks:g(K(s)),days:g(K(i)),hours:g(K(o)),minutes:g(K(a)),seconds:g(K(u),u==="-0"),milliseconds:g(Ct(l),h)}]}var si={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Wt(t,e,r,n,s,i,o){let a={year:e.length===2?Mt(Y(e)):Y(e),month:En.indexOf(r)+1,day:Y(n),hour:Y(s),minute:Y(i)};return o&&(a.second=Y(o)),t&&(a.weekday=t.length>3?$n.indexOf(t)+1:Wn.indexOf(t)+1),a}var ii=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function oi(t){let[,e,r,n,s,i,o,a,u,l,d,h]=t,g=Wt(e,s,n,r,i,o,a),m;return u?m=si[u]:l?m=0:m=Ge(d,h),[g,new $(m)]}function ai(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}var ui=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,li=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,ci=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function kr(t){let[,e,r,n,s,i,o,a]=t;return[Wt(e,s,n,r,i,o,a),$.utcInstance]}function di(t){let[,e,r,n,s,i,o,a]=t;return[Wt(e,a,r,n,s,i,o),$.utcInstance]}var hi=he(Ys,$t),mi=he(Gs,$t),fi=he(Js,$t),yi=he(Pn),Hn=me(ei,ye,De,Ne),gi=me(Qs,ye,De,Ne),pi=me(Xs,ye,De,Ne),wi=me(ye,De,Ne);function vi(t){return fe(t,[hi,Hn],[mi,gi],[fi,pi],[yi,wi])}function Si(t){return fe(ai(t),[ii,oi])}function ki(t){return fe(t,[ui,kr],[li,kr],[ci,di])}function Ti(t){return fe(t,[ri,ni])}var Oi=me(ye);function bi(t){return fe(t,[ti,Oi])}var xi=he(Ks,_s),Mi=he(Un),Di=me(ye,De,Ne);function Ni(t){return fe(t,[xi,Hn],[Mi,Di])}var Tr="Invalid Duration",Rn={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},Fi={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...Rn},C=146097/400,se=146097/4800,Ii={years:{quarters:4,months:12,weeks:C/7,days:C,hours:C*24,minutes:C*24*60,seconds:C*24*60*60,milliseconds:C*24*60*60*1e3},quarters:{months:3,weeks:C/28,days:C/4,hours:C*24/4,minutes:C*24*60/4,seconds:C*24*60*60/4,milliseconds:C*24*60*60*1e3/4},months:{weeks:se/7,days:se,hours:se*24,minutes:se*24*60,seconds:se*24*60*60,milliseconds:se*24*60*60*1e3},...Rn},ee=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],Vi=ee.slice(0).reverse();function P(t,e,r=!1){let n={values:r?e.values:{...t.values,...e.values||{}},loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy,matrix:e.matrix||t.matrix};return new M(n)}function Yn(t,e){let r=e.milliseconds??0;for(let n of Vi.slice(1))e[n]&&(r+=e[n]*t[n].milliseconds);return r}function Or(t,e){let r=Yn(t,e)<0?-1:1;ee.reduceRight((n,s)=>{if(f(e[s]))return n;if(n){let i=e[n]*r,o=t[s][n],a=Math.floor(i/o);e[s]+=a*r,e[n]-=a*o*r}return s},null),ee.reduce((n,s)=>{if(f(e[s]))return n;if(n){let i=e[n]%1;e[n]-=i,e[s]+=i*t[n][s]}return s},null)}function br(t){let e={};for(let[r,n]of Object.entries(t))n!==0&&(e[r]=n);return e}var M=class t{constructor(e){let r=e.conversionAccuracy==="longterm"||!1,n=r?Ii:Fi;e.matrix&&(n=e.matrix),this.values=e.values,this.loc=e.loc||w.create(),this.conversionAccuracy=r?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=n,this.isLuxonDuration=!0}static fromMillis(e,r){return t.fromObject({milliseconds:e},r)}static fromObject(e,r={}){if(e==null||typeof e!="object")throw new x(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new t({values:Ue(e,t.normalizeUnit),loc:w.fromObject(r),conversionAccuracy:r.conversionAccuracy,matrix:r.matrix})}static fromDurationLike(e){if(Q(e))return t.fromMillis(e);if(t.isDuration(e))return e;if(typeof e=="object")return t.fromObject(e);throw new x(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,r){let[n]=Ti(e);return n?t.fromObject(n,r):t.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,r){let[n]=bi(e);return n?t.fromObject(n,r):t.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,r=null){if(!e)throw new x("need to specify a reason the Duration is invalid");let n=e instanceof F?e:new F(e,r);if(v.throwOnInvalid)throw new ht(n);return new t({invalid:n})}static normalizeUnit(e){let r={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(!r)throw new qe(e);return r}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,r={}){let n={...r,floor:r.round!==!1&&r.floor!==!1};return this.isValid?N.create(this.loc,n).formatDurationFromString(this,e):Tr}toHuman(e={}){if(!this.isValid)return Tr;let r=e.showZeros!==!1,n=ee.map(s=>{let i=this.values[s];return f(i)||i===0&&!r?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:s.slice(0,-1)}).format(i)}).filter(s=>s);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(n)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return this.years!==0&&(e+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(e+=this.months+this.quarters*3+"M"),this.weeks!==0&&(e+=this.weeks+"W"),this.days!==0&&(e+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(e+="T"),this.hours!==0&&(e+=this.hours+"H"),this.minutes!==0&&(e+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(e+=Et(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;let r=this.toMillis();return r<0||r>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},S.fromMillis(r,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?Yn(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;let r=t.fromDurationLike(e),n={};for(let s of ee)(de(r.values,s)||de(this.values,s))&&(n[s]=r.get(s)+this.get(s));return P(this,{values:n},!0)}minus(e){if(!this.isValid)return this;let r=t.fromDurationLike(e);return this.plus(r.negate())}mapUnits(e){if(!this.isValid)return this;let r={};for(let n of Object.keys(this.values))r[n]=Cn(e(this.values[n],n));return P(this,{values:r},!0)}get(e){return this[t.normalizeUnit(e)]}set(e){if(!this.isValid)return this;let r={...this.values,...Ue(e,t.normalizeUnit)};return P(this,{values:r})}reconfigure({locale:e,numberingSystem:r,conversionAccuracy:n,matrix:s}={}){let i={loc:this.loc.clone({locale:e,numberingSystem:r}),matrix:s,conversionAccuracy:n};return P(this,i)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;let e=this.toObject();return Or(this.matrix,e),P(this,{values:e},!0)}rescale(){if(!this.isValid)return this;let e=br(this.normalize().shiftToAll().toObject());return P(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(o=>t.normalizeUnit(o));let r={},n={},s=this.toObject(),i;for(let o of ee)if(e.indexOf(o)>=0){i=o;let a=0;for(let l in n)a+=this.matrix[l][o]*n[l],n[l]=0;Q(s[o])&&(a+=s[o]);let u=Math.trunc(a);r[o]=u,n[o]=(a*1e3-u*1e3)/1e3}else Q(s[o])&&(n[o]=s[o]);for(let o in n)n[o]!==0&&(r[i]+=o===i?n[o]:n[o]/this.matrix[i][o]);return Or(this.matrix,r),P(this,{values:r},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;let e={};for(let r of Object.keys(this.values))e[r]=this.values[r]===0?0:-this.values[r];return P(this,{values:e},!0)}removeZeros(){if(!this.isValid)return this;let e=br(this.values);return P(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function r(n,s){return n===void 0||n===0?s===void 0||s===0:n===s}for(let n of ee)if(!r(this.values[n],e.values[n]))return!1;return!0}},ie="Invalid Interval";function Ci(t,e){return!t||!t.isValid?ce.invalid("missing or invalid start"):!e||!e.isValid?ce.invalid("missing or invalid end"):e<t?ce.invalid("end before start",`The end of an interval must be after its start, but you had start=${t.toISO()} and end=${e.toISO()}`):null}var ce=class t{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,r=null){if(!e)throw new x("need to specify a reason the Interval is invalid");let n=e instanceof F?e:new F(e,r);if(v.throwOnInvalid)throw new dt(n);return new t({invalid:n})}static fromDateTimes(e,r){let n=ke(e),s=ke(r);return Ci(n,s)??new t({start:n,end:s})}static after(e,r){let n=M.fromDurationLike(r),s=ke(e);return t.fromDateTimes(s,s.plus(n))}static before(e,r){let n=M.fromDurationLike(r),s=ke(e);return t.fromDateTimes(s.minus(n),s)}static fromISO(e,r){let[n,s]=(e||"").split("/",2);if(n&&s){let i,o;try{i=S.fromISO(n,r),o=i.isValid}catch{o=!1}let a,u;try{a=S.fromISO(s,r),u=a.isValid}catch{u=!1}if(o&&u)return t.fromDateTimes(i,a);if(o){let l=M.fromISO(s,r);if(l.isValid)return t.after(i,l)}else if(u){let l=M.fromISO(n,r);if(l.isValid)return t.before(a,l)}}return t.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get lastDateTime(){return this.isValid&&this.e?this.e.minus(1):null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds",r){if(!this.isValid)return NaN;let n=this.start.startOf(e,r),s;return r?.useLocaleWeeks?s=this.end.reconfigure({locale:n.locale}):s=this.end,s=s.startOf(e,r),Math.floor(s.diff(n,e).get(e))+(s.valueOf()!==this.end.valueOf())}hasSame(e){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,e):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return this.isValid?this.s>e:!1}isBefore(e){return this.isValid?this.e<=e:!1}contains(e){return this.isValid?this.s<=e&&this.e>e:!1}set({start:e,end:r}={}){return this.isValid?t.fromDateTimes(e||this.s,r||this.e):this}splitAt(...e){if(!this.isValid)return[];let r=e.map(ke).filter(o=>this.contains(o)).sort((o,a)=>o.toMillis()-a.toMillis()),n=[],{s}=this,i=0;for(;s<this.e;){let o=r[i]||this.e,a=+o>+this.e?this.e:o;n.push(t.fromDateTimes(s,a)),s=a,i+=1}return n}splitBy(e){let r=M.fromDurationLike(e);if(!this.isValid||!r.isValid||r.as("milliseconds")===0)return[];let{s:n}=this,s=1,i,o=[];for(;n<this.e;){let a=this.start.plus(r.mapUnits(u=>u*s));i=+a>+this.e?this.e:a,o.push(t.fromDateTimes(n,i)),n=i,s+=1}return o}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return this.isValid?+this.e==+e.s:!1}abutsEnd(e){return this.isValid?+e.e==+this.s:!1}engulfs(e){return this.isValid?this.s<=e.s&&this.e>=e.e:!1}equals(e){return!this.isValid||!e.isValid?!1:this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;let r=this.s>e.s?this.s:e.s,n=this.e<e.e?this.e:e.e;return r>=n?null:t.fromDateTimes(r,n)}union(e){if(!this.isValid)return this;let r=this.s<e.s?this.s:e.s,n=this.e>e.e?this.e:e.e;return t.fromDateTimes(r,n)}static merge(e){let[r,n]=e.sort((s,i)=>s.s-i.s).reduce(([s,i],o)=>i?i.overlaps(o)||i.abutsStart(o)?[s,i.union(o)]:[s.concat([i]),o]:[s,o],[[],null]);return n&&r.push(n),r}static xor(e){let r=null,n=0,s=[],i=e.map(u=>[{time:u.s,type:"s"},{time:u.e,type:"e"}]),o=Array.prototype.concat(...i),a=o.sort((u,l)=>u.time-l.time);for(let u of a)n+=u.type==="s"?1:-1,n===1?r=u.time:(r&&+r!=+u.time&&s.push(t.fromDateTimes(r,u.time)),r=null);return t.merge(s)}difference(...e){return t.xor([this].concat(e)).map(r=>this.intersection(r)).filter(r=>r&&!r.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} \u2013 ${this.e.toISO()})`:ie}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(e=Ae,r={}){return this.isValid?N.create(this.s.loc.clone(r),e).formatInterval(this):ie}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:ie}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:ie}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:ie}toFormat(e,{separator:r=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(e)}${r}${this.e.toFormat(e)}`:ie}toDuration(e,r){return this.isValid?this.e.diff(this.s,e,r):M.invalid(this.invalidReason)}mapEndpoints(e){return t.fromDateTimes(e(this.s),e(this.e))}},ae=class{static hasDST(e=v.defaultZone){let r=S.now().setZone(e).set({month:12});return!e.isUniversal&&r.offset!==r.set({month:6}).offset}static isValidIANAZone(e){return X.isValidZone(e)}static normalizeZone(e){return G(e,v.defaultZone)}static getStartOfWeek({locale:e=null,locObj:r=null}={}){return(r||w.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:r=null}={}){return(r||w.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:r=null}={}){return(r||w.create(e)).getWeekendDays().slice()}static months(e="long",{locale:r=null,numberingSystem:n=null,locObj:s=null,outputCalendar:i="gregory"}={}){return(s||w.create(r,n,i)).months(e)}static monthsFormat(e="long",{locale:r=null,numberingSystem:n=null,locObj:s=null,outputCalendar:i="gregory"}={}){return(s||w.create(r,n,i)).months(e,!0)}static weekdays(e="long",{locale:r=null,numberingSystem:n=null,locObj:s=null}={}){return(s||w.create(r,n,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:r=null,numberingSystem:n=null,locObj:s=null}={}){return(s||w.create(r,n,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return w.create(e).meridiems()}static eras(e="short",{locale:r=null}={}){return w.create(r,null,"gregory").eras(e)}static features(){return{relative:Fn(),localeWeek:In()}}};function xr(t,e){let r=s=>s.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),n=r(e)-r(t);return Math.floor(M.fromMillis(n).as("days"))}function Ei(t,e,r){let n=[["years",(u,l)=>l.year-u.year],["quarters",(u,l)=>l.quarter-u.quarter+(l.year-u.year)*4],["months",(u,l)=>l.month-u.month+(l.year-u.year)*12],["weeks",(u,l)=>{let d=xr(u,l);return(d-d%7)/7}],["days",xr]],s={},i=t,o,a;for(let[u,l]of n)r.indexOf(u)>=0&&(o=u,s[u]=l(t,e),a=i.plus(s),a>e?(s[u]--,t=i.plus(s),t>e&&(a=t,s[u]--,t=i.plus(s))):t=a);return[t,s,a,o]}function Li(t,e,r,n){let[s,i,o,a]=Ei(t,e,r),u=e-s,l=r.filter(h=>["hours","minutes","seconds","milliseconds"].indexOf(h)>=0);l.length===0&&(o<e&&(o=s.plus({[a]:1})),o!==s&&(i[a]=(i[a]||0)+u/(o-s)));let d=M.fromObject(i,n);return l.length>0?M.fromMillis(u,n).shiftTo(...l).plus(d):d}var $i="missing Intl.DateTimeFormat.formatToParts support";function p(t,e=r=>r){return{regex:t,deser:([r])=>e(xs(r))}}var Wi="\xA0",Gn=`[ ${Wi}]`,Jn=new RegExp(Gn,"g");function Bi(t){return t.replace(/\./g,"\\.?").replace(Jn,Gn)}function Mr(t){return t.replace(/\./g,"").replace(Jn," ").toLowerCase()}function q(t,e){return t===null?null:{regex:RegExp(t.map(Bi).join("|")),deser:([r])=>t.findIndex(n=>Mr(r)===Mr(n))+e}}function Dr(t,e){return{regex:t,deser:([,r,n])=>Ge(r,n),groups:e}}function Ce(t){return{regex:t,deser:([e])=>e}}function Zi(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function qi(t,e){let r=Z(e),n=Z(e,"{2}"),s=Z(e,"{3}"),i=Z(e,"{4}"),o=Z(e,"{6}"),a=Z(e,"{1,2}"),u=Z(e,"{1,3}"),l=Z(e,"{1,6}"),d=Z(e,"{1,9}"),h=Z(e,"{2,4}"),g=Z(e,"{4,6}"),m=D=>({regex:RegExp(Zi(D.val)),deser:([re])=>re,literal:!0}),k=(D=>{if(t.literal)return m(D);switch(D.val){case"G":return q(e.eras("short"),0);case"GG":return q(e.eras("long"),0);case"y":return p(l);case"yy":return p(h,Mt);case"yyyy":return p(i);case"yyyyy":return p(g);case"yyyyyy":return p(o);case"M":return p(a);case"MM":return p(n);case"MMM":return q(e.months("short",!0),1);case"MMMM":return q(e.months("long",!0),1);case"L":return p(a);case"LL":return p(n);case"LLL":return q(e.months("short",!1),1);case"LLLL":return q(e.months("long",!1),1);case"d":return p(a);case"dd":return p(n);case"o":return p(u);case"ooo":return p(s);case"HH":return p(n);case"H":return p(a);case"hh":return p(n);case"h":return p(a);case"mm":return p(n);case"m":return p(a);case"q":return p(a);case"qq":return p(n);case"s":return p(a);case"ss":return p(n);case"S":return p(u);case"SSS":return p(s);case"u":return Ce(d);case"uu":return Ce(a);case"uuu":return p(r);case"a":return q(e.meridiems(),0);case"kkkk":return p(i);case"kk":return p(h,Mt);case"W":return p(a);case"WW":return p(n);case"E":case"c":return p(r);case"EEE":return q(e.weekdays("short",!1),1);case"EEEE":return q(e.weekdays("long",!1),1);case"ccc":return q(e.weekdays("short",!0),1);case"cccc":return q(e.weekdays("long",!0),1);case"Z":case"ZZ":return Dr(new RegExp(`([+-]${a.source})(?::(${n.source}))?`),2);case"ZZZ":return Dr(new RegExp(`([+-]${a.source})(${n.source})?`),2);case"z":return Ce(/[a-z_+-/]{1,256}?/i);case" ":return Ce(/[^\S\n\r]/);default:return m(D)}})(t)||{invalidReason:$i};return k.token=t,k}var Ai={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function zi(t,e,r){let{type:n,value:s}=t;if(n==="literal"){let u=/^\s+$/.test(s);return{literal:!u,val:u?" ":s}}let i=e[n],o=n;n==="hour"&&(e.hour12!=null?o=e.hour12?"hour12":"hour24":e.hourCycle!=null?e.hourCycle==="h11"||e.hourCycle==="h12"?o="hour12":o="hour24":o=r.hour12?"hour12":"hour24");let a=Ai[o];if(typeof a=="object"&&(a=a[i]),a)return{literal:!1,val:a}}function ji(t){return[`^${t.map(e=>e.regex).reduce((e,r)=>`${e}(${r.source})`,"")}$`,t]}function Pi(t,e,r){let n=t.match(e);if(n){let s={},i=1;for(let o in r)if(de(r,o)){let a=r[o],u=a.groups?a.groups+1:1;!a.literal&&a.token&&(s[a.token.val[0]]=a.deser(n.slice(i,i+u))),i+=u}return[n,s]}else return[n,{}]}function Ui(t){let e=s=>{switch(s){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}},r=null,n;return f(t.z)||(r=X.create(t.z)),f(t.Z)||(r||(r=new $(t.Z)),n=t.Z),f(t.q)||(t.M=(t.q-1)*3+1),f(t.h)||(t.h<12&&t.a===1?t.h+=12:t.h===12&&t.a===0&&(t.h=0)),t.G===0&&t.y&&(t.y=-t.y),f(t.u)||(t.S=Ct(t.u)),[Object.keys(t).reduce((s,i)=>{let o=e(i);return o&&(s[o]=t[i]),s},{}),r,n]}var it=null;function Hi(){return it||(it=S.fromMillis(1555555555555)),it}function Ri(t,e){if(t.literal)return t;let r=N.macroTokenToFormatOpts(t.val),n=Kn(r,e);return n==null||n.includes(void 0)?t:n}function Qn(t,e){return Array.prototype.concat(...t.map(r=>Ri(r,e)))}var He=class{constructor(e,r){if(this.locale=e,this.format=r,this.tokens=Qn(N.parseFormat(r),e),this.units=this.tokens.map(n=>qi(n,e)),this.disqualifyingUnit=this.units.find(n=>n.invalidReason),!this.disqualifyingUnit){let[n,s]=ji(this.units);this.regex=RegExp(n,"i"),this.handlers=s}}explainFromTokens(e){if(this.isValid){let[r,n]=Pi(e,this.regex,this.handlers),[s,i,o]=n?Ui(n):[null,null,void 0];if(de(n,"a")&&de(n,"H"))throw new J("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:this.tokens,regex:this.regex,rawMatches:r,matches:n,result:s,zone:i,specificOffset:o}}else return{input:e,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}};function Xn(t,e,r){return new He(t,r).explainFromTokens(e)}function Yi(t,e,r){let{result:n,zone:s,specificOffset:i,invalidReason:o}=Xn(t,e,r);return[n,s,i,o]}function Kn(t,e){if(!t)return null;let r=N.create(e,t).dtFormatter(Hi()),n=r.formatToParts(),s=r.resolvedOptions();return n.map(i=>zi(i,t,s))}var ot="Invalid DateTime",Nr=864e13;function Te(t){return new F("unsupported zone",`the zone "${t.name}" is not supported`)}function at(t){return t.weekData===null&&(t.weekData=je(t.c)),t.weekData}function ut(t){return t.localWeekData===null&&(t.localWeekData=je(t.c,t.loc.getMinDaysInFirstWeek(),t.loc.getStartOfWeek())),t.localWeekData}function _(t,e){let r={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new S({...r,...e,old:r})}function _n(t,e,r){let n=t-e*60*1e3,s=r.offset(n);if(e===s)return[n,e];n-=(s-e)*60*1e3;let i=r.offset(n);return s===i?[n,s]:[t-Math.min(s,i)*60*1e3,Math.max(s,i)]}function Ee(t,e){t+=e*60*1e3;let r=new Date(t);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:r.getUTCHours(),minute:r.getUTCMinutes(),second:r.getUTCSeconds(),millisecond:r.getUTCMilliseconds()}}function We(t,e,r){return _n(Ye(t),e,r)}function Fr(t,e){let r=t.o,n=t.c.year+Math.trunc(e.years),s=t.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,i={...t.c,year:n,month:s,day:Math.min(t.c.day,Pe(n,s))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},o=M.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),a=Ye(i),[u,l]=_n(a,r,t.zone);return o!==0&&(u+=o,l=t.zone.offset(u)),{ts:u,o:l}}function oe(t,e,r,n,s,i){let{setZone:o,zone:a}=r;if(t&&Object.keys(t).length!==0||e){let u=e||a,l=S.fromObject(t,{...r,zone:u,specificOffset:i});return o?l:l.setZone(a)}else return S.invalid(new F("unparsable",`the input "${s}" can't be parsed as ${n}`))}function Le(t,e,r=!0){return t.isValid?N.create(w.create("en-US"),{allowZ:r,forceSimple:!0}).formatDateTimeFromString(t,e):null}function lt(t,e,r){let n=t.c.year>9999||t.c.year<0,s="";if(n&&t.c.year>=0&&(s+="+"),s+=O(t.c.year,n?6:4),r==="year")return s;if(e){if(s+="-",s+=O(t.c.month),r==="month")return s;s+="-"}else if(s+=O(t.c.month),r==="month")return s;return s+=O(t.c.day),s}function Ir(t,e,r,n,s,i,o){let a=!r||t.c.millisecond!==0||t.c.second!==0,u="";switch(o){case"day":case"month":case"year":break;default:if(u+=O(t.c.hour),o==="hour")break;if(e){if(u+=":",u+=O(t.c.minute),o==="minute")break;a&&(u+=":",u+=O(t.c.second))}else{if(u+=O(t.c.minute),o==="minute")break;a&&(u+=O(t.c.second))}if(o==="second")break;a&&(!n||t.c.millisecond!==0)&&(u+=".",u+=O(t.c.millisecond,3))}return s&&(t.isOffsetFixed&&t.offset===0&&!i?u+="Z":t.o<0?(u+="-",u+=O(Math.trunc(-t.o/60)),u+=":",u+=O(Math.trunc(-t.o%60))):(u+="+",u+=O(Math.trunc(t.o/60)),u+=":",u+=O(Math.trunc(t.o%60)))),i&&(u+="["+t.zone.ianaName+"]"),u}var es={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Gi={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Ji={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Be=["year","month","day","hour","minute","second","millisecond"],Qi=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],Xi=["year","ordinal","hour","minute","second","millisecond"];function Ze(t){let e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[t.toLowerCase()];if(!e)throw new qe(t);return e}function Vr(t){switch(t.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return Ze(t)}}function Ki(t){if(Oe===void 0&&(Oe=v.now()),t.type!=="iana")return t.offset(Oe);let e=t.name,r=Dt.get(e);return r===void 0&&(r=t.offset(Oe),Dt.set(e,r)),r}function Cr(t,e){let r=G(e.zone,v.defaultZone);if(!r.isValid)return S.invalid(Te(r));let n=w.fromObject(e),s,i;if(f(t.year))s=v.now();else{for(let u of Be)f(t[u])&&(t[u]=es[u]);let o=Dn(t)||Nn(t);if(o)return S.invalid(o);let a=Ki(r);[s,i]=We(t,a,r)}return new S({ts:s,zone:r,loc:n,o:i})}function Er(t,e,r){let n=f(r.round)?!0:r.round,s=f(r.rounding)?"trunc":r.rounding,i=(a,u)=>(a=Et(a,n||r.calendary?0:2,r.calendary?"round":s),e.loc.clone(r).relFormatter(r).format(a,u)),o=a=>r.calendary?e.hasSame(t,a)?0:e.startOf(a).diff(t.startOf(a),a).get(a):e.diff(t,a).get(a);if(r.unit)return i(o(r.unit),r.unit);for(let a of r.units){let u=o(a);if(Math.abs(u)>=1)return i(u,a)}return i(t>e?-0:0,r.units[r.units.length-1])}function Lr(t){let e={},r;return t.length>0&&typeof t[t.length-1]=="object"?(e=t[t.length-1],r=Array.from(t).slice(0,t.length-1)):r=Array.from(t),[e,r]}var Oe,Dt=new Map,S=class t{constructor(e){let r=e.zone||v.defaultZone,n=e.invalid||(Number.isNaN(e.ts)?new F("invalid input"):null)||(r.isValid?null:Te(r));this.ts=f(e.ts)?v.now():e.ts;let s=null,i=null;if(!n)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(r))[s,i]=[e.old.c,e.old.o];else{let o=Q(e.o)&&!e.old?e.o:r.offset(this.ts);s=Ee(this.ts,o),n=Number.isNaN(s.year)?new F("invalid input"):null,s=n?null:s,i=n?null:o}this._zone=r,this.loc=e.loc||w.create(),this.invalid=n,this.weekData=null,this.localWeekData=null,this.c=s,this.o=i,this.isLuxonDateTime=!0}static now(){return new t({})}static local(){let[e,r]=Lr(arguments),[n,s,i,o,a,u,l]=r;return Cr({year:n,month:s,day:i,hour:o,minute:a,second:u,millisecond:l},e)}static utc(){let[e,r]=Lr(arguments),[n,s,i,o,a,u,l]=r;return e.zone=$.utcInstance,Cr({year:n,month:s,day:i,hour:o,minute:a,second:u,millisecond:l},e)}static fromJSDate(e,r={}){let n=Is(e)?e.valueOf():NaN;if(Number.isNaN(n))return t.invalid("invalid input");let s=G(r.zone,v.defaultZone);return s.isValid?new t({ts:n,zone:s,loc:w.fromObject(r)}):t.invalid(Te(s))}static fromMillis(e,r={}){if(Q(e))return e<-Nr||e>Nr?t.invalid("Timestamp out of range"):new t({ts:e,zone:G(r.zone,v.defaultZone),loc:w.fromObject(r)});throw new x(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,r={}){if(Q(e))return new t({ts:e*1e3,zone:G(r.zone,v.defaultZone),loc:w.fromObject(r)});throw new x("fromSeconds requires a numerical input")}static fromObject(e,r={}){e=e||{};let n=G(r.zone,v.defaultZone);if(!n.isValid)return t.invalid(Te(n));let s=w.fromObject(r),i=Ue(e,Vr),{minDaysInFirstWeek:o,startOfWeek:a}=pr(i,s),u=v.now(),l=f(r.specificOffset)?n.offset(u):r.specificOffset,d=!f(i.ordinal),h=!f(i.year),g=!f(i.month)||!f(i.day),m=h||g,k=i.weekYear||i.weekNumber;if((m||d)&&k)throw new J("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(g&&d)throw new J("Can't mix ordinal dates with month/day");let D=k||i.weekday&&!m,re,Fe,ge=Ee(u,l);D?(re=Qi,Fe=Gi,ge=je(ge,o,a)):d?(re=Xi,Fe=Ji,ge=st(ge)):(re=Be,Fe=es);let Zt=!1;for(let we of re){let as=i[we];f(as)?Zt?i[we]=Fe[we]:i[we]=ge[we]:Zt=!0}let ns=D?Ds(i,o,a):d?Ns(i):Dn(i),qt=ns||Nn(i);if(qt)return t.invalid(qt);let ss=D?yr(i,o,a):d?gr(i):i,[is,os]=We(ss,l,n),pe=new t({ts:is,zone:n,o:os,loc:s});return i.weekday&&m&&e.weekday!==pe.weekday?t.invalid("mismatched weekday",`you can't specify both a weekday of ${i.weekday} and a date of ${pe.toISO()}`):pe.isValid?pe:t.invalid(pe.invalid)}static fromISO(e,r={}){let[n,s]=vi(e);return oe(n,s,r,"ISO 8601",e)}static fromRFC2822(e,r={}){let[n,s]=Si(e);return oe(n,s,r,"RFC 2822",e)}static fromHTTP(e,r={}){let[n,s]=ki(e);return oe(n,s,r,"HTTP",r)}static fromFormat(e,r,n={}){if(f(e)||f(r))throw new x("fromFormat requires an input string and a format");let{locale:s=null,numberingSystem:i=null}=n,o=w.fromOpts({locale:s,numberingSystem:i,defaultToEN:!0}),[a,u,l,d]=Yi(o,e,r);return d?t.invalid(d):oe(a,u,n,`format ${r}`,e,l)}static fromString(e,r,n={}){return t.fromFormat(e,r,n)}static fromSQL(e,r={}){let[n,s]=Ni(e);return oe(n,s,r,"SQL",e)}static invalid(e,r=null){if(!e)throw new x("need to specify a reason the DateTime is invalid");let n=e instanceof F?e:new F(e,r);if(v.throwOnInvalid)throw new ct(n);return new t({invalid:n})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,r={}){let n=Kn(e,w.fromObject(r));return n?n.map(s=>s?s.val:null).join(""):null}static expandFormat(e,r={}){return Qn(N.parseFormat(e),w.fromObject(r)).map(n=>n.val).join("")}static resetCache(){Oe=void 0,Dt.clear()}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?at(this).weekYear:NaN}get weekNumber(){return this.isValid?at(this).weekNumber:NaN}get weekday(){return this.isValid?at(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?ut(this).weekday:NaN}get localWeekNumber(){return this.isValid?ut(this).weekNumber:NaN}get localWeekYear(){return this.isValid?ut(this).weekYear:NaN}get ordinal(){return this.isValid?st(this.c).ordinal:NaN}get monthShort(){return this.isValid?ae.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?ae.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?ae.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?ae.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];let e=864e5,r=6e4,n=Ye(this.c),s=this.zone.offset(n-e),i=this.zone.offset(n+e),o=this.zone.offset(n-s*r),a=this.zone.offset(n-i*r);if(o===a)return[this];let u=n-o*r,l=n-a*r,d=Ee(u,o),h=Ee(l,a);return d.hour===h.hour&&d.minute===h.minute&&d.second===h.second&&d.millisecond===h.millisecond?[_(this,{ts:u}),_(this,{ts:l})]:[this]}get isInLeapYear(){return Me(this.year)}get daysInMonth(){return Pe(this.year,this.month)}get daysInYear(){return this.isValid?ue(this.year):NaN}get weeksInWeekYear(){return this.isValid?xe(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?xe(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){let{locale:r,numberingSystem:n,calendar:s}=N.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:r,numberingSystem:n,outputCalendar:s}}toUTC(e=0,r={}){return this.setZone($.instance(e),r)}toLocal(){return this.setZone(v.defaultZone)}setZone(e,{keepLocalTime:r=!1,keepCalendarTime:n=!1}={}){if(e=G(e,v.defaultZone),e.equals(this.zone))return this;if(e.isValid){let s=this.ts;if(r||n){let i=e.offset(this.ts),o=this.toObject();[s]=We(o,i,e)}return _(this,{ts:s,zone:e})}else return t.invalid(Te(e))}reconfigure({locale:e,numberingSystem:r,outputCalendar:n}={}){let s=this.loc.clone({locale:e,numberingSystem:r,outputCalendar:n});return _(this,{loc:s})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;let r=Ue(e,Vr),{minDaysInFirstWeek:n,startOfWeek:s}=pr(r,this.loc),i=!f(r.weekYear)||!f(r.weekNumber)||!f(r.weekday),o=!f(r.ordinal),a=!f(r.year),u=!f(r.month)||!f(r.day),l=a||u,d=r.weekYear||r.weekNumber;if((l||o)&&d)throw new J("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(u&&o)throw new J("Can't mix ordinal dates with month/day");let h;i?h=yr({...je(this.c,n,s),...r},n,s):f(r.ordinal)?(h={...this.toObject(),...r},f(r.day)&&(h.day=Math.min(Pe(h.year,h.month),h.day))):h=gr({...st(this.c),...r});let[g,m]=We(h,this.o,this.zone);return _(this,{ts:g,o:m})}plus(e){if(!this.isValid)return this;let r=M.fromDurationLike(e);return _(this,Fr(this,r))}minus(e){if(!this.isValid)return this;let r=M.fromDurationLike(e).negate();return _(this,Fr(this,r))}startOf(e,{useLocaleWeeks:r=!1}={}){if(!this.isValid)return this;let n={},s=M.normalizeUnit(e);switch(s){case"years":n.month=1;case"quarters":case"months":n.day=1;case"weeks":case"days":n.hour=0;case"hours":n.minute=0;case"minutes":n.second=0;case"seconds":n.millisecond=0;break}if(s==="weeks")if(r){let i=this.loc.getStartOfWeek(),{weekday:o}=this;o<i&&(n.weekNumber=this.weekNumber-1),n.weekday=i}else n.weekday=1;if(s==="quarters"){let i=Math.ceil(this.month/3);n.month=(i-1)*3+1}return this.set(n)}endOf(e,r){return this.isValid?this.plus({[e]:1}).startOf(e,r).minus(1):this}toFormat(e,r={}){return this.isValid?N.create(this.loc.redefaultToEN(r)).formatDateTimeFromString(this,e):ot}toLocaleString(e=Ae,r={}){return this.isValid?N.create(this.loc.clone(r),e).formatDateTime(this):ot}toLocaleParts(e={}){return this.isValid?N.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:r=!1,suppressMilliseconds:n=!1,includeOffset:s=!0,extendedZone:i=!1,precision:o="milliseconds"}={}){if(!this.isValid)return null;o=Ze(o);let a=e==="extended",u=lt(this,a,o);return Be.indexOf(o)>=3&&(u+="T"),u+=Ir(this,a,r,n,s,i,o),u}toISODate({format:e="extended",precision:r="day"}={}){return this.isValid?lt(this,e==="extended",Ze(r)):null}toISOWeekDate(){return Le(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:r=!1,includeOffset:n=!0,includePrefix:s=!1,extendedZone:i=!1,format:o="extended",precision:a="milliseconds"}={}){return this.isValid?(a=Ze(a),(s&&Be.indexOf(a)>=3?"T":"")+Ir(this,o==="extended",r,e,n,i,a)):null}toRFC2822(){return Le(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Le(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?lt(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:r=!1,includeOffsetSpace:n=!0}={}){let s="HH:mm:ss.SSS";return(r||e)&&(n&&(s+=" "),r?s+="z":e&&(s+="ZZ")),Le(this,s,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():ot}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};let r={...this.c};return e.includeConfig&&(r.outputCalendar=this.outputCalendar,r.numberingSystem=this.loc.numberingSystem,r.locale=this.loc.locale),r}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,r="milliseconds",n={}){if(!this.isValid||!e.isValid)return M.invalid("created by diffing an invalid DateTime");let s={locale:this.locale,numberingSystem:this.numberingSystem,...n},i=Vs(r).map(M.normalizeUnit),o=e.valueOf()>this.valueOf(),a=o?this:e,u=o?e:this,l=Li(a,u,i,s);return o?l.negate():l}diffNow(e="milliseconds",r={}){return this.diff(t.now(),e,r)}until(e){return this.isValid?ce.fromDateTimes(this,e):this}hasSame(e,r,n){if(!this.isValid)return!1;let s=e.valueOf(),i=this.setZone(e.zone,{keepLocalTime:!0});return i.startOf(r,n)<=s&&s<=i.endOf(r,n)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;let r=e.base||t.fromObject({},{zone:this.zone}),n=e.padding?this<r?-e.padding:e.padding:0,s=["years","months","days","hours","minutes","seconds"],i=e.unit;return Array.isArray(e.unit)&&(s=e.unit,i=void 0),Er(r,this.plus(n),{...e,numeric:"always",units:s,unit:i})}toRelativeCalendar(e={}){return this.isValid?Er(e.base||t.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(t.isDateTime))throw new x("min requires all arguments be DateTimes");return wr(e,r=>r.valueOf(),Math.min)}static max(...e){if(!e.every(t.isDateTime))throw new x("max requires all arguments be DateTimes");return wr(e,r=>r.valueOf(),Math.max)}static fromFormatExplain(e,r,n={}){let{locale:s=null,numberingSystem:i=null}=n,o=w.fromOpts({locale:s,numberingSystem:i,defaultToEN:!0});return Xn(o,e,r)}static fromStringExplain(e,r,n={}){return t.fromFormatExplain(e,r,n)}static buildFormatParser(e,r={}){let{locale:n=null,numberingSystem:s=null}=r,i=w.fromOpts({locale:n,numberingSystem:s,defaultToEN:!0});return new He(i,e)}static fromFormatParser(e,r,n={}){if(f(e)||f(r))throw new x("fromFormatParser requires an input string and a format parser");let{locale:s=null,numberingSystem:i=null}=n,o=w.fromOpts({locale:s,numberingSystem:i,defaultToEN:!0});if(!o.equals(r.locale))throw new x(`fromFormatParser called with a locale of ${o}, but the format parser was created for ${r.locale}`);let{result:a,zone:u,specificOffset:l,invalidReason:d}=r.explainFromTokens(e);return d?t.invalid(d):oe(a,u,n,`format ${r.format}`,e,l)}static get DATE_SHORT(){return Ae}static get DATE_MED(){return tn}static get DATE_MED_WITH_WEEKDAY(){return us}static get DATE_FULL(){return rn}static get DATE_HUGE(){return nn}static get TIME_SIMPLE(){return sn}static get TIME_WITH_SECONDS(){return on}static get TIME_WITH_SHORT_OFFSET(){return an}static get TIME_WITH_LONG_OFFSET(){return un}static get TIME_24_SIMPLE(){return ln}static get TIME_24_WITH_SECONDS(){return cn}static get TIME_24_WITH_SHORT_OFFSET(){return dn}static get TIME_24_WITH_LONG_OFFSET(){return hn}static get DATETIME_SHORT(){return mn}static get DATETIME_SHORT_WITH_SECONDS(){return fn}static get DATETIME_MED(){return yn}static get DATETIME_MED_WITH_SECONDS(){return gn}static get DATETIME_MED_WITH_WEEKDAY(){return ls}static get DATETIME_FULL(){return pn}static get DATETIME_FULL_WITH_SECONDS(){return wn}static get DATETIME_HUGE(){return vn}static get DATETIME_HUGE_WITH_SECONDS(){return Sn}};function ke(t){if(S.isDateTime(t))return t;if(t&&t.valueOf&&Q(t.valueOf()))return S.fromJSDate(t);if(t&&typeof t=="object")return S.fromObject(t);throw new x(`Unknown datetime argument: ${t}, of type ${typeof t}`)}var Nt=(t=>(t.NONE="none",t.ROTATE="rotate",t.STAGGER="stagger",t.WRAP="wrap",t))(Nt||{});function _i(t){let{configToUpdate:e,chartContainer:r,layer:n}=t,s=y(e);if(s.series[0]?.type===T.HeatSeries&&n?.capabilities?.queryAttributeBins?.supportsFirstDayOfWeek===!0&&(!("firstDayOfWeek"in e)||e.firstDayOfWeek===void 0||e.firstDayOfWeek===null)){let{lang:i}=zt(r??document.documentElement);try{s.firstDayOfWeek=S.local().setLocale(i.replaceAll("_","-")).startOf("week",{useLocaleWeeks:!0}).weekday}catch{}}return s}function eo(t){let e=y(t);return W(t.axes)||(e.axes=t.axes?.map(r=>{let n=r;return delete n.calculateAutomaticMaximum,delete n.calculateAutomaticMinimum,n.title?.content.font?.style!==void 0&&(n.title.content.font.style=n.title.content.font.style.toLowerCase()),n})),e}function to(t){let e=y(t);return W(t.series)||(e.series=t.series.map((r,n)=>{let s=r;r.id===void 0&&(s.id=`Series ${Date.now()}-${n}`);let i=j(t.series,n);return(i===T.BarSeries||i===T.LineSeries||i===T.RadarSeries)&&s.query?.outStatistics?.[0]?.statisticType==="median"&&(s.query.outStatistics[0].statisticType=ne.ContinuousPercentile),i===T.BarSeries&&s.multipleBarType!==void 0&&(s.stackedType=s.multipleBarType,delete s.multipleBarType),i===T.PieSeries&&s.sliceGrouping!==void 0&&(s.sliceGrouping.sliceId=Pt.defaultGroupOfSlicesId,s.sliceGrouping.groupName!==void 0&&(s.sliceGrouping={...s.sliceGrouping,label:s.sliceGrouping.groupName},delete s.sliceGrouping.groupName),s.sliceGrouping.groupSliceSymbol!==void 0&&(s.sliceGrouping={...s.sliceGrouping,fillSymbol:s.sliceGrouping.groupSliceSymbol},delete s.sliceGrouping.groupSliceSymbol)),s})),e}async function $r(t,e){let r=[];return await Promise.all(t.map(async n=>{if(!Ke(n)){let s=ve(n,!1);if(s.fieldToSort!==void 0){let i=await R({queryObject:e,fieldToMatch:s.fieldToSort});i!==void 0&&r.push(s.orderBy===void 0?i:`${i} ${s.orderBy}`)}}})),r}async function ro(t,e){let r={...t},n=e;if(!n){let s=sr(t)?t.iLayer:t.dataSource?.layer;s&&(n=await tr(s))}if(n){let s=Se(r.series),i=j(r.series),o=r.series&&r.series.length>0&&r.series[0].x.trim()===""||i===T.GaugeSeries&&!Kt(t)||s===b.PieFromFields||s===b.BarAndLineFromFields||s===b.BoxPlotMonoField||s===b.BoxPlotMonoFieldAndSplitBy||s===b.BoxPlotMultiFields||s===b.BoxPlotMultiFieldsAndSplitBy,a=i===T.ScatterSeries||s===b.BarAndLineNoAggregation||s===b.BarAndLineSplitByNoAggregation||s===b.BoxPlotMonoField||s===b.BoxPlotMonoFieldAndSplitBy||s===b.BoxPlotMonoFieldAndCategory||s===b.BoxPlotMonoFieldAndCategoryAndSplitBy||s===b.PieNoAggregation;if(r.series=await Promise.all(t.series.map(async u=>{let l={...u};if(o||(l.x=await R({queryObject:n,fieldToMatch:u.x})),"y"in l&&a){let d=l.y;if(Array.isArray(d)){let h=await et({fieldsList:d,queryObject:n});h!==void 0&&"y"in l&&(l.y=h)}else"y"in l&&typeof d=="string"&&(l.y=await R({queryObject:n,fieldToMatch:d}))}if(u.query!==void 0){let{where:d,groupByFieldsForStatistics:h,outStatistics:g}=u.query;if(h=await et({fieldsList:h,queryObject:n}),g!==void 0&&(g=await Promise.all(g.map(async m=>{let k={...m};return k.onStatisticField=await R({queryObject:n,fieldToMatch:m.onStatisticField}),k}))),d!==void 0&&s===b.BarAndLineSplitBy){let m=Jt(u.query?.where),k=Qt({where:u.query?.where,normalize:!1,escape:!1});d=`${await R({queryObject:n,fieldToMatch:m})}=${k}`}l.query!==void 0&&(d!==void 0&&(l.query.where=d),h!==void 0&&(l.query.groupByFieldsForStatistics=h),g!==void 0&&(l.query.outStatistics=g))}return l})),r.series[0]?.query!==void 0){let u=r.series[0].query,{orderByFields:l}=u;l!==void 0&&l.length>0&&(l=await $r(l,n),l.length>0&&u.orderByFields!==void 0&&(r.series[0].query.orderByFields=l))}if(r.orderOptions?.orderByFields!==void 0){let{orderByFields:u}=r.orderOptions;u!==void 0&&u.length>0&&(u=await $r(u,n),u.length>0&&(r.orderOptions.orderByFields=u))}if(i===T.GaugeSeries&&t.axes?.[0]!==void 0){let{minimumFromField:u,maximumFromField:l}=t.axes[0];if(u!==void 0){let d=typeof u=="string"?u:u.onStatisticField,h=await R({queryObject:n,fieldToMatch:d}),g=u;typeof t.axes[0].minimumFromField=="string"?g=h:typeof u=="object"&&(g={...u,onStatisticField:h}),t.axes[0].minimumFromField=g}if(l!==void 0){let d=typeof l=="string"?l:l.onStatisticField,h=await R({queryObject:n,fieldToMatch:d}),g=l;typeof t.axes[0].maximumFromField=="string"?g=h:typeof l=="object"&&(g={...l,onStatisticField:h}),t.axes[0].maximumFromField=g}}}return r}function no(t){let e=y(t);if(!W(t.series)&&j(t.series)===T.BoxPlotSeries){let r=e.series[0];r&&(r.showOutliers!==void 0&&(t.showOutliers===void 0&&(e.showOutliers=r.showOutliers),delete r.showOutliers),r.standardizeValues!==void 0&&(t.standardizeValues===void 0&&(e.standardizeValues=r.standardizeValues),delete r.standardizeValues),r.showMean!==void 0&&(t.showMean===void 0&&(e.showMean=r.showMean),delete r.showMean))}return e}function so(t){let e={orderType:B.Category,orderBy:V.Ascending},r=t.query?.orderByFields?.[0];if(r!==void 0){let{outStatisticFieldName:n,statisticType:s}=t.query?.outStatistics?.[0]??{},i=ve(r);n!==void 0&&i.fieldToSort===n&&s!==void 0&&(s===ne.Average||s==="mean"?e.orderType=B.Mean:s===ne.ContinuousPercentile&&(e.orderType=B.Median)),e.orderBy=i.orderBy??V.Ascending}return e}function io(t){let e=!1,r=Array.from(new Set(t.series.map(n=>n.type)));return r.length===2&&r.includes(T.BoxPlotSeries)&&r.includes(T.LineSeries)&&(e=t.series.find(n=>n.type===T.LineSeries)?.query?.outStatistics?.[0]!==void 0),e}function oo(t){let e=y(t);if(!W(e.series)&&j(t.series)===T.BoxPlotSeries){if(e.orderOptions?.data===void 0){let r=so(t.series[0]);r.orderType!==void 0&&(e.orderOptions??={},e.orderOptions.data={orderType:r.orderType,orderBy:r.orderBy})}if(e.series=t.series.map(r=>{let n=r;return W(n.x?.trim())&&(n.x=Ut),delete n.query?.orderByFields,n}),io(e)){e.showMean=!0;let r=e.series.find(n=>n.type===T.BoxPlotSeries);e.series.forEach(n=>{n.type===T.LineSeries&&(delete n.query?.groupByFieldsForStatistics,delete n.query?.outStatistics,delete n.query?.orderByFields,r&&(n.y=r.y))})}e.series=t.series.map(r=>{let n=r;return delete n.query?.outStatistics,n})}return e}function ao(t){let e=y(t);return e.legend!==void 0&&!Number.isFinite(e.legend.maxHeight)&&(e.legend.maxHeight=Number.NaN),e}function uo(t){let e=y(t);return"dataSource"in e&&e.dataSource.layer&&(e.iLayer=e.dataSource.layer,delete e.dataSource),e}function lo(t){let e=y(t),r=new Set,n=e.id??"";return r.add(n),e.series.forEach(s=>{let i=s.id;r.has(i)&&(i=`${i}_${Date.now()}`,s.id=i),r.add(i)}),e}async function co(t){let{configToUpdate:e,layer:r,chartContainer:n}=t,s=y(e);return s=eo(s),s=to(s),s=await ro(s,r),s=no(s),s=oo(s),s=ao(s),s=lo(s),s=_i({configToUpdate:s,chartContainer:n,layer:r}),s}function ho(t){let e=y(t);return e?.orderOptions?.orderByFields!==void 0&&Se(t.series)===b.PieFromFields&&(e.orderOptions.orderByFields=t?.orderOptions?.orderByFields?.map(r=>{let n=y(r);return r!==void 0&&r.includes("arcgis_charts_pie_category_from_fields_name")&&(n=r.replace("arcgis_charts_pie_category_from_fields_name",Ie)),n})),e}function mo(t){let e=y(t);if(!W(t.series)&&e.axes?.[0]!==void 0&&j(t.series)===T.GaugeSeries&&t.axes?.[0]!==void 0){let r=t.axes[0];r.ticks!==void 0&&Object.hasOwn(r.ticks,"spacing")&&delete r.ticks.spacing,e.axes[0]=r}return e}function fo(t){let e=y(t),{extent:r}=e.series[0]?.query??{};return r!==void 0&&(e.dataFilters={...e.dataFilters,geometry:r},e.series.forEach(n=>{"query"in n&&"extent"in n.query&&delete n.query.extent})),e}function ts(t){let e=y(t);return W(t.series)||(rr(t)&&t.rotated===void 0&&(e.rotated=t.series[0].rotated??Ht()),e.series.forEach(r=>{r.rotated!==void 0&&delete r.rotated})),e}function yo(t){let e=y(t),r=t.dataSource;return"dataSource"in e&&!W(r)&&(r.type==="featureLayer"&&e.dataSource!==void 0&&(e.dataSource.type="layer"),"featureLayer"in r&&(e.dataSource.layer=r.featureLayer,delete e.dataSource.featureLayer)),e}function go(t){let e=y(t);if("dataSource"in t){let r=t.dataSource;if(r.filter!==void 0&&r.filter.trim()!==""){let n=er([r.filter,e.dataFilters?.where]);e.dataFilters={...e.dataFilters,where:n},delete e.dataSource.filter}}return e}function po(t){return t!=="originalValue"}function rs(t){let e;switch(t){case"mean":e=B.Mean;break;case"median":e=B.Median;break;case"category":e=B.Category;break}return e}function wo(t){let e=y(t);if(!W(t.series)&&j(t.series)===T.PieSeries){let r=e.series[0];if(r){if(r.sortLabelsBy==="originalValue")e.sortLabelsBy=r.sortLabelsBy;else if(r.sortLabelsBy!==void 0&&e.orderOptions?.data===void 0){let n=Bt(e);n!==void 0&&(e.orderOptions??={},e.orderOptions.data=n)}r.sortLabelsBy&&delete r.sortLabelsBy}}return e}function vo(t){let e=y(t);return W(t.series)||(nr(t)&&t.stackedType===void 0&&(e.stackedType=t.series[0].stackedType??Rt()),e.series.forEach(r=>{"stackedType"in r&&delete r.stackedType})),e}function So(t){let e=y(t),r=t.sortOptions?.sortSeriesBy;return e.orderOptions===void 0&&typeof r=="string"&&(e.orderOptions??={},e.orderOptions.series={orderBy:r==="DESC"?V.Descending:V.Ascending}),e}function ko(t){let e=y(t);return e.colorMatch===void 0&&e.series[0]?.colorType!==void 0&&(e.colorMatch=e.series[0]?.colorType===At.Match),e.series.forEach(r=>{r.colorType!==void 0&&delete r.colorType}),e}function To(t){let e=y(t);if(e.sortDataBy!==void 0){if(e.orderOptions?.data===void 0){let r=t.sortDataBy,n=rs(r?.sortType);n!==void 0&&(e.orderOptions??={},e.orderOptions.data={orderType:n,orderBy:r?.sortOrder??V.Ascending})}delete e.sortDataBy}return e}function Oo(t){let e=y(t);return e.axes?.forEach(r=>{r!==void 0&&r.scrollbarVisible!==void 0&&r.scrollbar?.visible===void 0&&(r.scrollbar={...r.scrollbar,visible:r.scrollbarVisible},delete r.scrollbarVisible)}),e}function bo(t){let e=y(t),r=e.series[0]?.query?.orderByFields;if(r!==void 0&&r.length>0&&e.orderOptions?.orderByFields===void 0){e.orderOptions??={};let n=!0;if(r.length===1){let{fieldToSort:s,orderBy:i}=ve(r[0]),o;s===t.series[0].x||s===Ie?o=B.Category:"y"in t.series[0]&&s===t.series[0].y&&(o=B.YValue),o!==void 0&&(n=!1,e.orderOptions.data===void 0&&(e.orderOptions.data={orderType:o,orderBy:i?.toUpperCase()==="DESC"?V.Descending:V.Ascending}))}n&&(e.orderOptions.orderByFields=r)}return e.series.forEach(n=>{delete n.query?.orderByFields}),e}function Bt(t){let e,r=t.orderOptions?.orderByFields?.[0];if(t.series?.length>0){let n=j(t.series),s=Se(t.series);if(n!==T.PieSeries&&s!==b.BarAndLineFromFields&&(r=r??t.series[0].x),r&&!Ke(r)){let{fieldToSort:i,orderBy:o}=ve(r),a;i===t.series[0].x||i===Ie?a=B.Category:"y"in t.series[0]&&i===t.series[0].y&&(a=B.YValue),a!==void 0&&(e={orderType:a,orderBy:o?.toUpperCase()==="DESC"?V.Descending:V.Ascending})}}return e}function xo(t){let e=y(t),r=t,n=t,s=t,i=t,o=t;if(e){if(e.orderOptions?.series===void 0&&r.sortOptions?.sortSeriesBy!==void 0&&(e.orderOptions??={},e.orderOptions.series={preferLabel:po(n.sortLabelsBy??r.sortOptions.sortSeriesBy.sortType),orderBy:r.sortOptions.sortSeriesBy.sortOrder??V.Ascending}),n.sortLabelsBy==="originalValue"||i.orderOptions?.data?.preferDataLabel===!1||o.orderOptions?.data?.preferLabel===!1)e.orderOptions?.data&&delete e.orderOptions.data;else if(e.orderOptions?.data===void 0)if(j(e.series)===T.BoxPlotSeries){if(n.sortLabelsBy||s.sortOptions?.sortDataBy!==void 0){let a=rs(s.sortOptions?.sortDataBy?.sortType);a!==void 0&&(e.orderOptions??={},e.orderOptions.data={orderType:a,orderBy:s.sortOptions?.sortDataBy?.sortOrder??V.Ascending})}}else{let a=Bt(e);a!==void 0&&(e.orderOptions??={},e.orderOptions.data=a)}"sortLabelsBy"in e&&delete e.sortLabelsBy,"sortOptions"in e&&delete e.sortOptions}return e}function Mo(t){let e=y(t);if(e){let r=Se(e.series);if((r===b.BarAndLineFromFields||r===b.PieFromFields)&&e.orderOptions?.data===void 0&&e.orderOptions?.orderByFields!==void 0){let n=Bt(e);n!==void 0&&(e.orderOptions??={},e.orderOptions.data=n,delete e.orderOptions.orderByFields)}}return e}function Do(t){let e=y(t);return e.horizontalAxisLabelsBehavior===Nt.NONE&&(e.horizontalAxisLabelsBehavior=Qe.Hide),e.verticalAxisLabelsBehavior===Nt.NONE&&(e.verticalAxisLabelsBehavior=Qe.Hide),e}function No(t){let e=y(t),r=e.series[0];if(r&&!r.temporalBinning&&Xt(e.series[0])&&("timeIntervalSize"in r||"timeIntervalUnits"in r||"timeAggregationType"in r||"trimIncompleteTimeInterval"in r||"nullPolicy"in r)){if(r.temporalBinning={},r.timeIntervalSize!==void 0&&(r.temporalBinning.size=r.timeIntervalSize,delete r.timeIntervalSize),r.timeIntervalUnits){let n;switch(r.timeIntervalUnits){case"esriTimeUnitsSeconds":n=H.Second;break;case"esriTimeUnitsMinutes":n=H.Minute;break;case"esriTimeUnitsHours":n=H.Hour;break;case"esriTimeUnitsDays":n=H.Day;break;case"esriTimeUnitsWeeks":n=H.Week;break;case"esriTimeUnitsMonths":n=H.Month;break;case"esriTimeUnitsYears":n=H.Year;break}n!==void 0&&(r.temporalBinning.unit=n),delete r.timeIntervalUnits}r.timeAggregationType&&(r.temporalBinning.timeAggregationType=r.timeAggregationType,delete r.timeAggregationType),r.trimIncompleteTimeInterval!==void 0&&(r.temporalBinning.trimIncompleteTimeInterval=r.trimIncompleteTimeInterval,delete r.trimIncompleteTimeInterval),r.nullPolicy&&(r.temporalBinning.nullPolicy=r.nullPolicy,delete r.nullPolicy)}return e}function Fo(t){let e=y(t);return e.series.forEach(r=>{r.query?.outStatistics?.forEach(n=>{n.statisticType==="percentile_cont"?n.statisticType=ne.ContinuousPercentile:n.statisticType==="percentile_disc"&&(n.statisticType=ne.DiscretePercentile)})}),e}function Io(t){let e=y(t);return e.subtitle===void 0&&e.subTitle&&(e.subtitle=e.subTitle),delete e.subTitle,e}function Vo(t){let e=y(t),r=e.series[0];return r?.temporalBinning&&delete r.temporalBinning?.type,e}function Co(t){let e=y(t);return e=ho(e),e}function Wr(t){let e=y(t);return e=mo(e),e}function Br(t){let e=y(t);return e=fo(e),e}function Zr(t){let e=y(t);return e=ts(e),e}function qr(t){let e=y(t);return e=yo(e),e}function Ar(t){let e=y(t);return e=go(e),e}function zr(t){let e=y(t);return e=wo(e),e}function jr(t){let e=y(t);return e=So(e),e}function Pr(t){let e=y(t);return e=ko(e),e}function Ur(t){return Oo(t)}function Hr(t){let e=y(t);return t.series[0]?.type===T.BoxPlotSeries&&(e=To(e)),e}function Rr(t){return vo(t)}function Yr(t){return xo(t)}function Gr(t){return uo(t)}function Jr(t){return Mo(t)}function Qr(t){return Do(t)}function Xr(t){return No(t)}function Kr(t){return Fo(t)}function _r(t){let e=y(t);return e=ts(e),Io(e)}function en(t){let e=y(t);return e=Vo(e),e}function Eo(t){let{versionsToConvert:e=[],configToUpdate:r}=t,n=y(r);return e.length>0&&n!==void 0&&(n=bo(n),e.includes(_e)||e.includes(Yt)?(n=Co(n),n=Wr(n),n=Br(n),n=Zr(n),n=qr(n),n=Ar(n),n=zr(n),n=jr(n),n=Pr(n),n=Ur(n),n=Hr(n),n=Rr(n),n=Yr(n),n=Gr(n),n=Jr(n),n=Qr(n),n=Xr(n),n=Kr(n),n=_r(n),n=en(n)):e.forEach(s=>{if(n!==void 0)switch(s){case"1.0.1":n=Wr(n);break;case"3.4.0":n=Br(n);break;case"4.0.0":n=Zr(n);break;case"4.0.1":n=qr(n);break;case"6.4.0":n=Ar(n);break;case"7.5.1":n=zr(n);break;case"8.0.0":n=jr(n);break;case"9.2.0":n=Pr(n);break;case"9.7.0":n=Ur(n);break;case"10.0.0":n=Hr(n);break;case"11.0.0":n=Rr(n);break;case"14.0.1":n=Yr(n);break;case"16.0.0":n=Gr(n);break;case"16.1.0":n=Jr(n);break;case"18.1.3":n=Qr(n);break;case"20.1.0":n=Xr(n);break;case"21.0.0":n=Kr(n);break;case"23.2.0":n=_r(n);break;case"24.3.0":n=en(n);break}}),n.version=jt),n}async function qo(t,e,r){let n=t;if(t){let s=_t(e);n=await co({configToUpdate:t,layer:s,chartContainer:r});let i=t.version??_e,{versionStatus:o,versions:a}=Gt(i);(o===Xe.Older||o===Xe.Unrecognized)&&(n=Eo({versionsToConvert:a,configToUpdate:n}))}return n}return{a:S,b:qo}},a)
@@ -1,4 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/5.0/esri/copyright.txt for details.
3
- v5.0.0-next.11 */
4
- import b from"./VAPQXZKI.js";import{h as C,n as te}from"./H7RL7LD5.js";import a from"./5CBRD6OP.js";import{d as $,f as E,i as Y,j as Z,q as ee}from"./WA7XJCBI.js";import{b as d}from"./EJJFMTXQ.js";import{a as f,h as x,v as u}from"./OAOMMFL6.js";export default $arcgis.t(([,,,,,,,{substitute:P},{$:se,A:w,Ea:_,K:J,L:oe,M:ie,Pa:F,T:D,U:H,da:W,hb:A,lb:re,mc:le,oc:G,pc:K,xb:ne,y:j,yc:L},{M:T,b:O,e:Q,g:R,h:ae,na:ye,q:ce,ra:me}])=>{var oo=(o,e)=>e?.series?.[o]?.name,io=(o,e,i)=>{let s=i;s?.series?.[e]!==void 0&&(s.series[e].name=o)},so=(o,e)=>{let i,s=e.series?.[o];return s?.type===f.BoxPlotSeries?i=s.fillSymbol?.color:s?.type===f.LineSeries&&(i=s.lineSymbol?.color),i},Fe=o=>{let e=o.series[0];return o.showMean===!0&&C(e)?e.fillSymbol?.color:void 0},ve=(o,e)=>{let i=e.series[0];e.showMean===!0&&C(i)&&(i.fillSymbol!==void 0?i.fillSymbol.color=o:i.fillSymbol={...D(),color:o})},ro=(o,e,i)=>{let s=i?.series?.[e];s?.type===f.BoxPlotSeries&&s.fillSymbol!==void 0?s.fillSymbol.color=o:s?.type===f.LineSeries&&s.lineSymbol!==void 0&&(s.lineSymbol.color=o,s.markerSymbol!==void 0&&(s.markerSymbol.color=o))},Me=o=>o.series.map(e=>e.id),Be=(o,e)=>{e?.series?.sort((i,s)=>o.findIndex(r=>i.id===r)-o.findIndex(r=>s.id===r))},no=(o,e,i)=>{let s=Me(i),[r]=s.splice(o,1);s.splice(e,0,r),Be(s,i)},lo=o=>U(o)?o.series.findIndex(e=>e.type===f.BoxPlotSeries):-1;function Ae(o,e,i){let s=be(o,e,i),r=ce(o),n=L(o);return s===r||n}function de(o,e,i){let s=k(o,e,i),r=T(1,o),n=L(o);return s===r||n}function Le(o){let{config:e,layerInfo:i,newCategory:s}=o,{layerFieldsInfo:r}=i,n=B(e),t=s!==w?F(r,n):"",l=T(0,e),a=L(e);return t===l||a||l.trim()===""}var B=o=>A(o)?.x??w,Ce=$(o=>{let e=A(o),i=e?.query?.where?.split("=")[0].trim()??"";return re(e?.query?.where)?"":i},o=>A(o)?.query?.where),fe=$(o=>ne(o?.series).filter(e=>e!==""),o=>o?.series),V=o=>{let{category:e,seriesIndex:i,y:s,commonStrings:r}=o,n={...W(r,i),x:e===void 0||e===""?w:e,y:s,query:{}};return E(n)},Oe=o=>{let{category:e,seriesIndex:i,y:s,commonStrings:r}=o,n={...se({commonStrings:r,seriesIndex:i}),x:e===void 0||e===""?w:e,y:s,query:{}};return E(n)};function ge(o){let{x:e,y:i,seriesTemplate:s,commonStrings:r}=o,{id:n,fillSymbol:t}=s??{},l=W(r),a=n??`series_${Date.now()}`;return l.id=a,l.name=a,l.x=e,l.y=i,t?l.fillSymbol=t:l.fillSymbol&&(l.fillSymbol.color=_,l.fillSymbol?.outline&&(l.fillSymbol.outline.color=_)),l}function ue(o){let{numericFields:e,config:i,layerInfo:s,category:r,commonStrings:n}=o,{layerFieldsInfo:t}=s,l=[],a=r??B(i),y=!1;if(e.length===0){let c=V({y:"",seriesIndex:0,category:a,commonStrings:n});l.push(c)}else if(a===w){let c=e.length>1?e:e[0],b=V({y:c,seriesIndex:0,category:a,commonStrings:n}),v=e.length>1?n.axisLabels.values:F(s.layerFieldsInfo,e[0]),g={...b,id:e[0],name:v,x:a},m=i.series.find(S=>Z(c,S.y)&&S.query?.where===void 0);m!==void 0&&(!i.colorMatch&&"fillSymbol"in m&&(g.fillSymbol=m.fillSymbol,y=!0),g.id=m.id,g.name=m.name),l.push(g)}else for(let c=0;c<e.length;c+=1){let b=e[c],v=V({y:b,seriesIndex:c,category:a,commonStrings:n}),g=F(t,b),m={...v,id:b,name:g,x:a},S=i.series.find(h=>b===h.y);S!==void 0&&(!i.colorMatch&&"fillSymbol"in S&&(m.fillSymbol=S.fillSymbol,y=!0),m.id=S.id,m.name=S.name),l.push(m)}return i.series.length===1&&l.length===1&&!i.colorMatch&&"fillSymbol"in i.series[0]&&(l[0].fillSymbol=i.series[0].fillSymbol,y=!0),i.colorMatch=!y,l}var Se=o=>o?.query?.where?.split("=")[1].trim().replace(/'/gu,"")??"",ke=o=>o.series.some(e=>e.type===f.LineSeries)&&o.series.some(e=>e.type===f.BoxPlotSeries);function qe(o,e,i){let s=[];return o.forEach(r=>{if(r.type===f.BoxPlotSeries){let{type:n,fillSymbol:t,...l}=r;s.push({...l,type:f.LineSeries,lineSymbol:{...J({width:j}),...t!==void 0?{color:t.color}:{}},markerSymbol:{...H(),...t!==void 0?{color:t.color}:{}}})}}),s.unshift(ge({x:o[0].x,y:o[0].y,seriesTemplate:i,commonStrings:e})),s}function De(o){let e=o.slice(1),i=[];return e.forEach(s=>{if(s.type===f.LineSeries){let{type:r,lineSymbol:n,markerSymbol:t,...l}=s,a=D();i.push({...l,type:f.BoxPlotSeries,fillSymbol:{...a,color:n?.color}})}}),i}function pe(o){let{formerSeries:e,newSeries:i,showMean:s}=o,r=i,n=a=>a.type===(s?f.LineSeries:f.BoxPlotSeries),t=e.filter(n).map(a=>a.id),l=i.filter(n).map(a=>a.id);return t.length===l.length&&JSON.stringify(t)!==JSON.stringify(l)&&(r=r.sort((a,y)=>t.findIndex(c=>c===a.id)-t.findIndex(c=>c===y.id))),r}async function Te(o){let{config:e,layerInfo:i,commonStrings:s,splitByField:r,numericFields:n,category:t}=o,{layer:l,layerFieldsInfo:a}=i,{fetchNullValues:y}=A(e)?.query??{},c=t??B(e),{categoriesArray:b,splitByFieldType:v}=await ye({config:e,layer:l,layerFieldsInfo:a,xAxisField:z(c)?void 0:c,aggregationFields:n,splitByField:r,fetchNullValues:y}),g=[],m=!1,S=ke(e);if(b.length===0){g=ue({numericFields:n,category:c,config:e,layerInfo:i,commonStrings:s});for(let h of g)h.query&&(h.query.where=`${r}=''`)}else for(let h=0;h<b.length;h+=1){let M=b[h],q={y:n,seriesIndex:h,category:c,commonStrings:s},X=S?Oe(q):V(q),he={fieldName:r,fieldValueToMatch:M??"",subtypeInfo:G(i.layer),fieldList:i.layerFieldsInfo},we=K(he),N=`${M}`,I={...X,id:N,name:we??N,x:c===void 0||c===""?w:c,query:{...X.query,where:`${r}=${v===ee.String&&M!==null?`'${M}'`:M}`}},p=e.series.find(Ie=>Se(Ie)===N);p!==void 0&&(e.colorMatch||(I.type===f.BoxPlotSeries?C(p)?I.fillSymbol=p.fillSymbol:I.fillSymbol={...D(),color:p.lineSymbol?.color}:C(p)?(I.lineSymbol={...J({width:j}),...p.fillSymbol!==void 0?{color:p.fillSymbol.color}:{}},I.markerSymbol={...H(),...p.fillSymbol!==void 0?{color:p.fillSymbol.color}:{}}):(I.lineSymbol=p.lineSymbol,I.markerSymbol=p.markerSymbol),m=!0),I.id=p.id,I.name=p.name),g.push(I)}if(g=pe({formerSeries:e.series,newSeries:g,showMean:U(e)}),e.colorMatch=!m,U(e)){let h=e.series.find(q=>q.type===f.BoxPlotSeries),M=ge({x:c,y:n,seriesTemplate:h,commonStrings:s});g.unshift(M)}return g}var to=async o=>{let{splitByField:e,numericFields:i,category:s,config:r,layerInfo:n,commonStrings:t}=o,{layerFieldsInfo:l}=n,a=Ne(s,i,e),y=le(l),c=B(r),b=Ae(r,n,t),v=de(r,n,t),g=Le({config:r,layerInfo:n,newCategory:s}),m=R(r);if(!y.includes(c)&&y.includes(s)?m=ie():y.includes(c)&&!y.includes(s)&&(m=oe()),m!==void 0&&ae(r,t,m),Ve(a?{newShowMeanLines:r.showMean,config:r,commonStrings:t}:{newShowMeanLines:!1,config:r,commonStrings:t}),r.series=a?await Te({config:r,layerInfo:n,splitByField:e,numericFields:i,category:s,commonStrings:t}):ue({numericFields:i,config:r,layerInfo:n,category:s,commonStrings:t}),g){let S=z(s)?"":F(l,s);O(r,0,S)}if(v){let S=k(r,n,t);O(r,1,S)}r?.title!==void 0&&b&&(r.title.content.text=be(r,n,t)),Q({config:r,value:null,axisIndex:1,isMax:!1}),Q({config:r,value:null,axisIndex:1,isMax:!0})},Pe=o=>o?.standardizeValues??!1;function k(o,e,i){let{layerFieldsInfo:s}=e,r=Pe(o)?i.axisLabels.standardizedValues:i.axisLabels.values,n=o?.series?.map(t=>t.y).flat();return n=[...new Set(n)],n.length===1&&(r=F(s,n[0])),r}function be(o,e,i){let{layerFieldsInfo:s}=e,r=B(o),n=fe(o),t=Ce(o),l=n.map(c=>F(s??[],c)).join(", "),a=F(s??[],r),y="";return n.length>0&&(r!==w&&t!==""?y=P(i.titleLabels.distributionOfFieldsByCategoryAndSplitBy,{valueFields:l,category:a,splitByField:t}):r!==w?y=P(i.titleLabels.distributionOfFieldsByCategory,{valueFields:l,category:a}):t!==""?y=P(i.titleLabels.distributionOfFieldsByCategory,{valueFields:l,category:t}):y=P(i.titleLabels.distributionOfField,{valueField:l})),y}var ao=o=>{let{series:e,splitByField:i,layerInfo:s,commonStrings:r}=o,n=typeof e.y=="string"?F(s.layerFieldsInfo,e.y):r.axisLabels.values;Y(i)||(n=Se(e));let t={fieldName:i,fieldValueToMatch:n??"",subtypeInfo:G(s.layer),fieldList:s.layerFieldsInfo};return n=K(t)??n,n??e.id},co=o=>o?.showOutliers??!1,yo=o=>{let{newShowOutliers:e,config:i,layerInfo:s,commonStrings:r}=o;if(i.showOutliers=e,de(i,s,r)){let n=k(i,s,r);O(i,1,n)}},mo=o=>{let{newStandardizeValues:e,config:i,layerInfo:s,commonStrings:r}=o,n=T(1,i),t=k(i,s,r),l=L(i);if(i.standardizeValues=e,n===t||l){let a=k(i,s,r);O(i,1,a)}},xe=o=>{let e=d.xAxisAsc,i=o.orderOptions?.data?.orderType??u.Category,s=o.orderOptions?.data?.orderBy??x.Ascending;switch(i){case u.Category:e=Array.isArray(s)?d.customSort:s===x.Ascending?d.xAxisAsc:d.xAxisDesc;break;case u.Mean:e=s===x.Ascending?d.meanAsc:d.meanDesc;break;case u.Median:e=s===x.Ascending?d.medianAsc:d.medianDesc;break}return e},fo=(o,e,i)=>{let s=u.Category,r=x.Ascending;if(e.orderOptions=e.orderOptions??{},o===d.customSort&&i!==void 0)e.orderOptions.data={orderType:u.Category,orderBy:i};else{switch(o){case d.xAxisAsc:{s=u.Category,r=x.Ascending;break}case d.xAxisDesc:{s=u.Category,r=x.Descending;break}case d.meanAsc:{s=u.Mean,r=x.Ascending;break}case d.meanDesc:{s=u.Mean,r=x.Descending;break}case d.medianAsc:{s=u.Median,r=x.Ascending;break}case d.medianDesc:{s=u.Median,r=x.Descending;break}}e.orderOptions.data={orderType:s,orderBy:r}}},U=o=>o.showMean??!1,Ve=o=>{let{newShowMeanLines:e=!1,config:i,commonStrings:s,previousMeanLinesBoxColor:r}=o,n=e?r:Fe(i),t=(e??!1)!==(i.showMean??!1);if(i.showMean=e,t){let l;e?l=te(i.series)?qe(i.series,s):i.series:l=De(i.series),l&&(l=pe({formerSeries:i.series,newSeries:l,showMean:e}),i.series=l)}return e&&r!==void 0&&ve(r,i),{previousMeanLinesBoxColor:n}},go=o=>{let e=[],i=o.orderOptions?.data?.orderType;return xe(o)===d.customSort&&i===u.Category&&(e=o.orderOptions?.data?.orderBy),e},uo=(o,e)=>{e.orderOptions??={};let i=e.orderOptions?.data?.orderType;xe(e)===d.customSort&&i===u.Category&&(e.orderOptions.data={orderType:u.Category,orderBy:o})},So=async(o,e)=>{let i=B(o),s=R(o)?.type,r=fe(o),n=[];return s===f.CategoryAxisFormat&&(i===w?n=r:z(i)||(n=await me({layerInfo:e,config:o,category:i}))),n},z=o=>o.trim()===""||o===w,ze=(o,e)=>e.length>1&&!z(o),Ne=(o,e,i)=>!ze(o,e)&&i!=="";return{a:oo,b:io,c:so,d:Fe,e:ve,f:ro,g:Me,h:Be,i:no,j:lo,k:B,l:Ce,m:fe,n:to,o:Pe,p:k,q:be,r:ao,s:co,t:yo,u:mo,v:xe,w:fo,x:U,y:Ve,z:go,A:uo,B:So,C:ze,D:Ne}},"geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/Query","rest/support/StatisticDefinition","time/TimeExtent","core/promiseUtils","request","intl",a,b)
@@ -1,4 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/5.0/esri/copyright.txt for details.
3
- v5.0.0-next.11 */
4
- import j from"./G5H2TEHV.js";import i from"./RGD2IITK.js";import h from"./YDCNNUIW.js";import g from"./7BTVYU5I.js";import f from"./TZ3BFZSU.js";import e from"./T3DQKITI.js";import d from"./6PRX5AZT.js";import c from"./LBFV3EAT.js";import b from"./VAPQXZKI.js";import"./H7RL7LD5.js";import a from"./5CBRD6OP.js";import"./WA7XJCBI.js";import"./4RFFJ3NA.js";import"./EJJFMTXQ.js";import{a as n}from"./OAOMMFL6.js";import"./2LQWBSIA.js";import"./KYLEA675.js";export default $arcgis.t(([,,,,,,,,{$:r,D:m,la:h,v:l},{Ea:o,qa:f},,,,,,{b:S,c:c,d:d},{b:y,d:g,f:p,h:u,j:b},{a:I,b:v}])=>{var a=class extends d{constructor(){super(...arguments),this._chartType=n.LineSeries}async setup(e){await this.loadConfigFromLayer(e),this.setupLocalProps(),e.config!==void 0&&await this.updateSeriesFromLayerFilter(),this.initDefaultSeries(),typeof this.resolveSetup=="function"&&this.resolveSetup()}generateDefaultConfig(){let e=h(this.commonStrings);return e.series=[r({commonStrings:this.commonStrings,objectIDField:this.layerInfo?.objectIdField})],e}initDefaultSeries(){this.defaultSeries=r({commonStrings:this.commonStrings,objectIDField:this.layerInfo?.objectIdField})}resetSeriesStyling(){this.guardSetterFromAsyncOverwrite(()=>{for(let e=0;e<this.seriesLength;e+=1){let t=m({colorIndex:e,opacity:l});if(c(t,e,this._config),p(t,e,this._config),this.layerInfo!==void 0){let i=this.getSeriesId(e),s=o({config:this._config,seriesIndex:e,layerInfo:this.layerInfo,commonStrings:this.commonStrings});s!==this.layerInfo.objectIdField&&S(s??i,e,this._config)}y(this.defaultSeries?.lineSymbol?.style,e,this._config),g(this.defaultSeries?.lineSymbol?.width,e,this._config),u(this.defaultSeries?.markerSymbol?.style,e,this._config),b(this.defaultSeries?.markerSymbol?.size,e,this._config)}this._config.colorMatch=!0,this.emitConfigUpdate("resetSeriesStyling")})}resetAvailable(){let e=!this.colorMatch,t=!1;if(!e)for(let i=0;i<this.seriesLength;i+=1){if(this.layerInfo!==void 0){let s=o({config:this._config,seriesIndex:i,layerInfo:this.layerInfo,commonStrings:this.commonStrings}),_=this.getSeriesName(i);s!==void 0&&s!==this.layerInfo.objectIdField&&s!==_&&(t=!0)}if(this.defaultSeries?.lineSymbol?.style!==void 0&&this.defaultSeries?.lineSymbol.style!==this.getSeriesLineStyle(i)||this.defaultSeries?.lineSymbol?.width!==void 0&&this.defaultSeries?.lineSymbol.width!==this.getSeriesLineWidth(i)||this.defaultSeries?.markerSymbol?.style!==void 0&&this.defaultSeries?.markerSymbol?.style!==this.getSeriesMarkerStyle(i)||this.defaultSeries?.markerSymbol?.size!==void 0&&this.defaultSeries?.markerSymbol?.size!==this.getSeriesMarkerSize(i)){t=!0;break}}return e||t}};f(a,[v,I]);return a},"geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/Query","rest/support/StatisticDefinition","time/TimeExtent","core/promiseUtils","request","intl",a,b,c,d,e,f,g,h,i,j)
@@ -1,4 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/5.0/esri/copyright.txt for details.
3
- v5.0.0-next.11 */
4
- import{a as m,c as K}from"./4GR57BDP.js";import{a as P}from"./OC2NUSTD.js";import c from"./M7MVIXQ4.js";import{j as o,l as h}from"./FCGB6WZP.js";import{a as E}from"./MS3O6FVR.js";import b from"./YLPMJC4J.js";import a from"./5CBRD6OP.js";import{c as z,f as k,i as A,w as x}from"./WA7XJCBI.js";import"./4RFFJ3NA.js";import"./EJJFMTXQ.js";import{a as f}from"./OAOMMFL6.js";import{A as i,B as v,D as w,F as L,g as F,h as n,l as $,w as d,x as r,y as T}from"./2LQWBSIA.js";import"./KYLEA675.js";export default $arcgis.t(([,,,,,,,{Aa:_,E:C,Pa:y,v:M},,{b:V,f:S,g:b,h:p,i:g,j:D}])=>{var l={label:"label",r2:"r2",numberInput:"number-input",iconSelect:"icon-select",sectionLabel:"section-label",switchElement:"switch-element",sectionContainer:"section-container",multiInputSection:"multi-input-section",dimText:"dim-text"},R=F`.hide{display:none}.am5-modal{width:100%;height:100%;position:absolute;z-index:100000;top:0;left:0}.am5-html-container{z-index:101!important}.am5-modal-curtain{top:0;left:0;width:100%;height:100%;position:absolute;background:#fff!important;z-index:100}.am5-modal-wrapper{top:0;left:0;width:100%;height:100%;position:absolute;display:flex;align-items:center;justify-content:center;white-space:nowrap;background:#ffffff80;z-index:101}.am5-modal-content{display:inline-block;padding:1.2em;vertical-align:middle;text-align:start;white-space:normal;background:#fff;border-radius:4px;box-shadow:#00000073 0 0 36px;color:#000}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.arcgis-charts-modal{box-shadow:none!important}.arcgis-charts-modal-header{background-color:#0000000d;font-weight:700;padding:4px;align-content:center}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}:host{display:flex;flex-direction:column;width:var(--arcgis-charts-config-calcite-block-default-width);margin:var(--arcgis-charts-config-calcite-block-default-margin)}:host .number-input{margin-bottom:.5rem;display:flex}:host .number-input>div{width:100%}calcite-list-item{margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor)}calcite-slider{margin-top:-1.5rem}.r2{margin:var(--arcgis-charts-config-margin-major) var(--arcgis-charts-config-margin-minor)}.label{display:flex;margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);margin-bottom:var(--arcgis-charts-config-margin-minor);justify-content:space-between}.text{display:flex;margin-left:var(--arcgis-charts-config-margin-minor);width:calc(100% - 1.5rem);height:2rem;margin-bottom:var(--arcgis-charts-config-margin-minor);justify-content:space-between}.section-container{display:flex;flex-direction:column}.icon-select{cursor:pointer}.section-label{display:flex;margin:var(--arcgis-charts-config-margin-major) var(--arcgis-charts-config-margin-minor);justify-content:space-between;align-items:center;font-weight:var(--calcite-font-weight-medium);font-size:var(--calcite-font-size-0)}.switch-element{margin-right:var(--arcgis-charts-config-margin-minor)}.multi-input-section{display:flex;justify-content:space-between;align-items:center}`,I=class extends T{constructor(){super(...arguments),this._messages=E(),this.commonStrings=E({name:"common",blocking:!0}),this.scatterplotPopover=null,this.selectColorElement=d(),this.selectTrendLineElement=d(),this.xAxisElement=d(),this.yAxisElement=d(),this.tooltipFieldElement=d(),this.sizeVariableElement=d(),this.colorModeElement=d(),this.symbolSizeModeElement=d(),this.minSizeInputElement=d(),this.maxSizeInputElement=d(),this.items=[],this.setTrendLineSymbol=e=>{let t=e.detail;this.model.linearTrendSymbol=k(t)},this.setFixedSymbolRGBAColor=e=>{let t=e.detail,[a,s,c]=t,u=M*255;this.model.fixedMarkerSymbol={...this.model.fixedMarkerSymbol,color:[a,s,c,u]}},this.setXYField=e=>{try{let t=e.detail;K(m),this.contentKind===o.xAxisField?this.model.xAxisField=t:this.model.yAxisField=t,this.removeScatterplotPopover()}catch(t){throw this.arcgisChartsConfigDataChangeError.emit({error:t,model:this.model}),t}},this.setAdditionalTooltipField=e=>{let t=e.detail;this.model.additionalTooltipField=t,this.removeScatterplotPopover()},this.setSizeVariableField=e=>{try{let t=e.detail;t?this.model.sizePolicy={...this.model.sizePolicy,type:f.SizePolicy,field:t}:this.model.sizePolicy=void 0,m.scatterplotData[m.selectedChartId]={...m.scatterplotData[m.selectedChartId],sizePolicyField:this.model.sizePolicy?.field??void 0},this.removeScatterplotPopover()}catch(t){throw this.arcgisChartsConfigDataChangeError.emit({error:t,model:this.model}),t}},this.closeScatterplotPopover=e=>{this.scatterplotPopover===e?.target&&(this.contentKind=o.none,this.removeScatterplotPopover())},this.onModelConfigChange=()=>{this.requestUpdate();let{minSize:e,maxSize:t}=this.model.sizePolicy??{};this.minSizeInputElement.value!==void 0&&e!==void 0&&(this.minSizeInputElement.value.value=`${e}`,S(this.minSizeInputElement.value.value,this.minSizeInputElement.value.min,this.minSizeInputElement.value.max)?p({inputElement:this.minSizeInputElement.value,status:g.IDLE}):p({inputElement:this.minSizeInputElement.value,status:g.INVALID})),this.maxSizeInputElement.value!==void 0&&t!==void 0&&(this.maxSizeInputElement.value.value=`${t}`,S(this.maxSizeInputElement.value.value,this.maxSizeInputElement.value.min,this.maxSizeInputElement.value.max)?p({inputElement:this.maxSizeInputElement.value,status:g.IDLE}):p({inputElement:this.maxSizeInputElement.value,status:g.INVALID}))},this.segmentedControlRef=e=>{e&&(e.focus=()=>{},this.items.push(e))},this.layerFieldsInfo=[],this.arcgisChartsConfigDataChangeError=$(),this.arcgisChartsConfigScatterplotPopoverChange=$()}static{this.properties={selectedElement:16,selectedSizeType:16,messageOverrides:0,model:0,r2:9,layerFieldsInfo:0,isTableLayer:5}}static{this.styles=R}load(){this.modelChange(this.model),this.onModelConfigChange(),this.defaultR2Label=_(this.commonStrings),this.selectedSizeType=this.getCurrentSymbolSizeType(),this.selectedSizeType===h.Proportional&&(m.scatterplotData[m.selectedChartId]={...m.scatterplotData[m.selectedChartId],sizePolicyField:this.model.sizePolicy?.field})}willUpdate(e){e.has("model")&&this.modelChange(this.model,e.get("model")),e.has("selectedElement")&&this.openPopover()}async loaded(){await(async e=>await new Promise(t=>setTimeout(()=>t(),e)))(250),this.items.forEach(e=>{delete e.focus})}disconnectedCallback(){super.disconnectedCallback(),this.removeScatterplotPopover(),this.model.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}openPopover(){(typeof this.selectedElement=="string"||!A(this.selectedElement))&&this.setupPopover()}modelChange(e,t){t?.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange),e?.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}setShowTrendLine(e){let t=e.target.checked;this.model.showLinearTrend=t,!t&&this.contentKind===o.trendLine&&this.closeScatterplotPopover(e)}symbolSizeChange(e){let t=e.target,{value:a}=t;if(a!==void 0&&S(a,t.min,t.max)){let s=Number.parseInt(a),c=this.model.sizePolicy,u=this.model.fixedMarkerSymbol;switch(t.name){case"fixed-symbol-size":u!==void 0&&(this.model.fixedMarkerSymbol={...u,size:s});break;case"proportional-symbol-min-size":c!==void 0&&(this.model.sizePolicy={...c,minSize:s});break;case"proportional-symbol-max-size":c!==void 0&&(this.model.sizePolicy={...c,maxSize:s});break}p({inputElement:t,status:g.IDLE})}else p({inputElement:t,status:g.INVALID})}symbolSizeRangeSliderInput(e){let t=e.target,{minValue:a,maxValue:s}=t,c=this.model.sizePolicy;c!==void 0&&(this.model.sizePolicy={...c,minSize:a,maxSize:s},this.minSizeInputElement.value!==void 0&&(this.minSizeInputElement.value.value=`${a}`),this.maxSizeInputElement.value!==void 0&&(this.maxSizeInputElement.value.value=`${s}`))}changeColorTypeToggle(){let e=this.colorModeElement.value?.selectedItem?.value;this.model.colorMatch=e===this._messages.useLayerColors}changeSymbolSizeTypeToggle(){let e=this.symbolSizeModeElement.value?.value;this.selectedSizeType=e;let t=m.scatterplotData[m.selectedChartId]?.sizePolicyField;e===h.Proportional&&t!==void 0?this.model.sizePolicy={...this.model.sizePolicy,type:f.SizePolicy,field:t}:e===h.Fixed&&(this.model.sizePolicy={...this.model.sizePolicy,type:f.SizePolicy,field:""})}changeElementStyle(e){e.stopImmediatePropagation();let t=e.target;t.localName==="calcite-icon"&&(t=t.parentElement),t.value==="selectColor"?(this.contentKind=o.symbol,this.selectedElement=this.model.fixedMarkerSymbol?.color):t.value==="selectTrendLine"&&(this.contentKind=o.trendLine,this.selectedElement=this.model.linearTrendSymbol)}onXVariableSelectChange(e){e.stopImmediatePropagation(),this.contentKind=o.xAxisField,this.selectedElement=this.model.xAxisField}onYVariableSelectChange(e){e.stopImmediatePropagation(),this.contentKind=o.yAxisField,this.selectedElement=this.model.yAxisField}onAdditionalTooltipFieldSelectChange(e){e.stopImmediatePropagation(),this.contentKind=o.additionalTooltipFields,this.selectedElement=this.model.additionalTooltipField?.[0]??""}onSizeVariableSelectChange(e){e.stopImmediatePropagation(),this.contentKind=o.sizeVariable,this.selectedElement=this.model.sizePolicy?.field??""}setupPopover(){this.scatterplotPopover=P(this.scatterplotPopover);let e=[...this.layerFieldsInfo],t,a,s,c="trailing";switch(this.contentKind){case o.xAxisField:t=this.xAxisElement.value,s=this.model.xAxisField,a=this._messages.selectAField;break;case o.yAxisField:t=this.yAxisElement.value,s=this.model.yAxisField,a=this._messages.selectAField;break;case o.sizeVariable:t=this.sizeVariableElement.value,s=this.model.sizePolicy?.field??"",a=this._messages.selectAField;break;case o.additionalTooltipFields:t=this.tooltipFieldElement.value,s=this.model.additionalTooltipField?.[0]??"",a=this._messages.selectAField;break;case o.symbol:case o.trendLine:{let u=this.selectedElement;s=this.selectedElement,c="leading",Array.isArray(this.selectedElement)?t=this.selectColorElement.value:u?.type===x.SLS&&(t=this.selectTrendLineElement.value);break}default:this.contentKind=o.none,this.removeScatterplotPopover();break}this.scatterplotPopover=w(n`<arcgis-charts-config-scatter-plot-popover .headingTitle=${a} .referenceElement=${t} open .contentKind=${this.contentKind} .layerFieldsInfo=${e} .selectedContent=${s} .placement=${c} @arcgisChartsConfigPopoverClose=${this.closeScatterplotPopover} @arcgisChartsConfigScatterplotFillColorChange=${this.setFixedSymbolRGBAColor} @arcgisChartsConfigScatterplotLineStyleChange=${this.setTrendLineSymbol} @arcgisChartsConfigScatterplotXYFieldChange=${this.setXYField} @arcgisChartsConfigScatterplotSizeVariableFieldChange=${this.setSizeVariableField} @arcgisChartsConfigScatterplotAdditionalTooltipFieldChange=${this.setAdditionalTooltipField}></arcgis-charts-config-scatter-plot-popover>`),!document.body.contains(this.scatterplotPopover)&&this.scatterplotPopover!==null&&document.body.appendChild(this.scatterplotPopover)}removeScatterplotPopover(){this.scatterplotPopover!==null&&(this.scatterplotPopover=P(this.scatterplotPopover)),this.selectedElement={}}getCurrentSymbolSizeType(){let e=this.model.sizePolicy;return e===void 0||e.field===""?h.Fixed:h.Proportional}renderXVariable(){return n`<arcgis-charts-config-field-select .label=${y(this.layerFieldsInfo,this.model.xAxisField??"")} @click=${this.onXVariableSelectChange} ${r(this.xAxisElement)}></arcgis-charts-config-field-select>`}renderYVariable(){return n`<arcgis-charts-config-field-select .label=${y(this.layerFieldsInfo,this.model.yAxisField??"")} @click=${this.onYVariableSelectChange} ${r(this.yAxisElement)}></arcgis-charts-config-field-select>`}renderTooltipField(){return n`<arcgis-charts-config-field-select .disabled=${this.model.dataStore.aggregated} .label=${y(this.layerFieldsInfo,this.model.additionalTooltipField?.[0]??"")} @click=${this.onAdditionalTooltipFieldSelectChange} ${r(this.tooltipFieldElement)}></arcgis-charts-config-field-select>`}renderStatistics(){let[e,t,a,s]=[...this.model.linearTrendSymbol?.color??C(0)];return n`<div class=${i(l.sectionContainer)}><calcite-label class=${i(l.label)} layout=inline-space-between>${this._messages.showLinearTrend}<calcite-switch class=${i(l.switchElement)} .checked=${this.model.showLinearTrend} @calciteSwitchChange=${this.setShowTrendLine}></calcite-switch></calcite-label><calcite-list label selection-mode=single selection-appearance=border><calcite-list-item .label=${this._messages.trendLineStyle} value=selectTrendLine .hidden=${!this.model.showLinearTrend} .selected=${this.selectedElement?.type===x.SLS} @click=${this.changeElementStyle} ${r(this.selectTrendLineElement)}><calcite-icon slot=content-end icon=line-solid style=${v({color:`rgba(${e},${t},${a},${s/255})`})} class=${i(l.iconSelect)} @click=${this.changeElementStyle}></calcite-icon></calcite-list-item></calcite-list><div class=${i(l.r2)} .hidden=${!this.model.showLinearTrend}>${`${this._messages.r2}: ${Number.isNaN(this.r2)?this.defaultR2Label:D(this.r2,V)}`}</div></div>`}renderFixedSymbol(){return n`<calcite-label class=${i(l.label)}>${this._messages.size}<calcite-input type=number name=fixed-symbol-size class=${i(l.numberInput)} min=1 max=100 step=1 .value=${b(this.model.fixedMarkerSymbol?.size)} @calciteInputInput=${this.symbolSizeChange}></calcite-input></calcite-label>`}renderSizeVariable(){return n`<arcgis-charts-config-field-select .label=${y(this.layerFieldsInfo,this.model.sizePolicy?.field??"")} .invalid=${this.layerFieldsInfo.find(e=>e.name===this.model.sizePolicy?.field)===void 0} @click=${this.onSizeVariableSelectChange} ${r(this.sizeVariableElement)}></arcgis-charts-config-field-select>`}renderMinSizeInput(){return n`<calcite-input type=number name=proportional-symbol-min-size class=${i(l.numberInput)} min=1 .max=${this.model.sizePolicy?.maxSize??100} step=1 .value=${b(this.model.sizePolicy?.minSize)} @calciteInputInput=${this.symbolSizeChange} ${r(this.minSizeInputElement)}></calcite-input>`}renderMaxSizeInput(){return n`<calcite-input type=number name=proportional-symbol-max-size class=${i(l.numberInput)} .min=${this.model.sizePolicy?.minSize??1} max=100 step=1 .value=${b(this.model.sizePolicy?.maxSize)} @calciteInputInput=${this.symbolSizeChange} ${r(this.maxSizeInputElement)}></calcite-input>`}renderProportionalSymbol(){return n`<div class=${i(l.sectionContainer)}><calcite-label class=${i(l.label)}>${this._messages.numberRequired}${this.renderSizeVariable()}</calcite-label><div class=${i(l.multiInputSection)}><calcite-label class=${i(l.label)}>${this._messages.minSize}${this.renderMinSizeInput()}</calcite-label><calcite-label class=${i(l.label)}>${this._messages.maxSize}${this.renderMaxSizeInput()}</calcite-label></div><calcite-label><calcite-slider min=1 max=100 .minValue=${z(b(this.model.sizePolicy?.minSize))} .maxValue=${z(b(this.model.sizePolicy?.maxSize))} step=1 @calciteSliderInput=${this.symbolSizeRangeSliderInput}></calcite-slider></calcite-label></div>`}renderSymbolSizeType(){return n`<calcite-label class=${i(l.label)}>${this._messages.size}<calcite-segmented-control name=symbolSizeType layout=horizontal scale=s @calciteSegmentedControlChange=${this.changeSymbolSizeTypeToggle} ${r(this.symbolSizeModeElement)}><calcite-segmented-control-item .value=${h.Fixed} .checked=${h.Fixed===this.selectedSizeType} ${r(this.segmentedControlRef)}>${this._messages.fixed}</calcite-segmented-control-item><calcite-segmented-control-item .value=${h.Proportional} .checked=${h.Proportional===this.selectedSizeType} ${r(this.segmentedControlRef)}>${this._messages.proportional}</calcite-segmented-control-item></calcite-segmented-control></calcite-label>`}renderSymbol(){let[e,t,a,s]=[...this.model.fixedMarkerSymbol?.color??C(0)];return n`<div class=${i(l.sectionContainer)}>${this.renderSymbolSizeType()}${this.selectedSizeType===h.Proportional?this.renderProportionalSymbol():this.renderFixedSymbol()}<calcite-label class=${i(l.label)}>${this._messages.color}${this.isTableLayer!==!0?n`<calcite-segmented-control name=layerColor layout=horizontal scale=s @calciteSegmentedControlChange=${this.changeColorTypeToggle} ${r(this.colorModeElement)}><calcite-segmented-control-item .value=${this._messages.useLayerColors} .checked=${this.model.colorMatch} ${r(this.segmentedControlRef)}>${this._messages.useLayerColors}</calcite-segmented-control-item><calcite-segmented-control-item .value=${this._messages.singleColor} .checked=${!this.model.colorMatch} ${r(this.segmentedControlRef)}>${this._messages.singleColor}</calcite-segmented-control-item></calcite-segmented-control>`:null}</calcite-label><calcite-list label selection-mode=single selection-appearance=border><calcite-list-item .label=${this._messages.color} value=selectColor .hidden=${this.model.colorMatch&&this.isTableLayer!==!0} .selected=${Array.isArray(this.selectedElement)} @click=${this.changeElementStyle} ${r(this.selectColorElement)}><calcite-icon slot=content-end icon=circle-f style=${v({color:`rgba(${e},${t},${a},${s/255})`})} class=${i(l.iconSelect)} @click=${this.changeElementStyle}></calcite-icon></calcite-list-item></calcite-list></div>`}render(){return n`<div><h3 class=${i(l.sectionLabel)}>${this._messages.variables}</h3><calcite-label class=${i(l.label)}>${this._messages.xAxisNumber}${this.renderXVariable()}</calcite-label><calcite-label class=${i(l.label)}>${this._messages.yAxisNumber}${this.renderYVariable()}</calcite-label><calcite-label class=${i(l.label)}><span class=${i(this.model.dataStore.aggregated?l.dimText:"")}>${this._messages.additionalTooltipFields}</span>${this.renderTooltipField()}</calcite-label><h3 class=${i(l.sectionLabel)}>${this._messages.statistics}</h3>${this.renderStatistics()}<h3 class=${i(l.sectionLabel)}>${this._messages.symbol}</h3>${this.renderSymbol()}</div>`}};L("arcgis-charts-config-scatter-plot-data",I);return I},"geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/Query","rest/support/StatisticDefinition","time/TimeExtent","core/promiseUtils","request",a,b,c)
@@ -1,4 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/5.0/esri/copyright.txt for details.
3
- v5.0.0-next.11 */
4
- import{i as h,j as B,k as q,l as we,m as $e,o as je}from"./H7RL7LD5.js";import a from"./5CBRD6OP.js";import{d as se,e as D,f as P,i as ye,q as te,w as me}from"./WA7XJCBI.js";import{a as v,d as ke}from"./EJJFMTXQ.js";import{a as I,b as S,f as ue,h as M,k as K,n as W,o as fe,v as L,w as U}from"./OAOMMFL6.js";export default $arcgis.t(([{substitute:k},,,,,,,,{$:Ae,A:be,Ga:V,H:N,J:O,K:Fe,L:Z,La:Be,M:Se,N:ve,Ob:G,Pa:$,Ta:Ce,Yb:Ne,Z:Ie,aa:Te,bc:oe,ca:he,db:Le,j:xe,k:E,kb:Y,l:pe,lb:qe,lc:ne,mc:Oe,nb:z,nc:Me,oc:H,p:T,pb:w,pc:J,xa:ae,yc:Q}])=>{async function re(i){let{queryObject:e,queryConfig:s,category:t,splitByField:a,chartLimits:o,abortKey:n}=i,r=a!==void 0,c=t!==be?[t]:[];r&&c.push(a);let u=G(e),g={...s,groupByFieldsForStatistics:Array.from(new Set(c)),outStatistics:[{statisticType:S.Count,onStatisticField:u.objectIdField,outStatisticFieldName:`${S.Count}_OBJECTID`}],orderByFields:void 0,num:o?.maxBarThreePlusSeriesCountTotal},m=await Ne({queryObject:e,featureCount:1,queryConfig:g,abortKey:n});return Array.from(new Set(m.map(f=>f.attributes[r?a:t]))).sort((f,x)=>typeof f=="string"&&typeof x=="string"?f.localeCompare(x):Number(f)-Number(x))}function De(i,e,s){let t=i?.axes?.[e];t?.title!==void 0?t.title.content.text=s:t!==void 0&&(t.title=O({text:s,visible:!0,font:N(T.AxisTitle)}))}function Ee(i){let{config:e,layerInfo:s,commonStrings:t,numericFields:a,aggregationType:o}=i,n="";if(e)if(Be(e)===ue.Stacked100)n=t.utilsStrings.statistics.percent;else{let r=ae(o,t);if(a.length===1){let c=$(s.layerFieldsInfo,a[0]);o===S.NoAggregation?n=c:o===S.Count&&a[0]===s.objectIdField?n=t.utilsStrings.statistics.count:n=k(t.axisLabels.aggregationOfFieldName,{aggregation:r,fieldName:c})}else a.length>1&&(o===S.NoAggregation?n=t.axisLabels.values:n=k(t.axisLabels.aggregationOfValues,{aggregation:r}))}return n}var ze=(i,e,s)=>i.axes?.[e]??Ie(s,i.type)[e],_e=i=>{let{config:e,axis:s,axisIndex:t}=i;e.axes!==void 0&&(e.axes[t]=s)},Ei=i=>{let{config:e,axisIndex:s,isMax:t}=i,a=Number.NaN;return t?a=e.axes?.[s]?.maximum:a=e.axes?.[s]?.minimum,a??Number.NaN},A=i=>{let{config:e,value:s,axisIndex:t,isMax:a}=i,o=e?.axes?.[t];o!==void 0&&(a?o.maximum=s:o.minimum=s)},zi=(i,e)=>{A({config:i,value:e,axisIndex:0,isMax:!1})},Pe=i=>i.axes?.[0]?.valueFormat??Z(),He=(i,e,s)=>{let t=ze(i,0,e);if(t!==void 0&&s!==void 0){let a={...t,valueFormat:s};_e({config:i,axis:a,axisIndex:0})}},Ve=(i,e,s)=>{let t=i.axes?.[e];t!==void 0&&(t.integerOnlyValues=s)},Je=i=>{let e=U(i.series);return e===I.BarSeries||e===I.ComboLineAndBarSeries||e===I.LineSeries},Qe=i=>{let{axisIndex:e,config:s,isMultiAxis:t}=i,a=!1;return e===0||e===1&&t?a=!0:e===2&&(a=Je(s)),a},_i=i=>{let{axisIndex:e,func:s,config:t}=i;return Qe({axisIndex:e,config:t,isMultiAxis:!0})?s(e):void 0},Pi=(i,e)=>{let s,t=e.axes?.[i]?.valueFormat;return(i===0||i>=1&&je(t))&&(s=t),s},Ui=i=>{let{config:e,commonStrings:s,valueFormat:t,axisIndex:a=0}=i,o=ze(e,a,s);if(o!==void 0&&t!==void 0){let n={...o,valueFormat:t};_e({config:e,axis:n,axisIndex:a})}},Xi=(i,e)=>i.axes?.[e]?.isLogarithmic??!1,Ri=i=>{let{config:e,isLogarithmic:s,axisIndex:t}=i,a=e.axes?.[t];a&&(a.isLogarithmic=s,A({config:e,value:null,axisIndex:t,isMax:!0}),A({config:e,value:null,axisIndex:t,isMax:!1}))},Ki=i=>{let{config:e,scrollbar:s,axisIndex:t}=i;e.axes?.[t]!==void 0&&(e.axes[t].scrollbar=s)},Wi=i=>i.version,ei=i=>i.title?.content.text??"",Zi=(i,e)=>{e.title!==void 0?e.title.content.text=i:e.title===void 0&&i!==void 0&&(e.title=O({text:i,visible:!0,font:N(T.ChartTitle)}))},Yi=i=>i.subtitle?.content.text??"",Gi=(i,e)=>{e.subtitle!==void 0?e.subtitle.content.text=i:e.subtitle===void 0&&i!==void 0&&(e.subtitle=O({text:i,visible:!0,font:N(T.ChartSubtitle)}))},Hi=i=>i.footer?.content.text??"",Ji=(i,e)=>{e.footer!==void 0?e.footer.content.text=i:e.footer===void 0&&i!==void 0&&(e.footer=O({text:i,visible:!0,font:N(T.DescriptionText)}))},Qi=i=>i.title?i.title.visible??!0:!1,es=(i,e)=>{e.title!==void 0?e.title.visible=i:e.title===void 0&&(e.title=O({text:"",visible:i,font:N(T.ChartTitle)}))},is=i=>i.subtitle?i.subtitle.visible??!0:!1,ss=(i,e)=>{e.subtitle!==void 0?e.subtitle.visible=i:e.subtitle===void 0&&(e.subtitle=O({text:"",visible:i,font:N(T.ChartSubtitle)}))},ii=i=>i.footer?.visible??!1,ts=(i,e)=>{e.footer!==void 0?e.footer.visible=i:e.footer===void 0&&i!==ii(e)&&(e.footer=O({text:"",visible:!0,font:N(T.DescriptionText)}))},as=i=>i.chartRenderer,os=(i,e)=>{e.chartRenderer=i},ns=(i,e)=>i.axes?.[e]?.title?.content,rs=i=>{let{config:e,axisIndex:s,symbol:t}=i,a=e.axes?.[s];if(a!==void 0){let o=a.title?.content.text;(a.title===void 0||t===void 0)&&(a.title=O({text:"",visible:!0,font:N(T.AxisTitle),type:T.AxisTitle})),t!==void 0&&(a.title.content=t),a.title.content.text=o}},ls=i=>{for(let e of i.axes??[])if(e?.labels!==void 0)return e.labels.content},cs=(i,e)=>{for(let s of e.axes??[])if(s!==void 0){let t=s.labels?.content.text;i===void 0?s.labels=O({text:"",visible:!0,font:N(T.AxisLabels),type:T.AxisLabels}):s.labels.content=P(i),s.labels.content.text=t}},gs=i=>{for(let e of i.axes??[])if(e?.lineSymbol!==void 0)return e.lineSymbol},ds=(i,e)=>{for(let s of e.axes??[])s!==void 0&&(s.lineSymbol=P(i)??Fe())},ys=i=>{for(let e of i.axes??[])if(e?.grid!==void 0)return e.grid},us=(i,e,s)=>{let t=e.axes;s.forEach(a=>{t?.[a]!==void 0&&(t[a].grid=P(i))})},le=(i,e)=>e.axes?.[i]?.title?.content.text??"",fs=(i,e,s)=>{let t=s.axes?.[e];t?.title!==void 0?t.title.content.text=i:t!==void 0&&t?.title===void 0&&(t.title=O({text:i,visible:!0,font:N(T.AxisTitle)}))},ms=(i,e)=>e.axes?.[i]?.title?.visible??!1,xs=(i,e,s)=>{let t=s.axes?.[e];t?.title!==void 0?t.title.visible=i:t!==void 0&&t?.title===void 0&&(t.title=O({text:le(e,s),visible:i,font:N(T.AxisTitle)}))},ps=(i,e)=>i.axes?.[e]?.displayZeroLine??!1,bs=(i,e,s)=>{i.axes?.[s]!==void 0&&(i.axes[s].displayZeroLine=e)},Fs=(i,e)=>i.axes?.[e]?.displayCursorTooltip??!1,Ss=i=>{let{config:e,displayCursorTooltip:s,axisIndex:t}=i;e.axes?.[t]!==void 0&&(e.axes[t].displayCursorTooltip=s)},vs=(i,e)=>i.axes?.[e]?.buffer??!1,Is=i=>{let{config:e,buffer:s,axisIndex:t}=i,a=e.axes?.[t];a!==void 0&&(a.buffer=s)},As=(i,e)=>i.axes?.[e]?.tickSpacing,Ts=i=>{let{config:e,tickSpacing:s,axisIndex:t}=i;e.axes?.[t]!==void 0&&(e.axes[t].tickSpacing=s)},hs=(i,e)=>i.axes?.[e]?.integerOnlyValues??!1,Bs=i=>{let{config:e,integerOnlyValues:s,axisIndex:t}=i;e.axes?.[t]!==void 0&&(e.axes[t].integerOnlyValues=s)},si=i=>{let e=v.xAxisAsc,s=i.orderOptions?.data?.orderType??L.Category,t=i.orderOptions?.data?.orderBy??M.Ascending;return s===L.Category&&Array.isArray(t)?e=v.customSort:s===L.Category?t===M.Ascending?e=v.xAxisAsc:e=v.xAxisDesc:t===M.Ascending?e=v.yAxisAsc:e=v.yAxisDesc,e},ti=i=>{let e=U(i.series),s=!1;return(e===I.BarSeries||e===I.LineSeries)&&(s=si(i)===v.customSort),s},Cs=i=>{let e=[],s=i.orderOptions?.data?.orderType;return ti(i)&&s===L.Category&&(e=i.orderOptions?.data?.orderBy),e},Ls=(i,e,s)=>{let t=L.Category,a=M.Ascending,o=U(e.series);e.orderOptions??={},i===v.customSort&&s!==void 0?(a=[...s],e.orderOptions.data={orderType:t,orderBy:a}):(o===I.BarSeries||o===I.LineSeries)&&(t=i===v.xAxisAsc||i===v.xAxisDesc?L.Category:L.YValue,a=i===v.xAxisAsc||i===v.yAxisAsc?M.Ascending:M.Descending,e.orderOptions.data={orderType:t,orderBy:a})},R=i=>i?.series?.[0]?.x??"",ce=i=>{let{config:e,xAxisField:s,numericFields:t,aggregationType:a,mode:o,layer:n,numericFieldIndex:r,seriesIndex:c,splitByField:u=""}=i,g=U(e.series),m=z(e.series),f=n?G(n).objectIdField:"FID",x=t.length===1&&t[0]===f,y="y",l="y";switch(g){case I.PieSeries:{a!==S.NoAggregation?o===ke.Category?(y=`${a}_${t[0]}_0`.toUpperCase(),l=x?D(S.Count):D(`${a} of ${t[0]}`)):y=xe:y=t[0];break}case I.BarSeries:case I.LineSeries:case I.ComboLineAndBarSeries:case I.RadarSeries:{if(u===""||t.length>1)ge(s,t)||m===V.BarAndLineFromFields?y=pe:(y=`${a}_${t[r??0]}_${r??0}`.toUpperCase(),l=x?D(S.Count):D(`${a} of ${t[r??0]}`));else{let F=t[0];y=`${a}_${F}_${c??0}`.toUpperCase(),l=x?D(S.Count):D(`${a} of ${F}`)}break}}return{name:y,description:l}};function ge(i,e){return(i===E||i===void 0||i.trim()==="")&&(e?.length??0)>=0}var ai=i=>{let e,s=i.series[0];return w(s)&&(e=s.temporalBinning?.size),e},oi=i=>{let e,s=i.series[0];return w(s)&&(e=s.temporalBinning?.unit),e},ni=i=>{let e,s=i.series[0];return w(s)&&(e=s.temporalBinning?.timeAggregationType),e},ri=i=>{let e,s=i.series[0];return w(s)&&(e=s.temporalBinning?.trimIncompleteTimeInterval),e},li=i=>{let e,s=i.series[0];return w(s)&&(e=s.temporalBinning?.nullPolicy),e},Ue=(i,e)=>{e?.series?.forEach(s=>{w(s)&&(s.temporalBinning??={},s.temporalBinning.size=i)}),A({config:e,value:null,axisIndex:1,isMax:!1}),A({config:e,value:null,axisIndex:1,isMax:!0})},ci=(i,e)=>{e?.series?.forEach(s=>{w(s)&&(s.temporalBinning??={},s.temporalBinning.nullPolicy=i)}),A({config:e,value:null,axisIndex:1,isMax:!1}),A({config:e,value:null,axisIndex:1,isMax:!0})},qs=(i,e)=>{e.series?.forEach(s=>{w(s)&&(s.temporalBinning??={},s.temporalBinning.unit=i)}),A({config:e,value:null,axisIndex:1,isMax:!1}),A({config:e,value:null,axisIndex:1,isMax:!0})},Ns=(i,e)=>{e.series?.forEach(s=>{w(s)&&(s.temporalBinning??={},s.temporalBinning.timeAggregationType=i)}),A({config:e,value:null,axisIndex:1,isMax:!1}),A({config:e,value:null,axisIndex:1,isMax:!0})},Os=(i,e)=>{e.series?.forEach(s=>{w(s)&&(s.temporalBinning??={},s.temporalBinning.trimIncompleteTimeInterval=i)}),A({config:e,value:null,axisIndex:1,isMax:!1}),A({config:e,value:null,axisIndex:1,isMax:!0})},Ms=i=>{Ue(0,i)};async function gi(i){let{config:e,layer:s,xAxisField:t,splitByField:a,layerFieldsInfo:o,aggregationFields:n,fetchNullValues:r}=i,c=o.filter(F=>F.name===a)[0]?.type,u=r!==!0?`${a} IS NOT NULL`:"",g=t&&r!==!0?`${t} IS NOT NULL`:"",{where:m}=e?.dataFilters??{},f={where:oe([m,u,g]),orderByFields:Ce(a)?[]:[`${a} ${M.Ascending}`],geometry:e?.dataFilters?.geometry},x=s,y="";n.length===0?y=x?.objectIdField??"":[y]=n;let l=await re({queryObject:x,category:e?.series[0].x??"",splitByField:a,queryConfig:f});if(e){let F=e?.series.map(d=>Y({where:d.query?.where})?.toString()??"").filter(d=>d!==void 0&&d!=="");l=Le({arrayA:l,arrayB:F,getKey:d=>d===null?null:d?.toString()})}return{categoriesArray:l,splitByFieldType:c,numericalField:y}}function ws(i,e){let s=e==="";for(let t of i)if(e===t.name){s=!0;break}return s}function $s(i,e){let s=Me(i),t=e.length===0,a=0;for(let o of e){for(let n of s)if(o===n&&(a+=1),a===e.length){t=!0;break}if(t)break}return t}function js(i,e){e.forEach(s=>{Object.getOwnPropertyNames(s.prototype).forEach(t=>{Object.defineProperty(i.prototype,t,Object.getOwnPropertyDescriptor(s.prototype,t)||Object.create(null))})})}async function di(i){let{layerInfo:e,config:s,category:t}=i,{layer:a}=e,{where:o}=s?.dataFilters??{},{fetchNullValues:n}=s?.series?.[0]?.query??{},r=n!==!0?`${t} IS NOT NULL`:"",c={where:oe([o,r]),orderByFields:[],geometry:s?.dataFilters?.geometry},u=H(a);return(await re({queryObject:a,category:t,queryConfig:c})).map(g=>{let m=String(g);return J({fieldName:t,fieldValueToMatch:m,subtypeInfo:u,fieldList:e.layerFieldsInfo})??m})}var ks=(i,e)=>e.series[i]?.id,Ds=(i,e)=>e.series.findIndex(s=>s.id===i),yi=i=>i.series.length??0,Vs=(i,e)=>e.series[i].visible??!0;function Es(i,e){let s;return i.length!==0&&e<i.length&&(s=i[e].dataTooltipValueFormat),s}function zs(i){let{series:e,seriesIndex:s,valueFormat:t}=i;e.length!==0&&s<e.length&&(e[s].dataTooltipValueFormat=t)}function X(i){let{seriesIndex:e,xAxisField:s,aggregationType:t,config:a,layerInfo:o,commonStrings:n}=i,{objectIdField:r}=o??{},c,u=a.series[e??0],g=!1,m=!1;if(u===void 0){let y=a.series;g=y.slice(0,e).every(l=>h(l)),m=y.slice(0,e).every(l=>B(l))}else g=h(u),m=B(u);g?c=Ae({commonStrings:n,seriesIndex:e,objectIDField:r}):m?c=Te({commonStrings:n,seriesIndex:e,objectIDField:r}):c=he({seriesIndex:e,objectIDField:r,commonStrings:n});let f=a.series[0]?.dataLabels,x={...c,x:s,y:"",dataLabels:{...c.dataLabels,type:c.dataLabels?.type??I.Text,content:{...c.dataLabels?.content,...f?.content,type:me.TS},visible:f?.visible??!1}};if(x.query={groupByFieldsForStatistics:[s]},t!==S.NoAggregation&&r!==void 0){let y=`${t}_${r}_0`.toUpperCase();x.y=y,x.query.outStatistics=[{statisticType:t,onStatisticField:r,outStatisticFieldName:y}]}if(h(x)||B(x)||q(x)&&a.series[0]?.binTemporalData){let y;if(a?.series?.[0]!==void 0&&(y=z(a.series)),y!==V.BarAndLineNoAggregation&&y!==V.BarAndLineSplitByNoAggregation){let l=oi(a);l===K.Quarter&&(l=K.Month),x.temporalBinning={size:ai(a),unit:l,timeAggregationType:ni(a),trimIncompleteTimeInterval:ri(a),nullPolicy:li(a)}}}return P(x)}function Xe(i,e,s){let{layerFieldsInfo:t,objectIdField:a}=e,o=R(i),n=de(i),r=Ke(i),c=ee(i),u=n.length===0||n.includes(a),g=ae(r,s),m=u?"":n.map(p=>$(t??[],p)).join(", "),f=$(t??[],o),x=$(t??[],c),y=i.series.some(p=>q(p)),l=y?"category":"xAxisField",F=f,d="";if(ge(o,n))d=k(s.titleLabels.aggrTypeOfAggrFields,{aggregationType:g,aggregationFields:m});else if(r===S.NoAggregation){let p=u?a:m;if(c===""){let b=y?"aggrTypeCategory":"aggrTypeXAxisField";d=k(s.titleLabels[b],{aggregationType:p,[l]:F})}else{let b=y?"aggrTypeCategoryBySplitBy":"aggrTypeXAxisFieldBySplitBy";d=k(s.titleLabels[b],{aggregationType:p,[l]:F,splitByField:x})}}else if(r===S.Count)if(c===""){let p=y?"aggrTypeCategory":"aggrTypeXAxisField";d=k(s.titleLabels[p],{aggregationType:g,[l]:F})}else{let p=y?"aggrTypeCategoryBySplitBy":"aggrTypeXAxisFieldBySplitBy";d=k(s.titleLabels[p],{aggregationType:g,[l]:F,splitByField:x})}else if(c!==""){let p=y?"aggrTypeOfAggrFieldByCategoryBySplitByField":"aggrTypeOfAggrFieldByXAxisFieldBySplitByField";d=k(s.titleLabels[p],{aggregationType:g,aggregationField:m,[l]:F,splitByField:x})}else if(n.length>0){let p=y?"aggrTypeOfAggrFieldsByCategory":"aggrTypeOfAggrFieldsByXAxisField";d=k(s.titleLabels[p],{aggregationType:g,aggregationFields:m,[l]:F})}return d}var Re=i=>Y({where:i.query?.where,normalize:!1,escape:!1})??"",Ke=i=>i?.series?.[0]?.query?.outStatistics?.[0]?.statisticType??S.NoAggregation,ee=se(i=>{let e=i?.series?.[0]?.query?.where?.split("=")[0].trim()??"";return qe(i?.series?.[0]?.query?.where)?"":e},i=>i?.series?.[0]?.query?.where),de=se(i=>{let e=[];if(ee(i)==="")e=i?.series.map(s=>{let t=s.query?.outStatistics?.map(a=>a.onStatisticField)??[];return t?.length>0?t:s.y}).flat()??[];else{let s=i?.series?.[0],t=s?.query?.outStatistics?.[0]?.onStatisticField??[s?.y].flat()[0];e=t!==void 0?[t]:[]}return[...new Set(e.filter(s=>s!==""))]},i=>i?.series);function ui(i){let{numericFields:e,aggregationType:s,config:t,layerInfo:a}=i,o=!1;s===S.Count?o=!0:s===S.NoAggregation&&(o=e.every(c=>{let u=a.layerFieldsInfo.find(g=>g.name===c);return u!==void 0?ne(u):!1})),Ve(t,1,o);let n=t.series.some(c=>h(c)),r=t.series.some(c=>B(c));if(n||r){let c=R(t),u=a.layerFieldsInfo.find(m=>m.name===c),g=u!==void 0&&ne(u);Ve(t,0,g)}}var fi=i=>{let e=v.xAxisAsc,s=i.orderOptions?.data?.orderType??L.Category,t=i.orderOptions?.data?.orderBy??M.Ascending;return s===L.Category&&Array.isArray(t)?e=v.customSort:s===L.Category?t===M.Ascending?e=v.xAxisAsc:e=v.xAxisDesc:t===M.Ascending?e=v.yAxisAsc:e=v.yAxisDesc,e};function mi(i){let{xAxisField:e,numericFields:s,aggregationType:t,config:a,layerInfo:o,commonStrings:n}=i,r=!1,c=X({config:a,xAxisField:e,aggregationType:t,layerInfo:o,seriesIndex:0,commonStrings:n}),u=ce({config:a,xAxisField:e,numericFields:s,aggregationType:t,layer:o.layer}).name,g={...c,id:`series_${Date.now()}`,name:n.axisLabels.values,x:E,y:u},m=[];for(let x of s)m.push({onStatisticField:x,outStatisticFieldName:`${x}_0`.toUpperCase(),statisticType:t});g.query={outStatistics:m};let f=a.series[0];return f!==void 0&&(g.id=f.id,a.colorMatch||(q(f)&&q(g)?g.fillSymbol=f.fillSymbol:(h(g)&&h(f)||B(g)&&B(f))&&(g.lineSymbol=f.lineSymbol,g.markerSymbol=f.markerSymbol),r=!0),g.id=f.id,f.name!==c.name&&(g.name=f.name)),a.series.length===1&&!a.colorMatch&&(q(g)?g.fillSymbol=a.series[0].fillSymbol:(h(g)||B(g))&&(g.lineSymbol=a.series[0].lineSymbol,g.markerSymbol=a.series[0].markerSymbol),r=!0),a.colorMatch=!r,[g]}function We(i){let{xAxisField:e,numericFields:s,aggregationType:t,config:a,layerInfo:o,commonStrings:n}=i,{layerFieldsInfo:r,objectIdField:c}=o,u=[],g=!1;for(let m=0;m<s.length;m+=1){let f=X({config:a,xAxisField:e,aggregationType:t,layerInfo:o,seriesIndex:m,commonStrings:n}),x=ce({config:a,xAxisField:e,numericFields:s,aggregationType:t,layer:o.layer,numericFieldIndex:m}).name,y=s[m],l={...f,query:{...f.query}};y!==c&&(l={...l,id:y,name:$(r,y)});let F=y;l.query!==void 0&&(t!==S.NoAggregation?(F=x,l.query.outStatistics=[{...f.query?.outStatistics?.[0]??{},onStatisticField:y,outStatisticFieldName:x,statisticType:t}]):delete l.query.outStatistics),l.y=F;let d=a.series.find(p=>p.query?.outStatistics?.[0]?.onStatisticField===y&&p.query.where===void 0);if(d!==void 0&&typeof d.y=="string"&&d.y.trim()!==""){a.colorMatch||(q(l)&&q(d)?l.fillSymbol=d.fillSymbol:(h(l)&&h(d)||B(l)&&B(d))&&(l.lineSymbol=d.lineSymbol,l.markerSymbol=d.markerSymbol),g=!0);let p=X({config:a,xAxisField:e,aggregationType:t,layerInfo:o,seriesIndex:m,commonStrings:n});l.id=d.id,d.id!==p.id&&d.name!==p.name&&(l.id=d.id,l.name=d.name)}u.push(l)}return a.series.length===1&&u.length===1&&!a.colorMatch&&(q(a.series[0])&&q(u[0])?u[0].fillSymbol=a.series[0].fillSymbol:(h(a.series[0])&&h(u[0])||B(a.series[0])&&B(u[0]))&&(u[0].lineSymbol=a.series[0].lineSymbol,u[0].markerSymbol=a.series[0].markerSymbol),g=!0),a.colorMatch=!g,u}async function xi(i){let{splitByField:e,xAxisField:s,numericFields:t,aggregationType:a,config:o,layerInfo:n,commonStrings:r}=i,{layer:c,layerFieldsInfo:u}=n,{fetchNullValues:g}=o?.series?.[0]?.query??{},m=s!==E?s:void 0,{categoriesArray:f,splitByFieldType:x,numericalField:y}=await gi({config:o,layer:c,layerFieldsInfo:u,xAxisField:m,aggregationFields:t,splitByField:e,fetchNullValues:g}),l=[],F=!1;if(f.length===0){l=We({xAxisField:s,numericFields:t,aggregationType:a,config:o,layerInfo:n,commonStrings:r});for(let d of l)d.query&&(d.query.where=`${e}=''`)}else for(let d=0;d<f.length;d+=1){let p=f[d],b=ce({config:o,xAxisField:s,numericFields:t,aggregationType:a,layer:n.layer,seriesIndex:d,splitByField:e}).name,_=X({config:o,xAxisField:s,aggregationType:a,layerInfo:n,seriesIndex:d,commonStrings:r}),Ze={fieldName:e,fieldValueToMatch:p??"",subtypeInfo:H(n.layer),fieldList:n.layerFieldsInfo},Ye=J(Ze),ie=`${p}`,C={..._,id:ie,name:Ye??ie,y:b,query:{..._.query,where:`${e}=${x===te.String&&p!==null?`'${p}'`:p}`,outStatistics:a!==S.NoAggregation?[{..._.query?.outStatistics?.[0]??{},onStatisticField:y,outStatisticFieldName:b,statisticType:a}]:void 0}};a===S.NoAggregation&&(C.query!==void 0&&(delete C.query.outStatistics,delete C.query.groupByFieldsForStatistics),C.y=y);let j=o.series.find(Ge=>String(Re(Ge)).trim().replace(/'/gu,"")===ie);j!==void 0&&(o.colorMatch||(q(C)&&q(j)?C.fillSymbol=j.fillSymbol:(h(C)&&h(j)||B(C)&&B(j))&&(C.lineSymbol=j.lineSymbol,C.markerSymbol=j.markerSymbol),F=!0),C.id=j.id,C.name=j.name),l.push(C)}return o.colorMatch=!F,l}var _s=async i=>{let{xAxisField:e,splitByField:s,numericFields:t,aggregationType:a,config:o,layerInfo:n,commonStrings:r}=i,{layerFieldsInfo:c}=n??{},u=yi(o),g=R(o),m=z(o.series),f=pi(o,n,r),x=bi(o,n,r),y=Fi(o,n),l=Pe(o),F=o.series.some(b=>q(b)),d=we(o.series),p=$e(o.series);if(c!==void 0){let b=Oe(c);!b.includes(g)&&b.includes(e)?l=Se():b.includes(g)&&!b.includes(e)&&(F?l=Z():l=ve()),c.find(_=>_.name===e)?.type===te.String&&(l=Z()),l!==void 0&&He(o,r,l)}if(u===0&&(o.series=[X({config:o,xAxisField:e,aggregationType:a,layerInfo:n,commonStrings:r})]),o.series.forEach(b=>{b.x=e,b.query!==void 0&&(b.query.groupByFieldsForStatistics=[e])}),s===""||t.length>1?ge(e,t)||m===V.BarAndLineFromFields?o.series=mi({config:o,layerInfo:n,xAxisField:e,numericFields:t,aggregationType:a,commonStrings:r}):o.series=We({config:o,layerInfo:n,xAxisField:e,numericFields:t,aggregationType:a,commonStrings:r}):(await Promise.resolve(),o.series=await xi({config:o,layerInfo:n,splitByField:s,xAxisField:e,numericFields:t,aggregationType:a,commonStrings:r})),y){let b=$(c,e);De(o,0,b)}if(x){let b=Ee({config:o,layerInfo:n,commonStrings:r,numericFields:t,aggregationType:a});De(o,1,b)}if(o.title&&f&&(o.title.content.text=Xe(o,n,r)),A({config:o,value:null,axisIndex:1,isMax:!1}),A({config:o,value:null,axisIndex:1,isMax:!0}),ui({numericFields:t,aggregationType:a,config:o,layerInfo:n}),d||p){A({config:o,value:null,axisIndex:0,isMax:!1}),A({config:o,value:null,axisIndex:0,isMax:!0}),Ue(0,o);let b=l?.type===I.DateAxisFormat?W.Null:W.Interpolate;ci(b,o)}},Ps=i=>{let{config:e,seriesIndex:s,layerInfo:t,commonStrings:a}=i,o=e.series?.[s],n=ee(e),r;if(z(e.series)===V.BarAndLineFromFields)r=a.axisLabels.values;else if(ye(n)){let c=o.query?.outStatistics?.[0]?.onStatisticField;c!==void 0&&c!==t.objectIdField&&(r=$(t.layerFieldsInfo,c))}else{let c=String(Re(o)).trim().replace(/'/gu,""),u={fieldName:ee(e),fieldValueToMatch:c??"",subtypeInfo:H(t.layer),fieldList:t.layerFieldsInfo};r=J(u)??c}return r??o.id},Us=(i,e)=>{e.orderOptions??={};let s=e.orderOptions?.data?.orderType;fi(e)===v.customSort&&s===L.Category&&(e.orderOptions.data={orderType:L.Category,orderBy:[...i]})},Xs=async(i,e)=>{let s=R(i),t=Pe(i)?.type,a=de(i),o=z(i.series),n=[];return t===I.CategoryAxisFormat&&(o===V.BarAndLineFromFields||s===E?n=a.map(r=>$(e?.layerFieldsInfo,r)):s.trim()!==""&&s!==E&&e!==void 0&&(n=await di({layerInfo:e,config:i,category:s}))),n};function pi(i,e,s){let t=Xe(i,e,s),a=ei(i),o=Q(i);return t===a||o}function bi(i,e,s){let t=Ee({config:i,layerInfo:e,commonStrings:s,numericFields:de(i),aggregationType:Ke(i)}),a=le(1,i),o=Q(i);return t===a||o}function Fi(i,e){let s=$(e.layerFieldsInfo,R(i)),t=le(0,i),a=Q(i);return s===t||a}function Rs(i){return i.series[0]?.binTemporalData??!1}function Ks(i,e){e?.series.forEach(s=>{(s?.type===I.BarSeries||s?.type===I.LineSeries)&&(s.binTemporalData=i,i?s.temporalBinning={unit:K.Day,size:0,timeAggregationType:fe.Start,trimIncompleteTimeInterval:!0,nullPolicy:W.Null}:delete s.temporalBinning)})}var Ws=(i,e)=>{e.series.forEach(s=>{s.query&&(s.query.fetchNullValues=i)})},Zs=i=>i.series.some(e=>e.query?.fetchNullValues),Ys=i=>i.series.map(e=>String(Y({where:e.query?.where}))).filter(e=>e!==void 0&&e.trim()!==""),Gs=i=>i.dataFilters,Hs=(i,e)=>{i!==void 0?e.dataFilters=i:delete e.dataFilters};return{a:re,b:De,c:Ee,d:Ei,e:A,f:zi,g:Pe,h:He,i:Ve,j:_i,k:Pi,l:Ui,m:Xi,n:Ri,o:Ki,p:Wi,q:ei,r:Zi,s:Yi,t:Gi,u:Hi,v:Ji,w:Qi,x:es,y:is,z:ss,A:ii,B:ts,C:as,D:os,E:ns,F:rs,G:ls,H:cs,I:gs,J:ds,K:ys,L:us,M:le,N:fs,O:ms,P:xs,Q:ps,R:bs,S:Fs,T:Ss,U:vs,V:Is,W:As,X:Ts,Y:hs,Z:Bs,_:Cs,$:Ls,aa:R,ba:ce,ca:ai,da:oi,ea:ni,fa:ri,ga:li,ha:Ue,ia:ci,ja:qs,ka:Ns,la:Os,ma:Ms,na:gi,oa:ws,pa:$s,qa:js,ra:di,sa:ks,ta:Ds,ua:yi,va:Vs,wa:Es,xa:zs,ya:Xe,za:Ke,Aa:ee,Ba:de,Ca:fi,Da:_s,Ea:Ps,Fa:Us,Ga:Xs,Ha:Rs,Ia:Ks,Ja:Ws,Ka:Zs,La:Ys,Ma:Gs,Na:Hs}},"intl","geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/Query","rest/support/StatisticDefinition","time/TimeExtent","core/promiseUtils","request",a)